PageSourceSearch

https://www.megastudy.net/common/js/tui/tui-app-loader.min.js

js megastudy.net collected 2026-10-02 16:28:10 UTC 7,785 bytes, 7 lines download raw bytes

1/*!
2 * TOAST UI App Loader
3 * @version 2.1.6
4 * @author NHN. FE Development Lab <[email protected]>
5 * @license MIT
6 */
7!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("ua-parser-js")):"function"==typeof define&&define.amd?define(["ua-parser-js"],e):"object"==typeof exports?exports.AppLoader=e(require("ua-parser-js")):(t.tui=t.tui||{},t.tui.AppLoader=e(t.UAParser))}(window,(function(t){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="dist/",n(n.s=4)}([function(t,e,n){"use strict";t.exports=function(t,e){var n,i,r,o,s=Object.prototype.hasOwnProperty;for(r=1,o=arguments.length;r<o;r+=1)for(i in n=arguments[r])s.call(n,i)&&(t[i]=n[i]);return t}},function(t,e,n){"use strict";t.exports=function(t){return void 0===t}},function(t,e,n){"use strict";var i=n(0),r=n(12),o=n(14),s=n(3).bind,c={TIMEOUT:{IOS:2e3,ANDROID:800,INTERVAL:100},moveTo:function(t){top.location.href=t},runAppWithIframe:function(t){var e=this.createIFrameElement();return e.src=t,document.body.appendChild(e),e},createIFrameElement:function(){var t=document.createElement("iframe");return t.id="tui-support-frame",t.frameborder="0",t.width="0",t.height="0",t.style.display="none",t},deferCallback:function(t,e){var n,i=(new Date).getTime();return o(t)&&(n=setTimeout(s((function(){var n=(new Date).getTime();this.isPageVisible()&&n-i<e+this.TIMEOUT.INTERVAL&&t()}),this),e)),n},isPageVisible:function(){return r(document.hidden)?!document.hidden:!r(document.webkitHidden)||!document.webkitHidden}};c.androidSchemeDetector=i({type:"scheme",run:function(t){var e=t.notFoundCallback;e&&this.deferCallback(e,this.TIMEOUT.ANDROID),this.runAppWithIframe(t.urlScheme)}},c),c.androidIntentDetector=i({type:"intent",launchViaIframe:function(t,e,n){var i=this.runAppWithIframe(t),r=this.deferCallback(e,this.TIMEOUT.ANDROID);setTimeout((function(){try{i&&i.contentDocument.body&&document.body.removeChild(i)}catch(t){document.body.removeChild(i),clearTimeout(r),o(n)&&n()}}),100)},run:function(t){var e=t.notFoundCallback,n=t.intentURI;t.useIframe?this.launchViaIframe(n,e,t.onErrorIframe):(this.moveTo(n),this.deferCallback(e,this.TIMEOUT.ANDROID))}},c),t.exports=c},function(t,e,n){"use strict";var i={bind:function(t,e){var n,i=Array.prototype.slice;return t.bind?t.bind.apply(t,i.call(arguments,1)):(n=i.call(arguments,2),function(){return t.apply(e,n.length?n.concat(i.call(arguments)):arguments)})}};t.exports=i},function(t,e,n){"use strict";var i=n(5),r=n(0),o=n(8),s=n(11),c=n(2),u=n(15),a=n(16),d={ios:{scheme:"",url:""},android:{scheme:"",url:""}},l=i({init:function(t){var e=(new s).getResult(),n=e.os;this.agent=e,this.ua=e.ua,this.osName=n.name,this.osVersion=n.version,this.detector=null,(t=r({usageStatistics:!0},t)).usageStatistics&&o("app-loader","UA-129987462-1")},_setDetector:function(t){var e=this.osName,n="iOS"===e;"Android"===e?this._setAndroidDetector(t):n&&t.iosStoreURL?this._setIOSDetector():this._setEtcDetector(t)},_setIOSDetector:function(){var t=parseInt(this.osVersion,10);this.detector=t>8?u.iOS9AndLater:8===t?u.iOS8:u.iOS7AndBefore},_setAndroidDetector:function(t){t.intentURI&&this.doesBrowserSupportIntent()?this.detector=c.androidIntentDetector:this.detector=c.androidSchemeDetector},_setEtcDetector:function(t){this.detector=a,setTimeout((function(){t.etcCallback&&t.etcCallback()}),100)},_runDetector:function(t){this.detector&&this.detector!==a&&this.detector.run(t)},doesBrowserSupportIntent:function(){return!/firefox|opr/i.test(this.ua)},exec:function(t){var e,n;e=(t=r(d,t)).timerSet,n={urlScheme:t.ios.scheme,iosStoreURL:t.ios.url,universalLink:t.ios.universalLink,intentURI:t.android.intentURI,useIframe:t.android.useIframe,onErrorIframe:t.android.onErrorIframe,etcCallback:t.etcCallback,notFoundCallback:t.notFoundCallback},this._setDetector(n),e&&this._setTimerTime(e),this._runDetector(n)},_setTimerTime:function(t){this.detector.TIMEOUT||(this.detector.TIMEOUT={}),this.detector.TIMEOUT.IOS=t.ios||this.detector.TIMEOUT.IOS,this.detector.TIMEOUT.ANDROID=t.android||this.detector.TIMEOUT.ANDROID}});t.exports=l},function(t,e,n){"use strict";var i=n(6),r=n(0);t.exports=function(t,e){var n;return e||(e=t,t=null),n=e.init||function(){},t&&i(n,t),e.hasOwnProperty("static")&&(r(n,e.static),delete e.static),r(n.prototype,e),n}},function(t,e,n){"use strict";var i=n(7);t.exports=function(t,e){var n=i(e.prototype);n.constructor=t,t.prototype=n}},function(t,e,n){"use strict";
7t.exports=function(t){function e(){}return e.prototype=t,new e}},function(t,e,n){"use strict";var i=n(1),r=n(9),o=6048e5;t.exports=function(t,e){var n=location.hostname,s="TOAST UI "+t+" for "+n+": Statistics",c=window.localStorage.getItem(s);(i(window.tui)||!1!==window.tui.usageStatistics)&&(c&&!function(t){return(new Date).getTime()-t>o}(c)||(window.localStorage.setItem(s,(new Date).getTime()),setTimeout((function(){"interactive"!==document.readyState&&"complete"!==document.readyState||r("https://www.google-analytics.com/collect",{v:1,t:"event",tid:e,cid:n,dp:n,dh:t,el:t,ec:"use"})}),1e3)))}},function(t,e,n){"use strict";var i=n(10);t.exports=function(t,e){var n=document.createElement("img"),r="";return i(e,(function(t,e){r+="&"+e+"="+t})),r=r.substring(1),n.src=t+"?"+r,n.style.display="none",document.body.appendChild(n),document.body.removeChild(n),n}},function(t,e,n){"use strict";t.exports=function(t,e,n){var i;for(i in n=n||null,t)if(t.hasOwnProperty(i)&&!1===e.call(n,t[i],i,t))break}},function(e,n){e.exports=t},function(t,e,n){"use strict";var i=n(1),r=n(13);t.exports=function(t){return!i(t)&&!r(t)}},function(t,e,n){"use strict";t.exports=function(t){return null===t}},function(t,e,n){"use strict";t.exports=function(t){return t instanceof Function}},function(t,e,n){"use strict";var i=n(0),r=n(3).bind,o=i({bindVisibilityChangeEvent:function(){document.addEventListener("visibilitychange",r((function t(){this.isPageVisible()&&(clearTimeout(this.tid),document.removeEventListener("visibilitychange",t))}),this))},bindPagehideEvent:function(){window.addEventListener("pagehide",r((function t(){this.isPageVisible()&&(clearTimeout(this.tid),window.removeEventListener("pagehide",t))}),this))}},n(2));o.iOS7AndBefore=i({run:function(t){var e=t.iosStoreURL,n=t.notFoundCallback||r(this.moveTo,this,e);this.tid=this.deferCallback(n,this.TIMEOUT.IOS),this.bindPagehideEvent(),this.runAppWithIframe(t.urlScheme)}},o),o.iOS8=i({run:function(t){var e=t.iosStoreURL,n=t.notFoundCallback||r(this.moveTo,this,e);this.tid=this.deferCallback(n,this.TIMEOUT.IOS),this.bindVisibilityChangeEvent(),this.runAppWithIframe(t.urlScheme)}},o),o.iOS9AndLater=i({run:function(t){var e=t.iosStoreURL,n=t.notFoundCallback||r(this.moveTo,this,e);t.universalLink?this.moveTo(t.universalLink):(this.tid=this.deferCallback(n,this.TIMEOUT.IOS),this.bindVisibilityChangeEvent(),this.moveTo(t.urlScheme))}},o),t.exports=o},function(t,e,n){"use strict";t.exports={type:"etc",run:function(){}}}])}));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.