Index: openacs-4/packages/xowiki/tcl/form-field-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/form-field-procs.tcl,v diff -u -r1.34 -r1.35 --- openacs-4/packages/xowiki/tcl/form-field-procs.tcl 14 Sep 2007 09:32:24 -0000 1.34 +++ openacs-4/packages/xowiki/tcl/form-field-procs.tcl 14 Sep 2007 17:53:30 -0000 1.35 @@ -571,8 +571,8 @@ } FormField::richtext::wym instproc render_content {} { ::xowiki::Page requireCSS "/resources/xowiki/wymeditor/skins/default/screen.css" - ::xowiki::Page requireJS "/resources/xowiki/wymeditor/jquery.js" - ::xowiki::Page requireJS "/resources/xowiki/wymeditor/jquery.wymeditor.js" + ::xowiki::Page requireJS "/resources/xowiki/jquery/jquery.js" + ::xowiki::Page requireJS "/resources/xowiki/wymeditor/jquery.wymeditor.pack.js" ::xowiki::Page requireJS { var $j = jQuery.noConflict(); $j(function() { Index: openacs-4/packages/xowiki/www/resources/jquery/GPL-LICENSE.txt =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/resources/jquery/GPL-LICENSE.txt,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/xowiki/www/resources/jquery/GPL-LICENSE.txt 14 Sep 2007 17:53:31 -0000 1.1 @@ -0,0 +1,278 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. Index: openacs-4/packages/xowiki/www/resources/jquery/MIT-LICENSE.txt =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/resources/jquery/MIT-LICENSE.txt,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/xowiki/www/resources/jquery/MIT-LICENSE.txt 14 Sep 2007 17:53:31 -0000 1.1 @@ -0,0 +1,20 @@ +Copyright (c) 2007 John Resig, http://jquery.com/ + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Index: openacs-4/packages/xowiki/www/resources/jquery/README =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/resources/jquery/README,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/xowiki/www/resources/jquery/README 14 Sep 2007 17:53:31 -0000 1.1 @@ -0,0 +1,67 @@ + +-------------------------------- +jQuery - New Wave Javascript +http://jquery.com/ +-------------------------------- + +What you need to build your own jQuery: + - Make sure that you have Java installed. + + If not, go to this page and download "Java Runtime Environment (JRE) 5.0" + http://java.sun.com/javase/downloads/index.jsp + + - You now have two options for building jQuery, if you have access to + common UNIX commands (like 'make', 'mkdir', 'rm', 'cat', and 'echo') + then simply type 'make' to build all the components. + + - The other option is if you have Ant installed (or are on Windows and + don't have access to make). You can download Ant from here: + http://ant.apache.org/bindownload.cgi + + If you do have Ant, everytime (in this README) that I say 'make', do + 'ant' instead - it works identically (for all intents and purposes). + +How to build your own jQuery: + +In the main directory of the distribution (the one that this file is in), type +the following to make all versions of jQuery, the documentation, and the test suite: + make + +Here are each of the individual items that are buildable from the Makefile. + +make jquery + The standard, uncompressed, jQuery code. + Makes: ./dist/jquery.js + +make lite + jQuery without all the additional inline documentation and test cases. + Makes: ./dist/jquery.lite.js + +make pack + A compressed version of jQuery (made with Packer). + Makes: ./dist/jquery.pack.js + +make docs + Builds a complete copy of the documentation, based upon the jQuery source. + Makes ./docs/ + Open this file in your browser: + ./docs/index.xml + +make test + Builds a complete copy of the test suite, based upon the jQuery source. + Makes ./test/ + Open this file in your browser: + ./test/index.html + +Finally, you can remove all the built files using the command: + make clean + +Additionally, if you want to install jQuery to a location that is not this +directory, you can specify the PREFIX directory, for example: + make PREFIX=/home/john/test/ +OR + make PREFIX=~/www/ docs + +If you have any questions, please feel free to ask them on the jQuery +mailing list, which can be found here: + http://jquery.com/discuss/ Index: openacs-4/packages/xowiki/www/resources/jquery/jquery.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/resources/jquery/Attic/jquery.js,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/xowiki/www/resources/jquery/jquery.js 14 Sep 2007 17:53:31 -0000 1.1 @@ -0,0 +1,11 @@ +/* + * jQuery 1.1.4 - New Wave Javascript + * + * Copyright (c) 2007 John Resig (jquery.com) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * $Date: 2007/09/14 17:53:31 $ + * $Rev: 2862 $ + */ +eval(function(p,a,c,k,e,r){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(9(){6(1f C!="Q")E v=C;E C=19.16=9(a,c){6(19==7||!7.4a)F 1s C(a,c);F 7.4a(a,c)};6(1f $!="Q")E B=$;19.$=C;E q=/^[^<]*(<(.|\\s)+>)[^>]*$|^#(\\w+)$/;C.15=C.3v={4a:9(a,c){a=a||R;6(1f a=="1E"){E m=q.2d(a);6(m&&(m[1]||!c)){6(m[1])a=C.3c([m[1]]);G{E b=R.37(m[3]);6(b)6(b.2j!=m[3])F C().1F(a);G{7[0]=b;7.H=1;F 7}G a=[]}}G F 1s C(c).1F(a)}G 6(C.1g(a))F 1s C(R)[C.15.1L?"1L":"2f"](a);F 7.5J(a.1b==1K&&a||(a.3w||a.H&&a!=19&&!a.1t&&a[0]!=Q&&a[0].1t)&&C.2V(a)||[a])},3w:"1.1.4",7K:9(){F 7.H},H:0,21:9(a){F a==Q?C.2V(7):7[a]},1O:9(a){E b=C(a);b.5c=7;F b},5J:9(a){7.H=0;1K.3v.Y.T(7,a);F 7},J:9(a,b){F C.J(7,a,b)},45:9(a){E b=-1;7.J(9(i){6(7==a)b=i});F b},1j:9(f,d,e){E c=f;6(f.1b==3n)6(d==Q)F 7.H&&C[e||"1j"](7[0],f)||Q;G{c={};c[f]=d}F 7.J(9(a){I(E b 17 c)C.1j(e?7.S:7,b,C.4Q(7,c[b],e,a,b))})},1h:9(b,a){F 7.1j(b,a,"34")},2Q:9(e){6(1f e!="4P"&&e!=K)F 7.3K().3H(R.60(e));E t="";C.J(e||7,9(){C.J(7.2Z,9(){6(7.1t!=8)t+=7.1t!=1?7.5S:C.15.2Q([7])})});F t},82:9(){E a,2e=1a;F 7.J(9(){6(!a)a=C.3c(2e,7.2I);E b=a[0].3B(O);7.P.2p(b,7);20(b.1k)b=b.1k;b.4p(7)})},3H:9(){F 7.2J(1a,O,1,9(a){7.4p(a)})},5v:9(){F 7.2J(1a,O,-1,9(a){7.2p(a,7.1k)})},5u:9(){F 7.2J(1a,M,1,9(a){7.P.2p(a,7)})},5t:9(){F 7.2J(1a,M,-1,9(a){7.P.2p(a,7.2a)})},3L:9(){F 7.5c||C([])},1F:9(t){E b=C.3M(7,9(a){F C.1F(t,a)});F 7.1O(/[^+>] [^+>]/.1d(t)||t.U("..")>-1?C.4d(b):b)},7o:9(e){e=e!=Q?e:O;E d=7.1r(7.1F("*"));6(C.N.12){d.J(9(){7.2l$1i={};I(E a 17 7.$1i)7.2l$1i[a]=C.14({},7.$1i[a])}).49()}E r=7.1O(C.3M(7,9(a){F a.3B(e)}));6(C.N.12){d.J(9(){E c=7.2l$1i;I(E a 17 c)I(E b 17 c[a])C.1c.1r(7,a,c[a][b],c[a][b].V);7.2l$1i=K})}6(e){E f=r.1r(r.1F(\'*\')).1l(\'2b,39[@L=3i]\');d.1l(\'2b,39[@L=3i]\').J(9(i){6(7.3j)f[i].3j=7.3j;6(7.27)f[i].27=O})}F r},1l:9(t){F 7.1O(C.1g(t)&&C.2B(7,9(b,a){F t.T(b,[a])})||C.2R(t,7))},5l:9(t){F 7.1O(t.1b==3n&&C.2R(t,7,O)||C.2B(7,9(a){F(t.1b==1K||t.3w)?C.4K(a,t)<0:a!=t}))},1r:9(t){F 7.1O(C.29(7.21(),t.1b==3n?C(t).21():t.H!=Q&&(!t.W||t.W=="6s")?t:[t]))},3y:9(a){F a?C.2R(a,7).H>0:M},2G:9(a){F a==Q?(7.H?7[0].2A:K):7.1j("2A",a)},5W:9(a){F a==Q?(7.H?7[0].2W:K):7.3K().3H(a)},3S:9(){F 7.1O(1K.3v.3S.T(7,1a))},2J:9(f,d,g,e){E c=7.H>1,a;F 7.J(9(){6(!a){a=C.3c(f,7.2I);6(g<0)a.8E()}E b=7;6(d&&C.W(7,"1A")&&C.W(a[0],"3O"))b=7.4L("1w")[0]||7.4p(R.6a("1w"));C.J(a,9(){6(C.W(7,"33")){6(7.32)C.31({1G:7.32,2w:M,3G:"33"});G C.4E(7.2Q||7.5Z||7.2W||"")}G e.T(b,[c?7.3B(O):7])})})}};C.14=C.15.14=9(){E c=1a[0]||{},a=1,1M=1a.H,4D=M;6(c.1b==8d){4D=c;c=1a[1]||{}}6(1M==1){c=7;a=0}E b;I(;a<1M;a++)6((b=1a[a])!=K)I(E i 17 b){6(c==b[i])5X;6(4D&&1f b[i]==\'4P\'&&c[i])C.14(c[i],b[i]);G 6(b[i]!=Q)c[i]=b[i]}F c};C.14({8a:9(a){19.$=B;6(a)19.16=v;F C},1g:9(a){F!!a&&1f a!="1E"&&!a.W&&a.1b!=1K&&/9/i.1d(a+"")},3E:9(a){F a.3D&&!a.4z||a.4y&&a.2I&&!a.2I.4z},4E:9(a){a=C.2s(a);6(a){6(19.5N)19.5N(a);G 6(C.N.1H)19.4x(a,0);G 2T.2S(19,a)}},W:9(b,a){F b.W&&b.W.1I()==a.1I()},J:9(a,b,c){6(c){6(a.H==Q)I(E i 17 a)b.T(a[i],c);G I(E i=0,3A=a.H;i<3A;i++)6(b.T(a[i],c)===M)1J}G{6(a.H==Q)I(E i 17 a)b.2S(a[i],i,a[i]);G I(E i=0,3A=a.H,2G=a[0];i<3A&&b.2S(2G,i,2G)!==M;2G=a[++i]){}}F a},4Q:9(c,b,d,e,a){6(C.1g(b))b=b.2S(c,[e]);E f=/z-?45|7S-?7Q|1e|5y|7O-?1u/i;F b&&b.1b==3x&&d=="34"&&!f.1d(a)?b+"4t":b},18:{1r:9(b,c){C.J((c||"").2M(/\\s+/),9(i,a){6(!C.18.2N(b.18,a))b.18+=(b.18?" ":"")+a})},23:9(b,c){b.18=c!=Q?C.2B(b.18.2M(/\\s+/),9(a){F!C.18.2N(c,a)}).5w(" "):""},2N:9(t,c){F C.4K(c,(t.18||t).3s().2M(/\\s+/))>-1}},1V:9(e,o,f){I(E i 17 o){e.S["2U"+i]=e.S[i];e.S[i]=o[i]}f.T(e,[]);I(E i 17 o)e.S[i]=e.S["2U"+i]},1h:9(e,p){6(p=="1u"||p=="24"){E b={},3p,3o,d=["7J","7G","7F","7B"];C.J(d,9(){b["7A"+7]=0;b["7x"+7+"7u"]=0});C.1V(e,b,9(){6(C(e).3y(\':4N\')){3p=e.7t;3o=e.7q}G{e=C(e.3B(O)).1F(":4e").5d("27").3L().1h({3V:"1C",3k:"7n",11:"2m",7h:"0",7e:"0"}).57(e.P)[0];E a=C.1h(e.P,"3k")||"3g";6(a=="3g")e.P.S.3k="76";3p=e.74;3o=e.71;6(a=="3g")e.P.S.3k="3g";e.P.3e(e)}});F p=="1u"?3p:3o}F C.34(e,p)},34:9(h,d,g){E i,1R=[],1V=[];9 2E(a){6(!C.N.1H)F M;E b=R.2L.3b(a,K);F!b||b.44("2E")==""}6(d=="1e"&&C.N.12){i=C.1j(h.S,"1e");F i==""?"1":i}6(d.2k(/3a/i))d=x;6(!g&&h.S[d])i=h.S[d];G 6(R.2L&&R.2L.3b){6(d.2k(/3a/i))d="3a";d=d.1v(/([A-Z])/g,"-$1").2D();E e=R.2L.3b(h,K);6(e&&!2E(h))i=e.44(d);G{I(E a=h;a&&2E(a);a=a.P)1R.42(a);I(a=0;a<1R.H;a++)6(2E(1R[a])){1V[a]=1R[a].S.11;1R[a].S.11="2m"}i=d=="11"&&1V[1R.H-1]!=K?"1T":R.2L.3b(h,K).44(d)||"";I(a=0;a<1V.H;a++)6(1V[a]!=K)1R[a].S.11=1V[a]}6(d=="1e"&&i=="")i="1"}G 6(h.41){E f=d.1v(/\\-(\\w)/g,9(m,c){F c.1I()});i=h.41[d]||h.41[f]}F i},3c:9(a,c){E r=[];c=c||R;C.J(a,9(i,b){6(!b)F;6(b.1b==3x)b=b.3s();6(1f b=="1E"){E s=C.2s(b).2D(),1m=c.6a("1m"),1P=[];E a=!s.U("<1Z")&&[1,"<2b>",""]||!s.U("<6L")&&[1,"<4V>",""]||s.2k(/^<(6I|1w|6H|6F|6D)/)&&[1,"<1A>",""]||!s.U("<3O")&&[2,"<1A><1w>",""]||(!s.U("<6A")||!s.U("<6y"))&&[3,"<1A><1w><3O>",""]||!s.U("<6x")&&[2,"<1A><1w><4T>",""]||C.N.12&&[1,"1m<1m>",""]||[0,"",""];1m.2W=a[1]+b+a[2];20(a[0]--)1m=1m.3Y;6(C.N.12){6(!s.U("<1A")&&s.U("<1w")<0)1P=1m.1k&&1m.1k.2Z;G 6(a[1]=="<1A>"&&s.U("<1w")<0)1P=1m.2Z;I(E n=1P.H-1;n>=0;--n)6(C.W(1P[n],"1w")&&!1P[n].2Z.H)1P[n].P.3e(1P[n]);6(/^\\s/.1d(b))1m.2p(c.60(b.2k(/^\\s*/)[0]),1m.1k)}b=C.2V(1m.2Z)}6(0===b.H&&(!C.W(b,"38")&&!C.W(b,"2b")))F;6(b[0]==Q||C.W(b,"38")||b.6u)r.Y(b);G r=C.29(r,b)});F r},1j:9(c,d,a){E e=C.3E(c)?{}:C.4q;6(d=="28"&&C.N.1H)c.P.3j;6(e[d]){6(a!=Q)c[e[d]]=a;F c[e[d]]}G 6(C.N.12&&d=="S")F C.1j(c.S,"6p",a);G 6(a==Q&&C.N.12&&C.W(c,"38")&&(d=="6n"||d=="6m"))F c.6k(d).5S;G 6(c.4y){6(a!=Q)c.6j(d,a);6(C.N.12&&/5R|32/.1d(d)&&!C.3E(c))F c.3F(d,2);F c.3F(d)}G{6(d=="1e"&&C.N.12){6(a!=Q){c.5y=1;c.1l=(c.1l||"").1v(/5T\\([^)]*\\)/,"")+(3m(a).3s()=="6d"?"":"5T(1e="+a*6c+")")}F c.1l?(3m(c.1l.2k(/1e=([^)]*)/)[1])/6c).3s():""}d=d.1v(/-([a-z])/8I,9(z,b){F b.1I()});6(a!=Q)c[d]=a;F c[d]}},2s:9(t){F(t||"").1v(/^\\s+|\\s+$/g,"")},2V:9(a){E r=[];6(1f a!="8H")I(E i=0,1M=a.H;i<1M;i++)r.Y(a[i]);G r=a.3S(0);F r},4K:9(b,a){I(E i=0,1M=a.H;i<1M;i++)6(a[i]==b)F i;F-1},29:9(a,b){6(C.N.12){I(E i=0;b[i];i++)6(b[i].1t!=8)a.Y(b[i])}G I(E i=0;b[i];i++)a.Y(b[i]);F a},4d:9(a){E r=[],4O=C.1q++;2g{I(E i=0,69=a.H;i<69;i++)6(4O!=a[i].1q){a[i].1q=4O;r.Y(a[i])}}2h(e){r=a}F r},1q:0,2B:9(b,a,c){6(1f a=="1E")a=2T("M||9(a,i){F "+a+"}");E d=[];I(E i=0,3P=b.H;i<3P;i++)6(!c&&a(b[i],i)||c&&!a(b[i],i))d.Y(b[i]);F d},3M:9(c,b){6(1f b=="1E")b=2T("M||9(a){F "+b+"}");E d=[];I(E i=0,3P=c.H;i<3P;i++){E a=b(c[i],i);6(a!==K&&a!=Q){6(a.1b!=1K)a=[a];d=d.8x(a)}}F d}});E u=8w.8u.2D();C.N={6b:(u.2k(/.+(?:8s|8q|8p|8o)[\\/: ]([\\d.]+)/)||[])[1],1H:/61/.1d(u),2t:/2t/.1d(u),12:/12/.1d(u)&&!/2t/.1d(u),3J:/3J/.1d(u)&&!/(8n|61)/.1d(u)};E x=C.N.12?"3I":"4G";C.14({8m:!C.N.12||R.8l=="8k",3I:C.N.12?"3I":"4G",4q:{"I":"8j","8i":"18","3a":x,4G:x,3I:x,2W:"2W",18:"18",2A:"2A",30:"30",27:"27",8h:"8g",28:"28",8f:"8e"}});C.J({5Y:"a.P",4C:"16.4C(a)",8c:"16.25(a,2,\'2a\')",8b:"16.25(a,2,\'4B\')",88:"16.4A(a.P.1k,a)",87:"16.4A(a.1k)"},9(i,n){C.15[i]=9(a){E b=C.3M(7,n);6(a&&1f a=="1E")b=C.2R(a,b);F 7.1O(C.4d(b))}});C.J({57:"3H",86:"5v",2p:"5u",85:"5t"},9(i,n){C.15[i]=9(){E a=1a;F 7.J(9(){I(E j=0,1M=a.H;j<1M;j++)C(a[j])[n](7)})}});C.J({5d:9(a){C.1j(7,a,"");7.84(a)},83:9(c){C.18.1r(7,c)},81:9(c){C.18.23(7,c)},80:9(c){C.18[C.18.2N(7,c)?"23":"1r"](7,c)},23:9(a){6(!a||C.1l(a,[7]).r.H)7.P.3e(7)},3K:9(){20(7.1k)7.3e(7.1k)}},9(i,n){C.15[i]=9(){F 7.J(n,1a)}});C.J(["5Q","5P","5M","5L"],9(i,n){C.15[n]=9(a,b){F 7.1l(":"+n+"("+a+")",b)}});C.J(["1u","24"],9(i,n){C.15[n]=9(h){F h==Q?(7.H?C.1h(7[0],n):K):7.1h(n,h.1b==3n?h:h+"4t")}});E A=C.N.1H&&5K(C.N.6b)<7Z?"(?:[\\\\w*2l-]|\\\\\\\\.)":"(?:[\\\\w\\7Y-\\7V*2l-]|\\\\\\\\.)",5I=1s 3C("^[/>]\\\\s*("+A+"+)"),5H=1s 3C("^("+A+"+)(#)("+A+"+)"),5G=1s 3C("^([#.]?)("+A+"*)");C.14({4w:{"":"m[2]==\'*\'||16.W(a,m[2])","#":"a.3F(\'2j\')==m[2]",":":{5P:"im[3]-0",25:"m[3]-0==i",5Q:"m[3]-0==i",2H:"i==0",2P:"i==r.H-1",5E:"i%2==0",5D:"i%2","2H-3z":"a.P.4L(\'*\')[0]==a","2P-3z":"16.25(a.P.3Y,1,\'4B\')==a","7U-3z":"!16.25(a.P.3Y,2,\'4B\')",5Y:"a.1k",3K:"!a.1k",5L:"(a.5Z||a.7T||\'\').U(m[3])>=0",4N:\'"1C"!=a.L&&16.1h(a,"11")!="1T"&&16.1h(a,"3V")!="1C"\',1C:\'"1C"==a.L||16.1h(a,"11")=="1T"||16.1h(a,"3V")=="1C"\',7R:"!a.30",30:"a.30",27:"a.27",28:"a.28||16.1j(a,\'28\')",2Q:"\'2Q\'==a.L",4e:"\'4e\'==a.L",3i:"\'3i\'==a.L",4v:"\'4v\'==a.L",5C:"\'5C\'==a.L",4u:"\'4u\'==a.L",5B:"\'5B\'==a.L",5A:"\'5A\'==a.L",1X:\'"1X"==a.L||16.W(a,"1X")\',39:"/39|2b|7P|1X/i.1d(a.W)",2N:"16.1F(m[3],a).H"},"[":"16.1F(m[2],a).H"},5x:[/^\\[ *(@)([\\w-]+) *([!*$^~=]*) *(\'?"?)(.*?)\\4 *\\]/,/^(\\[)\\s*(.*?(\\[.*?\\])?[^[]*?)\\s*\\]/,/^(:)([\\w-]+)\\("?\'?(.*?(\\(.*?\\))?[^(]*?)"?\'?\\)/,1s 3C("^([:.#]*)("+A+"+)")],2R:9(a,c,b){E d,1Y=[];20(a&&a!=d){d=a;E f=C.1l(a,c,b);a=f.t.1v(/^\\s*,\\s*/,"");1Y=b?c=f.r:C.29(1Y,f.r)}F 1Y},1F:9(t,l){6(1f t!="1E")F[t];6(l&&!l.1t)l=K;l=l||R;6(!t.U("//")){t=t.2K(2,t.H)}G 6(!t.U("/")&&!l.2I){l=l.3D;t=t.2K(1,t.H);6(t.U("/")>=1)t=t.2K(t.U("/"),t.H)}E d=[l],2q=[],2P;20(t&&2P!=t){E r=[];2P=t;t=C.2s(t).1v(/^\\/\\//,"");E k=M;E g=5I;E m=g.2d(t);6(m){E o=m[1].1I();I(E i=0;d[i];i++)I(E c=d[i].1k;c;c=c.2a)6(c.1t==1&&(o=="*"||c.W.1I()==o.1I()))r.Y(c);d=r;t=t.1v(g,"");6(t.U(" ")==0)5X;k=O}G{g=/^((\\/?\\.\\.)|([>\\/+~]))\\s*(\\w*)/i;6((m=g.2d(t))!=K){r=[];E o=m[4],1q=C.1q++;m=m[1];I(E j=0,2o=d.H;j<2o;j++)6(m.U("..")<0){E n=m=="~"||m=="+"?d[j].2a:d[j].1k;I(;n;n=n.2a)6(n.1t==1){6(m=="~"&&n.1q==1q)1J;6(!o||n.W.1I()==o.1I()){6(m=="~")n.1q=1q;r.Y(n)}6(m=="+")1J}}G r.Y(d[j].P);d=r;t=C.2s(t.1v(g,""));k=O}}6(t&&!k){6(!t.U(",")){6(l==d[0])d.4s();2q=C.29(2q,d);r=d=[l];t=" "+t.2K(1,t.H)}G{E h=5H;E m=h.2d(t);6(m){m=[0,m[2],m[3],m[1]]}G{h=5G;m=h.2d(t)}m[2]=m[2].1v(/\\\\/g,"");E f=d[d.H-1];6(m[1]=="#"&&f&&f.37&&!C.3E(f)){E p=f.37(m[2]);6((C.N.12||C.N.2t)&&p&&1f p.2j=="1E"&&p.2j!=m[2])p=C(\'[@2j="\'+m[2]+\'"]\',f)[0];d=r=p&&(!m[3]||C.W(p,m[3]))?[p]:[]}G{I(E i=0;d[i];i++){E a=m[1]!=""||m[0]==""?"*":m[2];6(a=="*"&&d[i].W.2D()=="4P")a="2O";r=C.29(r,d[i].4L(a))}6(m[1]==".")r=C.4r(r,m[2]);6(m[1]=="#"){E e=[];I(E i=0;r[i];i++)6(r[i].3F("2j")==m[2]){e=[r[i]];1J}r=e}d=r}t=t.1v(h,"")}}6(t){E b=C.1l(t,r);d=r=b.r;t=C.2s(b.t)}}6(t)d=[];6(d&&l==d[0])d.4s();2q=C.29(2q,d);F 2q},4r:9(r,m,a){m=" "+m+" ";E c=[];I(E i=0;r[i];i++){E b=(" "+r[i].18+" ").U(m)>=0;6(!a&&b||a&&!b)c.Y(r[i])}F c},1l:9(t,r,h){E d;20(t&&t!=d){d=t;E p=C.5x,m;I(E i=0;p[i];i++){m=p[i].2d(t);6(m){t=t.7N(m[0].H);m[2]=m[2].1v(/\\\\/g,"");1J}}6(!m)1J;6(m[1]==":"&&m[2]=="5l")r=C.1l(m[3],r,O).r;G 6(m[1]==".")r=C.4r(r,m[2],h);G 6(m[1]=="@"){E g=[],L=m[3];I(E i=0,2o=r.H;i<2o;i++){E a=r[i],z=a[C.4q[m[2]]||m[2]];6(z==K||/5R|32|28/.1d(m[2]))z=C.1j(a,m[2])||\'\';6((L==""&&!!z||L=="="&&z==m[5]||L=="!="&&z!=m[5]||L=="^="&&z&&!z.U(m[5])||L=="$="&&z.2K(z.H-m[5].H)==m[5]||(L=="*="||L=="~=")&&z.U(m[5])>=0)^h)g.Y(a)}r=g}G 6(m[1]==":"&&m[2]=="25-3z"){E e=C.1q++,g=[],1d=/(\\d*)n\\+?(\\d*)/.2d(m[3]=="5E"&&"2n"||m[3]=="5D"&&"2n+1"||!/\\D/.1d(m[3])&&"n+"+m[3]||m[3]),2H=(1d[1]||1)-0,d=1d[2]-0;I(E i=0,2o=r.H;i<2o;i++){E j=r[i],P=j.P;6(e!=P.1q){E c=1;I(E n=P.1k;n;n=n.2a)6(n.1t==1)n.4o=c++;P.1q=e}E b=M;6(2H==1){6(d==0||j.4o==d)b=O}G 6((j.4o+d)%2H==0)b=O;6(b^h)g.Y(j)}r=g}G{E f=C.4w[m[1]];6(1f f!="1E")f=C.4w[m[1]][m[2]];f=2T("M||9(a,i){F "+f+"}");r=C.2B(r,f,h)}}F{r:r,t:t}},4C:9(c){E b=[];E a=c.P;20(a&&a!=R){b.Y(a);a=a.P}F b},25:9(a,e,c,b){e=e||1;E d=0;I(;a;a=a[c])6(a.1t==1&&++d==e)1J;F a},4A:9(n,a){E r=[];I(;n;n=n.2a){6(n.1t==1&&(!a||n!=a))r.Y(n)}F r}});C.1c={1r:9(f,d,c,b){6(C.N.12&&f.3t!=Q)f=19;6(!c.22)c.22=7.22++;6(b!=Q){E e=c;c=9(){F e.T(7,1a)};c.V=b;c.22=e.22}6(!f.$1i)f.$1i={};6(!f.$1y)f.$1y=9(){E a;6(1f C=="Q"||C.1c.4n)F a;a=C.1c.1y.T(f,1a);F a};E g=f.$1i[d];6(!g){g=f.$1i[d]={};6(f.4m)f.4m(d,f.$1y,M);G f.7M("3r"+d,f.$1y)}g[c.22]=c;7.1D[d]=O},22:1,1D:{},23:9(c,b,a){E d=c.$1i,2c,45;6(d){6(b&&b.L){a=b.4l;b=b.L}6(!b){I(b 17 d)7.23(c,b)}G 6(d[b]){6(a)4k d[b][a.22];G I(a 17 c.$1i[b])4k d[b][a];I(2c 17 d[b])1J;6(!2c){6(c.4j)c.4j(b,c.$1y,M);G c.7L("3r"+b,c.$1y);2c=K;4k d[b]}}I(2c 17 d)1J;6(!2c)c.$1y=c.$1i=K}},1z:9(c,b,d){b=C.2V(b||[]);6(!d){6(7.1D[c])C("*").1r([19,R]).1z(c,b)}G{E a,2c,15=C.1g(d[c]||K);b.42(7.4i({L:c,1S:d}));6(C.1g(d.$1y))a=d.$1y.T(d,b);6(!15&&d["3r"+c]&&d["3r"+c].T(d,b)===M)a=M;6(15&&a!==M&&!(C.W(d,\'a\')&&c=="4h")){7.4n=O;d[c]()}7.4n=M}},1y:9(b){E a;b=C.1c.4i(b||19.1c||{});E c=7.$1i&&7.$1i[b.L],2e=1K.3v.3S.2S(1a,1);2e.42(b);I(E j 17 c){2e[0].4l=c[j];2e[0].V=c[j].V;6(c[j].T(7,2e)===M){b.2u();b.2X();a=M}}6(C.N.12)b.1S=b.2u=b.2X=b.4l=b.V=K;F a},4i:9(c){E a=c;c=C.14({},a);c.2u=9(){6(a.2u)a.2u();a.7I=M};c.2X=9(){6(a.2X)a.2X();a.7H=O};6(!c.1S&&c.5r)c.1S=c.5r;6(C.N.1H&&c.1S.1t==3)c.1S=a.1S.P;6(!c.4g&&c.4F)c.4g=c.4F==c.1S?c.7C:c.4F;6(c.5p==K&&c.66!=K){E e=R.3D,b=R.4z;c.5p=c.66+(e&&e.5o||b.5o||0);c.7z=c.7v+(e&&e.5m||b.5m||0)}6(!c.3Q&&(c.5k||c.5j))c.3Q=c.5k||c.5j;6(!c.5i&&c.5g)c.5i=c.5g;6(!c.3Q&&c.1X)c.3Q=(c.1X&1?1:(c.1X&2?3:(c.1X&4?2:0)));F c}};C.15.14({3l:9(c,a,b){F c=="5f"?7.5e(c,a,b):7.J(9(){C.1c.1r(7,c,b||a,b&&a)})},5e:9(d,b,c){F 7.J(9(){C.1c.1r(7,d,9(a){C(7).49(a);F(c||b).T(7,1a)},c&&b)})},49:9(a,b){F 7.J(9(){C.1c.23(7,a,b)})},1z:9(a,b){F 7.J(9(){C.1c.1z(a,b,7)})},1W:9(){E a=1a;F 7.4h(9(e){7.3T=0==7.3T?1:0;e.2u();F a[7.3T].T(7,[e])||M})},7p:9(f,g){9 3U(e){E p=e.4g;20(p&&p!=7)2g{p=p.P}2h(e){p=7};6(p==7)F M;F(e.L=="3W"?f:g).T(7,[e])}F 7.3W(3U).5b(3U)},1L:9(f){5a();6(C.36)f.T(R,[C]);G C.2C.Y(9(){F f.T(7,[C])});F 7}});C.14({36:M,2C:[],1L:9(){6(!C.36){C.36=O;6(C.2C){C.J(C.2C,9(){7.T(R)});C.2C=K}6(C.N.3J||C.N.2t)R.4j("59",C.1L,M);6(!19.7m.H)C(19).2f(9(){C("#4b").23()})}}});C.J(("7l,7k,2f,7j,7i,5f,4h,7g,"+"7f,7d,7c,3W,5b,7b,2b,"+"4u,7a,79,78,3f").2M(","),9(i,o){C.15[o]=9(f){F f?7.3l(o,f):7.1z(o)}});E w=M;9 5a(){6(w)F;w=O;6(C.N.3J||C.N.2t)R.4m("59",C.1L,M);G 6(C.N.12){R.75("<73"+"72 2j=4b 70=O "+"32=//:><\\/33>");E a=R.37("4b");6(a)a.6Z=9(){6(R.3d!="1x")F;C.1L()};a=K}G 6(C.N.1H)C.48=3t(9(){6(R.3d=="6Y"||R.3d=="1x"){47(C.48);C.48=K;C.1L()}},10);C.1c.1r(19,"2f",C.1L)}C.15.14({6X:9(c,b,a){7.2f(c,b,a,1)},2f:9(g,e,c,d){6(C.1g(g))F 7.3l("2f",g);c=c||9(){};E f="46";6(e)6(C.1g(e)){c=e;e=K}G{e=C.2O(e);f="55"}E h=7;C.31({1G:g,L:f,V:e,2F:d,1x:9(a,b){6(b=="1U"||!d&&b=="54")h.5W(a.43);4x(9(){h.J(c,[a.43,b,a])},13)}});F 7},6W:9(){F C.2O(7)},6V:9(){}});C.J("53,52,51,50,4Z,5h".2M(","),9(i,o){C.15[o]=9(f){F 7.3l(o,f)}});C.14({21:9(e,c,a,d,b){6(C.1g(c)){a=c;c=K}F C.31({L:"46",1G:e,V:c,1U:a,3G:d,2F:b})},6U:9(d,b,a,c){F C.21(d,b,a,c,1)},6T:9(b,a){F C.21(b,K,a,"33")},77:9(c,b,a){F C.21(c,b,a,"56")},6S:9(d,b,a,c){6(C.1g(b)){a=b;b={}}F C.31({L:"55",1G:d,V:b,1U:a,3G:c})},6R:9(a){C.3u.1Q=a},6Q:9(a){C.14(C.3u,a)},3u:{1D:O,L:"46",1Q:0,4Y:"6P/x-6O-38-6N",4X:O,2w:O,V:K},3h:{},31:9(s){s=C.14(O,s,C.14(O,{},C.3u,s));6(s.V){6(s.4X&&1f s.V!="1E")s.V=C.2O(s.V);6(s.L.2D()=="21"){s.1G+=(s.1G.U("?")>-1?"&":"?")+s.V;s.V=K}}6(s.1D&&!C.40++)C.1c.1z("53");E f=M;E h=19.4W?1s 4W("6M.6K"):1s 58();h.6J(s.L,s.1G,s.2w);6(s.V)h.4c("7r-7s",s.4Y);6(s.2F)h.4c("6G-3Z-6E",C.3h[s.1G]||"7w, 6C 7y 6B 4J:4J:4J 6z");h.4c("X-7D-7E","58");6(s.4U)s.4U(h);6(s.1D)C.1c.1z("5h",[h,s]);E g=9(d){6(!f&&h&&(h.3d==4||d=="1Q")){f=O;6(i){47(i);i=K}E c=d=="1Q"&&"1Q"||!C.5n(h)&&"3f"||s.2F&&C.5s(h,s.1G)&&"54"||"1U";6(c=="1U"){2g{E a=C.5q(h,s.3G)}2h(e){c="4I"}}6(c=="1U"){E b;2g{b=h.4f("4S-3Z")}2h(e){}6(s.2F&&b)C.3h[s.1G]=b;6(s.1U)s.1U(a,c);6(s.1D)C.1c.1z("4Z",[h,s])}G C.3X(s,h,c);6(s.1D)C.1c.1z("51",[h,s]);6(s.1D&&!--C.40)C.1c.1z("52");6(s.1x)s.1x(h,c);6(s.2w)h=K}};6(s.2w){E i=3t(g,13);6(s.1Q>0)4x(9(){6(h){h.6w();6(!f)g("1Q")}},s.1Q)}2g{h.6v(s.V)}2h(e){C.3X(s,h,K,e)}6(!s.2w)g();F h},3X:9(s,a,b,e){6(s.3f)s.3f(a,b,e);6(s.1D)C.1c.1z("50",[a,s,e])},40:0,5n:9(r){2g{F!r.26&&6t.6r=="4v:"||(r.26>=4R&&r.26<6q)||r.26==5z||C.N.1H&&r.26==Q}2h(e){}F M},5s:9(a,c){2g{E b=a.4f("4S-3Z");F a.26==5z||b==C.3h[c]||C.N.1H&&a.26==Q}2h(e){}F M},5q:9(r,a){E b=r.4f("6o-L");E c=a=="5F"||!a&&b&&b.U("5F")>=0;V=c?r.7W:r.43;6(c&&V.3D.4y=="4I")7X"4I";6(a=="33")C.4E(V);6(a=="56")V=2T("("+V+")");F V},2O:9(a){E s=[];6(a.1b==1K||a.3w)C.J(a,9(){s.Y(2y(7.6l)+"="+2y(7.2A))});G I(E j 17 a)6(a[j]&&a[j].1b==1K)C.J(a[j],9(){s.Y(2y(j)+"="+2y(7))});G s.Y(2y(j)+"="+2y(a[j]));F s.5w("&")}});C.15.14({1o:9(b,a){F b?7.1B({1u:"1o",24:"1o",1e:"1o"},b,a):7.1l(":1C").J(9(){7.S.11=7.2r?7.2r:"";6(C.1h(7,"11")=="1T")7.S.11="2m"}).3L()},1p:9(b,a){F b?7.1B({1u:"1p",24:"1p",1e:"1p"},b,a):7.1l(":4N").J(9(){7.2r=7.2r||C.1h(7,"11");6(7.2r=="1T")7.2r="2m";7.S.11="1T"}).3L()},5O:C.15.1W,1W:9(a,b){F C.1g(a)&&C.1g(b)?7.5O(a,b):a?7.1B({1u:"1W",24:"1W",1e:"1W"},a,b):7.J(9(){C(7)[C(7).3y(":1C")?"1o":"1p"]()})},6i:9(b,a){F 7.1B({1u:"1o"},b,a)},6h:9(b,a){F 7.1B({1u:"1p"},b,a)},6g:9(b,a){F 7.1B({1u:"1W"},b,a)},6f:9(b,a){F 7.1B({1e:"1o"},b,a)},89:9(b,a){F 7.1B({1e:"1p"},b,a)},6e:9(c,a,b){F 7.1B({1e:a},c,b)},1B:9(d,h,f,g){F 7.1n(9(){E c=C(7).3y(":1C"),1Z=C.5V(h,f,g),5U=7;I(E p 17 d){6(d[p]=="1p"&&c||d[p]=="1o"&&!c)F C.1g(1Z.1x)&&1Z.1x.T(7);6(p=="1u"||p=="24"){1Z.11=C.1h(7,"11");1Z.2z=7.S.2z}}6(1Z.2z!=K)7.S.2z="1C";7.2v=C.14({},d);C.J(d,9(a,b){E e=1s C.2Y(5U,1Z,a);6(b.1b==3x)e.3R(e.1Y()||0,b);G e[b=="1W"?c?"1o":"1p":b](d)});F O})},1n:9(a,b){6(!b){b=a;a="2Y"}F 7.J(9(){6(!7.1n)7.1n={};6(!7.1n[a])7.1n[a]=[];7.1n[a].Y(b);6(7.1n[a].H==1)b.T(7)})}});C.14({5V:9(b,a,c){E d=b&&b.1b==8G?b:{1x:c||!c&&a||C.1g(b)&&b,1N:b,35:c&&a||a&&a.1b!=8F&&a};d.1N=(d.1N&&d.1N.1b==3x?d.1N:{8D:8C,8B:4R}[d.1N])||8A;d.2U=d.1x;d.1x=9(){C.68(7,"2Y");6(C.1g(d.2U))d.2U.T(7)};F d},35:{62:9(p,n,b,a){F b+a*p},4H:9(p,n,b,a){F((-67.8z(p*67.8y)/2)+0.5)*a+b}},1n:{},68:9(b,a){a=a||"2Y";6(b.1n&&b.1n[a]){b.1n[a].4s();E f=b.1n[a][0];6(f)f.T(b)}},3N:[],2Y:9(f,e,g){E z=7;E y=f.S;z.a=9(){6(e.3q)e.3q.T(f,[z.2x]);6(g=="1e")C.1j(y,"1e",z.2x);G{y[g]=5K(z.2x)+"4t";6(g=="1u"||g=="24")y.11="2m"}};z.65=9(){F 3m(C.1h(f,g))};z.1Y=9(){E r=3m(C.34(f,g));F r&&r>-8v?r:z.65()};z.3R=9(c,b){z.4M=(1s 64()).63();z.2x=c;z.a();C.3N.Y(9(){F z.3q(c,b)});6(C.3N.H==1){E d=3t(9(){E a=C.3N;I(E i=0;ie.1N+z.4M){z.2x=c;z.a();6(f.2v)f.2v[g]=O;E b=O;I(E i 17 f.2v)6(f.2v[i]!==O)b=M;6(b){6(e.11!=K){y.2z=e.2z;y.11=e.11;6(C.1h(f,"11")=="1T")y.11="2m"}6(e.1p)y.11="1T";6(e.1p||e.1o)I(E p 17 f.2v)C.1j(y,p,f.2i[p])}6(b&&C.1g(e.1x))e.1x.T(f);F M}G{E n=t-7.4M;E p=n/e.1N;z.2x=C.35[e.35||(C.35.4H?"4H":"62")](p,n,a,(c-a),e.1N);z.a()}F O}}})})();',62,541,'||||||if|this||function|||||||||||||||||||||||||||||||var|return|else|length|for|each|null|type|false|browser|true|parentNode|undefined|document|style|apply|indexOf|data|nodeName||push|||display|msie||extend|fn|jQuery|in|className|window|arguments|constructor|event|test|opacity|typeof|isFunction|css|events|attr|firstChild|filter|div|queue|show|hide|mergeNum|add|new|nodeType|height|replace|tbody|complete|handle|trigger|table|animate|hidden|global|string|find|url|safari|toUpperCase|break|Array|ready|al|duration|pushStack|tb|timeout|stack|target|none|success|swap|toggle|button|cur|opt|while|get|guid|remove|width|nth|status|checked|selected|merge|nextSibling|select|ret|exec|args|load|try|catch|orig|id|match|_|block||rl|insertBefore|done|oldblock|trim|opera|preventDefault|curAnim|async|now|encodeURIComponent|overflow|value|grep|readyList|toLowerCase|color|ifModified|val|first|ownerDocument|domManip|substr|defaultView|split|has|param|last|text|multiFilter|call|eval|old|makeArray|innerHTML|stopPropagation|fx|childNodes|disabled|ajax|src|script|curCSS|easing|isReady|getElementById|form|input|float|getComputedStyle|clean|readyState|removeChild|error|static|lastModified|checkbox|selectedIndex|position|bind|parseFloat|String|oWidth|oHeight|step|on|toString|setInterval|ajaxSettings|prototype|jquery|Number|is|child|ol|cloneNode|RegExp|documentElement|isXMLDoc|getAttribute|dataType|append|styleFloat|mozilla|empty|end|map|timers|tr|el|which|custom|slice|lastToggle|handleHover|visibility|mouseover|handleError|lastChild|Modified|active|currentStyle|unshift|responseText|getPropertyValue|index|GET|clearInterval|safariTimer|unbind|init|__ie_init|setRequestHeader|unique|radio|getResponseHeader|relatedTarget|click|fix|removeEventListener|delete|handler|addEventListener|triggered|nodeIndex|appendChild|props|classFilter|shift|px|submit|file|expr|setTimeout|tagName|body|sibling|previousSibling|parents|deep|globalEval|fromElement|cssFloat|swing|parsererror|00|inArray|getElementsByTagName|startTime|visible|num|object|prop|200|Last|colgroup|beforeSend|fieldset|ActiveXObject|processData|contentType|ajaxSuccess|ajaxError|ajaxComplete|ajaxStop|ajaxStart|notmodified|POST|json|appendTo|XMLHttpRequest|DOMContentLoaded|bindReady|mouseout|prevObject|removeAttr|one|unload|ctrlKey|ajaxSend|metaKey|keyCode|charCode|not|scrollTop|httpSuccess|scrollLeft|pageX|httpData|srcElement|httpNotModified|after|before|prepend|join|parse|zoom|304|reset|image|password|odd|even|xml|quickClass|quickID|quickChild|setArray|parseInt|contains|gt|execScript|_toggle|lt|eq|href|nodeValue|alpha|self|speed|html|continue|parent|textContent|createTextNode|webkit|linear|getTime|Date|max|clientX|Math|dequeue|fl|createElement|version|100|NaN|fadeTo|fadeIn|slideToggle|slideUp|slideDown|setAttribute|getAttributeNode|name|method|action|content|cssText|300|protocol|FORM|location|options|send|abort|col|th|GMT|td|1970|01|cap|Since|colg|If|tfoot|thead|open|XMLHTTP|leg|Microsoft|urlencoded|www|application|ajaxSetup|ajaxTimeout|post|getScript|getIfModified|evalScripts|serialize|loadIfModified|loaded|onreadystatechange|defer|clientWidth|ipt|scr|clientHeight|write|relative|getJSON|keyup|keypress|keydown|change|mousemove|mouseup|left|mousedown|dblclick|right|scroll|resize|focus|blur|frames|absolute|clone|hover|offsetWidth|Content|Type|offsetHeight|Width|clientY|Thu|border|Jan|pageY|padding|Left|toElement|Requested|With|Right|Bottom|cancelBubble|returnValue|Top|size|detachEvent|attachEvent|substring|line|textarea|weight|enabled|font|innerText|only|uFFFF|responseXML|throw|u0128|417|toggleClass|removeClass|wrap|addClass|removeAttribute|insertAfter|prependTo|children|siblings|fadeOut|noConflict|prev|next|Boolean|maxLength|maxlength|readOnly|readonly|class|htmlFor|CSS1Compat|compatMode|boxModel|compatible|ie|ra|it|1px|rv|splice|userAgent|10000|navigator|concat|PI|cos|400|fast|600|slow|reverse|Function|Object|array|ig'.split('|'),0,{})) \ No newline at end of file Fisheye: Tag 1.2 refers to a dead (removed) revision in file `openacs-4/packages/xowiki/www/resources/wymeditor/jquery.js'. Fisheye: No comparison available. Pass `N' to diff? Index: openacs-4/packages/xowiki/www/resources/wymeditor/jquery.wymeditor.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/resources/wymeditor/jquery.wymeditor.js,v diff -u -r1.2 -r1.3 --- openacs-4/packages/xowiki/www/resources/wymeditor/jquery.wymeditor.js 27 Jul 2007 01:15:20 -0000 1.2 +++ openacs-4/packages/xowiki/www/resources/wymeditor/jquery.wymeditor.js 14 Sep 2007 17:53:31 -0000 1.3 @@ -45,147 +45,6 @@ }; WYM_STRINGS['en'] = WYM_STRINGS_EN; -if(!WYM_STRINGS) var WYM_STRINGS = new Array(); - -var WYM_STRINGS_DE = { - Strong: 'Fett', - Emphasis: 'Kursiv', - Superscript: 'Text hochstellen', - Subscript: 'Text tiefstellen', - Ordered_List: 'Geordnete Liste einfügen', - Unordered_List: 'Ungeordnete Liste einfügen', - Indent: 'Einzug erhöhen', - Outdent: 'Einzug vermindern', - Undo: 'Befehle rückgängig machen', - Redo: 'Befehle wiederherstellen', - Link: 'Hyperlink einfügen', - Unlink: 'Hyperlink entfernen', - Image: 'Bild einfügen', - Table: 'Tabelle einfügen', - HTML: 'HTML anzeigen/verstecken', - Paragraph: 'Absatz', - Heading_1: 'Überschrift 1', - Heading_2: 'Überschrift 2', - Heading_3: 'Überschrift 3', - Heading_4: 'Überschrift 4', - Heading_5: 'Überschrift 5', - Heading_6: 'Überschrift 6', - Preformatted: 'Vorformatiert', - Blockquote: 'Zitat', - Table_Header: 'Tabellenüberschrift', - URL: 'URL', - Title: 'Titel', - Alternative_Text: 'Alternativer Text', - Caption: 'Tabellenüberschrift', - Number_Of_Rows: 'Anzahl Zeilen', - Number_Of_Cols: 'Anzahl Spalten', - Submit: 'Absenden', - Cancel: 'Abbrechen', - Choose: 'Auswählen', - Preview: 'Vorschau', - Paste_From_Word: 'Aus Word einfügen', - Tools: 'Werkzeuge', - Containers: 'Inhaltstyp', - Classes: 'Klassen', - Status: 'Status', - Source_Code: 'Quellcode' -}; - -WYM_STRINGS['de'] = WYM_STRINGS_DE; -if(!WYM_STRINGS) var WYM_STRINGS = new Array(); - -var WYM_STRINGS_ES = { - Strong: 'Resaltar', - Emphasis: 'Enfatizar', - Superscript: 'Superindice', - Subscript: 'Subindice', - Ordered_List: 'Lista ordenada', - Unordered_List: 'Lista sin ordenar', - Indent: 'Indentado', - Outdent: 'Sin indentar', - Undo: 'Deshacer', - Redo: 'Rehacer', - Link: 'Enlazar', - Unlink: 'Eliminar enlace', - Image: 'Imagen', - Table: 'Tabla', - HTML: 'HTML', - Paragraph: 'Párrafo', - Heading_1: 'Cabecera 1', - Heading_2: 'Cabecera 2', - Heading_3: 'Cabecera 3', - Heading_4: 'Cabecera 4', - Heading_5: 'Cabecera 5', - Heading_6: 'Cabecera 6', - Preformatted: 'Preformateado', - Blockquote: 'Cita', - Table_Header: 'Cabecera de la tabla', - URL: 'URL', - Title: 'Título', - Alternative_Text: 'Texto alternativo', - Caption: 'Leyenda', - Number_Of_Rows: 'Número de filas', - Number_Of_Cols: 'Número de columnas', - Submit: 'Enviar', - Cancel: 'Cancelar', - Choose: 'Seleccionar', - Preview: 'Vista previa', - Paste_From_Word: 'Pegar desde Word', - Tools: 'Herramientas', - Containers: 'Contenedores', - Classes: 'Clases', - Status: 'Estado', - Source_Code: 'Código fuente' -}; - -WYM_STRINGS['es'] = WYM_STRINGS_ES; -if(!WYM_STRINGS) var WYM_STRINGS = new Array(); - -var WYM_STRINGS_FR = { - Strong: 'Mise en évidence', - Emphasis: 'Emphase', - Superscript: 'Exposant', - Subscript: 'Indice', - Ordered_List: 'Liste Ordonnée', - Unordered_List: 'Liste Non-Ordonnée', - Indent: 'Imbriqué', - Outdent: 'Non-imbriqué', - Undo: 'Annuler', - Redo: 'Rétablir', - Link: 'Lien', - Unlink: 'Supprimer le Lien', - Image: 'Image', - Table: 'Tableau', - HTML: 'HTML', - Paragraph: 'Paragraphe', - Heading_1: 'Titre 1', - Heading_2: 'Titre 2', - Heading_3: 'Titre 3', - Heading_4: 'Titre 4', - Heading_5: 'Titre 5', - Heading_6: 'Titre 6', - Preformatted: 'Pré-formatté', - Blockquote: 'Citation', - Table_Header: 'Cellule de titre', - URL: 'URL', - Title: 'Titre', - Alternative_Text: 'Texte alternatif', - Caption: 'Légende', - Number_Of_Rows: 'Nombre de lignes', - Number_Of_Cols: 'Nombre de colonnes', - Submit: 'Envoyer', - Cancel: 'Annuler', - Choose: 'Choisir', - Preview: 'Prévisualisation', - Paste_From_Word: 'Copier depuis Word', - Tools: 'Outils', - Containers: 'Type de texte', - Classes: 'Type de contenu', - Status: 'Infos', - Source_Code: 'Code source' -}; - -WYM_STRINGS['fr'] = WYM_STRINGS_FR; /* * WYMeditor : what you see is What You Mean web-based editor * Copyright (C) 2007 H.O.net - http://www.honet.be/ @@ -218,6 +77,7 @@ var WYM_INDEX = "{Wym_Index}"; var WYM_BASE_PATH = "{Wym_Base_Path}"; var WYM_CSS_PATH = "{Wym_Css_Path}"; + var WYM_WYM_PATH = "{Wym_Wym_Path}"; var WYM_IFRAME_BASE_PATH = "{Wym_Iframe_Base_Path}"; var WYM_IFRAME_DEFAULT = "iframe/default/"; var WYM_JQUERY_PATH = "{Wym_Jquery_Path}"; @@ -343,18 +203,24 @@ cssPath: false, + wymPath: false, + iframeBasePath: false, jQueryPath: false, + xhtmlParser: 'xhtml_parser.pack.js', + + cssParser: 'wym_css_parser.pack.js', + styles: false, stylesheet: false, lang: "en", boxHtml: "
" - + "
" + + "
" + WYM_TOOLS + "
" + "
" @@ -368,6 +234,8 @@ + WYM_STATUS + "
" + "
" + + "WYMeditor" + "
" + "
", @@ -504,6 +372,7 @@ cancelSelector: ".wym_cancel", previewSelector: "", + dialogTypeSelector: ".wym_dialog_type", dialogLinkSelector: ".wym_dialog_link", dialogImageSelector: ".wym_dialog_image", dialogTableSelector: ".wym_dialog_table", @@ -532,8 +401,8 @@ + "'>" + "" + + WYM_WYM_PATH + + "'>" + "" + WYM_DIALOG_BODY + "", @@ -543,6 +412,9 @@ + ">" + "
" + "
" + + "" + "{Link}" + "
" + "" @@ -567,6 +439,9 @@ + ">" + "" + "
" + + "" + "{Image}" + "
" + "" @@ -595,6 +470,9 @@ + ">" + "" + "
" + + "" + "{Table}" + "
" + "" @@ -622,6 +500,9 @@ + " onload='WYM_INIT_DIALOG(" + WYM_INDEX + ")'" + ">" + "" + + "" + "
" + "{Paste_From_Word}" + "
" @@ -657,9 +538,9 @@ }, options); - return this.each(function(i) { + return this.each(function() { - new Wymeditor(jQuery(this),i,options); + new Wymeditor(jQuery(this),options); }); }; @@ -681,12 +562,10 @@ /* @name Wymeditor * @description WYMeditor class */ -function Wymeditor(elem,index,options) { +function Wymeditor(elem,options) { - WYM_INSTANCES[index] = this; - + this._index = WYM_INSTANCES.push(this) - 1; this._element = elem; - this._index = index; this._options = options; this._html = jQuery(elem).val(); @@ -695,6 +574,8 @@ || this.computeBasePath(); this._options.cssPath = this._options.cssPath || this.computeCssPath(); + this._options.wymPath = this._options.wymPath + || this.computeWymPath(); this._options.iframeBasePath = this._options.iframeBasePath || this._options.basePath + WYM_IFRAME_DEFAULT; this._options.jQueryPath = this._options.jQueryPath @@ -723,7 +604,6 @@ else if (jQuery.browser.safari) { //commented until supported //var WymClass = new WymClassSafari(this); - var WymClass = new WymClassOpera(this); } if(WymClass) { @@ -739,7 +619,9 @@ this.helper = new XmlHelper(); //extend the Wymeditor object - jQuery.extend(this, WymClass); + //don't use jQuery.extend since 1.1.4 + //jQuery.extend(this, WymClass); + for (prop in WymClass) { this[prop] = WymClass[prop]; } //load wymbox this._box = jQuery(this._element).hide().after(this._options.boxHtml).next(); @@ -1160,6 +1042,7 @@ dialogHtml = dialogHtml .replaceAll(WYM_BASE_PATH, this._options.basePath) .replaceAll(WYM_CSS_PATH, this._options.cssPath) + .replaceAll(WYM_WYM_PATH, this._options.wymPath) .replaceAll(WYM_JQUERY_PATH, this._options.jQueryPath) .replaceAll(WYM_DIALOG_TITLE, this.encloseString(sType)) .replaceAll(WYM_DIALOG_BODY, sBodyHtml) @@ -1227,13 +1110,19 @@ Wymeditor.prototype.computeBasePath = function() { return jQuery(jQuery.grep(jQuery('script'), function(s){ - return (s.src && s.src.match(/jquery\.wymeditor\.js(\?.*)?$/ )) - })).attr('src').replace(/jquery\.wymeditor\.js(\?.*)?$/, ''); + return (s.src && s.src.match(/jquery\.wymeditor(\.pack){0,1}\.js(\?.*)?$/ )) + })).attr('src').replace(/jquery\.wymeditor(\.pack){0,1}\.js(\?.*)?$/, ''); }; +Wymeditor.prototype.computeWymPath = function() { + return jQuery(jQuery.grep(jQuery('script'), function(s){ + return (s.src && s.src.match(/jquery\.wymeditor(\.pack){0,1}\.js(\?.*)?$/ )) + })).attr('src'); +}; + Wymeditor.prototype.computeJqueryPath = function() { return jQuery(jQuery.grep(jQuery('script'), function(s){ - return (s.src && s.src.match(/jquery\.js(\?.*)?$/ )) + return (s.src && s.src.match(/jquery(-(.*)){0,1}(\.pack){0,1}\.js(\?.*)?$/ )) })).attr('src'); }; @@ -1246,7 +1135,8 @@ Wymeditor.prototype.loadXhtmlParser = function(WymClass) { if(typeof XhtmlSaxListener != 'function'){ // This is the only way to get loaded functions in the global scope until jQuery.globalEval works in safari - eval(jQuery.ajax({url:this._options.basePath+'xhtml_parser.js',async:false}).responseText); + eval(jQuery.ajax({url:this._options.basePath + + this._options.xhtmlParser, async:false}).responseText); window.XmlHelper = XmlHelper; window.XhtmlValidator = XhtmlValidator; window.ParallelRegex = ParallelRegex; @@ -1264,7 +1154,8 @@ Wymeditor.prototype.configureEditorUsingRawCss = function() { if(typeof WymCssParser != 'function'){ - eval(jQuery.ajax({url:this._options.basePath+'wym_css_parser.js',async:false}).responseText); + eval(jQuery.ajax({url:this._options.basePath + + this._options.cssParser, async:false}).responseText); window.WymCssLexer = WymCssLexer; window.WymCssParser = WymCssParser; } @@ -1352,7 +1243,7 @@ jQuery(this._box).find(".wym_section").hover(function(){ jQuery(this).addClass("hover"); },function(){ - jQuery(this).removeClass("hover"); + jQuery(this).removeClass("hover"); }); break; @@ -1368,11 +1259,21 @@ var wym = window.opener.WYM_INSTANCES[index]; var doc = window.document; var selected = wym.selected(); + var dialogType = jQuery(wym._options.dialogTypeSelector).val(); var sStamp = wym.uniqueStamp(); - //fix MSIE selection if link image has been clicked - if(!selected && wym._selected_image) { - selected = jQuery(wym._selected_image).parentsOrSelf(WYM_A); + switch(dialogType) { + + case WYM_DIALOG_LINK: + //ensure that we select the link to populate the fields + if(selected && selected.tagName && selected.tagName.toLowerCase != WYM_A) + selected = jQuery(selected).parentsOrSelf(WYM_A); + + //fix MSIE selection if link image has been clicked + if(!selected && wym._selected_image) + selected = jQuery(wym._selected_image).parentsOrSelf(WYM_A); + break; + } //pre-init functions @@ -1530,13 +1431,13 @@ var n = this; if (n[0].nodeType == 3) - n = n.parents().lt(1); + n = n.parents().slice(0,1); // if (n.is(jqexpr)) // XXX should work, but doesn't (probably a jQuery bug) if (n.filter(jqexpr).size() == 1) return n; else - return n.parents(jqexpr).lt(1); + return n.parents(jqexpr).slice(0,1); }; String.prototype.insertAt = function(inserted, pos) { @@ -1670,8 +1571,12 @@ this._initialized = true; //init designMode - this._doc.designMode="on"; - this._doc = iframe.contentWindow.document; + this._doc.designMode="on"; + try{ + // (bermi's note) noticed when running unit tests on IE6 + // Is this really needed, it trigger an unexisting property on IE6 + this._doc = iframe.contentWindow.document; + }catch(e){} }; WymClassExplorer.prototype._exec = function(cmd,param) { @@ -1726,6 +1631,7 @@ range.select(); node.focus(); }; + /* * WYMeditor : what you see is What You Mean web-based editor * Copyright (C) 2007 H.O.net - http://www.honet.be/ @@ -1914,12 +1820,18 @@ var wym = WYM_INSTANCES[this.title]; wym._selected_image = null; + var container = null; if(evt.keyCode == 13 && !evt.shiftKey) { //RETURN key //cleanup

between paragraphs jQuery(wym._doc.body).children(WYM_BR).remove(); + + //fix PRE bug #73 + container = wym.selected(); + if(container && container.tagName.toLowerCase() == WYM_PRE) + wym._exec(WYM_FORMAT_BLOCK, WYM_P); //create P after PRE } else if(evt.keyCode != 8 @@ -1932,7 +1844,7 @@ //NOT BACKSPACE, NOT DELETE, NOT CTRL, NOT COMMAND //text nodes replaced by P - var container = wym.selected(); + container = wym.selected(); var name = container.tagName.toLowerCase(); //fix forbidden main containers @@ -1986,19 +1898,9 @@ } } - if(tag != 'li' && (tag == 'ul' || tag == 'ol') && this.last_tag && !this.last_tag_opened && this.last_tag == 'li'){ - this.output = this.output.replace(/<\/li>$/, ''); - this.insertContentAfterClosingTag(tag, ''); - } - this.output += this.helper.tag(tag, attributes, true); }; -WymClassMozilla.prototype.closeBlockTag = function(tag) -{ - this.output = this.output.replace(/
$/, '')+this._getClosingTagContent('before', tag)+""+this._getClosingTagContent('after', tag); -}; - WymClassMozilla.prototype.getTagForStyle = function(style) { if(/bold/.test(style)) return 'strong'; Index: openacs-4/packages/xowiki/www/resources/wymeditor/jquery.wymeditor.pack.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/resources/wymeditor/jquery.wymeditor.pack.js,v diff -u -r1.2 -r1.3 --- openacs-4/packages/xowiki/www/resources/wymeditor/jquery.wymeditor.pack.js 27 Jul 2007 01:15:20 -0000 1.2 +++ openacs-4/packages/xowiki/www/resources/wymeditor/jquery.wymeditor.pack.js 14 Sep 2007 17:53:31 -0000 1.3 @@ -1 +1 @@ -if(!WYM_STRINGS)var WYM_STRINGS=new Array();var WYM_STRINGS_EN={Strong:'Strong',Emphasis:'Emphasis',Superscript:'Superscript',Subscript:'Subscript',Ordered_List:'Ordered List',Unordered_List:'Unordered List',Indent:'Indent',Outdent:'Outdent',Undo:'Undo',Redo:'Redo',Link:'Link',Unlink:'Unlink',Image:'Image',Table:'Table',HTML:'HTML',Paragraph:'Paragraph',Heading_1:'Heading 1',Heading_2:'Heading 2',Heading_3:'Heading 3',Heading_4:'Heading 4',Heading_5:'Heading 5',Heading_6:'Heading 6',Preformatted:'Preformatted',Blockquote:'Blockquote',Table_Header:'Table Header',URL:'URL',Title:'Title',Alternative_Text:'Alternative text',Caption:'Caption',Number_Of_Rows:'Number of rows',Number_Of_Cols:'Number of cols',Submit:'Submit',Cancel:'Cancel',Choose:'Choose',Preview:'Preview',Paste_From_Word:'Paste from Word',Tools:'Tools',Containers:'Containers',Classes:'Classes',Status:'Status',Source_Code:'Source code'};WYM_STRINGS['en']=WYM_STRINGS_EN;if(!WYM_STRINGS)var WYM_STRINGS=new Array();var WYM_STRINGS_DE={Strong:'Fett',Emphasis:'Kursiv',Superscript:'Text hochstellen',Subscript:'Text tiefstellen',Ordered_List:'Geordnete Liste einfügen',Unordered_List:'Ungeordnete Liste einfügen',Indent:'Einzug erhöhen',Outdent:'Einzug vermindern',Undo:'Befehle rückgängig machen',Redo:'Befehle wiederherstellen',Link:'Hyperlink einfügen',Unlink:'Hyperlink entfernen',Image:'Bild einfügen',Table:'Tabelle einfügen',HTML:'HTML anzeigen/verstecken',Paragraph:'Absatz',Heading_1:'Überschrift 1',Heading_2:'Überschrift 2',Heading_3:'Überschrift 3',Heading_4:'Überschrift 4',Heading_5:'Überschrift 5',Heading_6:'Überschrift 6',Preformatted:'Vorformatiert',Blockquote:'Zitat',Table_Header:'Tabellenüberschrift',URL:'URL',Title:'Titel',Alternative_Text:'Alternativer Text',Caption:'Tabellenüberschrift',Number_Of_Rows:'Anzahl Zeilen',Number_Of_Cols:'Anzahl Spalten',Submit:'Absenden',Cancel:'Abbrechen',Choose:'Auswählen',Preview:'Vorschau',Paste_From_Word:'Aus Word einfügen',Tools:'Werkzeuge',Containers:'Inhaltstyp',Classes:'Klassen',Status:'Status',Source_Code:'Quellcode'};WYM_STRINGS['de']=WYM_STRINGS_DE;if(!WYM_STRINGS)var WYM_STRINGS=new Array();var WYM_STRINGS_ES={Strong:'Resaltar',Emphasis:'Enfatizar',Superscript:'Superindice',Subscript:'Subindice',Ordered_List:'Lista ordenada',Unordered_List:'Lista sin ordenar',Indent:'Indentado',Outdent:'Sin indentar',Undo:'Deshacer',Redo:'Rehacer',Link:'Enlazar',Unlink:'Eliminar enlace',Image:'Imagen',Table:'Tabla',HTML:'HTML',Paragraph:'Párrafo',Heading_1:'Cabecera 1',Heading_2:'Cabecera 2',Heading_3:'Cabecera 3',Heading_4:'Cabecera 4',Heading_5:'Cabecera 5',Heading_6:'Cabecera 6',Preformatted:'Preformateado',Blockquote:'Cita',Table_Header:'Cabecera de la tabla',URL:'URL',Title:'Título',Alternative_Text:'Texto alternativo',Caption:'Leyenda',Number_Of_Rows:'Número de filas',Number_Of_Cols:'Número de columnas',Submit:'Enviar',Cancel:'Cancelar',Choose:'Seleccionar',Preview:'Vista previa',Paste_From_Word:'Pegar desde Word',Tools:'Herramientas',Containers:'Contenedores',Classes:'Clases',Status:'Estado',Source_Code:'Código fuente'};WYM_STRINGS['es']=WYM_STRINGS_ES;if(!WYM_STRINGS)var WYM_STRINGS=new Array();var WYM_STRINGS_FR={Strong:'Mise en évidence',Emphasis:'Emphase',Superscript:'Exposant',Subscript:'Indice',Ordered_List:'Liste Ordonnée',Unordered_List:'Liste Non-Ordonnée',Indent:'Imbriqué',Outdent:'Non-imbriqué',Undo:'Annuler',Redo:'Rétablir',Link:'Lien',Unlink:'Supprimer le Lien',Image:'Image',Table:'Tableau',HTML:'HTML',Paragraph:'Paragraphe',Heading_1:'Titre 1',Heading_2:'Titre 2',Heading_3:'Titre 3',Heading_4:'Titre 4',Heading_5:'Titre 5',Heading_6:'Titre 6',Preformatted:'Pré-formatté',Blockquote:'Citation',Table_Header:'Cellule de titre',URL:'URL',Title:'Titre',Alternative_Text:'Texte alternatif',Caption:'Légende',Number_Of_Rows:'Nombre de lignes',Number_Of_Cols:'Nombre de colonnes',Submit:'Envoyer',Cancel:'Annuler',Choose:'Choisir',Preview:'Prévisualisation',Paste_From_Word:'Copier depuis Word',Tools:'Outils',Containers:'Type de texte',Classes:'Type de contenu',Status:'Infos',Source_Code:'Code source'};WYM_STRINGS['fr']=WYM_STRINGS_FR;var WYM_INSTANCES=new Array();var WYM_NAME="name";var WYM_INDEX="{Wym_Index}";var WYM_BASE_PATH="{Wym_Base_Path}";var WYM_CSS_PATH="{Wym_Css_Path}";var WYM_IFRAME_BASE_PATH="{Wym_Iframe_Base_Path}";var WYM_IFRAME_DEFAULT="iframe/default/";var WYM_JQUERY_PATH="{Wym_Jquery_Path}";var WYM_TOOLS="{Wym_Tools}";var WYM_TOOLS_ITEMS="{Wym_Tools_Items}";var WYM_TOOL_NAME="{Wym_Tool_Name}";var WYM_TOOL_TITLE="{Wym_Tool_Title}";var WYM_TOOL_CLASS="{Wym_Tool_Class}";var WYM_CLASSES="{Wym_Classes}";var WYM_CLASSES_ITEMS="{Wym_Classes_Items}";var WYM_CLASS_NAME="{Wym_Class_Name}";var WYM_CLASS_TITLE="{Wym_Class_Title}";var WYM_CONTAINERS="{Wym_Containers}";var WYM_CONTAINERS_ITEMS="{Wym_Containers_Items}";var WYM_CONTAINER_NAME="{Wym_Container_Name}";var WYM_CONTAINER_TITLE="{Wym_Containers_Title}";var WYM_CONTAINER_CLASS="{Wym_Container_Class}";var WYM_HTML="{Wym_Html}";var WYM_IFRAME="{Wym_Iframe}";var WYM_STATUS="{Wym_Status}";var WYM_DIALOG_TITLE="{Wym_Dialog_Title}";var WYM_DIALOG_BODY="{Wym_Dialog_Body}";var WYM_BODY="body";var WYM_STRING="string";var WYM_P="p";var WYM_H1="h1";var WYM_H2="h2";var WYM_H3="h3";var WYM_H4="h4";var WYM_H5="h5";var WYM_H6="h6";var WYM_PRE="pre";var WYM_BLOCKQUOTE="blockquote";var WYM_TD="td";var WYM_TH="th";var WYM_A="a";var WYM_BR="br";var WYM_IMG="img";var WYM_TABLE="table";var WYM_UL="ul";var WYM_OL="ol";var WYM_LI="li";var WYM_CLASS="class";var WYM_HREF="href";var WYM_SRC="src";var WYM_TITLE="title";var WYM_ALT="alt";var WYM_DIALOG_LINK="Link";var WYM_DIALOG_IMAGE="Image";var WYM_DIALOG_TABLE="Table";var WYM_DIALOG_PASTE="Paste_From_Word";var WYM_BOLD="Bold";var WYM_ITALIC="Italic";var WYM_CREATE_LINK="CreateLink";var WYM_INSERT_IMAGE="InsertImage";var WYM_INSERT_TABLE="InsertTable";var WYM_PASTE="Paste";var WYM_INDENT="Indent";var WYM_OUTDENT="Outdent";var WYM_TOGGLE_HTML="ToggleHtml";var WYM_FORMAT_BLOCK="FormatBlock";var WYM_PREVIEW="Preview";var WYM_DEFAULT_SKIN="default";var WYM_MAIN_CONTAINERS=new Array(WYM_P,WYM_H1,WYM_H2,WYM_H3,WYM_H4,WYM_H5,WYM_H6,WYM_PRE,WYM_BLOCKQUOTE);var WYM_BLOCKS=new Array("address","blockquote","div","dl","fieldset","form","h1","h2","h3","h4","h5","h6","hr","noscript","ol","p","pre","table","ul","dd","dt","li","tbody","td","tfoot","th","thead","tr");var WYM_KEY={BACKSPACE:8,ENTER:13,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,CURSOR:new Array(37,38,39,40),DELETE:46};var WYM_NODE={ELEMENT:1,ATTRIBUTE:2,TEXT:3};jQuery.fn.wymeditor=function(options){options=jQuery.extend({html:"",basePath:false,cssPath:false,iframeBasePath:false,jQueryPath:false,styles:false,stylesheet:false,lang:"en",boxHtml:"
"+"
"+WYM_TOOLS+"
"+"
"+"
"+WYM_CONTAINERS+WYM_CLASSES+"
"+"
"+WYM_HTML+WYM_IFRAME+WYM_STATUS+"
"+"
"+"
"+"
",iframeHtml:"
"+""+"
",editorStyles:[],toolsHtml:"
"+"

{Tools}

"+"
    "+WYM_TOOLS_ITEMS+"
"+"
",toolsItemHtml:"
  • "+WYM_TOOL_TITLE+"
  • ",toolsItems:[{'name':'Bold','title':'Strong','css':'wym_tools_strong'},{'name':'Italic','title':'Emphasis','css':'wym_tools_emphasis'},{'name':'Superscript','title':'Superscript','css':'wym_tools_superscript'},{'name':'Subscript','title':'Subscript','css':'wym_tools_subscript'},{'name':'InsertOrderedList','title':'Ordered_List','css':'wym_tools_ordered_list'},{'name':'InsertUnorderedList','title':'Unordered_List','css':'wym_tools_unordered_list'},{'name':'Indent','title':'Indent','css':'wym_tools_indent'},{'name':'Outdent','title':'Outdent','css':'wym_tools_outdent'},{'name':'Undo','title':'Undo','css':'wym_tools_undo'},{'name':'Redo','title':'Redo','css':'wym_tools_redo'},{'name':'CreateLink','title':'Link','css':'wym_tools_link'},{'name':'Unlink','title':'Unlink','css':'wym_tools_unlink'},{'name':'InsertImage','title':'Image','css':'wym_tools_image'},{'name':'InsertTable','title':'Table','css':'wym_tools_table'},{'name':'Paste','title':'Paste_From_Word','css':'wym_tools_paste'},{'name':'ToggleHtml','title':'HTML','css':'wym_tools_html'},{'name':'Preview','title':'Preview','css':'wym_tools_preview'}],containersHtml:"
    "+"

    {Containers}

    "+"
      "+WYM_CONTAINERS_ITEMS+"
    "+"
    ",containersItemHtml:"
  • "+""+WYM_CONTAINER_TITLE+"
  • ",containersItems:[{'name':'P','title':'Paragraph','css':'wym_containers_p'},{'name':'H1','title':'Heading_1','css':'wym_containers_h1'},{'name':'H2','title':'Heading_2','css':'wym_containers_h2'},{'name':'H3','title':'Heading_3','css':'wym_containers_h3'},{'name':'H4','title':'Heading_4','css':'wym_containers_h4'},{'name':'H5','title':'Heading_5','css':'wym_containers_h5'},{'name':'H6','title':'Heading_6','css':'wym_containers_h6'},{'name':'PRE','title':'Preformatted','css':'wym_containers_pre'},{'name':'BLOCKQUOTE','title':'Blockquote','css':'wym_containers_blockquote'},{'name':'TH','title':'Table_Header','css':'wym_containers_th'}],classesHtml:"
    "+"

    {Classes}

      "+WYM_CLASSES_ITEMS+"
    ",classesItemHtml:"
  • "+WYM_CLASS_TITLE+"
  • ",classesItems:[],statusHtml:"
    "+"

    {Status}

    "+"
    ",htmlHtml:"
    "+"

    {Source_Code}

    "+""+"
    ",boxSelector:".wym_box",toolsSelector:".wym_tools",toolsListSelector:" ul",containersSelector:".wym_containers",classesSelector:".wym_classes",htmlSelector:".wym_html",iframeSelector:".wym_iframe iframe",statusSelector:".wym_status",toolSelector:".wym_tools a",containerSelector:".wym_containers a",classSelector:".wym_classes a",htmlValSelector:".wym_html_val",hrefSelector:".wym_href",srcSelector:".wym_src",titleSelector:".wym_title",altSelector:".wym_alt",textSelector:".wym_text",rowsSelector:".wym_rows",colsSelector:".wym_cols",captionSelector:".wym_caption",submitSelector:".wym_submit",cancelSelector:".wym_cancel",previewSelector:"",dialogLinkSelector:".wym_dialog_link",dialogImageSelector:".wym_dialog_image",dialogTableSelector:".wym_dialog_table",dialogPasteSelector:".wym_dialog_paste",dialogPreviewSelector:".wym_dialog_preview",updateSelector:".wymupdate",updateEvent:"click",dialogFeatures:"menubar=no,titlebar=no,toolbar=no,resizable=no"+",width=560,height=300,top=0,left=0",dialogHtml:""+""+""+""+WYM_DIALOG_TITLE+""+""+""+""+WYM_DIALOG_BODY+"",dialogLinkHtml:""+""+"
    "+"{Link}"+"
    "+""+""+"
    "+"
    "+""+""+"
    "+"
    "+""+""+"
    "+"
    "+""+"",dialogImageHtml:""+"
    "+"
    "+"{Image}"+"
    "+""+""+"
    "+"
    "+""+""+"
    "+"
    "+""+""+"
    "+"
    "+""+""+"
    "+"
    "+"
    "+"",dialogTableHtml:""+"
    "+"
    "+"{Table}"+"
    "+""+""+"
    "+"
    "+""+""+"
    "+"
    "+""+""+"
    "+"
    "+""+""+"
    "+"
    "+"
    "+"",dialogPasteHtml:""+"
    "+"
    "+"{Paste_From_Word}"+"
    "+""+"
    "+"
    "+""+""+"
    "+"
    "+"
    "+"",dialogPreviewHtml:"",dialogStyles:[],skin:WYM_DEFAULT_SKIN,stringDelimiterLeft:"{",stringDelimiterRight:"}",preInit:null,preBind:null,postInit:null,preInitDialog:null,postInitDialog:null},options);return this.each(function(i){new Wymeditor(jQuery(this),i,options)})};jQuery.extend({wymeditors:function(i){return(WYM_INSTANCES[i])},wymstrings:function(lang,sKey){return(WYM_STRINGS[lang][sKey])}});function Wymeditor(elem,index,options){WYM_INSTANCES[index]=this;this._element=elem;this._index=index;this._options=options;this._html=jQuery(elem).val();if(this._options.html)this._html=this._options.html;this._options.basePath=this._options.basePath||this.computeBasePath();this._options.cssPath=this._options.cssPath||this.computeCssPath();this._options.iframeBasePath=this._options.iframeBasePath||this._options.basePath+WYM_IFRAME_DEFAULT;this._options.jQueryPath=this._options.jQueryPath||this.computeJqueryPath();this.init()};Wymeditor.prototype.init=function(){if(jQuery.browser.msie){var WymClass=new WymClassExplorer(this)}else if(jQuery.browser.mozilla){var WymClass=new WymClassMozilla(this)}else if(jQuery.browser.opera){var WymClass=new WymClassOpera(this)}else if(jQuery.browser.safari){var WymClass=new WymClassOpera(this)}if(WymClass){if(jQuery.isFunction(this._options.preInit))this._options.preInit(this);this.loadXhtmlParser(WymClass);if(this._options.styles||this._options.stylesheet){this.configureEditorUsingRawCss()}this.helper=new XmlHelper();jQuery.extend(this,WymClass);this._box=jQuery(this._element).hide().after(this._options.boxHtml).next();var iframeHtml=this._options.iframeHtml;iframeHtml=iframeHtml.replaceAll(WYM_INDEX,this._index).replaceAll(WYM_IFRAME_BASE_PATH,this._options.iframeBasePath);var boxHtml=jQuery(this._box).html();boxHtml=boxHtml.replaceAll(WYM_TOOLS,this._options.toolsHtml);boxHtml=boxHtml.replaceAll(WYM_CONTAINERS,this._options.containersHtml);boxHtml=boxHtml.replaceAll(WYM_CLASSES,this._options.classesHtml);boxHtml=boxHtml.replaceAll(WYM_HTML,this._options.htmlHtml);boxHtml=boxHtml.replaceAll(WYM_IFRAME,iframeHtml);boxHtml=boxHtml.replaceAll(WYM_STATUS,this._options.statusHtml);var aTools=eval(this._options.toolsItems);var sTools="";for(var i=0;i0)firstNode=nodes.item(0);for(var x=0;x=0;x--){sTmp=aP[x];sTmp=sTmp.replace(rExp,"
    ");jQuery(container).after("

    "+sTmp+"

    ")}}else{for(x=0;x");jQuery(this._doc.body).append("

    "+sTmp+"

    ")}}};Wymeditor.prototype.addCssRules=function(doc,aCss){var styles=doc.styleSheets[0];if(styles){for(var i=0;i >");jQuery(this._box).find("div.wym_area_right ul").parents("div.wym_area_right").show().parents(this._options.boxSelector).find("div.wym_area_main").css({"margin-right":"155px"});jQuery(this._box).find("div.wym_area_left ul").parents("div.wym_area_left").show().parents(this._options.boxSelector).find("div.wym_area_main").css({"margin-left":"155px"});jQuery(this._box).find(".wym_section").hover(function(){jQuery(this).addClass("hover")},function(){jQuery(this).removeClass("hover")});break}};function WYM_INIT_DIALOG(index){var wym=window.opener.WYM_INSTANCES[index];var doc=window.document;var selected=wym.selected();var sStamp=wym.uniqueStamp();if(!selected&&wym._selected_image){selected=jQuery(wym._selected_image).parentsOrSelf(WYM_A)}if(jQuery.isFunction(wym._options.preInitDialog))wym._options.preInitDialog(wym,window);var styles=doc.styleSheets[0];var aCss=eval(wym._options.dialogStyles);wym.addCssRules(doc,aCss);if(selected){jQuery(wym._options.hrefSelector).val(jQuery(selected).attr(WYM_HREF));jQuery(wym._options.srcSelector).val(jQuery(selected).attr(WYM_SRC));jQuery(wym._options.titleSelector).val(jQuery(selected).attr(WYM_TITLE));jQuery(wym._options.altSelector).val(jQuery(selected).attr(WYM_ALT))}if(wym._selected_image){jQuery(wym._options.dialogImageSelector+" "+wym._options.srcSelector).val(jQuery(wym._selected_image).attr(WYM_SRC));jQuery(wym._options.dialogImageSelector+" "+wym._options.titleSelector).val(jQuery(wym._selected_image).attr(WYM_TITLE));jQuery(wym._options.dialogImageSelector+" "+wym._options.altSelector).val(jQuery(wym._selected_image).attr(WYM_ALT))}jQuery(wym._options.dialogLinkSelector+" "+wym._options.submitSelector).click(function(){var sUrl=jQuery(wym._options.hrefSelector).val();if(sUrl.length>0){wym._exec(WYM_CREATE_LINK,sStamp);var link=null;var nodes=wym._doc.body.getElementsByTagName(WYM_A);for(var i=0;i0){wym._exec(WYM_INSERT_IMAGE,sStamp);var image=null;var nodes=wym._doc.body.getElementsByTagName(WYM_IMG);for(var i=0;i0&&iCols>0){var table=wym._doc.createElement(WYM_TABLE);var newRow=null;var newCol=null;var sCaption=jQuery(wym._options.captionSelector).val();var newCaption=table.createCaption();newCaption.innerHTML=sCaption;for(x=0;x]*)>/gi,"").replace(/<\/em>/gi,"").replace(/]*)>/gi,"").replace(/<\/strong>/gi,"");jQuery(this._doc.body).html(html);this.enableDesignMode()}else return(jQuery(this._doc.body).html())};WymClassMozilla.prototype._exec=function(cmd,param){if(!this.selected())return(false);switch(cmd){case WYM_INDENT:case WYM_OUTDENT:var focusNode=this.selected();var sel=this._iframe.contentWindow.getSelection();var anchorNode=sel.anchorNode;if(anchorNode.nodeName=="#text")anchorNode=anchorNode.parentNode;focusNode=this.findUp(focusNode,WYM_BLOCKS);anchorNode=this.findUp(anchorNode,WYM_BLOCKS);if(focusNode&&focusNode==anchorNode&&focusNode.tagName.toLowerCase()==WYM_LI){var ancestor=focusNode.parentNode.parentNode;if(focusNode.parentNode.childNodes.length>1||ancestor.tagName.toLowerCase()==WYM_OL||ancestor.tagName.toLowerCase()==WYM_UL)this._doc.execCommand(cmd,'',null)}break;default:if(param)this._doc.execCommand(cmd,'',param);else this._doc.execCommand(cmd,'',null)}var container=this.selected();if(container.tagName.toLowerCase()==WYM_BODY)this._exec(WYM_FORMAT_BLOCK,WYM_P);this.listen()};WymClassMozilla.prototype.selected=function(){var sel=this._iframe.contentWindow.getSelection();var node=sel.focusNode;if(node){if(node.nodeName=="#text")return(node.parentNode);else return(node)}else return(null)};WymClassMozilla.prototype.addCssRule=function(styles,oCss){styles.insertRule(oCss.name+" {"+oCss.css+"}",styles.cssRules.length)};WymClassMozilla.prototype.keydown=function(evt){var wym=WYM_INSTANCES[this.title];if(evt.ctrlKey){if(evt.keyCode==66){wym._exec(WYM_BOLD);return false}if(evt.keyCode==73){wym._exec(WYM_ITALIC);return false}}};WymClassMozilla.prototype.keyup=function(evt){var wym=WYM_INSTANCES[this.title];wym._selected_image=null;if(evt.keyCode==13&&!evt.shiftKey){jQuery(wym._doc.body).children(WYM_BR).remove()}else if(evt.keyCode!=8&&evt.keyCode!=17&&evt.keyCode!=46&&evt.keyCode!=224&&!evt.metaKey&&!evt.ctrlKey){var container=wym.selected();var name=container.tagName.toLowerCase();if(name=="strong"||name=="b"||name=="em"||name=="i"||name=="sub"||name=="sup"||name=="a")name=container.parentNode.tagName.toLowerCase();if(name==WYM_BODY)wym._exec(WYM_FORMAT_BLOCK,WYM_P)}};WymClassMozilla.prototype.enableDesignMode=function(){if(this.designMode=="off"){try{this.designMode="on";this.execCommand("styleWithCSS",'',false)}catch(e){}}};WymClassMozilla.prototype.setFocusToNode=function(node){var range=document.createRange();range.selectNode(node);var selected=this._iframe.contentWindow.getSelection();selected.addRange(range);selected.collapse(node,node.childNodes.length);this._iframe.contentWindow.focus()};WymClassMozilla.prototype.openBlockTag=function(tag,attributes){var attributes=this.validator.getValidTagAttributes(tag,attributes);if(tag=='span'&&attributes.style){var new_tag=this.getTagForStyle(attributes.style);if(new_tag){this._tag_stack.pop();var tag=new_tag;this._tag_stack.push(new_tag);attributes.style=''}else{return}}if(tag!='li'&&(tag=='ul'||tag=='ol')&&this.last_tag&&!this.last_tag_opened&&this.last_tag=='li'){this.output=this.output.replace(/<\/li>$/,'');this.insertContentAfterClosingTag(tag,'')}this.output+=this.helper.tag(tag,attributes,true)};WymClassMozilla.prototype.closeBlockTag=function(tag){this.output=this.output.replace(/
    $/,'')+this._getClosingTagContent('before',tag)+""+this._getClosingTagContent('after',tag)};WymClassMozilla.prototype.getTagForStyle=function(style){if(/bold/.test(style))return'strong';if(/italic/.test(style))return'em';if(/sub/.test(style))return'sub';if(/sub/.test(style))return'super';return false};function WymClassOpera(wym){this._wym=wym;this._class="class";this._newLine="\r\n"};WymClassOpera.prototype.initIframe=function(iframe){this._iframe=iframe;this._doc=iframe.contentWindow.document;var styles=this._doc.styleSheets[0];var aCss=eval(this._options.editorStyles);this.addCssRules(this._doc,aCss);this._doc.title=this._wym._index;this._doc.designMode="on";this.html(this._wym._html);if(jQuery.isFunction(this._options.preBind))this._options.preBind(this);jQuery(this._box).find(this._options.toolSelector+'[@name='+WYM_INDENT+']').hide();jQuery(this._box).find(this._options.toolSelector+'[@name='+WYM_OUTDENT+']').hide();this._wym.bindEvents();jQuery(this._doc).bind("keyup",this.keyup);if(jQuery.isFunction(this._options.postInit))this._options.postInit(this);this.listen()};WymClassOpera.prototype._exec=function(cmd,param){switch(cmd){case WYM_INDENT:case WYM_OUTDENT:this.status("Unsupported feature.");break;default:if(param)this._doc.execCommand(cmd,false,param);else this._doc.execCommand(cmd);break}this.listen()};WymClassOpera.prototype.selected=function(){var sel=this._iframe.contentWindow.getSelection();var node=sel.focusNode;if(node){if(node.nodeName=="#text")return(node.parentNode);else return(node)}else return(null)};WymClassOpera.prototype.addCssRule=function(styles,oCss){styles.insertRule(oCss.name+" {"+oCss.css+"}",styles.cssRules.length)};WymClassOpera.prototype.keyup=function(evt){var wym=WYM_INSTANCES[this.title];wym._selected_image=null};WymClassOpera.prototype.setFocusToNode=function(node){}; \ No newline at end of file +eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('f(!2y)9 2y=Y 1q();9 8P={63:\'63\',62:\'62\',4i:\'4i\',4h:\'4h\',8C:\'co 8T\',8B:\'cn 8T\',3m:\'3m\',3l:\'3l\',4g:\'4g\',4f:\'4f\',3j:\'3j\',4e:\'4e\',3i:\'3i\',2G:\'2G\',60:\'60\',5Y:\'5Y\',8w:\'2H 1\',8v:\'2H 2\',8u:\'2H 3\',8t:\'2H 4\',8s:\'2H 5\',8r:\'2H 6\',5X:\'5X\',5W:\'5W\',8q:\'2G cm\',4c:\'4c\',4b:\'4b\',88:\'cl 18\',5P:\'5P\',84:\'8S 8R 7Y\',82:\'8S 8R 7X\',2F:\'2F\',2E:\'2E\',8Q:\'8Q\',3k:\'3k\',49:\'61 ck cj\',64:\'64\',5Z:\'5Z\',5V:\'5V\',5U:\'5U\',8p:\'ci ch\'};2y[\'8F\']=8P;9 1r=Y 1q();9 43="o";9 1C="{cg}";9 7m="{cf}";9 5d="{ce}";9 5c="{cd}";9 5L="{cc}";9 7U="19/1X/";9 5b="{cb}";9 5K="{ca}";9 5B="{c9}";9 5D="{c8}";9 44="{c7}";9 5C="{c6}";9 5I="{c5}";9 5x="{c4}";9 5z="{c3}";9 5y="{c2}";9 5J="{c1}";9 5r="{c0}";9 5u="{bZ}";9 5t="{bY}";9 5s="{bX}";9 5H="{bW}";9 5G="{bV}";9 5F="{bU}";9 5a="{bT}";9 59="{bS}";9 23="H";9 7x="bR";9 2k="p";9 5o="8O";9 3L="1j";9 5n="8N";9 5m="8M";9 5l="8L";9 5k="8K";9 3C="8I";9 3a="1E";9 3b="8H";9 3c="8G";9 2V="a";9 6i="br";9 4H="70";9 6K="26";9 6l="1n";9 6m="8J";9 4q="1V";9 7y="l";9 3K="1A";9 2S="1g";9 2R="w";9 3I="bQ";9 2X="3j";9 3Y="3i";9 3X="2G";9 3W="49";9 6k="8E";9 6j="8D";9 4K="8A";9 4J="8z";9 7D="8y";9 7C="61";9 2J="3m";9 2I="3l";9 7B="8x";9 3B="bP";9 3V="3k";9 4S="1X";9 6G=Y 1q(2k,5o,3L,5n,5m,5l,5k,3C,3a);9 4r=Y 1q("bO","1E","m","bN","1G","1F","8O","1j","8N","8M","8L","8K","bM","bL","8J","p","8I","26","1n","bK","bJ","1V","bI","8H","bH","8G","bG","bF");9 bE={bD:8,bC:13,bB:35,bA:36,bz:37,by:38,bx:39,bw:40,bv:Y 1q(37,38,39,40),bu:46};9 bt={bs:1,bq:2,bp:3};d.4y.2u=j(2C){2C=d.54({A:"",29:F,3U:F,3T:F,45:F,3S:F,7b:\'bo.2w.2v\',72:\'bn.2w.2v\',W:F,30:F,34:"8F",K:""+""+5K+""+""+""+5J+5I+""+""+5H+5G+5F+""+""+"bj"+""+"",2B:""+"<19 "+"1g=\'"+5L+"bi.A\' "+"2D=\'7.1d.bh.1r["+1C+"].3t(7)\' "+">"+"",21:[],7S:""+"<1j>{64}"+"<1n>"+5B+""+"",7M:"<1V l=\'"+5C+"\'>"+44+"",7N:[{\'o\':\'8E\',\'w\':\'63\',\'z\':\'bg\'},{\'o\':\'8D\',\'w\':\'62\',\'z\':\'bf\'},{\'o\':\'4i\',\'w\':\'4i\',\'z\':\'be\'},{\'o\':\'4h\',\'w\':\'4h\',\'z\':\'bd\'},{\'o\':\'bc\',\'w\':\'8C\',\'z\':\'bb\'},{\'o\':\'ba\',\'w\':\'8B\',\'z\':\'b9\'},{\'o\':\'3m\',\'w\':\'3m\',\'z\':\'b8\'},{\'o\':\'3l\',\'w\':\'3l\',\'z\':\'b7\'},{\'o\':\'4g\',\'w\':\'4g\',\'z\':\'b6\'},{\'o\':\'4f\',\'w\':\'4f\',\'z\':\'b5\'},{\'o\':\'8A\',\'w\':\'3j\',\'z\':\'b4\'},{\'o\':\'4e\',\'w\':\'4e\',\'z\':\'b3\'},{\'o\':\'8z\',\'w\':\'3i\',\'z\':\'b2\'},{\'o\':\'8y\',\'w\':\'2G\',\'z\':\'b1\'},{\'o\':\'61\',\'w\':\'49\',\'z\':\'b0\'},{\'o\':\'8x\',\'w\':\'60\',\'z\':\'aZ\'},{\'o\':\'3k\',\'w\':\'3k\',\'z\':\'aY\'}],7R:""+"<1j>{5Z}"+"<1n>"+5r+""+"",7J:"<1V l=\'"+5s+"\'>"+""+5t+"",7K:[{\'o\':\'P\',\'w\':\'5Y\',\'z\':\'aX\'},{\'o\':\'aW\',\'w\':\'8w\',\'z\':\'aV\'},{\'o\':\'aU\',\'w\':\'8v\',\'z\':\'aT\'},{\'o\':\'aS\',\'w\':\'8u\',\'z\':\'aR\'},{\'o\':\'aQ\',\'w\':\'8t\',\'z\':\'aO\'},{\'o\':\'aN\',\'w\':\'8s\',\'z\':\'aM\'},{\'o\':\'aL\',\'w\':\'8r\',\'z\':\'aK\'},{\'o\':\'aJ\',\'w\':\'5X\',\'z\':\'aI\'},{\'o\':\'aH\',\'w\':\'5W\',\'z\':\'aG\'},{\'o\':\'aF\',\'w\':\'8q\',\'z\':\'aE\'}],7Q:""+"<1j>{5V}<1n>"+5x+"",7L:"<1V>"+5y+"",2t:[],7O:""+"<1j>{5U}"+"",7P:""+"<1j>{8p}"+"<48 l=\'8k\'>"+"",4P:".8o",6Y:".5T",aD:" 1n",6X:".5S",6Z:".5R",56:".8n",aC:".8m 19",7u:".8l",3r:".5T a",7I:".5S a",7H:".5R a",5e:".8k",4L:".8b",3J:".89",2Q:".5Q",3H:".87",6E:".7Z",6M:".83",6L:".81",6J:".85",2P:".3g",6A:".3f",6B:"",6R:".3h",6O:".8c",2U:".8a",6N:".86",6F:".80",6C:".7W",7G:".aB",7F:"1O",7s:"aA=4d,az=4d,ay=4d,ax=4d"+",aw=av,au=at,as=0,6U=0",1Q:""+"<8d>"+"<27 ah=\'30\' M=\'18/z\' ag=\'7d\'"+" 1A=\'"+5d+"\' />"+""+5a+""+"<2a M=\'18/8e\'"+" 1g=\'"+5b+"\'>"+"<2a M=\'18/8e\'"+" 1g=\'"+5c+"\'>"+""+59+"",7r:""+"<1F>"+"<1G>"+""+"<1U>{3j}"+""+"<16>{4c}"+""+""+""+"<16>{4b}"+""+""+""+""+""+""+""+""+"",7q:""+"<1F>"+"<1G>"+""+"<1U>{3i}"+""+"<16>{4c}"+""+""+""+"<16>{88}"+""+""+""+"<16>{4b}"+""+""+""+""+""+""+""+""+"",7p:""+"<1F>"+"<1G>"+""+"<1U>{2G}"+""+"<16>{5P}"+""+""+""+"<16>{84}"+""+""+""+"<16>{82}"+""+""+""+""+""+""+""+""+"",7o:""+"<1F>"+""+"<1G>"+"<1U>{49}"+""+"<48 l=\'7Z\' 7Y=\'10\' 7X=\'50\'>"+""+""+""+""+""+""+""+"",7n:"",2W:[],3M:4S,33:"{",32:"}",5N:D,20:D,1Y:D,4M:D,4z:D},2C);q 7.af(j(){Y C(d(7),2C)})};d.54({ae:j(i){q(1r[i])},ad:j(34,7V){q(2y[34][7V])}});j C(2N,2C){7.2g=1r.6b(7)-1;7.5f=2N;7.c=2C;7.2K=d(2N).S();f(7.c.A)7.2K=7.c.A;7.c.29=7.c.29||7.7h();7.c.3U=7.c.3U||7.7e();7.c.3T=7.c.3T||7.7g();7.c.45=7.c.45||7.c.29+7U;7.c.3S=7.c.3S||7.7f();7.7T()};C.k.7T=j(){f(d.47.ac){9 1z=Y 1x(7)}I f(d.47.ab){9 1z=Y 1f(7)}I f(d.47.aa){9 1z=Y 1H(7)}I f(d.47.a9){}f(1z){f(d.1v(7.c.5N))7.c.5N(7);7.7c(1z);f(7.c.W||7.c.30){7.74()}7.6a=Y 55();X(5M 7v 1z){7[5M]=1z[5M]}7.Q=d(7.5f).3q().4B(7.c.K).a8();9 2B=7.c.2B;2B=2B.G(1C,7.2g).G(5L,7.c.45);9 K=d(7.Q).A();K=K.G(5K,7.c.7S);K=K.G(5J,7.c.7R);K=K.G(5I,7.c.7Q);K=K.G(5H,7.c.7P);K=K.G(5G,2B);K=K.G(5F,7.c.7O);9 5E=1p(7.c.7N);9 5A="";X(9 i=0;i<5E.L;i++){9 2A=5E[i];f(2A.o&&2A.w)5A+=7.c.7M.G(5D,2A.o).G(44,7.c.33+2A.w+7.c.32).G(5C,2A.z)}K=K.G(5B,5A);9 3d=1p(7.c.2t);9 5w="";X(9 i=0;i<3d.L;i++){9 1S=3d[i];f(1S.o&&1S.w)5w+=7.c.7L.G(5z,1S.o).G(5y,1S.w)}K=K.G(5x,5w);9 5v=1p(7.c.7K);9 5q="";X(9 i=0;i<5v.L;i++){9 2z=5v[i];f(2z.o&&2z.w)5q+=7.c.7J.G(5u,2z.o).G(5t,7.c.33+2z.w+7.c.32).G(5s,2z.z)}K=K.G(5r,5q);K=7.58(K);d(7.Q).A(K);d(7.Q).V(7.c.56).3q();7.3M()}};C.k.3p=j(){9 h=7;d(7.Q).V(7.c.3r).1O(j(){h.7E(d(7).N(43));q(F)});d(7.Q).V(7.c.7I).1O(j(){h.v(d(7).N(43));q(F)});d(7.Q).V(7.c.5e).1s(j(){d(h.u.H).A(d(7).S())});d(7.Q).V(7.c.7H).1O(j(){9 3d=1p(h.c.2t);9 5p=d(7).N(43);9 1S=3d.6s(5p);f(1S){25=1S.a7;h.5i(5p,25)}q(F)});d(7.c.7G).1Z(7.c.7F,j(){h.31()})};C.k.a6=j(){q(7.u!=D)};C.k.a5=j(){q(7.Q)};C.k.A=j(A){f(A)d(7.u.H).A(A);I q(d(7.u.H).A())};C.k.4A=j(){q 7.75.4V(7.A())};C.k.7E=j(Z){1I(Z){O 4K:9 v=7.v();f(v||7.1a)7.2c(2X);J;O 4J:7.2c(3Y);J;O 7D:7.2c(3X);J;O 7C:7.2c(3W);J;O 7B:7.31();7.7k();J;O 3V:7.2c(3V);J;1X:7.1l(Z);J}};C.k.v=j(1h){f(1h){9 v=D;f(1h.11()==3c){v=7.v();1I(v.14.11()){O 3b:O 3c:J;1X:9 42=Y 1q(3b,3c);v=7.1N(7.v(),42);J}f(v!=D){1h=(v.14.11()==3b)?3c:3b;7.5h(v,1h);7.31()}}I{9 42=Y 1q(2k,5o,3L,5n,5m,5l,5k,3C,3a);v=7.1N(7.v(),42);f(v){9 1D=D;f(1h.11()==3a){9 1E=7.1N(7.v(),3a);f(1E==D){1D=7.u.4G(1h);v.1b.7A(1D,v);1D.a4(v);7.2d(1D.a3)}I{9 1i=1E.4m;9 5j=1i.L;9 41=D;f(5j>0)41=1i.3F(0);X(9 x=0;x<5j;x++){1E.1b.7A(1i.3F(0),1E)}1E.1b.a2(1E);f(41)7.2d(41)}}I 7.5h(v,1h);7.31()}}}I q(7.E())};C.k.5i=j(7z,25){9 v=(7.1a?7.1a:d(7.E()));v=d(v).3G(25);d(v).5i(7z);f(!d(v).N(7y))d(v).a1(7.3u)};C.k.1N=j(B,2n){f(B){9 1R=B.14.11();f(51(2n)==7x){7w(1R!=2n&&1R!=23){B=B.1b;1R=B.14.11()}}I{9 3Z=F;7w(!3Z&&1R!=23){X(9 i=0;i<2n.L;i++){f(1R==2n[i]){3Z=3y;J}}f(!3Z){B=B.1b;1R=B.14.11()}}}f(1R!=23)q(B);I q(D)}I q(D)};C.k.5h=j(B,1h){9 1D=7.u.4G(1h);9 A=d(B).A();B.1b.a0(1D,B);d(1D).A(A);7.2d(1D)};C.k.58=j(2x){X(9 5g 7v 2y[7.c.34]){2x=2x.G(7.c.33+5g+7.c.32,2y[7.c.34][5g])}q(2x)};C.k.7l=j(2x){q(7.c.33+2x+7.c.32)};C.k.68=j(7t){d(7.Q).V(7.c.7u).A(7t)};C.k.31=j(){9 A=7.4A();d(7.5f).S(A);d(7.Q).V(7.c.5e).S(A)};C.k.2c=j(1h){9 57=R.9Z(\'\',\'2c\',7.1e.c.7s);f(57){9 2b="";1I(1h){O(2X):2b=7.c.7r;J;O(3Y):2b=7.c.7q;J;O(3X):2b=7.c.7p;J;O(3W):2b=7.c.7o;J;O(3V):2b=7.c.7n;J}9 1Q=7.c.1Q;1Q=1Q.G(7m,7.c.29).G(5d,7.c.3U).G(5c,7.c.3T).G(5b,7.c.3S).G(5a,7.7l(1h)).G(59,2b).G(1C,7.2g);1Q=7.58(1Q);9 1P=57.1J;1P.9Y(1Q);1P.2o()}};C.k.7k=j(){d(7.Q).V(7.c.56).9X()};C.k.6Q=j(){9 7j=Y 9W();q("h-"+7j.9V())};C.k.4s=j(7i){9 1B;9 v=7.E();9 aP=7i.9U(7.2h+7.2h);9 2O=Y 6v(7.2h,"g");f(v&&v.14.11()!=23){X(x=aP.L-1;x>=0;x--){1B=aP[x];1B=1B.1w(2O,"
    ");d(v).4B("

    "+1B+"

    ")}}I{X(x=0;x");d(7.u.H).4C("

    "+1B+"

    ")}}};C.k.2L=j(1P,1m){9 W=1P.2M[0];f(W){X(9 i=0;i<1m.L;i++){9 1c=1m[i];f(1c.o&&1c.z)7.3n(W,1c)}}};C.k.7h=j(){q d(d.3Q(d(\'2a\'),j(s){q(s.1g&&s.1g.3P(/3R\\.2u(\\.2w){0,1}\\.2v(\\?.*)?$/))})).N(\'1g\').1w(/3R\\.2u(\\.2w){0,1}\\.2v(\\?.*)?$/,\'\')};C.k.7g=j(){q d(d.3Q(d(\'2a\'),j(s){q(s.1g&&s.1g.3P(/3R\\.2u(\\.2w){0,1}\\.2v(\\?.*)?$/))})).N(\'1g\')};C.k.7f=j(){q d(d.3Q(d(\'2a\'),j(s){q(s.1g&&s.1g.3P(/3R(-(.*)){0,1}(\\.2w){0,1}\\.2v(\\?.*)?$/))})).N(\'1g\')};C.k.7e=j(){q d(d.3Q(d(\'27\'),j(s){q(s.1A&&s.1A.3P(/2u\\/9T\\/(.*)7d\\.z(\\?.*)?$/))})).N(\'1A\')};C.k.7c=j(1z){f(51 3O!=\'j\'){1p(d.4Z({4Y:7.c.29+7.c.7b,4X:F}).4W);R.55=55;R.7a=7a;R.79=79;R.78=78;R.77=77;R.76=76;R.53=53;R.3O=3O}9 52=Y 3O();d.54(52,1z);7.75=Y 53(52)};C.k.74=j(){f(51 3N!=\'j\'){1p(d.4Z({4Y:7.c.29+7.c.72,4X:F}).4W);R.71=71;R.3N=3N}9 2s=Y 3N();f(7.c.30){2s.4V(d.4Z({4Y:7.c.30,4X:F}).4W)}I{2s.4V(7.c.W,F)}f(7.c.2t.L==0){7.c.2t=2s.4U.2t}f(7.c.21.L==0){7.c.21=2s.4U.21}f(7.c.2W.L==0){7.c.2W=2s.4U.2W}};C.k.1W=j(){d(7.u.H).1Z("2Z",7.2Z);9 4T=7.u.H.4I("70");X(9 i=0;i<4T.L;i++){d(4T[i]).1Z("2Z",7.2Z)}};C.k.2Z=j(12){9 h=1r[7.9S.w];f(7.14.11()==4H)h.1a=7;I h.1a=D;12.9R()};C.k.3M=j(){1I(7.c.3M){O 4S:d(7.Q).2Y("9Q");d(7.Q).V(7.c.6Z).2Y("9P");d(7.Q).V(7.c.6Y).2Y("9O");d(7.Q).V(7.c.6X).2Y("9N").V(3L).4C("<4k>&9M;&9L;");d(7.Q).V("m.4R 1n").2m("m.4R").6W().2m(7.c.4P).V("m.4O").z({"6V-9K":"6T"});d(7.Q).V("m.4Q 1n").2m("m.4Q").6W().2m(7.c.4P).V("m.4O").z({"6V-6U":"6T"});d(7.Q).V(".28").4N(j(){d(7).2Y("4N")},j(){d(7).9J("4N")});J}};j 2r(6S){9 h=R.9I.1r[6S];9 1P=R.1J;9 E=h.E();9 6P=d(h.c.6R).S();9 2T=h.6Q();1I(6P){O 2X:f(E&&E.14&&E.14.11!=2V)E=d(E).3G(2V);f(!E&&h.1a)E=d(h.1a).3G(2V);J}f(d.1v(h.c.4M))h.c.4M(h,R);9 W=1P.2M[0];9 1m=1p(h.c.2W);h.2L(1P,1m);f(E){d(h.c.4L).S(d(E).N(3K));d(h.c.3J).S(d(E).N(2S));d(h.c.2Q).S(d(E).N(2R));d(h.c.3H).S(d(E).N(3I))}f(h.1a){d(h.c.2U+" "+h.c.3J).S(d(h.1a).N(2S));d(h.c.2U+" "+h.c.2Q).S(d(h.1a).N(2R));d(h.c.2U+" "+h.c.3H).S(d(h.1a).N(3I))}d(h.c.6O+" "+h.c.2P).1O(j(){9 2q=d(h.c.4L).S();f(2q.L>0){h.1l(4K,2T);9 27=D;9 1i=h.u.H.4I(2V);X(9 i=0;i<1i.L;i++){f(d(1i[i]).N(3K)==2T){27=d(1i[i]);J}}f(27){27.N(3K,2q);27.N(2R,d(h.c.2Q).S())}}R.2o()});d(h.c.2U+" "+h.c.2P).1O(j(){9 2q=d(h.c.3J).S();f(2q.L>0){h.1l(4J,2T);9 2p=D;9 1i=h.u.H.4I(4H);X(9 i=0;i<1i.L;i++){f(d(1i[i]).N(2S)==2T){2p=d(1i[i]);J}}f(2p){2p.N(2S,2q);2p.N(2R,d(h.c.2Q).S());2p.N(3I,d(h.c.3H).S())}}R.2o()});d(h.c.6N+" "+h.c.2P).1O(j(){9 4F=d(h.c.6M).S();9 4E=d(h.c.6L).S();f(4F>0&&4E>0){9 26=h.u.4G(6K);9 4D=D;9 9H=D;9 6H=d(h.c.6J).S();9 6I=26.9G();6I.9F=6H;X(x=0;x<4F;x++){4D=26.9E(x);X(y=0;y<4E;y++){4D.9D(y)}}9 B=d(h.1N(h.v(),6G)).9C(0);f(!B||!B.1b)d(h.u.H).4C(26);I d(B).4B(26)}R.2o()});d(h.c.6F+" "+h.c.2P).1O(j(){9 6D=d(h.c.6E).S();h.4s(6D);R.2o()});d(h.c.6C+" "+h.c.6B).A(h.4A());d(h.c.6A).9B(j(){R.2o()});f(d.1v(h.c.4z))h.c.4z(h,R)};d.4y.6z=j(){f(7[0].4x==3)q!(/[^\\t\\n\\r ]/.2i(7[0].6y));q F};j 6z(n){f(n.4x==3)q!(/[^\\t\\n\\r ]/.2i(n.6y));q F};d.4y.3G=j(25){9 n=7;f(n[0].4x==3)n=n.2m().6x(0,1);f(n.2n(25).1y()==1)q n;I q n.2m(25).6x(0,1)};4u.k.9A=j(6w,4w){q(7.9z(0,4w)+6w+7.9y(4w))};4u.k.G=j(6u,6t){9 2O=Y 6v(6u,"g");q(7.1w(2O,6t))};1q.k.9x=j(2N){X(9 i=0;i<7.L;i++){f(7[i]===2N){q 3y}}q F};1q.k.9w=j(3F){9 4v=-1;X(9 i=0;i<7.L;i++){f(7[i]==3F){4v=i;J}}q(4v)};4u.k.9v=j(){q 7.1w(/^(\\s*)|(\\s*)$/9u,\'\')};1q.k.6s=j(o){X(9 i=0;i<7.L;i++){9 4t=7[i];f(4t.o==o){q(4t)}}q(D)};j 1x(h){7.1e=h;7.3u="9t";7.2h="\\r\\n"};1x.k.3t=j(19){7.1k=19;7.u=19.1d.1J;9 W=7.u.2M[0];9 1m=1p(7.c.21);7.2L(7.u,1m);7.u.w=7.1e.2g;d(7.u.H).A(7.1e.2K);9 h=7;7.u.H.9s=j(){h.u.2f="3s";h.u=19.1d.1J};7.u.9r=j(){h.3E()};7.u.9q=j(){h.3E();h.1s()};7.u.9p=j(){h.3E()};7.u.H.9o=j(){h.1k.1d.6r.6q=F};7.u.H.9n=j(){h.1k.1d.6r.6q=F;h.4s(R.9m.9l("9k"))};f(7.6p){f(d.1v(7.c.20))7.c.20(7);7.1e.3p();f(d.1v(7.c.1Y))7.c.1Y(7);7.1W()}7.6p=3y;7.u.2f="3s";6f{7.u=19.1d.1J}6e(e){}};1x.k.1l=j(Z,1u){1I(Z){O 2J:O 2I:9 v=7.1N(7.v(),4q);f(v)7.u.1t(Z);J;1X:f(1u)7.u.1t(Z,F,1u);I 7.u.1t(Z);J}7.1W()};1x.k.E=j(){9 2l=7.1k.1d.1J.2l;f(2l!=D){f(2l.6o!=9j)q(2l.6o())}};1x.k.3E=j(){7.u.2l=7.u.6n.4n()};1x.k.3n=j(W,1c){W.9i(1c.o,1c.z)};1x.k.1s=j(){7.1a=D};1x.k.2d=j(B){9 1L=7.u.6n.4n();1L.9h(B);1L.6d(F);1L.9g(\'9f\',-1);1L.9e();B.4l()};j 1f(h){7.1e=h;7.3u="l";7.2h="\\n"};1f.k.3t=j(19){7.1k=19;7.u=19.9d;9 W=7.u.2M[0];9 1m=1p(7.c.21);7.2L(7.u,1m);7.u.w=7.1e.2g;7.A(7.1e.2K);7.3A();f(d.1v(7.c.20))7.c.20(7);7.1e.3p();d(7.u).1Z("4o",7.4o);d(7.u).1Z("1s",7.1s);d(7.u).1Z("4l",7.3A);f(d.1v(7.c.1Y))7.c.1Y(7);7.1W()};1f.k.A=j(A){f(A){7.u.2f="6g";A=A.1w(/<3w([^>]*)>/3D,"").1w(/<\\/3w>/3D,"").1w(/<3x([^>]*)>/3D,"").1w(/<\\/3x>/3D,"");d(7.u.H).A(A);7.3A()}I q(d(7.u.H).A())};1f.k.1l=j(Z,1u){f(!7.E())q(F);1I(Z){O 2J:O 2I:9 1o=7.E();9 2e=7.1k.1d.3o();9 1M=2e.1M;f(1M.4j=="#18")1M=1M.1b;1o=7.1N(1o,4r);1M=7.1N(1M,4r);f(1o&&1o==1M&&1o.14.11()==4q){9 4p=1o.1b.1b;f(1o.1b.4m.L>1||4p.14.11()==6m||4p.14.11()==6l)7.u.1t(Z,\'\',D)}J;1X:f(1u)7.u.1t(Z,\'\',1u);I 7.u.1t(Z,\'\',D)}9 v=7.E();f(v.14.11()==23)7.1l(3B,2k);7.1W()};1f.k.E=j(){9 2e=7.1k.1d.3o();9 B=2e.1o;f(B){f(B.4j=="#18")q(B.1b);I q(B)}I q(D)};1f.k.3n=j(W,1c){W.67(1c.o+" {"+1c.z+"}",W.65.L)};1f.k.4o=j(12){9 h=1r[7.w];f(12.6h){f(12.24==66){h.1l(6k);q F}f(12.24==73){h.1l(6j);q F}}};1f.k.1s=j(12){9 h=1r[7.w];h.1a=D;9 v=D;f(12.24==13&&!12.9c){d(h.u.H).9b(6i).9a();v=h.E();f(v&&v.14.11()==3C)h.1l(3B,2k);}I f(12.24!=8&&12.24!=17&&12.24!=46&&12.24!=99&&!12.98&&!12.6h){v=h.E();9 o=v.14.11();f(o=="3x"||o=="b"||o=="3w"||o=="i"||o=="3v"||o=="97"||o=="a")o=v.1b.14.11();f(o==23)h.1l(3B,2k)}};1f.k.3A=j(){f(7.2f=="6g"){6f{7.2f="3s";7.1t("96",\'\',F)}6e(e){}}};1f.k.2d=j(B){9 1L=1J.4n();1L.95(B);9 E=7.1k.1d.3o();E.94(1L);E.6d(B,B.4m.L);7.1k.1d.4l()};1f.k.93=j(2j,22){9 22=7.92.91(2j,22);f(2j==\'4k\'&&22.1K){9 3z=7.69(22.1K);f(3z){7.6c.90();9 2j=3z;7.6c.6b(3z);22.1K=\'\'}I{q}}7.8Z+=7.6a.2j(2j,22,3y)};1f.k.69=j(1K){f(/8Y/.2i(1K))q\'3x\';f(/8X/.2i(1K))q\'3w\';f(/3v/.2i(1K))q\'3v\';f(/3v/.2i(1K))q\'8W\';q F};j 1H(h){7.1e=h;7.3u="l";7.2h="\\r\\n"};1H.k.3t=j(19){7.1k=19;7.u=19.1d.1J;9 W=7.u.2M[0];9 1m=1p(7.c.21);7.2L(7.u,1m);7.u.w=7.1e.2g;7.u.2f="3s";7.A(7.1e.2K);f(d.1v(7.c.20))7.c.20(7);d(7.Q).V(7.c.3r+\'[@o=\'+2J+\']\').3q();d(7.Q).V(7.c.3r+\'[@o=\'+2I+\']\').3q();7.1e.3p();d(7.u).1Z("1s",7.1s);f(d.1v(7.c.1Y))7.c.1Y(7);7.1W()};1H.k.1l=j(Z,1u){1I(Z){O 2J:O 2I:7.68("8V 8U.");J;1X:f(1u)7.u.1t(Z,F,1u);I 7.u.1t(Z);J}7.1W()};1H.k.E=j(){9 2e=7.1k.1d.3o();9 B=2e.1o;f(B){f(B.4j=="#18")q(B.1b);I q(B)}I q(D)};1H.k.3n=j(W,1c){W.67(1c.o+" {"+1c.z+"}",W.65.L)};1H.k.1s=j(12){9 h=1r[7.w];h.1a=D};1H.k.2d=j(B){};',62,769,'|||||||this||var|||_options|jQuery||if||wym||function|prototype|class|div||name||return||||_doc|container|title|||css|html|node|Wymeditor|null|selected|false|replaceAll|body|else|break|boxHtml|length|type|attr|case||_box|window|val|value|input|find|styles|for|new|cmd||toLowerCase|evt||tagName|row|label||text|iframe|_selected_image|parentNode|oCss|contentWindow|_wym|WymClassMozilla|src|sType|nodes|h2|_iframe|_exec|aCss|ul|focusNode|eval|Array|WYM_INSTANCES|keyup|execCommand|param|isFunction|replace|WymClassExplorer|size|WymClass|href|sTmp|WYM_INDEX|newNode|blockquote|form|fieldset|WymClassOpera|switch|document|style|range|anchorNode|findUp|click|doc|dialogHtml|tagname|oClass|button|legend|li|listen|default|postInit|bind|preBind|editorStyles|attributes|WYM_BODY|keyCode|jqexpr|table|link|wym_section|basePath|script|sBodyHtml|dialog|setFocusToNode|sel|designMode|_index|_newLine|test|tag|WYM_P|caretPos|parents|filter|close|image|sUrl|WYM_INIT_DIALOG|CssParser|classesItems|wymeditor|js|pack|sVal|WYM_STRINGS|oContainer|oTool|iframeHtml|options|onload|Cancel|Submit|Table|Heading|WYM_OUTDENT|WYM_INDENT|_html|addCssRules|styleSheets|elem|rExp|submitSelector|titleSelector|WYM_TITLE|WYM_SRC|sStamp|dialogImageSelector|WYM_A|dialogStyles|WYM_DIALOG_LINK|addClass|mouseup|stylesheet|update|stringDelimiterRight|stringDelimiterLeft|lang||||||WYM_BLOCKQUOTE|WYM_TD|WYM_TH|aClasses|wym_dialog|wym_cancel|wym_submit|wym_dialog_type|Image|Link|Preview|Outdent|Indent|addCssRule|getSelection|bindEvents|hide|toolSelector|on|initIframe|_class|sub|em|strong|true|new_tag|enableDesignMode|WYM_FORMAT_BLOCK|WYM_PRE|gi|saveCaret|item|parentsOrSelf|altSelector|WYM_ALT|srcSelector|WYM_HREF|WYM_H2|skin|WymCssParser|XhtmlSaxListener|match|grep|jquery|jQueryPath|wymPath|cssPath|WYM_PREVIEW|WYM_DIALOG_PASTE|WYM_DIALOG_TABLE|WYM_DIALOG_IMAGE|bFound||firstNode|aTypes|WYM_NAME|WYM_TOOL_TITLE|iframeBasePath||browser|textarea|Paste_From_Word|hidden|Title|URL|no|Unlink|Redo|Undo|Subscript|Superscript|nodeName|span|focus|childNodes|createRange|keydown|ancestor|WYM_LI|WYM_BLOCKS|paste|Item|String|ret|pos|nodeType|fn|postInitDialog|xhtml|after|append|newRow|iCols|iRows|createElement|WYM_IMG|getElementsByTagName|WYM_INSERT_IMAGE|WYM_CREATE_LINK|hrefSelector|preInitDialog|hover|wym_area_main|boxSelector|wym_area_left|wym_area_right|WYM_DEFAULT_SKIN|images|css_settings|parse|responseText|async|url|ajax||typeof|SaxListener|XhtmlParser|extend|XmlHelper|htmlSelector|wDialog|replaceStrings|WYM_DIALOG_BODY|WYM_DIALOG_TITLE|WYM_JQUERY_PATH|WYM_WYM_PATH|WYM_CSS_PATH|htmlValSelector|_element|key|switchTo|toggleClass|lgt|WYM_H6|WYM_H5|WYM_H4|WYM_H3|WYM_H1|sName|sContainers|WYM_CONTAINERS_ITEMS|WYM_CONTAINER_CLASS|WYM_CONTAINER_TITLE|WYM_CONTAINER_NAME|aContainers|sClasses|WYM_CLASSES_ITEMS|WYM_CLASS_TITLE|WYM_CLASS_NAME|sTools|WYM_TOOLS_ITEMS|WYM_TOOL_CLASS|WYM_TOOL_NAME|aTools|WYM_STATUS|WYM_IFRAME|WYM_HTML|WYM_CLASSES|WYM_CONTAINERS|WYM_TOOLS|WYM_IFRAME_BASE_PATH|prop|preInit|indent|Caption|wym_title|wym_classes|wym_containers|wym_tools|Status|Classes|Blockquote|Preformatted|Paragraph|Containers|HTML|Paste|Emphasis|Strong|Tools|cssRules||insertRule|status|getTagForStyle|helper|push|_tag_stack|collapse|catch|try|off|ctrlKey|WYM_BR|WYM_ITALIC|WYM_BOLD|WYM_UL|WYM_OL|selection|parentElement|_initialized|returnValue|event|findByName|rep|old|RegExp|inserted|slice|data|isPhantomNode|cancelSelector|previewSelector|dialogPreviewSelector|sText|textSelector|dialogPasteSelector|WYM_MAIN_CONTAINERS|sCaption|newCaption|captionSelector|WYM_TABLE|colsSelector|rowsSelector|dialogTableSelector|dialogLinkSelector|dialogType|uniqueStamp|dialogTypeSelector|index|155px|left|margin|show|containersSelector|toolsSelector|classesSelector|img|WymCssLexer|cssParser||configureEditorUsingRawCss|parser|XhtmlLexer|Lexer|StateStack|ParallelRegex|XhtmlValidator|xhtmlParser|loadXhtmlParser|screen|computeCssPath|computeJqueryPath|computeWymPath|computeBasePath|sData|now|toggleHtml|encloseString|WYM_BASE_PATH|dialogPreviewHtml|dialogPasteHtml|dialogTableHtml|dialogImageHtml|dialogLinkHtml|dialogFeatures|sMessage|statusSelector|in|while|WYM_STRING|WYM_CLASS|sClass|insertBefore|WYM_TOGGLE_HTML|WYM_PASTE|WYM_INSERT_TABLE|exec|updateEvent|updateSelector|classSelector|containerSelector|containersItemHtml|containersItems|classesItemHtml|toolsItemHtml|toolsItems|statusHtml|htmlHtml|classesHtml|containersHtml|toolsHtml|init|WYM_IFRAME_DEFAULT|sKey|wym_dialog_preview|cols|rows|wym_text|wym_dialog_paste|wym_cols|Number_Of_Cols|wym_rows|Number_Of_Rows|wym_caption|wym_dialog_table|wym_alt|Alternative_Text|wym_src|wym_dialog_image|wym_href|wym_dialog_link|head|javascript|xhtml1|DTD|org|www|http|wym_html_val|wym_status|wym_iframe|wym_html|wym_box|Source_Code|Table_Header|Heading_6|Heading_5|Heading_4|Heading_3|Heading_2|Heading_1|ToggleHtml|InsertTable|InsertImage|CreateLink|Unordered_List|Ordered_List|Italic|Bold|en|th|td|pre|ol|h6|h5|h4|h3|h1|WYM_STRINGS_EN|Choose|of|Number|List|feature|Unsupported|super|italic|bold|output|pop|getValidTagAttributes|validator|openBlockTag|addRange|selectNode|styleWithCSS|sup|metaKey|224|remove|children|shiftKey|contentDocument|select|character|move|moveToElementText|addRule|undefined|Text|getData|clipboardData|onpaste|onbeforepaste|onclick|onkeyup|onbeforedeactivate|onfocus|className|gm|trim|indexOf|contains|substring|substr|insertAt|mousedown|get|insertCell|insertRow|innerHTML|createCaption|newCol|opener|removeClass|right|gt|nbsp|wym_dropdown|wym_buttons|wym_panel|wym_skin_default|stopPropagation|ownerDocument|skins|split|getTime|Date|toggle|write|open|replaceChild|removeAttr|removeChild|firstChild|appendChild|box|ready|expr|next|safari|opera|mozilla|msie|wymstrings|wymeditors|each|media|rel|dtd|strict|TR|w3|EN|Strict|XHTML|W3C|PUBLIC|DOCTYPE|top|300|height|560|width|resizable|toolbar|titlebar|menubar|wymupdate|iframeSelector|toolsListSelector|wym_containers_th|TH|wym_containers_blockquote|BLOCKQUOTE|wym_containers_pre|PRE|wym_containers_h6|H6|wym_containers_h5|H5|wym_containers_h4||H4|wym_containers_h3|H3|wym_containers_h2|H2|wym_containers_h1|H1|wym_containers_p|wym_tools_preview|wym_tools_html|wym_tools_paste|wym_tools_table|wym_tools_image|wym_tools_unlink|wym_tools_link|wym_tools_redo|wym_tools_undo|wym_tools_outdent|wym_tools_indent|wym_tools_unordered_list|InsertUnorderedList|wym_tools_ordered_list|InsertOrderedList|wym_tools_subscript|wym_tools_superscript|wym_tools_emphasis|wym_tools_strong|parent|wymiframe|WYMeditor|wym_wymeditor_link|wym_area_bottom|wym_area_top|wym_css_parser|xhtml_parser|TEXT|ATTRIBUTE||ELEMENT|WYM_NODE|DELETE|CURSOR|DOWN|RIGHT|UP|LEFT|HOME|END|ENTER|BACKSPACE|WYM_KEY|tr|thead|tfoot|tbody|dt|dd|noscript|hr|dl|address|FormatBlock|alt|string|Wym_Dialog_Body|Wym_Dialog_Title|Wym_Status|Wym_Iframe|Wym_Html|Wym_Container_Class|Wym_Containers_Title|Wym_Container_Name|Wym_Containers_Items|Wym_Containers|Wym_Class_Title|Wym_Class_Name|Wym_Classes_Items|Wym_Classes|Wym_Tool_Class|Wym_Tool_Title|Wym_Tool_Name|Wym_Tools_Items|Wym_Tools|Wym_Jquery_Path|Wym_Iframe_Base_Path|Wym_Wym_Path|Wym_Css_Path|Wym_Base_Path|Wym_Index|code|Source|Word|from|Alternative|Header|Unordered|Ordered'.split('|'),0,{})) Index: openacs-4/packages/xowiki/www/resources/wymeditor/wym_css_parser.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/resources/wymeditor/wym_css_parser.js,v diff -u -r1.1 -r1.2 --- openacs-4/packages/xowiki/www/resources/wymeditor/wym_css_parser.js 15 Jul 2007 16:07:45 -0000 1.1 +++ openacs-4/packages/xowiki/www/resources/wymeditor/wym_css_parser.js 14 Sep 2007 17:53:31 -0000 1.2 @@ -24,7 +24,7 @@ this.addExitPattern("\\\x2a/", 'WymCssFeddbackStyle'); return this; -} +}; function WymCssParser() { @@ -33,19 +33,19 @@ this.only_wym_blocks = true; this.css_settings = {'classesItems':[], 'editorStyles':[], 'dialogStyles':[]}; return this; -} +}; WymCssParser.prototype.parse = function(raw, only_wym_blocks) { var only_wym_blocks = (only_wym_blocks == undefined ? this.only_wym_blocks : only_wym_blocks); this._Lexer = new WymCssLexer(this, only_wym_blocks); this._Lexer.parse(raw); -} +}; WymCssParser.prototype.Ignore = function(match, state) { return true; -} +}; WymCssParser.prototype.WymCssComment = function(text, status) { @@ -68,7 +68,7 @@ this._in_style = true; } return true; -} +}; WymCssParser.prototype.WymCssStyle = function(match, status) { @@ -83,15 +83,15 @@ this.addStyleSetting(this._current_item); } return true; -} +}; WymCssParser.prototype.WymCssFeddbackStyle = function(match, status) { if(status == LEXER_UNMATCHED){ this._current_item[this._current_element].feedback_style = match.replace(/^([\s\/\*]*)|([\s\/\*]*)$/gm,''); } return true; -} +}; WymCssParser.prototype.WymCssStyleDeclaration = function(match) { @@ -122,7 +122,7 @@ } } return true; -} +}; WymCssParser.prototype.addStyleSetting = function(style_details) { @@ -149,5 +149,5 @@ } } } -} +}; Index: openacs-4/packages/xowiki/www/resources/wymeditor/wym_css_parser.pack.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/resources/wymeditor/wym_css_parser.pack.js,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/xowiki/www/resources/wymeditor/wym_css_parser.pack.js 14 Sep 2007 17:53:31 -0000 1.1 @@ -0,0 +1 @@ +eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('d W(10,7){h 7=(7==Y?b:7);1o.1n(2,X 1m(10,(7?\'B\':\'l\')));2.1l(\'l\',\'B\');3(7==b){2.D("/\\\\\\g[<\\\\s]*Z[>\\\\s]*\\\\\\g/",\'B\',\'l\');2.C("/\\\\\\g[<\\/\\\\s]*Z[>\\\\s]*\\\\\\g/",\'l\')}2.1k("\\\\\\1j[a-z-1i-9]+[\\\\1h-z]*",\'l\',\'R\');2.D("/\\\\\\g",\'l\',\'J\');2.C("\\\\\\g/",\'J\');2.D("\\1g",\'l\',\'A\');2.C("\\1f",\'A\');2.D("/\\\\\\g",\'A\',\'I\');2.C("\\\\\\g/",\'I\');f 2};d e(){2.y=r;2.q=r;2.7=b;2.u={\'N\':[],\'M\':[],\'L\':[]};f 2};e.i.U=d(T,7){h 7=(7==Y?2.7:7);2.V=X W(2,7);2.V.U(T)};e.i.B=d(5,1e){f b};e.i.J=d(t,k){3(t.5(/1d[a-S-9\\s]*1c[a-S-9\\s]*/1b)){f r}3(k==H){3(!2.y){2.q=b;2.6={\'o\':t.m()}}p{3(2.6[2.4]){3(!2.6[2.4].w){2.6[2.4].w=[t]}p{2.6[2.4].w.n(t)}}}2.y=b}f b};e.i.A=d(5,k){3(k==H){5=5.m();3(5!=\'\'){2.6[2.4].E=5}}p 3(k==1a){2.y=r;2.q=r;2.O(2.6)}f b};e.i.I=d(5,k){3(k==H){2.6[2.4].F=5.Q(/^([\\s\\/\\*]*)|([\\s\\/\\*]*)$/P,\'\')}f b};e.i.R=d(5){5=5.Q(/^([\\s\\.]*)|([\\s\\.*]*)$/P,\'\');h j=\'\';3(5.19(\' \')>0){h G=5.18(\' \');2.4=G[0];h j=G[1]}p{2.4=5}3(!2.q){2.6={\'o\':(!j?\'\':j.17()+\': \')+2.4};2.q=b}3(!2.6[2.4]){2.6[2.4]={\'c\':2.4}}3(j){3(!2.6[2.4].v){2.6[2.4].v=[j]}p{2.6[2.4].v.n(j)}}f b};e.i.O=d(x){16(h c 15 x){h 8=x[c];3(14 8==\'13\'&&c!=\'o\'){2.u.N.n({\'c\':8.c.m(),\'o\':x.o,\'12\':(8.w||8.v).11(\', \').m()});3(8.F){2.u.M.n({\'c\':\'.\'+8.c.m(),\'K\':8.F})}3(8.E){2.u.L.n({\'c\':\'.\'+8.c.m(),\'K\':8.E})}}}};',62,87,'||this|if|_current_element|match|_current_item|only_wym_blocks|details|||true|name|function|WymCssParser|return|x2a|var|prototype|tag|status|WymCss|trim|push|title|else|_has_title|false||text|css_settings|tags|expressions|style_details|_in_style||WymCssStyle|Ignore|addExitPattern|addEntryPattern|style|feedback_style|parts|LEXER_UNMATCHED|WymCssFeddbackStyle|WymCssComment|css|dialogStyles|editorStyles|classesItems|addStyleSetting|gm|replace|WymCssStyleDeclaration|z0|raw|parse|_Lexer|WymCssLexer|new|undefined|WYMeditor|parser|join|expr|object|typeof|in|for|toUpperCase|split|indexOf|LEXER_EXIT|mi|wym|end|state|x7d|x7b|sa|_0|x2e|addSpecialPattern|mapHandler|Lexer|extend|jQuery'.split('|'),0,{})) Index: openacs-4/packages/xowiki/www/resources/wymeditor/xhtml_parser.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/resources/wymeditor/xhtml_parser.js,v diff -u -r1.2 -r1.3 --- openacs-4/packages/xowiki/www/resources/wymeditor/xhtml_parser.js 27 Jul 2007 01:15:20 -0000 1.2 +++ openacs-4/packages/xowiki/www/resources/wymeditor/xhtml_parser.js 14 Sep 2007 17:53:31 -0000 1.3 @@ -29,7 +29,7 @@ { this._entitiesDiv = document.createElement('div'); return this; -} +}; /* @@ -55,7 +55,7 @@ options = options || false; open = open || false; return '<'+name+(options ? this.tagOptions(options) : '')+(open ? '>' : ' />'); -} +}; /* * @name contentTag @@ -76,7 +76,7 @@ { options = options || false; return '<'+name+(options ? this.tagOptions(options) : '')+'>'+content+''; -} +}; /* * @name cdataSection @@ -90,7 +90,7 @@ XmlHelper.prototype.cdataSection = function(content) { return ''; -} +}; /* @@ -104,7 +104,7 @@ XmlHelper.prototype.escapeOnce = function(xml) { return this._fixDoubleEscape(this.escapeEntities(xml)); -} +}; /* * @name _fixDoubleEscape @@ -114,7 +114,7 @@ XmlHelper.prototype._fixDoubleEscape = function(escaped) { return escaped.replace(/&([a-z]+|(#\d+));/ig, "&$1;"); -} +}; /* * @name tagOptions @@ -146,7 +146,7 @@ } } return xml._formated_options; -} +}; /* * @name escapeEntities @@ -164,7 +164,7 @@ if(escape_quotes == true) result = result.replace('"', '''); } return result; -} +}; /* * Parses a string conatining tag attributes and values an returns an array formated like @@ -194,7 +194,7 @@ } } return result; -} +}; /** * XhtmlValidator for validating tag attributes @@ -887,11 +887,11 @@ this._possible_tag_attributes = {}; } if (!this._possible_tag_attributes[tag]) { - this._possible_tag_attributes[tag] = this.getUniqueAttributesAndEventsForTag(tag).concat(this.getDefaultAttributesAndEventsForTag(tag));; + this._possible_tag_attributes[tag] = this.getUniqueAttributesAndEventsForTag(tag).concat(this.getDefaultAttributesAndEventsForTag(tag)); } return this._possible_tag_attributes[tag]; } -} +}; /** @@ -913,7 +913,7 @@ this._labels = []; this._regex = null; return this; -} +}; /** @@ -931,7 +931,7 @@ this._patterns[count] = pattern; this._labels[count] = label; this._regex = null; -} +}; /** * Attempts to match all patterns at once against @@ -960,7 +960,7 @@ } } return [true, matches[0]]; -} +}; /** * Compounds the patterns into a single @@ -979,7 +979,7 @@ this._regex = new RegExp(this._patterns.join("|") ,this._getPerlMatchingFlags()); } return this._regex; -} +}; /** * Escape lookahead/lookbehind blocks @@ -994,7 +994,7 @@ replace(/\(\?\<\=(.*)\)/, '~~~~~~Tk5\$1~~~~~~'). replace(/\(\?\<\!(.*)\)/, '~~~~~~Tk6\$1~~~~~~'). replace(/\(\?\:(.*)\)/, '~~~~~~Tk7\$1~~~~~~'); -} +}; /** * Unscape lookahead/lookbehind blocks @@ -1009,7 +1009,7 @@ replace(/~~~~~~Tk5(.*)~~~~~~/, "(?<=\$1)"). replace(/~~~~~~Tk6(.*)~~~~~~/, "(?", 'Comment'); -} +}; XhtmlLexer.prototype.addScriptTokens = function(scope) { this.addEntryPattern("", 'Script'); -} +}; XhtmlLexer.prototype.addCssTokens = function(scope) { this.addEntryPattern("", 'Css'); -} +}; XhtmlLexer.prototype.addTagTokens = function(scope) { @@ -1445,7 +1445,7 @@ this.addSpecialPattern("", scope, 'ClosingTag'); -} +}; XhtmlLexer.prototype.addInTagDeclarationTokens = function(scope) { @@ -1456,7 +1456,7 @@ this.addExitPattern('/>', scope); this.addExitPattern('>', scope); -} +}; XhtmlLexer.prototype.addAttributeTokens = function(scope) { @@ -1471,7 +1471,7 @@ this.addExitPattern("'", 'SingleQuotedAttribute'); this.addSpecialPattern('=\\s*[^>\\s]*', scope, 'UnquotedAttribute'); -} +}; @@ -1494,13 +1494,13 @@ this._current_match = ''; return this; -} +}; XhtmlParser.prototype.parse = function(raw) { this._Lexer.parse(this.beforeParsing(raw)); return this.afterParsing(this._Listener.getResult()); -} +}; XhtmlParser.prototype.beforeParsing = function(raw) { @@ -1509,42 +1509,42 @@ this._Listener.avoidStylingTagsAndAttributes(); } return this._Listener.beforeParsing(raw); -} +}; XhtmlParser.prototype.afterParsing = function(parsed) { if(this._Listener._avoiding_tags_implicitly){ this._Listener.allowStylingTagsAndAttributes(); } return this._Listener.afterParsing(parsed); -} +}; XhtmlParser.prototype.Ignore = function(match, state) { return true; -} +}; XhtmlParser.prototype.Text = function(text) { this._Listener.addContent(text); return true; -} +}; XhtmlParser.prototype.Comment = function(match, status) { return this._addNonTagBlock(match, status, 'addComment'); -} +}; XhtmlParser.prototype.Script = function(match, status) { return this._addNonTagBlock(match, status, 'addScript'); -} +}; XhtmlParser.prototype.Css = function(match, status) { return this._addNonTagBlock(match, status, 'addCss'); -} +}; XhtmlParser.prototype._addNonTagBlock = function(match, state, type) { @@ -1569,7 +1569,7 @@ } } return true; -} +}; XhtmlParser.prototype.OpeningTag = function(match, state) { @@ -1585,21 +1585,22 @@ this._callOpenTagListener(this._tag, this._tag_attributes); } return true; -} +}; XhtmlParser.prototype.ClosingTag = function(match, state) { this._callCloseTagListener(this.normalizeTag(match)); return true; -} +}; XhtmlParser.prototype._callOpenTagListener = function(tag, attributes) { var attributes = attributes || {}; this.autoCloseUnclosedBeforeNewOpening(tag); if(this._Listener.isBlockTag(tag)){ - this._Listener._tag_stack.push(tag); + this._Listener._tag_stack.push(tag); + this._Listener.fixNestingBeforeOpeningBlockTag(tag, attributes); this._Listener.openBlockTag(tag, attributes); this._increaseOpenTagCounter(tag); }else if(this._Listener.isInlineTag(tag)){ @@ -1611,7 +1612,7 @@ this._Listener.last_tag = tag; this._Listener.last_tag_opened = true; this._Listener.last_tag_attributes = attributes; -} +}; XhtmlParser.prototype._callCloseTagListener = function(tag) { @@ -1634,13 +1635,13 @@ } this._Listener.last_tag = tag; this._Listener.last_tag_opened = false; -} +}; XhtmlParser.prototype._increaseOpenTagCounter = function(tag) { this._Listener._open_tags[tag] = this._Listener._open_tags[tag] || 0; this._Listener._open_tags[tag]++; -} +}; XhtmlParser.prototype._decreaseOpenTagCounter = function(tag) { @@ -1652,17 +1653,17 @@ return true; } return false; -} +}; XhtmlParser.prototype.autoCloseUnclosedBeforeNewOpening = function(new_tag) { this._autoCloseUnclosed(new_tag, false); -} +}; XhtmlParser.prototype.autoCloseUnclosedBeforeTagClosing = function(tag) { this._autoCloseUnclosed(tag, true); -} +}; XhtmlParser.prototype._autoCloseUnclosed = function(new_tag, closing) { @@ -1675,12 +1676,12 @@ } } } -} +}; XhtmlParser.prototype.getTagReplacements = function() { return this._Listener.getTagReplacements(); -} +}; XhtmlParser.prototype.normalizeTag = function(tag) { @@ -1690,35 +1691,37 @@ return tags[tag]; } return tag; -} +}; XhtmlParser.prototype.TagAttributes = function(match, state) { if(LEXER_SPECIAL == state){ this._current_attribute = match; } return true; -} +}; XhtmlParser.prototype.DoubleQuotedAttribute = function(match, state) { if(LEXER_UNMATCHED == state){ this._tag_attributes[this._current_attribute] = match; } return true; -} +}; + XhtmlParser.prototype.SingleQuotedAttribute = function(match, state) { if(LEXER_UNMATCHED == state){ this._tag_attributes[this._current_attribute] = match; } return true; -} +}; + XhtmlParser.prototype.UnquotedAttribute = function(match, state) { this._tag_attributes[this._current_attribute] = match.replace(/^=/,''); return true; -} +}; @@ -1836,7 +1839,7 @@ this.inline_tags = ["br", "hr", "img", "input"]; return this; -} +}; XhtmlSaxListener.prototype.shouldCloseTagAutomatically = function(tag, now_on_tag, closing) { @@ -1852,132 +1855,133 @@ } } return false; -} +}; XhtmlSaxListener.prototype.beforeParsing = function(raw) { this.output = ''; return raw; -} +}; XhtmlSaxListener.prototype.afterParsing = function(xhtml) { xhtml = this.replaceNamedEntities(xhtml); xhtml = this.joinRepeatedEntities(xhtml); xhtml = this.removeEmptyTags(xhtml); return xhtml; -} +}; XhtmlSaxListener.prototype.replaceNamedEntities = function(xhtml) { for (entity in this.entities) { xhtml = xhtml.replace(entity, this.entities[entity]); } return xhtml; -} +}; XhtmlSaxListener.prototype.joinRepeatedEntities = function(xhtml) { var tags = 'em|strong|sub|sup|acronym|pre|del|blockquote|address'; return xhtml.replace(new RegExp('<\/('+tags+')><\\1>' ,''),''). replace(new RegExp('(\s*<('+tags+')>\s*){2}(.*)(\s*<\/\\2>\s*){2}' ,''),'<\$2>\$3<\$2>'); -} +}; XhtmlSaxListener.prototype.removeEmptyTags = function(xhtml) { return xhtml.replace(new RegExp('<('+this.block_tags.join("|")+')>(
    | | |\s)*<\/\\1>' ,'g'),''); -} +}; XhtmlSaxListener.prototype.getResult = function() { return this.output; -} +}; XhtmlSaxListener.prototype.getTagReplacements = function() { return {'b':'strong', 'i':'em'}; -} +}; XhtmlSaxListener.prototype.addContent = function(text) { this.output += text; -} +}; XhtmlSaxListener.prototype.addComment = function(text) { if(this.remove_comments){ this.output += text; } -} +}; XhtmlSaxListener.prototype.addScript = function(text) { if(!this.remove_scripts){ this.output += text; } -} +}; XhtmlSaxListener.prototype.addCss = function(text) { if(!this.remove_embeded_styles){ this.output += text; } -} +}; + XhtmlSaxListener.prototype.openBlockTag = function(tag, attributes) { this.output += this.helper.tag(tag, this.validator.getValidTagAttributes(tag, attributes), true); -} +}; XhtmlSaxListener.prototype.inlineTag = function(tag, attributes) { this.output += this.helper.tag(tag, this.validator.getValidTagAttributes(tag, attributes)); -} +}; XhtmlSaxListener.prototype.openUnknownTag = function(tag, attributes) { //this.output += this.helper.tag(tag, attributes, true); -} +}; XhtmlSaxListener.prototype.closeBlockTag = function(tag) -{ - this.output += this._getClosingTagContent('before', tag)+""+this._getClosingTagContent('after', tag); +{ + this.output = this.output.replace(/
    $/, '')+this._getClosingTagContent('before', tag)+""+this._getClosingTagContent('after', tag); }; XhtmlSaxListener.prototype.closeUnknownTag = function(tag) { //this.output += ""; -} +}; XhtmlSaxListener.prototype.closeUnopenedTag = function(tag) { this.output += ""; -} +}; XhtmlSaxListener.prototype.avoidStylingTagsAndAttributes = function() { this.avoided_tags = ['div','span']; this.validator.skiped_attributes = ['style']; this.validator.skiped_attribute_values = ['MsoNormal','main1']; // MS Word attributes for class this._avoiding_tags_implicitly = true; -} +}; XhtmlSaxListener.prototype.allowStylingTagsAndAttributes = function() { this.avoided_tags = []; this.validator.skiped_attributes = []; this.validator.skiped_attribute_values = []; this._avoiding_tags_implicitly = false; -} +}; XhtmlSaxListener.prototype.isBlockTag = function(tag) { return !this.avoided_tags.contains(tag) && this.block_tags.contains(tag); -} +}; XhtmlSaxListener.prototype.isInlineTag = function(tag) { return !this.avoided_tags.contains(tag) && this.inline_tags.contains(tag); -} +}; XhtmlSaxListener.prototype.insertContentAfterClosingTag = function(tag, content) { @@ -1988,6 +1992,14 @@ { this._insertContentWhenClosingTag('before', tag, content); }; + +XhtmlSaxListener.prototype.fixNestingBeforeOpeningBlockTag = function(tag, attributes) +{ + if(tag != 'li' && (tag == 'ul' || tag == 'ol') && this.last_tag && !this.last_tag_opened && this.last_tag == 'li'){ + this.output = this.output.replace(/<\/li>$/, ''); + this.insertContentAfterClosingTag(tag, ''); + } +}; XhtmlSaxListener.prototype._insertContentWhenClosingTag = function(position, tag, content) { @@ -1998,7 +2010,7 @@ this['_insert_'+position+'_closing'][tag] = []; } this['_insert_'+position+'_closing'][tag].push(content); -}; +}; XhtmlSaxListener.prototype._getClosingTagContent = function(position, tag) { Index: openacs-4/packages/xowiki/www/resources/wymeditor/xhtml_parser.pack.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/resources/wymeditor/xhtml_parser.pack.js,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/xowiki/www/resources/wymeditor/xhtml_parser.pack.js 14 Sep 2007 17:53:31 -0000 1.1 @@ -0,0 +1 @@ +eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('f 1n(){c.3R=hc.hb(\'2O\');h c};1n.j.e=f(Y,Z,3S){Z=Z||C;3S=3S||C;h\'<\'+Y+(Z?c.4M(Z):\'\')+(3S?\'>\':\' />\')};1n.j.ha=f(Y,K,Z){Z=Z||C;h\'<\'+Y+(Z?c.4M(Z):\'\')+\'>\'+K+\'\'};1n.j.h9=f(K){h\'\'};1n.j.7a=f(1A){h c.7c(c.79(1A))};1n.j.7c=f(7b){h 7b.y(/&h7;([a-z]+|(#\\d+));/h0,"&$1;")};1n.j.4M=f(Z){o 1A=c;1A.4L=\'\';S(Q 1f Z){o gZ=\'\';o A=Z[Q];l(1x A!=\'f\'&&A.J>0){l(6o(Q)==Q&&1x A==\'2c\'){Q=A.gY();A=A.2K()}l(Q!=\'\'&&A!=\'\'){1A.4L+=\' \'+Q+\'="\'+1A.7a(A)+\'"\'}}}h 1A.4L};1n.j.79=f(3u,3Q){c.3R.78=3u;c.3R.gX=3u;o I=c.3R.78;l(1x 3Q==\'1a\'){l(3Q!=C)I=I.y(\'"\',\'&gW;\');l(3Q==D)I=I.y(\'"\',\'&#gV;\')}h I};1n.j.gU=f(2n){o I=[];o 1r=2n.gT(/((=\\s*")(")("))|((=\\s*\\\')(\\\')(\\\'))|((=\\s*[^>\\s]*))/g);l(1r.gS()!=2n){S(k 1f 1r){o v=1r[k];l(1x v!=\'f\'&&v.J!=0){o 77=W 2r(\'(\\\\w+)\\\\s*\'+v);l(t=2n.t(77)){o A=v.y(/^[\\s=]+/,"");o 2o=A.gR(0);2o=2o==\'"\'?\'"\':(2o=="\'"?"\'":\'\');l(2o!=\'\'){A=2o==\'"\'?A.y(/^"|"+$/g,\'\'):A.y(/^\'|\'+$/g,\'\')}2n=2n.y(t[0],\'\');I.1B([t[1],A])}}}}h I};o 5y={"4D":{"gQ":{"2m":["2f","2d","2u","3z","2b","1C","1u","2a"],"n":["5I","4J","1u","2a","76","75"]},"gP":{"2m":["2f","br","4d","73","2b","1C"],"n":{"4K":["6U","6T"],"0":"4g","1":"1A:4g"}},"74":{"n":{"76":/^(\\w){1}$/,"75":/^(\\d)+$/}}},"4E":{"2k":{"3v":["4f"],"n":["gO","gN"]},"1m":{"3v":["1m","4c","4e","2t","a","1l","2w"],"n":["gM","gL","gK","gJ","gI","gH"]},"74":{"2m":["2f","3b","br","6x","gG","2d","2u","73","3z","2b","1C","1u","2a"],"n":["gF","gE","gD"]},"gC":{"2m":["2f","3b","br","2d","2u","3z","2b","1C","1u","2a"],"n":["gB","gA","gz","gy","gx","gw","gv"]}},"H":{"a":{"n":{"0":"3y","1":"71","2":"2I","3":"6O","4":"Y","6N":/^(3P|72|3D|1c|3G|3F|3L|3H|3J|3K|3M|3E|3C|3O|3I|3N||3B|3A)+$/,"6M":/^(3P|72|3D|1c|3G|3F|3L|3H|3J|3K|3M|3E|3C|3O|3I|3N||3B|3A)+$/,"70":/^(6Z|6Y|4h|6X|6W|6V)$/,"5":"X"}},"0":"3c","1":"48","2":"44","5v":{"n":{"0":"2J","1":"71","2":"2I","gu":/^(D|C)$/,"70":/^(6Z|6Y|4h|6X|6W|6V)$/},"N":["2J"]},"3":"b","2f":{"n":["2I"],"N":["2I"]},"3b":{"n":{"4K":/^(6U|6T)$/},"N":["4K"]},"4":"5u","45":{"n":["2e"]},"5":"4f","6":"br","2w":{"n":{"1k":/^(1k)$/,"X":/^(2w|6R|6Q)$/,"0":"A"},"1z":"1m"},"7":"5t","8":"2e","9":"5s","3a":{"n":{"1S":/^(1R|1Q|1P|1O)$/,"0":"1j","1":"1N","2q":/^(\\d)+$/,"1M":/^(1L|1K|1J|1I)$/,"2":"2H"},"1z":"2v"},"2v":{"n":{"1S":/^(1R|1Q|1P|1O)$/,"0":"1j","1":"1N","2q":/^(\\d)+$/,"1M":/^(1L|1K|1J|1I)$/,"2":"2H"}},"10":"dd","46":{"n":{"0":"2e","6P":/^([0-9]){8}/}},"11":"2O","12":"5r","13":"dl","14":"dt","15":"em","5q":{"1z":"1m"},"1m":{"n":{"0":"2z","1":"2C","2":"2C-3y","3":"gt","gs":/^(gr|gq)$/},"N":["2z"]},"2d":{"n":["gp"]},"16":"h1","17":"h2","18":"h3","19":"h4","20":"h5","21":"h6","22":"4d","2u":{"n":["go"]},"23":"i","5b":{"n":["2J","3x","6K","gn","gl","6J","2H"],"N":["2J","3x"]},"4c":{"n":{"0":"2C","1":"2J","6S":/^(6S)$/,"1k":/^(1k)$/,"gk":/^(\\d)+$/,"2":"Y","4H":/^(4H)$/,"6D":/^(\\d)+$/,"3":"3x","X":/^(2w|gj|gi|gh|5x|gg|gf|6R|6Q|L)$/,"4":"A"},"1z":"1m"},"5p":{"n":{"0":"2e","6P":/^([0-9]){8}/}},"24":"5o","1l":{"n":["S"],"1z":"1m"},"25":"5n","26":"1Y","gd":{"n":{"0":"3y","1":"2I","2":"6O","6C":/^(4I|6y|6z|6A|6B|gc|,|;|)+$/i,"6N":/^(3P|3O|3N|3M|3L|3K|3J|3I|6L|3H|3G|3F|3E|1c|3D|3C||3B|3A)+$/i,"6M":/^(3P|3O|3N|3M|3L|3K|3J|3I|6L|3H|3G|3F|3E|1c|3D|3C||3B|3A)+$/i,"3":"X"},"1z":"2d"},"5m":{"n":["4J","Y"],"N":["4J"]},"3z":{"n":{"0":"K","gb-5w":/^(K\\-X|ga|g9|g8\\-g7)$/i,"1":"Y","2":"g6"},"N":["K"]},"27":"5l","2c":{"n":["g5","g4","g3","g2","6H","g1","6K","Y","g0","X","6J","2H"]},"28":"3W","5k":{"n":{"0":"1l","1k":/^(1k)$/},"N":["1l"]},"2Y":{"n":{"0":"1l","1k":/^(1k)$/,"6I":/^(6I)$/,"1":"A"},"1z":"2t"},"29":"p","2b":{"n":{"0":"X","6G":/^(6H|fZ|2c)$/,"1":"6G","2":"A"},"N":["Y"]},"30":"47","q":{"n":["2e"]},"31":"5j","1C":{"n":{"X":/^(L\\/fY|L\\/fX|L\\/fW|L\\/fV|L\\/fU|L\\/1A)$/,"0":"3y","6F":/^(6F)$/,"1":"3x"},"N":["X"]},"2t":{"n":{"1k":/^(1k)$/,"6E":/^(6E)$/,"0":"Y","1":"6D"},"1z":"1m"},"32":"5i","33":"2q","34":"2S","1u":{"n":{"0":"X","6C":/^(6B|fT|fS|6A|fR|6z|6y|fQ|4I)$/},"N":["X"]},"35":"2V","36":"2U","5h":{"n":{"0":"6w","1":"fP","2":"fO","6x":/^(fN|fM|fL|fK|fJ|fI|fH|fG|6w)$/,"fF":/^(fE|fD|4F|4G|4I)$/,"3":"fC","4":"2H"}},"5g":{"n":{"1S":/^(1R|1Q|1P|1O)$/,"0":"1j","1":"1N","1M":/^(1L|1K|1J|1I)$/}},"2Z":{"n":{"0":"3c","1S":/^(1Q|1R|1P|1O|1j)$/,"1":"6v","2":"1j","3":"1N","6u":/^(\\d)+$/,"4":"6t","6s":/^(\\d)+$/,"G":/^(3a|2v|6r|6q)$/,"1M":/^(1L|1K|1J|1I)$/}},"4e":{"n":["4G","4F","1k","Y","4H"],"N":["4G","4F"],"1z":"1m"},"5f":{"n":{"1S":/^(1R|1Q|1P|1O)$/,"0":"1j","1":"1N","1M":/^(1L|1K|1J)$/,"2":"1I"}},"5e":{"n":{"0":"3c","1S":/^(1Q|1R|1P|1O|1j)$/,"1":"6v","2":"1j","3":"1N","6u":/^(\\d)+$/,"4":"6t","6s":/^(\\d)+$/,"G":/^(3a|2v|6r|6q)$/,"1M":/^(1L|1K|1J|1I)$/}},"5d":{"n":{"1S":/^(1R|1Q|1P|1O)$/,"0":"1j","1":"1N","1M":/^(1L|1K|1J|1I)$/}},"37":"2a","4b":{"n":{"1S":/^(1R|1Q|1P|1O|1j)$/,"0":"1j","1":"1N","1M":/^(1L|1K|1J|1I)$/}},"38":"5c","39":"3X","40":"o"},2N:[],2M:[],42:f(e,n){o 3w={};o 6p=c.6j(e);S(o P 1f n){o A=n[P];l(!c.2N.1e(P)&&!c.2M.1e(A)){l(1x A!=\'f\'&&6p.1e(P)){l(c.6l(e,P)){l(c.6k(e,P,A)){3w[P]=A}}2h{3w[P]=A}}}}h 3w},6i:f(e){o I=[];l(c.H[e]&&c.H[e][\'n\']){S(k 1f c.H[e][\'n\']){I.1B(6o(k)==k?c.H[e][\'n\'][k]:k)}}h I},6m:f(){o I=[];S(o Q 1f c.4E){I.1B(c.4E[Q])}S(o Q 1f c.4D){I.1B(c.4D[Q])}h I},6n:f(e){l(c.H[e]){h D}S(o Q 1f c.H){l(c.H[Q]==e){h D}}h C},6h:f(e){o 4B=[];l(c.6n(e)){o 4C=c.6m();S(o Q 1f 4C){o 1y=4C[Q];l(1x 1y==\'2c\'){l((1y[\'2m\']&&1y[\'2m\'].1e(e))||(1y[\'3v\']&&!1y[\'3v\'].1e(e))){fB}o 3t=1y[\'n\']?1y[\'n\']:1y[\'fA\'];S(k 1f 3t){4B.1B(1x 3t[k]!=\'3u\'?k:3t[k])}}}}h 4B},6l:f(e,P){h c.H[e]&&((c.H[e][\'n\']&&c.H[e][\'n\'][P])||(c.H[e][\'N\']&&c.H[e][\'N\'].1e(P)))},6k:f(e,P,A){l(c.H[e]&&(c.H[e][\'n\']&&c.H[e][\'n\'][P]&&A.J>0&&!A.t(c.H[e][\'n\'][P]))||(c.H[e]&&c.H[e][\'N\']&&c.H[e][\'N\'].1e(P)&&A.J==0)){h C}h c.H[e]!=1a},6j:f(e){l(!c.2G){c.2G={}}l(!c.2G[e]){c.2G[e]=c.6i(e).fz(c.6h(e))}h c.2G[e]}};f 1i(3r){c.1X=3r;c.1H=[];c.4A=[];c.2E=4z;h c};1i.j.1G=f(1q,1l){1l=1l||D;o 2F=c.1H.J;c.1H[2F]=1q;c.4A[2F]=1l;c.2E=4z};1i.j.t=f(6g){l(c.1H.J==0){h[C,\'\']}1r=6g.t(c.6f());l(!1r){h[C,\'\']}o t=1r[0];S(i=1;i<1r.J;i++){l(1r[i]){h[c.4A[i-1],t]}}h[D,1r[0]]};1i.j.6f=f(){l(c.2E==4z){S(i=0,2F=c.1H.J;i<2F;i++){c.1H[i]=\'(\'+c.6d(c.6e(c.1H[i]).y(/([\\/\\(\\)])/g,\'\\\\$1\'))+\')\'}c.2E=W 2r(c.1H.56("|"),c.65())}h c.2E};1i.j.6e=f(3s){h 3s.y(/\\(\\?(i|m|s|x|U)\\)/,\'~~~~~~6c\\$1~~~~~~\').y(/\\(\\?(\\-[i|m|s|x|U])\\)/,\'~~~~~~6b\\$1~~~~~~\').y(/\\(\\?\\=(.*)\\)/,\'~~~~~~6a\\$1~~~~~~\').y(/\\(\\?\\!(.*)\\)/,\'~~~~~~69\\$1~~~~~~\').y(/\\(\\?\\<\\=(.*)\\)/,\'~~~~~~68\\$1~~~~~~\').y(/\\(\\?\\<\\!(.*)\\)/,\'~~~~~~67\\$1~~~~~~\').y(/\\(\\?\\:(.*)\\)/,\'~~~~~~66\\$1~~~~~~\')};1i.j.6d=f(3s){h 3s.y(/~~~~~~6c(.{1})~~~~~~/,"(?\\$1)").y(/~~~~~~6b(.{2})~~~~~~/,"(?\\$1)").y(/~~~~~~6a(.*)~~~~~~/,"(?=\\$1)").y(/~~~~~~69(.*)~~~~~~/,"(?!\\$1)").y(/~~~~~~68(.*)~~~~~~/,"(?<=\\$1)").y(/~~~~~~67(.*)~~~~~~/,"(?",\'4q\')};1o.j.5P=f(G){c.1V("<1C",G,\'4p\');c.1F("",\'4p\')};1o.j.5O=f(G){c.1V("<1u",G,\'4o\');c.1F("",\'4o\')};1o.j.5N=f(G){c.2j("<\\\\s*[a-4s-9:\\-]+\\\\s*>",G,\'3m\');c.1V("<[a-4s-9:\\-]+"+\'[\\\\\\/ \\\\\\>]+\',G,\'3m\');c.5M(\'3m\');c.2j("",G,\'5F\')};1o.j.5M=f(G){c.2j(\'\\\\s+\',G,\'5H\');c.5L(G);c.1F(\'/>\',G);c.1F(\'>\',G)};1o.j.5L=f(G){c.2j("\\\\s*[a-z-fp-9]+\\\\s*(?=\\=)\\\\s*",G,\'5A\');c.1V(\'=\\\\s*"\',G,\'3f\');c.1G("\\\\\\\\\\"",\'3f\');c.1F(\'"\',\'3f\');c.1V("=\\\\s*\'",G,\'3e\');c.1G("\\\\\\\\\'",\'3e\');c.1F("\'",\'3e\');c.2j(\'=\\\\s*[^>\\\\s]*\',G,\'5z\')};f E(5K,r){o r=r||\'1w\';c.5J=W 1o(c);c.u=5K;c.1E=r;c.fo=[];c.fn=\'\';c.fm=\'\';h c};E.j.4r=f(F){c.5J.4r(c.2X(F));h c.2W(c.u.53())};E.j.2X=f(F){l(F.t(/5I="4U"/)||F.t(/fl = "fk:fj-fi-fh/)){c.u.4V()}h c.u.2X(F)};E.j.2W=f(1D){l(c.u.41){c.u.4T()}h c.u.2W(1D)};E.j.5H=f(t,O){h D};E.j.1w=f(L){c.u.52(L);h D};E.j.4q=f(t,2i){h c.3n(t,2i,\'2R\')};E.j.4p=f(t,2i){h c.3n(t,2i,\'2Q\')};E.j.4o=f(t,2i){h c.3n(t,2i,\'2P\')};E.j.3n=f(t,O,X){4n(O){1v 3l:c.2y=t;1U;1v 2g:c.2y+=t;1U;1v 3k:4n(X){1v\'2R\':c.u.2R(c.2y+t);1U;1v\'2Q\':c.u.2Q(c.2y+t);1U;1v\'2P\':c.u.2P(c.2y+t);1U}}h D};E.j.3m=f(t,O){4n(O){1v 3l:c.5G=c.3h(t);c.2x={};1U;1v 3g:c.4m(c.3h(t));1U;1v 3k:c.4m(c.5G,c.2x)}h D};E.j.5F=f(t,O){c.4j(c.3h(t));h D};E.j.4m=f(e,n){o n=n||{};c.5D(e);l(c.u.3Z(e)){c.u.4i.1B(e);c.u.4O(e,n);c.u.51(e,n);c.4l(e)}2h l(c.u.4S(e)){c.u.50(e,n)}2h{c.u.4Z(e,n);c.4l(e)}c.u.2L=e;c.u.3V=D;c.u.fg=n};E.j.4j=f(e){l(c.5E(e)){c.5C(e);l(c.u.3Z(e)){o 3j=c.u.4i.2K();l(3j==C){h}2h l(3j!=e){e=3j}c.u.4Y(e)}2h{c.u.4X(e)}}2h{c.u.4W(e)}c.u.2L=e;c.u.3V=C};E.j.4l=f(e){c.u.1h[e]=c.u.1h[e]||0;c.u.1h[e]++};E.j.5E=f(e){l(c.u.1h[e]){c.u.1h[e]--;l(c.u.1h[e]==0){c.u.1h[e]=1a}h D}h C};E.j.5D=f(3i){c.4k(3i,C)};E.j.5C=f(e){c.4k(e,D)};E.j.4k=f(3i,1g){o 1g=1g||C;l(c.u.1h){S(e 1f c.u.1h){5B=c.u.1h[e];l(5B>0&&c.u.5a(e,3i,1g)){c.4j(e,D)}}}};E.j.2T=f(){h c.u.2T()};E.j.3h=f(e){e=e.y(/^([\\s<\\/>]*)|([\\s<\\/>]*)$/gm,\'\').ff();1Z=c.u.2T();l(1Z[e]){h 1Z[e]}h e};E.j.5A=f(t,O){l(3g==O){c.3d=t}h D};E.j.3f=f(t,O){l(2g==O){c.2x[c.3d]=t}h D};E.j.3e=f(t,O){l(2g==O){c.2x[c.3d]=t}h D};E.j.5z=f(t,O){c.2x[c.3d]=t.y(/^=/,\'\');h D};f B(){c.R=\'\';c.43=W 1n();c.1h={};c.1T=5y;c.4i=[];c.2p=[];c.4a={\'&54;\':\'7\',\'&fe;\':\'&#fd;\',\'&fc;\':\'&#fb;\',\'&fa;\':\'&#f9;\',\'&f8;\':\'&#f7;\',\'&f6;\':\'&#f5;\',\'&f4;\':\'&#f3;\',\'&f2;\':\'&#f1;\',\'&f0;\':\'&#eZ;\',\'&eY;\':\'&#eX;\',\'&eW;\':\'&#eV;\',\'&eU;\':\'&#eT;\',\'&eS;\':\'&#eR;\',\'&eQ;\':\'&#eP;\',\'&eO;\':\'&#eN;\',\'&eM;\':\'&#eL;\',\'&eK;\':\'&#eJ;\',\'&eI;\':\'&#eH;\',\'&eG;\':\'&#eF;\',\'&eE;\':\'&#eD;\',\'&eC;\':\'&#eB;\',\'&eA;\':\'&#ez;\',\'&ey;\':\'&#ex;\',\'&ew;\':\'&#ev;\',\'&eu;\':\'&#et;\',\'&es;\':\'&#er;\',\'&eq;\':\'&#ep;\',\'&eo;\':\'&#en;\',\'⪙\':\'&#ek;\',\'&ej;\':\'&#ei;\',\'&eh;\':\'&#eg;\',\'&ef;\':\'&#ee;\',\'&ed;\':\'&#ec;\',\'&eb;\':\'&#ea;\',\'&e9;\':\'&#e8;\',\'&e7;\':\'&#e6;\',\'&e5;\':\'&#e4;\',\'&e3;\':\'&#e2;\',\'&e1;\':\'&#e0;\',\'&dZ;\':\'&#dY;\',\'&dX;\':\'&#dW;\',\'&dV;\':\'&#dU;\',\'&dT;\':\'&#dS;\',\'&dR;\':\'&#dQ;\',\'&dP;\':\'&#dO;\',\'&dN;\':\'&#dM;\',\'&dL;\':\'&#dK;\',\'&dJ;\':\'&#dI;\',\'&dH;\':\'&#dG;\',\'&dF;\':\'&#dE;\',\'&dD;\':\'&#dC;\',\'&dB;\':\'&#dA;\',\'&dz;\':\'&#dy;\',\'&dx;\':\'&#dw;\',\'&dv;\':\'&#du;\',\'&ds;\':\'&#dr;\',\'&dq;\':\'&#dp;\',\'&do;\':\'&#dn;\',\'&dm;\':\'&#dk;\',\'&dj;\':\'&#di;\',\'&dh;\':\'&#dg;\',\'&df;\':\'&#de;\',\'&dc;\':\'&#db;\',\'&da;\':\'&#d9;\',\'&d8;\':\'&#d7;\',\'&d6;\':\'&#d5;\',\'&d4;\':\'&#d3;\',\'&d2;\':\'&#d1;\',\'&d0;\':\'&#cZ;\',\'&cY;\':\'&#cX;\',\'&cW;\':\'&#cV;\',\'&cU;\':\'&#cT;\',\'&cS;\':\'&#cR;\',\'&cQ;\':\'&#cP;\',\'&cO;\':\'&#cN;\',\'&cM;\':\'&#cL;\',\'&cK;\':\'&#cJ;\',\'&cI;\':\'&#cH;\',\'&cG;\':\'&#cF;\',\'&cE;\':\'&#cD;\',\'&cC;\':\'&#cB;\',\'&cA;\':\'&#cz;\',\'&cy;\':\'&#cx;\',\'&cw;\':\'&#cv;\',\'&cu;\':\'&#ct;\',\'&cs;\':\'&#cr;\',\'&cq;\':\'&#cp;\',\'&co;\':\'&#cn;\',\'&cm;\':\'&#cl;\',\'&ck;\':\'&#cj;\',\'&ci;\':\'&#ch;\',\'&cg;\':\'&#cf;\',\'&ce;\':\'&#cd;\',\'&cc;\':\'&#cb;\',\'&ca;\':\'&#c9;\',\'&c8;\':\'&#c7;\',\'&c6;\':\'&#c5;\',\'&c4;\':\'&#c3;\',\'&c2;\':\'&#c1;\',\'&c0;\':\'&#bZ;\',\'&bY;\':\'&#bX;\',\'&bW;\':\'&#bV;\',\'&4h;\':\'&#bU;\',\'&bT;\':\'&#bS;\',\'&bR;\':\'&#bQ;\',\'&bP;\':\'&#bO;\',\'&bN;\':\'&#bM;\',\'&bL;\':\'&#bK;\',\'&bJ;\':\'&#bI;\',\'&bH;\':\'&#bG;\',\'&bF;\':\'&#bE;\',\'&bD;\':\'&#bC;\',\'&bB;\':\'&#bA;\',\'&bz;\':\'&#by;\',\'&bx;\':\'&#bw;\',\'&bv;\':\'&#bu;\',\'&bt;\':\'&#bs;\',\'&bq;\':\'&#bp;\',\'&bo;\':\'&#bn;\',\'&bm;\':\'&#bl;\',\'&bk;\':\'&#bj;\',\'&bi;\':\'&#bh;\',\'&bg;\':\'&#bf;\',\'&be;\':\'&#bd;\',\'&bc;\':\'&#bb;\',\'&ba;\':\'&#b9;\',\'&b8;\':\'&#b7;\',\'&b6;\':\'&#b5;\',\'&b4;\':\'&#b3;\',\'&b2;\':\'&#b1;\',\'&b0;\':\'&#aZ;\',\'&aY;\':\'&#aX;\',\'&aW;\':\'&#aV;\',\'&aU;\':\'&#aT;\',\'&aS;\':\'&#aR;\',\'&aQ;\':\'&#aP;\',\'&aO;\':\'&#aN;\',\'&aM;\':\'&#aL;\',\'&aK;\':\'&#aJ;\',\'&aI;\':\'&#aH;\',\'&aG;\':\'&#aF;\',\'&aE;\':\'&#aD;\',\'&aC;\':\'&#aB;\',\'&aA;\':\'&#az;\',\'&ay;\':\'&#ax;\',\'&aw;\':\'&#av;\',\'&au;\':\'&#at;\',\'&as;\':\'&#ar;\',\'&aq;\':\'&#ap;\',\'&ao;\':\'&#an;\',\'&am;\':\'&#al;\',\'&ak;\':\'&#aj;\',\'&ai;\':\'&#ah;\',\'&ag;\':\'&#af;\',\'&ae;\':\'&#ad;\',\'∾\':\'&#ab;\',\'&aa;\':\'&#a9;\',\'&a8;\':\'&#a7;\',\'&a6;\':\'&#a5;\',\'&a4;\':\'&#a3;\',\'&a2;\':\'&#a1;\',\'&a0;\':\' Z;\',\'&9Y;\':\' X;\',\'&9W;\':\' V;\',\'&9U;\':\' T;\',\'&9S;\':\' R;\',\'&9Q;\':\' P;\',\'&9O;\':\' N;\',\'&9M;\':\' L;\',\'&9K;\':\' J;\',\'&9I;\':\' H;\',\'&9G;\':\' F;\',\'&9E;\':\' D;\',\'&9C;\':\' B;\',\'&9A;\':\' z;\',\'&9y;\':\' x;\',\'&9w;\':\' v;\',\'&9u;\':\' t;\',\'&9s;\':\' r;\',\'&9q;\':\' p;\',\'&9o;\':\' n;\',\'&9m;\':\' l;\',\'&9k;\':\' j;\',\'&5x;\':\' i;\',\'&9h;\':\' g;\',\'&9f;\':\' e;\',\'&9d;\':\' c;\',\'&9b;\':\' a;\',\'&99;\':\'b\',\'&97;\':\'`\',\'&95;\':\'^\',\'&93;\':\'\\',\'&91;\':\'Z\',\'&8Z;\':\'Y;\',\'&8X;\':\'W;\',\'&8V;\':\'U;\',\'&8T;\':\'S;\',\'&8R;\':\'Q;\',\'&8P;\':\'O;\',\'&8N;\':\'M;\',\'&8L;\':\'K;\',\'&8J;\':\'I;\',\'&8H;\':\'G;\',\'&8F;\':\'E;\',\'&8D;\':\'C;\',\'&8B;\':\'A;\',\'&8z;\':\'y;\',\'&8x;\':\'w;\',\'&8v;\':\'u;\',\'&8t;\':\'s;\',\'&8r;\':\'q;\',\'&8p;\':\'o;\',\'&8n;\':\'m;\',\'&8l;\':\'k;\',\'&8j;\':\'i;\',\'&8h;\':\'g;\',\'&8f;\':\'e;\',\'&8d;\':\'c;\',\'&8b;\':\'a;\',\'&89;\':\'X\',\'&87;\':\'V\',\'&85;\':\'T\',\'&83;\':\'R\',\'&81;\':\'P\',\'&7Z;\':\'Y;\',\'&5w;\':\'X;\',\'&7W;\':\'V;\',\'≥\':\'U;\',\'&2V;\':\'T;\',\'&2U;\':\'S;\',\'&7R;\':\'Q;\',\'&7P;\':\'O;\',\'&7N;\':\'M;\',\'&7L;\':\'K;\',\'&7J;\':\'I;\',\'&7H;\':\'G;\',\'&7F;\':\'E;\',\'&7D;\':\'C;\',\'&7B;\':\'A;\',\'&7z;\':\'y;\',\'&7x;\':\'w;\',\'&4g;\':\'v;\',\'&7u;\':\'t;\',\'&7s;\':\'r;\',\'&7q;\':\'p;\',\'&7o;\':\'n;\',\'&7m;\':\'l;\',\'&7k;\':\'j;\'};c.3Y=["a","3c","48","44","5v","b","2f","3b","5u","45","4f","2w","5t","2e","5s","3a","2v","dd","46","2O","5r","dl","dt","em","5q","1m","2d","h1","h2","h3","h4","h5","h6","2u","i","5p","5o","1l","5n","1Y","5m","5l","2c","3W","5k","2Y","p","2b","47","q","5j","1C","2t","5i","2q","2S","1u","2V","2U","5h","5g","2Z","4e","5f","5e","5d","2a","4b","5c","3X","o","7i"];c.4R=["br","4d","5b","4c"];h c};B.j.5a=f(e,2s,1g){o 1g=1g||C;l(e==\'2Z\'){l((1g&&2s==\'4b\')||(!1g&&2s==\'2Z\')){h D}}l(e==\'2Y\'){l((1g&&2s==\'2t\')||(!1g&&2s==\'2Y\')){h D}}h C};B.j.2X=f(F){c.R=\'\';h F};B.j.2W=f(M){M=c.59(M);M=c.58(M);M=c.57(M);h M};B.j.59=f(M){S(49 1f c.4a){M=M.y(49,c.4a[49])}h M};B.j.58=f(M){o 1Z=\'em|2S|2V|2U|48|47|46|45|44\';h M.y(W 2r(\'<\\/(\'+1Z+\')><\\\\1>\',\'\'),\'\').y(W 2r(\'(\\s*<(\'+1Z+\')>\\s*){2}(.*)(\\s*<\\/\\\\2>\\s*){2}\',\'\'),\'<\\$2>\\$3<\\$2>\')};B.j.57=f(M){h M.y(W 2r(\'<(\'+c.3Y.56("|")+\')>(
    |7|&54;|\\s)*<\\/\\\\1>\',\'g\'),\'\')};B.j.53=f(){h c.R};B.j.2T=f(){h{\'b\':\'2S\',\'i\':\'em\'}};B.j.52=f(L){c.R+=L};B.j.2R=f(L){l(c.7h){c.R+=L}};B.j.2Q=f(L){l(!c.7g){c.R+=L}};B.j.2P=f(L){l(!c.7f){c.R+=L}};B.j.51=f(e,n){c.R+=c.43.e(e,c.1T.42(e,n),D)};B.j.50=f(e,n){c.R+=c.43.e(e,c.1T.42(e,n))};B.j.4Z=f(e,n){};B.j.4Y=f(e){c.R=c.R.y(/
    $/,\'\')+c.3T(\'4P\',e)+""+c.3T(\'4Q\',e)};B.j.4X=f(e){};B.j.4W=f(e){c.R+=""};B.j.4V=f(){c.2p=[\'2O\',\'2q\'];c.1T.2N=[\'1u\'];c.1T.2M=[\'4U\',\'7e\'];c.41=D};B.j.4T=f(){c.2p=[];c.1T.2N=[];c.1T.2M=[];c.41=C};B.j.3Z=f(e){h!c.2p.1e(e)&&c.3Y.1e(e)};B.j.4S=f(e){h!c.2p.1e(e)&&c.4R.1e(e)};B.j.4N=f(e,K){c.3U(\'4Q\',e,K)};B.j.7d=f(e,K){c.3U(\'4P\',e,K)};B.j.4O=f(e,n){l(e!=\'1Y\'&&(e==\'3X\'||e==\'3W\')&&c.2L&&!c.3V&&c.2L==\'1Y\'){c.R=c.R.y(/<\\/1Y>$/,\'\');c.4N(e,\'\')}};B.j.3U=f(1d,e,K){l(!c[\'1t\'+1d+\'1s\']){c[\'1t\'+1d+\'1s\']=[]}l(!c[\'1t\'+1d+\'1s\'][e]){c[\'1t\'+1d+\'1s\'][e]=[]}c[\'1t\'+1d+\'1s\'][e].1B(K)};B.j.3T=f(1d,e){l(c[\'1t\'+1d+\'1s\']&&c[\'1t\'+1d+\'1s\'][e]&&c[\'1t\'+1d+\'1s\'][e].J>0){h c[\'1t\'+1d+\'1s\'][e].2K()}h\'\'};',62,1067,'||||||||||||this||tag|function||return||prototype||if||attributes|var|||mode||match|_Listener||||replace||value|XhtmlSaxListener|false|true|XhtmlParser|raw|scope|_tags|result|length|content|text|xhtml|required|state|attribute|key|output|for|Lexer||_regexes|new|type|name|options|||||||||||undefined|_mode_handlers|start|position|contains|in|closing|_open_tags|ParallelRegex|char|disabled|label|form|XmlHelper|XhtmlLexer|matched|pattern|matches|_closing|_insert_|style|case|Text|typeof|defaults|inside|xml|push|script|parsed|_mode|addExitPattern|addPattern|_patterns|baseline|bottom|middle|top|valign|charoff|justify|center|left|right|align|validator|break|addEntryPattern|_invokeParser|_case|li|tags|||||||||||title|param|object|head|cite|base|LEXER_UNMATCHED|else|status|addSpecialPattern|window|_stack|except|tag_attributes|delimiter|avoided_tags|span|RegExp|now_on_tag|select|html|colgroup|button|_tag_attributes|_non_tag|action|special|new_mode|accept|StateStack|_regex|count|_possible_tag_attributes|width|href|alt|pop|last_tag|skiped_attribute_values|skiped_attributes|div|addCss|addScript|addComment|strong|getTagReplacements|sup|sub|afterParsing|beforeParsing|option|td|||||||||||col|bdo|abbr|_current_attribute|SingleQuotedAttribute|DoubleQuotedAttribute|LEXER_SPECIAL|normalizeTag|new_tag|expected_tag|LEXER_EXIT|LEXER_ENTER|OpeningTag|_addNonTagBlock|parser|handler|unmatched|case_sensitive|regex|tag_defaults|string|only|valid_attributes|src|charset|meta|icon|shortcut|subsection|stylesheet|section|prev|next|index|help|glossary|copyright|contents|chapter|bookmark|appendix|alternate|escape_quotes|_entitiesDiv|open|_getClosingTagContent|_insertContentWhenClosingTag|last_tag_opened|ol|ul|block_tags|isBlockTag||_avoiding_tags_implicitly|getValidTagAttributes|helper|address|blockquote|del|pre|acronym|entity|entities|tr|input|hr|textarea|body|lang|circ|_tag_stack|_callCloseTagListener|_autoCloseUnclosed|_increaseOpenTagCounter|_callOpenTagListener|switch|Css|Script|Comment|parse|z0|unparsed_character_count|substring|getCurrent|_parser|enter|leave|null|_labels|default_attributes|default_attributes_and_events|_attributes|_events|rows|cols|readonly|all|id|dir|_formated_options|tagOptions|insertContentAfterClosingTag|fixNestingBeforeOpeningBlockTag|before|after|inline_tags|isInlineTag|allowStylingTagsAndAttributes|MsoNormal|avoidStylingTagsAndAttributes|closeUnopenedTag|closeUnknownTag|closeBlockTag|openUnknownTag|inlineTag|openBlockTag|addContent|getResult|nbsp|160|join|removeEmptyTags|joinRepeatedEntities|replaceNamedEntities|shouldCloseTagAutomatically|img|tt|thead|th|tfoot|tbody|table|small|samp|optgroup|noscript|map|legend|kbd|ins|fieldset|dfn|code|caption|big|area|equiv|image|XhtmlValidator|UnquotedAttribute|TagAttributes|counter|autoCloseUnclosedBeforeTagClosing|autoCloseUnclosedBeforeNewOpening|_decreaseOpenTagCounter|ClosingTag|_tag|Ignore|class|_Lexer|Listener|addAttributeTokens|addInTagDeclarationTokens|addTagTokens|addCssTokens|addScriptTokens|addCommentTokens|addTokens|init|mapHandler|unparsed|_reduce|is_match|current|_decodeSpecial|_|_isSpecialMode|__exit|_isModeEnd|LEXER_MATCHED|_dispatchTokens|_getPerlMatchingFlags|Tk7|Tk6|Tk5|Tk4|Tk3|Tk2|Tk1|_untokenizeRegex|_tokenizeRegex|_getCompoundedRegex|subject|getDefaultAttributesAndEventsForTag|getUniqueAttributesAndEventsForTag|getPossibleTagAttributes|validateAttribute|doesAttributeNeedsValidation|getDefaultAttributesAndEventsForTags|isValidTag|parseInt|possible_attributes|rowgroup|row|rowspan|headers|colspan|axis|border|frame|braille|print|projection|screen|media|size|multiple|defer|valuetype|data|selected|usemap|height|home|rev|rel|hreflang|datetime|submit|reset|checked|rtl|ltr|polygon|poly|circle|rectangle|rect|shape|coords|designates|iframe|keyboard|tabindex|accesskey|re|innerHTML|escapeEntities|escapeOnce|escaped|_fixDoubleEscape|insertContentBeforeClosingTag|main1|remove_embeded_styles|remove_scripts|remove_comments|extends|9830|diams|9829|hearts|9827|clubs|9824|spades|9674|loz|9002|rang|9001|8971|rfloor|8970|lfloor|8969|rceil|8968|lceil|8901|sdot|8869|perp|8855|otimes|8853|oplus|8839|supe|8838|sube|8836|nsub|8835|8834|8805|8804|le|8801|8800|ne|8776|asymp|8773|cong|8764|sim|8756|there4|8747|int|8746|cup|8745|cap|8744|or|8743|and|8736|ang|8734|infin|8733|prop|8730|radic|8727|lowast|8722|minus|8721|sum|8719|prod|8715|ni|8713|notin|8712|isin|8711|nabla|8709|empty|8707|exist|8706|part|8704|forall|8660|hArr|8659|dArr|8658|rArr|8657|uArr|8656|lArr|8629|crarr|8596|harr|8595|darr|8594|rarr|8593|uarr|8592|larr|8501|alefsym|8482|trade|8476|real|8472|weierp|8465|8364|euro|8260|frasl|8254|oline|8250|rsaquo|8249|lsaquo|8243|Prime|8242|prime|8240|permil|8230|hellip|8226|bull|8225|Dagger|8224|dagger|8222|bdquo|8221|rdquo|8220|ldquo|8218|sbquo|8217|rsquo|8216|lsquo|8212|mdash|8211|ndash|8207|rlm|8206|lrm|8205|zwj|8204|zwnj|8201|thinsp|8195|emsp|8194|ensp|982|piv|978|upsih|977|thetasym|969|omega|968|psi|967|chi|966|phi|965|upsilon|964|tau|963|sigma|962|sigmaf|961|rho|960|pi|959|omicron|958|xi|957|nu|956|mu|955|lambda|954|kappa|953|iota|952|theta|951|eta|950|zeta|949|epsilon|948|delta|947|gamma|946|beta|945|alpha|937|Omega|936|Psi|935|Chi|934|Phi|933|Upsilon|932|Tau|931|Sigma|929|Rho|928|Pi|927|Omicron|926|Xi||925|Nu|924|Mu|923|Lambda|922|Kappa|921|Iota|920|Theta|919|Eta|918|Zeta|917|Epsilon|916|Delta|915|Gamma|914|Beta|913|Alpha|732|tilde|710|402|fnof|376|Yuml|353|scaron|352|Scaron|339|oelig|338|OElig|255|yuml|254|thorn|253|yacute|252|uuml|251|ucirc|250|uacute|249|ugrave|248|oslash|247|divide|246|ouml|245|otilde|244|ocirc|243|oacute|242|ograve|241|ntilde|240|eth|239|iuml|238|icirc|237|iacute|236|igrave|235|euml|234|ecirc|233|eacute|232|egrave|231|ccedil|230|aelig|229|aring|228|auml|227|atilde|226|acirc|225|aacute|224|agrave|223|szlig|222|THORN||221|Yacute|220|Uuml|219|Ucirc|218||Uacute|217|Ugrave|216|Oslash|215|times||214|Ouml|213|Otilde|212|Ocirc|211|Oacute|210|Ograve|209|Ntilde|208|ETH|207|Iuml|206|Icirc|205|Iacute|204|Igrave|203|Euml|202|Ecirc|201|Eacute|200|Egrave|199|Ccedil|198|AElig|197|Aring|196|Auml|195|Atilde|194|Acirc|193|Aacute|192|Agrave|191|iquest|190|frac34|189|frac12|188|frac14||187|raquo|186|ordm|185|sup1|184|cedil|183|middot|182|para|181|micro|180|acute|179|sup3|178|sup2|177|plusmn|176|deg|175|macr|174|reg|173|shy|172|not|171|laquo|170|ordf|169|copy|168|uml|167|sect|166|brvbar|165|yen|164|curren|163|pound|162|cent|161|iexcl|toLowerCase|last_tag_attributes|com|microsoft|schemas|urn|ns|_current_match|_last_match|_matches|_0|extend|jQuery|substr|indexOf|eval|test|boolean|while|mi|concat|events|continue|summary|groups|none|rules|box|vsides|rhs|lhs|hsides|below|above|void|cellspacing|cellpadding|aural|handheld|tv|tty|vbs|vbscript|jscript|javascript|ecmascript|ref|standby|declare|codetype|codebase|classid|archive|scheme|cookie|set|refresh|expires|http|speech|link||radio|password|hidden|file|checkbox|maxlength|longdesc||ismap|xmlns|profile|post|get|method|enctype|nohref|onmouseup|onmouseout|onmouseover|onmousemove|onmousedown|ondblclick|onclick|mouse|onkeyup|onkeypress|onkeydown|frameset|onfocus|onblur|onselect|onreset|onsubmit|onchange|onunload|onload|language|core|charAt|toString|split|parseAttributes|039|quot|textContent|shift|formated_options|ig|||||||amp|CDATA|cdataSection|contentTag|createElement|document'.split('|'),0,{})) Index: openacs-4/packages/xowiki/www/resources/wymeditor/iframe/default/wymiframe.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/resources/wymeditor/iframe/default/wymiframe.html,v diff -u -r1.2 -r1.3 --- openacs-4/packages/xowiki/www/resources/wymeditor/iframe/default/wymiframe.html 27 Jul 2007 01:15:21 -0000 1.2 +++ openacs-4/packages/xowiki/www/resources/wymeditor/iframe/default/wymiframe.html 14 Sep 2007 17:53:31 -0000 1.3 @@ -1,4 +1,4 @@ - +