openoffice-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r1012387 [20/29] - in /websites/staging/ooo-site/trunk: cgi-bin/ content/ content/scripts/api.simile-widgets.org/ content/scripts/api.simile-widgets.org/ajax/ content/scripts/api.simile-widgets.org/ajax/2.2.1.fake/ content/scripts/api.simil...
Date Wed, 17 May 2017 15:33:04 GMT
Added: websites/staging/ooo-site/trunk/content/scripts/api.simile-widgets.org/ajax/2.2.4/simile-ajax-api.js
==============================================================================
--- websites/staging/ooo-site/trunk/content/scripts/api.simile-widgets.org/ajax/2.2.4/simile-ajax-api.js (added)
+++ websites/staging/ooo-site/trunk/content/scripts/api.simile-widgets.org/ajax/2.2.4/simile-ajax-api.js Wed May 17 15:33:02 2017
@@ -0,0 +1,7 @@
+/**
+ * almond 0.2.5 Copyright (c) 2011-2012, The Dojo Foundation All Rights Reserved.
+ * Available via the MIT or new BSD license.
+ * see: http://github.com/jrburke/almond for details
+ */
+
+(function(e,t){typeof define=="function"&&define.amd?define(t):e.SimileAjax=t()})(this,function(){var e,t,r;return function(n){function d(e,t){return h.call(e,t)}function v(e,t){var n,r,i,s,o,u,a,f,c,h,p=t&&t.split("/"),d=l.map,v=d&&d["*"]||{};if(e&&e.charAt(0)===".")if(t){p=p.slice(0,p.length-1),e=p.concat(e.split("/"));for(f=0;f<e.length;f+=1){h=e[f];if(h===".")e.splice(f,1),f-=1;else if(h===".."){if(f===1&&(e[2]===".."||e[0]===".."))break;f>0&&(e.splice(f-1,2),f-=2)}}e=e.join("/")}else e.indexOf("./")===0&&(e=e.substring(2));if((p||v)&&d){n=e.split("/");for(f=n.length;f>0;f-=1){r=n.slice(0,f).join("/");if(p)for(c=p.length;c>0;c-=1){i=d[p.slice(0,c).join("/")];if(i){i=i[r];if(i){s=i,o=f;break}}}if(s)break;!u&&v&&v[r]&&(u=v[r],a=f)}!s&&u&&(s=u,o=a),s&&(n.splice(0,o,s),e=n.join("/"))}return e}function m(e,t){return function(){return s.apply(n,p.call(arguments,0).concat([e,t]))}}function g(e){return function(t){return v(t,e)}}function y(e){return function(t){a[e]=t}}function b(e){if(
 d(f,e)){var t=f[e];delete f[e],c[e]=!0,i.apply(n,t)}if(!d(a,e)&&!d(c,e))throw new Error("No "+e);return a[e]}function w(e){var t,n=e?e.indexOf("!"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function E(e){return function(){return l&&l.config&&l.config[e]||{}}}var i,s,o,u,a={},f={},l={},c={},h=Object.prototype.hasOwnProperty,p=[].slice;o=function(e,t){var n,r=w(e),i=r[0];return e=r[1],i&&(i=v(i,t),n=b(i)),i?n&&n.normalize?e=n.normalize(e,g(t)):e=v(e,t):(e=v(e,t),r=w(e),i=r[0],e=r[1],i&&(n=b(i))),{f:i?i+"!"+e:e,n:e,pr:i,p:n}},u={require:function(e){return m(e)},exports:function(e){var t=a[e];return typeof t!="undefined"?t:a[e]={}},module:function(e){return{id:e,uri:"",exports:a[e],config:E(e)}}},i=function(e,t,r,i){var s,l,h,p,v,g=[],w;i=i||e;if(typeof r=="function"){t=!t.length&&r.length?["require","exports","module"]:t;for(v=0;v<t.length;v+=1){p=o(t[v],i),l=p.f;if(l==="require")g[v]=u.require(e);else if(l==="exports")g[v]=u.exports(e),w=!0;else if(l==="mo
 dule")s=g[v]=u.module(e);else if(d(a,l)||d(f,l)||d(c,l))g[v]=b(l);else{if(!p.p)throw new Error(e+" missing "+l);p.p.load(p.n,m(i,!0),y(l),{}),g[v]=a[l]}}h=r.apply(a[e],g);if(e)if(s&&s.exports!==n&&s.exports!==a[e])a[e]=s.exports;else if(h!==n||!w)a[e]=h}else e&&(a[e]=r)},e=t=s=function(e,t,r,a,f){return typeof e=="string"?u[e]?u[e](t):b(o(e,t).f):(e.splice||(l=e,t.splice?(e=t,t=r,r=null):e=n),t=t||function(){},typeof r=="function"&&(r=a,a=f),a?i(n,e,t,r):setTimeout(function(){i(n,e,t,r)},4),s)},s.config=function(e){return l=e,l.deps&&s(l.deps,l.callback),s},r=function(e,t,n){t.splice||(n=t,t=[]),!d(a,e)&&!d(f,e)&&(f[e]=[e,t,n])},r.amd={jQuery:!0}}(),r("lib/almond",function(){}),r("scripts/simile-ajax-base",[],function(){var e={loaded:!1,loadingScriptsCount:0,error:null,params:{bundle:!0},paramTypes:{bundle:Boolean},version:"3.0.0",jQuery:null,urlPrefix:null};return e}),r("scripts/platform",[],function(){var e={};return e.os={isMac:!1,isWin:!1,isWin32:!1,isUnix:!1},e.browser={isIE:!1
 ,isNetscape:!1,isMozilla:!1,isFirefox:!1,isOpera:!1,isSafari:!1,majorVersion:0,minorVersion:0},function(){var t=navigator.appName.toLowerCase(),n=navigator.userAgent.toLowerCase();e.os.isMac=n.indexOf("mac")!=-1,e.os.isWin=n.indexOf("win")!=-1,e.os.isWin32=e.isWin&&(n.indexOf("95")!=-1||n.indexOf("98")!=-1||n.indexOf("nt")!=-1||n.indexOf("win32")!=-1||n.indexOf("32bit")!=-1),e.os.isUnix=n.indexOf("x11")!=-1,e.browser.isIE=t.indexOf("microsoft")!=-1,e.browser.isNetscape=t.indexOf("netscape")!=-1,e.browser.isMozilla=n.indexOf("mozilla")!=-1,e.browser.isFirefox=n.indexOf("firefox")!=-1,e.browser.isOpera=t.indexOf("opera")!=-1,e.browser.isSafari=t.indexOf("safari")!=-1;var r=function(t){var n=t.split(".");e.browser.majorVersion=parseInt(n[0]),e.browser.minorVersion=parseInt(n[1])},i=function(e,t,n){var r=e.indexOf(t,n);return r>=0?r:e.length};if(e.browser.isMozilla){var s=n.indexOf("mozilla/");s>=0&&r(n.substring(s+8,i(n," ",s)))}if(e.browser.isIE){var s=n.indexOf("msie ");s>=0&&r(n.sub
 string(s+5,i(n,";",s)))}if(e.browser.isNetscape){var s=n.indexOf("rv:");s>=0&&r(n.substring(s+3,i(n,")",s)))}if(e.browser.isFirefox){var s=n.indexOf("firefox/");s>=0&&r(n.substring(s+8,i(n," ",s)))}"localeCompare"in String.prototype||(String.prototype.localeCompare=function(e){return this<e?-1:this>e?1:0})}(),e.getDefaultLocale=function(){return e.clientLocale},e}),r("scripts/debug",["./simile-ajax-base"],function(e){var t={silent:!1};return t.log=function(e){var n;"console"in window&&"log"in window.console?n=function(e){console.log(e)}:n=function(e){t.silent||alert(e)},t.log=n,n(e)},t.warn=function(e){var n;"console"in window&&"warn"in window.console?n=function(e){console.warn(e)}:n=function(e){t.silent||alert(e)},t.warn=n,n(e)},t.exception=function(n,r){var i,s=e.parseURLParameters();s.errors=="throw"||e.params.errors=="throw"?i=function(e,t){throw e}:"console"in window&&"error"in window.console?i=function(e,t){throw t!=null?console.error(t+" %o",e):console.error(e),e}:i=function(
 e,n){throw t.silent||alert("Caught exception: "+n+"\n\nDetails: "+("description"in e?e.description:e)),e},t.exception=i,i(n,r)},t.objectToString=function(e){return t._objectToString(e,"")},t._objectToString=function(e,n){var r=n+" ";if(typeof e=="object"){var i="{";for(s in e)i+=r+s+": "+t._objectToString(e[s],r)+"\n";return i+=n+"}",i}if(typeof e=="array"){var i="[";for(var s=0;s<e.length;s++)i+=t._objectToString(e[s],r)+"\n";return i+=n+"]",i}return e},t}),r("scripts/xmlhttp",["./debug","./platform"],function(e,t){var n=new Object;return n._onReadyStateChange=function(t,n,r){switch(t.readyState){case 4:try{t.status==0||t.status==200?r&&r(t):n&&n(t.statusText,t.status,t)}catch(i){e.exception("XmlHttp: Error handling onReadyStateChange",i)}}},n._createRequest=function(){if(t.browser.isIE){var e=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];for(var r=0;r<e.length;r++)try{var i=e[r],s=function(){return new ActiveXObject(i)},o=s();return n._createRequest=s,o}catch(u){}}tr
 y{var s=function(){return new XMLHttpRequest},o=s();return n._createRequest=s,o}catch(u){throw new Error("Failed to create an XMLHttpRequest object")}},n.get=function(e,t,r){var i=n._createRequest();i.open("GET",e,!0),i.onreadystatechange=function(){n._onReadyStateChange(i,t,r)},i.send(null)},n.post=function(e,t,r,i){var s=n._createRequest();s.open("POST",e,!0),s.onreadystatechange=function(){n._onReadyStateChange(s,r,i)},s.send(t)},n._forceXML=function(e){try{e.overrideMimeType("text/xml")}catch(t){e.setrequestheader("Content-Type","text/xml")}},n}),r("scripts/dom",["./platform"],function(e){var t=new Object;return t.registerEventWithObject=function(e,n,r,i){t.registerEvent(e,n,function(e,t,n){return r[i].call(r,e,t,n)})},t.registerEvent=function(t,n,r){var i=function(e){e=e?e:event?event:null;if(e){var n=e.target?e.target:e.srcElement?e.srcElement:null;return n&&(n=n.nodeType==1||n.nodeType==9?n:n.parentNode),r(t,e,n)}return!0};e.browser.isIE?t.attachEvent("on"+n,i):t.addEventList
 ener(n,i,!1)},t.getPageCoordinates=function(e){var t=0,n=0;e.nodeType!=1&&(e=e.parentNode);var r=e;while(r!=null)t+=r.offsetLeft,n+=r.offsetTop,r=r.offsetParent;var i=document.body;while(e!=null&&e!=i)"scrollLeft"in e&&(t-=e.scrollLeft,n-=e.scrollTop),e=e.parentNode;return{left:t,top:n}},t.getSize=function(e){var t=this.getStyle(e,"width"),n=this.getStyle(e,"height");return t.indexOf("px")>-1&&(t=t.replace("px","")),n.indexOf("px")>-1&&(n=n.replace("px","")),{w:t,h:n}},t.getStyle=function(e,t){if(e.currentStyle)var n=e.currentStyle[t];else if(window.getComputedStyle)var n=document.defaultView.getComputedStyle(e,null).getPropertyValue(t);else var n="";return n},t.getEventRelativeCoordinates=function(n,r){if(e.browser.isIE){if(n.type=="mousewheel"){var i=t.getPageCoordinates(r);return{x:n.clientX-i.left,y:n.clientY-i.top}}return{x:n.offsetX,y:n.offsetY}}var i=t.getPageCoordinates(r);return n.type=="DOMMouseScroll"&&e.browser.isFirefox&&e.browser.majorVersion==2?{x:n.screenX-i.left,y:n
 .screenY-i.top}:{x:n.pageX-i.left,y:n.pageY-i.top}},t.getEventPageCoordinates=function(t){if(e.browser.isIE){var n=0,r=0;return document.body&&(document.body.scrollLeft||document.body.scrollTop)?(n=document.body.scrollTop,r=document.body.scrollLeft):document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)&&(n=document.documentElement.scrollTop,r=document.documentElement.scrollLeft),{x:t.clientX+r,y:t.clientY+n}}return{x:t.pageX,y:t.pageY}},t.hittest=function(e,n,r){return t._hittest(document.body,e,n,r)},t._hittest=function(e,n,r,i){var s=e.childNodes;e:for(var o=0;o<s.length;o++){var u=s[o];for(var a=0;a<i.length;a++)if(u==i[a])continue e;if(u.offsetWidth==0&&u.offsetHeight==0){var f=t._hittest(u,n,r,i);if(f!=u)return f}else{var l=0,c=0,h=u;while(h)l+=h.offsetTop,c+=h.offsetLeft,h=h.offsetParent;if(c<=n&&l<=r&&n-c<u.offsetWidth&&r-l<u.offsetHeight)return t._hittest(u,n,r,i);if(u.nodeType==1&&u.tagName=="TR"){var p=t._hittest(u,n,r,i);if(p!
 =u)return p}}}return e},t.cancelEvent=function(e){e.returnValue=!1,e.cancelBubble=!0,"preventDefault"in e&&e.preventDefault()},t.appendClassName=function(e,t){var n=e.className.split(" ");for(var r=0;r<n.length;r++)if(n[r]==t)return;n.push(t),e.className=n.join(" ")},t.createInputElement=function(e){var t=document.createElement("div");return t.innerHTML="<input type='"+e+"' />",t.firstChild},t.createDOMFromTemplate=function(e){var n={};return n.elmt=t._createDOMFromTemplate(e,n,null),n},t._createDOMFromTemplate=function(r,i,s){if(r==null)return null;if(typeof r!="object"){var o=document.createTextNode(r);return s!=null&&s.appendChild(o),o}var u=null;if("tag"in r){var a=r.tag;s!=null&&(a=="tr"?u=s.insertRow(s.rows.length):a=="td"&&(u=s.insertCell(s.cells.length))),u==null&&(u=a=="input"?t.createInputElement(r.type):document.createElement(a),s!=null&&s.appendChild(u))}else u=r.elmt,s!=null&&s.appendChild(u);for(var f in r){var l=r[f];if(f=="field")i[l]=u;else if(f=="className")u.class
 Name=l;else if(f=="id")u.id=l;else if(f=="title")u.title=l;else if(f!="type"||u.tagName!="input")if(f=="style")for(n in l){var c=l[n];n=="float"&&(n=e.browser.isIE?"styleFloat":"cssFloat"),u.style[n]=c}else if(f=="children")for(var h=0;h<l.length;h++)t._createDOMFromTemplate(l[h],i,u);else f!="tag"&&f!="elmt"&&u.setAttribute(f,l)}return u},t._cachedParent=null,t.createElementFromString=function(e){return t._cachedParent==null&&(t._cachedParent=document.createElement("div")),t._cachedParent.innerHTML=e,t._cachedParent.firstChild},t.createDOMFromString=function(e,n,r){var i=typeof e=="string"?document.createElement(e):e;i.innerHTML=n;var s={elmt:i};return t._processDOMChildrenConstructedFromString(s,i,r!=null?r:{}),s},t._processDOMConstructedFromString=function(e,n,r){var i=n.id;if(i!=null&&i.length>0){n.removeAttribute("id");if(i in r){var s=n.parentNode;s.insertBefore(r[i],n),s.removeChild(n),e[i]=r[i];return}e[i]=n}n.hasChildNodes()&&t._processDOMChildrenConstructedFromString(e,n,r
 )},t._processDOMChildrenConstructedFromString=function(e,n,r){var i=n.firstChild;while(i!=null){var s=i.nextSibling;i.nodeType==1&&t._processDOMConstructedFromString(e,i,r),i=s}},t}),r("scripts/graphics",["./simile-ajax-base","./platform"],function(e,t){var n={pngIsTranslucent:undefined,createTranslucentImage:undefined,createTranslucentImageHTML:undefined};return n._createTranslucentImage1=function(e,t){var n=document.createElement("img");return n.setAttribute("src",e),t!=null&&(n.style.verticalAlign=t),n},n._createTranslucentImage2=function(e,t){var n=document.createElement("img");return n.style.width="1px",n.style.height="1px",n.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+e+"', sizingMethod='image')",n.style.verticalAlign=t!=null?t:"middle",n},n._createTranslucentImageHTML1=function(e,t){return'<img src="'+e+'"'+(t!=null?' style="vertical-align: '+t+';"':"")+" />"},n._createTranslucentImageHTML2=function(e,t){var n="width: 1px; height: 1px; filter:progi
 d:DXImageTransform.Microsoft.AlphaImageLoader(src='"+e+"', sizingMethod='image');"+(t!=null?" vertical-align: "+t+";":"");return"<img src='"+e+"' style=\""+n+'" />'},n.initialize=function(n){return n.pngIsTranslucent=!t.browser.isIE||t.browser.majorVersion>6,n.pngIsTranslucent||includeCssFile(document,e.urlPrefix+"styles/graphics-ie6.css"),n.createTranslucentImage=n.pngIsTranslucent?n._createTranslucentImage1:n._createTranslucentImage2,n.createTranslucentImageHTML=n.pngIsTranslucent?n._createTranslucentImageHTML1:n._createTranslucentImageHTML2,n},n.setOpacity=function(e,n){if(t.browser.isIE)e.style.filter="progid:DXImageTransform.Microsoft.Alpha(Style=0,Opacity="+n+")";else{var r=(n/100).toString();e.style.opacity=r,e.style.MozOpacity=r}},n.bubbleConfig={containerCSSClass:"simileAjax-bubble-container",innerContainerCSSClass:"simileAjax-bubble-innerContainer",contentContainerCSSClass:"simileAjax-bubble-contentContainer",borderGraphicSize:50,borderGraphicCSSClassPrefix:"simileAjax-bub
 ble-border-",arrowGraphicTargetOffset:33,arrowGraphicLength:100,arrowGraphicWidth:49,arrowGraphicCSSClassPrefix:"simileAjax-bubble-arrow-",closeGraphicCSSClass:"simileAjax-bubble-close",extraPadding:20},n.getWindowDimensions=function(){if(typeof window.innerHeight=="number")return{w:window.innerWidth,h:window.innerHeight};if(document.documentElement&&document.documentElement.clientHeight)return{w:document.documentElement.clientWidth,h:document.documentElement.clientHeight};if(document.body&&document.body.clientHeight)return{w:document.body.clientWidth,h:document.body.clientHeight}},n.createMessageBubble=function(e){var t=e.createElement("div"),r="simileAjax-messageBubble";if(n.pngIsTranslucent){var i=e.createElement("div");i.className=r+"-top",t.appendChild(i);var s=e.createElement("div");s.className=r+"-top-right",i.appendChild(s);var o=e.createElement("div");o.className=r+"-middle",t.appendChild(o);var u=e.createElement("div");u.className=r+"-middle-right",o.appendChild(u);var a=e
 .createElement("div");u.appendChild(a);var f=e.createElement("div");f.className=r+"-bottom",t.appendChild(f);var l=e.createElement("div");l.className=r+"-bottom-right",f.appendChild(l)}else{t.style.border="2px solid #7777AA",t.style.padding="20px",t.style.background="white",n.setOpacity(t,90);var a=e.createElement("div");t.appendChild(a)}return{containerDiv:t,contentDiv:a}},n.createAnimation=function(e,t,r,i,s){return new n._Animation(e,t,r,i,s)},n._Animation=function(e,t,n,r,i){this.f=e,this.cont=typeof i=="function"?i:function(){},this.from=t,this.to=n,this.current=t,this.duration=r,this.start=(new Date).getTime(),this.timePassed=0},n._Animation.prototype.run=function(){var e=this;window.setTimeout(function(){e.step()},50)},n._Animation.prototype.step=function(){this.timePassed+=50;var e=this.timePassed/this.duration,t=-Math.cos(e*Math.PI)/2+.5,n=t*(this.to-this.from)+this.from;try{this.f(n,n-this.current)}catch(r){}this.current=n,this.timePassed<this.duration?this.run():(this.f(t
 his.to,0),this.cont())},n.createStructuredDataCopyButton=function(e,r,i,s){var o=document.createElement("div");o.style.position="relative",o.style.display="inline",o.style.width=r+"px",o.style.height=i+"px",o.style.overflow="hidden",o.style.margin="2px",n.pngIsTranslucent?o.style.background="url("+e+") no-repeat":o.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+e+"', sizingMethod='image')";var u;t.browser.isIE?u="filter:alpha(opacity=0)":u="opacity: 0",o.innerHTML="<textarea rows='1' autocomplete='off' value='none' style='"+u+"' />";var a=o.firstChild;return a.style.width=r+"px",a.style.height=i+"px",a.onmousedown=function(e){e=e?e:event?event:null,e.button==2&&(a.value=s(),a.select())},o},n.getWidthHeight=function(e){var t,n;if(e.getBoundingClientRect==null)t=e.offsetWidth,n=e.offsetHeight;else{var r=e.getBoundingClientRect();t=Math.ceil(r.right-r.left),n=Math.ceil(r.bottom-r.top)}return{width:t,height:n}},n.getFontRenderingContext=function(e,t){return new 
 n._FontRenderingContext(e,t)},n._FontRenderingContext=function(e,t){this._elmt=e,this._elmt.style.visibility="hidden",typeof t=="string"?this._elmt.style.width=t:typeof t=="number"&&(this._elmt.style.width=t+"px")},n._FontRenderingContext.prototype.dispose=function(){this._elmt=null},n._FontRenderingContext.prototype.update=function(){this._elmt.innerHTML="A",this._lineHeight=this._elmt.offsetHeight},n._FontRenderingContext.prototype.computeSize=function(e,t){var r=this._elmt;r.innerHTML=e,r.className=t===undefined?"":t;var i=n.getWidthHeight(r);return r.className="",i},n._FontRenderingContext.prototype.getLineHeight=function(){return this._lineHeight},n}),r("scripts/window-manager",["./dom","./debug","./graphics","./simile-ajax-base"],function(e,t,n,r){var i={_initialized:!1,_listeners:[],_draggedElement:null,_draggedElementCallback:null,_dropTargetHighlightElement:null,_lastCoords:null,_ghostCoords:null,_draggingMode:"",_dragging:!1,_layers:[]};return i.initialize=function(){if(i.
 _initialized)return;e.registerEvent(document.body,"mousedown",i._onBodyMouseDown),e.registerEvent(document.body,"mousemove",i._onBodyMouseMove),e.registerEvent(document.body,"mouseup",i._onBodyMouseUp),e.registerEvent(document,"keydown",i._onBodyKeyDown),e.registerEvent(document,"keyup",i._onBodyKeyUp),i._layers.push({index:0}),i._initialized=!0},i.getBaseLayer=function(){return i._layers[0]},i.getHighestLayer=function(){return i._layers[i._layers.length-1]},i.registerEventWithObject=function(e,t,n,r,s){i.registerEvent(e,t,function(e,t,i){return n[r].call(n,e,t,i)},s)},i.registerEvent=function(n,r,s,o){o==null&&(o=i.getHighestLayer());var u=function(n,r,u){if(i._canProcessEventAtLayer(o)){i._popToLayer(o.index);try{s(n,r,u)}catch(a){t.exception(a)}}return e.cancelEvent(r),!1};e.registerEvent(n,r,u)},i.pushLayer=function(e,t,n){var r={onPop:e,index:i._layers.length,ephemeral:t,elmt:n};return i._layers.push(r),r},i.popLayer=function(e){for(var t=1;t<i._layers.length;t++)if(i._layers[t
 ]==e){i._popToLayer(t-1);break}},i.popAllLayers=function(){i._popToLayer(0)},i.registerForDragging=function(e,t,n){i.registerEvent(e,"mousedown",function(e,n,r){i._handleMouseDown(e,n,t)},n)},i._popToLayer=function(e){while(e+1<i._layers.length)try{var t=i._layers.pop();t.onPop!=null&&t.onPop()}catch(n){}},i._canProcessEventAtLayer=function(e){if(e.index==i._layers.length-1)return!0;for(var t=e.index+1;t<i._layers.length;t++)if(!i._layers[t].ephemeral)return!1;return!0},i.cancelPopups=function(t){var n=t?e.getEventPageCoordinates(t):{x:-1,y:-1},r=i._layers.length-1;while(r>0&&i._layers[r].ephemeral){var s=i._layers[r];if(s.elmt!=null){var o=s.elmt,u=e.getPageCoordinates(o);if(n.x>=u.left&&n.x<u.left+o.offsetWidth&&n.y>=u.top&&n.y<u.top+o.offsetHeight)break}r--}i._popToLayer(r)},i._onBodyMouseDown=function(e,t,n){(!("eventPhase"in t)||t.eventPhase==t.BUBBLING_PHASE)&&i.cancelPopups(t)},i._handleMouseDown=function(t,n,r){return i._draggedElement=t,i._draggedElementCallback=r,i._lastCo
 ords={x:n.clientX,y:n.clientY},e.cancelEvent(n),!1},i._onBodyKeyDown=function(e,t,s){if(i._dragging)if(t.keyCode==27)i._cancelDragging();else if((t.keyCode==17||t.keyCode==16)&&i._draggingMode!="copy"){i._draggingMode="copy";var o=n.createTranslucentImage(r.urlPrefix+"images/copy.png");o.style.position="absolute",o.style.left=i._ghostCoords.left-16+"px",o.style.top=i._ghostCoords.top+"px",document.body.appendChild(o),i._draggingModeIndicatorElmt=o}},i._onBodyKeyUp=function(e,t,n){i._dragging&&(t.keyCode==17||t.keyCode==16)&&(i._draggingMode="",i._draggingModeIndicatorElmt!=null&&(document.body.removeChild(i._draggingModeIndicatorElmt),i._draggingModeIndicatorElmt=null))},i._onBodyMouseMove=function(r,s,o){if(i._draggedElement!=null){var u=i._draggedElementCallback,a=i._lastCoords,f=s.clientX-a.x,l=s.clientY-a.y;if(!i._dragging){if(Math.abs(f)>5||Math.abs(l)>5)try{"onDragStart"in u&&u.onDragStart();if("ghost"in u&&u.ghost){var c=i._draggedElement;i._ghostCoords=e.getPageCoordinates(c
 ),i._ghostCoords.left+=f,i._ghostCoords.top+=l;var h=c.cloneNode(!0);h.style.position="absolute",h.style.left=i._ghostCoords.left+"px",h.style.top=i._ghostCoords.top+"px",h.style.zIndex=1e3,n.setOpacity(h,50),document.body.appendChild(h),u._ghostElmt=h}i._dragging=!0,i._lastCoords={x:s.clientX,y:s.clientY},document.body.focus()}catch(p){t.exception("WindowManager: Error handling mouse down",p),i._cancelDragging()}}else try{i._lastCoords={x:s.clientX,y:s.clientY},"onDragBy"in u&&u.onDragBy(f,l);if("_ghostElmt"in u){var h=u._ghostElmt;i._ghostCoords.left+=f,i._ghostCoords.top+=l,h.style.left=i._ghostCoords.left+"px",h.style.top=i._ghostCoords.top+"px";if(i._draggingModeIndicatorElmt!=null){var d=i._draggingModeIndicatorElmt;d.style.left=i._ghostCoords.left-16+"px",d.style.top=i._ghostCoords.top+"px"}if("droppable"in u&&u.droppable){var v=e.getEventPageCoordinates(s),o=e.hittest(v.x,v.y,[i._ghostElmt,i._dropTargetHighlightElement]);o=i._findDropTarget(o);if(o!=i._potentialDropTarget){i
 ._dropTargetHighlightElement!=null&&(document.body.removeChild(i._dropTargetHighlightElement),i._dropTargetHighlightElement=null,i._potentialDropTarget=null);var m=!1;o!=null&&(!("canDropOn"in u)||u.canDropOn(o))&&(!("canDrop"in o)||o.canDrop(i._draggedElement))&&(m=!0);if(m){var g=4,y=e.getPageCoordinates(o),b=document.createElement("div");b.style.border=g+"px solid yellow",b.style.backgroundColor="yellow",b.style.position="absolute",b.style.left=y.left+"px",b.style.top=y.top+"px",b.style.width=o.offsetWidth-g*2+"px",b.style.height=o.offsetHeight-g*2+"px",n.setOpacity(b,30),document.body.appendChild(b),i._potentialDropTarget=o,i._dropTargetHighlightElement=b}}}}}catch(p){t.exception("WindowManager: Error handling mouse move",p),i._cancelDragging()}return e.cancelEvent(s),!1}},i._onBodyMouseUp=function(t,n,r){if(i._draggedElement!=null){try{if(i._dragging){var s=i._draggedElementCallback;"onDragEnd"in s&&s.onDragEnd();if("droppable"in s&&s.droppable){var o=!1,r=i._potentialDropTarge
 t;r!=null&&(!("canDropOn"in s)||s.canDropOn(r))&&(!("canDrop"in r)||r.canDrop(i._draggedElement))&&("onDropOn"in s&&s.onDropOn(r),r.ondrop(i._draggedElement,i._draggingMode),o=!0),!o}}}finally{i._cancelDragging()}return e.cancelEvent(n),!1}},i._cancelDragging=function(){var e=i._draggedElementCallback;if("_ghostElmt"in e){var t=e._ghostElmt;document.body.removeChild(t),delete e._ghostElmt}i._dropTargetHighlightElement!=null&&(document.body.removeChild(i._dropTargetHighlightElement),i._dropTargetHighlightElement=null),i._draggingModeIndicatorElmt!=null&&(document.body.removeChild(i._draggingModeIndicatorElmt),i._draggingModeIndicatorElmt=null),i._draggedElement=null,i._draggedElementCallback=null,i._potentialDropTarget=null,i._dropTargetHighlightElement=null,i._lastCoords=null,i._ghostCoords=null,i._draggingMode="",i._dragging=!1},i._findDropTarget=function(e){while(e!=null){if("ondrop"in e&&typeof e.ondrop=="function")break;e=e.parentNode}return e},i}),r("scripts/bubble",["./graphic
 s","./window-manager"],function(e,t){return e.createBubbleForPoint=function(n,r,i,s,o){i=parseInt(i,10),s=parseInt(s,10);var u=e.bubbleConfig,a=e.pngIsTranslucent?"pngTranslucent":"pngNotTranslucent",f=i+2*u.borderGraphicSize,l=s+2*u.borderGraphicSize,c=function(e){return e+" "+e+"-"+a},h=document.createElement("div");h.className=c(u.containerCSSClass),h.style.width=i+"px",h.style.height=s+"px";var p=document.createElement("div");p.className=c(u.innerContainerCSSClass),h.appendChild(p);var d=function(){v._closed||(document.body.removeChild(v._div),v._doc=null,v._div=null,v._content=null,v._closed=!0)},v={_closed:!1},m=t.pushLayer(d,!0,h);v._div=h,v.close=function(){t.popLayer(m)};var g=function(e){var t=document.createElement("div");t.className=c(u.borderGraphicCSSClassPrefix+e),p.appendChild(t)};g("top-left"),g("top-right"),g("bottom-left"),g("bottom-right"),g("left"),g("right"),g("top"),g("bottom");var y=document.createElement("div");y.className=c(u.contentContainerCSSClass),p.app
 endChild(y),v.content=y;var b=document.createElement("div");return b.className=c(u.closeGraphicCSSClass),p.appendChild(b),t.registerEventWithObject(b,"click",v,"close"),function(){var t=e.getWindowDimensions(),a=t.w,f=t.h,l=Math.ceil(u.arrowGraphicWidth/2),d=function(e){var t=document.createElement("div");return t.className=c(u.arrowGraphicCSSClassPrefix+"point-"+e),p.appendChild(t),t};if(n-l-u.borderGraphicSize-u.extraPadding>0&&n+l+u.borderGraphicSize+u.extraPadding<a){var v=n-Math.round(i/2);v=n<a/2?Math.max(v,u.extraPadding+u.borderGraphicSize):Math.min(v,a-u.extraPadding-u.borderGraphicSize-i);if(o&&o=="top"||!o&&r-u.arrowGraphicTargetOffset-s-u.borderGraphicSize-u.extraPadding>0){var m=d("down");m.style.left=n-l-v+"px",h.style.left=v+"px",h.style.top=r-u.arrowGraphicTargetOffset-s+"px";return}if(o&&o=="bottom"||!o&&r+u.arrowGraphicTargetOffset+s+u.borderGraphicSize+u.extraPadding<f){var m=d("up");m.style.left=n-l-v+"px",h.style.left=v+"px",h.style.top=r+u.arrowGraphicTargetOff
 set+"px";return}}var g=r-Math.round(s/2);g=r<f/2?Math.max(g,u.extraPadding+u.borderGraphicSize):Math.min(g,f-u.extraPadding-u.borderGraphicSize-s);if(o&&o=="left"||!o&&n-u.arrowGraphicTargetOffset-i-u.borderGraphicSize-u.extraPadding>0){var m=d("right");m.style.top=r-l-g+"px",h.style.top=g+"px",h.style.left=n-u.arrowGraphicTargetOffset-i+"px"}else{var m=d("left");m.style.top=r-l-g+"px",h.style.top=g+"px",h.style.left=n+u.arrowGraphicTargetOffset+"px"}}(),document.body.appendChild(h),v},e.createBubbleForContentAndPoint=function(t,n,r,i,s,o){typeof i!="number"&&(i=300),typeof o!="number"&&(o=0),t.style.position="absolute",t.style.left="-5000px",t.style.top="0px",t.style.width=i+"px",document.body.appendChild(t),window.setTimeout(function(){var i=t.scrollWidth+10,u=t.scrollHeight+10,a=0;o>0&&u>o&&(u=o,a=i-25);var f=e.createBubbleForPoint(n,r,i,u,s);document.body.removeChild(t),t.style.position="static",t.style.left="",t.style.top="";if(a>0){var l=document.createElement("div");t.style.w
 idth="",l.style.width=a+"px",l.appendChild(t),f.content.appendChild(l)}else t.style.width=i+"px",f.content.appendChild(t)},200)},e}),r("scripts/date-time",["./debug"],function(e){var t=new Object;return t.MILLISECOND=0,t.SECOND=1,t.MINUTE=2,t.HOUR=3,t.DAY=4,t.WEEK=5,t.MONTH=6,t.YEAR=7,t.DECADE=8,t.CENTURY=9,t.MILLENNIUM=10,t.EPOCH=-1,t.ERA=-2,t.gregorianUnitLengths=[],function(){var e=t,n=e.gregorianUnitLengths;n[e.MILLISECOND]=1,n[e.SECOND]=1e3,n[e.MINUTE]=n[e.SECOND]*60,n[e.HOUR]=n[e.MINUTE]*60,n[e.DAY]=n[e.HOUR]*24,n[e.WEEK]=n[e.DAY]*7,n[e.MONTH]=n[e.DAY]*31,n[e.YEAR]=n[e.DAY]*365,n[e.DECADE]=n[e.YEAR]*10,n[e.CENTURY]=n[e.YEAR]*100,n[e.MILLENNIUM]=n[e.YEAR]*1e3}(),t._dateRegexp=new RegExp("^(-?)([0-9]{4})("+["(-?([0-9]{2})(-?([0-9]{2}))?)","(-?([0-9]{3}))","(-?W([0-9]{2})(-?([1-7]))?)"].join("|")+")?$"),t._timezoneRegexp=new RegExp("Z|(([-+])([0-9]{2})(:?([0-9]{2}))?)$"),t._timeRegexp=new RegExp("^([0-9]{2})(:?([0-9]{2})(:?([0-9]{2})(.([0-9]+))?)?)?$"),t.setIso8601Date=function(e
 ,n){var r=n.match(t._dateRegexp);if(!r)throw new Error("Invalid date string: "+n);var i=r[1]=="-"?-1:1,s=i*r[2],o=r[5],u=r[7],a=r[9],f=r[11],l=r[13]?r[13]:1;e.setUTCFullYear(s);if(a)e.setUTCMonth(0),e.setUTCDate(Number(a));else if(f){e.setUTCMonth(0),e.setUTCDate(1);var c=e.getUTCDay(),h=c?c:7,p=Number(l)+7*Number(f);h<=4?e.setUTCDate(p+1-h):e.setUTCDate(p+8-h)}else o&&(e.setUTCDate(1),e.setUTCMonth(o-1)),u&&e.setUTCDate(u);return e},t.setIso8601Time=function(n,r){var i=r.match(t._timeRegexp);if(!i)return e.warn("Invalid time string: "+r),!1;var s=i[1],o=Number(i[3]?i[3]:0),u=i[5]?i[5]:0,a=i[7]?Number("0."+i[7])*1e3:0;return n.setUTCHours(s),n.setUTCMinutes(o),n.setUTCSeconds(u),n.setUTCMilliseconds(a),n},t.timezoneOffset=(new Date).getTimezoneOffset(),t.setIso8601=function(e,n){var r=null,i=n.indexOf("T")==-1?n.split(" "):n.split("T");t.setIso8601Date(e,i[0]);if(i.length==2){var s=i[1].match(t._timezoneRegexp);s&&(s[0]=="Z"?r=0:(r=Number(s[3])*60+Number(s[5]),r*=s[2]=="-"?1:-1),i[1
 ]=i[1].substr(0,i[1].length-s[0].length)),t.setIso8601Time(e,i[1])}return r==null&&(r=e.getTimezoneOffset()),e.setTime(e.getTime()+r*6e4),e},t.parseIso8601DateTime=function(e){try{return t.setIso8601(new Date(0),e)}catch(n){return null}},t.parseGregorianDateTime=function(e){if(e==null)return null;if(e instanceof Date)return e;var t=e.toString();if(t.length>0&&t.length<8){var n=t.indexOf(" ");if(n>0){var r=parseInt(t.substr(0,n)),i=t.substr(n+1);i.toLowerCase()=="bc"&&(r=1-r)}else var r=parseInt(t);var s=new Date(0);return s.setUTCFullYear(r),s}try{return new Date(Date.parse(t))}catch(o){return null}},t.roundDownToInterval=function(e,n,r,i,s){var o=r*t.gregorianUnitLengths[t.HOUR],u=new Date(e.getTime()+o),a=function(e){e.setUTCMilliseconds(0),e.setUTCSeconds(0),e.setUTCMinutes(0),e.setUTCHours(0)},f=function(e){a(e),e.setUTCDate(1),e.setUTCMonth(0)};switch(n){case t.MILLISECOND:var l=u.getUTCMilliseconds();u.setUTCMilliseconds(l-l%i);break;case t.SECOND:u.setUTCMilliseconds(0);var l
 =u.getUTCSeconds();u.setUTCSeconds(l-l%i);break;case t.MINUTE:u.setUTCMilliseconds(0),u.setUTCSeconds(0);var l=u.getUTCMinutes();u.setTime(u.getTime()-l%i*t.gregorianUnitLengths[t.MINUTE]);break;case t.HOUR:u.setUTCMilliseconds(0),u.setUTCSeconds(0),u.setUTCMinutes(0);var l=u.getUTCHours();u.setUTCHours(l-l%i);break;case t.DAY:a(u);break;case t.WEEK:a(u);var c=(u.getUTCDay()+7-s)%7;u.setTime(u.getTime()-c*t.gregorianUnitLengths[t.DAY]);break;case t.MONTH:a(u),u.setUTCDate(1);var l=u.getUTCMonth();u.setUTCMonth(l-l%i);break;case t.YEAR:f(u);var l=u.getUTCFullYear();u.setUTCFullYear(l-l%i);break;case t.DECADE:f(u),u.setUTCFullYear(Math.floor(u.getUTCFullYear()/10)*10);break;case t.CENTURY:f(u),u.setUTCFullYear(Math.floor(u.getUTCFullYear()/100)*100);break;case t.MILLENNIUM:f(u),u.setUTCFullYear(Math.floor(u.getUTCFullYear()/1e3)*1e3)}e.setTime(u.getTime()-o)},t.roundUpToInterval=function(e,n,r,i,s){var o=e.getTime();t.roundDownToInterval(e,n,r,i,s),e.getTime()<o&&e.setTime(e.getTime()
 +t.gregorianUnitLengths[n]*i)},t.incrementByInterval=function(e,n,r){r=typeof r=="undefined"?0:r;var i=r*t.gregorianUnitLengths[t.HOUR],s=new Date(e.getTime()+i);switch(n){case t.MILLISECOND:s.setTime(s.getTime()+1);break;case t.SECOND:s.setTime(s.getTime()+1e3);break;case t.MINUTE:s.setTime(s.getTime()+t.gregorianUnitLengths[t.MINUTE]);break;case t.HOUR:s.setTime(s.getTime()+t.gregorianUnitLengths[t.HOUR]);break;case t.DAY:s.setUTCDate(s.getUTCDate()+1);break;case t.WEEK:s.setUTCDate(s.getUTCDate()+7);break;case t.MONTH:s.setUTCMonth(s.getUTCMonth()+1);break;case t.YEAR:s.setUTCFullYear(s.getUTCFullYear()+1);break;case t.DECADE:s.setUTCFullYear(s.getUTCFullYear()+10);break;case t.CENTURY:s.setUTCFullYear(s.getUTCFullYear()+100);break;case t.MILLENNIUM:s.setUTCFullYear(s.getUTCFullYear()+1e3)}e.setTime(s.getTime()-i)},t.removeTimeZoneOffset=function(e,n){return new Date(e.getTime()+n*t.gregorianUnitLengths[t.HOUR])},t.getTimezone=function(){var e=(new Date).getTimezoneOffset();retur
 n e/-60},t}),r("scripts/string",[],function(){var e={};return e.trim=function(e){return e.replace(/^\s+|\s+$/g,"")},e.startsWith=function(e,t){return e.length>=t.length&&e.substr(0,t.length)===t},e.endsWith=function(e,t){return e.length>=t.length&&e.substr(e.length-t.length)===t},e.substitute=function(e,t){var n,r,i,s;n="",r=0;while(r<e.length-1){i=e.indexOf("%",r);if(i<0||i===e.length-1)break;i>r&&e.charAt(i-1)==="\\"?(n+=e.substring(r,i-1)+"%",r=i+1):(s=parseInt(e.charAt(i+1)),isNaN(s)||s>=t.length?n+=e.substring(r,i+2):n+=e.substring(r,i)+t[s].toString(),r=i+2)}return r<e.length&&(n+=e.substring(r)),n},e}),r("scripts/html",[],function(){var e=new Object;return e._e2uHash={},function(){var t=e._e2uHash;t.nbsp=" ",t.iexcl="¡",t.cent="¢",t.pound="£",t.curren="¤",t.yen="¥",t.brvbar="¦",t.sect="§",t.uml="¨",t.copy="©",t.ordf="ª",t.laquo="«",t.not="¬",t.shy="­",t.reg="®",t.macr="¯",t.deg="°",t.plusmn="±",t.sup2="²",t.sup3="³",
 t.acute="´",t.micro="µ",t.para="¶",t.middot="·",t.cedil="¸",t.sup1="¹",t.ordm="º",t.raquo="»",t.frac14="¼",t.frac12="½",t.frac34="¾",t.iquest="¿",t.Agrave="À",t.Aacute="Á",t.Acirc="Â",t.Atilde="Ã",t.Auml="Ä",t.Aring="Å",t.AElig="Æ",t.Ccedil="Ç",t.Egrave="È",t.Eacute="É",t.Ecirc="Ê",t.Euml="Ë",t.Igrave="Ì",t.Iacute="Í",t.Icirc="Î",t.Iuml="Ï",t.ETH="Ð",t.Ntilde="Ñ",t.Ograve="Ò",t.Oacute="Ó",t.Ocirc="Ô",t.Otilde="Õ",t.Ouml="Ö",t.times="×",t.Oslash="Ø",t.Ugrave="Ù",t.Uacute="Ú",t.Ucirc="Û",t.Uuml="Ü",t.Yacute="Ý",t.THORN="Þ",t.szlig="ß",t.agrave="à",t.aacute="á",t.acirc="â",t.atilde="ã",t.auml="ä",t.aring="å",t.aelig="æ",t.ccedil="ç",t.egrave="è",t.eacute="é",t.ecirc="ê",t.euml="ë",t.igrave="ì",t.iacute="í",t.icirc="î",t.iuml="ï",t.eth="ð",t.ntilde="ñ",t.ograve="ò",t.oacute="ó",t.ocirc="ô",t.oti
 lde="õ",t.ouml="ö",t.divide="÷",t.oslash="ø",t.ugrave="ù",t.uacute="ú",t.ucirc="û",t.uuml="ü",t.yacute="ý",t.thorn="þ",t.yuml="ÿ",t.quot='"',t.amp="&",t.lt="<",t.gt=">",t.OElig="",t.oelig="œ",t.Scaron="Š",t.scaron="š",t.Yuml="Ÿ",t.circ="ˆ",t.tilde="˜",t.ensp=" ",t.emsp=" ",t.thinsp=" ",t.zwnj="‌",t.zwj="‍",t.lrm="‎",t.rlm="‏",t.ndash="–",t.mdash="—",t.lsquo="‘",t.rsquo="’",t.sbquo="‚",t.ldquo="“",t.rdquo="”",t.bdquo="„",t.dagger="†",t.Dagger="‡",t.permil="‰",t.lsaquo="‹",t.rsaquo="›",t.euro="€",t.fnof="ƒ",t.Alpha="Α",t.Beta="Β",t.Gamma="Γ",t.Delta="Δ",t.Epsilon="Ε",t.Zeta="Ζ",t.Eta="Η",t.Theta="Θ",t.Iota="Ι",t.Kappa="Κ",t.Lambda="Λ",t.Mu="Μ",t.Nu="Ν",t.Xi="Ξ",t.Omicron="Ο",t.Pi="Π",t.Rho="Ρ",t.Sigma="Σ",t.Tau="Τ",t.Upsilon="Υ",t.Phi="Φ",t.Chi="Χ",t.Psi="Ψ",t.
 Omega="Ω",t.alpha="α",t.beta="β",t.gamma="γ",t.delta="δ",t.epsilon="ε",t.zeta="ζ",t.eta="η",t.theta="θ",t.iota="ι",t.kappa="κ",t.lambda="λ",t.mu="μ",t.nu="ν",t.xi="ξ",t.omicron="ο",t.pi="π",t.rho="ρ",t.sigmaf="ς",t.sigma="σ",t.tau="τ",t.upsilon="υ",t.phi="φ",t.chi="χ",t.psi="ψ",t.omega="ω",t.thetasym="ϑ",t.upsih="ϒ",t.piv="ϖ",t.bull="•",t.hellip="…",t.prime="′",t.Prime="″",t.oline="‾",t.frasl="⁄",t.weierp="℘",t.image="ℑ",t.real="ℜ",t.trade="™",t.alefsym="ℵ",t.larr="←",t.uarr="↑",t.rarr="→",t.darr="↓",t.harr="↔",t.crarr="↵",t.lArr="⇐",t.uArr="⇑",t.rArr="⇒",t.dArr="⇓",t.hArr="⇔",t.forall="∀",t.part="∂",t.exist="∃",t.empty="∅",t.nabla="∇",t.isin="∈",t.notin="∉",t.ni="∋",t.prod="∏",t.sum="∑",t.minus="−",t.lowast="∗",t.radic="√",t
 .prop="∝",t.infin="∞",t.ang="∠",t.and="∧",t.or="∨",t.cap="∩",t.cup="∪",t["int"]="∫",t.there4="∴",t.sim="∼",t.cong="≅",t.asymp="≈",t.ne="≠",t.equiv="≡",t.le="≤",t.ge="≥",t.sub="⊂",t.sup="⊃",t.nsub="⊄",t.sube="⊆",t.supe="⊇",t.oplus="⊕",t.otimes="⊗",t.perp="⊥",t.sdot="⋅",t.lceil="⌈",t.rceil="⌉",t.lfloor="⌊",t.rfloor="⌋",t.lang="〈",t.rang="〉",t.loz="◊",t.spades="♠",t.clubs="♣",t.hearts="♥",t.diams="♦"}(),e.deEntify=function(t){var n=e._e2uHash,r=/&(\w+?);/;while(r.test(t)){var i=t.match(r);t=t.replace(r,n[i[1]])}return t},e}),r("scripts/set",[],function(){var e=function(t){this._hash={},this._count=0;if(t instanceof Array)for(var n=0;n<t.length;n++)this.add(t[n]);else t instanceof e&&this.addSet(t)};return e.prototype.add=function(e){return e in this._hash?!1:(this._hash[e]=!0,this._count++,!0)},e.prototype.ad
 dSet=function(e){for(var t in e._hash)this.add(t)},e.prototype.remove=function(e){return e in this._hash?(delete this._hash[e],this._count--,!0):!1},e.prototype.removeSet=function(e){for(var t in e._hash)this.remove(t)},e.prototype.retainSet=function(e){for(var t in this._hash)e.contains(t)||(delete this._hash[t],this._count--)},e.prototype.contains=function(e){return e in this._hash},e.prototype.size=function(){return this._count},e.prototype.toArray=function(){var e=[];for(var t in this._hash)e.push(t);return e},e.prototype.visit=function(e){for(var t in this._hash)if(e(t)==1)break},e}),r("scripts/sorted-array",[],function(){var e=function(e,t){this._a=t instanceof Array?t:[],this._compare=e};return e.prototype.add=function(e){var t=this,n=this.find(function(n){return t._compare(n,e)});n<this._a.length?this._a.splice(n,0,e):this._a.push(e)},e.prototype.remove=function(e){var t=this,n=this.find(function(n){return t._compare(n,e)});while(n<this._a.length&&this._compare(this._a[n],e)
 ==0){if(this._a[n]==e)return this._a.splice(n,1),!0;n++}return!1},e.prototype.removeAll=function(){this._a=[]},e.prototype.elementAt=function(e){return this._a[e]},e.prototype.length=function(){return this._a.length},e.prototype.find=function(e){var t=0,n=this._a.length;while(t<n){var r=Math.floor((t+n)/2),i=e(this._a[r]);if(r==t)return i<0?t+1:t;i<0?t=r:n=r}return t},e.prototype.getFirst=function(){return this._a.length>0?this._a[0]:null},e.prototype.getLast=function(){return this._a.length>0?this._a[this._a.length-1]:null},e}),r("scripts/units",["./date-time"],function(e){var t=new Object;return t.makeDefaultValue=function(){return new Date},t.cloneValue=function(e){return new Date(e.getTime())},t.getParser=function(t){typeof t=="string"&&(t=t.toLowerCase());var n=t=="iso8601"||t=="iso 8601"?e.parseIso8601DateTime:e.parseGregorianDateTime;return function(e){return typeof e!="undefined"&&e!==null&&typeof e.toUTCString=="function"?e:n(e)}},t.parseFromObject=function(t){return e.pars
 eGregorianDateTime(t)},t.toNumber=function(e){return e.getTime()},t.fromNumber=function(e){return new Date(e)},t.compare=function(e,t){var n,r;return typeof e=="object"?n=e.getTime():n=Number(e),typeof t=="object"?r=t.getTime():r=Number(t),n-r},t.earlier=function(e,n){return t.compare(e,n)<0?e:n},t.later=function(e,n){return t.compare(e,n)>0?e:n},t.change=function(e,t){return new Date(e.getTime()+t)},t}),r("scripts/event-index",["./units","./sorted-array"],function(e,t){var n=function(n){var r=this;this._unit=n!=null?n:e,this._events=new t(function(e,t){return r._unit.compare(e.getStart(),t.getStart())}),this._idToEvent={},this._indexed=!0};return n.prototype.getUnit=function(){return this._unit},n.prototype.getEvent=function(e){return this._idToEvent[e]},n.prototype.add=function(e){this._events.add(e),this._idToEvent[e.getID()]=e,this._indexed=!1},n.prototype.removeAll=function(){this._events.removeAll(),this._idToEvent={},this._indexed=!1},n.prototype.getCount=function(){return th
 is._events.length()},n.prototype.getIterator=function(e,t){return this._indexed||this._index(),new n._Iterator(this._events,e,t,this._unit)},n.prototype.getReverseIterator=function(e,t){return this._indexed||this._index(),new n._ReverseIterator(this._events,e,t,this._unit)},n.prototype.getAllIterator=function(){return new n._AllIterator(this._events)},n.prototype.getEarliestDate=function(){var e=this._events.getFirst();return e==null?null:e.getStart()},n.prototype.getLatestDate=function(){var e=this._events.getLast();if(e==null)return null;this._indexed||this._index();var t=e._earliestOverlapIndex,n=this._events.elementAt(t).getEnd();for(var r=t+1;r<this._events.length();r++)n=this._unit.later(n,this._events.elementAt(r).getEnd());return n},n.prototype._index=function(){var e=this._events.length();for(var t=0;t<e;t++){var n=this._events.elementAt(t);n._earliestOverlapIndex=t}var r=1;for(var t=0;t<e;t++){var n=this._events.elementAt(t),i=n.getEnd();r=Math.max(r,t+1);while(r<e){var s=
 this._events.elementAt(r),o=s.getStart();if(!(this._unit.compare(o,i)<0))break;s._earliestOverlapIndex=t,r++}}this._indexed=!0},n._Iterator=function(e,t,n,r){this._events=e,this._startDate=t,this._endDate=n,this._unit=r,this._currentIndex=e.find(function(e){return r.compare(e.getStart(),t)}),this._currentIndex-1>=0&&(this._currentIndex=this._events.elementAt(this._currentIndex-1)._earliestOverlapIndex),this._currentIndex--,this._maxIndex=e.find(function(e){return r.compare(e.getStart(),n)}),this._hasNext=!1,this._next=null,this._findNext()},n._Iterator.prototype={hasNext:function(){return this._hasNext},next:function(){if(this._hasNext){var e=this._next;return this._findNext(),e}return null},_findNext:function(){var e=this._unit;while(++this._currentIndex<this._maxIndex){var t=this._events.elementAt(this._currentIndex);if(e.compare(t.getStart(),this._endDate)<0&&e.compare(t.getEnd(),this._startDate)>0){this._next=t,this._hasNext=!0;return}}this._next=null,this._hasNext=!1}},n._Rever
 seIterator=function(e,t,n,r){this._events=e,this._startDate=t,this._endDate=n,this._unit=r,this._minIndex=e.find(function(e){return r.compare(e.getStart(),t)}),this._minIndex-1>=0&&(this._minIndex=this._events.elementAt(this._minIndex-1)._earliestOverlapIndex),this._maxIndex=e.find(function(e){return r.compare(e.getStart(),n)}),this._currentIndex=this._maxIndex,this._hasNext=!1,this._next=null,this._findNext()},n._ReverseIterator.prototype={hasNext:function(){return this._hasNext},next:function(){if(this._hasNext){var e=this._next;return this._findNext(),e}return null},_findNext:function(){var e=this._unit;while(--this._currentIndex>=this._minIndex){var t=this._events.elementAt(this._currentIndex);if(e.compare(t.getStart(),this._endDate)<0&&e.compare(t.getEnd(),this._startDate)>0){this._next=t,this._hasNext=!0;return}}this._next=null,this._hasNext=!1}},n._AllIterator=function(e){this._events=e,this._index=0},n._AllIterator.prototype={hasNext:function(){return this._index<this._event
 s.length()},next:function(){return this._index<this._events.length()?this._events.elementAt(this._index++):null}},n}),r("scripts/ajax",["./debug"],function(e){var t=function(e){this._listeners=[],this._wildcardHandlerName=e};return t.prototype.add=function(e){this._listeners.push(e)},t.prototype.remove=function(e){var t=this._listeners;for(var n=0;n<t.length;n++)if(t[n]==e){t.splice(n,1);break}},t.prototype.fire=function(t,n){var r=[].concat(this._listeners);for(var i=0;i<r.length;i++){var s=r[i];if(t in s)try{s[t].apply(s,n)}catch(o){e.exception("Error firing event of name "+t,o)}else if(this._wildcardHandlerName!=null&&this._wildcardHandlerName in s)try{s[this._wildcardHandlerName].apply(s,[t])}catch(o){e.exception("Error firing event of name "+t+" to wildcard handler",o)}}},t}),r("scripts/history",["./ajax","./dom","./debug","./window-manager"],function(e,t,n,r){var i={maxHistoryLength:10,historyFile:"__history__.html",enabled:!0,_initialized:!1,_listeners:new e,_actions:[],_base
 Index:0,_currentIndex:0,_plainDocumentTitle:document.title};return i.formatHistoryEntryTitle=function(e){return i._plainDocumentTitle+" {"+e+"}"},i.initialize=function(){if(i._initialized)return;if(i.enabled){var e=document.createElement("iframe");e.id="simile-ajax-history",e.style.position="absolute",e.style.width="10px",e.style.height="10px",e.style.top="0px",e.style.left="0px",e.style.visibility="hidden",e.src=i.historyFile+"?0",document.body.appendChild(e),t.registerEvent(e,"load",i._handleIFrameOnLoad),i._iframe=e}i._initialized=!0},i.addListener=function(e){i._listeners.add(e)},i.removeListener=function(e){i._listeners.remove(e)},i.addAction=function(e){i._listeners.fire("onBeforePerform",[e]),window.setTimeout(function(){try{e.perform(),i._listeners.fire("onAfterPerform",[e]);if(i.enabled){i._actions=i._actions.slice(0,i._currentIndex-i._baseIndex),i._actions.push(e),i._currentIndex++;var t=i._actions.length-i.maxHistoryLength;t>0&&(i._actions=i._actions.slice(t),i._baseIndex
 +=t);try{i._iframe.contentWindow.location.search="?"+i._currentIndex}catch(r){var s=i.formatHistoryEntryTitle(e.label);document.title=s}}}catch(r){n.exception(r,"Error adding action {"+e.label+"} to history")}},0)},i.addLengthyAction=function(e,t,n){i.addAction({perform:e,undo:t,label:n,uiLayer:r.getBaseLayer(),lengthy:!0})},i._handleIFrameOnLoad=function(){try{var e=i._iframe.contentWindow.location.search,t=e.length==0?0:Math.max(0,parseInt(e.substr(1))),r=function(){var e=t-i._currentIndex;i._currentIndex+=e,i._baseIndex+=e,i._iframe.contentWindow.location.search="?"+t};if(t<i._currentIndex)i._listeners.fire("onBeforeUndoSeveral",[]),window.setTimeout(function(){while(i._currentIndex>t&&i._currentIndex>i._baseIndex){i._currentIndex--;var e=i._actions[i._currentIndex-i._baseIndex];try{e.undo()}catch(s){n.exception(s,"History: Failed to undo action {"+e.label+"}")}}i._listeners.fire("onAfterUndoSeveral",[]),r()},0);else if(t>i._currentIndex)i._listeners.fire("onBeforeRedoSeveral",[]
 ),window.setTimeout(function(){while(i._currentIndex<t&&i._currentIndex-i._baseIndex<i._actions.length){var e=i._actions[i._currentIndex-i._baseIndex];try{e.perform()}catch(s){n.exception(s,"History: Failed to redo action {"+e.label+"}")}i._currentIndex++}i._listeners.fire("onAfterRedoSeveral",[]),r()},0);else{var s=i._currentIndex-i._baseIndex-1,o=s>=0&&s<i._actions.length?i.formatHistoryEntryTitle(i._actions[s].label):i._plainDocumentTitle;i._iframe.contentWindow.document.title=o,document.title=o}}catch(u){}},i.getNextUndoAction=function(){try{var e=i._currentIndex-i._baseIndex-1;return i._actions[e]}catch(t){return null}},i.getNextRedoAction=function(){try{var e=i._currentIndex-i._baseIndex;return i._actions[e]}catch(t){return null}},i}),r("simile-ajax",["module","./scripts/simile-ajax-base","./scripts/platform","./scripts/debug","./scripts/xmlhttp","./scripts/dom","./scripts/bubble","./scripts/date-time","./scripts/string","./scripts/html","./scripts/set","./scripts/sorted-array
 ","./scripts/event-index","./scripts/units","./scripts/ajax","./scripts/history","./scripts/window-manager"],function(e,t,n,r,i,s,o,u,a,f,l,c,h,p,d,v,m){t.Platform=n,t.Debug=r,t.XmlHttp=i,t.DOM=s,t.Graphics=o,t.DateTime=u,t.StringUtils=a,t.HTML=f,t.Set=l,t.SortedArray=c,t.EventIndex=h,t.NativeDateUnit=p,t.ListenerQueue=d,t.History=v,t.WindowManager=m;var g=function(e){return e.getElementsByTagName("head")[0]};return t.findScript=function(e,t){var n,r,i,s;n=e.documentElement.getElementsByTagName("script");for(r=0;r<n.length;r++){i=n[r].src,s=i.indexOf(t);if(s>=0)return i}return null},t.parseURLParameters=function(e,t,n){t=t||{},n=n||{},typeof e=="undefined"&&(e=location.href);var r=e.indexOf("?");if(r<0)return t;e=(e+"#").slice(r+1,e.indexOf("#"));var i=e.split("&"),s,o={},u=window.decodeURIComponent||unescape;for(var a=0;s=i[a];a++){var f=s.indexOf("="),l=u(s.slice(0,f)),c=o[l],h=u(s.slice(f+1));typeof c=="undefined"?c=[]:c instanceof Array||(c=[c]),o[l]=c.concat(h)}for(var a in o){
 if(!o.hasOwnProperty(a))continue;var p=n[a]||String,d=o[a];d instanceof Array||(d=[d]),p===Boolean&&d[0]=="false"?t[a]=!1:t[a]=p.apply(this,d)}return t},t.includeJavascriptFile=function(e,n,r,i,s){t.Debug.warn("Loading scripts is no longer a feature of SimileAjax. Use RequireJS instead.");return},t.includeJavascriptFiles=function(e,n,r){t.Debug.warn("Loading scripts is no longer a feature of SimileAjax. Use RequireJS instead.");return},t.includeCssFile=function(e,t){if(e.body==null)try{e.write("<link rel='stylesheet' href='"+t+"' type='text/css'/>");return}catch(n){}var r=e.createElement("link");r.setAttribute("rel","stylesheet"),r.setAttribute("type","text/css"),r.setAttribute("href",t),g(e).appendChild(r)},t.includeCssFiles=function(e,n,r){for(var i=0;i<r.length;i++)t.includeCssFile(e,n+r[i])},t.prefixURLs=function(e,t,n){for(var r=0;r<n.length;r++)e.push(t+n[r])},t.setPrefix=function(e){return t.urlPrefix===null&&e!==null?(e.substr(-1)!=="/"&&(e+="/"),t.urlPrefix=e,t.params.prefi
 x=e,t.loadCSS(t.params.bundle),!0):!1},t.loadCSS=function(e){var n=["main.css"],r="simile-ajax-bundle.css";e=e||!0,e?t.includeCssFile(document,t.urlPrefix+"styles/"+r):t.includeCssFiles(document,t.urlPrefix+"styles/",n)},t.loadLegacy=function(){var e,n,r,i,s;e=null;if(typeof SimileAjax_urlPrefix=="string")e=SimileAjax_urlPrefix,t.setPrefix(e);else{n=null,r=["simile-ajax-api.js","simile-ajax-bundle.js"];for(s=0;s<r.length;s++){i=r[s],n=t.findScript(document,i);if(n!=null){e=n.substr(0,n.indexOf(i));break}}n===null?t.error=new Error("Failed to derive URL prefix for SimileAjax"):(t.setPrefix(e),t.params=t.parseURLParameters(n,t.params,t.paramTypes))}t.Graphics=o.initialize(o),t.History.initialize(),t.WindowManager.initialize()},t.loadRequire=function(){var n;n=e.config(),t.params=n,t.setPrefix(t.params.prefix),t.Graphics=o.initialize(o),t.History.initialize(),t.WindowManager.initialize()},t.load=function(){if(t.loaded)return;t.loaded=!0,e.config().hasOwnProperty("prefix")?t.loadRequire
 ():t.loadLegacy()},t}),t("simile-ajax")});
