Initialisation depot

This commit is contained in:
Serge NOEL
2026-02-10 12:12:11 +01:00
commit c3176e8d79
818 changed files with 52573 additions and 0 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

File diff suppressed because one or more lines are too long
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

+9
View File
@@ -0,0 +1,9 @@
(function(w,d,c,k,a,b,t,e,h,s) {
var cs = d.currentScript;
if (cs) {
var uo = cs.getAttribute('data-ueto');
if (uo && w[uo] && typeof w[uo].setUserSignals === 'function') {
w[uo].setUserSignals({'ea': c, 'kc': k, 'at': a, 'bi': b, 'pt': t, 'ec': e, 'ah': h, 'sb': s});
}
}
})(window, document, false, false, true, false, false, true, true, false);
Binary file not shown.

After

Width:  |  Height:  |  Size: 638 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 554 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 738 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

@@ -0,0 +1 @@
(function(){"use strict";function a(a){const b=new RegExp("(^|;)\\s*"+a+"\\s*=\\s*([^;]*)\\s*(;|$)").exec(window.document.cookie);return b?decodeURIComponent(b[2]):null}function b({key:a,expires:b,domain:c,value:d}){const e=c&&""!==c?";domain="+encodeURIComponent(c):"",f=b&&"number"==typeof b?";expires="+new Date(new Date().getTime()+b).toUTCString():"";document.cookie=a+"="+encodeURIComponent(d)+f+";path=/"+e+";SameSite=None;Secure"}function c(a){return window.localStorage.getItem(a)}function d(a,b){window.localStorage.setItem(a,b)}function e(a){return window.sessionStorage.getItem(a)}function f(a,b){window.sessionStorage.setItem(a,b)}function g(a){window.localStorage.removeItem(a),window.sessionStorage.removeItem(a)}function h(b){const d=e(b);return d?d:a(b)||c(b)}function i({key:a,value:c,expires:e,domain:g}){a&&c&&(b({key:a,value:c,expires:e,domain:g}),d(a,c),f(a,c))}function j(a){try{return null===a?null:JSON.parse(a)}catch{return null}}function k(){const a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".length;let b="";for(let c=0;20>c;c++)b+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(Math.random()*a));return b}function l(a){return"function"==typeof a?a:()=>{}}function m(a){return!a?.url||!a?.type}function n(a,b){return a.reduce((a,c)=>{const d=c.hash?c.hash:b;return d?(a[d]||(a[d]=[]),a[d].push(c),a):a},{})}function o(){const a=window[F].find(a=>a.eventType&&"init"===a.eventType);return a||null}function p(a=null){return a?.value?a.value:null}function q(a=null){return a?.dc&&["ams","us","phx","sin","ash","asia"].includes(a.dc)?a.dc:"ams"}function r(a){try{const b=JSON.parse(a),c=Array.isArray(b)?b:[];for(const a of c){const b=m(a);if(!b)if("img"===(a.type+"").toLowerCase()){const b=new Image;b.src=a.url,b.setAttribute("width","1"),b.setAttribute("height","1"),b.setAttribute("scrolling","no"),b.setAttribute("frameBorder","0"),b.setAttribute("style","display:none"),document.body.appendChild(b)}else if("iframe"===(a.type+"").toLowerCase()){const b=document.createElement("iframe");b.onload=()=>{setTimeout(()=>b.parentNode?.removeChild(b),3e4)},b.setAttribute("width","1"),b.setAttribute("height","1"),b.setAttribute("scrolling","no"),b.setAttribute("frameBorder","0"),b.setAttribute("style","display:none"),b.setAttribute("src",a.url),document.body.appendChild(b)}}}catch{}}function s(a){return!!a&&new Date(a)<new Date}function t(a){if(!a)return!1;const b=j(a);return!("string"!=typeof b?.expiryDate)&&s(b.expiryDate)}function u(){return new Date(new Date().getTime()+J).toISOString()}function v(a,b=null){const c=document.referrer?document.referrer:"";return{v:K,sr:c,su:location.href,th:b?b:a}}function w(){const a=[];for(const b of I){const c=h(G+b),d=j(c);d?.eventType&&a.push(d)}return a}function x(a,b){a.forEach(a=>{b.test(a?.eventType+"")&&i({key:G+a.eventType,value:JSON.stringify({...a,expiryDate:u()}),expires:J})})}function y(){const a=w();for(const b of a){if(b&&!b.expiryDate){i({key:G+b.eventType,value:JSON.stringify({...b,expiryDate:u()}),expires:J});continue}if(H.includes(b?.eventType)&&s(b?.expiryDate)){const a=G+b.eventType;g(a)}}const b=h("__rtbh.lid"),c=t(b);if(!b||c)i({key:"__rtbh.lid",value:JSON.stringify({eventType:"lid",id:k(),expiryDate:u()}),expires:J});else{const a=j(b);a?.expiryDate&&i({key:"__rtbh.lid",value:JSON.stringify({...a,expiryDate:u()}),expires:J})}}function z(){for(const a of I){const b=G+a,c=h(`__rtbhouse.${a}`),d=h(b),e=window[F].find(b=>b.eventType===a&&b.id);if(e&&i({key:b,value:JSON.stringify(e),expires:J}),!d&&c&&!c.includes("eventType")){i({key:G+a,value:JSON.stringify({eventType:a,id:c}),expires:J})}}}async function A(a,b,c,d){try{const e=l(c),f=await fetch(a,b),g=f.status;if(200<=g&&300>g)return e(d?await f.json():await f.text(),f)}catch{}}function B(a,b,c){try{const d=n(a,c),e=Object.keys(d),f=w();for(const a of e)b&&b(r,d[a],f,a)}catch{}}function C(a,b,c){if(null===a)return;return function(d,e,f,g=null){const h=e.filter(a=>!b.includes(a.eventType)&&"init"!==a.eventType);return A(`https://${c}.creativecdn.com/tags/v2?type=json`,{method:"POST",mode:"cors",credentials:"include",referrerPolicy:"no-referrer-when-downgrade",headers:{"Content-Type":"application/json"},redirect:"follow",body:JSON.stringify({...v(a,g),tags:[...h,...f]})},d)}}function D(){const a=o(),b=q(a),c=p(a),d=C(c,I,b);return{taggingHash:c,sendTags:d}}function E(a,b){const c=new RegExp(`^(${I.join("|")})$`);return function(...d){try{if(x(d,c),null===a){const{taggingHash:c,sendTags:d}=D();a=c,b=d}return Array.prototype.push.apply(this,d),B(d,b,a),!0}catch{return!1}}}const F="rtbhEvents",G="__rtbh.",H=["uid","sid","aid","eid"],I=[...H,"lid"],J=31536000000,K="v0.2.1";(function(){if(Array.isArray(window[F])||(window[F]=[]),window[F].length&&!window[F].push.prototype)try{const{taggingHash:a,sendTags:b}=D();z(),y(),B(window[F],b,a),window[F].push=E(a,b)}catch{}})()})();
@@ -0,0 +1 @@
<svg width="29" height="29" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M-9-9h48v48H-9z"/><path d="M14.728 12.607L26.395.939a1.5 1.5 0 1 1 2.122 2.122L16.849 14.728l11.668 11.667a1.5 1.5 0 0 1-2.122 2.122L14.728 16.849 3.06 28.517a1.5 1.5 0 0 1-2.122-2.122l11.668-11.667L.939 3.06A1.5 1.5 0 0 1 3.061.939l11.667 11.668z" fill-opacity=".54" fill="#000" fill-rule="nonzero"/></g></svg>

After

Width:  |  Height:  |  Size: 418 B

+2
View File
@@ -0,0 +1,2 @@
<html><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"><script src="prompt.js"></script></head><body></body></html>
+2
View File
@@ -0,0 +1,2 @@
<html><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"><script src="prompt.js"></script></head><body><iframe height="0" width="0" style="display: none; visibility: hidden;" src="a_data_002/sw_iframe.htm"></iframe></body></html>
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html><head>
<meta http-equiv="content-type" content="text/html; charset=windows-1252">
<link rel="shortcut icon" href="data:image/x-icon;," type="image/x-icon">
<script src="../prompt.js"></script></head>
<body>
<script>
'use strict';var m={};class n{constructor(a){this.j=a;this.g={};this.h={};this.i=0;this.id=String(Math.floor(Number.MAX_SAFE_INTEGER*Math.random()))}}function p(a){return a.performance&&a.performance.now()||Date.now()}
var q=function(a,c){class d{constructor(b,f,g){this.failureType=b;this.data=f;this.g=g;this.h=new n(p(g))}u(b,f){const g=b.clientId;if(b.type===0){b.isDead=!0;var e=this.h,h=p(this.g);e.g[g]==null&&(e.g[g]=0,e.h[g]=h,e.i++);e.g[g]++;b.stats={targetId:e.id,clientCount:e.i,totalLifeMs:Math.round(h-e.j),heartbeatCount:e.g[g],clientLifeMs:Math.round(h-e.h[g])}}b.failure={failureType:this.failureType,data:this.data};f(b)}}return new d(5,a,c)};/*
Copyright Google LLC
SPDX-License-Identifier: Apache-2.0
*/
let r=globalThis.trustedTypes,t;function u(){let a=null;if(!r)return a;try{const c=d=>d;a=r.createPolicy("goog#html",{createHTML:c,createScript:c,createScriptURL:c})}catch(c){}return a};var v=class{constructor(a){this.g=a}toString(){return this.g+""}};function w(a){const c=a;var d;t===void 0&&(t=u());var b=(d=t)?d.createScriptURL(c):c;return new v(b)}function x(a){if(a instanceof v)return a.g;throw Error("");};function y(a,...c){if(c.length===0)return w(a[0]);let d=a[0];for(let b=0;b<c.length;b++)d+=encodeURIComponent(c[b])+a[b+1];return w(d)}function z(a){var c=y`sw.js`,d=x(c).toString();const b=d.split(/[?#]/),f=/[?]/.test(d)?"?"+b[1]:"";return A(b[0],f,/[#]/.test(d)?"#"+(f?b[2]:b[1]):"",a)}
function A(a,c,d,b){function f(e,h){e!=null&&(Array.isArray(e)?e.forEach(l=>f(l,h)):(c+=g+encodeURIComponent(h)+"="+encodeURIComponent(e),g="&"))}let g=c.length?"&":"?";b.constructor===Object&&(b=Object.entries(b));Array.isArray(b)?b.forEach(e=>f(e[1],e[0])):b.forEach(f);return w(a+c+d)};const B=/Chrome\/(\d+)/;var D=function(a){const c=a.origin;if(c){var d=a.o?"swe.js":"sw.js",b=a.g?y`/static/service_worker/${a.g}/${d}?origin=${c}`:y`/gtm/static/${d}?origin=${c}`,f=new Map([["origin",c]]);a.h&&f.set("path",a.h);var g=a.l?z(f):b,e=()=>{const k=B.exec(a.window.navigator.userAgent);return k&&Number(k[1])<119},h=a.window.document.location.href;a.g&&(a.l?h=`${a.h}/_/service_worker`:e()||(h="/static/service_worker"));var l={scope:h};a.g&&(l.updateViaCache="all");a.window.navigator.serviceWorker.register(x(g),
l).then(()=>{a.window.navigator.serviceWorker.ready.then(k=>{a.i=k.active;C(a)})},k=>{a.j=q(k==null?void 0:k.toString(),a.window);C(a)});a.window.navigator.serviceWorker.addEventListener("message",k=>{a.window.parent.postMessage(k.data,a.origin)})}},C=function(a){const c=a.m.slice();a.m=[];for(const d of c)a.handleEvent(d)};
(new class{constructor(a){this.window=a;this.origin="";this.o=this.l=!1;this.h="";this.j=this.i=null;this.m=[];this.g=""}init(){if((f=>{try{return f!==f.top}catch(g){return!0}})(this.window)){var a=new URL(this.window.document.location.href),c=a.searchParams.get("origin");if(c){this.origin=c;this.l=!!a.searchParams.get("1p");this.o=!!a.searchParams.get("e");this.h=a.searchParams.get("path")||"";var d=a.pathname.match(RegExp(".*/service_worker/(\\w+)/"));d&&d.length&&(this.g=d[1]);var b=this.window.document.location.ancestorOrigins;
b&&b[0]!==this.origin||(D(this),this.window.addEventListener("message",f=>{this.handleEvent(f)}))}}}handleEvent(a){a.origin===this.origin&&(this.i?this.i.postMessage(a.data):this.j?this.j.u(a.data,c=>{this.window.parent.postMessage(c,this.origin)}):this.m.push(a))}}(window)).init();
</script>
</body></html>
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
!function(t){var n="https://",e="aHR0cHM6Ly9waXBzLnRhYm9vbGEuY29t",r=["YXJjaGl0ZWN0dXJl","cGxhdGZvcm1WZXJzaW9u","dWFGdWxsVmVyc2lvbg=="],a=["YnJhbmRz","bW9iaWxl","bW9kZWw=","cGxhdGZvcm0=","cGxhdGZvcm1WZXJzaW9u","dWFGdWxsVmVyc2lvbg=="],s="dc";function o(){return"currentScript"in t.document&&t.document.currentScript&&"src"in t.document.currentScript&&"URL"in t&&"parse"in t.URL}function i(){var n=null;if(o()){var e=t.URL.parse(t.document.currentScript.src);e&&(n=e.searchParams)}return n||{get:function t(){return null}}}function c(){return{get:function t(){return null}}}function u(t){return t?"&dc=".concat(t):""}try{t.TRC.cdsPips={userId:null,getHttpsPrefix:function t(){return n},doNothing:function t(){return!0},safeGetTfaConfig:function n(e,r,a){return t._tfa&&t._tfa.config&&t._tfa.config.safeGet&&t._tfa.config.safeGet(e,r,a)},safeGetRboxConfig:function t(n){var e;return(TRCImpl?TRCImpl.global:{})[n]},prepareGenericRequest:function n(e,r){var a,s=new(t.XDomainRequest||t.XMLHttpRequest);return s.open(e,r),s.onload=this.doNothing,s.onerror=this.doNothing,s.onprogress=this.doNothing,s},tryToReadUserIdFromLocalStorage:function t(){try{return window.localStorage["taboola global:user-id"]}catch(t){return null}},getUserId:function n(){var e=t.TFASC&&t.TFASC.tfaUserId&&"function"==typeof t.TFASC.tfaUserId.getUserId?t.TFASC.tfaUserId.getUserId():null,r=t.TRC.pageManager&&"function"==typeof t.TRC.pageManager.getUserId?t.TRC.pageManager.getUserId():null,a=TRC.cdsPips.tryToReadUserIdFromLocalStorage();return e||r||a},sendFinalReq:function n(e,r){var a="".concat(this.getHttpsPrefix(),"cds.taboola.com?uid=").concat(this.userId),s;(null!==e[0]&&(a+="&uad=".concat(e[0])),e[1]&&(e[1].platform&&(a+="&ptf=".concat(t.btoa(e[1].platform)),e[1].platformVersion&&(a+="&ptfv=".concat(t.btoa(e[1].platformVersion)))),e[1].model&&(a+="&mdl=".concat(t.btoa(e[1].model))),e[1].uaFullVersion&&(a+="&ufv=".concat(t.btoa(e[1].uaFullVersion))),e[1].brands&&(a+=this.parseFullVersionList(e[1].brands)),"mobile"in e[1]&&(a+="&mbl=".concat(t.btoa(e[1].mobile)))),(a+=u(r))!=="".concat(this.getHttpsPrefix(),"cds.taboola.com?uid=").concat(this.userId))&&this.prepareGenericRequest("GET",a).send()},parseFullVersionList:function n(e){for(var r="",a=0;a<e.length;a++)r+="&bnd=".concat(t.btoa(e[a].brand),"&bndv=").concat(t.btoa(e[a].version));return r},sendSimpleReq:function t(n){var e="".concat(this.getHttpsPrefix(),"cds.taboola.com?uid=").concat(this.userId).concat(u(n)),r;this.prepareGenericRequest("GET",e).send()},fetchUserAgentData:function n(){return new Promise(function(n){try{navigator&&navigator.userAgentData&&navigator.userAgentData.getHighEntropyValues?navigator.userAgentData.getHighEntropyValues(r.map(function(n){return t.atob(n)})).then(function(e){var r={};a.forEach(function(n){var a=t.atob(n);a in e&&(r[a]=e[a])}),Object.keys(r).length>0?n(r):n(null)}):n(null)}catch(t){n(null)}})},sendUadRequest:function n(){var r=this;return new Promise(function(n,a){if(r.safeGetTfaConfig("cds:send-uad-req",!1)||r.safeGetRboxConfig("cds:send-uad")){var s=r.prepareGenericRequest("GET",t.atob(e));s.onreadystatechange=function(){if(4===this.readyState)if(200===this.status){var t=s.responseText;t?n("NULL"!==t?t:null):(__trcWarn("cds: error in pips - status ".concat(this.status,", return null")),n(null))}else __trcWarn("cds: error in pips - status ".concat(this.status,", return null")),n(null)},s.timeout=3e4,s.responseType="text",s.ontimeout=function(){__trcWarn("cds: error in pips - timeout"),n(null)},s.send()}else n(null)})},init:function n(){var e=this,r,a=i().get(s);t.TRC.cdsPips.cdsInitialized||(t.Promise?(t.__trcWarn=t.__trcWarn||function t(){},this.userId=this.getUserId(),this.userId&&Promise.all([this.sendUadRequest(),this.fetchUserAgentData()]).then(function(t){return e.sendFinalReq(t,a)},function(){return e.sendSimpleReq(a)}),t.TRC.cdsPips.cdsInitialized=!0):t.TRC.cdsPips.cdsInitialized=!0)}},window._trcIsUTactive&&(t.TRC.cdsPips.unitestsHelpers={parseQueryParams:i}),t.TRC.cdsPips.init()}catch(t){__trcError("Error running cds",t)}}(window);
+1
View File
@@ -0,0 +1 @@
!function(i){var t={};function c(n){var e;return(t[n]||(e=t[n]={i:n,l:!1,exports:{}},i[n].call(e.exports,e,e.exports,c),e.l=!0,e)).exports}c.m=i,c.c=t,c.d=function(n,e,i){c.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:i})},c.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"u",{value:!0})},c.t=function(e,n){if(1&n&&(e=c(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.u)return e;var i=Object.create(null);if(c.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var t in e)c.d(i,t,function(n){return e[n]}.bind(null,t));return i},c.n=function(n){var e=n&&n.u?function(){return n.default}:function(){return n};return c.d(e,"a",e),e},c.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},c.p="",c(c.s=2)}([function(n,e){var i,t,c={};c.LIST={DERIVED_EPIK:{chance:100,uri:"pin-derived-epik"},SCRAPE_LISTENERS:{chance:100,uri:"pin-scrape-listeners"},SEND_LOGS:{chance:100,uri:"pin-log-errors"},CHECK_CSP:{chance:5,uri:"pin-check-csp"},DEDUPE_AEM_ELIGIBLE_ARRAY:{chance:100,uri:"pin-dedupe-aem-eligible-array"},CHECK_AUTO_UPGRADED:{chance:100,uri:"pin-check-auto-upgraded"},CHECK_DOCUMENT_COOKIE:{chance:0,uri:"pin-check-document-cookie"},SEND_TO_STAGING:{chance:0,uri:"pin-send-to-staging"},CHROME_TRIAL_EPIK_LOCALSTORAGE:{chance:100,uri:"pin-trial-epik-localstorage"},NO_CODE_CAPI_ENABLED:{chance:100,uri:"nocodecapi-enabled"},IAB_IOS_REFERRER_ENABLED:{chance:100,uri:"iab-ios-referrer-enabled"}};for([i,t]of Object.entries(c.LIST))"true"===new URLSearchParams(window.location.search).get(t.uri)&&(c.LIST[i].chance=100);c.isInRampPercentage=function(n){return 100*Math.random()<(n||0)},n.exports=c},function(n,e,i){let t=i(0);var c={},o="unknown";function a(n){n.version=o,100*Math.random()<(t.LIST.SEND_LOGS.chance||0)&&c._(n)}c.setVersion=function(n){o=n},c._=function(n){var e=new window.XMLHttpRequest;e.withCredentials=!1,e.onerror=function(){console.info("Error message failed to send")},e.open("POST","https://ct.pinterest.com/stats/",!1),e.setRequestHeader("Content-Type","application/json"),e.send(JSON.stringify(n))},c.error=function(n,e){var i={messageType:"ERROR",message:n,log:"[".concat(2<arguments.length&&void 0!==arguments[2]?arguments[2]:"Empty","]")};e.hasOwnProperty("stack")?i.log+="[".concat(e.stack,"]"):i.log+="[".concat(e.message,"]"),a(i)},c.info=function(n,e){a({messageType:"INFO",message:n,log:"[".concat(2<arguments.length&&void 0!==arguments[2]?arguments[2]:"Empty","][").concat(e,"]")})},n.exports=c},function(n,e,i){{var t=document,c=i(0);let n=i(1),e=i(3);(i=t.createElement("script")).async=!0,n.setVersion("e258cfd2"),c.isInRampPercentage(c.LIST.SEND_LOGS.chance)&&(i.onerror=function(){n.error("Failed to load ".concat("e258cfd2"),new Error("failed to load main.js"))}),c.isInRampPercentage(c.LIST.CHECK_CSP.chance)&&(document.onsecuritypolicyviolation=function(n){e.sendEventInfo(n)}),i.src="https://s.pinimg.com/ct/lib/main.e258cfd2.js",(c=t.getElementsByTagName("script")[0]).parentNode.insertBefore(i,c)}},function(n,e,i){var t={};let c=i(1);const o=/https?:\/\/s\.pinimg\.com\/ct\/lib\/main\.[0-9a-f]{8}\.js/g;t.sendEventInfo=function(e){if(e&&e.blockedURI&&"https://s.pinimg.com/ct/lib/main.e258cfd2.js"===e.blockedURI){let n="Directive: "+e.effectiveDirective+" Disposition: "+e.disposition+" Blocked URI: "+e.blockedURI;var i;e.originalPolicy?(i=t.v(e.originalPolicy))&&0<i.length?(n+=" main file(s) allowed: "+i.join(" "),c.info("csp violation main file(s) allowed - "+e.disposition,n)):c.info("csp violation no main file allowed - "+e.disposition,n):c.info("csp violation original policy not available",n)}},t.v=function(n){return n?n.match(o):null},n.exports=t}]);
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
window.goldlog=(window.goldlog||{});goldlog.Etag="EkCwIfpA7mMCAVvZmpQm0ol4";goldlog.stag=1;
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,2 @@
#J_xiaomi_dialog{padding-top:72px}#J_xiaomi_dialog .J_strong{overflow:visible!important}#J_xiaomi_dialog .J_strong .alime-question-list li{margin-left:0;padding-left:30px;font-size:12px;line-height:20px}#J_xiaomi_dialog .J_strong .alime-strong-header img{display:none;width:72px!important;height:72px;position:absolute;top:-72px;left:50%;transform:translateX(-50%);-ms-transform:translateX(-50%)}#J_xiaomi_dialog .J_weak{overflow:visible!important;position:relative}#J_xiaomi_dialog .J_weak img{width:48px!important;height:48px;position:absolute;top:-48px;left:50%;transform:translateX(-50%);-ms-transform:translateX(-50%)}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
.slick-list,.slick-slider,.slick-track{position:relative;display:block}.slick-loading .slick-slide,.slick-loading .slick-track{visibility:hidden}.slick-slider{box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-touch-callout:none;-khtml-user-select:none;-ms-touch-action:pan-y;touch-action:pan-y;-webkit-tap-highlight-color:transparent}.slick-list{overflow:hidden;margin:0;padding:0}.slick-list:focus{outline:0}.slick-list.dragging{cursor:pointer;cursor:hand}.slick-slider .slick-list,.slick-slider .slick-track{-ms-transform:translateZ(0);transform:translateZ(0)}.slick-track{top:0;left:0}.slick-track:after,.slick-track:before{display:table;content:""}.slick-track:after{clear:both}.slick-slide{display:none;float:left;height:100%;min-height:1px}[dir=rtl] .slick-slide{float:right}.slick-slide img{display:block}.slick-slide.slick-loading img{display:none}.slick-slide.dragging img{pointer-events:none}.slick-initialized .slick-slide{display:block}.slick-vertical .slick-slide{display:block;height:auto;border:1px solid transparent}.slick-arrow.slick-hidden{display:none}.slick-dots,.slick-next,.slick-prev{position:absolute;display:block;padding:0;z-index:99}.slick-dots li button:before,.slick-next:before,.slick-prev:before{font-family:slick;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.slick-next,.slick-prev{top:50%;-ms-transform:translateY(-50%);transform:translateY(-50%);cursor:pointer;border:none;outline:0;transition:all .4s ease-in-out;overflow:hidden}.slick-next-default,.slick-prev-default{font-size:0;line-height:0;width:30px;height:50px;color:transparent;background:rgba(0,0,0,.25)}.slick-next-default:focus,.slick-next-default:hover,.slick-prev-default:focus,.slick-prev-default:hover{color:transparent;outline:0;background:rgba(0,0,0,.5)}.slick-next-default:before,.slick-prev-default:before{content:" ";position:absolute;top:0;left:0;width:60px;height:50px;background:url(//ae01.alicdn.com/kf/H3a2170950d3848dd85531682a4dc5ef21.png) no-repeat}.slick-prev{left:0}[dir=rtl] .slick-prev{right:0;left:auto}.slick-next-default:before,[dir=rtl] .slick-prev-default:before{left:-30px}.slick-next{right:0}[dir=rtl] .slick-next{right:auto;left:0}.slick-prev-default.slick-outer{left:-40px}[dir=rtl] .slick-prev-default.slick-outer{right:-40px;left:auto}.slick-next-default.slick-outer{right:-40px}[dir=rtl] .slick-next-default.slick-outer{right:auto;left:-40px}.slick-next-default.slick-disabled,.slick-next-default.slick-disabled:hover,.slick-prev-default.slick-disabled,.slick-prev-default.slick-disabled:hover{background:rgba(0,0,0,.13);cursor:not-allowed}.slick-dotted.slick-slider{margin-bottom:30px}.slick-dots{bottom:0;width:100%;margin:0;list-style:none;text-align:center}.slick-dots li{position:relative;display:inline-block;margin:0 5px;padding:0}.slick-dots li,.slick-dots li button{width:20px;height:20px;cursor:pointer}.slick-dots li button{font-size:0;line-height:0;display:block;padding:5px;color:transparent;border:0;outline:0;background:0 0}.slick-dots li button:focus,.slick-dots li button:hover{outline:0}.slick-dots li button:before{content:" ";position:absolute;top:0;left:0;width:10px;height:10px;border-radius:50%;text-align:center;background:#fff}.slick-dots li.slick-active button:before{opacity:1;background:#ff4747}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+276
View File
@@ -0,0 +1,276 @@
/*
* Copyright 2017 SideeX committers
*
* 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.
*
*/
const originalPrompt = window.prompt
let nextPromptResult = false
let recordedPrompt = null
const originalConfirmation = window.confirm
let nextConfirmationResult = false
let recordedConfirmation = null
const originalAlert = window.alert
let recordedAlert = null
function getFrameLocation() {
let frameLocation = ''
let currentWindow = window
let currentParentWindow
while (currentWindow !== window.top) {
currentParentWindow = currentWindow.parent
for (let idx = 0; idx < currentParentWindow.frames.length; idx++)
if (currentParentWindow.frames[idx] === currentWindow) {
frameLocation = ':' + idx + frameLocation
currentWindow = currentParentWindow
break
}
}
frameLocation = 'root' + frameLocation
return frameLocation
}
//before record prompt
// Not a top window
if (window !== window.top) {
window.prompt = function(text, defaultText) {
if (document.body.hasAttribute('SideeXPlayingFlag')) {
return window.top.prompt(text, defaultText)
} else {
let result = originalPrompt(text, defaultText)
let frameLocation = getFrameLocation()
window.top.postMessage(
{
direction: 'from-page-script',
recordedType: 'prompt',
recordedMessage: text,
recordedResult: result,
frameLocation: frameLocation,
},
'*'
)
return result
}
}
window.confirm = function(text) {
if (document.body.hasAttribute('SideeXPlayingFlag')) {
return window.top.confirm(text)
} else {
let result = originalConfirmation(text)
let frameLocation = getFrameLocation()
window.top.postMessage(
{
direction: 'from-page-script',
recordedType: 'confirm',
recordedMessage: text,
recordedResult: result,
frameLocation: frameLocation,
},
'*'
)
return result
}
}
window.alert = function(text) {
if (document.body.hasAttribute('SideeXPlayingFlag')) {
recordedAlert = text
// Response directly
window.top.postMessage(
{
direction: 'from-page-script',
response: 'alert',
value: recordedAlert,
},
'*'
)
return
} else {
let result = originalAlert(text)
let frameLocation = getFrameLocation()
window.top.postMessage(
{
direction: 'from-page-script',
recordedType: 'alert',
recordedMessage: text,
recordedResult: result,
frameLocation: frameLocation,
},
'*'
)
return result
}
}
} else {
// top window
window.prompt = function(text, defaultText) {
recordedPrompt = text
if (document.body.hasAttribute('setPrompt')) {
document.body.removeAttribute('setPrompt')
return nextPromptResult
} else {
let result = originalPrompt(text, defaultText)
let frameLocation = getFrameLocation()
window.top.postMessage(
{
direction: 'from-page-script',
recordedType: 'prompt',
recordedMessage: text,
recordedResult: result,
frameLocation: frameLocation,
},
'*'
)
return result
}
}
window.confirm = function(text) {
recordedConfirmation = text
if (document.body.hasAttribute('setConfirm')) {
document.body.removeAttribute('setConfirm')
return nextConfirmationResult
} else {
let result = originalConfirmation(text)
let frameLocation = getFrameLocation()
window.top.postMessage(
{
direction: 'from-page-script',
recordedType: 'confirm',
recordedMessage: text,
recordedResult: result,
frameLocation: frameLocation,
},
'*'
)
return result
}
}
window.alert = function(text) {
recordedAlert = text
if (document.body.hasAttribute('SideeXPlayingFlag')) {
// Response directly
window.top.postMessage(
{
direction: 'from-page-script',
response: 'alert',
value: recordedAlert,
},
'*'
)
return
} else {
let result = originalAlert(text)
let frameLocation = getFrameLocation()
window.top.postMessage(
{
direction: 'from-page-script',
recordedType: 'alert',
recordedMessage: text,
recordedResult: result,
frameLocation: frameLocation,
},
'*'
)
return result
}
}
}
//play window methods
if (window == window.top) {
window.addEventListener('message', handler)
}
function handler(event) {
if (
event.source == window &&
event.data &&
event.data.direction == 'from-content-script'
) {
if (event.data.detach) {
window.removeEventListener('message', handler)
window.prompt = originalPrompt
window.confirm = originalConfirmation
window.alert = originalAlert
return
}
let result = undefined
switch (event.data.command) {
case 'setNextPromptResult':
nextPromptResult = event.data.target
document.body.setAttribute('setPrompt', true)
window.postMessage(
{
direction: 'from-page-script',
response: 'prompt',
},
'*'
)
break
case 'getPromptMessage':
result = recordedPrompt
recordedPrompt = null
window.postMessage(
{
direction: 'from-page-script',
response: 'prompt',
value: result,
},
'*'
)
break
case 'setNextConfirmationResult':
nextConfirmationResult = event.data.target
document.body.setAttribute('setConfirm', true)
window.postMessage(
{
direction: 'from-page-script',
response: 'confirm',
},
'*'
)
break
case 'getConfirmationMessage':
result = recordedConfirmation
recordedConfirmation = null
try {
window.postMessage(
{
direction: 'from-page-script',
response: 'confirm',
value: result,
},
'*'
)
} catch (e) {} // eslint-disable-line no-empty
break
case 'setNextAlertResult':
document.body.setAttribute('setAlert', true)
window.postMessage(
{
direction: 'from-page-script',
response: 'alert',
},
'*'
)
break
}
}
}
@@ -0,0 +1 @@
(window["webpackJsonp-ae-fe/cosmos-1"]=window["webpackJsonp-ae-fe/cosmos-1"]||[]).push([[38],{1245:function(e,r,n){"use strict";n.r(r);var t=n(36),o=n(7);r.default=function(){var e,r,n=function(e){return e.replace(/</g,"&lt;").replace(/"/g,"&quot;")},i=n(window.location.search),a=function(){if(!document.referrer)return"";try{return new URL(document.referrer).host}catch(e){console.error(e)}return""}();if(/isdl=y/.test(i)||/aff_short_key=/.test(i)||/(google|bing|yahoo|yandex|baidu|naver|msn|rambler)/.test(null==a?void 0:a.toLowerCase())){var c,d=window.location.href,s=encodeURIComponent(n(d.substring(0,Math.min(1e3,d.indexOf("?"))))),l=[];a&&l.push("__referer__="+a),window.dmtrack_pageid&&l.push("__page_id__="+window.dmtrack_pageid),s&&l.push("current_url="+s),e="//s.click.aliexpress.com/direct_landing.htm"+(c=i?i+"&":"?")+l.join("&"),(r=document.createElement("img")).src=e,r.alt="affiliate",r.style.display="none",document.body.appendChild(r),r.addEventListener("load",(function(){document.body.removeChild(r)})),function(e){t.a.request({api:"mtop.aliexpress.traffic.web.direct.landing.click.report",v:"1.0",type:"GET",data:{browserId:o.a.get("xman_us_f","acs_rt"),currentUrl:e}})}("//s.click.aliexpress.com/direct_landing.htm"+c+l.join("&"))}}}}]);
Binary file not shown.

After

Width:  |  Height:  |  Size: 43 B

File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
(window["webpackJsonp-ae-fe/cosmos-1"]=window["webpackJsonp-ae-fe/cosmos-1"]||[]).push([[43],{1259:function(e,t,n){"use strict";n.r(t);var r=n(170),o=n(4),i=n.n(o),a=n(17),c=n.n(a),u=n(38),l=n.n(u),s=n(81),f=n.n(s),d=n(83),m=n.n(d),v=n(506);function p(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 b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var y=function(e,t){return l.a.createElement(v.a,b(b({},e),{},{ref:t}))},w=Object(u.forwardRef)(y),O=(n(299),n(624),n(169)),j=n(625),h=n.n(j),g=n(172),S=n(108),A=["data","className","columnNum","onVisible","autoSize"];var C=function(e){var t=e.data,n=e.className,r=e.columnNum,o=e.onVisible,a=(e.autoSize,c()(e,A)),s=Object(u.useRef)({}),d=Object(u.useContext)(S.a),m=d.infinite,v=d.scene,p=Object(u.useState)(""),b=p[0],y=p[1],j=null==t?void 0:t.some((function(e){return"pc_new_card"===e.itemCardType||"app_us_local_card"===e.itemCardType})),C=Object(g.a)(r||6,j),E=C.column,_=C.ref;Object(u.useEffect)((function(){if(_.current){var e=_.current.querySelector(".slick-slide");e&&setTimeout((function(){y((null==e?void 0:e.offsetWidth)<=269?h.a.miniCardContainerBtm:"")}))}}),[t,E]);var T=function(e){s.current[e.productId]||null==o||o(e,{isLoadMore:e.index===t.length-1}),s.current[e.productId]=!0};return l.a.createElement("div",{ref:_,"data-spm":v},(null==t?void 0:t.length)>0&&l.a.createElement(w,{className:f()(h.a.container,n,j?h.a.containerBtm:"",b),infinite:void 0===m||m,lazyLoad:"ondemand",slidesToScroll:E,slidesToShow:E},null==t?void 0:t.filter((function(e){return"rmdproductV3"===e.itemType||"productV3"===e.itemType})).map((function(e,t){return l.a.createElement("div",{key:e.productId,className:h.a.cardContainer},l.a.createElement(O.a,i()({className:f()(h.a.card,"slider-card-item"),show:!0,openHover:!e.rainbow,slider:j,data:e,index:t,onVisible:T},a)))}))))},E=Object(r.a)(C);t.default=E},172:function(e,t,n){"use strict";var r=n(5),o=n(38),i=function(){var e;return!r.isSSR&&"function"==typeof(null===(e=window)||void 0===e?void 0:e.requestAnimationFrame)};var a=function(e){var t,n=!0;return Object(o.useCallback)((function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];var c=function(e,n){return i()?(window.cancelAnimationFrame(t),window.requestAnimationFrame(e)):setTimeout(e,n)};n&&(n=!1,t=c((function(){n=!0,e.apply(void 0,o)}),66))}),[])};function c(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var l=r.isSSR?o.useEffect:o.useLayoutEffect;t.a=function(e,t){void 0===t&&(t=!1);var n=Object(o.useRef)(null),r=Object(o.useState)(e),i=r[0],u=r[1],s=a((function(e){var t,n=null==e||null===(t=e.contentRect)||void 0===t?void 0:t.width;n&&u(n>1150?6:5)}));return l((function(){if(t){if(!n.current)return null;if(!window.ResizeObserver)return null;var e=new ResizeObserver((function(e){for(var t,n=c(e);!(t=n()).done;){var r=t.value;s(r)}}));return e.observe(n.current),function(){return e.disconnect()}}return function(){}})),{ref:n,column:i}}},299:function(e,t,n){},624:function(e,t,n){},625:function(e,t,n){e.exports={containerBtm:"_1mKg7",container:"_2vJwD",cardContainer:"_3D2WI",card:"_3uAF4",miniCardContainerBtm:"_1XWjs"}}}]);
File diff suppressed because one or more lines are too long
@@ -0,0 +1,448 @@
<!DOCTYPE html>
<html><head>
<meta http-equiv="content-type" content="text/html; charset=windows-1252">
<script>
(function () {
var JSON;
return (
JSON || (JSON = {}),
(function () {
'use strict';
function f(e) {
return e < 10 ? '0' + e : e;
}
function quote(e) {
return (
(escapable.lastIndex = 0),
escapable.test(e)
? '"' +
e.replace(escapable, function (e) {
var t = meta[e];
return typeof t == 'string'
? t
: '\\u' + ('0000' + e.charCodeAt(0).toString(16)).slice(-4);
}) +
'"'
: '"' + e + '"'
);
}
function str(e, t) {
var n,
r,
i,
s,
o = gap,
u,
a = t[e];
a && typeof a == 'object' && typeof a.toJSON == 'function' && (a = a.toJSON(e)),
typeof rep == 'function' && (a = rep.call(t, e, a));
switch (typeof a) {
case 'string':
return quote(a);
case 'number':
return isFinite(a) ? String(a) : 'null';
case 'boolean':
case 'null':
return String(a);
case 'object':
if (!a) return 'null';
(gap += indent), (u = []);
if (Object.prototype.toString.apply(a) === '[object Array]') {
s = a.length;
for (n = 0; n < s; n += 1) u[n] = str(n, a) || 'null';
return (
(i =
u.length === 0
? '[]'
: gap
? '[\n' + gap + u.join(',\n' + gap) + '\n' + o + ']'
: '[' + u.join(',') + ']'),
(gap = o),
i
);
}
if (rep && typeof rep == 'object') {
s = rep.length;
for (n = 0; n < s; n += 1)
typeof rep[n] == 'string' &&
((r = rep[n]),
(i = str(r, a)),
i && u.push(quote(r) + (gap ? ': ' : ':') + i));
} else
for (r in a)
Object.prototype.hasOwnProperty.call(a, r) &&
((i = str(r, a)), i && u.push(quote(r) + (gap ? ': ' : ':') + i));
return (
(i =
u.length === 0
? '{}'
: gap
? '{\n' + gap + u.join(',\n' + gap) + '\n' + o + '}'
: '{' + u.join(',') + '}'),
(gap = o),
i
);
}
}
typeof Date.prototype.toJSON != 'function' &&
((Date.prototype.toJSON = function (e) {
return isFinite(this.valueOf())
? this.getUTCFullYear() +
'-' +
f(this.getUTCMonth() + 1) +
'-' +
f(this.getUTCDate()) +
'T' +
f(this.getUTCHours()) +
':' +
f(this.getUTCMinutes()) +
':' +
f(this.getUTCSeconds()) +
'Z'
: null;
}),
(String.prototype.toJSON =
Number.prototype.toJSON =
Boolean.prototype.toJSON =
function (e) {
return this.valueOf();
}));
var cx =
/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
escapable =
/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
gap,
indent,
meta = {
'\b': '\\b',
'\t': '\\t',
'\n': '\\n',
'\f': '\\f',
'\r': '\\r',
'"': '\\"',
'\\': '\\\\',
},
rep;
typeof JSON.stringify != 'function' &&
(JSON.stringify = function (e, t, n) {
var r;
(gap = ''), (indent = '');
if (typeof n == 'number') for (r = 0; r < n; r += 1) indent += ' ';
else typeof n == 'string' && (indent = n);
rep = t;
if (
!t ||
typeof t == 'function' ||
(typeof t == 'object' && typeof t.length == 'number')
)
return str('', { '': e });
throw new Error('JSON.stringify');
}),
typeof JSON.parse != 'function' &&
(JSON.parse = function (text, reviver) {
function walk(e, t) {
var n,
r,
i = e[t];
if (i && typeof i == 'object')
for (n in i)
Object.prototype.hasOwnProperty.call(i, n) &&
((r = walk(i, n)), r !== undefined ? (i[n] = r) : delete i[n]);
return reviver.call(e, t, i);
}
var j;
(text = String(text)),
(cx.lastIndex = 0),
cx.test(text) &&
(text = text.replace(cx, function (e) {
return '\\u' + ('0000' + e.charCodeAt(0).toString(16)).slice(-4);
}));
if (
/^[\],:{}\s]*$/.test(
text
.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, '@')
.replace(
/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
']',
)
.replace(/(?:^|:|,)(?:\s*\[)+/g, ''),
)
)
return (
(j = eval('(' + text + ')')),
typeof reviver == 'function' ? walk({ '': j }, '') : j
);
throw new SyntaxError('JSON.parse');
});
})(),
(this.JSON = JSON)
);
})();
(function () {
function a() {
try {
return i in n && n[i];
} catch (e) {
return !1;
}
}
function f() {
try {
return s in n && n[s] && n[s][n.location.hostname];
} catch (e) {
return !1;
}
}
var e = {},
n = window,
r = n.document,
i = 'localStorage',
s = 'globalStorage',
o = '__storejs__',
u;
(e.disabled = !1),
(e.set = function (e, t) {}),
(e.get = function (e) {}),
(e.remove = function (e) {}),
(e.clear = function () {}),
(e.transact = function (t, n, r) {
var i = e.get(t);
r == null && ((r = n), (n = null)),
typeof i == 'undefined' && (i = n || {}),
r(i),
e.set(t, i);
}),
(e.getAll = function () {}),
(e.serialize = function (e) {
return JSON.stringify(e);
}),
(e.deserialize = function (e) {
if (typeof e != 'string') return undefined;
try {
return JSON.parse(e);
} catch (t) {
return e || undefined;
}
});
if (a())
(u = n[i]),
(e.set = function (t, n) {
return n === undefined ? e.remove(t) : (u.setItem(t, e.serialize(n)), n);
}),
(e.get = function (t) {
return e.deserialize(u.getItem(t));
}),
(e.remove = function (e) {
u.removeItem(e);
}),
(e.clear = function () {
u.clear();
}),
(e.getAll = function () {
var t = {};
for (var n = 0; n < u.length; ++n) {
var r = u.key(n);
t[r] = e.get(r);
}
return t;
});
else if (f())
(u = n[s][n.location.hostname]),
(e.set = function (t, n) {
return n === undefined ? e.remove(t) : ((u[t] = e.serialize(n)), n);
}),
(e.get = function (t) {
return e.deserialize(u[t] && u[t].value);
}),
(e.remove = function (e) {
delete u[e];
}),
(e.clear = function () {
for (var e in u) delete u[e];
}),
(e.getAll = function () {
var t = {};
for (var n = 0; n < u.length; ++n) {
var r = u.key(n);
t[r] = e.get(r);
}
return t;
});
else if (r.documentElement.addBehavior) {
var l, c;
try {
(c = new ActiveXObject('htmlfile')),
c.open(),
c.write(
'<sc' + 'ript>document.w=window</scr' + 'ipt><iframe src="/favicon.ico"></frame>',
),
c.close(),
(l = c.w.frames[0].document),
(u = l.createElement('div'));
} catch (h) {
(u = r.createElement('div')), (l = r.body);
}
function p(t) {
return function () {
var n = Array.prototype.slice.call(arguments, 0);
n.unshift(u), l.appendChild(u), u.addBehavior('#default#userData'), u.load(i);
var r = t.apply(e, n);
return l.removeChild(u), r;
};
}
var d = new RegExp('[!"#$%&\'()*+,/\\\\:;<=>?@[\\]^`{|}~]', 'g');
function v(e) {
return e.replace(d, '___');
}
(e.set = p(function (t, n, r) {
return (
(n = v(n)),
r === undefined ? e.remove(n) : (t.setAttribute(n, e.serialize(r)), t.save(i), r)
);
})),
(e.get = p(function (t, n) {
return (n = v(n)), e.deserialize(t.getAttribute(n));
})),
(e.remove = p(function (e, t) {
(t = v(t)), e.removeAttribute(t), e.save(i);
})),
(e.clear = p(function (e) {
var t = e.XMLDocument.documentElement.attributes;
e.load(i);
for (var n = 0, r; (r = t[n]); n++) e.removeAttribute(r.name);
e.save(i);
})),
(e.getAll = p(function (t) {
var n = t.XMLDocument.documentElement.attributes;
t.load(i);
var r = {};
for (var s = 0, o; (o = n[s]); ++s) r[o] = e.get(o);
return r;
}));
}
try {
e.set(o, o), e.get(o) != o && (e.disabled = !0), e.remove(o);
} catch (h) {
e.disabled = !0;
}
(e.enabled = !e.disabled),
typeof t != 'undefined' && typeof t != 'function'
? (t.exports = e)
: typeof define == 'function' && define.amd
? define(e)
: (this.store = e);
})();
var Messenger = (function () {
function n(e, t) {
var n = '';
arguments.length < 2
? (n = 'target error - target and name are both required')
: typeof e != 'object'
? (n = 'target error - target itself must be window object')
: typeof t != 'string' && (n = 'target error - target name must be string type');
if (n) throw new Error(n);
(this.target = e), (this.name = t);
}
function r(t, n) {
(this.targets = {}),
(this.name = t),
(this.listenFunc = []),
(e = n || e),
this.initListen();
}
var e = 'icbu-messenger',
t = 'postMessage' in window;
return (
t
? (n.prototype.send = function (t) {
this.target.postMessage(e + t, '*');
})
: (n.prototype.send = function (t) {
var n = window.navigator[e + this.name];
if (typeof n != 'function')
throw new Error('target callback function is not defined');
n(e + t, window);
}),
(r.prototype.addTarget = function (e, t) {
var r = new n(e, t);
this.targets[t] = r;
}),
(r.prototype.initListen = function () {
var n = this,
r = function (t) {
typeof t == 'object' && t.data && (t = t.data),
(t = t.slice ? t.slice(e.length) : t);
for (var r = 0; r < n.listenFunc.length; r++) n.listenFunc[r](t);
};
t
? 'addEventListener' in document
? window.addEventListener('message', r, !1)
: 'attachEvent' in document && window.attachEvent('onmessage', r)
: (window.navigator[e + this.name] = r);
}),
(r.prototype.listen = r.prototype.on =
function (e) {
this.listenFunc.push(e);
}),
(r.prototype.clear = function () {
this.listenFunc = [];
}),
(r.prototype.send = function (e) {
var t = this.targets,
n;
for (n in t) t.hasOwnProperty(n) && t[n].send(e);
}),
r
);
})();
(function () {
var messenger = new Messenger('proxy', 'store-proxy');
messenger.addTarget(window.parent, 'parent');
var spe2c = '-_-';
var spe2p = 'T_T';
messenger.listen(function (msg) {
if (!msg.split) {
return;
}
var tmp = msg.split(spe2c);
var op = tmp[0];
var key, value;
if (op === 'set') {
key = tmp[1];
value = tmp.splice(2, tmp.length - 2).join(spe2c);
} else {
key = tmp[1];
}
var rst, err;
try {
switch (op) {
case 'set':
store.set(key, value);
break;
case 'get':
rst = store.get(key);
break;
case 'remove':
store.remove(key);
break;
}
} catch (e) {
err = e.message;
}
messenger.targets['parent'].send([msg, err, rst].join(spe2p));
});
})();
</script>
<script src="prompt.js"></script></head>
<body>
</body></html>
File diff suppressed because one or more lines are too long