vendor: 3,694 bytes, lines 1-2
1/*! up-static 2026-09-25 */ 2!function(a,b){"object"==typeof exports&&"undefined"!=typeof module?module.exports=b():"function"==typeof define&&define.amd?define(b):a.ES6Promise=b()}(this,function(){"use strict";function a(a){var b=typeof a;return null!==a&&("object"===b||"function"===b)}function b(a){return"function"==typeof a}function c(a){R=a}function d(a){S=a}function e(){return function(){return process.nextTick(j)}}function f(){return void 0!==Q?function(){Q(j)}:i()}function g(){var a=0,b=new V(j),c=document.createTextNode("");return b.observe(c,{characterData:!0}),function(){c.data=a=++a%2}}function h(){var a=new MessageChannel;return a.port1.onmessage=j,function(){return a.port2.postMessage(0)}}function i(){var a=setTimeout;return function(){return a(j,1)}}function j(){for(var a=0;a<P;a+=2){(0,Y[a])(Y[a+1]),Y[a]=void 0,Y[a+1]=void 0}P=0}function k(){try{var a=Function("return this")().require("vertx");return Q=a.runOnLoop||a.runOnContext,f()}catch(a){return i()}}function l(a,b){var c=this,d=new this.constructor(n);void 0===d[$]&&F(d);var e=c._state;if(e){var f=arguments[e-1];S(function(){return C(e,d,f,c._result)})}else z(c,d,a,b);return d}function m(a){var b=this;if(a&&"object"==typeof a&&a.constructor===b)return a;var c=new b(n);return v(c,a),c}function n(){}function o(){return new TypeError("You cannot resolve a promise with itself")}function p(){return new TypeError("A promises callback cannot return that same promise.")}function q(a){try{return a.then}catch(a){return ca.error=a,ca}}function r(a,b,c,d){try{a.call(b,c,d)}catch(a){return a}}function s(a,b,c){S(function(a){var d=!1,e=r(c,b,function(c){d||(d=!0,b!==c?v(a,c):x(a,c))},function(b){d||(d=!0,y(a,b))},"Settle: "+(a._label||" unknown promise"));!d&&e&&(d=!0,y(a,e))},a)}function t(a,b){b._state===aa?x(a,b._result):b._state===ba?y(a,b._result):z(b,void 0,function(b){return v(a,b)},function(b){return y(a,b)})}function u(a,c,d){c.constructor===a.constructor&&d===l&&c.constructor.resolve===m?t(a,c):d===ca?(y(a,ca.error),ca.error=null):void 0===d?x(a,c):b(d)?s(a,c,d):x(a,c)}function v(b,c){b===c?y(b,o()):a(c)?u(b,c,q(c)):x(b,c)}function w(a){a._onerror&&a._onerror(a._result),A(a)}function x(a,b){a._state===_&&(a._result=b,a._state=aa,0!==a._subscribers.length&&S(A,a))}function y(a,b){a._state===_&&(a._state=ba,a._result=b,S(w,a))}function z(a,b,c,d){var e=a._subscribers,f=e.length;a._onerror=null,e[f]=b,e[f+aa]=c,e[f+ba]=d,0===f&&a._state&&S(A,a)}function A(a){var b=a._subscribers,c=a._state;if(0!==b.length){for(var d=void 0,e=void 0,f=a._result,g=0;g<b.length;g+=3)d=b[g],e=b[g+c],d?C(c,d,e,f):e(f);a._subscribers.length=0}}function B(a,b){try{return a(b)}catch(a){return ca.error=a,ca}}function C(a,c,d,e){var f=b(d),g=void 0,h=void 0,i=void 0,j=void 0;if(f){if(g=B(d,e),g===ca?(j=!0,h=g.error,g.error=null):i=!0,c===g)return void y(c,p())}else g=e,i=!0;c._state!==_||(f&&i?v(c,g):j?y(c,h):a===aa?x(c,g):a===ba&&y(c,g))}function D(a,b){try{b(function(b){v(a,b)},function(b){y(a,b)})}catch(b){y(a,b)}}function E(){return da++}function F(a){a[$]=da++,a._state=void 0,a._result=void 0,a._subscribers=[]}function G(){return new Error("Array Methods must be provided an Array")}function H(a){return new ea(this,a).promise}function I(a){var b=this;return new b(O(a)?function(c,d){for(var e=a.length,f=0;f<e;f++)b.resolve(a[f]).then(c,d)}:function(a,b){return b(new TypeError("You must pass an array to race."))})}function J(a){var b=this,c=new b(n);return y(c,a),c}function K(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function L(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object c
2onstructor cannot be called as a function.")}function M(){var a=void 0;if("undefined"!=typeof global)a=global;else if("undefined"!=typeof self)a=self;else try{a=Function("return this")()}catch(a){throw new Error("polyfill failed because global object is unavailable in this environment")}var b=a.Promise;if(b){var c=null;try{c=Object.prototype.toString.call(b.resolve())}catch(a){}if("[object Promise]"===c&&!b.cast)return}a.Promise=fa}var N=void 0;N=Array.isArray?Array.isArray:function(a){return"[object Array]"===Object.prototype.toString.call(a)};var O=N,P=0,Q=void 0,R=void 0,S=function(a,b){Y[P]=a,Y[P+1]=b,2===(P+=2)&&(R?R(j):Z())},T="undefined"!=typeof window?window:void 0,U=T||{},V=U.MutationObserver||U.WebKitMutationObserver,W="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),X="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,Y=new Array(1e3),Z=void 0;Z=W?e():V?g():X?h():void 0===T&&"function"==typeof require?k():i();var $=Math.random().toString(36).substring(2),_=void 0,aa=1,ba=2,ca={error:null},da=0,ea=function(){function a(a,b){this._instanceConstructor=a,this.promise=new a(n),this.promise[$]||F(this.promise),O(b)?(this.length=b.length,this._remaining=b.length,this._result=new Array(this.length),0===this.length?x(this.promise,this._result):(this.length=this.length||0,this._enumerate(b),0===this._remaining&&x(this.promise,this._result))):y(this.promise,G())}return a.prototype._enumerate=function(a){for(var b=0;this._state===_&&b<a.length;b++)this._eachEntry(a[b],b)},a.prototype._eachEntry=function(a,b){var c=this._instanceConstructor,d=c.resolve;if(d===m){var e=q(a);if(e===l&&a._state!==_)this._settledAt(a._state,b,a._result);else if("function"!=typeof e)this._remaining--,this._result[b]=a;else if(c===fa){var f=new c(n);u(f,a,e),this._willSettleAt(f,b)}else this._willSettleAt(new c(function(b){return b(a)}),b)}else this._willSettleAt(d(a),b)},a.prototype._settledAt=function(a,b,c){var d=this.promise;d._state===_&&(this._remaining--,a===ba?y(d,c):this._result[b]=c),0===this._remaining&&x(d,this._result)},a.prototype._willSettleAt=function(a,b){var c=this;z(a,void 0,function(a){return c._settledAt(aa,b,a)},function(a){return c._settledAt(ba,b,a)})},a}(),fa=function(){function a(b){this[$]=E(),this._result=this._state=void 0,this._subscribers=[],n!==b&&("function"!=typeof b&&K(),this instanceof a?D(this,b):L())}return a.prototype.catch=function(a){return this.then(null,a)},a.prototype.finally=function(a){var c=this,d=c.constructor;return b(a)?c.then(function(b){return d.resolve(a()).then(function(){return b})},function(b){return d.resolve(a()).then(function(){throw b})}):c.then(a,a)},a}();return fa.prototype.then=l,fa.all=H,fa.race=I,fa.resolve=m,fa.reject=J,fa._setScheduler=c,fa._setAsap=d,fa._asap=S,fa.polyfill=M,fa.Promise=fa,fa.polyfill(),fa});var RequestForPageDiscountData=new(function(){function a(){this.website_code=website_code,this.checkout_api_url=checkout_api_url,this.coupon_storage=coupon_storage,this.act_field=act_field,this.pageDiscountData={},this.pageDiscountDataWithCouponURL={},this.pageDiscountDataFlag=!1,this.pageDiscountDataWithCouponURLFlag=!1,this.mergeData,this.couponCode=this.getCouponCode(this.coupon_storage)}return a.prototype.handleRequest=function(){var a=this;return new Promise(function(b,c){a.getPageDiscountData().then(function(c){a.pageDiscountDataFlag=!0,a.pageDiscountData=c,a.couponCode&&a.pageDiscountDataWithCouponURLFlag&&a.pageDiscountDataFlag?b(a.finalizeData()):null==a.couponCode&&b(a.finalizeData())}),a.couponCode&&a.getPageDiscountDataWithCouponFormUrl().then(function(c){a.pageDiscountDataWithCouponURL=c,a.pageDiscountDataWithCouponURLFlag=!0,a.pageDiscountDataWithCouponURLFlag&&a.pageDiscountDataFlag&&b(a.finalizeData())})})},a.prototype.getCouponCode=function(a){var b=new RegExp("[\\?&]"+a+"=([^&#]*)").exec(window.location.href);if(null!=b)return b[1];if(this.isSafariBrowser()){var c=document.cookie.match(new RegExp("(^| )"+a+"=([^;]+)"));if(c)return JSON.parse(c[2]).pc[0]}else{var d=localStorage.getItem(a);if(null!=JSON.parse(d)&&null!=JSON.parse(d).pc)return JSON.parse(d).pc}return null},a.prototype.getPageDiscountData=function(){var a=this;return new Promise(function(b,c){var d=a.checkout_api_url+"/website-products-discount-data?website_code="+a.website_code,e=a.createHttpRequest(d);e.onload=function(){if(200===e.status){var c=a.parseJsonString(e.responseText);b(c.success?c.all_products_discount_data:!1)}else b(!1)},e.send()})},a.prototype.finalizeData=function(){if(this.pageDiscountDataWithCouponURL&&void 0!==this.pageDiscountDataWithCouponURL.coupon_details){var a=this.pageDiscountDataWithCouponURL.coupon_details;if(a.product_ids.length>0){var b=a.product_ids;for(i in b)void 0!==this.pageDiscountData[b[i]]&&(this.pageDiscountData[b[i]]={coupon_code:a.coupon_code,discount_amount:a.discount_amount,discount_percentage:a.discount_percentage,end_date:a.end_date,end_time:a.end_time,shipping_discount_flag:a.shipping_discount_flag});return this.pageDiscountData.discount_details=a,this.pageDiscountData}return{discount_type:"all",discount_details:{coupon_code:a.coupon_code,discount_amount:a.discount_amount,discount_percentage:a.discount_percentage,end_date:a.end_date,end_time:a.end_time,shipping_discount_flag:a.shipping_discount_flag}}}return this.pageDiscountData},a.prototype.getPageDiscountDataWithCouponFormUrl=function(){var a=this;return new Promise(function(b,c){var d=a.checkout_api_url+"/vali
2date-coupon-code/"+a.couponCode+"?website_code="+a.website_code,e=a.createHttpRequest(d);e.onload=function(){if(200===e.status){var c=a.parseJsonString(e.responseText);b(c.success?c:!1)}else b(!1)},e.send()})},a.prototype.createHttpRequest=function(a){var b=new XMLHttpRequest,c={},d=this.getCookie(this.act_field);if(d&&(c={Authorization:"Bearer "+d}),b.open("GET",a),b.setRequestHeader("Content-type","application/json"),c)for(var e in c)b.setRequestHeader(e,c[e]);return b},a.prototype.getCookie=function(a){for(var b=a+"=",c=document.cookie.split(";"),d=0;d<c.length;d++){for(var e=c[d];" "==e.charAt(0);)e=e.substring(1);if(0==e.indexOf(b))return e.substring(b.length,e.length)}return""},a.prototype.parseJsonString=function(a){try{return JSON.parse(a)}catch(a){return!1}},a.prototype.isSafariBrowser=function(){var a=navigator.userAgent.indexOf("Chrome")>-1;return!!(navigator.userAgent.indexOf("Safari")>-1)&&!a},a}()),pageDiscountDataPromise=RequestForPageDiscountData.handleRequest();
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.