\ No newline at end of file

Added: websites/staging/ooo-site/trunk/content/scripts/api.simile-widgets.org/ajax/2.2.4/simile-ajax-bundle.css
==============================================================================
--- websites/staging/ooo-site/trunk/content/scripts/api.simile-widgets.org/ajax/2.2.4/simile-ajax-bundle.css (added)
+++ websites/staging/ooo-site/trunk/content/scripts/api.simile-widgets.org/ajax/2.2.4/simile-ajax-bundle.css Wed May 17 15:33:02 2017
@@ -0,0 +1,181 @@
+div.simileAjax-bubble-container {
+    margin:     0px;
+    padding:    0px;
+    border:     none;
+    position:   absolute;
+    z-index:    1000;
+}
+div.simileAjax-bubble-innerContainer {
+    margin:     0px;
+    padding:    0px;
+    border:     none;
+    position:   relative;
+    width:      100%;
+    height:     100%;
+    overflow:   visible;
+}
+div.simileAjax-bubble-contentContainer {
+    margin:     0px;
+    padding:    0px;
+    border:     none;
+    position:   absolute;
+    left:       0px;
+    top:        0px;
+    width:      100%;
+    height:     100%;
+    overflow:   auto;
+    background: white;
+}
+div.simileAjax-bubble-border-left {
+    position:   absolute;
+    left:       -50px;
+    top:        0px;
+    width:      50px;
+    height:     100%;
+}
+div.simileAjax-bubble-border-left-pngTranslucent {
+    background: url(../images/bubble-left.png) top right repeat-y;
+}
+div.simileAjax-bubble-border-right {
+    position:   absolute;
+    right:      -50px;
+    top:        0px;
+    width:      50px;
+    height:     100%;
+}
+.simileAjax-bubble-border-right-pngTranslucent {
+    background: url(../images/bubble-right.png) top left repeat-y;
+}
+div.simileAjax-bubble-border-top {
+    position:   absolute;
+    top:        -50px;
+    left:       0px;
+    width:      100%;
+    height:     50px;
+}
+.simileAjax-bubble-border-top-pngTranslucent {
+    background: url(../images/bubble-top.png) bottom left repeat-x;
+}
+div.simileAjax-bubble-border-bottom {
+    position:   absolute;
+    bottom:     -50px;
+    left:       0px;
+    width:      100%;
+    height:     50px;
+}
+.simileAjax-bubble-border-bottom-pngTranslucent {
+    background: url(../images/bubble-bottom.png) top left repeat-x;
+}
+div.simileAjax-bubble-border-top-left {
+    position:   absolute;
+    top:        -50px;
+    left:       -50px;
+    width:      50px;
+    height:     50px;
+}
+.simileAjax-bubble-border-top-left-pngTranslucent {
+    background: url(../images/bubble-top-left.png) bottom right no-repeat;
+}
+div.simileAjax-bubble-border-top-right {
+    position:   absolute;
+    top:        -50px;
+    right:      -50px;
+    width:      50px;
+    height:     50px;
+}
+.simileAjax-bubble-border-top-right-pngTranslucent {
+    background: url(../images/bubble-top-right.png) bottom left no-repeat;
+}
+div.simileAjax-bubble-border-bottom-left {
+    position:   absolute;
+    bottom:     -50px;
+    left:       -50px;
+    width:      50px;
+    height:     50px;
+}
+.simileAjax-bubble-border-bottom-left-pngTranslucent {
+    background: url(../images/bubble-bottom-left.png) top right no-repeat;
+}
+div.simileAjax-bubble-border-bottom-right {
+    position:   absolute;
+    bottom:     -50px;
+    right:      -50px;
+    width:      50px;
+    height:     50px;
+}
+.simileAjax-bubble-border-bottom-right-pngTranslucent {
+    background: url(../images/bubble-bottom-right.png) top left no-repeat;
+}
+div.simileAjax-bubble-arrow-point-left {
+    position:   absolute;
+    left:       -100px;
+    width:      100px;
+    height:     49px;
+}
+.simileAjax-bubble-arrow-point-left-pngTranslucent {
+    background: url(../images/bubble-arrow-point-left.png) center right no-repeat;
+}
+div.simileAjax-bubble-arrow-point-right {
+    position:   absolute;
+    right:      -100px;
+    width:      100px;
+    height:     49px;
+}
+.simileAjax-bubble-arrow-point-right-pngTranslucent {
+    background: url(../images/bubble-arrow-point-right.png) center left no-repeat;
+}
+div.simileAjax-bubble-arrow-point-up {
+    position:   absolute;
+    top:        -100px;
+    width:      49px;
+    height:     100px;
+}
+.simileAjax-bubble-arrow-point-up-pngTranslucent {
+    background: url(../images/bubble-arrow-point-up.png) bottom center no-repeat;
+}
+div.simileAjax-bubble-arrow-point-down {
+    position:   absolute;
+    bottom:     -100px;
+    width:      49px;
+    height:     100px;
+}
+.simileAjax-bubble-arrow-point-down-pngTranslucent {
+    background: url(../images/bubble-arrow-point-down.png) bottom center no-repeat;
+}
+div.simileAjax-bubble-close {
+    position:   absolute;
+    right:      -10px;
+    top:        -12px;
+    width:      16px;
+    height:     16px;
+    cursor:     pointer;
+}
+.simileAjax-bubble-close-pngTranslucent {
+    background: url(../images/close-button.png) no-repeat;
+}
+div.simileAjax-messageBubble-top {
+    height: 33px;
+    padding-left: 44px;
+    background: url(../images/message-top-left.png) top left no-repeat;
+}
+div.simileAjax-messageBubble-top-right {
+    height: 33px;
+    background: url(../images/message-top-right.png) top right no-repeat;
+}
+div.simileAjax-messageBubble-middle {
+    padding-left: 44px;
+    background: url(../images/message-left.png) top left repeat-y;
+}
+div.simileAjax-messageBubble-middle-right {
+    padding-right: 44px;
+    background: url(../images/message-right.png) top right repeat-y;
+}
+div.simileAjax-messageBubble-bottom {
+    height: 55px;
+    padding-left: 44px;
+    background: url(../images/message-bottom-left.png) bottom left no-repeat;
+}
+div.simileAjax-messageBubble-bottom-right {
+    height: 55px;
+    background: url(../images/message-bottom-right.png) bottom right no-repeat;
+}



Mime
View raw message