/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/wall_sdk@0.2.7/dist/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
var __awaiter=this&&this.__awaiter||function(e,n,t,r){return new(t||(t=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,l)}u((r=r.apply(e,n||[])).next())}))},__generator=this&&this.__generator||function(e,n){var t,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=n.call(e,a)}catch(e){i=[6,e],r=0}finally{t=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}};import Application from"./core/wall";import TryCatch from"./integrations/trycatch";import Behavior from"./integrations/behavior";import Resources from"./integrations/resources";import ListNode from"./util/linknode";import Xhr from"./integrations/xhr";import{auxiliaryInfo,frequency}from"./middle";import*as localForage from"localforage";import{debugLogger}from"./util";var wall=Application(),listnode=new ListNode;wall.use(auxiliaryInfo),wall.use(frequency),wall.use((function(e,n){debugLogger(e),n()})),wall.use((function(e,n){return __awaiter(void 0,void 0,void 0,(function(){var t,r;return __generator(this,(function(o){return e.options.isTest?n():(t=listnode.getFiveNodeKeys(),r=t.reduce((function(e,n){return e.push(localForage.getItem(n)),e}),[]),Promise.all(r).then((function(n){return new Promise((function(t,r){wall.options.origin;var o=new Image;o.onload=function(){t(n)},o.onerror=function(e){r(e)},o.src=e.options.origin+"/data.gif?d="+encodeURIComponent(JSON.stringify(e))}))})).then((function(e){n()})).catch((function(e){}))),[2]}))}))})),wall.listen([new TryCatch(wall),new Xhr(wall),new Behavior(wall),new Resources(wall)]),window.WALL=wall;export default wall;
//# sourceMappingURL=/sm/0643493b313670b768c95d311744143f3d553f50204fd86c208aa81315795681.map