/** * Kakao Javascript SDK for Kakao Open Platform Service - v1.39.7 * * Copyright 2017 Kakao Corp. * * * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * * * OSS Notice | KakaoSDK-Javascript * * This application is Copyright © Kakao Corp. All rights reserved. * The following sets forth attribution notices for third party software that may be contained in this application. * If you have any questions or concerns, please contact us at opensource@kakaocorp.com * * * crypto-js * * https://github.com/brix/crypto-js * * Copyright 2009-2013 Jeff Mott * Copyright 2013-2016 Evan Vosberg * * MIT License * * * easyXDM * * https://github.com/oyvindkinsey/easyXDM/ * * Copyright 2009-2011 Øyvind Sean Kinsey, oyvind@kinsey.no * * MIT License * * * ES6-Promise * * https://github.com/stefanpenner/es6-promise * * Copyright 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors * * MIT License * * * Underscore * * https://github.com/jashkenas/underscore * * Copyright 2009-2017 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * * MIT License * * * Web2App Library * * https://github.com/kakao/web2app * * Copyright 2015 Kakao Corp. http://www.kakaocorp.com * * MIT License * * * `````````` * MIT License * * Copyright (c) * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * `````````` */ var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(e){"object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Kakao=e()}(function(){return function p(o,a,s){function c(t,e){if(!a[t]){if(!o[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(u)return u(t,!0);var r=new Error("Cannot find module '"+t+"'");throw r.code="MODULE_NOT_FOUND",r}var i=a[t]={exports:{}};o[t][0].call(i.exports,function(e){return c(o[t][1][e]||e)},i,i.exports,p,o,a,s)}return a[t].exports}for(var u="function"==typeof require&&require,e=0;e',t.onclick=function(){g(e)}},login:function(e){g(e=u.processRules(e,a.login,"Auth.login"))},loginForm:function(e){e=u.processRules(e,a.login,"Auth.loginForm");var t,n=c.getRandomString()+c.getRandomString(),r="&auth_type=reauthenticate";e.redirectUri?location.href=A(e)+r:(t=O(e,n)+r,d.openLoginPopup(t))},autoLogin:function(e){var t,n;e=u.processRules(e,a.autoLogin,"Auth.autoLogin"),l.isIOSKakaoTalkWebView()||l.isAndroidKakaoTalkWebView()?(t=c.getRandomString()+c.getRandomString(),n=c.extend({},d.makeAuthParams(e),{redirect_uri:u.URL.talkLoginRedirectUri,response_type:"code",state:t,ka:u.KAKAO_AGENT,origin:p,auto_login:"true"}),w(e,t,d.makeAuthUrl(n))):d.runAuthCallback(e,{error:"auto_login",error_description:"Auto-login is only supported by KakaoTalk InAppBrowser",error_code:"400",status:"error"}),i.dispatch("LOGIN_START")},logout:function(e){e=e||c.emptyFunc,u.validate(e,c.isFunction,"Auth.logout"),Kakao.API.request({url:"/v1/user/logout",always:function(){n.setAccessToken(null),i.dispatch("LOGOUT"),e(!0)}})},issueAccessToken:function(t){t=u.processRules(t,a.issueAccessToken,"Auth.issueAccessToken"),e||(e=o.getProxy({},function(e){T(t,e)}),s.push(function(){e.destroy(),e=null})),e.getAccessToken(t.code,u.RUNTIME.appKey,t.redirectUri)},selectStoryChannel:function(e){e=u.processRules(e,a.selectStoryChannel,"Auth.selectStoryChannel"),r||(r=o.getProxy({},function(e){var t=x(e,E);d.runAuthCallback(t,e)}),s.push(function(){r.destroy(),r=null}));var t=c.getRandomString();E[t]=e;var n=c.extend({},d.makeAuthParams(e),{state:t,proxy:"easyXDM_Kakao_"+r.channel+"_provider",token:e.extendedToken||""});d.openLoginPopup(u.URL.storyChannel+"?"+c.buildQueryString(n))}}}},{"../browserProxy.js":17,"../common":19,"../eventObserver":20,"../util":28,"../webviewchecker":29,"./common":8,"./kakaotalk":10,"./poller":13,"./proxy":14,"./rules":15,"./secret":16}],12:[function(e,t,n){function m(e,t){e.state&&(t.state=e.state),e.redirectUri?location.href=e.redirectUri+"?"+h.buildQueryString(t):k.runAuthCallback(e,t)}var h,g,v,y,k,b,w;t.exports=(h=e("../util"),g=e("../common"),v=e("../eventObserver"),y=e("./rules"),k=e("./common"),b=e("./ajax"),w=e("./poller"),{authorize:function(t){if((t=g.processRules(t,y.authorize,"Auth.authorize")).autoLogin&&!/KAKAOTALK/i.test(g.UA.ua))return m(t,{error:"auto_login",error_description:"NOT_SUPPORTED_BROWSER"}),!1;var i,e,o,a,n,s,r=!(!g.UA.os.ios&&!g.UA.os.android)&&!/KAKAOTALK/i.test(g.UA.ua)&&t.throughTalk&&!t.autoLogin&&!t.reauthenticate,c=(Math.random().toString(36).slice(2)+g.RUNTIME.appKey+Date.now().toString(36)).slice(0,60),u=h.extend({},k.makeAuthParams(t),k.makeAuthExtraParams(t),{redirect_uri:t.redirectUri||g.URL.redirectUri,response_type:"code",auth_tran_id:c}),l=h.extend({},u,{ka:g.KAKAO_AGENT,is_popup:t.isPopup}),p=k.makeAuthUrl(l),d=r?(i=t,e=u,o=p,a=h.extend({},e,{is_popup:!0}),n=function n(){var e=["intent:#Intent","action=com.kakao.talk.intent.action.CAPRI_LOGGED_IN_ACTIVITY","launchFlags=0x08880000","S.com.kakao.sdk.talk.appKey="+g.RUNTIME.appKey,"S.com.kakao.sdk.talk.redirectUri="+a.redirect_uri,"S.com.kakao.sdk.talk.kaHeader="+g.KAKAO_AGENT,"S.com.kakao.sdk.talk.extraparams="+encodeURIComponent(JSON.stringify(a))];return i.state&&e.push("S.com.kakao.sdk.talk.state="+i.state),e.concat(["S.browser_fallback_url="+encodeURIComponent(o),"end;"]).join(";")},s=function s(){var e=k.makeAuthUrl(a),t=i.isPopup?e:o,n=e+"&ka="+encodeURIComponent(g.KAKAO_AGENT),r=g.URL.talkInappScheme+"?url="+encodeURIComponent(n);return""+g.URL.universalKakaoLink+encodeURIComponent(r)+"&web="+encodeURIComponent(t)},(g.UA.os.android?n:s)()):t.reauthenticate?p+"&auth_type=reauthenticate":p,f=null;t.isPopup?f=k.openLoginPopup(d):location.href=d,(r||t.isPopup)&&w.start(function(){var e;c&&(e={client_id:g.RUNTIME.appKey,auth_tran_id:c},b.checkAuthorize(g.URL.authDomain+"/apiweb/code.json?"+h.buildQueryString(e),function(e){!function(e,t){if(200===t.status&&t.response){var n=JSON.parse(t.response);if("ok"===n.status&&n.code)return m(e,{code:n.code}),!0;if("error"===n.status&&("500"===n.error_code||"600"===n.error_code))return m(e,{error:n.error,error_description:n.error_description}),!0}return!1}(t,e)||(w.stop(),f&&f.close&&f.close()),!r&&f&&f.closed&&w.stop()}))},function(){m(t,{error:"timeout",error_description:"LOGIN_TIMEOUT"})}),v.dispatch("LOGIN_START")}})},{"../common":19,"../eventObserver":20,"../util":28,"./ajax":7,"./common":8,"./poller":13,"./rules":15}],13:[function(e,t,n){function r(){u()?i():600<++a?(i(),s()):c()}function i(){clearInterval(o)}var o,a,s,c,u;t.exports=(a=0,s=function s(){},c=function c(){},u=function u(){return!1},{start:function(e,t){a=0,"function"==typeof e&&(c=e),"function"==typeof t&&(s=t),o&&i(),o=setInterval(r,1e3)},stop:function(){i()},setStopCondition:function(e){"function"==typeof e&&(u=e)}})},{}],14:[function(e,t,n){var r,i,o;t.exports=(r=e("../util"),i=e("../common"),o=e("../../vendor/easyXDM"),{getProxy:function(t,n){return r.extend(t,{remote:i.URL.loginWidget,channel:r.getRandomString()}),i.guardCreateEasyXDM(function(){var e=new o.Rpc(t,{local:{postResponse:n,getKakaoAgent:function(){return i.KAKAO_AGENT}},remote:{getCode:{},getAccessToken:{},setClient:{},setStateToken:{},deleteAuthCookie:{}}});return e.channel=t.channel,e})}})},{"../../vendor/easyXDM":31,"../common":19,"../util":28}],15:[function(e,t,n){var r,i,o,a;t.exports=(r=e("../util"),i={success:r.emptyFunc,fail:r.emptyFunc,always:r.emptyFunc},o=r.extend({throughTalk:!0,persistAccessToken:!0,persistRefreshToken:!1},i),a={success:r.isFunction,fail:r.isFunction,always:r.isFunction,persistAccessToken:r.isBoolean,persistRefreshToken:r.isBoolean,approvalType:r.isOneOf(["project"]),scope:r.isString,throughTalk:r.isBoolean,plusFriendPublicId:r.isString,channelPublicId:r.isString,serviceTerms:r.isString,redirectUri:r.isString,state:r.isString,deviceType:r.isOneOf(["watch","tv"])},{createLoginButton:{required:{container:r.passesOneOf([r.isElement,r.isString])},optional:r.extend({lang:r.isOneOf(["en","kr"]),size:r.isOneOf(["small","medium","large"])},a),defaults:r.extend({lang:"kr",size:"medium"},o)},login:{optional:a,defaults:o},authorize:{optional:{redirectUri:r.isString,approvalType:r.isOneOf(["project"]),scope:r.isString,throughTalk:r.isBoolean,plusFriendPublicId:r.isString,channelPublicId:r.isString,serviceTerms:r.isString,isPopup:r.isBoolean,state:r.isString,autoLogin:r.isBoolean,deviceType:r.isOneOf(["watch","tv"]),reauthenticate:r.isBoolean,success:r.isFunction,fail:r.isFunction,always:r.isFunction},defaults:{throughTalk:!0,isPopup:!1,reauthenticate:!1,success:r.emptyFunc,fail:r.emptyFunc,always:r.emptyFunc}},autoLogin:{optional:{success:r.isFunction,fail:r.isFunction,always:r.isFunction},defaults:i},issueAccessToken:{required:{code:r.isString,redirectUri:r.isString},optional:{success:r.isFunction,fail:r.isFunction,always:r.isFunction},defaults:i},selectStoryChannel:{optional:{extendedToken:r.isString,success:r.isFunction,fail:r.isFunction,always:r.isFunction},defaults:i}})},{"../util":28}],16:[function(e,t,n){function o(){return c.RUNTIME.appKey}function r(){var e,t;return c.RUNTIME.accessToken||(c.RUNTIME.accessToken=(e=a(),(t=s.localStorage.getItem(e))?function(e,t){return u.AES.decrypt(e,t).toString(u.enc.Utf8)}(t,o()):null)),c.RUNTIME.accessToken}function a(){var e;return i.accessTokenKey||(i.accessTokenKey="kakao_"+(e="kat"+o(),u.MD5(e).toString())),i.accessTokenKey}var s,c,u,i;t.exports=(s=e("../util"),c=e("../common"),u=e("../../vendor/CryptoJS"),i={},{getAppKey:o,getAccessToken:r,setAccessToken:function(e,t){var n,r,i;null===(c.RUNTIME.accessToken=e)||!1===t?(i=a(),s.localStorage.removeItem(i)):(n=a(),r=function(e,t){return u.AES.encrypt(e,t).toString()}(e,o()),s.localStorage.setItem(n,r))},getRefreshToken:function(){return console.log("unsupported operation: Auth.getRefreshToken()"),""},setRefreshToken:function(e){console.log("unsupported operation: Auth.setRefreshToken()")},getStatusInfo:function(t){c.validate(t,s.isFunction,"Auth.getStatusInfo"),r()?Kakao.API.request({url:"/v2/user/me",success:function(e){t({status:"connected",user:e})},fail:function(){t({status:"not_connected"})}}):t({status:"not_connected"})}})},{"../../vendor/CryptoJS":30,"../common":19,"../util":28}],17:[function(e,t,n){var r;t.exports=(r=e("../vendor/userAgent")(),{getOrigin:function(){var e=location,t=e.protocol,n=e.hostname,r=e.port;return t+"//"+n+(r?":"+r:"")},getNavigator:function(){return navigator},getUA:function(){return r}})},{"../vendor/userAgent":33}],18:[function(i,e,t){e.exports=function(){var e={},u=i("./util.js"),l=i("./common.js"),t=i("./browserProxy.js"),c="channel_add_social_plugin",p="channel_chat_social_plugin",d="width=350, height=510",n="1.1",f=[];function m(e,t,n,r){var i=document.createElement("a"),o=document.createElement("img");return i.setAttribute("href","#"),o.setAttribute("src",t),o.setAttribute("alt",n),o.setAttribute("title",n),r.supportMultipleDensities&&o.setAttribute("srcset",[t.replace(".png","_2X.png 2x"),t.replace(".png","_3X.png 3x")].join(", ")),i.appendChild(o),i}function h(e){var t=l.URL.plusFriend+"/"+e.channelPublicId+"/friend";return l.RUNTIME.appKey&&(t+="?"+r()),t}function g(e){var t=l.URL.plusFriend+"/"+e.channelPublicId+"/chat";return l.RUNTIME.appKey&&(t+="?"+r()),t}function r(){if(!l.RUNTIME.appKey)throw l.KakaoError("The app key does not exist. Please call Kakao.init function.");var e={api_ver:n,kakao_agent:l.KAKAO_AGENT,app_key:l.RUNTIME.appKey,referer:t.getOrigin()+location.pathname+location.search};return u.buildQueryString(e)}e.createAddChannelButton=function(e){e=l.processRules(e,v.createAddChannelButton,"Channel.createAddChannelButton");var t=u.getElement(e.container);if(!t)throw new l.KakaoError("container is required for creating Channel.addChannel button: pass in element or id");var n,r=h(e),i=(n="friendadd_"+e.size+"_yellow_rect",l.URL.resPrefix+"/logos/channel/"+n+".png"),o=m(0,i,"카카오톡 채널 추가 버튼",e);t.appendChild(o);var a=function a(e){e.preventDefault?e.preventDefault():e.returnValue=!1,l.windowOpen(r,c,d)};u.addEvent(o,"click",a);var s=function s(){t.removeChild(o),u.removeEvent(o,"click",a)};f.push(s)},e.addChannel=function(e){var t=h(e=l.processRules(e,v.addChannel,"Channel.addChannel"));l.windowOpen(t,c,d)},e.createChatButton=function(e){e=l.processRules(e,v.createChatButton,"Channel.createChatButton");var t=u.getElement(e.container);if(!t)throw new l.KakaoError("container is required for creating Channel.chat button: pass in element or id");var n,r,i=g(e),o=(r=(n=e).title+"_"+n.size+"_"+n.color+"_"+n.shape,l.URL.resPrefix+"/logos/channel/"+r+".png"),a=m(0,o,"카카오톡 채널 1:1 채팅 버튼",e);t.appendChild(a);var s=function s(e){e.preventDefault?e.preventDefault():e.returnValue=!1,l.windowOpen(i,p,d)};u.addEvent(a,"click",s);var c=function c(){t.removeChild(a),u.removeEvent(a,"click",s)};f.push(c)},e.chat=function(e){var t=g(e=l.processRules(e,v.chat,"Channel.chat"));l.windowOpen(t,p,d)};var v={createAddChannelButton:{required:{container:u.passesOneOf([u.isElement,u.isString]),channelPublicId:u.isString},optional:{size:u.isOneOf(["small","large"]),supportMultipleDensities:u.isBoolean},defaults:function(e){var t=u.getElement(e.container);return t?{channelPublicId:t.getAttribute("data-channel-public-id"),size:t.getAttribute("data-size")||"small",supportMultipleDensities:!!t.getAttribute("data-support-multiple-densities")}:null}},addChannel:{required:{channelPublicId:u.isString}},createChatButton:{required:{container:u.passesOneOf([u.isElement,u.isString]),channelPublicId:u.isString},optional:{color:u.isOneOf(["yellow","mono"]),shape:u.isOneOf(["pc","mobile"]),size:u.isOneOf(["small","large"]),title:u.isOneOf(["consult","question"]),supportMultipleDensities:u.isBoolean},defaults:function(e){var t=u.getElement(e.container);return t?{channelPublicId:t.getAttribute("data-channel-public-id"),color:t.getAttribute("data-color")||"yellow",shape:t.getAttribute("data-shape")||"pc",size:t.getAttribute("data-size")||"small",title:t.getAttribute("data-title")||"consult",supportMultipleDensities:!!t.getAttribute("data-support-multiple-densities")}:null}},chat:{required:{channelPublicId:u.isString}}};return e.cleanup=function(){u.each(f,function(e){e()}),f.length=0},e}()},{"./browserProxy.js":17,"./common.js":19,"./util.js":28}],19:[function(e,t,n){function c(e){Error.prototype.constructor.apply(this,arguments),this.name="KakaoError",this.message=e}var u,r,i,o,l;t.exports=(u=e("./util"),r=e("./browserProxy"),i=r.getOrigin(),o=r.getNavigator(),(l={}).VERSION="1.39.7",l.KAKAO_AGENT=["sdk/"+l.VERSION,"os/javascript","sdk_type/javascript","lang/"+(o.userLanguage||o.language),"device/"+o.platform.replace(/ /g,"_"),"origin/"+encodeURIComponent(i)].join(" "),l.UA=r.getUA(),l.URL={authorize:"https://kauth.kakao.com/oauth/authorize",loginWidget:"https://kauth.kakao.com/public/widget/login/kakaoLoginWidget.html",apiRemote:"https://kapi.kakao.com/cors/",plusFriend:"https://pf.kakao.com",storyChannel:"https://kauth.kakao.com/story/select_channel",storyShare:"https://story.kakao.com/s/share",channelFollow:"https://story.kakao.com/s/follow",storyIcon:"https://developers.kakao.com/sdk/js/resources/story/icon_small.png",universalKakaoLink:"https://talk-apps.kakao.com/scheme/",talkLoginScheme:"kakaokompassauth://authorize",talkLoginRedirectUri:"https://kapi.kakao.com/cors/afterlogin.html",redirectUri:"JS-SDK",authDomain:"https://kauth.kakao.com",navi:"kakaonavi-sdk://navigate",naviShare:"kakaonavi-sdk://sharePoi",naviWeb:"https://kakaonavi-wguide.kakao.com/openapi",sharerDomain:"https://sharer.kakao.com",stat:"https://apps.kakao.com/sdk/js",resPrefix:"https://developers.kakao.com/assets/img/about",talkInappScheme:"kakaotalk://inappbrowser"},l.RUNTIME={appKey:"",accessToken:""},l.DUMMY_KEY="YOUR APP KEY",c.prototype=new Error,l.KakaoError=c,l.isDebug=function(){return!1},l.logDebug=function(e){l.isDebug()&&window.console&&console.log(JSON.stringify(e))},l.initSubModules=function(n,e){u.each(e,function(e){for(var t in e)n[t]=n[t]||e[t]})},l.emptyCleanups=function(e){u.each(e,function(e){e()}),e.length=0},l.validate=function(e,t,n){if(!0!==t(e))throw new c("Illegal argument for "+n)},l.processRules=function(e,t,r){e=e||{},t.before&&t.before(e),u.isFunction(t.defaults)?u.defaults(e,t.defaults(e)):u.defaults(e,t.defaults);var n=t.required||{},i=u.difference(u.keys(n),u.keys(e));if(i.length)throw new c("Missing required keys: "+i.join(",")+" at "+r);var o=t.optional||{},a=u.extend({},n,o),s=u.difference(u.keys(e),u.keys(a));if(s.length)throw new c("Invalid parameter keys: "+s.join(",")+" at "+r);return u.each(e,function(e,t){var n=a[t];l.validate(e,n,'"'+t+'" in '+r)}),t.after&&t.after(e),e},l.getInstallUrl=function(e,t){if(l.UA.os.android){var n={appkey:l.RUNTIME.appKey,KA:l.KAKAO_AGENT};return"market://details?id="+e+"&referrer="+JSON.stringify(n)}return l.UA.os.ios?"https://itunes.apple.com/app/id"+t:location.href},l.guardCreateEasyXDM=function(e){try{return e()}catch(t){throw t instanceof TypeError?new c("kakao.js should be loaded from a web server"):new c("EasyXDM - "+t.message)}},l.serializeFile=function(r){return new Promise(function(t,n){"undefined"==typeof FileReader&&n(new c("File API is not supported for this browser."));var e=new FileReader;e.onload=function(e){try{t(u.arrayBufferToString(e.target.result))}catch(e){n(e)}},e.onerror=function(e){n(new c("Cannot read file: "+r.name))},e.readAsArrayBuffer(r)})},l.popupWindows={},l.windowOpen=function(e,t,n){var r=l.popupWindows[t];return r&&r.close&&!r.closed&&r.close(),l.popupWindows[t]=window.open(e,t,n),l.popupWindows[t]},l)},{"./browserProxy":17,"./util":28}],20:[function(e,t,n){var r,i;t.exports=(r=e("./util"),i={},{subscribe:function(e,t){i[e]||(i[e]=[]),i[e].push(t)},unsubscribe:function(e,t){for(var n=i[e],r=0;r>>2]|=(n[i>>>2]>>>24-i%4*8&255)<<24-(r+i)%4*8;else if(65535>>2]=n[i>>>2];else t.push.apply(t,n);return this.sigBytes+=e,this},clamp:function(){var e=this.words,t=this.sigBytes;e[t>>>2]&=4294967295<<32-t%4*8,e.length=s.ceil(t/4)},clone:function(){var e=r.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n>>2]>>>24-r%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new c.init(n,t/2)}},a=i.Latin1={stringify:function(e){var t=e.words;e=e.sigBytes;for(var n=[],r=0;r>>2]>>>24-r%4*8&255));return n.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new c.init(n,t)}},u=i.Utf8={stringify:function(e){try{return decodeURIComponent(escape(a.stringify(e)))}catch(t){throw Error("Malformed UTF-8 data")}},parse:function(e){return a.parse(unescape(encodeURIComponent(e)))}},l=t.BufferedBlockAlgorithm=r.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=u.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(e){var t=this._data,n=t.words,r=t.sigBytes,i=this.blockSize,o=r/(4*i);if(e=(o=e?s.ceil(o):s.max((0|o)-this._minBufferSize,0))*i,r=s.min(4*e,r),e){for(var a=0;a>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,a=0;a<4&&i+.75*a>>6*(3-a)&63));if(t=r.charAt(64))for(;e.length%4;)e.push(t);return e.join("")},parse:function(e){var t=e.length,n=this._map;!(o=n.charAt(64))||-1!=(o=e.indexOf(o))&&(t=o);for(var r,i,o=[],a=0,s=0;s>>6-s%4*2,o[a>>>2]|=(r|i)<<24-a%4*8,a++)}return c.create(o,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},function(o){function S(e,t,n,r,i,o,a){return((e=e+(t&n|~t&r)+i+a)<>>32-o)+t}function O(e,t,n,r,i,o,a){return((e=e+(t&r|n&~r)+i+a)<>>32-o)+t}function A(e,t,n,r,i,o,a){return((e=e+(t^n^r)+i+a)<>>32-o)+t}function x(e,t,n,r,i,o,a){return((e=e+(n^(t|~r))+i+a)<>>32-o)+t}for(var e=E,t=(r=e.lib).WordArray,n=r.Hasher,r=e.algo,T=[],i=0;i<64;i++)T[i]=4294967296*o.abs(o.sin(i+1))|0;r=r.MD5=n.extend({_doReset:function(){this._hash=new t.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=e[i=t+n];e[i]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var n=this._hash.words,i=e[t+0],r=e[t+1],o=e[t+2],a=e[t+3],s=e[t+4],c=e[t+5],u=e[t+6],l=e[t+7],p=e[t+8],d=e[t+9],f=e[t+10],m=e[t+11],h=e[t+12],g=e[t+13],v=e[t+14],y=e[t+15],k=S(k=n[0],_=n[1],w=n[2],b=n[3],i,7,T[0]),b=S(b,k,_,w,r,12,T[1]),w=S(w,b,k,_,o,17,T[2]),_=S(_,w,b,k,a,22,T[3]),k=S(k,_,w,b,s,7,T[4]),b=S(b,k,_,w,c,12,T[5]),w=S(w,b,k,_,u,17,T[6]),_=S(_,w,b,k,l,22,T[7]),k=S(k,_,w,b,p,7,T[8]),b=S(b,k,_,w,d,12,T[9]),w=S(w,b,k,_,f,17,T[10]),_=S(_,w,b,k,m,22,T[11]),k=S(k,_,w,b,h,7,T[12]),b=S(b,k,_,w,g,12,T[13]),w=S(w,b,k,_,v,17,T[14]),k=O(k,_=S(_,w,b,k,y,22,T[15]),w,b,r,5,T[16]),b=O(b,k,_,w,u,9,T[17]),w=O(w,b,k,_,m,14,T[18]),_=O(_,w,b,k,i,20,T[19]),k=O(k,_,w,b,c,5,T[20]),b=O(b,k,_,w,f,9,T[21]),w=O(w,b,k,_,y,14,T[22]),_=O(_,w,b,k,s,20,T[23]),k=O(k,_,w,b,d,5,T[24]),b=O(b,k,_,w,v,9,T[25]),w=O(w,b,k,_,a,14,T[26]),_=O(_,w,b,k,p,20,T[27]),k=O(k,_,w,b,g,5,T[28]),b=O(b,k,_,w,o,9,T[29]),w=O(w,b,k,_,l,14,T[30]),k=A(k,_=O(_,w,b,k,h,20,T[31]),w,b,c,4,T[32]),b=A(b,k,_,w,p,11,T[33]),w=A(w,b,k,_,m,16,T[34]),_=A(_,w,b,k,v,23,T[35]),k=A(k,_,w,b,r,4,T[36]),b=A(b,k,_,w,s,11,T[37]),w=A(w,b,k,_,l,16,T[38]),_=A(_,w,b,k,f,23,T[39]),k=A(k,_,w,b,g,4,T[40]),b=A(b,k,_,w,i,11,T[41]),w=A(w,b,k,_,a,16,T[42]),_=A(_,w,b,k,u,23,T[43]),k=A(k,_,w,b,d,4,T[44]),b=A(b,k,_,w,h,11,T[45]),w=A(w,b,k,_,y,16,T[46]),k=x(k,_=A(_,w,b,k,o,23,T[47]),w,b,i,6,T[48]),b=x(b,k,_,w,l,10,T[49]),w=x(w,b,k,_,v,15,T[50]),_=x(_,w,b,k,c,21,T[51]),k=x(k,_,w,b,h,6,T[52]),b=x(b,k,_,w,a,10,T[53]),w=x(w,b,k,_,f,15,T[54]),_=x(_,w,b,k,r,21,T[55]),k=x(k,_,w,b,p,6,T[56]),b=x(b,k,_,w,y,10,T[57]),w=x(w,b,k,_,u,15,T[58]),_=x(_,w,b,k,g,21,T[59]),k=x(k,_,w,b,s,6,T[60]),b=x(b,k,_,w,m,10,T[61]),w=x(w,b,k,_,o,15,T[62]),_=x(_,w,b,k,d,21,T[63]);n[0]=n[0]+k|0,n[1]=n[1]+_|0,n[2]=n[2]+w|0,n[3]=n[3]+b|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32;var i=o.floor(n/4294967296);for(t[15+(64+r>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),t[14+(64+r>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process(),t=(e=this._hash).words,n=0;n<4;n++)r=t[n],t[n]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8);return e},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e}}),e.MD5=n._createHelper(r),e.HmacMD5=n._createHmacHelper(r)}(Math),i=(r=E).lib,o=i.Base,u=i.WordArray,a=(i=r.algo).EvpKDF=o.extend({cfg:o.extend({keySize:4,hasher:i.MD5,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=(a=this.cfg).hasher.create(),r=u.create(),i=r.words,o=a.keySize,a=a.iterations;i.length>>2]}},e.BlockCipher=o.extend({cfg:o.cfg.extend({mode:s,padding:u}),reset:function(){o.reset.call(this);var e,t=(n=this.cfg).iv,n=n.mode;this._xformMode==this._ENC_XFORM_MODE?e=n.createEncryptor:(e=n.createDecryptor,this._minBufferSize=1),this._mode=e.call(n,this,t&&t.words)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var l=e.CipherParams=t.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),s=(d.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext;return((e=e.salt)?a.create([1398893684,1701076831]).concat(e).concat(t):t).toString(r)},parse:function(e){var t,n=(e=r.parse(e)).words;return 1398893684==n[0]&&1701076831==n[1]&&(t=a.create(n.slice(2,4)),n.splice(0,4),e.sigBytes-=16),l.create({ciphertext:e,salt:t})}},p=e.SerializableCipher=t.extend({cfg:t.extend({format:s}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var i=e.createEncryptor(n,r);return t=i.finalize(t),i=i.cfg,l.create({ciphertext:t,key:n,iv:i.iv,algorithm:e,mode:i.mode,padding:i.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),d=(d.kdf={}).OpenSSL={execute:function(e,t,n,r){return r=r||a.random(8),e=i.create({keySize:t+n}).compute(e,r),n=a.create(e.words.slice(t),4*n),e.sigBytes=4*t,l.create({key:e,iv:n,salt:r})}},f=e.PasswordBasedCipher=p.extend({cfg:p.cfg.extend({kdf:d}),encrypt:function(e,t,n,r){return n=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize),r.iv=n.iv,(e=p.encrypt.call(this,e,t,n.key,r)).mixIn(n),e},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),n=r.kdf.execute(n,e.keySize,e.ivSize,t.salt),r.iv=n.iv,p.decrypt.call(this,e,t,n.key,r)}})}(),function(){for(var e=E,t=e.lib.BlockCipher,n=e.algo,a=[],r=[],i=[],o=[],s=[],c=[],u=[],l=[],p=[],d=[],f=[],m=0;m<256;m++)f[m]=m<128?m<<1:m<<1^283;for(var h=0,g=0,m=0;m<256;m++){var v=(v=g^g<<1^g<<2^g<<3^g<<4)>>>8^255&v^99;a[h]=v;var y=f[r[v]=h],k=f[y],b=f[k],w=257*f[v]^16843008*v;i[h]=w<<24|w>>>8,o[h]=w<<16|w>>>16,s[h]=w<<8|w>>>24,c[h]=w,w=16843009*b^65537*k^257*y^16843008*h,u[v]=w<<24|w>>>8,l[v]=w<<16|w>>>16,p[v]=w<<8|w>>>24,d[v]=w,h?(h=y^f[f[f[b^y]]],g^=f[f[g]]):h=g=1}var _=[0,1,2,4,8,16,32,64,128,27,54],n=n.AES=t.extend({_doReset:function(){for(var e,t=(r=this._key).words,n=r.sigBytes/4,r=4*((this._nRounds=n+6)+1),i=this._keySchedule=[],o=0;o>>24]<<24|a[e>>>16&255]<<16|a[e>>>8&255]<<8|a[255&e]):(e=a[(e=e<<8|e>>>24)>>>24]<<24|a[e>>>16&255]<<16|a[e>>>8&255]<<8|a[255&e],e^=_[o/n|0]<<24),i[o]=i[o-n]^e)}for(t=this._invKeySchedule=[],n=0;n>>24]]^l[a[e>>>16&255]]^p[a[e>>>8&255]]^d[a[255&e]]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,i,o,s,c,a)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,u,l,p,d,r),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,i,o,a,s){for(var c=this._nRounds,u=e[t]^n[0],l=e[t+1]^n[1],p=e[t+2]^n[2],d=e[t+3]^n[3],f=4,m=1;m>>24]^i[l>>>16&255]^o[p>>>8&255]^a[255&d]^n[f++],g=r[l>>>24]^i[p>>>16&255]^o[d>>>8&255]^a[255&u]^n[f++],v=r[p>>>24]^i[d>>>16&255]^o[u>>>8&255]^a[255&l]^n[f++],d=r[d>>>24]^i[u>>>16&255]^o[l>>>8&255]^a[255&p]^n[f++],u=h,l=g,p=v;h=(s[u>>>24]<<24|s[l>>>16&255]<<16|s[p>>>8&255]<<8|s[255&d])^n[f++],g=(s[l>>>24]<<24|s[p>>>16&255]<<16|s[d>>>8&255]<<8|s[255&u])^n[f++],v=(s[p>>>24]<<24|s[d>>>16&255]<<16|s[u>>>8&255]<<8|s[255&l])^n[f++],d=(s[d>>>24]<<24|s[u>>>16&255]<<16|s[l>>>8&255]<<8|s[255&p])^n[f++],e[t]=h,e[t+1]=g,e[t+2]=v,e[t+3]=d},keySize:8});e.AES=t._createHelper(n)}(),E)},{}],31:[function(e,t,n){t.exports=(function(h,l,p,g,d,f){var c,u,m,v,y,k=this||h,b=Math.floor(1e4*Math.random()),w=Function.prototype,_=/^((http.?:)\/\/([^:\/\s]+)(:\d+)*)/,n=/[\-\w]+\/\.\.\//,r=/([^:])\/\//g,S="",O={},t=h.easyXDM,A="easyXDM_",x=!1;function T(e,t){var n=_typeof(e[t]);return"function"==n||"object"==n&&e[t]||"unknown"==n}function E(){var e,t,n="Shockwave Flash",r="application/x-shockwave-flash";if(C(navigator.plugins)||"object"!=_typeof(navigator.plugins[n])||(e=navigator.plugins[n].description)&&!C(navigator.mimeTypes)&&navigator.mimeTypes[r]&&navigator.mimeTypes[r].enabledPlugin&&(u=e.match(/\d+/g)),!u)try{t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),u=Array.prototype.slice.call(t.GetVariable("$version").match(/(\d+),(\d+),(\d+),(\d+)/),1),t=null}catch(a){}if(u){var i=parseInt(u[0],10),o=parseInt(u[1],10);return m=9'):(r=l.createElement("IFRAME")).name=e.props.name,r.id=r.name=e.props.name,delete e.props.name,"string"==typeof e.container&&(e.container=l.getElementById(e.container)),e.container||(P(r.style,{position:"absolute",top:"-2000px",left:"0px"}),e.container=l.body);var i=e.props.src;if(e.props.src="javascript:false",P(r,e.props),r.border=r.frameBorder=0,r.allowTransparency=!0,e.container.appendChild(r),e.onLoad&&v(r,"load",e.onLoad),e.usePost){var o,a=e.container.appendChild(l.createElement("form"));if(a.target=r.name,a.action=i,a.method="POST","object"===_typeof(e.usePost))for(var s in e.usePost)e.usePost.hasOwnProperty(s)&&(c?o=l.createElement(''):(o=l.createElement("INPUT")).name=s,o.value=e.usePost[s],a.appendChild(o));a.submit(),a.parentNode.removeChild(a)}else r.src=i;return e.props.src=i,r}function M(e){var t,n=e.protocol;if(e.isHost=e.isHost||C(L.xdm_p),x=e.hash||!1,e.props||(e.props={}),e.isHost)e.remote=j(e.remote),e.channel=e.channel||"default"+b++,e.secret=Math.random().toString(16).substring(2),C(n)&&(n=U(p.href)==U(e.remote)?"4":T(h,"postMessage")||T(l,"postMessage")?"1":e.swf&&T(h,"ActiveXObject")&&E()?"6":"Gecko"===navigator.product&&"frameElement"in h&&-1==navigator.userAgent.indexOf("WebKit")?"5":e.remoteHelper?"2":"0");else if(e.channel=L.xdm_c.replace(/["'<>\\]/g,""),e.secret=L.xdm_s,e.remote=L.xdm_e.replace(/["'<>\\]/g,""),n=L.xdm_p,e.acl&&!function(e,t){"string"==typeof e&&(e=[e]);for(var n=e.length;n--;){var r="^"===e[n].substr(0,1)&&"$"===e[n].substr(e[n].length-1,1)?e[n]:"^"+e[n].replace(/[-[\]/{}()+.\^$|]/g,"\\$&").replace(/(\*)/g,".$1").replace(/\?/g,".")+"$";if((r=new RegExp(r)).test(t))return 1}}(e.acl,e.remote))throw new Error("Access denied for "+e.remote);switch(e.protocol=n){case"0":if(P(e,{interval:100,delay:2e3,useResize:!0,useParent:!1,usePolling:!1},!0),e.isHost){if(!e.local){for(var r,i=p.protocol+"//"+p.host,o=l.body.getElementsByTagName("img"),a=o.length;a--;)if((r=o[a]).src.substring(0,i.length)===i){e.local=r.src;break}e.local||(e.local=h)}var s={xdm_c:e.channel,xdm_p:0};e.local===h?(e.usePolling=!0,e.useParent=!0,e.local=p.protocol+"//"+p.host+p.pathname+p.search,s.xdm_e=e.local,s.xdm_pa=1):s.xdm_e=j(e.local),e.container&&(e.useResize=!1,s.xdm_po=1),e.remote=F(e.remote,s)}else P(e,{useParent:!C(L.xdm_pa),usePolling:!C(L.xdm_po),useResize:!e.useParent&&e.useResize});t=[new O.stack.HashTransport(e),new O.stack.ReliableBehavior({}),new O.stack.QueueBehavior({encode:!0,maxLength:4e3-e.remote.length}),new O.stack.VerifyBehavior({initiate:e.isHost})];break;case"1":t=[new O.stack.PostMessageTransport(e)];break;case"2":e.isHost&&(e.remoteHelper=j(e.remoteHelper)),t=[new O.stack.NameTransport(e),new O.stack.QueueBehavior,new O.stack.VerifyBehavior({initiate:e.isHost})];break;case"3":t=[new O.stack.NixTransport(e)];break;case"4":t=[new O.stack.SameOriginTransport(e)];break;case"5":t=[new O.stack.FrameElementTransport(e)];break;case"6":u||E(),t=[new O.stack.FlashTransport(e)]}return t.push(new O.stack.QueueBehavior({lazy:e.lazy,remove:!0})),t}function q(e){for(var t,n={incoming:function(e,t){this.up.incoming(e,t)},outgoing:function(e,t){this.down.outgoing(e,t)},callback:function(e){this.up.callback(e)},init:function(){this.down.init()},destroy:function(){this.down.destroy()}},r=0,i=e.length;r<\/script>')}},K={},O.Fn={set:function(e,t){K[e]=t},get:function(e,t){if(K.hasOwnProperty(e)){var n=K[e];return t&&delete K[e],n}}},O.Socket=function(n){var t=q(M(n).concat([{incoming:function(e,t){n.onMessage(e,t)},callback:function(e){n.onReady&&n.onReady(e)}}])),r=U(n.remote);this.origin=U(n.remote),this.destroy=function(){t.destroy()},this.postMessage=function(e){t.outgoing(e,r)},t.init()},O.Rpc=function(t,e){if(e.local)for(var n in e.local){var r;!e.local.hasOwnProperty(n)||"function"==typeof(r=e.local[n])&&(e.local[n]={method:r})}var i=q(M(t).concat([new O.stack.RpcBehavior(this,e),{callback:function(e){t.onReady&&t.onReady(e)}}]));this.origin=U(t.remote),this.context=t.context||null,this.destroy=function(){i.destroy()},i.init()},O.stack.SameOriginTransport=function(e){var t,n,r,i;return t={outgoing:function(e,t,n){r(e),n&&n()},destroy:function(){n&&(n.parentNode.removeChild(n),n=null)},onDOMReady:function(){i=U(e.remote),e.isHost?(P(e.props,{src:F(e.remote,{xdm_e:p.protocol+"//"+p.host+p.pathname,xdm_c:e.channel,xdm_p:4}),name:A+e.channel+"_provider"}),n=B(e),O.Fn.set(e.channel,function(e){return r=e,g(function(){t.up.callback(!0)},0),function(e){t.up.incoming(e,i)}})):(r=function(){var e=parent;if(""!==S)for(var t=0,n=S.split(".");t"}return n={outgoing:function(e,t,n){a.postMessage(i.channel,e.toString()),n&&n()},destroy:function(){try{a.destroyChannel(i.channel)}catch(e){}a=null,r&&(r.parentNode.removeChild(r),r=null)},onDOMReady:function(){o=i.remote,O.Fn.set("flash_"+i.channel+"_init",function(){g(function(){n.up.callback(!0)})}),O.Fn.set("flash_"+i.channel+"_onMessage",c),i.swf=j(i.swf);var e=I(i.swf),t=function t(){O.stack.FlashTransport[e].init=!0,(a=O.stack.FlashTransport[e].swf).createChannel(i.channel,i.secret,U(i.remote),i.isHost),i.isHost&&(m&&i.swfNoThrottle&&P(i.props,{position:"fixed",right:0,top:0,height:"20px",width:"20px"}),P(i.props,{src:F(i.remote,{xdm_e:U(p.href),xdm_c:i.channel,xdm_p:6,xdm_s:i.secret}),name:A+i.channel+"_provider"}),r=B(i))};O.stack.FlashTransport[e]&&O.stack.FlashTransport[e].init?t():O.stack.FlashTransport[e]?O.stack.FlashTransport[e].queue.push(t):(O.stack.FlashTransport[e]={queue:[t]},u(e))},init:function(){R(n.onDOMReady,n)}}},O.stack.PostMessageTransport=function(r){var n,t,i,o;function a(e){var t;"string"!=typeof e.data||(t=function(e){if(e.origin)return U(e.origin);if(e.uri)return U(e.uri);if(e.domain)return p.protocol+"//"+e.domain;throw"Unable to retrieve the origin of the event"}(e))==o&&"string"==typeof e.data&&e.data.substring(0,r.channel.length+1)==r.channel+" "&&n.up.incoming(e.data.substring(r.channel.length+1),t)}function s(e){e.data==r.channel+"-ready"&&(i="postMessage"in t.contentWindow?t.contentWindow:t.contentWindow.document,y(h,"message",s),v(h,"message",a),g(function(){n.up.callback(!0)},0))}return n={outgoing:function(e,t,n){i.postMessage(r.channel+" "+e,t||o),n&&n()},destroy:function(){y(h,"message",s),y(h,"message",a),t&&(i=null,t.parentNode.removeChild(t),t=null)},onDOMReady:function(){"file://"===(o=U(r.remote))&&(o="*"),r.isHost?(v(h,"message",s),P(r.props,{src:F(r.remote,{xdm_e:U(p.href),xdm_c:r.channel,xdm_p:1}),name:A+r.channel+"_provider"}),t=B(r)):(v(h,"message",a),(i="postMessage"in h.parent?h.parent:h.parent.document).postMessage(r.channel+"-ready",o),g(function(){n.up.callback(!0)},0))},init:function(){R(n.onDOMReady,n)}}},O.stack.FrameElementTransport=function(e){var t,n,r,i;return t={outgoing:function(e,t,n){r.call(this,e),n&&n()},destroy:function(){n&&(n.parentNode.removeChild(n),n=null)},onDOMReady:function(){i=U(e.remote),e.isHost?(P(e.props,{src:F(e.remote,{xdm_e:U(p.href),xdm_c:e.channel,xdm_p:5}),name:A+e.channel+"_provider"}),(n=B(e)).fn=function(e){return delete n.fn,r=e,g(function(){t.up.callback(!0)},0),function(e){t.up.incoming(e,i)}}):(l.referrer&&U(l.referrer)!=L.xdm_e&&(h.top.location=L.xdm_e),r=h.frameElement.fn(function(e){t.up.incoming(e,i)}),t.up.callback(!0))},init:function(){R(t.onDOMReady,t)}}},O.stack.NameTransport=function(r){var t,i,o,e,a,s,c,u;function l(e){var t=r.remoteHelper+(i?"#_3":"#_2")+r.channel;o.contentWindow.sendMessage(e,t)}function p(){i?2!=++a&&i||t.up.callback(!0):(l("ready"),t.up.callback(!0))}function d(e){t.up.incoming(e,c)}function f(){s&&g(function(){s(!0)},0)}return t={outgoing:function(e,t,n){s=n,l(e)},destroy:function(){o.parentNode.removeChild(o),o=null,i&&(e.parentNode.removeChild(e),e=null)},onDOMReady:function(){i=r.isHost,a=0,c=U(r.remote),r.local=j(r.local),i?(O.Fn.set(r.channel,function(e){i&&"ready"===e&&(O.Fn.set(r.channel,d),p())}),u=F(r.remote,{xdm_e:r.local,xdm_c:r.channel,xdm_p:2}),P(r.props,{src:u+"#"+r.channel,name:A+r.channel+"_provider"}),e=B(r)):(r.remoteHelper=r.remote,O.Fn.set(r.channel,d));var n=function n(){var e=o||this;y(e,"load",n),O.Fn.set(r.channel+"_load",f),function t(){"function"==typeof e.contentWindow.sendMessage?p():g(t,50)}()};o=B({props:{src:r.local+"#_4"+r.channel},onLoad:n})},init:function(){R(t.onDOMReady,t)}}},O.stack.HashTransport=function(i){var o,a,e,s,c,u,l,p,d,f;function t(){var e,t,n;l&&(t="",-1!=(n=(e=l.location.href).indexOf("#"))&&(t=e.substring(n)),t&&t!=c&&(c=t,o.up.incoming(c.substring(c.indexOf("_")+1),f)))}function m(){e=setInterval(t,s)}return o={outgoing:function(e,t){var n,r;n=e,p&&(r=i.remote+"#"+u+++"_"+n,(a||!d?p.contentWindow:p).location=r)},destroy:function(){h.clearInterval(e),!a&&d||p.parentNode.removeChild(p),p=null},onDOMReady:function(){var t,n;a=i.isHost,s=i.interval,c="#"+i.channel,u=0,d=i.useParent,f=U(i.remote),a?(P(i.props,{src:i.remote,name:A+i.channel+"_provider"}),d?i.onLoad=function(){l=h,m(),o.up.callback(!0)}:(t=0,n=i.delay/50,function r(){if(++t>n)throw new Error("Unable to reference listenerwindow");try{l=p.contentWindow.frames[A+i.channel+"_consumer"]}catch(e){}l?(m(),o.up.callback(!0)):g(r,50)}()),p=B(i)):(l=h,m(),d?(p=parent,o.up.callback(!0)):(P(i,{props:{src:i.remote+"#"+i.channel+new Date,name:A+i.channel+"_consumer"},onLoad:function(){o.up.callback(!0)}}),p=B(i)))},init:function(){R(o.onDOMReady,o)}}},O.stack.ReliableBehavior=function(e){var i,o,a=0,s=0,c="";return i={incoming:function(e,t){var n=e.indexOf("_"),r=e.substring(0,n).split(",");e=e.substring(n+1),r[0]==a&&(c="",o&&o(!0)),0