Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt.html
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt.html	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt.html	(revision 38779)
@@ -0,0 +1,484 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!-- saved from url=(0107)https://thewillow-aws.sowemustthink.space/greenstone3/library/collection/community-contributions/page/about -->
+<html lang="en" xmlns:exsl="http://exslt.org/common" xmlns:lxslt="http://xml.apache.org/xslt" xmlns:result="http://www.example.com/results" class=""><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+    <!--<base href="//thewillow-aws.sowemustthink.space/greenstone3/">--><base href="."><!-- [if lte IE 6]></base><![endif] -->
+    <title>ChatGPT with community-contributions :: The Willow Digital Library Archive</title>
+
+    <script>	
+	// Too soon to use gsf:variable, as 'gs' not yet defined, so roll-our-own JS variable
+	var googlesignin_client_id = '';
+      </script>
+
+    <script>
+	function gslogout(logout_action_url) {
+	  if (googlesignin_client_id != '') {
+	    //googleLogout();
+	    console.log("Need to implement new Google Identiy Logout function?????");
+	  }
+	  window.location = logout_action_url;
+	}
+      </script>
+
+    <link href="./dl-chatgpt_files/jquery-ui.theme.css" rel="stylesheet" type="text/css">
+    <link href="./dl-chatgpt_files/jquery-ui.structure.min.css" rel="stylesheet" type="text/css">
+    <link href="./dl-chatgpt_files/core.css" rel="stylesheet" type="text/css">
+    <link href="https://thewillow-aws.sowemustthink.space/greenstone3/interfaces/thewillow/images/favicon.ico" rel="shortcut icon">
+    <script src="./dl-chatgpt_files/jquery-3.6.0.min.js.download" type="text/javascript"> </script>
+
+    <script src="./dl-chatgpt_files/jquery-ui.min.js.download" type="text/javascript"> </script>
+
+    <script src="./dl-chatgpt_files/jquery.blockUI.js.download" type="text/javascript"> </script>
+
+    <link href="./dl-chatgpt_files/cookieconsent.css" rel="stylesheet" type="text/css">
+    <script type="text/javascript">if(typeof gs==="undefined"){gs={};}
+if(typeof gs.text==="undefined"){gs.text={};}
+if(typeof gs.text.ccm==="undefined"){gs.text.ccm={};}
+gs.text.ccm.Popup_Description="Greenstone uses essential cookies to ensure its proper operation.";
+gs.text.ccm.Manager_AcceptNecessaryButton="Reject All";
+if(typeof gs.text.ccm.Manager==="undefined"){gs.text.ccm.Manager={};}
+gs.text.ccm.Manager.RequiredCookies_Title="Required Cookies";
+gs.text.ccm.Manager.CookieTable_EndOfSessionExpiration="End of session";
+gs.text.ccm.Manager_Title="Cookie Consent Manager";
+gs.text.ccm.Manager.CookieTableHeaders_Expiration="Expiration";
+gs.text.ccm.Popup_OpenAdvancedManager="More Info";
+gs.text.ccm.Popup_Title="We use Cookies!";
+gs.text.ccm.Manager_AcceptAllButton="Accept All";
+gs.text.ccm.Manager_Description="Greenstone uses essential cookies to ensure its proper operation. You can view this cookie manager later by visiting the preferences page.";
+gs.text.ccm.Manager.CookieTableHeaders_Name="Name";
+gs.text.ccm.Popup_AcceptAllCookies="Got it";
+gs.text.ccm.Popup_AcceptNecessaryCookies="Reject All";
+gs.text.ccm.Manager_SaveSettingsButton="Close";
+gs.text.ccm.Manager.RequiredCookies_Description="These cookies are essential to ensuring that Greenstone operates properly.";
+gs.text.ccm.Manager_CloseButton="Close";
+if(typeof gs.text.ccm.Manager.RequiredCookies==="undefined"){gs.text.ccm.Manager.RequiredCookies={};}
+gs.text.ccm.Manager.RequiredCookies.supportsXSLT_Description="Allows Greenstone to tell whether or not your browser supports client-side XSLT transformations.";
+gs.text.ccm.Manager.RequiredCookies.JSESSIONID_Description="Allows Greenstone to maintain your login status, chosen language, site settings and favourites basket.";
+gs.text.ccm.Manager.CookieTableHeaders_Provider="Provider";
+gs.text.ccm.Manager.CookieTableHeaders_Description="Description";
+    </script>
+
+    <script defer="true" src="./dl-chatgpt_files/cookieconsent.js.download" type="text/javascript"> </script>
+
+    <script defer="true" src="./dl-chatgpt_files/cookieconsent-gsinit.js.download" type="text/javascript"> </script>
+
+    <script src="./dl-chatgpt_files/zoomer.js.download" type="text/javascript"> </script>
+
+    <script type="text/javascript">
+				if (typeof gs === "undefined" ) {
+					gs={};
+				}
+				if(typeof gs.cgiParams==="undefined"){gs.cgiParams={};} //gs.cgiParams ??= {};
+				if(typeof gs.xsltParams==="undefined"){gs.xsltParams={};} //gs.xsltParams ??= {};
+				if(typeof gs.siteMetadata==="undefined"){gs.siteMetadata={};} //gs.siteMetadata ??= {};
+				if(typeof gs.collectionMetadata==="undefined"){gs.collectionMetadata={};} //gs.collectionMetadata ??= {};
+				if(typeof gs.documentMetadata==="undefined"){gs.documentMetadata={};} //gs.documentMetadata ??= {};
+				if(typeof gs.imageURLs==="undefined"){gs.imageURLs={};} //gs.imageURLs ??= {};
+				if(typeof gs.variables==="undefined"){gs.variables={};} //gs.variables ??= {};
+				if(typeof gs.requestInformation==="undefined"){gs.requestInformation={};} //gs.requestInformation ??= {};
+			</script>
+
+    <script type="text/javascript">
+			var name;
+			var value;
+			name = "c";value = "community-contributions";name = name.replace(".", "_");
+				gs.cgiParams[name] = value;				
+			name = "favouritebasket";value = "on";name = name.replace(".", "_");
+				gs.cgiParams[name] = value;				
+			</script>
+
+    <script type="text/javascript">gs.xsltParams.library_name = "library";gs.xsltParams.interface_name = "thewillow";gs.xsltParams.site_name = "thewillow";gs.xsltParams.use_client_side_xslt = "false";gs.xsltParams.filepath = "";gs.xsltParams.cookie_path = "greenstone3";</script>
+
+    <script type="text/javascript">gs.imageURLs.expand = "interfaces/thewillow/images/expand.png";gs.imageURLs.collapse = "interfaces/thewillow/images/collapse.png";gs.imageURLs.page = "interfaces/thewillow/images/page.png";gs.imageURLs.chapter = "interfaces/thewillow/images/chapter.png";gs.imageURLs.realisticBook = "interfaces/thewillow/images/rbook.png";gs.imageURLs.highlight = "interfaces/thewillow/images/hl.png";gs.imageURLs.bookshelf = "interfaces/thewillow/images/bookshelf.png";gs.imageURLs.book = "interfaces/thewillow/images/book.png";gs.imageURLs.loading = "interfaces/thewillow/images/loading.gif";gs.imageURLs.pageIcon = "interfaces/thewillow/images/itext.gif";gs.imageURLs.trashFull = "interfaces/thewillow/images/trash-full.png";gs.imageURLs.blank = "interfaces/thewillow/images/blankImage.png";gs.imageURLs.next = "interfaces/thewillow/images/next.png";gs.imageURLs.prev = "interfaces/thewillow/images/previous.png";gs.imageURLs.trashEmpty = "interfaces/thewillow/images/trash-empty.png";gs.imageURLs.trashFull = "interfaces/thewillow/images/trash-full.png";gs.imageURLs.greenBug = "interfaces/thewillow/images/GB.png";</script>
+
+    <script type="text/javascript">
+				function addMetadataToList(name, value, list, lang)
+				{
+					name = name.replace(".", "_");
+					if(lang == "" || lang == "en")
+					{
+						list[name] = value;
+					}
+					else
+					{
+						if (list[lang] == undefined)
+						{
+							list[lang] = new Array();
+						}
+						var langList = list[lang];
+						langList[name] = value;
+					}
+				}
+				var name;
+				var value;
+				var lang;
+			name = "siteAdmin";value = "davidb@waikato.ac.nz";lang = "";
+				addMetadataToList(name, value, gs.siteMetadata, lang);
+			name = "creator";value = "";lang = "en";
+				addMetadataToList(name, value, gs.collectionMetadata, lang);
+			name = "maintainer";value = "";lang = "en";
+				addMetadataToList(name, value, gs.collectionMetadata, lang);
+			name = "public";value = "true";lang = "en";
+				addMetadataToList(name, value, gs.collectionMetadata, lang);
+			name = "numDocs";value = "158";lang = "";
+				addMetadataToList(name, value, gs.collectionMetadata, lang);
+			name = "buildType";value = "solr";lang = "";
+				addMetadataToList(name, value, gs.collectionMetadata, lang);
+			name = "indexStem";value = "community-contributions";lang = "";
+				addMetadataToList(name, value, gs.collectionMetadata, lang);
+			name = "infodbType";value = "jdbm";lang = "";
+				addMetadataToList(name, value, gs.collectionMetadata, lang);
+			name = "buildDate";value = "1707702357";lang = "";
+				addMetadataToList(name, value, gs.collectionMetadata, lang);
+			name = "earliestDatestamp";value = "1707702277";lang = "";
+				addMetadataToList(name, value, gs.collectionMetadata, lang);
+			name = "httpPath";value = "library/sites/thewillow/collect/community-contributions";lang = "";
+				addMetadataToList(name, value, gs.collectionMetadata, lang);
+			name = "tidyoption";value = "untidy";lang = "";
+				addMetadataToList(name, value, gs.collectionMetadata, lang);
+			addMetadataToList("docType", "", gs.documentMetadata, "");</script>
+
+    <script type="text/javascript">
+				gs.requestInformation.fullURL = "http://thewillow-aws.sowemustthink.space/greenstone3/library/collection/community-contributions/page/about";
+			</script>
+
+    <script type="text/javascript">
+		      if (typeof gs.userInformation === "undefined") {
+		        gs.userInformation={};
+		      }
+		      gs.userInformation.username = "";
+		      gs.userInformation.groups = "";
+		      
+		      gs.userInformation.uid = "A6BD5B5F0CA807D7C13985C11A492C79";		      
+		    </script>
+
+    <script src="./dl-chatgpt_files/javascript-global-functions.js.download" type="text/javascript"> </script>
+
+    <script src="./dl-chatgpt_files/GSMetadata.js.download" type="text/javascript"> </script>
+
+    <script src="./dl-chatgpt_files/utility_scripts.js.download" type="text/javascript"> </script>
+
+    <script type="text/javascript">
+      gs.variables["_httpbrowse_"]
+       = "library/collection/community-contributions/browse";</script>
+
+    <script type="text/javascript">
+      gs.variables["_httpquery_"]
+       = "library/collection/community-contributions/search";</script>
+
+    <script src="./dl-chatgpt_files/yahoo-min.js.download" type="text/javascript"> </script>
+
+    <script src="./dl-chatgpt_files/event-min.js.download" type="text/javascript"> </script>
+
+    <script src="./dl-chatgpt_files/connection-min.js.download" type="text/javascript"> </script>
+
+    <script src="./dl-chatgpt_files/dom-min.js.download" type="text/javascript"> </script>
+
+    <script src="./dl-chatgpt_files/favouritebasket.js.download" type="text/javascript"> </script>
+
+    <link href="./dl-chatgpt_files/favourites.css" rel="stylesheet" type="text/css">
+    <link href="./dl-chatgpt_files/core-extra.css" rel="stylesheet" type="text/css">
+    <link href="./dl-chatgpt_files/css.css" media="all" rel="stylesheet">
+    <link href="./dl-chatgpt_files/vsm0qzc.css" rel="stylesheet">
+    <link href="./dl-chatgpt_files/oswald.css" media="all" rel="stylesheet">
+    <link href="./dl-chatgpt_files/h360_tooltip.css" media="all" rel="stylesheet">
+    <link href="./dl-chatgpt_files/ajax-progress.module.css" media="all" rel="stylesheet">
+    <link href="./dl-chatgpt_files/align.module.css" media="all" rel="stylesheet">
+    <link href="./dl-chatgpt_files/autocomplete-loading.module.css" media="all" rel="stylesheet">
+    <link href="./dl-chatgpt_files/fieldgroup.module.css" media="all" rel="stylesheet">
+    <link href="./dl-chatgpt_files/container-inline.module.css" media="all" rel="stylesheet">
+    <link href="./dl-chatgpt_files/clearfix.module.css" media="all" rel="stylesheet">
+    <link href="./dl-chatgpt_files/details.module.css" media="all" rel="stylesheet">
+    <link href="./dl-chatgpt_files/hidden.module.css" media="all" rel="stylesheet">
+    <link href="./dl-chatgpt_files/item-list.module.css" media="all" rel="stylesheet">
+    <link href="./dl-chatgpt_files/js.module.css" media="all" rel="stylesheet">
+    <link href="./dl-chatgpt_files/nowrap.module.css" media="all" rel="stylesheet">
+    <link href="./dl-chatgpt_files/position-container.module.css" media="all" rel="stylesheet">
+    <link href="./dl-chatgpt_files/progress.module.css" media="all" rel="stylesheet">
+    <link href="./dl-chatgpt_files/reset-appearance.module.css" media="all" rel="stylesheet">
+    <link href="./dl-chatgpt_files/resize.module.css" media="all" rel="stylesheet">
+    <link href="./dl-chatgpt_files/sticky-header.module.css" media="all" rel="stylesheet">
+    <link href="./dl-chatgpt_files/system-status-counter.css" media="all" rel="stylesheet">
+    <link href="./dl-chatgpt_files/system-status-report-counters.css" media="all" rel="stylesheet">
+    <link href="./dl-chatgpt_files/system-status-report-general-info.css" media="all" rel="stylesheet">
+    <link href="./dl-chatgpt_files/tabledrag.module.css" media="all" rel="stylesheet">
+    <link href="./dl-chatgpt_files/tablesort.module.css" media="all" rel="stylesheet">
+    <link href="./dl-chatgpt_files/tree-child.module.css" media="all" rel="stylesheet">
+    <link href="./dl-chatgpt_files/views.module.css" media="all" rel="stylesheet">
+    <link href="./dl-chatgpt_files/filter.caption.css" media="all" rel="stylesheet">
+    <link href="./dl-chatgpt_files/filter.caption_002.css" media="all" rel="stylesheet">
+    <link href="./dl-chatgpt_files/eu_cookie_compliance.css" media="all" rel="stylesheet">
+    <link href="./dl-chatgpt_files/responsive_menu_breakpoint.css" media="all" rel="stylesheet">
+    <link href="./dl-chatgpt_files/mmenu.css" media="all" rel="stylesheet">
+    <link href="./dl-chatgpt_files/responsive_menu.css" media="all" rel="stylesheet">
+    <link href="./dl-chatgpt_files/mmenu.bootstrap.css" media="all" rel="stylesheet">
+    <link href="./dl-chatgpt_files/colorbox_style.css" media="all" rel="stylesheet">
+    <link href="./dl-chatgpt_files/extlink.css" media="all" rel="stylesheet">
+    <link href="./dl-chatgpt_files/style.css" media="all" rel="stylesheet">
+    <link href="./dl-chatgpt_files/css" media="all" rel="stylesheet">
+    <script src="./dl-chatgpt_files/thewillow-extra.js.download" type="text/javascript"><!--  --></script>
+  </head>
+
+  <body class="pAction aboutSubaction" dir="ltr">
+    <a name="top"> </a>
+<!-- Supress streetlifeyork top-level navigation bar -->
+    <div class="ui-corner-all" id="container">
+      <div class="ui-widget-header ui-corner-bottom" id="gs_banner" style="margin-bottom: 0.5rem;">
+        <style>
+	    #new-bannerXXXX {
+	      width: 1280px;
+	      margin-left: auto;
+	      margin-right: auto;
+	      height: 250px;	      
+	    }
+	    
+	    
+	    
+	    
+
+	    
+	    
+      </style>
+
+        <div class="new-banner-page-about" id="new-banner">
+          <span aria-label="The Willow Restaurant York, courtesy of The York Press" role="img">  </span>
+
+          <div style="float: right">
+            <div id="over-banner-logo"></div>
+
+            <div style="position: absolute; right: 1rem; bottom: -1.5rem; font-size: 80%; font-style:italic;"><!-- non-collapsing filler -->
+		Banner image courtesy of The York Press
+	      </div>
+          </div>
+
+          <div style="position: absolute; bottom: 0px;">
+            <style>
+	#gs-nav li:nth-child(3) {
+          display: none;
+	}
+	  
+	#story-list {
+	  position: absolute;
+	  display: none;
+	  color: #000000;
+	  background-color: #E6E6E6;
+	}
+
+	  	
+	#story-list table tr td {
+	  padding: 0.4rem 0.4rem 0.2rem 0.4rem;	
+	}
+	
+	#story-list tr:hover {
+	  color: #FFFFFF;
+	  background-color: #000000;
+	}
+
+	
+      </style>
+
+            <ul id="gs-nav">
+              <li class="ui-state-default ui-corner-top ui-state-active ui-tabs-selected" id="about-tab">
+                <a href="https://thewillow-aws.sowemustthink.space/greenstone3/library/collection/community-contributions/page/about;jsessionid=A6BD5B5F0CA807D7C13985C11A492C79" title="About this collecotion">Willow Archive Project</a>
+              </li>
+
+              <li class="ui-state-default ui-corner-top ui-state-active" id="stories-tab">
+                <a href="https://thewillow-aws.sowemustthink.space/greenstone3/library/collection/community-contributions/page/stories;jsessionid=A6BD5B5F0CA807D7C13985C11A492C79" title="Stories">Stories</a>
+
+                <div id="story-list"><!-- Location for story list --></div>
+              </li>
+
+              <li class="ui-state-default ui-corner-top">
+                <a href="https://thewillow-aws.sowemustthink.space/greenstone3/library/collection/community-contributions/browse/CL1;jsessionid=A6BD5B5F0CA807D7C13985C11A492C79" title="Browse by Stories">Stories</a>
+              </li>
+
+              <li class="ui-state-default ui-corner-top ui-state-active" id="query-tab">
+                <a href="https://thewillow-aws.sowemustthink.space/greenstone3/library/collection/community-contributions/search/AdvancedFieldQuery;jsessionid=A6BD5B5F0CA807D7C13985C11A492C79">
+	  Explore More
+	</a>
+              </li>
+
+              <li class="ui-state-default ui-corner-top ui-state-active" id="query-tab">
+                <a href="https://docs.google.com/forms/d/e/1FAIpQLSfnO4e7YL-6ZCNRjbH0FsOpOlSZsnoTkjPOOh2-xgrbYpq6lA/viewform" target="_blank">
+	  Add Your Memories
+	</a>
+              </li>
+            </ul>
+
+            <div style="clear:both;"> </div>
+
+            <script type="text/javascript">
+			gs.variables.pageAction = "p";</script>
+
+            <script type="text/javascript">
+			gs.variables.pageType = "page";</script>
+
+            <script type="text/javascript">
+			gs.variables.pageSubAction = "about";</script>
+          </div>
+        </div>
+      </div>
+
+      <div class="ui-widget-content" id="gs_content">
+        <h1>Chat with The Willow Sage</h1>
+
+        <p>
+	  Through this page you can engage in an interactive text
+	  conversation with a specially formed ChatGPT Assistant we've
+	  called the <i>Willow Sage</i>. The assistant has had all the
+	  text documents in The Willow Digital Library Archive loaded
+	  up into it as context, and the assistant's configuration
+	  prompted towards focusing on rekindling the nostalgia that
+	  many of the patrons to The Willow retain to this day.
+	</p>
+	<p>
+	  We think this also happens to make for a fun way for those
+	  who havenât heard about The Willow before to engage in
+	  learning about what the venue representedâand for those
+	  engaging with this ChatGPT assistant who have spent some
+	  time there, who knows, the conversation may even stir up
+	  some additional memories they had forgotten about!
+	</p>
+
+	<iframe src="/dlchatgpt/"
+		frameborder="0" allowtransparency="true" scrolling="no"
+		style="overflow: hidden; width: 100%; height: 950px;">
+	  Your browse is not capable of showing iframes
+	</iframe>
+      </div>
+
+      <div class="ui-widget-header ui-corner-bottom ft-outer-div" id="gs_footer" style="margin-top: 1.0rem;">
+        <div class="ft-row" style="background-color: #E6E6E6; color: #595959; padding: 0.5rem;">
+          <div>
+            <div class="ft-column" style="width: 6%;">&nbsp;</div>
+
+            <div class="ft-column">
+              <div>
+                <a href="https://thewillow-aws.sowemustthink.space/greenstone3/library/collection/community-contributions/page/about;jsessionid=A6BD5B5F0CA807D7C13985C11A492C79">Willow Archive Project</a>
+              </div>
+
+              <div>
+                <a href="https://thewillow-aws.sowemustthink.space/greenstone3/library/collection/community-contributions/page/stories;jsessionid=A6BD5B5F0CA807D7C13985C11A492C79">Stories</a>
+              </div>
+
+              <div>
+                <a href="https://thewillow-aws.sowemustthink.space/greenstone3/library/collection/community-contributions/search/TextQuery;jsessionid=A6BD5B5F0CA807D7C13985C11A492C79">Explore More</a>
+              </div>
+
+              <div>
+                <a href="https://docs.google.com/forms/d/e/1FAIpQLSfnO4e7YL-6ZCNRjbH0FsOpOlSZsnoTkjPOOh2-xgrbYpq6lA/viewform" target="_blank">Add Your Memories</a>
+              </div>
+            </div>
+
+            <div class="ft-column">
+              <div>
+                <a href="https://thewillow-aws.sowemustthink.space/greenstone3/library/collection/community-contributions/page/terms-and-conditions;jsessionid=A6BD5B5F0CA807D7C13985C11A492C79">
+		  Terms and Conditions
+		</a>
+              </div>
+
+              <div>
+                <a href="https://thewillow-aws.sowemustthink.space/greenstone3/library/collection/community-contributions/page/copyright;jsessionid=A6BD5B5F0CA807D7C13985C11A492C79">		  
+		  Copyright
+		</a>
+              </div>
+
+              <div>
+                <a href="https://thewillow-aws.sowemustthink.space/greenstone3/library/collection/community-contributions/page/about-this-site;jsessionid=A6BD5B5F0CA807D7C13985C11A492C79">
+		  About this Site
+		</a>
+              </div>
+
+              <div>
+                <a href="https://thewillow-aws.sowemustthink.space/greenstone3/library/collection/community-contributions/page/privacy;jsessionid=A6BD5B5F0CA807D7C13985C11A492C79">
+		  Privacy
+		</a>
+              </div>
+            </div>
+
+            <div class="ft-column">
+              <div>
+                <a href="https://thewillow-aws.sowemustthink.space/greenstone3/library/collection/community-contributions/page/contact-us;jsessionid=A6BD5B5F0CA807D7C13985C11A492C79">
+		  Contact Us
+		</a>
+              </div>
+            </div>
+
+            <div class="ft-column ft-column-lr-gap">&nbsp;</div>
+
+            <div class="ft-column ft-column-dms">
+              <br id="br-beforeDMLogos">
+              <a href="https://exploreyork.org.uk/" target="_blank">
+                <img alt="Goto Facebook" src="./dl-chatgpt_files/Facebook logo.png" width="32"></a>
+
+              <a href="https://www.instagram.com/streetlifeyork/" target="_blank">
+                <img alt="Goto Instagram" src="./dl-chatgpt_files/Instagram logo.png" width="32"></a>
+
+              <a href="https://twitter.com/StreetLifeYork/" target="_blank">
+                <img alt="Goto Twitter" src="./dl-chatgpt_files/Twitter logo.png" width="32"></a>
+            </div>
+          </div>
+
+          <div style="clear:both;"> </div>
+        </div>
+
+        <div class="ft-row" style="background-color: #ffffff;">
+          <div style="padding-top: 1rem; padding-bottom: 1rem; valign: middle;">
+            <div class="ftlogo-column" id="ft-logo-l-padding" stylexxxx="width: 8%;">&nbsp;</div>
+
+            <div class="ftlogo-column">
+              <a href="https://www.streetlifeyork.uk/" style="width: 100%;" target="_blank">
+                <div id="ft-logo-streetlife"></div>
+              </a>
+            </div>
+
+            <div class="ftlogo-column">
+              <a href="https://www.streetlifeyork.uk/" style="width: 100%;" target="_blank">
+                <div id="ft-logo-yorkuni"></div>
+              </a>
+            </div>
+
+            <div class="ftlogo-column">
+              <a href="https://www.streetlifeyork.uk/" style="width: 100%;" target="_blank">
+                <div id="ft-logo-ukri"></div>
+              </a>
+            </div>
+
+            <div class="ftlogo-column">
+              <a href="http://thomfong.com/" style="width: 100%;" target="_blank">
+                <div id="ft-logo-thomfong"></div>
+              </a>
+            </div>
+
+            <div class="ftlogo-column">
+              <a href="https://exploreyork.org.uk/" style="width: 100%;" target="_blank">
+                <div id="ft-logo-explore-libarch"></div>
+              </a>
+            </div>
+
+            <div class="ftlogo-column">
+              <div style="margin-bottom: -2px">
+                <a href="https://www.greenstone.org/" style="width: 100%;" target="_blank">
+                  <div id="ft-logo-greenstone"></div>
+                </a>
+
+                <a href="https://www.greenstone.org/" target="_blank">
+                  <div id="ft-logo-greenstone-text">Greenstone</div>
+                </a>
+              </div>
+            </div>
+          </div>
+
+          <div style="clear:both;"> </div>
+        </div>
+
+        <div style="width: 100%; border-top: solid #E7D821 6px; margin-top: 1.0rem; padding-top: 1.0rem;">
+          <div>This activity is part of the University of York's Street Lefe project funded by the Higher Education Innovation Fund (HEIF)</div>
+
+          <div>Copyright @ StreetLife Project 2023</div>
+        </div>
+      </div>
+    </div>
+  
+
+
+<div id="cc--main" style="position: fixed;" class="c--anim"><div id="cc_div" class="cc_div"><div id="cm" tabindex="-1" role="dialog" aria-modal="true" aria-labelledby="c-ttl" aria-describedby="c-txt" class="cloud bottom left slide" style="visibility: hidden;" aria-hidden="true"><div id="c-inr"><div id="c-inr-i"><div id="c-ttl" role="heading" aria-level="2">We use Cookies!</div><div id="c-txt">Greenstone uses essential cookies to ensure its proper operation. <button type="button" data-cc="c-settings" class="cc-link" aria-haspopup="dialog">More Info</button></div></div><div id="c-bns"><button type="button" id="c-p-bn" class="c-bn"><span tabindex="-1">Got it</span></button></div></div></div><div id="cm-ov" style="visibility: hidden; opacity: 0;"></div><div tabindex="-1" id="s-cnt" role="dialog" aria-modal="true" aria-hidden="true" aria-labelledby="s-ttl" class="slide" style="visibility: hidden;"><div id="c-vln"><div id="cs"><div id="c-s-in"><div id="s-inr"><div id="s-hdr"><div id="s-ttl" role="heading">Cookie Consent Manager</div><div id="s-c-bnc"><button type="button" id="s-c-bn" class="c-bn" aria-label="Close"><span tabindex="-1"></span></button></div></div><div id="s-bl"><div class="c-bl"><div class="desc"><div class="p">Greenstone uses essential cookies to ensure its proper operation. You can view this cookie manager later by visiting the preferences page.</div></div></div><div class="c-bl b-ex"><div class="title b-bn"><button type="button" class="b-tl exp" aria-expanded="false" aria-controls="c-ac-1">Required Cookies</button><label class="b-tg"><input class="c-tgl" type="checkbox" value="required" disabled=""><span class="c-tg c-ro" aria-hidden="true"><span class="on-i"></span><span class="off-i"></span></span><span class="t-lb">Required Cookies</span></label></div><div class="desc b-acc" id="c-ac-1" aria-hidden="true"><div class="p">These cookies are essential to ensuring that Greenstone operates properly.</div><table><thead><tr><th scope="col">Name</th><th scope="col">Provider</th><th scope="col">Expiration</th><th scope="col">Description</th></tr></thead><tbody><tr><td data-column="Name">JSESSIONID</td><td data-column="Provider">thewillow-aws.sowemustthink.space</td><td data-column="Expiration">End of session</td><td data-column="Description">Allows Greenstone to maintain your login status, chosen language, site settings and favourites basket.</td></tr><tr><td data-column="Name">supportsXSLT</td><td data-column="Provider">thewillow-aws.sowemustthink.space</td><td data-column="Expiration">End of session</td><td data-column="Description">Allows Greenstone to tell whether or not your browser supports client-side XSLT transformations.</td></tr></tbody></table></div></div></div><div id="s-bns"><button type="button" id="s-all-bn" class="c-bn">Accept All</button><button type="button" id="s-sv-bn" class="c-bn">Close</button></div></div></div></div></div></div><div id="cs-ov" style="visibility: hidden; opacity: 0;"></div></div></div></body></html>
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/GSMetadata.js.download
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/GSMetadata.js.download	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/GSMetadata.js.download	(revision 38779)
@@ -0,0 +1,93 @@
+function GSMetadata(collection, site, documentID, name, indexPosition, archivesPosition, value)
+{
+	var _collection = collection;
+	var _site = site;
+	var _documentID = documentID;
+	var _name = name;
+	var _value = value;
+	var _indexPosition = indexPosition;
+	var _archivesPosition = archivesPosition;
+
+
+	//The setImport, setArchives and setIndex parameters are optional flags that specify the places you want the metadata to be set
+	this.setMetadata = function(newValue, setImport, setArchives, setIndex)
+	{
+		if((setImport && setArchives && setIndex) || (!setImport && !setArchives && !setIndex))
+		{
+			gs.functions.setMetadata(_collection, _site, _documentID, _name, _value);
+		}
+		else
+		{
+			if(setImport)
+			{
+				gs.functions.setImportMetadata(_collection, _site, _documentID, _name, _value);
+			}
+			else if(setArchives)
+			{
+				if(_archivesPosition != null)
+				{
+				    gs.functions.setArchivesMetadata(_collection, _site, _documentID, _name, _archivesPosition, _value);
+				}
+				else
+				{
+					gs.functions.setArchivesMetadata(_collection, _site, _documentID, _name, null, _value);
+				}
+			}
+			else if(setIndex)
+			{
+				if(_indexPosition != null)
+				{
+				    gs.functions.setIndexMetadata(_collection, _site, _documentID, _name, _indexPosition, _value);
+				}
+				else
+				{
+					gs.functions.setIndexMetadata(_collection, _site, _documentID, _name, null, _value);
+				}
+			}
+		}
+	}
+	
+	//The removeImport, removeArchives and removeIndex parameters are optional flags that specify the places you want the metadata to be removed from
+	this.removeMetadata = function(removeImport, removeArchives, removeIndex)
+	{
+		if((removeImport && removeArchives && removeIndex) || (!removeImport && !removeArchives && !removeIndex))
+		{
+			gs.functions.removeMetadata(_collection, _site, _documentID, _name, _value);
+		}
+		else
+		{
+			if(removeImport)
+			{
+				gs.functions.removeImportMetadata(_collection, _site, _documentID, _name, _value);
+			}
+			else if(removeArchives)
+			{
+				if(_archivesPosition != null)
+				{
+					gs.functions.removeArchivesMetadata(_collection, _site, _documentID, _name, _archivesPosition);
+				}
+				else
+				{
+					gs.functions.removeArchivesMetadata(_collection, _site, _documentID, _name, null, _value);
+				}
+			}
+			else if(removeIndex)
+			{
+				if(_indexPosition != null)
+				{
+					gs.functions.removeIndexMetadata(_collection, _site, _documentID, _name, _indexPosition);
+				}
+				else
+				{
+					gs.functions.removeIndexMetadata(_collection, _site, _documentID, _name, null, _value);
+				}
+			}
+		}
+	}
+
+        this.getValue = function()
+        {
+            return _value;
+	}
+	
+}
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/ajax-progress.module.css
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/ajax-progress.module.css	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/ajax-progress.module.css	(revision 38779)
@@ -0,0 +1,49 @@
+/**
+ * @file
+ * Throbber.
+ */
+
+.ajax-progress {
+  display: inline-block;
+  padding: 1px 5px 2px 5px;
+}
+[dir="rtl"] .ajax-progress {
+  float: right;
+}
+.ajax-progress-throbber .throbber {
+  display: inline;
+  padding: 1px 6px 2px;
+  background: transparent url(../../../../misc/throbber-active.gif) no-repeat 0 center;
+}
+.ajax-progress-throbber .message {
+  display: inline;
+  padding: 1px 5px 2px;
+}
+tr .ajax-progress-throbber .throbber {
+  margin: 0 2px;
+}
+.ajax-progress-bar {
+  width: 16em;
+}
+
+/* Full screen throbber */
+.ajax-progress-fullscreen {
+  position: fixed;
+  z-index: 1000;
+  top: 48.5%;
+  /* Can't do center:50% middle: 50%, so approximate it for a typical window size. */
+  left: 49%; /* LTR */
+  width: 24px;
+  height: 24px;
+  padding: 4px;
+  opacity: 0.9;
+  border-radius: 7px;
+  background-color: #232323;
+  background-image: url(../../../../misc/loading-small.gif);
+  background-repeat: no-repeat;
+  background-position: center center;
+}
+[dir="rtl"] .ajax-progress-fullscreen {
+  right: 49%;
+  left: auto;
+}
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/align.module.css
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/align.module.css	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/align.module.css	(revision 38779)
@@ -0,0 +1,32 @@
+/**
+ * @file
+ * Alignment classes for text and block level elements.
+ */
+
+.text-align-left {
+  text-align: left;
+}
+.text-align-right {
+  text-align: right;
+}
+.text-align-center {
+  text-align: center;
+}
+.text-align-justify {
+  text-align: justify;
+}
+
+/**
+ * Alignment classes for block level elements (images, videos, blockquotes, etc.)
+ */
+.align-left {
+  float: left;
+}
+.align-right {
+  float: right;
+}
+.align-center {
+  display: block;
+  margin-right: auto;
+  margin-left: auto;
+}
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/autocomplete-loading.module.css
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/autocomplete-loading.module.css	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/autocomplete-loading.module.css	(revision 38779)
@@ -0,0 +1,22 @@
+/**
+ * @file
+ * Visual styles for animated throbber.
+ *
+ * @see autocomplete.js
+ */
+
+.js input.form-autocomplete {
+  background-image: url(../../../../misc/throbber-inactive.png);
+  background-repeat: no-repeat;
+  background-position: 100% center; /* LTR */
+}
+.js[dir="rtl"] input.form-autocomplete {
+  background-position: 0% center;
+}
+.js input.form-autocomplete.ui-autocomplete-loading {
+  background-image: url(../../../../misc/throbber-active.gif);
+  background-position: 100% center; /* LTR */
+}
+.js[dir="rtl"] input.form-autocomplete.ui-autocomplete-loading {
+  background-position: 0% center;
+}
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/clearfix.module.css
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/clearfix.module.css	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/clearfix.module.css	(revision 38779)
@@ -0,0 +1,15 @@
+/**
+ * @file
+ * Float clearing.
+ *
+ * Based on the micro clearfix hack by Nicolas Gallagher, with the :before
+ * pseudo selector removed to allow normal top margin collapse.
+ *
+ * @see http://nicolasgallagher.com/micro-clearfix-hack
+ */
+
+.clearfix:after {
+  display: table;
+  clear: both;
+  content: "";
+}
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/colorbox_style.css
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/colorbox_style.css	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/colorbox_style.css	(revision 38779)
@@ -0,0 +1,228 @@
+/**
+ * Colorbox Core Style:
+ * The following CSS is consistent between example themes and should not be altered.
+ */
+#colorbox,
+#cboxOverlay,
+#cboxWrapper {
+  position: absolute;
+  top: 0;
+  left: 0;
+  z-index: 9999;
+  overflow: hidden;
+}
+#cboxOverlay {
+  position: fixed;
+  width: 100%;
+  height: 100%;
+}
+#cboxMiddleLeft,
+#cboxBottomLeft {
+  clear: left;
+}
+#cboxContent {
+  position: relative;
+}
+#cboxLoadedContent {
+  overflow: auto;
+  -webkit-overflow-scrolling: touch;
+}
+#cboxTitle {
+  margin: 0;
+}
+#cboxLoadingOverlay,
+#cboxLoadingGraphic {
+  position: absolute;
+  top: 0;
+  left: 0;
+  width: 100%;
+  height: 100%;
+}
+/**
+ * These elements are buttons, and may need to have additional
+ * styles reset to avoid unwanted base styles.
+ */
+#cboxPrevious,
+#cboxNext,
+#cboxClose,
+#cboxSlideshow {
+  border: 0;
+  padding: 0;
+  margin: 0;
+  overflow: visible;
+  width: auto;
+  background: none;
+  cursor: pointer;
+}
+/**
+ * Avoid outlines on :active (mouseclick),
+ * but preserve outlines on :focus (tabbed navigating)
+ */
+#cboxPrevious:active,
+#cboxNext:active,
+#cboxClose:active,
+#cboxSlideshow:active {
+  outline: 0;
+}
+.cboxPhoto {
+  float: left;
+  margin: auto;
+  border: 0;
+  display: block;
+  max-width: none;
+}
+.cboxIframe {
+  width: 100%;
+  height: 100%;
+  display: block;
+  border: 0;
+}
+/* Reset box sizing to content-box if theme is using border-box. */
+#colorbox,
+#cboxContent,
+#cboxLoadedContent {
+  -moz-box-sizing: content-box;
+  -webkit-box-sizing: content-box;
+  box-sizing: content-box;
+}
+
+/**
+ * Colorbox module default style:
+ * The styles are ordered & tabbed in a way that represents
+ * the nesting of the generated HTML.
+ */
+#cboxOverlay {
+  background: #000;
+}
+#colorbox {
+  outline: 0;
+}
+#cboxWrapper {
+  background: #fff;
+  -moz-border-radius: 5px;
+  -webkit-border-radius: 5px;
+  border-radius: 5px;
+}
+#cboxTopLeft {
+  width: 15px;
+  height: 15px;
+}
+#cboxTopCenter {
+  height: 15px;
+}
+#cboxTopRight {
+  width: 15px;
+  height: 15px;
+}
+#cboxBottomLeft {
+  width: 15px;
+  height: 10px;
+}
+#cboxBottomCenter {
+  height: 10px;
+}
+#cboxBottomRight {
+  width: 15px;
+  height: 10px;
+}
+#cboxMiddleLeft {
+  width: 15px;
+}
+#cboxMiddleRight {
+  width: 15px;
+}
+#cboxContent {
+  background: #fff;
+  overflow: hidden;
+}
+#cboxError {
+  padding: 50px;
+  border: 1px solid #ccc;
+}
+#cboxLoadedContent {
+  margin-bottom: 28px;
+}
+#cboxTitle {
+  position: absolute;
+  background: rgba(255, 255, 255, 0.7);
+  bottom: 28px;
+  left: 0;
+  color: #535353;
+  width: 100%;
+  padding: 4px 6px;
+  -moz-box-sizing: border-box;
+  -webkit-box-sizing: border-box;
+  box-sizing: border-box;
+}
+#cboxCurrent {
+  position: absolute;
+  bottom: 4px;
+  left: 60px;
+  color: #949494;
+}
+.cboxSlideshow_on #cboxSlideshow {
+  position: absolute;
+  bottom: 0;
+  right: 30px;
+  background: url(images/controls.png) no-repeat -75px -50px;
+  width: 25px;
+  height: 25px;
+  text-indent: -9999px;
+}
+.cboxSlideshow_on #cboxSlideshow:hover {
+  background-position: -101px -50px;
+}
+.cboxSlideshow_off #cboxSlideshow {
+  position: absolute;
+  bottom: 0;
+  right: 30px;
+  background: url(images/controls.png) no-repeat -25px -50px;
+  width: 25px;
+  height: 25px;
+  text-indent: -9999px;
+}
+.cboxSlideshow_off #cboxSlideshow:hover {
+  background-position: -49px -50px;
+}
+#cboxPrevious {
+  position: absolute;
+  bottom: 0;
+  left: 0;
+  background: url(images/controls.png) no-repeat -75px 0;
+  width: 25px;
+  height: 25px;
+  text-indent: -9999px;
+}
+#cboxPrevious:hover {
+  background-position: -75px -25px;
+}
+#cboxNext {
+  position: absolute;
+  bottom: 0;
+  left: 27px;
+  background: url(images/controls.png) no-repeat -50px 0;
+  width: 25px;
+  height: 25px;
+  text-indent: -9999px;
+}
+#cboxNext:hover {
+  background-position: -50px -25px;
+}
+#cboxLoadingOverlay {
+  background: #fff;
+}
+#cboxLoadingGraphic {
+  background: url(images/loading_animation.gif) no-repeat center center;
+}
+#cboxClose {
+  position: absolute;
+  bottom: 0;
+  right: 0;
+  background: url(images/controls.png) no-repeat -25px 0;
+  width: 25px;
+  height: 25px;
+  text-indent: -9999px;
+}
+#cboxClose:hover {
+  background-position: -25px -25px;
+}
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/connection-min.js.download
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/connection-min.js.download	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/connection-min.js.download	(revision 38779)
@@ -0,0 +1,9 @@
+/*
+Copyright (c) 2011, Yahoo! Inc. All rights reserved.
+Code licensed under the BSD License:
+http://developer.yahoo.com/yui/license.html
+version: 2.9.0
+*/
+YAHOO.util.Connect={_msxml_progid:["Microsoft.XMLHTTP","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP"],_http_headers:{},_has_http_headers:false,_use_default_post_header:true,_default_post_header:"application/x-www-form-urlencoded; charset=UTF-8",_default_form_header:"application/x-www-form-urlencoded",_use_default_xhr_header:true,_default_xhr_header:"XMLHttpRequest",_has_default_headers:true,_isFormSubmit:false,_default_headers:{},_poll:{},_timeOut:{},_polling_interval:50,_transaction_id:0,startEvent:new YAHOO.util.CustomEvent("start"),completeEvent:new YAHOO.util.CustomEvent("complete"),successEvent:new YAHOO.util.CustomEvent("success"),failureEvent:new YAHOO.util.CustomEvent("failure"),abortEvent:new YAHOO.util.CustomEvent("abort"),_customEvents:{onStart:["startEvent","start"],onComplete:["completeEvent","complete"],onSuccess:["successEvent","success"],onFailure:["failureEvent","failure"],onUpload:["uploadEvent","upload"],onAbort:["abortEvent","abort"]},setProgId:function(a){this._msxml_progid.unshift(a);},setDefaultPostHeader:function(a){if(typeof a=="string"){this._default_post_header=a;this._use_default_post_header=true;}else{if(typeof a=="boolean"){this._use_default_post_header=a;}}},setDefaultXhrHeader:function(a){if(typeof a=="string"){this._default_xhr_header=a;}else{this._use_default_xhr_header=a;}},setPollingInterval:function(a){if(typeof a=="number"&&isFinite(a)){this._polling_interval=a;}},createXhrObject:function(g){var d,a,b;try{a=new XMLHttpRequest();d={conn:a,tId:g,xhr:true};}catch(c){for(b=0;b<this._msxml_progid.length;++b){try{a=new ActiveXObject(this._msxml_progid[b]);d={conn:a,tId:g,xhr:true};break;}catch(f){}}}finally{return d;}},getConnectionObject:function(a){var c,d=this._transaction_id;try{if(!a){c=this.createXhrObject(d);}else{c={tId:d};if(a==="xdr"){c.conn=this._transport;c.xdr=true;}else{if(a==="upload"){c.upload=true;}}}if(c){this._transaction_id++;}}catch(b){}return c;},asyncRequest:function(h,d,g,a){var b=g&&g.argument?g.argument:null,e=this,f,c;if(this._isFileUpload){c="upload";}else{if(g&&g.xdr){c="xdr";}}f=this.getConnectionObject(c);if(!f){return null;}else{if(g&&g.customevents){this.initCustomEvents(f,g);}if(this._isFormSubmit){if(this._isFileUpload){window.setTimeout(function(){e.uploadFile(f,g,d,a);},10);return f;}if(h.toUpperCase()=="GET"){if(this._sFormData.length!==0){d+=((d.indexOf("?")==-1)?"?":"&")+this._sFormData;}}else{if(h.toUpperCase()=="POST"){a=a?this._sFormData+"&"+a:this._sFormData;}}}if(h.toUpperCase()=="GET"&&(g&&g.cache===false)){d+=((d.indexOf("?")==-1)?"?":"&")+"rnd="+new Date().valueOf().toString();}if(this._use_default_xhr_header){if(!this._default_headers["X-Requested-With"]){this.initHeader("X-Requested-With",this._default_xhr_header,true);}}if((h.toUpperCase()==="POST"&&this._use_default_post_header)&&this._isFormSubmit===false){this.initHeader("Content-Type",this._default_post_header);}if(f.xdr){this.xdr(f,h,d,g,a);return f;}f.conn.open(h,d,true);if(this._has_default_headers||this._has_http_headers){this.setHeader(f);}this.handleReadyState(f,g);f.conn.send(a||"");if(this._isFormSubmit===true){this.resetFormState();}this.startEvent.fire(f,b);if(f.startEvent){f.startEvent.fire(f,b);}return f;}},initCustomEvents:function(a,c){var b;for(b in c.customevents){if(this._customEvents[b][0]){a[this._customEvents[b][0]]=new YAHOO.util.CustomEvent(this._customEvents[b][1],(c.scope)?c.scope:null);a[this._customEvents[b][0]].subscribe(c.customevents[b]);}}},handleReadyState:function(c,d){var b=this,a=(d&&d.argument)?d.argument:null;if(d&&d.timeout){this._timeOut[c.tId]=window.setTimeout(function(){b.abort(c,d,true);},d.timeout);}this._poll[c.tId]=window.setInterval(function(){if(c.conn&&c.conn.readyState===4){window.clearInterval(b._poll[c.tId]);delete b._poll[c.tId];if(d&&d.timeout){window.clearTimeout(b._timeOut[c.tId]);delete b._timeOut[c.tId];}b.completeEvent.fire(c,a);if(c.completeEvent){c.completeEvent.fire(c,a);}b.handleTransactionResponse(c,d);}},this._polling_interval);},handleTransactionResponse:function(b,j,d){var f,a,h=(j&&j.argument)?j.argument:null,c=(b.r&&b.r.statusText==="xdr:success")?true:false,i=(b.r&&b.r.statusText==="xdr:failure")?true:false,k=d;try{if((b.conn.status!==undefined&&b.conn.status!==0)||c){f=b.conn.status;}else{if(i&&!k){f=0;}else{f=13030;}}}catch(g){f=13030;}if((f>=200&&f<300)||f===1223||c){a=b.xdr?b.r:this.createResponseObject(b,h);if(j&&j.success){if(!j.scope){j.success(a);}else{j.success.apply(j.scope,[a]);}}this.successEvent.fire(a);if(b.successEvent){b.successEvent.fire(a);}}else{switch(f){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:a=this.createExceptionObject(b.tId,h,(d?d:false));if(j&&j.failure){if(!j.scope){j.failure(a);}else{j.failure.apply(j.scope,[a]);}}break;default:a=(b.xdr)?b.response:this.createResponseObject(b,h);if(j&&j.failure){if(!j.scope){j.failure(a);}else{j.failure.apply(j.scope,[a]);}}}this.failureEvent.fire(a);if(b.failureEvent){b.failureEvent.fire(a);}}this.releaseObject(b);a=null;},createResponseObject:function(a,h){var d={},k={},f,c,g,b;try{c=a.conn.getAllResponseHeaders();g=c.split("\n");for(f=0;f<g.length;f++){b=g[f].indexOf(":");if(b!=-1){k[g[f].substring(0,b)]=YAHOO.lang.trim(g[f].substring(b+2));}}}catch(j){}d.tId=a.tId;d.status=(a.conn.status==1223)?204:a.conn.status;d.statusText=(a.conn.status==1223)?"No Content":a.conn.statusText;d.getResponseHeader=k;d.getAllResponseHeaders=c;d.responseText=a.conn.responseText;d.responseXML=a.conn.responseXML;if(h){d.argument=h;}return d;},createExceptionObject:function(h,d,a){var f=0,g="communication failure",c=-1,b="transaction aborted",e={};e.tId=h;if(a){e.status=c;e.statusText=b;}else{e.status=f;e.statusText=g;}if(d){e.argument=d;}return e;},initHeader:function(a,d,c){var b=(c)?this._default_headers:this._http_headers;b[a]=d;if(c){this._has_default_headers=true;}else{this._has_http_headers=true;}},setHeader:function(a){var b;if(this._has_default_headers){for(b in this._default_headers){if(YAHOO.lang.hasOwnProperty(this._default_headers,b)){a.conn.setRequestHeader(b,this._default_headers[b]);
+}}}if(this._has_http_headers){for(b in this._http_headers){if(YAHOO.lang.hasOwnProperty(this._http_headers,b)){a.conn.setRequestHeader(b,this._http_headers[b]);}}this._http_headers={};this._has_http_headers=false;}},resetDefaultHeaders:function(){this._default_headers={};this._has_default_headers=false;},abort:function(e,g,a){var d,b=(g&&g.argument)?g.argument:null;e=e||{};if(e.conn){if(e.xhr){if(this.isCallInProgress(e)){e.conn.abort();window.clearInterval(this._poll[e.tId]);delete this._poll[e.tId];if(a){window.clearTimeout(this._timeOut[e.tId]);delete this._timeOut[e.tId];}d=true;}}else{if(e.xdr){e.conn.abort(e.tId);d=true;}}}else{if(e.upload){var c="yuiIO"+e.tId;var f=document.getElementById(c);if(f){YAHOO.util.Event.removeListener(f,"load");document.body.removeChild(f);if(a){window.clearTimeout(this._timeOut[e.tId]);delete this._timeOut[e.tId];}d=true;}}else{d=false;}}if(d===true){this.abortEvent.fire(e,b);if(e.abortEvent){e.abortEvent.fire(e,b);}this.handleTransactionResponse(e,g,true);}return d;},isCallInProgress:function(a){a=a||{};if(a.xhr&&a.conn){return a.conn.readyState!==4&&a.conn.readyState!==0;}else{if(a.xdr&&a.conn){return a.conn.isCallInProgress(a.tId);}else{if(a.upload===true){return document.getElementById("yuiIO"+a.tId)?true:false;}else{return false;}}}},releaseObject:function(a){if(a&&a.conn){a.conn=null;a=null;}}};(function(){var g=YAHOO.util.Connect,h={};function d(i){var j='<object id="YUIConnectionSwf" type="application/x-shockwave-flash" data="'+i+'" width="0" height="0">'+'<param name="movie" value="'+i+'">'+'<param name="allowScriptAccess" value="always">'+"</object>",k=document.createElement("div");document.body.appendChild(k);k.innerHTML=j;}function b(l,i,j,n,k){h[parseInt(l.tId)]={"o":l,"c":n};if(k){n.method=i;n.data=k;}l.conn.send(j,n,l.tId);}function e(i){d(i);g._transport=document.getElementById("YUIConnectionSwf");}function c(){g.xdrReadyEvent.fire();}function a(j,i){if(j){g.startEvent.fire(j,i.argument);if(j.startEvent){j.startEvent.fire(j,i.argument);}}}function f(j){var k=h[j.tId].o,i=h[j.tId].c;if(j.statusText==="xdr:start"){a(k,i);return;}j.responseText=decodeURI(j.responseText);k.r=j;if(i.argument){k.r.argument=i.argument;}this.handleTransactionResponse(k,i,j.statusText==="xdr:abort"?true:false);delete h[j.tId];}g.xdr=b;g.swf=d;g.transport=e;g.xdrReadyEvent=new YAHOO.util.CustomEvent("xdrReady");g.xdrReady=c;g.handleXdrResponse=f;})();(function(){var e=YAHOO.util.Connect,g=YAHOO.util.Event,a=document.documentMode?document.documentMode:false;e._isFileUpload=false;e._formNode=null;e._sFormData=null;e._submitElementValue=null;e.uploadEvent=new YAHOO.util.CustomEvent("upload");e._hasSubmitListener=function(){if(g){g.addListener(document,"click",function(k){var j=g.getTarget(k),i=j.nodeName.toLowerCase();if((i==="input"||i==="button")&&(j.type&&j.type.toLowerCase()=="submit")){e._submitElementValue=encodeURIComponent(j.name)+"="+encodeURIComponent(j.value);}});return true;}return false;}();function h(w,r,m){var v,l,u,s,z,t=false,p=[],y=0,o,q,n,x,k;this.resetFormState();if(typeof w=="string"){v=(document.getElementById(w)||document.forms[w]);}else{if(typeof w=="object"){v=w;}else{return;}}if(r){this.createFrame(m?m:null);this._isFormSubmit=true;this._isFileUpload=true;this._formNode=v;return;}for(o=0,q=v.elements.length;o<q;++o){l=v.elements[o];z=l.disabled;u=l.name;if(!z&&u){u=encodeURIComponent(u)+"=";s=encodeURIComponent(l.value);switch(l.type){case"select-one":if(l.selectedIndex>-1){k=l.options[l.selectedIndex];p[y++]=u+encodeURIComponent((k.attributes.value&&k.attributes.value.specified)?k.value:k.text);}break;case"select-multiple":if(l.selectedIndex>-1){for(n=l.selectedIndex,x=l.options.length;n<x;++n){k=l.options[n];if(k.selected){p[y++]=u+encodeURIComponent((k.attributes.value&&k.attributes.value.specified)?k.value:k.text);}}}break;case"radio":case"checkbox":if(l.checked){p[y++]=u+s;}break;case"file":case undefined:case"reset":case"button":break;case"submit":if(t===false){if(this._hasSubmitListener&&this._submitElementValue){p[y++]=this._submitElementValue;}t=true;}break;default:p[y++]=u+s;}}}this._isFormSubmit=true;this._sFormData=p.join("&");this.initHeader("Content-Type",this._default_form_header);return this._sFormData;}function d(){this._isFormSubmit=false;this._isFileUpload=false;this._formNode=null;this._sFormData="";}function c(i){var j="yuiIO"+this._transaction_id,l=(a===9)?true:false,k;if(YAHOO.env.ua.ie&&!l){k=document.createElement('<iframe id="'+j+'" name="'+j+'" />');if(typeof i=="boolean"){k.src="javascript:false";}}else{k=document.createElement("iframe");k.id=j;k.name=j;}k.style.position="absolute";k.style.top="-1000px";k.style.left="-1000px";document.body.appendChild(k);}function f(j){var m=[],k=j.split("&"),l,n;for(l=0;l<k.length;l++){n=k[l].indexOf("=");if(n!=-1){m[l]=document.createElement("input");m[l].type="hidden";m[l].name=decodeURIComponent(k[l].substring(0,n));m[l].value=decodeURIComponent(k[l].substring(n+1));this._formNode.appendChild(m[l]);}}return m;}function b(m,y,n,l){var t="yuiIO"+m.tId,u="multipart/form-data",w=document.getElementById(t),p=(a>=8)?true:false,z=this,v=(y&&y.argument)?y.argument:null,x,s,k,r,j,q;j={action:this._formNode.getAttribute("action"),method:this._formNode.getAttribute("method"),target:this._formNode.getAttribute("target")};this._formNode.setAttribute("action",n);this._formNode.setAttribute("method","POST");this._formNode.setAttribute("target",t);if(YAHOO.env.ua.ie&&!p){this._formNode.setAttribute("encoding",u);}else{this._formNode.setAttribute("enctype",u);}if(l){x=this.appendPostData(l);}this._formNode.submit();this.startEvent.fire(m,v);if(m.startEvent){m.startEvent.fire(m,v);}if(y&&y.timeout){this._timeOut[m.tId]=window.setTimeout(function(){z.abort(m,y,true);},y.timeout);}if(x&&x.length>0){for(s=0;s<x.length;s++){this._formNode.removeChild(x[s]);}}for(k in j){if(YAHOO.lang.hasOwnProperty(j,k)){if(j[k]){this._formNode.setAttribute(k,j[k]);}else{this._formNode.removeAttribute(k);}}}this.resetFormState();
+q=function(){var i,A,B;if(y&&y.timeout){window.clearTimeout(z._timeOut[m.tId]);delete z._timeOut[m.tId];}z.completeEvent.fire(m,v);if(m.completeEvent){m.completeEvent.fire(m,v);}r={tId:m.tId,argument:v};try{i=w.contentWindow.document.getElementsByTagName("body")[0];A=w.contentWindow.document.getElementsByTagName("pre")[0];if(i){if(A){B=A.textContent?A.textContent:A.innerText;}else{B=i.textContent?i.textContent:i.innerText;}}r.responseText=B;r.responseXML=w.contentWindow.document.XMLDocument?w.contentWindow.document.XMLDocument:w.contentWindow.document;}catch(o){}if(y&&y.upload){if(!y.scope){y.upload(r);}else{y.upload.apply(y.scope,[r]);}}z.uploadEvent.fire(r);if(m.uploadEvent){m.uploadEvent.fire(r);}g.removeListener(w,"load",q);setTimeout(function(){document.body.removeChild(w);z.releaseObject(m);},100);};g.addListener(w,"load",q);}e.setForm=h;e.resetFormState=d;e.createFrame=c;e.appendPostData=f;e.uploadFile=b;})();YAHOO.register("connection",YAHOO.util.Connect,{version:"2.9.0",build:"2800"});
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/container-inline.module.css
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/container-inline.module.css	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/container-inline.module.css	(revision 38779)
@@ -0,0 +1,16 @@
+/**
+ * @file
+ * Inline items.
+ */
+
+.container-inline div,
+.container-inline label {
+  display: inline-block;
+}
+/* Details contents always need to be rendered as block. */
+.container-inline .details-wrapper {
+  display: block;
+}
+.container-inline .hidden {
+  display: none;
+}
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/cookieconsent-gsinit.js.download
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/cookieconsent-gsinit.js.download	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/cookieconsent-gsinit.js.download	(revision 38779)
@@ -0,0 +1,122 @@
+// @ts-nocheck
+
+/**
+ * Initialisation for the cookieconsent.js script, originally based on version 2.7.2.
+ * See https://github.com/orestbida/cookieconsent for customisation options.
+ * The translation strings that are referenced in this document via 'gs.text.ccm.XXX'
+ * can be found in the 'interface_default<_LANG>.properties' files, under 'WEB-INF/classes'.
+ */
+
+//alert("same_site = Strict");
+
+// obtain plugin
+var cc = initCookieConsent();
+
+// run plugin with your configuration
+cc.run({
+    current_lang: 'en',
+    autoclear_cookies: false,                  // default: false
+    page_scripts: true,                        // default: false
+    cookie_path: gs.xsltParams.cookie_path,  // default: "/"
+    
+    gui_options: {
+        consent_modal: {
+            layout: 'cloud',                   // box/cloud/bar
+            position: 'bottom left',           // bottom/middle/top + left/right/center
+            transition: 'slide',               // zoom/slide
+            swap_buttons: false                // enable to invert buttons
+        },
+        settings_modal: {
+            layout: 'box',                     // box/bar
+            // position: 'left',               // left/right - only valid with 'bar' layout
+            transition: 'slide'                // zoom/slide
+        }
+    },
+
+    // mode: 'opt-in'                          // default: 'opt-in'; value: 'opt-in' or 'opt-out'
+    // delay: 0,                               // default: 0
+    // auto_language: null                     // default: null; could also be 'browser' or 'document'
+    // autorun: true,                          // default: true
+    // force_consent: false,                   // default: false
+    // hide_from_bots: false,                  // default: false
+    // remove_cookie_tables: false             // default: false
+    // cookie_name: 'cc_cookie',               // default: 'cc_cookie'
+    // cookie_expiration: 182,                 // default: 182 (days)
+    // cookie_necessary_only_expiration: 182   // default: disabled
+    // cookie_domain: location.hostname,       // default: current domain
+    // // cookie_same_site: 'Lax',                // default: 'Lax'
+    // cookie_same_site: 'Strict',                // consider making 'Strict' if an https site ?!?! (GS3)
+    // use_rfc_cookie: false,                  // default: false
+    // revision: 0,                            // default: 0
+
+    onFirstAction: function(user_preferences, cookie){
+        // callback triggered only once
+    },
+
+    onAccept: function (cookie) {
+        // ...
+    },
+
+    onChange: function (cookie, changed_preferences) {
+        // ...
+    },
+
+    languages: {
+        'en': {
+            consent_modal: {
+                title: gs.text.ccm.Popup_Title,
+                description: gs.text.ccm.Popup_Description + ' <button type="button" data-cc="c-settings" class="cc-link">'
+                    + gs.text.ccm.Popup_OpenAdvancedManager + '</button>',
+                primary_btn: {
+                    text: gs.text.ccm.Popup_AcceptAllCookies,
+                    role: 'accept_necessary'              // 'accept_selected' or 'accept_all'
+                },
+                // secondary_btn: {
+                //     text: gs.text.ccm.Popup_AcceptNecessaryCookies,
+                //     role: 'accept_necessary'        // 'settings' or 'accept_necessary'
+                // }
+            },
+            settings_modal: {
+                title: gs.text.ccm.Manager_Title,
+                save_settings_btn: gs.text.ccm.Manager_SaveSettingsButton,
+                accept_all_btn: gs.text.ccm.Manager_AcceptAllButton,
+                // reject_all_btn: ccm.Manager_AcceptNecessaryButton,
+                close_btn_label: gs.text.ccm.Manager_CloseButton,
+                cookie_table_headers: [
+                    { name: gs.text.ccm.Manager.CookieTableHeaders_Name },
+                    { provider: gs.text.ccm.Manager.CookieTableHeaders_Provider },
+                    { expiration: gs.text.ccm.Manager.CookieTableHeaders_Expiration },
+                    { description: gs.text.ccm.Manager.CookieTableHeaders_Description }
+                ],
+                blocks: [
+                    {
+                        description: gs.text.ccm.Manager_Description
+                    },
+                    {
+                        title: gs.text.ccm.Manager.RequiredCookies_Title,
+                        description: gs.text.ccm.Manager.RequiredCookies_Description,
+                        toggle: {
+                            value: 'required', // The cookie collection to toggle
+                            enabled: true,
+                            readonly: true
+                        },
+                        cookie_table: [
+                            {
+                                name: 'JSESSIONID',
+                                provider: window.location.hostname,
+                                expiration: gs.text.ccm.Manager.CookieTable_EndOfSessionExpiration,
+                                description: gs.text.ccm.Manager.RequiredCookies.JSESSIONID_Description,
+                            },
+                            {
+                                name: 'supportsXSLT',
+                                provider: window.location.hostname,
+                                expiration: gs.text.ccm.Manager.CookieTable_EndOfSessionExpiration,
+                                description: gs.text.ccm.Manager.RequiredCookies.supportsXSLT_Description
+                            }
+                        ]
+                    }
+                ]
+            }
+        }
+    }
+});
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/cookieconsent.css
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/cookieconsent.css	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/cookieconsent.css	(revision 38779)
@@ -0,0 +1,1351 @@
+/** Light color-scheme **/
+:root{
+    --cc-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
+    --cc-font-size: 16px;
+    --cc-bg: #fff;
+    --cc-z-index: 2147483647;
+    --cc-text: #2d4156;
+    --cc-border-radius: .45rem;
+    --cc-btn-primary-bg: #459e00;
+    --cc-btn-primary-text: var(--cc-bg);
+    --cc-btn-primary-hover-bg: #225500;
+    --cc-btn-primary-hover-text: var(--cc-btn-primary-text);
+    --cc-btn-secondary-bg: #eaeff2;
+    --cc-btn-secondary-text: var(--cc-text);
+    --cc-btn-secondary-hover-bg: #d8e0e6;
+    --cc-btn-secondary-hover-text: var(--cc-btn-secondary-text);
+    --cc-btn-border-radius: 0.375rem;
+    --cc-toggle-bg-off: #919ea6;
+    --cc-toggle-bg-on: var(--cc-btn-primary-bg);
+    --cc-toggle-bg-readonly: #d5dee2;
+    --cc-toggle-knob-bg: #fff;
+    --cc-toggle-knob-icon-color: #ecf2fa;
+    --cc-block-text: var(--cc-text);
+    --cc-cookie-category-block-bg: #f0f4f7;
+    --cc-cookie-category-block-bg-hover: #e9eff4;
+    --cc-section-border: #f1f3f5;
+    --cc-cookie-table-border: #e9edf2;
+    --cc-overlay-bg: rgb(4, 6, 8);
+    --cc-overlay-opacity: .85;
+    --cc-consent-modal-box-shadow: 0 0.625rem 1.875rem rgba(2, 2, 3, 0.28);
+    --cc-webkit-scrollbar-bg: #cfd5db;
+    --cc-webkit-scrollbar-bg-hover: #9199a0;
+}
+
+/** Dark color-scheme **/
+.c_darkmode{
+    --cc-bg: #181b1d;
+    --cc-text: #d8e5ea;
+    --cc-btn-primary-bg: #a6c4dd;
+    --cc-btn-primary-text: #000;
+    --cc-btn-primary-hover-bg: #c2dff7;
+    --cc-btn-primary-hover-text: var(--cc-btn-primary-text);
+    --cc-btn-secondary-bg: #33383c;
+    --cc-btn-secondary-text: var(--cc-text);
+    --cc-btn-secondary-hover-bg: #3e454a;
+    --cc-btn-secondary-hover-text: var(--cc-btn-secondary-text);
+    --cc-toggle-bg-off: #667481;
+    --cc-toggle-bg-on: var(--cc-btn-primary-bg);
+    --cc-toggle-bg-readonly: #454c54;
+    --cc-toggle-knob-bg: var(--cc-cookie-category-block-bg);
+    --cc-toggle-knob-icon-color: var(--cc-bg);
+    --cc-block-text: #b3bfc5;
+    --cc-cookie-category-block-bg: #23272a;
+    --cc-cookie-category-block-bg-hover: #2b3035;
+    --cc-section-border: #292d31;
+    --cc-cookie-table-border: #2b3035;
+    --cc-webkit-scrollbar-bg: #667481;
+    --cc-webkit-scrollbar-bg-hover: #9199a0;
+}
+
+#cc--main {
+    z-index: var(--cc-z-index);
+}
+
+.cc_div *,
+.cc_div *:hover,
+.cc_div :before,
+.cc_div :after{
+    -webkit-box-sizing: border-box;
+    box-sizing: border-box;
+    float: none;
+    font-style: inherit;
+    font-variant: normal;
+    font-weight: inherit;
+    font-family: inherit;
+	line-height: 1.2;
+    font-size: 1em;
+    transition: none;
+    animation: none;
+    margin: 0;
+    padding: 0;
+    text-transform: none;
+    letter-spacing: unset;
+    color: inherit;
+    background: none;
+    border: none;
+    border-radius: unset;
+    box-shadow: none;
+    text-decoration: none;
+    text-align: left;
+    visibility: unset;
+    height: auto;
+    vertical-align: baseline;
+}
+
+.cc_div {
+    font-size: var(--cc-font-size);
+    font-weight: 400;
+    font-family: var(--cc-font-family);
+    -webkit-font-smoothing: antialiased;
+    -moz-osx-font-smoothing: grayscale;
+    text-rendering: optimizeLegibility;
+    color: var(--cc-text);
+}
+
+.cc_div .c-bn,
+.cc_div .b-tl,
+#s-ttl,
+#c-ttl,
+#s-bl td:before{
+    font-weight: 600;
+}
+
+#cm,
+#s-inr,
+.cc_div .c-bl,
+.cc_div .b-tl,
+#s-bl .act .b-acc{
+    border-radius: var(--cc-border-radius);
+}
+
+#s-bl .act .b-acc{
+    border-top-left-radius: 0;
+    border-top-right-radius: 0;
+}
+
+.cc_div input,
+.cc_div button,
+.cc_div a{
+    -webkit-appearance: none;
+    -moz-appearance: none;
+    appearance: none;
+    overflow: hidden;
+}
+
+.cc_div a{
+    border-bottom: 1px solid;
+}
+
+.cc_div a:hover{
+    text-decoration: none;
+    border-color: transparent;
+}
+
+/* Make elements "animatable" */
+.c--anim #cm,
+.c--anim #s-cnt,
+.c--anim #s-inr,
+#cs-ov,
+#cm-ov{
+    transition: visibility .25s linear, opacity .25s ease, transform .25s ease!important;
+}
+
+.c--anim .c-bn{
+    transition: background-color .25s ease!important;
+}
+
+/* start transitions */
+.c--anim #cm.bar.slide,
+.c--anim .bar.slide #s-inr{
+    transition: visibility .4s ease, opacity .4s ease, transform .4s ease!important;
+}
+
+.c--anim #cm.bar.slide + #cm-ov,
+.c--anim .bar.slide + #cs-ov{
+    transition: visibility .4s ease, opacity .4s ease, transform .4s ease!important;
+}
+
+#cm.bar.slide,
+.cc_div .bar.slide #s-inr{
+    transform: translateX(100%);
+    opacity: 1;
+}
+
+#cm.bar.top.slide,
+.cc_div .bar.left.slide #s-inr{
+    transform: translateX(-100%);
+    opacity: 1;
+}
+
+#cm.slide,
+.cc_div .slide #s-inr{
+    transform: translateY(1.6em);
+}
+
+#cm.top.slide{
+    transform: translateY(-1.6em);
+}
+
+#cm.bar.slide{
+    transform: translateY(100%);
+}
+
+#cm.bar.top.slide{
+    transform: translateY(-100%);
+}
+/* end transitions */
+
+/* Show modals */
+
+.show--consent .c--anim #cm,
+.show--consent .c--anim #cm.bar,
+.show--settings .c--anim #s-inr,
+.show--settings .c--anim .bar.slide #s-inr{
+    opacity: 1;
+    transform: scale(1);
+    visibility: visible!important;
+}
+
+.show--consent .c--anim #cm.box.middle,
+.show--consent .c--anim #cm.cloud.middle{
+    transform: scale(1) translateY(-50%);
+}
+
+.show--settings .c--anim #s-cnt{
+    visibility: visible!important;
+}
+
+/* Show overlays */
+.force--consent.show--consent .c--anim #cm-ov,
+.show--settings .c--anim #cs-ov{
+    visibility: visible!important;
+    opacity: var(--cc-overlay-opacity)!important;
+}
+
+#cm{
+    font-family: inherit;
+    padding: 1em 1.4em 1.3em 1.4em;
+    position: fixed;
+    z-index: 1;
+    background: var(--cc-bg);
+    max-width: 24.2em;
+    width: 100%;
+    bottom: 1.250em;
+    right: 1.250em;
+    box-shadow: 0 0.625em 1.875em #000000;
+    box-shadow: var(--cc-consent-modal-box-shadow);
+    opacity: 0;
+    visibility: hidden;
+    transform: scale(.95);
+    line-height: initial;
+}
+
+/** fix https://github.com/orestbida/cookieconsent/issues/94 **/
+#cc_div #cm {
+    display: block!important;
+}
+
+#c-ttl{
+    margin-bottom: .7em;
+    font-size: 1.05em;
+}
+
+.cloud #c-ttl{
+    margin-top: -.15em;
+}
+
+#c-txt{
+    font-size: 0.9em;
+    line-height: 1.5em;
+}
+
+.cc_div #c-bns{
+    display: flex;
+    justify-content: space-between;
+    margin-top: 1.4em;
+}
+
+.cc_div .c-bn{
+    color: var(--cc-btn-secondary-text);
+    background: var(--cc-btn-secondary-bg);
+    padding: 1em 1.7em;
+    display: inline-block;
+    cursor: pointer;
+    font-size: 0.82em;
+    -moz-user-select: none;
+    -khtml-user-select: none;
+    -webkit-user-select: none;
+    -o-user-select: none;
+    user-select: none;
+    text-align: center;
+    border-radius: var(--cc-btn-border-radius);
+    flex: 1;
+}
+
+#c-bns button + button,
+#s-cnt button + button,
+#s-c-bn{
+    float: right;
+    margin-left: .5rem;
+}
+
+#s-cnt #s-rall-bn{
+    float: none;
+}
+
+#cm .c_link:hover,
+#cm .c_link:active,
+#s-cnt button + button:hover,
+#s-cnt button + button:active,
+#s-c-bn:active,
+#s-c-bn:hover{
+    background: var(--cc-btn-secondary-hover-bg);
+    color: var(--cc-btn-secondary-hover-text);
+}
+
+/**
+CookieConsent settings modal
+**/
+#s-cnt{
+    position: fixed;
+    top: 0;
+    left: 0;
+    width: 100%;
+    z-index: 101;
+    display: table;
+    height: 100%;
+    visibility: hidden;
+}
+
+#s-bl{
+    outline: none;
+    scrollbar-width: thin;
+}
+
+#s-bl .title{
+    margin-top: 1.4em;
+}
+
+#s-bl .title:first-child{
+    margin-top: 0;
+}
+
+#s-bl .b-bn{
+    margin-top: 0;
+}
+
+#s-bl .b-acc .p{
+    margin-top: 0;
+    padding: 1em;
+}
+
+#s-cnt .b-bn .b-tl{
+    display: block;
+    font-family: inherit;
+    font-size: .95em;
+    width: 100%;
+    position: relative;
+    padding: 1.3em 6.4em 1.3em 2.7em;
+    background: none;
+    transition: background-color .25s ease;
+}
+
+#s-cnt .b-bn .b-tl.exp{
+    cursor: pointer;
+}
+
+#s-cnt .act .b-bn .b-tl{
+    border-bottom-right-radius: 0;
+    border-bottom-left-radius: 0;
+}
+
+#s-cnt .b-bn .b-tl:active,
+#s-cnt .b-bn .b-tl:hover{
+    background: var(--cc-cookie-category-block-bg-hover);
+}
+
+#s-bl .b-bn{
+    position: relative;
+}
+
+#s-bl .c-bl{
+    padding: 1em;
+    margin-bottom: .4rem;
+    border: 1px solid var(--cc-section-border);
+    transition: background-color .25s ease;
+}
+
+#s-bl .c-bl:hover{
+    background: var(--cc-cookie-category-block-bg);
+}
+
+#s-bl .c-bl:last-child{
+    margin-bottom: .5em;
+}
+
+#s-bl .c-bl:first-child{
+    transition: none;
+    padding: 0;
+    margin-top: 0;
+    border:none;
+    margin-bottom: 2em;
+}
+
+#s-bl .c-bl:not(.b-ex):first-child:hover{
+    background: transparent;
+    background: unset;
+}
+
+#s-bl .c-bl.b-ex{
+    padding: 0;
+    border: none;
+    background: var(--cc-cookie-category-block-bg);
+    transition: none;
+}
+
+#s-bl .c-bl.b-ex + .c-bl{
+    margin-top: 2em;
+}
+
+#s-bl .c-bl.b-ex + .c-bl.b-ex{
+    margin-top: 0;
+}
+
+#s-bl .c-bl.b-ex:first-child{
+    margin-bottom: 1em;
+}
+
+#s-bl .c-bl.b-ex:first-child{
+    margin-bottom: .5em;
+}
+
+#s-bl .b-acc{
+    max-height: 0;
+    overflow: hidden;
+    padding-top: 0;
+    margin-bottom: 0;
+    display: none;
+}
+
+#s-bl .act .b-acc{
+    max-height: 100%;
+    display: block;
+    overflow: hidden;
+}
+
+#s-cnt .p{
+    font-size: 0.9em;
+    line-height: 1.5em;
+    margin-top: .85em;
+    color: var(--cc-block-text);
+}
+
+.cc_div .b-tg .c-tgl:disabled{
+    cursor: not-allowed;
+}
+
+#c-vln{
+    display: table-cell;
+    vertical-align: middle;
+    position: relative;
+}
+
+#cs{
+    padding: 0 1.7em;
+    width: 100%;
+    position: fixed;
+    left: 0;
+    right: 0;
+    top: 0;
+    bottom: 0;
+    height: 100%;
+}
+
+#s-inr{
+    height: 100%;
+    position: relative;
+    max-width: 45em;
+    margin: 0 auto;
+    transform: scale(.96);
+    opacity: 0;
+    padding-top: 4.75em;
+    padding-bottom: 4.75em;
+    position: relative;
+    height: 100%;
+    overflow: hidden;
+    visibility: hidden;
+    box-shadow: rgba(3, 6, 9, .26) 0px 13px 27px -5px;
+}
+
+#s-inr,
+#s-hdr,
+#s-bns{
+    background: var(--cc-bg);
+}
+
+#s-bl{
+	overflow-y: auto;
+    overflow-y: overlay;
+    overflow-x: hidden;
+    height: 100%;
+    padding: 1.3em 1.6em;
+    display: block;
+    width: 100%;
+}
+
+#s-bns{
+    position: absolute;
+    bottom: 0;
+    left: 0;
+    right: 0;
+    padding: 1em 1.8em;
+    border-top: 1px solid var(--cc-section-border);
+    height: 4.75em;
+}
+
+.cc_div .cc-link{
+    color: var(--cc-btn-primary-bg);
+    border-bottom: 1px solid var(--cc-btn-primary-bg);
+    display: inline;
+    padding-bottom: 0;
+    text-decoration: none;
+    cursor: pointer;
+    font-weight: 600;
+}
+
+.cc_div .cc-link:hover,
+.cc_div .cc-link:active{
+    border-color: transparent;
+}
+
+#c-bns button:first-child,
+#s-bns button:first-child{
+    color: var(--cc-btn-primary-text);
+    background: var(--cc-btn-primary-bg);
+}
+
+#c-bns.swap button:first-child{
+    color: var(--cc-btn-secondary-text);
+    background: var(--cc-btn-secondary-bg);
+}
+
+#c-bns.swap button:last-child{
+    color: var(--cc-btn-primary-text);
+    background: var(--cc-btn-primary-bg);
+}
+
+.cc_div .b-tg .c-tgl:checked ~ .c-tg{
+    background: var(--cc-toggle-bg-on);
+}
+
+#c-bns button:first-child:active,
+#c-bns button:first-child:hover,
+#s-bns button:first-child:active,
+#s-bns button:first-child:hover,
+#c-bns.swap button:last-child:active,
+#c-bns.swap button:last-child:hover{
+    background: var(--cc-btn-primary-hover-bg);
+    color: var(--cc-btn-primary-hover-text);
+}
+
+#c-bns.swap button:first-child:active,
+#c-bns.swap button:first-child:hover{
+    background: var(--cc-btn-secondary-hover-bg);
+    color: var(--cc-btn-secondary-hover-text);
+}
+
+#s-hdr{
+    position: absolute;
+    top: 0;
+    width: 100%;
+    display: table;
+    padding: 0 1.8em;
+    height: 4.75em;
+    vertical-align: middle;
+    z-index: 2;
+    border-bottom: 1px solid var(--cc-section-border);
+}
+
+#s-ttl{
+	display: table-cell;
+    vertical-align: middle;
+    font-size: 1em;
+}
+
+#s-c-bn{
+    padding: 0;
+    width: 1.7em;
+    height: 1.7em;
+    font-size: 1.45em;
+    margin: 0;
+    font-weight: initial;
+    position: relative;
+    overflow: hidden;
+}
+
+#s-c-bnc{
+    display: table-cell;
+    vertical-align: middle;
+}
+
+.cc_div span.t-lb {
+    position: absolute;
+    top: 0;
+    z-index: -1;
+    opacity: 0;
+    pointer-events: none;
+    overflow: hidden;
+}
+
+#c_policy__text{
+    height: 31.250em;
+    overflow-y: auto;
+    margin-top: 1.250em;
+}
+
+#c-s-in{
+    position: relative;
+    transform: translateY(-50%);
+    top: 50%;
+    height: 100%;
+    height: calc(100% - 2.5em);
+    max-height: 37.5em;
+}
+
+@media screen and (min-width: 688px) {
+    /** works only on webkit-based browsers **/
+    #s-bl::-webkit-scrollbar{
+        width: .8em;
+        height: 100%;
+        background: transparent;
+        border-radius: 0 0.250em 0.250em 0;
+    }
+
+    #s-bl::-webkit-scrollbar-thumb{
+        border: 0.25em solid var(--cc-bg);
+        background: var(--cc-webkit-scrollbar-bg);
+        border-radius: 100em;
+    }
+
+    #s-bl::-webkit-scrollbar-thumb:hover{
+        background: var(--cc-webkit-scrollbar-bg-hover);
+    }
+
+    #s-bl::-webkit-scrollbar-button {
+        width: 10px;
+        height: 5px;
+    }
+}
+
+/** custom checkbox **/
+/* The container */
+.cc_div .b-tg {
+    position: absolute;
+    right: 0;
+    top: 0;
+    bottom: 0;
+    display: inline-block;
+    margin: auto;
+    right: 1.2em;
+    cursor: pointer;
+    -webkit-user-select: none;
+    -moz-user-select: none;
+    -ms-user-select: none;
+    user-select: none;
+    vertical-align: middle;
+}
+
+/* Hide the browser's default checkbox */
+.cc_div .b-tg .c-tgl {
+    position: absolute;
+    cursor: pointer;
+    display: block;
+    top: 0;
+    left: 0;
+    margin: 0;
+    border: 0;
+}
+
+/* Create a custom checkbox */
+.cc_div .b-tg .c-tg {
+    position: absolute;
+    background: var(--cc-toggle-bg-off);
+    transition: background-color .25s ease, box-shadow .25s ease;
+    pointer-events: none;
+}
+
+.cc_div span.t-lb,
+.cc_div .b-tg,
+.cc_div .b-tg .c-tg,
+.cc_div .b-tg .c-tgl{
+    width: 3.4em;
+    height: 1.5em;
+    border-radius: 4em;
+}
+
+.cc_div .b-tg .c-tg.c-ro{
+    cursor: not-allowed;
+}
+
+.cc_div .b-tg .c-tgl ~ .c-tg.c-ro{
+    background: var(--cc-toggle-bg-readonly);
+}
+
+.cc_div .b-tg .c-tgl ~ .c-tg.c-ro:after{
+    box-shadow: none;
+}
+
+/* Style the checkmark/indicator */
+.cc_div .b-tg .c-tg:after {
+    content: "";
+    position: relative;
+    display: block;
+    left: 0.125em;
+    top: 0.125em;
+    width: 1.25em;
+    height: 1.25em;
+    border: none;
+    box-sizing: content-box;
+    background: var(--cc-toggle-knob-bg);
+    box-shadow: 0 1px 2px rgba(24, 32, 35, .36);
+    transition: transform .25s ease;
+    border-radius: 100%;
+}
+
+/* Show the checkmark when checked */
+.cc_div .b-tg .c-tgl:checked ~ .c-tg:after{
+    transform: translateX(1.9em);
+}
+
+#s-bl table,
+#s-bl th,
+#s-bl td{
+    border: none;
+}
+
+#s-bl tbody tr{
+    transition: background-color .25s ease;
+}
+
+#s-bl tbody tr:hover{
+    background: var(--cc-cookie-category-block-bg-hover);
+}
+
+#s-bl table {
+    text-align: left;
+    border-collapse: collapse;
+    width: 100%;
+    padding: 0;
+    margin: 0;
+    overflow: hidden;
+}
+
+#s-bl caption {
+    padding: 0.5rem 1rem;
+    font-size: .9em;
+    border-bottom: 1px solid var(--cc-cookie-table-border);
+    font-weight: 600;
+}
+
+#s-bl td,
+#s-bl th {
+    padding: 0.8em 0.625em;
+    text-align: left;
+    vertical-align: top;
+    font-size: .8em;
+    padding-left: 1.2em;
+}
+
+#s-bl th {
+	font-family: inherit;
+    padding: 1em 1rem;
+    font-weight: 600;
+}
+
+#s-bl thead tr:first-child{
+    border-bottom: 1px solid var(--cc-cookie-table-border);
+}
+
+.force--consent #s-cnt,
+.force--consent #cs{
+    width: 100vw;
+}
+
+#cm-ov,
+#cs-ov{
+    position: fixed;
+    left: 0;
+    right: 0;
+    top: 0;
+    bottom: 0;
+    visibility: hidden;
+    opacity: 0;
+    background: #070707;
+    background: var(--cc-overlay-bg);
+    display: none;
+    transition: none;
+}
+
+.show--settings #cs-ov,
+.c--anim #cs-ov,
+.force--consent .c--anim #cm-ov,
+.force--consent.show--consent #cm-ov{
+    display: block;
+}
+
+#cs-ov{
+    z-index: 2;
+}
+
+.force--consent .cc_div{
+    position: fixed;
+    top: 0;
+    left: 0;
+    bottom: 0;
+    width: 100%;
+    width: 100vw;
+    visibility: hidden;
+    transition: visibility .25s linear;
+}
+
+.force--consent.show--consent .c--anim .cc_div,
+.force--consent.show--settings .c--anim .cc_div{
+    visibility: visible;
+}
+
+.force--consent #cm{
+    position: absolute;
+}
+
+.force--consent #cm.bar{
+    width: 100vw;
+    max-width: 100vw;
+}
+
+html.force--consent.show--consent{
+    overflow-y: hidden!important;
+}
+
+html.force--consent.show--consent,
+html.force--consent.show--consent body{
+    height: auto!important;
+    overflow-x: hidden!important;
+}
+/** END BLOCK PAGE SCROLL */
+
+/** BEGIN ICONS **/
+.cc_div .b-bn .exp::before,
+.cc_div .act .b-bn .exp::before{
+    border: solid var(--cc-btn-secondary-text);
+    border-width: 0 2px 2px 0;
+    padding: .2em;
+    display: inline-block;
+    position: absolute;
+    content: '';
+    margin-right: 15px;
+    position: absolute;
+    transform: translateY(-50%) rotate(45deg);
+    left: 1.2em;
+    top: 50%;
+}
+
+.cc_div .act .b-bn .b-tl::before{
+    transform: translateY(-20%) rotate(225deg);
+}
+
+.cc_div .on-i::before{
+    border: solid var(--cc-toggle-knob-icon-color);
+    border-width: 0 2px 2px 0;
+    padding: .1em;
+    display: inline-block;
+    padding-bottom: .45em;
+    content: '';
+    margin: 0 auto;
+    transform: rotate(45deg);
+    top: .37em;
+    left: .75em;
+    position: absolute;
+}
+
+#s-c-bn::before,
+#s-c-bn::after{
+    content: '';
+    position: absolute;
+    left: .82em;
+    top: .58em;
+    height: .6em;
+    width: 1.5px;
+    background: var(--cc-btn-secondary-text);
+    transform: rotate(45deg);
+    border-radius: 1em;
+    margin: 0 auto;
+}
+
+#s-c-bn::after{
+    transform: rotate(-45deg);
+}
+
+.cc_div .off-i,
+.cc_div .on-i{
+    height: 100%;
+    width: 50%;
+    position: absolute;
+    right: 0;
+    display: block;
+    text-align: center;
+    transition: opacity .15s ease;
+}
+
+.cc_div .on-i{
+    left: 0;
+    opacity: 0;
+}
+
+.cc_div .off-i::before,
+.cc_div .off-i::after{
+    right: .8em;
+    top: .42em;
+    content: ' ';
+    height: .7em;
+    width: .09375em;
+    display: block;
+    background: var(--cc-toggle-knob-icon-color);
+    margin: 0 auto;
+    position: absolute;
+    transform-origin: center;
+}
+
+.cc_div .off-i::before {
+    transform: rotate(45deg);
+}
+.cc_div .off-i::after {
+    transform: rotate(-45deg);
+}
+
+.cc_div .b-tg .c-tgl:checked ~ .c-tg .on-i{
+    opacity: 1;
+}
+.cc_div .b-tg .c-tgl:checked ~ .c-tg .off-i{
+    opacity: 0;
+}
+/** END ICONS **/
+
+#cm.box.middle,
+#cm.cloud.middle{
+    top: 50%;
+    transform: translateY(-37%);
+    bottom: auto;
+}
+
+#cm.box.middle.zoom,
+#cm.cloud.middle.zoom{
+    transform: scale(.95) translateY(-50%);
+}
+
+#cm.box.center{
+    left: 1em;
+    right: 1em;
+    margin: 0 auto;
+}
+
+/* Start cloud layout */
+#cm.cloud {
+    max-width: 50em;
+    margin: 0 auto;
+    text-align: center;
+    left: 1em;
+    right: 1em;
+    overflow: hidden;
+    padding: 1.2em 1.7em;
+    width: unset;
+}
+
+.cc_div .cloud #c-inr{
+    display: table;
+    width: 100%;
+}
+
+.cc_div .cloud #c-inr-i{
+    width: 70%;
+    display: table-cell;
+    vertical-align: top;
+    padding-right: 2.4em;
+}
+
+.cc_div .cloud #c-txt{
+    font-size: 0.85em;
+}
+
+.cc_div .cloud #c-bns{
+    min-width: 170px;
+    display: table-cell;
+    vertical-align: middle;
+}
+
+#cm.cloud .c-bn{
+    margin: .5rem 0 0 0;
+    width: 100%;
+}
+
+#cm.cloud .c-bn:first-child{
+    margin: 0;
+}
+
+#cm.cloud.left{
+    margin-right: 1.25em;
+}
+
+#cm.cloud.right{
+    margin-left: 1.25em;
+}
+/* End cloud layout */
+
+/* Start bar layout */
+#cm.bar {
+    width: 100%;
+    max-width: 100%;
+    left: 0;
+    right: 0;
+    bottom: 0;
+    border-radius: 0;
+    position: fixed;
+    padding: 2em;
+}
+
+#cm.bar #c-inr{
+    max-width: 32em;
+    margin: 0 auto;
+}
+
+#cm.bar #c-bns{
+    max-width: 33.75em;
+}
+
+#cm.bar #cs{
+    padding: 0;
+}
+
+.cc_div .bar #c-s-in{
+    top: 0;
+    transform: none;
+    height: 100%;
+    max-height: 100%;
+}
+
+.cc_div .bar #s-hdr,
+.cc_div .bar #s-bl,
+.cc_div .bar #s-bns {
+    padding-left: 1.4em;
+    padding-right: 1.4em;
+}
+
+.cc_div .bar #cs{
+    padding: 0;
+}
+
+/* align bar to right by default */
+.cc_div .bar #s-inr{
+    margin: 0;
+    margin-left: auto;
+    margin-right: 0;
+    border-radius: 0;
+    max-width: 32em;
+}
+
+.cc_div .bar.left #s-inr{
+    margin-left: 0;
+    margin-right: auto;
+}
+
+/* Force table to not be like tables anymore */
+.cc_div .bar #s-bl table,
+.cc_div .bar #s-bl thead,
+.cc_div .bar #s-bl tbody,
+.cc_div .bar #s-bl th,
+.cc_div .bar #s-bl td,
+.cc_div .bar #s-bl tr,
+.cc_div .bar #s-cnt{
+    display: block;
+}
+
+.cc_div .bar #s-bl caption {
+    display: block;
+    border-top: 0;
+    border-bottom: 1px solid var(--cc-cookie-table-border);
+}
+
+/* Hide table headers (but not display: none;, for accessibility) */
+.cc_div .bar #s-bl thead tr{
+    position: absolute;
+    top: -9999px;
+    left: -9999px;
+}
+
+.cc_div .bar #s-bl tr{
+    border-top: 1px solid var(--cc-cookie-table-border);
+}
+
+.cc_div .bar #s-bl td {
+    /* Behave  like a "row" */
+    border: none;
+    position: relative;
+    padding-left: 35%;
+}
+
+.cc_div .bar #s-bl td:before {
+    position: absolute;
+    left: 1rem;
+    padding-right: 0.625em;
+    white-space: nowrap;
+    content: attr(data-column);
+    color: var(--cc-text);
+    overflow: hidden;
+    text-overflow: ellipsis;
+}
+/* End bar layout */
+
+/* Positions */
+#cm.top {
+    bottom: auto;
+    top: 1.250em;
+}
+
+#cm.left{
+    right: auto;
+    left: 1.250em;
+}
+
+#cm.right{
+    left: auto;
+    right: 1.250em;
+}
+
+#cm.bar.left,
+#cm.bar.right{
+    left: 0;
+    right: 0;
+}
+
+#cm.bar.top{
+    top: 0;
+}
+/* end positions */
+
+/* Disable transitions if prefers-reduced-motion detected */
+@media (prefers-reduced-motion) {
+    #cc--main #cm,
+    #cc--main #s-cnt,
+    #cc--main #s-inr{
+        transition: none!important;
+    }
+}
+
+@media screen and (max-width: 688px) {
+
+    #cm,
+    #cm.cloud,
+    #cm.left,
+    #cm.right{
+        width: auto;
+        max-width: 100%;
+        margin: 0;
+        padding: 1.2em!important;
+        right: 1em;
+        left: 1em;
+        bottom: 1em;
+        display: block;
+    }
+
+    .force--consent #cm,
+    .force--consent #cm.cloud{
+        width: auto;
+        max-width: 100vw;
+    }
+
+    #cm.top{
+        top: 1em;
+        bottom: auto;
+    }
+
+    #cm.bottom{
+        bottom: 1em;
+        top: auto;
+    }
+
+    #cm.bar.bottom{
+        bottom: 0;
+    }
+
+    #cm.cloud .c-bn{
+        font-size: .85em;
+    }
+
+    #s-bns,
+    .cc_div .bar #s-bns{
+        padding: 1em 1.3em;
+    }
+
+    .cc_div .bar #s-inr{
+        max-width: 100%;
+        width: 100%;
+    }
+
+    .cc_div .cloud #c-inr-i{
+        padding-right: 0;
+    }
+
+    #cs{
+        border-radius: 0;
+        padding: 0;
+    }
+
+    #c-s-in{
+        max-height: 100%;
+        height: 100%;
+        top: 0;
+        transform: none;
+    }
+
+    .cc_div .b-tg{
+        transform: scale(1.1);
+        right: 1.1em;
+    }
+
+    #s-inr{
+        margin: 0;
+        padding-bottom: 7.9em;
+        border-radius: 0;
+    }
+
+    #s-bns{
+        height: 7.9em;
+    }
+
+	#s-bl,
+    .cc_div .bar #s-bl{
+		padding: 1.2em;
+    }
+
+	#s-hdr,
+    .cc_div .bar #s-hdr{
+        padding: 0 1.2em;
+    }
+
+    /** dynamic table layout **/
+    #s-bl table {
+        width: 100%;
+    }
+
+    #s-inr.bns-t{
+        padding-bottom: 10.5em;
+    }
+
+    .bns-t #s-bns{
+        height: 10.5em;
+    }
+
+    .cc_div .bns-t .c-bn{
+        font-size: 0.83em;
+        padding: .9em 1.6em;
+    }
+
+    #s-cnt .b-bn .b-tl{
+        padding-top: 1.2em;
+        padding-bottom: 1.2em;
+    }
+
+    /* Force table to not be like tables anymore */
+    #s-bl table,
+    #s-bl thead,
+    #s-bl tbody,
+    #s-bl th,
+    #s-bl td,
+    #s-bl tr,
+    #s-cnt{
+        display: block;
+    }
+
+    #s-bl caption {
+        border-bottom: 0;
+        display: block;
+    }
+
+    /* Hide table headers (but not display: none;, for accessibility) */
+    #s-bl thead tr{
+        position: absolute;
+        top: -9999px;
+        left: -9999px;
+    }
+
+    #s-bl tr{
+        border-top: 1px solid var(--cc-cookie-table-border);
+    }
+
+    #s-bl td {
+        /* Behave  like a "row" */
+        border: none;
+        position: relative;
+        padding-left: 35%;
+    }
+
+    #s-bl td:before {
+        position: absolute;
+        left: 1rem;
+        padding-right: 0.625em;
+        white-space: nowrap;
+        content: attr(data-column);
+        color: var(--cc-text);
+        overflow: hidden;
+        text-overflow: ellipsis;
+    }
+
+    #cm .c-bn,
+    .cc_div .c-bn{
+        width: 100%;
+        margin-right: 0;
+    }
+
+    #s-cnt #s-rall-bn{
+        margin-left: 0;
+    }
+
+    .cc_div #c-bns{
+        flex-direction: column;
+    }
+
+    #c-bns button + button,
+    #s-cnt button + button{
+        margin-top: 0.625em;
+        margin-left: 0;
+        float: unset;
+    }
+
+    #cm.cloud,
+    #cm.box{
+        left: 1em;
+        right: 1em;
+        width: auto;
+    }
+
+    #cm.cloud.right,
+    #cm.cloud.left{
+        margin: 0;
+    }
+
+    .cc_div .cloud #c-bns,
+    .cc_div .cloud #c-inr,
+    .cc_div .cloud #c-inr-i{
+        display: block;
+        width: auto;
+        min-width: unset;
+    }
+
+    .cc_div .cloud #c-txt{
+        font-size: .9em;
+    }
+
+    .cc_div .cloud #c-bns{
+        margin-top: 1.625em;
+    }
+}
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/cookieconsent.js.download
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/cookieconsent.js.download	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/cookieconsent.js.download	(revision 38779)
@@ -0,0 +1,2250 @@
+/*!
+ * CookieConsent v2.9.0
+ * https://www.github.com/orestbida/cookieconsent
+ * Author Orest Bida
+ * Released under the MIT License
+ */
+(function(){
+    'use strict';
+    /**
+     * @param {HTMLElement} [root] - [optional] element where the cookieconsent will be appended
+     * @returns {Object} cookieconsent object with API
+     */
+    var CookieConsent = function(root){
+
+        /**
+         * CHANGE THIS FLAG FALSE TO DISABLE console.log()
+         */
+        var ENABLE_LOGS = true;
+
+        var _config = {
+            'mode': 'opt-in',                         // 'opt-in', 'opt-out'
+            'current_lang': 'en',
+            'auto_language': null,
+            'autorun': true,                          // run as soon as loaded
+            'page_scripts': true,
+            'hide_from_bots': true,
+            'cookie_name': 'cc_cookie',
+            'cookie_expiration': 182,                 // default: 6 months (in days)
+            'cookie_domain': location.hostname,       // default: current domain
+            'cookie_path': '/',
+            'cookie_same_site': 'Lax',
+            'use_rfc_cookie': false,
+            'autoclear_cookies': true,
+            'revision': 0,
+            'script_selector': 'data-cookiecategory'
+        };
+
+        var
+            /**
+             * Object which holds the main methods/API (.show, .run, ...)
+            */
+            _cookieconsent = {},
+
+            /**
+             * Global user configuration object
+             */
+            user_config,
+
+            /**
+             * Internal state variables
+             */
+            saved_cookie_content = {},
+            cookie_data = null,
+
+            /**
+             * @type {Date}
+             */
+            consent_date,
+
+            /**
+             * @type {Date}
+             */
+            last_consent_update,
+
+            /**
+             * @type {string}
+             */
+            consent_uuid,
+
+            /**
+             * @type {boolean}
+             */
+            invalid_consent = true,
+
+            consent_modal_exists = false,
+            consent_modal_visible = false,
+
+            settings_modal_visible = false,
+
+            /**
+             * @type {HTMLElement[]}
+             */
+            current_modal_focusable,
+
+            /**
+             * @type {HTMLDivElement}
+             */
+            current_focused_modal,
+
+            /**
+             * @type {HTMLSpanElement}
+             */
+            cmFocusSpan,
+
+            /**
+             * @type {HTMLSpanElement}
+             */
+            smFocusSpan,
+
+            all_table_headers,
+            all_blocks,
+
+            // Helper callback functions
+            // (avoid calling "user_config['onAccept']" all the time)
+            onAccept,
+            onChange,
+            onFirstAction,
+
+            revision_enabled = false,
+            valid_revision = true,
+            revision_message = '',
+
+            // State variables for the autoclearCookies function
+            changed_settings = [],
+            reload_page = false;
+
+        /**
+         * Accept type:
+         *  - "all"
+         *  - "necessary"
+         *  - "custom"
+         * @type {string}
+         */
+        var accept_type;
+
+        /**
+         * Contains all accepted categories
+         * @type {string[]}
+         */
+        var accepted_categories = [];
+
+        /**
+         * Contains all non-accepted (rejected) categories
+         * @type {string[]}
+         */
+        var rejected_categories = [];
+
+        /**
+         * Contains all categories enabled by default
+         * @type {string[]}
+         */
+        var default_enabled_categories = [];
+
+        // Don't run plugin (to avoid indexing its text content) if bot detected
+        var is_bot = false;
+
+        /**
+         * Save reference to the last focused element on the page
+         * (used later to restore focus when both modals are closed)
+         */
+        var last_elem_before_modal;
+        var last_consent_modal_btn_focus;
+
+        /**
+         * Both of the arrays below have the same structure:
+         * [0] => holds reference to the FIRST focusable element inside modal
+         * [1] => holds reference to the LAST focusable element inside modal
+         */
+        var consent_modal_focusable = [];
+        var settings_modal_focusable = [];
+
+        /**
+         * Keep track of enabled/disabled categories
+         * @type {boolean[]}
+         */
+        var toggle_states = [];
+
+        /**
+         * Stores all available categories
+         * @type {string[]}
+         */
+        var all_categories = [];
+
+        /**
+         * Keep track of readonly toggles
+         * @type {boolean[]}
+         */
+        var readonly_categories = [];
+
+        /**
+         * Pointers to main dom elements (to avoid retrieving them later using document.getElementById)
+         */
+        var
+            /** @type {HTMLElement} */ html_dom = document.documentElement,
+            /** @type {HTMLElement} */ main_container,
+            /** @type {HTMLElement} */ all_modals_container,
+
+            /** @type {HTMLElement} */ consent_modal,
+            /** @type {HTMLElement} */ consent_modal_title,
+            /** @type {HTMLElement} */ consent_modal_description,
+            /** @type {HTMLElement} */ consent_primary_btn,
+            /** @type {HTMLElement} */ consent_secondary_btn,
+            /** @type {HTMLElement} */ consent_buttons,
+            /** @type {HTMLElement} */ consent_modal_inner,
+
+            /** @type {HTMLElement} */ settings_container,
+            /** @type {HTMLElement} */ settings_inner,
+            /** @type {HTMLElement} */ settings_title,
+            /** @type {HTMLElement} */ settings_close_btn,
+            /** @type {HTMLElement} */ settings_blocks,
+            /** @type {HTMLElement} */ new_settings_blocks,
+            /** @type {HTMLElement} */ settings_buttons,
+            /** @type {HTMLElement} */ settings_save_btn,
+            /** @type {HTMLElement} */ settings_accept_all_btn,
+            /** @type {HTMLElement} */ settings_reject_all_btn;
+
+        /**
+         * Update config settings
+         * @param {Object} user_config
+         */
+        var _setConfig = function(_user_config){
+
+            /**
+             * Make user configuration globally available
+             */
+            user_config = _user_config;
+
+            _log("CookieConsent [CONFIG]: received_config_settings ", user_config);
+
+            if(typeof user_config['cookie_expiration'] === "number")
+                _config.cookie_expiration = user_config['cookie_expiration'];
+
+            if(typeof user_config['cookie_necessary_only_expiration'] === "number")
+                _config.cookie_necessary_only_expiration  = user_config['cookie_necessary_only_expiration'];
+
+            if(typeof user_config['autorun'] === "boolean")
+                _config.autorun = user_config['autorun'];
+
+            if(typeof user_config['cookie_domain'] === "string")
+                _config.cookie_domain = user_config['cookie_domain'];
+
+            if(typeof user_config['cookie_same_site'] === "string")
+                _config.cookie_same_site = user_config['cookie_same_site'];
+
+            if(typeof user_config['cookie_path'] === "string")
+                _config.cookie_path = user_config['cookie_path'];
+
+            if(typeof user_config['cookie_name'] === "string")
+                _config.cookie_name = user_config['cookie_name'];
+
+            if(typeof user_config['onAccept'] === "function")
+                onAccept = user_config['onAccept'];
+
+            if(typeof user_config['onFirstAction'] === "function")
+                onFirstAction = user_config['onFirstAction'];
+
+            if(typeof user_config['onChange'] === "function")
+                onChange = user_config['onChange'];
+
+            if(user_config['mode'] === 'opt-out')
+                _config.mode = 'opt-out';
+
+            if(typeof user_config['revision'] === "number"){
+                user_config['revision'] > -1 && (_config.revision = user_config['revision']);
+                revision_enabled = true;
+            }
+
+            if(typeof user_config['autoclear_cookies'] === "boolean")
+                _config.autoclear_cookies = user_config['autoclear_cookies'];
+
+            if(user_config['use_rfc_cookie'] === true)
+                _config.use_rfc_cookie = true;
+
+            if(typeof user_config['hide_from_bots'] === "boolean"){
+                _config.hide_from_bots = user_config['hide_from_bots'];
+            }
+
+            if(_config.hide_from_bots){
+                is_bot = navigator &&
+                    ((navigator.userAgent && /bot|crawl|spider|slurp|teoma/i.test(navigator.userAgent)) || navigator.webdriver);
+            }
+
+            _config.page_scripts = user_config['page_scripts'] === true;
+
+            if (user_config['auto_language'] === 'browser' || user_config['auto_language'] === true) {
+                _config.auto_language = 'browser';
+            } else if (user_config['auto_language'] === 'document') {
+                _config.auto_language = 'document';
+            }
+
+            _log("CookieConsent [LANG]: auto_language strategy is '" + _config.auto_language + "'");
+
+            _config.current_lang = _resolveCurrentLang(user_config.languages, user_config['current_lang']);
+        }
+
+        /**
+         * Add an onClick listeners to all html elements with data-cc attribute
+         */
+        var _addDataButtonListeners = function(elem){
+
+            var _a = 'accept-';
+
+            var show_settings = _getElements('c-settings');
+            var accept_all = _getElements(_a + 'all');
+            var accept_necessary = _getElements(_a + 'necessary');
+            var accept_custom_selection = _getElements(_a + 'custom');
+
+            for(var i=0; i<show_settings.length; i++){
+                show_settings[i].setAttribute('aria-haspopup', 'dialog');
+                _addEvent(show_settings[i], 'click', function(event){
+                    event.preventDefault();
+                    _cookieconsent.showSettings(0);
+                });
+            }
+
+            for(i=0; i<accept_all.length; i++){
+                _addEvent(accept_all[i], 'click', function(event){
+                    _acceptAction(event, 'all');
+                });
+            }
+
+            for(i=0; i<accept_custom_selection.length; i++){
+                _addEvent(accept_custom_selection[i], 'click', function(event){
+                    _acceptAction(event);
+                });
+            }
+
+            for(i=0; i<accept_necessary.length; i++){
+                _addEvent(accept_necessary[i], 'click', function(event){
+                    _acceptAction(event, []);
+                });
+            }
+
+            /**
+             * Return all elements with given data-cc role
+             * @param {string} data_role
+             * @returns {NodeListOf<Element>}
+             */
+            function _getElements(data_role){
+                return (elem || document).querySelectorAll('[data-cc="' + data_role + '"]');
+            }
+
+            /**
+             * Helper function: accept and then hide modals
+             * @param {PointerEvent} e source event
+             * @param {string} [accept_type]
+             */
+            function _acceptAction(e, accept_type){
+                e.preventDefault();
+                _cookieconsent.accept(accept_type);
+                _cookieconsent.hideSettings();
+                _cookieconsent.hide();
+            }
+        }
+
+        /**
+         * Get a valid language (at least 1 must be defined)
+         * @param {string} lang - desired language
+         * @param {Object} all_languages - all defined languages
+         * @returns {string} validated language
+         */
+        var _getValidatedLanguage = function(lang, all_languages){
+            if(Object.prototype.hasOwnProperty.call(all_languages, lang)){
+                return lang;
+            }else if(_getKeys(all_languages).length > 0){
+                if(Object.prototype.hasOwnProperty.call(all_languages, _config.current_lang)){
+                    return _config.current_lang ;
+                }else{
+                    return _getKeys(all_languages)[0];
+                }
+            }
+        }
+
+        /**
+         * Save reference to first and last focusable elements inside each modal
+         * to prevent losing focus while navigating with TAB
+         */
+        var _getModalFocusableData = function(){
+
+            /**
+             * Note: any of the below focusable elements, which has the attribute tabindex="-1" AND is either
+             * the first or last element of the modal, won't receive focus during "open/close" modal
+             */
+            var allowed_focusable_types = ['[href]', 'button', 'input', 'details', '[tabindex="0"]'];
+
+            function _getAllFocusableElements(modal, _array){
+                var focus_later=false, focus_first=false;
+
+                // ie might throw exception due to complex unsupported selector => a:not([tabindex="-1"])
+                try{
+                    var focusable_elems = modal.querySelectorAll(allowed_focusable_types.join(':not([tabindex="-1"]), '));
+                    var attr, len=focusable_elems.length, i=0;
+
+                    while(i < len){
+
+                        attr = focusable_elems[i].getAttribute('data-focus');
+
+                        if(!focus_first && attr === "1"){
+                            focus_first = focusable_elems[i];
+
+                        }else if(attr === "0"){
+                            focus_later = focusable_elems[i];
+                            if(!focus_first && focusable_elems[i+1].getAttribute('data-focus') !== "0"){
+                                focus_first = focusable_elems[i+1];
+                            }
+                        }
+
+                        i++;
+                    }
+
+                }catch(e){
+                    return modal.querySelectorAll(allowed_focusable_types.join(', '));
+                }
+
+                /**
+                 * Save first and last elements (used to lock/trap focus inside modal)
+                 */
+                _array[0] = focusable_elems[0];
+                _array[1] = focusable_elems[focusable_elems.length - 1];
+                _array[2] = focus_later;
+                _array[3] = focus_first;
+            }
+
+            /**
+             * Get settings modal'S all focusable elements
+             * Save first and last elements (used to lock/trap focus inside modal)
+             */
+            _getAllFocusableElements(settings_inner, settings_modal_focusable);
+
+            /**
+             * If consent modal exists, do the same
+             */
+            if(consent_modal_exists){
+                _getAllFocusableElements(consent_modal, consent_modal_focusable);
+            }
+        }
+
+        var _createConsentModal = function(lang){
+
+            if(user_config['force_consent'] === true)
+                _addClass(html_dom, 'force--consent');
+
+            // Create modal if it doesn't exist
+            if(!consent_modal){
+
+                consent_modal = _createNode('div');
+                var consent_modal_inner_inner = _createNode('div');
+                var overlay = _createNode('div');
+
+                consent_modal.id = 'cm';
+                consent_modal_inner_inner.id = 'c-inr-i';
+                overlay.id = 'cm-ov';
+
+                consent_modal.tabIndex = -1;
+                consent_modal.setAttribute('role', 'dialog');
+                consent_modal.setAttribute('aria-modal', 'true');
+                consent_modal.setAttribute('aria-hidden', 'false');
+                consent_modal.setAttribute('aria-labelledby', 'c-ttl');
+                consent_modal.setAttribute('aria-describedby', 'c-txt');
+
+                // Append consent modal to main container
+                all_modals_container.appendChild(consent_modal);
+                all_modals_container.appendChild(overlay);
+
+                /**
+                 * Make modal by default hidden to prevent weird page jumps/flashes (shown only once css is loaded)
+                 */
+                consent_modal.style.visibility = overlay.style.visibility = "hidden";
+                overlay.style.opacity = 0;
+            }
+
+            // Use insertAdjacentHTML instead of innerHTML
+            var consent_modal_title_value = user_config.languages[lang]['consent_modal']['title'];
+
+            // Add title (if valid)
+            if(consent_modal_title_value){
+
+                if(!consent_modal_title){
+                    consent_modal_title = _createNode('div');
+                    consent_modal_title.id = 'c-ttl';
+                    consent_modal_title.setAttribute('role', 'heading');
+                    consent_modal_title.setAttribute('aria-level', '2');
+                    consent_modal_inner_inner.appendChild(consent_modal_title);
+                }
+
+                consent_modal_title.innerHTML = consent_modal_title_value;
+            }
+
+            var description = user_config.languages[lang]['consent_modal']['description'];
+
+            if(revision_enabled){
+                if(!valid_revision){
+                    description = description.replace("{{revision_message}}", revision_message || user_config.languages[lang]['consent_modal']['revision_message'] || "");
+                }else{
+                    description = description.replace("{{revision_message}}", "");
+                }
+            }
+
+            if(!consent_modal_description){
+                consent_modal_description = _createNode('div');
+                consent_modal_description.id = 'c-txt';
+                consent_modal_inner_inner.appendChild(consent_modal_description);
+            }
+
+            // Set description content
+            consent_modal_description.innerHTML = description;
+
+            var primary_btn_data = user_config.languages[lang]['consent_modal']['primary_btn'],   // accept current selection
+                secondary_btn_data = user_config.languages[lang]['consent_modal']['secondary_btn'];
+
+            // Add primary button if not falsy
+            if(primary_btn_data){
+
+                if(!consent_primary_btn){
+                    consent_primary_btn = _createNode('button');
+                    consent_primary_btn.id = 'c-p-bn';
+                    consent_primary_btn.className =  "c-bn";
+                    consent_primary_btn.appendChild(generateFocusSpan(1))
+
+                    var _accept_type;
+
+                    if(primary_btn_data['role'] === 'accept_all')
+                        _accept_type = 'all'
+
+                    _addEvent(consent_primary_btn, "click", function(){
+                        _cookieconsent.hide();
+                        _log("CookieConsent [ACCEPT]: cookie_consent was accepted!");
+                        _cookieconsent.accept(_accept_type);
+                    });
+                }
+
+                consent_primary_btn.firstElementChild.innerHTML = user_config.languages[lang]['consent_modal']['primary_btn']['text'];
+            }
+
+            // Add secondary button if not falsy
+            if(secondary_btn_data){
+
+                if(!consent_secondary_btn){
+                    consent_secondary_btn = _createNode('button');
+                    consent_secondary_btn.id = 'c-s-bn';
+                    consent_secondary_btn.className = "c-bn c_link";
+                    consent_secondary_btn.appendChild(generateFocusSpan(1))
+
+                    if(secondary_btn_data['role'] === 'accept_necessary'){
+                        _addEvent(consent_secondary_btn, 'click', function(){
+                            _cookieconsent.hide();
+                            _cookieconsent.accept([]); // accept necessary only
+                        });
+                    }else{
+                        _addEvent(consent_secondary_btn, 'click', function(){
+                            _cookieconsent.showSettings(0);
+                        });
+                    }
+                }
+
+                consent_secondary_btn.firstElementChild.innerHTML = user_config.languages[lang]['consent_modal']['secondary_btn']['text'];
+            }
+
+            // Swap buttons
+            var gui_options_data = user_config['gui_options'];
+
+            if(!consent_modal_inner){
+                consent_modal_inner = _createNode('div');
+                consent_modal_inner.id = 'c-inr';
+
+                consent_modal_inner.appendChild(consent_modal_inner_inner);
+            }
+
+            if(!consent_buttons){
+                consent_buttons = _createNode('div');
+                consent_buttons.id = "c-bns";
+
+                if(gui_options_data && gui_options_data['consent_modal'] && gui_options_data['consent_modal']['swap_buttons'] === true){
+                    secondary_btn_data && consent_buttons.appendChild(consent_secondary_btn);
+                    primary_btn_data && consent_buttons.appendChild(consent_primary_btn);
+                    consent_buttons.className = 'swap';
+                }else{
+                    primary_btn_data && consent_buttons.appendChild(consent_primary_btn);
+                    secondary_btn_data && consent_buttons.appendChild(consent_secondary_btn);
+                }
+
+                (primary_btn_data || secondary_btn_data ) && consent_modal_inner.appendChild(consent_buttons);
+                consent_modal.appendChild(consent_modal_inner);
+            }
+
+            consent_modal_exists = true;
+
+            _addDataButtonListeners(consent_modal_inner);
+        }
+
+        var _createSettingsModal = function(lang){
+
+            /**
+             * Create all consent_modal elements
+             */
+            if(!settings_container){
+                settings_container = _createNode('div');
+                settings_container.tabIndex = -1;
+                var settings_container_valign = _createNode('div');
+                var settings = _createNode('div');
+                var settings_container_inner = _createNode('div');
+                settings_inner = _createNode('div');
+                settings_title = _createNode('div');
+                var settings_header = _createNode('div');
+                settings_close_btn = _createNode('button');
+                settings_close_btn.appendChild(generateFocusSpan(2));
+                var settings_close_btn_container = _createNode('div');
+                settings_blocks = _createNode('div');
+                var overlay = _createNode('div');
+
+                /**
+                 * Set ids
+                 */
+                settings_container.id = 's-cnt';
+                settings_container_valign.id = "c-vln";
+                settings_container_inner.id = "c-s-in";
+                settings.id = "cs";
+                settings_title.id = 's-ttl';
+                settings_inner.id = 's-inr';
+                settings_header.id = "s-hdr";
+                settings_blocks.id = 's-bl';
+                settings_close_btn.id = 's-c-bn';
+                overlay.id = 'cs-ov';
+                settings_close_btn_container.id = 's-c-bnc';
+                settings_close_btn.className = 'c-bn';
+
+                settings_container.setAttribute('role', 'dialog');
+                settings_container.setAttribute('aria-modal', 'true');
+                settings_container.setAttribute('aria-hidden', 'true');
+                settings_container.setAttribute('aria-labelledby', 's-ttl');
+                settings_title.setAttribute('role', 'heading');
+                settings_container.style.visibility = overlay.style.visibility = "hidden";
+                overlay.style.opacity = 0;
+
+                settings_close_btn_container.appendChild(settings_close_btn);
+
+                // If 'esc' key is pressed inside settings_container div => hide settings
+                _addEvent(document, 'keydown', function(evt){
+                    if (evt.keyCode === 27 && settings_modal_visible) {
+                        _cookieconsent.hideSettings();
+                    }
+                }, true);
+
+                _addEvent(settings_close_btn, 'click', function(){
+                    _cookieconsent.hideSettings();
+                });
+            }else{
+                new_settings_blocks = _createNode('div');
+                new_settings_blocks.id = 's-bl';
+            }
+
+            var settings_modal_config = user_config.languages[lang]['settings_modal'];
+
+            // Add label to close button
+            settings_close_btn.setAttribute('aria-label', settings_modal_config['close_btn_label'] || 'Close');
+
+            all_blocks = settings_modal_config['blocks'];
+            all_table_headers = settings_modal_config['cookie_table_headers'];
+            var table_caption = settings_modal_config['cookie_table_caption'];
+
+            var n_blocks = all_blocks.length;
+
+            // Set settings modal title
+            settings_title.innerHTML = settings_modal_config['title'];
+
+            // Create settings modal content (blocks)
+            for(var i=0; i<n_blocks; ++i){
+
+                var title_data = all_blocks[i]['title'],
+                    description_data = all_blocks[i]['description'],
+                    toggle_data = all_blocks[i]['toggle'],
+                    cookie_table_data = all_blocks[i]['cookie_table'],
+                    remove_cookie_tables = user_config['remove_cookie_tables'] === true,
+                    isExpandable = (description_data && 'truthy') || (!remove_cookie_tables && (cookie_table_data && 'truthy'));
+
+                // Create title
+                var block_section = _createNode('div');
+                var block_table_container = _createNode('div');
+
+                // Create description
+                if(description_data){
+                    var block_desc = _createNode('div');
+                    block_desc.className = 'p';
+                    block_desc.insertAdjacentHTML('beforeend', description_data);
+                }
+
+                var block_title_container = _createNode('div');
+                block_title_container.className = 'title';
+
+                block_section.className = 'c-bl';
+                block_table_container.className = 'desc';
+
+                // Create toggle if specified (opt in/out)
+                if(typeof toggle_data !== 'undefined'){
+
+                    var accordion_id = "c-ac-"+i;
+
+                    // Create button (to collapse/expand block description)
+                    var block_title_btn = isExpandable ? _createNode('button') : _createNode('div');
+                    var block_switch_label = _createNode('label');
+                    var block_switch = _createNode('input');
+                    var block_switch_span = _createNode('span');
+                    var label_text_span = _createNode('span');
+
+                    // These 2 spans will contain each 2 pseudo-elements to generate 'tick' and 'x' icons
+                    var block_switch_span_on_icon = _createNode('span');
+                    var block_switch_span_off_icon = _createNode('span');
+
+                    block_title_btn.className = isExpandable ? 'b-tl exp' : 'b-tl';
+                    block_switch_label.className = 'b-tg';
+                    block_switch.className = 'c-tgl';
+                    block_switch_span_on_icon.className = 'on-i';
+                    block_switch_span_off_icon.className = 'off-i';
+                    block_switch_span.className = 'c-tg';
+                    label_text_span.className = "t-lb";
+
+                    if(isExpandable){
+                        block_title_btn.setAttribute('aria-expanded', 'false');
+                        block_title_btn.setAttribute('aria-controls', accordion_id);
+                    }
+
+                    block_switch.type = 'checkbox';
+                    block_switch_span.setAttribute('aria-hidden', 'true');
+
+                    var cookie_category = toggle_data.value;
+                    block_switch.value = cookie_category;
+
+                    label_text_span.textContent = title_data;
+                    block_title_btn.insertAdjacentHTML('beforeend', title_data);
+
+                    block_title_container.appendChild(block_title_btn);
+                    block_switch_span.appendChild(block_switch_span_on_icon);
+                    block_switch_span.appendChild(block_switch_span_off_icon);
+
+                    /**
+                     * If consent is valid => retrieve category states from cookie
+                     * Otherwise use states defined in the user_config. object
+                     */
+                    if(!invalid_consent){
+                        if(_inArray(saved_cookie_content['categories'], cookie_category) > -1){
+                            block_switch.checked = true;
+                            !new_settings_blocks && toggle_states.push(true);
+                        }else{
+                            !new_settings_blocks && toggle_states.push(false);
+                        }
+                    }else if(toggle_data['enabled']){
+                        block_switch.checked = true;
+                        !new_settings_blocks && toggle_states.push(true);
+
+                        /**
+                         * Keep track of categories enabled by default (useful when mode=='opt-out')
+                         */
+                        if(toggle_data['enabled'])
+                            !new_settings_blocks && default_enabled_categories.push(cookie_category);
+
+                    }else{
+                        !new_settings_blocks && toggle_states.push(false);
+                    }
+
+                    !new_settings_blocks && all_categories.push(cookie_category);
+
+                    /**
+                     * Set toggle as readonly if true (disable checkbox)
+                     */
+                    if(toggle_data['readonly']){
+                        block_switch.disabled = true;
+                        _addClass(block_switch_span, 'c-ro');
+                        !new_settings_blocks && readonly_categories.push(true);
+                    }else{
+                        !new_settings_blocks && readonly_categories.push(false);
+                    }
+
+                    _addClass(block_table_container, 'b-acc');
+                    _addClass(block_title_container, 'b-bn');
+                    _addClass(block_section, 'b-ex');
+
+                    block_table_container.id = accordion_id;
+                    block_table_container.setAttribute('aria-hidden', 'true');
+
+                    block_switch_label.appendChild(block_switch);
+                    block_switch_label.appendChild(block_switch_span);
+                    block_switch_label.appendChild(label_text_span);
+                    block_title_container.appendChild(block_switch_label);
+
+                    /**
+                     * On button click handle the following :=> aria-expanded, aria-hidden and act class for current block
+                     */
+                    isExpandable && (function(accordion, block_section, btn){
+                        _addEvent(block_title_btn, 'click', function(){
+                            if(!_hasClass(block_section, 'act')){
+                                _addClass(block_section, 'act');
+                                btn.setAttribute('aria-expanded', 'true');
+                                accordion.setAttribute('aria-hidden', 'false');
+                            }else{
+                                _removeClass(block_section, 'act');
+                                btn.setAttribute('aria-expanded', 'false');
+                                accordion.setAttribute('aria-hidden', 'true');
+                            }
+                        }, false);
+                    })(block_table_container, block_section, block_title_btn);
+
+                }else{
+                    /**
+                     * If block is not a button (no toggle defined),
+                     * create a simple div instead
+                     */
+                    if(title_data){
+                        var block_title = _createNode('div');
+                        block_title.className = 'b-tl';
+                        block_title.setAttribute('role', 'heading');
+                        block_title.setAttribute('aria-level', '3');
+                        block_title.insertAdjacentHTML('beforeend', title_data);
+                        block_title_container.appendChild(block_title);
+                    }
+                }
+
+                title_data && block_section.appendChild(block_title_container);
+                description_data && block_table_container.appendChild(block_desc);
+
+                // if cookie table found, generate table for this block
+                if(!remove_cookie_tables && typeof cookie_table_data !== 'undefined'){
+                    var tr_tmp_fragment = document.createDocumentFragment();
+
+                    /**
+                     * Use custom table headers
+                     */
+                    for(var p=0; p<all_table_headers.length; ++p){
+                        // create new header
+                        var th1 = _createNode('th');
+                        var obj = all_table_headers[p];
+                        th1.setAttribute('scope', 'col');
+
+                        // get custom header content
+                        if(obj){
+                            var new_column_key = obj && _getKeys(obj)[0];
+                            th1.textContent = all_table_headers[p][new_column_key];
+                            tr_tmp_fragment.appendChild(th1);
+                        }
+                    }
+
+                    var tr_tmp = _createNode('tr');
+                    tr_tmp.appendChild(tr_tmp_fragment);
+
+                    // create table header & append fragment
+                    var thead = _createNode('thead');
+                    thead.appendChild(tr_tmp);
+
+                    var block_table = _createNode('table');
+
+                    if(table_caption) {
+                        var caption = _createNode('caption');
+                        caption.innerHTML = table_caption;
+                        block_table.appendChild(caption);
+                    }
+
+                    // append header to table
+                    block_table.appendChild(thead);
+
+                    var tbody_fragment = document.createDocumentFragment();
+
+                    // create table content
+                    for(var n=0; n<cookie_table_data.length; n++){
+                        var tr = _createNode('tr');
+
+                        for(var g=0; g<all_table_headers.length; ++g){
+                            // get custom header content
+                            obj = all_table_headers[g];
+                            if(obj){
+                                new_column_key = _getKeys(obj)[0];
+
+                                var td_tmp = _createNode('td');
+
+                                // Allow html inside table cells
+                                td_tmp.insertAdjacentHTML('beforeend', cookie_table_data[n][new_column_key]);
+                                td_tmp.setAttribute('data-column', obj[new_column_key]);
+
+                                tr.appendChild(td_tmp);
+                            }
+                        }
+
+                        tbody_fragment.appendChild(tr);
+                    }
+
+                    // append tbody_fragment to tbody & append the latter into the table
+                    var tbody = _createNode('tbody');
+                    tbody.appendChild(tbody_fragment);
+                    block_table.appendChild(tbody);
+
+                    block_table_container.appendChild(block_table);
+                }
+
+                /**
+                 * Append only if is either:
+                 * - togglable div with title
+                 * - a simple div with at least a title or description
+                 */
+                if(toggle_data && title_data || (!toggle_data && (title_data || description_data))){
+                    block_section.appendChild(block_table_container);
+
+                    if(new_settings_blocks)
+                        new_settings_blocks.appendChild(block_section);
+                    else
+                        settings_blocks.appendChild(block_section);
+                }
+            }
+
+            // Create settings buttons
+            if(!settings_buttons){
+                settings_buttons = _createNode('div');
+                settings_buttons.id = 's-bns';
+            }
+
+            if(!settings_accept_all_btn){
+                settings_accept_all_btn = _createNode('button');
+                settings_accept_all_btn.id = 's-all-bn';
+                settings_accept_all_btn.className ='c-bn';
+                settings_buttons.appendChild(settings_accept_all_btn);
+
+                _addEvent(settings_accept_all_btn, 'click', function(){
+                    _cookieconsent.accept('all');
+                    _cookieconsent.hideSettings();
+                    _cookieconsent.hide();
+                });
+            }
+
+            settings_accept_all_btn.innerHTML = settings_modal_config['accept_all_btn'];
+
+            var reject_all_btn_text = settings_modal_config['reject_all_btn'];
+
+            // Add third [optional] reject all button if provided
+            if(reject_all_btn_text){
+
+                if(!settings_reject_all_btn){
+                    settings_reject_all_btn = _createNode('button');
+                    settings_reject_all_btn.id = 's-rall-bn';
+                    settings_reject_all_btn.className = 'c-bn';
+
+                    _addEvent(settings_reject_all_btn, 'click', function(){
+                        _cookieconsent.accept([]);
+                        _cookieconsent.hideSettings();
+                        _cookieconsent.hide();
+                    });
+
+                    settings_inner.className = "bns-t";
+                    settings_buttons.appendChild(settings_reject_all_btn);
+                }
+
+                settings_reject_all_btn.innerHTML = reject_all_btn_text;
+            }
+
+
+            if(!settings_save_btn){
+                settings_save_btn = _createNode('button');
+                settings_save_btn.id = 's-sv-bn';
+                settings_save_btn.className ='c-bn';
+                settings_buttons.appendChild(settings_save_btn);
+
+                // Add save preferences button onClick event
+                // Hide both settings modal and consent modal
+                _addEvent(settings_save_btn, 'click', function(){
+                    _cookieconsent.accept();
+                    _cookieconsent.hideSettings();
+                    _cookieconsent.hide();
+                });
+            }
+
+            settings_save_btn.innerHTML = settings_modal_config['save_settings_btn'];
+
+
+            if(new_settings_blocks) {
+                // replace entire existing cookie category blocks with the new cookie categories new blocks (in a different language)
+                settings_inner.replaceChild(new_settings_blocks, settings_blocks);
+                settings_blocks = new_settings_blocks;
+                return;
+            };
+
+            settings_header.appendChild(settings_title);
+            settings_header.appendChild(settings_close_btn_container);
+            settings_inner.appendChild(settings_header);
+            settings_inner.appendChild(settings_blocks);
+            settings_inner.appendChild(settings_buttons);
+            settings_container_inner.appendChild(settings_inner);
+
+            settings.appendChild(settings_container_inner);
+            settings_container_valign.appendChild(settings);
+            settings_container.appendChild(settings_container_valign);
+
+            all_modals_container.appendChild(settings_container);
+            all_modals_container.appendChild(overlay);
+        }
+
+        /**
+         * Generate cookie consent html markup
+         */
+        var _createCookieConsentHTML = function(){
+
+            // Create main container which holds both consent modal & settings modal
+            main_container = _createNode('div');
+            main_container.id = 'cc--main';
+
+            // Fix layout flash
+            main_container.style.position = "fixed";
+            main_container.innerHTML = '<div id="cc_div" class="cc_div"></div>'
+            all_modals_container = main_container.children[0];
+
+            // Get current language
+            var lang = _config.current_lang;
+
+            // Create consent modal
+            if(consent_modal_exists)
+                _createConsentModal(lang);
+
+            // Always create settings modal
+            _createSettingsModal(lang);
+
+            // Finally append everything (main_container holds both modals)
+            (root || document.body).appendChild(main_container);
+        }
+
+        /**
+         * Update/change modals language
+         * @param {String} lang new language
+         * @param {Boolean} [force] update language fields forcefully
+         * @returns {Boolean}
+         */
+        _cookieconsent.updateLanguage = function(lang, force){
+
+            if(typeof lang !== 'string') return;
+
+            /**
+             * Validate language to avoid errors
+             */
+            var new_validated_lang = _getValidatedLanguage(lang, user_config.languages);
+
+            /**
+             * Set language only if it differs from current
+             */
+            if(new_validated_lang !== _config.current_lang || force === true){
+                _config.current_lang = new_validated_lang;
+
+                if(consent_modal_exists){
+                    _createConsentModal(new_validated_lang);
+                }
+
+                _createSettingsModal(new_validated_lang);
+
+                _log("CookieConsent [LANGUAGE]: curr_lang: '" + new_validated_lang + "'");
+
+                return true;
+            }
+
+            return false;
+        }
+
+        /**
+         * Delete all cookies which are unused (based on selected preferences)
+         *
+         * @param {boolean} [clearOnFirstAction]
+         */
+        var _autoclearCookies = function(clearOnFirstAction){
+
+            // Get number of blocks
+            var len = all_blocks.length;
+            var count = -1;
+
+            // reset reload state
+            reload_page = false;
+
+            // Retrieve all cookies
+            var all_cookies_array = _getCookie('', 'all');
+
+            // delete cookies on 'www.domain.com' and '.www.domain.com' (can also be without www)
+            var domains = [_config.cookie_domain, '.'+_config.cookie_domain];
+
+            // if domain has www, delete cookies also for 'domain.com' and '.domain.com'
+            if(_config.cookie_domain.slice(0, 4) === 'www.'){
+                var non_www_domain = _config.cookie_domain.substr(4);  // remove first 4 chars (www.)
+                domains.push(non_www_domain);
+                domains.push('.' + non_www_domain);
+            }
+
+            // For each block
+            for(var i=0; i<len; i++){
+
+                // Save current block (local scope & less accesses -> ~faster value retrieval)
+                var curr_block = all_blocks[i];
+
+                // If current block has a toggle for opt in/out
+                if(Object.prototype.hasOwnProperty.call(curr_block, "toggle")){
+
+                    // if current block has a cookie table, an off toggle,
+                    // and its preferences were just changed => delete cookies
+                    var category_just_disabled = _inArray(changed_settings, curr_block['toggle']['value']) > -1;
+                    if(
+                        !toggle_states[++count] &&
+                        Object.prototype.hasOwnProperty.call(curr_block, "cookie_table") &&
+                        (clearOnFirstAction || category_just_disabled)
+                    ){
+                        var curr_cookie_table = curr_block['cookie_table'];
+
+                        // Get first property name
+                        var ckey = _getKeys(all_table_headers[0])[0];
+
+                        // Get number of cookies defined in cookie_table
+                        var clen = curr_cookie_table.length;
+
+                        // set "reload_page" to true if reload=on_disable
+                        if(curr_block['toggle']['reload'] === 'on_disable')
+                            category_just_disabled && (reload_page = true);
+
+                        // for each row defined in the cookie table
+                        for(var j=0; j<clen; j++){
+                            var curr_domains = domains;
+
+                            // Get current row of table (corresponds to all cookie params)
+                            var curr_row = curr_cookie_table[j], found_cookies = [];
+                            var curr_cookie_name = curr_row[ckey];
+                            var is_regex = curr_row['is_regex'] || false;
+                            var curr_cookie_domain = curr_row['domain'] || null;
+                            var curr_cookie_path = curr_row['path'] || false;
+
+                            // set domain to the specified domain
+                            curr_cookie_domain && ( curr_domains = [curr_cookie_domain, '.'+curr_cookie_domain]);
+
+                            // If regex provided => filter cookie array
+                            if(is_regex){
+                                for(var n=0; n<all_cookies_array.length; n++){
+                                    if(all_cookies_array[n].match(curr_cookie_name)){
+                                        found_cookies.push(all_cookies_array[n]);
+                                    }
+                                }
+                            }else{
+                                var found_index = _inArray(all_cookies_array, curr_cookie_name);
+                                if(found_index > -1) found_cookies.push(all_cookies_array[found_index]);
+                            }
+
+                            _log("CookieConsent [AUTOCLEAR]: search cookie: '" + curr_cookie_name + "', found:", found_cookies);
+
+                            // If cookie exists -> delete it
+                            if(found_cookies.length > 0){
+                                _eraseCookies(found_cookies, curr_cookie_path, curr_domains);
+                                curr_block['toggle']['reload'] === 'on_clear' && (reload_page = true);
+                            }
+                        }
+                    }
+                }
+            }
+        }
+
+        /**
+         * Set toggles/checkboxes based on accepted categories and save cookie
+         * @param {string[]} accepted_categories - Array of categories to accept
+         */
+        var _saveCookiePreferences = function(accepted_categories){
+
+            changed_settings = [];
+
+            // Retrieve all toggle/checkbox values
+            var category_toggles = settings_container.querySelectorAll('.c-tgl') || [];
+
+            // If there are opt in/out toggles ...
+            if(category_toggles.length > 0){
+
+                for(var i=0; i<category_toggles.length; i++){
+                    if(_inArray(accepted_categories, all_categories[i]) !== -1){
+                        category_toggles[i].checked = true;
+                        if(!toggle_states[i]){
+                            changed_settings.push(all_categories[i]);
+                            toggle_states[i] = true;
+                        }
+                    }else{
+                        category_toggles[i].checked = false;
+                        if(toggle_states[i]){
+                            changed_settings.push(all_categories[i]);
+                            toggle_states[i] = false;
+                        }
+                    }
+                }
+            }
+
+            /**
+             * Clear cookies when settings/preferences change
+             */
+            if(!invalid_consent && _config.autoclear_cookies && changed_settings.length > 0)
+                _autoclearCookies();
+
+            if(!consent_date) consent_date = new Date();
+            if(!consent_uuid) consent_uuid = _uuidv4();
+
+            saved_cookie_content = {
+                "categories": accepted_categories,
+                "level": accepted_categories, // Copy of the `categories` property for compatibility purposes with version v2.8.0 and below.
+                "revision": _config.revision,
+                "data": cookie_data,
+                "rfc_cookie": _config.use_rfc_cookie,
+                "consent_date": consent_date.toISOString(),
+                "consent_uuid": consent_uuid
+            }
+
+            // save cookie with preferences 'categories' (only if never accepted or settings were updated)
+            if(invalid_consent || changed_settings.length > 0){
+                valid_revision = true;
+
+                /**
+                 * Update "last_consent_update" only if it is invalid (after t)
+                 */
+                if(!last_consent_update)
+                    last_consent_update = consent_date;
+                else
+                    last_consent_update = new Date();
+
+                saved_cookie_content['last_consent_update'] = last_consent_update.toISOString();
+
+                /**
+                 * Update accept type
+                 */
+                accept_type = _getAcceptType(_getCurrentCategoriesState());
+
+                _setCookie(_config.cookie_name, JSON.stringify(saved_cookie_content));
+                _manageExistingScripts();
+            }
+
+            if(invalid_consent){
+
+                /**
+                 * Delete unused/"zombie" cookies if consent is not valid (not yet expressed or cookie has expired)
+                 */
+                if(_config.autoclear_cookies)
+                    _autoclearCookies(true);
+
+                if(typeof onFirstAction === 'function')
+                    onFirstAction(_cookieconsent.getUserPreferences(), saved_cookie_content);
+
+                if(typeof onAccept === 'function')
+                    onAccept(saved_cookie_content);
+
+                /**
+                 * Set consent as valid
+                 */
+                invalid_consent = false;
+
+                if(_config.mode === 'opt-in') return;
+            }
+
+            // fire onChange only if settings were changed
+            if(typeof onChange === "function" && changed_settings.length > 0)
+                onChange(saved_cookie_content, changed_settings);
+
+            /**
+             * reload page if needed
+             */
+            if(reload_page)
+                location.reload();
+        }
+
+        /**
+         * Returns index of found element inside array, otherwise -1
+         * @param {Array} arr
+         * @param {Object} value
+         * @returns {number}
+         */
+        var _inArray = function(arr, value){
+            return arr.indexOf(value);
+        }
+
+        /**
+         * Helper function which prints info (console.log())
+         * @param {Object} print_msg
+         * @param {Object} [optional_param]
+         */
+        var _log = function(print_msg, optional_param, error){
+            ENABLE_LOGS && (!error ? console.log(print_msg, optional_param !== undefined ? optional_param : ' ') : console.error(print_msg, optional_param || ""));
+        }
+
+        /**
+         * Helper function which creates an HTMLElement object based on 'type' and returns it.
+         * @param {string} type
+         * @returns {HTMLElement}
+         */
+        var _createNode = function(type){
+            var el = document.createElement(type);
+            if(type === 'button'){
+                el.setAttribute('type', type);
+            }
+            return el;
+        }
+
+        /**
+         * Generate RFC4122-compliant UUIDs.
+         * https://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid?page=1&tab=votes#tab-top
+         * @returns {string}
+         */
+        var _uuidv4 = function(){
+            return ([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g, function(c){
+                try{
+                    return (c ^ (window.crypto || window.msCrypto).getRandomValues(new Uint8Array(1))[0] & 15 >> c / 4).toString(16)
+                }catch(e){
+                    return '';
+                }
+            });
+        }
+
+        /**
+         * Resolve which language should be used.
+         *
+         * @param {Object} languages Object with language translations
+         * @param {string} [requested_language] Language specified by given configuration parameters
+         * @returns {string}
+         */
+        var _resolveCurrentLang = function (languages, requested_language) {
+
+            if (_config.auto_language === 'browser') {
+                return _getValidatedLanguage(_getBrowserLang(), languages);
+            } else if (_config.auto_language === 'document') {
+                return _getValidatedLanguage(document.documentElement.lang, languages);
+            } else {
+                if (typeof requested_language === 'string') {
+                    return _config.current_lang = _getValidatedLanguage(requested_language, languages);
+                }
+            }
+
+            _log("CookieConsent [LANG]: setting current_lang = '" + _config.current_lang + "'");
+            return _config.current_lang; // otherwise return default
+        }
+
+        /**
+         * Get current client's browser language
+         * @returns {string}
+         */
+        var _getBrowserLang = function(){
+            var browser_lang = navigator.language || navigator.browserLanguage;
+            browser_lang.length > 2 && (browser_lang = browser_lang[0]+browser_lang[1]);
+            _log("CookieConsent [LANG]: detected_browser_lang = '"+ browser_lang + "'");
+            return browser_lang.toLowerCase()
+        }
+
+        /**
+         * Trap focus inside modal and focus the first
+         * focusable element of current active modal
+         */
+        var _handleFocusTrap = function(){
+
+            _addEvent(document, 'keydown', function(e){
+
+                // If is tab key => ok
+                if(e.key !== 'Tab')
+                    return;
+
+                if(!consent_modal_visible && !settings_modal_visible)
+                    return;
+
+                // If there is any modal to focus
+                if(current_modal_focusable){
+
+                    var activeElement = document.activeElement;
+
+                    // If reached natural end of the tab sequence => restart
+                    // If modal is not focused => focus modal
+                    if(e.shiftKey){
+                        if (activeElement === current_modal_focusable[0] || !current_focused_modal.contains(activeElement)) {
+                            e.preventDefault();
+                            setFocus(current_modal_focusable[1])
+                        }
+                    }else{
+                        if (document.activeElement === current_modal_focusable[1] || !current_focused_modal.contains(activeElement)) {
+                            e.preventDefault();
+                            setFocus(current_modal_focusable[0]);
+                        }
+                    }
+                }
+            });
+
+            if(document.contains){
+                _addEvent(settings_container, 'click', function(e){
+                    /**
+                     * If click is on the foreground overlay (and not inside settings_modal),
+                     * hide settings modal
+                     *
+                     * Notice: click on div is not supported in IE
+                     */
+                    if(settings_modal_visible){
+                        if(!settings_inner.contains(e.target)){
+                            _cookieconsent.hideSettings();
+                        }
+                    }
+
+                }, true);
+            }
+        }
+
+        /**
+         * Manage each modal's layout
+         * @param {Object} gui_options
+         */
+        var _guiManager = function(gui_options, only_consent_modal){
+
+            // If gui_options is not object => exit
+            if(typeof gui_options !== 'object') return;
+
+            var consent_modal_options = gui_options['consent_modal'];
+            var settings_modal_options = gui_options['settings_modal'];
+
+            /**
+             * Helper function which adds layout and
+             * position classes to given modal
+             *
+             * @param {HTMLElement} modal
+             * @param {string[]} allowed_layouts
+             * @param {string[]} allowed_positions
+             * @param {string} layout
+             * @param {string[]} position
+             */
+            function _setLayout(modal, allowed_layouts, allowed_positions, allowed_transitions, layout, position, transition){
+                position = (position && position.split(" ")) || [];
+
+                // Check if specified layout is valid
+                if(_inArray(allowed_layouts, layout) > -1){
+
+                    // Add layout classes
+                    _addClass(modal, layout);
+
+                    // Add position class (if specified)
+                    if(!(layout === 'bar' && position[0] === 'middle') && _inArray(allowed_positions, position[0]) > -1){
+                        for(var i=0; i<position.length; i++){
+                            _addClass(modal, position[i]);
+                        }
+                    }
+                }
+
+                // Add transition class
+                (_inArray(allowed_transitions, transition) > -1) && _addClass(modal, transition);
+            }
+
+            if(consent_modal_exists && consent_modal_options){
+                _setLayout(
+                    consent_modal,
+                    ['box', 'bar', 'cloud'],
+                    ['top', 'middle', 'bottom'],
+                    ['zoom', 'slide'],
+                    consent_modal_options['layout'],
+                    consent_modal_options['position'],
+                    consent_modal_options['transition']
+                );
+            }
+
+            if(!only_consent_modal && settings_modal_options){
+                _setLayout(
+                    settings_container,
+                    ['bar'],
+                    ['left', 'right'],
+                    ['zoom', 'slide'],
+                    settings_modal_options['layout'],
+                    settings_modal_options['position'],
+                    settings_modal_options['transition']
+                );
+            }
+        }
+
+        /**
+         * Returns true if cookie category is accepted by the user
+         * @param {string} cookie_category
+         * @returns {boolean}
+         */
+        _cookieconsent.allowedCategory = function(cookie_category){
+
+            if(!invalid_consent || _config.mode === 'opt-in')
+                var allowed_categories = JSON.parse(_getCookie(_config.cookie_name, 'one', true) || '{}')['categories'] || []
+            else  // mode is 'opt-out'
+                var allowed_categories = default_enabled_categories;
+
+            return _inArray(allowed_categories, cookie_category) > -1;
+        }
+
+        /**
+         * "Init" method. Will run once and only if modals do not exist
+         */
+        _cookieconsent.run = function(user_config){
+            if(!document.getElementById('cc_div')){
+
+                // configure all parameters
+                _setConfig(user_config);
+
+                // if is bot, don't run plugin
+                if(is_bot) return;
+
+                // Retrieve cookie value (if set)
+                saved_cookie_content = JSON.parse(_getCookie(_config.cookie_name, 'one', true) || "{}");
+
+                // Retrieve "consent_uuid"
+                consent_uuid = saved_cookie_content['consent_uuid'];
+
+                // If "consent_uuid" is present => assume that consent was previously given
+                var cookie_consent_accepted = consent_uuid !== undefined;
+
+                // Retrieve "consent_date"
+                consent_date = saved_cookie_content['consent_date'];
+                consent_date && (consent_date = new Date(consent_date));
+
+                // Retrieve "last_consent_update"
+                last_consent_update = saved_cookie_content['last_consent_update'];
+                last_consent_update && (last_consent_update = new Date(last_consent_update));
+
+                // Retrieve "data"
+                cookie_data = saved_cookie_content['data'] !== undefined ? saved_cookie_content['data'] : null;
+
+                // If revision is enabled and current value !== saved value inside the cookie => revision is not valid
+                if(revision_enabled && saved_cookie_content['revision'] !== _config.revision){
+                    valid_revision = false;
+                }
+
+                // If consent is not valid => create consent modal
+                consent_modal_exists = invalid_consent = (!cookie_consent_accepted || !valid_revision || !consent_date || !last_consent_update || !consent_uuid);
+
+                // Generate cookie-settings dom (& consent modal)
+                _createCookieConsentHTML();
+
+                _getModalFocusableData();
+                _guiManager(user_config['gui_options']);
+                _addDataButtonListeners();
+
+                if(_config.autorun && consent_modal_exists){
+                    _cookieconsent.show(user_config['delay'] || 0);
+                }
+
+                // Add class to enable animations/transitions
+                setTimeout(function(){_addClass(main_container, 'c--anim');}, 30);
+
+                // Accessibility :=> if tab pressed => trap focus inside modal
+                setTimeout(function(){_handleFocusTrap();}, 100);
+
+                // If consent is valid
+                if(!invalid_consent){
+                    var rfc_prop_exists = typeof saved_cookie_content['rfc_cookie'] === "boolean";
+
+                    /*
+                     * Convert cookie to rfc format (if `use_rfc_cookie` is enabled)
+                     */
+                    if(!rfc_prop_exists || (rfc_prop_exists && saved_cookie_content['rfc_cookie'] !== _config.use_rfc_cookie)){
+                        saved_cookie_content['rfc_cookie'] = _config.use_rfc_cookie;
+                        _setCookie(_config.cookie_name, JSON.stringify(saved_cookie_content));
+                    }
+
+                    /**
+                     * Update accept type
+                     */
+                    accept_type = _getAcceptType(_getCurrentCategoriesState());
+
+                    _manageExistingScripts();
+
+                    if(typeof onAccept === 'function')
+                        onAccept(saved_cookie_content);
+
+                    _log("CookieConsent [NOTICE]: consent already given!", saved_cookie_content);
+
+                }else{
+                    if(_config.mode === 'opt-out'){
+                        _log("CookieConsent [CONFIG] mode='" + _config.mode + "', default enabled categories:", default_enabled_categories);
+                        _manageExistingScripts(default_enabled_categories);
+                    }
+                    _log("CookieConsent [NOTICE]: ask for consent!");
+                }
+            }else{
+                _log("CookieConsent [NOTICE]: cookie consent already attached to body!");
+            }
+        }
+
+        /**
+         * This function handles the loading/activation logic of the already
+         * existing scripts based on the current accepted cookie categories
+         *
+         * @param {string[]} [must_enable_categories]
+         */
+        var _manageExistingScripts = function(must_enable_categories){
+
+            if(!_config.page_scripts) return;
+
+            // get all the scripts with "cookie-category" attribute
+            var scripts = document.querySelectorAll('script[' + _config.script_selector + ']');
+            var accepted_categories = must_enable_categories || saved_cookie_content['categories'] || [];
+
+            /**
+             * Load scripts (sequentially), using a recursive function
+             * which loops through the scripts array
+             * @param {Element[]} scripts scripts to load
+             * @param {number} index current script to load
+             */
+            var _loadScripts = function(scripts, index){
+                if(index < scripts.length){
+
+                    var curr_script = scripts[index];
+                    var curr_script_category = curr_script.getAttribute(_config.script_selector);
+
+                    /**
+                     * If current script's category is on the array of categories
+                     * accepted by the user => load script
+                     */
+                    if(_inArray(accepted_categories, curr_script_category) > -1){
+
+                        curr_script.type = curr_script.getAttribute('data-type') || 'text/javascript';
+                        curr_script.removeAttribute(_config.script_selector);
+
+                        // get current script data-src
+                        var src = curr_script.getAttribute('data-src');
+
+                        // some scripts (like ga) might throw warning if data-src is present
+                        src && curr_script.removeAttribute('data-src');
+
+                        // create fresh script (with the same code)
+                        var fresh_script = _createNode('script');
+                        fresh_script.textContent = curr_script.innerHTML;
+
+                        // Copy attributes over to the new "revived" script
+                        (function(destination, source){
+                            var attributes = source.attributes;
+                            var len = attributes.length;
+                            for(var i=0; i<len; i++){
+                                var attr_name = attributes[i].nodeName;
+                                destination.setAttribute(attr_name , source[attr_name] || source.getAttribute(attr_name));
+                            }
+                        })(fresh_script, curr_script);
+
+                        // set src (if data-src found)
+                        src ? (fresh_script.src = src) : (src = curr_script.src);
+
+                        // if script has "src" attribute
+                        // try loading it sequentially
+                        if(src){
+                            // load script sequentially => the next script will not be loaded
+                            // until the current's script onload event triggers
+                            if(fresh_script.readyState) {  // only required for IE <9
+                                fresh_script.onreadystatechange = function() {
+                                    if (fresh_script.readyState === "loaded" || fresh_script.readyState === "complete" ) {
+                                        fresh_script.onreadystatechange = null;
+                                        _loadScripts(scripts, ++index);
+                                    }
+                                };
+                            }else{  // others
+                                fresh_script.onload = function(){
+                                    fresh_script.onload = null;
+                                    _loadScripts(scripts, ++index);
+                                };
+                            }
+                        }
+
+                        // Replace current "sleeping" script with the new "revived" one
+                        curr_script.parentNode.replaceChild(fresh_script, curr_script);
+
+                        /**
+                         * If we managed to get here and scr is still set, it means that
+                         * the script is loading/loaded sequentially so don't go any further
+                         */
+                        if(src) return;
+                    }
+
+                    // Go to next script right away
+                    _loadScripts(scripts, ++index);
+                }
+            }
+
+            _loadScripts(scripts, 0);
+        }
+
+        /**
+         * Save custom data inside cookie
+         * @param {object|string} new_data
+         * @param {string} [mode]
+         * @returns {boolean}
+         */
+        var _setCookieData = function(new_data, mode){
+
+            var set = false;
+            /**
+             * If mode is 'update':
+             * add/update only the specified props.
+             */
+            if(mode === 'update'){
+                cookie_data = _cookieconsent.get('data');
+                var same_type = typeof cookie_data === typeof new_data;
+
+                if(same_type && typeof cookie_data === "object"){
+                    !cookie_data && (cookie_data = {});
+
+                    for(var prop in new_data){
+                        if(cookie_data[prop] !== new_data[prop]){
+                            cookie_data[prop] = new_data[prop]
+                            set = true;
+                        }
+                    }
+                }else if((same_type || !cookie_data) && cookie_data !== new_data){
+                    cookie_data = new_data;
+                    set = true;
+                }
+            }else{
+                cookie_data = new_data;
+                set = true;
+            }
+
+            if(set){
+                saved_cookie_content['data'] = cookie_data;
+                _setCookie(_config.cookie_name, JSON.stringify(saved_cookie_content));
+            }
+
+            return set;
+        }
+
+        /**
+         * Helper method to set a variety of fields
+         * @param {string} field
+         * @param {object} data
+         * @returns {boolean}
+         */
+        _cookieconsent.set = function(field, data){
+            switch(field){
+                case 'data': return _setCookieData(data['value'], data['mode']);
+                default: return false;
+            }
+        }
+
+        /**
+         * Retrieve data from existing cookie
+         * @param {string} field
+         * @param {string} [cookie_name]
+         * @returns {any}
+         */
+        _cookieconsent.get = function(field, cookie_name){
+            var cookie = JSON.parse(_getCookie(cookie_name || _config.cookie_name, 'one', true) || "{}");
+
+            return cookie[field];
+        }
+
+        /**
+         * Read current configuration value
+         * @returns {any}
+         */
+        _cookieconsent.getConfig = function(field){
+            return _config[field] || user_config[field];
+        }
+
+        /**
+         * Obtain accepted and rejected categories
+         * @returns {{accepted: string[], rejected: string[]}}
+         */
+        var _getCurrentCategoriesState = function(){
+
+            // get accepted categories
+            accepted_categories = saved_cookie_content['categories'] || [];
+
+            // calculate rejected categories (all_categories - accepted_categories)
+            rejected_categories = all_categories.filter(function(category){
+                return (_inArray(accepted_categories, category) === -1);
+            });
+
+            return {
+                accepted: accepted_categories,
+                rejected: rejected_categories
+            }
+        }
+
+        /**
+         * Calculate "accept type" given current categories state
+         * @param {{accepted: string[], rejected: string[]}} currentCategoriesState
+         * @returns {string}
+         */
+        var _getAcceptType = function(currentCategoriesState){
+
+            var type = 'custom';
+
+            // number of categories marked as necessary/readonly
+            var necessary_categories_length = readonly_categories.filter(function(readonly){
+                return readonly === true;
+            }).length;
+
+            // calculate accept type based on accepted/rejected categories
+            if(currentCategoriesState.accepted.length === all_categories.length)
+                type = 'all';
+            else if(currentCategoriesState.accepted.length === necessary_categories_length)
+                type = 'necessary'
+
+            return type;
+        }
+
+        /**
+         * @typedef {object} userPreferences
+         * @property {string} accept_type
+         * @property {string[]} accepted_categories
+         * @property {string[]} rejected_categories
+         */
+
+        /**
+         * Retrieve current user preferences (summary)
+         * @returns {userPreferences}
+         */
+        _cookieconsent.getUserPreferences = function(){
+            var currentCategoriesState = _getCurrentCategoriesState();
+            var accept_type = _getAcceptType(currentCategoriesState);
+
+            return {
+                'accept_type': accept_type,
+                'accepted_categories': currentCategoriesState.accepted,
+                'rejected_categories': currentCategoriesState.rejected
+            }
+        }
+
+        /**
+         * Function which will run after script load
+         * @callback scriptLoaded
+         */
+
+        /**
+         * Dynamically load script (append to head)
+         * @param {string} src
+         * @param {scriptLoaded} callback
+         * @param {object[]} [attrs] Custom attributes
+         */
+        _cookieconsent.loadScript = function(src, callback, attrs){
+
+            var function_defined = typeof callback === 'function';
+
+            // Load script only if not already loaded
+            if(!document.querySelector('script[src="' + src + '"]')){
+
+                var script = _createNode('script');
+
+                // if an array is provided => add custom attributes
+                if(attrs && attrs.length > 0){
+                    for(var i=0; i<attrs.length; ++i){
+                        attrs[i] && script.setAttribute(attrs[i]['name'], attrs[i]['value']);
+                    }
+                }
+
+                // if callback function defined => run callback onload
+                if(function_defined){
+                    script.onload = callback;
+                }
+
+                script.src = src;
+
+                /**
+                 * Append script to head
+                 */
+                document.head.appendChild(script);
+            }else{
+                function_defined && callback();
+            }
+        }
+
+        /**
+         * Manage dynamically loaded scripts: https://github.com/orestbida/cookieconsent/issues/101
+         * If plugin has already run, call this method to enable
+         * the newly added scripts based on currently selected preferences
+         */
+        _cookieconsent.updateScripts = function(){
+            _manageExistingScripts();
+        }
+
+        /**
+         * Show cookie consent modal (with delay parameter)
+         * @param {number} [delay]
+         * @param {boolean} [create_modal] create modal if it doesn't exist
+         */
+        _cookieconsent.show = function(delay, create_modal){
+
+            if(create_modal === true)
+                _createConsentModal(_config.current_lang);
+
+            if(!consent_modal_exists)
+                return;
+
+            last_elem_before_modal = document.activeElement;
+            current_modal_focusable = consent_modal_focusable;
+            current_focused_modal = consent_modal;
+
+            consent_modal_visible = true;
+            consent_modal.removeAttribute('aria-hidden');
+
+            setTimeout(function() {
+                _addClass(html_dom, "show--consent");
+                _log("CookieConsent [MODAL]: show consent_modal");
+            }, delay > 0 ? delay : (create_modal ? 30 : 0));
+
+        }
+
+        /**
+         * Hide consent modal
+         */
+        _cookieconsent.hide = function(){
+
+            if(!consent_modal_exists)
+                return;
+
+            consent_modal_visible = false;
+
+            setFocus(cmFocusSpan);
+
+            consent_modal.setAttribute('aria-hidden', 'true');
+            _removeClass(html_dom, "show--consent");
+
+            if(last_elem_before_modal) {
+                setFocus(last_elem_before_modal);
+                last_elem_before_modal = null;
+            }
+
+            _log("CookieConsent [MODAL]: hide");
+        }
+
+        /**
+         * Show settings modal (with optional delay)
+         * @param {number} delay
+         */
+        _cookieconsent.showSettings = function(delay){
+
+            settings_modal_visible = true;
+            settings_container.removeAttribute('aria-hidden');
+
+            if(consent_modal_visible){
+                last_consent_modal_btn_focus = document.activeElement;
+            }else{
+                last_elem_before_modal = document.activeElement;
+            }
+
+            current_focused_modal = settings_container;
+            current_modal_focusable = settings_modal_focusable;
+
+            setTimeout(function() {
+                _addClass(html_dom, "show--settings");
+                _log("CookieConsent [SETTINGS]: show settings_modal");
+            }, delay > 0 ? delay : 0);
+        }
+
+        /**
+         * Hide settings modal
+         */
+        _cookieconsent.hideSettings = function(){
+
+            settings_modal_visible = false;
+
+            discardUnsavedToggles();
+
+            setFocus(smFocusSpan);
+
+            settings_container.setAttribute('aria-hidden', 'true');
+            _removeClass(html_dom, "show--settings");
+
+            if(consent_modal_visible){
+                if(last_consent_modal_btn_focus) {
+                    setFocus(last_consent_modal_btn_focus);
+                    last_consent_modal_btn_focus = null;
+                }
+                current_focused_modal = consent_modal;
+                current_modal_focusable = consent_modal_focusable;
+            }else{
+                if(last_elem_before_modal) {
+                    setFocus(last_elem_before_modal);
+                    last_elem_before_modal = null;
+                }
+            }
+
+            _log("CookieConsent [SETTINGS]: hide settings_modal");
+        }
+
+        /**
+         * Accept cookieconsent function API
+         * @param {string[]|string} _categories - Categories to accept
+         * @param {string[]} [_exclusions] - Excluded categories [optional]
+         */
+        _cookieconsent.accept = function(_categories, _exclusions){
+            var categories = _categories || undefined;
+            var exclusions = _exclusions || [];
+            var to_accept = [];
+
+            /**
+             * Get all accepted categories
+             * @returns {string[]}
+             */
+            var _getCurrentPreferences = function(){
+                var toggles = document.querySelectorAll('.c-tgl') || [];
+                var states = [];
+
+                for(var i=0; i<toggles.length; i++){
+                    if(toggles[i].checked){
+                        states.push(toggles[i].value);
+                    }
+                }
+                return states;
+            }
+
+            if(!categories){
+                to_accept = _getCurrentPreferences();
+            }else{
+                if(
+                    typeof categories === "object" &&
+                    typeof categories.length === "number"
+                ){
+                    for(var i=0; i<categories.length; i++){
+                        if(_inArray(all_categories, categories[i]) !== -1)
+                            to_accept.push(categories[i]);
+                    }
+                }else if(typeof categories === "string"){
+                    if(categories === 'all')
+                        to_accept = all_categories.slice();
+                    else{
+                        if(_inArray(all_categories, categories) !== -1)
+                            to_accept.push(categories);
+                    }
+                }
+            }
+
+            // Remove excluded categories
+            if(exclusions.length >= 1){
+                for(i=0; i<exclusions.length; i++){
+                    to_accept = to_accept.filter(function(item) {
+                        return item !== exclusions[i]
+                    })
+                }
+            }
+
+            // Add back all the categories set as "readonly/required"
+            for(i=0; i<all_categories.length; i++){
+                if(
+                    readonly_categories[i] === true &&
+                    _inArray(to_accept, all_categories[i]) === -1
+                ){
+                    to_accept.push(all_categories[i]);
+                }
+            }
+
+            _saveCookiePreferences(to_accept);
+        }
+
+        /**
+         * API function to easily erase cookies
+         * @param {(string|string[])} _cookies
+         * @param {string} [_path] - optional
+         * @param {string} [_domain] - optional
+         */
+        _cookieconsent.eraseCookies = function(_cookies, _path, _domain){
+            var cookies = [];
+            var domains = _domain
+                ? [_domain, "."+_domain]
+                : [_config.cookie_domain, "."+_config.cookie_domain];
+
+            if(typeof _cookies === "object" && _cookies.length > 0){
+                for(var i=0; i<_cookies.length; i++){
+                    this.validCookie(_cookies[i]) && cookies.push(_cookies[i]);
+                }
+            }else{
+                this.validCookie(_cookies) && cookies.push(_cookies);
+            }
+
+            _eraseCookies(cookies, _path, domains);
+        }
+
+        /**
+         * Set cookie, by specifying name and value
+         * @param {string} name
+         * @param {string} value
+         */
+        var _setCookie = function(name, value) {
+
+            var cookie_expiration = _config.cookie_expiration;
+
+            if(typeof _config.cookie_necessary_only_expiration === 'number' && accept_type === 'necessary')
+                cookie_expiration = _config.cookie_necessary_only_expiration;
+
+            value = _config.use_rfc_cookie ? encodeURIComponent(value) : value;
+
+            var date = new Date();
+            date.setTime(date.getTime() + (1000 * (cookie_expiration * 24 * 60 * 60)));
+            var expires = "; expires=" + date.toUTCString();
+
+            var cookieStr = name + "=" + (value || "") + expires + "; Path=" + _config.cookie_path + ";";
+            cookieStr += " SameSite=" + _config.cookie_same_site + ";";
+
+            // assures cookie works with localhost (=> don't specify domain if on localhost)
+            if(location.hostname.indexOf(".") > -1 && _config.cookie_domain){
+                cookieStr += " Domain=" + _config.cookie_domain + ";";
+            }
+
+            if(location.protocol === "https:") {
+                cookieStr += " Secure;";
+            }
+
+            document.cookie = cookieStr;
+
+            _log("CookieConsent [SET_COOKIE]: '" + name + "' expires after " + cookie_expiration + " day(s)");
+        }
+
+        /**
+         * Get cookie value by name,
+         * returns the cookie value if found (or an array
+         * of cookies if filter provided), otherwise empty string: ""
+         * @param {string} name
+         * @param {string} filter 'one' or 'all'
+         * @param {boolean} [get_value] set to true to obtain its value
+         * @returns {string|string[]}
+         */
+        var _getCookie = function(name, filter, get_value) {
+            var found;
+
+            if(filter === 'one'){
+                found = document.cookie.match("(^|;)\\s*" + name + "\\s*=\\s*([^;]+)");
+                found = found ? (get_value ? found.pop() : name) : "";
+
+                if(found && name === _config.cookie_name){
+                    try{
+                        found = JSON.parse(found)
+                    }catch(e){
+                        try {
+                            found = JSON.parse(decodeURIComponent(found))
+                        } catch (e) {
+                            // if I got here => cookie value is not a valid json string
+                            found = {};
+                        }
+                    }
+                    found = JSON.stringify(found);
+                }
+            }else if(filter === 'all'){
+                // array of names of all existing cookies
+                var cookies = document.cookie.split(/;\s*/); found = [];
+                for(var i=0; i<cookies.length; i++){
+                    found.push(cookies[i].split("=")[0]);
+                }
+            }
+
+            return found;
+        }
+
+        /**
+         * Delete cookie by name & path
+         * @param {string[]} cookies
+         * @param {string} [custom_path] - optional
+         * @param {string[]} domains - example: ['domain.com', '.domain.com']
+         */
+        var _eraseCookies = function(cookies, custom_path, domains) {
+            var path = custom_path ? custom_path : '/';
+            var expires = 'Expires=Thu, 01 Jan 1970 00:00:01 GMT;';
+
+            for(var i=0; i<cookies.length; i++){
+                for(var j=0; j<domains.length; j++){
+                    document.cookie = cookies[i] + '=; path=' + path +
+                    (domains[j].indexOf('.') == 0 ? '; domain=' + domains[j] : "") + '; ' + expires;
+                }
+                _log("CookieConsent [AUTOCLEAR]: deleting cookie: '" + cookies[i] + "' path: '" + path + "' domain:", domains);
+            }
+        }
+
+        /**
+         * Returns true if cookie was found and has valid value (not empty string)
+         * @param {string} cookie_name
+         * @returns {boolean}
+         */
+        _cookieconsent.validCookie = function(cookie_name){
+            return _getCookie(cookie_name, 'one', true) !== "";
+        }
+
+        /**
+         * Function to run when event is fired
+         * @callback eventFired
+         */
+
+        /**
+         * Add event listener to dom object (cross browser function)
+         * @param {Element} elem
+         * @param {string} event
+         * @param {eventFired} fn
+         * @param {boolean} [isPassive]
+         */
+        var _addEvent = function(elem, event, fn, isPassive) {
+            elem.addEventListener(event, fn , isPassive === true ? { passive: true } : false);
+        }
+
+        /**
+         * Get all prop. keys defined inside object
+         * @param {Object} obj
+         */
+        var _getKeys = function(obj){
+            if(typeof obj === "object"){
+                return Object.keys(obj);
+            }
+        }
+
+        /**
+         * Append class to the specified dom element
+         * @param {HTMLElement} elem
+         * @param {string} classname
+         */
+        var _addClass = function (elem, classname){
+            elem.classList.add(classname);
+        }
+
+        /**
+         * Remove specified class from dom element
+         * @param {HTMLElement} elem
+         * @param {string} classname
+         */
+        var _removeClass = function (el, className) {
+            el.classList.remove(className);
+        }
+
+        /**
+         * Check if html element has class
+         * @param {HTMLElement} el
+         * @param {string} className
+         */
+        var _hasClass = function(el, className) {
+            return el.classList.contains(className);
+        }
+
+        /**
+         * @param {1 | 2} modal_id
+         */
+        var generateFocusSpan = function(modal_id) {
+            var span = _createNode('span');
+            span.tabIndex = -1;
+
+            if(modal_id === 1)
+                cmFocusSpan = span;
+            else
+                smFocusSpan = span;
+
+            return span;
+        }
+
+        /**
+         * @param {HTMLElement} el
+         */
+        var setFocus = function(el) {
+            el && el.focus();
+        }
+
+        /**
+         * https://github.com/orestbida/cookieconsent/issues/481
+         */
+        var discardUnsavedToggles = function() {
+
+            /**
+             * @type {NodeListOf<HTMLInputElement>}
+             */
+            var toggles = settings_inner.querySelectorAll('.c-tgl');
+
+            for(var i=0; i<toggles.length; i++) {
+                var category = toggles[i].value;
+                var is_readonly = readonly_categories.indexOf(category) > -1;
+
+                toggles[i].checked = is_readonly || _cookieconsent.allowedCategory(category);
+            }
+
+        }
+
+        return _cookieconsent;
+    };
+
+    var init = 'initCookieConsent';
+    /**
+     * Make CookieConsent object accessible globally
+     */
+    if(typeof window !== 'undefined' && typeof window[init] !== 'function'){
+        window[init] = CookieConsent
+    }
+})();
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/core-extra.css
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/core-extra.css	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/core-extra.css	(revision 38779)
@@ -0,0 +1,941 @@
+
+/* secondary color: #12264A */
+/* banner top: #F4F4F4 */
+
+/* 
+Headings:
+
+font-family: 'Oswald', Arial;
+font-style: normal;
+font-weight: normal;
+
+Body:
+  font-family: Roboto;
+  font-size: 18px;
+*/
+
+:root {
+    --gs-primary-fg:       #ffffff;
+    /* --gs-primary-fg:       hsl(46, 100%, 49%); &/ /* #FCC100 */
+    
+    /* --gs-primary-bg:       hsl(284, 84%, 20%); */
+    /*--gs-primary-bg:       hsl(46, 100%, 49%);*/ /* #FCC100 */
+    --gs-primary-bg:       hsl(219, 61%, 18%); /* #12264A */
+    --gs-primary-bg-blue:       hsl(219, 61%, 18%); /* #12264A */
+
+    /*--gs-primary-bg:       hsl( 0,  0%, 96%);*/  /* #F4F4F4 */
+
+    /*
+    --gs-primary-border:   hsl(46, 88%, 35%);
+    --gs-primary-hover-bg: hsl(46, 100%, 58%);
+   */
+    
+    --gs-primary-border:   hsl(219, 40%, 10%);
+    --gs-primary-hover-bg: hsl(219, 61%, 25%); /* was 295 rather then 284 */
+
+
+
+    --gs-secondary-bg:     #E7D821; 
+    /*--gs-secondary-bg:     hsl(46,OD 100%, 49%);  */
+    /*--gs-secondary-bg:     hsl(219, 60%, 18%);*/ /* was 295, and eurovision-lod had an hsla() alpha val of 0.7 */
+    
+    /* --gs-primary-text-fg: var(--gs-primary-fg); */
+    /*--gs-primary-text-fg: var(--gs-primary-bg); */
+    --gs-primary-text-fg: #000000);
+    /* --gs-tab-bg:          var(--gs-primary-bg); */
+    --gs-tab-bg:          #000000;
+
+    
+    --gs-bg: #fff;
+    --gs-text:#2d4156;
+    
+    --gs-btn-primary-bg: #459e00;
+    --gs-btn-primary-text: var(--cc-bg);
+    --gs-btn-primary-hover-bg: #255500;
+    --gs-btn-secondary-bg: #eaeff2;
+    --gs-btn-secondary-text: var(--cc-text);
+    --XX-overlay-bg: rgba(4, 6, 8, .85);
+}
+
+/* 
+   cc => 'cookie consent'
+   The library we use for this defines its own root vars
+*/
+
+:root {
+    /*
+    --cc-btn-primary-bg: hsl(284, 84%, 20%);
+    --cc-btn-primary-hover-bg: hsl(295, 92%, 30%);
+   */
+    
+    --cc-btn-primary-bg: hsl(46, 100%, 49%);
+    --cc-btn-primary-hover-bg: hsl(46, 100%, 58%);
+
+}
+
+
+
+
+/* Override existing values */
+
+#container {
+	max-width: 1280px;
+}
+
+
+/*
+.container-upper {
+    margin: 0 auto 0px auto;
+}
+
+.container-lower {
+    max-width: 1200px;
+    line-height: 145%;
+    margin: 0 auto 20px auto;
+}
+*/
+
+
+
+
+#topArea {
+	max-width: 1280px;
+}
+
+
+/* Add any new CSS you require for the interface here! */
+
+body { 
+    background-color: #fff;
+}
+
+/* 
+   Streetlife York has nav-bar and content in the same font (Roboto)
+   Heading in XX
+*/
+
+
+body { 
+    font-family: Roboto;
+}
+
+
+.ui-widget {
+    font-family: Roboto;
+    /* font-size: 18px; */    
+}
+
+.ui-widget input,
+.ui-widget select,
+.ui-widget textarea,
+.ui-widget button {
+    font-family: Roboto;
+    /* font-size: 18px; */
+}
+
+h1, h2, h3, h4, h5, h6 {
+    font-family: 'Oswald', Arial;
+    font-style: normal;
+    font-weight: normal;
+    color: #000000 !important;
+    line-height: 120%;
+}
+
+h4 {
+    font-size: 110%;
+}
+
+/* control whether you want roundd corners or not */
+/* => GS3 defines the follow to be 6pt */
+.ui-corner-all, .ui-corner-top, .ui-corner-right, .ui-corner-tr {
+  border-top-right-radius: 0px;
+}
+.ui-corner-all, .ui-corner-top, .ui-corner-left, .ui-corner-tl {
+  border-top-left-radius: 0px;
+}
+
+.ui-corner-all, .ui-corner-bottom, .ui-corner-right, .ui-corner-br {
+  border-bottom-right-radius: 0px;
+}
+.ui-corner-all, .ui-corner-bottom, .ui-corner-left, .ui-corner-bl {
+  border-bottom-left-radius: 0px;
+}
+
+
+
+#thewillow-header {
+    background-color: #F4F4F4;
+    border-bottom: 10px solid var(--gs-primary-bg-blue);
+}
+
+#topArea.ui-state-default {
+    margin: auto;
+    width: 100%;
+    border: none;
+    background-image: none;
+    background-color: #F4F4F4;
+    font-weight: bold;
+    color:#000000;
+}
+
+#topArea.ui-state-default a,
+#topArea.ui-state-default a:visited {
+    color: #666666;    
+}
+    
+#gs_banner {
+    /*background-color: #F4F4F4;  */
+    background-color: #FFFFFF; 
+    color: #595959;
+    border-bottom: #E7D821 solid 2px;
+}
+
+.ui-widget-header {
+    border: 1px solid #d4ccb0;
+    background-image: none;
+    background-color: var(--gs-primary-bg);
+    color: #ffffff;
+    font-weight: bold;
+}
+
+
+#gs-nav .ui-state-default, #bannerLinksTab .ui-state-default
+/* #gs_footer.ui-widget-header, */
+/* .collectionLink .ui-state-default */
+{
+    border: 1px solid #d4ccb0;
+    background-image: none;
+    /* background-color: var(--gs-secondary-bg) !important; */
+    background-color: var(--gs-secondary-bg);
+    /*color: #ffffff; */
+    color: #000000;
+    font-weight: bold;
+
+    /* The following should probably be moved over to default interface css */
+    text-align: left;
+    /*padding-left: 6px; */
+    padding: 0.6rem 0.5rem 0.4rem 0.7rem;
+
+    font-size: 110%;
+}
+
+
+#gs-nav a {
+    font-size: 120%;
+}
+
+#quicksearcharea a {
+     font-size: 120%;
+}
+
+#gs-document {
+    padding-top: 1rem;
+}
+
+/*
+.ui-widget {
+	font-family: "Open Sans", sans-serif;
+}
+
+.ui-widget input,
+.ui-widget select,
+.ui-widget textarea,
+.ui-widget button {
+	font-family: "Open Sans", sans-serif;
+}
+*/
+
+.ui-widget.ui-widget-content {
+    border: 1px solid #c5c5c5;
+}
+
+.ui-widget-content {
+    /*border: 1px solid #dddddd; */
+    border: none;
+    background: #ffffff;
+    /* color: #2d3748; */
+}
+/*
+.ui-widget-content a {
+	color: #2d3748;
+}
+.ui-widget-header {
+	border: 1px solid #5a5a5a;
+	background: #404040;
+	color: #2d3748;
+	font-weight: bold;
+}
+.ui-widget-header a {
+	color: #2d3748;
+}
+
+*/
+
+
+/* Based on: https://stackoverflow.com/questions/17838380/styling-jquery-ui-autocomplete */
+
+.ui-menu .ui-menu-item {
+    background:white;
+    color: black;
+    font-size:80%;
+}
+
+
+
+.ui-state-default,
+.ui-widget-content .ui-state-default,
+.ui-widget-header .ui-state-default,
+.ui-button,
+html .ui-button.ui-state-disabled:hover,
+html .ui-button.ui-state-disabled:active {
+    border: 1px solid var(--gs-primary-border);
+    background-image: none;
+    /*background-image: url(images/ui-icons_eeeeee_256x240.png); */
+    background-color: var(--gs-primary-bg);
+    font-weight: bold;
+    color: var(--gs-primary-text-fg);
+}
+
+
+.ui-state-hover,
+.ui-widget-content .ui-state-hover,
+.ui-widget-header .ui-state-hover,
+.ui-state-focus,
+.ui-widget-content .ui-state-focus,
+.ui-widget-header .ui-state-focus,
+.ui-button:hover,
+.ui-button:focus {
+    border: 1px solid var(--gs-primary-border); 
+    background-image: none; 
+    /*background-image: url(images/ui-icons_eeeeee_256x240.png); */
+    background-color: var(--gs-primary-hover-bg);
+}
+
+.ui-state-active,
+.ui-widget-content .ui-state-active,
+.ui-widget-header .ui-state-active,
+a.ui-button:active,
+.ui-button:active,
+.ui-button.ui-state-active:hover {
+    border: 1px solid var(--gs-primary-text-fg); /* flash border same colour as text */
+    background-color: var(--gs-primary-hover-bg);
+    background-image: none; 
+    /*background-image: url(images/ui-icons_eeeeee_256x240.png);  */
+    font-weight: bold;
+    color: var(--gs-primary-text-fg);
+}
+
+/*
+.ui-state-default a, .ui-state-default a:link {
+    color: #000000 !importantxx;
+    background-color: #E7D821 !importantxx;
+}
+*/
+
+/* The following was used as a hack to get regular CL tabs and artificially introduced Tabs
+   to have a controlable tab-selected colour/background coour */
+
+/*
+#gs-nav .ui-state-default a, gs-nav .ui-state-default a:link {
+    color: #000000 !important;
+}
+
+#gs-nav .ui-state-default.ui-tabs-selected a, gs-nav .ui-state-default.ui-tabs-selected a:link {
+    color: #E7D821 !important;
+}
+*/
+
+.ui-state-active a,
+.ui-state-active a:link,
+.ui-state-active a:visited {
+    color: var(--gs-primary-text-fg);
+    background-color: var(--gs-primary-hover);
+}
+
+
+
+
+li.ui-tabs-selected {
+    background-color: #000000 !important; 
+    color: #E7D821 !important;
+    border-color: #000000 !important;
+}
+
+
+
+/*
+jquery-ui main theme is different image, and tingediwth green :
+
+  background-image: url(images/ui-icons_8DC262_256x240.png);
+
+.ui-state-active .ui-icon, .ui-button:active .ui-icon {
+    background-image: url(images/ui-icons_eeeeee_256x240.png);
+}
+*/
+
+
+#usercommentlink a, #usercommentlogoutlink a {
+  color: var(--gs-primary-bg) !important;
+}
+
+.usercommentheading {
+    color: var(--gs-primary-bg) !important;
+}
+
+
+
+.navList {
+    background-color: var(--gs-primary-bg);
+}
+
+
+#titlearea {
+    padding-top: 6px;
+o}
+
+#quicksearcharea {
+    padding-top: 6px;
+    padding-right: 4px;
+}
+
+#titlesearchcontainer {
+    padding-bottom: 15px;
+}
+
+
+#commentssection.centrediv {
+    width: 100%; 
+    margin: 0;
+}
+
+#userMenuDiv {
+    text-transform: none;
+}
+
+#gs_content {
+    width: 80%;
+    margin-left: auto;
+    margin-right: auto;
+}
+
+.metadataTable{
+    width: 100%;
+}
+
+#commentarea textarea {
+    width: 100%;
+}
+
+#gs_content a {
+    /* border-bottom: 1px solid #003FC5; */
+    border-bottom: 1px solid #E7D821;
+}
+
+#gs_content a:hover {
+    /*border-bottom: 2px solid #003FC5; */
+    border-bottom: 2px solid #E7D821;
+}
+
+#gs_content .rt-column a, #gs_content .rt-column a:link, #gs_content .rt-column a:visited {
+    border-bottom: none;
+    padding-bottom: 1px;
+}
+
+#gs_content .rt-column a:hover {
+    border-bottom: none;
+    padding-bottom: 1px;
+    background-color: #E6E6E6;
+}
+
+
+#gs_content .rt-column:hover {
+    background-color: #E6E6E6;
+}
+
+
+
+
+
+#new-banner {
+    width: 1280px;
+    background-size: cover;
+    margin-left: auto;
+    margin-right: auto;
+    height: 250px;	      
+}
+
+.new-banner-page-about {
+    background-image: url(../images/banner-images/1-Willow-Exterior-York-Press.png);
+}		
+
+.new-banner-page-stories {
+    background-image: url(../images/banner-images/2-willow-york-ceri-oakes-tommy.png);
+}		
+
+.new-banner-action-query {
+    background-image: url(../images/banner-images/9-Rainbow-Plaque.png);
+}		
+
+.new-banner-doc-itb-video {
+    background-image: url(../images/banner-images/3-Soo-and-Tommy-in-the-Willow-Restaurant-%20Vicki-Fong.png);
+}
+.new-banner-doc-wg-video {
+    background-image: url(../images/banner-images/4-I-love-Willow-The-Tab.png);
+}
+.new-banner-doc-li-video {
+    background-image: url(../images/banner-images/5-love-it-Ceri-Oakes.png);
+}
+.new-banner-doc-cd-video {
+    background-image: url(../images/banner-images/6-cheap-drinks-Ceri-Oakes.png);
+}
+.new-banner-doc-cm-video {
+    background-image: url(../images/banner-images/7-Cheesy-Music.png);
+}
+.new-banner-doc-tln-video {
+    background-image: url(../images/banner-images/8-The-Last-Night.png);
+}
+.new-banner-doc-default-video {
+    background-image: url(../images/banner-images/1-Willow-Exterior-York-Press.png);
+}		
+
+.new-banner-page-tandc {
+    background-image: url(../images/banner-images/11-Terms-and-conditions.png);
+}
+.new-banner-page-copyright {
+    background-image: url(../images/banner-images/12-copyright.png);
+}
+
+.new-banner-page-ats {
+    background-image: url(../images/banner-images/13-About-this-site.png);
+}
+.new-banner-page-privacy {
+    background-image: url(../images/banner-images/14-privacy.png);
+}
+.new-banner-page-contact-us {
+    background-image: url(../images/banner-images/15-Willow-Sign.png);
+}		
+
+#over-banner-logo {
+    background-image: url(../images/willow-streetlife-motif-logo-vicki-fong-2023.png);
+    background-size: cover;
+    height: 240px;
+    width: 175px;
+}
+
+
+#gs_footer .ft-row {
+    position: relative;
+}
+
+#gs_footer .ft-column {
+    float: left;
+    width: 12.5%;
+    text-align: left;
+}
+
+#gs_footer .ft-column-lr-gap {
+    width: 40%;
+}
+    
+#gs_footer .ftlogo-column {
+    display: flex;
+    justify-content: center;
+    align-items: end; /* used to be center */
+    
+    float: left;
+    width: 13.5%; /* used to be 15% */
+    height: 90px;
+}
+
+#gs_footer .ft-outer-div {
+    background-color: #FFFFFF;
+    border: none;
+    color: #595959;
+}
+#gs_footer a {
+    color: #595959;
+}
+
+#ft-logo-l-padding {
+    width: 8%;
+}
+
+
+#ft-logo-streetlife {
+    background-image: url('../images/footer-logos/1 StreetLife-logo.png');
+    background-position: center;
+    background-size: auto 80px;
+    background-repeat: no-repeat;
+    height: 80px;
+    margin-bottom: 5px;
+}
+
+#ft-logo-yorkuni {
+    background-image: url('../images/footer-logos/2 UOY-Logo-Stacked-shield-Black.png');
+    background-position: center;
+    background-size: auto 45px;
+    background-repeat: no-repeat;
+    height: 45px;
+    margin-bottom: 5px;
+}
+
+#ft-logo-ukri {
+    background-image: url('../images/footer-logos/3 UK-Research-and-Innovation-(UKRI).png');
+    background-position: center;
+    background-size: auto 33px;
+    background-repeat: no-repeat;
+    height: 33px;
+    margin-bottom: 14px;
+}
+
+#ft-logo-thomfong {
+    background-image: url('../images/footer-logos/4 ThomFong-illustrated-small-logo.png');
+    background-position: center;
+    background-size: auto 80px;
+    background-repeat: no-repeat;
+    height: 80px;
+    /*margin-bottom: 5px; */
+}
+
+#ft-logo-explore-libarch {
+    background-image: url('../images/footer-logos/5 Explore-LibArch-coloured.png');
+    background-position: center;
+    background-size: auto 45px;
+    background-repeat: no-repeat;
+    height: 45px;
+    margin-bottom: 7px;
+}
+
+#ft-logo-greenstone {
+    background-image: url('../images/footer-logos/6 gsdl-server.png');
+    background-position: center;
+    background-size: auto 55px;
+    background-repeat: no-repeat;
+    height: 55px;
+    /*margin-bottom: 5px; */
+}
+
+#ft-logo-greenstone-text {
+    font-size: 120%;
+}
+
+
+
+/* Tablet Friendly Banner Headers */
+/* @media only screen and (max-width: 640px) { */
+@media (max-width: 1280px) {
+
+    /* Based loosely on, https://www.portabludesign.com/blog/mobile-background-css-squarespace */
+
+    #container {
+	width: 100%;
+	max-width: revert;
+	min-width: 640px;
+    }
+
+    #topArea {
+	width: 100%;
+	max-width: revert;
+	min-width: 640px;
+    }
+
+    
+    #new-banner {
+	min-width: 640px;
+	max-width: revert;
+	width: 100%;
+	background-size: cover;
+	margin-left: auto;
+	margin-right: auto;
+	height: 125px;
+    }
+    
+    .new-banner-page-about {
+	background-image: url(../images/banner-images-mobile/1-Willow-Exterior-York-Press.png);
+    }		
+    
+    .new-banner-page-stories {
+	background-image: url(../images/banner-images-mobile/2-willow-york-ceri-oakes-tommy.png);
+    }		
+    
+    .new-banner-action-query {
+	background-image: url(../images/banner-images-mobile/9-Rainbow-Plaque.png);
+    }		
+    
+    .new-banner-doc-itb-video {
+	background-image: url(../images/banner-images-mobile/3-Soo-and-Tommy-in-the-Willow-Restaurant-%20Vicki-Fong.png);
+    }
+    .new-banner-doc-wg-video {
+	background-image: url(../images/banner-images-mobile/4-I-love-Willow-The-Tab.png);
+    }
+    .new-banner-doc-li-video {
+	background-image: url(../images/banner-images-mobile/5-love-it-Ceri-Oakes.png);
+    }
+    .new-banner-doc-cd-video {
+	background-image: url(../images/banner-images-mobile/6-cheap-drinks-Ceri-Oakes.png);
+    }
+    .new-banner-doc-cm-video {
+	background-image: url(../images/banner-images-mobile/7-Cheesy-Music.png);
+    }
+    .new-banner-doc-tln-video {
+	background-image: url(../images/banner-images-mobile/8-The-Last-Night.png);
+    }
+    .new-banner-doc-default-video {
+	background-image: url(../images/banner-images-mobile/1-Willow-Exterior-York-Press.png);
+    }		
+    
+    .new-banner-page-tandc {
+	background-image: url(../images/banner-images-mobile/11-Terms-and-conditions.png);
+    }
+    .new-banner-page-copyright {
+	background-image: url(../images/banner-images-mobile/12-copyright.png);
+    }
+    
+    .new-banner-page-ats {
+	background-image: url(../images/banner-images-mobile/13-About-this-site.png);
+    }
+    .new-banner-page-privacy {
+	background-image: url(../images/banner-images-mobile/14-privacy.png);
+    }
+    .new-banner-page-contact-us {
+	background-image: url(../images/banner-images-mobile/15-Willow-Sign.png);
+    }		
+    
+    #over-banner-logo {
+	background-image: url(../images/willow-streetlife-motif-logo-vicki-fong-2023-mobile.png);
+	background-size: cover;
+	height: 120px;
+	width:  87px;
+    }
+
+
+    #gs_footer .ft-column {
+	/*width: 19%; */
+	/*width: revert; 
+	max-width: 25rem; */
+	width: 9.5rem;
+    }
+    
+    #gs_footer .ft-column-lr-gap {
+	/*width: 42%; */
+	width: inherit;
+	/*min-width: 18%;
+	max-width: 42%; */
+    }
+
+    #gs_footer .ft-column-dms {
+	float: right;
+	width: 200px;
+	/*max-width: revert; */
+	max-width: 19%;
+    }
+
+    #gs_footer .ftlogo-column {
+	height: 70px;
+    }
+    
+    #ft-logo-streetlife {
+	background-image: url('../images/footer-logos-tablet/1 StreetLife-logo.png');
+	background-size: auto 60px;
+	height: 60px;
+    }
+
+    #ft-logo-yorkuni {
+	background-image: url('../images/footer-logos-tablet/2 UOY-Logo-Stacked-shield-Black.png');
+	background-size: auto 34px;
+	height: 34px;
+    }
+
+    #ft-logo-ukri {
+	background-image: url('../images/footer-logos-tablet/3 UK-Research-and-Innovation-(UKRI).png');
+	background-size: auto 25px;
+	height: 25px;
+    }
+
+    #ft-logo-thomfong {
+	background-image: url('../images/footer-logos-tablet/4 ThomFong-illustrated-small-logo.png');
+	background-size: auto 60px;
+	height: 60px;
+    }
+
+    #ft-logo-explore-libarch {
+	background-image: url('../images/footer-logos-tablet/5 Explore-LibArch-coloured.png');
+	background-size: auto 34px;
+	height: 34px;
+    }
+
+    #ft-logo-greenstone {
+	background-image: url('../images/footer-logos-tablet/6 gsdl-server.png');
+	background-size: auto 41px;
+	height: 41px;
+    }
+    #ft-logo-greenstone-text {
+	font-size: 100%;
+	margin-top: -6px;
+    }
+
+}
+
+/* for footers, need to kick in with ones designed for mobile as bit sooner */
+
+@media (max-width: 860px) {
+
+    #gs_footer .ftlogo-column {
+	height: 40px;
+	width: 16%;
+    }
+    
+    #ft-logo-l-padding {
+	width: 4% !important;
+    }
+    
+    #ft-logo-streetlife {
+	background-image: url('../images/footer-logos-mobile/1 StreetLife-logo.png');
+	background-size: auto 40px;
+	height: 40px;
+    }
+
+    #ft-logo-yorkuni {
+	background-image: url('../images/footer-logos-mobile/2 UOY-Logo-Stacked-shield-Black.png');
+	background-size: auto 23px;
+	height: 23px;
+    }
+
+    #ft-logo-ukri {
+	background-image: url('../images/footer-logos-mobile/3 UK-Research-and-Innovation-(UKRI).png');
+	background-size: auto 17px;
+	height: 17px;
+    }
+
+    #ft-logo-thomfong {
+	background-image: url('../images/footer-logos-mobile/4 ThomFong-illustrated-small-logo.png');
+	background-size: auto 40px;
+	height: 40px;
+    }
+
+    #ft-logo-explore-libarch {
+	background-image: url('../images/footer-logos-mobile/5 Explore-LibArch-coloured.png');
+	background-size: auto 23px;
+	height: 23px;
+    }
+
+    #ft-logo-greenstone {
+	background-image: url('../images/footer-logos-mobile/6 gsdl-server.png');
+	background-size: auto 28px;
+	height: 28Âpx;
+    }    
+}
+
+/* Mobile Friendly Banner Headers, kicks in at 640px, and tested at 320px */
+/* @media only screen and (max-width: 640px) { */
+@media (max-width: 640px) {
+
+    /* Based loosely on, https://www.portabludesign.com/blog/mobile-background-css-squarespace */
+
+    #container {
+	width: 100%;
+	max-width: revert;
+	min-width: 320px;
+    }
+
+    #topArea {
+	width: 100%;
+	max-width: revert;
+	min-width: 320px;
+    }
+
+    
+    #new-banner {
+	min-width: 320px;
+	max-width: revert;
+	width: 100%;
+	background-size: cover;
+	margin-left: auto;
+	margin-right: auto;
+	height: 62px;
+    }
+    
+    .new-banner-page-about {
+	background-image: url(../images/banner-images-mobile/1-Willow-Exterior-York-Press.png);
+    }		
+    
+    .new-banner-page-stories {
+	background-image: url(../images/banner-images-mobile/2-willow-york-ceri-oakes-tommy.png);
+    }		
+    
+    .new-banner-action-query {
+	background-image: url(../images/banner-images-mobile/9-Rainbow-Plaque.png);
+    }		
+    
+    .new-banner-doc-itb-video {
+	background-image: url(../images/banner-images-mobile/3-Soo-and-Tommy-in-the-Willow-Restaurant-%20Vicki-Fong.png);
+    }
+    .new-banner-doc-wg-video {
+	background-image: url(../images/banner-images-mobile/4-I-love-Willow-The-Tab.png);
+    }
+    .new-banner-doc-li-video {
+	background-image: url(../images/banner-images-mobile/5-love-it-Ceri-Oakes.png);
+    }
+    .new-banner-doc-cd-video {
+	background-image: url(../images/banner-images-mobile/6-cheap-drinks-Ceri-Oakes.png);
+    }
+    .new-banner-doc-cm-video {
+	background-image: url(../images/banner-images-mobile/7-Cheesy-Music.png);
+    }
+    .new-banner-doc-tln-video {
+	background-image: url(../images/banner-images-mobile/8-The-Last-Night.png);
+    }
+    .new-banner-doc-default-video {
+	background-image: url(../images/banner-images-mobile/1-Willow-Exterior-York-Press.png);
+    }		
+    
+    .new-banner-page-tandc {
+	background-image: url(../images/banner-images-mobile/11-Terms-and-conditions.png);
+    }
+    .new-banner-page-copyright {
+	background-image: url(../images/banner-images-mobile/12-copyright.png);
+    }
+    
+    .new-banner-page-ats {
+	background-image: url(../images/banner-images-mobile/13-About-this-site.png);
+    }
+    .new-banner-page-privacy {
+	background-image: url(../images/banner-images-mobile/14-privacy.png);
+    }
+    .new-banner-page-contact-us {
+	background-image: url(../images/banner-images-mobile/15-Willow-Sign.png);
+    }		
+    
+    #over-banner-logo {
+	background-image: url(../images/willow-streetlife-motif-logo-vicki-fong-2023-mobile.png);
+	background-size: cover;
+	height: 60px;
+	width:  43px;
+    }
+    
+    
+    #gs_footer .ft-column {
+	width: 25%;
+    }
+    
+    #gs_footer .ft-column-lr-gap {
+	width: 10%; 
+	/* min-width: 20%; */
+    }
+
+    #br-beforeDMLogos {
+	display: none;
+    }
+    #gs_footer .ft-column-dms {
+	width: 8%;
+    }
+    
+    #gs_footer .ft-column-dms img {
+	padding-bottom: 0.5rem;
+    }
+    
+    #ft-logo-l-padding {
+	display: none !important;
+    }
+
+}
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/core.css
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/core.css	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/core.css	(revision 38779)
@@ -0,0 +1,2357 @@
+html {
+	height: 100%;
+	margin-bottom: 0; /* This used to be 1px, unknown why but caused a 1px 'jiggle' + scrollbar when otherwise unnecessary. */
+}
+body {
+	font-family: Arial, "Segoe UI", Candara, "Bitstream Vera Sans", "DejaVu Sans", "Bitstream Vera Sans", "Trebuchet MS", Verdana, "Verdana Ref", sans-serif;
+	margin: 0;
+	background-color: #eae4d9;
+}
+
+h3 {
+	margin-top:2px;
+	margin-bottom:2px;
+}
+
+p {
+	margin-top:0px;
+	margin-bottom:0.75em;
+}
+
+pre {
+ white-space: pre-wrap;       /* css-3 */
+ white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
+ white-space: -pre-wrap;      /* Opera 4-6 */
+ white-space: -o-pre-wrap;    /* Opera 7 */
+ word-wrap: break-word;       /* Internet Explorer 5.5+ */
+}
+
+.sectionHeader {
+	margin-top:0px;
+	margin-bottom:0px;
+}
+
+.headerTD {
+	vertical-align: middle;
+}
+
+/* Styles for the different depths */
+.sectionHeaderDepthTitle{
+	font-size:1.4em;
+	line-height:1em;
+	font-weight:bold;
+}
+
+.sectionHeaderDepth1{
+	font-size:1.3em;
+	line-height:1em;
+	font-weight:bold;
+}
+
+.sectionHeaderDepth2{
+	font-size:1.2em;
+	line-height:1em;
+	font-weight:bold;
+	font-style:italic;
+}
+
+.sectionHeaderDepth3{
+	font-size:1.1em;
+	line-height:1em;
+	font-style:italic;
+}
+
+.sectionHeaderDepth4{
+	font-size:1em;
+	line-height:1em;
+	font-weight:italic;
+}
+
+.sectionNumberSpan{
+	/*Comment out this line to enable automatic section numbering*/
+	display:none;
+}
+
+.sectionContainer{
+	padding-top:0.5em;
+	padding-bottom:1em;
+	padding-left:1.5em;
+}
+
+.classifierContainer {
+	padding-left:1.5em;
+}
+
+.horizontalContainer {
+	padding-left:0px;
+	margin:0px;
+	text-transform: capitalize; /* To get the bookshelves and buckets titlecased (they're stored lowercased) */
+}
+
+.selectedHorizontalClassifierNode a{
+	font-weight: bold;
+	text-decoration: none;
+}
+
+.horizontalClassifierNode {
+	padding:0px 0px 10px 10px;
+	list-style:none;
+	display: inline-block;
+}
+
+.icon{
+	cursor:pointer;
+	padding:2px;
+	border:0px;
+}
+
+.emptyIcon {
+	height:16px;
+	width:16px;
+}
+
+.backToTop {
+	font-size:0.7em;
+	padding-left: 2em;
+	text-align:center;
+}
+
+.hidden{
+	display:none;
+}
+
+#prevArrowTD {
+	text-align:right; 
+	width:10%;
+}
+
+#nextArrowTD {
+	text-align:left; 
+	width:10%;
+}
+
+#prevTD {
+	text-align:left; 
+	width:20%;
+}
+
+#nextTD {
+	text-align:right; 
+	width:20%;
+}
+
+#searchResultNavTable {
+	width:100%;
+}
+
+#searchResultsStatusBar {
+	text-align:center;
+}
+
+.HighlightSnippet {
+	font-size:0.7em;
+}
+
+#container {
+	position: relative;
+	margin: 0 auto 20px auto;
+	max-width: 1000px;
+	padding: 0;
+	line-height: 120%;
+	background-color: #fff;
+	border-top-width: 0px;
+}
+
+#topArea {
+	border: none;
+	max-width: 1000px;
+	margin: 20px auto 0;
+}
+
+#topArea table {
+	width: 100%;
+}
+
+#topArea td {
+	width: 50%;
+}
+
+#gs_banner {
+	padding:0px;
+	position: relative;
+	border: 0px;
+}
+
+#gs_content {
+	/* Unsure why this negative margin existed. Leaving it for posterity should issues occur.
+	 * The top padding value has been adjusted accordingly.
+	 *
+	 * margin-top:-10px;
+	 */
+	padding: 10px 20px 10px;
+	min-height: 300px;
+}
+
+#gs_footer {
+	position: relative;
+	display: block;
+	margin: -1px auto;
+	text-align: center;
+	vertical-align: middle;
+	font-size: 70%;
+	padding-top:5px;
+	padding-bottom:5px;
+}
+
+.termList {
+	font-size:12px;
+	line-height:14px;
+}
+
+.noTermHighlight{
+
+}
+
+.termHighlight{
+	background:yellow;
+}
+.snippetText{
+        font-weight:bold;
+        font-style:italic;
+}
+
+
+#viewAndZoomOptions {
+	margin-bottom:10px;
+	border:0px;
+}
+
+#viewOptions {
+	margin: 0px;
+	padding: 0px;
+}
+
+#viewOptions li {
+	list-style:none;
+	float:left;
+	padding: 5px;
+	cursor:pointer;
+}
+
+.tableOfContentsTitle{
+	font-weight:bold;
+	text-align:left;
+}
+
+.viewOptions a:link, .viewOptions a:hover, .viewOptions a:active, .viewOptions a:visited {
+	text-decoration:none;
+}
+
+#rightSidebar {
+	min-width:180px;
+	float:right;
+	margin: 0 0 10px 20px;
+}
+
+#contentsArea {
+	padding:0px 10px;
+}
+
+#collectionLinks {
+	position: relative;
+}
+
+/*
+#collectionLinks a div{
+	display: block;
+	float: left;
+	border: 1px solid #888;
+	margin: 0 20px 20px 0;
+	font-size: 150%;
+	color: #444;
+	text-decoration: none;
+	background: url(../images/collectionIconStripe.gif) scroll no-repeat 0 0;
+	padding: 20px;
+	min-width: 200px;
+	text-align:center;
+}
+*/
+
+#collectionLinks a img{
+	display: block;
+	float: left;
+	border: 1px solid #888;
+	margin: 0 20px 20px 0;
+	font-size: 150%;
+	color: #444;
+	text-decoration: none;
+	height:60px;
+}
+
+#groupLinks a img{
+        display: block;
+        float: left;
+        border: 1px solid #888;
+        margin: 0 20px 20px 0;
+        font-size: 150%;
+        color: #444;
+        text-decoration: none;
+        height:60px;
+}
+
+.groupLink {
+	display: block;
+	float: left;
+	border: 1px solid #888;
+	margin: 0 20px 20px 0;
+	font-size: 150%;
+	color: #444;
+	text-decoration: none;
+	min-width: 200px;
+	text-align:center;
+}
+.collectionLink {
+	display: block;
+	float: left;
+	border: 1px solid #888;
+	margin: 0 20px 20px 0;
+	font-size: 150%;
+	color: #444;
+	text-decoration: none;
+	min-width: 200px;
+	text-align:center;
+}
+
+.collectionLinkText {
+	padding: 15px 15px 10px;
+}
+
+.collectionLinkImage {
+    display: block;
+    float: left;
+}
+.groupLinkText {
+        padding: 15px 15px 10px;
+}
+
+/* some text should not be rendered as it is just there for search engines */
+#collectionLinks a b {
+	display: none;
+}
+
+#groupLinks a b {
+        display: none;
+}
+
+/* make sure h1s and h2s are readable on the green banner */
+#breadcrumbs, #gs_banner h2, #breadcrumbs a, #gs_banner h2 a {
+	/*color: #fff;*/
+}
+body.dAction #gs_banner h2 {
+	max-width: 600px;
+	font-size: 100;
+}
+
+#titlesearchcontainer {	
+	padding-top: 20px;
+	width: 100%;
+}
+
+#titlesearchcontainer, #titlesearchcontainer form, #titlesearchcontainer h2{
+	margin-top: 0px;
+	margin-bottom: 0px;
+}
+
+#titlearea {
+	float: left;
+	padding-left: 20px;
+}
+
+#titlearea  h2{	
+	padding-left: 0px;
+	padding-bottom: 20px;
+}
+
+#quickSearch {
+    float: right;
+}
+
+#quicksearcharea {
+ 	float: right;
+	text-align: right;
+	padding-right: 20px;
+}
+
+#quicksearcharea ul{
+	margin:0;
+}
+
+#quicksearcharea li{
+	display:inline;
+	list-style:none;
+	margin-left:5px; 
+	padding: 2px 3px 2px 5px;
+	font-size: 10px;
+}
+
+#quicksearcharea a{
+	text-transform:lowercase;
+}
+
+#breadcrumbs {
+	margin-left: 20px;
+}
+
+#breadcrumbs a{
+	text-decoration:underline;
+}
+
+
+/* css to make the page links work (home, help, preference) */
+#bannerLinks {
+	text-align: right;
+	list-style: none;
+	margin: 0 20px;
+	font-size: 90%;
+}
+
+#bannerLinks li {
+	/*display: inline;*/
+	float:right;
+	padding: 1px 4px 1px 0px;
+}
+
+#bannerLinks ul {
+	padding: 0px 3px 0px 0px;
+	text-align: right;
+	list-style: none;
+}
+
+#bannerLinks li.current a {
+	cursor: default;
+}
+
+#bannerLinks li:hover, #bannerLinks li.current { background-position: 100% 0; }
+
+#bannerLinks li.current a { text-decoration: underline; background-position: 0 0;}
+#bannerLinks img.spacer { display: table-cell; }
+
+#userMenu {
+    position: absolute;
+    z-index: 100;
+    list-style: none outside none;
+    margin: 0px;
+    padding: 0px;
+    font-size: 90%;
+    width: 150px;
+
+}
+
+#userMenu li {
+    float: left;
+    text-align: left;
+    width: 100%;
+}
+
+/* css for alternative bannerLinks tabs */
+#bannerLinksTab {
+    list-style: none outside none;
+    padding: 0px;
+    margin: 0 0 0 20px;
+    font-size: 14px;
+}
+
+#bannerLinksTab li {
+    float: right;
+    display: inline;
+    margin-right: 5px;
+    padding: 3px 5px 5px 7px;
+    text-transform: capitalize;
+    text-align: center;
+    border-bottom: 0px;
+}
+
+
+/* css to make the classifier list pretty */
+.navList {
+	margin: 0 0 10px 0;
+	padding: 0;
+	background-color: #0a0;
+}
+
+.navList ul {
+	margin: 0;
+	padding: 0;
+	list-style: none;
+}
+
+.navList td {
+	/*float: left;*/
+	padding-left: 3em;
+	padding-right: 3em;
+	text-align:center;
+	cursor: pointer;
+	color: #fff;
+}
+.navList li a, .navList li span {
+	padding: 0 1em;
+	display: block;
+	text-decoration: none;
+	color: #fff;
+}
+
+.navList td.current {
+	background-color: #efea6e;
+	color: #444;
+	cursor: default;
+}
+
+.navList li.current a, .navList li.current span {
+	color: #444;
+	cursor: default;
+}
+
+/* css to make the tabs work */
+#gs-nav {
+	list-style: none outside none;
+	padding: 0px;
+	margin: 0 0 0 20px;
+	font-size: 14px;
+}
+
+#gs-nav ul {
+	margin:0px;
+	padding:0px;
+}
+
+#gs-nav li {
+	float:left;
+	display: inline;
+	margin-right: 5px;
+	padding: 3px 5px 5px 7px;
+	text-transform: capitalize;
+	text-align: center;
+	border-bottom: 0px;
+}
+
+#gs-nav a{
+	margin:0px;
+	font-weight: bold;
+	text-decoration: none;
+}
+
+#gs-nav li:hover, #gs-nav li.current { background-position: 100% 0; }
+#gs-nav li:hover a, #gs-nav li.current a { background-position: 0 0; cursor:default; }
+
+/* style the search and classifier results */
+#resultsTable {
+	line-height: 130%;
+	margin: 0;
+	padding: 0;
+	/* border: 1px solid #f00; */
+}
+
+#resultsTable ul {
+	margin: 0 0 0 20px;
+	padding: 0;
+}
+
+#resultsTable li {
+	list-style: none;
+	margin: 0 0 .2em 0;
+	/* border: 1px solid #00f; */
+}
+
+#resultsTable li a {
+	padding: 3px 3px 3px 3px;
+	background-repeat: no-repeat;
+	background-position: 0 .1em;
+}
+
+
+#resultsTable .document a { /*background-image: url('../images/book.png'); */}
+#resultsTable .document a:visited { background-image: url('../images/book-visited.png'); color: #999; }
+#resultsTable .shelf>a { background-image: url('../images/bookshelf.png'); }
+
+.metaposCell { display: none; }
+
+.metaTableCell { border: 1;}
+.metaTableCellArea {
+	border: none; 
+	resize: none; 
+	outline: none; 
+	overflow: auto; 
+	width: var(--metatablecellwidth);
+	-webkit-box-sizing: border-box; 
+	-moz-box-sizing: border-box; 
+	box-sizing: border-box; 
+}
+
+.metaTableCellArea.threecol {
+    width:calc((var(--metatablecellwidth) + 100px)/3);
+    min-width:auto;
+}
+
+
+/* corners of the banner */
+/*
+.corner {
+	position: absolute;
+	background-image: url('../images/layout/corners.png');
+	background-repeat: no-repeat;
+	width: 20px;
+	height: 20px;
+}
+
+#cornerTopLeft {
+	left: 0; top: 0;
+	background-position: 0 0;
+}
+#cornerTopRight {
+	right: 0; top: 0;
+	background-position: -20px 0;
+}
+#cornerBottomLeft {
+	left: 0; bottom: 0;
+	background-position: 0 -20px;
+}
+#cornerBottomRight {
+	right: 0; bottom: 0;
+	background-position: -20px -20px;
+}
+*/
+.clear {
+	clear: both;
+}
+
+
+/*a:link, a:hover, a:active, a:visited { color: #050; }*/
+
+/* bg image set in style macro */
+div.divbar { 
+  clear: both; 
+  background-image: url('../images/bg_green.png'); 
+  width: 100%; 
+  text-align: center;
+  font-size:80%
+}
+
+
+/** query form style**/
+div#queryform{
+
+}
+
+/** search result style */
+div#terminfo{
+
+}
+
+div#matchdocs{
+
+}
+
+div.resultnavigation{
+ margin: 0;
+ padding:0;
+}
+
+ul#resultlist li{
+  display:block;
+}
+
+div#documentheading{
+  font-size: 16pt;
+  font-weight: bold;
+}
+
+div#documentinfo { 
+  float:left;
+  padding:0;
+  margin:0;
+  width:24%;
+} 
+
+div#toc{
+  float:left;
+  text-align:left;
+  width:60%;
+  padding:0;
+  margin:0; 
+}
+
+ul#docbuttons li {
+   display: block;
+  font-size: 11px;
+  font-weight: bold;
+  background: #f7e7c5;
+  margin: 1px;
+  border: 1px solid #eeddbb;
+  text-align: center;
+  vertical-align: middle;
+  height: 30px; /* IE6 and NS4 treat width/height as min-width/min-height */
+  width: 110px;
+}
+
+
+ul#tocnodes li{
+ margin: 0;
+ padding: 5px 0 0 0;
+ display:block;
+}
+
+ul.tocnode {
+  margin:0;
+  padding:5px 0 0 20px;
+}
+
+ul.tocnode  a{
+ margin: 0;
+ padding:0 5px 0 0;
+ }
+
+span.bold{
+  font-weight: bold;	   
+}
+
+div.documentarrows{
+  margin: 0 0 0 0;
+  padding: 1em 0 0 0;   
+}
+
+img.lessarrow{
+  float:left;
+  border: none;  
+}
+
+img.morearrow{
+  float:right;
+  border:none; 
+}
+
+div.formheading{
+  font-size: 16pt;
+  font-weight: bold;
+  margin: .5em 0 0;
+  padding:0;
+}
+
+ul#presprefs li, ul#berrybasketprefs li, ul#searchprefs li{
+  display: block;
+} 
+
+
+div.phrasebrowse{
+  text-align:center;
+  padding:0;
+  margin: .5em 0 .5em 0;   
+}
+
+div.QuickSearch {
+  float: right;
+}
+
+#coverImage {
+	text-align: center;
+	margin: 20px;
+}
+
+/* ----- TABLE OF CONTENTS ------ */
+.tocTable {
+	width: 100%;
+	background: white !important;
+}
+
+.tocTextCell {
+	padding-left:5px;
+}
+
+.tocTextCell img {/* tklabel icon size & margin reduction */
+	width: 3em !important; 
+	margin-right: 0.2em !important;
+	margin-top: 0.2em !important;
+}
+
+.tableOfContentsContainer {
+	padding:1px;
+	max-height:500px;
+	overflow:auto;
+}
+
+#expandContractLinks {
+  	margin: 0;
+	padding: 0;
+	font-size: 70%;
+}
+
+#expandContractLinks a {text-decoration: underline; color: #444 !important;}
+#expandContractLinks a:visited {text-decoration: underline; color: #444 !important;}
+#expandContractLinks a:link {text-decoration: underline; color: #444 !important;}
+
+#tableOfContents {
+	margin: 0;
+	padding: 0;
+	font-size: 70%;
+}
+
+#tableOfContents li {
+	list-style: none;
+	margin: 0;
+	padding: 2px;
+}
+
+#tableOfContents a {text-decoration: underline; color: #444 !important;}
+#tableOfContents a:visited{text-decoration: underline; color: #444 !important;}
+#tableOfContents a:link{text-decoration: underline; color: #444 !important;}
+
+#tableOfContents li.current {
+	background-color: #090;
+}
+#tableOfContents li.current a {
+	color: #fff;
+}
+
+#tableOfContents li.current li {
+	background-color: #fff;
+}
+
+#tableOfContents li.current li a {
+	color: #444;
+}
+
+#tableOfContents ul {
+	padding: 0 0 0 0;
+}
+
+#tableOfContents ul ul{
+	padding: 0 0 0 0;
+}
+
+#tableOfContents ul ul ul{
+	padding: 0 0 0 16px;
+}
+
+/* -------- SEARCH ------- */
+.paramLabel {
+	margin: 2px;
+	float: left;
+}
+.paramValue {
+	margin: 2px;
+	float: left;
+}
+
+
+table{
+	border-collapse:collapse;
+	border-spacing:0;
+}
+
+/* ------- BROWSE -------*/
+
+.childrenlist {
+	margin:0 0 0 10px;
+
+}
+.childrenlist td {
+	padding:3px 0px 0px 10px;
+}
+
+/* ------- PAGED IMAGE ------- */
+
+.pageSlider {
+	width: 250px;
+	overflow: auto;
+	margin-left: auto;
+	margin-right: auto;
+	padding: 2px;
+}
+
+.pageSliderSpacer {
+	width:2px;
+}
+
+.pageSliderCol {
+	height:100px;
+	padding: 2px;
+	text-align: center;
+	vertical-align: top;
+}
+
+/* ------- SPATIAL COLLECTIONS ------- */
+
+#nearbyDocs td, #nearbyDocs th {
+	padding: 5px;
+	border: 1px solid black;
+}
+
+#nearbyDocs th {
+	font-weight: bold;
+}
+
+#auth_navbar {
+	width: 90%;
+	margin: 10px auto;
+}
+
+#auth_navbar span{
+	padding:3px;
+}
+
+#userListTable {
+	text-align: center;
+	width: 90%;
+	margin: auto;
+}
+
+#userListTable td{
+	border: black 1px solid;
+	padding: 5px;
+}
+
+#gs_error{
+	padding: 5px;
+	margin: auto;
+	width: 50%;
+	text-align: center;
+}
+
+#loginTable{
+	margin: auto;
+}
+
+.map_canvas_full{
+	margin:0px auto;
+	width:600px;
+	height:450px;
+}
+
+.map_canvas_half{
+	float: right;
+	width:450px; 
+	height:500px;
+}
+
+.pano_canvas_full{
+	margin:0px auto;
+	width:900px;
+	height:500px;
+}
+
+.pano_canvas_fullscreen{
+	margin-left:0px auto;
+	margin-right:0px auto;
+	width:1024px;
+	height:768px;;
+}
+
+.pano_canvas_half{
+	z-index: 1;
+	float: right;
+	width:450px;
+	height:500px;
+	background-color:#000000;
+}
+
+.navigate-point {
+	z-index: 97;
+  	position: absolute;
+	overflow: hidden;
+	width: 80px;
+	height: 80px;
+	margin-left: -40px;
+	margin-top: -40px;
+	background-image: url("../images/navMarker.png");
+	cursor: pointer;
+}
+
+.fullscreenToggle{
+	z-index: 2;
+	position: relative;
+	float: right;
+	top: 28px;
+	left: 140px;
+	padding: 5px;
+}
+
+dl dt { font-weight:bold;
+      padding-top:10px; }
+dl dd { padding-bottom:10px}
+
+
+#facetSelector{
+    padding-top: 6px;
+}
+
+.facetControls {
+    white-space: nowrap;
+    
+}
+.facetControls span {
+    underline: true;
+    font-weight: bold;
+    font-size: small;
+    padding-right: 5px;
+    padding-left: 5px;
+
+}
+.facetTable, .facetContainer{
+	list-style:none; 
+	margin: 0px 0px 20px; 
+	padding: 0px; 
+	overflow:auto;
+}
+.facetTable {
+    overflow:hidden;
+    overflow-y: scroll;
+    max-height: 200px;
+    
+}
+
+.facetTable li{
+	margin-bottom:5px;
+}
+
+.checkboxList{
+	list-style:none; 
+	padding-left:0px;
+}
+
+.facetedResults{
+    /* 
+       Supressing the float left for now, as it causes a long result list 
+       to positioned vertically below the faceted box area 
+   */
+       
+    /* float:left; */
+}
+
+.slideshowImage{
+	width:100%;
+}
+
+/* GREENBUG */
+#gbEnableButton{
+	position:fixed;
+	left:0px;
+	bottom:0px;
+}
+
+.gbTemplateContainer{
+	float:left;
+	cursor:pointer;
+	margin:0 1em;
+	font-size:1.1em;
+	text-align:center;
+	overflow:hidden;
+	min-width:4em;
+	padding: 0.5em;
+}
+
+.gbSpacer{
+	margin:0;
+	float:left;
+	height:1.2em;
+	text-align:center;
+}
+
+/* VISUAL XML EDITOR (GREENBUG)*/
+#veMainDiv{
+	margin:0;
+	padding:0;
+}
+
+#veTemplateSelector{
+	float:left;
+	padding:0.5em;
+	margin:0 0.5em 0 0;
+}
+
+#veFileSelector{
+	float:left;
+	padding:0.5em;
+	margin:0 0.5em 0 0 ;
+}
+
+#veToolboxDiv{
+	float:left;
+	width:10%;
+	margin:0;
+	padding:0;
+	overflow:auto;
+	height:300px;
+}
+
+#veEditorDiv{
+	width:100%;
+}
+
+#veEditorContainer{
+	position:relative;
+	float:left;
+	width:70%;
+	margin:0;
+	padding:0;
+	overflow:hidden;
+	border: 3px groove;
+	background-image: url(../images/veBackground.gif);
+}
+
+#veSpacerDiv{
+	float:left;
+	width:1%;
+	height:1px;
+	margin:0;
+	padding:0;
+}
+
+#veInfoDiv{
+	float:left;
+	width:17%;
+	margin:0 0 10px 0;
+	padding:0;
+	overflow:auto;
+}
+
+.veElement{
+	border:1px solid black;
+	float:left;
+	margin:5px -1px;
+	overflow:hidden;
+	color:black;
+	cursor:pointer;
+}
+
+.veDropArea{
+	margin:5px 0;
+	float:left;
+	height:1em;
+	background:#FFAAAA;
+}
+
+.veContainerElement{
+	width:90%;
+	margin:0 auto;
+}
+
+.veTitleElement{
+	text-align:center;
+}
+
+.veGSFElement{
+	background:#DFD;
+}
+
+.veGSLIBElement{
+	background:#FF9;
+}
+
+.veXSLElement{
+	background:#DDF;
+}
+
+.veHTMLElement{
+	background:#FFFFFF;
+}
+
+.veTextElement{
+	background:#F9F;
+}
+
+.veTempElement{
+	background:#9FF;
+}
+
+.veTab{
+	font-size:0.8em;
+	padding:0.5em;
+}
+
+.veInfoDivTitle{
+	text-align:center;
+	margin-bottom:1em;
+}
+
+.veAttributeTableContainer{
+	text-align:center;
+	width:100%;
+	margin-bottom:1em;
+}
+
+.veAttributeTableContainer td{
+	border:1px solid black;
+}
+
+.veAttributeTableRow{
+	min-height:1.1em;
+}
+
+.veNameCell{
+	width:25%;
+}
+
+.veValueCell{
+	width:50%;
+}
+
+.veUtilCell{
+	font-size:0.8em;
+	width:25%;
+}
+
+#veTrash{
+	position:absolute;
+	right:0px;
+	bottom:0px;
+	text-align:center;
+}
+
+.toolbarElem{
+	border:1px dashed black;
+	text-align:center;
+	margin-bottom:2px;
+}
+
+/* DEPOSITOR STYLES */
+
+#wizardBar {
+	display: table;
+	margin: 0 auto;
+}
+
+#wizardBar li {
+	display: inline;
+	list-style-type: none;
+	padding: 0 10px;
+	margin: 0 5px;
+}
+
+#wizardContainer {
+	display: table;
+	margin: 0 auto;
+}
+
+#depositorform {
+	min-height: 300px;
+}
+
+/*
+ul.childrenlist li {
+list-style-type:none;
+}
+ul#classifierlist,ul#classifiernodelist {
+	list-style-type:none;
+	margin:0;
+	padding:0
+}
+ul#classifierlist li{
+list-style:none;
+margin:0 0 5px 0;
+padding:0;display:block;
+}
+ul#classifiernodelist li{
+list-style:none;
+margin:0;
+padding:5px 0 0 0;
+display:block
+}
+ul.childrenlist{
+list-style:none;
+margin:0;
+padding:0 0 0 20px;
+display:block;
+width:100%
+}
+*/
+
+.metaDataHierarchyMenu{
+        position: absolute;
+	margin-left: -1px;
+	z-index:1;
+
+}
+.metaDataHierarchyMenu ul{
+        margin: 0;
+        padding: 0;
+        display: block;
+        position: absolute;
+
+}
+.metaDataHierarchyMenu ul li {
+        margin: 0;
+        padding: 0;
+        display: block;
+        position: relative;
+        width: 180px;
+}
+.metaDataHierarchyMenu ul li button{
+        display: block;
+        padding:10px 10px 10px 10px;
+        width: 180px;
+   	margin: 0;
+        color: #000000;
+        text-decoration: none;
+        font-size: 90%;
+        border:1px dotted #999;
+        text-align: left;
+	white-space: normal;
+   	overflow: auto;
+}
+.metaDataHierarchyMenu ul li button:HOVER{
+        color: #0000CC;
+}
+.metaDataHierarchyMenu li ul { 
+	position: absolute;
+        left: 180px;
+        top: 0;
+        display: none;
+}
+
+.metaDataHierarchyMenu button:focus {
+        outline: none;
+}
+
+.active {
+    	background-color:#eee;
+}
+
+/* User comments area: display of existing user comments and display of the form and of the add user/logout links */
+
+#usercomments, #usercommentform, #usercommentlink a, #usercommentlogoutlink a {
+    font-family: sans-serif;
+    font-size: 12px;
+}
+
+#usercomments {
+    margin: 10px 0;
+}
+
+.usercommentheading {
+    font-weight: bold;
+    color: #3c8700;
+    border-top: solid 1px black;
+}
+
+.usercomment {
+    margin: 10px 0;
+}
+
+#usercommentlink, #usercommentlogoutlink {
+    margin: 10px 0 20px 0;
+}
+
+#usercommentlink a, #usercommentlogoutlink a {
+ text-decoration: none;
+ font-weight: bold;
+ color: #3c8700;
+}
+#usercommentlink a:visited, #usercommentlogoutlink a:visited {
+    color: #3c8700;
+}
+
+.centrediv {
+    width:50%;
+    margin: 0 auto;
+}
+
+/* Styling for TK Label related items */
+
+.tkPopup {
+	position: relative;
+	border: 1px solid darkgrey;
+	border-radius: 0.2em;
+	background: lightgrey;
+	margin: 0.2em;
+	padding: 0.8em;
+	font-size: 16px;
+	animation: fadein 0.4s;
+	box-shadow: 0px 5px 8px rgba(0,0,0,0.1);
+}
+
+.tkPopup a {
+	color: black;	
+	text-decoration: none;
+	border-bottom: 2px solid transparent;
+	transition: 0.1s ease;
+}
+
+.tkPopup a:hover {
+	color: black;	
+	border-color: black;
+}
+
+.tkPopup h1 {
+	font-size: 22px;
+	margin-top: 0.2em;
+	margin-bottom: 0;
+	text-align: center;
+}
+
+.tkPopup h2 {
+	font-size: 20px;
+	color: rgb(24, 88, 7);
+	margin-top: 0.4em;
+	text-align: center;
+}
+
+.tklabels img { 
+	width: 3em; 
+	margin-right: 0.3em; 
+	margin-top: 0.3em;
+	cursor: pointer; 
+	opacity: 0.8; 
+	transition: 0.1s ease;
+}
+
+.tklabels img:hover { 
+	opacity: 1;
+}
+
+#tkCloseButton {
+	position: absolute;
+	font-weight: bold;
+	color: darkred;
+	font-size: 26px;
+	right: 0.5em;
+	top: 0.4em;
+	cursor: pointer;
+	transition: 0.1s ease;
+}
+
+#tkCloseButton:hover {
+	text-shadow: 0 0 5px rgba(139,0,0,0.5);
+}
+
+@keyframes fadein {
+    from {
+        opacity:0;
+    }
+    to {
+        opacity: 1;
+    }
+}
+
+/* Styling for enriched audio player */
+
+.flex-leftalign {
+    display: flex;
+	flex-flow: row wrap;
+    justify-content: left;
+}
+
+.flex-rightalign {
+    display: flex;
+	flex-flow: row wrap;
+    justify-content: right;
+}
+
+.flex-centeralign {
+    display: flex;
+	flex-flow: row wrap;
+    justify-content: center;
+}
+
+#audioContainer {
+		position: relative;
+    width: 100%;
+		overflow: hidden;
+		font-family: 'Courier New', monospace;
+}
+
+#audioContainer::backdrop {
+	background-color: rgb(245, 243, 229);
+}
+
+.fullscreen {
+	padding-top: 20vh;
+	padding-left: 5vw;
+	padding-right: 5vw;
+}
+
+#waveform {
+    background-color: white;
+		position: relative;
+		overflow-y: hidden;
+		transition: none;
+}
+
+#audio-toolbar {
+	background-color: rgb(16, 24, 26);
+    position: relative;
+    display: flex;
+    flex-direction: row;
+    flex-wrap: wrap;
+    justify-content: space-between;
+    align-items: center;
+    color: white;
+    width: 100%;
+    height: fit-content;
+}
+
+#audio-toolbar button {
+    cursor: pointer;
+    height: 100%;
+}
+
+#audioContainer img {
+    width: 1.8em;
+    filter: invert(1);
+    cursor: pointer;
+    /* transition: 0.1s ease; */
+}
+
+#audioContainer img:hover {
+    filter: invert(0.5);
+}
+
+#audioContainer img:active {
+    filter: invert(0.4);
+}
+
+#chapters {
+    width: 100%;
+		height: 90%;
+		max-height: 90%;
+    overflow-y: scroll;
+		transition: background-color 0.3s ease, height 0.3s ease;
+		user-select: none;
+		cursor: wait;
+} 
+
+#chapters img {
+	height: 1rem !important;
+	width: 1rem !important;
+	padding: 0 !important;
+	pointer-events: all !important;
+}
+
+#chapters img.hide {
+	opacity: 0;
+	pointer-events: none !important;
+}
+
+.audio-scroll::-webkit-scrollbar {
+  height: 6px;
+}
+
+.audio-scroll::-webkit-scrollbar-track {
+  background: rgba(0,0,0,0.1);
+}
+
+.audio-scroll::-webkit-scrollbar-thumb {
+  background: #BDBDBD;
+}
+
+.audio-scroll::-webkit-scrollbar-thumb:hover {
+  background: #6E6E6E;
+}
+
+.chapter {
+    border-color: grey;
+    border-style: solid;
+    border-width: 1px 0 0 0;
+    border-top-left-radius: 5px;
+    padding: 0.5rem;
+    transition: 0.1s ease;
+		display: flex;
+		flex-direction: row;
+		flex-wrap: nowrap;
+		justify-content: space-between;
+		cursor: pointer;
+}
+
+.chapter:hover {
+    background-color: rgb(81, 90, 90);
+}
+
+.chapter img {
+	filter: invert(1) !important;
+}
+
+#chapter-alert {
+	display: inline-block;
+	margin: 1rem;
+}
+
+.selected-chapter {
+	background-color: rgba(255, 50, 50, 0.5);
+}
+
+.selected-chapter:hover {
+	background-color: rgba(255, 100, 100, 0.5);
+}
+
+.speakerName {
+	display: flex;
+	flex-direction: row;
+	flex: 70%;
+	pointer-events: none;
+	overflow-y: hidden;
+}
+
+.speakerLocked {
+	/* flex: 1; */
+}
+
+.speakerTime {
+	flex: 30%;
+	text-align: right;
+	pointer-events: none;
+}
+
+#playPauseButton {
+    padding-left: 1rem;
+    padding-right: 1rem;
+}
+
+#downloadButton, #editorModeButton, #fullscreenButton {
+	transform: scale(0.75);
+	padding-right: 0.75rem;
+}
+
+#zoomInButton, #zoomOutButton {
+	transform: scale(0.75);
+}
+
+#muteButton {
+	padding-right: 0.25rem;
+}
+
+#volume-slider {
+	position: absolute;
+	display: none;
+	cursor: pointer;
+	z-index: 10;
+	height: 8rem;
+	width: 1.5rem;
+	margin-top: -8rem;
+	padding-left: 1rem;
+	padding-right: 1rem;
+	margin-left: -1rem;
+	/* border-radius: 50%; */
+	-webkit-appearance: slider-vertical; /* chrome */
+	writing-mode: bt-lr; /* IE */
+	box-shadow: 0 0 10px 2px #000; /* bad results on chrome (and probably safari) */
+}
+
+#volume-container {
+	position: relative;
+	display: flex;
+	flex-direction: row;
+}
+
+#volume-container:hover #volume-slider {
+	display: inline;
+}
+
+#audioContainer canvas { /* Limit scope of the following to only canvases within a audioContainer div */
+	/* z-index: 4 !important; */
+	pointer-events: none;
+}
+
+#zoom-slider {
+    width: 10rem;
+    margin-left: 0.5rem;
+    margin-right: 0.5rem;
+	cursor: pointer;
+}
+
+#chapterButton {
+	padding-left: 0.2rem;
+	padding-right: 0.75rem;
+}
+
+#wave-timeline {
+    background-color: var(--audio-bg-colour);
+    /* background-color: rgb(24, 36, 39); */
+}
+
+#waveform-loader {
+	color: white;
+	padding: 0.2rem;
+	position: absolute;
+}
+
+#waveform-loader:after {
+	display: inline-block;
+	animation: dotty steps(1, end) 1s infinite;
+	content: '';
+}
+
+@keyframes dotty {
+	0%   { content: ''; }
+	25%  { content: '.'; }
+	50%  { content: '..'; }
+	75%  { content: '...'; }
+	100% { content: ''; }
+}
+
+wave {
+	width: 100%;
+}
+
+.toolbar-section {
+    width: 33%;
+}
+
+.noHover{
+    pointer-events: none;
+}
+
+#word-container {
+    display: flex;
+    flex-direction: row;
+    flex-wrap: wrap;
+    justify-content: space-evenly;
+    padding: 0.5rem;
+}
+
+.word {
+    margin-right: 0.5rem;
+    cursor: pointer;
+}
+
+.word:hover {
+    background-color: rgb(81, 90, 90);
+}
+
+/* Audio Table */
+
+#tapeDetails {
+	border: 1px solid olive;
+	min-width: 30%;
+}
+
+#tapeDetails td {
+	padding: 0.2rem;
+}
+
+#tapeDetails td:nth-child(1) {
+	padding-right: 6rem;
+}
+
+#tapeDetails tr:nth-of-type(odd) {
+	/* background-color: darkseagreen; */
+	background-color: #76bb58ab;
+}
+
+/* metadata table */
+.metadataTable tr:nth-child(odd) {
+    background: #dddddd;
+}
+.metadataTable tr:nth-child(even) {
+    background: #f5f3e5;
+}
+.metadataTable i {
+    font-style: italic;
+}
+.metadataTable td {
+    padding: 2px;
+}
+
+/* edit functionality */
+#edit-panel {
+	max-width: 65%;
+	width: 50%;
+	height: 0px;
+	max-height: 30vh;
+	position: relative;
+	right: 0;
+	color: white;
+	overflow-y: hidden;
+	transition: height 0.2s ease, padding 0.2s ease;
+	box-sizing: border-box; /* ensures padding doesn't modify width */
+	font-family: 'Courier New', monospace;
+	font-size: 0.85rem;
+	border-left: 1px solid rgb(24, 36, 39);
+	user-select: none;
+
+	display: flex;
+	flex-direction: column;
+	flex-wrap: nowrap;
+	justify-content: space-between;
+	flex-grow: 1;
+}
+
+#edit-panel button {
+	padding: 0.5rem;
+	/* border: 1px solid white; */
+	cursor: pointer;
+	background-color: #F8C537;
+	transition: 0.1s ease-in-out;
+	font-size: 15px;
+	font-family: 'Courier New', monospace;
+	font-weight: normal;
+}
+
+#edit-panel h3 {
+	font-size: 1.2rem;
+	margin: 0;
+}
+
+#edit-panel button:hover {
+	background-color: #af8b26;
+}
+
+.flex-row {
+	display: flex;
+	flex-direction: row;
+	flex-wrap: nowrap;
+}
+
+#edit-panel input[type='text'] {
+	min-width: 35%;
+  /* border: 1px solid white; */
+  outline: none;
+	font-size: 15px;
+	margin-right: 0.5rem;
+	margin-bottom: 0.25rem;
+	transition: 0.25s ease-in;
+	background-color: white;
+	/* flex-grow: 1; size increases when div is enlarged */
+}
+
+#edit-panel input::placeholder {
+	color: black;
+	opacity: 0.75;
+}
+
+#edit-panel input[type='checkbox'] {
+	transform: scale(1.25);
+	margin-right: 0.5rem;
+	margin-top: -0.25rem;
+}
+
+#edit-panel input[type='number'],
+.time-label {
+	border: none;
+  text-align: center;
+  width: 1.5rem;
+  padding: 0;
+	margin: 0 !important;
+	font-size: 15px;
+}
+
+.time-label {
+	background-color: transparent !important;
+	font-family: 'Courier New', Courier, monospace !important;
+	font-size: 14px !important;
+}
+
+.time-label-container {
+	width: 20%;
+	background-color: transparent;
+  display: inline-flex;
+}
+
+#edit-panel input[type='number']:focus {
+  border: none;
+  outline: none;
+}
+
+#change-all-label {
+	/* width: 100%; */
+}
+
+#save-discard {
+	/* margin-bottom: 1rem; */
+	justify-content: space-between;
+}
+
+#audio-dropdowns {
+	width: 100%;
+	background-color: var(--audio-bg-colour);
+	display: flex;
+	flex-direction: row;
+	flex-wrap: nowrap;
+	justify-content: flex-start;
+}
+
+#hover-speaker {
+	height: 2rem;
+	overflow: hidden;
+	font-family: 'Courier New', monospace;
+}
+
+#hover-speaker-canvas {
+	position: absolute;
+	overflow: hidden;
+}
+
+#region-details {
+	
+}
+
+.time-picker {
+	background-color: white;
+  display: inline-flex;
+  border: 1px solid #ccc;
+  color: #555;
+	margin-bottom: 0.25rem;
+}
+
+.no-arrows {
+  -moz-appearance: textfield;
+	-webkit-appearance: textfield;
+	appearance: textfield;
+}
+
+.no-arrows::-webkit-inner-spin-button {
+	display: none;
+}
+
+/* input::-webkit-outer-spin-button,
+input::-webkit-inner-spin-button {
+	opacity: 0.5;
+	pointer-events: none;
+} */
+ 
+.seconds {
+  width: 3.25rem !important;
+}
+
+.disabled {
+	/* background-color: #888 !important; */
+	opacity: 0.5;
+	/* cursor: not-allowed !important; */
+	pointer-events: none;
+}
+
+.wavesurfer-region {
+    cursor: pointer !important;
+    transition: background-color 0.1s ease;
+		z-index: 1 !important;
+		height: 60% !important;
+		top: 20% !important;
+		/* border: 1px solid #000; */
+		/* transition: width 2s ease; */
+}
+
+/* .wavesurfer-region:hover {
+	background-color: rgba(200, 200, 200, 0.4) !important;
+} */
+
+.region-padlock {
+	position: absolute;
+	right: 0;
+	width: 1rem !important;
+	height: 1rem;
+	padding-top: 0.2rem;
+	padding-right: 0.2rem;
+	/* pointer-events: none; */
+}
+
+.region-conflict {
+	position: absolute;
+	right: 0;
+	width: 1rem !important;
+	height: 1rem;
+	padding-top: 0.2rem;
+	padding-right: 0.4rem;
+}
+
+.region-conflict:hover {
+	filter: invert(0.85) !important;
+}
+
+.conflict-hover-icon {
+	filter: invert(0) !important;
+	width: 0.8rem !important;
+	height: 0.8rem !important;
+	padding-right: 0.4rem;
+}
+
+.region-menu {
+	position: absolute;
+	left: 0;
+	width: 1rem !important;
+	height: 1rem;
+	padding: 0.2rem 0.1rem;
+}
+
+.wavesurfer-handle {
+	/* background-color: rgb(255, 0, 0) !important; */
+	/* z-index: 20 !important; */
+	width: 3px !important;
+}
+
+.region-top {
+  height: 30% !important;
+  top: 15% !important;
+}
+
+.region-bottom {
+	height: 30% !important;
+	top: 55% !important;
+}
+
+.region-bottom img {
+	bottom: 0.2rem; /* padlock img shows bottom of region on secondary */
+}
+
+#caret-container {
+	position: absolute;
+	/* background-color: #090; */
+	height: 140px; /* match waveform */
+	width: 20px; /* match gs_content padding */
+	flex-direction: column;
+	justify-content: space-evenly;
+	left: 0; /* padding */
+	padding-top: 2rem;
+	display: none;
+}
+
+#caret-container img {
+	cursor: pointer;
+	filter: none;
+	opacity: 0.85;
+	width: 1.5rem;
+}
+
+#caret-container img:hover {
+	filter: none;
+	opacity: 1;
+}
+
+.selected-header {
+	justify-content: space-between;
+	padding-top: 0.5rem;
+	padding-bottom: 0.5rem;
+}
+
+#context-menu {
+	position: fixed;
+	z-index: 10000;
+	width: 200px;
+	background: rgb(20, 30, 32);
+	box-shadow: 1px 1px 15px -5px black;
+	/* border-radius: 5px; */
+	display: none;
+	border: 1px solid #eee;
+}
+
+.context-menu-item {
+	padding: 8px 10px;
+	font-size: 14px;
+	user-select: none;
+	color: #eee;
+	cursor: pointer;
+	border-radius: inherit;
+}
+
+.context-menu-item:hover {
+	background: #343434;
+}
+
+/* .context-menu-item.faded {
+	color: rgb(94, 94, 94);
+}
+
+.context-menu-item.faded:hover {
+	background-color: rgb(20, 30, 32);
+} */
+
+#timeline-menu-button {
+	position: absolute;
+	right: 0;
+	padding: 0.2rem;
+	width: 1rem !important;
+	z-index: 1;
+	/* display: none; */
+	transition: transform 0.2s ease-in-out;
+}
+
+#timeline-menu {
+	font-family: 'Courier New', monospace;
+	position: absolute;
+	right: 1.5rem;
+	width: 200px;
+	background: rgb(20, 30, 32);
+	box-shadow: 1px 1px 15px -5px black;
+	/* border-radius: 5px; */
+	z-index: 12;
+	display: none;
+	margin: 2.2rem 0;
+	border: 1px solid #eee;
+}
+
+#timeline-menu input {
+	pointer-events: none;
+}
+
+#timeline-menu hr {
+	height: 1px;
+	border: 0;
+	background: #333;
+	margin-top: 0;
+}
+
+.timeline-menu-item {
+	padding: 0.4rem 0.8rem;
+	font-size: 14px;
+	user-select: none;
+	color: #eee;
+	cursor: pointer;
+	border-radius: inherit;
+	display: flex;
+	flex-wrap: nowrap;
+	justify-content: space-between;
+}
+
+.timeline-menu-item:hover {
+	background: #343434;
+}
+
+.timeline-menu-subtext {
+	padding: 0.1rem 0.4rem;
+	font-size: 14px;
+	color: #999;
+	font-weight: bold;
+	pointer-events: none;
+}
+
+#chapter-search-box {
+	width: 100%;
+	height: 10%;
+	display: flex;
+	flex-direction: row;
+	justify-content: right;
+}
+
+#chapter-search-input {
+	width: 90%;
+	height: 100%;
+	margin-right: auto;
+	background: transparent;
+	border: none;
+	outline: none;
+	color: #eee;
+	font-family: 'Courier New', Courier, monospace;
+	font-size: 1rem;
+	margin-left: 0.5rem;
+	margin-top: 0.2rem;
+	margin-bottom: 0.2rem;
+}
+
+#chapter-search-input:focus {
+	outline: none;
+}
+
+#chapter-search-input::placeholder {
+	color: white;
+}
+
+#filter-menu {
+	position: absolute;
+	width: 48%;
+	display: none;
+	flex-direction: row;
+	flex-wrap: nowrap;
+	justify-content: space-between;
+	align-items: center;
+	z-index: 21;
+	background: rgb(20, 30, 32);
+	color: white;
+	box-shadow: 1px 1px 15px black;
+	border: 1px solid #eee;
+	margin: 2px;
+	padding: 0.5rem;
+}
+
+#filter-menu.show {
+	display: flex;
+}
+
+#filter-menu input {
+	width: 30%;
+}
+
+#filter-menu span {
+	width: 4em;
+	text-align: right;
+}
+
+#filter-min {
+	margin-right: 1rem;
+}
+
+#filter-count {
+	color: #888;
+	align-self: flex-end;
+}
+
+#chapters-container {
+	min-width: 45%;
+	max-width: 55%;
+	width: 50%;
+	height: 100%;
+	max-height: 30vh;
+	font-size: 14px;
+	color: white;
+	transition: background-color 0.2s ease, height 0.2s ease;
+	user-select: none;
+	resize: horizontal;
+	overflow: auto;
+}
+
+#chapters-container img {
+	/* pointer-events: none; */
+	width: 1.5rem;
+	padding: 0.2rem;
+}
+
+#new-canvas {
+	position: absolute;
+	background-color: var(--audio-bg-colour);
+	background-size: cover;
+	top: 0px;
+	left: 0px;
+	overflow-y: scroll;
+}
+
+#waveform-spinner {
+	position: absolute;
+	inset: 0; /* top, bottom, left, right shorthand */
+  margin: auto; /* center horizontally and vertically */
+  border: 5px solid white; 
+  border-top: 5px solid var(--audio-accent-colour);
+  border-radius: 50%;
+	background-color: var(--audio-bg-colour);
+  width: 3rem;
+  height: 3rem;
+  animation: spin 1.3s ease-in-out infinite;
+	z-index: 10;
+	transition: 0.5s ease-in-out;
+}
+
+@keyframes spin {
+  0% { transform: rotate(0deg); }
+  100% { transform: rotate(720deg); }
+}
+
+#waveform-blocker {
+	position: absolute;
+	width: 100%;
+	height: 100%;
+	background-color: var(--audio-bg-colour);
+	z-index: 9;
+}
+
+.track-set-label {
+	position: absolute;
+	max-width: 150px;
+	left: 0.2rem;
+	color: #eee;
+	font-size: 14px;
+	user-select: none;
+}
+
+#track-set-label-bottom {
+	bottom: 0px;
+}
+
+.track-arrow {
+	position: relative;
+	width: 1.5em !important;
+	transform: rotate(90deg);
+	vertical-align: text-bottom;
+	z-index: 20;
+	/* transition: transform 0.2s ease-in-out; */
+}
+
+#version-select-menu {
+	position: absolute;
+	display: none;
+	z-index: 21;
+	background: rgb(20, 30, 32);
+	box-shadow: 1px 1px 15px -5px black;
+	/* border-radius: 5px; */
+	border: 1px solid #eee;
+	overflow-y: auto;
+	margin: 2px;
+}
+
+#version-select-menu.visible {
+	display: inline;
+}
+
+.version-select-menu-item {
+	padding: 8px 10px;
+	font-size: 14px;
+	user-select: none;
+	color: #eee;
+	cursor: pointer;
+	border-radius: inherit;
+}
+
+.version-select-menu-item:hover {
+	background: #343434;
+}
+
+.version-has-conflict {
+	height: 1rem !important;
+	width: 1rem !important;
+	filter: invert(0) !important;
+	padding-left: 0.3rem;
+	vertical-align: middle;
+}
+
+#save-popup {
+	display: none;
+	position: absolute;
+	inset: 0;
+	margin: auto;
+	width: 25vw;
+	height: 9vh;
+	background: rgb(20, 30, 32);
+	border: 1px solid #ffffff70;
+	/* border-radius: 5px; */
+	box-shadow: 1px 1px 15px -5px black;
+	z-index: 1000;
+	padding: 0.5rem 0.5rem 2rem 0.5rem;
+	color: #eee;
+	font-weight: bold;
+}
+
+#commit-message {
+	width: 22vw;
+	resize: none;
+	display: block;
+	margin-left: auto;
+	margin-right: auto;
+	margin-top: 0.5rem;
+	margin-bottom: 0.1rem;
+}
+
+#save-popup button {
+	width: 11vw;
+	margin: 0.2rem;
+}
+
+#save-popup-bg {
+	display: none;
+	position: absolute;
+	width: 100%;
+	height: 100%;
+	top: 0;
+	left: 0;
+	backdrop-filter: blur(1px);
+	background-color: rgba(20, 34, 38, 0.1);
+	z-index: 999;
+	user-select: none;
+}
+
+.visible {
+	display: block !important;
+}
+
+:root { /* css vars */
+	--audio-accent-colour: #66d640;
+	/* --audio-bg-colour: rgb(40, 54, 58); */
+	/* --audio-bg-colour: rgb(29, 43, 47); */
+	--audio-bg-colour: rgb(29, 40, 47);
+
+	/* document editor, width of editable usercomments cells */
+	--metatablecellwidth: 400px;
+}
+
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/css
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/css	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/css	(revision 38779)
@@ -0,0 +1,152 @@
+/* cyrillic-ext */
+@font-face {
+  font-family: 'Oswald';
+  font-style: normal;
+  font-weight: 400;
+  src: url(https://fonts.gstatic.com/s/oswald/v53/TK3_WkUHHAIjg75cFRf3bXL8LICs1_FvsUtiZTaR.woff2) format('woff2');
+  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
+}
+/* cyrillic */
+@font-face {
+  font-family: 'Oswald';
+  font-style: normal;
+  font-weight: 400;
+  src: url(https://fonts.gstatic.com/s/oswald/v53/TK3_WkUHHAIjg75cFRf3bXL8LICs1_FvsUJiZTaR.woff2) format('woff2');
+  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
+}
+/* vietnamese */
+@font-face {
+  font-family: 'Oswald';
+  font-style: normal;
+  font-weight: 400;
+  src: url(https://fonts.gstatic.com/s/oswald/v53/TK3_WkUHHAIjg75cFRf3bXL8LICs1_FvsUliZTaR.woff2) format('woff2');
+  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
+}
+/* latin-ext */
+@font-face {
+  font-family: 'Oswald';
+  font-style: normal;
+  font-weight: 400;
+  src: url(https://fonts.gstatic.com/s/oswald/v53/TK3_WkUHHAIjg75cFRf3bXL8LICs1_FvsUhiZTaR.woff2) format('woff2');
+  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
+}
+/* latin */
+@font-face {
+  font-family: 'Oswald';
+  font-style: normal;
+  font-weight: 400;
+  src: url(https://fonts.gstatic.com/s/oswald/v53/TK3_WkUHHAIjg75cFRf3bXL8LICs1_FvsUZiZQ.woff2) format('woff2');
+  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
+}
+/* cyrillic-ext */
+@font-face {
+  font-family: 'Roboto';
+  font-style: normal;
+  font-weight: 400;
+  src: url(https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu72xKOzY.woff2) format('woff2');
+  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
+}
+/* cyrillic */
+@font-face {
+  font-family: 'Roboto';
+  font-style: normal;
+  font-weight: 400;
+  src: url(https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu5mxKOzY.woff2) format('woff2');
+  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
+}
+/* greek-ext */
+@font-face {
+  font-family: 'Roboto';
+  font-style: normal;
+  font-weight: 400;
+  src: url(https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu7mxKOzY.woff2) format('woff2');
+  unicode-range: U+1F00-1FFF;
+}
+/* greek */
+@font-face {
+  font-family: 'Roboto';
+  font-style: normal;
+  font-weight: 400;
+  src: url(https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu4WxKOzY.woff2) format('woff2');
+  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
+}
+/* vietnamese */
+@font-face {
+  font-family: 'Roboto';
+  font-style: normal;
+  font-weight: 400;
+  src: url(https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu7WxKOzY.woff2) format('woff2');
+  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
+}
+/* latin-ext */
+@font-face {
+  font-family: 'Roboto';
+  font-style: normal;
+  font-weight: 400;
+  src: url(https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu7GxKOzY.woff2) format('woff2');
+  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
+}
+/* latin */
+@font-face {
+  font-family: 'Roboto';
+  font-style: normal;
+  font-weight: 400;
+  src: url(https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu4mxK.woff2) format('woff2');
+  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
+}
+/* cyrillic-ext */
+@font-face {
+  font-family: 'Roboto Slab';
+  font-style: normal;
+  font-weight: 400;
+  src: url(https://fonts.gstatic.com/s/robotoslab/v34/BngbUXZYTXPIvIBgJJSb6s3BzlRRfKOFbvjojISmYmRjRdE.woff2) format('woff2');
+  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
+}
+/* cyrillic */
+@font-face {
+  font-family: 'Roboto Slab';
+  font-style: normal;
+  font-weight: 400;
+  src: url(https://fonts.gstatic.com/s/robotoslab/v34/BngbUXZYTXPIvIBgJJSb6s3BzlRRfKOFbvjojISma2RjRdE.woff2) format('woff2');
+  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
+}
+/* greek-ext */
+@font-face {
+  font-family: 'Roboto Slab';
+  font-style: normal;
+  font-weight: 400;
+  src: url(https://fonts.gstatic.com/s/robotoslab/v34/BngbUXZYTXPIvIBgJJSb6s3BzlRRfKOFbvjojISmY2RjRdE.woff2) format('woff2');
+  unicode-range: U+1F00-1FFF;
+}
+/* greek */
+@font-face {
+  font-family: 'Roboto Slab';
+  font-style: normal;
+  font-weight: 400;
+  src: url(https://fonts.gstatic.com/s/robotoslab/v34/BngbUXZYTXPIvIBgJJSb6s3BzlRRfKOFbvjojISmbGRjRdE.woff2) format('woff2');
+  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
+}
+/* vietnamese */
+@font-face {
+  font-family: 'Roboto Slab';
+  font-style: normal;
+  font-weight: 400;
+  src: url(https://fonts.gstatic.com/s/robotoslab/v34/BngbUXZYTXPIvIBgJJSb6s3BzlRRfKOFbvjojISmYGRjRdE.woff2) format('woff2');
+  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
+}
+/* latin-ext */
+@font-face {
+  font-family: 'Roboto Slab';
+  font-style: normal;
+  font-weight: 400;
+  src: url(https://fonts.gstatic.com/s/robotoslab/v34/BngbUXZYTXPIvIBgJJSb6s3BzlRRfKOFbvjojISmYWRjRdE.woff2) format('woff2');
+  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
+}
+/* latin */
+@font-face {
+  font-family: 'Roboto Slab';
+  font-style: normal;
+  font-weight: 400;
+  src: url(https://fonts.gstatic.com/s/robotoslab/v34/BngbUXZYTXPIvIBgJJSb6s3BzlRRfKOFbvjojISmb2Rj.woff2) format('woff2');
+  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
+}
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/css.css
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/css.css	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/css.css	(revision 38779)
@@ -0,0 +1,152 @@
+/* cyrillic-ext */
+@font-face {
+  font-family: 'Oswald';
+  font-style: normal;
+  font-weight: 400;
+  src: url(https://fonts.gstatic.com/s/oswald/v49/TK3_WkUHHAIjg75cFRf3bXL8LICs1_FvsUtiZTaR.woff2) format('woff2');
+  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
+}
+/* cyrillic */
+@font-face {
+  font-family: 'Oswald';
+  font-style: normal;
+  font-weight: 400;
+  src: url(https://fonts.gstatic.com/s/oswald/v49/TK3_WkUHHAIjg75cFRf3bXL8LICs1_FvsUJiZTaR.woff2) format('woff2');
+  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
+}
+/* vietnamese */
+@font-face {
+  font-family: 'Oswald';
+  font-style: normal;
+  font-weight: 400;
+  src: url(https://fonts.gstatic.com/s/oswald/v49/TK3_WkUHHAIjg75cFRf3bXL8LICs1_FvsUliZTaR.woff2) format('woff2');
+  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
+}
+/* latin-ext */
+@font-face {
+  font-family: 'Oswald';
+  font-style: normal;
+  font-weight: 400;
+  src: url(https://fonts.gstatic.com/s/oswald/v49/TK3_WkUHHAIjg75cFRf3bXL8LICs1_FvsUhiZTaR.woff2) format('woff2');
+  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
+}
+/* latin */
+@font-face {
+  font-family: 'Oswald';
+  font-style: normal;
+  font-weight: 400;
+  src: url(https://fonts.gstatic.com/s/oswald/v49/TK3_WkUHHAIjg75cFRf3bXL8LICs1_FvsUZiZQ.woff2) format('woff2');
+  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
+}
+/* cyrillic-ext */
+@font-face {
+  font-family: 'Roboto';
+  font-style: normal;
+  font-weight: 400;
+  src: url(https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu72xKOzY.woff2) format('woff2');
+  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
+}
+/* cyrillic */
+@font-face {
+  font-family: 'Roboto';
+  font-style: normal;
+  font-weight: 400;
+  src: url(https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu5mxKOzY.woff2) format('woff2');
+  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
+}
+/* greek-ext */
+@font-face {
+  font-family: 'Roboto';
+  font-style: normal;
+  font-weight: 400;
+  src: url(https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu7mxKOzY.woff2) format('woff2');
+  unicode-range: U+1F00-1FFF;
+}
+/* greek */
+@font-face {
+  font-family: 'Roboto';
+  font-style: normal;
+  font-weight: 400;
+  src: url(https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu4WxKOzY.woff2) format('woff2');
+  unicode-range: U+0370-03FF;
+}
+/* vietnamese */
+@font-face {
+  font-family: 'Roboto';
+  font-style: normal;
+  font-weight: 400;
+  src: url(https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu7WxKOzY.woff2) format('woff2');
+  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
+}
+/* latin-ext */
+@font-face {
+  font-family: 'Roboto';
+  font-style: normal;
+  font-weight: 400;
+  src: url(https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu7GxKOzY.woff2) format('woff2');
+  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
+}
+/* latin */
+@font-face {
+  font-family: 'Roboto';
+  font-style: normal;
+  font-weight: 400;
+  src: url(https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu4mxK.woff2) format('woff2');
+  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
+}
+/* cyrillic-ext */
+@font-face {
+  font-family: 'Roboto Slab';
+  font-style: normal;
+  font-weight: 400;
+  src: url(https://fonts.gstatic.com/s/robotoslab/v24/BngbUXZYTXPIvIBgJJSb6s3BzlRRfKOFbvjojISmYmRjRdE.woff2) format('woff2');
+  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
+}
+/* cyrillic */
+@font-face {
+  font-family: 'Roboto Slab';
+  font-style: normal;
+  font-weight: 400;
+  src: url(https://fonts.gstatic.com/s/robotoslab/v24/BngbUXZYTXPIvIBgJJSb6s3BzlRRfKOFbvjojISma2RjRdE.woff2) format('woff2');
+  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
+}
+/* greek-ext */
+@font-face {
+  font-family: 'Roboto Slab';
+  font-style: normal;
+  font-weight: 400;
+  src: url(https://fonts.gstatic.com/s/robotoslab/v24/BngbUXZYTXPIvIBgJJSb6s3BzlRRfKOFbvjojISmY2RjRdE.woff2) format('woff2');
+  unicode-range: U+1F00-1FFF;
+}
+/* greek */
+@font-face {
+  font-family: 'Roboto Slab';
+  font-style: normal;
+  font-weight: 400;
+  src: url(https://fonts.gstatic.com/s/robotoslab/v24/BngbUXZYTXPIvIBgJJSb6s3BzlRRfKOFbvjojISmbGRjRdE.woff2) format('woff2');
+  unicode-range: U+0370-03FF;
+}
+/* vietnamese */
+@font-face {
+  font-family: 'Roboto Slab';
+  font-style: normal;
+  font-weight: 400;
+  src: url(https://fonts.gstatic.com/s/robotoslab/v24/BngbUXZYTXPIvIBgJJSb6s3BzlRRfKOFbvjojISmYGRjRdE.woff2) format('woff2');
+  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
+}
+/* latin-ext */
+@font-face {
+  font-family: 'Roboto Slab';
+  font-style: normal;
+  font-weight: 400;
+  src: url(https://fonts.gstatic.com/s/robotoslab/v24/BngbUXZYTXPIvIBgJJSb6s3BzlRRfKOFbvjojISmYWRjRdE.woff2) format('woff2');
+  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
+}
+/* latin */
+@font-face {
+  font-family: 'Roboto Slab';
+  font-style: normal;
+  font-weight: 400;
+  src: url(https://fonts.gstatic.com/s/robotoslab/v24/BngbUXZYTXPIvIBgJJSb6s3BzlRRfKOFbvjojISmb2Rj.woff2) format('woff2');
+  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
+}
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/details.module.css
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/details.module.css	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/details.module.css	(revision 38779)
@@ -0,0 +1,10 @@
+/**
+ * @file
+ * Collapsible details.
+ *
+ * @see collapse.js
+ */
+
+.js details:not([open]) .details-wrapper {
+  display: none;
+}
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/dom-min.js.download
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/dom-min.js.download	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/dom-min.js.download	(revision 38779)
@@ -0,0 +1,9 @@
+/*
+Copyright (c) 2011, Yahoo! Inc. All rights reserved.
+Code licensed under the BSD License:
+http://developer.yahoo.com/yui/license.html
+version: 2.9.0
+*/
+(function(){YAHOO.env._id_counter=YAHOO.env._id_counter||0;var e=YAHOO.util,k=YAHOO.lang,L=YAHOO.env.ua,a=YAHOO.lang.trim,B={},F={},m=/^t(?:able|d|h)$/i,w=/color$/i,j=window.document,v=j.documentElement,C="ownerDocument",M="defaultView",U="documentElement",S="compatMode",z="offsetLeft",o="offsetTop",T="offsetParent",x="parentNode",K="nodeType",c="tagName",n="scrollLeft",H="scrollTop",p="getBoundingClientRect",V="getComputedStyle",y="currentStyle",l="CSS1Compat",A="BackCompat",E="class",f="className",i="",b=" ",R="(?:^|\\s)",J="(?= |$)",t="g",O="position",D="fixed",u="relative",I="left",N="top",Q="medium",P="borderLeftWidth",q="borderTopWidth",d=L.opera,h=L.webkit,g=L.gecko,s=L.ie;e.Dom={CUSTOM_ATTRIBUTES:(!v.hasAttribute)?{"for":"htmlFor","class":f}:{"htmlFor":"for","className":E},DOT_ATTRIBUTES:{checked:true},get:function(aa){var ac,X,ab,Z,W,G,Y=null;if(aa){if(typeof aa=="string"||typeof aa=="number"){ac=aa+"";aa=j.getElementById(aa);G=(aa)?aa.attributes:null;if(aa&&G&&G.id&&G.id.value===ac){return aa;}else{if(aa&&j.all){aa=null;X=j.all[ac];if(X&&X.length){for(Z=0,W=X.length;Z<W;++Z){if(X[Z].id===ac){return X[Z];}}}}}}else{if(e.Element&&aa instanceof e.Element){aa=aa.get("element");}else{if(!aa.nodeType&&"length" in aa){ab=[];for(Z=0,W=aa.length;Z<W;++Z){ab[ab.length]=e.Dom.get(aa[Z]);}aa=ab;}}}Y=aa;}return Y;},getComputedStyle:function(G,W){if(window[V]){return G[C][M][V](G,null)[W];}else{if(G[y]){return e.Dom.IE_ComputedStyle.get(G,W);}}},getStyle:function(G,W){return e.Dom.batch(G,e.Dom._getStyle,W);},_getStyle:function(){if(window[V]){return function(G,Y){Y=(Y==="float")?Y="cssFloat":e.Dom._toCamel(Y);var X=G.style[Y],W;if(!X){W=G[C][M][V](G,null);if(W){X=W[Y];}}return X;};}else{if(v[y]){return function(G,Y){var X;switch(Y){case"opacity":X=100;try{X=G.filters["DXImageTransform.Microsoft.Alpha"].opacity;}catch(Z){try{X=G.filters("alpha").opacity;}catch(W){}}return X/100;case"float":Y="styleFloat";default:Y=e.Dom._toCamel(Y);X=G[y]?G[y][Y]:null;return(G.style[Y]||X);}};}}}(),setStyle:function(G,W,X){e.Dom.batch(G,e.Dom._setStyle,{prop:W,val:X});},_setStyle:function(){if(!window.getComputedStyle&&j.documentElement.currentStyle){return function(W,G){var X=e.Dom._toCamel(G.prop),Y=G.val;if(W){switch(X){case"opacity":if(Y===""||Y===null||Y===1){W.style.removeAttribute("filter");}else{if(k.isString(W.style.filter)){W.style.filter="alpha(opacity="+Y*100+")";if(!W[y]||!W[y].hasLayout){W.style.zoom=1;}}}break;case"float":X="styleFloat";default:W.style[X]=Y;}}else{}};}else{return function(W,G){var X=e.Dom._toCamel(G.prop),Y=G.val;if(W){if(X=="float"){X="cssFloat";}W.style[X]=Y;}else{}};}}(),getXY:function(G){return e.Dom.batch(G,e.Dom._getXY);},_canPosition:function(G){return(e.Dom._getStyle(G,"display")!=="none"&&e.Dom._inDoc(G));},_getXY:function(W){var X,G,Z,ab,Y,aa,ac=Math.round,ad=false;if(e.Dom._canPosition(W)){Z=W[p]();ab=W[C];X=e.Dom.getDocumentScrollLeft(ab);G=e.Dom.getDocumentScrollTop(ab);ad=[Z[I],Z[N]];if(Y||aa){ad[0]-=aa;ad[1]-=Y;}if((G||X)){ad[0]+=X;ad[1]+=G;}ad[0]=ac(ad[0]);ad[1]=ac(ad[1]);}else{}return ad;},getX:function(G){var W=function(X){return e.Dom.getXY(X)[0];};return e.Dom.batch(G,W,e.Dom,true);},getY:function(G){var W=function(X){return e.Dom.getXY(X)[1];};return e.Dom.batch(G,W,e.Dom,true);},setXY:function(G,X,W){e.Dom.batch(G,e.Dom._setXY,{pos:X,noRetry:W});},_setXY:function(G,Z){var aa=e.Dom._getStyle(G,O),Y=e.Dom.setStyle,ad=Z.pos,W=Z.noRetry,ab=[parseInt(e.Dom.getComputedStyle(G,I),10),parseInt(e.Dom.getComputedStyle(G,N),10)],ac,X;ac=e.Dom._getXY(G);if(!ad||ac===false){return false;}if(aa=="static"){aa=u;Y(G,O,aa);}if(isNaN(ab[0])){ab[0]=(aa==u)?0:G[z];}if(isNaN(ab[1])){ab[1]=(aa==u)?0:G[o];}if(ad[0]!==null){Y(G,I,ad[0]-ac[0]+ab[0]+"px");}if(ad[1]!==null){Y(G,N,ad[1]-ac[1]+ab[1]+"px");}if(!W){X=e.Dom._getXY(G);if((ad[0]!==null&&X[0]!=ad[0])||(ad[1]!==null&&X[1]!=ad[1])){e.Dom._setXY(G,{pos:ad,noRetry:true});}}},setX:function(W,G){e.Dom.setXY(W,[G,null]);},setY:function(G,W){e.Dom.setXY(G,[null,W]);},getRegion:function(G){var W=function(X){var Y=false;if(e.Dom._canPosition(X)){Y=e.Region.getRegion(X);}else{}return Y;};return e.Dom.batch(G,W,e.Dom,true);},getClientWidth:function(){return e.Dom.getViewportWidth();},getClientHeight:function(){return e.Dom.getViewportHeight();},getElementsByClassName:function(ab,af,ac,ae,X,ad){af=af||"*";ac=(ac)?e.Dom.get(ac):null||j;if(!ac){return[];}var W=[],G=ac.getElementsByTagName(af),Z=e.Dom.hasClass;for(var Y=0,aa=G.length;Y<aa;++Y){if(Z(G[Y],ab)){W[W.length]=G[Y];}}if(ae){e.Dom.batch(W,ae,X,ad);}return W;},hasClass:function(W,G){return e.Dom.batch(W,e.Dom._hasClass,G);},_hasClass:function(X,W){var G=false,Y;if(X&&W){Y=e.Dom._getAttribute(X,f)||i;if(Y){Y=Y.replace(/\s+/g,b);}if(W.exec){G=W.test(Y);}else{G=W&&(b+Y+b).indexOf(b+W+b)>-1;}}else{}return G;},addClass:function(W,G){return e.Dom.batch(W,e.Dom._addClass,G);},_addClass:function(X,W){var G=false,Y;if(X&&W){Y=e.Dom._getAttribute(X,f)||i;if(!e.Dom._hasClass(X,W)){e.Dom.setAttribute(X,f,a(Y+b+W));G=true;}}else{}return G;},removeClass:function(W,G){return e.Dom.batch(W,e.Dom._removeClass,G);},_removeClass:function(Y,X){var W=false,aa,Z,G;if(Y&&X){aa=e.Dom._getAttribute(Y,f)||i;e.Dom.setAttribute(Y,f,aa.replace(e.Dom._getClassRegex(X),i));Z=e.Dom._getAttribute(Y,f);if(aa!==Z){e.Dom.setAttribute(Y,f,a(Z));W=true;if(e.Dom._getAttribute(Y,f)===""){G=(Y.hasAttribute&&Y.hasAttribute(E))?E:f;Y.removeAttribute(G);}}}else{}return W;},replaceClass:function(X,W,G){return e.Dom.batch(X,e.Dom._replaceClass,{from:W,to:G});},_replaceClass:function(Y,X){var W,ab,aa,G=false,Z;if(Y&&X){ab=X.from;aa=X.to;if(!aa){G=false;}else{if(!ab){G=e.Dom._addClass(Y,X.to);}else{if(ab!==aa){Z=e.Dom._getAttribute(Y,f)||i;W=(b+Z.replace(e.Dom._getClassRegex(ab),b+aa).replace(/\s+/g,b)).split(e.Dom._getClassRegex(aa));W.splice(1,0,b+aa);e.Dom.setAttribute(Y,f,a(W.join(i)));G=true;}}}}else{}return G;},generateId:function(G,X){X=X||"yui-gen";var W=function(Y){if(Y&&Y.id){return Y.id;}var Z=X+YAHOO.env._id_counter++;
+if(Y){if(Y[C]&&Y[C].getElementById(Z)){return e.Dom.generateId(Y,Z+X);}Y.id=Z;}return Z;};return e.Dom.batch(G,W,e.Dom,true)||W.apply(e.Dom,arguments);},isAncestor:function(W,X){W=e.Dom.get(W);X=e.Dom.get(X);var G=false;if((W&&X)&&(W[K]&&X[K])){if(W.contains&&W!==X){G=W.contains(X);}else{if(W.compareDocumentPosition){G=!!(W.compareDocumentPosition(X)&16);}}}else{}return G;},inDocument:function(G,W){return e.Dom._inDoc(e.Dom.get(G),W);},_inDoc:function(W,X){var G=false;if(W&&W[c]){X=X||W[C];G=e.Dom.isAncestor(X[U],W);}else{}return G;},getElementsBy:function(W,af,ab,ad,X,ac,ae){af=af||"*";ab=(ab)?e.Dom.get(ab):null||j;var aa=(ae)?null:[],G;if(ab){G=ab.getElementsByTagName(af);for(var Y=0,Z=G.length;Y<Z;++Y){if(W(G[Y])){if(ae){aa=G[Y];break;}else{aa[aa.length]=G[Y];}}}if(ad){e.Dom.batch(aa,ad,X,ac);}}return aa;},getElementBy:function(X,G,W){return e.Dom.getElementsBy(X,G,W,null,null,null,true);},batch:function(X,ab,aa,Z){var Y=[],W=(Z)?aa:null;X=(X&&(X[c]||X.item))?X:e.Dom.get(X);if(X&&ab){if(X[c]||X.length===undefined){return ab.call(W,X,aa);}for(var G=0;G<X.length;++G){Y[Y.length]=ab.call(W||X[G],X[G],aa);}}else{return false;}return Y;},getDocumentHeight:function(){var W=(j[S]!=l||h)?j.body.scrollHeight:v.scrollHeight,G=Math.max(W,e.Dom.getViewportHeight());return G;},getDocumentWidth:function(){var W=(j[S]!=l||h)?j.body.scrollWidth:v.scrollWidth,G=Math.max(W,e.Dom.getViewportWidth());return G;},getViewportHeight:function(){var G=self.innerHeight,W=j[S];if((W||s)&&!d){G=(W==l)?v.clientHeight:j.body.clientHeight;}return G;},getViewportWidth:function(){var G=self.innerWidth,W=j[S];if(W||s){G=(W==l)?v.clientWidth:j.body.clientWidth;}return G;},getAncestorBy:function(G,W){while((G=G[x])){if(e.Dom._testElement(G,W)){return G;}}return null;},getAncestorByClassName:function(W,G){W=e.Dom.get(W);if(!W){return null;}var X=function(Y){return e.Dom.hasClass(Y,G);};return e.Dom.getAncestorBy(W,X);},getAncestorByTagName:function(W,G){W=e.Dom.get(W);if(!W){return null;}var X=function(Y){return Y[c]&&Y[c].toUpperCase()==G.toUpperCase();};return e.Dom.getAncestorBy(W,X);},getPreviousSiblingBy:function(G,W){while(G){G=G.previousSibling;if(e.Dom._testElement(G,W)){return G;}}return null;},getPreviousSibling:function(G){G=e.Dom.get(G);if(!G){return null;}return e.Dom.getPreviousSiblingBy(G);},getNextSiblingBy:function(G,W){while(G){G=G.nextSibling;if(e.Dom._testElement(G,W)){return G;}}return null;},getNextSibling:function(G){G=e.Dom.get(G);if(!G){return null;}return e.Dom.getNextSiblingBy(G);},getFirstChildBy:function(G,X){var W=(e.Dom._testElement(G.firstChild,X))?G.firstChild:null;return W||e.Dom.getNextSiblingBy(G.firstChild,X);},getFirstChild:function(G,W){G=e.Dom.get(G);if(!G){return null;}return e.Dom.getFirstChildBy(G);},getLastChildBy:function(G,X){if(!G){return null;}var W=(e.Dom._testElement(G.lastChild,X))?G.lastChild:null;return W||e.Dom.getPreviousSiblingBy(G.lastChild,X);},getLastChild:function(G){G=e.Dom.get(G);return e.Dom.getLastChildBy(G);},getChildrenBy:function(W,Y){var X=e.Dom.getFirstChildBy(W,Y),G=X?[X]:[];e.Dom.getNextSiblingBy(X,function(Z){if(!Y||Y(Z)){G[G.length]=Z;}return false;});return G;},getChildren:function(G){G=e.Dom.get(G);if(!G){}return e.Dom.getChildrenBy(G);},getDocumentScrollLeft:function(G){G=G||j;return Math.max(G[U].scrollLeft,G.body.scrollLeft);},getDocumentScrollTop:function(G){G=G||j;return Math.max(G[U].scrollTop,G.body.scrollTop);},insertBefore:function(W,G){W=e.Dom.get(W);G=e.Dom.get(G);if(!W||!G||!G[x]){return null;}return G[x].insertBefore(W,G);},insertAfter:function(W,G){W=e.Dom.get(W);G=e.Dom.get(G);if(!W||!G||!G[x]){return null;}if(G.nextSibling){return G[x].insertBefore(W,G.nextSibling);}else{return G[x].appendChild(W);}},getClientRegion:function(){var X=e.Dom.getDocumentScrollTop(),W=e.Dom.getDocumentScrollLeft(),Y=e.Dom.getViewportWidth()+W,G=e.Dom.getViewportHeight()+X;return new e.Region(X,Y,G,W);},setAttribute:function(W,G,X){e.Dom.batch(W,e.Dom._setAttribute,{attr:G,val:X});},_setAttribute:function(X,W){var G=e.Dom._toCamel(W.attr),Y=W.val;if(X&&X.setAttribute){if(e.Dom.DOT_ATTRIBUTES[G]&&X.tagName&&X.tagName!="BUTTON"){X[G]=Y;}else{G=e.Dom.CUSTOM_ATTRIBUTES[G]||G;X.setAttribute(G,Y);}}else{}},getAttribute:function(W,G){return e.Dom.batch(W,e.Dom._getAttribute,G);},_getAttribute:function(W,G){var X;G=e.Dom.CUSTOM_ATTRIBUTES[G]||G;if(e.Dom.DOT_ATTRIBUTES[G]){X=W[G];}else{if(W&&"getAttribute" in W){if(/^(?:href|src)$/.test(G)){X=W.getAttribute(G,2);}else{X=W.getAttribute(G);}}else{}}return X;},_toCamel:function(W){var X=B;function G(Y,Z){return Z.toUpperCase();}return X[W]||(X[W]=W.indexOf("-")===-1?W:W.replace(/-([a-z])/gi,G));},_getClassRegex:function(W){var G;if(W!==undefined){if(W.exec){G=W;}else{G=F[W];if(!G){W=W.replace(e.Dom._patterns.CLASS_RE_TOKENS,"\\$1");W=W.replace(/\s+/g,b);G=F[W]=new RegExp(R+W+J,t);}}}return G;},_patterns:{ROOT_TAG:/^body|html$/i,CLASS_RE_TOKENS:/([\.\(\)\^\$\*\+\?\|\[\]\{\}\\])/g},_testElement:function(G,W){return G&&G[K]==1&&(!W||W(G));},_calcBorders:function(X,Y){var W=parseInt(e.Dom[V](X,q),10)||0,G=parseInt(e.Dom[V](X,P),10)||0;if(g){if(m.test(X[c])){W=0;G=0;}}Y[0]+=G;Y[1]+=W;return Y;}};var r=e.Dom[V];if(L.opera){e.Dom[V]=function(W,G){var X=r(W,G);if(w.test(G)){X=e.Dom.Color.toRGB(X);}return X;};}if(L.webkit){e.Dom[V]=function(W,G){var X=r(W,G);if(X==="rgba(0, 0, 0, 0)"){X="transparent";}return X;};}if(L.ie&&L.ie>=8){e.Dom.DOT_ATTRIBUTES.type=true;}})();YAHOO.util.Region=function(d,e,a,c){this.top=d;this.y=d;this[1]=d;this.right=e;this.bottom=a;this.left=c;this.x=c;this[0]=c;this.width=this.right-this.left;this.height=this.bottom-this.top;};YAHOO.util.Region.prototype.contains=function(a){return(a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom);};YAHOO.util.Region.prototype.getArea=function(){return((this.bottom-this.top)*(this.right-this.left));};YAHOO.util.Region.prototype.intersect=function(f){var d=Math.max(this.top,f.top),e=Math.min(this.right,f.right),a=Math.min(this.bottom,f.bottom),c=Math.max(this.left,f.left);
+if(a>=d&&e>=c){return new YAHOO.util.Region(d,e,a,c);}else{return null;}};YAHOO.util.Region.prototype.union=function(f){var d=Math.min(this.top,f.top),e=Math.max(this.right,f.right),a=Math.max(this.bottom,f.bottom),c=Math.min(this.left,f.left);return new YAHOO.util.Region(d,e,a,c);};YAHOO.util.Region.prototype.toString=function(){return("Region {"+"top: "+this.top+", right: "+this.right+", bottom: "+this.bottom+", left: "+this.left+", height: "+this.height+", width: "+this.width+"}");};YAHOO.util.Region.getRegion=function(e){var g=YAHOO.util.Dom.getXY(e),d=g[1],f=g[0]+e.offsetWidth,a=g[1]+e.offsetHeight,c=g[0];return new YAHOO.util.Region(d,f,a,c);};YAHOO.util.Point=function(a,b){if(YAHOO.lang.isArray(a)){b=a[1];a=a[0];}YAHOO.util.Point.superclass.constructor.call(this,b,a,b,a);};YAHOO.extend(YAHOO.util.Point,YAHOO.util.Region);(function(){var b=YAHOO.util,a="clientTop",f="clientLeft",j="parentNode",k="right",w="hasLayout",i="px",u="opacity",l="auto",d="borderLeftWidth",g="borderTopWidth",p="borderRightWidth",v="borderBottomWidth",s="visible",q="transparent",n="height",e="width",h="style",t="currentStyle",r=/^width|height$/,o=/^(\d[.\d]*)+(em|ex|px|gd|rem|vw|vh|vm|ch|mm|cm|in|pt|pc|deg|rad|ms|s|hz|khz|%){1}?/i,m={get:function(x,z){var y="",A=x[t][z];if(z===u){y=b.Dom.getStyle(x,u);}else{if(!A||(A.indexOf&&A.indexOf(i)>-1)){y=A;}else{if(b.Dom.IE_COMPUTED[z]){y=b.Dom.IE_COMPUTED[z](x,z);}else{if(o.test(A)){y=b.Dom.IE.ComputedStyle.getPixel(x,z);}else{y=A;}}}}return y;},getOffset:function(z,E){var B=z[t][E],x=E.charAt(0).toUpperCase()+E.substr(1),C="offset"+x,y="pixel"+x,A="",D;if(B==l){D=z[C];if(D===undefined){A=0;}A=D;if(r.test(E)){z[h][E]=D;if(z[C]>D){A=D-(z[C]-D);}z[h][E]=l;}}else{if(!z[h][y]&&!z[h][E]){z[h][E]=B;}A=z[h][y];}return A+i;},getBorderWidth:function(x,z){var y=null;if(!x[t][w]){x[h].zoom=1;}switch(z){case g:y=x[a];break;case v:y=x.offsetHeight-x.clientHeight-x[a];break;case d:y=x[f];break;case p:y=x.offsetWidth-x.clientWidth-x[f];break;}return y+i;},getPixel:function(y,x){var A=null,B=y[t][k],z=y[t][x];y[h][k]=z;A=y[h].pixelRight;y[h][k]=B;return A+i;},getMargin:function(y,x){var z;if(y[t][x]==l){z=0+i;}else{z=b.Dom.IE.ComputedStyle.getPixel(y,x);}return z;},getVisibility:function(y,x){var z;while((z=y[t])&&z[x]=="inherit"){y=y[j];}return(z)?z[x]:s;},getColor:function(y,x){return b.Dom.Color.toRGB(y[t][x])||q;},getBorderColor:function(y,x){var z=y[t],A=z[x]||z.color;return b.Dom.Color.toRGB(b.Dom.Color.toHex(A));}},c={};c.top=c.right=c.bottom=c.left=c[e]=c[n]=m.getOffset;c.color=m.getColor;c[g]=c[p]=c[v]=c[d]=m.getBorderWidth;c.marginTop=c.marginRight=c.marginBottom=c.marginLeft=m.getMargin;c.visibility=m.getVisibility;c.borderColor=c.borderTopColor=c.borderRightColor=c.borderBottomColor=c.borderLeftColor=m.getBorderColor;b.Dom.IE_COMPUTED=c;b.Dom.IE_ComputedStyle=m;})();(function(){var c="toString",a=parseInt,b=RegExp,d=YAHOO.util;d.Dom.Color={KEYWORDS:{black:"000",silver:"c0c0c0",gray:"808080",white:"fff",maroon:"800000",red:"f00",purple:"800080",fuchsia:"f0f",green:"008000",lime:"0f0",olive:"808000",yellow:"ff0",navy:"000080",blue:"00f",teal:"008080",aqua:"0ff"},re_RGB:/^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i,re_hex:/^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i,re_hex3:/([0-9A-F])/gi,toRGB:function(e){if(!d.Dom.Color.re_RGB.test(e)){e=d.Dom.Color.toHex(e);}if(d.Dom.Color.re_hex.exec(e)){e="rgb("+[a(b.$1,16),a(b.$2,16),a(b.$3,16)].join(", ")+")";}return e;},toHex:function(f){f=d.Dom.Color.KEYWORDS[f]||f;if(d.Dom.Color.re_RGB.exec(f)){f=[Number(b.$1).toString(16),Number(b.$2).toString(16),Number(b.$3).toString(16)];for(var e=0;e<f.length;e++){if(f[e].length<2){f[e]="0"+f[e];}}f=f.join("");}if(f.length<6){f=f.replace(d.Dom.Color.re_hex3,"$1$1");}if(f!=="transparent"&&f.indexOf("#")<0){f="#"+f;}return f.toUpperCase();}};}());YAHOO.register("dom",YAHOO.util.Dom,{version:"2.9.0",build:"2800"});
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/eu_cookie_compliance.css
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/eu_cookie_compliance.css	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/eu_cookie_compliance.css	(revision 38779)
@@ -0,0 +1,270 @@
+#sliding-popup {
+  background: url('../images/gradient.png') center center scroll repeat-y transparent;
+}
+
+.sliding-popup-bottom,
+.sliding-popup-top {
+  margin: 0;
+  padding: 0;
+  width: 100%;
+  z-index: 99999;
+  left: 0;
+  text-align: center;
+}
+
+.sliding-popup-bottom {
+  position: fixed;
+}
+
+.sliding-popup-top {
+  position: relative;
+}
+
+.eu-cookie-compliance-content {
+  margin: 0 auto;
+  max-width: 80%;
+  display: inline-block;
+  text-align: left;
+  width: 100%;
+  position: relative;
+}
+
+.eu-cookie-compliance-buttons {
+  float: right; /* LTR */
+  margin: 0 0 1em 0;
+  max-width: 40%;
+}
+
+.eu-cookie-compliance-categories-buttons {
+  margin: 0 0 1em 0;
+  max-width: 60%;
+  float: left;
+}
+
+[dir="rtl"] .eu-cookie-compliance-buttons {
+  float: left;
+}
+[dir="rtl"] .eu-cookie-compliance-categories-buttons {
+  float: right;
+}
+
+.eu-cookie-compliance-more-button {
+  cursor: pointer;
+  display: inline;
+  height: auto;
+  margin: 0;
+  padding: 0;
+  border: none;
+  text-decoration: underline;
+  background: none;
+}
+
+.eu-cookie-compliance-secondary-button {
+  cursor: pointer;
+  border: none;
+  background: none;
+  margin-top: 1em;
+  padding: 0 8px;
+  vertical-align: middle;
+}
+
+.disagree-button.eu-cookie-compliance-more-button,
+.eu-cookie-compliance-agree-button,
+.eu-cookie-compliance-default-button,
+.eu-cookie-compliance-hide-button,
+.eu-cookie-compliance-more-button-thank-you,
+.eu-cookie-withdraw-button,
+.eu-cookie-compliance-save-preferences-button {
+  cursor: pointer;
+  margin-right: 5px;
+  margin-top: 1em;
+  vertical-align: middle;
+  overflow: visible;
+  width: auto;
+  -moz-box-shadow: inset 0 1px 0 0 #ffffff; /* LTR */
+  -webkit-box-shadow: inset 0 1px 0 0 #ffffff; /* LTR */
+  box-shadow: inset 0 1px 0 0 #ffffff; /* LTR */
+  background-color: #ededed;
+  background-image: -moz-linear-gradient(top, #ededed 5%, #dfdfdf 100%);
+  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(5%, #ededed), color-stop(100%, #dfdfdf));
+  background-image: -webkit-linear-gradient(top, #ededed 5%, #dfdfdf 100%);
+  background-image: -o-linear-gradient(top, #ededed 5%, #dfdfdf 100%);
+  background-image: -ms-linear-gradient(top, #ededed 5%, #dfdfdf 100%);
+  background-image: linear-gradient(to bottom, #ededed 5%, #dfdfdf 100%);
+  -moz-border-radius: 6px;
+  -webkit-border-radius: 6px;
+  border-radius: 6px;
+  border: 1px solid #dcdcdc;
+  color: #000;
+  font-family: Arial, sans-serif;
+  font-weight: bold;
+  padding: 4px 8px;
+  text-decoration: none;
+  text-shadow: 1px 1px 0 #ffffff;
+}
+
+[dir="rtl"] .eu-cookie-compliance-buttons button {
+  -moz-box-shadow: inset 0 0 0 1px #ffffff;
+  -webkit-box-shadow: inset 0 0 0 1px #ffffff;
+  box-shadow: inset 0 0 0 1px #ffffff;
+}
+
+.disagree-button.eu-cookie-compliance-more-button:hover,
+.eu-cookie-compliance-agree-button:hover,
+.eu-cookie-compliance-default-button:hover,
+.eu-cookie-compliance-hide-button:hover,
+.eu-cookie-compliance-more-button-thank-you:hover,
+.eu-cookie-withdraw-button:hover {
+  background-color: #dfdfdf;
+  background-image: -moz-linear-gradient(top, #dfdfdf 5%, #ededed 100%);
+  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(5%, #dfdfdf), color-stop(100%, #ededed));
+  background-image: -webkit-linear-gradient(top, #dfdfdf 5%, #ededed 100%);
+  background-image: -o-linear-gradient(top, #dfdfdf 5%, #ededed 100%);
+  background-image: -ms-linear-gradient(top, #dfdfdf 5%, #ededed 100%);
+  background-image: linear-gradient(to bottom, #dfdfdf 5%, #ededed 100%);
+}
+
+.disagree-button.eu-cookie-compliance-more-button:active,
+.eu-cookie-compliance-agree-button:active,
+.eu-cookie-compliance-default-button:active,
+.eu-cookie-compliance-hide-button:active,
+.eu-cookie-compliance-more-button-thank-you:active,
+.eu-cookie-withdraw-button:active {
+  position: relative;
+  top: 1px;
+}
+
+.eu-cookie-compliance-message {
+  float: left; /* LTR */
+  margin: 5px 0 0;
+  max-width: 60%;
+}
+
+.eu-cookie-compliance-banner--categories .eu-cookie-compliance-message {
+  max-width: 100%;
+}
+
+.eu-cookie-compliance-categories {
+  clear: both;
+  padding-top: 1em;
+}
+
+.eu-cookie-compliance-categories label {
+  display: inline;
+}
+
+[dir="rtl"] .eu-cookie-compliance-message {
+  float: right;
+  text-align: right;
+}
+
+.eu-cookie-compliance-message h1,
+.eu-cookie-compliance-message h2,
+.eu-cookie-compliance-message h3,
+.eu-cookie-compliance-message p {
+  font-weight: bold;
+  line-height: 1.4;
+  margin: 0 0 5px 0;
+}
+
+.eu-cookie-compliance-message h1,
+.eu-cookie-compliance-message h2,
+.eu-cookie-compliance-message h3,
+.eu-cookie-compliance-message p,
+.eu-cookie-compliance-message button,
+.eu-cookie-compliance-category label {
+  color: #fff;
+}
+
+.eu-cookie-compliance-message h1 {
+  font-size: 24px;
+}
+
+.eu-cookie-compliance-message h2 {
+  font-size: 16px;
+}
+
+.eu-cookie-compliance-message h3 {
+  font-size: 12px;
+}
+
+.eu-cookie-compliance-message p {
+  font-size: 12px;
+  display: inline;
+}
+
+.eu-cookie-withdraw-tab {
+  padding: 4px 7px;
+  cursor: pointer;
+}
+
+.sliding-popup-bottom .eu-cookie-withdraw-tab {
+  border-width: 2px 2px 0;
+  border-radius: 5px 5px 0 0;
+}
+
+.sliding-popup-top .eu-cookie-withdraw-tab {
+  border-width: 0 2px 2px;
+  border-radius: 0 0 5px 5px;
+}
+
+.eu-cookie-withdraw-wrapper.sliding-popup-top,
+.eu-cookie-withdraw-wrapper.sliding-popup-top .eu-cookie-withdraw-banner {
+  transform: scaleY(-1);
+}
+
+.eu-cookie-withdraw-tab {
+  position: absolute;
+  top: 0;
+  transform: translate(-50%, -100%);
+  left: 50%;
+}
+
+.eu-cookie-withdraw-wrapper.sliding-popup-top .eu-cookie-withdraw-tab {
+  transform: translate(-50%, -100%) scaleY(-1);
+}
+
+.eu-cookie-compliance-close-button {
+  background: url('../images/close.png');
+  width: 24px;
+  height: 24px;
+  border-width: 0;
+  font-size: 0px;
+  position: absolute;
+  right: 2px;
+  top: -12px;
+  cursor: pointer;
+}
+
+body:not(.eu-cookie-compliance-popup-open) .eu-cookie-compliance-close-button {
+  display: none;
+}
+
+@media screen and (max-width: 600px) {
+  .eu-cookie-compliance-content {
+    max-width: 95%;
+  }
+
+  .eu-cookie-compliance-categories,
+  .eu-cookie-compliance-message {
+    max-width: 100%;
+  }
+
+  .eu-cookie-compliance-buttons {
+    clear: both;
+    float: none;
+    max-width: 100%;
+    margin: 5px 0 1em;
+  }
+
+  .eu-cookie-compliance-buttons.eu-cookie-compliance-has-categories {
+    float: right;
+    margin-top: -56px;
+  }
+
+  .eu-cookie-compliance-banner--categories .eu-cookie-compliance-buttons {
+    position: initial;
+    bottom: unset;
+    right: unset;
+  }
+}
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/event-min.js.download
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/event-min.js.download	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/event-min.js.download	(revision 38779)
@@ -0,0 +1,11 @@
+/*
+Copyright (c) 2011, Yahoo! Inc. All rights reserved.
+Code licensed under the BSD License:
+http://developer.yahoo.com/yui/license.html
+version: 2.9.0
+*/
+YAHOO.util.CustomEvent=function(d,c,b,a,e){this.type=d;this.scope=c||window;this.silent=b;this.fireOnce=e;this.fired=false;this.firedWith=null;this.signature=a||YAHOO.util.CustomEvent.LIST;this.subscribers=[];if(!this.silent){}var f="_YUICEOnSubscribe";if(d!==f){this.subscribeEvent=new YAHOO.util.CustomEvent(f,this,true);}this.lastError=null;};YAHOO.util.CustomEvent.LIST=0;YAHOO.util.CustomEvent.FLAT=1;YAHOO.util.CustomEvent.prototype={subscribe:function(b,c,d){if(!b){throw new Error("Invalid callback for subscriber to '"+this.type+"'");}if(this.subscribeEvent){this.subscribeEvent.fire(b,c,d);}var a=new YAHOO.util.Subscriber(b,c,d);if(this.fireOnce&&this.fired){this.notify(a,this.firedWith);}else{this.subscribers.push(a);}},unsubscribe:function(d,f){if(!d){return this.unsubscribeAll();}var e=false;for(var b=0,a=this.subscribers.length;b<a;++b){var c=this.subscribers[b];if(c&&c.contains(d,f)){this._delete(b);e=true;}}return e;},fire:function(){this.lastError=null;var h=[],a=this.subscribers.length;var d=[].slice.call(arguments,0),c=true,f,b=false;if(this.fireOnce){if(this.fired){return true;}else{this.firedWith=d;}}this.fired=true;if(!a&&this.silent){return true;}if(!this.silent){}var e=this.subscribers.slice();for(f=0;f<a;++f){var g=e[f];if(!g||!g.fn){b=true;}else{c=this.notify(g,d);if(false===c){if(!this.silent){}break;}}}return(c!==false);},notify:function(g,c){var b,i=null,f=g.getScope(this.scope),a=YAHOO.util.Event.throwErrors;if(!this.silent){}if(this.signature==YAHOO.util.CustomEvent.FLAT){if(c.length>0){i=c[0];}try{b=g.fn.call(f,i,g.obj);}catch(h){this.lastError=h;if(a){throw h;}}}else{try{b=g.fn.call(f,this.type,c,g.obj);}catch(d){this.lastError=d;if(a){throw d;}}}return b;},unsubscribeAll:function(){var a=this.subscribers.length,b;for(b=a-1;b>-1;b--){this._delete(b);}this.subscribers=[];return a;},_delete:function(a){var b=this.subscribers[a];if(b){delete b.fn;delete b.obj;}this.subscribers.splice(a,1);},toString:function(){return"CustomEvent: "+"'"+this.type+"', "+"context: "+this.scope;}};YAHOO.util.Subscriber=function(a,b,c){this.fn=a;this.obj=YAHOO.lang.isUndefined(b)?null:b;this.overrideContext=c;};YAHOO.util.Subscriber.prototype.getScope=function(a){if(this.overrideContext){if(this.overrideContext===true){return this.obj;}else{return this.overrideContext;}}return a;};YAHOO.util.Subscriber.prototype.contains=function(a,b){if(b){return(this.fn==a&&this.obj==b);}else{return(this.fn==a);}};YAHOO.util.Subscriber.prototype.toString=function(){return"Subscriber { obj: "+this.obj+", overrideContext: "+(this.overrideContext||"no")+" }";};if(!YAHOO.util.Event){YAHOO.util.Event=function(){var g=false,h=[],j=[],a=0,e=[],b=0,c={63232:38,63233:40,63234:37,63235:39,63276:33,63277:34,25:9},d=YAHOO.env.ua.ie,f="focusin",i="focusout";return{POLL_RETRYS:500,POLL_INTERVAL:40,EL:0,TYPE:1,FN:2,WFN:3,UNLOAD_OBJ:3,ADJ_SCOPE:4,OBJ:5,OVERRIDE:6,CAPTURE:7,lastError:null,isSafari:YAHOO.env.ua.webkit,webkit:YAHOO.env.ua.webkit,isIE:d,_interval:null,_dri:null,_specialTypes:{focusin:(d?"focusin":"focus"),focusout:(d?"focusout":"blur")},DOMReady:false,throwErrors:false,startInterval:function(){if(!this._interval){this._interval=YAHOO.lang.later(this.POLL_INTERVAL,this,this._tryPreloadAttach,null,true);}},onAvailable:function(q,m,o,p,n){var k=(YAHOO.lang.isString(q))?[q]:q;for(var l=0;l<k.length;l=l+1){e.push({id:k[l],fn:m,obj:o,overrideContext:p,checkReady:n});}a=this.POLL_RETRYS;this.startInterval();},onContentReady:function(n,k,l,m){this.onAvailable(n,k,l,m,true);},onDOMReady:function(){this.DOMReadyEvent.subscribe.apply(this.DOMReadyEvent,arguments);},_addListener:function(m,k,v,p,t,y){if(!v||!v.call){return false;}if(this._isValidCollection(m)){var w=true;for(var q=0,s=m.length;q<s;++q){w=this.on(m[q],k,v,p,t)&&w;}return w;}else{if(YAHOO.lang.isString(m)){var o=this.getEl(m);if(o){m=o;}else{this.onAvailable(m,function(){YAHOO.util.Event._addListener(m,k,v,p,t,y);});return true;}}}if(!m){return false;}if("unload"==k&&p!==this){j[j.length]=[m,k,v,p,t];return true;}var l=m;if(t){if(t===true){l=p;}else{l=t;}}var n=function(z){return v.call(l,YAHOO.util.Event.getEvent(z,m),p);};var x=[m,k,v,n,l,p,t,y];var r=h.length;h[r]=x;try{this._simpleAdd(m,k,n,y);}catch(u){this.lastError=u;this.removeListener(m,k,v);return false;}return true;},_getType:function(k){return this._specialTypes[k]||k;},addListener:function(m,p,l,n,o){var k=((p==f||p==i)&&!YAHOO.env.ua.ie)?true:false;return this._addListener(m,this._getType(p),l,n,o,k);},addFocusListener:function(l,k,m,n){return this.on(l,f,k,m,n);},removeFocusListener:function(l,k){return this.removeListener(l,f,k);},addBlurListener:function(l,k,m,n){return this.on(l,i,k,m,n);},removeBlurListener:function(l,k){return this.removeListener(l,i,k);},removeListener:function(l,k,r){var m,p,u;k=this._getType(k);if(typeof l=="string"){l=this.getEl(l);}else{if(this._isValidCollection(l)){var s=true;for(m=l.length-1;m>-1;m--){s=(this.removeListener(l[m],k,r)&&s);}return s;}}if(!r||!r.call){return this.purgeElement(l,false,k);}if("unload"==k){for(m=j.length-1;m>-1;m--){u=j[m];if(u&&u[0]==l&&u[1]==k&&u[2]==r){j.splice(m,1);return true;}}return false;}var n=null;var o=arguments[3];if("undefined"===typeof o){o=this._getCacheIndex(h,l,k,r);}if(o>=0){n=h[o];}if(!l||!n){return false;}var t=n[this.CAPTURE]===true?true:false;try{this._simpleRemove(l,k,n[this.WFN],t);}catch(q){this.lastError=q;return false;}delete h[o][this.WFN];delete h[o][this.FN];h.splice(o,1);return true;},getTarget:function(m,l){var k=m.target||m.srcElement;return this.resolveTextNode(k);},resolveTextNode:function(l){try{if(l&&3==l.nodeType){return l.parentNode;}}catch(k){return null;}return l;},getPageX:function(l){var k=l.pageX;if(!k&&0!==k){k=l.clientX||0;if(this.isIE){k+=this._getScrollLeft();}}return k;},getPageY:function(k){var l=k.pageY;if(!l&&0!==l){l=k.clientY||0;if(this.isIE){l+=this._getScrollTop();}}return l;},getXY:function(k){return[this.getPageX(k),this.getPageY(k)];},getRelatedTarget:function(l){var k=l.relatedTarget;
+if(!k){if(l.type=="mouseout"){k=l.toElement;}else{if(l.type=="mouseover"){k=l.fromElement;}}}return this.resolveTextNode(k);},getTime:function(m){if(!m.time){var l=new Date().getTime();try{m.time=l;}catch(k){this.lastError=k;return l;}}return m.time;},stopEvent:function(k){this.stopPropagation(k);this.preventDefault(k);},stopPropagation:function(k){if(k.stopPropagation){k.stopPropagation();}else{k.cancelBubble=true;}},preventDefault:function(k){if(k.preventDefault){k.preventDefault();}else{k.returnValue=false;}},getEvent:function(m,k){var l=m||window.event;if(!l){var n=this.getEvent.caller;while(n){l=n.arguments[0];if(l&&Event==l.constructor){break;}n=n.caller;}}return l;},getCharCode:function(l){var k=l.keyCode||l.charCode||0;if(YAHOO.env.ua.webkit&&(k in c)){k=c[k];}return k;},_getCacheIndex:function(n,q,r,p){for(var o=0,m=n.length;o<m;o=o+1){var k=n[o];if(k&&k[this.FN]==p&&k[this.EL]==q&&k[this.TYPE]==r){return o;}}return -1;},generateId:function(k){var l=k.id;if(!l){l="yuievtautoid-"+b;++b;k.id=l;}return l;},_isValidCollection:function(l){try{return(l&&typeof l!=="string"&&l.length&&!l.tagName&&!l.alert&&typeof l[0]!=="undefined");}catch(k){return false;}},elCache:{},getEl:function(k){return(typeof k==="string")?document.getElementById(k):k;},clearCache:function(){},DOMReadyEvent:new YAHOO.util.CustomEvent("DOMReady",YAHOO,0,0,1),_load:function(l){if(!g){g=true;var k=YAHOO.util.Event;k._ready();k._tryPreloadAttach();}},_ready:function(l){var k=YAHOO.util.Event;if(!k.DOMReady){k.DOMReady=true;k.DOMReadyEvent.fire();k._simpleRemove(document,"DOMContentLoaded",k._ready);}},_tryPreloadAttach:function(){if(e.length===0){a=0;if(this._interval){this._interval.cancel();this._interval=null;}return;}if(this.locked){return;}if(this.isIE){if(!this.DOMReady){this.startInterval();return;}}this.locked=true;var q=!g;if(!q){q=(a>0&&e.length>0);}var p=[];var r=function(t,u){var s=t;if(u.overrideContext){if(u.overrideContext===true){s=u.obj;}else{s=u.overrideContext;}}u.fn.call(s,u.obj);};var l,k,o,n,m=[];for(l=0,k=e.length;l<k;l=l+1){o=e[l];if(o){n=this.getEl(o.id);if(n){if(o.checkReady){if(g||n.nextSibling||!q){m.push(o);e[l]=null;}}else{r(n,o);e[l]=null;}}else{p.push(o);}}}for(l=0,k=m.length;l<k;l=l+1){o=m[l];r(this.getEl(o.id),o);}a--;if(q){for(l=e.length-1;l>-1;l--){o=e[l];if(!o||!o.id){e.splice(l,1);}}this.startInterval();}else{if(this._interval){this._interval.cancel();this._interval=null;}}this.locked=false;},purgeElement:function(p,q,s){var n=(YAHOO.lang.isString(p))?this.getEl(p):p;var r=this.getListeners(n,s),o,k;if(r){for(o=r.length-1;o>-1;o--){var m=r[o];this.removeListener(n,m.type,m.fn);}}if(q&&n&&n.childNodes){for(o=0,k=n.childNodes.length;o<k;++o){this.purgeElement(n.childNodes[o],q,s);}}},getListeners:function(n,k){var q=[],m;if(!k){m=[h,j];}else{if(k==="unload"){m=[j];}else{k=this._getType(k);m=[h];}}var s=(YAHOO.lang.isString(n))?this.getEl(n):n;for(var p=0;p<m.length;p=p+1){var u=m[p];if(u){for(var r=0,t=u.length;r<t;++r){var o=u[r];if(o&&o[this.EL]===s&&(!k||k===o[this.TYPE])){q.push({type:o[this.TYPE],fn:o[this.FN],obj:o[this.OBJ],adjust:o[this.OVERRIDE],scope:o[this.ADJ_SCOPE],index:r});}}}}return(q.length)?q:null;},_unload:function(s){var m=YAHOO.util.Event,p,o,n,r,q,t=j.slice(),k;for(p=0,r=j.length;p<r;++p){n=t[p];if(n){try{k=window;if(n[m.ADJ_SCOPE]){if(n[m.ADJ_SCOPE]===true){k=n[m.UNLOAD_OBJ];}else{k=n[m.ADJ_SCOPE];}}n[m.FN].call(k,m.getEvent(s,n[m.EL]),n[m.UNLOAD_OBJ]);}catch(w){}t[p]=null;}}n=null;k=null;j=null;if(h){for(o=h.length-1;o>-1;o--){n=h[o];if(n){try{m.removeListener(n[m.EL],n[m.TYPE],n[m.FN],o);}catch(v){}}}n=null;}try{m._simpleRemove(window,"unload",m._unload);m._simpleRemove(window,"load",m._load);}catch(u){}},_getScrollLeft:function(){return this._getScroll()[1];},_getScrollTop:function(){return this._getScroll()[0];},_getScroll:function(){var k=document.documentElement,l=document.body;if(k&&(k.scrollTop||k.scrollLeft)){return[k.scrollTop,k.scrollLeft];}else{if(l){return[l.scrollTop,l.scrollLeft];}else{return[0,0];}}},regCE:function(){},_simpleAdd:function(){if(window.addEventListener){return function(m,n,l,k){m.addEventListener(n,l,(k));};}else{if(window.attachEvent){return function(m,n,l,k){m.attachEvent("on"+n,l);};}else{return function(){};}}}(),_simpleRemove:function(){if(window.removeEventListener){return function(m,n,l,k){m.removeEventListener(n,l,(k));};}else{if(window.detachEvent){return function(l,m,k){l.detachEvent("on"+m,k);};}else{return function(){};}}}()};}();(function(){var a=YAHOO.util.Event;a.on=a.addListener;a.onFocus=a.addFocusListener;a.onBlur=a.addBlurListener;
+/*! DOMReady: based on work by: Dean Edwards/John Resig/Matthias Miller/Diego Perini */
+if(a.isIE){if(self!==self.top){document.onreadystatechange=function(){if(document.readyState=="complete"){document.onreadystatechange=null;a._ready();}};}else{YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);var b=document.createElement("p");a._dri=setInterval(function(){try{b.doScroll("left");clearInterval(a._dri);a._dri=null;a._ready();b=null;}catch(c){}},a.POLL_INTERVAL);}}else{if(a.webkit&&a.webkit<525){a._dri=setInterval(function(){var c=document.readyState;if("loaded"==c||"complete"==c){clearInterval(a._dri);a._dri=null;a._ready();}},a.POLL_INTERVAL);}else{a._simpleAdd(document,"DOMContentLoaded",a._ready);}}a._simpleAdd(window,"load",a._load);a._simpleAdd(window,"unload",a._unload);a._tryPreloadAttach();})();}YAHOO.util.EventProvider=function(){};YAHOO.util.EventProvider.prototype={__yui_events:null,__yui_subscribers:null,subscribe:function(a,c,f,e){this.__yui_events=this.__yui_events||{};var d=this.__yui_events[a];if(d){d.subscribe(c,f,e);}else{this.__yui_subscribers=this.__yui_subscribers||{};var b=this.__yui_subscribers;if(!b[a]){b[a]=[];}b[a].push({fn:c,obj:f,overrideContext:e});}},unsubscribe:function(c,e,g){this.__yui_events=this.__yui_events||{};var a=this.__yui_events;if(c){var f=a[c];if(f){return f.unsubscribe(e,g);}}else{var b=true;for(var d in a){if(YAHOO.lang.hasOwnProperty(a,d)){b=b&&a[d].unsubscribe(e,g);
+}}return b;}return false;},unsubscribeAll:function(a){return this.unsubscribe(a);},createEvent:function(b,g){this.__yui_events=this.__yui_events||{};var e=g||{},d=this.__yui_events,f;if(d[b]){}else{f=new YAHOO.util.CustomEvent(b,e.scope||this,e.silent,YAHOO.util.CustomEvent.FLAT,e.fireOnce);d[b]=f;if(e.onSubscribeCallback){f.subscribeEvent.subscribe(e.onSubscribeCallback);}this.__yui_subscribers=this.__yui_subscribers||{};var a=this.__yui_subscribers[b];if(a){for(var c=0;c<a.length;++c){f.subscribe(a[c].fn,a[c].obj,a[c].overrideContext);}}}return d[b];},fireEvent:function(b){this.__yui_events=this.__yui_events||{};var d=this.__yui_events[b];if(!d){return null;}var a=[];for(var c=1;c<arguments.length;++c){a.push(arguments[c]);}return d.fire.apply(d,a);},hasEvent:function(a){if(this.__yui_events){if(this.__yui_events[a]){return true;}}return false;}};(function(){var a=YAHOO.util.Event,c=YAHOO.lang;YAHOO.util.KeyListener=function(d,i,e,f){if(!d){}else{if(!i){}else{if(!e){}}}if(!f){f=YAHOO.util.KeyListener.KEYDOWN;}var g=new YAHOO.util.CustomEvent("keyPressed");this.enabledEvent=new YAHOO.util.CustomEvent("enabled");this.disabledEvent=new YAHOO.util.CustomEvent("disabled");if(c.isString(d)){d=document.getElementById(d);}if(c.isFunction(e)){g.subscribe(e);}else{g.subscribe(e.fn,e.scope,e.correctScope);}function h(o,n){if(!i.shift){i.shift=false;}if(!i.alt){i.alt=false;}if(!i.ctrl){i.ctrl=false;}if(o.shiftKey==i.shift&&o.altKey==i.alt&&o.ctrlKey==i.ctrl){var j,m=i.keys,l;if(YAHOO.lang.isArray(m)){for(var k=0;k<m.length;k++){j=m[k];l=a.getCharCode(o);if(j==l){g.fire(l,o);break;}}}else{l=a.getCharCode(o);if(m==l){g.fire(l,o);}}}}this.enable=function(){if(!this.enabled){a.on(d,f,h);this.enabledEvent.fire(i);}this.enabled=true;};this.disable=function(){if(this.enabled){a.removeListener(d,f,h);this.disabledEvent.fire(i);}this.enabled=false;};this.toString=function(){return"KeyListener ["+i.keys+"] "+d.tagName+(d.id?"["+d.id+"]":"");};};var b=YAHOO.util.KeyListener;b.KEYDOWN="keydown";b.KEYUP="keyup";b.KEY={ALT:18,BACK_SPACE:8,CAPS_LOCK:20,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,META:224,NUM_LOCK:144,PAGE_DOWN:34,PAGE_UP:33,PAUSE:19,PRINTSCREEN:44,RIGHT:39,SCROLL_LOCK:145,SHIFT:16,SPACE:32,TAB:9,UP:38};})();YAHOO.register("event",YAHOO.util.Event,{version:"2.9.0",build:"2800"});
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/extlink.css
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/extlink.css	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/extlink.css	(revision 38779)
@@ -0,0 +1,39 @@
+/**
+ * @file
+ * External links css file.
+ */
+
+svg.ext {
+  width: 14px;
+  height: 14px;
+  padding-right: 0.2em;
+  fill: #727272;
+  font-weight: 900;
+}
+
+svg.mailto {
+  width: 14px;
+  height: 14px;
+  padding-right: 0.2em;
+  fill: #727272;
+}
+
+svg.ext path,
+svg.mailto path {
+  stroke: #727272;
+  stroke-width: 3;
+}
+
+/* Hide the extra icons when printing. */
+@media print {
+  svg.ext,
+  svg.mailto {
+    display: none;
+    padding: 0;
+  }
+}
+
+/* Put some whitespace between the link and its Font Awesome suffix. */
+extlink i {
+  padding-left: 0.2em;
+}
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/favouritebasket.js.download
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/favouritebasket.js.download	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/favouritebasket.js.download	(revision 38779)
@@ -0,0 +1,198 @@
+//used to stored the current items in basket, including collection name and document id
+//in the format of collection:id. it is updated when the page is loaded (reloaded) or the user adds
+// new items in the basket. 
+
+// note we only support favourites now, not the old drag and drop berry baskets
+// berry is still used here for legacy reasons
+var berryList =  new Array();
+var show = false;
+
+
+var countFavouritesUNUSED = function(callback) {
+        var request_type = "GET";
+    var url = gs.xsltParams.library_name + "?a=pr&rt=r&ro=1&s=GetNumFavourites&o=XML&hhf="+makeURLComponentSafe("[{\"name\":\"Cache-Control\", \"value\":\"no-cache\"}]")+"&c=";
+
+    var responseSuccess = function(o) {
+		
+	var response = o.responseXML;
+	var size = response.getElementsByTagName('size').item(0).getAttribute('value');
+	
+	var items = response.getElementsByTagName('documentNode');
+
+	callback(items.length);
+    }
+
+    YAHOO.util.Connect.asyncRequest(request_type , url , {success: responseSuccess });
+ 
+}
+
+
+// display selected favourites (filled-in star icon) on page
+var favouritesCheckout = function(){
+
+	if ( document.getElementById('berrybasket') == null ) return;
+	
+	var request_type = "GET";
+    var url = gs.xsltParams.library_name + "?a=pr&rt=r&ro=1&s=GetNumFavourites&o=XML&hhf="+makeURLComponentSafe("[{\"name\":\"Cache-Control\", \"value\":\"no-cache\"}]")+"&c=";
+
+	var responseSuccess = function(o){
+		
+		var response = o.responseXML;
+		var size = response.getElementsByTagName('size').item(0).getAttribute('value');
+
+		var items = response.getElementsByTagName('documentNode');
+
+		berryList = new Array();
+		for (var i=0;i < items.length ; i++ ){
+
+		    var itemID = items[i].getAttribute('collection')+":"+items[i].getAttribute('nodeID');
+			var item = YAHOO.util.Dom.get(itemID);
+
+			if (item != null){
+			        item.src = gs.variables.selected_favourite_icon_url;
+			        item.setAttribute("data-is-favourite","true");
+			}
+		    berryList[berryList.length] = itemID;//items[i];
+		}
+
+		// set favourite images visible
+		// they are set to be invisible to prevent flickering when first loaded (see favourites.css)
+
+		var berries = document.getElementsByTagName('img');
+
+		for (var j=0; j < berries.length; j++){
+			var berry = berries[j]; 
+			var parent = berry.parentNode;
+			if (parent !=null && parent.id == "documentberries"){
+				var root = YAHOO.util.Dom.get(berry.id+":root");
+				var section = YAHOO.util.Dom.get(berry.id+":section");
+				if(root!=null && root.id.indexOf(berry.id) !=-1){
+					root.style.visibility ="visible" ;
+				}
+
+				if(section!=null && section.id.indexOf(berry.id) !=-1){
+					section.style.visibility ="visible" ;
+				}
+			}
+
+			if (berry.className && berry.className == 'pick'){
+				berry.style.visibility = "visible";
+			}
+		}
+		updateFavouritesCount();
+	}
+
+	var responseFailure = function(o){
+		console.error("GetNumFavourites AJAX call failed:" + url);
+	}
+
+	var callback = {
+		success: responseSuccess,
+		failure: responseFailure
+	}
+
+	//var date = new Date();
+	//url += "&rand=" + date.getTime();
+	YAHOO.util.Connect.asyncRequest(request_type , url , callback);
+}
+
+
+
+function updateFavouritesCount() {
+	var favouritesCountElement = YAHOO.util.Dom.get('favouritesCountDisplay');
+	if ( favouritesCountElement == null ) return;
+	if ( berryList.length == 0 ) {
+		favouritesCountElement.innerHTML = "(0)";
+	} else {
+		favouritesCountElement.innerHTML = "(" + berryList.length + ")";
+	}
+}
+
+
+
+function addFavourite(el){
+    var addurl = gs.xsltParams.library_name + "?a=pr&rt=r&ro=1&s=AddFavourite&c=&s1.id=2&o=XML&hhf="+makeURLComponentSafe("[{\"name\":\"Cache-Control\", \"value\":\"no-cache\"}]")+"&s1.item=" + el.id;
+
+    var request_type = "GET";
+	var addSuccess = function(o){
+		var result = o.responseXML;
+		var items = result.getElementsByTagName('documentNode');
+
+		if (items.length > 0){
+		    // assumes that there is only 1 item to add
+		    var item = items[0];
+                    var itemID = item.getAttribute('collection')+":"+item.getAttribute('nodeID');
+		    berryList[berryList.length]= itemID;
+
+	            updateFavouritesCount();
+		}
+
+	}
+
+	var addFailure = function(o){
+	}
+
+	var addcallback = {
+		success:addSuccess,
+		failure:addFailure
+	}
+	
+	YAHOO.util.Connect.asyncRequest(request_type , addurl , addcallback);
+}
+
+
+function deleteFavourite(el){
+    var delurl = gs.xsltParams.library_name + "?a=pr&rt=r&ro=1&s=DeleteFavourites&c=&o=XML&hhf="+makeURLComponentSafe("[{\"name\":\"Cache-Control\", \"value\":\"no-cache\"}]")+"&s1.items=" + el.id;
+
+    var request_type = "GET";
+	var delSuccess = function(o){
+
+	        for (var i in berryList) {
+                        var berry = berryList[i];
+		        console.log(berry);
+                        //var id = berry.getAttribute('collection')+":"+berry.getAttribute('nodeID');
+
+                        if (berry == el.id){
+                                berryList.splice(i,1);
+
+                                break;
+                        }
+
+                }
+	        updateFavouritesCount();
+	    
+	}
+
+	var delFailure = function(o){
+	}
+
+	var delcallback = {
+		success:delSuccess,
+		failure:delFailure
+	}
+	
+	YAHOO.util.Connect.asyncRequest(request_type , delurl , delcallback);
+}
+
+
+
+function toggleFavourite(el)
+{
+    var is_favourite = el.getAttribute("data-is-favourite");
+    if (is_favourite == "true") {
+	deleteFavourite(el);
+	el.src = gs.variables.unselected_favourite_icon_url;
+	el.setAttribute("data-is-favourite","false")
+    }
+    else {
+	addFavourite(el);
+	el.src = gs.variables.selected_favourite_icon_url;
+	el.setAttribute("data-is-favourite","true")
+    }
+}
+
+YAHOO.util.Event.addListener(window, 'load', favouritesCheckout);
+//YAHOO.util.Event.addListener(window, 'click', basketUpdate);
+
+
+
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/favourites.css
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/favourites.css	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/favourites.css	(revision 38779)
@@ -0,0 +1,210 @@
+#berrybasket {
+	min-height: 22px;
+	padding: 5px;
+	/*background: transparent url("../images/kete2.png") scroll repeat 0 0;*/
+	z-index:10;
+	font-size: 80%;
+	min-height: 2em;
+	display: block;
+}
+
+#baskethandle {
+	cursor: move;
+	padding: 0;
+	margin: 0;
+	height: 30px;
+	width: auto;
+	background-color: #7f7;
+	display: none;
+}
+
+#berries {
+	text-align: left;
+	height: auto;
+	margin: 0;
+	padding: 0;
+	overflow: hidden;   
+}
+#berries img {
+	margin: 3px 2px;
+}
+
+#trashbin {
+	float:right;
+}
+
+#berryFullViewLink {
+	display:block;
+	cursor: pointer;
+	text-align: left;
+	padding: .5em;
+}
+
+#berryHelpMsg {
+	font-size: 90%;
+	color: #888;
+}
+
+#doclist {
+	margin-bottom:0;
+}
+span.berryradio{
+ cursor: pointer;
+ margin:0 3em  0 3em;
+ font-weight: bold;
+}
+
+.berryOption {
+	text-decoration: underline;
+	cursor: pointer;
+}
+
+.berrycheck{
+ font-size: 80%;  
+ cursor: pointer;
+ font-weight: bold;
+ margin: 0 0 0 0.5em;
+}
+
+#urlcheck{
+ float: left;
+ padding: 0;
+ margin: 0;
+ 
+}
+
+.pick {
+  visibility:hidden;
+}
+
+
+p#documentberries {
+   font-weight: bold;
+   font-size:90%;
+}
+
+.documentberry {
+  margin:0 2em 0 0;
+  padding:0;
+  visibility:hidden;
+}
+
+
+.content{
+ font-family:sans-serif;
+ text-align:left;
+}
+
+li.berryitem {
+   padding: 0;
+   margin: 0 ;
+   color: black;
+   font-size: 90%;
+}
+
+li.berrydoc {
+  font-size: 90%;
+  cursor: pointer;
+  padding: 0 ;
+  margin: 0 1em 0 0; 
+}
+
+a.expandcontract {
+  font-size: 90%;
+  color: red
+}
+
+
+.item {
+  font-size: 90%;
+ 
+}
+
+.berrydelete{
+   font-family:sans-serif;
+   background-color:#E0F0E0;
+   border:1px solid #2E8B57;   
+   padding: 4px  4px 4px 4px; 
+   font-weight: bold;
+   cursor: pointer;
+   width: 6em;
+   color: red;
+   font-size: 90%;
+}
+
+.sendbutton{
+   font-family:sans-serif;
+   background-color:#E0F0E0;
+   border:1px solid #2E8B57;   
+   padding: 4px  4px 4px 4px; 
+   font-weight: bold;
+   cursor: pointer;
+   /*width: 5em;*/
+   font-size: 90%;
+   margin: 1em 0 0 0;
+}
+
+.berrybutton{
+   font-family:sans-serif;
+   background-color:#E0F0E0;
+   border:1px solid #2E8B57;   
+   padding: 4px  4px 4px 4px; 
+   font-weight: bold;
+   cursor: pointer;
+   width: 10em;
+   font-size: 90%;
+}
+
+.mailinput {
+  border:1px solid #2E8B57; 
+  width: 20em;
+  height: 1.5em;
+  font-size: 90%
+}
+
+.mailitem{
+   text-align: left;
+ }
+
+
+textarea#pretextarea {
+  font-family:sans-serif;
+  border:1px solid #2E8B57; 
+  width: 100%;
+  height: 25em;
+  font-size: 90%;
+  margin: 0.5em 0 0 0;
+  padding:0;
+}
+
+div#trashbin{
+   float: right;
+   height: 60px;
+   width:  55px;
+   padding: 0;
+   background: url("../images/trash-empty.png") 0 0 no-repeat;
+   margin:0;
+   z-index:10;
+}
+
+div#binhandle{
+ height: 60px;
+ width:  55px;
+ cursor: move;
+}
+
+span.extralink {
+  cursor:pointer;
+  font-size:80%;
+  font-weight:bold;
+  margin:0 2em 0 0;
+  color:black;
+}
+
+span.extralink:hover {
+   color: #2E8B57;
+}
+
+#shareanddelbuttons {
+    padding: 5px;
+}
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/fieldgroup.module.css
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/fieldgroup.module.css	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/fieldgroup.module.css	(revision 38779)
@@ -0,0 +1,9 @@
+/**
+ * @file
+ * Fieldgroup border reset.
+ */
+
+.fieldgroup {
+  padding: 0;
+  border-width: 0;
+}
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/filter.caption.css
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/filter.caption.css	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/filter.caption.css	(revision 38779)
@@ -0,0 +1,30 @@
+/**
+ * @file
+ * Caption filter: default styling for displaying image captions.
+ */
+
+/**
+ * Essentials, based on http://stackoverflow.com/a/13363408.
+ */
+.caption {
+  display: table;
+}
+.caption > * {
+  display: block;
+  max-width: 100%;
+}
+.caption > figcaption {
+  display: table-caption;
+  max-width: none;
+  caption-side: bottom;
+}
+
+/**
+ * While editing and whenever the caption is empty, show a placeholder.
+ *
+ * Based on http://codepen.io/flesler/pen/AEIFc.
+ */
+.caption > figcaption[contenteditable=true]:empty:before {
+  content: attr(data-placeholder);
+  font-style: italic;
+}
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/filter.caption_002.css
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/filter.caption_002.css	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/filter.caption_002.css	(revision 38779)
@@ -0,0 +1,10 @@
+/**
+ * @file
+ * Caption filter: default styling for displaying Media Embed captions.
+ */
+
+.caption .media .field,
+.caption .media .field * {
+  float: none;
+  margin: unset;
+}
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/h360_tooltip.css
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/h360_tooltip.css	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/h360_tooltip.css	(revision 38779)
@@ -0,0 +1,43 @@
+#block-tooltips {display: none; background: #F4F4F4; border: 2px solid #DDD; padding: 10px}
+#block-tooltips h3 {margin: 0}
+.popup-gloss, .popup-img, .popup-ref, .popup-team {color: var(--primary-colour); cursor: pointer; font-weight: bold}
+.popup-gloss::after {display: inline-flex; align-items: baseline; content: url(../images/glossary.svg); padding: 0 2px; height: 18px; width: 18px}
+.popup-img::after {display: inline-flex; align-items: baseline; content: url(../images/camera.svg); padding: 0 2px; height: 18px; width: 18px}
+.popup-ref::after {display: inline-flex; align-items: baseline; content: url(../images/reference.svg); padding: 0 2px; height: 18px; width: 18px}
+.popup-team::after {display: inline-flex; align-items: baseline; content: url(../images/person.svg); padding: 0 2px; height: 18px; width: 18px}
+#tooltip-body p {font-size: 16px; margin: 5px 0}
+#tooltip-buttons {display: flex; border-top: 1px solid #DDD; margin-top: 8px; padding-top: 12px}
+#tooltip-buttons .theme-button a {font-size: 16px; cursor: pointer}
+#tooltip-content {display: flex; flex-wrap: wrap}
+#tooltip-details {display: flex; flex-direction: column; flex-grow: 1}
+#tooltip-image {margin-right: 15px; max-width: 100px}
+#tooltip-title {color: var(--primary-colour)}
+
+
+/* MOBILE AND TABLET STYLES */
+/* ------------------------ */
+
+/* NARROW */
+@media only screen and (max-width: 599px) {
+	[id^="overlay-"] #boss-image {width: 100%}
+}
+
+/* NARROW TO LARGE */
+@media only screen and (max-width: 1300px) {
+	[id^="overlay-"] {padding: 20px}
+	[id^="overlay-"] .button {margin-top: 10px}
+}
+
+/* MEDIUM TO EXTRA LARGE */
+@media only screen and (min-width: 600px) {	
+	#block-tooltips {width: 400px}
+}
+
+/* EXTRA-LARGE */
+@media only screen and (min-width: 1300px) {
+	[id^="overlay-"] {padding: 50px}
+}
+
+html[data-useragent='ccagent'] #bossplan {display: block !important; background: #CCC !important; padding: 20px; max-height: 440px !important}
+html[data-useragent='ccagent'] #bossplan svg {display: block !important; margin: 0 auto; height: 400px !important; width: 600px !important; max-height: 400px !important}
+html[data-useragent='ccagent'] [id^="overlay-"] {height: 400px !important}
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/hidden.module.css
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/hidden.module.css	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/hidden.module.css	(revision 38779)
@@ -0,0 +1,53 @@
+/**
+ * @file
+ * Utility classes to hide elements in different ways.
+ */
+
+/**
+ * Hide elements from all users.
+ *
+ * Used for elements which should not be immediately displayed to any user. An
+ * example would be collapsible details that will be expanded with a click
+ * from a user. The effect of this class can be toggled with the jQuery show()
+ * and hide() functions.
+ */
+.hidden {
+  display: none;
+}
+
+/**
+ * Hide elements visually, but keep them available for screen readers.
+ *
+ * Used for information required for screen reader users to understand and use
+ * the site where visual display is undesirable. Information provided in this
+ * manner should be kept concise, to avoid unnecessary burden on the user.
+ * "!important" is used to prevent unintentional overrides.
+ */
+.visually-hidden {
+  position: absolute !important;
+  overflow: hidden;
+  clip: rect(1px, 1px, 1px, 1px);
+  width: 1px;
+  height: 1px;
+  word-wrap: normal;
+}
+
+/**
+ * The .focusable class extends the .visually-hidden class to allow
+ * the element to be focusable when navigated to via the keyboard.
+ */
+.visually-hidden.focusable:active,
+.visually-hidden.focusable:focus {
+  position: static !important;
+  overflow: visible;
+  clip: auto;
+  width: auto;
+  height: auto;
+}
+
+/**
+ * Hide visually and from screen readers, but maintain layout.
+ */
+.invisible {
+  visibility: hidden;
+}
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/item-list.module.css
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/item-list.module.css	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/item-list.module.css	(revision 38779)
@@ -0,0 +1,19 @@
+/**
+ * @file
+ * Styles for item list.
+ */
+
+.item-list__comma-list,
+.item-list__comma-list li {
+  display: inline;
+}
+.item-list__comma-list {
+  margin: 0;
+  padding: 0;
+}
+.item-list__comma-list li:after {
+  content: ", ";
+}
+.item-list__comma-list li:last-child:after {
+  content: "";
+}
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/javascript-global-functions.js.download
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/javascript-global-functions.js.download	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/javascript-global-functions.js.download	(revision 38779)
@@ -0,0 +1,1163 @@
+var SUCCESS = 1;
+var ACCEPTED = 2;
+var ERROR = 3;
+var CONTINUING = 10;
+var COMPLETED = 11;
+var HALTED = 12;
+
+var runningAjaxCalls = [];
+
+gs.functions = {};
+
+gs.jqGet = function(id)
+{
+    return $("#" + id.replace(/\./g, "\\.").replace(/:/g,"\\:"));
+}
+
+// Debugging function to print a string's non-basic chars in hex. So does string2hex on all non-basic and non-printable ASCII chars
+// Dr Bainbridge said that printing anything with charCode over 128 in hex is okay, but I'd already made extra allowances for non-printable ASCII
+// Based on https://stackoverflow.com/questions/36637146/javascript-encode-string-to-hex/36637293
+// https://stackoverflow.com/questions/21647928/javascript-unicode-string-to-hex
+gs.functions.debug_unicode_string = function(str) {
+	var hex, i;
+
+    var result = "";
+    for (i=0; i<str.length; i++) {
+		charcode = str.charCodeAt(i);
+		// ASCII table: https://cdn.sparkfun.com/assets/home_page_posts/2/1/2/1/ascii_table_black.png
+		// if the unicode character code pt is less than the ASCII code for space and greater than for tilda, let's display the char in hex (x0000 format)
+		if(charcode < 20 || charcode > 126) { //doesn't work: if(str.charAt(i) < ' ' || str.charAt(i) > '~') {
+			hex = charcode.toString(16);
+			result += "x{" + ("000"+hex).slice(-4) + "}"; // looks like: x{4-char-codepoint}
+		}
+		else {
+			result += str.charAt(i);
+		}
+    }
+
+    return result;
+}
+
+gs.functions.ajaxRequest = function()
+{
+	var activexmodes=["Msxml2.XMLHTTP", "Microsoft.XMLHTTP"]; 
+	if(window.ActiveXObject)
+	{ 
+		for (var i=0; i<activexmodes.length; i++)
+		{
+			try
+			{
+				return new ActiveXObject(activexmodes[i]);
+			}
+			catch(e){}
+		}
+	}
+	else if (window.XMLHttpRequest)
+	{
+		return new XMLHttpRequest();
+	}
+	else
+	{
+		return false
+	}
+}
+
+gs.functions.hasClass = function(elem, classVal)
+{
+	if(!elem || !elem.getAttribute("class"))
+	{
+		return false;
+	}
+
+	return (elem.getAttribute("class").search(classVal) != -1)
+}
+
+gs.functions.getElementsByClassName = function(cl) 
+{
+	var nodes = new Array();
+	var classRegEx = new RegExp('\\b'+cl+'\\b');
+	var allElems = document.getElementsByTagName('*');
+	
+	for (var i = 0; i < allElems.length; i++) 
+	{
+		var classes = allElems[i].className;
+		if (classRegEx.test(classes)) 
+		{
+			nodes.push(allElems[i]);
+		}
+	}
+	return nodes;
+}; 
+
+gs.functions.makeToggle = function(buttons, divs)
+{
+	var buttonArray = (buttons.length) ? buttons : [buttons];
+	var divArray = (divs.length) ? divs : [divs];
+	
+	for(var i = 0; i < buttonArray.length; i++)
+	{
+		buttonArray[i].onclick = function()
+		{
+			for(var j = 0; j < divArray.length; j++)
+			{
+				if(divArray[j].style.display == "none")
+				{
+					divArray[j].style.display = "block";
+				}
+				else
+				{
+					divArray[j].style.display = "none";
+				}
+			}
+			
+			for(var j = 0; j < buttonArray.length; j++)
+			{
+				if(buttonArray[j].getAttribute("src") == gs.imageURLs.collapse)
+				{
+					buttonArray[j].setAttribute("src", gs.imageURLs.expand);
+				}
+				else if(buttonArray[j].getAttribute("src") == gs.imageURLs.expand)
+				{
+					buttonArray[j].setAttribute("src", gs.imageURLs.collapse);
+				}
+			}
+		};
+	}
+}
+
+gs.functions.checkForErrors = function(xml)
+{
+	var errorElems = xml.getElementsByTagName("error");
+	
+	if(errorElems && errorElems.length > 0)
+	{
+		var errorString = gs.text.dse.error_saving_changes + ": ";
+		for(var i = 0; i < errorElems.length; i++)
+		{
+			errorString += " " + errorElems.item(i).firstChild.nodeValue;
+		}
+		alert(errorString);
+		return true;
+	}
+	return false; //No errors
+}
+
+gs.functions.validateXML = function(txt)
+{
+	// code for IE
+	if (window.ActiveXObject)
+	{
+		var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
+		xmlDoc.async = "false";
+		xmlDoc.loadXML(document.all(txt).value);
+
+		if(xmlDoc.parseError.errorCode!=0)
+		{
+			txt = dse.error_code + ": " + xmlDoc.parseError.errorCode + "\n";
+			txt = txt + dse.error_reason + ": " + xmlDoc.parseError.reason;
+			txt = txt + dse.error_line + ": " + xmlDoc.parseError.line;
+			console.log(txt);
+			return null;
+		}
+		
+		return xmlDoc;
+	}
+	// code for Mozilla, Firefox, Opera, etc.
+	else if (document.implementation.createDocument)
+	{
+		var parser = new DOMParser();
+		var xmlDoc = parser.parseFromString(txt,"text/xml");
+
+		if (xmlDoc.getElementsByTagName("parsererror").length > 0)
+		{
+			console.log(gs.text.dse.xml_error);
+			return null;
+		}
+		
+		return xmlDoc;
+	}
+	else
+	{
+		console.log(gs.text.dse.browse_cannot_validate_xml);
+	}
+	return null;
+}
+
+gs.functions.buildCollections = function(collections, finalFunction)
+{
+	if(!collections || collections.length == 0)
+	{
+		console.log("List of collections to build is empty");
+		return;
+	}
+
+	var counter = 0;
+	var buildFunction = function()
+	{
+		var ajax = new gs.functions.ajaxRequest();
+		ajax.open("GET", gs.xsltParams.library_name + "?a=g&rt=r&ro=1&s=BuildCollection&s1.collection=" + collections[counter]);
+		ajax.onreadystatechange = function()
+		{
+			if(ajax.readyState == 4 && ajax.status == 200)
+			{
+				var text = ajax.responseText;
+				var xml = gs.functions.validateXML(text);
+
+				if(!xml || gs.functions.checkForErrors(xml))
+				{
+					console.log("Could not build collection -> " + collections[counter] + ", aborting");
+					return;
+				}
+
+				var status = xml.getElementsByTagName("status")[0];
+				var pid = status.getAttribute("pid");
+
+				gs.functions.startCheckLoop(pid, "BuildCollection", function()
+				{
+					var localAjax = new gs.functions.ajaxRequest();
+					localAjax.open("GET", gs.xsltParams.library_name + "?a=g&rt=r&ro=1&s=ActivateCollection&s1.collection=" + collections[counter], true);
+					localAjax.onreadystatechange = function()
+					{
+						if(localAjax.readyState == 4 && localAjax.status == 200)
+						{
+							var localText = localAjax.responseText;
+							var localXML = gs.functions.validateXML(localText);
+							
+							if(!xml || gs.functions.checkForErrors(xml))
+							{
+								console.log("Could not activate collection -> " + collections[counter] + ", aborting");
+								return;
+							}
+
+							var localStatus = localXML.getElementsByTagName("status")[0];
+							if(localStatus)
+							{
+								var localPID = localStatus.getAttribute("pid");
+								gs.functions.startCheckLoop(localPID, "ActivateCollection", function()
+								{
+									if (++counter == collections.length)
+									{
+										//Run this function once we are done building all the collections
+										if(finalFunction){finalFunction();}
+									}
+									else
+									{
+										buildFunction();
+									}
+								});
+							}
+						}
+					}
+					localAjax.send();
+				});
+			}
+		}
+		ajax.send();
+	}
+	buildFunction();
+}
+
+gs.functions.startCheckLoop = function(pid, serverFunction, callbackFunction)
+{
+	var ajaxFunction = function()
+	{
+		var ajax = new gs.functions.ajaxRequest();
+		ajax.open("GET", gs.xsltParams.library_name + "?a=g&rt=s&ro=1&s=" + serverFunction + "&s1.pid=" + pid, true);
+		ajax.onreadystatechange = function()
+		{
+			if(ajax.readyState == 4 && ajax.status == 200)
+			{
+				var text = ajax.responseText;
+				var xml = gs.functions.validateXML(text);
+				
+				if(!xml || gs.functions.checkForErrors(xml))
+				{
+					console.log("Could not check status of " + serverFunction + ", there was an error in the XML, aborting");		
+					return;
+				}
+
+				var status = xml.getElementsByTagName("status")[0];
+				var code = status.getAttribute("code");
+
+				if (code == COMPLETED || code == SUCCESS)
+				{
+					callbackFunction();
+				}
+				else if (code == HALTED || code == ERROR)
+				{
+					console.log("Could not check status of " + serverFunction + ", there was an error on the server, aborting");
+				}
+				else
+				{
+					setTimeout(ajaxFunction, 1000);
+				}
+			}
+		}
+		ajax.send();
+	}
+	ajaxFunction();
+}
+
+function inc(a, b)
+{
+	var carry = 0;
+	var num = 0;
+	var i = 0;
+	
+	while((carry || (i < a.length) || (i < b.length)) && (i < 100))
+	{
+		num = carry;
+		if(i < a.length){num += a[i];}
+		if(i < b.length){num += b[i];}
+		
+		if(num >= 256)
+		{
+			num -= 256;
+			carry = 1;
+		}
+		else
+		{
+			carry = 0;
+		}
+		
+		a[i] = num;
+		
+		i++;
+	}
+}
+
+function ifposDec(a, b)
+{
+	var carry = 0;
+	var num = 0;
+	var i = 0;
+	
+	if(b.length > a.length){return a;}
+	if(b.length == a.length)
+	{
+		i = a.length - 1;
+		while(i >= 0)
+		{
+			if(a[i] > b[i]){break;}
+			if(a[i] < b[i]){return a;}
+			i--;
+		}
+	}
+	
+	i = 0;
+	var len = 0;
+	var outString = "";
+	while((i < a.length) || (i < b.length))
+	{
+		num = -carry;
+		if(i < a.length){num += a[i];}
+		if(i < b.length){num -= b[i];}
+		
+		if(num < 0)
+		{
+			num += 256;
+			carry = 1;
+		}
+		else
+		{
+			carry = 0;
+		}
+		
+		a[i] = num;
+		outString += num + ","
+		i++
+		
+		if(num != 0){len = i}
+	}
+
+	if(len < a.length)
+	{
+		a = a.slice(0, len);
+	}
+	
+	return a;
+}
+
+function convertNum(a)
+{
+	var result = new Array();
+	var i;
+	var convert = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"];
+	
+	if(a.length == 0)
+	{
+		result.push("0");
+		return result;
+	}
+	
+	for(i = a.length - 1; i >= 0; i--)
+	{
+		result.push(convert[Math.floor(a[i]/16)]);
+		result.push(convert[Math.floor(a[i]%16)]);
+	}
+	
+	var resultString = "";
+	for(var j = 0; j < result.length; j++)
+	{
+		resultString += result[j];
+	}
+	
+	return resultString;
+}
+
+gs.functions.hashString = function(str)
+{
+	var remainder = new Array();
+	var primePow = new Array();
+	var pow = 
+	[
+		255, 255, 255,
+		255, 255, 255,
+		255, 255, 255,
+		255, 255, 1
+	];
+	
+	for(var i = 0; i < 8; i++)
+	{
+		primePow.push(pow.slice()); //The javascript way to do an array copy (yuck!)
+		inc(pow, pow);
+	}
+	
+	for(var i = 0; i < str.length; i++)
+	{
+		var c = str.charCodeAt(i);
+
+		if(remainder.length == 99)
+		{
+			return null;
+		}
+
+		for(var j = remainder.length; j > 0; j--)
+		{
+			remainder[j] = remainder[j-1];
+		}
+		remainder[0] = c;
+
+		for(var j = 7; j >= 0; j--)
+		{
+			remainder = ifposDec(remainder, primePow[j]);
+		}	
+	}
+	
+	return convertNum(remainder);
+}
+
+// This method performs an AJAX call after working out, based on parameters and internal decision-making code,
+// if it's using GET or POST,
+// asynchronous or synchronous AJAX, 
+// jQuery's .ajax() method or gsajaxapi.js' regular JavaScript way of calling AJAX (necessary functions
+// now ported from GS2 to GS3)
+// and whether it needs to transmit the payload in URL or data structure (Java object) form.
+// In the past, the AJAX calls to metadataserver.pl only dealt with URLs and used jQuery .ajax(). As a
+// consequence of this particular combination, the calls in the past were all GET operations.
+//
+// - payload param: contains both the URL form and the data object form of the package to transmit over
+// AJAX to metadataserver.pl. Based on the parameters and some internal variables, _callMetadataServer()
+// determines which to use.
+// - opts param: No function overloading in JavaScript. Can pass a custom object, however can pass opts,
+// see http://stackoverflow.com/questions/456177/function-overloading-in-javascript-best-practices
+//
+// BEWARE:
+// errorResponseFunction is at present only called on error if using jQuery ajax (sync/async) and not if using gsajaxapi (sync/async).
+gs.functions._callMetadataServer = function(callingFunction, payload, successResponseFunction, errorResponseFunction, opts)
+{
+
+    // async AJAX by default for get operations: because internal processing of 'read' operations (get meta) 
+    // is not order dependent.
+    // Set/remove operations will switch to synchronous AJAX, unless opt["forceSync"] is set otherwise
+    var async_setting = true; 
+    var method = "POST"; // GET was the default before
+    
+    // Set to false if you wish to use the regular JavaScript AJAX way in gsajaxapi.js (will use payload.url)
+    // Set to true if using jQuery AJAX (will use payload.data).
+    var _use_jQuery_ajax_not_gsajaxapi = true; 
+
+    // _use_payload_in_data_not_url_form is determined based on vars method and _use_jQuery_ajax_not_gsajaxapi 
+    // If using AJAX with payload data (with jQuery) rather than using URLs containing data (payload in url): 
+    // using data will allow us to use jQuery to POST stuff too.
+    // For gsajaxapi, payload to be transmitted over AJAX must be in URL form, whether GET or POST.
+    // For jQuery, AJAX calls ended up as GET when the payload is in URL form.
+    // Default used to be payload in url form. To get the default back, 
+    // set method = "GET" (above, but also in calling functions that specify this optional parameter!)
+    // and set the default here below for _use_payload_in_data_not_url_form to false.
+    var _use_payload_in_data_not_url_form = true; // code will anyway set this to true for jQuery $.ajax() with POST
+
+    var _modifyingMeta  = false;
+
+    var url = payload["url"]; // for jQuery GET, and for GET and POST using JavaScript AJAX 
+    var data = payload["data"]; // for jQuery POST
+
+
+    // check for any caller overrides
+    if(opts != null) {
+	if(opts["requestMethod"] != null) {
+	    method = opts["requestMethod"];
+	}
+    }
+    
+    // sync or async? Generally, synchronous AJAX for set-meta operations, and asynchronous for get-meta ops
+    var metaServerCommand = (data["s1.a"] == null) ? data["a"] : data["s1.a"];
+    if(metaServerCommand.indexOf("set-") != -1 || metaServerCommand.indexOf("remove-") != -1) {
+	_modifyingMeta  = true;
+	async_setting = false; // for 'write' operations (set/remove meta), we force sequential processing of the internal operation.
+
+    }
+    // check for any overrides by calling code that knows what it's doing
+    if (opts != null && opts["forceSync"] != null) {
+	async_setting = (!opts["forceSync"]);
+    }
+
+    if(_use_jQuery_ajax_not_gsajaxapi) {
+	if(method == "POST") {
+	    _use_payload_in_data_not_url_form = true;
+	}  // if GET, can use payload in URL form or in data form for jQuery AJAX
+	// to put it another way: can't do jQuery POST operations with payload in URL form
+
+    } else { // using gsajaxapi.js, which only accepts the payload in URL form, whether GET or POST	
+	_use_payload_in_data_not_url_form = false;
+    }
+
+    // use the URL form or the data form to transmit the payload over AJAX?
+    // Payload in data form implies jQuery AJAX, not gsajaxapi calls,
+    // since we can't use gsajaxapi.js AJAX GET/POST calls without payload in URL form
+    if(_use_payload_in_data_not_url_form) { // using data payload to do AJAX (regardless of request method)
+	
+	// for get-meta operations, go directly through metadata-server.pl
+	// for set-meta ops, should go via GS3 authentication, which is off the GS3 library servlet
+	url = (_modifyingMeta) ? gs.xsltParams.library_name : "cgi-bin/metadata-server.pl"; 	
+
+    } else { // uses data encoded into URL, rather than a data structure. 
+	data = null; // we're using the URL as payload, don't duplicate the payload to be transmitted into data
+	
+	url = payload["url"]; // payload["url"] contains the URL + data encoded in URL form
+	// URL is already correct for get-meta vs meta-modification operations.
+	// For meta-modification ops, it will through GS3 authentication first rather than metadata-server.pl
+	
+    } 
+
+    // finally, can do the AJAX call
+
+    //console.log("*** Away to call: " + url);
+    var ajaxResponse = async_setting ? "*** No response received yet, async ajax request" : null;
+
+
+    if(_use_jQuery_ajax_not_gsajaxapi) {
+	// ajax calls default to using method GET, we want to do POST operations for get-meta and set-meta requests
+	// since get-meta-array and especially set-meta-array can be large, e.g. for user comments.
+	var ajaxCall = $.ajax({url: url, async: async_setting, type: method, data: data})
+	    .done(function(response) {
+		ajaxResponse = response;
+//		console.log("** (" + callingFunction + ") Response received from server: " + ajaxResponse);
+		
+		//var xml = $.parseXML(response);
+		//console.log(xml);
+
+
+		// Handle the otherwise silent die statement of gsdl_cgi->generate_error(),
+		// forcing the errorResponseFunction route in such a case
+		if(response.indexOf("ERROR: ") !== -1 || response.indexOf("<Error>") !== -1) {
+		    if(errorResponseFunction != null) {			
+			console.log("!!!! (" + callingFunction + ") Failed with gsdlcgi error:\n" + response);
+			errorResponseFunction(response);
+		    } else {
+			alert("@@@ (" + callingFunction + ") Failed\n" + response);
+			console.log("@@@ (" + callingFunction + ") Failed\n" + response);
+		    }		    
+		}
+		
+		else if(successResponseFunction != null) {
+		    //console.log("XXXX callMetaServer - Got response: " + response);
+		    successResponseFunction(response);
+		}
+	    })
+	    .fail(function(response, textStatus, errorThrown) {
+		// https://stackoverflow.com/questions/13258784/stopping-an-ajax-call-on-page-unload
+		// https://api.jquery.com/jQuery.ajax/
+		if(textStatus == "abort") {
+		    console.log ("INFO: Navigating away from page, so aborted running ajax.");
+		} else {
+		
+			if(errorResponseFunction != null) { 
+		 	    console.log("*** (" + callingFunction + ") Failed\n" + response);   
+			    errorResponseFunction(response);
+			} else {
+			    	alert("(" + callingFunction + ") Failed\n" + response);
+				console.log("*** (" + callingFunction + ") Failed\n" + response);
+			}
+		}
+	    })
+	    .always(function(data) { // https://api.jquery.com/jQuery.ajax/
+
+		// this call has terminated one way or another, remove it from the list we maintain
+		// of runningAjaxCalls
+		var index_of_call = runningAjaxCalls.indexOf(ajaxCall);
+		if(index_of_call != -1) {
+		    // null this ajaxCall in the runningAjaxCalls array if not already nulled
+		    //runningAjaxCalls[index_of_call] = null;
+
+		    // remove this 1 call from the runningAjaxCalls array
+		    runningAjaxCalls.splice(index_of_call, 1);
+		}
+		
+	    });
+
+	// now we've launched an ajax call, let's add it to our list of runningAjaxCalls
+	runningAjaxCalls.push(ajaxCall);
+    }
+    else {
+	// USES GSAJAXAPI.JS to do AJAX. In this case, the payload must be in URL form
+	
+	var splitURL = url.split("?");
+	url = splitURL[0]; // base URL
+	var params = splitURL[1]; // query-string
+
+	// Don't need to delete objects created with 'new' in JavaScript. Garbage collection will do it.
+	// http://stackoverflow.com/questions/4869712/new-without-delete-on-same-variable-in-javascript
+	var gsapi = new GSAjaxAPI(url);
+	
+	// ajax calls default to using method GET, we want to do POST operations for get-meta and set-meta requests
+	// since get-meta-array and especially set-meta-array can be large, e.g. for user comments.
+	
+	if(async_setting) {
+	    gsapi.urlPostAsync(url, params, successResponseFunction, errorResponseFunction);
+	} else {
+	    ajaxResponse = gsapi.urlPostSync(url, params);
+	    //ajaxResponse = ajaxResponse;
+	}
+	
+//	console.log("*** (" + callingFunction + ") Response from server: " + ajaxResponse);
+
+    }
+    
+//    console.log("*** Finished ajax call to: " + url);    
+//    console.log("*** Got response: " + ajaxResponse);
+
+    return ajaxResponse;
+}
+
+
+// Prepare the payload (data package) to transmit to metadataserver.pl over AJAX.
+// These next 2 functions prepare both the URL version of the payload and the data object version 
+// of the payload. Then calling functions, and the _callMetadataServer() function they call, will control
+// and determine which of the two forms ultimately gets used.
+// (Constructing both URL and data structure, as I could not successfully convert old URL way to data structure
+// http://stackoverflow.com/questions/8648892/convert-url-parameters-to-a-javascript-object)
+gs.functions.getBasicDataForMetadataServer = function(metaServerCommand, collection, site, documentID, metadataName,
+						       metamode, metadataValue, prevMetadataValue, metadataPosition)
+{
+    // if we're doing set- or remove- metadata operations,
+    // then we need to change the data params that will make up the query string
+    // to make sure we go through GS3's authentication
+    // 1. prefix meta names with s1,
+    // 2. use s1.collection for collectionName since c is a special param name for GS2Construct
+    // 3. Additional parameters for rerouting through Authentication: a=g&rt=r&ro=1&s=ModifyMetadata
+
+    var modifyingMeta  = false;
+    var prefix = "";
+    var colPropName = "c";
+    var baseURL = "cgi-bin/metadata-server.pl?";
+
+    // if we need authentication:
+    if(metaServerCommand.indexOf("set-") != -1 || metaServerCommand.indexOf("remove-") != -1) {
+	modifyingMeta  = true;
+	prefix = "s1.";
+	colPropName = prefix+"collection"; // "s1.collection"
+	baseURL = gs.xsltParams.library_name + "?a=g&rt=r&ro=1&s=ModifyMetadata&";
+    }
+
+
+    // 1. when using jQuery to POST, need to invoke AJAX with a data structure rather than a URL
+    var data = {};
+
+    // customizable portion of ajax call
+    data[prefix+"a"] = metaServerCommand;
+    data[colPropName] = collection;
+    data[prefix+"site"] = site;
+    data[prefix+"d"] = documentID;
+    data[prefix+"metaname"] = metadataName;
+    data[prefix+"metapos"] = metadataPosition;
+    data[prefix+"metavalue"] = metadataValue;
+    data[prefix+"prevmetavalue"] = prevMetadataValue;
+    data[prefix+"metamode"] = metamode;
+
+    if(modifyingMeta) {
+	// fixed portion of url: add the a=g&rt=r&ro=1&s=ModifyMetadata part of the GS3 URL for
+	// going through authentication. Don't prefix "s1." to these!
+	data["a"] = "g";
+	data["rt"] = "r";
+	data["ro"] = "1";
+	data["s"] = "ModifyMetadata";
+    }
+
+    // 2. Construct the URL version of the metadata-server.pl operation:
+    // for GET requests, the URL can contain the data.
+    // Regular JavaScript AJAX code in gsajaxapi.js can also POST data in URL form, but not jQuery's .ajax().
+
+    	
+    // If doing set- or remove- (not get-) metadata, then rewrite URLs to call GS2Construct's ModfiyMetadata service instead (which will ensure this only works when authenticated). 
+    // From:
+    // <gs3server>/cgi-bin/metadata-server.pl?a=set-archives-metadata&c=smallcol&site=localsite&d=HASH01454f31011f6b6b26eaf8d7&metaname=Title&metavalue=Moo&prevmetavalue=Blabla&metamode=override
+    // To:
+    // <gs3server>/library?a=g&rt=r&ro=1&s=ModifyMetadata&s1.a=set-archives-metadata&s1.collection=smallcol&s1.site=localsite&s1.d=HASH01454f31011f6b6b26eaf8d7&s1.metaname=Title&s1.metavalue=Moo&s1.prevmetavalue=Blabla&s1.metamode=override
+
+    var extraParams = "";
+    
+    if(metadataValue != null) {
+	extraParams += "&"+prefix+"metavalue=" + metadataValue;
+    }
+    
+    if(metadataPosition != null)
+    {
+	extraParams += "&"+prefix+"metapos=" + metadataPosition;	    
+    }
+    
+    if(prevMetadataValue != null) {
+	extraParams += "&"+prefix+"prevmetavalue=" + prevMetadataValue;
+    }
+    
+    var url = baseURL + prefix+"a=" + metaServerCommand + "&"+colPropName+"=" + collection + "&"+prefix+"site=" + site + "&"+prefix+"d=" + documentID + "&"+prefix+"metaname=" + metadataName + extraParams + "&"+prefix+"metamode=" + metamode;
+
+    // 3. Return both the constructed url & data variants of the payload to be transmitted over ajax
+    var payload = {
+	url: url,    
+	data: data
+    };
+
+    return payload;
+}
+
+// See description for getBasicDataForMetadataServer()
+gs.functions.getComplexDataForMetadataServer = function(metaServerCommand, collection, site, docArray, metamode, where)
+{
+    var docArrayJSON = JSON.stringify(docArray);
+    
+    // if we're doing set- or remove- metadata operations,
+    // then we need change the data params that will make up the query string
+    // to make sure we go through GS3's authentication
+    // 1. prefix meta names with s1,
+    // 2. use s1.collection for collectionName since c is a special param name for GS2Construct
+    // 3. Additional parameters for rerouting through Authentication: a=g&rt=r&ro=1&s=ModifyMetadata
+
+    var modifyingMeta  = false;
+    var prefix = "";
+    var colPropName = "c";
+    var baseURL = "cgi-bin/metadata-server.pl?";
+
+    // if we need authentication:
+    if(metaServerCommand.indexOf("set-") != -1 || metaServerCommand.indexOf("remove-") != -1) {
+	modifyingMeta  = true;
+	prefix = "s1.";
+	colPropName = prefix+"collection"; // "s1.collection"
+	baseURL = gs.xsltParams.library_name + "?a=g&rt=r&ro=1&s=ModifyMetadata&";
+    }
+
+    // 1. when using jQuery to POST, need to invoke AJAX with a data structure rather than a URL
+    var data = {};
+
+    // customizable portion of ajax call
+    data[prefix+"a"] = metaServerCommand;
+    data[colPropName] = collection;
+    data[prefix+"site"] = site;
+    data[prefix+"json"] = docArrayJSON;
+    
+    if(where != null) {
+	data[prefix+"where"] = where;
+    }
+    if (metamode!=null) {
+	data[prefix+"metamode"] = metamode;
+    }
+
+    if(modifyingMeta) {
+	// fixed portion of url: add the a=g&rt=r&ro=1&s=ModifyMetadata part of the GS3 URL for
+	// going through authentication. Don't prefix "s1." to these!
+	data["a"] = "g";
+	data["rt"] = "r";
+	data["ro"] = "1";
+	data["s"] = "ModifyMetadata";
+    }
+    
+
+    // 2. URL for when doing AJAX in URL mode. GET with jQuery allows the data to be part of the URL, but
+    // not jQuery POST. But our regular JavaScript AJAX code in gsajaxapi.js allows GET and POST with URLs
+    // containing the data.    
+    
+    var params = prefix+"a=" + escape(metaServerCommand); //"a=set-metadata-array";
+    if(where != null) {
+	params += "&"+prefix+"where=" + escape(where); // if where not specified, meta-server will default to setting index meta
+	//} else {
+	//    params += "&"+prefix+"where=import|archives|index";
+    }
+    params += "&"+colPropName+"="+escape(collection);
+    params += "&"+prefix+"site="+escape(site);
+    params += "&"+prefix+"json="+escape(docArrayJSON);
+    
+    if (metamode!=null) {
+	params += "&"+prefix+"metamode=" + escape(metamode);
+    }
+
+    // 3. Return both the constructed url & data variants of the payload to be transmitted over ajax
+    var payload = {
+	url: baseURL + params,    
+	data: data
+    };
+
+    return payload;
+}
+
+/*************************
+* SET METADATA FUNCTIONS *
+*************************/
+
+gs.functions.setImportMetadata = function(collection, site, documentID, metadataName, metadataValue, prevMetadataValue, metamode, successResponseFunction, errorResponseFunction)
+{    
+	if( typeof errorResponseFunction === 'undefined' ) { errorResponseFunction = null; } // force error callback to be defined: either null or has value
+
+    gs.functions._callMetadataServer(
+	"setImportMetadata", 
+	gs.functions.getBasicDataForMetadataServer("set-import-metadata", collection, site, documentID, metadataName, metamode, metadataValue, prevMetadataValue, null /*metapos*/), 
+	successResponseFunction,
+	errorResponseFunction);
+    
+}
+
+gs.functions.setArchivesMetadata = function(collection, site, documentID, metadataName, metadataPosition, metadataValue, prevMetadataValue, metamode, successResponseFunction, errorResponseFunction)
+{
+	if(metadataValue) console.log("metaval: " + metadataValue + " | " + gs.functions.debug_unicode_string(metadataValue)); //metadataValue.hexEncode()
+	if(prevMetadataValue) console.log("prevmetaval: " + prevMetadataValue + " | " + gs.functions.debug_unicode_string(prevMetadataValue));
+	
+	if( typeof errorResponseFunction === 'undefined' ) { errorResponseFunction = null; } // force error callback to be defined: either null or has value
+	
+    if(metadataPosition != null) {
+	prevMetadataValue = null; // to force the same ultimate behaviour as in the old version of this code
+    }
+
+    gs.functions._callMetadataServer(
+	"setArchivesMetadata",
+	gs.functions.getBasicDataForMetadataServer("set-archives-metadata", collection, site, documentID, metadataName, metamode, metadataValue, prevMetadataValue, metadataPosition),
+	successResponseFunction,
+	errorResponseFunction);
+
+}
+
+gs.functions.setIndexMetadata = function(collection, site, documentID, metadataName, metadataPosition, metadataValue, prevMetadataValue, metamode, successResponseFunction, errorResponseFunction)
+{
+	if( typeof errorResponseFunction === 'undefined' ) { errorResponseFunction = null; } // force error callback to be defined: either null or has value
+	
+    if(metadataPosition != null) {
+	prevMetadataValue = null; // to force the same ultimate behaviour as in the old version of this code
+    }
+
+    // old version of this function would only call _callMetadataServer if either metapos
+    // or prevMetaValue had a value. So sticking to the same behaviour in rewriting this function.
+    if(metadataPosition != null || prevMetadataValue != null) { 
+    
+	gs.functions._callMetadataServer(
+	    "setIndexMetadata",
+	    gs.functions.getBasicDataForMetadataServer("set-metadata", collection, site, documentID, metadataName, metamode, metadataValue, prevMetadataValue, metadataPosition),
+	    successResponseFunction,
+		errorResponseFunction);
+    }
+}
+
+gs.functions.setMetadata = function(collection, site, documentID, metadataName, metadataValue, metamode, successResponseFunction, errorResponseFunction)
+{
+	if( typeof errorResponseFunction === 'undefined' ) { errorResponseFunction = null; } // force error callback to be defined: either null or has value
+	
+	var nameArray = ["setImportMetadata", "setArchivesMetadata", "setIndexMetadata"];
+	var functionArray = ["set-import-metadata", "set-archives-metadata", "set-metadata"];
+	
+	for(var i = 0; i < nameArray.length; i++)
+	{
+	    // previous version of this function did not allow setting metapos or prevMetavalue
+	    // so leaving the behaviour the same along with function signature.
+	    gs.functions._callMetadataServer(
+		nameArray[i],
+		gs.functions.getBasicDataForMetadataServer(functionArray[i], collection, site, documentID, metadataName, metamode, metadataValue, null /*prevMetadataValue*/, null /*metadataPosition*/),
+		successResponseFunction,
+		errorResponseFunction);
+	}
+}
+
+// New. Modified version of the GS2 version of this method in gsajaxapi.js.
+// The where parameter can be specified as one or more of: import, archives, index, live 
+// separated by |. If null, it is assumed to be index which is the original default 
+// behaviour of calling set-metadata-array. E.g. where=import|archives|index
+// THIS METHOD IS SYNCHRONOUS by default. Set forceSync to false to override this default behaviour
+gs.functions.setMetadataArray = function(collection, site, docArray, metamode, where, successResponseFunction, forceSync, errorResponseFunction) 
+{  
+	if( typeof errorResponseFunction === 'undefined' ) { errorResponseFunction = null; } // force error callback to be defined: either null or has value
+
+    var payload = gs.functions.getComplexDataForMetadataServer("set-metadata-array", collection, site, docArray, metamode, where);
+    
+    // set operations are generally synchronous, but allow calling function to force ajax call 
+    // to be synchronous or not. Default is synchronous, as it was for GS2
+    if(forceSync == null) {
+	forceSync = true;
+    }
+    
+    //console.log("cgi-bin/metadata-server.pl?"+params);
+    
+    var response = gs.functions._callMetadataServer("Setting metadata in "+where, payload, successResponseFunction, errorResponseFunction, {"forceSync": forceSync, "requestMethod": "POST"});
+	
+    return response;
+}
+
+
+/*************************
+* GET METADATA FUNCTIONS *
+*************************/
+
+// New. Modified version of the GS2 version of this method in gsajaxapi.js.
+// See description for setMetadataArray above for information about the 'where' parameter.
+// THIS METHOD IS SYNCHRONOUS BY DEFAULT. Set forceSync to false to override this default behaviour
+gs.functions.getMetadataArray = function(collection, site, docArray, where, successResponseFunction, forceSync, errorResponseFunction)
+{
+	if( typeof errorResponseFunction === 'undefined' ) { errorResponseFunction = null; } // force error callback to be defined: either null or has value
+
+    var payload = gs.functions.getComplexDataForMetadataServer("get-metadata-array", collection, site, docArray, null /*metamode*/, where);    
+
+    // get operations are generally asynchronous, but allow calling function to force ajax call 
+    // to be synchronous or not. Default for get-metadata-array is synchronous, as it was for GS2
+    if(forceSync == null) {
+	forceSync = true;
+    }
+    // Objects/maps can use identifiers or strings for property names
+    // http://stackoverflow.com/questions/456177/function-overloading-in-javascript-best-practices
+    // https://www.w3schools.com/js/js_objects.asp
+    var response = gs.functions._callMetadataServer("Getting metadata from "+where, payload, successResponseFunction, errorResponseFunction, {"forceSync":forceSync, "requestMethod": "POST"});
+
+    return response;
+}
+
+
+gs.functions.getImportMetadata = function(collection, site, documentID, metadataName, successResponseFunction, errorResponseFunction)
+{
+	if( typeof errorResponseFunction === 'undefined' ) { errorResponseFunction = null; } // force error callback to be defined: either null or has value
+
+    var payload = gs.functions.getBasicDataForMetadataServer("get-import-metadata", collection, site, documentID, metadataName);
+    gs.functions._callMetadataServer("getImportMetadata", payload, function(responseText) {
+	    var metadata = new GSMetadata(collection, site, documentID, metadataName, null, null, responseText);
+		if(successResponseFunction != null)
+		{
+			successResponseFunction(metadata);
+		}
+	},
+	errorResponseFunction);
+}
+
+gs.functions.getArchivesMetadata = function(collection, site, documentID, metadataName, metadataPosition, successResponseFunction, errorResponseFunction)
+{
+	if( typeof errorResponseFunction === 'undefined' ) { errorResponseFunction = null; } // force error callback to be defined: either null or has value
+
+    var payload = gs.functions.getBasicDataForMetadataServer("get-archives-metadata", collection, site, documentID, metadataName, null /*metamode*/, null /*metavalue*/, null /*prevmetavalue*/, metadataPosition);
+
+    gs.functions._callMetadataServer("getArchivesMetadata", payload, function(responseText) {
+		var metadata = new GSMetadata(collection, site, documentID, metadataName, null, metadataPosition, responseText); // indexPos, archivesPos, metaval (responseText)
+		if(successResponseFunction != null)
+		{
+			successResponseFunction(metadata);
+		}
+    },
+	errorResponseFunction);
+}
+
+gs.functions.getIndexMetadata = function(collection, site, documentID, metadataName, metadataPosition, successResponseFunction, errorResponseFunction)
+{
+	if( typeof errorResponseFunction === 'undefined' ) { errorResponseFunction = null; } // force error callback to be defined: either null or has value
+
+    var payload = gs.functions.getBasicDataForMetadataServer("get-metadata", collection, site, documentID, metadataName, null /*metamode*/, null /*metavalue*/, null /*prevmetavalue*/, metadataPosition);
+
+    gs.functions._callMetadataServer("getIndexMetadata", payload, function(responseText) {
+		var metadata = new GSMetadata(collection, site, documentID, metadataName, metadataPosition, null, responseText); // indexPos, archivesPos, metaval (responseText)		
+		if(successResponseFunction != null)
+		{
+			successResponseFunction(metadata);
+		}
+    },
+	errorResponseFunction);
+}
+
+/****************************
+* REMOVE METADATA FUNCTIONS *
+****************************/
+
+gs.functions.removeImportMetadata = function(collection, site, documentID, metadataName, metadataValue, successResponseFunction, errorResponseFunction)
+{
+	if( typeof errorResponseFunction === 'undefined' ) { errorResponseFunction = null; } // force error callback to be defined: either null or has value
+	
+    gs.functions._callMetadataServer(
+	"removeImportMetadata", 
+	gs.functions.getBasicDataForMetadataServer("remove-import-metadata", collection, site, documentID, metadataName, null /*metamode*/, metadataValue, null /*prevmetavalue*/, null /*metapos*/), 
+	successResponseFunction,
+	errorResponseFunction);
+}
+
+gs.functions.removeArchivesMetadata = function(collection, site, documentID, metadataName, metadataPosition, metadataValue, successResponseFunction, errorResponseFunction)
+{
+	if( typeof errorResponseFunction === 'undefined' ) { errorResponseFunction = null; } // force error callback to be defined: either null or has value
+	
+    if(metadataPosition != null) {
+	metadataValue = null; // retaining behaviour of previous version of this function removeArchivesMetadata()
+    }
+
+    gs.functions._callMetadataServer(
+	"removeArchivesMetadata", 
+	gs.functions.getBasicDataForMetadataServer("remove-archives-metadata", collection, site, documentID, metadataName, null /*metamode*/, metadataValue, null /*prevmetavalue*/, metadataPosition), 
+	successResponseFunction,
+	errorResponseFunction);
+}
+
+gs.functions.removeIndexMetadata = function(collection, site, documentID, metadataName, metadataPosition, metadataValue, successResponseFunction, errorResponseFunction)
+{
+	if( typeof errorResponseFunction === 'undefined' ) { errorResponseFunction = null; } // force error callback to be defined: either null or has value
+	
+    if(metadataPosition != null) {
+	metadataValue = null; // retaining behaviour of previous version of this function removeIndexMetadata()
+    }
+
+    gs.functions._callMetadataServer(
+	"removeIndexMetadata", 
+	gs.functions.getBasicDataForMetadataServer("remove-metadata", collection, site, documentID, metadataName, null /*metamode*/, metadataValue, null /*prevmetavalue*/, metadataPosition), 
+	successResponseFunction,
+	errorResponseFunction);
+}
+
+gs.functions.removeMetadata = function(collection, site, documentID, metadataName, metadataValue, successResponseFunction, errorResponseFunction)
+{
+	if( typeof errorResponseFunction === 'undefined' ) { errorResponseFunction = null; } // force error callback to be defined: either null or has value
+	
+	var nameArray = ["removeImportMetadata", "removeArchivesMetadata", "removeIndexMetadata"];
+	var functionArray = ["remove-import-metadata", "remove-archives-metadata", "remove-metadata"];
+	
+	for(var i = 0; i < nameArray.length; i++)
+	{
+	    gs.functions._callMetadataServer(
+		nameArray[i],
+		gs.functions.getBasicDataForMetadataServer(functionArray[i], collection, site, documentID, metadataName, null /*metamode*/, metadataValue, null /*prevmetavalue*/, null /*metapos*/),
+		successResponseFunction,
+		errorResponseFunction);
+	}
+}
+
+gs.functions.removeMetadataAtPos = function(collection, site, documentID, metadataName, metadataPosition, successResponseFunction, errorResponseFunction)
+{
+	if( typeof errorResponseFunction === 'undefined' ) { errorResponseFunction = null; } // force error callback to be defined: either null or has value
+	
+	var nameArray = ["removeImportMetadata", "removeArchivesMetadata", "removeIndexMetadata"];
+	var functionArray = ["remove-import-metadata", "remove-archives-metadata", "remove-metadata"];
+	
+	for(var i = 0; i < nameArray.length; i++)
+	{
+	    gs.functions._callMetadataServer(
+		nameArray[i],
+		gs.functions.getBasicDataForMetadataServer(functionArray[i], collection, site, documentID, metadataName, null /*metamode*/, null /*metadataValue*/, null /*prevmetavalue*/, metadataPosition),
+		successResponseFunction,
+		errorResponseFunction);
+	}
+}
+
+// metamode=override is in theory supported by remove_archives and remove_import metadata
+// but not by remove_index and remove_live metadata. However, even in the former 2 cases,
+// passing in metamode=override still appears to be ineffective, see recent svn revision 38193.
+// And metamode accumulate prevents all removal.
+// So for now, this function forces metamode to null, regardless of what is passed in.
+// At least this ensures a more consistent effect with remove_index (and remove_live) functions.
+gs.functions.removeMetadataArray = function(collection, site, docArray, metamode,
+		    where, successResponseFunction, forceSync, errorResponseFunction) 
+{
+	if( typeof errorResponseFunction === 'undefined' ) { errorResponseFunction = null; } // force error callback to be defined: either null or has value
+
+    var payload = gs.functions.getComplexDataForMetadataServer("remove-metadata-array", collection, site, docArray, null/*metamode*/, where);
+    
+    // set operations are generally synchronous, but allow calling function to force ajax call 
+    // to be synchronous or not. Default is synchronous, as it was for GS2
+    if(forceSync == null) {
+	forceSync = true;
+    }
+    
+    //console.log("cgi-bin/metadata-server.pl?"+params);
+    
+    var response = gs.functions._callMetadataServer("Removing metadata from "+where, payload, successResponseFunction, errorResponseFunction, {"forceSync": forceSync, "requestMethod": "POST"});
+
+    //console.log("in gs.functions.removeMetaArray: " + JSON.stringify(payload));
+    
+    return response;
+}
+
+
+/***********************************************************
+* ERASE METADATA FUNCTIONS 	                               *
+* Erase all meta in docID (sectionID) that match metaname. *
+***********************************************************/
+
+gs.functions.eraseImportMetadata = function(collection, site, documentID, metadataName, successResponseFunction, errorResponseFunction)
+{
+	if( typeof errorResponseFunction === 'undefined' ) { errorResponseFunction = null; } // force error callback to be defined: either null or has value
+	
+    gs.functions._callMetadataServer(
+	"eraseImportMetadata", 
+	gs.functions.getBasicDataForMetadataServer("erase-import-metadata", collection, site, documentID, metadataName, "override" /*metamode*/, null /*metadataValue*/, null /*prevmetavalue*/, null /*metadataPosition*/), 
+	successResponseFunction,
+	errorResponseFunction);
+}
+
+gs.functions.eraseArchivesMetadata = function(collection, site, documentID, metadataName, successResponseFunction, errorResponseFunction)
+{
+	if( typeof errorResponseFunction === 'undefined' ) { errorResponseFunction = null; } // force error callback to be defined: either null or has value
+	
+    gs.functions._callMetadataServer(
+	"eraseArchivesMetadata", 
+	gs.functions.getBasicDataForMetadataServer("erase-archives-metadata", collection, site, documentID, metadataName, "override" /*metamode*/, null /*metadataValue*/, null /*prevmetavalue*/, null /*metadataPosition*/), 
+	successResponseFunction,
+	errorResponseFunction);
+}
+
+gs.functions.eraseIndexMetadata = function(collection, site, documentID, metadataName, successResponseFunction, errorResponseFunction)
+{
+	if( typeof errorResponseFunction === 'undefined' ) { errorResponseFunction = null; } // force error callback to be defined: either null or has value
+	
+    gs.functions._callMetadataServer(
+	"eraseIndexMetadata", 
+	gs.functions.getBasicDataForMetadataServer("erase-metadata", collection, site, documentID, metadataName, "override" /*metamode*/, null /*metadataValue*/, null /*prevmetavalue*/, null /*metadataPosition*/), 
+	successResponseFunction,
+	errorResponseFunction);
+}
+
+gs.functions.eraseMetadata = function(collection, site, documentID, metadataName, successResponseFunction, errorResponseFunction)
+{
+	if( typeof errorResponseFunction === 'undefined' ) { errorResponseFunction = null; } // force error callback to be defined: either null or has value
+	
+	var nameArray = ["eraseImportMetadata", "eraseArchivesMetadata", "eraseIndexMetadata"];
+	var functionArray = ["erase-import-metadata", "erase-archives-metadata", "erase-metadata"];
+	
+	for(var i = 0; i < nameArray.length; i++)
+	{
+	    gs.functions._callMetadataServer(
+		nameArray[i],
+		gs.functions.getBasicDataForMetadataServer(functionArray[i], collection, site, documentID, metadataName, "override" /*metamode*/, null /*metadataValue*/, null /*prevmetavalue*/, null /*metadataPosition*/),
+		successResponseFunction,
+		errorResponseFunction);
+	}
+}
+
+// When user prematurely navigates away from current page before the page has finished all
+// running ajax calls, abort those still running. Else the error callback is called
+// and error messages are displayed.
+// https://stackoverflow.com/questions/13258784/stopping-an-ajax-call-on-page-unload
+// See also gs.functions._callMetadataServer() which maintains the array of running ajax calls
+// and removes finished calls from the runningAjaxCalls array.
+//window.onbeforeunload = function(event) {
+$(window).on("beforeunload", function(event) {
+    var i = 0;
+    var ajaxCall;
+    for (i = 0; i < runningAjaxCalls.length; i++) { // list of only *running* ajax calls
+	ajaxCall = runningAjaxCalls[i];
+	// abort each still running ajaxCall (gets removed from runningAjaxCalls list elsewhere)
+        ajaxCall.abort();
+    }
+});
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/jquery-3.6.0.min.js.download
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/jquery-3.6.0.min.js.download	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/jquery-3.6.0.min.js.download	(revision 38779)
@@ -0,0 +1,2 @@
+/*! jQuery v3.6.0 | (c) OpenJS Foundation and other contributors | jquery.org/license */
+!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},x=function(e){return null!=e&&e===e.window},E=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.6.0",S=function(e,t){return new S.fn.init(e,t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}S.fn=S.prototype={jquery:f,constructor:S,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=S.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return S.each(this,e)},map:function(n){return this.pushStack(S.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(S.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:t.sort,splice:t.splice},S.extend=S.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||m(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(S.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||S.isPlainObject(n)?n:{},i=!1,a[t]=S.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},S.extend({expando:"jQuery"+(f+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==o.call(e))&&(!(t=r(e))||"function"==typeof(n=v.call(t,"constructor")&&t.constructor)&&a.call(n)===l)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){b(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(p(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(p(Object(e))?S.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:i.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(p(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return g(a)},guid:1,support:y}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=t[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var d=function(n){var e,d,b,o,i,h,f,g,w,u,l,T,C,a,E,v,s,c,y,S="sizzle"+1*new Date,p=n.document,k=0,r=0,m=ue(),x=ue(),A=ue(),N=ue(),j=function(e,t){return e===t&&(l=!0),0},D={}.hasOwnProperty,t=[],q=t.pop,L=t.push,H=t.push,O=t.slice,P=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",I="(?:\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",W="\\["+M+"*("+I+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+M+"*\\]",F=":("+I+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+W+")*)|.*)\\)|)",B=new RegExp(M+"+","g"),$=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),_=new RegExp("^"+M+"*,"+M+"*"),z=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(p.childNodes),p.childNodes),t[p.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!N[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&(U.test(t)||z.test(t))){(f=ee.test(t)&&ye(e.parentNode)||e)===e&&d.scope||((s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=S)),o=(l=h(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+xe(l[o]);c=l.join(",")}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){N(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return g(t.replace($,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[S]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:p;return r!=C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),p!=C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.scope=ce(function(e){return a.appendChild(e).appendChild(C.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=S,!C.getElementsByName||!C.getElementsByName(S).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){var t;a.appendChild(e).innerHTML="<a id='"+S+"'></a><select id='"+S+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+S+"-]").length||v.push("~="),(t=C.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",F)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},j=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e==C||e.ownerDocument==p&&y(p,e)?-1:t==C||t.ownerDocument==p&&y(p,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==C?-1:t==C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]==p?-1:s[r]==p?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(T(e),d.matchesSelector&&E&&!N[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){N(t,!0)}return 0<se(t,C,null,[e]).length},se.contains=function(e,t){return(e.ownerDocument||e)!=C&&T(e),y(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=C&&T(e);var n=b.attrHandle[t.toLowerCase()],r=n&&D.call(b.attrHandle,t.toLowerCase())?n(e,t,!E):void 0;return void 0!==r?r:d.attributes||!E?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},se.escape=function(e){return(e+"").replace(re,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,n=[],r=0,i=0;if(l=!d.detectDuplicates,u=!d.sortStable&&e.slice(0),e.sort(j),l){while(t=e[i++])t===e[i]&&(r=n.push(i));while(r--)e.splice(n[r],1)}return u=null,e},o=se.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else while(t=e[r++])n+=o(t);return n},(b=se.selectors={cacheLength:50,createPseudo:le,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=m[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&m(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1<t.indexOf(i):"$="===r?i&&t.slice(-i.length)===i:"~="===r?-1<(" "+t.replace(B," ")+" ").indexOf(i):"|="===r&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(h,e,t,g,v){var y="nth"!==h.slice(0,3),m="last"!==h.slice(-4),x="of-type"===e;return 1===g&&0===v?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,a,s,u,l=y!==m?"nextSibling":"previousSibling",c=e.parentNode,f=x&&e.nodeName.toLowerCase(),p=!n&&!x,d=!1;if(c){if(y){while(l){a=e;while(a=a[l])if(x?a.nodeName.toLowerCase()===f:1===a.nodeType)return!1;u=l="only"===h&&!u&&"nextSibling"}return!0}if(u=[m?c.firstChild:c.lastChild],m&&p){d=(s=(r=(i=(o=(a=c)[S]||(a[S]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]||[])[0]===k&&r[1])&&r[2],a=s&&c.childNodes[s];while(a=++s&&a&&a[l]||(d=s=0)||u.pop())if(1===a.nodeType&&++d&&a===e){i[h]=[k,s,d];break}}else if(p&&(d=s=(r=(i=(o=(a=e)[S]||(a[S]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]||[])[0]===k&&r[1]),!1===d)while(a=++s&&a&&a[l]||(d=s=0)||u.pop())if((x?a.nodeName.toLowerCase()===f:1===a.nodeType)&&++d&&(p&&((i=(o=a[S]||(a[S]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]=[k,d]),a===e))break;return(d-=v)===g||d%g==0&&0<=d/g}}},PSEUDO:function(e,o){var t,a=b.pseudos[e]||b.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return a[S]?a(o):1<a.length?(t=[e,e,"",o],b.setFilters.hasOwnProperty(e.toLowerCase())?le(function(e,t){var n,r=a(e,o),i=r.length;while(i--)e[n=P(e,r[i])]=!(t[n]=r[i])}):function(e){return a(e,0,t)}):a}},pseudos:{not:le(function(e){var r=[],i=[],s=f(e.replace($,"$1"));return s[S]?le(function(e,t,n,r){var i,o=s(e,null,r,[]),a=e.length;while(a--)(i=o[a])&&(e[a]=!(t[a]=i))}):function(e,t,n){return r[0]=e,s(r,null,n,i),r[0]=null,!i.pop()}}),has:le(function(t){return function(e){return 0<se(t,e).length}}),contains:le(function(t){return t=t.replace(te,ne),function(e){return-1<(e.textContent||o(e)).indexOf(t)}}),lang:le(function(n){return V.test(n||"")||se.error("unsupported lang: "+n),n=n.replace(te,ne).toLowerCase(),function(e){var t;do{if(t=E?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===a},focus:function(e){return e===C.activeElement&&(!C.hasFocus||C.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return J.test(e.nodeName)},input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ve(function(){return[0]}),last:ve(function(e,t){return[t-1]}),eq:ve(function(e,t,n){return[n<0?n+t:n]}),even:ve(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:ve(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:ve(function(e,t,n){for(var r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:ve(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=de(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=he(e);function me(){}function xe(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function be(s,e,t){var u=e.dir,l=e.next,c=l||u,f=t&&"parentNode"===c,p=r++;return e.first?function(e,t,n){while(e=e[u])if(1===e.nodeType||f)return s(e,t,n);return!1}:function(e,t,n){var r,i,o,a=[k,p];if(n){while(e=e[u])if((1===e.nodeType||f)&&s(e,t,n))return!0}else while(e=e[u])if(1===e.nodeType||f)if(i=(o=e[S]||(e[S]={}))[e.uniqueID]||(o[e.uniqueID]={}),l&&l===e.nodeName.toLowerCase())e=e[u]||e;else{if((r=i[c])&&r[0]===k&&r[1]===p)return a[2]=r[2];if((i[c]=a)[2]=s(e,t,n))return!0}return!1}}function we(i){return 1<i.length?function(e,t,n){var r=i.length;while(r--)if(!i[r](e,t,n))return!1;return!0}:i[0]}function Te(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function Ce(d,h,g,v,y,e){return v&&!v[S]&&(v=Ce(v)),y&&!y[S]&&(y=Ce(y,e)),le(function(e,t,n,r){var i,o,a,s=[],u=[],l=t.length,c=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)se(e,t[r],n);return n}(h||"*",n.nodeType?[n]:n,[]),f=!d||!e&&h?c:Te(c,s,d,n,r),p=g?y||(e?d:l||v)?[]:t:f;if(g&&g(f,p,n,r),v){i=Te(p,u),v(i,[],n,r),o=i.length;while(o--)(a=i[o])&&(p[u[o]]=!(f[u[o]]=a))}if(e){if(y||d){if(y){i=[],o=p.length;while(o--)(a=p[o])&&i.push(f[o]=a);y(null,p=[],i,r)}o=p.length;while(o--)(a=p[o])&&-1<(i=y?P(e,a):s[o])&&(e[i]=!(t[i]=a))}}else p=Te(p===t?p.splice(l,p.length):p),y?y(null,t,p,r):H.apply(t,p)})}function Ee(e){for(var i,t,n,r=e.length,o=b.relative[e[0].type],a=o||b.relative[" "],s=o?1:0,u=be(function(e){return e===i},a,!0),l=be(function(e){return-1<P(i,e)},a,!0),c=[function(e,t,n){var r=!o&&(n||t!==w)||((i=t).nodeType?u(e,t,n):l(e,t,n));return i=null,r}];s<r;s++)if(t=b.relative[e[s].type])c=[be(we(c),t)];else{if((t=b.filter[e[s].type].apply(null,e[s].matches))[S]){for(n=++s;n<r;n++)if(b.relative[e[n].type])break;return Ce(1<s&&we(c),1<s&&xe(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace($,"$1"),t,s<n&&Ee(e.slice(s,n)),n<r&&Ee(e=e.slice(n)),n<r&&xe(e))}c.push(t)}return we(c)}return me.prototype=b.filters=b.pseudos,b.setFilters=new me,h=se.tokenize=function(e,t){var n,r,i,o,a,s,u,l=x[e+" "];if(l)return t?0:l.slice(0);a=e,s=[],u=b.preFilter;while(a){for(o in n&&!(r=_.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=z.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace($," ")}),a=a.slice(n.length)),b.filter)!(r=G[o].exec(a))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?se.error(e):x(e,s).slice(0)},f=se.compile=function(e,t){var n,v,y,m,x,r,i=[],o=[],a=A[e+" "];if(!a){t||(t=h(e)),n=t.length;while(n--)(a=Ee(t[n]))[S]?i.push(a):o.push(a);(a=A(e,(v=o,m=0<(y=i).length,x=0<v.length,r=function(e,t,n,r,i){var o,a,s,u=0,l="0",c=e&&[],f=[],p=w,d=e||x&&b.find.TAG("*",i),h=k+=null==p?1:Math.random()||.1,g=d.length;for(i&&(w=t==C||t||i);l!==g&&null!=(o=d[l]);l++){if(x&&o){a=0,t||o.ownerDocument==C||(T(o),n=!E);while(s=v[a++])if(s(o,t||C,n)){r.push(o);break}i&&(k=h)}m&&((o=!s&&o)&&u--,e&&c.push(o))}if(u+=l,m&&l!==u){a=0;while(s=y[a++])s(c,f,t,n);if(e){if(0<u)while(l--)c[l]||f[l]||(f[l]=q.call(r));f=Te(f)}H.apply(r,f),i&&!e&&0<f.length&&1<u+y.length&&se.uniqueSort(r)}return i&&(k=h,w=p),c},m?le(r):r))).selector=e}return a},g=se.select=function(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,c=!r&&h(e=l.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&E&&b.relative[o[1].type]){if(!(t=(b.find.ID(a.matches[0].replace(te,ne),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}i=G.needsContext.test(e)?0:o.length;while(i--){if(a=o[i],b.relative[s=a.type])break;if((u=b.find[s])&&(r=u(a.matches[0].replace(te,ne),ee.test(o[0].type)&&ye(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&xe(o)))return H.apply(n,r),n;break}}}return(l||f(e,c))(r,t,!E,n,!t||ee.test(e)&&ye(t.parentNode)||t),n},d.sortStable=S.split("").sort(j).join("")===S,d.detectDuplicates=!!l,T(),d.sortDetached=ce(function(e){return 1&e.compareDocumentPosition(C.createElement("fieldset"))}),ce(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||fe("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),d.attributes&&ce(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||fe("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ce(function(e){return null==e.getAttribute("disabled")})||fe(R,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),se}(C);S.find=d,S.expr=d.selectors,S.expr[":"]=S.expr.pseudos,S.uniqueSort=S.unique=d.uniqueSort,S.text=d.getText,S.isXMLDoc=d.isXML,S.contains=d.contains,S.escapeSelector=d.escape;var h=function(e,t,n){var r=[],i=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&S(e).is(n))break;r.push(e)}return r},T=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},k=S.expr.match.needsContext;function A(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var N=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,n,r){return m(n)?S.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?S.grep(e,function(e){return e===n!==r}):"string"!=typeof n?S.grep(e,function(e){return-1<i.call(n,e)!==r}):S.filter(n,e,r)}S.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?S.find.matchesSelector(r,e)?[r]:[]:S.find.matches(e,S.grep(t,function(e){return 1===e.nodeType}))},S.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(S(e).filter(function(){for(t=0;t<r;t++)if(S.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)S.find(e,i[t],n);return 1<r?S.uniqueSort(n):n},filter:function(e){return this.pushStack(j(this,e||[],!1))},not:function(e){return this.pushStack(j(this,e||[],!0))},is:function(e){return!!j(this,"string"==typeof e&&k.test(e)?S(e):e||[],!1).length}});var D,q=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(S.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||D,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:q.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),N.test(r[1])&&S.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(S):S.makeArray(e,this)}).prototype=S.fn,D=S(E);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){while((e=e[t])&&1!==e.nodeType);return e}S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(S.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&S(e);if(!k.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&S.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?S.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?i.call(S(e),this[0]):i.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),S.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return h(e,"parentNode")},parentsUntil:function(e,t,n){return h(e,"parentNode",n)},next:function(e){return O(e,"nextSibling")},prev:function(e){return O(e,"previousSibling")},nextAll:function(e){return h(e,"nextSibling")},prevAll:function(e){return h(e,"previousSibling")},nextUntil:function(e,t,n){return h(e,"nextSibling",n)},prevUntil:function(e,t,n){return h(e,"previousSibling",n)},siblings:function(e){return T((e.parentNode||{}).firstChild,e)},children:function(e){return T(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(A(e,"template")&&(e=e.content||e),S.merge([],e.childNodes))}},function(r,i){S.fn[r]=function(e,t){var n=S.map(this,i,e);return"Until"!==r.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=S.filter(t,n)),1<this.length&&(H[r]||S.uniqueSort(n),L.test(r)&&n.reverse()),this.pushStack(n)}});var P=/[^\x20\t\r\n\f]+/g;function R(e){return e}function M(e){throw e}function I(e,t,n,r){var i;try{e&&m(i=e.promise)?i.call(e).done(t).fail(n):e&&m(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}S.Callbacks=function(r){var e,n;r="string"==typeof r?(e=r,n={},S.each(e.match(P)||[],function(e,t){n[t]=!0}),n):S.extend({},r);var i,t,o,a,s=[],u=[],l=-1,c=function(){for(a=a||r.once,o=i=!0;u.length;l=-1){t=u.shift();while(++l<s.length)!1===s[l].apply(t[0],t[1])&&r.stopOnFalse&&(l=s.length,t=!1)}r.memory||(t=!1),i=!1,a&&(s=t?[]:"")},f={add:function(){return s&&(t&&!i&&(l=s.length-1,u.push(t)),function n(e){S.each(e,function(e,t){m(t)?r.unique&&f.has(t)||s.push(t):t&&t.length&&"string"!==w(t)&&n(t)})}(arguments),t&&!i&&c()),this},remove:function(){return S.each(arguments,function(e,t){var n;while(-1<(n=S.inArray(t,s,n)))s.splice(n,1),n<=l&&l--}),this},has:function(e){return e?-1<S.inArray(e,s):0<s.length},empty:function(){return s&&(s=[]),this},disable:function(){return a=u=[],s=t="",this},disabled:function(){return!s},lock:function(){return a=u=[],t||i||(s=t=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),i||c()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!o}};return f},S.extend({Deferred:function(e){var o=[["notify","progress",S.Callbacks("memory"),S.Callbacks("memory"),2],["resolve","done",S.Callbacks("once memory"),S.Callbacks("once memory"),0,"resolved"],["reject","fail",S.Callbacks("once memory"),S.Callbacks("once memory"),1,"rejected"]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},"catch":function(e){return a.then(null,e)},pipe:function(){var i=arguments;return S.Deferred(function(r){S.each(o,function(e,t){var n=m(i[t[4]])&&i[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&m(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this,n?[e]:arguments)})}),i=null}).promise()},then:function(t,n,r){var u=0;function l(i,o,a,s){return function(){var n=this,r=arguments,e=function(){var e,t;if(!(i<u)){if((e=a.apply(n,r))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,m(t)?s?t.call(e,l(u,o,R,s),l(u,o,M,s)):(u++,t.call(e,l(u,o,R,s),l(u,o,M,s),l(u,o,R,o.notifyWith))):(a!==R&&(n=void 0,r=[e]),(s||o.resolveWith)(n,r))}},t=s?e:function(){try{e()}catch(e){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(e,t.stackTrace),u<=i+1&&(a!==M&&(n=void 0,r=[e]),o.rejectWith(n,r))}};i?t():(S.Deferred.getStackHook&&(t.stackTrace=S.Deferred.getStackHook()),C.setTimeout(t))}}return S.Deferred(function(e){o[0][3].add(l(0,e,m(r)?r:R,e.notifyWith)),o[1][3].add(l(0,e,m(t)?t:R)),o[2][3].add(l(0,e,m(n)?n:M))}).promise()},promise:function(e){return null!=e?S.extend(e,a):a}},s={};return S.each(o,function(e,t){var n=t[2],r=t[5];a[t[1]]=n.add,r&&n.add(function(){i=r},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){var n=arguments.length,t=n,r=Array(t),i=s.call(arguments),o=S.Deferred(),a=function(t){return function(e){r[t]=this,i[t]=1<arguments.length?s.call(arguments):e,--n||o.resolveWith(r,i)}};if(n<=1&&(I(e,o.done(a(t)).resolve,o.reject,!n),"pending"===o.state()||m(i[t]&&i[t].then)))return o.then();while(t--)I(i[t],a(t),o.reject);return o.promise()}});var W=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(e,t){C.console&&C.console.warn&&e&&W.test(e.name)&&C.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},S.readyException=function(e){C.setTimeout(function(){throw e})};var F=S.Deferred();function B(){E.removeEventListener("DOMContentLoaded",B),C.removeEventListener("load",B),S.ready()}S.fn.ready=function(e){return F.then(e)["catch"](function(e){S.readyException(e)}),this},S.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--S.readyWait:S.isReady)||(S.isReady=!0)!==e&&0<--S.readyWait||F.resolveWith(E,[S])}}),S.ready.then=F.then,"complete"===E.readyState||"loading"!==E.readyState&&!E.documentElement.doScroll?C.setTimeout(S.ready):(E.addEventListener("DOMContentLoaded",B),C.addEventListener("load",B));var $=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===w(n))for(s in i=!0,n)$(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,m(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(S(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},_=/^-ms-/,z=/-([a-z])/g;function U(e,t){return t.toUpperCase()}function X(e){return e.replace(_,"ms-").replace(z,U)}var V=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function G(){this.expando=S.expando+G.uid++}G.uid=1,G.prototype={cache:function(e){var t=e[this.expando];return t||(t={},V(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[X(t)]=n;else for(r in t)i[X(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][X(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(X):(t=X(t))in r?[t]:t.match(P)||[]).length;while(n--)delete r[t[n]]}(void 0===t||S.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!S.isEmptyObject(t)}};var Y=new G,Q=new G,J=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,K=/[A-Z]/g;function Z(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(K,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:J.test(i)?JSON.parse(i):i)}catch(e){}Q.set(e,t,n)}else n=void 0;return n}S.extend({hasData:function(e){return Q.hasData(e)||Y.hasData(e)},data:function(e,t,n){return Q.access(e,t,n)},removeData:function(e,t){Q.remove(e,t)},_data:function(e,t,n){return Y.access(e,t,n)},_removeData:function(e,t){Y.remove(e,t)}}),S.fn.extend({data:function(n,e){var t,r,i,o=this[0],a=o&&o.attributes;if(void 0===n){if(this.length&&(i=Q.get(o),1===o.nodeType&&!Y.get(o,"hasDataAttrs"))){t=a.length;while(t--)a[t]&&0===(r=a[t].name).indexOf("data-")&&(r=X(r.slice(5)),Z(o,r,i[r]));Y.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof n?this.each(function(){Q.set(this,n)}):$(this,function(e){var t;if(o&&void 0===e)return void 0!==(t=Q.get(o,n))?t:void 0!==(t=Z(o,n))?t:void 0;this.each(function(){Q.set(this,n,e)})},null,e,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){Q.remove(this,e)})}}),S.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Y.get(e,t),n&&(!r||Array.isArray(n)?r=Y.access(e,t,S.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=S.queue(e,t),r=n.length,i=n.shift(),o=S._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){S.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Y.get(e,n)||Y.access(e,n,{empty:S.Callbacks("once memory").add(function(){Y.remove(e,[t+"queue",n])})})}}),S.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?S.queue(this[0],t):void 0===n?this:this.each(function(){var e=S.queue(this,t,n);S._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&S.dequeue(this,t)})},dequeue:function(e){return this.each(function(){S.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=S.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};"string"!=typeof e&&(t=e,e=void 0),e=e||"fx";while(a--)(n=Y.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),ne=["Top","Right","Bottom","Left"],re=E.documentElement,ie=function(e){return S.contains(e.ownerDocument,e)},oe={composed:!0};re.getRootNode&&(ie=function(e){return S.contains(e.ownerDocument,e)||e.getRootNode(oe)===e.ownerDocument});var ae=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ie(e)&&"none"===S.css(e,"display")};function se(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return S.css(e,t,"")},u=s(),l=n&&n[3]||(S.cssNumber[t]?"":"px"),c=e.nodeType&&(S.cssNumber[t]||"px"!==l&&+u)&&te.exec(S.css(e,t));if(c&&c[3]!==l){u/=2,l=l||c[3],c=+u||1;while(a--)S.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,S.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var ue={};function le(e,t){for(var n,r,i,o,a,s,u,l=[],c=0,f=e.length;c<f;c++)(r=e[c]).style&&(n=r.style.display,t?("none"===n&&(l[c]=Y.get(r,"display")||null,l[c]||(r.style.display="")),""===r.style.display&&ae(r)&&(l[c]=(u=a=o=void 0,a=(i=r).ownerDocument,s=i.nodeName,(u=ue[s])||(o=a.body.appendChild(a.createElement(s)),u=S.css(o,"display"),o.parentNode.removeChild(o),"none"===u&&(u="block"),ue[s]=u)))):"none"!==n&&(l[c]="none",Y.set(r,"display",n)));for(c=0;c<f;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}S.fn.extend({show:function(){return le(this,!0)},hide:function(){return le(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ae(this)?S(this).show():S(this).hide()})}});var ce,fe,pe=/^(?:checkbox|radio)$/i,de=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i;ce=E.createDocumentFragment().appendChild(E.createElement("div")),(fe=E.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ce.appendChild(fe),y.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="<textarea>x</textarea>",y.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="<option></option>",y.option=!!ce.lastChild;var ge={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?S.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;n<r;n++)Y.set(e[n],"globalEval",!t||Y.get(t[n],"globalEval"))}ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td,y.option||(ge.optgroup=ge.option=[1,"<select multiple='multiple'>","</select>"]);var me=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((o=e[d])||0===o)if("object"===w(o))S.merge(p,o.nodeType?[o]:o);else if(me.test(o)){a=a||f.appendChild(t.createElement("div")),s=(de.exec(o)||["",""])[1].toLowerCase(),u=ge[s]||ge._default,a.innerHTML=u[1]+S.htmlPrefilter(o)+u[2],c=u[0];while(c--)a=a.lastChild;S.merge(p,a.childNodes),(a=f.firstChild).textContent=""}else p.push(t.createTextNode(o));f.textContent="",d=0;while(o=p[d++])if(r&&-1<S.inArray(o,r))i&&i.push(o);else if(l=ie(o),a=ve(f.appendChild(o),"script"),l&&ye(a),n){c=0;while(o=a[c++])he.test(o.type||"")&&n.push(o)}return f}var be=/^([^.]*)(?:\.(.+)|)/;function we(){return!0}function Te(){return!1}function Ce(e,t){return e===function(){try{return E.activeElement}catch(e){}}()==("focus"===t)}function Ee(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Ee(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Te;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return S().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=S.guid++)),e.each(function(){S.event.add(this,t,i,r,n)})}function Se(e,i,o){o?(Y.set(e,i,!1),S.event.add(e,i,{namespace:!1,handler:function(e){var t,n,r=Y.get(this,i);if(1&e.isTrigger&&this[i]){if(r.length)(S.event.special[i]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),Y.set(this,i,r),t=o(this,i),this[i](),r!==(n=Y.get(this,i))||t?Y.set(this,i,!1):n={},r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n&&n.value}else r.length&&(Y.set(this,i,{value:S.event.trigger(S.extend(r[0],S.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Y.get(e,i)&&S.event.add(e,i,we)}S.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Y.get(t);if(V(t)){n.handler&&(n=(o=n).handler,i=o.selector),i&&S.find.matchesSelector(re,i),n.guid||(n.guid=S.guid++),(u=v.events)||(u=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(e){return"undefined"!=typeof S&&S.event.triggered!==e.type?S.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(P)||[""]).length;while(l--)d=g=(s=be.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=S.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=S.event.special[d]||{},c=S.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&S.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),S.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Y.hasData(e)&&Y.get(e);if(v&&(u=v.events)){l=(t=(t||"").match(P)||[""]).length;while(l--)if(d=g=(s=be.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=S.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||S.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)S.event.remove(e,d+t[l],n,r,!0);S.isEmptyObject(u)&&Y.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),u=S.event.fix(e),l=(Y.get(this,"events")||Object.create(null))[u.type]||[],c=S.event.special[u.type]||{};for(s[0]=u,t=1;t<arguments.length;t++)s[t]=arguments[t];if(u.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,u)){a=S.event.handlers.call(this,u,l),t=0;while((i=a[t++])&&!u.isPropagationStopped()){u.currentTarget=i.elem,n=0;while((o=i.handlers[n++])&&!u.isImmediatePropagationStopped())u.rnamespace&&!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,void 0!==(r=((S.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&1<=e.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?-1<S(i,this).index(l):S.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(t,e){Object.defineProperty(S.Event.prototype,t,{enumerable:!0,configurable:!0,get:m(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[S.expando]?e:new S.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return pe.test(t.type)&&t.click&&A(t,"input")&&Se(t,"click",we),!1},trigger:function(e){var t=this||e;return pe.test(t.type)&&t.click&&A(t,"input")&&Se(t,"click"),!0},_default:function(e){var t=e.target;return pe.test(t.type)&&t.click&&A(t,"input")&&Y.get(t,"click")||A(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},S.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},S.Event=function(e,t){if(!(this instanceof S.Event))return new S.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?we:Te,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&S.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:Te,isPropagationStopped:Te,isImmediatePropagationStopped:Te,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=we,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=we,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=we,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},S.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},S.event.addProp),S.each({focus:"focusin",blur:"focusout"},function(e,t){S.event.special[e]={setup:function(){return Se(this,e,Ce),!1},trigger:function(){return Se(this,e),!0},_default:function(){return!0},delegateType:t}}),S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){S.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||S.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=i),t}}}),S.fn.extend({on:function(e,t,n,r){return Ee(this,e,t,n,r)},one:function(e,t,n,r){return Ee(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,S(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Te),this.each(function(){S.event.remove(this,e,n,t)})}});var ke=/<script|<style|<link/i,Ae=/checked\s*(?:[^=]|=\s*.checked.)/i,Ne=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function je(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function De(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function qe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Le(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(i in Y.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)S.event.add(t,i,s[i][n]);Q.hasData(e)&&(o=Q.access(e),a=S.extend({},o),Q.set(t,a))}}function He(n,r,i,o){r=g(r);var e,t,a,s,u,l,c=0,f=n.length,p=f-1,d=r[0],h=m(d);if(h||1<f&&"string"==typeof d&&!y.checkClone&&Ae.test(d))return n.each(function(e){var t=n.eq(e);h&&(r[0]=d.call(this,e,t.html())),He(t,r,i,o)});if(f&&(t=(e=xe(r,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=S.map(ve(e,"script"),De)).length;c<f;c++)u=e,c!==p&&(u=S.clone(u,!0,!0),s&&S.merge(a,ve(u,"script"))),i.call(n[c],u,c);if(s)for(l=a[a.length-1].ownerDocument,S.map(a,qe),c=0;c<s;c++)u=a[c],he.test(u.type||"")&&!Y.access(u,"globalEval")&&S.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?S._evalUrl&&!u.noModule&&S._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):b(u.textContent.replace(Ne,""),u,l))}return n}function Oe(e,t,n){for(var r,i=t?S.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||S.cleanData(ve(r)),r.parentNode&&(n&&ie(r)&&ye(ve(r,"script")),r.parentNode.removeChild(r));return e}S.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=ie(e);if(!(y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||S.isXMLDoc(e)))for(a=ve(c),r=0,i=(o=ve(e)).length;r<i;r++)s=o[r],u=a[r],void 0,"input"===(l=u.nodeName.toLowerCase())&&pe.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||ve(e),a=a||ve(c),r=0,i=o.length;r<i;r++)Le(o[r],a[r]);else Le(e,c);return 0<(a=ve(c,"script")).length&&ye(a,!f&&ve(e,"script")),c},cleanData:function(e){for(var t,n,r,i=S.event.special,o=0;void 0!==(n=e[o]);o++)if(V(n)){if(t=n[Y.expando]){if(t.events)for(r in t.events)i[r]?S.event.remove(n,r):S.removeEvent(n,r,t.handle);n[Y.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),S.fn.extend({detach:function(e){return Oe(this,e,!0)},remove:function(e){return Oe(this,e)},text:function(e){return $(this,function(e){return void 0===e?S.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return He(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||je(this,e).appendChild(e)})},prepend:function(){return He(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=je(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return He(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return He(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(S.cleanData(ve(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return S.clone(this,e,t)})},html:function(e){return $(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!ke.test(e)&&!ge[(de.exec(e)||["",""])[1].toLowerCase()]){e=S.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(S.cleanData(ve(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return He(this,arguments,function(e){var t=this.parentNode;S.inArray(this,n)<0&&(S.cleanData(ve(this)),t&&t.replaceChild(e,this))},n)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){S.fn[e]=function(e){for(var t,n=[],r=S(e),i=r.length-1,o=0;o<=i;o++)t=o===i?this:this.clone(!0),S(r[o])[a](t),u.apply(n,t.get());return this.pushStack(n)}});var Pe=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),Re=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=C),t.getComputedStyle(e)},Me=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},Ie=new RegExp(ne.join("|"),"i");function We(e,t,n){var r,i,o,a,s=e.style;return(n=n||Re(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||ie(e)||(a=S.style(e,t)),!y.pixelBoxStyles()&&Pe.test(a)&&Ie.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function Fe(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(l){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",re.appendChild(u).appendChild(l);var e=C.getComputedStyle(l);n="1%"!==e.top,s=12===t(e.marginLeft),l.style.right="60%",o=36===t(e.right),r=36===t(e.width),l.style.position="absolute",i=12===t(l.offsetWidth/3),re.removeChild(u),l=null}}function t(e){return Math.round(parseFloat(e))}var n,r,i,o,a,s,u=E.createElement("div"),l=E.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",y.clearCloneStyle="content-box"===l.style.backgroundClip,S.extend(y,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),s},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,n,r;return null==a&&(e=E.createElement("table"),t=E.createElement("tr"),n=E.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",re.appendChild(e).appendChild(t).appendChild(n),r=C.getComputedStyle(t),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===t.offsetHeight,re.removeChild(e)),a}}))}();var Be=["Webkit","Moz","ms"],$e=E.createElement("div").style,_e={};function ze(e){var t=S.cssProps[e]||_e[e];return t||(e in $e?e:_e[e]=function(e){var t=e[0].toUpperCase()+e.slice(1),n=Be.length;while(n--)if((e=Be[n]+t)in $e)return e}(e)||e)}var Ue=/^(none|table(?!-c[ea]).+)/,Xe=/^--/,Ve={position:"absolute",visibility:"hidden",display:"block"},Ge={letterSpacing:"0",fontWeight:"400"};function Ye(e,t,n){var r=te.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function Qe(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=S.css(e,n+ne[a],!0,i)),r?("content"===n&&(u-=S.css(e,"padding"+ne[a],!0,i)),"margin"!==n&&(u-=S.css(e,"border"+ne[a]+"Width",!0,i))):(u+=S.css(e,"padding"+ne[a],!0,i),"padding"!==n?u+=S.css(e,"border"+ne[a]+"Width",!0,i):s+=S.css(e,"border"+ne[a]+"Width",!0,i));return!r&&0<=o&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u}function Je(e,t,n){var r=Re(e),i=(!y.boxSizingReliable()||n)&&"border-box"===S.css(e,"boxSizing",!1,r),o=i,a=We(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Pe.test(a)){if(!n)return a;a="auto"}return(!y.boxSizingReliable()&&i||!y.reliableTrDimensions()&&A(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===S.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===S.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+Qe(e,t,n||(i?"border":"content"),o,r,a)+"px"}function Ke(e,t,n,r,i){return new Ke.prototype.init(e,t,n,r,i)}S.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=We(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=X(t),u=Xe.test(t),l=e.style;if(u||(t=ze(s)),a=S.cssHooks[t]||S.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=te.exec(n))&&i[1]&&(n=se(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(S.cssNumber[s]?"":"px")),y.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=X(t);return Xe.test(t)||(t=ze(s)),(a=S.cssHooks[t]||S.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=We(e,t,r)),"normal"===i&&t in Ge&&(i=Ge[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),S.each(["height","width"],function(e,u){S.cssHooks[u]={get:function(e,t,n){if(t)return!Ue.test(S.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Je(e,u,n):Me(e,Ve,function(){return Je(e,u,n)})},set:function(e,t,n){var r,i=Re(e),o=!y.scrollboxSize()&&"absolute"===i.position,a=(o||n)&&"border-box"===S.css(e,"boxSizing",!1,i),s=n?Qe(e,u,n,a,i):0;return a&&o&&(s-=Math.ceil(e["offset"+u[0].toUpperCase()+u.slice(1)]-parseFloat(i[u])-Qe(e,u,"border",!1,i)-.5)),s&&(r=te.exec(t))&&"px"!==(r[3]||"px")&&(e.style[u]=t,t=S.css(e,u)),Ye(0,t,s)}}}),S.cssHooks.marginLeft=Fe(y.reliableMarginLeft,function(e,t){if(t)return(parseFloat(We(e,"marginLeft"))||e.getBoundingClientRect().left-Me(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),S.each({margin:"",padding:"",border:"Width"},function(i,o){S.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+ne[t]+o]=r[t]||r[t-2]||r[0];return n}},"margin"!==i&&(S.cssHooks[i+o].set=Ye)}),S.fn.extend({css:function(e,t){return $(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Re(e),i=t.length;a<i;a++)o[t[a]]=S.css(e,t[a],!1,r);return o}return void 0!==n?S.style(e,t,n):S.css(e,t)},e,t,1<arguments.length)}}),((S.Tween=Ke).prototype={constructor:Ke,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||S.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(S.cssNumber[n]?"":"px")},cur:function(){var e=Ke.propHooks[this.prop];return e&&e.get?e.get(this):Ke.propHooks._default.get(this)},run:function(e){var t,n=Ke.propHooks[this.prop];return this.options.duration?this.pos=t=S.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Ke.propHooks._default.set(this),this}}).init.prototype=Ke.prototype,(Ke.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=S.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){S.fx.step[e.prop]?S.fx.step[e.prop](e):1!==e.elem.nodeType||!S.cssHooks[e.prop]&&null==e.elem.style[ze(e.prop)]?e.elem[e.prop]=e.now:S.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=Ke.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},S.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},S.fx=Ke.prototype.init,S.fx.step={};var Ze,et,tt,nt,rt=/^(?:toggle|show|hide)$/,it=/queueHooks$/;function ot(){et&&(!1===E.hidden&&C.requestAnimationFrame?C.requestAnimationFrame(ot):C.setTimeout(ot,S.fx.interval),S.fx.tick())}function at(){return C.setTimeout(function(){Ze=void 0}),Ze=Date.now()}function st(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=ne[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function ut(e,t,n){for(var r,i=(lt.tweeners[t]||[]).concat(lt.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function lt(o,e,t){var n,a,r=0,i=lt.prefilters.length,s=S.Deferred().always(function(){delete u.elem}),u=function(){if(a)return!1;for(var e=Ze||at(),t=Math.max(0,l.startTime+l.duration-e),n=1-(t/l.duration||0),r=0,i=l.tweens.length;r<i;r++)l.tweens[r].run(n);return s.notifyWith(o,[l,n,t]),n<1&&i?t:(i||s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l]),!1)},l=s.promise({elem:o,props:S.extend({},e),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},t),originalProperties:e,originalOptions:t,startTime:Ze||at(),duration:t.duration,tweens:[],createTween:function(e,t){var n=S.Tween(o,l.opts,e,t,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(n),n},stop:function(e){var t=0,n=e?l.tweens.length:0;if(a)return this;for(a=!0;t<n;t++)l.tweens[t].run(1);return e?(s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l,e])):s.rejectWith(o,[l,e]),this}}),c=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=X(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=S.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);r<i;r++)if(n=lt.prefilters[r].call(l,o,c,l.opts))return m(n.stop)&&(S._queueHooks(l.elem,l.opts.queue).stop=n.stop.bind(n)),n;return S.map(c,ut,l),m(l.opts.start)&&l.opts.start.call(o,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),S.fx.timer(S.extend(u,{elem:o,anim:l,queue:l.opts.queue})),l}S.Animation=S.extend(lt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return se(n.elem,e,te.exec(t),n),n}]},tweener:function(e,t){m(e)?(t=e,e=["*"]):e=e.match(P);for(var n,r=0,i=e.length;r<i;r++)n=e[r],lt.tweeners[n]=lt.tweeners[n]||[],lt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&ae(e),v=Y.get(e,"fxshow");for(r in n.queue||(null==(a=S._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,S.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],rt.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}d[r]=v&&v[r]||S.style(e,r)}if((u=!S.isEmptyObject(t))||!S.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=v&&v.display)&&(l=Y.get(e,"display")),"none"===(c=S.css(e,"display"))&&(l?c=l:(le([e],!0),l=e.style.display||l,c=S.css(e,"display"),le([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===S.css(e,"float")&&(u||(p.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,d)u||(v?"hidden"in v&&(g=v.hidden):v=Y.access(e,"fxshow",{display:l}),o&&(v.hidden=!g),g&&le([e],!0),p.done(function(){for(r in g||le([e]),Y.remove(e,"fxshow"),d)S.style(e,r,d[r])})),u=ut(g?v[r]:0,r,p),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?lt.prefilters.unshift(e):lt.prefilters.push(e)}}),S.speed=function(e,t,n){var r=e&&"object"==typeof e?S.extend({},e):{complete:n||!n&&t||m(e)&&e,duration:e,easing:n&&t||t&&!m(t)&&t};return S.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in S.fx.speeds?r.duration=S.fx.speeds[r.duration]:r.duration=S.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){m(r.old)&&r.old.call(this),r.queue&&S.dequeue(this,r.queue)},r},S.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ae).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){var i=S.isEmptyObject(t),o=S.speed(e,n,r),a=function(){var e=lt(this,S.extend({},t),o);(i||Y.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(i,e,o){var a=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof i&&(o=e,e=i,i=void 0),e&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=S.timers,r=Y.get(this);if(t)r[t]&&r[t].stop&&a(r[t]);else for(t in r)r[t]&&r[t].stop&&it.test(t)&&a(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||S.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=Y.get(this),n=t[a+"queue"],r=t[a+"queueHooks"],i=S.timers,o=n?n.length:0;for(t.finish=!0,S.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===a&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),S.each(["toggle","show","hide"],function(e,r){var i=S.fn[r];S.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(st(r,!0),e,t,n)}}),S.each({slideDown:st("show"),slideUp:st("hide"),slideToggle:st("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){S.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),S.timers=[],S.fx.tick=function(){var e,t=0,n=S.timers;for(Ze=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||S.fx.stop(),Ze=void 0},S.fx.timer=function(e){S.timers.push(e),S.fx.start()},S.fx.interval=13,S.fx.start=function(){et||(et=!0,ot())},S.fx.stop=function(){et=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(r,e){return r=S.fx&&S.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=C.setTimeout(e,r);t.stop=function(){C.clearTimeout(n)}})},tt=E.createElement("input"),nt=E.createElement("select").appendChild(E.createElement("option")),tt.type="checkbox",y.checkOn=""!==tt.value,y.optSelected=nt.selected,(tt=E.createElement("input")).value="t",tt.type="radio",y.radioValue="t"===tt.value;var ct,ft=S.expr.attrHandle;S.fn.extend({attr:function(e,t){return $(this,S.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){S.removeAttr(this,e)})}}),S.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?S.prop(e,t,n):(1===o&&S.isXMLDoc(e)||(i=S.attrHooks[t.toLowerCase()]||(S.expr.match.bool.test(t)?ct:void 0)),void 0!==n?null===n?void S.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=S.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!y.radioValue&&"radio"===t&&A(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(P);if(i&&1===e.nodeType)while(n=i[r++])e.removeAttribute(n)}}),ct={set:function(e,t,n){return!1===t?S.removeAttr(e,n):e.setAttribute(n,n),n}},S.each(S.expr.match.bool.source.match(/\w+/g),function(e,t){var a=ft[t]||S.find.attr;ft[t]=function(e,t,n){var r,i,o=t.toLowerCase();return n||(i=ft[o],ft[o]=r,r=null!=a(e,t,n)?o:null,ft[o]=i),r}});var pt=/^(?:input|select|textarea|button)$/i,dt=/^(?:a|area)$/i;function ht(e){return(e.match(P)||[]).join(" ")}function gt(e){return e.getAttribute&&e.getAttribute("class")||""}function vt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(P)||[]}S.fn.extend({prop:function(e,t){return $(this,S.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[S.propFix[e]||e]})}}),S.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&S.isXMLDoc(e)||(t=S.propFix[t]||t,i=S.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=S.find.attr(e,"tabindex");return t?parseInt(t,10):pt.test(e.nodeName)||dt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),y.optSelected||(S.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){S.propFix[this.toLowerCase()]=this}),S.fn.extend({addClass:function(t){var e,n,r,i,o,a,s,u=0;if(m(t))return this.each(function(e){S(this).addClass(t.call(this,e,gt(this)))});if((e=vt(t)).length)while(n=this[u++])if(i=gt(n),r=1===n.nodeType&&" "+ht(i)+" "){a=0;while(o=e[a++])r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=ht(r))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,r,i,o,a,s,u=0;if(m(t))return this.each(function(e){S(this).removeClass(t.call(this,e,gt(this)))});if(!arguments.length)return this.attr("class","");if((e=vt(t)).length)while(n=this[u++])if(i=gt(n),r=1===n.nodeType&&" "+ht(i)+" "){a=0;while(o=e[a++])while(-1<r.indexOf(" "+o+" "))r=r.replace(" "+o+" "," ");i!==(s=ht(r))&&n.setAttribute("class",s)}return this},toggleClass:function(i,t){var o=typeof i,a="string"===o||Array.isArray(i);return"boolean"==typeof t&&a?t?this.addClass(i):this.removeClass(i):m(i)?this.each(function(e){S(this).toggleClass(i.call(this,e,gt(this),t),t)}):this.each(function(){var e,t,n,r;if(a){t=0,n=S(this),r=vt(i);while(e=r[t++])n.hasClass(e)?n.removeClass(e):n.addClass(e)}else void 0!==i&&"boolean"!==o||((e=gt(this))&&Y.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===i?"":Y.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;t=" "+e+" ";while(n=this[r++])if(1===n.nodeType&&-1<(" "+ht(gt(n))+" ").indexOf(t))return!0;return!1}});var yt=/\r/g;S.fn.extend({val:function(n){var r,e,i,t=this[0];return arguments.length?(i=m(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?n.call(this,e,S(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=S.map(t,function(e){return null==e?"":e+""})),(r=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&void 0!==r.set(this,t,"value")||(this.value=t))})):t?(r=S.valHooks[t.type]||S.valHooks[t.nodeName.toLowerCase()])&&"get"in r&&void 0!==(e=r.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(yt,""):null==e?"":e:void 0}}),S.extend({valHooks:{option:{get:function(e){var t=S.find.attr(e,"value");return null!=t?t:ht(S.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!A(n.parentNode,"optgroup"))){if(t=S(n).val(),a)return t;s.push(t)}return s},set:function(e,t){var n,r,i=e.options,o=S.makeArray(t),a=i.length;while(a--)((r=i[a]).selected=-1<S.inArray(S.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),S.each(["radio","checkbox"],function(){S.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<S.inArray(S(e).val(),t)}},y.checkOn||(S.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),y.focusin="onfocusin"in C;var mt=/^(?:focusinfocus|focusoutblur)$/,xt=function(e){e.stopPropagation()};S.extend(S.event,{trigger:function(e,t,n,r){var i,o,a,s,u,l,c,f,p=[n||E],d=v.call(e,"type")?e.type:e,h=v.call(e,"namespace")?e.namespace.split("."):[];if(o=f=a=n=n||E,3!==n.nodeType&&8!==n.nodeType&&!mt.test(d+S.event.triggered)&&(-1<d.indexOf(".")&&(d=(h=d.split(".")).shift(),h.sort()),u=d.indexOf(":")<0&&"on"+d,(e=e[S.expando]?e:new S.Event(d,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:S.makeArray(t,[e]),c=S.event.special[d]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!x(n)){for(s=c.delegateType||d,mt.test(s+d)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(n.ownerDocument||E)&&p.push(a.defaultView||a.parentWindow||C)}i=0;while((o=p[i++])&&!e.isPropagationStopped())f=o,e.type=1<i?s:c.bindType||d,(l=(Y.get(o,"events")||Object.create(null))[e.type]&&Y.get(o,"handle"))&&l.apply(o,t),(l=u&&o[u])&&l.apply&&V(o)&&(e.result=l.apply(o,t),!1===e.result&&e.preventDefault());return e.type=d,r||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(p.pop(),t)||!V(n)||u&&m(n[d])&&!x(n)&&((a=n[u])&&(n[u]=null),S.event.triggered=d,e.isPropagationStopped()&&f.addEventListener(d,xt),n[d](),e.isPropagationStopped()&&f.removeEventListener(d,xt),S.event.triggered=void 0,a&&(n[u]=a)),e.result}},simulate:function(e,t,n){var r=S.extend(new S.Event,n,{type:e,isSimulated:!0});S.event.trigger(r,null,t)}}),S.fn.extend({trigger:function(e,t){return this.each(function(){S.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return S.event.trigger(e,t,n,!0)}}),y.focusin||S.each({focus:"focusin",blur:"focusout"},function(n,r){var i=function(e){S.event.simulate(r,e.target,S.event.fix(e))};S.event.special[r]={setup:function(){var e=this.ownerDocument||this.document||this,t=Y.access(e,r);t||e.addEventListener(n,i,!0),Y.access(e,r,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=Y.access(e,r)-1;t?Y.access(e,r,t):(e.removeEventListener(n,i,!0),Y.remove(e,r))}}});var bt=C.location,wt={guid:Date.now()},Tt=/\?/;S.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new C.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||S.error("Invalid XML: "+(n?S.map(n.childNodes,function(e){return e.textContent}).join("\n"):e)),t};var Ct=/\[\]$/,Et=/\r?\n/g,St=/^(?:submit|button|image|reset|file)$/i,kt=/^(?:input|select|textarea|keygen)/i;function At(n,e,r,i){var t;if(Array.isArray(e))S.each(e,function(e,t){r||Ct.test(n)?i(n,t):At(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==w(e))i(n,e);else for(t in e)At(n+"["+t+"]",e[t],r,i)}S.param=function(e,t){var n,r=[],i=function(e,t){var n=m(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!S.isPlainObject(e))S.each(e,function(){i(this.name,this.value)});else for(n in e)At(n,e[n],t,i);return r.join("&")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=S.prop(this,"elements");return e?S.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!S(this).is(":disabled")&&kt.test(this.nodeName)&&!St.test(e)&&(this.checked||!pe.test(e))}).map(function(e,t){var n=S(this).val();return null==n?null:Array.isArray(n)?S.map(n,function(e){return{name:t.name,value:e.replace(Et,"\r\n")}}):{name:t.name,value:n.replace(Et,"\r\n")}}).get()}});var Nt=/%20/g,jt=/#.*$/,Dt=/([?&])_=[^&]*/,qt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Lt=/^(?:GET|HEAD)$/,Ht=/^\/\//,Ot={},Pt={},Rt="*/".concat("*"),Mt=E.createElement("a");function It(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(P)||[];if(m(t))while(n=i[r++])"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function Wt(t,i,o,a){var s={},u=t===Pt;function l(e){var r;return s[e]=!0,S.each(t[e]||[],function(e,t){var n=t(i,o,a);return"string"!=typeof n||u||s[n]?u?!(r=n):void 0:(i.dataTypes.unshift(n),l(n),!1)}),r}return l(i.dataTypes[0])||!s["*"]&&l("*")}function Ft(e,t){var n,r,i=S.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&S.extend(!0,e,r),e}Mt.href=bt.href,S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:bt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(bt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Rt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ft(Ft(e,S.ajaxSettings),t):Ft(S.ajaxSettings,e)},ajaxPrefilter:It(Ot),ajaxTransport:It(Pt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,f,p,n,d,r,h,g,i,o,v=S.ajaxSetup({},t),y=v.context||v,m=v.context&&(y.nodeType||y.jquery)?S(y):S.event,x=S.Deferred(),b=S.Callbacks("once memory"),w=v.statusCode||{},a={},s={},u="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(h){if(!n){n={};while(t=qt.exec(p))n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2])}t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return h?p:null},setRequestHeader:function(e,t){return null==h&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,a[e]=t),this},overrideMimeType:function(e){return null==h&&(v.mimeType=e),this},statusCode:function(e){var t;if(e)if(h)T.always(e[T.status]);else for(t in e)w[t]=[w[t],e[t]];return this},abort:function(e){var t=e||u;return c&&c.abort(t),l(0,t),this}};if(x.promise(T),v.url=((e||v.url||bt.href)+"").replace(Ht,bt.protocol+"//"),v.type=t.method||t.type||v.method||v.type,v.dataTypes=(v.dataType||"*").toLowerCase().match(P)||[""],null==v.crossDomain){r=E.createElement("a");try{r.href=v.url,r.href=r.href,v.crossDomain=Mt.protocol+"//"+Mt.host!=r.protocol+"//"+r.host}catch(e){v.crossDomain=!0}}if(v.data&&v.processData&&"string"!=typeof v.data&&(v.data=S.param(v.data,v.traditional)),Wt(Ot,v,t,T),h)return T;for(i in(g=S.event&&v.global)&&0==S.active++&&S.event.trigger("ajaxStart"),v.type=v.type.toUpperCase(),v.hasContent=!Lt.test(v.type),f=v.url.replace(jt,""),v.hasContent?v.data&&v.processData&&0===(v.contentType||"").indexOf("application/x-www-form-urlencoded")&&(v.data=v.data.replace(Nt,"+")):(o=v.url.slice(f.length),v.data&&(v.processData||"string"==typeof v.data)&&(f+=(Tt.test(f)?"&":"?")+v.data,delete v.data),!1===v.cache&&(f=f.replace(Dt,"$1"),o=(Tt.test(f)?"&":"?")+"_="+wt.guid+++o),v.url=f+o),v.ifModified&&(S.lastModified[f]&&T.setRequestHeader("If-Modified-Since",S.lastModified[f]),S.etag[f]&&T.setRequestHeader("If-None-Match",S.etag[f])),(v.data&&v.hasContent&&!1!==v.contentType||t.contentType)&&T.setRequestHeader("Content-Type",v.contentType),T.setRequestHeader("Accept",v.dataTypes[0]&&v.accepts[v.dataTypes[0]]?v.accepts[v.dataTypes[0]]+("*"!==v.dataTypes[0]?", "+Rt+"; q=0.01":""):v.accepts["*"]),v.headers)T.setRequestHeader(i,v.headers[i]);if(v.beforeSend&&(!1===v.beforeSend.call(y,T,v)||h))return T.abort();if(u="abort",b.add(v.complete),T.done(v.success),T.fail(v.error),c=Wt(Pt,v,t,T)){if(T.readyState=1,g&&m.trigger("ajaxSend",[T,v]),h)return T;v.async&&0<v.timeout&&(d=C.setTimeout(function(){T.abort("timeout")},v.timeout));try{h=!1,c.send(a,l)}catch(e){if(h)throw e;l(-1,e)}}else l(-1,"No Transport");function l(e,t,n,r){var i,o,a,s,u,l=t;h||(h=!0,d&&C.clearTimeout(d),c=void 0,p=r||"",T.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(s=function(e,t,n){var r,i,o,a,s=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(v,T,n)),!i&&-1<S.inArray("script",v.dataTypes)&&S.inArray("json",v.dataTypes)<0&&(v.converters["text script"]=function(){}),s=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(v,s,T,i),i?(v.ifModified&&((u=T.getResponseHeader("Last-Modified"))&&(S.lastModified[f]=u),(u=T.getResponseHeader("etag"))&&(S.etag[f]=u)),204===e||"HEAD"===v.type?l="nocontent":304===e?l="notmodified":(l=s.state,o=s.data,i=!(a=s.error))):(a=l,!e&&l||(l="error",e<0&&(e=0))),T.status=e,T.statusText=(t||l)+"",i?x.resolveWith(y,[o,l,T]):x.rejectWith(y,[T,l,a]),T.statusCode(w),w=void 0,g&&m.trigger(i?"ajaxSuccess":"ajaxError",[T,v,i?o:a]),b.fireWith(y,[T,l]),g&&(m.trigger("ajaxComplete",[T,v]),--S.active||S.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return S.get(e,t,n,"json")},getScript:function(e,t){return S.get(e,void 0,t,"script")}}),S.each(["get","post"],function(e,i){S[i]=function(e,t,n,r){return m(t)&&(r=r||n,n=t,t=void 0),S.ajax(S.extend({url:e,type:i,dataType:r,data:t,success:n},S.isPlainObject(e)&&e))}}),S.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),S._evalUrl=function(e,t,n){return S.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){S.globalEval(e,t,n)}})},S.fn.extend({wrapAll:function(e){var t;return this[0]&&(m(e)&&(e=e.call(this[0])),t=S(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return m(n)?this.each(function(e){S(this).wrapInner(n.call(this,e))}):this.each(function(){var e=S(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=m(t);return this.each(function(e){S(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){S(this).replaceWith(this.childNodes)}),this}}),S.expr.pseudos.hidden=function(e){return!S.expr.pseudos.visible(e)},S.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},S.ajaxSettings.xhr=function(){try{return new C.XMLHttpRequest}catch(e){}};var Bt={0:200,1223:204},$t=S.ajaxSettings.xhr();y.cors=!!$t&&"withCredentials"in $t,y.ajax=$t=!!$t,S.ajaxTransport(function(i){var o,a;if(y.cors||$t&&!i.crossDomain)return{send:function(e,t){var n,r=i.xhr();if(r.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)r[n]=i.xhrFields[n];for(n in i.mimeType&&r.overrideMimeType&&r.overrideMimeType(i.mimeType),i.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)r.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=a=r.onload=r.onerror=r.onabort=r.ontimeout=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?t(0,"error"):t(r.status,r.statusText):t(Bt[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=o(),a=r.onerror=r.ontimeout=o("error"),void 0!==r.onabort?r.onabort=a:r.onreadystatechange=function(){4===r.readyState&&C.setTimeout(function(){o&&a()})},o=o("abort");try{r.send(i.hasContent&&i.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),S.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),S.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return S.globalEval(e),e}}}),S.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),S.ajaxTransport("script",function(n){var r,i;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){r=S("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var _t,zt=[],Ut=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=zt.pop()||S.expando+"_"+wt.guid++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Ut.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ut.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Ut,"$1"+r):!1!==e.jsonp&&(e.url+=(Tt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||S.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?S(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,zt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((_t=E.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===_t.childNodes.length),S.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=N.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&S(o).remove(),S.merge([],i.childNodes)));var r,i,o},S.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1<s&&(r=ht(e.slice(s)),e=e.slice(0,s)),m(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<a.length&&S.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?S("<div>").append(S.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=S.css(e,"position"),c=S(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=S.css(e,"top"),u=S.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,S.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===S.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===S.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),i.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-S.css(r,"marginTop",!0),left:t.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===S.css(e,"position"))e=e.offsetParent;return e||re})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;S.fn[t]=function(e){return $(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),S.each(["top","left"],function(e,n){S.cssHooks[n]=Fe(y.pixelPosition,function(e,t){if(t)return t=We(e,n),Pe.test(t)?S(e).position()[n]+"px":t})}),S.each({Height:"height",Width:"width"},function(a,s){S.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){S.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return $(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?S.css(e,t,i):S.style(e,t,n,i)},s,n?e:void 0,n)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){S.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}});var Xt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;S.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),m(e))return r=s.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(s.call(arguments)))}).guid=e.guid=e.guid||S.guid++,i},S.holdReady=function(e){e?S.readyWait++:S.ready(!0)},S.isArray=Array.isArray,S.parseJSON=JSON.parse,S.nodeName=A,S.isFunction=m,S.isWindow=x,S.camelCase=X,S.type=w,S.now=Date.now,S.isNumeric=function(e){var t=S.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},S.trim=function(e){return null==e?"":(e+"").replace(Xt,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return S});var Vt=C.jQuery,Gt=C.$;return S.noConflict=function(e){return C.$===S&&(C.$=Gt),e&&C.jQuery===S&&(C.jQuery=Vt),S},"undefined"==typeof e&&(C.jQuery=C.$=S),S});
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/jquery-ui.min.js.download
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/jquery-ui.min.js.download	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/jquery-ui.min.js.download	(revision 38779)
@@ -0,0 +1,6 @@
+/*! jQuery UI - v1.13.0 - 2021-12-17
+* http://jqueryui.com
+* Includes: widget.js, position.js, data.js, disable-selection.js, focusable.js, form-reset-mixin.js, jquery-patch.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/draggable.js, widgets/droppable.js, widgets/resizable.js, widgets/selectable.js, widgets/sortable.js, widgets/accordion.js, widgets/autocomplete.js, widgets/button.js, widgets/checkboxradio.js, widgets/controlgroup.js, widgets/datepicker.js, widgets/dialog.js, widgets/menu.js, widgets/mouse.js, widgets/progressbar.js, widgets/selectmenu.js, widgets/slider.js, widgets/spinner.js, widgets/tabs.js, widgets/tooltip.js, effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-size.js, effects/effect-slide.js, effects/effect-transfer.js
+* Copyright jQuery Foundation and other contributors; Licensed MIT */
+
+!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(V){"use strict";V.ui=V.ui||{};V.ui.version="1.13.0";var n,i=0,a=Array.prototype.hasOwnProperty,r=Array.prototype.slice;V.cleanData=(n=V.cleanData,function(t){for(var e,i,s=0;null!=(i=t[s]);s++)(e=V._data(i,"events"))&&e.remove&&V(i).triggerHandler("remove");n(t)}),V.widget=function(t,i,e){var s,n,o,a={},r=t.split(".")[0],l=r+"-"+(t=t.split(".")[1]);return e||(e=i,i=V.Widget),Array.isArray(e)&&(e=V.extend.apply(null,[{}].concat(e))),V.expr.pseudos[l.toLowerCase()]=function(t){return!!V.data(t,l)},V[r]=V[r]||{},s=V[r][t],n=V[r][t]=function(t,e){if(!this._createWidget)return new n(t,e);arguments.length&&this._createWidget(t,e)},V.extend(n,s,{version:e.version,_proto:V.extend({},e),_childConstructors:[]}),(o=new i).options=V.widget.extend({},o.options),V.each(e,function(e,s){function n(){return i.prototype[e].apply(this,arguments)}function o(t){return i.prototype[e].apply(this,t)}a[e]="function"==typeof s?function(){var t,e=this._super,i=this._superApply;return this._super=n,this._superApply=o,t=s.apply(this,arguments),this._super=e,this._superApply=i,t}:s}),n.prototype=V.widget.extend(o,{widgetEventPrefix:s&&o.widgetEventPrefix||t},a,{constructor:n,namespace:r,widgetName:t,widgetFullName:l}),s?(V.each(s._childConstructors,function(t,e){var i=e.prototype;V.widget(i.namespace+"."+i.widgetName,n,e._proto)}),delete s._childConstructors):i._childConstructors.push(n),V.widget.bridge(t,n),n},V.widget.extend=function(t){for(var e,i,s=r.call(arguments,1),n=0,o=s.length;n<o;n++)for(e in s[n])i=s[n][e],a.call(s[n],e)&&void 0!==i&&(V.isPlainObject(i)?t[e]=V.isPlainObject(t[e])?V.widget.extend({},t[e],i):V.widget.extend({},i):t[e]=i);return t},V.widget.bridge=function(o,e){var a=e.prototype.widgetFullName||o;V.fn[o]=function(i){var t="string"==typeof i,s=r.call(arguments,1),n=this;return t?this.length||"instance"!==i?this.each(function(){var t,e=V.data(this,a);return"instance"===i?(n=e,!1):e?"function"!=typeof e[i]||"_"===i.charAt(0)?V.error("no such method '"+i+"' for "+o+" widget instance"):(t=e[i].apply(e,s))!==e&&void 0!==t?(n=t&&t.jquery?n.pushStack(t.get()):t,!1):void 0:V.error("cannot call methods on "+o+" prior to initialization; attempted to call method '"+i+"'")}):n=void 0:(s.length&&(i=V.widget.extend.apply(null,[i].concat(s))),this.each(function(){var t=V.data(this,a);t?(t.option(i||{}),t._init&&t._init()):V.data(this,a,new e(i,this))})),n}},V.Widget=function(){},V.Widget._childConstructors=[],V.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=V(e||this.defaultElement||this)[0],this.element=V(e),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=V(),this.hoverable=V(),this.focusable=V(),this.classesElementLookup={},e!==this&&(V.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=V(e.style?e.ownerDocument:e.document||e),this.window=V(this.document[0].defaultView||this.document[0].parentWindow)),this.options=V.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:V.noop,_create:V.noop,_init:V.noop,destroy:function(){var i=this;this._destroy(),V.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:V.noop,widget:function(){return this.element},option:function(t,e){var i,s,n,o=t;if(0===arguments.length)return V.widget.extend({},this.options);if("string"==typeof t)if(o={},t=(i=t.split(".")).shift(),i.length){for(s=o[t]=V.widget.extend({},this.options[t]),n=0;n<i.length-1;n++)s[i[n]]=s[i[n]]||{},s=s[i[n]];if(t=i.pop(),1===arguments.length)return void 0===s[t]?null:s[t];s[t]=e}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];o[t]=e}return this._setOptions(o),this},_setOptions:function(t){for(var e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(t){var e,i,s;for(e in t)s=this.classesElementLookup[e],t[e]!==this.options.classes[e]&&s&&s.length&&(i=V(s.get()),this._removeClass(s,e),i.addClass(this._classes({element:i,keys:e,classes:t,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(n){var o=[],a=this;function t(t,e){for(var i,s=0;s<t.length;s++)i=a.classesElementLookup[t[s]]||V(),i=n.add?(n.element.each(function(t,e){V.map(a.classesElementLookup,function(t){return t}).some(function(t){return t.is(e)})||a._on(V(e),{remove:"_untrackClassesElement"})}),V(V.uniqueSort(i.get().concat(n.element.get())))):V(i.not(n.element).get()),a.classesElementLookup[t[s]]=i,o.push(t[s]),e&&n.classes[t[s]]&&o.push(n.classes[t[s]])}return(n=V.extend({element:this.element,classes:this.options.classes||{}},n)).keys&&t(n.keys.match(/\S+/g)||[],!0),n.extra&&t(n.extra.match(/\S+/g)||[]),o.join(" ")},_untrackClassesElement:function(i){var s=this;V.each(s.classesElementLookup,function(t,e){-1!==V.inArray(i.target,e)&&(s.classesElementLookup[t]=V(e.not(i.target).get()))}),this._off(V(i.target))},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,s){var n="string"==typeof t||null===t,i={extra:n?e:i,keys:n?t:e,element:n?this.element:t,add:s="boolean"==typeof s?s:i};return i.element.toggleClass(this._classes(i),s),this},_on:function(n,o,t){var a,r=this;"boolean"!=typeof n&&(t=o,o=n,n=!1),t?(o=a=V(o),this.bindings=this.bindings.add(o)):(t=o,o=this.element,a=this.widget()),V.each(t,function(t,e){function i(){if(n||!0!==r.options.disabled&&!V(this).hasClass("ui-state-disabled"))return("string"==typeof e?r[e]:e).apply(r,arguments)}"string"!=typeof e&&(i.guid=e.guid=e.guid||i.guid||V.guid++);var s=t.match(/^([\w:-]*)\s*(.*)$/),t=s[1]+r.eventNamespace,s=s[2];s?a.on(t,s,i):o.on(t,i)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(e),this.bindings=V(this.bindings.not(t).get()),this.focusable=V(this.focusable.not(t).get()),this.hoverable=V(this.hoverable.not(t).get())},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(V(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(V(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(V(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(V(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,e,i){var s,n,o=this.options[t];if(i=i||{},(e=V.Event(e)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),e.target=this.element[0],n=e.originalEvent)for(s in n)s in e||(e[s]=n[s]);return this.element.trigger(e,i),!("function"==typeof o&&!1===o.apply(this.element[0],[e].concat(i))||e.isDefaultPrevented())}},V.each({show:"fadeIn",hide:"fadeOut"},function(o,a){V.Widget.prototype["_"+o]=function(e,t,i){var s,n=(t="string"==typeof t?{effect:t}:t)?!0!==t&&"number"!=typeof t&&t.effect||a:o;"number"==typeof(t=t||{})?t={duration:t}:!0===t&&(t={}),s=!V.isEmptyObject(t),t.complete=i,t.delay&&e.delay(t.delay),s&&V.effects&&V.effects.effect[n]?e[o](t):n!==o&&e[n]?e[n](t.duration,t.easing,i):e.queue(function(t){V(this)[o](),i&&i.call(e[0]),t()})}});var s,x,k,o,l,h,c,u,C;V.widget;function D(t,e,i){return[parseFloat(t[0])*(u.test(t[0])?e/100:1),parseFloat(t[1])*(u.test(t[1])?i/100:1)]}function I(t,e){return parseInt(V.css(t,e),10)||0}function T(t){return null!=t&&t===t.window}x=Math.max,k=Math.abs,o=/left|center|right/,l=/top|center|bottom/,h=/[\+\-]\d+(\.[\d]+)?%?/,c=/^\w+/,u=/%$/,C=V.fn.position,V.position={scrollbarWidth:function(){if(void 0!==s)return s;var t,e=V("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>"),i=e.children()[0];return V("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),s=t-i},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.width<t.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&t.height<t.element[0].scrollHeight?V.position.scrollbarWidth():0,height:e?V.position.scrollbarWidth():0}},getWithinInfo:function(t){var e=V(t||window),i=T(e[0]),s=!!e[0]&&9===e[0].nodeType;return{element:e,isWindow:i,isDocument:s,offset:!i&&!s?V(t).offset():{left:0,top:0},scrollLeft:e.scrollLeft(),scrollTop:e.scrollTop(),width:e.outerWidth(),height:e.outerHeight()}}},V.fn.position=function(u){if(!u||!u.of)return C.apply(this,arguments);var d,p,f,g,m,t,_="string"==typeof(u=V.extend({},u)).of?V(document).find(u.of):V(u.of),v=V.position.getWithinInfo(u.within),b=V.position.getScrollInfo(v),y=(u.collision||"flip").split(" "),w={},e=9===(t=(e=_)[0]).nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:T(t)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:t.preventDefault?{width:0,height:0,offset:{top:t.pageY,left:t.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()};return _[0].preventDefault&&(u.at="left top"),p=e.width,f=e.height,m=V.extend({},g=e.offset),V.each(["my","at"],function(){var t,e,i=(u[this]||"").split(" ");(i=1===i.length?o.test(i[0])?i.concat(["center"]):l.test(i[0])?["center"].concat(i):["center","center"]:i)[0]=o.test(i[0])?i[0]:"center",i[1]=l.test(i[1])?i[1]:"center",t=h.exec(i[0]),e=h.exec(i[1]),w[this]=[t?t[0]:0,e?e[0]:0],u[this]=[c.exec(i[0])[0],c.exec(i[1])[0]]}),1===y.length&&(y[1]=y[0]),"right"===u.at[0]?m.left+=p:"center"===u.at[0]&&(m.left+=p/2),"bottom"===u.at[1]?m.top+=f:"center"===u.at[1]&&(m.top+=f/2),d=D(w.at,p,f),m.left+=d[0],m.top+=d[1],this.each(function(){var i,t,a=V(this),r=a.outerWidth(),l=a.outerHeight(),e=I(this,"marginLeft"),s=I(this,"marginTop"),n=r+e+I(this,"marginRight")+b.width,o=l+s+I(this,"marginBottom")+b.height,h=V.extend({},m),c=D(w.my,a.outerWidth(),a.outerHeight());"right"===u.my[0]?h.left-=r:"center"===u.my[0]&&(h.left-=r/2),"bottom"===u.my[1]?h.top-=l:"center"===u.my[1]&&(h.top-=l/2),h.left+=c[0],h.top+=c[1],i={marginLeft:e,marginTop:s},V.each(["left","top"],function(t,e){V.ui.position[y[t]]&&V.ui.position[y[t]][e](h,{targetWidth:p,targetHeight:f,elemWidth:r,elemHeight:l,collisionPosition:i,collisionWidth:n,collisionHeight:o,offset:[d[0]+c[0],d[1]+c[1]],my:u.my,at:u.at,within:v,elem:a})}),u.using&&(t=function(t){var e=g.left-h.left,i=e+p-r,s=g.top-h.top,n=s+f-l,o={target:{element:_,left:g.left,top:g.top,width:p,height:f},element:{element:a,left:h.left,top:h.top,width:r,height:l},horizontal:i<0?"left":0<e?"right":"center",vertical:n<0?"top":0<s?"bottom":"middle"};p<r&&k(e+i)<p&&(o.horizontal="center"),f<l&&k(s+n)<f&&(o.vertical="middle"),x(k(e),k(i))>x(k(s),k(n))?o.important="horizontal":o.important="vertical",u.using.call(this,t,o)}),a.offset(V.extend(h,{using:t}))})},V.ui.position={fit:{left:function(t,e){var i=e.within,s=i.isWindow?i.scrollLeft:i.offset.left,n=i.width,o=t.left-e.collisionPosition.marginLeft,a=s-o,r=o+e.collisionWidth-n-s;e.collisionWidth>n?0<a&&r<=0?(i=t.left+a+e.collisionWidth-n-s,t.left+=a-i):t.left=!(0<r&&a<=0)&&r<a?s+n-e.collisionWidth:s:0<a?t.left+=a:0<r?t.left-=r:t.left=x(t.left-o,t.left)},top:function(t,e){var i=e.within,s=i.isWindow?i.scrollTop:i.offset.top,n=e.within.height,o=t.top-e.collisionPosition.marginTop,a=s-o,r=o+e.collisionHeight-n-s;e.collisionHeight>n?0<a&&r<=0?(i=t.top+a+e.collisionHeight-n-s,t.top+=a-i):t.top=!(0<r&&a<=0)&&r<a?s+n-e.collisionHeight:s:0<a?t.top+=a:0<r?t.top-=r:t.top=x(t.top-o,t.top)}},flip:{left:function(t,e){var i=e.within,s=i.offset.left+i.scrollLeft,n=i.width,o=i.isWindow?i.scrollLeft:i.offset.left,a=t.left-e.collisionPosition.marginLeft,r=a-o,l=a+e.collisionWidth-n-o,h="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,i="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,a=-2*e.offset[0];r<0?((s=t.left+h+i+a+e.collisionWidth-n-s)<0||s<k(r))&&(t.left+=h+i+a):0<l&&(0<(o=t.left-e.collisionPosition.marginLeft+h+i+a-o)||k(o)<l)&&(t.left+=h+i+a)},top:function(t,e){var i=e.within,s=i.offset.top+i.scrollTop,n=i.height,o=i.isWindow?i.scrollTop:i.offset.top,a=t.top-e.collisionPosition.marginTop,r=a-o,l=a+e.collisionHeight-n-o,h="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,i="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,a=-2*e.offset[1];r<0?((s=t.top+h+i+a+e.collisionHeight-n-s)<0||s<k(r))&&(t.top+=h+i+a):0<l&&(0<(o=t.top-e.collisionPosition.marginTop+h+i+a-o)||k(o)<l)&&(t.top+=h+i+a)}},flipfit:{left:function(){V.ui.position.flip.left.apply(this,arguments),V.ui.position.fit.left.apply(this,arguments)},top:function(){V.ui.position.flip.top.apply(this,arguments),V.ui.position.fit.top.apply(this,arguments)}}};var t;V.ui.position,V.extend(V.expr.pseudos,{data:V.expr.createPseudo?V.expr.createPseudo(function(e){return function(t){return!!V.data(t,e)}}):function(t,e,i){return!!V.data(t,i[3])}}),V.fn.extend({disableSelection:(t="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(t+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}});V.ui.focusable=function(t,e){var i,s,n,o,a=t.nodeName.toLowerCase();return"area"===a?(s=(i=t.parentNode).name,!(!t.href||!s||"map"!==i.nodeName.toLowerCase())&&(0<(s=V("img[usemap='#"+s+"']")).length&&s.is(":visible"))):(/^(input|select|textarea|button|object)$/.test(a)?(n=!t.disabled)&&(o=V(t).closest("fieldset")[0])&&(n=!o.disabled):n="a"===a&&t.href||e,n&&V(t).is(":visible")&&function(t){var e=t.css("visibility");for(;"inherit"===e;)t=t.parent(),e=t.css("visibility");return"visible"===e}(V(t)))},V.extend(V.expr.pseudos,{focusable:function(t){return V.ui.focusable(t,null!=V.attr(t,"tabindex"))}});var e,d;V.ui.focusable,V.fn._form=function(){return"string"==typeof this[0].form?this.closest("form"):V(this[0].form)},V.ui.formResetMixin={_formResetHandler:function(){var e=V(this);setTimeout(function(){var t=e.data("ui-form-reset-instances");V.each(t,function(){this.refresh()})})},_bindFormResetHandler:function(){var t;this.form=this.element._form(),this.form.length&&((t=this.form.data("ui-form-reset-instances")||[]).length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t))},_unbindFormResetHandler:function(){var t;this.form.length&&((t=this.form.data("ui-form-reset-instances")).splice(V.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset"))}};V.expr.pseudos||(V.expr.pseudos=V.expr[":"]),V.uniqueSort||(V.uniqueSort=V.unique),V.escapeSelector||(e=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,d=function(t,e){return e?"\0"===t?"ï¿œ":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},V.escapeSelector=function(t){return(t+"").replace(e,d)}),V.fn.even&&V.fn.odd||V.fn.extend({even:function(){return this.filter(function(t){return t%2==0})},odd:function(){return this.filter(function(t){return t%2==1})}});V.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},V.fn.labels=function(){var t,e,i;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(e=this.eq(0).parents("label"),(t=this.attr("id"))&&(i=(i=this.eq(0).parents().last()).add((i.length?i:this).siblings()),t="label[for='"+V.escapeSelector(t)+"']",e=e.add(i.find(t).addBack(t))),this.pushStack(e)):this.pushStack([])},V.fn.scrollParent=function(t){var e=this.css("position"),i="absolute"===e,s=t?/(auto|scroll|hidden)/:/(auto|scroll)/,t=this.parents().filter(function(){var t=V(this);return(!i||"static"!==t.css("position"))&&s.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==e&&t.length?t:V(this[0].ownerDocument||document)},V.extend(V.expr.pseudos,{tabbable:function(t){var e=V.attr(t,"tabindex"),i=null!=e;return(!i||0<=e)&&V.ui.focusable(t,i)}}),V.fn.extend({uniqueId:(p=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++p)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&V(this).removeAttr("id")})}}),V.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());var p,f=!1;V(document).on("mouseup",function(){f=!1});V.widget("ui.mouse",{version:"1.13.0",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).on("click."+this.widgetName,function(t){if(!0===V.data(t.target,e.widgetName+".preventClickEvent"))return V.removeData(t.target,e.widgetName+".preventClickEvent"),t.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(t){if(!f){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(t),this._mouseDownEvent=t;var e=this,i=1===t.which,s=!("string"!=typeof this.options.cancel||!t.target.nodeName)&&V(t.target).closest(this.options.cancel).length;return i&&!s&&this._mouseCapture(t)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){e.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(t),!this._mouseStarted)?(t.preventDefault(),!0):(!0===V.data(t.target,this.widgetName+".preventClickEvent")&&V.removeData(t.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return e._mouseMove(t)},this._mouseUpDelegate=function(t){return e._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),t.preventDefault(),f=!0)):!0}},_mouseMove:function(t){if(this._mouseMoved){if(V.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&V.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,f=!1,t.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),V.ui.plugin={add:function(t,e,i){var s,n=V.ui[t].prototype;for(s in i)n.plugins[s]=n.plugins[s]||[],n.plugins[s].push([e,i[s]])},call:function(t,e,i,s){var n,o=t.plugins[e];if(o&&(s||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(n=0;n<o.length;n++)t.options[o[n][0]]&&o[n][1].apply(t.element,i)}},V.ui.safeActiveElement=function(e){var i;try{i=e.activeElement}catch(t){i=e.body}return i=!(i=i||e.body).nodeName?e.body:i},V.ui.safeBlur=function(t){t&&"body"!==t.nodeName.toLowerCase()&&V(t).trigger("blur")};V.widget("ui.draggable",V.ui.mouse,{version:"1.13.0",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(t){var e=this.options;return!(this.helper||e.disabled||0<V(t.target).closest(".ui-resizable-handle").length)&&(this.handle=this._getHandle(t),!!this.handle&&(this._blurActiveElement(t),this._blockFrames(!0===e.iframeFix?"iframe":e.iframeFix),!0))},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map(function(){var t=V(this);return V("<div>").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var e=V.ui.safeActiveElement(this.document[0]);V(t.target).closest(e).length||V.ui.safeBlur(e)},_mouseStart:function(t){var e=this.options;return this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),V.ui.ddmanager&&(V.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=0<this.helper.parents().filter(function(){return"fixed"===V(this).css("position")}).length,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,e.cursorAt&&this._adjustOffsetFromHelper(e.cursorAt),this._setContainment(),!1===this._trigger("start",t)?(this._clear(),!1):(this._cacheHelperProportions(),V.ui.ddmanager&&!e.dropBehaviour&&V.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),V.ui.ddmanager&&V.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(t,e){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!e){e=this._uiHash();if(!1===this._trigger("drag",t,e))return this._mouseUp(new V.Event("mouseup",t)),!1;this.position=e.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",V.ui.ddmanager&&V.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var e=this,i=!1;return V.ui.ddmanager&&!this.options.dropBehaviour&&(i=V.ui.ddmanager.drop(this,t)),this.dropped&&(i=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!i||"valid"===this.options.revert&&i||!0===this.options.revert||"function"==typeof this.options.revert&&this.options.revert.call(this.element,i)?V(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==e._trigger("stop",t)&&e._clear()}):!1!==this._trigger("stop",t)&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),V.ui.ddmanager&&V.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),V.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new V.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!V(t.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(t){var e=this.options,i="function"==typeof e.helper,t=i?V(e.helper.apply(this.element[0],[t])):"clone"===e.helper?this.element.clone().removeAttr("id"):this.element;return t.parents("body").length||t.appendTo("parent"===e.appendTo?this.element[0].parentNode:e.appendTo),i&&t[0]===this.element[0]&&this._setPositionRelative(),t[0]===this.element[0]||/(fixed|absolute)/.test(t.css("position"))||t.css("position","absolute"),t},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),"left"in(t=Array.isArray(t)?{left:+t[0],top:+t[1]||0}:t)&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),e=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==e&&V.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),{top:(t=this._isRootNode(this.offsetParent[0])?{top:0,left:0}:t).top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.element.position(),e=this._isRootNode(this.scrollParent[0]);return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,e,i,s=this.options,n=this.document[0];this.relativeContainer=null,s.containment?"window"!==s.containment?"document"!==s.containment?s.containment.constructor!==Array?("parent"===s.containment&&(s.containment=this.helper[0].parentNode),(i=(e=V(s.containment))[0])&&(t=/(scroll|auto)/.test(e.css("overflow")),this.containment=[(parseInt(e.css("borderLeftWidth"),10)||0)+(parseInt(e.css("paddingLeft"),10)||0),(parseInt(e.css("borderTopWidth"),10)||0)+(parseInt(e.css("paddingTop"),10)||0),(t?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(e.css("borderRightWidth"),10)||0)-(parseInt(e.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(e.css("borderBottomWidth"),10)||0)-(parseInt(e.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=e)):this.containment=s.containment:this.containment=[0,0,V(n).width()-this.helperProportions.width-this.margins.left,(V(n).height()||n.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=[V(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,V(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,V(window).scrollLeft()+V(window).width()-this.helperProportions.width-this.margins.left,V(window).scrollTop()+(V(window).height()||n.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(t,e){e=e||this.position;var i="absolute"===t?1:-1,t=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:t?0:this.offset.scroll.top)*i,left:e.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:t?0:this.offset.scroll.left)*i}},_generatePosition:function(t,e){var i,s=this.options,n=this._isRootNode(this.scrollParent[0]),o=t.pageX,a=t.pageY;return n&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(i=this.relativeContainer?(i=this.relativeContainer.offset(),[this.containment[0]+i.left,this.containment[1]+i.top,this.containment[2]+i.left,this.containment[3]+i.top]):this.containment,t.pageX-this.offset.click.left<i[0]&&(o=i[0]+this.offset.click.left),t.pageY-this.offset.click.top<i[1]&&(a=i[1]+this.offset.click.top),t.pageX-this.offset.click.left>i[2]&&(o=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>i[3]&&(a=i[3]+this.offset.click.top)),s.grid&&(t=s.grid[1]?this.originalPageY+Math.round((a-this.originalPageY)/s.grid[1])*s.grid[1]:this.originalPageY,a=!i||t-this.offset.click.top>=i[1]||t-this.offset.click.top>i[3]?t:t-this.offset.click.top>=i[1]?t-s.grid[1]:t+s.grid[1],t=s.grid[0]?this.originalPageX+Math.round((o-this.originalPageX)/s.grid[0])*s.grid[0]:this.originalPageX,o=!i||t-this.offset.click.left>=i[0]||t-this.offset.click.left>i[2]?t:t-this.offset.click.left>=i[0]?t-s.grid[0]:t+s.grid[0]),"y"===s.axis&&(o=this.originalPageX),"x"===s.axis&&(a=this.originalPageY)),{top:a-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:n?0:this.offset.scroll.top),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:n?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(t,e,i){return i=i||this._uiHash(),V.ui.plugin.call(this,t,[e,i,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),i.offset=this.positionAbs),V.Widget.prototype._trigger.call(this,t,e,i)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),V.ui.plugin.add("draggable","connectToSortable",{start:function(e,t,i){var s=V.extend({},t,{item:i.element});i.sortables=[],V(i.options.connectToSortable).each(function(){var t=V(this).sortable("instance");t&&!t.options.disabled&&(i.sortables.push(t),t.refreshPositions(),t._trigger("activate",e,s))})},stop:function(e,t,i){var s=V.extend({},t,{item:i.element});i.cancelHelperRemoval=!1,V.each(i.sortables,function(){var t=this;t.isOver?(t.isOver=0,i.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,s))})},drag:function(i,s,n){V.each(n.sortables,function(){var t=!1,e=this;e.positionAbs=n.positionAbs,e.helperProportions=n.helperProportions,e.offset.click=n.offset.click,e._intersectsWith(e.containerCache)&&(t=!0,V.each(n.sortables,function(){return this.positionAbs=n.positionAbs,this.helperProportions=n.helperProportions,this.offset.click=n.offset.click,t=this!==e&&this._intersectsWith(this.containerCache)&&V.contains(e.element[0],this.element[0])?!1:t})),t?(e.isOver||(e.isOver=1,n._parent=s.helper.parent(),e.currentItem=s.helper.appendTo(e.element).data("ui-sortable-item",!0),e.options._helper=e.options.helper,e.options.helper=function(){return s.helper[0]},i.target=e.currentItem[0],e._mouseCapture(i,!0),e._mouseStart(i,!0,!0),e.offset.click.top=n.offset.click.top,e.offset.click.left=n.offset.click.left,e.offset.parent.left-=n.offset.parent.left-e.offset.parent.left,e.offset.parent.top-=n.offset.parent.top-e.offset.parent.top,n._trigger("toSortable",i),n.dropped=e.element,V.each(n.sortables,function(){this.refreshPositions()}),n.currentItem=n.element,e.fromOutside=n),e.currentItem&&(e._mouseDrag(i),s.position=e.position)):e.isOver&&(e.isOver=0,e.cancelHelperRemoval=!0,e.options._revert=e.options.revert,e.options.revert=!1,e._trigger("out",i,e._uiHash(e)),e._mouseStop(i,!0),e.options.revert=e.options._revert,e.options.helper=e.options._helper,e.placeholder&&e.placeholder.remove(),s.helper.appendTo(n._parent),n._refreshOffsets(i),s.position=n._generatePosition(i,!0),n._trigger("fromSortable",i),n.dropped=!1,V.each(n.sortables,function(){this.refreshPositions()}))})}}),V.ui.plugin.add("draggable","cursor",{start:function(t,e,i){var s=V("body"),i=i.options;s.css("cursor")&&(i._cursor=s.css("cursor")),s.css("cursor",i.cursor)},stop:function(t,e,i){i=i.options;i._cursor&&V("body").css("cursor",i._cursor)}}),V.ui.plugin.add("draggable","opacity",{start:function(t,e,i){e=V(e.helper),i=i.options;e.css("opacity")&&(i._opacity=e.css("opacity")),e.css("opacity",i.opacity)},stop:function(t,e,i){i=i.options;i._opacity&&V(e.helper).css("opacity",i._opacity)}}),V.ui.plugin.add("draggable","scroll",{start:function(t,e,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(t,e,i){var s=i.options,n=!1,o=i.scrollParentNotHidden[0],a=i.document[0];o!==a&&"HTML"!==o.tagName?(s.axis&&"x"===s.axis||(i.overflowOffset.top+o.offsetHeight-t.pageY<s.scrollSensitivity?o.scrollTop=n=o.scrollTop+s.scrollSpeed:t.pageY-i.overflowOffset.top<s.scrollSensitivity&&(o.scrollTop=n=o.scrollTop-s.scrollSpeed)),s.axis&&"y"===s.axis||(i.overflowOffset.left+o.offsetWidth-t.pageX<s.scrollSensitivity?o.scrollLeft=n=o.scrollLeft+s.scrollSpeed:t.pageX-i.overflowOffset.left<s.scrollSensitivity&&(o.scrollLeft=n=o.scrollLeft-s.scrollSpeed))):(s.axis&&"x"===s.axis||(t.pageY-V(a).scrollTop()<s.scrollSensitivity?n=V(a).scrollTop(V(a).scrollTop()-s.scrollSpeed):V(window).height()-(t.pageY-V(a).scrollTop())<s.scrollSensitivity&&(n=V(a).scrollTop(V(a).scrollTop()+s.scrollSpeed))),s.axis&&"y"===s.axis||(t.pageX-V(a).scrollLeft()<s.scrollSensitivity?n=V(a).scrollLeft(V(a).scrollLeft()-s.scrollSpeed):V(window).width()-(t.pageX-V(a).scrollLeft())<s.scrollSensitivity&&(n=V(a).scrollLeft(V(a).scrollLeft()+s.scrollSpeed)))),!1!==n&&V.ui.ddmanager&&!s.dropBehaviour&&V.ui.ddmanager.prepareOffsets(i,t)}}),V.ui.plugin.add("draggable","snap",{start:function(t,e,i){var s=i.options;i.snapElements=[],V(s.snap.constructor!==String?s.snap.items||":data(ui-draggable)":s.snap).each(function(){var t=V(this),e=t.offset();this!==i.element[0]&&i.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:e.top,left:e.left})})},drag:function(t,e,i){for(var s,n,o,a,r,l,h,c,u,d=i.options,p=d.snapTolerance,f=e.offset.left,g=f+i.helperProportions.width,m=e.offset.top,_=m+i.helperProportions.height,v=i.snapElements.length-1;0<=v;v--)l=(r=i.snapElements[v].left-i.margins.left)+i.snapElements[v].width,c=(h=i.snapElements[v].top-i.margins.top)+i.snapElements[v].height,g<r-p||l+p<f||_<h-p||c+p<m||!V.contains(i.snapElements[v].item.ownerDocument,i.snapElements[v].item)?(i.snapElements[v].snapping&&i.options.snap.release&&i.options.snap.release.call(i.element,t,V.extend(i._uiHash(),{snapItem:i.snapElements[v].item})),i.snapElements[v].snapping=!1):("inner"!==d.snapMode&&(s=Math.abs(h-_)<=p,n=Math.abs(c-m)<=p,o=Math.abs(r-g)<=p,a=Math.abs(l-f)<=p,s&&(e.position.top=i._convertPositionTo("relative",{top:h-i.helperProportions.height,left:0}).top),n&&(e.position.top=i._convertPositionTo("relative",{top:c,left:0}).top),o&&(e.position.left=i._convertPositionTo("relative",{top:0,left:r-i.helperProportions.width}).left),a&&(e.position.left=i._convertPositionTo("relative",{top:0,left:l}).left)),u=s||n||o||a,"outer"!==d.snapMode&&(s=Math.abs(h-m)<=p,n=Math.abs(c-_)<=p,o=Math.abs(r-f)<=p,a=Math.abs(l-g)<=p,s&&(e.position.top=i._convertPositionTo("relative",{top:h,left:0}).top),n&&(e.position.top=i._convertPositionTo("relative",{top:c-i.helperProportions.height,left:0}).top),o&&(e.position.left=i._convertPositionTo("relative",{top:0,left:r}).left),a&&(e.position.left=i._convertPositionTo("relative",{top:0,left:l-i.helperProportions.width}).left)),!i.snapElements[v].snapping&&(s||n||o||a||u)&&i.options.snap.snap&&i.options.snap.snap.call(i.element,t,V.extend(i._uiHash(),{snapItem:i.snapElements[v].item})),i.snapElements[v].snapping=s||n||o||a||u)}}),V.ui.plugin.add("draggable","stack",{start:function(t,e,i){var s,i=i.options,i=V.makeArray(V(i.stack)).sort(function(t,e){return(parseInt(V(t).css("zIndex"),10)||0)-(parseInt(V(e).css("zIndex"),10)||0)});i.length&&(s=parseInt(V(i[0]).css("zIndex"),10)||0,V(i).each(function(t){V(this).css("zIndex",s+t)}),this.css("zIndex",s+i.length))}}),V.ui.plugin.add("draggable","zIndex",{start:function(t,e,i){e=V(e.helper),i=i.options;e.css("zIndex")&&(i._zIndex=e.css("zIndex")),e.css("zIndex",i.zIndex)},stop:function(t,e,i){i=i.options;i._zIndex&&V(e.helper).css("zIndex",i._zIndex)}});V.ui.draggable;function g(t,e,i){return e<=t&&t<e+i}V.widget("ui.droppable",{version:"1.13.0",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var t,e=this.options,i=e.accept;this.isover=!1,this.isout=!0,this.accept="function"==typeof i?i:function(t){return t.is(i)},this.proportions=function(){if(!arguments.length)return t=t||{width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};t=arguments[0]},this._addToManager(e.scope),e.addClasses&&this._addClass("ui-droppable")},_addToManager:function(t){V.ui.ddmanager.droppables[t]=V.ui.ddmanager.droppables[t]||[],V.ui.ddmanager.droppables[t].push(this)},_splice:function(t){for(var e=0;e<t.length;e++)t[e]===this&&t.splice(e,1)},_destroy:function(){var t=V.ui.ddmanager.droppables[this.options.scope];this._splice(t)},_setOption:function(t,e){var i;"accept"===t?this.accept="function"==typeof e?e:function(t){return t.is(e)}:"scope"===t&&(i=V.ui.ddmanager.droppables[this.options.scope],this._splice(i),this._addToManager(e)),this._super(t,e)},_activate:function(t){var e=V.ui.ddmanager.current;this._addActiveClass(),e&&this._trigger("activate",t,this.ui(e))},_deactivate:function(t){var e=V.ui.ddmanager.current;this._removeActiveClass(),e&&this._trigger("deactivate",t,this.ui(e))},_over:function(t){var e=V.ui.ddmanager.current;e&&(e.currentItem||e.element)[0]!==this.element[0]&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this._addHoverClass(),this._trigger("over",t,this.ui(e)))},_out:function(t){var e=V.ui.ddmanager.current;e&&(e.currentItem||e.element)[0]!==this.element[0]&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this._removeHoverClass(),this._trigger("out",t,this.ui(e)))},_drop:function(e,t){var i=t||V.ui.ddmanager.current,s=!1;return!(!i||(i.currentItem||i.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var t=V(this).droppable("instance");if(t.options.greedy&&!t.options.disabled&&t.options.scope===i.options.scope&&t.accept.call(t.element[0],i.currentItem||i.element)&&V.ui.intersect(i,V.extend(t,{offset:t.element.offset()}),t.options.tolerance,e))return!(s=!0)}),!s&&(!!this.accept.call(this.element[0],i.currentItem||i.element)&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",e,this.ui(i)),this.element)))},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}}),V.ui.intersect=function(t,e,i,s){if(!e.offset)return!1;var n=(t.positionAbs||t.position.absolute).left+t.margins.left,o=(t.positionAbs||t.position.absolute).top+t.margins.top,a=n+t.helperProportions.width,r=o+t.helperProportions.height,l=e.offset.left,h=e.offset.top,c=l+e.proportions().width,u=h+e.proportions().height;switch(i){case"fit":return l<=n&&a<=c&&h<=o&&r<=u;case"intersect":return l<n+t.helperProportions.width/2&&a-t.helperProportions.width/2<c&&h<o+t.helperProportions.height/2&&r-t.helperProportions.height/2<u;case"pointer":return g(s.pageY,h,e.proportions().height)&&g(s.pageX,l,e.proportions().width);case"touch":return(h<=o&&o<=u||h<=r&&r<=u||o<h&&u<r)&&(l<=n&&n<=c||l<=a&&a<=c||n<l&&c<a);default:return!1}},!(V.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(t,e){var i,s,n=V.ui.ddmanager.droppables[t.options.scope]||[],o=e?e.type:null,a=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();t:for(i=0;i<n.length;i++)if(!(n[i].options.disabled||t&&!n[i].accept.call(n[i].element[0],t.currentItem||t.element))){for(s=0;s<a.length;s++)if(a[s]===n[i].element[0]){n[i].proportions().height=0;continue t}n[i].visible="none"!==n[i].element.css("display"),n[i].visible&&("mousedown"===o&&n[i]._activate.call(n[i],e),n[i].offset=n[i].element.offset(),n[i].proportions({width:n[i].element[0].offsetWidth,height:n[i].element[0].offsetHeight}))}},drop:function(t,e){var i=!1;return V.each((V.ui.ddmanager.droppables[t.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&V.ui.intersect(t,this,this.options.tolerance,e)&&(i=this._drop.call(this,e)||i),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,e)))}),i},dragStart:function(t,e){t.element.parentsUntil("body").on("scroll.droppable",function(){t.options.refreshPositions||V.ui.ddmanager.prepareOffsets(t,e)})},drag:function(n,o){n.options.refreshPositions&&V.ui.ddmanager.prepareOffsets(n,o),V.each(V.ui.ddmanager.droppables[n.options.scope]||[],function(){var t,e,i,s;this.options.disabled||this.greedyChild||!this.visible||(s=!(i=V.ui.intersect(n,this,this.options.tolerance,o))&&this.isover?"isout":i&&!this.isover?"isover":null)&&(this.options.greedy&&(e=this.options.scope,(i=this.element.parents(":data(ui-droppable)").filter(function(){return V(this).droppable("instance").options.scope===e})).length&&((t=V(i[0]).droppable("instance")).greedyChild="isover"===s)),t&&"isover"===s&&(t.isover=!1,t.isout=!0,t._out.call(t,o)),this[s]=!0,this["isout"===s?"isover":"isout"]=!1,this["isover"===s?"_over":"_out"].call(this,o),t&&"isout"===s&&(t.isout=!1,t.isover=!0,t._over.call(t,o)))})},dragStop:function(t,e){t.element.parentsUntil("body").off("scroll.droppable"),t.options.refreshPositions||V.ui.ddmanager.prepareOffsets(t,e)}})!==V.uiBackCompat&&V.widget("ui.droppable",V.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}});V.ui.droppable;V.widget("ui.resizable",V.ui.mouse,{version:"1.13.0",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(t){return parseFloat(t)||0},_isNumber:function(t){return!isNaN(parseFloat(t))},_hasScroll:function(t,e){if("hidden"===V(t).css("overflow"))return!1;var i=e&&"left"===e?"scrollLeft":"scrollTop",e=!1;if(0<t[i])return!0;try{t[i]=1,e=0<t[i],t[i]=0}catch(t){}return e},_create:function(){var t,e=this.options,i=this;this._addClass("ui-resizable"),V.extend(this,{_aspectRatio:!!e.aspectRatio,aspectRatio:e.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:e.helper||e.ghost||e.animate?e.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(V("<div class='ui-wrapper'></div>").css({overflow:"hidden",position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,t={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(t),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(t),this._proportionallyResize()),this._setupHandles(),e.autoHide&&V(this.element).on("mouseenter",function(){e.disabled||(i._removeClass("ui-resizable-autohide"),i._handles.show())}).on("mouseleave",function(){e.disabled||i.resizing||(i._addClass("ui-resizable-autohide"),i._handles.hide())}),this._mouseInit()},_destroy:function(){this._mouseDestroy(),this._addedHandles.remove();function t(t){V(t).removeData("resizable").removeData("ui-resizable").off(".resizable")}var e;return this.elementIsWrapper&&(t(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),t(this.originalElement),this},_setOption:function(t,e){switch(this._super(t,e),t){case"handles":this._removeHandles(),this._setupHandles();break;case"aspectRatio":this._aspectRatio=!!e}},_setupHandles:function(){var t,e,i,s,n,o=this.options,a=this;if(this.handles=o.handles||(V(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=V(),this._addedHandles=V(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),i=this.handles.split(","),this.handles={},e=0;e<i.length;e++)s="ui-resizable-"+(t=String.prototype.trim.call(i[e])),n=V("<div>"),this._addClass(n,"ui-resizable-handle "+s),n.css({zIndex:o.zIndex}),this.handles[t]=".ui-resizable-"+t,this.element.children(this.handles[t]).length||(this.element.append(n),this._addedHandles=this._addedHandles.add(n));this._renderAxis=function(t){var e,i,s;for(e in t=t||this.element,this.handles)this.handles[e].constructor===String?this.handles[e]=this.element.children(this.handles[e]).first().show():(this.handles[e].jquery||this.handles[e].nodeType)&&(this.handles[e]=V(this.handles[e]),this._on(this.handles[e],{mousedown:a._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(i=V(this.handles[e],this.element),s=/sw|ne|nw|se|n|s/.test(e)?i.outerHeight():i.outerWidth(),i=["padding",/ne|nw|n/.test(e)?"Top":/se|sw|s/.test(e)?"Bottom":/^e$/.test(e)?"Right":"Left"].join(""),t.css(i,s),this._proportionallyResize()),this._handles=this._handles.add(this.handles[e])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){a.resizing||(this.className&&(n=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),a.axis=n&&n[1]?n[1]:"se")}),o.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._addedHandles.remove()},_mouseCapture:function(t){var e,i,s=!1;for(e in this.handles)(i=V(this.handles[e])[0])!==t.target&&!V.contains(i,t.target)||(s=!0);return!this.options.disabled&&s},_mouseStart:function(t){var e,i,s=this.options,n=this.element;return this.resizing=!0,this._renderProxy(),e=this._num(this.helper.css("left")),i=this._num(this.helper.css("top")),s.containment&&(e+=V(s.containment).scrollLeft()||0,i+=V(s.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:e,top:i},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:n.width(),height:n.height()},this.originalSize=this._helper?{width:n.outerWidth(),height:n.outerHeight()}:{width:n.width(),height:n.height()},this.sizeDiff={width:n.outerWidth()-n.width(),height:n.outerHeight()-n.height()},this.originalPosition={left:e,top:i},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio="number"==typeof s.aspectRatio?s.aspectRatio:this.originalSize.width/this.originalSize.height||1,s=V(".ui-resizable-"+this.axis).css("cursor"),V("body").css("cursor","auto"===s?this.axis+"-resize":s),this._addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var e=this.originalMousePosition,i=this.axis,s=t.pageX-e.left||0,e=t.pageY-e.top||0,i=this._change[i];return this._updatePrevProperties(),i&&(e=i.apply(this,[t,s,e]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(e=this._updateRatio(e,t)),e=this._respectSize(e,t),this._updateCache(e),this._propagate("resize",t),e=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),V.isEmptyObject(e)||(this._updatePrevProperties(),this._trigger("resize",t,this.ui()),this._applyChanges())),!1},_mouseStop:function(t){this.resizing=!1;var e,i,s,n=this.options,o=this;return this._helper&&(s=(e=(i=this._proportionallyResizeElements).length&&/textarea/i.test(i[0].nodeName))&&this._hasScroll(i[0],"left")?0:o.sizeDiff.height,i=e?0:o.sizeDiff.width,e={width:o.helper.width()-i,height:o.helper.height()-s},i=parseFloat(o.element.css("left"))+(o.position.left-o.originalPosition.left)||null,s=parseFloat(o.element.css("top"))+(o.position.top-o.originalPosition.top)||null,n.animate||this.element.css(V.extend(e,{top:s,left:i})),o.helper.height(o.size.height),o.helper.width(o.size.width),this._helper&&!n.animate&&this._proportionallyResize()),V("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px"),this.helper.css(t),t},_updateVirtualBoundaries:function(t){var e,i,s=this.options,n={minWidth:this._isNumber(s.minWidth)?s.minWidth:0,maxWidth:this._isNumber(s.maxWidth)?s.maxWidth:1/0,minHeight:this._isNumber(s.minHeight)?s.minHeight:0,maxHeight:this._isNumber(s.maxHeight)?s.maxHeight:1/0};(this._aspectRatio||t)&&(e=n.minHeight*this.aspectRatio,i=n.minWidth/this.aspectRatio,s=n.maxHeight*this.aspectRatio,t=n.maxWidth/this.aspectRatio,e>n.minWidth&&(n.minWidth=e),i>n.minHeight&&(n.minHeight=i),s<n.maxWidth&&(n.maxWidth=s),t<n.maxHeight&&(n.maxHeight=t)),this._vBoundaries=n},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,i=this.size,s=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===s&&(t.left=e.left+(i.width-t.width),t.top=null),"nw"===s&&(t.top=e.top+(i.height-t.height),t.left=e.left+(i.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,i=this.axis,s=this._isNumber(t.width)&&e.maxWidth&&e.maxWidth<t.width,n=this._isNumber(t.height)&&e.maxHeight&&e.maxHeight<t.height,o=this._isNumber(t.width)&&e.minWidth&&e.minWidth>t.width,a=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,r=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,h=/sw|nw|w/.test(i),i=/nw|ne|n/.test(i);return o&&(t.width=e.minWidth),a&&(t.height=e.minHeight),s&&(t.width=e.maxWidth),n&&(t.height=e.maxHeight),o&&h&&(t.left=r-e.minWidth),s&&h&&(t.left=r-e.maxWidth),a&&i&&(t.top=l-e.minHeight),n&&i&&(t.top=l-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var e=0,i=[],s=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],n=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];e<4;e++)i[e]=parseFloat(s[e])||0,i[e]+=parseFloat(n[e])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,i=this.helper||this.element;e<this._proportionallyResizeElements.length;e++)t=this._proportionallyResizeElements[e],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var t=this.element,e=this.options;this.elementOffset=t.offset(),this._helper?(this.helper=this.helper||V("<div></div>").css({overflow:"hidden"}),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++e.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=this.originalSize;return{left:this.originalPosition.left+e,width:i.width-e}},n:function(t,e,i){var s=this.originalSize;return{top:this.originalPosition.top+i,height:s.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(t,e,i){return V.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,e,i]))},sw:function(t,e,i){return V.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,e,i]))},ne:function(t,e,i){return V.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,e,i]))},nw:function(t,e,i){return V.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,e,i]))}},_propagate:function(t,e){V.ui.plugin.call(this,t,[e,this.ui()]),"resize"!==t&&this._trigger(t,e,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),V.ui.plugin.add("resizable","animate",{stop:function(e){var i=V(this).resizable("instance"),t=i.options,s=i._proportionallyResizeElements,n=s.length&&/textarea/i.test(s[0].nodeName),o=n&&i._hasScroll(s[0],"left")?0:i.sizeDiff.height,a=n?0:i.sizeDiff.width,n={width:i.size.width-a,height:i.size.height-o},a=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,o=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(V.extend(n,o&&a?{top:o,left:a}:{}),{duration:t.animateDuration,easing:t.animateEasing,step:function(){var t={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};s&&s.length&&V(s[0]).css({width:t.width,height:t.height}),i._updateCache(t),i._propagate("resize",e)}})}}),V.ui.plugin.add("resizable","containment",{start:function(){var i,s,n=V(this).resizable("instance"),t=n.options,e=n.element,o=t.containment,a=o instanceof V?o.get(0):/parent/.test(o)?e.parent().get(0):o;a&&(n.containerElement=V(a),/document/.test(o)||o===document?(n.containerOffset={left:0,top:0},n.containerPosition={left:0,top:0},n.parentData={element:V(document),left:0,top:0,width:V(document).width(),height:V(document).height()||document.body.parentNode.scrollHeight}):(i=V(a),s=[],V(["Top","Right","Left","Bottom"]).each(function(t,e){s[t]=n._num(i.css("padding"+e))}),n.containerOffset=i.offset(),n.containerPosition=i.position(),n.containerSize={height:i.innerHeight()-s[3],width:i.innerWidth()-s[1]},t=n.containerOffset,e=n.containerSize.height,o=n.containerSize.width,o=n._hasScroll(a,"left")?a.scrollWidth:o,e=n._hasScroll(a)?a.scrollHeight:e,n.parentData={element:a,left:t.left,top:t.top,width:o,height:e}))},resize:function(t){var e=V(this).resizable("instance"),i=e.options,s=e.containerOffset,n=e.position,o=e._aspectRatio||t.shiftKey,a={top:0,left:0},r=e.containerElement,t=!0;r[0]!==document&&/static/.test(r.css("position"))&&(a=s),n.left<(e._helper?s.left:0)&&(e.size.width=e.size.width+(e._helper?e.position.left-s.left:e.position.left-a.left),o&&(e.size.height=e.size.width/e.aspectRatio,t=!1),e.position.left=i.helper?s.left:0),n.top<(e._helper?s.top:0)&&(e.size.height=e.size.height+(e._helper?e.position.top-s.top:e.position.top),o&&(e.size.width=e.size.height*e.aspectRatio,t=!1),e.position.top=e._helper?s.top:0),i=e.containerElement.get(0)===e.element.parent().get(0),n=/relative|absolute/.test(e.containerElement.css("position")),i&&n?(e.offset.left=e.parentData.left+e.position.left,e.offset.top=e.parentData.top+e.position.top):(e.offset.left=e.element.offset().left,e.offset.top=e.element.offset().top),n=Math.abs(e.sizeDiff.width+(e._helper?e.offset.left-a.left:e.offset.left-s.left)),s=Math.abs(e.sizeDiff.height+(e._helper?e.offset.top-a.top:e.offset.top-s.top)),n+e.size.width>=e.parentData.width&&(e.size.width=e.parentData.width-n,o&&(e.size.height=e.size.width/e.aspectRatio,t=!1)),s+e.size.height>=e.parentData.height&&(e.size.height=e.parentData.height-s,o&&(e.size.width=e.size.height*e.aspectRatio,t=!1)),t||(e.position.left=e.prevPosition.left,e.position.top=e.prevPosition.top,e.size.width=e.prevSize.width,e.size.height=e.prevSize.height)},stop:function(){var t=V(this).resizable("instance"),e=t.options,i=t.containerOffset,s=t.containerPosition,n=t.containerElement,o=V(t.helper),a=o.offset(),r=o.outerWidth()-t.sizeDiff.width,o=o.outerHeight()-t.sizeDiff.height;t._helper&&!e.animate&&/relative/.test(n.css("position"))&&V(this).css({left:a.left-s.left-i.left,width:r,height:o}),t._helper&&!e.animate&&/static/.test(n.css("position"))&&V(this).css({left:a.left-s.left-i.left,width:r,height:o})}}),V.ui.plugin.add("resizable","alsoResize",{start:function(){var t=V(this).resizable("instance").options;V(t.alsoResize).each(function(){var t=V(this);t.data("ui-resizable-alsoresize",{width:parseFloat(t.width()),height:parseFloat(t.height()),left:parseFloat(t.css("left")),top:parseFloat(t.css("top"))})})},resize:function(t,i){var e=V(this).resizable("instance"),s=e.options,n=e.originalSize,o=e.originalPosition,a={height:e.size.height-n.height||0,width:e.size.width-n.width||0,top:e.position.top-o.top||0,left:e.position.left-o.left||0};V(s.alsoResize).each(function(){var t=V(this),s=V(this).data("ui-resizable-alsoresize"),n={},e=t.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];V.each(e,function(t,e){var i=(s[e]||0)+(a[e]||0);i&&0<=i&&(n[e]=i||null)}),t.css(n)})},stop:function(){V(this).removeData("ui-resizable-alsoresize")}}),V.ui.plugin.add("resizable","ghost",{start:function(){var t=V(this).resizable("instance"),e=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opacity:.25,display:"block",position:"relative",height:e.height,width:e.width,margin:0,left:0,top:0}),t._addClass(t.ghost,"ui-resizable-ghost"),!1!==V.uiBackCompat&&"string"==typeof t.options.ghost&&t.ghost.addClass(this.options.ghost),t.ghost.appendTo(t.helper)},resize:function(){var t=V(this).resizable("instance");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=V(this).resizable("instance");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}}),V.ui.plugin.add("resizable","grid",{resize:function(){var t,e=V(this).resizable("instance"),i=e.options,s=e.size,n=e.originalSize,o=e.originalPosition,a=e.axis,r="number"==typeof i.grid?[i.grid,i.grid]:i.grid,l=r[0]||1,h=r[1]||1,c=Math.round((s.width-n.width)/l)*l,u=Math.round((s.height-n.height)/h)*h,d=n.width+c,p=n.height+u,f=i.maxWidth&&i.maxWidth<d,g=i.maxHeight&&i.maxHeight<p,m=i.minWidth&&i.minWidth>d,s=i.minHeight&&i.minHeight>p;i.grid=r,m&&(d+=l),s&&(p+=h),f&&(d-=l),g&&(p-=h),/^(se|s|e)$/.test(a)?(e.size.width=d,e.size.height=p):/^(ne)$/.test(a)?(e.size.width=d,e.size.height=p,e.position.top=o.top-u):/^(sw)$/.test(a)?(e.size.width=d,e.size.height=p,e.position.left=o.left-c):((p-h<=0||d-l<=0)&&(t=e._getPaddingPlusBorderDimensions(this)),0<p-h?(e.size.height=p,e.position.top=o.top-u):(p=h-t.height,e.size.height=p,e.position.top=o.top+n.height-p),0<d-l?(e.size.width=d,e.position.left=o.left-c):(d=l-t.width,e.size.width=d,e.position.left=o.left+n.width-d))}});V.ui.resizable,V.widget("ui.selectable",V.ui.mouse,{version:"1.13.0",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var i=this;this._addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){i.elementPos=V(i.element[0]).offset(),i.selectees=V(i.options.filter,i.element[0]),i._addClass(i.selectees,"ui-selectee"),i.selectees.each(function(){var t=V(this),e=t.offset(),e={left:e.left-i.elementPos.left,top:e.top-i.elementPos.top};V.data(this,"selectable-item",{element:this,$element:t,left:e.left,top:e.top,right:e.left+t.outerWidth(),bottom:e.top+t.outerHeight(),startselected:!1,selected:t.hasClass("ui-selected"),selecting:t.hasClass("ui-selecting"),unselecting:t.hasClass("ui-unselecting")})})},this.refresh(),this._mouseInit(),this.helper=V("<div>"),this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(i){var s=this,t=this.options;this.opos=[i.pageX,i.pageY],this.elementPos=V(this.element[0]).offset(),this.options.disabled||(this.selectees=V(t.filter,this.element[0]),this._trigger("start",i),V(t.appendTo).append(this.helper),this.helper.css({left:i.pageX,top:i.pageY,width:0,height:0}),t.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var t=V.data(this,"selectable-item");t.startselected=!0,i.metaKey||i.ctrlKey||(s._removeClass(t.$element,"ui-selected"),t.selected=!1,s._addClass(t.$element,"ui-unselecting"),t.unselecting=!0,s._trigger("unselecting",i,{unselecting:t.element}))}),V(i.target).parents().addBack().each(function(){var t,e=V.data(this,"selectable-item");if(e)return t=!i.metaKey&&!i.ctrlKey||!e.$element.hasClass("ui-selected"),s._removeClass(e.$element,t?"ui-unselecting":"ui-selected")._addClass(e.$element,t?"ui-selecting":"ui-unselecting"),e.unselecting=!t,e.selecting=t,(e.selected=t)?s._trigger("selecting",i,{selecting:e.element}):s._trigger("unselecting",i,{unselecting:e.element}),!1}))},_mouseDrag:function(s){if(this.dragged=!0,!this.options.disabled){var t,n=this,o=this.options,a=this.opos[0],r=this.opos[1],l=s.pageX,h=s.pageY;return l<a&&(t=l,l=a,a=t),h<r&&(t=h,h=r,r=t),this.helper.css({left:a,top:r,width:l-a,height:h-r}),this.selectees.each(function(){var t=V.data(this,"selectable-item"),e=!1,i={};t&&t.element!==n.element[0]&&(i.left=t.left+n.elementPos.left,i.right=t.right+n.elementPos.left,i.top=t.top+n.elementPos.top,i.bottom=t.bottom+n.elementPos.top,"touch"===o.tolerance?e=!(i.left>l||i.right<a||i.top>h||i.bottom<r):"fit"===o.tolerance&&(e=i.left>a&&i.right<l&&i.top>r&&i.bottom<h),e?(t.selected&&(n._removeClass(t.$element,"ui-selected"),t.selected=!1),t.unselecting&&(n._removeClass(t.$element,"ui-unselecting"),t.unselecting=!1),t.selecting||(n._addClass(t.$element,"ui-selecting"),t.selecting=!0,n._trigger("selecting",s,{selecting:t.element}))):(t.selecting&&((s.metaKey||s.ctrlKey)&&t.startselected?(n._removeClass(t.$element,"ui-selecting"),t.selecting=!1,n._addClass(t.$element,"ui-selected"),t.selected=!0):(n._removeClass(t.$element,"ui-selecting"),t.selecting=!1,t.startselected&&(n._addClass(t.$element,"ui-unselecting"),t.unselecting=!0),n._trigger("unselecting",s,{unselecting:t.element}))),t.selected&&(s.metaKey||s.ctrlKey||t.startselected||(n._removeClass(t.$element,"ui-selected"),t.selected=!1,n._addClass(t.$element,"ui-unselecting"),t.unselecting=!0,n._trigger("unselecting",s,{unselecting:t.element})))))}),!1}},_mouseStop:function(e){var i=this;return this.dragged=!1,V(".ui-unselecting",this.element[0]).each(function(){var t=V.data(this,"selectable-item");i._removeClass(t.$element,"ui-unselecting"),t.unselecting=!1,t.startselected=!1,i._trigger("unselected",e,{unselected:t.element})}),V(".ui-selecting",this.element[0]).each(function(){var t=V.data(this,"selectable-item");i._removeClass(t.$element,"ui-selecting")._addClass(t.$element,"ui-selected"),t.selecting=!1,t.selected=!0,t.startselected=!0,i._trigger("selected",e,{selected:t.element})}),this._trigger("stop",e),this.helper.remove(),!1}}),V.widget("ui.sortable",V.ui.mouse,{version:"1.13.0",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,i){return e<=t&&t<e+i},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){var t=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),V.each(this.items,function(){t._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var t=this.items.length-1;0<=t;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(t,e){var i=null,s=!1,n=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(t),V(t.target).parents().each(function(){if(V.data(this,n.widgetName+"-item")===n)return i=V(this),!1}),!!(i=V.data(t.target,n.widgetName+"-item")===n?V(t.target):i)&&(!(this.options.handle&&!e&&(V(this.options.handle,i).find("*").addBack().each(function(){this===t.target&&(s=!0)}),!s))&&(this.currentItem=i,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(t,e,i){var s,n,o=this.options;if((this.currentContainer=this).refreshPositions(),this.appendTo=V("parent"!==o.appendTo?o.appendTo:this.currentItem.parent()),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},V.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),o.cursorAt&&this._adjustOffsetFromHelper(o.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),this.scrollParent=this.placeholder.scrollParent(),V.extend(this.offset,{parent:this._getParentOffset()}),o.containment&&this._setContainment(),o.cursor&&"auto"!==o.cursor&&(n=this.document.find("body"),this.storedCursor=n.css("cursor"),n.css("cursor",o.cursor),this.storedStylesheet=V("<style>*{ cursor: "+o.cursor+" !important; }</style>").appendTo(n)),o.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",o.zIndex)),o.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",o.opacity)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!i)for(s=this.containers.length-1;0<=s;s--)this.containers[s]._trigger("activate",t,this._uiHash(this));return V.ui.ddmanager&&(V.ui.ddmanager.current=this),V.ui.ddmanager&&!o.dropBehaviour&&V.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this.helper.parent().is(this.appendTo)||(this.helper.detach().appendTo(this.appendTo),this.offset.parent=this._getParentOffset()),this.position=this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,this.lastPositionAbs=this.positionAbs=this._convertPositionTo("absolute"),this._mouseDrag(t),!0},_scroll:function(t){var e=this.options,i=!1;return this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<e.scrollSensitivity?this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop+e.scrollSpeed:t.pageY-this.overflowOffset.top<e.scrollSensitivity&&(this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop-e.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<e.scrollSensitivity?this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft+e.scrollSpeed:t.pageX-this.overflowOffset.left<e.scrollSensitivity&&(this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft-e.scrollSpeed)):(t.pageY-this.document.scrollTop()<e.scrollSensitivity?i=this.document.scrollTop(this.document.scrollTop()-e.scrollSpeed):this.window.height()-(t.pageY-this.document.scrollTop())<e.scrollSensitivity&&(i=this.document.scrollTop(this.document.scrollTop()+e.scrollSpeed)),t.pageX-this.document.scrollLeft()<e.scrollSensitivity?i=this.document.scrollLeft(this.document.scrollLeft()-e.scrollSpeed):this.window.width()-(t.pageX-this.document.scrollLeft())<e.scrollSensitivity&&(i=this.document.scrollLeft(this.document.scrollLeft()+e.scrollSpeed))),i},_mouseDrag:function(t){var e,i,s,n,o=this.options;if(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),this._contactContainers(t),null!==this.innermostContainer)for(o.scroll&&!1!==this._scroll(t)&&(this._refreshItemPositions(!0),V.ui.ddmanager&&!o.dropBehaviour&&V.ui.ddmanager.prepareOffsets(this,t)),this.dragDirection={vertical:this._getDragVerticalDirection(),horizontal:this._getDragHorizontalDirection()},e=this.items.length-1;0<=e;e--)if(s=(i=this.items[e]).item[0],(n=this._intersectsWithPointer(i))&&i.instance===this.currentContainer&&!(s===this.currentItem[0]||this.placeholder[1===n?"next":"prev"]()[0]===s||V.contains(this.placeholder[0],s)||"semi-dynamic"===this.options.type&&V.contains(this.element[0],s))){if(this.direction=1===n?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(i))break;this._rearrange(t,i),this._trigger("change",t,this._uiHash());break}return V.ui.ddmanager&&V.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,e){var i,s,n,o;if(t)return V.ui.ddmanager&&!this.options.dropBehaviour&&V.ui.ddmanager.drop(this,t),this.options.revert?(s=(i=this).placeholder.offset(),o={},(n=this.options.axis)&&"x"!==n||(o.left=s.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),n&&"y"!==n||(o.top=s.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,V(this.helper).animate(o,parseInt(this.options.revert,10)||500,function(){i._clear(t)})):this._clear(t,e),!1},cancel:function(){if(this.dragging){this._mouseUp(new V.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var t=this.containers.length-1;0<=t;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),V.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?V(this.domPosition.prev).after(this.currentItem):V(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var t=this._getItemsAsjQuery(e&&e.connected),i=[];return e=e||{},V(t).each(function(){var t=(V(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);t&&i.push((e.key||t[1]+"[]")+"="+(e.key&&e.expression?t[1]:t[2]))}),!i.length&&e.key&&i.push(e.key+"="),i.join("&")},toArray:function(t){var e=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},e.each(function(){i.push(V(t.item||this).attr(t.attribute||"id")||"")}),i},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,s=this.positionAbs.top,n=s+this.helperProportions.height,o=t.left,a=o+t.width,r=t.top,l=r+t.height,h=this.offset.click.top,c=this.offset.click.left,h="x"===this.options.axis||r<s+h&&s+h<l,c="y"===this.options.axis||o<e+c&&e+c<a;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?h&&c:o<e+this.helperProportions.width/2&&i-this.helperProportions.width/2<a&&r<s+this.helperProportions.height/2&&n-this.helperProportions.height/2<l},_intersectsWithPointer:function(t){var e="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),t="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width);return!(!e||!t)&&(e=this.dragDirection.vertical,t=this.dragDirection.horizontal,this.floating?"right"===t||"down"===e?2:1:e&&("down"===e?2:1))},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),s=this.dragDirection.vertical,t=this.dragDirection.horizontal;return this.floating&&t?"right"===t&&i||"left"===t&&!i:s&&("down"===s&&e||"up"===s&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!=t&&(0<t?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!=t&&(0<t?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(t){var e,i,s,n,o=[],a=[],r=this._connectWith();if(r&&t)for(e=r.length-1;0<=e;e--)for(i=(s=V(r[e],this.document[0])).length-1;0<=i;i--)(n=V.data(s[i],this.widgetFullName))&&n!==this&&!n.options.disabled&&a.push(["function"==typeof n.options.items?n.options.items.call(n.element):V(n.options.items,n.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),n]);function l(){o.push(this)}for(a.push(["function"==typeof this.options.items?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):V(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),e=a.length-1;0<=e;e--)a[e][0].each(l);return V(o)},_removeCurrentsFromItems:function(){var i=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=V.grep(this.items,function(t){for(var e=0;e<i.length;e++)if(i[e]===t.item[0])return!1;return!0})},_refreshItems:function(t){this.items=[],this.containers=[this];var e,i,s,n,o,a,r,l,h=this.items,c=[["function"==typeof this.options.items?this.options.items.call(this.element[0],t,{item:this.currentItem}):V(this.options.items,this.element),this]],u=this._connectWith();if(u&&this.ready)for(e=u.length-1;0<=e;e--)for(i=(s=V(u[e],this.document[0])).length-1;0<=i;i--)(n=V.data(s[i],this.widgetFullName))&&n!==this&&!n.options.disabled&&(c.push(["function"==typeof n.options.items?n.options.items.call(n.element[0],t,{item:this.currentItem}):V(n.options.items,n.element),n]),this.containers.push(n));for(e=c.length-1;0<=e;e--)for(o=c[e][1],l=(a=c[e][i=0]).length;i<l;i++)(r=V(a[i])).data(this.widgetName+"-item",o),h.push({item:r,instance:o,width:0,height:0,left:0,top:0})},_refreshItemPositions:function(t){for(var e,i,s=this.items.length-1;0<=s;s--)e=this.items[s],this.currentContainer&&e.instance!==this.currentContainer&&e.item[0]!==this.currentItem[0]||(i=this.options.toleranceElement?V(this.options.toleranceElement,e.item):e.item,t||(e.width=i.outerWidth(),e.height=i.outerHeight()),i=i.offset(),e.left=i.left,e.top=i.top)},refreshPositions:function(t){var e,i;if(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),null!==this.innermostContainer&&this._refreshItemPositions(t),this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(e=this.containers.length-1;0<=e;e--)i=this.containers[e].element.offset(),this.containers[e].containerCache.left=i.left,this.containers[e].containerCache.top=i.top,this.containers[e].containerCache.width=this.containers[e].element.outerWidth(),this.containers[e].containerCache.height=this.containers[e].element.outerHeight();return this},_createPlaceholder:function(i){var s,n,o=(i=i||this).options;o.placeholder&&o.placeholder.constructor!==String||(s=o.placeholder,n=i.currentItem[0].nodeName.toLowerCase(),o.placeholder={element:function(){var t=V("<"+n+">",i.document[0]);return i._addClass(t,"ui-sortable-placeholder",s||i.currentItem[0].className)._removeClass(t,"ui-sortable-helper"),"tbody"===n?i._createTrPlaceholder(i.currentItem.find("tr").eq(0),V("<tr>",i.document[0]).appendTo(t)):"tr"===n?i._createTrPlaceholder(i.currentItem,t):"img"===n&&t.attr("src",i.currentItem.attr("src")),s||t.css("visibility","hidden"),t},update:function(t,e){s&&!o.forcePlaceholderSize||(e.height()&&(!o.forcePlaceholderSize||"tbody"!==n&&"tr"!==n)||e.height(i.currentItem.innerHeight()-parseInt(i.currentItem.css("paddingTop")||0,10)-parseInt(i.currentItem.css("paddingBottom")||0,10)),e.width()||e.width(i.currentItem.innerWidth()-parseInt(i.currentItem.css("paddingLeft")||0,10)-parseInt(i.currentItem.css("paddingRight")||0,10)))}}),i.placeholder=V(o.placeholder.element.call(i.element,i.currentItem)),i.currentItem.after(i.placeholder),o.placeholder.update(i,i.placeholder)},_createTrPlaceholder:function(t,e){var i=this;t.children().each(function(){V("<td>&#160;</td>",i.document[0]).attr("colspan",V(this).attr("colspan")||1).appendTo(e)})},_contactContainers:function(t){for(var e,i,s,n,o,a,r,l,h,c=null,u=null,d=this.containers.length-1;0<=d;d--)V.contains(this.currentItem[0],this.containers[d].element[0])||(this._intersectsWith(this.containers[d].containerCache)?c&&V.contains(this.containers[d].element[0],c.element[0])||(c=this.containers[d],u=d):this.containers[d].containerCache.over&&(this.containers[d]._trigger("out",t,this._uiHash(this)),this.containers[d].containerCache.over=0));if(this.innermostContainer=c)if(1===this.containers.length)this.containers[u].containerCache.over||(this.containers[u]._trigger("over",t,this._uiHash(this)),this.containers[u].containerCache.over=1);else{for(i=1e4,s=null,n=(l=c.floating||this._isFloating(this.currentItem))?"left":"top",o=l?"width":"height",h=l?"pageX":"pageY",e=this.items.length-1;0<=e;e--)V.contains(this.containers[u].element[0],this.items[e].item[0])&&this.items[e].item[0]!==this.currentItem[0]&&(a=this.items[e].item.offset()[n],r=!1,t[h]-a>this.items[e][o]/2&&(r=!0),Math.abs(t[h]-a)<i&&(i=Math.abs(t[h]-a),s=this.items[e],this.direction=r?"up":"down"));(s||this.options.dropOnEmpty)&&(this.currentContainer!==this.containers[u]?(s?this._rearrange(t,s,null,!0):this._rearrange(t,null,this.containers[u].element,!0),this._trigger("change",t,this._uiHash()),this.containers[u]._trigger("change",t,this._uiHash(this)),this.currentContainer=this.containers[u],this.options.placeholder.update(this.currentContainer,this.placeholder),this.scrollParent=this.placeholder.scrollParent(),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this.containers[u]._trigger("over",t,this._uiHash(this)),this.containers[u].containerCache.over=1):this.currentContainer.containerCache.over||(this.containers[u]._trigger("over",t,this._uiHash()),this.currentContainer.containerCache.over=1))}},_createHelper:function(t){var e=this.options,t="function"==typeof e.helper?V(e.helper.apply(this.element[0],[t,this.currentItem])):"clone"===e.helper?this.currentItem.clone():this.currentItem;return t.parents("body").length||this.appendTo[0].appendChild(t[0]),t[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),t[0].style.width&&!e.forceHelperSize||t.width(this.currentItem.width()),t[0].style.height&&!e.forceHelperSize||t.height(this.currentItem.height()),t},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),"left"in(t=Array.isArray(t)?{left:+t[0],top:+t[1]||0}:t)&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&V.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),{top:(t=this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&V.ui.ie?{top:0,left:0}:t).top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,e,i=this.options;"parent"===i.containment&&(i.containment=this.helper[0].parentNode),"document"!==i.containment&&"window"!==i.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===i.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===i.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(i.containment)||(t=V(i.containment)[0],e=V(i.containment).offset(),i="hidden"!==V(t).css("overflow"),this.containment=[e.left+(parseInt(V(t).css("borderLeftWidth"),10)||0)+(parseInt(V(t).css("paddingLeft"),10)||0)-this.margins.left,e.top+(parseInt(V(t).css("borderTopWidth"),10)||0)+(parseInt(V(t).css("paddingTop"),10)||0)-this.margins.top,e.left+(i?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(V(t).css("borderLeftWidth"),10)||0)-(parseInt(V(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,e.top+(i?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(V(t).css("borderTopWidth"),10)||0)-(parseInt(V(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,e){e=e||this.position;var i="absolute"===t?1:-1,s="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&V.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,t=/(html|body)/i.test(s[0].tagName);return{top:e.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():t?0:s.scrollTop())*i,left:e.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():t?0:s.scrollLeft())*i}},_generatePosition:function(t){var e=this.options,i=t.pageX,s=t.pageY,n="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&V.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(n[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.left<this.containment[0]&&(i=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(s=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(i=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(s=this.containment[3]+this.offset.click.top)),e.grid&&(t=this.originalPageY+Math.round((s-this.originalPageY)/e.grid[1])*e.grid[1],s=!this.containment||t-this.offset.click.top>=this.containment[1]&&t-this.offset.click.top<=this.containment[3]?t:t-this.offset.click.top>=this.containment[1]?t-e.grid[1]:t+e.grid[1],t=this.originalPageX+Math.round((i-this.originalPageX)/e.grid[0])*e.grid[0],i=!this.containment||t-this.offset.click.left>=this.containment[0]&&t-this.offset.click.left<=this.containment[2]?t:t-this.offset.click.left>=this.containment[0]?t-e.grid[0]:t+e.grid[0])),{top:s-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():o?0:n.scrollTop()),left:i-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():o?0:n.scrollLeft())}},_rearrange:function(t,e,i,s){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var n=this.counter;this._delay(function(){n===this.counter&&this.refreshPositions(!s)})},_clear:function(t,e){this.reverting=!1;var i,s=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)"auto"!==this._storedCSS[i]&&"static"!==this._storedCSS[i]||(this._storedCSS[i]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();function n(e,i,s){return function(t){s._trigger(e,t,i._uiHash(i))}}for(this.fromOutside&&!e&&s.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||s.push(function(t){this._trigger("update",t,this._uiHash())}),this!==this.currentContainer&&(e||(s.push(function(t){this._trigger("remove",t,this._uiHash())}),s.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),s.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;0<=i;i--)e||s.push(n("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(s.push(n("out",this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(i=0;i<s.length;i++)s[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===V.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(t){var e=t||this;return{helper:e.helper,placeholder:e.placeholder||V([]),position:e.position,originalPosition:e.originalPosition,offset:e.positionAbs,item:e.currentItem,sender:t?t.element:null}}}),V.widget("ui.accordion",{version:"1.13.0",options:{active:0,animate:{},classes:{"ui-accordion-header":"ui-corner-top","ui-accordion-header-collapsed":"ui-corner-all","ui-accordion-content":"ui-corner-bottom"},collapsible:!1,event:"click",header:function(t){return t.find("> li > :first-child").add(t.find("> :not(li)").even())},heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var t=this.options;this.prevShow=this.prevHide=V(),this._addClass("ui-accordion","ui-widget ui-helper-reset"),this.element.attr("role","tablist"),t.collapsible||!1!==t.active&&null!=t.active||(t.active=0),this._processPanels(),t.active<0&&(t.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():V()}},_createIcons:function(){var t,e=this.options.icons;e&&(t=V("<span>"),this._addClass(t,"ui-accordion-header-icon","ui-icon "+e.header),t.prependTo(this.headers),t=this.active.children(".ui-accordion-header-icon"),this._removeClass(t,e.header)._addClass(t,null,e.activeHeader)._addClass(this.headers,"ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons"),this.headers.children(".ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),t=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){"active"!==t?("event"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||!1!==this.options.active||this._activate(0),"icons"===t&&(this._destroyIcons(),e&&this._createIcons())):this._activate(e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t),this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!t)},_keydown:function(t){if(!t.altKey&&!t.ctrlKey){var e=V.ui.keyCode,i=this.headers.length,s=this.headers.index(t.target),n=!1;switch(t.keyCode){case e.RIGHT:case e.DOWN:n=this.headers[(s+1)%i];break;case e.LEFT:case e.UP:n=this.headers[(s-1+i)%i];break;case e.SPACE:case e.ENTER:this._eventHandler(t);break;case e.HOME:n=this.headers[0];break;case e.END:n=this.headers[i-1]}n&&(V(t.target).attr("tabIndex",-1),V(n).attr("tabIndex",0),V(n).trigger("focus"),t.preventDefault())}},_panelKeyDown:function(t){t.keyCode===V.ui.keyCode.UP&&t.ctrlKey&&V(t.currentTarget).prev().trigger("focus")},refresh:function(){var t=this.options;this._processPanels(),!1===t.active&&!0===t.collapsible||!this.headers.length?(t.active=!1,this.active=V()):!1===t.active?this._activate(0):this.active.length&&!V.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(t.active=!1,this.active=V()):this._activate(Math.max(0,t.active-1)):t.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var t=this.headers,e=this.panels;"function"==typeof this.options.header?this.headers=this.options.header(this.element):this.headers=this.element.find(this.options.header),this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default"),this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide(),this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content"),e&&(this._off(t.not(this.headers)),this._off(e.not(this.panels)))},_refresh:function(){var i,t=this.options,e=t.heightStyle,s=this.element.parent();this.active=this._findActive(t.active),this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed"),this._addClass(this.active.next(),"ui-accordion-content-active"),this.active.next().show(),this.headers.attr("role","tab").each(function(){var t=V(this),e=t.uniqueId().attr("id"),i=t.next(),s=i.uniqueId().attr("id");t.attr("aria-controls",s),i.attr("aria-labelledby",e)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(t.event),"fill"===e?(i=s.height(),this.element.siblings(":visible").each(function(){var t=V(this),e=t.css("position");"absolute"!==e&&"fixed"!==e&&(i-=t.outerHeight(!0))}),this.headers.each(function(){i-=V(this).outerHeight(!0)}),this.headers.next().each(function(){V(this).height(Math.max(0,i-V(this).innerHeight()+V(this).height()))}).css("overflow","auto")):"auto"===e&&(i=0,this.headers.next().each(function(){var t=V(this).is(":visible");t||V(this).show(),i=Math.max(i,V(this).css("height","").height()),t||V(this).hide()}).height(i))},_activate:function(t){t=this._findActive(t)[0];t!==this.active[0]&&(t=t||this.active[0],this._eventHandler({target:t,currentTarget:t,preventDefault:V.noop}))},_findActive:function(t){return"number"==typeof t?this.headers.eq(t):V()},_setupEvents:function(t){var i={keydown:"_keydown"};t&&V.each(t.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(t){var e=this.options,i=this.active,s=V(t.currentTarget),n=s[0]===i[0],o=n&&e.collapsible,a=o?V():s.next(),r=i.next(),a={oldHeader:i,oldPanel:r,newHeader:o?V():s,newPanel:a};t.preventDefault(),n&&!e.collapsible||!1===this._trigger("beforeActivate",t,a)||(e.active=!o&&this.headers.index(s),this.active=n?V():s,this._toggle(a),this._removeClass(i,"ui-accordion-header-active","ui-state-active"),e.icons&&(i=i.children(".ui-accordion-header-icon"),this._removeClass(i,null,e.icons.activeHeader)._addClass(i,null,e.icons.header)),n||(this._removeClass(s,"ui-accordion-header-collapsed")._addClass(s,"ui-accordion-header-active","ui-state-active"),e.icons&&(n=s.children(".ui-accordion-header-icon"),this._removeClass(n,null,e.icons.header)._addClass(n,null,e.icons.activeHeader)),this._addClass(s.next(),"ui-accordion-content-active")))},_toggle:function(t){var e=t.newPanel,i=this.prevShow.length?this.prevShow:t.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=e,this.prevHide=i,this.options.animate?this._animate(e,i,t):(i.hide(),e.show(),this._toggleComplete(t)),i.attr({"aria-hidden":"true"}),i.prev().attr({"aria-selected":"false","aria-expanded":"false"}),e.length&&i.length?i.prev().attr({tabIndex:-1,"aria-expanded":"false"}):e.length&&this.headers.filter(function(){return 0===parseInt(V(this).attr("tabIndex"),10)}).attr("tabIndex",-1),e.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(t,i,e){var s,n,o,a=this,r=0,l=t.css("box-sizing"),h=t.length&&(!i.length||t.index()<i.index()),c=this.options.animate||{},u=h&&c.down||c,h=function(){a._toggleComplete(e)};return n=(n="string"==typeof u?u:n)||u.easing||c.easing,o=(o="number"==typeof u?u:o)||u.duration||c.duration,i.length?t.length?(s=t.show().outerHeight(),i.animate(this.hideProps,{duration:o,easing:n,step:function(t,e){e.now=Math.round(t)}}),void t.hide().animate(this.showProps,{duration:o,easing:n,complete:h,step:function(t,e){e.now=Math.round(t),"height"!==e.prop?"content-box"===l&&(r+=e.now):"content"!==a.options.heightStyle&&(e.now=Math.round(s-i.outerHeight()-r),r=0)}})):i.animate(this.hideProps,o,n,h):t.animate(this.showProps,o,n,h)},_toggleComplete:function(t){var e=t.oldPanel,i=e.prev();this._removeClass(e,"ui-accordion-content-active"),this._removeClass(i,"ui-accordion-header-active")._addClass(i,"ui-accordion-header-collapsed"),e.length&&(e.parent()[0].className=e.parent()[0].className),this._trigger("activate",null,t)}}),V.widget("ui.menu",{version:"1.13.0",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.lastMousePosition={x:null,y:null},this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault(),this._activateItem(t)},"click .ui-menu-item":function(t){var e=V(t.target),i=V(V.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&e.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),e.has(".ui-menu").length?this.expand(t):!this.element.is(":focus")&&i.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":"_activateItem","mousemove .ui-menu-item":"_activateItem",mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this._menuItems().first();e||this.focus(t,i)},blur:function(t){this._delay(function(){V.contains(this.element[0],V.ui.safeActiveElement(this.document[0]))||this.collapseAll(t)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t,!0),this.mouseHandled=!1}})},_activateItem:function(t){var e,i;this.previousFilter||t.clientX===this.lastMousePosition.x&&t.clientY===this.lastMousePosition.y||(this.lastMousePosition={x:t.clientX,y:t.clientY},e=V(t.target).closest(".ui-menu-item"),i=V(t.currentTarget),e[0]===i[0]&&(i.is(".ui-state-active")||(this._removeClass(i.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(t,i))))},_destroy:function(){var t=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),t.children().each(function(){var t=V(this);t.data("ui-menu-submenu-caret")&&t.remove()})},_keydown:function(t){var e,i,s,n=!0;switch(t.keyCode){case V.ui.keyCode.PAGE_UP:this.previousPage(t);break;case V.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case V.ui.keyCode.HOME:this._move("first","first",t);break;case V.ui.keyCode.END:this._move("last","last",t);break;case V.ui.keyCode.UP:this.previous(t);break;case V.ui.keyCode.DOWN:this.next(t);break;case V.ui.keyCode.LEFT:this.collapse(t);break;case V.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case V.ui.keyCode.ENTER:case V.ui.keyCode.SPACE:this._activate(t);break;case V.ui.keyCode.ESCAPE:this.collapse(t);break;default:e=this.previousFilter||"",s=n=!1,i=96<=t.keyCode&&t.keyCode<=105?(t.keyCode-96).toString():String.fromCharCode(t.keyCode),clearTimeout(this.filterTimer),i===e?s=!0:i=e+i,e=this._filterMenuItems(i),(e=s&&-1!==e.index(this.active.next())?this.active.nextAll(".ui-menu-item"):e).length||(i=String.fromCharCode(t.keyCode),e=this._filterMenuItems(i)),e.length?(this.focus(t,e),this.previousFilter=i,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}n&&t.preventDefault()},_activate:function(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var t,e,s=this,n=this.options.icons.submenu,i=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),e=i.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=V(this),e=t.prev(),i=V("<span>").data("ui-menu-submenu-caret",!0);s._addClass(i,"ui-menu-icon","ui-icon "+n),e.attr("aria-haspopup","true").prepend(i),t.attr("aria-labelledby",e.attr("id"))}),this._addClass(e,"ui-menu","ui-widget ui-widget-content ui-front"),(t=i.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var t=V(this);s._isDivider(t)&&s._addClass(t,"ui-menu-divider","ui-widget-content")}),i=(e=t.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(e,"ui-menu-item")._addClass(i,"ui-menu-item-wrapper"),t.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!V.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){var i;"icons"===t&&(i=this.element.find(".ui-menu-icon"),this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,e.submenu)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",String(t)),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var i;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),i=this.active.children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",i.attr("id")),i=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(i=e.children(".ui-menu")).length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(t){var e,i,s;this._hasScroll()&&(i=parseFloat(V.css(this.activeMenu[0],"borderTopWidth"))||0,s=parseFloat(V.css(this.activeMenu[0],"paddingTop"))||0,e=t.offset().top-this.activeMenu.offset().top-i-s,i=this.activeMenu.scrollTop(),s=this.activeMenu.height(),t=t.outerHeight(),e<0?this.activeMenu.scrollTop(i+e):s<e+t&&this.activeMenu.scrollTop(i+e-s+t))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",t,{item:this.active}),this.active=null)},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(t){var e=V.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true"),t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(e)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay(function(){var t=i?this.element:V(e&&e.target).closest(this.element.find(".ui-menu"));t.length||(t=this.element),this._close(t),this.blur(e),this._removeClass(t.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=t},i?0:this.delay)},_close:function(t){(t=t||(this.active?this.active.parent():this.element)).find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(t){return!V(t.target).closest(".ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this._menuItems(this.active.children(".ui-menu")).first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_menuItems:function(t){return(t||this.element).find(this.options.items).filter(".ui-menu-item")},_move:function(t,e,i){var s;(s=this.active?"first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").last():this.active[t+"All"](".ui-menu-item").first():s)&&s.length&&this.active||(s=this._menuItems(this.activeMenu)[e]()),this.focus(i,s)},nextPage:function(t){var e,i,s;this.active?this.isLastItem()||(this._hasScroll()?(i=this.active.offset().top,s=this.element.innerHeight(),0===V.fn.jquery.indexOf("3.2.")&&(s+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.nextAll(".ui-menu-item").each(function(){return(e=V(this)).offset().top-i-s<0}),this.focus(t,e)):this.focus(t,this._menuItems(this.activeMenu)[this.active?"last":"first"]())):this.next(t)},previousPage:function(t){var e,i,s;this.active?this.isFirstItem()||(this._hasScroll()?(i=this.active.offset().top,s=this.element.innerHeight(),0===V.fn.jquery.indexOf("3.2.")&&(s+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.prevAll(".ui-menu-item").each(function(){return 0<(e=V(this)).offset().top-i+s}),this.focus(t,e)):this.focus(t,this._menuItems(this.activeMenu).first())):this.next(t)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(t){this.active=this.active||V(t.target).closest(".ui-menu-item");var e={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(t,!0),this._trigger("select",t,e)},_filterMenuItems:function(t){var t=t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),e=new RegExp("^"+t,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return e.test(String.prototype.trim.call(V(this).children(".ui-menu-item-wrapper").text()))})}});V.widget("ui.autocomplete",{version:"1.13.0",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var i,s,n,t=this.element[0].nodeName.toLowerCase(),e="textarea"===t,t="input"===t;this.isMultiLine=e||!t&&this._isContentEditable(this.element),this.valueMethod=this.element[e||t?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(t){if(this.element.prop("readOnly"))s=n=i=!0;else{s=n=i=!1;var e=V.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:i=!0,this._move("previousPage",t);break;case e.PAGE_DOWN:i=!0,this._move("nextPage",t);break;case e.UP:i=!0,this._keyEvent("previous",t);break;case e.DOWN:i=!0,this._keyEvent("next",t);break;case e.ENTER:this.menu.active&&(i=!0,t.preventDefault(),this.menu.select(t));break;case e.TAB:this.menu.active&&this.menu.select(t);break;case e.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(t),t.preventDefault());break;default:s=!0,this._searchTimeout(t)}}},keypress:function(t){if(i)return i=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||t.preventDefault());if(!s){var e=V.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:this._move("previousPage",t);break;case e.PAGE_DOWN:this._move("nextPage",t);break;case e.UP:this._keyEvent("previous",t);break;case e.DOWN:this._keyEvent("next",t)}}},input:function(t){if(n)return n=!1,void t.preventDefault();this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){clearTimeout(this.searching),this.close(t),this._change(t)}}),this._initSource(),this.menu=V("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().attr({unselectable:"on"}).menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(t){t.preventDefault()},menufocus:function(t,e){var i;if(this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent&&/^mouse/.test(t.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",function(){V(t.target).trigger(t.originalEvent)});i=e.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",t,{item:i})&&t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(i.value),(i=e.item.attr("aria-label")||i.value)&&String.prototype.trim.call(i).length&&(this.liveRegion.children().hide(),V("<div>").text(i).appendTo(this.liveRegion))},menuselect:function(t,e){var i=e.item.data("ui-autocomplete-item"),s=this.previous;this.element[0]!==V.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=s,this._delay(function(){this.previous=s,this.selectedItem=i})),!1!==this._trigger("select",t,{item:i})&&this._value(i.value),this.term=this._value(),this.close(t),this.selectedItem=i}}),this.liveRegion=V("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(t){var e=this.menu.element[0];return t.target===this.element[0]||t.target===e||V.contains(e,t.target)},_closeOnClickOutside:function(t){this._isEventTargetInWidget(t)||this.close()},_appendTo:function(){var t=this.options.appendTo;return t=!(t=!(t=t&&(t.jquery||t.nodeType?V(t):this.document.find(t).eq(0)))||!t[0]?this.element.closest(".ui-front, dialog"):t).length?this.document[0].body:t},_initSource:function(){var i,s,n=this;Array.isArray(this.options.source)?(i=this.options.source,this.source=function(t,e){e(V.ui.autocomplete.filter(i,t.term))}):"string"==typeof this.options.source?(s=this.options.source,this.source=function(t,e){n.xhr&&n.xhr.abort(),n.xhr=V.ajax({url:s,data:t,dataType:"json",success:function(t){e(t)},error:function(){e([])}})}):this.source=this.options.source},_searchTimeout:function(s){clearTimeout(this.searching),this.searching=this._delay(function(){var t=this.term===this._value(),e=this.menu.element.is(":visible"),i=s.altKey||s.ctrlKey||s.metaKey||s.shiftKey;t&&(e||i)||(this.selectedItem=null,this.search(null,s))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):!1!==this._trigger("search",e)?this._search(t):void 0},_search:function(t){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var e=++this.requestIndex;return function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")}.bind(this)},__response:function(t){t=t&&this._normalize(t),this._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(t){return t.length&&t[0].label&&t[0].value?t:V.map(t,function(t){return"string"==typeof t?{label:t,value:t}:V.extend({},t,{label:t.label||t.value,value:t.value||t.label})})},_suggest:function(t){var e=this.menu.element.empty();this._renderMenu(e,t),this.isNewMenu=!0,this.menu.refresh(),e.show(),this._resizeMenu(),e.position(V.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(i,t){var s=this;V.each(t,function(t,e){s._renderItemData(i,e)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(t,e){return V("<li>").append(V("<div>").text(e.label)).appendTo(t)},_move:function(t,e){if(this.menu.element.is(":visible"))return this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[t](e);this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(t,e),e.preventDefault())},_isContentEditable:function(t){if(!t.length)return!1;var e=t.prop("contentEditable");return"inherit"===e?this._isContentEditable(t.parent()):"true"===e}}),V.extend(V.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,e){var i=new RegExp(V.ui.autocomplete.escapeRegex(e),"i");return V.grep(t,function(t){return i.test(t.label||t.value||t)})}}),V.widget("ui.autocomplete",V.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(1<t?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){this._superApply(arguments),this.options.disabled||this.cancelSearch||(t=t&&t.length?this.options.messages.results(t.length):this.options.messages.noResults,this.liveRegion.children().hide(),V("<div>").text(t).appendTo(this.liveRegion))}});V.ui.autocomplete;var m=/ui-corner-([a-z]){2,6}/g;V.widget("ui.controlgroup",{version:"1.13.0",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var o=this,a=[];V.each(this.options.items,function(s,t){var e,n={};if(t)return"controlgroupLabel"===s?((e=o.element.find(t)).each(function(){var t=V(this);t.children(".ui-controlgroup-label-contents").length||t.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")}),o._addClass(e,null,"ui-widget ui-widget-content ui-state-default"),void(a=a.concat(e.get()))):void(V.fn[s]&&(n=o["_"+s+"Options"]?o["_"+s+"Options"]("middle"):{classes:{}},o.element.find(t).each(function(){var t=V(this),e=t[s]("instance"),i=V.widget.extend({},n);"button"===s&&t.parent(".ui-spinner").length||((e=e||t[s]()[s]("instance"))&&(i.classes=o._resolveClassesValues(i.classes,e)),t[s](i),i=t[s]("widget"),V.data(i[0],"ui-controlgroup-data",e||t[s]("instance")),a.push(i[0]))})))}),this.childWidgets=V(V.uniqueSort(a)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(e){this.childWidgets.each(function(){var t=V(this).data("ui-controlgroup-data");t&&t[e]&&t[e]()})},_updateCornerClass:function(t,e){e=this._buildSimpleOptions(e,"label").classes.label;this._removeClass(t,null,"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all"),this._addClass(t,null,e)},_buildSimpleOptions:function(t,e){var i="vertical"===this.options.direction,s={classes:{}};return s.classes[e]={middle:"",first:"ui-corner-"+(i?"top":"left"),last:"ui-corner-"+(i?"bottom":"right"),only:"ui-corner-all"}[t],s},_spinnerOptions:function(t){t=this._buildSimpleOptions(t,"ui-spinner");return t.classes["ui-spinner-up"]="",t.classes["ui-spinner-down"]="",t},_buttonOptions:function(t){return this._buildSimpleOptions(t,"ui-button")},_checkboxradioOptions:function(t){return this._buildSimpleOptions(t,"ui-checkboxradio-label")},_selectmenuOptions:function(t){var e="vertical"===this.options.direction;return{width:e&&"auto",classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(e?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(e?"top":"left")},last:{"ui-selectmenu-button-open":e?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(e?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[t]}},_resolveClassesValues:function(i,s){var n={};return V.each(i,function(t){var e=s.options.classes[t]||"",e=String.prototype.trim.call(e.replace(m,""));n[t]=(e+" "+i[t]).replace(/\s+/g," ")}),n},_setOption:function(t,e){"direction"===t&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(t,e),"disabled"!==t?this.refresh():this._callChildMethod(e?"disable":"enable")},refresh:function(){var n,o=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),n=this.childWidgets,(n=this.options.onlyVisible?n.filter(":visible"):n).length&&(V.each(["first","last"],function(t,e){var i,s=n[e]().data("ui-controlgroup-data");s&&o["_"+s.widgetName+"Options"]?((i=o["_"+s.widgetName+"Options"](1===n.length?"only":e)).classes=o._resolveClassesValues(i.classes,s),s.element[s.widgetName](i)):o._updateCornerClass(n[e](),e)}),this._callChildMethod("refresh"))}});V.widget("ui.checkboxradio",[V.ui.formResetMixin,{version:"1.13.0",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var t,e=this,i=this._super()||{};return this._readType(),t=this.element.labels(),this.label=V(t[t.length-1]),this.label.length||V.error("No label found for checkboxradio widget"),this.originalLabel="",this.label.contents().not(this.element[0]).each(function(){e.originalLabel+=3===this.nodeType?V(this).text():this.outerHTML}),this.originalLabel&&(i.label=this.originalLabel),null!=(t=this.element[0].disabled)&&(i.disabled=t),i},_create:function(){var t=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),t&&this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var t=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type,"input"===t&&/radio|checkbox/.test(this.type)||V.error("Can't create checkboxradio on element.nodeName="+t+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var t=this.element[0].name,e="input[name='"+V.escapeSelector(t)+"']";return t?(this.form.length?V(this.form[0].elements).filter(e):V(e).filter(function(){return 0===V(this)._form().length})).not(this.element):V([])},_toggleClasses:function(){var t=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",t)._toggleClass(this.icon,null,"ui-icon-blank",!t),"radio"===this.type&&this._getRadioGroup().each(function(){var t=V(this).checkboxradio("instance");t&&t._removeClass(t.label,"ui-checkboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(t,e){if("label"!==t||e){if(this._super(t,e),"disabled"===t)return this._toggleClass(this.label,null,"ui-state-disabled",e),void(this.element[0].disabled=e);this.refresh()}},_updateIcon:function(t){var e="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=V("<span>"),this.iconSpace=V("<span> </span>"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(e+=t?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,t?"ui-icon-blank":"ui-icon-check")):e+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",e),t||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var t=this.label.contents().not(this.element[0]);this.icon&&(t=t.not(this.icon[0])),(t=this.iconSpace?t.not(this.iconSpace[0]):t).remove(),this.label.append(this.options.label)},refresh:function(){var t=this.element[0].checked,e=this.element[0].disabled;this._updateIcon(t),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t),null!==this.options.label&&this._updateLabel(),e!==this.options.disabled&&this._setOptions({disabled:e})}}]);var _;V.ui.checkboxradio;V.widget("ui.button",{version:"1.13.0",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var t,e=this._super()||{};return this.isInput=this.element.is("input"),null!=(t=this.element[0].disabled)&&(e.disabled=t),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(e.label=this.originalLabel),e},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label)),this._addClass("ui-button","ui-widget"),this._setOption("disabled",this.options.disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(t){t.keyCode===V.ui.keyCode.SPACE&&(t.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button"),this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title"),this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(t,e){var i="iconPosition"!==t,s=i?this.options.iconPosition:e,t="top"===s||"bottom"===s;this.icon?i&&this._removeClass(this.icon,null,this.options.icon):(this.icon=V("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),i&&this._addClass(this.icon,null,e),this._attachIcon(s),t?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconSpace||(this.iconSpace=V("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(s))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(t){this.icon[/^(?:end|bottom)/.test(t)?"before":"after"](this.iconSpace)},_attachIcon:function(t){this.element[/^(?:end|bottom)/.test(t)?"append":"prepend"](this.icon)},_setOptions:function(t){var e=(void 0===t.showLabel?this.options:t).showLabel,i=(void 0===t.icon?this.options:t).icon;e||i||(t.showLabel=!0),this._super(t)},_setOption:function(t,e){"icon"===t&&(e?this._updateIcon(t,e):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove())),"iconPosition"===t&&this._updateIcon(t,e),"showLabel"===t&&(this._toggleClass("ui-button-icon-only",null,!e),this._updateTooltip()),"label"===t&&(this.isInput?this.element.val(e):(this.element.html(e),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(t,e),"disabled"===t&&(this._toggleClass(null,"ui-state-disabled",e),(this.element[0].disabled=e)&&this.element.trigger("blur"))},refresh:function(){var t=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");t!==this.options.disabled&&this._setOptions({disabled:t}),this._updateTooltip()}}),!1!==V.uiBackCompat&&(V.widget("ui.button",V.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel),this.options.icon||!this.options.icons.primary&&!this.options.icons.secondary?this.options.icon&&(this.options.icons.primary=this.options.icon):this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"),this._super()},_setOption:function(t,e){"text"!==t?("showLabel"===t&&(this.options.text=e),"icon"===t&&(this.options.icons.primary=e),"icons"===t&&(e.primary?(this._super("icon",e.primary),this._super("iconPosition","beginning")):e.secondary&&(this._super("icon",e.secondary),this._super("iconPosition","end"))),this._superApply(arguments)):this._super("showLabel",e)}}),V.fn.button=(_=V.fn.button,function(i){var t="string"==typeof i,s=Array.prototype.slice.call(arguments,1),n=this;return t?this.length||"instance"!==i?this.each(function(){var t=V(this).attr("type"),e=V.data(this,"ui-"+("checkbox"!==t&&"radio"!==t?"button":"checkboxradio"));return"instance"===i?(n=e,!1):e?"function"!=typeof e[i]||"_"===i.charAt(0)?V.error("no such method '"+i+"' for button widget instance"):(t=e[i].apply(e,s))!==e&&void 0!==t?(n=t&&t.jquery?n.pushStack(t.get()):t,!1):void 0:V.error("cannot call methods on button prior to initialization; attempted to call method '"+i+"'")}):n=void 0:(s.length&&(i=V.widget.extend.apply(null,[i].concat(s))),this.each(function(){var t=V(this).attr("type"),e="checkbox"!==t&&"radio"!==t?"button":"checkboxradio",t=V.data(this,"ui-"+e);t?(t.option(i||{}),t._init&&t._init()):"button"!=e?V(this).checkboxradio(V.extend({icon:!1},i)):_.call(V(this),i)})),n}),V.fn.buttonset=function(){return V.ui.controlgroup||V.error("Controlgroup widget missing"),"option"===arguments[0]&&"items"===arguments[1]&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):"option"===arguments[0]&&"items"===arguments[1]?this.controlgroup.apply(this,[arguments[0],"items.button"]):("object"==typeof arguments[0]&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))});var v;V.ui.button;function b(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:"",selectMonthLabel:"Select month",selectYearLabel:"Select year"},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,onUpdateDatepicker:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},V.extend(this._defaults,this.regional[""]),this.regional.en=V.extend(!0,{},this.regional[""]),this.regional["en-US"]=V.extend(!0,{},this.regional.en),this.dpDiv=y(V("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function y(t){var e="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.on("mouseout",e,function(){V(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&V(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&V(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",e,w)}function w(){V.datepicker._isDisabledDatepicker((v.inline?v.dpDiv.parent():v.input)[0])||(V(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),V(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&V(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&V(this).addClass("ui-datepicker-next-hover"))}function P(t,e){for(var i in V.extend(t,e),e)null==e[i]&&(t[i]=e[i]);return t}V.extend(V.ui,{datepicker:{version:"1.13.0"}}),V.extend(b.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return P(this._defaults,t||{}),this},_attachDatepicker:function(t,e){var i,s=t.nodeName.toLowerCase(),n="div"===s||"span"===s;t.id||(this.uuid+=1,t.id="dp"+this.uuid),(i=this._newInst(V(t),n)).settings=V.extend({},e||{}),"input"===s?this._connectDatepicker(t,i):n&&this._inlineDatepicker(t,i)},_newInst:function(t,e){return{id:t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:e,dpDiv:e?y(V("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(t,e){var i=V(t);e.append=V([]),e.trigger=V([]),i.hasClass(this.markerClassName)||(this._attachments(i,e),i.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(e),V.data(t,"datepicker",e),e.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,e){var i,s=this._get(e,"appendText"),n=this._get(e,"isRTL");e.append&&e.append.remove(),s&&(e.append=V("<span>").addClass(this._appendClass).text(s),t[n?"before":"after"](e.append)),t.off("focus",this._showDatepicker),e.trigger&&e.trigger.remove(),"focus"!==(i=this._get(e,"showOn"))&&"both"!==i||t.on("focus",this._showDatepicker),"button"!==i&&"both"!==i||(s=this._get(e,"buttonText"),i=this._get(e,"buttonImage"),this._get(e,"buttonImageOnly")?e.trigger=V("<img>").addClass(this._triggerClass).attr({src:i,alt:s,title:s}):(e.trigger=V("<button type='button'>").addClass(this._triggerClass),i?e.trigger.html(V("<img>").attr({src:i,alt:s,title:s})):e.trigger.text(s)),t[n?"before":"after"](e.trigger),e.trigger.on("click",function(){return V.datepicker._datepickerShowing&&V.datepicker._lastInput===t[0]?V.datepicker._hideDatepicker():(V.datepicker._datepickerShowing&&V.datepicker._lastInput!==t[0]&&V.datepicker._hideDatepicker(),V.datepicker._showDatepicker(t[0])),!1}))},_autoSize:function(t){var e,i,s,n,o,a;this._get(t,"autoSize")&&!t.inline&&(o=new Date(2009,11,20),(a=this._get(t,"dateFormat")).match(/[DM]/)&&(e=function(t){for(n=s=i=0;n<t.length;n++)t[n].length>i&&(i=t[n].length,s=n);return s},o.setMonth(e(this._get(t,a.match(/MM/)?"monthNames":"monthNamesShort"))),o.setDate(e(this._get(t,a.match(/DD/)?"dayNames":"dayNamesShort"))+20-o.getDay())),t.input.attr("size",this._formatDate(t,o).length))},_inlineDatepicker:function(t,e){var i=V(t);i.hasClass(this.markerClassName)||(i.addClass(this.markerClassName).append(e.dpDiv),V.data(t,"datepicker",e),this._setDate(e,this._getDefaultDate(e),!0),this._updateDatepicker(e),this._updateAlternate(e),e.settings.disabled&&this._disableDatepicker(t),e.dpDiv.css("display","block"))},_dialogDatepicker:function(t,e,i,s,n){var o,a=this._dialogInst;return a||(this.uuid+=1,o="dp"+this.uuid,this._dialogInput=V("<input type='text' id='"+o+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),V("body").append(this._dialogInput),(a=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},V.data(this._dialogInput[0],"datepicker",a)),P(a.settings,s||{}),e=e&&e.constructor===Date?this._formatDate(a,e):e,this._dialogInput.val(e),this._pos=n?n.length?n:[n.pageX,n.pageY]:null,this._pos||(o=document.documentElement.clientWidth,s=document.documentElement.clientHeight,e=document.documentElement.scrollLeft||document.body.scrollLeft,n=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[o/2-100+e,s/2-150+n]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),a.settings.onSelect=i,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),V.blockUI&&V.blockUI(this.dpDiv),V.data(this._dialogInput[0],"datepicker",a),this},_destroyDatepicker:function(t){var e,i=V(t),s=V.data(t,"datepicker");i.hasClass(this.markerClassName)&&(e=t.nodeName.toLowerCase(),V.removeData(t,"datepicker"),"input"===e?(s.append.remove(),s.trigger.remove(),i.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==e&&"span"!==e||i.removeClass(this.markerClassName).empty(),v===s&&(v=null,this._curInst=null))},_enableDatepicker:function(e){var t,i=V(e),s=V.data(e,"datepicker");i.hasClass(this.markerClassName)&&("input"===(t=e.nodeName.toLowerCase())?(e.disabled=!1,s.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==t&&"span"!==t||((i=i.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=V.map(this._disabledInputs,function(t){return t===e?null:t}))},_disableDatepicker:function(e){var t,i=V(e),s=V.data(e,"datepicker");i.hasClass(this.markerClassName)&&("input"===(t=e.nodeName.toLowerCase())?(e.disabled=!0,s.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==t&&"span"!==t||((i=i.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=V.map(this._disabledInputs,function(t){return t===e?null:t}),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;e<this._disabledInputs.length;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(t){try{return V.data(t,"datepicker")}catch(t){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,e,i){var s,n,o=this._getInst(t);if(2===arguments.length&&"string"==typeof e)return"defaults"===e?V.extend({},V.datepicker._defaults):o?"all"===e?V.extend({},o.settings):this._get(o,e):null;s=e||{},"string"==typeof e&&((s={})[e]=i),o&&(this._curInst===o&&this._hideDatepicker(),n=this._getDateDatepicker(t,!0),e=this._getMinMaxDate(o,"min"),i=this._getMinMaxDate(o,"max"),P(o.settings,s),null!==e&&void 0!==s.dateFormat&&void 0===s.minDate&&(o.settings.minDate=this._formatDate(o,e)),null!==i&&void 0!==s.dateFormat&&void 0===s.maxDate&&(o.settings.maxDate=this._formatDate(o,i)),"disabled"in s&&(s.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(V(t),o),this._autoSize(o),this._setDate(o,n),this._updateAlternate(o),this._updateDatepicker(o))},_changeDatepicker:function(t,e,i){this._optionDatepicker(t,e,i)},_refreshDatepicker:function(t){t=this._getInst(t);t&&this._updateDatepicker(t)},_setDateDatepicker:function(t,e){t=this._getInst(t);t&&(this._setDate(t,e),this._updateDatepicker(t),this._updateAlternate(t))},_getDateDatepicker:function(t,e){t=this._getInst(t);return t&&!t.inline&&this._setDateFromField(t,e),t?this._getDate(t):null},_doKeyDown:function(t){var e,i,s=V.datepicker._getInst(t.target),n=!0,o=s.dpDiv.is(".ui-datepicker-rtl");if(s._keyEvent=!0,V.datepicker._datepickerShowing)switch(t.keyCode){case 9:V.datepicker._hideDatepicker(),n=!1;break;case 13:return(i=V("td."+V.datepicker._dayOverClass+":not(."+V.datepicker._currentClass+")",s.dpDiv))[0]&&V.datepicker._selectDay(t.target,s.selectedMonth,s.selectedYear,i[0]),(e=V.datepicker._get(s,"onSelect"))?(i=V.datepicker._formatDate(s),e.apply(s.input?s.input[0]:null,[i,s])):V.datepicker._hideDatepicker(),!1;case 27:V.datepicker._hideDatepicker();break;case 33:V.datepicker._adjustDate(t.target,t.ctrlKey?-V.datepicker._get(s,"stepBigMonths"):-V.datepicker._get(s,"stepMonths"),"M");break;case 34:V.datepicker._adjustDate(t.target,t.ctrlKey?+V.datepicker._get(s,"stepBigMonths"):+V.datepicker._get(s,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&V.datepicker._clearDate(t.target),n=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&V.datepicker._gotoToday(t.target),n=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&V.datepicker._adjustDate(t.target,o?1:-1,"D"),n=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&V.datepicker._adjustDate(t.target,t.ctrlKey?-V.datepicker._get(s,"stepBigMonths"):-V.datepicker._get(s,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&V.datepicker._adjustDate(t.target,-7,"D"),n=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&V.datepicker._adjustDate(t.target,o?-1:1,"D"),n=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&V.datepicker._adjustDate(t.target,t.ctrlKey?+V.datepicker._get(s,"stepBigMonths"):+V.datepicker._get(s,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&V.datepicker._adjustDate(t.target,7,"D"),n=t.ctrlKey||t.metaKey;break;default:n=!1}else 36===t.keyCode&&t.ctrlKey?V.datepicker._showDatepicker(this):n=!1;n&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var e,i=V.datepicker._getInst(t.target);if(V.datepicker._get(i,"constrainInput"))return e=V.datepicker._possibleChars(V.datepicker._get(i,"dateFormat")),i=String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||i<" "||!e||-1<e.indexOf(i)},_doKeyUp:function(t){t=V.datepicker._getInst(t.target);if(t.input.val()!==t.lastVal)try{V.datepicker.parseDate(V.datepicker._get(t,"dateFormat"),t.input?t.input.val():null,V.datepicker._getFormatConfig(t))&&(V.datepicker._setDateFromField(t),V.datepicker._updateAlternate(t),V.datepicker._updateDatepicker(t))}catch(t){}return!0},_showDatepicker:function(t){var e,i,s,n;"input"!==(t=t.target||t).nodeName.toLowerCase()&&(t=V("input",t.parentNode)[0]),V.datepicker._isDisabledDatepicker(t)||V.datepicker._lastInput===t||(n=V.datepicker._getInst(t),V.datepicker._curInst&&V.datepicker._curInst!==n&&(V.datepicker._curInst.dpDiv.stop(!0,!0),n&&V.datepicker._datepickerShowing&&V.datepicker._hideDatepicker(V.datepicker._curInst.input[0])),!1!==(i=(s=V.datepicker._get(n,"beforeShow"))?s.apply(t,[t,n]):{})&&(P(n.settings,i),n.lastVal=null,V.datepicker._lastInput=t,V.datepicker._setDateFromField(n),V.datepicker._inDialog&&(t.value=""),V.datepicker._pos||(V.datepicker._pos=V.datepicker._findPos(t),V.datepicker._pos[1]+=t.offsetHeight),e=!1,V(t).parents().each(function(){return!(e|="fixed"===V(this).css("position"))}),s={left:V.datepicker._pos[0],top:V.datepicker._pos[1]},V.datepicker._pos=null,n.dpDiv.empty(),n.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),V.datepicker._updateDatepicker(n),s=V.datepicker._checkOffset(n,s,e),n.dpDiv.css({position:V.datepicker._inDialog&&V.blockUI?"static":e?"fixed":"absolute",display:"none",left:s.left+"px",top:s.top+"px"}),n.inline||(i=V.datepicker._get(n,"showAnim"),s=V.datepicker._get(n,"duration"),n.dpDiv.css("z-index",function(t){for(var e,i;t.length&&t[0]!==document;){if(("absolute"===(e=t.css("position"))||"relative"===e||"fixed"===e)&&(i=parseInt(t.css("zIndex"),10),!isNaN(i)&&0!==i))return i;t=t.parent()}return 0}(V(t))+1),V.datepicker._datepickerShowing=!0,V.effects&&V.effects.effect[i]?n.dpDiv.show(i,V.datepicker._get(n,"showOptions"),s):n.dpDiv[i||"show"](i?s:null),V.datepicker._shouldFocusInput(n)&&n.input.trigger("focus"),V.datepicker._curInst=n)))},_updateDatepicker:function(t){this.maxRows=4,(v=t).dpDiv.empty().append(this._generateHTML(t)),this._attachHandlers(t);var e,i=this._getNumberOfMonths(t),s=i[1],n=t.dpDiv.find("."+this._dayOverClass+" a"),o=V.datepicker._get(t,"onUpdateDatepicker");0<n.length&&w.apply(n.get(0)),t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),1<s&&t.dpDiv.addClass("ui-datepicker-multi-"+s).css("width",17*s+"em"),t.dpDiv[(1!==i[0]||1!==i[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),t===V.datepicker._curInst&&V.datepicker._datepickerShowing&&V.datepicker._shouldFocusInput(t)&&t.input.trigger("focus"),t.yearshtml&&(e=t.yearshtml,setTimeout(function(){e===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year").first().replaceWith(t.yearshtml),e=t.yearshtml=null},0)),o&&o.apply(t.input?t.input[0]:null,[t])},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&!t.input.is(":focus")},_checkOffset:function(t,e,i){var s=t.dpDiv.outerWidth(),n=t.dpDiv.outerHeight(),o=t.input?t.input.outerWidth():0,a=t.input?t.input.outerHeight():0,r=document.documentElement.clientWidth+(i?0:V(document).scrollLeft()),l=document.documentElement.clientHeight+(i?0:V(document).scrollTop());return e.left-=this._get(t,"isRTL")?s-o:0,e.left-=i&&e.left===t.input.offset().left?V(document).scrollLeft():0,e.top-=i&&e.top===t.input.offset().top+a?V(document).scrollTop():0,e.left-=Math.min(e.left,e.left+s>r&&s<r?Math.abs(e.left+s-r):0),e.top-=Math.min(e.top,e.top+n>l&&n<l?Math.abs(n+a):0),e},_findPos:function(t){for(var e=this._getInst(t),i=this._get(e,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||V.expr.pseudos.hidden(t));)t=t[i?"previousSibling":"nextSibling"];return[(e=V(t).offset()).left,e.top]},_hideDatepicker:function(t){var e,i,s=this._curInst;!s||t&&s!==V.data(t,"datepicker")||this._datepickerShowing&&(e=this._get(s,"showAnim"),i=this._get(s,"duration"),t=function(){V.datepicker._tidyDialog(s)},V.effects&&(V.effects.effect[e]||V.effects[e])?s.dpDiv.hide(e,V.datepicker._get(s,"showOptions"),i,t):s.dpDiv["slideDown"===e?"slideUp":"fadeIn"===e?"fadeOut":"hide"](e?i:null,t),e||t(),this._datepickerShowing=!1,(t=this._get(s,"onClose"))&&t.apply(s.input?s.input[0]:null,[s.input?s.input.val():"",s]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),V.blockUI&&(V.unblockUI(),V("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(t){var e;V.datepicker._curInst&&(e=V(t.target),t=V.datepicker._getInst(e[0]),(e[0].id===V.datepicker._mainDivId||0!==e.parents("#"+V.datepicker._mainDivId).length||e.hasClass(V.datepicker.markerClassName)||e.closest("."+V.datepicker._triggerClass).length||!V.datepicker._datepickerShowing||V.datepicker._inDialog&&V.blockUI)&&(!e.hasClass(V.datepicker.markerClassName)||V.datepicker._curInst===t)||V.datepicker._hideDatepicker())},_adjustDate:function(t,e,i){var s=V(t),t=this._getInst(s[0]);this._isDisabledDatepicker(s[0])||(this._adjustInstDate(t,e,i),this._updateDatepicker(t))},_gotoToday:function(t){var e=V(t),i=this._getInst(e[0]);this._get(i,"gotoCurrent")&&i.currentDay?(i.selectedDay=i.currentDay,i.drawMonth=i.selectedMonth=i.currentMonth,i.drawYear=i.selectedYear=i.currentYear):(t=new Date,i.selectedDay=t.getDate(),i.drawMonth=i.selectedMonth=t.getMonth(),i.drawYear=i.selectedYear=t.getFullYear()),this._notifyChange(i),this._adjustDate(e)},_selectMonthYear:function(t,e,i){var s=V(t),t=this._getInst(s[0]);t["selected"+("M"===i?"Month":"Year")]=t["draw"+("M"===i?"Month":"Year")]=parseInt(e.options[e.selectedIndex].value,10),this._notifyChange(t),this._adjustDate(s)},_selectDay:function(t,e,i,s){var n=V(t);V(s).hasClass(this._unselectableClass)||this._isDisabledDatepicker(n[0])||((n=this._getInst(n[0])).selectedDay=n.currentDay=parseInt(V("a",s).attr("data-date")),n.selectedMonth=n.currentMonth=e,n.selectedYear=n.currentYear=i,this._selectDate(t,this._formatDate(n,n.currentDay,n.currentMonth,n.currentYear)))},_clearDate:function(t){t=V(t);this._selectDate(t,"")},_selectDate:function(t,e){var i=V(t),t=this._getInst(i[0]);e=null!=e?e:this._formatDate(t),t.input&&t.input.val(e),this._updateAlternate(t),(i=this._get(t,"onSelect"))?i.apply(t.input?t.input[0]:null,[e,t]):t.input&&t.input.trigger("change"),t.inline?this._updateDatepicker(t):(this._hideDatepicker(),this._lastInput=t.input[0],"object"!=typeof t.input[0]&&t.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(t){var e,i,s=this._get(t,"altField");s&&(e=this._get(t,"altFormat")||this._get(t,"dateFormat"),i=this._getDate(t),t=this.formatDate(e,i,this._getFormatConfig(t)),V(document).find(s).val(t))},noWeekends:function(t){t=t.getDay();return[0<t&&t<6,""]},iso8601Week:function(t){var e=new Date(t.getTime());return e.setDate(e.getDate()+4-(e.getDay()||7)),t=e.getTime(),e.setMonth(0),e.setDate(1),Math.floor(Math.round((t-e)/864e5)/7)+1},parseDate:function(e,n,t){if(null==e||null==n)throw"Invalid arguments";if(""===(n="object"==typeof n?n.toString():n+""))return null;for(var i,s,o,a=0,r=(t?t.shortYearCutoff:null)||this._defaults.shortYearCutoff,r="string"!=typeof r?r:(new Date).getFullYear()%100+parseInt(r,10),l=(t?t.dayNamesShort:null)||this._defaults.dayNamesShort,h=(t?t.dayNames:null)||this._defaults.dayNames,c=(t?t.monthNamesShort:null)||this._defaults.monthNamesShort,u=(t?t.monthNames:null)||this._defaults.monthNames,d=-1,p=-1,f=-1,g=-1,m=!1,_=function(t){t=w+1<e.length&&e.charAt(w+1)===t;return t&&w++,t},v=function(t){var e=_(t),e="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,e=new RegExp("^\\d{"+("y"===t?e:1)+","+e+"}"),e=n.substring(a).match(e);if(!e)throw"Missing number at position "+a;return a+=e[0].length,parseInt(e[0],10)},b=function(t,e,i){var s=-1,e=V.map(_(t)?i:e,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)});if(V.each(e,function(t,e){var i=e[1];if(n.substr(a,i.length).toLowerCase()===i.toLowerCase())return s=e[0],a+=i.length,!1}),-1!==s)return s+1;throw"Unknown name at position "+a},y=function(){if(n.charAt(a)!==e.charAt(w))throw"Unexpected literal at position "+a;a++},w=0;w<e.length;w++)if(m)"'"!==e.charAt(w)||_("'")?y():m=!1;else switch(e.charAt(w)){case"d":f=v("d");break;case"D":b("D",l,h);break;case"o":g=v("o");break;case"m":p=v("m");break;case"M":p=b("M",c,u);break;case"y":d=v("y");break;case"@":d=(o=new Date(v("@"))).getFullYear(),p=o.getMonth()+1,f=o.getDate();break;case"!":d=(o=new Date((v("!")-this._ticksTo1970)/1e4)).getFullYear(),p=o.getMonth()+1,f=o.getDate();break;case"'":_("'")?y():m=!0;break;default:y()}if(a<n.length&&(s=n.substr(a),!/^\s+/.test(s)))throw"Extra/unparsed characters found in date: "+s;if(-1===d?d=(new Date).getFullYear():d<100&&(d+=(new Date).getFullYear()-(new Date).getFullYear()%100+(d<=r?0:-100)),-1<g)for(p=1,f=g;;){if(f<=(i=this._getDaysInMonth(d,p-1)))break;p++,f-=i}if((o=this._daylightSavingAdjust(new Date(d,p-1,f))).getFullYear()!==d||o.getMonth()+1!==p||o.getDate()!==f)throw"Invalid date";return o},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(e,t,i){if(!t)return"";function s(t,e,i){var s=""+e;if(c(t))for(;s.length<i;)s="0"+s;return s}function n(t,e,i,s){return(c(t)?s:i)[e]}var o,a=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,r=(i?i.dayNames:null)||this._defaults.dayNames,l=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,h=(i?i.monthNames:null)||this._defaults.monthNames,c=function(t){t=o+1<e.length&&e.charAt(o+1)===t;return t&&o++,t},u="",d=!1;if(t)for(o=0;o<e.length;o++)if(d)"'"!==e.charAt(o)||c("'")?u+=e.charAt(o):d=!1;else switch(e.charAt(o)){case"d":u+=s("d",t.getDate(),2);break;case"D":u+=n("D",t.getDay(),a,r);break;case"o":u+=s("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":u+=s("m",t.getMonth()+1,2);break;case"M":u+=n("M",t.getMonth(),l,h);break;case"y":u+=c("y")?t.getFullYear():(t.getFullYear()%100<10?"0":"")+t.getFullYear()%100;break;case"@":u+=t.getTime();break;case"!":u+=1e4*t.getTime()+this._ticksTo1970;break;case"'":c("'")?u+="'":d=!0;break;default:u+=e.charAt(o)}return u},_possibleChars:function(e){for(var t="",i=!1,s=function(t){t=n+1<e.length&&e.charAt(n+1)===t;return t&&n++,t},n=0;n<e.length;n++)if(i)"'"!==e.charAt(n)||s("'")?t+=e.charAt(n):i=!1;else switch(e.charAt(n)){case"d":case"m":case"y":case"@":t+="0123456789";break;case"D":case"M":return null;case"'":s("'")?t+="'":i=!0;break;default:t+=e.charAt(n)}return t},_get:function(t,e){return(void 0!==t.settings[e]?t.settings:this._defaults)[e]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var i=this._get(t,"dateFormat"),s=t.lastVal=t.input?t.input.val():null,n=this._getDefaultDate(t),o=n,a=this._getFormatConfig(t);try{o=this.parseDate(i,s,a)||n}catch(t){s=e?"":s}t.selectedDay=o.getDate(),t.drawMonth=t.selectedMonth=o.getMonth(),t.drawYear=t.selectedYear=o.getFullYear(),t.currentDay=s?o.getDate():0,t.currentMonth=s?o.getMonth():0,t.currentYear=s?o.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(r,t,e){var i,s,t=null==t||""===t?e:"string"==typeof t?function(t){try{return V.datepicker.parseDate(V.datepicker._get(r,"dateFormat"),t,V.datepicker._getFormatConfig(r))}catch(t){}for(var e=(t.toLowerCase().match(/^c/)?V.datepicker._getDate(r):null)||new Date,i=e.getFullYear(),s=e.getMonth(),n=e.getDate(),o=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,a=o.exec(t);a;){switch(a[2]||"d"){case"d":case"D":n+=parseInt(a[1],10);break;case"w":case"W":n+=7*parseInt(a[1],10);break;case"m":case"M":s+=parseInt(a[1],10),n=Math.min(n,V.datepicker._getDaysInMonth(i,s));break;case"y":case"Y":i+=parseInt(a[1],10),n=Math.min(n,V.datepicker._getDaysInMonth(i,s))}a=o.exec(t)}return new Date(i,s,n)}(t):"number"==typeof t?isNaN(t)?e:(i=t,(s=new Date).setDate(s.getDate()+i),s):new Date(t.getTime());return(t=t&&"Invalid Date"===t.toString()?e:t)&&(t.setHours(0),t.setMinutes(0),t.setSeconds(0),t.setMilliseconds(0)),this._daylightSavingAdjust(t)},_daylightSavingAdjust:function(t){return t?(t.setHours(12<t.getHours()?t.getHours()+2:0),t):null},_setDate:function(t,e,i){var s=!e,n=t.selectedMonth,o=t.selectedYear,e=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=e.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=e.getMonth(),t.drawYear=t.selectedYear=t.currentYear=e.getFullYear(),n===t.selectedMonth&&o===t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(s?"":this._formatDate(t))},_getDate:function(t){return!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay))},_attachHandlers:function(t){var e=this._get(t,"stepMonths"),i="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map(function(){var t={prev:function(){V.datepicker._adjustDate(i,-e,"M")},next:function(){V.datepicker._adjustDate(i,+e,"M")},hide:function(){V.datepicker._hideDatepicker()},today:function(){V.datepicker._gotoToday(i)},selectDay:function(){return V.datepicker._selectDay(i,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return V.datepicker._selectMonthYear(i,this,"M"),!1},selectYear:function(){return V.datepicker._selectMonthYear(i,this,"Y"),!1}};V(this).on(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e,i,s,n,o,a,r,l,h,c,u,d,p,f,g,m,_,v,b,y,w,x,k,C,D,I,T,P,M,S,H,z,A=new Date,O=this._daylightSavingAdjust(new Date(A.getFullYear(),A.getMonth(),A.getDate())),N=this._get(t,"isRTL"),E=this._get(t,"showButtonPanel"),W=this._get(t,"hideIfNoPrevNext"),F=this._get(t,"navigationAsDateFormat"),L=this._getNumberOfMonths(t),R=this._get(t,"showCurrentAtPos"),A=this._get(t,"stepMonths"),Y=1!==L[0]||1!==L[1],B=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),j=this._getMinMaxDate(t,"min"),q=this._getMinMaxDate(t,"max"),K=t.drawMonth-R,U=t.drawYear;if(K<0&&(K+=12,U--),q)for(e=this._daylightSavingAdjust(new Date(q.getFullYear(),q.getMonth()-L[0]*L[1]+1,q.getDate())),e=j&&e<j?j:e;this._daylightSavingAdjust(new Date(U,K,1))>e;)--K<0&&(K=11,U--);for(t.drawMonth=K,t.drawYear=U,R=this._get(t,"prevText"),R=F?this.formatDate(R,this._daylightSavingAdjust(new Date(U,K-A,1)),this._getFormatConfig(t)):R,i=this._canAdjustMonth(t,-1,U,K)?V("<a>").attr({class:"ui-datepicker-prev ui-corner-all","data-handler":"prev","data-event":"click",title:R}).append(V("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(N?"e":"w")).text(R))[0].outerHTML:W?"":V("<a>").attr({class:"ui-datepicker-prev ui-corner-all ui-state-disabled",title:R}).append(V("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(N?"e":"w")).text(R))[0].outerHTML,R=this._get(t,"nextText"),R=F?this.formatDate(R,this._daylightSavingAdjust(new Date(U,K+A,1)),this._getFormatConfig(t)):R,s=this._canAdjustMonth(t,1,U,K)?V("<a>").attr({class:"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:R}).append(V("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(N?"w":"e")).text(R))[0].outerHTML:W?"":V("<a>").attr({class:"ui-datepicker-next ui-corner-all ui-state-disabled",title:R}).append(V("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(N?"w":"e")).text(R))[0].outerHTML,A=this._get(t,"currentText"),W=this._get(t,"gotoCurrent")&&t.currentDay?B:O,A=F?this.formatDate(A,W,this._getFormatConfig(t)):A,R="",t.inline||(R=V("<button>").attr({type:"button",class:"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all","data-handler":"hide","data-event":"click"}).text(this._get(t,"closeText"))[0].outerHTML),F="",E&&(F=V("<div class='ui-datepicker-buttonpane ui-widget-content'>").append(N?R:"").append(this._isInRange(t,W)?V("<button>").attr({type:"button",class:"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all","data-handler":"today","data-event":"click"}).text(A):"").append(N?"":R)[0].outerHTML),n=parseInt(this._get(t,"firstDay"),10),n=isNaN(n)?0:n,o=this._get(t,"showWeek"),a=this._get(t,"dayNames"),r=this._get(t,"dayNamesMin"),l=this._get(t,"monthNames"),h=this._get(t,"monthNamesShort"),c=this._get(t,"beforeShowDay"),u=this._get(t,"showOtherMonths"),d=this._get(t,"selectOtherMonths"),p=this._getDefaultDate(t),f="",m=0;m<L[0];m++){for(_="",this.maxRows=4,v=0;v<L[1];v++){if(b=this._daylightSavingAdjust(new Date(U,K,t.selectedDay)),y=" ui-corner-all",w="",Y){if(w+="<div class='ui-datepicker-group",1<L[1])switch(v){case 0:w+=" ui-datepicker-group-first",y=" ui-corner-"+(N?"right":"left");break;case L[1]-1:w+=" ui-datepicker-group-last",y=" ui-corner-"+(N?"left":"right");break;default:w+=" ui-datepicker-group-middle",y=""}w+="'>"}for(w+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+y+"'>"+(/all|left/.test(y)&&0===m?N?s:i:"")+(/all|right/.test(y)&&0===m?N?i:s:"")+this._generateMonthYearHeader(t,K,U,j,q,0<m||0<v,l,h)+"</div><table class='ui-datepicker-calendar'><thead><tr>",x=o?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",g=0;g<7;g++)x+="<th scope='col'"+(5<=(g+n+6)%7?" class='ui-datepicker-week-end'":"")+"><span title='"+a[k=(g+n)%7]+"'>"+r[k]+"</span></th>";for(w+=x+"</tr></thead><tbody>",D=this._getDaysInMonth(U,K),U===t.selectedYear&&K===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,D)),C=(this._getFirstDayOfMonth(U,K)-n+7)%7,D=Math.ceil((C+D)/7),I=Y&&this.maxRows>D?this.maxRows:D,this.maxRows=I,T=this._daylightSavingAdjust(new Date(U,K,1-C)),P=0;P<I;P++){for(w+="<tr>",M=o?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(T)+"</td>":"",g=0;g<7;g++)S=c?c.apply(t.input?t.input[0]:null,[T]):[!0,""],z=(H=T.getMonth()!==K)&&!d||!S[0]||j&&T<j||q&&q<T,M+="<td class='"+(5<=(g+n+6)%7?" ui-datepicker-week-end":"")+(H?" ui-datepicker-other-month":"")+(T.getTime()===b.getTime()&&K===t.selectedMonth&&t._keyEvent||p.getTime()===T.getTime()&&p.getTime()===b.getTime()?" "+this._dayOverClass:"")+(z?" "+this._unselectableClass+" ui-state-disabled":"")+(H&&!u?"":" "+S[1]+(T.getTime()===B.getTime()?" "+this._currentClass:"")+(T.getTime()===O.getTime()?" ui-datepicker-today":""))+"'"+(H&&!u||!S[2]?"":" title='"+S[2].replace(/'/g,"&#39;")+"'")+(z?"":" data-handler='selectDay' data-event='click' data-month='"+T.getMonth()+"' data-year='"+T.getFullYear()+"'")+">"+(H&&!u?"&#xa0;":z?"<span class='ui-state-default'>"+T.getDate()+"</span>":"<a class='ui-state-default"+(T.getTime()===O.getTime()?" ui-state-highlight":"")+(T.getTime()===B.getTime()?" ui-state-active":"")+(H?" ui-priority-secondary":"")+"' href='#' aria-current='"+(T.getTime()===B.getTime()?"true":"false")+"' data-date='"+T.getDate()+"'>"+T.getDate()+"</a>")+"</td>",T.setDate(T.getDate()+1),T=this._daylightSavingAdjust(T);w+=M+"</tr>"}11<++K&&(K=0,U++),_+=w+="</tbody></table>"+(Y?"</div>"+(0<L[0]&&v===L[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}f+=_}return f+=F,t._keyEvent=!1,f},_generateMonthYearHeader:function(t,e,i,s,n,o,a,r){var l,h,c,u,d,p,f=this._get(t,"changeMonth"),g=this._get(t,"changeYear"),m=this._get(t,"showMonthAfterYear"),_=this._get(t,"selectMonthLabel"),v=this._get(t,"selectYearLabel"),b="<div class='ui-datepicker-title'>",y="";if(o||!f)y+="<span class='ui-datepicker-month'>"+a[e]+"</span>";else{for(l=s&&s.getFullYear()===i,h=n&&n.getFullYear()===i,y+="<select class='ui-datepicker-month' aria-label='"+_+"' data-handler='selectMonth' data-event='change'>",c=0;c<12;c++)(!l||c>=s.getMonth())&&(!h||c<=n.getMonth())&&(y+="<option value='"+c+"'"+(c===e?" selected='selected'":"")+">"+r[c]+"</option>");y+="</select>"}if(m||(b+=y+(!o&&f&&g?"":"&#xa0;")),!t.yearshtml)if(t.yearshtml="",o||!g)b+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(a=this._get(t,"yearRange").split(":"),u=(new Date).getFullYear(),d=(_=function(t){t=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?u+parseInt(t,10):parseInt(t,10);return isNaN(t)?u:t})(a[0]),p=Math.max(d,_(a[1]||"")),d=s?Math.max(d,s.getFullYear()):d,p=n?Math.min(p,n.getFullYear()):p,t.yearshtml+="<select class='ui-datepicker-year' aria-label='"+v+"' data-handler='selectYear' data-event='change'>";d<=p;d++)t.yearshtml+="<option value='"+d+"'"+(d===i?" selected='selected'":"")+">"+d+"</option>";t.yearshtml+="</select>",b+=t.yearshtml,t.yearshtml=null}return b+=this._get(t,"yearSuffix"),m&&(b+=(!o&&f&&g?"":"&#xa0;")+y),b+="</div>"},_adjustInstDate:function(t,e,i){var s=t.selectedYear+("Y"===i?e:0),n=t.selectedMonth+("M"===i?e:0),e=Math.min(t.selectedDay,this._getDaysInMonth(s,n))+("D"===i?e:0),e=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(s,n,e)));t.selectedDay=e.getDate(),t.drawMonth=t.selectedMonth=e.getMonth(),t.drawYear=t.selectedYear=e.getFullYear(),"M"!==i&&"Y"!==i||this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),t=this._getMinMaxDate(t,"max"),e=i&&e<i?i:e;return t&&t<e?t:e},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){t=this._get(t,"numberOfMonths");return null==t?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,i,s){var n=this._getNumberOfMonths(t),n=this._daylightSavingAdjust(new Date(i,s+(e<0?e:n[0]*n[1]),1));return e<0&&n.setDate(this._getDaysInMonth(n.getFullYear(),n.getMonth())),this._isInRange(t,n)},_isInRange:function(t,e){var i=this._getMinMaxDate(t,"min"),s=this._getMinMaxDate(t,"max"),n=null,o=null,a=this._get(t,"yearRange");return a&&(t=a.split(":"),a=(new Date).getFullYear(),n=parseInt(t[0],10),o=parseInt(t[1],10),t[0].match(/[+\-].*/)&&(n+=a),t[1].match(/[+\-].*/)&&(o+=a)),(!i||e.getTime()>=i.getTime())&&(!s||e.getTime()<=s.getTime())&&(!n||e.getFullYear()>=n)&&(!o||e.getFullYear()<=o)},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return{shortYearCutoff:e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,i,s){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);e=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(s,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),e,this._getFormatConfig(t))}}),V.fn.datepicker=function(t){if(!this.length)return this;V.datepicker.initialized||(V(document).on("mousedown",V.datepicker._checkExternalClick),V.datepicker.initialized=!0),0===V("#"+V.datepicker._mainDivId).length&&V("body").append(V.datepicker.dpDiv);var e=Array.prototype.slice.call(arguments,1);return"string"==typeof t&&("isDisabled"===t||"getDate"===t||"widget"===t)||"option"===t&&2===arguments.length&&"string"==typeof arguments[1]?V.datepicker["_"+t+"Datepicker"].apply(V.datepicker,[this[0]].concat(e)):this.each(function(){"string"==typeof t?V.datepicker["_"+t+"Datepicker"].apply(V.datepicker,[this].concat(e)):V.datepicker._attachDatepicker(this,t)})},V.datepicker=new b,V.datepicker.initialized=!1,V.datepicker.uuid=(new Date).getTime(),V.datepicker.version="1.13.0";V.datepicker;V.widget("ui.dialog",{version:"1.13.0",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(t){var e=V(this).css(t).offset().top;e<0&&V(this).css("top",t.top-e)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),null==this.options.title&&null!=this.originalTitle&&(this.options.title=this.originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWrapper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._addClass("ui-dialog-content","ui-widget-content"),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&V.fn.draggable&&this._makeDraggable(),this.options.resizable&&V.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var t=this.options.appendTo;return t&&(t.jquery||t.nodeType)?V(t):this.document.find(t||"body").eq(0)},_destroy:function(){var t,e=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(t=e.parent.children().eq(e.index)).length&&t[0]!==this.element[0]?t.before(this.element):e.parent.append(this.element)},widget:function(){return this.uiDialog},disable:V.noop,enable:V.noop,close:function(t){var e=this;this._isOpen&&!1!==this._trigger("beforeClose",t)&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||V.ui.safeBlur(V.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,function(){e._trigger("close",t)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(t,e){var i=!1,s=this.uiDialog.siblings(".ui-front:visible").map(function(){return+V(this).css("z-index")}).get(),s=Math.max.apply(null,s);return s>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",s+1),i=!0),i&&!e&&this._trigger("focus",t),i},open:function(){var t=this;this._isOpen?this._moveToTop()&&this._focusTabbable():(this._isOpen=!0,this.opener=V(V.ui.safeActiveElement(this.document[0])),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(){t._focusTabbable(),t._trigger("focus")}),this._makeFocusTarget(),this._trigger("open"))},_focusTabbable:function(){var t=this._focusedElement;(t=!(t=!(t=!(t=!(t=t||this.element.find("[autofocus]")).length?this.element.find(":tabbable"):t).length?this.uiDialogButtonPane.find(":tabbable"):t).length?this.uiDialogTitlebarClose.filter(":tabbable"):t).length?this.uiDialog:t).eq(0).trigger("focus")},_restoreTabbableFocus:function(){var t=V.ui.safeActiveElement(this.document[0]);this.uiDialog[0]===t||V.contains(this.uiDialog[0],t)||this._focusTabbable()},_keepFocus:function(t){t.preventDefault(),this._restoreTabbableFocus(),this._delay(this._restoreTabbableFocus)},_createWrapper:function(){this.uiDialog=V("<div>").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uiDialog,{keydown:function(t){if(this.options.closeOnEscape&&!t.isDefaultPrevented()&&t.keyCode&&t.keyCode===V.ui.keyCode.ESCAPE)return t.preventDefault(),void this.close(t);var e,i,s;t.keyCode!==V.ui.keyCode.TAB||t.isDefaultPrevented()||(e=this.uiDialog.find(":tabbable"),i=e.first(),s=e.last(),t.target!==s[0]&&t.target!==this.uiDialog[0]||t.shiftKey?t.target!==i[0]&&t.target!==this.uiDialog[0]||!t.shiftKey||(this._delay(function(){s.trigger("focus")}),t.preventDefault()):(this._delay(function(){i.trigger("focus")}),t.preventDefault()))},mousedown:function(t){this._moveToTop(t)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var t;this.uiDialogTitlebar=V("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(t){V(t.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=V("<button type='button'></button>").button({label:V("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(t){t.preventDefault(),this.close(t)}}),t=V("<span>").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(t,"ui-dialog-title"),this._title(t),this.uiDialogTitlebar.prependTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":t.attr("id")})},_title:function(t){this.options.title?t.text(this.options.title):t.html("&#160;")},_createButtonPane:function(){this.uiDialogButtonPane=V("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=V("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var s=this,t=this.options.buttons;this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),V.isEmptyObject(t)||Array.isArray(t)&&!t.length?this._removeClass(this.uiDialog,"ui-dialog-buttons"):(V.each(t,function(t,e){var i;e=V.extend({type:"button"},e="function"==typeof e?{click:e,text:t}:e),i=e.click,t={icon:e.icon,iconPosition:e.iconPosition,showLabel:e.showLabel,icons:e.icons,text:e.text},delete e.click,delete e.icon,delete e.iconPosition,delete e.showLabel,delete e.icons,"boolean"==typeof e.text&&delete e.text,V("<button></button>",e).button(t).appendTo(s.uiButtonSet).on("click",function(){i.apply(s.element[0],arguments)})}),this._addClass(this.uiDialog,"ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){var n=this,o=this.options;function a(t){return{position:t.position,offset:t.offset}}this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(t,e){n._addClass(V(this),"ui-dialog-dragging"),n._blockFrames(),n._trigger("dragStart",t,a(e))},drag:function(t,e){n._trigger("drag",t,a(e))},stop:function(t,e){var i=e.offset.left-n.document.scrollLeft(),s=e.offset.top-n.document.scrollTop();o.position={my:"left top",at:"left"+(0<=i?"+":"")+i+" top"+(0<=s?"+":"")+s,of:n.window},n._removeClass(V(this),"ui-dialog-dragging"),n._unblockFrames(),n._trigger("dragStop",t,a(e))}})},_makeResizable:function(){var n=this,o=this.options,t=o.resizable,e=this.uiDialog.css("position"),t="string"==typeof t?t:"n,e,s,w,se,sw,ne,nw";function a(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}}this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:o.maxWidth,maxHeight:o.maxHeight,minWidth:o.minWidth,minHeight:this._minHeight(),handles:t,start:function(t,e){n._addClass(V(this),"ui-dialog-resizing"),n._blockFrames(),n._trigger("resizeStart",t,a(e))},resize:function(t,e){n._trigger("resize",t,a(e))},stop:function(t,e){var i=n.uiDialog.offset(),s=i.left-n.document.scrollLeft(),i=i.top-n.document.scrollTop();o.height=n.uiDialog.height(),o.width=n.uiDialog.width(),o.position={my:"left top",at:"left"+(0<=s?"+":"")+s+" top"+(0<=i?"+":"")+i,of:n.window},n._removeClass(V(this),"ui-dialog-resizing"),n._unblockFrames(),n._trigger("resizeStop",t,a(e))}}).css("position",e)},_trackFocus:function(){this._on(this.widget(),{focusin:function(t){this._makeFocusTarget(),this._focusedElement=V(t.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var t=this._trackingInstances(),e=V.inArray(this,t);-1!==e&&t.splice(e,1)},_trackingInstances:function(){var t=this.document.data("ui-dialog-instances");return t||this.document.data("ui-dialog-instances",t=[]),t},_minHeight:function(){var t=this.options;return"auto"===t.height?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(){var t=this.uiDialog.is(":visible");t||this.uiDialog.show(),this.uiDialog.position(this.options.position),t||this.uiDialog.hide()},_setOptions:function(t){var i=this,s=!1,n={};V.each(t,function(t,e){i._setOption(t,e),t in i.sizeRelatedOptions&&(s=!0),t in i.resizableRelatedOptions&&(n[t]=e)}),s&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",n)},_setOption:function(t,e){var i,s=this.uiDialog;"disabled"!==t&&(this._super(t,e),"appendTo"===t&&this.uiDialog.appendTo(this._appendTo()),"buttons"===t&&this._createButtons(),"closeText"===t&&this.uiDialogTitlebarClose.button({label:V("<a>").text(""+this.options.closeText).html()}),"draggable"===t&&((i=s.is(":data(ui-draggable)"))&&!e&&s.draggable("destroy"),!i&&e&&this._makeDraggable()),"position"===t&&this._position(),"resizable"===t&&((i=s.is(":data(ui-resizable)"))&&!e&&s.resizable("destroy"),i&&"string"==typeof e&&s.resizable("option","handles",e),i||!1===e||this._makeResizable()),"title"===t&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var t,e,i,s=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),s.minWidth>s.width&&(s.width=s.minWidth),t=this.uiDialog.css({height:"auto",width:s.width}).outerHeight(),e=Math.max(0,s.minHeight-t),i="number"==typeof s.maxHeight?Math.max(0,s.maxHeight-t):"none","auto"===s.height?this.element.css({minHeight:e,maxHeight:i,height:"auto"}):this.element.height(Math.max(0,s.height-t)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var t=V(this);return V("<div>").css({position:"absolute",width:t.outerWidth(),height:t.outerHeight()}).appendTo(t.parent()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(t){return!!V(t.target).closest(".ui-dialog").length||!!V(t.target).closest(".ui-datepicker").length},_createOverlay:function(){var i,s;this.options.modal&&(i=V.fn.jquery.substring(0,4),s=!0,this._delay(function(){s=!1}),this.document.data("ui-dialog-overlays")||this.document.on("focusin.ui-dialog",function(t){var e;s||((e=this._trackingInstances()[0])._allowInteraction(t)||(t.preventDefault(),e._focusTabbable(),"3.4."!==i&&"3.5."!==i||e._delay(e._restoreTabbableFocus)))}.bind(this)),this.overlay=V("<div>").appendTo(this._appendTo()),this._addClass(this.overlay,null,"ui-widget-overlay ui-front"),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1))},_destroyOverlay:function(){var t;this.options.modal&&this.overlay&&((t=this.document.data("ui-dialog-overlays")-1)?this.document.data("ui-dialog-overlays",t):(this.document.off("focusin.ui-dialog"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null)}}),!1!==V.uiBackCompat&&V.widget("ui.dialog",V.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(t,e){"dialogClass"===t&&this.uiDialog.removeClass(this.options.dialogClass).addClass(e),this._superApply(arguments)}});V.ui.dialog,V.widget("ui.progressbar",{version:"1.13.0",options:{classes:{"ui-progressbar":"ui-corner-all","ui-progressbar-value":"ui-corner-left","ui-progressbar-complete":"ui-corner-right"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.attr({role:"progressbar","aria-valuemin":this.min}),this._addClass("ui-progressbar","ui-widget ui-widget-content"),this.valueDiv=V("<div>").appendTo(this.element),this._addClass(this.valueDiv,"ui-progressbar-value","ui-widget-header"),this._refreshValue()},_destroy:function(){this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow"),this.valueDiv.remove()},value:function(t){if(void 0===t)return this.options.value;this.options.value=this._constrainedValue(t),this._refreshValue()},_constrainedValue:function(t){return void 0===t&&(t=this.options.value),this.indeterminate=!1===t,"number"!=typeof t&&(t=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,t))},_setOptions:function(t){var e=t.value;delete t.value,this._super(t),this.options.value=this._constrainedValue(e),this._refreshValue()},_setOption:function(t,e){"max"===t&&(e=Math.max(this.min,e)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var t=this.options.value,e=this._percentage();this.valueDiv.toggle(this.indeterminate||t>this.min).width(e.toFixed(0)+"%"),this._toggleClass(this.valueDiv,"ui-progressbar-complete",null,t===this.options.max)._toggleClass("ui-progressbar-indeterminate",null,this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=V("<div>").appendTo(this.valueDiv),this._addClass(this.overlayDiv,"ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":t}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==t&&(this.oldValue=t,this._trigger("change")),t===this.options.max&&this._trigger("complete")}}),V.widget("ui.selectmenu",[V.ui.formResetMixin,{version:"1.13.0",defaultElement:"<select>",options:{appendTo:null,classes:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"},disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:!1,change:null,close:null,focus:null,open:null,select:null},_create:function(){var t=this.element.uniqueId().attr("id");this.ids={element:t,button:t+"-button",menu:t+"-menu"},this._drawButton(),this._drawMenu(),this._bindFormResetHandler(),this._rendered=!1,this.menuItems=V()},_drawButton:function(){var t,e=this,i=this._parseOption(this.element.find("option:selected"),this.element[0].selectedIndex);this.labels=this.element.labels().attr("for",this.ids.button),this._on(this.labels,{click:function(t){this.button.trigger("focus"),t.preventDefault()}}),this.element.hide(),this.button=V("<span>",{tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true",title:this.element.attr("title")}).insertAfter(this.element),this._addClass(this.button,"ui-selectmenu-button ui-selectmenu-button-closed","ui-button ui-widget"),t=V("<span>").appendTo(this.button),this._addClass(t,"ui-selectmenu-icon","ui-icon "+this.options.icons.button),this.buttonItem=this._renderButtonItem(i).appendTo(this.button),!1!==this.options.width&&this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",function(){e._rendered||e._refreshMenu()})},_drawMenu:function(){var i=this;this.menu=V("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=V("<div>").append(this.menu),this._addClass(this.menuWrap,"ui-selectmenu-menu","ui-front"),this.menuWrap.appendTo(this._appendTo()),this.menuInstance=this.menu.menu({classes:{"ui-menu":"ui-corner-bottom"},role:"listbox",select:function(t,e){t.preventDefault(),i._setSelection(),i._select(e.item.data("ui-selectmenu-item"),t)},focus:function(t,e){e=e.item.data("ui-selectmenu-item");null!=i.focusIndex&&e.index!==i.focusIndex&&(i._trigger("focus",t,{item:e}),i.isOpen||i._select(e,t)),i.focusIndex=e.index,i.button.attr("aria-activedescendant",i.menuItems.eq(e.index).attr("id"))}}).menu("instance"),this.menuInstance._off(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentClick=function(){return!1},this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu(),this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(this._getSelectedItem().data("ui-selectmenu-item")||{})),null===this.options.width&&this._resizeButton()},_refreshMenu:function(){var t=this.element.find("option");this.menu.empty(),this._parseOptions(t),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup").find(".ui-menu-item-wrapper"),this._rendered=!0,t.length&&(t=this._getSelectedItem(),this.menuInstance.focus(null,t),this._setAria(t.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(t){this.options.disabled||(this._rendered?(this._removeClass(this.menu.find(".ui-state-active"),null,"ui-state-active"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.menuItems.length&&(this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",t)))},_position:function(){this.menuWrap.position(V.extend({of:this.button},this.options.position))},close:function(t){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",t))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderButtonItem:function(t){var e=V("<span>");return this._setText(e,t.label),this._addClass(e,"ui-selectmenu-text"),e},_renderMenu:function(s,t){var n=this,o="";V.each(t,function(t,e){var i;e.optgroup!==o&&(i=V("<li>",{text:e.optgroup}),n._addClass(i,"ui-selectmenu-optgroup","ui-menu-divider"+(e.element.parent("optgroup").prop("disabled")?" ui-state-disabled":"")),i.appendTo(s),o=e.optgroup),n._renderItemData(s,e)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-selectmenu-item",e)},_renderItem:function(t,e){var i=V("<li>"),s=V("<div>",{title:e.element.attr("title")});return e.disabled&&this._addClass(i,null,"ui-state-disabled"),this._setText(s,e.label),i.append(s).appendTo(t)},_setText:function(t,e){e?t.text(e):t.html("&#160;")},_move:function(t,e){var i,s=".ui-menu-item";this.isOpen?i=this.menuItems.eq(this.focusIndex).parent("li"):(i=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),s+=":not(.ui-state-disabled)"),(s="first"===t||"last"===t?i["first"===t?"prevAll":"nextAll"](s).eq(-1):i[t+"All"](s).eq(0)).length&&this.menuInstance.focus(e,s)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")},_toggle:function(t){this[this.isOpen?"close":"open"](t)},_setSelection:function(){var t;this.range&&(window.getSelection?((t=window.getSelection()).removeAllRanges(),t.addRange(this.range)):this.range.select(),this.button.focus())},_documentClick:{mousedown:function(t){this.isOpen&&(V(t.target).closest(".ui-selectmenu-menu, #"+V.escapeSelector(this.ids.button)).length||this.close(t))}},_buttonEvents:{mousedown:function(){var t;window.getSelection?(t=window.getSelection()).rangeCount&&(this.range=t.getRangeAt(0)):this.range=document.selection.createRange()},click:function(t){this._setSelection(),this._toggle(t)},keydown:function(t){var e=!0;switch(t.keyCode){case V.ui.keyCode.TAB:case V.ui.keyCode.ESCAPE:this.close(t),e=!1;break;case V.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(t);break;case V.ui.keyCode.UP:t.altKey?this._toggle(t):this._move("prev",t);break;case V.ui.keyCode.DOWN:t.altKey?this._toggle(t):this._move("next",t);break;case V.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(t):this._toggle(t);break;case V.ui.keyCode.LEFT:this._move("prev",t);break;case V.ui.keyCode.RIGHT:this._move("next",t);break;case V.ui.keyCode.HOME:case V.ui.keyCode.PAGE_UP:this._move("first",t);break;case V.ui.keyCode.END:case V.ui.keyCode.PAGE_DOWN:this._move("last",t);break;default:this.menu.trigger(t),e=!1}e&&t.preventDefault()}},_selectFocusedItem:function(t){var e=this.menuItems.eq(this.focusIndex).parent("li");e.hasClass("ui-state-disabled")||this._select(e.data("ui-selectmenu-item"),t)},_select:function(t,e){var i=this.element[0].selectedIndex;this.element[0].selectedIndex=t.index,this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(t)),this._setAria(t),this._trigger("select",e,{item:t}),t.index!==i&&this._trigger("change",e,{item:t}),this.close(e)},_setAria:function(t){t=this.menuItems.eq(t.index).attr("id");this.button.attr({"aria-labelledby":t,"aria-activedescendant":t}),this.menu.attr("aria-activedescendant",t)},_setOption:function(t,e){var i;"icons"===t&&(i=this.button.find("span.ui-icon"),this._removeClass(i,null,this.options.icons.button)._addClass(i,null,e.button)),this._super(t,e),"appendTo"===t&&this.menuWrap.appendTo(this._appendTo()),"width"===t&&this._resizeButton()},_setOptionDisabled:function(t){this._super(t),this.menuInstance.option("disabled",t),this.button.attr("aria-disabled",t),this._toggleClass(this.button,null,"ui-state-disabled",t),this.element.prop("disabled",t),t?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)},_appendTo:function(){var t=this.options.appendTo;return t=!(t=!(t=t&&(t.jquery||t.nodeType?V(t):this.document.find(t).eq(0)))||!t[0]?this.element.closest(".ui-front, dialog"):t).length?this.document[0].body:t},_toggleAttr:function(){this.button.attr("aria-expanded",this.isOpen),this._removeClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"closed":"open"))._addClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"open":"closed"))._toggleClass(this.menuWrap,"ui-selectmenu-open",null,this.isOpen),this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var t=this.options.width;!1!==t?(null===t&&(t=this.element.show().outerWidth(),this.element.hide()),this.button.outerWidth(t)):this.button.css("width","")},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){var t=this._super();return t.disabled=this.element.prop("disabled"),t},_parseOptions:function(t){var i=this,s=[];t.each(function(t,e){e.hidden||s.push(i._parseOption(V(e),t))}),this.items=s},_parseOption:function(t,e){var i=t.parent("optgroup");return{element:t,index:e,value:t.val(),label:t.text(),optgroup:i.attr("label")||"",disabled:i.prop("disabled")||t.prop("disabled")}},_destroy:function(){this._unbindFormResetHandler(),this.menuWrap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),this.labels.attr("for",this.ids.element)}}]),V.widget("ui.slider",V.ui.mouse,{version:"1.13.0",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var t,e=this.options,i=this.element.find(".ui-slider-handle"),s=[],n=e.values&&e.values.length||1;for(i.length>n&&(i.slice(n).remove(),i=i.slice(0,n)),t=i.length;t<n;t++)s.push("<span tabindex='0'></span>");this.handles=i.add(V(s.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(t){V(this).data("ui-slider-handle-index",t).attr("tabIndex",0)})},_createRange:function(){var t=this.options;t.range?(!0===t.range&&(t.values?t.values.length&&2!==t.values.length?t.values=[t.values[0],t.values[0]]:Array.isArray(t.values)&&(t.values=t.values.slice(0)):t.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=V("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==t.range&&"max"!==t.range||this._addClass(this.range,"ui-slider-range-"+t.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(t){var i,s,n,o,e,a,r=this,l=this.options;return!l.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),a={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(a),s=this._valueMax()-this._valueMin()+1,this.handles.each(function(t){var e=Math.abs(i-r.values(t));(e<s||s===e&&(t===r._lastChangedValue||r.values(t)===l.min))&&(s=e,n=V(this),o=t)}),!1!==this._start(t,o)&&(this._mouseSliding=!0,this._handleIndex=o,this._addClass(n,null,"ui-state-active"),n.trigger("focus"),e=n.offset(),a=!V(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=a?{left:0,top:0}:{left:t.pageX-e.left-n.width()/2,top:t.pageY-e.top-n.height()/2-(parseInt(n.css("borderTopWidth"),10)||0)-(parseInt(n.css("borderBottomWidth"),10)||0)+(parseInt(n.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(t,o,i),this._animateOff=!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},e=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,e),!1},_mouseStop:function(t){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,t="horizontal"===this.orientation?(e=this.elementSize.width,t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),t=t/e;return(t=1<t?1:t)<0&&(t=0),"vertical"===this.orientation&&(t=1-t),e=this._valueMax()-this._valueMin(),e=this._valueMin()+t*e,this._trimAlignValue(e)},_uiHash:function(t,e,i){var s={handle:this.handles[t],handleIndex:t,value:void 0!==e?e:this.value()};return this._hasMultipleValues()&&(s.value=void 0!==e?e:this.values(t),s.values=i||this.values()),s},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(t,e){return this._trigger("start",t,this._uiHash(e))},_slide:function(t,e,i){var s,n=this.value(),o=this.values();this._hasMultipleValues()&&(s=this.values(e?0:1),n=this.values(e),2===this.options.values.length&&!0===this.options.range&&(i=0===e?Math.min(s,i):Math.max(s,i)),o[e]=i),i!==n&&!1!==this._trigger("slide",t,this._uiHash(e,i,o))&&(this._hasMultipleValues()?this.values(e,i):this.value(i))},_stop:function(t,e){this._trigger("stop",t,this._uiHash(e))},_change:function(t,e){this._keySliding||this._mouseSliding||(this._lastChangedValue=e,this._trigger("change",t,this._uiHash(e)))},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),void this._change(null,0)):this._value()},values:function(t,e){var i,s,n;if(1<arguments.length)return this.options.values[t]=this._trimAlignValue(e),this._refreshValue(),void this._change(null,t);if(!arguments.length)return this._values();if(!Array.isArray(t))return this._hasMultipleValues()?this._values(t):this.value();for(i=this.options.values,s=t,n=0;n<i.length;n+=1)i[n]=this._trimAlignValue(s[n]),this._change(null,n);this._refreshValue()},_setOption:function(t,e){var i,s=0;switch("range"===t&&!0===this.options.range&&("min"===e?(this.options.value=this._values(0),this.options.values=null):"max"===e&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),Array.isArray(this.options.values)&&(s=this.options.values.length),this._super(t,e),t){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(e),this.handles.css("horizontal"===e?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),i=s-1;0<=i;i--)this._change(null,i);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(t){this._super(t),this._toggleClass(null,"ui-state-disabled",!!t)},_value:function(){var t=this.options.value;return t=this._trimAlignValue(t)},_values:function(t){var e,i;if(arguments.length)return t=this.options.values[t],t=this._trimAlignValue(t);if(this._hasMultipleValues()){for(e=this.options.values.slice(),i=0;i<e.length;i+=1)e[i]=this._trimAlignValue(e[i]);return e}return[]},_trimAlignValue:function(t){if(t<=this._valueMin())return this._valueMin();if(t>=this._valueMax())return this._valueMax();var e=0<this.options.step?this.options.step:1,i=(t-this._valueMin())%e,t=t-i;return 2*Math.abs(i)>=e&&(t+=0<i?e:-e),parseFloat(t.toFixed(5))},_calculateNewMax:function(){var t=this.options.max,e=this._valueMin(),i=this.options.step;(t=Math.round((t-e)/i)*i+e)>this.options.max&&(t-=i),this.max=parseFloat(t.toFixed(this._precision()))},_precision:function(){var t=this._precisionOf(this.options.step);return t=null!==this.options.min?Math.max(t,this._precisionOf(this.options.min)):t},_precisionOf:function(t){var e=t.toString(),t=e.indexOf(".");return-1===t?0:e.length-t-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(t){"vertical"===t&&this.range.css({width:"",left:""}),"horizontal"===t&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var e,i,t,s,n,o=this.options.range,a=this.options,r=this,l=!this._animateOff&&a.animate,h={};this._hasMultipleValues()?this.handles.each(function(t){i=(r.values(t)-r._valueMin())/(r._valueMax()-r._valueMin())*100,h["horizontal"===r.orientation?"left":"bottom"]=i+"%",V(this).stop(1,1)[l?"animate":"css"](h,a.animate),!0===r.options.range&&("horizontal"===r.orientation?(0===t&&r.range.stop(1,1)[l?"animate":"css"]({left:i+"%"},a.animate),1===t&&r.range[l?"animate":"css"]({width:i-e+"%"},{queue:!1,duration:a.animate})):(0===t&&r.range.stop(1,1)[l?"animate":"css"]({bottom:i+"%"},a.animate),1===t&&r.range[l?"animate":"css"]({height:i-e+"%"},{queue:!1,duration:a.animate}))),e=i}):(t=this.value(),s=this._valueMin(),n=this._valueMax(),i=n!==s?(t-s)/(n-s)*100:0,h["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[l?"animate":"css"](h,a.animate),"min"===o&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:i+"%"},a.animate),"max"===o&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:100-i+"%"},a.animate),"min"===o&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:i+"%"},a.animate),"max"===o&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:100-i+"%"},a.animate))},_handleEvents:{keydown:function(t){var e,i,s,n=V(t.target).data("ui-slider-handle-index");switch(t.keyCode){case V.ui.keyCode.HOME:case V.ui.keyCode.END:case V.ui.keyCode.PAGE_UP:case V.ui.keyCode.PAGE_DOWN:case V.ui.keyCode.UP:case V.ui.keyCode.RIGHT:case V.ui.keyCode.DOWN:case V.ui.keyCode.LEFT:if(t.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(V(t.target),null,"ui-state-active"),!1===this._start(t,n)))return}switch(s=this.options.step,e=i=this._hasMultipleValues()?this.values(n):this.value(),t.keyCode){case V.ui.keyCode.HOME:i=this._valueMin();break;case V.ui.keyCode.END:i=this._valueMax();break;case V.ui.keyCode.PAGE_UP:i=this._trimAlignValue(e+(this._valueMax()-this._valueMin())/this.numPages);break;case V.ui.keyCode.PAGE_DOWN:i=this._trimAlignValue(e-(this._valueMax()-this._valueMin())/this.numPages);break;case V.ui.keyCode.UP:case V.ui.keyCode.RIGHT:if(e===this._valueMax())return;i=this._trimAlignValue(e+s);break;case V.ui.keyCode.DOWN:case V.ui.keyCode.LEFT:if(e===this._valueMin())return;i=this._trimAlignValue(e-s)}this._slide(t,n,i)},keyup:function(t){var e=V(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,e),this._change(t,e),this._removeClass(V(t.target),null,"ui-state-active"))}}});function M(e){return function(){var t=this.element.val();e.apply(this,arguments),this._refresh(),t!==this.element.val()&&this._trigger("change")}}V.widget("ui.spinner",{version:"1.13.0",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var s=this._super(),n=this.element;return V.each(["min","max","step"],function(t,e){var i=n.attr(e);null!=i&&i.length&&(s[e]=i)}),s},_events:{keydown:function(t){this._start(t)&&this._keydown(t)&&t.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){this.cancelBlur?delete this.cancelBlur:(this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",t))},mousewheel:function(t,e){var i=V.ui.safeActiveElement(this.document[0]);if(this.element[0]===i&&e){if(!this.spinning&&!this._start(t))return!1;this._spin((0<e?1:-1)*this.options.step,t),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(t)},100),t.preventDefault()}},"mousedown .ui-spinner-button":function(t){var e;function i(){this.element[0]===V.ui.safeActiveElement(this.document[0])||(this.element.trigger("focus"),this.previous=e,this._delay(function(){this.previous=e}))}e=this.element[0]===V.ui.safeActiveElement(this.document[0])?this.previous:this.element.val(),t.preventDefault(),i.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,i.call(this)}),!1!==this._start(t)&&this._repeat(null,V(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(t){if(V(t.currentTarget).hasClass("ui-state-active"))return!1!==this._start(t)&&void this._repeat(null,V(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseleave .ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("<span>").parent().append("<a></a><a></a>")},_draw:function(){this._enhance(),this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content"),this._addClass("ui-spinner-input"),this.element.attr("role","spinbutton"),this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden",!0).button({classes:{"ui-button":""}}),this._removeClass(this.buttons,"ui-corner-all"),this._addClass(this.buttons.first(),"ui-spinner-button ui-spinner-up"),this._addClass(this.buttons.last(),"ui-spinner-button ui-spinner-down"),this.buttons.first().button({icon:this.options.icons.up,showLabel:!1}),this.buttons.last().button({icon:this.options.icons.down,showLabel:!1}),this.buttons.height()>Math.ceil(.5*this.uiSpinner.height())&&0<this.uiSpinner.height()&&this.uiSpinner.height(this.uiSpinner.height())},_keydown:function(t){var e=this.options,i=V.ui.keyCode;switch(t.keyCode){case i.UP:return this._repeat(null,1,t),!0;case i.DOWN:return this._repeat(null,-1,t),!0;case i.PAGE_UP:return this._repeat(null,e.page,t),!0;case i.PAGE_DOWN:return this._repeat(null,-e.page,t),!0}return!1},_start:function(t){return!(!this.spinning&&!1===this._trigger("start",t))&&(this.counter||(this.counter=1),this.spinning=!0)},_repeat:function(t,e,i){t=t||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,e,i)},t),this._spin(e*this.options.step,i)},_spin:function(t,e){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+t*this._increment(this.counter)),this.spinning&&!1===this._trigger("spin",e,{value:i})||(this._value(i),this.counter++)},_increment:function(t){var e=this.options.incremental;return e?"function"==typeof e?e(t):Math.floor(t*t*t/5e4-t*t/500+17*t/200+1):1},_precision:function(){var t=this._precisionOf(this.options.step);return t=null!==this.options.min?Math.max(t,this._precisionOf(this.options.min)):t},_precisionOf:function(t){var e=t.toString(),t=e.indexOf(".");return-1===t?0:e.length-t-1},_adjustValue:function(t){var e=this.options,i=null!==e.min?e.min:0,s=t-i;return t=i+Math.round(s/e.step)*e.step,t=parseFloat(t.toFixed(this._precision())),null!==e.max&&t>e.max?e.max:null!==e.min&&t<e.min?e.min:t},_stop:function(t){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",t))},_setOption:function(t,e){var i;if("culture"===t||"numberFormat"===t)return i=this._parse(this.element.val()),this.options[t]=e,void this.element.val(this._format(i));"max"!==t&&"min"!==t&&"step"!==t||"string"==typeof e&&(e=this._parse(e)),"icons"===t&&(i=this.buttons.first().find(".ui-icon"),this._removeClass(i,null,this.options.icons.up),this._addClass(i,null,e.up),i=this.buttons.last().find(".ui-icon"),this._removeClass(i,null,this.options.icons.down),this._addClass(i,null,e.down)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!t),this.element.prop("disabled",!!t),this.buttons.button(t?"disable":"enable")},_setOptions:M(function(t){this._super(t)}),_parse:function(t){return""===(t="string"==typeof t&&""!==t?window.Globalize&&this.options.numberFormat?Globalize.parseFloat(t,10,this.options.culture):+t:t)||isNaN(t)?null:t},_format:function(t){return""===t?"":window.Globalize&&this.options.numberFormat?Globalize.format(t,this.options.numberFormat,this.options.culture):t},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var t=this.value();return null!==t&&t===this._adjustValue(t)},_value:function(t,e){var i;""!==t&&null!==(i=this._parse(t))&&(e||(i=this._adjustValue(i)),t=this._format(i)),this.element.val(t),this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:M(function(t){this._stepUp(t)}),_stepUp:function(t){this._start()&&(this._spin((t||1)*this.options.step),this._stop())},stepDown:M(function(t){this._stepDown(t)}),_stepDown:function(t){this._start()&&(this._spin((t||1)*-this.options.step),this._stop())},pageUp:M(function(t){this._stepUp((t||1)*this.options.page)}),pageDown:M(function(t){this._stepDown((t||1)*this.options.page)}),value:function(t){if(!arguments.length)return this._parse(this.element.val());M(this._value).call(this,t)},widget:function(){return this.uiSpinner}}),!1!==V.uiBackCompat&&V.widget("ui.spinner",V.ui.spinner,{_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())},_uiSpinnerHtml:function(){return"<span>"},_buttonHtml:function(){return"<a></a><a></a>"}});var S;V.ui.spinner;V.widget("ui.tabs",{version:"1.13.0",delay:300,options:{active:null,classes:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-corner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"ui-corner-top"},collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:(S=/#.*$/,function(t){var e=t.href.replace(S,""),i=location.href.replace(S,"");try{e=decodeURIComponent(e)}catch(t){}try{i=decodeURIComponent(i)}catch(t){}return 1<t.hash.length&&e===i}),_create:function(){var e=this,t=this.options;this.running=!1,this._addClass("ui-tabs","ui-widget ui-widget-content"),this._toggleClass("ui-tabs-collapsible",null,t.collapsible),this._processTabs(),t.active=this._initialActive(),Array.isArray(t.disabled)&&(t.disabled=V.uniqueSort(t.disabled.concat(V.map(this.tabs.filter(".ui-state-disabled"),function(t){return e.tabs.index(t)}))).sort()),!1!==this.options.active&&this.anchors.length?this.active=this._findActive(t.active):this.active=V(),this._refresh(),this.active.length&&this.load(t.active)},_initialActive:function(){var i=this.options.active,t=this.options.collapsible,s=location.hash.substring(1);return null===i&&(s&&this.tabs.each(function(t,e){if(V(e).attr("aria-controls")===s)return i=t,!1}),null!==(i=null===i?this.tabs.index(this.tabs.filter(".ui-tabs-active")):i)&&-1!==i||(i=!!this.tabs.length&&0)),!1!==i&&-1===(i=this.tabs.index(this.tabs.eq(i)))&&(i=!t&&0),i=!t&&!1===i&&this.anchors.length?0:i},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):V()}},_tabKeydown:function(t){var e=V(V.ui.safeActiveElement(this.document[0])).closest("li"),i=this.tabs.index(e),s=!0;if(!this._handlePageNav(t)){switch(t.keyCode){case V.ui.keyCode.RIGHT:case V.ui.keyCode.DOWN:i++;break;case V.ui.keyCode.UP:case V.ui.keyCode.LEFT:s=!1,i--;break;case V.ui.keyCode.END:i=this.anchors.length-1;break;case V.ui.keyCode.HOME:i=0;break;case V.ui.keyCode.SPACE:return t.preventDefault(),clearTimeout(this.activating),void this._activate(i);case V.ui.keyCode.ENTER:return t.preventDefault(),clearTimeout(this.activating),void this._activate(i!==this.options.active&&i);default:return}t.preventDefault(),clearTimeout(this.activating),i=this._focusNextTab(i,s),t.ctrlKey||t.metaKey||(e.attr("aria-selected","false"),this.tabs.eq(i).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",i)},this.delay))}},_panelKeydown:function(t){this._handlePageNav(t)||t.ctrlKey&&t.keyCode===V.ui.keyCode.UP&&(t.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(t){return t.altKey&&t.keyCode===V.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):t.altKey&&t.keyCode===V.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(t,e){var i=this.tabs.length-1;for(;-1!==V.inArray(t=(t=i<t?0:t)<0?i:t,this.options.disabled);)t=e?t+1:t-1;return t},_focusNextTab:function(t,e){return t=this._findNextTab(t,e),this.tabs.eq(t).trigger("focus"),t},_setOption:function(t,e){"active"!==t?(this._super(t,e),"collapsible"===t&&(this._toggleClass("ui-tabs-collapsible",null,e),e||!1!==this.options.active||this._activate(0)),"event"===t&&this._setupEvents(e),"heightStyle"===t&&this._setupHeightStyle(e)):this._activate(e)},_sanitizeSelector:function(t){return t?t.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,e=this.tablist.children(":has(a[href])");t.disabled=V.map(e.filter(".ui-state-disabled"),function(t){return e.index(t)}),this._processTabs(),!1!==t.active&&this.anchors.length?this.active.length&&!V.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=V()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active):(t.active=!1,this.active=V()),this._refresh()},_refresh:function(){this._setOptionDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._addClass(this.active,"ui-tabs-active","ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var l=this,t=this.tabs,e=this.anchors,i=this.panels;this.tablist=this._getList().attr("role","tablist"),this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header"),this.tablist.on("mousedown"+this.eventNamespace,"> li",function(t){V(this).is(".ui-state-disabled")&&t.preventDefault()}).on("focus"+this.eventNamespace,".ui-tabs-anchor",function(){V(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1}),this._addClass(this.tabs,"ui-tabs-tab","ui-state-default"),this.anchors=this.tabs.map(function(){return V("a",this)[0]}).attr({tabIndex:-1}),this._addClass(this.anchors,"ui-tabs-anchor"),this.panels=V(),this.anchors.each(function(t,e){var i,s,n,o=V(e).uniqueId().attr("id"),a=V(e).closest("li"),r=a.attr("aria-controls");l._isLocal(e)?(n=(i=e.hash).substring(1),s=l.element.find(l._sanitizeSelector(i))):(n=a.attr("aria-controls")||V({}).uniqueId()[0].id,(s=l.element.find(i="#"+n)).length||(s=l._createPanel(n)).insertAfter(l.panels[t-1]||l.tablist),s.attr("aria-live","polite")),s.length&&(l.panels=l.panels.add(s)),r&&a.data("ui-tabs-aria-controls",r),a.attr({"aria-controls":n,"aria-labelledby":o}),s.attr("aria-labelledby",o)}),this.panels.attr("role","tabpanel"),this._addClass(this.panels,"ui-tabs-panel","ui-widget-content"),t&&(this._off(t.not(this.tabs)),this._off(e.not(this.anchors)),this._off(i.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(t){return V("<div>").attr("id",t).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(t){var e,i;for(Array.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1),i=0;e=this.tabs[i];i++)e=V(e),!0===t||-1!==V.inArray(i,t)?(e.attr("aria-disabled","true"),this._addClass(e,null,"ui-state-disabled")):(e.removeAttr("aria-disabled"),this._removeClass(e,null,"ui-state-disabled"));this.options.disabled=t,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!0===t)},_setupEvents:function(t){var i={};t&&V.each(t.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(t){t.preventDefault()}}),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(t){var i,e=this.element.parent();"fill"===t?(i=e.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var t=V(this),e=t.css("position");"absolute"!==e&&"fixed"!==e&&(i-=t.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=V(this).outerHeight(!0)}),this.panels.each(function(){V(this).height(Math.max(0,i-V(this).innerHeight()+V(this).height()))}).css("overflow","auto")):"auto"===t&&(i=0,this.panels.each(function(){i=Math.max(i,V(this).height("").height())}).height(i))},_eventHandler:function(t){var e=this.options,i=this.active,s=V(t.currentTarget).closest("li"),n=s[0]===i[0],o=n&&e.collapsible,a=o?V():this._getPanelForTab(s),r=i.length?this._getPanelForTab(i):V(),i={oldTab:i,oldPanel:r,newTab:o?V():s,newPanel:a};t.preventDefault(),s.hasClass("ui-state-disabled")||s.hasClass("ui-tabs-loading")||this.running||n&&!e.collapsible||!1===this._trigger("beforeActivate",t,i)||(e.active=!o&&this.tabs.index(s),this.active=n?V():s,this.xhr&&this.xhr.abort(),r.length||a.length||V.error("jQuery UI Tabs: Mismatching fragment identifier."),a.length&&this.load(this.tabs.index(s),t),this._toggle(t,i))},_toggle:function(t,e){var i=this,s=e.newPanel,n=e.oldPanel;function o(){i.running=!1,i._trigger("activate",t,e)}function a(){i._addClass(e.newTab.closest("li"),"ui-tabs-active","ui-state-active"),s.length&&i.options.show?i._show(s,i.options.show,o):(s.show(),o())}this.running=!0,n.length&&this.options.hide?this._hide(n,this.options.hide,function(){i._removeClass(e.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),a()}):(this._removeClass(e.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),n.hide(),a()),n.attr("aria-hidden","true"),e.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),s.length&&n.length?e.oldTab.attr("tabIndex",-1):s.length&&this.tabs.filter(function(){return 0===V(this).attr("tabIndex")}).attr("tabIndex",-1),s.attr("aria-hidden","false"),e.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(t){var t=this._findActive(t);t[0]!==this.active[0]&&(t=(t=!t.length?this.active:t).find(".ui-tabs-anchor")[0],this._eventHandler({target:t,currentTarget:t,preventDefault:V.noop}))},_findActive:function(t){return!1===t?V():this.tabs.eq(t)},_getIndex:function(t){return t="string"==typeof t?this.anchors.index(this.anchors.filter("[href$='"+V.escapeSelector(t)+"']")):t},_destroy:function(){this.xhr&&this.xhr.abort(),this.tablist.removeAttr("role").off(this.eventNamespace),this.anchors.removeAttr("role tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){V.data(this,"ui-tabs-destroy")?V(this).remove():V(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")}),this.tabs.each(function(){var t=V(this),e=t.data("ui-tabs-aria-controls");e?t.attr("aria-controls",e).removeData("ui-tabs-aria-controls"):t.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(i){var t=this.options.disabled;!1!==t&&(t=void 0!==i&&(i=this._getIndex(i),Array.isArray(t)?V.map(t,function(t){return t!==i?t:null}):V.map(this.tabs,function(t,e){return e!==i?e:null})),this._setOptionDisabled(t))},disable:function(t){var e=this.options.disabled;if(!0!==e){if(void 0===t)e=!0;else{if(t=this._getIndex(t),-1!==V.inArray(t,e))return;e=Array.isArray(e)?V.merge([t],e).sort():[t]}this._setOptionDisabled(e)}},load:function(t,s){t=this._getIndex(t);function n(t,e){"abort"===e&&o.panels.stop(!1,!0),o._removeClass(i,"ui-tabs-loading"),a.removeAttr("aria-busy"),t===o.xhr&&delete o.xhr}var o=this,i=this.tabs.eq(t),t=i.find(".ui-tabs-anchor"),a=this._getPanelForTab(i),r={tab:i,panel:a};this._isLocal(t[0])||(this.xhr=V.ajax(this._ajaxSettings(t,s,r)),this.xhr&&"canceled"!==this.xhr.statusText&&(this._addClass(i,"ui-tabs-loading"),a.attr("aria-busy","true"),this.xhr.done(function(t,e,i){setTimeout(function(){a.html(t),o._trigger("load",s,r),n(i,e)},1)}).fail(function(t,e){setTimeout(function(){n(t,e)},1)})))},_ajaxSettings:function(t,i,s){var n=this;return{url:t.attr("href").replace(/#.*$/,""),beforeSend:function(t,e){return n._trigger("beforeLoad",i,V.extend({jqXHR:t,ajaxSettings:e},s))}}},_getPanelForTab:function(t){t=V(t).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+t))}}),!1!==V.uiBackCompat&&V.widget("ui.tabs",V.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}});V.ui.tabs;V.widget("ui.tooltip",{version:"1.13.0",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var t=V(this).attr("title");return V("<a>").text(t).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(t,e){var i=(t.attr("aria-describedby")||"").split(/\s+/);i.push(e),t.data("ui-tooltip-id",e).attr("aria-describedby",String.prototype.trim.call(i.join(" ")))},_removeDescribedBy:function(t){var e=t.data("ui-tooltip-id"),i=(t.attr("aria-describedby")||"").split(/\s+/),e=V.inArray(e,i);-1!==e&&i.splice(e,1),t.removeData("ui-tooltip-id"),(i=String.prototype.trim.call(i.join(" ")))?t.attr("aria-describedby",i):t.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveRegion=V("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this.disabledTitles=V([])},_setOption:function(t,e){var i=this;this._super(t,e),"content"===t&&V.each(this.tooltips,function(t,e){i._updateContent(e.element)})},_setOptionDisabled:function(t){this[t?"_disable":"_enable"]()},_disable:function(){var s=this;V.each(this.tooltips,function(t,e){var i=V.Event("blur");i.target=i.currentTarget=e.element[0],s.close(i,!0)}),this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function(){var t=V(this);if(t.is("[title]"))return t.data("ui-tooltip-title",t.attr("title")).removeAttr("title")}))},_enable:function(){this.disabledTitles.each(function(){var t=V(this);t.data("ui-tooltip-title")&&t.attr("title",t.data("ui-tooltip-title"))}),this.disabledTitles=V([])},open:function(t){var i=this,e=V(t?t.target:this.element).closest(this.options.items);e.length&&!e.data("ui-tooltip-id")&&(e.attr("title")&&e.data("ui-tooltip-title",e.attr("title")),e.data("ui-tooltip-open",!0),t&&"mouseover"===t.type&&e.parents().each(function(){var t,e=V(this);e.data("ui-tooltip-open")&&((t=V.Event("blur")).target=t.currentTarget=this,i.close(t,!0)),e.attr("title")&&(e.uniqueId(),i.parents[this.id]={element:this,title:e.attr("title")},e.attr("title",""))}),this._registerCloseHandlers(t,e),this._updateContent(e,t))},_updateContent:function(e,i){var t=this.options.content,s=this,n=i?i.type:null;if("string"==typeof t||t.nodeType||t.jquery)return this._open(i,e,t);(t=t.call(e[0],function(t){s._delay(function(){e.data("ui-tooltip-open")&&(i&&(i.type=n),this._open(i,e,t))})}))&&this._open(i,e,t)},_open:function(t,e,i){var s,n,o,a=V.extend({},this.options.position);function r(t){a.of=t,n.is(":hidden")||n.position(a)}i&&((s=this._find(e))?s.tooltip.find(".ui-tooltip-content").html(i):(e.is("[title]")&&(t&&"mouseover"===t.type?e.attr("title",""):e.removeAttr("title")),s=this._tooltip(e),n=s.tooltip,this._addDescribedBy(e,n.attr("id")),n.find(".ui-tooltip-content").html(i),this.liveRegion.children().hide(),(i=V("<div>").html(n.find(".ui-tooltip-content").html())).removeAttr("name").find("[name]").removeAttr("name"),i.removeAttr("id").find("[id]").removeAttr("id"),i.appendTo(this.liveRegion),this.options.track&&t&&/^mouse/.test(t.type)?(this._on(this.document,{mousemove:r}),r(t)):n.position(V.extend({of:e},this.options.position)),n.hide(),this._show(n,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(o=this.delayedShow=setInterval(function(){n.is(":visible")&&(r(a.of),clearInterval(o))},13)),this._trigger("open",t,{tooltip:n})))},_registerCloseHandlers:function(t,e){var i={keyup:function(t){t.keyCode===V.ui.keyCode.ESCAPE&&((t=V.Event(t)).currentTarget=e[0],this.close(t,!0))}};e[0]!==this.element[0]&&(i.remove=function(){this._removeTooltip(this._find(e).tooltip)}),t&&"mouseover"!==t.type||(i.mouseleave="close"),t&&"focusin"!==t.type||(i.focusout="close"),this._on(!0,e,i)},close:function(t){var e,i=this,s=V(t?t.currentTarget:this.element),n=this._find(s);n?(e=n.tooltip,n.closing||(clearInterval(this.delayedShow),s.data("ui-tooltip-title")&&!s.attr("title")&&s.attr("title",s.data("ui-tooltip-title")),this._removeDescribedBy(s),n.hiding=!0,e.stop(!0),this._hide(e,this.options.hide,function(){i._removeTooltip(V(this))}),s.removeData("ui-tooltip-open"),this._off(s,"mouseleave focusout keyup"),s[0]!==this.element[0]&&this._off(s,"remove"),this._off(this.document,"mousemove"),t&&"mouseleave"===t.type&&V.each(this.parents,function(t,e){V(e.element).attr("title",e.title),delete i.parents[t]}),n.closing=!0,this._trigger("close",t,{tooltip:e}),n.hiding||(n.closing=!1))):s.removeData("ui-tooltip-open")},_tooltip:function(t){var e=V("<div>").attr("role","tooltip"),i=V("<div>").appendTo(e),s=e.uniqueId().attr("id");return this._addClass(i,"ui-tooltip-content"),this._addClass(e,"ui-tooltip","ui-widget ui-widget-content"),e.appendTo(this._appendTo(t)),this.tooltips[s]={element:t,tooltip:e}},_find:function(t){t=t.data("ui-tooltip-id");return t?this.tooltips[t]:null},_removeTooltip:function(t){clearInterval(this.delayedShow),t.remove(),delete this.tooltips[t.attr("id")]},_appendTo:function(t){t=t.closest(".ui-front, dialog");return t=!t.length?this.document[0].body:t},_destroy:function(){var s=this;V.each(this.tooltips,function(t,e){var i=V.Event("blur"),e=e.element;i.target=i.currentTarget=e[0],s.close(i,!0),V("#"+t).remove(),e.data("ui-tooltip-title")&&(e.attr("title")||e.attr("title",e.data("ui-tooltip-title")),e.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}}),!1!==V.uiBackCompat&&V.widget("ui.tooltip",V.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var t=this._superApply(arguments);return this.options.tooltipClass&&t.tooltip.addClass(this.options.tooltipClass),t}});V.ui.tooltip;var H=V,z={},A=z.toString,O=/^([\-+])=\s*(\d+\.?\d*)/,N=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16),t[4]?(parseInt(t[4],16)/255).toFixed(2):1]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16),t[4]?(parseInt(t[4]+t[4],16)/255).toFixed(2):1]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],E=H.Color=function(t,e,i,s){return new H.Color.fn.parse(t,e,i,s)},W={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},F={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},L=E.support={},R=H("<p>")[0],Y=H.each;function B(t){return null==t?t+"":"object"==typeof t?z[A.call(t)]||"object":typeof t}function j(t,e,i){var s=F[e.type]||{};return null==t?i||!e.def?null:e.def:(t=s.floor?~~t:parseFloat(t),isNaN(t)?e.def:s.mod?(t+s.mod)%s.mod:Math.min(s.max,Math.max(0,t)))}function q(s){var n=E(),o=n._rgba=[];return s=s.toLowerCase(),Y(N,function(t,e){var i=e.re.exec(s),i=i&&e.parse(i),e=e.space||"rgba";if(i)return i=n[e](i),n[W[e].cache]=i[W[e].cache],o=n._rgba=i._rgba,!1}),o.length?("0,0,0,0"===o.join()&&H.extend(o,st.transparent),n):st[s]}function K(t,e,i){return 6*(i=(i+1)%1)<1?t+(e-t)*i*6:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}R.style.cssText="background-color:rgba(1,1,1,.5)",L.rgba=-1<R.style.backgroundColor.indexOf("rgba"),Y(W,function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}}),H.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){z["[object "+e+"]"]=e.toLowerCase()}),(E.fn=H.extend(E.prototype,{parse:function(n,t,e,i){if(void 0===n)return this._rgba=[null,null,null,null],this;(n.jquery||n.nodeType)&&(n=H(n).css(t),t=void 0);var o=this,s=B(n),a=this._rgba=[];return void 0!==t&&(n=[n,t,e,i],s="array"),"string"===s?this.parse(q(n)||st._default):"array"===s?(Y(W.rgba.props,function(t,e){a[e.idx]=j(n[e.idx],e)}),this):"object"===s?(Y(W,n instanceof E?function(t,e){n[e.cache]&&(o[e.cache]=n[e.cache].slice())}:function(t,i){var s=i.cache;Y(i.props,function(t,e){if(!o[s]&&i.to){if("alpha"===t||null==n[t])return;o[s]=i.to(o._rgba)}o[s][e.idx]=j(n[t],e,!0)}),o[s]&&H.inArray(null,o[s].slice(0,3))<0&&(null==o[s][3]&&(o[s][3]=1),i.from&&(o._rgba=i.from(o[s])))}),this):void 0},is:function(t){var n=E(t),o=!0,a=this;return Y(W,function(t,e){var i,s=n[e.cache];return s&&(i=a[e.cache]||e.to&&e.to(a._rgba)||[],Y(e.props,function(t,e){if(null!=s[e.idx])return o=s[e.idx]===i[e.idx]})),o}),o},_space:function(){var i=[],s=this;return Y(W,function(t,e){s[e.cache]&&i.push(t)}),i.pop()},transition:function(t,a){var e=(h=E(t))._space(),i=W[e],t=0===this.alpha()?E("transparent"):this,r=t[i.cache]||i.to(t._rgba),l=r.slice(),h=h[i.cache];return Y(i.props,function(t,e){var i=e.idx,s=r[i],n=h[i],o=F[e.type]||{};null!==n&&(null===s?l[i]=n:(o.mod&&(n-s>o.mod/2?s+=o.mod:s-n>o.mod/2&&(s-=o.mod)),l[i]=j((n-s)*a+s,e)))}),this[e](l)},blend:function(t){if(1===this._rgba[3])return this;var e=this._rgba.slice(),i=e.pop(),s=E(t)._rgba;return E(H.map(e,function(t,e){return(1-i)*s[e]+i*t}))},toRgbaString:function(){var t="rgba(",e=H.map(this._rgba,function(t,e){return null!=t?t:2<e?1:0});return 1===e[3]&&(e.pop(),t="rgb("),t+e.join()+")"},toHslaString:function(){var t="hsla(",e=H.map(this.hsla(),function(t,e){return null==t&&(t=2<e?1:0),t=e&&e<3?Math.round(100*t)+"%":t});return 1===e[3]&&(e.pop(),t="hsl("),t+e.join()+")"},toHexString:function(t){var e=this._rgba.slice(),i=e.pop();return t&&e.push(~~(255*i)),"#"+H.map(e,function(t){return 1===(t=(t||0).toString(16)).length?"0"+t:t}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}})).parse.prototype=E.fn,W.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/255,i=t[1]/255,s=t[2]/255,n=t[3],o=Math.max(e,i,s),a=Math.min(e,i,s),r=o-a,l=o+a,t=.5*l,i=a===o?0:e===o?60*(i-s)/r+360:i===o?60*(s-e)/r+120:60*(e-i)/r+240,l=0==r?0:t<=.5?r/l:r/(2-l);return[Math.round(i)%360,l,t,null==n?1:n]},W.hsla.from=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/360,i=t[1],s=t[2],t=t[3],i=s<=.5?s*(1+i):s+i-s*i,s=2*s-i;return[Math.round(255*K(s,i,e+1/3)),Math.round(255*K(s,i,e)),Math.round(255*K(s,i,e-1/3)),t]},Y(W,function(l,t){var e=t.props,o=t.cache,a=t.to,r=t.from;E.fn[l]=function(t){if(a&&!this[o]&&(this[o]=a(this._rgba)),void 0===t)return this[o].slice();var i=B(t),s="array"===i||"object"===i?t:arguments,n=this[o].slice();return Y(e,function(t,e){t=s["object"===i?t:e.idx];null==t&&(t=n[e.idx]),n[e.idx]=j(t,e)}),r?((t=E(r(n)))[o]=n,t):E(n)},Y(e,function(a,r){E.fn[a]||(E.fn[a]=function(t){var e,i=B(t),s="alpha"===a?this._hsla?"hsla":"rgba":l,n=this[s](),o=n[r.idx];return"undefined"===i?o:("function"===i&&(i=B(t=t.call(this,o))),null==t&&r.empty?this:("string"===i&&(e=O.exec(t))&&(t=o+parseFloat(e[2])*("+"===e[1]?1:-1)),n[r.idx]=t,this[s](n)))})})}),(E.hook=function(t){t=t.split(" ");Y(t,function(t,o){H.cssHooks[o]={set:function(t,e){var i,s,n="";if("transparent"!==e&&("string"!==B(e)||(i=q(e)))){if(e=E(i||e),!L.rgba&&1!==e._rgba[3]){for(s="backgroundColor"===o?t.parentNode:t;(""===n||"transparent"===n)&&s&&s.style;)try{n=H.css(s,"backgroundColor"),s=s.parentNode}catch(t){}e=e.blend(n&&"transparent"!==n?n:"_default")}e=e.toRgbaString()}try{t.style[o]=e}catch(t){}}},H.fx.step[o]=function(t){t.colorInit||(t.start=E(t.elem,o),t.end=E(t.end),t.colorInit=!0),H.cssHooks[o].set(t.elem,t.start.transition(t.end,t.pos))}})})("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),H.cssHooks.borderColor={expand:function(i){var s={};return Y(["Top","Right","Bottom","Left"],function(t,e){s["border"+e+"Color"]=i}),s}};var U,X,$,G,Q,J,Z,tt,et,it,st=H.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"},nt="ui-effects-",ot="ui-effects-style",at="ui-effects-animated";function rt(t){var e,i,s=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,n={};if(s&&s.length&&s[0]&&s[s[0]])for(i=s.length;i--;)"string"==typeof s[e=s[i]]&&(n[e.replace(/-([\da-z])/gi,function(t,e){return e.toUpperCase()})]=s[e]);else for(e in s)"string"==typeof s[e]&&(n[e]=s[e]);return n}function lt(t,e,i,s){return t={effect:t=V.isPlainObject(t)?(e=t).effect:t},"function"==typeof(e=null==e?{}:e)&&(s=e,i=null,e={}),"number"!=typeof e&&!V.fx.speeds[e]||(s=i,i=e,e={}),"function"==typeof i&&(s=i,i=null),e&&V.extend(t,e),i=i||e.duration,t.duration=V.fx.off?0:"number"==typeof i?i:i in V.fx.speeds?V.fx.speeds[i]:V.fx.speeds._default,t.complete=s||e.complete,t}function ht(t){return!t||"number"==typeof t||V.fx.speeds[t]||("string"==typeof t&&!V.effects.effect[t]||("function"==typeof t||"object"==typeof t&&!t.effect))}function ct(t,e){var i=e.outerWidth(),e=e.outerHeight(),t=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(t)||["",0,i,e,0];return{top:parseFloat(t[1])||0,right:"auto"===t[2]?i:parseFloat(t[2]),bottom:"auto"===t[3]?e:parseFloat(t[3]),left:parseFloat(t[4])||0}}V.effects={effect:{}},G=["add","remove","toggle"],Q={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1},V.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,e){V.fx.step[e]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(H.style(t.elem,e,t.end),t.setAttr=!0)}}),V.fn.addBack||(V.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),V.effects.animateClass=function(n,t,e,i){var o=V.speed(t,e,i);return this.queue(function(){var i=V(this),t=i.attr("class")||"",e=(e=o.children?i.find("*").addBack():i).map(function(){return{el:V(this),start:rt(this)}}),s=function(){V.each(G,function(t,e){n[e]&&i[e+"Class"](n[e])})};s(),e=e.map(function(){return this.end=rt(this.el[0]),this.diff=function(t,e){var i,s,n={};for(i in e)s=e[i],t[i]!==s&&(Q[i]||!V.fx.step[i]&&isNaN(parseFloat(s))||(n[i]=s));return n}(this.start,this.end),this}),i.attr("class",t),e=e.map(function(){var t=this,e=V.Deferred(),i=V.extend({},o,{queue:!1,complete:function(){e.resolve(t)}});return this.el.animate(this.diff,i),e.promise()}),V.when.apply(V,e.get()).done(function(){s(),V.each(arguments,function(){var e=this.el;V.each(this.diff,function(t){e.css(t,"")})}),o.complete.call(i[0])})})},V.fn.extend({addClass:($=V.fn.addClass,function(t,e,i,s){return e?V.effects.animateClass.call(this,{add:t},e,i,s):$.apply(this,arguments)}),removeClass:(X=V.fn.removeClass,function(t,e,i,s){return 1<arguments.length?V.effects.animateClass.call(this,{remove:t},e,i,s):X.apply(this,arguments)}),toggleClass:(U=V.fn.toggleClass,function(t,e,i,s,n){return"boolean"==typeof e||void 0===e?i?V.effects.animateClass.call(this,e?{add:t}:{remove:t},i,s,n):U.apply(this,arguments):V.effects.animateClass.call(this,{toggle:t},e,i,s)}),switchClass:function(t,e,i,s,n){return V.effects.animateClass.call(this,{add:e,remove:t},i,s,n)}}),V.expr&&V.expr.pseudos&&V.expr.pseudos.animated&&(V.expr.pseudos.animated=(J=V.expr.pseudos.animated,function(t){return!!V(t).data(at)||J(t)})),!1!==V.uiBackCompat&&V.extend(V.effects,{save:function(t,e){for(var i=0,s=e.length;i<s;i++)null!==e[i]&&t.data(nt+e[i],t[0].style[e[i]])},restore:function(t,e){for(var i,s=0,n=e.length;s<n;s++)null!==e[s]&&(i=t.data(nt+e[s]),t.css(e[s],i))},setMode:function(t,e){return e="toggle"===e?t.is(":hidden")?"show":"hide":e},createWrapper:function(i){if(i.parent().is(".ui-effects-wrapper"))return i.parent();var s={width:i.outerWidth(!0),height:i.outerHeight(!0),float:i.css("float")},t=V("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:i.width(),height:i.height()},n=document.activeElement;try{n.id}catch(t){n=document.body}return i.wrap(t),i[0]!==n&&!V.contains(i[0],n)||V(n).trigger("focus"),t=i.parent(),"static"===i.css("position")?(t.css({position:"relative"}),i.css({position:"relative"})):(V.extend(s,{position:i.css("position"),zIndex:i.css("z-index")}),V.each(["top","left","bottom","right"],function(t,e){s[e]=i.css(e),isNaN(parseInt(s[e],10))&&(s[e]="auto")}),i.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),i.css(e),t.css(s).show()},removeWrapper:function(t){var e=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),t[0]!==e&&!V.contains(t[0],e)||V(e).trigger("focus")),t}}),V.extend(V.effects,{version:"1.13.0",define:function(t,e,i){return i||(i=e,e="effect"),V.effects.effect[t]=i,V.effects.effect[t].mode=e,i},scaledDimensions:function(t,e,i){if(0===e)return{height:0,width:0,outerHeight:0,outerWidth:0};var s="horizontal"!==i?(e||100)/100:1,e="vertical"!==i?(e||100)/100:1;return{height:t.height()*e,width:t.width()*s,outerHeight:t.outerHeight()*e,outerWidth:t.outerWidth()*s}},clipToBox:function(t){return{width:t.clip.right-t.clip.left,height:t.clip.bottom-t.clip.top,left:t.clip.left,top:t.clip.top}},unshift:function(t,e,i){var s=t.queue();1<e&&s.splice.apply(s,[1,0].concat(s.splice(e,i))),t.dequeue()},saveStyle:function(t){t.data(ot,t[0].style.cssText)},restoreStyle:function(t){t[0].style.cssText=t.data(ot)||"",t.removeData(ot)},mode:function(t,e){t=t.is(":hidden");return"toggle"===e&&(e=t?"show":"hide"),e=(t?"hide"===e:"show"===e)?"none":e},getBaseline:function(t,e){var i,s;switch(t[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=t[0]/e.height}switch(t[1]){case"left":s=0;break;case"center":s=.5;break;case"right":s=1;break;default:s=t[1]/e.width}return{x:s,y:i}},createPlaceholder:function(t){var e,i=t.css("position"),s=t.position();return t.css({marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()),/^(static|relative)/.test(i)&&(i="absolute",e=V("<"+t[0].nodeName+">").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),float:t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data(nt+"placeholder",e)),t.css({position:i,left:s.left,top:s.top}),e},removePlaceholder:function(t){var e=nt+"placeholder",i=t.data(e);i&&(i.remove(),t.removeData(e))},cleanUp:function(t){V.effects.restoreStyle(t),V.effects.removePlaceholder(t)},setTransition:function(s,t,n,o){return o=o||{},V.each(t,function(t,e){var i=s.cssUnit(e);0<i[0]&&(o[e]=i[0]*n+i[1])}),o}}),V.fn.extend({effect:function(){function t(t){var e=V(this),i=V.effects.mode(e,r)||o;e.data(at,!0),l.push(i),o&&("show"===i||i===o&&"hide"===i)&&e.show(),o&&"none"===i||V.effects.saveStyle(e),"function"==typeof t&&t()}var s=lt.apply(this,arguments),n=V.effects.effect[s.effect],o=n.mode,e=s.queue,i=e||"fx",a=s.complete,r=s.mode,l=[];return V.fx.off||!n?r?this[r](s.duration,a):this.each(function(){a&&a.call(this)}):!1===e?this.each(t).each(h):this.queue(i,t).queue(i,h);function h(t){var e=V(this);function i(){"function"==typeof a&&a.call(e[0]),"function"==typeof t&&t()}s.mode=l.shift(),!1===V.uiBackCompat||o?"none"===s.mode?(e[r](),i()):n.call(e[0],s,function(){e.removeData(at),V.effects.cleanUp(e),"hide"===s.mode&&e.hide(),i()}):(e.is(":hidden")?"hide"===r:"show"===r)?(e[r](),i()):n.call(e[0],s,i)}},show:(et=V.fn.show,function(t){if(ht(t))return et.apply(this,arguments);t=lt.apply(this,arguments);return t.mode="show",this.effect.call(this,t)}),hide:(tt=V.fn.hide,function(t){if(ht(t))return tt.apply(this,arguments);t=lt.apply(this,arguments);return t.mode="hide",this.effect.call(this,t)}),toggle:(Z=V.fn.toggle,function(t){if(ht(t)||"boolean"==typeof t)return Z.apply(this,arguments);t=lt.apply(this,arguments);return t.mode="toggle",this.effect.call(this,t)}),cssUnit:function(t){var i=this.css(t),s=[];return V.each(["em","px","%","pt"],function(t,e){0<i.indexOf(e)&&(s=[parseFloat(i),e])}),s},cssClip:function(t){return t?this.css("clip","rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"):ct(this.css("clip"),this)},transfer:function(t,e){var i=V(this),s=V(t.to),n="fixed"===s.css("position"),o=V("body"),a=n?o.scrollTop():0,r=n?o.scrollLeft():0,o=s.offset(),o={top:o.top-a,left:o.left-r,height:s.innerHeight(),width:s.innerWidth()},s=i.offset(),l=V("<div class='ui-effects-transfer'></div>");l.appendTo("body").addClass(t.className).css({top:s.top-a,left:s.left-r,height:i.innerHeight(),width:i.innerWidth(),position:n?"fixed":"absolute"}).animate(o,t.duration,t.easing,function(){l.remove(),"function"==typeof e&&e()})}}),V.fx.step.clip=function(t){t.clipInit||(t.start=V(t.elem).cssClip(),"string"==typeof t.end&&(t.end=ct(t.end,t.elem)),t.clipInit=!0),V(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})},it={},V.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,t){it[t]=function(t){return Math.pow(t,e+2)}}),V.extend(it,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,i=4;t<((e=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),V.each(it,function(t,e){V.easing["easeIn"+t]=e,V.easing["easeOut"+t]=function(t){return 1-e(1-t)},V.easing["easeInOut"+t]=function(t){return t<.5?e(2*t)/2:1-e(-2*t+2)/2}});R=V.effects,V.effects.define("blind","hide",function(t,e){var i={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},s=V(this),n=t.direction||"up",o=s.cssClip(),a={clip:V.extend({},o)},r=V.effects.createPlaceholder(s);a.clip[i[n][0]]=a.clip[i[n][1]],"show"===t.mode&&(s.cssClip(a.clip),r&&r.css(V.effects.clipToBox(a)),a.clip=o),r&&r.animate(V.effects.clipToBox(a),t.duration,t.easing),s.animate(a,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),V.effects.define("bounce",function(t,e){var i,s,n=V(this),o=t.mode,a="hide"===o,r="show"===o,l=t.direction||"up",h=t.distance,c=t.times||5,o=2*c+(r||a?1:0),u=t.duration/o,d=t.easing,p="up"===l||"down"===l?"top":"left",f="up"===l||"left"===l,g=0,t=n.queue().length;for(V.effects.createPlaceholder(n),l=n.css(p),h=h||n["top"==p?"outerHeight":"outerWidth"]()/3,r&&((s={opacity:1})[p]=l,n.css("opacity",0).css(p,f?2*-h:2*h).animate(s,u,d)),a&&(h/=Math.pow(2,c-1)),(s={})[p]=l;g<c;g++)(i={})[p]=(f?"-=":"+=")+h,n.animate(i,u,d).animate(s,u,d),h=a?2*h:h/2;a&&((i={opacity:0})[p]=(f?"-=":"+=")+h,n.animate(i,u,d)),n.queue(e),V.effects.unshift(n,t,1+o)}),V.effects.define("clip","hide",function(t,e){var i={},s=V(this),n=t.direction||"vertical",o="both"===n,a=o||"horizontal"===n,o=o||"vertical"===n,n=s.cssClip();i.clip={top:o?(n.bottom-n.top)/2:n.top,right:a?(n.right-n.left)/2:n.right,bottom:o?(n.bottom-n.top)/2:n.bottom,left:a?(n.right-n.left)/2:n.left},V.effects.createPlaceholder(s),"show"===t.mode&&(s.cssClip(i.clip),i.clip=n),s.animate(i,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),V.effects.define("drop","hide",function(t,e){var i=V(this),s="show"===t.mode,n=t.direction||"left",o="up"===n||"down"===n?"top":"left",a="up"===n||"left"===n?"-=":"+=",r="+="==a?"-=":"+=",l={opacity:0};V.effects.createPlaceholder(i),n=t.distance||i["top"==o?"outerHeight":"outerWidth"](!0)/2,l[o]=a+n,s&&(i.css(l),l[o]=r+n,l.opacity=1),i.animate(l,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),V.effects.define("explode","hide",function(t,e){var i,s,n,o,a,r,l=t.pieces?Math.round(Math.sqrt(t.pieces)):3,h=l,c=V(this),u="show"===t.mode,d=c.show().css("visibility","hidden").offset(),p=Math.ceil(c.outerWidth()/h),f=Math.ceil(c.outerHeight()/l),g=[];function m(){g.push(this),g.length===l*h&&(c.css({visibility:"visible"}),V(g).remove(),e())}for(i=0;i<l;i++)for(o=d.top+i*f,r=i-(l-1)/2,s=0;s<h;s++)n=d.left+s*p,a=s-(h-1)/2,c.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-s*p,top:-i*f}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:p,height:f,left:n+(u?a*p:0),top:o+(u?r*f:0),opacity:u?0:1}).animate({left:n+(u?0:a*p),top:o+(u?0:r*f),opacity:u?1:0},t.duration||500,t.easing,m)}),V.effects.define("fade","toggle",function(t,e){var i="show"===t.mode;V(this).css("opacity",i?0:1).animate({opacity:i?1:0},{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),V.effects.define("fold","hide",function(e,t){var i=V(this),s=e.mode,n="show"===s,o="hide"===s,a=e.size||15,r=/([0-9]+)%/.exec(a),l=!!e.horizFirst?["right","bottom"]:["bottom","right"],h=e.duration/2,c=V.effects.createPlaceholder(i),u=i.cssClip(),d={clip:V.extend({},u)},p={clip:V.extend({},u)},f=[u[l[0]],u[l[1]]],s=i.queue().length;r&&(a=parseInt(r[1],10)/100*f[o?0:1]),d.clip[l[0]]=a,p.clip[l[0]]=a,p.clip[l[1]]=0,n&&(i.cssClip(p.clip),c&&c.css(V.effects.clipToBox(p)),p.clip=u),i.queue(function(t){c&&c.animate(V.effects.clipToBox(d),h,e.easing).animate(V.effects.clipToBox(p),h,e.easing),t()}).animate(d,h,e.easing).animate(p,h,e.easing).queue(t),V.effects.unshift(i,s,4)}),V.effects.define("highlight","show",function(t,e){var i=V(this),s={backgroundColor:i.css("backgroundColor")};"hide"===t.mode&&(s.opacity=0),V.effects.saveStyle(i),i.css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(s,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),V.effects.define("size",function(s,e){var n,i=V(this),t=["fontSize"],o=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],a=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],r=s.mode,l="effect"!==r,h=s.scale||"both",c=s.origin||["middle","center"],u=i.css("position"),d=i.position(),p=V.effects.scaledDimensions(i),f=s.from||p,g=s.to||V.effects.scaledDimensions(i,0);V.effects.createPlaceholder(i),"show"===r&&(r=f,f=g,g=r),n={from:{y:f.height/p.height,x:f.width/p.width},to:{y:g.height/p.height,x:g.width/p.width}},"box"!==h&&"both"!==h||(n.from.y!==n.to.y&&(f=V.effects.setTransition(i,o,n.from.y,f),g=V.effects.setTransition(i,o,n.to.y,g)),n.from.x!==n.to.x&&(f=V.effects.setTransition(i,a,n.from.x,f),g=V.effects.setTransition(i,a,n.to.x,g))),"content"!==h&&"both"!==h||n.from.y!==n.to.y&&(f=V.effects.setTransition(i,t,n.from.y,f),g=V.effects.setTransition(i,t,n.to.y,g)),c&&(c=V.effects.getBaseline(c,p),f.top=(p.outerHeight-f.outerHeight)*c.y+d.top,f.left=(p.outerWidth-f.outerWidth)*c.x+d.left,g.top=(p.outerHeight-g.outerHeight)*c.y+d.top,g.left=(p.outerWidth-g.outerWidth)*c.x+d.left),delete f.outerHeight,delete f.outerWidth,i.css(f),"content"!==h&&"both"!==h||(o=o.concat(["marginTop","marginBottom"]).concat(t),a=a.concat(["marginLeft","marginRight"]),i.find("*[width]").each(function(){var t=V(this),e=V.effects.scaledDimensions(t),i={height:e.height*n.from.y,width:e.width*n.from.x,outerHeight:e.outerHeight*n.from.y,outerWidth:e.outerWidth*n.from.x},e={height:e.height*n.to.y,width:e.width*n.to.x,outerHeight:e.height*n.to.y,outerWidth:e.width*n.to.x};n.from.y!==n.to.y&&(i=V.effects.setTransition(t,o,n.from.y,i),e=V.effects.setTransition(t,o,n.to.y,e)),n.from.x!==n.to.x&&(i=V.effects.setTransition(t,a,n.from.x,i),e=V.effects.setTransition(t,a,n.to.x,e)),l&&V.effects.saveStyle(t),t.css(i),t.animate(e,s.duration,s.easing,function(){l&&V.effects.restoreStyle(t)})})),i.animate(g,{queue:!1,duration:s.duration,easing:s.easing,complete:function(){var t=i.offset();0===g.opacity&&i.css("opacity",f.opacity),l||(i.css("position","static"===u?"relative":u).offset(t),V.effects.saveStyle(i)),e()}})}),V.effects.define("scale",function(t,e){var i=V(this),s=t.mode,s=parseInt(t.percent,10)||(0===parseInt(t.percent,10)||"effect"!==s?0:100),s=V.extend(!0,{from:V.effects.scaledDimensions(i),to:V.effects.scaledDimensions(i,s,t.direction||"both"),origin:t.origin||["middle","center"]},t);t.fade&&(s.from.opacity=1,s.to.opacity=0),V.effects.effect.size.call(this,s,e)}),V.effects.define("puff","hide",function(t,e){t=V.extend(!0,{},t,{fade:!0,percent:parseInt(t.percent,10)||150});V.effects.effect.scale.call(this,t,e)}),V.effects.define("pulsate","show",function(t,e){var i=V(this),s=t.mode,n="show"===s,o=2*(t.times||5)+(n||"hide"===s?1:0),a=t.duration/o,r=0,l=1,s=i.queue().length;for(!n&&i.is(":visible")||(i.css("opacity",0).show(),r=1);l<o;l++)i.animate({opacity:r},a,t.easing),r=1-r;i.animate({opacity:r},a,t.easing),i.queue(e),V.effects.unshift(i,s,1+o)}),V.effects.define("shake",function(t,e){var i=1,s=V(this),n=t.direction||"left",o=t.distance||20,a=t.times||3,r=2*a+1,l=Math.round(t.duration/r),h="up"===n||"down"===n?"top":"left",c="up"===n||"left"===n,u={},d={},p={},n=s.queue().length;for(V.effects.createPlaceholder(s),u[h]=(c?"-=":"+=")+o,d[h]=(c?"+=":"-=")+2*o,p[h]=(c?"-=":"+=")+2*o,s.animate(u,l,t.easing);i<a;i++)s.animate(d,l,t.easing).animate(p,l,t.easing);s.animate(d,l,t.easing).animate(u,l/2,t.easing).queue(e),V.effects.unshift(s,n,1+r)}),V.effects.define("slide","show",function(t,e){var i,s,n=V(this),o={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},a=t.mode,r=t.direction||"left",l="up"===r||"down"===r?"top":"left",h="up"===r||"left"===r,c=t.distance||n["top"==l?"outerHeight":"outerWidth"](!0),u={};V.effects.createPlaceholder(n),i=n.cssClip(),s=n.position()[l],u[l]=(h?-1:1)*c+s,u.clip=n.cssClip(),u.clip[o[r][1]]=u.clip[o[r][0]],"show"===a&&(n.cssClip(u.clip),n.css(l,u[l]),u.clip=i,u[l]=s),n.animate(u,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),!1!==V.uiBackCompat&&V.effects.define("transfer",function(t,e){V(this).transfer(t,e)})});
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/jquery-ui.structure.min.css
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/jquery-ui.structure.min.css	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/jquery-ui.structure.min.css	(revision 38779)
@@ -0,0 +1,5 @@
+/*! jQuery UI - v1.13.0 - 2021-12-17
+* http://jqueryui.com
+* Copyright jQuery Foundation and other contributors; Licensed MIT */
+
+.ui-draggable-handle{-ms-touch-action:none;touch-action:none}.ui-helper-hidden{display:none}.ui-helper-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.ui-helper-clearfix:before,.ui-helper-clearfix:after{content:"";display:table;border-collapse:collapse}.ui-helper-clearfix:after{clear:both}.ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;-ms-filter:"alpha(opacity=0)"}.ui-front{z-index:100}.ui-state-disabled{cursor:default!important;pointer-events:none}.ui-icon{display:inline-block;vertical-align:middle;margin-top:-.25em;position:relative;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}.ui-widget-icon-block{left:50%;margin-left:-8px;display:block}.ui-widget-overlay{position:fixed;top:0;left:0;width:100%;height:100%}.ui-resizable{position:relative}.ui-resizable-handle{position:absolute;font-size:0.1px;display:block;-ms-touch-action:none;touch-action:none}.ui-resizable-disabled .ui-resizable-handle,.ui-resizable-autohide .ui-resizable-handle{display:none}.ui-resizable-n{cursor:n-resize;height:7px;width:100%;top:-5px;left:0}.ui-resizable-s{cursor:s-resize;height:7px;width:100%;bottom:-5px;left:0}.ui-resizable-e{cursor:e-resize;width:7px;right:-5px;top:0;height:100%}.ui-resizable-w{cursor:w-resize;width:7px;left:-5px;top:0;height:100%}.ui-resizable-se{cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.ui-resizable-sw{cursor:sw-resize;width:9px;height:9px;left:-5px;bottom:-5px}.ui-resizable-nw{cursor:nw-resize;width:9px;height:9px;left:-5px;top:-5px}.ui-resizable-ne{cursor:ne-resize;width:9px;height:9px;right:-5px;top:-5px}.ui-selectable{-ms-touch-action:none;touch-action:none}.ui-selectable-helper{position:absolute;z-index:100;border:1px dotted black}.ui-sortable-handle{-ms-touch-action:none;touch-action:none}.ui-accordion .ui-accordion-header{display:block;cursor:pointer;position:relative;margin:2px 0 0 0;padding:.5em .5em .5em .7em;font-size:100%}.ui-accordion .ui-accordion-content{padding:1em 2.2em;border-top:0;overflow:auto}.ui-autocomplete{position:absolute;top:0;left:0;cursor:default}.ui-menu{list-style:none;padding:0;margin:0;display:block;outline:0}.ui-menu .ui-menu{position:absolute}.ui-menu .ui-menu-item{margin:0;cursor:pointer;list-style-image:url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}.ui-menu .ui-menu-item-wrapper{position:relative;padding:3px 1em 3px .4em}.ui-menu .ui-menu-divider{margin:5px 0;height:0;font-size:0;line-height:0;border-width:1px 0 0 0}.ui-menu .ui-state-focus,.ui-menu .ui-state-active{margin:-1px}.ui-menu-icons{position:relative}.ui-menu-icons .ui-menu-item-wrapper{padding-left:2em}.ui-menu .ui-icon{position:absolute;top:0;bottom:0;left:.2em;margin:auto 0}.ui-menu .ui-menu-icon{left:auto;right:0}.ui-button{padding:.4em 1em;display:inline-block;position:relative;line-height:normal;margin-right:.1em;cursor:pointer;vertical-align:middle;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:visible}.ui-button,.ui-button:link,.ui-button:visited,.ui-button:hover,.ui-button:active{text-decoration:none}.ui-button-icon-only{width:2em;box-sizing:border-box;text-indent:-9999px;white-space:nowrap}input.ui-button.ui-button-icon-only{text-indent:0}.ui-button-icon-only .ui-icon{position:absolute;top:50%;left:50%;margin-top:-8px;margin-left:-8px}.ui-button.ui-icon-notext .ui-icon{padding:0;width:2.1em;height:2.1em;text-indent:-9999px;white-space:nowrap}input.ui-button.ui-icon-notext .ui-icon{width:auto;height:auto;text-indent:0;white-space:normal;padding:.4em 1em}input.ui-button::-moz-focus-inner,button.ui-button::-moz-focus-inner{border:0;padding:0}.ui-controlgroup{vertical-align:middle;display:inline-block}.ui-controlgroup > .ui-controlgroup-item{float:left;margin-left:0;margin-right:0}.ui-controlgroup > .ui-controlgroup-item:focus,.ui-controlgroup > .ui-controlgroup-item.ui-visual-focus{z-index:9999}.ui-controlgroup-vertical > .ui-controlgroup-item{display:block;float:none;width:100%;margin-top:0;margin-bottom:0;text-align:left}.ui-controlgroup-vertical .ui-controlgroup-item{box-sizing:border-box}.ui-controlgroup .ui-controlgroup-label{padding:.4em 1em}.ui-controlgroup .ui-controlgroup-label span{font-size:80%}.ui-controlgroup-horizontal .ui-controlgroup-label + .ui-controlgroup-item{border-left:none}.ui-controlgroup-vertical .ui-controlgroup-label + .ui-controlgroup-item{border-top:none}.ui-controlgroup-horizontal .ui-controlgroup-label.ui-widget-content{border-right:none}.ui-controlgroup-vertical .ui-controlgroup-label.ui-widget-content{border-bottom:none}.ui-controlgroup-vertical .ui-spinner-input{width:75%;width:calc( 100% - 2.4em )}.ui-controlgroup-vertical .ui-spinner .ui-spinner-up{border-top-style:solid}.ui-checkboxradio-label .ui-icon-background{box-shadow:inset 1px 1px 1px #ccc;border-radius:.12em;border:none}.ui-checkboxradio-radio-label .ui-icon-background{width:16px;height:16px;border-radius:1em;overflow:visible;border:none}.ui-checkboxradio-radio-label.ui-checkboxradio-checked .ui-icon,.ui-checkboxradio-radio-label.ui-checkboxradio-checked:hover .ui-icon{background-image:none;width:8px;height:8px;border-width:4px;border-style:solid}.ui-checkboxradio-disabled{pointer-events:none}.ui-datepicker{width:17em;padding:.2em .2em 0;display:none}.ui-datepicker .ui-datepicker-header{position:relative;padding:.2em 0}.ui-datepicker .ui-datepicker-prev,.ui-datepicker .ui-datepicker-next{position:absolute;top:2px;width:1.8em;height:1.8em}.ui-datepicker .ui-datepicker-prev-hover,.ui-datepicker .ui-datepicker-next-hover{top:1px}.ui-datepicker .ui-datepicker-prev{left:2px}.ui-datepicker .ui-datepicker-next{right:2px}.ui-datepicker .ui-datepicker-prev-hover{left:1px}.ui-datepicker .ui-datepicker-next-hover{right:1px}.ui-datepicker .ui-datepicker-prev span,.ui-datepicker .ui-datepicker-next span{display:block;position:absolute;left:50%;margin-left:-8px;top:50%;margin-top:-8px}.ui-datepicker .ui-datepicker-title{margin:0 2.3em;line-height:1.8em;text-align:center}.ui-datepicker .ui-datepicker-title select{font-size:1em;margin:1px 0}.ui-datepicker select.ui-datepicker-month,.ui-datepicker select.ui-datepicker-year{width:45%}.ui-datepicker table{width:100%;font-size:.9em;border-collapse:collapse;margin:0 0 .4em}.ui-datepicker th{padding:.7em .3em;text-align:center;font-weight:bold;border:0}.ui-datepicker td{border:0;padding:1px}.ui-datepicker td span,.ui-datepicker td a{display:block;padding:.2em;text-align:right;text-decoration:none}.ui-datepicker .ui-datepicker-buttonpane{background-image:none;margin:.7em 0 0 0;padding:0 .2em;border-left:0;border-right:0;border-bottom:0}.ui-datepicker .ui-datepicker-buttonpane button{float:right;margin:.5em .2em .4em;cursor:pointer;padding:.2em .6em .3em .6em;width:auto;overflow:visible}.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current{float:left}.ui-datepicker.ui-datepicker-multi{width:auto}.ui-datepicker-multi .ui-datepicker-group{float:left}.ui-datepicker-multi .ui-datepicker-group table{width:95%;margin:0 auto .4em}.ui-datepicker-multi-2 .ui-datepicker-group{width:50%}.ui-datepicker-multi-3 .ui-datepicker-group{width:33.3%}.ui-datepicker-multi-4 .ui-datepicker-group{width:25%}.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header{border-left-width:0}.ui-datepicker-multi .ui-datepicker-buttonpane{clear:left}.ui-datepicker-row-break{clear:both;width:100%;font-size:0}.ui-datepicker-rtl{direction:rtl}.ui-datepicker-rtl .ui-datepicker-prev{right:2px;left:auto}.ui-datepicker-rtl .ui-datepicker-next{left:2px;right:auto}.ui-datepicker-rtl .ui-datepicker-prev:hover{right:1px;left:auto}.ui-datepicker-rtl .ui-datepicker-next:hover{left:1px;right:auto}.ui-datepicker-rtl .ui-datepicker-buttonpane{clear:right}.ui-datepicker-rtl .ui-datepicker-buttonpane button{float:left}.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current,.ui-datepicker-rtl .ui-datepicker-group{float:right}.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header{border-right-width:0;border-left-width:1px}.ui-datepicker .ui-icon{display:block;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat;left:.5em;top:.3em}.ui-dialog{position:absolute;top:0;left:0;padding:.2em;outline:0}.ui-dialog .ui-dialog-titlebar{padding:.4em 1em;position:relative}.ui-dialog .ui-dialog-title{float:left;margin:.1em 0;white-space:nowrap;width:90%;overflow:hidden;text-overflow:ellipsis}.ui-dialog .ui-dialog-titlebar-close{position:absolute;right:.3em;top:50%;width:20px;margin:-10px 0 0 0;padding:1px;height:20px}.ui-dialog .ui-dialog-content{position:relative;border:0;padding:.5em 1em;background:none;overflow:auto}.ui-dialog .ui-dialog-buttonpane{text-align:left;border-width:1px 0 0 0;background-image:none;margin-top:.5em;padding:.3em 1em .5em .4em}.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset{float:right}.ui-dialog .ui-dialog-buttonpane button{margin:.5em .4em .5em 0;cursor:pointer}.ui-dialog .ui-resizable-n{height:2px;top:0}.ui-dialog .ui-resizable-e{width:2px;right:0}.ui-dialog .ui-resizable-s{height:2px;bottom:0}.ui-dialog .ui-resizable-w{width:2px;left:0}.ui-dialog .ui-resizable-se,.ui-dialog .ui-resizable-sw,.ui-dialog .ui-resizable-ne,.ui-dialog .ui-resizable-nw{width:7px;height:7px}.ui-dialog .ui-resizable-se{right:0;bottom:0}.ui-dialog .ui-resizable-sw{left:0;bottom:0}.ui-dialog .ui-resizable-ne{right:0;top:0}.ui-dialog .ui-resizable-nw{left:0;top:0}.ui-draggable .ui-dialog-titlebar{cursor:move}.ui-progressbar{height:2em;text-align:left;overflow:hidden}.ui-progressbar .ui-progressbar-value{margin:-1px;height:100%}.ui-progressbar .ui-progressbar-overlay{background:url("data:image/gif;base64,R0lGODlhKAAoAIABAAAAAP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQJAQABACwAAAAAKAAoAAACkYwNqXrdC52DS06a7MFZI+4FHBCKoDeWKXqymPqGqxvJrXZbMx7Ttc+w9XgU2FB3lOyQRWET2IFGiU9m1frDVpxZZc6bfHwv4c1YXP6k1Vdy292Fb6UkuvFtXpvWSzA+HycXJHUXiGYIiMg2R6W459gnWGfHNdjIqDWVqemH2ekpObkpOlppWUqZiqr6edqqWQAAIfkECQEAAQAsAAAAACgAKAAAApSMgZnGfaqcg1E2uuzDmmHUBR8Qil95hiPKqWn3aqtLsS18y7G1SzNeowWBENtQd+T1JktP05nzPTdJZlR6vUxNWWjV+vUWhWNkWFwxl9VpZRedYcflIOLafaa28XdsH/ynlcc1uPVDZxQIR0K25+cICCmoqCe5mGhZOfeYSUh5yJcJyrkZWWpaR8doJ2o4NYq62lAAACH5BAkBAAEALAAAAAAoACgAAAKVDI4Yy22ZnINRNqosw0Bv7i1gyHUkFj7oSaWlu3ovC8GxNso5fluz3qLVhBVeT/Lz7ZTHyxL5dDalQWPVOsQWtRnuwXaFTj9jVVh8pma9JjZ4zYSj5ZOyma7uuolffh+IR5aW97cHuBUXKGKXlKjn+DiHWMcYJah4N0lYCMlJOXipGRr5qdgoSTrqWSq6WFl2ypoaUAAAIfkECQEAAQAsAAAAACgAKAAAApaEb6HLgd/iO7FNWtcFWe+ufODGjRfoiJ2akShbueb0wtI50zm02pbvwfWEMWBQ1zKGlLIhskiEPm9R6vRXxV4ZzWT2yHOGpWMyorblKlNp8HmHEb/lCXjcW7bmtXP8Xt229OVWR1fod2eWqNfHuMjXCPkIGNileOiImVmCOEmoSfn3yXlJWmoHGhqp6ilYuWYpmTqKUgAAIfkECQEAAQAsAAAAACgAKAAAApiEH6kb58biQ3FNWtMFWW3eNVcojuFGfqnZqSebuS06w5V80/X02pKe8zFwP6EFWOT1lDFk8rGERh1TTNOocQ61Hm4Xm2VexUHpzjymViHrFbiELsefVrn6XKfnt2Q9G/+Xdie499XHd2g4h7ioOGhXGJboGAnXSBnoBwKYyfioubZJ2Hn0RuRZaflZOil56Zp6iioKSXpUAAAh+QQJAQABACwAAAAAKAAoAAACkoQRqRvnxuI7kU1a1UU5bd5tnSeOZXhmn5lWK3qNTWvRdQxP8qvaC+/yaYQzXO7BMvaUEmJRd3TsiMAgswmNYrSgZdYrTX6tSHGZO73ezuAw2uxuQ+BbeZfMxsexY35+/Qe4J1inV0g4x3WHuMhIl2jXOKT2Q+VU5fgoSUI52VfZyfkJGkha6jmY+aaYdirq+lQAACH5BAkBAAEALAAAAAAoACgAAAKWBIKpYe0L3YNKToqswUlvznigd4wiR4KhZrKt9Upqip61i9E3vMvxRdHlbEFiEXfk9YARYxOZZD6VQ2pUunBmtRXo1Lf8hMVVcNl8JafV38aM2/Fu5V16Bn63r6xt97j09+MXSFi4BniGFae3hzbH9+hYBzkpuUh5aZmHuanZOZgIuvbGiNeomCnaxxap2upaCZsq+1kAACH5BAkBAAEALAAAAAAoACgAAAKXjI8By5zf4kOxTVrXNVlv1X0d8IGZGKLnNpYtm8Lr9cqVeuOSvfOW79D9aDHizNhDJidFZhNydEahOaDH6nomtJjp1tutKoNWkvA6JqfRVLHU/QUfau9l2x7G54d1fl995xcIGAdXqMfBNadoYrhH+Mg2KBlpVpbluCiXmMnZ2Sh4GBqJ+ckIOqqJ6LmKSllZmsoq6wpQAAAh+QQJAQABACwAAAAAKAAoAAAClYx/oLvoxuJDkU1a1YUZbJ59nSd2ZXhWqbRa2/gF8Gu2DY3iqs7yrq+xBYEkYvFSM8aSSObE+ZgRl1BHFZNr7pRCavZ5BW2142hY3AN/zWtsmf12p9XxxFl2lpLn1rseztfXZjdIWIf2s5dItwjYKBgo9yg5pHgzJXTEeGlZuenpyPmpGQoKOWkYmSpaSnqKileI2FAAACH5BAkBAAEALAAAAAAoACgAAAKVjB+gu+jG4kORTVrVhRlsnn2dJ3ZleFaptFrb+CXmO9OozeL5VfP99HvAWhpiUdcwkpBH3825AwYdU8xTqlLGhtCosArKMpvfa1mMRae9VvWZfeB2XfPkeLmm18lUcBj+p5dnN8jXZ3YIGEhYuOUn45aoCDkp16hl5IjYJvjWKcnoGQpqyPlpOhr3aElaqrq56Bq7VAAAOw==");height:100%;-ms-filter:"alpha(opacity=25)";opacity:0.25}.ui-progressbar-indeterminate .ui-progressbar-value{background-image:none}.ui-selectmenu-menu{padding:0;margin:0;position:absolute;top:0;left:0;display:none}.ui-selectmenu-menu .ui-menu{overflow:auto;overflow-x:hidden;padding-bottom:1px}.ui-selectmenu-menu .ui-menu .ui-selectmenu-optgroup{font-size:1em;font-weight:bold;line-height:1.5;padding:2px 0.4em;margin:0.5em 0 0 0;height:auto;border:0}.ui-selectmenu-open{display:block}.ui-selectmenu-text{display:block;margin-right:20px;overflow:hidden;text-overflow:ellipsis}.ui-selectmenu-button.ui-button{text-align:left;white-space:nowrap;width:14em}.ui-selectmenu-icon.ui-icon{float:right;margin-top:0}.ui-slider{position:relative;text-align:left}.ui-slider .ui-slider-handle{position:absolute;z-index:2;width:1.2em;height:1.2em;cursor:pointer;-ms-touch-action:none;touch-action:none}.ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;background-position:0 0}.ui-slider.ui-state-disabled .ui-slider-handle,.ui-slider.ui-state-disabled .ui-slider-range{filter:inherit}.ui-slider-horizontal{height:.8em}.ui-slider-horizontal .ui-slider-handle{top:-.3em;margin-left:-.6em}.ui-slider-horizontal .ui-slider-range{top:0;height:100%}.ui-slider-horizontal .ui-slider-range-min{left:0}.ui-slider-horizontal .ui-slider-range-max{right:0}.ui-slider-vertical{width:.8em;height:100px}.ui-slider-vertical .ui-slider-handle{left:-.3em;margin-left:0;margin-bottom:-.6em}.ui-slider-vertical .ui-slider-range{left:0;width:100%}.ui-slider-vertical .ui-slider-range-min{bottom:0}.ui-slider-vertical .ui-slider-range-max{top:0}.ui-spinner{position:relative;display:inline-block;overflow:hidden;padding:0;vertical-align:middle}.ui-spinner-input{border:none;background:none;color:inherit;padding:.222em 0;margin:.2em 0;vertical-align:middle;margin-left:.4em;margin-right:2em}.ui-spinner-button{width:1.6em;height:50%;font-size:.5em;padding:0;margin:0;text-align:center;position:absolute;cursor:default;display:block;overflow:hidden;right:0}.ui-spinner a.ui-spinner-button{border-top-style:none;border-bottom-style:none;border-right-style:none}.ui-spinner-up{top:0}.ui-spinner-down{bottom:0}.ui-tabs{position:relative;padding:.2em}.ui-tabs .ui-tabs-nav{margin:0;padding:.2em .2em 0}.ui-tabs .ui-tabs-nav li{list-style:none;float:left;position:relative;top:0;margin:1px .2em 0 0;border-bottom-width:0;padding:0;white-space:nowrap}.ui-tabs .ui-tabs-nav .ui-tabs-anchor{float:left;padding:.5em 1em;text-decoration:none}.ui-tabs .ui-tabs-nav li.ui-tabs-active{margin-bottom:-1px;padding-bottom:1px}.ui-tabs .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor,.ui-tabs .ui-tabs-nav li.ui-state-disabled .ui-tabs-anchor,.ui-tabs .ui-tabs-nav li.ui-tabs-loading .ui-tabs-anchor{cursor:text}.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor{cursor:pointer}.ui-tabs .ui-tabs-panel{display:block;border-width:0;padding:1em 1.4em;background:none}.ui-tooltip{padding:8px;position:absolute;z-index:9999;max-width:300px}body .ui-tooltip{border-width:2px}
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/jquery-ui.theme.css
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/jquery-ui.theme.css	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/jquery-ui.theme.css	(revision 38779)
@@ -0,0 +1,446 @@
+/*!
+ * jQuery UI CSS Framework 1.13.0
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/category/theming/
+ *
+ * To view and modify this theme, visit http://jqueryui.com/themeroller/?scope=&folderName=south-street&cornerRadiusShadow=10px&offsetLeftShadow=-12px&offsetTopShadow=-12px&thicknessShadow=12px&opacityShadow=20&bgImgOpacityShadow=95&bgTextureShadow=highlight_hard&bgColorShadow=cccccc&opacityOverlay=90&bgImgOpacityOverlay=15&bgTextureOverlay=inset_soft&bgColorOverlay=2b2922&iconColorError=cd0a0a&fcError=cd5c0a&borderColorError=e3a345&bgImgOpacityError=95&bgTextureError=highlight_soft&bgColorError=ffedad&iconColorHighlight=8DC262&fcHighlight=363636&borderColorHighlight=e8e1b5&bgImgOpacityHighlight=55&bgTextureHighlight=glass&bgColorHighlight=fcf0ba&iconColorActive=8DC262&fcActive=459e00&borderColorActive=d4ccb0&bgImgOpacityActive=100&bgTextureActive=highlight_hard&bgColorActive=fafaf4&iconColorHover=ffffff&fcHover=ffffff&borderColorHover=327E04&bgImgOpacityHover=25&bgTextureHover=highlight_soft&bgColorHover=67b021&iconColorDefault=eeeeee&fcDefault=ffffff&borderColorDefault=327E04&bgImgOpacityDefault=15&bgTextureDefault=highlight_hard&bgColorDefault=459e00&iconColorContent=808080&fcContent=312e25&borderColorContent=dfd9c3&bgImgOpacityContent=100&bgTextureContent=highlight_hard&bgColorContent=f5f3e5&iconColorHeader=847e71&fcHeader=433f38&borderColorHeader=d4ccb0&bgImgOpacityHeader=100&bgTextureHeader=gloss_wave&bgColorHeader=ece8da&cornerRadius=6px&fsDefault=1.1em&fwDefault=bold&ffDefault=segoe%20ui%2CArial%2Csans-serif
+ */
+
+
+/* Component containers
+----------------------------------*/
+.ui-widget {
+	font-family: segoe ui,Arial,sans-serif;
+	font-size: 1.1em;
+}
+.ui-widget .ui-widget {
+	font-size: 1em;
+}
+.ui-widget input,
+.ui-widget select,
+.ui-widget textarea,
+.ui-widget button {
+	font-family: segoe ui,Arial,sans-serif;
+	font-size: 1em;
+}
+.ui-widget.ui-widget-content {
+	border: 1px solid #327E04;
+}
+.ui-widget-content {
+	border: 1px solid #dfd9c3;
+	background: #f5f3e5 url("images/ui-bg_highlight-hard_100_f5f3e5_1x100.png") 50% top repeat-x;
+	color: #312e25;
+}
+.ui-widget-content a {
+	color: #312e25;
+}
+.ui-widget-header {
+	border: 1px solid #d4ccb0;
+	background: #ece8da url("images/ui-bg_gloss-wave_50_43a21a_500x100.png") 50% 50% repeat-x;
+	color: #ffffff;
+	font-weight: bold;
+}
+.ui-widget-header a {
+	color: #ffffff;
+}
+
+/* Interaction states
+----------------------------------*/
+.ui-state-default,
+.ui-widget-content .ui-state-default,
+.ui-widget-header .ui-state-default,
+.ui-button,
+
+/* We use html here because we need a greater specificity to make sure disabled
+works properly when clicked or hovered */
+html .ui-button.ui-state-disabled:hover,
+html .ui-button.ui-state-disabled:active {
+	border: 1px solid #327E04;
+	background: #459e00 url("images/ui-bg_highlight-hard_15_459e00_1x100.png") 50% 50% repeat-x;
+	font-weight: bold;
+	color: #ffffff;
+}
+.ui-state-default a,
+.ui-state-default a:link,
+.ui-state-default a:visited,
+a.ui-button,
+a:link.ui-button,
+a:visited.ui-button,
+.ui-button {
+	color: #ffffff;
+	text-decoration: none;
+}
+.ui-state-hover,
+.ui-widget-content .ui-state-hover,
+.ui-widget-header .ui-state-hover,
+.ui-state-focus,
+.ui-widget-content .ui-state-focus,
+.ui-widget-header .ui-state-focus,
+.ui-button:hover,
+.ui-button:focus {
+	border: 1px solid #327E04;
+	background: #67b021 url("images/ui-bg_highlight-soft_25_67b021_1x100.png") 50% 50% repeat-x;
+	font-weight: bold;
+	color: #ffffff;
+}
+.ui-state-hover a,
+.ui-state-hover a:hover,
+.ui-state-hover a:link,
+.ui-state-hover a:visited,
+.ui-state-focus a,
+.ui-state-focus a:hover,
+.ui-state-focus a:link,
+.ui-state-focus a:visited,
+a.ui-button:hover,
+a.ui-button:focus {
+	color: #ffffff;
+	text-decoration: none;
+}
+
+.ui-visual-focus {
+	box-shadow: 0 0 3px 1px rgb(94, 158, 214);
+}
+.ui-state-active,
+.ui-widget-content .ui-state-active,
+.ui-widget-header .ui-state-active,
+a.ui-button:active,
+.ui-button:active,
+.ui-button.ui-state-active:hover {
+	border: 1px solid #d4ccb0;
+	background: #fafaf4 url("images/ui-bg_highlight-hard_100_fafaf4_1x100.png") 50% 50% repeat-x;
+	font-weight: bold;
+	color: #459e00;
+}
+.ui-icon-background,
+.ui-state-active .ui-icon-background {
+	border: #d4ccb0;
+	background-color: #459e00;
+}
+.ui-state-active a,
+.ui-state-active a:link,
+.ui-state-active a:visited {
+	color: #459e00;
+	text-decoration: none;
+}
+
+/* Interaction Cues
+----------------------------------*/
+.ui-state-highlight,
+.ui-widget-content .ui-state-highlight,
+.ui-widget-header .ui-state-highlight {
+	border: 1px solid #e8e1b5;
+	background: #fcf0ba url("images/ui-bg_glass_55_fcf0ba_1x400.png") 50% 50% repeat-x;
+	color: #363636;
+}
+.ui-state-checked {
+	border: 1px solid #e8e1b5;
+	background: #fcf0ba;
+}
+.ui-state-highlight a,
+.ui-widget-content .ui-state-highlight a,
+.ui-widget-header .ui-state-highlight a {
+	color: #363636;
+}
+.ui-state-error,
+.ui-widget-content .ui-state-error,
+.ui-widget-header .ui-state-error {
+	border: 1px solid #e3a345;
+	background: #ffedad url("images/ui-bg_highlight-soft_95_ffedad_1x100.png") 50% top repeat-x;
+	color: #cd5c0a;
+}
+.ui-state-error a,
+.ui-widget-content .ui-state-error a,
+.ui-widget-header .ui-state-error a {
+	color: #cd5c0a;
+}
+.ui-state-error-text,
+.ui-widget-content .ui-state-error-text,
+.ui-widget-header .ui-state-error-text {
+	color: #cd5c0a;
+}
+.ui-priority-primary,
+.ui-widget-content .ui-priority-primary,
+.ui-widget-header .ui-priority-primary {
+	font-weight: bold;
+}
+.ui-priority-secondary,
+.ui-widget-content .ui-priority-secondary,
+.ui-widget-header .ui-priority-secondary {
+	opacity: .7;
+	-ms-filter: "alpha(opacity=70)"; /* support: IE8 */
+	font-weight: normal;
+}
+.ui-state-disabled,
+.ui-widget-content .ui-state-disabled,
+.ui-widget-header .ui-state-disabled {
+	opacity: .35;
+	-ms-filter: "alpha(opacity=35)"; /* support: IE8 */
+	background-image: none;
+}
+.ui-state-disabled .ui-icon {
+	-ms-filter: "alpha(opacity=35)"; /* support: IE8 - See #6059 */
+}
+
+/* Icons
+----------------------------------*/
+
+/* states and images */
+.ui-icon {
+	width: 16px;
+	height: 16px;
+}
+.ui-icon,
+.ui-widget-content .ui-icon {
+	background-image: url("images/ui-icons_808080_256x240.png");
+}
+.ui-widget-header .ui-icon {
+	background-image: url("images/ui-icons_847e71_256x240.png");
+}
+.ui-state-hover .ui-icon,
+.ui-state-focus .ui-icon,
+.ui-button:hover .ui-icon,
+.ui-button:focus .ui-icon {
+	background-image: url("images/ui-icons_ffffff_256x240.png");
+}
+.ui-state-active .ui-icon,
+.ui-button:active .ui-icon {
+	background-image: url("images/ui-icons_8DC262_256x240.png");
+}
+.ui-state-highlight .ui-icon,
+.ui-button .ui-state-highlight.ui-icon {
+	background-image: url("images/ui-icons_8DC262_256x240.png");
+}
+.ui-state-error .ui-icon,
+.ui-state-error-text .ui-icon {
+	background-image: url("images/ui-icons_cd0a0a_256x240.png");
+}
+.ui-button .ui-icon {
+	background-image: url("images/ui-icons_eeeeee_256x240.png");
+}
+
+/* positioning */
+/* Three classes needed to override `.ui-button:hover .ui-icon` */
+.ui-icon-blank.ui-icon-blank.ui-icon-blank {
+	background-image: none;
+}
+.ui-icon-caret-1-n { background-position: 0 0; }
+.ui-icon-caret-1-ne { background-position: -16px 0; }
+.ui-icon-caret-1-e { background-position: -32px 0; }
+.ui-icon-caret-1-se { background-position: -48px 0; }
+.ui-icon-caret-1-s { background-position: -65px 0; }
+.ui-icon-caret-1-sw { background-position: -80px 0; }
+.ui-icon-caret-1-w { background-position: -96px 0; }
+.ui-icon-caret-1-nw { background-position: -112px 0; }
+.ui-icon-caret-2-n-s { background-position: -128px 0; }
+.ui-icon-caret-2-e-w { background-position: -144px 0; }
+.ui-icon-triangle-1-n { background-position: 0 -16px; }
+.ui-icon-triangle-1-ne { background-position: -16px -16px; }
+.ui-icon-triangle-1-e { background-position: -32px -16px; }
+.ui-icon-triangle-1-se { background-position: -48px -16px; }
+.ui-icon-triangle-1-s { background-position: -65px -16px; }
+.ui-icon-triangle-1-sw { background-position: -80px -16px; }
+.ui-icon-triangle-1-w { background-position: -96px -16px; }
+.ui-icon-triangle-1-nw { background-position: -112px -16px; }
+.ui-icon-triangle-2-n-s { background-position: -128px -16px; }
+.ui-icon-triangle-2-e-w { background-position: -144px -16px; }
+.ui-icon-arrow-1-n { background-position: 0 -32px; }
+.ui-icon-arrow-1-ne { background-position: -16px -32px; }
+.ui-icon-arrow-1-e { background-position: -32px -32px; }
+.ui-icon-arrow-1-se { background-position: -48px -32px; }
+.ui-icon-arrow-1-s { background-position: -65px -32px; }
+.ui-icon-arrow-1-sw { background-position: -80px -32px; }
+.ui-icon-arrow-1-w { background-position: -96px -32px; }
+.ui-icon-arrow-1-nw { background-position: -112px -32px; }
+.ui-icon-arrow-2-n-s { background-position: -128px -32px; }
+.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
+.ui-icon-arrow-2-e-w { background-position: -160px -32px; }
+.ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
+.ui-icon-arrowstop-1-n { background-position: -192px -32px; }
+.ui-icon-arrowstop-1-e { background-position: -208px -32px; }
+.ui-icon-arrowstop-1-s { background-position: -224px -32px; }
+.ui-icon-arrowstop-1-w { background-position: -240px -32px; }
+.ui-icon-arrowthick-1-n { background-position: 1px -48px; }
+.ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
+.ui-icon-arrowthick-1-e { background-position: -32px -48px; }
+.ui-icon-arrowthick-1-se { background-position: -48px -48px; }
+.ui-icon-arrowthick-1-s { background-position: -64px -48px; }
+.ui-icon-arrowthick-1-sw { background-position: -80px -48px; }
+.ui-icon-arrowthick-1-w { background-position: -96px -48px; }
+.ui-icon-arrowthick-1-nw { background-position: -112px -48px; }
+.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }
+.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }
+.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }
+.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }
+.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }
+.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }
+.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }
+.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }
+.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }
+.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }
+.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }
+.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }
+.ui-icon-arrowreturn-1-w { background-position: -64px -64px; }
+.ui-icon-arrowreturn-1-n { background-position: -80px -64px; }
+.ui-icon-arrowreturn-1-e { background-position: -96px -64px; }
+.ui-icon-arrowreturn-1-s { background-position: -112px -64px; }
+.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }
+.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }
+.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }
+.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }
+.ui-icon-arrow-4 { background-position: 0 -80px; }
+.ui-icon-arrow-4-diag { background-position: -16px -80px; }
+.ui-icon-extlink { background-position: -32px -80px; }
+.ui-icon-newwin { background-position: -48px -80px; }
+.ui-icon-refresh { background-position: -64px -80px; }
+.ui-icon-shuffle { background-position: -80px -80px; }
+.ui-icon-transfer-e-w { background-position: -96px -80px; }
+.ui-icon-transferthick-e-w { background-position: -112px -80px; }
+.ui-icon-folder-collapsed { background-position: 0 -96px; }
+.ui-icon-folder-open { background-position: -16px -96px; }
+.ui-icon-document { background-position: -32px -96px; }
+.ui-icon-document-b { background-position: -48px -96px; }
+.ui-icon-note { background-position: -64px -96px; }
+.ui-icon-mail-closed { background-position: -80px -96px; }
+.ui-icon-mail-open { background-position: -96px -96px; }
+.ui-icon-suitcase { background-position: -112px -96px; }
+.ui-icon-comment { background-position: -128px -96px; }
+.ui-icon-person { background-position: -144px -96px; }
+.ui-icon-print { background-position: -160px -96px; }
+.ui-icon-trash { background-position: -176px -96px; }
+.ui-icon-locked { background-position: -192px -96px; }
+.ui-icon-unlocked { background-position: -208px -96px; }
+.ui-icon-bookmark { background-position: -224px -96px; }
+.ui-icon-tag { background-position: -240px -96px; }
+.ui-icon-home { background-position: 0 -112px; }
+.ui-icon-flag { background-position: -16px -112px; }
+.ui-icon-calendar { background-position: -32px -112px; }
+.ui-icon-cart { background-position: -48px -112px; }
+.ui-icon-pencil { background-position: -64px -112px; }
+.ui-icon-clock { background-position: -80px -112px; }
+.ui-icon-disk { background-position: -96px -112px; }
+.ui-icon-calculator { background-position: -112px -112px; }
+.ui-icon-zoomin { background-position: -128px -112px; }
+.ui-icon-zoomout { background-position: -144px -112px; }
+.ui-icon-search { background-position: -160px -112px; }
+.ui-icon-wrench { background-position: -176px -112px; }
+.ui-icon-gear { background-position: -192px -112px; }
+.ui-icon-heart { background-position: -208px -112px; }
+.ui-icon-star { background-position: -224px -112px; }
+.ui-icon-link { background-position: -240px -112px; }
+.ui-icon-cancel { background-position: 0 -128px; }
+.ui-icon-plus { background-position: -16px -128px; }
+.ui-icon-plusthick { background-position: -32px -128px; }
+.ui-icon-minus { background-position: -48px -128px; }
+.ui-icon-minusthick { background-position: -64px -128px; }
+.ui-icon-close { background-position: -80px -128px; }
+.ui-icon-closethick { background-position: -96px -128px; }
+.ui-icon-key { background-position: -112px -128px; }
+.ui-icon-lightbulb { background-position: -128px -128px; }
+.ui-icon-scissors { background-position: -144px -128px; }
+.ui-icon-clipboard { background-position: -160px -128px; }
+.ui-icon-copy { background-position: -176px -128px; }
+.ui-icon-contact { background-position: -192px -128px; }
+.ui-icon-image { background-position: -208px -128px; }
+.ui-icon-video { background-position: -224px -128px; }
+.ui-icon-script { background-position: -240px -128px; }
+.ui-icon-alert { background-position: 0 -144px; }
+.ui-icon-info { background-position: -16px -144px; }
+.ui-icon-notice { background-position: -32px -144px; }
+.ui-icon-help { background-position: -48px -144px; }
+.ui-icon-check { background-position: -64px -144px; }
+.ui-icon-bullet { background-position: -80px -144px; }
+.ui-icon-radio-on { background-position: -96px -144px; }
+.ui-icon-radio-off { background-position: -112px -144px; }
+.ui-icon-pin-w { background-position: -128px -144px; }
+.ui-icon-pin-s { background-position: -144px -144px; }
+.ui-icon-play { background-position: 0 -160px; }
+.ui-icon-pause { background-position: -16px -160px; }
+.ui-icon-seek-next { background-position: -32px -160px; }
+.ui-icon-seek-prev { background-position: -48px -160px; }
+.ui-icon-seek-end { background-position: -64px -160px; }
+.ui-icon-seek-start { background-position: -80px -160px; }
+/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */
+.ui-icon-seek-first { background-position: -80px -160px; }
+.ui-icon-stop { background-position: -96px -160px; }
+.ui-icon-eject { background-position: -112px -160px; }
+.ui-icon-volume-off { background-position: -128px -160px; }
+.ui-icon-volume-on { background-position: -144px -160px; }
+.ui-icon-power { background-position: 0 -176px; }
+.ui-icon-signal-diag { background-position: -16px -176px; }
+.ui-icon-signal { background-position: -32px -176px; }
+.ui-icon-battery-0 { background-position: -48px -176px; }
+.ui-icon-battery-1 { background-position: -64px -176px; }
+.ui-icon-battery-2 { background-position: -80px -176px; }
+.ui-icon-battery-3 { background-position: -96px -176px; }
+.ui-icon-circle-plus { background-position: 0 -192px; }
+.ui-icon-circle-minus { background-position: -16px -192px; }
+.ui-icon-circle-close { background-position: -32px -192px; }
+.ui-icon-circle-triangle-e { background-position: -48px -192px; }
+.ui-icon-circle-triangle-s { background-position: -64px -192px; }
+.ui-icon-circle-triangle-w { background-position: -80px -192px; }
+.ui-icon-circle-triangle-n { background-position: -96px -192px; }
+.ui-icon-circle-arrow-e { background-position: -112px -192px; }
+.ui-icon-circle-arrow-s { background-position: -128px -192px; }
+.ui-icon-circle-arrow-w { background-position: -144px -192px; }
+.ui-icon-circle-arrow-n { background-position: -160px -192px; }
+.ui-icon-circle-zoomin { background-position: -176px -192px; }
+.ui-icon-circle-zoomout { background-position: -192px -192px; }
+.ui-icon-circle-check { background-position: -208px -192px; }
+.ui-icon-circlesmall-plus { background-position: 0 -208px; }
+.ui-icon-circlesmall-minus { background-position: -16px -208px; }
+.ui-icon-circlesmall-close { background-position: -32px -208px; }
+.ui-icon-squaresmall-plus { background-position: -48px -208px; }
+.ui-icon-squaresmall-minus { background-position: -64px -208px; }
+.ui-icon-squaresmall-close { background-position: -80px -208px; }
+.ui-icon-grip-dotted-vertical { background-position: 0 -224px; }
+.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }
+.ui-icon-grip-solid-vertical { background-position: -32px -224px; }
+.ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
+.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
+.ui-icon-grip-diagonal-se { background-position: -80px -224px; }
+
+
+/* Misc visuals
+----------------------------------*/
+
+/* Corner radius */
+.ui-corner-all,
+.ui-corner-top,
+.ui-corner-left,
+.ui-corner-tl {
+	border-top-left-radius: 6px;
+}
+.ui-corner-all,
+.ui-corner-top,
+.ui-corner-right,
+.ui-corner-tr {
+	border-top-right-radius: 6px;
+}
+.ui-corner-all,
+.ui-corner-bottom,
+.ui-corner-left,
+.ui-corner-bl {
+	border-bottom-left-radius: 6px;
+}
+.ui-corner-all,
+.ui-corner-bottom,
+.ui-corner-right,
+.ui-corner-br {
+	border-bottom-right-radius: 6px;
+}
+
+/* Overlays */
+.ui-widget-overlay {
+	background: #2b2922 url("images/ui-bg_inset-soft_15_2b2922_1x100.png") 50% bottom repeat-x;
+	opacity: .9;
+	-ms-filter: Alpha(Opacity=90); /* support: IE8 */
+}
+.ui-widget-shadow {
+	-webkit-box-shadow: -12px -12px 12px #cccccc;
+	box-shadow: -12px -12px 12px #cccccc;
+}
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/jquery.blockUI.js.download
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/jquery.blockUI.js.download	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/jquery.blockUI.js.download	(revision 38779)
@@ -0,0 +1,620 @@
+/*!
+ * jQuery blockUI plugin
+ * Version 2.70.0-2014.11.23
+ * Requires jQuery v1.7 or later
+ *
+ * Examples at: http://malsup.com/jquery/block/
+ * Copyright (c) 2007-2013 M. Alsup
+ * Dual licensed under the MIT and GPL licenses:
+ * http://www.opensource.org/licenses/mit-license.php
+ * http://www.gnu.org/licenses/gpl.html
+ *
+ * Thanks to Amir-Hossein Sobhi for some excellent contributions!
+ */
+
+;(function() {
+/*jshint eqeqeq:false curly:false latedef:false */
+"use strict";
+
+	function setup($) {
+		$.fn._fadeIn = $.fn.fadeIn;
+
+		var noOp = $.noop || function() {};
+
+		// this bit is to ensure we don't call setExpression when we shouldn't (with extra muscle to handle
+		// confusing userAgent strings on Vista)
+		var msie = /MSIE/.test(navigator.userAgent);
+		var ie6  = /MSIE 6.0/.test(navigator.userAgent) && ! /MSIE 8.0/.test(navigator.userAgent);
+		var mode = document.documentMode || 0;
+		var setExpr = $.isFunction( document.createElement('div').style.setExpression );
+
+		// global $ methods for blocking/unblocking the entire page
+		$.blockUI   = function(opts) { install(window, opts); };
+		$.unblockUI = function(opts) { remove(window, opts); };
+
+		// convenience method for quick growl-like notifications  (http://www.google.com/search?q=growl)
+		$.growlUI = function(title, message, timeout, onClose) {
+			var $m = $('<div class="growlUI"></div>');
+			if (title) $m.append('<h1>'+title+'</h1>');
+			if (message) $m.append('<h2>'+message+'</h2>');
+			if (timeout === undefined) timeout = 3000;
+
+			// Added by konapun: Set timeout to 30 seconds if this growl is moused over, like normal toast notifications
+			var callBlock = function(opts) {
+				opts = opts || {};
+
+				$.blockUI({
+					message: $m,
+					fadeIn : typeof opts.fadeIn  !== 'undefined' ? opts.fadeIn  : 700,
+					fadeOut: typeof opts.fadeOut !== 'undefined' ? opts.fadeOut : 1000,
+					timeout: typeof opts.timeout !== 'undefined' ? opts.timeout : timeout,
+					centerY: false,
+					showOverlay: false,
+					onUnblock: onClose,
+					css: $.blockUI.defaults.growlCSS
+				});
+			};
+
+			callBlock();
+			var nonmousedOpacity = $m.css('opacity');
+			$m.mouseover(function() {
+				callBlock({
+					fadeIn: 0,
+					timeout: 30000
+				});
+
+				var displayBlock = $('.blockMsg');
+				displayBlock.stop(); // cancel fadeout if it has started
+				displayBlock.fadeTo(300, 1); // make it easier to read the message by removing transparency
+			}).mouseout(function() {
+				$('.blockMsg').fadeOut(1000);
+			});
+			// End konapun additions
+		};
+
+		// plugin method for blocking element content
+		$.fn.block = function(opts) {
+			if ( this[0] === window ) {
+				$.blockUI( opts );
+				return this;
+			}
+			var fullOpts = $.extend({}, $.blockUI.defaults, opts || {});
+			this.each(function() {
+				var $el = $(this);
+				if (fullOpts.ignoreIfBlocked && $el.data('blockUI.isBlocked'))
+					return;
+				$el.unblock({ fadeOut: 0 });
+			});
+
+			return this.each(function() {
+				if ($.css(this,'position') == 'static') {
+					this.style.position = 'relative';
+					$(this).data('blockUI.static', true);
+				}
+				this.style.zoom = 1; // force 'hasLayout' in ie
+				install(this, opts);
+			});
+		};
+
+		// plugin method for unblocking element content
+		$.fn.unblock = function(opts) {
+			if ( this[0] === window ) {
+				$.unblockUI( opts );
+				return this;
+			}
+			return this.each(function() {
+				remove(this, opts);
+			});
+		};
+
+		$.blockUI.version = 2.70; // 2nd generation blocking at no extra cost!
+
+		// override these in your code to change the default behavior and style
+		$.blockUI.defaults = {
+			// message displayed when blocking (use null for no message)
+			message:  '<h1>Please wait...</h1>',
+
+			title: null,		// title string; only used when theme == true
+			draggable: true,	// only used when theme == true (requires jquery-ui.js to be loaded)
+
+			theme: false, // set to true to use with jQuery UI themes
+
+			// styles for the message when blocking; if you wish to disable
+			// these and use an external stylesheet then do this in your code:
+			// $.blockUI.defaults.css = {};
+			css: {
+				padding:	0,
+				margin:		0,
+				width:		'30%',
+				top:		'40%',
+				left:		'35%',
+				textAlign:	'center',
+				color:		'#000',
+				border:		'3px solid #aaa',
+				backgroundColor:'#fff',
+				cursor:		'wait'
+			},
+
+			// minimal style set used when themes are used
+			themedCSS: {
+				width:	'30%',
+				top:	'40%',
+				left:	'35%'
+			},
+
+			// styles for the overlay
+			overlayCSS:  {
+				backgroundColor:	'#000',
+				opacity:			0.6,
+				cursor:				'wait'
+			},
+
+			// style to replace wait cursor before unblocking to correct issue
+			// of lingering wait cursor
+			cursorReset: 'default',
+
+			// styles applied when using $.growlUI
+			growlCSS: {
+				width:		'350px',
+				top:		'10px',
+				left:		'',
+				right:		'10px',
+				border:		'none',
+				padding:	'5px',
+				opacity:	0.6,
+				cursor:		'default',
+				color:		'#fff',
+				backgroundColor: '#000',
+				'-webkit-border-radius':'10px',
+				'-moz-border-radius':	'10px',
+				'border-radius':		'10px'
+			},
+
+			// IE issues: 'about:blank' fails on HTTPS and javascript:false is s-l-o-w
+			// (hat tip to Jorge H. N. de Vasconcelos)
+			/*jshint scripturl:true */
+			iframeSrc: /^https/i.test(window.location.href || '') ? 'javascript:false' : 'about:blank',
+
+			// force usage of iframe in non-IE browsers (handy for blocking applets)
+			forceIframe: false,
+
+			// z-index for the blocking overlay
+			baseZ: 1000,
+
+			// set these to true to have the message automatically centered
+			centerX: true, // <-- only effects element blocking (page block controlled via css above)
+			centerY: true,
+
+			// allow body element to be stetched in ie6; this makes blocking look better
+			// on "short" pages.  disable if you wish to prevent changes to the body height
+			allowBodyStretch: true,
+
+			// enable if you want key and mouse events to be disabled for content that is blocked
+			bindEvents: true,
+
+			// be default blockUI will supress tab navigation from leaving blocking content
+			// (if bindEvents is true)
+			constrainTabKey: true,
+
+			// fadeIn time in millis; set to 0 to disable fadeIn on block
+			fadeIn:  200,
+
+			// fadeOut time in millis; set to 0 to disable fadeOut on unblock
+			fadeOut:  400,
+
+			// time in millis to wait before auto-unblocking; set to 0 to disable auto-unblock
+			timeout: 0,
+
+			// disable if you don't want to show the overlay
+			showOverlay: true,
+
+			// if true, focus will be placed in the first available input field when
+			// page blocking
+			focusInput: true,
+
+            // elements that can receive focus
+            focusableElements: ':input:enabled:visible',
+
+			// suppresses the use of overlay styles on FF/Linux (due to performance issues with opacity)
+			// no longer needed in 2012
+			// applyPlatformOpacityRules: true,
+
+			// callback method invoked when fadeIn has completed and blocking message is visible
+			onBlock: null,
+
+			// callback method invoked when unblocking has completed; the callback is
+			// passed the element that has been unblocked (which is the window object for page
+			// blocks) and the options that were passed to the unblock call:
+			//	onUnblock(element, options)
+			onUnblock: null,
+
+			// callback method invoked when the overlay area is clicked.
+			// setting this will turn the cursor to a pointer, otherwise cursor defined in overlayCss will be used.
+			onOverlayClick: null,
+
+			// don't ask; if you really must know: http://groups.google.com/group/jquery-en/browse_thread/thread/36640a8730503595/2f6a79a77a78e493#2f6a79a77a78e493
+			quirksmodeOffsetHack: 4,
+
+			// class name of the message block
+			blockMsgClass: 'blockMsg',
+
+			// if it is already blocked, then ignore it (don't unblock and reblock)
+			ignoreIfBlocked: false
+		};
+
+		// private data and functions follow...
+
+		var pageBlock = null;
+		var pageBlockEls = [];
+
+		function install(el, opts) {
+			var css, themedCSS;
+			var full = (el == window);
+			var msg = (opts && opts.message !== undefined ? opts.message : undefined);
+			opts = $.extend({}, $.blockUI.defaults, opts || {});
+
+			if (opts.ignoreIfBlocked && $(el).data('blockUI.isBlocked'))
+				return;
+
+			opts.overlayCSS = $.extend({}, $.blockUI.defaults.overlayCSS, opts.overlayCSS || {});
+			css = $.extend({}, $.blockUI.defaults.css, opts.css || {});
+			if (opts.onOverlayClick)
+				opts.overlayCSS.cursor = 'pointer';
+
+			themedCSS = $.extend({}, $.blockUI.defaults.themedCSS, opts.themedCSS || {});
+			msg = msg === undefined ? opts.message : msg;
+
+			// remove the current block (if there is one)
+			if (full && pageBlock)
+				remove(window, {fadeOut:0});
+
+			// if an existing element is being used as the blocking content then we capture
+			// its current place in the DOM (and current display style) so we can restore
+			// it when we unblock
+			if (msg && typeof msg != 'string' && (msg.parentNode || msg.jquery)) {
+				var node = msg.jquery ? msg[0] : msg;
+				var data = {};
+				$(el).data('blockUI.history', data);
+				data.el = node;
+				data.parent = node.parentNode;
+				data.display = node.style.display;
+				data.position = node.style.position;
+				if (data.parent)
+					data.parent.removeChild(node);
+			}
+
+			$(el).data('blockUI.onUnblock', opts.onUnblock);
+			var z = opts.baseZ;
+
+			// blockUI uses 3 layers for blocking, for simplicity they are all used on every platform;
+			// layer1 is the iframe layer which is used to supress bleed through of underlying content
+			// layer2 is the overlay layer which has opacity and a wait cursor (by default)
+			// layer3 is the message content that is displayed while blocking
+			var lyr1, lyr2, lyr3, s;
+			if (msie || opts.forceIframe)
+				lyr1 = $('<iframe class="blockUI" style="z-index:'+ (z++) +';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+opts.iframeSrc+'"></iframe>');
+			else
+				lyr1 = $('<div class="blockUI" style="display:none"></div>');
+
+			if (opts.theme)
+				lyr2 = $('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+ (z++) +';display:none"></div>');
+			else
+				lyr2 = $('<div class="blockUI blockOverlay" style="z-index:'+ (z++) +';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>');
+
+			if (opts.theme && full) {
+				s = '<div class="blockUI ' + opts.blockMsgClass + ' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(z+10)+';display:none;position:fixed">';
+				if ( opts.title ) {
+					s += '<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(opts.title || '&nbsp;')+'</div>';
+				}
+				s += '<div class="ui-widget-content ui-dialog-content"></div>';
+				s += '</div>';
+			}
+			else if (opts.theme) {
+				s = '<div class="blockUI ' + opts.blockMsgClass + ' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(z+10)+';display:none;position:absolute">';
+				if ( opts.title ) {
+					s += '<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(opts.title || '&nbsp;')+'</div>';
+				}
+				s += '<div class="ui-widget-content ui-dialog-content"></div>';
+				s += '</div>';
+			}
+			else if (full) {
+				s = '<div class="blockUI ' + opts.blockMsgClass + ' blockPage" style="z-index:'+(z+10)+';display:none;position:fixed"></div>';
+			}
+			else {
+				s = '<div class="blockUI ' + opts.blockMsgClass + ' blockElement" style="z-index:'+(z+10)+';display:none;position:absolute"></div>';
+			}
+			lyr3 = $(s);
+
+			// if we have a message, style it
+			if (msg) {
+				if (opts.theme) {
+					lyr3.css(themedCSS);
+					lyr3.addClass('ui-widget-content');
+				}
+				else
+					lyr3.css(css);
+			}
+
+			// style the overlay
+			if (!opts.theme /*&& (!opts.applyPlatformOpacityRules)*/)
+				lyr2.css(opts.overlayCSS);
+			lyr2.css('position', full ? 'fixed' : 'absolute');
+
+			// make iframe layer transparent in IE
+			if (msie || opts.forceIframe)
+				lyr1.css('opacity',0.0);
+
+			//$([lyr1[0],lyr2[0],lyr3[0]]).appendTo(full ? 'body' : el);
+			var layers = [lyr1,lyr2,lyr3], $par = full ? $('body') : $(el);
+			$.each(layers, function() {
+				this.appendTo($par);
+			});
+
+			if (opts.theme && opts.draggable && $.fn.draggable) {
+				lyr3.draggable({
+					handle: '.ui-dialog-titlebar',
+					cancel: 'li'
+				});
+			}
+
+			// ie7 must use absolute positioning in quirks mode and to account for activex issues (when scrolling)
+			var expr = setExpr && (!$.support.boxModel || $('object,embed', full ? null : el).length > 0);
+			if (ie6 || expr) {
+				// give body 100% height
+				if (full && opts.allowBodyStretch && $.support.boxModel)
+					$('html,body').css('height','100%');
+
+				// fix ie6 issue when blocked element has a border width
+				if ((ie6 || !$.support.boxModel) && !full) {
+					var t = sz(el,'borderTopWidth'), l = sz(el,'borderLeftWidth');
+					var fixT = t ? '(0 - '+t+')' : 0;
+					var fixL = l ? '(0 - '+l+')' : 0;
+				}
+
+				// simulate fixed position
+				$.each(layers, function(i,o) {
+					var s = o[0].style;
+					s.position = 'absolute';
+					if (i < 2) {
+						if (full)
+							s.setExpression('height','Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:'+opts.quirksmodeOffsetHack+') + "px"');
+						else
+							s.setExpression('height','this.parentNode.offsetHeight + "px"');
+						if (full)
+							s.setExpression('width','jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"');
+						else
+							s.setExpression('width','this.parentNode.offsetWidth + "px"');
+						if (fixL) s.setExpression('left', fixL);
+						if (fixT) s.setExpression('top', fixT);
+					}
+					else if (opts.centerY) {
+						if (full) s.setExpression('top','(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"');
+						s.marginTop = 0;
+					}
+					else if (!opts.centerY && full) {
+						var top = (opts.css && opts.css.top) ? parseInt(opts.css.top, 10) : 0;
+						var expression = '((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + '+top+') + "px"';
+						s.setExpression('top',expression);
+					}
+				});
+			}
+
+			// show the message
+			if (msg) {
+				if (opts.theme)
+					lyr3.find('.ui-widget-content').append(msg);
+				else
+					lyr3.append(msg);
+				if (msg.jquery || msg.nodeType)
+					$(msg).show();
+			}
+
+			if ((msie || opts.forceIframe) && opts.showOverlay)
+				lyr1.show(); // opacity is zero
+			if (opts.fadeIn) {
+				var cb = opts.onBlock ? opts.onBlock : noOp;
+				var cb1 = (opts.showOverlay && !msg) ? cb : noOp;
+				var cb2 = msg ? cb : noOp;
+				if (opts.showOverlay)
+					lyr2._fadeIn(opts.fadeIn, cb1);
+				if (msg)
+					lyr3._fadeIn(opts.fadeIn, cb2);
+			}
+			else {
+				if (opts.showOverlay)
+					lyr2.show();
+				if (msg)
+					lyr3.show();
+				if (opts.onBlock)
+					opts.onBlock.bind(lyr3)();
+			}
+
+			// bind key and mouse events
+			bind(1, el, opts);
+
+			if (full) {
+				pageBlock = lyr3[0];
+				pageBlockEls = $(opts.focusableElements,pageBlock);
+				if (opts.focusInput)
+					setTimeout(focus, 20);
+			}
+			else
+				center(lyr3[0], opts.centerX, opts.centerY);
+
+			if (opts.timeout) {
+				// auto-unblock
+				var to = setTimeout(function() {
+					if (full)
+						$.unblockUI(opts);
+					else
+						$(el).unblock(opts);
+				}, opts.timeout);
+				$(el).data('blockUI.timeout', to);
+			}
+		}
+
+		// remove the block
+		function remove(el, opts) {
+			var count;
+			var full = (el == window);
+			var $el = $(el);
+			var data = $el.data('blockUI.history');
+			var to = $el.data('blockUI.timeout');
+			if (to) {
+				clearTimeout(to);
+				$el.removeData('blockUI.timeout');
+			}
+			opts = $.extend({}, $.blockUI.defaults, opts || {});
+			bind(0, el, opts); // unbind events
+
+			if (opts.onUnblock === null) {
+				opts.onUnblock = $el.data('blockUI.onUnblock');
+				$el.removeData('blockUI.onUnblock');
+			}
+
+			var els;
+			if (full) // crazy selector to handle odd field errors in ie6/7
+				els = $('body').children().filter('.blockUI').add('body > .blockUI');
+			else
+				els = $el.find('>.blockUI');
+
+			// fix cursor issue
+			if ( opts.cursorReset ) {
+				if ( els.length > 1 )
+					els[1].style.cursor = opts.cursorReset;
+				if ( els.length > 2 )
+					els[2].style.cursor = opts.cursorReset;
+			}
+
+			if (full)
+				pageBlock = pageBlockEls = null;
+
+			if (opts.fadeOut) {
+				count = els.length;
+				els.stop().fadeOut(opts.fadeOut, function() {
+					if ( --count === 0)
+						reset(els,data,opts,el);
+				});
+			}
+			else
+				reset(els, data, opts, el);
+		}
+
+		// move blocking element back into the DOM where it started
+		function reset(els,data,opts,el) {
+			var $el = $(el);
+			if ( $el.data('blockUI.isBlocked') )
+				return;
+
+			els.each(function(i,o) {
+				// remove via DOM calls so we don't lose event handlers
+				if (this.parentNode)
+					this.parentNode.removeChild(this);
+			});
+
+			if (data && data.el) {
+				data.el.style.display = data.display;
+				data.el.style.position = data.position;
+				data.el.style.cursor = 'default'; // #59
+				if (data.parent)
+					data.parent.appendChild(data.el);
+				$el.removeData('blockUI.history');
+			}
+
+			if ($el.data('blockUI.static')) {
+				$el.css('position', 'static'); // #22
+			}
+
+			if (typeof opts.onUnblock == 'function')
+				opts.onUnblock(el,opts);
+
+			// fix issue in Safari 6 where block artifacts remain until reflow
+			var body = $(document.body), w = body.width(), cssW = body[0].style.width;
+			body.width(w-1).width(w);
+			body[0].style.width = cssW;
+		}
+
+		// bind/unbind the handler
+		function bind(b, el, opts) {
+			var full = el == window, $el = $(el);
+
+			// don't bother unbinding if there is nothing to unbind
+			if (!b && (full && !pageBlock || !full && !$el.data('blockUI.isBlocked')))
+				return;
+
+			$el.data('blockUI.isBlocked', b);
+
+			// don't bind events when overlay is not in use or if bindEvents is false
+			if (!full || !opts.bindEvents || (b && !opts.showOverlay))
+				return;
+
+			// bind anchors and inputs for mouse and key events
+			var events = 'mousedown mouseup keydown keypress keyup touchstart touchend touchmove';
+			if (b)
+				$(document).on(events, opts, handler);
+			else
+				$(document).off(events, handler);
+
+		// former impl...
+		//		var $e = $('a,:input');
+		//		b ? $e.bind(events, opts, handler) : $e.unbind(events, handler);
+		}
+
+		// event handler to suppress keyboard/mouse events when blocking
+		function handler(e) {
+			// allow tab navigation (conditionally)
+			if (e.type === 'keydown' && e.keyCode && e.keyCode == 9) {
+				if (pageBlock && e.data.constrainTabKey) {
+					var els = pageBlockEls;
+					var fwd = !e.shiftKey && e.target === els[els.length-1];
+					var back = e.shiftKey && e.target === els[0];
+					if (fwd || back) {
+						setTimeout(function(){focus(back);},10);
+						return false;
+					}
+				}
+			}
+			var opts = e.data;
+			var target = $(e.target);
+			if (target.hasClass('blockOverlay') && opts.onOverlayClick)
+				opts.onOverlayClick(e);
+
+			// allow events within the message content
+			if (target.parents('div.' + opts.blockMsgClass).length > 0)
+				return true;
+
+			// allow events for content that is not being blocked
+			return target.parents().children().filter('div.blockUI').length === 0;
+		}
+
+		function focus(back) {
+			if (!pageBlockEls)
+				return;
+			var e = pageBlockEls[back===true ? pageBlockEls.length-1 : 0];
+			if (e)
+				e.focus();
+		}
+
+		function center(el, x, y) {
+			var p = el.parentNode, s = el.style;
+			var l = ((p.offsetWidth - el.offsetWidth)/2) - sz(p,'borderLeftWidth');
+			var t = ((p.offsetHeight - el.offsetHeight)/2) - sz(p,'borderTopWidth');
+			if (x) s.left = l > 0 ? (l+'px') : '0';
+			if (y) s.top  = t > 0 ? (t+'px') : '0';
+		}
+
+		function sz(el, p) {
+			return parseInt($.css(el,p),10)||0;
+		}
+
+	}
+
+
+	/*global define:true */
+	if (typeof define === 'function' && define.amd && define.amd.jQuery) {
+		define(['jquery'], setup);
+	} else {
+		setup(jQuery);
+	}
+
+})();
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/js.module.css
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/js.module.css	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/js.module.css	(revision 38779)
@@ -0,0 +1,22 @@
+/**
+ * @file
+ * Utility classes to assist with JavaScript functionality.
+ */
+
+/**
+ * For anything you want to hide on page load when JS is enabled, so
+ * that you can use the JS to control visibility and avoid flicker.
+ */
+.js .js-hide {
+  display: none;
+}
+
+/**
+ * For anything you want to show on page load only when JS is enabled.
+ */
+.js-show {
+  display: none;
+}
+.js .js-show {
+  display: block;
+}
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/mmenu.bootstrap.css
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/mmenu.bootstrap.css	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/mmenu.bootstrap.css	(revision 38779)
@@ -0,0 +1,1 @@
+body.modal-open .mm-slideout{z-index:unset}
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/mmenu.css
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/mmenu.css	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/mmenu.css	(revision 38779)
@@ -0,0 +1,10 @@
+/*!
+ * mmenu.js
+ * mmenujs.com
+ *
+ * Copyright (c) Fred Heusschen
+ * frebsite.nl
+ *
+ * License: CC-BY-NC-4.0
+ * http://creativecommons.org/licenses/by-nc/4.0/
+ */:root{--mm-line-height:20px;--mm-listitem-size:44px;--mm-navbar-size:44px;--mm-offset-top:0;--mm-offset-right:0;--mm-offset-bottom:0;--mm-offset-left:0;--mm-color-border:rgba(0, 0, 0, 0.1);--mm-color-button:rgba(0, 0, 0, 0.3);--mm-color-text:rgba(0, 0, 0, 0.75);--mm-color-text-dimmed:rgba(0, 0, 0, 0.3);--mm-color-background:#f3f3f3;--mm-color-background-highlight:rgba(0, 0, 0, 0.05);--mm-color-background-emphasis:rgba(255, 255, 255, 0.4);--mm-shadow:0 0 10px rgba(0, 0, 0, 0.3)}.mm-hidden{display:none!important}.mm-wrapper{overflow-x:hidden;position:relative}.mm-menu{top:0;right:0;bottom:0;left:0;background:#f3f3f3;border-color:rgba(0,0,0,.1);color:rgba(0,0,0,.75);line-height:20px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:0;margin:0;-webkit-box-sizing:border-box;box-sizing:border-box;position:absolute;top:var(--mm-offset-top);right:var(--mm-offset-right);bottom:var(--mm-offset-bottom);left:var(--mm-offset-left);z-index:0;-ms-scroll-chaining:chained;overscroll-behavior:auto;background:var(--mm-color-background);border-color:var(--mm-color-border);color:var(--mm-color-text);line-height:var(--mm-line-height);-webkit-tap-highlight-color:var(--mm-color-background-emphasis);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.mm-menu a,.mm-menu a:active,.mm-menu a:hover,.mm-menu a:link,.mm-menu a:visited{text-decoration:none;color:inherit}[dir=rtl] .mm-menu{direction:rtl}.mm-panel{background:#f3f3f3;border-color:rgba(0,0,0,.1);color:rgba(0,0,0,.75);z-index:0;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;-webkit-overflow-scrolling:touch;overflow:hidden;overflow-y:auto;color:var(--mm-color-text);border-color:var(--mm-color-border);background:var(--mm-color-background);-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);-webkit-transition:-webkit-transform .4s ease;transition:-webkit-transform .4s ease;-o-transition:transform .4s ease;transition:transform .4s ease;transition:transform .4s ease,-webkit-transform .4s ease}.mm-panel:after{height:44px}.mm-panel:not(.mm-hidden){display:block}.mm-panel:after{content:'';display:block;height:var(--mm-listitem-size)}.mm-panel_opened{z-index:1;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.mm-panel_opened-parent{-webkit-transform:translate3d(-30%,0,0);transform:translate3d(-30%,0,0)}.mm-panel_highest{z-index:2}.mm-panel_noanimation{-webkit-transition:none!important;-o-transition:none!important;transition:none!important}.mm-panel_noanimation.mm-panel_opened-parent{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.mm-panels>.mm-panel{position:absolute;left:0;right:0;top:0;bottom:0}.mm-panel__content{padding:20px 20px 0}.mm-panels{background:#f3f3f3;border-color:rgba(0,0,0,.1);color:rgba(0,0,0,.75);position:relative;height:100%;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;overflow:hidden;background:var(--mm-color-background);border-color:var(--mm-color-border);color:var(--mm-color-text)}[dir=rtl] .mm-panel:not(.mm-panel_opened){-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}[dir=rtl] .mm-panel.mm-panel_opened-parent{-webkit-transform:translate3d(30%,0,0);transform:translate3d(30%,0,0)}.mm-listitem_vertical>.mm-panel{display:none;width:100%;padding:10px 0 10px 10px;-webkit-transform:none!important;-ms-transform:none!important;transform:none!important}.mm-listitem_vertical>.mm-panel:after,.mm-listitem_vertical>.mm-panel:before{content:none;display:none}.mm-listitem_opened>.mm-panel{display:block}.mm-listitem_vertical>.mm-listitem__btn{height:44px;height:var(--mm-listitem-size);bottom:auto}.mm-listitem_vertical .mm-listitem:last-child:after{border-color:transparent}.mm-listitem_opened>.mm-listitem__btn:after{-webkit-transform:rotate(225deg);-ms-transform:rotate(225deg);transform:rotate(225deg);right:19px}.mm-btn{-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;width:50px;padding:0}.mm-btn:after,.mm-btn:before{border:2px solid rgba(0,0,0,.3);border:2px solid var(--mm-color-button)}.mm-btn_next:after,.mm-btn_prev:before{content:'';border-bottom:none;border-right:none;-webkit-box-sizing:content-box;box-sizing:content-box;display:block;width:8px;height:8px;margin:auto;position:absolute;top:0;bottom:0}.mm-btn_prev:before{-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg);left:23px;right:auto}.mm-btn_next:after{-webkit-transform:rotate(135deg);-ms-transform:rotate(135deg);transform:rotate(135deg);right:23px;left:auto}.mm-btn_close:after,.mm-btn_close:before{content:'';-webkit-box-sizing:content-box;box-sizing:content-box;display:block;width:5px;height:5px;margin:auto;position:absolute;top:0;bottom:0;-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg)}.mm-btn_close:before{border-right:none;border-bottom:none;right:18px}.mm-btn_close:after{border-left:none;border-top:none;right:25px}[dir=rtl] .mm-btn_next:after{-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg);left:23px;right:auto}[dir=rtl] .mm-btn_prev:before{-webkit-transform:rotate(135deg);-ms-transform:rotate(135deg);transform:rotate(135deg);right:23px;left:auto}[dir=rtl] .mm-btn_close:after,[dir=rtl] .mm-btn_close:before{right:auto}[dir=rtl] .mm-btn_close:before{left:25px}[dir=rtl] .mm-btn_close:after{left:18px}.mm-navbar{min-height:44px;border-bottom:1px solid rgba(0,0,0,.1);background:#f3f3f3;color:rgba(0,0,0,.3);display:-webkit-box;display:-ms-flexbox;display:flex;min-height:var(--mm-navbar-size);border-bottom:1px solid var(--mm-color-border);background:var(--mm-color-background);color:var(--mm-color-text-dimmed);text-align:center;opacity:1;-webkit-transition:opacity .4s ease;-o-transition:opacity .4s ease;transition:opacity .4s ease}.mm-navbar>*{min-height:44px}@supports ((position:-webkit-sticky) or (position:sticky)){.mm-navbar_sticky{position:-webkit-sticky;position:sticky;top:0;z-index:1}}.mm-navbar>*{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box}.mm-navbar__btn{-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0}.mm-navbar__title{-webkit-box-flex:1;-ms-flex:1 1 50%;flex:1 1 50%;display:-webkit-box;display:-ms-flexbox;display:flex;padding-left:20px;padding-right:20px;overflow:hidden}.mm-navbar__title:not(:last-child){padding-right:0}.mm-navbar__title>span{-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mm-navbar__btn:not(.mm-hidden)+.mm-navbar__title{padding-left:0}.mm-navbar__btn:not(.mm-hidden)+.mm-navbar__title:last-child{padding-right:50px}[dir=rtl] .mm-navbar{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.mm-listview{list-style:none;display:block;padding:0;margin:0}.mm-listitem{color:rgba(0,0,0,.75);border-color:rgba(0,0,0,.1);color:var(--mm-color-text);border-color:var(--mm-color-border);list-style:none;display:block;padding:0;margin:0;position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.mm-listitem:after{content:'';border-color:inherit;border-bottom-width:1px;border-bottom-style:solid;display:block;position:absolute;left:20px;right:0;bottom:0}.mm-listitem a,.mm-listitem a:hover{text-decoration:none}.mm-listitem__btn,.mm-listitem__text{padding:12px;display:block;padding:calc((var(--mm-listitem-size) - var(--mm-line-height))/ 2);padding-left:0;padding-right:0;color:inherit}.mm-listitem__text{-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;padding-left:20px;padding-right:10px;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-preferred-size:10%;flex-basis:10%}.mm-listitem__btn{background:rgba(3,2,1,0);border-color:inherit;width:auto;padding-right:50px;position:relative}.mm-listitem__btn:not(.mm-listitem__text){border-left-width:1px;border-left-style:solid}.mm-listitem_selected>.mm-listitem__text{background:rgba(255,255,255,.4);background:var(--mm-color-background-emphasis)}.mm-listitem_opened>.mm-listitem__btn,.mm-listitem_opened>.mm-panel{background:rgba(0,0,0,.05);background:var(--mm-color-background-highlight)}[dir=rtl] .mm-listitem:after{left:0;right:20px}[dir=rtl] .mm-listitem__text{padding-left:10px;padding-right:20px}[dir=rtl] .mm-listitem__btn{padding-left:50px;border-left-width:0;border-left-style:none}[dir=rtl] .mm-listitem__btn:not(.mm-listitem__text){padding-right:0;border-right-width:1px;border-right-style:solid}.mm-page{-webkit-box-sizing:border-box;box-sizing:border-box;position:relative}.mm-slideout{-webkit-transition:-webkit-transform .4s ease;transition:-webkit-transform .4s ease;-o-transition:transform .4s ease;transition:transform .4s ease;transition:transform .4s ease,-webkit-transform .4s ease;z-index:1}.mm-wrapper_opened{overflow-x:hidden;position:relative}.mm-wrapper_opened .mm-page{min-height:100vh}.mm-wrapper_background .mm-page{background:inherit}.mm-menu_offcanvas{position:fixed;right:auto;z-index:0}.mm-menu_offcanvas:not(.mm-menu_opened){display:none}.mm-menu_offcanvas{width:80%;min-width:240px;max-width:440px}.mm-wrapper_opening .mm-menu_offcanvas.mm-menu_opened~.mm-slideout{-webkit-transform:translate3d(80vw,0,0);transform:translate3d(80vw,0,0)}@media all and (max-width:300px){.mm-wrapper_opening .mm-menu_offcanvas.mm-menu_opened~.mm-slideout{-webkit-transform:translate3d(240px,0,0);transform:translate3d(240px,0,0)}}@media all and (min-width:550px){.mm-wrapper_opening .mm-menu_offcanvas.mm-menu_opened~.mm-slideout{-webkit-transform:translate3d(440px,0,0);transform:translate3d(440px,0,0)}}.mm-wrapper__blocker{background:rgba(3,2,1,0);overflow:hidden;display:none;position:fixed;top:0;right:0;bottom:0;left:0;z-index:2}.mm-wrapper_blocking{overflow:hidden}.mm-wrapper_blocking body{overflow:hidden}.mm-wrapper_blocking .mm-wrapper__blocker{display:block}.mm-sronly{border:0!important;clip:rect(1px,1px,1px,1px)!important;-webkit-clip-path:inset(50%)!important;clip-path:inset(50%)!important;white-space:nowrap!important;width:1px!important;min-width:1px!important;height:1px!important;min-height:1px!important;padding:0!important;overflow:hidden!important;position:absolute!important}.mm-menu_autoheight:not(.mm-menu_offcanvas){position:relative}.mm-menu_autoheight.mm-menu_position-bottom,.mm-menu_autoheight.mm-menu_position-top{max-height:80%}.mm-menu_autoheight-measuring .mm-panel{display:block!important}.mm-menu_autoheight-measuring .mm-panels>.mm-panel{bottom:auto!important;height:auto!important}.mm-menu_autoheight-measuring .mm-listitem_vertical:not(.mm-listitem_opened) .mm-panel{display:none!important}[class*=mm-menu_columns-]{-webkit-transition-property:width;-o-transition-property:width;transition-property:width}[class*=mm-menu_columns-] .mm-panels>.mm-panel{right:auto;-webkit-transition-property:width,-webkit-transform;transition-property:width,-webkit-transform;-o-transition-property:width,transform;transition-property:width,transform;transition-property:width,transform,-webkit-transform}[class*=mm-menu_columns-] .mm-panels>.mm-panel_opened,[class*=mm-menu_columns-] .mm-panels>.mm-panel_opened-parent{display:block!important}[class*=mm-panel_columns-]{border-right:1px solid;border-color:inherit}.mm-menu_columns-1 .mm-panel_columns-0,.mm-menu_columns-2 .mm-panel_columns-1,.mm-menu_columns-3 .mm-panel_columns-2,.mm-menu_columns-4 .mm-panel_columns-3{border-right:none}[class*=mm-menu_columns-] .mm-panels>.mm-panel_columns-0{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.mm-menu_columns-0 .mm-panels>.mm-panel{z-index:0}.mm-menu_columns-0 .mm-panels>.mm-panel else{width:100%}.mm-menu_columns-0 .mm-panels>.mm-panel:not(.mm-panel_opened):not(.mm-panel_opened-parent){-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}.mm-menu_columns-0{width:80%;min-width:240px;max-width:0}.mm-wrapper_opening .mm-menu_columns-0.mm-menu_opened~.mm-slideout{-webkit-transform:translate3d(80vw,0,0);transform:translate3d(80vw,0,0)}@media all and (max-width:300px){.mm-wrapper_opening .mm-menu_columns-0.mm-menu_opened~.mm-slideout{-webkit-transform:translate3d(240px,0,0);transform:translate3d(240px,0,0)}}@media all and (min-width:0px){.mm-wrapper_opening .mm-menu_columns-0.mm-menu_opened~.mm-slideout{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.mm-wrapper_opening .mm-menu_columns-0.mm-menu_position-right.mm-menu_opened~.mm-slideout{-webkit-transform:translate3d(-80vw,0,0);transform:translate3d(-80vw,0,0)}@media all and (max-width:300px){.mm-wrapper_opening .mm-menu_columns-0.mm-menu_position-right.mm-menu_opened~.mm-slideout{-webkit-transform:translate3d(-240px,0,0);transform:translate3d(-240px,0,0)}}@media all and (min-width:0px){.mm-wrapper_opening .mm-menu_columns-0.mm-menu_position-right.mm-menu_opened~.mm-slideout{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}[class*=mm-menu_columns-] .mm-panels>.mm-panel_columns-1{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}.mm-menu_columns-1 .mm-panels>.mm-panel{z-index:1;width:100%}.mm-menu_columns-1 .mm-panels>.mm-panel else{width:100%}.mm-menu_columns-1 .mm-panels>.mm-panel:not(.mm-panel_opened):not(.mm-panel_opened-parent){-webkit-transform:translate3d(200%,0,0);transform:translate3d(200%,0,0)}.mm-menu_columns-1{width:80%;min-width:240px;max-width:440px}.mm-wrapper_opening .mm-menu_columns-1.mm-menu_opened~.mm-slideout{-webkit-transform:translate3d(80vw,0,0);transform:translate3d(80vw,0,0)}@media all and (max-width:300px){.mm-wrapper_opening .mm-menu_columns-1.mm-menu_opened~.mm-slideout{-webkit-transform:translate3d(240px,0,0);transform:translate3d(240px,0,0)}}@media all and (min-width:550px){.mm-wrapper_opening .mm-menu_columns-1.mm-menu_opened~.mm-slideout{-webkit-transform:translate3d(440px,0,0);transform:translate3d(440px,0,0)}}.mm-wrapper_opening .mm-menu_columns-1.mm-menu_position-right.mm-menu_opened~.mm-slideout{-webkit-transform:translate3d(-80vw,0,0);transform:translate3d(-80vw,0,0)}@media all and (max-width:300px){.mm-wrapper_opening .mm-menu_columns-1.mm-menu_position-right.mm-menu_opened~.mm-slideout{-webkit-transform:translate3d(-240px,0,0);transform:translate3d(-240px,0,0)}}@media all and (min-width:550px){.mm-wrapper_opening .mm-menu_columns-1.mm-menu_position-right.mm-menu_opened~.mm-slideout{-webkit-transform:translate3d(-440px,0,0);transform:translate3d(-440px,0,0)}}[class*=mm-menu_columns-] .mm-panels>.mm-panel_columns-2{-webkit-transform:translate3d(200%,0,0);transform:translate3d(200%,0,0)}.mm-menu_columns-2 .mm-panels>.mm-panel{z-index:2;width:50%}.mm-menu_columns-2 .mm-panels>.mm-panel else{width:100%}.mm-menu_columns-2 .mm-panels>.mm-panel:not(.mm-panel_opened):not(.mm-panel_opened-parent){-webkit-transform:translate3d(300%,0,0);transform:translate3d(300%,0,0)}.mm-menu_columns-2{width:80%;min-width:240px;max-width:880px}.mm-wrapper_opening .mm-menu_columns-2.mm-menu_opened~.mm-slideout{-webkit-transform:translate3d(80vw,0,0);transform:translate3d(80vw,0,0)}@media all and (max-width:300px){.mm-wrapper_opening .mm-menu_columns-2.mm-menu_opened~.mm-slideout{-webkit-transform:translate3d(240px,0,0);transform:translate3d(240px,0,0)}}@media all and (min-width:1100px){.mm-wrapper_opening .mm-menu_columns-2.mm-menu_opened~.mm-slideout{-webkit-transform:translate3d(880px,0,0);transform:translate3d(880px,0,0)}}.mm-wrapper_opening .mm-menu_columns-2.mm-menu_position-right.mm-menu_opened~.mm-slideout{-webkit-transform:translate3d(-80vw,0,0);transform:translate3d(-80vw,0,0)}@media all and (max-width:300px){.mm-wrapper_opening .mm-menu_columns-2.mm-menu_position-right.mm-menu_opened~.mm-slideout{-webkit-transform:translate3d(-240px,0,0);transform:translate3d(-240px,0,0)}}@media all and (min-width:1100px){.mm-wrapper_opening .mm-menu_columns-2.mm-menu_position-right.mm-menu_opened~.mm-slideout{-webkit-transform:translate3d(-880px,0,0);transform:translate3d(-880px,0,0)}}[class*=mm-menu_columns-] .mm-panels>.mm-panel_columns-3{-webkit-transform:translate3d(300%,0,0);transform:translate3d(300%,0,0)}.mm-menu_columns-3 .mm-panels>.mm-panel{z-index:3;width:33.34%}.mm-menu_columns-3 .mm-panels>.mm-panel else{width:100%}.mm-menu_columns-3 .mm-panels>.mm-panel:not(.mm-panel_opened):not(.mm-panel_opened-parent){-webkit-transform:translate3d(400%,0,0);transform:translate3d(400%,0,0)}.mm-menu_columns-3{width:80%;min-width:240px;max-width:1320px}.mm-wrapper_opening .mm-menu_columns-3.mm-menu_opened~.mm-slideout{-webkit-transform:translate3d(80vw,0,0);transform:translate3d(80vw,0,0)}@media all and (max-width:300px){.mm-wrapper_opening .mm-menu_columns-3.mm-menu_opened~.mm-slideout{-webkit-transform:translate3d(240px,0,0);transform:translate3d(240px,0,0)}}@media all and (min-width:1650px){.mm-wrapper_opening .mm-menu_columns-3.mm-menu_opened~.mm-slideout{-webkit-transform:translate3d(1320px,0,0);transform:translate3d(1320px,0,0)}}.mm-wrapper_opening .mm-menu_columns-3.mm-menu_position-right.mm-menu_opened~.mm-slideout{-webkit-transform:translate3d(-80vw,0,0);transform:translate3d(-80vw,0,0)}@media all and (max-width:300px){.mm-wrapper_opening .mm-menu_columns-3.mm-menu_position-right.mm-menu_opened~.mm-slideout{-webkit-transform:translate3d(-240px,0,0);transform:translate3d(-240px,0,0)}}@media all and (min-width:1650px){.mm-wrapper_opening .mm-menu_columns-3.mm-menu_position-right.mm-menu_opened~.mm-slideout{-webkit-transform:translate3d(-1320px,0,0);transform:translate3d(-1320px,0,0)}}[class*=mm-menu_columns-] .mm-panels>.mm-panel_columns-4{-webkit-transform:translate3d(400%,0,0);transform:translate3d(400%,0,0)}.mm-menu_columns-4 .mm-panels>.mm-panel{z-index:4;width:25%}.mm-menu_columns-4 .mm-panels>.mm-panel else{width:100%}.mm-menu_columns-4 .mm-panels>.mm-panel:not(.mm-panel_opened):not(.mm-panel_opened-parent){-webkit-transform:translate3d(500%,0,0);transform:translate3d(500%,0,0)}.mm-menu_columns-4{width:80%;min-width:240px;max-width:1760px}.mm-wrapper_opening .mm-menu_columns-4.mm-menu_opened~.mm-slideout{-webkit-transform:translate3d(80vw,0,0);transform:translate3d(80vw,0,0)}@media all and (max-width:300px){.mm-wrapper_opening .mm-menu_columns-4.mm-menu_opened~.mm-slideout{-webkit-transform:translate3d(240px,0,0);transform:translate3d(240px,0,0)}}@media all and (min-width:2200px){.mm-wrapper_opening .mm-menu_columns-4.mm-menu_opened~.mm-slideout{-webkit-transform:translate3d(1760px,0,0);transform:translate3d(1760px,0,0)}}.mm-wrapper_opening .mm-menu_columns-4.mm-menu_position-right.mm-menu_opened~.mm-slideout{-webkit-transform:translate3d(-80vw,0,0);transform:translate3d(-80vw,0,0)}@media all and (max-width:300px){.mm-wrapper_opening .mm-menu_columns-4.mm-menu_position-right.mm-menu_opened~.mm-slideout{-webkit-transform:translate3d(-240px,0,0);transform:translate3d(-240px,0,0)}}@media all and (min-width:2200px){.mm-wrapper_opening .mm-menu_columns-4.mm-menu_position-right.mm-menu_opened~.mm-slideout{-webkit-transform:translate3d(-1760px,0,0);transform:translate3d(-1760px,0,0)}}[class*=mm-menu_columns-].mm-menu_position-bottom,[class*=mm-menu_columns-].mm-menu_position-top{width:100%;max-width:100%;min-width:100%}.mm-wrapper_opening [class*=mm-menu_columns-].mm-menu_position-front{-webkit-transition-property:width,min-width,max-width,-webkit-transform;transition-property:width,min-width,max-width,-webkit-transform;-o-transition-property:width,min-width,max-width,transform;transition-property:width,min-width,max-width,transform;transition-property:width,min-width,max-width,transform,-webkit-transform}.mm-counter{color:rgba(0,0,0,.3);display:block;padding-left:20px;float:right;text-align:right;color:var(--mm-color-text-dimmed)}.mm-listitem_nosubitems>.mm-counter{display:none}[dir=rtl] .mm-counter{text-align:left;float:left;padding-left:0;padding-right:20px}.mm-divider{position:relative;min-height:20px;padding:4.3px;background:#f3f3f3;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;min-height:var(--mm-line-height);padding:calc(((var(--mm-listitem-size) * .65) - var(--mm-line-height)) * .5);padding-right:10px;padding-left:20px;font-size:75%;text-transform:uppercase;background:var(--mm-color-background);opacity:1;-webkit-transition:opacity .4s ease;-o-transition:opacity .4s ease;transition:opacity .4s ease}.mm-divider:before{background:rgba(0,0,0,.05)}@supports ((position:-webkit-sticky) or (position:sticky)){.mm-divider{position:-webkit-sticky;position:sticky;z-index:2;top:0}.mm-navbar_sticky:not(.mm-hidden)~.mm-listview .mm-divider{top:var(--mm-navbar-size)}}.mm-divider:before{content:'';position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1;background:var(--mm-color-background-highlight)}.mm-wrapper_dragging .mm-menu,.mm-wrapper_dragging .mm-slideout{-webkit-transition-duration:0s!important;-o-transition-duration:0s!important;transition-duration:0s!important;-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important;user-select:none!important}.mm-wrapper_dragging .mm-menu{pointer-events:none!important}.mm-wrapper_dragging .mm-wrapper__blocker{display:none!important}.mm-menu_dropdown{-webkit-box-shadow:0 2px 10px rgba(0,0,0,.3);box-shadow:0 2px 10px rgba(0,0,0,.3);height:80%}.mm-wrapper_dropdown .mm-slideout{-webkit-transform:none!important;-ms-transform:none!important;transform:none!important;z-index:0}.mm-wrapper_dropdown .mm-wrapper__blocker{-webkit-transition-delay:0s!important;-o-transition-delay:0s!important;transition-delay:0s!important;z-index:1}.mm-wrapper_dropdown .mm-menu_dropdown{z-index:2}.mm-wrapper_dropdown.mm-wrapper_opened:not(.mm-wrapper_opening) .mm-menu_dropdown{display:none}.mm-menu_tip-bottom:before,.mm-menu_tip-left:before,.mm-menu_tip-right:before,.mm-menu_tip-top:before{content:'';background:inherit;-webkit-box-shadow:0 2px 10px rgba(0,0,0,.3);box-shadow:0 2px 10px rgba(0,0,0,.3);display:block;width:15px;height:15px;position:absolute;z-index:-1;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.mm-menu_tip-left:before{left:22px}.mm-menu_tip-right:before{right:22px}.mm-menu_tip-top:before{top:-8px}.mm-menu_tip-bottom:before{bottom:-8px}:root{--mm-iconbar-size:50px}.mm-menu_iconbar-left .mm-navbars_bottom,.mm-menu_iconbar-left .mm-navbars_top,.mm-menu_iconbar-left .mm-panels{margin-left:50px;margin-left:var(--mm-iconbar-size)}.mm-menu_iconbar-right .mm-navbars_bottom,.mm-menu_iconbar-right .mm-navbars_top,.mm-menu_iconbar-right .mm-panels{margin-right:50px;margin-right:var(--mm-iconbar-size)}.mm-iconbar{width:50px;border-color:rgba(0,0,0,.1);background:#f3f3f3;color:rgba(0,0,0,.3);display:none;position:absolute;top:0;bottom:0;z-index:2;width:var(--mm-iconbar-size);overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;border:0 solid;border-color:var(--mm-color-border);background:var(--mm-color-background);color:var(--mm-color-text-dimmed);text-align:center}.mm-menu_iconbar-left .mm-iconbar,.mm-menu_iconbar-right .mm-iconbar{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.mm-menu_iconbar-left .mm-iconbar{border-right-width:1px;left:0}.mm-menu_iconbar-right .mm-iconbar{border-left-width:1px;right:0}.mm-iconbar__bottom,.mm-iconbar__top{width:100%;-webkit-overflow-scrolling:touch;overflow:hidden;overflow-y:auto;-ms-scroll-chaining:none;overscroll-behavior:contain}.mm-iconbar__bottom>*,.mm-iconbar__top>*{-webkit-box-sizing:border-box;box-sizing:border-box;display:block;padding:12.5px 0}.mm-iconbar__bottom a,.mm-iconbar__bottom a:hover,.mm-iconbar__top a,.mm-iconbar__top a:hover{text-decoration:none}.mm-iconbar__tab_selected{background:rgba(255,255,255,.4);background:var(--mm-color-background-emphasis)}:root{--mm-iconpanel-size:50px}.mm-panel_iconpanel-1{width:calc(100% - 50px);width:calc(100% - (var(--mm-iconpanel-size) * 1))}.mm-panel_iconpanel-2{width:calc(100% - 100px);width:calc(100% - (var(--mm-iconpanel-size) * 2))}.mm-panel_iconpanel-3{width:calc(100% - 150px);width:calc(100% - (var(--mm-iconpanel-size) * 3))}.mm-panel_iconpanel-first~.mm-panel{width:calc(100% - 50px);width:calc(100% - var(--mm-iconpanel-size))}.mm-menu_iconpanel .mm-panels>.mm-panel{left:auto;-webkit-transition-property:width,-webkit-transform;transition-property:width,-webkit-transform;-o-transition-property:transform,width;transition-property:transform,width;transition-property:transform,width,-webkit-transform}.mm-menu_iconpanel .mm-panels>.mm-panel_opened,.mm-menu_iconpanel .mm-panels>.mm-panel_opened-parent{display:block!important}.mm-menu_iconpanel .mm-panels>.mm-panel_opened-parent{overflow-y:hidden;-webkit-transform:unset;-ms-transform:unset;transform:unset}.mm-menu_iconpanel .mm-panels>.mm-panel:not(.mm-panel_iconpanel-first):not(.mm-panel_iconpanel-0){border-left-width:1px;border-left-style:solid}.mm-menu_hidedivider .mm-panel_opened-parent .mm-divider,.mm-menu_hidenavbar .mm-panel_opened-parent .mm-navbar{opacity:0}.mm-panel__blocker{background:inherit;opacity:0;display:block;position:absolute;top:0;right:0;left:0;z-index:3;-webkit-transition:opacity .4s ease;-o-transition:opacity .4s ease;transition:opacity .4s ease}.mm-panel_opened-parent .mm-panel__blocker{opacity:.6;bottom:-100000px}[dir=rtl] .mm-menu_iconpanel .mm-panels>.mm-panel{left:0;right:auto;-webkit-transition-property:width,-webkit-transform;transition-property:width,-webkit-transform;-o-transition-property:transform,width;transition-property:transform,width;transition-property:transform,width,-webkit-transform}[dir=rtl] .mm-menu_iconpanel .mm-panels>.mm-panel:not(.mm-panel_iconpanel-first):not(.mm-panel_iconpanel-0){border-left:none;border-right:1px solid;border-color:inherit}.mm-menu_keyboardfocus a:focus,.mm-menu_keyboardfocus.mm-menu_opened~.mm-wrapper__blocker a:focus{background:rgba(255,255,255,.4);background:var(--mm-color-background-emphasis);outline:0}.mm-wrapper__blocker .mm-tabstart{cursor:default;display:block;width:100%;height:100%}.mm-wrapper__blocker .mm-tabend{opacity:0;position:absolute;bottom:0}.mm-navbars_top{-ms-flex-negative:0;flex-shrink:0}.mm-navbars_top .mm-navbar:not(:last-child){border-bottom:none}.mm-navbars_bottom{-ms-flex-negative:0;flex-shrink:0}.mm-navbars_bottom .mm-navbar{border-bottom:none}.mm-navbars_bottom .mm-navbar:first-child{border-top:1px solid rgba(0,0,0,.1);border-top:1px solid var(--mm-color-border)}.mm-btn:not(.mm-hidden)+.mm-navbar__searchfield .mm-searchfield__input{padding-left:0}.mm-navbar__searchfield:not(:last-child) .mm-searchfield__input{padding-right:0}.mm-navbar__breadcrumbs{-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-box-flex:1;-ms-flex:1 1 50%;flex:1 1 50%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;padding:0 20px;overflow-x:auto;-webkit-overflow-scrolling:touch}.mm-navbar__breadcrumbs>*{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding-right:6px}.mm-navbar__breadcrumbs>a{text-decoration:underline}.mm-navbar__breadcrumbs:not(:last-child){padding-right:0}.mm-btn:not(.mm-hidden)+.mm-navbar__breadcrumbs{padding-left:0}.mm-navbar_tabs>*{padding:0 10px;border:1px solid transparent}.mm-navbar__tab_selected{background:#f3f3f3;color:rgba(0,0,0,.75);background:var(--mm-color-background);color:var(--mm-color-text)}.mm-navbar__tab_selected:not(:first-child){border-left-color:rgba(0,0,0,.1)}.mm-navbar__tab_selected:not(:last-child){border-right-color:rgba(0,0,0,.1)}.mm-navbar__tab_selected:not(:first-child){border-left-color:var(--mm-color-border)}.mm-navbar__tab_selected:not(:last-child){border-right-color:var(--mm-color-border)}.mm-navbars_top .mm-navbar_tabs{border-bottom:none}.mm-navbars_top .mm-navbar_tabs>*{border-bottom-color:rgba(0,0,0,.1);border-bottom-color:var(--mm-color-border)}.mm-navbars_top .mm-navbar__tab_selected{border-top-color:rgba(0,0,0,.1);border-top-color:var(--mm-color-border);border-bottom-color:transparent}.mm-navbars_top.mm-navbars_has-tabs .mm-navbar{background:rgba(255,255,255,.4);background:var(--mm-color-background-emphasis)}.mm-navbars_top.mm-navbars_has-tabs .mm-navbar_tabs~.mm-navbar{background:#f3f3f3;background:var(--mm-color-background)}.mm-navbars_bottom .mm-navbar_tabs:first-child{border-top:none}.mm-navbars_bottom .mm-navbar_tabs>*{border-top-color:rgba(0,0,0,.1);border-top-color:var(--mm-color-border)}.mm-navbars_bottom .mm-navbar__tab_selected{border-bottom-color:rgba(0,0,0,.1);border-bottom-color:var(--mm-color-border);border-top-color:transparent}.mm-navbars_bottom.mm-navbars_has-tabs .mm-navbar{background:#f3f3f3;background:var(--mm-color-background)}.mm-navbars_bottom.mm-navbars_has-tabs .mm-navbar_tabs,.mm-navbars_bottom.mm-navbars_has-tabs .mm-navbar_tabs~.mm-navbar{background:rgba(255,255,255,.4);background:var(--mm-color-background-emphasis)}.mm-searchfield{height:44px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;height:var(--mm-navbar-size);padding:0;overflow:hidden}.mm-searchfield input{height:30.8px;line-height:30.8px}.mm-searchfield input,.mm-searchfield input:focus,.mm-searchfield input:hover{background:rgba(0,0,0,.05);color:rgba(0,0,0,.75)}.mm-searchfield input{display:block;width:100%;max-width:100%;height:calc(var(--mm-navbar-size) * .7);min-height:unset;max-height:unset;margin:0;padding:0 10px;-webkit-box-sizing:border-box;box-sizing:border-box;border:none!important;border-radius:4px;line-height:calc(var(--mm-navbar-size) * .7);-webkit-box-shadow:none!important;box-shadow:none!important;outline:0!important;font:inherit;font-size:inherit}.mm-searchfield input,.mm-searchfield input:focus,.mm-searchfield input:hover{background:var(--mm-color-background-highlight);color:var(--mm-color-text)}.mm-searchfield input::-ms-clear{display:none}.mm-searchfield__input{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative;width:100%;max-width:100%;padding:0 10px;-webkit-box-sizing:border-box;box-sizing:border-box}.mm-panel__noresultsmsg{color:rgba(0,0,0,.3);padding:50px 0;color:var(--mm-color-text-dimmed);text-align:center;font-size:150%}.mm-searchfield__btn{position:absolute;right:0;top:0;bottom:0}.mm-panel_search{left:0!important;right:0!important;width:100%!important;border-left:none!important}.mm-searchfield__cancel{line-height:44px;display:block;padding-right:10px;margin-right:-100px;line-height:var(--mm-navbar-size);text-decoration:none;-webkit-transition:margin .4s ease;-o-transition:margin .4s ease;transition:margin .4s ease}.mm-searchfield__cancel-active{margin-right:0}.mm-listitem_nosubitems>.mm-listitem__btn{display:none}.mm-listitem_nosubitems>.mm-listitem__text{padding-right:10px}.mm-listitem_onlysubitems>.mm-listitem__text:not(.mm-listitem__btn){z-index:-1;pointer-events:none}.mm-sectionindexer{background:inherit;text-align:center;font-size:12px;-webkit-box-sizing:border-box;box-sizing:border-box;width:20px;position:absolute;top:0;bottom:0;right:-20px;z-index:5;-webkit-transition:right .4s ease;-o-transition:right .4s ease;transition:right .4s ease;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:space-evenly;-ms-flex-pack:space-evenly;justify-content:space-evenly}.mm-sectionindexer a{color:rgba(0,0,0,.3);color:var(--mm-color-text-dimmed);line-height:1;text-decoration:none;display:block}.mm-sectionindexer~.mm-panel{padding-right:0}.mm-sectionindexer_active{right:0}.mm-sectionindexer_active~.mm-panel{padding-right:20px}.mm-menu_selected-hover .mm-listitem__btn,.mm-menu_selected-hover .mm-listitem__text,.mm-menu_selected-parent .mm-listitem__btn,.mm-menu_selected-parent .mm-listitem__text{-webkit-transition:background-color .4s ease;-o-transition:background-color .4s ease;transition:background-color .4s ease}.mm-menu_selected-hover .mm-listview:hover>.mm-listitem_selected:not(:hover)>.mm-listitem__text{background:0 0}.mm-menu_selected-hover .mm-listitem__btn:hover,.mm-menu_selected-hover .mm-listitem__text:hover{background:rgba(255,255,255,.4);background:var(--mm-color-background-emphasis)}.mm-menu_selected-parent .mm-panel_opened-parent .mm-listitem:not(.mm-listitem_selected-parent)>.mm-listitem__text{background:0 0}.mm-menu_selected-parent .mm-listitem_selected-parent>.mm-listitem__btn,.mm-menu_selected-parent .mm-listitem_selected-parent>.mm-listitem__text{background:rgba(255,255,255,.4);background:var(--mm-color-background-emphasis)}:root{--mm-sidebar-collapsed-size:50px;--mm-sidebar-expanded-size:440px}.mm-wrapper_sidebar-collapsed body,.mm-wrapper_sidebar-expanded body{position:relative}.mm-wrapper_sidebar-collapsed .mm-slideout,.mm-wrapper_sidebar-expanded .mm-slideout{-webkit-transition-property:width,-webkit-transform;transition-property:width,-webkit-transform;-o-transition-property:width,transform;transition-property:width,transform;transition-property:width,transform,-webkit-transform}.mm-wrapper_sidebar-collapsed .mm-page,.mm-wrapper_sidebar-expanded .mm-page{background:inherit;-webkit-box-sizing:border-box;box-sizing:border-box;min-height:100vh}.mm-wrapper_sidebar-collapsed .mm-menu_sidebar-collapsed,.mm-wrapper_sidebar-expanded .mm-menu_sidebar-expanded{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important;top:0!important;right:auto!important;bottom:0!important;left:0!important}.mm-wrapper_sidebar-collapsed .mm-slideout{width:calc(100% - 50px);-webkit-transform:translate3d(50px,0,0);transform:translate3d(50px,0,0);width:calc(100% - var(--mm-sidebar-collapsed-size));-webkit-transform:translate3d(var(--mm-sidebar-collapsed-size),0,0);transform:translate3d(var(--mm-sidebar-collapsed-size),0,0)}.mm-wrapper_sidebar-collapsed:not(.mm-wrapper_opening) .mm-menu_hidedivider .mm-divider,.mm-wrapper_sidebar-collapsed:not(.mm-wrapper_opening) .mm-menu_hidenavbar .mm-navbar{opacity:0}.mm-wrapper_sidebar-expanded .mm-menu_sidebar-expanded{width:440px;width:var(--mm-sidebar-expanded-size);min-width:0!important;max-width:100000px!important;border-right-width:1px;border-right-style:solid}.mm-wrapper_sidebar-expanded .mm-menu_sidebar-expanded.mm-menu_pageshadow:after{content:none;display:none}.mm-wrapper_sidebar-expanded.mm-wrapper_blocking,.mm-wrapper_sidebar-expanded.mm-wrapper_blocking body{overflow:visible}.mm-wrapper_sidebar-expanded .mm-wrapper__blocker{display:none!important}.mm-wrapper_sidebar-expanded:not(.mm-wrapper_sidebar-closed) .mm-menu_sidebar-expanded.mm-menu_opened~.mm-slideout{width:calc(100% - 440px);-webkit-transform:translate3d(440px,0,0);transform:translate3d(440px,0,0);width:calc(100% - var(--mm-sidebar-expanded-size));-webkit-transform:translate3d(var(--mm-sidebar-expanded-size),0,0);transform:translate3d(var(--mm-sidebar-expanded-size),0,0)}.mm-menu__blocker{background:rgba(3,2,1,0);display:block;position:absolute;top:0;right:0;bottom:0;left:0;z-index:3}.mm-menu_opened .mm-menu__blocker{display:none}[dir=rtl].mm-wrapper_sidebar-collapsed .mm-slideout{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}[dir=rtl].mm-wrapper_sidebar-expanded .mm-slideout{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}[dir=rtl].mm-wrapper_sidebar-expanded:not(.mm-wrapper_sidebar-closed) .mm-menu_sidebar-expanded.mm-menu_opened~.mm-slideout{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}input.mm-toggle{margin-top:5px;background:rgba(0,0,0,.1);display:inline-block;min-width:58px;width:58px;height:34px;margin:0 10px;margin-top:calc((var(--mm-listitem-size) - 34px)/ 2);border:none!important;background:var(--mm-color-border);border-radius:34px;-webkit-appearance:none!important;-moz-appearance:none!important;appearance:none!important;cursor:pointer;-webkit-transition:background-color .2s ease;-o-transition:background-color .2s ease;transition:background-color .2s ease}input.mm-toggle:before{background:#f3f3f3}input.mm-toggle:before{content:'';display:block;width:32px;height:32px;margin:1px;border-radius:34px;background:var(--mm-color-background);-webkit-transition:-webkit-transform .2s ease;transition:-webkit-transform .2s ease;-o-transition:transform .2s ease;transition:transform .2s ease;transition:transform .2s ease,-webkit-transform .2s ease}input.mm-toggle:checked{background:#4bd963}input.mm-toggle:checked:before{-webkit-transform:translateX(24px);-ms-transform:translateX(24px);transform:translateX(24px)}input.mm-check{margin-top:2px;-webkit-appearance:none!important;-moz-appearance:none!important;appearance:none!important;border:none!important;background:0 0!important;cursor:pointer;display:inline-block;width:40px;height:40px;margin:0 10px;margin-top:calc((var(--mm-listitem-size) - 40px)/ 2)}input.mm-check:before{content:'';display:block;width:40%;height:20%;margin:25% 0 0 20%;border-left:3px solid;border-bottom:3px solid;border-color:var(--mm-color-text);opacity:.3;-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transition:opacity .2s ease;-o-transition:opacity .2s ease;transition:opacity .2s ease}input.mm-check:checked:before{opacity:1}[dir=rtl] input.mm-toggle:checked~label.mm-toggle:before{float:left}.mm-menu_border-none .mm-listitem:after{content:none}.mm-menu_border-full .mm-listitem:after{left:0!important}.mm-menu_fx-menu-slide{-webkit-transition:-webkit-transform .4s ease;transition:-webkit-transform .4s ease;-o-transition:transform .4s ease;transition:transform .4s ease;transition:transform .4s ease,-webkit-transform .4s ease}.mm-wrapper_opened .mm-menu_fx-menu-slide{-webkit-transform:translate3d(-30%,0,0);transform:translate3d(-30%,0,0)}.mm-wrapper_opening .mm-menu_fx-menu-slide{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.mm-wrapper_opened .mm-menu_fx-menu-slide.mm-menu_position-right{-webkit-transform:translate3d(30%,0,0);transform:translate3d(30%,0,0)}.mm-wrapper_opening .mm-menu_fx-menu-slide.mm-menu_position-right{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.mm-menu_fx-panels-none .mm-panel,.mm-panel_fx-none{-webkit-transition-property:none;-o-transition-property:none;transition-property:none}.mm-menu_fx-panels-none .mm-panel.mm-panel_opened-parent,.mm-panel_fx-none.mm-panel_opened-parent{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.mm-menu_fx-panels-slide-0 .mm-panel_opened-parent{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.mm-menu_fx-panels-slide-100 .mm-panel_opened-parent{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.mm-menu_fullscreen{width:100%;min-width:140px;max-width:10000px}.mm-wrapper_opening .mm-menu_fullscreen.mm-menu_opened~.mm-slideout{-webkit-transform:translate3d(100vw,0,0);transform:translate3d(100vw,0,0)}@media all and (max-width:140px){.mm-wrapper_opening .mm-menu_fullscreen.mm-menu_opened~.mm-slideout{-webkit-transform:translate3d(140px,0,0);transform:translate3d(140px,0,0)}}@media all and (min-width:10000px){.mm-wrapper_opening .mm-menu_fullscreen.mm-menu_opened~.mm-slideout{-webkit-transform:translate3d(10000px,0,0);transform:translate3d(10000px,0,0)}}.mm-wrapper_opening .mm-menu_fullscreen.mm-menu_position-right.mm-menu_opened~.mm-slideout{-webkit-transform:translate3d(-100vw,0,0);transform:translate3d(-100vw,0,0)}@media all and (max-width:140px){.mm-wrapper_opening .mm-menu_fullscreen.mm-menu_position-right.mm-menu_opened~.mm-slideout{-webkit-transform:translate3d(-140px,0,0);transform:translate3d(-140px,0,0)}}@media all and (min-width:10000px){.mm-wrapper_opening .mm-menu_fullscreen.mm-menu_position-right.mm-menu_opened~.mm-slideout{-webkit-transform:translate3d(-10000px,0,0);transform:translate3d(-10000px,0,0)}}.mm-menu_fullscreen.mm-menu_position-top{height:100vh;min-height:140px;max-height:10000px}.mm-menu_fullscreen.mm-menu_position-bottom{height:100vh;min-height:140px;max-height:10000px}.mm-menu_listview-justify .mm-panels>.mm-panel{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.mm-menu_listview-justify .mm-panels>.mm-panel:after{content:none;display:none}.mm-menu_listview-justify .mm-panels>.mm-panel .mm-listview{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:100%;margin-top:0;margin-bottom:0}.mm-menu_listview-justify .mm-panels>.mm-panel .mm-listitem{-webkit-box-flex:1;-ms-flex:1 0 auto;flex:1 0 auto;min-height:50px}.mm-menu_listview-justify .mm-panels>.mm-panel .mm-listitem__text{-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-flex:1;-ms-flex:1 0 auto;flex:1 0 auto;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mm-listview_inset{list-style:inside disc;width:100%;padding:0 30px 15px 30px;margin:0}.mm-listview_inset .mm-listitem{padding:5px 0}.mm-menu_multiline .mm-listitem__text{-o-text-overflow:clip;text-overflow:clip;white-space:normal}[class*=mm-menu_pagedim].mm-menu_opened~.mm-wrapper__blocker{opacity:0}.mm-wrapper_opening [class*=mm-menu_pagedim].mm-menu_opened~.mm-wrapper__blocker{opacity:.3;-webkit-transition:opacity .4s ease .4s;-o-transition:opacity .4s ease .4s;transition:opacity .4s ease .4s}.mm-menu_opened.mm-menu_pagedim~.mm-wrapper__blocker{background:inherit}.mm-menu_opened.mm-menu_pagedim-black~.mm-wrapper__blocker{background:#000}.mm-menu_opened.mm-menu_pagedim-white~.mm-wrapper__blocker{background:#fff}.mm-menu_popup{-webkit-transition:opacity .4s ease;-o-transition:opacity .4s ease;transition:opacity .4s ease;opacity:0;-webkit-box-shadow:0 2px 10px rgba(0,0,0,.3);box-shadow:0 2px 10px rgba(0,0,0,.3);height:80%;min-height:140px;max-height:880px;top:50%;left:50%;bottom:auto;right:auto;z-index:2;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0)}.mm-menu_popup.mm-menu_opened~.mm-slideout{-webkit-transform:none!important;-ms-transform:none!important;transform:none!important;z-index:0}.mm-menu_popup.mm-menu_opened~.mm-wrapper__blocker{-webkit-transition-delay:0s!important;-o-transition-delay:0s!important;transition-delay:0s!important;z-index:1}.mm-wrapper_opening .mm-menu_popup{opacity:1}.mm-menu_position-right{left:auto;right:0}.mm-wrapper_opening .mm-menu_position-right.mm-menu_opened~.mm-slideout{-webkit-transform:translate3d(-80vw,0,0);transform:translate3d(-80vw,0,0)}@media all and (max-width:300px){.mm-wrapper_opening .mm-menu_position-right.mm-menu_opened~.mm-slideout{-webkit-transform:translate3d(-240px,0,0);transform:translate3d(-240px,0,0)}}@media all and (min-width:550px){.mm-wrapper_opening .mm-menu_position-right.mm-menu_opened~.mm-slideout{-webkit-transform:translate3d(-440px,0,0);transform:translate3d(-440px,0,0)}}.mm-menu_position-bottom,.mm-menu_position-front,.mm-menu_position-top{-webkit-transition:-webkit-transform .4s ease;transition:-webkit-transform .4s ease;-o-transition:transform .4s ease;transition:transform .4s ease;transition:transform .4s ease,-webkit-transform .4s ease}.mm-menu_position-bottom.mm-menu_opened,.mm-menu_position-front.mm-menu_opened,.mm-menu_position-top.mm-menu_opened{z-index:2}.mm-menu_position-bottom.mm-menu_opened~.mm-slideout,.mm-menu_position-front.mm-menu_opened~.mm-slideout,.mm-menu_position-top.mm-menu_opened~.mm-slideout{-webkit-transform:none!important;-ms-transform:none!important;transform:none!important;z-index:0}.mm-menu_position-bottom.mm-menu_opened~.mm-wrapper__blocker,.mm-menu_position-front.mm-menu_opened~.mm-wrapper__blocker,.mm-menu_position-top.mm-menu_opened~.mm-wrapper__blocker{z-index:1}.mm-menu_position-front{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.mm-menu_position-front.mm-menu_position-right{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}.mm-menu_position-bottom,.mm-menu_position-top{width:100%;min-width:100%;max-width:100%}.mm-menu_position-top{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}.mm-menu_position-top{height:80vh;min-height:140px;max-height:880px}.mm-menu_position-bottom{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);top:auto}.mm-menu_position-bottom{height:80vh;min-height:140px;max-height:880px}.mm-wrapper_opening .mm-menu_position-bottom,.mm-wrapper_opening .mm-menu_position-front,.mm-wrapper_opening .mm-menu_position-top{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.mm-menu_shadow-page:after{-webkit-box-shadow:0 0 10px rgba(0,0,0,.3);box-shadow:0 0 10px rgba(0,0,0,.3);content:'';display:block;width:20px;height:120%;position:absolute;left:100%;top:-10%;z-index:100;-webkit-clip-path:polygon(-20px 0,0 0,0 100%,-20px 100%);clip-path:polygon(-20px 0,0 0,0 100%,-20px 100%);-webkit-box-shadow:var(--mm-shadow);box-shadow:var(--mm-shadow)}.mm-menu_shadow-page.mm-menu_position-right:after{left:auto;right:100%;-webkit-clip-path:polygon(20px 0,40px 0,40px 100%,20px 100%);clip-path:polygon(20px 0,40px 0,40px 100%,20px 100%)}.mm-menu_shadow-page.mm-menu_position-front:after{content:none;display:none}.mm-menu_shadow-menu{-webkit-box-shadow:0 0 10px rgba(0,0,0,.3);box-shadow:0 0 10px rgba(0,0,0,.3);-webkit-box-shadow:var(--mm-shadow);box-shadow:var(--mm-shadow)}.mm-menu_shadow-panels .mm-panels>.mm-panel{-webkit-box-shadow:0 0 10px rgba(0,0,0,.3);box-shadow:0 0 10px rgba(0,0,0,.3);-webkit-box-shadow:var(--mm-shadow);box-shadow:var(--mm-shadow)}.mm-menu_theme-white{--mm-color-border:rgba( 0,0,0, 0.1 );--mm-color-button:rgba( 0,0,0, 0.3 );--mm-color-text:rgba( 0,0,0, 0.7 );--mm-color-text-dimmed:rgba( 0,0,0, 0.3 );--mm-color-background:#fff;--mm-color-background-highlight:rgba( 0,0,0, 0.06 );--mm-color-background-emphasis:rgba( 0,0,0, 0.03 );--mm-shadow:0 0 10px rgba( 0,0,0, 0.2 )}.mm-menu_theme-dark{--mm-color-border:rgba( 0,0,0, 0.3 );--mm-color-button:rgba( 255,255,255, 0.4 );--mm-color-text:rgba( 255,255,255, 0.85 );--mm-color-text-dimmed:rgba( 255,255,255, 0.4 );--mm-color-background:#333;--mm-color-background-highlight:rgba( 255,255,255, 0.08 );--mm-color-background-emphasis:rgba( 0,0,0, 0.1 );--mm-shadow:0 0 20px rgba( 0,0,0, 0.5 )}.mm-menu_theme-black{--mm-color-border:rgba( 255,255,255, 0.25 );--mm-color-button:rgba( 255,255,255, 0.4 );--mm-color-text:rgba( 255,255,255, 0.75 );--mm-color-text-dimmed:rgba( 255,255,255, 0.4 );--mm-color-background:#000;--mm-color-background-highlight:rgba( 255,255,255, 0.2 );--mm-color-background-emphasis:rgba( 255,255,255, 0.15 );--mm-shadow:none}body.modal-open .mm-slideout{z-index:unset}
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/nowrap.module.css
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/nowrap.module.css	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/nowrap.module.css	(revision 38779)
@@ -0,0 +1,8 @@
+/**
+ * @file
+ * Utility class to prevent text wrapping.
+ */
+
+.nowrap {
+  white-space: nowrap;
+}
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/oswald.css
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/oswald.css	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/oswald.css	(revision 38779)
@@ -0,0 +1,1 @@
+.fontyourface h1, .fontyourface h2, .fontyourface h3, .fontyourface h4, .fontyourface h5, .fontyourface h6 { font-family: 'Oswald', Arial; font-style: normal; font-weight: normal; }
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/position-container.module.css
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/position-container.module.css	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/position-container.module.css	(revision 38779)
@@ -0,0 +1,8 @@
+/*
+ * @file
+ * Contain positioned elements.
+ */
+
+.position-container {
+  position: relative;
+}
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/progress.module.css
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/progress.module.css	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/progress.module.css	(revision 38779)
@@ -0,0 +1,51 @@
+/**
+ * @file
+ * Progress behavior.
+ *
+ * @see progress.js
+ */
+
+.progress {
+  position: relative;
+}
+.progress__track {
+  min-width: 100px;
+  max-width: 100%;
+  height: 16px;
+  margin-top: 5px;
+  border: 1px solid;
+  background-color: #fff;
+}
+.progress__bar {
+  width: 3%;
+  min-width: 3%;
+  max-width: 100%;
+  height: 16px;
+  background-color: #000;
+}
+.progress__description,
+.progress__percentage {
+  overflow: hidden;
+  margin-top: 0.2em;
+  color: #555;
+  font-size: 0.875em;
+}
+.progress__description {
+  float: left; /* LTR */
+}
+[dir="rtl"] .progress__description {
+  float: right;
+}
+.progress__percentage {
+  float: right; /* LTR */
+}
+[dir="rtl"] .progress__percentage {
+  float: left;
+}
+.progress--small .progress__track {
+  height: 7px;
+}
+.progress--small .progress__bar {
+  height: 7px;
+  background-size: 20px 20px;
+}
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/reset-appearance.module.css
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/reset-appearance.module.css	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/reset-appearance.module.css	(revision 38779)
@@ -0,0 +1,15 @@
+/*
+ * @file
+ * Utility class to remove browser styles, especially for button.
+ */
+
+.reset-appearance {
+  margin: 0;
+  padding: 0;
+  border: 0 none;
+  background: transparent;
+  line-height: inherit;
+  -webkit-appearance: none;
+  -moz-appearance: none;
+  appearance: none;
+}
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/resize.module.css
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/resize.module.css	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/resize.module.css	(revision 38779)
@@ -0,0 +1,21 @@
+/**
+ * @file
+ * Resizable textareas.
+ */
+
+.resize-none {
+  resize: none;
+}
+.resize-vertical {
+  min-height: 2em;
+  resize: vertical;
+}
+.resize-horizontal {
+  max-width: 100%;
+  resize: horizontal;
+}
+.resize-both {
+  max-width: 100%;
+  min-height: 2em;
+  resize: both;
+}
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/responsive_menu.css
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/responsive_menu.css	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/responsive_menu.css	(revision 38779)
@@ -0,0 +1,219 @@
+body.user-logged-in.toolbar-fixed.mm-wrapper_opening,
+body.user-logged-in.toolbar-fixed.mm-wrapper_opened {
+  padding-top: 0!important;
+}
+
+.responsive-menu-block-wrapper {
+  display: none;
+}
+
+.mm-page,
+.mm-wrapper_background body {
+  background-color: #ffffff;
+}
+
+.mm-wrapper_opening .toolbar-tray-open.toolbar-fixed.toolbar-vertical,
+.mm-opened .toolbar-tray-open.toolbar-fixed.toolbar-vertical {
+  margin-left: 0;
+}
+
+.mm-wrapper_opening .toolbar-tray-open.toolbar-fixed.toolbar-vertical .mm-page,
+.mm-opened .toolbar-tray-open.toolbar-fixed.toolbar-vertical .mm-page {
+  padding-left: 240px;
+  padding-left: 15rem;
+}
+
+.horizontal-menu {
+  position: relative;
+  margin-top: 0;
+  margin-right: 0;
+  margin-bottom: 0;
+  margin-left: 0;
+  padding: 0;
+  list-style: none;
+  width: 100%;
+}
+
+.horizontal-menu > li {
+  display: inline-block;
+  position: relative;
+}
+
+.horizontal-menu > li ul ul {
+  left: 13.75em;
+  top: 0;
+}
+
+.horizontal-menu ul .fly-left ul {
+  left: -13.75em;
+}
+
+.horizontal-menu > li > a {
+  display: block;
+  padding-top: 0.3em;
+  padding-right: 1em;
+  padding-bottom: 0.35em;
+  padding-left: 1em;
+  background-color: #fff;
+}
+
+.horizontal-menu > li ul {
+  position: absolute;
+  display: none;
+  top: 100%;
+  left: 0;
+  z-index: 99;
+  padding-top: 0;
+  padding-right: 0;
+  padding-bottom: 0;
+  padding-left: 0;
+  box-sizing: border-box;
+  width: 13.75em;
+  list-style: none;
+}
+
+.horizontal-menu li.sfHover > ul,
+.horizontal-menu li:hover > ul {
+  display: block;
+}
+
+.horizontal-menu li li {
+  position: relative;
+  float: left;
+  width: 100%;
+}
+
+.horizontal-menu > li > li:hover > ul,
+.horizontal-menu > li > li.sfHover > ul {
+  display: block;
+}
+
+.horizontal-menu > li li > a {
+  display: block;
+  position: relative;
+  padding-top: 0.25em;
+  padding-right: 1em;
+  padding-bottom: 0.25em;
+  padding-left: 1em;
+  text-transform: none;
+}
+
+.off-canvas-wrapper {
+  display: block;
+}
+
+.no-js .off-canvas-wrapper {
+  display: none;
+}
+
+.responsive-menu-toggle {
+  display: inline-block;
+}
+
+.responsive-menu-toggle-icon {
+  box-sizing: border-box;
+  display: block;
+  width: 44px;
+  height: 35px;
+  z-index: 4;
+  margin-top: 0;
+  position: relative;
+}
+
+.no-js .responsive-menu-toggle-icon {
+  display: none;
+}
+
+.responsive-menu-toggle-icon span.label {
+  display: block;
+  position: absolute;
+  font-size: 17px;
+  text-transform: uppercase;
+  top: 2px;
+  left: 40px;
+  color: #fff;
+}
+
+.responsive-menu-toggle-icon:before,
+.responsive-menu-toggle-icon:after,
+.responsive-menu-toggle-icon span.icon {
+  background: #fff;
+  content: '';
+  display: block;
+  width: 20px;
+  height: 3px;
+  position: absolute;
+  top: 0;
+  left: 13px;
+  border-radius: 2px;
+}
+
+.responsive-menu-toggle-icon:before {
+  top: 8px;
+}
+
+.responsive-menu-toggle-icon span.icon {
+  top: 14px;
+}
+
+.responsive-menu-toggle-icon:after {
+  top: 20px;
+}
+
+.responsive-menu-toggle-icon:before,
+.responsive-menu-toggle-icon:after,
+.responsive-menu-toggle-icon span.icon {
+  transition: none 0.4s ease-out 0.1s;
+  transition-property: -webkit-transform, top, bottom, left, opacity;
+  transition-property: transform, top, bottom, left, opacity;
+}
+
+.mm-wrapper_opening .responsive-menu-toggle-icon:before,
+.mm-wrapper_opening .responsive-menu-toggle-icon:after {
+  top: 14px;
+}
+
+.mm-wrapper_opening .responsive-menu-toggle-icon span.icon {
+  left: -25px;
+  opacity: 0;
+}
+
+.mm-wrapper_opening .responsive-menu-toggle-icon:before {
+  -webkit-transform: rotate(45deg);
+  -ms-transform: rotate(45deg);
+  transform: rotate(45deg);
+}
+
+.mm-wrapper_opening .responsive-menu-toggle-icon:after {
+  -webkit-transform: rotate(-45deg);
+  -ms-transform: rotate(-45deg);
+  transform: rotate(-45deg);
+}
+
+#mm-blocker {
+  background: rgba(0, 0, 0, 0);
+}
+.mm-wrapper_opening #mm-blocker {
+  background: rgba(0, 0, 0, 0.2);
+  transition: background 1s ease 0.3s;
+}
+.mm-wrapper_opening #page {
+  border-left: 1px solid #ccc;
+}
+
+.mm-panel a {
+  border-bottom: none;
+}
+
+ul.menu.mm-listview a.is-active {
+  color: inherit;
+}
+
+.mm-panel a:hover {
+  border: none;
+}
+
+ul.menu.mm-listview {
+  padding-left: 0;
+  margin-left: 0;
+}
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/responsive_menu_breakpoint.css
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/responsive_menu_breakpoint.css	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/responsive_menu_breakpoint.css	(revision 38779)
@@ -0,0 +1,1 @@
+@media all and (min-width: 1000px) and (max-width: 1299px) { nav.responsive-menu-block-wrapper { display: block; } .responsive-menu-toggle-wrapper.responsive-menu-toggle { display: none; } }
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/sticky-header.module.css
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/sticky-header.module.css	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/sticky-header.module.css	(revision 38779)
@@ -0,0 +1,13 @@
+/**
+ * @file
+ * Table header behavior.
+ *
+ * @see tableheader.js
+ */
+
+table.sticky-header {
+  z-index: 500;
+  top: 0;
+  margin-top: 0;
+  background-color: #fff;
+}
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/style.css
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/style.css	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/style.css	(revision 38779)
@@ -0,0 +1,715 @@
+:root {
+	--content-height: 88vh;
+	--header-height: 12vh;
+	--primary-colour: #FCC100;
+	--secondary-colour: #12264A;
+	--menu-hover: #E4E4E4;
+}
+
+* {box-sizing: border-box}
+
+a {color: #003FC5; text-decoration: none; transition: 0.3s}
+blockquote {border-left: 10px solid var(--primary-colour); font-style: italic; padding-left: 20px}
+body {background: #FFF; color: #555; font-family: Roboto; font-size: 18px; margin: 0; padding: 0; width: 100%}
+/* h1, h2, h3, h4 {font-family: Roboto Slab} */ /* **** GS3 */
+h1 {color: var(--primary-colour); font-size: 42px; margin: 30px 0}
+h2 {color: var(--primary-colour); font-size: 34px; margin: 40px 0 10px}
+h2.center-rule {display: flex; align-items: center; border-bottom: 2px solid #BBB; color: #999; font-size: 40px; font-weight: 300; justify-content: center; margin: 80px auto 50px; text-align: center; text-transform: uppercase}
+h3 {color: var(--primary-colour); font-size: 28px; margin-bottom: 0}
+hr {color: #EEE}
+p {line-height: 175%} /* GS3, changed from 150% to 175% on require of ThomFong */
+span.blockquote-source {display: block; font-style: normal; font-size: 16px; font-weight: bold; text-align: right}
+span.intro {color: var(--secondary-colour); font-size: 22px; font-weight: bold}
+strong {font-weight: bold}
+
+#block-h360-sikyon-content li a:hover, p a:hover {border-bottom: 2px solid #003FC5; transition: 0.1s}
+#block-h360-sikyon-content li {line-height: 150%; margin: 10px 0}
+#block-h360-sikyon-content ul {list-style-type: square}
+#block-h360-sikyon-content .theme-button a {border-style: solid; border-width: 2px; text-decoration: none}
+#block-h360-sikyon-content .theme-button a:hover {color: #FFF}
+#block-h360-sikyon-content .theme-button svg {display: none}
+
+svg.ext, svg.mailto {padding: 0.2em 0.2em 0 0.1em; height: 23px; width: 23px}
+
+/* DRUPAL STYLES */
+#block-h360-sikyon-local-tasks {border-color: #E4E4E4; border-style: solid; border-width: 2px 0; margin-bottom: 30px; width: 100%}
+#block-h360-sikyon-local-tasks > ul {list-style-type: none; margin: 0; padding: 0}
+#block-h360-sikyon-local-tasks > ul li {display: inline-block}
+#block-h360-sikyon-local-tasks > ul li a {display: block; color: #666; padding: 10px 20px}
+#block-h360-sikyon-local-tasks > ul li a:hover {background: #E6E6E6}
+
+.eu-cookie-compliance-banner {padding: 10px 0}
+.eu-cookie-compliance-banner .popup-content {display: flex; align-items: center; justify-content: space-between}
+.eu-cookie-compliance-banner #popup-buttons {float: none; margin: 0}
+.eu-cookie-compliance-banner #popup-buttons button {border: 0; border-radius: 0; box-shadow: 0 0; font-size: 16px; font-weight: normal; margin: 5px 0; padding: 10px; text-shadow: 0 0}
+.eu-cookie-compliance-banner #popup-buttons button.agree-button {background: #FFF; border: 2px solid #FFF; color: #555}
+.eu-cookie-compliance-banner #popup-buttons button.decline-button {background: none; border: 2px solid #FFF; color: #FFF; font-family: inherit}
+.eu-cookie-compliance-banner #popup-buttons button:hover {background: var(--primary-colour); color: #FFF}
+.eu-cookie-compliance-banner #popup-text {float: none; margin: 0}
+.eu-cookie-compliance-banner h2 {font-family: adelle-sans, arial !important}
+
+div[data-drupal-messages] {background: #E2FDE5; border: 2px solid #9AC69E; border-radius: 10px; color: #587C5B; margin-bottom: 20px; padding: 10px 20px}
+
+nav.pager {display: flex; border-top: 1px dashed #DDD; justify-content: center; margin-top: 20px; padding-top: 5px; width: 100%}
+nav.pager li {display: block; float: left}
+nav.pager li[role="presentation"] {cursor: not-allowed}
+nav.pager li a, nav.pager li[role="presentation"] {display: block; border: 1px solid #E4E4E4; margin-left: -1px !important; padding: 10px 15px}
+nav.pager li.is-active a {background: var(--primary-colour); border-color: var(--primary-colour); color: #FFF}
+nav.pager li:hover:not(.is-active) a {background: #F4F4F4}
+nav.pager ul {list-style-type: none; padding: 0}
+
+/* GENERAL STYLES */
+.theme-button a, .theme-button.js {display: block; float: left; border: 2px solid var(--primary-colour); color: var(--primary-colour); cursor: pointer; padding: 10px 20px; user-select: none}
+.theme-button a:active, .theme-button a:hover {background: var(--primary-colour); color: #FFF}
+.theme-button.full-width a {text-align: center; width: 100%}
+.theme-button.in-text {display: flex}
+.theme-button.margins {display: flex; margin: 20px 0}
+.theme-button.twitter a {background-image: url("/sites/all/images/icon-twitter.svg"); background-repeat: no-repeat; background-position: 10px center; background-size: 25px 25px; border-color: #1DA1F2; color: #1DA1F2; padding-left: 45px}
+.theme-button.twitter a:hover {background: #1DA1F2; color: #FFF}
+.theme-button.white a {border-color: #FFF; color: #FFF}
+.theme-button.white a:hover {background: #FFF; color: var(--primary-colour) !important}
+
+.theme-table table {border-collapse: separate; border-spacing: 5px}
+.theme-table table td {padding: 10px}
+
+.view-content .admin-links {position: absolute; right: 5px; top: 5px; display: flex; border: 1px solid #DDD; font-size: 14px; z-index: 1}
+.view-content .admin-links a {background: #FFF; color: var(--secondary-colour-sea) !important; padding: 5px 10px}
+.view-content .admin-links a:hover {background: #AAA; color: #FFF !important}
+
+.views-element-container .admin-buttons {display: flex; flex-wrap: wrap; background: #DDD; justify-content: flex-start; margin-bottom: 30px; padding: 10px 20px; width: 100%}
+.views-element-container .admin-buttons .admin-button a {display: flex; background: var(--secondary-colour); border-radius: 30px; color: #FFF; margin-right: 20px; padding: 10px 30px; transition: 0.3s}
+.views-element-container .admin-buttons .admin-button a:hover {background: var(--primary-colour)}
+
+.views-exposed-form {background: #F4F4F4; margin-bottom: 20px; padding: 20px}
+.views-exposed-form .form-checkboxes.form--inline .form-item {margin-right: 20px}
+.views-exposed-form .fieldset-legend, .views-exposed-form label {display: block; color: var(--secondary-colour)}
+
+/* HEADER STYLES */
+#header-content {position: relative;
+		 background: #FFF;
+		 /* Thin down the thick border-bottom line for GS3 embedding */
+		 /* border-bottom: 10px solid var(--secondary-colour); */
+		 border-bottom: 10px solid var(--secondary-colour); /* had made it 2px to fit in with The-Willow design, but main site is 10px */
+		 z-index: 3}
+#header {position: relative}
+#header .centered {position: relative; display: flex; justify-content: space-between}
+#banner {position: relative; z-index: 1}
+#banner video {height: auto; width: 100%}
+#banner .banner-title {position: absolute; bottom: 0; left: 0; border-bottom: 5px solid #E77A0B; width: 100%; z-index: 100}
+#banner .banner-title h1 {display: block; float: right; background: var(--primary-colour); color: #FFF; margin: 0; padding: 20px}
+.banner img {height: auto; width: 100%}
+.flexslider {border: 0; margin: 0}
+.flexslider .overlay {background: #5D918A; color: #FFF; padding: 20px}
+.flexslider .overlay .theme-button a {background: rgba(255,255,255,0.3)}
+.flexslider .overlay .theme-button {margin-top: 15px}
+.flexslider .overlay .theme-button a:hover {background: rgba(255,255,255,1); color: var(--primary-colour)}
+.flexslider .overlay h2 {color: #FFF; font-size: 40px; line-height: 100%; margin-top: 0}
+.flexslider .overlay-content {float: right; color: #FFF; font-size: 55px; font-weight: 500; line-height: 130%; padding: 0 15px 50px 0; text-align: right; text-shadow: 0 0 5px #000, 0 0 20px #000; text-transform: uppercase; width: 35%}
+.flexslider .overlay-logo {display: flex; align-items: center; flex-basis: 30%; padding: 10px 20px}
+.flexslider .overlay-logo a {width: 100%}
+.flexslider .overlay-logo.uoy {padding: 10px 40px}
+.flex-direction-nav a {overflow: inherit !important}
+.flex-direction-nav a::before {color: #FFF !important; text-shadow: 0 0 10px rgba(0, 0, 0, 1) !important}
+
+.banner > .view-content {z-index: 5}
+.banner > .views-element-container {z-index: 10}
+.homepage-content {position: relative; background: var(--primary-colour); z-index: 5}
+.homepage-content:before {position: absolute; content: ''; background: var(--primary-colour); width: 100%; height: 100%; top: 0; left: 0; transform: skewY(-2deg); transform-origin: 0 0; z-index: -1}
+.homepage-content h2 {color: #FFF; font-size: 60px; font-weight: bold; margin-top: -30px}
+.homepage-content p {font-family: Oswald; font-size: 30px; margin: 0}
+.homepage-content .banner-content {float: right; color: #FFF; padding: 0 20px 20px 0; text-align: right; width: 700px}
+.homepage-content .centered {justify-content: flex-end !important}
+.homepage-content .view-content {position: relative; background: url(extra-css-images/sl-logo-graphic-dark.svg) no-repeat var(--primary-colour); background-position: right top; background-size: 120% 300%; margin-top: -10px; z-index: 5}
+
+#header-background {background: #FFF; width: 100%}
+#logo-background {position: absolute; background: #FFF; border: 10px solid var(--secondary-colour); width: 320px; height: 215px; z-index: 4}
+#logo-background-wrap {position: absolute; top: 0; left: 0; width: 100%; z-index: 2}
+#block-h360-sikyon-branding {position: absolute; left: 10px; top: 12px; background: #FFF; padding: 0 20px; width: 300px}
+#block-subpage-logo img {display: block; width: 100%}
+
+/* CONTENT STYLES */
+#main-container #content > div {display: flex; flex-direction: column; padding: 30px 20px; min-height: 500px; width: 100%}
+
+/* Contact form */
+.contact-form {float: left; background: #F4F4F4; padding: 20px; width: 100%}
+.contact-form label:not([class^="option"]) {float: left; background: #DDD; margin-right: 10px; padding: 6px 10px; width: 180px}
+.contact-form #edit-actions .button {background: var(--primary-colour); border: 0; border-radius: 30px; color: #FFF; cursor: pointer; font-size: 18px; margin-top: 20px; padding: 10px 30px}
+.contact-form .form-item {float: left; margin: 5px 0; width: 100%}
+.contact-form .form-email, .contact-form .form-text, .contact-form .text-full {font-size: 18px; padding: 8px 10px 7px}
+.contact-form .captcha, .contact-form #edit-actions {float: left; width: 100%}
+
+/* Discover */
+.authors .view-container {display: flex; flex-wrap: wrap}
+.authors.article .author {display: flex; background: #F4F4F4; padding: 20px; width: 100%}
+.authors.article .author-bio {display: none}
+.authors.article .author-details {padding-left: 20px}
+.authors.article .author-name {color: var(--secondary-colour); font-size: 28px}
+.authors.article .author-role {color: #888; font-size: 24px}
+.authors.article .theme-button {margin-top: 10px}
+.discover .feed-item {background: #F4F4F4}
+
+#block-discover-authors-article {border-top: 1px solid #DDD; margin-top: 30px; padding-top: 30px}
+#block-discover-authors-article h2 {margin-top: 0}
+
+/* Events - feed */
+.events .event {position: relative; background: var(--secondary-colour); flex-direction: column; padding: 20px}
+.events .event h3 {margin-top: 10px}
+.events .event-category {color: #FFF; font-family: Oswald; font-size: 26px; padding-bottom: 5px}
+.events .event-date-loc {border-color: #FFF; border-style: solid; border-width: 1px 0; margin: 8px 0; padding: 8px 0}
+.events .event-details {color: #FFF}
+.events .event-image img {height: auto; width: 100%}
+
+[id^="views-exposed-form-"] fieldset {display: block; border: 0; font-size: 20px; margin: 5px 0; padding: 0}
+[id^="views-exposed-form-"] fieldset legend, .form-item-keywords label {display: block; float: left; background: #DDD; padding: 10px; width: 23%}
+[id^="views-exposed-form-"] fieldset .fieldset-wrapper {display: flex; float: left; margin-left: 2%; width: 75%}
+[id^="views-exposed-form-"] fieldset .fieldset-wrapper input:not([type="checkbox"]):not([type="radio"]) {margin: 0 20px 0 0; width: 180px}
+[id^="views-exposed-form-"] input[type="text"] {border-color: #DDD; border-style: solid; font-size: 20px; padding: 8px 10px}
+[id^="views-exposed-form-"] label[for^="edit-date-"] {display: none}
+[id^="views-exposed-form-"] > .form-item:not(.form-wrapper) {display: flex; margin: 5px 0}
+[id^="views-exposed-form-"] > .form-item input:not([name="status"]) {display: flex; float: left; margin-left: 2%}
+[id^="views-exposed-form-"] > .form-item label:not([for^="edit-category"]) {background: #DDD; font-size: 20px; padding: 10px; flex-basis: 23%}
+[id^="views-exposed-form-"] .form-checkboxes {display: flex; flex-wrap: wrap; width: 100%}
+[id^="views-exposed-form-"] .form-checkboxes > .form-item {display: flex; padding: 10px 10px 10px 0; width: 33.333%}
+[id^="views-exposed-form-"] .form-checkbox {padding: 3px}
+[id^="views-exposed-form-"] .form-checkbox:checked {background: #FF0000}
+[id^="views-exposed-form-"] .form-checkbox:checked + label {background: var(--primary-colour); color: #FFF}
+[id^="views-exposed-form-"] .form-checkboxes > .form-item {font-size: 16px}
+[id^="views-exposed-form-"] [id^="edit-actions"] {display: flex; border-top: 1px solid #DDD; margin-top: 10px; padding-top: 10px}
+[id^="views-exposed-form-"] [id^="edit-actions"] input {display: flex; background: none; border: 2px solid var(--primary-colour); color: var(--primary-colour); cursor: pointer; font-size: 20px; margin-right: 20px; padding: 10px 20px; transition: 0.3s}
+[id^="views-exposed-form-"] #edit-submit-events:hover {background: var(--primary-colour); color: #FFF}
+
+/* Events - page */
+.date-divider {display: inline-block; background: var(--primary-colour); margin: 0 10px; height: 20px; width: 5px}
+#event-details {display: flex; align-items: center; border-color: #DDD; border-style: solid; border-width: 2px 0; font-size: 20px; margin: 15px 0; padding: 10px 0}
+#event-image img {height: auto; width: 100%}
+#event-subtitle {color: var(--secondary-colour); font-size: 28px}
+
+/* Feeds */
+.feed-container.dividers .feed-item:not(:last-child) {border-bottom: 1px dashed #CCC; padding-bottom: 30px}
+.feed-container .feed-details .theme-button {margin-top: 10px}
+.feed-item {position: relative; display: flex; flex-direction: column; margin-bottom: 30px; padding: 20px}
+.feed-item.dividers {border-bottom: 1px dashed #DDD; padding-bottom: 30px}
+.feed-item h3 {margin: 5px 0}
+.feed-item img {height: auto; width: 100%}
+.feed-item p {margin: 0}
+.feed-item .feed-author {display: flex; flex-wrap: wrap; color: var(--secondary-colour); font-size: 20px; margin-bottom: 5px}
+.feed-item .feed-author .author:last-child:before {content: " and "}
+.feed-item .feed-author .author:first-child {padding: 0 5px}
+.feed-item .feed-author .author:first-child:before {content: ""}
+.feed-item .feed-body {line-height: 150%}
+.feed-item .feed-date {color: #888}
+.feed-item .feed-subtitle {color: #888; font-size: 20px; margin-bottom: 5px}
+
+/* Homepage */
+.path-frontpage #block-h360-sikyon-content {display: none}
+
+/* Images */
+#block-h360-sikyon-content [class*="align-"] {margin: 30px 0}
+#block-h360-sikyon-content [class*="align-"] img {display: flex}
+#block-h360-sikyon-content figcaption {background: #F4F4F4; padding: 5px 10px; font-size: 16px; margin-top: 3px}
+
+/* News */
+.page-node-type-news h1 {margin-bottom: 10px}
+#news-date {border-bottom: 2px solid #DDD; color: #888; font-size: 24px; padding-bottom: 10px}
+#news-image {float: right; margin: 1em 0 1em 30px}
+#social-media-icons {display: flex; justify-content: space-around}
+#social-media-icons img {height: 50px; width: 50px}
+#twitter-feed {width: 100%}
+
+/* Partners */
+#partner-logos {display: flex; border-top: 2px solid #EEE; flex-wrap: wrap; justify-content: space-between; width: 100%}
+.partner-logo {display: flex; align-items: center; justify-content: center; margin: 20px 0; width: 28%}
+.partner-logo img {height: auto; width: auto; max-height: 200px; max-width: 100%}
+
+/* Publications */
+.publications {border-top: 1px solid #DDD; margin-top: 30px; padding-top: 50px}
+.publications .feed-title {color: var(--primary-colour); font-size: 28px}
+.publication-download {display: flex; margin-top: 20px}
+
+#publication-authors {border-color: #DDD; border-style: solid; border-width: 2px 0; font-size: 22px; padding: 10px 0}
+#publication-date {color: #888; font-size: 22px; margin-bottom: 15px}
+#publication-pretitle {color: #888; font-size: 22px}
+
+/* Social media */
+.social-icons {display: flex}
+.social-icons a {display: flex; margin: 0 10px}
+.social-icons a img {height: auto; width: 100%}
+
+/* Team */
+.team h3 {flex-basis: 100%; font-size: 34px; text-transform: uppercase}
+.team .view-content {display: flex; align-items: stretch; flex-wrap: wrap}
+.team .member {position: relative; display: flex; flex-direction: column; background: #F4F4F4}
+.team .member h2 {margin: 0}
+.team .member img {height: auto; width: 100%}
+.team .member p {margin: 0 0 10px 0}
+.team .member .team-bio {display: none}
+.team .member .team-details {padding: 10px}
+.team .member .team-role {font-family: oswald; font-size: 22px}
+.team .member .theme-button {margin-top: 10px}
+
+/* Venues */
+.venues .view-content {display: flex; align-items: stretch; flex-wrap: wrap; justify-content: space-between}
+.venues .venue {position: relative; background: var(--primary-colour); margin: 30px 0}
+.venues .venue h2 {color: #FFF; margin-top: 0}
+.venues .venue img {display: block; height: auto; width: 100%}
+.venues .venue-details {display: flex; color: #FFF; flex-direction: column; padding: 20px 20px 190px 20px}
+.venues .venue-details p {margin: 0 0 10px}
+.venues .venue-map {position: absolute; bottom: 10px; left: 0; height: 150px; width: 100%}
+
+
+/* RIGHT REGION */
+#block-addtoany {background: #FAFAFA; border: 2px solid #E4E4E4; margin-top: 30px; padding: 20px}
+#block-addtoany p {margin: 0}
+
+#right nav {background: #F4F4F4; padding: 20px}
+#right nav h2 {margin-bottom: 20px}
+#right nav > ul, #right nav > ul ul {list-style-type: none; margin: 0; padding: 0}
+#right nav > ul a {display: block; color: #444; font-size: 20px; padding: 10px}
+#right nav > ul a:hover {background: #E4E4E4}
+#right nav > ul a.is-active {background: var(--primary-colour); color: #FFF}
+#right nav > ul ul a {font-size: 16px; padding-left: 30px}
+
+
+/* TRAIL MANAGEMENT */
+.trail-admin .trail {margin-top: 50px}
+.trail-admin .trail-details {display: flex; align-items: center; background: var(--primary-colour); padding: 5px}
+.trail-admin .trail-details h2 {color: #FFF; margin: 0 0 0 30px}
+.trail-admin .trail-details img {display: block}
+.trail-admin .trail-details .trail-buttons {display: flex; gap: 20px; margin: 0 30px 0 auto}
+
+.trail-admin table {border-collapse: collapse; font-size: 16px; width: 100%}
+.trail-admin td {padding: 8px 10px}
+.trail-admin td:first-child {width: 50%}
+.trail-admin tr:not(:last-child) {border-bottom: 1px solid #DDD}
+
+
+/* FOOTER STYLES */
+#footer-content {position: relative; margin-top: 50px; padding: 40px 15px}
+#footer-content .centered {position: relative; display: flex}
+#footer-content nav > ul a {display: block; color: #888; padding: 5px 15px}
+#footer-content nav > ul > li:not(:last-child) {border-bottom: 1px solid #DDD; margin-right: 20px}
+#footer-content nav > ul a:hover {background: #E6E6E6}
+#footer-content nav > ul {list-style-type: none; margin: 0; padding: 0}
+#block-footer-mainnav, #block-footer-menu {float: left}
+
+#post-footer-content > .centered {color: #AAA; padding: 8px 15px}
+#post-footer-content > .centered > div:not([class]) {display: flex; justify-content: space-between}
+#block-copyright-footer {font-size: 16px}
+#block-h360-details > div:not([class]) {display: flex; align-items: center; font-size: 16px; text-transform: uppercase}
+#block-h360-details a {line-height: 100%}
+#block-h360-details img {display: block; margin: -2px 0 0 6px; height: 20px; width: auto}
+
+/* TEASERS */
+#block-teasers-fullwidth {margin: 50px 0 30px}
+#block-teasers-fullwidth .centered {z-index: 2}
+#block-teasers-fullwidth .teaser .teaser-details:before {background: #e9b303}
+#block-teasers-fullwidth .teaser-details {color: #FFF; padding: 0 50% 0 15px}
+#block-teasers-fullwidth .teaser-details a {color: #FFCC33}
+#block-teasers-fullwidth .teaser-details h2 {color: #FFF; margin: 0 0 20px}
+#block-teasers-fullwidth .teaser-details li {margin: 10px 0}
+#block-teasers-fullwidth .teaser-image img {display: block; height: auto; width: 100%}
+#block-teasers-fullwidth .theme-button a {border-color: #FFF; color: #FFF; margin-top: 10px}
+#block-teasers-fullwidth .theme-button a:hover {background: #FFF; color: var(--primary-colour)}
+
+#block-teasers-standard {margin: 30px 0}
+#block-teasers-standard .teasers .view-content {display: flex; flex-wrap: wrap; justify-content: space-between}
+#block-teasers-standard .teasers .teaser {position: relative; flex-basis: 31.33%; margin: 20px 0}
+#block-teasers-standard .teasers .teaser:hover img {transform: scale(1.1)}
+#block-teasers-standard .teasers .teaser h3 {border-bottom: 3px solid var(--primary-colour); font-size: 34px; margin: 10px 0; padding-bottom: 5px}
+#block-teasers-standard .teasers .teaser img {display: block; height: auto; transition: 0.5s; width: 100%}
+#block-teasers-standard .teasers .teaser-image {overflow: hidden}
+
+.subpage #block-teasers-standard .teasers .teaser {flex-basis: 48%}
+
+/* TRAILS */
+#block-trails-admin {margin-bottom: 40px}
+.trailpoint-table td {padding: 10px}
+.map-marker .marker-text {white-space: nowrap}
+
+#mm-0 {height: 100%}
+.page-node-type-trail, .page-node-type-trail #content-container, .page-node-type-trail #content-container > div, .page-node-type-trail .dialog-off-canvas-main-canvas, .page-node-type-trail #main-container .centered {height: 100%}
+
+.trails .view-content {display: flex; align-items: stretch; flex-wrap: wrap; justify-content: space-around; width: 100%}
+.trails .trail {position: relative; display: flex; flex-direction: column; background: #F4F4F4; margin: 20px 0}
+.trails .trail h2 {margin-top: 0}
+.trails .trail img {display: block; height: auto; width: 100%}
+.trails .trail .theme-button a {display: flex; justify-content: center; width: 100%}
+.trails .trail-body {padding: 20px}
+.trails .trail-button a {display: block; background: var(--primary-colour); color: #FFF; font-size: 26px; padding: 20px; text-align: center; text-transform: uppercase}
+
+.trailpoints .view-content {display: flex; flex-wrap: wrap; justify-content: flex-start}
+.trailpoints .trailpoint {display: flex}
+.trailpoints .trailpoint [id^="trailpoint-"] {background: #F4F4F4; cursor: pointer}
+.trailpoints .trailpoint a {width: 85%}
+.trailpoints .trailpoint img {display: block; height: auto; width: 100%}
+.trailpoints .trailpoint .result-counter {display: flex; background: var(--primary-colour); align-items: center; color: #FFF; font-size: 30px; justify-content: center; width: 15%}
+.trailpoints .trailpoint .trailpoint-title {color: var(--primary-colour); font-size: 20px; padding: 5px 10px}
+.trailpoints .trailpoint-image {display: flex; align-items: stretch}
+
+#infoPanelContainer {position: absolute; top: 0; left: 0; display: flex; align-items: center; justify-content: center; height: 100%; width: 100%; z-index: 3005}
+#infoPanelContainer h2 {margin: 0}
+#infoPanelContainer h3 {color: var(--primary-colour); font-size: 26px; margin: 30px 0 -10px}
+#infoPanelContainer #infoPanel {display: flex; flex-direction: column; background: #FFF; box-shadow: 0 0 10px 2px #000; overflow: hidden; text-align: left; width: 100%; max-width: 500px}
+#infoPanelContainer #infoPanel-body {padding: 10px 20px}
+#infoPanelContainer #infoPanel-buttons {display: flex; background: #FFF; border-bottom: 2px solid var(--primary-colour); flex-basis: 10%}
+#infoPanelContainer .infoPanel-button {display: flex; align-items: center; cursor: pointer; flex-grow: 1; justify-content: center; transition: 0.8s}
+#infoPanelContainer .infoPanel-button.active {background: var(--primary-colour); color: #FFF}
+#infoPanelContainer #infoPanel-close {display: flex; align-items: center; background: var(--primary-colour); color: #FFF; cursor: pointer; flex-basis: 10%; font-size: 24px; justify-content: center; padding: 20px; text-align: center; text-transform: uppercase}
+#infoPanelContainer #infopanel-images {position: relative; width: 100%}
+#infoPanelContainer #infopanel-images .infopanel-image {position: absolute; left: 0; top: 0}
+#infoPanelContainer #infopanel-images img {display: block; pointer-events: none; height: auto; width: 100%}
+#infoPanelContainer #infopanel-images h2 {position: absolute; bottom: 0; left: 0; display: block; background-image: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,1)); color: #FFF; font-size: 32px; line-height: 120%; margin: 0; padding: 20px 20px 10px; text-transform: uppercase; width: 100%}
+#infoPanelContainer #infopanel-listen {display: flex; align-items: center; cursor: pointer; font-size: 26px; margin-bottom: 30px}
+#infoPanelContainer #infopanel-listen img {margin-right: 10px; height: auto; width: 60px}
+#infoPanelContainer #infoPanel-readmore {padding: 20px}
+#infoPanelContainer #infoPanel-readmore [class^="align-"] {float: none; margin: 0; width: 100%}
+#infoPanelContainer #infoPanel-readmore [class^="align-"] img {height: auto; width: 100%}
+#infoPanelContainer #infoPanel-video iframe {height: 300px; width: 100%}
+#infoPanelContainer #infoPanel-video .video-desc {padding: 20px}
+#infoPanelContainer #infoPanel-scrollpane {position: relative; background: #FFF; height: 80%; overflow-y: scroll}
+
+#infoPanelContainer .linked-items {border-top: 1px solid #E4E4E4; margin-top: 30px; padding-top: 30px}
+#infoPanelContainer .linked-items h2 {margin: 0 0 20px 0}
+#infoPanelContainer .linked-items img {display: block; height: auto; width: 100%}
+#infoPanelContainer .linked-items .theme-button {display: flex}
+
+#infoPanelContainer .video-container {position: relative; padding-bottom: 56.25%; height: 0}
+#infoPanelContainer .video-container iframe {position: absolute; top: 0; left: 0; height: 100%; width: 100%}
+
+/* USER LOGIN FORM */
+#user-login-form .form-item {margin-bottom: 15px}
+#user-login-form .form-item .description {font-size: 14px; margin-top: 5px}
+#user-login-form .form-item input {font-size: 22px; padding: 5px 10px; max-width: 100%}
+
+
+/* ULTRA-NARROW */
+/* ------------ */
+@media only screen and (max-width: 399px) {
+  .feed-item {flex-direction: column}
+  
+  #block-footer-logos {margin-top: 20px}
+}
+
+
+/* NARROW */
+/* ------ */
+@media only screen and (max-width: 599px) {
+	h2.center-rule {margin: 50px auto}
+	
+	#block-banners-homepage {display: none}
+	.flexslider {position: relative}
+
+  /* Contact */
+  .contact-form .form-item input, .contact-form .form-item textarea {width: 100%}
+  
+  /* Events */
+  .events .event {margin: 30px 0}
+  .events .event .theme-button {display: flex}
+  
+  /* Feeds */
+  .feed-item {margin: 30px 0}
+  .team .feed-item {flex-direction: column}
+	.team .feed-item .feed-image {float: right; margin: 5px 0 10px 10px}
+	
+	/* Footer */
+	#footer-container nav {display: none}
+	#footer-content .centered > div {display: flex; flex-wrap: wrap}
+	#post-footer-content .centered > div {flex-direction: column; gap: 10px}
+	
+	/* Header */
+	#block-banners-homepage-video {display: none}
+	.flexslider .centered {flex-direction: column}
+	.banner-content {padding: 10px 20px 0 20px}
+	.homepage-content h2 {margin-top: 10px; font-size: 12vw}
+	.homepage-content p {font-size: 26px}
+	
+	/* Images */
+	.align-left, .align-right {float: none; margin: 0; text-align: center; width: 100%}
+	.align-left img, .align-right img {margin: auto}
+
+	/* Team */
+	.team .member {flex-basis: 100%; margin: 20px 0}
+	.team .member img {margin: auto; height: auto; width: 300px}
+
+	/* Teasers */
+	#block-teasers-fullwidth .teaser {flex-direction: column}
+	#block-teasers-fullwidth .teaser-details {padding: 20px}
+  #block-teasers-standard .teasers .view-content {flex-direction: column}
+}
+
+/* NARROW - MEDIUM */
+/* --------------- */
+@media only screen and (max-width: 999px) {
+	#block-breadcrumbs {display: none}
+	#block-main-menu {display: none}
+	#block-news-feed footer {border-top: 1px solid #DDD; margin-top: 30px; padding-top: 30px}
+	#twitter-feed {display: none}
+	
+	/* Events */
+  [id^="views-exposed-form-"] fieldset {width: 100%}
+  [id^="views-exposed-form-"] fieldset legend, [id^="views-exposed-form-"] .form-item-keywords > label {width: 100%}
+  [id^="views-exposed-form-"] .form-checkboxes {display: block}
+  [id^="views-exposed-form-"] .form-checkboxes .form-item {width: 100%}
+  [id^="views-exposed-form-"] .form-item-keywords > input {width: 73%}
+  #edit-date-wrapper > .fieldset-wrapper {display: flex; justify-content: space-between; margin: 0; width: 100%}
+  #edit-date-wrapper > .fieldset-wrapper > .form-item {flex-basis: 45%; margin: 5px 0}
+  #edit-date-wrapper > .fieldset-wrapper > .form-item input {width: 100%}
+  
+  #event-details {flex-direction: column; align-items: flex-start}
+  #event-details .date-divider {margin: 10px 0; height: 3px; width: 80px}
+  
+	/* Footer */
+	#footer-content .centered {justify-content: center}
+	#footer-content .centered > div {display: flex; flex-wrap: wrap; justify-content: space-around}
+  
+  /* Header */
+  #header-content .centered > div:first-child {max-width: 70%}
+  #header-content .centered > div:nth-child(2) {max-width: 30%}
+  #block-banners-subpage {display: none}
+  #block-subpage-logo {margin: 10px}
+  #block-banners-subpage-desktop, #logo-background-wrap {display: none}
+ 	.flexslider .centered .overlay {order: -1}
+  .path-frontpage #block-h360-sikyon-branding {display: none}
+  
+	.social-icons {justify-content: center; padding-top: 30px}
+	.social-icons a {width: 60px}
+	
+	/* Menu */
+	#block-menu-icon {display: flex; align-items: center; padding: 15px; height: 100%}
+	#block-menu-icon .icon, #block-menu-icon a:after, #block-menu-icon a:before {background: var(--primary-colour)}	
+	#block-menu-icon .label {display: none; color: var(--primary-colour)}
+	.responsive-menu-toggle-icon:before, .responsive-menu-toggle-icon:after, .responsive-menu-toggle-icon span.icon {left: 5px; height: 5px; width: 30px}
+	.responsive-menu-toggle-icon:after {top: 5px}
+	.responsive-menu-toggle-icon:before {top: 23px}
+	.menu-item--_6730d2b-fc42-4e26-81b2-abb424a79556 {border-top: 5px solid #000}
+	
+	/* Partners */
+	#partner-logos {margin-top: 30px}
+	
+	/* Right */
+	#block-intros-block {display: none}
+	
+	/* Teasers */
+	#block-teasers-fullwidth .teaser {background: var(--primary-colour)}
+	#block-teasers-fullwidth .teaser-details {padding: 20px}
+	#block-teasers-fullwidth .theme-button {display: flex}
+	
+	/* Trails */
+	.page-node-type-trail .dialog-off-canvas-main-canvas {display: flex; flex-direction: column; height: 100vh}
+	.page-node-type-trail header {position: fixed; background: #FFF; height: var(--header-height); width: 100%; z-index: 2}
+	.page-node-type-trail #footer-container {display: none}
+	.page-node-type-trail #main-container {padding-top: var(--header-height); height: 100%}
+	.page-node-type-trail #main-container #content, .page-node-type-trail #main-container #content > div {padding: 0; height: 100%}
+	.page-node-type-trail .trail-content {height: 100%}
+	.page-node-type-trail #block-h360-sikyon-content {display: flex; flex-direction: column; height: 100%}
+	
+	.page-node-type-trail #infoPanel {height: 100%}
+}
+
+/* MEMIUM - EXTRA-WIDE */
+/* ------------------- */
+@media only screen and (min-width: 600px) {
+	/* Header */
+	#block-banners-homepage-mobile, #block-banners-subpage-mobile {display: none}
+	#block-subpage-logo {padding: 10px 20px; width: 350px}
+	
+	/* Discover */
+	.feed-container.discover .feed-item {flex-basis: 48%}
+	
+	/* Events */
+	.events.homepage .view-content {display: flex; flex-wrap: wrap; justify-content: space-between}
+	.events.homepage .event {flex-basis: 48%}
+	.events .theme-button {margin-top: 15px}
+	
+	/* Feeds */
+  .feed-container .view-content {display: flex; flex-wrap: wrap; justify-content: space-between}
+  .feed-item {display: flex; flex-direction: column}
+	
+	/* Footer */
+	#block-footer-social-icons {position: absolute; right: 20px; bottom: 0}
+	
+	/* Team */
+	.team .member {flex-basis: 31.3%; margin: 2% 1%}
+	
+	/* Venues */
+	.venues .view-content {display: flex; align-items: stretch; flex-wrap: wrap; justify-content: space-between}
+	.venues .venue {position: relative; flex-basis: 48%}
+}
+
+/* MEDIUM */
+/* ------ */
+@media only screen and (min-width: 600px) and (max-width: 999px) {
+	h2.center-rule {font-size: 34px; margin: 50px auto 60px}
+	
+	[class*="col-"] {width: 100%}
+	
+	/* Content */
+	.venues .venue {flex-basis: 48%}
+	
+	/* Header */
+	#banner .centered {flex-wrap: wrap; justify-content: space-around}
+	.flexslider .overlay-container {position: relative}
+	.flexslider .overlay-logo {flex-basis: 40%}
+	.flexslider .overlay {position: relative; background: var(--primary-colour); flex-basis: 100%; padding: 40px 40px 20px; width: 100%}
+	.flexslider .overlay h2 {font-size: 8vw; text-shadow: none}
+	.flexslider .overlay p {font-size: 3vw; text-shadow: none}
+	
+	/* Teasers */
+	.frontpage .teasers .view-content {flex-direction: column}
+	#block-teasers-standard .teasers .teaser h2 {margin: 0}
+	.frontpage .teasers .teaser {display: flex; flex-direction: row; gap: 20px}
+	.frontpage .teasers .teaser-details {flex-basis: 70%}
+	.frontpage .teasers .teaser-image {flex-basis: 30%}
+	
+	#block-teasers-fullwidth .teaser .centered {flex-basis: 70%}
+}
+
+/* MEDIUM - WIDE */
+/* ------------- */
+@media only screen and (min-width: 600px) and (max-width: 1299px) {
+	/* Images */
+	#block-h360-sikyon-content .align-left {margin: 10px 20px 20px 0}
+	#block-h360-sikyon-content .align-right {margin: 10px 0 20px 20px}
+}
+
+/* WIDE */
+/* ---- */
+@media only screen and (min-width: 1000px) and (max-width: 1299px) {
+
+}
+
+/* WIDE - EXTRA WIDE */
+/* ------------------- */
+@media only screen and (min-width: 1000px) {
+        /* For GS3 embedding, comment out the following so GS3 banner sits logically below Streetlife banner */
+	/* [class*="col-"] {float: left} */
+	.col-0 {display: none}
+	.col-1 {width: 8.33%}
+	.col-2 {width: 16.66%}
+	.col-3 {width: 25%}
+	.col-4 {width: 33.33%}
+	.col-5 {width: 41.66%}
+	.col-6 {width: 50%}
+	.col-7 {width: 58.33%}
+	.col-8 {width: 66.66%}
+	.col-9 {width: 75%; padding-right: 60px !important}
+	.col-10 {width: 83.33%}
+	.col-11 {width: 91.66%}
+	.col-12 {width: 100%}
+
+	/* Breadcrumb */
+	#block-breadcrumbs {background: #F4F4F4}
+	#block-breadcrumbs nav {font-size: 16px; margin: auto; padding: 5px 20px}
+	#block-breadcrumbs nav a {color: #d4a713}
+	#block-breadcrumbs nav a:hover {text-decoration: underline}
+	#block-breadcrumbs nav li {float: left; padding: 0 10px}
+	#block-breadcrumbs nav li:not(:first-child):before {content: "> "; padding: 0 15px 0 0}
+	#block-breadcrumbs nav ol {display: flex; list-style-type: none; margin: 0; padding: 0}
+	
+	/* Content */	
+	#block-intros-block {background: #F4F4F4; padding: 50px 15px 15px}
+	[about="/discover"], [about="/events"], [about="/events/archive"] {display: none}
+	
+	/* Discover */
+	#block-discover-authors-article {border: 0}
+	.authors.article .author {display: block}
+	.authors .author .author-bio {display: block !important}
+	.authors .author .author-details {padding: 0}
+	.authors .author .author-image {float: right}
+	.authors .author .theme-button {display: none}
+	
+	/* Events */
+	.events.feed .view-content {display: flex; flex-wrap: wrap; justify-content: space-between}
+	.events.feed .event {flex-basis: 48%; margin: 20px 0}
+	.events.homepage .event {flex-basis: 31.333%}
+	.events.homepage footer {display: flex; justify-content: center; padding: 30px}
+	.events.homepage footer .theme-button {display: flex; width: 50%}
+	.events footer .theme-button a {display: flex; font-size: 22px; justify-content: center; width: 100%}
+	
+	/* Footer */
+	#footer-content {background: url(extra-css-images/sl-logo-graphic-grey.svg) no-repeat #F4F4F4; background-position: left center; background-size: 150% 250%; margin-top: 50px; padding: 40px 15px}
+	#footer-content .centered > div {font-size: 16px; padding: 0 15px}
+	
+	/* Header */
+	.flexslider .overlay {border: 2px solid #FFF; flex-basis: 40%; margin: -140px auto 0; font-size: 20px}
+	
+	#block-main-menu {margin: 30px 0}
+	#block-main-menu nav {display: flex}
+	.subpage #block-main-menu nav {position: absolute; right: 20px}
+	#block-main-menu #horizontal-menu {display: flex; align-items: stretch; justify-content: flex-end}
+	#block-main-menu #horizontal-menu a {display: flex; align-items: center; background: none; box-sizing: content-box; color: #444; text-transform: uppercase}
+	#block-main-menu #horizontal-menu > li > a {padding: 5px 20px; height: 30px}
+	#block-main-menu #horizontal-menu > li.menu-item--active-trail > a {border-bottom: 5px solid var(--primary-colour); color: var(--secondary-colour); font-weight: bold}
+	#block-main-menu #horizontal-menu > li > a:not([class*="is-active"]):hover {border-bottom: 5px solid var(--menu-hover)}
+	#block-main-menu #horizontal-menu > li > a.is-active {border-bottom: 5px solid var(--primary-colour); color: var(--secondary-colour); font-weight: bold}
+	#block-main-menu #horizontal-menu .sub-nav {background: var(--secondary-colour); border-top: 5px solid var(--menu-hover); top: 40px}
+	#block-main-menu #horizontal-menu .sub-nav a {color: #FFF; padding: 10px 20px; text-transform: none}
+	#block-main-menu #horizontal-menu .sub-nav a:hover {background: var(--menu-hover); color: var(--secondary-colour)}
+	#block-menu-icon {display: none}
+	
+	.frontpage .banner .social-icons {position: absolute; bottom: 20px; left: 10px}
+	.frontpage .banner footer {position: relative; z-index: 100}
+	.frontpage #block-subpage-logo {display: none}
+	.social-icons a {width: 40px}
+	
+	/* Images */
+	#block-h360-sikyon-content .align-left {margin: 10px 2% 10px 0; text-align: center; width: 48%}
+	#block-h360-sikyon-content .align-right {margin: 10px 0 10px 2%; text-align: center; width: 48%}
+	#block-h360-sikyon-content .align-left img, #block-h360-sikyon-content figure.align-right img {margin: auto}
+	figure figcaption {background: #F4F4F4; color: #666; font-size: 16px; padding: 3px 10px; text-align: center}
+	figure img[width="450"] {width: 100% !important}
+	article [data-entity-type="media"] img {height: auto; max-width: 100%}
+	.align-center img {height: auto; width: 100%}
+	figure.align-left + figure.align-right {margin-bottom: 30px !important}
+	figure.align-left + figure.align-right + p {clear: both}
+	figure.align-left img, figure.align-right img {max-height: 500px; max-width: 100%}
+	figure img[width="450"] {width: 100% !important}
+
+	/* News */
+	#block-twitter-follow {display: none}
+	.news footer {float: right; color: #888; font-size: 40px; width: 47%}
+	.news footer #social-media-icons {border-bottom: 1px solid #DDD; padding-bottom: 10px}
+	.news footer > div {width: 100%}
+	.news footer #twitter-feed {overflow-y: scroll; max-height: 650px}
+	.news .view-content {float: left; width: 47%}
+	
+	/* Partners */
+	#partner-logos {padding: 20px 180px 0}
+	
+	/* Teasers */
+	#block-teasers-fullwidth .teaser {position: relative; left: 50%; right: 50%; margin: 0 -50vw 0; overflow: hidden; padding: 50px 30px; width: 100vw}
+	#block-teasers-fullwidth .teaser-details:before {position: absolute; content:''; width: 65%; height: 100%; top: 0; left: 0; transform: skewX(-20deg); transform-origin:0 0; z-index: -1}
+	#block-teasers-fullwidth .teaser-details h2 {color: #FFF; font-size: 50px}
+	#block-teasers-fullwidth .teaser-image {position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 50%; z-index: -2}
+	
+	/* Trails */
+	.page-node-type-trail #block-h360-sikyon-content {position: relative; display: flex; flex-direction: column; height: 690px}
+	.page-node-type-trail #content {width: 100%}
+	.page-node-type-trail #right {display: none}
+	.page-node-type-trail #trail-header {border: 0}
+	.page-node-type-trail #trail-intro-content {display: flex}
+	.page-node-type-trail #trail-intro-content .intro-image img {height: 100%; width: auto}
+	
+	.trails .trail {flex-basis: 47%}
+	
+	#infoPanelContainer #infoPanel {height: 650px}
+}
+
+
+/* EXTRA-WIDE */
+/* ---------- */
+@media only screen and (min-width: 1300px) {
+	h2.center-rule {width: 60%}
+	
+	.centered {margin: auto; width: 1300px}
+	
+	.flexslider .overlay {left: 30px; bottom: 1em; max-width: 600px}
+	
+	#block-teasers-standard .teasers .teaser-details {margin: 0 30px}
+	
+	/* Breadcrumbs */
+	#block-breadcrumbs nav {width: 1300px}
+	
+	/* Header */
+	.frontpage .banner footer > div {position: relative; margin: auto; width: 1300px}
+}
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/system-status-counter.css
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/system-status-counter.css	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/system-status-counter.css	(revision 38779)
@@ -0,0 +1,30 @@
+/**
+ * @file
+ * Styles for the system status counter component.
+ */
+
+.system-status-counter__status-icon {
+  display: inline-block;
+  width: 25px;
+  height: 25px;
+  vertical-align: middle;
+}
+.system-status-counter__status-icon:before {
+  display: block;
+  width: 100%;
+  height: 100%;
+  content: "";
+  background-repeat: no-repeat;
+  background-position: center 2px;
+  background-size: 16px;
+}
+
+.system-status-counter__status-icon--error:before {
+  background-image: url(../../../../misc/icons/e32700/error.svg);
+}
+.system-status-counter__status-icon--warning:before {
+  background-image: url(../../../../misc/icons/e29700/warning.svg);
+}
+.system-status-counter__status-icon--checked:before {
+  background-image: url(../../../../misc/icons/73b355/check.svg);
+}
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/system-status-report-counters.css
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/system-status-report-counters.css	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/system-status-report-counters.css	(revision 38779)
@@ -0,0 +1,27 @@
+/**
+ * @file
+ * Styles for the system status report counters.
+ */
+
+.system-status-report-counters__item {
+  width: 100%;
+  margin-bottom: 0.5em;
+  padding: 0.5em 0;
+  text-align: center;
+  white-space: nowrap;
+  background-color: rgba(0, 0, 0, 0.063);
+}
+
+@media screen and (min-width: 60em) {
+  .system-status-report-counters {
+    display: flex;
+    flex-wrap: wrap;
+    justify-content: space-between;
+  }
+  .system-status-report-counters__item--half-width {
+    width: 49%;
+  }
+  .system-status-report-counters__item--third-width {
+    width: 33%;
+  }
+}
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/system-status-report-general-info.css
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/system-status-report-general-info.css	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/system-status-report-general-info.css	(revision 38779)
@@ -0,0 +1,14 @@
+/**
+ * @file
+ * Default styles for the System Status general info.
+ */
+
+.system-status-general-info__item {
+  margin-top: 1em;
+  padding: 0 1em 1em;
+  border: 1px solid #ccc;
+}
+
+.system-status-general-info__item-title {
+  border-bottom: 1px solid #ccc;
+}
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/tabledrag.module.css
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/tabledrag.module.css	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/tabledrag.module.css	(revision 38779)
@@ -0,0 +1,98 @@
+/**
+ * @file
+ * Table drag behavior.
+ *
+ * @see tabledrag.js
+ */
+
+body.drag {
+  cursor: move;
+}
+tr.region-title {
+  font-weight: bold;
+}
+tr.region-message {
+  color: #999;
+}
+tr.region-populated {
+  display: none;
+}
+tr.add-new .tabledrag-changed {
+  display: none;
+}
+.draggable a.tabledrag-handle {
+  float: left; /* LTR */
+  overflow: hidden;
+  height: 1.7em;
+  margin-left: -1em; /* LTR */
+  cursor: move;
+  text-decoration: none;
+}
+[dir="rtl"] .draggable a.tabledrag-handle {
+  float: right;
+  margin-right: -1em;
+  margin-left: 0;
+}
+a.tabledrag-handle:hover {
+  text-decoration: none;
+}
+a.tabledrag-handle .handle {
+  width: 14px;
+  height: 14px;
+  margin: -0.4em 0.5em 0;
+  padding: 0.42em 0.5em;
+  background: #787878;
+  -webkit-mask: url(../../../../misc/icons/787878/move.svg) no-repeat 6px 7px;
+  mask: url(../../../../misc/icons/787878/move.svg) no-repeat 6px 7px;
+}
+a.tabledrag-handle:hover .handle,
+a.tabledrag-handle:focus .handle {
+  background: #000;
+}
+
+@media (forced-colors: active) {
+  a.tabledrag-handle .handle,
+  a.tabledrag-handle:hover .handle,
+  a.tabledrag-handle:focus .handle {
+    background: canvastext;
+  }
+}
+.touchevents .draggable td {
+  padding: 0 10px;
+}
+.touchevents .draggable .menu-item__link {
+  display: inline-block;
+  padding: 10px 0;
+}
+.touchevents a.tabledrag-handle {
+  width: 40px;
+  height: 44px;
+}
+.touchevents a.tabledrag-handle .handle {
+  height: 21px;
+  background-position: 40% 19px; /* LTR */
+}
+[dir="rtl"] .touch a.tabledrag-handle .handle {
+  background-position: right 40% top 19px;
+}
+.touchevents .draggable.drag a.tabledrag-handle .handle {
+  background-position: 50% -32px;
+}
+.tabledrag-toggle-weight-wrapper {
+  text-align: right; /* LTR */
+}
+[dir="rtl"] .tabledrag-toggle-weight-wrapper {
+  text-align: left;
+}
+.indentation {
+  float: left; /* LTR */
+  width: 20px;
+  height: 1.7em;
+  margin: -0.4em 0.2em -0.4em -0.4em; /* LTR */
+  padding: 0.42em 0 0.42em 0.6em; /* LTR */
+}
+[dir="rtl"] .indentation {
+  float: right;
+  margin: -0.4em -0.4em -0.4em 0.2em;
+  padding: 0.42em 0.6em 0.42em 0;
+}
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/tablesort.module.css
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/tablesort.module.css	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/tablesort.module.css	(revision 38779)
@@ -0,0 +1,19 @@
+/**
+ * @file
+ * Table sort indicator.
+ *
+ * @see tablesort-indicator.html.twig
+ */
+
+.tablesort {
+  display: inline-block;
+  width: 16px;
+  height: 16px;
+  background-size: 100%;
+}
+.tablesort--asc {
+  background-image: url(../../../../misc/icons/787878/twistie-down.svg);
+}
+.tablesort--desc {
+  background-image: url(../../../../misc/icons/787878/twistie-up.svg);
+}
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/thewillow-extra.js.download
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/thewillow-extra.js.download	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/thewillow-extra.js.download	(revision 38779)
@@ -0,0 +1,147 @@
+
+
+function twFormToggleAllFields()
+{
+    var $obtype_all = $('#obtype-all');
+    var $individual_obtype_fields = $('#individual-obtype-fields div');
+    
+    if ($obtype_all.is(':checked')) {
+	$individual_obtype_fields.children().prop('disabled',true);
+    }
+    else {
+	$individual_obtype_fields.children().prop('disabled',false);
+    }
+
+}
+
+function twFormToGSQuery()
+{
+    var ft_query_term = $('#fulltext-search-terms').val();
+
+    var num_terms = 0;
+    if (!ft_query_term.match(/^\s*$/)) {
+	num_terms++;
+
+	var $ftq_input = $('#QueryForm input.fulltext-query-term');
+	$ftq_input.val(ft_query_term);	
+    }
+
+    var $ftq_ob_field_input = $('#QueryForm input.objecttype-query-term');
+    
+    // Check for 'all fields'
+
+    if ($('#obtype-all').is(':checked')) {
+	num_terms++;
+	
+	var $ob_field_checked = $(".obtype-field");
+
+	var ftq_ob_field_val = "";
+	$ob_field_checked.each(function(index,value) {
+	    ftq_ob_field_val += " " + $(this).val();
+	});
+	
+	$ftq_ob_field_input.val(ftq_ob_field_val.trim());
+    }
+    else {
+    
+	var $ob_field_checked = $(".obtype-field:checked");
+
+	var ftq_ob_field_val = "";
+	$ob_field_checked.each(function(index,value) {
+	    num_terms++;
+	    ftq_ob_field_val += " " + $(this).val();
+	});
+    }
+    
+    if (num_terms == 0) {
+	// No actual query input
+    	return false;
+    }
+	
+    $ftq_ob_field_input.val(ftq_ob_field_val.trim());
+    
+    // go ahead with search/query
+    return true;
+}
+
+
+function showStories(elem)
+{
+    var cl1_url = gs.xsltParams["library_name"]+"/collection/"+gs.cgiParams["c"]+"/browse/CL1";
+
+    $.ajax({
+	"type": "GET",
+	"url":  cl1_url,
+	"data": { 'excerptid': 'results' }
+    })
+    	.done(function(response) {
+	    $('#story-list').html(response);
+	    $('#story-list').show();
+	})
+	.fail(function()  {
+	    console.error("Error retrieving URL: " + cl1_url);
+	})
+    
+}
+
+function hideStories(elem)
+{
+    $('#story-list').hide();
+}
+
+$(document).ready(function() {
+    if (gs.variables.pageAction == "q") {
+        $('#gs-nav li').removeClass('ui-tabs-selected');
+        $('#query-tab').addClass('ui-tabs-selected');
+    }
+    else if ((gs.variables.pageType == "page") && (gs.variables.pageSubAction == "about")) {
+        $('#gs-nav li').removeClass('ui-tabs-selected');
+        $('#about-tab').addClass('ui-tabs-selected');
+    }
+    else if ((gs.variables.pageType == "page") && (gs.variables.pageSubAction == "stories")) {
+        $('#gs-nav li').removeClass('ui-tabs-selected');
+        $('#stories-tab').addClass('ui-tabs-selected');
+
+	
+	$('#stories-tab').on('mouseenter',function() { showStories(this) });
+	$('#stories-tab').on('mouseleave',function() { hideStories(this) });
+    }
+
+    // Inspect the query form cgi-params, and set the ThomFong designed version of the
+    // query form accordingly
+    
+    //if (gs.cgiParams.s1_fqv) {
+    if (gs.variables.pageAction && gs.variables.pageAction == "q") {
+	var query_terms  = gs.cgiParams.s1_fqv.split(",");
+	var query_fields = gs.cgiParams.s1_fqf.split(","); // e.g., "TE","OB"
+
+	var field_to_terms = {};
+	
+	var num_query_fields = query_fields.length;
+	for (var i=0; i<num_query_fields; i++) {
+	    var field = query_fields[i];
+	    
+	    field_to_terms[field] = query_terms[i];
+	}
+
+	var text_terms_str = field_to_terms["TE"];
+	var ob_terms_str   = field_to_terms["OB"];
+
+	// Perpetuate the previously entered query term => insert it (back) into the query <input> box
+	$('#fulltext-search-terms').val(text_terms_str);
+
+
+	if (ob_terms_str != "") {
+	    // Perpetuate the previously ticked check-boxes, => set them to be true in the newly loaded for
+	    var ob_terms_array = ob_terms_str.split(" ");
+	    
+	    var ob_terms_len = ob_terms_array.length;
+	    for (var i=0; i<ob_terms_len; i++) {
+		ob_term = ob_terms_array[i]; 
+		$('.obtype-field[value='+ob_term+']').prop('checked',true);
+	    }
+	}
+	
+    }
+    
+});
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/tree-child.module.css
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/tree-child.module.css	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/tree-child.module.css	(revision 38779)
@@ -0,0 +1,18 @@
+/**
+ * @file
+ * Visual styles for a nested tree child.
+ */
+
+div.tree-child {
+  background: url(../../../../misc/tree.png) no-repeat 11px center; /* LTR */
+}
+div.tree-child-last {
+  background: url(../../../../misc/tree-bottom.png) no-repeat 11px center; /* LTR */
+}
+[dir="rtl"] div.tree-child,
+[dir="rtl"] div.tree-child-last {
+  background-position: -65px center;
+}
+div.tree-child-horizontal {
+  background: url(../../../../misc/tree.png) no-repeat -11px center;
+}
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/utility_scripts.js.download
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/utility_scripts.js.download	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/utility_scripts.js.download	(revision 38779)
@@ -0,0 +1,2790 @@
+/** JavaScript file of utility functions.
+  * At present contains functions for sanitising of URLs,
+  * since tomcat 8+, being more compliant with URL/URI standards, is more strict about URLs.
+  */
+
+/* 
+   Given a string consisting of a single character, returns the %hex (%XX)
+   https://www.w3resource.com/javascript-exercises/javascript-string-exercise-27.php
+   https://stackoverflow.com/questions/40100096/what-is-equivalent-php-chr-and-ord-functions-in-javascript
+   https://www.w3resource.com/javascript-exercises/javascript-string-exercise-27.php
+*/
+function urlEncodeChar(single_char_string) {
+    /*let hex = Number(single_char_string.charCodeAt(0)).toString(16);
+    var str = "" + hex;
+    str = "%" + str.toUpperCase();
+    return str;
+    */
+
+    var hex = "%" + Number(single_char_string.charCodeAt(0)).toString(16).toUpperCase();
+    return hex;
+}
+
+/*
+  Tomcat 8 appears to be stricter in requiring unsafe and reserved chars
+  in URLs to be escaped with URL encoding
+  See section "Character Encoding Chart of
+  https://perishablepress.com/stop-using-unsafe-characters-in-urls/
+  Reserved chars:
+     ; / ? : @ = &
+     ----->  %3B %2F %3F %3A %40 %3D %26
+  [Now also reserved, but no special meaning yet in URLs (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent)
+  and not required to be enforced yet, so we're aren't at present dealing with these:
+     ! ' ( ) *
+  ]
+  Unsafe chars:
+     " < > # % { } | \ ^ ~ [ ] ` and SPACE/BLANK
+     ----> %22 %3C %3E %23 %25 %7B %7D %7C %5C %5E ~ %5B %5D %60 and %20
+  But the above conflicts with the reserved vs unreserved listings at
+     https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURI
+  Possibly more info: https://stackoverflow.com/questions/1547899/which-characters-make-a-url-invalid
+
+  And the bottom of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent
+  lists additional characters that have been reserved since and which need encoding when in a URL component.
+
+  Javascript already provides functions encodeURI() and encodeURIComponent(), see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURI
+  However, the set of chars they deal with only partially overlap with the set of chars that need encoding as per the RFC3986 for URIs and RFC1738 for URLs discussed at
+  https://perishablepress.com/stop-using-unsafe-characters-in-urls/
+  We want to handle all the characters listed as unsafe and reserved at https://perishablepress.com/stop-using-unsafe-characters-in-urls/
+  so we define and use our own conceptually equivalent methods for both existing JavaScript methods: 
+  - makeSafeURL() for Javascript's encodeURI() to make sure all unsafe characters in URLs are escaped by being URL encoded
+  - and makeSafeURLComponent() for JavaScript's encodeURIComponent to additionally make sure all reserved characters in a URL portion are escaped by being URL encoded too
+
+  Function makeSafeURL() is passed a string that represents a URL and therefore only deals with characters that are unsafe in a URL and which therefore require escaping. 
+  Function makeSafeURLComponent() deals with portions of a URL that when decoded need not represent a URL at all, for example data like inline templates passed in as a
+  URL query string's parameter values. As such makeSafeURLComponent() should escape both unsafe URL characters and characters that are reserved in URLs since reserved
+  characters in the query string part (as query param values representing data) may take on a different meaning from their reserved meaning in a URL context.
+*/
+
+/* URL encodes both 
+   - UNSAFE characters to make URL safe, by calling makeSafeURL()
+   - and RESERVED characters (characters that have reserved meanings within a URL) to make URL valid, since the url component parameter could use reserved characters
+   in a non-URL sense. For example, the inline template (ilt) parameter value of a URL could use '=' and '&' signs where these would have XSLT rather than URL meanings.
+  
+   See end of https://www.w3schools.com/jsref/jsref_replace.asp to use a callback passing each captured element of a regex in str.replace()
+*/
+function makeURLComponentSafe(url_part, encode_percentages) {
+    // https://stackoverflow.com/questions/12797118/how-can-i-declare-optional-function-parameters-in-javascript
+    encode_percentages = encode_percentages || 1; // this method forces the URL-encoding of any % in url_part, e.g. do this for inline-templates that haven't ever been encoded
+    
+    var url_encoded = makeURLSafe(url_part, encode_percentages);
+    //return url_encoded.replace(/;/g, "%3B").replace(/\//g, "%2F").replace(/\?/g, "%3F").replace(/\:/g, "%3A").replace(/\@/g, "%40").replace(/=/g, "%3D").replace(/\&/g,"%26");
+    url_encoded = url_encoded.replace(/[\;\/\?\:\@\=\&]/g, function(s) { 
+	return urlEncodeChar(s);
+    }); 
+    return url_encoded;
+}
+
+/* 
+   URL encode UNSAFE characters to make URL passed in safe.
+   Set encode_percentages to 1 (true) if you don't want % signs encoded: you'd do so if the url is already partly URL encoded.
+*/
+function makeURLSafe(url, encode_percentages) {    
+    encode_percentages = encode_percentages || 0; // https://stackoverflow.com/questions/12797118/how-can-i-declare-optional-function-parameters-in-javascript
+
+    var url_encoded = url;
+    if(encode_percentages) { url_encoded = url_encoded.replace(/\%/g,"%25"); } // encode % first
+    //url_encoded = url_encoded.replace(/ /g, "%20").replace(/\"/g,"%22").replace(/\</g,"%3C").replace(/\>/g,"%3E").replace(/\#/g,"%23").replace(/\{/g,"%7B").replace(/\}/g,"%7D");
+    //url_encoded = url_encoded.replace(/\|/g,"%7C").replace(/\\/g,"%5C").replace(/\^/g,"%5E").replace(/\[/g,"%5B").replace(/\]/g,"%5D").replace(/\`/g,"%60");
+    // Should we handle ~, but then what is its URL encoded value? Because https://meyerweb.com/eric/tools/dencoder/ URLencodes ~ to ~.
+    //return url_encoded;    
+    url_encoded = url_encoded.replace(/[\ \"\<\>\#\{\}\|\\^\~\[\]\`]/g, function(s) { 
+	return urlEncodeChar(s);
+    });
+    return url_encoded;
+}
+
+/***************
+* MENU SCRIPTS *
+***************/
+function moveScroller() {
+  var move = function() {
+    var editbar = $("#editBar");
+    var st = $(window).scrollTop();
+    var fa = $("#float-anchor").offset().top;
+    if(st > fa) {
+      
+      editbar.css({
+	  position: "fixed",
+	    top: "0px",
+	    width: editbar.data("width"),
+	    //width: "30%"
+            });
+    } else {
+      editbar.data("width", editbar.css("width"));
+      editbar.css({
+	  position: "relative",
+	    top: "",
+	    width: ""
+	    });
+    }
+  };
+  $(window).scroll(move);
+  move();
+}
+
+
+function floatMenu(enabled)
+{
+	var menu = $(".tableOfContentsContainer");
+	if(enabled)
+	{
+		menu.data("position", menu.css("position"));
+		menu.data("width", menu.css("width"));
+		menu.data("right", menu.css("right"));
+		menu.data("top", menu.css("top"));
+		menu.data("max-height", menu.css("max-height"));
+		menu.data("overflow", menu.css("overflow"));
+		menu.data("z-index", menu.css("z-index"));
+		
+		menu.css("position", "fixed");
+		menu.css("width", "300px");
+		menu.css("right", "0px");
+		menu.css("top", "100px");
+		menu.css("max-height", "600px");
+		menu.css("overflow", "auto");
+		menu.css("z-index", "200");
+		
+		$("#unfloatTOCButton").show();
+	}
+	else
+	{
+		menu.css("position", menu.data("position"));
+		menu.css("width", menu.data("width"));
+		menu.css("right", menu.data("right"));
+		menu.css("top", menu.data("top"));
+		menu.css("max-height", menu.data("max-height"));
+		menu.css("overflow", menu.data("overflow"));
+		menu.css("z-index", menu.data("z-index"));
+		
+		$("#unfloatTOCButton").hide();
+		$("#floatTOCToggle").prop("checked", false);
+	}
+	
+	var url = gs.xsltParams.library_name + "?a=d&ftoc=" + (enabled ? "1" : "0") + "&c=" + gs.cgiParams.c;
+	
+	$.ajax(url);
+}
+
+// TK Label Scripts
+
+var tkMetadataSetStatus = "needs-to-be-loaded";
+var tkMetadataElements = null;
+
+
+function addTKLabelToImage(labelName, definition, name, comment) {
+   // lists of tkLabels and their corresponding codes, in order
+   let tkLabels = ["Attribution","Clan","Family","MultipleCommunities","CommunityVoice","Creative","Verified","NonVerified","Seasonal","WomenGeneral","MenGeneral",
+      "MenRestricted","WomenRestricted","CulturallySensitive","SecretSacred","OpenToCommercialization","NonCommercial","CommunityUseOnly","Outreach","OpenToCollaboration"];
+   let tkCodes = ["tk_a","tk_cl","tk_f","tk_mc","tk_cv","tk_cr","tk_v","tk_nv","tk_s","tk_wg","tk_mg","tk_mr","tk_wr","tk_cs","tk_ss","tk_oc","tk_nc","tk_co","tk_o","tk_cb"];
+    for (let i = 0; i < tkLabels.length; i++) {
+      if (labelName == tkLabels[i]) {
+         let labeldiv = document.querySelectorAll(".tklabels img");
+         for (image of labeldiv) {
+             let labelCode = image.src.substr(image.src.lastIndexOf("/") + 1).replace(".png", ""); // get tk label code from image file name
+             if (labelCode == tkCodes[i]) {
+               image.title = "TK " + name + ": " + definition + " Click for more details."; // set tooltip
+               if (image.parentElement.parentElement.parentElement.classList[0] != "tocSectionTitle") { // disable onclick event in favourites section
+                  image.addEventListener("click", function(e) {
+                     let currPopup = document.getElementsByClassName("tkPopup")[0];
+                     if (currPopup == undefined || (currPopup != undefined && currPopup.id != labelCode)) { 
+                        let popup = document.createElement("div");
+                        popup.classList.add("tkPopup");
+                        popup.id = labelCode;
+                        let popupText = document.createElement("span");
+                        let heading = "<h1>Traditional Knowledge Label:<br><h2>" + name + "</h2></h1>";
+                        let moreInformation = "<br> For more information about TK Labels, ";
+                        let link = document.createElement("a");
+                        link.innerHTML = "click here.";
+                        link.href = "https://localcontexts.org/labels/traditional-knowledge-labels/";
+                        link.target = "_blank";
+                        popupText.innerHTML = heading + comment + moreInformation;
+                        popupText.appendChild(link);
+                        let closeButton = document.createElement("span");
+                        closeButton.innerHTML = "&#215;";
+                        closeButton.id = "tkCloseButton";
+                        closeButton.title = "Click to close window."
+                        closeButton.addEventListener("click", function(e) {
+                           closeButton.parentElement.remove();
+                        });
+                        popup.appendChild(closeButton);
+                        popup.appendChild(popupText);
+                        e.target.parentElement.appendChild(popup);
+                     }
+                     if (currPopup) currPopup.remove(); // remove existing popup div
+                  });
+               }
+            }
+         }
+      }
+   }
+}
+
+function addTKLabelsToImages(lang) {
+   if (tkMetadataElements == null) {
+      console.error("ajax call not yet loaded tk label metadata set");
+   } else {
+       for (label of tkMetadataElements) { // for each tklabel element in tk.mds
+         let tkLabelName = label.attributes.name.value; // Element name=""
+         let attributes = label.querySelectorAll("[code=" + lang + "] Attribute"); // gets attributes for selected language
+         let tkName = attributes[0].textContent; // name="label"
+         let tkDefinition = attributes[1].textContent; // name="definition"
+         let tkComment = attributes[2].textContent; // name="comment"
+         addTKLabelToImage(tkLabelName, tkDefinition, tkName, tkComment);       
+      }  
+   }
+}
+
+function loadTKMetadataSetOld(lang) {
+   tkMetadataSetStatus = "loading";
+   $.ajax({
+      url: gs.variables["tkMetadataURL"],
+      success: function(xml) {
+         tkMetadataSetStatus = "loaded";
+         let parser = new DOMParser();
+         let tkmds = parser.parseFromString(xml, "text/xml");
+         tkMetadataElements = tkmds.querySelectorAll("Element");
+         if (document.readyState === "complete") {
+            addTKLabelsToImages(lang);
+         } else {
+            window.onload = function() {
+               addTKLabelsToImages(lang);
+            }
+         }
+      },
+      error: function() {
+         tkMetadataSetStatus = "no-metadata-set-for-this-collection";
+         console.log("No TK Label Metadata-set found for this collection");
+      }
+   });
+};
+function loadTKMetadataSet(lang, type) {
+    if (gs.variables["tkMetadataURL_"+type] == undefined) {
+	console.error("tkMetadataURL_"+type+" variable is not defined, can't load TK Metadata Set");
+	tkMetadataSetStatus = "no-metadata-set-for-this-"+type;
+	return;
+    }
+    tkMetadataSetStatus = "loading";
+   $.ajax({
+       url: gs.variables["tkMetadataURL_"+type],
+       async: false,
+       success: function(xml) {
+         tkMetadataSetStatus = "loaded";
+         let parser = new DOMParser();
+         let tkmds = parser.parseFromString(xml, "text/xml");
+         tkMetadataElements = tkmds.querySelectorAll("Element");
+           if (document.readyState === "complete") {
+            addTKLabelsToImages(lang);
+           } else {
+               window.onload = function() {
+               addTKLabelsToImages(lang);
+            }
+         }
+      },
+      error: function() {
+          tkMetadataSetStatus = "no-metadata-set-for-this-"+type;
+	  console.log("No TK Label Metadata-set found for this "+type);
+      }
+   });
+};
+
+// Audio Scripts for Enriched Playback
+
+var wavesurfer;
+
+/**
+ * @param audio input audio file
+ * @param sectionData diarization data (.csv)
+ */
+function loadAudio(audio, sectionData) {
+   const inputFile = sectionData;
+   const mod_meta_base_url = gs.xsltParams.library_name + "?a=g&rt=r&ro=0&s=ModifyMetadata&s1.collection=" + gs.cgiParams.c + "&s1.site=" + gs.xsltParams.site_name + "&s1.d=" + gs.cgiParams.d;
+   const interface_bootstrap_images = "interfaces/" + gs.xsltParams.interface_name + "/images/bootstrap/"; // path to toolbar images
+   const GSSTATUS_SUCCESS = 11; // more information on codes found in: GSStatus.java
+
+   let editMode = false;
+   let currentRegion = {speaker: '', start: '', end: ''};
+   let currentRegions = [];
+
+   let itemType;
+
+   let dualMode = false;
+   let secondaryLoaded = false;
+   let selectedVersions = ['current'];
+
+   let waveformCursorX = 0;
+   let snappedToX = 0;
+   let snappedTo = "none";
+   let cursorPos = 0;
+   let ctrlDown = false;
+   let mouseDown = false;
+   let newRegionOffset = 0;
+
+   let editsMade = false;
+   let undoLevel = 0;
+   let undoStates = [];
+   let prevUndoState = "";
+   let tempZoomSave = 0;
+   let isZooming;
+
+   let canvasImages = {}; // stores canvas images of each version for fast loading from cache
+
+   let accentColour = "#66d640";
+   // let accentColour = "#F8C537";
+   let regionTransparency = "50";
+   let colourbrewerSet = colorbrewer.Set2[8];
+   let regionColourSet = [];
+
+
+   let waveformContainer = document.getElementById("waveform");
+   let waveformSpinner = document.getElementById('waveform-blocker');
+   let loader = document.getElementById('waveform-loader');
+   let initialLoad = true;
+   
+   wavesurfer = WaveSurfer.create({ // wavesurfer options
+      autoCenterImmediately: true,
+      container: waveformContainer,
+      backend: "WebAudio",
+      // backgroundColor: "rgb(40, 54, 58)",
+      backgroundColor: "rgb(29, 43, 47)",
+      waveColor: "white",
+      progressColor: accentColour,
+      // progressColor: "grey",
+      // barWidth: 1,
+      // barHeight: 1.2,
+      // barGap: 2,
+      // barRadius: 1,
+      height: 140,
+      cursorColor: 'black',
+      // maxCanvasWidth: 32000,
+      minPxPerSec: 15, // default 20
+      partialRender: true, // use the PeakCache to improve rendering speed of large waveforms
+      pixelRatio: 1, // 1 results in faster rendering
+      scrollParent: true,
+      plugins: [
+         WaveSurfer.regions.create({
+            // formatTimeCallback: function(a, b) {
+            //    return "TEST";
+            // }
+         }),
+         WaveSurfer.timeline.create({
+            container: "#wave-timeline",
+            secondaryColor: "white",
+            secondaryFontColor: "white",
+            notchPercentHeight: "0",
+            fontSize: "12",
+            // zoomDebounce: 30,
+            fontFamily: "Courier New"
+         }),
+         WaveSurfer.cursor.create({
+            showTime: true,
+            opacity: 1,
+            customShowTimeStyle: {
+                'background-color': '#000',
+                color: '#fff',
+                padding: '0.25rem',
+                'font-size': '12px'
+            },
+            formatTimeCallback: (num) => { return formatCursor(num); }
+         }),
+      ],
+   });
+
+   // toolbar elements & event handlers
+   const audioContainer = document.getElementById("audioContainer");
+   const dualModeCheckbox = document.getElementById("dual-mode-checkbox");
+   const wave = document.getElementsByTagName("wave")[0];
+   const caretContainer = document.getElementById("caret-container");
+   const primaryCaret = document.getElementById("primary-caret");
+   const secondaryCaret = document.getElementById("secondary-caret");
+   const chapters = document.getElementById("chapters");
+   const chaptersContainer = document.getElementById("chapters-container");
+   const editPanel = document.getElementById("edit-panel");
+   const chapterButton = document.getElementById("chapterButton");
+   const chapterSearchInput = document.getElementById("chapter-search-input");
+   const zoomOutButton = document.getElementById("zoomOutButton");
+   const zoomSlider = document.getElementById("zoom-slider");
+   const zoomInButton = document.getElementById("zoomInButton");
+   const backButton = document.getElementById("backButton");
+   const playPauseButton = document.getElementById("playPauseButton");
+   const forwardButton = document.getElementById("forwardButton");
+   const editButton = document.getElementById("editorModeButton");
+   const downloadButton = document.getElementById("downloadButton");
+   const muteButton = document.getElementById("muteButton");
+   const volumeSlider = document.getElementById("volume-slider");
+   const fullscreenButton = document.getElementById("fullscreenButton");
+   const changeAllCheckbox = document.getElementById("change-all-checkbox");
+   const changeAllLabel = document.getElementById("change-all-label");
+   const speakerInput = document.getElementById("speaker-input");
+   const startTimeInput = document.getElementById("start-time-input");
+   const endTimeInput = document.getElementById("end-time-input");
+   const removeButton = document.getElementById("remove-button");
+   const createButton = document.getElementById("create-button");
+   const discardButton = document.getElementById("discard-button");
+   const undoButton = document.getElementById("undo-button");
+   const redoButton = document.getElementById("redo-button");
+   const saveButton = document.getElementById("save-button");
+   const hoverSpeaker = document.getElementById("hover-speaker");
+   const contextMenu = document.getElementById("context-menu");
+   const contextReplace = document.getElementById("context-menu-replace");
+   const contextOverdub = document.getElementById("context-menu-overdub");
+   const contextLock = document.getElementById("context-menu-lock");
+   const contextDelete = document.getElementById("context-menu-delete");
+   const timelineMenu = document.getElementById("timeline-menu");
+   const timelineMenuButton = document.getElementById("timeline-menu-button");
+   const timelineMenuHide = document.getElementById("timeline-menu-hide");
+   const timelineMenuDualMode = document.getElementById("timeline-menu-dualmode");
+   const timelineMenuRegionConflict = document.getElementById("timeline-menu-region");
+   const timelineMenuSpeakerConflict = document.getElementById("timeline-menu-speaker");
+   const versionSelectMenu = document.getElementById('version-select-menu');
+   const versionSelectLabels = document.querySelectorAll(".track-arrow");
+   const savePopup = document.getElementById("save-popup");
+   const savePopupBG = document.getElementById("save-popup-bg");
+   const savePopupCancel = document.getElementById("save-popup-cancel");
+   const savePopupCommit = document.getElementById("save-popup-commit");
+   const savePopupCommitMsg = document.getElementById("commit-message");
+
+   audioContainer.addEventListener('fullscreenchange', (e) => { fullscreenChanged() });
+   audioContainer.addEventListener('contextmenu', onRightClick);
+   audioContainer.addEventListener("keyup", keyUp);
+   audioContainer.addEventListener("keydown", keyDown);
+   dualModeCheckbox.addEventListener("change", () => { dualModeChanged() });
+   wave.addEventListener('scroll', (e) => { waveformScrolled() })
+   wave.addEventListener('mousemove', (e) => waveformCursorX = e.x);
+   primaryCaret.addEventListener("click", (e) => caretClicked(e.target.id));
+   secondaryCaret.addEventListener("click", (e) => caretClicked(e.target.id));
+   chapters.style.height = "0px";
+   chaptersContainer.style.height = "0px";
+   editPanel.style.height = "0px";
+   chapterButton.addEventListener("click", () => { toggleChapters() });
+   chapterSearchInput.addEventListener("input", chapterSearchInputChange)
+   zoomOutButton.addEventListener("click", () => { zoomSlider.stepDown(); zoomSlider.dispatchEvent(new Event("input")) });
+   zoomInButton.addEventListener("click", () => { zoomSlider.stepUp(); zoomSlider.dispatchEvent(new Event("input")) });
+   backButton.addEventListener("click", () => { wavesurfer.skipBackward(); });
+   playPauseButton.addEventListener("click", () => { wavesurfer.playPause() });
+   forwardButton.addEventListener("click", () => { wavesurfer.skipForward(); });
+   editButton.addEventListener("click", toggleEditMode); 
+   downloadButton.addEventListener("click", () => { downloadURI(audio, audio.split(".dir/")[1]) }); 
+   muteButton.addEventListener("click", () => { 
+      if (volumeSlider.value == 0) wavesurfer.setMute(false) 
+      else wavesurfer.setMute(true) 
+   });
+   volumeSlider.style["accent-color"] = accentColour; 
+   fullscreenButton.addEventListener("click", toggleFullscreen);
+   zoomSlider.style["accent-color"] = accentColour; 
+   changeAllCheckbox.addEventListener("change", () => { selectAllCheckboxChanged() });
+   speakerInput.addEventListener("input", speakerChange);
+   speakerInput.addEventListener("blur", speakerInputUnfocused);
+   createButton.addEventListener("click", createNewRegion);
+   removeButton.addEventListener("click", removeRegion);
+   discardButton.addEventListener("click", () => discardRegionChanges(false));
+   undoButton.addEventListener("click", undo);
+   redoButton.addEventListener("click", redo);
+   saveButton.addEventListener("click", saveRegionChanges);
+   document.addEventListener('click', documentClicked);
+   document.addEventListener('mouseup', () => mouseDown = false);
+   document.addEventListener('mousedown', (e) => { if (e.target.id !== "create-button") newRegionOffset = 0 }); // resets new region offset on click
+   document.querySelectorAll('input[type=number]').forEach(e => {
+      e.onchange = (e) => { changeStartEndTime(e) }; // updates speaker objects when number input(s) are changed
+      e.onblur = () => { prevUndoState = "" }; 
+   }); 
+   contextReplace.addEventListener("click", replaceSelected);
+   contextOverdub.addEventListener("click", overdubSelected);
+   contextLock.addEventListener("click", toggleLockSelected);
+   contextDelete.addEventListener("click", removeRightClicked);
+   timelineMenu.addEventListener("click", e => e.stopPropagation());
+   timelineMenuButton.addEventListener("click", timelineMenuToggle);
+   timelineMenuHide.addEventListener("click", timelineMenuHideClicked);
+   timelineMenuDualMode.addEventListener("click", () => { dualModeChanged() });
+   timelineMenuRegionConflict.addEventListener("click", showStartStopConflicts);
+   timelineMenuSpeakerConflict.addEventListener("click", showSpeakerNameConflicts);
+
+   savePopupCancel.addEventListener("click", toggleSavePopup)
+   savePopupCommit.addEventListener("click", commitChanges);
+   savePopupBG.addEventListener("click", toggleSavePopup);
+   versionSelectLabels.forEach(arrow => arrow.addEventListener('click', toggleVersionDropdown));
+
+   volumeSlider.addEventListener("input", function() {
+      wavesurfer.setVolume(this.value);
+      if (this.value == 0) {
+         muteButton.src = interface_bootstrap_images + "mute.svg"; 
+         muteButton.style.opacity = 0.6;
+      } else {
+         muteButton.src = interface_bootstrap_images + "unmute.svg"; 
+         muteButton.style.opacity = 1;
+      }
+   });
+
+   zoomSlider.addEventListener('input', function() { // slider changes waveform zoom
+      wavesurfer.zoom(Number(this.value) / 4); 
+      if (currentRegion.speaker && getCurrentRegionIndex() != -1) { 
+         setHoverSpeaker(currSpeakerSet.tempSpeakerObjects[getCurrentRegionIndex()].region.element.style.left, currentRegion.speaker);
+         drawCurrentRegionBounds();
+      }
+      let handles = document.getElementsByClassName("wavesurfer-handle");
+      if (this.value < 20) {
+         for (const handle of handles) handle.style.setProperty("width", "1px", "important");
+      } else {
+         for (const handle of handles) handle.style.setProperty("width", "3px", "important");
+      }
+   });
+   showAudioLoader();
+   
+   if (gs.variables.allowEditing === '0') { editButton.style.display = "none" }
+
+   wavesurfer.load(audio);
+
+   // wavesurfer events
+
+   wavesurfer.on('region-click', handleRegionClick);
+   wavesurfer.on('region-mouseenter', function(region) { // region hover effects
+      if (!mouseDown) {
+         handleRegionColours(region, true); 
+         setHoverSpeaker(region.element.style.left, region.attributes.label.innerText);
+         if (!isInCurrentRegions(region)) {
+            removeRegionBounds();
+            drawRegionBounds(region, wave.scrollLeft, "black");
+         }
+         if (isCurrentRegion(region) && editMode) drawRegionBounds(region, wave.scrollLeft, "FireBrick");
+      }
+   });
+   wavesurfer.on('region-mouseleave', function(region) { 
+      hoverSpeaker.innerHTML = "";
+      if (!mouseDown) {
+         if (!(wavesurfer.getCurrentTime() <= region.end && wavesurfer.getCurrentTime() >= region.start)) handleRegionColours(region, false); 
+         if (!editMode) hoverSpeaker.innerHTML = "";
+         removeRegionBounds();
+         if (currentRegion && currentRegion.speaker && getCurrentRegionIndex() != -1) { 
+            setHoverSpeaker(currSpeakerSet.tempSpeakerObjects[getCurrentRegionIndex()].region.element.style.left, currentRegion.speaker);
+            drawCurrentRegionBounds();
+         } 
+      }
+   });
+   wavesurfer.on('region-in', function(region) { // play caret enters region
+      if (!mouseDown) {
+         handleRegionColours(region, true); 
+         if (itemType == "chapter" && Array.from(chapters.children)[getIndexOfRegion(region)]) {
+            Array.from(chapters.children)[getIndexOfRegion(region)].scrollIntoView({  
+               behavior: "smooth",
+               block: "nearest"
+            });
+         }
+      }
+   });
+   wavesurfer.on('region-out', function(region) { handleRegionColours(region, false) });
+   wavesurfer.on('region-update-end', handleRegionEdit); // end of click-drag event
+   wavesurfer.on('region-updated', handleRegionSnap);
+   wavesurfer.on('error', error => console.log(error));
+
+   wavesurfer.on("play", () => { playPauseButton.src = interface_bootstrap_images + "pause.svg"; });
+   wavesurfer.on("pause", () => { playPauseButton.src = interface_bootstrap_images + "play.svg"; });
+   wavesurfer.on("mute", function(mute) { 
+      if (mute) {
+         muteButton.src = interface_bootstrap_images + "mute.svg"; 
+         muteButton.style.opacity = 0.6;
+         volumeSlider.value = 0;
+      }
+      else {
+         muteButton.src = interface_bootstrap_images + "unmute.svg"; 
+         muteButton.style.opacity = 1;
+         volumeSlider.value = 1;
+      } 
+   });
+
+   wavesurfer.on('ready', function() { // retrieve regions once waveforms have loaded
+      window.onbeforeunload = (e) => {
+         if (undoStates.length > 1) { 
+            console.log('undoStates.length: ' + undoStates.length);
+            e.returnValue = "Data will be lost if you leave the page, are you sure?";
+            return "Data will be lost if you leave the page, are you sure?";
+         }
+      };
+      if (document.getElementById('new-canvas')) document.getElementById('new-canvas').remove();
+      setTimeout(() => { // if not delayed exportImage does not retrieve waveform (despite being in waveform-ready?)
+         const currVersion = selectedVersions[(!dualMode || primaryCaret.src.includes("fill")) ? 0 : 1];
+         for (let key in canvasImages) {
+            if (currVersion == key && canvasImages[key] == undefined) { canvasImages[key] = wavesurfer.exportImage() } // add waveform image to cache if one isn't already assigned to the version
+         }
+      }, 1000);
+
+      if (initialLoad) {
+         if (inputFile.endsWith("csv")) { // diarization if csv
+            itemType = "chapter";
+            if (localStorage.getItem('undoStates') && localStorage.getItem('undoLevel')) {
+               console.log('-- Loading regions from localStorage --');
+               undoStates = JSON.parse(localStorage.getItem('undoStates'));
+               undoLevel = JSON.parse(localStorage.getItem('undoLevel'));
+               primarySet.tempSpeakerObjects = undoStates[undoLevel].state;
+               primarySet.speakerObjects = cloneSpeakerObjectArray(primarySet.tempSpeakerObjects);
+               primarySet.uniqueSpeakers = [];
+               for (const item of primarySet.tempSpeakerObjects) {
+                  if (!primarySet.uniqueSpeakers.includes(item.speaker)) primarySet.uniqueSpeakers.push(item.speaker);
+               }
+               populateChaptersAndRegions(primarySet);
+               if (undoStates[undoLevel].secState && undoStates[undoLevel].secState.length > 0) {
+                  secondarySet.tempSpeakerObjects = undoStates[undoLevel].secState;
+                  secondarySet.speakerObjects = cloneSpeakerObjectArray(secondarySet.tempSpeakerObjects);
+                  secondarySet.uniqueSpeakers = [];
+                  for (const item of secondarySet.tempSpeakerObjects) {
+                     if (!secondarySet.uniqueSpeakers.includes(item.speaker)) secondarySet.uniqueSpeakers.push(item.speaker);
+                  }
+                  secondaryLoaded = true;
+               }
+               updateRegionEditPanel(); 
+            } else {
+               loadCSVFile(inputFile, primarySet);
+               dualModeChanged(true, "true");
+               setTimeout(()=>{
+                  dualModeChanged(true, "false");
+               }, 150)
+            }
+         } else if (inputFile.endsWith("json")) { // transcription if json
+            itemType = "word";
+            loadJSONFile(inputFile);
+         } else {                      
+            console.log("Filetype of " + inputFile + " not supported.")
+         }
+         
+         chapters.style.cursor = "default"; // remove load cursor
+         wave.className = "audio-scroll";
+         $.ajax({
+            type: "GET",
+            url: gs.variables.metadataServerURL,
+            data: { a: 'get-fldv-info', site: gs.xsltParams.site_name, c: gs.cgiParams.c, d: gs.cgiParams.d },
+            dataType: "json",
+         }).then(data => {
+            for (const version of ["current", ...data]) {
+               canvasImages[version] = undefined;
+               let menuItem = document.createElement("div");
+               menuItem.classList.add("version-select-menu-item");
+               menuItem.id = version;
+               let text = version.includes("nminus") ? version.replace("nminus-", "Previous(") + ")" : version;
+               menuItem.innerText = text.charAt(0).toUpperCase() + text.slice(1);
+               menuItem.addEventListener('click', versionClicked);
+               let dataObj = { a: 'get-archives-metadata', site: gs.xsltParams.site_name, c: gs.cgiParams.c, d: gs.cgiParams.d, metaname: "commitmessage" };
+               if (version != "current") Object.assign(dataObj, {dv: version});
+               $.ajax({ // get commitmessage metadata to show as hover tooltip
+                  type: "GET",
+                  url: gs.variables.metadataServerURL,
+                  data: dataObj,
+                  dataType: "text",
+               }).then(comment => {
+                  menuItem.title = "Commit message: " + comment;
+                  versionSelectMenu.append(menuItem);
+                  [...versionSelectMenu.children].sort((a,b) => a.innerText>b.innerText?1:-1).forEach(n=>versionSelectMenu.appendChild(n)); // sort alphabetically
+               }, (error) => { console.log("get-archives-metadata error:"); console.log(error); });
+            }
+         }, (error) => { console.log("get-fldv-info error:"); console.log(error); });
+         initialLoad = false;
+      }
+      // fixes blank waveform/regions when loading Current -> Prev.1 -> Prev.2
+      zoomSlider.value = 25;
+      zoomSlider.dispatchEvent(new Event("input"));
+      wavesurfer.zoom(50 / 4);
+      hideAudioLoader();
+   });
+
+   /**
+   * Draws string above waveform at the provided offset
+   * @param {number} offset Offset (from left) to desired location
+   * @param {string} name String to be drawn
+   */
+   function setHoverSpeaker(offset, name) {
+      hoverSpeaker.innerHTML = name;  
+      let newOffset = parseInt(offset.slice(0, -2)) - wave.scrollLeft;
+      hoverSpeaker.style.marginLeft = newOffset + "px";
+   }
+
+   /** Click handler, manages selected region/s, set swapping, region playing */
+   function handleRegionClick(region, e) { 
+      if (e.target.classList.contains("region-menu")) return;
+      e.stopPropagation();
+      contextMenu.classList.remove('visible');
+      if (!editMode) { // play region audio on click
+         wavesurfer.play(region.start); // plays from start of region
+      } else { // select or deselect current region
+         if (!region.element) return;
+         if (region.element.classList.contains("region-top")) {
+            currSpeakerSet = primarySet;
+            swapCarets(true);
+         } else if (region.element.classList.contains("region-bottom")) {
+            currSpeakerSet = secondarySet;
+            swapCarets(false);
+         }
+         prevUndoState = "";
+
+         if (!e.ctrlKey && !e.shiftKey) {
+            currentRegions = [];
+            currentRegion = region;
+            currentRegion.speaker = currentRegion.attributes.label.innerText;
+            wavesurfer.backend.seekTo(currentRegion.start);
+         } else if (e.ctrlKey) { // control was held during click
+            if (currentRegions.length == 0 && isCurrentRegion(region)) {
+               removeCurrentRegion();
+            } else if (getCurrentRegionIndex() != -1 && isInCurrentRegions(region)) {
+               const removeIndex = getIndexInCurrentRegions(region);
+               if (removeIndex != -1) currentRegions.splice(removeIndex, 1);
+               if (currentRegions.length > 0 && isCurrentRegion(region)) { // change current region if removed
+                  currentRegion = currentRegions[0];
+               }
+            } else {
+               if (currentRegions.length < 1) currentRegions.push(currentRegion);
+               if (getIndexInCurrentRegions(region) == -1) currentRegions.push(region); // add if it doesn't already exist
+               currentRegion = region;
+               currentRegion.speaker = currentRegion.attributes.label.innerText;
+               wavesurfer.backend.seekTo(currentRegion.start); 
+            }
+            if (currentRegions.length == 1)  currentRegions = []; // clear selected regions if there is only one
+         } else if (e.shiftKey) { // shift was held during click
+            clearChapterSearch();
+            if (getCurrentRegionIndex() != -1 && getIndexOfRegion(region) != -1) {
+               if (currentRegions && currentRegions.length > 0) {
+                  if (Math.max(...getCurrentRegionsIndexes()) < getIndexOfRegion(region)) { // shifting forwards / down
+                     currentRegions = currSpeakerSet.tempSpeakerObjects.slice(Math.min(...getCurrentRegionsIndexes()), getIndexOfRegion(region)+1);
+                  } else { // shifting backwards / up
+                     currentRegions = currSpeakerSet.tempSpeakerObjects.slice(getIndexOfRegion(region), Math.max(...getCurrentRegionsIndexes())+1);
+                  }
+               } else {
+                  if (getCurrentRegionIndex() < getIndexOfRegion(region)) { // shifting forwards / down
+                     currentRegions = currSpeakerSet.tempSpeakerObjects.slice(getCurrentRegionIndex(), getIndexOfRegion(region)+1);
+                  } else { // shifting backwards / up
+                     currentRegions = currSpeakerSet.tempSpeakerObjects.slice(getIndexOfRegion(region), getCurrentRegionIndex()+1);
+                  }
+               }
+            }
+         }
+         if (changeAllCheckbox.checked) { currentRegions = getRegionsWithSpeaker(currentRegion.speaker) } 
+         reloadRegionsAndChapters();
+      }
+   }
+
+   /**
+   * Returns index of given region within the currently selected regions
+   * @param {object} region Region within currently selected regions to return index for
+   * @returns {int} Index position of region
+   */
+   function getIndexInCurrentRegions(region) {
+      for (const reg of currentRegions) {
+         const regSpeaker = reg.attributes ? reg.attributes.label.innerText : reg.speaker;
+         if (reg.start == region.start && reg.end == region.end && regSpeaker == region.attributes.label.innerText) {
+            return currentRegions.indexOf(reg);
+         }
+      }
+      return -1;
+   }
+
+   /**
+   * Returns index of region within speakerObject array
+   * @param {object} region Region to return index for
+   * @returns {int} Index position of region
+   */
+   function getIndexOfRegion(region) {
+      for (const reg of currSpeakerSet.tempSpeakerObjects) {
+         if (region.attributes && reg.start == region.start && reg.end == region.end && reg.speaker == region.attributes.label.innerText) {
+            return currSpeakerSet.tempSpeakerObjects.indexOf(reg);
+         }
+      }
+      return -1;
+   }
+
+   /** 
+   * Builds metadata-server.pl URL to retrieve audio at given version 
+   * @param {string} version GS document version to retrieve from (nminus-X)
+   */
+   function getAudioURLFromVersion(version) {
+      let base_url = gs.variables.metadataServerURL + "?a=get-archives-assocfile&site=" + gs.xsltParams.site_name + "&c=" + gs.cgiParams.c + "&d=" + gs.cgiParams.d;
+      if (version !== "current") base_url += "&dv=" + version // get fldv if not current version
+      return base_url  + "&assocname=" + gs.documentMetadata.Audio;
+   }
+
+   /** 
+   * Builds metadata-server.pl URL to retrieve CSV at given version 
+   * @param {string} version GS document version to retrieve from (nminus-X)
+   */
+   function getCSVURLFromVersion(version) {
+      let base_url = gs.variables.metadataServerURL + "?a=get-archives-assocfile&site=" + gs.xsltParams.site_name + "&c=" + gs.cgiParams.c + "&d=" + gs.cgiParams.d;
+      if (version !== "current") base_url += "&dv=" + version; // get fldv if not current version
+      return base_url  + "&assocname=" + "structured-audio.csv";
+   }
+
+   /** Version click handler, first checks if changes have been made and shows popup if true */
+   function versionClicked(e) {
+      let unsavedChanges = false;
+      if (undoStates.length > 0) { // only if changes have been made in track being changed FROM
+         let clickedVersionPos = e.target.parentElement.classList.contains('versionTop') ? 0 : 1;
+         for (const state of undoStates) {
+            if (state.changedTrack == selectedVersions[clickedVersionPos]) {
+               unsavedChanges = true;
+               break;
+            }
+         }
+      } 
+      if (unsavedChanges) {
+         const areYouSure = "There are unsaved changes.\nAre you sure you want to lose changes made in this version?";
+         if (window.confirm(areYouSure)) {
+            console.log('OK');
+            discardRegionChanges(true);
+            changeVersion(e);
+         } else {
+            console.log('CANCEL');
+            return;
+         }
+      } else changeVersion(e);
+   }
+
+   /** Changes current audio/csv set to clicked version's equivalent */
+   function changeVersion(e) {  
+      removeCurrentRegion();
+      const audio_url = getAudioURLFromVersion(e.target.id);
+      const csv_url = getCSVURLFromVersion(e.target.id);
+      versionSelectMenu.classList.remove('visible');
+      const setToUpdate = e.target.parentElement.classList.contains('versionTop') ? primarySet : secondarySet;
+      if (e.target.parentElement.classList.contains('versionTop')) {
+         if (!currSpeakerSet.isSecondary) {
+            if (dualMode) $(".region-top").remove();
+            else $(".wavesurfer-region").remove();
+            showAudioLoader();
+            // if (canvasImages[e.target.id]) { // if waveform image exists in cache
+            //    drawImageOnWaveform(canvasImages[e.target.id]);
+            // }            
+            wavesurfer.load(audio_url); // load audio
+         } else {
+            $(".region-top").remove();
+         }
+         document.getElementById('track-set-label-top').children[0].innerText = e.target.id.includes("nminus") ? e.target.id.replace("nminus-", "Previous(") + ")" : "Current"; // update top label text
+         selectedVersions[0] = e.target.id; // update the selected versions
+      } else {
+         if (currSpeakerSet.isSecondary) {
+            if (dualMode) $(".region-bottom").remove();
+            else $(".wavesurfer-region").remove();
+            showAudioLoader();
+            // if (canvasImages[e.target.id]) { // if waveform image exists in cache
+            //    drawImageOnWaveform(canvasImages[e.target.id]);
+            // }
+            wavesurfer.load(audio_url);
+         } else {
+            $(".region-bottom").remove();
+         }
+         document.getElementById('track-set-label-bottom').children[0].innerText = e.target.id.includes("nminus") ? e.target.id.replace("nminus-", "Previous(") + ")" : "Current"; // update bottom label text
+         selectedVersions[1] = e.target.id;
+      }
+      loadCSVFile(csv_url, setToUpdate, true);
+   }
+   
+   /** Utility function to download audio */
+   function downloadURI(loc, name) {
+      let link = document.createElement("a");
+      link.download = name;
+      link.href = loc;
+      link.click();
+   }
+
+   /** Document click listener for context box closure and region deselection */
+   function documentClicked(e) { // document on click
+      if (e.target.classList.contains("region-menu")) return;
+      contextMenu.classList.remove('visible'); 
+      timelineMenu.classList.remove('visible'); 
+      versionSelectMenu.classList.remove('visible'); 
+      versionSelectLabels.forEach(arrow => {
+         // arrow.style.transform = 'rotate(90deg)';
+         // arrow.style.paddingTop = '0';
+         arrow.style.display = 'inline';
+      });
+      if (editMode && e.target.tagName !== "INPUT" && e.target.tagName !== "IMG" && !e.target.classList.contains("ui-button") && !$("#audio-dropdowns").has($(e.target)).length
+         && !e.target.classList.contains("context-menu-item")) {
+         let currReg = getCurrentRegionIndex() != -1 ? currSpeakerSet.tempSpeakerObjects[getCurrentRegionIndex()].region : false; // save for deselection
+         let currRegs = getCurrentRegionsIndexes().length > 1 ? currentRegions : false; // save for deselection
+         removeCurrentRegion();
+         reloadChapterList();
+         if (currReg != false) regionLeave(currReg); // deselect curr region
+         if (currRegs != false) {
+            for (const reg of currRegs) {
+               regionLeave(reg.region); // deselect curr regions
+               regionLeave(reg.region); // deselect curr regions
+            }
+         }
+         removeRegionBounds();
+         removeButton.innerHTML = "Remove Selected Region";
+         updateRegionEditPanel();
+      }
+   }
+
+   /** Draws and returns padlock image at given parent element */
+   function drawPadlock(parent) { 
+      let lockedImg = document.createElement("img");
+      lockedImg.classList.add("region-padlock");
+      lockedImg.src = interface_bootstrap_images + "lock.svg";
+      lockedImg.title = "This region is locked. Click to unlock region.";
+      parent.prepend(lockedImg); 
+      return lockedImg;
+   }
+
+   /**
+    * Draws triple dot menu button and attaches click listener
+    * @param {object} region Region to attach menu button to
+    */
+   function drawMenuButton(region) {
+      let menuImg = document.createElement("img");
+      menuImg.src = interface_bootstrap_images + "menu.svg";
+      menuImg.classList.add("region-menu");
+      menuImg.title = "Show region options";
+      menuImg.addEventListener("click", e => {
+         audioContainer.dispatchEvent(new MouseEvent("contextmenu", { clientX: menuImg.x + 20, clientY: menuImg.y + 5 }));
+      });
+      region.element.append(menuImg);
+   }
+
+   /**
+   * Attaches a click listener to given padlock element
+   * @param padlock Element to attach listener to
+   * @param region Associated region 
+   * @param isChapter Whether padlock exists in chapter (true) or wavesurfer region (false)
+   */
+   function attachPadlockListener(padlock, region, isChapter) {
+      if (isChapter == true) {
+         padlock.addEventListener('click', () => { // attach to chapter padlock
+            let index = getIndexOfRegion(region);
+            currSpeakerSet.tempSpeakerObjects[index].locked = false;
+            padlock.classList.add('hide');
+            if (currSpeakerSet.tempSpeakerObjects[index].region.element.firstChild) currSpeakerSet.tempSpeakerObjects[index].region.element.firstChild.remove();
+            addUndoState(primarySet, secondarySet, currSpeakerSet.isSecondary, dualMode, "lockChange", index);
+         });
+      } else {
+         padlock.addEventListener('click', () => { // attach to region padlock
+            let index = getIndexOfRegion(region);
+            currSpeakerSet.tempSpeakerObjects[index].locked = false;
+            padlock.remove();
+            addUndoState(primarySet, secondarySet, currSpeakerSet.isSecondary, dualMode, "lockChange", index);
+         });
+      }
+   }
+
+   /** Locks or unlocks selected region based on its current state */
+   function toggleLockSelected(e) { // locks / unlocks selected region(s) 
+      if (e) e.stopPropagation(); 
+      if (getCurrentRegionIndex() != -1 && currentRegions.length <= 1) { // single selected
+         let currIndex = getCurrentRegionIndex(); 
+         currSpeakerSet.tempSpeakerObjects[currIndex].locked = !e.target.innerText.includes("Unlock"); 
+         if (currSpeakerSet.tempSpeakerObjects[currIndex].locked) {
+            chapters.childNodes[currIndex].childNodes[1].classList.remove('hide'); 
+            let lock = drawPadlock(currSpeakerSet.tempSpeakerObjects[currIndex].region.element);
+            attachPadlockListener(lock, currSpeakerSet.tempSpeakerObjects[currIndex].region, false);
+            contextLock.innerText = "Unlock Selected";
+         } else {
+            chapters.childNodes[currIndex].childNodes[1].classList.add('hide');
+            if (currSpeakerSet.tempSpeakerObjects[currIndex].region.element.getElementsByClassName("region-padlock").length > 0) {
+               currSpeakerSet.tempSpeakerObjects[currIndex].region.element.getElementsByClassName("region-padlock")[0].remove();
+            }
+            contextLock.innerText = "Lock Selected";
+         }
+      } else if (currentRegions.length > 1) { // multiple selected
+         let toLock = !e.target.innerText.includes("Unlock");
+         for (const idx of getCurrentRegionsIndexes()) {
+            currSpeakerSet.tempSpeakerObjects[idx].locked = toLock;
+            if (currSpeakerSet.tempSpeakerObjects[idx].locked) {
+               chapters.childNodes[idx].childNodes[1].classList.remove('hide'); 
+               if (currSpeakerSet.tempSpeakerObjects[idx].region.element.getElementsByClassName("region-padlock").length == 0) {
+                  let lock = drawPadlock(currSpeakerSet.tempSpeakerObjects[idx].region.element);
+                  attachPadlockListener(lock, currSpeakerSet.tempSpeakerObjects[idx].region, false);
+               }
+               contextLock.innerText = "Unlock Selected";
+            } else {
+               chapters.childNodes[idx].childNodes[1].classList.add('hide');
+               if (currSpeakerSet.tempSpeakerObjects[idx].region.element.getElementsByClassName("region-padlock").length > 0) {
+                  currSpeakerSet.tempSpeakerObjects[idx].region.element.getElementsByClassName("region-padlock")[0].remove();
+               }
+               contextLock.innerText = "Lock Selected";
+            }
+         }
+         if (document.getElementById("context-menu-lock-2")) document.getElementById("context-menu-lock-2").remove();
+      }
+      addUndoState(primarySet, secondarySet, currSpeakerSet.isSecondary, dualMode, "lockChange", getCurrentRegionIndex());
+   }
+
+   /** TODO */
+   function timelineMenuHideClicked(e) { // hides all regions and chapter/edit divs
+      if (!e.target.children[0].checked) {
+         e.target.children[0].checked = true;
+         timelineMenuDualMode.classList.add('disabled');
+         timelineMenuRegionConflict.classList.add('disabled');
+         timelineMenuSpeakerConflict.classList.add('disabled');
+         if (editPanel.style.height != "0px") toggleEditMode();
+         if (chapters.style.height != "0px") toggleChapters();
+         $('.wavesurfer-region').fadeOut(100);
+      }
+      else {
+         e.target.children[0].checked = false;
+         timelineMenuDualMode.classList.remove('disabled');
+         timelineMenuRegionConflict.classList.remove('disabled');
+         timelineMenuSpeakerConflict.classList.remove('disabled');
+         let fadeIn = true;
+         if (timelineMenuRegionConflict.firstElementChild.checked) {
+            showStartStopConflicts(e, true);
+            fadeIn = false;
+         }
+         if (timelineMenuSpeakerConflict.firstElementChild.checked) {
+            showSpeakerNameConflicts(e, true);
+            fadeIn = false;
+         }
+         if (fadeIn) $('.wavesurfer-region').fadeIn(100); 
+      }
+   }
+
+   function chapterSearchInputChange(e) { // filters chapters and regions by given speaker name
+      if (e.isTrusted) { // triggered from user action
+         if (document.getElementById("chapter-alert")) document.getElementById("chapter-alert").remove();
+         let matches = 0;
+         for (const idx in chapters.children) {
+            if (chapters.children[idx].firstChild && chapters.children[idx].classList.contains("chapter") && currSpeakerSet.tempSpeakerObjects[idx]
+               && currSpeakerSet.tempSpeakerObjects[idx].region && currSpeakerSet.tempSpeakerObjects[idx].region.element) {
+               if (e.composed) removeCurrentRegion(); // composed true if called from input, false if manually triggered event
+               if (!chapters.children[idx].firstChild.innerText.toLowerCase().includes(e.target.value.toLowerCase())) {
+                  chapters.children[idx].style.display = "none";
+                  currSpeakerSet.tempSpeakerObjects[idx].region.element.style.display = "none";
+               } else {
+                  chapters.children[idx].style.display = "flex";
+                  currSpeakerSet.tempSpeakerObjects[idx].region.element.style.display = "";
+                  matches++;
+                  if (e.target.value.length > 0) { 
+                     const reg = new RegExp(e.target.value, 'gi'); // [g]lobal, [i]gnore case
+                     chapters.children[idx].firstChild.innerHTML = chapters.children[idx].firstChild.innerText.replace(reg, '<b>$&</b>'); // highlights matching text
+                  } else {
+                     chapters.children[idx].firstChild.innerHTML = chapters.children[idx].firstChild.innerText; // highlights matching text
+                  }
+               }
+            }
+         }
+         flashChapters();
+         if (matches == 0) {
+            const msg = document.createElement("span");
+            msg.innerHTML = "No Matches!";
+            msg.id = "chapter-alert";
+            chapters.prepend(msg);
+         }  
+      }
+   }
+
+   function clearChapterSearch() { // clears search filter and updates results
+      chapterSearchInput.value = "";
+      chapterSearchInput.dispatchEvent(new Event("input"));
+   }
+
+   function showStartStopConflicts(e, forceRun) { // hides regions that have identical start/stop time
+      removeCurrentRegion();
+      if ((dualMode && !timelineMenuRegionConflict.children[0].checked) || forceRun) {
+         timelineMenuRegionConflict.children[0].checked = true;
+         let primHide = [];
+         let secHide = [];
+         if (!timelineMenuSpeakerConflict.children[0].checked) hideAll();
+         for (const primIdx in primarySet.tempSpeakerObjects) {
+            for (const secIdx in secondarySet.tempSpeakerObjects) {
+               if (regionsMatch(primarySet.tempSpeakerObjects[primIdx], secondarySet.tempSpeakerObjects[secIdx])) { // if regions have same start/end time, hide
+                  primHide.push(primIdx);
+                  secHide.push(secIdx);
+               }
+            }
+         }
+         for (const primIdx in primarySet.tempSpeakerObjects) {
+            if (!primHide.includes(primIdx)) {
+               primarySet.tempSpeakerObjects[primIdx].region.element.style.display = "";
+               if (primaryCaret.src.includes('fill')) chapters.children[primIdx].style.display = "flex";
+            }
+         }
+         for (const secIdx in secondarySet.tempSpeakerObjects) {
+            if (!secHide.includes(secIdx)) {
+               secondarySet.tempSpeakerObjects[secIdx].region.element.style.display = "";
+               if (secondaryCaret.src.includes('fill')) chapters.children[secIdx].style.display = "flex";
+            }
+         }
+      } else {
+         timelineMenuRegionConflict.children[0].checked = false;
+         if (timelineMenuSpeakerConflict.children[0].checked) showSpeakerNameConflicts(e, true);
+         else clearConflicts();
+      }
+   }
+   
+   function showSpeakerNameConflicts(e, forceRun) { // shows regions that have identical start/stop time but different names 
+      removeCurrentRegion();
+      if ((dualMode && !timelineMenuSpeakerConflict.children[0].checked) || forceRun) {
+         timelineMenuSpeakerConflict.children[0].checked = true;
+         if (!timelineMenuRegionConflict.children[0].checked) hideAll();
+         for (const primIdx in primarySet.tempSpeakerObjects) {
+            for (const secIdx in secondarySet.tempSpeakerObjects) {
+               if (regionsMatch(primarySet.tempSpeakerObjects[primIdx], secondarySet.tempSpeakerObjects[secIdx]) &&
+               primarySet.tempSpeakerObjects[primIdx].speaker != secondarySet.tempSpeakerObjects[secIdx].speaker) { // hide if regions match but names don't
+                  primarySet.tempSpeakerObjects[primIdx].region.element.style.display = "";
+                  secondarySet.tempSpeakerObjects[secIdx].region.element.style.display = "";
+                  if (primaryCaret.src.includes('fill')) chapters.children[primIdx].style.display = "flex";
+                  else chapters.children[secIdx].style.display = "flex";
+               }
+            }
+         }
+      } else {
+         timelineMenuSpeakerConflict.children[0].checked = false;
+         if (timelineMenuRegionConflict.children[0].checked) showStartStopConflicts(e, true);
+         else clearConflicts();
+      }
+   }
+
+   function clearConflicts() { // shows all regions and chapters
+      for (const primIdx in primarySet.tempSpeakerObjects) {
+         for (const secIdx in secondarySet.tempSpeakerObjects) {
+            primarySet.tempSpeakerObjects[primIdx].region.element.style.display = "";
+            secondarySet.tempSpeakerObjects[secIdx].region.element.style.display = "";
+            chapters.children[primIdx].style.display = "flex";
+         }
+      }
+   }
+
+   function hideAll() { // hides all regions and chapters
+      for (const primIdx in primarySet.tempSpeakerObjects) {
+         for (const secIdx in secondarySet.tempSpeakerObjects) {
+            primarySet.tempSpeakerObjects[primIdx].region.element.style.display = "none";
+            secondarySet.tempSpeakerObjects[secIdx].region.element.style.display = "none";
+            chapters.children[primIdx].style.display = "none";
+         }
+      }
+   }
+
+   function timelineMenuToggle(e) { // shows / hides timeline menu
+      e.stopPropagation();
+      if (timelineMenu.classList.contains('visible')) {
+         timelineMenu.classList.remove('visible');
+         e.target.style.transform = 'rotate(0deg)';
+      }
+      else {
+         timelineMenu.classList.add('visible');
+         e.target.style.transform = 'rotate(-90deg)';
+      }
+   }
+
+   function handleRegionSnap(region, e) { // clips region to opposite set region if nearby, called on region update (lots)
+      if (editMode && currentRegion && !wavesurfer.isPlaying()) { 
+         removeRegionBounds();
+         setHoverSpeaker(region.element.style.left, currentRegion.speaker);
+         drawRegionBounds(region, wave.scrollLeft, "FireBrick"); // gets set to red if currRegion
+         if (e && e.action === "resize" && dualMode && editMode && !ctrlDown) { // won't actuate on drag
+            let oppositeSet = secondarySet; // look down
+            if (currSpeakerSet.isSecondary) oppositeSet = primarySet; // look up
+            if (e.direction === "left") {
+               region.update({ start: getSnapValue(region.start, oppositeSet.tempSpeakerObjects)});
+            } else if (e.direction === "right") {
+               region.update({ end: getSnapValue(region.end, oppositeSet.tempSpeakerObjects)});
+            }
+         }
+         if (e && (e.action === "resize" || e.action === "drag")) {
+            setInputInSeconds(startTimeInput, region.start);
+            setInputInSeconds(endTimeInput, region.end);
+         }
+      }
+   }
+
+   /** 
+   * Returns snap value if near [snapRadius] adjacent region edge
+   * @param newDragPos Drag position in seconds to check for
+   * @param speakerSet Adjacent region set
+   * @returns {number} If found, returns snapped position, otherwise returns input position
+   */
+   function getSnapValue(newDragPos, speakerSet) { 
+      const snapRadius = 1;      
+      for (const region of speakerSet) { // scan opposite region for potential snapping points
+         if (newDragPos > parseFloat(region.start) - snapRadius && newDragPos < parseFloat(region.start) + snapRadius) { 
+            snappedTo = "start";
+            if (snappedToX == 0) snappedToX = waveformCursorX;
+            return region.start; 
+         }
+         if (newDragPos > parseFloat(region.end) - snapRadius && newDragPos < parseFloat(region.end) + snapRadius) {
+            snappedTo = "end";
+            if (snappedToX == 0) snappedToX = waveformCursorX;
+            return region.end; 
+         }
+         if (snappedTo !== "none" && (waveformCursorX - snappedToX > 10 || waveformCursorX - snappedToX < -10)) {
+            snappedTo = "none";
+            snappedToX = 0;
+            return cursorPos;
+         }
+      }
+      return newDragPos;
+   }
+
+   function mmssToSeconds(input) {
+      const arr = input.split(":");
+      if (arr.length == 2) {
+         return (parseInt(arr[0]) * 60) + parseInt(arr[1]);
+      } else if (arr.length == 3) {
+         return (parseInt(arr[0]) * 3600) + (parseInt(arr[1]) * 60) + parseInt(arr[2]);
+      } else {
+         console.error("unexpected input to mmssToSeconds: " + input);
+      }
+   }
+
+   function removeRightClicked(e) { 
+      if (!e.target.classList.contains('disabled')) {
+         removeRegion();
+      }
+   }
+
+   function replaceSelected(e) { // moves selected region across, replaces and removes any overlapping regions in the opposite set 
+      if (!e.target.classList.contains('disabled')) {
+         let destinationSet = secondarySet; // replace down
+         if (currSpeakerSet.isSecondary) destinationSet = primarySet; // replace up
+         let currItems = [currentRegion];
+         if (currentRegions && currentRegions.length > 0) currItems = currentRegions;
+         for (let idx = 0; idx < currItems.length; idx++) { // handles both currentRegion and currentRegions
+            for (let idy = 0; idy < destinationSet.tempSpeakerObjects.length; idy++) {
+               const reg = destinationSet.tempSpeakerObjects[idy];
+               if ((parseFloat(reg.start) >= parseFloat(currItems[idx].start) && parseFloat(reg.start) <= parseFloat(currItems[idx].end)) || 
+                   (parseFloat(reg.start) <= parseFloat(currItems[idx].start) && parseFloat(reg.end) >= parseFloat(currItems[idx].start))) {
+                  destinationSet.tempSpeakerObjects.splice(idy, 1); // remove subsequent region
+                  idy--;
+               }
+            }
+         }
+         copySelected(e, true);
+         reloadRegionsAndChapters();
+         addUndoState(primarySet, secondarySet, currSpeakerSet.isSecondary, dualMode, "replace", getCurrentRegionIndex());
+      }
+   }
+
+   function containsRegion(set, region) { // true if given region exists in given set
+      for (const item of set) {
+         if (regionsMatch(region, item)) return true;
+      }
+      return false;
+   }
+
+   function overdubSelected(e) { // moves selected region across, merges any overlapping regions in the opposite set 
+      if (!e.target.classList.contains('disabled')) {
+         let destinationSet = secondarySet; // replace down
+         if (currSpeakerSet.isSecondary) destinationSet = primarySet; // replace up
+         let backup;
+         if (destinationSet.isSecondary) backup = cloneSpeakerObjectArray(primarySet.tempSpeakerObjects); // saves selected set as this process changes values in selected set
+         else backup = cloneSpeakerObjectArray(secondarySet.tempSpeakerObjects);
+         copySelected(e, true);
+         if (!currentRegions || currentRegions.length < 1) { // overdub single
+            handleSameSpeakerOverlap(getCurrentRegionIndex(), destinationSet, true);
+         } else { // overdub multiple
+            for (const item of getCurrentRegionsIndexes().reverse()) { // reverse indexes so index doesn't break when regions are removed
+               handleSameSpeakerOverlap(item, destinationSet, true);
+            }
+         }
+         if (destinationSet.isSecondary) primarySet.tempSpeakerObjects = backup; 
+         else secondarySet.tempSpeakerObjects = backup;
+         addUndoState(primarySet, secondarySet, currSpeakerSet.isSecondary, dualMode, "overdub", getCurrentRegionIndex());
+         reloadRegionsAndChapters();
+      }
+   }
+
+   function copySelected(e, skipUndoState) { // copies region to opposite set [utility function for replace and overdub]
+      if (!e.target.classList.contains('disabled')) {
+         let destinationSet = secondarySet; // copy down
+         if (currSpeakerSet.isSecondary) destinationSet = primarySet // copy up
+            const selectedRegion = currentRegion;
+         if (currentRegions && currentRegions.length > 1) { // copy multiple
+            destinationSet.tempSpeakerObjects.push(...selectedRegions); // append current regions to dest. set
+            // currSpeakerSet.isSecondary ? caretClicked("primary-caret") : caretClicked("secondary-caret"); // swap selected speakerSet (clears current regions)
+            // for (const reg of destinationSet.tempSpeakerObjects) { // restore currentRegions in dest. set
+            //    for (const selReg of selectedRegions) {
+            //       if (regionsMatch(reg, selReg) && !containsRegion(currentRegions, reg)) { 
+            //          currentRegions.push(reg);
+            //       }
+            //    }
+            //    if (regionsMatch(reg, selectedRegion)) { currentRegion = reg; }
+            // }
+         } else { // copy singular
+            destinationSet.tempSpeakerObjects.push(selectedRegion); // append current region to dest. set
+            // currSpeakerSet.isSecondary ? caretClicked("primary-caret") : caretClicked("secondary-caret"); // swap selected speakerSet (clears current regions)
+            // for (const reg of destinationSet.tempSpeakerObjects) { // restore currentRegion in dest. set
+            //    if (regionsMatch(reg, selectedRegion)) { 
+            //       currentRegion = reg; 
+            //       break; 
+            //    }
+            // }
+         }
+         reloadRegionsAndChapters();
+         if (!skipUndoState) addUndoState(primarySet, secondarySet, currSpeakerSet.isSecondary, dualMode, "copy", getCurrentRegionIndex());
+      }
+   }
+
+   /**
+    * Shows context menu with various region options
+    * @param {MouseEvent} e Either right click event or left click triple menu click event 
+    */
+   function onRightClick(e) {
+      if ((e.target.classList.contains("wavesurfer-region") || e.target.id === "audioContainer" || e.target.classList.contains("chapter")) && editMode) {
+         e.preventDefault();
+         e.stopPropagation();
+         // set current region to clicked region LLLLLLL
+         let clickedRegion; // could be used to select clicked region
+         for (const reg of currSpeakerSet.tempSpeakerObjects) {
+            if (reg.region.element.title == e.target.title) {
+               clickedRegion = reg;
+               break;
+            }
+         }
+         // console.log(clickedRegion)
+         contextMenu.classList.add("visible");
+         if (e.clientX + 200 > $(window).width()) contextMenu.style.left = ($(window).width() - 220) + "px"; // ensure menu doesn't clip on right
+         else contextMenu.style.left = e.clientX + "px";
+         contextMenu.style.top = e.clientY + "px";
+
+         let lockConflict = false;
+         if (currentRegions.length > 1) {
+            let firstIsLocked = 0;
+            for (const reg of currentRegions) {
+               if (firstIsLocked === 0) firstIsLocked = reg.locked;
+               else if (firstIsLocked != reg.locked) lockConflict = true;
+            }
+         }
+         if (lockConflict) {
+            contextLock.classList.remove('disabled');
+            if (!document.getElementById("context-menu-lock-2")) {
+               let contextLock2 = contextLock.cloneNode();
+               contextLock.innerText = "Lock Selected";
+               contextLock2.innerText = "Unlock Selected";
+               contextLock2.id = "context-menu-lock-2";
+               contextLock2.addEventListener('click', toggleLockSelected);
+               contextLock.parentNode.insertBefore(contextLock2, contextLock.nextSibling);
+            }
+         } else {
+            contextLock.classList.remove('disabled');
+            let currIndex = getCurrentRegionIndex();
+            if (currSpeakerSet.tempSpeakerObjects[currIndex] && currSpeakerSet.tempSpeakerObjects[currIndex].locked) {
+               contextLock.innerText = "Unlock Selected";
+               chapters.childNodes[currIndex].childNodes[1].classList.remove('hide');  
+            } else if (currSpeakerSet.tempSpeakerObjects[currIndex]) {
+               contextLock.innerText = "Lock Selected";
+               chapters.childNodes[currIndex].childNodes[1].classList.add('hide');
+            } 
+         }
+
+         if (dualMode && currentRegion && currentRegion.speaker !== "") {
+            contextReplace.classList.remove('disabled');
+            contextOverdub.classList.remove('disabled');
+         } else {
+            contextDelete.classList.add('disabled');
+            contextLock.classList.add('disabled');
+            contextReplace.classList.add('disabled');
+            contextOverdub.classList.add('disabled');
+         }
+         if (currentRegion && currentRegion.speaker !== "") {
+            contextDelete.classList.remove('disabled');
+            contextLock.classList.remove('disabled');
+         }
+         if (dualMode) { // manipulate context texts
+            const actionDirection = currSpeakerSet.isSecondary ? "Up" : "Down";
+            contextReplace.innerHTML = "Replace Selected " + actionDirection;
+            contextOverdub.innerHTML = "Overdub Selected " + actionDirection;
+         } 
+      }
+   }
+
+   function saveSelected(e) {
+      let csvContent = "data:text/csv;charset=utf-8," + currSpeakerSet.speakerObjects.map(item => "\n" + [item.speaker, item.start, item.end].join());
+      console.log(csvContent);
+      var encodedUri = encodeURI(csvContent);
+      window.open(encodedUri);
+   }
+
+   function keyUp(e) { // key up listener
+      if (e.key == "Control") ctrlDown = false;
+      if (e.target.tagName !== "INPUT") {
+         if (e.code === "Backspace" || e.code === "Delete") removeRegion();
+         else if (e.code === "Space") { wavesurfer.playPause(); }
+         else if (e.code === "ArrowLeft") wavesurfer.skipBackward();
+         else if (e.code === "ArrowRight") wavesurfer.skipForward();
+         else if (e.code === "KeyL") toggleLockSelected(e);
+      }
+      if (e.code == "KeyZ" && e.ctrlKey) undo();
+      else if (e.code == "KeyY" && e.ctrlKey) redo();
+   }
+
+   function keyDown(e) { // keydown listener
+      if (e.key == "Control") ctrlDown = true;
+      if (e.code == "Space" && e.target.tagName.toLowerCase() != "input") e.preventDefault();
+   }
+
+   /**
+   * Shows / hides secondary speaker set
+   * @param skipUndoState Utility param - skips the addition of an undo state
+   * @param overrideValue Utility param - overrides the checkbox state
+   */
+   function dualModeChanged(skipUndoState, overrideValue) {
+      if (overrideValue) dualModeCheckbox.checked = overrideValue == "true" ? true : false;
+      else dualModeCheckbox.checked = !dualModeCheckbox.checked; // toggle dual mode checkbox
+      dualMode = dualModeCheckbox.checked; 
+      currSpeakerSet = primarySet;
+      if (!dualMode) removeCurrentRegion();
+      clearChapterSearch();
+      reloadRegionsAndChapters();
+      if (dualMode) {
+         if (!secondaryLoaded) {
+            // const secondaryCSVURL = "http://localhost:8383/greenstone3/cgi-bin/metadata-server.pl?a=get-archives-assocfile&site=" + gs.xsltParams.site_name + "&c=" + gs.collectionMetadata.indexStem + 
+            //                         "&d=" + gs.documentMetadata.Identifier + "&assocname=structured-audio.csv&dv=nminus-1";
+            const secondaryCSVURL = gs.variables.metadataServerURL + "?a=get-archives-assocfile&site=" + gs.xsltParams.site_name + "&c=" + gs.collectionMetadata.indexStem + 
+                                    "&d=" + gs.documentMetadata.Identifier + "&assocname=structured-audio.csv&dv=nminus-1";
+            loadCSVFile(secondaryCSVURL, secondarySet);
+            secondaryLoaded = true; // ensure secondarySet doesn't get re-read > once
+         }
+         document.getElementById("caret-container").style.display = "flex";
+         timelineMenuRegionConflict.classList.remove("disabled");
+         timelineMenuSpeakerConflict.classList.remove("disabled");
+         $('#track-set-label-bottom').fadeIn(100);
+         selectedVersions[1] = document.getElementById('track-set-label-bottom').children[0].innerText;
+      } else {
+         caretClicked('primary-caret');
+         document.getElementById("caret-container").style.display = "none";
+         selectedVersions.splice(1, 1); // trim to one version in array
+         timelineMenuRegionConflict.firstElementChild.checked = false;
+         timelineMenuSpeakerConflict.firstElementChild.checked = false;
+         timelineMenuRegionConflict.classList.add("disabled");
+         timelineMenuSpeakerConflict.classList.add("disabled");
+         $('#track-set-label-bottom').fadeOut(100);
+      }
+      currSpeakerSet = primarySet;
+      if (!skipUndoState) addUndoState(primarySet, secondarySet, currSpeakerSet.isSecondary, dualMode, "dualModeChange", getCurrentRegionIndex());
+   } 
+
+   /**
+   * Changes selected speaker set
+   * @param {string} id ID of clicked caret image
+   */
+   function caretClicked(id) {
+      clearChapterSearch();
+      if (id === "primary-caret") {
+         currSpeakerSet = primarySet;
+         swapCarets(true);
+      } else if (id === "secondary-caret") {
+         currSpeakerSet = secondarySet;
+         swapCarets(false);
+      }
+   }
+
+   /**
+   * Loads destination waveform and audio if required, updates caret images
+   * @param {boolean} toPrimary whether destination set is primary (true) or secondary (false)
+   */
+   function swapCarets(toPrimary) {
+      const currCaretIsPrimary = primaryCaret.src.includes("fill") ? true : false; // initial value before swap
+      if ((toPrimary && !currCaretIsPrimary) || (!toPrimary && currCaretIsPrimary)) { 
+         removeCurrentRegion(); // ensure currentRegion is only removed if changing speakerSet
+         flashChapters(); 
+         reloadChapterList();
+      } 
+      if (toPrimary) {
+         if (!currCaretIsPrimary) {
+            showAudioLoader();
+            if (canvasImages[selectedVersions[0]]) { // if waveform image exists in cache
+               drawImageOnWaveform(canvasImages[selectedVersions[0]]);
+               // hideAudioLoader();
+            } 
+            // else showAudioLoader();
+            let url = gs.variables.metadataServerURL + "?a=get-archives-assocfile&site=" + gs.xsltParams.site_name + 
+                        "&c=" + gs.cgiParams.c + "&d=" + gs.cgiParams.d + "&assocname=" + gs.documentMetadata.Audio;
+            if (selectedVersions[0] !== "current") {
+               if (selectedVersions[0].includes("Previous")) url += "&dv=" + selectedVersions[0].replace("Previous(", "nminus-").replace(")", "");
+               else url += "&dv=" + selectedVersions[0];
+            }
+            wavesurfer.load(url); 
+         }
+         primaryCaret.src = interface_bootstrap_images + "caret-right-fill.svg";
+         secondaryCaret.src = interface_bootstrap_images + "caret-right.svg";
+      } else {
+         if (currCaretIsPrimary) {
+            showAudioLoader();
+            if (canvasImages[selectedVersions[1]]) { 
+               drawImageOnWaveform(canvasImages[selectedVersions[1]]);
+               // hideAudioLoader();
+            } 
+            // else showAudioLoader();
+            let url = gs.variables.metadataServerURL + "?a=get-archives-assocfile&site=" + gs.xsltParams.site_name + 
+                        "&c=" + gs.cgiParams.c + "&d=" + gs.cgiParams.d + "&assocname=" + gs.documentMetadata.Audio;
+            if (selectedVersions[1] !== "current") {
+               if (selectedVersions[1].includes("Previous")) url += "&dv=" + selectedVersions[1].replace("Previous(", "nminus-").replace(")", "");
+               else url += "&dv=" + selectedVersions[1];
+            }
+            wavesurfer.load(url); 
+         }
+         primaryCaret.src = interface_bootstrap_images + "caret-right.svg";
+         secondaryCaret.src = interface_bootstrap_images + "caret-right-fill.svg";
+      }
+   }
+
+   /**
+   * Shows spinning loader over waveform, hides regions
+   */
+   function showAudioLoader() {
+      $('.wavesurfer-region').fadeOut(100);
+      $(".chapter").fadeOut(100);
+      $(".track-set-label").fadeOut(100);
+      waveformSpinner.style.display = 'block';
+      loader.style.display = "inline";
+      for (const ele of editPanel.children) ele.classList.add("disabled");
+      playPauseButton.classList.add("disabled");
+   }
+
+   /**
+   * Hides spinning loader, brings back regions
+   */
+   function hideAudioLoader() {
+      $('.wavesurfer-region').fadeIn(100);
+      $(".chapter").fadeIn(100);
+      $("#track-set-label-top").fadeIn(100);
+      if (dualMode) $('#track-set-label-bottom').fadeIn(100);
+      waveformSpinner.style.display = 'none';
+      loader.style.display = "none";
+      for (const ele of editPanel.children) ele.classList.remove("disabled");
+      updateRegionEditPanel();
+      playPauseButton.classList.remove("disabled");
+   }
+
+   /**
+   * Draws given image URL on waveform 
+   * @param image URL of image to be drawn
+   */
+   function drawImageOnWaveform(image) {
+      // console.log('draw waveform image from cache')
+      if (document.getElementById('new-canvas')) document.getElementById('new-canvas').remove();
+      var newCanvas = document.createElement("div");
+      newCanvas.id = "new-canvas";
+      newCanvas.style.width = wavesurfer.drawer.canvases[0].wave.width + 'px';
+      newCanvas.style.height = '140px';
+      newCanvas.style.backgroundImage = "url('" + image + "')";
+      waveformContainer.appendChild(newCanvas); 
+   }
+
+   /**
+   * Regenerates chapter list to update any changes made in speakerSet
+   */
+   function reloadChapterList() { 
+      chapters.innerHTML = "";
+      for (let i = 0; i < currSpeakerSet.tempSpeakerObjects.length; i++) {
+         let chapter = document.createElement("div"); 
+         chapter.classList.add("chapter");
+         chapter.id = "chapter" + i;
+         let speakerName = document.createElement("span");
+         speakerName.classList.add("speakerName");
+         speakerName.innerText = currSpeakerSet.tempSpeakerObjects[i].speaker;
+         let regionLocked = document.createElement("img");
+         regionLocked.src = interface_bootstrap_images + "lock.svg"; 
+         regionLocked.classList.add("speakerLocked", "hide"); 
+         attachPadlockListener(regionLocked, currSpeakerSet.tempSpeakerObjects[i].region, true);
+         if (currSpeakerSet.tempSpeakerObjects[i].locked && editMode) regionLocked.classList.remove("hide");
+         let speakerTime = document.createElement("span"); 
+         speakerTime.classList.add("speakerTime"); 
+         speakerTime.innerHTML = minutize(currSpeakerSet.tempSpeakerObjects[i].start) + " - " + minutize(currSpeakerSet.tempSpeakerObjects[i].end) + "s";
+         chapter.appendChild(speakerName);
+         chapter.appendChild(regionLocked);
+         chapter.appendChild(speakerTime);
+         chapter.addEventListener("click", chapterClicked);
+         chapter.addEventListener("mouseenter", e => { chapterEnter(Array.from(e.target.parentElement.children).indexOf(e.target)) });
+         chapter.addEventListener("mouseleave", e => { chapterLeave(Array.from(e.target.parentElement.children).indexOf(e.target)) });
+         if (chapterSearchInput.value.length > 0 && !speakerName.innerText.toLowerCase().includes(chapterSearchInput.value.toLowerCase())) {
+            chapter.style.display = "none";
+            currSpeakerSet.tempSpeakerObjects[i].region.element.style.display = "none";
+         }
+         chapters.appendChild(chapter);
+      }
+   }
+
+   /**
+   * Shows / hides chapter section
+   */
+   let toggleChapters = function() {
+      if (chapters.style.height == "0px") {
+         chapters.style.height = "90%";
+         chaptersContainer.style.height = "30vh";
+         chapterSearchInput.placeholder = "Filter by Name...";
+      } else {
+         chapters.style.height = "0px";
+         chaptersContainer.style.height = "0px";
+         chapterSearchInput.placeholder = "";
+      }
+   }
+
+   /**
+   * Object representing elements of a diarization output
+   * @param {boolean} isSecondary Whether or not the set is secondary/bottom (true) or primary/top (false)
+   * @param {Array} uniqueSpeakers Array of all unique speaker names within the diarization data, used for colouring regions
+   * @param {Array} speakerObjects Array of objects containing speaker start/stop times and names
+   * @param {Array} tempSpeakerObjects Temporary version of speakerObjects, which can be reverted back to if required 
+   */
+   function SpeakerSet(isSecondary, uniqueSpeakers, speakerObjects, tempSpeakerObjects) {
+      this.isSecondary = isSecondary;
+      this.uniqueSpeakers = uniqueSpeakers;
+      this.speakerObjects = speakerObjects;
+      this.tempSpeakerObjects = tempSpeakerObjects;
+   }
+
+   let primarySet = new SpeakerSet(false, [], [], [], []);
+   let secondarySet = new SpeakerSet(true, [], [], [], []);
+   let currSpeakerSet = primarySet;
+
+   /**
+   * Reads diarization CSV file and populates speakerSet
+   * @param {string} filename Source destination of input CSV file
+   * @param {object} speakerSet speaker set to be populated
+   * @param {boolean} forcePopulate Forces redraw of regions and chapters
+   */
+   function loadCSVFile(filename, speakerSet, forcePopulate) { // based on: https://stackoverflow.com/questions/7431268/how-to-read-data-from-csv-file-using-javascript
+      $.ajax({
+         type: "GET",
+         url: filename,
+         dataType: "text",
+      }).then(function(data) {
+         let dataLines = data.split(/\r\n|\n/);
+         let headers;
+         let startIndex = 0;
+         speakerSet.uniqueSpeakers = []; // used for obtaining unique colours
+         speakerSet.speakerObjects = []; // list of speaker items
+
+         if (dataLines[0].split(',').length === 3) headers = ["speaker", "start", "end"]; // assume speaker, start, end
+         else if (dataLines[0].split(',').length === 4) headers = ["speaker", "start", "end", "locked"]; // assume speaker, start, end, locked
+
+         for (let i = startIndex; i < dataLines.length; i++) {
+            let data = dataLines[i].split(',');
+            if (data.length == headers.length) {
+               let item = {};
+               for (let j = 0; j < headers.length; j++) {
+                  item[headers[j]] = data[j];
+                  if (j == 0 && !speakerSet.uniqueSpeakers.includes(data[j])) {
+                     speakerSet.uniqueSpeakers.push(data[j]);
+                  }
+               }
+               if (headers.length === 3) item['locked'] = false;
+               speakerSet.speakerObjects.push(item);
+            }
+         }
+         speakerSet.tempSpeakerObjects = cloneSpeakerObjectArray(speakerSet.speakerObjects);
+         if (!speakerSet.isSecondary || forcePopulate) populateChaptersAndRegions(speakerSet); // prevents secondary set being drawn on first load
+         resetUndoStates(); // undo stack init
+      }, (error) => { console.log("loadCSVFile error:"); console.log(error); });
+   }
+
+   /**
+   * Populates chapter list div and regions on waveform with given speaker set
+   * @param {object} data Speaker set object with diarization data
+   */
+   function populateChaptersAndRegions(data) {
+      // colorbrewer is a web tool for guidance in choosing map colour schemes based on a letiety of settings.
+      // this colour scheme is designed for qualitative data
+      if (regionColourSet.length < 1) {
+         for (let i = 0; i < data.uniqueSpeakers.length; i++) { // not tested in cases where there are more than 8 speakers!!
+            const adjIdx = i%8;
+            regionColourSet[adjIdx] = { name: data.uniqueSpeakers[i], colour: colourbrewerSet[adjIdx] }
+         }
+      }
+
+      let isSelectedSet = false;
+
+      if ((!data.isSecondary && primaryCaret.src.includes("fill")) || (data.isSecondary && secondaryCaret.src.includes("fill"))) isSelectedSet = true;
+      data.tempSpeakerObjects = sortSpeakerObjectsByStart(data.tempSpeakerObjects); // sort speakerObjects by start time
+      if (isSelectedSet || !dualMode) chapters.innerHTML = ""; // clear chapter div for re-population
+      for (let i = 0; i < data.tempSpeakerObjects.length; i++) {
+         let chapter = document.createElement("div"); 
+         chapter.classList.add("chapter");
+         chapter.id = "chapter" + i;
+         let speakerName = document.createElement("span");
+         speakerName.classList.add("speakerName");
+         speakerName.innerText = data.tempSpeakerObjects[i].speaker;
+         let regionLocked = document.createElement("img");
+         regionLocked.src = interface_bootstrap_images + "lock.svg"; 
+         regionLocked.classList.add("speakerLocked", "hide"); 
+         attachPadlockListener(regionLocked, data.tempSpeakerObjects[i].region, true);
+         if (data.tempSpeakerObjects[i].locked && editMode) regionLocked.classList.remove("hide");
+         let speakerTime = document.createElement("span"); 
+         speakerTime.classList.add("speakerTime"); 
+         speakerTime.innerHTML = minutize(data.tempSpeakerObjects[i].start) + " - " + minutize(data.tempSpeakerObjects[i].end) + "s";
+         chapter.appendChild(speakerName);
+         chapter.appendChild(regionLocked);
+         chapter.appendChild(speakerTime);
+         chapter.addEventListener("click", chapterClicked);
+         chapter.addEventListener("mouseenter", e => { chapterEnter(Array.from(e.target.parentElement.children).indexOf(e.target)) });
+         chapter.addEventListener("mouseleave", e => { chapterLeave(Array.from(e.target.parentElement.children).indexOf(e.target)) });
+
+         let selected = false;
+         let dummyRegion = { start: data.tempSpeakerObjects[i].start, end: data.tempSpeakerObjects[i].end };
+
+         if ((isSelectedSet || !dualMode) && (isCurrentRegion(dummyRegion) || isInCurrentRegions(dummyRegion))) {
+            chapter.classList.add("selected-chapter");
+            selected = true;
+         }
+
+         if (isSelectedSet || !dualMode) chapters.appendChild(chapter);
+
+         let regColour;
+         if (regionColourSet.find(item => item.name === data.tempSpeakerObjects[i].speaker)) {
+            regColour = regionColourSet.find(item => item.name === data.tempSpeakerObjects[i].speaker).colour;
+         } else {
+            regionColourSet.push({ name: data.tempSpeakerObjects[i].speaker, colour: colourbrewerSet[i%8]});
+            regColour = regionColourSet.at(-1).colour;
+         }
+
+         let associatedReg = wavesurfer.addRegion({ // create associated wavesurfer region
+            id: "region" + i,
+            start: data.tempSpeakerObjects[i].start,
+            end: data.tempSpeakerObjects[i].end,
+            drag: editMode,
+            resize: editMode,
+            attributes: {
+               label: speakerName,
+            },
+            color: regColour + regionTransparency,
+            //...(selected) && {color: "rgba(255,50,50,0.5)"},
+         });
+	 // I think I checked with Finn that this fix by Dr Bainbridge is fine:
+	 if(selected) {
+	     associatedReg.color="rgba(255,50,50,0.5)";
+	 }
+	  
+         data.tempSpeakerObjects[i].region = associatedReg;
+         if (selected && data.tempSpeakerObjects[i].locked) { // add padlock to regions if they are selected and locked
+            let lock = drawPadlock(associatedReg.element);
+            attachPadlockListener(lock, associatedReg, false);
+         }
+         if (selected) drawMenuButton(associatedReg);
+      }
+      if (waveformSpinner.style.display == 'block') $(".wavesurfer-region").fadeOut(100); // keep regions hidden until wavesurfer.load() has finished
+      let handles = document.getElementsByTagName('handle');
+      for (const handle of handles) handle.addEventListener('mousedown', () => mouseDown = true);
+
+      let regions = document.getElementsByTagName("region");
+      if (dualMode) {
+         if (document.getElementsByClassName("region-top").length == 0) {
+            for (const reg of regions) {
+               if (reg.classList.length == 1) reg.classList.add("region-top"); 
+            }
+         } else {
+            for (const rego of regions) {
+               if (!rego.classList.contains("region-top") && rego.classList.length == 1) rego.classList.add("region-bottom");
+            }
+         }
+      }
+      if (editMode) for (const reg of regions) reg.style.setProperty("z-index", "3", "important");
+      else for (const reg of regions) reg.style.setProperty("z-index", "1", "important");
+
+      chapterSearchInput.dispatchEvent(new Event("input"));
+   }
+
+   function loadJSONFile(filename) {
+      $.ajax({
+         type: "GET",
+         url: filename,
+         dataType: "text",
+      }).then(function(data){ populateWords(JSON.parse(data)) }, (error) => { console.log("loadJSONFile error:"); console.log(error); });
+   }
+
+   function populateWords(data) { // populates word section and adds regions to waveform
+      let transcription = data.transcription;
+      let words = data.words;
+      let wordContainer = document.createElement("div");
+      wordContainer.id = "word-container";
+      for (let i = 0; i < words.length; i++) {
+         let word = document.createElement("span");
+         word.id = "word" + i;
+         word.classList.add("word");
+         word.innerHTML = transcription.split(" ")[i];
+         word.addEventListener("click", e => { wordClicked(data, e.target.id) });
+         word.addEventListener("mouseover", e => { chapterEnter(Array.from(e.target.parentElement.children).indexOf(e.target)) });
+         word.addEventListener("mouseleave", e => { chapterLeave(Array.from(e.target.parentElement.children).indexOf(e.target)) });
+         wordContainer.appendChild(word);
+         wavesurfer.addRegion({
+            id: "region" + i,
+            start: words[i].startTime,
+            end: words[i].endTime,
+            drag: false,
+            resize: false,
+            color: "rgba(255, 255, 255, 0.1)",
+         });
+      }
+      chapters.appendChild(wordContainer);
+   }
+
+   let chapterClicked = function(e) { // plays audio from start of chapter
+      const index = Array.from(chapters.children).indexOf(e.target);
+      if (currSpeakerSet.tempSpeakerObjects[index]) {
+         let clickedRegion = currSpeakerSet.tempSpeakerObjects[index].region;
+         handleRegionClick(clickedRegion, e); 
+      }
+   }
+
+   function wordClicked(data, id) { // plays audio from start of word
+      let index = id.replace("word", "");
+      let start = data.words[index].startTime;
+      wavesurfer.play(start);
+   }
+
+   function chapterEnter(idx) {
+      let reg = currSpeakerSet.tempSpeakerObjects[idx].region;
+      regionEnter(reg);
+      setHoverSpeaker(reg.element.style.left, reg.attributes.label.innerText);
+      if (!isInCurrentRegions(reg)) {
+         removeRegionBounds();
+         drawRegionBounds(reg, wave.scrollLeft, "black");
+      }
+   }
+
+   function chapterLeave(idx) {
+      regionLeave(currSpeakerSet.tempSpeakerObjects[idx].region);
+      removeRegionBounds();
+      hoverSpeaker.innerHTML = "";
+      if (currentRegion.speaker && getCurrentRegionIndex() != -1) { 
+         setHoverSpeaker(currSpeakerSet.tempSpeakerObjects[getCurrentRegionIndex()].region.element.style.left, currentRegion.speaker);
+         drawCurrentRegionBounds();
+      } 
+   }
+   /**
+   * Handles region and chapter colours
+   * @param {object} region Region element to adjust
+   * @param {boolean} highlight Whether or not region should be white-highlighted
+   */
+   function handleRegionColours(region, highlight) { // handles region, chapter & word colours
+      if (!dualMode || (region.element.classList.contains("region-top") && primaryCaret.src.includes("fill")) || region.element.classList.contains("region-bottom") && secondaryCaret.src.includes("fill")) {
+         let colour;
+         if (highlight) {
+            colour = "rgb(81, 90, 90)";
+            regionEnter(region);
+         } else {
+            colour = "";
+            regionLeave(region);
+         }
+         if (isCurrentRegion(region) || isInCurrentRegions(region)) {
+            colour = "rgba(255, 50, 50, 0.5)";
+         }
+         if (chapters.childNodes[getIndexOfRegion(region)]) chapters.childNodes[getIndexOfRegion(region)].style.backgroundColor = colour;
+      }
+   }
+
+   function regionEnter(region) {
+      if (isCurrentRegion(region) || isInCurrentRegions(region)) {
+         region.update({ color: "rgba(255, 50, 50, 0.5)" });
+      } else {
+         region.update({ color: "rgba(255, 255, 255, 0.3)" });
+      }
+      if (editMode && currSpeakerSet.tempSpeakerObjects[getIndexOfRegion(region)] && currSpeakerSet.tempSpeakerObjects[getIndexOfRegion(region)].locked 
+         && region.element.getElementsByClassName("region-padlock").length == 0) { // hovered region is locked
+         let lock = drawPadlock(region.element);
+         attachPadlockListener(lock, region, false);
+      }
+      if (editMode && region.element.getElementsByClassName("region-menu").length == 0) {
+         drawMenuButton(region);
+      }
+   }
+
+   function regionLeave(region) { 
+      if (itemType == "chapter") {
+         if (isCurrentRegion(region) || isInCurrentRegions(region)) {
+            region.update({ color: "rgba(255, 50, 50, 0.5)" });
+         // } else if (!(wavesurfer.getCurrentTime() + 0.1 < region.end && wavesurfer.getCurrentTime() > region.start)) {
+         } else {
+            let index = region.id.replace("region", "");
+            region.update({ color: regionColourSet.find(item => item.name === currSpeakerSet.tempSpeakerObjects[index].speaker).colour + regionTransparency });
+         }
+         if (region.element.getElementsByTagName("img").length > 0 && !isCurrentRegion(region) && !isInCurrentRegions(region)) {
+            for (let child of Array.from(region.element.children)) {
+               if (child.tagName == "IMG") {
+                  child.remove();
+               }
+            }
+         }
+      } else {
+         region.update({ color: "rgba(255, 255, 255, 0.1)" });
+      }
+   }
+
+   function minutize(num) { // converts seconds to m:ss for chapters & waveform hover
+      let date = new Date(null);
+      date.setSeconds(num);
+      return date.toTimeString().split(" ")[0].substring(3);
+   }
+
+   function formatCursor(num) {
+      cursorPos = num;
+      return minutize(num);
+   }
+
+   function getLetter(val) {
+      let speakerNum = parseInt(val.replace("SPEAKER_",""));
+      return String.fromCharCode(65 + speakerNum); // 'A' == UTF-16 65
+   }
+
+   function toggleEditMode(skipDualModeToggle) { // toggles edit panel and redraws regions with resize handles
+      if (gs.variables.allowEditing === '1') {
+         toggleEditPanel();
+         updateRegionEditPanel();
+         reloadChapterList();
+      }
+   }
+
+   function toggleVersionDropdown(e) {
+      e.stopPropagation();
+      if (versionSelectMenu.classList.contains("visible")) {
+         e.target.style.display = 'inline';
+         versionSelectMenu.classList.remove("visible");
+      }
+      else {
+         e.target.style.display = 'none';
+         versionSelectMenu.classList.add("visible");
+         versionSelectMenu.style.top = "2rem";
+         versionSelectMenu.style.height = wave.clientHeight + wavesurfer.timeline.container.clientHeight + document.getElementById("audio-toolbar").clientHeight - 6 + "px";
+         if (e.target.parentElement.id.includes("top")) versionSelectMenu.classList.add("versionTop");
+         else versionSelectMenu.classList.remove("versionTop");
+         for (version of versionSelectMenu.children) { // handle disabling of regions if being viewed
+            if (selectedVersions.includes(version.id) || selectedVersions.includes(version.innerText)) version.classList.add('disabled');
+            else version.classList.remove('disabled');
+         }
+      }
+   }
+
+   function toggleEditPanel() { // show & hide edit panel
+      removeCurrentRegion();
+      hoverSpeaker.innerHTML = "";
+      if (editPanel.style.height == "0px") {
+         if (chapters.style.height == "0px") toggleChapters(); // expands chapter panel
+         editPanel.style.height = "30vh";
+         editPanel.style.padding = "0.5rem";
+         setRegionEditMode(true);
+      } else { 
+         editPanel.style.height = "0px"; 
+         editPanel.style.padding = "0px"; 
+         setRegionEditMode(false);
+      }
+   }
+
+   function setRegionEditMode(state) { 
+      editMode = state;
+      chapters.innerHTML = '';
+      $('.wavesurfer-region').hide();
+      reloadRegionsAndChapters(); // editMode sets drag/resize property when regions are redrawn
+   }
+
+   /**
+   * Handles the edit of region start time, stop time, or speaker name, updating the speaker set
+   * @param {object} region Region that has been updated
+   */
+   function handleRegionEdit(region, e) { 
+      if (region.element.classList.contains("region-bottom")) { currSpeakerSet = secondarySet; swapCarets(false) }
+      else { currSpeakerSet = primarySet; swapCarets(true) }
+      editsMade = true;
+      currentRegion = region;
+      wavesurfer.backend.seekTo(region.start);
+      let regionIndex = getCurrentRegionIndex();
+      currentRegion.speaker = currSpeakerSet.tempSpeakerObjects[regionIndex].speaker;
+      currSpeakerSet.tempSpeakerObjects[regionIndex].region = region;
+      currSpeakerSet.tempSpeakerObjects[regionIndex].start = region.start;
+      currSpeakerSet.tempSpeakerObjects[regionIndex].end = region.end;
+
+      const chaps = chapters.childNodes; // chapter list
+      chaps[regionIndex].childNodes[1].textContent = minutize(region.start) + " - " + minutize(region.end) + "s"; // update chapter item time
+      currSpeakerSet.tempSpeakerObjects[regionIndex].region.update({start: region.start, end: region.end}); // update start/end
+
+      handleSameSpeakerOverlap(getCurrentRegionIndex(), currSpeakerSet); // recalculate index in case start pos has changed
+      addUndoState(primarySet, secondarySet, currSpeakerSet.isSecondary, dualMode, "dragdrop", getCurrentRegionIndex());
+      editLockedRegion(currSpeakerSet.tempSpeakerObjects[regionIndex], chaps); 
+
+      editPanel.click(); // fixes buttons needing to be clicked twice (unknown cause!)
+   }
+
+   /**
+   * Shows popup to ensure user is aware they are editing a locked region
+   * @param {object} region Region that is being edited
+   */
+   function editLockedRegion(region) { // ensures user is aware region being edited is locked
+      if (region.locked) {
+         let confirm = false;
+         confirm = window.confirm("Editing a locked region will unlock it, are you sure you want to continue?"); 
+         if (!confirm) undo(); // undo change if no
+         else { // remove lock if yes
+            region.locked = false; 
+            if (region.region && region.region.element.firstChild) region.region.element.firstChild.remove(); // remove region padlock
+            if (chapters.childNodes[getCurrentRegionIndex()] && chapters.childNodes[getCurrentRegionIndex()].childNodes[1].tagName === "IMG") {
+               chapters.childNodes[getCurrentRegionIndex()].childNodes[1].classList.add('hide'); // remove chapter padlock
+            }
+         }
+      }
+   }
+
+   /**
+   * Merges same-speaker regions with overlapping bounds
+   * @param {int} regionIdx Index of dragged/edited region
+   * @param {object} speakerSet Speaker set dragged region exists in 
+   * @param {boolean} skipCurrentRegionUpdate Whether or not to skip the updating of current region
+   */
+   function handleSameSpeakerOverlap(regionIdx, speakerSet, skipCurrentRegionUpdate) {
+      let draggedRegion = speakerSet.tempSpeakerObjects[regionIdx]; // regionIdx may point to a different region within the for-loop after adjustments, so defined here
+      let draggedRegionSpeaker = draggedRegion.speaker;
+      for (let i = 0; i < speakerSet.tempSpeakerObjects.length; i++) {
+         if (speakerSet.tempSpeakerObjects[i].speaker === draggedRegionSpeaker && !regionsMatch(draggedRegion, speakerSet.tempSpeakerObjects[i])) { // ensure speaker name match
+            if (parseFloat(speakerSet.tempSpeakerObjects[i].start) <= parseFloat(draggedRegion.end) && parseFloat(draggedRegion.start) <= parseFloat(speakerSet.tempSpeakerObjects[i].end)) { // ensure overlap
+               draggedRegion.start = Math.min(speakerSet.tempSpeakerObjects[i].start, draggedRegion.start);
+               draggedRegion.end = Math.max(speakerSet.tempSpeakerObjects[i].end, draggedRegion.end);
+               draggedRegion.region.update({start: Math.min(speakerSet.tempSpeakerObjects[i].start, draggedRegion.start), end: Math.max(speakerSet.tempSpeakerObjects[i].end, draggedRegion.end)});
+               if (!skipCurrentRegionUpdate) currentRegion = draggedRegion;
+               speakerSet.tempSpeakerObjects[i].region.remove();
+               speakerSet.tempSpeakerObjects.splice(i, 1); // remove consumed region
+               setInputInSeconds(startTimeInput, draggedRegion.region.start); // update number inputs
+               setInputInSeconds(endTimeInput, draggedRegion.region.end);
+               i = -1; // reset for loop to support multiple consumptions
+            }
+         }
+      }
+      for (let i = 0; i < speakerSet.tempSpeakerObjects.length; i++) { // remove duplicates
+         if (speakerSet.tempSpeakerObjects[i] && speakerSet.tempSpeakerObjects[i+1]) {
+            if (regionsMatch(speakerSet.tempSpeakerObjects[i], speakerSet.tempSpeakerObjects[i+1])) {
+               speakerSet.tempSpeakerObjects[i+1].region.remove();
+               speakerSet.tempSpeakerObjects.splice(i+1, 1); // remove consumed region
+               i--;
+            }
+         }
+      }
+   }
+
+   /**
+   * Updates the edit panel elements based on various editing states
+   */
+   function updateRegionEditPanel() { 
+      if (currentRegion && currentRegion.speaker == "") { 
+         removeButton.classList.add("disabled");
+         speakerInput.classList.add("disabled");
+         changeAllCheckbox.classList.add("disabled");
+         changeAllCheckbox.disabled = true;
+         disableStartEndInputs();
+         speakerInput.readOnly = true;
+         speakerInput.value = "";
+      } else { 
+         removeButton.classList.remove("disabled");
+         speakerInput.classList.remove("disabled");
+         changeAllCheckbox.classList.remove("disabled");
+         if (!isZooming) changeAllCheckbox.disabled = false; 
+         enableStartEndInputs();
+         speakerInput.readOnly = false;
+      }
+      if (editsMade) {
+         discardButton.classList.remove("disabled");
+         saveButton.classList.remove("disabled");
+      } else {
+         discardButton.classList.add("disabled");
+         saveButton.classList.add("disabled");
+      }
+      if (changeAllCheckbox.checked) {
+         // changeAllLabel.innerHTML = "Change all (x" + currentRegions.length + ")";
+         disableStartEndInputs();
+      }
+      if (currentRegion && currentRegion.speaker != "") {
+         speakerInput.value = currentRegion.speaker;
+         setInputInSeconds(startTimeInput, currentRegion.start);
+         setInputInSeconds(endTimeInput, currentRegion.end);
+      }
+      if (undoLevel - 1 < 0) undoButton.classList.add("disabled");
+      else undoButton.classList.remove("disabled");
+      if (undoLevel + 1 >= undoStates.length) redoButton.classList.add("disabled");
+      else redoButton.classList.remove("disabled");
+   }
+
+   /**
+   * Adds a new region to the waveform at the current caret location with the speaker name "NEW_SPEAKER"
+   */
+   function createNewRegion() { // adds a new region to the waveform
+      clearChapterSearch();
+      const speaker = "NEW_SPEAKER"; // default name
+      if (!currSpeakerSet.uniqueSpeakers.includes(speaker)) { currSpeakerSet.uniqueSpeakers.push(speaker) }
+      const start = newRegionOffset + wavesurfer.getCurrentTime();
+      const end = newRegionOffset + wavesurfer.getCurrentTime() + 15;
+      newRegionOffset += 5; // offset new region if multiple new regions are created. 
+      currSpeakerSet.tempSpeakerObjects.push({speaker: speaker, start: start, end: end});
+
+      editsMade = true;
+      currentRegions = [];
+      currentRegion = getRegionFromProps({speaker: speaker, start: start, end: end});
+      reloadRegionsAndChapters();
+      addUndoState(primarySet, secondarySet, currSpeakerSet.isSecondary, dualMode, "create", getCurrentRegionIndex());
+   }
+
+   function getRegionFromProps(props, speakerSet) { // find region using speaker, start & end time
+      if (!speakerSet) speakerSet = currSpeakerSet;
+      for (let i = 0; i < speakerSet.tempSpeakerObjects.length; i++) {
+         if (speakerSet.tempSpeakerObjects[i].speaker === props.speaker && speakerSet.tempSpeakerObjects[i].start === props.start && speakerSet.tempSpeakerObjects[i].end === props.end) {
+            return speakerSet.tempSpeakerObjects[i];
+         } 
+      }
+      console.log("getRegionFromProps failed to find matching region");
+   }
+
+   /**
+   * Removes the currently selected region or regions
+   */
+   function removeRegion() { 
+      if (!removeButton.classList.contains("disabled")) {
+         if (getCurrentRegionIndex() != -1) { // if currentRegion has been set 
+            let currentRegionIndex = getCurrentRegionIndex();
+            let currentRegionIndexes = getCurrentRegionsIndexes();
+            let lockTemplate = { locked: currSpeakerSet.tempSpeakerObjects[currentRegionIndex].locked };
+            for (let i = 0; i < currSpeakerSet.tempSpeakerObjects.length; i++) {
+               if (isCurrentRegion(currSpeakerSet.tempSpeakerObjects[i].region)) {
+                  currSpeakerSet.tempSpeakerObjects[i].region.remove();
+                  currSpeakerSet.tempSpeakerObjects.splice(i, 1); // remove from tempSpeakerObjects
+                  editsMade = true;
+                  if (i >= 0) i--; // decrement index for side-by-side regions
+                  if (!changeAllCheckbox.checked && currentRegions.length < 1) {
+                     removeCurrentRegion();
+                     addUndoState(primarySet, secondarySet, currSpeakerSet.isSecondary, dualMode, "remove", currentRegionIndex);
+                     updateRegionEditPanel();
+                     reloadChapterList();
+                     editLockedRegion(lockTemplate);
+                     return; // jump out of function
+                  }
+               } else if (isInCurrentRegions(currSpeakerSet.tempSpeakerObjects[i])) { 
+                  currSpeakerSet.tempSpeakerObjects[i].region.remove();
+                  currSpeakerSet.tempSpeakerObjects.splice(i, 1);
+                  if (i >= 0) i--;
+               }
+            }
+            removeCurrentRegion();
+            addUndoState(primarySet, secondarySet, currSpeakerSet.isSecondary, dualMode, "remove", currentRegionIndex, currentRegionIndexes); // multiple regions removed
+            updateRegionEditPanel();
+            reloadChapterList();
+            editLockedRegion(lockTemplate);
+         } else { console.log("no region selected") }
+      }
+   }
+
+   function regionsMatch(reg1, reg2) {
+      if (reg1 && reg2 && reg1.start == reg2.start && reg1.end == reg2.end) return true;
+      return false;
+   }
+
+   function isCurrentRegion(region) {
+      if (regionsMatch(currentRegion, region)) return true;
+      return false;
+   }
+
+   function isInCurrentRegions(region) {
+      if (currentRegions != []) {
+         for (let i = 0; i < currentRegions.length; i++) {
+            if (currentRegions[i].start == region.start && currentRegions[i].end == region.end) {
+               return true;
+            }
+         }
+      }
+      return false;
+   }
+
+   function getCurrentRegionIndex() { // returns the index of currently selected region
+      for (let i = 0; i < currSpeakerSet.tempSpeakerObjects.length; i++) {
+         if (isCurrentRegion(currSpeakerSet.tempSpeakerObjects[i].region)) { return i }
+      }
+      return -1;
+   }
+
+   function getCurrentRegionsIndexes() { // returns the indexes of currently selected regions
+      let indexes = [];
+      for (let i = 0; i < currSpeakerSet.tempSpeakerObjects.length; i++) {
+         if (isInCurrentRegions(currSpeakerSet.tempSpeakerObjects[i].region)) { indexes.push(i) }
+      }
+      return indexes;
+   }
+
+   function removeCurrentRegion() { // removes current region, regions and bound markers
+      currentRegion = {speaker: '', start: '', end: ''};
+      currentRegions = [];
+      removeRegionBounds();
+      hoverSpeaker.innerHTML = "";
+   }
+
+   function getRegionsWithSpeaker(speaker) { // returns all regions with the given speaker name
+      let out = [];
+      for (let i = 0; i < currSpeakerSet.tempSpeakerObjects.length; i++) {
+         if (currSpeakerSet.tempSpeakerObjects[i].speaker === speaker) { out.push(currSpeakerSet.tempSpeakerObjects[i]) }
+      }
+      return out;
+   }
+
+   function sortSpeakerObjectsByStart(speakerOb) { // sorts the speaker object array by start time
+      return speakerOb.sort(function(a,b) {
+         return a.start - b.start;
+      });
+   }
+
+   /**
+   * Changes the associated speaker name of a region, updating the speaker set
+   */
+   function speakerChange() {
+      const newSpeaker = speakerInput.value;
+      clearChapterSearch();
+      if (newSpeaker && newSpeaker.trim() != "") {
+         speakerInput.style.outline = "2px solid transparent";
+         if (getCurrentRegionIndex() != -1) { // if a region is selected
+            const chaps = chapters.childNodes;
+            if (!currSpeakerSet.uniqueSpeakers.includes(newSpeaker)) { currSpeakerSet.uniqueSpeakers.push(newSpeaker) }
+            if (currentRegions && currentRegions.length < 1) {  // single change
+               currSpeakerSet.tempSpeakerObjects[getCurrentRegionIndex()].speaker = newSpeaker; // update corrosponding speakerObject speaker
+               currSpeakerSet.tempSpeakerObjects[getCurrentRegionIndex()].region.attributes.label.innerText = newSpeaker;
+               chaps[getCurrentRegionIndex()].firstChild.textContent = newSpeaker; // update chapter text
+            } else if (currentRegions && currentRegions.length > 1) { // multiple changes
+               for (idx of getCurrentRegionsIndexes()) {
+                  currSpeakerSet.tempSpeakerObjects[idx].speaker = newSpeaker;
+                  currSpeakerSet.tempSpeakerObjects[idx].region.attributes.label.innerText = newSpeaker;
+                  chaps[idx].firstChild.textContent = newSpeaker;
+               }
+            } 
+            currentRegion.speaker = newSpeaker;
+            chapterLeave(getCurrentRegionIndex()); // update region bound text
+            editsMade = true;
+            addUndoState(primarySet, secondarySet, currSpeakerSet.isSecondary, dualMode, "speaker-change", getCurrentRegionIndex(), getCurrentRegionsIndexes());
+            editLockedRegion(currSpeakerSet.tempSpeakerObjects[getCurrentRegionIndex()]);
+         } else { console.log("no region selected") }
+      } else { console.log("no text in speaker input"); speakerInput.style.outline = "2px solid firebrick"; }
+   }
+
+   function speakerInputUnfocused() {
+      prevUndoState = "";
+      if (speakerInput.value == "" && !speakerInput.classList.contains("disabled")) {
+         speakerInput.style.outline = "2px solid firebrick";
+         window.alert("Speaker input cannot be left empty. Please enter a speaker name.");
+         setTimeout(() => speakerInput.focus(), 10); // timeout needed otherwise input isn't selected
+      } else speakerInput.style.outline = "2px transparent";
+   }
+
+   /**
+   * Selects all (or reverts select-all) regions matching any of the currently selected speaker names
+   * @param {boolean} skipUndoState Whether or not to skip the addition of an undo state
+   */
+   function selectAllCheckboxChanged(skipUndoState) { // "Change all" toggled
+      if (changeAllCheckbox.checked) {
+         if (!isZooming) {
+            tempZoomSave = zoomSlider.value;
+            zoomTo(0); // zoom out to encompass all selected regions
+         }
+         let uniqueSelectedSpeakers;
+         if (currentRegions && currentRegions.length > 0) { // if more than one region selected
+            uniqueSelectedSpeakers = [... new Set(currentRegions.map(a => a.speaker))]; // gets unique speakers in currentRegions
+            uniqueSelectedSpeakers.sort((a, b) => a.toLowerCase().localeCompare(b.toLowerCase()));
+         } else uniqueSelectedSpeakers = [currentRegion.speaker];
+         currentRegions = [];
+         for (const speaker of uniqueSelectedSpeakers) {
+            for (const region of getRegionsWithSpeaker(speaker)) {
+               currentRegions.push(region);
+               region.region.update({color: "rgba(255,50,50,0.5)"});
+            }
+         }
+      } else {
+         if (!isZooming) {
+            zoomTo(tempZoomSave / 4);  // zoom back in to previous level
+         }
+         currentRegions = []; // this will lose track of previously selected region*s*
+      }
+      reloadRegionsAndChapters();
+      if (!skipUndoState) addUndoState(primarySet, secondarySet, currSpeakerSet.isSecondary, dualMode, "selectAllChange", getCurrentRegionIndex(), getCurrentRegionsIndexes());
+   }
+
+   function enableStartEndInputs() { // removes the 'disabled' tag from all time inputs
+      for (idx in startTimeInput.childNodes) { startTimeInput.childNodes[idx].disabled = false }
+      for (idx in endTimeInput.childNodes) { endTimeInput.childNodes[idx].disabled = false }
+   }
+
+   function disableStartEndInputs() { // adds the 'disabled' tag to all time inputs
+      for (idx in startTimeInput.childNodes) { startTimeInput.childNodes[idx].value = 0; startTimeInput.childNodes[idx].disabled = true; }
+      for (idx in endTimeInput.childNodes) { endTimeInput.childNodes[idx].value = 0; endTimeInput.childNodes[idx].disabled = true; }
+   }
+
+   /**
+   * Zooms wavesurfer waveform to destination zoom level, used in select all function
+   * @param {number} dest Destination zoom level
+   */
+   function zoomTo(dest) { 
+      isZooming = true;
+      changeAllCheckbox.disabled = true;
+      let isOut = false;
+      if (dest == 0) isOut = true;
+      zoomInterval = setInterval(() => {
+         if (isOut) {
+            if (zoomSlider.value != 0) {
+               if (zoomSlider.value > 50) zoomSlider.value -= 30; // ramp up for finer adjustments
+               else zoomSlider.stepDown(); 
+               wavesurfer.zoom(zoomSlider.value / 4); 
+            } else {
+               clearInterval(zoomInterval);
+               isZooming = false;
+               changeAllCheckbox.disabled = false;
+               zoomSlider.dispatchEvent(new Event("input"));
+            }
+         } else {
+            if (zoomSlider.value / 4 < dest) {
+               if (zoomSlider.value > 50) zoomSlider.value += 30; // ramp up for finer adjustments
+               else zoomSlider.stepUp(); 
+               wavesurfer.zoom(zoomSlider.value / 4);
+            } else {
+               clearInterval(zoomInterval);
+               isZooming = false;
+               changeAllCheckbox.disabled = false;
+               zoomSlider.dispatchEvent(new Event("input"));
+            }
+         }
+      }, 10); // 10ms interval
+   }
+
+   function toggleSavePopup() { // shows / hides commit popup div
+      savePopupCommitMsg.value = savePopupCommitMsg.value.trim(); // clears initial whitespace caused by <xsl: text>
+      if (savePopup.classList.contains("visible")) {
+         savePopup.classList.remove("visible");
+         savePopupBG.classList.remove("visible");
+      } else {
+         savePopup.classList.add("visible");
+         savePopupBG.classList.add("visible");
+         savePopup.children[0].innerText = "Commit changes for: " + selectedVersions[(!dualMode || primaryCaret.src.includes("fill")) ? 0 : 1]; 
+      }
+   }
+
+   function saveRegionChanges() { // saves tempSpeakerObjects to speakerObjects
+      if (!saveButton.classList.contains("disabled")) {
+         toggleSavePopup();
+         // old save functionality
+         // currSpeakerSet.speakerObjects = cloneSpeakerObjectArray(currSpeakerSet.tempSpeakerObjects);
+         // editsMade = false;
+         // removeCurrentRegion();
+         // reloadRegionsAndChapters();
+         // console.log("saved changes.");
+      }
+   }
+
+   /**
+   * Commits changes made to the currently selected set to Greenstone's version history system. 
+   * Firstly increments FLDV, then saves commit message to document's metadata, then sets document's
+   * associated file to tempSpeakerObjects CSV.
+   */
+   function commitChanges() {
+      if (savePopupCommitMsg.value && savePopupCommitMsg.value.length > 0) {
+         console.log('committing with message: ' + savePopupCommitMsg.value);
+         // inc fldv_history
+         $.ajax({
+            type: "GET",
+            url: mod_meta_base_url,
+            data: { "o": "json", "s1.a": "inc-fldv-nminus1" }
+         }).then((out) => {
+            console.log('fldv inc success with status code: ' + out.page.pageResponse.status.code);
+            if (out.page.pageResponse.status.code == GSSTATUS_SUCCESS) { 
+               ajaxSetCommitMeta();
+            }
+         }, (error) => { console.log("inc-fldv-nminus1 error:\n" + error) });
+         toggleSavePopup();
+      } else {
+         window.alert("Commit message cannot be left empty.");
+      }
+   }
+
+   function ajaxSetCommitMeta() { // saves commit message to current document's metadata
+      $.ajax({
+         type: "GET",
+         url: mod_meta_base_url,
+         data: { "o" : "json", "s1.a": "set-archives-metadata", "s1.metaname": "commitmessage", "s1.metavalue": savePopupCommitMsg.value.trim(), "s1.metamode": "override" },
+      }).then((out) => {
+         console.log('commit success with status code: ' + out.page.pageResponse.status.code);
+         if (out.page.pageResponse.status.code == GSSTATUS_SUCCESS) {
+            ajaxSetAssocFile();
+         }
+      }, (error) => { console.log("commit_msg_url error:"); console.log(error); });
+   }
+
+   function ajaxSetAssocFile() { // sets current document's associated file to tempSpeakerObjects
+         $.ajax({
+            type: "POST",
+            url: gs.xsltParams.library_name,
+            data: { "o" : "json", "a": "g", "rt": "r", "ro": "0", "s": "ModifyMetadata", "s1.collection": gs.cgiParams.c, "s1.site": gs.xsltParams.site_name, "s1.d": gs.cgiParams.d, 
+                    "s1.a": "set-archives-assocfile", "s1.assocname": "structured-audio.csv", "s1.filedata": speakerObjToCSVText() },
+         }).then((out) => {
+            console.log('set-archives-assocfile success with status code: ' + out.page.pageResponse.status.code);
+            resetUndoStates();
+         }, (error) => { console.log("set_assoc_url error:"); console.log(error); });
+   }
+
+   function speakerObjToCSVText() { // converts tempSpeakerObjects to csv-like string 
+      console.log(currSpeakerSet.tempSpeakerObjects.map(item => [item.speaker, item.start, item.end, item.locked]).join('\n'));
+      return currSpeakerSet.tempSpeakerObjects.map(item => [item.speaker, item.start, item.end, item.locked]).join('\n');
+   }
+
+   function discardRegionChanges(forceDiscard) { // resets tempSpeakerObjects to speakerObjects
+      if (!discardButton.classList.contains("disabled") || forceDiscard) {
+         let confirm = false;
+         if (!forceDiscard) { confirm = window.confirm("Are you sure you want to discard changes?"); }
+         if (confirm || forceDiscard) {
+            currSpeakerSet.tempSpeakerObjects = cloneSpeakerObjectArray(currSpeakerSet.speakerObjects);
+            editsMade = false;
+            removeCurrentRegion();
+            resetUndoStates();
+            reloadRegionsAndChapters();
+            console.log("discarded changes");
+         }
+      }
+   }
+
+   /**
+   * Redraws edit panel, chapter list and wavesurfer regions from speaker set
+   */
+   function reloadRegionsAndChapters() { // redraws edit panel, chapter list, wavesurfer regions 
+      updateRegionEditPanel();
+      $(".region-top").remove();
+      $(".region-bottom").remove();
+      $(".wavesurfer-region").remove();
+      populateChaptersAndRegions(primarySet);
+      if (dualMode) { 
+         populateChaptersAndRegions(secondarySet);
+         currSpeakerSet = primarySet;
+      }
+      updateCurrSpeakerSet();
+      if (editMode && currentRegion && currentRegion.speaker && getCurrentRegionIndex() != -1 && currSpeakerSet.tempSpeakerObjects[getCurrentRegionIndex()].region.element) { 
+         setHoverSpeaker(currSpeakerSet.tempSpeakerObjects[getCurrentRegionIndex()].region.element.style.left, currentRegion.speaker);
+         drawCurrentRegionBounds();
+      }
+      if (currentRegions.length < 1) { 
+         removeButton.innerHTML = "Remove Selected Region";
+         // enableStartEndInputs();
+      } else {
+         removeButton.innerHTML = "Remove Selected Regions (x" + currentRegions.length + ")";
+         const uniqueSelectedSpeakers = [... new Set(currentRegions.map(a => a.speaker))]; // gets unique speakers in currentRegions
+         uniqueSelectedSpeakers.sort((a, b) => a.toLowerCase().localeCompare(b.toLowerCase()));
+         speakerInput.value = uniqueSelectedSpeakers.join(", ");
+      }
+   }
+
+   /**
+   * Handles the change of a region's start or end time, updating hte speaker set
+   */
+   function changeStartEndTime(e) { // start/end time input handler
+      let newStart = getTimeInSecondsFromInput(startTimeInput);
+      let newEnd = getTimeInSecondsFromInput(endTimeInput);
+      let duration = Math.floor(wavesurfer.getDuration()); // total duration of current audio
+      if (getCurrentRegionIndex() != -1) { // if there is a selected region
+         if (newEnd <= newStart) newStart = newEnd - 1; // when start time > end time, push region forward
+         if (newEnd <= 0) newEnd = 1;
+         if (newStart < 0) newStart = 0; // ensures region start doesn't go < 0s
+         if (newEnd > duration) newEnd = duration; // ensures region start doesn't go > duration
+         
+         setInputInSeconds(startTimeInput, newStart);
+         setInputInSeconds(endTimeInput, newEnd);
+
+         let currRegIdx = getCurrentRegionIndex();
+         currSpeakerSet.tempSpeakerObjects[currRegIdx].start = newStart;
+         currSpeakerSet.tempSpeakerObjects[currRegIdx].end = newEnd;
+         currSpeakerSet.tempSpeakerObjects[currRegIdx].region.update({start: newStart, end: newEnd});
+         currentRegion.start = newStart;
+         currentRegion.end = newEnd;
+         editsMade = true;
+         handleSameSpeakerOverlap(currRegIdx, currSpeakerSet);
+         addUndoState(primarySet, secondarySet, currSpeakerSet.isSecondary, dualMode, "change-time", getCurrentRegionIndex());
+         editLockedRegion(currSpeakerSet.tempSpeakerObjects[currRegIdx]);
+      } else { 
+         console.log("no region selected");
+         setInputInSeconds(startTimeInput, 0);
+         setInputInSeconds(endTimeInput, 0);
+      }
+   }
+
+   /**
+   * Calculates time in seconds of start or end time input group
+   * @param {element} input Element of time input groups: hh:mm:ss
+   * @returns {int} Time in seconds 
+   */
+   function getTimeInSecondsFromInput(input) { 
+      let hours = input.children[0].valueAsNumber;
+      let mins = input.children[1].valueAsNumber;
+      let secs = input.children[2].valueAsNumber;
+      return (hours * 3600) + (mins * 60) + secs;
+   }
+
+   /**
+   * Sets the start or end time element group inputs 
+   * @param {element} input Element of time input group to be updated
+   * @param {int} seconds Duration in seconds to be converted into hh:mm:ss
+   */
+   function setInputInSeconds(input, seconds) { // sets start or end input time when given seconds
+      let date = new Date(null);
+      date.setMilliseconds(seconds * 1000);
+      input.children[0].value = date.getHours() % 12;
+      input.children[1].value = date.getMinutes();
+      input.children[2].value = date.getSeconds() + "." + (Math.ceil(date.getMilliseconds() / 100) * 100);
+      document.querySelectorAll('input[type=number]').forEach(e => {
+         e.value = Math.round(e.valueAsNumber * 10) / 10; // to 1dp
+         if (e.classList.contains("seconds") && !e.value.includes(".")) { e.value = e.value + ".0"; }
+         else if (e.value.length === 1){ e.value = '0' + e.value; }// 0 padded on left
+      });      
+   }
+
+   /**
+    * Adds a new undo state to the global undo state list
+    * @param {object} state Primary set at current state
+    * @param {object} secState Secondary set at current state
+    * @param {boolean} isSec Whether or not current change was made to primary (false) or secondary (true) set
+    * @param {boolean} dualMode Whether or not audio editor was in dual mode when undo state was added
+    * @param {string} type Type of change e.g "remove", "speaker-change"
+    * @param {int} currRegIdx Index of currently selected region (for restoration)
+    * @param {Array} currRegIdxs Index of currently selected regions, if applicable (for restoration)
+    */
+   function addUndoState(state, secState, isSec, dualMode, type, currRegIdx, currRegIdxs) { // adds a new state to the undoStates stack
+      let newState = cloneSpeakerObjectArray(state.tempSpeakerObjects); // clone method removes references
+      let newSecState = cloneSpeakerObjectArray(secState.tempSpeakerObjects); // clone method removes references
+      let changedTrack = (type == "dualModeChange" || type == "selectAllChange") ? "none" : selectedVersions[isSec ? 1 : 0] // sets changedTrack to version name of edited region set 
+      undoButton.classList.remove("disabled");
+      undoStates = undoStates.slice(0, undoLevel + 1); // trim to current level if undos have already been made
+      undoStates.push({state: newState, secState: newSecState, isSec: isSec, changedTrack: changedTrack, dualMode: dualMode, currentRegionIndex: currRegIdx, currentRegionIndexes: currRegIdxs, type: type});
+      if ((type === "change-time" && prevUndoState === "change-time") || (type === "speaker-change" && prevUndoState === "speaker-change")) { // checks if similar change was made previously
+         undoStates.splice(-2, 1); // remove second-to-last item in undoStates stack (merge last two changes into one to avoid multiple small edits)
+         prevUndoState = type;
+      } else undoLevel++;
+      prevUndoState = type;
+      redoButton.classList.add("disabled");
+      for (const item of undoStates) { // remove cyclic object references
+         item.state = cloneSpeakerObjectArray(item.state);
+         item.secState = cloneSpeakerObjectArray(item.secState);
+      } 
+      localStorage.setItem('undoStates', JSON.stringify(undoStates)); // update localStorage items
+      localStorage.setItem('undoLevel', undoLevel);
+   }
+
+   /**
+    * Returns to the previous state in the undo state list
+    */
+   function undo() {
+      if (!undoButton.classList.contains("disabled") && editMode) { // ensure there exist states to undo to
+         clearChapterSearch();
+         if (undoLevel - 1 < 0) console.log("ran out of undos");
+         else {            
+            removeCurrentRegion();  
+            let adjustedUndoLevel = undoLevel-1;
+            if (undoStates[undoLevel].type == "dualModeChange") { // toggle dual mode
+               dualModeChanged(true);
+            } else if (undoStates[undoLevel].type == "selectAllChange") { // toggle select all
+               changeAllCheckbox.checked = !changeAllCheckbox.checked;
+               selectAllCheckboxChanged(true);
+            } else {
+               primarySet.tempSpeakerObjects = cloneSpeakerObjectArray(undoStates[adjustedUndoLevel].state.slice(0)); // slice & clone removes potential references between arrays
+               if (dualMode && undoStates[adjustedUndoLevel].secState && undoStates[adjustedUndoLevel].secState.length > 0) { // if secondary undoState exists
+                  secondarySet.tempSpeakerObjects = cloneSpeakerObjectArray(undoStates[adjustedUndoLevel].secState.slice(0)); // slice & clone removes potential references between arrays
+               }
+               let selectedSpeakerSet;
+               // handle currentRegion change
+               if (undoStates[undoLevel] && undoStates[undoLevel].type && undoStates[undoLevel].type == "remove") { // if destination state type is remove
+                  selectedSpeakerSet = (undoStates[undoLevel].isSec) ? secondarySet : primarySet;
+                  if (selectedSpeakerSet.isSecondary) caretClicked("secondary-caret");
+                  else caretClicked("primary-caret");
+                  currentRegion = selectedSpeakerSet.tempSpeakerObjects[undoStates[undoLevel].currentRegionIndex]; // restore previous current state
+               } else if (undoStates[undoLevel].currentRegionIndex) {
+                  if (!dualMode) selectedSpeakerSet = primarySet;
+                  else {
+                     selectedSpeakerSet = (undoStates[undoLevel-1].isSec) ? secondarySet : primarySet;
+                     if (selectedSpeakerSet.isSecondary) caretClicked("secondary-caret");
+                     else caretClicked("primary-caret");
+                  }
+                  currentRegion = selectedSpeakerSet.tempSpeakerObjects[undoStates[undoLevel].currentRegionIndex];
+               } 
+               // handle currentRegions restoration
+               if (undoStates[undoLevel].currentRegionIndexes && undoStates[undoLevel].currentRegionIndexes.length > 1) {
+                  for (const idx of undoStates[undoLevel].currentRegionIndexes) currentRegions.push(currSpeakerSet.tempSpeakerObjects[idx]);
+               }
+            }
+            editsMade = true;
+            undoLevel--; // decrement undoLevel
+            reloadRegionsAndChapters();
+            localStorage.setItem('undoLevel', undoLevel);
+            if (undoLevel - 1 < 0) undoButton.classList.add("disabled");
+            else undoButton.classList.remove("disabled");
+         }
+         if (undoLevel < undoStates.length) redoButton.classList.remove("disabled");
+      }
+   }
+
+   /**
+    * Moves forward one state in the undo state list
+    */
+   function redo() {
+      if (!redoButton.classList.contains("disabled") && editMode) { // ensure there exist states to redo to
+         clearChapterSearch();
+         if (undoLevel + 1 >= undoStates.length) console.log("ran out of redos");
+         else {
+            if (undoStates[undoLevel+1].type == "dualModeChange") { // toggle dual mode
+               dualModeChanged(true);
+            } else if (undoStates[undoLevel+1].type == "selectAllChange") { // toggle select all
+               changeAllCheckbox.checked = !changeAllCheckbox.checked;
+               selectAllCheckboxChanged(true);
+            } else {
+               primarySet.tempSpeakerObjects = cloneSpeakerObjectArray(undoStates[undoLevel+1].state.slice(0)); // set primary to new state
+               secondarySet.tempSpeakerObjects = cloneSpeakerObjectArray(undoStates[undoLevel+1].secState.slice(0)); // set secondary to new state
+               let selectedSpeakerSet;
+               // handle currentRegion change
+               removeCurrentRegion();
+               if (undoLevel+2 < undoStates.length) {
+                  if (undoStates[undoLevel+2] && undoStates[undoLevel+2].type && undoStates[undoLevel+2].type == "remove") {
+                     selectedSpeakerSet = (undoStates[undoLevel+2].isSec) ? secondarySet : primarySet;
+                     if (selectedSpeakerSet.isSecondary) caretClicked("secondary-caret"); 
+                     else caretClicked("primary-caret");
+                     currentRegion = selectedSpeakerSet.tempSpeakerObjects[undoStates[undoLevel+2].currentRegionIndex];
+                  } else {
+                     selectedSpeakerSet = (undoStates[undoLevel+1].isSec) ? secondarySet : primarySet;
+                     if (selectedSpeakerSet.isSecondary) caretClicked("secondary-caret"); 
+                     else caretClicked("primary-caret");
+                     currentRegion = selectedSpeakerSet.tempSpeakerObjects[undoStates[undoLevel+1].currentRegionIndex];
+                  }
+                  if (undoStates[undoLevel+1].currentRegionIndexes && undoStates[undoLevel+1].currentRegionIndexes.length > 1) {
+                     for (const idx of undoStates[undoLevel+1].currentRegionIndexes) currentRegions.push(currSpeakerSet.tempSpeakerObjects[idx]);
+                  }
+               }
+            }
+            editsMade = true;  
+            reloadRegionsAndChapters();
+            undoLevel++; // increment undoLevel
+            localStorage.setItem('undoLevel', undoLevel);
+            if (undoLevel + 1 > undoStates.length - 1) redoButton.classList.add("disabled");
+            else redoButton.classList.remove("disabled");
+         }
+         if (undoLevel < undoStates.length) undoButton.classList.remove("disabled");
+      }
+   }
+
+   function resetUndoStates() { // clear undo history
+      undoStates = [{state: cloneSpeakerObjectArray(primarySet.tempSpeakerObjects), secState: cloneSpeakerObjectArray(secondarySet.tempSpeakerObjects)}];
+      undoLevel = 0;
+      localStorage.removeItem('undoLevel');
+      localStorage.removeItem('undoStates');
+      undoButton.classList.add("disabled");
+      redoButton.classList.add("disabled");
+   }
+
+   function waveformScrolled() { // waveform scroll handler
+      if (currentRegion.speaker && getCurrentRegionIndex() != -1) { // updates region bound markers if selected region exists
+         setHoverSpeaker(currSpeakerSet.tempSpeakerObjects[getCurrentRegionIndex()].region.element.style.left, currentRegion.speaker);
+         drawCurrentRegionBounds();
+      }
+      if (document.getElementById('new-canvas')) { document.getElementById('new-canvas').style.left = "-" + wave.scrollLeft + 'px' } // update placeholder waveform scroll position
+   }
+
+   function drawCurrentRegionBounds() { // draws bounds of current region
+      removeRegionBounds();
+      let currIndexes = getCurrentRegionsIndexes();
+      if (getCurrentRegionIndex() != -1) drawRegionBounds(currSpeakerSet.tempSpeakerObjects[getCurrentRegionIndex()].region, wave.scrollLeft, "FireBrick");
+      for (let i = 0; i < currIndexes.length; i++) {
+         drawRegionBounds(currSpeakerSet.tempSpeakerObjects[currIndexes[i]].region, wave.scrollLeft, "FireBrick");
+      }
+   }
+
+   /**
+    * Draws bounding 'n' above hovered or selected region 
+    * @param {object} region Region to have bound drawn for
+    * @param {number} scrollPos Scroll position of div, used to offset draw position
+    * @param {string} colour Colour to draw bound (black and FireBrick are used)
+    */
+   function drawRegionBounds(region, scrollPos, colour) { // draws on canvas to show bounds of hovered/selected region
+      const hoverSpeakerCanvas = document.createElement("canvas");
+      hoverSpeakerCanvas.id = "hover-speaker-canvas";
+      hoverSpeakerCanvas.classList.add("region-bounds");
+      hoverSpeakerCanvas.width = audioContainer.clientWidth; // max width of drawn bounds
+      const ctx = hoverSpeakerCanvas.getContext("2d");
+      // ctx.translate(0.5, 0.5); // fixes lineWidth inconsistency
+      ctx.lineWidth = 1;
+      if (colour == "FireBrick") ctx.lineWidth = 3;
+      if (currentRegions && currentRegions.length < 1 && isCurrentRegion(region) && editMode) {
+         colour = "FireBrick";
+         ctx.lineWidth = 3;
+      }
+      ctx.strokeStyle = colour;
+      ctx.beginPath();
+      ctx.moveTo(parseInt(region.element.style.left.slice(0, -2)) - scrollPos, 28);
+      ctx.lineTo(parseInt(region.element.style.left.slice(0, -2)) - scrollPos, 20);
+      ctx.lineTo(parseInt(region.element.style.left.slice(0, -2)) + parseInt(region.element.style.width.slice(0, -2)) - scrollPos, 20);
+      ctx.lineTo(parseInt(region.element.style.left.slice(0, -2)) + parseInt(region.element.style.width.slice(0, -2)) - scrollPos, 28);
+      ctx.stroke();
+      audioContainer.prepend(hoverSpeakerCanvas);
+   }
+
+   function removeRegionBounds() { // remove all region bound markers
+      let canvases = document.getElementsByClassName('region-bounds');
+      while (canvases[0]) canvases[0].parentNode.removeChild(canvases[0]);
+   }
+
+   function updateCurrSpeakerSet() { // updates 'currSpeakerSet' var
+      if (primaryCaret.src.includes("fill")) currSpeakerSet = primarySet;
+      else if (secondaryCaret.src.includes("fill")) currSpeakerSet = secondarySet;
+   }
+
+   function cloneSpeakerObjectArray(inputArray) { // clones speakerObjectArray without references (wavesurfer regions)
+      let output = [];
+      for (let i = 0; i < inputArray.length; i++) { 
+         output.push({ speaker: inputArray[i].speaker, start: inputArray[i].start, end: inputArray[i].end, locked: (inputArray[i].locked === "true" || inputArray[i].locked === true) });
+      }
+      return output;
+   }
+
+   function flashChapters() { // flashes chapters a lighter colour momentarily to indicate an update/change
+      chapters.style.backgroundColor = "rgb(66, 84, 88)";
+      setTimeout(() => { chapters.style.backgroundColor = "rgb(40, 54, 58)" }, 500);
+   }
+
+   /** Fullscreen onChange handler, increases waveform height & adjusts padding/margin */
+   function fullscreenChanged() { 
+      if (!audioContainer.classList.contains("fullscreen")) {
+         audioContainer.classList.add("fullscreen");
+         wavesurfer.setHeight(175); // increase waveform height
+         caretContainer.style.paddingLeft = "2rem"; 
+         caretContainer.style.height = wavesurfer.getHeight() + "px"; // set height to waveform height
+         audioContainer.prepend(caretContainer); // attach to audioContainer (otherwise doesn't show due to AC being fullscreen)
+      } else  {
+         audioContainer.classList.remove("fullscreen");
+         wavesurfer.setHeight(140);
+         caretContainer.style.paddingLeft = "0";
+         caretContainer.style.height = wavesurfer.getHeight() + "px";
+         audioContainer.parentElement.prepend(caretContainer); // move back up in DOM hierarchy 
+      }
+      setTimeout(() => { // ensures waveform shows  
+         zoomOutButton.click();
+         zoomInButton.click();
+      }, 250);
+   }
+
+   /** Enables / disables the fullscreen view of audio player / editor */
+   function toggleFullscreen() { 
+      if ((document.fullscreenElement && document.fullscreenElement !== null) ||
+        (document.webkitFullscreenElement && document.webkitFullscreenElement !== null) ||
+        (document.mozFullScreenElement && document.mozFullScreenElement !== null) ||
+        (document.msFullscreenElement && document.msFullscreenElement !== null)) {
+         document.exitFullscreen();
+      } else {
+         if (audioContainer.requestFullscreen) {
+            audioContainer.requestFullscreen();
+         } else if (audioContainer.webkitRequestFullscreen) { /* Safari */
+            audioContainer.webkitRequestFullscreen();
+         } else if (audioContainer.msRequestFullscreen) { /* IE11 */
+            audioContainer.msRequestFullscreen();
+         }
+      }
+   }
+}
+
+/**
+ * Formats seconds to hh:mm:ss
+ * @param {number} duration 
+ * @returns {string} Time in hh:mm:ss format
+ */
+function formatAudioDuration(duration) {
+   // console.log('duration: ' + duration);
+   let [hrs, mins, secs, ms] = duration.replace(".", ":").split(":");
+   return hrs + ":" + mins + ":" + secs;
+}
+
+/** switches the current page to one in the specified language
+use this like:
+<a href="#" onClick="switchLanguage(event, 'fr')">FR</a>
+*/
+
+function switchLanguage(event, lang) {
+    event.preventDefault();
+    var url = document.URL;
+    if (url.indexOf("?") == -1) {
+        url = url+"?l="+lang;
+    } else {
+        if (url.search(/[&?]?l=[^&]*/g) != -1) {
+            url = url.replace(/([&?]?)l=[^&]*/g, "$1l="+lang);
+        }
+        else {
+            url = url+"&l="+lang;
+        }
+    }
+    window.location.href = url;
+}
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/views.module.css
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/views.module.css	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/views.module.css	(revision 38779)
@@ -0,0 +1,23 @@
+/* table style column align */
+.views-align-left {
+  text-align: left;
+}
+.views-align-right {
+  text-align: right;
+}
+.views-align-center {
+  text-align: center;
+}
+/* Grid style column align. */
+.views-view-grid .views-col {
+  float: left;
+}
+.views-view-grid .views-row {
+  float: left;
+  clear: both;
+  width: 100%;
+}
+/* Provide some space between display links. */
+.views-display-link + .views-display-link {
+  margin-left: 0.5em;
+}
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/vsm0qzc.css
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/vsm0qzc.css	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/vsm0qzc.css	(revision 38779)
@@ -0,0 +1,55 @@
+/*
+ * The Typekit service used to deliver this font or fonts for use on websites
+ * is provided by Adobe and is subject to these Terms of Use
+ * http://www.adobe.com/products/eulas/tou_typekit. For font license
+ * information, see the list below.
+ *
+ * adelle-sans:
+ *   - http://typekit.com/eulas/00000000000000007735a1c8
+ *   - http://typekit.com/eulas/00000000000000007735a1c5
+ *   - http://typekit.com/eulas/00000000000000007735a1d6
+ *   - http://typekit.com/eulas/00000000000000007735a1db
+ * plantin:
+ *   - http://typekit.com/eulas/00000000000000007735baf2
+ *
+ * Â© 2009-2023 Adobe Systems Incorporated. All Rights Reserved.
+ */
+/*{"last_published":"2021-09-16 11:27:09 UTC"}*/
+
+@import url("https://p.typekit.net/p.css?s=1&k=vsm0qzc&ht=tk&f=17007.17008.17014.17015.39567&a=5056948&app=typekit&e=css");
+
+@font-face {
+font-family:"adelle-sans";
+src:url("https://use.typekit.net/af/aa897e/00000000000000007735a1c8/30/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n7&v=3") format("woff2"),url("https://use.typekit.net/af/aa897e/00000000000000007735a1c8/30/d?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n7&v=3") format("woff"),url("https://use.typekit.net/af/aa897e/00000000000000007735a1c8/30/a?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n7&v=3") format("opentype");
+font-display:auto;font-style:normal;font-weight:700;font-stretch:normal;
+}
+
+@font-face {
+font-family:"adelle-sans";
+src:url("https://use.typekit.net/af/2eeb33/00000000000000007735a1c5/30/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=i7&v=3") format("woff2"),url("https://use.typekit.net/af/2eeb33/00000000000000007735a1c5/30/d?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=i7&v=3") format("woff"),url("https://use.typekit.net/af/2eeb33/00000000000000007735a1c5/30/a?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=i7&v=3") format("opentype");
+font-display:auto;font-style:italic;font-weight:700;font-stretch:normal;
+}
+
+@font-face {
+font-family:"adelle-sans";
+src:url("https://use.typekit.net/af/f7d2b8/00000000000000007735a1d6/30/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n3&v=3") format("woff2"),url("https://use.typekit.net/af/f7d2b8/00000000000000007735a1d6/30/d?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n3&v=3") format("woff"),url("https://use.typekit.net/af/f7d2b8/00000000000000007735a1d6/30/a?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n3&v=3") format("opentype");
+font-display:auto;font-style:normal;font-weight:300;font-stretch:normal;
+}
+
+@font-face {
+font-family:"adelle-sans";
+src:url("https://use.typekit.net/af/207724/00000000000000007735a1db/30/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=i3&v=3") format("woff2"),url("https://use.typekit.net/af/207724/00000000000000007735a1db/30/d?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=i3&v=3") format("woff"),url("https://use.typekit.net/af/207724/00000000000000007735a1db/30/a?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=i3&v=3") format("opentype");
+font-display:auto;font-style:italic;font-weight:300;font-stretch:normal;
+}
+
+@font-face {
+font-family:"plantin";
+src:url("https://use.typekit.net/af/1d9a50/00000000000000007735baf2/30/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n4&v=3") format("woff2"),url("https://use.typekit.net/af/1d9a50/00000000000000007735baf2/30/d?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n4&v=3") format("woff"),url("https://use.typekit.net/af/1d9a50/00000000000000007735baf2/30/a?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n4&v=3") format("opentype");
+font-display:auto;font-style:normal;font-weight:400;font-stretch:normal;
+}
+
+.tk-adelle-sans { font-family: "adelle-sans",sans-serif; }
+.tk-adelle-sans-ultra-thin { font-family: "adelle-sans-ultra-thin",sans-serif; }
+.tk-adelle-sans-condensed { font-family: "adelle-sans-condensed",sans-serif; }
+.tk-plantin { font-family: "plantin",sans-serif; }
+.tk-plantin-condensed { font-family: "plantin-condensed",sans-serif; }
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/yahoo-min.js.download
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/yahoo-min.js.download	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/yahoo-min.js.download	(revision 38779)
@@ -0,0 +1,8 @@
+/*
+Copyright (c) 2011, Yahoo! Inc. All rights reserved.
+Code licensed under the BSD License:
+http://developer.yahoo.com/yui/license.html
+version: 2.9.0
+*/
+if(typeof YAHOO=="undefined"||!YAHOO){var YAHOO={};}YAHOO.namespace=function(){var b=arguments,g=null,e,c,f;for(e=0;e<b.length;e=e+1){f=(""+b[e]).split(".");g=YAHOO;for(c=(f[0]=="YAHOO")?1:0;c<f.length;c=c+1){g[f[c]]=g[f[c]]||{};g=g[f[c]];}}return g;};YAHOO.log=function(d,a,c){var b=YAHOO.widget.Logger;if(b&&b.log){return b.log(d,a,c);}else{return false;}};YAHOO.register=function(a,f,e){var k=YAHOO.env.modules,c,j,h,g,d;if(!k[a]){k[a]={versions:[],builds:[]};}c=k[a];j=e.version;h=e.build;g=YAHOO.env.listeners;c.name=a;c.version=j;c.build=h;c.versions.push(j);c.builds.push(h);c.mainClass=f;for(d=0;d<g.length;d=d+1){g[d](c);}if(f){f.VERSION=j;f.BUILD=h;}else{YAHOO.log("mainClass is undefined for module "+a,"warn");}};YAHOO.env=YAHOO.env||{modules:[],listeners:[]};YAHOO.env.getVersion=function(a){return YAHOO.env.modules[a]||null;};YAHOO.env.parseUA=function(d){var e=function(i){var j=0;return parseFloat(i.replace(/\./g,function(){return(j++==1)?"":".";}));},h=navigator,g={ie:0,opera:0,gecko:0,webkit:0,chrome:0,mobile:null,air:0,ipad:0,iphone:0,ipod:0,ios:null,android:0,webos:0,caja:h&&h.cajaVersion,secure:false,os:null},c=d||(navigator&&navigator.userAgent),f=window&&window.location,b=f&&f.href,a;g.secure=b&&(b.toLowerCase().indexOf("https")===0);if(c){if((/windows|win32/i).test(c)){g.os="windows";}else{if((/macintosh/i).test(c)){g.os="macintosh";}else{if((/rhino/i).test(c)){g.os="rhino";}}}if((/KHTML/).test(c)){g.webkit=1;}a=c.match(/AppleWebKit\/([^\s]*)/);if(a&&a[1]){g.webkit=e(a[1]);if(/ Mobile\//.test(c)){g.mobile="Apple";a=c.match(/OS ([^\s]*)/);if(a&&a[1]){a=e(a[1].replace("_","."));}g.ios=a;g.ipad=g.ipod=g.iphone=0;a=c.match(/iPad|iPod|iPhone/);if(a&&a[0]){g[a[0].toLowerCase()]=g.ios;}}else{a=c.match(/NokiaN[^\/]*|Android \d\.\d|webOS\/\d\.\d/);if(a){g.mobile=a[0];}if(/webOS/.test(c)){g.mobile="WebOS";a=c.match(/webOS\/([^\s]*);/);if(a&&a[1]){g.webos=e(a[1]);}}if(/ Android/.test(c)){g.mobile="Android";a=c.match(/Android ([^\s]*);/);if(a&&a[1]){g.android=e(a[1]);}}}a=c.match(/Chrome\/([^\s]*)/);if(a&&a[1]){g.chrome=e(a[1]);}else{a=c.match(/AdobeAIR\/([^\s]*)/);if(a){g.air=a[0];}}}if(!g.webkit){a=c.match(/Opera[\s\/]([^\s]*)/);if(a&&a[1]){g.opera=e(a[1]);a=c.match(/Version\/([^\s]*)/);if(a&&a[1]){g.opera=e(a[1]);}a=c.match(/Opera Mini[^;]*/);if(a){g.mobile=a[0];}}else{a=c.match(/MSIE\s([^;]*)/);if(a&&a[1]){g.ie=e(a[1]);}else{a=c.match(/Gecko\/([^\s]*)/);if(a){g.gecko=1;a=c.match(/rv:([^\s\)]*)/);if(a&&a[1]){g.gecko=e(a[1]);}}}}}}return g;};YAHOO.env.ua=YAHOO.env.parseUA();(function(){YAHOO.namespace("util","widget","example");if("undefined"!==typeof YAHOO_config){var b=YAHOO_config.listener,a=YAHOO.env.listeners,d=true,c;if(b){for(c=0;c<a.length;c++){if(a[c]==b){d=false;break;}}if(d){a.push(b);}}}})();YAHOO.lang=YAHOO.lang||{};(function(){var f=YAHOO.lang,a=Object.prototype,c="[object Array]",h="[object Function]",i="[object Object]",b=[],g={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","/":"&#x2F;","`":"&#x60;"},d=["toString","valueOf"],e={isArray:function(j){return a.toString.apply(j)===c;},isBoolean:function(j){return typeof j==="boolean";},isFunction:function(j){return(typeof j==="function")||a.toString.apply(j)===h;},isNull:function(j){return j===null;},isNumber:function(j){return typeof j==="number"&&isFinite(j);},isObject:function(j){return(j&&(typeof j==="object"||f.isFunction(j)))||false;},isString:function(j){return typeof j==="string";},isUndefined:function(j){return typeof j==="undefined";},_IEEnumFix:(YAHOO.env.ua.ie)?function(l,k){var j,n,m;for(j=0;j<d.length;j=j+1){n=d[j];m=k[n];if(f.isFunction(m)&&m!=a[n]){l[n]=m;}}}:function(){},escapeHTML:function(j){return j.replace(/[&<>"'\/`]/g,function(k){return g[k];});},extend:function(m,n,l){if(!n||!m){throw new Error("extend failed, please check that "+"all dependencies are included.");}var k=function(){},j;k.prototype=n.prototype;m.prototype=new k();m.prototype.constructor=m;m.superclass=n.prototype;if(n.prototype.constructor==a.constructor){n.prototype.constructor=n;}if(l){for(j in l){if(f.hasOwnProperty(l,j)){m.prototype[j]=l[j];}}f._IEEnumFix(m.prototype,l);}},augmentObject:function(n,m){if(!m||!n){throw new Error("Absorb failed, verify dependencies.");}var j=arguments,l,o,k=j[2];if(k&&k!==true){for(l=2;l<j.length;l=l+1){n[j[l]]=m[j[l]];}}else{for(o in m){if(k||!(o in n)){n[o]=m[o];}}f._IEEnumFix(n,m);}return n;},augmentProto:function(m,l){if(!l||!m){throw new Error("Augment failed, verify dependencies.");}var j=[m.prototype,l.prototype],k;for(k=2;k<arguments.length;k=k+1){j.push(arguments[k]);}f.augmentObject.apply(this,j);return m;},dump:function(j,p){var l,n,r=[],t="{...}",k="f(){...}",q=", ",m=" => ";if(!f.isObject(j)){return j+"";}else{if(j instanceof Date||("nodeType" in j&&"tagName" in j)){return j;}else{if(f.isFunction(j)){return k;}}}p=(f.isNumber(p))?p:3;if(f.isArray(j)){r.push("[");for(l=0,n=j.length;l<n;l=l+1){if(f.isObject(j[l])){r.push((p>0)?f.dump(j[l],p-1):t);}else{r.push(j[l]);}r.push(q);}if(r.length>1){r.pop();}r.push("]");}else{r.push("{");for(l in j){if(f.hasOwnProperty(j,l)){r.push(l+m);if(f.isObject(j[l])){r.push((p>0)?f.dump(j[l],p-1):t);}else{r.push(j[l]);}r.push(q);}}if(r.length>1){r.pop();}r.push("}");}return r.join("");},substitute:function(x,y,E,l){var D,C,B,G,t,u,F=[],p,z=x.length,A="dump",r=" ",q="{",m="}",n,w;for(;;){D=x.lastIndexOf(q,z);if(D<0){break;}C=x.indexOf(m,D);if(D+1>C){break;}p=x.substring(D+1,C);G=p;u=null;B=G.indexOf(r);if(B>-1){u=G.substring(B+1);G=G.substring(0,B);}t=y[G];if(E){t=E(G,t,u);}if(f.isObject(t)){if(f.isArray(t)){t=f.dump(t,parseInt(u,10));}else{u=u||"";n=u.indexOf(A);if(n>-1){u=u.substring(4);}w=t.toString();if(w===i||n>-1){t=f.dump(t,parseInt(u,10));}else{t=w;}}}else{if(!f.isString(t)&&!f.isNumber(t)){t="~-"+F.length+"-~";F[F.length]=p;}}x=x.substring(0,D)+t+x.substring(C+1);if(l===false){z=D-1;}}for(D=F.length-1;D>=0;D=D-1){x=x.replace(new RegExp("~-"+D+"-~"),"{"+F[D]+"}","g");}return x;},trim:function(j){try{return j.replace(/^\s+|\s+$/g,"");}catch(k){return j;
+}},merge:function(){var n={},k=arguments,j=k.length,m;for(m=0;m<j;m=m+1){f.augmentObject(n,k[m],true);}return n;},later:function(t,k,u,n,p){t=t||0;k=k||{};var l=u,s=n,q,j;if(f.isString(u)){l=k[u];}if(!l){throw new TypeError("method undefined");}if(!f.isUndefined(n)&&!f.isArray(s)){s=[n];}q=function(){l.apply(k,s||b);};j=(p)?setInterval(q,t):setTimeout(q,t);return{interval:p,cancel:function(){if(this.interval){clearInterval(j);}else{clearTimeout(j);}}};},isValue:function(j){return(f.isObject(j)||f.isString(j)||f.isNumber(j)||f.isBoolean(j));}};f.hasOwnProperty=(a.hasOwnProperty)?function(j,k){return j&&j.hasOwnProperty&&j.hasOwnProperty(k);}:function(j,k){return !f.isUndefined(j[k])&&j.constructor.prototype[k]!==j[k];};e.augmentObject(f,e,true);YAHOO.util.Lang=f;f.augment=f.augmentProto;YAHOO.augment=f.augmentProto;YAHOO.extend=f.extend;})();YAHOO.register("yahoo",YAHOO,{version:"2.9.0",build:"2800"});
Index: /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/zoomer.js.download
===================================================================
--- /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/zoomer.js.download	(revision 38779)
+++ /gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/iframe-page/dl-chatgpt_files/zoomer.js.download	(revision 38779)
@@ -0,0 +1,93 @@
+(function ($)
+{
+	$.anythingZoomer = 
+	{
+		defaults: 
+		{
+			smallArea: "#small",
+			largeArea: "#large",
+			zoomPort: "#overlay",
+			mover: "#mover",
+			expansionSize: 30,
+			speedMultiplier: 1.5
+		}
+	}
+	$.fn.extend(
+	{
+		anythingZoomer: function (config)
+		{
+			var config = $.extend({}, $.anythingZoomer.defaults, config);
+			var wrap = $(this);
+			var smallArea = $(config.smallArea);
+			var largeArea = $(config.largeArea);
+			var zoomPort = $(config.zoomPort);
+			var mover = $(config.mover);
+			var expansionSize = config.expansionSize;
+			var speedMultiplier = config.speedMultiplier;
+			var over = false;
+
+			function setup(smallArea, largeArea, wrap, zoomPort, mover, expansionSize, speedMultiplier)
+			{
+				smallArea.show();
+				zoomPort.fadeIn();
+				mover.css(
+				{
+					width: mover.data("origWidth"),
+					height: mover.data("origHeight"),
+					overflow: "hidden",
+					position: "absolute"
+				})
+				wrap.css(
+				{
+					//width: "auto"
+				}).mousemove(function (e,pageX,pageY)
+				{
+				        if (!e.pageX) { e.pageX = pageX }
+				        if (!e.pageY) { e.pageY = pageY }
+
+					var x = e.pageX - smallArea.offset().left;
+					var y = e.pageY - smallArea.offset().top;
+
+					if ((x < -expansionSize) || (x > smallArea.width() + expansionSize) || (y < -expansionSize) || (y > smallArea.height() + expansionSize))
+					{
+						if (over)
+						{
+							mover.fadeOut(50);
+							over = false;
+						}
+						return;
+					}
+					else
+					{
+						if (!over && _imageZoomEnabled)
+						{
+							mover.fadeIn();
+							over = true;
+						}
+					}
+
+					mover.css(
+					{
+						top: y - (mover.height() / 2),
+						left: x - (mover.width() / 2)
+					});
+					largeArea.css(
+					{
+						left: (-(e.pageX - smallArea.offset().left) * speedMultiplier) + (mover.width() / 2),
+						top: (-(e.pageY - smallArea.offset().top) * speedMultiplier) + (mover.height() / 2),
+					});
+				}).dblclick(function ()
+				{
+					image = largeArea.children("img");
+					document.location.href = image.attr("src");
+				});
+			};
+
+			mover.data("origWidth", mover.width()).data("origHeight", mover.height());
+			// Because the largeArea is often hidden, the width() function returns zero, take width from CSS instead  
+			largeArea.data("origWidth", largeArea.css("width"));
+			setup(smallArea, largeArea, wrap, zoomPort, mover, expansionSize, speedMultiplier);
+			return this;
+		}
+	});
+})(jQuery);
