UNPKG

online-sales-sdk

Version:

OnlineSales.ai Web Tag SDK 封装,适用于 Vue/React 项目,纯JS实现

1 lines 220 kB
!function(){"use strict";function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function t(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(t=function(){return!!e})()}function r(e,t){if(e!==t)throw new TypeError("Cannot instantiate an arrow function")}function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],u=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t);else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||a(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||a(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(t,r){if(t){if("string"==typeof t)return e(t,r);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e(t,r):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function u(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function l(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function a(e){u(o,n,i,a,s,"next",e)}function s(e){u(o,n,i,a,s,"throw",e)}a(void 0)})}}function c(e,t,r){return t=v(t),function(e,t){if(t&&("object"==o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,g()?Reflect.construct(t,r||[],v(e).constructor):t.apply(e,r))}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,S(n.key),n)}}function p(e,t,r){return t&&f(e.prototype,t),r&&f(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function h(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=C(e))||t){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function y(e,t,r){return(t=S(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&E(e,t)}function g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(g=function(){return!!e})()}function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach(function(t){y(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function w(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function k(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function o(r,n,i,o){var u=n&&n.prototype instanceof s?n:s,l=Object.create(u.prototype);return T(l,"_invoke",function(r,n,i){var o,s,u,l=0,c=i||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return o=t,s=0,u=e,f.n=r,a}};function p(r,n){for(s=r,u=n,t=0;!d&&l&&!i&&t<c.length;t++){var i,o=c[t],p=f.p,h=o[2];r>3?(i=h===n)&&(u=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=p&&((i=r<2&&p<o[1])?(s=0,f.v=n,f.n=o[1]):p<h&&(i=r<3||o[0]>n||n>h)&&(o[4]=r,o[5]=n,f.n=h,s=0))}if(i||r>1)return a;throw d=!0,n}return function(i,c,h){if(l>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,h),s=c,u=h;(t=s<2?e:u)||!d;){o||(s?s<3?(s>1&&(f.n=-1),p(s,u)):f.n=u:f.v=u);try{if(l=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(d=f.n<0)?u:r.call(n,f))!==a)break}catch(t){o=e,s=1,u=t}finally{l=1}}return{value:t,done:d}}}(r,i,o),!0),l}var a={};function s(){}function u(){}function l(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(T(t={},n,function(){return this}),t),d=l.prototype=s.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,T(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return u.prototype=l,T(d,"constructor",l),T(l,"constructor",u),u.displayName="GeneratorFunction",T(l,i,"GeneratorFunction"),T(d),T(d,i,"Generator"),T(d,n,function(){return this}),T(d,"toString",function(){return"[object Generator]"}),(k=function(){return{w:o,m:f}})()}function T(e,t,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}T=function(e,t,r,n){if(t)i?i(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r;else{var o=function(t,r){T(e,t,function(e){return this._invoke(t,r,e)})};o("next",0),o("throw",1),o("return",2)}},T(e,t,r,n)}function E(e,t){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},E(e,t)}function P(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],u=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||C(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||C(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}function O(e){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(e)}function C(e,t){if(e){if("string"==typeof e)return s(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}function x(e){var t="function"==typeof Map?new Map:void 0;return x=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return function(e,t,r){if(g())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var i=new(e.bind.apply(e,n));return r&&E(i,r.prototype),i}(e,arguments,v(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),E(r,e)},x(e)}var D,R,I,L,j,M,U,N,V,q,H,W,K,B,z,X,F,G,Q,Y,$,Z,J,ee,te,re,ne,ie,oe,ae,se,ue,le,ce,de,fe,pe,he,ye,ve,me,ge,be,_e,we,ke,Te,Ee,Pe,Ae,Se,Oe,Ce,xe,De,Re,Ie,Le,je,Me,Ue,Ne,Ve,qe,He,We,Ke,Be,ze,Xe,Fe,Ge,Qe,Ye,$e,Ze,Je,et,tt,rt,nt,it,ot,at,st,ut,lt,ct,dt,ft,pt,ht,yt,vt,mt,gt,bt,_t,wt,kt,Tt,Et,Pt,At,St,Ot,Ct,xt,Dt,Rt,It,Lt,jt,Mt,Ut,Nt,Vt,qt,Ht,Wt,Kt,Bt,zt,Xt,Ft,Gt,Qt,Yt,$t,Zt,Jt,er,tr,rr,nr,ir,or,ar,sr,ur,lr,cr,dr,fr,pr,hr,yr,vr,mr,gr,br,_r,wr,kr,Tr=function(e){function t(e){var r;return d(this,t),(r=c(this,t,[e])).name="ConfigurationError",r}return m(t,e),p(t)}(x(Error)),Er=function(e){function t(e){var r;return d(this,t),(r=c(this,t,[e])).name="RegistryError",r}return m(t,e),p(t)}(x(Error)),Pr=function(e){function t(e){var r;return d(this,t),(r=c(this,t,[e])).name="MethodNotImplementedError",r}return m(t,e),p(t)}(x(Error)),Ar=function(e){function t(e){var r;return d(this,t),(r=c(this,t,[e])).name="InvalidParameters",r}return m(t,e),p(t)}(x(Error)),Sr=function(){return p(function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"[OSMOS SDK] [{type}]";d(this,e),this.debugMode=t,this.prefix=r},[{key:"setDebugMode",value:function(e){this.debugMode=e}},{key:"log",value:function(){if(this.debugMode){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];(e=console).log.apply(e,[this.prefix.replace("{type}","LOG")].concat(r))}}},{key:"error",value:function(){if(this.debugMode){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];(e=console).log.apply(e,[this.prefix.replace("{type}","ERROR")].concat(r))}}},{key:"warn",value:function(){if(this.debugMode){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];(e=console).log.apply(e,[this.prefix.replace("{type}","WARN")].concat(r))}}},{key:"info",value:function(){if(this.debugMode){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];(e=console).log.apply(e,[this.prefix.replace("{type}","INFO")].concat(r))}}}])}(),Or=new Sr(!1),Cr=function(e){if("undefined"==typeof window||!window.location)return"";e=e.replace(/[\\[]/,"\\[").replace(/[\]]/,"\\]");var t=new RegExp("[\\?&]".concat(e,"=([^&#]*)")).exec(window.location.search);return null===t?"":decodeURIComponent(t[1].replace(/\+/g," "))},xr=function(e){var t={};if(e&&Object.keys(e)){var r=function(){var e={};if("undefined"==typeof window||!window.location)return e;if(window.location.search)for(var t=window.location.search.substring(1).split("&"),r=0;r<t.length;r++){var n=t[r].split("=");n.length>1&&(e[n[0]]=Cr(n[0]))}return e}();Object.keys(e).forEach(function(n){var i,o,a,s;n&&e[n]&&null!=r&&r[null==e||null===(i=e[n])||void 0===i?void 0:i.params]&&(null!==(o=e[n])&&void 0!==o&&o.isArray?t[n]=[r[null===(a=e[n])||void 0===a?void 0:a.params]]:t[n]=r[null===(s=e[n])||void 0===s?void 0:s.params])})}return t},Dr=function(e){var t={};if("undefined"==typeof window||!window.location)return t;if(e&&Object.keys(e)){var r=window.location.pathname;Object.keys(e).forEach(function(n){var i=e[n];if(n&&i&&null!=i&&i.regxString){var o=new RegExp(null==i?void 0:i.regxString),a=r.match(o);a&&Array.isArray(a)&&(null!=i&&i.isArray?t[n]=[a[(null==i?void 0:i.matchIndex)||1]]:t[n]=a[(null==i?void 0:i.matchIndex)||1])}})}return t},Rr=function(e){return new Promise(function(t){setTimeout(t,e)})},Ir=function(e){return e&&"object"===O(e)&&!Array.isArray(e)},Lr=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(!r.length)return e;for(var i=new WeakSet,o=function(e,t){if(i.has(t))return Or.warn("Circular reference detected in mergeDeep, skipping object"),e;if(Ir(e)&&Ir(t)){for(var r in i.add(t),t)Ir(t[r])?(e[r]||Object.assign(e,y({},r,{})),t[r]!==e&&t[r]!==e[r]&&o(e[r],t[r])):Object.assign(e,y({},r,t[r]));i.delete(t)}return e},a=0,s=r;a<s.length;a++){var u=s[a];u&&o(e,u)}return e},jr=function(){return Math.floor(1e6*Math.random())},Mr=function(e){return"function"==typeof e?e():"object"===O(e)&&null!==e?e:{}},Ur=function(e){return Array.isArray(e)?e.map(Ur).filter(function(e){return void 0!==e}):e&&"object"===O(e)?Object.entries(e).map(function(e){var t=P(e,2),r=t[0],n=t[1];return[r,Ur(n)]}).filter(function(e){return void 0!==P(e,2)[1]}).reduce(function(e,t){var r=P(t,2),n=r[0],i=r[1];return e[n]=i,e},{}):void 0===e?void 0:e},Nr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Vr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function qr(){if(R)return D;return R=1,D=function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}}function Hr(){if(L)return I;L=1;var e="object"==o(Nr)&&Nr&&Nr.Object===Object&&Nr;return I=e}function Wr(){if(M)return j;M=1;var e=Hr(),t="object"==("undefined"==typeof self?"undefined":o(self))&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return j=r}function Kr(){if(N)return U;N=1;var e=Wr().Symbol;return U=e}function Br(){if(B)return K;B=1;var e=Kr(),t=function(){if(q)return V;q=1;var e=Kr(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;return V=function(e){var t=r.call(e,i),o=e[i];try{e[i]=void 0;var a=!0}catch(e){}var s=n.call(e);return a&&(t?e[i]=o:delete e[i]),s}}(),r=function(){if(W)return H;W=1;var e=Object.prototype.toString;return H=function(t){return e.call(t)}}(),n=e?e.toStringTag:void 0;return K=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":n&&n in Object(e)?t(e):r(e)}}function zr(){if(X)return z;return X=1,z=function(e){return null!=e&&"object"==o(e)}}function Xr(){if(Y)return Q;Y=1;var e=function(){if(G)return F;G=1;var e=Br(),t=zr();return F=function(r){return t(r)&&"[object Arguments]"==e(r)}}(),t=zr(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,o=e(function(){return arguments}())?e:function(e){return t(e)&&n.call(e,"callee")&&!i.call(e,"callee")};return Q=o}function Fr(){if(Z)return $;Z=1;var e=Array.isArray;return $=e}function Gr(){if(re)return te;re=1;var e=qr(),t=function(){if(ee)return J;ee=1;var e=Kr(),t=Xr(),r=Fr(),n=e?e.isConcatSpreadable:void 0;return J=function(e){return r(e)||t(e)||!!(n&&e&&e[n])}}();return te=function r(n,i,o,a,s){var u=-1,l=n.length;for(o||(o=t),s||(s=[]);++u<l;){var c=n[u];i>0&&o(c)?i>1?r(c,i-1,o,a,s):e(s,c):a||(s[s.length]=c)}return s},te}function Qr(){if(ie)return ne;return ie=1,ne=function(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}}function Yr(){if(ae)return oe;ae=1;var e=Br(),t=zr();return oe=function(r){return"symbol"==o(r)||t(r)&&"[object Symbol]"==e(r)}}function $r(){if(ue)return se;ue=1;var e=Fr(),t=Yr(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;return se=function(i,a){if(e(i))return!1;var s=o(i);return!("number"!=s&&"symbol"!=s&&"boolean"!=s&&null!=i&&!t(i))||(n.test(i)||!r.test(i)||null!=a&&i in Object(a))}}function Zr(){if(ce)return le;return ce=1,le=function(e){var t=o(e);return null!=e&&("object"==t||"function"==t)}}function Jr(){if(fe)return de;fe=1;var e=Br(),t=Zr();return de=function(r){if(!t(r))return!1;var n=e(r);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}}function en(){if(ve)return ye;ve=1;var e,t=function(){if(he)return pe;he=1;var e=Wr()["__core-js_shared__"];return pe=e}(),r=(e=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"";return ye=function(e){return!!r&&r in e}}function tn(){if(ge)return me;ge=1;var e=Function.prototype.toString;return me=function(t){if(null!=t){try{return e.call(t)}catch(e){}try{return t+""}catch(e){}}return""}}function rn(){if(Ee)return Te;Ee=1;var e=function(){if(_e)return be;_e=1;var e=Jr(),t=en(),r=Zr(),n=tn(),i=/^\[object .+?Constructor\]$/,o=Function.prototype,a=Object.prototype,s=o.toString,u=a.hasOwnProperty,l=RegExp("^"+s.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return be=function(o){return!(!r(o)||t(o))&&(e(o)?l:i).test(n(o))}}(),t=ke?we:(ke=1,we=function(e,t){return null==e?void 0:e[t]});return Te=function(r,n){var i=t(r,n);return e(i)?i:void 0}}function nn(){if(Ae)return Pe;Ae=1;var e=rn()(Object,"create");return Pe=e}function on(){if(Ne)return Ue;Ne=1;var e=function(){if(Oe)return Se;Oe=1;var e=nn();return Se=function(){this.__data__=e?e(null):{},this.size=0}}(),t=xe?Ce:(xe=1,Ce=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}),r=function(){if(Re)return De;Re=1;var e=nn(),t=Object.prototype.hasOwnProperty;return De=function(r){var n=this.__data__;if(e){var i=n[r];return"__lodash_hash_undefined__"===i?void 0:i}return t.call(n,r)?n[r]:void 0}}(),n=function(){if(Le)return Ie;Le=1;var e=nn(),t=Object.prototype.hasOwnProperty;return Ie=function(r){var n=this.__data__;return e?void 0!==n[r]:t.call(n,r)}}(),i=function(){if(Me)return je;Me=1;var e=nn();return je=function(t,r){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=e&&void 0===r?"__lodash_hash_undefined__":r,this}}();function o(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=r,o.prototype.has=n,o.prototype.set=i,Ue=o}function an(){if(We)return He;return We=1,He=function(e,t){return e===t||e!=e&&t!=t}}function sn(){if(Be)return Ke;Be=1;var e=an();return Ke=function(t,r){for(var n=t.length;n--;)if(e(t[n][0],r))return n;return-1}}function un(){if(et)return Je;et=1;var e=qe?Ve:(qe=1,Ve=function(){this.__data__=[],this.size=0}),t=function(){if(Xe)return ze;Xe=1;var e=sn(),t=Array.prototype.splice;return ze=function(r){var n=this.__data__,i=e(n,r);return!(i<0||(i==n.length-1?n.pop():t.call(n,i,1),--this.size,0))}}(),r=function(){if(Ge)return Fe;Ge=1;var e=sn();return Fe=function(t){var r=this.__data__,n=e(r,t);return n<0?void 0:r[n][1]}}(),n=function(){if(Ye)return Qe;Ye=1;var e=sn();return Qe=function(t){return e(this.__data__,t)>-1}}(),i=function(){if(Ze)return $e;Ze=1;var e=sn();return $e=function(t,r){var n=this.__data__,i=e(n,t);return i<0?(++this.size,n.push([t,r])):n[i][1]=r,this}}();function o(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=r,o.prototype.has=n,o.prototype.set=i,Je=o}function ln(){if(rt)return tt;rt=1;var e=rn()(Wr(),"Map");return tt=e}function cn(){if(ut)return st;ut=1;var e=at?ot:(at=1,ot=function(e){var t=o(e);return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e});return st=function(t,r){var n=t.__data__;return e(r)?n["string"==typeof r?"string":"hash"]:n.map}}function dn(){if(gt)return mt;gt=1;var e=function(){if(it)return nt;it=1;var e=on(),t=un(),r=ln();return nt=function(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}}(),t=function(){if(ct)return lt;ct=1;var e=cn();return lt=function(t){var r=e(this,t).delete(t);return this.size-=r?1:0,r}}(),r=function(){if(ft)return dt;ft=1;var e=cn();return dt=function(t){return e(this,t).get(t)}}(),n=function(){if(ht)return pt;ht=1;var e=cn();return pt=function(t){return e(this,t).has(t)}}(),i=function(){if(vt)return yt;vt=1;var e=cn();return yt=function(t,r){var n=e(this,t),i=n.size;return n.set(t,r),this.size+=n.size==i?0:1,this}}();function o(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=r,o.prototype.has=n,o.prototype.set=i,mt=o}function fn(){if(kt)return wt;kt=1;var e=function(){if(_t)return bt;_t=1;var e=dn();function t(r,n){if("function"!=typeof r||null!=n&&"function"!=typeof n)throw new TypeError("Expected a function");var i=function(){var e=arguments,t=n?n.apply(this,e):e[0],o=i.cache;if(o.has(t))return o.get(t);var a=r.apply(this,e);return i.cache=o.set(t,a)||o,a};return i.cache=new(t.Cache||e),i}return t.Cache=e,bt=t}();return wt=function(t){var r=e(t,function(e){return 500===n.size&&n.clear(),e}),n=r.cache;return r}}function pn(){if(Ot)return St;Ot=1;var e=function(){if(At)return Pt;At=1;var e=Kr(),t=Qr(),r=Fr(),n=Yr(),i=e?e.prototype:void 0,o=i?i.toString:void 0;return Pt=function e(i){if("string"==typeof i)return i;if(r(i))return t(i,e)+"";if(n(i))return o?o.call(i):"";var a=i+"";return"0"==a&&1/i==-1/0?"-0":a},Pt}();return St=function(t){return null==t?"":e(t)}}function hn(){if(xt)return Ct;xt=1;var e=Fr(),t=$r(),r=function(){if(Et)return Tt;Et=1;var e=fn(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(e){var n=[];return 46===e.charCodeAt(0)&&n.push(""),e.replace(t,function(e,t,i,o){n.push(i?o.replace(r,"$1"):t||e)}),n});return Tt=n}(),n=pn();return Ct=function(i,o){return e(i)?i:t(i,o)?[i]:r(n(i))}}function yn(){if(Rt)return Dt;Rt=1;var e=Yr();return Dt=function(t){if("string"==typeof t||e(t))return t;var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}}function vn(){if(Lt)return It;Lt=1;var e=hn(),t=yn();return It=function(r,n){for(var i=0,o=(n=e(n,r)).length;null!=r&&i<o;)r=r[t(n[i++])];return i&&i==o?r:void 0}}function mn(){if(Xt)return zt;Xt=1;var e=un(),t=function(){if(Mt)return jt;Mt=1;var e=un();return jt=function(){this.__data__=new e,this.size=0}}(),r=Nt?Ut:(Nt=1,Ut=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}),n=qt?Vt:(qt=1,Vt=function(e){return this.__data__.get(e)}),i=Wt?Ht:(Wt=1,Ht=function(e){return this.__data__.has(e)}),o=function(){if(Bt)return Kt;Bt=1;var e=un(),t=ln(),r=dn();return Kt=function(n,i){var o=this.__data__;if(o instanceof e){var a=o.__data__;if(!t||a.length<199)return a.push([n,i]),this.size=++o.size,this;o=this.__data__=new r(a)}return o.set(n,i),this.size=o.size,this}}();function a(t){var r=this.__data__=new e(t);this.size=r.size}return a.prototype.clear=t,a.prototype.delete=r,a.prototype.get=n,a.prototype.has=i,a.prototype.set=o,zt=a}function gn(){if(Zt)return $t;Zt=1;var e=dn(),t=Gt?Ft:(Gt=1,Ft=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}),r=Yt?Qt:(Yt=1,Qt=function(e){return this.__data__.has(e)});function n(t){var r=-1,n=null==t?0:t.length;for(this.__data__=new e;++r<n;)this.add(t[r])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,$t=n}function bn(){if(ir)return nr;ir=1;var e=gn(),t=er?Jt:(er=1,Jt=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}),r=rr?tr:(rr=1,tr=function(e,t){return e.has(t)});return nr=function(n,i,o,a,s,u){var l=1&o,c=n.length,d=i.length;if(c!=d&&!(l&&d>c))return!1;var f=u.get(n),p=u.get(i);if(f&&p)return f==i&&p==n;var h=-1,y=!0,v=2&o?new e:void 0;for(u.set(n,i),u.set(i,n);++h<c;){var m=n[h],g=i[h];if(a)var b=l?a(g,m,h,i,n,u):a(m,g,h,n,i,u);if(void 0!==b){if(b)continue;y=!1;break}if(v){if(!t(i,function(e,t){if(!r(v,t)&&(m===e||s(m,e,o,a,u)))return v.push(t)})){y=!1;break}}else if(m!==g&&!s(m,g,o,a,u)){y=!1;break}}return u.delete(n),u.delete(i),y}}function _n(){if(fr)return dr;fr=1;var e=Kr(),t=function(){if(ar)return or;ar=1;var e=Wr().Uint8Array;return or=e}(),r=an(),n=bn(),i=ur?sr:(ur=1,sr=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}),o=cr?lr:(cr=1,lr=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}),a=e?e.prototype:void 0,s=a?a.valueOf:void 0;return dr=function(e,a,u,l,c,d,f){switch(u){case"[object DataView]":if(e.byteLength!=a.byteLength||e.byteOffset!=a.byteOffset)return!1;e=e.buffer,a=a.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=a.byteLength||!d(new t(e),new t(a)));case"[object Boolean]":case"[object Date]":case"[object Number]":return r(+e,+a);case"[object Error]":return e.name==a.name&&e.message==a.message;case"[object RegExp]":case"[object String]":return e==a+"";case"[object Map]":var p=i;case"[object Set]":var h=1&l;if(p||(p=o),e.size!=a.size&&!h)return!1;var y=f.get(e);if(y)return y==a;l|=2,f.set(e,a);var v=n(p(e),p(a),l,c,d,f);return f.delete(e),v;case"[object Symbol]":if(s)return s.call(e)==s.call(a)}return!1}}function wn(){if(_r)return br;_r=1;var e=vr?yr:(vr=1,yr=function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}),t=gr?mr:(gr=1,mr=function(){return[]}),r=Object.prototype.propertyIsEnumerable,n=Object.getOwnPropertySymbols;return br=n?function(t){return null==t?[]:(t=Object(t),e(n(t),function(e){return r.call(t,e)}))}:t}var kn,Tn,En,Pn,An,Sn,On,Cn,xn,Dn,Rn,In={exports:{}};function Ln(){return En||(En=1,function(e,t){var r=Wr(),n=Tn?kn:(Tn=1,kn=function(){return!1}),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=(a?a.isBuffer:void 0)||n;e.exports=s}(In,In.exports)),In.exports}function jn(){if(An)return Pn;An=1;var e=/^(?:0|[1-9]\d*)$/;return Pn=function(t,r){var n=o(t);return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}}function Mn(){if(On)return Sn;On=1;return Sn=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}}function Un(){if(Rn)return Dn;return Rn=1,Dn=function(e){return function(t){return e(t)}}}var Nn,Vn,qn,Hn,Wn,Kn,Bn,zn,Xn,Fn,Gn,Qn,Yn,$n,Zn,Jn,ei,ti,ri,ni,ii,oi,ai,si,ui,li,ci,di,fi,pi,hi,yi,vi,mi,gi,bi,_i,wi,ki,Ti,Ei,Pi,Ai,Si,Oi,Ci,xi,Di,Ri,Ii,Li,ji,Mi,Ui,Ni,Vi,qi,Hi,Wi,Ki,Bi,zi,Xi,Fi,Gi,Qi,Yi,$i,Zi,Ji,eo,to,ro,no,io,oo,ao,so,uo,lo,co,fo,po,ho,yo,vo,mo,go,bo,_o,wo,ko,To,Eo,Po,Ao,So,Oo,Co,xo,Do,Ro,Io,Lo,jo,Mo={exports:{}};function Uo(){if(qn)return Vn;qn=1;var e=function(){if(xn)return Cn;xn=1;var e=Br(),t=Mn(),r=zr(),n={};return n["[object Float32Array]"]=n["[object Float64Array]"]=n["[object Int8Array]"]=n["[object Int16Array]"]=n["[object Int32Array]"]=n["[object Uint8Array]"]=n["[object Uint8ClampedArray]"]=n["[object Uint16Array]"]=n["[object Uint32Array]"]=!0,n["[object Arguments]"]=n["[object Array]"]=n["[object ArrayBuffer]"]=n["[object Boolean]"]=n["[object DataView]"]=n["[object Date]"]=n["[object Error]"]=n["[object Function]"]=n["[object Map]"]=n["[object Number]"]=n["[object Object]"]=n["[object RegExp]"]=n["[object Set]"]=n["[object String]"]=n["[object WeakMap]"]=!1,Cn=function(i){return r(i)&&t(i.length)&&!!n[e(i)]}}(),t=Un(),r=function(){return Nn||(Nn=1,e=Mo,t=Mo.exports,r=Hr(),n=t&&!t.nodeType&&t,i=n&&e&&!e.nodeType&&e,o=i&&i.exports===n&&r.process,a=function(){try{return i&&i.require&&i.require("util").types||o&&o.binding&&o.binding("util")}catch(e){}}(),e.exports=a),Mo.exports;var e,t,r,n,i,o,a}(),n=r&&r.isTypedArray,i=n?t(n):e;return Vn=i}function No(){if(Wn)return Hn;Wn=1;var e=kr?wr:(kr=1,wr=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}),t=Xr(),r=Fr(),n=Ln(),i=jn(),o=Uo(),a=Object.prototype.hasOwnProperty;return Hn=function(s,u){var l=r(s),c=!l&&t(s),d=!l&&!c&&n(s),f=!l&&!c&&!d&&o(s),p=l||c||d||f,h=p?e(s.length,String):[],y=h.length;for(var v in s)!u&&!a.call(s,v)||p&&("length"==v||d&&("offset"==v||"parent"==v)||f&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||i(v,y))||h.push(v);return h}}function Vo(){if(Bn)return Kn;Bn=1;var e=Object.prototype;return Kn=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}}function qo(){if(Gn)return Fn;Gn=1;var e=(Xn?zn:(Xn=1,zn=function(e,t){return function(r){return e(t(r))}}))(Object.keys,Object);return Fn=e}function Ho(){if(Yn)return Qn;Yn=1;var e=Vo(),t=qo(),r=Object.prototype.hasOwnProperty;return Qn=function(n){if(!e(n))return t(n);var i=[];for(var o in Object(n))r.call(n,o)&&"constructor"!=o&&i.push(o);return i}}function Wo(){if(Zn)return $n;Zn=1;var e=Jr(),t=Mn();return $n=function(r){return null!=r&&t(r.length)&&!e(r)}}function Ko(){if(ei)return Jn;ei=1;var e=No(),t=Ho(),r=Wo();return Jn=function(n){return r(n)?e(n):t(n)}}function Bo(){if(ri)return ti;ri=1;var e=function(){if(hr)return pr;hr=1;var e=qr(),t=Fr();return pr=function(r,n,i){var o=n(r);return t(r)?o:e(o,i(r))}}(),t=wn(),r=Ko();return ti=function(n){return e(n,r,t)}}function zo(){if(hi)return pi;hi=1;var e=function(){if(ai)return oi;ai=1;var e=rn()(Wr(),"DataView");return oi=e}(),t=ln(),r=function(){if(ui)return si;ui=1;var e=rn()(Wr(),"Promise");return si=e}(),n=function(){if(ci)return li;ci=1;var e=rn()(Wr(),"Set");return li=e}(),i=function(){if(fi)return di;fi=1;var e=rn()(Wr(),"WeakMap");return di=e}(),o=Br(),a=tn(),s="[object Map]",u="[object Promise]",l="[object Set]",c="[object WeakMap]",d="[object DataView]",f=a(e),p=a(t),h=a(r),y=a(n),v=a(i),m=o;return(e&&m(new e(new ArrayBuffer(1)))!=d||t&&m(new t)!=s||r&&m(r.resolve())!=u||n&&m(new n)!=l||i&&m(new i)!=c)&&(m=function(e){var t=o(e),r="[object Object]"==t?e.constructor:void 0,n=r?a(r):"";if(n)switch(n){case f:return d;case p:return s;case h:return u;case y:return l;case v:return c}return t}),pi=m}function Xo(){if(vi)return yi;vi=1;var e=mn(),t=bn(),r=_n(),n=function(){if(ii)return ni;ii=1;var e=Bo(),t=Object.prototype.hasOwnProperty;return ni=function(r,n,i,o,a,s){var u=1&i,l=e(r),c=l.length;if(c!=e(n).length&&!u)return!1;for(var d=c;d--;){var f=l[d];if(!(u?f in n:t.call(n,f)))return!1}var p=s.get(r),h=s.get(n);if(p&&h)return p==n&&h==r;var y=!0;s.set(r,n),s.set(n,r);for(var v=u;++d<c;){var m=r[f=l[d]],g=n[f];if(o)var b=u?o(g,m,f,n,r,s):o(m,g,f,r,n,s);if(!(void 0===b?m===g||a(m,g,i,o,s):b)){y=!1;break}v||(v="constructor"==f)}if(y&&!v){var _=r.constructor,w=n.constructor;_==w||!("constructor"in r)||!("constructor"in n)||"function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w||(y=!1)}return s.delete(r),s.delete(n),y}}(),i=zo(),o=Fr(),a=Ln(),s=Uo(),u="[object Arguments]",l="[object Array]",c="[object Object]",d=Object.prototype.hasOwnProperty;return yi=function(f,p,h,y,v,m){var g=o(f),b=o(p),_=g?l:i(f),w=b?l:i(p),k=(_=_==u?c:_)==c,T=(w=w==u?c:w)==c,E=_==w;if(E&&a(f)){if(!a(p))return!1;g=!0,k=!1}if(E&&!k)return m||(m=new e),g||s(f)?t(f,p,h,y,v,m):r(f,p,_,h,y,v,m);if(!(1&h)){var P=k&&d.call(f,"__wrapped__"),A=T&&d.call(p,"__wrapped__");if(P||A){var S=P?f.value():f,O=A?p.value():p;return m||(m=new e),v(S,O,h,y,m)}}return!!E&&(m||(m=new e),n(f,p,h,y,v,m))}}function Fo(){if(gi)return mi;gi=1;var e=Xo(),t=zr();return mi=function r(n,i,o,a,s){return n===i||(null==n||null==i||!t(n)&&!t(i)?n!=n&&i!=i:e(n,i,o,a,r,s))},mi}function Go(){if(ki)return wi;ki=1;var e=Zr();return wi=function(t){return t==t&&!e(t)}}function Qo(){if(Ai)return Pi;return Ai=1,Pi=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}}}function Yo(){if(Oi)return Si;Oi=1;var e=function(){if(_i)return bi;_i=1;var e=mn(),t=Fo();return bi=function(r,n,i,o){var a=i.length,s=a,u=!o;if(null==r)return!s;for(r=Object(r);a--;){var l=i[a];if(u&&l[2]?l[1]!==r[l[0]]:!(l[0]in r))return!1}for(;++a<s;){var c=(l=i[a])[0],d=r[c],f=l[1];if(u&&l[2]){if(void 0===d&&!(c in r))return!1}else{var p=new e;if(o)var h=o(d,f,c,r,n,p);if(!(void 0===h?t(f,d,3,o,p):h))return!1}}return!0}}(),t=function(){if(Ei)return Ti;Ei=1;var e=Go(),t=Ko();return Ti=function(r){for(var n=t(r),i=n.length;i--;){var o=n[i],a=r[o];n[i]=[o,a,e(a)]}return n}}(),r=Qo();return Si=function(n){var i=t(n);return 1==i.length&&i[0][2]?r(i[0][0],i[0][1]):function(t){return t===n||e(t,n,i)}}}function $o(){if(Mi)return ji;Mi=1;var e=Ri?Di:(Ri=1,Di=function(e,t){return null!=e&&t in Object(e)}),t=function(){if(Li)return Ii;Li=1;var e=hn(),t=Xr(),r=Fr(),n=jn(),i=Mn(),o=yn();return Ii=function(a,s,u){for(var l=-1,c=(s=e(s,a)).length,d=!1;++l<c;){var f=o(s[l]);if(!(d=null!=a&&u(a,f)))break;a=a[f]}return d||++l!=c?d:!!(c=null==a?0:a.length)&&i(c)&&n(f,c)&&(r(a)||t(a))}}();return ji=function(r,n){return null!=r&&t(r,n,e)}}function Zo(){if(Ni)return Ui;Ni=1;var e=Fo(),t=function(){if(xi)return Ci;xi=1;var e=vn();return Ci=function(t,r,n){var i=null==t?void 0:e(t,r);return void 0===i?n:i}}(),r=$o(),n=$r(),i=Go(),o=Qo(),a=yn();return Ui=function(s,u){return n(s)&&i(u)?o(a(s),u):function(n){var i=t(n,s);return void 0===i&&i===u?r(n,s):e(u,i,3)}}}function Jo(){if(qi)return Vi;return qi=1,Vi=function(e){return e}}function ea(){if(Xi)return zi;Xi=1;var e=Wi?Hi:(Wi=1,Hi=function(e){return function(t){return null==t?void 0:t[e]}}),t=function(){if(Bi)return Ki;Bi=1;var e=vn();return Ki=function(t){return function(r){return e(r,t)}}}(),r=$r(),n=yn();return zi=function(i){return r(i)?e(n(i)):t(i)}}function ta(){if(Gi)return Fi;Gi=1;var e=Yo(),t=Zo(),r=Jo(),n=Fr(),i=ea();return Fi=function(a){return"function"==typeof a?a:null==a?r:"object"==o(a)?n(a)?t(a[0],a[1]):e(a):i(a)}}function ra(){if(Zi)return $i;Zi=1;var e=(Yi?Qi:(Yi=1,Qi=function(e){return function(t,r,n){for(var i=-1,o=Object(t),a=n(t),s=a.length;s--;){var u=a[e?s:++i];if(!1===r(o[u],u,o))break}return t}}))();return $i=e}function na(){if(io)return no;io=1;var e=function(){if(eo)return Ji;eo=1;var e=ra(),t=Ko();return Ji=function(r,n){return r&&e(r,n,t)}}(),t=function(){if(ro)return to;ro=1;var e=Wo();return to=function(t,r){return function(n,i){if(null==n)return n;if(!e(n))return t(n,i);for(var o=n.length,a=r?o:-1,s=Object(n);(r?a--:++a<o)&&!1!==i(s[a],a,s););return n}}}()(e);return no=t}function ia(){if(po)return fo;po=1;var e=function(){if(co)return lo;co=1;var e=Yr();return lo=function(t,r){if(t!==r){var n=void 0!==t,i=null===t,o=t==t,a=e(t),s=void 0!==r,u=null===r,l=r==r,c=e(r);if(!u&&!c&&!a&&t>r||a&&s&&l&&!u&&!c||i&&s&&l||!n&&l||!o)return 1;if(!i&&!a&&!c&&t<r||c&&n&&o&&!i&&!a||u&&n&&o||!s&&o||!l)return-1}return 0}}();return fo=function(t,r,n){for(var i=-1,o=t.criteria,a=r.criteria,s=o.length,u=n.length;++i<s;){var l=e(o[i],a[i]);if(l)return i>=u?l:l*("desc"==n[i]?-1:1)}return t.index-r.index}}function oa(){if(yo)return ho;yo=1;var e=Qr(),t=vn(),r=ta(),n=function(){if(ao)return oo;ao=1;var e=na(),t=Wo();return oo=function(r,n){var i=-1,o=t(r)?Array(r.length):[];return e(r,function(e,t,r){o[++i]=n(e,t,r)}),o}}(),i=uo?so:(uo=1,so=function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}),o=Un(),a=ia(),s=Jo(),u=Fr();return ho=function(l,c,d){c=c.length?e(c,function(e){return u(e)?function(r){return t(r,1===e.length?e[0]:e)}:e}):[s];var f=-1;c=e(c,o(r));var p=n(l,function(t,r,n){return{criteria:e(c,function(e){return e(t)}),index:++f,value:t}});return i(p,function(e,t){return a(e,t,d)})}}function aa(){if(bo)return go;bo=1;var e=mo?vo:(mo=1,vo=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}),t=Math.max;return go=function(r,n,i){return n=t(void 0===n?r.length-1:n,0),function(){for(var o=arguments,a=-1,s=t(o.length-n,0),u=Array(s);++a<s;)u[a]=o[n+a];a=-1;for(var l=Array(n+1);++a<n;)l[a]=o[a];return l[n]=i(u),e(r,this,l)}},go}function sa(){if(To)return ko;To=1;var e=rn(),t=function(){try{var t=e(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();return ko=t}function ua(){if(Po)return Eo;Po=1;var e=wo?_o:(wo=1,_o=function(e){return function(){return e}}),t=sa(),r=Jo();return Eo=t?function(r,n){return t(r,"toString",{configurable:!0,enumerable:!1,value:e(n),writable:!0})}:r}function la(){if(Co)return Oo;Co=1;var e=ua(),t=function(){if(So)return Ao;So=1;var e=Date.now;return Ao=function(t){var r=0,n=0;return function(){var i=e(),o=16-(i-n);if(n=i,o>0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}},Ao}(),r=t(e);return Oo=r}var ca=function(){if(jo)return Lo;jo=1;var e=Gr(),t=oa(),r=function(){if(Do)return xo;Do=1;var e=Jo(),t=aa(),r=la();return xo=function(n,i){return r(t(n,i,e),n+"")}}(),n=function(){if(Io)return Ro;Io=1;var e=an(),t=Wo(),r=jn(),n=Zr();return Ro=function(i,a,s){if(!n(s))return!1;var u=o(a);return!!("number"==u?t(s)&&r(a,s.length):"string"==u&&a in s)&&e(s[a],i)}}(),i=r(function(r,i){if(null==r)return[];var o=i.length;return o>1&&n(r,i[0],i[1])?i=[]:o>2&&n(i[0],i[1],i[2])&&(i=[i[0]]),t(r,e(i,1),[])});return Lo=i}(),da=Vr(ca),fa=function(){var e=window.location||{},t=e.pathname,r=e.href,n=e.origin;return t&&t.length>1&&t.endsWith("/")&&(t=t.substring(0,t.length-1)),{pathName:t,href:r.replace(n,"")}},pa=function(e){var t,r=fa();return null!=e&&null!==(t=e.config)&&void 0!==t&&t.updateOnUrl?r.href:r.pathName},ha=function(e,t){return da(Object.values(e),"config.priority").find(function(e){var r=e.key,n=e.config,i=n.pageCheckBy,o=n.regex,a="URL"===i?t.href:t.pathName;return o?new RegExp(r).test(a):r===a})},ya=function(e,t){var r,n=t.pageConfig,i=t.errorCallback,o=t.isPageReady,a=t.onPageChange,s=(null===(r=ha(n,fa()))||void 0===r?void 0:r.selectors)||[],u=s,c=null,d=null,f=null,p=function(){c.observe(document.body,{attributes:!0,childList:!0,subtree:!0,characterData:!1})},h=function(){var t=l(k().m(function t(){var r,l,h;return k().w(function(t){for(;;)switch(t.n){case 0:if(r=fa(),l=ha(n,r),d===pa(l)){t.n=5;break}if((h=(null==l?void 0:l.ads)||[]).length&&h.forEach(function(e){var t=document.querySelector(e);t&&t.remove()}),s=(null==l?void 0:l.selectors)||[],u=s,d=pa(l),"function"!=typeof o){t.n=4;break}return c.disconnect(),t.p=1,t.n=2,o((null==l?void 0:l.config)||{});case 2:p(),t.n=4;break;case 3:t.p=3,t.v;case 4:a&&a(d);case 5:u.length&&(u=u.filter(function(e){return!document.querySelector(e)}),e({checkValue:d,mountedSelectors:s.filter(function(e){return document.querySelector(e)}),notMountedSelectors:u,pageConfig:ha(n,r)})),i&&(f&&clearTimeout(f),f=setTimeout(function(){var e;if(null!==(e=u)&&void 0!==e&&e.length){var t,r=((null==l?void 0:l.config)||{}).optionalSelectors,n=u||[];null!=r&&r.length&&(n=n.filter(function(e){return!r.includes(e)})),null!==(t=n)&&void 0!==t&&t.length&&i({pageConfig:l,selectorsNotFound:n})}},6e4));case 6:return t.a(2)}},t,null,[[1,3]])}));return function(){return t.apply(this,arguments)}}(),y=function(){var e=l(k().m(function e(){return k().w(function(e){for(;;)switch(e.n){case 0:return e.p=0,e.n=1,h();case 1:e.n=3;break;case 2:e.p=2,e.v,i({pageConfig:ha(n,fa())||[],selectorsNotFound:[]});case 3:return e.a(2)}},e,null,[[0,2]])}));return function(){return e.apply(this,arguments)}}(),v=function(){if("undefined"==typeof MutationObserver)throw new Error("MutationObserver is not available");var e,t,r,n=(e=y,t=100,function(){var n=this,i=arguments;clearTimeout(r),r=setTimeout(function(){return e.apply(n,i)},t)});c=new MutationObserver(n),p(),y()};document.body?v():document.addEventListener("DOMContentLoaded",function(){v()})},va=Object.entries,ma=Object.setPrototypeOf,ga=Object.isFrozen,ba=Object.getPrototypeOf,_a=Object.getOwnPropertyDescriptor,wa=Object.freeze,ka=Object.seal,Ta=Object.create,Ea="undefined"!=typeof Reflect&&Reflect,Pa=Ea.apply,Aa=Ea.construct;wa||(wa=function(e){return e}),ka||(ka=function(e){return e}),Pa||(Pa=function(e,t,r){return e.apply(t,r)}),Aa||(Aa=function(e,r){return function(e,r,n){if(t())return Reflect.construct.apply(null,arguments);var i=[null];return i.push.apply(i,r),new(e.bind.apply(e,i))}(e,i(r))});var Sa,Oa=Wa(Array.prototype.forEach),Ca=Wa(Array.prototype.lastIndexOf),xa=Wa(Array.prototype.pop),Da=Wa(Array.prototype.push),Ra=Wa(Array.prototype.splice),Ia=Wa(String.prototype.toLowerCase),La=Wa(String.prototype.toString),ja=Wa(String.prototype.match),Ma=Wa(String.prototype.replace),Ua=Wa(String.prototype.indexOf),Na=Wa(String.prototype.trim),Va=Wa(Object.prototype.hasOwnProperty),qa=Wa(RegExp.prototype.test),Ha=(Sa=TypeError,function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Aa(Sa,t)});function Wa(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return Pa(e,t,n)}}function Ka(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ia;ma&&ma(e,null);for(var n=t.length;n--;){var i=t[n];if("string"==typeof i){var o=r(i);o!==i&&(ga(t)||(t[n]=o),i=o)}e[i]=!0}return e}function Ba(e){for(var t=0;t<e.length;t++){Va(e,t)||(e[t]=null)}return e}function za(e){var t,r=Ta(null),i=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=a(e))||t){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){u=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw o}}}}(va(e));try{for(i.s();!(t=i.n()).done;){var s=n(t.value,2),u=s[0],l=s[1];Va(e,u)&&(Array.isArray(l)?r[u]=Ba(l):l&&"object"===o(l)&&l.constructor===Object?r[u]=za(l):r[u]=l)}}catch(e){i.e(e)}finally{i.f()}return r}function Xa(e,t){for(;null!==e;){var r=_a(e,t);if(r){if(r.get)return Wa(r.get);if("function"==typeof r.value)return Wa(r.value)}e=ba(e)}return function(){return null}}var Fa=wa(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ga=wa(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Qa=wa(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Ya=wa(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),$a=wa(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Za=wa(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ja=wa(["#text"]),es=wa(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),ts=wa(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),rs=wa(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ns=wa(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),is=ka(/\{\{[\w\W]*|[\w\W]*\}\}/gm),os=ka(/<%[\w\W]*|[\w\W]*%>/gm),as=ka(/\$\{[\w\W]*/gm),ss=ka(/^data-[\-\w.\u00B7-\uFFFF]+$/),us=ka(/^aria-[\-\w]+$/),ls=ka(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),cs=ka(/^(?:\w+script|data):/i),ds=ka(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),fs=ka(/^html$/i),ps=ka(/^[a-z][.\w]*(-[.\w]+)+$/i),hs=Object.freeze({__proto__:null,ARIA_ATTR:us,ATTR_WHITESPACE:ds,CUSTOM_ELEMENT:ps,DATA_ATTR:ss,DOCTYPE_NAME:fs,ERB_EXPR:os,IS_ALLOWED_URI:ls,IS_SCRIPT_OR_DATA:cs,MUSTACHE_EXPR:is,TMPLIT_EXPR:as}),ys=1,vs=3,ms=7,gs=8,bs=9,_s=function(){return"undefined"==typeof window?null:window};var ws=function e(){var t=this,n=arguments.length>0&&void 0!==