code
stringlengths
1
2.01M
repo_name
stringlengths
3
62
path
stringlengths
1
267
language
stringclasses
231 values
license
stringclasses
13 values
size
int64
1
2.01M
<!DOCTYPE html> <!-- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license --> <html> <head> <meta charset="utf-8"> <title>CKEditor Samples</title> <link rel="stylesheet" href="sample.css"> </head> <body> <h1 class="samples"> CKEditor Samples </h1> <div class="twoColumns"> <div class="twoColumnsLeft"> <h2 class="samples"> Basic Samples </h2> <dl class="samples"> <dt><a class="samples" href="replacebyclass.html">Replace textarea elements by class name</a></dt> <dd>Automatic replacement of all textarea elements of a given class with a CKEditor instance.</dd> <dt><a class="samples" href="replacebycode.html">Replace textarea elements by code</a></dt> <dd>Replacement of textarea elements with CKEditor instances by using a JavaScript call.</dd> <dt><a class="samples" href="jquery.html">Create editors with jQuery</a></dt> <dd>Creating standard and inline CKEditor instances with jQuery adapter.</dd> </dl> <h2 class="samples"> Basic Customization </h2> <dl class="samples"> <dt><a class="samples" href="uicolor.html">User Interface color</a></dt> <dd>Changing CKEditor User Interface color and adding a toolbar button that lets the user set the UI color.</dd> <dt><a class="samples" href="uilanguages.html">User Interface languages</a></dt> <dd>Changing CKEditor User Interface language and adding a drop-down list that lets the user choose the UI language.</dd> </dl> <h2 class="samples">Plugins</h2> <dl class="samples"> <dt><a class="samples" href="plugins/magicline/magicline.html">Magicline plugin</a></dt> <dd>Using the Magicline plugin to access difficult focus spaces.</dd> <dt><a class="samples" href="plugins/wysiwygarea/fullpage.html">Full page support</a></dt> <dd>CKEditor inserted with a JavaScript call and used to edit the whole page from &lt;html&gt; to &lt;/html&gt;.</dd> </dl> </div> <div class="twoColumnsRight"> <h2 class="samples"> Inline Editing </h2> <dl class="samples"> <dt><a class="samples" href="inlineall.html">Massive inline editor creation</a></dt> <dd>Turn all elements with <code>contentEditable = true</code> attribute into inline editors.</dd> <dt><a class="samples" href="inlinebycode.html">Convert element into an inline editor by code</a></dt> <dd>Conversion of DOM elements into inline CKEditor instances by using a JavaScript call.</dd> <dt><a class="samples" href="inlinetextarea.html">Replace textarea with inline editor</a> <span class="new">New!</span></dt> <dd>A form with a textarea that is replaced by an inline editor at runtime.</dd> </dl> <h2 class="samples"> Advanced Samples </h2> <dl class="samples"> <dt><a class="samples" href="datafiltering.html">Data filtering and features activation</a> <span class="new">New!</span></dt> <dd>Data filtering and automatic features activation basing on configuration.</dd> <dt><a class="samples" href="divreplace.html">Replace DIV elements on the fly</a></dt> <dd>Transforming a <code>div</code> element into an instance of CKEditor with a mouse click.</dd> <dt><a class="samples" href="appendto.html">Append editor instances</a></dt> <dd>Appending editor instances to existing DOM elements.</dd> <dt><a class="samples" href="ajax.html">Create and destroy editor instances for Ajax applications</a></dt> <dd>Creating and destroying CKEditor instances on the fly and saving the contents entered into the editor window.</dd> <dt><a class="samples" href="api.html">Basic usage of the API</a></dt> <dd>Using the CKEditor JavaScript API to interact with the editor at runtime.</dd> <dt><a class="samples" href="xhtmlstyle.html">XHTML-compliant style</a></dt> <dd>Configuring CKEditor to produce XHTML 1.1 compliant attributes and styles.</dd> <dt><a class="samples" href="readonly.html">Read-only mode</a></dt> <dd>Using the readOnly API to block introducing changes to the editor contents.</dd> <dt><a class="samples" href="tabindex.html">"Tab" key-based navigation</a></dt> <dd>Navigating among editor instances with tab key.</dd> <dt><a class="samples" href="plugins/dialog/dialog.html">Using the JavaScript API to customize dialog windows</a></dt> <dd>Using the dialog windows API to customize dialog windows without changing the original editor code.</dd> <dt><a class="samples" href="plugins/enterkey/enterkey.html">Using the &quot;Enter&quot; key in CKEditor</a></dt> <dd>Configuring the behavior of <em>Enter</em> and <em>Shift+Enter</em> keys.</dd> <dt><a class="samples" href="plugins/htmlwriter/outputforflash.html">Output for Flash</a></dt> <dd>Configuring CKEditor to produce HTML code that can be used with Adobe Flash.</dd> <dt><a class="samples" href="plugins/htmlwriter/outputhtml.html">Output HTML</a></dt> <dd>Configuring CKEditor to produce legacy HTML 4 code.</dd> <dt><a class="samples" href="plugins/toolbar/toolbar.html">Toolbar Configurations</a></dt> <dd>Configuring CKEditor to display full or custom toolbar layout.</dd> </dl> </div> </div> <div id="footer"> <hr> <p> CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a> </p> <p id="copy"> Copyright &copy; 2003-2014, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved. </p> </div> </body> </html>
09-movie
trunk/shared/plugin/ckeditor/samples/index.html
HTML
gpl3
5,637
<!DOCTYPE html> <!-- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license --> <html> <head> <meta charset="utf-8"> <title>Replace Textareas by Class Name &mdash; CKEditor Sample</title> <script src="../ckeditor.js"></script> <link rel="stylesheet" href="sample.css"> </head> <body> <h1 class="samples"> <a href="index.html">CKEditor Samples</a> &raquo; Replace Textarea Elements by Class Name </h1> <div class="description"> <p> This sample shows how to automatically replace all <code>&lt;textarea&gt;</code> elements of a given class with a CKEditor instance. </p> <p> To replace a <code>&lt;textarea&gt;</code> element, simply assign it the <code>ckeditor</code> class, as in the code below: </p> <pre class="samples"> &lt;textarea <strong>class="ckeditor</strong>" name="editor1"&gt;&lt;/textarea&gt; </pre> <p> Note that other <code>&lt;textarea&gt;</code> attributes (like <code>id</code> or <code>name</code>) need to be adjusted to your document. </p> </div> <form action="sample_posteddata.php" method="post"> <p> <label for="editor1"> Editor 1: </label> <textarea class="ckeditor" cols="80" id="editor1" name="editor1" rows="10"> &lt;h1&gt;&lt;img alt=&quot;Saturn V carrying Apollo 11&quot; class=&quot;right&quot; src=&quot;assets/sample.jpg&quot;/&gt; Apollo 11&lt;/h1&gt; &lt;p&gt;&lt;b&gt;Apollo 11&lt;/b&gt; was the spaceflight that landed the first humans, Americans &lt;a href=&quot;http://en.wikipedia.org/wiki/Neil_Armstrong&quot; title=&quot;Neil Armstrong&quot;&gt;Neil Armstrong&lt;/a&gt; and &lt;a href=&quot;http://en.wikipedia.org/wiki/Buzz_Aldrin&quot; title=&quot;Buzz Aldrin&quot;&gt;Buzz Aldrin&lt;/a&gt;, on the Moon on July 20, 1969, at 20:18 UTC. Armstrong became the first to step onto the lunar surface 6 hours later on July 21 at 02:56 UTC.&lt;/p&gt; &lt;p&gt;Armstrong spent about &lt;s&gt;three and a half&lt;/s&gt; two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5&amp;nbsp;kg) of lunar material for return to Earth. A third member of the mission, &lt;a href=&quot;http://en.wikipedia.org/wiki/Michael_Collins_(astronaut)&quot; title=&quot;Michael Collins (astronaut)&quot;&gt;Michael Collins&lt;/a&gt;, piloted the &lt;a href=&quot;http://en.wikipedia.org/wiki/Apollo_Command/Service_Module&quot; title=&quot;Apollo Command/Service Module&quot;&gt;command&lt;/a&gt; spacecraft alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth.&lt;/p&gt; &lt;h2&gt;Broadcasting and &lt;em&gt;quotes&lt;/em&gt; &lt;a id=&quot;quotes&quot; name=&quot;quotes&quot;&gt;&lt;/a&gt;&lt;/h2&gt; &lt;p&gt;Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;One small step for [a] man, one giant leap for mankind.&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;Apollo 11 effectively ended the &lt;a href=&quot;http://en.wikipedia.org/wiki/Space_Race&quot; title=&quot;Space Race&quot;&gt;Space Race&lt;/a&gt; and fulfilled a national goal proposed in 1961 by the late U.S. President &lt;a href=&quot;http://en.wikipedia.org/wiki/John_F._Kennedy&quot; title=&quot;John F. Kennedy&quot;&gt;John F. Kennedy&lt;/a&gt; in a speech before the United States Congress:&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;[...] before this decade is out, of landing a man on the Moon and returning him safely to the Earth.&lt;/p&gt;&lt;/blockquote&gt; &lt;h2&gt;Technical details &lt;a id=&quot;tech-details&quot; name=&quot;tech-details&quot;&gt;&lt;/a&gt;&lt;/h2&gt; &lt;table align=&quot;right&quot; border=&quot;1&quot; bordercolor=&quot;#ccc&quot; cellpadding=&quot;5&quot; cellspacing=&quot;0&quot; style=&quot;border-collapse:collapse;margin:10px 0 10px 15px;&quot;&gt; &lt;caption&gt;&lt;strong&gt;Mission crew&lt;/strong&gt;&lt;/caption&gt; &lt;thead&gt; &lt;tr&gt; &lt;th scope=&quot;col&quot;&gt;Position&lt;/th&gt; &lt;th scope=&quot;col&quot;&gt;Astronaut&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;Commander&lt;/td&gt; &lt;td&gt;Neil A. Armstrong&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Command Module Pilot&lt;/td&gt; &lt;td&gt;Michael Collins&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Lunar Module Pilot&lt;/td&gt; &lt;td&gt;Edwin &amp;quot;Buzz&amp;quot; E. Aldrin, Jr.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;p&gt;Launched by a &lt;strong&gt;Saturn V&lt;/strong&gt; rocket from &lt;a href=&quot;http://en.wikipedia.org/wiki/Kennedy_Space_Center&quot; title=&quot;Kennedy Space Center&quot;&gt;Kennedy Space Center&lt;/a&gt; in Merritt Island, Florida on July 16, Apollo 11 was the fifth manned mission of &lt;a href=&quot;http://en.wikipedia.org/wiki/NASA&quot; title=&quot;NASA&quot;&gt;NASA&lt;/a&gt;&amp;#39;s Apollo program. The Apollo spacecraft had three parts:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;&lt;strong&gt;Command Module&lt;/strong&gt; with a cabin for the three astronauts which was the only part which landed back on Earth&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Service Module&lt;/strong&gt; which supported the Command Module with propulsion, electrical power, oxygen and water&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Lunar Module&lt;/strong&gt; for landing on the Moon.&lt;/li&gt; &lt;/ol&gt; &lt;p&gt;After being sent to the Moon by the Saturn V&amp;#39;s upper stage, the astronauts separated the spacecraft from it and travelled for three days until they entered into lunar orbit. Armstrong and Aldrin then moved into the Lunar Module and landed in the &lt;a href=&quot;http://en.wikipedia.org/wiki/Mare_Tranquillitatis&quot; title=&quot;Mare Tranquillitatis&quot;&gt;Sea of Tranquility&lt;/a&gt;. They stayed a total of about 21 and a half hours on the lunar surface. After lifting off in the upper part of the Lunar Module and rejoining Collins in the Command Module, they returned to Earth and landed in the &lt;a href=&quot;http://en.wikipedia.org/wiki/Pacific_Ocean&quot; title=&quot;Pacific Ocean&quot;&gt;Pacific Ocean&lt;/a&gt; on July 24.&lt;/p&gt; &lt;hr/&gt; &lt;p style=&quot;text-align: right;&quot;&gt;&lt;small&gt;Source: &lt;a href=&quot;http://en.wikipedia.org/wiki/Apollo_11&quot;&gt;Wikipedia.org&lt;/a&gt;&lt;/small&gt;&lt;/p&gt; </textarea> </p> <p> <input type="submit" value="Submit"> </p> </form> <div id="footer"> <hr> <p> CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a> </p> <p id="copy"> Copyright &copy; 2003-2014, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved. </p> </div> </body> </html>
09-movie
trunk/shared/plugin/ckeditor/samples/replacebyclass.html
HTML
gpl3
6,834
<!DOCTYPE html> <!-- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license --> <html> <head> <meta charset="utf-8"> <title>Replace Textarea with Inline Editor &mdash; CKEditor Sample</title> <script src="../ckeditor.js"></script> <link href="sample.css" rel="stylesheet"> <style> /* Style the CKEditor element to look like a textfield */ .cke_textarea_inline { padding: 10px; height: 200px; overflow: auto; border: 1px solid gray; -webkit-appearance: textfield; } </style> </head> <body> <h1 class="samples"> <a href="index.html">CKEditor Samples</a> &raquo; Replace Textarea with Inline Editor </h1> <div class="description"> <p> You can also create an inline editor from a <code>textarea</code> element. In this case the <code>textarea</code> will be replaced by a <code>div</code> element with inline editing enabled. </p> <pre class="samples"> // "article-body" is the name of a textarea element. var editor = CKEDITOR.inline( 'article-body' ); </pre> </div> <form action="sample_posteddata.php" method="post"> <h2>This is a sample form with some fields</h2> <p> Title:<br> <input type="text" name="title" value="Sample Form"></p> <p> Article Body (Textarea converted to CKEditor):<br> <textarea name="article-body" style="height: 200px"> &lt;h2&gt;Technical details &lt;a id="tech-details" name="tech-details"&gt;&lt;/a&gt;&lt;/h2&gt; &lt;table align="right" border="1" bordercolor="#ccc" cellpadding="5" cellspacing="0" style="border-collapse:collapse;margin:10px 0 10px 15px;"&gt; &lt;caption&gt;&lt;strong&gt;Mission crew&lt;/strong&gt;&lt;/caption&gt; &lt;thead&gt; &lt;tr&gt; &lt;th scope="col"&gt;Position&lt;/th&gt; &lt;th scope="col"&gt;Astronaut&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;Commander&lt;/td&gt; &lt;td&gt;Neil A. Armstrong&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Command Module Pilot&lt;/td&gt; &lt;td&gt;Michael Collins&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Lunar Module Pilot&lt;/td&gt; &lt;td&gt;Edwin &quot;Buzz&quot; E. Aldrin, Jr.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;p&gt;Launched by a &lt;strong&gt;Saturn V&lt;/strong&gt; rocket from &lt;a href="http://en.wikipedia.org/wiki/Kennedy_Space_Center" title="Kennedy Space Center"&gt;Kennedy Space Center&lt;/a&gt; in Merritt Island, Florida on July 16, Apollo 11 was the fifth manned mission of &lt;a href="http://en.wikipedia.org/wiki/NASA" title="NASA"&gt;NASA&lt;/a&gt;&#39;s Apollo program. The Apollo spacecraft had three parts:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;&lt;strong&gt;Command Module&lt;/strong&gt; with a cabin for the three astronauts which was the only part which landed back on Earth&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Service Module&lt;/strong&gt; which supported the Command Module with propulsion, electrical power, oxygen and water&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Lunar Module&lt;/strong&gt; for landing on the Moon.&lt;/li&gt; &lt;/ol&gt; &lt;p&gt;After being sent to the Moon by the Saturn V&#39;s upper stage, the astronauts separated the spacecraft from it and travelled for three days until they entered into lunar orbit. Armstrong and Aldrin then moved into the Lunar Module and landed in the &lt;a href="http://en.wikipedia.org/wiki/Mare_Tranquillitatis" title="Mare Tranquillitatis"&gt;Sea of Tranquility&lt;/a&gt;. They stayed a total of about 21 and a half hours on the lunar surface. After lifting off in the upper part of the Lunar Module and rejoining Collins in the Command Module, they returned to Earth and landed in the &lt;a href="http://en.wikipedia.org/wiki/Pacific_Ocean" title="Pacific Ocean"&gt;Pacific Ocean&lt;/a&gt; on July 24.&lt;/p&gt; &lt;hr /&gt; &lt;p style="text-align: right;"&gt;&lt;small&gt;Source: &lt;a href="http://en.wikipedia.org/wiki/Apollo_11"&gt;Wikipedia.org&lt;/a&gt;&lt;/small&gt;&lt;/p&gt; </textarea> </p> <p> <input type="submit" value="Submit"> </p> </form> <script> CKEDITOR.inline( 'article-body' ); </script> <div id="footer"> <hr> <p contenteditable="true"> CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/"> http://ckeditor.com</a> </p> <p id="copy"> Copyright &copy; 2003-2014, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved. </p> </div> </body> </html>
09-movie
trunk/shared/plugin/ckeditor/samples/inlinetextarea.html
HTML
gpl3
4,747
<!DOCTYPE html> <!-- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license --> <html> <head> <meta charset="utf-8"> <title>Inline Editing by Code &mdash; CKEditor Sample</title> <script src="../ckeditor.js"></script> <link href="sample.css" rel="stylesheet"> <style> #editable { padding: 10px; float: left; } </style> </head> <body> <h1 class="samples"> <a href="index.html">CKEditor Samples</a> &raquo; Inline Editing by Code </h1> <div class="description"> <p> This sample shows how to create an inline editor instance of CKEditor. It is created with a JavaScript call using the following code: </p> <pre class="samples"> // This property tells CKEditor to not activate every element with contenteditable=true element. CKEDITOR.disableAutoInline = true; var editor = CKEDITOR.inline( document.getElementById( 'editable' ) ); </pre> <p> Note that <code>editable</code> in the code above is the <code>id</code> attribute of the <code>&lt;div&gt;</code> element to be converted into an inline instance. </p> </div> <div id="editable" contenteditable="true"> <h1><img alt="Saturn V carrying Apollo 11" class="right" src="assets/sample.jpg" /> Apollo 11</h1> <p><b>Apollo 11</b> was the spaceflight that landed the first humans, Americans <a href="http://en.wikipedia.org/wiki/Neil_Armstrong" title="Neil Armstrong">Neil Armstrong</a> and <a href="http://en.wikipedia.org/wiki/Buzz_Aldrin" title="Buzz Aldrin">Buzz Aldrin</a>, on the Moon on July 20, 1969, at 20:18 UTC. Armstrong became the first to step onto the lunar surface 6 hours later on July 21 at 02:56 UTC.</p> <p>Armstrong spent about <s>three and a half</s> two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5&nbsp;kg) of lunar material for return to Earth. A third member of the mission, <a href="http://en.wikipedia.org/wiki/Michael_Collins_(astronaut)" title="Michael Collins (astronaut)">Michael Collins</a>, piloted the <a href="http://en.wikipedia.org/wiki/Apollo_Command/Service_Module" title="Apollo Command/Service Module">command</a> spacecraft alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth.</p> <h2>Broadcasting and <em>quotes</em> <a id="quotes" name="quotes"></a></h2> <p>Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:</p> <blockquote> <p>One small step for [a] man, one giant leap for mankind.</p> </blockquote> <p>Apollo 11 effectively ended the <a href="http://en.wikipedia.org/wiki/Space_Race" title="Space Race">Space Race</a> and fulfilled a national goal proposed in 1961 by the late U.S. President <a href="http://en.wikipedia.org/wiki/John_F._Kennedy" title="John F. Kennedy">John F. Kennedy</a> in a speech before the United States Congress:</p> <blockquote> <p>[...] before this decade is out, of landing a man on the Moon and returning him safely to the Earth.</p> </blockquote> <h2>Technical details <a id="tech-details" name="tech-details"></a></h2> <table align="right" border="1" bordercolor="#ccc" cellpadding="5" cellspacing="0" style="border-collapse:collapse;margin:10px 0 10px 15px;"> <caption><strong>Mission crew</strong></caption> <thead> <tr> <th scope="col">Position</th> <th scope="col">Astronaut</th> </tr> </thead> <tbody> <tr> <td>Commander</td> <td>Neil A. Armstrong</td> </tr> <tr> <td>Command Module Pilot</td> <td>Michael Collins</td> </tr> <tr> <td>Lunar Module Pilot</td> <td>Edwin &quot;Buzz&quot; E. Aldrin, Jr.</td> </tr> </tbody> </table> <p>Launched by a <strong>Saturn V</strong> rocket from <a href="http://en.wikipedia.org/wiki/Kennedy_Space_Center" title="Kennedy Space Center">Kennedy Space Center</a> in Merritt Island, Florida on July 16, Apollo 11 was the fifth manned mission of <a href="http://en.wikipedia.org/wiki/NASA" title="NASA">NASA</a>&#39;s Apollo program. The Apollo spacecraft had three parts:</p> <ol> <li><strong>Command Module</strong> with a cabin for the three astronauts which was the only part which landed back on Earth</li> <li><strong>Service Module</strong> which supported the Command Module with propulsion, electrical power, oxygen and water</li> <li><strong>Lunar Module</strong> for landing on the Moon.</li> </ol> <p>After being sent to the Moon by the Saturn V&#39;s upper stage, the astronauts separated the spacecraft from it and travelled for three days until they entered into lunar orbit. Armstrong and Aldrin then moved into the Lunar Module and landed in the <a href="http://en.wikipedia.org/wiki/Mare_Tranquillitatis" title="Mare Tranquillitatis">Sea of Tranquility</a>. They stayed a total of about 21 and a half hours on the lunar surface. After lifting off in the upper part of the Lunar Module and rejoining Collins in the Command Module, they returned to Earth and landed in the <a href="http://en.wikipedia.org/wiki/Pacific_Ocean" title="Pacific Ocean">Pacific Ocean</a> on July 24.</p> <hr /> <p style="text-align: right;"><small>Source: <a href="http://en.wikipedia.org/wiki/Apollo_11">Wikipedia.org</a></small></p> </div> <script> // We need to turn off the automatic editor creation first. CKEDITOR.disableAutoInline = true; var editor = CKEDITOR.inline( 'editable' ); </script> <div id="footer"> <hr> <p contenteditable="true"> CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/"> http://ckeditor.com</a> </p> <p id="copy"> Copyright &copy; 2003-2014, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved. </p> </div> </body> </html>
09-movie
trunk/shared/plugin/ckeditor/samples/inlinebycode.html
HTML
gpl3
5,994
<!DOCTYPE html> <!-- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license --> <html> <head> <meta charset="utf-8"> <title>CKEDITOR.appendTo &mdash; CKEditor Sample</title> <script src="../ckeditor.js"></script> <link rel="stylesheet" href="sample.css"> </head> <body> <h1 class="samples"> <a href="index.html">CKEditor Samples</a> &raquo; Append To Page Element Using JavaScript Code </h1> <div id="section1"> <div class="description"> <p> <code>CKEDITOR.appendTo</code> is basically to place editors inside existing DOM elements. Unlike <code>CKEDITOR.replace</code>, a target container to be replaced is no longer necessary. A new editor instance is inserted directly wherever it is desired. </p> <pre class="samples">CKEDITOR.appendTo( '<em>container_id</em>', { /* Configuration options to be used. */ } 'Editor content to be used.' );</pre> </div> <script> // This call can be placed at any point after the // <textarea>, or inside a <head><script> in a // window.onload event handler. // Replace the <textarea id="editor"> with an CKEditor // instance, using default configurations. CKEDITOR.appendTo( 'section1', null, '<p>This is some <strong>sample text</strong>. You are using <a href="http://ckeditor.com/">CKEditor</a>.</p>' ); </script> </div> <br> <div id="footer"> <hr> <p> CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a> </p> <p id="copy"> Copyright &copy; 2003-2014, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved. </p> </div> </body> </html>
09-movie
trunk/shared/plugin/ckeditor/samples/appendto.html
HTML
gpl3
1,820
<!DOCTYPE html> <!-- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license --> <html> <head> <meta charset="utf-8"> <title>UI Color Picker &mdash; CKEditor Sample</title> <script src="../ckeditor.js"></script> <link rel="stylesheet" href="sample.css"> </head> <body> <h1 class="samples"> <a href="index.html">CKEditor Samples</a> &raquo; UI Color </h1> <div class="description"> <p> This sample shows how to automatically replace <code>&lt;textarea&gt;</code> elements with a CKEditor instance with an option to change the color of its user interface.<br> <strong>Note:</strong>The UI skin color feature depends on the CKEditor skin compatibility. The Moono and Kama skins are examples of skins that work with it. </p> </div> <form action="sample_posteddata.php" method="post"> <p> This editor instance has a UI color value defined in configuration to change the skin color, To specify the color of the user interface, set the <code>uiColor</code> property: </p> <pre class="samples"> CKEDITOR.replace( '<em>textarea_id</em>', { <strong>uiColor: '#14B8C4'</strong> });</pre> <p> Note that <code><em>textarea_id</em></code> in the code above is the <code>id</code> attribute of the <code>&lt;textarea&gt;</code> element to be replaced. </p> <p> <textarea cols="80" id="editor1" name="editor1" rows="10">&lt;p&gt;This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="http://ckeditor.com/"&gt;CKEditor&lt;/a&gt;.&lt;/p&gt;</textarea> <script> // Replace the <textarea id="editor"> with an CKEditor // instance, using default configurations. CKEDITOR.replace( 'editor1', { uiColor: '#14B8C4', toolbar: [ [ 'Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink' ], [ 'FontSize', 'TextColor', 'BGColor' ] ] }); </script> </p> <p> <input type="submit" value="Submit"> </p> </form> <div id="footer"> <hr> <p> CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a> </p> <p id="copy"> Copyright &copy; 2003-2014, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved. </p> </div> </body> </html>
09-movie
trunk/shared/plugin/ckeditor/samples/uicolor.html
HTML
gpl3
2,407
<!DOCTYPE html> <!-- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license --> <html> <head> <meta charset="utf-8"> <title>API Usage &mdash; CKEditor Sample</title> <script src="../ckeditor.js"></script> <link href="sample.css" rel="stylesheet"> <script> // The instanceReady event is fired, when an instance of CKEditor has finished // its initialization. CKEDITOR.on( 'instanceReady', function( ev ) { // Show the editor name and description in the browser status bar. document.getElementById( 'eMessage' ).innerHTML = 'Instance <code>' + ev.editor.name + '<\/code> loaded.'; // Show this sample buttons. document.getElementById( 'eButtons' ).style.display = 'block'; }); function InsertHTML() { // Get the editor instance that we want to interact with. var editor = CKEDITOR.instances.editor1; var value = document.getElementById( 'htmlArea' ).value; // Check the active editing mode. if ( editor.mode == 'wysiwyg' ) { // Insert HTML code. // http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-insertHtml editor.insertHtml( value ); } else alert( 'You must be in WYSIWYG mode!' ); } function InsertText() { // Get the editor instance that we want to interact with. var editor = CKEDITOR.instances.editor1; var value = document.getElementById( 'txtArea' ).value; // Check the active editing mode. if ( editor.mode == 'wysiwyg' ) { // Insert as plain text. // http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-insertText editor.insertText( value ); } else alert( 'You must be in WYSIWYG mode!' ); } function SetContents() { // Get the editor instance that we want to interact with. var editor = CKEDITOR.instances.editor1; var value = document.getElementById( 'htmlArea' ).value; // Set editor contents (replace current contents). // http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-setData editor.setData( value ); } function GetContents() { // Get the editor instance that you want to interact with. var editor = CKEDITOR.instances.editor1; // Get editor contents // http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-getData alert( editor.getData() ); } function ExecuteCommand( commandName ) { // Get the editor instance that we want to interact with. var editor = CKEDITOR.instances.editor1; // Check the active editing mode. if ( editor.mode == 'wysiwyg' ) { // Execute the command. // http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-execCommand editor.execCommand( commandName ); } else alert( 'You must be in WYSIWYG mode!' ); } function CheckDirty() { // Get the editor instance that we want to interact with. var editor = CKEDITOR.instances.editor1; // Checks whether the current editor contents present changes when compared // to the contents loaded into the editor at startup // http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-checkDirty alert( editor.checkDirty() ); } function ResetDirty() { // Get the editor instance that we want to interact with. var editor = CKEDITOR.instances.editor1; // Resets the "dirty state" of the editor (see CheckDirty()) // http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-resetDirty editor.resetDirty(); alert( 'The "IsDirty" status has been reset' ); } function Focus() { CKEDITOR.instances.editor1.focus(); } function onFocus() { document.getElementById( 'eMessage' ).innerHTML = '<b>' + this.name + ' is focused </b>'; } function onBlur() { document.getElementById( 'eMessage' ).innerHTML = this.name + ' lost focus'; } </script> </head> <body> <h1 class="samples"> <a href="index.html">CKEditor Samples</a> &raquo; Using CKEditor JavaScript API </h1> <div class="description"> <p> This sample shows how to use the <a class="samples" href="http://docs.ckeditor.com/#!/api/CKEDITOR.editor">CKEditor JavaScript API</a> to interact with the editor at runtime. </p> <p> For details on how to create this setup check the source code of this sample page. </p> </div> <!-- This <div> holds alert messages to be display in the sample page. --> <div id="alerts"> <noscript> <p> <strong>CKEditor requires JavaScript to run</strong>. In a browser with no JavaScript support, like yours, you should still see the contents (HTML data) and you should be able to edit it normally, without a rich editor interface. </p> </noscript> </div> <form action="../../../samples/sample_posteddata.php" method="post"> <textarea cols="100" id="editor1" name="editor1" rows="10">&lt;p&gt;This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="http://ckeditor.com/"&gt;CKEditor&lt;/a&gt;.&lt;/p&gt;</textarea> <script> // Replace the <textarea id="editor1"> with an CKEditor instance. CKEDITOR.replace( 'editor1', { on: { focus: onFocus, blur: onBlur, // Check for availability of corresponding plugins. pluginsLoaded: function( evt ) { var doc = CKEDITOR.document, ed = evt.editor; if ( !ed.getCommand( 'bold' ) ) doc.getById( 'exec-bold' ).hide(); if ( !ed.getCommand( 'link' ) ) doc.getById( 'exec-link' ).hide(); } } }); </script> <p id="eMessage"> </p> <div id="eButtons" style="display: none"> <input id="exec-bold" onclick="ExecuteCommand('bold');" type="button" value="Execute &quot;bold&quot; Command"> <input id="exec-link" onclick="ExecuteCommand('link');" type="button" value="Execute &quot;link&quot; Command"> <input onclick="Focus();" type="button" value="Focus"> <br><br> <input onclick="InsertHTML();" type="button" value="Insert HTML"> <input onclick="SetContents();" type="button" value="Set Editor Contents"> <input onclick="GetContents();" type="button" value="Get Editor Contents (HTML)"> <br> <textarea cols="100" id="htmlArea" rows="3">&lt;h2&gt;Test&lt;/h2&gt;&lt;p&gt;This is some &lt;a href="/Test1.html"&gt;sample&lt;/a&gt; HTML code.&lt;/p&gt;</textarea> <br> <br> <input onclick="InsertText();" type="button" value="Insert Text"> <br> <textarea cols="100" id="txtArea" rows="3"> First line with some leading whitespaces. Second line of text preceded by two line breaks.</textarea> <br> <br> <input onclick="CheckDirty();" type="button" value="checkDirty()"> <input onclick="ResetDirty();" type="button" value="resetDirty()"> </div> </form> <div id="footer"> <hr> <p> CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a> </p> <p id="copy"> Copyright &copy; 2003-2014, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved. </p> </div> </body> </html>
09-movie
trunk/shared/plugin/ckeditor/samples/api.html
HTML
gpl3
6,986
/* Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ html, body, h1, h2, h3, h4, h5, h6, div, span, blockquote, p, address, form, fieldset, img, ul, ol, dl, dt, dd, li, hr, table, td, th, strong, em, sup, sub, dfn, ins, del, q, cite, var, samp, code, kbd, tt, pre { line-height: 1.5; } body { padding: 10px 30px; } input, textarea, select, option, optgroup, button, td, th { font-size: 100%; } pre, code, kbd, samp, tt { font-family: monospace,monospace; font-size: 1em; } body { width: 960px; margin: 0 auto; } code { background: #f3f3f3; border: 1px solid #ddd; padding: 1px 4px; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; } abbr { border-bottom: 1px dotted #555; cursor: pointer; } .new, .beta { text-transform: uppercase; font-size: 10px; font-weight: bold; padding: 1px 4px; margin: 0 0 0 5px; color: #fff; float: right; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; } .new { background: #FF7E00; border: 1px solid #DA8028; text-shadow: 0 1px 0 #C97626; -moz-box-shadow: 0 2px 3px 0 #FFA54E inset; -webkit-box-shadow: 0 2px 3px 0 #FFA54E inset; box-shadow: 0 2px 3px 0 #FFA54E inset; } .beta { background: #18C0DF; border: 1px solid #19AAD8; text-shadow: 0 1px 0 #048CAD; font-style: italic; -moz-box-shadow: 0 2px 3px 0 #50D4FD inset; -webkit-box-shadow: 0 2px 3px 0 #50D4FD inset; box-shadow: 0 2px 3px 0 #50D4FD inset; } h1.samples { color: #0782C1; font-size: 200%; font-weight: normal; margin: 0; padding: 0; } h1.samples a { color: #0782C1; text-decoration: none; border-bottom: 1px dotted #0782C1; } .samples a:hover { border-bottom: 1px dotted #0782C1; } h2.samples { color: #000000; font-size: 130%; margin: 15px 0 0 0; padding: 0; } p, blockquote, address, form, pre, dl, h1.samples, h2.samples { margin-bottom: 15px; } ul.samples { margin-bottom: 15px; } .clear { clear: both; } fieldset { margin: 0; padding: 10px; } body, input, textarea { color: #333333; font-family: Arial, Helvetica, sans-serif; } body { font-size: 75%; } a.samples { color: #189DE1; text-decoration: none; } form { margin: 0; padding: 0; } pre.samples { background-color: #F7F7F7; border: 1px solid #D7D7D7; overflow: auto; padding: 0.25em; white-space: pre-wrap; /* CSS 2.1 */ word-wrap: break-word; /* IE7 */ -moz-tab-size: 4; -o-tab-size: 4; -webkit-tab-size: 4; tab-size: 4; } #footer { clear: both; padding-top: 10px; } #footer hr { margin: 10px 0 15px 0; height: 1px; border: solid 1px gray; border-bottom: none; } #footer p { margin: 0 10px 10px 10px; float: left; } #footer #copy { float: right; } #outputSample { width: 100%; table-layout: fixed; } #outputSample thead th { color: #dddddd; background-color: #999999; padding: 4px; white-space: nowrap; } #outputSample tbody th { vertical-align: top; text-align: left; } #outputSample pre { margin: 0; padding: 0; } .description { border: 1px dotted #B7B7B7; margin-bottom: 10px; padding: 10px 10px 0; overflow: hidden; } label { display: block; margin-bottom: 6px; } /** * CKEditor editables are automatically set with the "cke_editable" class * plus cke_editable_(inline|themed) depending on the editor type. */ /* Style a bit the inline editables. */ .cke_editable.cke_editable_inline { cursor: pointer; } /* Once an editable element gets focused, the "cke_focus" class is added to it, so we can style it differently. */ .cke_editable.cke_editable_inline.cke_focus { box-shadow: inset 0px 0px 20px 3px #ddd, inset 0 0 1px #000; outline: none; background: #eee; cursor: text; } /* Avoid pre-formatted overflows inline editable. */ .cke_editable_inline pre { white-space: pre-wrap; word-wrap: break-word; } /** * Samples index styles. */ .twoColumns, .twoColumnsLeft, .twoColumnsRight { overflow: hidden; } .twoColumnsLeft, .twoColumnsRight { width: 45%; } .twoColumnsLeft { float: left; } .twoColumnsRight { float: right; } dl.samples { padding: 0 0 0 40px; } dl.samples > dt { display: list-item; list-style-type: disc; list-style-position: outside; margin: 0 0 3px; } dl.samples > dd { margin: 0 0 3px; } .warning { color: #ff0000; background-color: #FFCCBA; border: 2px dotted #ff0000; padding: 15px 10px; margin: 10px 0; } /* Used on inline samples */ blockquote { font-style: italic; font-family: Georgia, Times, "Times New Roman", serif; padding: 2px 0; border-style: solid; border-color: #ccc; border-width: 0; } .cke_contents_ltr blockquote { padding-left: 20px; padding-right: 8px; border-left-width: 5px; } .cke_contents_rtl blockquote { padding-left: 8px; padding-right: 20px; border-right-width: 5px; } img.right { border: 1px solid #ccc; float: right; margin-left: 15px; padding: 5px; } img.left { border: 1px solid #ccc; float: left; margin-right: 15px; padding: 5px; }
09-movie
trunk/shared/plugin/ckeditor/samples/sample.css
CSS
gpl3
5,373
<!DOCTYPE html> <!-- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license --> <html> <head> <meta charset="utf-8"> <title>XHTML Compliant Output &mdash; CKEditor Sample</title> <meta name="ckeditor-sample-required-plugins" content="sourcearea"> <script src="../ckeditor.js"></script> <script src="../samples/sample.js"></script> <link href="sample.css" rel="stylesheet"> </head> <body> <h1 class="samples"> <a href="index.html">CKEditor Samples</a> &raquo; Producing XHTML Compliant Output </h1> <div class="description"> <p> This sample shows how to configure CKEditor to output valid <a class="samples" href="http://www.w3.org/TR/xhtml11/">XHTML 1.1</a> code. Deprecated elements (<code>&lt;font&gt;</code>, <code>&lt;u&gt;</code>) or attributes (<code>size</code>, <code>face</code>) will be replaced with XHTML compliant code. </p> <p> To add a CKEditor instance outputting valid XHTML code, load the editor using a standard JavaScript call and define CKEditor features to use the XHTML compliant elements and styles. </p> <p> A snippet of the configuration code can be seen below; check the source of this page for full definition: </p> <pre class="samples"> CKEDITOR.replace( '<em>textarea_id</em>', { contentsCss: 'assets/outputxhtml.css', coreStyles_bold: { element: 'span', attributes: { 'class': 'Bold' } }, coreStyles_italic: { element: 'span', attributes: { 'class': 'Italic' } }, ... });</pre> </div> <form action="sample_posteddata.php" method="post"> <p> <label for="editor1"> Editor 1: </label> <textarea cols="80" id="editor1" name="editor1" rows="10">&lt;p&gt;This is some &lt;span class="Bold"&gt;sample text&lt;/span&gt;. You are using &lt;a href="http://ckeditor.com/"&gt;CKEditor&lt;/a&gt;.&lt;/p&gt;</textarea> <script> CKEDITOR.replace( 'editor1', { /* * Style sheet for the contents */ contentsCss: 'assets/outputxhtml/outputxhtml.css', /* * Special allowed content rules for spans used by * font face, size, and color buttons. * * Note: all rules have been written separately so * it was possible to specify required classes. */ extraAllowedContent: 'span(!FontColor1);span(!FontColor2);span(!FontColor3);' + 'span(!FontColor1BG);span(!FontColor2BG);span(!FontColor3BG);' + 'span(!FontComic);span(!FontCourier);span(!FontTimes);' + 'span(!FontSmaller);span(!FontLarger);span(!FontSmall);span(!FontBig);span(!FontDouble)', /* * Core styles. */ coreStyles_bold: { element: 'span', attributes: { 'class': 'Bold' } }, coreStyles_italic: { element: 'span', attributes: { 'class': 'Italic' } }, coreStyles_underline: { element: 'span', attributes: { 'class': 'Underline' } }, coreStyles_strike: { element: 'span', attributes: { 'class': 'StrikeThrough' }, overrides: 'strike' }, coreStyles_subscript: { element: 'span', attributes: { 'class': 'Subscript' }, overrides: 'sub' }, coreStyles_superscript: { element: 'span', attributes: { 'class': 'Superscript' }, overrides: 'sup' }, /* * Font face. */ // List of fonts available in the toolbar combo. Each font definition is // separated by a semi-colon (;). We are using class names here, so each font // is defined by {Combo Label}/{Class Name}. font_names: 'Comic Sans MS/FontComic;Courier New/FontCourier;Times New Roman/FontTimes', // Define the way font elements will be applied to the document. The "span" // element will be used. When a font is selected, the font name defined in the // above list is passed to this definition with the name "Font", being it // injected in the "class" attribute. // We must also instruct the editor to replace span elements that are used to // set the font (Overrides). font_style: { element: 'span', attributes: { 'class': '#(family)' }, overrides: [ { element: 'span', attributes: { 'class': /^Font(?:Comic|Courier|Times)$/ } } ] }, /* * Font sizes. */ fontSize_sizes: 'Smaller/FontSmaller;Larger/FontLarger;8pt/FontSmall;14pt/FontBig;Double Size/FontDouble', fontSize_style: { element: 'span', attributes: { 'class': '#(size)' }, overrides: [ { element: 'span', attributes: { 'class': /^Font(?:Smaller|Larger|Small|Big|Double)$/ } } ] } , /* * Font colors. */ colorButton_enableMore: false, colorButton_colors: 'FontColor1/FF9900,FontColor2/0066CC,FontColor3/F00', colorButton_foreStyle: { element: 'span', attributes: { 'class': '#(color)' }, overrides: [ { element: 'span', attributes: { 'class': /^FontColor(?:1|2|3)$/ } } ] }, colorButton_backStyle: { element: 'span', attributes: { 'class': '#(color)BG' }, overrides: [ { element: 'span', attributes: { 'class': /^FontColor(?:1|2|3)BG$/ } } ] }, /* * Indentation. */ indentClasses: [ 'Indent1', 'Indent2', 'Indent3' ], /* * Paragraph justification. */ justifyClasses: [ 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyFull' ], /* * Styles combo. */ stylesSet: [ { name: 'Strong Emphasis', element: 'strong' }, { name: 'Emphasis', element: 'em' }, { name: 'Computer Code', element: 'code' }, { name: 'Keyboard Phrase', element: 'kbd' }, { name: 'Sample Text', element: 'samp' }, { name: 'Variable', element: 'var' }, { name: 'Deleted Text', element: 'del' }, { name: 'Inserted Text', element: 'ins' }, { name: 'Cited Work', element: 'cite' }, { name: 'Inline Quotation', element: 'q' } ] }); </script> </p> <p> <input type="submit" value="Submit"> </p> </form> <div id="footer"> <hr> <p> CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a> </p> <p id="copy"> Copyright &copy; 2003-2014, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved. </p> </div> </body> </html>
09-movie
trunk/shared/plugin/ckeditor/samples/xhtmlstyle.html
HTML
gpl3
6,837
<!DOCTYPE html> <!-- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license --> <html> <head> <meta charset="utf-8"> <title>jQuery Adapter &mdash; CKEditor Sample</title> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script src="../ckeditor.js"></script> <script src="../adapters/jquery.js"></script> <link href="sample.css" rel="stylesheet"> <style> #editable { padding: 10px; float: left; } </style> <script> CKEDITOR.disableAutoInline = true; $( document ).ready( function() { $( '#editor1' ).ckeditor(); // Use CKEDITOR.replace() if element is <textarea>. $( '#editable' ).ckeditor(); // Use CKEDITOR.inline(). } ); function setValue() { $( '#editor1' ).val( $( 'input#val' ).val() ); } </script> </head> <body> <h1 class="samples"> <a href="index.html" id="a-test">CKEditor Samples</a> &raquo; Create Editors with jQuery </h1> <form action="sample_posteddata.php" method="post"> <div class="description"> <p> This sample shows how to use the <a href="http://docs.ckeditor.com/#!/guide/dev_jquery">jQuery adapter</a>. Note that you have to include both CKEditor and jQuery scripts before including the adapter. </p> <pre class="samples"> &lt;script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"&gt;&lt;/script&gt; &lt;script src="/ckeditor/ckeditor.js"&gt;&lt;/script&gt; &lt;script src="/ckeditor/adapters/jquery.js"&gt;&lt;/script&gt; </pre> <p>Then you can replace HTML elements with a CKEditor instance using the <code>ckeditor()</code> method.</p> <pre class="samples"> $( document ).ready( function() { $( 'textarea#editor1' ).ckeditor(); } ); </pre> </div> <h2 class="samples">Inline Example</h2> <div id="editable" contenteditable="true"> <p><img alt="Saturn V carrying Apollo 11" class="right" src="assets/sample.jpg"/><b>Apollo 11</b> was the spaceflight that landed the first humans, Americans <a href="http://en.wikipedia.org/wiki/Neil_Armstrong" title="Neil Armstrong">Neil Armstrong</a> and <a href="http://en.wikipedia.org/wiki/Buzz_Aldrin" title="Buzz Aldrin">Buzz Aldrin</a>, on the Moon on July 20, 1969, at 20:18 UTC. Armstrong became the first to step onto the lunar surface 6 hours later on July 21 at 02:56 UTC.</p> <p>Armstrong spent about <s>three and a half</s> two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5&nbsp;kg) of lunar material for return to Earth. A third member of the mission, <a href="http://en.wikipedia.org/wiki/Michael_Collins_(astronaut)" title="Michael Collins (astronaut)">Michael Collins</a>, piloted the <a href="http://en.wikipedia.org/wiki/Apollo_Command/Service_Module" title="Apollo Command/Service Module">command</a> spacecraft alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth. <p>Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:</p> <blockquote><p>One small step for [a] man, one giant leap for mankind.</p></blockquote> <p>Apollo 11 effectively ended the <a href="http://en.wikipedia.org/wiki/Space_Race" title="Space Race">Space Race</a> and fulfilled a national goal proposed in 1961 by the late U.S. President <a href="http://en.wikipedia.org/wiki/John_F._Kennedy" title="John F. Kennedy">John F. Kennedy</a> in a speech before the United States Congress:</p> <blockquote><p>[...] before this decade is out, of landing a man on the Moon and returning him safely to the Earth.</p></blockquote> </div> <br style="clear: both"> <h2 class="samples">Classic (iframe-based) Example</h2> <textarea cols="80" id="editor1" name="editor1" rows="10"> &lt;h2&gt;Technical details &lt;a id=&quot;tech-details&quot; name=&quot;tech-details&quot;&gt;&lt;/a&gt;&lt;/h2&gt; &lt;table align=&quot;right&quot; border=&quot;1&quot; bordercolor=&quot;#ccc&quot; cellpadding=&quot;5&quot; cellspacing=&quot;0&quot; style=&quot;border-collapse:collapse;margin:10px 0 10px 15px;&quot;&gt; &lt;caption&gt;&lt;strong&gt;Mission crew&lt;/strong&gt;&lt;/caption&gt; &lt;thead&gt; &lt;tr&gt; &lt;th scope=&quot;col&quot;&gt;Position&lt;/th&gt; &lt;th scope=&quot;col&quot;&gt;Astronaut&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;Commander&lt;/td&gt; &lt;td&gt;Neil A. Armstrong&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Command Module Pilot&lt;/td&gt; &lt;td&gt;Michael Collins&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Lunar Module Pilot&lt;/td&gt; &lt;td&gt;Edwin &amp;quot;Buzz&amp;quot; E. Aldrin, Jr.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;p&gt;Launched by a &lt;strong&gt;Saturn V&lt;/strong&gt; rocket from &lt;a href=&quot;http://en.wikipedia.org/wiki/Kennedy_Space_Center&quot; title=&quot;Kennedy Space Center&quot;&gt;Kennedy Space Center&lt;/a&gt; in Merritt Island, Florida on July 16, Apollo 11 was the fifth manned mission of &lt;a href=&quot;http://en.wikipedia.org/wiki/NASA&quot; title=&quot;NASA&quot;&gt;NASA&lt;/a&gt;&amp;#39;s Apollo program. The Apollo spacecraft had three parts:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;&lt;strong&gt;Command Module&lt;/strong&gt; with a cabin for the three astronauts which was the only part which landed back on Earth&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Service Module&lt;/strong&gt; which supported the Command Module with propulsion, electrical power, oxygen and water&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Lunar Module&lt;/strong&gt; for landing on the Moon.&lt;/li&gt; &lt;/ol&gt; &lt;p&gt;After being sent to the Moon by the Saturn V&amp;#39;s upper stage, the astronauts separated the spacecraft from it and travelled for three days until they entered into lunar orbit. Armstrong and Aldrin then moved into the Lunar Module and landed in the &lt;a href=&quot;http://en.wikipedia.org/wiki/Mare_Tranquillitatis&quot; title=&quot;Mare Tranquillitatis&quot;&gt;Sea of Tranquility&lt;/a&gt;. They stayed a total of about 21 and a half hours on the lunar surface. After lifting off in the upper part of the Lunar Module and rejoining Collins in the Command Module, they returned to Earth and landed in the &lt;a href=&quot;http://en.wikipedia.org/wiki/Pacific_Ocean&quot; title=&quot;Pacific Ocean&quot;&gt;Pacific Ocean&lt;/a&gt; on July 24.&lt;/p&gt; &lt;hr/&gt; &lt;p style=&quot;text-align: right;&quot;&gt;&lt;small&gt;Source: &lt;a href=&quot;http://en.wikipedia.org/wiki/Apollo_11&quot;&gt;Wikipedia.org&lt;/a&gt;&lt;/small&gt;&lt;/p&gt; </textarea> <p style="overflow: hidden"> <input style="float: left" type="submit" value="Submit"> <span style="float: right"> <input type="text" id="val" value="I'm using jQuery val()!" size="30"> <input onclick="setValue();" type="button" value="Set value"> </span> </p> </form> <div id="footer"> <hr> <p> CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a> </p> <p id="copy"> Copyright &copy; 2003-2014, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved. </p> </div> </body> </html>
09-movie
trunk/shared/plugin/ckeditor/samples/jquery.html
HTML
gpl3
7,348
<!DOCTYPE html> <!-- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license --> <html> <head> <meta charset="utf-8"> <title>User Interface Globalization &mdash; CKEditor Sample</title> <script src="../ckeditor.js"></script> <script src="assets/uilanguages/languages.js"></script> <link rel="stylesheet" href="sample.css"> </head> <body> <h1 class="samples"> <a href="index.html">CKEditor Samples</a> &raquo; User Interface Languages </h1> <div class="description"> <p> This sample shows how to automatically replace <code>&lt;textarea&gt;</code> elements with a CKEditor instance with an option to change the language of its user interface. </p> <p> It pulls the language list from CKEditor <code>_languages.js</code> file that contains the list of supported languages and creates a drop-down list that lets the user change the UI language. </p> <p> By default, CKEditor automatically localizes the editor to the language of the user. The UI language can be controlled with two configuration options: <code><a class="samples" href="http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-language">language</a></code> and <code><a class="samples" href="http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-defaultLanguage"> defaultLanguage</a></code>. The <code>defaultLanguage</code> setting specifies the default CKEditor language to be used when a localization suitable for user's settings is not available. </p> <p> To specify the user interface language that will be used no matter what language is specified in user's browser or operating system, set the <code>language</code> property: </p> <pre class="samples"> CKEDITOR.replace( '<em>textarea_id</em>', { // Load the German interface. <strong>language: 'de'</strong> });</pre> <p> Note that <code><em>textarea_id</em></code> in the code above is the <code>id</code> attribute of the <code>&lt;textarea&gt;</code> element to be replaced. </p> </div> <form action="sample_posteddata.php" method="post"> <p> Available languages (<span id="count"> </span> languages!):<br> <script> document.write( '<select disabled="disabled" id="languages" onchange="createEditor( this.value );">' ); // Get the language list from the _languages.js file. for ( var i = 0 ; i < window.CKEDITOR_LANGS.length ; i++ ) { document.write( '<option value="' + window.CKEDITOR_LANGS[i].code + '">' + window.CKEDITOR_LANGS[i].name + '</option>' ); } document.write( '</select>' ); </script> <br> <span style="color: #888888"> (You may see strange characters if your system does not support the selected language) </span> </p> <p> <textarea cols="80" id="editor1" name="editor1" rows="10">&lt;p&gt;This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="http://ckeditor.com/"&gt;CKEditor&lt;/a&gt;.&lt;/p&gt;</textarea> <script> // Set the number of languages. document.getElementById( 'count' ).innerHTML = window.CKEDITOR_LANGS.length; var editor; function createEditor( languageCode ) { if ( editor ) editor.destroy(); // Replace the <textarea id="editor"> with an CKEditor // instance, using default configurations. editor = CKEDITOR.replace( 'editor1', { language: languageCode, on: { instanceReady: function() { // Wait for the editor to be ready to set // the language combo. var languages = document.getElementById( 'languages' ); languages.value = this.langCode; languages.disabled = false; } } }); } // At page startup, load the default language: createEditor( '' ); </script> </p> </form> <div id="footer"> <hr> <p> CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a> </p> <p id="copy"> Copyright &copy; 2003-2014, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved. </p> </div> </body> </html>
09-movie
trunk/shared/plugin/ckeditor/samples/uilanguages.html
HTML
gpl3
4,294
<!DOCTYPE html> <!-- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license --> <html> <head> <meta charset="utf-8"> <title>Toolbar Configuration &mdash; CKEditor Sample</title> <meta name="ckeditor-sample-name" content="Toolbar Configurations"> <meta name="ckeditor-sample-group" content="Advanced Samples"> <meta name="ckeditor-sample-description" content="Configuring CKEditor to display full or custom toolbar layout."> <script src="../../../ckeditor.js"></script> <link href="../../../samples/sample.css" rel="stylesheet"> </head> <body> <h1 class="samples"> <a href="../../../samples/index.html">CKEditor Samples</a> &raquo; Toolbar Configuration </h1> <div class="description"> <p> This sample page demonstrates editor with loaded <a href="#fullToolbar">full toolbar</a> (all registered buttons) and, if current editor's configuration modifies default settings, also editor with <a href="#currentToolbar">modified toolbar</a>. </p> <p>Since CKEditor 4 there are two ways to configure toolbar buttons.</p> <h2 class="samples">By <a href="http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-toolbar">config.toolbar</a></h2> <p> You can explicitly define which buttons are displayed in which groups and in which order. This is the more precise setting, but less flexible. If newly added plugin adds its own button you'll have to add it manually to your <code>config.toolbar</code> setting as well. </p> <p>To add a CKEditor instance with custom toolbar setting, insert the following JavaScript call to your code:</p> <pre class="samples"> CKEDITOR.replace( <em>'textarea_id'</em>, { <strong>toolbar:</strong> [ { name: 'document', items: [ 'Source', '-', 'NewPage', 'Preview', '-', 'Templates' ] }, // Defines toolbar group with name (used to create voice label) and items in 3 subgroups. [ 'Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo' ], // Defines toolbar group without name. '/', // Line break - next group will be placed in new line. { name: 'basicstyles', items: [ 'Bold', 'Italic' ] } ] });</pre> <h2 class="samples">By <a href="http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-toolbarGroups">config.toolbarGroups</a></h2> <p> You can define which groups of buttons (like e.g. <code>basicstyles</code>, <code>clipboard</code> and <code>forms</code>) are displayed and in which order. Registered buttons are associated with toolbar groups by <code>toolbar</code> property in their definition. This setting's advantage is that you don't have to modify toolbar configuration when adding/removing plugins which register their own buttons. </p> <p>To add a CKEditor instance with custom toolbar groups setting, insert the following JavaScript call to your code:</p> <pre class="samples"> CKEDITOR.replace( <em>'textarea_id'</em>, { <strong>toolbarGroups:</strong> [ { name: 'document', groups: [ 'mode', 'document' ] }, // Displays document group with its two subgroups. { name: 'clipboard', groups: [ 'clipboard', 'undo' ] }, // Group's name will be used to create voice label. '/', // Line break - next group will be placed in new line. { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] }, { name: 'links' } ] // NOTE: Remember to leave 'toolbar' property with the default value (null). });</pre> </div> <div id="currentToolbar" style="display: none"> <h2 class="samples">Current toolbar configuration</h2> <p>Below you can see editor with current toolbar definition.</p> <textarea cols="80" id="editorCurrent" name="editorCurrent" rows="10">&lt;p&gt;This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="http://ckeditor.com/"&gt;CKEditor&lt;/a&gt;.&lt;/p&gt;</textarea> <pre id="editorCurrentCfg" class="samples"></pre> </div> <div id="fullToolbar"> <h2 class="samples">Full toolbar configuration</h2> <p>Below you can see editor with full toolbar, generated automatically by the editor.</p> <p> <strong>Note</strong>: To create editor instance with full toolbar you don't have to set anything. Just leave <code>toolbar</code> and <code>toolbarGroups</code> with the default, <code>null</code> values. </p> <textarea cols="80" id="editorFull" name="editorFull" rows="10">&lt;p&gt;This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="http://ckeditor.com/"&gt;CKEditor&lt;/a&gt;.&lt;/p&gt;</textarea> <pre id="editorFullCfg" class="samples"></pre> </div> <script> (function() { 'use strict'; var buttonsNames; CKEDITOR.config.extraPlugins = 'toolbar'; CKEDITOR.on( 'instanceReady', function( evt ) { var editor = evt.editor, editorCurrent = editor.name == 'editorCurrent', defaultToolbar = !( editor.config.toolbar || editor.config.toolbarGroups || editor.config.removeButtons ), pre = CKEDITOR.document.getById( editor.name + 'Cfg' ), output = ''; if ( editorCurrent ) { // If default toolbar configuration has been modified, show "current toolbar" section. if ( !defaultToolbar ) CKEDITOR.document.getById( 'currentToolbar' ).show(); else return; } if ( !buttonsNames ) buttonsNames = createButtonsNamesHash( editor.ui.items ); // Toolbar isn't set explicitly, so it was created automatically from toolbarGroups. if ( !editor.config.toolbar ) { output += '// Toolbar configuration generated automatically by the editor based on config.toolbarGroups.\n' + dumpToolbarConfiguration( editor ) + '\n\n' + '// Toolbar groups configuration.\n' + dumpToolbarConfiguration( editor, true ) } // Toolbar groups doesn't count in this case - print only toolbar. else { output += '// Toolbar configuration.\n' + dumpToolbarConfiguration( editor ); } // Recreate to avoid old IE from loosing whitespaces on filling <pre> content. var preOutput = pre.getOuterHtml().replace( /(?=<\/)/, output ); CKEDITOR.dom.element.createFromHtml( preOutput ).replace( pre ); } ); CKEDITOR.replace( 'editorCurrent', { height: 100 } ); CKEDITOR.replace( 'editorFull', { // Reset toolbar settings, so full toolbar will be generated automatically. toolbar: null, toolbarGroups: null, removeButtons: null, height: 100 } ); function dumpToolbarConfiguration( editor, printGroups ) { var output = [], toolbar = editor.toolbar; for ( var i = 0; i < toolbar.length; ++i ) { var group = dumpToolbarGroup( toolbar[ i ], printGroups ); if ( group ) output.push( group ); } return 'config.toolbar' + ( printGroups ? 'Groups' : '' ) + ' = [\n\t' + output.join( ',\n\t' ) + '\n];'; } function dumpToolbarGroup( group, printGroups ) { var output = []; if ( typeof group == 'string' ) return '\'' + group + '\''; if ( CKEDITOR.tools.isArray( group ) ) return dumpToolbarItems( group ); // Skip group when printing entire toolbar configuration and there are no items in this group. if ( !printGroups && !group.items ) return; if ( group.name ) output.push( 'name: \'' + group.name + '\'' ); if ( group.groups ) output.push( 'groups: ' + dumpToolbarItems( group.groups ) ); if ( !printGroups ) output.push( 'items: ' + dumpToolbarItems( group.items ) ); return '{ ' + output.join( ', ' ) + ' }'; } function dumpToolbarItems( items ) { if ( typeof items == 'string' ) return '\'' + items + '\''; var names = [], i, item; for ( var i = 0; i < items.length; ++i ) { item = items[ i ]; if ( typeof item == 'string' ) names.push( item ); else { if ( item.type == CKEDITOR.UI_SEPARATOR ) names.push( '-' ); else names.push( buttonsNames[ item.name ] ); } } return '[ \'' + names.join( '\', \'' ) + '\' ]'; } // Creates { 'lowercased': 'LowerCased' } buttons names hash. function createButtonsNamesHash( items ) { var hash = {}, name; for ( name in items ) { hash[ items[ name ].name ] = name; } return hash; } })(); </script> <div id="footer"> <hr> <p> CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a> </p> <p id="copy"> Copyright &copy; 2003-2014, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved. </p> </div> </body> </html>
09-movie
trunk/shared/plugin/ckeditor/samples/plugins/toolbar/toolbar.html
HTML
gpl3
8,683
<!DOCTYPE html> <!-- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license --> <html> <head> <meta charset="utf-8"> <title>ENTER Key Configuration &mdash; CKEditor Sample</title> <script src="../../../ckeditor.js"></script> <link href="../../../samples/sample.css" rel="stylesheet"> <meta name="ckeditor-sample-name" content="Using the &quot;Enter&quot; key in CKEditor"> <meta name="ckeditor-sample-group" content="Advanced Samples"> <meta name="ckeditor-sample-description" content="Configuring the behavior of &lt;em&gt;Enter&lt;/em&gt; and &lt;em&gt;Shift+Enter&lt;/em&gt; keys."> <script> var editor; function changeEnter() { // If we already have an editor, let's destroy it first. if ( editor ) editor.destroy( true ); // Create the editor again, with the appropriate settings. editor = CKEDITOR.replace( 'editor1', { extraPlugins: 'enterkey', enterMode: Number( document.getElementById( 'xEnter' ).value ), shiftEnterMode: Number( document.getElementById( 'xShiftEnter' ).value ) }); } window.onload = changeEnter; </script> </head> <body> <h1 class="samples"> <a href="../../../samples/index.html">CKEditor Samples</a> &raquo; ENTER Key Configuration </h1> <div class="description"> <p> This sample shows how to configure the <em>Enter</em> and <em>Shift+Enter</em> keys to perform actions specified in the <a class="samples" href="http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-enterMode"><code>enterMode</code></a> and <a class="samples" href="http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-shiftEnterMode"><code>shiftEnterMode</code></a> parameters, respectively. You can choose from the following options: </p> <ul class="samples"> <li><strong><code>ENTER_P</code></strong> &ndash; new <code>&lt;p&gt;</code> paragraphs are created;</li> <li><strong><code>ENTER_BR</code></strong> &ndash; lines are broken with <code>&lt;br&gt;</code> elements;</li> <li><strong><code>ENTER_DIV</code></strong> &ndash; new <code>&lt;div&gt;</code> blocks are created.</li> </ul> <p> The sample code below shows how to configure CKEditor to create a <code>&lt;div&gt;</code> block when <em>Enter</em> key is pressed. </p> <pre class="samples"> CKEDITOR.replace( '<em>textarea_id</em>', { <strong>enterMode: CKEDITOR.ENTER_DIV</strong> });</pre> <p> Note that <code><em>textarea_id</em></code> in the code above is the <code>id</code> attribute of the <code>&lt;textarea&gt;</code> element to be replaced. </p> </div> <div style="float: left; margin-right: 20px"> When <em>Enter</em> is pressed:<br> <select id="xEnter" onchange="changeEnter();"> <option selected="selected" value="1">Create a new &lt;P&gt; (recommended)</option> <option value="3">Create a new &lt;DIV&gt;</option> <option value="2">Break the line with a &lt;BR&gt;</option> </select> </div> <div style="float: left"> When <em>Shift+Enter</em> is pressed:<br> <select id="xShiftEnter" onchange="changeEnter();"> <option value="1">Create a new &lt;P&gt;</option> <option value="3">Create a new &lt;DIV&gt;</option> <option selected="selected" value="2">Break the line with a &lt;BR&gt; (recommended)</option> </select> </div> <br style="clear: both"> <form action="../../../samples/sample_posteddata.php" method="post"> <p> <br> <textarea cols="80" id="editor1" name="editor1" rows="10">This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="http://ckeditor.com/"&gt;CKEditor&lt;/a&gt;.</textarea> </p> <p> <input type="submit" value="Submit"> </p> </form> <div id="footer"> <hr> <p> CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a> </p> <p id="copy"> Copyright &copy; 2003-2014, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved. </p> </div> </body> </html>
09-movie
trunk/shared/plugin/ckeditor/samples/plugins/enterkey/enterkey.html
HTML
gpl3
4,149
<!DOCTYPE html> <!-- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license --> <html> <head> <meta charset="utf-8"> <title>Using Magicline plugin &mdash; CKEditor Sample</title> <script src="../../../ckeditor.js"></script> <link rel="stylesheet" href="../../../samples/sample.css"> <meta name="ckeditor-sample-name" content="Magicline plugin"> <meta name="ckeditor-sample-group" content="Plugins"> <meta name="ckeditor-sample-description" content="Using the Magicline plugin to access difficult focus spaces."> </head> <body> <h1 class="samples"> <a href="../../../samples/index.html">CKEditor Samples</a> &raquo; Using Magicline plugin </h1> <div class="description"> <p> This sample shows the advantages of <strong>Magicline</strong> plugin which is to enhance the editing process. Thanks to this plugin, a number of difficult focus spaces which are inaccessible due to browser issues can now be focused. </p> <p> <strong>Magicline</strong> plugin shows a red line with a handler which, when clicked, inserts a paragraph and allows typing. To see this, focus an editor and move your mouse above the focus space you want to access. The plugin is enabled by default so no additional configuration is necessary. </p> </div> <div> <label for="editor1"> Editor 1: </label> <div class="description"> <p> This editor uses a default <strong>Magicline</strong> setup. </p> </div> <textarea cols="80" id="editor1" name="editor1" rows="10"> &lt;table border=&quot;1&quot; cellpadding=&quot;1&quot; cellspacing=&quot;1&quot; style=&quot;width: 100%; &quot;&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;This table&lt;/td&gt; &lt;td&gt;is the&lt;/td&gt; &lt;td&gt;very first&lt;/td&gt; &lt;td&gt;element of the document.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;We are still&lt;/td&gt; &lt;td&gt;able to acces&lt;/td&gt; &lt;td&gt;the space before it.&lt;/td&gt; &lt;td&gt; &lt;table border=&quot;1&quot; cellpadding=&quot;1&quot; cellspacing=&quot;1&quot; style=&quot;width: 100%; &quot;&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;This table is inside of a cell of another table.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;We can type&amp;nbsp;either before or after it though.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;p&gt;Two succesive horizontal lines (&lt;tt&gt;HR&lt;/tt&gt; tags). We can access the space in between:&lt;/p&gt; &lt;hr /&gt; &lt;hr /&gt; &lt;ol&gt; &lt;li&gt;This numbered list...&lt;/li&gt; &lt;li&gt;...is a neighbour of a horizontal line...&lt;/li&gt; &lt;li&gt;...and another list.&lt;/li&gt; &lt;/ol&gt; &lt;ul&gt; &lt;li&gt;We can type between the lists...&lt;/li&gt; &lt;li&gt;...thanks to &lt;strong&gt;Magicline&lt;/strong&gt;.&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;Lorem ipsum dolor sit amet dui. Morbi vel turpis. Nullam et leo. Etiam rutrum, urna tellus dui vel tincidunt mattis egestas, justo fringilla vel, massa. Phasellus.&lt;/p&gt; &lt;p&gt;Quisque iaculis, dui lectus varius vitae, tortor. Proin lacus. Pellentesque ac lacus. Aenean nonummy commodo nec, pede. Etiam blandit risus elit.&lt;/p&gt; &lt;p&gt;Ut pretium. Vestibulum rutrum in, adipiscing elit. Sed in quam in purus sem vitae pede. Pellentesque bibendum, urna sem vel risus. Vivamus posuere metus. Aliquam gravida iaculis nisl. Nam enim. Aliquam erat ac lacus tellus ac felis.&lt;/p&gt; &lt;div style=&quot;border: 2px dashed green; background: #ddd; text-align: center;&quot;&gt; &lt;p&gt;This text is wrapped in a&amp;nbsp;&lt;tt&gt;DIV&lt;/tt&gt;&amp;nbsp;element. We can type after this element though.&lt;/p&gt; &lt;/div&gt; </textarea> <script> // This call can be placed at any point after the // <textarea>, or inside a <head><script> in a // window.onload event handler. CKEDITOR.replace( 'editor1', { extraPlugins: 'magicline', // Ensure that magicline plugin, which is required for this sample, is loaded. allowedContent: true // Switch off the ACF, so very complex content created to // show magicline's power isn't filtered. } ); </script> </div> <br> <div> <label for="editor2"> Editor 2: </label> <div class="description"> <p> This editor is using a blue line. </p> <pre class="samples"> CKEDITOR.replace( 'editor2', { magicline_color: 'blue' });</pre> </div> <textarea cols="80" id="editor2" name="editor2" rows="10"> &lt;table border=&quot;1&quot; cellpadding=&quot;1&quot; cellspacing=&quot;1&quot; style=&quot;width: 100%; &quot;&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;This table&lt;/td&gt; &lt;td&gt;is the&lt;/td&gt; &lt;td&gt;very first&lt;/td&gt; &lt;td&gt;element of the document.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;We are still&lt;/td&gt; &lt;td&gt;able to acces&lt;/td&gt; &lt;td&gt;the space before it.&lt;/td&gt; &lt;td&gt; &lt;table border=&quot;1&quot; cellpadding=&quot;1&quot; cellspacing=&quot;1&quot; style=&quot;width: 100%; &quot;&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;This table is inside of a cell of another table.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;We can type&amp;nbsp;either before or after it though.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;p&gt;Two succesive horizontal lines (&lt;tt&gt;HR&lt;/tt&gt; tags). We can access the space in between:&lt;/p&gt; &lt;hr /&gt; &lt;hr /&gt; &lt;ol&gt; &lt;li&gt;This numbered list...&lt;/li&gt; &lt;li&gt;...is a neighbour of a horizontal line...&lt;/li&gt; &lt;li&gt;...and another list.&lt;/li&gt; &lt;/ol&gt; &lt;ul&gt; &lt;li&gt;We can type between the lists...&lt;/li&gt; &lt;li&gt;...thanks to &lt;strong&gt;Magicline&lt;/strong&gt;.&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;Lorem ipsum dolor sit amet dui. Morbi vel turpis. Nullam et leo. Etiam rutrum, urna tellus dui vel tincidunt mattis egestas, justo fringilla vel, massa. Phasellus.&lt;/p&gt; &lt;p&gt;Quisque iaculis, dui lectus varius vitae, tortor. Proin lacus. Pellentesque ac lacus. Aenean nonummy commodo nec, pede. Etiam blandit risus elit.&lt;/p&gt; &lt;p&gt;Ut pretium. Vestibulum rutrum in, adipiscing elit. Sed in quam in purus sem vitae pede. Pellentesque bibendum, urna sem vel risus. Vivamus posuere metus. Aliquam gravida iaculis nisl. Nam enim. Aliquam erat ac lacus tellus ac felis.&lt;/p&gt; &lt;div style=&quot;border: 2px dashed green; background: #ddd; text-align: center;&quot;&gt; &lt;p&gt;This text is wrapped in a&amp;nbsp;&lt;tt&gt;DIV&lt;/tt&gt;&amp;nbsp;element. We can type after this element though.&lt;/p&gt; &lt;/div&gt; </textarea> <script> // This call can be placed at any point after the // <textarea>, or inside a <head><script> in a // window.onload event handler. CKEDITOR.replace( 'editor2', { extraPlugins: 'magicline', // Ensure that magicline plugin, which is required for this sample, is loaded. magicline_color: 'blue', // Blue line allowedContent: true // Switch off the ACF, so very complex content created to // show magicline's power isn't filtered. }); </script> </div> <div id="footer"> <hr> <p> CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a> </p> <p id="copy"> Copyright &copy; 2003-2014, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved. </p> </div> </body> </html>
09-movie
trunk/shared/plugin/ckeditor/samples/plugins/magicline/magicline.html
HTML
gpl3
8,176
<!DOCTYPE html> <!-- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license --> <html> <head> <meta charset="utf-8"> <title>Using API to Customize Dialog Windows &mdash; CKEditor Sample</title> <script src="../../../ckeditor.js"></script> <link rel="stylesheet" href="../../../samples/sample.css"> <meta name="ckeditor-sample-name" content="Using the JavaScript API to customize dialog windows"> <meta name="ckeditor-sample-group" content="Advanced Samples"> <meta name="ckeditor-sample-description" content="Using the dialog windows API to customize dialog windows without changing the original editor code."> <style> .cke_button__mybutton_icon { display: none !important; } .cke_button__mybutton_label { display: inline !important; } </style> <script> CKEDITOR.on( 'instanceCreated', function( ev ){ var editor = ev.editor; // Listen for the "pluginsLoaded" event, so we are sure that the // "dialog" plugin has been loaded and we are able to do our // customizations. editor.on( 'pluginsLoaded', function() { // If our custom dialog has not been registered, do that now. if ( !CKEDITOR.dialog.exists( 'myDialog' ) ) { // We need to do the following trick to find out the dialog // definition file URL path. In the real world, you would simply // point to an absolute path directly, like "/mydir/mydialog.js". var href = document.location.href.split( '/' ); href.pop(); href.push( 'assets/my_dialog.js' ); href = href.join( '/' ); // Finally, register the dialog. CKEDITOR.dialog.add( 'myDialog', href ); } // Register the command used to open the dialog. editor.addCommand( 'myDialogCmd', new CKEDITOR.dialogCommand( 'myDialog' ) ); // Add the a custom toolbar buttons, which fires the above // command.. editor.ui.add( 'MyButton', CKEDITOR.UI_BUTTON, { label: 'My Dialog', command: 'myDialogCmd' }); }); }); // When opening a dialog, its "definition" is created for it, for // each editor instance. The "dialogDefinition" event is then // fired. We should use this event to make customizations to the // definition of existing dialogs. CKEDITOR.on( 'dialogDefinition', function( ev ) { // Take the dialog name and its definition from the event data. var dialogName = ev.data.name; var dialogDefinition = ev.data.definition; // Check if the definition is from the dialog we're // interested on (the "Link" dialog). if ( dialogName == 'myDialog' && ev.editor.name == 'editor2' ) { // Get a reference to the "Link Info" tab. var infoTab = dialogDefinition.getContents( 'tab1' ); // Add a new text field to the "tab1" tab page. infoTab.add( { type: 'text', label: 'My Custom Field', id: 'customField', 'default': 'Sample!', validate: function() { if ( ( /\d/ ).test( this.getValue() ) ) return 'My Custom Field must not contain digits'; } }); // Remove the "select1" field from the "tab1" tab. infoTab.remove( 'select1' ); // Set the default value for "input1" field. var input1 = infoTab.get( 'input1' ); input1[ 'default' ] = 'www.example.com'; // Remove the "tab2" tab page. dialogDefinition.removeContents( 'tab2' ); // Add a new tab to the "Link" dialog. dialogDefinition.addContents( { id: 'customTab', label: 'My Tab', accessKey: 'M', elements: [ { id: 'myField1', type: 'text', label: 'My Text Field' }, { id: 'myField2', type: 'text', label: 'Another Text Field' } ] }); // Provide the focus handler to start initial focus in "customField" field. dialogDefinition.onFocus = function() { var urlField = this.getContentElement( 'tab1', 'customField' ); urlField.select(); }; } }); var config = { extraPlugins: 'dialog', toolbar: [ [ 'MyButton' ] ] }; </script> </head> <body> <h1 class="samples"> <a href="../../../samples/index.html">CKEditor Samples</a> &raquo; Using CKEditor Dialog API </h1> <div class="description"> <p> This sample shows how to use the <a class="samples" href="http://docs.ckeditor.com/#!/api/CKEDITOR.dialog">CKEditor Dialog API</a> to customize CKEditor dialog windows without changing the original editor code. The following customizations are being done in the example below: </p> <p> For details on how to create this setup check the source code of this sample page. </p> </div> <p>A custom dialog is added to the editors using the <code>pluginsLoaded</code> event, from an external <a target="_blank" href="assets/my_dialog.js">dialog definition file</a>:</p> <ol> <li><strong>Creating a custom dialog window</strong> &ndash; "My Dialog" dialog window opened with the "My Dialog" toolbar button.</li> <li><strong>Creating a custom button</strong> &ndash; Add button to open the dialog with "My Dialog" toolbar button.</li> </ol> <textarea cols="80" id="editor1" name="editor1" rows="10">&lt;p&gt;This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="http://ckeditor.com/"&gt;CKEditor&lt;/a&gt;.&lt;/p&gt;</textarea> <script> // Replace the <textarea id="editor1"> with an CKEditor instance. CKEDITOR.replace( 'editor1', config ); </script> <p>The below editor modify the dialog definition of the above added dialog using the <code>dialogDefinition</code> event:</p> <ol> <li><strong>Adding dialog tab</strong> &ndash; Add new tab "My Tab" to dialog window.</li> <li><strong>Removing a dialog window tab</strong> &ndash; Remove "Second Tab" page from the dialog window.</li> <li><strong>Adding dialog window fields</strong> &ndash; Add "My Custom Field" to the dialog window.</li> <li><strong>Removing dialog window field</strong> &ndash; Remove "Select Field" selection field from the dialog window.</li> <li><strong>Setting default values for dialog window fields</strong> &ndash; Set default value of "Text Field" text field. </li> <li><strong>Setup initial focus for dialog window</strong> &ndash; Put initial focus on "My Custom Field" text field. </li> </ol> <textarea cols="80" id="editor2" name="editor2" rows="10">&lt;p&gt;This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="http://ckeditor.com/"&gt;CKEditor&lt;/a&gt;.&lt;/p&gt;</textarea> <script> // Replace the <textarea id="editor1"> with an CKEditor instance. CKEDITOR.replace( 'editor2', config ); </script> <div id="footer"> <hr> <p> CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a> </p> <p id="copy"> Copyright &copy; 2003-2014, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved. </p> </div> </body> </html>
09-movie
trunk/shared/plugin/ckeditor/samples/plugins/dialog/dialog.html
HTML
gpl3
7,163
/** * Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.dialog.add( 'myDialog', function( editor ) { return { title: 'My Dialog', minWidth: 400, minHeight: 200, contents: [ { id: 'tab1', label: 'First Tab', title: 'First Tab', elements: [ { id: 'input1', type: 'text', label: 'Text Field' }, { id: 'select1', type: 'select', label: 'Select Field', items: [ [ 'option1', 'value1' ], [ 'option2', 'value2' ] ] } ] }, { id: 'tab2', label: 'Second Tab', title: 'Second Tab', elements: [ { id: 'button1', type: 'button', label: 'Button Field' } ] } ] }; } );
09-movie
trunk/shared/plugin/ckeditor/samples/plugins/dialog/assets/my_dialog.js
JavaScript
gpl3
885
<!DOCTYPE html> <!-- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license --> <html> <head> <meta charset="utf-8"> <title>Full Page Editing &mdash; CKEditor Sample</title> <script src="../../../ckeditor.js"></script> <script src="../../../samples/sample.js"></script> <link rel="stylesheet" href="../../../samples/sample.css"> <meta name="ckeditor-sample-required-plugins" content="sourcearea"> <meta name="ckeditor-sample-name" content="Full page support"> <meta name="ckeditor-sample-group" content="Plugins"> <meta name="ckeditor-sample-description" content="CKEditor inserted with a JavaScript call and used to edit the whole page from &lt;html&gt; to &lt;/html&gt;."> </head> <body> <h1 class="samples"> <a href="../../../samples/index.html">CKEditor Samples</a> &raquo; Full Page Editing </h1> <div class="description"> <p> This sample shows how to configure CKEditor to edit entire HTML pages, from the <code>&lt;html&gt;</code> tag to the <code>&lt;/html&gt;</code> tag. </p> <p> The CKEditor instance below is inserted with a JavaScript call using the following code: </p> <pre class="samples"> CKEDITOR.replace( '<em>textarea_id</em>', { <strong>fullPage: true</strong>, <strong>allowedContent: true</strong> }); </pre> <p> Note that <code><em>textarea_id</em></code> in the code above is the <code>id</code> attribute of the <code>&lt;textarea&gt;</code> element to be replaced. </p> <p> The <code><em>allowedContent</em></code> in the code above is set to <code>true</code> to disable content filtering. Setting this option is not obligatory, but in full page mode there is a strong chance that one may want be able to freely enter any HTML content in source mode without any limitations. </p> </div> <form action="../../../samples/sample_posteddata.php" method="post"> <label for="editor1"> CKEditor output the entire page including content outside of <code>&lt;body&gt;</code> element, so content like meta and title can be changed: </label> <textarea cols="80" id="editor1" name="editor1" rows="10"> &lt;h1&gt;&lt;img align=&quot;right&quot; alt=&quot;Saturn V carrying Apollo 11&quot; src=&quot;../../../samples/assets/sample.jpg&quot;/&gt; Apollo 11&lt;/h1&gt; &lt;p&gt;&lt;b&gt;Apollo 11&lt;/b&gt; was the spaceflight that landed the first humans, Americans &lt;a href=&quot;http://en.wikipedia.org/wiki/Neil_Armstrong&quot; title=&quot;Neil Armstrong&quot;&gt;Neil Armstrong&lt;/a&gt; and &lt;a href=&quot;http://en.wikipedia.org/wiki/Buzz_Aldrin&quot; title=&quot;Buzz Aldrin&quot;&gt;Buzz Aldrin&lt;/a&gt;, on the Moon on July 20, 1969, at 20:18 UTC. Armstrong became the first to step onto the lunar surface 6 hours later on July 21 at 02:56 UTC.&lt;/p&gt; &lt;p&gt;Armstrong spent about &lt;s&gt;three and a half&lt;/s&gt; two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5&amp;nbsp;kg) of lunar material for return to Earth. A third member of the mission, &lt;a href=&quot;http://en.wikipedia.org/wiki/Michael_Collins_(astronaut)&quot; title=&quot;Michael Collins (astronaut)&quot;&gt;Michael Collins&lt;/a&gt;, piloted the &lt;a href=&quot;http://en.wikipedia.org/wiki/Apollo_Command/Service_Module&quot; title=&quot;Apollo Command/Service Module&quot;&gt;command&lt;/a&gt; spacecraft alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth.&lt;/p&gt; &lt;h2&gt;Broadcasting and &lt;em&gt;quotes&lt;/em&gt; &lt;a id=&quot;quotes&quot; name=&quot;quotes&quot;&gt;&lt;/a&gt;&lt;/h2&gt; &lt;p&gt;Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;One small step for [a] man, one giant leap for mankind.&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;Apollo 11 effectively ended the &lt;a href=&quot;http://en.wikipedia.org/wiki/Space_Race&quot; title=&quot;Space Race&quot;&gt;Space Race&lt;/a&gt; and fulfilled a national goal proposed in 1961 by the late U.S. President &lt;a href=&quot;http://en.wikipedia.org/wiki/John_F._Kennedy&quot; title=&quot;John F. Kennedy&quot;&gt;John F. Kennedy&lt;/a&gt; in a speech before the United States Congress:&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;[...] before this decade is out, of landing a man on the Moon and returning him safely to the Earth.&lt;/p&gt;&lt;/blockquote&gt; &lt;h2&gt;Technical details &lt;a id=&quot;tech-details&quot; name=&quot;tech-details&quot;&gt;&lt;/a&gt;&lt;/h2&gt; &lt;table align=&quot;right&quot; border=&quot;1&quot; bordercolor=&quot;#ccc&quot; cellpadding=&quot;5&quot; cellspacing=&quot;0&quot; style=&quot;border-collapse:collapse;margin:10px 0 10px 15px;&quot;&gt; &lt;caption&gt;&lt;strong&gt;Mission crew&lt;/strong&gt;&lt;/caption&gt; &lt;thead&gt; &lt;tr&gt; &lt;th scope=&quot;col&quot;&gt;Position&lt;/th&gt; &lt;th scope=&quot;col&quot;&gt;Astronaut&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;Commander&lt;/td&gt; &lt;td&gt;Neil A. Armstrong&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Command Module Pilot&lt;/td&gt; &lt;td&gt;Michael Collins&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Lunar Module Pilot&lt;/td&gt; &lt;td&gt;Edwin &amp;quot;Buzz&amp;quot; E. Aldrin, Jr.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;p&gt;Launched by a &lt;strong&gt;Saturn V&lt;/strong&gt; rocket from &lt;a href=&quot;http://en.wikipedia.org/wiki/Kennedy_Space_Center&quot; title=&quot;Kennedy Space Center&quot;&gt;Kennedy Space Center&lt;/a&gt; in Merritt Island, Florida on July 16, Apollo 11 was the fifth manned mission of &lt;a href=&quot;http://en.wikipedia.org/wiki/NASA&quot; title=&quot;NASA&quot;&gt;NASA&lt;/a&gt;&amp;#39;s Apollo program. The Apollo spacecraft had three parts:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;&lt;strong&gt;Command Module&lt;/strong&gt; with a cabin for the three astronauts which was the only part which landed back on Earth&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Service Module&lt;/strong&gt; which supported the Command Module with propulsion, electrical power, oxygen and water&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Lunar Module&lt;/strong&gt; for landing on the Moon.&lt;/li&gt; &lt;/ol&gt; &lt;p&gt;After being sent to the Moon by the Saturn V&amp;#39;s upper stage, the astronauts separated the spacecraft from it and travelled for three days until they entered into lunar orbit. Armstrong and Aldrin then moved into the Lunar Module and landed in the &lt;a href=&quot;http://en.wikipedia.org/wiki/Mare_Tranquillitatis&quot; title=&quot;Mare Tranquillitatis&quot;&gt;Sea of Tranquility&lt;/a&gt;. They stayed a total of about 21 and a half hours on the lunar surface. After lifting off in the upper part of the Lunar Module and rejoining Collins in the Command Module, they returned to Earth and landed in the &lt;a href=&quot;http://en.wikipedia.org/wiki/Pacific_Ocean&quot; title=&quot;Pacific Ocean&quot;&gt;Pacific Ocean&lt;/a&gt; on July 24.&lt;/p&gt; &lt;hr/&gt; &lt;p style=&quot;text-align: right;&quot;&gt;&lt;small&gt;Source: &lt;a href=&quot;http://en.wikipedia.org/wiki/Apollo_11&quot;&gt;Wikipedia.org&lt;/a&gt;&lt;/small&gt;&lt;/p&gt; </textarea> <script> CKEDITOR.replace( 'editor1', { fullPage: true, allowedContent: true, extraPlugins: 'wysiwygarea' }); </script> <p> <input type="submit" value="Submit"> </p> </form> <div id="footer"> <hr> <p> CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a> </p> <p id="copy"> Copyright &copy; 2003-2014, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved. </p> </div> </body> </html>
09-movie
trunk/shared/plugin/ckeditor/samples/plugins/wysiwygarea/fullpage.html
HTML
gpl3
7,895
<!DOCTYPE html> <!-- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license --> <html> <head> <meta charset="utf-8"> <title>HTML Compliant Output &mdash; CKEditor Sample</title> <script src="../../../ckeditor.js"></script> <script src="../../../samples/sample.js"></script> <link href="../../../samples/sample.css" rel="stylesheet"> <meta name="ckeditor-sample-required-plugins" content="sourcearea"> <meta name="ckeditor-sample-name" content="Output HTML"> <meta name="ckeditor-sample-group" content="Advanced Samples"> <meta name="ckeditor-sample-description" content="Configuring CKEditor to produce legacy HTML 4 code."> </head> <body> <h1 class="samples"> <a href="../../../samples/index.html">CKEditor Samples</a> &raquo; Producing HTML Compliant Output </h1> <div class="description"> <p> This sample shows how to configure CKEditor to output valid <a class="samples" href="http://www.w3.org/TR/html401/">HTML 4.01</a> code. Traditional HTML elements like <code>&lt;b&gt;</code>, <code>&lt;i&gt;</code>, and <code>&lt;font&gt;</code> are used in place of <code>&lt;strong&gt;</code>, <code>&lt;em&gt;</code>, and CSS styles. </p> <p> To add a CKEditor instance outputting legacy HTML 4.01 code, load the editor using a standard JavaScript call, and define CKEditor features to use the HTML compliant elements and attributes. </p> <p> A snippet of the configuration code can be seen below; check the source of this page for full definition: </p> <pre class="samples"> CKEDITOR.replace( '<em>textarea_id</em>', { coreStyles_bold: { element: 'b' }, coreStyles_italic: { element: 'i' }, fontSize_style: { element: 'font', attributes: { 'size': '#(size)' } } ... });</pre> </div> <form action="../../../samples/sample_posteddata.php" method="post"> <p> <label for="editor1"> Editor 1: </label> <textarea cols="80" id="editor1" name="editor1" rows="10">&lt;p&gt;This is some &lt;b&gt;sample text&lt;/b&gt;. You are using &lt;a href="http://ckeditor.com/"&gt;CKEditor&lt;/a&gt;.&lt;/p&gt;</textarea> <script> CKEDITOR.replace( 'editor1', { /* * Ensure that htmlwriter plugin, which is required for this sample, is loaded. */ extraPlugins: 'htmlwriter', /* * Style sheet for the contents */ contentsCss: 'body {color:#000; background-color#:FFF;}', /* * Simple HTML5 doctype */ docType: '<!DOCTYPE HTML>', /* * Allowed content rules which beside limiting allowed HTML * will also take care of transforming styles to attributes * (currently only for img - see transformation rules defined below). * * Read more: http://docs.ckeditor.com/#!/guide/dev_advanced_content_filter */ allowedContent: 'h1 h2 h3 p pre[align]; ' + 'blockquote code kbd samp var del ins cite q b i u strike ul ol li hr table tbody tr td th caption; ' + 'img[!src,alt,align,width,height]; font[!face]; font[!family]; font[!color]; font[!size]; font{!background-color}; a[!href]; a[!name]', /* * Core styles. */ coreStyles_bold: { element: 'b' }, coreStyles_italic: { element: 'i' }, coreStyles_underline: { element: 'u' }, coreStyles_strike: { element: 'strike' }, /* * Font face. */ // Define the way font elements will be applied to the document. // The "font" element will be used. font_style: { element: 'font', attributes: { 'face': '#(family)' } }, /* * Font sizes. */ fontSize_sizes: 'xx-small/1;x-small/2;small/3;medium/4;large/5;x-large/6;xx-large/7', fontSize_style: { element: 'font', attributes: { 'size': '#(size)' } }, /* * Font colors. */ colorButton_foreStyle: { element: 'font', attributes: { 'color': '#(color)' } }, colorButton_backStyle: { element: 'font', styles: { 'background-color': '#(color)' } }, /* * Styles combo. */ stylesSet: [ { name: 'Computer Code', element: 'code' }, { name: 'Keyboard Phrase', element: 'kbd' }, { name: 'Sample Text', element: 'samp' }, { name: 'Variable', element: 'var' }, { name: 'Deleted Text', element: 'del' }, { name: 'Inserted Text', element: 'ins' }, { name: 'Cited Work', element: 'cite' }, { name: 'Inline Quotation', element: 'q' } ], on: { pluginsLoaded: configureTransformations, loaded: configureHtmlWriter } }); /* * Add missing content transformations. */ function configureTransformations( evt ) { var editor = evt.editor; editor.dataProcessor.htmlFilter.addRules( { attributes: { style: function( value, element ) { // Return #RGB for background and border colors return CKEDITOR.tools.convertRgbToHex( value ); } } } ); // Default automatic content transformations do not yet take care of // align attributes on blocks, so we need to add our own transformation rules. function alignToAttribute( element ) { if ( element.styles[ 'text-align' ] ) { element.attributes.align = element.styles[ 'text-align' ]; delete element.styles[ 'text-align' ]; } } editor.filter.addTransformations( [ [ { element: 'p', right: alignToAttribute } ], [ { element: 'h1', right: alignToAttribute } ], [ { element: 'h2', right: alignToAttribute } ], [ { element: 'h3', right: alignToAttribute } ], [ { element: 'pre', right: alignToAttribute } ] ] ); } /* * Adjust the behavior of htmlWriter to make it output HTML like FCKeditor. */ function configureHtmlWriter( evt ) { var editor = evt.editor, dataProcessor = editor.dataProcessor; // Out self closing tags the HTML4 way, like <br>. dataProcessor.writer.selfClosingEnd = '>'; // Make output formatting behave similar to FCKeditor. var dtd = CKEDITOR.dtd; for ( var e in CKEDITOR.tools.extend( {}, dtd.$nonBodyContent, dtd.$block, dtd.$listItem, dtd.$tableContent ) ) { dataProcessor.writer.setRules( e, { indent: true, breakBeforeOpen: true, breakAfterOpen: false, breakBeforeClose: !dtd[ e ][ '#' ], breakAfterClose: true }); } } </script> </p> <p> <input type="submit" value="Submit"> </p> </form> <div id="footer"> <hr> <p> CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a> </p> <p id="copy"> Copyright &copy; 2003-2014, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved. </p> </div> </body> </html>
09-movie
trunk/shared/plugin/ckeditor/samples/plugins/htmlwriter/outputhtml.html
HTML
gpl3
7,135
<!DOCTYPE html> <!-- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license --> <html> <head> <meta charset="utf-8"> <title>Output for Flash &mdash; CKEditor Sample</title> <script src="../../../ckeditor.js"></script> <script src="../../../samples/sample.js"></script> <script src="assets/outputforflash/swfobject.js"></script> <link href="../../../samples/sample.css" rel="stylesheet"> <meta name="ckeditor-sample-required-plugins" content="sourcearea"> <meta name="ckeditor-sample-name" content="Output for Flash"> <meta name="ckeditor-sample-group" content="Advanced Samples"> <meta name="ckeditor-sample-description" content="Configuring CKEditor to produce HTML code that can be used with Adobe Flash."> <style> .alert { background: #ffa84c; padding: 10px 15px; font-weight: bold; display: block; margin-bottom: 20px; } </style> </head> <body> <h1 class="samples"> <a href="../../../samples/index.html">CKEditor Samples</a> &raquo; Producing Flash Compliant HTML Output </h1> <div class="description"> <p> This sample shows how to configure CKEditor to output HTML code that can be used with <a class="samples" href="http://www.adobe.com/livedocs/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&amp;file=00000922.html"> Adobe Flash</a>. The code will contain a subset of standard HTML elements like <code>&lt;b&gt;</code>, <code>&lt;i&gt;</code>, and <code>&lt;p&gt;</code> as well as HTML attributes. </p> <p> To add a CKEditor instance outputting Flash compliant HTML code, load the editor using a standard JavaScript call, and define CKEditor features to use HTML elements and attributes. </p> <p> For details on how to create this setup check the source code of this sample page. </p> </div> <p> To see how it works, create some content in the editing area of CKEditor on the left and send it to the Flash object on the right side of the page by using the <strong>Send to Flash</strong> button. </p> <table style="width: 100%; border-spacing: 0; border-collapse:collapse;"> <tr> <td style="width: 100%"> <textarea cols="80" id="editor1" name="editor1" rows="10">&lt;p&gt;&lt;b&gt;&lt;font size=&quot;18&quot; style=&quot;font-size:18px;&quot;&gt;Flash and HTML&lt;/font&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;It is possible to have &lt;a href=&quot;http://ckeditor.com&quot;&gt;CKEditor&lt;/a&gt; creating content that will be later loaded inside &lt;b&gt;Flash&lt;/b&gt; objects and animations.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Flash has a few limitations when dealing with HTML:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;It has limited support on tags.&lt;/li&gt;&lt;li&gt;There is no margin between block elements, like paragraphs.&lt;/li&gt;&lt;/ul&gt;</textarea> <script> if ( document.location.protocol == 'file:' ) alert( 'Warning: This samples does not work when loaded from local filesystem' + 'due to security restrictions implemented in Flash.' + '\n\nPlease load the sample from a web server instead.' ); var editor = CKEDITOR.replace( 'editor1', { /* * Ensure that htmlwriter plugin, which is required for this sample, is loaded. */ extraPlugins: 'htmlwriter', height: 290, width: '100%', toolbar: [ [ 'Source', '-', 'Bold', 'Italic', 'Underline', '-', 'BulletedList', '-', 'Link', 'Unlink' ], [ 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock' ], '/', [ 'Font', 'FontSize' ], [ 'TextColor', '-', 'About' ] ], /* * Style sheet for the contents */ contentsCss: 'body {color:#000; background-color#FFF; font-family: Arial; font-size:80%;} p, ol, ul {margin-top: 0px; margin-bottom: 0px;}', /* * Quirks doctype */ docType: '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">', /* * Core styles. */ coreStyles_bold: { element: 'b' }, coreStyles_italic: { element: 'i' }, coreStyles_underline: { element: 'u' }, /* * Font face. */ // Define the way font elements will be applied to the document. The "font" // element will be used. font_style: { element: 'font', attributes: { 'face': '#(family)' } }, /* * Font sizes. */ // The CSS part of the font sizes isn't used by Flash, it is there to get the // font rendered correctly in CKEditor. fontSize_sizes: '8px/8;9px/9;10px/10;11px/11;12px/12;14px/14;16px/16;18px/18;20px/20;22px/22;24px/24;26px/26;28px/28;36px/36;48px/48;72px/72', fontSize_style: { element: 'font', attributes: { 'size': '#(size)' }, styles: { 'font-size': '#(size)px' } } , /* * Font colors. */ colorButton_enableMore: true, colorButton_foreStyle: { element: 'font', attributes: { 'color': '#(color)' } }, colorButton_backStyle: { element: 'font', styles: { 'background-color': '#(color)' } }, on: { 'instanceReady': configureFlashOutput } }); /* * Adjust the behavior of the dataProcessor to match the * requirements of Flash */ function configureFlashOutput( ev ) { var editor = ev.editor, dataProcessor = editor.dataProcessor, htmlFilter = dataProcessor && dataProcessor.htmlFilter; // Out self closing tags the HTML4 way, like <br>. dataProcessor.writer.selfClosingEnd = '>'; // Make output formatting match Flash expectations var dtd = CKEDITOR.dtd; for ( var e in CKEDITOR.tools.extend( {}, dtd.$nonBodyContent, dtd.$block, dtd.$listItem, dtd.$tableContent ) ) { dataProcessor.writer.setRules( e, { indent: false, breakBeforeOpen: false, breakAfterOpen: false, breakBeforeClose: false, breakAfterClose: false }); } dataProcessor.writer.setRules( 'br', { indent: false, breakBeforeOpen: false, breakAfterOpen: false, breakBeforeClose: false, breakAfterClose: false }); // Output properties as attributes, not styles. htmlFilter.addRules( { elements: { $: function( element ) { var style, match, width, height, align; // Output dimensions of images as width and height if ( element.name == 'img' ) { style = element.attributes.style; if ( style ) { // Get the width from the style. match = ( /(?:^|\s)width\s*:\s*(\d+)px/i ).exec( style ); width = match && match[1]; // Get the height from the style. match = ( /(?:^|\s)height\s*:\s*(\d+)px/i ).exec( style ); height = match && match[1]; if ( width ) { element.attributes.style = element.attributes.style.replace( /(?:^|\s)width\s*:\s*(\d+)px;?/i , '' ); element.attributes.width = width; } if ( height ) { element.attributes.style = element.attributes.style.replace( /(?:^|\s)height\s*:\s*(\d+)px;?/i , '' ); element.attributes.height = height; } } } // Output alignment of paragraphs using align if ( element.name == 'p' ) { style = element.attributes.style; if ( style ) { // Get the align from the style. match = ( /(?:^|\s)text-align\s*:\s*(\w*);?/i ).exec( style ); align = match && match[1]; if ( align ) { element.attributes.style = element.attributes.style.replace( /(?:^|\s)text-align\s*:\s*(\w*);?/i , '' ); element.attributes.align = align; } } } if ( element.attributes.style === '' ) delete element.attributes.style; return element; } } }); } function sendToFlash() { var html = CKEDITOR.instances.editor1.getData() ; // Quick fix for link color. html = html.replace( /<a /g, '<font color="#0000FF"><u><a ' ) html = html.replace( /<\/a>/g, '</a></u></font>' ) var flash = document.getElementById( 'ckFlashContainer' ) ; flash.setData( html ) ; } CKEDITOR.domReady( function() { if ( !swfobject.hasFlashPlayerVersion( '8' ) ) { CKEDITOR.dom.element.createFromHtml( '<span class="alert">' + 'At least Adobe Flash Player 8 is required to run this sample. ' + 'You can download it from <a href="http://get.adobe.com/flashplayer">Adobe\'s website</a>.' + '</span>' ).insertBefore( editor.element ); } swfobject.embedSWF( 'assets/outputforflash/outputforflash.swf', 'ckFlashContainer', '550', '400', '8', { wmode: 'transparent' } ); }); </script> <p> <input type="button" value="Send to Flash" onclick="sendToFlash();"> </p> </td> <td style="vertical-align: top; padding-left: 20px"> <div id="ckFlashContainer"></div> </td> </tr> </table> <div id="footer"> <hr> <p> CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a> </p> <p id="copy"> Copyright &copy; 2003-2014, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved. </p> </div> </body> </html>
09-movie
trunk/shared/plugin/ckeditor/samples/plugins/htmlwriter/outputforflash.html
HTML
gpl3
9,922
<!DOCTYPE html> <!-- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license --> <html> <head> <meta charset="utf-8"> <title>Replace Textarea by Code &mdash; CKEditor Sample</title> <script src="../ckeditor.js"></script> <link href="sample.css" rel="stylesheet"> </head> <body> <h1 class="samples"> <a href="index.html">CKEditor Samples</a> &raquo; Replace Textarea Elements Using JavaScript Code </h1> <form action="sample_posteddata.php" method="post"> <div class="description"> <p> This editor is using an <code>&lt;iframe&gt;</code> element-based editing area, provided by the <strong>Wysiwygarea</strong> plugin. </p> <pre class="samples"> CKEDITOR.replace( '<em>textarea_id</em>' ) </pre> </div> <textarea cols="80" id="editor1" name="editor1" rows="10"> &lt;h1&gt;&lt;img alt=&quot;Saturn V carrying Apollo 11&quot; class=&quot;right&quot; src=&quot;assets/sample.jpg&quot;/&gt; Apollo 11&lt;/h1&gt; &lt;p&gt;&lt;b&gt;Apollo 11&lt;/b&gt; was the spaceflight that landed the first humans, Americans &lt;a href=&quot;http://en.wikipedia.org/wiki/Neil_Armstrong&quot; title=&quot;Neil Armstrong&quot;&gt;Neil Armstrong&lt;/a&gt; and &lt;a href=&quot;http://en.wikipedia.org/wiki/Buzz_Aldrin&quot; title=&quot;Buzz Aldrin&quot;&gt;Buzz Aldrin&lt;/a&gt;, on the Moon on July 20, 1969, at 20:18 UTC. Armstrong became the first to step onto the lunar surface 6 hours later on July 21 at 02:56 UTC.&lt;/p&gt; &lt;p&gt;Armstrong spent about &lt;s&gt;three and a half&lt;/s&gt; two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5&amp;nbsp;kg) of lunar material for return to Earth. A third member of the mission, &lt;a href=&quot;http://en.wikipedia.org/wiki/Michael_Collins_(astronaut)&quot; title=&quot;Michael Collins (astronaut)&quot;&gt;Michael Collins&lt;/a&gt;, piloted the &lt;a href=&quot;http://en.wikipedia.org/wiki/Apollo_Command/Service_Module&quot; title=&quot;Apollo Command/Service Module&quot;&gt;command&lt;/a&gt; spacecraft alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth.&lt;/p&gt; &lt;h2&gt;Broadcasting and &lt;em&gt;quotes&lt;/em&gt; &lt;a id=&quot;quotes&quot; name=&quot;quotes&quot;&gt;&lt;/a&gt;&lt;/h2&gt; &lt;p&gt;Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;One small step for [a] man, one giant leap for mankind.&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;Apollo 11 effectively ended the &lt;a href=&quot;http://en.wikipedia.org/wiki/Space_Race&quot; title=&quot;Space Race&quot;&gt;Space Race&lt;/a&gt; and fulfilled a national goal proposed in 1961 by the late U.S. President &lt;a href=&quot;http://en.wikipedia.org/wiki/John_F._Kennedy&quot; title=&quot;John F. Kennedy&quot;&gt;John F. Kennedy&lt;/a&gt; in a speech before the United States Congress:&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;[...] before this decade is out, of landing a man on the Moon and returning him safely to the Earth.&lt;/p&gt;&lt;/blockquote&gt; &lt;h2&gt;Technical details &lt;a id=&quot;tech-details&quot; name=&quot;tech-details&quot;&gt;&lt;/a&gt;&lt;/h2&gt; &lt;table align=&quot;right&quot; border=&quot;1&quot; bordercolor=&quot;#ccc&quot; cellpadding=&quot;5&quot; cellspacing=&quot;0&quot; style=&quot;border-collapse:collapse;margin:10px 0 10px 15px;&quot;&gt; &lt;caption&gt;&lt;strong&gt;Mission crew&lt;/strong&gt;&lt;/caption&gt; &lt;thead&gt; &lt;tr&gt; &lt;th scope=&quot;col&quot;&gt;Position&lt;/th&gt; &lt;th scope=&quot;col&quot;&gt;Astronaut&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;Commander&lt;/td&gt; &lt;td&gt;Neil A. Armstrong&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Command Module Pilot&lt;/td&gt; &lt;td&gt;Michael Collins&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Lunar Module Pilot&lt;/td&gt; &lt;td&gt;Edwin &amp;quot;Buzz&amp;quot; E. Aldrin, Jr.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;p&gt;Launched by a &lt;strong&gt;Saturn V&lt;/strong&gt; rocket from &lt;a href=&quot;http://en.wikipedia.org/wiki/Kennedy_Space_Center&quot; title=&quot;Kennedy Space Center&quot;&gt;Kennedy Space Center&lt;/a&gt; in Merritt Island, Florida on July 16, Apollo 11 was the fifth manned mission of &lt;a href=&quot;http://en.wikipedia.org/wiki/NASA&quot; title=&quot;NASA&quot;&gt;NASA&lt;/a&gt;&amp;#39;s Apollo program. The Apollo spacecraft had three parts:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;&lt;strong&gt;Command Module&lt;/strong&gt; with a cabin for the three astronauts which was the only part which landed back on Earth&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Service Module&lt;/strong&gt; which supported the Command Module with propulsion, electrical power, oxygen and water&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Lunar Module&lt;/strong&gt; for landing on the Moon.&lt;/li&gt; &lt;/ol&gt; &lt;p&gt;After being sent to the Moon by the Saturn V&amp;#39;s upper stage, the astronauts separated the spacecraft from it and travelled for three days until they entered into lunar orbit. Armstrong and Aldrin then moved into the Lunar Module and landed in the &lt;a href=&quot;http://en.wikipedia.org/wiki/Mare_Tranquillitatis&quot; title=&quot;Mare Tranquillitatis&quot;&gt;Sea of Tranquility&lt;/a&gt;. They stayed a total of about 21 and a half hours on the lunar surface. After lifting off in the upper part of the Lunar Module and rejoining Collins in the Command Module, they returned to Earth and landed in the &lt;a href=&quot;http://en.wikipedia.org/wiki/Pacific_Ocean&quot; title=&quot;Pacific Ocean&quot;&gt;Pacific Ocean&lt;/a&gt; on July 24.&lt;/p&gt; &lt;hr/&gt; &lt;p style=&quot;text-align: right;&quot;&gt;&lt;small&gt;Source: &lt;a href=&quot;http://en.wikipedia.org/wiki/Apollo_11&quot;&gt;Wikipedia.org&lt;/a&gt;&lt;/small&gt;&lt;/p&gt; </textarea> <script> // This call can be placed at any point after the // <textarea>, or inside a <head><script> in a // window.onload event handler. // Replace the <textarea id="editor"> with an CKEditor // instance, using default configurations. CKEDITOR.replace( 'editor1' ); </script> <p> <input type="submit" value="Submit"> </p> </form> <div id="footer"> <hr> <p> CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a> </p> <p id="copy"> Copyright &copy; 2003-2014, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved. </p> </div> </body> </html>
09-movie
trunk/shared/plugin/ckeditor/samples/replacebycode.html
HTML
gpl3
6,717
<!DOCTYPE html> <!-- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license --> <html> <head> <meta charset="utf-8"> <title>Massive inline editing &mdash; CKEditor Sample</title> <script src="../ckeditor.js"></script> <script> // This code is generally not necessary, but it is here to demonstrate // how to customize specific editor instances on the fly. This fits well // this demo because we have editable elements (like headers) that // require less features. // The "instanceCreated" event is fired for every editor instance created. CKEDITOR.on( 'instanceCreated', function( event ) { var editor = event.editor, element = editor.element; // Customize editors for headers and tag list. // These editors don't need features like smileys, templates, iframes etc. if ( element.is( 'h1', 'h2', 'h3' ) || element.getAttribute( 'id' ) == 'taglist' ) { // Customize the editor configurations on "configLoaded" event, // which is fired after the configuration file loading and // execution. This makes it possible to change the // configurations before the editor initialization takes place. editor.on( 'configLoaded', function() { // Remove unnecessary plugins to make the editor simpler. editor.config.removePlugins = 'colorbutton,find,flash,font,' + 'forms,iframe,image,newpage,removeformat,' + 'smiley,specialchar,stylescombo,templates'; // Rearrange the layout of the toolbar. editor.config.toolbarGroups = [ { name: 'editing', groups: [ 'basicstyles', 'links' ] }, { name: 'undo' }, { name: 'clipboard', groups: [ 'selection', 'clipboard' ] }, { name: 'about' } ]; }); } }); </script> <link href="sample.css" rel="stylesheet"> <style> /* The following styles are just to make the page look nice. */ /* Workaround to show Arial Black in Firefox. */ @font-face { font-family: 'arial-black'; src: local('Arial Black'); } *[contenteditable="true"] { padding: 10px; } #container { width: 960px; margin: 30px auto 0; } #header { overflow: hidden; padding: 0 0 30px; border-bottom: 5px solid #05B2D2; position: relative; } #headerLeft, #headerRight { width: 49%; overflow: hidden; } #headerLeft { float: left; padding: 10px 1px 1px; } #headerLeft h2, #headerLeft h3 { text-align: right; margin: 0; overflow: hidden; font-weight: normal; } #headerLeft h2 { font-family: "Arial Black",arial-black; font-size: 4.6em; line-height: 1.1; text-transform: uppercase; } #headerLeft h3 { font-size: 2.3em; line-height: 1.1; margin: .2em 0 0; color: #666; } #headerRight { float: right; padding: 1px; } #headerRight p { line-height: 1.8; text-align: justify; margin: 0; } #headerRight p + p { margin-top: 20px; } #headerRight > div { padding: 20px; margin: 0 0 0 30px; font-size: 1.4em; color: #666; } #columns { color: #333; overflow: hidden; padding: 20px 0; } #columns > div { float: left; width: 33.3%; } #columns #column1 > div { margin-left: 1px; } #columns #column3 > div { margin-right: 1px; } #columns > div > div { margin: 0px 10px; padding: 10px 20px; } #columns blockquote { margin-left: 15px; } #tagLine { border-top: 5px solid #05B2D2; padding-top: 20px; } #taglist { display: inline-block; margin-left: 20px; font-weight: bold; margin: 0 0 0 20px; } </style> </head> <body> <div> <h1 class="samples"><a href="index.html">CKEditor Samples</a> &raquo; Massive inline editing</h1> <div class="description"> <p>This sample page demonstrates the inline editing feature - CKEditor instances will be created automatically from page elements with <strong>contentEditable</strong> attribute set to value <strong>true</strong>:</p> <pre class="samples">&lt;div <strong>contenteditable="true</strong>" &gt; ... &lt;/div&gt;</pre> <p>Click inside of any element below to start editing.</p> </div> </div> <div id="container"> <div id="header"> <div id="headerLeft"> <h2 id="sampleTitle" contenteditable="true"> CKEditor<br> Goes Inline! </h2> <h3 contenteditable="true"> Lorem ipsum dolor sit amet dolor duis blandit vestibulum faucibus a, tortor. </h3> </div> <div id="headerRight"> <div contenteditable="true"> <p> Lorem ipsum dolor sit amet enim. Etiam ullamcorper. Suspendisse a pellentesque dui, non felis. Maecenas malesuada elit lectus felis, malesuada ultricies. </p> <p> Curabitur et ligula. Ut molestie a, ultricies porta urna. Vestibulum commodo volutpat a, convallis ac, laoreet enim. Phasellus fermentum in, dolor. Pellentesque facilisis. Nulla imperdiet sit amet magna. Vestibulum dapibus, mauris nec malesuada fames ac. </p> </div> </div> </div> <div id="columns"> <div id="column1"> <div contenteditable="true"> <h3> Fusce vitae porttitor </h3> <p> <strong> Lorem ipsum dolor sit amet dolor. Duis blandit vestibulum faucibus a, tortor. </strong> </p> <p> Proin nunc justo felis mollis tincidunt, risus risus pede, posuere cubilia Curae, Nullam euismod, enim. Etiam nibh ultricies dolor ac dignissim erat volutpat. Vivamus fermentum <a href="http://ckeditor.com/">nisl nulla sem in</a> metus. Maecenas wisi. Donec nec erat volutpat. </p> <blockquote> <p> Fusce vitae porttitor a, euismod convallis nisl, blandit risus tortor, pretium. Vehicula vitae, imperdiet vel, ornare enim vel sodales rutrum </p> </blockquote> <blockquote> <p> Libero nunc, rhoncus ante ipsum non ipsum. Nunc eleifend pede turpis id sollicitudin fringilla. Phasellus ultrices, velit ac arcu. </p> </blockquote> <p>Pellentesque nunc. Donec suscipit erat. Pellentesque habitant morbi tristique ullamcorper.</p> <p><s>Mauris mattis feugiat lectus nec mauris. Nullam vitae ante.</s></p> </div> </div> <div id="column2"> <div contenteditable="true"> <h3> Integer condimentum sit amet </h3> <p> <strong>Aenean nonummy a, mattis varius. Cras aliquet.</strong> Praesent <a href="http://ckeditor.com/">magna non mattis ac, rhoncus nunc</a>, rhoncus eget, cursus pulvinar mollis.</p> <p>Proin id nibh. Sed eu libero posuere sed, lectus. Phasellus dui gravida gravida feugiat mattis ac, felis.</p> <p>Integer condimentum sit amet, tempor elit odio, a dolor non ante at sapien. Sed ac lectus. Nulla ligula quis eleifend mi, id leo velit pede cursus arcu id nulla ac lectus. Phasellus vestibulum. Nunc viverra enim quis diam.</p> </div> <div contenteditable="true"> <h3> Praesent wisi accumsan sit amet nibh </h3> <p>Donec ullamcorper, risus tortor, pretium porttitor. Morbi quam quis lectus non leo.</p> <p style="margin-left: 40px; ">Integer faucibus scelerisque. Proin faucibus at, aliquet vulputate, odio at eros. Fusce <a href="http://ckeditor.com/">gravida, erat vitae augue</a>. Fusce urna fringilla gravida.</p> <p>In hac habitasse platea dictumst. Praesent wisi accumsan sit amet nibh. Maecenas orci luctus a, lacinia quam sem, posuere commodo, odio condimentum tempor, pede semper risus. Suspendisse pede. In hac habitasse platea dictumst. Nam sed laoreet sit amet erat. Integer.</p> </div> </div> <div id="column3"> <div contenteditable="true"> <p> <img src="assets/inlineall/logo.png" alt="CKEditor logo" style="float:left"> </p> <p>Quisque justo neque, mattis sed, fermentum ultrices <strong>posuere cubilia Curae</strong>, Vestibulum elit metus, quis placerat ut, lectus. Ut sagittis, nunc libero, egestas consequat lobortis velit rutrum ut, faucibus turpis. Fusce porttitor, nulla quis turpis. Nullam laoreet vel, consectetuer tellus suscipit ultricies, hendrerit wisi. Donec odio nec velit ac nunc sit amet, accumsan cursus aliquet. Vestibulum ante sit amet sagittis mi.</p> <h3> Nullam laoreet vel consectetuer tellus suscipit </h3> <ul> <li>Ut sagittis, nunc libero, egestas consequat lobortis velit rutrum ut, faucibus turpis.</li> <li>Fusce porttitor, nulla quis turpis. Nullam laoreet vel, consectetuer tellus suscipit ultricies, hendrerit wisi.</li> <li>Mauris eget tellus. Donec non felis. Nam eget dolor. Vestibulum enim. Donec.</li> </ul> <p>Quisque justo neque, mattis sed, <a href="http://ckeditor.com/">fermentum ultrices posuere cubilia</a> Curae, Vestibulum elit metus, quis placerat ut, lectus.</p> <p>Nullam laoreet vel, consectetuer tellus suscipit ultricies, hendrerit wisi. Ut sagittis, nunc libero, egestas consequat lobortis velit rutrum ut, faucibus turpis. Fusce porttitor, nulla quis turpis.</p> <p>Donec odio nec velit ac nunc sit amet, accumsan cursus aliquet. Vestibulum ante sit amet sagittis mi. Sed in nonummy faucibus turpis. Mauris eget tellus. Donec non felis. Nam eget dolor. Vestibulum enim. Donec.</p> </div> </div> </div> <div id="tagLine"> Tags of this article: <p id="taglist" contenteditable="true"> inline, editing, floating, CKEditor </p> </div> </div> <div id="footer"> <hr> <p> CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/"> http://ckeditor.com</a> </p> <p id="copy"> Copyright &copy; 2003-2014, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved. </p> </div> </body> </html>
09-movie
trunk/shared/plugin/ckeditor/samples/inlineall.html
HTML
gpl3
9,999
<?php /* <body><pre> ------------------------------------------------------------------------------------------- CKEditor - Posted Data We are sorry, but your Web server does not support the PHP language used in this script. Please note that CKEditor can be used with any other server-side language than just PHP. To save the content created with CKEditor you need to read the POST data on the server side and write it to a file or the database. Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or <a href="http://ckeditor.com/license">http://ckeditor.com/license</a> ------------------------------------------------------------------------------------------- </pre><div style="display:none"></body> */ include "assets/posteddata.php"; ?>
09-movie
trunk/shared/plugin/ckeditor/samples/sample_posteddata.php
PHP
gpl3
831
/** * Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ // Tool scripts for the sample pages. // This file can be ignored and is not required to make use of CKEditor. ( function() { CKEDITOR.on( 'instanceReady', function( ev ) { // Check for sample compliance. var editor = ev.editor, meta = CKEDITOR.document.$.getElementsByName( 'ckeditor-sample-required-plugins' ), requires = meta.length ? CKEDITOR.dom.element.get( meta[ 0 ] ).getAttribute( 'content' ).split( ',' ) : [], missing = [], i; if ( requires.length ) { for ( i = 0; i < requires.length; i++ ) { if ( !editor.plugins[ requires[ i ] ] ) missing.push( '<code>' + requires[ i ] + '</code>' ); } if ( missing.length ) { var warn = CKEDITOR.dom.element.createFromHtml( '<div class="warning">' + '<span>To fully experience this demo, the ' + missing.join( ', ' ) + ' plugin' + ( missing.length > 1 ? 's are' : ' is' ) + ' required.</span>' + '</div>' ); warn.insertBefore( editor.container ); } } // Set icons. var doc = new CKEDITOR.dom.document( document ), icons = doc.find( '.button_icon' ); for ( i = 0; i < icons.count(); i++ ) { var icon = icons.getItem( i ), name = icon.getAttribute( 'data-icon' ), style = CKEDITOR.skin.getIconStyle( name, ( CKEDITOR.lang.dir == 'rtl' ) ); icon.addClass( 'cke_button_icon' ); icon.addClass( 'cke_button__' + name + '_icon' ); icon.setAttribute( 'style', style ); icon.setStyle( 'float', 'none' ); } } ); } )();
09-movie
trunk/shared/plugin/ckeditor/samples/sample.js
JavaScript
gpl3
1,675
<!DOCTYPE html> <!-- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license --> <html> <head> <meta charset="utf-8"> <title>Ajax &mdash; CKEditor Sample</title> <script src="../ckeditor.js"></script> <link rel="stylesheet" href="sample.css"> <script> var editor, html = ''; function createEditor() { if ( editor ) return; // Create a new editor inside the <div id="editor">, setting its value to html var config = {}; editor = CKEDITOR.appendTo( 'editor', config, html ); } function removeEditor() { if ( !editor ) return; // Retrieve the editor contents. In an Ajax application, this data would be // sent to the server or used in any other way. document.getElementById( 'editorcontents' ).innerHTML = html = editor.getData(); document.getElementById( 'contents' ).style.display = ''; // Destroy the editor. editor.destroy(); editor = null; } </script> </head> <body> <h1 class="samples"> <a href="index.html">CKEditor Samples</a> &raquo; Create and Destroy Editor Instances for Ajax Applications </h1> <div class="description"> <p> This sample shows how to create and destroy CKEditor instances on the fly. After the removal of CKEditor the content created inside the editing area will be displayed in a <code>&lt;div&gt;</code> element. </p> <p> For details of how to create this setup check the source code of this sample page for JavaScript code responsible for the creation and destruction of a CKEditor instance. </p> </div> <p>Click the buttons to create and remove a CKEditor instance.</p> <p> <input onclick="createEditor();" type="button" value="Create Editor"> <input onclick="removeEditor();" type="button" value="Remove Editor"> </p> <!-- This div will hold the editor. --> <div id="editor"> </div> <div id="contents" style="display: none"> <p> Edited Contents: </p> <!-- This div will be used to display the editor contents. --> <div id="editorcontents"> </div> </div> <div id="footer"> <hr> <p> CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a> </p> <p id="copy"> Copyright &copy; 2003-2014, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved. </p> </div> </body> </html>
09-movie
trunk/shared/plugin/ckeditor/samples/ajax.html
HTML
gpl3
2,508
<!DOCTYPE html> <!-- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license --> <html> <head> <meta charset="utf-8"> <title>Replace DIV &mdash; CKEditor Sample</title> <script src="../ckeditor.js"></script> <link href="sample.css" rel="stylesheet"> <style> div.editable { border: solid 2px transparent; padding-left: 15px; padding-right: 15px; } div.editable:hover { border-color: black; } </style> <script> // Uncomment the following code to test the "Timeout Loading Method". // CKEDITOR.loadFullCoreTimeout = 5; window.onload = function() { // Listen to the double click event. if ( window.addEventListener ) document.body.addEventListener( 'dblclick', onDoubleClick, false ); else if ( window.attachEvent ) document.body.attachEvent( 'ondblclick', onDoubleClick ); }; function onDoubleClick( ev ) { // Get the element which fired the event. This is not necessarily the // element to which the event has been attached. var element = ev.target || ev.srcElement; // Find out the div that holds this element. var name; do { element = element.parentNode; } while ( element && ( name = element.nodeName.toLowerCase() ) && ( name != 'div' || element.className.indexOf( 'editable' ) == -1 ) && name != 'body' ); if ( name == 'div' && element.className.indexOf( 'editable' ) != -1 ) replaceDiv( element ); } var editor; function replaceDiv( div ) { if ( editor ) editor.destroy(); editor = CKEDITOR.replace( div ); } </script> </head> <body> <h1 class="samples"> <a href="index.html">CKEditor Samples</a> &raquo; Replace DIV with CKEditor on the Fly </h1> <div class="description"> <p> This sample shows how to automatically replace <code>&lt;div&gt;</code> elements with a CKEditor instance on the fly, following user's doubleclick. The content that was previously placed inside the <code>&lt;div&gt;</code> element will now be moved into CKEditor editing area. </p> <p> For details on how to create this setup check the source code of this sample page. </p> </div> <p> Double-click any of the following <code>&lt;div&gt;</code> elements to transform them into editor instances. </p> <div class="editable"> <h3> Part 1 </h3> <p> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras et ipsum quis mi semper accumsan. Integer pretium dui id massa. Suspendisse in nisl sit amet urna rutrum imperdiet. Nulla eu tellus. Donec ante nisi, ullamcorper quis, fringilla nec, sagittis eleifend, pede. Nulla commodo interdum massa. Donec id metus. Fusce eu ipsum. Suspendisse auctor. Phasellus fermentum porttitor risus. </p> </div> <div class="editable"> <h3> Part 2 </h3> <p> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras et ipsum quis mi semper accumsan. Integer pretium dui id massa. Suspendisse in nisl sit amet urna rutrum imperdiet. Nulla eu tellus. Donec ante nisi, ullamcorper quis, fringilla nec, sagittis eleifend, pede. Nulla commodo interdum massa. Donec id metus. Fusce eu ipsum. Suspendisse auctor. Phasellus fermentum porttitor risus. </p> <p> Donec velit. Mauris massa. Vestibulum non nulla. Nam suscipit arcu nec elit. Phasellus sollicitudin iaculis ante. Ut non mauris et sapien tincidunt adipiscing. Vestibulum vitae leo. Suspendisse nec mi tristique nulla laoreet vulputate. </p> </div> <div class="editable"> <h3> Part 3 </h3> <p> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras et ipsum quis mi semper accumsan. Integer pretium dui id massa. Suspendisse in nisl sit amet urna rutrum imperdiet. Nulla eu tellus. Donec ante nisi, ullamcorper quis, fringilla nec, sagittis eleifend, pede. Nulla commodo interdum massa. Donec id metus. Fusce eu ipsum. Suspendisse auctor. Phasellus fermentum porttitor risus. </p> </div> <div id="footer"> <hr> <p> CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a> </p> <p id="copy"> Copyright &copy; 2003-2014, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved. </p> </div> </body> </html>
09-movie
trunk/shared/plugin/ckeditor/samples/divreplace.html
HTML
gpl3
4,493
<!DOCTYPE html> <!-- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license --> <html> <head> <meta charset="utf-8"> <title>Data Filtering &mdash; CKEditor Sample</title> <script src="../ckeditor.js"></script> <link rel="stylesheet" href="sample.css"> <script> // Remove advanced tabs for all editors. CKEDITOR.config.removeDialogTabs = 'image:advanced;link:advanced;flash:advanced;creatediv:advanced;editdiv:advanced'; </script> </head> <body> <h1 class="samples"> <a href="index.html">CKEditor Samples</a> &raquo; Data Filtering and Features Activation </h1> <div class="description"> <p> This sample page demonstrates the idea of Advanced Content Filter (<abbr title="Advanced Content Filter">ACF</abbr>), a sophisticated tool that takes control over what kind of data is accepted by the editor and what kind of output is produced. </p> <h2>When and what is being filtered?</h2> <p> <abbr title="Advanced Content Filter">ACF</abbr> controls <strong>every single source of data</strong> that comes to the editor. It process both HTML that is inserted manually (i.e. pasted by the user) and programmatically like: </p> <pre class="samples"> editor.setData( '&lt;p&gt;Hello world!&lt;/p&gt;' ); </pre> <p> <abbr title="Advanced Content Filter">ACF</abbr> discards invalid, useless HTML tags and attributes so the editor remains "clean" during runtime. <abbr title="Advanced Content Filter">ACF</abbr> behaviour can be configured and adjusted for a particular case to prevent the output HTML (i.e. in CMS systems) from being polluted. This kind of filtering is a first, client-side line of defense against "<a href="http://en.wikipedia.org/wiki/Tag_soup">tag soups</a>", the tool that precisely restricts which tags, attributes and styles are allowed (desired). When properly configured, <abbr title="Advanced Content Filter">ACF</abbr> is an easy and fast way to produce a high-quality, intentionally filtered HTML. </p> <h3>How to configure or disable ACF?</h3> <p> Advanced Content Filter is enabled by default, working in "automatic mode", yet it provides a set of easy rules that allow adjusting filtering rules and disabling the entire feature when necessary. The config property responsible for this feature is <code><a class="samples" href="http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-allowedContent">config.allowedContent</a></code>. </p> <p> By "automatic mode" is meant that loaded plugins decide which kind of content is enabled and which is not. For example, if the link plugin is loaded it implies that <code>&lt;a&gt;</code> tag is automatically allowed. Each plugin is given a set of predefined <abbr title="Advanced Content Filter">ACF</abbr> rules that control the editor until <code><a class="samples" href="http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-allowedContent"> config.allowedContent</a></code> is defined manually. </p> <p> Let's assume our intention is to restrict the editor to accept (produce) <strong>paragraphs only: no attributes, no styles, no other tags</strong>. With <abbr title="Advanced Content Filter">ACF</abbr> this is very simple. Basically set <code><a class="samples" href="http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-allowedContent"> config.allowedContent</a></code> to <code>'p'</code>: </p> <pre class="samples"> var editor = CKEDITOR.replace( <em>textarea_id</em>, { <strong>allowedContent: 'p'</strong> } ); </pre> <p> Now try to play with allowed content: </p> <pre class="samples"> // Trying to insert disallowed tag and attribute. editor.setData( '&lt;p <strong>style="color: red"</strong>&gt;Hello <strong>&lt;em&gt;world&lt;/em&gt;</strong>!&lt;/p&gt;' ); alert( editor.getData() ); // Filtered data is returned. "&lt;p&gt;Hello world!&lt;/p&gt;" </pre> <p> What happened? Since <code>config.allowedContent: 'p'</code> is set the editor assumes that only plain <code>&lt;p&gt;</code> are accepted. Nothing more. This is why <code>style</code> attribute and <code>&lt;em&gt;</code> tag are gone. The same filtering would happen if we pasted disallowed HTML into this editor. </p> <p> This is just a small sample of what <abbr title="Advanced Content Filter">ACF</abbr> can do. To know more, please refer to the sample section below and <a href="http://docs.ckeditor.com/#!/guide/dev_advanced_content_filter">the official Advanced Content Filter guide</a>. </p> <p> You may, of course, want CKEditor to avoid filtering of any kind. To get rid of <abbr title="Advanced Content Filter">ACF</abbr>, basically set <code><a class="samples" href="http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-allowedContent"> config.allowedContent</a></code> to <code>true</code> like this: </p> <pre class="samples"> CKEDITOR.replace( <em>textarea_id</em>, { <strong>allowedContent: true</strong> } ); </pre> <h2>Beyond data flow: Features activation</h2> <p> <abbr title="Advanced Content Filter">ACF</abbr> is far more than <abbr title="Input/Output">I/O</abbr> control: the entire <abbr title="User Interface">UI</abbr> of the editor is adjusted to what filters restrict. For example: if <code>&lt;a&gt;</code> tag is <strong>disallowed</strong> by <abbr title="Advanced Content Filter">ACF</abbr>, then accordingly <code>link</code> command, toolbar button and link dialog are also disabled. Editor is smart: it knows which features must be removed from the interface to match filtering rules. </p> <p> CKEditor can be far more specific. If <code>&lt;a&gt;</code> tag is <strong>allowed</strong> by filtering rules to be used but it is restricted to have only one attribute (<code>href</code>) <code>config.allowedContent = 'a[!href]'</code>, then "Target" tab of the link dialog is automatically disabled as <code>target</code> attribute isn't included in <abbr title="Advanced Content Filter">ACF</abbr> rules for <code>&lt;a&gt;</code>. This behaviour applies to dialog fields, context menus and toolbar buttons. </p> <h2>Sample configurations</h2> <p> There are several editor instances below that present different <abbr title="Advanced Content Filter">ACF</abbr> setups. <strong>All of them, except the last inline instance, share the same HTML content</strong> to visualize how different filtering rules affect the same input data. </p> </div> <div> <label for="editor1"> Editor 1: </label> <div class="description"> <p> This editor is using default configuration ("automatic mode"). It means that <code><a class="samples" href="http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-allowedContent"> config.allowedContent</a></code> is defined by loaded plugins. Each plugin extends filtering rules to make it's own associated content available for the user. </p> </div> <textarea cols="80" id="editor1" name="editor1" rows="10"> &lt;h1&gt;&lt;img alt=&quot;Saturn V carrying Apollo 11&quot; class=&quot;right&quot; src=&quot;assets/sample.jpg&quot;/&gt; Apollo 11&lt;/h1&gt; &lt;p&gt;&lt;b&gt;Apollo 11&lt;/b&gt; was the spaceflight that landed the first humans, Americans &lt;a href=&quot;http://en.wikipedia.org/wiki/Neil_Armstrong&quot; title=&quot;Neil Armstrong&quot;&gt;Neil Armstrong&lt;/a&gt; and &lt;a href=&quot;http://en.wikipedia.org/wiki/Buzz_Aldrin&quot; title=&quot;Buzz Aldrin&quot;&gt;Buzz Aldrin&lt;/a&gt;, on the Moon on July 20, 1969, at 20:18 UTC. Armstrong became the first to step onto the lunar surface 6 hours later on July 21 at 02:56 UTC.&lt;/p&gt; &lt;p&gt;Armstrong spent about &lt;s&gt;three and a half&lt;/s&gt; two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5&amp;nbsp;kg) of lunar material for return to Earth. A third member of the mission, &lt;a href=&quot;http://en.wikipedia.org/wiki/Michael_Collins_(astronaut)&quot; title=&quot;Michael Collins (astronaut)&quot;&gt;Michael Collins&lt;/a&gt;, piloted the &lt;a href=&quot;http://en.wikipedia.org/wiki/Apollo_Command/Service_Module&quot; title=&quot;Apollo Command/Service Module&quot;&gt;command&lt;/a&gt; spacecraft alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth.&lt;/p&gt; &lt;h2&gt;Broadcasting and &lt;em&gt;quotes&lt;/em&gt; &lt;a id=&quot;quotes&quot; name=&quot;quotes&quot;&gt;&lt;/a&gt;&lt;/h2&gt; &lt;p&gt;Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;One small step for [a] man, one giant leap for mankind.&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;Apollo 11 effectively ended the &lt;a href=&quot;http://en.wikipedia.org/wiki/Space_Race&quot; title=&quot;Space Race&quot;&gt;Space Race&lt;/a&gt; and fulfilled a national goal proposed in 1961 by the late U.S. President &lt;a href=&quot;http://en.wikipedia.org/wiki/John_F._Kennedy&quot; title=&quot;John F. Kennedy&quot;&gt;John F. Kennedy&lt;/a&gt; in a speech before the United States Congress:&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;[...] before this decade is out, of landing a man on the Moon and returning him safely to the Earth.&lt;/p&gt;&lt;/blockquote&gt; &lt;h2&gt;Technical details &lt;a id=&quot;tech-details&quot; name=&quot;tech-details&quot;&gt;&lt;/a&gt;&lt;/h2&gt; &lt;table align=&quot;right&quot; border=&quot;1&quot; bordercolor=&quot;#ccc&quot; cellpadding=&quot;5&quot; cellspacing=&quot;0&quot; style=&quot;border-collapse:collapse;margin:10px 0 10px 15px;&quot;&gt; &lt;caption&gt;&lt;strong&gt;Mission crew&lt;/strong&gt;&lt;/caption&gt; &lt;thead&gt; &lt;tr&gt; &lt;th scope=&quot;col&quot;&gt;Position&lt;/th&gt; &lt;th scope=&quot;col&quot;&gt;Astronaut&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;Commander&lt;/td&gt; &lt;td&gt;Neil A. Armstrong&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Command Module Pilot&lt;/td&gt; &lt;td&gt;Michael Collins&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Lunar Module Pilot&lt;/td&gt; &lt;td&gt;Edwin &amp;quot;Buzz&amp;quot; E. Aldrin, Jr.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;p&gt;Launched by a &lt;strong&gt;Saturn V&lt;/strong&gt; rocket from &lt;a href=&quot;http://en.wikipedia.org/wiki/Kennedy_Space_Center&quot; title=&quot;Kennedy Space Center&quot;&gt;Kennedy Space Center&lt;/a&gt; in Merritt Island, Florida on July 16, Apollo 11 was the fifth manned mission of &lt;a href=&quot;http://en.wikipedia.org/wiki/NASA&quot; title=&quot;NASA&quot;&gt;NASA&lt;/a&gt;&amp;#39;s Apollo program. The Apollo spacecraft had three parts:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;&lt;strong&gt;Command Module&lt;/strong&gt; with a cabin for the three astronauts which was the only part which landed back on Earth&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Service Module&lt;/strong&gt; which supported the Command Module with propulsion, electrical power, oxygen and water&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Lunar Module&lt;/strong&gt; for landing on the Moon.&lt;/li&gt; &lt;/ol&gt; &lt;p&gt;After being sent to the Moon by the Saturn V&amp;#39;s upper stage, the astronauts separated the spacecraft from it and travelled for three days until they entered into lunar orbit. Armstrong and Aldrin then moved into the Lunar Module and landed in the &lt;a href=&quot;http://en.wikipedia.org/wiki/Mare_Tranquillitatis&quot; title=&quot;Mare Tranquillitatis&quot;&gt;Sea of Tranquility&lt;/a&gt;. They stayed a total of about 21 and a half hours on the lunar surface. After lifting off in the upper part of the Lunar Module and rejoining Collins in the Command Module, they returned to Earth and landed in the &lt;a href=&quot;http://en.wikipedia.org/wiki/Pacific_Ocean&quot; title=&quot;Pacific Ocean&quot;&gt;Pacific Ocean&lt;/a&gt; on July 24.&lt;/p&gt; &lt;hr/&gt; &lt;p style=&quot;text-align: right;&quot;&gt;&lt;small&gt;Source: &lt;a href=&quot;http://en.wikipedia.org/wiki/Apollo_11&quot;&gt;Wikipedia.org&lt;/a&gt;&lt;/small&gt;&lt;/p&gt; </textarea> <script> CKEDITOR.replace( 'editor1' ); </script> </div> <br> <div> <label for="editor2"> Editor 2: </label> <div class="description"> <p> This editor is using a custom configuration for <abbr title="Advanced Content Filter">ACF</abbr>: </p> <pre class="samples"> CKEDITOR.replace( 'editor2', { allowedContent: 'h1 h2 h3 p blockquote strong em;' + 'a[!href];' + 'img(left,right)[!src,alt,width,height];' + 'table tr th td caption;' + 'span{!font-family};' +' 'span{!color};' + 'span(!marker);' + 'del ins' } ); </pre> <p> The following rules may require additional explanation: </p> <ul> <li> <code>h1 h2 h3 p blockquote strong em</code> - These tags are accepted by the editor. Any tag attributes will be discarded. </li> <li> <code>a[!href]</code> - <code>href</code> attribute is obligatory for <code>&lt;a&gt;</code> tag. Tags without this attribute are disarded. No other attribute will be accepted. </li> <li> <code>img(left,right)[!src,alt,width,height]</code> - <code>src</code> attribute is obligatory for <code>&lt;img&gt;</code> tag. <code>alt</code>, <code>width</code>, <code>height</code> and <code>class</code> attributes are accepted but <code>class</code> must be either <code>class="left"</code> or <code>class="right"</code> </li> <li> <code>table tr th td caption</code> - These tags are accepted by the editor. Any tag attributes will be discarded. </li> <li> <code>span{!font-family}</code>, <code>span{!color}</code>, <code>span(!marker)</code> - <code>&lt;span&gt;</code> tags will be accepted if either <code>font-family</code> or <code>color</code> style is set or <code>class="marker"</code> is present. </li> <li> <code>del ins</code> - These tags are accepted by the editor. Any tag attributes will be discarded. </li> </ul> <p> Please note that <strong><abbr title="User Interface">UI</abbr> of the editor is different</strong>. It's a response to what happened to the filters. Since <code>text-align</code> isn't allowed, the align toolbar is gone. The same thing happened to subscript/superscript, strike, underline (<code>&lt;u&gt;</code>, <code>&lt;sub&gt;</code>, <code>&lt;sup&gt;</code> are disallowed by <code><a class="samples" href="http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-allowedContent"> config.allowedContent</a></code>) and many other buttons. </p> </div> <textarea cols="80" id="editor2" name="editor2" rows="10"> &lt;h1&gt;&lt;img alt=&quot;Saturn V carrying Apollo 11&quot; class=&quot;right&quot; src=&quot;assets/sample.jpg&quot;/&gt; Apollo 11&lt;/h1&gt; &lt;p&gt;&lt;b&gt;Apollo 11&lt;/b&gt; was the spaceflight that landed the first humans, Americans &lt;a href=&quot;http://en.wikipedia.org/wiki/Neil_Armstrong&quot; title=&quot;Neil Armstrong&quot;&gt;Neil Armstrong&lt;/a&gt; and &lt;a href=&quot;http://en.wikipedia.org/wiki/Buzz_Aldrin&quot; title=&quot;Buzz Aldrin&quot;&gt;Buzz Aldrin&lt;/a&gt;, on the Moon on July 20, 1969, at 20:18 UTC. Armstrong became the first to step onto the lunar surface 6 hours later on July 21 at 02:56 UTC.&lt;/p&gt; &lt;p&gt;Armstrong spent about &lt;s&gt;three and a half&lt;/s&gt; two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5&amp;nbsp;kg) of lunar material for return to Earth. A third member of the mission, &lt;a href=&quot;http://en.wikipedia.org/wiki/Michael_Collins_(astronaut)&quot; title=&quot;Michael Collins (astronaut)&quot;&gt;Michael Collins&lt;/a&gt;, piloted the &lt;a href=&quot;http://en.wikipedia.org/wiki/Apollo_Command/Service_Module&quot; title=&quot;Apollo Command/Service Module&quot;&gt;command&lt;/a&gt; spacecraft alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth.&lt;/p&gt; &lt;h2&gt;Broadcasting and &lt;em&gt;quotes&lt;/em&gt; &lt;a id=&quot;quotes&quot; name=&quot;quotes&quot;&gt;&lt;/a&gt;&lt;/h2&gt; &lt;p&gt;Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;One small step for [a] man, one giant leap for mankind.&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;Apollo 11 effectively ended the &lt;a href=&quot;http://en.wikipedia.org/wiki/Space_Race&quot; title=&quot;Space Race&quot;&gt;Space Race&lt;/a&gt; and fulfilled a national goal proposed in 1961 by the late U.S. President &lt;a href=&quot;http://en.wikipedia.org/wiki/John_F._Kennedy&quot; title=&quot;John F. Kennedy&quot;&gt;John F. Kennedy&lt;/a&gt; in a speech before the United States Congress:&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;[...] before this decade is out, of landing a man on the Moon and returning him safely to the Earth.&lt;/p&gt;&lt;/blockquote&gt; &lt;h2&gt;Technical details &lt;a id=&quot;tech-details&quot; name=&quot;tech-details&quot;&gt;&lt;/a&gt;&lt;/h2&gt; &lt;table align=&quot;right&quot; border=&quot;1&quot; bordercolor=&quot;#ccc&quot; cellpadding=&quot;5&quot; cellspacing=&quot;0&quot; style=&quot;border-collapse:collapse;margin:10px 0 10px 15px;&quot;&gt; &lt;caption&gt;&lt;strong&gt;Mission crew&lt;/strong&gt;&lt;/caption&gt; &lt;thead&gt; &lt;tr&gt; &lt;th scope=&quot;col&quot;&gt;Position&lt;/th&gt; &lt;th scope=&quot;col&quot;&gt;Astronaut&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;Commander&lt;/td&gt; &lt;td&gt;Neil A. Armstrong&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Command Module Pilot&lt;/td&gt; &lt;td&gt;Michael Collins&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Lunar Module Pilot&lt;/td&gt; &lt;td&gt;Edwin &amp;quot;Buzz&amp;quot; E. Aldrin, Jr.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;p&gt;Launched by a &lt;strong&gt;Saturn V&lt;/strong&gt; rocket from &lt;a href=&quot;http://en.wikipedia.org/wiki/Kennedy_Space_Center&quot; title=&quot;Kennedy Space Center&quot;&gt;Kennedy Space Center&lt;/a&gt; in Merritt Island, Florida on July 16, Apollo 11 was the fifth manned mission of &lt;a href=&quot;http://en.wikipedia.org/wiki/NASA&quot; title=&quot;NASA&quot;&gt;NASA&lt;/a&gt;&amp;#39;s Apollo program. The Apollo spacecraft had three parts:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;&lt;strong&gt;Command Module&lt;/strong&gt; with a cabin for the three astronauts which was the only part which landed back on Earth&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Service Module&lt;/strong&gt; which supported the Command Module with propulsion, electrical power, oxygen and water&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Lunar Module&lt;/strong&gt; for landing on the Moon.&lt;/li&gt; &lt;/ol&gt; &lt;p&gt;After being sent to the Moon by the Saturn V&amp;#39;s upper stage, the astronauts separated the spacecraft from it and travelled for three days until they entered into lunar orbit. Armstrong and Aldrin then moved into the Lunar Module and landed in the &lt;a href=&quot;http://en.wikipedia.org/wiki/Mare_Tranquillitatis&quot; title=&quot;Mare Tranquillitatis&quot;&gt;Sea of Tranquility&lt;/a&gt;. They stayed a total of about 21 and a half hours on the lunar surface. After lifting off in the upper part of the Lunar Module and rejoining Collins in the Command Module, they returned to Earth and landed in the &lt;a href=&quot;http://en.wikipedia.org/wiki/Pacific_Ocean&quot; title=&quot;Pacific Ocean&quot;&gt;Pacific Ocean&lt;/a&gt; on July 24.&lt;/p&gt; &lt;hr/&gt; &lt;p style=&quot;text-align: right;&quot;&gt;&lt;small&gt;Source: &lt;a href=&quot;http://en.wikipedia.org/wiki/Apollo_11&quot;&gt;Wikipedia.org&lt;/a&gt;&lt;/small&gt;&lt;/p&gt; </textarea> <script> CKEDITOR.replace( 'editor2', { allowedContent: 'h1 h2 h3 p blockquote strong em;' + 'a[!href];' + 'img(left,right)[!src,alt,width,height];' + 'table tr th td caption;' + 'span{!font-family};' + 'span{!color};' + 'span(!marker);' + 'del ins' } ); </script> </div> <br> <div> <label for="editor3"> Editor 3: </label> <div class="description"> <p> This editor is using a custom configuration for <abbr title="Advanced Content Filter">ACF</abbr>. Note that filters can be configured as an object literal as an alternative to a string-based definition. </p> <pre class="samples"> CKEDITOR.replace( 'editor3', { allowedContent: { 'b i ul ol big small': true, 'h1 h2 h3 p blockquote li': { styles: 'text-align' }, a: { attributes: '!href,target' }, img: { attributes: '!src,alt', styles: 'width,height', classes: 'left,right' } } } ); </pre> </div> <textarea cols="80" id="editor3" name="editor3" rows="10"> &lt;h1&gt;&lt;img alt=&quot;Saturn V carrying Apollo 11&quot; class=&quot;right&quot; src=&quot;assets/sample.jpg&quot;/&gt; Apollo 11&lt;/h1&gt; &lt;p&gt;&lt;b&gt;Apollo 11&lt;/b&gt; was the spaceflight that landed the first humans, Americans &lt;a href=&quot;http://en.wikipedia.org/wiki/Neil_Armstrong&quot; title=&quot;Neil Armstrong&quot;&gt;Neil Armstrong&lt;/a&gt; and &lt;a href=&quot;http://en.wikipedia.org/wiki/Buzz_Aldrin&quot; title=&quot;Buzz Aldrin&quot;&gt;Buzz Aldrin&lt;/a&gt;, on the Moon on July 20, 1969, at 20:18 UTC. Armstrong became the first to step onto the lunar surface 6 hours later on July 21 at 02:56 UTC.&lt;/p&gt; &lt;p&gt;Armstrong spent about &lt;s&gt;three and a half&lt;/s&gt; two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5&amp;nbsp;kg) of lunar material for return to Earth. A third member of the mission, &lt;a href=&quot;http://en.wikipedia.org/wiki/Michael_Collins_(astronaut)&quot; title=&quot;Michael Collins (astronaut)&quot;&gt;Michael Collins&lt;/a&gt;, piloted the &lt;a href=&quot;http://en.wikipedia.org/wiki/Apollo_Command/Service_Module&quot; title=&quot;Apollo Command/Service Module&quot;&gt;command&lt;/a&gt; spacecraft alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth.&lt;/p&gt; &lt;h2&gt;Broadcasting and &lt;em&gt;quotes&lt;/em&gt; &lt;a id=&quot;quotes&quot; name=&quot;quotes&quot;&gt;&lt;/a&gt;&lt;/h2&gt; &lt;p&gt;Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;One small step for [a] man, one giant leap for mankind.&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;Apollo 11 effectively ended the &lt;a href=&quot;http://en.wikipedia.org/wiki/Space_Race&quot; title=&quot;Space Race&quot;&gt;Space Race&lt;/a&gt; and fulfilled a national goal proposed in 1961 by the late U.S. President &lt;a href=&quot;http://en.wikipedia.org/wiki/John_F._Kennedy&quot; title=&quot;John F. Kennedy&quot;&gt;John F. Kennedy&lt;/a&gt; in a speech before the United States Congress:&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;[...] before this decade is out, of landing a man on the Moon and returning him safely to the Earth.&lt;/p&gt;&lt;/blockquote&gt; &lt;h2&gt;Technical details &lt;a id=&quot;tech-details&quot; name=&quot;tech-details&quot;&gt;&lt;/a&gt;&lt;/h2&gt; &lt;table align=&quot;right&quot; border=&quot;1&quot; bordercolor=&quot;#ccc&quot; cellpadding=&quot;5&quot; cellspacing=&quot;0&quot; style=&quot;border-collapse:collapse;margin:10px 0 10px 15px;&quot;&gt; &lt;caption&gt;&lt;strong&gt;Mission crew&lt;/strong&gt;&lt;/caption&gt; &lt;thead&gt; &lt;tr&gt; &lt;th scope=&quot;col&quot;&gt;Position&lt;/th&gt; &lt;th scope=&quot;col&quot;&gt;Astronaut&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;Commander&lt;/td&gt; &lt;td&gt;Neil A. Armstrong&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Command Module Pilot&lt;/td&gt; &lt;td&gt;Michael Collins&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Lunar Module Pilot&lt;/td&gt; &lt;td&gt;Edwin &amp;quot;Buzz&amp;quot; E. Aldrin, Jr.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;p&gt;Launched by a &lt;strong&gt;Saturn V&lt;/strong&gt; rocket from &lt;a href=&quot;http://en.wikipedia.org/wiki/Kennedy_Space_Center&quot; title=&quot;Kennedy Space Center&quot;&gt;Kennedy Space Center&lt;/a&gt; in Merritt Island, Florida on July 16, Apollo 11 was the fifth manned mission of &lt;a href=&quot;http://en.wikipedia.org/wiki/NASA&quot; title=&quot;NASA&quot;&gt;NASA&lt;/a&gt;&amp;#39;s Apollo program. The Apollo spacecraft had three parts:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;&lt;strong&gt;Command Module&lt;/strong&gt; with a cabin for the three astronauts which was the only part which landed back on Earth&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Service Module&lt;/strong&gt; which supported the Command Module with propulsion, electrical power, oxygen and water&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Lunar Module&lt;/strong&gt; for landing on the Moon.&lt;/li&gt; &lt;/ol&gt; &lt;p&gt;After being sent to the Moon by the Saturn V&amp;#39;s upper stage, the astronauts separated the spacecraft from it and travelled for three days until they entered into lunar orbit. Armstrong and Aldrin then moved into the Lunar Module and landed in the &lt;a href=&quot;http://en.wikipedia.org/wiki/Mare_Tranquillitatis&quot; title=&quot;Mare Tranquillitatis&quot;&gt;Sea of Tranquility&lt;/a&gt;. They stayed a total of about 21 and a half hours on the lunar surface. After lifting off in the upper part of the Lunar Module and rejoining Collins in the Command Module, they returned to Earth and landed in the &lt;a href=&quot;http://en.wikipedia.org/wiki/Pacific_Ocean&quot; title=&quot;Pacific Ocean&quot;&gt;Pacific Ocean&lt;/a&gt; on July 24.&lt;/p&gt; &lt;hr/&gt; &lt;p style=&quot;text-align: right;&quot;&gt;&lt;small&gt;Source: &lt;a href=&quot;http://en.wikipedia.org/wiki/Apollo_11&quot;&gt;Wikipedia.org&lt;/a&gt;&lt;/small&gt;&lt;/p&gt; </textarea> <script> CKEDITOR.replace( 'editor3', { allowedContent: { 'b i ul ol big small': true, 'h1 h2 h3 p blockquote li': { styles: 'text-align' }, a: { attributes: '!href,target' }, img: { attributes: '!src,alt', styles: 'width,height', classes: 'left,right' } } } ); </script> </div> <br> <div> <label for="editor4"> Editor 4: </label> <div class="description"> <p> This editor is using a custom set of plugins and buttons. </p> <pre class="samples"> CKEDITOR.replace( 'editor4', { removePlugins: 'bidi,font,forms,flash,horizontalrule,iframe,justify,table,tabletools,smiley', removeButtons: 'Anchor,Underline,Strike,Subscript,Superscript,Image', format_tags: 'p;h1;h2;h3;pre;address' } ); </pre> <p> As you can see, removing plugins and buttons implies filtering. Several tags are not allowed in the editor because there's no plugin/button that is responsible for creating and editing this kind of content (for example: the image is missing because of <code>removeButtons: 'Image'</code>). The conclusion is that <abbr title="Advanced Content Filter">ACF</abbr> works "backwards" as well: <strong>modifying <abbr title="User Interface">UI</abbr> elements is changing allowed content rules</strong>. </p> </div> <textarea cols="80" id="editor4" name="editor4" rows="10"> &lt;h1&gt;&lt;img alt=&quot;Saturn V carrying Apollo 11&quot; class=&quot;right&quot; src=&quot;assets/sample.jpg&quot;/&gt; Apollo 11&lt;/h1&gt; &lt;p&gt;&lt;b&gt;Apollo 11&lt;/b&gt; was the spaceflight that landed the first humans, Americans &lt;a href=&quot;http://en.wikipedia.org/wiki/Neil_Armstrong&quot; title=&quot;Neil Armstrong&quot;&gt;Neil Armstrong&lt;/a&gt; and &lt;a href=&quot;http://en.wikipedia.org/wiki/Buzz_Aldrin&quot; title=&quot;Buzz Aldrin&quot;&gt;Buzz Aldrin&lt;/a&gt;, on the Moon on July 20, 1969, at 20:18 UTC. Armstrong became the first to step onto the lunar surface 6 hours later on July 21 at 02:56 UTC.&lt;/p&gt; &lt;p&gt;Armstrong spent about &lt;s&gt;three and a half&lt;/s&gt; two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5&amp;nbsp;kg) of lunar material for return to Earth. A third member of the mission, &lt;a href=&quot;http://en.wikipedia.org/wiki/Michael_Collins_(astronaut)&quot; title=&quot;Michael Collins (astronaut)&quot;&gt;Michael Collins&lt;/a&gt;, piloted the &lt;a href=&quot;http://en.wikipedia.org/wiki/Apollo_Command/Service_Module&quot; title=&quot;Apollo Command/Service Module&quot;&gt;command&lt;/a&gt; spacecraft alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth.&lt;/p&gt; &lt;h2&gt;Broadcasting and &lt;em&gt;quotes&lt;/em&gt; &lt;a id=&quot;quotes&quot; name=&quot;quotes&quot;&gt;&lt;/a&gt;&lt;/h2&gt; &lt;p&gt;Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;One small step for [a] man, one giant leap for mankind.&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;Apollo 11 effectively ended the &lt;a href=&quot;http://en.wikipedia.org/wiki/Space_Race&quot; title=&quot;Space Race&quot;&gt;Space Race&lt;/a&gt; and fulfilled a national goal proposed in 1961 by the late U.S. President &lt;a href=&quot;http://en.wikipedia.org/wiki/John_F._Kennedy&quot; title=&quot;John F. Kennedy&quot;&gt;John F. Kennedy&lt;/a&gt; in a speech before the United States Congress:&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;[...] before this decade is out, of landing a man on the Moon and returning him safely to the Earth.&lt;/p&gt;&lt;/blockquote&gt; &lt;h2&gt;Technical details &lt;a id=&quot;tech-details&quot; name=&quot;tech-details&quot;&gt;&lt;/a&gt;&lt;/h2&gt; &lt;table align=&quot;right&quot; border=&quot;1&quot; bordercolor=&quot;#ccc&quot; cellpadding=&quot;5&quot; cellspacing=&quot;0&quot; style=&quot;border-collapse:collapse;margin:10px 0 10px 15px;&quot;&gt; &lt;caption&gt;&lt;strong&gt;Mission crew&lt;/strong&gt;&lt;/caption&gt; &lt;thead&gt; &lt;tr&gt; &lt;th scope=&quot;col&quot;&gt;Position&lt;/th&gt; &lt;th scope=&quot;col&quot;&gt;Astronaut&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;Commander&lt;/td&gt; &lt;td&gt;Neil A. Armstrong&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Command Module Pilot&lt;/td&gt; &lt;td&gt;Michael Collins&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Lunar Module Pilot&lt;/td&gt; &lt;td&gt;Edwin &amp;quot;Buzz&amp;quot; E. Aldrin, Jr.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;p&gt;Launched by a &lt;strong&gt;Saturn V&lt;/strong&gt; rocket from &lt;a href=&quot;http://en.wikipedia.org/wiki/Kennedy_Space_Center&quot; title=&quot;Kennedy Space Center&quot;&gt;Kennedy Space Center&lt;/a&gt; in Merritt Island, Florida on July 16, Apollo 11 was the fifth manned mission of &lt;a href=&quot;http://en.wikipedia.org/wiki/NASA&quot; title=&quot;NASA&quot;&gt;NASA&lt;/a&gt;&amp;#39;s Apollo program. The Apollo spacecraft had three parts:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;&lt;strong&gt;Command Module&lt;/strong&gt; with a cabin for the three astronauts which was the only part which landed back on Earth&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Service Module&lt;/strong&gt; which supported the Command Module with propulsion, electrical power, oxygen and water&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Lunar Module&lt;/strong&gt; for landing on the Moon.&lt;/li&gt; &lt;/ol&gt; &lt;p&gt;After being sent to the Moon by the Saturn V&amp;#39;s upper stage, the astronauts separated the spacecraft from it and travelled for three days until they entered into lunar orbit. Armstrong and Aldrin then moved into the Lunar Module and landed in the &lt;a href=&quot;http://en.wikipedia.org/wiki/Mare_Tranquillitatis&quot; title=&quot;Mare Tranquillitatis&quot;&gt;Sea of Tranquility&lt;/a&gt;. They stayed a total of about 21 and a half hours on the lunar surface. After lifting off in the upper part of the Lunar Module and rejoining Collins in the Command Module, they returned to Earth and landed in the &lt;a href=&quot;http://en.wikipedia.org/wiki/Pacific_Ocean&quot; title=&quot;Pacific Ocean&quot;&gt;Pacific Ocean&lt;/a&gt; on July 24.&lt;/p&gt; &lt;hr/&gt; &lt;p style=&quot;text-align: right;&quot;&gt;&lt;small&gt;Source: &lt;a href=&quot;http://en.wikipedia.org/wiki/Apollo_11&quot;&gt;Wikipedia.org&lt;/a&gt;&lt;/small&gt;&lt;/p&gt; </textarea> <script> CKEDITOR.replace( 'editor4', { removePlugins: 'bidi,div,font,forms,flash,horizontalrule,iframe,justify,table,tabletools,smiley', removeButtons: 'Anchor,Underline,Strike,Subscript,Superscript,Image', format_tags: 'p;h1;h2;h3;pre;address' } ); </script> </div> <br> <div> <label for="editor5"> Editor 5: </label> <div class="description"> <p> This editor is built on editable <code>&lt;h1&gt;</code> element. <abbr title="Advanced Content Filter">ACF</abbr> takes care of what can be included in <code>&lt;h1&gt;</code>. Note that there are no block styles in Styles combo. Also why lists, indentation, blockquote, div, form and other buttons are missing. </p> <p> <abbr title="Advanced Content Filter">ACF</abbr> makes sure that no disallowed tags will come to <code>&lt;h1&gt;</code> so the final markup is valid. If the user tried to paste some invalid HTML into this editor (let's say a list), it would be automatically converted into plain text. </p> </div> <h1 id="editor5" contenteditable="true"> <em>Apollo 11</em> was the spaceflight that landed the first humans, Americans <a href="http://en.wikipedia.org/wiki/Neil_Armstrong" title="Neil Armstrong">Neil Armstrong</a> and <a href="http://en.wikipedia.org/wiki/Buzz_Aldrin" title="Buzz Aldrin">Buzz Aldrin</a>, on the Moon on July 20, 1969, at 20:18 UTC. </h1> </div> <div id="footer"> <hr> <p> CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a> </p> <p id="copy"> Copyright &copy; 2003-2014, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved. </p> </div> </body> </html>
09-movie
trunk/shared/plugin/ckeditor/samples/datafiltering.html
HTML
gpl3
34,725
<!DOCTYPE html> <!-- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license --> <html> <head> <meta charset="utf-8"> <title>TAB Key-Based Navigation &mdash; CKEditor Sample</title> <script src="../ckeditor.js"></script> <link href="sample.css" rel="stylesheet"> <style> .cke_focused, .cke_editable.cke_focused { outline: 3px dotted blue !important; *border: 3px dotted blue !important; /* For IE7 */ } </style> <script> CKEDITOR.on( 'instanceReady', function( evt ) { var editor = evt.editor; editor.setData( 'This editor has it\'s tabIndex set to <strong>' + editor.tabIndex + '</strong>' ); // Apply focus class name. editor.on( 'focus', function() { editor.container.addClass( 'cke_focused' ); }); editor.on( 'blur', function() { editor.container.removeClass( 'cke_focused' ); }); // Put startup focus on the first editor in tab order. if ( editor.tabIndex == 1 ) editor.focus(); }); </script> </head> <body> <h1 class="samples"> <a href="index.html">CKEditor Samples</a> &raquo; TAB Key-Based Navigation </h1> <div class="description"> <p> This sample shows how tab key navigation among editor instances is affected by the <code>tabIndex</code> attribute from the original page element. Use TAB key to move between the editors. </p> </div> <p> <textarea class="ckeditor" cols="80" id="editor4" rows="10" tabindex="1"></textarea> </p> <div class="ckeditor" contenteditable="true" id="editor1" tabindex="4"></div> <p> <textarea class="ckeditor" cols="80" id="editor2" rows="10" tabindex="2"></textarea> </p> <p> <textarea class="ckeditor" cols="80" id="editor3" rows="10" tabindex="3"></textarea> </p> <div id="footer"> <hr> <p> CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a> </p> <p id="copy"> Copyright &copy; 2003-2014, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved. </p> </div> </body> </html>
09-movie
trunk/shared/plugin/ckeditor/samples/tabindex.html
HTML
gpl3
2,206
<!DOCTYPE html> <?php /* Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ ?> <html> <head> <meta charset="utf-8"> <title>Sample &mdash; CKEditor</title> <link rel="stylesheet" href="sample.css"> </head> <body> <h1 class="samples"> CKEditor &mdash; Posted Data </h1> <table border="1" cellspacing="0" id="outputSample"> <colgroup><col width="120"></colgroup> <thead> <tr> <th>Field&nbsp;Name</th> <th>Value</th> </tr> </thead> <?php if (!empty($_POST)) { foreach ( $_POST as $key => $value ) { if ( ( !is_string($value) && !is_numeric($value) ) || !is_string($key) ) continue; if ( get_magic_quotes_gpc() ) $value = htmlspecialchars( stripslashes((string)$value) ); else $value = htmlspecialchars( (string)$value ); ?> <tr> <th style="vertical-align: top"><?php echo htmlspecialchars( (string)$key ); ?></th> <td><pre class="samples"><?php echo $value; ?></pre></td> </tr> <?php } } ?> </table> <div id="footer"> <hr> <p> CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a> </p> <p id="copy"> Copyright &copy; 2003-2014, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved. </p> </div> </body> </html>
09-movie
trunk/shared/plugin/ckeditor/samples/assets/posteddata.php
PHP
gpl3
1,443
/** * Required by tests (dom/document.html). */
09-movie
trunk/shared/plugin/ckeditor/samples/assets/sample.css
CSS
gpl3
53
/* * Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license * * Styles used by the XHTML 1.1 sample page (xhtml.html). */ /** * Basic definitions for the editing area. */ body { font-family: Arial, Verdana, sans-serif; font-size: 80%; color: #000000; background-color: #ffffff; padding: 5px; margin: 0px; } /** * Core styles. */ .Bold { font-weight: bold; } .Italic { font-style: italic; } .Underline { text-decoration: underline; } .StrikeThrough { text-decoration: line-through; } .Subscript { vertical-align: sub; font-size: smaller; } .Superscript { vertical-align: super; font-size: smaller; } /** * Font faces. */ .FontComic { font-family: 'Comic Sans MS'; } .FontCourier { font-family: 'Courier New'; } .FontTimes { font-family: 'Times New Roman'; } /** * Font sizes. */ .FontSmaller { font-size: smaller; } .FontLarger { font-size: larger; } .FontSmall { font-size: 8pt; } .FontBig { font-size: 14pt; } .FontDouble { font-size: 200%; } /** * Font colors. */ .FontColor1 { color: #ff9900; } .FontColor2 { color: #0066cc; } .FontColor3 { color: #ff0000; } .FontColor1BG { background-color: #ff9900; } .FontColor2BG { background-color: #0066cc; } .FontColor3BG { background-color: #ff0000; } /** * Indentation. */ .Indent1 { margin-left: 40px; } .Indent2 { margin-left: 80px; } .Indent3 { margin-left: 120px; } /** * Alignment. */ .JustifyLeft { text-align: left; } .JustifyRight { text-align: right; } .JustifyCenter { text-align: center; } .JustifyFull { text-align: justify; } /** * Other. */ code { font-family: courier, monospace; background-color: #eeeeee; padding-left: 1px; padding-right: 1px; border: #c0c0c0 1px solid; } kbd { padding: 0px 1px 0px 1px; border-width: 1px 2px 2px 1px; border-style: solid; } blockquote { color: #808080; }
09-movie
trunk/shared/plugin/ckeditor/samples/assets/outputxhtml/outputxhtml.css
CSS
gpl3
2,143
<!DOCTYPE html> <!-- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license --> <html> <head> <meta charset="utf-8"> <title>Using the CKEditor Read-Only API &mdash; CKEditor Sample</title> <script src="../ckeditor.js"></script> <link rel="stylesheet" href="sample.css"> <script> var editor; // The instanceReady event is fired, when an instance of CKEditor has finished // its initialization. CKEDITOR.on( 'instanceReady', function( ev ) { editor = ev.editor; // Show this "on" button. document.getElementById( 'readOnlyOn' ).style.display = ''; // Event fired when the readOnly property changes. editor.on( 'readOnly', function() { document.getElementById( 'readOnlyOn' ).style.display = this.readOnly ? 'none' : ''; document.getElementById( 'readOnlyOff' ).style.display = this.readOnly ? '' : 'none'; }); }); function toggleReadOnly( isReadOnly ) { // Change the read-only state of the editor. // http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-setReadOnly editor.setReadOnly( isReadOnly ); } </script> </head> <body> <h1 class="samples"> <a href="index.html">CKEditor Samples</a> &raquo; Using the CKEditor Read-Only API </h1> <div class="description"> <p> This sample shows how to use the <code><a class="samples" href="http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-setReadOnly">setReadOnly</a></code> API to put editor into the read-only state that makes it impossible for users to change the editor contents. </p> <p> For details on how to create this setup check the source code of this sample page. </p> </div> <form action="sample_posteddata.php" method="post"> <p> <textarea class="ckeditor" id="editor1" name="editor1" cols="100" rows="10">&lt;p&gt;This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="http://ckeditor.com/"&gt;CKEditor&lt;/a&gt;.&lt;/p&gt;</textarea> </p> <p> <input id="readOnlyOn" onclick="toggleReadOnly();" type="button" value="Make it read-only" style="display:none"> <input id="readOnlyOff" onclick="toggleReadOnly( false );" type="button" value="Make it editable again" style="display:none"> </p> </form> <div id="footer"> <hr> <p> CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a> </p> <p id="copy"> Copyright &copy; 2003-2014, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved. </p> </div> </body> </html>
09-movie
trunk/shared/plugin/ckeditor/samples/readonly.html
HTML
gpl3
2,688
<?php //require section require_once dirname(__FILE__) . '/shared/config/config.php'; require_once DOCUMENT_ROOT . DIR_INCLUDE . 'check_session.php'; require_once DOCUMENT_ROOT . DIR_INCLUDE . 'check_outside_booking.php'; $title = 'Find ticket by date'; if (!empty($_POST)) { } ?> <!DOCTYPE html> <html> <head> <?php require_once DOCUMENT_ROOT . DIR_INCLUDE . 'head.php'; ?> </head> <body> <div class="ts-body-container"> <div class="ts-wrapper"> <!--<div class="ui grid">--> <div class="padding-top-large row"> <?php require_once DOCUMENT_ROOT . DIR_INCLUDE . 'header.php'; ?> <div class="ui segment breadcrumb" style="margin-top: 25px; margin-left: 20px;"> <a class="section">Food</a> <i class="right arrow icon divider"></i> <a class="section">Fruit</a> <i class="right arrow icon divider"></i> <div class="active section">Apples</div> </div> </div> <div class="ui grid"> <div class="row"> <div class="column"> <form action="" name="form_find" id="form_find"> <h1>Find ticket by date</h1> <div class="row"> <!-- Date --> <div class="ui left floated purple segment" style="margin-top: 1em; width: 22%;"> <h3>Date</h3> <div class="ui form"> <div class="grouped inline fields"> <div class="field"> <div class="ui radio checkbox"> <input name="cb_date" checked="checked" type="radio"> <label>21/05/2014</label> </div> </div> <div class="field"> <div class="ui radio checkbox"> <input name="cb_date" type="radio"> <label>24/05/2014</label> </div> </div> <div class="field"> <div class="ui radio checkbox"> <input name="cb_date" type="radio"> <label>25/05/2014</label> </div> </div> <div class="field"> <div class="ui radio checkbox"> <input name="cb_date" type="radio"> <label>26/05/2014</label> </div> </div> </div> </div> </div> <!-- Movie --> <div class="ui left floated orange segment" style="margin-left: 2em; width: 24%;"> <h3>Movie <i>(Now Showing)</i></h3> <div class="ui form"> <div class="grouped inline fields"> <div class="field"> <div class="ui radio checkbox"> <input name="cb_movie" checked="checked" type="radio"> <label>X-men</label> </div> </div> <div class="field"> <div class="ui radio checkbox"> <input name="cb_movie" type="radio"> <label>How To Train Your Dragons 2</label> </div> </div> <div class="field"> <div class="ui radio checkbox"> <input name="cb_movie" type="radio"> <label>The Avengers</label> </div> </div> <div class="field"> <div class="ui radio checkbox"> <input name="cb_movie" type="radio"> <label>Spiderman</label> </div> </div> </div> </div> </div> <!-- Cinema --> <div class="ui left floated purple segment" style="margin-left: 2em; width: 23%;"> <h3>Cinema</h3> <div class="ui form"> <div class="grouped inline fields"> <div class="field"> <div class="ui radio checkbox"> <input name="cb_cinema" checked="checked" type="radio"> <label>Cinema 01</label> </div> </div> <div class="field"> <div class="ui radio checkbox"> <input name="cb_cinema" type="radio"> <label>Cinema 02</label> </div> </div> <div class="field"> <div class="ui radio checkbox"> <input name="cb_cinema" type="radio"> <label>Cinema 03</label> </div> </div> <div class="field"> <div class="ui radio checkbox"> <input name="cb_cinema" type="radio"> <label>Cinema 04</label> </div> </div> </div> </div> </div> <!-- Time --> <div class="ui left floated orange segment" style="margin-left: 2em; width: 22%;"> <h3>Time</h3> <div class="ui form"> <div class="grouped inline fields"> <div class="field"> <div class="ui radio checkbox"> <input name="cb_time" checked="checked" type="radio"> <label>09:00</label> </div> </div> <div class="field"> <div class="ui radio checkbox"> <input name="cb_time" type="radio"> <label>11:30</label> </div> </div> <div class="field"> <div class="ui radio checkbox"> <input name="cb_time" type="radio"> <label>13:00</label> </div> </div> <div class="field"> <div class="ui radio checkbox"> <input name="cb_time" type="radio"> <label>17:00</label> </div> </div> </div> </div> </div> </div> <div class="row"> <div class="ts-center"> <!--<input name="btn_submit" type="submit" value="Book Ticket" class="ui orange button">--> <a href="tickets_quantity.php" class="ui orange button">Book Ticket</a> </div> </div> </form> </div> </div> </div> <div class="row"> <?php require_once DOCUMENT_ROOT . DIR_INCLUDE . 'footer.php'; ?> </div> <!--</div>--> </div> </div> </body> </html>
09-movie
trunk/show_by_date.php
PHP
gpl3
11,699
<?php //require section require_once dirname(dirname(__FILE__)) . '/shared/config/config.php'; require_once DOCUMENT_ROOT . DIR_INCLUDE . '/check_user_login.php'; require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_pager.php'; require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_upload.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_booking.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_users.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_tickets.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_combos.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_coupons.php'; $title = 'Admin Page'; $id = 0; $email = api_booking::get_default_user_email(); $ticket = api_booking::get_default_ticket(); $ticket_quantity_solve = ""; $coupon_code = api_booking::get_default_coupon_code(); $combo = api_booking::get_default_combo(); $combo_quantity_solve = ""; $action = "Add"; if (!empty($_GET['Action']) && $_GET['Action'] === 'Edit') { if (!empty($_GET['Id'])) { $id = $_GET['Id']; } $edit_item = api_booking::get_booking_by_id($id); $id = $edit_item['id']; $email = $edit_item['user_email']; $ticket = $edit_item['ticket_name']; $ticket_quantity_solve = $edit_item['ticket_quantity']; $coupon_code = $edit_item['coupon_code']; $combo = $edit_item['combo_name']; $combo_quantity_solve = $edit_item['combo_quantity']; $action = "Update"; } else if (!empty($_POST)) { $id_save = ""; if (!empty($_POST['hidd_id'])) { $id_save = $_POST['hidd_id']; } $email_save = ""; if (!empty($_POST['ddl_email'])) { $email_save = $_POST['ddl_email']; } $ticket_save = ""; if (!empty($_POST['ddl_ticket'])) { $ticket_save = $_POST['ddl_ticket']; } $ticket_quantity_solve_save = ""; if (!empty($_POST['txt_ticket_quantity_solve'])) { $ticket_quantity_solve_save = $_POST['txt_ticket_quantity_solve']; } $coupon_code_save = ""; if (!empty($_POST['ddl_coupon_code'])) { $coupon_code_save = $_POST['ddl_coupon_code']; } $combo_save = ""; if (!empty($_POST['ddl_combo'])) { $combo_save = $_POST['ddl_combo']; } $combo_quantity_solve_save = ""; if (!empty($_POST['txt_combo_quantity_solve'])) { $combo_quantity_solve_save = $_POST['txt_combo_quantity_solve']; } if (!empty($_POST['Action']) && ($_POST['Action'] === "Add" || $_POST['Action'] === "Update")) { $error_show = api_booking::validate_booking_fields($email_save, $ticket_save, $ticket_quantity_solve_save, $coupon_code_save, $combo_save, $combo_quantity_solve_save); if (empty($error_show)) { $ticket_id = api_booking::get_ticket_id_from_name($ticket_save); $user_id = api_booking::get_user_id_from_email($email_save); $coupon_id = api_booking::get_coupon_id_from_coupon_code($coupon_code_save); $combo_id = api_booking::get_combo_id_from_name($combo_save); if (api_booking::save_booking($id_save, $user_id, $ticket_id, $ticket_quantity_solve_save, $coupon_id, $combo_id, $combo_quantity_solve_save)) { $success_info = "Added booking of &lt;".$email_save."&gt; user successfully."; if ($id_save > 0) { $success_info = "Update booking of &lt;".$email_save."&gt; user successfully."; } } } else { $id = $id_save; $email = $email_save; $ticket = $ticket_save; $ticket_quantity_solve = $ticket_quantity_solve_save; $coupon_code = $coupon_code_save; $combo = $combo_save; $combo_quantity_solve = $combo_quantity_solve_save; $action = $_POST['Action']; } } else if (!empty($_POST['Action']) && $_POST['Action'] === "Paid") { $id_paid = filter_input(INPUT_POST, "hidd_paid_id"); if (!empty($id_paid)) { api_booking::update_paid($id_paid); $booking_code = api_booking::get_booking_code($id_paid); // send mail to client $email_sent_to = api_booking::get_user_email_from_booking_id($id_paid); $message = "Now, admin activated your booking code. \n" . "This is your booking code: ".$booking_code." \n" . "Remember your code when you come to cinema."; mail($email_sent_to, "Your booking code is activated", $message); } } else if (!empty($_POST['Action']) && $_POST['Action'] === "Delete") { $id_delete = 0; if (!empty($_POST['hidd_delete_id'])) { $id_delete = $_POST['hidd_delete_id']; } api_booking::delete_booking($id_delete); } } ?> <!DOCTYPE html> <html> <head> <?php require_once DOCUMENT_ROOT . DIR_ADMIN_INCLUDE . 'head.php'; ?> </head> <body> <div class="ui page grid"> <div class="column ts-wrapper"> <?php require_once DOCUMENT_ROOT . DIR_ADMIN_INCLUDE . 'header.php'; ?> <div class="ts-inner-wrapper"> <h1>Booking</h1> <?php if (!empty($error_show)) { ?> <div class="ui error message"> <i class="close icon"></i> <div class="header"> Please correct these wrongs. </div> <ul class="list"> <?php echo $error_show; ?> </ul> </div> <?php } else if (!empty($success_info)) { ?> <div class="ui success message"> <i class="close icon"></i> <div class="header"> <?php echo $success_info; ?> </div> </div> <?php } ?> <div class="hide" id="add-edit-popup"> <form action="booking.php" method="POST" id="form_paid" > <input type="hidden" name="hidd_paid_id" value="0" /> <input type="hidden" name="Action" value="Paid" /> </form> <form action="booking.php" method="POST" id="form_delete" > <input type="hidden" name="hidd_delete_id" value="0" /> <input type="hidden" name="Action" value="Delete" /> </form> <form name="form_data" id="form_data" method="POST" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>" enctype="multipart/form-data"> <div class="ui form segment form-background"> <input type="hidden" name="hidd_id" value="<?php echo $id; ?>" /> <div class="field"> <label for="Status">User <span class="required">*</span></label> <div class="ui selection dropdown"> <input type="hidden" name="ddl_email" value="<?php echo $email; ?>"> <div class="text"><?php echo $email; ?></div> <i class="dropdown icon"></i> <div class="menu ui transition hidden"> <?php $list = api_users::get_all_users(); if (!empty($list) && count($list) > 0) { foreach ($list as $item) {?> <div class="item"><?php echo $item['email']; ?></div> <?php } }?> </div> </div> </div> <div class="field"> <label for="Status">Ticket <span class="required">*</span></label> <div class="ui selection dropdown"> <input type="hidden" name="ddl_ticket" value="<?php echo $ticket; ?>"> <div class="text"><?php echo $ticket; ?></div> <i class="dropdown icon"></i> <div class="menu ui transition hidden"> <?php $list = api_tickets::get_all_tickets(); if (!empty($list) && count($list) > 0) { foreach ($list as $item) {?> <div class="item"><?php echo $item['name']; ?></div> <?php } }?> </div> </div> </div> <div class="field"> <label for="Name">Ticket Quantity Solve <span class="required">*</span></label> <input type="text" name="txt_ticket_quantity_solve" value="<?php echo $ticket_quantity_solve; ?>" placeholder="e.g: 2" /> </div> <div class="field"> <label for="Status">Coupon Code <span class="required">*</span></label> <div class="ui selection dropdown"> <input type="hidden" name="ddl_coupon_code" value="<?php echo $coupon_code; ?>"> <div class="text"><?php echo $coupon_code; ?></div> <i class="dropdown icon"></i> <div class="menu ui transition hidden"> <?php $list = api_coupons::get_all_coupons(); if (!empty($list) && count($list) > 0) { foreach ($list as $item) {?> <div class="item"><?php echo $item['coupon_code']; ?></div> <?php } }?> </div> </div> </div> <div class="field"> <label for="Status">Combo <span class="required">*</span></label> <div class="ui selection dropdown"> <input type="hidden" name="ddl_combo" value="<?php echo $combo; ?>"> <div class="text"><?php echo $combo; ?></div> <i class="dropdown icon"></i> <div class="menu ui transition hidden"> <?php $list = api_combos::get_all_combos(); if (!empty($list) && count($list) > 0) { foreach ($list as $item) {?> <div class="item"><?php echo $item['name']; ?></div> <?php } }?> </div> </div> </div> <div class="field"> <label for="Name">Combo Quantity Solve <span class="required">*</span></label> <input type="text" name="txt_combo_quantity_solve" value="<?php echo $combo_quantity_solve; ?>" placeholder="e.g: 2" /> </div> <input type="hidden" name="Action" value="add"> <div class="ui buttons"> <a href="?"><div class="ui button">Cancel</div></a> <div class="or"></div> <div id="action-button" class="ui orange button" onclick="submit_data();"><?php echo $action; ?></div> </div> </div> </form> </div> <h2>List</h2> <table class="ui table segment"> <thead> <tr><th>User</th> <th>Ticket</th> <th>Ticket Quantity Solve</th> <th>Coupon Code</th> <th>Combo</th> <th>Combo Quantity</th> <th>Total Money (USD)</th> <th>Paid</th> <th>Actions</th> </tr></thead> <tbody> <?php $list = api_booking::get_all_booking(); if (empty($list) || count($list) == 0) { echo "<tr><td>No item found.</td></tr>"; } else { $current_page = 1; if (!empty($_GET['p'])) { $current_page = $_GET['p']; } $list_total = $list; $page_size = 10; $lib_pager = new lib_pager($list_total, $page_size); $total_page = $lib_pager->get_total_page(); $current_page_list = $lib_pager->get_current_page_list($current_page); foreach ($current_page_list as $item) {?> <tr> <td><?php echo $item['user_email']; ?></td> <td><?php echo $item['ticket_name']; ?></td> <td><?php echo $item['ticket_quantity']; ?></td> <td><?php echo $item['coupon_code']; ?></td> <td><?php echo $item['combo_name']; ?></td> <td><?php echo $item['combo_quantity']; ?></td> <td><?php echo $item['total_money']; ?></td> <?php $text = "Not Yet"; if (!empty($item['is_paid'])) { $text = "PAID"; } ?> <td><?php echo $text; ?></td> <td> <a href="?Action=Edit&Id=<?php echo $item['id']; ?>"> <i class="pencil icon"></i> </a> <?php if (empty($item['is_paid'])) { ?> <a href="#" onclick="paid('<?php echo $item['id']; ?>');"> <img src="<?php echo LINK_ROOT . DIR_ADMIN ?>/layout/images/pay.png" /> </a> <?php } ?> <a href="<?php echo LINK_ROOT . DIR_ADMIN ?>booking_lines.php?booking_id=<?php echo $item['id']; ?>&user_id=<?php echo $item['user_id']; ?>"> <img src="<?php echo LINK_ROOT . DIR_ADMIN ?>/layout/images/view.png" /> </a> <i class="remove icon" onclick="confirmDelete('<?php echo $item['id']; ?>')"></i> </td> <?php } }?> </tbody> <tfoot> <tr><th colspan="9"> <div class="ui orange labeled icon button" onclick="show_popup();" ><i class="flag icon"></i> Add Booking</div> <table class="paging-footer"> <tbody> <tr> <?php if (!empty($total_page) && count($total_page) > 0) { for ($page = 1; $page <= $total_page; $page++) { ?> <td> <span> <a href="?p=<?php echo $page; ?>" <?php if ($current_page != $page) echo 'style="color:Black;"'; ?>><?php echo $page; ?></a> </span> </td> <?php } }?> </tr> </tbody> </table> </th> </tr></tfoot> </table> <script type="text/javascript"> <?php if ((!empty($_GET['Action']) && $_GET['Action'] === "Edit") || (!empty($_POST['Action']) && ($_POST['Action'] === "Update" || $_POST['Action'] === "Add"))) { echo "show_popup();"; } ?> </script> </div> <?php require_once DOCUMENT_ROOT . DIR_ADMIN_INCLUDE . 'footer.php'; ?> </div> </div> </body> </html>
09-movie
trunk/admin/booking.php
PHP
gpl3
19,472
<?php //require section require_once dirname(dirname(__FILE__)) . '/shared/config/config.php'; require_once DOCUMENT_ROOT . DIR_INCLUDE . '/check_user_login.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_security.php'; $title = 'Admin Page'; ?> <!DOCTYPE html> <html> <head> <?php require_once DOCUMENT_ROOT . DIR_ADMIN_INCLUDE . 'head.php'; ?> </head> <body> <div class="ui page grid"> <div class="column ts-wrapper"> <?php require_once DOCUMENT_ROOT . DIR_ADMIN_INCLUDE . 'header.php'; ?> <div class="ts-inner-wrapper" style="min-height: 700px"> <h1>Welcome to Administrator Panel</h1> </div> <?php require_once DOCUMENT_ROOT . DIR_ADMIN_INCLUDE . 'footer.php'; ?> </div> </div> </body> </html>
09-movie
trunk/admin/index.php
PHP
gpl3
937
<?php //require section require_once dirname(dirname(__FILE__)) . '/shared/config/config.php'; require_once DOCUMENT_ROOT . DIR_INCLUDE . '/check_user_login.php'; require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_pager.php'; require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_upload.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_combos.php'; $title = 'Admin Page'; $id = 0; $name = ""; $description = ""; $price = ""; $image = ""; $action = "Add"; if (!empty($_GET['Action']) && $_GET['Action'] === 'Edit') { if (!empty($_GET['Id'])) { $id = $_GET['Id']; } $edit_item = api_combos::get_combo_by_id($id); $id = $edit_item['id']; $name = $edit_item['name']; $description = $edit_item['description']; $price = $edit_item['price']; $image = $edit_item['image']; $action = "Update"; } else if (!empty($_POST)) { $id_save = ""; if (!empty($_POST['hidd_id'])) { $id_save = $_POST['hidd_id']; } $name_save = ""; if (!empty($_POST['txt_name'])) { $name_save = $_POST['txt_name']; } $description_save = ""; if (!empty($_POST['txt_description'])) { $description_save = $_POST['txt_description']; } $price_save = ""; if (!empty($_POST['txt_price'])) { $price_save = $_POST['txt_price']; } $image_save = ""; if (!empty($_FILES['f_image']['size'])) { $lib_upload = new lib_upload(); if ($lib_upload->upload_file('f_image', DOCUMENT_ROOT . DIR_SHARED_UPLOAD_IMAGES_COMBOS)) { $image_save = $_FILES['f_image']['name']; } } else if (!empty($_POST['hidd_image'])) { $image_save = $_POST['hidd_image']; } if (!empty($_POST['Action']) && ($_POST['Action'] === "Add" || $_POST['Action'] === "Update")) { $error_show = api_combos::validate_combo_fields($name_save, $description_save, $price_save, $image_save); if (empty($error_show)) { if (api_combos::save_combo($id_save, $name_save, $description_save, $price_save, $image_save)) { $success_info = "Added &lt;".$name_save."&gt; combo successfully."; if ($id_save > 0) { $success_info = "Update &lt;".$name_save."&gt; combo successfully."; } } } else { $id = $id_save; $name = $name_save; $description = $description_save; $image = $image_save; $price = $price_save; $action = $_POST['Action']; } } else if (!empty($_POST['Action']) && $_POST['Action'] === "Delete") { $id_delete = 0; if (!empty($_POST['hidd_delete_id'])) { $id_delete = $_POST['hidd_delete_id']; } api_combos::delete_combo($id_delete); } } ?> <!DOCTYPE html> <html> <head> <?php require_once DOCUMENT_ROOT . DIR_ADMIN_INCLUDE . 'head.php'; ?> </head> <body> <div class="ui page grid"> <div class="column ts-wrapper"> <?php require_once DOCUMENT_ROOT . DIR_ADMIN_INCLUDE . 'header.php'; ?> <div class="ts-inner-wrapper"> <h1>Combos</h1> <?php if (!empty($error_show)) { ?> <div class="ui error message"> <i class="close icon"></i> <div class="header"> Please correct these wrongs. </div> <ul class="list"> <?php echo $error_show; ?> </ul> </div> <?php } else if (!empty($success_info)) { ?> <div class="ui success message"> <i class="close icon"></i> <div class="header"> <?php echo $success_info; ?> </div> </div> <?php } ?> <div class="hide" id="add-edit-popup"> <form action="combos.php" method="POST" id="form_delete" > <input type="hidden" name="hidd_delete_id" value="0" /> <input type="hidden" name="Action" value="Delete" /> </form> <form name="form_data" id="form_data" method="POST" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>" enctype="multipart/form-data"> <div class="ui form segment form-background"> <input type="hidden" name="hidd_id" value="<?php echo $id; ?>" /> <div class="field"> <label for="Name">Name <span class="required">*</span></label> <input name="txt_name" value="<?php echo $name; ?>" placeholder="e.g: Popcorn & 2 Coca" type="text"> </div> <div class="field"> <label for="Description">Description <span class="required">*</span></label> <textarea name="txt_description" placeholder="e.g: for couples" class="form-control" rows="3"><?php echo $description; ?></textarea> </div> <div class="field"> <label for="Price">Price (USD) <span class="required">*</span></label> <input name="txt_price" value="<?php echo $price; ?>" placeholder="e.g: 30" type="text"> </div> <div class="field"> <label for="Image">Image <span class="required">*</span></label> <input type="file" name="f_image" /> <?php if (!empty($image)) { ?> <input name="hidd_image" type="hidden" value="$image"> <img src="<?php echo LINK_ROOT . DIR_SHARED_UPLOAD_IMAGES_CINEMAS . $image; ?>" style="max-height: 100px;"> <?php } ?> </div> <input type="hidden" name="Action" value="add"> <div class="ui buttons"> <a href="?"><div class="ui button">Cancel</div></a> <div class="or"></div> <div id="action-button" class="ui orange button" onclick="submit_data();"><?php echo $action; ?></div> </div> </div> </form> </div> <h2>List</h2> <table class="ui table segment"> <thead> <tr><th>Name</th> <th>Description</th> <th>Price (USD)</th> <th>Image</th> <th>Actions</th> </tr></thead> <tbody> <?php $list = api_combos::get_all_combos(); if (empty($list) || count($list) == 0) { echo "<tr><td>No item found.</td></tr>"; } else { $current_page = 1; if (!empty($_GET['p'])) { $current_page = $_GET['p']; } $list_total = $list; $page_size = 10; $lib_pager = new lib_pager($list_total, $page_size); $total_page = $lib_pager->get_total_page(); $current_page_list = $lib_pager->get_current_page_list($current_page); foreach ($current_page_list as $item) {?> <tr> <td><?php echo $item['name']; ?></td> <td><?php echo $item['description']; ?></td> <td><?php echo $item['price']; ?></td> <td> <a href="<?php echo LINK_ROOT . DIR_SHARED_UPLOAD_IMAGES_COMBOS . $item['image']; ?>" target="_blank"> <img src="<?php echo LINK_ROOT . DIR_SHARED_UPLOAD_IMAGES_COMBOS . $item['image']; ?>" style="height:80px;width:60px;"> </a> </td> <td> <a href="?Action=Edit&Id=<?php echo $item['id']; ?>"> <i class="pencil icon"></i> </a> <i class="remove icon" onclick="confirmDelete('<?php echo $item['id']; ?>')"></i> </td> </tr> <?php } }?> </tbody> <tr><th colspan="5"> <div class="ui orange labeled icon button" onclick="show_popup();" ><i class="food icon"></i> Add Combos</div> <table class="paging-footer"> <tbody> <tr> <?php if (!empty($total_page) && count($total_page) > 0) { for ($page = 1; $page <= $total_page; $page++) { ?> <td> <span> <a href="?p=<?php echo $page; ?>" <?php if ($current_page != $page) echo 'style="color:Black;"'; ?>><?php echo $page; ?></a> </span> </td> <?php } }?> </tr> </tbody> </table> </th> </tr></tfoot> </table> <script type="text/javascript"> <?php if ((!empty($_GET['Action']) && $_GET['Action'] === "Edit") || (!empty($_POST['Action']) && ($_POST['Action'] === "Update" || $_POST['Action'] === "Add"))) { echo "show_popup();"; } ?> </script> </div> <?php require_once DOCUMENT_ROOT . DIR_ADMIN_INCLUDE . 'footer.php'; ?> </div> </div> </body> </html>
09-movie
trunk/admin/combos.php
PHP
gpl3
12,072
<?php //require section require_once dirname(dirname(__FILE__)) . '/shared/config/config.php'; require_once DOCUMENT_ROOT . DIR_INCLUDE . '/check_user_login.php'; require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_pager.php'; require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_upload.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_movies.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_cinemas.php'; $title = 'Admin Page'; function add($number) { $id_save = ""; if (!empty($_POST['hidd_id'.$number])) { $id_save = $_POST['hidd_id'.$number]; } $name_save = ""; if (!empty($_POST['txt_name'.$number])) { $name_save = $_POST['txt_name'.$number]; } $address_save = ""; if (!empty($_POST['txt_address'.$number])) { $address_save = $_POST['txt_address'.$number]; } $latitude_save = ""; if (!empty($_POST['txt_latitude'])) { $latitude_save = $_POST['txt_latitude']; } $longitude_save = ""; if (!empty($_POST['txt_longitude'])) { $longitude_save = $_POST['txt_longitude']; } $image_save = ""; if (!empty($_FILES['f_image'.$number]['size'])) { $lib_upload = new lib_upload(); if ($lib_upload->upload_file('f_image'.$number, DOCUMENT_ROOT . DIR_SHARED_UPLOAD_IMAGES_CINEMAS)) { $image_save = $_FILES['f_image'.$number]['name']; } } else if (!empty($_POST['hidd_image'.$number])) { $image_save = $_POST['hidd_image'.$number]; } $city_save = api_cinemas::get_default_city(); if (!empty($_POST['ddl_city'.$number])) { $city_save = $_POST['ddl_city'.$number]; } $error = api_cinemas::validate_cinema_fields($name_save, $address_save, $image_save, $city_save, $latitude_save, $longitude_save); if (empty($error)) { $city_id = api_cinemas::get_city_id_from_name($city_save); if (api_cinemas::save_cinema($id_save, $name_save, $address_save, $image_save, $city_id, $latitude_save, $longitude_save)) { $success_info = ""; $success_info .= '<div class="ui success message">'; $success_info .= '<i class="close icon"></i>'; $success_info .= '<div class="header">'; $success_info .= "Added &lt;".$name_save."&gt; cinema successfully."; $success_info .= "</div></div>"; return $success_info; } } $error_show = ''; $error_show .= '<div class="ui error message">'; $error_show .= ' <i class="close icon"></i>'; $error_show .= ' <div class="header">'; $error_show .= ' add &lt;'.$name_save.'&gt; cinema failed with these wrongs.'; $error_show .= ' </div>'; $error_show .= ' <ul class="list">'; $error_show .= $error; $error_show .= ' </ul>'; $error_show .= '</div>'; return $error_show; } $id = 0; $name = ""; $address = ""; $image = ""; $city = api_cinemas::get_default_city(); $latitude = ""; $longitude = ""; $action = "Add"; if (!empty($_GET['Action']) && $_GET['Action'] === 'Edit') { if (!empty($_GET['Id'])) { $id = $_GET['Id']; } $edit_item = api_cinemas::get_cinema_by_id($id); $id = $edit_item['id']; $name = $edit_item['name']; $address = $edit_item['address']; $image = $edit_item['image']; $city = $edit_item['city_name']; $latitude = $edit_item['latitude']; $longitude = $edit_item['longitude']; $action = "Update"; } else if (!empty($_POST)) { $id_save = ""; if (!empty($_POST['hidd_id'])) { $id_save = $_POST['hidd_id']; } $name_save = ""; if (!empty($_POST['txt_name'])) { $name_save = $_POST['txt_name']; } $address_save = ""; if (!empty($_POST['txt_address'])) { $address_save = $_POST['txt_address']; } $latitude_save = ""; if (!empty($_POST['txt_latitude'])) { $latitude_save = $_POST['txt_latitude']; } $longitude_save = ""; if (!empty($_POST['txt_longitude'])) { $longitude_save = $_POST['txt_longitude']; } $image_save = ""; if (!empty($_FILES['f_image']['size'])) { $lib_upload = new lib_upload(); if ($lib_upload->upload_file('f_image', DOCUMENT_ROOT . DIR_SHARED_UPLOAD_IMAGES_CINEMAS)) { $image_save = $_FILES['f_image']['name']; } } else if (!empty($_POST['hidd_image'])) { $image_save = $_POST['hidd_image']; } $city_save = ""; if (!empty($_POST['ddl_city'])) { $city_save = $_POST['ddl_city']; } if (!empty($_POST['Action']) && $_POST['Action'] === "Update") { $error_show = api_cinemas::validate_cinema_fields($name_save, $address_save, $image_save, $city_save, $latitude_save, $longitude_save); if (empty($error_show)) { $city_id = api_cinemas::get_city_id_from_name($city_save); if (api_cinemas::save_cinema($id_save, $name_save, $address_save, $image_save, $city_id, $latitude_save, $longitude_save)) { $success_info = "Update &lt;".$name_save."&gt; cinema successfully."; } } else { $id = $id_save; $name = $name_save; $address = $address_save; $image = $image_save; $city = $city_save; $latitude = $latitude; $longitude = $longitude_save; $action = $_POST['Action']; } } else if (!empty($_POST['Action']) && $_POST['Action'] === "Delete") { $id_delete = 0; if (!empty($_POST['hidd_delete_id'])) { $id_delete = $_POST['hidd_delete_id']; } api_cinemas::delete_cinema($id_delete); } else if (!empty($_POST['Action']) && $_POST['Action'] === "Add All") { $number = 0; $info = ""; while (!empty($_POST['index'.$number]) && $_POST['index'.$number] == 1) { $info .= add($number); $number++; } } } ?> <!DOCTYPE html> <html> <head> <?php require_once DOCUMENT_ROOT . DIR_ADMIN_INCLUDE . 'head.php'; ?> </head> <body> <div class="ui page grid"> <div class="column ts-wrapper"> <?php require_once DOCUMENT_ROOT . DIR_ADMIN_INCLUDE . 'header.php'; ?> <div class="ts-inner-wrapper"> <h1>Cinemas</h1> <?php if (!empty($error_show)) { ?> <div class="ui error message"> <i class="close icon"></i> <div class="header"> Please correct these wrongs. </div> <ul class="list"> <?php echo $error_show; ?> </ul> </div> <?php } else if (!empty($success_info)) { ?> <div class="ui success message"> <i class="close icon"></i> <div class="header"> <?php echo $success_info; ?> </div> </div> <?php } else if (!empty($info)) { echo $info; } ?> <div class="hide" id="add-edit-popup"> <form action="?" method="POST" id="form_delete" > <input type="hidden" name="hidd_delete_id" value="0" /> <input type="hidden" name="Action" value="Delete" /> </form> <form name="form_data" id="form_data" method="POST" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>" enctype="multipart/form-data"> <div class="ui form segment form-background"> <input type="hidden" name="hidd_id" value="<?php echo $id; ?>" /> <div class="field"> <label for="Name">Title <span class="required">*</span></label> <input name="txt_name" value="<?php echo $name; ?>" placeholder="Name" type="text"> </div> <div class="field"> <label for="Address">Address <span class="required">*</span></label> <input name="txt_address" value="<?php echo $address; ?>" placeholder="Address" type="text"> </div> <div class="field"> <label for="Status">City <span class="required">*</span></label> <div class="ui selection dropdown"> <input type="hidden" name="ddl_city" value="<?php echo $city; ?>"> <div class="text"><?php echo $city; ?></div> <i class="dropdown icon"></i> <div class="menu ui transition hidden"> <?php $list = api_cinemas::get_all_cities(); $text = ""; if (!empty($list) && count($list) > 0) { foreach ($list as $item) {?> <div class="item"><?php echo $item['name']; ?></div> <?php } }?> </div> </div> </div> <div class="field"> <label for="Latitude">Latitude <span class="required">*</span></label> <input id="txt_latitude" name="txt_latitude" value="<?php echo $latitude ?>" placeholder="Latitude" type="text"> </div> <div class="field"> <label for="Longitude">Longitude <span class="required">*</span></label> <input id="txt_longitude" name="txt_longitude" value="<?php echo $longitude ?>" placeholder="Longitude" type="text"> </div> <div class="field"> <label for="Image">Image <span class="required">*</span></label> <input type="file" name="f_image" /> <?php if (!empty($image)) { ?> <input name="hidd_image" type="hidden" value="<?php echo $image; ?>"> <img src="<?php echo LINK_ROOT . DIR_SHARED_UPLOAD_IMAGES_CINEMAS . $image; ?>" style="max-height: 100px;"> <?php } ?> </div> <input type="hidden" name="Action" value="add"> <div class="ui buttons"> <a href="?"><div class="ui button">Cancel</div></a> <div class="or"></div> <div id="action-button" class="ui orange button" onclick="submit_data();"><?php echo $action; ?></div> </div> </div> </form> </div> <div id="adds"> </div> <h2>List</h2> <table class="ui table segment"> <thead> <tr><th>Name</th> <th>Address</th> <th>City</th> <th>Image</th> <th>Actions</th> </tr></thead> <tbody> <?php $list = api_cinemas::get_all_cinemas(); if (empty($list) || count($list) == 0) { echo "<tr><td>No item found.</td></tr>"; } else { $current_page = 1; if (!empty($_GET['p'])) { $current_page = $_GET['p']; } $list_total = $list; $page_size = 10; $lib_pager = new lib_pager($list_total, $page_size); $total_page = $lib_pager->get_total_page(); $current_page_list = $lib_pager->get_current_page_list($current_page); foreach ($current_page_list as $item) {?> <tr> <td><?php echo $item['name']; ?></td> <td><?php echo $item['address']; ?></td> <td><?php echo $item['city_name']; ?></td> <td> <a href="<?php echo LINK_ROOT . DIR_SHARED_UPLOAD_IMAGES_CINEMAS . $item['image']; ?>" target="_blank"> <img src="<?php echo LINK_ROOT . DIR_SHARED_UPLOAD_IMAGES_CINEMAS . $item['image']; ?>" style="height:80px;width:60px;"> </a> </td> <td> <a href="?Action=Edit&Id=<?php echo $item['id']; ?>"> <i class="pencil icon"></i> </a> <i class="remove icon" onclick="confirmDelete('<?php echo $item['id']; ?>')"></i> </td> </tr> <?php } }?> </tbody> <tfoot> <tr><th colspan="5"> <label>Entry number </label> <div class="ui input"> <input id="txt_entry_number" name="txt_entry_number" type="text" width="3em" placeholder="1"> </div> <div class="ui orange labeled icon button" onclick="show_add_popup('add_popup_cinemas');" ><i class="video icon"></i> Add Movies</div> <table class="paging-footer"> <tbody> <tr> <?php if (!empty($total_page) && count($total_page) > 0) { for ($page = 1; $page <= $total_page; $page++) { ?> <td> <span> <a href="?p=<?php echo $page; ?>" <?php if ($current_page != $page) echo 'style="color:Black;"'; ?>><?php echo $page; ?></a> </span> </td> <?php } }?> </tr> </tbody> </table> </th> </tr></tfoot> </table> <script type="text/javascript"> <?php if (!empty($_GET['Action']) && $_GET['Action'] === "Edit") { echo "show_popup();"; } ?> </script> </div> <?php require_once DOCUMENT_ROOT . DIR_ADMIN_INCLUDE . 'footer.php'; ?> </div> </div> </body> </html>
09-movie
trunk/admin/cinemas.php
PHP
gpl3
17,204
<?php //require section require_once dirname(dirname(__FILE__)) . '/shared/config/config.php'; require_once DOCUMENT_ROOT . DIR_INCLUDE . '/check_user_login.php'; require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_pager.php'; require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_upload.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_tickets.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_tickets.php'; $titfle = 'Admin Page'; function add($number) { $id_save = ""; if (!empty($_POST['hidd_id'.$number])) { $id_save = $_POST['hidd_id'.$number]; } $name_save = ""; if (!empty($_POST['txt_name'.$number])) { $name_save = $_POST['txt_name'.$number]; } $show_date_save = ""; if (!empty($_POST['dtp_show_date'.$number])) { $show_date_save = $_POST['dtp_show_date'.$number]; } $time_start_save = ""; if (!empty($_POST['dtp_time_start'.$number])) { $time_start_save = $_POST['dtp_time_start'.$number]; } $duration_save = ""; if (!empty($_POST['txt_duration'.$number])) { $duration_save = $_POST['txt_duration'.$number]; } $price_save = ""; if (!empty($_POST['txt_price'.$number])) { $price_save = $_POST['txt_price'.$number]; } $movie_save = ""; if (!empty($_POST['ddl_movie'.$number])) { $movie_save = $_POST['ddl_movie'.$number]; } $cinema_save = ""; if (!empty($_POST['ddl_cinema'.$number])) { $cinema_save = $_POST['ddl_cinema'.$number]; } $error = api_tickets::validate_ticket_fields($name_save, $show_date_save, $time_start_save, $duration_save, $movie_save, $cinema_save, $price_save); if (empty($error)) { $movie_id = api_tickets::get_movie_id_from_title($movie_save); $cinema_id = api_tickets::get_cinema_id_from_name($cinema_save); if (api_tickets::save_ticket($id_save, $name_save, $show_date_save, $time_start_save, $duration_save, $movie_id, $cinema_id, $price_save)) { $success_info = ""; $success_info .= '<div class="ui success message">'; $success_info .= '<i class="close icon"></i>'; $success_info .= '<div class="header">'; $success_info .= "Added &lt;".$name_save."&gt; ticket successfully."; $success_info .= "</div></div>"; return $success_info; } } $error_show = ''; $error_show .= '<div class="ui error message">'; $error_show .= ' <i class="close icon"></i>'; $error_show .= ' <div class="header">'; $error_show .= ' add &lt;'.$name_save.'&gt; ticket failed with these wrongs.'; $error_show .= ' </div>'; $error_show .= ' <ul class="list">'; $error_show .= $error; $error_show .= ' </ul>'; $error_show .= '</div>'; return $error_show; } $id = 0; $name = ""; $show_date = ""; $time_start = ""; $duration = ""; $price = ""; $movie = api_tickets::get_default_movie(); $cinema = api_tickets::get_default_cinema(); $action = "Add"; if (!empty($_GET['Action']) && $_GET['Action'] === 'Edit') { if (!empty($_GET['Id'])) { $id = $_GET['Id']; } $edit_item = api_tickets::get_ticket_by_id($id); $id = $edit_item['id']; $name = $edit_item['name']; $show_date = $edit_item['show_date']; $date = date_create($show_date); $show_date = date_format($date, "d/m/Y"); $time_start = $edit_item['time_start']; $date = date_create($time_start); $time_start = date_format($date, "H:i"); $duration = $edit_item['duration']; $price = $edit_item['price']; $movie = $edit_item['movie_title']; $cinema = $edit_item['cinema_name']; $action = "Update"; } else if (!empty($_POST)) { $id_save = ""; if (!empty($_POST['hidd_id'])) { $id_save = $_POST['hidd_id']; } $name_save = ""; if (!empty($_POST['txt_name'])) { $name_save = $_POST['txt_name']; } $show_date_save = ""; if (!empty($_POST['dtp_show_date'])) { $show_date_save = $_POST['dtp_show_date']; } $time_start_save = ""; if (!empty($_POST['dtp_time_start'])) { $time_start_save = $_POST['dtp_time_start']; } $duration_save = ""; if (!empty($_POST['txt_duration'])) { $duration_save = $_POST['txt_duration']; } $price_save = ""; if (!empty($_POST['txt_price'])) { $price_save = $_POST['txt_price']; } $movie_save = ""; if (!empty($_POST['ddl_movie'])) { $movie_save = $_POST['ddl_movie']; } $cinema_save = ""; if (!empty($_POST['ddl_cinema'])) { $cinema_save = $_POST['ddl_cinema']; } if (!empty($_POST['Action']) && $_POST['Action'] === "Update") { $error_show = api_tickets::validate_ticket_fields($name_save, $show_date_save, $time_start_save, $duration_save, $movie_save, $cinema_save, $price_save); if (empty($error_show)) { $movie_id = api_tickets::get_movie_id_from_title($movie_save); $cinema_id = api_tickets::get_cinema_id_from_name($cinema_save); if (api_tickets::save_ticket($id_save, $name_save, $show_date_save, $time_start_save, $duration_save, $movie_id, $cinema_id, $price_save)) { $success_info = "Update &lt;".$name_save."&gt; ticket successfully."; } } else { $id = $id_save; $name = $name_save; $show_date = $show_date_save; $time_start = $time_start_save; $duration = $duration_save; $price = $price_save; $movie = $movie_save; $cinema = $cinema_save; $action = $_POST['Action']; } } else if (!empty($_POST['Action']) && $_POST['Action'] === "Delete") { $id_delete = 0; if (!empty($_POST['hidd_delete_id'])) { $id_delete = $_POST['hidd_delete_id']; } api_tickets::delete_ticket($id_delete); } else if (!empty($_POST['Action']) && $_POST['Action'] === "Add All") { $number = 0; $info = ""; while (!empty($_POST['index'.$number]) && $_POST['index'.$number] == 1) { $info .= add($number); $number++; } } } ?> <!DOCTYPE html> <html> <head> <?php require_once DOCUMENT_ROOT . DIR_ADMIN_INCLUDE . 'head.php'; ?> </head> <body> <div class="ui page grid"> <div class="column ts-wrapper"> <?php require_once DOCUMENT_ROOT . DIR_ADMIN_INCLUDE . 'header.php'; ?> <div class="ts-inner-wrapper"> <h1>Tickets</h1> <?php if (!empty($error_show)) { ?> <div class="ui error message"> <i class="close icon"></i> <div class="header"> Please correct these wrongs. </div> <ul class="list"> <?php echo $error_show; ?> </ul> </div> <?php } else if (!empty($success_info)) { ?> <div class="ui success message"> <i class="close icon"></i> <div class="header"> <?php echo $success_info; ?> </div> </div> <?php } else if (!empty($info)) { echo $info; } ?> <div class="hide" id="add-edit-popup"> <form action="tickets.php" method="POST" id="form_delete" > <input type="hidden" name="hidd_delete_id" value="0" /> <input type="hidden" name="Action" value="Delete" /> </form> <form name="form_data" id="form_data" method="POST" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>" enctype="multipart/form-data"> <div class="ui form segment form-background"> <input type="hidden" name="hidd_id" value="<?php echo $id; ?>" /> <div class="field"> <label for="Name">Name <span class="required">*</span></label> <input name="txt_name" type="text" value="<?php echo $name; ?>" placeholder="e.g: ticket 1" /> </div> <div class="field"> <label for="Status">Movie <span class="required">*</span></label> <div class="ui selection dropdown"> <input type="hidden" name="ddl_movie" value="<?php echo $movie; ?>"> <div class="text"><?php echo $movie; ?></div> <i class="dropdown icon"></i> <div class="menu ui transition hidden"> <?php $list = api_tickets::get_all_movies(); if (!empty($list) && count($list) > 0) { foreach ($list as $item) {?> <div class="item"><?php echo $item['title']; ?></div> <?php } }?> </div> </div> </div> <div class="field"> <label for="Status">Cinema <span class="required">*</span></label> <div class="ui selection dropdown"> <input type="hidden" name="ddl_cinema" value="<?php echo $cinema; ?>"> <div class="text"><?php echo $cinema; ?></div> <i class="dropdown icon"></i> <div class="menu ui transition hidden"> <?php $list = api_tickets::get_all_cinemas(); if (!empty($list) && count($list) > 0) { foreach ($list as $item) {?> <div class="item"><?php echo $item['name']; ?></div> <?php } }?> </div> </div> </div> <div class="field"> <script type="text/javascript"> $(document).ready(function() { jQuery('#dtp_show_date').datetimepicker({ timepicker:false, format:'d/m/Y' }); }); </script> <label for="Status">Date <span class="required">*</span></label> <input name="dtp_show_date" value="<?php echo $show_date; ?>" type="text" id="dtp_show_date" placeholder="e.g: 25/05/2014" style="width:200px;"> </div> <div class="field"> <script type="text/javascript"> $(document).ready(function() { jQuery('#dtp_time_start').datetimepicker({ datepicker:false, // allowTimes:[ // '12:00', '13:00', '15:00', // '17:00', '17:05', '17:20', '19:00', '20:00' // ], format:'H:i' }); }); </script> <label for="Status">Time Start <span class="required">*</span></label> <input name="dtp_time_start" value="<?php echo $time_start; ?>" type="text" id="dtp_time_start" placeholder="e.g: 21:30" style="width:200px;"> </div> <div class="field"> <label for="Name">Duration (min) <span class="required">*</span></label> <input name="txt_duration" value="<?php echo $duration; ?>" type="text" placeholder="e.g: 60 (min)" /> </div> <div class="field"> <label for="Name">Price (USD) <span class="required">*</span></label> <input name="txt_price" value="<?php echo $price; ?>" type="text" placeholder="e.g: 50 (USD)" /> </div> <input type="hidden" name="Action" value="add"> <div class="ui buttons"> <a href="?"><div class="ui button">Cancel</div></a> <div class="or"></div> <div id="action-button" class="ui orange button" onclick="submit_data();"><?php echo $action; ?></div> </div> </div> </form> </div> <div id="adds"> </div> <h2>List</h2> <table class="ui table segment"> <thead> <tr><th>Name</th> <th>Movie</th> <th>Cinema</th> <th>Date</th> <th>Time Start</th> <th>Duration (min)</th> <th>Price (USD)</th> <th>Available Seats</th> <th>Total Seats</th> <th>Out of Date</th> <th>Actions</th> </tr></thead> <tbody> <?php $list = api_tickets::get_all_live_first_dead_later(); if (empty($list) || count($list) == 0) { echo "<tr><td>No item found.</td></tr>"; } else { $current_page = 1; if (!empty($_GET['p'])) { $current_page = $_GET['p']; } $list_total = $list; $page_size = 10; $lib_pager = new lib_pager($list_total, $page_size); $total_page = $lib_pager->get_total_page(); $current_page_list = $lib_pager->get_current_page_list($current_page); foreach ($current_page_list as $item) {?> <tr> <td><?php echo $item['name']; ?></td> <td><?php echo $item['movie_title']; ?></td> <td><?php echo $item['cinema_name']; ?></td> <td> <?php $date = date_create($item["show_date"]); echo date_format($date, "d/m/Y"); ?> </td> <td> <?php $date = date_create($item["time_start"]); echo date_format($date, "H:i"); ?> </td> <td><?php echo $item['duration']; ?></td> <td><?php echo $item['price']; ?></td> <td><?php echo $item['available_seats']; ?></td> <td><?php echo $item['total_seats']; ?></td> <td><?php echo $item['out_of_date']; ?></td> <td> <a href="?Action=Edit&Id=<?php echo $item['id']; ?>"> <i class="pencil icon"></i> </a> <i class="remove icon" onclick="confirmDelete('<?php echo $item['id']; ?>')"></i> </td> </tr> <?php } }?> </tbody> <tfoot> <tr><th colspan="11"> <label>Entry number </label> <div class="ui input"> <input id="txt_entry_number" name="txt_entry_number" type="text" width="3em" placeholder="1"> </div> <div class="ui orange labeled icon button" onclick="show_add_popup('add_popup_tickets');" ><i class="ticket icon"></i> Add Tickets</div> <table class="paging-footer"> <tbody> <tr> <?php if (!empty($total_page) && count($total_page) > 0) { for ($page = 1; $page <= $total_page; $page++) { ?> <td> <span> <a href="?p=<?php echo $page; ?>" <?php if ($current_page != $page) echo 'style="color:Black;"'; ?>><?php echo $page; ?></a> </span> </td> <?php } }?> </tr> </tbody> </table> </th> </tr></tfoot> </table> <script type="text/javascript"> <?php if (!empty($_GET['Action']) && $_GET['Action'] === "Edit") { echo "show_popup();"; } ?> </script> </div> <?php require_once DOCUMENT_ROOT . DIR_ADMIN_INCLUDE . 'footer.php'; ?> </div> </div> </body> </html>
09-movie
trunk/admin/tickets.php
PHP
gpl3
20,572
<?php //require section require_once dirname(dirname(__FILE__)) . '/shared/config/config.php'; require_once DOCUMENT_ROOT . DIR_INCLUDE . '/check_user_login.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_config.php'; $title = 'Configuration'; $txt_ep = filter_input(INPUT_POST, 'txt_ep'); $txt_skrill_email = filter_input(INPUT_POST, 'txt_skrill_email'); $btn_save = filter_input(INPUT_POST, 'btn_save'); if (!empty($btn_save)) { if(api_config::set_easypaisa_detail($txt_ep)){ $success_info = "Successful save easypaisa detail!"; } else { $error_show = "Failed to save easypaisa detail!"; } if(api_config::set_skrill_email($txt_skrill_email)){ $success_info .= " || Successful save skrill email!"; } else { $error_show .= "Failed to save skrill email"; } } $ep_description = api_config::get_easypaisa_detail(); $skrill_email = api_config::get_skrill_email(); ?> <!DOCTYPE html> <html> <head> <?php require_once DOCUMENT_ROOT . DIR_ADMIN_INCLUDE . 'head.php'; ?> <script src="<?php echo LINK_ROOT . DIR_SHARED_PLUGIN . 'ckeditor/ckeditor.js' ?>"></script>; </head> <body> <div class="ui page grid"> <div class="column ts-wrapper"> <?php require_once DOCUMENT_ROOT . DIR_ADMIN_INCLUDE . 'header.php'; ?> <div class="ts-inner-wrapper"> <h1>Configuration</h1> <?php if (!empty($error_show)) { ?> <div class="ui error message"> <i class="close icon"></i> <div class="header"> Please correct these wrongs. </div> <ul class="list"> <?php echo $error_show; ?> </ul> </div> <?php } else if (!empty($success_info)) { ?> <div class="ui success message"> <i class="close icon"></i> <div class="header"> <?php echo $success_info; ?> </div> </div> <?php } ?> <div class="hide" id="add-edit-popup"> <form name="form_data" id="form_data" method="POST" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>" enctype="multipart/form-data"> <div class="ui form segment form-background"> <div class="field"> <label for="Title">EasyPaisa Option Description <span class="required">*</span></label> <!-- <input name="txt_ep_description" value="--> <?php //echo $ep_description; ?><!--" placeholder="EasyPaisa Checkout Description" type="text">--> <textarea class="ckeditor" name="txt_ep" placeholder="EasyPaisa Checkout Description" required><?php echo $ep_description; ?></textarea> </div> <div class="field"> <label for="Name">Skrill Merchant Email <span class="required">*</span></label> <input type="text" name="txt_skrill_email" value="<?php echo $skrill_email; ?>" placeholder="Merchant Email" required/> </div> <input type="submit" value="Save" name="btn_save" class="ui orange button"> </div> </form> </div> <script type="text/javascript"> show_popup(); </script> </div> <?php require_once DOCUMENT_ROOT . DIR_ADMIN_INCLUDE . 'footer.php'; ?> </div> </div> </body> </html>
09-movie
trunk/admin/configuration.php
PHP
gpl3
3,977
<script type="text/javascript"> $(document).ready(function() { $('.ui .item').on('click', function() { $('.ui .item').removeClass('active'); $(this).addClass('active'); }); $('.ui.dropdown').dropdown({ on: 'hover' }); }); function reload() { location.reload(); } function navigate(url) { window.location = url; } function show_popup() { $('#add-edit-popup').show(); } function show_add_popup(action) { var number = $('#txt_entry_number').val(); if (number <= 0) { number = 1; } $.ajax({ type: "POST", url: "<?php echo LINK_ROOT . DIR_AJAX; ?>"+action+".php", data: "number=" + number, success: function (result) { $("#adds").html(result); } }); hide_popup(); } function paid(booking_id) { $("input[name='hidd_paid_id']").val(booking_id); $("#form_paid").submit(); } function hide_popup() { $('#add-edit-popup').hide(); } function submit_add_data() { var action_input = $("#form_add_data :input[name='Action']"); action_input.val($('#action-add-button').text()); $("#form_add_data").submit(); } function search_booking_code() { $("#form_search_booking_code").submit(); } function submit_data() { var action_input = $("#form_data :input[name='Action']"); action_input.val($('#action-button').text()); $("#form_data").submit(); } function confirmDelete(id) { if (confirm('Are you sure?')) { $('#form_delete input[name="hidd_delete_id"]').val(id); $("#form_delete").submit(); } else { return false; } } </script>
09-movie
trunk/admin/include/head_script.php
PHP
gpl3
1,992
<div class="ui orange pointing menu"> <?php if (empty($_SESSION['user_info']['cinema_id'])) { ?> <a class="active item" href="<?php echo LINK_ROOT . DIR_ADMIN . "index.php" ?>"> <i class="home icon"></i>Home </a> <a class="item" href="<?php echo LINK_ROOT . DIR_ADMIN . "movies.php" ?>"> <i class="video icon"></i> Movies </a> <a class="item" href="<?php echo LINK_ROOT . DIR_ADMIN . "cinemas.php" ?>"> <i class="block layout icon"></i> Cinemas </a> <a class="item" href="<?php echo LINK_ROOT . DIR_ADMIN . "users.php" ?>"> <i class="users icon"></i> Users </a> <a class="item" href="<?php echo LINK_ROOT . DIR_ADMIN . "tickets.php" ?>"> <i class="ticket icon"></i> Tickets </a> <a class="item" href="<?php echo LINK_ROOT . DIR_ADMIN . "booking.php" ?>"> <i class="flag icon"></i> Booking </a> <a class="item" href="<?php echo LINK_ROOT . DIR_ADMIN . "combos.php" ?>"> <i class="food icon"></i> Combo </a> <a class="item" href="<?php echo LINK_ROOT . DIR_ADMIN . "coupons.php" ?>"> <i class="gift icon"></i> Coupon </a> <a class="item" href="<?php echo LINK_ROOT . DIR_ADMIN . "configuration.php" ?>"> <i class="settings icon"></i> Configuration </a> <?php } else { ?> <a class="item" href="<?php echo LINK_ROOT . DIR_ADMIN . "user_cinema.php" ?>"> Admin Cinema </a> <?php } ?> <?php if (!empty($_SESSION['user_login']) && $_SESSION['user_login'] === "logined") { ?> <div class="right menu"> <div class="ui dropdown item"> Hi, <?php echo $_SESSION['user_info']['email'] ?><i class="dropdown icon"></i> <div class="menu"> <a class="item" href="<?php echo LINK_ROOT; ?>/logout.php">Logout</a> </div> </div> </div> <?php } else { ?> <?php }?> </div>
09-movie
trunk/admin/include/menu.php
PHP
gpl3
2,404
<link rel="stylesheet" href="<?php echo LINK_ROOT . DIR_SHARED_LAYOUT_CSS ?>site.css"> <link rel="stylesheet" href="<?php echo LINK_ROOT . DIR_SHARED_LAYOUT_CSS ?>ts.css">
09-movie
trunk/admin/include/head_css.php
PHP
gpl3
174
<footer> <div class="ui center"> Designed by <a href="http://facebook.com/TechStormTeam">TechStorm</a> </div> </footer>
09-movie
trunk/admin/include/footer.php
Hack
gpl3
139
<?php require_once DOCUMENT_ROOT . DIR_ADMIN_INCLUDE . 'title.php'; require_once DOCUMENT_ROOT . DIR_ADMIN_INCLUDE . 'menu.php'; ?>
09-movie
trunk/admin/include/header.php
PHP
gpl3
140
<div class="ui orange horizontal label"><h2>Administrator Panel</h2></div>
09-movie
trunk/admin/include/title.php
Hack
gpl3
76
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title><?php echo $title; ?></title> <!-- Favicon --> <link rel="icon" type="image/png" href="<?php echo LINK_ROOT . '/favicon.png' ?>"> <!-- Semantic CSS --> <link href="<?php echo LINK_ROOT . DIR_SHARED_LAYOUT_SEMANTIC_CSS ?>semantic.min.css" rel="stylesheet" > <!-- Slider CSS --> <link href="<?php echo LINK_ROOT . DIR_SHARED_PLUGIN_WOWSLIDER_CSS ?>style.css" rel="stylesheet" > <!-- Jquery v1.11.1 + UIKit JS --> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.js"></script> <script src="<?php echo LINK_ROOT . DIR_SHARED_LAYOUT_SEMANTIC_JS ?>semantic.js"></script> <script src="<?php echo LINK_ROOT . DIR_SHARED_LAYOUT_SEMANTIC_JS ?>semantic.min.js"></script> <!-- Jquery + Date picker master --> <script src="<?php echo LINK_ROOT . DIR_SHARED_PLUGIN_DATETIMEPICKERMASTER ?>jquery.datetimepicker.js"></script> <link rel="stylesheet" href="<?php echo LINK_ROOT . DIR_SHARED_PLUGIN_DATETIMEPICKERMASTER ?>jquery.datetimepicker.css"> <!-- Addon CSS files + Javascripts Functions--> <?php require_once DOCUMENT_ROOT . DIR_ADMIN_INCLUDE . 'head_css.php'; require_once DOCUMENT_ROOT . DIR_ADMIN_INCLUDE . 'head_script.php'; ?>
09-movie
trunk/admin/include/head.php
PHP
gpl3
1,222
<?php //require section require_once dirname(dirname(__FILE__)) . '/shared/config/config.php'; require_once DOCUMENT_ROOT . DIR_INCLUDE . '/check_user_cinema_login.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_security.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_booking.php'; $title = 'Admin Page'; $booking_code = filter_input(INPUT_POST, "txt_booking_code"); $error_show = ""; $success_info = ""; if (!empty($booking_code)) { if (api_booking::search_existing_code($booking_code)) { $success_info = "Booking Code Existing!"; } else { $error_show = "Booking Code Not Found."; } } ?> <!DOCTYPE html> <html> <head> <?php require_once DOCUMENT_ROOT . DIR_ADMIN_INCLUDE . 'head.php'; ?> </head> <body> <div class="ui page grid"> <div class="column ts-wrapper"> <?php require_once DOCUMENT_ROOT . DIR_ADMIN_INCLUDE . 'header.php'; ?> <div class="ts-inner-wrapper" style="min-height: 700px"> <h1>Welcome to Administrator Panel for Cinema</h1> <?php if (!empty($error_show)) { ?> <div class="ui error message"> <i class="close icon"></i> <div class="header"> <?php echo $error_show; ?> </div> </div> <?php } else if (!empty($success_info)) { ?> <div class="ui success message"> <div class="header"> <?php echo $success_info; ?> </div> </div> <?php } else if (!empty($info)) { echo $info; } ?> <div class="ui form segment form-background"> <form action="?" method="POST" id="form_search_booking_code" name="form_search_booking_code"> <div class="field"> <label for="txt_booking_code">Booking Code</label> <input id="txt_booking_code" name="txt_booking_code" placeholder="Put your code here" type="text" /> </div> <div class="ui buttons"> <div id="action-button" class="ui orange button" onclick="search_booking_code();"><i class="search icon"></i> Search</div> </div> </form> </div> </div> <?php require_once DOCUMENT_ROOT . DIR_ADMIN_INCLUDE . 'footer.php'; ?> </div> </div> </body> </html>
09-movie
trunk/admin/user_cinema.php
PHP
gpl3
3,223
<?php //require section require_once dirname(dirname(__FILE__)) . '/shared/config/config.php'; require_once DOCUMENT_ROOT . DIR_INCLUDE . '/check_user_login.php'; require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_pager.php'; require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_upload.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_coupons.php'; $title = 'Admin Page'; $id = 0; $coupon_code = ""; $discount_number = ""; $discount_type = api_coupons::get_default_discount_type(); $action = "Add"; if (!empty($_GET['Action']) && $_GET['Action'] === 'Edit') { if (!empty($_GET['Id'])) { $id = $_GET['Id']; } $edit_item = api_coupons::get_coupon_by_id($id); $id = $edit_item['id']; $coupon_code = $edit_item['coupon_code']; $discount_number = $edit_item['discount_number']; $discount_type = $edit_item['type_name']; $action = "Update"; } else if (!empty($_POST)) { $id_save = ""; if (!empty($_POST['hidd_id'])) { $id_save = $_POST['hidd_id']; } $coupon_code_save = ""; if (!empty($_POST['txt_coupon_code'])) { $coupon_code_save = $_POST['txt_coupon_code']; } $discount_number_save = ""; if (!empty($_POST['txt_discount_number'])) { $discount_number_save = $_POST['txt_discount_number']; } $discount_type_save = ""; if (!empty($_POST['ddl_discount_type'])) { $discount_type_save = $_POST['ddl_discount_type']; } if (!empty($_POST['Action']) && ($_POST['Action'] === "Add" || $_POST['Action'] === "Update")) { $error_show = api_coupons::validate_coupon_fields($coupon_code_save, $discount_number_save, $discount_type_save); if (empty($error_show)) { $discount_type_id = api_coupons::get_discount_type_id_from_name($discount_type_save); if (api_coupons::save_coupon($id_save, $coupon_code_save, $discount_type_id, $discount_number_save)) { $success_info = "Added &lt;".$coupon_code_save."&gt; coupon successfully."; if ($id_save > 0) { $success_info = "Update &lt;".$coupon_code_save."&gt; coupon successfully."; } } } else { $id = $id_save; $coupon_code = $coupon_code_save; $discount_number = $discount_number_save; $discount_type = $discount_type_save; $action = $_POST['Action']; } } else if (!empty($_POST['Action']) && $_POST['Action'] === "Delete") { $id_delete = 0; if (!empty($_POST['hidd_delete_id'])) { $id_delete = $_POST['hidd_delete_id']; } api_coupons::delete_coupon($id_delete); } } ?> <!DOCTYPE html> <html> <head> <?php require_once DOCUMENT_ROOT . DIR_ADMIN_INCLUDE . 'head.php'; ?> </head> <body> <div class="ui page grid"> <div class="column ts-wrapper"> <?php require_once DOCUMENT_ROOT . DIR_ADMIN_INCLUDE . 'header.php'; ?> <div class="ts-inner-wrapper"> <h1>Coupons</h1> <?php if (!empty($error_show)) { ?> <div class="ui error message"> <i class="close icon"></i> <div class="header"> Please correct these wrongs. </div> <ul class="list"> <?php echo $error_show; ?> </ul> </div> <?php } else if (!empty($success_info)) { ?> <div class="ui success message"> <i class="close icon"></i> <div class="header"> <?php echo $success_info; ?> </div> </div> <?php } ?> <div class="hide" id="add-edit-popup"> <form action="coupons.php" method="POST" id="form_delete" > <input type="hidden" name="hidd_delete_id" value="0" /> <input type="hidden" name="Action" value="Delete" /> </form> <form name="form_data" id="form_data" method="POST" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>" enctype="multipart/form-data"> <div class="ui form segment form-background"> <input type="hidden" name="hidd_id" value="<?php echo $id; ?>" /> <div class="field"> <label for="Title">Coupon Code <span class="required">*</span></label> <input name="txt_coupon_code" value="<?php echo $coupon_code; ?>" placeholder="e.g: O2R12E" type="text"> </div> <div class="field"> <label for="Status">Discount Type</label> <div class="ui selection dropdown"> <input type="hidden" name="ddl_discount_type" value="<?php echo $discount_type; ?>"> <div class="text"><?php echo $discount_type; ?></div> <i class="dropdown icon"></i> <div class="menu ui transition hidden"> <?php $list = api_coupons::get_all_discount_types(); $text = ""; if (!empty($list) && count($list) > 0) { foreach ($list as $item) {?> <div class="item"><?php echo $item['name']; ?></div> <?php } }?> </div> </div> </div> <div class="field"> <label for="Name">Discount Number <span class="required">*</span></label> <input type="text" name="txt_discount_number" value="<?php echo $discount_number; ?>" placeholder="e.g: 30" /> </div> <input type="hidden" name="Action" value="add"> <div class="ui buttons"> <a href="?"><div class="ui button">Cancel</div></a> <div class="or"></div> <div id="action-button" class="ui orange button" onclick="submit_data();"><?php echo $action; ?></div> </div> </div> </form> </div> <h2>List</h2> <table class="ui table segment"> <thead> <tr><th>Coupon Code</th> <th>Discount Type</th> <th>Discount Number</th> <th>Actions</th> </tr></thead> <tbody> <?php $list = api_coupons::get_all_coupons(); if (empty($list) || count($list) == 0) { echo "<tr><td>No item found.</td></tr>"; } else { $current_page = 1; if (!empty($_GET['p'])) { $current_page = $_GET['p']; } $list_total = $list; $page_size = 10; $lib_pager = new lib_pager($list_total, $page_size); $total_page = $lib_pager->get_total_page(); $current_page_list = $lib_pager->get_current_page_list($current_page); foreach ($current_page_list as $item) {?> <tr> <td><?php echo $item['coupon_code']; ?></td> <td><?php echo $item['type_name']; ?></td> <td><?php echo $item['discount_number'] . " " . $item['type_unit']; ?></td> <td> <a href="?Action=Edit&Id=<?php echo $item['id']; ?>"> <i class="pencil icon"></i> </a> <i class="remove icon" onclick="confirmDelete('<?php echo $item['id']; ?>')"></i> </td> </tr> <?php } }?> </tbody> <tfoot> <tr><th colspan="4"> <div class="ui orange labeled icon button" onclick="show_popup();" ><i class="gift icon"></i> Add Coupons</div> <table class="paging-footer"> <tbody> <tr> <?php if (!empty($total_page) && count($total_page) > 0) { for ($page = 1; $page <= $total_page; $page++) { ?> <td> <span> <a href="?p=<?php echo $page; ?>" <?php if ($current_page != $page) echo 'style="color:Black;"'; ?>><?php echo $page; ?></a> </span> </td> <?php } }?> </tr> </tbody> </table> </th> </tr></tfoot> </table> <script type="text/javascript"> <?php if ((!empty($_GET['Action']) && $_GET['Action'] === "Edit") || (!empty($_POST['Action']) && ($_POST['Action'] === "Update" || $_POST['Action'] === "Add"))) { echo "show_popup();"; } ?> </script> </div> <?php require_once DOCUMENT_ROOT . DIR_ADMIN_INCLUDE . 'footer.php'; ?> </div> </div> </body> </html>
09-movie
trunk/admin/coupons.php
PHP
gpl3
11,870
<?php //require section require_once dirname(dirname(__FILE__)) . '/shared/config/config.php'; require_once DOCUMENT_ROOT . DIR_INCLUDE . '/check_user_login.php'; require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_pager.php'; require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_upload.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_booking.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_users.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_tickets.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_combos.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_coupons.php'; $title = 'Admin Page'; $id = 0; $email = api_booking::get_default_user_email(); $ticket = api_booking::get_default_ticket(); $ticket_quantity_solve = ""; $coupon_code = api_booking::get_default_coupon_code(); $combo = api_booking::get_default_combo(); $combo_quantity_solve = ""; $action = "Add"; if (!empty($_GET['Action']) && $_GET['Action'] === 'Edit') { if (!empty($_GET['Id'])) { $id = $_GET['Id']; } $edit_item = api_booking::get_booking_by_id($id); $id = $edit_item['id']; $email = $edit_item['user_email']; $ticket = $edit_item['ticket_name']; $ticket_quantity_solve = $edit_item['ticket_quantity']; $coupon_code = $edit_item['coupon_code']; $combo = $edit_item['combo_name']; $combo_quantity_solve = $edit_item['combo_quantity']; $action = "Update"; } else if (!empty($_POST)) { $id_save = ""; if (!empty($_POST['hidd_id'])) { $id_save = $_POST['hidd_id']; } $email_save = ""; if (!empty($_POST['ddl_email'])) { $email_save = $_POST['ddl_email']; } $ticket_save = ""; if (!empty($_POST['ddl_ticket'])) { $ticket_save = $_POST['ddl_ticket']; } $ticket_quantity_solve_save = ""; if (!empty($_POST['txt_ticket_quantity_solve'])) { $ticket_quantity_solve_save = $_POST['txt_ticket_quantity_solve']; } $coupon_code_save = ""; if (!empty($_POST['ddl_coupon_code'])) { $coupon_code_save = $_POST['ddl_coupon_code']; } $combo_save = ""; if (!empty($_POST['ddl_combo'])) { $combo_save = $_POST['ddl_combo']; } $combo_quantity_solve_save = ""; if (!empty($_POST['txt_combo_quantity_solve'])) { $combo_quantity_solve_save = $_POST['txt_combo_quantity_solve']; } if (!empty($_POST['Action']) && ($_POST['Action'] === "Add" || $_POST['Action'] === "Update")) { $error_show = api_booking::validate_booking_fields($email_save, $ticket_save, $ticket_quantity_solve_save, $coupon_code_save, $combo_save, $combo_quantity_solve_save); if (empty($error_show)) { $ticket_id = api_booking::get_ticket_id_from_name($ticket_save); $user_id = api_booking::get_user_id_from_email($email_save); $coupon_id = api_booking::get_coupon_id_from_coupon_code($coupon_code_save); $combo_id = api_booking::get_combo_id_from_name($combo_save); if (api_booking::save_booking($id_save, $user_id, $ticket_id, $ticket_quantity_solve_save, $coupon_id, $combo_id, $combo_quantity_solve_save)) { $success_info = "Added booking of &lt;".$email_save."&gt; user successfully."; if ($id_save > 0) { $success_info = "Update booking of &lt;".$email_save."&gt; user successfully."; } } } else { $id = $id_save; $email = $email_save; $ticket = $ticket_save; $ticket_quantity_solve = $ticket_quantity_solve_save; $coupon_code = $coupon_code_save; $combo = $combo_save; $combo_quantity_solve = $combo_quantity_solve_save; $action = $_POST['Action']; } } else if (!empty($_POST['Action']) && $_POST['Action'] === "Delete") { $id_delete = 0; if (!empty($_POST['hidd_delete_id'])) { $id_delete = $_POST['hidd_delete_id']; } api_booking::delete_booking($id_delete); } } ?> <!DOCTYPE html> <html> <head> <?php require_once DOCUMENT_ROOT . DIR_ADMIN_INCLUDE . 'head.php'; ?> </head> <body> <div class="ui page grid"> <div class="column ts-wrapper"> <?php require_once DOCUMENT_ROOT . DIR_ADMIN_INCLUDE . 'header.php'; ?> <div class="ts-inner-wrapper"> <h1>Booking Lines</h1> <?php if (!empty($error_show)) { ?> <div class="ui error message"> <i class="close icon"></i> <div class="header"> Please correct these wrongs. </div> <ul class="list"> <?php echo $error_show; ?> </ul> </div> <?php } else if (!empty($success_info)) { ?> <div class="ui success message"> <i class="close icon"></i> <div class="header"> <?php echo $success_info; ?> </div> </div> <?php } ?> <div class="hide" id="add-edit-popup"> <form action="booking.php" method="POST" id="form_delete" > <input type="hidden" name="hidd_delete_id" value="0" /> <input type="hidden" name="Action" value="Delete" /> </form> <form name="form_data" id="form_data" method="POST" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>" enctype="multipart/form-data"> <div class="ui form segment form-background"> <input type="hidden" name="hidd_id" value="<?php echo $id; ?>" /> <div class="field"> <label for="Status">User <span class="required">*</span></label> <div class="ui selection dropdown"> <input type="hidden" name="ddl_email" value="<?php echo $email; ?>"> <div class="text"><?php echo $email; ?></div> <i class="dropdown icon"></i> <div class="menu ui transition hidden"> <?php $list = api_users::get_all_users(); if (!empty($list) && count($list) > 0) { foreach ($list as $item) {?> <div class="item"><?php echo $item['email']; ?></div> <?php } }?> </div> </div> </div> <div class="field"> <label for="Status">Ticket <span class="required">*</span></label> <div class="ui selection dropdown"> <input type="hidden" name="ddl_ticket" value="<?php echo $ticket; ?>"> <div class="text"><?php echo $ticket; ?></div> <i class="dropdown icon"></i> <div class="menu ui transition hidden"> <?php $list = api_tickets::get_all_tickets(); if (!empty($list) && count($list) > 0) { foreach ($list as $item) {?> <div class="item"><?php echo $item['name']; ?></div> <?php } }?> </div> </div> </div> <div class="field"> <label for="Name">Ticket Quantity Solve <span class="required">*</span></label> <input type="text" name="txt_ticket_quantity_solve" value="<?php echo $ticket_quantity_solve; ?>" placeholder="e.g: 2" /> </div> <div class="field"> <label for="Status">Coupon Code <span class="required">*</span></label> <div class="ui selection dropdown"> <input type="hidden" name="ddl_coupon_code" value="<?php echo $coupon_code; ?>"> <div class="text"><?php echo $coupon_code; ?></div> <i class="dropdown icon"></i> <div class="menu ui transition hidden"> <?php $list = api_coupons::get_all_coupons(); if (!empty($list) && count($list) > 0) { foreach ($list as $item) {?> <div class="item"><?php echo $item['coupon_code']; ?></div> <?php } }?> </div> </div> </div> <div class="field"> <label for="Status">Combo <span class="required">*</span></label> <div class="ui selection dropdown"> <input type="hidden" name="ddl_combo" value="<?php echo $combo; ?>"> <div class="text"><?php echo $combo; ?></div> <i class="dropdown icon"></i> <div class="menu ui transition hidden"> <?php $list = api_combos::get_all_combos(); if (!empty($list) && count($list) > 0) { foreach ($list as $item) {?> <div class="item"><?php echo $item['name']; ?></div> <?php } }?> </div> </div> </div> <div class="field"> <label for="Name">Combo Quantity Solve <span class="required">*</span></label> <input type="text" name="txt_combo_quantity_solve" value="<?php echo $combo_quantity_solve; ?>" placeholder="e.g: 2" /> </div> <input type="hidden" name="Action" value="add"> <div class="ui buttons"> <a href="?"><div class="ui button">Cancel</div></a> <div class="or"></div> <div id="action-button" class="ui orange button" onclick="submit_data();"><?php echo $action; ?></div> </div> </div> </form> </div> <h2>List</h2> <table class="ui table segment"> <thead> <tr> <th>Row Position</th> <th>Column Position</th> <!--<th>Actions</th>--> </tr></thead> <tbody> <?php $booking_id = filter_input(INPUT_GET, "booking_id"); $user_id = filter_input(INPUT_GET, "user_id"); $list = api_booking::get_all_booking_lines_by_booking_id($booking_id, $user_id); if (empty($list) || count($list) == 0) { echo "<tr><td>No item found.</td></tr>"; } else { $current_page = 1; if (!empty($_GET['p'])) { $current_page = $_GET['p']; } $list_total = $list; $page_size = 10; $lib_pager = new lib_pager($list_total, $page_size); $total_page = $lib_pager->get_total_page(); $current_page_list = $lib_pager->get_current_page_list($current_page); foreach ($current_page_list as $item) {?> <tr> <td><?php echo $item['row_pos']; ?></td> <td><?php echo $item['column_pos']; ?></td> <!-- <td> <a href="?Action=Edit&Id=<?php echo $item['id']; ?>"> <i class="pencil icon"></i> </a> <i class="remove icon" onclick="confirmDelete('<?php echo $item['id']; ?>')"></i> <a href="<?php echo LINK_ROOT . DIR_ADMIN ?>booking_lines.php"><img src="<?php echo LINK_ROOT . DIR_SHARED_LAYOUT_IMAGES_ICONS ?>view.png" /></a> </td>--> <?php } }?> </tbody> <tfoot> <tr><th colspan="8"> <!--<div class="ui orange labeled icon button" onclick="show_popup();" ><i class="flag icon"></i> Add Booking</div>--> <table class="paging-footer"> <tbody> <tr> <?php if (!empty($total_page) && count($total_page) > 0) { for ($page = 1; $page <= $total_page; $page++) { ?> <td> <span> <a href="?p=<?php echo $page; ?>" <?php if ($current_page != $page) echo 'style="color:Black;"'; ?>><?php echo $page; ?></a> </span> </td> <?php } }?> </tr> </tbody> </table> </th> </tr></tfoot> </table> <script type="text/javascript"> <?php if ((!empty($_GET['Action']) && $_GET['Action'] === "Edit") || (!empty($_POST['Action']) && ($_POST['Action'] === "Update" || $_POST['Action'] === "Add"))) { echo "show_popup();"; } ?> </script> </div> <?php require_once DOCUMENT_ROOT . DIR_ADMIN_INCLUDE . 'footer.php'; ?> </div> </div> </body> </html>
09-movie
trunk/admin/booking_lines.php
PHP
gpl3
17,115
<?php //require section require_once dirname(dirname(__FILE__)) . '/shared/config/config.php'; require_once DOCUMENT_ROOT . DIR_INCLUDE . '/check_user_login.php'; require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_pager.php'; require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_upload.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_users.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_cinemas.php'; $title = 'Admin Page'; $id = 0; $first_name = ""; $last_name = ""; $phone_number = ""; $email = ""; $password = ""; $user_cinema_id = 0; $action = "Add"; if (!empty($_GET['Action']) && $_GET['Action'] === 'Edit') { if (!empty($_GET['Id'])) { $id = $_GET['Id']; } $edit_item = api_users::get_user_by_id($id); $id = $edit_item['id']; $first_name = $edit_item['first_name']; $last_name = $edit_item['last_name']; $phone_number = $edit_item['phone_number']; $email = $edit_item['email']; $user_cinema_id = $edit_item['cinema_id']; $action = "Update"; } else if (!empty($_POST)) { $id_save = ""; if (!empty($_POST['hidd_id'])) { $id_save = $_POST['hidd_id']; } $first_name_save = ""; if (!empty($_POST['txt_first_name'])) { $first_name_save = $_POST['txt_first_name']; } $last_name_save = ""; if (!empty($_POST['txt_last_name'])) { $last_name_save = $_POST['txt_last_name']; } $phone_number_save = ""; if (!empty($_POST['txt_phone_number'])) { $phone_number_save = $_POST['txt_phone_number']; } $email_save = ""; if (!empty($_POST['txt_email'])) { $email_save = $_POST['txt_email']; } $password_save = ""; if (!empty($_POST['txt_password'])) { $password_save = $_POST['txt_password']; } $password_confirm_save = ""; if (!empty($_POST['txt_password_confirm'])) { $password_confirm_save = $_POST['txt_password_confirm']; } $user_cinema_id_save = ""; if (!empty($_POST['ddl_user_cinema'])) { $user_cinema_id_save = $_POST['ddl_user_cinema']; } if (!empty($_POST['Action']) && ($_POST['Action'] === "Add" || $_POST['Action'] === "Update")) { $error_show = api_users::validate_user_fields($id_save, $first_name_save, $last_name_save, $phone_number_save, $email_save, $password_save, $password_confirm_save); if (empty($error_show)) { if (api_users::save_user($id_save, $first_name_save, $last_name_save, $phone_number_save, $email_save, $password_save, $user_cinema_id_save)) { $success_info = "Added &lt;".$email_save."&gt; user successfully."; if ($id_save > 0) { $success_info = "Update &lt;".$email_save."&gt; user successfully."; } } } else { $id = $id_save; $first_name = $first_name_save; $last_name = $last_name_save; $phone_number = $phone_number_save; $user_cinema_id = $user_cinema_id_save; $email = $email_save; $action = $_POST['Action']; } } else if (!empty($_POST['Action']) && $_POST['Action'] === "Delete") { $id_delete = 0; if (!empty($_POST['hidd_delete_id'])) { $id_delete = $_POST['hidd_delete_id']; } api_users::delete_user($id_delete); } } ?> <!DOCTYPE html> <html> <head> <?php require_once DOCUMENT_ROOT . DIR_ADMIN_INCLUDE . 'head.php'; ?> </head> <body> <div class="ui page grid"> <div class="column ts-wrapper"> <?php require_once DOCUMENT_ROOT . DIR_ADMIN_INCLUDE . 'header.php'; ?> <div class="ts-inner-wrapper"> <h1>Users</h1> <?php if (!empty($error_show)) { ?> <div class="ui error message"> <i class="close icon"></i> <div class="header"> Please correct these wrongs. </div> <ul class="list"> <?php echo $error_show; ?> </ul> </div> <?php } else if (!empty($success_info)) { ?> <div class="ui success message"> <i class="close icon"></i> <div class="header"> <?php echo $success_info; ?> </div> </div> <?php } ?> <div class="hide" id="add-edit-popup"> <form action="users.php" method="POST" id="form_delete" > <input type="hidden" name="hidd_delete_id" value="0" /> <input type="hidden" name="Action" value="Delete" /> </form> <form name="form_data" id="form_data" method="POST" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>" enctype="multipart/form-data"> <div class="ui form segment form-background"> <input type="hidden" name="hidd_id" value="<?php echo $id; ?>" /> <div class="two fields"> <div class="field"> <label for="FirstName">First Name</label> <input name="txt_first_name" class="small input" value="<?php echo $first_name; ?>" placeholder="First Name" type="text" /> </div> <div class="field"> <label for="LastName">Last Name</label> <input name="txt_last_name" value="<?php echo $last_name; ?>" placeholder="Last Name" type="text"> </div> </div> <div class="field"> <label for="PhoneNumber">Phone Number</label> <input type="text" placeholder="e.g: 0988549089" name="txt_phone_number" value="<?php echo $phone_number; ?>"/> </div> <div class="field"> <label for="Email">Email</label> <input id="txt_email" name="txt_email" value="<?php echo $email; ?>" placeholder="e.g: your_name@example.com" type="text"> </div> <div class="field"> <label for="Password">Password</label> <input name="txt_password" type="password" value=""> </div> <div class="field"> <label for="PasswordConfirm">Password Confirm</label> <input name="txt_password_confirm" value="" type="password"> </div> <div class="field"> <label for="Status">User Cinema </label> <div class="ui selection dropdown"> <input type="hidden" name="ddl_user_cinema" value="<?php echo $user_cinema_id; ?>"> <div class="text">--No Selected--</div> <i class="dropdown icon"></i> <div class="menu ui transition hidden"> <div class="item" data-value="0">--No Selected--</div> <?php $list = api_cinemas::get_all_cinemas(); if (!empty($list) && count($list) > 0) { foreach ($list as $item) {?> <div class="item" data-value="<?php echo $item['id']; ?>" <?php if($item['id'] == $user_cinema_id) {echo "active";} ?>> <?php echo $item['name']; ?></div> <?php } }?> </div> </div> </div> <input type="hidden" name="Action" value="add"> <div class="ui buttons"> <a href="?"><div class="ui button">Cancel</div></a> <div class="or"></div> <div id="action-button" class="ui orange button" onclick="submit_data();"><?php echo $action; ?></div> </div> </div> </form> </div> <h2>List</h2> <table class="ui table segment"> <thead> <tr><th>First Name</th> <th>Last Name</th> <th>Phone Number</th> <th>Email</th> <th>User Cinema</th> <th>Actions</th> </tr></thead> <tbody> <?php $list = api_users::get_all_users(); if (empty($list) || count($list) == 0) { echo "<tr><td>No item found.</td></tr>"; } else { $current_page = 1; if (!empty($_GET['p'])) { $current_page = $_GET['p']; } $list_total = $list; $page_size = 10; $lib_pager = new lib_pager($list_total, $page_size); $total_page = $lib_pager->get_total_page(); $current_page_list = $lib_pager->get_current_page_list($current_page); foreach ($current_page_list as $item) {?> <tr> <td><?php echo $item['first_name']; ?></td> <td><?php echo $item['last_name']; ?></td> <td><?php echo $item['phone_number']; ?></td> <td><?php echo $item['email']; ?></td> <td><?php echo $item['cinema_name']; ?></td> <td> <a href="?Action=Edit&Id=<?php echo $item['id']; ?>"> <i class="pencil icon"></i> </a> <i class="remove icon" onclick="confirmDelete('<?php echo $item['id']; ?>')"></i> </td> </tr> <?php } }?> </tbody> <tfoot> <tr><th colspan="6"> <div class="ui orange labeled icon button" onclick="show_popup();" ><i class="users icon"></i> Add Users</div> <table class="paging-footer"> <tbody> <tr> <?php if (!empty($total_page) && count($total_page) > 0) { for ($page = 1; $page <= $total_page; $page++) { ?> <td> <span> <a href="?p=<?php echo $page; ?>" <?php if ($current_page != $page) echo 'style="color:Black;"'; ?>><?php echo $page; ?></a> </span> </td> <?php } }?> </tr> </tbody> </table> </th> </tr></tfoot> </table> <script type="text/javascript"> <?php if ((!empty($_GET['Action']) && $_GET['Action'] === "Edit") || (!empty($_POST['Action']) && ($_POST['Action'] === "Update" || $_POST['Action'] === "Add"))) { echo "show_popup();"; } ?> </script> </div> <?php require_once DOCUMENT_ROOT . DIR_ADMIN_INCLUDE . 'footer.php'; ?> </div> </div> </body> </html>
09-movie
trunk/admin/users.php
PHP
gpl3
14,161
<?php //require section require_once dirname(dirname(__FILE__)) . '/shared/config/config.php'; require_once DOCUMENT_ROOT . DIR_INCLUDE . '/check_user_login.php'; require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_pager.php'; require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_upload.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_movies.php'; $title = 'Admin Page'; function add($number) { $title_save = ""; if (!empty($_POST['Title'.$number])) { $title_save = $_POST['Title'.$number]; } $description_save = ""; if (!empty($_POST['Description'.$number])) { $description_save = $_POST['Description'.$number]; } $poster_save = ""; if (!empty($_FILES['File_Poster'.$number]['size'])) { $lib_upload = new lib_upload(); if ($lib_upload->upload_file('File_Poster'.$number, DOCUMENT_ROOT . DIR_SHARED_UPLOAD_IMAGES_POSTERS)) { $poster_save = $_FILES['File_Poster'.$number]['name']; } } else if (!empty($_POST['Poster'.$number])) { $poster_save = $_POST['Poster'.$number]; } $status_save = api_movies::get_default_movie_statuses(); if (!empty($_POST['Status'.$number])) { $status_save = $_POST['Status'.$number]; } $error = api_movies::validate_movie_fields($title_save, $description_save, $poster_save); if (empty($error)) { $status_id = api_movies::get_status_id_from_name($status_save); if (api_movies::save_movie(0, $title_save, $status_id, $description_save, $poster_save)) { $success_info = ""; $success_info .= '<div class="ui success message">'; $success_info .= '<i class="close icon"></i>'; $success_info .= '<div class="header">'; $success_info .= "Added &lt;".$title_save."&gt; movies successfully."; $success_info .= "</div></div>"; return $success_info; } } $error_show = ''; $error_show .= '<div class="ui error message">'; $error_show .= ' <i class="close icon"></i>'; $error_show .= ' <div class="header">'; $error_show .= ' add &lt;'.$title_save.'&gt; movies failed with these wrongs.'; $error_show .= ' </div>'; $error_show .= ' <ul class="list">'; $error_show .= $error; $error_show .= ' </ul>'; $error_show .= '</div>'; return $error_show; } $id = 0; $title = ""; $description = ""; $poster = ""; $status = api_movies::get_default_movie_statuses(); $action = "Add"; if (!empty($_GET['Action']) && $_GET['Action'] === 'Edit') { if (!empty($_GET['Id'])) { $id = $_GET['Id']; } $edit_item = api_movies::get_movie_by_id($id); $id = $edit_item['id']; $title = $edit_item['title']; $description = $edit_item['description']; $poster = $edit_item['poster']; $status = $edit_item['status_name']; $action = "Update"; } else if (!empty($_POST)) { $id_save = ""; if (!empty($_POST['Id'])) { $id_save = $_POST['Id']; } $title_save = ""; if (!empty($_POST['Title'])) { $title_save = $_POST['Title']; } $description_save = ""; if (!empty($_POST['Description'])) { $description_save = $_POST['Description']; } $poster_save = ""; if (!empty($_FILES['File_Poster']['size'])) { $lib_upload = new lib_upload(); if ($lib_upload->upload_file('File_Poster', DOCUMENT_ROOT . DIR_SHARED_UPLOAD_IMAGES_POSTERS)) { $poster_save = $_FILES['File_Poster']['name']; } } else if (!empty($_POST['Poster'])) { $poster_save = $_POST['Poster']; } $status_save = ""; if (!empty($_POST['Status'])) { $status_save = $_POST['Status']; } if (!empty($_POST['Action']) && $_POST['Action'] === "Update") { $error_show = api_movies::validate_movie_fields($title_save, $description_save, $poster_save); if (empty($error_show)) { $status_id = api_movies::get_status_id_from_name($status_save); if (api_movies::save_movie($id_save, $title_save, $status_id, $description_save, $poster_save)) { $success_info = "Update &lt;".$title_save."&gt; movie successfully."; } } else { $id = $id_save; $title = $title_save; $description = $description_save; $poster = $poster_save; $status = $status_save; $action = $_POST['Action']; } } else if (!empty($_POST['Action']) && $_POST['Action'] === "Delete") { $id_delete = 0; if (!empty($_POST['hidd_delete_id'])) { $id_delete = $_POST['hidd_delete_id']; } api_movies::delete_movie($id_delete); } else if (!empty($_POST['Action']) && $_POST['Action'] === "Add All") { $number = 0; $info = ""; while (!empty($_POST['index'.$number]) && $_POST['index'.$number] == 1) { $info .= add($number); $number++; } } } ?> <!DOCTYPE html> <html> <head> <?php require_once DOCUMENT_ROOT . DIR_ADMIN_INCLUDE . 'head.php'; ?> </head> <body> <div class="ui page grid"> <div class="column ts-wrapper"> <?php require_once DOCUMENT_ROOT . DIR_ADMIN_INCLUDE . 'header.php'; ?> <div class="ts-inner-wrapper"> <h1>Movies</h1> <?php if (!empty($error_show)) { ?> <div class="ui error message"> <i class="close icon"></i> <div class="header"> Please correct these wrongs. </div> <ul class="list"> <?php echo $error_show; ?> </ul> </div> <?php } else if (!empty($success_info)) { ?> <div class="ui success message"> <i class="close icon"></i> <div class="header"> <?php echo $success_info; ?> </div> </div> <?php } else if (!empty($info)) { echo $info; } ?> <div class="hide" id="add-edit-popup"> <form action="movies.php" method="POST" id="form_delete" > <input type="hidden" name="hidd_delete_id" value="0" /> <input type="hidden" name="Action" value="Delete" /> </form> <form name="form_data" id="form_data" method="POST" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>" enctype="multipart/form-data"> <div class="ui form segment form-background"> <input type="hidden" name="Id" value="<?php echo $id; ?>" /> <div class="field"> <label for="Title">Title <span class="required">*</span></label> <input id="Title" name="Title" value="<?php echo $title ?>" placeholder="Title" type="text"> </div> <div class="field"> <label for="Status">Status</label> <div class="ui selection dropdown"> <input type="hidden" name="Status" value="<?php echo $status; ?>"> <?php ?> <div class="text"><?php echo $status; ?></div> <i class="dropdown icon"></i> <div class="menu ui transition hidden"> <?php $list = api_movies::get_all_movie_statuses(); $text = ""; if (!empty($list) && count($list) > 0) { foreach ($list as $item) {?> <div class="item"><?php echo $item['name']; ?></div> <?php } }?> </div> </div> </div> <div class="field"> <label for="Description">Description <span class="required">*</span></label> <textarea id="Description" name="Description" placeholder="Description" class="form-control" rows="3"><?php echo $description; ?></textarea> </div> <div class="field"> <label for="Poster">Poster <span class="required">*</span></label> <input type="file" name="File_Poster" /> <?php if (!empty($poster)) { ?> <input name="Poster" type="hidden" value="<?php echo $poster; ?>"> <img src="<?php echo LINK_ROOT . DIR_SHARED_UPLOAD_IMAGES_POSTERS . $poster; ?>" style="max-height: 100px;"> <?php } ?> </div> <input type="hidden" name="Action" value="add"> <div class="ui buttons"> <a href="?"><div class="ui button">Cancel</div></a> <div class="or"></div> <div id="action-button" class="ui orange button" onclick="submit_data();"><?php echo $action; ?></div> </div> </div> </form> </div> <div id="adds"> </div> <h2>List</h2> <table class="ui table segment"> <thead> <tr><th>Title</th> <th>Status</th> <th>Description</th> <th>Poster</th> <th>Actions</th> </tr></thead> <tbody> <?php $list = api_movies::get_all_movies(); if (empty($list) || count($list) == 0) { echo "<tr><td>No item found.</td></tr>"; } else { $current_page = 1; if (!empty($_GET['p'])) { $current_page = $_GET['p']; } $list_total = $list; $page_size = 10; $lib_pager = new lib_pager($list_total, $page_size); $total_page = $lib_pager->get_total_page(); $current_page_list = $lib_pager->get_current_page_list($current_page); foreach ($current_page_list as $item) {?> <tr> <td><?php echo $item['title'];?></td> <td><?php echo $item['status_name'];?></td> <td><?php echo substr(strip_tags($item['description']), 0, 200); if (strlen($item['description']) > 195) {echo "...[More]";}?></td> <td> <a href="<?php echo LINK_ROOT . DIR_SHARED_UPLOAD_IMAGES_POSTERS . $item['poster']; ?>" target="_blank"> <img src="<?php echo LINK_ROOT . DIR_SHARED_UPLOAD_IMAGES_POSTERS . $item['poster']; ?>" style="height:80px;width:60px;" /> </a> </td> <td> <a href="?Action=Edit&Id=<?php echo $item['id']; ?>"> <i class="pencil icon"></i> </a> <i class="remove icon" onclick="confirmDelete('<?php echo $item['id']; ?>')"></i> </td> </tr> <?php } }?> </tbody> <tfoot> <tr><th colspan="5"> <label>Entry number </label> <div class="ui input"> <input id="txt_entry_number" name="txt_entry_number" type="text" width="3em" placeholder="1"> </div> <div class="ui orange labeled icon button" onclick="show_add_popup('add_popup_movies');" ><i class="video icon"></i> Add Movies</div> <table class="paging-footer"> <tbody> <tr> <?php if (!empty($total_page) && count($total_page) > 0) { for ($page = 1; $page <= $total_page; $page++) { ?> <td> <span> <a href="?p=<?php echo $page; ?>" <?php if ($current_page != $page) echo 'style="color:Black;"'; ?>><?php echo $page; ?></a> </span> </td> <?php } }?> </tr> </tbody> </table> </th> </tr></tfoot> </table> <script type="text/javascript"> <?php if (!empty($_GET['Action']) && $_GET['Action'] === "Edit") { echo "show_popup();"; } ?> </script> </div> <?php require_once DOCUMENT_ROOT . DIR_ADMIN_INCLUDE . 'footer.php'; ?> </div> </div> </body> </html>
09-movie
trunk/admin/movies.php
PHP
gpl3
15,872
<?php //require section require_once dirname(__FILE__) . '/shared/config/config.php'; require_once DOCUMENT_ROOT . DIR_INCLUDE . 'check_session.php'; require_once DOCUMENT_ROOT . DIR_INCLUDE . 'check_outside_booking.php'; $title = 'Find ticket by cinema'; if (!empty($_POST)) { } ?> <!DOCTYPE html> <html> <head> <?php require_once DOCUMENT_ROOT . DIR_INCLUDE . 'head.php'; ?> </head> <body> <div class="ts-body-container"> <div class="ts-wrapper"> <!--<div class="ui grid">--> <div class="padding-top-large row"> <?php require_once DOCUMENT_ROOT . DIR_INCLUDE . 'header.php'; ?> <div class="ui segment breadcrumb" style="margin-top: 25px; margin-left: 20px;"> <a class="section">Food</a> <i class="right arrow icon divider"></i> <a class="section">Fruit</a> <i class="right arrow icon divider"></i> <div class="active section">Apples</div> </div> </div> <div class="ui grid"> <div class="row"> <div class="column"> <form action="" name="form_find" id="form_find"> <h1>Find ticket by cinema</h1> <div class="row"> <!-- Date --> <div class="ui left floated purple segment" style="margin-top: 1em; width: 22%;"> <h3>Cinema</h3> <div class="ui form"> <div class="grouped inline fields"> <div class="field"> <div class="ui radio checkbox"> <input name="cb_cinema" checked="checked" type="radio"> <label>Cinema 01</label> </div> </div> <div class="field"> <div class="ui radio checkbox"> <input name="cb_cinema" type="radio"> <label>Cinema 02</label> </div> </div> <div class="field"> <div class="ui radio checkbox"> <input name="cb_cinema" type="radio"> <label>Cinema 03</label> </div> </div> <div class="field"> <div class="ui radio checkbox"> <input name="cb_cinema" type="radio"> <label>Cinema 04</label> </div> </div> </div> </div> </div> <!-- Movie --> <div class="ui left floated orange segment" style="margin-left: 2em; width: 24%;"> <h3>Movie <i>(Now Showing)</i></h3> <div class="ui form"> <div class="grouped inline fields"> <div class="field"> <div class="ui radio checkbox"> <input name="cb_movie" checked="checked" type="radio"> <label>X-men</label> </div> </div> <div class="field"> <div class="ui radio checkbox"> <input name="cb_movie" type="radio"> <label>How To Train Your Dragons 2</label> </div> </div> <div class="field"> <div class="ui radio checkbox"> <input name="cb_movie" type="radio"> <label>The Avengers</label> </div> </div> <div class="field"> <div class="ui radio checkbox"> <input name="cb_movie" type="radio"> <label>Spiderman</label> </div> </div> </div> </div> </div> <!-- Cinema --> <div class="ui left floated purple segment" style="margin-left: 2em; width: 23%;"> <h3>Date</h3> <div class="ui form"> <div class="grouped inline fields"> <div class="field"> <div class="ui radio checkbox"> <input name="cb_date" checked="checked" type="radio"> <label>21/05/2014</label> </div> </div> <div class="field"> <div class="ui radio checkbox"> <input name="cb_date" type="radio"> <label>24/05/2014</label> </div> </div> <div class="field"> <div class="ui radio checkbox"> <input name="cb_date" type="radio"> <label>25/05/2014</label> </div> </div> <div class="field"> <div class="ui radio checkbox"> <input name="cb_date" type="radio"> <label>26/05/2014</label> </div> </div> </div> </div> </div> <!-- Time --> <div class="ui left floated orange segment" style="margin-left: 2em; width: 22%;"> <h3>Time</h3> <div class="ui form"> <div class="grouped inline fields"> <div class="field"> <div class="ui radio checkbox"> <input name="cb_time" checked="checked" type="radio"> <label>09:00</label> </div> </div> <div class="field"> <div class="ui radio checkbox"> <input name="cb_time" type="radio"> <label>11:30</label> </div> </div> <div class="field"> <div class="ui radio checkbox"> <input name="cb_time" type="radio"> <label>13:00</label> </div> </div> <div class="field"> <div class="ui radio checkbox"> <input name="cb_time" type="radio"> <label>17:00</label> </div> </div> </div> </div> </div> </div> <div class="row"> <div class="ts-center"> <!--<input name="btn_submit" type="submit" value="Book Ticket" class="ui orange button">--> <a href="tickets_quantity.php" class="ui orange button">Book Ticket</a> </div> </div> </form> </div> </div> </div> <div class="row"> <?php require_once DOCUMENT_ROOT . DIR_INCLUDE . 'footer.php'; ?> </div> <!--</div>--> </div> </div> </body> </html>
09-movie
trunk/show_by_cinema.php
PHP
gpl3
11,522
<?php //require section require_once dirname(__FILE__) . '/shared/config/config.php'; require_once DOCUMENT_ROOT . DIR_INCLUDE . 'check_session.php'; require_once DOCUMENT_ROOT . DIR_INCLUDE . 'check_outside_booking.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_cinemas.php'; require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_pager.php'; require_once DOCUMENT_ROOT . DIR_INCLUDE . 'general_functions.php'; $title = 'Cinemas'; if (!empty($_POST)) { } ?> <!DOCTYPE html> <html> <head> <?php require_once DOCUMENT_ROOT . DIR_INCLUDE . 'head.php'; ?> </head> <body> <div class="ts-body-container"> <div class="ts-wrapper"> <!--<div class="ui grid">--> <div class="padding-top-large row"> <?php require_once DOCUMENT_ROOT . DIR_INCLUDE . 'header.php'; ?> <div class="ui segment breadcrumb" style="margin-top: 25px; margin-left: 20px;"> <a class="section" href="index.php">Home</a> <i class="right arrow icon divider"></i> <div class="active section">Cinemas</div> </div> </div> <div class="ui grid"> <div class="row"> <div class="column"> <h1>Cinemas</h1> <div class="ui basic segment" id="cinema-list"> <?php $list = api_cinemas::get_all_cinemas(); $current_page = 1; if (!empty($_GET['p'])) { $current_page = $_GET['p']; } $list_total = $list; $page_size = 6; $lib_pager = new lib_pager($list_total, $page_size); $total_page = $lib_pager->get_total_page(); $current_page_list = $lib_pager->get_current_page_list($current_page); if (empty($current_page_list) || count($current_page_list) == 0) { echo "No cinema found."; } else { echo '<div class="row">'; echo '<div class="ui two items">'; foreach ($current_page_list as $key => $item) { if ($key > 0 && $key % 2 == 0) { echo '</div>'; echo '</div>'; echo '<div class="row">'; echo '<div class="ui two items">'; } show_cinema($item); } echo '</div>'; echo '</div>'; } ?> </div> <div class="ts-center"> <div class="ui borderless pagination menu"> <?php if (!empty($total_page) && count($total_page) > 0) { ?> <a class="item" <?php if ($current_page <= 1) { echo "onclick='return false'"; } ?> href="?p=<?php echo $current_page - 1; ?>"> <i class="left arrow icon"></i> Previous </a> <?php for ($page = 1; $page <= $total_page; $page++) { ?> <a class="item" href="?p=<?php echo $page; ?>"><?php echo $page; ?></a> <?php } ?> <a class="item" <?php if ($current_page >= $total_page) { echo "onclick='return false'"; } ?> href="?p=<?php echo $current_page + 1; ?>"> Next <i class="icon right arrow"></i> </a> <?php } ?> </div> </div> </div> </div> </div> <div class="row"> <?php require_once DOCUMENT_ROOT . DIR_INCLUDE . 'footer.php'; ?> </div> <!--</div>--> </div> </div> </body> </html>
09-movie
trunk/cinema.php
PHP
gpl3
5,464
<script type="text/javascript"> $(document).ready(function() { $('.ui .item').on('click', function() { $('.ui .item').removeClass('active'); $(this).addClass('active'); }); $('.ui.dropdown').dropdown({ on: 'hover' }); $('.ui.checkbox').checkbox(); }); $(document).ready(function() { $( "td.seat" ).on( "click", function() { var img = $(this).find('img'); var row = img.attr("data-row"); var column = img.attr("data-col"); var ticket_id = $('input[name="hidd_temp_ticket_id"]').val(); $.ajax({ type: "POST", url: "<?php echo LINK_ROOT . DIR_AJAX; ?>seat_selection.php", data: "ticket_id=" + ticket_id + "&row=" + row + "&column=" + column + "&book_quantity=" + book_quantity + "&booking_id=" + booking_id, success: function (data) { var data_json = jQuery.parseJSON( data ); if (data_json.success) { if (data_json.changed) { img.attr("src", data_json.next_seat_info.image_url); book_quantity = data_json.book_quantity; } else { alert(data_json.notify); } } else { alert(data_json.notify); } } }); }); }); function submitRegister() { $("#form_register").submit(); } function submitLogin() { $("#form_login").submit(); } function navigate(url) { window.location = url; } function submit_book_data() { $("#form_book_ticket").submit(); } function submit_choose_combo() { $("#form_choose_combo").submit(); } </script>
09-movie
trunk/include/head_script.php
PHP
gpl3
2,171
<?php require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_redirect.php'; if (empty($_SESSION['book_info']['status']) || $_SESSION['book_info']['status'] !== "started" || empty($_SESSION['user_login']) || $_SESSION['user_login'] !== "logined") { lib_redirect::Redirect('/login.php'); }
09-movie
trunk/include/check_inside_booking.php
PHP
gpl3
327
<?php $time_out = 60; if(empty($_SESSION['timeout'])){ $_SESSION['timeout'] = time(); } else { $inactive_time = time() - $_SESSION['timeout']; if($inactive_time > $time_out){ $_SESSION['timeout'] = time(); } } ?> <div class="ui orange pointing menu"> <a href="<?php echo LINK_ROOT . '/index.php' ?>" class="active item"> <i class="home icon"></i>Home </a> <!-- <div class="ui dropdown item"> <i class="ticket icon"></i> Session Times<i class="dropdown icon"></i> <div class="menu"> <a href="<?php echo LINK_ROOT . '/show_by_movie.php' ?>" class="item">By Movie</a> <a href="<?php echo LINK_ROOT . '/show_by_cinema.php' ?>" class="item">By Cinema</a> <a href="<?php echo LINK_ROOT . '/show_by_date.php' ?>" class="item">By Date</a> </div> </div>--> <div class="ui dropdown item"> <i class="video icon"></i> Movies<i class="dropdown icon"></i> <div class="menu"> <a href="<?php echo LINK_ROOT . '/now_showing.php' ?>" class="item">Now Showing</a> <a href="<?php echo LINK_ROOT . '/coming_soon.php' ?>" class="item">Coming Soon</a> </div> </div> <a href="<?php echo LINK_ROOT . '/cinema.php' ?>" class="item"> <i class="block layout icon"></i> Cinemas </a> <a href="<?php echo LINK_ROOT . '/combo.php' ?>" class="item"> <i class="thumbs up icon"></i> Combos </a> <?php if (!empty($_SESSION['user_login']) && $_SESSION['user_login'] === "logined") { ?> <div class="right menu"> <div class="ui dropdown item"> Hi, <?php echo $_SESSION['user_info']['email'] ?><i class="dropdown icon"></i> <div class="menu"> <a class="item" href="<?php echo LINK_ROOT; ?>/logout.php">Logout</a> </div> </div> </div> <?php } else { ?> <div class="right menu"> <a class="item" href="<?php echo LINK_ROOT; ?>/register.php"> Register </a> <a class="item" href="<?php echo LINK_ROOT; ?>/login.php"> Login </a> </div> <?php } ?> </div>
09-movie
trunk/include/menu.php
PHP
gpl3
2,250
<?php session_start(); $time_out = 60; if(empty($_SESSION['timeout'])){ $_SESSION['timeout'] = time(); } else { $inactive_time = time() - $_SESSION['timeout']; if($inactive_time > $time_out){ $_SESSION['timeout'] = time(); } }
09-movie
trunk/include/check_session.php
PHP
gpl3
262
<?php session_start(); require_once dirname(dirname(__FILE__)) . '/shared/libraries/lib_redirect.php'; if (empty($_SESSION['user_login']) || empty($_SESSION['user_info']['cinema_id'])) { lib_redirect::Redirect('/login.php'); }
09-movie
trunk/include/check_user_cinema_login.php
PHP
gpl3
239
<?php session_start(); require_once dirname(dirname(__FILE__)) . '/shared/libraries/lib_redirect.php'; if (empty($_SESSION['user_login']) || !($_SESSION['user_info']['email'] === 'admin')) { lib_redirect::Redirect('/login.php'); }
09-movie
trunk/include/check_user_login.php
PHP
gpl3
243
<link rel="stylesheet" href="<?php echo LINK_ROOT . DIR_SHARED_LAYOUT_CSS ?>site.css"> <link rel="stylesheet" href="<?php echo LINK_ROOT . DIR_SHARED_LAYOUT_CSS ?>ts.css">
09-movie
trunk/include/head_css.php
PHP
gpl3
174
<footer> <div class="ui center"> Designed by <a href="http://facebook.com/TechStormTeam">TechStorm</a> </div> </footer>
09-movie
trunk/include/footer.php
Hack
gpl3
139
<?php require_once DOCUMENT_ROOT . DIR_INCLUDE . 'menu.php'; require_once DOCUMENT_ROOT . DIR_INCLUDE . 'slider.php'; ?>
09-movie
trunk/include/header.php
PHP
gpl3
129
<!-- Slider --> <div id="wowslider-container1" style="margin-top: 30px;"> <div class="ws_images"> <ul> <li><img src="<?php echo LINK_ROOT . DIR_SHARED_LAYOUT_IMAGES_SLIDESHOW ?>images/1.jpg" alt="X-men" title="X-men" id="wows1_0"/></li> <li><img src="<?php echo LINK_ROOT . DIR_SHARED_LAYOUT_IMAGES_SLIDESHOW ?>images/2.jpg" alt="How to train your dragon 2" title="How to train your dragon 2" id="wows1_1"/></li> <li><img src="<?php echo LINK_ROOT . DIR_SHARED_LAYOUT_IMAGES_SLIDESHOW ?>images/3.jpg" alt="Edge of tomorrow" title="Edge of morrow" id="wows1_2"/></li> </ul> </div> <div class="ws_bullets"> <div> <a href="#" title="X-men"><img src="<?php echo LINK_ROOT . DIR_SHARED_LAYOUT_IMAGES_SLIDESHOW ?>tooltips/1.jpg" alt="X-men"/>1</a> <a href="#" title="How to train your dragon 2"><img src="<?php echo LINK_ROOT . DIR_SHARED_LAYOUT_IMAGES_SLIDESHOW ?>tooltips/2.jpg" alt="How to train your dragon 2"/>2</a> <a href="#" title="Edge of morrow"><img src="<?php echo LINK_ROOT . DIR_SHARED_LAYOUT_IMAGES_SLIDESHOW ?>tooltips/3.jpg" alt="Edge of tomorrow"/>3</a> </div> </div> </div> <script type="text/javascript" src="<?php echo LINK_ROOT . DIR_SHARED_PLUGIN_WOWSLIDER_JS ?>wowslider.js"></script> <script type="text/javascript" src="<?php echo LINK_ROOT . DIR_SHARED_PLUGIN_WOWSLIDER_JS ?>script.js"></script> <!-- End Slider -->
09-movie
trunk/include/slider.php
PHP
gpl3
1,474
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title><?php echo $title; ?></title> <!-- Favicon --> <link rel="icon" type="image/png" href="<?php echo LINK_ROOT . '/favicon.png' ?>"> <!-- Semantic CSS --> <link href="<?php echo LINK_ROOT . DIR_SHARED_LAYOUT_SEMANTIC_CSS ?>semantic.min.css" rel="stylesheet" > <!-- Slider CSS --> <link href="<?php echo LINK_ROOT . DIR_SHARED_PLUGIN_WOWSLIDER_CSS ?>style.css" rel="stylesheet" > <!-- Jquery v1.11.1 + UIKit JS --> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.js"></script> <script src="<?php echo LINK_ROOT . DIR_SHARED_LAYOUT_SEMANTIC_JS ?>semantic.min.js"></script> <!-- Addon CSS files + Javascripts Functions--> <?php require_once DOCUMENT_ROOT . DIR_INCLUDE . 'head_css.php'; require_once DOCUMENT_ROOT . DIR_INCLUDE . 'head_script.php'; ?>
09-movie
trunk/include/head.php
PHP
gpl3
847
<?php require_once dirname(dirname(__FILE__)) . '/shared/config/config.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_booking.php'; ?> <div class="four wide column"> <h1>Book Tickets</h1> <form name="form_book_ticket" id="form_book_ticket" method="POST" action="tickets_quantity.php"> <?php if (!empty($error_show)) { ?> <div class="ui error message"> <i class="close icon"></i> <div class="header"> <?php echo $error_show; ?> </div> </div> <?php } ?> <div class="ui orange form segment"> <div id="city-filter" class="field"> <label>City</label> <?php $list = api_booking::get_all_cities_by_filter(0); ?> <div class="ui fluid selection dropdown"> <div class="text">--Not Selected--</div> <i class="dropdown icon"></i> <input name="ddl_city" onchange="filter_change_for_city()" type="hidden"> <div class="menu ui transition hidden"> <div class="item" data-value="0">--Not Selected--</div> <?php foreach ($list as $item) { ?> <div class="item" data-value="<?php echo $item['id']; ?>"><?php echo $item['name']; ?></div> <?php }?> </div> </div> </div> <script type="text/javascript"> function filter_change_for_city() { $('#txt_tickets_quantity').val(0); $.ajax({ type: "POST", url: "<?php echo LINK_ROOT . DIR_AJAX; ?>load_movie_filter.php", data: "empty_load=1", success: function (result) { $("#movie-filter").html(result); } }); $.ajax({ type: "POST", url: "<?php echo LINK_ROOT . DIR_AJAX; ?>load_show_date_filter.php", data: "empty_load=1", success: function (result) { $("#show-date-filter").html(result); } }); // var ticket_quantity = $('#txt_tickets_quantity').val(); var city_id = $("input[type='hidden'][name='ddl_city']").val(); $.ajax({ type: "POST", url: "<?php echo LINK_ROOT . DIR_AJAX; ?>load_movie_filter.php", data: "&city_id=" + city_id, success: function (result) { $("#movie-filter").html(result); } }); } </script> <div class="field"> <label>Tickets Quantity</label> <div class="ui left icon input" style="padding: 0"> <input name="txt_tickets_quantity" onchange="filter_change_for_quantity()" value="" id="txt_tickets_quantity" type="text" placeholder="0"> <i class="inverted ticket icon"></i> </div> </div> <script type="text/javascript"> function filter_change_for_quantity() { $.ajax({ type: "POST", url: "<?php echo LINK_ROOT . DIR_AJAX; ?>load_movie_filter.php", data: "empty_load=1", success: function (result) { $("#movie-filter").html(result); } }); $.ajax({ type: "POST", url: "<?php echo LINK_ROOT . DIR_AJAX; ?>load_show_date_filter.php", data: "empty_load=1", success: function (result) { $("#show-date-filter").html(result); } }); var city_id = $("input[type='hidden'][name='ddl_city']").val(); var ticket_quantity = $('#txt_tickets_quantity').val(); $.ajax({ type: "POST", url: "<?php echo LINK_ROOT . DIR_AJAX; ?>load_movie_filter.php", data: "ticket_quantity=" + ticket_quantity + "&city_id=" + city_id, success: function (result) { $("#movie-filter").html(result); } }); } </script> <div id="movie-filter" class="field"> <label>Movie</label> <div class="ui fluid selection dropdown"> <div class="text">--Not Selected--</div> <i class="dropdown icon"></i> <input name="ddl_movie" type="hidden" value="0"> <div class="menu"> <div class="item" data-value="0">--Not Selected--</div> </div> </div> </div> <script type="text/javascript"> function filter_change_for_movie() { $.ajax({ type: "POST", url: "<?php echo LINK_ROOT . DIR_AJAX; ?>load_show_date_filter.php", data: "empty_load=1", success: function (result) { $("#show-date-filter").html(result); } }); var ticket_quantity = $('#txt_tickets_quantity').val(); var city_id = $("input[type='hidden'][name='ddl_city']").val(); // var cinema_id = $("input[type='hidden'][name='ddl_cinema']").val(); var movie_id = $("input[type='hidden'][name='ddl_movie']").val(); $.ajax({ type: "POST", url: "<?php echo LINK_ROOT . DIR_AJAX; ?>load_show_date_filter.php", data: "ticket_quantity=" + ticket_quantity + "&city_id=" + city_id // + "&cinema_id=" + cinema_id + "&movie_id=" + movie_id, success: function (result) { $("#show-date-filter").html(result); } }); } </script> <div id="show-date-filter" class="field"> <label>Show Date</label> <div class="ui fluid selection dropdown"> <div class="text">--Not Selected--</div> <i class="dropdown icon"></i> <input name="ddl_show_date" type="hidden" value="0"> <div class="menu"> <div class="item" data-value="0">--Not Selected--</div> </div> </div> </div> <!-- <script type="text/javascript"> function filter_change_for_cinema() { var ticket_quantity = $('#txt_tickets_quantity').val(); var city_id = $("input[type='hidden'][name='ddl_city']").val(); var cinema_id = $("input[type='hidden'][name='ddl_cinema']").val(); $.ajax({ type: "POST", url: "<?php echo LINK_ROOT . DIR_AJAX; ?>load_movie_filter.php", data: "ticket_quantity=" + ticket_quantity + "&city_id=" + city_id + "&cinema_id=" + cinema_id, success: function (result) { $("#movie-filter").html(result); } }); } </script>--> <!-- <script type="text/javascript"> function filter_change_for_show_date() { var ticket_quantity = $('#txt_tickets_quantity').val(); var city_id = $("input[type='hidden'][name='ddl_city']").val(); var cinema_id = $("input[type='hidden'][name='ddl_cinema']").val(); var movie_id = $("input[type='hidden'][name='ddl_movie']").val(); var show_date = $("input[type='hidden'][name='ddl_show_date']").val(); $.ajax({ type: "POST", url: "<?php echo LINK_ROOT . DIR_AJAX; ?>load_time_start_filter.php", data: "ticket_quantity=" + ticket_quantity + "&city_id=" + city_id + "&cinema_id=" + cinema_id + "&movie_id=" + movie_id + "&show_date=" + show_date, success: function (result) { $("#time-start-filter").html(result); } }); } </script>--> <div class="ts-center"> <div onclick="submit_book_data();" class="large animated fade ui orange button"> <div class="visible content">Book Now</div> <div class="hidden content"><i class="ok sign icon"></i></div> </div> </div> </div> </form> </div>
09-movie
trunk/include/book_ticket.php
PHP
gpl3
16,080
<?php require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_booking.php'; if (!empty($_SESSION['book_info']['status']) && $_SESSION['book_info']['status'] === "started") { if (!empty($_SESSION['book_info']['booking_id'])) { api_booking::delete_booking($_SESSION['book_info']['booking_id']); } } if (!empty($_SESSION['book_info']['status']) && $_SESSION['book_info']['status'] === "wait_skrill_payment") { if (api_booking::is_paid($_SESSION['book_info']['booking_id'])) { $skrill_payment = "paid"; } else { api_booking::delete_booking($_SESSION['book_info']['booking_id']); $skrill_payment = "unpaid"; } } unset($_SESSION['book_info']);
09-movie
trunk/include/check_outside_booking.php
PHP
gpl3
721
<?php function show_movie($item) { ?> <div class="item" onclick="window.location = 'movie_detail.php?m_id=<?php echo $item["id"] ?>#container'"> <div class="image"> <img src="<?php echo LINK_ROOT . DIR_SHARED_UPLOAD_IMAGES_POSTERS . $item['poster']; ?>"> </div> <div class="content"> <div class="name"><?php echo $item['title']; ?></div> <p class="description"> <?php if(strlen($item['description']) < 100){ echo $item['description']; } else { echo substr($item['description'], 0, 100) . '<span class="ts-red">...[more]</span>'; } ?> </p> </div> </div> <?php } function show_cinema($item) { ?> <div class="item" onclick="window.location = 'cinema_detail.php?c_id=<?php echo $item["id"] ?>'"> <div class="image"> <img src="<?php echo LINK_ROOT . DIR_SHARED_UPLOAD_IMAGES_CINEMAS . $item['image'] ?>"> </div> <div class="content"> <div class="name"><?php echo $item['name']; ?></div> <p class="description"><?php echo $item['city_name']; ?></p> </div> </div> <?php } function show_combo($item) { ?> <div class="item"> <div class="image"> <img src="<?php echo LINK_ROOT . DIR_SHARED_UPLOAD_IMAGES_COMBOS . '1.png' ?>"> </div> <div class="content"> <div class="name"><?php echo $item['name']; ?></div> <p class="description"><?php echo $item['description']; ?></p> </div> </div> <?php } ?>
09-movie
trunk/include/general_functions.php
PHP
gpl3
1,720
<?php //require section require_once dirname(__FILE__) . '/shared/config/config.php'; require_once DOCUMENT_ROOT . DIR_INCLUDE . 'check_session.php'; require_once DOCUMENT_ROOT . DIR_INCLUDE . 'check_outside_booking.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_movies.php'; $title = 'Movie Detail'; $m_id = filter_input(INPUT_GET, 'm_id'); if ($m_id != NULL) { $movie = api_movies::get_movie_by_id($m_id); } ?> <!DOCTYPE html> <html> <head> <?php require_once DOCUMENT_ROOT . DIR_INCLUDE . 'head.php'; ?> </head> <body> <div class="ts-body-container"> <div class="ts-wrapper"> <!--<div class="ui grid">--> <div class="padding-top-large row"> <?php require_once DOCUMENT_ROOT . DIR_INCLUDE . 'header.php'; ?> <div class="ui segment breadcrumb" style="margin-top: 25px; margin-left: 20px;"> <a class="section" href="index.php">Home</a> <i class="right arrow icon divider"></i> <a class="section" href="now_showing.php">Movies</a> <i class="right arrow icon divider"></i> <div class="active section">Movie Detail</div> </div> </div> <div class="ui grid" id="container"> <div class="row"> <div class="column"> <h1>Cinema Detail</h1> <div class="ui orange segment"> <div class="row"> <div class="ts-detail-img-wrapper"> <?php if ($movie != NULL) : ?> <img src="<?php echo LINK_ROOT . DIR_SHARED_UPLOAD_IMAGES_POSTERS . $movie['poster'] ?>"> <?php endif; ?> </div> <div class="ts-detail-info"> <table> <tr> <th>Title</th> </tr> <tr> <td> <?php if ($movie != NULL) { echo $movie['title']; } ?> </td> </tr> <tr> <th>Description</th> </tr> <tr> <td> <?php if ($movie != NULL) { echo $movie['description']; } ?> </td> </tr> </table> </div> </div> <div class="row"> <div class="ts-center"> <a href="<?php echo LINK_ROOT ?>" class="ui orange button">Back to Home Page</a> </div> </div> </div> </div> </div> <div class="row"> <?php require_once DOCUMENT_ROOT . DIR_INCLUDE . 'footer.php'; ?> </div> <!--</div>--> </div> </div> </body> </html>
09-movie
trunk/movie_detail.php
PHP
gpl3
3,860
<?php //require section require_once dirname(__FILE__) . '/shared/config/config.php'; require_once DOCUMENT_ROOT . DIR_INCLUDE . 'check_session.php'; //require_once DOCUMENT_ROOT . DIR_INCLUDE . 'check_outside_booking.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_security.php'; $title = 'Login Page'; $email = ""; $password = ""; if (!empty($_POST)) { if (!empty($_POST['Email'])) { $email = $_POST['Email']; } if (!empty($_POST['Password'])) { $password = $_POST['Password']; } $error_show = ""; $result = api_security::login($email, $password); if ($result['user_login'] === 'logined') { $_SESSION['user_login'] = 'logined'; $_SESSION['user_info'] = $result; if ($result['role_id'] == 1) { lib_redirect::Redirect('/admin/index.php'); } else { if (empty($result['cinema_id'])) { lib_redirect::Redirect('/index.php'); } else { lib_redirect::Redirect('/admin/user_cinema.php'); } } } else { $error_show = "Login failed."; } } ?> <!DOCTYPE html> <html> <head> <?php require_once DOCUMENT_ROOT . DIR_INCLUDE . 'head.php'; ?> </head> <body> <div class="ts-body-container"> <div class="ts-wrapper"> <div class="padding-top-large row"> <?php require_once DOCUMENT_ROOT . DIR_INCLUDE . 'header.php'; ?> <div class="ui segment breadcrumb" style="margin-top: 25px; margin-left: 20px;"> <a class="section" href="index.php">Home</a> <i class="right arrow icon divider"></i> <a class="active section">Login</a> </div> </div> <div class="ui grid"> <div class="row"> <div class="column"> <h1>Login Now</h1> <form name="form_login" id="form_login" method="POST" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>"> <?php if (!empty($error_show)) { ?> <div class="ui error message"> <i class="close icon"></i> <div class="header"> <?php echo $error_show; ?> </div> </div> <?php } else if (!empty($_SESSION['user_login']) && $_SESSION['user_login'] === "logined") { ?> <div class="ui segment"> <div class="ui active dimmer"> <div class="ui text loader">Loading</div> </div> <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p> </div> <script type="text/javascript"> navigate("<?php echo LINK_ROOT . "/index.php"; ?>"); </script> <?php } ?> <div class="ui form segment"> <div class="field"> <label for="Email">Email</label> <input id="Email" name="Email" value="<?php echo $email; ?>" placeholder="Email" type="text"> </div> <div class="field"> <label for="Password">Password</label> <input id="Password" name="Password" type="password"> </div> <div class="large animated fade ui orange button" onclick="submitLogin();"> <div class="visible content">Submit</div> <div class="hidden content"><i class="ok sign icon"></i></div> </div> </div> </form> </div> </div> </div> <div class="row"> <?php require_once DOCUMENT_ROOT . DIR_INCLUDE . 'footer.php'; ?> </div> </div> </div> </body> </html>
09-movie
trunk/login.php
PHP
gpl3
5,034
<?php //require section require_once dirname(__FILE__) . '/shared/config/config.php'; require_once DOCUMENT_ROOT . DIR_INCLUDE . 'check_session.php'; require_once DOCUMENT_ROOT . DIR_INCLUDE . 'check_outside_booking.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_cinemas.php'; $title = 'Cinema Detail'; $c_id = filter_input(INPUT_GET, 'c_id'); if ($c_id != NULL) { $cinema = api_cinemas::get_cinema_by_id($c_id); $city = api_cinemas::get_city_by_id($cinema['id']); } else { $cinema = NULL; $city = NULL; } ?> <!DOCTYPE html> <html> <head> <?php require_once DOCUMENT_ROOT . DIR_INCLUDE . 'head.php'; ?> <script src="http://maps.googleapis.com/maps/api/js?key=AIzaSyDY0kkJiTPVd2U7aTOAwhc9ySH6oHxOIYM&sensor=false"> </script> <style> .gm-style-iw{ width: 75px; } </style> <script> var myCenter = new google.maps.LatLng(<?php echo $cinema['latitude'] . ',' . $cinema['longitude']; ?>); function initialize() { var mapProp = { center: myCenter, zoom: 7, mapTypeId: google.maps.MapTypeId.ROADMAP }; var map = new google.maps.Map(document.getElementById("googleMap"), mapProp); var marker = new google.maps.Marker({ position: myCenter, animation: google.maps.Animation.BOUNCE }); marker.setMap(map); <?php if($city != NULL): ?> var infowindow = new google.maps.InfoWindow({ content: "<?php echo 'City: ' . $city['name']; ?>" }); <?php endif; ?> infowindow.open(map, marker); // var myCity = new google.maps.Circle({ // center: myCenter, // radius: 40000, // strokeColor: "#0000FF", // strokeOpacity: 0.8, // strokeWeight: 2, // fillColor: "#0000FF", // fillOpacity: 0.4 // }); // myCity.setMap(map); } google.maps.event.addDomListener(window, 'load', initialize); </script> </head> <body> <div class="ts-body-container"> <div class="ts-wrapper"> <!--<div class="ui grid">--> <div class="padding-top-large row"> <?php require_once DOCUMENT_ROOT . DIR_INCLUDE . 'header.php'; ?> <div class="ui segment breadcrumb" style="margin-top: 25px; margin-left: 20px;"> <a class="section" href="index.php">Home</a> <i class="right arrow icon divider"></i> <a class="section" href="cinema.php">Cinema</a> <i class="right arrow icon divider"></i> <div class="active section">Cinema Detail</div> </div> </div> <div class="ui grid" id="container"> <div class="row"> <div class="column"> <h1>Cinema Detail</h1> <div class="ui orange segment"> <div class="row"> <div class="ts-detail-img-wrapper"> <?php if ($cinema != NULL) : ?> <img src="<?php echo LINK_ROOT . DIR_SHARED_UPLOAD_IMAGES_CINEMAS . $cinema['image'] ?>"> <?php endif; ?> </div> <div class="ts-detail-info"> <table> <tr> <th>Name</th> </tr> <tr> <td> <?php if ($cinema != NULL) { echo $cinema['name']; } ?> </td> </tr> <tr> <th>City</th> </tr> <tr> <td> <?php if ($city != NULL) { echo $city['name']; } ?> </td> </tr> <tr> <th>Address</th> </tr> <tr> <td> <?php if ($cinema != NULL) { echo $cinema['address']; } ?> </td> </tr> </table> </div> </div> <div class="row" style="margin: 20px 0;"> <div id="googleMap" style="width:1065px;height:380px;"></div> </div> <div class="row"> <div class="ts-center"> <a href="<?php echo LINK_ROOT ?>" class="ui orange button">Back to Home Page</a> </div> </div> </div> </div> </div> <div class="row"> <?php require_once DOCUMENT_ROOT . DIR_INCLUDE . 'footer.php'; ?> </div> <!--</div>--> </div> </div> </body> </html>
09-movie
trunk/cinema_detail.php
PHP
gpl3
6,459
<?php //require section require_once dirname(__FILE__) . '/shared/config/config.php'; require_once DOCUMENT_ROOT . DIR_INCLUDE . 'check_session.php'; require_once DOCUMENT_ROOT . DIR_INCLUDE . 'check_inside_booking.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_seats.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_booking.php'; require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_redirect.php'; $title = 'Choose Seat'; $ticket = $_SESSION['book_info']; if (!empty($_SESSION['book_info']['booking_id'])) { $lines = api_booking::get_all_booking_lines_by_booking_id($_SESSION['book_info']['booking_id'], $_SESSION['book_info']['user_id']); foreach ($lines as $item) { $seat = api_seats::get_seat($_SESSION['book_info']['ticket_id'], $item['row_pos'], $item['column_pos']); api_seats::unchoose_seat($seat['id']); } api_booking::delete_booking_line_by_booking_id($_SESSION['book_info']['booking_id']); api_booking::delete_booking($_SESSION['book_info']['booking_id']); } $booking_id = api_booking::save_booking(0, $ticket['user_id'], $ticket['ticket_id'], $ticket['ticket_quantity'], 0, 0, 0, 0); $_SESSION['book_info']['booking_id'] = $booking_id; ?> <!DOCTYPE html> <html> <head> <?php require_once DOCUMENT_ROOT . DIR_INCLUDE . 'head.php'; ?> <link rel="stylesheet" href="<?php echo LINK_ROOT . DIR_SHARED_LAYOUT_CSS . 'ticket.css' ?>"> <script type="text/javascript"> var book_quantity = '<?php echo $ticket['ticket_quantity']; ?>'; var booking_id = '<?php echo $booking_id; ?>'; $(document).ready(function() { $("#btn_next").on("click", function() { if (book_quantity === 0) { window.location.href = '<?php echo LINK_ROOT; ?>/choose_combo.php'; } else { alert("Remaining "+book_quantity+" ticket. Please book."); } }); }); </script> </head> <body> <div class="ts-body-container"> <div class="ts-wrapper"> <div class="padding-top-large row"> <?php require_once DOCUMENT_ROOT . DIR_INCLUDE . 'header.php'; $rows = api_seats::get_all_rows($ticket['ticket_id']); $columns = api_seats::get_all_columns($ticket['ticket_id']); ?> </div> <input type="hidden" name="hidd_temp_ticket_id" value="<?php echo $ticket['ticket_id']; ?>"/> <input type="hidden" name="hidd_temp_ticket_quantity" value="<?php echo $ticket['ticket_quantity']; ?>"/> <div class="ui grid"> <div class="row"> <div class="column"> <!-- Step --> <div id='booking_step' class="ui four steps margin-top-normal"> <div class="ui disabled step"> Choose Cinema & Time Start </div> <div class="ui active step"> Choose Seats </div> <div class="ui disabled step"> Choose Combo </div> <div class="ui disabled step"> Coupon Code & Finish </div> </div> <!-- End Step --> <h1>Choose Seats</h1> <div class="ui orange segment"> <div> <div align="center" id="divLegend"> <?php $list = api_seats::get_all_seat_statuses(); foreach ($list as $item) { ?> <span> <img border="0" src="<?php echo LINK_ROOT . DIR_SHARED_LAYOUT_IMAGES_TICKET . $item['image'] ?>" class="ImageAppletExample" id="imgAutoReserved"> &nbsp; <span class="Legend" id="lblAutoReserved"><?php echo $item['name']; ?></span> </span> <?php } ?> </div> </div> </div> <form id="form_seat" action="" method="post" name="form_seat"> <div class="ui orange segment"> <input type="hidden" value="" id="hidden01" name="hidden01"> <input type="hidden" value="" id="hidden02" name="hidden02"> <div> <div style="width:560px;" class="Seating-Control" id="objSeatPlan"> <div style="height: 363px;"> <div style="margin-bottom: 40px; width: 315px; margin-left: 144px;" class="Seating-Screen"> <img style="width:87.500%;position:absolute;left:9.45px;" src="shared/layout/images/ticket/SeatScreen.png"> </div> <div style="width: 300px; height: 290px; visibility: visible;" class="Seating-Container"> <div class="Seating-RowLabelContainer"><table cellspacing="0" cellpadding="0" style="position:absolute;top:2.9851%;height:97.0149%;"> <tbody> <?php $list = $rows; foreach ($list as $item) { ?> <tr> <td style="background-color:white;"><?php echo $item['row_pos']; ?></td> </tr> <?php } ?> </tbody> </table> </div> <div data-originalsize="335" style="width:270px;height:290px;" class="Seating-Theatre"> <table cellspacing="0" cellpadding="0" style="left:0%;top:2.9851%;width:100%;height:97.0149%;table-layout:fixed;" data-area-number="1" class="Seating-Area" id="objSeatPlan_1"> <tbody> <?php foreach ($rows as $row_index => $row) { ?> <tr style="line-height: 25px; height: 25px;"> <td style="width:24.9803px;"></td> <?php foreach ($columns as $column_index => $column) { $item = api_seats::get_seat($ticket['ticket_id'], $row['row_pos'], $column['column_pos']); ?> <td class="seat"><p style="width: 25px; line-height: 25px;"><?php echo $column['column_pos']; ?></p> <img data-col="<?php echo $column['column_pos']; ?>" data-row="<?php echo $row['row_pos']; ?>" <?php $image = $item['seat_status_image']; if ($item['seat_status_id'] == 1) { // your seats if (!api_booking::is_your_seat_available($booking_id, $row['row_pos'], $column['column_pos'])) { $sold = api_seats::get_seat_status_by_status_id(4); $image = $sold['image']; } } ?> src="<?php echo LINK_ROOT . DIR_SHARED_LAYOUT_IMAGES_TICKET . $image; ?>" style="width: 25px; height: 25px;"> </td> <?php } ?> </tr> <?php } ?> </tbody> </table> </div> <div class="Seating-RowLabelContainer"> <table cellspacing="0" cellpadding="0" style="position:absolute;top:2.9851%;height:97.0149%;"> <tbody> <?php $list = $rows; foreach ($list as $item) { ?> <tr> <td style="background-color:white;"><?php echo $item['row_pos']; ?></td> </tr> <?php } ?> </tbody> </table> </div> </div> </div> <table cellspacing="0" cellpadding="0" class="Seating-Popup"> <tbody> <tr> <td class="Seating-PopupMessage"></td> </tr> </tbody> </table> <input type="hidden" id="objSeatPlan_SelectedSeatsHiddenField" name="objSeatPlan:SelectedSeatsHiddenField"> </div> </div> </div> <div class="ui orange segment"> <div class="ts-center"> <div class="ui buttons"> <!--<div class="ui green button">Back</div>--> <a href="tickets_quantity.php#booking_step" class="ui purple button">Back</a> <div class="or"></div> <!--<div class="ui orange button">Next</div>--> <div id="btn_next" class="ui orange button">Next</div> </div> </div> </div> </form> </div> </div> </div> <div class="row"> <?php require_once DOCUMENT_ROOT . DIR_INCLUDE . 'footer.php'; ?> </div> </div> </div> </body> </html>
09-movie
trunk/seat.php
PHP
gpl3
14,333
<?php //require section require_once dirname(__FILE__) . '/shared/config/config.php'; require_once DOCUMENT_ROOT . DIR_INCLUDE . 'check_session.php'; require_once DOCUMENT_ROOT . DIR_INCLUDE . 'check_outside_booking.php'; $title = 'Find ticket by movie'; if (!empty($_POST)) { } ?> <!DOCTYPE html> <html> <head> <?php require_once DOCUMENT_ROOT . DIR_INCLUDE . 'head.php'; ?> </head> <body> <div class="ts-body-container"> <div class="ts-wrapper"> <!--<div class="ui grid">--> <div class="padding-top-large row"> <?php require_once DOCUMENT_ROOT . DIR_INCLUDE . 'header.php'; ?> <div class="ui segment breadcrumb" style="margin-top: 25px; margin-left: 20px;"> <a class="section">Food</a> <i class="right arrow icon divider"></i> <a class="section">Fruit</a> <i class="right arrow icon divider"></i> <div class="active section">Apples</div> </div> </div> <div class="ui grid"> <div class="row"> <div class="column"> <form action="" name="form_find" id="form_find"> <h1>Find ticket by movie</h1> <div class="row"> <div class="ui left floated orange segment" style="margin-top: 1em; width: 24%;"> <h3>Movie <i>(Now Showing)</i></h3> <div class="ui form"> <div class="grouped inline fields"> <div class="field"> <div class="ui radio checkbox"> <input name="cb_movie" checked="checked" type="radio"> <label>X-men</label> </div> </div> <div class="field"> <div class="ui radio checkbox"> <input name="cb_movie" type="radio"> <label>How To Train Your Dragons 2</label> </div> </div> <div class="field"> <div class="ui radio checkbox"> <input name="cb_movie" type="radio"> <label>The Avengers</label> </div> </div> <div class="field"> <div class="ui radio checkbox"> <input name="cb_movie" type="radio"> <label>Spiderman</label> </div> </div> </div> </div> </div> <div class="ui left floated purple segment" style="margin-left: 2em; width: 23%;"> <h3>Cinema</h3> <div class="ui form"> <div class="grouped inline fields"> <div class="field"> <div class="ui radio checkbox"> <input name="cb_cinema" checked="checked" type="radio"> <label>Cinema 01</label> </div> </div> <div class="field"> <div class="ui radio checkbox"> <input name="cb_cinema" type="radio"> <label>Cinema 02</label> </div> </div> <div class="field"> <div class="ui radio checkbox"> <input name="cb_cinema" type="radio"> <label>Cinema 03</label> </div> </div> <div class="field"> <div class="ui radio checkbox"> <input name="cb_cinema" type="radio"> <label>Cinema 04</label> </div> </div> </div> </div> </div> <div class="ui left floated purple segment" style="margin-left: 2em; width: 22%;"> <h3>Date</h3> <div class="ui form"> <div class="grouped inline fields"> <div class="field"> <div class="ui radio checkbox"> <input name="cb_date" checked="checked" type="radio"> <label>21/05/2014</label> </div> </div> <div class="field"> <div class="ui radio checkbox"> <input name="cb_date" type="radio"> <label>24/05/2014</label> </div> </div> <div class="field"> <div class="ui radio checkbox"> <input name="cb_date" type="radio"> <label>25/05/2014</label> </div> </div> <div class="field"> <div class="ui radio checkbox"> <input name="cb_date" type="radio"> <label>26/05/2014</label> </div> </div> </div> </div> </div> <div class="ui left floated orange segment" style="margin-left: 2em; width: 22%;"> <h3>Time</h3> <div class="ui form"> <div class="grouped inline fields"> <div class="field"> <div class="ui radio checkbox"> <input name="cb_time" checked="checked" type="radio"> <label>09:00</label> </div> </div> <div class="field"> <div class="ui radio checkbox"> <input name="cb_time" type="radio"> <label>11:30</label> </div> </div> <div class="field"> <div class="ui radio checkbox"> <input name="cb_time" type="radio"> <label>13:00</label> </div> </div> <div class="field"> <div class="ui radio checkbox"> <input name="cb_time" type="radio"> <label>17:00</label> </div> </div> </div> </div> </div> </div> <div class="row"> <div class="ts-center"> <!--<input name="btn_submit" type="submit" value="Book Ticket" class="ui orange button">--> <a href="tickets_quantity.php" class="ui orange button">Book Ticket</a> </div> </div> </form> </div> </div> </div> <div class="row"> <?php require_once DOCUMENT_ROOT . DIR_INCLUDE . 'footer.php'; ?> </div> <!--</div>--> </div> </div> </body> </html>
09-movie
trunk/show_by_movie.php
PHP
gpl3
11,313
<?php //require section require_once dirname(__FILE__) . '/shared/config/config.php'; require_once DOCUMENT_ROOT . DIR_INCLUDE . 'check_session.php'; require_once DOCUMENT_ROOT . DIR_INCLUDE . 'check_outside_booking.php'; require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_pager.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_movies.php'; require_once DOCUMENT_ROOT . DIR_INCLUDE . 'general_functions.php'; $title = 'Coming Soon'; if (!empty($_POST)) { } ?> <!DOCTYPE html> <html> <head> <?php require_once DOCUMENT_ROOT . DIR_INCLUDE . 'head.php'; ?> </head> <body> <div class="ts-body-container"> <div class="ts-wrapper"> <!--<div class="ui grid">--> <div class="padding-top-large row"> <?php require_once DOCUMENT_ROOT . DIR_INCLUDE . 'header.php'; ?> <div class="ui segment breadcrumb" style="margin-top: 25px; margin-left: 20px;"> <a class="section" href="index.php">Home</a> <i class="right arrow icon divider"></i> <a class="section" href="coming_soon.php">Movies</a> <i class="right arrow icon divider"></i> <div class="active section">Coming Soon</div> </div> </div> <div class="ui grid"> <div class="row"> <?php require_once DOCUMENT_ROOT . DIR_INCLUDE . 'book_ticket.php'; ?> <div class="twelve wide column"> <h1>Coming Soon</h1> <div class="ui orange segment"> <div class="ui stackable items"> <?php $list = api_movies::get_all_movies_with_comming_soon(); $current_page = 1; if (!empty($_GET['p'])) { $current_page = $_GET['p']; } $list_total = $list; $page_size = 9; $lib_pager = new lib_pager($list_total, $page_size); $total_page = $lib_pager->get_total_page(); $current_page_list = $lib_pager->get_current_page_list($current_page); if (empty($current_page_list) || count($current_page_list) == 0) { echo "No movie found."; } else { echo '<div class="row">'; foreach ($current_page_list as $key => $item) { if ($key > 0 && $key % 3 == 0) { echo '</div>'; echo '<div class="row">'; } show_movie($item); } echo '</div>'; } ?> </div> </div> <div class="ts-center"> <div class="ui pagination menu"> <?php if (!empty($total_page) && count($total_page) > 0) { ?> <a class="item" <?php if ($current_page <= 1) { echo "onclick='return false'"; } ?> href="?p=<?php echo $current_page - 1; ?>"> <i class="left arrow icon"></i> Previous </a> <?php for ($page = 1; $page <= $total_page; $page++) { ?> <a class="item" href="?p=<?php echo $page; ?>"><?php echo $page; ?></a> <?php } ?> <a class="item" <?php if ($current_page >= $total_page) { echo "onclick='return false'"; } ?> href="?p=<?php echo $current_page + 1; ?>"> Next <i class="icon right arrow"></i> </a> <?php } ?> </div> </div> </div> </div> </div> <div class="row"> <?php require_once DOCUMENT_ROOT . DIR_INCLUDE . 'footer.php'; ?> </div> <!--</div>--> </div> </div> </body> </html>
09-movie
trunk/coming_soon.php
PHP
gpl3
5,544
/* * Copyright 2007 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.onurgunduz.qrdec.client; /** * <p>Encapsulates data masks for the data bits in a QR code, per ISO 18004:2006 6.8. Implementations * of this class can un-mask a raw BitMatrix. For simplicity, they will unmask the entire BitMatrix, * including areas used for finder patterns, timing patterns, etc. These areas should be unused * after the point they are unmasked anyway.</p> * * <p>Note that the diagram in section 6.8.1 is misleading since it indicates that i is column position * and j is row position. In fact, as the text says, i is row position and j is column position.</p> * * @author Sean Owen */ abstract class DataMask { /** * See ISO 18004:2006 6.8.1 */ private static final DataMask[] DATA_MASKS = { new DataMask000(), new DataMask001(), new DataMask010(), new DataMask011(), new DataMask100(), new DataMask101(), new DataMask110(), new DataMask111(), }; private DataMask() { } /** * <p>Implementations of this method reverse the data masking process applied to a QR Code and * make its bits ready to read.</p> * * @param bits representation of QR Code bits from {@link com.google.zxing.common.BitMatrix#getBits()} * @param dimension dimension of QR Code, represented by bits, being unmasked */ abstract void unmaskBitMatrix(int[] bits, int dimension); /** * @param reference a value between 0 and 7 indicating one of the eight possible * data mask patterns a QR Code may use * @return {@link DataMask} encapsulating the data mask pattern */ static DataMask forReference(int reference) { if (reference < 0 || reference > 7) { throw new IllegalArgumentException(); } return DATA_MASKS[reference]; } /** * 000: mask bits for which (i + j) mod 2 == 0 */ private static class DataMask000 extends DataMask { private static final int BITMASK = 0x55555555; // = 010101... void unmaskBitMatrix(int[] bits, int dimension) { // This one's easy. Because the dimension of BitMatrix is always odd, // we can merely flip every other bit int max = bits.length; for (int i = 0; i < max; i++) { bits[i] ^= BITMASK; } } } /** * 001: mask bits for which i mod 2 == 0 */ private static class DataMask001 extends DataMask { void unmaskBitMatrix(int[] bits, int dimension) { int bitMask = 0; int count = 0; int offset = 0; for (int j = 0; j < dimension; j++) { for (int i = 0; i < dimension; i++) { if ((i & 0x01) == 0) { bitMask |= 1 << count; } if (++count == 32) { bits[offset++] ^= bitMask; count = 0; bitMask = 0; } } } bits[offset] ^= bitMask; } } /** * 010: mask bits for which j mod 3 == 0 */ private static class DataMask010 extends DataMask { void unmaskBitMatrix(int[] bits, int dimension) { int bitMask = 0; int count = 0; int offset = 0; for (int j = 0; j < dimension; j++) { boolean columnMasked = j % 3 == 0; for (int i = 0; i < dimension; i++) { if (columnMasked) { bitMask |= 1 << count; } if (++count == 32) { bits[offset++] ^= bitMask; count = 0; bitMask = 0; } } } bits[offset] ^= bitMask; } } /** * 011: mask bits for which (i + j) mod 3 == 0 */ private static class DataMask011 extends DataMask { void unmaskBitMatrix(int[] bits, int dimension) { int bitMask = 0; int count = 0; int offset = 0; for (int j = 0; j < dimension; j++) { for (int i = 0; i < dimension; i++) { if ((i + j) % 3 == 0) { bitMask |= 1 << count; } if (++count == 32) { bits[offset++] ^= bitMask; count = 0; bitMask = 0; } } } bits[offset] ^= bitMask; } } /** * 100: mask bits for which (i/2 + j/3) mod 2 == 0 */ private static class DataMask100 extends DataMask { void unmaskBitMatrix(int[] bits, int dimension) { int bitMask = 0; int count = 0; int offset = 0; for (int j = 0; j < dimension; j++) { int jComponentParity = (j / 3) & 0x01; for (int i = 0; i < dimension; i++) { if (((i >> 1) & 0x01) == jComponentParity) { bitMask |= 1 << count; } if (++count == 32) { bits[offset++] ^= bitMask; count = 0; bitMask = 0; } } } bits[offset] ^= bitMask; } } /** * 101: mask bits for which ij mod 2 + ij mod 3 == 0 */ private static class DataMask101 extends DataMask { void unmaskBitMatrix(int[] bits, int dimension) { int bitMask = 0; int count = 0; int offset = 0; for (int j = 0; j < dimension; j++) { for (int i = 0; i < dimension; i++) { int product = i * j; if (((product & 0x01) == 0) && product % 3 == 0) { bitMask |= 1 << count; } if (++count == 32) { bits[offset++] ^= bitMask; count = 0; bitMask = 0; } } } bits[offset] ^= bitMask; } } /** * 110: mask bits for which (ij mod 2 + ij mod 3) mod 2 == 0 */ private static class DataMask110 extends DataMask { void unmaskBitMatrix(int[] bits, int dimension) { int bitMask = 0; int count = 0; int offset = 0; for (int j = 0; j < dimension; j++) { for (int i = 0; i < dimension; i++) { int product = i * j; if ((((product & 0x01) + product % 3) & 0x01) == 0) { bitMask |= 1 << count; } if (++count == 32) { bits[offset++] ^= bitMask; count = 0; bitMask = 0; } } } bits[offset] ^= bitMask; } } /** * 111: mask bits for which ((i+j)mod 2 + ij mod 3) mod 2 == 0 */ private static class DataMask111 extends DataMask { void unmaskBitMatrix(int[] bits, int dimension) { int bitMask = 0; int count = 0; int offset = 0; for (int j = 0; j < dimension; j++) { for (int i = 0; i < dimension; i++) { if (((((i + j) & 0x01) + (i * j) % 3) & 0x01) == 0) { bitMask |= 1 << count; } if (++count == 32) { bits[offset++] ^= bitMask; count = 0; bitMask = 0; } } } bits[offset] ^= bitMask; } } }
123912029-ssiagu
qrdec/src/com/onurgunduz/qrdec/client/DataMask.java
Java
gpl2
7,540
/* * Copyright 2008 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.onurgunduz.qrdec.client; /** * Superclass of classes encapsulating types ECIs, according to "Extended Channel Interpretations" 5.3 * of ISO 18004. * * @author Sean Owen */ public abstract class ECI { private final int value; ECI(int value) { this.value = value; } public int getValue() { return value; } /** * @param value ECI value * @return {@link ECI} representing ECI of given value, or null if it is legal but unsupported * @throws IllegalArgumentException if ECI value is invalid */ public static ECI getECIByValue(int value) { if (value < 0 || value > 999999) { throw new IllegalArgumentException("Bad ECI value: " + value); } if (value < 900) { // Character set ECIs use 000000 - 000899 return CharacterSetECI.getCharacterSetECIByValue(value); } return null; } }
123912029-ssiagu
qrdec/src/com/onurgunduz/qrdec/client/ECI.java
Java
gpl2
1,461
package com.onurgunduz.qrdec.client; /** * <p>Represnts a square matrix of bits. In function arguments below, i is the row position * and j the column position of a bit. The top left bit corresponds to i = 0 and j = 0.</p> * * <p>Internally the bits are represented in a compact 1-D array of 32-bit ints. The * ordering of bits is column-major; that is the bits in this array correspond to * j=0 and i=0..dimension-1 first, then j=1 and i=0..dimension-1, etc.</p> * * <p>Within each int, less-signficant bits correspond to lower values of i and higher rows. * That is, the top-left bit is the least significant bit of the first int.</p> * * <p>This class is a convenient wrapper around this representation, but also exposes the internal * array for efficient access and manipulation.</p> * * @author Sean Owen */ public final class BitMatrix { private final int dimension; private final int[] bits; public BitMatrix(int dimension) { if (dimension < 1) { throw new IllegalArgumentException("dimension must be at least 1"); } this.dimension = dimension; int numBits = dimension * dimension; int arraySize = numBits >> 5; // one int per 32 bits if ((numBits & 0x1F) != 0) { // plus one more if there are leftovers arraySize++; } bits = new int[arraySize]; } /** * @param i row offset * @param j column offset * @return value of given bit in matrix */ public boolean get(int i, int j) { int offset = i + dimension * j; return ((bits[offset >> 5] >>> (offset & 0x1F)) & 0x01) != 0; } /** * <p>Sets the given bit to true.</p> * * @param i row offset * @param j column offset */ public void set(int i, int j) { int offset = i + dimension * j; bits[offset >> 5] |= 1 << (offset & 0x1F); } /** * <p>Sets a square region of the bit matrix to true.</p> * * @param topI row offset of region's top-left corner (inclusive) * @param leftJ column offset of region's top-left corner (inclusive) * @param height height of region * @param width width of region */ public void setRegion(int topI, int leftJ, int height, int width) { if (topI < 0 || leftJ < 0) { throw new IllegalArgumentException("topI and leftJ must be nonnegative"); } if (height < 1 || width < 1) { throw new IllegalArgumentException("height and width must be at least 1"); } int maxJ = leftJ + width; int maxI = topI + height; if (maxI > dimension || maxJ > dimension) { throw new IllegalArgumentException( "topI + height and leftJ + width must be <= matrix dimension"); } for (int j = leftJ; j < maxJ; j++) { int jOffset = dimension * j; for (int i = topI; i < maxI; i++) { int offset = i + jOffset; bits[offset >> 5] |= 1 << (offset & 0x1F); } } } /** * @return row/column dimension of this matrix */ public int getDimension() { return dimension; } /** * @return array of ints holding internal representation of this matrix's bits */ public int[] getBits() { return bits; } public String toString() { StringBuffer result = new StringBuffer(dimension * (dimension + 1)); for (int i = 0; i < dimension; i++) { for (int j = 0; j < dimension; j++) { result.append(get(i, j) ? "X " : " "); } result.append('\n'); } return result.toString(); } }
123912029-ssiagu
qrdec/src/com/onurgunduz/qrdec/client/BitMatrix.java
Java
gpl2
3,546
/* * Copyright 2007 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.onurgunduz.qrdec.client; import com.onurgunduz.qrdec.client.ReaderException; import com.onurgunduz.qrdec.client.BitMatrix; /** * See ISO 18004:2006 Annex D * * @author Sean Owen */ public final class Version { /** * See ISO 18004:2006 Annex D. * Element i represents the raw version bits that specify version i + 7 */ private static final int[] VERSION_DECODE_INFO = { 0x07C94, 0x085BC, 0x09A99, 0x0A4D3, 0x0BBF6, 0x0C762, 0x0D847, 0x0E60D, 0x0F928, 0x10B78, 0x1145D, 0x12A17, 0x13532, 0x149A6, 0x15683, 0x168C9, 0x177EC, 0x18EC4, 0x191E1, 0x1AFAB, 0x1B08E, 0x1CC1A, 0x1D33F, 0x1ED75, 0x1F250, 0x209D5, 0x216F0, 0x228BA, 0x2379F, 0x24B0B, 0x2542E, 0x26A64, 0x27541, 0x28C69 }; private static final Version[] VERSIONS = buildVersions(); private final int versionNumber; private final int[] alignmentPatternCenters; private final ECBlocks[] ecBlocks; private final int totalCodewords; private Version(int versionNumber, int[] alignmentPatternCenters, ECBlocks ecBlocks1, ECBlocks ecBlocks2, ECBlocks ecBlocks3, ECBlocks ecBlocks4) { this.versionNumber = versionNumber; this.alignmentPatternCenters = alignmentPatternCenters; this.ecBlocks = new ECBlocks[]{ecBlocks1, ecBlocks2, ecBlocks3, ecBlocks4}; int total = 0; int ecCodewords = ecBlocks1.getECCodewordsPerBlock(); ECB[] ecbArray = ecBlocks1.getECBlocks(); for (int i = 0; i < ecbArray.length; i++) { ECB ecBlock = ecbArray[i]; total += ecBlock.getCount() * (ecBlock.getDataCodewords() + ecCodewords); } this.totalCodewords = total; } public int getVersionNumber() { return versionNumber; } public int[] getAlignmentPatternCenters() { return alignmentPatternCenters; } public int getTotalCodewords() { return totalCodewords; } public int getDimensionForVersion() { return 17 + 4 * versionNumber; } public ECBlocks getECBlocksForLevel(ErrorCorrectionLevel ecLevel) { return ecBlocks[ecLevel.ordinal()]; } /** * <p>Deduces version information purely from QR Code dimensions.</p> * * @param dimension dimension in modules * @return {@link Version} for a QR Code of that dimension * @throws ReaderException if dimension is not 1 mod 4 */ public static Version getProvisionalVersionForDimension(int dimension) throws ReaderException { if (dimension % 4 != 1) { throw ReaderException.getInstance(); } return getVersionForNumber((dimension - 17) >> 2); } public static Version getVersionForNumber(int versionNumber) { if (versionNumber < 1 || versionNumber > 40) { throw new IllegalArgumentException(); } return VERSIONS[versionNumber - 1]; } static Version decodeVersionInformation(int versionBits) { int bestDifference = Integer.MAX_VALUE; int bestVersion = 0; for (int i = 0; i < VERSION_DECODE_INFO.length; i++) { int targetVersion = VERSION_DECODE_INFO[i]; // Do the version info bits match exactly? done. if (targetVersion == versionBits) { return getVersionForNumber(i + 7); } // Otherwise see if this is the closest to a real version info bit string // we have seen so far int bitsDifference = FormatInformation.numBitsDiffering(versionBits, targetVersion); if (bitsDifference < bestDifference) { bestVersion = i + 7; } } // We can tolerate up to 3 bits of error since no two version info codewords will // differ in less than 4 bits. if (bestDifference <= 3) { return getVersionForNumber(bestVersion); } // If we didn't find a close enough match, fail return null; } /** * See ISO 18004:2006 Annex E */ BitMatrix buildFunctionPattern() { int dimension = getDimensionForVersion(); BitMatrix bitMatrix = new BitMatrix(dimension); // Top left finder pattern + separator + format bitMatrix.setRegion(0, 0, 9, 9); // Top right finder pattern + separator + format bitMatrix.setRegion(0, dimension - 8, 9, 8); // Bottom left finder pattern + separator + format bitMatrix.setRegion(dimension - 8, 0, 8, 9); // Alignment patterns int max = alignmentPatternCenters.length; for (int x = 0; x < max; x++) { int i = alignmentPatternCenters[x] - 2; for (int y = 0; y < max; y++) { if ((x == 0 && (y == 0 || y == max - 1)) || (x == max - 1 && y == 0)) { // No alignment patterns near the three finder paterns continue; } bitMatrix.setRegion(i, alignmentPatternCenters[y] - 2, 5, 5); } } // Vertical timing pattern bitMatrix.setRegion(9, 6, dimension - 17, 1); // Horizontal timing pattern bitMatrix.setRegion(6, 9, 1, dimension - 17); if (versionNumber > 6) { // Version info, top right bitMatrix.setRegion(0, dimension - 11, 6, 3); // Version info, bottom left bitMatrix.setRegion(dimension - 11, 0, 3, 6); } return bitMatrix; } /** * <p>Encapsulates a set of error-correction blocks in one symbol version. Most versions will * use blocks of differing sizes within one version, so, this encapsulates the parameters for * each set of blocks. It also holds the number of error-correction codewords per block since it * will be the same across all blocks within one version.</p> */ public static final class ECBlocks { private final int ecCodewordsPerBlock; private final ECB[] ecBlocks; private ECBlocks(int ecCodewordsPerBlock, ECB ecBlocks) { this.ecCodewordsPerBlock = ecCodewordsPerBlock; this.ecBlocks = new ECB[]{ecBlocks}; } private ECBlocks(int ecCodewordsPerBlock, ECB ecBlocks1, ECB ecBlocks2) { this.ecCodewordsPerBlock = ecCodewordsPerBlock; this.ecBlocks = new ECB[]{ecBlocks1, ecBlocks2}; } public int getECCodewordsPerBlock() { return ecCodewordsPerBlock; } public int getNumBlocks() { int total = 0; for (int i = 0; i < ecBlocks.length; i++) { total += ecBlocks[i].getCount(); } return total; } public int getTotalECCodewords() { return ecCodewordsPerBlock * getNumBlocks(); } public ECB[] getECBlocks() { return ecBlocks; } } /** * <p>Encapsualtes the parameters for one error-correction block in one symbol version. * This includes the number of data codewords, and the number of times a block with these * parameters is used consecutively in the QR code version's format.</p> */ public static final class ECB { private final int count; private final int dataCodewords; ECB(int count, int dataCodewords) { this.count = count; this.dataCodewords = dataCodewords; } public int getCount() { return count; } public int getDataCodewords() { return dataCodewords; } } public String toString() { return String.valueOf(versionNumber); } /** * See ISO 18004:2006 6.5.1 Table 9 */ private static Version[] buildVersions() { return new Version[]{ new Version(1, new int[]{}, new ECBlocks(7, new ECB(1, 19)), new ECBlocks(10, new ECB(1, 16)), new ECBlocks(13, new ECB(1, 13)), new ECBlocks(17, new ECB(1, 9))), new Version(2, new int[]{6, 18}, new ECBlocks(10, new ECB(1, 34)), new ECBlocks(16, new ECB(1, 28)), new ECBlocks(22, new ECB(1, 22)), new ECBlocks(28, new ECB(1, 16))), new Version(3, new int[]{6, 22}, new ECBlocks(15, new ECB(1, 55)), new ECBlocks(26, new ECB(1, 44)), new ECBlocks(18, new ECB(2, 17)), new ECBlocks(22, new ECB(2, 13))), new Version(4, new int[]{6, 26}, new ECBlocks(20, new ECB(1, 80)), new ECBlocks(18, new ECB(2, 32)), new ECBlocks(26, new ECB(2, 24)), new ECBlocks(16, new ECB(4, 9))), new Version(5, new int[]{6, 30}, new ECBlocks(26, new ECB(1, 108)), new ECBlocks(24, new ECB(2, 43)), new ECBlocks(18, new ECB(2, 15), new ECB(2, 16)), new ECBlocks(22, new ECB(2, 11), new ECB(2, 12))), new Version(6, new int[]{6, 34}, new ECBlocks(18, new ECB(2, 68)), new ECBlocks(16, new ECB(4, 27)), new ECBlocks(24, new ECB(4, 19)), new ECBlocks(28, new ECB(4, 15))), new Version(7, new int[]{6, 22, 38}, new ECBlocks(20, new ECB(2, 78)), new ECBlocks(18, new ECB(4, 31)), new ECBlocks(18, new ECB(2, 14), new ECB(4, 15)), new ECBlocks(26, new ECB(4, 13), new ECB(1, 14))), new Version(8, new int[]{6, 24, 42}, new ECBlocks(24, new ECB(2, 97)), new ECBlocks(22, new ECB(2, 38), new ECB(2, 39)), new ECBlocks(22, new ECB(4, 18), new ECB(2, 19)), new ECBlocks(26, new ECB(4, 14), new ECB(2, 15))), new Version(9, new int[]{6, 26, 46}, new ECBlocks(30, new ECB(2, 116)), new ECBlocks(22, new ECB(3, 36), new ECB(2, 37)), new ECBlocks(20, new ECB(4, 16), new ECB(4, 17)), new ECBlocks(24, new ECB(4, 12), new ECB(4, 13))), new Version(10, new int[]{6, 28, 50}, new ECBlocks(18, new ECB(2, 68), new ECB(2, 69)), new ECBlocks(26, new ECB(4, 43), new ECB(1, 44)), new ECBlocks(24, new ECB(6, 19), new ECB(2, 20)), new ECBlocks(28, new ECB(6, 15), new ECB(2, 16))), new Version(11, new int[]{6, 30, 54}, new ECBlocks(20, new ECB(4, 81)), new ECBlocks(30, new ECB(1, 50), new ECB(4, 51)), new ECBlocks(28, new ECB(4, 22), new ECB(4, 23)), new ECBlocks(24, new ECB(3, 12), new ECB(8, 13))), new Version(12, new int[]{6, 32, 58}, new ECBlocks(24, new ECB(2, 92), new ECB(2, 93)), new ECBlocks(22, new ECB(6, 36), new ECB(2, 37)), new ECBlocks(26, new ECB(4, 20), new ECB(6, 21)), new ECBlocks(28, new ECB(7, 14), new ECB(4, 15))), new Version(13, new int[]{6, 34, 62}, new ECBlocks(26, new ECB(4, 107)), new ECBlocks(22, new ECB(8, 37), new ECB(1, 38)), new ECBlocks(24, new ECB(8, 20), new ECB(4, 21)), new ECBlocks(22, new ECB(12, 11), new ECB(4, 12))), new Version(14, new int[]{6, 26, 46, 66}, new ECBlocks(30, new ECB(3, 115), new ECB(1, 116)), new ECBlocks(24, new ECB(4, 40), new ECB(5, 41)), new ECBlocks(20, new ECB(11, 16), new ECB(5, 17)), new ECBlocks(24, new ECB(11, 12), new ECB(5, 13))), new Version(15, new int[]{6, 26, 48, 70}, new ECBlocks(22, new ECB(5, 87), new ECB(1, 88)), new ECBlocks(24, new ECB(5, 41), new ECB(5, 42)), new ECBlocks(30, new ECB(5, 24), new ECB(7, 25)), new ECBlocks(24, new ECB(11, 12), new ECB(7, 13))), new Version(16, new int[]{6, 26, 50, 74}, new ECBlocks(24, new ECB(5, 98), new ECB(1, 99)), new ECBlocks(28, new ECB(7, 45), new ECB(3, 46)), new ECBlocks(24, new ECB(15, 19), new ECB(2, 20)), new ECBlocks(30, new ECB(3, 15), new ECB(13, 16))), new Version(17, new int[]{6, 30, 54, 78}, new ECBlocks(28, new ECB(1, 107), new ECB(5, 108)), new ECBlocks(28, new ECB(10, 46), new ECB(1, 47)), new ECBlocks(28, new ECB(1, 22), new ECB(15, 23)), new ECBlocks(28, new ECB(2, 14), new ECB(17, 15))), new Version(18, new int[]{6, 30, 56, 82}, new ECBlocks(30, new ECB(5, 120), new ECB(1, 121)), new ECBlocks(26, new ECB(9, 43), new ECB(4, 44)), new ECBlocks(28, new ECB(17, 22), new ECB(1, 23)), new ECBlocks(28, new ECB(2, 14), new ECB(19, 15))), new Version(19, new int[]{6, 30, 58, 86}, new ECBlocks(28, new ECB(3, 113), new ECB(4, 114)), new ECBlocks(26, new ECB(3, 44), new ECB(11, 45)), new ECBlocks(26, new ECB(17, 21), new ECB(4, 22)), new ECBlocks(26, new ECB(9, 13), new ECB(16, 14))), new Version(20, new int[]{6, 34, 62, 90}, new ECBlocks(28, new ECB(3, 107), new ECB(5, 108)), new ECBlocks(26, new ECB(3, 41), new ECB(13, 42)), new ECBlocks(30, new ECB(15, 24), new ECB(5, 25)), new ECBlocks(28, new ECB(15, 15), new ECB(10, 16))), new Version(21, new int[]{6, 28, 50, 72, 94}, new ECBlocks(28, new ECB(4, 116), new ECB(4, 117)), new ECBlocks(26, new ECB(17, 42)), new ECBlocks(28, new ECB(17, 22), new ECB(6, 23)), new ECBlocks(30, new ECB(19, 16), new ECB(6, 17))), new Version(22, new int[]{6, 26, 50, 74, 98}, new ECBlocks(28, new ECB(2, 111), new ECB(7, 112)), new ECBlocks(28, new ECB(17, 46)), new ECBlocks(30, new ECB(7, 24), new ECB(16, 25)), new ECBlocks(24, new ECB(34, 13))), new Version(23, new int[]{6, 30, 54, 74, 102}, new ECBlocks(30, new ECB(4, 121), new ECB(5, 122)), new ECBlocks(28, new ECB(4, 47), new ECB(14, 48)), new ECBlocks(30, new ECB(11, 24), new ECB(14, 25)), new ECBlocks(30, new ECB(16, 15), new ECB(14, 16))), new Version(24, new int[]{6, 28, 54, 80, 106}, new ECBlocks(30, new ECB(6, 117), new ECB(4, 118)), new ECBlocks(28, new ECB(6, 45), new ECB(14, 46)), new ECBlocks(30, new ECB(11, 24), new ECB(16, 25)), new ECBlocks(30, new ECB(30, 16), new ECB(2, 17))), new Version(25, new int[]{6, 32, 58, 84, 110}, new ECBlocks(26, new ECB(8, 106), new ECB(4, 107)), new ECBlocks(28, new ECB(8, 47), new ECB(13, 48)), new ECBlocks(30, new ECB(7, 24), new ECB(22, 25)), new ECBlocks(30, new ECB(22, 15), new ECB(13, 16))), new Version(26, new int[]{6, 30, 58, 86, 114}, new ECBlocks(28, new ECB(10, 114), new ECB(2, 115)), new ECBlocks(28, new ECB(19, 46), new ECB(4, 47)), new ECBlocks(28, new ECB(28, 22), new ECB(6, 23)), new ECBlocks(30, new ECB(33, 16), new ECB(4, 17))), new Version(27, new int[]{6, 34, 62, 90, 118}, new ECBlocks(30, new ECB(8, 122), new ECB(4, 123)), new ECBlocks(28, new ECB(22, 45), new ECB(3, 46)), new ECBlocks(30, new ECB(8, 23), new ECB(26, 24)), new ECBlocks(30, new ECB(12, 15), new ECB(28, 16))), new Version(28, new int[]{6, 26, 50, 74, 98, 122}, new ECBlocks(30, new ECB(3, 117), new ECB(10, 118)), new ECBlocks(28, new ECB(3, 45), new ECB(23, 46)), new ECBlocks(30, new ECB(4, 24), new ECB(31, 25)), new ECBlocks(30, new ECB(11, 15), new ECB(31, 16))), new Version(29, new int[]{6, 30, 54, 78, 102, 126}, new ECBlocks(30, new ECB(7, 116), new ECB(7, 117)), new ECBlocks(28, new ECB(21, 45), new ECB(7, 46)), new ECBlocks(30, new ECB(1, 23), new ECB(37, 24)), new ECBlocks(30, new ECB(19, 15), new ECB(26, 16))), new Version(30, new int[]{6, 26, 52, 78, 104, 130}, new ECBlocks(30, new ECB(5, 115), new ECB(10, 116)), new ECBlocks(28, new ECB(19, 47), new ECB(10, 48)), new ECBlocks(30, new ECB(15, 24), new ECB(25, 25)), new ECBlocks(30, new ECB(23, 15), new ECB(25, 16))), new Version(31, new int[]{6, 30, 56, 82, 108, 134}, new ECBlocks(30, new ECB(13, 115), new ECB(3, 116)), new ECBlocks(28, new ECB(2, 46), new ECB(29, 47)), new ECBlocks(30, new ECB(42, 24), new ECB(1, 25)), new ECBlocks(30, new ECB(23, 15), new ECB(28, 16))), new Version(32, new int[]{6, 34, 60, 86, 112, 138}, new ECBlocks(30, new ECB(17, 115)), new ECBlocks(28, new ECB(10, 46), new ECB(23, 47)), new ECBlocks(30, new ECB(10, 24), new ECB(35, 25)), new ECBlocks(30, new ECB(19, 15), new ECB(35, 16))), new Version(33, new int[]{6, 30, 58, 86, 114, 142}, new ECBlocks(30, new ECB(17, 115), new ECB(1, 116)), new ECBlocks(28, new ECB(14, 46), new ECB(21, 47)), new ECBlocks(30, new ECB(29, 24), new ECB(19, 25)), new ECBlocks(30, new ECB(11, 15), new ECB(46, 16))), new Version(34, new int[]{6, 34, 62, 90, 118, 146}, new ECBlocks(30, new ECB(13, 115), new ECB(6, 116)), new ECBlocks(28, new ECB(14, 46), new ECB(23, 47)), new ECBlocks(30, new ECB(44, 24), new ECB(7, 25)), new ECBlocks(30, new ECB(59, 16), new ECB(1, 17))), new Version(35, new int[]{6, 30, 54, 78, 102, 126, 150}, new ECBlocks(30, new ECB(12, 121), new ECB(7, 122)), new ECBlocks(28, new ECB(12, 47), new ECB(26, 48)), new ECBlocks(30, new ECB(39, 24), new ECB(14, 25)), new ECBlocks(30, new ECB(22, 15), new ECB(41, 16))), new Version(36, new int[]{6, 24, 50, 76, 102, 128, 154}, new ECBlocks(30, new ECB(6, 121), new ECB(14, 122)), new ECBlocks(28, new ECB(6, 47), new ECB(34, 48)), new ECBlocks(30, new ECB(46, 24), new ECB(10, 25)), new ECBlocks(30, new ECB(2, 15), new ECB(64, 16))), new Version(37, new int[]{6, 28, 54, 80, 106, 132, 158}, new ECBlocks(30, new ECB(17, 122), new ECB(4, 123)), new ECBlocks(28, new ECB(29, 46), new ECB(14, 47)), new ECBlocks(30, new ECB(49, 24), new ECB(10, 25)), new ECBlocks(30, new ECB(24, 15), new ECB(46, 16))), new Version(38, new int[]{6, 32, 58, 84, 110, 136, 162}, new ECBlocks(30, new ECB(4, 122), new ECB(18, 123)), new ECBlocks(28, new ECB(13, 46), new ECB(32, 47)), new ECBlocks(30, new ECB(48, 24), new ECB(14, 25)), new ECBlocks(30, new ECB(42, 15), new ECB(32, 16))), new Version(39, new int[]{6, 26, 54, 82, 110, 138, 166}, new ECBlocks(30, new ECB(20, 117), new ECB(4, 118)), new ECBlocks(28, new ECB(40, 47), new ECB(7, 48)), new ECBlocks(30, new ECB(43, 24), new ECB(22, 25)), new ECBlocks(30, new ECB(10, 15), new ECB(67, 16))), new Version(40, new int[]{6, 30, 58, 86, 114, 142, 170}, new ECBlocks(30, new ECB(19, 118), new ECB(6, 119)), new ECBlocks(28, new ECB(18, 47), new ECB(31, 48)), new ECBlocks(30, new ECB(34, 24), new ECB(34, 25)), new ECBlocks(30, new ECB(20, 15), new ECB(61, 16))) }; } }
123912029-ssiagu
qrdec/src/com/onurgunduz/qrdec/client/Version.java
Java
gpl2
22,160
/* * Copyright 2007 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.onurgunduz.qrdec.client; /** * The general exception class throw when something goes wrong during decoding of a barcode. * This includes, but is not limited to, failing checksums / error correction algorithms, being * unable to locate finder timing patterns, and so on. * * @author Sean Owen */ public final class ReaderException extends Exception { // TODO: Currently we throw up to 400 ReaderExceptions while scanning a single 240x240 image before // rejecting it. This involves a lot of overhead and memory allocation, and affects both performance // and latency on continuous scan clients. In the future, we should change all the decoders not to // throw exceptions for routine events, like not finding a barcode on a given row. Instead, we // should return error codes back to the callers, and simply delete this class. In the mean time, I // have altered this class to be as lightweight as possible, by ignoring the exception string, and // by disabling the generation of stack traces, which is especially time consuming. These are just // temporary measures, pending the big cleanup. private static final ReaderException instance = new ReaderException(); private ReaderException() { // do nothing } public static ReaderException getInstance() { return instance; } // Prevent stack traces from being taken // srowen says: huh, my IDE is saying this is not an override. native methods can't be overridden? // This, at least, does not hurt. Because we use a singleton pattern here, it doesn't matter anyhow. public Throwable fillInStackTrace() { return null; } }
123912029-ssiagu
qrdec/src/com/onurgunduz/qrdec/client/ReaderException.java
Java
gpl2
2,239
/* * Copyright 2007 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.onurgunduz.qrdec.client; /** * <p>This provides an easy abstraction to read bits at a time from a sequence of bytes, where the * number of bits read is not often a multiple of 8.</p> * * <p>This class is not thread-safe.</p> * * @author Sean Owen */ public final class BitSource { private final byte[] bytes; private int byteOffset; private int bitOffset; /** * @param bytes bytes from which this will read bits. Bits will be read from the first byte first. * Bits are read within a byte from most-significant to least-significant bit. */ public BitSource(byte[] bytes) { this.bytes = bytes; } /** * @param numBits number of bits to read * @return int representing the bits read. The bits will appear as the least-significant * bits of the int * @throws IllegalArgumentException if numBits isn't in [1,32] */ public int readBits(int numBits) { if (numBits < 1 || numBits > 32) { throw new IllegalArgumentException(); } int result = 0; // First, read remainder from current byte if (bitOffset > 0) { int bitsLeft = 8 - bitOffset; int toRead = numBits < bitsLeft ? numBits : bitsLeft; int bitsToNotRead = bitsLeft - toRead; int mask = (0xFF >> (8 - toRead)) << bitsToNotRead; result = (bytes[byteOffset] & mask) >> bitsToNotRead; numBits -= toRead; bitOffset += toRead; if (bitOffset == 8) { bitOffset = 0; byteOffset++; } } // Next read whole bytes if (numBits > 0) { while (numBits >= 8) { result = (result << 8) | (bytes[byteOffset] & 0xFF); byteOffset++; numBits -= 8; } // Finally read a partial byte if (numBits > 0) { int bitsToNotRead = 8 - numBits; int mask = (0xFF >> bitsToNotRead) << bitsToNotRead; result = (result << numBits) | ((bytes[byteOffset] & mask) >> bitsToNotRead); bitOffset += numBits; } } return result; } /** * @return number of bits that can be read successfully */ public int available() { return 8 * (bytes.length - byteOffset) - bitOffset; } }
123912029-ssiagu
qrdec/src/com/onurgunduz/qrdec/client/BitSource.java
Java
gpl2
2,870
/* * Copyright 2007 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.onurgunduz.qrdec.client; /** * <p>This class contains utility methods for performing mathematical operations over * the Galois Field GF(256). Operations use a given primitive polynomial in calculations.</p> * * <p>Throughout this package, elements of GF(256) are represented as an <code>int</code> * for convenience and speed (but at the cost of memory). * Only the bottom 8 bits are really used.</p> * * @author Sean Owen */ public final class GF256 { public static final GF256 QR_CODE_FIELD = new GF256(0x011D); // x^8 + x^4 + x^3 + x^2 + 1 public static final GF256 DATA_MATRIX_FIELD = new GF256(0x012D); // x^8 + x^5 + x^3 + x^2 + 1 private final int[] expTable; private final int[] logTable; private final GF256Poly zero; private final GF256Poly one; /** * Create a representation of GF(256) using the given primitive polynomial. * * @param primitive irreducible polynomial whose coefficients are represented by * the bits of an int, where the least-significant bit represents the constant * coefficient */ private GF256(int primitive) { expTable = new int[256]; logTable = new int[256]; int x = 1; for (int i = 0; i < 256; i++) { expTable[i] = x; x <<= 1; // x = x * 2; we're assuming the generator alpha is 2 if (x >= 0x100) { x ^= primitive; } } for (int i = 0; i < 255; i++) { logTable[expTable[i]] = i; } // logTable[0] == 0 but this should never be used zero = new GF256Poly(this, new int[]{0}); one = new GF256Poly(this, new int[]{1}); } GF256Poly getZero() { return zero; } GF256Poly getOne() { return one; } /** * @return the monomial representing coefficient * x^degree */ GF256Poly buildMonomial(int degree, int coefficient) { if (degree < 0) { throw new IllegalArgumentException(); } if (coefficient == 0) { return zero; } int[] coefficients = new int[degree + 1]; coefficients[0] = coefficient; return new GF256Poly(this, coefficients); } /** * Implements both addition and subtraction -- they are the same in GF(256). * * @return sum/difference of a and b */ static int addOrSubtract(int a, int b) { return a ^ b; } /** * @return 2 to the power of a in GF(256) */ int exp(int a) { return expTable[a]; } /** * @return base 2 log of a in GF(256) */ int log(int a) { if (a == 0) { throw new IllegalArgumentException(); } return logTable[a]; } /** * @return multiplicative inverse of a */ int inverse(int a) { if (a == 0) { throw new ArithmeticException(); } return expTable[255 - logTable[a]]; } /** * @param a * @param b * @return product of a and b in GF(256) */ int multiply(int a, int b) { if (a == 0 || b == 0) { return 0; } if (a == 1) { return b; } if (b == 1) { return a; } return expTable[(logTable[a] + logTable[b]) % 255]; } }
123912029-ssiagu
qrdec/src/com/onurgunduz/qrdec/client/GF256.java
Java
gpl2
3,633
/* * Copyright 2007 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.onurgunduz.qrdec.client; import com.onurgunduz.qrdec.client.ReaderException; /** * <p>Encapsulates a QR Code's format information, including the data mask used and * error correction level.</p> * * @author Sean Owen * @see DataMask * @see ErrorCorrectionLevel */ final class FormatInformation { private static final int FORMAT_INFO_MASK_QR = 0x5412; /** * See ISO 18004:2006, Annex C, Table C.1 */ private static final int[][] FORMAT_INFO_DECODE_LOOKUP = { {0x5412, 0x00}, {0x5125, 0x01}, {0x5E7C, 0x02}, {0x5B4B, 0x03}, {0x45F9, 0x04}, {0x40CE, 0x05}, {0x4F97, 0x06}, {0x4AA0, 0x07}, {0x77C4, 0x08}, {0x72F3, 0x09}, {0x7DAA, 0x0A}, {0x789D, 0x0B}, {0x662F, 0x0C}, {0x6318, 0x0D}, {0x6C41, 0x0E}, {0x6976, 0x0F}, {0x1689, 0x10}, {0x13BE, 0x11}, {0x1CE7, 0x12}, {0x19D0, 0x13}, {0x0762, 0x14}, {0x0255, 0x15}, {0x0D0C, 0x16}, {0x083B, 0x17}, {0x355F, 0x18}, {0x3068, 0x19}, {0x3F31, 0x1A}, {0x3A06, 0x1B}, {0x24B4, 0x1C}, {0x2183, 0x1D}, {0x2EDA, 0x1E}, {0x2BED, 0x1F}, }; /** * Offset i holds the number of 1 bits in the binary representation of i */ private static final int[] BITS_SET_IN_HALF_BYTE = {0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 4}; private final ErrorCorrectionLevel errorCorrectionLevel; private final byte dataMask; private FormatInformation(int formatInfo) { // Bits 3,4 errorCorrectionLevel = ErrorCorrectionLevel.forBits((formatInfo >> 3) & 0x03); // Bottom 3 bits dataMask = (byte) (formatInfo & 0x07); } static int numBitsDiffering(int a, int b) { a ^= b; // a now has a 1 bit exactly where its bit differs with b's // Count bits set quickly with a series of lookups: return BITS_SET_IN_HALF_BYTE[a & 0x0F] + BITS_SET_IN_HALF_BYTE[(a >>> 4 & 0x0F)] + BITS_SET_IN_HALF_BYTE[(a >>> 8 & 0x0F)] + BITS_SET_IN_HALF_BYTE[(a >>> 12 & 0x0F)] + BITS_SET_IN_HALF_BYTE[(a >>> 16 & 0x0F)] + BITS_SET_IN_HALF_BYTE[(a >>> 20 & 0x0F)] + BITS_SET_IN_HALF_BYTE[(a >>> 24 & 0x0F)] + BITS_SET_IN_HALF_BYTE[(a >>> 28 & 0x0F)]; } /** * @param rawFormatInfo * @return */ static FormatInformation decodeFormatInformation(int rawFormatInfo) { FormatInformation formatInfo = doDecodeFormatInformation(rawFormatInfo); if (formatInfo != null) { return formatInfo; } // Should return null, but, some QR codes apparently // do not mask this info. Try again, first masking the raw bits so // the function will unmask return doDecodeFormatInformation(rawFormatInfo ^ FORMAT_INFO_MASK_QR); } private static FormatInformation doDecodeFormatInformation(int rawFormatInfo) { // Unmask: int unmaskedFormatInfo = rawFormatInfo ^ FORMAT_INFO_MASK_QR; // Find the int in FORMAT_INFO_DECODE_LOOKUP with fewest bits differing int bestDifference = Integer.MAX_VALUE; int bestFormatInfo = 0; for (int i = 0; i < FORMAT_INFO_DECODE_LOOKUP.length; i++) { int[] decodeInfo = FORMAT_INFO_DECODE_LOOKUP[i]; int targetInfo = decodeInfo[0]; if (targetInfo == unmaskedFormatInfo) { // Found an exact match return new FormatInformation(decodeInfo[1]); } int bitsDifference = numBitsDiffering(unmaskedFormatInfo, targetInfo); if (bitsDifference < bestDifference) { bestFormatInfo = decodeInfo[1]; bestDifference = bitsDifference; } } if (bestDifference <= 3) { return new FormatInformation(bestFormatInfo); } return null; } ErrorCorrectionLevel getErrorCorrectionLevel() { return errorCorrectionLevel; } byte getDataMask() { return dataMask; } public int hashCode() { return (errorCorrectionLevel.ordinal() << 3) | (int) dataMask; } public boolean equals(Object o) { if (!(o instanceof FormatInformation)) { return false; } FormatInformation other = (FormatInformation) o; return this.errorCorrectionLevel == other.errorCorrectionLevel && this.dataMask == other.dataMask; } }
123912029-ssiagu
qrdec/src/com/onurgunduz/qrdec/client/FormatInformation.java
Java
gpl2
4,832
/* * Copyright 2007 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.onurgunduz.qrdec.client; import com.onurgunduz.qrdec.client.ReaderException; import com.onurgunduz.qrdec.client.BitSource; import com.onurgunduz.qrdec.client.CharacterSetECI; import com.onurgunduz.qrdec.client.DecoderResult; import java.util.Vector; /** * <p>QR Codes can encode text as bits in one of several modes, and can use multiple modes * in one QR Code. This class decodes the bits back into text.</p> * * <p>See ISO 18004:2006, 6.4.3 - 6.4.7</p> * * @author Sean Owen */ final class DecodedBitStreamParser { /** * See ISO 18004:2006, 6.4.4 Table 5 */ private static final char[] ALPHANUMERIC_CHARS = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', ' ', '$', '%', '*', '+', '-', '.', '/', ':' }; private static final String SHIFT_JIS = "SJIS"; private static final String EUC_JP = "EUC_JP"; private static final boolean ASSUME_SHIFT_JIS; private static final String UTF8 = "UTF8"; private static final String ISO88591 = "ISO8859_1"; static { // String platformDefault = System.getProperty("file.encoding"); String platformDefault = "UTF-8"; ASSUME_SHIFT_JIS = SHIFT_JIS.equalsIgnoreCase(platformDefault) || EUC_JP.equalsIgnoreCase(platformDefault); } private DecodedBitStreamParser() { } static DecoderResult decode(byte[] bytes, Version version) throws ReaderException { BitSource bits = new BitSource(bytes); StringBuffer result = new StringBuffer(); CharacterSetECI currentCharacterSetECI = null; boolean fc1InEffect = false; Vector byteSegments = new Vector(1); Mode mode; do { // While still another segment to read... if (bits.available() < 4) { // OK, assume we're done. Really, a TERMINATOR mode should have been recorded here mode = Mode.TERMINATOR; } else { try { mode = Mode.forBits(bits.readBits(4)); // mode is encoded by 4 bits } catch (IllegalArgumentException iae) { throw ReaderException.getInstance(); } } if (!mode.equals(Mode.TERMINATOR)) { if (mode.equals(Mode.FNC1_FIRST_POSITION) || mode.equals(Mode.FNC1_SECOND_POSITION)) { // We do little with FNC1 except alter the parsed result a bit according to the spec fc1InEffect = true; } else if (mode.equals(Mode.STRUCTURED_APPEND)) { // not really supported; all we do is ignore it // Read next 8 bits (symbol sequence #) and 8 bits (parity data), then continue bits.readBits(16); } else if (mode.equals(Mode.ECI)) { // Count doesn't apply to ECI int value = parseECIValue(bits); currentCharacterSetECI = CharacterSetECI.getCharacterSetECIByValue(value); if (currentCharacterSetECI == null) { throw ReaderException.getInstance(); } } else { // How many characters will follow, encoded in this mode? int count = bits.readBits(mode.getCharacterCountBits(version)); if (mode.equals(Mode.NUMERIC)) { decodeNumericSegment(bits, result, count); } else if (mode.equals(Mode.ALPHANUMERIC)) { decodeAlphanumericSegment(bits, result, count, fc1InEffect); } else if (mode.equals(Mode.BYTE)) { decodeByteSegment(bits, result, count, currentCharacterSetECI, byteSegments); } else if (mode.equals(Mode.KANJI)) { decodeKanjiSegment(bits, result, count); } else { throw ReaderException.getInstance(); } } } } while (!mode.equals(Mode.TERMINATOR)); return new DecoderResult(bytes, result.toString(), byteSegments.isEmpty() ? null : byteSegments); } private static void decodeKanjiSegment(BitSource bits, StringBuffer result, int count) throws ReaderException { // Each character will require 2 bytes. Read the characters as 2-byte pairs // and decode as Shift_JIS afterwards byte[] buffer = new byte[2 * count]; int offset = 0; while (count > 0) { // Each 13 bits encodes a 2-byte character int twoBytes = bits.readBits(13); int assembledTwoBytes = ((twoBytes / 0x0C0) << 8) | (twoBytes % 0x0C0); if (assembledTwoBytes < 0x01F00) { // In the 0x8140 to 0x9FFC range assembledTwoBytes += 0x08140; } else { // In the 0xE040 to 0xEBBF range assembledTwoBytes += 0x0C140; } buffer[offset] = (byte) (assembledTwoBytes >> 8); buffer[offset + 1] = (byte) assembledTwoBytes; offset += 2; count--; } // Shift_JIS may not be supported in some environments: // *OG* result.append(bytesToString(buffer)); } private static void decodeByteSegment(BitSource bits, StringBuffer result, int count, CharacterSetECI currentCharacterSetECI, Vector byteSegments) throws ReaderException { byte[] readBytes = new byte[count]; if (count << 3 > bits.available()) { throw ReaderException.getInstance(); } for (int i = 0; i < count; i++) { readBytes[i] = (byte) bits.readBits(8); } String encoding; if (currentCharacterSetECI == null) { // The spec isn't clear on this mode; see // section 6.4.5: t does not say which encoding to assuming // upon decoding. I have seen ISO-8859-1 used as well as // Shift_JIS -- without anything like an ECI designator to // give a hint. encoding = guessEncoding(readBytes); } else { encoding = currentCharacterSetECI.getEncodingName(); } // *OG* result.append(bytesToString(readBytes)); byteSegments.addElement(readBytes); } private static String bytesToString(byte[] bytes) { String k=""; for(int i = 0; i < bytes.length; i++) { k = k + (char)bytes[i]; } return k; } private static void decodeAlphanumericSegment(BitSource bits, StringBuffer result, int count, boolean fc1InEffect) { // Read two characters at a time int start = result.length(); while (count > 1) { int nextTwoCharsBits = bits.readBits(11); result.append(ALPHANUMERIC_CHARS[nextTwoCharsBits / 45]); result.append(ALPHANUMERIC_CHARS[nextTwoCharsBits % 45]); count -= 2; } if (count == 1) { // special case: one character left result.append(ALPHANUMERIC_CHARS[bits.readBits(6)]); } // See section 6.4.8.1, 6.4.8.2 if (fc1InEffect) { // We need to massage the result a bit if in an FNC1 mode: for (int i = start; i < result.length(); i++) { if (result.charAt(i) == '%') { if (i < result.length() - 1 && result.charAt(i + 1) == '%') { // %% is rendered as % result.deleteCharAt(i + 1); } else { // In alpha mode, % should be converted to FNC1 separator 0x1D result.setCharAt(i, (char) 0x1D); } } } } } private static void decodeNumericSegment(BitSource bits, StringBuffer result, int count) throws ReaderException { // Read three digits at a time while (count >= 3) { // Each 10 bits encodes three digits int threeDigitsBits = bits.readBits(10); if (threeDigitsBits >= 1000) { throw ReaderException.getInstance(); } result.append(ALPHANUMERIC_CHARS[threeDigitsBits / 100]); result.append(ALPHANUMERIC_CHARS[(threeDigitsBits / 10) % 10]); result.append(ALPHANUMERIC_CHARS[threeDigitsBits % 10]); count -= 3; } if (count == 2) { // Two digits left over to read, encoded in 7 bits int twoDigitsBits = bits.readBits(7); if (twoDigitsBits >= 100) { throw ReaderException.getInstance(); } result.append(ALPHANUMERIC_CHARS[twoDigitsBits / 10]); result.append(ALPHANUMERIC_CHARS[twoDigitsBits % 10]); } else if (count == 1) { // One digit left over to read int digitBits = bits.readBits(4); if (digitBits >= 10) { throw ReaderException.getInstance(); } result.append(ALPHANUMERIC_CHARS[digitBits]); } } private static String guessEncoding(byte[] bytes) { if (ASSUME_SHIFT_JIS) { return SHIFT_JIS; } // Does it start with the UTF-8 byte order mark? then guess it's UTF-8 if (bytes.length > 3 && bytes[0] == (byte) 0xEF && bytes[1] == (byte) 0xBB && bytes[2] == (byte) 0xBF) { return UTF8; } // For now, merely tries to distinguish ISO-8859-1, UTF-8 and Shift_JIS, // which should be by far the most common encodings. ISO-8859-1 // should not have bytes in the 0x80 - 0x9F range, while Shift_JIS // uses this as a first byte of a two-byte character. If we see this // followed by a valid second byte in Shift_JIS, assume it is Shift_JIS. // If we see something else in that second byte, we'll make the risky guess // that it's UTF-8. int length = bytes.length; boolean canBeISO88591 = true; boolean canBeShiftJIS = true; boolean sawDoubleByteStart = false; int maybeSingleByteKatakanaCount = 0; boolean sawLatin1Supplement = false; boolean lastWasPossibleDoubleByteStart = false; for (int i = 0; i < length && (canBeISO88591 || canBeShiftJIS); i++) { int value = bytes[i] & 0xFF; if (value == 0xC2 || value == 0xC3 && i < length - 1) { // This is really a poor hack. The slightly more exotic characters people might want to put in // a QR Code, by which I mean the Latin-1 supplement characters (e.g. u-umlaut) have encodings // that start with 0xC2 followed by [0xA0,0xBF], or start with 0xC3 followed by [0x80,0xBF]. int nextValue = bytes[i + 1] & 0xFF; if (nextValue <= 0xBF && ((value == 0xC2 && nextValue >= 0xA0) || (value == 0xC3 && nextValue >= 0x80))) { sawLatin1Supplement = true; } } if (value >= 0x7F && value <= 0x9F) { canBeISO88591 = false; } if (value >= 0xA1 && value <= 0xDF) { // count the number of characters that might be a Shift_JIS single-byte Katakana character if (!lastWasPossibleDoubleByteStart) { maybeSingleByteKatakanaCount++; } } if (!lastWasPossibleDoubleByteStart && ((value >= 0xF0 && value <= 0xFF) || value == 0x80 || value == 0xA0)) { canBeShiftJIS = false; } if (((value >= 0x81 && value <= 0x9F) || (value >= 0xE0 && value <= 0xEF)) && i < length - 1) { // These start double-byte characters in Shift_JIS. Let's see if it's followed by a valid // second byte. sawDoubleByteStart = true; if (lastWasPossibleDoubleByteStart) { // If we just checked this and the last byte for being a valid double-byte // char, don't check starting on this byte. If this and the last byte // formed a valid pair, then this shouldn't be checked to see if it starts // a double byte pair of course. lastWasPossibleDoubleByteStart = false; } else { // ... otherwise do check to see if this plus the next byte form a valid // double byte pair encoding a character. lastWasPossibleDoubleByteStart = true; int nextValue = bytes[i + 1] & 0xFF; if (nextValue < 0x40 || nextValue > 0xFC) { canBeShiftJIS = false; } // There is some conflicting information out there about which bytes can follow which in // double-byte Shift_JIS characters. The rule above seems to be the one that matches practice. } } else { lastWasPossibleDoubleByteStart = false; } } // Distinguishing Shift_JIS and ISO-8859-1 can be a little tough. The crude heuristic is: // - If we saw // - at least one byte that starts a double-byte value (bytes that are rare in ISO-8859-1), or // - over 5% of bytes that could be single-byte Katakana (also rare in ISO-8859-1), // - and, saw no sequences that are invalid in Shift_JIS, then we conclude Shift_JIS if (canBeShiftJIS && (sawDoubleByteStart || 20 * maybeSingleByteKatakanaCount > length)) { return SHIFT_JIS; } // Otherwise, we default to ISO-8859-1 unless we know it can't be if (!sawLatin1Supplement && canBeISO88591) { return ISO88591; } // Otherwise, we take a wild guess with UTF-8 return UTF8; } private static int parseECIValue(BitSource bits) { int firstByte = bits.readBits(8); if ((firstByte & 0x80) == 0) { // just one byte return firstByte & 0x7F; } else if ((firstByte & 0xC0) == 0x80) { // two bytes int secondByte = bits.readBits(8); return ((firstByte & 0x3F) << 8) | secondByte; } else if ((firstByte & 0xE0) == 0xC0) { // three bytes int secondThirdBytes = bits.readBits(16); return ((firstByte & 0x1F) << 16) | secondThirdBytes; } throw new IllegalArgumentException("Bad ECI bits starting with byte " + firstByte); } }
123912029-ssiagu
qrdec/src/com/onurgunduz/qrdec/client/DecodedBitStreamParser.java
Java
gpl2
14,152
/* * Copyright 2007 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.onurgunduz.qrdec.client; import com.onurgunduz.qrdec.client.ReaderException; import com.onurgunduz.qrdec.client.BitMatrix; import com.onurgunduz.qrdec.client.DecoderResult; import com.onurgunduz.qrdec.client.GF256; import com.onurgunduz.qrdec.client.ReedSolomonDecoder; import com.onurgunduz.qrdec.client.ReedSolomonException; /** * <p>The main class which implements QR Code decoding -- as opposed to locating and extracting * the QR Code from an image.</p> * * @author Sean Owen */ public final class Decoder { private final ReedSolomonDecoder rsDecoder; public Decoder() { rsDecoder = new ReedSolomonDecoder(GF256.QR_CODE_FIELD); } /** * <p>Convenience method that can decode a QR Code represented as a 2D array of booleans. * "true" is taken to mean a black module.</p> * * @param image booleans representing white/black QR Code modules * @return text and bytes encoded within the QR Code * @throws ReaderException if the QR Code cannot be decoded */ public DecoderResult decode(boolean[][] image) throws ReaderException { int dimension = image.length; BitMatrix bits = new BitMatrix(dimension); for (int i = 0; i < dimension; i++) { for (int j = 0; j < dimension; j++) { if (image[i][j]) { bits.set(i, j); } } } return decode(bits); } /** * <p>Decodes a QR Code represented as a {@link BitMatrix}. A 1 or "true" is taken to mean a black module.</p> * * @param bits booleans representing white/black QR Code modules * @return text and bytes encoded within the QR Code * @throws ReaderException if the QR Code cannot be decoded */ public DecoderResult decode(BitMatrix bits) throws ReaderException { // Construct a parser and read version, error-correction level BitMatrixParser parser = new BitMatrixParser(bits); Version version = parser.readVersion(); ErrorCorrectionLevel ecLevel = parser.readFormatInformation().getErrorCorrectionLevel(); // Read codewords byte[] codewords = parser.readCodewords(); // Separate into data blocks DataBlock[] dataBlocks = DataBlock.getDataBlocks(codewords, version, ecLevel); // Count total number of data bytes int totalBytes = 0; for (int i = 0; i < dataBlocks.length; i++) { totalBytes += dataBlocks[i].getNumDataCodewords(); } byte[] resultBytes = new byte[totalBytes]; int resultOffset = 0; // Error-correct and copy data blocks together into a stream of bytes for (int j = 0; j < dataBlocks.length; j++) { DataBlock dataBlock = dataBlocks[j]; byte[] codewordBytes = dataBlock.getCodewords(); int numDataCodewords = dataBlock.getNumDataCodewords(); correctErrors(codewordBytes, numDataCodewords); for (int i = 0; i < numDataCodewords; i++) { resultBytes[resultOffset++] = codewordBytes[i]; } } // Decode the contents of that stream of bytes return DecodedBitStreamParser.decode(resultBytes, version); } /** * <p>Given data and error-correction codewords received, possibly corrupted by errors, attempts to * correct the errors in-place using Reed-Solomon error correction.</p> * * @param codewordBytes data and error correction codewords * @param numDataCodewords number of codewords that are data bytes * @throws ReaderException if error correction fails */ private void correctErrors(byte[] codewordBytes, int numDataCodewords) throws ReaderException { int numCodewords = codewordBytes.length; // First read into an array of ints int[] codewordsInts = new int[numCodewords]; for (int i = 0; i < numCodewords; i++) { codewordsInts[i] = codewordBytes[i] & 0xFF; } int numECCodewords = codewordBytes.length - numDataCodewords; try { rsDecoder.decode(codewordsInts, numECCodewords); } catch (ReedSolomonException rse) { throw ReaderException.getInstance(); } // Copy back into array of bytes -- only need to worry about the bytes that were data // We don't care about errors in the error-correction codewords for (int i = 0; i < numDataCodewords; i++) { codewordBytes[i] = (byte) codewordsInts[i]; } } }
123912029-ssiagu
qrdec/src/com/onurgunduz/qrdec/client/Decoder.java
Java
gpl2
4,955
package com.onurgunduz.qrdec.client; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.user.client.ui.RootPanel; import com.google.gwt.user.client.ui.HTML; import com.onurgunduz.qrdec.client.BitMatrix;; public class Qrdec implements EntryPoint { private static void decode(int[][] source) throws ReaderException { int dimension = source.length; BitMatrix bits = new BitMatrix(dimension); for( int k = 0; k < dimension; k++ ) { for( int v = 0; v < dimension; v++) { if(source != null) { if(source[k][v] == 1) { bits.set(k, v); } } } } Decoder decoder = new Decoder(); DecoderResult decoderResult = decoder.decode(bits); String decodedString = decoderResult.getText(); RootPanel.get("resultView").clear(); RootPanel.get("resultView").add(new HTML("<h2>Decoded string:</h2>")); RootPanel.get("resultView").add(new HTML("<p class='decoded'>" + decodedString +"</p>")); } private native void publish() /*-{ $wnd.decode = @com.onurgunduz.qrdec.client.Qrdec::decode([[I); }-*/; public void onModuleLoad() { publish(); } }
123912029-ssiagu
qrdec/src/com/onurgunduz/qrdec/client/Qrdec.java
Java
gpl2
1,221
/* * Copyright 2007 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.onurgunduz.qrdec.client; /** * <p>See ISO 18004:2006, 6.5.1. This enum encapsulates the four error correction levels * defined by the QR code standard.</p> * * @author Sean Owen */ public final class ErrorCorrectionLevel { // No, we can't use an enum here. J2ME doesn't support it. /** * L = ~7% correction */ public static final ErrorCorrectionLevel L = new ErrorCorrectionLevel(0, 0x01, "L"); /** * M = ~15% correction */ public static final ErrorCorrectionLevel M = new ErrorCorrectionLevel(1, 0x00, "M"); /** * Q = ~25% correction */ public static final ErrorCorrectionLevel Q = new ErrorCorrectionLevel(2, 0x03, "Q"); /** * H = ~30% correction */ public static final ErrorCorrectionLevel H = new ErrorCorrectionLevel(3, 0x02, "H"); private static final ErrorCorrectionLevel[] FOR_BITS = {M, L, H, Q}; private final int ordinal; private final int bits; private final String name; private ErrorCorrectionLevel(int ordinal, int bits, String name) { this.ordinal = ordinal; this.bits = bits; this.name = name; } public int ordinal() { return ordinal; } public int getBits() { return bits; } public String getName() { return name; } public String toString() { return name; } /** * @param bits int containing the two bits encoding a QR Code's error correction level * @return {@link ErrorCorrectionLevel} representing the encoded error correction level */ public static ErrorCorrectionLevel forBits(int bits) { if (bits < 0 || bits >= FOR_BITS.length) { throw new IllegalArgumentException(); } return FOR_BITS[bits]; } }
123912029-ssiagu
qrdec/src/com/onurgunduz/qrdec/client/ErrorCorrectionLevel.java
Java
gpl2
2,280
/* * Copyright 2007 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.onurgunduz.qrdec.client; /** * <p>Implements Reed-Solomon decoding, as the name implies.</p> * * <p>The algorithm will not be explained here, but the following references were helpful * in creating this implementation:</p> * * <ul> * <li>Bruce Maggs. * <a href="http://www.cs.cmu.edu/afs/cs.cmu.edu/project/pscico-guyb/realworld/www/rs_decode.ps"> * "Decoding Reed-Solomon Codes"</a> (see discussion of Forney's Formula)</li> * <li>J.I. Hall. <a href="www.mth.msu.edu/~jhall/classes/codenotes/GRS.pdf"> * "Chapter 5. Generalized Reed-Solomon Codes"</a> * (see discussion of Euclidean algorithm)</li> * </ul> * * <p>Much credit is due to William Rucklidge since portions of this code are an indirect * port of his C++ Reed-Solomon implementation.</p> * * @author Sean Owen * @author William Rucklidge * @author sanfordsquires */ public final class ReedSolomonDecoder { private final GF256 field; public ReedSolomonDecoder(GF256 field) { this.field = field; } /** * <p>Decodes given set of received codewords, which include both data and error-correction * codewords. Really, this means it uses Reed-Solomon to detect and correct errors, in-place, * in the input.</p> * * @param received data and error-correction codewords * @param twoS number of error-correction codewords available * @throws ReedSolomonException if decoding fails for any reason */ public void decode(int[] received, int twoS) throws ReedSolomonException { GF256Poly poly = new GF256Poly(field, received); int[] syndromeCoefficients = new int[twoS]; boolean dataMatrix = field.equals(GF256.DATA_MATRIX_FIELD); boolean noError = true; for (int i = 0; i < twoS; i++) { // Thanks to sanfordsquires for this fix: int eval = poly.evaluateAt(field.exp(dataMatrix ? i + 1 : i)); syndromeCoefficients[syndromeCoefficients.length - 1 - i] = eval; if (eval != 0) { noError = false; } } if (noError) { return; } GF256Poly syndrome = new GF256Poly(field, syndromeCoefficients); GF256Poly[] sigmaOmega = runEuclideanAlgorithm(field.buildMonomial(twoS, 1), syndrome, twoS); GF256Poly sigma = sigmaOmega[0]; GF256Poly omega = sigmaOmega[1]; int[] errorLocations = findErrorLocations(sigma); int[] errorMagnitudes = findErrorMagnitudes(omega, errorLocations, dataMatrix); for (int i = 0; i < errorLocations.length; i++) { int position = received.length - 1 - field.log(errorLocations[i]); if (position < 0) { throw new ReedSolomonException("Bad error location"); } received[position] = GF256.addOrSubtract(received[position], errorMagnitudes[i]); } } private GF256Poly[] runEuclideanAlgorithm(GF256Poly a, GF256Poly b, int R) throws ReedSolomonException { // Assume a's degree is >= b's if (a.getDegree() < b.getDegree()) { GF256Poly temp = a; a = b; b = temp; } GF256Poly rLast = a; GF256Poly r = b; GF256Poly sLast = field.getOne(); GF256Poly s = field.getZero(); GF256Poly tLast = field.getZero(); GF256Poly t = field.getOne(); // Run Euclidean algorithm until r's degree is less than R/2 while (r.getDegree() >= R / 2) { GF256Poly rLastLast = rLast; GF256Poly sLastLast = sLast; GF256Poly tLastLast = tLast; rLast = r; sLast = s; tLast = t; // Divide rLastLast by rLast, with quotient in q and remainder in r if (rLast.isZero()) { // Oops, Euclidean algorithm already terminated? throw new ReedSolomonException("r_{i-1} was zero"); } r = rLastLast; GF256Poly q = field.getZero(); int denominatorLeadingTerm = rLast.getCoefficient(rLast.getDegree()); int dltInverse = field.inverse(denominatorLeadingTerm); while (r.getDegree() >= rLast.getDegree() && !r.isZero()) { int degreeDiff = r.getDegree() - rLast.getDegree(); int scale = field.multiply(r.getCoefficient(r.getDegree()), dltInverse); q = q.addOrSubtract(field.buildMonomial(degreeDiff, scale)); r = r.addOrSubtract(rLast.multiplyByMonomial(degreeDiff, scale)); } s = q.multiply(sLast).addOrSubtract(sLastLast); t = q.multiply(tLast).addOrSubtract(tLastLast); } int sigmaTildeAtZero = t.getCoefficient(0); if (sigmaTildeAtZero == 0) { throw new ReedSolomonException("sigmaTilde(0) was zero"); } int inverse = field.inverse(sigmaTildeAtZero); GF256Poly sigma = t.multiply(inverse); GF256Poly omega = r.multiply(inverse); return new GF256Poly[]{sigma, omega}; } private int[] findErrorLocations(GF256Poly errorLocator) throws ReedSolomonException { // This is a direct application of Chien's search int numErrors = errorLocator.getDegree(); if (numErrors == 1) { // shortcut return new int[] { errorLocator.getCoefficient(1) }; } int[] result = new int[numErrors]; int e = 0; for (int i = 1; i < 256 && e < numErrors; i++) { if (errorLocator.evaluateAt(i) == 0) { result[e] = field.inverse(i); e++; } } if (e != numErrors) { throw new ReedSolomonException("Error locator degree does not match number of roots"); } return result; } private int[] findErrorMagnitudes(GF256Poly errorEvaluator, int[] errorLocations, boolean dataMatrix) { // This is directly applying Forney's Formula int s = errorLocations.length; int[] result = new int[s]; for (int i = 0; i < s; i++) { int xiInverse = field.inverse(errorLocations[i]); int denominator = 1; for (int j = 0; j < s; j++) { if (i != j) { denominator = field.multiply(denominator, GF256.addOrSubtract(1, field.multiply(errorLocations[j], xiInverse))); } } result[i] = field.multiply(errorEvaluator.evaluateAt(xiInverse), field.inverse(denominator)); // Thanks to sanfordsquires for this fix: if (dataMatrix) { result[i] = field.multiply(result[i], xiInverse); } } return result; } }
123912029-ssiagu
qrdec/src/com/onurgunduz/qrdec/client/ReedSolomonDecoder.java
Java
gpl2
6,754
/* * Copyright 2007 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.onurgunduz.qrdec.client; /** * <p>Encapsulates a block of data within a QR Code. QR Codes may split their data into * multiple blocks, each of which is a unit of data and error-correction codewords. Each * is represented by an instance of this class.</p> * * @author Sean Owen */ final class DataBlock { private final int numDataCodewords; private final byte[] codewords; private DataBlock(int numDataCodewords, byte[] codewords) { this.numDataCodewords = numDataCodewords; this.codewords = codewords; } /** * <p>When QR Codes use multiple data blocks, they are actually interleaved. * That is, the first byte of data block 1 to n is written, then the second bytes, and so on. This * method will separate the data into original blocks.</p> * * @param rawCodewords bytes as read directly from the QR Code * @param version version of the QR Code * @param ecLevel error-correction level of the QR Code * @return {@link DataBlock}s containing original bytes, "de-interleaved" from representation in the * QR Code */ static DataBlock[] getDataBlocks(byte[] rawCodewords, Version version, ErrorCorrectionLevel ecLevel) { if (rawCodewords.length != version.getTotalCodewords()) { throw new IllegalArgumentException(); } // Figure out the number and size of data blocks used by this version and // error correction level Version.ECBlocks ecBlocks = version.getECBlocksForLevel(ecLevel); // First count the total number of data blocks int totalBlocks = 0; Version.ECB[] ecBlockArray = ecBlocks.getECBlocks(); for (int i = 0; i < ecBlockArray.length; i++) { totalBlocks += ecBlockArray[i].getCount(); } // Now establish DataBlocks of the appropriate size and number of data codewords DataBlock[] result = new DataBlock[totalBlocks]; int numResultBlocks = 0; for (int j = 0; j < ecBlockArray.length; j++) { Version.ECB ecBlock = ecBlockArray[j]; for (int i = 0; i < ecBlock.getCount(); i++) { int numDataCodewords = ecBlock.getDataCodewords(); int numBlockCodewords = ecBlocks.getECCodewordsPerBlock() + numDataCodewords; result[numResultBlocks++] = new DataBlock(numDataCodewords, new byte[numBlockCodewords]); } } // All blocks have the same amount of data, except that the last n // (where n may be 0) have 1 more byte. Figure out where these start. int shorterBlocksTotalCodewords = result[0].codewords.length; int longerBlocksStartAt = result.length - 1; while (longerBlocksStartAt >= 0) { int numCodewords = result[longerBlocksStartAt].codewords.length; if (numCodewords == shorterBlocksTotalCodewords) { break; } longerBlocksStartAt--; } longerBlocksStartAt++; int shorterBlocksNumDataCodewords = shorterBlocksTotalCodewords - ecBlocks.getECCodewordsPerBlock(); // The last elements of result may be 1 element longer; // first fill out as many elements as all of them have int rawCodewordsOffset = 0; for (int i = 0; i < shorterBlocksNumDataCodewords; i++) { for (int j = 0; j < numResultBlocks; j++) { result[j].codewords[i] = rawCodewords[rawCodewordsOffset++]; } } // Fill out the last data block in the longer ones for (int j = longerBlocksStartAt; j < numResultBlocks; j++) { result[j].codewords[shorterBlocksNumDataCodewords] = rawCodewords[rawCodewordsOffset++]; } // Now add in error correction blocks int max = result[0].codewords.length; for (int i = shorterBlocksNumDataCodewords; i < max; i++) { for (int j = 0; j < numResultBlocks; j++) { int iOffset = j < longerBlocksStartAt ? i : i + 1; result[j].codewords[iOffset] = rawCodewords[rawCodewordsOffset++]; } } return result; } int getNumDataCodewords() { return numDataCodewords; } byte[] getCodewords() { return codewords; } }
123912029-ssiagu
qrdec/src/com/onurgunduz/qrdec/client/DataBlock.java
Java
gpl2
4,771
/* * Copyright 2008 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.onurgunduz.qrdec.client; // import com.google.gwt.emul.java.util.*; import java.util.HashMap; /** * Encapsulates a Character Set ECI, according to "Extended Channel Interpretations" 5.3.1.1 * of ISO 18004. * * @author Sean Owen */ public final class CharacterSetECI extends ECI { private static HashMap VALUE_TO_ECI; private static HashMap NAME_TO_ECI; private static void initialize() { VALUE_TO_ECI = new HashMap(29); NAME_TO_ECI = new HashMap(29); // TODO figure out if these values are even right! addCharacterSet(0, "Cp437"); addCharacterSet(1, new String[] {"ISO8859_1", "ISO-8859-1"}); addCharacterSet(2, "Cp437"); addCharacterSet(3, new String[] {"ISO8859_1", "ISO-8859-1"}); addCharacterSet(4, "ISO8859_2"); addCharacterSet(5, "ISO8859_3"); addCharacterSet(6, "ISO8859_4"); addCharacterSet(7, "ISO8859_5"); addCharacterSet(8, "ISO8859_6"); addCharacterSet(9, "ISO8859_7"); addCharacterSet(10, "ISO8859_8"); addCharacterSet(11, "ISO8859_9"); addCharacterSet(12, "ISO8859_10"); addCharacterSet(13, "ISO8859_11"); addCharacterSet(15, "ISO8859_13"); addCharacterSet(16, "ISO8859_14"); addCharacterSet(17, "ISO8859_15"); addCharacterSet(18, "ISO8859_16"); addCharacterSet(20, new String[] {"SJIS", "Shift_JIS"}); } private final String encodingName; private CharacterSetECI(int value, String encodingName) { super(value); this.encodingName = encodingName; } public String getEncodingName() { return encodingName; } private static void addCharacterSet(int value, String encodingName) { CharacterSetECI eci = new CharacterSetECI(value, encodingName); // VALUE_TO_ECI.put(new Integer(value), eci); // NAME_TO_ECI.put(encodingName, eci); } private static void addCharacterSet(int value, String[] encodingNames) { // CharacterSetECI eci = new CharacterSetECI(value, encodingNames[0]); // VALUE_TO_ECI.put(new Integer(value), eci); // for (int i = 0; i < encodingNames.length; i++) { // NAME_TO_ECI.put(encodingNames[i], eci); // } } /** * @param value character set ECI value * @return {@link CharacterSetECI} representing ECI of given value, or null if it is legal but unsupported * @throws IllegalArgumentException if ECI value is invalid */ public static CharacterSetECI getCharacterSetECIByValue(int value) { if (VALUE_TO_ECI == null) { initialize(); } if (value < 0 || value >= 900) { throw new IllegalArgumentException("Bad ECI value: " + value); } return (CharacterSetECI) VALUE_TO_ECI.get(new Integer(value)); } /** * @param name character set ECI encoding name * @return {@link CharacterSetECI} representing ECI for character encoding, or null if it is legal but unsupported */ public static CharacterSetECI getCharacterSetECIByName(String name) { if (NAME_TO_ECI == null) { initialize(); } return (CharacterSetECI) NAME_TO_ECI.get(name); } }
123912029-ssiagu
qrdec/src/com/onurgunduz/qrdec/client/CharacterSetECI.java
Java
gpl2
3,616
/* * Copyright 2007 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.onurgunduz.qrdec.client; /** * <p>Thrown when an exception occurs during Reed-Solomon decoding, such as when * there are too many errors to correct.</p> * * @author Sean Owen */ public final class ReedSolomonException extends Exception { public ReedSolomonException(String message) { super(message); } }
123912029-ssiagu
qrdec/src/com/onurgunduz/qrdec/client/ReedSolomonException.java
Java
gpl2
930
/* * Copyright 2007 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.onurgunduz.qrdec.client; import java.util.Vector; /** * <p>Encapsulates the result of decoding a matrix of bits. This typically * applies to 2D barcode formats. For now it contains the raw bytes obtained, * as well as a String interpretation of those bytes, if applicable.</p> * * @author Sean Owen */ public final class DecoderResult { private final byte[] rawBytes; private final String text; private final Vector byteSegments; public DecoderResult(byte[] rawBytes, String text, Vector byteSegments) { if (rawBytes == null && text == null) { throw new IllegalArgumentException(); } this.rawBytes = rawBytes; this.text = text; this.byteSegments = byteSegments; } public byte[] getRawBytes() { return rawBytes; } public String getText() { return text; } public Vector getByteSegments() { return byteSegments; } }
123912029-ssiagu
qrdec/src/com/onurgunduz/qrdec/client/DecoderResult.java
Java
gpl2
1,497
/* * Copyright 2007 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.onurgunduz.qrdec.client; import com.onurgunduz.qrdec.client.ReaderException; import com.onurgunduz.qrdec.client.BitMatrix; /** * @author Sean Owen */ final class BitMatrixParser { private final BitMatrix bitMatrix; private Version parsedVersion; private FormatInformation parsedFormatInfo; /** * @param bitMatrix {@link BitMatrix} to parse * @throws ReaderException if dimension is not >= 21 and 1 mod 4 */ BitMatrixParser(BitMatrix bitMatrix) throws ReaderException { int dimension = bitMatrix.getDimension(); if (dimension < 21 || (dimension & 0x03) != 1) { throw ReaderException.getInstance(); } this.bitMatrix = bitMatrix; } /** * <p>Reads format information from one of its two locations within the QR Code.</p> * * @return {@link FormatInformation} encapsulating the QR Code's format info * @throws ReaderException if both format information locations cannot be parsed as * the valid encoding of format information */ FormatInformation readFormatInformation() throws ReaderException { if (parsedFormatInfo != null) { return parsedFormatInfo; } // Read top-left format info bits int formatInfoBits = 0; for (int j = 0; j < 6; j++) { formatInfoBits = copyBit(8, j, formatInfoBits); } // .. and skip a bit in the timing pattern ... formatInfoBits = copyBit(8, 7, formatInfoBits); formatInfoBits = copyBit(8, 8, formatInfoBits); formatInfoBits = copyBit(7, 8, formatInfoBits); // .. and skip a bit in the timing pattern ... for (int i = 5; i >= 0; i--) { formatInfoBits = copyBit(i, 8, formatInfoBits); } parsedFormatInfo = FormatInformation.decodeFormatInformation(formatInfoBits); if (parsedFormatInfo != null) { return parsedFormatInfo; } // Hmm, failed. Try the top-right/bottom-left pattern int dimension = bitMatrix.getDimension(); formatInfoBits = 0; int iMin = dimension - 8; for (int i = dimension - 1; i >= iMin; i--) { formatInfoBits = copyBit(i, 8, formatInfoBits); } for (int j = dimension - 7; j < dimension; j++) { formatInfoBits = copyBit(8, j, formatInfoBits); } parsedFormatInfo = FormatInformation.decodeFormatInformation(formatInfoBits); if (parsedFormatInfo != null) { return parsedFormatInfo; } throw ReaderException.getInstance(); } /** * <p>Reads version information from one of its two locations within the QR Code.</p> * * @return {@link Version} encapsulating the QR Code's version * @throws ReaderException if both version information locations cannot be parsed as * the valid encoding of version information */ Version readVersion() throws ReaderException { if (parsedVersion != null) { return parsedVersion; } int dimension = bitMatrix.getDimension(); int provisionalVersion = (dimension - 17) >> 2; if (provisionalVersion <= 6) { return Version.getVersionForNumber(provisionalVersion); } // Read top-right version info: 3 wide by 6 tall int versionBits = 0; for (int i = 5; i >= 0; i--) { int jMin = dimension - 11; for (int j = dimension - 9; j >= jMin; j--) { versionBits = copyBit(i, j, versionBits); } } parsedVersion = Version.decodeVersionInformation(versionBits); if (parsedVersion != null) { return parsedVersion; } // Hmm, failed. Try bottom left: 6 wide by 3 tall versionBits = 0; for (int j = 5; j >= 0; j--) { int iMin = dimension - 11; for (int i = dimension - 11; i >= iMin; i--) { versionBits = copyBit(i, j, versionBits); } } parsedVersion = Version.decodeVersionInformation(versionBits); if (parsedVersion != null) { return parsedVersion; } throw ReaderException.getInstance(); } private int copyBit(int i, int j, int versionBits) { return bitMatrix.get(i, j) ? (versionBits << 1) | 0x1 : versionBits << 1; } /** * <p>Reads the bits in the {@link BitMatrix} representing the finder pattern in the * correct order in order to reconstitute the codewords bytes contained within the * QR Code.</p> * * @return bytes encoded within the QR Code * @throws ReaderException if the exact number of bytes expected is not read */ byte[] readCodewords() throws ReaderException { FormatInformation formatInfo = readFormatInformation(); Version version = readVersion(); // Get the data mask for the format used in this QR Code. This will exclude // some bits from reading as we wind through the bit matrix. DataMask dataMask = DataMask.forReference((int) formatInfo.getDataMask()); int dimension = bitMatrix.getDimension(); dataMask.unmaskBitMatrix(bitMatrix.getBits(), dimension); BitMatrix functionPattern = version.buildFunctionPattern(); boolean readingUp = true; byte[] result = new byte[version.getTotalCodewords()]; int resultOffset = 0; int currentByte = 0; int bitsRead = 0; // Read columns in pairs, from right to left for (int j = dimension - 1; j > 0; j -= 2) { if (j == 6) { // Skip whole column with vertical alignment pattern; // saves time and makes the other code proceed more cleanly j--; } // Read alternatingly from bottom to top then top to bottom for (int count = 0; count < dimension; count++) { int i = readingUp ? dimension - 1 - count : count; for (int col = 0; col < 2; col++) { // Ignore bits covered by the function pattern if (!functionPattern.get(i, j - col)) { // Read a bit bitsRead++; currentByte <<= 1; if (bitMatrix.get(i, j - col)) { currentByte |= 1; } // If we've made a whole byte, save it off if (bitsRead == 8) { result[resultOffset++] = (byte) currentByte; bitsRead = 0; currentByte = 0; } } } } readingUp ^= true; // readingUp = !readingUp; // switch directions } if (resultOffset != version.getTotalCodewords()) { throw ReaderException.getInstance(); } return result; } }
123912029-ssiagu
qrdec/src/com/onurgunduz/qrdec/client/BitMatrixParser.java
Java
gpl2
7,085
/* * Copyright 2007 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.onurgunduz.qrdec.client; /** * <p>See ISO 18004:2006, 6.4.1, Tables 2 and 3. This enum encapsulates the various modes in which * data can be encoded to bits in the QR code standard.</p> * * @author Sean Owen */ public final class Mode { // No, we can't use an enum here. J2ME doesn't support it. public static final Mode TERMINATOR = new Mode(new int[]{0, 0, 0}, 0x00, "TERMINATOR"); // Not really a mode... public static final Mode NUMERIC = new Mode(new int[]{10, 12, 14}, 0x01, "NUMERIC"); public static final Mode ALPHANUMERIC = new Mode(new int[]{9, 11, 13}, 0x02, "ALPHANUMERIC"); public static final Mode STRUCTURED_APPEND = new Mode(new int[]{0, 0, 0}, 0x03, "STRUCTURED_APPEND"); // Not supported public static final Mode BYTE = new Mode(new int[]{8, 16, 16}, 0x04, "BYTE"); public static final Mode ECI = new Mode(null, 0x07, "ECI"); // character counts don't apply public static final Mode KANJI = new Mode(new int[]{8, 10, 12}, 0x08, "KANJI"); public static final Mode FNC1_FIRST_POSITION = new Mode(null, 0x05, "FNC1_FIRST_POSITION"); public static final Mode FNC1_SECOND_POSITION = new Mode(null, 0x09, "FNC1_SECOND_POSITION"); private final int[] characterCountBitsForVersions; private final int bits; private final String name; private Mode(int[] characterCountBitsForVersions, int bits, String name) { this.characterCountBitsForVersions = characterCountBitsForVersions; this.bits = bits; this.name = name; } /** * @param bits four bits encoding a QR Code data mode * @return {@link Mode} encoded by these bits * @throws IllegalArgumentException if bits do not correspond to a known mode */ public static Mode forBits(int bits) { switch (bits) { case 0x0: return TERMINATOR; case 0x1: return NUMERIC; case 0x2: return ALPHANUMERIC; case 0x3: return STRUCTURED_APPEND; case 0x4: return BYTE; case 0x5: return FNC1_FIRST_POSITION; case 0x7: return ECI; case 0x8: return KANJI; case 0x9: return FNC1_SECOND_POSITION; default: throw new IllegalArgumentException(); } } /** * @param version version in question * @return number of bits used, in this QR Code symbol {@link Version}, to encode the * count of characters that will follow encoded in this {@link Mode} */ public int getCharacterCountBits(Version version) { if (characterCountBitsForVersions == null) { throw new IllegalArgumentException("Character count doesn't apply to this mode"); } int number = version.getVersionNumber(); int offset; if (number <= 9) { offset = 0; } else if (number <= 26) { offset = 1; } else { offset = 2; } return characterCountBitsForVersions[offset]; } public int getBits() { return bits; } public String getName() { return name; } public String toString() { return name; } }
123912029-ssiagu
qrdec/src/com/onurgunduz/qrdec/client/Mode.java
Java
gpl2
3,621
/* * Copyright 2007 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.onurgunduz.qrdec.client; /** * <p>Represents a polynomial whose coefficients are elements of GF(256). * Instances of this class are immutable.</p> * * <p>Much credit is due to William Rucklidge since portions of this code are an indirect * port of his C++ Reed-Solomon implementation.</p> * * @author Sean Owen */ final class GF256Poly { private final GF256 field; private final int[] coefficients; /** * @param field the {@link GF256} instance representing the field to use * to perform computations * @param coefficients coefficients as ints representing elements of GF(256), arranged * from most significant (highest-power term) coefficient to least significant * @throws IllegalArgumentException if argument is null or empty, * or if leading coefficient is 0 and this is not a * constant polynomial (that is, it is not the monomial "0") */ GF256Poly(GF256 field, int[] coefficients) { if (coefficients == null || coefficients.length == 0) { throw new IllegalArgumentException(); } this.field = field; int coefficientsLength = coefficients.length; if (coefficientsLength > 1 && coefficients[0] == 0) { // Leading term must be non-zero for anything except the constant polynomial "0" int firstNonZero = 1; while (firstNonZero < coefficientsLength && coefficients[firstNonZero] == 0) { firstNonZero++; } if (firstNonZero == coefficientsLength) { this.coefficients = field.getZero().coefficients; } else { this.coefficients = new int[coefficientsLength - firstNonZero]; System.arraycopy(coefficients, firstNonZero, this.coefficients, 0, this.coefficients.length); } } else { this.coefficients = coefficients; } } int[] getCoefficients() { return coefficients; } /** * @return degree of this polynomial */ int getDegree() { return coefficients.length - 1; } /** * @return true iff this polynomial is the monomial "0" */ boolean isZero() { return coefficients[0] == 0; } /** * @return coefficient of x^degree term in this polynomial */ int getCoefficient(int degree) { return coefficients[coefficients.length - 1 - degree]; } /** * @return evaluation of this polynomial at a given point */ int evaluateAt(int a) { if (a == 0) { // Just return the x^0 coefficient return getCoefficient(0); } int size = coefficients.length; if (a == 1) { // Just the sum of the coefficients int result = 0; for (int i = 0; i < size; i++) { result = GF256.addOrSubtract(result, coefficients[i]); } return result; } int result = coefficients[0]; for (int i = 1; i < size; i++) { result = GF256.addOrSubtract(field.multiply(a, result), coefficients[i]); } return result; } GF256Poly addOrSubtract(GF256Poly other) { if (!field.equals(other.field)) { throw new IllegalArgumentException("GF256Polys do not have same GF256 field"); } if (isZero()) { return other; } if (other.isZero()) { return this; } int[] smallerCoefficients = this.coefficients; int[] largerCoefficients = other.coefficients; if (smallerCoefficients.length > largerCoefficients.length) { int[] temp = smallerCoefficients; smallerCoefficients = largerCoefficients; largerCoefficients = temp; } int[] sumDiff = new int[largerCoefficients.length]; int lengthDiff = largerCoefficients.length - smallerCoefficients.length; // Copy high-order terms only found in higher-degree polynomial's coefficients System.arraycopy(largerCoefficients, 0, sumDiff, 0, lengthDiff); for (int i = lengthDiff; i < largerCoefficients.length; i++) { sumDiff[i] = GF256.addOrSubtract(smallerCoefficients[i - lengthDiff], largerCoefficients[i]); } return new GF256Poly(field, sumDiff); } GF256Poly multiply(GF256Poly other) { if (!field.equals(other.field)) { throw new IllegalArgumentException("GF256Polys do not have same GF256 field"); } if (isZero() || other.isZero()) { return field.getZero(); } int[] aCoefficients = this.coefficients; int aLength = aCoefficients.length; int[] bCoefficients = other.coefficients; int bLength = bCoefficients.length; int[] product = new int[aLength + bLength - 1]; for (int i = 0; i < aLength; i++) { int aCoeff = aCoefficients[i]; for (int j = 0; j < bLength; j++) { product[i + j] = GF256.addOrSubtract(product[i + j], field.multiply(aCoeff, bCoefficients[j])); } } return new GF256Poly(field, product); } GF256Poly multiply(int scalar) { if (scalar == 0) { return field.getZero(); } if (scalar == 1) { return this; } int size = coefficients.length; int[] product = new int[size]; for (int i = 0; i < size; i++) { product[i] = field.multiply(coefficients[i], scalar); } return new GF256Poly(field, product); } GF256Poly multiplyByMonomial(int degree, int coefficient) { if (degree < 0) { throw new IllegalArgumentException(); } if (coefficient == 0) { return field.getZero(); } int size = coefficients.length; int[] product = new int[size + degree]; for (int i = 0; i < size; i++) { product[i] = field.multiply(coefficients[i], coefficient); } return new GF256Poly(field, product); } GF256Poly[] divide(GF256Poly other) { if (!field.equals(other.field)) { throw new IllegalArgumentException("GF256Polys do not have same GF256 field"); } if (other.isZero()) { throw new IllegalArgumentException("Divide by 0"); } GF256Poly quotient = field.getZero(); GF256Poly remainder = this; int denominatorLeadingTerm = other.getCoefficient(other.getDegree()); int inverseDenominatorLeadingTerm = field.inverse(denominatorLeadingTerm); while (remainder.getDegree() >= other.getDegree() && !remainder.isZero()) { int degreeDifference = remainder.getDegree() - other.getDegree(); int scale = field.multiply(remainder.getCoefficient(remainder.getDegree()), inverseDenominatorLeadingTerm); GF256Poly term = other.multiplyByMonomial(degreeDifference, scale); GF256Poly iterationQuotient = field.buildMonomial(degreeDifference, scale); quotient = quotient.addOrSubtract(iterationQuotient); remainder = remainder.addOrSubtract(term); } return new GF256Poly[] { quotient, remainder }; } public String toString() { StringBuffer result = new StringBuffer(8 * getDegree()); for (int degree = getDegree(); degree >= 0; degree--) { int coefficient = getCoefficient(degree); if (coefficient != 0) { if (coefficient < 0) { result.append(" - "); coefficient = -coefficient; } else { if (result.length() > 0) { result.append(" + "); } } if (degree == 0 || coefficient != 1) { int alphaPower = field.log(coefficient); if (alphaPower == 0) { result.append('1'); } else if (alphaPower == 1) { result.append('a'); } else { result.append("a^"); result.append(alphaPower); } } if (degree != 0) { if (degree == 1) { result.append('x'); } else { result.append("x^"); result.append(degree); } } } } return result.toString(); } }
123912029-ssiagu
qrdec/src/com/onurgunduz/qrdec/client/GF256Poly.java
Java
gpl2
8,284
<html><head><script>var $gwt_version = "2.0.0";var $wnd = parent;var $doc = $wnd.document;var $moduleName, $moduleBase;var $strongName = '29021A86E89BEAAF0A2CDEBC37024CFE';var $stats = $wnd.__gwtStatsEvent ? function(a) {return $wnd.__gwtStatsEvent(a);} : null,$sessionId = $wnd.__gwtStatsSessionId ? $wnd.__gwtStatsSessionId : null;$stats && $stats({moduleName:'qrdec',sessionId:$sessionId,subSystem:'startup',evtGroup:'moduleStartup',millis:(new Date()).getTime(),type:'moduleEvalStart'});</script></head><body><script><!-- function vv(){} function mc(){} function Bc(){} function Ac(){} function zc(){} function yc(){} function jd(){} function yd(){} function Ld(){} function Qd(){} function le(){} function oe(){} function we(){} function De(){} function Ce(){} function Le(){} function pf(){} function of(){} function Cf(){} function Gf(){} function Mf(){} function Wf(){} function _f(){} function lg(){} function Tj(){} function $j(){} function Ek(){} function Nk(){} function Ok(){} function Rk(){} function Sk(){} function Dk(){} function Yk(){} function Zk(){} function Ck(){} function Bk(){} function Ak(){} function kl(){} function rl(){} function vl(){} function Bl(){} function Al(){} function Pl(){} function $l(){} function cm(){} function fm(){} function lm(){} function wm(){} function Hm(){} function Om(){} function Vm(){} function en(){} function kn(){} function pn(){} function un(){} function zn(){} function En(){} function Jn(){} function On(){} function Tn(){} function Yn(){} function oo(){} function uo(){} function yo(){} function Io(){} function To(){} function cp(){} function mp(){} function Fp(){} function Kp(){} function Sp(){} function Wp(){} function dq(){} function hq(){} function oq(){} function sq(){} function yq(){} function Eq(){} function Kq(){} function Pq(){} function Uq(){} function $q(){} function Zq(){} function hr(){} function lr(){} function Kr(){} function Wr(){} function $r(){} function gs(){} function fs(){} function Hs(){} function Gs(){} function Vs(){} function ct(){} function bt(){} function nt(){} function vt(){} function Gt(){} function Pt(){} function Xt(){} function bu(){} function xu(){} function Du(){} function Tu(){} function av(){} function jv(){} function vf(a){Wl()} function tl(a){Ik(a)} function xl(a){Jk(a)} function Jc(){return yi} function rc(){return xi} function Ec(){return Ci} function Hc(){return qi} function Mc(){return dh} function ld(){return fh} function Hd(){return ih} function Pd(){return gh} function Ud(){return hh} function ne(){return kh} function ve(){return jh} function Be(){return oh} function Fe(){return nh} function Ke(){return mh} function Oe(){return lh} function sf(){return sh} function xf(){return tf} function yf(){return ph} function Ef(){return qh} function Kf(){return rh} function Vf(){return vh} function Zf(){return th} function hg(){return uh} function Yj(){return Uj} function Zj(){return wh} function bk(){return xh} function Gk(){return Kh} function Pk(){return Nh} function Xk(){return Fh} function dl(){return Ch} function jl(){return yh} function pl(){return Bh} function ul(){return zh} function yl(){return Ah} function El(){return Eh} function Hl(){return Dh} function Zl(){return Jh} function bm(){return Gh} function em(){return Hh} function im(){return Ih} function um(){return Mh} function Em(){return Lh} function Nm(){return Ph} function Um(){return Oh} function Zm(){return Qh} function hn(){return Rh} function on(){return $h} function sn(){return Sh} function xn(){return Th} function Cn(){return Uh} function Hn(){return Vh} function Mn(){return Wh} function Rn(){return Xh} function Wn(){return Yh} function _n(){return Zh} function to(){return ai} function xo(){return _h} function Ho(){return bi} function Qo(){return ci} function bp(){return ei} function lp(){return di} function Ap(){return fi} function Jp(){return gi} function Rp(){return hi} function Vp(){return ii} function bq(){return li} function gq(){return ji} function lq(){return ki} function rq(){return mi} function wq(){return ni} function Dq(){return pi} function Hq(){return oi} function Oq(){return ri} function Tq(){return si} function Yq(){return ti} function ar(){return wi} function er(){return ui} function kr(){return vi} function or(){return zi} function zr(){return Bi} function Qr(){return Ai} function Zr(){return Di} function ds(){return Ei} function ks(){return Pi} function Fs(){return Ji} function Ks(){return Qi} function Ss(){return Gi} function $s(){return Fi} function ft(){return Oi} function jt(){return Hi} function qt(){return Ii} function Ct(){return Li} function Mt(){return Ki} function Ut(){return Ni} function $t(){return Mi} function ru(){return Ri} function Cu(){return Si} function Mu(){return Ti} function Xu(){return Ui} function dv(){return Vi} function rv(){return Wi} function Ee(){Ee=vv;xe()} function Ge(){Ge=vv;Ee()} function Me(){Me=vv;Ge()} function gm(){gm=vv;Tl()} function qn(){qn=vv;mn()} function vn(){vn=vv;mn()} function An(){An=vv;mn()} function Fn(){Fn=vv;mn()} function Kn(){Kn=vv;mn()} function Pn(){Pn=vv;mn()} function Un(){Un=vv;mn()} function Zn(){Zn=vv;mn()} function am(a){a.c&&Jk(a)} function kt(){return null} function Gd(a){return a.h()} function Lf(){return this.b} function fr(){return this.b} function rt(){return this.b} function tu(){return this.c} function Yu(){return this.b} function Zu(){return this.c} function ug(){return this.aC} function gl(a,b){al(a,b,a.f)} function om(a,b){qm(a,b,a.d)} function qq(a){fe();return a} function uq(a){fe();return a} function Gq(a){fe();return a} function Mq(a){fe();return a} function Rq(a){fe();return a} function Wq(a){fe();return a} function jr(a){fe();return a} function cv(a){fe();return a} function Xj(a){$g(a);null.E()} function Gm(){return Bm(this)} function Ar(){return Ir(this)} function Us(){return this.b.e} function lt(){return this.b.c} function Ot(){return Lt(this)} function Ou(){return this.b.e} function ou(a,b){hu(this,a,b)} function zu(a){qs(a);return a} function tv(){return this.b.c} function Gc(a,b){fe();return a} function Up(a,b){fe();return a} function vq(a,b){fe();return a} function Nq(a,b){fe();return a} function Sq(a,b){fe();return a} function Xq(a,b){fe();return a} function Yr(a,b){fe();return a} function Nd(a,b){a.b=b;return a} function Sd(a,b){a.b=b;return a} function Dl(a,b){a.f=b;return a} function zm(a,b){a.c=b;return a} function Xm(a,b){a.d=b;return a} function Mp(a,b){a.b=b;return a} function cr(a,b){a.b=b;return a} function Ns(a,b){a.b=b;return a} function _s(){return Kt(this.b)} function Wt(){return this.c.b.e} function xe(){xe=vv;Me();new Le} function Gr(){Gr=vv;Dr={};Fr={}} function nr(a,b,c,d,e){return a} function it(a,b){a.b=b;return a} function Jt(a,b){a.c=b;return a} function Zt(a,b){a.b=b;return a} function ov(a,b){hu(this.b,a,b)} function Vk(){ql(this,(nl(),ll))} function Wk(){ql(this,(nl(),ml))} function _t(){return Kt(this.b.b)} function Rs(a){return Os(this,a)} function Jf(a){a.b=++Hf;return a} function vu(a){return mu(this,a)} function Kt(a){return a.b<a.c.w()} function mt(a){return zs(this.b,a)} function Tt(a){return rs(this.b,a)} function Lu(a){return rs(this.b,a)} function nv(a){return gu(this.b,a)} function qv(a){return ju(this.b,a)} function uv(a){return mu(this.b,a)} function Ad(){Ad=vv;zd=Cd(new yd)} function Vj(){Vj=vv;Uj=Jf(new Gf)} function Qj(){if(!Jj){zk();Jj=true}} function Nr(a){a.b=new oe;return a} function Pr(a,b){a.b.b+=b;return a} function Kg(a,b){return a&&Hg[a][b]} function ws(b,a){return Xx+a in b.f} function vm(){return zm(new wm,this)} function bs(a){throw Yr(new Wr,$x)} function zt(a,b){throw Yr(new Wr,ay)} function Au(a,b){ns(a,b,0);return a} function Ft(){return Jt(new Gt,this)} function Nj(a,b){return Qf(Pj(),a,b)} function Jg(a,b){return a&&!!Hg[a][b]} function el(){return zm(new wm,this.b)} function Fm(){return this.b<this.c.d-1} function Ts(){return Xs(new Vs,this.b)} function at(){return Mg(Lt(this.b),29)} function Nt(){return this.b<this.c.w()} function sv(){return Jt(new Gt,this.b)} function pu(a){return ku(this,a,0)!=-1} function Ro(){return this.c.b<<3|this.b} function Fo(a,b,c){Eo();a.b=b;return a} function cg(a){a.b=zu(new xu);return a} function tt(a,b){return pt(new nt,b,a)} function At(a,b){(a<0||a>=b)&&Et(a,b)} function Rt(a,b,c){a.b=b;a.c=c;return a} function xp(a,b,c){wp();a.b=b;return a} function Fu(a){a.b=zu(new xu);return a} function st(){return this.c.f[Xx+this.b]} function pt(a,b,c){a.c=c;a.b=b;return a} function gn(a,b,c){a.c=b;a.b=c;return a} function fq(a,b,c){a.b=b;a.c=c;return a} function Vu(a,b,c){a.b=b;a.c=c;return a} function ju(a,b){At(b,a.c);return a.b[b]} function ut(a){return As(this.c,this.b,a)} function pv(a){return ku(this.b,a,0)!=-1} function Pg(a,b){return a!=null&&Jg(a.tI,b)} function Lc(a,b){fe();a.b=b;ee(a);return a} function lv(a,b){a.b=fu(new bu,b);return a} function hp(a,b){return a.b[a.b.length-1-b]} function eu(a){a.b=vg(gj,0,0,0,0);return a} function qu(a){return At(a,this.c),this.b[a]} function sc(){return this.$H||(this.$H=++pd)} function qc(a){return this===(a==null?null:a)} function gu(a,b){yg(a.b,a.c++,b);return true} function Dd(a){var b;b=a.c;a.c=[];Jd(b,a.c)} function wf(a){var b;if(tf){b=new of;Tf(a,b)}} function Hp(){Hp=vv;Gp=(Hp(),new Fp)} function nl(){nl=vv;ll=new rl;ml=new vl} function ge(){try{null.a()}catch(a){return a}} function ur(b,a){return b.substr(a,b.length-a)} function Fd(a){return a.b.length>0||a.f.length>0} function yt(a){this.C(this.w(),a);return true} function hk(){if(!dk){rk();uk();dk=true}} function hm(a){gm();Ul(a,$doc.body);return a} function qo(a){a.b=Mp(new Kp,(Wo(),Vo));return a} function Pj(){!Kj&&(Kj=ak(new $j));return Kj} function Et(a,b){throw Xq(new Uq,by+a+cy+b)} function Cq(a,b){var c;c=new yq;c.c=1;return c} function Yf(a,b,c,d){a.b=b;a.d=c;a.c=d;return a} function Rf(a,b){!a.b&&(a.b=eu(new bu));gu(a.b,b)} function nm(a,b){a.c=b;a.b=vg($i,0,8,4,0);return a} function hl(a,b){var c;c=cl(a,b);c&&il(b.f);return c} function Gu(a,b){var c;c=xs(a.b,b,a);return c==null} function _u(a){var b;b=this.c;this.c=a;return b} function cs(a){var b;b=as(this.p(),a);return !!b} function nu(a){return yg(this.b,this.c++,a),true} function Qg(a){return a!=null&&a.tM!=vv&&a.tI!=2} function $g(a){if(a!=null){throw Gq(new Eq)}return a} function Jr(){if(Er==256){Dr=Fr;Fr={};Er=0}++Er} function qs(a){a.b=[];a.f={};a.d=false;a.c=null;a.e=0} function Ed(a){var b;b=a.b;a.b=[];Jd(b,a.f);a.f=Id(a.f)} function Aq(a,b,c){var d;d=new yq;d.c=4;d.b=c;return d} function jq(a,b,c){a.c=b;a.b=wg(dj,0,13,[c]);return a} function ue(a,b,c,d){a.b=a.b.substr(0,b-0)+d+ur(a.b,c)} function be(a,b){a.length>=b&&a.splice(0,b);return a} function Or(a,b){a.b.b+=String.fromCharCode(b);return a} function _o(a,b){if(b==0){throw Mq(new Kq)}return a.c[b]} function ak(a){a.e=cg(new _f);a.f=null;a.d=false;return a} function Ku(a){var b;return b=xs(this.b,a,this),b==null} function au(){var a;a=Mg(Lt(this.b.b),29);return a.z()} function Td(){this.b.d&&Kd(this.b.e,1);return this.b.g} function Mj(a){Qj();return Nj(tf?tf:(tf=Jf(new Gf)),a)} function is(a){var b;b=Ns(new Gs,a);return Rt(new Pt,a,b)} function Wo(){Wo=vv;Vo=Xo(new To,285);Uo=Xo(new To,301)} function Cg(){Cg=vv;Ag=[];Bg=[];Dg(new lg,Ag,Bg)} function Tl(){Tl=vv;Ql=new $l;Rl=zu(new xu);Sl=Fu(new Du)} function Vt(){var a;return a=Xs(new Vs,this.c.b),Zt(new Xt,a)} function sd(a){return function(){return td(a,this,arguments)}} function kq(a,b,c,d){a.c=b;a.b=wg(dj,0,13,[c,d]);return a} function fu(a,b){a.b=vg(gj,0,0,0,0);a.b.length=b;return a} function Ul(a,b){Tl();a.b=nm(new lm,a);a.f=b;Ik(a);return a} function Vl(a){Tl();try{Jk(a)}finally{Bs(Sl.b,a)!=null}} function Wl(){Tl();try{ql(Sl,Ql)}finally{qs(Sl.b);qs(Rl)}} function al(a,b,c){Kk(b);om(a.b,b);c.appendChild(b.f);Lk(b,a)} function Mo(a,b){Lo();a.c=Go(b>>3&3);a.b=(b&7)<<24>>24;return a} function Bs(a,b){return !b?Ds(a):Cs(a,b,~~(b.$H||(b.$H=++pd)))} function Je(a,b){return a===b||!!(a.compareDocumentPosition(b)&16)} function Zc(a){return a.tM==vv||a.tI==2?a.hC():a.$H||(a.$H=++pd)} function dr(a){return a!=null&&Jg(a.tI,27)&&Mg(a,27).b==this.b} function Mg(a,b){if(a!=null&&!Kg(a.tI,b)){throw Gq(new Eq)}return a} function nn(a){mn();if(a<0||a>7){throw Mq(new Kq)}return ln[a]} function $o(a,b){if(b==0){throw qq(new oq)}return a.b[255-a.c[b]]} function Bm(a){if(a.b>=a.c.d){throw cv(new av)}return a.c.b[++a.b]} function cq(a){Zp();if(a<1||a>40){throw Mq(new Kq)}return Xp[a-1]} function ns(a,b,c){qs(a);if(b<0||c<0){throw Nq(new Kq,_x)}return a} function Km(a,b,c){var d;d=b+a.c*c;return (a.b[d>>5]>>>(d&31)&1)!=0} function zs(a,b){var c;c=a.c;a.c=b;if(!a.d){a.d=true;++a.e}return c} function Ds(a){var b;b=a.c;a.c=null;if(a.d){a.d=false;--a.e}return b} function tm(a,b){var c;c=pm(a,b);if(c==-1){throw cv(new av)}sm(a,c)} function sg(a,b){var c,d;c=a;d=tg(0,b);wg(c.aC,c.tI,c.qI,d);return d} function tn(a,b){var c,d;d=a.length;for(c=0;c<d;++c){a[c]^=1431655765}} function Fg(a,b,c){Cg();for(var d=0,e=b.length;d<e;++d){a[b[d]]=c[d]}} function wg(a,b,c,d){Cg();Fg(d,Ag,Bg);d.aC=a;d.tI=b;d.qI=c;return d} function No(a){Lo();var b;b=Oo(a);if(b){return b}return Oo(a^21522)} function Nu(){var a;return a=Xs(new Vs,is(this.b).c.b),Zt(new Xt,a)} function Uk(a){var b;b=zm(new wm,a.b);while(b.b<b.c.d-1){Bm(b);Dm(b)}} function hu(a,b,c){(b<0||b>a.c)&&Et(b,a.c);a.b.splice(b,0,c);++a.c} function ku(a,b,c){for(;c<a.c;++c){if(iv(b,a.b[c])){return c}}return -1} function Qf(a,b,c){a.c>0?Rf(a,Yf(new Wf,a,b,c)):dg(a.e,b,c);return new Cf} function wo(a,b,c){if(b==null&&c==null){throw Mq(new Kq)}a.b=c;return a} function qj(a){if(a!=null&&Jg(a.tI,18)){return a}return Lc(new yc,a)} function Lt(a){if(a.b>=a.c.w()){throw cv(new av)}return a.c.D(a.b++)} function Dm(a){if(a.b<0||a.b>=a.c.d){throw Rq(new Pq)}hl(a.c.c,a.c.b[a.b--])} function Go(a){Eo();if(a<0||a>=zo.length){throw Mq(new Kq)}return zo[a]} function yr(a){if(!(a!=null&&Jg(a.tI,1))){return false}return String(this)==a} function Ng(a){if(a!=null&&(a.tM==vv||a.tI==2)){throw Gq(new Eq)}return a} function jk(a){return !(a!=null&&a.tM!=vv&&a.tI!=2)&&a!=null&&Jg(a.tI,6)} function Es(a,b){return (a==null?null:a)===(b==null?null:b)||a!=null&&Vc(a,b)} function Bu(a,b){return (a==null?null:a)===(b==null?null:b)||a!=null&&Vc(a,b)} function iv(a,b){return (a==null?null:a)===(b==null?null:b)||a!=null&&Vc(a,b)} function Vc(a,b){return a.tM==vv||a.tI==2?a.eQ(b):(a==null?null:a)===(b==null?null:b)} function pm(a,b){var c;for(c=0;c<a.d;++c){if(a.b[c]==b){return c}}return -1} function Qm(a,b){var c;c=b.c;if(c<21||(c&3)!=1){throw Hp(),Hp(),Gp}a.b=b;return a} function As(e,a,b){var c,d=e.f;a=Xx+a;a in d?(c=d[a]):++e.e;d[a]=b;return c} function Dg(a,b,c){var d=0,e;for(var f in a){if(e=a[f]){b[d]=f;c[d]=e;++d}}} function vg(a,b,c,d,e){var f;f=tg(e,d);Cg();Fg(f,Ag,Bg);f.aC=a;f.tI=b;f.qI=c;return f} function vk(a,b){hk();sk(a,b);b&131072&&a.addEventListener(_w,pk,false)} function ol(a,b){nl();Gc(a,lx,b.b.e==0?null:Mg(b.x(vg(ij,66,18,0,0)),22)[0]);return a} function Od(){this.b.d=true;Ed(this.b);this.b.d=false;return this.b.g=Fd(this.b)} function Cd(a){Ad();a.e=Nd(new Ld,a);Sd(new Qd,a);a.b=[];a.f=[];a.c=[];return a} function il(a){a.style[ix]=yw;a.style[jx]=yw;a.style[kx]=yw} function as(a,b){var c;while(a.r()){c=a.s();if(b==null?c==null:Vc(b,c)){return a}}return null} function Sj(){var a;if(Jj){a=(Vj(),new Tj);!!Kj&&Tf(Kj,a);return null}return null} function Ie(b){var c=b.relatedTarget;try{var d=c.nodeName;return c}catch(a){return null}} function td(a,b,c){var d;d=od++==0;try{return a.apply(b,c)}finally{d&&Dd((Ad(),zd));--od}} function Ej(a,b,c){var d;d=Bj;Bj=a;b==Cj&&fk((xe(),a).type)==8192&&(Cj=null);c.k(a);Bj=d} function Qk(a){var b;switch(fk((xe(),a).type)){case 16:case 32:b=Ie(a);if(!!b&&Je(this.f,b)){return}}} function dg(a,b,c){var d;d=Mg(ss(a.b,b),4);if(!d){d=eu(new bu);xs(a.b,b,d)}yg(d.b,d.c++,c)} function rs(a,b){return b==null?a.d:b!=null&&Jg(b.tI,1)?ws(a,Mg(b,1)):vs(a,b,~~Zc(b))} function ss(a,b){return b==null?a.c:b!=null&&Jg(b.tI,1)?a.f[Xx+Mg(b,1)]:ts(a,b,~~Zc(b))} function xs(a,b,c){return b==null?zs(a,c):b!=null&&Jg(b.tI,1)?As(a,Mg(b,1),c):ys(a,b,c,~~Zc(b))} function Po(a){var b;if(!(a!=null&&Jg(a.tI,26))){return false}b=Mg(a,26);return this.c==b.c&&this.b==b.b} function Ls(){var a,b,c;a=0;for(b=this.p();b.r();){c=b.s();if(c!=null){a+=Zc(c);a=~~a}}return a} function gt(){var a,b;a=0;b=0;this.z()!=null&&(a=Zc(this.z()));this.A()!=null&&(b=Zc(this.A()));return a^b} function go(a){var b,c;c=yw;for(b=0;b<a.length;++b){c=c+String.fromCharCode(a[b]&65535)}return c} function aq(a){Zp();var b,c;for(b=0;b<Yp.length;++b){c=Yp[b];if(c==a){return cq(b+7)}So(a,c)}return null} function Ir(a){Gr();var b=Xx+a;var c=Fr[b];if(c!=null){return c}c=Dr[b];c==null&&(c=Hr(a));Jr();return Fr[b]=c} function ps(e,a){var b=e.f;for(var c in b){if(c.charCodeAt(0)==58){var d=tt(e,c.substring(1));a.u(d)}}} function tg(a,b){var c=new Array(b);if(a>0){var d=[null,0,false,[0,0]][a];for(var e=0;e<b;++e){c[e]=d}}return c} function Gl(a,b){Dl(a,(xe(),$doc).createElement(mx));a.f[nx]=ox;a.f.innerHTML=b||yw;return a} function Xs(a,b){var c;a.c=b;c=eu(new bu);a.c.d&&gu(c,it(new bt,a.c));ps(a.c,c);os(a.c,c);a.b=Jt(new Gt,c);return a} function yp(a,b){var c,d;if(a.b==null){throw Nq(new Kq,Nx)}c=b.e;c<=9?(d=0):c<=26?(d=1):(d=2);return a.b[d]} function Jm(a,b){var c,d;if(b<1){throw Nq(new Kq,px)}a.c=b;d=b*b;c=d>>5;(d&31)!=0&&++c;a.b=vg(Zi,65,-1,c,1);return a} function sm(a,b){var c;if(b<0||b>=a.d){throw Wq(new Uq)}--a.d;for(c=b;c<a.d;++c){yg(a.b,c,a.b[c+1])}yg(a.b,a.d,null)} function Yo(a,b,c){var d;if(b<0){throw Mq(new Kq)}if(c==0){return a.e}d=vg(Zi,65,-1,b+1,1);d[0]=c;return ep(new cp,a,d)} function ap(a,b,c){if(b==0||c==0){return 0}if(b==1){return c}if(c==1){return b}return a.b[(a.c[b]+a.c[c])%255]} function Dt(){var a,b,c;b=1;a=this.p();while(a.b<a.c.w()){c=Lt(a);b=31*b+(c==null?0:Zc(c));b=~~b}return b} function Dc(a){var b,c,d;c=vg(hj,0,17,a.length,0);for(d=0,b=a.length;d<b;++d){if(!a[d]){throw jr(new hr)}c[d]=a[d]}} function ke(a){var b,c,d;d=a&&a.stack?a.stack.split(Ew):[];for(b=0,c=d.length;b<c;++b){d[b]=ae(d[b])}return d} function Uf(a){var b,c;if(a.b){try{for(c=Jt(new Gt,a.b);c.b<c.c.w();){b=Mg(Lt(c),3);dg(b.b.e,b.d,b.c)}}finally{a.b=null}}} function ls(){var a,b,c;c=0;for(b=Xs(new Vs,Ns(new Gs,Mg(this,31)).b);Kt(b.b);){a=Mg(Lt(b.b),29);c+=a.hC();c=~~c}return c} function Os(a,b){var c,d,e;if(b!=null&&Jg(b.tI,29)){c=Mg(b,29);d=c.z();if(rs(a.b,d)){e=ss(a.b,d);return Bu(c.A(),e)}}return false} function et(a){var b;if(a!=null&&Jg(a.tI,29)){b=Mg(a,29);if(iv(this.z(),b.z())&&iv(this.A(),b.A())){return true}}return false} function Kk(a){if(!a.e){Tl();rs(Sl.b,a)&&Vl(a)}else if(a.e){hl(a.e,a)}else if(a.e){throw Sq(new Pq,gx)}} function Jk(a){if(!a.c){throw Sq(new Pq,fx)}try{a.o()}finally{try{a.m()}finally{a.f.__listener=null;a.c=false}}} function Lk(a,b){var c;c=a.e;if(!b){try{!!c&&c.c&&Jk(a)}finally{a.e=null}}else{if(c){throw Sq(new Pq,hx)}a.e=b;b.c&&Ik(a)}} function gwtOnLoad(b,c,d){$moduleName=c;$moduleBase=d;if(b)try{$entry(nj)()}catch(a){b(c)}else{$entry(nj)()}} function Kd(b,c){Ad();$wnd.setTimeout(function(){var a=$entry(Gd)(b);a&&$wnd.setTimeout(arguments.callee,c)},c)} function os(g,a){var b=g.b;for(var c in b){if(c==parseInt(c)){var d=b[c];for(var e=0,f=d.length;e<f;++e){a.u(d[e])}}}} function ts(h,a,b){var c=h.b[b];if(c){for(var d=0,e=c.length;d<e;++d){var f=c[d];var g=f.z();if(h.y(a,g)){return f.A()}}}return null} function vs(h,a,b){var c=h.b[b];if(c){for(var d=0,e=c.length;d<e;++d){var f=c[d];var g=f.z();if(h.y(a,g)){return true}}}return false} function fe(){var a,b,c,d;c=be(ke(ge()),2);d=vg(hj,0,17,c.length,0);for(a=0,b=d.length;a<b;++a){d[a]=nr(new lr,Cw,c[a],Dw,0)}Dc(d)} function ee(a){var b,c,d,e;d=ke(Qg(a.b)?Ng(a.b):null);e=vg(hj,0,17,d.length,0);for(b=0,c=e.length;b<c;++b){e[b]=nr(new lr,Cw,d[b],Dw,0)}Dc(e)} function ae(a){var b,c,d;d=yw;a=wr(a);b=a.indexOf(zw);if(b!=-1){c=a.indexOf(Aw)==0?8:0;d=wr(a.substr(c,b-c))}return d.length>0?d:Bw} function es(a){var b,c,d,e;e=this.w();a.length<e&&(a=sg(a,e));d=a;c=this.p();for(b=0;b<e;++b){yg(d,b,c.s())}a.length>e&&yg(a,e,null);return a} function Sn(a,b){var c,d,e,f,g,h;c=0;d=0;g=0;for(f=0;f<b;++f){for(e=0;e<b;++e){h=e*f;(h&1)==0&&h%3==0&&(c|=1<<d);if(++d==32){a[g++]^=c;d=0;c=0}}}a[g]^=c} function yn(a,b){var c,d,e,f,g;c=0;d=0;g=0;for(f=0;f<b;++f){for(e=0;e<b;++e){(e&1)==0&&(c|=1<<d);if(++d==32){a[g++]^=c;d=0;c=0}}}a[g]^=c} function In(a,b){var c,d,e,f,g;c=0;d=0;g=0;for(f=0;f<b;++f){for(e=0;e<b;++e){(e+f)%3==0&&(c|=1<<d);if(++d==32){a[g++]^=c;d=0;c=0}}}a[g]^=c} function ao(a,b){var c,d,e,f,g;c=0;d=0;g=0;for(f=0;f<b;++f){for(e=0;e<b;++e){((e+f&1)+e*f%3&1)==0&&(c|=1<<d);if(++d==32){a[g++]^=c;d=0;c=0}}}a[g]^=c} function Dn(a,b){var c,d,e,f,g,h;c=0;e=0;h=0;for(g=0;g<b;++g){d=g%3==0;for(f=0;f<b;++f){d&&(c|=1<<e);if(++e==32){a[h++]^=c;e=0;c=0}}}a[h]^=c} function Xn(a,b){var c,d,e,f,g,h;c=0;d=0;g=0;for(f=0;f<b;++f){for(e=0;e<b;++e){h=e*f;((h&1)+h%3&1)==0&&(c|=1<<d);if(++d==32){a[g++]^=c;d=0;c=0}}}a[g]^=c} function Nn(a,b){var c,d,e,f,g,h;c=0;d=0;h=0;for(f=0;f<b;++f){g=~~(f/3)&1;for(e=0;e<b;++e){(e>>1&1)==g&&(c|=1<<d);if(++d==32){a[h++]^=c;d=0;c=0}}}a[h]^=c} function Eo(){Eo=vv;Bo=Fo(new yo,0,zx);Co=Fo(new yo,1,Ax);Do=Fo(new yo,2,Bx);Ao=Fo(new yo,3,Cx);zo=wg(bj,0,11,[Co,Bo,Ao,Do])} function mn(){mn=vv;ln=wg(aj,0,10,[(qn(),mn(),new pn),(vn(),new un),(An(),new zn),(Fn(),new En),(Kn(),new Jn),(Pn(),new On),(Un(),new Tn),(Zn(),new Yn)])} function dn(a){if(!bn){bn=Au(new xu,29);ns(new xu,29,0)}if(a<0||a>=900){throw Nq(new Kq,tx+a)}return $g(ss(bn,cr(new Zq,a)))} function yg(a,b,c){if(c!=null){if(a.qI>0&&!Kg(c.tI,a.qI)){throw uq(new sq)}if(a.qI<0&&(c.tM==vv||c.tI==2)){throw uq(new sq)}}return a[b]=c} function Ik(a){var b;if(a.c){throw Sq(new Pq,ex)}a.c=true;a.f.__listener=a;b=a.d;a.d=-1;b>0&&(a.d==-1?vk(a.f,b|(a.f.__eventBits||0)):(a.d|=b),undefined);a.l();a.n()} function wr(c){if(c.length==0||c[0]>Wx&&c[c.length-1]>Wx){return c}var a=c.replace(/^(\s*)/,yw);var b=a.replace(/\s*$/,yw);return b} function jp(a,b){var c,d,e;if(b==0){return a.c.e}if(b==1){return a}e=a.b.length;d=vg(Zi,65,-1,e,1);for(c=0;c<e;++c){d[c]=ap(a.c,a.b[c],b)}return ep(new cp,a.c,d)} function kp(a,b,c){var d,e,f;if(b<0){throw Mq(new Kq)}if(c==0){return a.c.e}f=a.b.length;e=vg(Zi,65,-1,f+b,1);for(d=0;d<f;++d){e[d]=ap(a.c,a.b[d],c)}return ep(new cp,a.c,e)} function mu(a,b){var c,d,e;b.length<a.c&&(b=(d=b,e=tg(0,a.c),wg(d.aC,d.tI,d.qI,e),e));for(c=0;c<a.c;++c){yg(b,c,a.b[c])}b.length>a.c&&yg(b,a.c,null);return b} function Jd(b,c){var a,e,f,g;for(e=0,f=b.length;e<f;++e){g=b[e];try{g[1]?g[0].h()&&(c[c.length]=g,undefined):g[0].E()}catch(a){a=qj(a);if(!Pg(a,2))throw a}}} function So(a,b){Lo();a^=b;return Jo[a&15]+Jo[a>>>4&15]+Jo[a>>>8&15]+Jo[a>>>12&15]+Jo[a>>>16&15]+Jo[a>>>20&15]+Jo[a>>>24&15]+Jo[a>>>28&15]} function fo(){fo=vv;co=wg(Yi,0,-1,[48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,32,36,37,42,43,45,46,47,58]);eo=false} function ko(a,b,c){var d,e,f,g;e=vg(Xi,0,-1,2*c,1);f=0;while(c>0){g=Ym(a,13);d=~~(g/192)<<8|g%192;d<7936?(d+=33088):(d+=49472);e[f]=d>>8<<24>>24;e[f+1]=d<<24>>24;f+=2;--c}Pr(b,go(e))} function jo(a,b,c,d){var e,f;f=vg(Xi,0,-1,c,1);if(c<<3>8*(a.d.length-a.c)-a.b){throw Hp(),Hp(),Gp}for(e=0;e<c;++e){f[e]=Ym(a,8)<<24>>24}mo(f);Pr(b,go(f));gu(d.b,f)} function $p(a,b,c,d,e,f,g){var h,i,j,k,l;Zp();a.e=b;a.b=c;a.c=wg(ej,0,14,[d,e,f,g]);l=0;i=d.c;j=d.b;for(k=0;k<j.length;++k){h=j[k];l+=h.b*(h.c+i)}a.d=l;return a} function Oo(a){var b,c,d,e,f,g,h;h=a^21522;b=2147483647;c=0;for(f=0;f<Ko.length;++f){e=Ko[f];g=e[0];if(g==h){return Mo(new Io,e[1])}d=So(h,g);if(d<b){c=e[1];b=d}}if(b<=3){return Mo(new Io,c)}return null} function ql(b,c){var i;nl();var a,e,f,g,h;e=null;for(h=b.p();h.r();){g=Mg(h.s(),8);try{c.q(g)}catch(a){a=qj(a);if(Pg(a,18)){f=a;!e&&(e=Fu(new Du));i=xs(e.b,f,e)}else throw a}}if(e){throw ol(new kl,e)}} function ys(j,a,b,c){var d=j.b[c];if(d){for(var e=0,f=d.length;e<f;++e){var g=d[e];var h=g.z();if(j.y(a,h)){var i=g.A();g.B(b);return i}}}else{d=j.b[c]=[]}var g=Vu(new Tu,a,b);d.push(g);++j.e;return null} function Hr(a){var b,c,d,e;b=0;d=a.length;e=d-4;c=0;while(c<e){b=a.charCodeAt(c+3)+31*(a.charCodeAt(c+2)+31*(a.charCodeAt(c+1)+31*(a.charCodeAt(c)+31*b)))|0;c+=4}while(c<d){b=b*31+a.charCodeAt(c++)}return b|0} function zp(a){wp();switch(a){case 0:return vp;case 1:return tp;case 2:return np;case 3:return up;case 4:return op;case 5:return qp;case 7:return pp;case 8:return sp;case 9:return rp;default:throw Mq(new Kq);}} function qm(a,b,c){var d,e;if(c<0||c>a.d){throw Wq(new Uq)}if(a.d==a.b.length){e=vg($i,0,8,a.b.length*2,0);for(d=0;d<a.b.length;++d){yg(e,d,a.b[d])}a.b=e}++a.d;for(d=a.d-1;d>c;--d){yg(a.b,d,a.b[d-1])}yg(a.b,c,b)} function Op(a,b){var c,d,e,f;e=b.b.length-1;if(e==1){return wg(Zi,65,-1,[b.b[b.b.length-1-1]])}f=vg(Zi,65,-1,e,1);c=0;for(d=1;d<256&&c<e;++d){if(gp(b,d)==0){f[c]=$o(a.b,d);++c}}if(c!=e){throw Up(new Sp,Tx)}return f} function Js(a){var b,c,d;if((a==null?null:a)===this){return true}if(!(a!=null&&Jg(a.tI,32))){return false}c=Mg(a,32);if(c.w()!=this.w()){return false}for(b=c.p();b.r();){d=b.s();if(!this.v(d)){return false}}return true} function ro(b,c,d){var a,f,g,h,i;h=c.length;f=vg(Zi,65,-1,h,1);for(g=0;g<h;++g){f[g]=c[g]&255}i=c.length-d;try{Np(b.b,f,i)}catch(a){a=qj(a);if(Pg(a,25)){throw Hp(),Hp(),Gp}else throw a}for(g=0;g<d;++g){c[g]=f[g]<<24>>24}} function ep(a,b,c){var d,e;if(c==null||c.length==0){throw Mq(new Kq)}a.c=b;d=c.length;if(d>1&&c[0]==0){e=1;while(e<d&&c[e]==0){++e}if(e==d){a.b=b.e.b}else{a.b=vg(Zi,65,-1,d-e,1);Tr(c,e,a.b,0,a.b.length)}}else{a.b=c}return a} function Xl(a){Tl();var b,c;c=Mg(ss(Rl,a),23);b=null;if(a!=null){if(!(b=$doc.getElementById(a))){return null}}if(c){if(!b||c.f==b){return c}}Rl.e==0&&Mj(new cm);!b?(c=hm(new fm)):(c=Ul(new Pl,b));xs(Rl,a,c);Gu(Sl,c);return c} function Mm(a,b,c,d,e){var f,g,h,i,j,k;if(b<0||c<0){throw Nq(new Kq,qx)}if(d<1||e<1){throw Nq(new Kq,rx)}j=c+e;i=b+d;if(i>a.c||j>a.c){throw Nq(new Kq,sx)}for(g=c;g<j;++g){h=a.c*g;for(f=b;f<i;++f){k=f+h;a.b[k>>5]|=1<<(k&31)}}} function Pp(a,b,c,d){var e,f,g,h,i,j;i=c.length;h=vg(Zi,65,-1,i,1);for(f=0;f<i;++f){j=$o(a.b,c[f]);e=1;for(g=0;g<i;++g){f!=g&&(e=ap(a.b,e,(Wo(),1^ap(a.b,c[g],j))))}h[f]=ap(a.b,gp(b,j),$o(a.b,e));d&&(h[f]=ap(a.b,h[f],j))}return h} function eg(a,b,c){var d,e,f,g,h,i,j;g=b.j();d=(h=Mg(ss(a.b,g),4),!h?0:h.c);if(c){for(f=d-1;f>=0;--f){e=(i=Mg(ss(a.b,g),4),Mg((At(f,i.c),i.b[f]),21));b.i(e)}}else{for(f=0;f<d;++f){e=(j=Mg(ss(a.b,g),4),Mg((At(f,j.c),j.b[f]),21));b.i(e)}}} function Xo(a,b){var c,d;Wo();a.b=vg(Zi,65,-1,256,1);a.c=vg(Zi,65,-1,256,1);d=1;for(c=0;c<256;++c){a.b[c]=d;d<<=1;d>=256&&(d^=b)}for(c=0;c<255;++c){a.c[a.b[c]]=c}a.e=ep(new cp,a,wg(Zi,65,-1,[0]));a.d=ep(new cp,a,wg(Zi,65,-1,[1]));return a} function Ep(a){var b,c,d,e,f,g,h,i;f=a.length;b=Jm(new Hm,f);for(g=0;g<f;++g){for(h=0;h<f;++h){a!=null&&a[g][h]==1&&(i=g+b.c*h,b.b[i>>5]|=1<<(i&31),undefined)}}d=qo(new oo);e=so(d,b);c=e.b;Uk(Xl(Ox));gl(Xl(Ox),Gl(new Al,Px));gl(Xl(Ox),Gl(new Al,Qx+c+Rx))} function so(a,b){var c,d,e,f,g,h,i,j,k,l,m,n,o;k=Qm(new Om,b);o=Tm(k);g=Sm(k).c;d=Rm(k);f=jn(d,o,g);n=0;for(h=0;h<f.length;++h){n+=f[h].c}l=vg(Xi,0,-1,n,1);m=0;for(i=0;i<f.length;++i){e=f[i];c=e.b;j=e.c;ro(a,c,j);for(h=0;h<j;++h){l[m++]=c[h]}}return ho(l,o)} function Tf(a,b){var c;if(b.b){b.b=false;b.c=null}c=b.c;b.c=a.f;try{++a.c;eg(a.e,b,a.d)}finally{--a.c;a.c==0&&Uf(a)}if(c==null){b.b=true;b.c=null}else{b.c=c}} function Bt(a){var b,c,d,e,f;if((a==null?null:a)===this){return true}if(!(a!=null&&Jg(a.tI,30))){return false}f=Mg(a,30);if(this.w()!=f.w()){return false}d=this.p();e=f.p();while(d.b<d.c.w()){b=Lt(d);c=Lt(e);if(!(b==null?c==null:Vc(b,c))){return false}}return true} function ip(a,b){var c,d,e,f,g,h,i,j;if(a.c!=b.c){throw Nq(new Kq,Dx)}if(a.b[0]==0||b.b[0]==0){return a.c.e}d=a.b;e=d.length;f=b.b;g=f.length;j=vg(Zi,65,-1,e+g-1,1);for(h=0;h<e;++h){c=d[h];for(i=0;i<g;++i){j[h+i]=(Wo(),j[h+i]^ap(a.c,c,f[i]))}}return ep(new cp,a.c,j)} function nj(){!!$stats&&$stats({moduleName:$moduleName,sessionId:$sessionId,subSystem:Fw,evtGroup:Gw,millis:(new Date).getTime(),type:Hw,className:Iw});$wnd.decode=Ep} function Id(a){var b,c,d,e,f,g;b=false;d=a.length;f=(new Date).getTime();while((new Date).getTime()-f<100){for(c=0;c<d;++c){g=a[c];if(!g){continue}if(!g[0].h()){a[c]=null;b=true}}}if(b){e=[];for(c=0;c<d;++c){if(!a[c]){continue}e[e.length]=a[c]}return e}else{return a}} function io(a,b,c,d){var e,f,g;g=b.b.b.length;while(c>1){f=Ym(a,11);Or(b,co[~~(f/45)]);Or(b,co[f%45]);c-=2}c==1&&Or(b,co[Ym(a,6)]);if(d){for(e=g;e<b.b.b.length;++e){b.b.b.charCodeAt(e)==37&&(e<b.b.b.length-1&&b.b.b.charCodeAt(e+1)==37?ue(b.b,e+1,e+1+1,yw):ue(b.b,e,e+1,ux))}}} function cl(a,b){var c,d;if(b.e!=a){return false}try{Lk(b,null)}finally{c=b.f;(d=(xe(),c).parentNode,(!d||d.nodeType!=1)&&(d=null),d).removeChild(c);tm(a.b,b)}return true} function Ym(a,b){var c,d,e,f,g;if(b<1||b>32){throw Mq(new Kq)}f=0;if(a.b>0){c=8-a.b;g=b<c?b:c;d=c-g;e=255>>8-g<<d;f=(a.d[a.c]&e)>>d;b-=g;a.b+=g;if(a.b==8){a.b=0;++a.c}}if(b>0){while(b>=8){f=f<<8|a.d[a.c]&255;++a.c;b-=8}if(b>0){d=8-b;e=255>>d<<d;f=f<<b|(a.d[a.c]&e)>>d;a.b+=b}}return f} function Cs(h,a,b){var c=h.b[b];if(c){for(var d=0,e=c.length;d<e;++d){var f=c[d];var g=f.z();if(h.y(a,g)){c.length==1?delete h.b[b]:c.splice(d,1);--h.e;return f.A()}}}return null} function fp(a,b){var c,d,e,f,g,h;if(a.c!=b.c){throw Nq(new Kq,Dx)}if(a.b[0]==0){return b}if(b.b[0]==0){return a}f=a.b;d=b.b;if(f.length>d.length){h=f;f=d;d=h}g=vg(Zi,65,-1,d.length,1);e=d.length-f.length;Tr(d,0,g,0,e);for(c=e;c<d.length;++c){g[c]=(Wo(),f[c-e]^d[c])}return ep(new cp,a.c,g)} function no(a){var b,c,d;b=Ym(a,8);if((b&128)==0){return b&127}else if((b&192)==128){c=Ym(a,8);return (b&63)<<8|c}else if((b&224)==192){d=Ym(a,16);return (b&31)<<16|d}throw Nq(new Kq,yx+b)} function lo(a,b,c){var d,e,f;while(c>=3){e=Ym(a,10);if(e>=1000){throw Hp(),Hp(),Gp}Or(b,co[~~(e/100)]);Or(b,co[~~(e/10)%10]);Or(b,co[e%10]);c-=3}if(c==2){f=Ym(a,7);if(f>=100){throw Hp(),Hp(),Gp}Or(b,co[~~(f/10)]);Or(b,co[f%10])}else if(c==1){d=Ym(a,4);if(d>=10){throw Hp(),Hp(),Gp}Or(b,co[d])}} function gp(a,b){var c,d,e;if(b==0){return a.b[a.b.length-1]}e=a.b.length;if(b==1){d=0;for(c=0;c<e;++c){d=(Wo(),d^a.b[c])}return d}d=a.b[0];for(c=1;c<e;++c){d=(Wo(),ap(a.c,b,d)^a.b[c])}return d} --></script> <script><!-- function _p(a){var b,c,d,e,f,g;c=17+4*a.e;b=Jm(new Hm,c);Mm(b,0,0,9,9);Mm(b,0,c-8,9,8);Mm(b,c-8,0,8,9);e=a.b.length;for(f=0;f<e;++f){d=a.b[f]-2;for(g=0;g<e;++g){if(f==0&&(g==0||g==e-1)||f==e-1&&g==0){continue}Mm(b,d,a.b[g]-2,5,5)}}Mm(b,9,6,c-17,1);Mm(b,6,9,1,c-17);if(a.e>6){Mm(b,0,c-11,6,3);Mm(b,c-11,0,3,6)}return b} function Tm(a){var b,c,d,e,f,g,h;if(a.d){return a.d}b=a.b.c;g=b-17>>2;if(g<=6){return cq(g)}h=0;for(c=5;c>=0;--c){f=b-11;for(e=b-9;e>=f;--e){h=Km(a.b,c,e)?h<<1|1:h<<1}}a.d=aq(h);if(a.d){return a.d}h=0;for(e=5;e>=0;--e){d=b-11;for(c=b-11;c>=d;--c){h=Km(a.b,c,e)?h<<1|1:h<<1}}a.d=aq(h);if(a.d){return a.d}throw Hp(),Hp(),Gp} function wp(){wp=vv;vp=xp(new mp,wg(Zi,65,-1,[0,0,0]),Ex);tp=xp(new mp,wg(Zi,65,-1,[10,12,14]),Fx);np=xp(new mp,wg(Zi,65,-1,[9,11,13]),Gx);up=xp(new mp,wg(Zi,65,-1,[0,0,0]),Hx);op=xp(new mp,wg(Zi,65,-1,[8,16,16]),Ix);pp=xp(new mp,null,Jx);sp=xp(new mp,wg(Zi,65,-1,[8,10,12]),Kx);qp=xp(new mp,null,Lx);rp=xp(new mp,null,Mx)} function zk(){var d=$wnd.onbeforeunload;var e=$wnd.onunload;$wnd.onbeforeunload=function(a){var b,c;try{b=$entry(Sj)()}finally{c=d&&d(a)}if(b!=null){return b}if(c!=null){return c}};$wnd.onunload=$entry(function(a){try{Jj&&wf(Pj())}finally{e&&e(a);$wnd.onresize=null;$wnd.onscroll=null;$wnd.onbeforeunload=null;$wnd.onunload=null}})} function uk(){$wnd.addEventListener(Vw,$entry(function(a){var b=$wnd.__captureElem;if(b&&!a.relatedTarget){if(cx==a.target.tagName.toLowerCase()){var c=$doc.createEvent(dx);c.initMouseEvent(Xw,true,true,$wnd,0,a.screenX,a.screenY,a.clientX,a.clientY,a.ctrlKey,a.altKey,a.shiftKey,a.metaKey,a.button,null);b.dispatchEvent(c)}}}),true);$wnd.addEventListener(_w,ok,true)} function Np(a,b,c){var d,e,f,g,h,i,j,k,l,m,n,o,p;k=ep(new cp,a.b,b);p=vg(Zi,65,-1,c,1);d=a.b==(Wo(),Uo);i=true;for(h=0;h<c;++h){g=gp(k,a.b.b[d?h+1:h]);p[p.length-1-h]=g;g!=0&&(i=false)}if(i){return}o=ep(new cp,a.b,p);n=Qp(a,Yo(a.b,c,1),o,c);m=n[0];j=n[1];e=Op(a,m);f=Pp(a,j,e,d);for(h=0;h<e.length;++h){l=b.length-1-_o(a.b,e[h]);if(l<0){throw Up(new Sp,Sx)}b[l]=b[l]^f[h]}} function Rm(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p;h=Sm(a);o=Tm(a);f=nn(h.b);g=a.b.c;f.t(a.b.b,g);i=_p(o);l=true;m=vg(Xi,0,-1,o.d,1);n=0;e=0;b=0;for(k=g-1;k>0;k-=2){k==6&&--k;for(d=0;d<g;++d){j=l?g-1-d:d;for(c=0;c<2;++c){if(!(p=j+i.c*(k-c),(i.b[p>>5]>>>(p&31)&1)!=0)){++b;e<<=1;Km(a.b,j,k-c)&&(e|=1);if(b==8){m[n++]=e<<24>>24;b=0;e=0}}}}l^=true}if(n!=o.d){throw Hp(),Hp(),Gp}return m} function Sm(a){var b,c,d,e,f;if(a.c){return a.c}c=0;for(f=0;f<6;++f){c=Km(a.b,8,f)?c<<1|1:c<<1}c=Km(a.b,8,7)?c<<1|1:c<<1;c=Km(a.b,8,8)?c<<1|1:c<<1;c=Km(a.b,7,8)?c<<1|1:c<<1;for(d=5;d>=0;--d){c=Km(a.b,d,8)?c<<1|1:c<<1}a.c=No(c);if(a.c){return a.c}b=a.b.c;c=0;e=b-8;for(d=b-1;d>=e;--d){c=Km(a.b,d,8)?c<<1|1:c<<1}for(f=b-7;f<b;++f){c=Km(a.b,8,f)?c<<1|1:c<<1}a.c=No(c);if(a.c){return a.c}throw Hp(),Hp(),Gp} function fk(a){switch(a){case Jw:return 4096;case Kw:return 1024;case Lw:return 1;case Mw:return 2;case Nw:return 2048;case Ow:return 128;case Pw:return 256;case Qw:return 512;case Rw:return 32768;case Sw:return 8192;case Tw:return 4;case Uw:return 64;case Vw:return 32;case Ww:return 16;case Xw:return 8;case Yw:return 16384;case Zw:return 65536;case $w:return 131072;case _w:return 131072;case ax:return 262144;case bx:return 524288;}} function js(a){var b,c,d,e,f;if((a==null?null:a)===this){return true}if(!(a!=null&&Jg(a.tI,31))){return false}e=Mg(a,31);if(Mg(this,31).e!=e.e){return false}for(c=Xs(new Vs,Ns(new Gs,e).b);Kt(c.b);){b=Mg(Lt(c.b),29);d=b.z();f=b.A();if(!(d==null?Mg(this,31).d:d!=null&&Jg(d.tI,1)?ws(Mg(this,31),Mg(d,1)):vs(Mg(this,31),d,~~Zc(d)))){return false}if(!iv(f,d==null?Mg(this,31).c:d!=null&&Jg(d.tI,1)?Mg(this,31).f[Xx+Mg(d,1)]:ts(Mg(this,31),d,~~Zc(d)))){return false}}return true} function ho(b,c){fo();var a,e,f,g,h,i,j,k;e=Xm(new Vm,b);j=Nr(new Kr);h=false;f=lv(new jv,1);do{if(8*(e.d.length-e.c)-e.b<4){i=(wp(),vp)}else{try{i=zp(Ym(e,4))}catch(a){a=qj(a);if(Pg(a,24)){throw Hp(),Hp(),Gp}else throw a}}if(i!=(wp(),vp)){if(i==qp||i==rp){h=true}else if(i==up){Ym(e,16)}else if(i==pp){k=no(e);dn(k);throw Hp(),Hp(),Gp}else{g=Ym(e,yp(i,c));if(i==tp){lo(e,j,g)}else if(i==np){io(e,j,g,h)}else if(i==op){jo(e,j,g,f)}else if(i==sp){ko(e,j,g)}else{throw Hp(),Hp(),Gp}}}}while(i!=(wp(),vp));return wo(new uo,b,j.b.b)} function jn(a,b,c){var d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t;if(a.length!=b.d){throw Mq(new Kq)}f=b.c[c.b];t=0;e=f.b;for(g=0;g<e.length;++g){t+=e[g].b}q=vg(_i,0,9,t,0);o=0;for(i=0;i<e.length;++i){d=e[i];for(g=0;g<d.b;++g){n=d.c;l=f.c+n;q[o++]=gn(new en,n,vg(Xi,0,-1,l,1))}}s=q[0].b.length;j=q.length-1;while(j>=0){m=q[j].b.length;if(m==s){break}--j}++j;r=s-f.c;p=0;for(g=0;g<r;++g){for(i=0;i<o;++i){q[i].b[g]=a[p++]}}for(i=j;i<o;++i){q[i].b[r]=a[p++]}k=q[0].b.length;for(g=r;g<k;++g){for(i=0;i<o;++i){h=i<j?g:g+1;q[i].b[h]=a[p++]}}return q} function Qp(a,b,c,d){var e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w;if(b.b.length-1<c.b.length-1){w=b;b=c;c=w}l=b;k=c;o=a.b.d;n=a.b.e;u=a.b.e;t=a.b.d;while(k.b.length-1>=~~(d/2)){m=l;p=o;v=u;l=k;o=n;u=t;if(l.b[0]==0){throw Up(new Sp,Ux)}k=m;j=a.b.e;f=hp(l,l.b.length-1);g=$o(a.b,f);while(k.b.length-1>=l.b.length-1&&k.b[0]!=0){e=k.b.length-1-(l.b.length-1);q=ap(a.b,hp(k,k.b.length-1),g);j=fp(j,Yo(a.b,e,q));k=fp(k,kp(l,e,q))}n=fp(ip(j,o),p);t=fp(ip(j,u),v)}s=t.b[t.b.length-1];if(s==0){throw Up(new Sp,Vx)}h=$o(a.b,s);r=jp(t,h);i=jp(k,h);return wg(cj,0,12,[r,i])} function Tr(a,b,c,d,e){var f,g,h,i,j,k,l,m,n;if(a==null||c==null){throw jr(new hr)}m=a.tM==vv||a.tI==2?a.gC():eh;i=c.tM==vv||c.tI==2?c.gC():eh;if((m.c&4)==0||(i.c&4)==0){throw vq(new sq,Yx)}l=m.b;g=i.b;if(l.c!=g.c||(l.c&1)!=0&&l!=g){throw vq(new sq,Zx)}n=a.length;j=c.length;if(b<0||d<0||e<0||b+e>n||d+e>j){throw Wq(new Uq)}if(((l.c&1)==0||(l.c&4)!=0)&&m!=i){k=Mg(a,28);f=Mg(c,28);if((a==null?null:a)===(c==null?null:c)&&b<d){b+=e;for(h=d+e;h-->d;){yg(f,h,k[--b])}}else{for(h=d+e;d<h;){yg(f,d++,k[b++])}}}else{Array.prototype.splice.apply(c,[d,e].concat(a.slice(b,b+e)))}} function mo(a){var b,c,d,e,f,g,h,i,j,k;if(eo){return vx}if(a.length>3&&a[0]==-17&&a[1]==-69&&a[2]==-65){return wx}f=a.length;b=true;c=true;i=false;g=0;j=false;e=false;for(d=0;d<f&&(b||c);++d){k=a[d]&255;if(k==194||k==195&&d<f-1){h=a[d+1]&255;h<=191&&(k==194&&h>=160||k==195&&h>=128)&&(j=true)}k>=127&&k<=159&&(b=false);k>=161&&k<=223&&!e&&++g;!e&&(k>=240&&k<=255||k==128||k==160)&&(c=false);if((k>=129&&k<=159||k>=224&&k<=239)&&d<f-1){i=true;if(e){e=false}else{e=true;h=a[d+1]&255;(h<64||h>252)&&(c=false)}}else{e=false}}if(c&&(i||20*g>f)){return vx}if(!j&&b){return xx}return wx} function rk(){ok=$entry(function(a){if(nk(a)){var b=mk;if(b&&b.__listener){if(jk(b.__listener)){Ej(a,b,b.__listener);a.stopPropagation()}}}});nk=$entry(function(a){return true});pk=$entry(function(a){var b,c=this;while(c&&!(b=c.__listener)){c=c.parentNode}c&&c.nodeType!=1&&(c=null);b&&jk(b)&&Ej(a,c,b)});$wnd.addEventListener(Lw,ok,true);$wnd.addEventListener(Mw,ok,true);$wnd.addEventListener(Tw,ok,true);$wnd.addEventListener(Xw,ok,true);$wnd.addEventListener(Uw,ok,true);$wnd.addEventListener(Ww,ok,true);$wnd.addEventListener(Vw,ok,true);$wnd.addEventListener($w,ok,true);$wnd.addEventListener(Ow,nk,true);$wnd.addEventListener(Qw,nk,true);$wnd.addEventListener(Pw,nk,true)} function sk(a,b){var c=(a.__eventBits||0)^b;a.__eventBits=b;if(!c)return;c&1&&(a.onclick=b&1?pk:null);c&2&&(a.ondblclick=b&2?pk:null);c&4&&(a.onmousedown=b&4?pk:null);c&8&&(a.onmouseup=b&8?pk:null);c&16&&(a.onmouseover=b&16?pk:null);c&32&&(a.onmouseout=b&32?pk:null);c&64&&(a.onmousemove=b&64?pk:null);c&128&&(a.onkeydown=b&128?pk:null);c&256&&(a.onkeypress=b&256?pk:null);c&512&&(a.onkeyup=b&512?pk:null);c&1024&&(a.onchange=b&1024?pk:null);c&2048&&(a.onfocus=b&2048?pk:null);c&4096&&(a.onblur=b&4096?pk:null);c&8192&&(a.onlosecapture=b&8192?pk:null);c&16384&&(a.onscroll=b&16384?pk:null);c&32768&&(a.onload=b&32768?pk:null);c&65536&&(a.onerror=b&65536?pk:null);c&131072&&(a.onmousewheel=b&131072?pk:null);c&262144&&(a.oncontextmenu=b&262144?pk:null);c&524288&&(a.onpaste=b&524288?pk:null)} function Lo(){Lo=vv;Ko=wg(jj,0,20,[wg(Zi,65,-1,[21522,0]),wg(Zi,65,-1,[20773,1]),wg(Zi,65,-1,[24188,2]),wg(Zi,65,-1,[23371,3]),wg(Zi,65,-1,[17913,4]),wg(Zi,65,-1,[16590,5]),wg(Zi,65,-1,[20375,6]),wg(Zi,65,-1,[19104,7]),wg(Zi,65,-1,[30660,8]),wg(Zi,65,-1,[29427,9]),wg(Zi,65,-1,[32170,10]),wg(Zi,65,-1,[30877,11]),wg(Zi,65,-1,[26159,12]),wg(Zi,65,-1,[25368,13]),wg(Zi,65,-1,[27713,14]),wg(Zi,65,-1,[26998,15]),wg(Zi,65,-1,[5769,16]),wg(Zi,65,-1,[5054,17]),wg(Zi,65,-1,[7399,18]),wg(Zi,65,-1,[6608,19]),wg(Zi,65,-1,[1890,20]),wg(Zi,65,-1,[597,21]),wg(Zi,65,-1,[3340,22]),wg(Zi,65,-1,[2107,23]),wg(Zi,65,-1,[13663,24]),wg(Zi,65,-1,[12392,25]),wg(Zi,65,-1,[16177,26]),wg(Zi,65,-1,[14854,27]),wg(Zi,65,-1,[9396,28]),wg(Zi,65,-1,[8579,29]),wg(Zi,65,-1,[11994,30]),wg(Zi,65,-1,[11245,31])]);Jo=wg(Zi,65,-1,[0,1,1,2,1,2,2,3,1,2,2,3,2,3,3,4])} function Zp(){Zp=vv;Yp=wg(Zi,65,-1,[31892,34236,39577,42195,48118,51042,55367,58893,63784,68472,70749,76311,79154,84390,87683,92361,96236,102084,102881,110507,110734,117786,119615,126325,127568,133589,136944,141498,145311,150283,152622,158308,161089,167017]);Xp=wg(fj,0,15,[$p(new Wp,1,wg(Zi,65,-1,[]),jq(new hq,7,fq(new dq,1,19)),jq(new hq,10,fq(new dq,1,16)),jq(new hq,13,fq(new dq,1,13)),jq(new hq,17,fq(new dq,1,9))),$p(new Wp,2,wg(Zi,65,-1,[6,18]),jq(new hq,10,fq(new dq,1,34)),jq(new hq,16,fq(new dq,1,28)),jq(new hq,22,fq(new dq,1,22)),jq(new hq,28,fq(new dq,1,16))),$p(new Wp,3,wg(Zi,65,-1,[6,22]),jq(new hq,15,fq(new dq,1,55)),jq(new hq,26,fq(new dq,1,44)),jq(new hq,18,fq(new dq,2,17)),jq(new hq,22,fq(new dq,2,13))),$p(new Wp,4,wg(Zi,65,-1,[6,26]),jq(new hq,20,fq(new dq,1,80)),jq(new hq,18,fq(new dq,2,32)),jq(new hq,26,fq(new dq,2,24)),jq(new hq,16,fq(new dq,4,9))),$p(new Wp,5,wg(Zi,65,-1,[6,30]),jq(new hq,26,fq(new dq,1,108)),jq(new hq,24,fq(new dq,2,43)),kq(new hq,18,fq(new dq,2,15),fq(new dq,2,16)),kq(new hq,22,fq(new dq,2,11),fq(new dq,2,12))),$p(new Wp,6,wg(Zi,65,-1,[6,34]),jq(new hq,18,fq(new dq,2,68)),jq(new hq,16,fq(new dq,4,27)),jq(new hq,24,fq(new dq,4,19)),jq(new hq,28,fq(new dq,4,15))),$p(new Wp,7,wg(Zi,65,-1,[6,22,38]),jq(new hq,20,fq(new dq,2,78)),jq(new hq,18,fq(new dq,4,31)),kq(new hq,18,fq(new dq,2,14),fq(new dq,4,15)),kq(new hq,26,fq(new dq,4,13),fq(new dq,1,14))),$p(new Wp,8,wg(Zi,65,-1,[6,24,42]),jq(new hq,24,fq(new dq,2,97)),kq(new hq,22,fq(new dq,2,38),fq(new dq,2,39)),kq(new hq,22,fq(new dq,4,18),fq(new dq,2,19)),kq(new hq,26,fq(new dq,4,14),fq(new dq,2,15))),$p(new Wp,9,wg(Zi,65,-1,[6,26,46]),jq(new hq,30,fq(new dq,2,116)),kq(new hq,22,fq(new dq,3,36),fq(new dq,2,37)),kq(new hq,20,fq(new dq,4,16),fq(new dq,4,17)),kq(new hq,24,fq(new dq,4,12),fq(new dq,4,13))),$p(new Wp,10,wg(Zi,65,-1,[6,28,50]),kq(new hq,18,fq(new dq,2,68),fq(new dq,2,69)),kq(new hq,26,fq(new dq,4,43),fq(new dq,1,44)),kq(new hq,24,fq(new dq,6,19),fq(new dq,2,20)),kq(new hq,28,fq(new dq,6,15),fq(new dq,2,16))),$p(new Wp,11,wg(Zi,65,-1,[6,30,54]),jq(new hq,20,fq(new dq,4,81)),kq(new hq,30,fq(new dq,1,50),fq(new dq,4,51)),kq(new hq,28,fq(new dq,4,22),fq(new dq,4,23)),kq(new hq,24,fq(new dq,3,12),fq(new dq,8,13))),$p(new Wp,12,wg(Zi,65,-1,[6,32,58]),kq(new hq,24,fq(new dq,2,92),fq(new dq,2,93)),kq(new hq,22,fq(new dq,6,36),fq(new dq,2,37)),kq(new hq,26,fq(new dq,4,20),fq(new dq,6,21)),kq(new hq,28,fq(new dq,7,14),fq(new dq,4,15))),$p(new Wp,13,wg(Zi,65,-1,[6,34,62]),jq(new hq,26,fq(new dq,4,107)),kq(new hq,22,fq(new dq,8,37),fq(new dq,1,38)),kq(new hq,24,fq(new dq,8,20),fq(new dq,4,21)),kq(new hq,22,fq(new dq,12,11),fq(new dq,4,12))),$p(new Wp,14,wg(Zi,65,-1,[6,26,46,66]),kq(new hq,30,fq(new dq,3,115),fq(new dq,1,116)),kq(new hq,24,fq(new dq,4,40),fq(new dq,5,41)),kq(new hq,20,fq(new dq,11,16),fq(new dq,5,17)),kq(new hq,24,fq(new dq,11,12),fq(new dq,5,13))),$p(new Wp,15,wg(Zi,65,-1,[6,26,48,70]),kq(new hq,22,fq(new dq,5,87),fq(new dq,1,88)),kq(new hq,24,fq(new dq,5,41),fq(new dq,5,42)),kq(new hq,30,fq(new dq,5,24),fq(new dq,7,25)),kq(new hq,24,fq(new dq,11,12),fq(new dq,7,13))),$p(new Wp,16,wg(Zi,65,-1,[6,26,50,74]),kq(new hq,24,fq(new dq,5,98),fq(new dq,1,99)),kq(new hq,28,fq(new dq,7,45),fq(new dq,3,46)),kq(new hq,24,fq(new dq,15,19),fq(new dq,2,20)),kq(new hq,30,fq(new dq,3,15),fq(new dq,13,16))),$p(new Wp,17,wg(Zi,65,-1,[6,30,54,78]),kq(new hq,28,fq(new dq,1,107),fq(new dq,5,108)),kq(new hq,28,fq(new dq,10,46),fq(new dq,1,47)),kq(new hq,28,fq(new dq,1,22),fq(new dq,15,23)),kq(new hq,28,fq(new dq,2,14),fq(new dq,17,15))),$p(new Wp,18,wg(Zi,65,-1,[6,30,56,82]),kq(new hq,30,fq(new dq,5,120),fq(new dq,1,121)),kq(new hq,26,fq(new dq,9,43),fq(new dq,4,44)),kq(new hq,28,fq(new dq,17,22),fq(new dq,1,23)),kq(new hq,28,fq(new dq,2,14),fq(new dq,19,15))),$p(new Wp,19,wg(Zi,65,-1,[6,30,58,86]),kq(new hq,28,fq(new dq,3,113),fq(new dq,4,114)),kq(new hq,26,fq(new dq,3,44),fq(new dq,11,45)),kq(new hq,26,fq(new dq,17,21),fq(new dq,4,22)),kq(new hq,26,fq(new dq,9,13),fq(new dq,16,14))),$p(new Wp,20,wg(Zi,65,-1,[6,34,62,90]),kq(new hq,28,fq(new dq,3,107),fq(new dq,5,108)),kq(new hq,26,fq(new dq,3,41),fq(new dq,13,42)),kq(new hq,30,fq(new dq,15,24),fq(new dq,5,25)),kq(new hq,28,fq(new dq,15,15),fq(new dq,10,16))),$p(new Wp,21,wg(Zi,65,-1,[6,28,50,72,94]),kq(new hq,28,fq(new dq,4,116),fq(new dq,4,117)),jq(new hq,26,fq(new dq,17,42)),kq(new hq,28,fq(new dq,17,22),fq(new dq,6,23)),kq(new hq,30,fq(new dq,19,16),fq(new dq,6,17))),$p(new Wp,22,wg(Zi,65,-1,[6,26,50,74,98]),kq(new hq,28,fq(new dq,2,111),fq(new dq,7,112)),jq(new hq,28,fq(new dq,17,46)),kq(new hq,30,fq(new dq,7,24),fq(new dq,16,25)),jq(new hq,24,fq(new dq,34,13))),$p(new Wp,23,wg(Zi,65,-1,[6,30,54,74,102]),kq(new hq,30,fq(new dq,4,121),fq(new dq,5,122)),kq(new hq,28,fq(new dq,4,47),fq(new dq,14,48)),kq(new hq,30,fq(new dq,11,24),fq(new dq,14,25)),kq(new hq,30,fq(new dq,16,15),fq(new dq,14,16))),$p(new Wp,24,wg(Zi,65,-1,[6,28,54,80,106]),kq(new hq,30,fq(new dq,6,117),fq(new dq,4,118)),kq(new hq,28,fq(new dq,6,45),fq(new dq,14,46)),kq(new hq,30,fq(new dq,11,24),fq(new dq,16,25)),kq(new hq,30,fq(new dq,30,16),fq(new dq,2,17))),$p(new Wp,25,wg(Zi,65,-1,[6,32,58,84,110]),kq(new hq,26,fq(new dq,8,106),fq(new dq,4,107)),kq(new hq,28,fq(new dq,8,47),fq(new dq,13,48)),kq(new hq,30,fq(new dq,7,24),fq(new dq,22,25)),kq(new hq,30,fq(new dq,22,15),fq(new dq,13,16))),$p(new Wp,26,wg(Zi,65,-1,[6,30,58,86,114]),kq(new hq,28,fq(new dq,10,114),fq(new dq,2,115)),kq(new hq,28,fq(new dq,19,46),fq(new dq,4,47)),kq(new hq,28,fq(new dq,28,22),fq(new dq,6,23)),kq(new hq,30,fq(new dq,33,16),fq(new dq,4,17))),$p(new Wp,27,wg(Zi,65,-1,[6,34,62,90,118]),kq(new hq,30,fq(new dq,8,122),fq(new dq,4,123)),kq(new hq,28,fq(new dq,22,45),fq(new dq,3,46)),kq(new hq,30,fq(new dq,8,23),fq(new dq,26,24)),kq(new hq,30,fq(new dq,12,15),fq(new dq,28,16))),$p(new Wp,28,wg(Zi,65,-1,[6,26,50,74,98,122]),kq(new hq,30,fq(new dq,3,117),fq(new dq,10,118)),kq(new hq,28,fq(new dq,3,45),fq(new dq,23,46)),kq(new hq,30,fq(new dq,4,24),fq(new dq,31,25)),kq(new hq,30,fq(new dq,11,15),fq(new dq,31,16))),$p(new Wp,29,wg(Zi,65,-1,[6,30,54,78,102,126]),kq(new hq,30,fq(new dq,7,116),fq(new dq,7,117)),kq(new hq,28,fq(new dq,21,45),fq(new dq,7,46)),kq(new hq,30,fq(new dq,1,23),fq(new dq,37,24)),kq(new hq,30,fq(new dq,19,15),fq(new dq,26,16))),$p(new Wp,30,wg(Zi,65,-1,[6,26,52,78,104,130]),kq(new hq,30,fq(new dq,5,115),fq(new dq,10,116)),kq(new hq,28,fq(new dq,19,47),fq(new dq,10,48)),kq(new hq,30,fq(new dq,15,24),fq(new dq,25,25)),kq(new hq,30,fq(new dq,23,15),fq(new dq,25,16))),$p(new Wp,31,wg(Zi,65,-1,[6,30,56,82,108,134]),kq(new hq,30,fq(new dq,13,115),fq(new dq,3,116)),kq(new hq,28,fq(new dq,2,46),fq(new dq,29,47)),kq(new hq,30,fq(new dq,42,24),fq(new dq,1,25)),kq(new hq,30,fq(new dq,23,15),fq(new dq,28,16))),$p(new Wp,32,wg(Zi,65,-1,[6,34,60,86,112,138]),jq(new hq,30,fq(new dq,17,115)),kq(new hq,28,fq(new dq,10,46),fq(new dq,23,47)),kq(new hq,30,fq(new dq,10,24),fq(new dq,35,25)),kq(new hq,30,fq(new dq,19,15),fq(new dq,35,16))),$p(new Wp,33,wg(Zi,65,-1,[6,30,58,86,114,142]),kq(new hq,30,fq(new dq,17,115),fq(new dq,1,116)),kq(new hq,28,fq(new dq,14,46),fq(new dq,21,47)),kq(new hq,30,fq(new dq,29,24),fq(new dq,19,25)),kq(new hq,30,fq(new dq,11,15),fq(new dq,46,16))),$p(new Wp,34,wg(Zi,65,-1,[6,34,62,90,118,146]),kq(new hq,30,fq(new dq,13,115),fq(new dq,6,116)),kq(new hq,28,fq(new dq,14,46),fq(new dq,23,47)),kq(new hq,30,fq(new dq,44,24),fq(new dq,7,25)),kq(new hq,30,fq(new dq,59,16),fq(new dq,1,17))),$p(new Wp,35,wg(Zi,65,-1,[6,30,54,78,102,126,150]),kq(new hq,30,fq(new dq,12,121),fq(new dq,7,122)),kq(new hq,28,fq(new dq,12,47),fq(new dq,26,48)),kq(new hq,30,fq(new dq,39,24),fq(new dq,14,25)),kq(new hq,30,fq(new dq,22,15),fq(new dq,41,16))),$p(new Wp,36,wg(Zi,65,-1,[6,24,50,76,102,128,154]),kq(new hq,30,fq(new dq,6,121),fq(new dq,14,122)),kq(new hq,28,fq(new dq,6,47),fq(new dq,34,48)),kq(new hq,30,fq(new dq,46,24),fq(new dq,10,25)),kq(new hq,30,fq(new dq,2,15),fq(new dq,64,16))),$p(new Wp,37,wg(Zi,65,-1,[6,28,54,80,106,132,158]),kq(new hq,30,fq(new dq,17,122),fq(new dq,4,123)),kq(new hq,28,fq(new dq,29,46),fq(new dq,14,47)),kq(new hq,30,fq(new dq,49,24),fq(new dq,10,25)),kq(new hq,30,fq(new dq,24,15),fq(new dq,46,16))),$p(new Wp,38,wg(Zi,65,-1,[6,32,58,84,110,136,162]),kq(new hq,30,fq(new dq,4,122),fq(new dq,18,123)),kq(new hq,28,fq(new dq,13,46),fq(new dq,32,47)),kq(new hq,30,fq(new dq,48,24),fq(new dq,14,25)),kq(new hq,30,fq(new dq,42,15),fq(new dq,32,16))),$p(new Wp,39,wg(Zi,65,-1,[6,26,54,82,110,138,166]),kq(new hq,30,fq(new dq,20,117),fq(new dq,4,118)),kq(new hq,28,fq(new dq,40,47),fq(new dq,7,48)),kq(new hq,30,fq(new dq,43,24),fq(new dq,22,25)),kq(new hq,30,fq(new dq,10,15),fq(new dq,67,16))),$p(new Wp,40,wg(Zi,65,-1,[6,30,58,86,114,142,170]),kq(new hq,30,fq(new dq,19,118),fq(new dq,6,119)),kq(new hq,28,fq(new dq,18,47),fq(new dq,31,48)),kq(new hq,30,fq(new dq,34,24),fq(new dq,34,25)),kq(new hq,30,fq(new dq,20,15),fq(new dq,61,16)))])} var yw='',Ew='\n',ux='\x1D',Wx=' ',zw='(',cy=', Size: ',Xx=':',Rx='<\/p>',Px='<h2>Decoded string:<\/h2>',Qx="<p class='decoded'>",Gx='ALPHANUMERIC',$x='Add not supported on this collection',ay='Add not supported on this list',Zx='Array types must match',Ix='BYTE',yx='Bad ECI bits starting with byte ',tx='Bad ECI value: ',Sx='Bad error location',hx='Cannot set a new parent without first clearing the old parent',Nx="Character count doesn't apply to this mode",_w='DOMMouseScroll',py='DataBlock;',qy='DataMask;',Jx='ECI',Tx='Error locator degree does not match number of roots',ry='ErrorCorrectionLevel;',Lx='FNC1_FIRST_POSITION',Mx='FNC1_SECOND_POSITION',ty='GF256Poly;',Dx='GF256Polys do not have same GF256 field',Cx='H',xx='ISO8859_1',by='Index: ',Kx='KANJI',zx='L',Ax='M',dx='MouseEvents',Yx='Must be array types',Fx='NUMERIC',xy='Object;',lx='One or more exceptions caught, see full set in AttachDetachException#getCauses',Bx='Q',vx='SJIS',Hx='STRUCTURED_APPEND',ex="Should only call onAttach when the widget is detached from the browser's document",fx="Should only call onDetach when the widget is attached to the browser's document",gy='StackTraceElement;',Ex='TERMINATOR',gx="This widget's parent does not implement HasWidgets",hy='Throwable;',wx='UTF8',Cw='Unknown',Dw='Unknown source',wy='Version$ECB;',uy='Version$ECBlocks;',vy='Version;',jy='Widget;',ny='[B',ly='[C',ey='[I',iy='[Lcom.google.gwt.user.client.ui.',oy='[Lcom.onurgunduz.qrdec.client.',fy='[Ljava.lang.',sy='[[I',Bw='anonymous',Jw='blur',my='byte',Kw='change',ky='char',nx='className',Lw='click',Iw='com.onurgunduz.qrdec.client.Qrdec',ax='contextmenu',Mw='dblclick',px='dimension must be at least 1',mx='div',Zw='error',Nw='focus',Aw='function',ox='gwt-HTML',rx='height and width must be at least 1',cx='html',_x='initial capacity was negative or load factor was non-positive',dy='int',Ow='keydown',Pw='keypress',Qw='keyup',ix='left',Rw='load',Sw='losecapture',Gw='moduleStartup',Tw='mousedown',Uw='mousemove',Vw='mouseout',Ww='mouseover',Xw='mouseup',$w='mousewheel',Hw='onModuleLoadStart',bx='paste',kx='position',Ux='r_{i-1} was zero',Ox='resultView',Yw='scroll',Vx='sigmaTilde(0) was zero',Fw='startup',jx='top',sx='topI + height and leftJ + width must be <= matrix dimension',qx='topI and leftJ must be nonnegative';var _;_=mc.prototype={};_.eQ=qc;_.gC=rc;_.hC=sc;_.tM=vv;_.tI=1;_=Bc.prototype=new mc;_.gC=Ec;_.tI=3;_=Ac.prototype=new Bc;_.gC=Hc;_.tI=4;_=zc.prototype=new Ac;_.gC=Jc;_.tI=5;_=yc.prototype=new zc;_.gC=Mc;_.tI=6;_.b=null;_=jd.prototype=new mc;_.gC=ld;_.tI=0;var od=0,pd=0;_=yd.prototype=new jd;_.gC=Hd;_.tI=0;_.d=false;_.g=false;var zd;_=Ld.prototype=new mc;_.h=Od;_.gC=Pd;_.tI=0;_.b=null;_=Qd.prototype=new mc;_.h=Td;_.gC=Ud;_.tI=0;_.b=null;_=le.prototype=new mc;_.gC=ne;_.tI=0;_=oe.prototype=new le;_.gC=ve;_.tI=0;_.b=yw;_=we.prototype=new mc;_.gC=Be;_.tI=0;_=De.prototype=new we;_.gC=Fe;_.tI=0;_=Ce.prototype=new De;_.gC=Ke;_.tI=0;_=Le.prototype=new Ce;_.gC=Oe;_.tI=0;_=pf.prototype=new mc;_.gC=sf;_.tI=0;_.b=false;_.c=null;_=of.prototype=new pf;_.i=vf;_.j=xf;_.gC=yf;_.tI=0;var tf=null;_=Cf.prototype=new mc;_.gC=Ef;_.tI=0;_=Gf.prototype=new mc;_.gC=Kf;_.hC=Lf;_.tI=0;_.b=0;var Hf=0;_=Mf.prototype=new mc;_.gC=Vf;_.tI=0;_.b=null;_.c=0;_.d=false;_.e=null;_.f=null;_=Wf.prototype=new mc;_.gC=Zf;_.tI=7;_.b=null;_.c=null;_.d=null;_=_f.prototype=new mc;_.gC=hg;_.tI=0;_=lg.prototype=new mc;_.gC=ug;_.tI=0;_.aC=null;_.length=0;_.qI=0;var Ag,Bg;var Hg=[{},{},{1:1,16:1},{16:1,18:1},{16:1,18:1},{2:1,16:1,18:1},{2:1,16:1,18:1},{3:1},{5:1},{7:1},{5:1,6:1,7:1,8:1},{5:1,6:1,7:1,8:1},{5:1,6:1,7:1,8:1},{5:1,6:1,7:1,8:1},{2:1,16:1,18:1},{5:1,6:1,7:1,8:1},{5:1,6:1,7:1,8:1},{5:1,6:1,7:1,8:1,23:1},{21:1},{5:1,6:1,7:1,8:1,23:1},{9:1},{10:1},{10:1},{10:1},{10:1},{10:1},{10:1},{10:1},{10:1},{10:1},{11:1},{26:1},{12:1},{16:1,18:1},{16:1,18:1,25:1},{15:1},{13:1},{14:1},{2:1,16:1,18:1},{2:1,16:1,18:1},{16:1,18:1},{16:1,18:1},{2:1,16:1,18:1},{16:1},{2:1,16:1,18:1,24:1},{2:1,16:1,18:1},{2:1,16:1,18:1},{16:1,27:1},{2:1,16:1,18:1},{16:1,17:1},{2:1,16:1,18:1},{32:1},{32:1},{29:1},{29:1},{29:1},{30:1},{32:1},{4:1,16:1,30:1},{16:1,31:1},{16:1,32:1},{29:1},{2:1,16:1,18:1},{16:1,30:1},{19:1},{20:1},{22:1}];var Bj=null,Cj=null;var Jj=false,Kj=null;_=Tj.prototype=new pf;_.i=Xj;_.j=Yj;_.gC=Zj;_.tI=0;var Uj;_=$j.prototype=new Mf;_.gC=bk;_.tI=8;var dk=false;var mk=null,nk=null,ok=null,pk=null;_=Ek.prototype=new mc;_.gC=Gk;_.tI=9;_.f=null;_=Dk.prototype=new Ek;_.l=Nk;_.m=Ok;_.gC=Pk;_.k=Qk;_.n=Rk;_.o=Sk;_.tI=10;_.c=false;_.d=0;_.e=null;_=Ck.prototype=new Dk;_.l=Vk;_.m=Wk;_.gC=Xk;_.n=Yk;_.o=Zk;_.tI=11;_=Bk.prototype=new Ck;_.gC=dl;_.p=el;_.tI=12;_=Ak.prototype=new Bk;_.gC=jl;_.tI=13;_=kl.prototype=new zc;_.gC=pl;_.tI=14;var ll,ml;_=rl.prototype=new mc;_.q=tl;_.gC=ul;_.tI=0;_=vl.prototype=new mc;_.q=xl;_.gC=yl;_.tI=0;_=Bl.prototype=new Dk;_.gC=El;_.tI=15;_=Al.prototype=new Bl;_.gC=Hl;_.tI=16;_=Pl.prototype=new Ak;_.gC=Zl;_.tI=17;var Ql,Rl,Sl;_=$l.prototype=new mc;_.q=am;_.gC=bm;_.tI=0;_=cm.prototype=new mc;_.gC=em;_.tI=18;_=fm.prototype=new Pl;_.gC=im;_.tI=19;_=lm.prototype=new mc;_.gC=um;_.p=vm;_.tI=0;_.b=null;_.c=null;_.d=0;_=wm.prototype=new mc;_.gC=Em;_.r=Fm;_.s=Gm;_.tI=0;_.b=-1;_.c=null;_=Hm.prototype=new mc;_.gC=Nm;_.tI=0;_.b=null;_.c=0;_=Om.prototype=new mc;_.gC=Um;_.tI=0;_.b=null;_.c=null;_.d=null;_=Vm.prototype=new mc;_.gC=Zm;_.tI=0;_.b=0;_.c=0;_.d=null;var bn=null;_=en.prototype=new mc;_.gC=hn;_.tI=20;_.b=null;_.c=0;_=kn.prototype=new mc;_.gC=on;_.tI=21;var ln;_=pn.prototype=new kn;_.gC=sn;_.t=tn;_.tI=22;_=un.prototype=new kn;_.gC=xn;_.t=yn;_.tI=23;_=zn.prototype=new kn;_.gC=Cn;_.t=Dn;_.tI=24;_=En.prototype=new kn;_.gC=Hn;_.t=In;_.tI=25;_=Jn.prototype=new kn;_.gC=Mn;_.t=Nn;_.tI=26;_=On.prototype=new kn;_.gC=Rn;_.t=Sn;_.tI=27;_=Tn.prototype=new kn;_.gC=Wn;_.t=Xn;_.tI=28;_=Yn.prototype=new kn;_.gC=_n;_.t=ao;_.tI=29;var co,eo=false;_=oo.prototype=new mc;_.gC=to;_.tI=0;_.b=null;_=uo.prototype=new mc;_.gC=xo;_.tI=0;_.b=null;_=yo.prototype=new mc;_.gC=Ho;_.tI=30;_.b=0;var zo,Ao,Bo,Co,Do;_=Io.prototype=new mc;_.eQ=Po;_.gC=Qo;_.hC=Ro;_.tI=31;_.b=0;_.c=null;var Jo,Ko;_=To.prototype=new mc;_.gC=bp;_.tI=0;_.b=null;_.c=null;_.d=null;_.e=null;var Uo,Vo;_=cp.prototype=new mc;_.gC=lp;_.tI=32;_.b=null;_.c=null;_=mp.prototype=new mc;_.gC=Ap;_.tI=0;_.b=null;var np,op,pp,qp,rp,sp,tp,up,vp;_=Fp.prototype=new Ac;_.gC=Jp;_.tI=33;var Gp;_=Kp.prototype=new mc;_.gC=Rp;_.tI=0;_.b=null;_=Sp.prototype=new Ac;_.gC=Vp;_.tI=34;_=Wp.prototype=new mc;_.gC=bq;_.tI=35;_.b=null;_.c=null;_.d=0;_.e=0;var Xp,Yp;_=dq.prototype=new mc;_.gC=gq;_.tI=36;_.b=0;_.c=0;_=hq.prototype=new mc;_.gC=lq;_.tI=37;_.b=null;_.c=0;_=oq.prototype=new zc;_.gC=rq;_.tI=38;_=sq.prototype=new zc;_.gC=wq;_.tI=39;_=yq.prototype=new mc;_.gC=Dq;_.tI=0;_.b=null;_.c=0;_=Eq.prototype=new zc;_.gC=Hq;_.tI=42;_=Kq.prototype=new zc;_.gC=Oq;_.tI=44;_=Pq.prototype=new zc;_.gC=Tq;_.tI=45;_=Uq.prototype=new zc;_.gC=Yq;_.tI=46;_=$q.prototype=new mc;_.gC=ar;_.tI=43;_=Zq.prototype=new $q;_.eQ=dr;_.gC=er;_.hC=fr;_.tI=47;_.b=0;_=hr.prototype=new zc;_.gC=kr;_.tI=48;_=lr.prototype=new mc;_.gC=or;_.tI=49;_=String.prototype;_.eQ=yr;_.gC=zr;_.hC=Ar;_.tI=2;var Dr,Er=0,Fr;_=Kr.prototype=new mc;_.gC=Qr;_.tI=0;_=Wr.prototype=new zc;_.gC=Zr;_.tI=50;_=$r.prototype=new mc;_.u=bs;_.v=cs;_.gC=ds;_.x=es;_.tI=0;_=gs.prototype=new mc;_.eQ=js;_.gC=ks;_.hC=ls;_.tI=0;_=fs.prototype=new gs;_.y=Es;_.gC=Fs;_.tI=0;_.b=null;_.c=null;_.d=false;_.e=0;_.f=null;_=Hs.prototype=new $r;_.eQ=Js;_.gC=Ks;_.hC=Ls;_.tI=51;_=Gs.prototype=new Hs;_.v=Rs;_.gC=Ss;_.p=Ts;_.w=Us;_.tI=52;_.b=null;_=Vs.prototype=new mc;_.gC=$s;_.r=_s;_.s=at;_.tI=0;_.b=null;_.c=null;_=ct.prototype=new mc;_.eQ=et;_.gC=ft;_.hC=gt;_.tI=53;_=bt.prototype=new ct;_.gC=jt;_.z=kt;_.A=lt;_.B=mt;_.tI=54;_.b=null;_=nt.prototype=new ct;_.gC=qt;_.z=rt;_.A=st;_.B=ut;_.tI=55;_.b=null;_.c=null;_=vt.prototype=new $r;_.u=yt;_.C=zt;_.eQ=Bt;_.gC=Ct;_.hC=Dt;_.p=Ft;_.tI=56;_=Gt.prototype=new mc;_.gC=Mt;_.r=Nt;_.s=Ot;_.tI=0;_.b=0;_.c=null;_=Pt.prototype=new Hs;_.v=Tt;_.gC=Ut;_.p=Vt;_.w=Wt;_.tI=57;_.b=null;_.c=null;_=Xt.prototype=new mc;_.gC=$t;_.r=_t;_.s=au;_.tI=0;_.b=null;_=bu.prototype=new vt;_.u=nu;_.C=ou;_.v=pu;_.D=qu;_.gC=ru;_.w=tu;_.x=vu;_.tI=58;_.c=0;_=xu.prototype=new fs;_.gC=Cu;_.tI=59;_=Du.prototype=new Hs;_.u=Ku;_.v=Lu;_.gC=Mu;_.p=Nu;_.w=Ou;_.tI=60;_.b=null;_=Tu.prototype=new ct;_.gC=Xu;_.z=Yu;_.A=Zu;_.B=_u;_.tI=61;_.b=null;_.c=null;_=av.prototype=new zc;_.gC=dv;_.tI=62;_=jv.prototype=new vt;_.u=nv;_.C=ov;_.v=pv;_.D=qv;_.gC=rv;_.p=sv;_.w=tv;_.x=uv;_.tI=63;_.b=null;var $entry=sd;var xi=new yq,ch=Cq(yw,dy),Zi=Aq(yw,ey,ch),Ci=new yq,qi=new yq,yi=new yq,fh=new yq,ih=new yq,gh=new yq,hh=new yq,zi=new yq,hj=Aq(fy,gy,zi),kh=new yq,jh=new yq,dh=new yq,eh=new yq,oh=new yq,nh=new yq,mh=new yq,lh=new yq,Bi=new yq,sh=new yq,rh=new yq,ph=new yq,qh=new yq,vh=new yq,uh=new yq,th=new yq,Kh=new yq,Nh=new yq,Fh=new yq,Ch=new yq,yh=new yq,ij=Aq(fy,hy,Ci),Bh=new yq,zh=new yq,Ah=new yq,$i=Aq(iy,jy,Nh),Eh=new yq,Dh=new yq,Ei=new yq,Li=new yq,Ri=new yq,bh=Cq(yw,ky),Yi=Aq(yw,ly,bh),Jh=new yq,Ih=new yq,Gh=new yq,Hh=new yq,Mh=new yq,Lh=new yq,wh=new yq,xh=new yq,Ph=new yq,ah=Cq(yw,my),Xi=Aq(yw,ny,ah),Oh=new yq,Qh=new yq,Rh=new yq,_i=Aq(oy,py,Rh),$h=new yq,aj=Aq(oy,qy,$h),Sh=new yq,Th=new yq,Uh=new yq,Vh=new yq,Wh=new yq,Xh=new yq,Yh=new yq,Zh=new yq,ai=new yq,_h=new yq,bi=new yq,bj=Aq(oy,ry,bi),jj=Aq(yw,sy,Zi),ci=new yq,ei=new yq,di=new yq,cj=Aq(oy,ty,di),fi=new yq,gi=new yq,hi=new yq,ii=new yq,ki=new yq,ej=Aq(oy,uy,ki),li=new yq,fj=Aq(oy,vy,li),ji=new yq,dj=Aq(oy,wy,ji),mi=new yq,ti=new yq,ni=new yq,wi=new yq,pi=new yq,oi=new yq,ri=new yq,si=new yq,ui=new yq,vi=new yq,Ai=new yq,Di=new yq,gj=Aq(fy,xy,xi),Pi=new yq,Ji=new yq,Qi=new yq,Gi=new yq,Fi=new yq,Oi=new yq,Hi=new yq,Ii=new yq,Ki=new yq,Ni=new yq,Mi=new yq,Si=new yq,Ti=new yq,Ui=new yq,Vi=new yq,Wi=new yq;$stats && $stats({moduleName:'qrdec',sessionId:$sessionId,subSystem:'startup',evtGroup:'moduleStartup',millis:(new Date()).getTime(),type:'moduleEvalEnd'});if ($wnd.qrdec) $wnd.qrdec.onScriptLoad(); --></script></body></html>
123912029-ssiagu
qrdec/war/qrdec/29021A86E89BEAAF0A2CDEBC37024CFE.cache.html
HTML
gpl2
58,090
<html><head><script>var $gwt_version = "2.0.0";var $wnd = parent;var $doc = $wnd.document;var $moduleName, $moduleBase;var $strongName = 'CABA6B752897F6B9462DB5F401B63F34';var $stats = $wnd.__gwtStatsEvent ? function(a) {return $wnd.__gwtStatsEvent(a);} : null,$sessionId = $wnd.__gwtStatsSessionId ? $wnd.__gwtStatsSessionId : null;$stats && $stats({moduleName:'qrdec',sessionId:$sessionId,subSystem:'startup',evtGroup:'moduleStartup',millis:(new Date()).getTime(),type:'moduleEvalStart'});</script></head><body><script><!-- function rv(){} function lc(){} function Ac(){} function zc(){} function yc(){} function xc(){} function id(){} function xd(){} function Kd(){} function Pd(){} function oe(){} function re(){} function ze(){} function Ge(){} function Fe(){} function of(){} function nf(){} function Bf(){} function Ff(){} function Lf(){} function Vf(){} function $f(){} function kg(){} function Sj(){} function Zj(){} function Ak(){} function Jk(){} function Kk(){} function Nk(){} function Ok(){} function zk(){} function Uk(){} function Vk(){} function yk(){} function xk(){} function wk(){} function gl(){} function nl(){} function rl(){} function xl(){} function wl(){} function Ll(){} function Wl(){} function $l(){} function bm(){} function hm(){} function sm(){} function Dm(){} function Km(){} function Rm(){} function an(){} function fn(){} function ln(){} function qn(){} function vn(){} function An(){} function Fn(){} function Kn(){} function Pn(){} function Un(){} function ko(){} function qo(){} function uo(){} function Eo(){} function Po(){} function $o(){} function ip(){} function Bp(){} function Gp(){} function Op(){} function Sp(){} function _p(){} function dq(){} function kq(){} function oq(){} function uq(){} function Aq(){} function Gq(){} function Lq(){} function Qq(){} function Wq(){} function Vq(){} function dr(){} function hr(){} function Gr(){} function Sr(){} function Wr(){} function cs(){} function bs(){} function Ds(){} function Cs(){} function Rs(){} function $s(){} function Zs(){} function jt(){} function rt(){} function Ct(){} function Lt(){} function Tt(){} function Zt(){} function tu(){} function zu(){} function Pu(){} function Yu(){} function fv(){} function uf(a){Sl()} function pl(a){Ek(a)} function tl(a){Fk(a)} function qc(){return vi} function Dc(){return Ai} function Gc(){return oi} function Ic(){return wi} function Lc(){return ch} function kd(){return eh} function Gd(){return hh} function Od(){return fh} function Td(){return gh} function qe(){return jh} function ye(){return ih} function Ee(){return mh} function Ke(){return lh} function Ne(){return kh} function rf(){return qh} function wf(){return sf} function xf(){return nh} function Df(){return oh} function Jf(){return ph} function Uf(){return th} function Yf(){return rh} function gg(){return sh} function Xj(){return Tj} function Yj(){return uh} function ak(){return vh} function Ck(){return Ih} function Lk(){return Lh} function Tk(){return Dh} function _k(){return Ah} function fl(){return wh} function ll(){return zh} function ql(){return xh} function ul(){return yh} function Al(){return Ch} function Dl(){return Bh} function Vl(){return Hh} function Zl(){return Eh} function am(){return Fh} function em(){return Gh} function qm(){return Kh} function Am(){return Jh} function Jm(){return Nh} function Qm(){return Mh} function Vm(){return Oh} function dn(){return Ph} function kn(){return Yh} function on(){return Qh} function tn(){return Rh} function yn(){return Sh} function Dn(){return Th} function In(){return Uh} function Nn(){return Vh} function Sn(){return Wh} function Xn(){return Xh} function po(){return $h} function to(){return Zh} function Do(){return _h} function Mo(){return ai} function Zo(){return ci} function hp(){return bi} function wp(){return di} function Fp(){return ei} function Np(){return fi} function Rp(){return gi} function Zp(){return ji} function cq(){return hi} function hq(){return ii} function nq(){return ki} function sq(){return li} function zq(){return ni} function Dq(){return mi} function Kq(){return pi} function Pq(){return qi} function Uq(){return ri} function Yq(){return ui} function ar(){return si} function gr(){return ti} function kr(){return xi} function vr(){return zi} function Mr(){return yi} function Vr(){return Bi} function _r(){return Ci} function gs(){return Ni} function Bs(){return Hi} function Gs(){return Oi} function Os(){return Ei} function Ws(){return Di} function bt(){return Mi} function ft(){return Fi} function mt(){return Gi} function yt(){return Ji} function It(){return Ii} function Qt(){return Li} function Wt(){return Ki} function nu(){return Pi} function yu(){return Qi} function Iu(){return Ri} function Tu(){return Si} function _u(){return Ti} function nv(){return Ui} function He(){He=rv;Ae()} function Le(){Le=rv;He()} function cm(){cm=rv;Pl()} function mn(){mn=rv;hn()} function rn(){rn=rv;hn()} function wn(){wn=rv;hn()} function Bn(){Bn=rv;hn()} function Gn(){Gn=rv;hn()} function Ln(){Ln=rv;hn()} function Qn(){Qn=rv;hn()} function Vn(){Vn=rv;hn()} function Yl(a){a.c&&Fk(a)} function gt(){return null} function Fd(a){return a.h()} function Kf(){return this.b} function br(){return this.b} function nt(){return this.b} function pu(){return this.c} function Uu(){return this.b} function Vu(){return this.c} function tg(){return this.aC} function cl(a,b){Yk(a,b,a.f)} function km(a,b){mm(a,b,a.d)} function mq(a){de();return a} function qq(a){de();return a} function Cq(a){de();return a} function Iq(a){de();return a} function Nq(a){de();return a} function Sq(a){de();return a} function fr(a){de();return a} function $u(a){de();return a} function Wj(a){Zg(a);null.E()} function Cm(){return xm(this)} function wr(){return Er(this)} function Qs(){return this.b.e} function ht(){return this.b.c} function Kt(){return Ht(this)} function Ku(){return this.b.e} function ku(a,b){du(this,a,b)} function vu(a){ms(a);return a} function pv(){return this.b.c} function Ae(){Ae=rv;Le();new Fe} function Fc(a,b){de();return a} function Qp(a,b){de();return a} function rq(a,b){de();return a} function Jq(a,b){de();return a} function Oq(a,b){de();return a} function Tq(a,b){de();return a} function Ur(a,b){de();return a} function Md(a,b){a.b=b;return a} function Rd(a,b){a.b=b;return a} function zl(a,b){a.f=b;return a} function vm(a,b){a.c=b;return a} function Tm(a,b){a.d=b;return a} function Ip(a,b){a.b=b;return a} function $q(a,b){a.b=b;return a} function jr(a,b,c,d,e){return a} function Js(a,b){a.b=b;return a} function Xs(){return Gt(this.b)} function St(){return this.c.b.e} function Sk(){ml(this,(jl(),il))} function kv(a,b){du(this.b,a,b)} function et(a,b){a.b=b;return a} function Ft(a,b){a.c=b;return a} function Vt(a,b){a.b=b;return a} function If(a){a.b=++Gf;return a} function Ns(a){return Ks(this,a)} function Rk(){ml(this,(jl(),hl))} function Cr(){Cr=rv;zr={};Br={}} function zd(){zd=rv;yd=Bd(new xd)} function Uj(){Uj=rv;Tj=If(new Ff)} function ru(a){return iu(this,a)} function Gt(a){return a.b<a.c.w()} function Xt(){return Gt(this.b.b)} function it(a){return vs(this.b,a)} function Pt(a){return ns(this.b,a)} function Hu(a){return ns(this.b,a)} function jv(a){return cu(this.b,a)} function mv(a){return fu(this.b,a)} function qv(a){return iu(this.b,a)} function rm(){return vm(new sm,this)} function Lr(a,b){a.b.b+=b;return a} function Jr(a){a.b=new re;return a} function Zr(a){throw Ur(new Sr,Tx)} function vt(a,b){throw Ur(new Sr,Vx)} function Jg(a,b){return a&&Gg[a][b]} function ss(b,a){return Qx+a in b.f} function Mj(a,b){return Pf(Oj(),a,b)} function wu(a,b){js(a,b,0);return a} function Bt(){return Ft(new Ct,this)} function al(){return vm(new sm,this.b)} function Ig(a,b){return a&&!!Gg[a][b]} function Bm(){return this.b<this.c.d-1} function Ps(){return Ts(new Rs,this.b)} function Ys(){return Lg(Ht(this.b),29)} function Jt(){return this.b<this.c.w()} function lu(a){return gu(this,a,0)!=-1} function ov(){return Ft(new Ct,this.b)} function Dp(){Dp=rv;Cp=(Dp(),new Bp)} function jl(){jl=rv;hl=new nl;il=new rl} function gk(){if(!ck){qk();ck=true}} function Pj(){if(!Ij){vk();Ij=true}} function bg(a){a.b=vu(new tu);return a} function pt(a,b){return lt(new jt,b,a)} function wt(a,b){(a<0||a>=b)&&At(a,b)} function Bo(a,b,c){Ao();a.b=b;return a} function tp(a,b,c){sp();a.b=b;return a} function Bu(a){a.b=vu(new tu);return a} function cn(a,b,c){a.c=b;a.b=c;return a} function bq(a,b,c){a.b=b;a.c=c;return a} function lt(a,b,c){a.c=c;a.b=b;return a} function Nt(a,b,c){a.b=b;a.c=c;return a} function Ru(a,b,c){a.b=b;a.c=c;return a} function fu(a,b){wt(b,a.c);return a.b[b]} function lv(a){return gu(this.b,a,0)!=-1} function No(){return this.c.b<<3|this.b} function ot(){return this.c.f[Qx+this.b]} function qt(a){return ws(this.c,this.b,a)} function rc(){return this.$H||(this.$H=++od)} function dp(a,b){return a.b[a.b.length-1-b]} function au(a){a.b=ug(ej,0,0,0,0);return a} function Kc(a,b){de();a.b=b;ce(a);return a} function hv(a,b){a.b=bu(new Zt,b);return a} function Og(a,b){return a!=null&&Ig(a.tI,b)} function mu(a){return wt(a,this.c),this.b[a]} function pc(a){return this===(a==null?null:a)} function cu(a,b){xg(a.b,a.c++,b);return true} function qr(b,a){return b.substr(a,b.length-a)} function ee(){try{null.a()}catch(a){return a}} function At(a,b){throw Tq(new Qq,Wx+a+Xx+b)} function yq(a,b){var c;c=new uq;c.c=1;return c} function Cd(a){var b;b=a.c;a.c=[];Id(b,a.c)} function vf(a){var b;if(sf){b=new nf;Sf(a,b)}} function Xu(a){var b;b=this.c;this.c=a;return b} function $r(a){var b;b=Yr(this.p(),a);return !!b} function Oj(){!Jj&&(Jj=_j(new Zj));return Jj} function dm(a){cm();Ql(a,$doc.body);return a} function ut(a){this.C(this.w(),a);return true} function Pg(a){return a!=null&&a.tM!=rv&&a.tI!=2} function Ed(a){return a.b.length>0||a.f.length>0} function ju(a){return xg(this.b,this.c++,a),true} function Cu(a,b){var c;c=ts(a.b,b,a);return c==null} function dl(a,b){var c;c=$k(a,b);c&&el(b.f);return c} function Xf(a,b,c,d){a.b=b;a.d=c;a.c=d;return a} function Qf(a,b){!a.b&&(a.b=au(new Zt));cu(a.b,b)} function jm(a,b){a.c=b;a.b=ug(Yi,0,8,4,0);return a} function fq(a,b,c){a.c=b;a.b=vg(bj,0,13,[c]);return a} function _d(a,b){a.length>=b&&a.splice(0,b);return a} function ms(a){a.b=[];a.f={};a.d=false;a.c=null;a.e=0} function mo(a){a.b=Ip(new Gp,(So(),Ro));return a} function Lj(a){Pj();return Mj(sf?sf:(sf=If(new Ff)),a)} function Rl(a){Pl();try{Fk(a)}finally{xs(Ol.b,a)!=null}} function Zg(a){if(a!=null){throw Cq(new Aq)}return a} function Fr(){if(Ar==256){zr=Br;Br={};Ar=0}++Ar} function Xo(a,b){if(b==0){throw Iq(new Gq)}return a.c[b]} function Kr(a,b){a.b.b+=String.fromCharCode(b);return a} function xe(a,b,c,d){a.b=a.b.substr(0,b-0)+d+qr(a.b,c)} function wq(a,b,c){var d;d=new uq;d.c=4;d.b=c;return d} function Gu(a){var b;return b=ts(this.b,a,this),b==null} function Dd(a){var b;b=a.b;a.b=[];Id(b,a.f);a.f=Hd(a.f)} function _j(a){a.e=bg(new $f);a.f=null;a.d=false;return a} function So(){So=rv;Ro=To(new Po,285);Qo=To(new Po,301)} function Bg(){Bg=rv;zg=[];Ag=[];Cg(new kg,zg,Ag)} function Pl(){Pl=rv;Ml=new Wl;Nl=vu(new tu);Ol=Bu(new zu)} function es(a){var b;b=Js(new Cs,a);return Nt(new Lt,a,b)} function Rt(){var a;return a=Ts(new Rs,this.c.b),Vt(new Tt,a)} function Yt(){var a;a=Lg(Ht(this.b.b),29);return a.z()} function Sd(){this.b.d&&Jd(this.b.e,1);return this.b.g} function bu(a,b){a.b=ug(ej,0,0,0,0);a.b.length=b;return a} function Ql(a,b){Pl();a.b=jm(new hm,a);a.f=b;Ek(a);return a} function gq(a,b,c,d){a.c=b;a.b=vg(bj,0,13,[c,d]);return a} function Yk(a,b,c){Gk(b);km(a.b,b);c.appendChild(b.f);Hk(b,a)} function Io(a,b){Ho();a.c=Co(b>>3&3);a.b=(b&7)<<24>>24;return a} function $p(a){Vp();if(a<1||a>40){throw Iq(new Gq)}return Tp[a-1]} function jn(a){hn();if(a<0||a>7){throw Iq(new Gq)}return gn[a]} function Wo(a,b){if(b==0){throw mq(new kq)}return a.b[255-a.c[b]]} function xm(a){if(a.b>=a.c.d){throw $u(new Yu)}return a.c.b[++a.b]} function el(a){a.style[bx]=zw;a.style[cx]=zw;a.style[dx]=zw} function Yc(a){return a.tM==rv||a.tI==2?a.hC():a.$H||(a.$H=++od)} function _q(a){return a!=null&&Ig(a.tI,27)&&Lg(a,27).b==this.b} function rd(a){return function(){return sd(a,this,arguments)}} function xs(a,b){return !b?zs(a):ys(a,b,~~(b.$H||(b.$H=++od)))} function js(a,b,c){ms(a);if(b<0||c<0){throw Jq(new Gq,Ux)}return a} function Gm(a,b,c){var d;d=b+a.c*c;return (a.b[d>>5]>>>(d&31)&1)!=0} function vs(a,b){var c;c=a.c;a.c=b;if(!a.d){a.d=true;++a.e}return c} function zs(a){var b;b=a.c;a.c=null;if(a.d){a.d=false;--a.e}return b} function pm(a,b){var c;c=lm(a,b);if(c==-1){throw $u(new Yu)}om(a,c)} function Ht(a){if(a.b>=a.c.w()){throw $u(new Yu)}return a.c.D(a.b++)} function Lg(a,b){if(a!=null&&!Jg(a.tI,b)){throw Cq(new Aq)}return a} function oj(a){if(a!=null&&Ig(a.tI,18)){return a}return Kc(new xc,a)} function vg(a,b,c,d){Bg();Eg(d,zg,Ag);d.aC=a;d.tI=b;d.qI=c;return d} function Eg(a,b,c){Bg();for(var d=0,e=b.length;d<e;++d){a[b[d]]=c[d]}} function pn(a,b){var c,d;d=a.length;for(c=0;c<d;++c){a[c]^=1431655765}} function rg(a,b){var c,d;c=a;d=sg(0,b);vg(c.aC,c.tI,c.qI,d);return d} function du(a,b,c){(b<0||b>a.c)&&At(b,a.c);a.b.splice(b,0,c);++a.c} function gu(a,b,c){for(;c<a.c;++c){if(ev(b,a.b[c])){return c}}return -1} function Pf(a,b,c){a.c>0?Qf(a,Xf(new Vf,a,b,c)):cg(a.e,b,c);return new Bf} function so(a,b,c){if(b==null&&c==null){throw Iq(new Gq)}a.b=c;return a} function Mg(a){if(a!=null&&(a.tM==rv||a.tI==2)){throw Cq(new Aq)}return a} function ik(a){return !(a!=null&&a.tM!=rv&&a.tI!=2)&&a!=null&&Ig(a.tI,6)} function ur(a){if(!(a!=null&&Ig(a.tI,1))){return false}return String(this)==a} function Jo(a){Ho();var b;b=Ko(a);if(b){return b}return Ko(a^21522)} function Ju(){var a;return a=Ts(new Rs,es(this.b).c.b),Vt(new Tt,a)} function Qk(a){var b;b=vm(new sm,a.b);while(b.b<b.c.d-1){xm(b);zm(b)}} function lm(a,b){var c;for(c=0;c<a.d;++c){if(a.b[c]==b){return c}}return -1} function zm(a){if(a.b<0||a.b>=a.c.d){throw Nq(new Lq)}dl(a.c.c,a.c.b[a.b--])} function Co(a){Ao();if(a<0||a>=vo.length){throw Iq(new Gq)}return vo[a]} function Bd(a){zd();a.e=Md(new Kd,a);Rd(new Pd,a);a.b=[];a.f=[];a.c=[];return a} function Cg(a,b,c){var d=0,e;for(var f in a){if(e=a[f]){b[d]=f;c[d]=e;++d}}} function ws(e,a,b){var c,d=e.f;a=Qx+a;a in d?(c=d[a]):++e.e;d[a]=b;return c} function Mm(a,b){var c;c=b.c;if(c<21||(c&3)!=1){throw Dp(),Dp(),Cp}a.b=b;return a} function As(a,b){return (a==null?null:a)===(b==null?null:b)||a!=null&&Uc(a,b)} function xu(a,b){return (a==null?null:a)===(b==null?null:b)||a!=null&&Uc(a,b)} function ev(a,b){return (a==null?null:a)===(b==null?null:b)||a!=null&&Uc(a,b)} function ns(a,b){return b==null?a.d:b!=null&&Ig(b.tI,1)?ss(a,Lg(b,1)):rs(a,b,~~Yc(b))} function os(a,b){return b==null?a.c:b!=null&&Ig(b.tI,1)?a.f[Qx+Lg(b,1)]:ps(a,b,~~Yc(b))} function Uc(a,b){return a.tM==rv||a.tI==2?a.eQ(b):(a==null?null:a)===(b==null?null:b)} function Yr(a,b){var c;while(a.r()){c=a.s();if(b==null?c==null:Uc(b,c)){return a}}return null} function Rj(){var a;if(Ij){a=(Uj(),new Sj);!!Jj&&Sf(Jj,a);return null}return null} function Sl(){Pl();try{ml(Ol,Ml)}finally{ms(Ol.b);ms(Nl)}} function kl(a,b){jl();Fc(a,ex,b.b.e==0?null:Lg(b.x(ug(gj,66,18,0,0)),22)[0]);return a} function Cl(a,b){zl(a,(Ae(),$doc).createElement(fx));a.f[gx]=hx;a.f.innerHTML=b||zw;return a} function Cj(a,b,c){var d;d=zj;zj=a;b==Aj&&ek((Ae(),a).type)==8192&&(Aj=null);c.k(a);zj=d} function sd(a,b,c){var d;d=nd++==0;try{return a.apply(b,c)}finally{d&&Cd((zd(),yd));--nd}} function cg(a,b,c){var d;d=Lg(os(a.b,b),4);if(!d){d=au(new Zt);ts(a.b,b,d)}xg(d.b,d.c++,c)} function ug(a,b,c,d,e){var f;f=sg(e,d);Bg();Eg(f,zg,Ag);f.aC=a;f.tI=b;f.qI=c;return f} function Lo(a){var b;if(!(a!=null&&Ig(a.tI,26))){return false}b=Lg(a,26);return this.c==b.c&&this.b==b.b} function ts(a,b,c){return b==null?vs(a,c):b!=null&&Ig(b.tI,1)?ws(a,Lg(b,1),c):us(a,b,c,~~Yc(b))} function up(a,b){var c,d;if(a.b==null){throw Jq(new Gq,Gx)}c=b.e;c<=9?(d=0):c<=26?(d=1):(d=2);return a.b[d]} function he(a){var b,c,d;d=me(a);for(b=0,c=d.length;b<c;++b){d[b]=d[b].length==0?ww:d[b]}return d} function bo(a){var b,c;c=zw;for(b=0;b<a.length;++b){c=c+String.fromCharCode(a[b]&65535)}return c} function Yp(a){Vp();var b,c;for(b=0;b<Up.length;++b){c=Up[b];if(c==a){return $p(b+7)}Oo(a,c)}return null} function Er(a){Cr();var b=Qx+a;var c=Br[b];if(c!=null){return c}c=zr[b];c==null&&(c=Dr(a));Fr();return Br[b]=c} function Hs(){var a,b,c;a=0;for(b=this.p();b.r();){c=b.s();if(c!=null){a+=Yc(c);a=~~a}}return a} function zt(){var a,b,c;b=1;a=this.p();while(a.b<a.c.w()){c=Ht(a);b=31*b+(c==null?0:Yc(c));b=~~b}return b} function ct(){var a,b;a=0;b=0;this.z()!=null&&(a=Yc(this.z()));this.A()!=null&&(b=Yc(this.A()));return a^b} function Nd(){this.b.d=true;Dd(this.b);this.b.d=false;return this.b.g=Ed(this.b)} function Yo(a,b,c){if(b==0||c==0){return 0}if(b==1){return c}if(c==1){return b}return a.b[(a.c[b]+a.c[c])%255]} function ls(e,a){var b=e.f;for(var c in b){if(c.charCodeAt(0)==58){var d=pt(e,c.substring(1));a.u(d)}}} function sg(a,b){var c=new Array(b);if(a>0){var d=[null,0,false,[0,0]][a];for(var e=0;e<b;++e){c[e]=d}}return c} function om(a,b){var c;if(b<0||b>=a.d){throw Sq(new Qq)}--a.d;for(c=b;c<a.d;++c){xg(a.b,c,a.b[c+1])}xg(a.b,a.d,null)} function Fm(a,b){var c,d;if(b<1){throw Jq(new Gq,ix)}a.c=b;d=b*b;c=d>>5;(d&31)!=0&&++c;a.b=ug(Xi,65,-1,c,1);return a} function Uo(a,b,c){var d;if(b<0){throw Iq(new Gq)}if(c==0){return a.e}d=ug(Xi,65,-1,b+1,1);d[0]=c;return ap(new $o,a,d)} function Fk(a){if(!a.c){throw Oq(new Lq,$w)}try{a.o()}finally{try{a.m()}finally{a.f.__listener=null;a.c=false}}} function Hk(a,b){var c;c=a.e;if(!b){try{!!c&&c.c&&Fk(a)}finally{a.e=null}}else{if(c){throw Oq(new Lq,ax)}a.e=b;b.c&&Ek(a)}} function Gk(a){if(!a.e){Pl();ns(Ol.b,a)&&Rl(a)}else if(a.e){dl(a.e,a)}else if(a.e){throw Oq(new Lq,_w)}} function _m(a){if(!Zm){Zm=wu(new tu,29);js(new tu,29,0)}if(a<0||a>=900){throw Jq(new Gq,mx+a)}return Zg(os(Zm,$q(new Vq,a)))} function Ts(a,b){var c;a.c=b;c=au(new Zt);a.c.d&&cu(c,et(new Zs,a.c));ls(a.c,c);ks(a.c,c);a.b=Ft(new Ct,c);return a} function Tf(a){var b,c;if(a.b){try{for(c=Ft(new Ct,a.b);c.b<c.c.w();){b=Lg(Ht(c),3);cg(b.b.e,b.d,b.c)}}finally{a.b=null}}} function Cc(a){var b,c,d;c=ug(fj,0,17,a.length,0);for(d=0,b=a.length;d<b;++d){if(!a[d]){throw fr(new dr)}c[d]=a[d]}} function de(){var a,b,c,d;c=_d(he(ee()),3);d=ug(fj,0,17,c.length,0);for(a=0,b=d.length;a<b;++a){d[a]=jr(new hr,uw,c[a],vw,0)}Cc(d)} function ks(g,a){var b=g.b;for(var c in b){if(c==parseInt(c)){var d=b[c];for(var e=0,f=d.length;e<f;++e){a.u(d[e])}}}} function ps(h,a,b){var c=h.b[b];if(c){for(var d=0,e=c.length;d<e;++d){var f=c[d];var g=f.z();if(h.y(a,g)){return f.A()}}}return null} function rs(h,a,b){var c=h.b[b];if(c){for(var d=0,e=c.length;d<e;++d){var f=c[d];var g=f.z();if(h.y(a,g)){return true}}}return false} function Jd(b,c){zd();$wnd.setTimeout(function(){var a=$entry(Fd)(b);a&&$wnd.setTimeout(arguments.callee,c)},c)} function gwtOnLoad(b,c,d){$moduleName=c;$moduleBase=d;if(b)try{$entry(lj)()}catch(a){b(c)}else{$entry(lj)()}} function En(a,b){var c,d,e,f,g;c=0;d=0;g=0;for(f=0;f<b;++f){for(e=0;e<b;++e){(e+f)%3==0&&(c|=1<<d);if(++d==32){a[g++]^=c;d=0;c=0}}}a[g]^=c} function un(a,b){var c,d,e,f,g;c=0;d=0;g=0;for(f=0;f<b;++f){for(e=0;e<b;++e){(e&1)==0&&(c|=1<<d);if(++d==32){a[g++]^=c;d=0;c=0}}}a[g]^=c} function zn(a,b){var c,d,e,f,g,h;c=0;e=0;h=0;for(g=0;g<b;++g){d=g%3==0;for(f=0;f<b;++f){d&&(c|=1<<e);if(++e==32){a[h++]^=c;e=0;c=0}}}a[h]^=c} function Ks(a,b){var c,d,e;if(b!=null&&Ig(b.tI,29)){c=Lg(b,29);d=c.z();if(ns(a.b,d)){e=os(a.b,d);return xu(c.A(),e)}}return false} function at(a){var b;if(a!=null&&Ig(a.tI,29)){b=Lg(a,29);if(ev(this.z(),b.z())&&ev(this.A(),b.A())){return true}}return false} function Mk(a){var b;switch(ek((Ae(),a).type)){case 16:case 32:b=a.relatedTarget;if(!!b&&this.f.contains(b)){return}}} function as(a){var b,c,d,e;e=this.w();a.length<e&&(a=rg(a,e));d=a;c=this.p();for(b=0;b<e;++b){xg(d,b,c.s())}a.length>e&&xg(a,e,null);return a} function hs(){var a,b,c;c=0;for(b=Ts(new Rs,Js(new Cs,Lg(this,31)).b);Gt(b.b);){a=Lg(Ht(b.b),29);c+=a.hC();c=~~c}return c} function ce(a){var b,c,d,e;d=he(Pg(a.b)?Mg(a.b):null);e=ug(fj,0,17,d.length,0);for(b=0,c=e.length;b<c;++b){e[b]=jr(new hr,uw,d[b],vw,0)}Cc(e)} function Ao(){Ao=rv;xo=Bo(new uo,0,sx);yo=Bo(new uo,1,tx);zo=Bo(new uo,2,ux);wo=Bo(new uo,3,vx);vo=vg(_i,0,11,[yo,xo,wo,zo])} function hn(){hn=rv;gn=vg($i,0,10,[(mn(),hn(),new ln),(rn(),new qn),(wn(),new vn),(Bn(),new An),(Gn(),new Fn),(Ln(),new Kn),(Qn(),new Pn),(Vn(),new Un)])} function sr(c){if(c.length==0||c[0]>Px&&c[c.length-1]>Px){return c}var a=c.replace(/^(\s*)/,zw);var b=a.replace(/\s*$/,zw);return b} function xg(a,b,c){if(c!=null){if(a.qI>0&&!Jg(c.tI,a.qI)){throw qq(new oq)}if(a.qI<0&&(c.tM==rv||c.tI==2)){throw qq(new oq)}}return a[b]=c} function iu(a,b){var c,d,e;b.length<a.c&&(b=(d=b,e=sg(0,a.c),vg(d.aC,d.tI,d.qI,e),e));for(c=0;c<a.c;++c){xg(b,c,a.b[c])}b.length>a.c&&xg(b,a.c,null);return b} function Yn(a,b){var c,d,e,f,g;c=0;d=0;g=0;for(f=0;f<b;++f){for(e=0;e<b;++e){((e+f&1)+e*f%3&1)==0&&(c|=1<<d);if(++d==32){a[g++]^=c;d=0;c=0}}}a[g]^=c} function On(a,b){var c,d,e,f,g,h;c=0;d=0;g=0;for(f=0;f<b;++f){for(e=0;e<b;++e){h=e*f;(h&1)==0&&h%3==0&&(c|=1<<d);if(++d==32){a[g++]^=c;d=0;c=0}}}a[g]^=c} function Tn(a,b){var c,d,e,f,g,h;c=0;d=0;g=0;for(f=0;f<b;++f){for(e=0;e<b;++e){h=e*f;((h&1)+h%3&1)==0&&(c|=1<<d);if(++d==32){a[g++]^=c;d=0;c=0}}}a[g]^=c} function Jn(a,b){var c,d,e,f,g,h;c=0;d=0;h=0;for(f=0;f<b;++f){g=~~(f/3)&1;for(e=0;e<b;++e){(e>>1&1)==g&&(c|=1<<d);if(++d==32){a[h++]^=c;d=0;c=0}}}a[h]^=c} function Id(b,c){var a,e,f,g;for(e=0,f=b.length;e<f;++e){g=b[e];try{g[1]?g[0].h()&&(c[c.length]=g,undefined):g[0].E()}catch(a){a=oj(a);if(!Og(a,2))throw a}}} function Oo(a,b){Ho();a^=b;return Fo[a&15]+Fo[a>>>4&15]+Fo[a>>>8&15]+Fo[a>>>12&15]+Fo[a>>>16&15]+Fo[a>>>20&15]+Fo[a>>>24&15]+Fo[a>>>28&15]} function ao(){ao=rv;$n=vg(Wi,0,-1,[48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,32,36,37,42,43,45,46,47,58]);_n=false} function go(a,b,c){var d,e,f,g;e=ug(Vi,0,-1,2*c,1);f=0;while(c>0){g=Um(a,13);d=~~(g/192)<<8|g%192;d<7936?(d+=33088):(d+=49472);e[f]=d>>8<<24>>24;e[f+1]=d<<24>>24;f+=2;--c}Lr(b,bo(e))} function fo(a,b,c,d){var e,f;f=ug(Vi,0,-1,c,1);if(c<<3>8*(a.d.length-a.c)-a.b){throw Dp(),Dp(),Cp}for(e=0;e<c;++e){f[e]=Um(a,8)<<24>>24}io(f);Lr(b,bo(f));cu(d.b,f)} function fp(a,b){var c,d,e;if(b==0){return a.c.e}if(b==1){return a}e=a.b.length;d=ug(Xi,65,-1,e,1);for(c=0;c<e;++c){d[c]=Yo(a.c,a.b[c],b)}return ap(new $o,a.c,d)} function cp(a,b){var c,d,e;if(b==0){return a.b[a.b.length-1]}e=a.b.length;if(b==1){d=0;for(c=0;c<e;++c){d=(So(),d^a.b[c])}return d}d=a.b[0];for(c=1;c<e;++c){d=(So(),Yo(a.c,b,d)^a.b[c])}return d} function ml(b,c){var i;jl();var a,e,f,g,h;e=null;for(h=b.p();h.r();){g=Lg(h.s(),8);try{c.q(g)}catch(a){a=oj(a);if(Og(a,18)){f=a;!e&&(e=Bu(new zu));i=ts(e.b,f,e)}else throw a}}if(e){throw kl(new gl,e)}} function Ko(a){var b,c,d,e,f,g,h;h=a^21522;b=2147483647;c=0;for(f=0;f<Go.length;++f){e=Go[f];g=e[0];if(g==h){return Io(new Eo,e[1])}d=Oo(h,g);if(d<b){c=e[1];b=d}}if(b<=3){return Io(new Eo,c)}return null} function us(j,a,b,c){var d=j.b[c];if(d){for(var e=0,f=d.length;e<f;++e){var g=d[e];var h=g.z();if(j.y(a,h)){var i=g.A();g.B(b);return i}}}else{d=j.b[c]=[]}var g=Ru(new Pu,a,b);d.push(g);++j.e;return null} function Dr(a){var b,c,d,e;b=0;d=a.length;e=d-4;c=0;while(c<e){b=a.charCodeAt(c+3)+31*(a.charCodeAt(c+2)+31*(a.charCodeAt(c+1)+31*(a.charCodeAt(c)+31*b)))|0;c+=4}while(c<d){b=b*31+a.charCodeAt(c++)}return b|0} function vp(a){sp();switch(a){case 0:return rp;case 1:return pp;case 2:return jp;case 3:return qp;case 4:return kp;case 5:return mp;case 7:return lp;case 8:return op;case 9:return np;default:throw Iq(new Gq);}} function mm(a,b,c){var d,e;if(c<0||c>a.d){throw Sq(new Qq)}if(a.d==a.b.length){e=ug(Yi,0,8,a.b.length*2,0);for(d=0;d<a.b.length;++d){xg(e,d,a.b[d])}a.b=e}++a.d;for(d=a.d-1;d>c;--d){xg(a.b,d,a.b[d-1])}xg(a.b,c,b)} function Kp(a,b){var c,d,e,f;e=b.b.length-1;if(e==1){return vg(Xi,65,-1,[b.b[b.b.length-1-1]])}f=ug(Xi,65,-1,e,1);c=0;for(d=1;d<256&&c<e;++d){if(cp(b,d)==0){f[c]=Wo(a.b,d);++c}}if(c!=e){throw Qp(new Op,Mx)}return f} function Fs(a){var b,c,d;if((a==null?null:a)===this){return true}if(!(a!=null&&Ig(a.tI,32))){return false}c=Lg(a,32);if(c.w()!=this.w()){return false}for(b=c.p();b.r();){d=b.s();if(!this.v(d)){return false}}return true} function no(b,c,d){var a,f,g,h,i;h=c.length;f=ug(Xi,65,-1,h,1);for(g=0;g<h;++g){f[g]=c[g]&255}i=c.length-d;try{Jp(b.b,f,i)}catch(a){a=oj(a);if(Og(a,25)){throw Dp(),Dp(),Cp}else throw a}for(g=0;g<d;++g){c[g]=f[g]<<24>>24}} function ap(a,b,c){var d,e;if(c==null||c.length==0){throw Iq(new Gq)}a.c=b;d=c.length;if(d>1&&c[0]==0){e=1;while(e<d&&c[e]==0){++e}if(e==d){a.b=b.e.b}else{a.b=ug(Xi,65,-1,d-e,1);Pr(c,e,a.b,0,a.b.length)}}else{a.b=c}return a} function Tl(a){Pl();var b,c;c=Lg(os(Nl,a),23);b=null;if(a!=null){if(!(b=$doc.getElementById(a))){return null}}if(c){if(!b||c.f==b){return c}}Nl.e==0&&Lj(new $l);!b?(c=dm(new bm)):(c=Ql(new Ll,b));ts(Nl,a,c);Cu(Ol,c);return c} function Im(a,b,c,d,e){var f,g,h,i,j,k;if(b<0||c<0){throw Jq(new Gq,jx)}if(d<1||e<1){throw Jq(new Gq,kx)}j=c+e;i=b+d;if(i>a.c||j>a.c){throw Jq(new Gq,lx)}for(g=c;g<j;++g){h=a.c*g;for(f=b;f<i;++f){k=f+h;a.b[k>>5]|=1<<(k&31)}}} function me(a){var b,c,d,e,f;f=a&&a.message?a.message.split(xw):[];for(b=0,c=0,e=f.length;c<e;++b,c+=2){d=f[c].lastIndexOf(yw);d==-1?(f[b]=zw,undefined):(f[b]=sr(f[c].substr(d+9,f[c].length-(d+9))),undefined)}f.length=b;return f} function Lp(a,b,c,d){var e,f,g,h,i,j;i=c.length;h=ug(Xi,65,-1,i,1);for(f=0;f<i;++f){j=Wo(a.b,c[f]);e=1;for(g=0;g<i;++g){f!=g&&(e=Yo(a.b,e,(So(),1^Yo(a.b,c[g],j))))}h[f]=Yo(a.b,cp(b,j),Wo(a.b,e));d&&(h[f]=Yo(a.b,h[f],j))}return h} function gp(a,b,c){var d,e,f;if(b<0){throw Iq(new Gq)}if(c==0){return a.c.e}f=a.b.length;e=ug(Xi,65,-1,f+b,1);for(d=0;d<f;++d){e[d]=Yo(a.c,a.b[d],c)}return ap(new $o,a.c,e)} function Ap(a){var b,c,d,e,f,g,h,i;f=a.length;b=Fm(new Dm,f);for(g=0;g<f;++g){for(h=0;h<f;++h){a!=null&&a[g][h]==1&&(i=g+b.c*h,b.b[i>>5]|=1<<(i&31),undefined)}}d=mo(new ko);e=oo(d,b);c=e.b;Qk(Tl(Hx));cl(Tl(Hx),Cl(new wl,Ix));cl(Tl(Hx),Cl(new wl,Jx+c+Kx))} function dg(a,b,c){var d,e,f,g,h,i,j;g=b.j();d=(h=Lg(os(a.b,g),4),!h?0:h.c);if(c){for(f=d-1;f>=0;--f){e=(i=Lg(os(a.b,g),4),Lg((wt(f,i.c),i.b[f]),21));b.i(e)}}else{for(f=0;f<d;++f){e=(j=Lg(os(a.b,g),4),Lg((wt(f,j.c),j.b[f]),21));b.i(e)}}} function To(a,b){var c,d;So();a.b=ug(Xi,65,-1,256,1);a.c=ug(Xi,65,-1,256,1);d=1;for(c=0;c<256;++c){a.b[c]=d;d<<=1;d>=256&&(d^=b)}for(c=0;c<255;++c){a.c[a.b[c]]=c}a.e=ap(new $o,a,vg(Xi,65,-1,[0]));a.d=ap(new $o,a,vg(Xi,65,-1,[1]));return a} function oo(a,b){var c,d,e,f,g,h,i,j,k,l,m,n,o;k=Mm(new Km,b);o=Pm(k);g=Om(k).c;d=Nm(k);f=en(d,o,g);n=0;for(h=0;h<f.length;++h){n+=f[h].c}l=ug(Vi,0,-1,n,1);m=0;for(i=0;i<f.length;++i){e=f[i];c=e.b;j=e.c;no(a,c,j);for(h=0;h<j;++h){l[m++]=c[h]}}return co(l,o)} function Sf(a,b){var c;if(b.b){b.b=false;b.c=null}c=b.c;b.c=a.f;try{++a.c;dg(a.e,b,a.d)}finally{--a.c;a.c==0&&Tf(a)}if(c==null){b.b=true;b.c=null}else{b.c=c}} function xt(a){var b,c,d,e,f;if((a==null?null:a)===this){return true}if(!(a!=null&&Ig(a.tI,30))){return false}f=Lg(a,30);if(this.w()!=f.w()){return false}d=this.p();e=f.p();while(d.b<d.c.w()){b=Ht(d);c=Ht(e);if(!(b==null?c==null:Uc(b,c))){return false}}return true} function Wp(a,b,c,d,e,f,g){var h,i,j,k,l;Vp();a.e=b;a.b=c;a.c=vg(cj,0,14,[d,e,f,g]);l=0;i=d.c;j=d.b;for(k=0;k<j.length;++k){h=j[k];l+=h.b*(h.c+i)}a.d=l;return a} function ep(a,b){var c,d,e,f,g,h,i,j;if(a.c!=b.c){throw Jq(new Gq,wx)}if(a.b[0]==0||b.b[0]==0){return a.c.e}d=a.b;e=d.length;f=b.b;g=f.length;j=ug(Xi,65,-1,e+g-1,1);for(h=0;h<e;++h){c=d[h];for(i=0;i<g;++i){j[h+i]=(So(),j[h+i]^Yo(a.c,c,f[i]))}}return ap(new $o,a.c,j)} function Ek(a){var b;if(a.c){throw Oq(new Lq,Zw)}a.c=true;a.f.__listener=a;b=a.d;a.d=-1;b>0&&(a.d==-1?Fj(a.f,b|(a.f.__eventBits||0)):(a.d|=b),undefined);a.l();a.n()} function Hd(a){var b,c,d,e,f,g;b=false;d=a.length;f=(new Date).getTime();while((new Date).getTime()-f<100){for(c=0;c<d;++c){g=a[c];if(!g){continue}if(!g[0].h()){a[c]=null;b=true}}}if(b){e=[];for(c=0;c<d;++c){if(!a[c]){continue}e[e.length]=a[c]}return e}else{return a}} function lj(){!!$stats&&$stats({moduleName:$moduleName,sessionId:$sessionId,subSystem:Aw,evtGroup:Bw,millis:(new Date).getTime(),type:Cw,className:Dw});$wnd.decode=Ap} function eo(a,b,c,d){var e,f,g;g=b.b.b.length;while(c>1){f=Um(a,11);Kr(b,$n[~~(f/45)]);Kr(b,$n[f%45]);c-=2}c==1&&Kr(b,$n[Um(a,6)]);if(d){for(e=g;e<b.b.b.length;++e){b.b.b.charCodeAt(e)==37&&(e<b.b.b.length-1&&b.b.b.charCodeAt(e+1)==37?xe(b.b,e+1,e+1+1,zw):xe(b.b,e,e+1,nx))}}} function $k(a,b){var c,d;if(b.e!=a){return false}try{Hk(b,null)}finally{c=b.f;(d=(Ae(),c).parentNode,(!d||d.nodeType!=1)&&(d=null),d).removeChild(c);pm(a.b,b)}return true} function Um(a,b){var c,d,e,f,g;if(b<1||b>32){throw Iq(new Gq)}f=0;if(a.b>0){c=8-a.b;g=b<c?b:c;d=c-g;e=255>>8-g<<d;f=(a.d[a.c]&e)>>d;b-=g;a.b+=g;if(a.b==8){a.b=0;++a.c}}if(b>0){while(b>=8){f=f<<8|a.d[a.c]&255;++a.c;b-=8}if(b>0){d=8-b;e=255>>d<<d;f=f<<b|(a.d[a.c]&e)>>d;a.b+=b}}return f} function ys(h,a,b){var c=h.b[b];if(c){for(var d=0,e=c.length;d<e;++d){var f=c[d];var g=f.z();if(h.y(a,g)){c.length==1?delete h.b[b]:c.splice(d,1);--h.e;return f.A()}}}return null} function bp(a,b){var c,d,e,f,g,h;if(a.c!=b.c){throw Jq(new Gq,wx)}if(a.b[0]==0){return b}if(b.b[0]==0){return a}f=a.b;d=b.b;if(f.length>d.length){h=f;f=d;d=h}g=ug(Xi,65,-1,d.length,1);e=d.length-f.length;Pr(d,0,g,0,e);for(c=e;c<d.length;++c){g[c]=(So(),f[c-e]^d[c])}return ap(new $o,a.c,g)} function jo(a){var b,c,d;b=Um(a,8);if((b&128)==0){return b&127}else if((b&192)==128){c=Um(a,8);return (b&63)<<8|c}else if((b&224)==192){d=Um(a,16);return (b&31)<<16|d}throw Jq(new Gq,rx+b)} function ho(a,b,c){var d,e,f;while(c>=3){e=Um(a,10);if(e>=1000){throw Dp(),Dp(),Cp}Kr(b,$n[~~(e/100)]);Kr(b,$n[~~(e/10)%10]);Kr(b,$n[e%10]);c-=3}if(c==2){f=Um(a,7);if(f>=100){throw Dp(),Dp(),Cp}Kr(b,$n[~~(f/10)]);Kr(b,$n[f%10])}else if(c==1){d=Um(a,4);if(d>=10){throw Dp(),Dp(),Cp}Kr(b,$n[d])}} function Xp(a){var b,c,d,e,f,g;c=17+4*a.e;b=Fm(new Dm,c);Im(b,0,0,9,9);Im(b,0,c-8,9,8);Im(b,c-8,0,8,9);e=a.b.length;for(f=0;f<e;++f){d=a.b[f]-2;for(g=0;g<e;++g){if(f==0&&(g==0||g==e-1)||f==e-1&&g==0){continue}Im(b,d,a.b[g]-2,5,5)}}Im(b,9,6,c-17,1);Im(b,6,9,1,c-17);if(a.e>6){Im(b,0,c-11,6,3);Im(b,c-11,0,3,6)}return b} --></script> <script><!-- function Pm(a){var b,c,d,e,f,g,h;if(a.d){return a.d}b=a.b.c;g=b-17>>2;if(g<=6){return $p(g)}h=0;for(c=5;c>=0;--c){f=b-11;for(e=b-9;e>=f;--e){h=Gm(a.b,c,e)?h<<1|1:h<<1}}a.d=Yp(h);if(a.d){return a.d}h=0;for(e=5;e>=0;--e){d=b-11;for(c=b-11;c>=d;--c){h=Gm(a.b,c,e)?h<<1|1:h<<1}}a.d=Yp(h);if(a.d){return a.d}throw Dp(),Dp(),Cp} function sp(){sp=rv;rp=tp(new ip,vg(Xi,65,-1,[0,0,0]),xx);pp=tp(new ip,vg(Xi,65,-1,[10,12,14]),yx);jp=tp(new ip,vg(Xi,65,-1,[9,11,13]),zx);qp=tp(new ip,vg(Xi,65,-1,[0,0,0]),Ax);kp=tp(new ip,vg(Xi,65,-1,[8,16,16]),Bx);lp=tp(new ip,null,Cx);op=tp(new ip,vg(Xi,65,-1,[8,10,12]),Dx);mp=tp(new ip,null,Ex);np=tp(new ip,null,Fx)} function vk(){var d=$wnd.onbeforeunload;var e=$wnd.onunload;$wnd.onbeforeunload=function(a){var b,c;try{b=$entry(Rj)()}finally{c=d&&d(a)}if(b!=null){return b}if(c!=null){return c}};$wnd.onunload=$entry(function(a){try{Ij&&vf(Oj())}finally{e&&e(a);$wnd.onresize=null;$wnd.onscroll=null;$wnd.onbeforeunload=null;$wnd.onunload=null}})} function Jp(a,b,c){var d,e,f,g,h,i,j,k,l,m,n,o,p;k=ap(new $o,a.b,b);p=ug(Xi,65,-1,c,1);d=a.b==(So(),Qo);i=true;for(h=0;h<c;++h){g=cp(k,a.b.b[d?h+1:h]);p[p.length-1-h]=g;g!=0&&(i=false)}if(i){return}o=ap(new $o,a.b,p);n=Mp(a,Uo(a.b,c,1),o,c);m=n[0];j=n[1];e=Kp(a,m);f=Lp(a,j,e,d);for(h=0;h<e.length;++h){l=b.length-1-Xo(a.b,e[h]);if(l<0){throw Qp(new Op,Lx)}b[l]=b[l]^f[h]}} function Nm(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p;h=Om(a);o=Pm(a);f=jn(h.b);g=a.b.c;f.t(a.b.b,g);i=Xp(o);l=true;m=ug(Vi,0,-1,o.d,1);n=0;e=0;b=0;for(k=g-1;k>0;k-=2){k==6&&--k;for(d=0;d<g;++d){j=l?g-1-d:d;for(c=0;c<2;++c){if(!(p=j+i.c*(k-c),(i.b[p>>5]>>>(p&31)&1)!=0)){++b;e<<=1;Gm(a.b,j,k-c)&&(e|=1);if(b==8){m[n++]=e<<24>>24;b=0;e=0}}}}l^=true}if(n!=o.d){throw Dp(),Dp(),Cp}return m} function Om(a){var b,c,d,e,f;if(a.c){return a.c}c=0;for(f=0;f<6;++f){c=Gm(a.b,8,f)?c<<1|1:c<<1}c=Gm(a.b,8,7)?c<<1|1:c<<1;c=Gm(a.b,8,8)?c<<1|1:c<<1;c=Gm(a.b,7,8)?c<<1|1:c<<1;for(d=5;d>=0;--d){c=Gm(a.b,d,8)?c<<1|1:c<<1}a.c=Jo(c);if(a.c){return a.c}b=a.b.c;c=0;e=b-8;for(d=b-1;d>=e;--d){c=Gm(a.b,d,8)?c<<1|1:c<<1}for(f=b-7;f<b;++f){c=Gm(a.b,8,f)?c<<1|1:c<<1}a.c=Jo(c);if(a.c){return a.c}throw Dp(),Dp(),Cp} function ek(a){switch(a){case Ew:return 4096;case Fw:return 1024;case Gw:return 1;case Hw:return 2;case Iw:return 2048;case Jw:return 128;case Kw:return 256;case Lw:return 512;case Mw:return 32768;case Nw:return 8192;case Ow:return 4;case Pw:return 64;case Qw:return 32;case Rw:return 16;case Sw:return 8;case Tw:return 16384;case Uw:return 65536;case Vw:return 131072;case Ww:return 131072;case Xw:return 262144;case Yw:return 524288;}} function fs(a){var b,c,d,e,f;if((a==null?null:a)===this){return true}if(!(a!=null&&Ig(a.tI,31))){return false}e=Lg(a,31);if(Lg(this,31).e!=e.e){return false}for(c=Ts(new Rs,Js(new Cs,e).b);Gt(c.b);){b=Lg(Ht(c.b),29);d=b.z();f=b.A();if(!(d==null?Lg(this,31).d:d!=null&&Ig(d.tI,1)?ss(Lg(this,31),Lg(d,1)):rs(Lg(this,31),d,~~Yc(d)))){return false}if(!ev(f,d==null?Lg(this,31).c:d!=null&&Ig(d.tI,1)?Lg(this,31).f[Qx+Lg(d,1)]:ps(Lg(this,31),d,~~Yc(d)))){return false}}return true} function co(b,c){ao();var a,e,f,g,h,i,j,k;e=Tm(new Rm,b);j=Jr(new Gr);h=false;f=hv(new fv,1);do{if(8*(e.d.length-e.c)-e.b<4){i=(sp(),rp)}else{try{i=vp(Um(e,4))}catch(a){a=oj(a);if(Og(a,24)){throw Dp(),Dp(),Cp}else throw a}}if(i!=(sp(),rp)){if(i==mp||i==np){h=true}else if(i==qp){Um(e,16)}else if(i==lp){k=jo(e);_m(k);throw Dp(),Dp(),Cp}else{g=Um(e,up(i,c));if(i==pp){ho(e,j,g)}else if(i==jp){eo(e,j,g,h)}else if(i==kp){fo(e,j,g,f)}else if(i==op){go(e,j,g)}else{throw Dp(),Dp(),Cp}}}}while(i!=(sp(),rp));return so(new qo,b,j.b.b)} function en(a,b,c){var d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t;if(a.length!=b.d){throw Iq(new Gq)}f=b.c[c.b];t=0;e=f.b;for(g=0;g<e.length;++g){t+=e[g].b}q=ug(Zi,0,9,t,0);o=0;for(i=0;i<e.length;++i){d=e[i];for(g=0;g<d.b;++g){n=d.c;l=f.c+n;q[o++]=cn(new an,n,ug(Vi,0,-1,l,1))}}s=q[0].b.length;j=q.length-1;while(j>=0){m=q[j].b.length;if(m==s){break}--j}++j;r=s-f.c;p=0;for(g=0;g<r;++g){for(i=0;i<o;++i){q[i].b[g]=a[p++]}}for(i=j;i<o;++i){q[i].b[r]=a[p++]}k=q[0].b.length;for(g=r;g<k;++g){for(i=0;i<o;++i){h=i<j?g:g+1;q[i].b[h]=a[p++]}}return q} function Mp(a,b,c,d){var e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w;if(b.b.length-1<c.b.length-1){w=b;b=c;c=w}l=b;k=c;o=a.b.d;n=a.b.e;u=a.b.e;t=a.b.d;while(k.b.length-1>=~~(d/2)){m=l;p=o;v=u;l=k;o=n;u=t;if(l.b[0]==0){throw Qp(new Op,Nx)}k=m;j=a.b.e;f=dp(l,l.b.length-1);g=Wo(a.b,f);while(k.b.length-1>=l.b.length-1&&k.b[0]!=0){e=k.b.length-1-(l.b.length-1);q=Yo(a.b,dp(k,k.b.length-1),g);j=bp(j,Uo(a.b,e,q));k=bp(k,gp(l,e,q))}n=bp(ep(j,o),p);t=bp(ep(j,u),v)}s=t.b[t.b.length-1];if(s==0){throw Qp(new Op,Ox)}h=Wo(a.b,s);r=fp(t,h);i=fp(k,h);return vg(aj,0,12,[r,i])} function Fj(a,b){gk();a.__eventBits=b;a.onclick=b&1?ok:null;a.ondblclick=b&2?ok:null;a.onmousedown=b&4?ok:null;a.onmouseup=b&8?ok:null;a.onmouseover=b&16?ok:null;a.onmouseout=b&32?ok:null;a.onmousemove=b&64?ok:null;a.onkeydown=b&128?ok:null;a.onkeypress=b&256?ok:null;a.onkeyup=b&512?ok:null;a.onchange=b&1024?ok:null;a.onfocus=b&2048?ok:null;a.onblur=b&4096?ok:null;a.onlosecapture=b&8192?ok:null;a.onscroll=b&16384?ok:null;a.onload=b&32768?ok:null;a.onerror=b&65536?ok:null;a.onmousewheel=b&131072?ok:null;a.oncontextmenu=b&262144?ok:null;a.onpaste=b&524288?ok:null} function Pr(a,b,c,d,e){var f,g,h,i,j,k,l,m,n;if(a==null||c==null){throw fr(new dr)}m=a.tM==rv||a.tI==2?a.gC():dh;i=c.tM==rv||c.tI==2?c.gC():dh;if((m.c&4)==0||(i.c&4)==0){throw rq(new oq,Rx)}l=m.b;g=i.b;if(l.c!=g.c||(l.c&1)!=0&&l!=g){throw rq(new oq,Sx)}n=a.length;j=c.length;if(b<0||d<0||e<0||b+e>n||d+e>j){throw Sq(new Qq)}if(((l.c&1)==0||(l.c&4)!=0)&&m!=i){k=Lg(a,28);f=Lg(c,28);if((a==null?null:a)===(c==null?null:c)&&b<d){b+=e;for(h=d+e;h-->d;){xg(f,h,k[--b])}}else{for(h=d+e;d<h;){xg(f,d++,k[b++])}}}else{Array.prototype.splice.apply(c,[d,e].concat(a.slice(b,b+e)))}} function io(a){var b,c,d,e,f,g,h,i,j,k;if(_n){return ox}if(a.length>3&&a[0]==-17&&a[1]==-69&&a[2]==-65){return px}f=a.length;b=true;c=true;i=false;g=0;j=false;e=false;for(d=0;d<f&&(b||c);++d){k=a[d]&255;if(k==194||k==195&&d<f-1){h=a[d+1]&255;h<=191&&(k==194&&h>=160||k==195&&h>=128)&&(j=true)}k>=127&&k<=159&&(b=false);k>=161&&k<=223&&!e&&++g;!e&&(k>=240&&k<=255||k==128||k==160)&&(c=false);if((k>=129&&k<=159||k>=224&&k<=239)&&d<f-1){i=true;if(e){e=false}else{e=true;h=a[d+1]&255;(h<64||h>252)&&(c=false)}}else{e=false}}if(c&&(i||20*g>f)){return ox}if(!j&&b){return qx}return px} function qk(){nk=$entry(function(a){if(mk(a)){var b=lk;if(b&&b.__listener){if(ik(b.__listener)){Cj(a,b,b.__listener);a.stopPropagation()}}}});mk=$entry(function(a){return true});ok=$entry(function(a){var b,c=this;while(c&&!(b=c.__listener)){c=c.parentNode}c&&c.nodeType!=1&&(c=null);b&&ik(b)&&Cj(a,c,b)});$wnd.addEventListener(Gw,nk,true);$wnd.addEventListener(Hw,nk,true);$wnd.addEventListener(Ow,nk,true);$wnd.addEventListener(Sw,nk,true);$wnd.addEventListener(Pw,nk,true);$wnd.addEventListener(Rw,nk,true);$wnd.addEventListener(Qw,nk,true);$wnd.addEventListener(Vw,nk,true);$wnd.addEventListener(Jw,mk,true);$wnd.addEventListener(Lw,mk,true);$wnd.addEventListener(Kw,mk,true)} function Ho(){Ho=rv;Go=vg(hj,0,20,[vg(Xi,65,-1,[21522,0]),vg(Xi,65,-1,[20773,1]),vg(Xi,65,-1,[24188,2]),vg(Xi,65,-1,[23371,3]),vg(Xi,65,-1,[17913,4]),vg(Xi,65,-1,[16590,5]),vg(Xi,65,-1,[20375,6]),vg(Xi,65,-1,[19104,7]),vg(Xi,65,-1,[30660,8]),vg(Xi,65,-1,[29427,9]),vg(Xi,65,-1,[32170,10]),vg(Xi,65,-1,[30877,11]),vg(Xi,65,-1,[26159,12]),vg(Xi,65,-1,[25368,13]),vg(Xi,65,-1,[27713,14]),vg(Xi,65,-1,[26998,15]),vg(Xi,65,-1,[5769,16]),vg(Xi,65,-1,[5054,17]),vg(Xi,65,-1,[7399,18]),vg(Xi,65,-1,[6608,19]),vg(Xi,65,-1,[1890,20]),vg(Xi,65,-1,[597,21]),vg(Xi,65,-1,[3340,22]),vg(Xi,65,-1,[2107,23]),vg(Xi,65,-1,[13663,24]),vg(Xi,65,-1,[12392,25]),vg(Xi,65,-1,[16177,26]),vg(Xi,65,-1,[14854,27]),vg(Xi,65,-1,[9396,28]),vg(Xi,65,-1,[8579,29]),vg(Xi,65,-1,[11994,30]),vg(Xi,65,-1,[11245,31])]);Fo=vg(Xi,65,-1,[0,1,1,2,1,2,2,3,1,2,2,3,2,3,3,4])} function Vp(){Vp=rv;Up=vg(Xi,65,-1,[31892,34236,39577,42195,48118,51042,55367,58893,63784,68472,70749,76311,79154,84390,87683,92361,96236,102084,102881,110507,110734,117786,119615,126325,127568,133589,136944,141498,145311,150283,152622,158308,161089,167017]);Tp=vg(dj,0,15,[Wp(new Sp,1,vg(Xi,65,-1,[]),fq(new dq,7,bq(new _p,1,19)),fq(new dq,10,bq(new _p,1,16)),fq(new dq,13,bq(new _p,1,13)),fq(new dq,17,bq(new _p,1,9))),Wp(new Sp,2,vg(Xi,65,-1,[6,18]),fq(new dq,10,bq(new _p,1,34)),fq(new dq,16,bq(new _p,1,28)),fq(new dq,22,bq(new _p,1,22)),fq(new dq,28,bq(new _p,1,16))),Wp(new Sp,3,vg(Xi,65,-1,[6,22]),fq(new dq,15,bq(new _p,1,55)),fq(new dq,26,bq(new _p,1,44)),fq(new dq,18,bq(new _p,2,17)),fq(new dq,22,bq(new _p,2,13))),Wp(new Sp,4,vg(Xi,65,-1,[6,26]),fq(new dq,20,bq(new _p,1,80)),fq(new dq,18,bq(new _p,2,32)),fq(new dq,26,bq(new _p,2,24)),fq(new dq,16,bq(new _p,4,9))),Wp(new Sp,5,vg(Xi,65,-1,[6,30]),fq(new dq,26,bq(new _p,1,108)),fq(new dq,24,bq(new _p,2,43)),gq(new dq,18,bq(new _p,2,15),bq(new _p,2,16)),gq(new dq,22,bq(new _p,2,11),bq(new _p,2,12))),Wp(new Sp,6,vg(Xi,65,-1,[6,34]),fq(new dq,18,bq(new _p,2,68)),fq(new dq,16,bq(new _p,4,27)),fq(new dq,24,bq(new _p,4,19)),fq(new dq,28,bq(new _p,4,15))),Wp(new Sp,7,vg(Xi,65,-1,[6,22,38]),fq(new dq,20,bq(new _p,2,78)),fq(new dq,18,bq(new _p,4,31)),gq(new dq,18,bq(new _p,2,14),bq(new _p,4,15)),gq(new dq,26,bq(new _p,4,13),bq(new _p,1,14))),Wp(new Sp,8,vg(Xi,65,-1,[6,24,42]),fq(new dq,24,bq(new _p,2,97)),gq(new dq,22,bq(new _p,2,38),bq(new _p,2,39)),gq(new dq,22,bq(new _p,4,18),bq(new _p,2,19)),gq(new dq,26,bq(new _p,4,14),bq(new _p,2,15))),Wp(new Sp,9,vg(Xi,65,-1,[6,26,46]),fq(new dq,30,bq(new _p,2,116)),gq(new dq,22,bq(new _p,3,36),bq(new _p,2,37)),gq(new dq,20,bq(new _p,4,16),bq(new _p,4,17)),gq(new dq,24,bq(new _p,4,12),bq(new _p,4,13))),Wp(new Sp,10,vg(Xi,65,-1,[6,28,50]),gq(new dq,18,bq(new _p,2,68),bq(new _p,2,69)),gq(new dq,26,bq(new _p,4,43),bq(new _p,1,44)),gq(new dq,24,bq(new _p,6,19),bq(new _p,2,20)),gq(new dq,28,bq(new _p,6,15),bq(new _p,2,16))),Wp(new Sp,11,vg(Xi,65,-1,[6,30,54]),fq(new dq,20,bq(new _p,4,81)),gq(new dq,30,bq(new _p,1,50),bq(new _p,4,51)),gq(new dq,28,bq(new _p,4,22),bq(new _p,4,23)),gq(new dq,24,bq(new _p,3,12),bq(new _p,8,13))),Wp(new Sp,12,vg(Xi,65,-1,[6,32,58]),gq(new dq,24,bq(new _p,2,92),bq(new _p,2,93)),gq(new dq,22,bq(new _p,6,36),bq(new _p,2,37)),gq(new dq,26,bq(new _p,4,20),bq(new _p,6,21)),gq(new dq,28,bq(new _p,7,14),bq(new _p,4,15))),Wp(new Sp,13,vg(Xi,65,-1,[6,34,62]),fq(new dq,26,bq(new _p,4,107)),gq(new dq,22,bq(new _p,8,37),bq(new _p,1,38)),gq(new dq,24,bq(new _p,8,20),bq(new _p,4,21)),gq(new dq,22,bq(new _p,12,11),bq(new _p,4,12))),Wp(new Sp,14,vg(Xi,65,-1,[6,26,46,66]),gq(new dq,30,bq(new _p,3,115),bq(new _p,1,116)),gq(new dq,24,bq(new _p,4,40),bq(new _p,5,41)),gq(new dq,20,bq(new _p,11,16),bq(new _p,5,17)),gq(new dq,24,bq(new _p,11,12),bq(new _p,5,13))),Wp(new Sp,15,vg(Xi,65,-1,[6,26,48,70]),gq(new dq,22,bq(new _p,5,87),bq(new _p,1,88)),gq(new dq,24,bq(new _p,5,41),bq(new _p,5,42)),gq(new dq,30,bq(new _p,5,24),bq(new _p,7,25)),gq(new dq,24,bq(new _p,11,12),bq(new _p,7,13))),Wp(new Sp,16,vg(Xi,65,-1,[6,26,50,74]),gq(new dq,24,bq(new _p,5,98),bq(new _p,1,99)),gq(new dq,28,bq(new _p,7,45),bq(new _p,3,46)),gq(new dq,24,bq(new _p,15,19),bq(new _p,2,20)),gq(new dq,30,bq(new _p,3,15),bq(new _p,13,16))),Wp(new Sp,17,vg(Xi,65,-1,[6,30,54,78]),gq(new dq,28,bq(new _p,1,107),bq(new _p,5,108)),gq(new dq,28,bq(new _p,10,46),bq(new _p,1,47)),gq(new dq,28,bq(new _p,1,22),bq(new _p,15,23)),gq(new dq,28,bq(new _p,2,14),bq(new _p,17,15))),Wp(new Sp,18,vg(Xi,65,-1,[6,30,56,82]),gq(new dq,30,bq(new _p,5,120),bq(new _p,1,121)),gq(new dq,26,bq(new _p,9,43),bq(new _p,4,44)),gq(new dq,28,bq(new _p,17,22),bq(new _p,1,23)),gq(new dq,28,bq(new _p,2,14),bq(new _p,19,15))),Wp(new Sp,19,vg(Xi,65,-1,[6,30,58,86]),gq(new dq,28,bq(new _p,3,113),bq(new _p,4,114)),gq(new dq,26,bq(new _p,3,44),bq(new _p,11,45)),gq(new dq,26,bq(new _p,17,21),bq(new _p,4,22)),gq(new dq,26,bq(new _p,9,13),bq(new _p,16,14))),Wp(new Sp,20,vg(Xi,65,-1,[6,34,62,90]),gq(new dq,28,bq(new _p,3,107),bq(new _p,5,108)),gq(new dq,26,bq(new _p,3,41),bq(new _p,13,42)),gq(new dq,30,bq(new _p,15,24),bq(new _p,5,25)),gq(new dq,28,bq(new _p,15,15),bq(new _p,10,16))),Wp(new Sp,21,vg(Xi,65,-1,[6,28,50,72,94]),gq(new dq,28,bq(new _p,4,116),bq(new _p,4,117)),fq(new dq,26,bq(new _p,17,42)),gq(new dq,28,bq(new _p,17,22),bq(new _p,6,23)),gq(new dq,30,bq(new _p,19,16),bq(new _p,6,17))),Wp(new Sp,22,vg(Xi,65,-1,[6,26,50,74,98]),gq(new dq,28,bq(new _p,2,111),bq(new _p,7,112)),fq(new dq,28,bq(new _p,17,46)),gq(new dq,30,bq(new _p,7,24),bq(new _p,16,25)),fq(new dq,24,bq(new _p,34,13))),Wp(new Sp,23,vg(Xi,65,-1,[6,30,54,74,102]),gq(new dq,30,bq(new _p,4,121),bq(new _p,5,122)),gq(new dq,28,bq(new _p,4,47),bq(new _p,14,48)),gq(new dq,30,bq(new _p,11,24),bq(new _p,14,25)),gq(new dq,30,bq(new _p,16,15),bq(new _p,14,16))),Wp(new Sp,24,vg(Xi,65,-1,[6,28,54,80,106]),gq(new dq,30,bq(new _p,6,117),bq(new _p,4,118)),gq(new dq,28,bq(new _p,6,45),bq(new _p,14,46)),gq(new dq,30,bq(new _p,11,24),bq(new _p,16,25)),gq(new dq,30,bq(new _p,30,16),bq(new _p,2,17))),Wp(new Sp,25,vg(Xi,65,-1,[6,32,58,84,110]),gq(new dq,26,bq(new _p,8,106),bq(new _p,4,107)),gq(new dq,28,bq(new _p,8,47),bq(new _p,13,48)),gq(new dq,30,bq(new _p,7,24),bq(new _p,22,25)),gq(new dq,30,bq(new _p,22,15),bq(new _p,13,16))),Wp(new Sp,26,vg(Xi,65,-1,[6,30,58,86,114]),gq(new dq,28,bq(new _p,10,114),bq(new _p,2,115)),gq(new dq,28,bq(new _p,19,46),bq(new _p,4,47)),gq(new dq,28,bq(new _p,28,22),bq(new _p,6,23)),gq(new dq,30,bq(new _p,33,16),bq(new _p,4,17))),Wp(new Sp,27,vg(Xi,65,-1,[6,34,62,90,118]),gq(new dq,30,bq(new _p,8,122),bq(new _p,4,123)),gq(new dq,28,bq(new _p,22,45),bq(new _p,3,46)),gq(new dq,30,bq(new _p,8,23),bq(new _p,26,24)),gq(new dq,30,bq(new _p,12,15),bq(new _p,28,16))),Wp(new Sp,28,vg(Xi,65,-1,[6,26,50,74,98,122]),gq(new dq,30,bq(new _p,3,117),bq(new _p,10,118)),gq(new dq,28,bq(new _p,3,45),bq(new _p,23,46)),gq(new dq,30,bq(new _p,4,24),bq(new _p,31,25)),gq(new dq,30,bq(new _p,11,15),bq(new _p,31,16))),Wp(new Sp,29,vg(Xi,65,-1,[6,30,54,78,102,126]),gq(new dq,30,bq(new _p,7,116),bq(new _p,7,117)),gq(new dq,28,bq(new _p,21,45),bq(new _p,7,46)),gq(new dq,30,bq(new _p,1,23),bq(new _p,37,24)),gq(new dq,30,bq(new _p,19,15),bq(new _p,26,16))),Wp(new Sp,30,vg(Xi,65,-1,[6,26,52,78,104,130]),gq(new dq,30,bq(new _p,5,115),bq(new _p,10,116)),gq(new dq,28,bq(new _p,19,47),bq(new _p,10,48)),gq(new dq,30,bq(new _p,15,24),bq(new _p,25,25)),gq(new dq,30,bq(new _p,23,15),bq(new _p,25,16))),Wp(new Sp,31,vg(Xi,65,-1,[6,30,56,82,108,134]),gq(new dq,30,bq(new _p,13,115),bq(new _p,3,116)),gq(new dq,28,bq(new _p,2,46),bq(new _p,29,47)),gq(new dq,30,bq(new _p,42,24),bq(new _p,1,25)),gq(new dq,30,bq(new _p,23,15),bq(new _p,28,16))),Wp(new Sp,32,vg(Xi,65,-1,[6,34,60,86,112,138]),fq(new dq,30,bq(new _p,17,115)),gq(new dq,28,bq(new _p,10,46),bq(new _p,23,47)),gq(new dq,30,bq(new _p,10,24),bq(new _p,35,25)),gq(new dq,30,bq(new _p,19,15),bq(new _p,35,16))),Wp(new Sp,33,vg(Xi,65,-1,[6,30,58,86,114,142]),gq(new dq,30,bq(new _p,17,115),bq(new _p,1,116)),gq(new dq,28,bq(new _p,14,46),bq(new _p,21,47)),gq(new dq,30,bq(new _p,29,24),bq(new _p,19,25)),gq(new dq,30,bq(new _p,11,15),bq(new _p,46,16))),Wp(new Sp,34,vg(Xi,65,-1,[6,34,62,90,118,146]),gq(new dq,30,bq(new _p,13,115),bq(new _p,6,116)),gq(new dq,28,bq(new _p,14,46),bq(new _p,23,47)),gq(new dq,30,bq(new _p,44,24),bq(new _p,7,25)),gq(new dq,30,bq(new _p,59,16),bq(new _p,1,17))),Wp(new Sp,35,vg(Xi,65,-1,[6,30,54,78,102,126,150]),gq(new dq,30,bq(new _p,12,121),bq(new _p,7,122)),gq(new dq,28,bq(new _p,12,47),bq(new _p,26,48)),gq(new dq,30,bq(new _p,39,24),bq(new _p,14,25)),gq(new dq,30,bq(new _p,22,15),bq(new _p,41,16))),Wp(new Sp,36,vg(Xi,65,-1,[6,24,50,76,102,128,154]),gq(new dq,30,bq(new _p,6,121),bq(new _p,14,122)),gq(new dq,28,bq(new _p,6,47),bq(new _p,34,48)),gq(new dq,30,bq(new _p,46,24),bq(new _p,10,25)),gq(new dq,30,bq(new _p,2,15),bq(new _p,64,16))),Wp(new Sp,37,vg(Xi,65,-1,[6,28,54,80,106,132,158]),gq(new dq,30,bq(new _p,17,122),bq(new _p,4,123)),gq(new dq,28,bq(new _p,29,46),bq(new _p,14,47)),gq(new dq,30,bq(new _p,49,24),bq(new _p,10,25)),gq(new dq,30,bq(new _p,24,15),bq(new _p,46,16))),Wp(new Sp,38,vg(Xi,65,-1,[6,32,58,84,110,136,162]),gq(new dq,30,bq(new _p,4,122),bq(new _p,18,123)),gq(new dq,28,bq(new _p,13,46),bq(new _p,32,47)),gq(new dq,30,bq(new _p,48,24),bq(new _p,14,25)),gq(new dq,30,bq(new _p,42,15),bq(new _p,32,16))),Wp(new Sp,39,vg(Xi,65,-1,[6,26,54,82,110,138,166]),gq(new dq,30,bq(new _p,20,117),bq(new _p,4,118)),gq(new dq,28,bq(new _p,40,47),bq(new _p,7,48)),gq(new dq,30,bq(new _p,43,24),bq(new _p,22,25)),gq(new dq,30,bq(new _p,10,15),bq(new _p,67,16))),Wp(new Sp,40,vg(Xi,65,-1,[6,30,58,86,114,142,170]),gq(new dq,30,bq(new _p,19,118),bq(new _p,6,119)),gq(new dq,28,bq(new _p,18,47),bq(new _p,31,48)),gq(new dq,30,bq(new _p,34,24),bq(new _p,34,25)),gq(new dq,30,bq(new _p,20,15),bq(new _p,61,16)))])} var zw='',xw='\n',nx='\x1D',Px=' ',Xx=', Size: ',Qx=':',Kx='<\/p>',Ix='<h2>Decoded string:<\/h2>',Jx="<p class='decoded'>",zx='ALPHANUMERIC',Tx='Add not supported on this collection',Vx='Add not supported on this list',Sx='Array types must match',Bx='BYTE',rx='Bad ECI bits starting with byte ',mx='Bad ECI value: ',Lx='Bad error location',ax='Cannot set a new parent without first clearing the old parent',Gx="Character count doesn't apply to this mode",Ww='DOMMouseScroll',iy='DataBlock;',jy='DataMask;',Cx='ECI',Mx='Error locator degree does not match number of roots',ky='ErrorCorrectionLevel;',Ex='FNC1_FIRST_POSITION',Fx='FNC1_SECOND_POSITION',my='GF256Poly;',wx='GF256Polys do not have same GF256 field',vx='H',qx='ISO8859_1',Wx='Index: ',Dx='KANJI',sx='L',tx='M',Rx='Must be array types',yx='NUMERIC',qy='Object;',ex='One or more exceptions caught, see full set in AttachDetachException#getCauses',ux='Q',ox='SJIS',Ax='STRUCTURED_APPEND',Zw="Should only call onAttach when the widget is detached from the browser's document",$w="Should only call onDetach when the widget is attached to the browser's document",_x='StackTraceElement;',xx='TERMINATOR',_w="This widget's parent does not implement HasWidgets",ay='Throwable;',px='UTF8',uw='Unknown',vw='Unknown source',py='Version$ECB;',ny='Version$ECBlocks;',oy='Version;',cy='Widget;',gy='[B',ey='[C',Zx='[I',by='[Lcom.google.gwt.user.client.ui.',hy='[Lcom.onurgunduz.qrdec.client.',$x='[Ljava.lang.',ly='[[I',ww='anonymous',Ew='blur',fy='byte',Fw='change',dy='char',gx='className',Gw='click',Dw='com.onurgunduz.qrdec.client.Qrdec',Xw='contextmenu',Hw='dblclick',ix='dimension must be at least 1',fx='div',Uw='error',Iw='focus',yw='function ',hx='gwt-HTML',kx='height and width must be at least 1',Ux='initial capacity was negative or load factor was non-positive',Yx='int',Jw='keydown',Kw='keypress',Lw='keyup',bx='left',Mw='load',Nw='losecapture',Bw='moduleStartup',Ow='mousedown',Pw='mousemove',Qw='mouseout',Rw='mouseover',Sw='mouseup',Vw='mousewheel',Cw='onModuleLoadStart',Yw='paste',dx='position',Nx='r_{i-1} was zero',Hx='resultView',Tw='scroll',Ox='sigmaTilde(0) was zero',Aw='startup',cx='top',lx='topI + height and leftJ + width must be <= matrix dimension',jx='topI and leftJ must be nonnegative';var _;_=lc.prototype={};_.eQ=pc;_.gC=qc;_.hC=rc;_.tM=rv;_.tI=1;_=Ac.prototype=new lc;_.gC=Dc;_.tI=3;_=zc.prototype=new Ac;_.gC=Gc;_.tI=4;_=yc.prototype=new zc;_.gC=Ic;_.tI=5;_=xc.prototype=new yc;_.gC=Lc;_.tI=6;_.b=null;_=id.prototype=new lc;_.gC=kd;_.tI=0;var nd=0,od=0;_=xd.prototype=new id;_.gC=Gd;_.tI=0;_.d=false;_.g=false;var yd;_=Kd.prototype=new lc;_.h=Nd;_.gC=Od;_.tI=0;_.b=null;_=Pd.prototype=new lc;_.h=Sd;_.gC=Td;_.tI=0;_.b=null;_=oe.prototype=new lc;_.gC=qe;_.tI=0;_=re.prototype=new oe;_.gC=ye;_.tI=0;_.b=zw;_=ze.prototype=new lc;_.gC=Ee;_.tI=0;_=Ge.prototype=new ze;_.gC=Ke;_.tI=0;_=Fe.prototype=new Ge;_.gC=Ne;_.tI=0;_=of.prototype=new lc;_.gC=rf;_.tI=0;_.b=false;_.c=null;_=nf.prototype=new of;_.i=uf;_.j=wf;_.gC=xf;_.tI=0;var sf=null;_=Bf.prototype=new lc;_.gC=Df;_.tI=0;_=Ff.prototype=new lc;_.gC=Jf;_.hC=Kf;_.tI=0;_.b=0;var Gf=0;_=Lf.prototype=new lc;_.gC=Uf;_.tI=0;_.b=null;_.c=0;_.d=false;_.e=null;_.f=null;_=Vf.prototype=new lc;_.gC=Yf;_.tI=7;_.b=null;_.c=null;_.d=null;_=$f.prototype=new lc;_.gC=gg;_.tI=0;_=kg.prototype=new lc;_.gC=tg;_.tI=0;_.aC=null;_.length=0;_.qI=0;var zg,Ag;var Gg=[{},{},{1:1,16:1},{16:1,18:1},{16:1,18:1},{2:1,16:1,18:1},{2:1,16:1,18:1},{3:1},{5:1},{7:1},{5:1,6:1,7:1,8:1},{5:1,6:1,7:1,8:1},{5:1,6:1,7:1,8:1},{5:1,6:1,7:1,8:1},{2:1,16:1,18:1},{5:1,6:1,7:1,8:1},{5:1,6:1,7:1,8:1},{5:1,6:1,7:1,8:1,23:1},{21:1},{5:1,6:1,7:1,8:1,23:1},{9:1},{10:1},{10:1},{10:1},{10:1},{10:1},{10:1},{10:1},{10:1},{10:1},{11:1},{26:1},{12:1},{16:1,18:1},{16:1,18:1,25:1},{15:1},{13:1},{14:1},{2:1,16:1,18:1},{2:1,16:1,18:1},{16:1,18:1},{16:1,18:1},{2:1,16:1,18:1},{16:1},{2:1,16:1,18:1,24:1},{2:1,16:1,18:1},{2:1,16:1,18:1},{16:1,27:1},{2:1,16:1,18:1},{16:1,17:1},{2:1,16:1,18:1},{32:1},{32:1},{29:1},{29:1},{29:1},{30:1},{32:1},{4:1,16:1,30:1},{16:1,31:1},{16:1,32:1},{29:1},{2:1,16:1,18:1},{16:1,30:1},{19:1},{20:1},{22:1}];var zj=null,Aj=null;var Ij=false,Jj=null;_=Sj.prototype=new of;_.i=Wj;_.j=Xj;_.gC=Yj;_.tI=0;var Tj;_=Zj.prototype=new Lf;_.gC=ak;_.tI=8;var ck=false;var lk=null,mk=null,nk=null,ok=null;_=Ak.prototype=new lc;_.gC=Ck;_.tI=9;_.f=null;_=zk.prototype=new Ak;_.l=Jk;_.m=Kk;_.gC=Lk;_.k=Mk;_.n=Nk;_.o=Ok;_.tI=10;_.c=false;_.d=0;_.e=null;_=yk.prototype=new zk;_.l=Rk;_.m=Sk;_.gC=Tk;_.n=Uk;_.o=Vk;_.tI=11;_=xk.prototype=new yk;_.gC=_k;_.p=al;_.tI=12;_=wk.prototype=new xk;_.gC=fl;_.tI=13;_=gl.prototype=new yc;_.gC=ll;_.tI=14;var hl,il;_=nl.prototype=new lc;_.q=pl;_.gC=ql;_.tI=0;_=rl.prototype=new lc;_.q=tl;_.gC=ul;_.tI=0;_=xl.prototype=new zk;_.gC=Al;_.tI=15;_=wl.prototype=new xl;_.gC=Dl;_.tI=16;_=Ll.prototype=new wk;_.gC=Vl;_.tI=17;var Ml,Nl,Ol;_=Wl.prototype=new lc;_.q=Yl;_.gC=Zl;_.tI=0;_=$l.prototype=new lc;_.gC=am;_.tI=18;_=bm.prototype=new Ll;_.gC=em;_.tI=19;_=hm.prototype=new lc;_.gC=qm;_.p=rm;_.tI=0;_.b=null;_.c=null;_.d=0;_=sm.prototype=new lc;_.gC=Am;_.r=Bm;_.s=Cm;_.tI=0;_.b=-1;_.c=null;_=Dm.prototype=new lc;_.gC=Jm;_.tI=0;_.b=null;_.c=0;_=Km.prototype=new lc;_.gC=Qm;_.tI=0;_.b=null;_.c=null;_.d=null;_=Rm.prototype=new lc;_.gC=Vm;_.tI=0;_.b=0;_.c=0;_.d=null;var Zm=null;_=an.prototype=new lc;_.gC=dn;_.tI=20;_.b=null;_.c=0;_=fn.prototype=new lc;_.gC=kn;_.tI=21;var gn;_=ln.prototype=new fn;_.gC=on;_.t=pn;_.tI=22;_=qn.prototype=new fn;_.gC=tn;_.t=un;_.tI=23;_=vn.prototype=new fn;_.gC=yn;_.t=zn;_.tI=24;_=An.prototype=new fn;_.gC=Dn;_.t=En;_.tI=25;_=Fn.prototype=new fn;_.gC=In;_.t=Jn;_.tI=26;_=Kn.prototype=new fn;_.gC=Nn;_.t=On;_.tI=27;_=Pn.prototype=new fn;_.gC=Sn;_.t=Tn;_.tI=28;_=Un.prototype=new fn;_.gC=Xn;_.t=Yn;_.tI=29;var $n,_n=false;_=ko.prototype=new lc;_.gC=po;_.tI=0;_.b=null;_=qo.prototype=new lc;_.gC=to;_.tI=0;_.b=null;_=uo.prototype=new lc;_.gC=Do;_.tI=30;_.b=0;var vo,wo,xo,yo,zo;_=Eo.prototype=new lc;_.eQ=Lo;_.gC=Mo;_.hC=No;_.tI=31;_.b=0;_.c=null;var Fo,Go;_=Po.prototype=new lc;_.gC=Zo;_.tI=0;_.b=null;_.c=null;_.d=null;_.e=null;var Qo,Ro;_=$o.prototype=new lc;_.gC=hp;_.tI=32;_.b=null;_.c=null;_=ip.prototype=new lc;_.gC=wp;_.tI=0;_.b=null;var jp,kp,lp,mp,np,op,pp,qp,rp;_=Bp.prototype=new zc;_.gC=Fp;_.tI=33;var Cp;_=Gp.prototype=new lc;_.gC=Np;_.tI=0;_.b=null;_=Op.prototype=new zc;_.gC=Rp;_.tI=34;_=Sp.prototype=new lc;_.gC=Zp;_.tI=35;_.b=null;_.c=null;_.d=0;_.e=0;var Tp,Up;_=_p.prototype=new lc;_.gC=cq;_.tI=36;_.b=0;_.c=0;_=dq.prototype=new lc;_.gC=hq;_.tI=37;_.b=null;_.c=0;_=kq.prototype=new yc;_.gC=nq;_.tI=38;_=oq.prototype=new yc;_.gC=sq;_.tI=39;_=uq.prototype=new lc;_.gC=zq;_.tI=0;_.b=null;_.c=0;_=Aq.prototype=new yc;_.gC=Dq;_.tI=42;_=Gq.prototype=new yc;_.gC=Kq;_.tI=44;_=Lq.prototype=new yc;_.gC=Pq;_.tI=45;_=Qq.prototype=new yc;_.gC=Uq;_.tI=46;_=Wq.prototype=new lc;_.gC=Yq;_.tI=43;_=Vq.prototype=new Wq;_.eQ=_q;_.gC=ar;_.hC=br;_.tI=47;_.b=0;_=dr.prototype=new yc;_.gC=gr;_.tI=48;_=hr.prototype=new lc;_.gC=kr;_.tI=49;_=String.prototype;_.eQ=ur;_.gC=vr;_.hC=wr;_.tI=2;var zr,Ar=0,Br;_=Gr.prototype=new lc;_.gC=Mr;_.tI=0;_=Sr.prototype=new yc;_.gC=Vr;_.tI=50;_=Wr.prototype=new lc;_.u=Zr;_.v=$r;_.gC=_r;_.x=as;_.tI=0;_=cs.prototype=new lc;_.eQ=fs;_.gC=gs;_.hC=hs;_.tI=0;_=bs.prototype=new cs;_.y=As;_.gC=Bs;_.tI=0;_.b=null;_.c=null;_.d=false;_.e=0;_.f=null;_=Ds.prototype=new Wr;_.eQ=Fs;_.gC=Gs;_.hC=Hs;_.tI=51;_=Cs.prototype=new Ds;_.v=Ns;_.gC=Os;_.p=Ps;_.w=Qs;_.tI=52;_.b=null;_=Rs.prototype=new lc;_.gC=Ws;_.r=Xs;_.s=Ys;_.tI=0;_.b=null;_.c=null;_=$s.prototype=new lc;_.eQ=at;_.gC=bt;_.hC=ct;_.tI=53;_=Zs.prototype=new $s;_.gC=ft;_.z=gt;_.A=ht;_.B=it;_.tI=54;_.b=null;_=jt.prototype=new $s;_.gC=mt;_.z=nt;_.A=ot;_.B=qt;_.tI=55;_.b=null;_.c=null;_=rt.prototype=new Wr;_.u=ut;_.C=vt;_.eQ=xt;_.gC=yt;_.hC=zt;_.p=Bt;_.tI=56;_=Ct.prototype=new lc;_.gC=It;_.r=Jt;_.s=Kt;_.tI=0;_.b=0;_.c=null;_=Lt.prototype=new Ds;_.v=Pt;_.gC=Qt;_.p=Rt;_.w=St;_.tI=57;_.b=null;_.c=null;_=Tt.prototype=new lc;_.gC=Wt;_.r=Xt;_.s=Yt;_.tI=0;_.b=null;_=Zt.prototype=new rt;_.u=ju;_.C=ku;_.v=lu;_.D=mu;_.gC=nu;_.w=pu;_.x=ru;_.tI=58;_.c=0;_=tu.prototype=new bs;_.gC=yu;_.tI=59;_=zu.prototype=new Ds;_.u=Gu;_.v=Hu;_.gC=Iu;_.p=Ju;_.w=Ku;_.tI=60;_.b=null;_=Pu.prototype=new $s;_.gC=Tu;_.z=Uu;_.A=Vu;_.B=Xu;_.tI=61;_.b=null;_.c=null;_=Yu.prototype=new yc;_.gC=_u;_.tI=62;_=fv.prototype=new rt;_.u=jv;_.C=kv;_.v=lv;_.D=mv;_.gC=nv;_.p=ov;_.w=pv;_.x=qv;_.tI=63;_.b=null;var $entry=rd;var vi=new uq,bh=yq(zw,Yx),Xi=wq(zw,Zx,bh),Ai=new uq,oi=new uq,wi=new uq,eh=new uq,hh=new uq,fh=new uq,gh=new uq,xi=new uq,fj=wq($x,_x,xi),jh=new uq,ih=new uq,ch=new uq,dh=new uq,mh=new uq,lh=new uq,kh=new uq,zi=new uq,qh=new uq,ph=new uq,nh=new uq,oh=new uq,th=new uq,sh=new uq,rh=new uq,Ih=new uq,Lh=new uq,Dh=new uq,Ah=new uq,wh=new uq,gj=wq($x,ay,Ai),zh=new uq,xh=new uq,yh=new uq,Yi=wq(by,cy,Lh),Ch=new uq,Bh=new uq,Ci=new uq,Ji=new uq,Pi=new uq,ah=yq(zw,dy),Wi=wq(zw,ey,ah),Hh=new uq,Gh=new uq,Eh=new uq,Fh=new uq,Kh=new uq,Jh=new uq,uh=new uq,vh=new uq,Nh=new uq,_g=yq(zw,fy),Vi=wq(zw,gy,_g),Mh=new uq,Oh=new uq,Ph=new uq,Zi=wq(hy,iy,Ph),Yh=new uq,$i=wq(hy,jy,Yh),Qh=new uq,Rh=new uq,Sh=new uq,Th=new uq,Uh=new uq,Vh=new uq,Wh=new uq,Xh=new uq,$h=new uq,Zh=new uq,_h=new uq,_i=wq(hy,ky,_h),hj=wq(zw,ly,Xi),ai=new uq,ci=new uq,bi=new uq,aj=wq(hy,my,bi),di=new uq,ei=new uq,fi=new uq,gi=new uq,ii=new uq,cj=wq(hy,ny,ii),ji=new uq,dj=wq(hy,oy,ji),hi=new uq,bj=wq(hy,py,hi),ki=new uq,ri=new uq,li=new uq,ui=new uq,ni=new uq,mi=new uq,pi=new uq,qi=new uq,si=new uq,ti=new uq,yi=new uq,Bi=new uq,ej=wq($x,qy,vi),Ni=new uq,Hi=new uq,Oi=new uq,Ei=new uq,Di=new uq,Mi=new uq,Fi=new uq,Gi=new uq,Ii=new uq,Li=new uq,Ki=new uq,Qi=new uq,Ri=new uq,Si=new uq,Ti=new uq,Ui=new uq;$stats && $stats({moduleName:'qrdec',sessionId:$sessionId,subSystem:'startup',evtGroup:'moduleStartup',millis:(new Date()).getTime(),type:'moduleEvalEnd'});if ($wnd.qrdec) $wnd.qrdec.onScriptLoad(); --></script></body></html>
123912029-ssiagu
qrdec/war/qrdec/CABA6B752897F6B9462DB5F401B63F34.cache.html
HTML
gpl2
57,216
<html><head><script>var $gwt_version = "2.0.0";var $wnd = parent;var $doc = $wnd.document;var $moduleName, $moduleBase;var $strongName = 'BFE66ED6DA53CDDED51A73E0E0F5A796';var $stats = $wnd.__gwtStatsEvent ? function(a) {return $wnd.__gwtStatsEvent(a);} : null,$sessionId = $wnd.__gwtStatsSessionId ? $wnd.__gwtStatsSessionId : null;$stats && $stats({moduleName:'qrdec',sessionId:$sessionId,subSystem:'startup',evtGroup:'moduleStartup',millis:(new Date()).getTime(),type:'moduleEvalStart'});</script></head><body><script><!-- function Mv(){} function oc(){} function Dc(){} function Cc(){} function Bc(){} function Ac(){} function ld(){} function Ad(){} function Nd(){} function Sd(){} function ee(){} function oe(){} function ne(){} function Ge(){} function Je(){} function Re(){} function Ye(){} function Xe(){} function Gf(){} function Ff(){} function Tf(){} function Xf(){} function bg(){} function lg(){} function qg(){} function Cg(){} function lk(){} function sk(){} function Tk(){} function al(){} function bl(){} function el(){} function fl(){} function Sk(){} function ll(){} function ml(){} function Rk(){} function Qk(){} function Pk(){} function zl(){} function Gl(){} function Kl(){} function Ql(){} function Pl(){} function cm(){} function nm(){} function rm(){} function um(){} function Am(){} function Lm(){} function Wm(){} function bn(){} function jn(){} function un(){} function zn(){} function En(){} function Jn(){} function On(){} function Tn(){} function Yn(){} function bo(){} function ho(){} function mo(){} function Do(){} function Jo(){} function No(){} function Xo(){} function gp(){} function rp(){} function Bp(){} function Up(){} function Zp(){} function fq(){} function jq(){} function sq(){} function wq(){} function Dq(){} function Hq(){} function Nq(){} function Tq(){} function Zq(){} function cr(){} function hr(){} function nr(){} function mr(){} function wr(){} function Ar(){} function _r(){} function ls(){} function ps(){} function xs(){} function ws(){} function Ys(){} function Xs(){} function kt(){} function tt(){} function st(){} function Et(){} function Mt(){} function Xt(){} function eu(){} function mu(){} function su(){} function Ou(){} function Uu(){} function iv(){} function rv(){} function Av(){} function Mf(a){jm()} function Il(a){Xk(a)} function Ml(a){Yk(a)} function we(){return 2} function Fe(){return 3} function tc(){return Qi} function Gc(){return Vi} function Jc(){return Ji} function Lc(){return Ri} function Oc(){return uh} function nd(){return wh} function Jd(){return zh} function Rd(){return xh} function Wd(){return yh} function le(){return Ch} function ue(){return Bh} function De(){return Ah} function Ie(){return Eh} function Qe(){return Dh} function We(){return Hh} function _e(){return Gh} function df(){return Fh} function Jf(){return Lh} function Of(){return Kf} function Pf(){return Ih} function Vf(){return Jh} function _f(){return Kh} function kg(){return Oh} function og(){return Mh} function yg(){return Nh} function qk(){return mk} function rk(){return Ph} function vk(){return Qh} function Vk(){return bi} function cl(){return ei} function kl(){return Yh} function sl(){return Vh} function yl(){return Rh} function El(){return Uh} function Jl(){return Sh} function Nl(){return Th} function Tl(){return Xh} function Wl(){return Wh} function mm(){return ai} function qm(){return Zh} function tm(){return $h} function xm(){return _h} function Jm(){return di} function Tm(){return ci} function an(){return gi} function hn(){return fi} function nn(){return hi} function xn(){return ii} function Dn(){return ri} function Hn(){return ji} function Mn(){return ki} function Rn(){return li} function Wn(){return mi} function _n(){return ni} function fo(){return oi} function ko(){return pi} function po(){return qi} function Io(){return ti} function Mo(){return si} function Wo(){return ui} function dp(){return vi} function qp(){return xi} function Ap(){return wi} function Pp(){return yi} function Yp(){return zi} function eq(){return Ai} function iq(){return Bi} function qq(){return Ei} function vq(){return Ci} function Aq(){return Di} function Gq(){return Fi} function Lq(){return Gi} function Sq(){return Ii} function Wq(){return Hi} function br(){return Ki} function gr(){return Li} function lr(){return Mi} function pr(){return Pi} function tr(){return Ni} function zr(){return Oi} function Dr(){return Si} function Qr(){return Ui} function fs(){return Ti} function os(){return Wi} function us(){return Xi} function Bs(){return gj} function Ws(){return aj} function _s(){return hj} function ht(){return Zi} function pt(){return Yi} function wt(){return fj} function At(){return $i} function Ht(){return _i} function Tt(){return cj} function bu(){return bj} function ju(){return ej} function pu(){return dj} function Iu(){return ij} function Tu(){return jj} function bv(){return kj} function mv(){return lj} function uv(){return mj} function Iv(){return nj} function me(a){return []} function Ze(){Ze=Mv;Se()} function af(){af=Mv;Ze()} function vm(){vm=Mv;gm()} function Fn(){Fn=Mv;Bn()} function Kn(){Kn=Mv;Bn()} function Pn(){Pn=Mv;Bn()} function Un(){Un=Mv;Bn()} function Zn(){Zn=Mv;Bn()} function co(){co=Mv;Bn()} function io(){io=Mv;Bn()} function no(){no=Mv;Bn()} function pm(a){a.c&&Yk(a)} function Bt(){return null} function Id(a){return a.h()} function ke(a){return ce(a)} function ag(){return this.b} function ur(){return this.b} function It(){return this.b} function Ku(){return this.c} function nv(){return this.b} function ov(){return this.c} function Lg(){return this.aC} function vl(a,b){pl(a,b,a.f)} function Dm(a,b){Fm(a,b,a.d)} function Fq(a){he();return a} function Jq(a){he();return a} function Vq(a){he();return a} function _q(a){he();return a} function er(a){he();return a} function jr(a){he();return a} function yr(a){he();return a} function tv(a){he();return a} function Be(){return ye(this)} function Vm(){return Qm(this)} function Rr(){return Zr(this)} function jt(){return this.b.e} function Ct(){return this.b.c} function du(){return au(this)} function dv(){return this.b.e} function Kv(){return this.b.c} function $j(a,b){Bk();Lk(a,b)} function pk(a){ph(a);null.I()} function Fu(a,b){yu(this,a,b)} function Qu(a){Hs(a);return a} function Ic(a,b){he();return a} function hq(a,b){he();return a} function Kq(a,b){he();return a} function ar(a,b){he();return a} function fr(a,b){he();return a} function kr(a,b){he();return a} function ns(a,b){he();return a} function Pd(a,b){a.b=b;return a} function Ud(a,b){a.b=b;return a} function Sl(a,b){a.f=b;return a} function Om(a,b){a.c=b;return a} function ln(a,b){a.d=b;return a} function _p(a,b){a.b=b;return a} function rr(a,b){a.b=b;return a} function ct(a,b){a.b=b;return a} function qt(){return _t(this.b)} function lu(){return this.c.b.e} function Se(){Se=Mv;af();new Xe} function Xr(){Xr=Mv;Ur={};Wr={}} function Cr(a,b,c,d,e){return a} function zt(a,b){a.b=b;return a} function $t(a,b){a.c=b;return a} function ou(a,b){a.b=b;return a} function Fv(a,b){yu(this.b,a,b)} function ve(a){return se(this,a)} function Ee(a){return ze(this,a)} function $f(a){a.b=++Yf;return a} function gt(a){return dt(this,a)} function Mu(a){return Du(this,a)} function _t(a){return a.b<a.c.A()} function qu(){return _t(this.b.b)} function il(){Fl(this,(Cl(),Al))} function jl(){Fl(this,(Cl(),Bl))} function Cd(){Cd=Mv;Bd=Ed(new Ad)} function nk(){nk=Mv;mk=$f(new Xf)} function cs(a){a.b=new Je;return a} function es(a,b){a.b.b+=b;return a} function Dt(a){return Qs(this.b,a)} function ss(a){throw ns(new ls,py)} function iu(a){return Is(this.b,a)} function av(a){return Is(this.b,a)} function Ev(a){return xu(this.b,a)} function Hv(a){return Au(this.b,a)} function Lv(a){return Du(this.b,a)} function _g(a,b){return a&&Yg[a][b]} function Ns(b,a){return Vw+a in b.f} function fk(a,b){return fg(hk(),a,b)} function Ru(a,b){Es(a,b,0);return a} function Km(){return Om(new Lm,this)} function Wt(){return $t(new Xt,this)} function tl(){return Om(new Lm,this.b)} function $g(a,b){return a&&!!Yg[a][b]} function Qt(a,b){throw ns(new ls,ry)} function Rt(a,b){(a<0||a>=b)&&Vt(a,b)} function Kt(a,b){return Gt(new Et,b,a)} function Um(){return this.b<this.c.d-1} function it(){return mt(new kt,this.b)} function rt(){return bh(au(this.b),29)} function cu(){return this.b<this.c.A()} function Gu(a){return Bu(this,a,0)!=-1} function Jv(){return $t(new Xt,this.b)} function ep(){return this.c.b<<3|this.b} function Mp(a,b,c){Lp();a.b=b;return a} function tg(a){a.b=Qu(new Ou);return a} function Wu(a){a.b=Qu(new Ou);return a} function ik(){if(!bk){Ok();bk=true}} function Bk(){if(!xk){Kk();xk=true}} function Wp(){Wp=Mv;Vp=(Wp(),new Up)} function Cl(){Cl=Mv;Al=new Gl;Bl=new Kl} function Uo(a,b,c){To();a.b=b;return a} function wn(a,b,c){a.c=b;a.b=c;return a} function uq(a,b,c){a.b=b;a.c=c;return a} function Gt(a,b,c){a.c=c;a.b=b;return a} function gu(a,b,c){a.b=b;a.c=c;return a} function kv(a,b,c){a.b=b;a.c=c;return a} function Au(a,b){Rt(b,a.c);return a.b[b]} function Gv(a){return Bu(this.b,a,0)!=-1} function Jt(){return this.c.f[Vw+this.b]} function Lt(a){return Rs(this.c,this.b,a)} function uc(){return this.$H||(this.$H=++rd)} function wp(a,b){return a.b[a.b.length-1-b]} function eh(a,b){return a!=null&&$g(a.tI,b)} function Cv(a,b){a.b=wu(new su,b);return a} function vu(a){a.b=Mg(zj,0,0,0,0);return a} function sc(a){return this===(a==null?null:a)} function Hu(a){return Rt(a,this.c),this.b[a]} function Pt(a){this.G(this.A(),a);return true} function Vt(a,b){throw kr(new hr,sy+a+ty+b)} function xu(a,b){Pg(a.b,a.c++,b);return true} function Jr(b,a){return b.substr(a,b.length-a)} function te(){return de(this.k(ie()),this.l())} function Hd(a){return a.b.length>0||a.f.length>0} function wm(a){vm();hm(a,$doc.body);return a} function Fd(a){var b;b=a.c;a.c=[];Ld(b,a.c)} function Nf(a){var b;if(Kf){b=new Ff;ig(a,b)}} function qv(a){var b;b=this.c;this.c=a;return b} function ts(a){var b;b=rs(this.t(),a);return !!b} function hk(){!ck&&(ck=uk(new sk));return ck} function ie(){try{null.a()}catch(a){return a}} function fh(a){return a!=null&&a.tM!=Mv&&a.tI!=2} function Eu(a){return Pg(this.b,this.c++,a),true} function Rq(a,b){var c;c=new Nq;c.c=1;return c} function ng(a,b,c,d){a.b=b;a.d=c;a.c=d;return a} function Cm(a,b){a.c=b;a.b=Mg(rj,0,8,4,0);return a} function Nc(a,b){he();a.b=b;ge(new ne,a);return a} function gg(a,b){!a.b&&(a.b=vu(new su));xu(a.b,b)} function Xu(a,b){var c;c=Os(a.b,b,a);return c==null} function wl(a,b){var c;c=rl(a,b);c&&xl(b.f);return c} function Fo(a){a.b=_p(new Zp,(jp(),ip));return a} function ek(a){ik();return fk(Kf?Kf:(Kf=$f(new Xf)),a)} function ph(a){if(a!=null){throw Vq(new Tq)}return a} function $r(){if(Vr==256){Ur=Wr;Wr={};Vr=0}++Vr} function im(a){gm();try{Yk(a)}finally{Ss(fm.b,a)!=null}} function Hs(a){a.b=[];a.f={};a.d=false;a.c=null;a.e=0} function Gd(a){var b;b=a.b;a.b=[];Ld(b,a.f);a.f=Kd(a.f)} function Pq(a,b,c){var d;d=new Nq;d.c=4;d.b=c;return d} function _u(a){var b;return b=Os(this.b,a,this),b==null} function ru(){var a;a=bh(au(this.b.b),29);return a.D()} function Vd(){this.b.d&&Md(this.b.e,1);return this.b.g} function de(a,b){a.length>=b&&a.splice(0,b);return a} function ds(a,b){a.b.b+=String.fromCharCode(b);return a} function Pe(a,b,c,d){a.b=a.b.substr(0,b-0)+d+Jr(a.b,c)} function zq(a,b,c,d){a.c=b;a.b=Ng(wj,0,13,[c,d]);return a} function yq(a,b,c){a.c=b;a.b=Ng(wj,0,13,[c]);return a} function wu(a,b){a.b=Mg(zj,0,0,0,0);a.b.length=b;return a} function uk(a){a.e=tg(new qg);a.f=null;a.d=false;return a} function op(a,b){if(b==0){throw _q(new Zq)}return a.c[b]} function hm(a,b){gm();a.b=Cm(new Am,a);a.f=b;Xk(a);return a} function zs(a){var b;b=ct(new Xs,a);return gu(new eu,a,b)} function ku(){var a;return a=mt(new kt,this.c.b),ou(new mu,a)} function jp(){jp=Mv;ip=kp(new gp,285);hp=kp(new gp,301)} function Tg(){Tg=Mv;Rg=[];Sg=[];Ug(new Cg,Rg,Sg)} function jm(){gm();try{Fl(fm,dm)}finally{Hs(fm.b);Hs(em)}} function gm(){gm=Mv;dm=new nm;em=Qu(new Ou);fm=Wu(new Uu)} function np(a,b){if(b==0){throw Fq(new Dq)}return a.b[255-a.c[b]]} function Cn(a){Bn();if(a<0||a>7){throw _q(new Zq)}return An[a]} function rq(a){mq();if(a<1||a>40){throw _q(new Zq)}return kq[a-1]} function Qm(a){if(a.b>=a.c.d){throw tv(new rv)}return a.c.b[++a.b]} function ud(a){return function(){return vd(a,this,arguments)}} function sr(a){return a!=null&&$g(a.tI,27)&&bh(a,27).b==this.b} function Ss(a,b){return !b?Us(a):Ts(a,b,~~(b.$H||(b.$H=++rd)))} function _c(a){return a.tM==Mv||a.tI==2?a.hC():a.$H||(a.$H=++rd)} function xl(a){a.style[Ax]=Pw;a.style[Bx]=Pw;a.style[Cx]=Pw} function _o(a,b){$o();a.c=Vo(b>>3&3);a.b=(b&7)<<24>>24;return a} function Zm(a,b,c){var d;d=b+a.c*c;return (a.b[d>>5]>>>(d&31)&1)!=0} function Qs(a,b){var c;c=a.c;a.c=b;if(!a.d){a.d=true;++a.e}return c} function Im(a,b){var c;c=Em(a,b);if(c==-1){throw tv(new rv)}Hm(a,c)} function pl(a,b,c){Zk(b);Dm(a.b,b);c.appendChild(b.f);$k(b,a)} function yu(a,b,c){(b<0||b>a.c)&&Vt(b,a.c);a.b.splice(b,0,c);++a.c} function Jg(a,b){var c,d;c=a;d=Kg(0,b);Ng(c.aC,c.tI,c.qI,d);return d} function Jj(a){if(a!=null&&$g(a.tI,18)){return a}return Nc(new Ac,a)} function bh(a,b){if(a!=null&&!_g(a.tI,b)){throw Vq(new Tq)}return a} function Es(a,b,c){Hs(a);if(b<0||c<0){throw ar(new Zq,qy)}return a} function Ng(a,b,c,d){Tg();Wg(d,Rg,Sg);d.aC=a;d.tI=b;d.qI=c;return d} function Wg(a,b,c){Tg();for(var d=0,e=b.length;d<e;++d){a[b[d]]=c[d]}} function In(a,b){var c,d;d=a.length;for(c=0;c<d;++c){a[c]^=1431655765}} function Bu(a,b,c){for(;c<a.c;++c){if(zv(b,a.b[c])){return c}}return -1} function ap(a){$o();var b;b=bp(a);if(b){return b}return bp(a^21522)} function au(a){if(a.b>=a.c.A()){throw tv(new rv)}return a.c.H(a.b++)} function ch(a){if(a!=null&&(a.tM==Mv||a.tI==2)){throw Vq(new Tq)}return a} function Dk(a){return !(a!=null&&a.tM!=Mv&&a.tI!=2)&&a!=null&&$g(a.tI,6)} function Us(a){var b;b=a.c;a.c=null;if(a.d){a.d=false;--a.e}return b} function hl(a){var b;b=Om(new Lm,a.b);while(b.b<b.c.d-1){Qm(b);Sm(b)}} function cv(){var a;return a=mt(new kt,zs(this.b).c.b),ou(new mu,a)} function Vs(a,b){return (a==null?null:a)===(b==null?null:b)||a!=null&&Xc(a,b)} function Su(a,b){return (a==null?null:a)===(b==null?null:b)||a!=null&&Xc(a,b)} function zv(a,b){return (a==null?null:a)===(b==null?null:b)||a!=null&&Xc(a,b)} function Lo(a,b,c){if(b==null&&c==null){throw _q(new Zq)}a.b=c;return a} function Vo(a){To();if(a<0||a>=Oo.length){throw _q(new Zq)}return Oo[a]} function Sm(a){if(a.b<0||a.b>=a.c.d){throw er(new cr)}wl(a.c.c,a.c.b[a.b--])} function Em(a,b){var c;for(c=0;c<a.d;++c){if(a.b[c]==b){return c}}return -1} function dn(a,b){var c;c=b.c;if(c<21||(c&3)!=1){throw Wp(),Wp(),Vp}a.b=b;return a} function Rs(e,a,b){var c,d=e.f;a=Vw+a;a in d?(c=d[a]):++e.e;d[a]=b;return c} function Ug(a,b,c){var d=0,e;for(var f in a){if(e=a[f]){b[d]=f;c[d]=e;++d}}} function Mg(a,b,c,d,e){var f;f=Kg(e,d);Tg();Wg(f,Rg,Sg);f.aC=a;f.tI=b;f.qI=c;return f} function fg(a,b,c){a.c>0?gg(a,ng(new lg,a,b,c)):ug(a.e,b,c);return new Tf} function Ed(a){Cd();a.e=Pd(new Nd,a);Ud(new Sd,a);a.b=[];a.f=[];a.c=[];return a} function Qd(){this.b.d=true;Gd(this.b);this.b.d=false;return this.b.g=Hd(this.b)} function Nr(a){if(!(a!=null&&$g(a.tI,1))){return false}return String(this)==a} function Vl(a,b){Sl(a,(Se(),$doc).createElement(Ex));a.f[Fx]=Gx;a.f.innerHTML=b||Pw;return a} function Dl(a,b){Cl();Ic(a,Dx,b.b.e==0?null:bh(b.B(Mg(Bj,66,18,0,0)),22)[0]);return a} function ye(a){var b;b=de(ze(a,ie()),3);b.length==0&&(b=de((new ee).i(),1));return b} function kk(){var a;if(bk){a=(nk(),new lk);!!ck&&ig(ck,a);return null}return null} function rs(a,b){var c;while(a.v()){c=a.w();if(b==null?c==null:Xc(b,c)){return a}}return null} function cf(a,b){while(b){if(a==b){return true}b=b.parentNode;b&&b.nodeType!=1&&(b=null)}return false} function vd(a,b,c){var d;d=qd++==0;try{return a.apply(b,c)}finally{d&&Fd((Cd(),Bd));--qd}} function Xj(a,b,c){var d;d=Uj;Uj=a;b==Vj&&zk((Se(),a).type)==8192&&(Vj=null);c.o(a);Uj=d} function ug(a,b,c){var d;d=bh(Js(a.b,b),4);if(!d){d=vu(new su);Os(a.b,b,d)}Pg(d.b,d.c++,c)} function Os(a,b,c){return b==null?Qs(a,c):b!=null&&$g(b.tI,1)?Rs(a,bh(b,1),c):Ps(a,b,c,~~_c(b))} function Is(a,b){return b==null?a.d:b!=null&&$g(b.tI,1)?Ns(a,bh(b,1)):Ms(a,b,~~_c(b))} function Js(a,b){return b==null?a.c:b!=null&&$g(b.tI,1)?a.f[Vw+bh(b,1)]:Ks(a,b,~~_c(b))} function cp(a){var b;if(!(a!=null&&$g(a.tI,26))){return false}b=bh(a,26);return this.c==b.c&&this.b==b.b} function at(){var a,b,c;a=0;for(b=this.t();b.v();){c=b.w();if(c!=null){a+=_c(c);a=~~a}}return a} function Ut(){var a,b,c;b=1;a=this.t();while(a.b<a.c.A()){c=au(a);b=31*b+(c==null?0:_c(c));b=~~b}return b} function xt(){var a,b;a=0;b=0;this.D()!=null&&(a=_c(this.D()));this.E()!=null&&(b=_c(this.E()));return a^b} function vo(a){var b,c;c=Pw;for(b=0;b<a.length;++b){c=c+String.fromCharCode(a[b]&65535)}return c} function pq(a){mq();var b,c;for(b=0;b<lq.length;++b){c=lq[b];if(c==a){return rq(b+7)}fp(a,c)}return null} function Zr(a){Xr();var b=Vw+a;var c=Wr[b];if(c!=null){return c}c=Ur[b];c==null&&(c=Yr(a));$r();return Wr[b]=c} function Xc(a,b){return a.tM==Mv||a.tI==2?a.eQ(b):(a==null?null:a)===(b==null?null:b)} function Kg(a,b){var c=new Array(b);if(a>0){var d=[null,0,false,[0,0]][a];for(var e=0;e<b;++e){c[e]=d}}return c} function ze(a,b){var c;c=se(a,b);if(c.length==0){return (new ee).k(b)}else{return c.length>=1&&c.splice(0,1),c}} function pp(a,b,c){if(b==0||c==0){return 0}if(b==1){return c}if(c==1){return b}return a.b[(a.c[b]+a.c[c])%255]} function Np(a,b){var c,d;if(a.b==null){throw ar(new Zq,dy)}c=b.e;c<=9?(d=0):c<=26?(d=1):(d=2);return a.b[d]} function Hm(a,b){var c;if(b<0||b>=a.d){throw jr(new hr)}--a.d;for(c=b;c<a.d;++c){Pg(a.b,c,a.b[c+1])}Pg(a.b,a.d,null)} function Ym(a,b){var c,d;if(b<1){throw ar(new Zq,Hx)}a.c=b;d=b*b;c=d>>5;(d&31)!=0&&++c;a.b=Mg(qj,65,-1,c,1);return a} function se(a,b){var c,d,e;e=b&&b.stack?b.stack.split(Ww):[];for(c=0,d=e.length;c<d;++c){e[c]=a.j(e[c])}return e} function Fc(a){var b,c,d;c=Mg(Aj,0,17,a.length,0);for(d=0,b=a.length;d<b;++d){if(!a[d]){throw yr(new wr)}c[d]=a[d]}} function Zk(a){if(!a.e){gm();Is(fm.b,a)&&im(a)}else if(a.e){wl(a.e,a)}else if(a.e){throw fr(new cr,yx)}} function Yk(a){if(!a.c){throw fr(new cr,xx)}try{a.s()}finally{try{a.q()}finally{a.f.__listener=null;a.c=false}}} function $k(a,b){var c;c=a.e;if(!b){try{!!c&&c.c&&Yk(a)}finally{a.e=null}}else{if(c){throw fr(new cr,zx)}a.e=b;b.c&&Xk(a)}} function jg(a){var b,c;if(a.b){try{for(c=$t(new Xt,a.b);c.b<c.c.A();){b=bh(au(c),3);ug(b.b.e,b.d,b.c)}}finally{a.b=null}}} function mt(a,b){var c;a.c=b;c=vu(new su);a.c.d&&xu(c,zt(new st,a.c));Gs(a.c,c);Fs(a.c,c);a.b=$t(new Xt,c);return a} function Gs(e,a){var b=e.f;for(var c in b){if(c.charCodeAt(0)==58){var d=Kt(e,c.substring(1));a.y(d)}}} function Fs(g,a){var b=g.b;for(var c in b){if(c==parseInt(c)){var d=b[c];for(var e=0,f=d.length;e<f;++e){a.y(d[e])}}}} function vt(a){var b;if(a!=null&&$g(a.tI,29)){b=bh(a,29);if(zv(this.D(),b.D())&&zv(this.E(),b.E())){return true}}return false} function dt(a,b){var c,d,e;if(b!=null&&$g(b.tI,29)){c=bh(b,29);d=c.D();if(Is(a.b,d)){e=Js(a.b,d);return Su(c.E(),e)}}return false} function dl(a){var b;switch(zk((Se(),a).type)){case 16:case 32:b=a.relatedTarget;if(!!b&&cf(this.f,b)){return}}} function ce(a){var b,c,d;d=Pw;a=Lr(a);b=a.indexOf(Qw);if(b!=-1){c=a.indexOf(Rw)==0?8:0;d=Lr(a.substr(c,b-c))}return d.length>0?d:Sw} function gwtOnLoad(b,c,d){$moduleName=c;$moduleBase=d;if(b)try{$entry(Gj)()}catch(a){b(c)}else{$entry(Gj)()}} function Md(b,c){Cd();$wnd.setTimeout(function(){var a=$entry(Id)(b);a&&$wnd.setTimeout(arguments.callee,c)},c)} function Lr(c){if(c.length==0||c[0]>my&&c[c.length-1]>my){return c}var a=c.replace(/^(\s*)/,Pw);var b=a.replace(/\s*$/,Pw);return b} function tn(a){if(!rn){rn=Ru(new Ou,29);Es(new Ou,29,0)}if(a<0||a>=900){throw ar(new Zq,Lx+a)}return ph(Js(rn,rr(new mr,a)))} function lp(a,b,c){var d;if(b<0){throw _q(new Zq)}if(c==0){return a.e}d=Mg(qj,65,-1,b+1,1);d[0]=c;return tp(new rp,a,d)} function he(){var a,b,c,d;c=ye(new ne);d=Mg(Aj,0,17,c.length,0);for(a=0,b=d.length;a<b;++a){d[a]=Cr(new Ar,Tw,c[a],Uw,0)}Fc(d)} function Cs(){var a,b,c;c=0;for(b=mt(new kt,ct(new Xs,bh(this,31)).b);_t(b.b);){a=bh(au(b.b),29);c+=a.hC();c=~~c}return c} function vs(a){var b,c,d,e;e=this.A();a.length<e&&(a=Jg(a,e));d=a;c=this.t();for(b=0;b<e;++b){Pg(d,b,c.w())}a.length>e&&Pg(a,e,null);return a} function Ks(h,a,b){var c=h.b[b];if(c){for(var d=0,e=c.length;d<e;++d){var f=c[d];var g=f.D();if(h.C(a,g)){return f.E()}}}return null} function Ms(h,a,b){var c=h.b[b];if(c){for(var d=0,e=c.length;d<e;++d){var f=c[d];var g=f.D();if(h.C(a,g)){return true}}}return false} function qo(a,b){var c,d,e,f,g;c=0;d=0;g=0;for(f=0;f<b;++f){for(e=0;e<b;++e){((e+f&1)+e*f%3&1)==0&&(c|=1<<d);if(++d==32){a[g++]^=c;d=0;c=0}}}a[g]^=c} function Nn(a,b){var c,d,e,f,g;c=0;d=0;g=0;for(f=0;f<b;++f){for(e=0;e<b;++e){(e&1)==0&&(c|=1<<d);if(++d==32){a[g++]^=c;d=0;c=0}}}a[g]^=c} function Xn(a,b){var c,d,e,f,g;c=0;d=0;g=0;for(f=0;f<b;++f){for(e=0;e<b;++e){(e+f)%3==0&&(c|=1<<d);if(++d==32){a[g++]^=c;d=0;c=0}}}a[g]^=c} function Sn(a,b){var c,d,e,f,g,h;c=0;e=0;h=0;for(g=0;g<b;++g){d=g%3==0;for(f=0;f<b;++f){d&&(c|=1<<e);if(++e==32){a[h++]^=c;e=0;c=0}}}a[h]^=c} function go(a,b){var c,d,e,f,g,h;c=0;d=0;g=0;for(f=0;f<b;++f){for(e=0;e<b;++e){h=e*f;(h&1)==0&&h%3==0&&(c|=1<<d);if(++d==32){a[g++]^=c;d=0;c=0}}}a[g]^=c} function lo(a,b){var c,d,e,f,g,h;c=0;d=0;g=0;for(f=0;f<b;++f){for(e=0;e<b;++e){h=e*f;((h&1)+h%3&1)==0&&(c|=1<<d);if(++d==32){a[g++]^=c;d=0;c=0}}}a[g]^=c} function ao(a,b){var c,d,e,f,g,h;c=0;d=0;h=0;for(f=0;f<b;++f){g=~~(f/3)&1;for(e=0;e<b;++e){(e>>1&1)==g&&(c|=1<<d);if(++d==32){a[h++]^=c;d=0;c=0}}}a[h]^=c} function To(){To=Mv;Qo=Uo(new No,0,Rx);Ro=Uo(new No,1,Sx);So=Uo(new No,2,Tx);Po=Uo(new No,3,Ux);Oo=Ng(uj,0,11,[Ro,Qo,Po,So])} function Bn(){Bn=Mv;An=Ng(tj,0,10,[(Fn(),Bn(),new En),(Kn(),new Jn),(Pn(),new On),(Un(),new Tn),(Zn(),new Yn),(co(),new bo),(io(),new ho),(no(),new mo)])} function Pg(a,b,c){if(c!=null){if(a.qI>0&&!_g(c.tI,a.qI)){throw Jq(new Hq)}if(a.qI<0&&(c.tM==Mv||c.tI==2)){throw Jq(new Hq)}}return a[b]=c} function Xk(a){var b;if(a.c){throw fr(new cr,wx)}a.c=true;a.f.__listener=a;b=a.d;a.d=-1;b>0&&(a.d==-1?$j(a.f,b|(a.f.__eventBits||0)):(a.d|=b),undefined);a.p();a.r()} function ig(a,b){var c;if(b.b){b.b=false;b.c=null}c=b.c;b.c=a.f;try{++a.c;vg(a.e,b,a.d)}finally{--a.c;a.c==0&&jg(a)}if(c==null){b.b=true;b.c=null}else{b.c=c}} function ge(a,b){var c,d,e,f;e=ze(a,fh(b.b)?ch(b.b):null);f=Mg(Aj,0,17,e.length,0);for(c=0,d=f.length;c<d;++c){f[c]=Cr(new Ar,Tw,e[c],Uw,0)}Fc(f)} function yp(a,b){var c,d,e;if(b==0){return a.c.e}if(b==1){return a}e=a.b.length;d=Mg(qj,65,-1,e,1);for(c=0;c<e;++c){d[c]=pp(a.c,a.b[c],b)}return tp(new rp,a.c,d)} function zp(a,b,c){var d,e,f;if(b<0){throw _q(new Zq)}if(c==0){return a.c.e}f=a.b.length;e=Mg(qj,65,-1,f+b,1);for(d=0;d<f;++d){e[d]=pp(a.c,a.b[d],c)}return tp(new rp,a.c,e)} function Du(a,b){var c,d,e;b.length<a.c&&(b=(d=b,e=Kg(0,a.c),Ng(d.aC,d.tI,d.qI,e),e));for(c=0;c<a.c;++c){Pg(b,c,a.b[c])}b.length>a.c&&Pg(b,a.c,null);return b} function Ld(b,c){var a,e,f,g;for(e=0,f=b.length;e<f;++e){g=b[e];try{g[1]?g[0].h()&&(c[c.length]=g,undefined):g[0].I()}catch(a){a=Jj(a);if(!eh(a,2))throw a}}} function fp(a,b){$o();a^=b;return Yo[a&15]+Yo[a>>>4&15]+Yo[a>>>8&15]+Yo[a>>>12&15]+Yo[a>>>16&15]+Yo[a>>>20&15]+Yo[a>>>24&15]+Yo[a>>>28&15]} function Pr(a){var b,c;if(a>=65536){b=55296+(a-65536>>10&1023)&65535;c=56320+(a-65536&1023)&65535;return String.fromCharCode(b)+String.fromCharCode(c)}else{return String.fromCharCode(a&65535)}} function vp(a,b){var c,d,e;if(b==0){return a.b[a.b.length-1]}e=a.b.length;if(b==1){d=0;for(c=0;c<e;++c){d=(jp(),d^a.b[c])}return d}d=a.b[0];for(c=1;c<e;++c){d=(jp(),pp(a.c,b,d)^a.b[c])}return d} function Fl(b,c){var i;Cl();var a,e,f,g,h;e=null;for(h=b.t();h.v();){g=bh(h.w(),8);try{c.u(g)}catch(a){a=Jj(a);if(eh(a,18)){f=a;!e&&(e=Wu(new Uu));i=Os(e.b,f,e)}else throw a}}if(e){throw Dl(new zl,e)}} function bp(a){var b,c,d,e,f,g,h;h=a^21522;b=2147483647;c=0;for(f=0;f<Zo.length;++f){e=Zo[f];g=e[0];if(g==h){return _o(new Xo,e[1])}d=fp(h,g);if(d<b){c=e[1];b=d}}if(b<=3){return _o(new Xo,c)}return null} function Ps(j,a,b,c){var d=j.b[c];if(d){for(var e=0,f=d.length;e<f;++e){var g=d[e];var h=g.D();if(j.C(a,h)){var i=g.E();g.F(b);return i}}}else{d=j.b[c]=[]}var g=kv(new iv,a,b);d.push(g);++j.e;return null} function Yr(a){var b,c,d,e;b=0;d=a.length;e=d-4;c=0;while(c<e){b=a.charCodeAt(c+3)+31*(a.charCodeAt(c+2)+31*(a.charCodeAt(c+1)+31*(a.charCodeAt(c)+31*b)))|0;c+=4}while(c<d){b=b*31+a.charCodeAt(c++)}return b|0} function Op(a){Lp();switch(a){case 0:return Kp;case 1:return Ip;case 2:return Cp;case 3:return Jp;case 4:return Dp;case 5:return Fp;case 7:return Ep;case 8:return Hp;case 9:return Gp;default:throw _q(new Zq);}} function Fm(a,b,c){var d,e;if(c<0||c>a.d){throw jr(new hr)}if(a.d==a.b.length){e=Mg(rj,0,8,a.b.length*2,0);for(d=0;d<a.b.length;++d){Pg(e,d,a.b[d])}a.b=e}++a.d;for(d=a.d-1;d>c;--d){Pg(a.b,d,a.b[d-1])}Pg(a.b,c,b)} function bq(a,b){var c,d,e,f;e=b.b.length-1;if(e==1){return Ng(qj,65,-1,[b.b[b.b.length-1-1]])}f=Mg(qj,65,-1,e,1);c=0;for(d=1;d<256&&c<e;++d){if(vp(b,d)==0){f[c]=np(a.b,d);++c}}if(c!=e){throw hq(new fq,jy)}return f} function $s(a){var b,c,d;if((a==null?null:a)===this){return true}if(!(a!=null&&$g(a.tI,32))){return false}c=bh(a,32);if(c.A()!=this.A()){return false}for(b=c.t();b.v();){d=b.w();if(!this.z(d)){return false}}return true} function Go(b,c,d){var a,f,g,h,i;h=c.length;f=Mg(qj,65,-1,h,1);for(g=0;g<h;++g){f[g]=c[g]&255}i=c.length-d;try{aq(b.b,f,i)}catch(a){a=Jj(a);if(eh(a,25)){throw Wp(),Wp(),Vp}else throw a}for(g=0;g<d;++g){c[g]=f[g]<<24>>24}} function tp(a,b,c){var d,e;if(c==null||c.length==0){throw _q(new Zq)}a.c=b;d=c.length;if(d>1&&c[0]==0){e=1;while(e<d&&c[e]==0){++e}if(e==d){a.b=b.e.b}else{a.b=Mg(qj,65,-1,d-e,1);is(c,e,a.b,0,a.b.length)}}else{a.b=c}return a} function km(a){gm();var b,c;c=bh(Js(em,a),23);b=null;if(a!=null){if(!(b=$doc.getElementById(a))){return null}}if(c){if(!b||c.f==b){return c}}em.e==0&&ek(new rm);!b?(c=wm(new um)):(c=hm(new cm,b));Os(em,a,c);Xu(fm,c);return c} function _m(a,b,c,d,e){var f,g,h,i,j,k;if(b<0||c<0){throw ar(new Zq,Ix)}if(d<1||e<1){throw ar(new Zq,Jx)}j=c+e;i=b+d;if(i>a.c||j>a.c){throw ar(new Zq,Kx)}for(g=c;g<j;++g){h=a.c*g;for(f=b;f<i;++f){k=f+h;a.b[k>>5]|=1<<(k&31)}}} function cq(a,b,c,d){var e,f,g,h,i,j;i=c.length;h=Mg(qj,65,-1,i,1);for(f=0;f<i;++f){j=np(a.b,c[f]);e=1;for(g=0;g<i;++g){f!=g&&(e=pp(a.b,e,(jp(),1^pp(a.b,c[g],j))))}h[f]=pp(a.b,vp(b,j),np(a.b,e));d&&(h[f]=pp(a.b,h[f],j))}return h} function vg(a,b,c){var d,e,f,g,h,i,j;g=b.n();d=(h=bh(Js(a.b,g),4),!h?0:h.c);if(c){for(f=d-1;f>=0;--f){e=(i=bh(Js(a.b,g),4),bh((Rt(f,i.c),i.b[f]),21));b.m(e)}}else{for(f=0;f<d;++f){e=(j=bh(Js(a.b,g),4),bh((Rt(f,j.c),j.b[f]),21));b.m(e)}}} function kp(a,b){var c,d;jp();a.b=Mg(qj,65,-1,256,1);a.c=Mg(qj,65,-1,256,1);d=1;for(c=0;c<256;++c){a.b[c]=d;d<<=1;d>=256&&(d^=b)}for(c=0;c<255;++c){a.c[a.b[c]]=c}a.e=tp(new rp,a,Ng(qj,65,-1,[0]));a.d=tp(new rp,a,Ng(qj,65,-1,[1]));return a} function je(){var a={};var b=[];var c=arguments.callee.caller.caller;while(c){var d=this.j(c.toString());b.push(d);var e=Vw+d;var f=a[e];if(f){var g,h;for(g=0,h=f.length;g<h;g++){if(f[g]===c){return b}}}(f||(a[e]=[])).push(c);c=c.caller}return b} function Tp(a){var b,c,d,e,f,g,h,i;f=a.length;b=Ym(new Wm,f);for(g=0;g<f;++g){for(h=0;h<f;++h){a!=null&&a[g][h]==1&&(i=g+b.c*h,b.b[i>>5]|=1<<(i&31),undefined)}}d=Fo(new Do);e=Ho(d,b);c=e.b;hl(km(ey));vl(km(ey),Vl(new Pl,fy));vl(km(ey),Vl(new Pl,gy+c+hy))} function Ho(a,b){var c,d,e,f,g,h,i,j,k,l,m,n,o;k=dn(new bn,b);o=gn(k);g=fn(k).c;d=en(k);f=yn(d,o,g);n=0;for(h=0;h<f.length;++h){n+=f[h].c}l=Mg(oj,0,-1,n,1);m=0;for(i=0;i<f.length;++i){e=f[i];c=e.b;j=e.c;Go(a,c,j);for(h=0;h<j;++h){l[m++]=c[h]}}return wo(l,o)} function St(a){var b,c,d,e,f;if((a==null?null:a)===this){return true}if(!(a!=null&&$g(a.tI,30))){return false}f=bh(a,30);if(this.A()!=f.A()){return false}d=this.t();e=f.t();while(d.b<d.c.A()){b=au(d);c=au(e);if(!(b==null?c==null:Xc(b,c))){return false}}return true} function nq(a,b,c,d,e,f,g){var h,i,j,k,l;mq();a.e=b;a.b=c;a.c=Ng(xj,0,14,[d,e,f,g]);l=0;i=d.c;j=d.b;for(k=0;k<j.length;++k){h=j[k];l+=h.b*(h.c+i)}a.d=l;return a} function xp(a,b){var c,d,e,f,g,h,i,j;if(a.c!=b.c){throw ar(new Zq,Vx)}if(a.b[0]==0||b.b[0]==0){return a.c.e}d=a.b;e=d.length;f=b.b;g=f.length;j=Mg(qj,65,-1,e+g-1,1);for(h=0;h<e;++h){c=d[h];for(i=0;i<g;++i){j[h+i]=(jp(),j[h+i]^pp(a.c,c,f[i]))}}return tp(new rp,a.c,j)} function yo(a,b,c,d){var e,f;f=Mg(oj,0,-1,c,1);if(c<<3>8*(a.d.length-a.c)-a.b){throw Wp(),Wp(),Vp}for(e=0;e<c;++e){f[e]=mn(a,8)<<24>>24}Bo(f);es(b,vo(f));xu(d.b,f)} function Kd(a){var b,c,d,e,f,g;b=false;d=a.length;f=(new Date).getTime();while((new Date).getTime()-f<100){for(c=0;c<d;++c){g=a[c];if(!g){continue}if(!g[0].h()){a[c]=null;b=true}}}if(b){e=[];for(c=0;c<d;++c){if(!a[c]){continue}e[e.length]=a[c]}return e}else{return a}} function Gj(){!!$stats&&$stats({moduleName:$moduleName,sessionId:$sessionId,subSystem:Zw,evtGroup:$w,millis:(new Date).getTime(),type:_w,className:ax});$wnd.decode=Tp} function Ce(a){var b,c;if(a.length==0){return Sw}c=Lr(a);c.indexOf(Xw)==0&&(c=c.substr(3,c.length-3));b=c.indexOf(Yw);b==-1&&(b=c.indexOf(Qw));if(b==-1){return Sw}else{c=Lr(c.substr(0,b-0))}b=c.indexOf(Pr(46));b!=-1&&(c=c.substr(b+1,c.length-(b+1)));return c.length>0?c:Sw} function rl(a,b){var c,d;if(b.e!=a){return false}try{$k(b,null)}finally{c=b.f;(d=(Se(),c).parentNode,(!d||d.nodeType!=1)&&(d=null),d).removeChild(c);Im(a.b,b)}return true} function xo(a,b,c,d){var e,f,g;g=b.b.b.length;while(c>1){f=mn(a,11);ds(b,so[~~(f/45)]);ds(b,so[f%45]);c-=2}c==1&&ds(b,so[mn(a,6)]);if(d){for(e=g;e<b.b.b.length;++e){b.b.b.charCodeAt(e)==37&&(e<b.b.b.length-1&&b.b.b.charCodeAt(e+1)==37?Pe(b.b,e+1,e+1+1,Pw):Pe(b.b,e,e+1,Mx))}}} function mn(a,b){var c,d,e,f,g;if(b<1||b>32){throw _q(new Zq)}f=0;if(a.b>0){c=8-a.b;g=b<c?b:c;d=c-g;e=255>>8-g<<d;f=(a.d[a.c]&e)>>d;b-=g;a.b+=g;if(a.b==8){a.b=0;++a.c}}if(b>0){while(b>=8){f=f<<8|a.d[a.c]&255;++a.c;b-=8}if(b>0){d=8-b;e=255>>d<<d;f=f<<b|(a.d[a.c]&e)>>d;a.b+=b}}return f} function Ts(h,a,b){var c=h.b[b];if(c){for(var d=0,e=c.length;d<e;++d){var f=c[d];var g=f.D();if(h.C(a,g)){c.length==1?delete h.b[b]:c.splice(d,1);--h.e;return f.E()}}}return null} --></script> <script><!-- function up(a,b){var c,d,e,f,g,h;if(a.c!=b.c){throw ar(new Zq,Vx)}if(a.b[0]==0){return b}if(b.b[0]==0){return a}f=a.b;d=b.b;if(f.length>d.length){h=f;f=d;d=h}g=Mg(qj,65,-1,d.length,1);e=d.length-f.length;is(d,0,g,0,e);for(c=e;c<d.length;++c){g[c]=(jp(),f[c-e]^d[c])}return tp(new rp,a.c,g)} function uo(){uo=Mv;so=Ng(pj,0,-1,[48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,32,36,37,42,43,45,46,47,58]);to=false} function Ao(a,b,c){var d,e,f;while(c>=3){e=mn(a,10);if(e>=1000){throw Wp(),Wp(),Vp}ds(b,so[~~(e/100)]);ds(b,so[~~(e/10)%10]);ds(b,so[e%10]);c-=3}if(c==2){f=mn(a,7);if(f>=100){throw Wp(),Wp(),Vp}ds(b,so[~~(f/10)]);ds(b,so[f%10])}else if(c==1){d=mn(a,4);if(d>=10){throw Wp(),Wp(),Vp}ds(b,so[d])}} function zo(a,b,c){var d,e,f,g;e=Mg(oj,0,-1,2*c,1);f=0;while(c>0){g=mn(a,13);d=~~(g/192)<<8|g%192;d<7936?(d+=33088):(d+=49472);e[f]=d>>8<<24>>24;e[f+1]=d<<24>>24;f+=2;--c}es(b,vo(e))} function oq(a){var b,c,d,e,f,g;c=17+4*a.e;b=Ym(new Wm,c);_m(b,0,0,9,9);_m(b,0,c-8,9,8);_m(b,c-8,0,8,9);e=a.b.length;for(f=0;f<e;++f){d=a.b[f]-2;for(g=0;g<e;++g){if(f==0&&(g==0||g==e-1)||f==e-1&&g==0){continue}_m(b,d,a.b[g]-2,5,5)}}_m(b,9,6,c-17,1);_m(b,6,9,1,c-17);if(a.e>6){_m(b,0,c-11,6,3);_m(b,c-11,0,3,6)}return b} function Co(a){var b,c,d;b=mn(a,8);if((b&128)==0){return b&127}else if((b&192)==128){c=mn(a,8);return (b&63)<<8|c}else if((b&224)==192){d=mn(a,16);return (b&31)<<16|d}throw ar(new Zq,Qx+b)} function gn(a){var b,c,d,e,f,g,h;if(a.d){return a.d}b=a.b.c;g=b-17>>2;if(g<=6){return rq(g)}h=0;for(c=5;c>=0;--c){f=b-11;for(e=b-9;e>=f;--e){h=Zm(a.b,c,e)?h<<1|1:h<<1}}a.d=pq(h);if(a.d){return a.d}h=0;for(e=5;e>=0;--e){d=b-11;for(c=b-11;c>=d;--c){h=Zm(a.b,c,e)?h<<1|1:h<<1}}a.d=pq(h);if(a.d){return a.d}throw Wp(),Wp(),Vp} function Lp(){Lp=Mv;Kp=Mp(new Bp,Ng(qj,65,-1,[0,0,0]),Wx);Ip=Mp(new Bp,Ng(qj,65,-1,[10,12,14]),Xx);Cp=Mp(new Bp,Ng(qj,65,-1,[9,11,13]),Yx);Jp=Mp(new Bp,Ng(qj,65,-1,[0,0,0]),Zx);Dp=Mp(new Bp,Ng(qj,65,-1,[8,16,16]),$x);Ep=Mp(new Bp,null,_x);Hp=Mp(new Bp,Ng(qj,65,-1,[8,10,12]),ay);Fp=Mp(new Bp,null,by);Gp=Mp(new Bp,null,cy)} function Ok(){var d=$wnd.onbeforeunload;var e=$wnd.onunload;$wnd.onbeforeunload=function(a){var b,c;try{b=$entry(kk)()}finally{c=d&&d(a)}if(b!=null){return b}if(c!=null){return c}};$wnd.onunload=$entry(function(a){try{bk&&Nf(hk())}finally{e&&e(a);$wnd.onresize=null;$wnd.onscroll=null;$wnd.onbeforeunload=null;$wnd.onunload=null}})} function aq(a,b,c){var d,e,f,g,h,i,j,k,l,m,n,o,p;k=tp(new rp,a.b,b);p=Mg(qj,65,-1,c,1);d=a.b==(jp(),hp);i=true;for(h=0;h<c;++h){g=vp(k,a.b.b[d?h+1:h]);p[p.length-1-h]=g;g!=0&&(i=false)}if(i){return}o=tp(new rp,a.b,p);n=dq(a,lp(a.b,c,1),o,c);m=n[0];j=n[1];e=bq(a,m);f=cq(a,j,e,d);for(h=0;h<e.length;++h){l=b.length-1-op(a.b,e[h]);if(l<0){throw hq(new fq,iy)}b[l]=b[l]^f[h]}} function en(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p;h=fn(a);o=gn(a);f=Cn(h.b);g=a.b.c;f.x(a.b.b,g);i=oq(o);l=true;m=Mg(oj,0,-1,o.d,1);n=0;e=0;b=0;for(k=g-1;k>0;k-=2){k==6&&--k;for(d=0;d<g;++d){j=l?g-1-d:d;for(c=0;c<2;++c){if(!(p=j+i.c*(k-c),(i.b[p>>5]>>>(p&31)&1)!=0)){++b;e<<=1;Zm(a.b,j,k-c)&&(e|=1);if(b==8){m[n++]=e<<24>>24;b=0;e=0}}}}l^=true}if(n!=o.d){throw Wp(),Wp(),Vp}return m} function fn(a){var b,c,d,e,f;if(a.c){return a.c}c=0;for(f=0;f<6;++f){c=Zm(a.b,8,f)?c<<1|1:c<<1}c=Zm(a.b,8,7)?c<<1|1:c<<1;c=Zm(a.b,8,8)?c<<1|1:c<<1;c=Zm(a.b,7,8)?c<<1|1:c<<1;for(d=5;d>=0;--d){c=Zm(a.b,d,8)?c<<1|1:c<<1}a.c=ap(c);if(a.c){return a.c}b=a.b.c;c=0;e=b-8;for(d=b-1;d>=e;--d){c=Zm(a.b,d,8)?c<<1|1:c<<1}for(f=b-7;f<b;++f){c=Zm(a.b,8,f)?c<<1|1:c<<1}a.c=ap(c);if(a.c){return a.c}throw Wp(),Wp(),Vp} function zk(a){switch(a){case bx:return 4096;case cx:return 1024;case dx:return 1;case ex:return 2;case fx:return 2048;case gx:return 128;case hx:return 256;case ix:return 512;case jx:return 32768;case kx:return 8192;case lx:return 4;case mx:return 64;case nx:return 32;case ox:return 16;case px:return 8;case qx:return 16384;case rx:return 65536;case sx:return 131072;case tx:return 131072;case ux:return 262144;case vx:return 524288;}} function As(a){var b,c,d,e,f;if((a==null?null:a)===this){return true}if(!(a!=null&&$g(a.tI,31))){return false}e=bh(a,31);if(bh(this,31).e!=e.e){return false}for(c=mt(new kt,ct(new Xs,e).b);_t(c.b);){b=bh(au(c.b),29);d=b.D();f=b.E();if(!(d==null?bh(this,31).d:d!=null&&$g(d.tI,1)?Ns(bh(this,31),bh(d,1)):Ms(bh(this,31),d,~~_c(d)))){return false}if(!zv(f,d==null?bh(this,31).c:d!=null&&$g(d.tI,1)?bh(this,31).f[Vw+bh(d,1)]:Ks(bh(this,31),d,~~_c(d)))){return false}}return true} function wo(b,c){uo();var a,e,f,g,h,i,j,k;e=ln(new jn,b);j=cs(new _r);h=false;f=Cv(new Av,1);do{if(8*(e.d.length-e.c)-e.b<4){i=(Lp(),Kp)}else{try{i=Op(mn(e,4))}catch(a){a=Jj(a);if(eh(a,24)){throw Wp(),Wp(),Vp}else throw a}}if(i!=(Lp(),Kp)){if(i==Fp||i==Gp){h=true}else if(i==Jp){mn(e,16)}else if(i==Ep){k=Co(e);tn(k);throw Wp(),Wp(),Vp}else{g=mn(e,Np(i,c));if(i==Ip){Ao(e,j,g)}else if(i==Cp){xo(e,j,g,h)}else if(i==Dp){yo(e,j,g,f)}else if(i==Hp){zo(e,j,g)}else{throw Wp(),Wp(),Vp}}}}while(i!=(Lp(),Kp));return Lo(new Jo,b,j.b.b)} function yn(a,b,c){var d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t;if(a.length!=b.d){throw _q(new Zq)}f=b.c[c.b];t=0;e=f.b;for(g=0;g<e.length;++g){t+=e[g].b}q=Mg(sj,0,9,t,0);o=0;for(i=0;i<e.length;++i){d=e[i];for(g=0;g<d.b;++g){n=d.c;l=f.c+n;q[o++]=wn(new un,n,Mg(oj,0,-1,l,1))}}s=q[0].b.length;j=q.length-1;while(j>=0){m=q[j].b.length;if(m==s){break}--j}++j;r=s-f.c;p=0;for(g=0;g<r;++g){for(i=0;i<o;++i){q[i].b[g]=a[p++]}}for(i=j;i<o;++i){q[i].b[r]=a[p++]}k=q[0].b.length;for(g=r;g<k;++g){for(i=0;i<o;++i){h=i<j?g:g+1;q[i].b[h]=a[p++]}}return q} function dq(a,b,c,d){var e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w;if(b.b.length-1<c.b.length-1){w=b;b=c;c=w}l=b;k=c;o=a.b.d;n=a.b.e;u=a.b.e;t=a.b.d;while(k.b.length-1>=~~(d/2)){m=l;p=o;v=u;l=k;o=n;u=t;if(l.b[0]==0){throw hq(new fq,ky)}k=m;j=a.b.e;f=wp(l,l.b.length-1);g=np(a.b,f);while(k.b.length-1>=l.b.length-1&&k.b[0]!=0){e=k.b.length-1-(l.b.length-1);q=pp(a.b,wp(k,k.b.length-1),g);j=up(j,lp(a.b,e,q));k=up(k,zp(l,e,q))}n=up(xp(j,o),p);t=up(xp(j,u),v)}s=t.b[t.b.length-1];if(s==0){throw hq(new fq,ly)}h=np(a.b,s);r=yp(t,h);i=yp(k,h);return Ng(vj,0,12,[r,i])} function is(a,b,c,d,e){var f,g,h,i,j,k,l,m,n;if(a==null||c==null){throw yr(new wr)}m=a.tM==Mv||a.tI==2?a.gC():vh;i=c.tM==Mv||c.tI==2?c.gC():vh;if((m.c&4)==0||(i.c&4)==0){throw Kq(new Hq,ny)}l=m.b;g=i.b;if(l.c!=g.c||(l.c&1)!=0&&l!=g){throw Kq(new Hq,oy)}n=a.length;j=c.length;if(b<0||d<0||e<0||b+e>n||d+e>j){throw jr(new hr)}if(((l.c&1)==0||(l.c&4)!=0)&&m!=i){k=bh(a,28);f=bh(c,28);if((a==null?null:a)===(c==null?null:c)&&b<d){b+=e;for(h=d+e;h-->d;){Pg(f,h,k[--b])}}else{for(h=d+e;d<h;){Pg(f,d++,k[b++])}}}else{Array.prototype.splice.apply(c,[d,e].concat(a.slice(b,b+e)))}} function Bo(a){var b,c,d,e,f,g,h,i,j,k;if(to){return Nx}if(a.length>3&&a[0]==-17&&a[1]==-69&&a[2]==-65){return Ox}f=a.length;b=true;c=true;i=false;g=0;j=false;e=false;for(d=0;d<f&&(b||c);++d){k=a[d]&255;if(k==194||k==195&&d<f-1){h=a[d+1]&255;h<=191&&(k==194&&h>=160||k==195&&h>=128)&&(j=true)}k>=127&&k<=159&&(b=false);k>=161&&k<=223&&!e&&++g;!e&&(k>=240&&k<=255||k==128||k==160)&&(c=false);if((k>=129&&k<=159||k>=224&&k<=239)&&d<f-1){i=true;if(e){e=false}else{e=true;h=a[d+1]&255;(h<64||h>252)&&(c=false)}}else{e=false}}if(c&&(i||20*g>f)){return Nx}if(!j&&b){return Px}return Ox} function Kk(){Hk=$entry(function(a){if(Gk(a)){var b=Fk;if(b&&b.__listener){if(Dk(b.__listener)){Xj(a,b,b.__listener);a.stopPropagation()}}}});Gk=$entry(function(a){return true});Ik=$entry(function(a){var b,c=this;while(c&&!(b=c.__listener)){c=c.parentNode}c&&c.nodeType!=1&&(c=null);b&&Dk(b)&&Xj(a,c,b)});$wnd.addEventListener(dx,Hk,true);$wnd.addEventListener(ex,Hk,true);$wnd.addEventListener(lx,Hk,true);$wnd.addEventListener(px,Hk,true);$wnd.addEventListener(mx,Hk,true);$wnd.addEventListener(ox,Hk,true);$wnd.addEventListener(nx,Hk,true);$wnd.addEventListener(sx,Hk,true);$wnd.addEventListener(gx,Gk,true);$wnd.addEventListener(ix,Gk,true);$wnd.addEventListener(hx,Gk,true)} function Lk(a,b){var c=(a.__eventBits||0)^b;a.__eventBits=b;if(!c)return;c&1&&(a.onclick=b&1?Ik:null);c&2&&(a.ondblclick=b&2?Ik:null);c&4&&(a.onmousedown=b&4?Ik:null);c&8&&(a.onmouseup=b&8?Ik:null);c&16&&(a.onmouseover=b&16?Ik:null);c&32&&(a.onmouseout=b&32?Ik:null);c&64&&(a.onmousemove=b&64?Ik:null);c&128&&(a.onkeydown=b&128?Ik:null);c&256&&(a.onkeypress=b&256?Ik:null);c&512&&(a.onkeyup=b&512?Ik:null);c&1024&&(a.onchange=b&1024?Ik:null);c&2048&&(a.onfocus=b&2048?Ik:null);c&4096&&(a.onblur=b&4096?Ik:null);c&8192&&(a.onlosecapture=b&8192?Ik:null);c&16384&&(a.onscroll=b&16384?Ik:null);c&32768&&(a.onload=b&32768?Ik:null);c&65536&&(a.onerror=b&65536?Ik:null);c&131072&&(a.onmousewheel=b&131072?Ik:null);c&262144&&(a.oncontextmenu=b&262144?Ik:null);c&524288&&(a.onpaste=b&524288?Ik:null)} function $o(){$o=Mv;Zo=Ng(Cj,0,20,[Ng(qj,65,-1,[21522,0]),Ng(qj,65,-1,[20773,1]),Ng(qj,65,-1,[24188,2]),Ng(qj,65,-1,[23371,3]),Ng(qj,65,-1,[17913,4]),Ng(qj,65,-1,[16590,5]),Ng(qj,65,-1,[20375,6]),Ng(qj,65,-1,[19104,7]),Ng(qj,65,-1,[30660,8]),Ng(qj,65,-1,[29427,9]),Ng(qj,65,-1,[32170,10]),Ng(qj,65,-1,[30877,11]),Ng(qj,65,-1,[26159,12]),Ng(qj,65,-1,[25368,13]),Ng(qj,65,-1,[27713,14]),Ng(qj,65,-1,[26998,15]),Ng(qj,65,-1,[5769,16]),Ng(qj,65,-1,[5054,17]),Ng(qj,65,-1,[7399,18]),Ng(qj,65,-1,[6608,19]),Ng(qj,65,-1,[1890,20]),Ng(qj,65,-1,[597,21]),Ng(qj,65,-1,[3340,22]),Ng(qj,65,-1,[2107,23]),Ng(qj,65,-1,[13663,24]),Ng(qj,65,-1,[12392,25]),Ng(qj,65,-1,[16177,26]),Ng(qj,65,-1,[14854,27]),Ng(qj,65,-1,[9396,28]),Ng(qj,65,-1,[8579,29]),Ng(qj,65,-1,[11994,30]),Ng(qj,65,-1,[11245,31])]);Yo=Ng(qj,65,-1,[0,1,1,2,1,2,2,3,1,2,2,3,2,3,3,4])} function mq(){mq=Mv;lq=Ng(qj,65,-1,[31892,34236,39577,42195,48118,51042,55367,58893,63784,68472,70749,76311,79154,84390,87683,92361,96236,102084,102881,110507,110734,117786,119615,126325,127568,133589,136944,141498,145311,150283,152622,158308,161089,167017]);kq=Ng(yj,0,15,[nq(new jq,1,Ng(qj,65,-1,[]),yq(new wq,7,uq(new sq,1,19)),yq(new wq,10,uq(new sq,1,16)),yq(new wq,13,uq(new sq,1,13)),yq(new wq,17,uq(new sq,1,9))),nq(new jq,2,Ng(qj,65,-1,[6,18]),yq(new wq,10,uq(new sq,1,34)),yq(new wq,16,uq(new sq,1,28)),yq(new wq,22,uq(new sq,1,22)),yq(new wq,28,uq(new sq,1,16))),nq(new jq,3,Ng(qj,65,-1,[6,22]),yq(new wq,15,uq(new sq,1,55)),yq(new wq,26,uq(new sq,1,44)),yq(new wq,18,uq(new sq,2,17)),yq(new wq,22,uq(new sq,2,13))),nq(new jq,4,Ng(qj,65,-1,[6,26]),yq(new wq,20,uq(new sq,1,80)),yq(new wq,18,uq(new sq,2,32)),yq(new wq,26,uq(new sq,2,24)),yq(new wq,16,uq(new sq,4,9))),nq(new jq,5,Ng(qj,65,-1,[6,30]),yq(new wq,26,uq(new sq,1,108)),yq(new wq,24,uq(new sq,2,43)),zq(new wq,18,uq(new sq,2,15),uq(new sq,2,16)),zq(new wq,22,uq(new sq,2,11),uq(new sq,2,12))),nq(new jq,6,Ng(qj,65,-1,[6,34]),yq(new wq,18,uq(new sq,2,68)),yq(new wq,16,uq(new sq,4,27)),yq(new wq,24,uq(new sq,4,19)),yq(new wq,28,uq(new sq,4,15))),nq(new jq,7,Ng(qj,65,-1,[6,22,38]),yq(new wq,20,uq(new sq,2,78)),yq(new wq,18,uq(new sq,4,31)),zq(new wq,18,uq(new sq,2,14),uq(new sq,4,15)),zq(new wq,26,uq(new sq,4,13),uq(new sq,1,14))),nq(new jq,8,Ng(qj,65,-1,[6,24,42]),yq(new wq,24,uq(new sq,2,97)),zq(new wq,22,uq(new sq,2,38),uq(new sq,2,39)),zq(new wq,22,uq(new sq,4,18),uq(new sq,2,19)),zq(new wq,26,uq(new sq,4,14),uq(new sq,2,15))),nq(new jq,9,Ng(qj,65,-1,[6,26,46]),yq(new wq,30,uq(new sq,2,116)),zq(new wq,22,uq(new sq,3,36),uq(new sq,2,37)),zq(new wq,20,uq(new sq,4,16),uq(new sq,4,17)),zq(new wq,24,uq(new sq,4,12),uq(new sq,4,13))),nq(new jq,10,Ng(qj,65,-1,[6,28,50]),zq(new wq,18,uq(new sq,2,68),uq(new sq,2,69)),zq(new wq,26,uq(new sq,4,43),uq(new sq,1,44)),zq(new wq,24,uq(new sq,6,19),uq(new sq,2,20)),zq(new wq,28,uq(new sq,6,15),uq(new sq,2,16))),nq(new jq,11,Ng(qj,65,-1,[6,30,54]),yq(new wq,20,uq(new sq,4,81)),zq(new wq,30,uq(new sq,1,50),uq(new sq,4,51)),zq(new wq,28,uq(new sq,4,22),uq(new sq,4,23)),zq(new wq,24,uq(new sq,3,12),uq(new sq,8,13))),nq(new jq,12,Ng(qj,65,-1,[6,32,58]),zq(new wq,24,uq(new sq,2,92),uq(new sq,2,93)),zq(new wq,22,uq(new sq,6,36),uq(new sq,2,37)),zq(new wq,26,uq(new sq,4,20),uq(new sq,6,21)),zq(new wq,28,uq(new sq,7,14),uq(new sq,4,15))),nq(new jq,13,Ng(qj,65,-1,[6,34,62]),yq(new wq,26,uq(new sq,4,107)),zq(new wq,22,uq(new sq,8,37),uq(new sq,1,38)),zq(new wq,24,uq(new sq,8,20),uq(new sq,4,21)),zq(new wq,22,uq(new sq,12,11),uq(new sq,4,12))),nq(new jq,14,Ng(qj,65,-1,[6,26,46,66]),zq(new wq,30,uq(new sq,3,115),uq(new sq,1,116)),zq(new wq,24,uq(new sq,4,40),uq(new sq,5,41)),zq(new wq,20,uq(new sq,11,16),uq(new sq,5,17)),zq(new wq,24,uq(new sq,11,12),uq(new sq,5,13))),nq(new jq,15,Ng(qj,65,-1,[6,26,48,70]),zq(new wq,22,uq(new sq,5,87),uq(new sq,1,88)),zq(new wq,24,uq(new sq,5,41),uq(new sq,5,42)),zq(new wq,30,uq(new sq,5,24),uq(new sq,7,25)),zq(new wq,24,uq(new sq,11,12),uq(new sq,7,13))),nq(new jq,16,Ng(qj,65,-1,[6,26,50,74]),zq(new wq,24,uq(new sq,5,98),uq(new sq,1,99)),zq(new wq,28,uq(new sq,7,45),uq(new sq,3,46)),zq(new wq,24,uq(new sq,15,19),uq(new sq,2,20)),zq(new wq,30,uq(new sq,3,15),uq(new sq,13,16))),nq(new jq,17,Ng(qj,65,-1,[6,30,54,78]),zq(new wq,28,uq(new sq,1,107),uq(new sq,5,108)),zq(new wq,28,uq(new sq,10,46),uq(new sq,1,47)),zq(new wq,28,uq(new sq,1,22),uq(new sq,15,23)),zq(new wq,28,uq(new sq,2,14),uq(new sq,17,15))),nq(new jq,18,Ng(qj,65,-1,[6,30,56,82]),zq(new wq,30,uq(new sq,5,120),uq(new sq,1,121)),zq(new wq,26,uq(new sq,9,43),uq(new sq,4,44)),zq(new wq,28,uq(new sq,17,22),uq(new sq,1,23)),zq(new wq,28,uq(new sq,2,14),uq(new sq,19,15))),nq(new jq,19,Ng(qj,65,-1,[6,30,58,86]),zq(new wq,28,uq(new sq,3,113),uq(new sq,4,114)),zq(new wq,26,uq(new sq,3,44),uq(new sq,11,45)),zq(new wq,26,uq(new sq,17,21),uq(new sq,4,22)),zq(new wq,26,uq(new sq,9,13),uq(new sq,16,14))),nq(new jq,20,Ng(qj,65,-1,[6,34,62,90]),zq(new wq,28,uq(new sq,3,107),uq(new sq,5,108)),zq(new wq,26,uq(new sq,3,41),uq(new sq,13,42)),zq(new wq,30,uq(new sq,15,24),uq(new sq,5,25)),zq(new wq,28,uq(new sq,15,15),uq(new sq,10,16))),nq(new jq,21,Ng(qj,65,-1,[6,28,50,72,94]),zq(new wq,28,uq(new sq,4,116),uq(new sq,4,117)),yq(new wq,26,uq(new sq,17,42)),zq(new wq,28,uq(new sq,17,22),uq(new sq,6,23)),zq(new wq,30,uq(new sq,19,16),uq(new sq,6,17))),nq(new jq,22,Ng(qj,65,-1,[6,26,50,74,98]),zq(new wq,28,uq(new sq,2,111),uq(new sq,7,112)),yq(new wq,28,uq(new sq,17,46)),zq(new wq,30,uq(new sq,7,24),uq(new sq,16,25)),yq(new wq,24,uq(new sq,34,13))),nq(new jq,23,Ng(qj,65,-1,[6,30,54,74,102]),zq(new wq,30,uq(new sq,4,121),uq(new sq,5,122)),zq(new wq,28,uq(new sq,4,47),uq(new sq,14,48)),zq(new wq,30,uq(new sq,11,24),uq(new sq,14,25)),zq(new wq,30,uq(new sq,16,15),uq(new sq,14,16))),nq(new jq,24,Ng(qj,65,-1,[6,28,54,80,106]),zq(new wq,30,uq(new sq,6,117),uq(new sq,4,118)),zq(new wq,28,uq(new sq,6,45),uq(new sq,14,46)),zq(new wq,30,uq(new sq,11,24),uq(new sq,16,25)),zq(new wq,30,uq(new sq,30,16),uq(new sq,2,17))),nq(new jq,25,Ng(qj,65,-1,[6,32,58,84,110]),zq(new wq,26,uq(new sq,8,106),uq(new sq,4,107)),zq(new wq,28,uq(new sq,8,47),uq(new sq,13,48)),zq(new wq,30,uq(new sq,7,24),uq(new sq,22,25)),zq(new wq,30,uq(new sq,22,15),uq(new sq,13,16))),nq(new jq,26,Ng(qj,65,-1,[6,30,58,86,114]),zq(new wq,28,uq(new sq,10,114),uq(new sq,2,115)),zq(new wq,28,uq(new sq,19,46),uq(new sq,4,47)),zq(new wq,28,uq(new sq,28,22),uq(new sq,6,23)),zq(new wq,30,uq(new sq,33,16),uq(new sq,4,17))),nq(new jq,27,Ng(qj,65,-1,[6,34,62,90,118]),zq(new wq,30,uq(new sq,8,122),uq(new sq,4,123)),zq(new wq,28,uq(new sq,22,45),uq(new sq,3,46)),zq(new wq,30,uq(new sq,8,23),uq(new sq,26,24)),zq(new wq,30,uq(new sq,12,15),uq(new sq,28,16))),nq(new jq,28,Ng(qj,65,-1,[6,26,50,74,98,122]),zq(new wq,30,uq(new sq,3,117),uq(new sq,10,118)),zq(new wq,28,uq(new sq,3,45),uq(new sq,23,46)),zq(new wq,30,uq(new sq,4,24),uq(new sq,31,25)),zq(new wq,30,uq(new sq,11,15),uq(new sq,31,16))),nq(new jq,29,Ng(qj,65,-1,[6,30,54,78,102,126]),zq(new wq,30,uq(new sq,7,116),uq(new sq,7,117)),zq(new wq,28,uq(new sq,21,45),uq(new sq,7,46)),zq(new wq,30,uq(new sq,1,23),uq(new sq,37,24)),zq(new wq,30,uq(new sq,19,15),uq(new sq,26,16))),nq(new jq,30,Ng(qj,65,-1,[6,26,52,78,104,130]),zq(new wq,30,uq(new sq,5,115),uq(new sq,10,116)),zq(new wq,28,uq(new sq,19,47),uq(new sq,10,48)),zq(new wq,30,uq(new sq,15,24),uq(new sq,25,25)),zq(new wq,30,uq(new sq,23,15),uq(new sq,25,16))),nq(new jq,31,Ng(qj,65,-1,[6,30,56,82,108,134]),zq(new wq,30,uq(new sq,13,115),uq(new sq,3,116)),zq(new wq,28,uq(new sq,2,46),uq(new sq,29,47)),zq(new wq,30,uq(new sq,42,24),uq(new sq,1,25)),zq(new wq,30,uq(new sq,23,15),uq(new sq,28,16))),nq(new jq,32,Ng(qj,65,-1,[6,34,60,86,112,138]),yq(new wq,30,uq(new sq,17,115)),zq(new wq,28,uq(new sq,10,46),uq(new sq,23,47)),zq(new wq,30,uq(new sq,10,24),uq(new sq,35,25)),zq(new wq,30,uq(new sq,19,15),uq(new sq,35,16))),nq(new jq,33,Ng(qj,65,-1,[6,30,58,86,114,142]),zq(new wq,30,uq(new sq,17,115),uq(new sq,1,116)),zq(new wq,28,uq(new sq,14,46),uq(new sq,21,47)),zq(new wq,30,uq(new sq,29,24),uq(new sq,19,25)),zq(new wq,30,uq(new sq,11,15),uq(new sq,46,16))),nq(new jq,34,Ng(qj,65,-1,[6,34,62,90,118,146]),zq(new wq,30,uq(new sq,13,115),uq(new sq,6,116)),zq(new wq,28,uq(new sq,14,46),uq(new sq,23,47)),zq(new wq,30,uq(new sq,44,24),uq(new sq,7,25)),zq(new wq,30,uq(new sq,59,16),uq(new sq,1,17))),nq(new jq,35,Ng(qj,65,-1,[6,30,54,78,102,126,150]),zq(new wq,30,uq(new sq,12,121),uq(new sq,7,122)),zq(new wq,28,uq(new sq,12,47),uq(new sq,26,48)),zq(new wq,30,uq(new sq,39,24),uq(new sq,14,25)),zq(new wq,30,uq(new sq,22,15),uq(new sq,41,16))),nq(new jq,36,Ng(qj,65,-1,[6,24,50,76,102,128,154]),zq(new wq,30,uq(new sq,6,121),uq(new sq,14,122)),zq(new wq,28,uq(new sq,6,47),uq(new sq,34,48)),zq(new wq,30,uq(new sq,46,24),uq(new sq,10,25)),zq(new wq,30,uq(new sq,2,15),uq(new sq,64,16))),nq(new jq,37,Ng(qj,65,-1,[6,28,54,80,106,132,158]),zq(new wq,30,uq(new sq,17,122),uq(new sq,4,123)),zq(new wq,28,uq(new sq,29,46),uq(new sq,14,47)),zq(new wq,30,uq(new sq,49,24),uq(new sq,10,25)),zq(new wq,30,uq(new sq,24,15),uq(new sq,46,16))),nq(new jq,38,Ng(qj,65,-1,[6,32,58,84,110,136,162]),zq(new wq,30,uq(new sq,4,122),uq(new sq,18,123)),zq(new wq,28,uq(new sq,13,46),uq(new sq,32,47)),zq(new wq,30,uq(new sq,48,24),uq(new sq,14,25)),zq(new wq,30,uq(new sq,42,15),uq(new sq,32,16))),nq(new jq,39,Ng(qj,65,-1,[6,26,54,82,110,138,166]),zq(new wq,30,uq(new sq,20,117),uq(new sq,4,118)),zq(new wq,28,uq(new sq,40,47),uq(new sq,7,48)),zq(new wq,30,uq(new sq,43,24),uq(new sq,22,25)),zq(new wq,30,uq(new sq,10,15),uq(new sq,67,16))),nq(new jq,40,Ng(qj,65,-1,[6,30,58,86,114,142,170]),zq(new wq,30,uq(new sq,19,118),uq(new sq,6,119)),zq(new wq,28,uq(new sq,18,47),uq(new sq,31,48)),zq(new wq,30,uq(new sq,34,24),uq(new sq,34,25)),zq(new wq,30,uq(new sq,20,15),uq(new sq,61,16)))])} var Pw='',Ww='\n',Mx='\x1D',my=' ',Qw='(',ty=', Size: ',Vw=':',hy='<\/p>',fy='<h2>Decoded string:<\/h2>',gy="<p class='decoded'>",Yx='ALPHANUMERIC',py='Add not supported on this collection',ry='Add not supported on this list',oy='Array types must match',$x='BYTE',Qx='Bad ECI bits starting with byte ',Lx='Bad ECI value: ',iy='Bad error location',zx='Cannot set a new parent without first clearing the old parent',dy="Character count doesn't apply to this mode",tx='DOMMouseScroll',Gy='DataBlock;',Hy='DataMask;',_x='ECI',jy='Error locator degree does not match number of roots',Iy='ErrorCorrectionLevel;',by='FNC1_FIRST_POSITION',cy='FNC1_SECOND_POSITION',Ky='GF256Poly;',Vx='GF256Polys do not have same GF256 field',Ux='H',Px='ISO8859_1',sy='Index: ',ay='KANJI',Rx='L',Sx='M',ny='Must be array types',Xx='NUMERIC',Oy='Object;',Dx='One or more exceptions caught, see full set in AttachDetachException#getCauses',Tx='Q',Nx='SJIS',Zx='STRUCTURED_APPEND',wx="Should only call onAttach when the widget is detached from the browser's document",xx="Should only call onDetach when the widget is attached to the browser's document",xy='StackTraceElement;',Wx='TERMINATOR',yx="This widget's parent does not implement HasWidgets",yy='Throwable;',Ox='UTF8',Tw='Unknown',Uw='Unknown source',Ny='Version$ECB;',Ly='Version$ECBlocks;',My='Version;',Ay='Widget;',Yw='[',Ey='[B',Cy='[C',vy='[I',zy='[Lcom.google.gwt.user.client.ui.',Fy='[Lcom.onurgunduz.qrdec.client.',wy='[Ljava.lang.',Jy='[[I',Sw='anonymous',Xw='at ',bx='blur',Dy='byte',cx='change',By='char',Fx='className',dx='click',ax='com.onurgunduz.qrdec.client.Qrdec',ux='contextmenu',ex='dblclick',Hx='dimension must be at least 1',Ex='div',rx='error',fx='focus',Rw='function',Gx='gwt-HTML',Jx='height and width must be at least 1',qy='initial capacity was negative or load factor was non-positive',uy='int',gx='keydown',hx='keypress',ix='keyup',Ax='left',jx='load',kx='losecapture',$w='moduleStartup',lx='mousedown',mx='mousemove',nx='mouseout',ox='mouseover',px='mouseup',sx='mousewheel',_w='onModuleLoadStart',vx='paste',Cx='position',ky='r_{i-1} was zero',ey='resultView',qx='scroll',ly='sigmaTilde(0) was zero',Zw='startup',Bx='top',Kx='topI + height and leftJ + width must be <= matrix dimension',Ix='topI and leftJ must be nonnegative';var _;_=oc.prototype={};_.eQ=sc;_.gC=tc;_.hC=uc;_.tM=Mv;_.tI=1;_=Dc.prototype=new oc;_.gC=Gc;_.tI=3;_=Cc.prototype=new Dc;_.gC=Jc;_.tI=4;_=Bc.prototype=new Cc;_.gC=Lc;_.tI=5;_=Ac.prototype=new Bc;_.gC=Oc;_.tI=6;_.b=null;_=ld.prototype=new oc;_.gC=nd;_.tI=0;var qd=0,rd=0;_=Ad.prototype=new ld;_.gC=Jd;_.tI=0;_.d=false;_.g=false;var Bd;_=Nd.prototype=new oc;_.h=Qd;_.gC=Rd;_.tI=0;_.b=null;_=Sd.prototype=new oc;_.h=Vd;_.gC=Wd;_.tI=0;_.b=null;_=ee.prototype=new oc;_.i=je;_.j=ke;_.gC=le;_.k=me;_.tI=0;_=oe.prototype=new ee;_.i=te;_.gC=ue;_.k=ve;_.l=we;_.tI=0;_=ne.prototype=new oe;_.i=Be;_.j=Ce;_.gC=De;_.k=Ee;_.l=Fe;_.tI=0;_=Ge.prototype=new oc;_.gC=Ie;_.tI=0;_=Je.prototype=new Ge;_.gC=Qe;_.tI=0;_.b=Pw;_=Re.prototype=new oc;_.gC=We;_.tI=0;_=Ye.prototype=new Re;_.gC=_e;_.tI=0;_=Xe.prototype=new Ye;_.gC=df;_.tI=0;_=Gf.prototype=new oc;_.gC=Jf;_.tI=0;_.b=false;_.c=null;_=Ff.prototype=new Gf;_.m=Mf;_.n=Of;_.gC=Pf;_.tI=0;var Kf=null;_=Tf.prototype=new oc;_.gC=Vf;_.tI=0;_=Xf.prototype=new oc;_.gC=_f;_.hC=ag;_.tI=0;_.b=0;var Yf=0;_=bg.prototype=new oc;_.gC=kg;_.tI=0;_.b=null;_.c=0;_.d=false;_.e=null;_.f=null;_=lg.prototype=new oc;_.gC=og;_.tI=7;_.b=null;_.c=null;_.d=null;_=qg.prototype=new oc;_.gC=yg;_.tI=0;_=Cg.prototype=new oc;_.gC=Lg;_.tI=0;_.aC=null;_.length=0;_.qI=0;var Rg,Sg;var Yg=[{},{},{1:1,16:1},{16:1,18:1},{16:1,18:1},{2:1,16:1,18:1},{2:1,16:1,18:1},{3:1},{5:1},{7:1},{5:1,6:1,7:1,8:1},{5:1,6:1,7:1,8:1},{5:1,6:1,7:1,8:1},{5:1,6:1,7:1,8:1},{2:1,16:1,18:1},{5:1,6:1,7:1,8:1},{5:1,6:1,7:1,8:1},{5:1,6:1,7:1,8:1,23:1},{21:1},{5:1,6:1,7:1,8:1,23:1},{9:1},{10:1},{10:1},{10:1},{10:1},{10:1},{10:1},{10:1},{10:1},{10:1},{11:1},{26:1},{12:1},{16:1,18:1},{16:1,18:1,25:1},{15:1},{13:1},{14:1},{2:1,16:1,18:1},{2:1,16:1,18:1},{16:1,18:1},{16:1,18:1},{2:1,16:1,18:1},{16:1},{2:1,16:1,18:1,24:1},{2:1,16:1,18:1},{2:1,16:1,18:1},{16:1,27:1},{2:1,16:1,18:1},{16:1,17:1},{2:1,16:1,18:1},{32:1},{32:1},{29:1},{29:1},{29:1},{30:1},{32:1},{4:1,16:1,30:1},{16:1,31:1},{16:1,32:1},{29:1},{2:1,16:1,18:1},{16:1,30:1},{19:1},{20:1},{22:1}];var Uj=null,Vj=null;var bk=false,ck=null;_=lk.prototype=new Gf;_.m=pk;_.n=qk;_.gC=rk;_.tI=0;var mk;_=sk.prototype=new bg;_.gC=vk;_.tI=8;var xk=false;var Fk=null,Gk=null,Hk=null,Ik=null;_=Tk.prototype=new oc;_.gC=Vk;_.tI=9;_.f=null;_=Sk.prototype=new Tk;_.p=al;_.q=bl;_.gC=cl;_.o=dl;_.r=el;_.s=fl;_.tI=10;_.c=false;_.d=0;_.e=null;_=Rk.prototype=new Sk;_.p=il;_.q=jl;_.gC=kl;_.r=ll;_.s=ml;_.tI=11;_=Qk.prototype=new Rk;_.gC=sl;_.t=tl;_.tI=12;_=Pk.prototype=new Qk;_.gC=yl;_.tI=13;_=zl.prototype=new Bc;_.gC=El;_.tI=14;var Al,Bl;_=Gl.prototype=new oc;_.u=Il;_.gC=Jl;_.tI=0;_=Kl.prototype=new oc;_.u=Ml;_.gC=Nl;_.tI=0;_=Ql.prototype=new Sk;_.gC=Tl;_.tI=15;_=Pl.prototype=new Ql;_.gC=Wl;_.tI=16;_=cm.prototype=new Pk;_.gC=mm;_.tI=17;var dm,em,fm;_=nm.prototype=new oc;_.u=pm;_.gC=qm;_.tI=0;_=rm.prototype=new oc;_.gC=tm;_.tI=18;_=um.prototype=new cm;_.gC=xm;_.tI=19;_=Am.prototype=new oc;_.gC=Jm;_.t=Km;_.tI=0;_.b=null;_.c=null;_.d=0;_=Lm.prototype=new oc;_.gC=Tm;_.v=Um;_.w=Vm;_.tI=0;_.b=-1;_.c=null;_=Wm.prototype=new oc;_.gC=an;_.tI=0;_.b=null;_.c=0;_=bn.prototype=new oc;_.gC=hn;_.tI=0;_.b=null;_.c=null;_.d=null;_=jn.prototype=new oc;_.gC=nn;_.tI=0;_.b=0;_.c=0;_.d=null;var rn=null;_=un.prototype=new oc;_.gC=xn;_.tI=20;_.b=null;_.c=0;_=zn.prototype=new oc;_.gC=Dn;_.tI=21;var An;_=En.prototype=new zn;_.gC=Hn;_.x=In;_.tI=22;_=Jn.prototype=new zn;_.gC=Mn;_.x=Nn;_.tI=23;_=On.prototype=new zn;_.gC=Rn;_.x=Sn;_.tI=24;_=Tn.prototype=new zn;_.gC=Wn;_.x=Xn;_.tI=25;_=Yn.prototype=new zn;_.gC=_n;_.x=ao;_.tI=26;_=bo.prototype=new zn;_.gC=fo;_.x=go;_.tI=27;_=ho.prototype=new zn;_.gC=ko;_.x=lo;_.tI=28;_=mo.prototype=new zn;_.gC=po;_.x=qo;_.tI=29;var so,to=false;_=Do.prototype=new oc;_.gC=Io;_.tI=0;_.b=null;_=Jo.prototype=new oc;_.gC=Mo;_.tI=0;_.b=null;_=No.prototype=new oc;_.gC=Wo;_.tI=30;_.b=0;var Oo,Po,Qo,Ro,So;_=Xo.prototype=new oc;_.eQ=cp;_.gC=dp;_.hC=ep;_.tI=31;_.b=0;_.c=null;var Yo,Zo;_=gp.prototype=new oc;_.gC=qp;_.tI=0;_.b=null;_.c=null;_.d=null;_.e=null;var hp,ip;_=rp.prototype=new oc;_.gC=Ap;_.tI=32;_.b=null;_.c=null;_=Bp.prototype=new oc;_.gC=Pp;_.tI=0;_.b=null;var Cp,Dp,Ep,Fp,Gp,Hp,Ip,Jp,Kp;_=Up.prototype=new Cc;_.gC=Yp;_.tI=33;var Vp;_=Zp.prototype=new oc;_.gC=eq;_.tI=0;_.b=null;_=fq.prototype=new Cc;_.gC=iq;_.tI=34;_=jq.prototype=new oc;_.gC=qq;_.tI=35;_.b=null;_.c=null;_.d=0;_.e=0;var kq,lq;_=sq.prototype=new oc;_.gC=vq;_.tI=36;_.b=0;_.c=0;_=wq.prototype=new oc;_.gC=Aq;_.tI=37;_.b=null;_.c=0;_=Dq.prototype=new Bc;_.gC=Gq;_.tI=38;_=Hq.prototype=new Bc;_.gC=Lq;_.tI=39;_=Nq.prototype=new oc;_.gC=Sq;_.tI=0;_.b=null;_.c=0;_=Tq.prototype=new Bc;_.gC=Wq;_.tI=42;_=Zq.prototype=new Bc;_.gC=br;_.tI=44;_=cr.prototype=new Bc;_.gC=gr;_.tI=45;_=hr.prototype=new Bc;_.gC=lr;_.tI=46;_=nr.prototype=new oc;_.gC=pr;_.tI=43;_=mr.prototype=new nr;_.eQ=sr;_.gC=tr;_.hC=ur;_.tI=47;_.b=0;_=wr.prototype=new Bc;_.gC=zr;_.tI=48;_=Ar.prototype=new oc;_.gC=Dr;_.tI=49;_=String.prototype;_.eQ=Nr;_.gC=Qr;_.hC=Rr;_.tI=2;var Ur,Vr=0,Wr;_=_r.prototype=new oc;_.gC=fs;_.tI=0;_=ls.prototype=new Bc;_.gC=os;_.tI=50;_=ps.prototype=new oc;_.y=ss;_.z=ts;_.gC=us;_.B=vs;_.tI=0;_=xs.prototype=new oc;_.eQ=As;_.gC=Bs;_.hC=Cs;_.tI=0;_=ws.prototype=new xs;_.C=Vs;_.gC=Ws;_.tI=0;_.b=null;_.c=null;_.d=false;_.e=0;_.f=null;_=Ys.prototype=new ps;_.eQ=$s;_.gC=_s;_.hC=at;_.tI=51;_=Xs.prototype=new Ys;_.z=gt;_.gC=ht;_.t=it;_.A=jt;_.tI=52;_.b=null;_=kt.prototype=new oc;_.gC=pt;_.v=qt;_.w=rt;_.tI=0;_.b=null;_.c=null;_=tt.prototype=new oc;_.eQ=vt;_.gC=wt;_.hC=xt;_.tI=53;_=st.prototype=new tt;_.gC=At;_.D=Bt;_.E=Ct;_.F=Dt;_.tI=54;_.b=null;_=Et.prototype=new tt;_.gC=Ht;_.D=It;_.E=Jt;_.F=Lt;_.tI=55;_.b=null;_.c=null;_=Mt.prototype=new ps;_.y=Pt;_.G=Qt;_.eQ=St;_.gC=Tt;_.hC=Ut;_.t=Wt;_.tI=56;_=Xt.prototype=new oc;_.gC=bu;_.v=cu;_.w=du;_.tI=0;_.b=0;_.c=null;_=eu.prototype=new Ys;_.z=iu;_.gC=ju;_.t=ku;_.A=lu;_.tI=57;_.b=null;_.c=null;_=mu.prototype=new oc;_.gC=pu;_.v=qu;_.w=ru;_.tI=0;_.b=null;_=su.prototype=new Mt;_.y=Eu;_.G=Fu;_.z=Gu;_.H=Hu;_.gC=Iu;_.A=Ku;_.B=Mu;_.tI=58;_.c=0;_=Ou.prototype=new ws;_.gC=Tu;_.tI=59;_=Uu.prototype=new Ys;_.y=_u;_.z=av;_.gC=bv;_.t=cv;_.A=dv;_.tI=60;_.b=null;_=iv.prototype=new tt;_.gC=mv;_.D=nv;_.E=ov;_.F=qv;_.tI=61;_.b=null;_.c=null;_=rv.prototype=new Bc;_.gC=uv;_.tI=62;_=Av.prototype=new Mt;_.y=Ev;_.G=Fv;_.z=Gv;_.H=Hv;_.gC=Iv;_.t=Jv;_.A=Kv;_.B=Lv;_.tI=63;_.b=null;var $entry=ud;var Qi=new Nq,th=Rq(Pw,uy),qj=Pq(Pw,vy,th),Vi=new Nq,Ji=new Nq,Ri=new Nq,wh=new Nq,zh=new Nq,xh=new Nq,yh=new Nq,Ch=new Nq,Si=new Nq,Aj=Pq(wy,xy,Si),Bh=new Nq,Ah=new Nq,Eh=new Nq,Dh=new Nq,uh=new Nq,vh=new Nq,Hh=new Nq,Gh=new Nq,Fh=new Nq,Ui=new Nq,Lh=new Nq,Kh=new Nq,Ih=new Nq,Jh=new Nq,Oh=new Nq,Nh=new Nq,Mh=new Nq,bi=new Nq,ei=new Nq,Yh=new Nq,Vh=new Nq,Rh=new Nq,Bj=Pq(wy,yy,Vi),Uh=new Nq,Sh=new Nq,Th=new Nq,rj=Pq(zy,Ay,ei),Xh=new Nq,Wh=new Nq,Xi=new Nq,cj=new Nq,ij=new Nq,sh=Rq(Pw,By),pj=Pq(Pw,Cy,sh),ai=new Nq,_h=new Nq,Zh=new Nq,$h=new Nq,di=new Nq,ci=new Nq,Ph=new Nq,Qh=new Nq,gi=new Nq,rh=Rq(Pw,Dy),oj=Pq(Pw,Ey,rh),fi=new Nq,hi=new Nq,ii=new Nq,sj=Pq(Fy,Gy,ii),ri=new Nq,tj=Pq(Fy,Hy,ri),ji=new Nq,ki=new Nq,li=new Nq,mi=new Nq,ni=new Nq,oi=new Nq,pi=new Nq,qi=new Nq,ti=new Nq,si=new Nq,ui=new Nq,uj=Pq(Fy,Iy,ui),Cj=Pq(Pw,Jy,qj),vi=new Nq,xi=new Nq,wi=new Nq,vj=Pq(Fy,Ky,wi),yi=new Nq,zi=new Nq,Ai=new Nq,Bi=new Nq,Di=new Nq,xj=Pq(Fy,Ly,Di),Ei=new Nq,yj=Pq(Fy,My,Ei),Ci=new Nq,wj=Pq(Fy,Ny,Ci),Fi=new Nq,Mi=new Nq,Gi=new Nq,Pi=new Nq,Ii=new Nq,Hi=new Nq,Ki=new Nq,Li=new Nq,Ni=new Nq,Oi=new Nq,Ti=new Nq,Wi=new Nq,zj=Pq(wy,Oy,Qi),gj=new Nq,aj=new Nq,hj=new Nq,Zi=new Nq,Yi=new Nq,fj=new Nq,$i=new Nq,_i=new Nq,bj=new Nq,ej=new Nq,dj=new Nq,jj=new Nq,kj=new Nq,lj=new Nq,mj=new Nq,nj=new Nq;$stats && $stats({moduleName:'qrdec',sessionId:$sessionId,subSystem:'startup',evtGroup:'moduleStartup',millis:(new Date()).getTime(),type:'moduleEvalEnd'});if ($wnd.qrdec) $wnd.qrdec.onScriptLoad(); --></script></body></html>
123912029-ssiagu
qrdec/war/qrdec/BFE66ED6DA53CDDED51A73E0E0F5A796.cache.html
HTML
gpl2
59,012
<html><head><script>var $gwt_version = "2.0.0";var $wnd = parent;var $doc = $wnd.document;var $moduleName, $moduleBase;var $strongName = '225616EDFF7AD0B57A10F7491E84C7E9';var $stats = $wnd.__gwtStatsEvent ? function(a) {return $wnd.__gwtStatsEvent(a);} : null,$sessionId = $wnd.__gwtStatsSessionId ? $wnd.__gwtStatsSessionId : null;$stats && $stats({moduleName:'qrdec',sessionId:$sessionId,subSystem:'startup',evtGroup:'moduleStartup',millis:(new Date()).getTime(),type:'moduleEvalStart'});</script></head><body><script><!-- function pv(){} function lc(){} function Ac(){} function zc(){} function yc(){} function xc(){} function id(){} function xd(){} function Kd(){} function Pd(){} function ke(){} function ne(){} function ve(){} function Ce(){} function Be(){} function kf(){} function jf(){} function xf(){} function Bf(){} function Hf(){} function Rf(){} function Wf(){} function gg(){} function Nj(){} function Uj(){} function yk(){} function Hk(){} function Ik(){} function Lk(){} function Mk(){} function xk(){} function Sk(){} function Tk(){} function wk(){} function vk(){} function uk(){} function el(){} function ll(){} function pl(){} function vl(){} function ul(){} function Jl(){} function Ul(){} function Yl(){} function _l(){} function fm(){} function qm(){} function Bm(){} function Im(){} function Pm(){} function $m(){} function dn(){} function jn(){} function on(){} function tn(){} function yn(){} function Dn(){} function In(){} function Nn(){} function Sn(){} function io(){} function oo(){} function so(){} function Co(){} function No(){} function Yo(){} function gp(){} function zp(){} function Ep(){} function Mp(){} function Qp(){} function Zp(){} function bq(){} function iq(){} function mq(){} function sq(){} function yq(){} function Eq(){} function Jq(){} function Oq(){} function Uq(){} function Tq(){} function br(){} function fr(){} function Er(){} function Qr(){} function Ur(){} function as(){} function _r(){} function Bs(){} function As(){} function Ps(){} function Ys(){} function Xs(){} function ht(){} function pt(){} function At(){} function Jt(){} function Rt(){} function Xt(){} function ru(){} function xu(){} function Nu(){} function Wu(){} function dv(){} function qf(a){Ql()} function nl(a){Ck(a)} function rl(a){Dk(a)} function Dc(){return wi} function qc(){return ri} function Gc(){return ki} function Ic(){return si} function Lc(){return $g} function kd(){return ah} function Gd(){return dh} function Od(){return bh} function Td(){return ch} function me(){return fh} function ue(){return eh} function Ae(){return ih} function Ee(){return hh} function Je(){return gh} function nf(){return mh} function sf(){return of} function tf(){return jh} function zf(){return kh} function Ff(){return lh} function Qf(){return ph} function Uf(){return nh} function cg(){return oh} function Sj(){return Oj} function Tj(){return qh} function Xj(){return rh} function Ak(){return Eh} function Jk(){return Hh} function Rk(){return zh} function Zk(){return wh} function dl(){return sh} function jl(){return vh} function ol(){return th} function sl(){return uh} function yl(){return yh} function Bl(){return xh} function Tl(){return Dh} function Xl(){return Ah} function $l(){return Bh} function cm(){return Ch} function om(){return Gh} function ym(){return Fh} function Hm(){return Jh} function Om(){return Ih} function Tm(){return Kh} function bn(){return Lh} function hn(){return Uh} function mn(){return Mh} function rn(){return Nh} function wn(){return Oh} function Bn(){return Ph} function Gn(){return Qh} function Ln(){return Rh} function Qn(){return Sh} function Vn(){return Th} function no(){return Wh} function ro(){return Vh} function Bo(){return Xh} function Ko(){return Yh} function Xo(){return $h} function fp(){return Zh} function up(){return _h} function Dp(){return ai} function Lp(){return bi} function Pp(){return ci} function Xp(){return fi} function aq(){return di} function fq(){return ei} function lq(){return gi} function qq(){return hi} function xq(){return ji} function Bq(){return ii} function Iq(){return li} function Nq(){return mi} function Sq(){return ni} function Wq(){return qi} function $q(){return oi} function er(){return pi} function ir(){return ti} function tr(){return vi} function Kr(){return ui} function Tr(){return xi} function Zr(){return yi} function es(){return Ji} function zs(){return Di} function Es(){return Ki} function Ms(){return Ai} function Us(){return zi} function _s(){return Ii} function dt(){return Bi} function kt(){return Ci} function wt(){return Fi} function Gt(){return Ei} function Ot(){return Hi} function Ut(){return Gi} function lu(){return Li} function wu(){return Mi} function Gu(){return Ni} function Ru(){return Oi} function Zu(){return Pi} function lv(){return Qi} function De(){De=pv;we()} function Fe(){Fe=pv;De()} function am(){am=pv;Nl()} function kn(){kn=pv;fn()} function pn(){pn=pv;fn()} function un(){un=pv;fn()} function zn(){zn=pv;fn()} function En(){En=pv;fn()} function Jn(){Jn=pv;fn()} function On(){On=pv;fn()} function Tn(){Tn=pv;fn()} function Wl(a){a.c&&Dk(a)} function et(){return null} function Fd(a){return a.h()} function Gf(){return this.b} function _q(){return this.b} function lt(){return this.b} function nu(){return this.c} function Su(){return this.b} function Tu(){return this.c} function pg(){return this.aC} function al(a,b){Wk(a,b,a.f)} function im(a,b){km(a,b,a.d)} function kq(a){ee();return a} function oq(a){ee();return a} function Aq(a){ee();return a} function Gq(a){ee();return a} function Lq(a){ee();return a} function Qq(a){ee();return a} function dr(a){ee();return a} function Yu(a){ee();return a} function Rj(a){Vg(a);null.E()} function Am(){return vm(this)} function ur(){return Cr(this)} function Os(){return this.b.e} function ft(){return this.b.c} function It(){return Ft(this)} function Iu(){return this.b.e} function iu(a,b){bu(this,a,b)} function tu(a){ks(a);return a} function nv(){return this.b.c} function Fc(a,b){ee();return a} function Op(a,b){ee();return a} function pq(a,b){ee();return a} function Hq(a,b){ee();return a} function Mq(a,b){ee();return a} function Rq(a,b){ee();return a} function Sr(a,b){ee();return a} function Md(a,b){a.b=b;return a} function Rd(a,b){a.b=b;return a} function xl(a,b){a.f=b;return a} function tm(a,b){a.c=b;return a} function Rm(a,b){a.d=b;return a} function Gp(a,b){a.b=b;return a} function Yq(a,b){a.b=b;return a} function Hs(a,b){a.b=b;return a} function Vs(){return Et(this.b)} function Qt(){return this.c.b.e} function we(){we=pv;Fe();new Be} function Ar(){Ar=pv;xr={};zr={}} function hr(a,b,c,d,e){return a} function ct(a,b){a.b=b;return a} function Dt(a,b){a.c=b;return a} function Tt(a,b){a.b=b;return a} function iv(a,b){bu(this.b,a,b)} function Pk(){kl(this,(hl(),fl))} function Qk(){kl(this,(hl(),gl))} function Ef(a){a.b=++Cf;return a} function Et(a){return a.b<a.c.w()} function Ls(a){return Is(this,a)} function pu(a){return gu(this,a)} function Vt(){return Et(this.b.b)} function gt(a){return ts(this.b,a)} function Nt(a){return ls(this.b,a)} function Fu(a){return ls(this.b,a)} function hv(a){return au(this.b,a)} function kv(a){return du(this.b,a)} function ov(a){return gu(this.b,a)} function zd(){zd=pv;yd=Bd(new xd)} function Pj(){Pj=pv;Oj=Ef(new Bf)} function Kj(){if(!Dj){tk();Dj=true}} function Hr(a){a.b=new ne;return a} function Jr(a,b){a.b.b+=b;return a} function Fg(a,b){return a&&Cg[a][b]} function qs(b,a){return Rx+a in b.f} function pm(){return tm(new qm,this)} function Xr(a){throw Sr(new Qr,Ux)} function tt(a,b){throw Sr(new Qr,Wx)} function uu(a,b){hs(a,b,0);return a} function zt(){return Dt(new At,this)} function Hj(a,b){return Lf(Jj(),a,b)} function Eg(a,b){return a&&!!Cg[a][b]} function $k(){return tm(new qm,this.b)} function zm(){return this.b<this.c.d-1} function Ns(){return Rs(new Ps,this.b)} function Ws(){return Hg(Ft(this.b),29)} function Ht(){return this.b<this.c.w()} function mv(){return Dt(new At,this.b)} function ju(a){return eu(this,a,0)!=-1} function Lo(){return this.c.b<<3|this.b} function zo(a,b,c){yo();a.b=b;return a} function Zf(a){a.b=tu(new ru);return a} function nt(a,b){return jt(new ht,b,a)} function ut(a,b){(a<0||a>=b)&&yt(a,b)} function Lt(a,b,c){a.b=b;a.c=c;return a} function rp(a,b,c){qp();a.b=b;return a} function zu(a){a.b=tu(new ru);return a} function mt(){return this.c.f[Rx+this.b]} function jt(a,b,c){a.c=c;a.b=b;return a} function an(a,b,c){a.c=b;a.b=c;return a} function _p(a,b,c){a.b=b;a.c=c;return a} function Pu(a,b,c){a.b=b;a.c=c;return a} function du(a,b){ut(b,a.c);return a.b[b]} function jv(a){return eu(this.b,a,0)!=-1} function ot(a){return us(this.c,this.b,a)} function Kg(a,b){return a!=null&&Eg(a.tI,b)} function Kc(a,b){ee();a.b=b;de(a);return a} function fv(a,b){a.b=_t(new Xt,b);return a} function bp(a,b){return a.b[a.b.length-1-b]} function $t(a){a.b=qg(aj,0,0,0,0);return a} function ku(a){return ut(a,this.c),this.b[a]} function rc(){return this.$H||(this.$H=++od)} function pc(a){return this===(a==null?null:a)} function au(a,b){tg(a.b,a.c++,b);return true} function Cd(a){var b;b=a.c;a.c=[];Id(b,a.c)} function rf(a){var b;if(of){b=new jf;Of(a,b)}} function Bp(){Bp=pv;Ap=(Bp(),new zp)} function hl(){hl=pv;fl=new ll;gl=new pl} function bk(){if(!Zj){lk();ok();Zj=true}} function Jj(){!Ej&&(Ej=Wj(new Uj));return Ej} function yt(a,b){throw Rq(new Oq,Xx+a+Yx+b)} function wq(a,b){var c;c=new sq;c.c=1;return c} function bm(a){am();Ol(a,$doc.body);return a} function fe(){try{null.a()}catch(a){return a}} function st(a){this.C(this.w(),a);return true} function hu(a){return tg(this.b,this.c++,a),true} function or(b,a){return b.substr(a,b.length-a)} function Ed(a){return a.b.length>0||a.f.length>0} function Lg(a){return a!=null&&a.tM!=pv&&a.tI!=2} function ae(a,b){a.length>=b&&a.splice(0,b);return a} function Tf(a,b,c,d){a.b=b;a.d=c;a.c=d;return a} function hm(a,b){a.c=b;a.b=qg(Ui,0,8,4,0);return a} function Mf(a,b){!a.b&&(a.b=$t(new Xt));au(a.b,b)} function Au(a,b){var c;c=rs(a.b,b,a);return c==null} function bl(a,b){var c;c=Yk(a,b);c&&cl(b.f);return c} function Yr(a){var b;b=Wr(this.p(),a);return !!b} function Vu(a){var b;b=this.c;this.c=a;return b} function Gj(a){Kj();return Hj(of?of:(of=Ef(new Bf)),a)} function ko(a){a.b=Gp(new Ep,(Qo(),Po));return a} function ks(a){a.b=[];a.f={};a.d=false;a.c=null;a.e=0} function Dd(a){var b;b=a.b;a.b=[];Id(b,a.f);a.f=Hd(a.f)} function uq(a,b,c){var d;d=new sq;d.c=4;d.b=c;return d} function xg(){xg=pv;vg=[];wg=[];yg(new gg,vg,wg)} function Qo(){Qo=pv;Po=Ro(new No,285);Oo=Ro(new No,301)} function Vg(a){if(a!=null){throw Aq(new yq)}return a} function Dr(){if(yr==256){xr=zr;zr={};yr=0}++yr} function Pl(a){Nl();try{Dk(a)}finally{vs(Ml.b,a)!=null}} function Ql(){Nl();try{kl(Ml,Kl)}finally{ks(Ml.b);ks(Ll)}} function Eu(a){var b;return b=rs(this.b,a,this),b==null} function Wt(){var a;a=Hg(Ft(this.b.b),29);return a.z()} function dq(a,b,c){a.c=b;a.b=rg(Zi,0,13,[c]);return a} function eq(a,b,c,d){a.c=b;a.b=rg(Zi,0,13,[c,d]);return a} function te(a,b,c,d){a.b=a.b.substr(0,b-0)+d+or(a.b,c)} function Ir(a,b){a.b.b+=String.fromCharCode(b);return a} function _t(a,b){a.b=qg(aj,0,0,0,0);a.b.length=b;return a} function Ol(a,b){Nl();a.b=hm(new fm,a);a.f=b;Ck(a);return a} function Vo(a,b){if(b==0){throw Gq(new Eq)}return a.c[b]} function Sd(){this.b.d&&Jd(this.b.e,1);return this.b.g} function cs(a){var b;b=Hs(new As,a);return Lt(new Jt,a,b)} function Pt(){var a;return a=Rs(new Ps,this.c.b),Tt(new Rt,a)} function Nl(){Nl=pv;Kl=new Ul;Ll=tu(new ru);Ml=zu(new xu)} function Wj(a){a.e=Zf(new Wf);a.f=null;a.d=false;return a} function Zq(a){return a!=null&&Eg(a.tI,27)&&Hg(a,27).b==this.b} function Yc(a){return a.tM==pv||a.tI==2?a.hC():a.$H||(a.$H=++od)} function vs(a,b){return !b?xs(a):ws(a,b,~~(b.$H||(b.$H=++od)))} function Ie(a,b){return a===b||!!(a.compareDocumentPosition(b)&16)} function rd(a){return function(){return sd(a,this,arguments)}} function Uo(a,b){if(b==0){throw kq(new iq)}return a.b[255-a.c[b]]} function gn(a){fn();if(a<0||a>7){throw Gq(new Eq)}return en[a]} function Yp(a){Tp();if(a<1||a>40){throw Gq(new Eq)}return Rp[a-1]} function vm(a){if(a.b>=a.c.d){throw Yu(new Wu)}return a.c.b[++a.b]} function Wk(a,b,c){Ek(b);im(a.b,b);c.appendChild(b.f);Fk(b,a)} function hs(a,b,c){ks(a);if(b<0||c<0){throw Hq(new Eq,Vx)}return a} function Em(a,b,c){var d;d=b+a.c*c;return (a.b[d>>5]>>>(d&31)&1)!=0} function ts(a,b){var c;c=a.c;a.c=b;if(!a.d){a.d=true;++a.e}return c} function nm(a,b){var c;c=jm(a,b);if(c==-1){throw Yu(new Wu)}mm(a,c)} function ng(a,b){var c,d;c=a;d=og(0,b);rg(c.aC,c.tI,c.qI,d);return d} function bu(a,b,c){(b<0||b>a.c)&&yt(b,a.c);a.b.splice(b,0,c);++a.c} function xs(a){var b;b=a.c;a.c=null;if(a.d){a.d=false;--a.e}return b} function Ho(a){Fo();var b;b=Io(a);if(b){return b}return Io(a^21522)} function Go(a,b){Fo();a.c=Ao(b>>3&3);a.b=(b&7)<<24>>24;return a} function pk(a,b){bk();mk(a,b);b&131072&&a.addEventListener(Vw,jk,false)} function rg(a,b,c,d){xg();Ag(d,vg,wg);d.aC=a;d.tI=b;d.qI=c;return d} function Ag(a,b,c){xg();for(var d=0,e=b.length;d<e;++d){a[b[d]]=c[d]}} function nn(a,b){var c,d;d=a.length;for(c=0;c<d;++c){a[c]^=1431655765}} function eu(a,b,c){for(;c<a.c;++c){if(cv(b,a.b[c])){return c}}return -1} function Hg(a,b){if(a!=null&&!Fg(a.tI,b)){throw Aq(new yq)}return a} function kj(a){if(a!=null&&Eg(a.tI,18)){return a}return Kc(new xc,a)} function Ft(a){if(a.b>=a.c.w()){throw Yu(new Wu)}return a.c.D(a.b++)} function Ok(a){var b;b=tm(new qm,a.b);while(b.b<b.c.d-1){vm(b);xm(b)}} function Hu(){var a;return a=Rs(new Ps,cs(this.b).c.b),Tt(new Rt,a)} function dk(a){return !(a!=null&&a.tM!=pv&&a.tI!=2)&&a!=null&&Eg(a.tI,6)} function Ig(a){if(a!=null&&(a.tM==pv||a.tI==2)){throw Aq(new yq)}return a} function xm(a){if(a.b<0||a.b>=a.c.d){throw Lq(new Jq)}bl(a.c.c,a.c.b[a.b--])} function qo(a,b,c){if(b==null&&c==null){throw Gq(new Eq)}a.b=c;return a} function Ao(a){yo();if(a<0||a>=to.length){throw Gq(new Eq)}return to[a]} function sr(a){if(!(a!=null&&Eg(a.tI,1))){return false}return String(this)==a} function Lf(a,b,c){a.c>0?Mf(a,Tf(new Rf,a,b,c)):$f(a.e,b,c);return new xf} function yg(a,b,c){var d=0,e;for(var f in a){if(e=a[f]){b[d]=f;c[d]=e;++d}}} function jm(a,b){var c;for(c=0;c<a.d;++c){if(a.b[c]==b){return c}}return -1} function Km(a,b){var c;c=b.c;if(c<21||(c&3)!=1){throw Bp(),Bp(),Ap}a.b=b;return a} function us(e,a,b){var c,d=e.f;a=Rx+a;a in d?(c=d[a]):++e.e;d[a]=b;return c} function cl(a){a.style[cx]=sw;a.style[dx]=sw;a.style[ex]=sw} function Bd(a){zd();a.e=Md(new Kd,a);Rd(new Pd,a);a.b=[];a.f=[];a.c=[];return a} function Nd(){this.b.d=true;Dd(this.b);this.b.d=false;return this.b.g=Ed(this.b)} function cv(a,b){return (a==null?null:a)===(b==null?null:b)||a!=null&&Uc(a,b)} function ys(a,b){return (a==null?null:a)===(b==null?null:b)||a!=null&&Uc(a,b)} function vu(a,b){return (a==null?null:a)===(b==null?null:b)||a!=null&&Uc(a,b)} function ls(a,b){return b==null?a.d:b!=null&&Eg(b.tI,1)?qs(a,Hg(b,1)):ps(a,b,~~Yc(b))} function ms(a,b){return b==null?a.c:b!=null&&Eg(b.tI,1)?a.f[Rx+Hg(b,1)]:ns(a,b,~~Yc(b))} function Uc(a,b){return a.tM==pv||a.tI==2?a.eQ(b):(a==null?null:a)===(b==null?null:b)} function rs(a,b,c){return b==null?ts(a,c):b!=null&&Eg(b.tI,1)?us(a,Hg(b,1),c):ss(a,b,c,~~Yc(b))} function sd(a,b,c){var d;d=nd++==0;try{return a.apply(b,c)}finally{d&&Cd((zd(),yd));--nd}} function yj(a,b,c){var d;d=vj;vj=a;b==wj&&_j((we(),a).type)==8192&&(wj=null);c.k(a);vj=d} function Kk(a){var b;switch(_j((we(),a).type)){case 16:case 32:b=He(a);if(!!b&&Ie(this.f,b)){return}}} function He(b){var c=b.relatedTarget;try{var d=c.nodeName;return c}catch(a){return null}} function Mj(){var a;if(Dj){a=(Pj(),new Nj);!!Ej&&Of(Ej,a);return null}return null} function Jo(a){var b;if(!(a!=null&&Eg(a.tI,26))){return false}b=Hg(a,26);return this.c==b.c&&this.b==b.b} function Wr(a,b){var c;while(a.r()){c=a.s();if(b==null?c==null:Uc(b,c)){return a}}return null} function $f(a,b,c){var d;d=Hg(ms(a.b,b),4);if(!d){d=$t(new Xt);rs(a.b,b,d)}tg(d.b,d.c++,c)} function qg(a,b,c,d,e){var f;f=og(e,d);xg();Ag(f,vg,wg);f.aC=a;f.tI=b;f.qI=c;return f} function _n(a){var b,c;c=sw;for(b=0;b<a.length;++b){c=c+String.fromCharCode(a[b]&65535)}return c} function Wp(a){Tp();var b,c;for(b=0;b<Sp.length;++b){c=Sp[b];if(c==a){return Yp(b+7)}Mo(a,c)}return null} function Fs(){var a,b,c;a=0;for(b=this.p();b.r();){c=b.s();if(c!=null){a+=Yc(c);a=~~a}}return a} function xt(){var a,b,c;b=1;a=this.p();while(a.b<a.c.w()){c=Ft(a);b=31*b+(c==null?0:Yc(c));b=~~b}return b} function at(){var a,b;a=0;b=0;this.z()!=null&&(a=Yc(this.z()));this.A()!=null&&(b=Yc(this.A()));return a^b} function js(e,a){var b=e.f;for(var c in b){if(c.charCodeAt(0)==58){var d=nt(e,c.substring(1));a.u(d)}}} function og(a,b){var c=new Array(b);if(a>0){var d=[null,0,false,[0,0]][a];for(var e=0;e<b;++e){c[e]=d}}return c} function Al(a,b){xl(a,(we(),$doc).createElement(gx));a.f[hx]=ix;a.f.innerHTML=b||sw;return a} function il(a,b){hl();Fc(a,fx,b.b.e==0?null:Hg(b.x(qg(cj,66,18,0,0)),22)[0]);return a} function sp(a,b){var c,d;if(a.b==null){throw Hq(new Eq,Hx)}c=b.e;c<=9?(d=0):c<=26?(d=1):(d=2);return a.b[d]} function mm(a,b){var c;if(b<0||b>=a.d){throw Qq(new Oq)}--a.d;for(c=b;c<a.d;++c){tg(a.b,c,a.b[c+1])}tg(a.b,a.d,null)} function Dm(a,b){var c,d;if(b<1){throw Hq(new Eq,jx)}a.c=b;d=b*b;c=d>>5;(d&31)!=0&&++c;a.b=qg(Ti,65,-1,c,1);return a} function Rs(a,b){var c;a.c=b;c=$t(new Xt);a.c.d&&au(c,ct(new Xs,a.c));js(a.c,c);is(a.c,c);a.b=Dt(new At,c);return a} function Ek(a){if(!a.e){Nl();ls(Ml.b,a)&&Pl(a)}else if(a.e){bl(a.e,a)}else if(a.e){throw Mq(new Jq,ax)}} function Dk(a){if(!a.c){throw Mq(new Jq,_w)}try{a.o()}finally{try{a.m()}finally{a.f.__listener=null;a.c=false}}} function Wo(a,b,c){if(b==0||c==0){return 0}if(b==1){return c}if(c==1){return b}return a.b[(a.c[b]+a.c[c])%255]} function So(a,b,c){var d;if(b<0){throw Gq(new Eq)}if(c==0){return a.e}d=qg(Ti,65,-1,b+1,1);d[0]=c;return $o(new Yo,a,d)} function Cr(a){Ar();var b=Rx+a;var c=zr[b];if(c!=null){return c}c=xr[b];c==null&&(c=Br(a));Dr();return zr[b]=c} function Fk(a,b){var c;c=a.e;if(!b){try{!!c&&c.c&&Dk(a)}finally{a.e=null}}else{if(c){throw Mq(new Jq,bx)}a.e=b;b.c&&Ck(a)}} function gwtOnLoad(b,c,d){$moduleName=c;$moduleBase=d;if(b)try{$entry(hj)()}catch(a){b(c)}else{$entry(hj)()}} function Jd(b,c){zd();$wnd.setTimeout(function(){var a=$entry(Fd)(b);a&&$wnd.setTimeout(arguments.callee,c)},c)} function is(g,a){var b=g.b;for(var c in b){if(c==parseInt(c)){var d=b[c];for(var e=0,f=d.length;e<f;++e){a.u(d[e])}}}} function $s(a){var b;if(a!=null&&Eg(a.tI,29)){b=Hg(a,29);if(cv(this.z(),b.z())&&cv(this.A(),b.A())){return true}}return false} function Is(a,b){var c,d,e;if(b!=null&&Eg(b.tI,29)){c=Hg(b,29);d=c.z();if(ls(a.b,d)){e=ms(a.b,d);return vu(c.A(),e)}}return false} function fs(){var a,b,c;c=0;for(b=Rs(new Ps,Hs(new As,Hg(this,31)).b);Et(b.b);){a=Hg(Ft(b.b),29);c+=a.hC();c=~~c}return c} function je(a){var b,c,d;d=a&&a.stack?a.stack.split(yw):[];for(b=0,c=d.length;b<c;++b){d[b]=_d(d[b])}return d} function Cc(a){var b,c,d;c=qg(bj,0,17,a.length,0);for(d=0,b=a.length;d<b;++d){if(!a[d]){throw dr(new br)}c[d]=a[d]}} function ee(){var a,b,c,d;c=ae(je(fe()),2);d=qg(bj,0,17,c.length,0);for(a=0,b=d.length;a<b;++a){d[a]=hr(new fr,ww,c[a],xw,0)}Cc(d)} function Pf(a){var b,c;if(a.b){try{for(c=Dt(new At,a.b);c.b<c.c.w();){b=Hg(Ft(c),3);$f(b.b.e,b.d,b.c)}}finally{a.b=null}}} function _d(a){var b,c,d;d=sw;a=qr(a);b=a.indexOf(tw);if(b!=-1){c=a.indexOf(uw)==0?8:0;d=qr(a.substr(c,b-c))}return d.length>0?d:vw} function sn(a,b){var c,d,e,f,g;c=0;d=0;g=0;for(f=0;f<b;++f){for(e=0;e<b;++e){(e&1)==0&&(c|=1<<d);if(++d==32){a[g++]^=c;d=0;c=0}}}a[g]^=c} function Cn(a,b){var c,d,e,f,g;c=0;d=0;g=0;for(f=0;f<b;++f){for(e=0;e<b;++e){(e+f)%3==0&&(c|=1<<d);if(++d==32){a[g++]^=c;d=0;c=0}}}a[g]^=c} function xn(a,b){var c,d,e,f,g,h;c=0;e=0;h=0;for(g=0;g<b;++g){d=g%3==0;for(f=0;f<b;++f){d&&(c|=1<<e);if(++e==32){a[h++]^=c;e=0;c=0}}}a[h]^=c} function Wn(a,b){var c,d,e,f,g;c=0;d=0;g=0;for(f=0;f<b;++f){for(e=0;e<b;++e){((e+f&1)+e*f%3&1)==0&&(c|=1<<d);if(++d==32){a[g++]^=c;d=0;c=0}}}a[g]^=c} function Mn(a,b){var c,d,e,f,g,h;c=0;d=0;g=0;for(f=0;f<b;++f){for(e=0;e<b;++e){h=e*f;(h&1)==0&&h%3==0&&(c|=1<<d);if(++d==32){a[g++]^=c;d=0;c=0}}}a[g]^=c} function Rn(a,b){var c,d,e,f,g,h;c=0;d=0;g=0;for(f=0;f<b;++f){for(e=0;e<b;++e){h=e*f;((h&1)+h%3&1)==0&&(c|=1<<d);if(++d==32){a[g++]^=c;d=0;c=0}}}a[g]^=c} function ns(h,a,b){var c=h.b[b];if(c){for(var d=0,e=c.length;d<e;++d){var f=c[d];var g=f.z();if(h.y(a,g)){return f.A()}}}return null} function ps(h,a,b){var c=h.b[b];if(c){for(var d=0,e=c.length;d<e;++d){var f=c[d];var g=f.z();if(h.y(a,g)){return true}}}return false} function Id(b,c){var a,e,f,g;for(e=0,f=b.length;e<f;++e){g=b[e];try{g[1]?g[0].h()&&(c[c.length]=g,undefined):g[0].E()}catch(a){a=kj(a);if(!Kg(a,2))throw a}}} function $r(a){var b,c,d,e;e=this.w();a.length<e&&(a=ng(a,e));d=a;c=this.p();for(b=0;b<e;++b){tg(d,b,c.s())}a.length>e&&tg(a,e,null);return a} function de(a){var b,c,d,e;d=je(Lg(a.b)?Ig(a.b):null);e=qg(bj,0,17,d.length,0);for(b=0,c=e.length;b<c;++b){e[b]=hr(new fr,ww,d[b],xw,0)}Cc(e)} function yo(){yo=pv;vo=zo(new so,0,tx);wo=zo(new so,1,ux);xo=zo(new so,2,vx);uo=zo(new so,3,wx);to=rg(Xi,0,11,[wo,vo,uo,xo])} function fn(){fn=pv;en=rg(Wi,0,10,[(kn(),fn(),new jn),(pn(),new on),(un(),new tn),(zn(),new yn),(En(),new Dn),(Jn(),new In),(On(),new Nn),(Tn(),new Sn)])} function Zm(a){if(!Xm){Xm=uu(new ru,29);hs(new ru,29,0)}if(a<0||a>=900){throw Hq(new Eq,nx+a)}return Vg(ms(Xm,Yq(new Tq,a)))} function tg(a,b,c){if(c!=null){if(a.qI>0&&!Fg(c.tI,a.qI)){throw oq(new mq)}if(a.qI<0&&(c.tM==pv||c.tI==2)){throw oq(new mq)}}return a[b]=c} function Ck(a){var b;if(a.c){throw Mq(new Jq,$w)}a.c=true;a.f.__listener=a;b=a.d;a.d=-1;b>0&&(a.d==-1?pk(a.f,b|(a.f.__eventBits||0)):(a.d|=b),undefined);a.l();a.n()} function qr(c){if(c.length==0||c[0]>Qx&&c[c.length-1]>Qx){return c}var a=c.replace(/^(\s*)/,sw);var b=a.replace(/\s*$/,sw);return b} function dp(a,b){var c,d,e;if(b==0){return a.c.e}if(b==1){return a}e=a.b.length;d=qg(Ti,65,-1,e,1);for(c=0;c<e;++c){d[c]=Wo(a.c,a.b[c],b)}return $o(new Yo,a.c,d)} function ep(a,b,c){var d,e,f;if(b<0){throw Gq(new Eq)}if(c==0){return a.c.e}f=a.b.length;e=qg(Ti,65,-1,f+b,1);for(d=0;d<f;++d){e[d]=Wo(a.c,a.b[d],c)}return $o(new Yo,a.c,e)} function Hn(a,b){var c,d,e,f,g,h;c=0;d=0;h=0;for(f=0;f<b;++f){g=~~(f/3)&1;for(e=0;e<b;++e){(e>>1&1)==g&&(c|=1<<d);if(++d==32){a[h++]^=c;d=0;c=0}}}a[h]^=c} function gu(a,b){var c,d,e;b.length<a.c&&(b=(d=b,e=og(0,a.c),rg(d.aC,d.tI,d.qI,e),e));for(c=0;c<a.c;++c){tg(b,c,a.b[c])}b.length>a.c&&tg(b,a.c,null);return b} function Of(a,b){var c;if(b.b){b.b=false;b.c=null}c=b.c;b.c=a.f;try{++a.c;_f(a.e,b,a.d)}finally{--a.c;a.c==0&&Pf(a)}if(c==null){b.b=true;b.c=null}else{b.c=c}} function Yk(a,b){var c,d;if(b.e!=a){return false}try{Fk(b,null)}finally{c=b.f;(d=(we(),c).parentNode,(!d||d.nodeType!=1)&&(d=null),d).removeChild(c);nm(a.b,b)}return true} function Mo(a,b){Fo();a^=b;return Do[a&15]+Do[a>>>4&15]+Do[a>>>8&15]+Do[a>>>12&15]+Do[a>>>16&15]+Do[a>>>20&15]+Do[a>>>24&15]+Do[a>>>28&15]} function ho(a){var b,c,d;b=Sm(a,8);if((b&128)==0){return b&127}else if((b&192)==128){c=Sm(a,8);return (b&63)<<8|c}else if((b&224)==192){d=Sm(a,16);return (b&31)<<16|d}throw Hq(new Eq,sx+b)} function ap(a,b){var c,d,e;if(b==0){return a.b[a.b.length-1]}e=a.b.length;if(b==1){d=0;for(c=0;c<e;++c){d=(Qo(),d^a.b[c])}return d}d=a.b[0];for(c=1;c<e;++c){d=(Qo(),Wo(a.c,b,d)^a.b[c])}return d} function kl(b,c){var i;hl();var a,e,f,g,h;e=null;for(h=b.p();h.r();){g=Hg(h.s(),8);try{c.q(g)}catch(a){a=kj(a);if(Kg(a,18)){f=a;!e&&(e=zu(new xu));i=rs(e.b,f,e)}else throw a}}if(e){throw il(new el,e)}} function Io(a){var b,c,d,e,f,g,h;h=a^21522;b=2147483647;c=0;for(f=0;f<Eo.length;++f){e=Eo[f];g=e[0];if(g==h){return Go(new Co,e[1])}d=Mo(h,g);if(d<b){c=e[1];b=d}}if(b<=3){return Go(new Co,c)}return null} function ss(j,a,b,c){var d=j.b[c];if(d){for(var e=0,f=d.length;e<f;++e){var g=d[e];var h=g.z();if(j.y(a,h)){var i=g.A();g.B(b);return i}}}else{d=j.b[c]=[]}var g=Pu(new Nu,a,b);d.push(g);++j.e;return null} function Br(a){var b,c,d,e;b=0;d=a.length;e=d-4;c=0;while(c<e){b=a.charCodeAt(c+3)+31*(a.charCodeAt(c+2)+31*(a.charCodeAt(c+1)+31*(a.charCodeAt(c)+31*b)))|0;c+=4}while(c<d){b=b*31+a.charCodeAt(c++)}return b|0} function tp(a){qp();switch(a){case 0:return pp;case 1:return np;case 2:return hp;case 3:return op;case 4:return ip;case 5:return kp;case 7:return jp;case 8:return mp;case 9:return lp;default:throw Gq(new Eq);}} function km(a,b,c){var d,e;if(c<0||c>a.d){throw Qq(new Oq)}if(a.d==a.b.length){e=qg(Ui,0,8,a.b.length*2,0);for(d=0;d<a.b.length;++d){tg(e,d,a.b[d])}a.b=e}++a.d;for(d=a.d-1;d>c;--d){tg(a.b,d,a.b[d-1])}tg(a.b,c,b)} function Ip(a,b){var c,d,e,f;e=b.b.length-1;if(e==1){return rg(Ti,65,-1,[b.b[b.b.length-1-1]])}f=qg(Ti,65,-1,e,1);c=0;for(d=1;d<256&&c<e;++d){if(ap(b,d)==0){f[c]=Uo(a.b,d);++c}}if(c!=e){throw Op(new Mp,Nx)}return f} function Ds(a){var b,c,d;if((a==null?null:a)===this){return true}if(!(a!=null&&Eg(a.tI,32))){return false}c=Hg(a,32);if(c.w()!=this.w()){return false}for(b=c.p();b.r();){d=b.s();if(!this.v(d)){return false}}return true} function lo(b,c,d){var a,f,g,h,i;h=c.length;f=qg(Ti,65,-1,h,1);for(g=0;g<h;++g){f[g]=c[g]&255}i=c.length-d;try{Hp(b.b,f,i)}catch(a){a=kj(a);if(Kg(a,25)){throw Bp(),Bp(),Ap}else throw a}for(g=0;g<d;++g){c[g]=f[g]<<24>>24}} function $o(a,b,c){var d,e;if(c==null||c.length==0){throw Gq(new Eq)}a.c=b;d=c.length;if(d>1&&c[0]==0){e=1;while(e<d&&c[e]==0){++e}if(e==d){a.b=b.e.b}else{a.b=qg(Ti,65,-1,d-e,1);Nr(c,e,a.b,0,a.b.length)}}else{a.b=c}return a} function Rl(a){Nl();var b,c;c=Hg(ms(Ll,a),23);b=null;if(a!=null){if(!(b=$doc.getElementById(a))){return null}}if(c){if(!b||c.f==b){return c}}Ll.e==0&&Gj(new Yl);!b?(c=bm(new _l)):(c=Ol(new Jl,b));rs(Ll,a,c);Au(Ml,c);return c} function Gm(a,b,c,d,e){var f,g,h,i,j,k;if(b<0||c<0){throw Hq(new Eq,kx)}if(d<1||e<1){throw Hq(new Eq,lx)}j=c+e;i=b+d;if(i>a.c||j>a.c){throw Hq(new Eq,mx)}for(g=c;g<j;++g){h=a.c*g;for(f=b;f<i;++f){k=f+h;a.b[k>>5]|=1<<(k&31)}}} function Jp(a,b,c,d){var e,f,g,h,i,j;i=c.length;h=qg(Ti,65,-1,i,1);for(f=0;f<i;++f){j=Uo(a.b,c[f]);e=1;for(g=0;g<i;++g){f!=g&&(e=Wo(a.b,e,(Qo(),1^Wo(a.b,c[g],j))))}h[f]=Wo(a.b,ap(b,j),Uo(a.b,e));d&&(h[f]=Wo(a.b,h[f],j))}return h} function _f(a,b,c){var d,e,f,g,h,i,j;g=b.j();d=(h=Hg(ms(a.b,g),4),!h?0:h.c);if(c){for(f=d-1;f>=0;--f){e=(i=Hg(ms(a.b,g),4),Hg((ut(f,i.c),i.b[f]),21));b.i(e)}}else{for(f=0;f<d;++f){e=(j=Hg(ms(a.b,g),4),Hg((ut(f,j.c),j.b[f]),21));b.i(e)}}} function Ro(a,b){var c,d;Qo();a.b=qg(Ti,65,-1,256,1);a.c=qg(Ti,65,-1,256,1);d=1;for(c=0;c<256;++c){a.b[c]=d;d<<=1;d>=256&&(d^=b)}for(c=0;c<255;++c){a.c[a.b[c]]=c}a.e=$o(new Yo,a,rg(Ti,65,-1,[0]));a.d=$o(new Yo,a,rg(Ti,65,-1,[1]));return a} function yp(a){var b,c,d,e,f,g,h,i;f=a.length;b=Dm(new Bm,f);for(g=0;g<f;++g){for(h=0;h<f;++h){a!=null&&a[g][h]==1&&(i=g+b.c*h,b.b[i>>5]|=1<<(i&31),undefined)}}d=ko(new io);e=mo(d,b);c=e.b;Ok(Rl(Ix));al(Rl(Ix),Al(new ul,Jx));al(Rl(Ix),Al(new ul,Kx+c+Lx))} function mo(a,b){var c,d,e,f,g,h,i,j,k,l,m,n,o;k=Km(new Im,b);o=Nm(k);g=Mm(k).c;d=Lm(k);f=cn(d,o,g);n=0;for(h=0;h<f.length;++h){n+=f[h].c}l=qg(Ri,0,-1,n,1);m=0;for(i=0;i<f.length;++i){e=f[i];c=e.b;j=e.c;lo(a,c,j);for(h=0;h<j;++h){l[m++]=c[h]}}return ao(l,o)} function vt(a){var b,c,d,e,f;if((a==null?null:a)===this){return true}if(!(a!=null&&Eg(a.tI,30))){return false}f=Hg(a,30);if(this.w()!=f.w()){return false}d=this.p();e=f.p();while(d.b<d.c.w()){b=Ft(d);c=Ft(e);if(!(b==null?c==null:Uc(b,c))){return false}}return true} function Up(a,b,c,d,e,f,g){var h,i,j,k,l;Tp();a.e=b;a.b=c;a.c=rg($i,0,14,[d,e,f,g]);l=0;i=d.c;j=d.b;for(k=0;k<j.length;++k){h=j[k];l+=h.b*(h.c+i)}a.d=l;return a} function cp(a,b){var c,d,e,f,g,h,i,j;if(a.c!=b.c){throw Hq(new Eq,xx)}if(a.b[0]==0||b.b[0]==0){return a.c.e}d=a.b;e=d.length;f=b.b;g=f.length;j=qg(Ti,65,-1,e+g-1,1);for(h=0;h<e;++h){c=d[h];for(i=0;i<g;++i){j[h+i]=(Qo(),j[h+i]^Wo(a.c,c,f[i]))}}return $o(new Yo,a.c,j)} function co(a,b,c,d){var e,f;f=qg(Ri,0,-1,c,1);if(c<<3>8*(a.d.length-a.c)-a.b){throw Bp(),Bp(),Ap}for(e=0;e<c;++e){f[e]=Sm(a,8)<<24>>24}go(f);Jr(b,_n(f));au(d.b,f)} function Hd(a){var b,c,d,e,f,g;b=false;d=a.length;f=(new Date).getTime();while((new Date).getTime()-f<100){for(c=0;c<d;++c){g=a[c];if(!g){continue}if(!g[0].h()){a[c]=null;b=true}}}if(b){e=[];for(c=0;c<d;++c){if(!a[c]){continue}e[e.length]=a[c]}return e}else{return a}} function hj(){!!$stats&&$stats({moduleName:$moduleName,sessionId:$sessionId,subSystem:zw,evtGroup:Aw,millis:(new Date).getTime(),type:Bw,className:Cw});$wnd.decode=yp} function bo(a,b,c,d){var e,f,g;g=b.b.b.length;while(c>1){f=Sm(a,11);Ir(b,Yn[~~(f/45)]);Ir(b,Yn[f%45]);c-=2}c==1&&Ir(b,Yn[Sm(a,6)]);if(d){for(e=g;e<b.b.b.length;++e){b.b.b.charCodeAt(e)==37&&(e<b.b.b.length-1&&b.b.b.charCodeAt(e+1)==37?te(b.b,e+1,e+1+1,sw):te(b.b,e,e+1,ox))}}} function Sm(a,b){var c,d,e,f,g;if(b<1||b>32){throw Gq(new Eq)}f=0;if(a.b>0){c=8-a.b;g=b<c?b:c;d=c-g;e=255>>8-g<<d;f=(a.d[a.c]&e)>>d;b-=g;a.b+=g;if(a.b==8){a.b=0;++a.c}}if(b>0){while(b>=8){f=f<<8|a.d[a.c]&255;++a.c;b-=8}if(b>0){d=8-b;e=255>>d<<d;f=f<<b|(a.d[a.c]&e)>>d;a.b+=b}}return f} function ws(h,a,b){var c=h.b[b];if(c){for(var d=0,e=c.length;d<e;++d){var f=c[d];var g=f.z();if(h.y(a,g)){c.length==1?delete h.b[b]:c.splice(d,1);--h.e;return f.A()}}}return null} function _o(a,b){var c,d,e,f,g,h;if(a.c!=b.c){throw Hq(new Eq,xx)}if(a.b[0]==0){return b}if(b.b[0]==0){return a}f=a.b;d=b.b;if(f.length>d.length){h=f;f=d;d=h}g=qg(Ti,65,-1,d.length,1);e=d.length-f.length;Nr(d,0,g,0,e);for(c=e;c<d.length;++c){g[c]=(Qo(),f[c-e]^d[c])}return $o(new Yo,a.c,g)} function $n(){$n=pv;Yn=rg(Si,0,-1,[48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,32,36,37,42,43,45,46,47,58]);Zn=false} function fo(a,b,c){var d,e,f;while(c>=3){e=Sm(a,10);if(e>=1000){throw Bp(),Bp(),Ap}Ir(b,Yn[~~(e/100)]);Ir(b,Yn[~~(e/10)%10]);Ir(b,Yn[e%10]);c-=3}if(c==2){f=Sm(a,7);if(f>=100){throw Bp(),Bp(),Ap}Ir(b,Yn[~~(f/10)]);Ir(b,Yn[f%10])}else if(c==1){d=Sm(a,4);if(d>=10){throw Bp(),Bp(),Ap}Ir(b,Yn[d])}} function eo(a,b,c){var d,e,f,g;e=qg(Ri,0,-1,2*c,1);f=0;while(c>0){g=Sm(a,13);d=~~(g/192)<<8|g%192;d<7936?(d+=33088):(d+=49472);e[f]=d>>8<<24>>24;e[f+1]=d<<24>>24;f+=2;--c}Jr(b,_n(e))} function Vp(a){var b,c,d,e,f,g;c=17+4*a.e;b=Dm(new Bm,c);Gm(b,0,0,9,9);Gm(b,0,c-8,9,8);Gm(b,c-8,0,8,9);e=a.b.length;for(f=0;f<e;++f){d=a.b[f]-2;for(g=0;g<e;++g){if(f==0&&(g==0||g==e-1)||f==e-1&&g==0){continue}Gm(b,d,a.b[g]-2,5,5)}}Gm(b,9,6,c-17,1);Gm(b,6,9,1,c-17);if(a.e>6){Gm(b,0,c-11,6,3);Gm(b,c-11,0,3,6)}return b} --></script> <script><!-- function Nm(a){var b,c,d,e,f,g,h;if(a.d){return a.d}b=a.b.c;g=b-17>>2;if(g<=6){return Yp(g)}h=0;for(c=5;c>=0;--c){f=b-11;for(e=b-9;e>=f;--e){h=Em(a.b,c,e)?h<<1|1:h<<1}}a.d=Wp(h);if(a.d){return a.d}h=0;for(e=5;e>=0;--e){d=b-11;for(c=b-11;c>=d;--c){h=Em(a.b,c,e)?h<<1|1:h<<1}}a.d=Wp(h);if(a.d){return a.d}throw Bp(),Bp(),Ap} function qp(){qp=pv;pp=rp(new gp,rg(Ti,65,-1,[0,0,0]),yx);np=rp(new gp,rg(Ti,65,-1,[10,12,14]),zx);hp=rp(new gp,rg(Ti,65,-1,[9,11,13]),Ax);op=rp(new gp,rg(Ti,65,-1,[0,0,0]),Bx);ip=rp(new gp,rg(Ti,65,-1,[8,16,16]),Cx);jp=rp(new gp,null,Dx);mp=rp(new gp,rg(Ti,65,-1,[8,10,12]),Ex);kp=rp(new gp,null,Fx);lp=rp(new gp,null,Gx)} function tk(){var d=$wnd.onbeforeunload;var e=$wnd.onunload;$wnd.onbeforeunload=function(a){var b,c;try{b=$entry(Mj)()}finally{c=d&&d(a)}if(b!=null){return b}if(c!=null){return c}};$wnd.onunload=$entry(function(a){try{Dj&&rf(Jj())}finally{e&&e(a);$wnd.onresize=null;$wnd.onscroll=null;$wnd.onbeforeunload=null;$wnd.onunload=null}})} function ok(){$wnd.addEventListener(Pw,$entry(function(a){var b=$wnd.__captureElem;if(b&&!a.relatedTarget){if(Yw==a.target.tagName.toLowerCase()){var c=$doc.createEvent(Zw);c.initMouseEvent(Rw,true,true,$wnd,0,a.screenX,a.screenY,a.clientX,a.clientY,a.ctrlKey,a.altKey,a.shiftKey,a.metaKey,a.button,null);b.dispatchEvent(c)}}}),true);$wnd.addEventListener(Vw,ik,true)} function Hp(a,b,c){var d,e,f,g,h,i,j,k,l,m,n,o,p;k=$o(new Yo,a.b,b);p=qg(Ti,65,-1,c,1);d=a.b==(Qo(),Oo);i=true;for(h=0;h<c;++h){g=ap(k,a.b.b[d?h+1:h]);p[p.length-1-h]=g;g!=0&&(i=false)}if(i){return}o=$o(new Yo,a.b,p);n=Kp(a,So(a.b,c,1),o,c);m=n[0];j=n[1];e=Ip(a,m);f=Jp(a,j,e,d);for(h=0;h<e.length;++h){l=b.length-1-Vo(a.b,e[h]);if(l<0){throw Op(new Mp,Mx)}b[l]=b[l]^f[h]}} function Lm(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p;h=Mm(a);o=Nm(a);f=gn(h.b);g=a.b.c;f.t(a.b.b,g);i=Vp(o);l=true;m=qg(Ri,0,-1,o.d,1);n=0;e=0;b=0;for(k=g-1;k>0;k-=2){k==6&&--k;for(d=0;d<g;++d){j=l?g-1-d:d;for(c=0;c<2;++c){if(!(p=j+i.c*(k-c),(i.b[p>>5]>>>(p&31)&1)!=0)){++b;e<<=1;Em(a.b,j,k-c)&&(e|=1);if(b==8){m[n++]=e<<24>>24;b=0;e=0}}}}l^=true}if(n!=o.d){throw Bp(),Bp(),Ap}return m} function Mm(a){var b,c,d,e,f;if(a.c){return a.c}c=0;for(f=0;f<6;++f){c=Em(a.b,8,f)?c<<1|1:c<<1}c=Em(a.b,8,7)?c<<1|1:c<<1;c=Em(a.b,8,8)?c<<1|1:c<<1;c=Em(a.b,7,8)?c<<1|1:c<<1;for(d=5;d>=0;--d){c=Em(a.b,d,8)?c<<1|1:c<<1}a.c=Ho(c);if(a.c){return a.c}b=a.b.c;c=0;e=b-8;for(d=b-1;d>=e;--d){c=Em(a.b,d,8)?c<<1|1:c<<1}for(f=b-7;f<b;++f){c=Em(a.b,8,f)?c<<1|1:c<<1}a.c=Ho(c);if(a.c){return a.c}throw Bp(),Bp(),Ap} function _j(a){switch(a){case Dw:return 4096;case Ew:return 1024;case Fw:return 1;case Gw:return 2;case Hw:return 2048;case Iw:return 128;case Jw:return 256;case Kw:return 512;case Lw:return 32768;case Mw:return 8192;case Nw:return 4;case Ow:return 64;case Pw:return 32;case Qw:return 16;case Rw:return 8;case Sw:return 16384;case Tw:return 65536;case Uw:return 131072;case Vw:return 131072;case Ww:return 262144;case Xw:return 524288;}} function ds(a){var b,c,d,e,f;if((a==null?null:a)===this){return true}if(!(a!=null&&Eg(a.tI,31))){return false}e=Hg(a,31);if(Hg(this,31).e!=e.e){return false}for(c=Rs(new Ps,Hs(new As,e).b);Et(c.b);){b=Hg(Ft(c.b),29);d=b.z();f=b.A();if(!(d==null?Hg(this,31).d:d!=null&&Eg(d.tI,1)?qs(Hg(this,31),Hg(d,1)):ps(Hg(this,31),d,~~Yc(d)))){return false}if(!cv(f,d==null?Hg(this,31).c:d!=null&&Eg(d.tI,1)?Hg(this,31).f[Rx+Hg(d,1)]:ns(Hg(this,31),d,~~Yc(d)))){return false}}return true} function ao(b,c){$n();var a,e,f,g,h,i,j,k;e=Rm(new Pm,b);j=Hr(new Er);h=false;f=fv(new dv,1);do{if(8*(e.d.length-e.c)-e.b<4){i=(qp(),pp)}else{try{i=tp(Sm(e,4))}catch(a){a=kj(a);if(Kg(a,24)){throw Bp(),Bp(),Ap}else throw a}}if(i!=(qp(),pp)){if(i==kp||i==lp){h=true}else if(i==op){Sm(e,16)}else if(i==jp){k=ho(e);Zm(k);throw Bp(),Bp(),Ap}else{g=Sm(e,sp(i,c));if(i==np){fo(e,j,g)}else if(i==hp){bo(e,j,g,h)}else if(i==ip){co(e,j,g,f)}else if(i==mp){eo(e,j,g)}else{throw Bp(),Bp(),Ap}}}}while(i!=(qp(),pp));return qo(new oo,b,j.b.b)} function cn(a,b,c){var d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t;if(a.length!=b.d){throw Gq(new Eq)}f=b.c[c.b];t=0;e=f.b;for(g=0;g<e.length;++g){t+=e[g].b}q=qg(Vi,0,9,t,0);o=0;for(i=0;i<e.length;++i){d=e[i];for(g=0;g<d.b;++g){n=d.c;l=f.c+n;q[o++]=an(new $m,n,qg(Ri,0,-1,l,1))}}s=q[0].b.length;j=q.length-1;while(j>=0){m=q[j].b.length;if(m==s){break}--j}++j;r=s-f.c;p=0;for(g=0;g<r;++g){for(i=0;i<o;++i){q[i].b[g]=a[p++]}}for(i=j;i<o;++i){q[i].b[r]=a[p++]}k=q[0].b.length;for(g=r;g<k;++g){for(i=0;i<o;++i){h=i<j?g:g+1;q[i].b[h]=a[p++]}}return q} function Kp(a,b,c,d){var e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w;if(b.b.length-1<c.b.length-1){w=b;b=c;c=w}l=b;k=c;o=a.b.d;n=a.b.e;u=a.b.e;t=a.b.d;while(k.b.length-1>=~~(d/2)){m=l;p=o;v=u;l=k;o=n;u=t;if(l.b[0]==0){throw Op(new Mp,Ox)}k=m;j=a.b.e;f=bp(l,l.b.length-1);g=Uo(a.b,f);while(k.b.length-1>=l.b.length-1&&k.b[0]!=0){e=k.b.length-1-(l.b.length-1);q=Wo(a.b,bp(k,k.b.length-1),g);j=_o(j,So(a.b,e,q));k=_o(k,ep(l,e,q))}n=_o(cp(j,o),p);t=_o(cp(j,u),v)}s=t.b[t.b.length-1];if(s==0){throw Op(new Mp,Px)}h=Uo(a.b,s);r=dp(t,h);i=dp(k,h);return rg(Yi,0,12,[r,i])} function Nr(a,b,c,d,e){var f,g,h,i,j,k,l,m,n;if(a==null||c==null){throw dr(new br)}m=a.tM==pv||a.tI==2?a.gC():_g;i=c.tM==pv||c.tI==2?c.gC():_g;if((m.c&4)==0||(i.c&4)==0){throw pq(new mq,Sx)}l=m.b;g=i.b;if(l.c!=g.c||(l.c&1)!=0&&l!=g){throw pq(new mq,Tx)}n=a.length;j=c.length;if(b<0||d<0||e<0||b+e>n||d+e>j){throw Qq(new Oq)}if(((l.c&1)==0||(l.c&4)!=0)&&m!=i){k=Hg(a,28);f=Hg(c,28);if((a==null?null:a)===(c==null?null:c)&&b<d){b+=e;for(h=d+e;h-->d;){tg(f,h,k[--b])}}else{for(h=d+e;d<h;){tg(f,d++,k[b++])}}}else{Array.prototype.splice.apply(c,[d,e].concat(a.slice(b,b+e)))}} function go(a){var b,c,d,e,f,g,h,i,j,k;if(Zn){return px}if(a.length>3&&a[0]==-17&&a[1]==-69&&a[2]==-65){return qx}f=a.length;b=true;c=true;i=false;g=0;j=false;e=false;for(d=0;d<f&&(b||c);++d){k=a[d]&255;if(k==194||k==195&&d<f-1){h=a[d+1]&255;h<=191&&(k==194&&h>=160||k==195&&h>=128)&&(j=true)}k>=127&&k<=159&&(b=false);k>=161&&k<=223&&!e&&++g;!e&&(k>=240&&k<=255||k==128||k==160)&&(c=false);if((k>=129&&k<=159||k>=224&&k<=239)&&d<f-1){i=true;if(e){e=false}else{e=true;h=a[d+1]&255;(h<64||h>252)&&(c=false)}}else{e=false}}if(c&&(i||20*g>f)){return px}if(!j&&b){return rx}return qx} function lk(){ik=$entry(function(a){if(hk(a)){var b=gk;if(b&&b.__listener){if(dk(b.__listener)){yj(a,b,b.__listener);a.stopPropagation()}}}});hk=$entry(function(a){return true});jk=$entry(function(a){var b,c=this;while(c&&!(b=c.__listener)){c=c.parentNode}c&&c.nodeType!=1&&(c=null);b&&dk(b)&&yj(a,c,b)});$wnd.addEventListener(Fw,ik,true);$wnd.addEventListener(Gw,ik,true);$wnd.addEventListener(Nw,ik,true);$wnd.addEventListener(Rw,ik,true);$wnd.addEventListener(Ow,ik,true);$wnd.addEventListener(Qw,ik,true);$wnd.addEventListener(Pw,ik,true);$wnd.addEventListener(Uw,ik,true);$wnd.addEventListener(Iw,hk,true);$wnd.addEventListener(Kw,hk,true);$wnd.addEventListener(Jw,hk,true)} function mk(a,b){var c=(a.__eventBits||0)^b;a.__eventBits=b;if(!c)return;c&1&&(a.onclick=b&1?jk:null);c&2&&(a.ondblclick=b&2?jk:null);c&4&&(a.onmousedown=b&4?jk:null);c&8&&(a.onmouseup=b&8?jk:null);c&16&&(a.onmouseover=b&16?jk:null);c&32&&(a.onmouseout=b&32?jk:null);c&64&&(a.onmousemove=b&64?jk:null);c&128&&(a.onkeydown=b&128?jk:null);c&256&&(a.onkeypress=b&256?jk:null);c&512&&(a.onkeyup=b&512?jk:null);c&1024&&(a.onchange=b&1024?jk:null);c&2048&&(a.onfocus=b&2048?jk:null);c&4096&&(a.onblur=b&4096?jk:null);c&8192&&(a.onlosecapture=b&8192?jk:null);c&16384&&(a.onscroll=b&16384?jk:null);c&32768&&(a.onload=b&32768?jk:null);c&65536&&(a.onerror=b&65536?jk:null);c&131072&&(a.onmousewheel=b&131072?jk:null);c&262144&&(a.oncontextmenu=b&262144?jk:null);c&524288&&(a.onpaste=b&524288?jk:null)} function Fo(){Fo=pv;Eo=rg(dj,0,20,[rg(Ti,65,-1,[21522,0]),rg(Ti,65,-1,[20773,1]),rg(Ti,65,-1,[24188,2]),rg(Ti,65,-1,[23371,3]),rg(Ti,65,-1,[17913,4]),rg(Ti,65,-1,[16590,5]),rg(Ti,65,-1,[20375,6]),rg(Ti,65,-1,[19104,7]),rg(Ti,65,-1,[30660,8]),rg(Ti,65,-1,[29427,9]),rg(Ti,65,-1,[32170,10]),rg(Ti,65,-1,[30877,11]),rg(Ti,65,-1,[26159,12]),rg(Ti,65,-1,[25368,13]),rg(Ti,65,-1,[27713,14]),rg(Ti,65,-1,[26998,15]),rg(Ti,65,-1,[5769,16]),rg(Ti,65,-1,[5054,17]),rg(Ti,65,-1,[7399,18]),rg(Ti,65,-1,[6608,19]),rg(Ti,65,-1,[1890,20]),rg(Ti,65,-1,[597,21]),rg(Ti,65,-1,[3340,22]),rg(Ti,65,-1,[2107,23]),rg(Ti,65,-1,[13663,24]),rg(Ti,65,-1,[12392,25]),rg(Ti,65,-1,[16177,26]),rg(Ti,65,-1,[14854,27]),rg(Ti,65,-1,[9396,28]),rg(Ti,65,-1,[8579,29]),rg(Ti,65,-1,[11994,30]),rg(Ti,65,-1,[11245,31])]);Do=rg(Ti,65,-1,[0,1,1,2,1,2,2,3,1,2,2,3,2,3,3,4])} function Tp(){Tp=pv;Sp=rg(Ti,65,-1,[31892,34236,39577,42195,48118,51042,55367,58893,63784,68472,70749,76311,79154,84390,87683,92361,96236,102084,102881,110507,110734,117786,119615,126325,127568,133589,136944,141498,145311,150283,152622,158308,161089,167017]);Rp=rg(_i,0,15,[Up(new Qp,1,rg(Ti,65,-1,[]),dq(new bq,7,_p(new Zp,1,19)),dq(new bq,10,_p(new Zp,1,16)),dq(new bq,13,_p(new Zp,1,13)),dq(new bq,17,_p(new Zp,1,9))),Up(new Qp,2,rg(Ti,65,-1,[6,18]),dq(new bq,10,_p(new Zp,1,34)),dq(new bq,16,_p(new Zp,1,28)),dq(new bq,22,_p(new Zp,1,22)),dq(new bq,28,_p(new Zp,1,16))),Up(new Qp,3,rg(Ti,65,-1,[6,22]),dq(new bq,15,_p(new Zp,1,55)),dq(new bq,26,_p(new Zp,1,44)),dq(new bq,18,_p(new Zp,2,17)),dq(new bq,22,_p(new Zp,2,13))),Up(new Qp,4,rg(Ti,65,-1,[6,26]),dq(new bq,20,_p(new Zp,1,80)),dq(new bq,18,_p(new Zp,2,32)),dq(new bq,26,_p(new Zp,2,24)),dq(new bq,16,_p(new Zp,4,9))),Up(new Qp,5,rg(Ti,65,-1,[6,30]),dq(new bq,26,_p(new Zp,1,108)),dq(new bq,24,_p(new Zp,2,43)),eq(new bq,18,_p(new Zp,2,15),_p(new Zp,2,16)),eq(new bq,22,_p(new Zp,2,11),_p(new Zp,2,12))),Up(new Qp,6,rg(Ti,65,-1,[6,34]),dq(new bq,18,_p(new Zp,2,68)),dq(new bq,16,_p(new Zp,4,27)),dq(new bq,24,_p(new Zp,4,19)),dq(new bq,28,_p(new Zp,4,15))),Up(new Qp,7,rg(Ti,65,-1,[6,22,38]),dq(new bq,20,_p(new Zp,2,78)),dq(new bq,18,_p(new Zp,4,31)),eq(new bq,18,_p(new Zp,2,14),_p(new Zp,4,15)),eq(new bq,26,_p(new Zp,4,13),_p(new Zp,1,14))),Up(new Qp,8,rg(Ti,65,-1,[6,24,42]),dq(new bq,24,_p(new Zp,2,97)),eq(new bq,22,_p(new Zp,2,38),_p(new Zp,2,39)),eq(new bq,22,_p(new Zp,4,18),_p(new Zp,2,19)),eq(new bq,26,_p(new Zp,4,14),_p(new Zp,2,15))),Up(new Qp,9,rg(Ti,65,-1,[6,26,46]),dq(new bq,30,_p(new Zp,2,116)),eq(new bq,22,_p(new Zp,3,36),_p(new Zp,2,37)),eq(new bq,20,_p(new Zp,4,16),_p(new Zp,4,17)),eq(new bq,24,_p(new Zp,4,12),_p(new Zp,4,13))),Up(new Qp,10,rg(Ti,65,-1,[6,28,50]),eq(new bq,18,_p(new Zp,2,68),_p(new Zp,2,69)),eq(new bq,26,_p(new Zp,4,43),_p(new Zp,1,44)),eq(new bq,24,_p(new Zp,6,19),_p(new Zp,2,20)),eq(new bq,28,_p(new Zp,6,15),_p(new Zp,2,16))),Up(new Qp,11,rg(Ti,65,-1,[6,30,54]),dq(new bq,20,_p(new Zp,4,81)),eq(new bq,30,_p(new Zp,1,50),_p(new Zp,4,51)),eq(new bq,28,_p(new Zp,4,22),_p(new Zp,4,23)),eq(new bq,24,_p(new Zp,3,12),_p(new Zp,8,13))),Up(new Qp,12,rg(Ti,65,-1,[6,32,58]),eq(new bq,24,_p(new Zp,2,92),_p(new Zp,2,93)),eq(new bq,22,_p(new Zp,6,36),_p(new Zp,2,37)),eq(new bq,26,_p(new Zp,4,20),_p(new Zp,6,21)),eq(new bq,28,_p(new Zp,7,14),_p(new Zp,4,15))),Up(new Qp,13,rg(Ti,65,-1,[6,34,62]),dq(new bq,26,_p(new Zp,4,107)),eq(new bq,22,_p(new Zp,8,37),_p(new Zp,1,38)),eq(new bq,24,_p(new Zp,8,20),_p(new Zp,4,21)),eq(new bq,22,_p(new Zp,12,11),_p(new Zp,4,12))),Up(new Qp,14,rg(Ti,65,-1,[6,26,46,66]),eq(new bq,30,_p(new Zp,3,115),_p(new Zp,1,116)),eq(new bq,24,_p(new Zp,4,40),_p(new Zp,5,41)),eq(new bq,20,_p(new Zp,11,16),_p(new Zp,5,17)),eq(new bq,24,_p(new Zp,11,12),_p(new Zp,5,13))),Up(new Qp,15,rg(Ti,65,-1,[6,26,48,70]),eq(new bq,22,_p(new Zp,5,87),_p(new Zp,1,88)),eq(new bq,24,_p(new Zp,5,41),_p(new Zp,5,42)),eq(new bq,30,_p(new Zp,5,24),_p(new Zp,7,25)),eq(new bq,24,_p(new Zp,11,12),_p(new Zp,7,13))),Up(new Qp,16,rg(Ti,65,-1,[6,26,50,74]),eq(new bq,24,_p(new Zp,5,98),_p(new Zp,1,99)),eq(new bq,28,_p(new Zp,7,45),_p(new Zp,3,46)),eq(new bq,24,_p(new Zp,15,19),_p(new Zp,2,20)),eq(new bq,30,_p(new Zp,3,15),_p(new Zp,13,16))),Up(new Qp,17,rg(Ti,65,-1,[6,30,54,78]),eq(new bq,28,_p(new Zp,1,107),_p(new Zp,5,108)),eq(new bq,28,_p(new Zp,10,46),_p(new Zp,1,47)),eq(new bq,28,_p(new Zp,1,22),_p(new Zp,15,23)),eq(new bq,28,_p(new Zp,2,14),_p(new Zp,17,15))),Up(new Qp,18,rg(Ti,65,-1,[6,30,56,82]),eq(new bq,30,_p(new Zp,5,120),_p(new Zp,1,121)),eq(new bq,26,_p(new Zp,9,43),_p(new Zp,4,44)),eq(new bq,28,_p(new Zp,17,22),_p(new Zp,1,23)),eq(new bq,28,_p(new Zp,2,14),_p(new Zp,19,15))),Up(new Qp,19,rg(Ti,65,-1,[6,30,58,86]),eq(new bq,28,_p(new Zp,3,113),_p(new Zp,4,114)),eq(new bq,26,_p(new Zp,3,44),_p(new Zp,11,45)),eq(new bq,26,_p(new Zp,17,21),_p(new Zp,4,22)),eq(new bq,26,_p(new Zp,9,13),_p(new Zp,16,14))),Up(new Qp,20,rg(Ti,65,-1,[6,34,62,90]),eq(new bq,28,_p(new Zp,3,107),_p(new Zp,5,108)),eq(new bq,26,_p(new Zp,3,41),_p(new Zp,13,42)),eq(new bq,30,_p(new Zp,15,24),_p(new Zp,5,25)),eq(new bq,28,_p(new Zp,15,15),_p(new Zp,10,16))),Up(new Qp,21,rg(Ti,65,-1,[6,28,50,72,94]),eq(new bq,28,_p(new Zp,4,116),_p(new Zp,4,117)),dq(new bq,26,_p(new Zp,17,42)),eq(new bq,28,_p(new Zp,17,22),_p(new Zp,6,23)),eq(new bq,30,_p(new Zp,19,16),_p(new Zp,6,17))),Up(new Qp,22,rg(Ti,65,-1,[6,26,50,74,98]),eq(new bq,28,_p(new Zp,2,111),_p(new Zp,7,112)),dq(new bq,28,_p(new Zp,17,46)),eq(new bq,30,_p(new Zp,7,24),_p(new Zp,16,25)),dq(new bq,24,_p(new Zp,34,13))),Up(new Qp,23,rg(Ti,65,-1,[6,30,54,74,102]),eq(new bq,30,_p(new Zp,4,121),_p(new Zp,5,122)),eq(new bq,28,_p(new Zp,4,47),_p(new Zp,14,48)),eq(new bq,30,_p(new Zp,11,24),_p(new Zp,14,25)),eq(new bq,30,_p(new Zp,16,15),_p(new Zp,14,16))),Up(new Qp,24,rg(Ti,65,-1,[6,28,54,80,106]),eq(new bq,30,_p(new Zp,6,117),_p(new Zp,4,118)),eq(new bq,28,_p(new Zp,6,45),_p(new Zp,14,46)),eq(new bq,30,_p(new Zp,11,24),_p(new Zp,16,25)),eq(new bq,30,_p(new Zp,30,16),_p(new Zp,2,17))),Up(new Qp,25,rg(Ti,65,-1,[6,32,58,84,110]),eq(new bq,26,_p(new Zp,8,106),_p(new Zp,4,107)),eq(new bq,28,_p(new Zp,8,47),_p(new Zp,13,48)),eq(new bq,30,_p(new Zp,7,24),_p(new Zp,22,25)),eq(new bq,30,_p(new Zp,22,15),_p(new Zp,13,16))),Up(new Qp,26,rg(Ti,65,-1,[6,30,58,86,114]),eq(new bq,28,_p(new Zp,10,114),_p(new Zp,2,115)),eq(new bq,28,_p(new Zp,19,46),_p(new Zp,4,47)),eq(new bq,28,_p(new Zp,28,22),_p(new Zp,6,23)),eq(new bq,30,_p(new Zp,33,16),_p(new Zp,4,17))),Up(new Qp,27,rg(Ti,65,-1,[6,34,62,90,118]),eq(new bq,30,_p(new Zp,8,122),_p(new Zp,4,123)),eq(new bq,28,_p(new Zp,22,45),_p(new Zp,3,46)),eq(new bq,30,_p(new Zp,8,23),_p(new Zp,26,24)),eq(new bq,30,_p(new Zp,12,15),_p(new Zp,28,16))),Up(new Qp,28,rg(Ti,65,-1,[6,26,50,74,98,122]),eq(new bq,30,_p(new Zp,3,117),_p(new Zp,10,118)),eq(new bq,28,_p(new Zp,3,45),_p(new Zp,23,46)),eq(new bq,30,_p(new Zp,4,24),_p(new Zp,31,25)),eq(new bq,30,_p(new Zp,11,15),_p(new Zp,31,16))),Up(new Qp,29,rg(Ti,65,-1,[6,30,54,78,102,126]),eq(new bq,30,_p(new Zp,7,116),_p(new Zp,7,117)),eq(new bq,28,_p(new Zp,21,45),_p(new Zp,7,46)),eq(new bq,30,_p(new Zp,1,23),_p(new Zp,37,24)),eq(new bq,30,_p(new Zp,19,15),_p(new Zp,26,16))),Up(new Qp,30,rg(Ti,65,-1,[6,26,52,78,104,130]),eq(new bq,30,_p(new Zp,5,115),_p(new Zp,10,116)),eq(new bq,28,_p(new Zp,19,47),_p(new Zp,10,48)),eq(new bq,30,_p(new Zp,15,24),_p(new Zp,25,25)),eq(new bq,30,_p(new Zp,23,15),_p(new Zp,25,16))),Up(new Qp,31,rg(Ti,65,-1,[6,30,56,82,108,134]),eq(new bq,30,_p(new Zp,13,115),_p(new Zp,3,116)),eq(new bq,28,_p(new Zp,2,46),_p(new Zp,29,47)),eq(new bq,30,_p(new Zp,42,24),_p(new Zp,1,25)),eq(new bq,30,_p(new Zp,23,15),_p(new Zp,28,16))),Up(new Qp,32,rg(Ti,65,-1,[6,34,60,86,112,138]),dq(new bq,30,_p(new Zp,17,115)),eq(new bq,28,_p(new Zp,10,46),_p(new Zp,23,47)),eq(new bq,30,_p(new Zp,10,24),_p(new Zp,35,25)),eq(new bq,30,_p(new Zp,19,15),_p(new Zp,35,16))),Up(new Qp,33,rg(Ti,65,-1,[6,30,58,86,114,142]),eq(new bq,30,_p(new Zp,17,115),_p(new Zp,1,116)),eq(new bq,28,_p(new Zp,14,46),_p(new Zp,21,47)),eq(new bq,30,_p(new Zp,29,24),_p(new Zp,19,25)),eq(new bq,30,_p(new Zp,11,15),_p(new Zp,46,16))),Up(new Qp,34,rg(Ti,65,-1,[6,34,62,90,118,146]),eq(new bq,30,_p(new Zp,13,115),_p(new Zp,6,116)),eq(new bq,28,_p(new Zp,14,46),_p(new Zp,23,47)),eq(new bq,30,_p(new Zp,44,24),_p(new Zp,7,25)),eq(new bq,30,_p(new Zp,59,16),_p(new Zp,1,17))),Up(new Qp,35,rg(Ti,65,-1,[6,30,54,78,102,126,150]),eq(new bq,30,_p(new Zp,12,121),_p(new Zp,7,122)),eq(new bq,28,_p(new Zp,12,47),_p(new Zp,26,48)),eq(new bq,30,_p(new Zp,39,24),_p(new Zp,14,25)),eq(new bq,30,_p(new Zp,22,15),_p(new Zp,41,16))),Up(new Qp,36,rg(Ti,65,-1,[6,24,50,76,102,128,154]),eq(new bq,30,_p(new Zp,6,121),_p(new Zp,14,122)),eq(new bq,28,_p(new Zp,6,47),_p(new Zp,34,48)),eq(new bq,30,_p(new Zp,46,24),_p(new Zp,10,25)),eq(new bq,30,_p(new Zp,2,15),_p(new Zp,64,16))),Up(new Qp,37,rg(Ti,65,-1,[6,28,54,80,106,132,158]),eq(new bq,30,_p(new Zp,17,122),_p(new Zp,4,123)),eq(new bq,28,_p(new Zp,29,46),_p(new Zp,14,47)),eq(new bq,30,_p(new Zp,49,24),_p(new Zp,10,25)),eq(new bq,30,_p(new Zp,24,15),_p(new Zp,46,16))),Up(new Qp,38,rg(Ti,65,-1,[6,32,58,84,110,136,162]),eq(new bq,30,_p(new Zp,4,122),_p(new Zp,18,123)),eq(new bq,28,_p(new Zp,13,46),_p(new Zp,32,47)),eq(new bq,30,_p(new Zp,48,24),_p(new Zp,14,25)),eq(new bq,30,_p(new Zp,42,15),_p(new Zp,32,16))),Up(new Qp,39,rg(Ti,65,-1,[6,26,54,82,110,138,166]),eq(new bq,30,_p(new Zp,20,117),_p(new Zp,4,118)),eq(new bq,28,_p(new Zp,40,47),_p(new Zp,7,48)),eq(new bq,30,_p(new Zp,43,24),_p(new Zp,22,25)),eq(new bq,30,_p(new Zp,10,15),_p(new Zp,67,16))),Up(new Qp,40,rg(Ti,65,-1,[6,30,58,86,114,142,170]),eq(new bq,30,_p(new Zp,19,118),_p(new Zp,6,119)),eq(new bq,28,_p(new Zp,18,47),_p(new Zp,31,48)),eq(new bq,30,_p(new Zp,34,24),_p(new Zp,34,25)),eq(new bq,30,_p(new Zp,20,15),_p(new Zp,61,16)))])} var sw='',yw='\n',ox='\x1D',Qx=' ',tw='(',Yx=', Size: ',Rx=':',Lx='<\/p>',Jx='<h2>Decoded string:<\/h2>',Kx="<p class='decoded'>",Ax='ALPHANUMERIC',Ux='Add not supported on this collection',Wx='Add not supported on this list',Tx='Array types must match',Cx='BYTE',sx='Bad ECI bits starting with byte ',nx='Bad ECI value: ',Mx='Bad error location',bx='Cannot set a new parent without first clearing the old parent',Hx="Character count doesn't apply to this mode",Vw='DOMMouseScroll',jy='DataBlock;',ky='DataMask;',Dx='ECI',Nx='Error locator degree does not match number of roots',ly='ErrorCorrectionLevel;',Fx='FNC1_FIRST_POSITION',Gx='FNC1_SECOND_POSITION',ny='GF256Poly;',xx='GF256Polys do not have same GF256 field',wx='H',rx='ISO8859_1',Xx='Index: ',Ex='KANJI',tx='L',ux='M',Zw='MouseEvents',Sx='Must be array types',zx='NUMERIC',ry='Object;',fx='One or more exceptions caught, see full set in AttachDetachException#getCauses',vx='Q',px='SJIS',Bx='STRUCTURED_APPEND',$w="Should only call onAttach when the widget is detached from the browser's document",_w="Should only call onDetach when the widget is attached to the browser's document",ay='StackTraceElement;',yx='TERMINATOR',ax="This widget's parent does not implement HasWidgets",by='Throwable;',qx='UTF8',ww='Unknown',xw='Unknown source',qy='Version$ECB;',oy='Version$ECBlocks;',py='Version;',dy='Widget;',hy='[B',fy='[C',$x='[I',cy='[Lcom.google.gwt.user.client.ui.',iy='[Lcom.onurgunduz.qrdec.client.',_x='[Ljava.lang.',my='[[I',vw='anonymous',Dw='blur',gy='byte',Ew='change',ey='char',hx='className',Fw='click',Cw='com.onurgunduz.qrdec.client.Qrdec',Ww='contextmenu',Gw='dblclick',jx='dimension must be at least 1',gx='div',Tw='error',Hw='focus',uw='function',ix='gwt-HTML',lx='height and width must be at least 1',Yw='html',Vx='initial capacity was negative or load factor was non-positive',Zx='int',Iw='keydown',Jw='keypress',Kw='keyup',cx='left',Lw='load',Mw='losecapture',Aw='moduleStartup',Nw='mousedown',Ow='mousemove',Pw='mouseout',Qw='mouseover',Rw='mouseup',Uw='mousewheel',Bw='onModuleLoadStart',Xw='paste',ex='position',Ox='r_{i-1} was zero',Ix='resultView',Sw='scroll',Px='sigmaTilde(0) was zero',zw='startup',dx='top',mx='topI + height and leftJ + width must be <= matrix dimension',kx='topI and leftJ must be nonnegative';var _;_=lc.prototype={};_.eQ=pc;_.gC=qc;_.hC=rc;_.tM=pv;_.tI=1;_=Ac.prototype=new lc;_.gC=Dc;_.tI=3;_=zc.prototype=new Ac;_.gC=Gc;_.tI=4;_=yc.prototype=new zc;_.gC=Ic;_.tI=5;_=xc.prototype=new yc;_.gC=Lc;_.tI=6;_.b=null;_=id.prototype=new lc;_.gC=kd;_.tI=0;var nd=0,od=0;_=xd.prototype=new id;_.gC=Gd;_.tI=0;_.d=false;_.g=false;var yd;_=Kd.prototype=new lc;_.h=Nd;_.gC=Od;_.tI=0;_.b=null;_=Pd.prototype=new lc;_.h=Sd;_.gC=Td;_.tI=0;_.b=null;_=ke.prototype=new lc;_.gC=me;_.tI=0;_=ne.prototype=new ke;_.gC=ue;_.tI=0;_.b=sw;_=ve.prototype=new lc;_.gC=Ae;_.tI=0;_=Ce.prototype=new ve;_.gC=Ee;_.tI=0;_=Be.prototype=new Ce;_.gC=Je;_.tI=0;_=kf.prototype=new lc;_.gC=nf;_.tI=0;_.b=false;_.c=null;_=jf.prototype=new kf;_.i=qf;_.j=sf;_.gC=tf;_.tI=0;var of=null;_=xf.prototype=new lc;_.gC=zf;_.tI=0;_=Bf.prototype=new lc;_.gC=Ff;_.hC=Gf;_.tI=0;_.b=0;var Cf=0;_=Hf.prototype=new lc;_.gC=Qf;_.tI=0;_.b=null;_.c=0;_.d=false;_.e=null;_.f=null;_=Rf.prototype=new lc;_.gC=Uf;_.tI=7;_.b=null;_.c=null;_.d=null;_=Wf.prototype=new lc;_.gC=cg;_.tI=0;_=gg.prototype=new lc;_.gC=pg;_.tI=0;_.aC=null;_.length=0;_.qI=0;var vg,wg;var Cg=[{},{},{1:1,16:1},{16:1,18:1},{16:1,18:1},{2:1,16:1,18:1},{2:1,16:1,18:1},{3:1},{5:1},{7:1},{5:1,6:1,7:1,8:1},{5:1,6:1,7:1,8:1},{5:1,6:1,7:1,8:1},{5:1,6:1,7:1,8:1},{2:1,16:1,18:1},{5:1,6:1,7:1,8:1},{5:1,6:1,7:1,8:1},{5:1,6:1,7:1,8:1,23:1},{21:1},{5:1,6:1,7:1,8:1,23:1},{9:1},{10:1},{10:1},{10:1},{10:1},{10:1},{10:1},{10:1},{10:1},{10:1},{11:1},{26:1},{12:1},{16:1,18:1},{16:1,18:1,25:1},{15:1},{13:1},{14:1},{2:1,16:1,18:1},{2:1,16:1,18:1},{16:1,18:1},{16:1,18:1},{2:1,16:1,18:1},{16:1},{2:1,16:1,18:1,24:1},{2:1,16:1,18:1},{2:1,16:1,18:1},{16:1,27:1},{2:1,16:1,18:1},{16:1,17:1},{2:1,16:1,18:1},{32:1},{32:1},{29:1},{29:1},{29:1},{30:1},{32:1},{4:1,16:1,30:1},{16:1,31:1},{16:1,32:1},{29:1},{2:1,16:1,18:1},{16:1,30:1},{19:1},{20:1},{22:1}];var vj=null,wj=null;var Dj=false,Ej=null;_=Nj.prototype=new kf;_.i=Rj;_.j=Sj;_.gC=Tj;_.tI=0;var Oj;_=Uj.prototype=new Hf;_.gC=Xj;_.tI=8;var Zj=false;var gk=null,hk=null,ik=null,jk=null;_=yk.prototype=new lc;_.gC=Ak;_.tI=9;_.f=null;_=xk.prototype=new yk;_.l=Hk;_.m=Ik;_.gC=Jk;_.k=Kk;_.n=Lk;_.o=Mk;_.tI=10;_.c=false;_.d=0;_.e=null;_=wk.prototype=new xk;_.l=Pk;_.m=Qk;_.gC=Rk;_.n=Sk;_.o=Tk;_.tI=11;_=vk.prototype=new wk;_.gC=Zk;_.p=$k;_.tI=12;_=uk.prototype=new vk;_.gC=dl;_.tI=13;_=el.prototype=new yc;_.gC=jl;_.tI=14;var fl,gl;_=ll.prototype=new lc;_.q=nl;_.gC=ol;_.tI=0;_=pl.prototype=new lc;_.q=rl;_.gC=sl;_.tI=0;_=vl.prototype=new xk;_.gC=yl;_.tI=15;_=ul.prototype=new vl;_.gC=Bl;_.tI=16;_=Jl.prototype=new uk;_.gC=Tl;_.tI=17;var Kl,Ll,Ml;_=Ul.prototype=new lc;_.q=Wl;_.gC=Xl;_.tI=0;_=Yl.prototype=new lc;_.gC=$l;_.tI=18;_=_l.prototype=new Jl;_.gC=cm;_.tI=19;_=fm.prototype=new lc;_.gC=om;_.p=pm;_.tI=0;_.b=null;_.c=null;_.d=0;_=qm.prototype=new lc;_.gC=ym;_.r=zm;_.s=Am;_.tI=0;_.b=-1;_.c=null;_=Bm.prototype=new lc;_.gC=Hm;_.tI=0;_.b=null;_.c=0;_=Im.prototype=new lc;_.gC=Om;_.tI=0;_.b=null;_.c=null;_.d=null;_=Pm.prototype=new lc;_.gC=Tm;_.tI=0;_.b=0;_.c=0;_.d=null;var Xm=null;_=$m.prototype=new lc;_.gC=bn;_.tI=20;_.b=null;_.c=0;_=dn.prototype=new lc;_.gC=hn;_.tI=21;var en;_=jn.prototype=new dn;_.gC=mn;_.t=nn;_.tI=22;_=on.prototype=new dn;_.gC=rn;_.t=sn;_.tI=23;_=tn.prototype=new dn;_.gC=wn;_.t=xn;_.tI=24;_=yn.prototype=new dn;_.gC=Bn;_.t=Cn;_.tI=25;_=Dn.prototype=new dn;_.gC=Gn;_.t=Hn;_.tI=26;_=In.prototype=new dn;_.gC=Ln;_.t=Mn;_.tI=27;_=Nn.prototype=new dn;_.gC=Qn;_.t=Rn;_.tI=28;_=Sn.prototype=new dn;_.gC=Vn;_.t=Wn;_.tI=29;var Yn,Zn=false;_=io.prototype=new lc;_.gC=no;_.tI=0;_.b=null;_=oo.prototype=new lc;_.gC=ro;_.tI=0;_.b=null;_=so.prototype=new lc;_.gC=Bo;_.tI=30;_.b=0;var to,uo,vo,wo,xo;_=Co.prototype=new lc;_.eQ=Jo;_.gC=Ko;_.hC=Lo;_.tI=31;_.b=0;_.c=null;var Do,Eo;_=No.prototype=new lc;_.gC=Xo;_.tI=0;_.b=null;_.c=null;_.d=null;_.e=null;var Oo,Po;_=Yo.prototype=new lc;_.gC=fp;_.tI=32;_.b=null;_.c=null;_=gp.prototype=new lc;_.gC=up;_.tI=0;_.b=null;var hp,ip,jp,kp,lp,mp,np,op,pp;_=zp.prototype=new zc;_.gC=Dp;_.tI=33;var Ap;_=Ep.prototype=new lc;_.gC=Lp;_.tI=0;_.b=null;_=Mp.prototype=new zc;_.gC=Pp;_.tI=34;_=Qp.prototype=new lc;_.gC=Xp;_.tI=35;_.b=null;_.c=null;_.d=0;_.e=0;var Rp,Sp;_=Zp.prototype=new lc;_.gC=aq;_.tI=36;_.b=0;_.c=0;_=bq.prototype=new lc;_.gC=fq;_.tI=37;_.b=null;_.c=0;_=iq.prototype=new yc;_.gC=lq;_.tI=38;_=mq.prototype=new yc;_.gC=qq;_.tI=39;_=sq.prototype=new lc;_.gC=xq;_.tI=0;_.b=null;_.c=0;_=yq.prototype=new yc;_.gC=Bq;_.tI=42;_=Eq.prototype=new yc;_.gC=Iq;_.tI=44;_=Jq.prototype=new yc;_.gC=Nq;_.tI=45;_=Oq.prototype=new yc;_.gC=Sq;_.tI=46;_=Uq.prototype=new lc;_.gC=Wq;_.tI=43;_=Tq.prototype=new Uq;_.eQ=Zq;_.gC=$q;_.hC=_q;_.tI=47;_.b=0;_=br.prototype=new yc;_.gC=er;_.tI=48;_=fr.prototype=new lc;_.gC=ir;_.tI=49;_=String.prototype;_.eQ=sr;_.gC=tr;_.hC=ur;_.tI=2;var xr,yr=0,zr;_=Er.prototype=new lc;_.gC=Kr;_.tI=0;_=Qr.prototype=new yc;_.gC=Tr;_.tI=50;_=Ur.prototype=new lc;_.u=Xr;_.v=Yr;_.gC=Zr;_.x=$r;_.tI=0;_=as.prototype=new lc;_.eQ=ds;_.gC=es;_.hC=fs;_.tI=0;_=_r.prototype=new as;_.y=ys;_.gC=zs;_.tI=0;_.b=null;_.c=null;_.d=false;_.e=0;_.f=null;_=Bs.prototype=new Ur;_.eQ=Ds;_.gC=Es;_.hC=Fs;_.tI=51;_=As.prototype=new Bs;_.v=Ls;_.gC=Ms;_.p=Ns;_.w=Os;_.tI=52;_.b=null;_=Ps.prototype=new lc;_.gC=Us;_.r=Vs;_.s=Ws;_.tI=0;_.b=null;_.c=null;_=Ys.prototype=new lc;_.eQ=$s;_.gC=_s;_.hC=at;_.tI=53;_=Xs.prototype=new Ys;_.gC=dt;_.z=et;_.A=ft;_.B=gt;_.tI=54;_.b=null;_=ht.prototype=new Ys;_.gC=kt;_.z=lt;_.A=mt;_.B=ot;_.tI=55;_.b=null;_.c=null;_=pt.prototype=new Ur;_.u=st;_.C=tt;_.eQ=vt;_.gC=wt;_.hC=xt;_.p=zt;_.tI=56;_=At.prototype=new lc;_.gC=Gt;_.r=Ht;_.s=It;_.tI=0;_.b=0;_.c=null;_=Jt.prototype=new Bs;_.v=Nt;_.gC=Ot;_.p=Pt;_.w=Qt;_.tI=57;_.b=null;_.c=null;_=Rt.prototype=new lc;_.gC=Ut;_.r=Vt;_.s=Wt;_.tI=0;_.b=null;_=Xt.prototype=new pt;_.u=hu;_.C=iu;_.v=ju;_.D=ku;_.gC=lu;_.w=nu;_.x=pu;_.tI=58;_.c=0;_=ru.prototype=new _r;_.gC=wu;_.tI=59;_=xu.prototype=new Bs;_.u=Eu;_.v=Fu;_.gC=Gu;_.p=Hu;_.w=Iu;_.tI=60;_.b=null;_=Nu.prototype=new Ys;_.gC=Ru;_.z=Su;_.A=Tu;_.B=Vu;_.tI=61;_.b=null;_.c=null;_=Wu.prototype=new yc;_.gC=Zu;_.tI=62;_=dv.prototype=new pt;_.u=hv;_.C=iv;_.v=jv;_.D=kv;_.gC=lv;_.p=mv;_.w=nv;_.x=ov;_.tI=63;_.b=null;var $entry=rd;var ri=new sq,Zg=wq(sw,Zx),Ti=uq(sw,$x,Zg),wi=new sq,ki=new sq,si=new sq,ah=new sq,dh=new sq,bh=new sq,ch=new sq,ti=new sq,bj=uq(_x,ay,ti),fh=new sq,eh=new sq,$g=new sq,_g=new sq,ih=new sq,hh=new sq,gh=new sq,vi=new sq,mh=new sq,lh=new sq,jh=new sq,kh=new sq,ph=new sq,oh=new sq,nh=new sq,Eh=new sq,Hh=new sq,zh=new sq,wh=new sq,sh=new sq,cj=uq(_x,by,wi),vh=new sq,th=new sq,uh=new sq,Ui=uq(cy,dy,Hh),yh=new sq,xh=new sq,yi=new sq,Fi=new sq,Li=new sq,Yg=wq(sw,ey),Si=uq(sw,fy,Yg),Dh=new sq,Ch=new sq,Ah=new sq,Bh=new sq,Gh=new sq,Fh=new sq,qh=new sq,rh=new sq,Jh=new sq,Xg=wq(sw,gy),Ri=uq(sw,hy,Xg),Ih=new sq,Kh=new sq,Lh=new sq,Vi=uq(iy,jy,Lh),Uh=new sq,Wi=uq(iy,ky,Uh),Mh=new sq,Nh=new sq,Oh=new sq,Ph=new sq,Qh=new sq,Rh=new sq,Sh=new sq,Th=new sq,Wh=new sq,Vh=new sq,Xh=new sq,Xi=uq(iy,ly,Xh),dj=uq(sw,my,Ti),Yh=new sq,$h=new sq,Zh=new sq,Yi=uq(iy,ny,Zh),_h=new sq,ai=new sq,bi=new sq,ci=new sq,ei=new sq,$i=uq(iy,oy,ei),fi=new sq,_i=uq(iy,py,fi),di=new sq,Zi=uq(iy,qy,di),gi=new sq,ni=new sq,hi=new sq,qi=new sq,ji=new sq,ii=new sq,li=new sq,mi=new sq,oi=new sq,pi=new sq,ui=new sq,xi=new sq,aj=uq(_x,ry,ri),Ji=new sq,Di=new sq,Ki=new sq,Ai=new sq,zi=new sq,Ii=new sq,Bi=new sq,Ci=new sq,Ei=new sq,Hi=new sq,Gi=new sq,Mi=new sq,Ni=new sq,Oi=new sq,Pi=new sq,Qi=new sq;$stats && $stats({moduleName:'qrdec',sessionId:$sessionId,subSystem:'startup',evtGroup:'moduleStartup',millis:(new Date()).getTime(),type:'moduleEvalEnd'});if ($wnd.qrdec) $wnd.qrdec.onScriptLoad(); --></script></body></html>
123912029-ssiagu
qrdec/war/qrdec/225616EDFF7AD0B57A10F7491E84C7E9.cache.html
HTML
gpl2
57,976
<html><head><script>var $gwt_version = "2.0.0";var $wnd = parent;var $doc = $wnd.document;var $moduleName, $moduleBase;var $strongName = 'ACFF925026BF3E1E0F2A3D76A5625A73';var $stats = $wnd.__gwtStatsEvent ? function(a) {return $wnd.__gwtStatsEvent(a);} : null,$sessionId = $wnd.__gwtStatsSessionId ? $wnd.__gwtStatsSessionId : null;$stats && $stats({moduleName:'qrdec',sessionId:$sessionId,subSystem:'startup',evtGroup:'moduleStartup',millis:(new Date()).getTime(),type:'moduleEvalStart'});</script></head><body><script><!-- function Bv(){} function lc(){} function Ac(){} function zc(){} function yc(){} function xc(){} function hd(){} function wd(){} function Jd(){} function Od(){} function _d(){} function qe(){} function ye(){} function xe(){} function pf(){} function of(){} function Cf(){} function Gf(){} function Mf(){} function Wf(){} function _f(){} function lg(){} function Vj(){} function ak(){} function Dk(){} function Kk(){} function Tk(){} function Uk(){} function Xk(){} function Yk(){} function Jk(){} function cl(){} function dl(){} function Ik(){} function Hk(){} function Gk(){} function ql(){} function xl(){} function Bl(){} function Hl(){} function Gl(){} function Vl(){} function em(){} function im(){} function lm(){} function rm(){} function Cm(){} function Nm(){} function Um(){} function _m(){} function ln(){} function qn(){} function vn(){} function An(){} function Fn(){} function Kn(){} function Pn(){} function Un(){} function Zn(){} function co(){} function uo(){} function Ao(){} function Eo(){} function Oo(){} function Zo(){} function ip(){} function sp(){} function Lp(){} function Qp(){} function Yp(){} function aq(){} function jq(){} function nq(){} function uq(){} function yq(){} function Eq(){} function Kq(){} function Qq(){} function Vq(){} function $q(){} function er(){} function dr(){} function nr(){} function rr(){} function Qr(){} function as(){} function es(){} function ms(){} function ls(){} function Ns(){} function Ms(){} function _s(){} function it(){} function ht(){} function tt(){} function Bt(){} function Mt(){} function Vt(){} function bu(){} function hu(){} function Du(){} function Ju(){} function Zu(){} function gv(){} function pv(){} function vf(a){am()} function zl(a){Ok(a)} function Dl(a){Pk(a)} function Dc(){return Bi} function qc(){return wi} function Gc(){return pi} function Ic(){return xi} function Lc(){return dh} function jd(){return fh} function Fd(){return ih} function Nd(){return gh} function Sd(){return hh} function fe(){return jh} function we(){return mh} function Ge(){return lh} function Je(){return kh} function sf(){return qh} function xf(){return tf} function yf(){return nh} function Ef(){return oh} function Kf(){return ph} function Vf(){return th} function Zf(){return rh} function hg(){return sh} function $j(){return Wj} function _j(){return uh} function dk(){return vh} function Fk(){return wh} function Mk(){return Jh} function Vk(){return Mh} function bl(){return Eh} function jl(){return Bh} function pl(){return xh} function vl(){return Ah} function Al(){return yh} function El(){return zh} function Kl(){return Dh} function Nl(){return Ch} function dm(){return Ih} function hm(){return Fh} function km(){return Gh} function om(){return Hh} function Am(){return Lh} function Km(){return Kh} function Tm(){return Oh} function $m(){return Nh} function dn(){return Ph} function on(){return Qh} function un(){return Zh} function yn(){return Rh} function Dn(){return Sh} function In(){return Th} function Nn(){return Uh} function Sn(){return Vh} function Xn(){return Wh} function ao(){return Xh} function go(){return Yh} function zo(){return _h} function Do(){return $h} function No(){return ai} function Wo(){return bi} function hp(){return di} function rp(){return ci} function Gp(){return ei} function Pp(){return fi} function Xp(){return gi} function _p(){return hi} function hq(){return ki} function mq(){return ii} function rq(){return ji} function xq(){return li} function Cq(){return mi} function Jq(){return oi} function Nq(){return ni} function Uq(){return qi} function Zq(){return ri} function cr(){return si} function gr(){return vi} function kr(){return ti} function qr(){return ui} function ur(){return yi} function Fr(){return Ai} function Wr(){return zi} function ds(){return Ci} function js(){return Di} function qs(){return Oi} function Ls(){return Ii} function Qs(){return Pi} function Ys(){return Fi} function et(){return Ei} function lt(){return Ni} function pt(){return Gi} function wt(){return Hi} function It(){return Ki} function St(){return Ji} function $t(){return Mi} function eu(){return Li} function xu(){return Qi} function Iu(){return Ri} function Su(){return Si} function bv(){return Ti} function jv(){return Ui} function xv(){return Vi} function Ae(){Ae=Bv;re()} function He(){He=Bv;Ae()} function mm(){mm=Bv;Zl()} function wn(){wn=Bv;sn()} function Bn(){Bn=Bv;sn()} function Gn(){Gn=Bv;sn()} function Ln(){Ln=Bv;sn()} function Qn(){Qn=Bv;sn()} function Vn(){Vn=Bv;sn()} function $n(){$n=Bv;sn()} function eo(){eo=Bv;sn()} function gm(a){a.b&&Pk(a)} function qt(){return null} function Hj(a){return true} function Tj(){Lj&&wf(Rj())} function Ed(a){return a.g()} function ee(a){return $d(a)} function Lf(){return this.a} function lr(){return this.a} function xt(){return this.a} function zu(){return this.b} function cv(){return this.a} function dv(){return this.b} function ug(){return this.aC} function ml(a,b){gl(a,b,a.e)} function um(a,b){wm(a,b,a.c)} function wq(a){de();return a} function Aq(a){de();return a} function Mq(a){de();return a} function Sq(a){de();return a} function Xq(a){de();return a} function ar(a){de();return a} function pr(a){de();return a} function iv(a){de();return a} function Ij(a,b){jk();rk(a,b)} function Zj(a){$g(a);null.E()} function Mm(){return Hm(this)} function Gr(){return Or(this)} function $s(){return this.a.d} function rt(){return this.a.b} function Ut(){return Rt(this)} function uu(a,b){nu(this,a,b)} function Fu(a){ws(a);return a} function Uu(){return this.a.d} function zv(){return this.a.b} function Fc(a,b){de();return a} function $p(a,b){de();return a} function Bq(a,b){de();return a} function Tq(a,b){de();return a} function Yq(a,b){de();return a} function br(a,b){de();return a} function cs(a,b){de();return a} function Ld(a,b){a.a=b;return a} function Qd(a,b){a.a=b;return a} function Jl(a,b){a.e=b;return a} function re(){re=Bv;He();new xe} function Fm(a,b){a.b=b;return a} function bn(a,b){a.c=b;return a} function Sp(a,b){a.a=b;return a} function ir(a,b){a.a=b;return a} function tr(a,b,c,d,e){return a} function Ts(a,b){a.a=b;return a} function ft(){return Qt(this.a)} function au(){return this.b.a.d} function al(){wl(this,(tl(),sl))} function uv(a,b){nu(this.a,a,b)} function ot(a,b){a.a=b;return a} function Pt(a,b){a.b=b;return a} function du(a,b){a.a=b;return a} function Jf(a){a.a=++Hf;return a} function Xs(a){return Us(this,a)} function _k(){wl(this,(tl(),rl))} function Mr(){Mr=Bv;Jr={};Lr={}} function yd(){yd=Bv;xd=Ad(new wd)} function Xj(){Xj=Bv;Wj=Jf(new Gf)} function Bu(a){return su(this,a)} function Qt(a){return a.a<a.b.w()} function fu(){return Qt(this.a.a)} function hs(a){throw cs(new as,sy)} function st(a){return Fs(this.a,a)} function Zt(a){return xs(this.a,a)} function Ru(a){return xs(this.a,a)} function tv(a){return mu(this.a,a)} function wv(a){return pu(this.a,a)} function Av(a){return su(this.a,a)} function Kg(a,b){return a&&Hg[a][b]} function Vr(a,b){ke(a.a,b);return a} function Cs(b,a){return Iw+a in b.e} function Bm(){return Fm(new Cm,this)} function Gu(a,b){ts(a,b,0);return a} function Pj(a,b){return Qf(Rj(),a,b)} function Lt(){return Pt(new Mt,this)} function kl(){return Fm(new Cm,this.a)} function Jg(a,b){return a&&!!Hg[a][b]} function Ft(a,b){throw cs(new as,uy)} function Gt(a,b){(a<0||a>=b)&&Kt(a,b)} function cg(a){a.a=Fu(new Du);return a} function Lm(){return this.a<this.b.c-1} function Zs(){return bt(new _s,this.a)} function gt(){return Mg(Rt(this.a),29)} function Tt(){return this.a<this.b.w()} function yv(){return Pt(new Mt,this.a)} function Xo(){return this.b.a<<3|this.a} function Lo(a,b,c){Ko();a.a=b;return a} function Dp(a,b,c){Cp();a.a=b;return a} function zt(a,b){return vt(new tt,b,a)} function vu(a){return qu(this,a,0)!=-1} function Lu(a){a.a=Fu(new Du);return a} function yt(){return this.b.e[Iw+this.a]} function vt(a,b,c){a.b=c;a.a=b;return a} function nn(a,b,c){a.b=b;a.a=c;return a} function lq(a,b,c){a.a=b;a.b=c;return a} function Xt(a,b,c){a.a=b;a.b=c;return a} function _u(a,b,c){a.a=b;a.b=c;return a} function vv(a){return qu(this.a,a,0)!=-1} function At(a){return Gs(this.b,this.a,a)} function pu(a,b){Gt(b,a.b);return a.a[b]} function Kc(a,b){de();a.a=b;ce(a);return a} function rv(a,b){a.a=lu(new hu,b);return a} function Pg(a,b){return a!=null&&Jg(a.tI,b)} function np(a,b){return a.a[a.a.length-1-b]} function le(a,b){a[a.explicitLength++]=b} function Kt(a,b){throw br(new $q,vy+a+wy+b)} function Np(){Np=Bv;Mp=(Np(),new Lp)} function tl(){tl=Bv;rl=new xl;sl=new Bl} function jk(){if(!fk){qk();fk=true}} function Rj(){!Mj&&(Mj=ck(new ak));return Mj} function ku(a){a.a=vg(fj,0,0,0,0);return a} function pc(a){return this===(a==null?null:a)} function rc(){return this.$H||(this.$H=++nd)} function wu(a){return Gt(a,this.b),this.a[a]} function Et(a){this.C(this.w(),a);return true} function Dd(a){return a.a.length>0||a.e.length>0} function mu(a,b){yg(a.a,a.b++,b);return true} function Qg(a){return a!=null&&a.tM!=Bv&&a.tI!=2} function wf(a){var b;if(tf){b=new of;Tf(a,b)}} function Bd(a){var b;b=a.b;a.b=[];Hd(b,a.b)} function fv(a){var b;b=this.b;this.b=a;return b} function nm(a){mm();$l(a,$doc.body);return a} function Iq(a,b){var c;c=new Eq;c.b=1;return c} function Yf(a,b,c,d){a.a=b;a.c=c;a.b=d;return a} function Rf(a,b){!a.a&&(a.a=ku(new hu));mu(a.a,b)} function tm(a,b){a.b=b;a.a=vg(Zi,0,8,4,0);return a} function ke(a,b){a[a.explicitLength++]=b==null?Lw:b} function se(a,b){var c;c=Be(a,Mw);c.text=b;return c} function Mu(a,b){var c;c=Ds(a.a,b,a);return c==null} function nl(a,b){var c;c=il(a,b);c&&ol(b.e);return c} function is(a){var b;b=gs(this.p(),a);return !!b} function Oj(a){Sj();return Pj(tf?tf:(tf=Jf(new Gf)),a)} function wo(a){a.a=Sp(new Qp,(ap(),_o));return a} function ws(a){a.a=[];a.e={};a.c=false;a.b=null;a.d=0} function Cd(a){var b;b=a.a;a.a=[];Hd(b,a.e);a.e=Gd(a.e)} function tu(a){return yg(this.a,this.b++,a),true} function Rd(){this.a.c&&Id(this.a.d,1);return this.a.f} function gu(){var a;a=Mg(Rt(this.a.a),29);return a.z()} function Cg(){Cg=Bv;Ag=[];Bg=[];Dg(new lg,Ag,Bg)} function ap(){ap=Bv;_o=bp(new Zo,285);$o=bp(new Zo,301)} function $g(a){if(a!=null){throw Mq(new Kq)}return a} function Pr(){if(Kr==256){Jr=Lr;Lr={};Kr=0}++Kr} function _l(a){Zl();try{Pk(a)}finally{Hs(Yl.a,a)!=null}} function am(){Zl();try{wl(Yl,Wl)}finally{ws(Yl.a);ws(Xl)}} function Qu(a){var b;return b=Ds(this.a,a,this),b==null} function os(a){var b;b=Ts(new Ms,a);return Xt(new Vt,a,b)} function Gq(a,b,c){var d;d=new Eq;d.b=4;d.a=c;return d} function pq(a,b,c){a.b=b;a.a=wg(cj,0,13,[c]);return a} function qq(a,b,c,d){a.b=b;a.a=wg(cj,0,13,[c,d]);return a} function lu(a,b){a.a=vg(fj,0,0,0,0);a.a.length=b;return a} function ck(a){a.d=cg(new _f);a.e=null;a.c=false;return a} function ol(a){a.style[Ex]=Ew;a.style[Fx]=Ew;a.style[Gx]=Ew} function Ur(a,b){le(a.a,String.fromCharCode(b));return a} function fp(a,b){if(b==0){throw Sq(new Qq)}return a.b[b]} function $l(a,b){Zl();a.a=tm(new rm,a);a.e=b;Ok(a);return a} function So(a,b){Ro();a.b=Mo(b>>3&3);a.a=(b&7)<<24>>24;return a} function gl(a,b,c){Qk(b);um(a.a,b);c.appendChild(b.e);Rk(b,a)} function pe(a){var b;b=oe(a);a[a.explicitLength++]=b;return b} function Tr(a){var b;a.a=(b=[],b.explicitLength=0,b);return a} function qd(a){return function(){return rd(a,this,arguments)}} function jr(a){return a!=null&&Jg(a.tI,27)&&Mg(a,27).a==this.a} function Yc(a){return a.tM==Bv||a.tI==2?a.hC():a.$H||(a.$H=++nd)} function Hs(a,b){return !b?Js(a):Is(a,b,~~(b.$H||(b.$H=++nd)))} function _t(){var a;return a=bt(new _s,this.b.a),du(new bu,a)} function Zl(){Zl=Bv;Wl=new em;Xl=Fu(new Du);Yl=Lu(new Ju)} function ep(a,b){if(b==0){throw wq(new uq)}return a.a[255-a.b[b]]} function tn(a){sn();if(a<0||a>7){throw Sq(new Qq)}return rn[a]} function iq(a){dq();if(a<1||a>40){throw Sq(new Qq)}return bq[a-1]} function Hm(a){if(a.a>=a.b.c){throw iv(new gv)}return a.b.a[++a.a]} function ts(a,b,c){ws(a);if(b<0||c<0){throw Tq(new Qq,ty)}return a} function Qm(a,b,c){var d;d=b+a.b*c;return (a.a[d>>5]>>>(d&31)&1)!=0} function Fs(a,b){var c;c=a.b;a.b=b;if(!a.c){a.c=true;++a.d}return c} function zm(a,b){var c;c=vm(a,b);if(c==-1){throw iv(new gv)}ym(a,c)} function sg(a,b){var c,d;c=a;d=tg(0,b);wg(c.aC,c.tI,c.qI,d);return d} function pj(a){if(a!=null&&Jg(a.tI,18)){return a}return Kc(new xc,a)} function Mg(a,b){if(a!=null&&!Kg(a.tI,b)){throw Mq(new Kq)}return a} function Rt(a){if(a.a>=a.b.w()){throw iv(new gv)}return a.b.D(a.a++)} function To(a){Ro();var b;b=Uo(a);if(b){return b}return Uo(a^21522)} function Js(a){var b;b=a.b;a.b=null;if(a.c){a.c=false;--a.d}return b} function oe(a){var b=a.join(Ew);a.length=a.explicitLength=0;return b} function zn(a,b){var c,d;d=a.length;for(c=0;c<d;++c){a[c]^=1431655765}} function Fg(a,b,c){Cg();for(var d=0,e=b.length;d<e;++d){a[b[d]]=c[d]}} function wg(a,b,c,d){Cg();Fg(d,Ag,Bg);d.aC=a;d.tI=b;d.qI=c;return d} function Dg(a,b,c){var d=0,e;for(var f in a){if(e=a[f]){b[d]=f;c[d]=e;++d}}} function Tu(){var a;return a=bt(new _s,os(this.a).b.a),du(new bu,a)} function $k(a){var b;b=Fm(new Cm,a.a);while(b.a<b.b.c-1){Hm(b);Jm(b)}} function Jm(a){if(a.a<0||a.a>=a.b.c){throw Xq(new Vq)}nl(a.b.b,a.b.a[a.a--])} function Co(a,b,c){if(b==null&&c==null){throw Sq(new Qq)}a.a=c;return a} function Ng(a){if(a!=null&&(a.tM==Bv||a.tI==2)){throw Mq(new Kq)}return a} function Er(a){if(!(a!=null&&Jg(a.tI,1))){return false}return String(this)==a} function qu(a,b,c){for(;c<a.b;++c){if(ov(b,a.a[c])){return c}}return -1} function nu(a,b,c){(b<0||b>a.b)&&Kt(b,a.b);a.a.splice(b,0,c);++a.b} function Qf(a,b,c){a.b>0?Rf(a,Yf(new Wf,a,b,c)):dg(a.d,b,c);return new Cf} function Ad(a){yd();a.d=Ld(new Jd,a);Qd(new Od,a);a.a=[];a.e=[];a.b=[];return a} function Md(){this.a.c=true;Cd(this.a);this.a.c=false;return this.a.f=Dd(this.a)} function vm(a,b){var c;for(c=0;c<a.c;++c){if(a.a[c]==b){return c}}return -1} function Wm(a,b){var c;c=b.b;if(c<21||(c&3)!=1){throw Np(),Np(),Mp}a.a=b;return a} function Gs(e,a,b){var c,d=e.e;a=Iw+a;a in d?(c=d[a]):++e.d;d[a]=b;return c} function Ks(a,b){return (a==null?null:a)===(b==null?null:b)||a!=null&&Uc(a,b)} function Hu(a,b){return (a==null?null:a)===(b==null?null:b)||a!=null&&Uc(a,b)} function ov(a,b){return (a==null?null:a)===(b==null?null:b)||a!=null&&Uc(a,b)} function xs(a,b){return b==null?a.c:b!=null&&Jg(b.tI,1)?Cs(a,Mg(b,1)):Bs(a,b,~~Yc(b))} function ys(a,b){return b==null?a.b:b!=null&&Jg(b.tI,1)?a.e[Iw+Mg(b,1)]:zs(a,b,~~Yc(b))} function Uc(a,b){return a.tM==Bv||a.tI==2?a.eQ(b):(a==null?null:a)===(b==null?null:b)} function gs(a,b){var c;while(a.r()){c=a.s();if(b==null?c==null:Uc(b,c)){return a}}return null} function ue(a){var b=a.firstChild;while(b&&b.nodeType!=1)b=b.nextSibling;return b} function Rs(){var a,b,c;a=0;for(b=this.p();b.r();){c=b.s();if(c!=null){a+=Yc(c);a=~~a}}return a} function Uj(){var a;if(Lj){a=(Xj(),new Vj);!!Mj&&Tf(Mj,a);return null}return null} function Mo(a){Ko();if(a<0||a>=Fo.length){throw Sq(new Qq)}return Fo[a]} function Qk(a){if(!a.d){Zl();xs(Yl.a,a)&&_l(a)}else if(a.d){nl(a.d,a)}else if(a.d){throw Yq(new Vq,Cx)}} function dg(a,b,c){var d;d=Mg(ys(a.a,b),4);if(!d){d=ku(new hu);Ds(a.a,b,d)}yg(d.a,d.b++,c)} function vg(a,b,c,d,e){var f;f=tg(e,d);Cg();Fg(f,Ag,Bg);f.aC=a;f.tI=b;f.qI=c;return f} function Vo(a){var b;if(!(a!=null&&Jg(a.tI,26))){return false}b=Mg(a,26);return this.b==b.b&&this.a==b.a} function Ds(a,b,c){return b==null?Fs(a,c):b!=null&&Jg(b.tI,1)?Gs(a,Mg(b,1),c):Es(a,b,c,~~Yc(b))} function rd(a,b,c){var d;d=md++==0;try{return a.apply(b,c)}finally{d&&Bd((yd(),xd));--md}} function Fj(a,b,c){var d;d=Cj;Cj=a;b==Dj&&hk((re(),a).type)==8192&&(Dj=null);c.k(a);Cj=d} function mt(){var a,b;a=0;b=0;this.z()!=null&&(a=Yc(this.z()));this.A()!=null&&(b=Yc(this.A()));return a^b} function mo(a){var b,c;c=Ew;for(b=0;b<a.length;++b){c=c+String.fromCharCode(a[b]&65535)}return c} function gq(a){dq();var b,c;for(b=0;b<cq.length;++b){c=cq[b];if(c==a){return iq(b+7)}Yo(a,c)}return null} function ul(a,b){tl();Fc(a,Hx,b.a.d==0?null:Mg(b.x(vg(hj,66,18,0,0)),22)[0]);return a} function Ml(a,b){Jl(a,Be((re(),$doc),Nw));a.e[Ix]=Jx;a.e.innerHTML=b||Ew;return a} function gp(a,b,c){if(b==0||c==0){return 0}if(b==1){return c}if(c==1){return b}return a.a[(a.b[b]+a.b[c])%255]} function Jt(){var a,b,c;b=1;a=this.p();while(a.a<a.b.w()){c=Rt(a);b=31*b+(c==null?0:Yc(c));b=~~b}return b} function vs(e,a){var b=e.e;for(var c in b){if(c.charCodeAt(0)==58){var d=zt(e,c.substring(1));a.u(d)}}} function tg(a,b){var c=new Array(b);if(a>0){var d=[null,0,false,[0,0]][a];for(var e=0;e<b;++e){c[e]=d}}return c} function Or(a){Mr();var b=Iw+a;var c=Lr[b];if(c!=null){return c}c=Jr[b];c==null&&(c=Nr(a));Pr();return Lr[b]=c} function us(g,a){var b=g.a;for(var c in b){if(c==parseInt(c)){var d=b[c];for(var e=0,f=d.length;e<f;++e){a.u(d[e])}}}} function bt(a,b){var c;a.b=b;c=ku(new hu);a.b.c&&mu(c,ot(new ht,a.b));vs(a.b,c);us(a.b,c);a.a=Pt(new Mt,c);return a} function Uf(a){var b,c;if(a.a){try{for(c=Pt(new Mt,a.a);c.a<c.b.w();){b=Mg(Rt(c),3);dg(b.a.d,b.c,b.b)}}finally{a.a=null}}} function Ep(a,b){var c,d;if(a.a==null){throw Tq(new Qq,gy)}c=b.d;c<=9?(d=0):c<=26?(d=1):(d=2);return a.a[d]} function Pm(a,b){var c,d;if(b<1){throw Tq(new Qq,Kx)}a.b=b;d=b*b;c=d>>5;(d&31)!=0&&++c;a.a=vg(Yi,65,-1,c,1);return a} function cp(a,b,c){var d;if(b<0){throw Sq(new Qq)}if(c==0){return a.d}d=vg(Yi,65,-1,b+1,1);d[0]=c;return kp(new ip,a,d)} function ym(a,b){var c;if(b<0||b>=a.c){throw ar(new $q)}--a.c;for(c=b;c<a.c;++c){yg(a.a,c,a.a[c+1])}yg(a.a,a.c,null)} function Rk(a,b){var c;c=a.d;if(!b){try{!!c&&c.b&&Pk(a)}finally{a.d=null}}else{if(c){throw Yq(new Vq,Dx)}a.d=b;b.b&&Ok(a)}} function Pk(a){if(!a.b){throw Yq(new Vq,Bx)}try{a.o()}finally{try{a.m()}finally{a.e.__listener=null;a.b=false}}} function kn(a){if(!hn){hn=Gu(new Du,29);ts(new Du,29,0)}if(a<0||a>=900){throw Tq(new Qq,Ox+a)}return $g(ys(hn,ir(new dr,a)))} function Cc(a){var b,c,d;c=vg(gj,0,17,a.length,0);for(d=0,b=a.length;d<b;++d){if(!a[d]){throw pr(new nr)}c[d]=a[d]}} function de(){var a,b,c,d;c=be(new _d);d=vg(gj,0,17,c.length,0);for(a=0,b=d.length;a<b;++a){d[a]=tr(new rr,Jw,c[a],Kw,0)}Cc(d)} function rs(){var a,b,c;c=0;for(b=bt(new _s,Ts(new Ms,Mg(this,31)).a);Qt(b.a);){a=Mg(Rt(b.a),29);c+=a.hC();c=~~c}return c} function Us(a,b){var c,d,e;if(b!=null&&Jg(b.tI,29)){c=Mg(b,29);d=c.z();if(xs(a.a,d)){e=ys(a.a,d);return Hu(c.A(),e)}}return false} function kt(a){var b;if(a!=null&&Jg(a.tI,29)){b=Mg(a,29);if(ov(this.z(),b.z())&&ov(this.A(),b.A())){return true}}return false} function gwtOnLoad(b,c,d){$moduleName=c;$moduleBase=d;if(b)try{$entry(mj)()}catch(a){b(c)}else{$entry(mj)()}} function ne(a,b,c,d){var e;e=oe(a);le(a,e.substr(0,b-0));a[a.explicitLength++]=d==null?Lw:d;le(a,e.substr(c,e.length-c))} function Id(b,c){yd();$wnd.setTimeout(function(){var a=$entry(Ed)(b);a&&$wnd.setTimeout(arguments.callee,c)},c)} function sk(){var a=false;for(var b=0;b<$wnd.__gwt_globalEventArray.length;b++){!$wnd.__gwt_globalEventArray[b]()&&(a=true)}return !a} function zs(h,a,b){var c=h.a[b];if(c){for(var d=0,e=c.length;d<e;++d){var f=c[d];var g=f.z();if(h.y(a,g)){return f.A()}}}return null} function Bs(h,a,b){var c=h.a[b];if(c){for(var d=0,e=c.length;d<e;++d){var f=c[d];var g=f.z();if(h.y(a,g)){return true}}}return false} function En(a,b){var c,d,e,f,g;c=0;d=0;g=0;for(f=0;f<b;++f){for(e=0;e<b;++e){(e&1)==0&&(c|=1<<d);if(++d==32){a[g++]^=c;d=0;c=0}}}a[g]^=c} function On(a,b){var c,d,e,f,g;c=0;d=0;g=0;for(f=0;f<b;++f){for(e=0;e<b;++e){(e+f)%3==0&&(c|=1<<d);if(++d==32){a[g++]^=c;d=0;c=0}}}a[g]^=c} function ho(a,b){var c,d,e,f,g;c=0;d=0;g=0;for(f=0;f<b;++f){for(e=0;e<b;++e){((e+f&1)+e*f%3&1)==0&&(c|=1<<d);if(++d==32){a[g++]^=c;d=0;c=0}}}a[g]^=c} function Jn(a,b){var c,d,e,f,g,h;c=0;e=0;h=0;for(g=0;g<b;++g){d=g%3==0;for(f=0;f<b;++f){d&&(c|=1<<e);if(++e==32){a[h++]^=c;e=0;c=0}}}a[h]^=c} function Yn(a,b){var c,d,e,f,g,h;c=0;d=0;g=0;for(f=0;f<b;++f){for(e=0;e<b;++e){h=e*f;(h&1)==0&&h%3==0&&(c|=1<<d);if(++d==32){a[g++]^=c;d=0;c=0}}}a[g]^=c} function bo(a,b){var c,d,e,f,g,h;c=0;d=0;g=0;for(f=0;f<b;++f){for(e=0;e<b;++e){h=e*f;((h&1)+h%3&1)==0&&(c|=1<<d);if(++d==32){a[g++]^=c;d=0;c=0}}}a[g]^=c} function ks(a){var b,c,d,e;e=this.w();a.length<e&&(a=sg(a,e));d=a;c=this.p();for(b=0;b<e;++b){yg(d,b,c.s())}a.length>e&&yg(a,e,null);return a} function $d(a){var b,c,d;d=Ew;a=Cr(a);b=a.indexOf(Fw);if(b!=-1){c=a.indexOf(Gw)==0?8:0;d=Cr(a.substr(c,b-c))}return d.length>0?d:Hw} function ce(a){var b,c,d,e;d=(Qg(a.a)?Ng(a.a):null,[]);e=vg(gj,0,17,d.length,0);for(b=0,c=e.length;b<c;++b){e[b]=tr(new rr,Jw,d[b],Kw,0)}Cc(e)} function Ko(){Ko=Bv;Ho=Lo(new Eo,0,Ux);Io=Lo(new Eo,1,Vx);Jo=Lo(new Eo,2,Wx);Go=Lo(new Eo,3,Xx);Fo=wg(aj,0,11,[Io,Ho,Go,Jo])} function sn(){sn=Bv;rn=wg(_i,0,10,[(wn(),sn(),new vn),(Bn(),new An),(Gn(),new Fn),(Ln(),new Kn),(Qn(),new Pn),(Vn(),new Un),($n(),new Zn),(eo(),new co)])} function Cr(c){if(c.length==0||c[0]>py&&c[c.length-1]>py){return c}var a=c.replace(/^(\s*)/,Ew);var b=a.replace(/\s*$/,Ew);return b} function Fe(a,b){if(a.nodeType!=1&&a.nodeType!=9){return a==b}if(b.nodeType!=1){b=b.parentNode;if(!b){return false}}return a===b||a.contains(b)} function pp(a,b){var c,d,e;if(b==0){return a.b.d}if(b==1){return a}e=a.a.length;d=vg(Yi,65,-1,e,1);for(c=0;c<e;++c){d[c]=gp(a.b,a.a[c],b)}return kp(new ip,a.b,d)} function su(a,b){var c,d,e;b.length<a.b&&(b=(d=b,e=tg(0,a.b),wg(d.aC,d.tI,d.qI,e),e));for(c=0;c<a.b;++c){yg(b,c,a.a[c])}b.length>a.b&&yg(b,a.b,null);return b} function yg(a,b,c){if(c!=null){if(a.qI>0&&!Kg(c.tI,a.qI)){throw Aq(new yq)}if(a.qI<0&&(c.tM==Bv||c.tI==2)){throw Aq(new yq)}}return a[b]=c} function Ok(a){var b;if(a.b){throw Yq(new Vq,Ax)}a.b=true;a.e.__listener=a;b=a.c;a.c=-1;b>0&&(a.c==-1?Ij(a.e,b|(a.e.__eventBits||0)):(a.c|=b),undefined);a.l();a.n()} function Wk(a){var b;switch(hk((re(),a).type)){case 16:case 32:b=a.relatedTarget||(a.type==fx?a.toElement:a.fromElement);if(!!b&&Fe(this.e,b)){return}}} function Tf(a,b){var c;if(b.a){b.a=false;b.b=null}c=b.b;b.b=a.e;try{++a.b;eg(a.d,b,a.c)}finally{--a.b;a.b==0&&Uf(a)}if(c==null){b.a=true;b.b=null}else{b.b=c}} function il(a,b){var c,d;if(b.d!=a){return false}try{Rk(b,null)}finally{c=b.e;(d=(re(),c).parentNode,(!d||d.nodeType!=1)&&(d=null),d).removeChild(c);zm(a.a,b)}return true} function Yo(a,b){Ro();a^=b;return Po[a&15]+Po[a>>>4&15]+Po[a>>>8&15]+Po[a>>>12&15]+Po[a>>>16&15]+Po[a>>>20&15]+Po[a>>>24&15]+Po[a>>>28&15]} function Tn(a,b){var c,d,e,f,g,h;c=0;d=0;h=0;for(f=0;f<b;++f){g=~~(f/3)&1;for(e=0;e<b;++e){(e>>1&1)==g&&(c|=1<<d);if(++d==32){a[h++]^=c;d=0;c=0}}}a[h]^=c} function Hd(b,c){var a,e,f,g;for(e=0,f=b.length;e<f;++e){g=b[e];try{g[1]?g[0].g()&&(c[c.length]=g,undefined):g[0].E()}catch(a){a=pj(a);if(!Pg(a,2))throw a}}} function mp(a,b){var c,d,e;if(b==0){return a.a[a.a.length-1]}e=a.a.length;if(b==1){d=0;for(c=0;c<e;++c){d=(ap(),d^a.a[c])}return d}d=a.a[0];for(c=1;c<e;++c){d=(ap(),gp(a.b,b,d)^a.a[c])}return d} function wl(b,c){var i;tl();var a,e,f,g,h;e=null;for(h=b.p();h.r();){g=Mg(h.s(),8);try{c.q(g)}catch(a){a=pj(a);if(Pg(a,18)){f=a;!e&&(e=Lu(new Ju));i=Ds(e.a,f,e)}else throw a}}if(e){throw ul(new ql,e)}} function Uo(a){var b,c,d,e,f,g,h;h=a^21522;b=2147483647;c=0;for(f=0;f<Qo.length;++f){e=Qo[f];g=e[0];if(g==h){return So(new Oo,e[1])}d=Yo(h,g);if(d<b){c=e[1];b=d}}if(b<=3){return So(new Oo,c)}return null} function Es(j,a,b,c){var d=j.a[c];if(d){for(var e=0,f=d.length;e<f;++e){var g=d[e];var h=g.z();if(j.y(a,h)){var i=g.A();g.B(b);return i}}}else{d=j.a[c]=[]}var g=_u(new Zu,a,b);d.push(g);++j.d;return null} function Nr(a){var b,c,d,e;b=0;d=a.length;e=d-4;c=0;while(c<e){b=a.charCodeAt(c+3)+31*(a.charCodeAt(c+2)+31*(a.charCodeAt(c+1)+31*(a.charCodeAt(c)+31*b)))|0;c+=4}while(c<d){b=b*31+a.charCodeAt(c++)}return b|0} function Fp(a){Cp();switch(a){case 0:return Bp;case 1:return zp;case 2:return tp;case 3:return Ap;case 4:return up;case 5:return wp;case 7:return vp;case 8:return yp;case 9:return xp;default:throw Sq(new Qq);}} function wm(a,b,c){var d,e;if(c<0||c>a.c){throw ar(new $q)}if(a.c==a.a.length){e=vg(Zi,0,8,a.a.length*2,0);for(d=0;d<a.a.length;++d){yg(e,d,a.a[d])}a.a=e}++a.c;for(d=a.c-1;d>c;--d){yg(a.a,d,a.a[d-1])}yg(a.a,c,b)} function Up(a,b){var c,d,e,f;e=b.a.length-1;if(e==1){return wg(Yi,65,-1,[b.a[b.a.length-1-1]])}f=vg(Yi,65,-1,e,1);c=0;for(d=1;d<256&&c<e;++d){if(mp(b,d)==0){f[c]=ep(a.a,d);++c}}if(c!=e){throw $p(new Yp,my)}return f} function Ps(a){var b,c,d;if((a==null?null:a)===this){return true}if(!(a!=null&&Jg(a.tI,32))){return false}c=Mg(a,32);if(c.w()!=this.w()){return false}for(b=c.p();b.r();){d=b.s();if(!this.v(d)){return false}}return true} function Be(a,b){var c,d;if(b.indexOf(Iw)!=-1){c=(!a.__gwt_container&&(a.__gwt_container=a.createElement(Nw)),a.__gwt_container);c.innerHTML=Ow+b+Pw||Ew;d=ue((re(),c));c.removeChild(d);return d}return a.createElement(b)} function xo(b,c,d){var a,f,g,h,i;h=c.length;f=vg(Yi,65,-1,h,1);for(g=0;g<h;++g){f[g]=c[g]&255}i=c.length-d;try{Tp(b.a,f,i)}catch(a){a=pj(a);if(Pg(a,25)){throw Np(),Np(),Mp}else throw a}for(g=0;g<d;++g){c[g]=f[g]<<24>>24}} function kp(a,b,c){var d,e;if(c==null||c.length==0){throw Sq(new Qq)}a.b=b;d=c.length;if(d>1&&c[0]==0){e=1;while(e<d&&c[e]==0){++e}if(e==d){a.a=b.d.a}else{a.a=vg(Yi,65,-1,d-e,1);Zr(c,e,a.a,0,a.a.length)}}else{a.a=c}return a} function bm(a){Zl();var b,c;c=Mg(ys(Xl,a),23);b=null;if(a!=null){if(!(b=$doc.getElementById(a))){return null}}if(c){if(!b||c.e==b){return c}}Xl.d==0&&Oj(new im);!b?(c=nm(new lm)):(c=$l(new Vl,b));Ds(Xl,a,c);Mu(Yl,c);return c} function Sm(a,b,c,d,e){var f,g,h,i,j,k;if(b<0||c<0){throw Tq(new Qq,Lx)}if(d<1||e<1){throw Tq(new Qq,Mx)}j=c+e;i=b+d;if(i>a.b||j>a.b){throw Tq(new Qq,Nx)}for(g=c;g<j;++g){h=a.b*g;for(f=b;f<i;++f){k=f+h;a.a[k>>5]|=1<<(k&31)}}} function Vp(a,b,c,d){var e,f,g,h,i,j;i=c.length;h=vg(Yi,65,-1,i,1);for(f=0;f<i;++f){j=ep(a.a,c[f]);e=1;for(g=0;g<i;++g){f!=g&&(e=gp(a.a,e,(ap(),1^gp(a.a,c[g],j))))}h[f]=gp(a.a,mp(b,j),ep(a.a,e));d&&(h[f]=gp(a.a,h[f],j))}return h} function qp(a,b,c){var d,e,f;if(b<0){throw Sq(new Qq)}if(c==0){return a.b.d}f=a.a.length;e=vg(Yi,65,-1,f+b,1);for(d=0;d<f;++d){e[d]=gp(a.b,a.a[d],c)}return kp(new ip,a.b,e)} function po(a,b,c,d){var e,f;f=vg(Wi,0,-1,c,1);if(c<<3>8*(a.c.length-a.b)-a.a){throw Np(),Np(),Mp}for(e=0;e<c;++e){f[e]=cn(a,8)<<24>>24}so(f);Vr(b,mo(f));mu(d.a,f)} function qo(a,b,c){var d,e,f,g;e=vg(Wi,0,-1,2*c,1);f=0;while(c>0){g=cn(a,13);d=~~(g/192)<<8|g%192;d<7936?(d+=33088):(d+=49472);e[f]=d>>8<<24>>24;e[f+1]=d<<24>>24;f+=2;--c}Vr(b,mo(e))} function eq(a,b,c,d,e,f,g){var h,i,j,k,l;dq();a.d=b;a.a=c;a.b=wg(dj,0,14,[d,e,f,g]);l=0;i=d.b;j=d.a;for(k=0;k<j.length;++k){h=j[k];l+=h.a*(h.b+i)}a.c=l;return a} function Kp(a){var b,c,d,e,f,g,h,i;f=a.length;b=Pm(new Nm,f);for(g=0;g<f;++g){for(h=0;h<f;++h){a!=null&&a[g][h]==1&&(i=g+b.b*h,b.a[i>>5]|=1<<(i&31),undefined)}}d=wo(new uo);e=yo(d,b);c=e.a;$k(bm(hy));ml(bm(hy),Ml(new Gl,iy));ml(bm(hy),Ml(new Gl,jy+c+ky))} function eg(a,b,c){var d,e,f,g,h,i,j;g=b.j();d=(h=Mg(ys(a.a,g),4),!h?0:h.b);if(c){for(f=d-1;f>=0;--f){e=(i=Mg(ys(a.a,g),4),Mg((Gt(f,i.b),i.a[f]),21));b.i(e)}}else{for(f=0;f<d;++f){e=(j=Mg(ys(a.a,g),4),Mg((Gt(f,j.b),j.a[f]),21));b.i(e)}}} function bp(a,b){var c,d;ap();a.a=vg(Yi,65,-1,256,1);a.b=vg(Yi,65,-1,256,1);d=1;for(c=0;c<256;++c){a.a[c]=d;d<<=1;d>=256&&(d^=b)}for(c=0;c<255;++c){a.b[a.a[c]]=c}a.d=kp(new ip,a,wg(Yi,65,-1,[0]));a.c=kp(new ip,a,wg(Yi,65,-1,[1]));return a} function be(i){var a={};var b=[];var c=arguments.callee.caller.caller;while(c){var d=i.h(c.toString());b.push(d);var e=Iw+d;var f=a[e];if(f){var g,h;for(g=0,h=f.length;g<h;g++){if(f[g]===c){return b}}}(f||(a[e]=[])).push(c);c=c.caller}return b} function yo(a,b){var c,d,e,f,g,h,i,j,k,l,m,n,o;k=Wm(new Um,b);o=Zm(k);g=Ym(k).b;d=Xm(k);f=pn(d,o,g);n=0;for(h=0;h<f.length;++h){n+=f[h].b}l=vg(Wi,0,-1,n,1);m=0;for(i=0;i<f.length;++i){e=f[i];c=e.a;j=e.b;xo(a,c,j);for(h=0;h<j;++h){l[m++]=c[h]}}return no(l,o)} function Ht(a){var b,c,d,e,f;if((a==null?null:a)===this){return true}if(!(a!=null&&Jg(a.tI,30))){return false}f=Mg(a,30);if(this.w()!=f.w()){return false}d=this.p();e=f.p();while(d.a<d.b.w()){b=Rt(d);c=Rt(e);if(!(b==null?c==null:Uc(b,c))){return false}}return true} function op(a,b){var c,d,e,f,g,h,i,j;if(a.b!=b.b){throw Tq(new Qq,Yx)}if(a.a[0]==0||b.a[0]==0){return a.b.d}d=a.a;e=d.length;f=b.a;g=f.length;j=vg(Yi,65,-1,e+g-1,1);for(h=0;h<e;++h){c=d[h];for(i=0;i<g;++i){j[h+i]=(ap(),j[h+i]^gp(a.b,c,f[i]))}}return kp(new ip,a.b,j)} function mj(){!!$stats&&$stats({moduleName:$moduleName,sessionId:$sessionId,subSystem:Qw,evtGroup:Rw,millis:(new Date).getTime(),type:Sw,className:Tw});$wnd.decode=Kp} function Gd(a){var b,c,d,e,f,g;b=false;d=a.length;f=(new Date).getTime();while((new Date).getTime()-f<100){for(c=0;c<d;++c){g=a[c];if(!g){continue}if(!g[0].g()){a[c]=null;b=true}}}if(b){e=[];for(c=0;c<d;++c){if(!a[c]){continue}e[e.length]=a[c]}return e}else{return a}} function cn(a,b){var c,d,e,f,g;if(b<1||b>32){throw Sq(new Qq)}f=0;if(a.a>0){c=8-a.a;g=b<c?b:c;d=c-g;e=255>>8-g<<d;f=(a.c[a.b]&e)>>d;b-=g;a.a+=g;if(a.a==8){a.a=0;++a.b}}if(b>0){while(b>=8){f=f<<8|a.c[a.b]&255;++a.b;b-=8}if(b>0){d=8-b;e=255>>d<<d;f=f<<b|(a.c[a.b]&e)>>d;a.a+=b}}return f} function Is(h,a,b){var c=h.a[b];if(c){for(var d=0,e=c.length;d<e;++d){var f=c[d];var g=f.z();if(h.y(a,g)){c.length==1?delete h.a[b]:c.splice(d,1);--h.d;return f.A()}}}return null} function oo(a,b,c,d){var e,f,g;g=pe(b.a).length;while(c>1){f=cn(a,11);Ur(b,jo[~~(f/45)]);Ur(b,jo[f%45]);c-=2}c==1&&Ur(b,jo[cn(a,6)]);if(d){for(e=g;e<pe(b.a).length;++e){pe(b.a).charCodeAt(e)==37&&(e<pe(b.a).length-1&&pe(b.a).charCodeAt(e+1)==37?ne(b.a,e+1,e+1+1,Ew):ne(b.a,e,e+1,Px))}}} function lo(){lo=Bv;jo=wg(Xi,0,-1,[48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,32,36,37,42,43,45,46,47,58]);ko=false} function lp(a,b){var c,d,e,f,g,h;if(a.b!=b.b){throw Tq(new Qq,Yx)}if(a.a[0]==0){return b}if(b.a[0]==0){return a}f=a.a;d=b.a;if(f.length>d.length){h=f;f=d;d=h}g=vg(Yi,65,-1,d.length,1);e=d.length-f.length;Zr(d,0,g,0,e);for(c=e;c<d.length;++c){g[c]=(ap(),f[c-e]^d[c])}return kp(new ip,a.b,g)} --></script> <script><!-- function Sj(){var a;if(!Lj){a=se((re(),$doc),(!Ak&&(Ak=new Dk),Uw));$doc.body.appendChild(a);$wnd.__gwt_initWindowCloseHandler($entry(Uj),$entry(Tj));$doc.body.removeChild(a);Lj=true}} function ro(a,b,c){var d,e,f;while(c>=3){e=cn(a,10);if(e>=1000){throw Np(),Np(),Mp}Ur(b,jo[~~(e/100)]);Ur(b,jo[~~(e/10)%10]);Ur(b,jo[e%10]);c-=3}if(c==2){f=cn(a,7);if(f>=100){throw Np(),Np(),Mp}Ur(b,jo[~~(f/10)]);Ur(b,jo[f%10])}else if(c==1){d=cn(a,4);if(d>=10){throw Np(),Np(),Mp}Ur(b,jo[d])}} function to(a){var b,c,d;b=cn(a,8);if((b&128)==0){return b&127}else if((b&192)==128){c=cn(a,8);return (b&63)<<8|c}else if((b&224)==192){d=cn(a,16);return (b&31)<<16|d}throw Tq(new Qq,Tx+b)} function fq(a){var b,c,d,e,f,g;c=17+4*a.d;b=Pm(new Nm,c);Sm(b,0,0,9,9);Sm(b,0,c-8,9,8);Sm(b,c-8,0,8,9);e=a.a.length;for(f=0;f<e;++f){d=a.a[f]-2;for(g=0;g<e;++g){if(f==0&&(g==0||g==e-1)||f==e-1&&g==0){continue}Sm(b,d,a.a[g]-2,5,5)}}Sm(b,9,6,c-17,1);Sm(b,6,9,1,c-17);if(a.d>6){Sm(b,0,c-11,6,3);Sm(b,c-11,0,3,6)}return b} function Zm(a){var b,c,d,e,f,g,h;if(a.c){return a.c}b=a.a.b;g=b-17>>2;if(g<=6){return iq(g)}h=0;for(c=5;c>=0;--c){f=b-11;for(e=b-9;e>=f;--e){h=Qm(a.a,c,e)?h<<1|1:h<<1}}a.c=gq(h);if(a.c){return a.c}h=0;for(e=5;e>=0;--e){d=b-11;for(c=b-11;c>=d;--c){h=Qm(a.a,c,e)?h<<1|1:h<<1}}a.c=gq(h);if(a.c){return a.c}throw Np(),Np(),Mp} function Cp(){Cp=Bv;Bp=Dp(new sp,wg(Yi,65,-1,[0,0,0]),Zx);zp=Dp(new sp,wg(Yi,65,-1,[10,12,14]),$x);tp=Dp(new sp,wg(Yi,65,-1,[9,11,13]),_x);Ap=Dp(new sp,wg(Yi,65,-1,[0,0,0]),ay);up=Dp(new sp,wg(Yi,65,-1,[8,16,16]),by);vp=Dp(new sp,null,cy);yp=Dp(new sp,wg(Yi,65,-1,[8,10,12]),dy);wp=Dp(new sp,null,ey);xp=Dp(new sp,null,fy)} function Tp(a,b,c){var d,e,f,g,h,i,j,k,l,m,n,o,p;k=kp(new ip,a.a,b);p=vg(Yi,65,-1,c,1);d=a.a==(ap(),$o);i=true;for(h=0;h<c;++h){g=mp(k,a.a.a[d?h+1:h]);p[p.length-1-h]=g;g!=0&&(i=false)}if(i){return}o=kp(new ip,a.a,p);n=Wp(a,cp(a.a,c,1),o,c);m=n[0];j=n[1];e=Up(a,m);f=Vp(a,j,e,d);for(h=0;h<e.length;++h){l=b.length-1-fp(a.a,e[h]);if(l<0){throw $p(new Yp,ly)}b[l]=b[l]^f[h]}} function Xm(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p;h=Ym(a);o=Zm(a);f=tn(h.a);g=a.a.b;f.t(a.a.a,g);i=fq(o);l=true;m=vg(Wi,0,-1,o.c,1);n=0;e=0;b=0;for(k=g-1;k>0;k-=2){k==6&&--k;for(d=0;d<g;++d){j=l?g-1-d:d;for(c=0;c<2;++c){if(!(p=j+i.b*(k-c),(i.a[p>>5]>>>(p&31)&1)!=0)){++b;e<<=1;Qm(a.a,j,k-c)&&(e|=1);if(b==8){m[n++]=e<<24>>24;b=0;e=0}}}}l^=true}if(n!=o.c){throw Np(),Np(),Mp}return m} function Ym(a){var b,c,d,e,f;if(a.b){return a.b}c=0;for(f=0;f<6;++f){c=Qm(a.a,8,f)?c<<1|1:c<<1}c=Qm(a.a,8,7)?c<<1|1:c<<1;c=Qm(a.a,8,8)?c<<1|1:c<<1;c=Qm(a.a,7,8)?c<<1|1:c<<1;for(d=5;d>=0;--d){c=Qm(a.a,d,8)?c<<1|1:c<<1}a.b=To(c);if(a.b){return a.b}b=a.a.b;c=0;e=b-8;for(d=b-1;d>=e;--d){c=Qm(a.a,d,8)?c<<1|1:c<<1}for(f=b-7;f<b;++f){c=Qm(a.a,8,f)?c<<1|1:c<<1}a.b=To(c);if(a.b){return a.b}throw Np(),Np(),Mp} function hk(a){switch(a){case Vw:return 4096;case Ww:return 1024;case Xw:return 1;case Yw:return 2;case Zw:return 2048;case $w:return 128;case _w:return 256;case ax:return 512;case bx:return 32768;case cx:return 8192;case dx:return 4;case ex:return 64;case fx:return 32;case gx:return 16;case hx:return 8;case ix:return 16384;case jx:return 65536;case kx:return 131072;case lx:return 131072;case mx:return 262144;case nx:return 524288;}} function ps(a){var b,c,d,e,f;if((a==null?null:a)===this){return true}if(!(a!=null&&Jg(a.tI,31))){return false}e=Mg(a,31);if(Mg(this,31).d!=e.d){return false}for(c=bt(new _s,Ts(new Ms,e).a);Qt(c.a);){b=Mg(Rt(c.a),29);d=b.z();f=b.A();if(!(d==null?Mg(this,31).c:d!=null&&Jg(d.tI,1)?Cs(Mg(this,31),Mg(d,1)):Bs(Mg(this,31),d,~~Yc(d)))){return false}if(!ov(f,d==null?Mg(this,31).b:d!=null&&Jg(d.tI,1)?Mg(this,31).e[Iw+Mg(d,1)]:zs(Mg(this,31),d,~~Yc(d)))){return false}}return true} function no(b,c){lo();var a,e,f,g,h,i,j,k;e=bn(new _m,b);j=Tr(new Qr);h=false;f=rv(new pv,1);do{if(8*(e.c.length-e.b)-e.a<4){i=(Cp(),Bp)}else{try{i=Fp(cn(e,4))}catch(a){a=pj(a);if(Pg(a,24)){throw Np(),Np(),Mp}else throw a}}if(i!=(Cp(),Bp)){if(i==wp||i==xp){h=true}else if(i==Ap){cn(e,16)}else if(i==vp){k=to(e);kn(k);throw Np(),Np(),Mp}else{g=cn(e,Ep(i,c));if(i==zp){ro(e,j,g)}else if(i==tp){oo(e,j,g,h)}else if(i==up){po(e,j,g,f)}else if(i==yp){qo(e,j,g)}else{throw Np(),Np(),Mp}}}}while(i!=(Cp(),Bp));return Co(new Ao,b,pe(j.a))} function pn(a,b,c){var d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t;if(a.length!=b.c){throw Sq(new Qq)}f=b.b[c.a];t=0;e=f.a;for(g=0;g<e.length;++g){t+=e[g].a}q=vg($i,0,9,t,0);o=0;for(i=0;i<e.length;++i){d=e[i];for(g=0;g<d.a;++g){n=d.b;l=f.b+n;q[o++]=nn(new ln,n,vg(Wi,0,-1,l,1))}}s=q[0].a.length;j=q.length-1;while(j>=0){m=q[j].a.length;if(m==s){break}--j}++j;r=s-f.b;p=0;for(g=0;g<r;++g){for(i=0;i<o;++i){q[i].a[g]=a[p++]}}for(i=j;i<o;++i){q[i].a[r]=a[p++]}k=q[0].a.length;for(g=r;g<k;++g){for(i=0;i<o;++i){h=i<j?g:g+1;q[i].a[h]=a[p++]}}return q} function Wp(a,b,c,d){var e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w;if(b.a.length-1<c.a.length-1){w=b;b=c;c=w}l=b;k=c;o=a.a.c;n=a.a.d;u=a.a.d;t=a.a.c;while(k.a.length-1>=~~(d/2)){m=l;p=o;v=u;l=k;o=n;u=t;if(l.a[0]==0){throw $p(new Yp,ny)}k=m;j=a.a.d;f=np(l,l.a.length-1);g=ep(a.a,f);while(k.a.length-1>=l.a.length-1&&k.a[0]!=0){e=k.a.length-1-(l.a.length-1);q=gp(a.a,np(k,k.a.length-1),g);j=lp(j,cp(a.a,e,q));k=lp(k,qp(l,e,q))}n=lp(op(j,o),p);t=lp(op(j,u),v)}s=t.a[t.a.length-1];if(s==0){throw $p(new Yp,oy)}h=ep(a.a,s);r=pp(t,h);i=pp(k,h);return wg(bj,0,12,[r,i])} function Zr(a,b,c,d,e){var f,g,h,i,j,k,l,m,n;if(a==null||c==null){throw pr(new nr)}m=a.tM==Bv||a.tI==2?a.gC():eh;i=c.tM==Bv||c.tI==2?c.gC():eh;if((m.b&4)==0||(i.b&4)==0){throw Bq(new yq,qy)}l=m.a;g=i.a;if(l.b!=g.b||(l.b&1)!=0&&l!=g){throw Bq(new yq,ry)}n=a.length;j=c.length;if(b<0||d<0||e<0||b+e>n||d+e>j){throw ar(new $q)}if(((l.b&1)==0||(l.b&4)!=0)&&m!=i){k=Mg(a,28);f=Mg(c,28);if((a==null?null:a)===(c==null?null:c)&&b<d){b+=e;for(h=d+e;h-->d;){yg(f,h,k[--b])}}else{for(h=d+e;d<h;){yg(f,d++,k[b++])}}}else{Array.prototype.splice.apply(c,[d,e].concat(a.slice(b,b+e)))}} function so(a){var b,c,d,e,f,g,h,i,j,k;if(ko){return Qx}if(a.length>3&&a[0]==-17&&a[1]==-69&&a[2]==-65){return Rx}f=a.length;b=true;c=true;i=false;g=0;j=false;e=false;for(d=0;d<f&&(b||c);++d){k=a[d]&255;if(k==194||k==195&&d<f-1){h=a[d+1]&255;h<=191&&(k==194&&h>=160||k==195&&h>=128)&&(j=true)}k>=127&&k<=159&&(b=false);k>=161&&k<=223&&!e&&++g;!e&&(k>=240&&k<=255||k==128||k==160)&&(c=false);if((k>=129&&k<=159||k>=224&&k<=239)&&d<f-1){i=true;if(e){e=false}else{e=true;h=a[d+1]&255;(h<64||h>252)&&(c=false)}}else{e=false}}if(c&&(i||20*g>f)){return Qx}if(!j&&b){return Sx}return Rx} function rk(a,b){var c=(a.__eventBits||0)^b;a.__eventBits=b;if(!c)return;c&1&&(a.onclick=b&1?ok:null);c&3&&(a.ondblclick=b&3?nk:null);c&4&&(a.onmousedown=b&4?ok:null);c&8&&(a.onmouseup=b&8?ok:null);c&16&&(a.onmouseover=b&16?ok:null);c&32&&(a.onmouseout=b&32?ok:null);c&64&&(a.onmousemove=b&64?ok:null);c&128&&(a.onkeydown=b&128?ok:null);c&256&&(a.onkeypress=b&256?ok:null);c&512&&(a.onkeyup=b&512?ok:null);c&1024&&(a.onchange=b&1024?ok:null);c&2048&&(a.onfocus=b&2048?ok:null);c&4096&&(a.onblur=b&4096?ok:null);c&8192&&(a.onlosecapture=b&8192?ok:null);c&16384&&(a.onscroll=b&16384?ok:null);c&32768&&(a.onload=b&32768?ok:null);c&65536&&(a.onerror=b&65536?ok:null);c&131072&&(a.onmousewheel=b&131072?ok:null);c&262144&&(a.oncontextmenu=b&262144?ok:null);c&524288&&(a.onpaste=b&524288?ok:null)} function Ro(){Ro=Bv;Qo=wg(ij,0,20,[wg(Yi,65,-1,[21522,0]),wg(Yi,65,-1,[20773,1]),wg(Yi,65,-1,[24188,2]),wg(Yi,65,-1,[23371,3]),wg(Yi,65,-1,[17913,4]),wg(Yi,65,-1,[16590,5]),wg(Yi,65,-1,[20375,6]),wg(Yi,65,-1,[19104,7]),wg(Yi,65,-1,[30660,8]),wg(Yi,65,-1,[29427,9]),wg(Yi,65,-1,[32170,10]),wg(Yi,65,-1,[30877,11]),wg(Yi,65,-1,[26159,12]),wg(Yi,65,-1,[25368,13]),wg(Yi,65,-1,[27713,14]),wg(Yi,65,-1,[26998,15]),wg(Yi,65,-1,[5769,16]),wg(Yi,65,-1,[5054,17]),wg(Yi,65,-1,[7399,18]),wg(Yi,65,-1,[6608,19]),wg(Yi,65,-1,[1890,20]),wg(Yi,65,-1,[597,21]),wg(Yi,65,-1,[3340,22]),wg(Yi,65,-1,[2107,23]),wg(Yi,65,-1,[13663,24]),wg(Yi,65,-1,[12392,25]),wg(Yi,65,-1,[16177,26]),wg(Yi,65,-1,[14854,27]),wg(Yi,65,-1,[9396,28]),wg(Yi,65,-1,[8579,29]),wg(Yi,65,-1,[11994,30]),wg(Yi,65,-1,[11245,31])]);Po=wg(Yi,65,-1,[0,1,1,2,1,2,2,3,1,2,2,3,2,3,3,4])} function qk(){$wnd.__gwt_globalEventArray==null&&($wnd.__gwt_globalEventArray=new Array);$wnd.__gwt_globalEventArray[$wnd.__gwt_globalEventArray.length]=$entry(function(){return Hj($wnd.event)});ok=$entry(function(){var a=(Ae(),ze);ze=this;if($wnd.event.returnValue==null){$wnd.event.returnValue=true;if(!sk()){ze=a;return}}var b,c=this;while(c&&!(b=c.__listener)){c=c.parentElement}b&&!(b!=null&&b.tM!=Bv&&b.tI!=2)&&b!=null&&Jg(b.tI,6)&&Fj($wnd.event,c,b);ze=a});nk=$entry(function(){var a=$doc.createEventObject();$wnd.event.returnValue==null&&$wnd.event.srcElement.fireEvent(ox,a);if(this.__eventBits&2){ok.call(this)}else if($wnd.event.returnValue==null){$wnd.event.returnValue=true;sk()}});var d=$entry(function(){ok.call($doc.body)});var e=$entry(function(){nk.call($doc.body)});$doc.body.attachEvent(ox,d);$doc.body.attachEvent(px,d);$doc.body.attachEvent(qx,d);$doc.body.attachEvent(rx,d);$doc.body.attachEvent(sx,d);$doc.body.attachEvent(tx,d);$doc.body.attachEvent(ux,d);$doc.body.attachEvent(vx,d);$doc.body.attachEvent(wx,d);$doc.body.attachEvent(xx,d);$doc.body.attachEvent(yx,e);$doc.body.attachEvent(zx,d)} function dq(){dq=Bv;cq=wg(Yi,65,-1,[31892,34236,39577,42195,48118,51042,55367,58893,63784,68472,70749,76311,79154,84390,87683,92361,96236,102084,102881,110507,110734,117786,119615,126325,127568,133589,136944,141498,145311,150283,152622,158308,161089,167017]);bq=wg(ej,0,15,[eq(new aq,1,wg(Yi,65,-1,[]),pq(new nq,7,lq(new jq,1,19)),pq(new nq,10,lq(new jq,1,16)),pq(new nq,13,lq(new jq,1,13)),pq(new nq,17,lq(new jq,1,9))),eq(new aq,2,wg(Yi,65,-1,[6,18]),pq(new nq,10,lq(new jq,1,34)),pq(new nq,16,lq(new jq,1,28)),pq(new nq,22,lq(new jq,1,22)),pq(new nq,28,lq(new jq,1,16))),eq(new aq,3,wg(Yi,65,-1,[6,22]),pq(new nq,15,lq(new jq,1,55)),pq(new nq,26,lq(new jq,1,44)),pq(new nq,18,lq(new jq,2,17)),pq(new nq,22,lq(new jq,2,13))),eq(new aq,4,wg(Yi,65,-1,[6,26]),pq(new nq,20,lq(new jq,1,80)),pq(new nq,18,lq(new jq,2,32)),pq(new nq,26,lq(new jq,2,24)),pq(new nq,16,lq(new jq,4,9))),eq(new aq,5,wg(Yi,65,-1,[6,30]),pq(new nq,26,lq(new jq,1,108)),pq(new nq,24,lq(new jq,2,43)),qq(new nq,18,lq(new jq,2,15),lq(new jq,2,16)),qq(new nq,22,lq(new jq,2,11),lq(new jq,2,12))),eq(new aq,6,wg(Yi,65,-1,[6,34]),pq(new nq,18,lq(new jq,2,68)),pq(new nq,16,lq(new jq,4,27)),pq(new nq,24,lq(new jq,4,19)),pq(new nq,28,lq(new jq,4,15))),eq(new aq,7,wg(Yi,65,-1,[6,22,38]),pq(new nq,20,lq(new jq,2,78)),pq(new nq,18,lq(new jq,4,31)),qq(new nq,18,lq(new jq,2,14),lq(new jq,4,15)),qq(new nq,26,lq(new jq,4,13),lq(new jq,1,14))),eq(new aq,8,wg(Yi,65,-1,[6,24,42]),pq(new nq,24,lq(new jq,2,97)),qq(new nq,22,lq(new jq,2,38),lq(new jq,2,39)),qq(new nq,22,lq(new jq,4,18),lq(new jq,2,19)),qq(new nq,26,lq(new jq,4,14),lq(new jq,2,15))),eq(new aq,9,wg(Yi,65,-1,[6,26,46]),pq(new nq,30,lq(new jq,2,116)),qq(new nq,22,lq(new jq,3,36),lq(new jq,2,37)),qq(new nq,20,lq(new jq,4,16),lq(new jq,4,17)),qq(new nq,24,lq(new jq,4,12),lq(new jq,4,13))),eq(new aq,10,wg(Yi,65,-1,[6,28,50]),qq(new nq,18,lq(new jq,2,68),lq(new jq,2,69)),qq(new nq,26,lq(new jq,4,43),lq(new jq,1,44)),qq(new nq,24,lq(new jq,6,19),lq(new jq,2,20)),qq(new nq,28,lq(new jq,6,15),lq(new jq,2,16))),eq(new aq,11,wg(Yi,65,-1,[6,30,54]),pq(new nq,20,lq(new jq,4,81)),qq(new nq,30,lq(new jq,1,50),lq(new jq,4,51)),qq(new nq,28,lq(new jq,4,22),lq(new jq,4,23)),qq(new nq,24,lq(new jq,3,12),lq(new jq,8,13))),eq(new aq,12,wg(Yi,65,-1,[6,32,58]),qq(new nq,24,lq(new jq,2,92),lq(new jq,2,93)),qq(new nq,22,lq(new jq,6,36),lq(new jq,2,37)),qq(new nq,26,lq(new jq,4,20),lq(new jq,6,21)),qq(new nq,28,lq(new jq,7,14),lq(new jq,4,15))),eq(new aq,13,wg(Yi,65,-1,[6,34,62]),pq(new nq,26,lq(new jq,4,107)),qq(new nq,22,lq(new jq,8,37),lq(new jq,1,38)),qq(new nq,24,lq(new jq,8,20),lq(new jq,4,21)),qq(new nq,22,lq(new jq,12,11),lq(new jq,4,12))),eq(new aq,14,wg(Yi,65,-1,[6,26,46,66]),qq(new nq,30,lq(new jq,3,115),lq(new jq,1,116)),qq(new nq,24,lq(new jq,4,40),lq(new jq,5,41)),qq(new nq,20,lq(new jq,11,16),lq(new jq,5,17)),qq(new nq,24,lq(new jq,11,12),lq(new jq,5,13))),eq(new aq,15,wg(Yi,65,-1,[6,26,48,70]),qq(new nq,22,lq(new jq,5,87),lq(new jq,1,88)),qq(new nq,24,lq(new jq,5,41),lq(new jq,5,42)),qq(new nq,30,lq(new jq,5,24),lq(new jq,7,25)),qq(new nq,24,lq(new jq,11,12),lq(new jq,7,13))),eq(new aq,16,wg(Yi,65,-1,[6,26,50,74]),qq(new nq,24,lq(new jq,5,98),lq(new jq,1,99)),qq(new nq,28,lq(new jq,7,45),lq(new jq,3,46)),qq(new nq,24,lq(new jq,15,19),lq(new jq,2,20)),qq(new nq,30,lq(new jq,3,15),lq(new jq,13,16))),eq(new aq,17,wg(Yi,65,-1,[6,30,54,78]),qq(new nq,28,lq(new jq,1,107),lq(new jq,5,108)),qq(new nq,28,lq(new jq,10,46),lq(new jq,1,47)),qq(new nq,28,lq(new jq,1,22),lq(new jq,15,23)),qq(new nq,28,lq(new jq,2,14),lq(new jq,17,15))),eq(new aq,18,wg(Yi,65,-1,[6,30,56,82]),qq(new nq,30,lq(new jq,5,120),lq(new jq,1,121)),qq(new nq,26,lq(new jq,9,43),lq(new jq,4,44)),qq(new nq,28,lq(new jq,17,22),lq(new jq,1,23)),qq(new nq,28,lq(new jq,2,14),lq(new jq,19,15))),eq(new aq,19,wg(Yi,65,-1,[6,30,58,86]),qq(new nq,28,lq(new jq,3,113),lq(new jq,4,114)),qq(new nq,26,lq(new jq,3,44),lq(new jq,11,45)),qq(new nq,26,lq(new jq,17,21),lq(new jq,4,22)),qq(new nq,26,lq(new jq,9,13),lq(new jq,16,14))),eq(new aq,20,wg(Yi,65,-1,[6,34,62,90]),qq(new nq,28,lq(new jq,3,107),lq(new jq,5,108)),qq(new nq,26,lq(new jq,3,41),lq(new jq,13,42)),qq(new nq,30,lq(new jq,15,24),lq(new jq,5,25)),qq(new nq,28,lq(new jq,15,15),lq(new jq,10,16))),eq(new aq,21,wg(Yi,65,-1,[6,28,50,72,94]),qq(new nq,28,lq(new jq,4,116),lq(new jq,4,117)),pq(new nq,26,lq(new jq,17,42)),qq(new nq,28,lq(new jq,17,22),lq(new jq,6,23)),qq(new nq,30,lq(new jq,19,16),lq(new jq,6,17))),eq(new aq,22,wg(Yi,65,-1,[6,26,50,74,98]),qq(new nq,28,lq(new jq,2,111),lq(new jq,7,112)),pq(new nq,28,lq(new jq,17,46)),qq(new nq,30,lq(new jq,7,24),lq(new jq,16,25)),pq(new nq,24,lq(new jq,34,13))),eq(new aq,23,wg(Yi,65,-1,[6,30,54,74,102]),qq(new nq,30,lq(new jq,4,121),lq(new jq,5,122)),qq(new nq,28,lq(new jq,4,47),lq(new jq,14,48)),qq(new nq,30,lq(new jq,11,24),lq(new jq,14,25)),qq(new nq,30,lq(new jq,16,15),lq(new jq,14,16))),eq(new aq,24,wg(Yi,65,-1,[6,28,54,80,106]),qq(new nq,30,lq(new jq,6,117),lq(new jq,4,118)),qq(new nq,28,lq(new jq,6,45),lq(new jq,14,46)),qq(new nq,30,lq(new jq,11,24),lq(new jq,16,25)),qq(new nq,30,lq(new jq,30,16),lq(new jq,2,17))),eq(new aq,25,wg(Yi,65,-1,[6,32,58,84,110]),qq(new nq,26,lq(new jq,8,106),lq(new jq,4,107)),qq(new nq,28,lq(new jq,8,47),lq(new jq,13,48)),qq(new nq,30,lq(new jq,7,24),lq(new jq,22,25)),qq(new nq,30,lq(new jq,22,15),lq(new jq,13,16))),eq(new aq,26,wg(Yi,65,-1,[6,30,58,86,114]),qq(new nq,28,lq(new jq,10,114),lq(new jq,2,115)),qq(new nq,28,lq(new jq,19,46),lq(new jq,4,47)),qq(new nq,28,lq(new jq,28,22),lq(new jq,6,23)),qq(new nq,30,lq(new jq,33,16),lq(new jq,4,17))),eq(new aq,27,wg(Yi,65,-1,[6,34,62,90,118]),qq(new nq,30,lq(new jq,8,122),lq(new jq,4,123)),qq(new nq,28,lq(new jq,22,45),lq(new jq,3,46)),qq(new nq,30,lq(new jq,8,23),lq(new jq,26,24)),qq(new nq,30,lq(new jq,12,15),lq(new jq,28,16))),eq(new aq,28,wg(Yi,65,-1,[6,26,50,74,98,122]),qq(new nq,30,lq(new jq,3,117),lq(new jq,10,118)),qq(new nq,28,lq(new jq,3,45),lq(new jq,23,46)),qq(new nq,30,lq(new jq,4,24),lq(new jq,31,25)),qq(new nq,30,lq(new jq,11,15),lq(new jq,31,16))),eq(new aq,29,wg(Yi,65,-1,[6,30,54,78,102,126]),qq(new nq,30,lq(new jq,7,116),lq(new jq,7,117)),qq(new nq,28,lq(new jq,21,45),lq(new jq,7,46)),qq(new nq,30,lq(new jq,1,23),lq(new jq,37,24)),qq(new nq,30,lq(new jq,19,15),lq(new jq,26,16))),eq(new aq,30,wg(Yi,65,-1,[6,26,52,78,104,130]),qq(new nq,30,lq(new jq,5,115),lq(new jq,10,116)),qq(new nq,28,lq(new jq,19,47),lq(new jq,10,48)),qq(new nq,30,lq(new jq,15,24),lq(new jq,25,25)),qq(new nq,30,lq(new jq,23,15),lq(new jq,25,16))),eq(new aq,31,wg(Yi,65,-1,[6,30,56,82,108,134]),qq(new nq,30,lq(new jq,13,115),lq(new jq,3,116)),qq(new nq,28,lq(new jq,2,46),lq(new jq,29,47)),qq(new nq,30,lq(new jq,42,24),lq(new jq,1,25)),qq(new nq,30,lq(new jq,23,15),lq(new jq,28,16))),eq(new aq,32,wg(Yi,65,-1,[6,34,60,86,112,138]),pq(new nq,30,lq(new jq,17,115)),qq(new nq,28,lq(new jq,10,46),lq(new jq,23,47)),qq(new nq,30,lq(new jq,10,24),lq(new jq,35,25)),qq(new nq,30,lq(new jq,19,15),lq(new jq,35,16))),eq(new aq,33,wg(Yi,65,-1,[6,30,58,86,114,142]),qq(new nq,30,lq(new jq,17,115),lq(new jq,1,116)),qq(new nq,28,lq(new jq,14,46),lq(new jq,21,47)),qq(new nq,30,lq(new jq,29,24),lq(new jq,19,25)),qq(new nq,30,lq(new jq,11,15),lq(new jq,46,16))),eq(new aq,34,wg(Yi,65,-1,[6,34,62,90,118,146]),qq(new nq,30,lq(new jq,13,115),lq(new jq,6,116)),qq(new nq,28,lq(new jq,14,46),lq(new jq,23,47)),qq(new nq,30,lq(new jq,44,24),lq(new jq,7,25)),qq(new nq,30,lq(new jq,59,16),lq(new jq,1,17))),eq(new aq,35,wg(Yi,65,-1,[6,30,54,78,102,126,150]),qq(new nq,30,lq(new jq,12,121),lq(new jq,7,122)),qq(new nq,28,lq(new jq,12,47),lq(new jq,26,48)),qq(new nq,30,lq(new jq,39,24),lq(new jq,14,25)),qq(new nq,30,lq(new jq,22,15),lq(new jq,41,16))),eq(new aq,36,wg(Yi,65,-1,[6,24,50,76,102,128,154]),qq(new nq,30,lq(new jq,6,121),lq(new jq,14,122)),qq(new nq,28,lq(new jq,6,47),lq(new jq,34,48)),qq(new nq,30,lq(new jq,46,24),lq(new jq,10,25)),qq(new nq,30,lq(new jq,2,15),lq(new jq,64,16))),eq(new aq,37,wg(Yi,65,-1,[6,28,54,80,106,132,158]),qq(new nq,30,lq(new jq,17,122),lq(new jq,4,123)),qq(new nq,28,lq(new jq,29,46),lq(new jq,14,47)),qq(new nq,30,lq(new jq,49,24),lq(new jq,10,25)),qq(new nq,30,lq(new jq,24,15),lq(new jq,46,16))),eq(new aq,38,wg(Yi,65,-1,[6,32,58,84,110,136,162]),qq(new nq,30,lq(new jq,4,122),lq(new jq,18,123)),qq(new nq,28,lq(new jq,13,46),lq(new jq,32,47)),qq(new nq,30,lq(new jq,48,24),lq(new jq,14,25)),qq(new nq,30,lq(new jq,42,15),lq(new jq,32,16))),eq(new aq,39,wg(Yi,65,-1,[6,26,54,82,110,138,166]),qq(new nq,30,lq(new jq,20,117),lq(new jq,4,118)),qq(new nq,28,lq(new jq,40,47),lq(new jq,7,48)),qq(new nq,30,lq(new jq,43,24),lq(new jq,22,25)),qq(new nq,30,lq(new jq,10,15),lq(new jq,67,16))),eq(new aq,40,wg(Yi,65,-1,[6,30,58,86,114,142,170]),qq(new nq,30,lq(new jq,19,118),lq(new jq,6,119)),qq(new nq,28,lq(new jq,18,47),lq(new jq,31,48)),qq(new nq,30,lq(new jq,34,24),lq(new jq,34,25)),qq(new nq,30,lq(new jq,20,15),lq(new jq,61,16)))])} var Ew='',Px='\x1D',py=' ',Fw='(',wy=', Size: ',Pw='/>',Iw=':',Ow='<',ky='<\/p>',iy='<h2>Decoded string:<\/h2>',jy="<p class='decoded'>",_x='ALPHANUMERIC',sy='Add not supported on this collection',uy='Add not supported on this list',ry='Array types must match',by='BYTE',Tx='Bad ECI bits starting with byte ',Ox='Bad ECI value: ',ly='Bad error location',Dx='Cannot set a new parent without first clearing the old parent',gy="Character count doesn't apply to this mode",lx='DOMMouseScroll',Jy='DataBlock;',Ky='DataMask;',cy='ECI',my='Error locator degree does not match number of roots',Ly='ErrorCorrectionLevel;',ey='FNC1_FIRST_POSITION',fy='FNC1_SECOND_POSITION',Ny='GF256Poly;',Yx='GF256Polys do not have same GF256 field',Xx='H',Sx='ISO8859_1',vy='Index: ',dy='KANJI',Ux='L',Vx='M',qy='Must be array types',$x='NUMERIC',Ry='Object;',Hx='One or more exceptions caught, see full set in AttachDetachException#getCauses',Wx='Q',Qx='SJIS',ay='STRUCTURED_APPEND',Ax="Should only call onAttach when the widget is detached from the browser's document",Bx="Should only call onDetach when the widget is attached to the browser's document",Ay='StackTraceElement;',Zx='TERMINATOR',Cx="This widget's parent does not implement HasWidgets",By='Throwable;',Rx='UTF8',Jw='Unknown',Kw='Unknown source',Qy='Version$ECB;',Oy='Version$ECBlocks;',Py='Version;',Dy='Widget;',Hy='[B',Fy='[C',yy='[I',Cy='[Lcom.google.gwt.user.client.ui.',Iy='[Lcom.onurgunduz.qrdec.client.',zy='[Ljava.lang.',My='[[I',Hw='anonymous',Vw='blur',Gy='byte',Ww='change',Ey='char',Ix='className',Xw='click',Tw='com.onurgunduz.qrdec.client.Qrdec',mx='contextmenu',Yw='dblclick',Kx='dimension must be at least 1',Nw='div',jx='error',Zw='focus',Gw='function',Uw='function __gwt_initWindowCloseHandler(beforeunload, unload) {\r\n var wnd = window\r\n , oldOnBeforeUnload = wnd.onbeforeunload\r\n , oldOnUnload = wnd.onunload;\r\n \r\n wnd.onbeforeunload = function(evt) {\r\n var ret, oldRet;\r\n try {\r\n ret = beforeunload();\r\n } finally {\r\n oldRet = oldOnBeforeUnload && oldOnBeforeUnload(evt);\r\n }\r\n // Avoid returning null as IE6 will coerce it into a string.\r\n // Ensure that "" gets returned properly.\r\n if (ret != null) {\r\n return ret;\r\n }\r\n if (oldRet != null) {\r\n return oldRet;\r\n }\r\n // returns undefined.\r\n };\r\n \r\n wnd.onunload = function(evt) {\r\n try {\r\n unload();\r\n } finally {\r\n oldOnUnload && oldOnUnload(evt);\r\n wnd.onresize = null;\r\n wnd.onscroll = null;\r\n wnd.onbeforeunload = null;\r\n wnd.onunload = null;\r\n }\r\n };\r\n \r\n // Remove the reference once we\'ve initialize the handler\r\n wnd.__gwt_initWindowCloseHandler = undefined;\r\n}\r\n',Jx='gwt-HTML',Mx='height and width must be at least 1',ty='initial capacity was negative or load factor was non-positive',xy='int',$w='keydown',_w='keypress',ax='keyup',Ex='left',bx='load',cx='losecapture',Rw='moduleStartup',dx='mousedown',ex='mousemove',fx='mouseout',gx='mouseover',hx='mouseup',kx='mousewheel',Lw='null',Sw='onModuleLoadStart',xx='onblur',ox='onclick',zx='oncontextmenu',yx='ondblclick',wx='onfocus',tx='onkeydown',ux='onkeypress',vx='onkeyup',px='onmousedown',rx='onmousemove',qx='onmouseup',sx='onmousewheel',nx='paste',Gx='position',ny='r_{i-1} was zero',hy='resultView',Mw='script',ix='scroll',oy='sigmaTilde(0) was zero',Qw='startup',Fx='top',Nx='topI + height and leftJ + width must be <= matrix dimension',Lx='topI and leftJ must be nonnegative';var _;_=lc.prototype={};_.eQ=pc;_.gC=qc;_.hC=rc;_.tM=Bv;_.tI=1;_=Ac.prototype=new lc;_.gC=Dc;_.tI=3;_=zc.prototype=new Ac;_.gC=Gc;_.tI=4;_=yc.prototype=new zc;_.gC=Ic;_.tI=5;_=xc.prototype=new yc;_.gC=Lc;_.tI=6;_.a=null;_=hd.prototype=new lc;_.gC=jd;_.tI=0;var md=0,nd=0;_=wd.prototype=new hd;_.gC=Fd;_.tI=0;_.c=false;_.f=false;var xd;_=Jd.prototype=new lc;_.g=Md;_.gC=Nd;_.tI=0;_.a=null;_=Od.prototype=new lc;_.g=Rd;_.gC=Sd;_.tI=0;_.a=null;_=_d.prototype=new lc;_.h=ee;_.gC=fe;_.tI=0;_=qe.prototype=new lc;_.gC=we;_.tI=0;_=ye.prototype=new qe;_.gC=Ge;_.tI=0;var ze=null;_=xe.prototype=new ye;_.gC=Je;_.tI=0;_=pf.prototype=new lc;_.gC=sf;_.tI=0;_.a=false;_.b=null;_=of.prototype=new pf;_.i=vf;_.j=xf;_.gC=yf;_.tI=0;var tf=null;_=Cf.prototype=new lc;_.gC=Ef;_.tI=0;_=Gf.prototype=new lc;_.gC=Kf;_.hC=Lf;_.tI=0;_.a=0;var Hf=0;_=Mf.prototype=new lc;_.gC=Vf;_.tI=0;_.a=null;_.b=0;_.c=false;_.d=null;_.e=null;_=Wf.prototype=new lc;_.gC=Zf;_.tI=7;_.a=null;_.b=null;_.c=null;_=_f.prototype=new lc;_.gC=hg;_.tI=0;_=lg.prototype=new lc;_.gC=ug;_.tI=0;_.aC=null;_.length=0;_.qI=0;var Ag,Bg;var Hg=[{},{},{1:1,16:1},{16:1,18:1},{16:1,18:1},{2:1,16:1,18:1},{2:1,16:1,18:1},{3:1},{5:1},{7:1},{5:1,6:1,7:1,8:1},{5:1,6:1,7:1,8:1},{5:1,6:1,7:1,8:1},{5:1,6:1,7:1,8:1},{2:1,16:1,18:1},{5:1,6:1,7:1,8:1},{5:1,6:1,7:1,8:1},{5:1,6:1,7:1,8:1,23:1},{21:1},{5:1,6:1,7:1,8:1,23:1},{9:1},{10:1},{10:1},{10:1},{10:1},{10:1},{10:1},{10:1},{10:1},{10:1},{11:1},{26:1},{12:1},{16:1,18:1},{16:1,18:1,25:1},{15:1},{13:1},{14:1},{2:1,16:1,18:1},{2:1,16:1,18:1},{16:1,18:1},{16:1,18:1},{2:1,16:1,18:1},{16:1},{2:1,16:1,18:1,24:1},{2:1,16:1,18:1},{2:1,16:1,18:1},{16:1,27:1},{2:1,16:1,18:1},{16:1,17:1},{2:1,16:1,18:1},{32:1},{32:1},{29:1},{29:1},{29:1},{30:1},{32:1},{4:1,16:1,30:1},{16:1,31:1},{16:1,32:1},{29:1},{2:1,16:1,18:1},{16:1,30:1},{19:1},{20:1},{22:1}];var Cj=null,Dj=null;var Lj=false,Mj=null;_=Vj.prototype=new pf;_.i=Zj;_.j=$j;_.gC=_j;_.tI=0;var Wj;_=ak.prototype=new Mf;_.gC=dk;_.tI=8;var fk=false;var nk=null,ok=null;var Ak=null;_=Dk.prototype=new lc;_.gC=Fk;_.tI=0;_=Kk.prototype=new lc;_.gC=Mk;_.tI=9;_.e=null;_=Jk.prototype=new Kk;_.l=Tk;_.m=Uk;_.gC=Vk;_.k=Wk;_.n=Xk;_.o=Yk;_.tI=10;_.b=false;_.c=0;_.d=null;_=Ik.prototype=new Jk;_.l=_k;_.m=al;_.gC=bl;_.n=cl;_.o=dl;_.tI=11;_=Hk.prototype=new Ik;_.gC=jl;_.p=kl;_.tI=12;_=Gk.prototype=new Hk;_.gC=pl;_.tI=13;_=ql.prototype=new yc;_.gC=vl;_.tI=14;var rl,sl;_=xl.prototype=new lc;_.q=zl;_.gC=Al;_.tI=0;_=Bl.prototype=new lc;_.q=Dl;_.gC=El;_.tI=0;_=Hl.prototype=new Jk;_.gC=Kl;_.tI=15;_=Gl.prototype=new Hl;_.gC=Nl;_.tI=16;_=Vl.prototype=new Gk;_.gC=dm;_.tI=17;var Wl,Xl,Yl;_=em.prototype=new lc;_.q=gm;_.gC=hm;_.tI=0;_=im.prototype=new lc;_.gC=km;_.tI=18;_=lm.prototype=new Vl;_.gC=om;_.tI=19;_=rm.prototype=new lc;_.gC=Am;_.p=Bm;_.tI=0;_.a=null;_.b=null;_.c=0;_=Cm.prototype=new lc;_.gC=Km;_.r=Lm;_.s=Mm;_.tI=0;_.a=-1;_.b=null;_=Nm.prototype=new lc;_.gC=Tm;_.tI=0;_.a=null;_.b=0;_=Um.prototype=new lc;_.gC=$m;_.tI=0;_.a=null;_.b=null;_.c=null;_=_m.prototype=new lc;_.gC=dn;_.tI=0;_.a=0;_.b=0;_.c=null;var hn=null;_=ln.prototype=new lc;_.gC=on;_.tI=20;_.a=null;_.b=0;_=qn.prototype=new lc;_.gC=un;_.tI=21;var rn;_=vn.prototype=new qn;_.gC=yn;_.t=zn;_.tI=22;_=An.prototype=new qn;_.gC=Dn;_.t=En;_.tI=23;_=Fn.prototype=new qn;_.gC=In;_.t=Jn;_.tI=24;_=Kn.prototype=new qn;_.gC=Nn;_.t=On;_.tI=25;_=Pn.prototype=new qn;_.gC=Sn;_.t=Tn;_.tI=26;_=Un.prototype=new qn;_.gC=Xn;_.t=Yn;_.tI=27;_=Zn.prototype=new qn;_.gC=ao;_.t=bo;_.tI=28;_=co.prototype=new qn;_.gC=go;_.t=ho;_.tI=29;var jo,ko=false;_=uo.prototype=new lc;_.gC=zo;_.tI=0;_.a=null;_=Ao.prototype=new lc;_.gC=Do;_.tI=0;_.a=null;_=Eo.prototype=new lc;_.gC=No;_.tI=30;_.a=0;var Fo,Go,Ho,Io,Jo;_=Oo.prototype=new lc;_.eQ=Vo;_.gC=Wo;_.hC=Xo;_.tI=31;_.a=0;_.b=null;var Po,Qo;_=Zo.prototype=new lc;_.gC=hp;_.tI=0;_.a=null;_.b=null;_.c=null;_.d=null;var $o,_o;_=ip.prototype=new lc;_.gC=rp;_.tI=32;_.a=null;_.b=null;_=sp.prototype=new lc;_.gC=Gp;_.tI=0;_.a=null;var tp,up,vp,wp,xp,yp,zp,Ap,Bp;_=Lp.prototype=new zc;_.gC=Pp;_.tI=33;var Mp;_=Qp.prototype=new lc;_.gC=Xp;_.tI=0;_.a=null;_=Yp.prototype=new zc;_.gC=_p;_.tI=34;_=aq.prototype=new lc;_.gC=hq;_.tI=35;_.a=null;_.b=null;_.c=0;_.d=0;var bq,cq;_=jq.prototype=new lc;_.gC=mq;_.tI=36;_.a=0;_.b=0;_=nq.prototype=new lc;_.gC=rq;_.tI=37;_.a=null;_.b=0;_=uq.prototype=new yc;_.gC=xq;_.tI=38;_=yq.prototype=new yc;_.gC=Cq;_.tI=39;_=Eq.prototype=new lc;_.gC=Jq;_.tI=0;_.a=null;_.b=0;_=Kq.prototype=new yc;_.gC=Nq;_.tI=42;_=Qq.prototype=new yc;_.gC=Uq;_.tI=44;_=Vq.prototype=new yc;_.gC=Zq;_.tI=45;_=$q.prototype=new yc;_.gC=cr;_.tI=46;_=er.prototype=new lc;_.gC=gr;_.tI=43;_=dr.prototype=new er;_.eQ=jr;_.gC=kr;_.hC=lr;_.tI=47;_.a=0;_=nr.prototype=new yc;_.gC=qr;_.tI=48;_=rr.prototype=new lc;_.gC=ur;_.tI=49;_=String.prototype;_.eQ=Er;_.gC=Fr;_.hC=Gr;_.tI=2;var Jr,Kr=0,Lr;_=Qr.prototype=new lc;_.gC=Wr;_.tI=0;_=as.prototype=new yc;_.gC=ds;_.tI=50;_=es.prototype=new lc;_.u=hs;_.v=is;_.gC=js;_.x=ks;_.tI=0;_=ms.prototype=new lc;_.eQ=ps;_.gC=qs;_.hC=rs;_.tI=0;_=ls.prototype=new ms;_.y=Ks;_.gC=Ls;_.tI=0;_.a=null;_.b=null;_.c=false;_.d=0;_.e=null;_=Ns.prototype=new es;_.eQ=Ps;_.gC=Qs;_.hC=Rs;_.tI=51;_=Ms.prototype=new Ns;_.v=Xs;_.gC=Ys;_.p=Zs;_.w=$s;_.tI=52;_.a=null;_=_s.prototype=new lc;_.gC=et;_.r=ft;_.s=gt;_.tI=0;_.a=null;_.b=null;_=it.prototype=new lc;_.eQ=kt;_.gC=lt;_.hC=mt;_.tI=53;_=ht.prototype=new it;_.gC=pt;_.z=qt;_.A=rt;_.B=st;_.tI=54;_.a=null;_=tt.prototype=new it;_.gC=wt;_.z=xt;_.A=yt;_.B=At;_.tI=55;_.a=null;_.b=null;_=Bt.prototype=new es;_.u=Et;_.C=Ft;_.eQ=Ht;_.gC=It;_.hC=Jt;_.p=Lt;_.tI=56;_=Mt.prototype=new lc;_.gC=St;_.r=Tt;_.s=Ut;_.tI=0;_.a=0;_.b=null;_=Vt.prototype=new Ns;_.v=Zt;_.gC=$t;_.p=_t;_.w=au;_.tI=57;_.a=null;_.b=null;_=bu.prototype=new lc;_.gC=eu;_.r=fu;_.s=gu;_.tI=0;_.a=null;_=hu.prototype=new Bt;_.u=tu;_.C=uu;_.v=vu;_.D=wu;_.gC=xu;_.w=zu;_.x=Bu;_.tI=58;_.b=0;_=Du.prototype=new ls;_.gC=Iu;_.tI=59;_=Ju.prototype=new Ns;_.u=Qu;_.v=Ru;_.gC=Su;_.p=Tu;_.w=Uu;_.tI=60;_.a=null;_=Zu.prototype=new it;_.gC=bv;_.z=cv;_.A=dv;_.B=fv;_.tI=61;_.a=null;_.b=null;_=gv.prototype=new yc;_.gC=jv;_.tI=62;_=pv.prototype=new Bt;_.u=tv;_.C=uv;_.v=vv;_.D=wv;_.gC=xv;_.p=yv;_.w=zv;_.x=Av;_.tI=63;_.a=null;var $entry=qd;var wi=new Eq,ch=Iq(Ew,xy),Yi=Gq(Ew,yy,ch),Bi=new Eq,pi=new Eq,xi=new Eq,fh=new Eq,ih=new Eq,gh=new Eq,hh=new Eq,jh=new Eq,yi=new Eq,gj=Gq(zy,Ay,yi),dh=new Eq,eh=new Eq,mh=new Eq,lh=new Eq,kh=new Eq,Ai=new Eq,qh=new Eq,ph=new Eq,nh=new Eq,oh=new Eq,th=new Eq,sh=new Eq,rh=new Eq,wh=new Eq,Jh=new Eq,Mh=new Eq,Eh=new Eq,Bh=new Eq,xh=new Eq,hj=Gq(zy,By,Bi),Ah=new Eq,yh=new Eq,zh=new Eq,Zi=Gq(Cy,Dy,Mh),Dh=new Eq,Ch=new Eq,Di=new Eq,Ki=new Eq,Qi=new Eq,bh=Iq(Ew,Ey),Xi=Gq(Ew,Fy,bh),Ih=new Eq,Hh=new Eq,Fh=new Eq,Gh=new Eq,Lh=new Eq,Kh=new Eq,uh=new Eq,vh=new Eq,Oh=new Eq,ah=Iq(Ew,Gy),Wi=Gq(Ew,Hy,ah),Nh=new Eq,Ph=new Eq,Qh=new Eq,$i=Gq(Iy,Jy,Qh),Zh=new Eq,_i=Gq(Iy,Ky,Zh),Rh=new Eq,Sh=new Eq,Th=new Eq,Uh=new Eq,Vh=new Eq,Wh=new Eq,Xh=new Eq,Yh=new Eq,_h=new Eq,$h=new Eq,ai=new Eq,aj=Gq(Iy,Ly,ai),ij=Gq(Ew,My,Yi),bi=new Eq,di=new Eq,ci=new Eq,bj=Gq(Iy,Ny,ci),ei=new Eq,fi=new Eq,gi=new Eq,hi=new Eq,ji=new Eq,dj=Gq(Iy,Oy,ji),ki=new Eq,ej=Gq(Iy,Py,ki),ii=new Eq,cj=Gq(Iy,Qy,ii),li=new Eq,si=new Eq,mi=new Eq,vi=new Eq,oi=new Eq,ni=new Eq,qi=new Eq,ri=new Eq,ti=new Eq,ui=new Eq,zi=new Eq,Ci=new Eq,fj=Gq(zy,Ry,wi),Oi=new Eq,Ii=new Eq,Pi=new Eq,Fi=new Eq,Ei=new Eq,Ni=new Eq,Gi=new Eq,Hi=new Eq,Ji=new Eq,Mi=new Eq,Li=new Eq,Ri=new Eq,Si=new Eq,Ti=new Eq,Ui=new Eq,Vi=new Eq;$stats && $stats({moduleName:'qrdec',sessionId:$sessionId,subSystem:'startup',evtGroup:'moduleStartup',millis:(new Date()).getTime(),type:'moduleEvalEnd'});if ($wnd.qrdec) $wnd.qrdec.onScriptLoad(); --></script></body></html>
123912029-ssiagu
qrdec/war/qrdec/ACFF925026BF3E1E0F2A3D76A5625A73.cache.html
HTML
gpl2
59,914
<html> <head><script> var $wnd = parent; var $doc = $wnd.document; var $moduleName, $moduleBase, $entry ,$stats = $wnd.__gwtStatsEvent ? function(a) {return $wnd.__gwtStatsEvent(a);} : null ,$sessionId = $wnd.__gwtStatsSessionId ? $wnd.__gwtStatsSessionId : null; // Lightweight metrics if ($stats) { var moduleFuncName = location.search.substr(1); var moduleFunc = $wnd[moduleFuncName]; var moduleName = moduleFunc ? moduleFunc.moduleName : "unknown"; $stats({moduleName:moduleName,sessionId:$sessionId,subSystem:'startup',evtGroup:'moduleStartup',millis:(new Date()).getTime(),type:'moduleEvalStart'}); } var $hostedHtmlVersion="2.0"; var gwtOnLoad; var $hosted = "localhost:9997"; function loadIframe(url) { var topDoc = window.top.document; // create an iframe var iframeDiv = topDoc.createElement("div"); iframeDiv.innerHTML = "<iframe scrolling=no frameborder=0 src='" + url + "'>"; var iframe = iframeDiv.firstChild; // mess with the iframe style a little var iframeStyle = iframe.style; iframeStyle.position = "absolute"; iframeStyle.borderWidth = "0"; iframeStyle.left = "0"; iframeStyle.top = "0"; iframeStyle.width = "100%"; iframeStyle.backgroundColor = "#ffffff"; iframeStyle.zIndex = "1"; iframeStyle.height = "100%"; // update the top window's document's body's style var hostBodyStyle = window.top.document.body.style; hostBodyStyle.margin = "0"; hostBodyStyle.height = iframeStyle.height; hostBodyStyle.overflow = "hidden"; // insert the iframe topDoc.body.insertBefore(iframe, topDoc.body.firstChild); } var ua = navigator.userAgent.toLowerCase(); if (ua.indexOf("gecko") != -1) { // install eval wrapper on FF to avoid EvalError problem var __eval = window.eval; window.eval = function(s) { return __eval(s); } } if (ua.indexOf("chrome") != -1) { // work around __gwt_ObjectId appearing in JS objects var hop = Object.prototype.hasOwnProperty; Object.prototype.hasOwnProperty = function(prop) { return prop != "__gwt_ObjectId" && hop.call(this, prop); }; } // wrapper to call JS methods, which we need both to be able to supply a // different this for method lookup and to get the exception back function __gwt_jsInvoke(thisObj, methodName) { try { var args = Array.prototype.slice.call(arguments, 2); return [0, window[methodName].apply(thisObj, args)]; } catch (e) { return [1, e]; } } var __gwt_javaInvokes = []; function __gwt_makeJavaInvoke(argCount) { return __gwt_javaInvokes[argCount] || __gwt_doMakeJavaInvoke(argCount); } function __gwt_doMakeJavaInvoke(argCount) { // IE6 won't eval() anonymous functions except as r-values var argList = ""; for (var i = 0; i < argCount; i++) { argList += ",p" + i; } var argListNoComma = argList.substring(1); return eval( "__gwt_javaInvokes[" + argCount + "] =\n" + " function(thisObj, dispId" + argList + ") {\n" + " var result = __static(dispId, thisObj" + argList + ");\n" + " if (result[0]) {\n" + " throw result[1];\n" + " } else {\n" + " return result[1];\n" + " }\n" + " }\n" ); } /* * This is used to create tear-offs of Java methods. Each function corresponds * to exactly one dispId, and also embeds the argument count. We get the "this" * value from the context in which the function is being executed. * Function-object identity is preserved by caching in a sparse array. */ var __gwt_tearOffs = []; var __gwt_tearOffGenerators = []; function __gwt_makeTearOff(proxy, dispId, argCount) { return __gwt_tearOffs[dispId] || __gwt_doMakeTearOff(dispId, argCount); } function __gwt_doMakeTearOff(dispId, argCount) { return __gwt_tearOffs[dispId] = (__gwt_tearOffGenerators[argCount] || __gwt_doMakeTearOffGenerator(argCount))(dispId); } function __gwt_doMakeTearOffGenerator(argCount) { // IE6 won't eval() anonymous functions except as r-values var argList = ""; for (var i = 0; i < argCount; i++) { argList += ",p" + i; } var argListNoComma = argList.substring(1); return eval( "__gwt_tearOffGenerators[" + argCount + "] =\n" + " function(dispId) {\n" + " return function(" + argListNoComma + ") {\n" + " var result = __static(dispId, this" + argList + ");\n" + " if (result[0]) {\n" + " throw result[1];\n" + " } else {\n" + " return result[1];\n" + " }\n" + " }\n" + " }\n" ); } function __gwt_makeResult(isException, result) { return [isException, result]; } function __gwt_disconnected() { // Prevent double-invocation. window.__gwt_disconnected = new Function(); // Do it in a timeout so we can be sure we have a clean stack. window.setTimeout(__gwt_disconnected_impl, 1); } function __gwt_disconnected_impl() { var topWin = window.top; var topDoc = topWin.document; var outer = topDoc.createElement("div"); // Do not insert whitespace or outer.firstChild will get a text node. outer.innerHTML = '<div style="position:absolute;z-index:2147483646;left:0px;top:0px;right:0px;bottom:0px;filter:alpha(opacity=75);opacity:0.75;background-color:#000000;"></div>' + '<div style="position:absolute;z-index:2147483647;left:50px;top:50px;width:600px;color:#FFFFFF;font-family:verdana;">' + '<div style="font-size:30px;font-weight:bold;">GWT Code Server Disconnected</div>' + '<p style="font-size:15px;"> Most likely, you closed GWT development mode. Or you might have lost network connectivity. To fix this, try restarting GWT Development Mode and <a style="color: #FFFFFF; font-weight: bold;" href="javascript:location.reload()">REFRESH</a> this page.</p>' + '</div>' ; topDoc.body.appendChild(outer); var glass = outer.firstChild; var glassStyle = glass.style; // Scroll to the top and remove scrollbars. topWin.scrollTo(0, 0); if (topDoc.compatMode == "BackCompat") { topDoc.body.style["overflow"] = "hidden"; } else { topDoc.documentElement.style["overflow"] = "hidden"; } // Steal focus. glass.focus(); if ((navigator.userAgent.indexOf("MSIE") >= 0) && (topDoc.compatMode == "BackCompat")) { // IE quirks mode doesn't support right/bottom, but does support this. glassStyle.width = "125%"; glassStyle.height = "100%"; } else if (navigator.userAgent.indexOf("MSIE 6") >= 0) { // IE6 doesn't have a real standards mode, so we have to use hacks. glassStyle.width = "125%"; // Get past scroll bar area. // Nasty CSS; onresize would be better but the outer window won't let us add a listener IE. glassStyle.setExpression("height", "document.documentElement.clientHeight"); } } function findPluginObject() { try { return document.getElementById('pluginObject'); } catch (e) { return null; } } function findPluginEmbed() { try { return document.getElementById('pluginEmbed') } catch (e) { return null; } } function findPluginXPCOM() { try { return __gwt_HostedModePlugin; } catch (e) { return null; } } gwtOnLoad = function(errFn, modName, modBase){ $moduleName = modName; $moduleBase = modBase; // Note that the order is important var pluginFinders = [ findPluginXPCOM, findPluginObject, findPluginEmbed, ]; var topWin = window.top; var url = topWin.location.href; if (!topWin.__gwt_SessionID) { var ASCII_EXCLAMATION = 33; var ASCII_TILDE = 126; var chars = []; for (var i = 0; i < 16; ++i) { chars.push(Math.floor(ASCII_EXCLAMATION + Math.random() * (ASCII_TILDE - ASCII_EXCLAMATION + 1))); } topWin.__gwt_SessionID = String.fromCharCode.apply(null, chars); } var plugin = null; for (var i = 0; i < pluginFinders.length; ++i) { try { var maybePlugin = pluginFinders[i](); if (maybePlugin != null && maybePlugin.init(window)) { plugin = maybePlugin; break; } } catch (e) { } } if (!plugin) { // try searching for a v1 plugin for backwards compatibility var found = false; for (var i = 0; i < pluginFinders.length; ++i) { try { plugin = pluginFinders[i](); if (plugin != null && plugin.connect($hosted, $moduleName, window)) { return; } } catch (e) { } } loadIframe("http://gwt.google.com/missing-plugin"); } else { if (plugin.connect(url, topWin.__gwt_SessionID, $hosted, $moduleName, $hostedHtmlVersion)) { window.onUnload = function() { try { // wrap in try/catch since plugins are not required to supply this plugin.disconnect(); } catch (e) { } }; } else { if (errFn) { errFn(modName); } else { alert("Plugin failed to connect to hosted mode server at " + $hosted); loadIframe("http://code.google.com/p/google-web-toolkit/wiki/TroubleshootingOOPHM"); } } } } window.onunload = function() { }; // Lightweight metrics window.fireOnModuleLoadStart = function(className) { $stats && $stats({moduleName:$moduleName, sessionId:$sessionId, subSystem:'startup', evtGroup:'moduleStartup', millis:(new Date()).getTime(), type:'onModuleLoadStart', className:className}); }; window.__gwt_module_id = 0; </script></head> <body> <font face='arial' size='-1'>This html file is for hosted mode support.</font> <script><!-- // Lightweight metrics $stats && $stats({moduleName:$moduleName, sessionId:$sessionId, subSystem:'startup', evtGroup:'moduleStartup', millis:(new Date()).getTime(), type:'moduleEvalEnd'}); // OOPHM currently only supports IFrameLinker var query = parent.location.search; if (!findPluginXPCOM()) { document.write('<embed id="pluginEmbed" type="application/x-gwt-hosted-mode" width="10" height="10">'); document.write('</embed>'); document.write('<object id="pluginObject" CLASSID="CLSID:1D6156B6-002B-49E7-B5CA-C138FB843B4E">'); document.write('</object>'); } // look for the old query parameter if we don't find the new one var idx = query.indexOf("gwt.codesvr="); if (idx >= 0) { idx += 12; // "gwt.codesvr=".length() == 12 } else { idx = query.indexOf("gwt.hosted="); if (idx >= 0) { idx += 11; // "gwt.hosted=".length() == 11 } } if (idx >= 0) { var amp = query.indexOf("&", idx); if (amp >= 0) { $hosted = query.substring(idx, amp); } else { $hosted = query.substring(idx); } // According to RFC 3986, some of this component's characters (e.g., ':') // are reserved and *may* be escaped. $hosted = decodeURIComponent($hosted); } query = window.location.search.substring(1); if (query && $wnd[query]) setTimeout($wnd[query].onScriptLoad, 1); --></script></body></html>
123912029-ssiagu
qrdec/war/qrdec/hosted.html
HTML
gpl2
10,702
/*! SWFObject v2.1 <http://code.google.com/p/swfobject/> Copyright (c) 2007-2008 Geoff Stearns, Michael Williams, and Bobby van der Sluis This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> */ var swfobject = function() { var UNDEF = "undefined", OBJECT = "object", SHOCKWAVE_FLASH = "Shockwave Flash", SHOCKWAVE_FLASH_AX = "ShockwaveFlash.ShockwaveFlash", FLASH_MIME_TYPE = "application/x-shockwave-flash", EXPRESS_INSTALL_ID = "SWFObjectExprInst", win = window, doc = document, nav = navigator, domLoadFnArr = [], regObjArr = [], objIdArr = [], listenersArr = [], script, timer = null, storedAltContent = null, storedAltContentId = null, isDomLoaded = false, isExpressInstallActive = false; /* Centralized function for browser feature detection - Proprietary feature detection (conditional compiling) is used to detect Internet Explorer's features - User agent string detection is only used when no alternative is possible - Is executed directly for optimal performance */ var ua = function() { var w3cdom = typeof doc.getElementById != UNDEF && typeof doc.getElementsByTagName != UNDEF && typeof doc.createElement != UNDEF, playerVersion = [0,0,0], d = null; if (typeof nav.plugins != UNDEF && typeof nav.plugins[SHOCKWAVE_FLASH] == OBJECT) { d = nav.plugins[SHOCKWAVE_FLASH].description; if (d && !(typeof nav.mimeTypes != UNDEF && nav.mimeTypes[FLASH_MIME_TYPE] && !nav.mimeTypes[FLASH_MIME_TYPE].enabledPlugin)) { // navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin indicates whether plug-ins are enabled or disabled in Safari 3+ d = d.replace(/^.*\s+(\S+\s+\S+$)/, "$1"); playerVersion[0] = parseInt(d.replace(/^(.*)\..*$/, "$1"), 10); playerVersion[1] = parseInt(d.replace(/^.*\.(.*)\s.*$/, "$1"), 10); playerVersion[2] = /r/.test(d) ? parseInt(d.replace(/^.*r(.*)$/, "$1"), 10) : 0; } } else if (typeof win.ActiveXObject != UNDEF) { var a = null, fp6Crash = false; try { a = new ActiveXObject(SHOCKWAVE_FLASH_AX + ".7"); } catch(e) { try { a = new ActiveXObject(SHOCKWAVE_FLASH_AX + ".6"); playerVersion = [6,0,21]; a.AllowScriptAccess = "always"; // Introduced in fp6.0.47 } catch(e) { if (playerVersion[0] == 6) { fp6Crash = true; } } if (!fp6Crash) { try { a = new ActiveXObject(SHOCKWAVE_FLASH_AX); } catch(e) {} } } if (!fp6Crash && a) { // a will return null when ActiveX is disabled try { d = a.GetVariable("$version"); // Will crash fp6.0.21/23/29 if (d) { d = d.split(" ")[1].split(","); playerVersion = [parseInt(d[0], 10), parseInt(d[1], 10), parseInt(d[2], 10)]; } } catch(e) {} } } var u = nav.userAgent.toLowerCase(), p = nav.platform.toLowerCase(), webkit = /webkit/.test(u) ? parseFloat(u.replace(/^.*webkit\/(\d+(\.\d+)?).*$/, "$1")) : false, // returns either the webkit version or false if not webkit ie = false, windows = p ? /win/.test(p) : /win/.test(u), mac = p ? /mac/.test(p) : /mac/.test(u); /*@cc_on ie = true; @if (@_win32) windows = true; @elif (@_mac) mac = true; @end @*/ return { w3cdom:w3cdom, pv:playerVersion, webkit:webkit, ie:ie, win:windows, mac:mac }; }(); /* Cross-browser onDomLoad - Based on Dean Edwards' solution: http://dean.edwards.name/weblog/2006/06/again/ - Will fire an event as soon as the DOM of a page is loaded (supported by Gecko based browsers - like Firefox -, IE, Opera9+, Safari) */ var onDomLoad = function() { if (!ua.w3cdom) { return; } addDomLoadEvent(main); if (ua.ie && ua.win) { try { // Avoid a possible Operation Aborted error doc.write("<scr" + "ipt id=__ie_ondomload defer=true src=//:></scr" + "ipt>"); // String is split into pieces to avoid Norton AV to add code that can cause errors script = getElementById("__ie_ondomload"); if (script) { addListener(script, "onreadystatechange", checkReadyState); } } catch(e) {} } if (ua.webkit && typeof doc.readyState != UNDEF) { timer = setInterval(function() { if (/loaded|complete/.test(doc.readyState)) { callDomLoadFunctions(); }}, 10); } if (typeof doc.addEventListener != UNDEF) { doc.addEventListener("DOMContentLoaded", callDomLoadFunctions, null); } addLoadEvent(callDomLoadFunctions); }(); function checkReadyState() { if (script.readyState == "complete") { script.parentNode.removeChild(script); callDomLoadFunctions(); } } function callDomLoadFunctions() { if (isDomLoaded) { return; } if (ua.ie && ua.win) { // Test if we can really add elements to the DOM; we don't want to fire it too early var s = createElement("span"); try { // Avoid a possible Operation Aborted error var t = doc.getElementsByTagName("body")[0].appendChild(s); t.parentNode.removeChild(t); } catch (e) { return; } } isDomLoaded = true; if (timer) { clearInterval(timer); timer = null; } var dl = domLoadFnArr.length; for (var i = 0; i < dl; i++) { domLoadFnArr[i](); } } function addDomLoadEvent(fn) { if (isDomLoaded) { fn(); } else { domLoadFnArr[domLoadFnArr.length] = fn; // Array.push() is only available in IE5.5+ } } /* Cross-browser onload - Based on James Edwards' solution: http://brothercake.com/site/resources/scripts/onload/ - Will fire an event as soon as a web page including all of its assets are loaded */ function addLoadEvent(fn) { if (typeof win.addEventListener != UNDEF) { win.addEventListener("load", fn, false); } else if (typeof doc.addEventListener != UNDEF) { doc.addEventListener("load", fn, false); } else if (typeof win.attachEvent != UNDEF) { addListener(win, "onload", fn); } else if (typeof win.onload == "function") { var fnOld = win.onload; win.onload = function() { fnOld(); fn(); }; } else { win.onload = fn; } } /* Main function - Will preferably execute onDomLoad, otherwise onload (as a fallback) */ function main() { // Static publishing only var rl = regObjArr.length; for (var i = 0; i < rl; i++) { // For each registered object element var id = regObjArr[i].id; if (ua.pv[0] > 0) { var obj = getElementById(id); if (obj) { regObjArr[i].width = obj.getAttribute("width") ? obj.getAttribute("width") : "0"; regObjArr[i].height = obj.getAttribute("height") ? obj.getAttribute("height") : "0"; if (hasPlayerVersion(regObjArr[i].swfVersion)) { // Flash plug-in version >= Flash content version: Houston, we have a match! if (ua.webkit && ua.webkit < 312) { // Older webkit engines ignore the object element's nested param elements fixParams(obj); } setVisibility(id, true); } else if (regObjArr[i].expressInstall && !isExpressInstallActive && hasPlayerVersion("6.0.65") && (ua.win || ua.mac)) { // Show the Adobe Express Install dialog if set by the web page author and if supported (fp6.0.65+ on Win/Mac OS only) showExpressInstall(regObjArr[i]); } else { // Flash plug-in and Flash content version mismatch: display alternative content instead of Flash content displayAltContent(obj); } } } else { // If no fp is installed, we let the object element do its job (show alternative content) setVisibility(id, true); } } } /* Fix nested param elements, which are ignored by older webkit engines - This includes Safari up to and including version 1.2.2 on Mac OS 10.3 - Fall back to the proprietary embed element */ function fixParams(obj) { var nestedObj = obj.getElementsByTagName(OBJECT)[0]; if (nestedObj) { var e = createElement("embed"), a = nestedObj.attributes; if (a) { var al = a.length; for (var i = 0; i < al; i++) { if (a[i].nodeName == "DATA") { e.setAttribute("src", a[i].nodeValue); } else { e.setAttribute(a[i].nodeName, a[i].nodeValue); } } } var c = nestedObj.childNodes; if (c) { var cl = c.length; for (var j = 0; j < cl; j++) { if (c[j].nodeType == 1 && c[j].nodeName == "PARAM") { e.setAttribute(c[j].getAttribute("name"), c[j].getAttribute("value")); } } } obj.parentNode.replaceChild(e, obj); } } /* Show the Adobe Express Install dialog - Reference: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=6a253b75 */ function showExpressInstall(regObj) { isExpressInstallActive = true; var obj = getElementById(regObj.id); if (obj) { if (regObj.altContentId) { var ac = getElementById(regObj.altContentId); if (ac) { storedAltContent = ac; storedAltContentId = regObj.altContentId; } } else { storedAltContent = abstractAltContent(obj); } if (!(/%$/.test(regObj.width)) && parseInt(regObj.width, 10) < 310) { regObj.width = "310"; } if (!(/%$/.test(regObj.height)) && parseInt(regObj.height, 10) < 137) { regObj.height = "137"; } doc.title = doc.title.slice(0, 47) + " - Flash Player Installation"; var pt = ua.ie && ua.win ? "ActiveX" : "PlugIn", dt = doc.title, fv = "MMredirectURL=" + win.location + "&MMplayerType=" + pt + "&MMdoctitle=" + dt, replaceId = regObj.id; // For IE when a SWF is loading (AND: not available in cache) wait for the onload event to fire to remove the original object element // In IE you cannot properly cancel a loading SWF file without breaking browser load references, also obj.onreadystatechange doesn't work if (ua.ie && ua.win && obj.readyState != 4) { var newObj = createElement("div"); replaceId += "SWFObjectNew"; newObj.setAttribute("id", replaceId); obj.parentNode.insertBefore(newObj, obj); // Insert placeholder div that will be replaced by the object element that loads expressinstall.swf obj.style.display = "none"; var fn = function() { obj.parentNode.removeChild(obj); }; addListener(win, "onload", fn); } createSWF({ data:regObj.expressInstall, id:EXPRESS_INSTALL_ID, width:regObj.width, height:regObj.height }, { flashvars:fv }, replaceId); } } /* Functions to abstract and display alternative content */ function displayAltContent(obj) { if (ua.ie && ua.win && obj.readyState != 4) { // For IE when a SWF is loading (AND: not available in cache) wait for the onload event to fire to remove the original object element // In IE you cannot properly cancel a loading SWF file without breaking browser load references, also obj.onreadystatechange doesn't work var el = createElement("div"); obj.parentNode.insertBefore(el, obj); // Insert placeholder div that will be replaced by the alternative content el.parentNode.replaceChild(abstractAltContent(obj), el); obj.style.display = "none"; var fn = function() { obj.parentNode.removeChild(obj); }; addListener(win, "onload", fn); } else { obj.parentNode.replaceChild(abstractAltContent(obj), obj); } } function abstractAltContent(obj) { var ac = createElement("div"); if (ua.win && ua.ie) { ac.innerHTML = obj.innerHTML; } else { var nestedObj = obj.getElementsByTagName(OBJECT)[0]; if (nestedObj) { var c = nestedObj.childNodes; if (c) { var cl = c.length; for (var i = 0; i < cl; i++) { if (!(c[i].nodeType == 1 && c[i].nodeName == "PARAM") && !(c[i].nodeType == 8)) { ac.appendChild(c[i].cloneNode(true)); } } } } } return ac; } /* Cross-browser dynamic SWF creation */ function createSWF(attObj, parObj, id) { var r, el = getElementById(id); if (el) { if (typeof attObj.id == UNDEF) { // if no 'id' is defined for the object element, it will inherit the 'id' from the alternative content attObj.id = id; } if (ua.ie && ua.win) { // IE, the object element and W3C DOM methods do not combine: fall back to outerHTML var att = ""; for (var i in attObj) { if (attObj[i] != Object.prototype[i]) { // Filter out prototype additions from other potential libraries, like Object.prototype.toJSONString = function() {} if (i.toLowerCase() == "data") { parObj.movie = attObj[i]; } else if (i.toLowerCase() == "styleclass") { // 'class' is an ECMA4 reserved keyword att += ' class="' + attObj[i] + '"'; } else if (i.toLowerCase() != "classid") { att += ' ' + i + '="' + attObj[i] + '"'; } } } var par = ""; for (var j in parObj) { if (parObj[j] != Object.prototype[j]) { // Filter out prototype additions from other potential libraries par += '<param name="' + j + '" value="' + parObj[j] + '" />'; } } el.outerHTML = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"' + att + '>' + par + '</object>'; objIdArr[objIdArr.length] = attObj.id; // Stored to fix object 'leaks' on unload (dynamic publishing only) r = getElementById(attObj.id); } else if (ua.webkit && ua.webkit < 312) { // Older webkit engines ignore the object element's nested param elements: fall back to the proprietary embed element var e = createElement("embed"); e.setAttribute("type", FLASH_MIME_TYPE); for (var k in attObj) { if (attObj[k] != Object.prototype[k]) { // Filter out prototype additions from other potential libraries if (k.toLowerCase() == "data") { e.setAttribute("src", attObj[k]); } else if (k.toLowerCase() == "styleclass") { // 'class' is an ECMA4 reserved keyword e.setAttribute("class", attObj[k]); } else if (k.toLowerCase() != "classid") { // Filter out IE specific attribute e.setAttribute(k, attObj[k]); } } } for (var l in parObj) { if (parObj[l] != Object.prototype[l]) { // Filter out prototype additions from other potential libraries if (l.toLowerCase() != "movie") { // Filter out IE specific param element e.setAttribute(l, parObj[l]); } } } el.parentNode.replaceChild(e, el); r = e; } else { // Well-behaving browsers var o = createElement(OBJECT); o.setAttribute("type", FLASH_MIME_TYPE); for (var m in attObj) { if (attObj[m] != Object.prototype[m]) { // Filter out prototype additions from other potential libraries if (m.toLowerCase() == "styleclass") { // 'class' is an ECMA4 reserved keyword o.setAttribute("class", attObj[m]); } else if (m.toLowerCase() != "classid") { // Filter out IE specific attribute o.setAttribute(m, attObj[m]); } } } for (var n in parObj) { if (parObj[n] != Object.prototype[n] && n.toLowerCase() != "movie") { // Filter out prototype additions from other potential libraries and IE specific param element createObjParam(o, n, parObj[n]); } } el.parentNode.replaceChild(o, el); r = o; } } return r; } function createObjParam(el, pName, pValue) { var p = createElement("param"); p.setAttribute("name", pName); p.setAttribute("value", pValue); el.appendChild(p); } /* Cross-browser SWF removal - Especially needed to safely and completely remove a SWF in Internet Explorer */ function removeSWF(id) { var obj = getElementById(id); if (obj && (obj.nodeName == "OBJECT" || obj.nodeName == "EMBED")) { if (ua.ie && ua.win) { if (obj.readyState == 4) { removeObjectInIE(id); } else { win.attachEvent("onload", function() { removeObjectInIE(id); }); } } else { obj.parentNode.removeChild(obj); } } } function removeObjectInIE(id) { var obj = getElementById(id); if (obj) { for (var i in obj) { if (typeof obj[i] == "function") { obj[i] = null; } } obj.parentNode.removeChild(obj); } } /* Functions to optimize JavaScript compression */ function getElementById(id) { var el = null; try { el = doc.getElementById(id); } catch (e) {} return el; } function createElement(el) { return doc.createElement(el); } /* Updated attachEvent function for Internet Explorer - Stores attachEvent information in an Array, so on unload the detachEvent functions can be called to avoid memory leaks */ function addListener(target, eventType, fn) { target.attachEvent(eventType, fn); listenersArr[listenersArr.length] = [target, eventType, fn]; } /* Flash Player and SWF content version matching */ function hasPlayerVersion(rv) { var pv = ua.pv, v = rv.split("."); v[0] = parseInt(v[0], 10); v[1] = parseInt(v[1], 10) || 0; // supports short notation, e.g. "9" instead of "9.0.0" v[2] = parseInt(v[2], 10) || 0; return (pv[0] > v[0] || (pv[0] == v[0] && pv[1] > v[1]) || (pv[0] == v[0] && pv[1] == v[1] && pv[2] >= v[2])) ? true : false; } /* Cross-browser dynamic CSS creation - Based on Bobby van der Sluis' solution: http://www.bobbyvandersluis.com/articles/dynamicCSS.php */ function createCSS(sel, decl) { if (ua.ie && ua.mac) { return; } var h = doc.getElementsByTagName("head")[0], s = createElement("style"); s.setAttribute("type", "text/css"); s.setAttribute("media", "screen"); if (!(ua.ie && ua.win) && typeof doc.createTextNode != UNDEF) { s.appendChild(doc.createTextNode(sel + " {" + decl + "}")); } h.appendChild(s); if (ua.ie && ua.win && typeof doc.styleSheets != UNDEF && doc.styleSheets.length > 0) { var ls = doc.styleSheets[doc.styleSheets.length - 1]; if (typeof ls.addRule == OBJECT) { ls.addRule(sel, decl); } } } function setVisibility(id, isVisible) { var v = isVisible ? "visible" : "hidden"; if (isDomLoaded && getElementById(id)) { getElementById(id).style.visibility = v; } else { createCSS("#" + id, "visibility:" + v); } } /* Filter to avoid XSS attacks */ function urlEncodeIfNecessary(s) { var regex = /[\\\"<>\.;]/; var hasBadChars = regex.exec(s) != null; return hasBadChars ? encodeURIComponent(s) : s; } /* Release memory to avoid memory leaks caused by closures, fix hanging audio/video threads and force open sockets/NetConnections to disconnect (Internet Explorer only) */ var cleanup = function() { if (ua.ie && ua.win) { window.attachEvent("onunload", function() { // remove listeners to avoid memory leaks var ll = listenersArr.length; for (var i = 0; i < ll; i++) { listenersArr[i][0].detachEvent(listenersArr[i][1], listenersArr[i][2]); } // cleanup dynamically embedded objects to fix audio/video threads and force open sockets and NetConnections to disconnect var il = objIdArr.length; for (var j = 0; j < il; j++) { removeSWF(objIdArr[j]); } // cleanup library's main closures to avoid memory leaks for (var k in ua) { ua[k] = null; } ua = null; for (var l in swfobject) { swfobject[l] = null; } swfobject = null; }); } }(); return { /* Public API - Reference: http://code.google.com/p/swfobject/wiki/SWFObject_2_0_documentation */ registerObject: function(objectIdStr, swfVersionStr, xiSwfUrlStr) { if (!ua.w3cdom || !objectIdStr || !swfVersionStr) { return; } var regObj = {}; regObj.id = objectIdStr; regObj.swfVersion = swfVersionStr; regObj.expressInstall = xiSwfUrlStr ? xiSwfUrlStr : false; regObjArr[regObjArr.length] = regObj; setVisibility(objectIdStr, false); }, getObjectById: function(objectIdStr) { var r = null; if (ua.w3cdom) { var o = getElementById(objectIdStr); if (o) { var n = o.getElementsByTagName(OBJECT)[0]; if (!n || (n && typeof o.SetVariable != UNDEF)) { r = o; } else if (typeof n.SetVariable != UNDEF) { r = n; } } } return r; }, embedSWF: function(swfUrlStr, replaceElemIdStr, widthStr, heightStr, swfVersionStr, xiSwfUrlStr, flashvarsObj, parObj, attObj) { if (!ua.w3cdom || !swfUrlStr || !replaceElemIdStr || !widthStr || !heightStr || !swfVersionStr) { return; } widthStr += ""; // Auto-convert to string heightStr += ""; if (hasPlayerVersion(swfVersionStr)) { setVisibility(replaceElemIdStr, false); var att = {}; if (attObj && typeof attObj === OBJECT) { for (var i in attObj) { if (attObj[i] != Object.prototype[i]) { // Filter out prototype additions from other potential libraries att[i] = attObj[i]; } } } att.data = swfUrlStr; att.width = widthStr; att.height = heightStr; var par = {}; if (parObj && typeof parObj === OBJECT) { for (var j in parObj) { if (parObj[j] != Object.prototype[j]) { // Filter out prototype additions from other potential libraries par[j] = parObj[j]; } } } if (flashvarsObj && typeof flashvarsObj === OBJECT) { for (var k in flashvarsObj) { if (flashvarsObj[k] != Object.prototype[k]) { // Filter out prototype additions from other potential libraries if (typeof par.flashvars != UNDEF) { par.flashvars += "&" + k + "=" + flashvarsObj[k]; } else { par.flashvars = k + "=" + flashvarsObj[k]; } } } } addDomLoadEvent(function() { createSWF(att, par, replaceElemIdStr); if (att.id == replaceElemIdStr) { setVisibility(replaceElemIdStr, true); } }); } else if (xiSwfUrlStr && !isExpressInstallActive && hasPlayerVersion("6.0.65") && (ua.win || ua.mac)) { isExpressInstallActive = true; // deferred execution setVisibility(replaceElemIdStr, false); addDomLoadEvent(function() { var regObj = {}; regObj.id = regObj.altContentId = replaceElemIdStr; regObj.width = widthStr; regObj.height = heightStr; regObj.expressInstall = xiSwfUrlStr; showExpressInstall(regObj); }); } }, getFlashPlayerVersion: function() { return { major:ua.pv[0], minor:ua.pv[1], release:ua.pv[2] }; }, hasFlashPlayerVersion: hasPlayerVersion, createSWF: function(attObj, parObj, replaceElemIdStr) { if (ua.w3cdom) { return createSWF(attObj, parObj, replaceElemIdStr); } else { return undefined; } }, removeSWF: function(objElemIdStr) { if (ua.w3cdom) { removeSWF(objElemIdStr); } }, createCSS: function(sel, decl) { if (ua.w3cdom) { createCSS(sel, decl); } }, addDomLoadEvent: addDomLoadEvent, addLoadEvent: addLoadEvent, getQueryParamValue: function(param) { var q = doc.location.search || doc.location.hash; if (param == null) { return urlEncodeIfNecessary(q); } if (q) { var pairs = q.substring(1).split("&"); for (var i = 0; i < pairs.length; i++) { if (pairs[i].substring(0, pairs[i].indexOf("=")) == param) { return urlEncodeIfNecessary(pairs[i].substring((pairs[i].indexOf("=") + 1))); } } } return ""; }, // For internal usage only expressInstallCallback: function() { if (isExpressInstallActive && storedAltContent) { var obj = getElementById(EXPRESS_INSTALL_ID); if (obj) { obj.parentNode.replaceChild(storedAltContent, obj); if (storedAltContentId) { setVisibility(storedAltContentId, true); if (ua.ie && ua.win) { storedAltContent.style.display = "block"; } } storedAltContent = null; storedAltContentId = null; isExpressInstallActive = false; } } } }; }();
123912029-ssiagu
qrdec/war/swfobject.js
JavaScript
gpl2
24,198
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!-- saved from url=(0014)about:internet --> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <!-- Smart developers always View Source. This application was built using Adobe Flex, an open source framework for building rich Internet applications that get delivered via the Flash Player or to desktops via Adobe AIR. Learn more about Flex at http://flex.org // --> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>qrdec/qrread</title> <script type="text/javascript" language="javascript" src="qrdec/qrdec.nocache.js"></script> <style type="text/css" media="screen"> html, body { margin:0; padding:0; overflow:auto; text-align:center; background-color: #fff; } #header { background-color: #e6f1f8; } #header .wrap h1 { margin: 0px; padding: 10px 0px 10px 0px; text-align: left; font-size: 16px; } .wrap { font-family: Arial; width: 780px; margin-left: auto; margin-right: auto; } #content { margin-top: 14px; height: 320px; } #content .wrap h2 { margin: 0px; padding: 0px; font-size: 15px; } .left { text-align: left; float: left; } #flashContent { display:none; } .decoded { color: #197b30; font-size: 18px; font-weight: bold;} </style> <script type="text/javascript" src="swfobject.js"></script> <script type="text/javascript"> var swfVersionStr = "10.0.0"; var xiSwfUrlStr = "playerProductInstall.swf"; var flashvars = {}; var params = {}; params.quality = "high"; params.bgcolor = "#000000"; params.allowscriptaccess = "sameDomain"; params.allowfullscreen = "true"; var attributes = {}; attributes.id = "qrread"; attributes.name = "qrread"; attributes.align = "middle"; swfobject.embedSWF( "qrread.swf", "flashContent", "320", "320", swfVersionStr, xiSwfUrlStr, flashvars, params, attributes); swfobject.createCSS( "#flashContent", "display:block;text-align:left;"); </script> </head> <body> <div id="header"> <div class="wrap"> <h1>qrdec/qrread</h1> </div> </div> <div id="content"> <div class="wrap"> <div class="left"> <div id="flashContent"> <p> To view this page ensure that Adobe Flash Player version 10.0.0 or greater is installed. </p> <a href="http://www.adobe.com/go/getflashplayer"> <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash Player" /> </a> <noscript> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%" id="qrread"> <param name="movie" value="qrread.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#000000" /> <param name="allowScriptAccess" value="sameDomain" /> <param name="allowFullScreen" value="true" /> <!--[if !IE]> <object type="application/x-shockwave-flash" data="qrread.swf" width="100%" height="100%"> <param name="quality" value="high" /> <param name="bgcolor" value="#000000" /> <param name="allowScriptAccess" value="sameDomain" /> <param name="allowFullScreen" value="true" /> <![endif]--> <!--[if gte IE 6]> <p> Either scripts and active content are not permitted to run or Adobe Flash Player version 10.0.0 or greater is not installed. </p> <![endif]--> <a href="http://www.adobe.com/go/getflashplayer"> <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash Player" /> </a> <!--[if !IE]> </object> <![endif]--> </object> </noscript> </div> <div style="margin-top: 14px;"> <a href="http://creativecommons.org/licenses/by/3.0/">Creative Commons</a> &mdash; <a href="http://code.google.com/p/qrdec/">Source</a> </div> </div> <div class="left" style="margin-left: 14px; width: 440px;"> <h2>QR Code Decoder / Reader</h2> <p>This demo shows how to read and decode <a href="http://en.wikipedia.org/wiki/QR_Code">QR Code</a> using <a href="http://code.google.com/p/zxing/">ZXing</a> library on <a href="http://code.google.com/webtoolkit/">Google Web Toolkit</a> and <a href="http://www.adobe.com/products/flash/">Adobe Flash</a> plugin.</p> <h2>How does it work?</h2> <p>You need to use your camera to capture a code. <br />Here is a QR Code Generator: <a href="http://zxing.appspot.com/">http://zxing.appspot.com/</a></p> <p>&mdash;</p> <div id="resultView"> </div> </div> </div> </div> </body> </html>
123912029-ssiagu
qrdec/war/qrdec.html
HTML
gpl2
5,244