1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([["21705"],{42218:function(t,e,n){n.r(e),n.d(e,{loadMulpay:function(){return p}});var i={d:(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},o={};i.d(o,{x:()=>u});let r=RegExp("^https:\\/\\/stg.static.mul-pay.jp\\/payment\\/js\\/mp-token\\.js\\/?(\\?.*)?$"),s="Token.js script already exists in the document; existing script parameters will be used",l="https://stg.static.mul-pay.jp/payment/js/mp-token.js",{loadScript:c,init:a}=new class{constructor(){this.mulPayPromise=null,this.init=(t,e,n,i,o=!0,r=!1)=>{var s,l,c,a;return s=this,l=void 0,c=void 0,a=function*(){return null===t?null:t.init(e,n,i,o,r)},new(c||(c=Promise))(function(t,e){function n(t){try{o(a.next(t))}catch(t){e(t)}}function i(t){try{o(a.throw(t))}catch(t){e(t)}}function o(e){var o;e.done?t(e.value):((o=e.value)instanceof c?o:new c(function(t){t(o)})).then(n,i)}o((a=a.apply(s,l||[])).next())})},this.findScript=t=>{let e=r;!0===t&&(l="https://static.mul-pay.jp/payment/js/mp-token.js",e=RegExp("^https:\\/\\/static.mul-pay.jp\\/payment\\/js\\/mp-token\\.js\\/?(\\?.*)?$"));let n=document.querySelectorAll(`script[src^="${l}"]`);for(let t=0;t<n.length;t++){let i=n[t];if(e.test(i.src))return i}return null},this.injectScript=()=>{let t=document.createElement("script");t.src=l;let e=document.head||document.body;if(!e)throw Error("Expected document.body not to be null. token.js requires a <body> element.");return e.appendChild(t),t},this.loadScript=t=>(null!==this.mulPayPromise||(this.mulPayPromise=new Promise((e,n)=>{if("undefined"!=typeof window&&"undefined"!=typeof document){if(window.Multipayment)return console.warn(s),void e(window.Multipayment);try{let i=this.findScript(t);i?console.warn(s):i||(i=this.injectScript()),i.addEventListener("load",function(){window.Multipayment?e(window.Multipayment):n(Error("token.js not available"))}),i.addEventListener("error",function(){n(Error("Failed to load token.js"))})}catch(t){return void n(t)}}else e(null)})),this.mulPayPromise)}},u=(t,e,n,i=!0,o=!1)=>{var r,s,l,u;return r=void 0,s=void 0,l=void 0,u=function*(){let r=Promise.resolve().then(()=>c(o)),s=!1;return r.catch(t=>{s||console.warn(t)}),s=!0,r.then(r=>a(r,t,e,n,i,o))},new(l||(l=Promise))(function(t,e){function n(t){try{o(u.next(t))}catch(t){e(t)}}function i(t){try{o(u.throw(t))}catch(t){e(t)}}function o(e){var o;e.done?t(e.value):((o=e.value)instanceof l?o:new l(function(t){t(o)})).then(n,i)}o((u=u.apply(r,s||[])).next())})};var p=o.x}}]);
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.