tasslihorec sfaxoistadet bintestcss /** * Kakao SDK for JavaScript - v1.43.1 * * 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 * * https://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 * * * Kakao Web2App Library * * https://github.com/kakao/web2app * * Copyright 2015 Kakao Corp. http://www.kakaocorp.com * * MIT License * * * lodash * * https://github.com/lodash/lodash * * Copyright JS Foundation and other contributors * * MIT License * * * ua_parser * * https://github.com/html5crew/ua_parser * * Copyright HTML5 Tech. Team in Daum Communications Corp. * * 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. * `````````` */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Kakao=e.Kakao||{})}(this,(function(e){"use strict";var t="object"==typeof global&&global&&global.Object===Object&&global,n="object"==typeof self&&self&&self.Object===Object&&self,r=t||n||Function("return this")(),o=r.Symbol,i=Object.prototype,a=i.hasOwnProperty,c=i.toString,s=o?o.toStringTag:void 0;var u=Object.prototype.toString;var l=o?o.toStringTag:void 0;function d(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":l&&l in Object(e)?function(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=c.call(e);return r&&(t?e[s]=n:delete e[s]),o}(e):function(e){return u.call(e)}(e)}function p(e){return null!=e&&"object"==typeof e}var f=Array.isArray,h=/\s/;var m=/^\s+/;function v(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&h.test(e.charAt(t)););return t}(e)+1).replace(m,""):e}function g(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var y=/^[-+]0x[0-9a-f]+$/i,b=/^0b[01]+$/i,_=/^0o[0-7]+$/i,k=parseInt;function w(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||p(e)&&"[object Symbol]"==d(e)}(e))return NaN;if(g(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=g(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=v(e);var n=b.test(e);return n||_.test(e)?k(e.slice(2),n?2:8):y.test(e)?NaN:+e}var S=1/0;function x(e){var t=function(e){return e?(e=w(e))===S||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}(e),n=t%1;return t==t?n?t-n:t:0}function O(e){return e}function j(e){if(!g(e))return!1;var t=d(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var A,T=r["__core-js_shared__"],C=(A=/[^.]+$/.exec(T&&T.keys&&T.keys.IE_PROTO||""))?"Symbol(src)_1."+A:"";var I=Function.prototype.toString;var P=/^\[object .+?Constructor\]$/,F=Function.prototype,B=Object.prototype,E=F.toString,U=B.hasOwnProperty,R=RegExp("^"+E.call(U).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function L(e){return!(!g(e)||(t=e,C&&C in t))&&(j(e)?R:P).test(function(e){if(null!=e){try{return I.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}function M(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var z=Date.now;var D,q,N,K=function(){try{var e=L(t=function(e,t){return null==e?void 0:e[t]}(Object,"defineProperty"))?t:void 0;return e({},"",{}),e}catch(e){}var t}(),H=K,J=H?function(e,t){return H(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:O,W=(D=J,q=0,N=0,function(){var e=z(),t=16-(e-N);if(N=e,t>0){if(++q>=800)return arguments[0]}else q=0;return D.apply(void 0,arguments)}),X=W;function $(e,t){for(var n=-1,r=null==e?0:e.length;++n-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}function oe(e){return null!=e&&re(e.length)&&!j(e)}function ie(e,t,n){if(!g(n))return!1;var r=typeof t;return!!("number"==r?oe(n)&&V(t,n.length):"string"==r&&t in n)&&Q(n[t],e)}var ae=Object.prototype;function ce(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ae)}function se(e){return p(e)&&"[object Arguments]"==d(e)}var ue=Object.prototype,le=ue.hasOwnProperty,de=ue.propertyIsEnumerable,pe=se(function(){return arguments}())?se:function(e){return p(e)&&le.call(e,"callee")&&!de.call(e,"callee")},fe=pe;var he="object"==typeof e&&e&&!e.nodeType&&e,me=he&&"object"==typeof module&&module&&!module.nodeType&&module,ve=me&&me.exports===he?r.Buffer:void 0,ge=(ve?ve.isBuffer:void 0)||function(){return!1},ye={};ye["[object Float32Array]"]=ye["[object Float64Array]"]=ye["[object Int8Array]"]=ye["[object Int16Array]"]=ye["[object Int32Array]"]=ye["[object Uint8Array]"]=ye["[object Uint8ClampedArray]"]=ye["[object Uint16Array]"]=ye["[object Uint32Array]"]=!0,ye["[object Arguments]"]=ye["[object Array]"]=ye["[object ArrayBuffer]"]=ye["[object Boolean]"]=ye["[object DataView]"]=ye["[object Date]"]=ye["[object Error]"]=ye["[object Function]"]=ye["[object Map]"]=ye["[object Number]"]=ye["[object Object]"]=ye["[object RegExp]"]=ye["[object Set]"]=ye["[object String]"]=ye["[object WeakMap]"]=!1;var be="object"==typeof e&&e&&!e.nodeType&&e,_e=be&&"object"==typeof module&&module&&!module.nodeType&&module,ke=_e&&_e.exports===be&&t.process,we=function(){try{var e=_e&&_e.require&&_e.require("util").types;return e||ke&&ke.binding&&ke.binding("util")}catch(e){}}(),Se=we&&we.isTypedArray,xe=Se?function(e){return function(t){return e(t)}}(Se):function(e){return p(e)&&re(e.length)&&!!ye[d(e)]},Oe=xe,je=Object.prototype.hasOwnProperty;function Ae(e,t){var n=f(e),r=!n&&fe(e),o=!n&&!r&&ge(e),i=!n&&!r&&!o&&Oe(e),a=n||r||o||i,c=a?function(e,t){for(var n=-1,r=Array(e);++n1?t[r-1]:void 0,i=r>2?t[2]:void 0;for(o=Ue.length>3&&"function"==typeof o?(r--,o):void 0,i&&ie(t[0],t[1],i)&&(o=r<3?void 0:o,r=1),e=Object(e);++n2?t[2]:void 0;for(o&&ie(t[0],t[1],o)&&(r=1);++n1&&void 0!==arguments[1])||arguments[1],n=t?encodeURIComponent:function(e){return e},r=at(ut(e),(function(t){var r=e[t];return n(t)+"="+n(p(r)?JSON.stringify(r):r)}));return r.join("&")}function vt(e){if(!f(e))throw new Error("elements should be an Array");return function(t){return e.indexOf(t)>-1}}function gt(e){if(!f(e))throw new Error("validators should be an Array");return function(t){return e.some((function(e){return e(t)}))}}var yt=function(){var e={_data:{},setItem:function(e,t){return this._data[e]=String(t)},getItem:function(e){return this._data.hasOwnProperty(e)?this._data[e]:null},removeItem:function(e){return delete this._data[e]},clear:function(){return this._data={}}};try{return"localStorage"in window&&null!==window.localStorage?(window.localStorage.setItem("store",""),window.localStorage.removeItem("store"),window.localStorage):e}catch(t){return e}}();function bt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _t(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1)return!0;return!1}(e)?"tablet":function(e){if(e.match(/linux|windows (nt|98)|macintosh|cros/)&&!e.match(/android|mobile|polaris|lgtelecom|uzard|natebrowser|ktf;|skt;/))return!0;return!1}(e)?"pc":function(e){return!!e.match(/ip(hone|od)|android.+mobile|windows (ce|phone)|blackberry|bb10|symbian|webos|firefox.+fennec|opera m(ob|in)i|tizen.+mobile|polaris|iemobile|lgtelecom|nokia|sonyericsson|dolfin|uzard|natebrowser|ktf;|skt;/)}(e)?"mobile":""}function r(e){var n={},r=/(iphone|ipad|ipod)[\S\s]*os ([\w._\-]+) like/.exec(e)||!!/polaris|natebrowser|([010|011|016|017|018|019]{3}\d{3,4}\d{4}$)/.test(e)&&["","polaris","0.0.0"]||/(windows)(?: nt | phone(?: os){0,1} | )([\w._\-]+)/.exec(e)||/(android)[ \/]([\w._\-]+);/.exec(e)||!!/android/.test(e)&&["","android","0.0.0"]||!!/(windows)/.test(e)&&["","windows","0.0.0"]||/(mac) os x ([\w._\-]+)/.exec(e)||/(tizen)[ \/]([\w._\-]+);/.exec(e)||!!/(linux)/.test(e)&&["","linux","0.0.0"]||!!/webos/.test(e)&&["","webos","0.0.0"]||/(cros)(?:\s[\w]+\s)([\d._\-]+)/.exec(e)||/(bada)[ \/]([\w._\-]+)/.exec(e)||!!/bada/.test(e)&&["","bada","0.0.0"]||!!/(rim|blackberry|bb10)/.test(e)&&["","blackberry","0.0.0"]||["","unknown","0.0.0"];return"iphone"===r[1]||"ipad"===r[1]||"ipod"===r[1]?r[1]="ios":"windows"===r[1]&&"98"===r[2]&&(r[2]="0.98.0"),"mac"===r[1]&&"undefined"!=typeof window&&window.navigator.maxTouchPoints>1&&(r[1]="ios"),"cros"===r[1]&&(r[1]="chrome"),n[r[1]]=!0,n.name=r[1],n.version=t(r[2]),n}Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var o=["crios","fxios","daumapps"];function i(e,n){var r={},i=null,a=o;Array.isArray(n)?a=o.concat(n):"string"==typeof n&&(a=o.concat([n]));for(var c=0,s=a.length;c0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;if(!p(e))throw new Error("params should be an Object");j(t.before)&&t.before(e),j(t.defaults)?Ge(e,t.defaults(e)):Ge(e,t.defaults);var r=t.required,o=void 0===r?{}:r,i=t.optional,a=void 0===i?{}:i,c=st(ut(o),ut(e));if(c.length>0)throw new nn("Missing required keys: ".concat(c.join(",")," at ").concat(n));var s=Re({},o,a),u=st(ut(e),ut(s));if(u.length>0)throw new nn("Invalid parameter keys: ".concat(u.join(",")," at ").concat(n));return Ve(e,(function(e,t){an(e,s[t],'"'.concat(t,'" in ').concat(n))})),j(t.after)&&t.after(e),e}function sn(){return(Math.random().toString(36).slice(2)+en()+Date.now().toString(36)).slice(0,60)}function un(e,t){if(Xt.os.android){var n=JSON.stringify({appKey:Zt,KA:Yt});return"market://details?id=".concat(e,"&referrer=").concat(n)}return Xt.os.ios?"https://itunes.apple.com/app/id".concat(t):location.href}function ln(e){try{return e()}catch(e){throw e instanceof TypeError?new nn("kakao.js should be loaded from a web server"):new nn("EasyXDM - ".concat(e.message))}}nn.prototype=new Error;var dn={};function pn(e,t,n){var r=dn[t];return r&&r.close&&!r.closed&&r.close(),dn[t]=window.open(e,t,n),dn[t]}function fn(e,t,n){Ve(n,(function(n,r){var o=t.getAttribute(n);null!==o&&(e[r]="true"===o||"false"===o?"true"===o:o)}))}function hn(e,t,n){var r=document.createElement("iframe");r.id=r.name=e,r.src=t,r.setAttribute("style","border:none; width:0; height:0; display:none; overflow:hidden;"),document.body.appendChild(r),n.push((function(){document.body.removeChild(r)}))}function mn(e,t,n){var r=function n(r){var o=r.data,i=r.origin;if(o&&i===t){var a=JSON.parse(o);a.code?e.fail(a):e.success(a),e.always(a),ht(window,"message",n)}};ft(window,"message",r),n.push((function(){ht(window,"message",r)}))}function vn(e,t){var n=t.url,r=t.popupName,o=t.popupFeatures,i=Xt.browser.msie?{}:pn("",r,o);return i.focus&&i.focus(),gn(e,n,r),i}function gn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=document.createElement("form");r.setAttribute("accept-charset","utf-8"),r.setAttribute("method","post"),r.setAttribute("action",t),r.setAttribute("target",n),r.setAttribute("style","display:none"),Ve(e,(function(e,t){var n=document.createElement("input");n.type="hidden",n.name=t,n.value=Ye(e)?e:JSON.stringify(e),r.appendChild(n)})),document.body.appendChild(r),r.submit(),document.body.removeChild(r)}var yn={};var bn={subscribe:function(e,t){yn[e]=yn[e]||[],yn[e].push(t)},unsubscribe:function(e,t){for(var n=yn[e],r=0;rn._maxCount?t():(e(),n._doPolling(e,t))}),this._interval))}},{key:"stop",value:function(){this._stopped=!0,clearTimeout(this._timeout),this._timeout=null}}]),e}(),kn={success:lt,fail:lt,always:lt},wn=_t({throughTalk:!0,persistAccessToken:!0,persistRefreshToken:!1},kn),Sn={success:j,fail:j,always:j,persistAccessToken:Qe,persistRefreshToken:Qe,approvalType:vt(["project"]),scope:Ye,throughTalk:Qe,plusFriendPublicId:Ye,channelPublicId:Ye,serviceTerms:Ye,redirectUri:Ye,state:Ye,deviceType:vt(["watch","tv"]),nonce:Ye},xn={optional:{success:j,fail:j,always:j,close:j,returnUrl:Ye,forceMobileLayout:Qe,enableBackButton:Qe},defaults:_t(_t({},kn),{},{close:lt,forceMobileLayout:!1,enableBackButton:!0})},On={createLoginButton:{required:{container:gt([Ze,Ye])},optional:_t({lang:vt(["en","kr"]),size:vt(["small","medium","large"])},Sn),defaults:_t({lang:"kr",size:"medium"},wn)},login:{optional:Sn,defaults:wn},authorize:{optional:{redirectUri:Ye,approvalType:vt(["project"]),scope:Ye,throughTalk:Qe,plusFriendPublicId:Ye,channelPublicId:Ye,serviceTerms:Ye,isPopup:Qe,state:Ye,autoLogin:Qe,deviceType:vt(["watch","tv"]),prompts:Ye,reauthenticate:Qe,throughSyncplugin:Qe,loginHint:Ye,nonce:Ye,success:j,fail:j,always:j},defaults:_t({throughTalk:!0,isPopup:!1,reauthenticate:!1,throughSyncplugin:!0},kn)},autoLogin:{optional:{success:j,fail:j,always:j},defaults:kn},issueAccessToken:{required:{code:Ye,redirectUri:Ye},optional:{success:j,fail:j,always:j},defaults:kn},selectShippingAddress:xn,createShippingAddress:xn,updateShippingAddress:_t({required:{addressId:et}},xn)};function jn(e){var t,n,r,o,i,a;return pn(e,"_blank",(t=480,n=700,r=window.screenLeft?window.screenLeft:window.screenX?window.screenX:0,o=window.screenTop?window.screenTop:window.screenY?window.screenY:0,i=screen.width/2-t/2+r,a=screen.height/2-n/2+o,["width=".concat(t),"height=".concat(n),"left=".concat(i),"top=".concat(a),"scrollbars=yes","resizable=1"].join(",")))}function An(e){return"".concat(Qt.authorize,"?").concat(mt(e))}function Tn(e){var t={client_id:en()};return e.approvalType&&(t.approval_type=e.approvalType),e.scope&&(t.scope=e.scope),e.state&&(t.state=e.state),t}function Cn(e){var t={};return e.plusFriendPublicId&&(t["extra.plus_friend_public_id"]=e.plusFriendPublicId),e.channelPublicId&&(t.channel_public_id=e.channelPublicId),e.serviceTerms&&(t["extra.service_terms"]=e.serviceTerms),e.autoLogin&&(t.prompt="none"),e.reauthenticate&&(t.prompt="login"),e.prompts&&(t.prompt=e.prompts),e.deviceType&&(t.device_type=e.deviceType),e.loginHint&&(t.login_hint=e.loginHint),e.nonce&&(t.nonce=e.nonce),t}function In(e){return _t(_t(_t({},Tn(e)),Cn(e)),{},{redirect_uri:e.redirectUri||Qt.redirectUri,response_type:"code",auth_tran_id:sn()})}function Pn(e,t){return _t(_t({},t),{},{ka:Yt,is_popup:e.isPopup})}function Fn(e,t){t.error?e.fail(t):e.success(t),e.always(t)}function Bn(e,t){!function(e,t){var n=e.url,r=e.method,o=e.data,i=new XMLHttpRequest;if(void 0!==i.withCredentials)i.open(r,n),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.onreadystatechange=function(){i.readyState===XMLHttpRequest.DONE&&200===i.status&&t(i)},i.send(o);else{var a=new XDomainRequest;a.open(r.toLowerCase(),n),a.onload=function(){t({status:a.responseText?200:"error",response:a.responseText})},setTimeout((function(){a.send(o)}),0)}}({method:"GET",url:e},t)}var En=new _n(1e3,600);function Un(e){var t,n,r=In(e),o=Pn(e,r),i=function(e){var t=!(!Xt.os.ios&&!Xt.os.android)&&!$t,n=!0===e.reauthenticate||Rn(e.prompts,"login"),r=!0===e.autoLogin||Rn(e.prompts,"none");return!(Xt.os.android&&/instagram|fb_iab/g.test(Xt.ua))&&t&&!n&&!0===e.throughTalk&&!r}(e),a=Mn(e),c=An(o),s=i?function(e,t,n){var r=_t(_t({},t),{},{is_popup:!0}),o=function(){return["intent:#Intent","action=com.kakao.talk.intent.action.CAPRI_LOGGED_IN_ACTIVITY","launchFlags=0x08880000","S.com.kakao.sdk.talk.appKey=".concat(en()),"S.com.kakao.sdk.talk.redirectUri=".concat(r.redirect_uri),"S.com.kakao.sdk.talk.kaHeader=".concat(Yt),"S.com.kakao.sdk.talk.extraparams=".concat(encodeURIComponent(JSON.stringify(r)))].concat(Ft(e.state?["S.com.kakao.sdk.talk.state=".concat(e.state)]:[]),["S.browser_fallback_url=".concat(encodeURIComponent(n)),"end;"]).join(";")},i=function(){var t=An(r),o=e.isPopup?t:n,i="".concat(t,"&ka=").concat(encodeURIComponent(Yt)),a="".concat(Qt.talkInappScheme,"?url=").concat(encodeURIComponent(i));return"".concat(Qt.universalKakaoLink).concat(encodeURIComponent(a),"&web=").concat(encodeURIComponent(o))};return Xt.os.android?o():i()}(e,r,c):c,u=null;if(a?function(e){var t=_t(_t({},e),{},{is_popup:!0,approval_window_type:"v4_bizplugin"}),n=encodeURIComponent(mt(t));location.href="".concat(Qt.talkSyncpluginScheme,"&query=").concat(n)}(o):e.isPopup?u=jn(s):location.href=s,i||a||e.isPopup){var l=(t=r.auth_tran_id,n=mt({client_id:en(),auth_tran_id:t,ka:Yt}),"".concat(Qt.authDomain,"/apiweb/code.json?").concat(n));En.start((function(){Bn(l,(function(t){var n=function(e,t){if(200===t.status&&t.response){var n=JSON.parse(t.response);if("ok"===n.status&&n.code)return Ln(e,{code:n.code}),!0;if("error"===n.status&&n.error_code&&"300"!==n.error_code)return Ln(e,{error:n.error,error_description:n.error_description}),"700"===n.error_code&&(location.href="".concat(Qt.authDomain,"/error/network")),!0}return!1}(e,t);n&&(En.stop(),u&&u.close&&u.close()),!i&&u&&u.closed&&En.stop()}))}),(function(){Ln(e,{error:"timeout",error_description:"LOGIN_TIMEOUT"})}))}}function Rn(e,t){return!!(e&&e.indexOf(t)>-1)}function Ln(e,t){if(e.state&&(t.state=e.state),e.redirectUri){var n=e.redirectUri.indexOf("?")>-1?"&":"?";location.href=e.redirectUri+n+mt(t)}else Fn(e,t)}function Mn(e){return e.throughSyncplugin&&$t&&/ch-home/i.test(Xt.ua)}var zn=Object.freeze({__proto__:null,authorize:function(e){if(((e=cn(e,On.authorize,"Auth.authorize")).autoLogin||Rn(e.prompts,"none"))&&!$t)return Ln(e,{error:"auto_login",error_description:"NOT_SUPPORTED_BROWSER"}),!1;Mn(e)&&function(e){return!1===e.isPopup&&!Rn(e.prompts,"cert")&&window.kakaoweb&&"function"==typeof window.kakaoweb.reqSignInLocation}(e)?function(e){var t=In(e),n=Pn(e,t),r=mt(_t(_t({},n),{},{is_popup:!1,prompt:"none"}));return kakaoweb.reqSignInLocation(r).then((function(t){var n=Object.fromEntries(new window.URL(t).searchParams);return"consent_required"===n.error&&!Rn(e.prompts,"none")||"interaction_required"===n.error||(Ln(e,_t(_t({},n.code&&{code:n.code}),n.error&&{error:n.error,error_description:n.error_description})),!1)})).catch((function(e){return!1}))}(e).then((function(t){t&&Un(e)})):Un(e),bn.dispatch("LOGIN_START")}});function Dn(){return Xt.os.android&&(2==Xt.os.version.major&&/Version\/\d+.\d+|/i.test(Xt.ua)||4==Xt.os.version.major&&Xt.os.version.minor<4&&/Version\/\d+.\d+|/i.test(Xt.ua)||/Version\/\d+\.\d+/i.test(Xt.ua)&&(/Chrome\/\d+\.\d+\.\d+\.\d+ Mobile/i.test(Xt.ua)||/; wv\)/i.test(Xt.ua)))}function qn(){return Xt.os.ios&&$t}var Nn={exports:{}};!function(e,t){e.exports=function(){function e(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)}function t(e){return"function"==typeof e}var n=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},r=0,o=void 0,i=void 0,a=function(e,t){b[r]=e,b[r+1]=t,2===(r+=2)&&(i?i(_):w())};function c(e){i=e}function s(e){a=e}var u="undefined"!=typeof window?window:void 0,l=u||{},d=l.MutationObserver||l.WebKitMutationObserver,p="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),f="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function h(){return function(){return process.nextTick(_)}}function m(){return void 0!==o?function(){o(_)}:y()}function v(){var e=0,t=new d(_),n=document.createTextNode("");return t.observe(n,{characterData:!0}),function(){n.data=e=++e%2}}function g(){var e=new MessageChannel;return e.port1.onmessage=_,function(){return e.port2.postMessage(0)}}function y(){var e=setTimeout;return function(){return e(_,1)}}var b=new Array(1e3);function _(){for(var e=0;e9&&i>0,!0}if(w(e,"addEventListener"))u=function(e,t,n){e.addEventListener(t,n,!1)},l=function(e,t,n){e.removeEventListener(t,n,!1)};else{if(!w(e,"attachEvent"))throw new Error("Browser not supported");u=function(e,t,n){e.attachEvent("on"+t,n)},l=function(e,t,n){e.detachEvent("on"+t,n)}}var x,O=!1,j=[];function A(){if(!O){O=!0;for(var e=0;e=0)return"file://";var t=e.toLowerCase().match(h);if(!t)return"";var n=t[2],r=t[3],o=t[4]||"";return("http:"==n&&":80"==o||"https:"==n&&":443"==o)&&(o=""),n+"//"+r+o}function P(e){if(!(e=e.replace(v,"$1/")).match(/^(http||https):\/\//)){var t="/"===e.substring(0,1)?"":n.pathname;"/"!==t.substring(t.length-1)&&(t=t.substring(0,t.lastIndexOf("/")+1)),e=n.protocol+"//"+n.host+t+e}for(;m.test(e);)e=e.replace(m,"");return e}function F(e,t){var n="",r=e.indexOf("#");-1!==r&&(n=e.substring(r),e=e.substring(0,r));var o=[];for(var a in t)t.hasOwnProperty(a)&&o.push(a+"="+i(t[a]));return e+(k?"#":-1==e.indexOf("?")?"?":"&")+o.join("&")+n}"readyState"in t?(x=t.readyState,O="complete"==x||~navigator.userAgent.indexOf("AppleWebKit/")&&("loaded"==x||"interactive"==x)):O=!!t.body,O||(w(e,"addEventListener")?u(t,"DOMContentLoaded",A):(u(t,"readystatechange",(function(){"complete"==t.readyState&&A()})),t.documentElement.doScroll&&e===top&&function e(){if(!O){try{t.documentElement.doScroll("left")}catch(t){return void r(e,1)}A()}}()),u(e,"load",A));var B=function(e){for(var t,n={},r=(e=e.substring(1).split("&")).length;r--;)n[(t=e[r].split("="))[0]]=o(t[1]);return n}(/xdm_e=/.test(n.search)?n.search:n.hash);function E(e){return void 0===e}var U,R=function(){var e={},t={a:[1,2,3]},n='{"a":[1,2,3]}';return"undefined"!=typeof JSON&&"function"==typeof JSON.stringify&&JSON.stringify(t).replace(/\s/g,"")===n?JSON:(Object.toJSON&&Object.toJSON(t).replace(/\s/g,"")===n&&(e.stringify=Object.toJSON),"function"==typeof String.prototype.evalJSON&&(t=n.evalJSON()).a&&3===t.a.length&&3===t.a[2]&&(e.parse=function(e){return e.evalJSON()}),e.stringify&&e.parse?(R=function(){return e},e):null)};function L(e,t,n){var r;for(var o in t)t.hasOwnProperty(o)&&(o in e?"object"===kt(r=t[o])?L(e[o],r,n):n||(e[o]=t[o]):e[o]=t[o]);return e}function M(e){var n;E(a)&&function(){var e=t.body.appendChild(t.createElement("form")),n=e.appendChild(t.createElement("input"));n.name=_+"TEST"+p,a=n!==e.elements[n.name],t.body.removeChild(e)}(),a?n=t.createElement('