var NO_JQUERY={};!function(e,t,n){if(!("console"in e)){var a=e.console={};a.log=a.warn=a.error=a.debug=function(){}}t===NO_JQUERY&&(t={fn:{},extend:function(){for(var e=arguments[0],t=1,n=arguments.length;t=0},getElement:function(e){var n="querySelectorAll";0===e.indexOf("#")&&(n="getElementById",e=e.substr(1,e.length));var a=t[n](e);return a&&"querySelectorAll"===n?a[0]:a},elementHeight:function(e){var n=0,a=0;return t.all?(n=e.currentStyle.height,this.isNumeric(n)||(n=e.offsetHeight),n=parseInt(n,10),a=parseInt(e.currentStyle.marginTop,10)+parseInt(e.currentStyle.marginBottom,10)):(n=parseInt(t.defaultView.getComputedStyle(e,"").getPropertyValue("height"),10),a=parseInt(t.defaultView.getComputedStyle(e,"").getPropertyValue("margin-top"),10)+parseInt(t.defaultView.getComputedStyle(e,"").getPropertyValue("margin-bottom"),10)),n+a},hasClass:function(e,t){return e.classList?e.classList.contains(t):!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))},addClass:function(e,t){e.classList?e.classList.add(t):this.hasClass(e,t)||(e.className+=" "+t)},removeClass:function(e,t){if(e.classList)e.classList.remove(t);else if(this.hasClass(e,t)){var n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ")}},getParam:function(t,n){n=n||e.location.search;var a="[?&]"+t+"=([^]*)",s=new RegExp(a),r=s.exec(n);return null===r?"":decodeURIComponent(r[1].replace(/\+/g," "))},filterText:function(e){return e.replace(/[<>]/g,"")},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},setStyle:function(t,n){n.length>0&&(n="string"==typeof n?n:n.join(" "),n=e.SeamlessBase.filterText(n),t.styleSheet?t.styleSheet.cssText=n:t.innerHTML=n)},injectStyles:function(n){var a=this.getElement("style#injected-styles");if(a)e.SeamlessBase.setStyle(a,n);else{var s=t.createElement("style");s.setAttribute("type","text/css"),s.setAttribute("id","injected-styles"),e.SeamlessBase.setStyle(s,n);var r=t.head||t.getElementsByTagName("head")[0];r&&r.appendChild(s)}},injectAppendedStyles:function(e){var n=e.join(";"),a=t.head||t.getElementsByTagName("head")[0],s=t.createElement("style");s.type="text/css",s.styleSheet?s.styleSheet.cssText=n:s.appendChild(t.createTextNode(n)),a.appendChild(s)}}}(window,document),function(e){"use strict";e.SeamlessConnection=function(e,t){this.id=0,this.target=e,this.url=t,this.active=!1,this.queue=[]},e.SeamlessConnection.prototype.send=function(t){this.active&&this.target?(t=t||{},t.hasOwnProperty("data")||(t={data:t}),t.target=this.target,t.url=this.url||"index.html",t.type=t.type||"seamless_data",t.data=t.data||{},t.data.__id=this.id,e.pm(t)):this.queue.push(t)},e.SeamlessConnection.prototype.receive=function(t,n){"function"==typeof t&&(n=t,t="seamless_data");var a=this;e.pm.bind(t,function(e,t){return!(!e.__id||e.__id!==a.id)&&n(e,t)})},e.SeamlessConnection.prototype.setActive=function(e){if(this.active=e,this.queue.length>0){for(var t in this.queue)this.send(this.queue[t]);this.queue=[],this.queue.length=0}}}(window),function(e,t,n,a){"use strict";if(!e.hasOwnProperty("pm"))return void console.log("You must install the postmessage.js module to use seamless.js.");e.pm.bind("seamless_noiframe",function(t){t.href=t.href.replace(/noiframe\=[^&?#]+/,""),e.location.replace(t.href)}),e.seamlessOpenFallback=function(t,n,a,s){s.preventDefault?(s.preventDefault(),s.stopPropagation()):s.returnValue=!1,e.open(t,"",["width="+n,"height="+a,"menubar=no","titlebar=no","toolbar=no","status=no","scrollbars=yes","chrome=yes"].join(","))};var s=[],r=!1,i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),o=function(){for(var e=[],t=0;t<32;t++)e[t]=i[0|32*Math.random()];return e.join("")};e.pm.bind("seamless_ready",function(e,t){if(!r){r=!0;for(var n in s)s.hasOwnProperty(n)&&s[n].seamless_ready(e,t);r=!1}}),e.pm.bind("seamless_update",function(e,t){for(var n in s)if(s.hasOwnProperty(n)){var a=s[n];if(a.connection.id===e.__id)return a.seamless_update(e,t)}return e.height=0,e}),e.pm.bind("seamless_error",function(e,t){for(var n in s)s.hasOwnProperty(n)&&s[n].seamless_error(e,t)});var l=function(n){var a={showLoadingIndicator:!0,loading:"Loading ...",spinner:"https://unpkg.com/seamless@latest/src/loader.gif",onConnect:null,styles:[],fallback:!0,fallbackParams:"",fallbackText:"",fallbackLinkText:"Click here",fallbackLinkAfter:" to open in a separate window.",fallbackStyles:["padding: 15px","border: 1px solid transparent","border-radius: 4px","color: #3a87ad","background-color: #d9edf7","border-color: #bce8f1"],fallbackLinkStyles:["display: inline-block","color: #333","border: 1px solid #ccc","background-color: #fff","padding: 5px 10px","text-decoration: none","font-size: 12px","line-height: 1.5","border-radius: 6px","font-weight: 400","cursor: pointer","-webkit-user-select: none","-moz-user-select: none","-ms-user-select: none","user-select: none"],fallbackLinkHoverStyles:["background-color:#ebebeb","border-color:#adadad"],fallbackWindowWidth:960,fallbackWindowHeight:800};n=n||{};for(var r in a)n.hasOwnProperty(r)||(n[r]=a[r]);var i=this.length?this[0]:this;i.seamless_options=n,s.push(i);var l=(i.getAttribute("name")||i.getAttribute("id"),i.getAttribute("src"));i.connection=new e.SeamlessConnection(i.contentWindow,l),i.send=function(e){i.connection.send.call(i.connection,e)},i.receive=function(e,t){i.connection.receive.call(i.connection,e,t)};var c={scrolling:"no",seamless:"seamless",width:"100%",height:"0px",marginheight:"0",marginwidth:"0",frameborder:"0",horizontalscrolling:"no",verticalscrolling:"no",style:"border: none; overflow-y: hidden;"};for(var r in c)i.setAttribute(r,c[r]);if(n.showLoadingIndicator){var u=t.createElement("div"),f="background: url("+n.spinner+") no-repeat 10px 13px;";f+="padding: 10px 10px 10px 60px;",f+="width: 100%;",u.setAttribute("style",f);var d=t.createTextNode(n.loading);u.appendChild(d),i.parentNode.insertBefore(u,i)}var p=!0,g=function(){p=!1,void 0!==u&&u.parentNode.removeChild(u)};if(n.fallback){n.fallbackParams&&(l+=-1===l.search(/\?/)?"?":"&",l+=n.fallbackParams);var m=e.SeamlessBase.getElement("#seamless-fallback-styles");if(!m){var h=function(t){return e.SeamlessBase.filterText(t.join(";"))};m=t.createElement("style"),m.setAttribute("id","seamless-fallback-styles"),m.setAttribute("type","text/css"),e.SeamlessBase.setStyle(m,".seamless-fallback.seamless-styles {"+h(n.fallbackStyles)+"}.seamless-fallback em { padding: 5px; }.seamless-fallback-link.seamless-styles {"+h(n.fallbackLinkStyles)+"}.seamless-fallback-link.seamless-styles:hover {"+h(n.fallbackLinkHoverStyles)+"}"),i.parentNode.insertBefore(m,i)}var b=['"'+l+'"',n.fallbackWindowWidth,n.fallbackWindowHeight],v=t.createElement("a");v.setAttribute("class","seamless-fallback-link"),v.setAttribute("href","#"),v.setAttribute("onclick","seamlessOpenFallback("+b.join(",")+", event)");var y=t.createElement("div");y.setAttribute("class","seamless-fallback"),y.appendChild(t.createElement("em")),i.parentNode.insertBefore(y,i.nextSibling);var k=function(n,a,s,r){r?(e.SeamlessBase.addClass(y,"seamless-styles"),e.SeamlessBase.addClass(v,"seamless-styles")):(e.SeamlessBase.removeClass(y,"seamless-styles"),e.SeamlessBase.removeClass(v,"seamless-styles"));var i=y.getElementsByTagName("em")[0];i&&(i.innerHTML=e.SeamlessBase.filterText(n)+" ",v.innerHTML=e.SeamlessBase.filterText(a),i.appendChild(v),s&&i.appendChild(t.createTextNode(s)))};n.fallbackText&&k(n.fallbackText,n.fallbackLinkText,n.fallbackLinkAfter,!1),e.onerror=function(){var e="An error has been detected on this page, ";e+="which may cause problems with the operation of this application.",k(e,n.fallbackLinkText,n.fallbackLinkAfter,!0)},setTimeout(function(){p&&(g(),k("An error has been detected on this page.",n.fallbackLinkText,n.fallbackLinkAfter,!0))},3e4)}return i.seamless_ready=function(t,n){i.connection.id||(i.connection.id=o());var a={id:i.connection.id,styles:i.seamless_options.styles};i.connection.target||(i.connection.target=i[0].contentWindow),e.pm({type:"seamless_connect",target:i.connection.target,url:i.connection.url,data:a,success:function(e){i.seamless_options.onConnect&&i.seamless_options.onConnect(e)}}),i.dispatchEvent(new CustomEvent("connected"))},i.seamless_update=function(e,t){return p&&(g(),i.connection.setActive(!0)),e.height>=0&&(i.style.height=e.height+"px",i.setAttribute("height",e.height+"px")),e},i.seamless_error=function(e,t){g(),i.hide(),k(e.msg,e.linkText,e.afterText,!0)},i};n&&n.fn&&(n.fn.seamless=l),e.seamless=function(e,t){return l.call(e,t)}}(window,document,"undefined"==typeof jQuery?{}:jQuery);