tdem-web-sdk 1.0.6 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
1
  /**
2
- * ===============================================================
3
- * tdem-web-sdk@1.0.6 (c) 2026 TencentCloud Real User Monitoring.
2
+ * ===========================================================================
3
+ * tdem-web-sdk@1.0.9 (c) 2026 TencentCloud Real User Monitoring.
4
4
  * Author pumpkincai.
5
- * Last Release Time Thu Jul 16 2026 19:42:38 GMT+0800 (中国标准时间).
5
+ * Last Release Time Tue Aug 04 2026 14:37:29 GMT+0800 (China Standard Time).
6
6
  * Released under the MIT License.
7
7
  * Thanks for supporting TDEM!
8
- * ===============================================================
8
+ * ===========================================================================
9
9
  **/
10
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).TDEM=t()}(this,function(){"use strict";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}function I(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function P(s){return function(){var e=this,a=arguments;return new Promise(function(t,n){var r=s.apply(e,a);function i(e){I(r,t,n,i,o,"next",e)}function o(e){I(r,t,n,i,o,"throw",e)}i(void 0)})}}function d(e,t,n){t=F(t);var r=e,e=B()?Reflect.construct(t,n||[],F(e).constructor):t.apply(e,n);if(!e||"object"!=typeof e&&"function"!=typeof e){if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(e=r))throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pe(e,t,n){var r;return B()?Reflect.construct.apply(null,arguments):((r=[null]).push.apply(r,t),t=new(e.bind.apply(e,r)),n&&Z(t,n.prototype),t)}function N(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Y(r.key),r)}}function f(e,t,n){return t&&N(e.prototype,t),n&&N(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ae(e,t){var n,r,i,o,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return i=!(r=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return r=e.done,e},e:function(e){i=!0,n=e},f:function(){try{r||null==a["return"]||a["return"]()}finally{if(i)throw n}}};if(Array.isArray(e)||(a=J(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),o=0,{s:t=function(){},n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:t};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 L(e,t,n){return(t=Y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D(){return(D="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=F(e)););return e}(e,t);if(r)return(r=Object.getOwnPropertyDescriptor(r,t)).get?r.get.call(arguments.length<3?e:n):r.value}).apply(null,arguments)}function F(e){return(F=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function U(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&&Z(e,t)}function B(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(B=function(){return!!e})()}function z(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Te(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?z(Object(n),!0).forEach(function(e){L(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function j(e,t){if(null==e)return{};var n,r=function(e,t){if(null==e)return{};var n,r={};for(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)for(var i=Object.getOwnPropertySymbols(e),o=0;o<i.length;o++)n=i[o],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n]);return r}function W(){var p,g,e="function"==typeof Symbol?Symbol:{},t=e.iterator||"@@iterator",n=e.toStringTag||"@@toStringTag";function r(e,t,n,r){var i,o,a,s,u,l,c,d,f,t=t&&t.prototype instanceof v?t:v,t=Object.create(t.prototype);return H(t,"_invoke",(i=e,o=n,c=r||[],d=!1,f={p:l=0,n:0,v:p,a:h,f:h.bind(p,4),d:function(e,t){return a=e,s=0,u=p,f.n=t,m}},function(e,t,n){if(1<l)throw TypeError("Generator is already running");for(d&&1===t&&h(t,n),s=t,u=n;(g=s<2?p:u)||!d;){a||(s?s<3?(1<s&&(f.n=-1),h(s,u)):f.n=u:f.v=u);try{if(l=2,a){if(g=a[e=s?e:"next"]){if(!(g=g.call(a,u)))throw TypeError("iterator result is not an object");if(!g.done)return g;u=g.value,s<2&&(s=0)}else 1===s&&(g=a["return"])&&g.call(a),s<2&&(u=TypeError("The iterator does not provide a '"+e+"' method"),s=1);a=p}else if((g=(d=f.n<0)?u:i.call(o,f))!==m)break}catch(g){a=p,s=1,u=g}finally{l=1}}return{value:g,done:d}}),!0),t;function h(e,t){for(s=e,u=t,g=0;!d&&l&&!n&&g<c.length;g++){var n,r=c[g],i=f.p,o=r[2];3<e?(n=o===t)&&(u=r[(s=r[4])?5:s=3],r[4]=r[5]=p):r[0]<=i&&((n=e<2&&i<r[1])?(s=0,f.v=t,f.n=r[1]):i<o&&(n=e<3||r[0]>t||o<t)&&(r[4]=e,r[5]=t,f.n=o,s=0))}if(n||1<e)return m;throw d=!0,t}}var m={};function v(){}function i(){}function o(){}g=Object.getPrototypeOf;var e=[][t]?g(g([][t]())):(H(g={},t,function(){return this}),g),a=o.prototype=v.prototype=Object.create(e);function s(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,o):(e.__proto__=o,H(e,n,"GeneratorFunction")),e.prototype=Object.create(a),e}return H(a,"constructor",i.prototype=o),H(o,"constructor",i),H(o,n,i.displayName="GeneratorFunction"),H(a),H(a,n,"Generator"),H(a,t,function(){return this}),H(a,"toString",function(){return"[object Generator]"}),(W=function(){return{w:r,m:s}})()}function H(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(H=function(e,t,n,r){function i(t,n){H(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))})(e,t,n,r)}function V(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}}}throw new TypeError(typeof e+" is not iterable")}function Z(e,t){return(Z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ne(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n["return"]&&(a=n["return"](),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||J(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 G(e,t,n,r){var i=D(F(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}function Le(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}()||J(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 Y(e){e=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0===t)return String(e);e=t.call(e,"string");if("object"!=typeof e)return e;throw new TypeError("@@toPrimitive must return a primitive value.")}(e);return"symbol"==typeof e?e:e+""}function v(e){return(v="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})(e)}function J(e,t){var n;if(e)return"string"==typeof e?u(e,t):"Map"===(n="Object"===(n={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}function K(e){var n="function"==typeof Map?new Map:void 0;return(K=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(IC){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!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return Pe(e,arguments,F(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),Z(t,e)})(e)}var E,m=function(e){try{return!!e()}catch(I){return!0}},q=void 0,y=((E=void 0)({target:"Array",stat:!0},{isArray:q}),void 0),X=y({}.toString),Q=y("".slice),ee=function(e){return Q(X(e),8,-1)},te=(Array.isArray,"object"==("undefined"==typeof document?"undefined":v(document))&&document.all),ne=void 0===te&&te!==undefined?function(e){return"function"==typeof e||e===te}:function(e){return"function"==typeof e},R=function(e){return"object"==v(e)?null!==e:ne(e)},re=function(e){return null===e||e===undefined},ie=TypeError,oe=function(e){if(re(e))throw new ie("Can't call method on "+e);return e},ae=Object,se=function(e){return ae(oe(e))},ue=void 0,le=(E({target:"Math",stat:!0},{trunc:ue}),Math.ceil,function(e){e=+e;return e!=e||0==e?0:ue(e)}),ce=Math.min,de=function(e){e=le(e);return 0<e?ce(e,9007199254740991):0},fe=function(e){return de(e.length)},he=TypeError,pe=function(e){if(9007199254740991<e)throw new he("Maximum allowed index exceeded");return e},x=void 0,ge=x.document,me=R(ge)&&R(ge.createElement),ve=function(e){return me?ge.createElement(e):{}},O=void 0,e=(O||m(function(){return 7!==Object.defineProperty(ve("div"),"a",{get:function(){return 7}}).a}),O&&m(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})),ye=String,we=TypeError,be=function(e){if(R(e))return e;throw new we(ye(e)+" is not an object")},ke=!m(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),Se=Function.prototype.call,A=ke?Se.bind(Se):function(){return Se.apply(Se,arguments)},_e=function(e,t){return arguments.length<2?(n=x[e],ne(n)?n:undefined):x[e]&&x[e][t];var n},Ce=y({}.isPrototypeOf),Ie=String,Ee=function(e){try{return Ie(e)}catch(I){return"Object"}},Re=TypeError,xe=function(e){if(ne(e))return e;throw new Re(Ee(e)+" is not a function")},Oe=void 0,t=!m(function(){Reflect.apply(function(){})}),t=(E({target:"Reflect",stat:!0,forced:t},{apply:function(e,t,n){return Oe(xe(e),t,be(n))}}),Function.prototype),De=t.apply,t=t.call,Fe=("object"==("undefined"==typeof Reflect?"undefined":v(Reflect))&&Reflect.apply||ke&&t.bind(De),y({}.hasOwnProperty)),T=Object.hasOwn||function(e,t){return Fe(se(e),t)},De=Function.prototype,t=O&&Object.getOwnPropertyDescriptor,Ue=T(De,"name"),Be={EXISTS:Ue,PROPER:Ue&&"something"===function(){}.name,CONFIGURABLE:Ue&&(!O||t(De,"name").configurable)},Ue=function(e,t){var n=[][e];return!!n&&m(function(){n.call(null,t||function(){return 1},1)})},ze=void 0,je=void 0,We=y([].join),De=ze!==Object||!Ue("join",","),t=(E({target:"Array",proto:!0,forced:De},{join:function(e){return We(je(this),e===undefined?",":e)}}),"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{});function He(e,t,n){return e(n={path:t,exports:{},require:function(e,t){throw t!==undefined&&null!==t||n.path,new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}},n.exports),n.exports}var Ve=Object.defineProperty,Ze=function(e,t){try{Ve(x,e,{value:t,configurable:!0,writable:!0})}catch(P){x[e]=t}return t},Ge=He(function(e){e=e.exports=x["__core-js_shared__"]||Ze("__core-js_shared__",{});(e.versions||(e.versions=[])).push({version:"3.49.0",mode:"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})}),Ye=y(Function.toString);ne(Ge.inspectSource)||(Ge.inspectSource=function(e){return Ye(e)});var Je,Ke=Ge.inspectSource,qe=void 0,Xe=qe("toStringTag"),$e=Object,Qe="Arguments"===ee(function(){return arguments}()),et=function(e){var n,t;return e===undefined?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(e=$e(e),Xe))?n:Qe?ee(e):"Object"===(t=ee(e))&&ne(e.callee)?"Arguments":t},tt=String,_=function(e){if("Symbol"===et(e))throw new TypeError("Cannot convert a Symbol value to a string");return tt(e)},De=(Je=!1,(De=/[ac]/).exec=function(){return Je=!0,/./.exec.apply(this,arguments)},!0===De.test("abc")&&Je),nt=/./.test;E({target:"RegExp",proto:!0,forced:!De},{test:function(e){var t=be(this),e=_(e),n=t.exec;return ne(n)?null!==(n=A(n,t,e))&&(be(n),!0):A(nt,t,e)}});var rt,it,ot,at,De=x.WeakMap,De=ne(De)&&/native code/.test(String(De)),st=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ut=void 0,lt=O?function(e,t,n){return ut.f(e,t,st(1,n))}:function(e,t,n){return e[t]=n,e},ct=function(e,t){return Ge[e]||(Ge[e]=t||{})},dt=0,ft=Math.random(),ht=y(1.1.toString),pt=function(e){return"Symbol("+(e===undefined?"":e)+")_"+ht(++dt+ft,36)},gt=ct("keys"),mt=function(e){return gt[e]||(gt[e]=pt(e))},vt={},yt=x.TypeError,wt=x.WeakMap,bt=De||Ge.state?((ot=Ge.state||(Ge.state=new wt)).get=ot.get,ot.has=ot.has,ot.set=ot.set,rt=function(e,t){if(ot.has(e))throw new yt("Object already initialized");return t.facade=e,ot.set(e,t),t},it=function(e){return ot.get(e)||{}},function(e){return ot.has(e)}):(at=mt("state"),vt[at]=!0,rt=function(e,t){if(T(e,at))throw new yt("Object already initialized");return t.facade=e,lt(e,at,t),t},it=function(e){return T(e,at)?e[at]:{}},function(e){return T(e,at)}),kt={set:rt,get:it,has:bt,enforce:function(e){return bt(e)?it(e):rt(e,{})},getterFor:function(t){return function(e){if(R(e)&&(e=it(e)).type===t)return e;throw new yt("Incompatible receiver, "+t+" required")}}},St=He(function(e){var r=Be.CONFIGURABLE,i=kt.enforce,t=kt.get,o=String,a=Object.defineProperty,s=y("".slice),u=y("".replace),l=y([].join),c=O&&!m(function(){return 8!==a(function(){},"length",{value:8}).length}),d=String(String).split("String"),e=e.exports=function(e,t,n){"Symbol("===s(o(t),0,7)&&(t="["+u(o(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!T(e,"name")||r&&e.name!==t)&&(O?a(e,"name",{value:t,configurable:!0}):e.name=t),c&&n&&T(n,"arity")&&e.length!==n.arity&&a(e,"length",{value:n.arity});try{n&&T(n,"constructor")&&n.constructor?O&&a(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=undefined)}catch(B){}n=i(e);return T(n,"source")||(n.source=l(d,"string"==typeof t?t:"")),e};Function.prototype.toString=e(function(){return ne(this)&&t(this).source||Ke(this)},"toString")}),_t=function(e,t,n){return n.get&&St(n.get,t,{getter:!0}),n.set&&St(n.set,t,{setter:!0}),ut.f(e,t,n)},wt=Be.EXISTS,Ct=Function.prototype,It=y(Ct.toString),Et=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Rt=y(Et.exec),xt=(O&&!wt&&_t(Ct,"name",{configurable:!0,get:function(){try{return Rt(Et,It(this))[1]}catch(u){return""}}}),function(e,t,n,r){var i=(r=r||{}).enumerable,o=r.name!==undefined?r.name:t;if(ne(n)&&St(n,o,r),r.global)i?e[t]=n:Ze(t,n);else{try{r.unsafe?e[t]&&(i=!0):delete e[t]}catch(N){}i?e[t]=n:ut.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e}),Ot=void 0,At=qe("species"),Tt=RegExp.prototype,wt=function(r,e,t,n){var a,i=qe(r),s=!m(function(){var e={};return e[i]=function(){return 7},7!==""[r](e)}),o=s&&!m(function(){var e,t=!1,n=/a/;return"split"===r&&((e={})[At]=function(){return n},(n={constructor:e,flags:""})[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](""),!t});s&&o&&!t||(a=/./[i],o=e(i,""[r],function(e,t,n,r,i){var o=t.exec;return o===Ot||o===Tt.exec?s&&!i?{done:!0,value:A(a,t,n,r)}:{done:!0,value:A(e,n,t,r)}:{done:!1}}),xt(String.prototype,r,o[0]),xt(Tt,i,o[1])),n&&lt(Tt[i],"sham",!0)},Mt=y("".charAt),Pt=y("".charCodeAt),Nt=y("".slice),Ct=function(i){return function(e,t){var n,e=_(oe(e)),t=le(t),r=e.length;return t<0||r<=t?i?"":undefined:(n=Pt(e,t))<55296||56319<n||t+1===r||(r=Pt(e,t+1))<56320||57343<r?i?Mt(e,t):n:i?Nt(e,t,t+2):r-56320+(n-55296<<10)+65536}},Ct={codeAt:Ct(!1),charAt:Ct(!0)},Lt=Ct.charAt,Dt=function(e,t,n){return t+(n&&Lt(e,t).length||1)},Ft=function(e,t){t=e[t];return re(t)?undefined:xe(t)},Ut=Math.floor,Bt=y("".charAt),zt=y("".replace),jt=y("".slice),Wt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Ht=/\$([$&'`]|\d{1,2})/g,Vt=x.RegExp,Zt={correct:!m(function(){var e=!0;try{Vt(".","d")}catch(f){e=!1}var t,n={},r="",i=e?"dgimsy":"gimsy",o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(t in e&&(o.hasIndices="d"),o)!function(e,t){Object.defineProperty(n,e,{get:function(){return r+=t,!0}})}(t,o[t]);return Object.getOwnPropertyDescriptor(Vt.prototype,"flags").get.call(n)!==i||r!==i})},Gt=function(){var e=be(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},Yt=(O&&!Zt.correct&&(_t(RegExp.prototype,"flags",{configurable:!0,get:Gt}),Zt.correct=!0),RegExp.prototype),Jt=Zt.correct?function(e){return e.flags}:function(e){return Zt.correct||!Ce(Yt,e)||T(e,"flags")?e.flags:A(Gt,e)},Kt=TypeError,qt=function(e,t){var n=e.exec;if(ne(n))return null!==(n=A(n,e,t))&&be(n),n;if("RegExp"===ee(e))return A(Ot,e,t);throw new Kt("RegExp#exec called on incompatible receiver")},Xt=qe("replace"),$t=Math.max,Qt=Math.min,en=y([].concat),tn=y([].push),nn=y("".indexOf),rn=y("".slice),on="$0"==="a".replace(/./,"$0"),an=!!/./[Xt]&&""===/./[Xt]("a","$0"),sn=(wt("replace",function(e,b,k){var S=an?"$":"$0";return[function(e,t){var n=oe(this),r=R(e)?Ft(e,Xt):undefined;return r?A(r,e,n,t):A(b,_(n),e,t)},function(e,t){var n=be(this),r=_(e),i=ne(t),e=(i||(t=_(t)),_(Jt(n)));if("string"==typeof t&&!~nn(t,S)&&!~nn(t,"$<")&&!~nn(e,"y")){var o=k(b,n,r,t);if(o.done)return o.value}var a,s=!!~nn(e,"g");s&&(a=!!~nn(e,"u")||!!~nn(e,"v"),n.lastIndex=0);for(var u,l=[];null!==(u=qt(n,r))&&(tn(l,u),s);)""===_(u[0])&&(n.lastIndex=Dt(r,de(n.lastIndex),a));for(var c,d="",f=0,h=0;h<l.length;h++){for(var p=_((u=l[h])[0]),g=$t(Qt(le(u.index),r.length),0),m=[],v=1;v<u.length;v++)tn(m,(c=u[v])===undefined?c:String(c));var y=u.groups,w=i?(w=en([p],m,g,r),y!==undefined&&tn(w,y),_(Oe(t,undefined,w))):function(o,a,s,u,l,e){var c=s+o.length,d=u.length,t=Ht;return l!==undefined&&(l=se(l),t=Wt),zt(e,t,function(e,t){var n;switch(Bt(t,0)){case"$":return"$";case"&":return o;case"`":return jt(a,0,s);case"'":return jt(a,c);case"<":n=l[jt(t,1,-1)];break;default:var r,i=+t;if(0==i)return e;if(d<i)return 0!==(r=Ut(i/10))&&r<=d?u[r-1]===undefined?Bt(t,1):u[r-1]+Bt(t,1):e;n=u[i-1]}return n===undefined?"":n})}(p,r,g,m,y,t);f<=g&&(d+=rn(r,f,g)+w,f=g+p.length)}return d+rn(r,f)}]},!!m(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!on||an),function(){}),un=_e("Reflect","construct"),ln=/^\s*(?:class|function)\b/,cn=y(ln.exec),dn=!ln.test(sn),fn=function(e){if(!ne(e))return!1;try{return un(sn,[],e),!0}catch(I){return!1}},on=function(e){if(!ne(e))return!1;switch(et(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return dn||!!cn(ln,Ke(e))}catch(I){return!0}},hn=(on.sham=!0,!un||m(function(){var e;return fn(fn.call)||!fn(Object)||!fn(function(){e=!0})||e})?on:fn),pn=Math.max,gn=Math.min,mn=function(e,t){e=le(e);return e<0?pn(e+t,0):gn(e,t)},vn=TypeError,yn=Object.getOwnPropertyDescriptor,wn=O&&!function(){if(this!==undefined)return 1;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(u){return u instanceof TypeError}}()?function(e,t){if(q(e)&&!yn(e,"length").writable)throw new vn("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},bn=y("".indexOf);wt("match",function(r,s,u){return[function(e){var t=oe(this),n=R(e)?Ft(e,r):undefined;return n?A(n,e,t):new RegExp(e)[r](_(t))},function(e){var t=be(this),n=_(e),e=u(s,t,n);if(e.done)return e.value;e=_(Jt(t));if(!~bn(e,"g"))return qt(t,n);for(var r=!!~bn(e,"u")||!!~bn(e,"v"),i=[],o=t.lastIndex=0;null!==(a=qt(t,n));){var a=_(a[0]);""===(i[o]=a)&&(t.lastIndex=Dt(n,de(t.lastIndex),r)),o++}return 0===o?null:i}]});var kn,Sn,_n,Cn,In,En,Rn,xn,on=x.navigator,on=on&&on.userAgent,On=on?String(on):"",on=x.process,n=x.Deno,on=on&&on.versions||n&&n.version,n=on&&on.v8,An=r=!(r=n?0<(jn=n.split("."))[0]&&jn[0]<4?1:+(jn[0]+jn[1]):r)&&On&&(!(jn=On.match(/Edge\/(\d+)/))||74<=jn[1])&&(jn=On.match(/Chrome\/(\d+)/))?+jn[1]:r,Tn=qe("species"),on=function(t){return 51<=An||!m(function(){var e=[];return(e.constructor={})[Tn]=function(){return{foo:1}},1!==e[t](Boolean).foo})},Mn=void 0,Pn=void 0,n=on("slice"),Nn=qe("species"),Ln=Array,Dn=Math.max,Fn=(E({target:"Array",proto:!0,forced:!n},{slice:function(e,t){var n,r,i,o=je(this),a=fe(o),s=mn(e,a),u=mn(t===undefined?a:t,a);if(q(o)&&(n=o.constructor,(n=hn(n)&&(n===Ln||q(n.prototype))||R(n)&&null===(n=n[Nn])?undefined:n)===Ln||n===undefined))return Pn(o,s,u);for(r=new(n===undefined?Ln:n)(Dn(u-s,0)),i=0;s<u;s++,i++)s in o&&Mn(r,i,o[s]);return wn(r,i),r}}),y([].slice),void 0),Un=Fn.f,Bn="object"==("undefined"==typeof window?"undefined":v(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],zn={f:function(e){if(!Bn||"Window"!==ee(e))return Un(je(e));try{return Un(e)}catch(I){return Pn(Bn)}}},jn=zn.f,r=m(function(){return!Object.getOwnPropertyNames(1)}),n=(E({target:"Object",stat:!0,forced:r},{getOwnPropertyNames:jn}),function(e){if("Function"===ee(e))return y(e)}),r=function(s){return function(e,t,n){var r=je(e),i=fe(r);if(0!==i){var o,a=mn(n,i);if(s&&t!=t){for(;a<i;)if((o=r[a++])!=o)return!0}else for(;a<i;a++)if((s||a in r)&&r[a]===t)return s||a||0}return!s&&-1}},jn={includes:r(!0),indexOf:r(!1)},Wn=jn.indexOf,Hn=n([].indexOf),Vn=!!Hn&&1/Hn([1],1,-0)<0,r=Vn||!Ue("indexOf"),Zn=(E({target:"Array",proto:!0,forced:r},{indexOf:function(e){var t=1<arguments.length?arguments[1]:undefined;return Vn?Hn(this,e,t)||0:Wn(this,e,t)}}),y([].push),["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),Gn=(Zn.concat("length","prototype"),Object.getOwnPropertyNames,{f:Object.getOwnPropertySymbols}),Yn=y([].concat),Jn=_e("Reflect","ownKeys")||function(e){var t=Fn.f(be(e)),n=Gn.f;return n?Yn(t,n(e)):t},Kn=void 0,r=function(e,t,n){for(var r=Jn(t),i=ut.f,o=Kn.f,a=0;a<r.length;a++){var s=r[a];T(e,s)||n&&T(n,s)||i(e,s,o(t,s))}},qn=x.Symbol,Xn=qn&&qn.prototype,$n=(!O||!ne(qn)||"description"in Xn&&qn().description===undefined||(kn={},r(tr=function(){var e=arguments.length<1||arguments[0]===undefined?undefined:_(arguments[0]),t=Ce(Xn,this)?new qn(e):e===undefined?qn():qn(e);return""===e&&(kn[t]=!0),t},qn),Sn=tr["for"],tr["for"]=function(e){var e=_(e),t=A(Sn,this,e);return""===e&&(kn[t]=!0),t},(tr.prototype=Xn).constructor=tr,_n="Symbol(description detection)"===String(qn("description detection")),Cn=y(Xn.valueOf),In=y(Xn.toString),En=/^Symbol\((.*)\)[^)]+$/,Rn=y("".replace),xn=y("".slice),_t(Xn,"description",{configurable:!0,get:function(){var e=Cn(this);return T(kn,e)?"":(e=In(e),""===(e=_n?xn(e,7,-1):Rn(e,En,"$1"))?undefined:e)}}),E({global:!0,constructor:!0,forced:!0},{Symbol:tr})),TypeError),Qn=function(e,t){if(Ce(t,e))return e;throw new $n("Incorrect invocation")},r=!m(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),er=void 0,tr=m(function(){er(1)}),tr=(E({target:"Object",stat:!0,forced:tr,sham:!r},{getPrototypeOf:function(e){return er(se(e))}}),mt("IE_PROTO"),Object),nr=(tr.prototype,r&&tr.getPrototypeOf,void 0),r=(E({target:"Object",stat:!0,sham:!O},{create:nr}),void 0),tr=r.f,rr=(E({target:"Object",stat:!0,forced:Object.defineProperties!==tr,sham:!O},{defineProperties:tr}),void 0),tr=m(function(){rr(1)});E({target:"Object",stat:!0,forced:tr},{keys:function(e){return rr(se(e))}});Object.keys,O&&!e&&Object.defineProperties;var ir,or=_e("document","documentElement"),tr=mt("IE_PROTO"),e=(vt[tr]=!0,ut.f),ar=qe("unscopables"),sr=Array.prototype,tr=(sr[ar]===undefined&&e(sr,ar,{configurable:!0,value:nr(null)}),function(e){sr[ar][e]=!0}),ur={},lr={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},e=ve("span").classList,e=e&&e.constructor&&e.constructor.prototype,e=e===Object.prototype?undefined:e,cr=ut.f,dr=qe("toStringTag"),fr=function(e,t,n){(e=e&&!n?e.prototype:e)&&!T(e,dr)&&cr(e,dr,{configurable:!0,value:t})},hr=void 0,pr=qe("iterator"),gr=hr.values,mr=function(e,t){if(e){if(e[pr]!==gr)try{lt(e,pr,gr)}catch(d){e[pr]=gr}if(fr(e,t,!0),lr[t])for(var n in hr)if(e[n]!==hr[n])try{lt(e,n,hr[n])}catch(d){e[n]=hr[n]}}};for(ir in lr)mr(x[ir]&&x[ir].prototype,ir);mr(e,"DOMTokenList");var i=void 0,vr=i.IteratorPrototype,yr=function(){return this},wr=function(e,t,n,r){t+=" Iterator";return e.prototype=nr(vr,{next:st(+!r,n)}),fr(e,t,!1),ur[t]=yr,e},br=void 0,kr=(E({target:"Object",stat:!0},{setPrototypeOf:br}),String,TypeError,Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=function(e){try{return y(xe(Object.getOwnPropertyDescriptor(e,"__proto__").set))}catch(d){}}(Object.prototype))(n,[]),t=n instanceof Array}catch(d){}}():undefined),Be.PROPER),Sr=Be.CONFIGURABLE,_r=i.IteratorPrototype,Cr=i.BUGGY_SAFARI_ITERATORS,Ir=qe("iterator"),Er=function(){return this},Rr=function(e,t){return{value:e,done:t}},xr=function(e,t,n,r,i,o,a){wr(n,t,r);var s,u,r=function(e){if(e===i&&h)return h;if(!Cr&&e&&e in d)return d[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},l=t+" Iterator",c=!1,d=e.prototype,f=d[Ir]||d["@@iterator"]||i&&d[i],h=!Cr&&f||r(i),p="Array"===t&&d.entries||f;if(p&&(e=er(p.call(new e)))!==Object.prototype&&e.next&&(er(e)!==_r&&(br?br(e,_r):ne(e[Ir])||xt(e,Ir,Er)),fr(e,l,!0)),kr&&"values"===i&&f&&"values"!==f.name&&(Sr?lt(d,"name","values"):(c=!0,h=function(){return A(f,this)})),i)if(s={values:r("values"),keys:o?h:r("keys"),entries:r("entries")},a)for(u in s)!Cr&&!c&&u in d||xt(d,u,s[u]);else E({target:t,proto:!0,forced:Cr||c},s);return d[Ir]!==h&&xt(d,Ir,h,{name:i}),ur[t]=h,s},Or=ut.f,Ar=kt.set,Tr=kt.getterFor("Array Iterator"),Mr=(xr(Array,"Array",function(e,t){Ar(this,{type:"Array Iterator",target:je(e),index:0,kind:t})},function(){var e=Tr(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,Rr(undefined,!0);switch(e.kind){case"keys":return Rr(n,!1);case"values":return Rr(t[n],!1)}return Rr([n,t[n]],!1)},"values"),ur.Arguments=ur.Array);if(tr("keys"),tr("values"),tr("entries"),O&&"values"!==Mr.name)try{Or(Mr,"name",{value:"values"})}catch($){}var Pr,Nr,Lr=qe("iterator"),Dr=([].keys&&("next"in(Mr=[].keys())?(Or=er(er(Mr)))!==Object.prototype&&(Pr=Or):0),R(Pr)&&!m(function(){var e={};return Pr[Lr].call(e)!==e})||(Pr={}),ne(Pr[Lr])||xt(Pr,Lr,function(){return this}),i.IteratorPrototype),Mr=qe("toStringTag"),Fr=TypeError,Ur=x.Iterator,Or=!ne(Ur)||Ur.prototype!==Dr||!m(function(){Ur({})}),o=function(){if(Qn(this,Dr),er(this)===Dr)throw new Fr("Abstract class Iterator not directly constructable")},a=function(t,e){O?_t(Dr,t,{configurable:!0,get:function(){return e},set:function(e){if(be(this),this===Dr)throw new Fr("You can't redefine this property");T(this,t)?this[t]=e:Mn(this,t,e)}}):Dr[t]=e},Br=(T(Dr,Mr)||a(Mr,"Iterator"),!Or&&T(Dr,"constructor")&&Dr.constructor!==Object||a("constructor",o),o.prototype=Dr,E({global:!0,constructor:!0,forced:Or},{Iterator:o}),n(n.bind)),zr=function(e,t){return xe(e),t===undefined?e:ke?Br(e,t):function(){return e.apply(t,arguments)}},jr=qe("iterator"),Wr=Array.prototype,Hr=function(e){return e!==undefined&&(ur.Array===e||Wr[jr]===e)},Vr=qe("iterator"),Zr=function(e){if(!re(e))return Ft(e,Vr)||Ft(e,"@@iterator")||ur[et(e)]},Gr=TypeError,Yr=function(e,t){t=arguments.length<2?Zr(e):t;if(xe(t))return be(A(t,e));throw new Gr(Ee(e)+" is not iterable")},Jr=function(e,t,n){var r,i;be(e);try{if(!(r=Ft(e,"return"))){if("throw"===t)throw n;return n}r=A(r,e)}catch($){i=!0,r=$}if("throw"===t)throw n;if(i)throw r;return be(r),n},Kr=TypeError,qr=function(e,t){this.stopped=e,this.result=t},Xr=qr.prototype,$r=function(e,t,n){var r,i,o,a,s,u=n&&n.that,l=!(!n||!n.AS_ENTRIES),c=!(!n||!n.IS_RECORD),d=!(!n||!n.IS_ITERATOR),f=!(!n||!n.INTERRUPTED),h=zr(t,u),p=function(e){var t=r;return r=undefined,t&&Jr(t,"normal"),new qr(!0,e)},g=function(e){return l?(be(e),f?h(e[0],e[1],p):h(e[0],e[1])):f?h(e,p):h(e)};if(c)r=e.iterator;else if(d)r=e;else{if(!(n=Zr(e)))throw new Kr(Ee(e)+" is not iterable");if(Hr(n)){for(i=0,o=fe(e);i<o;i++)if((a=g(e[i]))&&Ce(Xr,a))return a;return new qr(!1)}r=Yr(e,n)}for(s=(c?e:r).next;!(m=A(s,r)).done;){var m=m.value;try{a=g(m)}catch($){if(!r)throw $;Jr(r,"throw",$)}if("object"==v(a)&&a&&Ce(Xr,a))return a}return new qr(!1)},Qr=function(e){return{iterator:e,next:e.next,done:!1}},Mr=function(e,t){var n=x.Iterator,n=n&&n.prototype,e=n&&n[e],r=!1;if(e)try{e.call({next:function(){return{done:!0}},"return":function(){r=!0}},-1)}catch($){$ instanceof t||(r=!1)}if(!r)return e},ei=Mr("forEach",TypeError),ti=(E({target:"Iterator",proto:!0,real:!0,forced:ei},{forEach:function(t){be(this);try{xe(t)}catch($){Jr(this,"throw",$)}if(ei)return A(ei,this,t);var e=Qr(this),n=0;$r(e,function(e){t(e,n++)},{IS_RECORD:!0})}}),void 0),ni=function(e){if(e&&e.forEach!==ti)try{lt(e,"forEach",ti)}catch($){e.forEach=ti}};for(Nr in lr)lr[Nr]&&ni(x[Nr]&&x[Nr].prototype);ni(e);var ri,ii=qe("species"),oi=Array,ai=function(e,t){return new((n=q(e=e)&&(n=e.constructor,hn(n)&&(n===oi||q(n.prototype))||R(n)&&null===(n=n[ii]))?undefined:n)===undefined?oi:n)(0===t?0:t);var n},a=function(f){var h=1===f,p=2===f,g=3===f,m=4===f,v=6===f,y=7===f,w=5===f||v;return function(e,t,n){for(var r,i,o=se(e),a=ze(o),s=fe(a),u=zr(t,n),l=0,c=0,d=h?ai(e,s):p||y?ai(e,0):undefined;l<s;l++)if((w||l in a)&&(i=u(r=a[l],l,o),f))if(h)Mn(d,l,i);else if(i)switch(f){case 3:return!0;case 5:return r;case 6:return l;case 2:Mn(d,c++,r)}else switch(f){case 4:return!1;case 7:Mn(d,c++,r)}return v?-1:g||m?m:d}},si={forEach:a(0),map:a(1),filter:a(2),some:a(3),every:a(4),find:a(5),findIndex:a(6),filterReject:a(7)},ui=(Ue("forEach"),E({target:"Array",proto:!0,forced:[].forEach!==ti},{forEach:ti}),x.String),Or=!!Object.getOwnPropertySymbols&&!m(function(){var e=Symbol("symbol detection");return!ui(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&An&&An<41}),o={}.propertyIsEnumerable,li=Object.getOwnPropertyDescriptor,ci={f:li&&!o.call({1:2},1)?function(e){e=li(this,e);return!!e&&e.enumerable}:o},di={f:qe},fi=x,hi=ut.f,pi=function(e){var t=fi.Symbol||(fi.Symbol={});T(t,e)||hi(t,e,{value:di.f(e)})},gi=void 0,mi=si.forEach,vi=mt("hidden"),yi=kt.set,wi=kt.getterFor("Symbol"),bi=Object.prototype,e=x.Symbol,ki=e&&e.prototype,Si=x.RangeError,_i=x.TypeError,a=x.QObject,Ci=Kn.f,Ii=ut.f,Ei=zn.f,Ri=ci.f,xi=y([].push),Oi=ct("symbols"),Ai=ct("op-symbols"),o=ct("wks"),Ti=!a||!a.prototype||!a.prototype.findChild,Mi=function(e,t,n){var r=Ci(bi,t);return r&&delete bi[t],Ii(e,t,n),r&&e!==bi&&Ii(bi,t,r),e},Pi=O&&m(function(){return 7!==nr(Ii({},"a",{get:function(){return Ii(this,"a",{value:7}).a}})).a})?Mi:Ii,Ni=function(e,t){var n=Oi[e]=nr(ki);return yi(n,{type:"Symbol",tag:e,description:t}),O||(n.description=t),n},Li=function(e,t,n){e===bi&&Li(Ai,t,n),be(e);t=gi(t);return be(n),(T(Oi,t)?(("enumerable"in n?!n.enumerable:!T(e,t)||T(e,vi)&&e[vi][t])?(T(e,vi)||Ii(e,vi,st(1,nr(null))),e[vi][t]=!0):(T(e,vi)&&e[vi][t]&&(e[vi][t]=!1),n=nr(n,{enumerable:st(0,!1)})),Pi):Ii)(e,t,n)},Di=function(t,e){be(t);var n=je(e),e=rr(n).concat(Ui(n));return mi(e,function(e){O&&!A(Fi,n,e)||Li(t,e,n[e])}),t},Fi=function(e){var e=gi(e),t=A(Ri,this,e);return!(this===bi&&T(Oi,e)&&!T(Ai,e))&&(!(t||!T(this,e)||!T(Oi,e)||T(this,vi)&&this[vi][e])||t)},mt=function(e,t){var n,e=je(e),t=gi(t);if(e!==bi||!T(Oi,t)||T(Ai,t))return!(n=Ci(e,t))||!T(Oi,t)||T(e,vi)&&e[vi][t]||(n.enumerable=!0),n},a=function(e){var e=Ei(je(e)),t=[];return mi(e,function(e){T(Oi,e)||T(vt,e)||xi(t,e)}),t},Ui=function(e){var t=e===bi,e=Ei(t?Ai:je(e)),n=[];return mi(e,function(e){!T(Oi,e)||t&&!T(bi,e)||xi(n,Oi[e])}),n},mt=(Or||(ki=(e=function(){if(Ce(ki,this))throw new _i("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==undefined?_(arguments[0]):undefined,n=pt(e),r=function(e){var t=this===undefined?x:this,e=(t===bi&&A(r,Ai,e),T(t,vi)&&T(t[vi],n)&&(t[vi][n]=!1),st(1,e));try{Pi(t,n,e)}catch($){if(!($ instanceof Si))throw $;Mi(t,n,e)}};return O&&Ti&&Pi(bi,n,{configurable:!0,set:r}),Ni(n,e)}).prototype,xt(ki,"toString",function(){return wi(this).tag}),xt(e,"withoutSetter",function(e){return Ni(pt(e),e)}),ci.f=Fi,ut.f=Li,r.f=Di,Kn.f=mt,Fn.f=zn.f=a,Gn.f=Ui,di.f=function(e){return Ni(qe(e),e)},O&&(_t(ki,"description",{configurable:!0,get:function(){return wi(this).description}}),xt(bi,"propertyIsEnumerable",Fi,{unsafe:!0}))),E({global:!0,constructor:!0,wrap:!0,forced:!Or,sham:!Or},{Symbol:e}),mi(rr(o),function(e){pi(e)}),E({target:"Symbol",stat:!0,forced:!Or},{useSetter:function(){Ti=!0},useSimple:function(){Ti=!1}}),E({target:"Object",stat:!0,forced:!Or,sham:!O},{create:function(e,t){return t===undefined?nr(e):Di(nr(e),t)},defineProperty:Li,defineProperties:Di,getOwnPropertyDescriptor:mt}),E({target:"Object",stat:!0,forced:!Or},{getOwnPropertyNames:a}),r=(r=_e("Symbol"))&&r.prototype,ri=r&&r.valueOf,o=qe("toPrimitive"),r&&!r[o]&&xt(r,o,function(e){return A(ri,this)},{arity:1}),fr(e,"Symbol"),vt[vi]=!0,Or&&!!Symbol["for"]&&!!Symbol.keyFor),Bi=ct("string-to-symbol-registry"),zi=ct("symbol-to-string-registry"),ji=(E({target:"Symbol",stat:!0,forced:!mt},{"for":function(e){var t,e=_(e);return T(Bi,e)?Bi[e]:(t=_e("Symbol")(e),Bi[e]=t,zi[t]=e,t)}}),void 0),Wi=ct("symbol-to-string-registry");E({target:"Symbol",stat:!0,forced:!mt},{keyFor:function(e){if(!ji(e))throw new TypeError(Ee(e)+" is not a symbol");if(T(Wi,e))return Wi[e]}});var Hi,Vi=kt.get,Zi="\t\n\x0B\f\r                 \u2028\u2029\ufeff",Gi=y("".replace),Yi=RegExp("^["+Zi+"]+"),Ji=RegExp("(^|[^"+Zi+"])["+Zi+"]+$"),a=function(t){return function(e){e=_(oe(e));return 1&t&&(e=Gi(e,Yi,"")),e=2&t?Gi(e,Ji,"$1"):e}},r={start:a(1),end:a(2),trim:a(3)},Ki=Be.PROPER,qi=r.trim,Xi=(E({target:"String",proto:!0,forced:(Hi="trim",m(function(){return!!Zi[Hi]()||"​…᠎"!=="​…᠎"[Hi]()||Ki&&Zi[Hi].name!==Hi}))},{trim:function(){return qi(this)}}),r.trim),$i=x.parseInt,o=x.Symbol,Qi=o&&o.iterator,eo=/^[+-]?0x/i,to=y(eo.exec),e=8!==$i(Zi+"08")||22!==$i(Zi+"0x16")||Qi&&!m(function(){$i(Object(Qi))})?function(e,t){e=Xi(_(e));return $i(e,t>>>0||(to(eo,e)?16:10))}:$i,no=(E({global:!0,forced:parseInt!==e},{parseInt:e}),SyntaxError),ro=parseInt,io=String.fromCharCode,oo=y("".charAt),ao=y("".slice),so=y(/./.exec),uo={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},lo=/^[\da-f]{4}$/i,co=/^[\u0000-\u001F]$/,fo=RangeError,ho=Math.floor,mt=function(e){var t=_(oe(this)),n="",r=le(e);if(r<0||r===Infinity)throw new fo("Wrong number of repetitions");for(;0<r;(r=ho(r/2))&&(t+=t))r%2&&(n+=t);return n},po=y(mt),go=y("".slice),mo=Math.ceil,a=function(i){return function(e,t,n){var e=_(oe(e)),t=de(t),r=e.length;return t<=r||""===(n=n===undefined?" ":_(n))?e:((r=po(n,mo((t=t-r)/n.length))).length>t&&(r=go(r,0,t)),i?e+r:r+e)}},vo=[a(!1),a(!0)][0],yo=RangeError,wo=isFinite,bo=Math.abs,o=Date.prototype,ko=o.toISOString,So=y(o.getTime),_o=y(o.getUTCDate),Co=y(o.getUTCFullYear),Io=y(o.getUTCHours),Eo=y(o.getUTCMilliseconds),Ro=y(o.getUTCMinutes),xo=y(o.getUTCMonth),Oo=y(o.getUTCSeconds),e=m(function(){return"0385-07-25T07:06:39.999Z"!==ko.call(new Date(-50000000000001))})||!m(function(){ko.call(new Date(NaN))})?function(){var e,t,n;if(wo(So(this)))return e=Co(this),t=Eo(this),(n=e<0?"-":9999<e?"+":"")+vo(bo(e),n?6:4,0)+"-"+vo(xo(this)+1,2,0)+"-"+vo(_o(this),2,0)+"T"+vo(Io(this),2,0)+":"+vo(Ro(this),2,0)+":"+vo(Oo(this),2,0)+"."+vo(t,3,0)+"Z";throw new yo("Invalid time value")}:ko,Ao=(E({target:"Date",proto:!0,forced:Date.prototype.toISOString!==e},{toISOString:e}),void 0),a=m(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),To=(E({target:"Date",proto:!0,arity:1,forced:a},{toJSON:function(e){var t=se(this),n=Ao(t,"number");return"number"!=typeof n||isFinite(n)?t.toISOString():null}}),void 0),Mo=To.ArrayBuffer,Po=To.DataView,o=Po.prototype,No=n(Mo.prototype.slice),Lo=n(o.getUint8),Do=n(o.setUint8),e=m(function(){return!new Mo(2).slice(1,undefined).byteLength}),a=(E({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:e},{slice:function(e,t){if(No&&t===undefined)return No(be(this),e);for(var n=be(this).byteLength,r=mn(e,n),i=mn(t===undefined?n:t,n),e=new Mo(de(i-r)),o=new Po(this),a=new Po(e),s=0;r<i;)Do(a,s++,Lo(o,r++));return e}}),void 0),Fo=(E({global:!0,constructor:!0,forced:!0},{DataView:To.DataView}),function(e,t,n){for(var r in t)xt(e,r,t[r],n);return e}),Uo=RangeError,Bo=function(e){if(e===undefined)return 0;var e=le(e),t=de(e);if(e!==t)throw new Uo("Wrong length or index");return t},zo=(E({target:"Math",stat:!0},{fround:void 0}),E({target:"Math",stat:!0},{sign:void 0}),Math.sign,Array),jo=Math.abs,Wo=Math.pow,Ho=Math.floor,Vo=Math.log,Zo=Math.LN2,Go=function(e){for(var t=se(this),n=fe(t),r=arguments.length,i=mn(1<r?arguments[1]:undefined,n),r=2<r?arguments[2]:undefined,o=r===undefined?n:mn(r,n);i<o;)t[i++]=e;return t},Yo=function(e,t,n){return br&&ne(t=t.constructor)&&t!==n&&R(t=t.prototype)&&t!==n.prototype&&br(e,t),e},Jo=kt.getterFor("ArrayBuffer"),Ko=kt.getterFor("DataView"),qo=kt.set,o=x.ArrayBuffer,e=o,Xo=e&&e.prototype,o=x.DataView,$o=o&&o.prototype,Qo=(Object.prototype,x.Array),ea=x.RangeError,ta=y(Go),na=y([].reverse),ra=function(e,t,n){var r,i,o,a=zo(n),s=8*n-t-1,n=(1<<s)-1,u=n>>1,l=23===t?Wo(2,-24)-Wo(2,-77):0,c=e<0||0===e&&1/e<0?1:0,d=0;for((e=jo(e))!=e||e===Infinity?(i=e!=e?1:0,r=n):(r=Ho(Vo(e)/Zo),e*(o=Wo(2,-r))<1&&(r--,o*=2),2<=(e+=1<=r+u?l/o:l*Wo(2,1-u))*o&&(r++,o/=2),n<=r+u?(i=0,r=n):1<=r+u?(i=(e*o-1)*Wo(2,t),r+=u):(i=e*Wo(2,u-1)*Wo(2,t),r=0));8<=t;)a[d++]=255&i,i/=256,t-=8;for(r=r<<t|i,s+=t;0<s;)a[d++]=255&r,r/=256,s-=8;return a[d-1]|=128*c,a},ia=function(e,t){var n,r=e.length,i=8*r-t-1,o=(1<<i)-1,a=o>>1,s=i-7,u=r-1,i=e[u--],l=127&i;for(i>>=7;0<s;)l=256*l+e[u--],s-=8;for(n=l&(1<<-s)-1,l>>=-s,s+=t;0<s;)n=256*n+e[u--],s-=8;if(0===l)l=1-a;else{if(l===o)return n?NaN:i?-Infinity:Infinity;n+=Wo(2,t),l-=a}return(i?-1:1)*n*Wo(2,l-t)},oa=function(e){return[255&e]},aa=function(e){return[255&e,e>>8&255]},sa=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},ua=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},la=function(e){return ra((void 0)(e),23,4)},ca=function(e){return ra(e,52,8)},s=function(e,t,n){_t(e.prototype,t,{configurable:!0,get:function(){return n(this)[t]}})},da=function(e,t,n,r){e=Ko(e),n=Bo(n),r=!!r;if(n+t>e.byteLength)throw new ea("Wrong index");n+=e.byteOffset,e=Pn(e.bytes,n,n+t);return r?e:na(e)},fa=function(e,t,n,r,i,o){var e=Ko(e),n=Bo(n),a=r(+i),s=!!o;if(n+t>e.byteLength)throw new ea("Wrong index");for(var u=e.bytes,l=n+e.byteOffset,c=0;c<t;c++)u[l+c]=a[s?c:t-c-1]},Xo=(e=function(e){Qn(this,Xo);e=Bo(e);qo(this,{type:"ArrayBuffer",bytes:ta(Qo(e),0),byteLength:e}),O||(this.byteLength=e,this.detached=!1)}).prototype,$o=(o=function(e,t,n){Qn(this,$o),Qn(e,Xo);var r=Jo(e),i=r.byteLength,t=le(t);if(t<0||i<t)throw new ea("Wrong offset");if(t+(n=n===undefined?i-t:Bo(n))>i)throw new ea("Wrong length");qo(this,{type:"DataView",buffer:e,byteLength:n,byteOffset:t,bytes:r.bytes}),O||(this.buffer=e,this.byteLength=n,this.byteOffset=t)}).prototype,ha=(O&&(s(e,"byteLength",Jo),s(o,"buffer",Ko),s(o,"byteLength",Ko),s(o,"byteOffset",Ko)),Fo($o,{getInt8:function(e){return da(this,1,e)[0]<<24>>24},getUint8:function(e){return da(this,1,e)[0]},getInt16:function(e){e=da(this,2,e,1<arguments.length&&arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(e){e=da(this,2,e,1<arguments.length&&arguments[1]);return e[1]<<8|e[0]},getInt32:function(e){return ua(da(this,4,e,1<arguments.length&&arguments[1]))},getUint32:function(e){return ua(da(this,4,e,1<arguments.length&&arguments[1]))>>>0},getFloat32:function(e){return ia(da(this,4,e,1<arguments.length&&arguments[1]),23)},getFloat64:function(e){return ia(da(this,8,e,1<arguments.length&&arguments[1]),52)},setInt8:function(e,t){fa(this,1,e,oa,t)},setUint8:function(e,t){fa(this,1,e,oa,t)},setInt16:function(e,t){fa(this,2,e,aa,t,2<arguments.length&&arguments[2])},setUint16:function(e,t){fa(this,2,e,aa,t,2<arguments.length&&arguments[2])},setInt32:function(e,t){fa(this,4,e,sa,t,2<arguments.length&&arguments[2])},setUint32:function(e,t){fa(this,4,e,sa,t,2<arguments.length&&arguments[2])},setFloat32:function(e,t){fa(this,4,e,la,t,2<arguments.length&&arguments[2])},setFloat64:function(e,t){fa(this,8,e,ca,t,2<arguments.length&&arguments[2])}}),fr(e,"ArrayBuffer"),fr(o,"DataView"),qe("species")),pa=function(e){e=_e(e);O&&e&&!e[ha]&&_t(e,ha,{configurable:!0,get:function(){return this}})},s=To.ArrayBuffer,e=x.ArrayBuffer,ga=(E({global:!0,constructor:!0,forced:e!==s},{ArrayBuffer:s}),pa("ArrayBuffer"),m(function(){var e;"function"==typeof ArrayBuffer&&(e=new ArrayBuffer(8),Object.isExtensible(e))&&Object.defineProperty(e,"a",{value:8})})),ma=Object.isExtensible,va=m(function(){ma(1)})||ga?function(e){return!!R(e)&&(!ga||"ArrayBuffer"!==ee(e))&&(!ma||ma(e))}:ma,ya=(E({target:"Object",stat:!0,forced:Object.isExtensible!==va},{isExtensible:va}),TypeError),wa=function(e,t){if(!delete e[t])throw new ya("Cannot delete property "+Ee(t)+" of "+Ee(e))},o=on("splice"),ba=Math.max,ka=Math.min,Sa=(E({target:"Array",proto:!0,forced:!o},{splice:function(e,t){var n,r,i,o,a,s,u=se(this),l=fe(u),c=mn(e,l),e=arguments.length;for(0===e?n=r=0:r=1===e?(n=0,l-c):(n=e-2,ka(ba(le(t),0),l-c)),pe(l+n-r),i=ai(u,r),o=0;o<r;o++)(a=c+o)in u&&Mn(i,o,u[a]);if(wn(i,r),n<r){for(o=c;o<l-r;o++)s=o+n,(a=o+r)in u?u[s]=u[a]:wa(u,s);for(o=l;l-r+n<o;o--)wa(u,o-1)}else if(r<n)for(o=l-r;c<o;o--)s=o+n-1,(a=o+r-1)in u?u[s]=u[a]:wa(u,s);for(o=0;o<n;o++)u[o+c]=arguments[o+2];return wn(u,l-r+n),i}}),He(function(e){var t=ut.f,a=pt("meta"),n=0,r=function(e){t(e,a,{value:{objectID:"O"+n++,weakData:{}}})},s=e.exports={enable:function(){s.enable=function(){},0;var i=Fn.f,o=y([].splice),e={};e[a]=1,i(e).length&&(Fn.f=function(e){for(var t=i(e),n=0,r=t.length;n<r;n++)if(t[n]===a){o(t,n,1);break}return t},E({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:zn.f}))},fastKey:function(e,t){if(!R(e))return"symbol"==v(e)?e:("string"==typeof e?"S":"P")+e;if(!T(e,a)){if(!va(e))return"F";if(!t)return"E";r(e)}return e[a].objectID},getWeakData:function(e,t){if(!T(e,a)){if(!va(e))return!0;if(!t)return!1;r(e)}return e[a].weakData},onFreeze:function(e){return e}};vt[a]=!0})),_a=Sa.onFreeze,Ca=Object.preventExtensions,e=m(function(){Ca(1)}),Ia=(E({target:"Object",stat:!0,forced:e,sham:!0},{preventExtensions:function(e){return Ca&&R(e)?Ca(_a(e)):e}}),m(function(){return Object.isExtensible(Object.preventExtensions({}))}),Sa.onFreeze),Ea=Object.freeze,s=m(function(){Ea(1)}),Ra=(E({target:"Object",stat:!0,forced:s,sham:!0},{freeze:function(e){return Ea&&R(e)?Ea(Ia(e)):e}}),!m(function(){var e=JSON.rawJSON("9007199254740993");return!JSON.isRawJSON(e)||"9007199254740993"!==JSON.stringify(e)})),xa=String,Oa=_e("JSON","stringify"),Aa=y(/./.exec),Ta=y("".charAt),Ma=y("".charCodeAt),Pa=y("".replace),Na=y("".slice),La=y([].push),Da=y(1.1.toString),Fa=/[\uD800-\uDFFF]/g,Ua=/^[\uD800-\uDBFF]$/,Ba=/^[\uDC00-\uDFFF]$/,za=pt(),ja=za.length,o=!Or||m(function(){var e=_e("Symbol")("stringify detection");return"[null]"!==Oa([e])||"{}"!==Oa({a:e})||"{}"!==Oa(Object(e))}),Wa=m(function(){return'"\\udf06\\ud834"'!==Oa("\udf06\ud834")||'"\\udead"'!==Oa("\udead")}),Ha=o?function(e,t){var n=Pn(arguments),r=Za(t);if(ne(r)||e!==undefined&&!ji(e))return n[1]=function(e,t){if(ne(r)&&(t=A(r,this,xa(e),t)),!ji(t))return t},Oe(Oa,null,n)}:Oa,Va=function(e,t,n){var r=Ta(n,t-1),n=Ta(n,t+1);return Aa(Ua,e)&&!Aa(Ba,n)||Aa(Ba,e)&&!Aa(Ua,r)?"\\u"+Da(Ma(e,0),16):e},Za=function(e){if(ne(e))return e;if(q(e)){for(var t=e.length,r=[],n=0;n<t;n++){var i=e[n];"string"==typeof i?La(r,i):"number"!=typeof i&&"Number"!==ee(i)&&"String"!==ee(i)||La(r,_(i))}var o=r.length,a=!0;return function(e,t){if(a)return a=!1,t;if(q(this))return t;for(var n=0;n<o;n++)if(r[n]===e)return t}}},e=(Oa&&E({target:"JSON",stat:!0,arity:3,forced:o||Wa||!Ra},{stringify:function(e,t,n){var r=Za(t),i=[],o=Ha(e,function(e,t){e=ne(r)?A(r,this,xa(e),t):t;return!Ra&&function(e){if(R(e))return(e=Vi(e))&&"RawJSON"===e.type}(e)?za+(La(i,e.rawJSON)-1):e},n);if("string"!=typeof o)return o;if(Wa&&(o=Pa(o,Fa,Va)),Ra)return o;for(var a="",s=o.length,u=0;u<s;u++){var l,c,d=Ta(o,u);'"'===d?(l=function(e,t){for(var n=!0,r="";t<e.length;){var i=oo(e,t);if("\\"===i){var o=ao(e,t,t+2);if(T(uo,o))r+=uo[o],t+=2;else{if("\\u"!==o)throw new no('Unknown escape sequence: "'+o+'"');o=ao(e,t+=2,t+4);if(!so(lo,o))throw new no("Bad Unicode escape at: "+t);r+=io(ro(o,16)),t+=4}}else{if('"'===i){n=!1,t++;break}if(so(co,i))throw new no("Bad control character in string literal at: "+t);r+=i,t++}}if(n)throw new no("Unterminated string at: "+t);return{value:r,end:t}}(o,++u).end-1,c=Na(o,u,l),a+=Na(c,0,ja)===za?i[Na(c,ja)]:'"'+c+'"',u=l):a+=d}return a}}),!Or||m(function(){Gn.f(1)})),Ga=(E({target:"Object",stat:!0,forced:e},{getOwnPropertySymbols:function(e){var t=Gn.f;return t?t(se(e)):[]}}),pi("iterator"),Ct.charAt),Ya=kt.set,Ja=kt.getterFor("String Iterator"),s=(xr(String,"String",function(e){Ya(this,{type:"String Iterator",string:_(e),index:0})},function(){var e=Ja(this),t=e.string,n=e.index;return n>=t.length?Rr(undefined,!0):(t=Ga(t,n),e.index+=t.length,Rr(t,!1))}),Or&&!Symbol.sham&&"symbol"==v(Symbol.iterator)),o=(Object,TypeError,TypeError,qe("toPrimitive"),TypeError,Object.defineProperty,ut.f),Ka=(E({target:"Object",stat:!0,forced:Object.defineProperty!==o,sham:!O},{defineProperty:o}),m(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}),qe("isConcatSpreadable")),e=51<=An||!m(function(){var e=[];return e[Ka]=!1,e.concat()[0]!==e}),Or=!e||!on("concat"),qa=(E({target:"Array",proto:!0,arity:1,forced:Or},{concat:function(e){for(var t,n,r,i,o,a=se(this),s=ai(a,0),u=0,l=-1,c=arguments.length;l<c;l++)if(i=r=-1===l?a:arguments[l],o=void 0,!R(i)||((o=i[Ka])!==undefined?!o:!q(i)))pe(u+1),Mn(s,u++,r);else for(n=fe(r),pe(u+n),t=0;t<n;t++,u++)t in r&&Mn(s,u,r[t]);return wn(s,u),s}}),Function),Xa=y([].concat),$a=y([].join),Qa={},es=ke?qa.bind:function(t){var n=xe(this),e=n.prototype,r=Pn(arguments,1),i=function(){var e=Xa(r,Pn(arguments));return this instanceof i?function(e,t,n){if(!T(Qa,t)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";Qa[t]=qa("C,a","return new C("+$a(r,",")+")")}return Qa[t](e,n)}(n,e.length,e):n.apply(t,e)};return R(e)&&(i.prototype=e),i},o=(E({target:"Function",proto:!0,forced:Function.bind!==es},{bind:es}),Function.prototype),e=o.call,Or=(ke&&o.bind.bind(e,e),Date.prototype),ts=y(Or.toString),ns=y(Or.getTime),e=("Invalid Date"!==String(new Date(NaN))&&xt(Or,"toString",function(){var e=ns(this);return e==e?ts(this):"Invalid Date"}),Be.PROPER),o=RegExp.prototype,rs=o.toString,Or=m(function(){return"/a/b"!==rs.call({source:"a",flags:"b"})}),e=e&&"toString"!==rs.name,is=((Or||e)&&xt(o,"toString",function(){var e=be(this);return"/"+_(e.source)+"/"+_(Jt(e))},{unsafe:!0}),x.RegExp),Or=m(function(){var e=is("a","y");return e.lastIndex=2,null!==e.exec("abcd")}),e=Or||m(function(){return!is("a","y").sticky}),o={BROKEN_CARET:Or||m(function(){var e=is("^r","gy");return e.lastIndex=2,null!==e.exec("str")}),MISSED_STICKY:e,UNSUPPORTED_Y:Or},os=kt.get,as=RegExp.prototype,ss=TypeError,us=(O&&o.MISSED_STICKY&&_t(as,"sticky",{configurable:!0,get:function(){if(this!==as){if("RegExp"===ee(this))return!!os(this).sticky;throw new ss("Incompatible receiver, RegExp required")}}}),/#|\.prototype\./),e=function(e,t){e=cs[ls(e)];return e===fs||e!==ds&&(ne(t)?m(t):!!t)},ls=e.normalize=function(e){return String(e).replace(us,".").toLowerCase()},cs=e.data={},ds=e.NATIVE="N",fs=e.POLYFILL="P",hs=e,ps=qe("match"),gs=function(e){var t;return R(e)&&((t=e[ps])!==undefined?!!t:"RegExp"===ee(e))},ms=ut.f,vs=x.RegExp,ys=m(function(){var e=vs(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}),ws=x.RegExp,bs=m(function(){var e=ws("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),Or=Fn.f,ks=kt.enforce,Ss=qe("match"),_s=x.RegExp,Cs=_s.prototype,Is=x.SyntaxError,Es=y(Cs.exec),Rs=y("".charAt),xs=y("".replace),Os=y("".indexOf),As=y("".slice),Ts=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Ms=/a/g,Ps=/a/g,e=new _s(Ms)!==Ms,Ns=o.MISSED_STICKY,Ls=o.UNSUPPORTED_Y,e=O&&(!e||Ns||ys||bs||m(function(){return Ps[Ss]=!1,_s(Ms)!==Ms||_s(Ps)===Ps||"/a/i"!==String(_s(Ms,"i"))}));if(hs("RegExp",e)){for(var Ds=function(e,t){var n,r,i=Ce(Cs,this),o=gs(e),a=t===undefined,s=[],u=e;if(!i&&o&&a&&e.constructor===Ds)return e;if((o||Ce(Cs,e))&&(e=e.source,a)&&(t=Jt(u)),e=e===undefined?"":_(e),t=t===undefined?"":_(t),u=e,o=t=ys&&"dotAll"in Ms&&(n=!!t&&-1<Os(t,"s"))?xs(t,/s/g,""):t,Ns&&"sticky"in Ms&&(r=!!t&&-1<Os(t,"y"))&&Ls&&(t=xs(t,/y/g,"")),bs&&(e=(a=function(e){for(var t,n=e.length,r=0,i="",o=[],a=nr(null),s=!1,u=!1,l=0,c="";r<n;r++){if("\\"===(t=Rs(e,r))){if(t+=Rs(e,++r),!u&&"\\"===Rs(t,1)){i+="\\x5c";continue}}else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:i+=t,Es(Ts,As(e,r+1))?(r+=2,u=!0,l++):"?"!==Rs(e,r+1)&&l++;continue;case">"===t&&u:if(""===c||T(a,c))throw new Is("Invalid capture group name");a[c]=!0,u=!(o[o.length]=[c,l]),c="";continue}u?c+=t:i+=t}for(var d=0;d<o.length;d++)for(var f="\\k<"+o[d][0]+">",h="\\"+o[d][1];-1<Os(i,f);)i=xs(i,f,h);return[i,o]}(e))[0],s=a[1]),a=Yo(_s(e,t),i?this:Cs,Ds),(n||r||s.length)&&(t=ks(a),n&&(t.dotAll=!0,t.raw=Ds(function(e){for(var t,n=e.length,r=0,i="",o=!1;r<n;r++)"\\"!==(t=Rs(e,r))?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),i+=t):i+="[\\s\\S]":i+=t+Rs(e,++r);return i}(e),o)),r&&(t.sticky=!0),s.length)&&(t.groups=s),e!==u)try{lt(a,"source",""===u?"(?:)":u)}catch($){}return a},Fs=Or(_s),Us=0;Fs.length>Us;)!function(e,t,n){n in e||ms(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}(Ds,_s,Fs[Us++]);(Cs.constructor=Ds).prototype=Cs,xt(x,"RegExp",Ds,{constructor:!0})}pa("RegExp");ct("native-string-replace",String.prototype.replace);var Bs=RegExp.prototype.exec,zs=(y("".charAt),y("".indexOf),y("".replace),y("".slice),e=/b*/g,A(Bs,Or=/a/,"a"),A(Bs,e,"a"),/()??/.exec("")[1],undefined,E({target:"RegExp",proto:!0,forced:/./.exec!==Ot},{exec:Ot}),TypeError),js=function(e){if(hn(e))return e;throw new zs(Ee(e)+" is not a constructor")},Ws=qe("species"),Hs=function(e,t){var e=be(e).constructor;return e===undefined||re(e=be(e)[Ws])?t:js(e)},Vs=o.UNSUPPORTED_Y,Zs=Math.min,Gs=y([].push),Ys=y("".slice),Js=y("".indexOf),Or=!m(function(){var e=/(?:)/,t=e.exec,e=(e.exec=function(){return t.apply(this,arguments)},"ab".split(e));return 2!==e.length||"a"!==e[0]||"b"!==e[1]}),Ks="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length,qs=(wt("split",function(i,p,g){var m="0".split(undefined,0).length?function(e,t){return e===undefined&&0===t?[]:A(p,this,e,t)}:p;return[function(e,t){var n=oe(this),r=R(e)?Ft(e,i):undefined;return r?A(r,e,n,t):A(m,_(n),e,t)},function(e,t){var n=be(this),r=_(e);if(!Ks){e=g(m,n,r,t,m!==p);if(e.done)return e.value}var e=Hs(n,RegExp),i=_(Jt(n)),o=!!~Js(i,"u")||!!~Js(i,"v"),a=(Vs?~Js(i,"g")||(i+="g"):~Js(i,"y")||(i+="y"),new e(Vs?"^(?:"+n.source+")":n,i)),s=t===undefined?4294967295:t>>>0;if(0==s)return[];if(0===r.length)return null===qt(a,r)?[r]:[];for(var u=0,l=0,c=[];l<r.length;){a.lastIndex=Vs?0:l;var d,f=qt(a,Vs?Ys(r,l):r);if(null===f||(d=Zs(de(a.lastIndex+(Vs?l:0)),r.length))===u)l=Dt(r,l,o);else{if(Gs(c,Ys(r,u,l)),c.length===s)return c;for(var h=1;h<=f.length-1;h++)if(Gs(c,f[h]),c.length===s)return c;l=u=d}}return Gs(c,Ys(r,u)),c}]},Ks||!Or,Vs),Object),Xs=(y("".split),m(function(){return!qs("z").propertyIsEnumerable(0)}),Kn.f),e=!O||m(function(){Xs(1)}),o=(E({target:"Object",stat:!0,forced:e,sham:!O},{getOwnPropertyDescriptor:function(e,t){return Xs(je(e),t)}}),Object.getOwnPropertyDescriptor,Kn.f,E({global:!0,forced:x.globalThis!==x},{globalThis:x}),function(e){return e&&e.Math===Math&&e}),Or=(o("object"==("undefined"==typeof globalThis?"undefined":v(globalThis))&&globalThis)||o("object"==("undefined"==typeof window?"undefined":v(window))&&window)||o("object"==("undefined"==typeof self?"undefined":v(self))&&self)||o("object"==v(t)&&t)||o("object"==v(t)&&t)||function(){return this}()||Function("return this")(),x.Symbol),e=(ct("wks"),s?Or["for"]:Or&&Or.withoutSetter,{}),$s=(e[qe("toStringTag")]="z",String(e),xt(Object.prototype,"toString",function(){return"[object "+et(this)+"]"},{unsafe:!0}),Mr("find",TypeError)),Qs=(E({target:"Iterator",proto:!0,real:!0,forced:$s},{find:function(n){be(this);try{xe(n)}catch($){Jr(this,"throw",$)}var e,r;return $s?A($s,this,n):(e=Qr(this),$r(e,function(e,t){if(n(e,r++))return t(e)},{IS_RECORD:!(r=0),INTERRUPTED:!0}).result)}}),si.find),eu=!0,tu=("find"in[]&&Array(1).find(function(){eu=!1}),E({target:"Array",proto:!0,forced:eu},{find:function(e){return Qs(this,e,1<arguments.length?arguments[1]:undefined)}}),tr("find"),Date),nu=y(tu.prototype.getTime),ru=(E({target:"Date",stat:!0},{now:function(){return nu(new tu)}}),function(e,t,n,r){try{return r?t(be(n)[0],n[1]):t(n)}catch($){Jr(e,"throw",$)}}),iu=Array,ou=function(e){var t=hn(this),n=arguments.length,r=1<n?arguments[1]:undefined,i=r!==undefined;i&&(r=zr(r,2<n?arguments[2]:undefined));var o,a,s,u,l,c,d=se(e),n=Zr(d),f=0;if(!n||this===iu&&Hr(n))for(o=fe(d),a=t?new this(o):iu(o);f<o;f++)c=i?r(d[f],f):d[f],Mn(a,f,c);else for(a=t?new this:[],l=(u=Yr(d,n)).next;!(s=A(l,u)).done;f++){c=i?ru(u,r,[s.value,f],!0):s.value;try{Mn(a,f,c)}catch($){Jr(u,"throw",$)}}return wn(a,f),a},au=void 0,t=!au(function(e){Array.from(e)}),o=(E({target:"Array",stat:!0,forced:t},{from:ou}),qe("iterator"));try{var su=0,uu={next:function(){return{done:!!su++}},"return":function(){0}};uu[o]=function(){return this},Array.from(uu,function(){throw 2})}catch($){}var lu,cu,ct=function(e,t,n){var r,i,o,a,s,u=-1!==e.indexOf("Map"),l=-1!==e.indexOf("Weak"),c=u?"set":"add",d=x[e],f=d&&d.prototype,h=d,p={},g=function(e){var n=y(f[e]);xt(f,e,"add"===e?function(e){return n(this,0===e?0:e),this}:"delete"===e?function(e){return!(l&&!R(e))&&n(this,0===e?0:e)}:"get"===e?function(e){return l&&!R(e)?undefined:n(this,0===e?0:e)}:"has"===e?function(e){return!(l&&!R(e))&&n(this,0===e?0:e)}:function(e,t){return n(this,0===e?0:e,t),this})};return hs(e,!ne(d)||!(l||f.forEach&&!m(function(){(new d).entries().next()})))?(h=n.getConstructor(t,e,u,c),Sa.enable()):hs(e,!0)&&(i=(r=new h)[c](l?{}:-0,1)!==r,o=m(function(){r.has(1)}),a=au(function(e){new d(e)}),s=!l&&m(function(){for(var e=new d,t=5;t--;)e[c](t,t);return!e.has(-0)}),a||(((h=t(function(e,t){Qn(e,f);e=Yo(new d,e,h);return re(t)||$r(t,e[c],{that:e,AS_ENTRIES:u}),e})).prototype=f).constructor=h),(o||s)&&(g("delete"),g("has"),u)&&g("get"),(s||i)&&g(c),l)&&f.clear&&delete f.clear,E({global:!0,constructor:!0,forced:(p[e]=h)!==d},p),fr(h,e),l||n.setStrong(h,e,u),h},du=si.findIndex,fu=!0,hu=("findIndex"in[]&&Array(1).findIndex(function(){fu=!1}),E({target:"Array",proto:!0,forced:fu},{findIndex:function(e){return du(this,e,1<arguments.length?arguments[1]:undefined)}}),tr("findIndex"),Sa.getWeakData),pu=kt.set,gu=kt.getterFor,mu=si.find,vu=si.findIndex,yu=y([].splice),wu=0,bu=function(e){return e.frozen||(e.frozen=new ku)},ku=function(){this.entries=[]},Su=function(e,t){return mu(e.entries,function(e){return e[0]===t})},s=(ku.prototype={get:function(e){e=Su(this,e);if(e)return e[1]},has:function(e){return!!Su(this,e)},set:function(e,t){var n=Su(this,e);n?n[1]=t:this.entries.push([e,t])},"delete":function(t){var e=vu(this.entries,function(e){return e[0]===t});return~e&&yu(this.entries,e,1),!!~e}},{getConstructor:function(e,n,r,i){var e=e(function(e,t){Qn(e,o),pu(e,{type:n,id:wu++,frozen:null}),re(t)||$r(t,e[i],{that:e,AS_ENTRIES:r})}),o=e.prototype,a=gu(n),s=function(e,t,n){var r=a(e),i=hu(be(t),!0);return!0===i?bu(r).set(t,n):i[r.id]=n,e};return Fo(o,{"delete":function(e){var t,n=a(this);return!!R(e)&&(!0===(t=hu(e))?bu(n)["delete"](e):t&&T(t,n.id)&&delete t[n.id])},has:function(e){var t,n=a(this);return!!R(e)&&(!0===(t=hu(e))?bu(n).has(e):t&&T(t,n.id))}}),Fo(o,r?{get:function(e){var t,n=a(this);if(R(e))return!0===(t=hu(e))?bu(n).get(e):t?t[n.id]:void 0},set:function(e,t){return s(this,e,t)}}:{add:function(e){return s(this,e,!0)}}),e}});function _u(e){this.name="__st"+(1e9*Math.random()>>>0)+lu+"__",null!=e&&e.forEach(this.add,this),lu+=1}ct("WeakSet",function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}},s),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{configurable:!0,writable:!0,value:function(e){if(null===this)throw new TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var r=arguments[1],i=0;i<n;){var o=t[i];if(e.call(r,o,i,t))return o;i+=1}return undefined}}),window.WeakSet||(lu=Date.now()%1e9,_u.prototype.add=function(e){var t=this.name;return e[t]||Object.defineProperty(e,t,{value:!0,writable:!0}),this},_u.prototype["delete"]=function(e){return!!e[this.name]&&(e[this.name]=undefined,!0)},_u.prototype.has=function(e){return!!e[this.name]},cu=_u,Object.defineProperty(window,"WeakSet",{value:function(e){return new cu(e)}}));var Cu=Object.assign,Iu=Object.defineProperty,Eu=y([].concat),Or=!Cu||m(function(){var e,t,n;return!(!O||1===Cu({b:1},Cu(Iu({},"a",{enumerable:!0,get:function(){Iu(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)||(t={},(e={})[n=Symbol("assign detection")]=7,"abcdefghijklmnopqrst".split("").forEach(function(e){t[e]=e}),7!==Cu({},e)[n])||"abcdefghijklmnopqrst"!==rr(Cu({},t)).join("")})?function(e,t){for(var n=se(e),r=arguments.length,i=1,o=Gn.f,a=ci.f;i<r;)for(var s,u=ze(arguments[i++]),l=o?Eu(rr(u),o(u)):rr(u),c=l.length,d=0;d<c;)s=l[d++],O&&!A(a,u,s)||(n[s]=u[s]);return n}:Cu,Ru=(E({target:"Object",stat:!0,arity:2,forced:Object.assign!==Or},{assign:Or}),Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(e===undefined||null===e)throw new TypeError("Cannot convert first argument to object");for(var t=Object(e),n=1;n<arguments.length;n++)if((r=arguments[n])!==undefined&&null!==r)for(var r=Object(r),i=Object.keys(Object(r)),o=0,a=i.length;o<a;o++){var s=i[o],u=Object.getOwnPropertyDescriptor(r,s);null!=u&&u.enumerable&&(t[s]=r[s])}return t}}),i.IteratorPrototype),e=qe("toStringTag"),xu=kt.set,t=function(u){var l=kt.getterFor(u?"WrapForValidIterator":"IteratorHelper");return Fo(nr(Ru),{next:function(){var e=l(this);if(u)return e.nextHandler();if(e.done)return Rr(undefined,!0);try{var t=e.nextHandler();return e.returnHandlerResult?t:Rr(t,e.done)}catch($){throw e.done=!0,$}},"return":function(){var e,t=l(this),n=t.iterator,r=t.done;if(t.done=!0,u)return(e=Ft(n,"return"))?A(e,n):Rr(undefined,!0);if(!r){if(t.inner)try{Jr(t.inner.iterator,"normal")}catch($){return Jr(n,"throw",$)}if(t.openIters)try{for(var i=t.openIters,o="normal",a=void 0,s=i.length-1;0<=s;s--)if(i[s]!==undefined)try{a=Jr(i[s].iterator,o,a)}catch($){o="throw",a=$}if("throw"===o)throw a}catch($){if(n)return Jr(n,"throw",$);throw $}n&&Jr(n,"normal")}return Rr(undefined,!0)}})},Ou=t(!0),Au=t(!1),o=(lt(Au,e,"Iterator Helper"),function(n,r,i){var e=function(e,t){t?(t.iterator=e.iterator,t.next=e.next):t=e,t.type=r?"WrapForValidIterator":"IteratorHelper",t.returnHandlerResult=!!i,t.nextHandler=n,t.counter=0,t.done=!1,xu(this,t)};return e.prototype=r?Ou:Au,e}),uu=function(e,t){e="function"==typeof Iterator&&Iterator.prototype[e];if(e)try{e.call({next:null},t).next()}catch($){return!0}},i=!uu("filter",function(){}),Tu=!i&&Mr("filter",TypeError),t=i||Tu,Mu=o(function(){for(var e,t=this.iterator,n=this.predicate,r=this.next;;){if(e=be(A(r,t)),this.done=!!e.done)return;if(ru(t,n,[e=e.value,this.counter++],!0))return e}}),Pu=(E({target:"Iterator",proto:!0,real:!0,forced:t},{filter:function(e){be(this);try{xe(e)}catch($){Jr(this,"throw",$)}return Tu?A(Tu,this,e):new Mu(Qr(this),{predicate:e})}}),si.filter),e=on("filter"),i=(E({target:"Array",proto:!0,forced:!e},{filter:function(e){return Pu(this,e,1<arguments.length?arguments[1]:undefined)}}),!uu("map",function(){})),Nu=!i&&Mr("map",TypeError),t=i||Nu,Lu=o(function(){var e=this.iterator,t=be(A(this.next,e));if(!(this.done=!!t.done))return ru(e,this.mapper,[t.value,this.counter++],!0)}),Du=(E({target:"Iterator",proto:!0,real:!0,forced:t},{map:function(e){be(this);try{xe(e)}catch($){Jr(this,"throw",$)}return Nu?A(Nu,this,e):new Lu(Qr(this),{mapper:e})}}),si.map),e=on("map"),Fu=(E({target:"Array",proto:!0,forced:!e},{map:function(e){return Du(this,e,1<arguments.length?arguments[1]:undefined)}}),Sa.fastKey),Uu=kt.set,Bu=kt.getterFor,i={getConstructor:function(e,n,r,i){var e=e(function(e,t){Qn(e,o),Uu(e,{type:n,index:nr(null),first:null,last:null,size:0}),O||(e.size=0),re(t)||$r(t,e[i],{that:e,AS_ENTRIES:r})}),o=e.prototype,a=Bu(n),s=function(e,t,n){var r,i=a(e),o=u(e,t);return o?o.value=n:(i.last=o={index:r=Fu(t,!0),key:t,value:n,previous:t=i.last,next:null,removed:!1},i.first||(i.first=o),t&&(t.next=o),O?i.size++:e.size++,"F"!==r&&(i.index[r]=o)),e},u=function(e,t){var n,e=a(e),r=Fu(t);if("F"!==r)return e.index[r];for(n=e.first;n;n=n.next)if(n.key===t)return n};return Fo(o,{clear:function(){for(var e=a(this),t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=null),t=t.next;e.first=e.last=null,e.index=nr(null),O?e.size=0:this.size=0},"delete":function(e){var t,n,r=a(this),e=u(this,e);return e&&(t=e.next,n=e.previous,delete r.index[e.index],e.removed=!0,n&&(n.next=t),t&&(t.previous=n),r.first===e&&(r.first=t),r.last===e&&(r.last=n),O?r.size--:this.size--),!!e},forEach:function(e){for(var t,n=a(this),r=zr(e,1<arguments.length?arguments[1]:undefined);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!u(this,e)}}),Fo(o,r?{get:function(e){e=u(this,e);return e&&e.value},set:function(e,t){return s(this,0===e?0:e,t)}}:{add:function(e){return s(this,e=0===e?0:e,e)}}),O&&_t(o,"size",{configurable:!0,get:function(){return a(this).size}}),e},setStrong:function(e,t,n){var r=t+" Iterator",i=Bu(t),o=Bu(r);xr(e,t,function(e,t){Uu(this,{type:r,target:e,state:i(e),kind:t,last:null})},function(){for(var e=o(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?Rr("keys"===t?n.key:"values"===t?n.value:[n.key,n.value],!1):(e.target=null,Rr(undefined,!0))},n?"entries":"values",!n,!0),pa(t)}},zu=(ct("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}},i),function(e,t){return(zu=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)}),h=function(){return(h=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function ju(e,a,s,u){return new(s=s||Promise)(function(n,t){function r(e){try{o(u.next(e))}catch(a){t(a)}}function i(e){try{o(u["throw"](e))}catch(a){t(a)}}function o(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,i)}o((u=u.apply(e,a||[])).next())})}function Wu(r,i){var o,a,s,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},e={next:t(0),"throw":t(1),"return":t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(n){return function(e){var t=[n,e];if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,a&&(s=2&t[0]?a["return"]:t[0]?a["throw"]||((s=a["return"])&&s.call(a),0):a.next)&&!(s=s.call(a,t[1])).done)return s;switch(a=0,(t=s?[2&t[0],s.value]:t)[0]){case 0:case 1:s=t;break;case 4:return u.label++,{value:t[1],done:!1};case 5:u.label++,a=t[1],t=[0];continue;case 7:t=u.ops.pop(),u.trys.pop();continue;default:if(!((s=0<(s=u.trys).length&&s[s.length-1])||6!==t[0]&&2!==t[0])){u=0;continue}if(3===t[0]&&(!s||t[1]>s[0]&&t[1]<s[3]))u.label=t[1];else if(6===t[0]&&u.label<s[1])u.label=s[1],s=t;else{if(!(s&&u.label<s[2])){s[2]&&u.ops.pop(),u.trys.pop();continue}u.label=s[2],u.ops.push(t)}}t=i.call(r,u)}catch(e){t=[6,e],a=0}finally{o=s=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}}function Hu(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}var Vu=/_?t(\d)?(imestamp)?=\d+&?/g,Zu=function(e,t){void 0===t&&(t="https://dem.rumt-zh.com");t=(e.url||"").replace(/\/+$/,"")||("string"==typeof t?t:"https://dem.rumt-zh.com");return e.url=t,e.hostUrl=t,e.offlineUrl=t+"/offline",e.whiteListUrl=t+"/collect/whitelist",e.pvUrl=t+"/collect/pv",e.eventUrl=t+"/collect/events",e.speedUrl=t+"/speed",e.customTimeUrl=t+"/speed/custom",e.performanceUrl=t+"/speed/performance",e.performanceUrlForHippy=t+"/speed/hippyPerformance",e.webVitalsUrl=t+"/speed/webvitals",e.setDataReportUrl=t+"/speed/miniProgramData",e},Gu=["aegis.qq.com","tamaegis.com","/aegis-sdk","rumt-","/flog.core.min.js","pingfore.qq.com","pingfore.tencent.com","zhiyan.tencent-cloud.net","h.trace.qq.com","btrace.qq.com","beacon.qq.com","dmplog.qq.com","qq.com/report","svibeacon.onezapp.com","cube.weixinbridge.com","doubleclick.net","pcmgrmonitor.3g.qq.com","tdm.qq.com","report.qqweb.qq.com","tpstelemetry.tencent.com","galileotelemetry.tencent.com","insight.cloud.tencent.com","facebook.com","facebook.net","google","yahoo.com","twitter.com","ga-audiences","report.idqqimg.com","arms-retcode.aliyuncs.com","px.effirst.com","sentry","baidu.com","hot-update.json","u.c.b.r.o.w.s.e.r","report.url.cn","sockjs-node","m3u8","flv"],Yu=["ResizeObserver loop limit exceeded","ResizeObserver loop completed","Failed to execute 'transaction'","window.indexedDB.deleteDatabase is not a function"],Ju=["ext1","ext2","ext3","ext4","ext5","ext6","ext7","ext8","ext9","ext10","level","trace","tag","seq","code"],Ku=["static","fetch"],qu="unknown",Xu=function(e,t,n,r,i,o,a,s){for(var u,l,c=i,d=0,f=!!a&&zr(a,s);d<r;)d in n&&(u=f?f(n[d],d,t):n[d],0<o&&q(u)?(l=fe(u),c=Xu(e,t,u,l,c,o-1)-1):(pe(c+1),Mn(e,c,u)),c++),d++;return c},$u=Xu,Qu=(E({target:"Array",proto:!0},{flatMap:function(e){var t,n=se(this),r=fe(n);return xe(e),t=ai(n,0),$u(t,n,n,r,0,1,e,1<arguments.length?arguments[1]:undefined),t}}),TypeError),el=function(e){if(gs(e))throw new Qu("The method doesn't accept regular expressions");return e},tl=qe("match"),t=function(e){var t=/./;try{"/./"[e](t)}catch(P){try{return t[tl]=!1,"/./"[e](t)}catch(d){}}return!1},nl=y("".indexOf),rl=(E({target:"String",proto:!0,forced:!t("includes")},{includes:function(e){return!!~nl(_(oe(this)),_(el(e)),1<arguments.length?arguments[1]:undefined)}}),jn.includes),on=m(function(){return!Array(1).includes()}),e=m(function(){return[,1].includes(undefined,1)}),il=(E({target:"Array",proto:!0,forced:on||e},{includes:function(e){return rl(this,e,1<arguments.length?arguments[1]:undefined)}}),tr("includes"),Mr("some",TypeError)),ol=(E({target:"Iterator",proto:!0,real:!0,forced:il},{some:function(n){be(this);try{xe(n)}catch($){Jr(this,"throw",$)}var e,r;return il?A(il,this,n):(e=Qr(this),$r(e,function(e,t){if(n(e,r++))return t()},{IS_RECORD:!(r=0),INTERRUPTED:!0}).stopped)}}),si.some),on=Ue("some"),e=(E({target:"Array",proto:!0,forced:!on},{some:function(e){return ol(this,e,1<arguments.length?arguments[1]:undefined)}}),tr("flatMap"),ct("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}},i),!uu("flatMap",function(){})),al=!e&&Mr("flatMap",TypeError),on=e||al||function(){try{var e=Iterator.prototype.flatMap.call(new Map([[4,5]]).entries(),function(e){return e});e.next(),e["return"]()}catch($){return!0}}(),sl=o(function(){for(var e,t,n=this.iterator,r=this.mapper;;){if(t=this.inner)try{if(!(e=be(A(t.next,t.iterator))).done)return e.value;this.inner=null}catch($){Jr(n,"throw",$)}if(e=be(A(this.next,n)),this.done=!!e.done)return;try{this.inner=function(e,t){t&&"string"==typeof e||be(e);t=Zr(e);return Qr(be(t!==undefined?A(t,e):e))}(r(e.value,this.counter++),!1)}catch($){Jr(n,"throw",$)}}});E({target:"Iterator",proto:!0,real:!0,forced:on},{flatMap:function(e){be(this);try{xe(e)}catch($){Jr(this,"throw",$)}return al?A(al,this,e):new sl(Qr(this),{mapper:e,inner:null})}});hl.prototype.indexOf=function(e,t){for(var n=0;n<e.length;n++)if(e[n].callback===t)return n;return-1},hl.prototype.on=function(e,t,n){var r;if(void 0===n&&(n=0),this)return(r=this.eventsList[e])||(this.eventsList[e]=[],r=this.eventsList[e]),-1===this.indexOf(r,t)&&r.push({name:e,type:n||0,callback:t}),this},hl.prototype.one=function(e,t){this.on(e,t,1)},hl.prototype.remove=function(e,t){if(this){var n=this.eventsList[e];if(n){if(t)return n.length&&(t=this.indexOf(n,t),n.splice(t,1)),this;try{delete this.eventsList[e]}catch(l){}}return null}},hl.prototype.clear=function(){this.eventsList={}};var ul,ll=hl,cl=function(e){try{return localStorage.getItem(e)}catch(Ly){return null}},dl=function(e,t){try{localStorage.setItem(e,t)}catch(Ly){}},fl=function(e,t){try{return e?JSON.parse(e):t}catch(Ly){return t}};function hl(){var a=this;this.emit=function(e,t){if(a){var n;if(null!=(r=a.eventsList[e])&&r.length)for(var r=r.slice(),i=0;i<r.length;i++){n=r[i];try{var o=n.callback.apply(a,[t]);if(1===n.type&&a.remove(e,n.callback),!1===o)break}catch(f){throw f}}return a}},this.eventsList={}}(i=ul=ul||{})[i.number=-1]="number",i.string="";var pl,gl,p,ml,vl=function(e,t){return"number"==typeof e||"string"==typeof e?e:t?ul.string:ul.number},yl=function(e,t){return"string"==typeof e?e.split("?")[t?1:0]||"":e},wl=function(e,t){return void 0===t&&(t=2048),String(e).replace(Vu,"").slice(0,t)},bl=function(e){return"string"==typeof e&&/^\//.test(e)?"https:"===(null==location?void 0:location.protocol):/^https/.test(e)},kl=["application/xhtml+xml","application/xml","application/pdf","application/pkcs12","application/javascript","application/x-javascript","application/ecmascript","application/vnd.mspowerpoint","application/vnd.apple.mpegurl","application/ogg","text/css","text/javascript","image","audio","video","video/mp2t"],Sl=/\.(json|js|css|jpg|jpeg|png|svg|apng|webp|gif|bmp|mp4|mp3|ts|mpeg|wav|webm|ogg|flv|m3u8|ttf|woff2|otf|eot|woff|html|htm|shtml|shtm|)$/i,_l=["ret","retcode","code","errcode"],Cl=function(e,t,n){var r,i,o;try{if("function"==typeof(null==t?void 0:t.retCodeHandler))return{code:void 0===(o=(i=t.retCodeHandler(e,null==n?void 0:n.url,null==n?void 0:n.ctx,null==n?void 0:n.payload)||{}).code)?qu:o,isErr:i.isErr};if(!(e="string"==typeof e?JSON.parse(e):e))return{code:qu,isErr:!1};"function"==typeof(null==(r=null==t?void 0:t.ret)?void 0:r.join)&&(_l=[].concat(t.ret.map(function(e){return e.toLowerCase()})));var a=Object.getOwnPropertyNames(e).filter(function(e){return-1!==_l.indexOf(e.toLowerCase())});return a.length?{code:""+(o="未知"!==(o=e[a[0]])&&""!==o?o:qu),isErr:0!==o&&"0"!==o&&o!==qu}:{code:qu,isErr:!1}}catch(Ae){return{code:qu,isErr:!1}}},Il=function(e,t,n){try{var r="function"==typeof t?t(e,null==n?void 0:n.url,null==n?void 0:n.ctx)||"":e;return Ol(r).slice(0,10240)}catch(l){return""}},El=function(){var n=new WeakSet;return function(e,t){if(t instanceof Error)return"Error.message: "+t.message+" \n Error.stack: "+t.stack;if("object"===v(t)&&null!==t){if(n.has(t))return"[Circular "+(e||"root")+"]";n.add(t)}return t}},Rl=function(e){if("string"==typeof e)return e;try{return e instanceof Error?(JSON.stringify(e,El(),2)||"undefined").replace(/"/gim,""):JSON.stringify(e,El(),2)||"undefined"}catch(I){return"error happen when tdem stringify: \n "+I.message+" \n "+I.stack}},xl=function(e){if("string"==typeof e)return e;try{return JSON.stringify(e,El())||"undefined"}catch(I){return"error happen when tdem stringify: \n "+I.message+" \n "+I.stack}},Ol=function(n,r){void 0===r&&(r=3);var i,o,a,s="";return Array.isArray(n)?(s+="[",i=n.length,n.forEach(function(e,t){"object"===v(e)&&1<r?s+=Ol(e,r-1):s+=Tl(e),s+=t===i-1?"":","}),s+="]"):n instanceof Object||"object"===v(n)?(s="{",o=Object.keys(n),a=o.length,o.forEach(function(e,t){"object"===v(n[e])&&1<r?s+='"'+e+'":'+Ol(n[e],r-1):s+=Al(e,n[e]),s+=t===a-1||t<a-1&&"undefined"==typeof n[o[t+1]]?"":","}),s+="}"):s+=n,s},Al=function(e,t){var n=v(t),r="";return"string"===n||"object"===n?r+='"'+e+'":"'+t+'"':"function"==typeof t?r+='"'+e+'":"function '+t.name+'"':"symbol"===v(t)?r+='"'+e+'":"symbol"':"number"!=typeof t&&"boolean"!==n||(r+='"'+e+'": '+t),r},Tl=function(e){var t=v(e);return""+("undefined"===t||"symbol"===t||"function"===t?"null":"string"===t||"object"===t?'"'+e+'"':e)},Ml=function(t){var n;return t.payload?(n={},Object.keys(t).forEach(function(e){"payload"!==e&&(n[e]=t[e])}),n):t},Pl=function(e,t){var n,r={fetch:[],"static":[],bridge:[]},i=new FormData;return Array.isArray(e)?e.forEach(function(e){var t=Ml(e);r[e.type].push(t)}):(n=Ml(e),r[e.type].push(n)),i.append("payload",xl(h({duration:r},t))),i},Nl=/data:(image|text|application|font)\/.*;base64/,Ll=function(t,e){return"string"!=typeof t||!t||e&&-1<t.indexOf(e)||Nl.test(t)||Gu.some(function(e){return-1<t.indexOf(e)})};function Dl(){return"evt_"+Date.now()+"_"+Math.random().toString(36).substring(2,8)}function Fl(e){var t=[];if(e.stack)for(var n=0,r=0,i=e.stack.split("\n");r<i.length;r++){var o,a,s,u,l,c=i[r],d=c.match(/at\s+(.+?)\s+\((.+?):(\d+):(\d+)\)/);d?(o=d[1],a=d[2],s=d[3],u=d[4],l=a.split("/").pop()||a,t.push({abs_path:a,colno:parseInt(u,10),filename:l,"function":o||"(anonymous)",lineno:parseInt(s,10),in_app:a.includes("node_modules")||a.includes("cdn")?0:1,stack_level:n++})):(d=c.match(/at\s+(.+?):(\d+):(\d+)/))&&(a=d[1],s=d[2],u=d[3],l=a.split("/").pop()||a,t.push({abs_path:a,colno:parseInt(u,10),filename:l,"function":"(anonymous)",lineno:parseInt(s,10),in_app:a.includes("node_modules")||a.includes("cdn")?0:1,stack_level:n++}))}return t}(uu=pl=pl||{}).LOG="log",uu.SPEED="speed",uu.PERFORMANCE="performance",uu.OFFLINE="offline",uu.WHITE_LIST="whiteList",uu.VITALS="vitals",uu.PV="pv",uu.CUSTOM_PV="customPV",uu.EVENT="event",uu.CUSTOM="custom",uu.SDK_ERROR="sdkError",uu.SET_DATA="setData",uu.LOAD_PACKAGE="loadPackage",uu.MEMORY="memory",(e=gl=gl||{}).production="production",e.development="development",e.gray="gray",e.pre="pre",e.daily="daily",e.local="local",e.test="test",e.others="others",(o=p=p||{}).JS_ERROR="js_error",o.PROMISE_ERROR="promise_error",o.RESOURCE_ERROR="resource_error",o.API_ERROR="api_error",o.PAGE_LOAD="page_load",o.RESOURCE_LOAD="resource_load",o.API_CALL="api_call",o["true"]="web_vitals",o.CLICK="click",o.PAGE_VIEW="page_view",o.TAB_HIDDEN="tab_hidden",o.TAB_VISIBLE="tab_visible",o.WINDOW_BLUR="window_blur",o.WINDOW_FOCUS="window_focus",o.FORM_FOCUS="form_focus",o.FORM_BLUR="form_blur",o.FORM_CHANGE="form_change",o.FORM_SUBMIT="form_submit",o.FORM_SUBMIT_RESULT="form_submit_result",o.STRUGGLE="struggle",o.CUSTOM="custom",o.LOG="log",(on=ml=ml||{}).ERROR="error",on.PERFORMANCE="performance",on.BEHAVIOR="behavior",on.NETWORK="network",on.LOG="log",on.CUSTOM="custom";var Ul=TypeError,Bl="Reduce of empty array with no initial value",i=function(l){return function(e,t,n,r){var i=se(e),o=ze(i),a=fe(i);if(xe(t),0===a&&n<2)throw new Ul(Bl);var s=l?a-1:0,u=l?-1:1;if(n<2)for(;;){if(s in o){r=o[s],s+=u;break}if(s+=u,l?s<0:a<=s)throw new Ul(Bl)}for(;l?0<=s:s<a;s+=u)s in o&&(r=t(r,o[s],s,i));return r}},e={left:i(!1),right:i(!0)},o=function(e){return On.slice(0,e.length)===e},zl=o("Bun/")?"BUN":o("Cloudflare-Workers")?"CLOUDFLARE":o("Deno/")?"DENO":o("Node.js/")?"NODE":x.Bun&&"string"==typeof Bun.version?"BUN":x.Deno&&"object"==v(Deno.version)?"DENO":"process"===ee(x.process)?"NODE":x.window&&x.document?"BROWSER":"REST",jl="NODE"==zl,Wl=e.left,on=!jl&&79<An&&An<83||!Ue("reduce"),Hl=(E({target:"Array",proto:!0,forced:on},{reduce:function(e){var t=arguments.length;return Wl(this,e,t,1<t?arguments[1]:undefined)}}),TypeError),i=m(function(){[].keys().reduce(function(){},undefined)}),Vl=!i&&Mr("reduce",Hl),Zl=(E({target:"Iterator",proto:!0,real:!0,forced:i||Vl},{reduce:function(t){be(this);try{xe(t)}catch($){Jr(this,"throw",$)}var n=arguments.length<2,r=n?undefined:arguments[1];if(Vl)return Oe(Vl,this,n?[t]:[t,r]);var e=Qr(this),i=0;if($r(e,function(e){r=n?(n=!1,e):t(r,e,i),i++},{IS_RECORD:!0}),n)throw new Hl("Reduce of empty iterator with no initial value");return r}}),TypeError),Gl=function(e,t){if(e<t)throw new Zl("Not enough arguments");return e},Yl=x.Function,Jl=/MSIE .\./.test(On)||"BUN"==zl&&((o=x.Bun.version.split(".")).length<3||"0"===o[0]&&(o[1]<3||"3"===o[1]&&"0"===o[2])),on=function(o,a){var s=a?2:1;return Jl?function(e,t){var n=Gl(arguments.length,1)>s,r=ne(e)?e:Yl(e),i=n?Pn(arguments,s):[],e=n?function(){Oe(r,this,i)}:r;return a?o(e,t):o(e)}:o},i=on(x.setInterval,!0),o=(E({global:!0,bind:!0,forced:x.setInterval!==i},{setInterval:i}),on(x.setTimeout,!0)),Kl=(E({global:!0,bind:!0,forced:x.setTimeout!==o},{setTimeout:o}),function(e){return e.filter(function(n,r){return"static"!==n.type||!e.find(function(e,t){return n.url===e.url&&200===n.status&&r<t})})}),ql=(E({target:"String",proto:!0},{repeat:mt}),{}),Xl={},$l=function(e){return ql[e]||(ql[e]=setTimeout(function(){Xl[e]={},ql[e]=null},6e4)),ql[e]},Ql=function(c,d){return function(i,o){var a,s,u,l,e,t,n;null!=i&&i.log&&null!=i&&i.type?(s=function(e,t){var n,r,t=h(h({},c.bean),{from:t}),i=h({},c.bean);return function(){try{return"undefined"!=typeof FormData&&"function"==typeof FormData.prototype.append}catch(a){}}()?Pl(e,t):(t=e,e=i,r={fetch:[],"static":[],bridge:[]},i={},Array.isArray(t)?t.forEach(function(e){var t;null!=(t=r[e.type])&&t.push(e)}):null!=(n=r[t.type])&&n.push(t),i.payload=JSON.stringify(h({duration:r},e)),i)},u=function(e,t,n,r){switch(t){case pl.LOG:o=e;var i=(Array.isArray(o)?o:[o]).map(function(n){return Object.getOwnPropertyNames(n).reduce(function(e,t){return"ctx"!==t&&(e[t]=n[t]),e},{level:"2",msg:""})});if(!i||0===i.length)return"{}";i=Array.isArray(i)?i:[i];var o=Array.from(new Set(i.flatMap(function(e){return Object.keys(e)}))),a={};return o.forEach(function(t){a[t]=i.map(function(e){return e[t]||""})}),a.count=i.length,xl(a);case pl.SPEED:return s(e,n);case pl.EVENT:return r;default:return r||{}}var o},1!==(e=Array.isArray(i.log)?i.log:[i.log]).length?(l={},e.forEach(function(e){var t=e.from||"undefined";delete e.from,l[t]||(l[t]=[]),l[t].push(e)}),Object.keys(l).forEach(function(e){var t,n=l[e],r=null!=(r=i.url)&&r.includes("?")?"&":"?";"undefined"===e?(t=""+i.url,o(h(h({},i),{url:t,log:1===n.length?n[0]:n,data:u(n,d,e,i.data)}))):(t=i.url+r+"from="+e,o(h(h({},i),{url:t,log:1===n.length?n[0]:n,beanFilter:Hu(i.beanFilter||[],["from"]),data:u(n,d,e,i.data)})))})):(t=(e=e[0]).from,delete e.from,n=null!=(a=i.url)&&a.includes("?")?"&":"?",t?(n=i.url+n+"from="+t,o(h(h({},i),{url:n,log:e,beanFilter:Hu(i.beanFilter||[],["from"]),data:u(e,d,t,i.data)}))):(n=""+i.url,o(h(h({},i),{url:n,log:e,data:u(e,d,t,i.data)}))))):o(i)}},ec=function(u,l){return function(e,t){var n,r,i,o=Array.isArray(e),a=o?e:[e],s=(u.lifeCycle.emit("beforeRequest",e),u.config.beforeRequest);(a="function"==typeof s?a.map(function(e){try{var t=s({logs:e,logType:l});return(null==t?void 0:t.logType)===l&&null!=t&&t.logs?t.logs:!1!==t&&e}catch($){return e}}).filter(function(e){return!1!==e}):a).length&&(n=a,e=Ju,!Array.isArray(n)||n.length<=1||(r=[],i=[],!(i="string"==typeof e?[e]:e))||i.length<=0||(i.forEach(function(t){n.forEach(function(e){null!=e&&e[t]&&r.push(t)})}),0<r.length&&(n=n.map(function(e){var t={};return r.forEach(function(e){t[e]=""}),h(h({},t),e)}))),a=n,t(o?a:a[0]))}},tc=function(i){return function(e,t){i.lifeCycle.emit("modifyRequest",e);var n=i.config.modifyRequest;if("function"==typeof n)try{var r=n(e);"object"===v(r)&&"url"in r&&(e=r)}catch($){console.error($)}t(e)}},nc=function(r){return function(e,t){null!=(n=r.lifeCycle)&&n.emit("afterRequest",e);var n=(r.config||{}).afterRequest;"function"==typeof n&&!1===n(e)||t(e)}},rc=y(1.1.valueOf),i=Fn.f,ic=Kn.f,oc=ut.f,ac=r.trim,sc=x.Number,uc=(fi.Number,sc.prototype),lc=x.TypeError,cc=y("".slice),dc=y("".charCodeAt),fc=function(e){var t,n,r,i,o,a,s,u=Ao(e,"number");if(ji(u))throw new lc("Cannot convert a Symbol value to a number");if("string"==typeof u&&2<u.length)if(u=ac(u),43===(e=dc(u,0))||45===e){if(88===(t=dc(u,2))||120===t)return NaN}else if(48===e){switch(dc(u,1)){case 66:case 98:n=2,r=49;break;case 79:case 111:n=8,r=55;break;default:return+u}for(o=(i=cc(u,2)).length,a=0;a<o;a++)if((s=dc(i,a))<48||r<s)return NaN;return parseInt(i,n)}return+u},on=hs("Number",!sc(" 0o1")||!sc("0b1")||sc("+0x1")),hc=function(e){var t,e=arguments.length<1?0:sc(function(e){e=Ao(e,"number");return"bigint"==typeof e?e:fc(e)}(e));return Ce(uc,t=this)&&m(function(){rc(t)})?Yo(Object(e),this,hc):e};if(hc.prototype=uc,on&&(uc.constructor=hc),E({global:!0,constructor:!0,wrap:!0,forced:on},{Number:hc}),on)for(var pc=fi.Number,gc=sc,mc,vc=O?i(gc):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),yc=0;vc.length>yc;yc++)T(gc,mc=vc[yc])&&!T(pc,mc)&&oc(pc,mc,ic(gc,mc));var wc={generateTraceId:kc(16),generateSpanId:kc(8)},bc=Array(32);function kc(t){return function(){for(var e=0;e<2*t;e++)bc[e]=Math.floor(16*Math.random())+48,58<=bc[e]&&(bc[e]+=39);return String.fromCharCode.apply(null,bc.slice(0,2*t))}}function Sc(){return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,function(e){return(e^(16*Math.random()&15)>>e/4).toString(16)})}var _c=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})},Cc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Ic=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Ec=function(e){for(var t,n,r,i="",o=0,a=(e=String(e)).length%3;o<e.length;){if(255<(t=e.charCodeAt(o++))||255<(n=e.charCodeAt(o++))||255<(r=e.charCodeAt(o++)))throw new TypeError("Failed to execute 'btoa': The string to be encoded contains characters outside of the Latin1 range.");i+=Cc.charAt((t=t<<16|n<<8|r)>>18&63)+Cc.charAt(t>>12&63)+Cc.charAt(t>>6&63)+Cc.charAt(63&t)}return a?i.slice(0,a-3)+"===".substring(a):i},Rc=function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!Ic.test(e))throw new TypeError("Failed to execute 'atob': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,r,i="",o=0;o<e.length;)t=Cc.indexOf(e.charAt(o++))<<18|Cc.indexOf(e.charAt(o++))<<12|(n=Cc.indexOf(e.charAt(o++)))<<6|(r=Cc.indexOf(e.charAt(o++))),i+=64===n?String.fromCharCode(t>>16&255):64===r?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return i},xc=(Tc.prototype.generate=function(e,t,n){if(void 0===t&&(t={}),this.url=e,!this.isUrlIgnored()&&this.isUrlInTraceUrls()&&this.traceType){switch(this.traceType){case"traceparent":this.traceId=this.createTraceparent();break;case"b3":this.traceId=this.createB3();break;case"sw8":this.traceId=this.createSw8(n);break;case"sentry-trace":this.traceId=this.createSentryTrace();break;default:return console.warn("this trace key "+this.traceType+" is not supported"),void(this.traceId="")}return t[this.traceType]&&(this.traceId=t[this.traceType]),{name:this.traceType,value:this.traceId}}},Tc.prototype.createTraceparent=function(){var e=wc.generateSpanId();return"00-"+wc.generateTraceId()+"-"+e+"-0"+this.traceFlag.toString(16)},Tc.prototype.createB3=function(){var e=wc.generateSpanId();return wc.generateTraceId()+"-"+e+"-"+this.traceFlag},Tc.prototype.createSw8=function(e){var t="function"==typeof btoa?btoa:Ec,e=e||{},n=e.host,n=void 0===n?"":n,e=e.pathname,e=void 0===e?"":e,r=_c(),i=_c();return"1-"+String(t(i))+"-"+String(t(r))+"-1-"+String(t("tdem"))+"-"+String(t("1.0.6"))+"-"+String(t(encodeURI(e)))+"-"+String(t(n))},Tc.prototype.createSentryTrace=function(){var e=Sc().substring(16);return Sc()+"-"+e+"-"+this.traceFlag},Tc.prototype.isUrlIgnored=function(){if(Array.isArray(this.ignoreUrls)&&0!==this.ignoreUrls.length)for(var e=0,t=this.ignoreUrls;e<t.length;e++){var n=t[e];if(this.urlMatches(this.url,n))return!0}return!1},Tc.prototype.isUrlInTraceUrls=function(){if(!this.urls)return!0;if(Array.isArray(this.urls)){if(0===this.urls.length)return!1;for(var e=0,t=this.urls;e<t.length;e++){var n=t[e];if(this.urlMatches(this.url,n))return!0}}return!1},Tc.prototype.urlMatches=function(e,t){return"string"==typeof t?e===t:!!e.match(t)},Tc),Oc={sw8:function(e){var t="function"==typeof atob?atob:Rc,e=e.split("-")[1];return e?t(e):""},traceparent:function(e){return e.split("-")[1]},b3:function(e){return e.split("-")[0]},"sentry-trace":function(e){return e.split("-")[0]}},Ac=function(e){var t,n="";return n="object"===v(e)&&(t=(e=function(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=e[r]||"function"==typeof e.get&&e.get(r);if(i)return[r,i]}return["",""]}(e,Object.keys(Oc)))[0])?Oc[t](e[1]):n};function Tc(e,t,n,r){void 0===n&&(n=null),this.traceType=e,this.ignoreUrls=t,this.urls=n,this.traceFlag=r===undefined||null===r?1:Number(!!r)}function Mc(o){return function(e){e&&0!==e.length&&o.sendPipeline([function(t,e){var n,r={protocol_version:2,project_key:String(o.config.id||""),sdk:{name:"tdem-web-sdk",version:Uc.version},app:{version:String(o.config.version||"1.0.0")},context:(n=o,r=String((null==(i=null==(r=null==(i=n.sessionManager)?void 0:i.getSession)?void 0:r.call(i))?void 0:i.id)||n.bean.sessionId||""),i=String(n.config.userId||n.config.uin||""),n={session_id:r,platform:(r=String(n.runtimePlatform||n.config.platform||"web").trim().toLowerCase(),["web","miniprogram","android","ios","unknown"].includes(r)?r:["wx","my","qq","tt"].includes(r)?"miniprogram":"undefined"!=typeof window?"web":"unknown")},i&&(n.user_id=i),"undefined"!=typeof navigator&&(n.user_agent=navigator.userAgent,n.language=navigator.language),"undefined"!=typeof screen&&(n.screen_resolution=screen.width+"x"+screen.height),n),events:t},i=String(o.config.url||"").replace(/\/+$/,"");i&&e({url:i+"/api/v1/collect/events",data:JSON.stringify(r),method:"POST",contentType:"application/json",addBean:!1,type:pl.EVENT,log:t,success:function(){o.lifeCycle.emit("afterReport",{success:!0,events:t})},fail:function(e){o.lifeCycle.emit("afterReport",{success:!1,error:e,events:t})}})}],pl.EVENT)(e)}}var Pc=function(){},Nc=function(n){if(n&&n.reduce&&n.length)return 1===n.length?function(e,t){n[0](e,t||Pc)}:n.reduce(function(n,r){return function(e,t){return void 0===t&&(t=Pc),n(e,function(e){return null==r?void 0:r(e,t)})}});throw new TypeError("createPipeline need at least one function param")},Lc=(E({target:"Object",stat:!0,sham:!O},{getOwnPropertyDescriptors:function(e){for(var t,n,r=je(e),i=Kn.f,o=Jn(r),a={},s=0;o.length>s;)(n=i(r,t=o[s++]))!==undefined&&Mn(a,t,n);return a}}),function(t,n){Object.getOwnPropertyNames(t).forEach(function(e){"function"==typeof t[e]&&"constructor"!==e&&(n?n[e]="sendPipeline"===e?function(){return function(){}}:function(){}:t[e]=function(){})})}),Dc={rage_click:3,dead_click:4,error_click:4,form_validation_error:3,slow_page:3,back_forward:2,long_focus_time:2,form_zigzag:2,uncompleted_form:3,custom_struggle:3},Fc={rage_click:4,dead_click:5,error_click:5,form_validation_error:4,slow_page:4,back_forward:3,long_focus_time:3,form_zigzag:3,uncompleted_form:3,custom_struggle:3},Uc=(c.use=function(e){-1===c.installedPlugins.indexOf(e)&&e.tdemPlugin&&c.installedPlugins.push(e)},c.unuse=function(e){e=c.installedPlugins.indexOf(e);-1!==e&&c.installedPlugins.splice(e,1)},c.prototype.init=function(e){this.setConfig(e),this.config=Zu(this.config,e.hostUrl);for(var t=0;t<c.installedPlugins.length;t++)try{c.installedPlugins[t].patch(this)}catch(d){this.sendSDKError(d)}this.lifeCycle.emit("onInited")},c.prototype.destroy=function(e){void 0===e&&(e=!1);var t,n,r=c.instances.indexOf(this);-1!==r&&c.instances.splice(r,1);for(var i=c.installedPlugins.length-1;0<=i;i--)try{c.installedPlugins[i].unpatch(this)}catch(L){this.sendSDKError(L)}if(this.lifeCycle.emit("destroy"),this.lifeCycle.clear(),e)t=this,n=Object.getOwnPropertyDescriptors(t),Object.keys(n).forEach(function(e){n[e].writable&&(t[e]=null)}),Object.setPrototypeOf(this,null);else{for(var o=this;o.constructor!==Object&&Lc(o,this),o=Object.getPrototypeOf(o););0===c.instances.length&&(r=Object.getPrototypeOf(this).constructor,Lc(r),Lc(c))}},c.prototype.setConfig=function(e){Object.assign(this.config,e);var e=this.config,t=e.id,n=e.uin,r=e.version,i=e.aid,o=e.env,a=void 0===o?"production":o,o=e.pageUrl,e=e.userId||(n!==undefined&&null!==n?String(n):""),n=this.bean.id!==t||this.bean.uin!==e||this.bean.aid!==i;return this.bean.id=t||"",this.bean.uin=e,this.bean.version=r||"1.0.6",this.bean.aid=i||"",this.bean.env=function(){switch(a){case gl.production:case gl.development:case gl.gray:case gl.pre:case gl.daily:case gl.local:case gl.test:case gl.others:return 1;default:return}}()?a:gl.others,o&&this.extendBean("from",encodeURIComponent(o.slice(0,2048))),n&&this.lifeCycle.emit("onConfigChange",this.config),this.config},c.prototype.extendBean=function(e,t){this.bean[e]=t},c.prototype.send=function(e,i,o){var t=this;return Nc([tc(this),Ql(this,null==e?void 0:e.type),function(n,r){t.request(n,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];r({isErr:!1,result:e,logType:n.type,logs:n.log}),null!=i&&i.apply(void 0,e)},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];r({isErr:!0,result:e,logType:n.type,logs:n.log}),null!=o&&o.apply(void 0,e)})},nc(this)])(e)},c.prototype.sendSDKError=function(e){var n=this;this.sendPipeline([function(e,t){t({url:n.config.url+"?id=1085&msg[0]="+encodeURIComponent(Rl(e))+"&level[0]=2&from="+n.config.id+"&count=1&version="+n.config.id+"(1.0.6)",addBean:!1,method:"get",type:pl.SDK_ERROR,log:e})}],pl.SDK_ERROR)(e)},c.prototype.sendPipeline=function(e,t){var n,o=this;return Nc(Hu([function(e,t){if(e&&e.type===pl.EVENT)return t(e);if("number"!=typeof n.config.random&&(console.warn("random must in [0, 1], default is 1."),n.config.random=1),!n.isHidden||!n.isGetSample)if(n.isGetSample)n.isHidden||t(e);else{if(n.isGetSample=!0,Math.random()<n.config.random)return n.isHidden=!1,t(e);n.isHidden=!0}},ec(n=this,t)],e,[Ql(this,t),tc(this),function(r,i){o.request(r,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=!1;-1<(""+e[o.failRequestCount=0]).indexOf("403 forbidden")&&(n=!0,o.destroy()),i({isErr:n,result:e,logType:null==r?void 0:r.type,logs:null==r?void 0:r.log}),null!=(n=null==r?void 0:r.success)&&n.call.apply(n,Hu([r],e))},function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];60<=++o.failRequestCount&&o.destroy(),-1<(""+t[0]).indexOf("403 forbidden")&&o.destroy(),i({isErr:!0,result:t,logType:null==r?void 0:r.type,logs:null==r?void 0:r.log}),null!=(e=null==r?void 0:r.fail)&&e.call.apply(e,Hu([r],t))})},nc(this)]))},c.prototype.track=function(e,t){void 0===t&&(t={}),e&&"string"==typeof e?(e={event_id:Dl(),event_type:p.CUSTOM,event_category:ml.CUSTOM,timestamp:Date.now(),page_url:this.getCurrentEventPageUrl(t.pageUrl),data:{event_name:e,replay_id:this.getEventReplayId(t.replayId),tags:this.sanitizeEventTags(t.tags),payload:this.sanitizeEventPayload(t.payload),event_properties:this.sanitizeEventProperties(t.properties)}},this.reportTDEMEvent(e)):console.warn("track: name must be a non-empty string")},c.prototype.reportTDEMEvent=function(e){var n=this,e=Array.isArray(e)?e:[e];e.length&&(e=e.map(function(e){var t;return h(h({},e),{page_url:e.page_url||n.getCurrentEventPageUrl(),data:h(h({},e.data),n.mergeEventTags(null==(t=e.data)?void 0:t.tags)?{tags:n.mergeEventTags(null==(t=e.data)?void 0:t.tags)}:{})})}),this.lifeCycle.emit("tdemEventCreated",e),this.tdemEventPipeline(e))},c.prototype.measure=function(e,t,n){void 0===n&&(n={}),e&&"string"==typeof e?"number"==typeof t?t<0||2147483646<t?console.warn("measure: duration must between 0 and 2147483646"):this.submitMeasure(e,t,n):console.warn("measure: duration must be a number"):console.warn("measure: name must be a non-empty string")},c.prototype.startMeasure=function(e){"string"==typeof e&&e?this.timeMap[e]?console.warn("Measure "+e+" already exists"):this.timeMap[e]=Date.now():console.warn("startMeasure: name must be a non-empty string")},c.prototype.endMeasure=function(e,t){var n;void 0===t&&(t={}),"string"==typeof e&&e?(n=this.getTimeEventDuration(e))!==undefined?(this.submitMeasure(e,n,t),delete this.timeMap[e]):console.warn("Measure "+e+" does not exist"):console.warn("endMeasure: name must be a non-empty string")},c.prototype.captureMessage=function(e,t){var n;void 0===t&&(t={}),"string"==typeof e&&e?(n="error"===t.level?"error":"warn"===t.level?"warn":"info",n={event_id:Dl(),event_type:p.LOG,event_category:ml.LOG,timestamp:Date.now(),page_url:this.getCurrentEventPageUrl(t.pageUrl),data:{log_level:n,replay_id:this.getEventReplayId(t.replayId),tags:this.sanitizeEventTags(t.tags),event_properties:this.sanitizeEventProperties(h({message:e},t.properties||{}))}},this.reportTDEMEvent(n)):console.warn("captureMessage: message must be a non-empty string")},c.prototype.captureException=function(e,t){void 0===t&&(t={});var e="string"==typeof e?new Error(e):e;e instanceof Error?(e={event_id:Dl(),event_type:p.JS_ERROR,event_category:ml.ERROR,timestamp:Date.now(),page_url:this.getCurrentEventPageUrl(t.pageUrl),data:{exception_stacks:[{type:e.name||"Error",value:e.message,mechanism_type:"manual",mechanism_handled:1}],exception_frames:Fl(e),replay_id:this.getEventReplayId(t.replayId),tags:this.sanitizeEventTags(t.tags),event_properties:this.sanitizeEventProperties(h(h({},t.properties||{}),t.level?{capture_level:t.level}:{}))}},this.reportTDEMEvent(e)):console.warn("captureException: error must be an Error or string")},c.prototype.setTags=function(e){e=this.sanitizeEventTags(e);this.setConfig({defaultTags:h(h({},this.config.defaultTags||{}),e||{})})},c.prototype.removeTags=function(e){var t,e=Array.isArray(e)?e:[e];e.length&&(t=h({},this.config.defaultTags||{}),e.forEach(function(e){delete t[e]}),this.setConfig({defaultTags:t}))},c.prototype.clearTags=function(){this.setConfig({defaultTags:{}})},c.prototype.setUser=function(e){"string"==typeof e&&e?this.setConfig({userId:e}):console.warn("setUser: userId must be a non-empty string")},c.prototype.clearUser=function(){this.setConfig({userId:"",uin:""})},c.prototype.reportStruggle=function(e){var t,n,r;e&&e.type&&e.ownerType&&e.ownerKey?(r=e.type,t="number"==typeof e.severity?e.severity:Dc[r],n="number"==typeof e.weight?e.weight:Fc[r],r={event_id:Dl(),event_type:p.STRUGGLE,event_category:ml.BEHAVIOR,timestamp:Date.now(),page_url:this.getCurrentEventPageUrl(e.pageUrl),data:{event_name:r,replay_id:this.getEventReplayId(),tags:this.sanitizeEventTags(e.tags),is_effective_action:!1,related_event_ids:this.normalizeRelatedEventIds(e.relatedEventIds),payload:this.sanitizeEventPayload(e.payload,e.payloadAllowlist),struggle_weight:n,struggle_severity:t,struggle_value:"number"==typeof e.value?e.value:n*t,event_properties:{form_id:e.formId||"",field_id:e.fieldId||"",trigger_event_id:e.triggerEventId||"",struggle_status:e.status||"detected",struggle_owner_type:e.ownerType,struggle_owner_key:e.ownerKey,detection_source:e.detectionSource||"sdk_auto",rule_version:e.ruleVersion||this.getDefaultRuleVersion()}}},this.reportTDEMEvent(r)):console.warn("reportStruggle params error")},c.prototype.reportFormSubmitResult=function(e){e&&e.status?(e={event_id:Dl(),event_type:p.FORM_SUBMIT_RESULT,event_category:ml.BEHAVIOR,timestamp:Date.now(),page_url:this.getCurrentEventPageUrl(e.pageUrl),data:{event_name:e.eventName||"form_submit_"+e.status,replay_id:this.getEventReplayId(),tags:this.sanitizeEventTags(e.tags),is_effective_action:"boolean"!=typeof e.isEffectiveAction||e.isEffectiveAction,trigger_event_id:e.triggerEventId,related_event_ids:this.normalizeRelatedEventIds(e.relatedEventIds),payload:this.sanitizeEventPayload(e.payload,e.payloadAllowlist),validation_message:e.validationMessage?e.validationMessage.slice(0,256):undefined,event_properties:{status:e.status,validation_code:e.validationCode||"",form_id:e.formId||"",field_id:e.fieldId||""}}},this.reportTDEMEvent(e)):console.warn("reportFormSubmitResult params error")},c.prototype.reportPageView=function(e,t){void 0===t&&(t={});e=this.getCurrentEventPageUrl(e||t.pageUrl),e={event_id:Dl(),event_type:p.PAGE_VIEW,event_category:ml.BEHAVIOR,timestamp:Date.now(),page_url:e,data:{page_title:t.pageTitle||"",referrer:t.referrer,replay_id:this.getEventReplayId(t.replayId),tags:this.sanitizeEventTags(t.tags),event_properties:this.sanitizeEventProperties(h(h(h(h(h(h(h({},t.properties||{}),t.navigationType?{navigation_type:t.navigationType}:{}),t.fromPage?{from_page:t.fromPage}:{}),t.toPage?{to_page:t.toPage}:{}),"boolean"==typeof t.isFirstVisit?{is_first_visit:t.isFirstVisit?"1":"0"}:{}),"boolean"==typeof t.isFirstLoad?{is_first_load:t.isFirstLoad?"1":"0"}:{}),t.deviceType?{device_type:t.deviceType}:{}))}};this.reportTDEMEvent(e)},c.prototype.setPage=function(e,t){var n;e&&"string"==typeof e?(n=this._customPageUrl||this.getCurrentEventPageUrl(),this._customPageUrl=e,this.reportPageView(e,{pageTitle:null==t?void 0:t.pageTitle,navigationType:"push",fromPage:(n||"").slice(0,512),toPage:e.slice(0,512),isFirstVisit:!1,tags:h({source:"manual",environment:this.config.env||"production",version:String(this.config.version||"")},null!=t&&t.pageGroup?{page_group:t.pageGroup}:{})}),this.lifeCycle.emit("pageChanged",{pageUrl:e,previousUrl:n,source:"manual"})):console.warn("setPage: pageUrl must be a non-empty string")},c.prototype.leavePage=function(){var e;this._customPageUrl&&(e=this._customPageUrl,this._customPageUrl=null,this.lifeCycle.emit("pageChanged",{pageUrl:this.getCurrentEventPageUrl(),previousUrl:e,source:"auto"}))},c.prototype.getCurrentEventPageUrl=function(e){if(e)return e;if(this._customPageUrl)return this._customPageUrl;try{return this.getOriginFrom()}catch(Me){return this.config.pageUrl||"undefined"!=typeof window&&(null==(e=window.location)?void 0:e.href)||""}},c.prototype.getCurrentReplayId=function(){var e,t;return String((null==(t=null==(e=null==(t=this.sessionManager)?void 0:t.getSession)?void 0:e.call(t))?void 0:t.replayId)||"")},c.prototype.getDefaultRuleVersion=function(){var e;return(null==(e=null==(e=this.config)?void 0:e.struggleMonitor)?void 0:e.ruleVersion)||"1.0.0"},c.prototype.getEventReplayId=function(e){return e||this.getCurrentReplayId()||undefined},c.prototype.mergeEventTags=function(e){return this.sanitizeEventTags(h(h({},this.config.defaultTags||{}),e||{}))},c.prototype.sanitizeStringMap=function(n,r){var i;return void 0===r&&(r=1024),n&&"object"===v(n)&&(i={},Object.keys(n).forEach(function(e){var t=n[e];e&&t!==undefined&&null!==t&&(i[String(e)]=String(t).slice(0,r))}),Object.keys(i).length)?i:undefined},c.prototype.sanitizeEventTags=function(e){return this.sanitizeStringMap(e,1024)},c.prototype.sanitizeEventProperties=function(e){return this.sanitizeStringMap(e,1024)},c.prototype.sanitizeEventPayload=function(n,e){var r;return n&&"object"===v(n)&&(e=(e=this.getPayloadAllowlist(e)).length?e:Object.keys(n),r={},e.forEach(function(e){var t;Object.prototype.hasOwnProperty.call(n,e)&&(t=n[e])!==undefined&&null!==t&&("string"==typeof t?r[e]=t.slice(0,256):"number"==typeof t||"boolean"==typeof t?r[e]=t:Array.isArray(t)?r[e]=t.slice(0,10).map(function(e){return"string"==typeof e?e.slice(0,256):"number"==typeof e||"boolean"==typeof e?e:String(e).slice(0,256)}):r[e]=String(t).slice(0,256))}),Object.keys(r).length)?r:undefined},c.prototype.getPayloadAllowlist=function(e){var t=null==(t=null==(t=this.config)?void 0:t.struggleMonitor)?void 0:t.payloadAllowlist;return Array.from(new Set(Hu(Array.isArray(t)?t:[],Array.isArray(e)?e:[]).filter(function(e){return!!e})))},c.prototype.normalizeRelatedEventIds=function(e){return Array.isArray(e)&&e.length&&(e=Array.from(new Set(e.filter(function(e){return"string"==typeof e&&e})))).length?e:undefined},c.prototype.ready=function(e,t,n){throw new Error('You need to override "ready" method')},c.prototype.request=function(e,t,n){throw new Error('You need to override "request" method')},c.prototype.speedLogPipeline=function(e){throw new Error('You need to override "speedLogPipeline" method')},c.prototype.getOriginFrom=function(){throw new Error('You need to override "getOriginFrom" method')},Object.defineProperty(c.prototype,"__version__",{get:function(){return"1.0.6"},enumerable:!1,configurable:!0}),c.prototype.submitMeasure=function(e,t,n){void 0===n&&(n={});e={event_id:Dl(),event_type:p.CUSTOM,event_category:ml.CUSTOM,timestamp:Date.now(),page_url:this.getCurrentEventPageUrl(n.pageUrl),data:{event_name:e,measurements:{duration:t},replay_id:this.getEventReplayId(n.replayId),tags:this.sanitizeEventTags(n.tags),payload:this.sanitizeEventPayload(n.payload),event_properties:this.sanitizeEventProperties(n.properties)}};this.reportTDEMEvent(e)},c.prototype.getTimeEventDuration=function(e){return e!==undefined&&this.timeMap[e]?Date.now()-this.timeMap[e]:undefined},c.version="1.0.6",c.instances=[],c.environment=gl,c.installedPlugins=[],c),o=(Kc.prototype.patch=function(e){this.canUse(e)&&this.exist(e)&&(this.instances.push(e),this.triggerInit(e),this.triggerOnNewTdem(e))},Kc.prototype.unpatch=function(e){var t=this.instances.indexOf(e);-1!==t&&(this.instances.splice(t,1),0===this.instances.length)&&this.uninstall(e)},Kc.prototype.countInstance=function(){return this.instances.length},Kc.prototype.uninstall=function(e){var t;null!=(t=null==(t=this.option)?void 0:t.destroy)&&t.apply(this,[e])},Kc.prototype.walk=function(n){var r=this;this.instances.forEach(function(e){var t=r.canUse(e);t&&n(e,t)})},Kc.prototype.canUse=function(e){e=this.getConfig(e);return!(!e||"object"!==v(e))||!!e},Kc.prototype.getConfig=function(e){return null==(e=e.config)?void 0:e[this.name]},Kc.prototype.exist=function(e){return-1===this.instances.indexOf(e)},Kc.prototype.triggerInit=function(e){var t;this.inited||(this.inited=!0,null==(t=null==(t=this.option)?void 0:t.init))||t.call(this.option,this.getConfig(e))},Kc.prototype.triggerOnNewTdem=function(e){var t;null!=(t=null==(t=this.option)?void 0:t.onNewTdem)&&t.call(this.option,e,this.getConfig(e))},Kc),on=new o({name:"aid",aid:"",init:function(e){try{var t=!0!==e&&e||window.localStorage.getItem("TDEM_ID");t||(t=_c(),window.localStorage.setItem("TDEM_ID",t)),this.aid=t}catch(P){}},onNewTdem:function(e){e.bean.aid=this.aid,e.config.aid=this.aid}}),Bc=RangeError,zc=String,jc=Math.floor,Wc=y(mt),Hc=y("".slice),Vc=y(1.1.toFixed),Zc=function(e,t,n){return 0===t?n:t%2==1?Zc(e,t-1,n*e):Zc(e*e,t/2,n)},Gc=function(e,t,n){for(var r=-1,i=n;++r<6;)i+=t*e[r],e[r]=i%1e7,i=jc(i/1e7)},Yc=function(e,t){for(var n=6,r=0;0<=--n;)r+=e[n],e[n]=jc(r/t),r=r%t*1e7},Jc=function(e){for(var t,n=6,r="";0<=--n;)""===r&&0!==n&&0===e[n]||(t=zc(e[n]),r=""===r?t:r+Wc("0",7-t.length)+t);return r},i=m(function(){return"0.000"!==Vc(8e-5,3)||"1"!==Vc(.9,0)||"1.25"!==Vc(1.255,2)||"1000000000000000128"!==Vc(0xde0b6b3a7640080,0)})||!m(function(){Vc({})});function Kc(e){this.tdemPlugin=!0,this.name="",this.instances=[],this.inited=!1,e.$walk=this.walk.bind(this),e.$getConfig=this.getConfig.bind(this),this.option=e,this.name=e.name}function c(e){var n,r,i,o,t,a,s,u;this.isGetSample=!1,this.isHidden=!1,this.config={version:0,delay:1e3,onError:!0,repeat:60,random:1,aid:!0,device:!0,pagePerformance:!0,webVitals:!0,speedSample:!0,onClose:!0,reportLoadPackageSpeed:!0,env:"production",url:"",reportImmediately:!0,tdemConfig:!0,hostUrl:"https://dem.rumt-zh.com",offlineUrl:"",whiteListUrl:"",pvUrl:"",speedUrl:"",customTimeUrl:"",performanceUrl:"",performanceUrlForHippy:"",webVitalsUrl:"",eventUrl:"",setDataReportUrl:""},this.isWhiteList=!1,this.lifeCycle=new ll,this.bean={},this._customPageUrl=null,this.tdemEventPipeline=Nc([(r=n=!1,i=[],this._tdemSampleGate={decide:function(e){n=!0,(r=e)&&i.forEach(function(e){var t=e.event;return(0,e.resolve)(t)}),i=[]},reDecide:function(e){return r=!(e<=0)&&(100<=e||100*Math.random()<e)},get isDecided(){return n},get isSampled(){return r}},function(e,t){n?r&&t(e):i.length<1e3&&i.push({event:e,resolve:t})}),(t=100,s=Math.max(Number(t)||1,1),u=[],function(e,t){var e=Array.isArray(e)?e:[e],n=(u.push.apply(u,e),function(){for(;0<u.length;)t(u.splice(0,s))});clearTimeout(a),s<=u.length?n():a=setTimeout(function(){0<u.length&&n()},5e3)}),function(e,t){try{var n,r=JSON.parse(JSON.stringify(e)),i=(o.lifeCycle.emit("beforeReport",r),o.config.beforeReport);"function"==typeof i?0<(n=e.filter(function(e){return!1!==i(e)})).length&&t(n):t(e)}catch(N){t(e)}},Mc(o=this)]),this.timeMap={},this.failRequestCount=0,c.instances.push(this)}E({target:"Number",proto:!0,forced:i},{toFixed:function(e){var t,n,r,i=rc(this),e=le(e),o=[0,0,0,0,0,0],a="",s="0";if(e<0||20<e)throw new Bc("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||1e21<=i)return zc(i);if(i<0&&(a="-",i=-i),1e-21<i)if(r=(t=function(){for(var e=0,t=i*Zc(2,69,1);4096<=t;)e+=12,t/=4096;for(;2<=t;)e+=1,t/=2;return e}()-69)<0?i*Zc(2,-t,1):i/Zc(2,t,1),r*=4503599627370496,0<(t=52-t)){for(Gc(o,0,r),n=e;7<=n;)Gc(o,1e7,0),n-=7;for(Gc(o,Zc(10,n,1),0),n=t-1;23<=n;)Yc(o,1<<23),n-=23;Yc(o,1<<n),Gc(o,1,1),Yc(o,2),s=Jc(o)}else Gc(o,0,r),Gc(o,1<<-t,0),s=Jc(o)+Wc("0",e);return 0<e?a+((r=s.length)<=e?"0."+Wc("0",e-r)+s:Hc(s,0,r-e)+"."+Hc(s,r-e)):a+s}});var qc=function(t){return"string"!=typeof t||!t||Yu.some(function(e){return-1<t.indexOf(e)})||Gu.some(function(e){return-1<t.indexOf(e)})},Xc=function(){return"undefined"!=typeof window.performance&&"function"==typeof performance.getEntriesByType&&"function"==typeof performance.now};function $c(e){return e=e.sessionManager,[(null==(e=null==(t=null==e?void 0:e.getSession)?void 0:t.call(e))?void 0:e.replayId)||"",null==e||e.id,!e||e.sampled,null==e||e.sampled][0];var t}var Qc,ed,td=new o({name:"assets"}),mt=td=new o({name:"assets",collectCur:0,collectEntryType:"resource",ASSETS_INITIATOR_TYPE:["img","css","script","link","audio","video"],getFromParam:function(e){var t;return(null==(t=e.getOriginFrom)?void 0:t.call(e))||window.location.href},onNewTdem:function(e){var t=this;Xc()&&(setTimeout(function(){t.collectSuccessLog(e),t.collectFailLog(e)},5e3),performance.onresourcetimingbufferfull=function(){"function"==typeof performance.clearResourceTimings&&(t.collectCur=0,performance.clearResourceTimings())})},processLog:function(e,t){var n=t.duration||0,r=t.transferSize||0,n={event_id:Dl(),event_type:p.RESOURCE_LOAD,event_category:ml.NETWORK,timestamp:Date.now(),page_url:t.from||window.location.href,data:{url:t.url,resource_type:t.type||"static",measurements:{duration:n,dns_time:t.domainLookup,tcp_time:t.connectTime,transfer_size:0<r?r:undefined},replay_id:$c(e),tags:{environment:e.config.env||"production",is_https:t.isHttps?"true":"false"},event_properties:{is_cached:String(0===r),protocol:t.nextHopProtocol||"",http_status:String(t.status||0)}}};null!=(r=e.reportTDEMEvent)&&r.call(e,n)},publish:function(t,n){var r=this;this.$walk(function(e){e===n&&(Array.isArray(t)?t.forEach(r.processLog):r.processLog(n,t))})},publishMany:function(e,t){for(var n=t.config,r=this.getFromParam(t),i=0,o=e.length;i<o;i++){var a=e[i];-1===this.ASSETS_INITIATOR_TYPE.indexOf(a.initiatorType)||Ll(a.name,n.hostUrl)||this.publish(this.generateLog(a,n,r),t)}},collectSuccessLog:function(n){var e,t,r=this;"function"==typeof window.PerformanceObserver?(this.publishMany(performance.getEntriesByType(this.collectEntryType),n),(e=new window.PerformanceObserver(function(e){r.publishMany(e.getEntries(),n)})).observe({entryTypes:[this.collectEntryType]}),n.lifeCycle.on("destroy",function(){0===td.countInstance()&&e.disconnect()})):(t=setInterval(function(){var e=performance.getEntriesByType(r.collectEntryType),t=e.slice(r.collectCur);r.collectCur=e.length,r.publishMany(t,n)},3e3),n.lifeCycle.on("destroy",function(){0===td.countInstance()&&clearInterval(t)}))},collectFailLog:function(i){var o=this,a=i.config,e=function(e){var t,n,r;e&&(e=e.target||e.srcElement,!(t=(null==e?void 0:e.src)||(null==e?void 0:e.href))||"string"!=typeof t||-1<window.location.href.indexOf(t)||(e="function"==typeof(null==(e=a.api)?void 0:e.resourceTypeHandler)?null==e?void 0:e.resourceTypeHandler(t):"",r=performance.getEntriesByType(o.collectEntryType).find(function(e){return e.name===t}),Ll(t,a.hostUrl))||(n=o.getFromParam(i),r={url:wl(t),status:400,duration:Number(((null==r?void 0:r.duration)||0).toFixed(2)),method:"get",type:e||"static",isHttps:bl(t),urlQuery:yl(t,!0),nextHopProtocol:"",domainLookup:0,connectTime:0,from:n},o.publish(r,i)))};window.document.addEventListener("error",e,!0),i.lifeCycle.on("destroy",function(){0===td.countInstance()&&window.document.removeEventListener("error",e,!0)})},generateLog:function(e,t,n){var t="function"==typeof(null==(r=t.api)?void 0:r.resourceTypeHandler)?null==(r=t.api)?void 0:r.resourceTypeHandler(e.name):"",r=e.transferSize;return{url:wl(e.name),method:"get",duration:Number(e.duration.toFixed(2)),status:200,type:t||"static",isHttps:bl(e.name),nextHopProtocol:e.nextHopProtocol||"",urlQuery:yl(e.name,!0),domainLookup:vl(e.domainLookupEnd-e.domainLookupStart),connectTime:vl(e.connectEnd-e.connectStart),transferSize:0<r?r:-1,from:n}},collectNotReportedLog:function(e){var t,n;Xc()&&(t=(n=performance.getEntriesByType(this.collectEntryType)).length,"function"!=typeof window.PerformanceObserver)&&this.collectCur!==t&&(n=n.slice(this.collectCur),this.collectCur=t,this.publishMany(n,e))},destroy:function(){this.option.publish=function(){}}}),i=/ipad|iphone|ipod/i.test(On)&&/applewebkit/i.test(On),nd=x.setImmediate,rd=x.clearImmediate,id=x.process,od=x.Dispatch,ad=x.Function,g=x.MessageChannel,sd=x.String,ud=0,ld={},cd=(m(function(){Qc=x.location}),function(e){var t;T(ld,e)&&(t=ld[e],delete ld[e],t())}),dd=function(e){return function(){cd(e)}},fd=function(e){cd(e.data)},hd=function(e){x.postMessage(sd(e),Qc.protocol+"//"+Qc.host)},g=(nd&&rd||(nd=function(e){Gl(arguments.length,1);var t=ne(e)?e:ad(e),n=Pn(arguments,1);return ld[++ud]=function(){Oe(t,undefined,n)},ed(ud),ud},rd=function(e){delete ld[e]},jl?ed=function(e){id.nextTick(dd(e))}:od&&od.now?ed=function(e){od.now(dd(e))}:g&&!i?(gd=(g=new g).port2,g.port1.onmessage=fd,ed=zr(gd.postMessage,gd)):x.addEventListener&&ne(x.postMessage)&&!x.importScripts&&Qc&&"file:"!==Qc.protocol&&!m(hd)?(ed=hd,x.addEventListener("message",fd,!1)):ed="onreadystatechange"in ve("script")?function(e){or.appendChild(ve("script")).onreadystatechange=function(){or.removeChild(this),cd(e)}}:function(e){setTimeout(dd(e),0)}),{set:nd,clear:rd}),pd=Object.getOwnPropertyDescriptor,gd=function(e){var t;return O?(t=pd(x,e))&&t.value:x[e]},hd=function(){this.head=null,this.tail=null};hd.prototype={add:function(e){var e={item:e,next:null},t=this.tail;t?t.next=e:this.head=e,this.tail=e},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}};var md,vd,yd,wd,bd,kd,Sd=hd,fd=/ipad|iphone|ipod/i.test(On)&&"undefined"!=typeof Pebble,nd=/web0s(?!.*chrome)/i.test(On),_d=g.set,rd=x.MutationObserver||x.WebKitMutationObserver,hd=x.document,Cd=x.process,Id=x.Promise,w=gd("queueMicrotask"),Ed=(w||(wd=new Sd,bd=function(){var e,t;for(jl&&(e=Cd.domain)&&e.exit();t=wd.get();)try{t()}catch($){throw wd.head&&kd(),$}e&&e.enter()},kd=i||jl||nd||!rd||!hd?!fd&&Id&&Id.resolve?((i=Id.resolve(undefined)).constructor=Id,yd=zr(i.then,i),function(){yd(bd)}):jl?function(){Cd.nextTick(bd)}:(_d=zr(_d,x),function(){_d(bd)}):(md=!0,vd=hd.createTextNode(""),new rd(bd).observe(vd,{characterData:!0}),function(){vd.data=md=!md}),w=function(e){wd.head||kd(),wd.add(e)}),w),Rd=function(e){try{return{error:!1,value:e()}}catch($){return{error:!0,value:$}}},xd=x.Promise,Od=TypeError,Ad=function(e){var n,r;this.promise=new e(function(e,t){if(n!==undefined||r!==undefined)throw new Od("Bad Promise constructor");n=e,r=t}),this.resolve=xe(n),this.reject=xe(r)},Td={f:function(e){return new Ad(e)}},Md=function(e,t){return be(e),R(t)&&t.constructor===e?t:((0,(e=Td.f(e)).resolve)(t),e.promise)},Pd=xd&&xd.prototype,nd=!!xd&&m(function(){Pd["finally"].call({then:function(){}},function(){})});E({target:"Promise",proto:!0,real:!0,forced:nd},{"finally":function(t){var n=Hs(this,_e("Promise")),e=ne(t);return this.then(e?function(e){return Md(n,t()).then(function(){return e})}:t,e?function(e){return Md(n,t()).then(function(){throw e})}:t)}}),ne(xd)&&(fd=_e("Promise").prototype["finally"],Pd["finally"]!==fd)&&xt(Pd,"finally",fd,{unsafe:!0}),xd&&xd.prototype;var Nd,Ld,Dd,Fd,Ud=qe("species"),Bd=!1,zd=ne(x.PromiseRejectionEvent),Id={CONSTRUCTOR:hs("Promise",function(){var e=Ke(xd),t=e!==String(xd);if(!t&&66===An)return!0;if(!An||An<51||!/native code/.test(e)){var e=new xd(function(e){e(1)}),n=function(e){e(function(){},function(){})};if((e.constructor={})[Ud]=n,!(Bd=e.then(function(){})instanceof n))return!0}return!(t||"BROWSER"!=zl&&"DENO"!=zl||zd)}),REJECTION_EVENT:zd,SUBCLASSING:Bd},jd=g.set,i=Id.CONSTRUCTOR,Wd=Id.REJECTION_EVENT,hd=Id.SUBCLASSING,Hd=kt.getterFor("Promise"),Vd=kt.set,rd=xd&&xd.prototype,Zd=xd,Gd=rd,Yd=x.TypeError,Jd=x.document,Kd=x.process,qd=Td.f,Xd=qd,$d=!!(Jd&&Jd.createEvent&&x.dispatchEvent),Qd=function(e){var t;return!(!R(e)||!ne(t=e.then))&&t},ef=function(e,t){var n,r,i,o=t.value,a=1===t.state,s=a?e.ok:e.fail,u=e.resolve,l=e.reject,c=e.domain;try{s?(a||(2===t.rejection&&af(t),t.rejection=1),!0===s?n=o:(c&&c.enter(),n=s(o),c&&(c.exit(),i=!0)),n===e.promise?l(new Yd("Promise-chain cycle")):(r=Qd(n))?A(r,n,u,l):u(n)):l(o)}catch($){c&&!i&&c.exit(),l($)}},tf=function(n,r){n.notified||(n.notified=!0,Ed(function(){for(var e,t=n.reactions;e=t.get();)ef(e,n);n.notified=!1,r&&!n.rejection&&rf(n)}))},nf=function(e,t,n){var r;$d?((r=Jd.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),x.dispatchEvent(r)):r={promise:t,reason:n},!Wd&&(t=x["on"+e])?t(r):"unhandledrejection"===e&&function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch($){}}("Unhandled promise rejection",n)},rf=function(r){A(jd,x,function(){var e,t=r.facade,n=r.value;if(of(r)&&(e=Rd(function(){jl?Kd.emit("unhandledRejection",n,t):nf("unhandledrejection",t,n)}),r.rejection=jl||of(r)?2:1,e.error))throw e.value})},of=function(e){return 1!==e.rejection&&!e.parent},af=function(t){A(jd,x,function(){var e=t.facade;jl?Kd.emit("rejectionHandled",e):nf("rejectionhandled",e,t.value)})},sf=function(t,n,r){return function(e){t(n,e,r)}},uf=function(e,t,n){e.done||(e.done=!0,(e=n?n:e).value=t,e.state=2,tf(e,!0))},lf=function(t,n,e){if(!t.done){t.done=!0,e&&(t=e);try{if(t.facade===n)throw new Yd("Promise can't be resolved itself");var r=Qd(n);r?Ed(function(){var e={done:!1};try{A(r,n,sf(lf,e,t),sf(uf,e,t))}catch($){uf(e,$,t)}}):(t.value=n,t.state=1,tf(t,!1))}catch($){uf({done:!1},$,t)}}};if(i&&(Gd=(Zd=function(e){Qn(this,Gd),xe(e),A(Nd,this);var t=Hd(this);try{e(sf(lf,t),sf(uf,t))}catch($){uf(t,$)}}).prototype,(Nd=function(e){Vd(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new Sd,rejection:!1,state:0,value:null})}).prototype=xt(Gd,"then",function(e,t){var n=Hd(this),r=qd(Hs(this,Zd));return n.parent=!0,r.ok=!ne(e)||e,r.fail=ne(t)&&t,r.domain=jl?Kd.domain:undefined,0===n.state?n.reactions.add(r):Ed(function(){ef(r,n)}),r.promise}),Ld=function(){var e=new Nd,t=Hd(e);this.promise=e,this.resolve=sf(lf,t),this.reject=sf(uf,t)},Td.f=qd=function(e){return e===Zd||e===Dd?new Ld:Xd(e)},ne(xd))&&rd!==Object.prototype){Fd=rd.then,hd||xt(rd,"then",function(e,t){var n=this;return new Zd(function(e,t){A(Fd,n,e,t)}).then(e,t)},{unsafe:!0});try{delete rd.constructor}catch($){}br&&br(rd,Gd)}E({global:!0,constructor:!0,wrap:!0,forced:i},{Promise:Zd}),Dd=fi.Promise,fr(Zd,"Promise",!1),pa("Promise");var cf,df,ff,w=Id.CONSTRUCTOR||!au(function(e){xd.all(e).then(undefined,function(){})}),nd=(E({target:"Promise",stat:!0,forced:w},{all:function(e){var s=this,t=Td.f(s),u=t.resolve,l=t.reject,n=Rd(function(){var r=xe(s.resolve),i=[],o=0,a=1;$r(e,function(e){var t=o++,n=!1;a++,A(r,s,e).then(function(e){n||(n=!0,i[t]=e,--a)||u(i)},l)}),--a||u(i)});return n.error&&l(n.value),t.promise}}),Id.CONSTRUCTOR),fd=xd&&xd.prototype,hd=(E({target:"Promise",proto:!0,forced:nd,real:!0},{"catch":function(e){return this.then(undefined,e)}}),ne(xd)&&(g=_e("Promise").prototype["catch"],fd["catch"]!==g)&&xt(fd,"catch",g,{unsafe:!0}),E({target:"Promise",stat:!0,forced:w},{race:function(e){var n=this,r=Td.f(n),i=r.reject,t=Rd(function(){var t=xe(n.resolve);$r(e,function(e){A(t,n,e).then(r.resolve,i)})});return t.error&&i(t.value),r.promise}}),E({target:"Promise",stat:!0,forced:Id.CONSTRUCTOR},{reject:function(e){var t=Td.f(this);return(0,t.reject)(e),t.promise}}),Id.CONSTRUCTOR),hf=(_e("Promise"),E({target:"Promise",stat:!0,forced:hd},{resolve:function(e){return Md(this,e)}}),window.navigator.userAgent.toLowerCase()),C={},pf=function(e){return-1!==hf.indexOf(e)},gf=(C.macos=function(){return pf("mac")},C.ios=function(){return C.iphone()||C.ipod()||C.ipad()},C.iphone=function(){return!C.windows()&&pf("iphone")},C.ipod=function(){return pf("ipod")},C.ipad=function(){var e="MacIntel"===navigator.platform&&1<navigator.maxTouchPoints;return pf("ipad")||e},C.android=function(){return!C.windows()&&pf("android")},C.androidPhone=function(){return C.android()&&pf("mobile")},C.androidTablet=function(){return C.android()&&!pf("mobile")},C.blackberry=function(){return pf("blackberry")||pf("bb10")},C.blackberryPhone=function(){return C.blackberry()&&!pf("tablet")},C.blackberryTablet=function(){return C.blackberry()&&pf("tablet")},C.windows=function(){return pf("windows")},C.windowsPhone=function(){return C.windows()&&pf("phone")},C.windowsTablet=function(){return C.windows()&&pf("touch")&&!C.windowsPhone()},C.fxos=function(){return(pf("(mobile")||pf("(tablet"))&&pf(" rv:")},C.fxosPhone=function(){return C.fxos()&&pf("mobile")},C.fxosTablet=function(){return C.fxos()&&pf("tablet")},C.meego=function(){return pf("meego")},C.cordova=function(){return window.cordova&&"file:"===location.protocol},C.nodeWebkit=function(){return"object"===v(window.process)},C.mobile=function(){return C.androidPhone()||C.iphone()||C.ipod()||C.windowsPhone()||C.blackberryPhone()||C.fxosPhone()||C.meego()},C.tablet=function(){return C.ipad()||C.androidTablet()||C.blackberryTablet()||C.windowsTablet()||C.fxosTablet()},C.desktop=function(){return!C.tablet()&&!C.mobile()},C.isIE=function(){return"ActiveXObject"in window},void 0),mf=(E({target:"Object",stat:!0},{is:gf}),Object.is,wt("search",function(r,i,o){return[function(e){var t=oe(this),n=R(e)?Ft(e,r):undefined;return n?A(n,e,t):new RegExp(e)[r](_(t))},function(e){var t=be(this),e=_(e),n=o(i,t,e);return n.done?n.value:(n=t.lastIndex,gf(n,0)||(t.lastIndex=0),e=qt(t,e),gf(t.lastIndex,n)||(t.lastIndex=n),null===e?-1:e.index)}]}),Math.floor),vf=function(e,t){var n=e.length;if(n<8)for(var r,i,o=1;o<n;){for(r=e[i=o];i&&0<t(e[i-1],r);)e[i]=e[--i];i!==o++&&(e[i]=r)}else for(var a=mf(n/2),s=vf(Pn(e,0,a),t),u=vf(Pn(e,a),t),l=s.length,c=u.length,d=0,f=0;d<l||f<c;)e[d+f]=d<l&&f<c?t(s[d],u[f])<=0?s[d++]:u[f++]:d<l?s[d++]:u[f++];return e},yf=vf,rd=On.match(/firefox\/(\d+)/i),wf=!!rd&&+rd[1],bf=/MSIE|Trident/.test(On),i=On.match(/AppleWebKit\/(\d+)\./),kf=!!i&&+i[1],Sf=[],_f=y(Sf.sort),Cf=y(Sf.push),nd=m(function(){Sf.sort(undefined)}),fd=m(function(){Sf.sort(null)}),g=Ue("sort"),If=!m(function(){if(An)return An<70;if(!(wf&&3<wf)){if(bf)return!0;if(kf)return kf<603;for(var e,t,n,r="",i=65;i<76;i++){switch(e=String.fromCharCode(i),i){case 66:case 69:case 70:case 72:t=3;break;case 68:case 71:t=4;break;default:t=2}for(n=0;n<47;n++)Sf.push({k:e+n,v:t})}for(Sf.sort(function(e,t){return t.v-e.v}),n=0;n<Sf.length;n++)e=Sf[n].k.charAt(0),r.charAt(r.length-1)!==e&&(r+=e);return"DGBEFHACIJK"!==r}}),Ef=(E({target:"Array",proto:!0,forced:nd||!fd||!g||!If},{sort:function(e){e!==undefined&&xe(e);var t=se(this);if(If)return e===undefined?_f(t):_f(t,e);for(var n,r,i=[],o=fe(t),a=0;a<o;a++)a in t&&Cf(i,t[a]);for(yf(i,(r=e,function(e,t){return t===undefined?-1:e===undefined?1:r!==undefined?+r(e,t)||0:(e=_(e))===(t=_(t))?0:t<e?1:-1})),n=fe(i),a=0;a<n;)t[a]=i[a++];for(;a<o;)wa(t,a++);return t}}),RangeError),Rf=String.fromCharCode,w=String.fromCodePoint,xf=y([].join),Id=!!w&&1!==w.length,hd=(E({target:"String",stat:!0,arity:1,forced:Id},{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,i=0;i<r;){if(mn(t=+arguments[i],1114111)!==t)throw new Ef(t+" is not a valid code point");n[i++]=t<65536?Rf(t):Rf(55296+((t-=65536)>>10),t%1024+56320)}return xf(n,"")}}),qe("iterator")),Of=kt.set,Af=kt.getterFor("URLSearchParams"),Tf=kt.getterFor("URLSearchParamsIterator"),Mf=gd("fetch"),Pf=gd("Request"),Nf=gd("Headers"),Lf=Pf&&Pf.prototype,wt=Nf&&Nf.prototype,Df=x.TypeError,Ff=x.encodeURIComponent,Uf=String.fromCharCode,Bf=_e("String","fromCodePoint"),zf=parseInt,jf=y("".charAt),Wf=y([].join),Hf=y([].push),Vf=y("".replace),Zf=y([].shift),Gf=y([].splice),Yf=y("".split),Jf=y("".slice),Kf=y(/./.exec),qf=/\+/g,Xf=/^[0-9a-f]+$/i,$f=function(e,t){e=Jf(e,t,t+2);return Kf(Xf,e)?zf(e,16):NaN},Qf=function(e){for(var t=(e=Vf(e,qf," ")).length,n="",r=0;r<t;){var i=jf(e,r);if("%"===i){if("%"===jf(e,r+1)||t<r+3){n+="%",r++;continue}var o=$f(e,r+1);if(o!=o){n+=i,r++;continue}r+=2;var a=function(e){for(var t=0,n=128;0<n&&0!=(e&n);n>>=1)t++;return t}(o);if(0===a)i=Uf(o);else{if(1===a||4<a){n+="�",r++;continue}for(var s=[o],u=1;u<a&&!(++r+3>t||"%"!==jf(e,r));){var l=$f(e,r+1);if(l!=l||191<l||l<128)break;if(1===u){if(224===o&&l<160)break;if(237===o&&159<l)break;if(240===o&&l<144)break;if(244===o&&143<l)break}Hf(s,l),r+=2,u++}if(s.length!==a){n+="�";continue}var c=function(e){var t=null,n=e.length;switch(n){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return null===t||1114111<t||55296<=t&&t<=57343||t<(3<n?65536:2<n?2048:1<n?128:0)?null:t}(s);if(null===c){for(var d=0;d<a;d++)n+="�";r++;continue}i=Bf(c)}}n+=i,r++}return n},eh=/[!'()~]|%20/g,th={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},nh=function(e){return th[e]},rh=function(e){return Vf(Ff(e),eh,nh)},ih=wr(function(e,t){Of(this,{type:"URLSearchParamsIterator",target:Af(e).entries,index:0,kind:t})},"URLSearchParams",function(){var e=Tf(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,Rr(undefined,!0);var r=t[n];switch(e.kind){case"keys":return Rr(r.key,!1);case"values":return Rr(r.value,!1)}return Rr([r.key,r.value],!1)},!0),oh=function(e){this.entries=[],this.url=null,e!==undefined&&(R(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===jf(e,0)?Jf(e,1):e:_(e)))},rd=(oh.prototype={type:"URLSearchParams",bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,i,o,a,s=this.entries,u=Zr(e);if(u)for(n=(t=Yr(e,u)).next;!(r=A(n,t)).done;){if(i=(r=Yr(be(r.value))).next,(o=A(i,r)).done||(a=A(i,r)).done||!A(i,r).done)throw new Df("Expected sequence with length 2");Hf(s,{key:_(o.value),value:_(a.value)})}else for(var l in e)T(e,l)&&Hf(s,{key:l,value:_(e[l])})},parseQuery:function(e){if(e)for(var t,n=this.entries,r=Yf(e,"&"),i=0;i<r.length;)(t=r[i++]).length&&(t=Yf(t,"="),Hf(n,{key:Qf(Zf(t)),value:Qf(Wf(t,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],Hf(n,rh(e.key)+"="+rh(e.value));return Wf(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}},function(){Qn(this,ah);var e=0<arguments.length?arguments[0]:undefined,e=Of(this,new oh(e));O||(this.size=e.entries.length)}),ah=rd.prototype,nd=(Fo(ah,{append:function(e,t){var n=Af(this);Gl(arguments.length,2),Hf(n.entries,{key:_(e),value:_(t)}),O||this.size++,n.updateURL()},"delete":function(e){for(var t=Af(this),n=Gl(arguments.length,1),r=t.entries,i=_(e),e=n<2?undefined:arguments[1],o=e===undefined?e:_(e),a=0;a<r.length;){var s=r[a];s.key!==i||o!==undefined&&s.value!==o?a++:Gf(r,a,1)}O||(this.size=r.length),t.updateURL()},get:function(e){var t=Af(this).entries;Gl(arguments.length,1);for(var n=_(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){var t=Af(this).entries;Gl(arguments.length,1);for(var n=_(e),r=[],i=0;i<t.length;i++)t[i].key===n&&Hf(r,t[i].value);return r},has:function(e){for(var t=Af(this).entries,n=Gl(arguments.length,1),r=_(e),e=n<2?undefined:arguments[1],i=e===undefined?e:_(e),o=0;o<t.length;){var a=t[o++];if(a.key===r&&(i===undefined||a.value===i))return!0}return!1},set:function(e,t){var n=Af(this);Gl(arguments.length,2);for(var r,i=n.entries,o=!1,a=_(e),s=_(t),u=0;u<i.length;u++)(r=i[u]).key===a&&(o?Gf(i,u--,1):(o=!0,r.value=s));o||Hf(i,{key:a,value:s}),O||(this.size=i.length),n.updateURL()},sort:function(){var e=Af(this);yf(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,n=Af(this).entries,r=zr(e,1<arguments.length?arguments[1]:undefined),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new ih(this,"keys")},values:function(){return new ih(this,"values")},entries:function(){return new ih(this,"entries")}},{enumerable:!0}),xt(ah,hd,ah.entries,{name:"entries"}),xt(ah,"toString",function(){return Af(this).serialize()},{enumerable:!0}),O&&_t(ah,"size",{get:function(){return Af(this).entries.length},configurable:!0,enumerable:!0}),fr(rd,"URLSearchParams"),E({global:!0,constructor:!0,forced:!0},{URLSearchParams:rd}),ne(Nf)&&(cf=y(wt.has),df=y(wt.set),ff=function(e){if(R(e)){var t,n=e.body;if("URLSearchParams"===et(n))return t=e.headers?new Nf(e.headers):new Nf,cf(t,"content-type")||df(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),nr(e,{body:st(0,_(n)),headers:st(0,t)})}return e},ne(Mf)&&E({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return Mf(e,1<arguments.length?ff(arguments[1]):{})}}),ne(Pf))&&((Lf.constructor=i=function(e){return Qn(this,Lf),new Pf(e,1<arguments.length?ff(arguments[1]):{})}).prototype=Lf,E({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:i})),{URLSearchParams:rd,getState:Af});E({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return A(URL.prototype.toString,this)}});var sh,uh=qe("iterator"),lh=(m(function(){var e=new URL("b?a=1&b=2&c=3","https://a"),n=e.searchParams,t=new URLSearchParams("a=1&a=2&b=3"),r="";return e.pathname="c%20d",n.forEach(function(e,t){n["delete"]("b"),r+=t+e}),t["delete"]("a",2),t["delete"]("b",undefined),!n.size&&!O||!n.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==n.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!n[uh]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==r||"x"!==new URL("https://x",undefined).host}),/[^\0-\u007E]/),ch=/[.\u3002\uFF0E\uFF61]/g,dh="Overflow: input needs wider integers to process",fh=RangeError,hh=y(ch.exec),ph=Math.floor,gh=String.fromCharCode,mh=y("".charCodeAt),vh=y([].join),yh=y([].push),wh=y("".replace),bh=y("".split),kh=y("".toLowerCase),Sh=function(e){return e+22+75*(e<26)},_h=function(e){var t,n=[],r=(e=function(e){for(var t=[],n=0,r=e.length;n<r;){var i,o=mh(e,n++);55296<=o&&o<=56319&&n<r?56320==(64512&(i=mh(e,n++)))?yh(t,((1023&o)<<10)+(1023&i)+65536):(yh(t,o),n--):yh(t,o)}return t}(e)).length,i=128,o=0,a=72;for(c=0;c<e.length;c++)(t=e[c])<128&&yh(n,gh(t));var s=n.length,u=s;for(s&&yh(n,"-");u<r;){for(var l=2147483647,c=0;c<e.length;c++)(t=e[c])>=i&&t<l&&(l=t);var d=u+1;if(l-i>ph((2147483647-o)/d))throw new fh(dh);for(o+=(l-i)*d,i=l,c=0;c<e.length;c++){if((t=e[c])<i&&2147483647<++o)throw new fh(dh);if(t===i){for(var f=o,h=36;;){var p=h<=a?1:a+26<=h?26:h-a;if(f<p)break;var g=f-p,m=36-p;yh(n,gh(Sh(p+g%m))),f=ph(g/m),h+=36}yh(n,gh(Sh(f))),a=function(e,t,n){var r=0;for(e=n?ph(e/700):e>>1,e+=ph(e/t);455<e;)e=ph(e/35),r+=36;return ph(r+36*e/(e+38))}(o,d,u===s),o=0,u++}}o++,i++}return vh(n,"")},Ch=Ct.codeAt,Ih=kt.set,Eh=kt.getterFor("URL"),Rh=nd.URLSearchParams,xh=nd.getState,fd=x.URL,Oh=x.TypeError,Ah=x.encodeURIComponent,Th=x.parseInt,Mh=Math.floor,Ph=Math.pow,Nh=y("".charAt),Lh=y(/./.exec),Dh=y([].join),Fh=y(1.1.toString),Uh=y([].pop),Bh=y([].push),zh=y("".replace),jh=y([].shift),Wh=y("".split),Hh=y("".slice),Vh=y("".toLowerCase),Zh=y([].unshift),Gh=/[a-z]/i,Yh=/[\d+\-.a-z]/i,Jh=/\d/,Kh=/^0x/i,qh=/^[0-7]+$/,Xh=/^\d+$/,$h=/^[\da-f]+$/i,Qh=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ep=/[\0\t\n\r #/:<>?@[\\\]^|]/,tp=/^[\u0000-\u0020]+/,np=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,rp=/[\t\n\r]/g,ip=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)Zh(t,e%256),e=Mh(e/256);return Dh(t,".")}if("object"!=v(e))return e;for(t="",r=function(e){for(var t=null,n=1,r=null,i=0,o=0;o<8;o++)0!==e[o]?(n<i&&(t=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return n<i?r:t}(e),n=0;n<8;n++)i&&0===e[n]||(i=i&&!1,r===n?(t+=n?":":"::",i=!0):(t+=Fh(e[n],16),n<7&&(t+=":")));return"["+t+"]"},op={},ap=Or({},op,{" ":1,'"':1,"#":1,"<":1,">":1}),sp=Or({},ap,{"'":1}),up=Or({},op,{" ":1,'"':1,"<":1,">":1,"`":1}),lp=Or({},up,{"#":1,"?":1,"{":1,"}":1,"^":1}),cp=Or({},lp,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),dp=function(e,t){var n=Ch(e,0);return 32<=n&&n<127&&!T(t,e)?e:"'"===e&&T(t,e)?"%27":Ah(e)},fp={ftp:21,file:null,http:80,https:443,ws:80,wss:443},hp=function(e,t){return 2===e.length&&Lh(Gh,Nh(e,0))&&(":"===(e=Nh(e,1))||!t&&"|"===e)},pp=function(e){return 1<e.length&&hp(Hh(e,0,2))&&(2===e.length||"/"===(e=Nh(e,2))||"\\"===e||"?"===e||"#"===e)},gp={},mp={},vp={},yp={},wp={},bp={},kp={},Sp={},_p={},Cp={},Ip={},Ep={},Rp={},xp={},Op={},Ap={},Tp={},Mp={},Pp={},Np={},Lp={},Dp=function(e,t,n){var r,i,e=_(e);if(t){if(i=this.parse(e))throw new Oh(i);this.searchParams=null}else{if(n!==undefined&&(r=new Dp(n,!0)),i=this.parse(e,null,r))throw new Oh(i);(t=xh(new Rh)).bindURL(this),this.searchParams=t}},Fp=(Dp.prototype={type:"URL",parse:function(e,t,n){var r,i,o,a,s=this,u=t||gp,l=0,c="",d=!1,f=!1,h=!1;for(e=_(e),t||(s.scheme="",s.username="",s.password="",s.host=null,s.port=null,s.path=[],s.query=null,s.fragment=null,s.cannotBeABaseURL=!1,e=zh(e,tp,""),e=zh(e,np,"$1")),e=zh(e,rp,""),r=ou(e);l<=r.length;){switch(i=r[l],u){case gp:if(!i||!Lh(Gh,i)){if(t)return"Invalid scheme";u=vp;continue}c+=Vh(i),u=mp;break;case mp:if(i&&Lh(Yh,i))c+=Vh(i);else{if(":"!==i){if(t)return"Invalid scheme";c="",u=vp,l=0;continue}if(t&&(s.isSpecial()!==T(fp,c)||"file"===c&&(s.includesCredentials()||null!==s.port)||"file"===s.scheme&&""===s.host))return;if(s.scheme=c,t)return void(s.isSpecial()&&fp[s.scheme]===s.port&&(s.port=null));c="","file"===s.scheme?u=xp:s.isSpecial()&&n&&n.scheme===s.scheme?u=yp:s.isSpecial()?u=Sp:"/"===r[l+1]?(u=wp,l++):(s.cannotBeABaseURL=!0,Bh(s.path,""),u=Pp)}break;case vp:if(!n||n.cannotBeABaseURL&&"#"!==i)return"Invalid scheme";if(n.cannotBeABaseURL&&"#"===i){s.scheme=n.scheme,s.path=Pn(n.path),s.query=n.query,s.fragment="",s.cannotBeABaseURL=!0,u=Lp;break}u="file"===n.scheme?xp:bp;continue;case yp:if("/"!==i||"/"!==r[l+1]){u=bp;continue}u=_p,l++;break;case wp:if("/"===i){u=Cp;break}u=Mp;continue;case bp:if(s.scheme=n.scheme,i===sh)s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=Pn(n.path),s.query=n.query;else if("/"===i||"\\"===i&&s.isSpecial())u=kp;else if("?"===i)s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=Pn(n.path),s.query="",u=Np;else{if("#"!==i){s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=Pn(n.path),s.path.length&&s.path.length--,u=Mp;continue}s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=Pn(n.path),s.query=n.query,s.fragment="",u=Lp}break;case kp:if(!s.isSpecial()||"/"!==i&&"\\"!==i){if("/"!==i){s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,u=Mp;continue}u=Cp}else u=_p;break;case Sp:if(u=_p,"/"!==i||"/"!==r[l+1])continue;l++;break;case _p:if("/"===i||"\\"===i)break;u=Cp;continue;case Cp:if("@"===i){d&&(c="%40"+c);for(var d=!0,p=ou(c),g=0;g<p.length;g++){var m=p[g];":"!==m||h?(m=dp(m,cp),h?s.password+=m:s.username+=m):h=!0}c=""}else if(i===sh||"/"===i||"?"===i||"#"===i||"\\"===i&&s.isSpecial()){if(d&&""===c)return"Invalid authority";l-=ou(c).length+1,c="",u=Ip}else c+=i;break;case Ip:case Ep:if(t&&"file"===s.scheme){u=Ap;continue}if(":"!==i||f){if(i===sh||"/"===i||"?"===i||"#"===i||"\\"===i&&s.isSpecial()){if(s.isSpecial()&&""===c)return"Invalid host";if(t&&""===c&&(s.includesCredentials()||null!==s.port))return;if(o=s.parseHost(c))return o;if(c="",u=Tp,t)return;continue}"["===i?f=!0:"]"===i&&(f=!1),c+=i}else{if(""===c)return"Invalid host";if(t===Ep)return;if(o=s.parseHost(c))return o;c="",u=Rp}break;case Rp:if(!Lh(Jh,i)){if(i===sh||"/"===i||"?"===i||"#"===i||"\\"===i&&s.isSpecial()||t){if(""!==c){var v=Th(c,10);if(65535<v)return"Invalid port";s.port=s.isSpecial()&&v===fp[s.scheme]?null:v,c=""}if(t)return;u=Tp;continue}return"Invalid port"}c+=i;break;case xp:if(s.scheme="file",s.host="","/"===i||"\\"===i)u=Op;else{if(!n||"file"!==n.scheme){u=Mp;continue}switch(i){case sh:s.host=n.host,s.path=Pn(n.path),s.query=n.query;break;case"?":s.host=n.host,s.path=Pn(n.path),s.query="",u=Np;break;case"#":s.host=n.host,s.path=Pn(n.path),s.query=n.query,s.fragment="",u=Lp;break;default:s.host=n.host,pp(Dh(Pn(r,l),""))||(s.path=Pn(n.path),s.shortenPath()),u=Mp;continue}}break;case Op:if("/"===i||"\\"===i){u=Ap;break}n&&"file"===n.scheme&&(s.host=n.host,!pp(Dh(Pn(r,l),"")))&&hp(n.path[0],!0)&&Bh(s.path,n.path[0]),u=Mp;continue;case Ap:if(i===sh||"/"===i||"\\"===i||"?"===i||"#"===i){if(!t&&hp(c))u=Mp;else{if(""===c){if(s.host="",t)return}else{if(o=s.parseHost(c))return o;if("localhost"===s.host&&(s.host=""),t)return;c=""}u=Tp}continue}c+=i;break;case Tp:if(s.isSpecial()){if(u=Mp,"/"!==i&&"\\"!==i)continue}else if(t||"?"!==i)if(t||"#"!==i){if(i!==sh&&(u=Mp,"/"!==i))continue}else s.fragment="",u=Lp;else s.query="",u=Np;break;case Mp:if(i===sh||"/"===i||"\\"===i&&s.isSpecial()||!t&&("?"===i||"#"===i)){if(".."===(v=Vh(c))||"%2e."===v||".%2e"===v||"%2e%2e"===v?(s.shortenPath(),"/"===i||"\\"===i&&s.isSpecial()||Bh(s.path,"")):"."===(a=c)||"%2e"===Vh(a)?"/"===i||"\\"===i&&s.isSpecial()||Bh(s.path,""):("file"===s.scheme&&!s.path.length&&hp(c)&&(null!==s.host&&""!==s.host&&(s.host=""),c=Nh(c,0)+":"),Bh(s.path,c)),c="","file"===s.scheme&&(i===sh||"?"===i||"#"===i))for(;1<s.path.length&&""===s.path[0];)jh(s.path);"?"===i?(s.query="",u=Np):"#"===i&&(s.fragment="",u=Lp)}else c+=dp(i,lp);break;case Pp:"?"===i?(s.query="",u=Np):"#"===i?(s.fragment="",u=Lp):i!==sh&&(s.path[0]+=dp(i,op));break;case Np:t||"#"!==i?i!==sh&&(s.query+=dp(i,s.isSpecial()?sp:ap)):(s.fragment="",u=Lp);break;case Lp:i!==sh&&(s.fragment+=dp(i,up))}l++}},parseHost:function(u){var e,t,n;if("["===Nh(u,0))return"]"===Nh(u,u.length-1)&&(e=function(e){var t,n,r,i,o,a,s,u=[0,0,0,0,0,0,0,0],l=0,c=null,d=0,f=function(){return Nh(e,d)};if(":"===f()){if(":"!==Nh(e,1))return;d+=2,c=++l}for(;f();){if(8===l)return;if(":"!==f()){for(t=n=0;n<4&&Lh($h,f());)t=16*t+Th(f(),16),d++,n++;if("."===f()){if(0===n)return;if(d-=n,6<l)return;for(r=0;f();){if(i=null,0<r){if(!("."===f()&&r<4))return;d++}if(!Lh(Jh,f()))return;for(;Lh(Jh,f());){if(o=Th(f(),10),null===i)i=o;else{if(0===i)return;i=10*i+o}if(255<i)return;d++}u[l]=256*u[l]+i,2!=++r&&4!==r||l++}if(4!==r)return;break}if(":"===f()){if(d++,!f())return}else if(f())return;u[l++]=t}else{if(null!==c)return;d++,c=++l}}if(null!==c)for(a=l-c,l=7;0!==l&&0<a;)s=u[l],u[l--]=u[c+a-1],u[c+--a]=s;else if(8!==l)return;return u}(Hh(u,1,-1)))?void(this.host=e):"Invalid host";if(this.isSpecial()){if(u=function(){for(var e,t=[],n=bh(wh(kh(u),ch,"."),"."),r=0;r<n.length;r++)e=n[r],yh(t,hh(lh,e)?"xn--"+_h(e):e);return vh(t,".")}(),Lh(Qh,u))return"Invalid host";if(function(){var e=Wh(u,".");if(""===e[e.length-1]){if(1===e.length)return;e.length--}return Lh(Xh,e=e[e.length-1])||Lh(Kh,e)&&(""===(e=Hh(e,2))||Lh($h,e))}()){if(null===(e=function(){var e,t,n,r,i,o,a,s=Wh(u,".");if(s.length&&""===s[s.length-1]&&s.length--,4<(e=s.length))return null;for(t=[],n=0;n<e;n++){if(""===(r=s[n]))return null;if(i=10,1<r.length&&"0"===Nh(r,0)&&(i=Lh(Kh,r)?16:8,r=Hh(r,8===i?1:2)),""===r)o=0;else{if(!Lh(10===i?Xh:8===i?qh:$h,r))return null;o=Th(r,i)}Bh(t,o)}for(n=0;n<e;n++)if(o=t[n],n===e-1){if(o>=Ph(256,5-e))return null}else if(255<o)return null;for(a=Uh(t),n=0;n<t.length;n++)a+=t[n]*Ph(256,3-n);return a}()))return"Invalid host";this.host=e}else this.host=u}else{if(Lh(ep,u))return"Invalid host";for(e="",t=ou(u),n=0;n<t.length;n++)e+=dp(t[n],op);this.host=e}},cannotHaveUsernamePasswordPort:function(){return null===this.host||""===this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return T(fp,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&hp(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,r=e.password,i=e.host,o=e.port,a=e.path,s=e.query,u=e.fragment,l=t+":";return null!==i?(l+="//",e.includesCredentials()&&(l+=n+(r?":"+r:"")+"@"),l+=ip(i),null!==o&&(l+=":"+o)):"file"===t&&(l+="//"),null===i&&!e.cannotBeABaseURL&&1<a.length&&""===a[0]&&(l+="/."),l+=e.cannotBeABaseURL?a[0]:a.length?"/"+Dh(a,"/"):"",null!==s&&(l+="?"+s),null!==u&&(l+="#"+u),l},setHref:function(e){e=this.parse(e);if(e)throw new Oh(e);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new Fp(this.path[0]).origin}catch($){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+ip(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(_(e)+":",gp)},getUsername:function(){return this.username},setUsername:function(e){var t=ou(_(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=dp(t[n],cp)}},getPassword:function(){return this.password},setPassword:function(e){var t=ou(_(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=dp(t[n],cp)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?ip(e):ip(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Ip)},getHostname:function(){var e=this.host;return null===e?"":ip(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Ep)},getPort:function(){var e=this.port;return null===e?"":_(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=_(e))?this.port=null:this.parse(e,Rp))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+Dh(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Tp))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=_(e))?this.query=null:("?"===Nh(e,0)&&(e=Hh(e,1)),this.query="",this.parse(e,Np)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=_(e))?("#"===Nh(e,0)&&(e=Hh(e,1)),this.fragment="",this.parse(e,Lp)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}},function(e){var t=Qn(this,Up),n=1<Gl(arguments.length,1)?arguments[1]:undefined,e=Ih(t,new Dp(e,!1,n));O||(t.href=e.serialize(),t.origin=e.getOrigin(),t.protocol=e.getProtocol(),t.username=e.getUsername(),t.password=e.getPassword(),t.host=e.getHost(),t.hostname=e.getHostname(),t.port=e.getPort(),t.pathname=e.getPathname(),t.search=e.getSearch(),t.searchParams=e.getSearchParams(),t.hash=e.getHash())}),Up=Fp.prototype,g=function(e,t){return{get:function(){return Eh(this)[e]()},set:t&&function(e){return Eh(this)[t](e)},configurable:!0,enumerable:!0}};O&&(_t(Up,"href",g("serialize","setHref")),_t(Up,"origin",g("getOrigin")),_t(Up,"protocol",g("getProtocol","setProtocol")),_t(Up,"username",g("getUsername","setUsername")),_t(Up,"password",g("getPassword","setPassword")),_t(Up,"host",g("getHost","setHost")),_t(Up,"hostname",g("getHostname","setHostname")),_t(Up,"port",g("getPort","setPort")),_t(Up,"pathname",g("getPathname","setPathname")),_t(Up,"search",g("getSearch","setSearch")),_t(Up,"searchParams",g("getSearchParams")),_t(Up,"hash",g("getHash","setHash"))),xt(Up,"toJSON",function(){return Eh(this).serialize()},{enumerable:!0}),xt(Up,"toString",function(){return Eh(this).serialize()},{enumerable:!0}),fd&&(w=fd.createObjectURL,Id=fd.revokeObjectURL,w&&xt(Fp,"createObjectURL",zr(w,fd)),Id)&&xt(Fp,"revokeObjectURL",zr(Id,fd)),fr(Fp,"URL"),E({global:!0,constructor:!0,forced:!0,sham:!O},{URL:Fp});var Bp,zp,jp,Wp,Hp,Vp,Zp,Gp=function(){return{host:new URL(location.href).host,pathname:location.pathname}},Yp=!1,Jp=[],Kp=/^\/[^/]/,qp=!1,Xp=[],$p=function(r,e,i){return null!=e&&e.length&&"object"===v(r)?e.reduce(function(e,t){var n=window.Headers&&r instanceof Headers?r.get(t):r[t];return n?e+(""===e?"":"\n\n")+i+" header "+t+": "+n:e},""):""},Qp={maxRetryCount:10,retryInterval:function(e){return 1e3*(2<<e)},whenRetryEndStillFail:"discard"},eg={API_RESPONSE:"api_response",AJAX_ERROR:"ajax_error",RET_ERROR:"ret_error",SLOW_NET_REQUEST:"slow_net_request"},tg=function(e,t){return e&&-1===["null","undefined"].indexOf(e)?t+": "+e:""},ng=function(e,t,n){void 0===t&&(t="");var r,i,e="function"==typeof(null==(i=e.api)?void 0:i.resourceTypeHandler)?null==(i=e.api)?void 0:i.resourceTypeHandler(n):"";return-1===Ku.indexOf(e)&&(r=void 0===t?"":t,i=(void 0===n?"":n).split("?")[0],e=Sl.test(i)||kl.some(function(e){return-1!==String(r).indexOf(e)})?"static":"fetch"),e},rg=function(e,t){return e?eg.AJAX_ERROR:t?eg.RET_ERROR:eg.API_RESPONSE},ig=function(e,t,n){if(!e)return!1;t=null==t?void 0:t.api;if(null!=t&&t.isSlowApi&&"function"==typeof(null==t?void 0:t.isSlowApi))try{return t.isSlowApi(n||{duration:e})}catch($){return console.warn("[TDEM] isSlowApi function happen error:",$,", this data will not be reported."),!1}n=null!=(n=null==t?void 0:t.slowThreshold)?n:null==t?void 0:t.apiSlowThreshold;return n&&"number"==typeof n?n<e:1e3<e},og=function(e,t){var e=e.api;if(null!=e&&e.usePerformanceTiming&&"string"==typeof t.url){e=null==(e=performance.getEntriesByName(t.url))?void 0:e.pop();if(e)return{url:t.url,isHttps:bl(t.url),method:t.method,type:t.type,status:t.status,duration:Number(e.duration.toFixed(2)),nextHopProtocol:e.nextHopProtocol||"",domainLookup:vl(e.domainLookupEnd-e.domainLookupStart),connectTime:vl(e.connectEnd-e.connectStart)}}return{url:t.url,isHttps:bl(t.url),method:t.method,type:t.type,status:t.status,duration:Number(t.duration.toFixed(2)),nextHopProtocol:"",domainLookup:ul.number,connectTime:ul.number}},gd=(new o({name:"api"}),new o({name:"api",override:!1,onNewTdem:function(e){var t,n;this.override||(this.override=!0,null!=(n=e.config.api)&&n.injectTraceHeader&&(this.traceRequestHeader=new xc(n.injectTraceHeader,null!=(t=null==n?void 0:n.injectTraceIgnoreUrls)?t:[],null==n?void 0:n.injectTraceUrls,null==n?void 0:n.traceFlag)),this.overrideFetch(e.config,e),this.overrideXhr(e.config,e))},getFromParam:function(e){var t;return(null==(t=e.getOriginFrom)?void 0:t.call(e))||window.location.href},overrideFetch:function(b,k){var S=this,e=b.api,e={name:this.name,traceRequestHeader:null!=e&&e.injectTraceHeader?this.traceRequestHeader:null,getCurrentFrom:function(){return S.getFromParam(k)},then:function(f,h,p,g,m,v,y){var e,w;Ll(p,b.hostUrl)||(e=f.headers?f.headers.get("content-type"):"","fetch"===(w=ng(b,e||"",p))?f.clone().text().then(function(r){var e,i=f.status<=0||400<=f.status,t=(null==(t=b.api)?void 0:t.reqHeaders)||[],o=$p(null==g?void 0:g.headers,t,"req"),t=(null==(t=b.api)?void 0:t.resHeaders)||[],a=$p(f.headers,t,"res"),s=Ac(null==g?void 0:g.headers),t=Cl(r,b.api,{url:p,ctx:f,payload:null==g?void 0:g.body}),u=t.code,l=t.isErr,t=null==(t=b.api)?void 0:t.apiDetail,c=t?Il(null==g?void 0:g.body,null==(e=b.api)?void 0:e.reqParamHandler,{url:p}):"",d=t?Il(r,null==(e=b.api)?void 0:e.resBodyHandler,{url:p,ctx:f}):"";setTimeout(function(){var e=og(b,{url:p,duration:h,type:w,status:f.status||0,method:(null==g?void 0:g.method)||"get"}),t=[i?"FETCH_ERROR: "+r:"","fetch req url: "+p,"res status: "+(e.status||0),"res duration: "+e.duration+"ms","res startTime: "+m,o,a,"req method: "+(e.method||"GET"),"res retcode: "+u,tg(c,"req param"),tg(d,"res data")].filter(function(e){return e}).join("\n\n"),t=(e.payload=null==g?void 0:g.body,e.ret=u,e.isErr=+l,e.from=v||S.getFromParam(k),{msg:t,code:u,trace:s,errorMsg:"",from:v||S.getFromParam(k),originFrom:y,level:eg.API_RESPONSE}),n=ig(null==e?void 0:e.duration,b,e);t.level=n?eg.SLOW_NET_REQUEST:rg(i,l),(n||t.level!==eg.API_RESPONSE||k.isWhiteList||null!=(n=null==(n=k.config)?void 0:n.api)&&n.reportRequest)&&S.publishNormalLog(t,k),S.publishSpeed(e,k)},0)})["catch"](function(e){console.info("ignore something error when process resp "+e)}):setTimeout(function(){var e=og(b,{url:p,duration:h,type:w,status:f.status||0,method:(null==g?void 0:g.method)||"get"});e.type="static",e.urlQuery=yl(p,!0),e.from=v||S.getFromParam(k),S.publishSpeed(e,k)},0))},"catch":function(t,n,r,i,o,a,s){var u,e,l,c,d;throw Ll(r,b.hostUrl)||(u=ng(b,"",r),e=(null==(e=b.api)?void 0:e.reqHeaders)||[],l=$p(null==i?void 0:i.headers,e,"req"),c=Ac(null==i?void 0:i.headers),d=null!=(e=b.api)&&e.apiDetail?Il(null==i?void 0:i.body,null==(e=b.api)?void 0:e.reqParamHandler,{url:r}):"",setTimeout(function(){var e=og(b,{url:r,duration:n,type:u,status:0,method:(null==i?void 0:i.method)||"get"}),e=(e.from=a||S.getFromParam(k),S.publishSpeed(e,k),"AJAX_ERROR: "+t+"\n \nreq url: "+r+"\n \nres status: 0\n \nres duration: "+e.duration+"ms\n \nreq method: "+((null==i?void 0:i.method)||"get")+"\n \nreq param: "+d+"\n \nres startTime: "+o+"\n \n"+l);S.publishNormalLog({msg:e,level:eg.AJAX_ERROR,code:-400,trace:c,errorMsg:"",from:a||S.getFromParam(k),originFrom:s},k)},0)),t}},f=(this.hackFetchOptions=e,this.hackFetchOptions),h=null==(e=b.api)?void 0:e.ignoreHackReg;if(void 0===h&&(h=/\.flv(\?|$)/i),Xp.find(function(e){return e.name===f.name}))throw new Error("name '"+f.name+"' is already in hackFetch option list");Xp.push(f),!qp&&window.fetch&&(qp=!0,Wp=window.fetch,window.fetch=function(e,i){void 0===i&&(i={});var o="string"==typeof e?e:null==e?void 0:e.url;if(null!=(a=null==h?void 0:h.test)&&a.call(h,o))return Wp(o,i);Kp.test(o)&&(o=""+location.origin+o);var t,n,r,a=(f||{}).traceRequestHeader;a&&(t=void 0===(t=(i||{}).headers)?{}:t,n=(r=Gp()).host,r=(n=a.generate(o,t,{host:n,pathname:r.pathname})||{}).name,a=n.value)&&r&&(i.headers=Object.assign(t,((n={})[r]=a,n)));for(var s=new Map,u=window.location.href,l=0;l<Xp.length;l++){var c=Xp[l];try{"function"==typeof c.beforeFetch&&c.beforeFetch(o,i),"function"==typeof c.getCurrentFrom&&s.set(c.name,c.getCurrentFrom())}catch(Ne){}}var d=Date.now();return Wp(e,i).then(function(e){for(var t=e.clone(),n=0;n<Xp.length;n++){var r=Xp[n];try{"function"==typeof r.then&&r.then(t,Date.now()-d,o,i,d,s.get(r.name),u)}catch(Ne){}}return e})["catch"](function(e){for(var t=0;t<Xp.length;t++){var n=Xp[t];try{"function"==typeof n["catch"]&&n["catch"](e,Date.now()-d,o,i,d,s.get(n.name),u)}catch(Ne){}}throw e})})},overrideXhr:function(b,k){var e,i,S=this,o={name:this.name,ignoreHackReg:null==(e=b.api)?void 0:e.ignoreHackReg,traceRequestHeader:null!=(e=b.api)&&e.injectTraceHeader?this.traceRequestHeader:null,getCurrentFrom:function(){return S.getFromParam(k)},send:function(f,h,p,g){var e,t,m=Date.now(),v=(((null==b?void 0:b.api)||{}).injectTraceHeader&&(t=(e=Gp()).host,e=(t=S.traceRequestHeader.generate(f.tdemUrl,{},{host:t,pathname:e.pathname})||{}).name,t=t.value,e)&&t&&f.setRequestHeader(e,t),f.addEventListener("loadend",function(){var l,n,e,c,d=f.tdemUrl||"";Ll(d,b.hostUrl)||"abort"===f.failType||(l="",(f.failType||!f.status||400<=f.status)&&(l=f.failType||"failed"),n=Date.now()-m,e=f.getResponseHeader("content-type")||"",c=ng(b,e,d),setTimeout(function(){var r=og(b,{url:d,duration:n,type:c,status:f.status,method:f.tdemMethod||"get"});if(r.from=p||S.getFromParam(k),"fetch"===c){var e=(null==(e=b.api)?void 0:e.reqHeaders)||[],i=$p(f.tdemXhrReqHeader,e,"req"),e=(null==(e=b.api)?void 0:e.resHeaders)||[],t=f.getAllResponseHeaders().split("\r\n").reduce(function(e,t){t=t.split(": ");return t[0]&&t[1]&&(e[t[0]]=t[1]),e},{}),o=$p(t,e,"res"),a=Ac(f.tdemXhrReqHeader),e=null==(t=b.api)?void 0:t.apiDetail,s=e?Il(h,null==(t=b.api)?void 0:t.reqParamHandler,{url:d}):"",u=e?Il(f.response,null==(t=b.api)?void 0:t.resBodyHandler,{url:d}):"";try{!function(e,t,n,r){var i,o,a;try{if("function"==typeof(null==t?void 0:t.retCodeHandlerAsync))return t.retCodeHandlerAsync(e,null==n?void 0:n.url,null==n?void 0:n.ctx,function(e){var t=e.code;null!=r&&r({code:void 0===t?qu:t,isErr:e.isErr})});if("function"==typeof(null==t?void 0:t.retCodeHandler))return a=(o=t.retCodeHandler(e,null==n?void 0:n.url,null==n?void 0:n.ctx,null==n?void 0:n.payload)||{}).code,null!=r&&r({code:void 0===a?qu:a,isErr:o.isErr});if(!(e="string"==typeof e?JSON.parse(e):e))return null!=r&&r({code:qu,isErr:!1});"function"==typeof(null==(i=null==t?void 0:t.ret)?void 0:i.join)&&(_l=[].concat(t.ret.map(function(e){return e.toLowerCase()})));var s=Object.getOwnPropertyNames(e).filter(function(e){return-1!==_l.indexOf(e.toLowerCase())});if(s.length)return"未知"!==(a=e[s[0]])&&""!==a||(a=qu),null!=r&&r({code:""+a,isErr:0!==a&&"0"!==a&&a!==qu});null!=r&&r({code:qu,isErr:!1})}catch(l){null!=r&&r({code:qu,isErr:!1})}}(f.response,b.api,{url:d,ctx:f,payload:h},function(e){var t=e.code,e=e.isErr,n=[l?"AJAX_ERROR: request "+l:"","fetch req url: "+d,"res status: "+(r.status||0),"res duration: "+r.duration+"ms","res startTime: "+m,i,o,"req method: "+(r.method||"GET"),"res retcode: "+t,tg(s,"req param"),tg(u,"res data")].filter(function(e){return e}).join("\n\n");r.ret=t,r.isErr=+e,r.payload=h,ig(null==r?void 0:r.duration,b,r)?S.publishNormalLog({msg:n,level:eg.SLOW_NET_REQUEST,code:t,trace:a,errorMsg:"",from:p||S.getFromParam(k),originFrom:g},k):S.publishNormalLog({msg:n,level:rg(!!l,e),code:t,trace:a,errorMsg:"",from:p||S.getFromParam(k),originFrom:g},k),S.publishSpeed(r,k)})}catch(E){r.ret=qu,S.publishSpeed(r,k)}}else r.type="static",r.urlQuery=yl(d,!0),S.publishSpeed(r,k);f.removeEventListener("abort",v),f.removeEventListener("error",y),f.removeEventListener("timeout",w)},0))}),function(){f.failType="abort"}),y=function(){f.failType="error"},w=function(){f.failType="timeout"};f.addEventListener("abort",v),f.addEventListener("error",y),f.addEventListener("timeout",w)}};this.hackXHROptions=o,i=this.hackXHROptions,Jp.find(function(e){return e.name===i.name})||(Jp.push(i),!Yp&&window.XMLHttpRequest&&(Bp=window.XMLHttpRequest.prototype.send,zp=window.XMLHttpRequest.prototype.open,jp=window.XMLHttpRequest.prototype.setRequestHeader,Yp=!0,window.XMLHttpRequest.prototype.open=function(){this.tdemMethod=arguments[0];var e,t=arguments[1];if(Kp.test(t)&&(t=""+location.origin+t),this.tdemUrl=t,null==(e=null==(t=i.ignoreHackReg)?void 0:t.test)||!e.call(t,this.tdemUrl))if(this.tdemXhrStartTime=Date.now(),this.sendByTdem)C.isIE()||(this.timeout=5e3);else for(var n=0;n<Jp.length;n++){var r=Jp[n];try{"function"==typeof r.open&&r.open(this)}catch(o){}}return zp.apply(this,arguments)},window.XMLHttpRequest.prototype.setRequestHeader=function(){var e,t,n;return null!=(n=null==(t=i.ignoreHackReg)?void 0:t.test)&&n.call(t,this.tdemUrl)?jp.apply(this,arguments):(t=arguments[0],n=arguments[1],this.tdemXhrReqHeader=null!=(e=this.tdemXhrReqHeader)?e:{},null!=i&&i.traceRequestHeader&&-1<["traceparent","b3","sw8","sentry-trace"].indexOf(t)&&(this.tdemXhrReqHeader[t]||(arguments[1]=n),this.tdemXhrReqHeader[t])?void 0:(this.tdemXhrReqHeader[t]=arguments[1],jp.apply(this,arguments)))},window.XMLHttpRequest.prototype.send=function(){var e,t;if(!(null!=(t=null==(e=i.ignoreHackReg)?void 0:e.test)&&t.call(e,this.tdemUrl)||this.sendByTdem))for(var n=0;n<Jp.length;n++){var r=Jp[n];try{"function"==typeof r.send&&r.send(this,arguments[0],"function"==typeof r.getCurrentFrom?r.getCurrentFrom():undefined,window.location.href)}catch(S){}}return Bp.apply(this,arguments)}))},publishSpeed:function(e){},publishNormalLog:function(e,t){var n,r,i,o,a,s,u;[eg.API_RESPONSE,eg.AJAX_ERROR,eg.RET_ERROR,eg.SLOW_NET_REQUEST].includes(e.level)&&(n=(n=null==(n=e.msg)?void 0:n.match(/(?:fetch req url|req url):\s*(.+?)(?:\n|$)/))?n[1].trim():"",r=(r=null==(r=e.msg)?void 0:r.match(/req method:\s*(.+?)(?:\n|$)/i))?r[1].trim().toUpperCase():"GET",i=(i=null==(i=e.msg)?void 0:i.match(/res status:\s*(\d+)/))?parseInt(i[1],10):0,o=(o=null==(o=e.msg)?void 0:o.match(/res duration:\s*([\d.]+)ms/))?parseFloat(o[1]):0,u=(u=null==(u=e.msg)?void 0:u.match(/=+\s*res data\s*=+\s*\n([\s\S]*?)(?:\n=+|$)/))?u[1].trim().slice(0,1e3):undefined,a={},e.trace&&(a.trace_id=e.trace),[eg.AJAX_ERROR,eg.RET_ERROR].includes(e.level)||400<=i||0===i?(s={event_id:Dl(),event_type:p.API_ERROR,event_category:ml.ERROR,timestamp:Date.now(),page_url:e.from||(null==(s=t.getOriginFrom)?void 0:s.call(t))||window.location.href,data:{url:n,measurements:{duration:o},response_body:u,replay_id:$c(t),tags:0<Object.keys(a).length?a:undefined,event_properties:{http_method:r,http_status:String(i)}}},null!=(u=t.reportTDEMEvent)&&u.call(t,s)):(u={event_id:Dl(),event_type:p.API_CALL,event_category:ml.NETWORK,timestamp:Date.now(),page_url:e.from||(null==(s=t.getOriginFrom)?void 0:s.call(t))||window.location.href,data:{url:n,measurements:{duration:o},business_code:String(e.code||""),replay_id:$c(t),tags:0<Object.keys(a).length?a:undefined,event_properties:{http_method:r,http_status:String(i)}}},null!=(s=t.reportTDEMEvent)&&s.call(t,u)))},destroy:function(){var t,n,e;this.option.publishSpeed=function(){},this.option.publishNormalLog=function(){},this.option.hackXHROptions&&(n=this.option.hackXHROptions,-1!==(e=Jp.findIndex(function(e){return e.name===n.name})))&&Jp.splice(e,1),this.option.hackFetchOptions&&(t=this.option.hackFetchOptions,-1!==(e=Xp.findIndex(function(e){return e.name===t.name})))&&Xp.splice(e,1),this.option.override=!1}})),ag={},hd=new o({name:"bridge",override:!1,onNewTdem:function(e){this.override||(this.override=!0,this.overrideBridge(e))},getFromParam:function(e){var t;return(null==(t=e.getOriginFrom)?void 0:t.call(e))||window.location.href},publishSpeed:function(t,n){this.$walk(function(e){e===n&&e.speedLogPipeline(t)})},overrideBridge:function(l){var c=this,d=l.config,e="object"===v(d.bridge)?d.bridge:undefined,t=null==e?void 0:e.target,e=null==e?void 0:e.methods;t&&null!=e&&e.length&&e.forEach(function(e){var u=t[e];ag[e]=u,t[e]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e[0],i=e[1],n=e[2],o=e[3],a=Date.now(),s=c.getFromParam(l);u(r,i,n,function(e){var t=Cl(e,d.api),n=t.code,t=t.isErr,n={url:r+"-"+i,name:r+"-"+i,duration:Date.now()-a,type:"bridge",ret:n,isErr:+t,from:s};c.publishSpeed(n,l),o(e)})}})},unHackBridge:function(e){var e="object"===v(e.config.bridge)?e.config.bridge:undefined,t=null==e?void 0:e.target;ag=(t&&Object.keys(ag).forEach(function(e){ag[e]&&(t[e]=ag[e])}),{})},destroy:function(e){this.option.publishSpeed=function(){},this.option.unHackBridge(e),this.option.override=!1}}),Ct=((wt=Hp=Hp||{})[wt.unknown=100]="unknown",wt[wt.wifi=1]="wifi",wt[wt.net2g=2]="net2g",wt[wt.net3g=3]="net3g",wt[wt.net4g=4]="net4g",wt[wt.net5g=5]="net5g",wt[wt.net6g=6]="net6g",(i=Vp=Vp||{})[i.android=1]="android",i[i.ios=2]="ios",i[i.windows=3]="windows",i[i.macos=4]="macos",i[i.linux=5]="linux",i[i.other=100]="other",(rd=Zp=Zp||{})[rd.unknown=100]="unknown",rd[rd.normal=0]="normal",rd[rd.weak=1]="weak",rd[rd.disconnected=2]="disconnected",new o({name:"device",onNewTdem:function(e){e.extendBean("platform",this.getPlatform()),e.extendBean("netType",Hp.unknown),this.getDpi(e),this.refreshNetworkTypeToBean(e),this.refreshNetworkStatusToBean(e)},getDpi:function(e){e.extendBean("vp",Math.round(window.innerWidth)+" * "+Math.round(window.innerHeight)),window.screen&&e.extendBean("sr",Math.round(window.screen.width)+" * "+Math.round(window.screen.height))},getPlatform:function(){var t={android:/\bAndroid\s*([^;]+)/,ios:/\b(iPad|iPhone|iPod)\b.*? OS ([\d_]+)/,windows:/\b(Windows NT)/,macos:/\b(Mac OS)/,linux:/\b(Linux)/i},e=Object.keys(t).find(function(e){return t[e].test(navigator.userAgent)});return e?Vp[e]:Vp.other},refreshNetworkTypeToBean:function(t){var n=this,e=t.config;e&&("function"==typeof e.getNetworkType?e.getNetworkType:sg)(function(e){Hp[e]||(e=Hp.unknown),t.extendBean("netType",e),n.NetworkRefreshTimer=setTimeout(function(){n.refreshNetworkTypeToBean(t),clearTimeout(n.NetworkRefreshTimer)},1e4)})},refreshNetworkStatusToBean:function(t){var e,n=this,r=t.config;r&&null!=(e="function"==typeof r.getNetworkStatus?r.getNetworkStatus:e)&&e(function(e){Zp[e]===undefined&&(e=Zp.unknown),t.extendBean("netStatus",e),n.NetworkStatusRefreshTimer=setTimeout(function(){n.refreshNetworkStatusToBean(t),clearTimeout(n.NetworkStatusRefreshTimer)},1e4)})}})),sg=function(e){var t="",n=navigator.userAgent.match(/NetType\/(\w+)/);n?t=n[1]:navigator.connection&&(t=navigator.connection.effectiveType||navigator.connection.type),e((n=t=t||qu,0<=(n=String(n).toLowerCase()).indexOf("4g")?Hp.net4g:0<=n.indexOf("wifi")?Hp.wifi:0<=n.indexOf("5g")?Hp.net5g:0<=n.indexOf("6g")?Hp.net6g:0<=n.indexOf("3g")?Hp.net3g:0<=n.indexOf("2g")?Hp.net2g:Hp.unknown))},ug=window.WebSocket,lg=[],cg={construct:function(e,t){var r=new e(t[0],t[1]);return r.originSend=r.send,r.addEventListener("error",function(e){var e=(null==e?void 0:e.currentTarget)||{},t=e.url,n=e.readyState;null!=lg&&lg.forEach(function(e){e=e.onErr;null!=e&&e({msg:"无法获知具体错误信息,需在浏览器控制台查看!",readyState:n,connectUrl:t})})}),Object.defineProperty(r,"send",{get:function(){return function(e){null!=(t=r.originSend)&&t.call(r,e);var t,e=r.readyState;if(e!==WebSocket.OPEN){var n={readyState:e,connectUrl:r.url};switch(e){case WebSocket.CLOSED:lg.forEach(function(e){e=e.sendErr;null!=e&&e(h({msg:"消息发送失败,连接已关闭!"},n))});break;case WebSocket.CONNECTING:lg.forEach(function(e){(0,e.sendErr)(h({msg:"消息发送失败,正在连接中!"},n))});break;case WebSocket.CLOSING:lg.forEach(function(e){(0,e.sendErr)(h({msg:"消息发送失败,连接正在关闭!"},n))})}}}}}),r}},dg=new o({name:"onError"}),nd=dg=new o({name:"onError",onNewTdem:function(e){this.startListen(e)},getFromParam:function(e){var t;return(null==(t=e.getOriginFrom)?void 0:t.call(e))||window.location.href},startListen:function(s){var e,t,n,r,u=this,l=window.onerror,i=(window.onerror=function(e,t,n,r,i){var o,a=Rl(e);qc(a)||(a=[{type:(null==i?void 0:i.name)||"Error",value:String(e),mechanism_type:"onerror",mechanism_handled:0}],o=i?Fl(i):[{abs_path:t||"",colno:r||0,filename:(null==t?void 0:t.split("/").pop())||"","function":"(anonymous)",lineno:n||0,in_app:1,stack_level:0}],a={event_id:Dl(),event_type:p.JS_ERROR,event_category:ml.ERROR,timestamp:Date.now(),page_url:u.getFromParam(s),data:{exception_stacks:a,exception_frames:o,replay_id:$c(s),tags:{environment:s.config.env||"production",version:String(s.config.version||"")}}},null!=(o=s.reportTDEMEvent)&&o.call(s,a)),null!=l&&l.call(window,e,t,n,r,i)},function(e){var t,n=e&&Rl(e.reason);n&&(t=[{type:(null==(t=e.reason)?void 0:t.name)||"PromiseRejection",value:(null==(t=e.reason)?void 0:t.message)||String(n),mechanism_type:"unhandledrejection",mechanism_handled:0}],n=e.reason instanceof Error?Fl(e.reason):[],e={event_id:Dl(),event_type:p.PROMISE_ERROR,event_category:ml.ERROR,timestamp:Date.now(),page_url:u.getFromParam(s),data:{exception_stacks:t,exception_frames:n,replay_id:$c(s),tags:{environment:s.config.env||"production"}}},null!=(t=s.reportTDEMEvent))&&t.call(s,e)}),o=(window.addEventListener("unhandledrejection",i),function(e){e=(null==e?void 0:e.target)||(null==e?void 0:e.srcElement);if(e){var t=e.src||e.href||"",n=e.tagName,n=(void 0===n?"script":n).toLowerCase(),r=["audio","video"].includes(n);if(!r||null!=e&&e.error){if(!(Ll(i=t,s.config.hostUrl)||-1<window.location.href.indexOf(i))){var i="other";if(/\.js$/.test(t)||"script"===n)i="script";else if(/\.css$/.test(t)||"link"===n)i="stylesheet";else if("img"===n)i="image";else{if(!r)return;i="media"}t={event_id:Dl(),event_type:p.RESOURCE_ERROR,event_category:ml.ERROR,timestamp:Date.now(),page_url:u.getFromParam(s),data:{url:t,resource_type:i,replay_id:$c(s),tags:h({environment:s.config.env||"production"},r&&null!=e&&e.error?{error_code:String(e.error.code),error_message:e.error.message||""}:{}),event_properties:{element_tag:n}}};null!=(i=s.reportTDEMEvent)&&i.call(s,t)}}else console.log("may be media load success because error is undefine")}});window.document.addEventListener("error",o,!0),s.lifeCycle.on("destroy",function(){0===dg.countInstance()&&(window.removeEventListener("unhandledrejection",i),window.document.removeEventListener("error",o,!0))}),s.config.websocketHack&&(e={key:s.config.id+"-"+this.name,onErr:function(e){var t;null!=(t=u.publishWsErrorLog)&&t.call(u,e,s)},sendErr:function(e){var t;null!=(t=u.publishWsErrorLog)&&t.call(u,e,s)}},this.hackWebsocketConfig=e,e=this.hackWebsocketConfig,window.Proxy)&&window.WebSocket&&(t=window.WebSocket,window&&!t.isHack&&(n=new Proxy(WebSocket,cg),t.isHack=!0,window.WebSocket=n),r=e,lg.find(function(e){return e.key===r.key})||r&&lg.push(r))},publishWsErrorLog:function(e,n){var t=e.connectUrl,r=e.msg,e=e.readyState,i={event_id:Dl(),event_type:p.JS_ERROR,event_category:ml.ERROR,timestamp:Date.now(),page_url:this.getFromParam(n),data:{exception_stacks:[{type:"WebSocketError",value:"WEBSOCKET_ERROR: connect: "+t+" readyState: "+e+" msg: "+r,mechanism_type:"websocket",mechanism_handled:0}],exception_frames:[],replay_id:$c(n),tags:{environment:n.config.env||"production",websocket_url:t||"",websocket_ready_state:String(null!=e?e:"")}}};this.$walk(function(e){var t;e===n&&null!=(t=e.reportTDEMEvent)&&t.call(e,i)})},destroy:function(){var t,e;this.option.hackWebsocketConfig&&(t=this.option.hackWebsocketConfig,window.WebSocket=ug,-1!==(e=lg.findIndex(function(e){return e.key===t.key})))&&lg.splice(e,1)}}),Or=ci.f,fg=y(Or),hg=y([].push),pg=O&&m(function(){var e=Object.create(null);return e[2]=2,!fg(e,2)}),g=function(u){return function(e){for(var t,n=je(e),r=rr(n),i=pg&&null===er(n),o=r.length,a=0,s=[];a<o;)t=r[a++],O&&!(i?t in n:fg(n,t))||hg(s,u?[t,n[t]]:n[t]);return s}},w={entries:g(!0),values:g(!1)},gg=w.entries,mg=(E({target:"Object",stat:!0},{entries:function(e){return gg(e)}}),new o({name:"click"}),function(e){if(""!==e.id&&e.id)return'id("'+e.id+'")';if(e===document.body)return e.tagName;if(e instanceof Document)return"document";var t=0;if(e.parentNode)for(var n=e.parentNode.childNodes,r=0;r<n.length;r+=1){var i=n[r];if(i===e)return mg(e.parentNode)+"/"+e.tagName+"["+(t+1)+"]";1===i.nodeType&&i.tagName===e.tagName&&(t+=1)}return 0}),vg=function(e){return e instanceof Array?new Map(e.map(function(e){return[e,!0]})):new Map},yg=function(e,t){return"string"==typeof e?e.split(t):[]},wg=function(e){if(3===e.nodeType||4===e.nodeType)return e.nodeValue||"";if(1!==e.nodeType)return"";if("string"==typeof e.textContent)return e.textContent;for(var t="",n=e.firstChild;n;n=n.nextSibling)t+=wg(n);return t},Id=new o({name:"click",listeners:[],onNewTdem:function(e){this.startListen(e)},startListen:function(a){for(var e=function(o){var e,t,n,r,i;s.listeners.push((e=document,t=o,n=function(e,t){var n,r,i;t&&!function(e,t){e="object"===v((e=e).click)?e.click:undefined,n=vg((null==e?void 0:e.ignoreClasses)||[])||new Map;for(var n,e={ignoreIds:vg((null==e?void 0:e.ignoreIds)||[])||new Map,ignoreClasses:n},r=e.ignoreClasses,i=e.ignoreIds,o=!(0===i.size&&0===r.size),a=t,s=(yg(t.getAttribute("id")||""," "),yg(t.getAttribute("class")||"",""),0),u=!1;a&&o&&a.getAttribute;){if(u)return!0;if(10<=s)break;for(var l=yg(a.getAttribute("id")||""," "),c=yg(a.getAttribute("class")||"",""),d=0,f=l;d<f.length;d++){var h=f[d];if(i.has(h)){u=!0;break}}for(var p=0,g=c;p<g.length;p++){var m=g[p];if(r.has(m)){u=!0;break}}s+=1,a=a.parentNode||a.parentElement}return!1}(a.config,t)&&(i=mg(t),n=function(e){e=function(e){var t="",n=e.nodeType;if(1===n||9===n||11===n){if("string"==typeof e.textContent)return e.textContent;for(var r=e.firstChild;r;r=r.nextSibling)t+=wg(e)}else if(3===n||4===n)return e.nodeValue;return t}(e);return e?e.replace(/^\s+|\s+$/g,""):""}(t),r=t.getBoundingClientRect&&t.getBoundingClientRect(),i={event_id:Dl(),event_type:p.CLICK,event_category:ml.BEHAVIOR,timestamp:Date.now(),page_url:window.location.href,data:{target_element:String(i),target_text:n.slice(0,127),click_position:r?{x:parseInt(String(r.left+window.scrollX),10)||0,y:parseInt(String(r.top+window.scrollY),10)||0}:undefined,replay_id:$c(a),tags:{environment:a.config.env||"production",event_op:o,node_name:(null==t?void 0:t.nodeName)||""},event_properties:{target_id:t.id||"",target_class:"string"==typeof t.className?t.className.slice(0,128):""}}},null!=(n=a.reportTDEMEvent))&&n.call(a,i)},void 0===(r=!0)&&(r=!0),i=function(e){var t=document.documentElement;t&&n.call(t,e,e.target)},e.addEventListener(t,i,r),{destroy:function(){e.removeEventListener(t,i,r)}}))},s=this,t=0,n=Object.entries({click:1,longpress:2});t<n.length;t++)e(n[t][0])},destroy:function(){this.listeners.forEach(function(e){return e.destroy()}),this.listeners=[]}}),bg=(new o({name:"console"}),["log","error","warn","info","debug","trace"]),kg={log:console.log,error:console.error,warn:console.warn,info:console.info,debug:console.debug,trace:console.trace};var Sg,_g,Cg,Ig,Eg,Rg,xg,Og,Ag,Tg,Mg,fd=new o({name:"console",onNewTdem:function(e){this.startListen(e)},startListen:function(e){var f,h;h="object"===v((f=e).config.console)?f.config.console:undefined,bg.forEach(function(c){var d=kg[c];console[c]=function(){for(var e,t,n,r,i,o,a,s,u=[],l=0;l<arguments.length;l++)u[l]=arguments[l];try{d.apply(console,u),o=c,a=f.isWhiteList,("all"===(s=(null==(s=h)?void 0:s.level)||"error")||a||("error"===s?"error"===o:"warn"===s?"error"===o||"warn"===o:"info"===s?["error","warn","info"].includes(o):"log"===s?["error","warn","info","log"].includes(o):"error"===o))&&(r=u.map(function(e){if("object"===v(e)&&null!==e)try{return JSON.stringify(e)}catch(h){}return String(e)}).join(" "),i={event_id:Dl(),event_type:p.LOG,event_category:ml.LOG,timestamp:Date.now(),page_url:(null==(e=f.getOriginFrom)?void 0:e.call(f))||("undefined"!=typeof window?null==(t=window.location)?void 0:t.href:""),data:{log_level:"error"===c?"error":"warn"===c?"warn":"info",replay_id:$c(f),tags:{console_method:c},event_properties:{message:("console."+c+": "+r).slice(0,2048)}}},null!=(n=f.reportTDEMEvent)&&n.call(f,i))}catch(F){kg.error("Console hook error:",F)}}})},destroy:function(){Object.keys(kg).forEach(function(e){console[e]=kg[e]})}}),Pg=(Eg={passive:!0,capture:!0},Rg=new Date,wt=function(){Ig=[],_g=-1,Sg=null,Tg(addEventListener)},xg=function(e,t){Sg||(Sg=t,_g=e,Cg=new Date,Tg(removeEventListener),Og())},Og=function(){var t;0<=_g&&_g<Cg-Rg&&(t={entryType:"first-input",name:Sg.type,target:Sg.target,cancelable:Sg.cancelable,startTime:Sg.timeStamp,processingStart:Sg.timeStamp+_g},Ig.forEach(function(e){e(t)}),Ig=[])},Ag=function(e){var t,n,r,i,o,a;e.cancelable&&(t=(1e12<e.timeStamp?new Date:performance.now())-e.timeStamp,"pointerdown"==e.type?(n=t,r=e,i=function(){xg(n,r),a()},o=function(){a()},a=function(){removeEventListener("pointerup",i,Eg),removeEventListener("pointercancel",o,Eg)},addEventListener("pointerup",i,Eg),addEventListener("pointercancel",o,Eg)):xg(t,e))},Tg=function(t){["mousedown","keydown","touchstart","pointerdown"].forEach(function(e){return t(e,Ag,Eg)})},Mg="hidden"===document.visibilityState?0:1/0,addEventListener("visibilitychange",function U(e){"hidden"===document.visibilityState&&(Mg=e.timeStamp,removeEventListener("visibilitychange",U,!0))},!0),wt(),self.webVitals={firstInputPolyfill:function(e){Ig.push(e),Og()},resetFirstInputPolyfill:wt,get firstHiddenTime(){return Mg}},function(e,t){var n,r=function(t,n,r,i){var o=function(e){"visibilitychange"===t&&"hidden"!==document.visibilityState||(i?setTimeout(function(){return n(e)},i):n(e),r&&removeEventListener(t,o,!0))};addEventListener(t,o,!0)};r("visibilitychange",e,null==t?void 0:t.once,null==(n=null==t?void 0:t.delay)?void 0:n.visibilitychange),r("pagehide",e,null==t?void 0:t.once,null==(n=null==t?void 0:t.delay)?void 0:n.pagehide),r("beforeunload",e,null==t?void 0:t.once,null==(n=null==t?void 0:t.delay)?void 0:n.beforeunload)});new o({name:"webVitals"});var Ng,Lg={FCP:-1,LCP:-1,FID:-1,CLS:-1,INP:-1,TTI:-1,from:undefined},Dg=(new o({name:"pagePerformance"}),function(e,t,n,r){return void 0===n&&(n=15e3),void 0===r&&(r=0),(t=void 0===t?0:t)<=e&&e<=n?e:r}),Fg=new Map,i=new o({name:"pagePerformance",performanceMap:{},onNewTdem:function(t){var e;Xc()&&(Fg.set(t,{isPagePerformanceReported:!1}),Ng?this.publish(Ng,t):this.startCalcPerformance(t),e=this.publishWhenObHidden.bind(this,t),Pg(e,{once:!0}),t.lifeCycle.on("destroy",function(){var e=Fg.get(t);e&&(e.isPagePerformanceReported=!1)}))},publishWhenObHidden:function(e){var t,n=Fg.get(e);if(null==n||!n.isPagePerformanceReported){n=0;if(null!=(t=e.firstScreenInfo)&&t.timing)n=e.firstScreenInfo.timing;else if(-1<(null==(t=null==(t=window.PerformanceObserver)?void 0:t.supportedEntryTypes)?void 0:t.indexOf("paint")))try{var r,i=performance.getEntriesByName("first-contentful-paint");i&&0<i.length&&(r=i[0])&&0<r.startTime&&(n=r.startTime)}catch(N){}(Ng=this.buildPerformanceLog(e,n,this.getPageUrl(e),window.location.href))&&this.publish(Ng,e,!0)}},buildPerformanceLog:function(e,t,n,r){var i=performance.timing;return i?(n={from:n,originFrom:r,dnsLookup:Dg(i.domainLookupEnd-i.domainLookupStart),tcp:Dg(i.connectEnd-i.connectStart),ssl:Dg(0===i.secureConnectionStart?0:i.requestStart-i.secureConnectionStart),ttfb:Dg(i.responseStart-i.requestStart),contentDownload:Dg(i.responseEnd-i.responseStart),domParse:Dg(i.domInteractive-i.domLoading,0,15e3,1070),resourceDownload:Dg(i.loadEventStart-i.domInteractive,0,15e3,1070),firstScreenTiming:Dg(Math.floor(t),0,15e3,15e3)},(r=e.config).extraPerformanceData&&"{}"!==JSON.stringify(r.extraPerformanceData)&&(t=(i=r.extraPerformanceData).engineInit,e=i.bundleLoad,n=h(h({},n),{engineInit:Dg(t,0,1e4),bundleLoad:Dg(e,0,1e4)})),n):undefined},publish:function(r,i){var o=this;this.$walk(function(e){var t,n;e===i&&(t=(n=performance.timing).navigationStart,n={event_id:Dl(),event_type:p.PAGE_LOAD,event_category:ml.PERFORMANCE,timestamp:Date.now(),page_url:r.originFrom||window.location.href,data:{measurements:{lcp:Lg.lcp,fcp:Lg.fcp,fid:Lg.fid,cls:Lg.cls,ttfb:Lg.ttfb||r.ttfb,dns_time:r.dnsLookup,tcp_time:r.tcp,ssl_time:r.ssl,request_time:r.ttfb,response_time:r.contentDownload,dom_parse_time:r.domParse,dom_ready:n.domContentLoadedEventEnd-t,load_complete:n.loadEventEnd-t,first_screen_time:r.firstScreenTiming},replay_id:$c(e),device_type:o.getDeviceType(),tags:{environment:e.config.env||"production",version:String(e.config.version||"")}}},null!=(t=e.reportTDEMEvent)&&t.call(e,n),n=Fg.get(e))&&(n.isPagePerformanceReported=!0)})},getPageUrl:function(e){var t=this.$getConfig(e);if(null!=t&&t.urlHandler&&"function"==typeof(null==t?void 0:t.urlHandler)){t=null==t?void 0:t.urlHandler();if(t)return encodeURIComponent(t)}return e.getCurrentPageUrl()},getDeviceType:function(){var e=navigator.userAgent;return/mobile/i.test(e)?"Mobile":/tablet|ipad/i.test(e)?"Tablet":"Desktop"},startCalcPerformance:function(t){var n=this;try{var r=this.getPageUrl(t),i=t.getOriginFrom();this.getFirstScreenTiming(t,function(e){Ng=n.buildPerformanceLog(t,e,r,i);e=Fg.get(t);!Ng||null!=e&&e.isPagePerformanceReported||n.publish(Ng,t)})}catch(l){}},getFirstScreenTiming:function(e,t){null!=t&&t(0)},setFirstScreenInfo:function(e,t,n,r){var i;e.config.id&&this.performanceMap[e.config.id]||(e.config.id&&(this.performanceMap[e.config.id]=!0),("object"!==v(null==(i=e.config)?void 0:i.pagePerformance)||null!=(i=e.config.pagePerformance)&&i.firstScreenInfo)&&(e.firstScreenInfo={element:n,timing:t,markDoms:r}))},isEleInArray:function(e,t){return!(!e||e===document.documentElement)&&(-1!==t.indexOf(e)||this.isEleInArray(e.parentElement,t))},isInFirstScreen:function(e){var t;return!(!e||"function"!=typeof e.getBoundingClientRect)&&(e=e.getBoundingClientRect(),t=window.innerHeight,0<=e.left)&&e.left<window.innerWidth&&0<=e.top&&e.top<t&&0<e.width&&0<e.height},walkAndCount:function(e){var t=0;if(e&&1===e.nodeType){t+=1;var n=e.children;if(null!=n&&n.length)for(var r=0;r<n.length;r++)1===n[r].nodeType&&(n[r].hasAttribute("TDEM-IGNORE-FIRST-SCREEN-TIMING")||n[r].hasAttribute("AEGIS-IGNORE-FIRST-SCREEN-TIMING"))||(t+=this.walkAndCount(n[r]))}return t},hasAncestorOrSelfWithAttribute:function(e,t){for(var n=t.replace(/^TDEM-/,"AEGIS-"),r=e;r&&r!==document.body;){if(r.hasAttribute(t)||n!==t&&r.hasAttribute(n))return!0;r=r.parentElement}return!1}}),Ug=Math.min,Bg=[].lastIndexOf,zg=!!Bg&&1/[1].lastIndexOf(1,-0)<0,rd=Ue("lastIndexOf"),jg=zg||!rd?function(e){if(zg)return Oe(Bg,this,arguments)||0;var t=je(this),n=fe(t);if(0!==n){var r=n-1;for((r=1<arguments.length?Ug(r,le(arguments[1])):r)<0&&(r=n+r);0<=r;r--)if(r in t&&t[r]===e)return r||0}return-1}:Bg,Wg=(E({target:"Array",proto:!0,forced:jg!==[].lastIndexOf},{lastIndexOf:jg}),new o({name:"spa"}),["replaceState","pushState","popstate","hashchange"]),Or=new o({name:"spa",originFireUrl:"",lastPageUrl:"",navigationStack:[],navigationIndex:-1,onNewTdem:function(n){var r=this,e=(history.pushState=this.wr("pushState")||history.pushState,history.replaceState=this.wr("replaceState")||history.replaceState,this.sendPv=this.sendPv.bind(this),location.href);this.navigationStack.length||(this.navigationStack=[e],this.navigationIndex=0),n.config.spa&&this.sendPv(n,"reload"),Wg.forEach(function(e){var t=e;window.addEventListener(e,function(){return r.sendPv.call(r,n,t)})})},wr:function(n){var r=history[n],e="__"+n+"__hasWrittenByTamSpa";return"function"==typeof r&&!history[e]&&(Object.defineProperty(history,e,{value:!0,enumerable:!1}),function(){var e=r.apply(this,arguments),t=null;return"function"==typeof Event?t=new Event(n):(t=document.createEvent("HTMLEvents")).initEvent(n,!1,!0),window.dispatchEvent(t),e})},resolveNavigationType:function(e,t){var n;return"pushState"===e?(this.navigationIndex<this.navigationStack.length-1&&(this.navigationStack=this.navigationStack.slice(0,this.navigationIndex+1)),this.navigationStack.push(t),this.navigationIndex=this.navigationStack.length-1,"push"):"replaceState"===e?(this.navigationIndex<0?(this.navigationStack=[t],this.navigationIndex=0):this.navigationStack[this.navigationIndex]=t,"replace"):"hashchange"===e?"hashchange":"popstate"===e?0<=(e=this.navigationStack.lastIndexOf(t))?(n=e<this.navigationIndex?"back":"forward",this.navigationIndex=e,n):(this.navigationStack.push(t),this.navigationIndex=this.navigationStack.length-1,"forward"):"reload"},sendPv:function(s,e){var u=this;void 0===e&&(e="reload"),setTimeout(function(){s._customPageUrl=null;var r=location.pathname+location.hash+s.config.id,i=s.getOriginFrom(),o=u.lastPageUrl||undefined,a=u.resolveNavigationType(e,location.href);u.$walk(function(e){var t,n;e===s&&r&&r!==u.originFireUrl&&(n={event_id:Dl(),event_type:p.PAGE_VIEW,event_category:ml.BEHAVIOR,timestamp:Date.now(),page_url:i,data:{page_title:document.title||"",referrer:document.referrer||undefined,is_effective_action:!0,replay_id:$c(e),tags:{environment:e.config.env||"production",version:String(e.config.version||""),is_spa:"true"},event_properties:{navigation_type:a,from_page:(o||"").slice(0,512),to_page:(i||"").slice(0,512)}}},null!=(t=e.reportTDEMEvent)&&t.call(e,n),u.originFireUrl=r,u.lastPageUrl=i)})},0)},destroy:function(){this.option.sendPv=function(){}}}),Hg="__MONITOR_SESSION_V1__";function Vg(e,t){"undefined"!=typeof document&&(e=[e+"="+encodeURIComponent(t),"path=/","SameSite=Lax"],"undefined"!=typeof location&&"https:"===location.protocol&&e.push("Secure"),document.cookie=e.join("; "))}function Zg(e,t,n){void 0===n&&(n=1);var r=Date.now();return{sessionId:e,createdAt:r,lastActivity:r,source:t,version:n}}function Gg(e){try{sessionStorage.setItem("__MONITOR_SESSION_V1__",JSON.stringify(e))}catch(Ly){}}function Yg(e,t){var n,r,i;return"undefined"==typeof window?Zg(t(),e):(r="undefined"!=typeof document&&(r="_tdem_s".replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),r=document.cookie.match(new RegExp("(?:^|; )"+r+"=([^;]*)")))?decodeURIComponent(r[1]):null,n=window[Hg],r?(null==n?void 0:n.sessionId)===r?(n.lastActivity=Date.now(),Gg(n),n):(i=Zg(r,(null==n?void 0:n.source)||e,(null==n?void 0:n.version)||1),Gg(window[Hg]=i),i):null!=n&&n.sessionId?(n.lastActivity=Date.now(),Vg("_tdem_s",n.sessionId),Gg(n),n):(i=Zg(t(),e),Vg("_tdem_s",(window[Hg]=i).sessionId),Gg(i),i))}var Jg,Kg,qg=new Map,Xg=(zu(Kg=Qg,g=Jg=Uc),Kg.prototype=null===g?Object.create(g):(em.prototype=g.prototype,new em),Qg.prototype._bootstrapInit=function(e){this.setConfig(e),this.config=Zu(this.config,e.hostUrl),this._prefetchConfigAndInit(e)},Qg.prototype._initImmediately=function(e){this.init(e),this._afterInit(e)},Qg.prototype._prefetchConfigAndInit=function(a){return ju(this,void 0,void 0,function(){var t,n,r,i,o;return Wu(this,function(e){switch(e.label){case 0:if(t=this.config.id,n=this._buildPrefetchConfigUrl(),r=!1,i=null,!t||!n)return[3,6];e.label=1;case 1:return e.trys.push([1,5,,6]),[4,fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({project_key:t})})];case 2:return(o=e.sent()).ok?[4,o.json()]:[3,4];case 3:0===(o=e.sent()).code&&o.data&&(r=!!o.data.enabled,i=o.data),e.label=4;case 4:return[3,6];case 5:return e.sent(),r=this._loadEnabledFromCache(t),[3,6];case 6:if(r){i&&(this._prefetchedConfigData=i);try{this._initAfterPreparedConfig(a)}catch(Ae){console.warn(Ae),console.log("%cThe above error occurred in the process of initializing TDEM, which will affect your normal use of TDEM.\nIt is recommended that you contact us for feedback and thank you for your support.","color: red"),this.sendSDKError(Ae)}}else console.info("[TDEM] SDK disabled by remote config, skip initialization");return[2]}})})},Qg.prototype._buildPrefetchConfigUrl=function(){var e=(this.config.url||"").replace(/\/+$/,"");return e?e+"/api/v1/config":""},Qg.prototype._loadEnabledFromCache=function(e){try{var t,n=localStorage.getItem("TDEM_SAMPLE_CONFIG");return n?(t=JSON.parse(n)).projectKey===e&&Date.now()-t.timestamp<6048e5&&0<t.sampleRate:!1}catch(Ly){return!1}},Qg.prototype._initAfterPreparedConfig=function(e){for(var t=0;t<Uc.installedPlugins.length;t++)try{Uc.installedPlugins[t].patch(this)}catch(P){this.sendSDKError(P)}this.lifeCycle.emit("onInited"),this._afterInit(e)},Qg.prototype._afterInit=function(e){var t,o,n=this;this._sdkInitialized=!0,this.extendBean("sessionId",Qg.sessionID),this.extendBean("from",this.getCurrentPageUrl()),"undefined"!=typeof document&&this.extendBean("referer",encodeURIComponent(document.referrer||"")),t=fl(cl("tdem-web-retry-report-requests"),[]),(o=function(){var i;t.length&&(i=t.splice(0,1)[0],dl("tdem-web-retry-report-requests",JSON.stringify(t)),n.$request(i,function(){for(var e,t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{return null==(t=qg.get(null==(e=i.extraRetryOptions)?void 0:e.success))?void 0:t.apply(i,n)}finally{o()}},function(){for(var e,t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{return null==(t=qg.get(null==(e=i.extraRetryOptions)?void 0:e.fail))?void 0:t.apply(i,n)}finally{o()}}))})()},Qg.prototype.getBean=function(t){var n=this;return void 0===t&&(t=[]),""+Object.getOwnPropertyNames(this.bean).filter(function(e){return-1===t.indexOf(e)}).map(function(e){return"from"===e?"from="+n.getCurrentPageUrl():e+"="+n.bean[e]}).join("&")},Qg.prototype.getCurrentPageUrl=function(){var e;return this._customPageUrl?encodeURIComponent(this._customPageUrl.slice(0,2048)):(e=this.config.pageUrl||location.href,e=(e="function"==typeof this.config.urlHandler?this.config.urlHandler()||location.href:e).slice(0,2048),encodeURIComponent(e))},Qg.prototype.getOriginFrom=function(){if(this._customPageUrl)return this._customPageUrl.slice(0,2048);try{return("undefined"!=typeof window&&window.location?window.location.href:"").slice(0,2048)}catch(Me){return""}},Qg.prototype.ready=function(){var t=this,o=function(){var e,n,r,i;t.reportRequestQueue.length&&(e=t.reportRequestQueue.splice(0,1)[0],n=e.options,r=e.success,i=e.fail,t.$request(n,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return null==r?void 0:r.apply(n,e)}finally{o()}},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return null==i?void 0:i.apply(n,e)}finally{o()}}))};o(),this.isReportReady=!0},Qg.prototype.request=function(u,n,l){var c,d,f=this;this.config.reportImmediately||this.isReportReady?this.$request(u,c=function(e){var t=fl(cl("tdem-web-retry-report-requests"),[]);null!=t&&t.length&&u.extraRetryOptions&&(t.splice(t.findIndex(function(e){return e.extraRetryOptions.requestId===u.extraRetryOptions.requestId}),1),dl("tdem-web-retry-report-requests",JSON.stringify(t)),qg["delete"](u.extraRetryOptions.success),qg["delete"](u.extraRetryOptions.fail)),null!=n&&n(e)},d=function(e){if(!f.config.reportRetry)return null==l?void 0:l(e);var t,n="boolean"==typeof f.config.reportRetry?Qp:h(h({},Qp),f.config.reportRetry),r=n.maxRetryCount,i=void 0===r?Qp.maxRetryCount:r,r=n.retryInterval,r=void 0===r?Qp.retryInterval:r,n=n.whenRetryEndStillFail,o=void 0===n?Qp.whenRetryEndStillFail:n,a=(u.extraRetryOptions||(u.extraRetryOptions={requestId:"",retriedCount:0,success:"",fail:""}),u.extraRetryOptions),s=(a.requestId=a.requestId||u.url+"-"+Date.now()+"-"+Math.random(),a.requestId),n=(a.retriedCount=a.retriedCount||0,a.success=a.success||s+"_successCallback",a.fail=a.fail||s+"_failCallback",fl(cl("tdem-web-retry-report-requests"),[]));n.find(function(e){return e.extraRetryOptions.requestId===s})?(t=n.findIndex(function(e){return e.extraRetryOptions.requestId===s}),n[t]=u):n.push(u),dl("tdem-web-retry-report-requests",JSON.stringify(n)),setTimeout(function(){var e;a.retriedCount<i?(u.extraRetryOptions.retriedCount+=1,f.$request(u,c,d)):("discard"===o&&((e=fl(cl("tdem-web-retry-report-requests"),[]).filter(function(e){return(null==(e=e.extraRetryOptions)?void 0:e.requestId)!==s})).length?dl("tdem-web-retry-report-requests",JSON.stringify(e)):function(e){try{localStorage.removeItem(e)}catch(Ly){}}("tdem-web-retry-report-requests")),qg["delete"](a.success),qg["delete"](a.fail))},"function"==typeof r?r(u.extraRetryOptions.retriedCount):r),null!=l&&l(e),qg.has(a.success)||qg.set(a.success,c),qg.has(a.fail)||qg.set(a.fail,d)}):this.reportRequestQueue.push({options:u,success:n,fail:l})},Qg.prototype.$request=function(s,e,t){var n,r,i,o;if(s&&"string"==typeof s.url&&""!==s.url&&this.bean.id)return o=s.url,!1!==s.addBean&&(o=function(e,t){var n,r,i,o=e,a=s.beanFilter||[];for(n in t)-1===a.indexOf(n)&&((i=(r=new RegExp("([?&])"+n+"(=([^&]*))?(?=&|$)")).exec(o))?i[2]&&""!==i[3]&&"undefined"!==i[3]||(o=o.replace(r,"$1"+n+"="+t[n])):(i=-1<o.indexOf("?")?"&":"?",o+=i+n+"="+t[n]));return o}(o,h(h({},this.bean),{from:this.getCurrentPageUrl()}))),s.url=o,o=s.method||"get",r=this.config.onBeforeRequest,(s=r?r(s,this):s)?s.url?void((null!=s&&s.sendBeacon||this.sendNow)&&"function"==typeof(null==navigator?void 0:navigator.sendBeacon)?navigator.sendBeacon(s.url,s.data):((n=new XMLHttpRequest).sendByTdem=!0,n.addEventListener("readystatechange",function(){4===n.readyState&&(400<=n.status||0===n.status?null!=t&&t(n.response):null!=e&&e(n.response))}),"get"===o.toLocaleLowerCase()?(n.open("get",(r=s.url,i=s.data,"string"!=typeof r?"":"object"===v(i)&&i?(o=Object.getOwnPropertyNames(i).map(function(e){var t=i[e];return e+"="+("string"==typeof t?encodeURIComponent(t):encodeURIComponent(JSON.stringify(t)))}).join("&").replace(/eval/gi,"evaI"),r+(-1===r.indexOf("?")?"?":"&")+o):r)),n.send()):(n.open("post",s.url),s.contentType&&n.setRequestHeader("Content-Type",s.contentType),"string"==typeof s.data&&(s.data=s.data.replace(/eval/gi,"evaI")),n.send(s.data)))):console.warn("Please handle the parameters reasonably, options.url is necessary"):console.warn("Sending request blocked")},Qg.prototype.publishPluginsLogs=function(){var e=Qg.installedPlugins.find(function(e){return"assets"===e.name});null!=e&&e.option.collectNotReportedLog(this)},Qg.prototype.uploadLogs=function(e,t){var n;void 0===e&&(e={}),void 0===t&&(t={}),null!=(n=this.lifeCycle)&&n.emit("uploadLogs",e,t)},Qg.prototype.reportWebVitals=function(e){try{var t=Qg.installedPlugins.find(function(e){return"webVitals"===e.name});t&&this.config.webVitals&&this.config.webVitals.manualReport&&t.option.publish(this,e)}catch(Me){}},Qg.sessionID=Yg("tdem",Sc).sessionId,Qg),wt=(new o({name:"ie"}),new o({name:"ie",init:function(){this.overrideTdemSend()},onNewTdem:function(e){this.startListen(e)},startListen:function(o){var a=this,s=window.onerror;window.onerror=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r,i=Rl(t[0]);qc(i)||(r={event_id:Dl(),event_type:p.JS_ERROR,event_category:ml.ERROR,timestamp:Date.now(),page_url:("undefined"!=typeof window?null==(e=window.location)?void 0:e.href:"")||"",data:{exception_stacks:[{type:"Error",value:String(i||""),mechanism_type:"onerror",mechanism_handled:0}],exception_frames:[{abs_path:String(t[1]||""),colno:Number(t[3])||0,filename:String(t[1]||"").split("/").pop()||"","function":"(anonymous)",lineno:Number(t[2])||0,in_app:1,stack_level:0}]}},a.$walk(function(e){var t;e===o&&null!=(t=e.reportTDEMEvent)&&t.call(e,r)})),null!=s&&s.call.apply(s,Hu([window],t))}},overrideTdemSend:function(){Xg.prototype.request=function(e,t,n){var r,i,o=this;e&&"string"==typeof e.url&&""!==e.url&&this.bean.id&&(r=e.url,!1!==e.addBean&&(r=r+(-1===r.indexOf("?")?"?":"&")+this.getBean(e.beanFilter)),(i=new Image).onload=function(){o.request(e,t,n),null!=t&&t(null)},i.onerror=function(){o.request(e,t,n),null!=n&&n(null)},e.data?i.src=r+"&"+e.data:i.src=r)}},destroy:function(){}})),rd=(new o({name:"onClose"}),new o({name:"onClose",onNewTdem:function(n){var r,i=this;C.desktop()?(r=window.onunload,window.onunload=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];i.publishNotReportedLog(n),null!=r&&r.call.apply(r,Hu([window],e))}):Pg(this.publishNotReportedLog.bind(this,n),{once:!0})},publishNotReportedLog:function(t){var n=this;this.$walk(function(e){e===t&&(e.sendNow=!0,e.publishPluginsLogs(),n.publishThrottlePipeLogs(e))})},publishThrottlePipeLogs:function(e){null!=e&&e.speedLogPipeline([]),null!=e&&e.tdemEventPipeline([])}})),$g=void 0;function Qg(e){var t,n,r,a,i,o,s,u,l,c,d=Jg.call(this,e)||this;d.sendNow=!1,d.isReportReady=!1,d.reportRequestQueue=[],d._sdkInitialized=!1,d.speedLogPipeline=Nc([(u=[],l=(i=d).config,i.lifeCycle.on("destroy",function(){u.length=0}),function(e,t){Array.isArray(e)?u=u.concat(e):u.push(e),o&&u.length>=o||i.sendNow&&0<u.length?(u=Kl(u),0<(u=Array.isArray(u)?u:[]).length&&t(u.splice(0,u.length)),s&&clearTimeout(s)):(s&&clearTimeout(s),s=setTimeout(function(){s=null,u=Kl(u),0<(u=Array.isArray(u)?u:[]).length&&t(u.splice(0,u.length))},l.delay))}),(a=d.config,function(e,t){var n,r,i,o="number"==typeof a.repeat?a.repeat:60;!a.speedSample||o<=0?t(e):(n=(null==a?void 0:a.id)||"0",r=Xl[n]||{},Array.isArray(e)?(i=e.filter(function(e){var t=!r[e.url]||r[e.url]<o;return t?(r[e.url]=1+~~r[e.url],Xl[n]=r):ql[n]||$l(n),t})).length&&t(i):!r[e.url]||r[e.url]<o?(r[e.url]=1+~~r[e.url],Xl[n]=r,t(e)):ql[n]||$l(n))}),(r=d,function(t,n){sg(function(e){r.extendBean("netType",e),n(t)})}),function(e,t){null!=(n=d.lifeCycle)&&n.emit("beforeReportSpeed",e);var n,r=d.config.beforeReportSpeed;if((e="function"==typeof r?e.filter(function(e){return!1!==r(e)}):e).length)return t(e)},function(e,t){t(e.map(function(e){return"undefined"!=typeof e.payload&&delete e.payload,e}))},function(e){return d.sendPipeline([function(e,t){t({type:pl.SPEED,url:""+d.config.speedUrl,method:"post",data:Pl(e,h(h({},d.bean),{from:d.getCurrentPageUrl()})),log:e})}],pl.SPEED)(e)}]),e.asyncPlugin=!0;try{"undefined"!=typeof document&&(c=String(e.userId||e.uin||(null!=(t=document.cookie.match(/\buin=\D+(\d*)/))?t:[])[1]||(null!=(n=document.cookie.match(/\bilive_uin=\D*(\d+)/))?n:[])[1]||""),e.userId=c,e.uin=e.uin||c),d._bootstrapInit(e)}catch(f){console.warn(f),console.log("%cThe above error occurred in the process of initializing TDEM, which will affect your normal use of TDEM.\nIt is recommended that you contact us for feedback and thank you for your support.","color: red"),d.sendSDKError(f)}return d}function em(){this.constructor=Kg}E({target:"Math",stat:!0},{log1p:$g});Math.log;var g=Math.acosh,tm=Math.log,nm=Math.sqrt,rm=Math.LN2,g=!g||710!==Math.floor(g(Number.MAX_VALUE))||g(Infinity)!==Infinity,g=(E({target:"Math",stat:!0,forced:g},{acosh:function(e){e=+e;return e<1?NaN:94906265.62425156<e?tm(e)+rm:$g(e-1+nm(e-1)*nm(1+e))}}),Math.asinh),im=Math.log,om=Math.sqrt,am=Math.LN2,g=!(g&&0<1/g(0)),g=(E({target:"Math",stat:!0,forced:g},{asinh:function BR(e){e=+e;return isFinite(e)&&0!=e?e<0?-BR(-e):94906265.62425156<e?im(e)+am:im(e+om(e*e+1)):e}}),Math.atanh),g=!(g&&1/g(-0)<0),sm=(E({target:"Math",stat:!0,forced:g},{atanh:function(e){e=+e;return 0==e?e:$g(2*e/(1-e))/2}}),void 0),g=(E({target:"Math",stat:!0,forced:sm!==Math.expm1},{expm1:sm}),Math.expm1),g=(!g||22025.465794806718<g(10)||g(10)<22025.465794806718||g(-2e-17),Math.cosh),um=Math.abs,lm=Math.E,g=!g||g(710)===Infinity,cm=(E({target:"Math",stat:!0,forced:g},{cosh:function(e){e=sm(um(e)-1)+1;return(e+1/(e*lm*lm))*(lm/2)}}),Math.abs),dm=Math.exp,fm=Math.E,g=m(function(){return-2e-17!==Math.sinh(-2e-17)}),hm=(E({target:"Math",stat:!0,forced:g},{sinh:function(e){e=+e;return cm(e)<1?(sm(e)-sm(-e))/2:(dm(e-1)-dm(-e-1))*(fm/2)}}),Math.exp),pm=(E({target:"Math",stat:!0},{tanh:function(e){var e=+e,t=sm(e),n=sm(-e);return t===Infinity?1:n===Infinity?-1:(t-n)/(hm(e)+hm(-e))}}),w.values);E({target:"Object",stat:!0},{values:function(e){return pm(e)}});var gm,mm,vm,ym=kt.enforce,wm=kt.get,g=x.Int8Array,bm=g&&g.prototype,w=x.Uint8ClampedArray,w=w&&w.prototype,km=g&&er(g),Sm=bm&&er(bm),g=Object.prototype,_m=x.TypeError,b=qe("toStringTag"),Cm=pt("TYPED_ARRAY_TAG"),Im=a,a=!1,Em={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},Rm={BigInt64Array:8,BigUint64Array:8},xm=function(e){var t,e=er(e);if(R(e))return(t=wm(e))&&T(t,"TypedArrayConstructor")?t.TypedArrayConstructor:xm(e)},Om=function(e){return!!R(e)&&(e=et(e),T(Em,e)||T(Rm,e))};for(gm in Em)(vm=(mm=x[gm])&&mm.prototype)?ym(vm).TypedArrayConstructor=mm:Im=!1;for(gm in Rm)(vm=(mm=x[gm])&&mm.prototype)&&(ym(vm).TypedArrayConstructor=mm);if((!Im||!ne(km)||km===Function.prototype)&&(km=function(){throw new _m("Incorrect invocation")},Im))for(gm in Em)x[gm]&&br(x[gm],km);if((!Im||!Sm||Sm===g)&&(Sm=km.prototype,Im))for(gm in Em)x[gm]&&br(x[gm].prototype,Sm);if(Im&&er(w)!==Sm&&br(w,Sm),O&&!T(Sm,b))for(gm in _t(Sm,b,{configurable:a=!0,get:function(){return R(this)?this[Cm]:undefined}}),Em)x[gm]&&lt(x[gm].prototype,Cm,gm);var M={NATIVE_ARRAY_BUFFER_VIEWS:Im,TYPED_ARRAY_TAG:a&&Cm,aTypedArray:function(e){if(Om(e))return e;throw new _m("Target is not a typed array")},aTypedArrayConstructor:function(e){if(!ne(e)||br&&!Ce(km,e))throw new _m(Ee(e)+" is not a typed array constructor");return e},exportTypedArrayMethod:function(e,t,n,r){if(O){if(n)for(var i in Em){i=x[i];if(i&&T(i.prototype,e))try{delete i.prototype[e]}catch($){try{i.prototype[e]=t}catch(N){}}}Sm[e]&&!n||xt(Sm,e,!n&&Im&&bm[e]||t,r)}},exportTypedArrayStaticMethod:function(e,t,n){var r,i;if(O){if(br){if(n)for(r in Em)if((i=x[r])&&T(i,e))try{delete i[e]}catch($){}if(km[e]&&!n)return;try{return xt(km,e,!n&&Im&&km[e]||t)}catch($){}}for(r in Em)!(i=x[r])||i[e]&&!n||xt(i,e,t)}},getTypedArrayConstructor:xm,isView:function(e){return!!R(e)&&("DataView"===(e=et(e))||T(Em,e)||T(Rm,e))},isTypedArray:Om,TypedArray:km,TypedArrayPrototype:Sm},Am=x.ArrayBuffer,Tm=x.Int8Array,Mm=!M.NATIVE_ARRAY_BUFFER_VIEWS||!m(function(){Tm(1)})||!m(function(){new Tm(-1)})||!au(function(e){new Tm,new Tm(null),new Tm(1.5),new Tm(e)},!0)||m(function(){return 1!==new Tm(new Am(2),1,undefined).length}),Pm=(E({target:"Number",stat:!0},{isInteger:void 0}),Math.floor,Number.isInteger,RangeError),Nm=RangeError,Lm=function(t,e){var n=function(){var e=le(t);if(e<0)throw new Pm("The argument can't be less than 0");return e}();if(n%e)throw new Nm("Wrong offset");return n},Dm=Math.floor,Fm=TypeError,Um=function(e){e=Ao(e,"number");if("number"==typeof e)throw new Fm("Can't convert number to bigint");return BigInt(e)},Bm=M.aTypedArrayConstructor,zm=function(e){var t=js(this),n=arguments.length,r=1<n?arguments[1]:undefined,i=r!==undefined;i&&xe(r);var o,a,s,u,l,c,d,f,h=se(e),e=Zr(h);if(e&&!Hr(e))for(f=(d=Yr(h,e)).next,h=[];!(c=A(f,d)).done;)h.push(c.value);for(i&&2<n&&(r=zr(r,arguments[2])),a=fe(h),u=function(e){e=et(e);return"BigInt64Array"===e||"BigUint64Array"===e}(s=new(Bm(t))(a)),o=0;o<a;o++)l=i?r(h[o],o):h[o],s[o]=u?Um(l):+l;return s},jm=function(e,t,n){for(var r=0,i=2<arguments.length?n:fe(t),o=new e(i);r<i;)o[r]=t[r++];return o},g=He(function(e){var r=Fn.f,u=si.forEach,h=kt.get,p=kt.set,g=kt.enforce,m=ut.f,n=Kn.f,v=x.RangeError,y=To.ArrayBuffer,t=y.prototype,w=To.DataView,b=M.NATIVE_ARRAY_BUFFER_VIEWS,k=M.TYPED_ARRAY_TAG,S=M.TypedArray,_=M.TypedArrayPrototype,C=M.isTypedArray,i=function(e,t){_t(e,t,{configurable:!0,get:function(){return h(this)[t]}})},I=function(e){return Ce(t,e)||"ArrayBuffer"===(e=et(e))||"SharedArrayBuffer"===e},o=function(e,t){return C(e)&&!ji(t)&&t in e&&(void 0)(+t)&&0<=t},a=function(e,t){return t=gi(t),o(e,t)?st(2,e[t]):n(e,t)},s=function(e,t,n){return t=gi(t),!(o(e,t)&&R(n)&&T(n,"value"))||T(n,"get")||T(n,"set")||n.configurable||T(n,"writable")&&!n.writable||T(n,"enumerable")&&!n.enumerable?m(e,t,n):(e[t]=n.value,e)};O?(b||(Kn.f=a,ut.f=s,i(_,"buffer"),i(_,"byteOffset"),i(_,"byteLength"),i(_,"length")),E({target:"Object",stat:!0,forced:!b},{getOwnPropertyDescriptor:a,defineProperty:s}),e.exports=function(e,t,i){var l=e.match(/\d+/)[0]/8,n=e+(i?"Clamped":"")+"Array",o="get"+e,a="set"+e,s=x[n],c=s,d=c&&c.prototype,e={},f=function(e,r){m(e,r,{get:function(){var e=this,t=r;return(e=h(e)).view[o](t*l+e.byteOffset,!0)},set:function(e){var t,n;t=r,e=e,(n=h(n=this)).view[a](t*l+n.byteOffset,i?(t=+e)!=t||t<=0?0:255<=t?255:!((n=Dm(t))+.5<t)&&(t<n+.5||n%2==0)?n:n+1:e,!0)},enumerable:!0})},t=(b?Mm&&(c=t(function(e,t,n,r){return Qn(e,d),Yo(R(t)?I(t)?r!==undefined?new s(t,Lm(n,l),r):n!==undefined?new s(t,Lm(n,l)):new s(t):C(t)?jm(c,t):A(zm,c,t):new s(Bo(t)),e,c)}),br&&br(c,S),u(r(s),function(e){e in c||lt(c,e,s[e])}),c.prototype=d):(c=t(function(e,t,n,r){Qn(e,d);var i,o,a=0,s=0;if(R(t)){if(!I(t))return C(t)?jm(c,t):A(zm,c,t);var u=t,s=Lm(n,l),n=t.byteLength;if(r===undefined){if(n%l)throw new v("Wrong length");if((i=n-s)<0)throw new v("Wrong length")}else if((i=Bo(r)*l)+s>n)throw new v("Wrong length");o=i/l}else o=Bo(t),u=new y(i=o*l);for(p(e,{buffer:u,byteOffset:s,byteLength:i,length:o,view:new w(u)});a<o;)f(e,a++)}),br&&br(c,S),d=c.prototype=nr(_)),d.constructor!==c&&lt(d,"constructor",c),g(d).TypedArrayConstructor=c,k&&lt(d,k,n),c!==s);e[n]=c,E({global:!0,constructor:!0,forced:t,sham:!b},e),"BYTES_PER_ELEMENT"in c||lt(c,"BYTES_PER_ELEMENT",l),"BYTES_PER_ELEMENT"in d||lt(d,"BYTES_PER_ELEMENT",l),pa(n)}):e.exports=function(){}}),Wm=(g("Float32",function(r){return function(e,t,n){return r(this,e,t,n)}}),g("Uint8",function(r){return function(e,t,n){return r(this,e,t,n)}}),E({target:"Array",proto:!0},{copyWithin:void 0}),tr("copyWithin"),Math.min,y(void 0)),Hm=M.aTypedArray,Vm=((0,M.exportTypedArrayMethod)("copyWithin",function(e,t){return Wm(Hm(this),e,t,2<arguments.length?arguments[2]:undefined)}),Mr("every",TypeError)),Zm=(E({target:"Iterator",proto:!0,real:!0,forced:Vm},{every:function(n){be(this);try{xe(n)}catch($){Jr(this,"throw",$)}var e,r;return Vm?A(Vm,this,n):(e=Qr(this),!$r(e,function(e,t){if(!n(e,r++))return t()},{IS_RECORD:!(r=0),INTERRUPTED:!0}).stopped)}}),si.every),w=Ue("every"),Gm=(E({target:"Array",proto:!0,forced:!w},{every:function(e){return Zm(this,e,1<arguments.length?arguments[1]:undefined)}}),si.every),Ym=M.aTypedArray,Jm=((0,M.exportTypedArrayMethod)("every",function(e){return Gm(Ym(this),e,1<arguments.length?arguments[1]:undefined)}),g("Int8",function(r){return function(e,t,n){return r(this,e,t,n)}}),M.getTypedArrayConstructor),Km=function(e,t){return jm(Jm(e),t)},qm=si.filter,Xm=M.aTypedArray,$m=((0,M.exportTypedArrayMethod)("filter",function(e){e=qm(Xm(this),e,1<arguments.length?arguments[1]:undefined);return Km(this,e)}),si.find),Qm=M.aTypedArray,ev=((0,M.exportTypedArrayMethod)("find",function(e){return $m(Qm(this),e,1<arguments.length?arguments[1]:undefined)}),si.findIndex),tv=M.aTypedArray,nv=((0,M.exportTypedArrayMethod)("findIndex",function(e){return ev(tv(this),e,1<arguments.length?arguments[1]:undefined)}),si.forEach),rv=M.aTypedArray,iv=((0,M.exportTypedArrayMethod)("forEach",function(e){nv(rv(this),e,1<arguments.length?arguments[1]:undefined)}),jn.includes),ov=M.aTypedArray,av=((0,M.exportTypedArrayMethod)("includes",function(e){return iv(ov(this),e,1<arguments.length?arguments[1]:undefined)}),jn.indexOf),sv=M.aTypedArray,uv=((0,M.exportTypedArrayMethod)("indexOf",function(e){return av(sv(this),e,1<arguments.length?arguments[1]:undefined)}),qe("iterator")),b=x.Uint8Array,lv=y(hr.values),cv=y(hr.keys),dv=y(hr.entries),fv=M.aTypedArray,a=M.exportTypedArrayMethod,hv=b&&b.prototype,tr=!m(function(){hv[uv].call([1])}),Mr=!!hv&&hv.values&&hv[uv]===hv.values&&"values"===hv.values.name,Ue=function(){return lv(fv(this))},pv=(a("entries",function(){return dv(fv(this))},tr),a("keys",function(){return cv(fv(this))},tr),a("values",Ue,tr||!Mr,{name:"values"}),a(uv,Ue,tr||!Mr,{name:"values"}),M.aTypedArray),w=M.exportTypedArrayMethod,gv=y([].join),mv=(w("join",function(e){return gv(pv(this),e)}),M.aTypedArray),vv=((0,M.exportTypedArrayMethod)("lastIndexOf",function(e){var t=arguments.length;return Oe(jg,mv(this),1<t?[e,arguments[1]]:[e])}),si.map),yv=M.aTypedArray,wv=((0,M.exportTypedArrayMethod)("map",function(e){e=vv(yv(this),e,1<arguments.length?arguments[1]:undefined);return Km(this,e)}),e.left),bv=M.aTypedArray,kv=((0,M.exportTypedArrayMethod)("reduce",function(e){var t=arguments.length;return wv(bv(this),e,t,1<t?arguments[1]:undefined)}),e.right),Sv=M.aTypedArray,_v=((0,M.exportTypedArrayMethod)("reduceRight",function(e){var t=arguments.length;return kv(Sv(this),e,t,1<t?arguments[1]:undefined)}),M.aTypedArray),jn=M.exportTypedArrayMethod,Cv=Math.floor,Iv=(jn("reverse",function(){for(var e,t=_v(this).length,n=Cv(t/2),r=0;r<n;)e=this[r],this[r++]=this[--t],this[t]=e;return this}),g("Uint8",function(r){return function(e,t,n){return r(this,e,t,n)}},!0),si.some),Ev=M.aTypedArray,Rv=((0,M.exportTypedArrayMethod)("some",function(e){return Iv(Ev(this),e,1<arguments.length?arguments[1]:undefined)}),M.aTypedArray),b=M.exportTypedArrayMethod,xv=x.Uint16Array,Ov=xv&&n(xv.prototype.sort),Ue=!(!Ov||m(function(){Ov(new xv(2),null)})&&m(function(){Ov(new xv(2),{})})),Av=!!Ov&&!m(function(){if(An)return An<74;if(wf)return wf<67;if(bf)return!0;if(kf)return kf<602;for(var e,t=new xv(516),n=Array(516),r=0;r<516;r++)e=r%4,t[r]=515-r,n[r]=r-2*e+3;for(Ov(t,function(e,t){return(e/4|0)-(t/4|0)}),r=0;r<516;r++)if(t[r]!==n[r])return!0}),Tv=(b("sort",function(e){return e!==undefined&&xe(e),Av?Ov(this,e):yf(Rv(this),(n=e,function(e,t){return n!==undefined?+n(e,t)||0:t!=t?e!=e?0:-1:e!=e?1:0===e&&0===t?0<1/e?0<1/t?0:1:0<1/t?-1:0:t<e?1:e<t?-1:0}));var n},!Av||Ue),M.aTypedArray),Mv=M.getTypedArrayConstructor,Pv=((0,M.exportTypedArrayMethod)("subarray",function(e,t){var n=Tv(this),r=n.length,e=mn(e,r);return new(Mv(n))(n.buffer,n.byteOffset+e*n.BYTES_PER_ELEMENT,de((t===undefined?r:mn(t,r))-e))}),x.Int8Array),Nv=M.aTypedArray,tr=M.exportTypedArrayMethod,Lv=[].toLocaleString,Dv=!!Pv&&m(function(){Lv.call(new Pv(1))}),Mr=(tr("toLocaleString",function(){return Oe(Lv,Dv?Pn(Nv(this)):Nv(this),Pn(arguments))},m(function(){return[1,2].toLocaleString()!==new Pv([1,2]).toLocaleString()})||!m(function(){Pv.prototype.toLocaleString.call([1,2])})),M.exportTypedArrayMethod),a=x.Uint8Array,w=a&&a.prototype||{},Fv=[].toString,Uv=y([].join),e=(m(function(){Fv.call({})})&&(Fv=function(){return Uv(this)}),w.toString!==Fv),Bv=(Mr("toString",Fv,e),M.aTypedArray),zv=M.getTypedArrayConstructor,jv=((0,M.exportTypedArrayMethod)("slice",function(e,t){for(var n=Pn(Bv(this),e,t),e=zv(this),r=0,i=n.length,o=new e(i);r<i;)o[r]=n[r++];return o},m(function(){new Int8Array(1).slice()})),x.RangeError),Wv=x.Int8Array,jn=Wv&&Wv.prototype,Hv=jn&&jn.set,Vv=M.aTypedArray,Ue=M.exportTypedArrayMethod,Zv=!m(function(){var e=new Uint8ClampedArray(2);return A(Hv,e,{length:1,0:3},1),3!==e[1]}),b=Zv&&M.NATIVE_ARRAY_BUFFER_VIEWS&&m(function(){var e=new Wv(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}),Gv=(Ue("set",function(e){Vv(this);var t=Lm(1<arguments.length?arguments[1]:undefined,1),n=se(e);if(Zv)return A(Hv,this,n,t);var e=this.length,r=fe(n),i=0;if(e<r+t)throw new jv("Wrong length");for(;i<r;)this[t+i]=n[i++]},!Zv||b),M.aTypedArray),tr=M.exportTypedArrayMethod,Yv=y("".slice);tr("fill",function(e){var t=arguments.length,e=(Gv(this),"Big"===Yv(et(this),0,3)?Um(e):+e);return A(Go,this,e,1<t?arguments[1]:undefined,2<t?arguments[2]:undefined)},m(function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})),new o({name:"aid"});var a=Kn.f,Jv=n("".slice),Kv=Math.min,w=t("startsWith"),Mr=!(w||!(e=a(String.prototype,"startsWith"))||e.writable);function qv(){return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,function(e){return(e^(16*Math.random()&15)>>e/4).toString(16)})}E({target:"String",proto:!0,forced:!Mr&&!w},{startsWith:function(e){var t=_(oe(this)),e=(el(e),_(e)),n=de(Kv(1<arguments.length?arguments[1]:undefined,t.length));return Jv(t,n,n+e.length)===e}});ey.generate=function(){return"rep_"+this.uuid32()},ey.uuid32=function(){return"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx".replace(/x/g,function(){return Math.floor(16*Math.random()).toString(16)})};var Xv=ey,$v="[SessionReplay]",Qv=!1;function ey(){}function ty(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];Qv&&console.log.apply(console,Hu([$v+"["+e+"]"],t))}function ny(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];Qv&&console.debug.apply(console,Hu([$v+"["+e+"]"],t))}function ry(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];Qv&&console.log.apply(console,Hu([$v+"["+e+"] WARN:"],t))}function iy(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];Qv&&console.log.apply(console,Hu([$v+"["+e+"] ERROR:"],t))}ly.prototype.setTdemInstance=function(e){this.tdemInstance=e},ly.prototype.createSession=function(e){void 0===e&&(e="session");var t=null==(t=this.session)?void 0:t.replayId,n=Yg("tdem",qv),n=h({id:n.sessionId,replayId:Xv.generate(),started:Date.now(),lastActivity:Date.now(),segmentId:0,sampled:e},t?{previousReplayId:t}:{});return this.session=n,this.syncSharedSession(n.id),ty("SessionManager","Document replay session created:",n.id,n.replayId),n},ly.prototype.restoreSession=function(){return this.session},ly.prototype.saveSession=function(){},ly.prototype.refreshSession=function(){var e=null!=(e=null==(e=this.session)?void 0:e.sampled)?e:"session";return this.createSession(e)},ly.prototype.updateActivity=function(){this.session&&(this.session.lastActivity=Date.now())},ly.prototype.incrementSegmentId=function(){var e;return this.session?(e=this.session.segmentId,this.session.segmentId+=1,e):0},ly.prototype.shouldRefreshSession=function(){return!1},ly.prototype.getSession=function(){return this.session},ly.prototype.getSessionId=function(){var e;return null!=(e=null==(e=this.session)?void 0:e.id)?e:""},ly.prototype.getReplayId=function(){var e;return null!=(e=null==(e=this.session)?void 0:e.replayId)?e:""},ly.prototype.clearSession=function(){var e;this.session=null;try{null!=(e=window.sessionStorage)&&e.removeItem("tdem_session")}catch(I){}},ly.prototype.syncSharedSession=function(e){var t,n,r;this.tdemInstance&&this.tdemInstance.extendBean("sessionId",e),e=e,"undefined"!=typeof window&&(t=Date.now(),(n=window[Hg])?(r=n.sessionId!==e,n.sessionId=e,n.version=r?n.version+1:n.version,n.source="tdem",r&&(n.createdAt=t),n.lastActivity=t):window[Hg]=Zg(e,"tdem"),Vg("_tdem_s",e),Gg(window[Hg]),window.dispatchEvent(new CustomEvent("monitor-session-update",{detail:{sessionId:e,source:"tdem"}})))};var oy=ly,ay=((jn={})[jn.DomContentLoaded=0]="DomContentLoaded",jn[jn.Load=1]="Load",jn[jn.FullSnapshot=2]="FullSnapshot",jn[jn.IncrementalSnapshot=3]="IncrementalSnapshot",jn[jn.Meta=4]="Meta",jn[jn.Custom=5]="Custom",jn[jn.Plugin=6]="Plugin",jn),sy=(uy.prototype.ensureReady=function(){return ju(this,void 0,void 0,function(){return Wu(this,function(e){return[2,this.ready]})})},uy.prototype.postMessage=function(n,r){var i=this,o=this.nextId++;return new Promise(function(e,t){i.pendingRequests.set(o,{resolve:e,reject:t}),i.worker.postMessage({id:o,method:n,arg:r})})},uy.prototype.destroy=function(){this.pendingRequests.forEach(function(e){return(0,e.reject)(new Error("Worker destroyed"))}),this.pendingRequests.clear(),this.worker.terminate()},uy);function uy(e){var o=this;this.nextId=0,this.pendingRequests=new Map,this.worker=e,this.worker.addEventListener("message",function(e){var e=e.data,t=e.id,n=e.success,r=e.response;"init"!==e.method&&(e=o.pendingRequests.get(t))&&(o.pendingRequests["delete"](t),n?e.resolve(r):e.reject(new Error(r||"Worker request failed")))}),this.ready=new Promise(function(t,n){var r=function(e){e=e.data;"init"===e.method&&e.success&&(o.worker.removeEventListener("message",r),clearTimeout(i),t())},i=(o.worker.addEventListener("message",r),o.worker.addEventListener("error",function(e){o.worker.removeEventListener("message",r),clearTimeout(i),n(new Error("Worker error: "+(e.message||"unknown")))}),setTimeout(function(){o.worker.removeEventListener("message",r),n(new Error("Worker init timeout (5s)"))},5e3))})}function ly(e){this.session=null,this.tdemInstance=null}dy.prototype.initWorker=function(){var t=this,e=function(){try{var e,t,n;return"undefined"==typeof Worker||"undefined"==typeof Blob||"undefined"==typeof URL?null:(e=new Blob(["\n(function() {\n var events = [];\n var totalSize = 0;\n\n function handleMessage(data) {\n var method = data.method;\n var id = data.id;\n\n switch (method) {\n case 'addEvent':\n events.push(data.arg);\n totalSize += data.arg.length;\n return { id: id, method: method, success: true, response: totalSize };\n\n case 'finish':\n var json = '[' + events.join(',') + ']';\n events = [];\n totalSize = 0;\n // 返回原始 JSON 字符串,压缩在主线程做(pako 不好内联到 worker)\n return { id: id, method: method, success: true, response: json };\n\n case 'clear':\n events = [];\n totalSize = 0;\n return { id: id, method: method, success: true, response: void 0 };\n\n default:\n return { id: id, method: method, success: false, response: 'Unknown method' };\n }\n }\n\n self.addEventListener('message', function(e) {\n try {\n var result = handleMessage(e.data);\n self.postMessage(result);\n } catch (err) {\n self.postMessage({\n id: e.data.id,\n method: e.data.method,\n success: false,\n response: err.message || 'Worker error'\n });\n }\n });\n\n // 就绪信号\n self.postMessage({ method: 'init', success: true });\n})();\n"],{type:"application/javascript"}),t=URL.createObjectURL(e),n=new Worker(t,{name:"tdem-replay-compressor"}),URL.revokeObjectURL(t),ty("CompressionWorker","Worker created successfully"),new sy(n))}catch(d){return ry("CompressionWorker","Failed to create worker, will fallback to sync buffer:",d),null}}();e?(this.workerHandler=e,this.useWorker=!0,e.ensureReady().then(function(){t.workerReady=!0,ty("EventBuffer","Worker ready, migrating buffered events"),t.migrateEventsToWorker()})["catch"](function(e){ry("EventBuffer","Worker init failed, falling back to sync buffer:",e),t.useWorker=!1,t.workerHandler=null})):ty("EventBuffer","Worker not available, using sync buffer")},dy.prototype.migrateEventsToWorker=function(){if(this.workerHandler&&this.workerReady){var e=this.events;this.events=[];for(var t=0,n=e;t<n.length;t++){var r=n[t];this.addEventToWorker(r)}this.currentSize=0}},dy.prototype.addEventToWorker=function(e){if(this.workerHandler)try{var t=JSON.stringify(e);this.workerHandler.postMessage("addEvent",t),this.workerEventCount++,this.workerSize+=t.length}catch(P){ry("EventBuffer","Failed to send event to worker:",P)}},dy.prototype.addEvent=function(e){var t;this.useWorker&&this.workerReady&&this.workerHandler?(t=this.estimateEventSize(e),this.workerSize+t>this.config.maxSize&&(ry("EventBuffer","Worker buffer size limit exceeded, dropping old events"),this.workerHandler.postMessage("clear"),this.workerEventCount=0,this.workerSize=0),this.addEventToWorker(e)):(t=this.estimateEventSize(e),this.currentSize+t>this.config.maxSize&&(ry("EventBuffer","Size limit exceeded, removing old events"),this.trimOldEvents(t)),this.events.push(e),this.currentSize+=t)},dy.prototype.getEvents=function(){return Hu(this.events)},dy.prototype.getEventCount=function(){return this.useWorker&&this.workerReady?this.workerEventCount+this.events.length:this.events.length},dy.prototype.getSize=function(){return this.useWorker&&this.workerReady?this.workerSize+this.currentSize:this.currentSize},dy.prototype.isEmpty=function(){return!(this.useWorker&&this.workerReady&&0!==this.workerEventCount||0!==this.events.length)},dy.prototype.finishAsync=function(){return ju(this,void 0,void 0,function(){var t,n,r;return Wu(this,function(e){switch(e.label){case 0:if(!(this.useWorker&&this.workerReady&&this.workerHandler&&0<this.workerEventCount))return[3,4];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,this.workerHandler.postMessage("finish")];case 2:return t=e.sent(),r=this.workerEventCount,n=this.workerSize,this.workerEventCount=0,this.workerSize=0,[2,{events:[],eventCount:r,uncompressedSize:n,eventsJson:t}];case 3:return ry("EventBuffer","Worker finish failed, falling back to sync:",e.sent()),[3,4];case 4:return[2,{events:r=this.getEvents(),eventCount:r.length,uncompressedSize:this.currentSize}]}})})},dy.prototype.finish=function(){var e=this.getEvents();return{events:e,eventCount:e.length,uncompressedSize:this.currentSize}},dy.prototype.clear=function(){this.events=[],this.currentSize=0,this.useWorker&&this.workerHandler&&(this.workerHandler.postMessage("clear"),this.workerEventCount=0,this.workerSize=0)},dy.prototype.destroy=function(){this.clear(),this.workerHandler&&(this.workerHandler.destroy(),this.workerHandler=null),this.useWorker=!1,this.workerReady=!1},dy.prototype.estimateEventSize=function(e){try{return JSON.stringify(e).length}catch(Ly){return 1024}},dy.prototype.trimOldEvents=function(e){for(var t=-1,n=this.events.length-1;0<=n;n--)if(this.events[n].type===ay.FullSnapshot){t=n;break}var r=t;if(0<r)for(n=r-1;0<=n;n--)if(this.events[n].type===ay.Meta){r=n;break}for(var i,o=0,a=Math.max(e,.2*this.config.maxSize),s=0;s<r&&o<a;)s++,(i=this.events.shift())&&(o+=this.estimateEventSize(i));if(r<0)for(;0<this.events.length&&o<a;)(i=this.events.shift())&&(o+=this.estimateEventSize(i));this.currentSize=Math.max(0,this.currentSize-o)},dy.prototype.hasCheckout=function(){return this.events.some(function(e){return e.type===ay.Meta||e.type===ay.FullSnapshot})},dy.prototype.getLastCheckoutTime=function(){for(var e=this.events.length-1;0<=e;e--){var t=this.events[e];if(t.type===ay.FullSnapshot)return t.timestamp}return null},dy.prototype.isUsingWorker=function(){return this.useWorker&&this.workerReady};var cy=dy;function dy(e,t){void 0===e&&(e={}),void 0===t&&(t=!1),this.events=[],this.currentSize=0,this.workerHandler=null,this.useWorker=!1,this.workerReady=!1,this.workerEventCount=0,this.workerSize=0,this.config={maxSize:null!=(e=e.maxSize)?e:5242880},t&&this.initWorker()}pi("toStringTag"),fr(_e("Symbol"),"Symbol"),fr(x.JSON,"JSON",!0),fr(Math,"Math",!0),E({target:"Number",stat:!0},{isNaN:function(e){return e!=e}});var fy=r.trim,hy=y("".charAt),py=x.parseFloat,b=x.Symbol,gy=b&&b.iterator,Ue=1/py(Zi+"-0")!=-Infinity||gy&&!m(function(){py(Object(gy))})?function(e){var e=fy(_(e)),t=py(e);return 0===t&&"-"===hy(e,0)?-0:t}:py,my=(E({target:"Number",stat:!0,forced:Number.parseFloat!==Ue},{parseFloat:Ue}),_e("Reflect","construct")),vy=Object.prototype,yy=[].push,wy=m(function(){function e(){}return!(my(function(){},[],e)instanceof e)}),by=!m(function(){my(function(){})}),tr=wy||by,ky=(E({target:"Reflect",stat:!0,forced:tr,sham:tr},{construct:function(e,t){js(e);var n=arguments.length<3?e:js(arguments[2]);if(be(t),by&&!wy)return my(e,t,n);if(e===n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return Oe(yy,r,t),new(Oe(es,e,r))}r=n.prototype,n=nr(R(r)?r:vy),r=Oe(e,n,t);return R(r)?r:n}}),function(e,t,n){var r,i;return be(e)===n?e[t]:(r=Kn.f(e,t))?(i=r)!==undefined&&(T(i,"value")||T(i,"writable"))?r.value:r.get===undefined?undefined:A(r.get,n):(i=er(e),R(i)?ky(i,t,n):void 0)}),a=(E({target:"Reflect",stat:!0},{get:function(e,t){return ky(be(e),gi(t),arguments.length<3?e:arguments[2])}}),Kn.f),Sy=n("".slice),_y=Math.min,e=t("endsWith"),w=!(e||!(Mr=a(String.prototype,"endsWith"))||Mr.writable),Cy=(E({target:"String",proto:!0,forced:!w&&!e},{endsWith:function(e){var t=_(oe(this)),e=(el(e),_(e)),n=1<arguments.length?arguments[1]:undefined,r=t.length,n=n===undefined?r:_y(de(n),r);return Sy(t,n-e.length,n)===e}}),y("".replace),E({target:"String",proto:!0,forced:m(function(){var e="".bold('"');return e!==e.toLowerCase()||3<e.split('"').length})},{bold:function(){return 0,"<b"+">"+_(oe(this))+"</b>"}}),g("Float64",function(r){return function(e,t,n){return r(this,e,t,n)}}),g("Int16",function(r){return function(e,t,n){return r(this,e,t,n)}}),g("Int32",function(r){return function(e,t,n){return r(this,e,t,n)}}),g("Uint16",function(r){return function(e,t,n){return r(this,e,t,n)}}),g("Uint32",function(r){return function(e,t,n){return r(this,e,t,n)}}),(0,M.exportTypedArrayStaticMethod)("from",zm,Mm),Object.isFrozen),r=ga||m(function(){Cy(1)}),Iy=(E({target:"Object",stat:!0,forced:r},{isFrozen:function(e){return!R(e)||!(!ga||"ArrayBuffer"!==ee(e))||!!Cy&&Cy(e)}}),Object.isSealed),b=ga||m(function(){Iy(1)}),Ey=(E({target:"Object",stat:!0,forced:b},{isSealed:function(e){return!R(e)||!(!ga||"ArrayBuffer"!==ee(e))||!!Iy&&Iy(e)}}),Sa.onFreeze),Ry=Object.seal,Ue=m(function(){Ry(1)});E({target:"Object",stat:!0,forced:Ue,sham:!0},{seal:function(e){return Ry&&R(e)?Ry(Ey(e)):e}});var xy,Oy,Ay,Ty,My=kt.enforce,tr=Object,Py=(Array.isArray,tr.isExtensible),n=!x.ActiveXObject&&"ActiveXObject"in x,t=function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}},a=ct("WeakMap",t,s),Mr=a.prototype,Ny=y(Mr.set);De&&n&&(xy=s.getConstructor(t,"WeakMap",!0),Sa.enable(),Oy=y(Mr["delete"]),Ay=y(Mr.has),Ty=y(Mr.get),Fo(Mr,{"delete":function(e){var t;return R(e)&&!Py(e)?((t=My(this)).frozen||(t.frozen=new xy),Oy(this,e)||t.frozen["delete"](e)):Oy(this,e)},has:function(e){var t;return R(e)&&!Py(e)?((t=My(this)).frozen||(t.frozen=new xy),Ay(this,e)||t.frozen.has(e)):Ay(this,e)},get:function(e){var t;return!R(e)||Py(e)||((t=My(this)).frozen||(t.frozen=new xy),Ay(this,e))?Ty(this,e):t.frozen.get(e)},set:function(e,t){var n;return!R(e)||Py(e)||((n=My(this)).frozen||(n.frozen=new xy),Ay(this,e))?Ny(this,e,t):n.frozen.set(e,t),this}}));var Ly,Dy=["inputs"],Fy=["inputId"],Uy=["inputs"],By=["inputId"],zy=["type"],jy=Object.defineProperty,k=function(e,t,n){return e=e,t="symbol"!==v(t)?t+"":t,n=n,t in e?jy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Wy=Object.defineProperty,Hy=function(e,t,n){return e=e,t="symbol"!==v(t)?t+"":t,n=n,t in e?Wy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Vy=((w=Vy||{})[w.Document=0]="Document",w[w.DocumentType=1]="DocumentType",w[w.Element=2]="Element",w[w.Text=3]="Text",w[w.CDATA=4]="CDATA",w[w.Comment=5]="Comment",w),Zy={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Gy={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Yy={};function Jy(e){if(Yy[e])return Yy[e];var t=globalThis[e],n=t.prototype,r=e in Zy?Zy[e]:void 0,r=Boolean(r&&r.every(function(e){return Boolean(null==(e=null==(e=Object.getOwnPropertyDescriptor(n,e))?void 0:e.get)?void 0:e.toString().includes("[native code]"))})),i=e in Gy?Gy[e]:void 0,i=Boolean(i&&i.every(function(e){return"function"==typeof n[e]&&(null==(e=n[e])?void 0:e.toString().includes("[native code]"))}));if(r&&i&&!globalThis.Zone)return Yy[e]=t.prototype,t.prototype;try{var o,a=document.createElement("iframe"),s=(document.body.appendChild(a),a.contentWindow);return s?(o=s[e].prototype,document.body.removeChild(a),o?Yy[e]=o:n):t.prototype}catch(D){return n}}var Ky={};function qy(e,t,n){var r="".concat(e,".").concat(String(n));return Ky[r]?Ky[r].call(t):(e=Jy(e),(e=null==(e=Object.getOwnPropertyDescriptor(e,n))?void 0:e.get)?(Ky[r]=e).call(t):t[n])}var Xy={};function $y(e,t,n){var r="".concat(e,".").concat(String(n));return Xy[r]?Xy[r].bind(t):"function"!=typeof(e=Jy(e)[n])?t[n]:(Xy[r]=e).bind(t)}var Qy={ownerDocument:function(e){return qy("Node",e,"ownerDocument")},childNodes:function(e){return qy("Node",e,"childNodes")},parentNode:function(e){return qy("Node",e,"parentNode")},parentElement:function(e){return qy("Node",e,"parentElement")},textContent:function(e){return qy("Node",e,"textContent")},contains:function(e,t){return $y("Node",e,"contains")(t)},getRootNode:function(e){return $y("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?qy("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?qy("Element",e,"shadowRoot"):null},querySelector:function(e,t){return qy("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return qy("Element",e,"querySelectorAll")(t)},mutationObserver:function(){return Jy("MutationObserver").constructor},patch:function(e,t,n){try{var r,i;return t in e?("function"==typeof(i=n(r=e[t]))&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,function(){e[t]=r}):function(){}}catch(Pe){return function(){}}}};function e0(e){return e.nodeType===e.ELEMENT_NODE}function t0(e){var t=e&&"host"in e&&"mode"in e&&Qy.host(e)||null;return Boolean(t&&"shadowRoot"in t&&Qy.shadowRoot(t)===e)}function n0(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function r0(e){try{var t,n=e.rules||e.cssRules;return n?(!(t=e.href)&&e.ownerNode&&(t=e.ownerNode.baseURI),r=(r=Array.from(n,function(e){return i0(e,t)}).join("")).includes(" background-clip: text;")&&!r.includes(" -webkit-background-clip: text;")?r.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;"):r):null}catch($){return null}var r}function i0(e,t){if("styleSheet"in e){var n;try{n=r0(e.styleSheet)||((r=(i=e).cssText).split('"').length<3?r:(r=["@import","url(".concat(JSON.stringify(i.href),")")],""===i.layerName?r.push("layer"):i.layerName&&r.push("layer(".concat(i.layerName,")")),i.supportsText&&r.push("supports(".concat(i.supportsText,")")),i.media.length&&r.push(i.media.mediaText),r.join(" ")+";"))}catch($){n=e.cssText}return e.styleSheet.href?p0(n,e.styleSheet.href):n}var r,i=e.cssText;return"selectorText"in e&&e.selectorText.includes(":")&&(i=i.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),t?p0(i,t):i}var o0=f(function u(){l(this,u),Hy(this,"idNodeMap",new Map),Hy(this,"nodeMetaMap",new WeakMap)},[{key:"getId",value:function(e){return e&&null!=(e=null==(e=this.getMeta(e))?void 0:e.id)?e:-1}},{key:"getNode",value:function(e){return this.idNodeMap.get(e)||null}},{key:"getIds",value:function(){return Array.from(this.idNodeMap.keys())}},{key:"getMeta",value:function(e){return this.nodeMetaMap.get(e)||null}},{key:"removeNodeFromMap",value:function(e){var t=this,n=this.getId(e);this.idNodeMap["delete"](n),e.childNodes&&e.childNodes.forEach(function(e){return t.removeNodeFromMap(e)})}},{key:"has",value:function(e){return this.idNodeMap.has(e)}},{key:"hasNode",value:function(e){return this.nodeMetaMap.has(e)}},{key:"add",value:function(e,t){var n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}},{key:"replace",value:function(e,t){var n=this.getNode(e);n&&(n=this.nodeMetaMap.get(n))&&this.nodeMetaMap.set(t,n),this.idNodeMap.set(e,t)}},{key:"reset",value:function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}]);function a0(e){var t=e.element,n=e.maskInputOptions,r=e.tagName,i=e.type,o=e.maskInputFn,e=e.value||"",i=i&&s0(i);return e=n[r.toLowerCase()]||i&&n[i]?o?o(e,t):"*".repeat(e.length):e}function s0(e){return e.toLowerCase()}function u0(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?s0(t):null}function l0(e,t){var n;try{n=new URL(e,null!=t?t:window.location.href)}catch(Me){return null}e=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!=(t=null==e?void 0:e[1])?t:null}var c0=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,d0=/^(?:[a-z+]+:)?\/\//i,f0=/^www\..*/i,h0=/^(data:)([^,]*),(.*)/i;function p0(e,c){return(e||"").replace(c0,function(e,t,n,r,i,o){n=n||i||o,i=t||r||"";if(!n)return e;if(d0.test(n)||f0.test(n))return"url(".concat(i).concat(n).concat(i,")");if(h0.test(n))return"url(".concat(i).concat(n).concat(i,")");if("/"===n[0])return"url(".concat(i).concat((-1<(o=c).indexOf("//")?o.split("/").slice(0,3).join("/"):o.split("/")[0]).split("?")[0]+n).concat(i,")");var a=c.split("/"),t=n.split("/");a.pop();var s,u=Ae(t);try{for(u.s();!(s=u.n()).done;){var l=s.value;"."!==l&&(".."===l?a.pop():a.push(l))}}catch(Me){u.e(Me)}finally{u.f()}return"url(".concat(i).concat(a.join("/")).concat(i,")")})}function g0(e,t){return 1<arguments.length&&t!==undefined&&t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}var m0,v0,y0=1,w0=new RegExp("[^a-z0-9-_:]");function b0(){return y0++}var k0=/^[^ \t\n\r\u000c]+/,S0=/^[, \t\n\r\u000c]+/,_0=new WeakMap;function C0(e,t){return t&&""!==t.trim()?I0(e,t):t}function I0(e,t){var n=_0.get(e);if(n||(n=e.createElement("a"),_0.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function E0(e,t,n,r){return r&&("src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]||"background"===n&&["table","td","th"].includes(t)?C0(e,r):"srcset"===n?function(e,t){if(""===t.trim())return t;var n=0;function r(e){var e=e.exec(t.substring(n));return e?(e=e[0],n+=e.length,e):""}for(var i=[];r(S0),!(n>=t.length);)if(","===(a=r(k0)).slice(-1))a=C0(e,a.substring(0,a.length-1)),i.push(a);else for(var o="",a=C0(e,a),s=!1;;){var u=t.charAt(n);if(""===u){i.push((a+o).trim());break}if(s)")"===u&&(s=!1);else{if(","===u){n+=1,i.push((a+o).trim());break}"("===u&&(s=!0)}o+=u,n+=1}return i.join(", ")}(e,r):"style"===n?p0(r,I0(e)):"object"===t&&"data"===n?C0(e,r):r)}function R0(e,t){return["video","audio"].includes(e)&&"autoplay"===t}function x0(e,t,n){if(!e)return!1;if(e.nodeType===e.ELEMENT_NODE)for(var r=e.classList.length;r--;){var i=e.classList[r];if(t.test(i))return!0}return!!n&&x0(Qy.parentNode(e),t,n)}function O0(e,t,n,r){var i;if(e0(e)){if(!Qy.childNodes(i=e).length)return!1}else{if(null===Qy.parentElement(e))return!1;i=Qy.parentElement(e)}try{if("string"==typeof t){if(r){if(i.closest(".".concat(t)))return!0}else if(i.classList.contains(t))return!0}else if(x0(i,t,r))return!0;if(n)if(r){if(i.closest(n))return!0}else if(i.matches(n))return!0}catch(Pe){}return!1}function A0(e,t){var n=t.doc,r=t.blockClass,i=t.blockSelector,o=t.needsMask,a=t.inlineStylesheet,s=t.maskInputOptions,u=void 0===s?{}:s,l=t.maskTextFn,c=t.maskInputFn,s=t.dataURLOptions,d=void 0===s?{}:s,f=t.inlineImages,D=t.recordCanvas,F=t.keepIframeSrcFn,s=t.newlyAddedElement,U=void 0!==s&&s,s=t.cssCaptured,B=void 0!==s&&s,h=(s=n,!(t=t.mirror).hasNode(s)||1===(s=t.getId(s))?void 0:s);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:Vy.Document,childNodes:[],compatMode:e.compatMode}:{type:Vy.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Vy.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:h};case e.ELEMENT_NODE:for(var p,g,m,v,y,w,b=e,k=(T={doc:n,blockClass:r,blockSelector:i,inlineStylesheet:a,maskInputOptions:u,maskInputFn:c,dataURLOptions:d,inlineImages:f,recordCanvas:D,keepIframeSrcFn:F,newlyAddedElement:U,rootId:h}).doc,S=T.blockSelector,_=T.inlineStylesheet,C=void 0===(C=T.maskInputOptions)?{}:C,I=T.maskInputFn,E=void 0===(R=T.dataURLOptions)?{}:R,R=T.inlineImages,x=T.recordCanvas,O=T.keepIframeSrcFn,A=void 0!==(A=T.newlyAddedElement)&&A,z=T.rootId,T=function(e,t,n){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var r=e.classList.length;r--;){var i=e.classList[r];if(t.test(i))return!0}if(n)return e.matches(n)}catch(S){}return!1}(b,T.blockClass,S),M=(g=b)instanceof HTMLFormElement?"form":(g=s0(g.tagName),w0.test(g)?"div":g),P={},j=b.attributes.length,N=0;N<j;N++){var L=b.attributes[N];R0(M,L.name)||(P[L.name]=E0(k,M,s0(L.name),L.value))}"link"===M&&_&&(g=null,g=(_=Array.from(k.styleSheets).find(function(e){return e.href===b.href}))?r0(_):g)&&(delete P.rel,delete P.href,P._cssText=g),"style"===M&&b.sheet&&(_=r0(b.sheet))&&(1<b.childNodes.length&&(_=function(e,t,n){var r=2<arguments.length&&n!==undefined&&n,i=Array.from(t.childNodes),o=[],a=0;if(1<i.length&&e&&"string"==typeof e)for(var s=g0(e,r),u=s.length/e.length,l=1;l<i.length;l++)if(i[l].textContent&&"string"==typeof i[l].textContent){for(var c=g0(i[l].textContent,r),d=3;d<c.length&&(c[d].match(/[a-zA-Z0-9]/)||-1!==c.indexOf(c.substring(0,d),1));d++);for(;d<c.length;d++){var f,h=c.substring(0,d),p=s.split(h),g=-1;if(2===p.length)g=p[0].length;else if(2<p.length&&""===p[0]&&""!==i[l-1].textContent)g=s.indexOf(h,1);else if(1===p.length){if(h=h.substring(0,h.length-1),(p=s.split(h)).length<=1)return o.push(e),o;d=101}else d===c.length-1&&(g=s.indexOf(h));if(-1!==(g=2<=p.length&&100<d&&((f=i[l-1].textContent)&&"string"==typeof f&&(f=g0(f).length,g=s.indexOf(h,f)),-1===g)?p[0].length:g)){for(var m=Math.floor(g/u);0<m&&m<e.length;){if((a+=1)>50*i.length)return o.push(e),o;var v=g0(e.substring(0,m),r);if(v.length===g){o.push(e.substring(0,m)),e=e.substring(m),s=s.substring(g);break}v.length<g?m+=Math.max(1,Math.floor((g-v.length)/u)):m-=Math.max(1,Math.floor((v.length-g)*u))}break}}}return o.push(e),o}(_,b).join("/* rr_split */")),P._cssText=_),["input","textarea","select"].includes(M)&&(g=b.value,_=b.checked,"radio"!==P.type&&"checkbox"!==P.type&&"submit"!==P.type&&"button"!==P.type&&g?P.value=a0({element:b,type:u0(b),tagName:M,value:g,maskInputOptions:C,maskInputFn:I}):_&&(P.checked=_)),"option"===M&&(b.selected&&!C.select?P.selected=!0:delete P.selected),"dialog"===M&&b.open&&(P.rr_open_mode=b.matches("dialog:modal")?"modal":"non-modal"),"canvas"===M&&x&&("2d"===b.__context?function(e){var t=e.getContext("2d");if(t)for(var n=0;n<e.width;n+=50)for(var r=0;r<e.height;r+=50){var i=t.getImageData,i="__rrweb_original__"in i?i.__rrweb_original__:i;if(new Uint32Array(i.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some(function(e){return 0!==e}))return}return 1}(b)||(P.rr_dataURL=b.toDataURL(E.type,E.quality)):"__context"in b||(g=b.toDataURL(E.type,E.quality),(I=k.createElement("canvas")).width=b.width,I.height=b.height,g!==I.toDataURL(E.type,E.quality)&&(P.rr_dataURL=g))),"img"===M&&R&&(m0||(m0=k.createElement("canvas"),v0=m0.getContext("2d")),v=(m=b).currentSrc||m.getAttribute("src")||"<unknown-src>",y=m.crossOrigin,w=function(){m.removeEventListener("load",w);try{m0.width=m.naturalWidth,m0.height=m.naturalHeight,v0.drawImage(m,0,0),P.rr_dataURL=m0.toDataURL(E.type,E.quality)}catch(Me){if("anonymous"!==m.crossOrigin)return m.crossOrigin="anonymous",void(m.complete&&0!==m.naturalWidth?w():m.addEventListener("load",w));console.warn("Cannot inline img src=".concat(v,"! Error: ").concat(Me))}"anonymous"===m.crossOrigin&&(y?P.crossOrigin=y:m.removeAttribute("crossorigin"))},m.complete&&0!==m.naturalWidth?w():m.addEventListener("load",w)),["audio","video"].includes(M)&&((_=P).rr_mediaState=b.paused?"paused":"played",_.rr_mediaCurrentTime=b.currentTime,_.rr_mediaPlaybackRate=b.playbackRate,_.rr_mediaMuted=b.muted,_.rr_mediaLoop=b.loop,_.rr_mediaVolume=b.volume),A||(b.scrollLeft&&(P.rr_scrollLeft=b.scrollLeft),b.scrollTop&&(P.rr_scrollTop=b.scrollTop)),T&&(x=(C=b.getBoundingClientRect()).width,I=C.height,P={"class":P["class"],rr_width:"".concat(x,"px"),rr_height:"".concat(I,"px")}),"iframe"!==M||O(P.src)||(b.contentDocument||(P.rr_src=P.src),delete P.src);try{customElements.get(M)&&(p=!0)}catch(ie){}return{type:Vy.Element,tagName:M,attributes:P,childNodes:[],isSVG:Boolean("svg"===b.tagName||b.ownerSVGElement)||void 0,needBlock:T,rootId:z,isCustom:p};case e.TEXT_NODE:return g=e,_=(R={doc:n,needsMask:o,maskTextFn:l,rootId:h,cssCaptured:B}).needsMask,A=R.maskTextFn,C=R.rootId,x=R.cssCaptured,I=(I=Qy.parentNode(g))&&I.tagName,O="",T="STYLE"===I||void 0,(I="SCRIPT"===I||void 0)?O="SCRIPT_PLACEHOLDER":x||(O=Qy.textContent(g),T&&(O=O&&p0(O,I0(R.doc)))),!T&&!I&&O&&_&&(O=A?A(O,Qy.parentElement(g)):O.replace(/[\S]/g,"*")),{type:Vy.Text,textContent:O||"",rootId:C};case e.CDATA_SECTION_NODE:return{type:Vy.CDATA,textContent:"",rootId:h};case e.COMMENT_NODE:return{type:Vy.Comment,textContent:Qy.textContent(e)||"",rootId:h};default:return!1}}function T0(e){return null==e?"":e.toLowerCase()}function M0(e){return!0===e||"all"===e?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===e,headMetaDescKeywords:"all"===e,headTitleMutations:"all"===e}:e||{}}function P0(t,e){var n=e.doc,r=e.mirror,i=e.blockClass,o=e.blockSelector,a=e.maskTextClass,s=e.maskTextSelector,u=e.skipChild,u=void 0!==u&&u,l=e.inlineStylesheet,c=void 0===l||l,l=e.maskInputOptions,d=void 0===l?{}:l,f=e.maskTextFn,h=e.maskInputFn,p=e.slimDOMOptions,l=e.dataURLOptions,g=void 0===l?{}:l,l=e.inlineImages,m=void 0!==l&&l,l=e.recordCanvas,v=void 0!==l&&l,y=e.onSerialize,w=e.onIframeLoad,l=e.iframeLoadTimeout,b=void 0===l?5e3:l,k=e.onStylesheetLoad,l=e.stylesheetLoadTimeout,S=void 0===l?5e3:l,l=e.keepIframeSrcFn,_=void 0===l?function(){return!1}:l,l=e.newlyAddedElement,l=void 0!==l&&l,C=e.cssCaptured,C=void 0!==C&&C,I=e.needsMask,e=e.preserveWhiteSpace,E=void 0===e||e,I=I||O0(t,a,s,void 0===I),e=A0(t,{doc:n,mirror:r,blockClass:i,blockSelector:o,needsMask:I,inlineStylesheet:c,maskInputOptions:d,maskTextFn:f,maskInputFn:h,dataURLOptions:g,inlineImages:m,recordCanvas:v,keepIframeSrcFn:_,newlyAddedElement:l,cssCaptured:C});if(!e)return console.warn(t,"not serialized"),null;var l=r.hasNode(t)?r.getId(t):function(e,t){if(t.comment&&e.type===Vy.Comment)return 1;if(e.type===Vy.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel&&"script"===e.attributes.as||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===l0(e.attributes.href)))return 1;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(T0(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===T0(e.attributes.name)||"icon"===T0(e.attributes.rel)||"apple-touch-icon"===T0(e.attributes.rel)||"shortcut icon"===T0(e.attributes.rel))))return 1;if("meta"===e.tagName){if(t.headMetaDescKeywords&&T0(e.attributes.name).match(/^description|keywords$/))return 1;if(t.headMetaSocial&&(T0(e.attributes.property).match(/^(og|twitter|fb):/)||T0(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===T0(e.attributes.name)))return 1;if(t.headMetaRobots&&("robots"===T0(e.attributes.name)||"googlebot"===T0(e.attributes.name)||"bingbot"===T0(e.attributes.name)))return 1;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return 1;if(t.headMetaAuthorship&&("author"===T0(e.attributes.name)||"generator"===T0(e.attributes.name)||"framework"===T0(e.attributes.name)||"publisher"===T0(e.attributes.name)||"progid"===T0(e.attributes.name)||T0(e.attributes.property).match(/^article:/)||T0(e.attributes.property).match(/^product:/)))return 1;if(t.headMetaVerification&&("google-site-verification"===T0(e.attributes.name)||"yandex-verification"===T0(e.attributes.name)||"csrf-token"===T0(e.attributes.name)||"p:domain_verify"===T0(e.attributes.name)||"verify-v1"===T0(e.attributes.name)||"verification"===T0(e.attributes.name)||"shopify-checkout-api-token"===T0(e.attributes.name)))return 1}}}(e,p)||!E&&e.type===Vy.Text&&!e.textContent.replace(/^\s+|\s+$/gm,"").length?-2:y0++,R=Object.assign(e,{id:l});if(r.add(t,R),-2===l)return null;y&&y(t);C=!u;if(R.type===Vy.Element&&(C=C&&!R.needBlock,delete R.needBlock,e=Qy.shadowRoot(t))&&n0(e)&&(R.isShadowHost=!0),(R.type===Vy.Document||R.type===Vy.Element)&&C){p.headWhitespace&&R.type===Vy.Element&&"head"===R.tagName&&(E=!1);var x={doc:n,mirror:r,blockClass:i,blockSelector:o,needsMask:I,maskTextClass:a,maskTextSelector:s,skipChild:u,inlineStylesheet:c,maskInputOptions:d,maskTextFn:f,maskInputFn:h,slimDOMOptions:p,dataURLOptions:g,inlineImages:m,recordCanvas:v,preserveWhiteSpace:E,onSerialize:y,onIframeLoad:w,iframeLoadTimeout:b,onStylesheetLoad:k,stylesheetLoadTimeout:S,keepIframeSrcFn:_,cssCaptured:!1};if(R.type!==Vy.Element||"textarea"!==R.tagName||void 0===R.attributes.value){R.type===Vy.Element&&void 0!==R.attributes._cssText&&"string"==typeof R.attributes._cssText&&(x.cssCaptured=!0);for(var O=0,A=Array.from(Qy.childNodes(t));O<A.length;O++){var T=P0(A[O],x);T&&R.childNodes.push(T)}}var M=null;if(e0(t)&&(M=Qy.shadowRoot(t)))for(var P=0,N=Array.from(Qy.childNodes(M));P<N.length;P++){var L=P0(N[P],x);L&&(n0(M)&&(L.isShadow=!0),R.childNodes.push(L))}}l=Qy.parentNode(t);return l&&t0(l)&&n0(l)&&(R.isShadow=!0),R.type===Vy.Element&&"iframe"===R.tagName&&function(e,t,n){var r=e.contentWindow;if(r){var i,o=!1;try{i=r.document.readyState}catch($){return}if("complete"===i){if("about:blank"!==r.location.href||"about:blank"===e.src||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}else{var a=setTimeout(function(){o||(t(),o=!0)},n);e.addEventListener("load",function(){clearTimeout(a),o=!0,t()})}}}(t,function(){var e=t.contentDocument;e&&w&&(e=P0(e,{doc:e,mirror:r,blockClass:i,blockSelector:o,needsMask:I,maskTextClass:a,maskTextSelector:s,skipChild:!1,inlineStylesheet:c,maskInputOptions:d,maskTextFn:f,maskInputFn:h,slimDOMOptions:p,dataURLOptions:g,inlineImages:m,recordCanvas:v,preserveWhiteSpace:E,onSerialize:y,onIframeLoad:w,iframeLoadTimeout:b,onStylesheetLoad:k,stylesheetLoadTimeout:S,keepIframeSrcFn:_}))&&w(t,e)},b),R.type===Vy.Element&&"link"===R.tagName&&"string"==typeof R.attributes.rel&&("stylesheet"===R.attributes.rel||"preload"===R.attributes.rel&&"string"==typeof R.attributes.href&&"css"===l0(R.attributes.href))&&function(e,t,n){var r,i,o=!1;try{r=e.sheet}catch($){return}r||(i=setTimeout(function(){o||(t(),o=!0)},n),e.addEventListener("load",function(){clearTimeout(i),o=!0,t()}))}(t,function(){var e;k&&(e=P0(t,{doc:n,mirror:r,blockClass:i,blockSelector:o,needsMask:I,maskTextClass:a,maskTextSelector:s,skipChild:!1,inlineStylesheet:c,maskInputOptions:d,maskTextFn:f,maskInputFn:h,slimDOMOptions:p,dataURLOptions:g,inlineImages:m,recordCanvas:v,preserveWhiteSpace:E,onSerialize:y,onIframeLoad:w,iframeLoadTimeout:b,onStylesheetLoad:k,stylesheetLoadTimeout:S,keepIframeSrcFn:_}))&&k(t,e)},S),R}var N0,L0,D0,e={exports:{}},F0=String,g=function(){return{isColorSupported:!1,reset:F0,bold:F0,dim:F0,italic:F0,underline:F0,inverse:F0,hidden:F0,strikethrough:F0,black:F0,red:F0,green:F0,yellow:F0,blue:F0,magenta:F0,cyan:F0,white:F0,gray:F0,bgBlack:F0,bgRed:F0,bgGreen:F0,bgYellow:F0,bgBlue:F0,bgMagenta:F0,bgCyan:F0,bgWhite:F0}},r=(e.exports=g(),e.exports.createColors=g,e.exports),b=(N0=Object.freeze(Object.defineProperty({__proto__:null,"default":{}},Symbol.toStringTag,{value:"Module"}))).__esModule?N0:("function"==typeof(L0=N0["default"])?(D0=function N0(){return this instanceof N0?Reflect.construct(L0,arguments,this.constructor):L0.apply(this,arguments)}).prototype=L0.prototype:D0={},Object.defineProperty(D0,"__esModule",{value:!0}),Object.keys(N0).forEach(function(e){var t=Object.getOwnPropertyDescriptor(N0,e);Object.defineProperty(D0,e,t.get?t:{enumerable:!0,get:function(){return N0[e]}})}),D0),U0=r,B0=b,tr=(Ue=K(Error),U(z0,Ue),f(z0,[{key:"setMessage",value:function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file||"<css input>","undefined"!=typeof this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}},{key:"showSourceCode",value:function(e){var r=this;if(!this.source)return"";var t=this.source;null==e&&(e=U0.isColorSupported);var n,i,o,a,s,t=(t=B0&&e?B0(t):t).split(/\r?\n/),u=Math.max(this.line-3,0),l=Math.min(this.line+2,t.length),c=String(l).length;return e?(e=U0.createColors(!0),n=e.bold,i=e.gray,o=e.red,a=function(e){return n(o(e))},s=function(e){return i(e)}):a=s=function(e){return e},t.slice(u,l).map(function(e,t){var t=u+1+t,n=" "+(" "+t).slice(-c)+" | ";return t===r.line?(t=s(n.replace(/\d/g," "))+e.slice(0,r.column-1).replace(/[^\t]/g," "),a(">")+s(n)+e+"\n "+t+a("^")):" "+s(n)+e}).join("\n")}},{key:"toString",value:function(){var e=(e=this.showSourceCode())&&"\n\n"+e+"\n";return this.name+": "+this.message+e}}])),ct=tr;function z0(e,t,n,r,i,o){var a;return l(this,z0),(a=d(this,z0,[e])).name="CssSyntaxError",a.reason=e,i&&(a.file=i),r&&(a.source=r),o&&(a.plugin=o),void 0!==t&&void 0!==n&&("number"==typeof t?(a.line=t,a.column=n):(a.line=t.line,a.column=t.column,a.endLine=n.line,a.endColumn=n.column)),a.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(a,z0),a}tr["default"]=tr;var a={},j0=(a.isClean=Symbol("isClean"),a.my=Symbol("my"),{after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1}),De=f(function u(e){l(this,u),this.builder=e},[{key:"atrule",value:function(e,t){var n="@"+e.name,r=e.params?this.rawValue(e,"params"):"";"undefined"!=typeof e.raws.afterName?n+=e.raws.afterName:r&&(n+=" "),e.nodes?this.block(e,n+r):(t=(e.raws.between||"")+(t?";":""),this.builder(n+r+t,e))}},{key:"beforeAfter",value:function(e,t){for(var n="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose"),r=e.parent,i=0;r&&"root"!==r.type;)i+=1,r=r.parent;if(n.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var a=0;a<i;a++)n+=o}return n}},{key:"block",value:function(e,t){var n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),(t=e.nodes&&e.nodes.length?(this.body(e),this.raw(e,"after")):this.raw(e,"after","emptyBody"))&&this.builder(t),this.builder("}",e,"end")}},{key:"body",value:function(e){for(var t=e.nodes.length-1;0<t&&"comment"===e.nodes[t].type;)--t;for(var n=this.raw(e,"semicolon"),r=0;r<e.nodes.length;r++){var i=e.nodes[r],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==r||n)}}},{key:"comment",value:function(e){var t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)}},{key:"decl",value:function(e,t){var n=this.raw(e,"between","colon"),n=e.prop+n+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)}},{key:"document",value:function(e){this.body(e)}},{key:"raw",value:function(e,t,n){var r;if(t&&void 0!==(r=e.raws[t]))return r;var i,o=e.parent;if("before"===(n=n||t)){if(!o||"root"===o.type&&o.first===e)return"";if(o&&"document"===o.type)return""}return o?((o=e.root()).rawCache||(o.rawCache={}),"undefined"!=typeof o.rawCache[n]?o.rawCache[n]:"before"===n||"after"===n?this.beforeAfter(e,n):(this[i="raw"+((i=n)[0].toUpperCase()+i.slice(1))]?r=this[i](o,e):o.walk(function(e){if(void 0!==(r=e.raws[t]))return!1}),void 0===r&&(r=j0[n]),o.rawCache[n]=r)):j0[n]}},{key:"rawBeforeClose",value:function(e){var t;return e.walk(function(e){if(e.nodes&&0<e.nodes.length&&"undefined"!=typeof e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t=t&&t.replace(/\S/g,"")}},{key:"rawBeforeComment",value:function(e,t){var n;return e.walkComments(function(e){if("undefined"!=typeof e.raws.before)return(n=e.raws.before).includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),n=void 0===n?this.raw(t,null,"beforeDecl"):n&&n.replace(/\S/g,"")}},{key:"rawBeforeDecl",value:function(e,t){var n;return e.walkDecls(function(e){if("undefined"!=typeof e.raws.before)return(n=e.raws.before).includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),n=void 0===n?this.raw(t,null,"beforeRule"):n&&n.replace(/\S/g,"")}},{key:"rawBeforeOpen",value:function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t}},{key:"rawBeforeRule",value:function(t){var n;return t.walk(function(e){if(e.nodes&&(e.parent!==t||t.first!==e)&&"undefined"!=typeof e.raws.before)return(n=e.raws.before).includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),n=n&&n.replace(/\S/g,"")}},{key:"rawColon",value:function(e){var t;return e.walkDecls(function(e){if("undefined"!=typeof e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t}},{key:"rawEmptyBody",value:function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t}},{key:"rawIndent",value:function(n){return n.raws.indent||(n.walk(function(e){var t=e.parent;if(t&&t!==n&&t.parent&&t.parent===n&&"undefined"!=typeof e.raws.before)return t=e.raws.before.split("\n"),r=(r=t[t.length-1]).replace(/\S/g,""),!1}),r);var r}},{key:"rawSemicolon",value:function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t}},{key:"rawValue",value:function(e,t){var n=e[t],t=e.raws[t];return t&&t.value===n?t.raw:n}},{key:"root",value:function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}},{key:"rule",value:function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}},{key:"stringify",value:function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}}]),n=De,W0=(De["default"]=De,n);function H0(e,t){new W0(t).stringify(e)}var t=H0,V0=(H0["default"]=H0,a.isClean),Z0=a.my,G0=ct,Y0=n,J0=t;s=f(function u(){var e,t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{};for(e in l(this,u),this.raws={},this[V0]=!1,this[Z0]=!0,t)if("nodes"===e){this.nodes=[];var n,r=Ae(t[e]);try{for(r.s();!(n=r.n()).done;){var i=n.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}catch(Me){r.e(Me)}finally{r.f()}}else this[e]=t[e]},[{key:"addToError",value:function(e){var t;return e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)&&(t=this.source,e.stack=e.stack.replace(/\n\s{4}at /,"$&".concat(t.input.from,":").concat(t.start.line,":").concat(t.start.column,"$&"))),e}},{key:"after",value:function(e){return this.parent.insertAfter(this,e),this}},{key:"assign",value:function(){var e,t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{};for(e in t)this[e]=t[e];return this}},{key:"before",value:function(e){return this.parent.insertBefore(this,e),this}},{key:"cleanRaws",value:function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}},{key:"clone",value:function(){var e,t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{},n=function a(e,t){var n,r,i,o=new e.constructor;for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n&&(i=v(r=e[n]),"parent"===n&&"object"===i?t&&(o[n]=t):"source"===n?o[n]=r:Array.isArray(r)?o[n]=r.map(function(e){return a(e,o)}):("object"===i&&null!==r&&(r=a(r)),o[n]=r));return o}(this);for(e in t)n[e]=t[e];return n}},{key:"cloneAfter",value:function(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{},e=this.clone(e);return this.parent.insertAfter(this,e),e}},{key:"cloneBefore",value:function(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{},e=this.clone(e);return this.parent.insertBefore(this,e),e}},{key:"error",value:function(e){var t,n,r=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};return this.source?(t=(n=this.rangeBy(r)).end,this.source.input.error(e,{column:(n=n.start).column,line:n.line},{column:t.column,line:t.line},r)):new G0(e)}},{key:"getProxyProcessor",value:function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,n){return e[t]!==n&&(e[t]=n,"prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0}}}},{key:"markDirty",value:function(){if(this[V0]){this[V0]=!1;for(var e=this;e=e.parent;)e[V0]=!1}}},{key:"next",value:function(){var e;if(this.parent)return e=this.parent.index(this),this.parent.nodes[e+1]}},{key:"positionBy",value:function(e,t){var n=this.source.start;return e.index?n=this.positionInside(e.index,t):e.word&&-1!==(e=(t=this.toString()).indexOf(e.word))&&(n=this.positionInside(e,t)),n}},{key:"positionInside",value:function(e,t){for(var n=t||this.toString(),r=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===n[o]?i+=r=1:r+=1;return{column:r,line:i}}},{key:"prev",value:function(){var e;if(this.parent)return e=this.parent.index(this),this.parent.nodes[e-1]}},{key:"rangeBy",value:function(e){var t,n,r={column:this.source.start.column,line:this.source.start.line},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};return e.word?-1!==(n=(t=this.toString()).indexOf(e.word))&&(r=this.positionInside(n,t),i=this.positionInside(n+e.word.length,t)):(e.start?r={column:e.start.column,line:e.start.line}:e.index&&(r=this.positionInside(e.index)),e.end?i={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?i=this.positionInside(e.endIndex):e.index&&(i=this.positionInside(e.index+1))),{end:i=i.line<r.line||i.line===r.line&&i.column<=r.column?{column:r.column+1,line:r.line}:i,start:r}}},{key:"raw",value:function(e,t){return(new Y0).raw(this,e,t)}},{key:"remove",value:function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}},{key:"replaceWith",value:function(){if(this.parent){for(var e=this,t=!1,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];for(var o=0,a=r;o<a.length;o++){var s=a[o];s===this?t=!0:t?(this.parent.insertAfter(e,s),e=s):this.parent.insertBefore(e,s)}t||this.remove()}return this}},{key:"root",value:function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}},{key:"toJSON",value:function(e,t){var n,r,i,o={},a=null==t,s=(t=t||new Map,0);for(n in this)Object.prototype.hasOwnProperty.call(this,n)&&"parent"!==n&&"proxyCache"!==n&&(r=this[n],Array.isArray(r)?o[n]=r.map(function(e){return"object"===v(e)&&e.toJSON?e.toJSON(null,t):e}):"object"===v(r)&&r.toJSON?o[n]=r.toJSON(null,t):"source"===n?(null==(i=t.get(r.input))&&(i=s,t.set(r.input,s),s++),o[n]={end:r.end,inputId:i,start:r.start}):o[n]=r);return a&&(o.inputs=Le(t.keys()).map(function(e){return e.toJSON()})),o}},{key:"toProxy",value:function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}},{key:"toString",value:function(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:J0,t=(e.stringify&&(e=e.stringify),"");return e(this,function(e){t+=e}),t}},{key:"warn",value:function(e,t,n){var r,i={node:this};for(r in n)i[r]=n[r];return e.warn(t,i)}},{key:"proxyOf",get:function(){return this}}]),Mr=s,s["default"]=s,U(K0,Mr),w=f(K0,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),g=w;function K0(e){return l(this,K0),e&&"undefined"!=typeof e.value&&"string"!=typeof e.value&&(e=Te(Te({},e),{},{value:String(e.value)})),(e=d(this,K0,[e])).type="decl",e}w["default"]=w;var q0=b.SourceMapConsumer,X0=b.SourceMapGenerator,$0=b.existsSync,Q0=b.readFileSync,ew=b.dirname,tw=b.join,e=f(function u(e,t){l(this,u),!1!==t.map&&(this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:"),e=t.map?t.map.prev:void 0,e=this.loadMap(t.from,e),!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=ew(this.mapFile)),e)&&(this.text=e)},[{key:"consumer",value:function(){return this.consumerCache||(this.consumerCache=new q0(this.text)),this.consumerCache}},{key:"decodeInline",value:function(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var t=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+t)}},{key:"getAnnotationURL",value:function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}},{key:"isMap",value:function(e){return"object"===v(e)&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}},{key:"loadAnnotation",value:function(e){var t,n=e.match(/\/\*\s*# sourceMappingURL=/gm);n&&(n=e.lastIndexOf(n.pop()),t=e.indexOf("*/",n),-1<n)&&-1<t&&(this.annotation=this.getAnnotationURL(e.substring(n,t)))}},{key:"loadFile",value:function(e){if(this.root=ew(e),$0(e))return this.mapFile=e,Q0(e,"utf-8").toString().trim()}},{key:"loadMap",value:function(e,t){if(!1===t)return!1;if(!t)return this.inline?this.decodeInline(this.annotation):this.annotation?(n=this.annotation,e&&(n=tw(ew(e),n)),this.loadFile(n)):void 0;if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof q0)return X0.fromSourceMap(t).toString();if(t instanceof X0)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var n=t(e);if(n){e=this.loadFile(n);if(e)return e;throw new Error("Unable to load previous source map: "+n.toString())}}},{key:"startWith",value:function(e,t){return!!e&&e.substr(0,t.length)===t}},{key:"withContent",value:function(){return!!(this.consumer().sourcesContent&&0<this.consumer().sourcesContent.length)}}]),r=e,Ue=(e["default"]=e,b.SourceMapConsumer),tr=b.SourceMapGenerator,nw=b.fileURLToPath,rw=b.pathToFileURL,iw=b.isAbsolute,ow=b.resolve,aw=function(){for(var e="",t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:21;t--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return e},De=b,sw=ct,uw=r,lw=Symbol("fromOffsetCache"),cw=Boolean(Ue&&tr),dw=Boolean(ow&&iw),n=f(function u(e){var t=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};if(l(this,u),null==e||"object"===v(e)&&!e.toString)throw new Error("PostCSS received ".concat(e," instead of CSS string"));this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!dw||/^\w+:\/\//.test(t.from)||iw(t.from)?this.file=t.from:this.file=ow(t.from)),dw&&cw&&(e=new uw(this.css,t)).text&&(t=(this.map=e).consumer().file,!this.file)&&t&&(this.file=this.mapResolve(t)),this.file||(this.id="<input css "+aw(6)+">"),this.map&&(this.map.file=this.from)},[{key:"error",value:function(e,t,n){var r,i,o,a=3<arguments.length&&arguments[3]!==undefined?arguments[3]:{},s=(t&&"object"===v(t)?(s=n,n="number"==typeof(i=t).offset?(t=(o=this.fromOffset(i.offset)).line,o.col):(t=i.line,i.column),i="number"==typeof s.offset?(r=(o=this.fromOffset(s.offset)).line,o.col):(r=s.line,s.column)):n||(t=(o=this.fromOffset(t)).line,n=o.col),this.origin(t,n,r,i));return(o=s?new sw(e,void 0===s.endLine?s.line:{column:s.column,line:s.line},void 0===s.endLine?s.column:{column:s.endColumn,line:s.endLine},s.source,s.file,a.plugin):new sw(e,void 0===r?t:{column:n,line:t},void 0===r?n:{column:i,line:r},this.css,this.file,a.plugin)).input={column:n,endColumn:i,endLine:r,line:t,source:this.css},this.file&&(rw&&(o.input.url=rw(this.file).toString()),o.input.file=this.file),o}},{key:"fromOffset",value:function(e){if(this[lw])n=this[lw];else{for(var t=this.css.split("\n"),n=new Array(t.length),r=0,i=0,o=t.length;i<o;i++)n[i]=r,r+=t[i].length+1;this[lw]=n}var a=0;if(e>=n[n.length-1])a=n.length-1;else for(var s,u=n.length-2;a<u;)if(e<n[s=a+(u-a>>1)])u=s-1;else{if(!(e>=n[s+1])){a=s;break}a=s+1}return{col:e-n[a]+1,line:a+1}}},{key:"mapResolve",value:function(e){return/^\w+:\/\//.test(e)?e:ow(this.map.consumer().sourceRoot||this.map.root||".",e)}},{key:"origin",value:function(e,t,n,r){if(!this.map)return!1;var i,o=this.map.consumer(),t=o.originalPositionFor({column:t,line:e});if(!t.source)return!1;"number"==typeof n&&(i=o.originalPositionFor({column:r,line:n}));e=iw(t.source)?rw(t.source):new URL(t.source,this.map.consumer().sourceRoot||rw(this.map.mapFile)),r={column:t.column,endColumn:i&&i.column,endLine:i&&i.line,line:t.line,url:e.toString()};if("file:"===e.protocol){if(!nw)throw new Error("file: protocol is not available in this PostCSS build");r.file=nw(e)}n=o.sourceContentFor(t.source);return n&&(r.source=n),r}},{key:"toJSON",value:function(){for(var e={},t=0,n=["hasBOM","css","file","id"];t<n.length;t++){var r=n[t];null!=this[r]&&(e[r]=this[r])}return this.map&&(e.map=Te({},this.map),e.map.consumerCache)&&(e.map.consumerCache=void 0),e}},{key:"from",get:function(){return this.file||this.id}}]),s=n,fw=(n["default"]=n,De&&De.registerInput&&De.registerInput(n),b.SourceMapConsumer),hw=b.SourceMapGenerator,pw=b.dirname,gw=b.relative,mw=b.resolve,vw=b.sep,yw=b.pathToFileURL,ww=s,bw=Boolean(fw&&hw),kw=Boolean(pw&&mw&&gw&&vw),w=f(function u(e,t,n,r){l(this,u),this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map},[{key:"addAnnotation",value:function(){var e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map",t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}},{key:"applyPrevMaps",value:function(){var e,t=Ae(this.previous());try{for(t.s();!(e=t.n()).done;){var n=e.value,r=this.toUrl(this.path(n.file)),i=n.root||pw(n.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new fw(n.text)).sourcesContent&&(o.sourcesContent=null):o=n.consumer(),this.map.applySourceMap(o,r,this.toUrl(this.path(i)))}}catch(Me){t.e(Me)}finally{t.f()}}},{key:"clearAnnotation",value:function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;0<=t;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}},{key:"generate",value:function(){var t;return this.clearAnnotation(),kw&&bw&&this.isMap()?this.generateMap():(t="",this.stringify(this.root,function(e){t+=e}),[t])}},{key:"generateMap",value:function(){var e;return this.root?this.generateString():1===this.previous().length?((e=this.previous()[0].consumer()).file=this.outputFile(),this.map=hw.fromSourceMap(e,{ignoreInvalidMapping:!0})):(this.map=new hw({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"})),this.isSourcesContent()&&this.setSourcesContent(),this.root&&0<this.previous().length&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}},{key:"generateString",value:function(){var r=this;this.css="",this.map=new hw({file:this.outputFile(),ignoreInvalidMapping:!0});var i,o=1,a=1,s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(e,t,n){r.css+=e,t&&"end"!==n&&(s.generated.line=o,s.generated.column=a-1,t.source&&t.source.start?(s.source=r.sourcePath(t),s.original.line=t.source.start.line,s.original.column=t.source.start.column-1):(s.source="<no source>",s.original.line=1,s.original.column=0),r.map.addMapping(s)),(i=e.match(/\n/g))?(o+=i.length,i=e.lastIndexOf("\n"),a=e.length-i):a+=e.length,t&&"start"!==n&&(e=t.parent||{raws:{}},"decl"!==t.type&&("atrule"!==t.type||t.nodes)||t!==e.last||e.raws.semicolon)&&(t.source&&t.source.end?(s.source=r.sourcePath(t),s.original.line=t.source.end.line,s.original.column=t.source.end.column-1,s.generated.line=o,s.generated.column=a-2):(s.source="<no source>",s.original.line=1,s.original.column=0,s.generated.line=o,s.generated.column=a-1),r.map.addMapping(s))})}},{key:"isAnnotation",value:function(){return!!this.isInline()||("undefined"!=typeof this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))}},{key:"isInline",value:function(){var e;return"undefined"!=typeof this.mapOpts.inline?this.mapOpts.inline:(void 0===(e=this.mapOpts.annotation)||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))}},{key:"isMap",value:function(){return"undefined"!=typeof this.opts.map?!!this.opts.map:0<this.previous().length}},{key:"isSourcesContent",value:function(){return"undefined"!=typeof this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})}},{key:"outputFile",value:function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}},{key:"path",value:function(e){var t;return this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e)?e:this.memoizedPaths.get(e)||(t=this.opts.to?pw(this.opts.to):".","string"==typeof this.mapOpts.annotation&&(t=pw(mw(t,this.mapOpts.annotation))),t=gw(t,e),this.memoizedPaths.set(e,t),t)}},{key:"previous",value:function(){var e,t=this;return this.previousMaps||(this.previousMaps=[],this.root?this.root.walk(function(e){e.source&&e.source.input.map&&(e=e.source.input.map,t.previousMaps.includes(e)||t.previousMaps.push(e))}):(e=new ww(this.originalCSS,this.opts)).map&&this.previousMaps.push(e.map)),this.previousMaps}},{key:"setSourcesContent",value:function(){var e,n=this,r={};this.root?this.root.walk(function(e){var t;e.source&&(t=e.source.input.from)&&!r[t]&&(r[t]=!0,t=n.usesFileUrls?n.toFileUrl(t):n.toUrl(n.path(t)),n.map.setSourceContent(t,e.source.input.css))}):this.css&&(e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>",this.map.setSourceContent(e,this.css))}},{key:"sourcePath",value:function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}},{key:"toBase64",value:function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}},{key:"toFileUrl",value:function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(yw)return t=yw(e).toString(),this.memoizedFileURLs.set(e,t),t;throw new Error("`map.absolute` option is not available in this PostCSS build")}},{key:"toUrl",value:function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===vw&&(e=e.replace(/\\/g,"/"));t=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,t),t}}]),e=(U(Sw,Mr),f(Sw)),Ue=e;function Sw(e){return l(this,Sw),(e=d(this,Sw,[e])).type="comment",e}e["default"]=e;var _w,Cw,Iw,Ew,Rw=a.isClean,xw=a.my,Ow=g,Aw=Ue,Tw=(U(Mw,Mr),f(Mw,[{key:"append",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=0,i=t;r<i.length;r++){var o,a=i[r],a=this.normalize(a,this.last),s=Ae(a);try{for(s.s();!(o=s.n()).done;){var u=o.value;this.proxyOf.nodes.push(u)}}catch(Me){s.e(Me)}finally{s.f()}}return this.markDirty(),this}},{key:"cleanRaws",value:function(e){if(G(Mw,"cleanRaws",this,3)([e]),this.nodes){var t,n=Ae(this.nodes);try{for(n.s();!(t=n.n()).done;)t.value.cleanRaws(e)}catch(Me){n.e(Me)}finally{n.f()}}}},{key:"each",value:function(e){if(this.proxyOf.nodes){for(var t,n,r=this.getIterator();this.indexes[r]<this.proxyOf.nodes.length&&(t=this.indexes[r],!1!==(n=e(this.proxyOf.nodes[t],t)));)this.indexes[r]+=1;return delete this.indexes[r],n}}},{key:"every",value:function(e){return this.nodes.every(e)}},{key:"getIterator",value:function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e}},{key:"getProxyProcessor",value:function(){return{get:function(r,o){return"proxyOf"===o?r:r[o]&&("each"===o||"string"==typeof o&&o.startsWith("walk")?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r[o].apply(r,Le(t.map(function(n){return"function"==typeof n?function(e,t){return n(e.toProxy(),t)}:n})))}:"every"===o||"some"===o?function(i){return r[o](function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return i.apply(void 0,[e.toProxy()].concat(n))})}:"root"===o?function(){return r.root().toProxy()}:"nodes"===o?r.nodes.map(function(e){return e.toProxy()}):"first"===o||"last"===o?r[o].toProxy():r[o])},set:function(e,t,n){return e[t]!==n&&(e[t]=n,"name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0}}}},{key:"index",value:function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}},{key:"insertAfter",value:function(e,t){var n,r,i,o=this.index(e),a=this.normalize(t,this.proxyOf.nodes[o]).reverse(),o=this.index(e),s=Ae(a);try{for(s.s();!(n=s.n()).done;){var u=n.value;this.proxyOf.nodes.splice(o+1,0,u)}}catch(Me){s.e(Me)}finally{s.f()}for(i in this.indexes)o<(r=this.indexes[i])&&(this.indexes[i]=r+a.length);return this.markDirty(),this}},{key:"insertBefore",value:function(e,t){var n,r,i,o=this.index(e),a=this.normalize(t,this.proxyOf.nodes[o],0===o&&"prepend").reverse(),o=this.index(e),s=Ae(a);try{for(s.s();!(n=s.n()).done;){var u=n.value;this.proxyOf.nodes.splice(o,0,u)}}catch(Me){s.e(Me)}finally{s.f()}for(i in this.indexes)o<=(r=this.indexes[i])&&(this.indexes[i]=r+a.length);return this.markDirty(),this}},{key:"normalize",value:function(e,t){var n=this;if("string"==typeof e)e=function F(e){return e.map(function(e){return e.nodes&&(e.nodes=F(e.nodes)),delete e.source,e})}(_w(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){var r,i=Ae(e=e.slice(0));try{for(i.s();!(r=i.n()).done;){var o=r.value;o.parent&&o.parent.removeChild(o,"ignore")}}catch(Me){i.e(Me)}finally{i.f()}}else if("root"===e.type&&"document"!==this.type){var a,s=Ae(e=e.nodes.slice(0));try{for(s.s();!(a=s.n()).done;){var u=a.value;u.parent&&u.parent.removeChild(u,"ignore")}}catch(Me){s.e(Me)}finally{s.f()}}else if(e.type)e=[e];else if(e.prop){if("undefined"==typeof e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new Ow(e)]}else if(e.selector)e=[new Cw(e)];else if(e.name)e=[new Iw(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new Aw(e)]}return e.map(function(e){return e[xw]||Mw.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[Rw]&&function r(e){if(e[Rw]=!1,e.proxyOf.nodes){var t,n=Ae(e.proxyOf.nodes);try{for(n.s();!(t=n.n()).done;)r(t.value)}catch(Me){n.e(Me)}finally{n.f()}}}(e),"undefined"==typeof e.raws.before&&t&&"undefined"!=typeof t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e})}},{key:"prepend",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=Ae(t=t.reverse());try{for(i.s();!(r=i.n()).done;){var o,a,s=r.value,u=this.normalize(s,this.first,"prepend").reverse(),l=Ae(u);try{for(l.s();!(o=l.n()).done;){var c=o.value;this.proxyOf.nodes.unshift(c)}}catch(Me){l.e(Me)}finally{l.f()}for(a in this.indexes)this.indexes[a]=this.indexes[a]+u.length}}catch(Me){i.e(Me)}finally{i.f()}return this.markDirty(),this}},{key:"push",value:function(e){return(e.parent=this).proxyOf.nodes.push(e),this}},{key:"removeAll",value:function(){var e,t=Ae(this.proxyOf.nodes);try{for(t.s();!(e=t.n()).done;)e.value.parent=void 0}catch(Me){t.e(Me)}finally{t.f()}return this.proxyOf.nodes=[],this.markDirty(),this}},{key:"removeChild",value:function(e){var t,n;for(n in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[n])>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}},{key:"replaceValues",value:function(t,n,r){return r||(r=n,n={}),this.walkDecls(function(e){n.props&&!n.props.includes(e.prop)||n.fast&&!e.value.includes(n.fast)||(e.value=e.value.replace(t,r))}),this.markDirty(),this}},{key:"some",value:function(e){return this.nodes.some(e)}},{key:"walk",value:function(r){return this.each(function(e,t){var n;try{n=r(e,t)}catch(l){throw e.addToError(l)}return n=!1!==n&&e.walk?e.walk(r):n})}},{key:"walkAtRules",value:function(n,r){return r?n instanceof RegExp?this.walk(function(e,t){if("atrule"===e.type&&n.test(e.name))return r(e,t)}):this.walk(function(e,t){if("atrule"===e.type&&e.name===n)return r(e,t)}):(r=n,this.walk(function(e,t){if("atrule"===e.type)return r(e,t)}))}},{key:"walkComments",value:function(n){return this.walk(function(e,t){if("comment"===e.type)return n(e,t)})}},{key:"walkDecls",value:function(n,r){return r?n instanceof RegExp?this.walk(function(e,t){if("decl"===e.type&&n.test(e.prop))return r(e,t)}):this.walk(function(e,t){if("decl"===e.type&&e.prop===n)return r(e,t)}):(r=n,this.walk(function(e,t){if("decl"===e.type)return r(e,t)}))}},{key:"walkRules",value:function(n,r){return r?n instanceof RegExp?this.walk(function(e,t){if("rule"===e.type&&n.test(e.selector))return r(e,t)}):this.walk(function(e,t){if("rule"===e.type&&e.selector===n)return r(e,t)}):(r=n,this.walk(function(e,t){if("rule"===e.type)return r(e,t)}))}},{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]));function Mw(){return l(this,Mw),d(this,Mw,arguments)}Tw.registerParse=function(e){_w=e},Tw.registerRule=function(e){Cw=e},Tw.registerAtRule=function(e){Iw=e},Tw.registerRoot=function(e){Ew=e};tr=Tw;(Tw["default"]=Tw).rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,Iw.prototype):"rule"===e.type?Object.setPrototypeOf(e,Cw.prototype):"decl"===e.type?Object.setPrototypeOf(e,Ow.prototype):"comment"===e.type?Object.setPrototypeOf(e,Aw.prototype):"root"===e.type&&Object.setPrototypeOf(e,Ew.prototype),e[xw]=!0,e.nodes&&e.nodes.forEach(function(e){Tw.rebuild(e)})};U(Lw,tr);var Pw,Nw,n=f(Lw,[{key:"toResult",value:function(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{};return new Pw(new Nw,this,e).stringify()}}]);function Lw(e){return l(this,Lw),(e=d(this,Lw,[Te({type:"document"},e)])).nodes||(e.nodes=[]),e}n.registerLazyResult=function(e){Pw=e},n.registerProcessor=function(e){Nw=e};var De=n,Dw=(n["default"]=n,{}),b=function(e){Dw[e]||(Dw[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))},e=f(function u(e){var t,n=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};for(t in l(this,u),this.type="warning",this.text=e,n.node&&n.node.source&&(e=n.node.rangeBy(n),this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column),n)this[t]=n[t]},[{key:"toString",value:function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}]),n=e,Fw=(e["default"]=e,n),e=f(function u(e,t,n){l(this,u),this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0},[{key:"toString",value:function(){return this.css}},{key:"warn",value:function(e){var t=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{},e=(t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin),new Fw(e,t));return this.messages.push(e),e}},{key:"warnings",value:function(){return this.messages.filter(function(e){return"warning"===e.type})}},{key:"content",get:function(){return this.css}}]),Uw=e,Bw=(e["default"]=e,"'".charCodeAt(0)),zw='"'.charCodeAt(0),jw="\\".charCodeAt(0),Ww="/".charCodeAt(0),Hw="\n".charCodeAt(0),Vw=" ".charCodeAt(0),Zw="\f".charCodeAt(0),Gw="\t".charCodeAt(0),Yw="\r".charCodeAt(0),Jw="[".charCodeAt(0),Kw="]".charCodeAt(0),qw="(".charCodeAt(0),Xw=")".charCodeAt(0),$w="{".charCodeAt(0),Qw="}".charCodeAt(0),eb=";".charCodeAt(0),tb="*".charCodeAt(0),nb=":".charCodeAt(0),rb="@".charCodeAt(0),ib=/[\t\n\f\r "#'()/;[\\\]{}]/g,ob=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,ab=/.[\r\n"'(/\\]/,sb=/[\da-f]/i,e=tr,ub=(U(cb,e),f(cb,[{key:"append",value:function(){this.proxyOf.nodes||(this.nodes=[]);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return G(cb,"append",this,3)(t)}},{key:"prepend",value:function(){this.proxyOf.nodes||(this.nodes=[]);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return G(cb,"prepend",this,3)(t)}}])),lb=ub;function cb(e){return l(this,cb),(e=d(this,cb,[e])).type="atrule",e}ub["default"]=ub,e.registerAtRule(ub);var db,fb,ub=tr,e=(U(hb,ub),f(hb,[{key:"normalize",value:function(e,t,n){e=G(hb,"normalize",this,3)([e]);if(t)if("prepend"===n)1<this.nodes.length?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t){var r,i=Ae(e);try{for(i.s();!(r=i.n()).done;)r.value.raws.before=t.raws.before}catch(Me){i.e(Me)}finally{i.f()}}return e}},{key:"removeChild",value:function(e,t){var n=this.index(e);return!t&&0===n&&1<this.nodes.length&&(this.nodes[1].raws.before=this.nodes[n].raws.before),G(hb,"removeChild",this,3)([e])}},{key:"toResult",value:function(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{};return new db(new fb,this,e).stringify()}}]));function hb(e){return l(this,hb),(e=d(this,hb,[e])).type="root",e.nodes||(e.nodes=[]),e}e.registerLazyResult=function(e){db=e},e.registerProcessor=function(e){fb=e};var pb=e,gb=(ub.registerRoot(e["default"]=e),{comma:function(e){return gb.split(e,[","],!0)},space:function(e){return gb.split(e,[" ","\n","\t"])},split:function(e,t,n){var r,i=[],o="",a=!1,s=0,u=!1,l="",c=!1,d=Ae(e);try{for(d.s();!(r=d.n()).done;){var f=r.value;c?c=!1:"\\"===f?c=!0:u?f===l&&(u=!1):'"'===f||"'"===f?(u=!0,l=f):"("===f?s+=1:")"===f?0<s&&--s:0===s&&t.includes(f)&&(a=!0),a?(""!==o&&i.push(o.trim()),o="",a=!1):o+=f}}catch(Me){d.e(Me)}finally{d.f()}return!n&&""===o||i.push(o.trim()),i}}),e=gb,ub=(gb["default"]=gb,tr),mb=e,vb=(U(wb,ub),f(wb,[{key:"selectors",get:function(){return mb.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,t=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(t)}}])),yb=vb;function wb(e){return l(this,wb),(e=d(this,wb,[e])).type="rule",e.nodes||(e.nodes=[]),e}vb["default"]=vb,ub.registerRule(vb);var bb=g,kb=function(t){var r,i,o,a,s,u,l,c,d,e=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{},f=t.css.valueOf(),h=e.ignoreErrors,p=f.length,g=0,m=[],v=[];function y(e){throw t.error("Unclosed "+e,g)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&p<=g},nextToken:function(e){if(v.length)return v.pop();if(!(p<=g)){var t=!!e&&e.ignoreUnclosed;switch(r=f.charCodeAt(g)){case Hw:case Vw:case Gw:case Yw:case Zw:for(i=g;i+=1,(r=f.charCodeAt(i))===Vw||r===Hw||r===Gw||r===Yw||r===Zw;);d=["space",f.slice(g,i)],g=i-1;break;case Jw:case Kw:case $w:case Qw:case nb:case eb:case Xw:var n=String.fromCharCode(r);d=[n,n,g];break;case qw:if(l=m.length?m.pop()[1]:"",c=f.charCodeAt(g+1),"url"===l&&c!==Bw&&c!==zw&&c!==Vw&&c!==Hw&&c!==Gw&&c!==Zw&&c!==Yw){i=g;do{if(s=!1,-1===(i=f.indexOf(")",i+1))){if(h||t){i=g;break}y("bracket")}for(u=i;f.charCodeAt(u-1)===jw;)--u,s=!s}while(s);d=["brackets",f.slice(g,i+1),g,i],g=i}else i=f.indexOf(")",g+1),l=f.slice(g,i+1),-1===i||ab.test(l)?d=["(","(",g]:(d=["brackets",l,g,i],g=i);break;case Bw:case zw:o=r===Bw?"'":'"',i=g;do{if(s=!1,-1===(i=f.indexOf(o,i+1))){if(h||t){i=g+1;break}y("string")}for(u=i;f.charCodeAt(u-1)===jw;)--u,s=!s}while(s);d=["string",f.slice(g,i+1),g,i],g=i;break;case rb:ib.lastIndex=g+1,ib.test(f),i=0===ib.lastIndex?f.length-1:ib.lastIndex-2,d=["at-word",f.slice(g,i+1),g,i],g=i;break;case jw:for(i=g,a=!0;f.charCodeAt(i+1)===jw;)i+=1,a=!a;if(r=f.charCodeAt(i+1),a&&r!==Ww&&r!==Vw&&r!==Hw&&r!==Gw&&r!==Yw&&r!==Zw&&(i+=1,sb.test(f.charAt(i)))){for(;sb.test(f.charAt(i+1));)i+=1;f.charCodeAt(i+1)===Vw&&(i+=1)}d=["word",f.slice(g,i+1),g,i],g=i;break;default:g=(r===Ww&&f.charCodeAt(g+1)===tb?(0===(i=f.indexOf("*/",g+2)+1)&&(h||t?i=f.length:y("comment")),d=["comment",f.slice(g,i+1),g,i]):(ob.lastIndex=g+1,ob.test(f),i=0===ob.lastIndex?f.length-1:ob.lastIndex-2,d=["word",f.slice(g,i+1),g,i],m.push(d)),i)}return g++,d}},position:function(){return g}}},Sb=Ue,_b=lb,Cb=pb,Ib=yb,Eb={empty:!0,space:!0},vb=tr,Rb=f(function u(e){l(this,u),this.input=e,this.root=new Cb,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}},[{key:"atrule",value:function(e){var t,n,r,i=new _b;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,a=!1,s=[],u=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?u.push("("===t?")":"]"):"{"===t&&0<u.length?u.push("}"):t===u[u.length-1]&&u.pop(),0===u.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){a=!0;break}if("}"===t){if(0<s.length){for(n=s[r=s.length-1];n&&"space"===n[0];)n=s[--r];n&&(i.source.end=this.getPosition(n[3]||n[2]),i.source.end.offset++)}this.end(e);break}}if(s.push(e),this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(s),s.length?(i.raws.afterName=this.spacesAndCommentsFromStart(s),this.raw(i,"params",s),o&&(e=s[s.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),a&&(i.nodes=[],this.current=i)}},{key:"checkMissedSemicolon",value:function(e){var t=this.colon(e);if(!1!==t){for(var n,r=0,i=t-1;0<=i&&("space"===(n=e[i])[0]||2!==(r+=1));i--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}}},{key:"colon",value:function(e){var t,n,r,i,o=0,a=Ae(e.entries());try{for(a.s();!(i=a.n()).done;){var s=Ne(i.value,2),u=s[0];if("("===(n=(t=s[1])[0])&&(o+=1),")"===n&&--o,0===o&&":"===n){if(r){if("word"===r[0]&&"progid"===r[1])continue;return u}this.doubleColon(t)}r=t}}catch(Me){a.e(Me)}finally{a.f()}return!1}},{key:"comment",value:function(e){var t=new Sb,e=(this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,e[1].slice(2,-2));/^\s*$/.test(e)?(t.text="",t.raws.left=e,t.raws.right=""):(e=e.match(/^(\s*)([^]*\S)(\s*)$/),t.text=e[2],t.raws.left=e[1],t.raws.right=e[3])}},{key:"createTokenizer",value:function(){this.tokenizer=kb(this.input)}},{key:"decl",value:function(e,t){var n=new bb;this.init(n,e[0][2]);var r,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(i[3]||i[2]||function(e){for(var t=e.length-1;0<=t;t--){var n=e[t],n=n[3]||n[2];if(n)return n}}(e)),n.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;n.prop+=e.shift()[1]}for(n.raws.between="";e.length;){if(":"===(r=e.shift())[0]){n.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),n.raws.between+=r[1]}"_"!==n.prop[0]&&"*"!==n.prop[0]||(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));for(var a,s=[];e.length&&("space"===(a=e[0][0])||"comment"===a);)s.push(e.shift());this.precheckMissedSemicolon(e);for(var u=e.length-1;0<=u;u--){if("!important"===(r=e[u])[1].toLowerCase()){n.important=!0;var l=this.stringFrom(e,u);" !important"!==(l=this.spacesFromEnd(e)+l)&&(n.raws.important=l);break}if("important"===r[1].toLowerCase()){for(var c=e.slice(0),d="",f=u;0<f;f--){var h=c[f][0];if(0===d.trim().indexOf("!")&&"space"!==h)break;d=c.pop()[1]+d}0===d.trim().indexOf("!")&&(n.important=!0,n.raws.important=d,e=c)}if("space"!==r[0]&&"comment"!==r[0])break}e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]})&&(n.raws.between+=s.map(function(e){return e[1]}).join(""),s=[]),this.raw(n,"value",s.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}},{key:"doubleColon",value:function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}},{key:"emptyRule",value:function(e){var t=new Ib;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}},{key:"end",value:function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}},{key:"endFile",value:function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}},{key:"freeSemicolon",value:function(e){this.spaces+=e[1],this.current.nodes&&(e=this.current.nodes[this.current.nodes.length-1])&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}},{key:"getPosition",value:function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}},{key:"init",value:function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}},{key:"other",value:function(e){for(var t,n=!1,r=!1,i=null,o=[],a=e[1].startsWith("--"),s=[],u=e;u;){if(t=u[0],s.push(u),"("===t||"["===t)i=i||u,o.push("("===t?")":"]");else if(a&&r&&"{"===t)i=i||u,o.push("}");else if(0===o.length){if(";"===t){if(r)return void this.decl(s,a);break}if("{"===t)return void this.rule(s);if("}"===t){this.tokenizer.back(s.pop()),n=!0;break}":"===t&&(r=!0)}else t===o[o.length-1]&&(o.pop(),0===o.length)&&(i=null);u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(n=!0),0<o.length&&this.unclosedBracket(i),n&&r){if(!a)for(;s.length&&("space"===(u=s[s.length-1][0])||"comment"===u);)this.tokenizer.back(s.pop());this.decl(s,a)}else this.unknownWord(s)}},{key:"parse",value:function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}},{key:"precheckMissedSemicolon",value:function(){}},{key:"raw",value:function(e,t,n,r){for(var i,o,a,s,u=n.length,l="",c=!0,d=0;d<u;d+=1)"space"===(a=(i=n[d])[0])&&d===u-1&&!r||"comment"===a&&(a=n[d-1]?n[d-1][0]:"empty",o=n[d+1]?n[d+1][0]:"empty",Eb[a]||Eb[o]||","===l.slice(-1))?c=!1:l+=i[1];c||(s=n.reduce(function(e,t){return e+t[1]},""),e.raws[t]={raw:s,value:l}),e[t]=l}},{key:"rule",value:function(e){e.pop();var t=new Ib;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}},{key:"spacesAndCommentsFromEnd",value:function(e){for(var t,n="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)n=e.pop()[1]+n;return n}},{key:"spacesAndCommentsFromStart",value:function(e){for(var t,n="";e.length&&("space"===(t=e[0][0])||"comment"===t);)n+=e.shift()[1];return n}},{key:"spacesFromEnd",value:function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t}},{key:"stringFrom",value:function(e,t){for(var n="",r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n}},{key:"unclosedBlock",value:function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}},{key:"unclosedBracket",value:function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}},{key:"unexpectedClose",value:function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}},{key:"unknownWord",value:function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}},{key:"unnamedAtrule",value:function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}}]),xb=s;function Ob(e,t){e=new xb(e,t),e=new Rb(e);try{e.parse()}catch(l){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===l.name&&t&&t.from&&(/\.scss$/i.test(t.from)?l.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(t.from)?l.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(t.from)&&(l.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),l}return e.root}var ub=Ob,Ab=(vb.registerParse(Ob["default"]=Ob),a.isClean),Tb=a.my,Mb=w,Pb=t,Nb=tr,vb=De,Lb=b,Db=Uw,Fb=ub,a=pb,Ub={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Bb={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},zb={Once:!0,postcssPlugin:!0,prepare:!0};function jb(e){return"object"===v(e)&&"function"==typeof e.then}function Wb(e){var t=!1,n=Ub[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[n,n+"-"+t,0,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:e.append?[n,0,n+"Exit"]:[n,n+"Exit"]}function Hb(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:Wb(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function Vb(e){return e[Ab]=!1,e.nodes&&e.nodes.forEach(Vb),e}var Zb,Gb={},Yb=f(function I(e,t,n){var r,i=this;if(l(this,I),this.stringified=!1,this.processed=!1,"object"!==v(t)||null===t||"root"!==t.type&&"document"!==t.type)if(t instanceof I||t instanceof Db)r=Vb(t.root),t.map&&("undefined"==typeof n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=t.map);else{var o=Fb;n.syntax&&(o=n.syntax.parse),(o=n.parser?n.parser:o).parse&&(o=o.parse);try{r=o(t,n)}catch($){this.processed=!0,this.error=$}r&&!r[Tb]&&Nb.rebuild(r)}else r=Vb(t);this.result=new Db(e,r,n),this.helpers=Te(Te({},Gb),{},{postcss:Gb,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===v(e)&&e.prepare?Te(Te({},e),e.prepare(i.result)):e})},[{key:"async",value:function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}},{key:"catch",value:function(e){return this["async"]()["catch"](e)}},{key:"finally",value:function(e){return this["async"]().then(e,e)}},{key:"getAsyncError",value:function(){throw new Error("Use process(css).then(cb) to work with async plugins")}},{key:"handleError",value:function(e,t){var n,r,i,o,a,s=this.result.lastPlugin;try{t&&t.addToError(e),"CssSyntaxError"!==(this.error=e).name||e.plugin?s.postcssVersion&&"production"!==process.env.NODE_ENV&&(n=s.postcssPlugin,r=s.postcssVersion,i=this.result.processor.version,o=r.split("."),a=i.split("."),o[0]!==a[0]||parseInt(o[1])>parseInt(a[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+i+", but "+n+" uses "+r+". Perhaps this is the source of the error below."):(e.plugin=s.postcssPlugin,e.setMessage())}catch(Me){console&&console.error&&console.error(Me)}return e}},{key:"prepareVisitors",value:function(){var r=this;this.listeners={};var e,t=function(e,t,n){r.listeners[t]||(r.listeners[t]=[]),r.listeners[t].push([e,n])},n=Ae(this.plugins);try{for(n.s();!(e=n.n()).done;){var i=e.value;if("object"===v(i))for(var o in i){if(!Bb[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event ".concat(o," in ").concat(i.postcssPlugin,". Try to update PostCSS (").concat(this.processor.version," now)."));if(!zb[o])if("object"===v(i[o]))for(var a in i[o])t(i,"*"===a?o:o+"-"+a.toLowerCase(),i[o][a]);else"function"==typeof i[o]&&t(i,o,i[o])}}}catch(Me){n.e(Me)}finally{n.f()}this.hasListener=0<Object.keys(this.listeners).length}},{key:"runAsync",value:(Zb=P(W().m(function d(){var t,i,n,r,o,a,s,u,l,c=this;return W().w(function(e){for(;;)switch(e.p=e.n){case 0:this.plugin=0,t=0;case 1:if(t<this.plugins.length){if(s=this.plugins[t],jb(s=this.runOnRoot(s)))return e.p=2,e.n=3,s;e.n=5}else e.n=6;break;case 3:e.n=5;break;case 4:throw e.p=4,s=e.v,this.handleError(s);case 5:t++,e.n=1;break;case 6:if(this.prepareVisitors(),!this.hasListener){e.n=21;break}i=this.result.root;case 7:if(i[Ab]){e.n=14;break}i[Ab]=!0,n=[Hb(i)];case 8:if(0<n.length){if(jb(u=this.visitTick(n)))return e.p=9,e.n=10,u;e.n=12}else e.n=13;break;case 10:e.n=12;break;case 11:throw e.p=11,u=e.v,l=n[n.length-1].node,this.handleError(u,l);case 12:e.n=8;break;case 13:e.n=7;break;case 14:if(!this.listeners.OnceExit){e.n=21;break}r=Ae(this.listeners.OnceExit),e.p=15,a=W().m(function j(){var t,n,r;return W().w(function(e){for(;;)switch(e.p=e.n){case 0:if(n=Ne(o.value,2),r=n[0],t=n[1],c.result.lastPlugin=r,e.p=1,"document"===i.type)return n=i.nodes.map(function(e){return t(e,c.helpers)}),e.n=2,Promise.all(n);e.n=3;break;case 2:e.n=4;break;case 3:return e.n=4,t(i,c.helpers);case 4:e.n=6;break;case 5:throw e.p=5,r=e.v,c.handleError(r);case 6:return e.a(2)}},j,null,[[1,5]])}),r.s();case 16:if((o=r.n()).done){e.n=18;break}return e.d(V(a()),17);case 17:e.n=16;break;case 18:e.n=20;break;case 19:e.p=19,l=e.v,r.e(l);case 20:return e.p=20,r.f(),e.f(20);case 21:return this.processed=!0,e.a(2,this.stringify())}},d,this,[[15,19,20,21],[9,11],[2,4]])})),function(){return Zb.apply(this,arguments)})},{key:"runOnRoot",value:function(t){var e,n=this;this.result.lastPlugin=t;try{return"object"===v(t)&&t.Once?"document"===this.result.root.type?jb((e=this.result.root.nodes.map(function(e){return t.Once(e,n.helpers)}))[0])?Promise.all(e):e:t.Once(this.result.root,this.helpers):"function"==typeof t?t(this.result.root,this.result):void 0}catch($){throw this.handleError($)}}},{key:"stringify",value:function(){if(this.error)throw this.error;var e,t;return this.stringified||(this.stringified=!0,this.sync(),t=this.result.opts,e=Pb,t.syntax&&(e=t.syntax.stringify),(e=t.stringifier?t.stringifier:e).stringify&&(e=e.stringify),t=new Mb(e,this.result.root,this.result.opts).generate(),this.result.css=t[0],this.result.map=t[1]),this.result}},{key:"sync",value:function(){if(this.error)throw this.error;if(!this.processed){if(this.processed=!0,this.processing)throw this.getAsyncError();var e,t=Ae(this.plugins);try{for(t.s();!(e=t.n()).done;){var n=e.value;if(jb(this.runOnRoot(n)))throw this.getAsyncError()}}catch(Me){t.e(Me)}finally{t.f()}if(this.prepareVisitors(),this.hasListener){for(var r=this.result.root;!r[Ab];)r[Ab]=!0,this.walkSync(r);if(this.listeners.OnceExit)if("document"===r.type){var i,o=Ae(r.nodes);try{for(o.s();!(i=o.n()).done;){var a=i.value;this.visitSync(this.listeners.OnceExit,a)}}catch(Me){o.e(Me)}finally{o.f()}}else this.visitSync(this.listeners.OnceExit,r)}}return this.result}},{key:"then",value:function(e,t){return"production"===process.env.NODE_ENV||"from"in this.opts||Lb("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."),this["async"]().then(e,t)}},{key:"toString",value:function(){return this.css}},{key:"visitSync",value:function(e,t){var n,r=Ae(e);try{for(r.s();!(n=r.n()).done;){var i=Ne(n.value,2),o=i[0],a=i[1],s=(this.result.lastPlugin=o,void 0);try{s=a(t,this.helpers)}catch(L){throw this.handleError(L,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(jb(s))throw this.getAsyncError()}}catch(Me){r.e(Me)}finally{r.f()}}},{key:"visitTick",value:function(e){var t=e[e.length-1],n=t.node,r=t.visitors;if("root"===n.type||"document"===n.type||n.parent){if(0<r.length&&t.visitorIndex<r.length){var i=Ne(r[t.visitorIndex],2),o=i[0],i=i[1];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return i(n.toProxy(),this.helpers)}catch(F){throw this.handleError(F,n)}}if(0!==t.iterator){for(var a,s=t.iterator;a=n.nodes[n.indexes[s]];)if(n.indexes[s]+=1,!a[Ab])return a[Ab]=!0,void e.push(Hb(a));t.iterator=0,delete n.indexes[s]}for(var u=t.events;t.eventIndex<u.length;){var l=u[t.eventIndex];if(t.eventIndex+=1,0===l)return void(n.nodes&&n.nodes.length&&(n[Ab]=!0,t.iterator=n.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}}e.pop()}},{key:"walkSync",value:function(e){var t=this;e[Ab]=!0;var n,r=Ae(Wb(e));try{for(r.s();!(n=r.n()).done;){var i=n.value;if(0===i)e.nodes&&e.each(function(e){e[Ab]||t.walkSync(e)});else{var o=this.listeners[i];if(o&&this.visitSync(o,e.toProxy()))return}}}catch(Me){r.e(Me)}finally{r.f()}}},{key:"warnings",value:function(){return this.sync().warnings()}},{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),S=(Yb.registerPostcss=function(e){Gb=e},Yb),Jb=(a.registerLazyResult(Yb["default"]=Yb),vb.registerLazyResult(Yb),w),Kb=t,qb=b,Xb=ub,$b=Uw,a=f(function u(e,t,n){l(this,u),t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;var e=Kb,r=(this.result=new $b(this._processor,void 0,this._opts),this.result.css=t,this),n=(Object.defineProperty(this.result,"root",{get:function(){return r.root}}),new Jb(e,void 0,this._opts,t));n.isMap()?(t=(e=Ne(n.generate(),2))[0],e=e[1],t&&(this.result.css=t),e&&(this.result.map=e)):(n.clearAnnotation(),this.result.css=n.css)},[{key:"async",value:function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}},{key:"catch",value:function(e){return this["async"]()["catch"](e)}},{key:"finally",value:function(e){return this["async"]().then(e,e)}},{key:"sync",value:function(){if(this.error)throw this.error;return this.result}},{key:"then",value:function(e,t){return"production"===process.env.NODE_ENV||"from"in this._opts||qb("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."),this["async"]().then(e,t)}},{key:"toString",value:function(){return this._css}},{key:"warnings",value:function(){return[]}},{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=Xb;try{e=t(this._css,this._opts)}catch($){this.error=$}if(this.error)throw this.error;return this._root=e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),Yb=a,Qb=(a["default"]=a,Yb),e1=S,vb=De,w=pb,b=f(function u(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:[];l(this,u),this.version="8.4.38",this.plugins=this.normalize(e)},[{key:"normalize",value:function(e){var t,n=[],r=Ae(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===v(i)&&Array.isArray(i.plugins))n=n.concat(i.plugins);else if("object"===v(i)&&i.postcssPlugin)n.push(i);else if("function"==typeof i)n.push(i);else{if("object"!==v(i)||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}}}catch(Me){r.e(Me)}finally{r.f()}return n}},{key:"process",value:function(e){var t=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};return new(this.plugins.length||t.parser||t.stringifier||t.syntax?e1:Qb)(this,e,t)}},{key:"use",value:function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}]),a=b,t1=(b["default"]=b,w.registerProcessor(b),vb.registerProcessor(b),g),n1=r,r1=Ue,i1=lb,o1=s,a1=pb,s1=yb;function u1(e,t){if(Array.isArray(e))return e.map(function(e){return u1(e)});var n,r=e.inputs,i=j(e,Dy);if(r){t=[];var o,a=Ae(r);try{for(a.s();!(o=a.n()).done;){var s=Te(Te({},o.value),{},{__proto__:o1.prototype});s.map&&(s.map=Te(Te({},s.map),{},{__proto__:n1.prototype})),t.push(s)}}catch(Me){a.e(Me)}finally{a.f()}}if(i.nodes&&(i.nodes=e.nodes.map(function(e){return u1(e,t)})),i.source&&(n=(r=i.source).inputId,r=j(r,Fy),i.source=r,null!=n)&&(i.source.input=t[n]),"root"===i.type)return new a1(i);if("decl"===i.type)return new t1(i);if("rule"===i.type)return new s1(i);if("comment"===i.type)return new r1(i);if("atrule"===i.type)return new i1(i);throw new Error("Unknown node type: "+e.type)}var Yb=u1,w=(u1["default"]=u1,ct),l1=g,b=S,vb=tr,c1=a,r=t,ct=Yb,d1=De,g=n,f1=Ue,h1=lb,S=Uw,a=s,t=ub,Yb=e,p1=yb,g1=pb,De=Mr;function m1(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new c1(t)}m1.plugin=function(t,n){var e,r=!1;function i(){console&&console.warn&&!r&&(r=!0,console.warn(t+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG)&&process.env.LANG.startsWith("cn")&&console.warn(t+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226");var e=n.apply(void 0,arguments);return e.postcssPlugin=t,e.postcssVersion=(new c1).version,e}return Object.defineProperty(i,"postcss",{get:function(){return e=e||i()}}),i.process=function(e,t,n){return m1([i(n)]).process(e,t)},i},m1.stringify=r,m1.parse=t,m1.fromJSON=ct,m1.list=Yb,m1.comment=function(e){return new f1(e)},m1.atRule=function(e){return new h1(e)},m1.decl=function(e){return new l1(e)},m1.rule=function(e){return new p1(e)},m1.root=function(e){return new g1(e)},m1.document=function(e){return new d1(e)},m1.CssSyntaxError=w,m1.Declaration=l1,m1.Container=vb,m1.Processor=c1,m1.Document=d1,m1.Comment=f1,m1.Warning=g,m1.AtRule=h1,m1.Result=S,m1.Input=a,m1.Rule=p1,m1.Root=g1,m1.Node=De,b.registerPostcss(m1);var n=m1,lb=(m1["default"]=m1,(Ue=n)&&Ue.__esModule&&Object.prototype.hasOwnProperty.call(Ue,"default")?Ue["default"]:Ue),v1=(lb.stringify,Object.defineProperty),y1=function(e,t,n){return e=e,t="symbol"!==v(t)?t+"":t,n=n,t in e?v1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n};var w1,b1,k1,Uw={exports:{}},S1=String,s=function(){return{isColorSupported:!1,reset:S1,bold:S1,dim:S1,italic:S1,underline:S1,inverse:S1,hidden:S1,strikethrough:S1,black:S1,red:S1,green:S1,yellow:S1,blue:S1,magenta:S1,cyan:S1,white:S1,gray:S1,bgBlack:S1,bgRed:S1,bgGreen:S1,bgYellow:S1,bgBlue:S1,bgMagenta:S1,bgCyan:S1,bgWhite:S1}},ub=(Uw.exports=s(),Uw.exports.createColors=s,Uw.exports),e=(w1=Object.freeze(Object.defineProperty({__proto__:null,"default":{}},Symbol.toStringTag,{value:"Module"}))).__esModule?w1:("function"==typeof(b1=w1["default"])?(k1=function w1(){return this instanceof w1?Reflect.construct(b1,arguments,this.constructor):b1.apply(this,arguments)}).prototype=b1.prototype:k1={},Object.defineProperty(k1,"__esModule",{value:!0}),Object.keys(w1).forEach(function(e){var t=Object.getOwnPropertyDescriptor(w1,e);Object.defineProperty(k1,e,t.get?t:{enumerable:!0,get:function(){return w1[e]}})}),k1),_1=ub,C1=e,pb=(yb=K(Error),U(I1,yb),f(I1,[{key:"setMessage",value:function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file||"<css input>","undefined"!=typeof this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}},{key:"showSourceCode",value:function(e){var r=this;if(!this.source)return"";var t=this.source;null==e&&(e=_1.isColorSupported);var n,i,o,a,s,t=(t=C1&&e?C1(t):t).split(/\r?\n/),u=Math.max(this.line-3,0),l=Math.min(this.line+2,t.length),c=String(l).length;return e?(e=_1.createColors(!0),n=e.bold,i=e.gray,o=e.red,a=function(e){return n(o(e))},s=function(e){return i(e)}):a=s=function(e){return e},t.slice(u,l).map(function(e,t){var t=u+1+t,n=" "+(" "+t).slice(-c)+" | ";return t===r.line?(t=s(n.replace(/\d/g," "))+e.slice(0,r.column-1).replace(/[^\t]/g," "),a(">")+s(n)+e+"\n "+t+a("^")):" "+s(n)+e}).join("\n")}},{key:"toString",value:function(){var e=(e=this.showSourceCode())&&"\n\n"+e+"\n";return this.name+": "+this.message+e}}])),Mr=pb;function I1(e,t,n,r,i,o){var a;return l(this,I1),(a=d(this,I1,[e])).name="CssSyntaxError",a.reason=e,i&&(a.file=i),r&&(a.source=r),o&&(a.plugin=o),void 0!==t&&void 0!==n&&("number"==typeof t?(a.line=t,a.column=n):(a.line=t.line,a.column=t.column,a.endLine=n.line,a.endColumn=n.column)),a.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(a,I1),a}pb["default"]=pb;var r={},E1=(r.isClean=Symbol("isClean"),r.my=Symbol("my"),{after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1}),t=f(function u(e){l(this,u),this.builder=e},[{key:"atrule",value:function(e,t){var n="@"+e.name,r=e.params?this.rawValue(e,"params"):"";"undefined"!=typeof e.raws.afterName?n+=e.raws.afterName:r&&(n+=" "),e.nodes?this.block(e,n+r):(t=(e.raws.between||"")+(t?";":""),this.builder(n+r+t,e))}},{key:"beforeAfter",value:function(e,t){for(var n="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose"),r=e.parent,i=0;r&&"root"!==r.type;)i+=1,r=r.parent;if(n.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var a=0;a<i;a++)n+=o}return n}},{key:"block",value:function(e,t){var n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),(t=e.nodes&&e.nodes.length?(this.body(e),this.raw(e,"after")):this.raw(e,"after","emptyBody"))&&this.builder(t),this.builder("}",e,"end")}},{key:"body",value:function(e){for(var t=e.nodes.length-1;0<t&&"comment"===e.nodes[t].type;)--t;for(var n=this.raw(e,"semicolon"),r=0;r<e.nodes.length;r++){var i=e.nodes[r],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==r||n)}}},{key:"comment",value:function(e){var t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)}},{key:"decl",value:function(e,t){var n=this.raw(e,"between","colon"),n=e.prop+n+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)}},{key:"document",value:function(e){this.body(e)}},{key:"raw",value:function(e,t,n){var r;if(t&&void 0!==(r=e.raws[t]))return r;var i,o=e.parent;if("before"===(n=n||t)){if(!o||"root"===o.type&&o.first===e)return"";if(o&&"document"===o.type)return""}return o?((o=e.root()).rawCache||(o.rawCache={}),"undefined"!=typeof o.rawCache[n]?o.rawCache[n]:"before"===n||"after"===n?this.beforeAfter(e,n):(this[i="raw"+((i=n)[0].toUpperCase()+i.slice(1))]?r=this[i](o,e):o.walk(function(e){if(void 0!==(r=e.raws[t]))return!1}),void 0===r&&(r=E1[n]),o.rawCache[n]=r)):E1[n]}},{key:"rawBeforeClose",value:function(e){var t;return e.walk(function(e){if(e.nodes&&0<e.nodes.length&&"undefined"!=typeof e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t=t&&t.replace(/\S/g,"")}},{key:"rawBeforeComment",value:function(e,t){var n;return e.walkComments(function(e){if("undefined"!=typeof e.raws.before)return(n=e.raws.before).includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),n=void 0===n?this.raw(t,null,"beforeDecl"):n&&n.replace(/\S/g,"")}},{key:"rawBeforeDecl",value:function(e,t){var n;return e.walkDecls(function(e){if("undefined"!=typeof e.raws.before)return(n=e.raws.before).includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),n=void 0===n?this.raw(t,null,"beforeRule"):n&&n.replace(/\S/g,"")}},{key:"rawBeforeOpen",value:function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t}},{key:"rawBeforeRule",value:function(t){var n;return t.walk(function(e){if(e.nodes&&(e.parent!==t||t.first!==e)&&"undefined"!=typeof e.raws.before)return(n=e.raws.before).includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),n=n&&n.replace(/\S/g,"")}},{key:"rawColon",value:function(e){var t;return e.walkDecls(function(e){if("undefined"!=typeof e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t}},{key:"rawEmptyBody",value:function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t}},{key:"rawIndent",value:function(n){return n.raws.indent||(n.walk(function(e){var t=e.parent;if(t&&t!==n&&t.parent&&t.parent===n&&"undefined"!=typeof e.raws.before)return t=e.raws.before.split("\n"),r=(r=t[t.length-1]).replace(/\S/g,""),!1}),r);var r}},{key:"rawSemicolon",value:function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t}},{key:"rawValue",value:function(e,t){var n=e[t],t=e.raws[t];return t&&t.value===n?t.raw:n}},{key:"root",value:function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}},{key:"rule",value:function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}},{key:"stringify",value:function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}}]),ct=t,R1=(t["default"]=t,ct);function x1(e,t){new R1(t).stringify(e)}var Yb=x1,O1=(x1["default"]=x1,r.isClean),A1=r.my,T1=Mr,M1=ct,P1=Yb;w=f(function u(){var e,t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{};for(e in l(this,u),this.raws={},this[O1]=!1,this[A1]=!0,t)if("nodes"===e){this.nodes=[];var n,r=Ae(t[e]);try{for(r.s();!(n=r.n()).done;){var i=n.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}catch(Me){r.e(Me)}finally{r.f()}}else this[e]=t[e]},[{key:"addToError",value:function(e){var t;return e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)&&(t=this.source,e.stack=e.stack.replace(/\n\s{4}at /,"$&".concat(t.input.from,":").concat(t.start.line,":").concat(t.start.column,"$&"))),e}},{key:"after",value:function(e){return this.parent.insertAfter(this,e),this}},{key:"assign",value:function(){var e,t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{};for(e in t)this[e]=t[e];return this}},{key:"before",value:function(e){return this.parent.insertBefore(this,e),this}},{key:"cleanRaws",value:function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}},{key:"clone",value:function(){var e,t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{},n=function a(e,t){var n,r,i,o=new e.constructor;for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n&&(i=v(r=e[n]),"parent"===n&&"object"===i?t&&(o[n]=t):"source"===n?o[n]=r:Array.isArray(r)?o[n]=r.map(function(e){return a(e,o)}):("object"===i&&null!==r&&(r=a(r)),o[n]=r));return o}(this);for(e in t)n[e]=t[e];return n}},{key:"cloneAfter",value:function(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{},e=this.clone(e);return this.parent.insertAfter(this,e),e}},{key:"cloneBefore",value:function(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{},e=this.clone(e);return this.parent.insertBefore(this,e),e}},{key:"error",value:function(e){var t,n,r=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};return this.source?(t=(n=this.rangeBy(r)).end,this.source.input.error(e,{column:(n=n.start).column,line:n.line},{column:t.column,line:t.line},r)):new T1(e)}},{key:"getProxyProcessor",value:function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,n){return e[t]!==n&&(e[t]=n,"prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0}}}},{key:"markDirty",value:function(){if(this[O1]){this[O1]=!1;for(var e=this;e=e.parent;)e[O1]=!1}}},{key:"next",value:function(){var e;if(this.parent)return e=this.parent.index(this),this.parent.nodes[e+1]}},{key:"positionBy",value:function(e,t){var n=this.source.start;return e.index?n=this.positionInside(e.index,t):e.word&&-1!==(e=(t=this.toString()).indexOf(e.word))&&(n=this.positionInside(e,t)),n}},{key:"positionInside",value:function(e,t){for(var n=t||this.toString(),r=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===n[o]?i+=r=1:r+=1;return{column:r,line:i}}},{key:"prev",value:function(){var e;if(this.parent)return e=this.parent.index(this),this.parent.nodes[e-1]}},{key:"rangeBy",value:function(e){var t,n,r={column:this.source.start.column,line:this.source.start.line},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};return e.word?-1!==(n=(t=this.toString()).indexOf(e.word))&&(r=this.positionInside(n,t),i=this.positionInside(n+e.word.length,t)):(e.start?r={column:e.start.column,line:e.start.line}:e.index&&(r=this.positionInside(e.index)),e.end?i={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?i=this.positionInside(e.endIndex):e.index&&(i=this.positionInside(e.index+1))),{end:i=i.line<r.line||i.line===r.line&&i.column<=r.column?{column:r.column+1,line:r.line}:i,start:r}}},{key:"raw",value:function(e,t){return(new M1).raw(this,e,t)}},{key:"remove",value:function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}},{key:"replaceWith",value:function(){if(this.parent){for(var e=this,t=!1,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];for(var o=0,a=r;o<a.length;o++){var s=a[o];s===this?t=!0:t?(this.parent.insertAfter(e,s),e=s):this.parent.insertBefore(e,s)}t||this.remove()}return this}},{key:"root",value:function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}},{key:"toJSON",value:function(e,t){var n,r,i,o={},a=null==t,s=(t=t||new Map,0);for(n in this)Object.prototype.hasOwnProperty.call(this,n)&&"parent"!==n&&"proxyCache"!==n&&(r=this[n],Array.isArray(r)?o[n]=r.map(function(e){return"object"===v(e)&&e.toJSON?e.toJSON(null,t):e}):"object"===v(r)&&r.toJSON?o[n]=r.toJSON(null,t):"source"===n?(null==(i=t.get(r.input))&&(i=s,t.set(r.input,s),s++),o[n]={end:r.end,inputId:i,start:r.start}):o[n]=r);return a&&(o.inputs=Le(t.keys()).map(function(e){return e.toJSON()})),o}},{key:"toProxy",value:function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}},{key:"toString",value:function(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:P1,t=(e.stringify&&(e=e.stringify),"");return e(this,function(e){t+=e}),t}},{key:"warn",value:function(e,t,n){var r,i={node:this};for(r in n)i[r]=n[r];return e.warn(t,i)}},{key:"proxyOf",get:function(){return this}}]),vb=w,w["default"]=w,U(N1,vb),g=f(N1,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),S=g;function N1(e){return l(this,N1),e&&"undefined"!=typeof e.value&&"string"!=typeof e.value&&(e=Te(Te({},e),{},{value:String(e.value)})),(e=d(this,N1,[e])).type="decl",e}g["default"]=g;var L1=e.SourceMapConsumer,D1=e.SourceMapGenerator,F1=e.existsSync,U1=e.readFileSync,B1=e.dirname,z1=e.join,a=f(function u(e,t){l(this,u),!1!==t.map&&(this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:"),e=t.map?t.map.prev:void 0,e=this.loadMap(t.from,e),!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=B1(this.mapFile)),e)&&(this.text=e)},[{key:"consumer",value:function(){return this.consumerCache||(this.consumerCache=new L1(this.text)),this.consumerCache}},{key:"decodeInline",value:function(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var t=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+t)}},{key:"getAnnotationURL",value:function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}},{key:"isMap",value:function(e){return"object"===v(e)&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}},{key:"loadAnnotation",value:function(e){var t,n=e.match(/\/\*\s*# sourceMappingURL=/gm);n&&(n=e.lastIndexOf(n.pop()),t=e.indexOf("*/",n),-1<n)&&-1<t&&(this.annotation=this.getAnnotationURL(e.substring(n,t)))}},{key:"loadFile",value:function(e){if(this.root=B1(e),F1(e))return this.mapFile=e,U1(e,"utf-8").toString().trim()}},{key:"loadMap",value:function(e,t){if(!1===t)return!1;if(!t)return this.inline?this.decodeInline(this.annotation):this.annotation?(n=this.annotation,e&&(n=z1(B1(e),n)),this.loadFile(n)):void 0;if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof L1)return D1.fromSourceMap(t).toString();if(t instanceof D1)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var n=t(e);if(n){e=this.loadFile(n);if(e)return e;throw new Error("Unable to load previous source map: "+n.toString())}}},{key:"startWith",value:function(e,t){return!!e&&e.substr(0,t.length)===t}},{key:"withContent",value:function(){return!!(this.consumer().sourcesContent&&0<this.consumer().sourcesContent.length)}}]),De=a,b=(a["default"]=a,e.SourceMapConsumer),n=e.SourceMapGenerator,j1=e.fileURLToPath,W1=e.pathToFileURL,H1=e.isAbsolute,V1=e.resolve,Z1=function(){for(var e="",t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:21;t--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return e},Ue=e,G1=Mr,Y1=De,J1=Symbol("fromOffsetCache"),K1=Boolean(b&&n),q1=Boolean(V1&&H1),lb=f(function u(e){var t=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};if(l(this,u),null==e||"object"===v(e)&&!e.toString)throw new Error("PostCSS received ".concat(e," instead of CSS string"));this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!q1||/^\w+:\/\//.test(t.from)||H1(t.from)?this.file=t.from:this.file=V1(t.from)),q1&&K1&&(e=new Y1(this.css,t)).text&&(t=(this.map=e).consumer().file,!this.file)&&t&&(this.file=this.mapResolve(t)),this.file||(this.id="<input css "+Z1(6)+">"),this.map&&(this.map.file=this.from)},[{key:"error",value:function(e,t,n){var r,i,o,a=3<arguments.length&&arguments[3]!==undefined?arguments[3]:{},s=(t&&"object"===v(t)?(s=n,n="number"==typeof(i=t).offset?(t=(o=this.fromOffset(i.offset)).line,o.col):(t=i.line,i.column),i="number"==typeof s.offset?(r=(o=this.fromOffset(s.offset)).line,o.col):(r=s.line,s.column)):n||(t=(o=this.fromOffset(t)).line,n=o.col),this.origin(t,n,r,i));return(o=s?new G1(e,void 0===s.endLine?s.line:{column:s.column,line:s.line},void 0===s.endLine?s.column:{column:s.endColumn,line:s.endLine},s.source,s.file,a.plugin):new G1(e,void 0===r?t:{column:n,line:t},void 0===r?n:{column:i,line:r},this.css,this.file,a.plugin)).input={column:n,endColumn:i,endLine:r,line:t,source:this.css},this.file&&(W1&&(o.input.url=W1(this.file).toString()),o.input.file=this.file),o}},{key:"fromOffset",value:function(e){if(this[J1])n=this[J1];else{for(var t=this.css.split("\n"),n=new Array(t.length),r=0,i=0,o=t.length;i<o;i++)n[i]=r,r+=t[i].length+1;this[J1]=n}var a=0;if(e>=n[n.length-1])a=n.length-1;else for(var s,u=n.length-2;a<u;)if(e<n[s=a+(u-a>>1)])u=s-1;else{if(!(e>=n[s+1])){a=s;break}a=s+1}return{col:e-n[a]+1,line:a+1}}},{key:"mapResolve",value:function(e){return/^\w+:\/\//.test(e)?e:V1(this.map.consumer().sourceRoot||this.map.root||".",e)}},{key:"origin",value:function(e,t,n,r){if(!this.map)return!1;var i,o=this.map.consumer(),t=o.originalPositionFor({column:t,line:e});if(!t.source)return!1;"number"==typeof n&&(i=o.originalPositionFor({column:r,line:n}));e=H1(t.source)?W1(t.source):new URL(t.source,this.map.consumer().sourceRoot||W1(this.map.mapFile)),r={column:t.column,endColumn:i&&i.column,endLine:i&&i.line,line:t.line,url:e.toString()};if("file:"===e.protocol){if(!j1)throw new Error("file: protocol is not available in this PostCSS build");r.file=j1(e)}n=o.sourceContentFor(t.source);return n&&(r.source=n),r}},{key:"toJSON",value:function(){for(var e={},t=0,n=["hasBOM","css","file","id"];t<n.length;t++){var r=n[t];null!=this[r]&&(e[r]=this[r])}return this.map&&(e.map=Te({},this.map),e.map.consumerCache)&&(e.map.consumerCache=void 0),e}},{key:"from",get:function(){return this.file||this.id}}]),s=lb,X1=(lb["default"]=lb,Ue&&Ue.registerInput&&Ue.registerInput(lb),e.SourceMapConsumer),$1=e.SourceMapGenerator,Q1=e.dirname,ek=e.relative,tk=e.resolve,nk=e.sep,rk=e.pathToFileURL,ik=s,ok=Boolean(X1&&$1),ak=Boolean(Q1&&tk&&ek&&nk),Uw=f(function u(e,t,n,r){l(this,u),this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map},[{key:"addAnnotation",value:function(){var e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map",t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}},{key:"applyPrevMaps",value:function(){var e,t=Ae(this.previous());try{for(t.s();!(e=t.n()).done;){var n=e.value,r=this.toUrl(this.path(n.file)),i=n.root||Q1(n.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new X1(n.text)).sourcesContent&&(o.sourcesContent=null):o=n.consumer(),this.map.applySourceMap(o,r,this.toUrl(this.path(i)))}}catch(Me){t.e(Me)}finally{t.f()}}},{key:"clearAnnotation",value:function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;0<=t;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}},{key:"generate",value:function(){var t;return this.clearAnnotation(),ak&&ok&&this.isMap()?this.generateMap():(t="",this.stringify(this.root,function(e){t+=e}),[t])}},{key:"generateMap",value:function(){var e;return this.root?this.generateString():1===this.previous().length?((e=this.previous()[0].consumer()).file=this.outputFile(),this.map=$1.fromSourceMap(e,{ignoreInvalidMapping:!0})):(this.map=new $1({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"})),this.isSourcesContent()&&this.setSourcesContent(),this.root&&0<this.previous().length&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}},{key:"generateString",value:function(){var r=this;this.css="",this.map=new $1({file:this.outputFile(),ignoreInvalidMapping:!0});var i,o=1,a=1,s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(e,t,n){r.css+=e,t&&"end"!==n&&(s.generated.line=o,s.generated.column=a-1,t.source&&t.source.start?(s.source=r.sourcePath(t),s.original.line=t.source.start.line,s.original.column=t.source.start.column-1):(s.source="<no source>",s.original.line=1,s.original.column=0),r.map.addMapping(s)),(i=e.match(/\n/g))?(o+=i.length,i=e.lastIndexOf("\n"),a=e.length-i):a+=e.length,t&&"start"!==n&&(e=t.parent||{raws:{}},"decl"!==t.type&&("atrule"!==t.type||t.nodes)||t!==e.last||e.raws.semicolon)&&(t.source&&t.source.end?(s.source=r.sourcePath(t),s.original.line=t.source.end.line,s.original.column=t.source.end.column-1,s.generated.line=o,s.generated.column=a-2):(s.source="<no source>",s.original.line=1,s.original.column=0,s.generated.line=o,s.generated.column=a-1),r.map.addMapping(s))})}},{key:"isAnnotation",value:function(){return!!this.isInline()||("undefined"!=typeof this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))}},{key:"isInline",value:function(){var e;return"undefined"!=typeof this.mapOpts.inline?this.mapOpts.inline:(void 0===(e=this.mapOpts.annotation)||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))}},{key:"isMap",value:function(){return"undefined"!=typeof this.opts.map?!!this.opts.map:0<this.previous().length}},{key:"isSourcesContent",value:function(){return"undefined"!=typeof this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})}},{key:"outputFile",value:function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}},{key:"path",value:function(e){var t;return this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e)?e:this.memoizedPaths.get(e)||(t=this.opts.to?Q1(this.opts.to):".","string"==typeof this.mapOpts.annotation&&(t=Q1(tk(t,this.mapOpts.annotation))),t=ek(t,e),this.memoizedPaths.set(e,t),t)}},{key:"previous",value:function(){var e,t=this;return this.previousMaps||(this.previousMaps=[],this.root?this.root.walk(function(e){e.source&&e.source.input.map&&(e=e.source.input.map,t.previousMaps.includes(e)||t.previousMaps.push(e))}):(e=new ik(this.originalCSS,this.opts)).map&&this.previousMaps.push(e.map)),this.previousMaps}},{key:"setSourcesContent",value:function(){var e,n=this,r={};this.root?this.root.walk(function(e){var t;e.source&&(t=e.source.input.from)&&!r[t]&&(r[t]=!0,t=n.usesFileUrls?n.toFileUrl(t):n.toUrl(n.path(t)),n.map.setSourceContent(t,e.source.input.css))}):this.css&&(e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>",this.map.setSourceContent(e,this.css))}},{key:"sourcePath",value:function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}},{key:"toBase64",value:function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}},{key:"toFileUrl",value:function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(rk)return t=rk(e).toString(),this.memoizedFileURLs.set(e,t),t;throw new Error("`map.absolute` option is not available in this PostCSS build")}},{key:"toUrl",value:function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===nk&&(e=e.replace(/\\/g,"/"));t=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,t),t}}]),ub=(U(sk,vb),f(sk)),yb=ub;function sk(e){return l(this,sk),(e=d(this,sk,[e])).type="comment",e}ub["default"]=ub;var uk,lk,ck,dk,fk=r.isClean,hk=r.my,pk=S,gk=yb,mk=(U(vk,vb),f(vk,[{key:"append",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=0,i=t;r<i.length;r++){var o,a=i[r],a=this.normalize(a,this.last),s=Ae(a);try{for(s.s();!(o=s.n()).done;){var u=o.value;this.proxyOf.nodes.push(u)}}catch(Me){s.e(Me)}finally{s.f()}}return this.markDirty(),this}},{key:"cleanRaws",value:function(e){if(G(vk,"cleanRaws",this,3)([e]),this.nodes){var t,n=Ae(this.nodes);try{for(n.s();!(t=n.n()).done;)t.value.cleanRaws(e)}catch(Me){n.e(Me)}finally{n.f()}}}},{key:"each",value:function(e){if(this.proxyOf.nodes){for(var t,n,r=this.getIterator();this.indexes[r]<this.proxyOf.nodes.length&&(t=this.indexes[r],!1!==(n=e(this.proxyOf.nodes[t],t)));)this.indexes[r]+=1;return delete this.indexes[r],n}}},{key:"every",value:function(e){return this.nodes.every(e)}},{key:"getIterator",value:function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e}},{key:"getProxyProcessor",value:function(){return{get:function(r,o){return"proxyOf"===o?r:r[o]&&("each"===o||"string"==typeof o&&o.startsWith("walk")?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r[o].apply(r,Le(t.map(function(n){return"function"==typeof n?function(e,t){return n(e.toProxy(),t)}:n})))}:"every"===o||"some"===o?function(i){return r[o](function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return i.apply(void 0,[e.toProxy()].concat(n))})}:"root"===o?function(){return r.root().toProxy()}:"nodes"===o?r.nodes.map(function(e){return e.toProxy()}):"first"===o||"last"===o?r[o].toProxy():r[o])},set:function(e,t,n){return e[t]!==n&&(e[t]=n,"name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0}}}},{key:"index",value:function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}},{key:"insertAfter",value:function(e,t){var n,r,i,o=this.index(e),a=this.normalize(t,this.proxyOf.nodes[o]).reverse(),o=this.index(e),s=Ae(a);try{for(s.s();!(n=s.n()).done;){var u=n.value;this.proxyOf.nodes.splice(o+1,0,u)}}catch(Me){s.e(Me)}finally{s.f()}for(i in this.indexes)o<(r=this.indexes[i])&&(this.indexes[i]=r+a.length);return this.markDirty(),this}},{key:"insertBefore",value:function(e,t){var n,r,i,o=this.index(e),a=this.normalize(t,this.proxyOf.nodes[o],0===o&&"prepend").reverse(),o=this.index(e),s=Ae(a);try{for(s.s();!(n=s.n()).done;){var u=n.value;this.proxyOf.nodes.splice(o,0,u)}}catch(Me){s.e(Me)}finally{s.f()}for(i in this.indexes)o<=(r=this.indexes[i])&&(this.indexes[i]=r+a.length);return this.markDirty(),this}},{key:"normalize",value:function(e,t){var n=this;if("string"==typeof e)e=function F(e){return e.map(function(e){return e.nodes&&(e.nodes=F(e.nodes)),delete e.source,e})}(uk(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){var r,i=Ae(e=e.slice(0));try{for(i.s();!(r=i.n()).done;){var o=r.value;o.parent&&o.parent.removeChild(o,"ignore")}}catch(Me){i.e(Me)}finally{i.f()}}else if("root"===e.type&&"document"!==this.type){var a,s=Ae(e=e.nodes.slice(0));try{for(s.s();!(a=s.n()).done;){var u=a.value;u.parent&&u.parent.removeChild(u,"ignore")}}catch(Me){s.e(Me)}finally{s.f()}}else if(e.type)e=[e];else if(e.prop){if("undefined"==typeof e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new pk(e)]}else if(e.selector)e=[new lk(e)];else if(e.name)e=[new ck(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new gk(e)]}return e.map(function(e){return e[hk]||vk.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[fk]&&function r(e){if(e[fk]=!1,e.proxyOf.nodes){var t,n=Ae(e.proxyOf.nodes);try{for(n.s();!(t=n.n()).done;)r(t.value)}catch(Me){n.e(Me)}finally{n.f()}}}(e),"undefined"==typeof e.raws.before&&t&&"undefined"!=typeof t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e})}},{key:"prepend",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=Ae(t=t.reverse());try{for(i.s();!(r=i.n()).done;){var o,a,s=r.value,u=this.normalize(s,this.first,"prepend").reverse(),l=Ae(u);try{for(l.s();!(o=l.n()).done;){var c=o.value;this.proxyOf.nodes.unshift(c)}}catch(Me){l.e(Me)}finally{l.f()}for(a in this.indexes)this.indexes[a]=this.indexes[a]+u.length}}catch(Me){i.e(Me)}finally{i.f()}return this.markDirty(),this}},{key:"push",value:function(e){return(e.parent=this).proxyOf.nodes.push(e),this}},{key:"removeAll",value:function(){var e,t=Ae(this.proxyOf.nodes);try{for(t.s();!(e=t.n()).done;)e.value.parent=void 0}catch(Me){t.e(Me)}finally{t.f()}return this.proxyOf.nodes=[],this.markDirty(),this}},{key:"removeChild",value:function(e){var t,n;for(n in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[n])>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}},{key:"replaceValues",value:function(t,n,r){return r||(r=n,n={}),this.walkDecls(function(e){n.props&&!n.props.includes(e.prop)||n.fast&&!e.value.includes(n.fast)||(e.value=e.value.replace(t,r))}),this.markDirty(),this}},{key:"some",value:function(e){return this.nodes.some(e)}},{key:"walk",value:function(r){return this.each(function(e,t){var n;try{n=r(e,t)}catch(l){throw e.addToError(l)}return n=!1!==n&&e.walk?e.walk(r):n})}},{key:"walkAtRules",value:function(n,r){return r?n instanceof RegExp?this.walk(function(e,t){if("atrule"===e.type&&n.test(e.name))return r(e,t)}):this.walk(function(e,t){if("atrule"===e.type&&e.name===n)return r(e,t)}):(r=n,this.walk(function(e,t){if("atrule"===e.type)return r(e,t)}))}},{key:"walkComments",value:function(n){return this.walk(function(e,t){if("comment"===e.type)return n(e,t)})}},{key:"walkDecls",value:function(n,r){return r?n instanceof RegExp?this.walk(function(e,t){if("decl"===e.type&&n.test(e.prop))return r(e,t)}):this.walk(function(e,t){if("decl"===e.type&&e.prop===n)return r(e,t)}):(r=n,this.walk(function(e,t){if("decl"===e.type)return r(e,t)}))}},{key:"walkRules",value:function(n,r){return r?n instanceof RegExp?this.walk(function(e,t){if("rule"===e.type&&n.test(e.selector))return r(e,t)}):this.walk(function(e,t){if("rule"===e.type&&e.selector===n)return r(e,t)}):(r=n,this.walk(function(e,t){if("rule"===e.type)return r(e,t)}))}},{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]));function vk(){return l(this,vk),d(this,vk,arguments)}mk.registerParse=function(e){uk=e},mk.registerRule=function(e){lk=e},mk.registerAtRule=function(e){ck=e},mk.registerRoot=function(e){dk=e};pb=mk;(mk["default"]=mk).rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,ck.prototype):"rule"===e.type?Object.setPrototypeOf(e,lk.prototype):"decl"===e.type?Object.setPrototypeOf(e,pk.prototype):"comment"===e.type?Object.setPrototypeOf(e,gk.prototype):"root"===e.type&&Object.setPrototypeOf(e,dk.prototype),e[hk]=!0,e.nodes&&e.nodes.forEach(function(e){mk.rebuild(e)})};U(bk,pb);var yk,wk,t=f(bk,[{key:"toResult",value:function(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{};return new yk(new wk,this,e).stringify()}}]);function bk(e){return l(this,bk),(e=d(this,bk,[Te({type:"document"},e)])).nodes||(e.nodes=[]),e}t.registerLazyResult=function(e){yk=e},t.registerProcessor=function(e){wk=e};var ct=t,kk=(t["default"]=t,{}),w=function(e){kk[e]||(kk[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))},g=f(function u(e){var t,n=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};for(t in l(this,u),this.type="warning",this.text=e,n.node&&n.node.source&&(e=n.node.rangeBy(n),this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column),n)this[t]=n[t]},[{key:"toString",value:function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}]),a=g,Sk=(g["default"]=g,a),b=f(function u(e,t,n){l(this,u),this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0},[{key:"toString",value:function(){return this.css}},{key:"warn",value:function(e){var t=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{},e=(t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin),new Sk(e,t));return this.messages.push(e),e}},{key:"warnings",value:function(){return this.messages.filter(function(e){return"warning"===e.type})}},{key:"content",get:function(){return this.css}}]),n=b,_k=(b["default"]=b,"'".charCodeAt(0)),Ck='"'.charCodeAt(0),Ik="\\".charCodeAt(0),Ek="/".charCodeAt(0),Rk="\n".charCodeAt(0),xk=" ".charCodeAt(0),Ok="\f".charCodeAt(0),Ak="\t".charCodeAt(0),Tk="\r".charCodeAt(0),Mk="[".charCodeAt(0),Pk="]".charCodeAt(0),Nk="(".charCodeAt(0),Lk=")".charCodeAt(0),Dk="{".charCodeAt(0),Fk="}".charCodeAt(0),Uk=";".charCodeAt(0),Bk="*".charCodeAt(0),zk=":".charCodeAt(0),jk="@".charCodeAt(0),Wk=/[\t\n\f\r "#'()/;[\\\]{}]/g,Hk=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Vk=/.[\r\n"'(/\\]/,Zk=/[\da-f]/i,lb=pb,Ue=(U(Gk,lb),f(Gk,[{key:"append",value:function(){this.proxyOf.nodes||(this.nodes=[]);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return G(Gk,"append",this,3)(t)}},{key:"prepend",value:function(){this.proxyOf.nodes||(this.nodes=[]);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return G(Gk,"prepend",this,3)(t)}}])),e=Ue;function Gk(e){return l(this,Gk),(e=d(this,Gk,[e])).type="atrule",e}Ue["default"]=Ue,lb.registerAtRule(Ue);var Yk,Jk,ub=pb,t=(U(Kk,ub),f(Kk,[{key:"normalize",value:function(e,t,n){e=G(Kk,"normalize",this,3)([e]);if(t)if("prepend"===n)1<this.nodes.length?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t){var r,i=Ae(e);try{for(i.s();!(r=i.n()).done;)r.value.raws.before=t.raws.before}catch(Me){i.e(Me)}finally{i.f()}}return e}},{key:"removeChild",value:function(e,t){var n=this.index(e);return!t&&0===n&&1<this.nodes.length&&(this.nodes[1].raws.before=this.nodes[n].raws.before),G(Kk,"removeChild",this,3)([e])}},{key:"toResult",value:function(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{};return new Yk(new Jk,this,e).stringify()}}]));function Kk(e){return l(this,Kk),(e=d(this,Kk,[e])).type="root",e.nodes||(e.nodes=[]),e}t.registerLazyResult=function(e){Yk=e},t.registerProcessor=function(e){Jk=e};var g=t,qk=(ub.registerRoot(t["default"]=t),{comma:function(e){return qk.split(e,[","],!0)},space:function(e){return qk.split(e,[" ","\n","\t"])},split:function(e,t,n){var r,i=[],o="",a=!1,s=0,u=!1,l="",c=!1,d=Ae(e);try{for(d.s();!(r=d.n()).done;){var f=r.value;c?c=!1:"\\"===f?c=!0:u?f===l&&(u=!1):'"'===f||"'"===f?(u=!0,l=f):"("===f?s+=1:")"===f?0<s&&--s:0===s&&t.includes(f)&&(a=!0),a?(""!==o&&i.push(o.trim()),o="",a=!1):o+=f}}catch(Me){d.e(Me)}finally{d.f()}return!n&&""===o||i.push(o.trim()),i}}),b=qk,Ue=(qk["default"]=qk,pb),Xk=b,lb=(U($k,Ue),f($k,[{key:"selectors",get:function(){return Xk.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,t=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(t)}}])),t=lb;function $k(e){return l(this,$k),(e=d(this,$k,[e])).type="rule",e.nodes||(e.nodes=[]),e}lb["default"]=lb,Ue.registerRule(lb);var Qk=S,eS=function(t){var r,i,o,a,s,u,l,c,d,e=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{},f=t.css.valueOf(),h=e.ignoreErrors,p=f.length,g=0,m=[],v=[];function y(e){throw t.error("Unclosed "+e,g)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&p<=g},nextToken:function(e){if(v.length)return v.pop();if(!(p<=g)){var t=!!e&&e.ignoreUnclosed;switch(r=f.charCodeAt(g)){case Rk:case xk:case Ak:case Tk:case Ok:for(i=g;i+=1,(r=f.charCodeAt(i))===xk||r===Rk||r===Ak||r===Tk||r===Ok;);d=["space",f.slice(g,i)],g=i-1;break;case Mk:case Pk:case Dk:case Fk:case zk:case Uk:case Lk:var n=String.fromCharCode(r);d=[n,n,g];break;case Nk:if(l=m.length?m.pop()[1]:"",c=f.charCodeAt(g+1),"url"===l&&c!==_k&&c!==Ck&&c!==xk&&c!==Rk&&c!==Ak&&c!==Ok&&c!==Tk){i=g;do{if(s=!1,-1===(i=f.indexOf(")",i+1))){if(h||t){i=g;break}y("bracket")}for(u=i;f.charCodeAt(u-1)===Ik;)--u,s=!s}while(s);d=["brackets",f.slice(g,i+1),g,i],g=i}else i=f.indexOf(")",g+1),l=f.slice(g,i+1),-1===i||Vk.test(l)?d=["(","(",g]:(d=["brackets",l,g,i],g=i);break;case _k:case Ck:o=r===_k?"'":'"',i=g;do{if(s=!1,-1===(i=f.indexOf(o,i+1))){if(h||t){i=g+1;break}y("string")}for(u=i;f.charCodeAt(u-1)===Ik;)--u,s=!s}while(s);d=["string",f.slice(g,i+1),g,i],g=i;break;case jk:Wk.lastIndex=g+1,Wk.test(f),i=0===Wk.lastIndex?f.length-1:Wk.lastIndex-2,d=["at-word",f.slice(g,i+1),g,i],g=i;break;case Ik:for(i=g,a=!0;f.charCodeAt(i+1)===Ik;)i+=1,a=!a;if(r=f.charCodeAt(i+1),a&&r!==Ek&&r!==xk&&r!==Rk&&r!==Ak&&r!==Tk&&r!==Ok&&(i+=1,Zk.test(f.charAt(i)))){for(;Zk.test(f.charAt(i+1));)i+=1;f.charCodeAt(i+1)===xk&&(i+=1)}d=["word",f.slice(g,i+1),g,i],g=i;break;default:g=(r===Ek&&f.charCodeAt(g+1)===Bk?(0===(i=f.indexOf("*/",g+2)+1)&&(h||t?i=f.length:y("comment")),d=["comment",f.slice(g,i+1),g,i]):(Hk.lastIndex=g+1,Hk.test(f),i=0===Hk.lastIndex?f.length-1:Hk.lastIndex-2,d=["word",f.slice(g,i+1),g,i],m.push(d)),i)}return g++,d}},position:function(){return g}}},tS=yb,nS=e,rS=g,iS=t,oS={empty:!0,space:!0},ub=pb,aS=f(function u(e){l(this,u),this.input=e,this.root=new rS,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}},[{key:"atrule",value:function(e){var t,n,r,i=new nS;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,a=!1,s=[],u=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?u.push("("===t?")":"]"):"{"===t&&0<u.length?u.push("}"):t===u[u.length-1]&&u.pop(),0===u.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){a=!0;break}if("}"===t){if(0<s.length){for(n=s[r=s.length-1];n&&"space"===n[0];)n=s[--r];n&&(i.source.end=this.getPosition(n[3]||n[2]),i.source.end.offset++)}this.end(e);break}}if(s.push(e),this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(s),s.length?(i.raws.afterName=this.spacesAndCommentsFromStart(s),this.raw(i,"params",s),o&&(e=s[s.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),a&&(i.nodes=[],this.current=i)}},{key:"checkMissedSemicolon",value:function(e){var t=this.colon(e);if(!1!==t){for(var n,r=0,i=t-1;0<=i&&("space"===(n=e[i])[0]||2!==(r+=1));i--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}}},{key:"colon",value:function(e){var t,n,r,i,o=0,a=Ae(e.entries());try{for(a.s();!(i=a.n()).done;){var s=Ne(i.value,2),u=s[0];if("("===(n=(t=s[1])[0])&&(o+=1),")"===n&&--o,0===o&&":"===n){if(r){if("word"===r[0]&&"progid"===r[1])continue;return u}this.doubleColon(t)}r=t}}catch(Me){a.e(Me)}finally{a.f()}return!1}},{key:"comment",value:function(e){var t=new tS,e=(this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,e[1].slice(2,-2));/^\s*$/.test(e)?(t.text="",t.raws.left=e,t.raws.right=""):(e=e.match(/^(\s*)([^]*\S)(\s*)$/),t.text=e[2],t.raws.left=e[1],t.raws.right=e[3])}},{key:"createTokenizer",value:function(){this.tokenizer=eS(this.input)}},{key:"decl",value:function(e,t){var n=new Qk;this.init(n,e[0][2]);var r,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(i[3]||i[2]||function(e){for(var t=e.length-1;0<=t;t--){var n=e[t],n=n[3]||n[2];if(n)return n}}(e)),n.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;n.prop+=e.shift()[1]}for(n.raws.between="";e.length;){if(":"===(r=e.shift())[0]){n.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),n.raws.between+=r[1]}"_"!==n.prop[0]&&"*"!==n.prop[0]||(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));for(var a,s=[];e.length&&("space"===(a=e[0][0])||"comment"===a);)s.push(e.shift());this.precheckMissedSemicolon(e);for(var u=e.length-1;0<=u;u--){if("!important"===(r=e[u])[1].toLowerCase()){n.important=!0;var l=this.stringFrom(e,u);" !important"!==(l=this.spacesFromEnd(e)+l)&&(n.raws.important=l);break}if("important"===r[1].toLowerCase()){for(var c=e.slice(0),d="",f=u;0<f;f--){var h=c[f][0];if(0===d.trim().indexOf("!")&&"space"!==h)break;d=c.pop()[1]+d}0===d.trim().indexOf("!")&&(n.important=!0,n.raws.important=d,e=c)}if("space"!==r[0]&&"comment"!==r[0])break}e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]})&&(n.raws.between+=s.map(function(e){return e[1]}).join(""),s=[]),this.raw(n,"value",s.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}},{key:"doubleColon",value:function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}},{key:"emptyRule",value:function(e){var t=new iS;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}},{key:"end",value:function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}},{key:"endFile",value:function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}},{key:"freeSemicolon",value:function(e){this.spaces+=e[1],this.current.nodes&&(e=this.current.nodes[this.current.nodes.length-1])&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}},{key:"getPosition",value:function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}},{key:"init",value:function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}},{key:"other",value:function(e){for(var t,n=!1,r=!1,i=null,o=[],a=e[1].startsWith("--"),s=[],u=e;u;){if(t=u[0],s.push(u),"("===t||"["===t)i=i||u,o.push("("===t?")":"]");else if(a&&r&&"{"===t)i=i||u,o.push("}");else if(0===o.length){if(";"===t){if(r)return void this.decl(s,a);break}if("{"===t)return void this.rule(s);if("}"===t){this.tokenizer.back(s.pop()),n=!0;break}":"===t&&(r=!0)}else t===o[o.length-1]&&(o.pop(),0===o.length)&&(i=null);u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(n=!0),0<o.length&&this.unclosedBracket(i),n&&r){if(!a)for(;s.length&&("space"===(u=s[s.length-1][0])||"comment"===u);)this.tokenizer.back(s.pop());this.decl(s,a)}else this.unknownWord(s)}},{key:"parse",value:function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}},{key:"precheckMissedSemicolon",value:function(){}},{key:"raw",value:function(e,t,n,r){for(var i,o,a,s,u=n.length,l="",c=!0,d=0;d<u;d+=1)"space"===(a=(i=n[d])[0])&&d===u-1&&!r||"comment"===a&&(a=n[d-1]?n[d-1][0]:"empty",o=n[d+1]?n[d+1][0]:"empty",oS[a]||oS[o]||","===l.slice(-1))?c=!1:l+=i[1];c||(s=n.reduce(function(e,t){return e+t[1]},""),e.raws[t]={raw:s,value:l}),e[t]=l}},{key:"rule",value:function(e){e.pop();var t=new iS;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}},{key:"spacesAndCommentsFromEnd",value:function(e){for(var t,n="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)n=e.pop()[1]+n;return n}},{key:"spacesAndCommentsFromStart",value:function(e){for(var t,n="";e.length&&("space"===(t=e[0][0])||"comment"===t);)n+=e.shift()[1];return n}},{key:"spacesFromEnd",value:function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t}},{key:"stringFrom",value:function(e,t){for(var n="",r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n}},{key:"unclosedBlock",value:function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}},{key:"unclosedBracket",value:function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}},{key:"unexpectedClose",value:function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}},{key:"unknownWord",value:function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}},{key:"unnamedAtrule",value:function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}}]),sS=s;function uS(e,t){e=new sS(e,t),e=new aS(e);try{e.parse()}catch(l){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===l.name&&t&&t.from&&(/\.scss$/i.test(t.from)?l.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(t.from)?l.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(t.from)&&(l.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),l}return e.root}var lb=uS,lS=(ub.registerParse(uS["default"]=uS),r.isClean),cS=r.my,dS=Uw,fS=Yb,hS=pb,Ue=ct,pS=w,gS=n,mS=lb,ub=g,vS={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},yS={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},wS={Once:!0,postcssPlugin:!0,prepare:!0};function bS(e){return"object"===v(e)&&"function"==typeof e.then}function kS(e){var t=!1,n=vS[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[n,n+"-"+t,0,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:e.append?[n,0,n+"Exit"]:[n,n+"Exit"]}function SS(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:kS(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function _S(e){return e[lS]=!1,e.nodes&&e.nodes.forEach(_S),e}var CS,IS={},r=f(function I(e,t,n){var r,i=this;if(l(this,I),this.stringified=!1,this.processed=!1,"object"!==v(t)||null===t||"root"!==t.type&&"document"!==t.type)if(t instanceof I||t instanceof gS)r=_S(t.root),t.map&&("undefined"==typeof n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=t.map);else{var o=mS;n.syntax&&(o=n.syntax.parse),(o=n.parser?n.parser:o).parse&&(o=o.parse);try{r=o(t,n)}catch($){this.processed=!0,this.error=$}r&&!r[cS]&&hS.rebuild(r)}else r=_S(t);this.result=new gS(e,r,n),this.helpers=Te(Te({},IS),{},{postcss:IS,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===v(e)&&e.prepare?Te(Te({},e),e.prepare(i.result)):e})},[{key:"async",value:function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}},{key:"catch",value:function(e){return this["async"]()["catch"](e)}},{key:"finally",value:function(e){return this["async"]().then(e,e)}},{key:"getAsyncError",value:function(){throw new Error("Use process(css).then(cb) to work with async plugins")}},{key:"handleError",value:function(e,t){var n,r,i,o,a,s=this.result.lastPlugin;try{t&&t.addToError(e),"CssSyntaxError"!==(this.error=e).name||e.plugin?s.postcssVersion&&"production"!==process.env.NODE_ENV&&(n=s.postcssPlugin,r=s.postcssVersion,i=this.result.processor.version,o=r.split("."),a=i.split("."),o[0]!==a[0]||parseInt(o[1])>parseInt(a[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+i+", but "+n+" uses "+r+". Perhaps this is the source of the error below."):(e.plugin=s.postcssPlugin,e.setMessage())}catch(Me){console&&console.error&&console.error(Me)}return e}},{key:"prepareVisitors",value:function(){var r=this;this.listeners={};var e,t=function(e,t,n){r.listeners[t]||(r.listeners[t]=[]),r.listeners[t].push([e,n])},n=Ae(this.plugins);try{for(n.s();!(e=n.n()).done;){var i=e.value;if("object"===v(i))for(var o in i){if(!yS[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event ".concat(o," in ").concat(i.postcssPlugin,". Try to update PostCSS (").concat(this.processor.version," now)."));if(!wS[o])if("object"===v(i[o]))for(var a in i[o])t(i,"*"===a?o:o+"-"+a.toLowerCase(),i[o][a]);else"function"==typeof i[o]&&t(i,o,i[o])}}}catch(Me){n.e(Me)}finally{n.f()}this.hasListener=0<Object.keys(this.listeners).length}},{key:"runAsync",value:(CS=P(W().m(function d(){var t,i,n,r,o,a,s,u,l,c=this;return W().w(function(e){for(;;)switch(e.p=e.n){case 0:this.plugin=0,t=0;case 1:if(t<this.plugins.length){if(s=this.plugins[t],bS(s=this.runOnRoot(s)))return e.p=2,e.n=3,s;e.n=5}else e.n=6;break;case 3:e.n=5;break;case 4:throw e.p=4,s=e.v,this.handleError(s);case 5:t++,e.n=1;break;case 6:if(this.prepareVisitors(),!this.hasListener){e.n=21;break}i=this.result.root;case 7:if(i[lS]){e.n=14;break}i[lS]=!0,n=[SS(i)];case 8:if(0<n.length){if(bS(u=this.visitTick(n)))return e.p=9,e.n=10,u;e.n=12}else e.n=13;break;case 10:e.n=12;break;case 11:throw e.p=11,u=e.v,l=n[n.length-1].node,this.handleError(u,l);case 12:e.n=8;break;case 13:e.n=7;break;case 14:if(!this.listeners.OnceExit){e.n=21;break}r=Ae(this.listeners.OnceExit),e.p=15,a=W().m(function j(){var t,n,r;return W().w(function(e){for(;;)switch(e.p=e.n){case 0:if(n=Ne(o.value,2),r=n[0],t=n[1],c.result.lastPlugin=r,e.p=1,"document"===i.type)return n=i.nodes.map(function(e){return t(e,c.helpers)}),e.n=2,Promise.all(n);e.n=3;break;case 2:e.n=4;break;case 3:return e.n=4,t(i,c.helpers);case 4:e.n=6;break;case 5:throw e.p=5,r=e.v,c.handleError(r);case 6:return e.a(2)}},j,null,[[1,5]])}),r.s();case 16:if((o=r.n()).done){e.n=18;break}return e.d(V(a()),17);case 17:e.n=16;break;case 18:e.n=20;break;case 19:e.p=19,l=e.v,r.e(l);case 20:return e.p=20,r.f(),e.f(20);case 21:return this.processed=!0,e.a(2,this.stringify())}},d,this,[[15,19,20,21],[9,11],[2,4]])})),function(){return CS.apply(this,arguments)})},{key:"runOnRoot",value:function(t){var e,n=this;this.result.lastPlugin=t;try{return"object"===v(t)&&t.Once?"document"===this.result.root.type?bS((e=this.result.root.nodes.map(function(e){return t.Once(e,n.helpers)}))[0])?Promise.all(e):e:t.Once(this.result.root,this.helpers):"function"==typeof t?t(this.result.root,this.result):void 0}catch($){throw this.handleError($)}}},{key:"stringify",value:function(){if(this.error)throw this.error;var e,t;return this.stringified||(this.stringified=!0,this.sync(),t=this.result.opts,e=fS,t.syntax&&(e=t.syntax.stringify),(e=t.stringifier?t.stringifier:e).stringify&&(e=e.stringify),t=new dS(e,this.result.root,this.result.opts).generate(),this.result.css=t[0],this.result.map=t[1]),this.result}},{key:"sync",value:function(){if(this.error)throw this.error;if(!this.processed){if(this.processed=!0,this.processing)throw this.getAsyncError();var e,t=Ae(this.plugins);try{for(t.s();!(e=t.n()).done;){var n=e.value;if(bS(this.runOnRoot(n)))throw this.getAsyncError()}}catch(Me){t.e(Me)}finally{t.f()}if(this.prepareVisitors(),this.hasListener){for(var r=this.result.root;!r[lS];)r[lS]=!0,this.walkSync(r);if(this.listeners.OnceExit)if("document"===r.type){var i,o=Ae(r.nodes);try{for(o.s();!(i=o.n()).done;){var a=i.value;this.visitSync(this.listeners.OnceExit,a)}}catch(Me){o.e(Me)}finally{o.f()}}else this.visitSync(this.listeners.OnceExit,r)}}return this.result}},{key:"then",value:function(e,t){return"production"===process.env.NODE_ENV||"from"in this.opts||pS("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."),this["async"]().then(e,t)}},{key:"toString",value:function(){return this.css}},{key:"visitSync",value:function(e,t){var n,r=Ae(e);try{for(r.s();!(n=r.n()).done;){var i=Ne(n.value,2),o=i[0],a=i[1],s=(this.result.lastPlugin=o,void 0);try{s=a(t,this.helpers)}catch(L){throw this.handleError(L,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(bS(s))throw this.getAsyncError()}}catch(Me){r.e(Me)}finally{r.f()}}},{key:"visitTick",value:function(e){var t=e[e.length-1],n=t.node,r=t.visitors;if("root"===n.type||"document"===n.type||n.parent){if(0<r.length&&t.visitorIndex<r.length){var i=Ne(r[t.visitorIndex],2),o=i[0],i=i[1];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return i(n.toProxy(),this.helpers)}catch(F){throw this.handleError(F,n)}}if(0!==t.iterator){for(var a,s=t.iterator;a=n.nodes[n.indexes[s]];)if(n.indexes[s]+=1,!a[lS])return a[lS]=!0,void e.push(SS(a));t.iterator=0,delete n.indexes[s]}for(var u=t.events;t.eventIndex<u.length;){var l=u[t.eventIndex];if(t.eventIndex+=1,0===l)return void(n.nodes&&n.nodes.length&&(n[lS]=!0,t.iterator=n.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}}e.pop()}},{key:"walkSync",value:function(e){var t=this;e[lS]=!0;var n,r=Ae(kS(e));try{for(r.s();!(n=r.n()).done;){var i=n.value;if(0===i)e.nodes&&e.each(function(e){e[lS]||t.walkSync(e)});else{var o=this.listeners[i];if(o&&this.visitSync(o,e.toProxy()))return}}}catch(Me){r.e(Me)}finally{r.f()}}},{key:"warnings",value:function(){return this.sync().warnings()}},{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),ES=(r.registerPostcss=function(e){IS=e},r),RS=(ub.registerLazyResult(r["default"]=r),Ue.registerLazyResult(r),Uw),xS=Yb,OS=w,AS=lb,TS=n,ub=f(function u(e,t,n){l(this,u),t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;var e=xS,r=(this.result=new TS(this._processor,void 0,this._opts),this.result.css=t,this),n=(Object.defineProperty(this.result,"root",{get:function(){return r.root}}),new RS(e,void 0,this._opts,t));n.isMap()?(t=(e=Ne(n.generate(),2))[0],e=e[1],t&&(this.result.css=t),e&&(this.result.map=e)):(n.clearAnnotation(),this.result.css=n.css)},[{key:"async",value:function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}},{key:"catch",value:function(e){return this["async"]()["catch"](e)}},{key:"finally",value:function(e){return this["async"]().then(e,e)}},{key:"sync",value:function(){if(this.error)throw this.error;return this.result}},{key:"then",value:function(e,t){return"production"===process.env.NODE_ENV||"from"in this._opts||OS("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."),this["async"]().then(e,t)}},{key:"toString",value:function(){return this._css}},{key:"warnings",value:function(){return[]}},{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=AS;try{e=t(this._css,this._opts)}catch($){this.error=$}if(this.error)throw this.error;return this._root=e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),r=ub,MS=(ub["default"]=ub,r),PS=ES,Ue=ct,Uw=g,w=f(function u(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:[];l(this,u),this.version="8.4.38",this.plugins=this.normalize(e)},[{key:"normalize",value:function(e){var t,n=[],r=Ae(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===v(i)&&Array.isArray(i.plugins))n=n.concat(i.plugins);else if("object"===v(i)&&i.postcssPlugin)n.push(i);else if("function"==typeof i)n.push(i);else{if("object"!==v(i)||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}}}catch(Me){r.e(Me)}finally{r.f()}return n}},{key:"process",value:function(e){var t=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};return new(this.plugins.length||t.parser||t.stringifier||t.syntax?PS:MS)(this,e,t)}},{key:"use",value:function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}]),ub=w,NS=(w["default"]=w,Uw.registerProcessor(w),Ue.registerProcessor(w),S),LS=De,DS=yb,FS=e,US=s,BS=g,zS=t;function jS(e,t){if(Array.isArray(e))return e.map(function(e){return jS(e)});var n,r=e.inputs,i=j(e,Uy);if(r){t=[];var o,a=Ae(r);try{for(a.s();!(o=a.n()).done;){var s=Te(Te({},o.value),{},{__proto__:US.prototype});s.map&&(s.map=Te(Te({},s.map),{},{__proto__:LS.prototype})),t.push(s)}}catch(Me){a.e(Me)}finally{a.f()}}if(i.nodes&&(i.nodes=e.nodes.map(function(e){return jS(e,t)})),i.source&&(n=(r=i.source).inputId,r=j(r,By),i.source=r,null!=n)&&(i.source.input=t[n]),"root"===i.type)return new BS(i);if("decl"===i.type)return new NS(i);if("rule"===i.type)return new zS(i);if("comment"===i.type)return new DS(i);if("atrule"===i.type)return new FS(i);throw new Error("Unknown node type: "+e.type)}var r=jS,Uw=(jS["default"]=jS,Mr),WS=S,w=ES,Ue=pb,HS=ub,De=Yb,Mr=r,VS=ct,S=a,ZS=yb,GS=e,ES=n,pb=s,ub=lb,Yb=b,YS=t,JS=g,r=vb;function KS(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new HS(t)}KS.plugin=function(t,n){var e,r=!1;function i(){console&&console.warn&&!r&&(r=!0,console.warn(t+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG)&&process.env.LANG.startsWith("cn")&&console.warn(t+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226");var e=n.apply(void 0,arguments);return e.postcssPlugin=t,e.postcssVersion=(new HS).version,e}return Object.defineProperty(i,"postcss",{get:function(){return e=e||i()}}),i.process=function(e,t,n){return KS([i(n)]).process(e,t)},i},KS.stringify=De,KS.parse=ub,KS.fromJSON=Mr,KS.list=Yb,KS.comment=function(e){return new ZS(e)},KS.atRule=function(e){return new GS(e)},KS.decl=function(e){return new WS(e)},KS.rule=function(e){return new YS(e)},KS.root=function(e){return new JS(e)},KS.document=function(e){return new VS(e)},KS.CssSyntaxError=Uw,KS.Declaration=WS,KS.Container=Ue,KS.Processor=HS,KS.Document=VS,KS.Comment=ZS,KS.Warning=S,KS.AtRule=GS,KS.Result=ES,KS.Input=pb,KS.Rule=YS,KS.Root=JS,KS.Node=r,w.registerPostcss(KS);var ct=KS,yb=(KS["default"]=KS,(a=ct)&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a["default"]:a),qS=(yb.stringify,f(e_,[{key:"childNodes",get:function(){for(var e=[],t=this.firstChild;t;)e.push(t),t=t.nextSibling;return e}},{key:"contains",value:function(e){if(e instanceof e_&&e.ownerDocument===this.ownerDocument){if(e===this)return!0;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}}return!1}},{key:"appendChild",value:function(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}},{key:"insertBefore",value:function(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}},{key:"removeChild",value:function(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}},{key:"toString",value:function(){return"RRNode"}}])),XS={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},$S={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},QS={};function e_(){l(this,e_),y1(this,"parentElement",null),y1(this,"parentNode",null),y1(this,"ownerDocument"),y1(this,"firstChild",null),y1(this,"lastChild",null),y1(this,"previousSibling",null),y1(this,"nextSibling",null),y1(this,"ELEMENT_NODE",1),y1(this,"TEXT_NODE",3),y1(this,"nodeType"),y1(this,"nodeName"),y1(this,"RRNodeType")}function t_(e){if(QS[e])return QS[e];var t=globalThis[e],n=t.prototype,r=e in XS?XS[e]:void 0,r=Boolean(r&&r.every(function(e){return Boolean(null==(e=null==(e=Object.getOwnPropertyDescriptor(n,e))?void 0:e.get)?void 0:e.toString().includes("[native code]"))})),i=e in $S?$S[e]:void 0,i=Boolean(i&&i.every(function(e){return"function"==typeof n[e]&&(null==(e=n[e])?void 0:e.toString().includes("[native code]"))}));if(r&&i&&!globalThis.Zone)return QS[e]=t.prototype,t.prototype;try{var o,a=document.createElement("iframe"),s=(document.body.appendChild(a),a.contentWindow);return s?(o=s[e].prototype,document.body.removeChild(a),o?QS[e]=o:n):t.prototype}catch(D){return n}}var n_={};function r_(e,t,n){var r="".concat(e,".").concat(String(n));return n_[r]?n_[r].call(t):(e=t_(e),(e=null==(e=Object.getOwnPropertyDescriptor(e,n))?void 0:e.get)?(n_[r]=e).call(t):t[n])}var i_={};function o_(e,t,n){var r="".concat(e,".").concat(String(n));return i_[r]?i_[r].bind(t):"function"!=typeof(e=t_(e)[n])?t[n]:(i_[r]=e).bind(t)}function a_(){return t_("MutationObserver").constructor}function s_(e,t,n){try{var r,i;return t in e?("function"==typeof(i=n(r=e[t]))&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,function(){e[t]=r}):function(){}}catch(Pe){return function(){}}}var u_={ownerDocument:function(e){return r_("Node",e,"ownerDocument")},childNodes:function(e){return r_("Node",e,"childNodes")},parentNode:function(e){return r_("Node",e,"parentNode")},parentElement:function(e){return r_("Node",e,"parentElement")},textContent:function(e){return r_("Node",e,"textContent")},contains:function(e,t){return o_("Node",e,"contains")(t)},getRootNode:function(e){return o_("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?r_("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?r_("Element",e,"shadowRoot"):null},querySelector:function(e,t){return r_("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return r_("Element",e,"querySelectorAll")(t)},mutationObserver:a_,patch:s_};function l_(e,t,n){var r=2<arguments.length&&n!==undefined?n:document,i={capture:!0,passive:!0};return r.addEventListener(e,t,i),function(){return r.removeEventListener(e,t,i)}}var c_="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",e={map:{},getId:function(){return console.error(c_),-1},getNode:function(){return console.error(c_),null},removeNodeFromMap:function(){console.error(c_)},has:function(){return console.error(c_),!1},reset:function(){console.error(c_)}};function d_(a,s,e){var u=2<arguments.length&&e!==undefined?e:{},l=null,c=0;return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Date.now(),i=(c||!1!==u.leading||(c=r),s-(r-c)),o=this;i<=0||s<i?(l&&(clearTimeout(l),l=null),c=r,a.apply(o,t)):l||!1===u.trailing||(l=setTimeout(function(){c=!1===u.leading?0:Date.now(),l=null,a.apply(o,t)},i))}}function f_(e,t,n,r,i){var i=4<arguments.length&&i!==undefined?i:window,o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set:function(e){var t=this;setTimeout(function(){n.set.call(t,e)},0),o&&o.set&&o.set.call(this,e)}}),function(){return f_(e,t,o||{},!0)}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&new Proxy(e,{get:function(e,t,n){return"map"===t&&console.error(c_),Reflect.get(e,t,n)}});var h_=Date.now;function p_(e){var t,n=e.document;return{left:n.scrollingElement?n.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:n.documentElement.scrollLeft||(null==n?void 0:n.body)&&(null==(t=u_.parentElement(n.body))?void 0:t.scrollLeft)||(null==(t=null==n?void 0:n.body)?void 0:t.scrollLeft)||0,top:n.scrollingElement?n.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==n?void 0:n.documentElement.scrollTop)||(null==n?void 0:n.body)&&(null==(t=u_.parentElement(n.body))?void 0:t.scrollTop)||(null==(e=null==n?void 0:n.body)?void 0:e.scrollTop)||0}}function g_(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function m_(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function v_(e){return e?e.nodeType===e.ELEMENT_NODE?e:u_.parentElement(e):null}function y_(e,t,n,r){if(e){e=v_(e);if(e){try{if("string"==typeof t){if(e.classList.contains(t))return 1;if(r&&null!==e.closest("."+t))return 1}else if(x0(e,t,r))return 1}catch(Pe){}if(n){if(e.matches(n))return 1;if(r&&null!==e.closest(n))return 1}}}}function w_(e,t,n){return"TITLE"===e.tagName&&n.headTitleMutations||-2===t.getId(e)}function b_(e){return Boolean(e.changedTouches)}function k_(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function S_(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function __(e){return e&&(e instanceof qS&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(u_.shadowRoot(e)))}/[1-9][0-9]{12}/.test(Date.now().toString())||(h_=function(){return(new Date).getTime()});var C_=f(function u(){l(this,u),k(this,"id",1),k(this,"styleIDMap",new WeakMap),k(this,"idStyleMap",new Map)},[{key:"getId",value:function(e){return null!=(e=this.styleIDMap.get(e))?e:-1}},{key:"has",value:function(e){return this.styleIDMap.has(e)}},{key:"add",value:function(e,t){return this.has(e)?this.getId(e):(t=void 0===t?this.id++:t,this.styleIDMap.set(e,t),this.idStyleMap.set(t,e),t)}},{key:"getStyle",value:function(e){return this.idStyleMap.get(e)||null}},{key:"reset",value:function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}},{key:"generateId",value:function(){return this.id++}}]);function I_(e){var t,n=null;return n="getRootNode"in e&&(null==(t=u_.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&u_.host(u_.getRootNode(e))?u_.host(u_.getRootNode(e)):n}function E_(e){var n,t=u_.ownerDocument(e);return t&&(u_.contains(t,e)||(n=e,!!(t=u_.ownerDocument(n))&&(e=function(){for(var e,t=n;e=I_(t);)t=e;return t}(),u_.contains(t,e))))}(n={})[n.DomContentLoaded=0]="DomContentLoaded",n[n.Load=1]="Load",n[n.FullSnapshot=2]="FullSnapshot",n[n.IncrementalSnapshot=3]="IncrementalSnapshot",n[n.Meta=4]="Meta",n[n.Custom=5]="Custom",n[n.Plugin=6]="Plugin";var R_=n,x_=((s=x_||{})[s.Mutation=0]="Mutation",s[s.MouseMove=1]="MouseMove",s[s.MouseInteraction=2]="MouseInteraction",s[s.Scroll=3]="Scroll",s[s.ViewportResize=4]="ViewportResize",s[s.Input=5]="Input",s[s.TouchMove=6]="TouchMove",s[s.MediaInteraction=7]="MediaInteraction",s[s.StyleSheetRule=8]="StyleSheetRule",s[s.CanvasMutation=9]="CanvasMutation",s[s.Font=10]="Font",s[s.Log=11]="Log",s[s.Drag=12]="Drag",s[s.StyleDeclaration=13]="StyleDeclaration",s[s.Selection=14]="Selection",s[s.AdoptedStyleSheet=15]="AdoptedStyleSheet",s[s.CustomElement=16]="CustomElement",s),O_=((lb=O_||{})[lb.MouseUp=0]="MouseUp",lb[lb.MouseDown=1]="MouseDown",lb[lb.Click=2]="Click",lb[lb.ContextMenu=3]="ContextMenu",lb[lb.DblClick=4]="DblClick",lb[lb.Focus=5]="Focus",lb[lb.Blur=6]="Blur",lb[lb.TouchStart=7]="TouchStart",lb[lb.TouchMove_Departed=8]="TouchMove_Departed",lb[lb.TouchEnd=9]="TouchEnd",lb[lb.TouchCancel=10]="TouchCancel",lb),A_=((b=A_||{})[b.Mouse=0]="Mouse",b[b.Pen=1]="Pen",b[b.Touch=2]="Touch",b),T_=((t={})[t["2D"]=0]="2D",t[t.WebGL=1]="WebGL",t[t.WebGL2=2]="WebGL2",t),M_=((g=M_||{})[g.Play=0]="Play",g[g.Pause=1]="Pause",g[g.Seeked=2]="Seeked",g[g.VolumeChange=3]="VolumeChange",g[g.RateChange=4]="RateChange",g),P_=((vb={})[vb.Document=0]="Document",vb[vb.DocumentType=1]="DocumentType",vb[vb.Element=2]="Element",vb[vb.Text=3]="Text",vb[vb.CDATA=4]="CDATA",vb[vb.Comment=5]="Comment",vb);function N_(e){return"__ln"in e}var L_,D_=f(function u(){l(this,u),k(this,"length",0),k(this,"head",null),k(this,"tail",null)},[{key:"get",value:function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var t=this.head,n=0;n<e;n++)t=(null==t?void 0:t.next)||null;return t}},{key:"addNode",value:function(e){var t,n={value:e,previous:null,next:null};e.__ln=n,e.previousSibling&&N_(e.previousSibling)?(t=e.previousSibling.__ln.next,n.next=t,n.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=n,t&&(t.previous=n)):e.nextSibling&&N_(e.nextSibling)&&e.nextSibling.__ln.previous?(t=e.nextSibling.__ln.previous,n.previous=t,n.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=n,t&&(t.next=n)):(this.head&&(this.head.previous=n),n.next=this.head,this.head=n),null===n.next&&(this.tail=n),this.length++}},{key:"removeNode",value:function(e){var t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}]),F_=function(e,t){return"".concat(e,"@").concat(t)},U_=f(function u(){var w=this;l(this,u),k(this,"frozen",!1),k(this,"locked",!1),k(this,"texts",[]),k(this,"attributes",[]),k(this,"attributeMap",new WeakMap),k(this,"removes",[]),k(this,"mapRemoves",[]),k(this,"movedMap",{}),k(this,"addedSet",new Set),k(this,"movedSet",new Set),k(this,"droppedSet",new Set),k(this,"removesSubTreeCache",new Set),k(this,"mutationCb"),k(this,"blockClass"),k(this,"blockSelector"),k(this,"maskTextClass"),k(this,"maskTextSelector"),k(this,"inlineStylesheet"),k(this,"maskInputOptions"),k(this,"maskTextFn"),k(this,"maskInputFn"),k(this,"keepIframeSrcFn"),k(this,"recordCanvas"),k(this,"inlineImages"),k(this,"slimDOMOptions"),k(this,"dataURLOptions"),k(this,"doc"),k(this,"mirror"),k(this,"iframeManager"),k(this,"stylesheetManager"),k(this,"shadowDomManager"),k(this,"canvasManager"),k(this,"processedNodeManager"),k(this,"unattachedDoc"),k(this,"processMutations",function(e){e.forEach(w.processMutation),w.emit()}),k(this,"emit",function(){if(!w.frozen&&!w.locked){for(var i=[],o=new Set,a=new D_,s=function(e){for(var t=e,n=-2;-2===n;)n=(t=t&&t.nextSibling)&&w.mirror.getId(t);return n},e=function(t){var e=u_.parentNode(t);if(e&&E_(t)){var n=!1;if(t.nodeType===Node.TEXT_NODE){var r=e.tagName;if("TEXTAREA"===r)return;"STYLE"===r&&w.addedSet.has(e)&&(n=!0)}r=t0(e)?w.mirror.getId(I_(t)):w.mirror.getId(e),e=s(t);if(-1===r||-1===e)return a.addNode(t);n=P0(t,{doc:w.doc,mirror:w.mirror,blockClass:w.blockClass,blockSelector:w.blockSelector,maskTextClass:w.maskTextClass,maskTextSelector:w.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:w.inlineStylesheet,maskInputOptions:w.maskInputOptions,maskTextFn:w.maskTextFn,maskInputFn:w.maskInputFn,slimDOMOptions:w.slimDOMOptions,dataURLOptions:w.dataURLOptions,recordCanvas:w.recordCanvas,inlineImages:w.inlineImages,onSerialize:function(e){k_(e,w.mirror)&&w.iframeManager.addIframe(e),S_(e,w.mirror)&&w.stylesheetManager.trackLinkElement(e),__(t)&&w.shadowDomManager.addShadowRoot(u_.shadowRoot(t),w.doc)},onIframeLoad:function(e,t){w.iframeManager.attachIframe(e,t),w.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:function(e,t){w.stylesheetManager.attachLinkElement(e,t)},cssCaptured:n});n&&(i.push({parentId:r,nextId:e,node:n}),o.add(n.id))}};w.mapRemoves.length;)w.mirror.removeNodeFromMap(w.mapRemoves.shift());var t,n=Ae(w.movedSet);try{for(n.s();!(t=n.n()).done;){var r=t.value;z_(w.removesSubTreeCache,r,w.mirror)&&!w.movedSet.has(u_.parentNode(r))||e(r)}}catch(Me){n.e(Me)}finally{n.f()}var u,l=Ae(w.addedSet);try{for(l.s();!(u=l.n()).done;){var c=u.value;!j_(w.droppedSet,c)&&!z_(w.removesSubTreeCache,c,w.mirror)||j_(w.movedSet,c)?e(c):w.droppedSet.add(c)}}catch(Me){l.e(Me)}finally{l.f()}for(var d=null;a.length;){var f,h,p=null;if(!(p=d&&(f=w.mirror.getId(u_.parentNode(d.value)),h=s(d.value),-1!==f)&&-1!==h?d:p))for(var g=a.tail;g;){var m=g,g=g.previous;if(m){var v=w.mirror.getId(u_.parentNode(m.value));if(-1!==s(m.value)){if(-1!==v){p=m;break}v=m.value,v=u_.parentNode(v);if(v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE){v=u_.host(v);if(-1!==w.mirror.getId(v)){p=m;break}}}}}if(!p){for(;a.head;)a.removeNode(a.head.value);break}d=p.previous,a.removeNode(p.value),e(p.value)}var y={texts:w.texts.map(function(e){var t=e.node,n=u_.parentNode(t);return n&&"TEXTAREA"===n.tagName&&w.genTextAreaValueMutation(n),{id:w.mirror.getId(t),value:e.value}}).filter(function(e){return!o.has(e.id)}).filter(function(e){return w.mirror.has(e.id)}),attributes:w.attributes.map(function(e){var t,n,r=e.attributes;return"string"==typeof r.style&&(t=JSON.stringify(e.styleDiff),n=JSON.stringify(e._unchangedStyles),t.length<r.style.length)&&(t+n).split("var(").length===r.style.split("var(").length&&(r.style=e.styleDiff),{id:w.mirror.getId(e.node),attributes:r}}).filter(function(e){return!o.has(e.id)}).filter(function(e){return w.mirror.has(e.id)}),removes:w.removes,adds:i};(y.texts.length||y.attributes.length||y.removes.length||y.adds.length)&&(w.texts=[],w.attributes=[],w.attributeMap=new WeakMap,w.removes=[],w.addedSet=new Set,w.movedSet=new Set,w.droppedSet=new Set,w.removesSubTreeCache=new Set,w.movedMap={},w.mutationCb(y))}}),k(this,"genTextAreaValueMutation",function(e){var t=w.attributeMap.get(e),n=(t||(w.attributes.push(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}}),w.attributeMap.set(e,t)),Array.from(u_.childNodes(e),function(e){return u_.textContent(e)||""}).join(""));t.attributes.value=a0({element:e,maskInputOptions:w.maskInputOptions,tagName:e.tagName,type:u0(e),value:n,maskInputFn:w.maskInputFn})}),k(this,"processMutation",function(a){if(!w_(a.target,w.mirror,w.slimDOMOptions))switch(a.type){case"characterData":var e=u_.textContent(a.target);y_(a.target,w.blockClass,w.blockSelector,!1)||e===a.oldValue||w.texts.push({value:O0(a.target,w.maskTextClass,w.maskTextSelector,!0)&&e?w.maskTextFn?w.maskTextFn(e,v_(a.target)):e.replace(/[\S]/g,"*"):e,node:a.target});break;case"attributes":var t,n=a.target,e=a.attributeName,s=a.target.getAttribute(e);if("value"===e&&(t=u0(n),s=a0({element:n,maskInputOptions:w.maskInputOptions,tagName:n.tagName,type:t,value:s,maskInputFn:w.maskInputFn})),!y_(a.target,w.blockClass,w.blockSelector,!1)&&s!==a.oldValue){var r=w.attributeMap.get(a.target);if("IFRAME"===n.tagName&&"src"===e&&!w.keepIframeSrcFn(s)){if(n.contentDocument)return;e="rr_src"}if(r||(r={node:a.target,attributes:{},styleDiff:{},_unchangedStyles:{}},w.attributes.push(r),w.attributeMap.set(a.target,r)),"type"===e&&"INPUT"===n.tagName&&"password"===(a.oldValue||"").toLowerCase()&&n.setAttribute("data-rr-is-password","true"),!R0(n.tagName,e))if(r.attributes[e]=E0(w.doc,s0(n.tagName),s0(e),s),"style"===e){if(!w.unattachedDoc)try{w.unattachedDoc=document.implementation.createHTMLDocument()}catch(W){w.unattachedDoc=w.doc}var i=w.unattachedDoc.createElement("span");a.oldValue&&i.setAttribute("style",a.oldValue);for(var o=0,u=Array.from(n.style);o<u.length;o++){var l=u[o],c=n.style.getPropertyValue(l),d=n.style.getPropertyPriority(l);c!==i.style.getPropertyValue(l)||d!==i.style.getPropertyPriority(l)?r.styleDiff[l]=""===d?c:[c,d]:r._unchangedStyles[l]=[c,d]}for(var f=0,h=Array.from(i.style);f<h.length;f++){var p=h[f];""===n.style.getPropertyValue(p)&&(r.styleDiff[p]=!1)}}else"open"===e&&"DIALOG"===n.tagName&&(n.matches("dialog:modal")?r.attributes.rr_open_mode="modal":r.attributes.rr_open_mode="non-modal")}break;case"childList":return y_(a.target,w.blockClass,w.blockSelector,!0)?void 0:"TEXTAREA"===a.target.tagName?void w.genTextAreaValueMutation(a.target):(a.addedNodes.forEach(function(e){return w.genAdds(e,a.target)}),void a.removedNodes.forEach(function(e){var t=w.mirror.getId(e),n=t0(a.target)?w.mirror.getId(u_.host(a.target)):w.mirror.getId(a.target);if(!y_(a.target,w.blockClass,w.blockSelector,!1)&&!w_(e,w.mirror,w.slimDOMOptions)&&-1!==w.mirror.getId(e)){if(w.addedSet.has(e))B_(w.addedSet,e),w.droppedSet.add(e);else if(!(w.addedSet.has(a.target)&&-1===t||function s(e,t){var n;return!t0(e)&&(n=t.getId(e),!t.has(n)||(!(n=u_.parentNode(e))||n.nodeType!==e.DOCUMENT_NODE)&&(!n||s(n,t)))}(a.target,w.mirror)))if(w.movedSet.has(e)&&w.movedMap[F_(t,n)])B_(w.movedSet,e);else{w.removes.push({parentId:n,id:t,isShadow:!(!t0(a.target)||!n0(a.target))||void 0});for(var r=w.removesSubTreeCache,i=[e];i.length;){var o=i.pop();r.has(o)||(r.add(o),u_.childNodes(o).forEach(function(e){return i.push(e)}))}}w.mapRemoves.push(e)}}))}}),k(this,"genAdds",function(t,e){if(!w.processedNodeManager.inOtherBuffer(t,w)&&!w.addedSet.has(t)&&!w.movedSet.has(t)){if(w.mirror.hasNode(t)){if(w_(t,w.mirror,w.slimDOMOptions))return;w.movedSet.add(t);var n=null;(n=e&&w.mirror.hasNode(e)?w.mirror.getId(e):n)&&-1!==n&&(w.movedMap[F_(w.mirror.getId(t),n)]=!0)}else w.addedSet.add(t),w.droppedSet["delete"](t);y_(t,w.blockClass,w.blockSelector,!1)||(u_.childNodes(t).forEach(function(e){return w.genAdds(e)}),__(t)&&u_.childNodes(u_.shadowRoot(t)).forEach(function(e){w.processedNodeManager.add(e,w),w.genAdds(e,t)}))}})},[{key:"init",value:function(t){var n=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(function(e){n[e]=t[e]})}},{key:"freeze",value:function(){this.frozen=!0,this.canvasManager.freeze()}},{key:"unfreeze",value:function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}},{key:"isFrozen",value:function(){return this.frozen}},{key:"lock",value:function(){this.locked=!0,this.canvasManager.lock()}},{key:"unlock",value:function(){this.locked=!1,this.canvasManager.unlock(),this.emit()}},{key:"reset",value:function(){this.shadowDomManager.reset(),this.canvasManager.reset()}}]);function B_(t,e){t["delete"](e),u_.childNodes(e).forEach(function(e){return B_(t,e)})}function z_(e,t){return 0!==e.size&&(e=e,t=u_.parentNode(t))&&e.has(t)}function j_(e,t){return 0!==e.size&&function P(e,t){t=u_.parentNode(t);return!!t&&(!!e.has(t)||P(e,t))}(e,t)}var W_=function(e){return L_?function(){try{return e.apply(void 0,arguments)}catch($){if(!L_||!0!==L_($))throw $}}:e},H_=[];function V_(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(P){}return e&&e.target}function Z_(e,t){var n=new U_,e=(H_.push(n),n.init(e),new(a_())(W_(n.processMutations.bind(n))));return e.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),e}function G_(e){var t,r,a,s=e.mouseInteractionCb,i=e.doc,u=e.mirror,l=e.blockClass,c=e.blockSelector,e=e.sampling;return!1===e.mouseInteraction?function(){}:(t=!0===e.mouseInteraction||void 0===e.mouseInteraction?{}:e.mouseInteraction,r=[],a=null,Object.keys(O_).filter(function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==t[e]}).forEach(function(e){var o,t=s0(e),n=(o=e,function(e){var t=V_(e);if(!y_(t,l,c,!0)){var n=null,r=o;if("pointerType"in e){switch(e.pointerType){case"mouse":n=A_.Mouse;break;case"touch":n=A_.Touch;break;case"pen":n=A_.Pen}n===A_.Touch?O_[o]===O_.MouseDown?r="TouchStart":O_[o]===O_.MouseUp&&(r="TouchEnd"):A_.Pen}else b_(e)&&(n=A_.Touch);null!==n?(a=n,(r.startsWith("Touch")&&n===A_.Touch||r.startsWith("Mouse")&&n===A_.Mouse)&&(n=null)):O_[o]===O_.Click&&(n=a,a=null);var i,e=b_(e)?e.changedTouches[0]:e;e&&(t=u.getId(t),i=e.clientX,e=e.clientY,W_(s)(Te({type:O_[r],id:t,x:i,y:e},null!==n&&{pointerType:n})))}});if(window.PointerEvent)switch(O_[e]){case O_.MouseDown:case O_.MouseUp:t=t.replace("mouse","pointer");break;case O_.TouchStart:case O_.TouchEnd:return}r.push(l_(t,n,i))}),W_(function(){r.forEach(function(e){return e()})}))}function Y_(e){var r=e.scrollCb,i=e.doc,o=e.mirror,a=e.blockClass,s=e.blockSelector,e=e.sampling;return l_("scroll",W_(d_(W_(function(e){var t,n,e=V_(e);e&&!y_(e,a,s,!0)&&(t=o.getId(e),e===i&&i.defaultView?(n=p_(i.defaultView),r({id:t,x:n.left,y:n.top})):r({id:t,x:e.scrollLeft,y:e.scrollTop}))}),e.scroll||100)),i)}var J_=["INPUT","TEXTAREA","SELECT"],K_=new WeakMap;function q_(e){return e=e,t=[],eC("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||eC("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||eC("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||eC("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule?(n=Array.from(e.parentRule.cssRules).indexOf(e),t.unshift(n)):e.parentStyleSheet&&(n=Array.from(e.parentStyleSheet.cssRules).indexOf(e),t.unshift(n)),t;var t,n}function X_(e,t,n){var r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function $_(e,t){var n,r=e.mirror,i=e.stylesheetManager,o="#document"===t.nodeName?r.getId(t):r.getId(u_.host(t)),e="#document"===t.nodeName?null==(e=t.defaultView)?void 0:e.Document:null==(r=null==(n=t.ownerDocument)?void 0:n.defaultView)?void 0:r.ShadowRoot,a=null!=e&&e.prototype?Object.getOwnPropertyDescriptor(null==e?void 0:e.prototype,"adoptedStyleSheets"):void 0;return null!==o&&-1!==o&&e&&a?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:function(){var e;return null==(e=a.get)?void 0:e.call(this)},set:function(e){var t=null==(t=a.set)?void 0:t.call(this,e);if(null!==o&&-1!==o)try{i.adoptStyleSheets(e,o)}catch(n){}return t}}),W_(function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})})):function(){}}function Q_(e){var t,n,r,L,D,F,U,B,z,j,W,H,V,Z,G,i=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{},o=e.doc.defaultView;if(!o)return function(){};n=i,r=(i=e).mutationCb,L=i.mousemoveCb,D=i.mouseInteractionCb,F=i.scrollCb,U=i.viewportResizeCb,B=i.inputCb,z=i.mediaInteractionCb,j=i.styleSheetRuleCb,W=i.styleDeclarationCb,H=i.canvasMutationCb,V=i.fontCb,Z=i.selectionCb,G=i.customElementCb,i.mutationCb=function(){n.mutation&&n.mutation.apply(n,arguments),r.apply(void 0,arguments)},i.mousemoveCb=function(){n.mousemove&&n.mousemove.apply(n,arguments),L.apply(void 0,arguments)},i.mouseInteractionCb=function(){n.mouseInteraction&&n.mouseInteraction.apply(n,arguments),D.apply(void 0,arguments)},i.scrollCb=function(){n.scroll&&n.scroll.apply(n,arguments),F.apply(void 0,arguments)},i.viewportResizeCb=function(){n.viewportResize&&n.viewportResize.apply(n,arguments),U.apply(void 0,arguments)},i.inputCb=function(){n.input&&n.input.apply(n,arguments),B.apply(void 0,arguments)},i.mediaInteractionCb=function(){n.mediaInteaction&&n.mediaInteaction.apply(n,arguments),z.apply(void 0,arguments)},i.styleSheetRuleCb=function(){n.styleSheetRule&&n.styleSheetRule.apply(n,arguments),j.apply(void 0,arguments)},i.styleDeclarationCb=function(){n.styleDeclaration&&n.styleDeclaration.apply(n,arguments),W.apply(void 0,arguments)},i.canvasMutationCb=function(){n.canvasMutation&&n.canvasMutation.apply(n,arguments),H.apply(void 0,arguments)},i.fontCb=function(){n.font&&n.font.apply(n,arguments),V.apply(void 0,arguments)},i.selectionCb=function(){n.selection&&n.selection.apply(n,arguments),Z.apply(void 0,arguments)},i.customElementCb=function(){n.customElement&&n.customElement.apply(n,arguments),G.apply(void 0,arguments)},e.recordDOM&&(t=Z_(e,e.doc));ue=(i=e).mousemoveCb,x=i.doc,le=i.mirror;var Y,J,K,q,X,$,Q,a,ee,te,ne,re,s,u,ie,l,c,d,oe,f,h,p,g,ae,se,ue,le,m,v,y,ce,w,b,k,S,_,C,I,E,de=!1===(R=i.sampling).mousemove?function(){}:(i="number"==typeof R.mousemove?R.mousemove:50,R="number"==typeof R.mousemoveCallback?R.mousemoveCallback:500,g=[],ae=d_(W_(function(e){var t=Date.now()-p;ue(g.map(function(e){return e.timeOffset-=t,e}),e),g=[],p=null}),R),R=W_(d_(W_(function(e){var t=V_(e),n=b_(e)?e.changedTouches[0]:e,r=n.clientX,n=n.clientY;p=p||h_(),g.push({x:r,y:n,id:le.getId(t),timeOffset:h_()-p}),ae("undefined"!=typeof DragEvent&&e instanceof DragEvent?x_.Drag:e instanceof MouseEvent?x_.MouseMove:x_.TouchMove)}),i,{trailing:!1})),se=[l_("mousemove",R,x),l_("touchmove",R,x),l_("drag",R,x)],W_(function(){se.forEach(function(e){return e()})})),fe=G_(e),he=Y_(e),pe=(i={win:o},oe=(R=e).viewportResizeCb,R=i.win,h=f=-1,l_("resize",W_(d_(W_(function(){var e=g_(),t=m_();f===e&&h===t||(oe({width:Number(t),height:Number(e)}),f=e,h=t)}),200)),R)),ge=(Q=(x=e).inputCb,a=x.doc,ee=x.mirror,te=x.blockClass,ne=x.blockSelector,re=x.ignoreClass,s=x.ignoreSelector,u=x.maskInputOptions,ie=x.maskInputFn,l=x.userTriggeredOnInput,c=("last"===x.sampling.input?["change"]:["input","change"]).map(function(e){return l_(e,W_(ke),a)}),(d=a.defaultView)?(x=d.Object.getOwnPropertyDescriptor(d.HTMLInputElement.prototype,"value"),i=[[d.HTMLInputElement.prototype,"value"],[d.HTMLInputElement.prototype,"checked"],[d.HTMLSelectElement.prototype,"value"],[d.HTMLTextAreaElement.prototype,"value"],[d.HTMLSelectElement.prototype,"selectedIndex"],[d.HTMLOptionElement.prototype,"selected"]],x&&x.set&&c.push.apply(c,Le(i.map(function(e){return f_(e[0],e[1],{set:function(){W_(ke)({target:this,isTrusted:!1})}},!1,d)}))),W_(function(){c.forEach(function(e){return e()})})):function(){c.forEach(function(e){return e()})}),me=(Y=(R=e).mediaInteractionCb,J=R.blockClass,K=R.blockSelector,q=R.mirror,X=R.sampling,R=R.doc,x=W_(function(a){return d_(W_(function(e){var t,n,r,i,o,e=V_(e);e&&!y_(e,J,K,!0)&&(t=e.currentTime,n=e.volume,r=e.muted,i=e.playbackRate,o=e.loop,Y({type:a,id:q.getId(e),currentTime:t,volume:n,muted:r,playbackRate:i,loop:o}))}),X.media||500)}),$=[l_("play",x(M_.Play),R),l_("pause",x(M_.Pause),R),l_("seeked",x(M_.Seeked),R),l_("volumechange",x(M_.VolumeChange),R),l_("ratechange",x(M_.RateChange),R)],W_(function(){$.forEach(function(e){return e()})})),ve=function(){},ye=function(){},we=function(){},be=function(){};function ke(e){var t,n,r,i=V_(e),e=e.isTrusted,o=i&&i.tagName;!(i=i&&"OPTION"===o?u_.parentElement(i):i)||!o||J_.indexOf(o)<0||y_(i,te,ne,!0)||i.classList.contains(re)||s&&i.matches(s)||(t=i.value,n=!1,"radio"===(r=u0(i)||"")||"checkbox"===r?n=i.checked:(u[o.toLowerCase()]||u[r])&&(t=a0({element:i,maskInputOptions:u,tagName:o,type:r,value:t,maskInputFn:ie})),Se(i,l?{text:t,isChecked:n,userTriggered:e}:{text:t,isChecked:n}),o=i.name,"radio"===r&&o&&n&&a.querySelectorAll('input[type="radio"][name="'.concat(o,'"]')).forEach(function(e){var t;e!==i&&(t=e.value,Se(e,l?{text:t,isChecked:!n,userTriggered:!1}:{text:t,isChecked:!n}))}))}function Se(e,t){var n=K_.get(e);n&&n.text===t.text&&n.isChecked===t.isChecked||(K_.set(e,t),n=ee.getId(e),W_(Q)(Te(Te({},t),{},{id:n})))}e.recordDOM&&(ve=function(e,t){var s=e.styleSheetRuleCb,u=e.mirror,l=e.stylesheetManager,r=t.win;if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return function(){};var n=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(n,{apply:W_(function(e,t,n){var r=Ne(n,2),i=r[0],r=r[1],o=X_(t,u,l.styleMirror),a=o.id,o=o.styleId;return(a&&-1!==a||o&&-1!==o)&&s({id:a,styleId:o,adds:[{rule:i,index:r}]}),e.apply(t,n)})}),r.CSSStyleSheet.prototype.addRule=function(e,t){var n=2<arguments.length&&arguments[2]!==undefined?arguments[2]:this.cssRules.length,e="".concat(e," { ").concat(t," }");return r.CSSStyleSheet.prototype.insertRule.apply(this,[e,n])};var i,o,a=r.CSSStyleSheet.prototype.deleteRule,c=(r.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:W_(function(e,t,n){var r=Ne(n,1)[0],i=X_(t,u,l.styleMirror),o=i.id,i=i.styleId;return(o&&-1!==o||i&&-1!==i)&&s({id:o,styleId:i,removes:[{index:r}]}),e.apply(t,n)})}),r.CSSStyleSheet.prototype.removeRule=function(e){return r.CSSStyleSheet.prototype.deleteRule.apply(this,[e])},r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:W_(function(e,t,n){var r=Ne(n,1)[0],i=X_(t,u,l.styleMirror),o=i.id,i=i.styleId;return(o&&-1!==o||i&&-1!==i)&&s({id:o,styleId:i,replace:r}),e.apply(t,n)})})),r.CSSStyleSheet.prototype.replaceSync&&(o=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(o,{apply:W_(function(e,t,n){var r=Ne(n,1)[0],i=X_(t,u,l.styleMirror),o=i.id,i=i.styleId;return(o&&-1!==o||i&&-1!==i)&&s({id:o,styleId:i,replaceSync:r}),e.apply(t,n)})})),{}),d=(tC("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(tC("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),tC("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),tC("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule)),{});return Object.entries(c).forEach(function(e){var e=Ne(e,2),t=e[0],e=e[1];d[t]={insertRule:e.prototype.insertRule,deleteRule:e.prototype.deleteRule},e.prototype.insertRule=new Proxy(d[t].insertRule,{apply:W_(function(e,t,n){var r=Ne(n,2),i=r[0],r=r[1],o=X_(t.parentStyleSheet,u,l.styleMirror),a=o.id,o=o.styleId;return(a&&-1!==a||o&&-1!==o)&&s({id:a,styleId:o,adds:[{rule:i,index:[].concat(Le(q_(t)),[r||0])}]}),e.apply(t,n)})}),e.prototype.deleteRule=new Proxy(d[t].deleteRule,{apply:W_(function(e,t,n){var r=Ne(n,1)[0],i=X_(t.parentStyleSheet,u,l.styleMirror),o=i.id,i=i.styleId;return(o&&-1!==o||i&&-1!==i)&&s({id:o,styleId:i,removes:[{index:[].concat(Le(q_(t)),[r])}]}),e.apply(t,n)})})}),W_(function(){r.CSSStyleSheet.prototype.insertRule=n,r.CSSStyleSheet.prototype.deleteRule=a,i&&(r.CSSStyleSheet.prototype.replace=i),o&&(r.CSSStyleSheet.prototype.replaceSync=o),Object.entries(c).forEach(function(e){var e=Ne(e,2),t=e[0],e=e[1];e.prototype.insertRule=d[t].insertRule,e.prototype.deleteRule=d[t].deleteRule})})}(e,{win:o}),ye=$_(e,e.doc),i={win:o},b=(x=e).styleDeclarationCb,k=x.mirror,S=x.ignoreCSSAttributes,_=x.stylesheetManager,C=i.win,I=C.CSSStyleDeclaration.prototype.setProperty,C.CSSStyleDeclaration.prototype.setProperty=new Proxy(I,{apply:W_(function(e,t,n){var r,i,o=Ne(n,3),a=o[0],s=o[1],o=o[2];return S.has(a)?I.apply(t,[a,s,o]):(r=(i=X_(null==(i=t.parentRule)?void 0:i.parentStyleSheet,k,_.styleMirror)).id,i=i.styleId,(r&&-1!==r||i&&-1!==i)&&b({id:r,styleId:i,set:{property:a,value:s,priority:o},index:q_(t.parentRule)}),e.apply(t,n))})}),E=C.CSSStyleDeclaration.prototype.removeProperty,C.CSSStyleDeclaration.prototype.removeProperty=new Proxy(E,{apply:W_(function(e,t,n){var r,i,o=Ne(n,1)[0];return S.has(o)?E.apply(t,[o]):(r=(i=X_(null==(i=t.parentRule)?void 0:i.parentStyleSheet,k,_.styleMirror)).id,i=i.styleId,(r&&-1!==r||i&&-1!==i)&&b({id:r,styleId:i,remove:{property:o},index:q_(t.parentRule)}),e.apply(t,n))})}),we=W_(function(){C.CSSStyleDeclaration.prototype.setProperty=I,C.CSSStyleDeclaration.prototype.removeProperty=E}),e.collectFonts)&&(ce=(R=e).fontCb,w=(R=R.doc).defaultView,be=w?(m=[],v=new WeakMap,y=w.FontFace,w.FontFace=function(e,t,n){var r=new y(e,t,n);return v.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r},R=s_(R.fonts,"add",function(e){return function(t){return setTimeout(W_(function(){var e=v.get(t);e&&(ce(e),v["delete"](t))}),0),e.apply(this,[t])}}),m.push(function(){w.FontFace=y}),m.push(R),W_(function(){m.forEach(function(e){return e()})})):function(){});Ie=(x=e).doc,O=x.mirror,A=x.blockClass,T=x.blockSelector,Ee=x.selectionCb,M=!0,(x=W_(function(){var e=Ie.getSelection();if(!(!e||M&&null!=e&&e.isCollapsed)){M=e.isCollapsed||!1;for(var t=[],n=e.rangeCount||0,r=0;r<n;r++){var i=e.getRangeAt(r),o=i.startContainer,a=i.startOffset,s=i.endContainer,i=i.endOffset;y_(o,A,T,!0)||y_(s,A,T,!0)||t.push({start:O.getId(o),startOffset:a,end:O.getId(s),endOffset:i})}Ee({ranges:t})}}))();var _e,R,Ce,x,Ie,O,A,T,Ee,M,Re=l_("selectionchange",x),xe=(R=(i=e).doc,Ce=i.customElementCb,(i=R.defaultView)&&i.customElements?s_(i.customElements,"define",function(r){return function(e,t,n){try{Ce({define:{name:e}})}catch(Pe){console.warn("Custom element callback failed for ".concat(e))}return r.apply(this,[e,t,n])}}):function(){}),Oe=[],P=Ae(e.plugins);try{for(P.s();!(_e=P.n()).done;){var N=_e.value;Oe.push(N.observer(N.callback,o,N.options))}}catch(Me){P.e(Me)}finally{P.f()}return W_(function(){H_.forEach(function(e){return e.reset()}),null!=t&&t.disconnect(),de(),fe(),he(),pe(),ge(),me(),ve(),ye(),we(),be(),Re(),xe(),Oe.forEach(function(e){return e()})})}function eC(e){return"undefined"!=typeof window[e]}function tC(e){return Boolean("undefined"!=typeof window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}for(var nC=f(function u(e){l(this,u),k(this,"iframeIdToRemoteIdMap",new WeakMap),k(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e},[{key:"getId",value:function(e,t,n,r){n=n||this.getIdToRemoteIdMap(e),r=r||this.getRemoteIdToIdMap(e),e=n.get(t);return e||(e=this.generateIdFn(),n.set(t,e),r.set(e,t)),e}},{key:"getIds",value:function(t,e){var n=this,r=this.getIdToRemoteIdMap(t),i=this.getRemoteIdToIdMap(t);return e.map(function(e){return n.getId(t,e,r,i)})}},{key:"getRemoteId",value:function(e,t,n){n=n||this.getRemoteIdToIdMap(e);return"number"!=typeof t?t:n.get(t)||-1}},{key:"getRemoteIds",value:function(t,e){var n=this,r=this.getRemoteIdToIdMap(t);return e.map(function(e){return n.getRemoteId(t,e,r)})}},{key:"reset",value:function(e){e?(this.iframeIdToRemoteIdMap["delete"](e),this.iframeRemoteIdToIdMap["delete"](e)):(this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap)}},{key:"getIdToRemoteIdMap",value:function(e){var t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}},{key:"getRemoteIdToIdMap",value:function(e){var t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}]),rC=f(function u(e){l(this,u),k(this,"iframes",new WeakMap),k(this,"crossOriginIframeMap",new WeakMap),k(this,"crossOriginIframeMirror",new nC(b0)),k(this,"crossOriginIframeStyleMirror"),k(this,"crossOriginIframeRootIdMap",new WeakMap),k(this,"mirror"),k(this,"mutationCb"),k(this,"wrappedEmit"),k(this,"loadListener"),k(this,"stylesheetManager"),k(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new nC(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))},[{key:"addIframe",value:function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}},{key:"addLoadListener",value:function(e){this.loadListener=e}},{key:"attachIframe",value:function(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&null!=(t=e.contentWindow)&&t.addEventListener("message",this.handleMessage.bind(this)),null!=(t=this.loadListener)&&t.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&0<e.contentDocument.adoptedStyleSheets.length&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}},{key:"handleMessage",value:function(e){var t=e;"rrweb"===t.data.type&&t.origin===t.data.origin&&e.source&&(e=this.crossOriginIframeMap.get(e.source))&&(e=this.transformCrossOriginEvent(e,t.data.event))&&this.wrappedEmit(e,t.data.isCheckout)}},{key:"transformCrossOriginEvent",value:function(n,e){var t,r=this;switch(e.type){case R_.FullSnapshot:this.crossOriginIframeMirror.reset(n),this.crossOriginIframeStyleMirror.reset(n),this.replaceIdOnNode(e.data.node,n);var i=e.data.node.id;return this.crossOriginIframeRootIdMap.set(n,i),this.patchRootIdOnNode(e.data.node,i),{timestamp:e.timestamp,type:R_.IncrementalSnapshot,data:{source:x_.Mutation,adds:[{parentId:this.mirror.getId(n),nextId:null,node:e.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case R_.Meta:case R_.Load:case R_.DomContentLoaded:return!1;case R_.Plugin:return e;case R_.Custom:return this.replaceIds(e.data.payload,n,["id","parentId","previousId","nextId"]),e;case R_.IncrementalSnapshot:switch(e.data.source){case x_.Mutation:return e.data.adds.forEach(function(e){r.replaceIds(e,n,["parentId","nextId","previousId"]),r.replaceIdOnNode(e.node,n);var t=r.crossOriginIframeRootIdMap.get(n);t&&r.patchRootIdOnNode(e.node,t)}),e.data.removes.forEach(function(e){r.replaceIds(e,n,["parentId","id"])}),e.data.attributes.forEach(function(e){r.replaceIds(e,n,["id"])}),e.data.texts.forEach(function(e){r.replaceIds(e,n,["id"])}),e;case x_.Drag:case x_.TouchMove:case x_.MouseMove:return e.data.positions.forEach(function(e){r.replaceIds(e,n,["id"])}),e;case x_.ViewportResize:return!1;case x_.MediaInteraction:case x_.MouseInteraction:case x_.Scroll:case x_.CanvasMutation:case x_.Input:return this.replaceIds(e.data,n,["id"]),e;case x_.StyleSheetRule:case x_.StyleDeclaration:return this.replaceIds(e.data,n,["id"]),this.replaceStyleIds(e.data,n,["styleId"]),e;case x_.Font:return e;case x_.Selection:return e.data.ranges.forEach(function(e){r.replaceIds(e,n,["start","end"])}),e;case x_.AdoptedStyleSheet:return this.replaceIds(e.data,n,["id"]),this.replaceStyleIds(e.data,n,["styleIds"]),null!=(t=e.data.styles)&&t.forEach(function(e){r.replaceStyleIds(e,n,["styleId"])}),e}}return!1}},{key:"replace",value:function(e,t,n,r){var i,o=Ae(r);try{for(o.s();!(i=o.n()).done;){var a=i.value;!Array.isArray(t[a])&&"number"!=typeof t[a]||(Array.isArray(t[a])?t[a]=e.getIds(n,t[a]):t[a]=e.getId(n,t[a]))}}catch(Me){o.e(Me)}finally{o.f()}return t}},{key:"replaceIds",value:function(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}},{key:"replaceStyleIds",value:function(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}},{key:"replaceIdOnNode",value:function(e,t){var n=this;this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(function(e){n.replaceIdOnNode(e,t)})}},{key:"patchRootIdOnNode",value:function(e,t){var n=this;e.type===P_.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(function(e){n.patchRootIdOnNode(e,t)})}}]),iC=f(function u(e){l(this,u),k(this,"shadowDoms",new WeakSet),k(this,"mutationCb"),k(this,"scrollCb"),k(this,"bypassOptions"),k(this,"mirror"),k(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()},[{key:"init",value:function(){this.reset(),this.patchAttachShadow(Element,document)}},{key:"addShadowRoot",value:function(e,t){var n,r=this;n0(e)&&!this.shadowDoms.has(e)&&(this.shadowDoms.add(e),n=Z_(Te(Te({},this.bypassOptions),{},{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e),this.restoreHandlers.push(function(){return n.disconnect()}),this.restoreHandlers.push(Y_(Te(Te({},this.bypassOptions),{},{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(function(){e.adoptedStyleSheets&&0<e.adoptedStyleSheets.length&&r.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,r.mirror.getId(u_.host(e))),r.restoreHandlers.push($_({mirror:r.mirror,stylesheetManager:r.bypassOptions.stylesheetManager},e))},0))}},{key:"observeAttachShadow",value:function(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}},{key:"patchAttachShadow",value:function(e,r){var i=this;this.restoreHandlers.push(s_(e.prototype,"attachShadow",function(n){return function(e){var e=n.call(this,e),t=u_.shadowRoot(this);return t&&E_(this)&&i.addShadowRoot(t,r),e}}))}},{key:"reset",value:function(){this.restoreHandlers.forEach(function(e){try{e()}catch(I){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}]),oC="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",aC="undefined"==typeof Uint8Array?[]:new Uint8Array(256),sC=0;sC<oC.length;sC++)aC[oC.charCodeAt(sC)]=sC;var uC=new Map,lC=function(e,t,n){var r;if(e&&(dC(e,t)||"object"===v(e)))return t=n,n=e.constructor.name,(r=uC.get(t))||(r=new Map,uC.set(t,r)),r.has(n)||r.set(n,[]),-1===(n=(t=r.get(n)).indexOf(e))&&(n=t.length,t.push(e)),n};var cC=function(e,t,n){return e.map(function(e){return function r(i,t,n){return i instanceof Array?i.map(function(e){return r(e,t,n)}):null===i?i:i instanceof Float32Array||i instanceof Float64Array||i instanceof Int32Array||i instanceof Uint32Array||i instanceof Uint8Array||i instanceof Uint16Array||i instanceof Int16Array||i instanceof Int8Array||i instanceof Uint8ClampedArray?{rr_type:i.constructor.name,args:[Object.values(i)]}:i instanceof ArrayBuffer?{rr_type:i.constructor.name,base64:function(){for(var e=new Uint8Array(i),t=e.length,n="",r=0;r<t;r+=3)n=(n=(n=(n+=oC[e[r]>>2])+oC[(3&e[r])<<4|e[r+1]>>4])+oC[(15&e[r+1])<<2|e[r+2]>>6])+oC[63&e[r+2]];return t%3==2?n=n.substring(0,n.length-1)+"=":t%3==1&&(n=n.substring(0,n.length-2)+"=="),n}()}:i instanceof DataView?{rr_type:i.constructor.name,args:[r(i.buffer,t,n),i.byteOffset,i.byteLength]}:i instanceof HTMLImageElement?{rr_type:i.constructor.name,src:i.src}:i instanceof HTMLCanvasElement?{rr_type:"HTMLImageElement",src:i.toDataURL()}:i instanceof ImageData?{rr_type:i.constructor.name,args:[r(i.data,t,n),i.width,i.height]}:dC(i,t)||"object"===v(i)?{rr_type:i.constructor.name,index:lC(i,t,n)}:i}(e,t,n)})},dC=function(t,n){var e=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(function(e){return"function"==typeof n[e]});return Boolean(e.find(function(e){return t instanceof n[e]}))};function fC(e,a,s,u){var t=[];try{var n=s_(e.HTMLCanvasElement.prototype,"getContext",function(o){return function(e){for(var t,n=arguments.length,r=new Array(1<n?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return y_(this,a,s,!0)||(t="experimental-webgl"===(t=e)?"webgl":t,"__context"in this||(this.__context=t),u&&["webgl","webgl2"].includes(t)&&(r[0]&&"object"===v(r[0])?(t=r[0]).preserveDrawingBuffer||(t.preserveDrawingBuffer=!0):r.splice(0,1,{preserveDrawingBuffer:!0}))),o.apply(this,[e].concat(r))}});t.push(n)}catch(N){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){t.forEach(function(e){return e()})}}function hC(t,s,u,l,c,d){var n,r=[],e=Ae(Object.getOwnPropertyNames(t));try{for(e.s();!(n=e.n()).done;)!function(){var a=n.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))return;try{if("function"!=typeof t[a])return;var e=s_(t,a,function(o){return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=o.apply(this,t);return lC(i,d,this),"tagName"in this.canvas&&!y_(this.canvas,l,c,!0)&&(r=cC(t,d,this),u(this.canvas,{type:s,property:a,args:r})),i}});r.push(e)}catch(F){e=f_(t,a,{set:function(e){u(this.canvas,{type:s,property:a,args:[e],setter:!0})}});r.push(e)}}()}catch(Me){e.e(Me)}finally{e.f()}return r}var pC="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",gC="undefined"!=typeof window&&window.Blob&&new Blob([Uint8Array.from(atob("KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo="),function(e){return e.charCodeAt(0)})],{type:"text/javascript;charset=utf-8"});function mC(e){var t,n;try{if(t=gC&&(window.URL||window.webkitURL).createObjectURL(gC))return(n=new Worker(t,{name:null==e?void 0:e.name})).addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(t)}),n;throw""}catch(d){return new Worker("data:text/javascript;base64,"+pC,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}var vC,yC,wC,bC,kC=f(function u(e){var n=this,t=(l(this,u),k(this,"pendingCanvasMutations",new Map),k(this,"rafStamps",{latestId:0,invokeId:null}),k(this,"mirror"),k(this,"mutationCb"),k(this,"resetObservers"),k(this,"frozen",!1),k(this,"locked",!1),k(this,"processMutation",function(e,t){(n.rafStamps.invokeId&&n.rafStamps.latestId!==n.rafStamps.invokeId||!n.rafStamps.invokeId)&&(n.rafStamps.invokeId=n.rafStamps.latestId),n.pendingCanvasMutations.has(e)||n.pendingCanvasMutations.set(e,[]),n.pendingCanvasMutations.get(e).push(t)}),e.sampling),t=void 0===t?"all":t,r=e.win,i=e.blockClass,o=e.blockSelector,a=e.recordCanvas,s=e.dataURLOptions;this.mutationCb=e.mutationCb,this.mirror=e.mirror,a&&"all"===t&&this.initCanvasMutationObserver(r,i,o),a&&"number"==typeof t&&this.initCanvasFPSObserver(t,r,i,o,{dataURLOptions:s})},[{key:"reset",value:function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}},{key:"freeze",value:function(){this.frozen=!0}},{key:"unfreeze",value:function(){this.frozen=!1}},{key:"lock",value:function(){this.locked=!0}},{key:"unlock",value:function(){this.locked=!1}},{key:"initCanvasFPSObserver",value:function(e,o,r,i,a){var s=this,t=fC(o,r,i,!0),u=new Map,l=new mC;l.onmessage=function(e){var t,n=e.data.id;u.set(n,!1),"base64"in e.data&&(t=(e=e.data).base64,s.mutationCb({id:n,type:T_["2D"],commands:[{property:"clearRect",args:[0,0,e.width,e.height]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:t}],type:e.type}]},0,0]}]}))};var c=1e3/e,d=0,f=function(e){var t,n;h=(d&&e-d<c||(d=e,t=[],o.document.querySelectorAll("canvas").forEach(function(e){y_(e,r,i,!0)||t.push(e)}),t.forEach((n=P(W().m(function o(t){var n,r,i;return W().w(function(e){for(;;)switch(e.n){case 0:if(n=s.mirror.getId(t),u.get(n))return e.a(2);e.n=1;break;case 1:if(0===t.width||0===t.height)return e.a(2);e.n=2;break;case 2:return u.set(n,!0),["webgl","webgl2"].includes(t.__context)&&(r=t.getContext(t.__context),!1===(null==(i=null==r?void 0:r.getContextAttributes())?void 0:i.preserveDrawingBuffer))&&r.clear(r.COLOR_BUFFER_BIT),e.n=3,createImageBitmap(t);case 3:i=e.v,l.postMessage({id:n,bitmap:i,width:t.width,height:t.height,dataURLOptions:a.dataURLOptions},[i]);case 4:return e.a(2)}},o)})),function(e){return n.apply(this,arguments)}))),requestAnimationFrame(f))},h=requestAnimationFrame(f);this.resetObservers=function(){t(),cancelAnimationFrame(h)}}},{key:"initCanvasMutationObserver",value:function(e,t,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var r,i,o=fC(e,t,n,!1),a=function(a,s,u,l){var t,n=[],e=Ae(Object.getOwnPropertyNames(s.CanvasRenderingContext2D.prototype));try{for(e.s();!(t=e.n()).done;)!function(){var o=t.value;try{if("function"!=typeof s.CanvasRenderingContext2D.prototype[o])return;var e=s_(s.CanvasRenderingContext2D.prototype,o,function(i){return function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return y_(this.canvas,u,l,!0)||setTimeout(function(){var e=cC(n,s,t);a(t.canvas,{type:T_["2D"],property:o,args:e})},0),i.apply(this,n)}});n.push(e)}catch(L){e=f_(s.CanvasRenderingContext2D.prototype,o,{set:function(e){a(this.canvas,{type:T_["2D"],property:o,args:[e],setter:!0})}});n.push(e)}}()}catch(Me){e.e(Me)}finally{e.f()}return function(){n.forEach(function(e){return e()})}}(this.processMutation.bind(this),e,t,n),s=(r=this.processMutation.bind(this),e=e,t=t,n=n,(i=[]).push.apply(i,Le(hC(e.WebGLRenderingContext.prototype,T_.WebGL,r,t,n,e))),"undefined"!=typeof e.WebGL2RenderingContext&&i.push.apply(i,Le(hC(e.WebGL2RenderingContext.prototype,T_.WebGL2,r,t,n,e))),function(){i.forEach(function(e){return e()})});this.resetObservers=function(){o(),a(),s()}}},{key:"startPendingCanvasMutationFlusher",value:function(){var e=this;requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})}},{key:"startRAFTimestamping",value:function(){var t=this,n=function(e){t.rafStamps.latestId=e,requestAnimationFrame(n)};requestAnimationFrame(n)}},{key:"flushPendingCanvasMutations",value:function(){var r=this;this.pendingCanvasMutations.forEach(function(e,t){var n=r.mirror.getId(t);r.flushPendingCanvasMutationFor(t,n)}),requestAnimationFrame(function(){return r.flushPendingCanvasMutations()})}},{key:"flushPendingCanvasMutationFor",value:function(e,t){var n,r;this.frozen||this.locked||(r=this.pendingCanvasMutations.get(e))&&-1!==t&&(n=r.map(function(e){return e.type,j(e,zy)}),r=r[0].type,this.mutationCb({id:t,type:r,commands:n}),this.pendingCanvasMutations["delete"](e))}}]),SC=f(function u(e){l(this,u),k(this,"trackedLinkElements",new WeakSet),k(this,"mutationCb"),k(this,"adoptedStyleSheetCb"),k(this,"styleMirror",new C_),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb},[{key:"attachLinkElement",value:function(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}},{key:"trackLinkElement",value:function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}},{key:"adoptStyleSheets",value:function(e,t){var r=this;if(0!==e.length){var i,o={id:t,styleIds:[]},a=[],n=Ae(e);try{for(n.s();!(i=n.n()).done;)!function(){var e,n=i.value;r.styleMirror.has(n)?e=r.styleMirror.getId(n):(e=r.styleMirror.add(n),a.push({styleId:e,rules:Array.from(n.rules||CSSRule,function(e,t){return{rule:i0(e,n.href),index:t}})})),o.styleIds.push(e)}()}catch(Me){n.e(Me)}finally{n.f()}0<a.length&&(o.styles=a),this.adoptedStyleSheetCb(o)}}},{key:"reset",value:function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}},{key:"trackStylesheetInLinkElement",value:function(e){}}]),_C=f(function u(){l(this,u),k(this,"nodeMap",new WeakMap),k(this,"active",!1)},[{key:"inOtherBuffer",value:function(e,t){e=this.nodeMap.get(e);return e&&Array.from(e).some(function(e){return e!==t})}},{key:"add",value:function(e,t){var n=this;this.active||(this.active=!0,requestAnimationFrame(function(){n.nodeMap=new WeakMap,n.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}},{key:"destroy",value:function(){}}]),CC=!1;try{2!==Array.from([1],function(e){return 2*e})[0]&&(bC=document.createElement("iframe"),document.body.appendChild(bC),Array.from=(null==(Ly=bC.contentWindow)?void 0:Ly.Array.from)||Array.from,document.body.removeChild(bC))}catch(Me){console.debug("Unable to override Array.from",Me)}var IC,EC=new o0;function RC(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{},r=e.emit,i=e.checkoutEveryNms,o=e.checkoutEveryNth,t=e.blockClass,u=void 0===t?"rr-block":t,t=e.blockSelector,l=void 0===t?null:t,t=e.ignoreClass,L=void 0===t?"rr-ignore":t,t=e.ignoreSelector,D=void 0===t?null:t,t=e.maskTextClass,c=void 0===t?"rr-mask":t,t=e.maskTextSelector,d=void 0===t?null:t,t=e.inlineStylesheet,f=void 0===t||t,t=e.maskAllInputs,n=e.maskInputOptions,F=e.slimDOMOptions,h=e.maskInputFn,p=e.maskTextFn,U=e.hooks,B=e.packFn,a=e.sampling,s=void 0===a?{}:a,a=e.dataURLOptions,g=void 0===a?{}:a,a=e.mousemoveWait,m=e.recordDOM,z=void 0===m||m,m=e.recordCanvas,v=void 0!==m&&m,m=e.recordCrossOriginIframes,m=void 0!==m&&m,y=e.recordAfter,j=void 0===y?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":y,y=e.userTriggeredOnInput,W=void 0!==y&&y,y=e.collectFonts,H=void 0!==y&&y,y=e.inlineImages,w=void 0!==y&&y,b=e.plugins,y=e.keepIframeSrcFn,k=void 0===y?function(){return!1}:y,y=e.ignoreCSSAttributes,V=void 0===y?new Set([]):y,S=(L_=e.errorHandler,!m||window.parent===window),_=!1;if(!S)try{window.parent.document&&(_=!1)}catch(Re){_=!0}if(S&&!r)throw new Error("emit function is required");if(!S&&!_)return function(){};void 0!==a&&void 0===s.mousemove&&(s.mousemove=a),EC.reset();var Z,C=!0===t?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:void 0!==n?n:{password:!0},I=M0(F),E=(!function(e){"NodeList"in(e=0<arguments.length&&e!==undefined?e:window)&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}(),0),G=function(e){var t,n=Ae(b||[]);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.eventProcessor&&(e=r.eventProcessor(e))}}catch(Me){n.e(Me)}finally{n.f()}return e=B&&!_?B(e):e};vC=function(e,t){var n;e.timestamp=h_(),null==(n=H_[0])||!n.isFrozen()||e.type===R_.FullSnapshot||e.type===R_.IncrementalSnapshot&&e.data.source===x_.Mutation||H_.forEach(function(e){return e.unfreeze()}),S?null!=r&&r(G(e),t):_&&(n={type:"rrweb",event:G(e),origin:window.location.origin,isCheckout:t},window.parent.postMessage(n,"*")),e.type===R_.FullSnapshot?(Z=e,E=0):e.type!==R_.IncrementalSnapshot||e.data.source===x_.Mutation&&e.data.isAttachIframe||(E++,t=o&&o<=E,n=i&&e.timestamp-Z.timestamp>i,(t||n)&&yC(!0))};var Y,R=function(e){vC({type:R_.IncrementalSnapshot,data:Te({source:x_.Mutation},e)})},J=function(e){return vC({type:R_.IncrementalSnapshot,data:Te({source:x_.Scroll},e)})},K=function(e){return vC({type:R_.IncrementalSnapshot,data:Te({source:x_.CanvasMutation},e)})},x=new SC({mutationCb:R,adoptedStyleSheetCb:function(e){return vC({type:R_.IncrementalSnapshot,data:Te({source:x_.AdoptedStyleSheet},e)})}}),O=new rC({mirror:EC,mutationCb:R,stylesheetManager:x,recordCrossOriginIframes:m,wrappedEmit:vC}),A=Ae(b||[]);try{for(A.s();!(Y=A.n()).done;){var q=Y.value;q.getMirror&&q.getMirror({nodeMirror:EC,crossOriginIframeMirror:O.crossOriginIframeMirror,crossOriginIframeStyleMirror:O.crossOriginIframeStyleMirror})}}catch(Me){A.e(Me)}finally{A.f()}var T=new _C,M=(wC=new kC({recordCanvas:v,mutationCb:K,win:window,blockClass:u,blockSelector:l,mirror:EC,sampling:s.canvas,dataURLOptions:g}),new iC({mutationCb:R,scrollCb:J,bypassOptions:{blockClass:u,blockSelector:l,maskTextClass:c,maskTextSelector:d,inlineStylesheet:f,maskInputOptions:C,dataURLOptions:g,maskTextFn:p,maskInputFn:h,recordCanvas:v,inlineImages:w,sampling:s,slimDOMOptions:I,iframeManager:O,stylesheetManager:x,canvasManager:wC,keepIframeSrcFn:k,processedNodeManager:T},mirror:EC}));yC=function(){var e,t,n,r,i,o,a=0<arguments.length&&arguments[0]!==undefined&&arguments[0];if(z){vC({type:R_.Meta,data:{href:window.location.href,width:m_(),height:g_()}},a),x.reset(),M.init(),H_.forEach(function(e){return e.lock()});s=document,r=void 0===(r=(e=(e={mirror:EC,blockClass:u,blockSelector:l,maskTextClass:c,maskTextSelector:d,inlineStylesheet:f,maskAllInputs:C,maskTextFn:p,maskInputFn:h,slimDOM:I,dataURLOptions:g,recordCanvas:v,inlineImages:w,onSerialize:function(e){k_(e,EC)&&O.addIframe(e),S_(e,EC)&&x.trackLinkElement(e),__(e)&&M.addShadowRoot(u_.shadowRoot(e),document)},onIframeLoad:function(e,t){O.attachIframe(e,t),M.observeAttachShadow(e)},onStylesheetLoad:function(e,t){x.attachLinkElement(e,t)},keepIframeSrcFn:k})||{}).mirror)?new o0:r,t=e.inlineImages,n=e.recordCanvas,i=e.slimDOM,o=e.keepIframeSrcFn;var s=P0(s,{doc:s,mirror:r,blockClass:void 0===(s=e.blockClass)?"rr-block":s,blockSelector:void 0===(r=e.blockSelector)?null:r,maskTextClass:void 0===(s=e.maskTextClass)?"rr-mask":s,maskTextSelector:void 0===(r=e.maskTextSelector)?null:r,skipChild:!1,inlineStylesheet:void 0===(s=e.inlineStylesheet)||s,maskInputOptions:!0===(r=void 0!==(r=e.maskAllInputs)&&r)?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===r?{password:!0}:r,maskTextFn:e.maskTextFn,maskInputFn:e.maskInputFn,slimDOMOptions:M0(void 0!==i&&i),dataURLOptions:e.dataURLOptions,inlineImages:void 0!==t&&t,recordCanvas:void 0!==n&&n,preserveWhiteSpace:e.preserveWhiteSpace,onSerialize:e.onSerialize,onIframeLoad:e.onIframeLoad,iframeLoadTimeout:e.iframeLoadTimeout,onStylesheetLoad:e.onStylesheetLoad,stylesheetLoadTimeout:e.stylesheetLoadTimeout,keepIframeSrcFn:void 0===o?function(){return!1}:o,newlyAddedElement:!1});if(!s)return console.warn("Failed to snapshot the document");vC({type:R_.FullSnapshot,data:{node:s,initialOffset:p_(window)}},a),H_.forEach(function(e){return e.unlock()}),document.adoptedStyleSheets&&0<document.adoptedStyleSheets.length&&x.adoptStyleSheets(document.adoptedStyleSheets,EC.getId(document))}};try{var P=[],X=function(e){return W_(Q_)({mutationCb:R,mousemoveCb:function(e,t){return vC({type:R_.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return vC({type:R_.IncrementalSnapshot,data:Te({source:x_.MouseInteraction},e)})},scrollCb:J,viewportResizeCb:function(e){return vC({type:R_.IncrementalSnapshot,data:Te({source:x_.ViewportResize},e)})},inputCb:function(e){return vC({type:R_.IncrementalSnapshot,data:Te({source:x_.Input},e)})},mediaInteractionCb:function(e){return vC({type:R_.IncrementalSnapshot,data:Te({source:x_.MediaInteraction},e)})},styleSheetRuleCb:function(e){return vC({type:R_.IncrementalSnapshot,data:Te({source:x_.StyleSheetRule},e)})},styleDeclarationCb:function(e){return vC({type:R_.IncrementalSnapshot,data:Te({source:x_.StyleDeclaration},e)})},canvasMutationCb:K,fontCb:function(e){return vC({type:R_.IncrementalSnapshot,data:Te({source:x_.Font},e)})},selectionCb:function(e){vC({type:R_.IncrementalSnapshot,data:Te({source:x_.Selection},e)})},customElementCb:function(e){vC({type:R_.IncrementalSnapshot,data:Te({source:x_.CustomElement},e)})},blockClass:u,ignoreClass:L,ignoreSelector:D,maskTextClass:c,maskTextSelector:d,maskInputOptions:C,inlineStylesheet:f,sampling:s,recordDOM:z,recordCanvas:v,inlineImages:w,userTriggeredOnInput:W,collectFonts:H,doc:e,maskInputFn:h,maskTextFn:p,keepIframeSrcFn:k,blockSelector:l,slimDOMOptions:I,dataURLOptions:g,mirror:EC,iframeManager:O,stylesheetManager:x,shadowDomManager:M,processedNodeManager:T,canvasManager:wC,ignoreCSSAttributes:V,plugins:(null==(e=null==b?void 0:b.filter(function(e){return e.observer}))?void 0:e.map(function(t){return{observer:t.observer,options:t.options,callback:function(e){return vC({type:R_.Plugin,data:{plugin:t.name,payload:e}})}}}))||[]},U)},N=(O.addLoadListener(function(e){try{P.push(X(e.contentDocument))}catch($){console.warn($)}}),function(){yC(),P.push(X(document)),CC=!0});return["interactive","complete"].includes(document.readyState)?N():(P.push(l_("DOMContentLoaded",function(){vC({type:R_.DomContentLoaded,data:{}}),"DOMContentLoaded"===j&&N()})),P.push(l_("load",function(){vC({type:R_.Load,data:{}}),"load"===j&&N()},window))),function(){P.forEach(function(e){try{e()}catch($){String($).toLowerCase().includes("cross-origin")||console.warn($)}}),T.destroy(),CC=!1,L_=void 0}}catch($){console.warn($)}}RC.addCustomEvent=function(e,t){if(!CC)throw new Error("please add custom event after start recording");vC({type:R_.Custom,data:{tag:e,payload:t}})},RC.freezePage=function(){H_.forEach(function(e){return e.freeze()})},RC.takeFullSnapshot=function(e){if(!CC)throw new Error("please take full snapshot after start recording");yC(e)},RC.mirror=EC,(De=IC=IC||{})[De.NotStarted=0]="NotStarted",De[De.Running=1]="Running",De[De.Stopped=2]="Stopped";var xC='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',OC={maskAllText:!0,maskAllInputs:!0,blockAllMedia:!0,autoDetectSensitiveData:!0,mask:[".tdem-mask","[data-tdem-mask]","[data-sensitive]",".sensitive",".private"],block:[".tdem-block","[data-tdem-block]",".secret","[data-secret]","iframe[srcdoc]:not([src])",".replayer-wrapper"],ignore:[".tdem-ignore","[data-tdem-ignore]",'input[type="file"]','input[type="password"]'],maskInputOptions:{password:!0,email:!0,tel:!0,text:!1}},AC=(TC.maskPhone=function(e){return e.replace(this.phoneRegex,function(e){var t=e.replace(/[^\d]/g,"");return 11===t.length?e.substring(0,3)+"****"+e.substring(7):13===t.length?e.substring(0,6)+"****"+e.substring(10):e.substring(0,3)+"****"+e.substring(e.length-4)})},TC.maskIdCard=function(e){return e.replace(this.idCardRegex,function(e){return 18===e.length?e.substring(0,6)+"********"+e.substring(14):15===e.length?e.substring(0,6)+"******"+e.substring(12):e})},TC.maskEmail=function(e){return e.replace(this.emailRegex,function(e){var t,n=e.indexOf("@");return n<=1?"*"+e.substring(1):(t=e.substring(0,n),n=e.substring(n),t.charAt(0)+"***"+t.charAt(t.length-1)+n)})},TC.maskBankCard=function(e){return e.replace(this.bankCardRegex,function(e){var t=e.replace(/[^\d]/g,"");return t.length<13?e:t.substring(0,4)+" **** **** "+t.substring(t.length-4)})},TC.maskIP=function(e){return e.replace(this.ipv4Regex,function(e){e=e.split(".");return e[0]+".*.*."+e[3]})},TC.autoMask=function(e){var t;return e&&"string"==typeof e?(t=this.maskPhone(t=e),t=this.maskIdCard(t),t=this.maskEmail(t),this.maskBankCard(t)):e},TC.hasSensitiveData=function(e){return!(!e||"string"!=typeof e)&&(this.phoneRegex.test(e)||this.idCardRegex.test(e)||this.emailRegex.test(e)||this.bankCardRegex.test(e))},TC.phoneRegex=/1[3-9]\d{9}|(?:\+?86)?1[3-9]\d{9}/g,TC.idCardRegex=/[1-9]\d{5}(?:19|20)\d{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])\d{3}[\dXx]|[1-9]\d{7}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])\d{3}/g,TC.emailRegex=/[\w.-]+@[\w.-]+\.\w{2,}/g,TC.bankCardRegex=/\b\d{4}[\s-]?\d{4}[\s-]?\d{4}[\s-]?\d{1,7}\b/g,TC.ipv4Regex=/\b(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\b/g,TC);function TC(){}function MC(e,t){return void 0===e&&(e={}),h(h(h({},t=void 0===t?OC:t),e),{mask:PC(t.mask,e.mask),block:PC(t.block,e.block),ignore:PC(t.ignore,e.ignore),maskInputOptions:h(h({},t.maskInputOptions),e.maskInputOptions)})}function PC(e,t){e=new Set(Hu(e||[],t||[]));return Array.from(e)}BC.prototype.push=function(e,t){if(this.emitFn=t,3===e.type&&this.isMutationEvent(e)){var n=e.data;if(this.buffer){if(this.enableRepeatDetection&&this.isRepeatPattern(n)){if(this.repeatCount++,3<this.repeatCount)return this.buffer=this.cloneEvent(e),void this.droppedByRepeat++}else this.repeatCount=0;this.mergeInto(n,e.timestamp),this.mergedCount++,(null!=(n=null==(n=this.buffer.data.adds)?void 0:n.length)?n:0)>=this.maxAddsPerMerge&&this.flush()}else this.buffer=this.cloneEvent(e),this.scheduleFlush()}else this.flush(),t(e)},BC.prototype.flush=function(){this.clearTimer(),this.buffer&&this.emitFn&&(this.emitFn(this.buffer),this.buffer=null,this.repeatCount=0)},BC.prototype.destroy=function(){this.flush(),this.clearTimer(),this.emitFn=null},BC.prototype.getStats=function(){return{mergedCount:this.mergedCount,droppedByRepeat:this.droppedByRepeat,cancelledByOffset:this.cancelledByOffset}},BC.prototype.isMutationEvent=function(e){return 0===(null==(e=e.data)?void 0:e.source)},BC.prototype.isRepeatPattern=function(e){var t;return!!this.buffer&&(t=null!=(t=this.buffer.data.adds)?t:[],e=null!=(e=e.adds)?e:[],0!==t.length)&&0!==e.length&&t.length===e.length&&(null==(t=t[0])?void 0:t.parentId)===(null==(t=e[0])?void 0:t.parentId)},BC.prototype.mergeInto=function(e,t){var n,r,i,o;if(this.buffer){var a=this.buffer.data;this.buffer.timestamp=Math.max(this.buffer.timestamp,t);for(var s=this,u=0,l=null!=(t=e.removes)?t:[];u<l.length;u++)!function(t){var e=(null!=(n=a.adds)?n:[]).findIndex(function(e){return(null==(e=e.node)?void 0:e.id)===t.id});0<=e?(a.adds.splice(e,1),s.cancelledByOffset++):(a.removes=null!=(n=a.removes)?n:[],a.removes.push(t))}(l[u]);for(var c=0,d=null!=(t=e.adds)?t:[];c<d.length;c++){var f=d[c];a.adds=null!=(r=a.adds)?r:[],a.adds.push(f)}for(var h=0,p=null!=(t=e.attributes)?t:[];h<p.length;h++)!function(t){a.attributes=null!=(i=a.attributes)?i:[];var e=a.attributes.findIndex(function(e){return e.id===t.id});0<=e?a.attributes[e]=t:a.attributes.push(t)}(p[h]);for(var g=0,m=null!=(t=e.texts)?t:[];g<m.length;g++)!function(t){a.texts=null!=(o=a.texts)?o:[];var e=a.texts.findIndex(function(e){return e.id===t.id});0<=e?a.texts[e]=t:a.texts.push(t)}(m[g])}},BC.prototype.cloneEvent=function(e){var t=e.data;return{type:e.type,timestamp:e.timestamp,data:{source:0,adds:Hu(null!=(e=t.adds)?e:[]),removes:Hu(null!=(e=t.removes)?e:[]),attributes:Hu(null!=(e=t.attributes)?e:[]),texts:Hu(null!=(e=t.texts)?e:[])}}},BC.prototype.scheduleFlush=function(){var e=this;this.clearTimer(),this.flushTimer=setTimeout(function(){e.flushTimer=null,e.flush()},this.windowMs)},BC.prototype.clearTimer=function(){null!==this.flushTimer&&(clearTimeout(this.flushTimer),this.flushTimer=null)};var NC=BC,LC=(UC.prototype.startRecording=function(e){var r,i,n=this;if(void 0===e&&(e={}),"recording"!==this.state){this.mutationLimitReached=!1,this.throttleCount=0,this.throttleWindowStart=Date.now(),this.throttleNotified=!1,this.mutationAddsInWindow=0;var t="buffer"===this.options.mode?12e4:3e5,t="number"==typeof e.checkoutEveryNms&&0<e.checkoutEveryNms?e.checkoutEveryNms:t,o="number"==typeof e.checkoutEveryNth&&0<e.checkoutEveryNth?e.checkoutEveryNth:undefined,a=MC(e.privacy||{},OC),s=h(h(h(h({emit:function(e,t){n.handleEvent(e,t)},checkoutEveryNms:t},o?{checkoutEveryNth:o}:{}),{sampling:{scroll:150,mousemove:!C.ios()&&50,mouseInteraction:!0,input:"last"},slimDOMOptions:{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:!0}}),(t={},(o=a).maskAllInputs!==undefined&&(t.maskAllInputs=o.maskAllInputs),o.maskInputOptions&&(t.maskInputOptions=o.maskInputOptions),null!=(s=o.mask)&&s.length&&(t.maskTextSelector=o.mask.join(",")),null!=(s=o.block)&&s.length&&(t.blockSelector=o.block.join(",")),o.blockAllMedia&&(t.blockSelector=t.blockSelector?t.blockSelector+","+xC:xC,t.ignoreCSSAttributes=new Set(["background-image"])),null!=(s=o.ignore)&&s.length&&(t.ignoreSelector=o.ignore.join(",")),!o.maskTextFn&&!1===o.autoDetectSensitiveData||(t.maskTextFn=(r=o.maskTextFn,i=!1!==o.autoDetectSensitiveData,function(e,t){var n;return e&&(n=e,i&&(n=AC.autoMask(n)),r?r(n,t):n)})),t)),e.rrwebConfig);try{this.hookMutationObserver(),this.stopRecordingFn=RC(s),this.state="recording",this.lastCheckoutTime=Date.now(),this.startCheckpointTimer(),ty("RecorderManager","Recording started with config:",{maskAllText:a.maskAllText,maskAllInputs:a.maskAllInputs,autoDetectSensitiveData:a.autoDetectSensitiveData,mutationLimit:this.mutationLimit,checkpointIntervalMs:12e4})}catch($){iy("RecorderManager","Failed to start recording:",$),this.state="stopped"}}else ry("RecorderManager","Already recording")},UC.prototype.stopRecording=function(){var e;this.stopCheckpointTimer(),null!=(e=this.mutationMerger)&&e.destroy(),this.unhookMutationObserver(),this.stopRecordingFn&&(this.stopRecordingFn(),this.stopRecordingFn=undefined),this.state="stopped",ty("RecorderManager","Recording stopped")},UC.prototype.pauseRecording=function(){"recording"===this.state&&(this.stopRecording(),this.state="paused",ty("RecorderManager","Recording paused"))},UC.prototype.resumeRecording=function(e){void 0===e&&(e={}),"paused"===this.state&&(this.startRecording(e),ty("RecorderManager","Recording resumed"))},UC.prototype.hookMutationObserver=function(){try{var r,e,t=window.MutationObserver;t&&(r=this,(e=function(n){return new t(function(e,t){r.unhookMutationObserver(),r.onMutationHandler(e)&&n(e,t)})}).prototype=t.prototype,window.MutationObserver=e,this.restoreMutationObserver=function(){window.MutationObserver=t},ny("RecorderManager","MutationObserver hooked"))}catch(Me){ry("RecorderManager","Failed to hook MutationObserver:",Me)}},UC.prototype.unhookMutationObserver=function(){this.restoreMutationObserver&&(this.restoreMutationObserver(),this.restoreMutationObserver=null,ny("RecorderManager","MutationObserver restored"))},UC.prototype.onMutationHandler=function(e){var t,n=this;return!this.mutationLimitReached&&(t=(e=e.length)>this.mutationLimit,(e>this.mutationBreadcrumbLimit||t)&&this.emitMutationBreadcrumb(e,t),!t||(this.mutationLimitReached=!0,iy("RecorderManager","Mutation limit reached: "+e+" > "+this.mutationLimit+". Stopping."),setTimeout(function(){var e,t;null!=(t=(e=n.options).onMutationLimitReached)&&t.call(e),n.stopRecording()},0),!1))},UC.prototype.checkMutationLimit=function(e){var n=this;if(this.mutationLimitReached)return!1;if(3!==e.type)return!0;e=e.data;if(0!==(null==e?void 0:e.source))return!0;e=Array.isArray(e.adds)?e.adds.length:0;if(0===e)return!0;this.mutationAddsInWindow+=e;var t=e>this.mutationLimit||this.mutationAddsInWindow>2*this.mutationLimit;return(e>this.mutationBreadcrumbLimit||t)&&this.emitMutationBreadcrumb(e,t),!t||(iy("RecorderManager","Mutation limit: "+e+" adds (window: "+this.mutationAddsInWindow+"). Stopping."),this.mutationLimitReached=!0,setTimeout(function(){var e,t;null!=(t=(e=n.options).onMutationLimitReached)&&t.call(e),n.stopRecording()},0),!1)},UC.prototype.emitMutationBreadcrumb=function(e,t){var n;try{null!=(n=RC.addCustomEvent)&&n.call(RC,"replay.mutations",{count:e,limit:t,timestamp:Date.now()})}catch(l){}},UC.prototype.handleEvent=function(e,t){var n=this,r=(t&&(null!=(r=(i=this.options).onCheckout)&&r.call(i),this.lastCheckoutTime=Date.now(),null!=(i=this.mutationMerger))&&i.flush(),e.type);if(t||2===r||4===r||r<=1||this.checkEventThrottle()){if(3===r&&!this.mutationLimitReached){var i=Date.now();if(12e4<=i-this.lastCheckoutTime){this.lastCheckoutTime=i;try{var o=RC.takeFullSnapshot;"function"==typeof o&&(o(!0),ny("RecorderManager","Inline checkpoint: forced FullSnapshot"))}catch(Me){ry("RecorderManager","Inline checkpoint failed:",Me)}}}this.checkMutationLimit(e)&&(this.mutationMerger?this.mutationMerger.push(e,function(e){n.options.onRecordingEvent(e)}):this.options.onRecordingEvent(e))}},UC.prototype.checkEventThrottle=function(){var e,t=Date.now();if(5e3<t-this.throttleWindowStart&&(this.throttleCount=0,this.throttleWindowStart=t,this.throttleNotified=!1,this.mutationAddsInWindow=0),this.throttleCount++,300<this.throttleCount){if(!this.throttleNotified){this.throttleNotified=!0,ry("RecorderManager","Event throttled: "+this.throttleCount+" events in 5000ms window");try{null!=(e=RC.addCustomEvent)&&e.call(RC,"replay.throttled",{count:this.throttleCount,window:5e3})}catch(d){}}return!1}return!0},UC.prototype.startCheckpointTimer=function(){var t=this;this.stopCheckpointTimer(),this.checkpointTimer=setInterval(function(){if("recording"===t.state&&!t.mutationLimitReached)try{var e=RC.takeFullSnapshot;"function"==typeof e&&(e(!0),t.lastCheckoutTime=Date.now(),ny("RecorderManager","Checkpoint: forced FullSnapshot"))}catch(Me){ry("RecorderManager","Checkpoint FullSnapshot failed:",Me)}},12e4)},UC.prototype.stopCheckpointTimer=function(){null!==this.checkpointTimer&&(clearInterval(this.checkpointTimer),this.checkpointTimer=null)},UC.prototype.getState=function(){return this.state},UC.prototype.isRecording=function(){return"recording"===this.state},UC.prototype.getLastCheckoutTime=function(){return this.lastCheckoutTime},UC.prototype.takeFullSnapshot=function(){var e,t;"recording"===this.state&&this.stopRecordingFn&&(null!=(t=null==(e=this.stopRecordingFn)?void 0:e.takeFullSnapshot)&&t.call(e),this.lastCheckoutTime=Date.now())},UC.prototype.isMutationLimitReached=function(){return this.mutationLimitReached},UC),DC=(FC.prototype.initializeSampling=function(){return null!==this.samplingDecision?{mode:this.currentMode,shouldRecord:!1!==this.currentMode}:Math.random()<this.config.sessionSampleRate?(this.currentMode="session",this.samplingDecision=!0,ty("SamplerManager","Sampled: session mode"),{mode:"session",shouldRecord:!0}):0<this.config.errorSampleRate?(this.currentMode="buffer",this.samplingDecision=!0,ty("SamplerManager","Sampled: buffer mode"),{mode:"buffer",shouldRecord:!0}):(this.currentMode=!1,this.samplingDecision=!1,ty("SamplerManager","Not sampled"),{mode:!1,shouldRecord:!1})},FC.prototype.decideSamplingMode=function(){return this.initializeSampling().mode},FC.prototype.onErrorOccurred=function(e){return"buffer"===this.currentMode&&!this.hasUpgraded&&!!(Math.random()<this.config.errorSampleRate)&&(this.switchMode("session"),this.hasUpgraded=!0)},FC.prototype.switchMode=function(e){var t=this.currentMode;this.currentMode=e,this.samplingDecision=!1!==e,ty("SamplerManager","Mode switched: "+t+" -> "+e)},FC.prototype.getCurrentMode=function(){return this.currentMode},FC.prototype.isSampled=function(){return!0===this.samplingDecision},FC.prototype.isSessionMode=function(){return"session"===this.currentMode},FC.prototype.isBufferMode=function(){return"buffer"===this.currentMode},FC.prototype.upgradeToSessionMode=function(){return"buffer"===this.currentMode&&Math.random()<this.config.errorSampleRate&&(this.currentMode="session",ty("SamplerManager","Upgraded to session mode due to error"),!0)},FC.prototype.forceMode=function(e){this.currentMode=e,this.samplingDecision=!1!==e},FC.prototype.reset=function(){this.currentMode=!1,this.samplingDecision=null},FC.prototype.getConfig=function(){return h({},this.config)},FC);function FC(e){var t;void 0===e&&(e={}),this.currentMode=!1,this.samplingDecision=null,this.hasUpgraded=!1,this.config={sessionSampleRate:null!=(t=e.sessionSampleRate)?t:.1,errorSampleRate:null!=(t=e.errorSampleRate)?t:1}}function UC(e,t){this.state="stopped",this.lastCheckoutTime=0,this.checkpointTimer=null,this.mutationLimitReached=!1,this.mutationMerger=null,this.mutationBreadcrumbLimit=750,this.mutationLimit=1e4,this.restoreMutationObserver=null,this.throttleCount=0,this.throttleWindowStart=0,this.throttleNotified=!1,this.mutationAddsInWindow=0,this.options=e,this.mutationBreadcrumbLimit=null!=(e=null==t?void 0:t.mutationBreadcrumbLimit)?e:750,this.mutationLimit=null!=(e=null==t?void 0:t.mutationLimit)?e:1e4,null!=t&&t.enableMutationMerge&&(this.mutationMerger=new NC({windowMs:null!=(e=null==t?void 0:t.mutationMergeWindowMs)?e:200,maxAddsPerMerge:500,enableRepeatDetection:!0}))}function BC(e){var t;this.buffer=null,this.flushTimer=null,this.repeatCount=0,this.emitFn=null,this.mergedCount=0,this.droppedByRepeat=0,this.cancelledByOffset=0,this.windowMs=null!=(t=null==e?void 0:e.windowMs)?t:200,this.maxAddsPerMerge=null!=(t=null==e?void 0:e.maxAddsPerMerge)?t:500,this.enableRepeatDetection=null==(t=null==e?void 0:e.enableRepeatDetection)||t}function zC(e){for(var t=e.length;0<=--t;)e[t]=0}var jC=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),WC=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),HC=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),VC=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ZC=new Array(576),GC=(zC(ZC),new Array(60)),YC=(zC(GC),new Array(512)),JC=(zC(YC),new Array(256)),KC=(zC(JC),new Array(29));zC(KC);var qC,XC,$C,QC=new Array(30);function eI(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function tI(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}zC(QC);var nI=function(e){return e<256?YC[e]:YC[256+(e>>>7)]},rI=function(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255},iI=function(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,rI(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)},oI=function(e,t,n){iI(e,n[2*t],n[2*t+1])},aI=function(e,t){for(var n=0;n|=1&e,e>>>=1,n<<=1,0<--t;);return n>>>1},sI=function(e,t,n){for(var r,i=new Array(16),o=0,a=1;a<=15;a++)o=o+n[a-1]<<1,i[a]=o;for(r=0;r<=t;r++){var s=e[2*r+1];0!==s&&(e[2*r]=aI(i[s]++,s))}},uI=function(e){for(var t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},lI=function(e){8<e.bi_valid?rI(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},cI=function(e,t,n,r){var i=2*t,o=2*n;return e[i]<e[o]||e[i]===e[o]&&r[t]<=r[n]},dI=function(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&cI(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!cI(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r},fI=function(e,t,n){var r,i,o,a,s=0;if(0!==e.sym_next)for(;r=255&e.pending_buf[e.sym_buf+s++],r+=(255&e.pending_buf[e.sym_buf+s++])<<8,i=e.pending_buf[e.sym_buf+s++],0==r?oI(e,i,t):(o=JC[i],oI(e,o+256+1,t),0!==(a=jC[o])&&(i-=KC[o],iI(e,i,a)),o=nI(--r),oI(e,o,n),0!==(a=WC[o])&&(r-=QC[o],iI(e,r,a))),s<e.sym_next;);oI(e,256,t)},hI=function(e,t){var n,r,i,o=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,u=t.stat_desc.elems,l=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<u;n++)0!==o[2*n]?(e.heap[++e.heap_len]=l=n,e.depth[n]=0):o[2*n+1]=0;for(;e.heap_len<2;)o[2*(i=e.heap[++e.heap_len]=l<2?++l:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=a[2*i+1]);for(t.max_code=l,n=e.heap_len>>1;1<=n;n--)dI(e,o,n);for(i=u;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],dI(e,o,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,o[2*i]=o[2*n]+o[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,o[2*n+1]=o[2*r+1]=i,e.heap[1]=i++,dI(e,o,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1];for(var c,d,f,h,p,g=e,m=t.dyn_tree,v=t.max_code,y=t.stat_desc.static_tree,w=t.stat_desc.has_stree,b=t.stat_desc.extra_bits,k=t.stat_desc.extra_base,S=t.stat_desc.max_length,_=0,C=0;C<=15;C++)g.bl_count[C]=0;for(m[2*g.heap[g.heap_max]+1]=0,c=g.heap_max+1;c<573;c++)(C=m[2*m[2*(d=g.heap[c])+1]+1]+1)>S&&(C=S,_++),m[2*d+1]=C,v<d||(g.bl_count[C]++,h=0,k<=d&&(h=b[d-k]),p=m[2*d],g.opt_len+=p*(C+h),w&&(g.static_len+=p*(y[2*d+1]+h)));if(0!==_){do{for(C=S-1;0===g.bl_count[C];)C--}while(g.bl_count[C]--,g.bl_count[C+1]+=2,g.bl_count[S]--,0<(_-=2));for(C=S;0!==C;C--)for(d=g.bl_count[C];0!==d;)(f=g.heap[--c])>v||(m[2*f+1]!==C&&(g.opt_len+=(C-m[2*f+1])*m[2*f],m[2*f+1]=C),d--)}sI(o,l,e.bl_count)},pI=function(e,t,n){var r,i,o=-1,a=t[1],s=0,u=7,l=4;for(0===a&&(u=138,l=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=t[2*(r+1)+1],++s<u&&i===a||(s<l?e.bl_tree[2*i]+=s:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,o=i,l=(s=0)===a?(u=138,3):i===a?(u=6,3):(u=7,4))},gI=function(e,t,n){var r,i,o=-1,a=t[1],s=0,u=7,l=4;for(0===a&&(u=138,l=3),r=0;r<=n;r++)if(i=a,a=t[2*(r+1)+1],!(++s<u&&i===a)){if(s<l)for(;oI(e,i,e.bl_tree),0!=--s;);else 0!==i?(i!==o&&(oI(e,i,e.bl_tree),s--),oI(e,16,e.bl_tree),iI(e,s-3,2)):s<=10?(oI(e,17,e.bl_tree),iI(e,s-3,3)):(oI(e,18,e.bl_tree),iI(e,s-11,7));o=i,l=(s=0)===a?(u=138,3):i===a?(u=6,3):(u=7,4)}},mI=!1,vI=function(e,t,n,r){iI(e,0+(r?1:0),3),lI(e),rI(e,n),rI(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n},ub=function(e){if(!mI){for(var t,n,r,i=new Array(16),o=0,a=0;a<28;a++)for(KC[a]=o,t=0;t<1<<jC[a];t++)JC[o++]=a;for(JC[o-1]=a,a=r=0;a<16;a++)for(QC[a]=r,t=0;t<1<<WC[a];t++)YC[r++]=a;for(r>>=7;a<30;a++)for(QC[a]=r<<7,t=0;t<1<<WC[a]-7;t++)YC[256+r++]=a;for(n=0;n<=15;n++)i[n]=0;for(t=0;t<=143;)ZC[2*t+1]=8,t++,i[8]++;for(;t<=255;)ZC[2*t+1]=9,t++,i[9]++;for(;t<=279;)ZC[2*t+1]=7,t++,i[7]++;for(;t<=287;)ZC[2*t+1]=8,t++,i[8]++;for(sI(ZC,287,i),t=0;t<30;t++)GC[2*t+1]=5,GC[2*t]=aI(t,5);qC=new eI(ZC,jC,257,286,15),XC=new eI(GC,WC,0,30,15),$C=new eI(new Array(0),HC,0,19,7),mI=!0}e.l_desc=new tI(e.dyn_ltree,qC),e.d_desc=new tI(e.dyn_dtree,XC),e.bl_desc=new tI(e.bl_tree,$C),e.bi_buf=0,e.bi_valid=0,uI(e)},Mr=vI,Yb=function(e,t,n,r){var i,o,a,s=0;if(0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){for(var t=4093624447,n=0;n<=31;n++,t>>>=1)if(1&t&&0!==e.dyn_ltree[2*n])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(n=32;n<256;n++)if(0!==e.dyn_ltree[2*n])return 1;return 0}(e)),hI(e,e.l_desc),hI(e,e.d_desc),s=function(e){var t;for(pI(e,e.dyn_ltree,e.l_desc.max_code),pI(e,e.dyn_dtree,e.d_desc.max_code),hI(e,e.bl_desc),t=18;3<=t&&0===e.bl_tree[2*VC[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),(o=e.static_len+3+7>>>3)<=(i=e.opt_len+3+7>>>3)&&(i=o)):i=o=n+5,n+4<=i&&-1!==t)vI(e,t,n,r);else if(4===e.strategy||o===i)iI(e,2+(r?1:0),3),fI(e,ZC,GC);else{iI(e,4+(r?1:0),3);var u=e,l=(t=e.l_desc.max_code+1,n=e.d_desc.max_code+1,s+1);for(iI(u,t-257,5),iI(u,n-1,5),iI(u,l-4,4),a=0;a<l;a++)iI(u,u.bl_tree[2*VC[a]+1],3);gI(u,u.dyn_ltree,t-1),gI(u,u.dyn_dtree,n-1),fI(e,e.dyn_ltree,e.dyn_dtree)}uI(e),r&&lI(e)},Uw=function(e,t,n){return e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=n,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(JC[n]+256+1)]++,e.dyn_dtree[2*nI(t)]++),e.sym_next===e.sym_end},Ue=function(e){iI(e,2,3),oI(e,256,ZC),16===(e=e).bi_valid?(rI(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)},yI=function(e,t,n,r){for(var i=65535&e|0,o=e>>>16&65535|0,a=0;0!==n;){for(n-=a=2e3<n?2e3:n;o=o+(i=i+t[r++]|0)|0,--a;);i%=65521,o%=65521}return i|o<<16|0},wI=new Uint32Array(function(){for(var e=[],t=0;t<256;t++){for(var n=t,r=0;r<8;r++)n=1&n?3988292384^n>>>1:n>>>1;e[t]=n}return e}()),bI=function(e,t,n,r){var i=wI,o=r+n;e^=-1;for(var a=r;a<o;a++)e=e>>>8^i[255&(e^t[a])];return-1^e},kI={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},S={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},SI=ub,_I=Mr,CI=Yb,II=Uw,EI=Ue,RI=S.Z_NO_FLUSH,xI=S.Z_PARTIAL_FLUSH,OI=S.Z_FULL_FLUSH,AI=S.Z_FINISH,TI=S.Z_BLOCK,MI=S.Z_OK,PI=S.Z_STREAM_END,NI=S.Z_STREAM_ERROR,LI=S.Z_DATA_ERROR,DI=S.Z_BUF_ERROR,FI=S.Z_DEFAULT_COMPRESSION,UI=S.Z_FILTERED,BI=S.Z_HUFFMAN_ONLY,zI=S.Z_RLE,jI=S.Z_FIXED,WI=S.Z_UNKNOWN,HI=S.Z_DEFLATED,Me=function(e,t){return e.msg=kI[t],t},VI=function(e){return 2*e-(4<e?9:0)},ZI=function(e){for(var t=e.length;0<=--t;)e[t]=0},GI=function(e){for(var t,n,r=e.w_size,i=t=e.hash_size;n=e.head[--i],e.head[i]=r<=n?n-r:0,--t;);for(i=t=r;n=e.prev[--i],e.prev[i]=r<=n?n-r:0,--t;);},YI=function(e,t,n){return(t<<e.hash_shift^n)&e.hash_mask},JI=function(e){var t=e.state,n=t.pending;0!==(n=e.avail_out<n?e.avail_out:n)&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending)&&(t.pending_out=0)},KI=function(e,t){CI(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,JI(e.strm)},qI=function(e,t){e.pending_buf[e.pending++]=t},XI=function(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t},$I=function(e,t,n,r){var i=e.avail_in;return 0===(i=r<i?r:i)?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),n),1===e.state.wrap?e.adler=yI(e.adler,t,i,n):2===e.state.wrap&&(e.adler=bI(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)},QI=function(e,t){var n,r,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,u=e.w_size-262<e.strstart?e.strstart-(e.w_size-262):0,l=e.window,c=e.w_mask,d=e.prev,f=e.strstart+258,h=l[o+a-1],p=l[o+a];e.good_match<=e.prev_length&&(i>>=2),e.lookahead<s&&(s=e.lookahead);do{if(l[(n=t)+a]===p&&l[n+a-1]===h&&l[n]===l[o]&&l[++n]===l[o+1]){for(o+=2,n++;l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&o<f;);if(r=258-(f-o),o=f-258,a<r){if(e.match_start=t,s<=(a=r))break;h=l[o+a-1],p=l[o+a]}}}while((t=d[t&c])>u&&0!=--i);return a<=e.lookahead?a:e.lookahead},eE=function(e){var t,n,r=e.w_size;do{if(t=e.window_size-e.lookahead-e.strstart,r+(r-262)<=e.strstart&&(e.window.set(e.window.subarray(r,r+r-t),0),e.match_start-=r,e.strstart-=r,e.block_start-=r,e.strstart<e.insert&&(e.insert=e.strstart),GI(e),t+=r),0===e.strm.avail_in)break;if(t=$I(e.strm,e.window,e.strstart+e.lookahead,t),e.lookahead+=t,3<=e.lookahead+e.insert)for(n=e.strstart-e.insert,e.ins_h=e.window[n],e.ins_h=YI(e,e.ins_h,e.window[n+1]);e.insert&&(e.ins_h=YI(e,e.ins_h,e.window[n+3-1]),e.prev[n&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=n,n++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<262&&0!==e.strm.avail_in)},tE=function(e,t){for(var n,r,i,o=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,a=0,s=e.strm.avail_in;n=65535,i=e.bi_valid+42>>3,!(e.strm.avail_out<i||(n=(i=e.strm.avail_out-i)<(n=n>(r=e.strstart-e.block_start)+e.strm.avail_in?r+e.strm.avail_in:n)?i:n)<o&&(0===n&&t!==AI||t===RI||n!==r+e.strm.avail_in)||(a=t===AI&&n===r+e.strm.avail_in?1:0,_I(e,0,0,a),e.pending_buf[e.pending-4]=n,e.pending_buf[e.pending-3]=n>>8,e.pending_buf[e.pending-2]=~n,e.pending_buf[e.pending-1]=~n>>8,JI(e.strm),r&&(n<r&&(r=n),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+r),e.strm.next_out),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r,e.block_start+=r,n-=r),n&&($I(e.strm,e.strm.output,e.strm.next_out,n),e.strm.next_out+=n,e.strm.avail_out-=n,e.strm.total_out+=n),0!==a)););return(s-=e.strm.avail_in)&&(s>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=s&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.strstart<e.insert)&&(e.insert=e.strstart),e.window.set(e.strm.input.subarray(e.strm.next_in-s,e.strm.next_in),e.strstart),e.strstart+=s,e.insert+=e.w_size-e.insert<s?e.w_size-e.insert:s),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),a?4:t!==RI&&t!==AI&&0===e.strm.avail_in&&e.strstart===e.block_start?2:(i=e.window_size-e.strstart,e.strm.avail_in>i&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,i+=e.w_size,e.strstart<e.insert)&&(e.insert=e.strstart),(i=i>e.strm.avail_in?e.strm.avail_in:i)&&($I(e.strm,e.window,e.strstart,i),e.strstart+=i,e.insert+=e.w_size-e.insert<i?e.w_size-e.insert:i),e.high_water<e.strstart&&(e.high_water=e.strstart),o=(i=65535<e.pending_buf_size-(i=e.bi_valid+42>>3)?65535:e.pending_buf_size-i)>e.w_size?e.w_size:i,((r=e.strstart-e.block_start)>=o||(r||t===AI)&&t!==RI&&0===e.strm.avail_in&&r<=i)&&(n=i<r?i:r,a=t===AI&&0===e.strm.avail_in&&n===r?1:0,_I(e,e.block_start,n,a),e.block_start+=n,JI(e.strm)),a?3:1)},ES=function(e,t){for(var n,r;;){if(e.lookahead<262){if(eE(e),e.lookahead<262&&t===RI)return 1;if(0===e.lookahead)break}if(n=0,3<=e.lookahead&&(e.ins_h=YI(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-262&&(e.match_length=QI(e,n)),3<=e.match_length)if(r=II(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&3<=e.lookahead){for(e.match_length--;e.strstart++,e.ins_h=YI(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=YI(e,e.ins_h,e.window[e.strstart+1]);else r=II(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(KI(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,t===AI?(KI(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(KI(e,!1),0===e.strm.avail_out)?1:2},pb=function(e,t){for(var n,r,i;;){if(e.lookahead<262){if(eE(e),e.lookahead<262&&t===RI)return 1;if(0===e.lookahead)break}if(n=0,3<=e.lookahead&&(e.ins_h=YI(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-262&&(e.match_length=QI(e,n),e.match_length<=5)&&(e.strategy===UI||3===e.match_length&&4096<e.strstart-e.match_start)&&(e.match_length=2),3<=e.prev_length&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-3,r=II(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=YI(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(KI(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((r=II(e,0,e.window[e.strstart-1]))&&KI(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=II(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,t===AI?(KI(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(KI(e,!1),0===e.strm.avail_out)?1:2};function nE(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}var rE=[new nE(0,0,0,0,tE),new nE(4,4,8,4,ES),new nE(4,5,16,8,ES),new nE(4,6,32,32,ES),new nE(4,4,16,16,pb),new nE(8,16,32,32,pb),new nE(8,16,128,128,pb),new nE(8,32,128,256,pb),new nE(32,128,258,1024,pb),new nE(32,258,258,4096,pb)];function iE(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=HI,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),ZI(this.dyn_ltree),ZI(this.dyn_dtree),ZI(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),ZI(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),ZI(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var oE=function(e){var t;return!e||!(t=e.state)||t.strm!==e||42!==t.status&&57!==t.status&&69!==t.status&&73!==t.status&&91!==t.status&&103!==t.status&&113!==t.status&&666!==t.status?1:0},aE=function(e){if(oE(e))return Me(e,NI);e.total_in=e.total_out=0,e.data_type=WI;var t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=2===t.wrap?57:t.wrap?42:113,e.adler=2===t.wrap?0:1,t.last_flush=-2,SI(t),MI},sE=function(e){var t=aE(e);return t===MI&&((e=e.state).window_size=2*e.w_size,ZI(e.head),e.max_lazy_match=rE[e.level].max_lazy,e.good_match=rE[e.level].good_length,e.nice_match=rE[e.level].nice_length,e.max_chain_length=rE[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),t},r=function(e,t,n,r,i,o){if(!e)return NI;var a=1;if(t===FI&&(t=6),r<0?(a=0,r=-r):15<r&&(a=2,r-=16),i<1||9<i||n!==HI||r<8||15<r||t<0||9<t||o<0||jI<o||8===r&&1!==a)return Me(e,NI);8===r&&(r=9);var s=new iE;return(e.state=s).strm=e,s.status=42,s.wrap=a,s.gzhead=null,s.w_bits=r,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=new Uint8Array(2*s.w_size),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new Uint8Array(s.pending_buf_size),s.sym_buf=s.lit_bufsize,s.sym_end=3*(s.lit_bufsize-1),s.level=t,s.strategy=o,s.method=n,sE(e)},uE=r,lE=function(e,t){return oE(e)||2!==e.state.wrap?NI:(e.state.gzhead=t,MI)},cE=function(e,t){if(oE(e)||TI<t||t<0)return e?Me(e,NI):NI;var n=e.state;if(!e.output||0!==e.avail_in&&!e.input||666===n.status&&t!==AI)return Me(e,0===e.avail_out?DI:NI);var r=n.last_flush;if(n.last_flush=t,0!==n.pending){if(JI(e),0===e.avail_out)return n.last_flush=-1,MI}else if(0===e.avail_in&&VI(t)<=VI(r)&&t!==AI)return Me(e,DI);if(666===n.status&&0!==e.avail_in)return Me(e,DI);if(42===n.status&&0===n.wrap&&(n.status=113),42===n.status){r=HI+(n.w_bits-8<<4)<<8;if(r|=(n.strategy>=BI||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(r|=32),XI(n,r+=31-r%31),0!==n.strstart&&(XI(n,e.adler>>>16),XI(n,65535&e.adler)),e.adler=1,n.status=113,JI(e),0!==n.pending)return n.last_flush=-1,MI}if(57===n.status)if(e.adler=0,qI(n,31),qI(n,139),qI(n,8),n.gzhead)qI(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),qI(n,255&n.gzhead.time),qI(n,n.gzhead.time>>8&255),qI(n,n.gzhead.time>>16&255),qI(n,n.gzhead.time>>24&255),qI(n,9===n.level?2:n.strategy>=BI||n.level<2?4:0),qI(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(qI(n,255&n.gzhead.extra.length),qI(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=bI(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69;else if(qI(n,0),qI(n,0),qI(n,0),qI(n,0),qI(n,0),qI(n,9===n.level?2:n.strategy>=BI||n.level<2?4:0),qI(n,3),n.status=113,JI(e),0!==n.pending)return n.last_flush=-1,MI;if(69===n.status){if(n.gzhead.extra){for(var i=n.pending,o=(65535&n.gzhead.extra.length)-n.gzindex;n.pending+o>n.pending_buf_size;){var a=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+a),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>i&&(e.adler=bI(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex+=a,JI(e),0!==n.pending)return n.last_flush=-1,MI;i=0,o-=a}r=new Uint8Array(n.gzhead.extra);n.pending_buf.set(r.subarray(n.gzindex,n.gzindex+o),n.pending),n.pending+=o,n.gzhead.hcrc&&n.pending>i&&(e.adler=bI(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex=0}n.status=73}if(73===n.status){if(n.gzhead.name){var s,u=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>u&&(e.adler=bI(e.adler,n.pending_buf,n.pending-u,u)),JI(e),0!==n.pending)return n.last_flush=-1,MI;u=0}}while(s=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,qI(n,s),0!=s);n.gzhead.hcrc&&n.pending>u&&(e.adler=bI(e.adler,n.pending_buf,n.pending-u,u)),n.gzindex=0}n.status=91}if(91===n.status){if(n.gzhead.comment){var l,c=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>c&&(e.adler=bI(e.adler,n.pending_buf,n.pending-c,c)),JI(e),0!==n.pending)return n.last_flush=-1,MI;c=0}}while(l=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,qI(n,l),0!=l);n.gzhead.hcrc&&n.pending>c&&(e.adler=bI(e.adler,n.pending_buf,n.pending-c,c))}n.status=103}if(103===n.status){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(JI(e),0!==n.pending))return n.last_flush=-1,MI;qI(n,255&e.adler),qI(n,e.adler>>8&255),e.adler=0}if(n.status=113,JI(e),0!==n.pending)return n.last_flush=-1,MI}if(0!==e.avail_in||0!==n.lookahead||t!==RI&&666!==n.status){r=0===n.level?tE(n,t):n.strategy===BI?function(e,t){for(var n;;){if(0===e.lookahead&&(eE(e),0===e.lookahead)){if(t===RI)return 1;break}if(e.match_length=0,n=II(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(KI(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===AI?(KI(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(KI(e,!1),0===e.strm.avail_out)?1:2}(n,t):n.strategy===zI?function(e,t){for(var n,r,i,o,a=e.window;;){if(e.lookahead<=258){if(eE(e),e.lookahead<=258&&t===RI)return 1;if(0===e.lookahead)break}if(e.match_length=0,3<=e.lookahead&&0<e.strstart&&(r=a[i=e.strstart-1])===a[++i]&&r===a[++i]&&r===a[++i]){for(o=e.strstart+258;r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&i<o;);e.match_length=258-(o-i),e.lookahead<e.match_length&&(e.match_length=e.lookahead)}if(3<=e.match_length?(n=II(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=II(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(KI(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===AI?(KI(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(KI(e,!1),0===e.strm.avail_out)?1:2}(n,t):rE[n.level].func(n,t);if(3!==r&&4!==r||(n.status=666),1===r||3===r)return 0===e.avail_out&&(n.last_flush=-1),MI;if(2===r&&(t===xI?EI(n):t!==TI&&(_I(n,0,0,!1),t===OI)&&(ZI(n.head),0===n.lookahead)&&(n.strstart=0,n.block_start=0,n.insert=0),JI(e),0===e.avail_out))return n.last_flush=-1,MI}return t!==AI||!(n.wrap<=0)&&(2===n.wrap?(qI(n,255&e.adler),qI(n,e.adler>>8&255),qI(n,e.adler>>16&255),qI(n,e.adler>>24&255),qI(n,255&e.total_in),qI(n,e.total_in>>8&255),qI(n,e.total_in>>16&255),qI(n,e.total_in>>24&255)):(XI(n,e.adler>>>16),XI(n,65535&e.adler)),JI(e),0<n.wrap&&(n.wrap=-n.wrap),0!==n.pending)?MI:PI},dE=function(e){var t;return oE(e)?NI:(t=e.state.status,e.state=null,113===t?Me(e,LI):MI)},fE=function(e,t){var n=t.length;if(oE(e))return NI;var r=e.state,i=r.wrap;if(2===i||1===i&&42!==r.status||r.lookahead)return NI;1===i&&(e.adler=yI(e.adler,t,n,0)),r.wrap=0,r.w_size<=n&&(0===i&&(ZI(r.head),r.strstart=0,r.block_start=0,r.insert=0),(o=new Uint8Array(r.w_size)).set(t.subarray(n-r.w_size,n),0),t=o,n=r.w_size);var o=e.avail_in,a=e.next_in,s=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,eE(r);3<=r.lookahead;){for(var u=r.strstart,l=r.lookahead-2;r.ins_h=YI(r,r.ins_h,r.window[u+3-1]),r.prev[u&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=u,u++,--l;);r.strstart=u,r.lookahead=2,eE(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,e.next_in=a,e.input=s,e.avail_in=o,r.wrap=i,MI},hE=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},pE=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!==v(n))throw new TypeError(n+"must be non-object");for(var r in n)hE(n,r)&&(e[r]=n[r])}}return e},gE=function(e){for(var t=0,n=0,r=e.length;n<r;n++)t+=e[n].length;for(var i=new Uint8Array(t),o=0,a=0,s=e.length;o<s;o++){var u=e[o];i.set(u,a),a+=u.length}return i},mE=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(zR){mE=!1}for(var vE=new Uint8Array(256),yE=0;yE<256;yE++)vE[yE]=252<=yE?6:248<=yE?5:240<=yE?4:224<=yE?3:192<=yE?2:1;vE[254]=vE[254]=1;var wE=function(e){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(e);for(var t,n,r,i,o=e.length,a=0,s=0;s<o;s++)55296==(64512&(n=e.charCodeAt(s)))&&s+1<o&&56320==(64512&(r=e.charCodeAt(s+1)))&&(n=65536+(n-55296<<10)+(r-56320),s++),a+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Uint8Array(a),s=i=0;i<a;s++)55296==(64512&(n=e.charCodeAt(s)))&&s+1<o&&56320==(64512&(r=e.charCodeAt(s+1)))&&(n=65536+(n-55296<<10)+(r-56320),s++),n<128?t[i++]=n:(n<2048?t[i++]=192|n>>>6:(n<65536?t[i++]=224|n>>>12:(t[i++]=240|n>>>18,t[i++]=128|n>>>12&63),t[i++]=128|n>>>6&63),t[i++]=128|63&n);return t},bE=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},kE=Object.prototype.toString,SE=S.Z_NO_FLUSH,_E=S.Z_SYNC_FLUSH,CE=S.Z_FULL_FLUSH,IE=S.Z_FINISH,EE=S.Z_OK,RE=S.Z_STREAM_END,xE=S.Z_DEFAULT_COMPRESSION,OE=S.Z_DEFAULT_STRATEGY,AE=S.Z_DEFLATED;function TE(e){this.options=pE({level:xE,method:AE,chunkSize:16384,windowBits:15,memLevel:8,strategy:OE},e||{});var e=this.options,t=(e.raw&&0<e.windowBits?e.windowBits=-e.windowBits:e.gzip&&0<e.windowBits&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new bE,this.strm.avail_out=0,uE(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy));if(t!==EE)throw new Error(kI[t]);if(e.header&&lE(this.strm,e.header),e.dictionary){e="string"==typeof e.dictionary?wE(e.dictionary):"[object ArrayBuffer]"===kE.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary;if((t=fE(this.strm,e))!==EE)throw new Error(kI[t]);this._dict_set=!0}}function ME(e,t){t=new TE(t);if(t.push(e,!0),t.err)throw t.msg||kI[t.err];return t.result}TE.prototype.push=function(e,t){var n,r,i=this.strm,o=this.options.chunkSize;if(this.ended)return!1;for(r=t===~~t?t:!0===t?IE:SE,"string"==typeof e?i.input=wE(e):"[object ArrayBuffer]"===kE.call(e)?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;;)if(0===i.avail_out&&(i.output=new Uint8Array(o),i.next_out=0,i.avail_out=o),(r===_E||r===CE)&&i.avail_out<=6)this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;else{if(cE(i,r)===RE)return 0<i.next_out&&this.onData(i.output.subarray(0,i.next_out)),n=dE(this.strm),this.onEnd(n),this.ended=!0,n===EE;if(0!==i.avail_out){if(0<r&&0<i.next_out)this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;else if(0===i.avail_in)break}else this.onData(i.output)}return!0},TE.prototype.onData=function(e){this.chunks.push(e)},TE.prototype.onEnd=function(e){e===EE&&(this.result=gE(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var w={Deflate:TE,deflate:ME,deflateRaw:function(e,t){return(t=t||{}).raw=!0,ME(e,t)},gzip:function(e,t){return(t=t||{}).gzip=!0,ME(e,t)},constants:S},PE=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),NE=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),LE=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),DE=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),FE=function(e,t,n,r,i,o,a,s){for(var u,l,c,d,f,h,p,g,m,v=s.bits,y=0,w=0,b=0,k=0,S=0,_=0,C=0,I=0,E=0,R=0,x=null,O=new Uint16Array(16),A=new Uint16Array(16),T=null,y=0;y<=15;y++)O[y]=0;for(w=0;w<r;w++)O[t[n+w]]++;for(S=v,k=15;1<=k&&0===O[k];k--);if(k<S&&(S=k),0===k)i[o++]=20971520,i[o++]=20971520,s.bits=1;else{for(b=1;b<k&&0===O[b];b++);for(S<b&&(S=b),y=I=1;y<=15;y++)if((I=(I<<1)-O[y])<0)return-1;if(0<I&&(0===e||1!==k))return-1;for(A[1]=0,y=1;y<15;y++)A[y+1]=A[y]+O[y];for(w=0;w<r;w++)0!==t[n+w]&&(a[A[t[n+w]]++]=w);if(h=0===e?(x=T=a,20):1===e?(x=PE,T=NE,257):(x=LE,T=DE,0),y=b,f=o,C=w=R=0,c=-1,d=(E=1<<(_=S))-1,1===e&&852<E||2===e&&592<E)return 1;for(;;){for(m=a[w]+1<h?(g=0,a[w]):a[w]>=h?(g=T[a[w]-h],x[a[w]-h]):(g=96,0),u=1<<(p=y-C),b=l=1<<_;i[f+(R>>C)+(l-=u)]=p<<24|g<<16|m|0,0!==l;);for(u=1<<y-1;R&u;)u>>=1;if(0!==u?R=(R&u-1)+u:R=0,w++,0==--O[y]){if(y===k)break;y=t[n+a[w]]}if(S<y&&(R&d)!==c){for(f+=b,I=1<<(_=y-(C=0===C?S:C));_+C<k&&!((I-=O[_+C])<=0);)_++,I<<=1;if(E+=1<<_,1===e&&852<E||2===e&&592<E)return 1;i[c=R&d]=S<<24|_<<16|f-o|0}}0!==R&&(i[f+R]=y-C<<24|64<<16|0),s.bits=S}return 0},UE=S.Z_FINISH,BE=S.Z_BLOCK,zE=S.Z_TREES,jE=S.Z_OK,WE=S.Z_STREAM_END,HE=S.Z_NEED_DICT,VE=S.Z_STREAM_ERROR,ZE=S.Z_DATA_ERROR,GE=S.Z_MEM_ERROR,YE=S.Z_BUF_ERROR,JE=S.Z_DEFLATED,KE=16209,qE=function(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)};function XE(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var $E,QE,eR=function(e){var t;return!e||!(t=e.state)||t.strm!==e||t.mode<16180||16211<t.mode?1:0},tR=function(e){var t;return eR(e)?VE:(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=16180,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(852),t.distcode=t.distdyn=new Int32Array(592),t.sane=1,t.back=-1,jE)},nR=function(e){var t;return eR(e)?VE:((t=e.state).wsize=0,t.whave=0,t.wnext=0,tR(e))},rR=function(e,t){var n,r;return eR(e)||(r=e.state,t<0?(n=0,t=-t):(n=5+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t))?VE:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,nR(e))},ct=function(e,t){var n;return e?(n=new XE,(e.state=n).strm=e,n.window=null,n.mode=16180,(n=rR(e,t))!==jE&&(e.state=null),n):VE},iR=!0,oR=function(e,t,n,r){var i,e=e.state;return null===e.window&&(e.wsize=1<<e.wbits,e.wnext=0,e.whave=0,e.window=new Uint8Array(e.wsize)),e.wsize<=r?(e.window.set(t.subarray(n-e.wsize,n),0),e.wnext=0,e.whave=e.wsize):((i=e.wsize-e.wnext)>r&&(i=r),e.window.set(t.subarray(n-r,n-r+i),e.wnext),(r-=i)?(e.window.set(t.subarray(n-r,n),0),e.wnext=r,e.whave=e.wsize):(e.wnext+=i,e.wnext===e.wsize&&(e.wnext=0),e.whave<e.wsize&&(e.whave+=i))),0},aR=nR,sR=ct,uR=function(e,t){var n,r,i,o,a,s,u,l,c,d,f,h,p,g,m,v,y,w,b,k,S,_,C,I,E=0,R=new Uint8Array(4),x=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(eR(e)||!e.output||!e.input&&0!==e.avail_in)return VE;16191===(n=e.state).mode&&(n.mode=16192),a=e.next_out,i=e.output,o=e.next_in,r=e.input,l=n.hold,c=n.bits,d=s=e.avail_in,f=u=e.avail_out,_=jE;e:for(;;)switch(n.mode){case 16180:if(0===n.wrap)n.mode=16192;else{for(;c<16;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}2&n.wrap&&35615===l?(0===n.wbits&&(n.wbits=15),R[n.check=0]=255&l,R[1]=l>>>8&255,n.check=bI(n.check,R,2,0),c=l=0,n.mode=16181):(n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&l)<<8)+(l>>8))%31?(e.msg="incorrect header check",n.mode=KE):(15&l)!==JE?(e.msg="unknown compression method",n.mode=KE):(c-=4,S=8+(15&(l>>>=4)),0===n.wbits&&(n.wbits=S),15<S||S>n.wbits?(e.msg="invalid window size",n.mode=KE):(n.dmax=1<<n.wbits,n.flags=0,e.adler=n.check=1,n.mode=512&l?16189:16191,c=l=0)))}break;case 16181:for(;c<16;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}if(n.flags=l,(255&n.flags)!==JE){e.msg="unknown compression method",n.mode=KE;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=KE;break}n.head&&(n.head.text=l>>8&1),512&n.flags&&4&n.wrap&&(R[0]=255&l,R[1]=l>>>8&255,n.check=bI(n.check,R,2,0)),c=l=0,n.mode=16182;case 16182:for(;c<32;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}n.head&&(n.head.time=l),512&n.flags&&4&n.wrap&&(R[0]=255&l,R[1]=l>>>8&255,R[2]=l>>>16&255,R[3]=l>>>24&255,n.check=bI(n.check,R,4,0)),c=l=0,n.mode=16183;case 16183:for(;c<16;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}n.head&&(n.head.xflags=255&l,n.head.os=l>>8),512&n.flags&&4&n.wrap&&(R[0]=255&l,R[1]=l>>>8&255,n.check=bI(n.check,R,2,0)),c=l=0,n.mode=16184;case 16184:if(1024&n.flags){for(;c<16;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}n.length=l,n.head&&(n.head.extra_len=l),512&n.flags&&4&n.wrap&&(R[0]=255&l,R[1]=l>>>8&255,n.check=bI(n.check,R,2,0)),c=l=0}else n.head&&(n.head.extra=null);n.mode=16185;case 16185:if(1024&n.flags&&((h=(h=n.length)>s?s:h)&&(n.head&&(S=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(o,o+h),S)),512&n.flags&&4&n.wrap&&(n.check=bI(n.check,r,h,o)),s-=h,o+=h,n.length-=h),n.length))break e;n.length=0,n.mode=16186;case 16186:if(2048&n.flags){if(0===s)break e;for(h=0;S=r[o+h++],n.head&&S&&n.length<65536&&(n.head.name+=String.fromCharCode(S)),S&&h<s;);if(512&n.flags&&4&n.wrap&&(n.check=bI(n.check,r,h,o)),s-=h,o+=h,S)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=16187;case 16187:if(4096&n.flags){if(0===s)break e;for(h=0;S=r[o+h++],n.head&&S&&n.length<65536&&(n.head.comment+=String.fromCharCode(S)),S&&h<s;);if(512&n.flags&&4&n.wrap&&(n.check=bI(n.check,r,h,o)),s-=h,o+=h,S)break e}else n.head&&(n.head.comment=null);n.mode=16188;case 16188:if(512&n.flags){for(;c<16;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}if(4&n.wrap&&l!==(65535&n.check)){e.msg="header crc mismatch",n.mode=KE;break}c=l=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=16191;break;case 16189:for(;c<32;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}e.adler=n.check=qE(l),c=l=0,n.mode=16190;case 16190:if(0===n.havedict)return e.next_out=a,e.avail_out=u,e.next_in=o,e.avail_in=s,n.hold=l,n.bits=c,HE;e.adler=n.check=1,n.mode=16191;case 16191:if(t===BE||t===zE)break e;case 16192:if(n.last)l>>>=7&c,c-=7&c,n.mode=16206;else{for(;c<3;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}switch(n.last=1&l,--c,3&(l>>>=1)){case 0:n.mode=16193;break;case 1:if(function(e){if(iR){$E=new Int32Array(512),QE=new Int32Array(32);for(var t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(FE(1,e.lens,0,288,$E,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;FE(2,e.lens,0,32,QE,0,e.work,{bits:5}),iR=!1}e.lencode=$E,e.lenbits=9,e.distcode=QE,e.distbits=5}(n),n.mode=16199,t!==zE)break;l>>>=2,c-=2;break e;case 2:n.mode=16196;break;case 3:e.msg="invalid block type",n.mode=KE}l>>>=2,c-=2}break;case 16193:for(l>>>=7&c,c-=7&c;c<32;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}if((65535&l)!=(l>>>16^65535)){e.msg="invalid stored block lengths",n.mode=KE;break}if(n.length=65535&l,c=l=0,n.mode=16194,t===zE)break e;case 16194:n.mode=16195;case 16195:if(h=n.length){if(0===(h=u<(h=s<h?s:h)?u:h))break e;i.set(r.subarray(o,o+h),a),s-=h,o+=h,u-=h,a+=h,n.length-=h}else n.mode=16191;break;case 16196:for(;c<14;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}if(n.nlen=257+(31&l),l>>>=5,c-=5,n.ndist=1+(31&l),l>>>=5,c-=5,n.ncode=4+(15&l),l>>>=4,c-=4,286<n.nlen||30<n.ndist){e.msg="too many length or distance symbols",n.mode=KE;break}n.have=0,n.mode=16197;case 16197:for(;n.have<n.ncode;){for(;c<3;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}n.lens[x[n.have++]]=7&l,l>>>=3,c-=3}for(;n.have<19;)n.lens[x[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,C={bits:n.lenbits},_=FE(0,n.lens,0,19,n.lencode,0,n.work,C),n.lenbits=C.bits,_){e.msg="invalid code lengths set",n.mode=KE;break}n.have=0,n.mode=16198;case 16198:for(;n.have<n.nlen+n.ndist;){for(;v=(E=n.lencode[l&(1<<n.lenbits)-1])>>>16&255,y=65535&E,!((m=E>>>24)<=c);){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}if(y<16)l>>>=m,c-=m,n.lens[n.have++]=y;else{if(16===y){for(I=m+2;c<I;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}if(l>>>=m,c-=m,0===n.have){e.msg="invalid bit length repeat",n.mode=KE;break}S=n.lens[n.have-1],h=3+(3&l),l>>>=2,c-=2}else if(17===y){for(I=m+3;c<I;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}S=0,h=3+(7&(l>>>=m)),l>>>=3,c=c-m-3}else{for(I=m+7;c<I;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}S=0,h=11+(127&(l>>>=m)),l>>>=7,c=c-m-7}if(n.have+h>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=KE;break}for(;h--;)n.lens[n.have++]=S}}if(n.mode===KE)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=KE;break}if(n.lenbits=9,C={bits:n.lenbits},_=FE(1,n.lens,0,n.nlen,n.lencode,0,n.work,C),n.lenbits=C.bits,_){e.msg="invalid literal/lengths set",n.mode=KE;break}if(n.distbits=6,n.distcode=n.distdyn,C={bits:n.distbits},_=FE(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,C),n.distbits=C.bits,_){e.msg="invalid distances set",n.mode=KE;break}if(n.mode=16199,t===zE)break e;case 16199:n.mode=16200;case 16200:if(6<=s&&258<=u){e.next_out=a,e.avail_out=u,e.next_in=o,e.avail_in=s,n.hold=l,n.bits=c,function(e,t){var n,r,i,o,a,s,u=e.state,l=e.next_in,c=e.input,d=l+(e.avail_in-5),f=e.next_out,h=e.output,p=f-(t-e.avail_out),g=f+(e.avail_out-257),m=u.dmax,v=u.wsize,y=u.whave,w=u.wnext,b=u.window,k=u.hold,S=u.bits,_=u.lencode,C=u.distcode,I=(1<<u.lenbits)-1,E=(1<<u.distbits)-1;t:do{for(S<15&&(k+=c[l++]<<S,S+=8,k+=c[l++]<<S,S+=8),n=_[k&I];;){if(k>>>=r=n>>>24,S-=r,0==(r=n>>>16&255))h[f++]=65535&n;else{if(!(16&r)){if(0==(64&r)){n=_[(65535&n)+(k&(1<<r)-1)];continue}if(32&r){u.mode=16191;break t}e.msg="invalid literal/length code",u.mode=16209;break t}for(i=65535&n,(r&=15)&&(S<r&&(k+=c[l++]<<S,S+=8),i+=k&(1<<r)-1,k>>>=r,S-=r),S<15&&(k+=c[l++]<<S,S+=8,k+=c[l++]<<S,S+=8),n=C[k&E];;){if(k>>>=r=n>>>24,S-=r,!(16&(r=n>>>16&255))){if(0==(64&r)){n=C[(65535&n)+(k&(1<<r)-1)];continue}e.msg="invalid distance code",u.mode=16209;break t}if(o=65535&n,S<(r&=15)&&(k+=c[l++]<<S,(S+=8)<r)&&(k+=c[l++]<<S,S+=8),(o+=k&(1<<r)-1)>m){e.msg="invalid distance too far back",u.mode=16209;break t}if(k>>>=r,S-=r,o>(r=f-p)){if((r=o-r)>y&&u.sane){e.msg="invalid distance too far back",u.mode=16209;break t}if(s=b,(a=0)===w){if(a+=v-r,r<i){for(i-=r;h[f++]=b[a++],--r;);a=f-o,s=h}}else if(w<r){if(a+=v+w-r,(r-=w)<i){for(i-=r;h[f++]=b[a++],--r;);if(a=0,w<i){for(i-=r=w;h[f++]=b[a++],--r;);a=f-o,s=h}}}else if(a+=w-r,r<i){for(i-=r;h[f++]=b[a++],--r;);a=f-o,s=h}for(;2<i;)h[f++]=s[a++],h[f++]=s[a++],h[f++]=s[a++],i-=3;i&&(h[f++]=s[a++],1<i)&&(h[f++]=s[a++])}else{for(a=f-o;h[f++]=h[a++],h[f++]=h[a++],h[f++]=h[a++],2<(i-=3););i&&(h[f++]=h[a++],1<i)&&(h[f++]=h[a++])}break}}break}}while(l<d&&f<g);l-=i=S>>3,k&=(1<<(S-=i<<3))-1,e.next_in=l,e.next_out=f,e.avail_in=l<d?d-l+5:5-(l-d),e.avail_out=f<g?g-f+257:257-(f-g),u.hold=k,u.bits=S}(e,f),a=e.next_out,i=e.output,u=e.avail_out,o=e.next_in,r=e.input,s=e.avail_in,l=n.hold,c=n.bits,16191===n.mode&&(n.back=-1);break}for(n.back=0;v=(E=n.lencode[l&(1<<n.lenbits)-1])>>>16&255,y=65535&E,!((m=E>>>24)<=c);){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}if(v&&0==(240&v)){for(w=m,b=v,k=y;v=(E=n.lencode[k+((l&(1<<w+b)-1)>>w)])>>>16&255,y=65535&E,!(w+(m=E>>>24)<=c);){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}l>>>=w,c-=w,n.back+=w}if(l>>>=m,c-=m,n.back+=m,n.length=y,0===v){n.mode=16205;break}if(32&v){n.back=-1,n.mode=16191;break}if(64&v){e.msg="invalid literal/length code",n.mode=KE;break}n.extra=15&v,n.mode=16201;case 16201:if(n.extra){for(I=n.extra;c<I;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}n.length+=l&(1<<n.extra)-1,l>>>=n.extra,c-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=16202;case 16202:for(;v=(E=n.distcode[l&(1<<n.distbits)-1])>>>16&255,y=65535&E,!((m=E>>>24)<=c);){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}if(0==(240&v)){for(w=m,b=v,k=y;v=(E=n.distcode[k+((l&(1<<w+b)-1)>>w)])>>>16&255,y=65535&E,!(w+(m=E>>>24)<=c);){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}l>>>=w,c-=w,n.back+=w}if(l>>>=m,c-=m,n.back+=m,64&v){e.msg="invalid distance code",n.mode=KE;break}n.offset=y,n.extra=15&v,n.mode=16203;case 16203:if(n.extra){for(I=n.extra;c<I;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}n.offset+=l&(1<<n.extra)-1,l>>>=n.extra,c-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=KE;break}n.mode=16204;case 16204:if(0===u)break e;if(n.offset>(h=f-u)){if((h=n.offset-h)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=KE;break}p=h>n.wnext?(h-=n.wnext,n.wsize-h):n.wnext-h,h>n.length&&(h=n.length),g=n.window}else g=i,p=a-n.offset,h=n.length;for(u-=h=u<h?u:h,n.length-=h;i[a++]=g[p++],--h;);0===n.length&&(n.mode=16200);break;case 16205:if(0===u)break e;i[a++]=n.length,u--,n.mode=16200;break;case 16206:if(n.wrap){for(;c<32;){if(0===s)break e;s--,l|=r[o++]<<c,c+=8}if(f-=u,e.total_out+=f,n.total+=f,4&n.wrap&&f&&(e.adler=n.check=(n.flags?bI:yI)(n.check,i,f,a-f)),f=u,4&n.wrap&&(n.flags?l:qE(l))!==n.check){e.msg="incorrect data check",n.mode=KE;break}c=l=0}n.mode=16207;case 16207:if(n.wrap&&n.flags){for(;c<32;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}if(4&n.wrap&&l!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=KE;break}c=l=0}n.mode=16208;case 16208:_=WE;break e;case KE:_=ZE;break e;case 16210:return GE;default:return VE}return e.next_out=a,e.avail_out=u,e.next_in=o,e.avail_in=s,n.hold=l,n.bits=c,(n.wsize||f!==e.avail_out&&n.mode<KE&&(n.mode<16206||t!==UE))&&oR(e,e.output,e.next_out,f-e.avail_out),f-=e.avail_out,e.total_in+=d-=e.avail_in,e.total_out+=f,n.total+=f,4&n.wrap&&f&&(e.adler=n.check=(n.flags?bI:yI)(n.check,i,f,e.next_out-f)),e.data_type=n.bits+(n.last?64:0)+(16191===n.mode?128:0)+(16199===n.mode||16194===n.mode?256:0),_=(0==d&&0===f||t===UE)&&_===jE?YE:_},lR=function(e){var t;return eR(e)?VE:((t=e.state).window&&(t.window=null),e.state=null,jE)},cR=function(e,t){return eR(e)||0==(2&(e=e.state).wrap)?VE:((e.head=t).done=!1,jE)},dR=function(e,t){var n,r=t.length;return eR(e)||0!==(n=e.state).wrap&&16190!==n.mode?VE:16190===n.mode&&yI(1,t,r,0)!==n.check?ZE:oR(e,t,r,r)?(n.mode=16210,GE):(n.havedict=1,jE)},fR=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1},hR=Object.prototype.toString,pR=S.Z_NO_FLUSH,gR=S.Z_FINISH,mR=S.Z_OK,vR=S.Z_STREAM_END,yR=S.Z_NEED_DICT,wR=S.Z_STREAM_ERROR,bR=S.Z_DATA_ERROR,kR=S.Z_MEM_ERROR;function SR(e){this.options=pE({chunkSize:65536,windowBits:15,to:""},e||{});var t=this.options,e=(t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits)&&(t.windowBits=-15),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new bE,this.strm.avail_out=0,sR(this.strm,t.windowBits));if(e!==mR)throw new Error(kI[e]);if(this.header=new fR,cR(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=wE(t.dictionary):"[object ArrayBuffer]"===hR.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw)&&(e=dR(this.strm,t.dictionary))!==mR)throw new Error(kI[e])}function _R(e,t){t=new SR(t);if(t.push(e),t.err)throw t.msg||kI[t.err];return t.result}SR.prototype.push=function(e,t){var n,r,i=this.strm,o=this.options.chunkSize,a=this.options.dictionary;if(this.ended)return!1;for(r=t===~~t?t:!0===t?gR:pR,"[object ArrayBuffer]"===hR.call(e)?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;;){for(0===i.avail_out&&(i.output=new Uint8Array(o),i.next_out=0,i.avail_out=o),(n=uR(i,r))===yR&&a&&((n=dR(i,a))===mR?n=uR(i,r):n===bR&&(n=yR));0<i.avail_in&&n===vR&&0<i.state.wrap&&0!==e[i.next_in];)aR(i),n=uR(i,r);switch(n){case wR:case bR:case yR:case kR:return this.onEnd(n),!(this.ended=!0)}var s,u,l,c=i.avail_out;if(!i.next_out||0!==i.avail_out&&n!==vR||("string"===this.options.to?(s=function(e,t){for(var n=(t=(t=t||e.length)>e.length?e.length:t)-1;0<=n&&128==(192&e[n]);)n--;return!(n<0||0===n)&&n+vE[e[n]]>t?n:t}(i.output,i.next_out),u=i.next_out-s,l=function(e,t){var n=t||e.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(e.subarray(0,t));for(var r=new Array(2*n),i=0,o=0;o<n;){var a=e[o++];if(a<128)r[i++]=a;else{var s=vE[a];if(4<s)r[i++]=65533,o+=s-1;else{for(a&=2===s?31:3===s?15:7;1<s&&o<n;)a=a<<6|63&e[o++],s--;1<s?r[i++]=65533:a<65536?r[i++]=a:(a-=65536,r[i++]=55296|a>>10&1023,r[i++]=56320|1023&a)}}}var u=r,l=i;if(l<65534&&u.subarray&&mE)return String.fromCharCode.apply(null,u.length===l?u:u.subarray(0,l));for(var c="",d=0;d<l;d++)c+=String.fromCharCode(u[d]);return c}(i.output,s),i.next_out=u,i.avail_out=o-u,u&&i.output.set(i.output.subarray(s,s+u),0),this.onData(l)):this.onData(i.output.length===i.next_out?i.output:i.output.subarray(0,i.next_out))),n!==mR||0!==c){if(n===vR)return n=lR(this.strm),this.onEnd(n),this.ended=!0;if(0===i.avail_in)break}}return!0},SR.prototype.onData=function(e){this.chunks.push(e)},SR.prototype.onEnd=function(e){e===mR&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=gE(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var a={Inflate:SR,inflate:_R,inflateRaw:function(e,t){return(t=t||{}).raw=!0,_R(e,t)},ungzip:_R,constants:S},CR={Deflate:w.Deflate,deflate:w.deflate,deflateRaw:w.deflateRaw,gzip:w.gzip,Inflate:a.Inflate,inflate:a.inflate,inflateRaw:a.inflateRaw,ungzip:a.ungzip,constants:S},IR=(OR.prototype.uploadReplay=function(n){return ju(this,void 0,void 0,function(){var t;return Wu(this,function(e){switch(e.label){case 0:if(this.isUploading)return ry("Uploader","Upload in progress, skipping"),[2,!1];this.isUploading=!0,e.label=1;case 1:return e.trys.push([1,3,4,5]),(t=this.config.beforeSend(n))?[4,this.doUploadWithRetry(t,0)]:(ty("Uploader","Upload cancelled by beforeSend"),[2,!1]);case 2:return e.sent(),ty("Uploader","Upload success:",{replay_id:n.replay_id,segment_id:n.segment_id}),[2,!0];case 3:return iy("Uploader","Upload failed:",t=e.sent()),this.config.onError(t),[2,!1];case 4:return this.isUploading=!1,[7];case 5:return[2]}})})},OR.prototype.doUploadWithRetry=function(r,i){return ju(this,void 0,void 0,function(){var t,n;return Wu(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,5]),[4,this.doUpload(r)];case 1:return e.sent(),[3,5];case 2:return t=e.sent(),i<this.config.maxRetries?(ty("Uploader","Retrying in "+(n=1e3*Math.pow(2,i))+"ms (attempt "+(i+1)+"/"+this.config.maxRetries+")"),[4,this.sleep(n)]):[3,4];case 3:return e.sent(),[2,this.doUploadWithRetry(r,i+1)];case 4:throw t;case 5:return[2]}})})},OR.prototype.prepareUploadPayload=function(e){var t=e.replay_format||"rrweb",n=e.events_encoding||"plain_json";if("rrweb"!==t)return e;if(!this.config.eventsCompression||"gzip_base64"===n)return h(h({},e),{replay_format:t,platform:e.platform||"web",events_encoding:n});try{var r=CR.gzip(e.events),i=this.uint8ArrayToBase64(r),o=e.events.length,a=r.length,s=i.length;return ty("Uploader","Events compressed: "+Math.round(o/1024)+"KB -> gzip "+Math.round(a/1024)+"KB -> base64 "+Math.round(s/1024)+"KB"),h(h({},e),{replay_format:t,platform:e.platform||"web",events_encoding:"gzip_base64",events:i})}catch($){return ry("Uploader","Events compression failed, fallback to plain_json:",$),h(h({},e),{replay_format:t,platform:e.platform||"web",events_encoding:"plain_json"})}},OR.prototype.uint8ArrayToBase64=function(e){for(var t="",n=0;n<e.length;n+=32768){for(var r=e.subarray(n,n+32768),i="",o=0;o<r.length;o++)i+=String.fromCharCode(r[o]);t+=i}if("function"==typeof btoa)return btoa(t);if("undefined"!=typeof Buffer)return Buffer.from(e).toString("base64");throw new Error("base64 encode is not supported")},OR.prototype.doUpload=function(i){return ju(this,void 0,void 0,function(){var t,n,r;return Wu(this,function(e){switch(e.label){case 0:return t=this.prepareUploadPayload(i),r=JSON.stringify(t),n={"Content-Type":"application/json","X-App-ID":this.config.appId},ty("Uploader","Sending replay payload: "+Math.round(r.length/1024)+"KB, events_encoding="+(t.events_encoding||"plain_json")),(t=r.length<65536)||ty("Uploader","Data size "+Math.round(r.length/1024)+"KB exceeds keepalive limit, using normal fetch"),[4,fetch(this.config.uploadUrl,{method:"POST",headers:n,body:r,keepalive:t})];case 1:if((n=e.sent()).ok)return[4,n.json()];throw new Error("HTTP "+n.status+": "+n.statusText);case 2:if(0!==(r=e.sent()).code)throw new Error("Server error (code "+r.code+"): "+r.message);return[2]}})})},OR.prototype.sendBeacon=function(e){try{var t=this.prepareUploadPayload(e),n=new Blob([JSON.stringify(t)],{type:"application/json"});return navigator.sendBeacon(this.config.uploadUrl,n)}catch($){return iy("Uploader","sendBeacon failed:",$),!1}},OR.prototype.isUploadInProgress=function(){return this.isUploading},OR.prototype.sleep=function(t){return new Promise(function(e){return setTimeout(e,t)})},OR),ER=["a","button",'input[type="button"]','input[type="submit"]','[role="button"]',"[onclick]","[ng-click]","[v-on\\:click]"].join(","),RR=(xR.prototype.start=function(){this.isRunning||(document.addEventListener("pointerdown",this.handlePointerDown,!0),document.addEventListener("click",this.handleClick,!0),this.isRunning=!0,ty("ClickDetector","Started"))},xR.prototype.stop=function(){this.isRunning&&(document.removeEventListener("pointerdown",this.handlePointerDown,!0),document.removeEventListener("click",this.handleClick,!0),this.cleanupSlowClick(),this.isRunning=!1,ty("ClickDetector","Stopped"))},xR.prototype.handlePointerDown=function(e){var t,n,r=this,i=e.target;i&&i instanceof Element&&(i=this.getClickableElement(i))&&(this.cleanupSlowClick(),this.clickStartTime=Date.now(),this.clickNode=i,t=this.getNodeInfo(i),n=this.getExternalNavigationReason(e,i),this.options.onClickStart({node:t,timestamp:this.clickStartTime,target:i,event:e,effectiveActionReason:n||undefined}),n?this.markEffectiveAction(n):(this.slowClickTimeoutId=setTimeout(function(){r.handleSlowClick("timeout")},this.options.slowClickTimeout),this.startMutationObserver()))},xR.prototype.handleClick=function(e){var t=this,n=e.target,r=Date.now();this.rageActiveTarget&&r-this.rageLastClickTime>=this.options.rageClickWindow&&(this.rageActiveTarget=null,this.rageLastClickTime=0),this.rageActiveTarget&&this.isSameTarget(this.rageActiveTarget,n)?this.rageLastClickTime=r:(this.clickHistory.push({time:r,target:n}),this.clickHistory=this.clickHistory.filter(function(e){return r-e.time<t.options.rageClickWindow}),(e=this.clickHistory.filter(function(e){return t.isSameTarget(e.target,n)})).length>=this.options.rageClickCount&&(this.options.onRageClick({node:this.getNodeInfo(n),clickCount:e.length,timeWindowMs:this.options.rageClickWindow,timestamp:r}),this.rageActiveTarget=n,this.rageLastClickTime=r))},xR.prototype.startMutationObserver=function(){var t=this;this.clickNode&&document.body&&"undefined"!=typeof MutationObserver&&(this.mutationObserver=new MutationObserver(function(e){t.hasSignificantMutation(e)&&(t.emitEffectiveAction("dom_mutation"),t.handleSlowClick("mutation"))}),this.mutationObserver.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["class","style","hidden","disabled","aria-hidden","aria-disabled","aria-busy"],characterData:!0}))},xR.prototype.hasSignificantMutation=function(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];if("characterData"===r.type)return!0;if("childList"===r.type&&(0<r.addedNodes.length||0<r.removedNodes.length)&&Array.from(r.addedNodes).concat(Array.from(r.removedNodes)).some(function(e){return e.nodeType===Node.ELEMENT_NODE&&!["SCRIPT","STYLE","LINK"].includes(e.tagName)}))return!0;if("attributes"===r.type){r=r.attributeName;if(["class","style","hidden","disabled","aria-hidden","aria-disabled","aria-busy"].includes(r||""))return!0}}return!1},xR.prototype.handleSlowClick=function(e){var t;this.clickNode&&this.clickStartTime&&((t=Date.now()-this.clickStartTime)>=this.options.slowClickThreshold&&this.options.onSlowClick({node:this.getNodeInfo(this.clickNode),timeAfterClickMs:t,endReason:e,timestamp:this.clickStartTime}),this.cleanupSlowClick())},xR.prototype.cleanupSlowClick=function(){this.slowClickTimeoutId&&(clearTimeout(this.slowClickTimeoutId),this.slowClickTimeoutId=null),this.mutationObserver&&(this.mutationObserver.disconnect(),this.mutationObserver=null),this.clickStartTime=0,this.clickNode=null},xR.prototype.isSameTarget=function(e,t){return e===t||e.contains(t)||t.contains(e)},xR.prototype.markEffectiveAction=function(e){this.clickNode&&this.clickStartTime&&(this.emitEffectiveAction(e),this.cleanupSlowClick())},xR.prototype.emitEffectiveAction=function(e){this.clickNode&&this.options.onEffectiveAction({reason:e,timestamp:Date.now(),node:this.getNodeInfo(this.clickNode)})},xR.prototype.getClickableElement=function(e){return e.matches(ER)?e:e.closest(ER)},xR.prototype.getExternalNavigationReason=function(e,t){var n=t.closest("a");if(n){if(n.download)return"download";var r=(n.getAttribute("target")||"").toLowerCase();if(r&&"_self"!==r)return"external_navigation";if(n.href&&(1===e.button||e.metaKey||e.ctrlKey||e.shiftKey))return"external_navigation"}r=t.closest("form"),n=((null==r?void 0:r.getAttribute("target"))||"").toLowerCase();return n&&"_self"!==n?"external_navigation":t.hasAttribute("data-tdem-ignore-dead-click")||t.closest("[data-tdem-ignore-dead-click]")||t.hasAttribute("data-tdem-effective-action")||t.closest("[data-tdem-effective-action]")?"custom":null},xR.prototype.getNodeInfo=function(e){var t;return{id:(null==(t=e.__sn)?void 0:t.id)||0,tagName:e.tagName.toLowerCase(),textContent:(e.textContent||"").trim().substring(0,100),selector:this.getSelector(e)}},xR.prototype.getSelector=function(e){for(var t=[],n=e;n&&n!==document.body&&t.length<5;){var r,i=n.tagName.toLowerCase();if(n.id){i+="#"+n.id,t.unshift(i);break}n.className&&"string"==typeof n.className&&0<(r=n.className.trim().split(/\s+/).slice(0,2)).length&&(i+="."+r.join(".")),t.unshift(i),n=n.parentElement}return t.join(" > ")},xR.prototype.isActive=function(){return this.isRunning},xR);function xR(e){var t;void 0===e&&(e={}),this.isRunning=!1,this.clickStartTime=0,this.clickNode=null,this.slowClickTimeoutId=null,this.mutationObserver=null,this.clickHistory=[],this.rageActiveTarget=null,this.rageLastClickTime=0,this.options={slowClickTimeout:null!=(t=e.slowClickTimeout)?t:7e3,slowClickThreshold:null!=(t=e.slowClickThreshold)?t:3e3,rageClickCount:null!=(t=e.rageClickCount)?t:5,rageClickWindow:null!=(t=e.rageClickWindow)?t:1e3,onSlowClick:e.onSlowClick||function(){},onRageClick:e.onRageClick||function(){},onClickStart:e.onClickStart||function(){},onEffectiveAction:e.onEffectiveAction||function(){},onDeadClick:e.onDeadClick||function(){}},this.handleClick=this.handleClick.bind(this),this.handlePointerDown=this.handlePointerDown.bind(this)}function OR(e){var t;this.isUploading=!1,this.useCompression=!1,this.config={uploadUrl:e.uploadUrl||"/api/v1/collect/replay",appId:e.appId,maxRetries:null!=(t=e.maxRetries)?t:3,beforeSend:e.beforeSend||function(e){return e},onError:e.onError||function(){},eventsCompression:null==(t=e.eventsCompression)||t}}function AR(e){var t=null==(t=e)?void 0:t._tdemSampleGate;return!t||!t.isDecided||t.isSampled&&!1!==e._replaySampled}new o({name:"sessionReplay"});var yb=new o({name:"sessionReplay",sessionManager:null,eventBuffer:null,recorderManager:null,samplerManager:null,uploader:null,clickDetector:null,flushTimer:null,replayConfig:null,isInitialized:!1,_tdemRef:null,_isCheckoutFlushing:!1,_lastLifecycleSnapshotAt:0,init:function(e){},onNewTdem:function(e,t){var t=this.parseConfig(t),n=null!=(n=t.debug)&&n;Qv=n,t.enabled?(this.replayConfig=t,this._tdemRef=e,this.initializeModules(e,t),(n=this.samplerManager.initializeSampling()).shouldRecord?(this.startReplay(e,t,n.mode),this.registerReplaySamplingCheck(e,t),this.listenForErrors(e,t),this.listenForPerformance(e),this.listenForLifecycle(e,t),this.listenForUnload(e),this.isInitialized=!0):ty("Plugin","Not sampled by local sampler, skipping")):ty("Plugin","disabled")},registerReplaySamplingCheck:function(t,e){var n=this,r=setInterval(function(){var e=null==(e=t)?void 0:e._tdemSampleGate;e&&e.isDecided&&(e.isSampled?(e=t._replaySampled)!==undefined&&(clearInterval(r),!1===e?(ty("Plugin","Replay not sampled, stopping replay and clearing buffer"),n.stopReplay(),n.eventBuffer&&n.eventBuffer.clear()):ty("Plugin","Both session and replay sampled, replay continues")):(clearInterval(r),ty("Plugin","Session not sampled, stopping replay and clearing buffer"),n.stopReplay(),n.eventBuffer&&n.eventBuffer.clear()))},50);setTimeout(function(){clearInterval(r)},5e3)},parseConfig:function(e){return!0===e?{enabled:!0}:"object"===v(e)?h(h({},e),{enabled:!1!==e.enabled}):{enabled:!1}},initializeModules:function(t,e){var n=this,r=(this.sessionManager=new oy({stickySession:null==(r=e.stickySession)||r}),this.sessionManager.setTdemInstance(t),t.sessionManager=this.sessionManager,this.eventBuffer=new cy({},null!=(r=e.useCompression)&&r),this.samplerManager=new DC({sessionSampleRate:e.sessionSampleRate,errorSampleRate:e.errorSampleRate}),this.recorderManager=new LC({onRecordingEvent:function(e){n.handleRecordingEvent(e,t)},onCheckout:function(){if(!n._isCheckoutFlushing){n._isCheckoutFlushing=!0;try{var e=n._tdemRef,t=n.replayConfig;e&&t&&n.eventBuffer&&!n.eventBuffer.isEmpty()&&(ty("SessionReplay","Checkout triggered, flushing current buffer"),n.flushReplayData(e,t,!0))}finally{n._isCheckoutFlushing=!1}}},mode:"session"},e),(t.config.url||t.config.hostUrl||"").replace(/\/+$/,""));this.uploader=new IR({uploadUrl:e.uploadUrl||r+"/api/v1/collect/replay",appId:String(t.config.id||""),beforeSend:e.beforeSend,onError:e.onError,eventsCompression:null==(r=e.eventsCompression)||r}),this.clickDetector=new RR({slowClickTimeout:e.slowClickTimeout,slowClickThreshold:e.slowClickThreshold,rageClickCount:e.rageClickCount,rageClickWindow:e.rageClickWindow,onSlowClick:function(e){n.handleSlowClick(e,t)},onRageClick:function(e){n.handleRageClick(e,t)}}),ty("Plugin","Modules initialized")},startReplay:function(e,t,n){var r;this.sessionManager&&this.recorderManager&&this.eventBuffer?(ty("Plugin","Session started:",(this.sessionManager.restoreSession()||this.sessionManager.createSession(n)).id,"mode:",n),this.recorderManager.options.mode=n,r=MC(h({maskAllText:!1!==t.maskAllInputs,maskAllInputs:t.maskAllInputs,maskTextSelector:t.maskTextSelector,blockSelector:t.blockSelector,ignoreSelector:t.ignoreSelector},t.privacy)),this.recorderManager.startRecording({privacy:r}),this.clickDetector&&this.clickDetector.start(),"session"===n?this.startFlushTimer(e,t):ty("Plugin","Buffer mode - flush on error only")):iy("Plugin","Modules not initialized")},handleRecordingEvent:function(e,t){this.eventBuffer&&this.sessionManager&&(this.sanitizeDataURLs(e),this.eventBuffer.addEvent(e),this.sessionManager.updateActivity())},sanitizeDataURLs:function(e){var t=e.type;if(2===t){var n=null==(n=e.data)?void 0:n.node;n&&this.sanitizeNodeTree(n,1024)}else if(3===t){n=e.data;if(0===(null==n?void 0:n.source)&&Array.isArray(n.adds)){for(var r=0,i=n.adds;r<i.length;r++){var o=i[r];null!=o&&o.node&&this.sanitizeNodeTree(o.node,1024)}if(Array.isArray(n.attributes))for(var a=0,s=n.attributes;a<s.length;a++){var u=s[a];if(null!=u&&u.attributes)for(var l=0,c=Object.entries(u.attributes);l<c.length;l++){var d=c[l],f=d[0],d=d[1];"string"==typeof d&&1024<d.length&&d.startsWith("data:")&&(u.attributes[f]='data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg"%3E%3C/svg%3E')}}}}},sanitizeNodeTree:function(e,t){if(e){if(e.attributes)for(var n=e.attributes,r=0,i=Object.keys(n);r<i.length;r++){var o=i[r],a=n[o];"string"==typeof a&&a.length>t&&a.startsWith("data:")&&(n[o]='data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg"%3E%3C/svg%3E')}if(Array.isArray(e.childNodes))for(var s=0,u=e.childNodes;s<u.length;s++){var l=u[s];this.sanitizeNodeTree(l,t)}}},handleSlowClick:function(e,t){ty("ClickDetector","Slow click detected:",e.timeAfterClickMs,"ms"),this.addCustomEvent({category:"ui.slowClickDetected",message:"Slow click: "+e.timeAfterClickMs+"ms on "+e.node.tagName,data:{node:e.node,timeAfterClickMs:e.timeAfterClickMs,endReason:e.endReason}},t)},handleRageClick:function(e,t){ty("ClickDetector","Rage click detected:",e.clickCount,"clicks"),this.addCustomEvent({category:"ui.multiClick",message:"Rage click: "+e.clickCount+" clicks on "+e.node.tagName,data:{node:e.node,clickCount:e.clickCount,timeWindowMs:e.timeWindowMs}},t)},addCustomEvent:function(e,t){this.eventBuffer&&(e={type:5,data:{tag:e.category,payload:h({message:e.message},e.data)},timestamp:Date.now()},this.eventBuffer.addEvent(e))},startFlushTimer:function(e,t){var n=this;this.flushTimer&&clearInterval(this.flushTimer),this.flushTimer=setInterval(function(){n.flushReplayData(e,t)},2e4)},flushReplayData:function(c,d,f){return void 0===f&&(f=!1),ju(this,void 0,void 0,function(){var t,n,r,i,o,a,s,u,l;return Wu(this,function(e){switch(e.label){case 0:return this.sessionManager&&this.eventBuffer&&this.uploader&&AR(c)&&(t=this.sessionManager.getSession())?this.sessionManager.shouldRefreshSession()?(ty("Plugin","Session expired, refreshing"),this.stopReplay(),i=this.sessionManager.refreshSession(),c.lifeCycle.emit("sessionRefreshed"),n=c._replaySampled,i.sampled&&!1!==n&&this.startReplay(c,d,i.sampled),[2]):this.eventBuffer.isEmpty()?[2]:(n=this.eventBuffer.getEventCount(),!f&&n<10?(ty("Flush","Skipping flush, only "+n+" events (min: 10)"),[2]):(0!==t.segmentId||this.eventBuffer.hasCheckout()||(ry("Flush","First segment missing FullSnapshot, triggering manual checkout"),this.recorderManager&&this.recorderManager.takeFullSnapshot()),[4,this.eventBuffer.finishAsync()])):[2];case 1:if(0===(r=e.sent()).eventCount)return[2];if(0===(i=r.events).length&&r.eventsJson)try{i=JSON.parse(r.eventsJson)}catch(V){return iy("Flush","Failed to parse eventsJson from worker:",V),[2]}s=this.splitEventsIntoChunks(i),ty("Flush","Flushing "+r.eventCount+" events in "+s.length+" chunk(s), total size: "+Math.round(r.uncompressedSize/1024)+"KB"),o=!0,a=0,s=s,e.label=2;case 2:return a<s.length?(u=s[a],u=JSON.stringify(u),u={project_key:String(c.config.id||""),session_id:t.id,replay_id:t.replayId,segment_id:this.sessionManager.incrementSegmentId(),timestamp:Date.now(),replay_start_timestamp:t.started,replay_format:"rrweb",platform:"web",events_encoding:"plain_json",events:u},[4,this.uploader.uploadReplay(u)]):[3,5];case 3:if(!e.sent())return o=!1,[3,5];e.label=4;case 4:return a++,[3,2];case 5:return u=this.eventBuffer.isUsingWorker(),l=u?"(worker)":"(sync)",ty("Flush","Flushing "+r.eventCount+" events, size: "+Math.round(r.uncompressedSize/1024)+"KB "+l),o&&(this.eventBuffer.clear(),this.sessionManager.saveSession()),[2]}})})},splitEventsIntoChunks:function(e){if(0===e.length)return[];var t=JSON.stringify(e);if(t.length<=3145728)return[e];ry("Split","Events size "+Math.round(t.length/1024)+"KB exceeds limit "+Math.round(3072)+"KB, splitting");for(var n=[],r=[],i=2,o=0,a=e;o<a.length;o++){var s=a[o],u=JSON.stringify(s).length+1;0<r.length&&3145728<i+u&&(n.push(r),r=[],i=2),5242880<u?ry("Split","Single event too large ("+Math.round(u/1024)+"KB), type="+s.type+", skipping"):(r.push(s),i+=u)}return 0<r.length&&n.push(r),n},stopReplay:function(){this.flushTimer&&(clearInterval(this.flushTimer),this.flushTimer=null),this.recorderManager&&this.recorderManager.stopRecording(),this.clickDetector&&this.clickDetector.stop(),ty("Plugin","Recording stopped")},listenForErrors:function(t,n){var r=this;t.lifeCycle.on("errorOccurred",function(e){(Array.isArray(e)?e:[e]).forEach(function(e){e&&r.handleError(e,t,n)})}),t.lifeCycle.on("tdemEventCreated",function(e){(Array.isArray(e)?e:[e]).forEach(function(e){r.isErrorTDEMEvent(e)&&r.handleError(e,t,n)})})},isErrorTDEMEvent:function(e){return!!e&&("error"===String(e.event_category||"").toLowerCase()||(e=String(e.event_type||"").toLowerCase(),["js_error","promise_error","resource_error","api_error"].includes(e)))},handleError:function(e,t,n){this.samplerManager&&(this.samplerManager.isBufferMode()&&this.samplerManager.onErrorOccurred(e)&&(ty("Plugin","Converting to session mode due to error"),this.flushReplayData(t,n,!0),this.startFlushTimer(t,n)),this.addCustomEvent({category:"error",message:(null==e?void 0:e.msg)||(null==e?void 0:e.message)||"Unknown error",data:{type:(null==e?void 0:e.type)||"error",stack:null==e?void 0:e.stack}},t))},listenForPerformance:function(n){var r=this;if(n.lifeCycle.on("afterReportWebVitals",function(e){r.handlePerformanceEvent("webVitals",e,n)}),n.lifeCycle.on("afterReportPagePerformance",function(e){r.handlePerformanceEvent("pageLoad",e,n)}),"undefined"!=typeof PerformanceObserver)try{var e=new PerformanceObserver(function(e){var t,e=e.getEntries(),e=e[e.length-1];e&&r.addCustomEvent({category:"performance.lcp",message:"LCP: "+Math.round(e.startTime)+"ms",data:{value:e.startTime,element:(null==(t=e.element)?void 0:t.tagName)||"unknown",size:e.size}},n)}),t=(e.observe({type:"largest-contentful-paint",buffered:!0}),new PerformanceObserver(function(e){e.getEntries().forEach(function(e){"first-contentful-paint"===e.name&&r.addCustomEvent({category:"performance.fcp",message:"FCP: "+Math.round(e.startTime)+"ms",data:{value:e.startTime}},n)})})),i=(t.observe({type:"paint",buffered:!0}),new PerformanceObserver(function(e){e.getEntries().forEach(function(e){100<e.duration&&r.addCustomEvent({category:"performance.longTask",message:"Long Task: "+Math.round(e.duration)+"ms",data:{duration:e.duration,startTime:e.startTime}},n)})}));i.observe({type:"longtask",buffered:!0}),n.lifeCycle.on("destroy",function(){e.disconnect(),t.disconnect(),i.disconnect()})}catch(Pe){}},handlePerformanceEvent:function(e,n,r){var i=this;n&&("webVitals"===e?["LCP","FCP","FID","CLS","TTFB","TTI","INP"].forEach(function(e){var t=n[e];t!==undefined&&-1!==t&&0<t&&i.addCustomEvent({category:"performance."+e.toLowerCase(),message:e+": "+("number"==typeof t?Math.round(t):t)+("CLS"===e?"":"ms"),data:{metric:e,value:t}},r)}):"pageLoad"===e&&this.addCustomEvent({category:"performance.pageLoad",message:"Page Load: "+(n.firstScreenTiming?Math.round(n.firstScreenTiming):"N/A")+"ms",data:{dnsLookup:n.dnsLookup,tcp:n.tcp,ssl:n.ssl,ttfb:n.ttfb,contentDownload:n.contentDownload,domParse:n.domParse,resourceDownload:n.resourceDownload,firstScreenTiming:n.firstScreenTiming}},r))},listenForLifecycle:function(o,t){var n,e,a=this;"undefined"!=typeof document&&(n=function(e){var t,n=null==(n=a.sessionManager)?void 0:n.getSession(),n=(null==n?void 0:n.replayId)||"",r=(null==(i=null==(r=o)?void 0:r.getOriginFrom)?void 0:i.call(r))||("undefined"!=typeof location?location.href:""),i="undefined"!=typeof document&&document.title||"";null!=(t=o.reportTDEMEvent)&&t.call(o,{event_id:Dl(),event_type:e,event_category:ml.BEHAVIOR,timestamp:Date.now(),page_url:r,data:{page_title:i,replay_id:n,is_effective_action:!1,tags:{environment:o.config.env||"production",version:String(o.config.version||"")},event_properties:{visibility_state:"undefined"!=typeof document?document.visibilityState:"",lifecycle_type:e}}})},document.addEventListener("visibilitychange",e=function(){var e;"undefined"!=typeof document&&("hidden"===document.visibilityState?(n(p.TAB_HIDDEN),a.flushReplayData(o,t,!0)):"visible"===document.visibilityState&&(n(p.TAB_VISIBLE),(e=Date.now())-a._lastLifecycleSnapshotAt<5e3||(a._lastLifecycleSnapshotAt=e,null!=(e=a.recorderManager)&&e.takeFullSnapshot(),a.flushReplayData(o,t,!0))))}),o.lifeCycle.on("destroy",function(){document.removeEventListener("visibilitychange",e)}))},listenForUnload:function(e){var t=this,n=function(){t.flushOnUnload(e)};window.addEventListener("beforeunload",n),window.addEventListener("pagehide",n),e.lifeCycle.on("destroy",function(){window.removeEventListener("beforeunload",n),window.removeEventListener("pagehide",n)})},flushOnUnload:function(e){if(this.sessionManager&&this.eventBuffer&&this.uploader&&AR(e)){var t=this.sessionManager.getSession();if(t&&(this.recorderManager&&this.recorderManager.stopRecording(),this.clickDetector&&this.clickDetector.stop(),!this.eventBuffer.isEmpty())){var n=this.eventBuffer.finish();if(0!==n.eventCount){for(var n=this.splitEventsIntoChunks(n.events),r=0,i=n;r<i.length;r++){var o=i[r],o={project_key:String(e.config.id||""),session_id:t.id,replay_id:t.replayId,segment_id:this.sessionManager.incrementSegmentId(),timestamp:Date.now(),replay_start_timestamp:t.started,replay_format:"rrweb",platform:"web",events_encoding:"plain_json",events:JSON.stringify(o)};this.uploader.sendBeacon(o)}ty("SessionReplay"," Data sent via sendBeacon on unload ("+n.length+" chunk(s))")}}}},destroy:function(){this.stopReplay(),this.sessionManager&&this.sessionManager.saveSession(),this.sessionManager=null,this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,this.recorderManager=null,this.samplerManager=null,this.uploader=null,this.clickDetector=null,this.replayConfig=null,this._tdemRef=null,this._isCheckoutFlushing=!1,this._lastLifecycleSnapshotAt=0,this.isInitialized=!1,ty("Plugin","destroyed")}}),TR={enabled:!0,ruleVersion:"1.0.0",payloadAllowlist:[],click:{enabled:!0,deadClickWindowMs:3e3,rageClickWindowMs:1e3,rageClickCount:5,errorClickWindowMs:3e3,resolveOnDomMutation:!0,resolveOnSpaNavigation:!0,resolveOnExternalNavigation:!0,resolveOnWindowOpen:!0,resolveOnPageUnload:!0,resolveOnFormAction:!0,resolveOnApiSuccess:!0,ignoreDeadClickSelectors:[],effectiveActionSelectors:[]},performance:{enabled:!0,slowPageLcpThreshold:4e3,slowPageInpThreshold:500},form:{enabled:!0,fieldIdAttr:"data-field-id",formIdAttr:"data-form-id",longFocusThresholdMs:2e4,incompleteMinFieldRatio:.3,zigzagMinCount:2},navigation:{enabled:!0,backForwardAsStruggle:!0},custom:{enabled:!0,detector:undefined}},MR=new Set([p.JS_ERROR,p.PROMISE_ERROR,p.RESOURCE_ERROR,p.API_ERROR]),PR=new Set([p.FORM_CHANGE,p.FORM_SUBMIT,p.FORM_SUBMIT_RESULT]),e=(new o({name:"struggleMonitor"}),new o({name:"struggleMonitor",instanceStates:new Map,originalWindowOpen:null,windowOpenHooked:!1,onNewTdem:function(t){var n,r=this,e=!0===(e=this.$getConfig(t))?h({},TR):e&&"object"===v(e)?h(h(h({},TR),e),{click:h(h({},TR.click),e.click||{}),performance:h(h({},TR.performance),e.performance||{}),form:h(h({},TR.form),e.form||{}),navigation:h(h({},TR.navigation),e.navigation||{}),custom:h(h({},TR.custom),e.custom||{}),payloadAllowlist:(Array.isArray(e.payloadAllowlist)?e:TR).payloadAllowlist,enabled:!1!==e.enabled}):h(h({},TR),{enabled:!1});e.enabled&&(n={config:e,clickDetector:null,recentClicks:[],pendingDeadClicks:new Map,focusStartMap:new Map,formStateMap:new Map,removeDomListeners:[],onEventCreated:null,onDestroy:null},this.instanceStates.set(t,n),this.initClickDetector(t,n),this.initFormListeners(t,n),n.onEventCreated=function(e){r.handleEventCreated(t,n,e||[])},t.lifeCycle.on("tdemEventCreated",n.onEventCreated),n.onDestroy=function(){return r.cleanupInstance(t)},t.lifeCycle.on("destroy",n.onDestroy))},initClickDetector:function(t,n){var e,r=this;"undefined"!=typeof window&&"undefined"!=typeof document&&(n.clickDetector=new RR({slowClickTimeout:null!=(e=null==(e=n.config.click)?void 0:e.deadClickWindowMs)?e:3e3,slowClickThreshold:null!=(e=null==(e=n.config.click)?void 0:e.deadClickWindowMs)?e:3e3,rageClickCount:null!=(e=null==(e=n.config.click)?void 0:e.rageClickCount)?e:5,rageClickWindow:null!=(e=null==(e=n.config.click)?void 0:e.rageClickWindowMs)?e:1e3,onRageClick:function(e){r.onRageClick(t,n,e)},onClickStart:function(e){r.onClickStart(t,n,e)},onEffectiveAction:function(e){r.onEffectiveAction(n,e)},onSlowClick:function(e){r.onSlowClick(t,n,e)}}),n.clickDetector.start(),this.initClickEffectiveActionListeners(n),this.initWindowOpenHook())},initClickEffectiveActionListeners:function(n){var e,t=this;"undefined"!=typeof window&&((e=function(e,t){window.addEventListener(e,t),n.removeDomListeners.push(function(){window.removeEventListener(e,t)})})("pagehide",function(){var e;!1!==(null==(e=n.config.click)?void 0:e.resolveOnPageUnload)&&(t.resolvePendingDeadClicks(n,"page_unload"),null!=(e=n.clickDetector))&&e.markEffectiveAction("page_unload")}),e("beforeunload",function(){var e;!1!==(null==(e=n.config.click)?void 0:e.resolveOnPageUnload)&&(t.resolvePendingDeadClicks(n,"page_unload"),null!=(e=n.clickDetector))&&e.markEffectiveAction("page_unload")}))},initWindowOpenHook:function(){var r,i;"undefined"==typeof window||this.windowOpenHooked||(r=window.open,this.originalWindowOpen=r,this.windowOpenHooked=!0,i=this,window.open=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=r.apply(window,e);return i.resolveWindowOpenActions(),n})},resolveWindowOpenActions:function(){var n=this,r=Date.now();this.instanceStates.forEach(function(e){var t;!1!==(null==(t=e.config.click)?void 0:t.resolveOnWindowOpen)&&(null!=(t=e.clickDetector)&&t.markEffectiveAction("window_open"),n.resolvePendingDeadClicks(e,"window_open",r,n.getCurrentPageUrl()))})},restoreWindowOpenHook:function(){"undefined"!=typeof window&&this.windowOpenHooked&&this.originalWindowOpen&&(window.open=this.originalWindowOpen,this.originalWindowOpen=null,this.windowOpenHooked=!1)},initFormListeners:function(r,i){var e,t,o=this;null!=(t=i.config.form)&&t.enabled&&"undefined"!=typeof document&&((t=function(e,t,n){void 0===n&&(n=!0),document.addEventListener(e,t,n),i.removeDomListeners.push(function(){document.removeEventListener(e,t,n)})})("focusin",function(e){e=o.getTrackableField(e.target);e&&o.reportFormEvent(r,i,p.FORM_FOCUS,e,e.form||undefined)}),t("focusout",function(e){e=o.getTrackableField(e.target);e&&o.reportFormEvent(r,i,p.FORM_BLUR,e,e.form||undefined)}),t("change",function(e){e=o.getTrackableField(e.target);e&&o.reportFormEvent(r,i,p.FORM_CHANGE,e,e.form||undefined)}),t("submit",function(e){e=e.target;e instanceof HTMLFormElement&&o.reportFormEvent(r,i,p.FORM_SUBMIT,null,e)}),t("invalid",function(e){var t,n,e=o.getTrackableField(e.target);e&&(n=e.form||undefined,n=o.buildFormBaseData(r,i,e,n),n={event_id:Dl(),event_type:p.FORM_SUBMIT_RESULT,event_category:ml.BEHAVIOR,timestamp:Date.now(),page_url:"undefined"!=typeof window?window.location.href:(null==(t=r.getOriginFrom)?void 0:t.call(r))||"",data:h(h({},n),{event_name:"form_submit_fail",is_effective_action:!0,validation_message:e.validationMessage||undefined,event_properties:h(h({},n.event_properties||{}),{status:"fail",validation_code:!1===(null==(t=e.validity)?void 0:t.valid)?"invalid":"validation_error"})})},null!=(e=r.reportTDEMEvent))&&e.call(r,n)}),e=function(){o.reportPendingUncompletedForms(r,i,"pagehide")},"undefined"!=typeof window)&&(window.addEventListener("pagehide",e),i.removeDomListeners.push(function(){window.removeEventListener("pagehide",e)}))},getTrackableField:function(e){return!(e&&e instanceof Element)||!(e=e.closest("input, textarea, select"))||e instanceof HTMLInputElement&&["button","submit","reset","image","hidden"].includes(e.type)?null:e},buildFormBaseData:function(e,t,n,r){var n=n||null,r=r||(null==n?void 0:n.form)||undefined,i=(null==(i=t.config.form)?void 0:i.fieldIdAttr)||"data-field-id",t=(null==(t=t.config.form)?void 0:t.formIdAttr)||"data-form-id",i=n?n.getAttribute(i)||n.id||n.name||n.tagName.toLowerCase()+"_"+(n.type||"field"):undefined,t=r&&(r.getAttribute(t)||r.id||r.getAttribute("name")||r.getAttribute("action"))||undefined,o="string"==typeof(null==(o=n)?void 0:o.value)?n.value.length:0,o=0===o?"0":o<=10?"1_10":o<=50?"11_50":"51_plus";return{replay_id:$c(e),is_effective_action:!0,form_id:t,field_id:i,tags:{},event_properties:{field_name:(null==n?void 0:n.name)||"",field_type:(null==n?void 0:n.type)||(null==(e=null==n?void 0:n.tagName)?void 0:e.toLowerCase())||"",form_name:(null==r?void 0:r.getAttribute("name"))||"",is_required:String(!(null==n||!n.required)),value_length_bucket:String(o)}}},reportFormEvent:function(e,t,n,r,i){var t=this.buildFormBaseData(e,t,r,i),i="undefined"!=typeof window?window.location.href:(null==(r=e.getOriginFrom)?void 0:r.call(e))||"",r={event_id:Dl(),timestamp:Date.now(),page_url:i};n!==p.FORM_FOCUS?n!==p.FORM_BLUR?n!==p.FORM_CHANGE?(i=h(h({},r),{event_type:p.FORM_SUBMIT,event_category:ml.BEHAVIOR,data:h(h({},t),{submit_method:"native_submit"})}),null!=(n=e.reportTDEMEvent)&&n.call(e,i)):(i=h(h({},r),{event_type:p.FORM_CHANGE,event_category:ml.BEHAVIOR,data:t}),null!=(n=e.reportTDEMEvent)&&n.call(e,i)):(i=h(h({},r),{event_type:p.FORM_BLUR,event_category:ml.BEHAVIOR,data:t}),null!=(n=e.reportTDEMEvent)&&n.call(e,i)):(i=h(h({},r),{event_type:p.FORM_FOCUS,event_category:ml.BEHAVIOR,data:t}),null!=(n=e.reportTDEMEvent)&&n.call(e,i))},onClickStart:function(e,t,n){var r,i=t.config.click||TR.click;!1!==i.enabled&&(r=n.node.selector||n.node.tagName||"unknown",this.shouldIgnoreDeadClick(n.target,i)?this.resolvePendingDeadClicks(t,"custom",n.timestamp,this.getCurrentPageUrl()):this.scheduleDeadClick(e,t,{pendingId:"pending_"+n.timestamp+"_"+Math.random().toString(16).slice(2),timestamp:n.timestamp,pageUrl:this.getCurrentPageUrl(),ownerKey:r,node:n.node}))},onEffectiveAction:function(e,t){this.shouldResolveByReason(e,t.reason)&&this.resolvePendingDeadClicks(e,t.reason,t.timestamp,this.getCurrentPageUrl())},scheduleDeadClick:function(t,n,r){var i=this,o=null!=(e=null==(e=n.config.click)?void 0:e.deadClickWindowMs)?e:3e3,e=setTimeout(function(){var e=n.pendingDeadClicks.get(r.pendingId);e&&(n.pendingDeadClicks["delete"](r.pendingId),i.emitDeadClick(t,n,e,o))},o);n.pendingDeadClicks.set(r.pendingId,h(h({},r),{timeout:e}))},emitDeadClick:function(e,t,n,r){var i,o=n.clickEventId?[n.clickEventId]:undefined;null!=(i=e.reportStruggle)&&i.call(e,{type:"dead_click",ownerType:"element",ownerKey:n.ownerKey,pageUrl:n.pageUrl,triggerEventId:n.clickEventId,relatedEventIds:o,detectionSource:"rule_engine",ruleVersion:t.config.ruleVersion,payloadAllowlist:t.config.payloadAllowlist,payload:{timeout_ms:r,selector:n.node.selector||""}})},resolvePendingDeadClicks:function(r,i,o,a){void 0===o&&(o=Date.now());var e,s=null!=(e=null==(e=r.config.click)?void 0:e.deadClickWindowMs)?e:3e3;r.pendingDeadClicks.forEach(function(e,t){var n=o-e.timestamp;n<0||s<n||"spa_navigation"!==i&&"page_unload"!==i&&a&&e.pageUrl&&a!==e.pageUrl||(clearTimeout(e.timeout),r.pendingDeadClicks["delete"](t))})},linkPendingDeadClickToClickEvent:function(e,n,r){var i=n.timestamp||Date.now(),o=this.getEventPageUrl(n);e.pendingDeadClicks.forEach(function(e){var t;e.clickEventId||(t=i-e.timestamp)<0||1e3<t||o&&e.pageUrl&&o!==e.pageUrl||(e.clickEventId=n.event_id,r&&"unknown"!==r&&(e.ownerKey=r))})},shouldResolveByReason:function(e,t){e=e.config.click||TR.click;return!1!==e.enabled&&("dom_mutation"===t?!1!==e.resolveOnDomMutation:"spa_navigation"===t?!1!==e.resolveOnSpaNavigation:"external_navigation"===t||"download"===t?!1!==e.resolveOnExternalNavigation:"window_open"===t?!1!==e.resolveOnWindowOpen:"page_unload"===t?!1!==e.resolveOnPageUnload:"form_change"===t||"form_submit"===t?!1!==e.resolveOnFormAction:"api_success"!==t||!1!==e.resolveOnApiSuccess)},shouldIgnoreDeadClick:function(t,e){return Hu(e.ignoreDeadClickSelectors||[],e.effectiveActionSelectors||[]).some(function(e){try{return!!e&&!!t.closest(e)}catch(Me){return!1}})},getCurrentPageUrl:function(){return"undefined"==typeof window?"":window.location.href},getEventPageUrl:function(e){return(null==e?void 0:e.page_url)||(null==(e=null==e?void 0:e.data)?void 0:e.page_url)||""},onRageClick:function(e,t,n){var r=n.node.selector||n.node.tagName||"unknown",i=null!=(o=null==(o=t.config.click)?void 0:o.rageClickWindowMs)?o:1e3,o=t.recentClicks.filter(function(e){return n.timestamp-e.timestamp<=i}).map(function(e){return e.eventId}).filter(Boolean).slice(-10),r={type:"rage_click",ownerType:"element",ownerKey:r,pageUrl:window.location.href,triggerEventId:o[0],relatedEventIds:o.length?o:undefined,detectionSource:"rule_engine",ruleVersion:t.config.ruleVersion,payloadAllowlist:t.config.payloadAllowlist,payload:{clickCount:n.clickCount,timeWindowMs:n.timeWindowMs,selector:n.node.selector||""}};null!=(o=e.reportStruggle)&&o.call(e,r)},onSlowClick:function(e,t,n){},handleEventCreated:function(i,o,e){var t,a=this,s=Date.now(),n=o.config.click||TR.click,r=Math.max(null!=(t=n.errorClickWindowMs)?t:3e3,null!=(t=n.rageClickWindowMs)?t:1e3,null!=(t=n.deadClickWindowMs)?t:3e3);o.recentClicks=o.recentClicks.filter(function(e){return s-e.timestamp<=r}),e.forEach(function(e){var t,n,r;e&&e.event_type!==p.STRUGGLE&&(t=e.timestamp||s,n=a.getEventPageUrl(e),e.event_type===p.CLICK?(r=(null==(r=e.data)?void 0:r.target_element)||(null==(r=e.data)?void 0:r.target_id)||(null==(r=e.data)?void 0:r.target_class)||"unknown",o.recentClicks.push({eventId:e.event_id,timestamp:t,pageUrl:n,ownerKey:r}),a.linkPendingDeadClickToClickEvent(o,e,r)):(a.isEffectiveActionEvent(o,e)&&(a.resolvePendingDeadClicks(o,a.getEffectiveActionReason(e),t,n),null!=(r=o.clickDetector)&&r.markEffectiveAction(a.getEffectiveActionReason(e))),MR.has(e.event_type)?a.tryReportErrorClick(i,o,e):e.event_type===p.PAGE_LOAD||e.event_type===p["true"]?a.tryReportSlowPage(i,o,e):e.event_type===p.FORM_FOCUS?(a.trackFormFocus(o,e),a.trackFormChangeAndZigzag(i,o,e)):e.event_type===p.FORM_CHANGE?a.trackFormChangeAndZigzag(i,o,e):e.event_type===p.FORM_BLUR?a.tryReportLongFocusTime(i,o,e):e.event_type===p.FORM_SUBMIT?a.trackFormSubmitResult(o,e):e.event_type===p.FORM_SUBMIT_RESULT?(a.trackFormSubmitResult(o,e),a.tryReportFormValidationError(i,o,e)):e.event_type===p.PAGE_VIEW&&null!=(n=null==(t=e.data)?void 0:t.event_properties)&&n.navigation_type&&a.tryReportBackForward(i,o,e)),a.tryReportCustomStruggle(i,o,e))})},isEffectiveActionEvent:function(e,t){var n;return!1!==(null==(n=e.config.click)?void 0:n.enabled)&&(t.event_type===p.API_CALL?!1!==(null==(n=e.config.click)?void 0:n.resolveOnApiSuccess):t.event_type===p.PAGE_VIEW&&null!=(n=null==(n=t.data)?void 0:n.event_properties)&&n.navigation_type?!1!==(null==(n=e.config.click)?void 0:n.resolveOnSpaNavigation):PR.has(t.event_type)?!1!==(null==(n=e.config.click)?void 0:n.resolveOnFormAction):!0===(null==(e=t.data)?void 0:e.is_effective_action))},getEffectiveActionReason:function(e){return e.event_type===p.API_CALL?"api_success":e.event_type===p.PAGE_VIEW?"spa_navigation":e.event_type===p.FORM_CHANGE?"form_change":e.event_type===p.FORM_SUBMIT||e.event_type===p.FORM_SUBMIT_RESULT?"form_submit":"custom"},getFormStateKey:function(e,t){return e||t||"unknown_form"},ensureFormState:function(e,t,n){var r=this.getFormStateKey(t,n);return e.formStateMap.has(r)||e.formStateMap.set(r,{formId:t||r,pageUrl:n||"",touchedFieldIds:new Set,requiredFieldIds:new Set,changedFieldIds:new Set,focusPath:[],zigzagHits:0,hasSuccessSubmit:!1,reportedZigzag:!1,reportedUncompleted:!1}),e.formStateMap.get(r)},recordFormTouch:function(e,t){var n,e=this.ensureFormState(e,null==(e=null==t?void 0:t.data)?void 0:e.form_id,null==t?void 0:t.page_url),r=String((null==(r=null==t?void 0:t.data)?void 0:r.field_id)||"");return r&&(e.touchedFieldIds.add(r),!0===(null==(n=t.data)?void 0:n.is_required)&&e.requiredFieldIds.add(r),t.event_type===p.FORM_CHANGE)&&e.changedFieldIds.add(r),null!=t&&t.page_url&&(e.pageUrl=t.page_url),e},trackFormFocus:function(e,t){var n,r=t,i=String((null==(i=null==r?void 0:r.data)?void 0:i.field_id)||"");i&&((n=this.recordFormTouch(e,r)).focusPath.push(i),12<n.focusPath.length&&n.focusPath.shift(),e.focusStartMap.set(i,{timestamp:t.timestamp||Date.now(),eventId:t.event_id,formId:null==(n=null==r?void 0:r.data)?void 0:n.form_id,pageUrl:null==r?void 0:r.page_url}))},trackFormChangeAndZigzag:function(e,t,n){var r,i,o,a,s;n.event_type!==p.FORM_CHANGE?n.event_type!==p.FORM_FOCUS||(s=(i=this.recordFormTouch(t,r=n)).focusPath).length<4||i.reportedZigzag||(o=(s=s.slice(-4))[0],a=s[1],!o)||!a||o===a||o!==s[2]||a!==s[3]||i.changedFieldIds.size<2||(i.zigzagHits+=1,s=null!=(a=null==(o=t.config.form)?void 0:o.zigzagMinCount)?a:2,i.zigzagHits<s)||(i.reportedZigzag=!0,null==(o=e.reportStruggle))||o.call(e,{type:"form_zigzag",ownerType:"form",ownerKey:i.formId,pageUrl:i.pageUrl,formId:i.formId,fieldId:String((null==(a=null==r?void 0:r.data)?void 0:a.field_id)||""),triggerEventId:r.event_id,relatedEventIds:[r.event_id],detectionSource:"rule_engine",ruleVersion:t.config.ruleVersion,payloadAllowlist:t.config.payloadAllowlist,payload:{zigzag_hits:i.zigzagHits,changed_field_count:i.changedFieldIds.size}}):this.recordFormTouch(t,n)},trackFormSubmitResult:function(e,t){t.event_type!==p.FORM_SUBMIT&&t.event_type!==p.FORM_SUBMIT_RESULT||((e=this.recordFormTouch(e,t)).lastSubmitEventId=t.event_id,t.event_type!==p.FORM_SUBMIT_RESULT)||"success"===(null==(t=null==(t=t.data)?void 0:t.event_properties)?void 0:t.status)&&(e.hasSuccessSubmit=!0)},reportPendingUncompletedForms:function(t,n,r){var i=this;n.formStateMap.forEach(function(e){i.tryReportUncompletedForm(t,n,e,r)})},tryReportUncompletedForm:function(e,t,n,r){var i,o,a,s;n.reportedUncompleted||n.hasSuccessSubmit||0===n.touchedFieldIds.size||(a=0<(o=n.requiredFieldIds.size)?o:n.touchedFieldIds.size)<=0||(a=n.changedFieldIds.size/a)<(s=null!=(s=null==(s=t.config.form)?void 0:s.incompleteMinFieldRatio)?s:.3)||(n.reportedUncompleted=!0,null==(i=e.reportStruggle))||i.call(e,{type:"uncompleted_form",ownerType:"form",ownerKey:n.formId,pageUrl:n.pageUrl,formId:n.formId,triggerEventId:n.lastSubmitEventId,relatedEventIds:n.lastSubmitEventId?[n.lastSubmitEventId]:undefined,detectionSource:"rule_engine",ruleVersion:t.config.ruleVersion,payloadAllowlist:t.config.payloadAllowlist,payload:{touched_field_count:n.touchedFieldIds.size,changed_field_count:n.changedFieldIds.size,required_field_count:o,changed_ratio:Number(a.toFixed(4)),threshold_ratio:s}})},tryReportLongFocusTime:function(e,t,n){var r,i,o,a,s=String((null==(s=null==n?void 0:n.data)?void 0:s.field_id)||"");s&&(i=t.focusStartMap.get(s))&&(t.focusStartMap["delete"](s),o=null!=(o=null==(o=t.config.form)?void 0:o.longFocusThresholdMs)?o:2e4,(a=Math.max((n.timestamp||Date.now())-i.timestamp,0))<o||null==(r=e.reportStruggle)||r.call(e,{type:"long_focus_time",ownerType:"field",ownerKey:s,pageUrl:(null==n?void 0:n.page_url)||i.pageUrl,formId:(null==(e=null==n?void 0:n.data)?void 0:e.form_id)||i.formId,fieldId:s,triggerEventId:n.event_id,relatedEventIds:[i.eventId||"",n.event_id].filter(Boolean),detectionSource:"rule_engine",ruleVersion:t.config.ruleVersion,payloadAllowlist:t.config.payloadAllowlist,payload:{focus_duration_ms:a,threshold_ms:o}}))},tryReportErrorClick:function(e,t,n){var r,i,o;t.recentClicks.length&&(i=null!=(o=(t.config.click||TR.click).errorClickWindowMs)?o:3e3,o=Hu(t.recentClicks).reverse().find(function(e){return 0<=n.timestamp-e.timestamp&&n.timestamp-e.timestamp<=i}))&&null!=(r=e.reportStruggle)&&r.call(e,{type:"error_click",ownerType:"element",ownerKey:o.ownerKey,pageUrl:o.pageUrl||n.page_url,triggerEventId:o.eventId,relatedEventIds:[n.event_id],detectionSource:"rule_engine",ruleVersion:t.config.ruleVersion,payloadAllowlist:t.config.payloadAllowlist,payload:{errorEventType:n.event_type}})},tryReportSlowPage:function(e,t,n){var r,i,o,a=t.config.performance||TR.performance;a.enabled&&(i=(null==(i=n.data)?void 0:i.measurements)||{},r=Number(i.lcp||0),i=Number(i.inp||0),o=null!=(o=a.slowPageLcpThreshold)?o:4e3,a=null!=(a=a.slowPageInpThreshold)?a:500,o<=r||a<=i)&&null!=(o=e.reportStruggle)&&o.call(e,{type:"slow_page",ownerType:"page",ownerKey:n.page_url||("undefined"!=typeof window?window.location.href:""),pageUrl:n.page_url,triggerEventId:n.event_id,detectionSource:"rule_engine",ruleVersion:t.config.ruleVersion,payloadAllowlist:t.config.payloadAllowlist,payload:{lcp:r,inp:i,sourceEventType:n.event_type}})},tryReportFormValidationError:function(e,t,n){var r,i,o,a,s=(null==(s=null==n?void 0:n.data)?void 0:s.event_properties)||{},u=(null==n?void 0:n.data)||{};"fail"===String((null==s?void 0:s.status)||(null===(i=u)?void 0:i.status)||"")&&(i=String((null==s?void 0:s.field_id)||(null===(i=u)?void 0:i.field_id)||""),o=String((null==s?void 0:s.form_id)||(null===(o=u)?void 0:o.form_id)||""),a=i||o||(null==n?void 0:n.page_url)||"unknown",null!=(r=e.reportStruggle))&&r.call(e,{type:"form_validation_error",ownerType:i?"field":"form",ownerKey:a,pageUrl:null==n?void 0:n.page_url,formId:o,fieldId:i,triggerEventId:n.event_id,relatedEventIds:[n.event_id],detectionSource:"rule_engine",ruleVersion:t.config.ruleVersion,payloadAllowlist:t.config.payloadAllowlist,payload:{validation_code:(null==s?void 0:s.validation_code)||(null===(e=u)?void 0:e.validation_code),validation_message:null==(a=null==n?void 0:n.data)?void 0:a.validation_message,sourceEventType:n.event_type}})},tryReportBackForward:function(e,t,n){var r,i,o=t.config.navigation||TR.navigation;o.enabled&&o.backForwardAsStruggle&&(n=null==(n=null==(o=n)?void 0:o.data)?void 0:n.event_properties,"back"!==(i=String((null==n?void 0:n.navigation_type)||""))&&"forward"!==i||null==(r=e.reportStruggle)||r.call(e,{type:"back_forward",ownerType:"page",ownerKey:String((null==n?void 0:n.to_page)||"")||(null==o?void 0:o.page_url)||"unknown",pageUrl:null==o?void 0:o.page_url,triggerEventId:o.event_id,relatedEventIds:[o.event_id],detectionSource:"rule_engine",ruleVersion:t.config.ruleVersion,payloadAllowlist:t.config.payloadAllowlist,payload:{navigation_type:i,from_page:null==n?void 0:n.from_page,to_page:null==n?void 0:n.to_page}}))},tryReportCustomStruggle:function(n,r,i){var e=r.config.custom||TR.custom;e.enabled&&"function"==typeof e.detector&&(e=e.detector({event:i,tdem:n}),(Array.isArray(e)?e:e?[e]:[]).forEach(function(e){var t,e=h(h({},e),{type:(null==e?void 0:e.type)||"custom_struggle",ownerType:(null==e?void 0:e.ownerType)||"app",ownerKey:(null==e?void 0:e.ownerKey)||i.page_url||"custom",ruleVersion:(null==e?void 0:e.ruleVersion)||r.config.ruleVersion,payloadAllowlist:(null==e?void 0:e.payloadAllowlist)||r.config.payloadAllowlist,detectionSource:(null==e?void 0:e.detectionSource)||"custom"});null!=(t=n.reportStruggle)&&t.call(n,e)}))},cleanupInstance:function(e){var t=this.instanceStates.get(e);t&&(t.onEventCreated&&e.lifeCycle.remove("tdemEventCreated",t.onEventCreated),t.onDestroy&&e.lifeCycle.remove("destroy",t.onDestroy),t.clickDetector&&t.clickDetector.stop(),t.pendingDeadClicks.forEach(function(e){clearTimeout(e.timeout)}),t.pendingDeadClicks.clear(),this.reportPendingUncompletedForms(e,t,"destroy"),t.focusStartMap.clear(),t.formStateMap.clear(),t.removeDomListeners.forEach(function(e){return e()}),t.removeDomListeners=[],this.instanceStates["delete"](e),0===this.instanceStates.size)&&this.restoreWindowOpenHook()},destroy:function(){var n=this;this.instanceStates.forEach(function(e,t){n.cleanupInstance(t)}),this.instanceStates.clear(),this.restoreWindowOpenHook()}}));function NR(e,t,n){try{var r={projectKey:e,sampleRate:t,replaySampleRate:n,timestamp:Date.now()};localStorage.setItem("TDEM_SAMPLE_CONFIG",JSON.stringify(r))}catch(Ly){}}function LR(e){return e._tdemSampleGate||null}function DR(e,t,n){e=LR(e);e?!n||t<=0?e.decide(!1):100<=t?e.decide(!0):(n=100*Math.random()<t,e.decide(n)):console.warn("[TDEM] Sample gate not found")}function FR(e,t){var n=LR(e);!(n&&n.isDecided&&n.isSampled)||t<=0?e._replaySampled=!1:100<=t?e._replaySampled=!0:(n=100*Math.random(),e._replaySampled=n<t)}function UR(e,t,n){var r=LR(e);r&&((t=t?function(e){try{var t,n=localStorage.getItem("TDEM_SAMPLE_CONFIG");return n?(t=JSON.parse(n)).projectKey===e&&Date.now()-t.timestamp<6048e5?t:null:null}catch(Ly){return null}}(t):null)?(console.info("[TDEM] Using cached config, sampleRate:",t.sampleRate,"replaySampleRate:",t.replaySampleRate),n._cachedSampleRate=t.sampleRate,n._cachedReplaySampleRate=t.replaySampleRate,DR(e,t.sampleRate,0<t.sampleRate),FR(e,t.replaySampleRate)):(console.warn("[TDEM] No cached config, default to not report"),r.decide(!1),e._replaySampled=!1))}n=new o({name:"tdemConfig",_cachedSampleRate:null,_cachedReplaySampleRate:null,onNewTdem:function(e){var t=this;!function(l,c){var d;ju(this,void 0,void 0,function(){var n,r,i,o,a,s,u;return Wu(this,function(e){switch(e.label){case 0:if(!(n=l.config.id))return UR(l,n,c),[2];if(r=l._prefetchedConfigData)return delete l._prefetchedConfigData,o=r.tdem_sample_rate,a=null!=(d=r.replay_sample_rate)?d:1,s=r.enabled,NR(n,o,a),c._cachedSampleRate=o,c._cachedReplaySampleRate=a,DR(l,o,s),FR(l,a),[2];if(t=(l.config.url||"").replace(/\/+$/,""),!(r=t?t+"/api/v1/config":""))return UR(l,n,c),[2];e.label=1;case 1:return e.trys.push([1,4,,5]),[4,fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({project_key:n})})];case 2:if((i=e.sent()).ok)return[4,i.json()];throw new Error("HTTP "+i.status);case 3:if(0===(i=e.sent()).code&&i.data)return o=i.data.tdem_sample_rate,a=null!=(d=i.data.replay_sample_rate)?d:1,s=i.data.enabled,NR(n,o,a),c._cachedSampleRate=o,c._cachedReplaySampleRate=a,DR(l,o,s),FR(l,a),[3,5];throw new Error("API error: code="+i.code);case 4:return u=e.sent(),console.warn("[TDEM] Failed to fetch remote config:",u),UR(l,n,c),[3,5];case 5:return[2]}var t})})}(e,this),e.lifeCycle.on("sessionRefreshed",function(){t.onSessionRefreshed(e)})},onSessionRefreshed:function(e){var t,n=LR(e);n&&n.isDecided&&null!==(t=this._cachedSampleRate)&&t!==undefined&&((t=n.reDecide(t))?FR(e,null!=(n=this._cachedReplaySampleRate)?n:1):e._replaySampled=!1,console.info("[TDEM] Session refreshed, session="+t+", replay="+e._replaySampled))}});return Xg.use(nd),Xg.use(gd),Xg.use(mt),Xg.use(i),Xg.use(on),Xg.use(Ct),Xg.use(Or),Xg.use(wt),Xg.use(rd),Xg.use(Id),Xg.use(fd),Xg.use(yb),Xg.use(e),Xg.use(hd),Xg.use(n),Xg});
10
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).TDEM=t()}(this,function(){"use strict";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}function w(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function A(s){return function(){var e=this,a=arguments;return new Promise(function(t,n){var r=s.apply(e,a);function i(e){w(r,t,n,i,o,"next",e)}function o(e){w(r,t,n,i,o,"throw",e)}i(void 0)})}}function v(e,t,n){t=N(t);var r=e,e=U()?Reflect.construct(t,n||[],N(e).constructor):t.apply(e,n);if(!e||"object"!=typeof e&&"function"!=typeof e){if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(e=r))throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function De(e,t,n){var r;return U()?Reflect.construct.apply(null,arguments):((r=[null]).push.apply(r,t),t=new(e.bind.apply(e,r)),n&&q(t,n.prototype),t)}function P(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,G(r.key),r)}}function k(e,t,n){return t&&P(e.prototype,t),n&&P(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Me(e,t){var n,r,i,o,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return i=!(r=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return r=e.done,e},e:function(e){i=!0,n=e},f:function(){try{r||null==a["return"]||a["return"]()}finally{if(i)throw n}}};if(Array.isArray(e)||(a=J(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),o=0,{s:t=function(){},n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:t};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 L(e,t,n){return(t=G(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D(){return(D="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=N(e)););return e}(e,t);if(r)return(r=Object.getOwnPropertyDescriptor(r,t)).get?r.get.call(arguments.length<3?e:n):r.value}).apply(null,arguments)}function N(e){return(N=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function F(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&&q(e,t)}function U(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(U=function(){return!!e})()}function j(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Ae(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?j(Object(n),!0).forEach(function(e){L(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function z(e,t){if(null==e)return{};var n,r=function(e,t){if(null==e)return{};var n,r={};for(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)for(var i=Object.getOwnPropertySymbols(e),o=0;o<i.length;o++)n=i[o],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n]);return r}function B(){var p,m,e="function"==typeof Symbol?Symbol:{},t=e.iterator||"@@iterator",n=e.toStringTag||"@@toStringTag";function r(e,t,n,r){var i,o,a,s,u,l,c,f,d,t=t&&t.prototype instanceof v?t:v,t=Object.create(t.prototype);return W(t,"_invoke",(i=e,o=n,c=r||[],f=!1,d={p:l=0,n:0,v:p,a:h,f:h.bind(p,4),d:function(e,t){return a=e,s=0,u=p,d.n=t,g}},function(e,t,n){if(1<l)throw TypeError("Generator is already running");for(f&&1===t&&h(t,n),s=t,u=n;(m=s<2?p:u)||!f;){a||(s?s<3?(1<s&&(d.n=-1),h(s,u)):d.n=u:d.v=u);try{if(l=2,a){if(m=a[e=s?e:"next"]){if(!(m=m.call(a,u)))throw TypeError("iterator result is not an object");if(!m.done)return m;u=m.value,s<2&&(s=0)}else 1===s&&(m=a["return"])&&m.call(a),s<2&&(u=TypeError("The iterator does not provide a '"+e+"' method"),s=1);a=p}else if((m=(f=d.n<0)?u:i.call(o,d))!==g)break}catch(m){a=p,s=1,u=m}finally{l=1}}return{value:m,done:f}}),!0),t;function h(e,t){for(s=e,u=t,m=0;!f&&l&&!n&&m<c.length;m++){var n,r=c[m],i=d.p,o=r[2];3<e?(n=o===t)&&(u=r[(s=r[4])?5:s=3],r[4]=r[5]=p):r[0]<=i&&((n=e<2&&i<r[1])?(s=0,d.v=t,d.n=r[1]):i<o&&(n=e<3||r[0]>t||o<t)&&(r[4]=e,r[5]=t,d.n=o,s=0))}if(n||1<e)return g;throw f=!0,t}}var g={};function v(){}function i(){}function o(){}m=Object.getPrototypeOf;var e=[][t]?m(m([][t]())):(W(m={},t,function(){return this}),m),a=o.prototype=v.prototype=Object.create(e);function s(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,o):(e.__proto__=o,W(e,n,"GeneratorFunction")),e.prototype=Object.create(a),e}return W(a,"constructor",i.prototype=o),W(o,"constructor",i),W(o,n,i.displayName="GeneratorFunction"),W(a),W(a,n,"Generator"),W(a,t,function(){return this}),W(a,"toString",function(){return"[object Generator]"}),(B=function(){return{w:r,m:s}})()}function W(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(W=function(e,t,n,r){function i(t,n){W(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))})(e,t,n,r)}function H(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}}}throw new TypeError(typeof e+" is not iterable")}function q(e,t){return(q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ne(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n["return"]&&(a=n["return"](),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||J(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 V(e,t,n,r){var i=D(N(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}function Fe(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}()||J(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 G(e){e=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0===t)return String(e);e=t.call(e,"string");if("object"!=typeof e)return e;throw new TypeError("@@toPrimitive must return a primitive value.")}(e);return"symbol"==typeof e?e:e+""}function S(e){return(S="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})(e)}function J(e,t){var n;if(e)return"string"==typeof e?u(e,t):"Map"===(n="Object"===(n={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}function $(e){var n="function"==typeof Map?new Map:void 0;return($=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(YS){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!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return De(e,arguments,N(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),q(t,e)})(e)}var R,g=function(e){try{return!!e()}catch(w){return!0}},Z=void 0,y=((R=void 0)({target:"Array",stat:!0},{isArray:Z}),void 0),K=y({}.toString),Y=y("".slice),Q=function(e){return Y(K(e),8,-1)},ee=(Array.isArray,"object"==("undefined"==typeof document?"undefined":S(document))&&document.all),_=void 0===ee&&ee!==undefined?function(e){return"function"==typeof e||e===ee}:function(e){return"function"==typeof e},O=function(e){return"object"==S(e)?null!==e:_(e)},te=function(e){return null===e||e===undefined},ne=TypeError,re=function(e){if(te(e))throw new ne("Can't call method on "+e);return e},ie=Object,oe=function(e){return ie(re(e))},ae=void 0,se=(R({target:"Math",stat:!0},{trunc:ae}),Math.ceil,function(e){e=+e;return e!=e||0==e?0:ae(e)}),ue=Math.min,le=function(e){e=se(e);return 0<e?ue(e,9007199254740991):0},ce=function(e){return le(e.length)},fe=TypeError,de=function(e){if(9007199254740991<e)throw new fe("Maximum allowed index exceeded");return e},x=void 0,he=x.document,pe=O(he)&&O(he.createElement),me=function(e){return pe?he.createElement(e):{}},d=void 0,e=(d||g(function(){return 7!==Object.defineProperty(me("div"),"a",{get:function(){return 7}}).a}),d&&g(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})),ge=String,ve=TypeError,E=function(e){if(O(e))return e;throw new ve(ge(e)+" is not an object")},ye=!g(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),we=Function.prototype.call,I=ye?we.bind(we):function(){return we.apply(we,arguments)},be=function(e,t){return arguments.length<2?(n=x[e],_(n)?n:undefined):x[e]&&x[e][t];var n},ke=y({}.isPrototypeOf),Se=String,_e=function(e){try{return Se(e)}catch(w){return"Object"}},Ee=TypeError,Ce=function(e){if(_(e))return e;throw new Ee(_e(e)+" is not a function")},Re=void 0,Oe=!g(function(){Reflect.apply(function(){})}),Oe=(R({target:"Reflect",stat:!0,forced:Oe},{apply:function(e,t,n){return Re(Ce(e),t,E(n))}}),Function.prototype),xe=Oe.apply,Oe=Oe.call,Ie=("object"==("undefined"==typeof Reflect?"undefined":S(Reflect))&&Reflect.apply||ye&&Oe.bind(xe),y({}.hasOwnProperty)),T=Object.hasOwn||function(e,t){return Ie(oe(e),t)},xe=Function.prototype,Oe=d&&Object.getOwnPropertyDescriptor,Te=T(xe,"name"),Ue={EXISTS:Te,PROPER:Te&&"something"===function(){}.name,CONFIGURABLE:Te&&(!d||Oe(xe,"name").configurable)},Te=function(e,t){var n=[][e];return!!n&&g(function(){n.call(null,t||function(){return 1},1)})},je=void 0,ze=void 0,Be=y([].join),xe=je!==Object||!Te("join",","),Oe=(R({target:"Array",proto:!0,forced:xe},{join:function(e){return Be(ze(this),e===undefined?",":e)}}),"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{});function We(e,t,n){return e(n={path:t,exports:{},require:function(e,t){throw t!==undefined&&null!==t||n.path,new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}},n.exports),n.exports}var He=Object.defineProperty,qe=function(e,t){try{He(x,e,{value:t,configurable:!0,writable:!0})}catch(A){x[e]=t}return t},Ve=We(function(e){e=e.exports=x["__core-js_shared__"]||qe("__core-js_shared__",{});(e.versions||(e.versions=[])).push({version:"3.49.0",mode:"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})}),Ge=y(Function.toString);_(Ve.inspectSource)||(Ve.inspectSource=function(e){return Ge(e)});var Je,$e=Ve.inspectSource,Ze=void 0,Ke=Ze("toStringTag"),Ye=Object,Xe="Arguments"===Q(function(){return arguments}()),Qe=function(e){var n,t;return e===undefined?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(e=Ye(e),Ke))?n:Xe?Q(e):"Object"===(t=Q(e))&&_(e.callee)?"Arguments":t},et=String,C=function(e){if("Symbol"===Qe(e))throw new TypeError("Cannot convert a Symbol value to a string");return et(e)},xe=(Je=!1,(xe=/[ac]/).exec=function(){return Je=!0,/./.exec.apply(this,arguments)},!0===xe.test("abc")&&Je),tt=/./.test;R({target:"RegExp",proto:!0,forced:!xe},{test:function(e){var t=E(this),e=C(e),n=t.exec;return _(n)?null!==(n=I(n,t,e))&&(E(n),!0):I(tt,t,e)}});var nt,rt,it,ot,xe=x.WeakMap,xe=_(xe)&&/native code/.test(String(xe)),at=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},st=void 0,ut=d?function(e,t,n){return st.f(e,t,at(1,n))}:function(e,t,n){return e[t]=n,e},lt=function(e,t){return Ve[e]||(Ve[e]=t||{})},ct=0,ft=Math.random(),dt=y(1.1.toString),ht=function(e){return"Symbol("+(e===undefined?"":e)+")_"+dt(++ct+ft,36)},pt=lt("keys"),mt=function(e){return pt[e]||(pt[e]=ht(e))},gt={},vt=x.TypeError,yt=x.WeakMap,wt=xe||Ve.state?((it=Ve.state||(Ve.state=new yt)).get=it.get,it.has=it.has,it.set=it.set,nt=function(e,t){if(it.has(e))throw new vt("Object already initialized");return t.facade=e,it.set(e,t),t},rt=function(e){return it.get(e)||{}},function(e){return it.has(e)}):(ot=mt("state"),gt[ot]=!0,nt=function(e,t){if(T(e,ot))throw new vt("Object already initialized");return t.facade=e,ut(e,ot,t),t},rt=function(e){return T(e,ot)?e[ot]:{}},function(e){return T(e,ot)}),bt={set:nt,get:rt,has:wt,enforce:function(e){return wt(e)?rt(e):nt(e,{})},getterFor:function(t){return function(e){if(O(e)&&(e=rt(e)).type===t)return e;throw new vt("Incompatible receiver, "+t+" required")}}},kt=We(function(e){var r=Ue.CONFIGURABLE,i=bt.enforce,t=bt.get,o=String,a=Object.defineProperty,s=y("".slice),u=y("".replace),l=y([].join),c=d&&!g(function(){return 8!==a(function(){},"length",{value:8}).length}),f=String(String).split("String"),e=e.exports=function(e,t,n){"Symbol("===s(o(t),0,7)&&(t="["+u(o(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!T(e,"name")||r&&e.name!==t)&&(d?a(e,"name",{value:t,configurable:!0}):e.name=t),c&&n&&T(n,"arity")&&e.length!==n.arity&&a(e,"length",{value:n.arity});try{n&&T(n,"constructor")&&n.constructor?d&&a(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=undefined)}catch(U){}n=i(e);return T(n,"source")||(n.source=l(f,"string"==typeof t?t:"")),e};Function.prototype.toString=e(function(){return _(this)&&t(this).source||$e(this)},"toString")}),St=function(e,t,n){return n.get&&kt(n.get,t,{getter:!0}),n.set&&kt(n.set,t,{setter:!0}),st.f(e,t,n)},yt=Ue.EXISTS,_t=Function.prototype,Et=y(_t.toString),Ct=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Rt=y(Ct.exec),Ot=(d&&!yt&&St(_t,"name",{configurable:!0,get:function(){try{return Rt(Ct,Et(this))[1]}catch(u){return""}}}),function(e,t,n,r){var i=(r=r||{}).enumerable,o=r.name!==undefined?r.name:t;if(_(n)&&kt(n,o,r),r.global)i?e[t]=n:qe(t,n);else{try{r.unsafe?e[t]&&(i=!0):delete e[t]}catch(P){}i?e[t]=n:st.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e}),xt=void 0,It=Ze("species"),Tt=RegExp.prototype,yt=function(r,e,t,n){var a,i=Ze(r),s=!g(function(){var e={};return e[i]=function(){return 7},7!==""[r](e)}),o=s&&!g(function(){var e,t=!1,n=/a/;return"split"===r&&((e={})[It]=function(){return n},(n={constructor:e,flags:""})[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](""),!t});s&&o&&!t||(a=/./[i],o=e(i,""[r],function(e,t,n,r,i){var o=t.exec;return o===xt||o===Tt.exec?s&&!i?{done:!0,value:I(a,t,n,r)}:{done:!0,value:I(e,n,t,r)}:{done:!1}}),Ot(String.prototype,r,o[0]),Ot(Tt,i,o[1])),n&&ut(Tt[i],"sham",!0)},Mt=y("".charAt),At=y("".charCodeAt),Pt=y("".slice),_t=function(i){return function(e,t){var n,e=C(re(e)),t=se(t),r=e.length;return t<0||r<=t?i?"":undefined:(n=At(e,t))<55296||56319<n||t+1===r||(r=At(e,t+1))<56320||57343<r?i?Mt(e,t):n:i?Pt(e,t,t+2):r-56320+(n-55296<<10)+65536}},_t={codeAt:_t(!1),charAt:_t(!0)},Lt=_t.charAt,Dt=function(e,t,n){return t+(n&&Lt(e,t).length||1)},Nt=function(e,t){t=e[t];return te(t)?undefined:Ce(t)},Ft=Math.floor,Ut=y("".charAt),jt=y("".replace),zt=y("".slice),Bt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Wt=/\$([$&'`]|\d{1,2})/g,Ht=x.RegExp,qt={correct:!g(function(){var e=!0;try{Ht(".","d")}catch(k){e=!1}var t,n={},r="",i=e?"dgimsy":"gimsy",o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(t in e&&(o.hasIndices="d"),o)!function(e,t){Object.defineProperty(n,e,{get:function(){return r+=t,!0}})}(t,o[t]);return Object.getOwnPropertyDescriptor(Ht.prototype,"flags").get.call(n)!==i||r!==i})},Vt=function(){var e=E(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},Gt=(d&&!qt.correct&&(St(RegExp.prototype,"flags",{configurable:!0,get:Vt}),qt.correct=!0),RegExp.prototype),Jt=qt.correct?function(e){return e.flags}:function(e){return qt.correct||!ke(Gt,e)||T(e,"flags")?e.flags:I(Vt,e)},$t=TypeError,Zt=function(e,t){var n=e.exec;if(_(n))return null!==(n=I(n,e,t))&&E(n),n;if("RegExp"===Q(e))return I(xt,e,t);throw new $t("RegExp#exec called on incompatible receiver")},Kt=Ze("replace"),Yt=Math.max,Xt=Math.min,Qt=y([].concat),en=y([].push),tn=y("".indexOf),nn=y("".slice),rn="$0"==="a".replace(/./,"$0"),on=!!/./[Kt]&&""===/./[Kt]("a","$0"),an=(yt("replace",function(e,b,k){var S=on?"$":"$0";return[function(e,t){var n=re(this),r=O(e)?Nt(e,Kt):undefined;return r?I(r,e,n,t):I(b,C(n),e,t)},function(e,t){var n=E(this),r=C(e),i=_(t),e=(i||(t=C(t)),C(Jt(n)));if("string"==typeof t&&!~tn(t,S)&&!~tn(t,"$<")&&!~tn(e,"y")){var o=k(b,n,r,t);if(o.done)return o.value}var a,s=!!~tn(e,"g");s&&(a=!!~tn(e,"u")||!!~tn(e,"v"),n.lastIndex=0);for(var u,l=[];null!==(u=Zt(n,r))&&(en(l,u),s);)""===C(u[0])&&(n.lastIndex=Dt(r,le(n.lastIndex),a));for(var c,f="",d=0,h=0;h<l.length;h++){for(var p=C((u=l[h])[0]),m=Yt(Xt(se(u.index),r.length),0),g=[],v=1;v<u.length;v++)en(g,(c=u[v])===undefined?c:String(c));var y=u.groups,w=i?(w=Qt([p],g,m,r),y!==undefined&&en(w,y),C(Re(t,undefined,w))):function(o,a,s,u,l,e){var c=s+o.length,f=u.length,t=Wt;return l!==undefined&&(l=oe(l),t=Bt),jt(e,t,function(e,t){var n;switch(Ut(t,0)){case"$":return"$";case"&":return o;case"`":return zt(a,0,s);case"'":return zt(a,c);case"<":n=l[zt(t,1,-1)];break;default:var r,i=+t;if(0==i)return e;if(f<i)return 0!==(r=Ft(i/10))&&r<=f?u[r-1]===undefined?Ut(t,1):u[r-1]+Ut(t,1):e;n=u[i-1]}return n===undefined?"":n})}(p,r,m,g,y,t);d<=m&&(f+=nn(r,d,m)+w,d=m+p.length)}return f+nn(r,d)}]},!!g(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!rn||on),function(){}),sn=be("Reflect","construct"),un=/^\s*(?:class|function)\b/,ln=y(un.exec),cn=!un.test(an),fn=function(e){if(!_(e))return!1;try{return sn(an,[],e),!0}catch(w){return!1}},rn=function(e){if(!_(e))return!1;switch(Qe(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return cn||!!ln(un,$e(e))}catch(w){return!0}},dn=(rn.sham=!0,!sn||g(function(){var e;return fn(fn.call)||!fn(Object)||!fn(function(){e=!0})||e})?rn:fn),hn=Math.max,pn=Math.min,mn=function(e,t){e=se(e);return e<0?hn(e+t,0):pn(e,t)},gn=TypeError,vn=Object.getOwnPropertyDescriptor,yn=d&&!function(){if(this!==undefined)return 1;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(u){return u instanceof TypeError}}()?function(e,t){if(Z(e)&&!vn(e,"length").writable)throw new gn("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},wn=y("".indexOf);yt("match",function(r,s,u){return[function(e){var t=re(this),n=O(e)?Nt(e,r):undefined;return n?I(n,e,t):new RegExp(e)[r](C(t))},function(e){var t=E(this),n=C(e),e=u(s,t,n);if(e.done)return e.value;e=C(Jt(t));if(!~wn(e,"g"))return Zt(t,n);for(var r=!!~wn(e,"u")||!!~wn(e,"v"),i=[],o=t.lastIndex=0;null!==(a=Zt(t,n));){var a=C(a[0]);""===(i[o]=a)&&(t.lastIndex=Dt(n,le(t.lastIndex),r)),o++}return 0===o?null:i}]});var bn,kn,Sn,_n,En,Cn,Rn,On,rn=x.navigator,rn=rn&&rn.userAgent,xn=rn?String(rn):"",rn=x.process,In=x.Deno,rn=rn&&rn.versions||In&&In.version,In=rn&&rn.v8,Tn=Wn=!(Wn=In?0<(Bn=In.split("."))[0]&&Bn[0]<4?1:+(Bn[0]+Bn[1]):Wn)&&xn&&(!(Bn=xn.match(/Edge\/(\d+)/))||74<=Bn[1])&&(Bn=xn.match(/Chrome\/(\d+)/))?+Bn[1]:Wn,Mn=Ze("species"),rn=function(t){return 51<=Tn||!g(function(){var e=[];return(e.constructor={})[Mn]=function(){return{foo:1}},1!==e[t](Boolean).foo})},An=void 0,Pn=void 0,In=rn("slice"),Ln=Ze("species"),Dn=Array,Nn=Math.max,Fn=(R({target:"Array",proto:!0,forced:!In},{slice:function(e,t){var n,r,i,o=ze(this),a=ce(o),s=mn(e,a),u=mn(t===undefined?a:t,a);if(Z(o)&&(n=o.constructor,(n=dn(n)&&(n===Dn||Z(n.prototype))||O(n)&&null===(n=n[Ln])?undefined:n)===Dn||n===undefined))return Pn(o,s,u);for(r=new(n===undefined?Dn:n)(Nn(u-s,0)),i=0;s<u;s++,i++)s in o&&An(r,i,o[s]);return yn(r,i),r}}),y([].slice),void 0),Un=Fn.f,jn="object"==("undefined"==typeof window?"undefined":S(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],zn={f:function(e){if(!jn||"Window"!==Q(e))return Un(ze(e));try{return Un(e)}catch(w){return Pn(jn)}}},Bn=zn.f,Wn=g(function(){return!Object.getOwnPropertyNames(1)}),In=(R({target:"Object",stat:!0,forced:Wn},{getOwnPropertyNames:Bn}),function(e){if("Function"===Q(e))return y(e)}),Wn=function(s){return function(e,t,n){var r=ze(e),i=ce(r);if(0!==i){var o,a=mn(n,i);if(s&&t!=t){for(;a<i;)if((o=r[a++])!=o)return!0}else for(;a<i;a++)if((s||a in r)&&r[a]===t)return s||a||0}return!s&&-1}},Bn={includes:Wn(!0),indexOf:Wn(!1)},Hn=Bn.indexOf,qn=In([].indexOf),Vn=!!qn&&1/qn([1],1,-0)<0,Wn=Vn||!Te("indexOf"),Gn=(R({target:"Array",proto:!0,forced:Wn},{indexOf:function(e){var t=1<arguments.length?arguments[1]:undefined;return Vn?qn(this,e,t)||0:Hn(this,e,t)}}),y([].push),["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),Jn=(Gn.concat("length","prototype"),Object.getOwnPropertyNames,{f:Object.getOwnPropertySymbols}),$n=y([].concat),Zn=be("Reflect","ownKeys")||function(e){var t=Fn.f(E(e)),n=Jn.f;return n?$n(t,n(e)):t},Kn=void 0,Wn=function(e,t,n){for(var r=Zn(t),i=st.f,o=Kn.f,a=0;a<r.length;a++){var s=r[a];T(e,s)||n&&T(n,s)||i(e,s,o(t,s))}},Yn=x.Symbol,Xn=Yn&&Yn.prototype,Qn=(!d||!_(Yn)||"description"in Xn&&Yn().description===undefined||(bn={},Wn(nr=function(){var e=arguments.length<1||arguments[0]===undefined?undefined:C(arguments[0]),t=ke(Xn,this)?new Yn(e):e===undefined?Yn():Yn(e);return""===e&&(bn[t]=!0),t},Yn),kn=nr["for"],nr["for"]=function(e){var e=C(e),t=I(kn,this,e);return""===e&&(bn[t]=!0),t},(nr.prototype=Xn).constructor=nr,Sn="Symbol(description detection)"===String(Yn("description detection")),_n=y(Xn.valueOf),En=y(Xn.toString),Cn=/^Symbol\((.*)\)[^)]+$/,Rn=y("".replace),On=y("".slice),St(Xn,"description",{configurable:!0,get:function(){var e=_n(this);return T(bn,e)?"":(e=En(e),""===(e=Sn?On(e,7,-1):Rn(e,Cn,"$1"))?undefined:e)}}),R({global:!0,constructor:!0,forced:!0},{Symbol:nr})),TypeError),er=function(e,t){if(ke(t,e))return e;throw new Qn("Incorrect invocation")},Wn=!g(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),tr=void 0,nr=g(function(){tr(1)}),nr=(R({target:"Object",stat:!0,forced:nr,sham:!Wn},{getPrototypeOf:function(e){return tr(oe(e))}}),mt("IE_PROTO"),Object),rr=(nr.prototype,Wn&&nr.getPrototypeOf,void 0),Wn=(R({target:"Object",stat:!0,sham:!d},{create:rr}),void 0),nr=Wn.f,ir=(R({target:"Object",stat:!0,forced:Object.defineProperties!==nr,sham:!d},{defineProperties:nr}),void 0),nr=g(function(){ir(1)});R({target:"Object",stat:!0,forced:nr},{keys:function(e){return ir(oe(e))}});Object.keys,d&&!e&&Object.defineProperties;var or,ar=be("document","documentElement"),nr=mt("IE_PROTO"),e=(gt[nr]=!0,st.f),sr=Ze("unscopables"),ur=Array.prototype,nr=(ur[sr]===undefined&&e(ur,sr,{configurable:!0,value:rr(null)}),function(e){ur[sr][e]=!0}),lr={},cr={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},e=me("span").classList,e=e&&e.constructor&&e.constructor.prototype,e=e===Object.prototype?undefined:e,fr=st.f,dr=Ze("toStringTag"),hr=function(e,t,n){(e=e&&!n?e.prototype:e)&&!T(e,dr)&&fr(e,dr,{configurable:!0,value:t})},pr=void 0,mr=Ze("iterator"),gr=pr.values,vr=function(e,t){if(e){if(e[mr]!==gr)try{ut(e,mr,gr)}catch(v){e[mr]=gr}if(hr(e,t,!0),cr[t])for(var n in pr)if(e[n]!==pr[n])try{ut(e,n,pr[n])}catch(v){e[n]=pr[n]}}};for(or in cr)vr(x[or]&&x[or].prototype,or);vr(e,"DOMTokenList");var t=void 0,yr=t.IteratorPrototype,wr=function(){return this},br=function(e,t,n,r){t+=" Iterator";return e.prototype=rr(yr,{next:at(+!r,n)}),hr(e,t,!1),lr[t]=wr,e},kr=void 0,Sr=(R({target:"Object",stat:!0},{setPrototypeOf:kr}),String,TypeError,Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=function(e){try{return y(Ce(Object.getOwnPropertyDescriptor(e,"__proto__").set))}catch(v){}}(Object.prototype))(n,[]),t=n instanceof Array}catch(v){}}():undefined),Ue.PROPER),_r=Ue.CONFIGURABLE,Er=t.IteratorPrototype,Cr=t.BUGGY_SAFARI_ITERATORS,Rr=Ze("iterator"),Or=function(){return this},xr=function(e,t){return{value:e,done:t}},Ir=function(e,t,n,r,i,o,a){br(n,t,r);var s,u,r=function(e){if(e===i&&h)return h;if(!Cr&&e&&e in f)return f[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},l=t+" Iterator",c=!1,f=e.prototype,d=f[Rr]||f["@@iterator"]||i&&f[i],h=!Cr&&d||r(i),p="Array"===t&&f.entries||d;if(p&&(e=tr(p.call(new e)))!==Object.prototype&&e.next&&(tr(e)!==Er&&(kr?kr(e,Er):_(e[Rr])||Ot(e,Rr,Or)),hr(e,l,!0)),Sr&&"values"===i&&d&&"values"!==d.name&&(_r?ut(f,"name","values"):(c=!0,h=function(){return I(d,this)})),i)if(s={values:r("values"),keys:o?h:r("keys"),entries:r("entries")},a)for(u in s)!Cr&&!c&&u in f||Ot(f,u,s[u]);else R({target:t,proto:!0,forced:Cr||c},s);return f[Rr]!==h&&Ot(f,Rr,h,{name:i}),lr[t]=h,s},n=st.f,Tr=bt.set,Mr=bt.getterFor("Array Iterator"),Ar=(Ir(Array,"Array",function(e,t){Tr(this,{type:"Array Iterator",target:ze(e),index:0,kind:t})},function(){var e=Mr(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,xr(undefined,!0);switch(e.kind){case"keys":return xr(n,!1);case"values":return xr(t[n],!1)}return xr([n,t[n]],!1)},"values"),lr.Arguments=lr.Array);if(nr("keys"),nr("values"),nr("entries"),d&&"values"!==Ar.name)try{n(Ar,"name",{value:"values"})}catch(X){}var Pr,Lr,Dr=Ze("iterator"),Nr=([].keys&&("next"in(Ar=[].keys())?(n=tr(tr(Ar)))!==Object.prototype&&(Pr=n):0),O(Pr)&&!g(function(){var e={};return Pr[Dr].call(e)!==e})||(Pr={}),_(Pr[Dr])||Ot(Pr,Dr,function(){return this}),t.IteratorPrototype),Ar=Ze("toStringTag"),Fr=TypeError,Ur=x.Iterator,n=!_(Ur)||Ur.prototype!==Nr||!g(function(){Ur({})}),r=function(){if(er(this,Nr),tr(this)===Nr)throw new Fr("Abstract class Iterator not directly constructable")},i=function(t,e){d?St(Nr,t,{configurable:!0,get:function(){return e},set:function(e){if(E(this),this===Nr)throw new Fr("You can't redefine this property");T(this,t)?this[t]=e:An(this,t,e)}}):Nr[t]=e},jr=(T(Nr,Ar)||i(Ar,"Iterator"),!n&&T(Nr,"constructor")&&Nr.constructor!==Object||i("constructor",r),r.prototype=Nr,R({global:!0,constructor:!0,forced:n},{Iterator:r}),In(In.bind)),zr=function(e,t){return Ce(e),t===undefined?e:ye?jr(e,t):function(){return e.apply(t,arguments)}},Br=Ze("iterator"),Wr=Array.prototype,Hr=function(e){return e!==undefined&&(lr.Array===e||Wr[Br]===e)},qr=Ze("iterator"),Vr=function(e){if(!te(e))return Nt(e,qr)||Nt(e,"@@iterator")||lr[Qe(e)]},Gr=TypeError,Jr=function(e,t){t=arguments.length<2?Vr(e):t;if(Ce(t))return E(I(t,e));throw new Gr(_e(e)+" is not iterable")},$r=function(e,t,n){var r,i;E(e);try{if(!(r=Nt(e,"return"))){if("throw"===t)throw n;return n}r=I(r,e)}catch(X){i=!0,r=X}if("throw"===t)throw n;if(i)throw r;return E(r),n},Zr=TypeError,Kr=function(e,t){this.stopped=e,this.result=t},Yr=Kr.prototype,Xr=function(e,t,n){var r,i,o,a,s,u=n&&n.that,l=!(!n||!n.AS_ENTRIES),c=!(!n||!n.IS_RECORD),f=!(!n||!n.IS_ITERATOR),d=!(!n||!n.INTERRUPTED),h=zr(t,u),p=function(e){var t=r;return r=undefined,t&&$r(t,"normal"),new Kr(!0,e)},m=function(e){return l?(E(e),d?h(e[0],e[1],p):h(e[0],e[1])):d?h(e,p):h(e)};if(c)r=e.iterator;else if(f)r=e;else{if(!(n=Vr(e)))throw new Zr(_e(e)+" is not iterable");if(Hr(n)){for(i=0,o=ce(e);i<o;i++)if((a=m(e[i]))&&ke(Yr,a))return a;return new Kr(!1)}r=Jr(e,n)}for(s=(c?e:r).next;!(g=I(s,r)).done;){var g=g.value;try{a=m(g)}catch(X){if(!r)throw X;$r(r,"throw",X)}if("object"==S(a)&&a&&ke(Yr,a))return a}return new Kr(!1)},Qr=function(e){return{iterator:e,next:e.next,done:!1}},Ar=function(e,t){var n=x.Iterator,n=n&&n.prototype,e=n&&n[e],r=!1;if(e)try{e.call({next:function(){return{done:!0}},"return":function(){r=!0}},-1)}catch(X){X instanceof t||(r=!1)}if(!r)return e},ei=Ar("forEach",TypeError),ti=(R({target:"Iterator",proto:!0,real:!0,forced:ei},{forEach:function(t){E(this);try{Ce(t)}catch(X){$r(this,"throw",X)}if(ei)return I(ei,this,t);var e=Qr(this),n=0;Xr(e,function(e){t(e,n++)},{IS_RECORD:!0})}}),void 0),ni=function(e){if(e&&e.forEach!==ti)try{ut(e,"forEach",ti)}catch(X){e.forEach=ti}};for(Lr in cr)cr[Lr]&&ni(x[Lr]&&x[Lr].prototype);ni(e);var ri,ii=Ze("species"),oi=Array,ai=function(e,t){return new((n=Z(e=e)&&(n=e.constructor,dn(n)&&(n===oi||Z(n.prototype))||O(n)&&null===(n=n[ii]))?undefined:n)===undefined?oi:n)(0===t?0:t);var n},i=function(d){var h=1===d,p=2===d,m=3===d,g=4===d,v=6===d,y=7===d,w=5===d||v;return function(e,t,n){for(var r,i,o=oe(e),a=je(o),s=ce(a),u=zr(t,n),l=0,c=0,f=h?ai(e,s):p||y?ai(e,0):undefined;l<s;l++)if((w||l in a)&&(i=u(r=a[l],l,o),d))if(h)An(f,l,i);else if(i)switch(d){case 3:return!0;case 5:return r;case 6:return l;case 2:An(f,c++,r)}else switch(d){case 4:return!1;case 7:An(f,c++,r)}return v?-1:m||g?g:f}},si={forEach:i(0),map:i(1),filter:i(2),some:i(3),every:i(4),find:i(5),findIndex:i(6),filterReject:i(7)},ui=(Te("forEach"),R({target:"Array",proto:!0,forced:[].forEach!==ti},{forEach:ti}),x.String),n=!!Object.getOwnPropertySymbols&&!g(function(){var e=Symbol("symbol detection");return!ui(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Tn&&Tn<41}),r={}.propertyIsEnumerable,li=Object.getOwnPropertyDescriptor,ci={f:li&&!r.call({1:2},1)?function(e){e=li(this,e);return!!e&&e.enumerable}:r},fi={f:Ze},di=x,hi=st.f,pi=function(e){var t=di.Symbol||(di.Symbol={});T(t,e)||hi(t,e,{value:fi.f(e)})},mi=void 0,gi=si.forEach,vi=mt("hidden"),yi=bt.set,wi=bt.getterFor("Symbol"),bi=Object.prototype,e=x.Symbol,ki=e&&e.prototype,Si=x.RangeError,_i=x.TypeError,i=x.QObject,Ei=Kn.f,Ci=st.f,Ri=zn.f,Oi=ci.f,xi=y([].push),Ii=lt("symbols"),Ti=lt("op-symbols"),r=lt("wks"),Mi=!i||!i.prototype||!i.prototype.findChild,Ai=function(e,t,n){var r=Ei(bi,t);return r&&delete bi[t],Ci(e,t,n),r&&e!==bi&&Ci(bi,t,r),e},Pi=d&&g(function(){return 7!==rr(Ci({},"a",{get:function(){return Ci(this,"a",{value:7}).a}})).a})?Ai:Ci,Li=function(e,t){var n=Ii[e]=rr(ki);return yi(n,{type:"Symbol",tag:e,description:t}),d||(n.description=t),n},Di=function(e,t,n){e===bi&&Di(Ti,t,n),E(e);t=mi(t);return E(n),(T(Ii,t)?(("enumerable"in n?!n.enumerable:!T(e,t)||T(e,vi)&&e[vi][t])?(T(e,vi)||Ci(e,vi,at(1,rr(null))),e[vi][t]=!0):(T(e,vi)&&e[vi][t]&&(e[vi][t]=!1),n=rr(n,{enumerable:at(0,!1)})),Pi):Ci)(e,t,n)},Ni=function(t,e){E(t);var n=ze(e),e=ir(n).concat(Ui(n));return gi(e,function(e){d&&!I(Fi,n,e)||Di(t,e,n[e])}),t},Fi=function(e){var e=mi(e),t=I(Oi,this,e);return!(this===bi&&T(Ii,e)&&!T(Ti,e))&&(!(t||!T(this,e)||!T(Ii,e)||T(this,vi)&&this[vi][e])||t)},mt=function(e,t){var n,e=ze(e),t=mi(t);if(e!==bi||!T(Ii,t)||T(Ti,t))return!(n=Ei(e,t))||!T(Ii,t)||T(e,vi)&&e[vi][t]||(n.enumerable=!0),n},i=function(e){var e=Ri(ze(e)),t=[];return gi(e,function(e){T(Ii,e)||T(gt,e)||xi(t,e)}),t},Ui=function(e){var t=e===bi,e=Ri(t?Ti:ze(e)),n=[];return gi(e,function(e){!T(Ii,e)||t&&!T(bi,e)||xi(n,Ii[e])}),n},mt=(n||(ki=(e=function(){if(ke(ki,this))throw new _i("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==undefined?C(arguments[0]):undefined,n=ht(e),r=function(e){var t=this===undefined?x:this,e=(t===bi&&I(r,Ti,e),T(t,vi)&&T(t[vi],n)&&(t[vi][n]=!1),at(1,e));try{Pi(t,n,e)}catch(X){if(!(X instanceof Si))throw X;Ai(t,n,e)}};return d&&Mi&&Pi(bi,n,{configurable:!0,set:r}),Li(n,e)}).prototype,Ot(ki,"toString",function(){return wi(this).tag}),Ot(e,"withoutSetter",function(e){return Li(ht(e),e)}),ci.f=Fi,st.f=Di,Wn.f=Ni,Kn.f=mt,Fn.f=zn.f=i,Jn.f=Ui,fi.f=function(e){return Li(Ze(e),e)},d&&(St(ki,"description",{configurable:!0,get:function(){return wi(this).description}}),Ot(bi,"propertyIsEnumerable",Fi,{unsafe:!0}))),R({global:!0,constructor:!0,wrap:!0,forced:!n,sham:!n},{Symbol:e}),gi(ir(r),function(e){pi(e)}),R({target:"Symbol",stat:!0,forced:!n},{useSetter:function(){Mi=!0},useSimple:function(){Mi=!1}}),R({target:"Object",stat:!0,forced:!n,sham:!d},{create:function(e,t){return t===undefined?rr(e):Ni(rr(e),t)},defineProperty:Di,defineProperties:Ni,getOwnPropertyDescriptor:mt}),R({target:"Object",stat:!0,forced:!n},{getOwnPropertyNames:i}),Wn=(Wn=be("Symbol"))&&Wn.prototype,ri=Wn&&Wn.valueOf,r=Ze("toPrimitive"),Wn&&!Wn[r]&&Ot(Wn,r,function(e){return I(ri,this)},{arity:1}),hr(e,"Symbol"),gt[vi]=!0,n&&!!Symbol["for"]&&!!Symbol.keyFor),ji=lt("string-to-symbol-registry"),zi=lt("symbol-to-string-registry"),Bi=(R({target:"Symbol",stat:!0,forced:!mt},{"for":function(e){var t,e=C(e);return T(ji,e)?ji[e]:(t=be("Symbol")(e),ji[e]=t,zi[t]=e,t)}}),void 0),Wi=lt("symbol-to-string-registry");R({target:"Symbol",stat:!0,forced:!mt},{keyFor:function(e){if(!Bi(e))throw new TypeError(_e(e)+" is not a symbol");if(T(Wi,e))return Wi[e]}});var Hi,qi=bt.get,Vi="\t\n\x0B\f\r                 \u2028\u2029\ufeff",Gi=y("".replace),Ji=RegExp("^["+Vi+"]+"),$i=RegExp("(^|[^"+Vi+"])["+Vi+"]+$"),i=function(t){return function(e){e=C(re(e));return 1&t&&(e=Gi(e,Ji,"")),e=2&t?Gi(e,$i,"$1"):e}},Wn={start:i(1),end:i(2),trim:i(3)},Zi=Ue.PROPER,Ki=Wn.trim,Yi=(R({target:"String",proto:!0,forced:(Hi="trim",g(function(){return!!Vi[Hi]()||"​…᠎"!=="​…᠎"[Hi]()||Zi&&Vi[Hi].name!==Hi}))},{trim:function(){return Ki(this)}}),Wn.trim),Xi=x.parseInt,r=x.Symbol,Qi=r&&r.iterator,eo=/^[+-]?0x/i,to=y(eo.exec),e=8!==Xi(Vi+"08")||22!==Xi(Vi+"0x16")||Qi&&!g(function(){Xi(Object(Qi))})?function(e,t){e=Yi(C(e));return Xi(e,t>>>0||(to(eo,e)?16:10))}:Xi,no=(R({global:!0,forced:parseInt!==e},{parseInt:e}),SyntaxError),ro=parseInt,io=String.fromCharCode,oo=y("".charAt),ao=y("".slice),so=y(/./.exec),uo={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},lo=/^[\da-f]{4}$/i,co=/^[\u0000-\u001F]$/,fo=RangeError,ho=Math.floor,mt=function(e){var t=C(re(this)),n="",r=se(e);if(r<0||r===Infinity)throw new fo("Wrong number of repetitions");for(;0<r;(r=ho(r/2))&&(t+=t))r%2&&(n+=t);return n},po=y(mt),mo=y("".slice),go=Math.ceil,i=function(i){return function(e,t,n){var e=C(re(e)),t=le(t),r=e.length;return t<=r||""===(n=n===undefined?" ":C(n))?e:((r=po(n,go((t=t-r)/n.length))).length>t&&(r=mo(r,0,t)),i?e+r:r+e)}},vo=[i(!1),i(!0)][0],yo=RangeError,wo=isFinite,bo=Math.abs,r=Date.prototype,ko=r.toISOString,So=y(r.getTime),_o=y(r.getUTCDate),Eo=y(r.getUTCFullYear),Co=y(r.getUTCHours),Ro=y(r.getUTCMilliseconds),Oo=y(r.getUTCMinutes),xo=y(r.getUTCMonth),Io=y(r.getUTCSeconds),e=g(function(){return"0385-07-25T07:06:39.999Z"!==ko.call(new Date(-50000000000001))})||!g(function(){ko.call(new Date(NaN))})?function(){var e,t,n;if(wo(So(this)))return e=Eo(this),t=Ro(this),(n=e<0?"-":9999<e?"+":"")+vo(bo(e),n?6:4,0)+"-"+vo(xo(this)+1,2,0)+"-"+vo(_o(this),2,0)+"T"+vo(Co(this),2,0)+":"+vo(Oo(this),2,0)+":"+vo(Io(this),2,0)+"."+vo(t,3,0)+"Z";throw new yo("Invalid time value")}:ko,To=(R({target:"Date",proto:!0,forced:Date.prototype.toISOString!==e},{toISOString:e}),void 0),i=g(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),Mo=(R({target:"Date",proto:!0,arity:1,forced:i},{toJSON:function(e){var t=oe(this),n=To(t,"number");return"number"!=typeof n||isFinite(n)?t.toISOString():null}}),void 0),Ao=Mo.ArrayBuffer,Po=Mo.DataView,r=Po.prototype,Lo=In(Ao.prototype.slice),Do=In(r.getUint8),No=In(r.setUint8),e=g(function(){return!new Ao(2).slice(1,undefined).byteLength}),i=(R({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:e},{slice:function(e,t){if(Lo&&t===undefined)return Lo(E(this),e);for(var n=E(this).byteLength,r=mn(e,n),i=mn(t===undefined?n:t,n),e=new Ao(le(i-r)),o=new Po(this),a=new Po(e),s=0;r<i;)No(a,s++,Do(o,r++));return e}}),void 0),Fo=(R({global:!0,constructor:!0,forced:!0},{DataView:Mo.DataView}),function(e,t,n){for(var r in t)Ot(e,r,t[r],n);return e}),Uo=RangeError,jo=function(e){if(e===undefined)return 0;var e=se(e),t=le(e);if(e!==t)throw new Uo("Wrong length or index");return t},zo=(R({target:"Math",stat:!0},{fround:void 0}),R({target:"Math",stat:!0},{sign:void 0}),Math.sign,Array),Bo=Math.abs,Wo=Math.pow,Ho=Math.floor,qo=Math.log,Vo=Math.LN2,Go=function(e){for(var t=oe(this),n=ce(t),r=arguments.length,i=mn(1<r?arguments[1]:undefined,n),r=2<r?arguments[2]:undefined,o=r===undefined?n:mn(r,n);i<o;)t[i++]=e;return t},Jo=function(e,t,n){return kr&&_(t=t.constructor)&&t!==n&&O(t=t.prototype)&&t!==n.prototype&&kr(e,t),e},$o=bt.getterFor("ArrayBuffer"),Zo=bt.getterFor("DataView"),Ko=bt.set,r=x.ArrayBuffer,e=r,Yo=e&&e.prototype,r=x.DataView,Xo=r&&r.prototype,Qo=(Object.prototype,x.Array),ea=x.RangeError,ta=y(Go),na=y([].reverse),ra=function(e,t,n){var r,i,o,a=zo(n),s=8*n-t-1,n=(1<<s)-1,u=n>>1,l=23===t?Wo(2,-24)-Wo(2,-77):0,c=e<0||0===e&&1/e<0?1:0,f=0;for((e=Bo(e))!=e||e===Infinity?(i=e!=e?1:0,r=n):(r=Ho(qo(e)/Vo),e*(o=Wo(2,-r))<1&&(r--,o*=2),2<=(e+=1<=r+u?l/o:l*Wo(2,1-u))*o&&(r++,o/=2),n<=r+u?(i=0,r=n):1<=r+u?(i=(e*o-1)*Wo(2,t),r+=u):(i=e*Wo(2,u-1)*Wo(2,t),r=0));8<=t;)a[f++]=255&i,i/=256,t-=8;for(r=r<<t|i,s+=t;0<s;)a[f++]=255&r,r/=256,s-=8;return a[f-1]|=128*c,a},ia=function(e,t){var n,r=e.length,i=8*r-t-1,o=(1<<i)-1,a=o>>1,s=i-7,u=r-1,i=e[u--],l=127&i;for(i>>=7;0<s;)l=256*l+e[u--],s-=8;for(n=l&(1<<-s)-1,l>>=-s,s+=t;0<s;)n=256*n+e[u--],s-=8;if(0===l)l=1-a;else{if(l===o)return n?NaN:i?-Infinity:Infinity;n+=Wo(2,t),l-=a}return(i?-1:1)*n*Wo(2,l-t)},oa=function(e){return[255&e]},aa=function(e){return[255&e,e>>8&255]},sa=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},ua=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},la=function(e){return ra((void 0)(e),23,4)},ca=function(e){return ra(e,52,8)},fa=function(e,t,n){St(e.prototype,t,{configurable:!0,get:function(){return n(this)[t]}})},da=function(e,t,n,r){e=Zo(e),n=jo(n),r=!!r;if(n+t>e.byteLength)throw new ea("Wrong index");n+=e.byteOffset,e=Pn(e.bytes,n,n+t);return r?e:na(e)},ha=function(e,t,n,r,i,o){var e=Zo(e),n=jo(n),a=r(+i),s=!!o;if(n+t>e.byteLength)throw new ea("Wrong index");for(var u=e.bytes,l=n+e.byteOffset,c=0;c<t;c++)u[l+c]=a[s?c:t-c-1]},Yo=(e=function(e){er(this,Yo);e=jo(e);Ko(this,{type:"ArrayBuffer",bytes:ta(Qo(e),0),byteLength:e}),d||(this.byteLength=e,this.detached=!1)}).prototype,Xo=(r=function(e,t,n){er(this,Xo),er(e,Yo);var r=$o(e),i=r.byteLength,t=se(t);if(t<0||i<t)throw new ea("Wrong offset");if(t+(n=n===undefined?i-t:jo(n))>i)throw new ea("Wrong length");Ko(this,{type:"DataView",buffer:e,byteLength:n,byteOffset:t,bytes:r.bytes}),d||(this.buffer=e,this.byteLength=n,this.byteOffset=t)}).prototype,pa=(d&&(fa(e,"byteLength",$o),fa(r,"buffer",Zo),fa(r,"byteLength",Zo),fa(r,"byteOffset",Zo)),Fo(Xo,{getInt8:function(e){return da(this,1,e)[0]<<24>>24},getUint8:function(e){return da(this,1,e)[0]},getInt16:function(e){e=da(this,2,e,1<arguments.length&&arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(e){e=da(this,2,e,1<arguments.length&&arguments[1]);return e[1]<<8|e[0]},getInt32:function(e){return ua(da(this,4,e,1<arguments.length&&arguments[1]))},getUint32:function(e){return ua(da(this,4,e,1<arguments.length&&arguments[1]))>>>0},getFloat32:function(e){return ia(da(this,4,e,1<arguments.length&&arguments[1]),23)},getFloat64:function(e){return ia(da(this,8,e,1<arguments.length&&arguments[1]),52)},setInt8:function(e,t){ha(this,1,e,oa,t)},setUint8:function(e,t){ha(this,1,e,oa,t)},setInt16:function(e,t){ha(this,2,e,aa,t,2<arguments.length&&arguments[2])},setUint16:function(e,t){ha(this,2,e,aa,t,2<arguments.length&&arguments[2])},setInt32:function(e,t){ha(this,4,e,sa,t,2<arguments.length&&arguments[2])},setUint32:function(e,t){ha(this,4,e,sa,t,2<arguments.length&&arguments[2])},setFloat32:function(e,t){ha(this,4,e,la,t,2<arguments.length&&arguments[2])},setFloat64:function(e,t){ha(this,8,e,ca,t,2<arguments.length&&arguments[2])}}),hr(e,"ArrayBuffer"),hr(r,"DataView"),Ze("species")),ma=function(e){e=be(e);d&&e&&!e[pa]&&St(e,pa,{configurable:!0,get:function(){return this}})},fa=Mo.ArrayBuffer,e=x.ArrayBuffer,ga=(R({global:!0,constructor:!0,forced:e!==fa},{ArrayBuffer:fa}),ma("ArrayBuffer"),g(function(){var e;"function"==typeof ArrayBuffer&&(e=new ArrayBuffer(8),Object.isExtensible(e))&&Object.defineProperty(e,"a",{value:8})})),va=Object.isExtensible,ya=g(function(){va(1)})||ga?function(e){return!!O(e)&&(!ga||"ArrayBuffer"!==Q(e))&&(!va||va(e))}:va,wa=(R({target:"Object",stat:!0,forced:Object.isExtensible!==ya},{isExtensible:ya}),TypeError),ba=function(e,t){if(!delete e[t])throw new wa("Cannot delete property "+_e(t)+" of "+_e(e))},r=rn("splice"),ka=Math.max,Sa=Math.min,_a=(R({target:"Array",proto:!0,forced:!r},{splice:function(e,t){var n,r,i,o,a,s,u=oe(this),l=ce(u),c=mn(e,l),e=arguments.length;for(0===e?n=r=0:r=1===e?(n=0,l-c):(n=e-2,Sa(ka(se(t),0),l-c)),de(l+n-r),i=ai(u,r),o=0;o<r;o++)(a=c+o)in u&&An(i,o,u[a]);if(yn(i,r),n<r){for(o=c;o<l-r;o++)s=o+n,(a=o+r)in u?u[s]=u[a]:ba(u,s);for(o=l;l-r+n<o;o--)ba(u,o-1)}else if(r<n)for(o=l-r;c<o;o--)s=o+n-1,(a=o+r-1)in u?u[s]=u[a]:ba(u,s);for(o=0;o<n;o++)u[o+c]=arguments[o+2];return yn(u,l-r+n),i}}),We(function(e){var t=st.f,a=ht("meta"),n=0,r=function(e){t(e,a,{value:{objectID:"O"+n++,weakData:{}}})},s=e.exports={enable:function(){s.enable=function(){},0;var i=Fn.f,o=y([].splice),e={};e[a]=1,i(e).length&&(Fn.f=function(e){for(var t=i(e),n=0,r=t.length;n<r;n++)if(t[n]===a){o(t,n,1);break}return t},R({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:zn.f}))},fastKey:function(e,t){if(!O(e))return"symbol"==S(e)?e:("string"==typeof e?"S":"P")+e;if(!T(e,a)){if(!ya(e))return"F";if(!t)return"E";r(e)}return e[a].objectID},getWeakData:function(e,t){if(!T(e,a)){if(!ya(e))return!0;if(!t)return!1;r(e)}return e[a].weakData},onFreeze:function(e){return e}};gt[a]=!0})),Ea=_a.onFreeze,Ca=Object.preventExtensions,e=g(function(){Ca(1)}),Ra=(R({target:"Object",stat:!0,forced:e,sham:!0},{preventExtensions:function(e){return Ca&&O(e)?Ca(Ea(e)):e}}),g(function(){return Object.isExtensible(Object.preventExtensions({}))}),_a.onFreeze),Oa=Object.freeze,fa=g(function(){Oa(1)}),xa=(R({target:"Object",stat:!0,forced:fa,sham:!0},{freeze:function(e){return Oa&&O(e)?Oa(Ra(e)):e}}),!g(function(){var e=JSON.rawJSON("9007199254740993");return!JSON.isRawJSON(e)||"9007199254740993"!==JSON.stringify(e)})),Ia=String,Ta=be("JSON","stringify"),Ma=y(/./.exec),Aa=y("".charAt),Pa=y("".charCodeAt),La=y("".replace),Da=y("".slice),Na=y([].push),Fa=y(1.1.toString),Ua=/[\uD800-\uDFFF]/g,ja=/^[\uD800-\uDBFF]$/,za=/^[\uDC00-\uDFFF]$/,Ba=ht(),Wa=Ba.length,r=!n||g(function(){var e=be("Symbol")("stringify detection");return"[null]"!==Ta([e])||"{}"!==Ta({a:e})||"{}"!==Ta(Object(e))}),Ha=g(function(){return'"\\udf06\\ud834"'!==Ta("\udf06\ud834")||'"\\udead"'!==Ta("\udead")}),qa=r?function(e,t){var n=Pn(arguments),r=Ga(t);if(_(r)||e!==undefined&&!Bi(e))return n[1]=function(e,t){if(_(r)&&(t=I(r,this,Ia(e),t)),!Bi(t))return t},Re(Ta,null,n)}:Ta,Va=function(e,t,n){var r=Aa(n,t-1),n=Aa(n,t+1);return Ma(ja,e)&&!Ma(za,n)||Ma(za,e)&&!Ma(ja,r)?"\\u"+Fa(Pa(e,0),16):e},Ga=function(e){if(_(e))return e;if(Z(e)){for(var t=e.length,r=[],n=0;n<t;n++){var i=e[n];"string"==typeof i?Na(r,i):"number"!=typeof i&&"Number"!==Q(i)&&"String"!==Q(i)||Na(r,C(i))}var o=r.length,a=!0;return function(e,t){if(a)return a=!1,t;if(Z(this))return t;for(var n=0;n<o;n++)if(r[n]===e)return t}}},e=(Ta&&R({target:"JSON",stat:!0,arity:3,forced:r||Ha||!xa},{stringify:function(e,t,n){var r=Ga(t),i=[],o=qa(e,function(e,t){e=_(r)?I(r,this,Ia(e),t):t;return!xa&&function(e){if(O(e))return(e=qi(e))&&"RawJSON"===e.type}(e)?Ba+(Na(i,e.rawJSON)-1):e},n);if("string"!=typeof o)return o;if(Ha&&(o=La(o,Ua,Va)),xa)return o;for(var a="",s=o.length,u=0;u<s;u++){var l,c,f=Aa(o,u);'"'===f?(l=function(e,t){for(var n=!0,r="";t<e.length;){var i=oo(e,t);if("\\"===i){var o=ao(e,t,t+2);if(T(uo,o))r+=uo[o],t+=2;else{if("\\u"!==o)throw new no('Unknown escape sequence: "'+o+'"');o=ao(e,t+=2,t+4);if(!so(lo,o))throw new no("Bad Unicode escape at: "+t);r+=io(ro(o,16)),t+=4}}else{if('"'===i){n=!1,t++;break}if(so(co,i))throw new no("Bad control character in string literal at: "+t);r+=i,t++}}if(n)throw new no("Unterminated string at: "+t);return{value:r,end:t}}(o,++u).end-1,c=Da(o,u,l),a+=Da(c,0,Wa)===Ba?i[Da(c,Wa)]:'"'+c+'"',u=l):a+=f}return a}}),!n||g(function(){Jn.f(1)})),Ja=(R({target:"Object",stat:!0,forced:e},{getOwnPropertySymbols:function(e){var t=Jn.f;return t?t(oe(e)):[]}}),pi("iterator"),_t.charAt),$a=bt.set,Za=bt.getterFor("String Iterator"),fa=(Ir(String,"String",function(e){$a(this,{type:"String Iterator",string:C(e),index:0})},function(){var e=Za(this),t=e.string,n=e.index;return n>=t.length?xr(undefined,!0):(t=Ja(t,n),e.index+=t.length,xr(t,!1))}),n&&!Symbol.sham&&"symbol"==S(Symbol.iterator)),r=(Object,TypeError,TypeError,Ze("toPrimitive"),TypeError,Object.defineProperty,st.f),Ka=(R({target:"Object",stat:!0,forced:Object.defineProperty!==r,sham:!d},{defineProperty:r}),g(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}),Ze("isConcatSpreadable")),e=51<=Tn||!g(function(){var e=[];return e[Ka]=!1,e.concat()[0]!==e}),n=!e||!rn("concat"),Ya=(R({target:"Array",proto:!0,arity:1,forced:n},{concat:function(e){for(var t,n,r,i,o,a=oe(this),s=ai(a,0),u=0,l=-1,c=arguments.length;l<c;l++)if(i=r=-1===l?a:arguments[l],o=void 0,!O(i)||((o=i[Ka])!==undefined?!o:!Z(i)))de(u+1),An(s,u++,r);else for(n=ce(r),de(u+n),t=0;t<n;t++,u++)t in r&&An(s,u,r[t]);return yn(s,u),s}}),Function),Xa=y([].concat),Qa=y([].join),es={},ts=ye?Ya.bind:function(t){var n=Ce(this),e=n.prototype,r=Pn(arguments,1),i=function(){var e=Xa(r,Pn(arguments));return this instanceof i?function(e,t,n){if(!T(es,t)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";es[t]=Ya("C,a","return new C("+Qa(r,",")+")")}return es[t](e,n)}(n,e.length,e):n.apply(t,e)};return O(e)&&(i.prototype=e),i},r=(R({target:"Function",proto:!0,forced:Function.bind!==ts},{bind:ts}),Function.prototype),e=r.call,n=(ye&&r.bind.bind(e,e),Date.prototype),ns=y(n.toString),rs=y(n.getTime),e=("Invalid Date"!==String(new Date(NaN))&&Ot(n,"toString",function(){var e=rs(this);return e==e?ns(this):"Invalid Date"}),Ue.PROPER),r=RegExp.prototype,is=r.toString,n=g(function(){return"/a/b"!==is.call({source:"a",flags:"b"})}),e=e&&"toString"!==is.name,os=((n||e)&&Ot(r,"toString",function(){var e=E(this);return"/"+C(e.source)+"/"+C(Jt(e))},{unsafe:!0}),x.RegExp),n=g(function(){var e=os("a","y");return e.lastIndex=2,null!==e.exec("abcd")}),e=n||g(function(){return!os("a","y").sticky}),r={BROKEN_CARET:n||g(function(){var e=os("^r","gy");return e.lastIndex=2,null!==e.exec("str")}),MISSED_STICKY:e,UNSUPPORTED_Y:n},as=bt.get,ss=RegExp.prototype,us=TypeError,ls=(d&&r.MISSED_STICKY&&St(ss,"sticky",{configurable:!0,get:function(){if(this!==ss){if("RegExp"===Q(this))return!!as(this).sticky;throw new us("Incompatible receiver, RegExp required")}}}),/#|\.prototype\./),e=function(e,t){e=fs[cs(e)];return e===hs||e!==ds&&(_(t)?g(t):!!t)},cs=e.normalize=function(e){return String(e).replace(ls,".").toLowerCase()},fs=e.data={},ds=e.NATIVE="N",hs=e.POLYFILL="P",ps=e,ms=Ze("match"),gs=function(e){var t;return O(e)&&((t=e[ms])!==undefined?!!t:"RegExp"===Q(e))},vs=st.f,ys=x.RegExp,ws=g(function(){var e=ys(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}),bs=x.RegExp,ks=g(function(){var e=bs("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),n=Fn.f,Ss=bt.enforce,_s=Ze("match"),Es=x.RegExp,Cs=Es.prototype,Rs=x.SyntaxError,Os=y(Cs.exec),xs=y("".charAt),Is=y("".replace),Ts=y("".indexOf),Ms=y("".slice),As=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Ps=/a/g,Ls=/a/g,e=new Es(Ps)!==Ps,Ds=r.MISSED_STICKY,Ns=r.UNSUPPORTED_Y,e=d&&(!e||Ds||ws||ks||g(function(){return Ls[_s]=!1,Es(Ps)!==Ps||Es(Ls)===Ls||"/a/i"!==String(Es(Ps,"i"))}));if(ps("RegExp",e)){for(var Fs=function(e,t){var n,r,i=ke(Cs,this),o=gs(e),a=t===undefined,s=[],u=e;if(!i&&o&&a&&e.constructor===Fs)return e;if((o||ke(Cs,e))&&(e=e.source,a)&&(t=Jt(u)),e=e===undefined?"":C(e),t=t===undefined?"":C(t),u=e,o=t=ws&&"dotAll"in Ps&&(n=!!t&&-1<Ts(t,"s"))?Is(t,/s/g,""):t,Ds&&"sticky"in Ps&&(r=!!t&&-1<Ts(t,"y"))&&Ns&&(t=Is(t,/y/g,"")),ks&&(e=(a=function(e){for(var t,n=e.length,r=0,i="",o=[],a=rr(null),s=!1,u=!1,l=0,c="";r<n;r++){if("\\"===(t=xs(e,r))){if(t+=xs(e,++r),!u&&"\\"===xs(t,1)){i+="\\x5c";continue}}else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:i+=t,Os(As,Ms(e,r+1))?(r+=2,u=!0,l++):"?"!==xs(e,r+1)&&l++;continue;case">"===t&&u:if(""===c||T(a,c))throw new Rs("Invalid capture group name");a[c]=!0,u=!(o[o.length]=[c,l]),c="";continue}u?c+=t:i+=t}for(var f=0;f<o.length;f++)for(var d="\\k<"+o[f][0]+">",h="\\"+o[f][1];-1<Ts(i,d);)i=Is(i,d,h);return[i,o]}(e))[0],s=a[1]),a=Jo(Es(e,t),i?this:Cs,Fs),(n||r||s.length)&&(t=Ss(a),n&&(t.dotAll=!0,t.raw=Fs(function(e){for(var t,n=e.length,r=0,i="",o=!1;r<n;r++)"\\"!==(t=xs(e,r))?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),i+=t):i+="[\\s\\S]":i+=t+xs(e,++r);return i}(e),o)),r&&(t.sticky=!0),s.length)&&(t.groups=s),e!==u)try{ut(a,"source",""===u?"(?:)":u)}catch(X){}return a},Us=n(Es),js=0;Us.length>js;)!function(e,t,n){n in e||vs(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}(Fs,Es,Us[js++]);(Cs.constructor=Fs).prototype=Cs,Ot(x,"RegExp",Fs,{constructor:!0})}ma("RegExp");lt("native-string-replace",String.prototype.replace);var zs=RegExp.prototype.exec,Bs=(y("".charAt),y("".indexOf),y("".replace),y("".slice),e=/b*/g,I(zs,n=/a/,"a"),I(zs,e,"a"),/()??/.exec("")[1],undefined,R({target:"RegExp",proto:!0,forced:/./.exec!==xt},{exec:xt}),TypeError),Ws=function(e){if(dn(e))return e;throw new Bs(_e(e)+" is not a constructor")},Hs=Ze("species"),qs=function(e,t){var e=E(e).constructor;return e===undefined||te(e=E(e)[Hs])?t:Ws(e)},Vs=r.UNSUPPORTED_Y,Gs=Math.min,Js=y([].push),$s=y("".slice),Zs=y("".indexOf),n=!g(function(){var e=/(?:)/,t=e.exec,e=(e.exec=function(){return t.apply(this,arguments)},"ab".split(e));return 2!==e.length||"a"!==e[0]||"b"!==e[1]}),Ks="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length,Ys=(yt("split",function(i,p,m){var g="0".split(undefined,0).length?function(e,t){return e===undefined&&0===t?[]:I(p,this,e,t)}:p;return[function(e,t){var n=re(this),r=O(e)?Nt(e,i):undefined;return r?I(r,e,n,t):I(g,C(n),e,t)},function(e,t){var n=E(this),r=C(e);if(!Ks){e=m(g,n,r,t,g!==p);if(e.done)return e.value}var e=qs(n,RegExp),i=C(Jt(n)),o=!!~Zs(i,"u")||!!~Zs(i,"v"),a=(Vs?~Zs(i,"g")||(i+="g"):~Zs(i,"y")||(i+="y"),new e(Vs?"^(?:"+n.source+")":n,i)),s=t===undefined?4294967295:t>>>0;if(0==s)return[];if(0===r.length)return null===Zt(a,r)?[r]:[];for(var u=0,l=0,c=[];l<r.length;){a.lastIndex=Vs?0:l;var f,d=Zt(a,Vs?$s(r,l):r);if(null===d||(f=Gs(le(a.lastIndex+(Vs?l:0)),r.length))===u)l=Dt(r,l,o);else{if(Js(c,$s(r,u,l)),c.length===s)return c;for(var h=1;h<=d.length-1;h++)if(Js(c,d[h]),c.length===s)return c;l=u=f}}return Js(c,$s(r,u)),c}]},Ks||!n,Vs),Object),Xs=(y("".split),g(function(){return!Ys("z").propertyIsEnumerable(0)}),Kn.f),e=!d||g(function(){Xs(1)}),r=(R({target:"Object",stat:!0,forced:e,sham:!d},{getOwnPropertyDescriptor:function(e,t){return Xs(ze(e),t)}}),Object.getOwnPropertyDescriptor,Kn.f,R({global:!0,forced:x.globalThis!==x},{globalThis:x}),function(e){return e&&e.Math===Math&&e}),n=(r("object"==("undefined"==typeof globalThis?"undefined":S(globalThis))&&globalThis)||r("object"==("undefined"==typeof window?"undefined":S(window))&&window)||r("object"==("undefined"==typeof self?"undefined":S(self))&&self)||r("object"==S(Oe)&&Oe)||r("object"==S(Oe)&&Oe)||function(){return this}()||Function("return this")(),x.Symbol),e=(lt("wks"),fa?n["for"]:n&&n.withoutSetter,{}),Qs=(e[Ze("toStringTag")]="z",String(e),Ot(Object.prototype,"toString",function(){return"[object "+Qe(this)+"]"},{unsafe:!0}),Ar("find",TypeError)),eu=(R({target:"Iterator",proto:!0,real:!0,forced:Qs},{find:function(n){E(this);try{Ce(n)}catch(X){$r(this,"throw",X)}var e,r;return Qs?I(Qs,this,n):(e=Qr(this),Xr(e,function(e,t){if(n(e,r++))return t(e)},{IS_RECORD:!(r=0),INTERRUPTED:!0}).result)}}),si.find),tu=!0,nu=("find"in[]&&Array(1).find(function(){tu=!1}),R({target:"Array",proto:!0,forced:tu},{find:function(e){return eu(this,e,1<arguments.length?arguments[1]:undefined)}}),nr("find"),Date),ru=y(nu.prototype.getTime),iu=(R({target:"Date",stat:!0},{now:function(){return ru(new nu)}}),function(e,t,n,r){try{return r?t(E(n)[0],n[1]):t(n)}catch(X){$r(e,"throw",X)}}),ou=Array,au=function(e){var t=dn(this),n=arguments.length,r=1<n?arguments[1]:undefined,i=r!==undefined;i&&(r=zr(r,2<n?arguments[2]:undefined));var o,a,s,u,l,c,f=oe(e),n=Vr(f),d=0;if(!n||this===ou&&Hr(n))for(o=ce(f),a=t?new this(o):ou(o);d<o;d++)c=i?r(f[d],d):f[d],An(a,d,c);else for(a=t?new this:[],l=(u=Jr(f,n)).next;!(s=I(l,u)).done;d++){c=i?iu(u,r,[s.value,d],!0):s.value;try{An(a,d,c)}catch(X){$r(u,"throw",X)}}return yn(a,d),a},su=void 0,Oe=!su(function(e){Array.from(e)}),r=(R({target:"Array",stat:!0,forced:Oe},{from:au}),Ze("iterator"));try{var uu=0,lu={next:function(){return{done:!!uu++}},"return":function(){0}};lu[r]=function(){return this},Array.from(lu,function(){throw 2})}catch(X){}var cu,fu,lt=function(e,t,n){var r,i,o,a,s,u=-1!==e.indexOf("Map"),l=-1!==e.indexOf("Weak"),c=u?"set":"add",f=x[e],d=f&&f.prototype,h=f,p={},m=function(e){var n=y(d[e]);Ot(d,e,"add"===e?function(e){return n(this,0===e?0:e),this}:"delete"===e?function(e){return!(l&&!O(e))&&n(this,0===e?0:e)}:"get"===e?function(e){return l&&!O(e)?undefined:n(this,0===e?0:e)}:"has"===e?function(e){return!(l&&!O(e))&&n(this,0===e?0:e)}:function(e,t){return n(this,0===e?0:e,t),this})};return ps(e,!_(f)||!(l||d.forEach&&!g(function(){(new f).entries().next()})))?(h=n.getConstructor(t,e,u,c),_a.enable()):ps(e,!0)&&(i=(r=new h)[c](l?{}:-0,1)!==r,o=g(function(){r.has(1)}),a=su(function(e){new f(e)}),s=!l&&g(function(){for(var e=new f,t=5;t--;)e[c](t,t);return!e.has(-0)}),a||(((h=t(function(e,t){er(e,d);e=Jo(new f,e,h);return te(t)||Xr(t,e[c],{that:e,AS_ENTRIES:u}),e})).prototype=d).constructor=h),(o||s)&&(m("delete"),m("has"),u)&&m("get"),(s||i)&&m(c),l)&&d.clear&&delete d.clear,R({global:!0,constructor:!0,forced:(p[e]=h)!==f},p),hr(h,e),l||n.setStrong(h,e,u),h},du=si.findIndex,hu=!0,pu=("findIndex"in[]&&Array(1).findIndex(function(){hu=!1}),R({target:"Array",proto:!0,forced:hu},{findIndex:function(e){return du(this,e,1<arguments.length?arguments[1]:undefined)}}),nr("findIndex"),_a.getWeakData),mu=bt.set,gu=bt.getterFor,vu=si.find,yu=si.findIndex,wu=y([].splice),bu=0,ku=function(e){return e.frozen||(e.frozen=new Su)},Su=function(){this.entries=[]},_u=function(e,t){return vu(e.entries,function(e){return e[0]===t})},fa=(Su.prototype={get:function(e){e=_u(this,e);if(e)return e[1]},has:function(e){return!!_u(this,e)},set:function(e,t){var n=_u(this,e);n?n[1]=t:this.entries.push([e,t])},"delete":function(t){var e=yu(this.entries,function(e){return e[0]===t});return~e&&wu(this.entries,e,1),!!~e}},{getConstructor:function(e,n,r,i){var e=e(function(e,t){er(e,o),mu(e,{type:n,id:bu++,frozen:null}),te(t)||Xr(t,e[i],{that:e,AS_ENTRIES:r})}),o=e.prototype,a=gu(n),s=function(e,t,n){var r=a(e),i=pu(E(t),!0);return!0===i?ku(r).set(t,n):i[r.id]=n,e};return Fo(o,{"delete":function(e){var t,n=a(this);return!!O(e)&&(!0===(t=pu(e))?ku(n)["delete"](e):t&&T(t,n.id)&&delete t[n.id])},has:function(e){var t,n=a(this);return!!O(e)&&(!0===(t=pu(e))?ku(n).has(e):t&&T(t,n.id))}}),Fo(o,r?{get:function(e){var t,n=a(this);if(O(e))return!0===(t=pu(e))?ku(n).get(e):t?t[n.id]:void 0},set:function(e,t){return s(this,e,t)}}:{add:function(e){return s(this,e,!0)}}),e}});function Eu(e){this.name="__st"+(1e9*Math.random()>>>0)+cu+"__",null!=e&&e.forEach(this.add,this),cu+=1}lt("WeakSet",function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}},fa),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{configurable:!0,writable:!0,value:function(e){if(null===this)throw new TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var r=arguments[1],i=0;i<n;){var o=t[i];if(e.call(r,o,i,t))return o;i+=1}return undefined}}),window.WeakSet||(cu=Date.now()%1e9,Eu.prototype.add=function(e){var t=this.name;return e[t]||Object.defineProperty(e,t,{value:!0,writable:!0}),this},Eu.prototype["delete"]=function(e){return!!e[this.name]&&(e[this.name]=undefined,!0)},Eu.prototype.has=function(e){return!!e[this.name]},fu=Eu,Object.defineProperty(window,"WeakSet",{value:function(e){return new fu(e)}}));var Cu=Object.assign,Ru=Object.defineProperty,Ou=y([].concat),n=!Cu||g(function(){var e,t,n;return!(!d||1===Cu({b:1},Cu(Ru({},"a",{enumerable:!0,get:function(){Ru(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)||(t={},(e={})[n=Symbol("assign detection")]=7,"abcdefghijklmnopqrst".split("").forEach(function(e){t[e]=e}),7!==Cu({},e)[n])||"abcdefghijklmnopqrst"!==ir(Cu({},t)).join("")})?function(e,t){for(var n=oe(e),r=arguments.length,i=1,o=Jn.f,a=ci.f;i<r;)for(var s,u=je(arguments[i++]),l=o?Ou(ir(u),o(u)):ir(u),c=l.length,f=0;f<c;)s=l[f++],d&&!I(a,u,s)||(n[s]=u[s]);return n}:Cu,xu=(R({target:"Object",stat:!0,arity:2,forced:Object.assign!==n},{assign:n}),Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(e===undefined||null===e)throw new TypeError("Cannot convert first argument to object");for(var t=Object(e),n=1;n<arguments.length;n++)if((r=arguments[n])!==undefined&&null!==r)for(var r=Object(r),i=Object.keys(Object(r)),o=0,a=i.length;o<a;o++){var s=i[o],u=Object.getOwnPropertyDescriptor(r,s);null!=u&&u.enumerable&&(t[s]=r[s])}return t}}),t.IteratorPrototype),e=Ze("toStringTag"),Iu=bt.set,Oe=function(u){var l=bt.getterFor(u?"WrapForValidIterator":"IteratorHelper");return Fo(rr(xu),{next:function(){var e=l(this);if(u)return e.nextHandler();if(e.done)return xr(undefined,!0);try{var t=e.nextHandler();return e.returnHandlerResult?t:xr(t,e.done)}catch(X){throw e.done=!0,X}},"return":function(){var e,t=l(this),n=t.iterator,r=t.done;if(t.done=!0,u)return(e=Nt(n,"return"))?I(e,n):xr(undefined,!0);if(!r){if(t.inner)try{$r(t.inner.iterator,"normal")}catch(X){return $r(n,"throw",X)}if(t.openIters)try{for(var i=t.openIters,o="normal",a=void 0,s=i.length-1;0<=s;s--)if(i[s]!==undefined)try{a=$r(i[s].iterator,o,a)}catch(X){o="throw",a=X}if("throw"===o)throw a}catch(X){if(n)return $r(n,"throw",X);throw X}n&&$r(n,"normal")}return xr(undefined,!0)}})},Tu=Oe(!0),Mu=Oe(!1),r=(ut(Mu,e,"Iterator Helper"),function(n,r,i){var e=function(e,t){t?(t.iterator=e.iterator,t.next=e.next):t=e,t.type=r?"WrapForValidIterator":"IteratorHelper",t.returnHandlerResult=!!i,t.nextHandler=n,t.counter=0,t.done=!1,Iu(this,t)};return e.prototype=r?Tu:Mu,e}),lu=function(e,t){e="function"==typeof Iterator&&Iterator.prototype[e];if(e)try{e.call({next:null},t).next()}catch(X){return!0}},t=!lu("filter",function(){}),Au=!t&&Ar("filter",TypeError),Oe=t||Au,Pu=r(function(){for(var e,t=this.iterator,n=this.predicate,r=this.next;;){if(e=E(I(r,t)),this.done=!!e.done)return;if(iu(t,n,[e=e.value,this.counter++],!0))return e}}),Lu=(R({target:"Iterator",proto:!0,real:!0,forced:Oe},{filter:function(e){E(this);try{Ce(e)}catch(X){$r(this,"throw",X)}return Au?I(Au,this,e):new Pu(Qr(this),{predicate:e})}}),si.filter),e=rn("filter"),t=(R({target:"Array",proto:!0,forced:!e},{filter:function(e){return Lu(this,e,1<arguments.length?arguments[1]:undefined)}}),!lu("map",function(){})),Du=!t&&Ar("map",TypeError),Oe=t||Du,Nu=r(function(){var e=this.iterator,t=E(I(this.next,e));if(!(this.done=!!t.done))return iu(e,this.mapper,[t.value,this.counter++],!0)}),Fu=(R({target:"Iterator",proto:!0,real:!0,forced:Oe},{map:function(e){E(this);try{Ce(e)}catch(X){$r(this,"throw",X)}return Du?I(Du,this,e):new Nu(Qr(this),{mapper:e})}}),si.map),e=rn("map"),Uu=(R({target:"Array",proto:!0,forced:!e},{map:function(e){return Fu(this,e,1<arguments.length?arguments[1]:undefined)}}),_a.fastKey),ju=bt.set,zu=bt.getterFor,t={getConstructor:function(e,n,r,i){var e=e(function(e,t){er(e,o),ju(e,{type:n,index:rr(null),first:null,last:null,size:0}),d||(e.size=0),te(t)||Xr(t,e[i],{that:e,AS_ENTRIES:r})}),o=e.prototype,a=zu(n),s=function(e,t,n){var r,i=a(e),o=u(e,t);return o?o.value=n:(i.last=o={index:r=Uu(t,!0),key:t,value:n,previous:t=i.last,next:null,removed:!1},i.first||(i.first=o),t&&(t.next=o),d?i.size++:e.size++,"F"!==r&&(i.index[r]=o)),e},u=function(e,t){var n,e=a(e),r=Uu(t);if("F"!==r)return e.index[r];for(n=e.first;n;n=n.next)if(n.key===t)return n};return Fo(o,{clear:function(){for(var e=a(this),t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=null),t=t.next;e.first=e.last=null,e.index=rr(null),d?e.size=0:this.size=0},"delete":function(e){var t,n,r=a(this),e=u(this,e);return e&&(t=e.next,n=e.previous,delete r.index[e.index],e.removed=!0,n&&(n.next=t),t&&(t.previous=n),r.first===e&&(r.first=t),r.last===e&&(r.last=n),d?r.size--:this.size--),!!e},forEach:function(e){for(var t,n=a(this),r=zr(e,1<arguments.length?arguments[1]:undefined);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!u(this,e)}}),Fo(o,r?{get:function(e){e=u(this,e);return e&&e.value},set:function(e,t){return s(this,0===e?0:e,t)}}:{add:function(e){return s(this,e=0===e?0:e,e)}}),d&&St(o,"size",{configurable:!0,get:function(){return a(this).size}}),e},setStrong:function(e,t,n){var r=t+" Iterator",i=zu(t),o=zu(r);Ir(e,t,function(e,t){ju(this,{type:r,target:e,state:i(e),kind:t,last:null})},function(){for(var e=o(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?xr("keys"===t?n.key:"values"===t?n.value:[n.key,n.value],!1):(e.target=null,xr(undefined,!0))},n?"entries":"values",!n,!0),ma(t)}},Bu=(lt("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}},t),function(e,t){return(Bu=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)}),h=function(){return(h=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function Wu(e,a,s,u){return new(s=s||Promise)(function(n,t){function r(e){try{o(u.next(e))}catch(a){t(a)}}function i(e){try{o(u["throw"](e))}catch(a){t(a)}}function o(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,i)}o((u=u.apply(e,a||[])).next())})}function Hu(r,i){var o,a,s,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},e={next:t(0),"throw":t(1),"return":t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(n){return function(e){var t=[n,e];if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,a&&(s=2&t[0]?a["return"]:t[0]?a["throw"]||((s=a["return"])&&s.call(a),0):a.next)&&!(s=s.call(a,t[1])).done)return s;switch(a=0,(t=s?[2&t[0],s.value]:t)[0]){case 0:case 1:s=t;break;case 4:return u.label++,{value:t[1],done:!1};case 5:u.label++,a=t[1],t=[0];continue;case 7:t=u.ops.pop(),u.trys.pop();continue;default:if(!((s=0<(s=u.trys).length&&s[s.length-1])||6!==t[0]&&2!==t[0])){u=0;continue}if(3===t[0]&&(!s||t[1]>s[0]&&t[1]<s[3]))u.label=t[1];else if(6===t[0]&&u.label<s[1])u.label=s[1],s=t;else{if(!(s&&u.label<s[2])){s[2]&&u.ops.pop(),u.trys.pop();continue}u.label=s[2],u.ops.push(t)}}t=i.call(r,u)}catch(e){t=[6,e],a=0}finally{o=s=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}}function qu(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}var Vu=/_?t(\d)?(imestamp)?=\d+&?/g,Gu=function(e,t){void 0===t&&(t="https://dem.rumt-zh.com");t=(e.url||"").replace(/\/+$/,"")||("string"==typeof t?t:"https://dem.rumt-zh.com");return e.url=t,e.hostUrl=t,e.offlineUrl=t+"/offline",e.whiteListUrl=t+"/collect/whitelist",e.pvUrl=t+"/collect/pv",e.eventUrl=t+"/collect/events",e.speedUrl=t+"/speed",e.customTimeUrl=t+"/speed/custom",e.performanceUrl=t+"/speed/performance",e.performanceUrlForHippy=t+"/speed/hippyPerformance",e.webVitalsUrl=t+"/speed/webvitals",e.setDataReportUrl=t+"/speed/miniProgramData",e},Ju=["aegis.qq.com","tamaegis.com","/aegis-sdk","rumt-","/flog.core.min.js","pingfore.qq.com","pingfore.tencent.com","zhiyan.tencent-cloud.net","h.trace.qq.com","btrace.qq.com","beacon.qq.com","dmplog.qq.com","qq.com/report","svibeacon.onezapp.com","cube.weixinbridge.com","doubleclick.net","pcmgrmonitor.3g.qq.com","tdm.qq.com","report.qqweb.qq.com","tpstelemetry.tencent.com","galileotelemetry.tencent.com","insight.cloud.tencent.com","facebook.com","facebook.net","google","yahoo.com","twitter.com","ga-audiences","report.idqqimg.com","arms-retcode.aliyuncs.com","px.effirst.com","sentry","baidu.com","hot-update.json","u.c.b.r.o.w.s.e.r","report.url.cn","sockjs-node","m3u8","flv"],$u=["ResizeObserver loop limit exceeded","ResizeObserver loop completed","Failed to execute 'transaction'","window.indexedDB.deleteDatabase is not a function"],Zu=["ext1","ext2","ext3","ext4","ext5","ext6","ext7","ext8","ext9","ext10","level","trace","tag","seq","code"],Ku=["static","fetch"],Yu="unknown",Xu=function(e,t,n,r,i,o,a,s){for(var u,l,c=i,f=0,d=!!a&&zr(a,s);f<r;)f in n&&(u=d?d(n[f],f,t):n[f],0<o&&Z(u)?(l=ce(u),c=Xu(e,t,u,l,c,o-1)-1):(de(c+1),An(e,c,u)),c++),f++;return c},Qu=Xu,el=(R({target:"Array",proto:!0},{flatMap:function(e){var t,n=oe(this),r=ce(n);return Ce(e),t=ai(n,0),Qu(t,n,n,r,0,1,e,1<arguments.length?arguments[1]:undefined),t}}),TypeError),tl=function(e){if(gs(e))throw new el("The method doesn't accept regular expressions");return e},nl=Ze("match"),Oe=function(e){var t=/./;try{"/./"[e](t)}catch(A){try{return t[nl]=!1,"/./"[e](t)}catch(v){}}return!1},rl=y("".indexOf),il=(R({target:"String",proto:!0,forced:!Oe("includes")},{includes:function(e){return!!~rl(C(re(this)),C(tl(e)),1<arguments.length?arguments[1]:undefined)}}),Bn.includes),rn=g(function(){return!Array(1).includes()}),e=g(function(){return[,1].includes(undefined,1)}),ol=(R({target:"Array",proto:!0,forced:rn||e},{includes:function(e){return il(this,e,1<arguments.length?arguments[1]:undefined)}}),nr("includes"),Ar("some",TypeError)),al=(R({target:"Iterator",proto:!0,real:!0,forced:ol},{some:function(n){E(this);try{Ce(n)}catch(X){$r(this,"throw",X)}var e,r;return ol?I(ol,this,n):(e=Qr(this),Xr(e,function(e,t){if(n(e,r++))return t()},{IS_RECORD:!(r=0),INTERRUPTED:!0}).stopped)}}),si.some),rn=Te("some"),e=(R({target:"Array",proto:!0,forced:!rn},{some:function(e){return al(this,e,1<arguments.length?arguments[1]:undefined)}}),nr("flatMap"),lt("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}},t),!lu("flatMap",function(){})),sl=!e&&Ar("flatMap",TypeError),rn=e||sl||function(){try{var e=Iterator.prototype.flatMap.call(new Map([[4,5]]).entries(),function(e){return e});e.next(),e["return"]()}catch(X){return!0}}(),ul=r(function(){for(var e,t,n=this.iterator,r=this.mapper;;){if(t=this.inner)try{if(!(e=E(I(t.next,t.iterator))).done)return e.value;this.inner=null}catch(X){$r(n,"throw",X)}if(e=E(I(this.next,n)),this.done=!!e.done)return;try{this.inner=function(e,t){t&&"string"==typeof e||E(e);t=Vr(e);return Qr(E(t!==undefined?I(t,e):e))}(r(e.value,this.counter++),!1)}catch(X){$r(n,"throw",X)}}});R({target:"Iterator",proto:!0,real:!0,forced:rn},{flatMap:function(e){E(this);try{Ce(e)}catch(X){$r(this,"throw",X)}return sl?I(sl,this,e):new ul(Qr(this),{mapper:e,inner:null})}});pl.prototype.indexOf=function(e,t){for(var n=0;n<e.length;n++)if(e[n].callback===t)return n;return-1},pl.prototype.on=function(e,t,n){var r;if(void 0===n&&(n=0),this)return(r=this.eventsList[e])||(this.eventsList[e]=[],r=this.eventsList[e]),-1===this.indexOf(r,t)&&r.push({name:e,type:n||0,callback:t}),this},pl.prototype.one=function(e,t){this.on(e,t,1)},pl.prototype.remove=function(e,t){if(this){var n=this.eventsList[e];if(n){if(t)return n.length&&(t=this.indexOf(n,t),n.splice(t,1)),this;try{delete this.eventsList[e]}catch(b){}}return null}},pl.prototype.clear=function(){this.eventsList={}};var ll,cl=pl,fl=function(e){try{return localStorage.getItem(e)}catch(Uy){return null}},dl=function(e,t){try{localStorage.setItem(e,t)}catch(Uy){}},hl=function(e,t){try{return e?JSON.parse(e):t}catch(Uy){return t}};function pl(){var a=this;this.emit=function(e,t){if(a){var n;if(null!=(r=a.eventsList[e])&&r.length)for(var r=r.slice(),i=0;i<r.length;i++){n=r[i];try{var o=n.callback.apply(a,[t]);if(1===n.type&&a.remove(e,n.callback),!1===o)break}catch(k){throw k}}return a}},this.eventsList={}}(t=ll=ll||{})[t.number=-1]="number",t.string="";var ml,gl=function(e,t){return"number"==typeof e||"string"==typeof e?e:t?ll.string:ll.number},vl=function(e,t){return"string"==typeof e?e.split("?")[t?1:0]||"":e},yl=function(e,t){return void 0===t&&(t=2048),String(e).replace(Vu,"").slice(0,t)},wl=function(e){return"string"==typeof e&&/^\//.test(e)?"https:"===(null==location?void 0:location.protocol):/^https/.test(e)},bl=["application/xhtml+xml","application/xml","application/pdf","application/pkcs12","application/javascript","application/x-javascript","application/ecmascript","application/vnd.mspowerpoint","application/vnd.apple.mpegurl","application/ogg","text/css","text/javascript","image","audio","video","video/mp2t"],kl=/\.(json|js|css|jpg|jpeg|png|svg|apng|webp|gif|bmp|mp4|mp3|ts|mpeg|wav|webm|ogg|flv|m3u8|ttf|woff2|otf|eot|woff|html|htm|shtml|shtm|)$/i,Sl=["ret","retcode","code","errcode"],_l=function(e,t,n){var r,i,o;try{if("function"==typeof(null==t?void 0:t.retCodeHandler))return{code:void 0===(o=(i=t.retCodeHandler(e,null==n?void 0:n.url,null==n?void 0:n.ctx,null==n?void 0:n.payload)||{}).code)?Yu:o,isErr:i.isErr};if(!(e="string"==typeof e?JSON.parse(e):e))return{code:Yu,isErr:!1};"function"==typeof(null==(r=null==t?void 0:t.ret)?void 0:r.join)&&(Sl=[].concat(t.ret.map(function(e){return e.toLowerCase()})));var a=Object.getOwnPropertyNames(e).filter(function(e){return-1!==Sl.indexOf(e.toLowerCase())});return a.length?{code:""+(o="未知"!==(o=e[a[0]])&&""!==o?o:Yu),isErr:0!==o&&"0"!==o&&o!==Yu}:{code:Yu,isErr:!1}}catch(Me){return{code:Yu,isErr:!1}}},El=function(e,t,n){try{var r="function"==typeof t?t(e,null==n?void 0:n.url,null==n?void 0:n.ctx)||"":e;return xl(r).slice(0,10240)}catch(b){return""}},Cl=function(){var n=new WeakSet;return function(e,t){if(t instanceof Error)return"Error.message: "+t.message+" \n Error.stack: "+t.stack;if("object"===S(t)&&null!==t){if(n.has(t))return"[Circular "+(e||"root")+"]";n.add(t)}return t}},Rl=function(e){if("string"==typeof e)return e;try{return e instanceof Error?(JSON.stringify(e,Cl(),2)||"undefined").replace(/"/gim,""):JSON.stringify(e,Cl(),2)||"undefined"}catch(w){return"error happen when tdem stringify: \n "+w.message+" \n "+w.stack}},Ol=function(e){if("string"==typeof e)return e;try{return JSON.stringify(e,Cl())||"undefined"}catch(w){return"error happen when tdem stringify: \n "+w.message+" \n "+w.stack}},xl=function(n,r){void 0===r&&(r=3);var i,o,a,s="";return Array.isArray(n)?(s+="[",i=n.length,n.forEach(function(e,t){"object"===S(e)&&1<r?s+=xl(e,r-1):s+=Tl(e),s+=t===i-1?"":","}),s+="]"):n instanceof Object||"object"===S(n)?(s="{",o=Object.keys(n),a=o.length,o.forEach(function(e,t){"object"===S(n[e])&&1<r?s+='"'+e+'":'+xl(n[e],r-1):s+=Il(e,n[e]),s+=t===a-1||t<a-1&&"undefined"==typeof n[o[t+1]]?"":","}),s+="}"):s+=n,s},Il=function(e,t){var n=S(t),r="";return"string"===n||"object"===n?r+='"'+e+'":"'+t+'"':"function"==typeof t?r+='"'+e+'":"function '+t.name+'"':"symbol"===S(t)?r+='"'+e+'":"symbol"':"number"!=typeof t&&"boolean"!==n||(r+='"'+e+'": '+t),r},Tl=function(e){var t=S(e);return""+("undefined"===t||"symbol"===t||"function"===t?"null":"string"===t||"object"===t?'"'+e+'"':e)},Ml=function(t){var n;return t.payload?(n={},Object.keys(t).forEach(function(e){"payload"!==e&&(n[e]=t[e])}),n):t},Al=function(e,t){var n,r={fetch:[],"static":[],bridge:[]},i=new FormData;return Array.isArray(e)?e.forEach(function(e){var t=Ml(e);r[e.type].push(t)}):(n=Ml(e),r[e.type].push(n)),i.append("payload",Ol(h({duration:r},t))),i},Pl=/data:(image|text|application|font)\/.*;base64/,Ll=function(t,e){return"string"!=typeof t||!t||e&&-1<t.indexOf(e)||Pl.test(t)||Ju.some(function(e){return-1<t.indexOf(e)})};(lu=ml=ml||{}).LOG="log",lu.SPEED="speed",lu.PERFORMANCE="performance",lu.OFFLINE="offline",lu.WHITE_LIST="whiteList",lu.VITALS="vitals",lu.PV="pv",lu.CUSTOM_PV="customPV",lu.EVENT="event",lu.CUSTOM="custom",lu.SDK_ERROR="sdkError",lu.SET_DATA="setData",lu.LOAD_PACKAGE="loadPackage",lu.MEMORY="memory";var Dl,p,Nl,Fl={maxAttempts:3,delays:[0,1e3,3e3]};function Ul(){return"evt_"+Date.now()+"_"+Math.random().toString(36).substring(2,8)}function jl(e){var t=[];if(e.stack)for(var n=0,r=0,i=e.stack.split("\n");r<i.length;r++){var o,a,s,u,l,c=i[r],f=c.match(/at\s+(.+?)\s+\((.+?):(\d+):(\d+)\)/);f?(o=f[1],a=f[2],s=f[3],u=f[4],l=a.split("/").pop()||a,t.push({abs_path:a,colno:parseInt(u,10),filename:l,"function":o||"(anonymous)",lineno:parseInt(s,10),in_app:a.includes("node_modules")||a.includes("cdn")?0:1,stack_level:n++})):(f=c.match(/at\s+(.+?):(\d+):(\d+)/))&&(a=f[1],s=f[2],u=f[3],l=a.split("/").pop()||a,t.push({abs_path:a,colno:parseInt(u,10),filename:l,"function":"(anonymous)",lineno:parseInt(s,10),in_app:a.includes("node_modules")||a.includes("cdn")?0:1,stack_level:n++}))}return t}(e=Dl=Dl||{}).production="production",e.development="development",e.gray="gray",e.pre="pre",e.daily="daily",e.local="local",e.test="test",e.others="others",(r=p=p||{}).JS_ERROR="js_error",r.PROMISE_ERROR="promise_error",r.RESOURCE_ERROR="resource_error",r.API_ERROR="api_error",r.PAGE_LOAD="page_load",r.RESOURCE_LOAD="resource_load",r.API_CALL="api_call",r["true"]="web_vitals",r.CLICK="click",r.PAGE_VIEW="page_view",r.TAB_HIDDEN="tab_hidden",r.TAB_VISIBLE="tab_visible",r.WINDOW_BLUR="window_blur",r.WINDOW_FOCUS="window_focus",r.FORM_FOCUS="form_focus",r.FORM_BLUR="form_blur",r.FORM_CHANGE="form_change",r.FORM_SUBMIT="form_submit",r.FORM_SUBMIT_RESULT="form_submit_result",r.STRUGGLE="struggle",r.CUSTOM="custom",r.LOG="log",(rn=Nl=Nl||{}).ERROR="error",rn.PERFORMANCE="performance",rn.BEHAVIOR="behavior",rn.NETWORK="network",rn.LOG="log",rn.CUSTOM="custom";var zl=TypeError,Bl="Reduce of empty array with no initial value",t=function(l){return function(e,t,n,r){var i=oe(e),o=je(i),a=ce(i);if(Ce(t),0===a&&n<2)throw new zl(Bl);var s=l?a-1:0,u=l?-1:1;if(n<2)for(;;){if(s in o){r=o[s],s+=u;break}if(s+=u,l?s<0:a<=s)throw new zl(Bl)}for(;l?0<=s:s<a;s+=u)s in o&&(r=t(r,o[s],s,i));return r}},e={left:t(!1),right:t(!0)},r=function(e){return xn.slice(0,e.length)===e},Wl=r("Bun/")?"BUN":r("Cloudflare-Workers")?"CLOUDFLARE":r("Deno/")?"DENO":r("Node.js/")?"NODE":x.Bun&&"string"==typeof Bun.version?"BUN":x.Deno&&"object"==S(Deno.version)?"DENO":"process"===Q(x.process)?"NODE":x.window&&x.document?"BROWSER":"REST",Hl="NODE"==Wl,ql=e.left,rn=!Hl&&79<Tn&&Tn<83||!Te("reduce"),Vl=(R({target:"Array",proto:!0,forced:rn},{reduce:function(e){var t=arguments.length;return ql(this,e,t,1<t?arguments[1]:undefined)}}),TypeError),t=g(function(){[].keys().reduce(function(){},undefined)}),Gl=!t&&Ar("reduce",Vl),Jl=(R({target:"Iterator",proto:!0,real:!0,forced:t||Gl},{reduce:function(t){E(this);try{Ce(t)}catch(X){$r(this,"throw",X)}var n=arguments.length<2,r=n?undefined:arguments[1];if(Gl)return Re(Gl,this,n?[t]:[t,r]);var e=Qr(this),i=0;if(Xr(e,function(e){r=n?(n=!1,e):t(r,e,i),i++},{IS_RECORD:!0}),n)throw new Vl("Reduce of empty iterator with no initial value");return r}}),TypeError),$l=function(e,t){if(e<t)throw new Jl("Not enough arguments");return e},Zl=x.Function,Kl=/MSIE .\./.test(xn)||"BUN"==Wl&&((r=x.Bun.version.split(".")).length<3||"0"===r[0]&&(r[1]<3||"3"===r[1]&&"0"===r[2])),rn=function(o,a){var s=a?2:1;return Kl?function(e,t){var n=$l(arguments.length,1)>s,r=_(e)?e:Zl(e),i=n?Pn(arguments,s):[],e=n?function(){Re(r,this,i)}:r;return a?o(e,t):o(e)}:o},t=rn(x.setInterval,!0),r=(R({global:!0,bind:!0,forced:x.setInterval!==t},{setInterval:t}),rn(x.setTimeout,!0)),Yl=(R({global:!0,bind:!0,forced:x.setTimeout!==r},{setTimeout:r}),function(e){return e.filter(function(n,r){return"static"!==n.type||!e.find(function(e,t){return n.url===e.url&&200===n.status&&r<t})})}),Xl=(R({target:"String",proto:!0},{repeat:mt}),{}),Ql={},ec=function(e){return Xl[e]||(Xl[e]=setTimeout(function(){Ql[e]={},Xl[e]=null},6e4)),Xl[e]},tc=function(c,f){return function(i,o){var a,s,u,l,e,t,n;null!=i&&i.log&&null!=i&&i.type?(s=function(e,t){var n,r,t=h(h({},c.bean),{from:t}),i=h({},c.bean);return function(){try{return"undefined"!=typeof FormData&&"function"==typeof FormData.prototype.append}catch(a){}}()?Al(e,t):(t=e,e=i,r={fetch:[],"static":[],bridge:[]},i={},Array.isArray(t)?t.forEach(function(e){var t;null!=(t=r[e.type])&&t.push(e)}):null!=(n=r[t.type])&&n.push(t),i.payload=JSON.stringify(h({duration:r},e)),i)},u=function(e,t,n,r){switch(t){case ml.LOG:o=e;var i=(Array.isArray(o)?o:[o]).map(function(n){return Object.getOwnPropertyNames(n).reduce(function(e,t){return"ctx"!==t&&(e[t]=n[t]),e},{level:"2",msg:""})});if(!i||0===i.length)return"{}";i=Array.isArray(i)?i:[i];var o=Array.from(new Set(i.flatMap(function(e){return Object.keys(e)}))),a={};return o.forEach(function(t){a[t]=i.map(function(e){return e[t]||""})}),a.count=i.length,Ol(a);case ml.SPEED:return s(e,n);case ml.EVENT:return r;default:return r||{}}var o},1!==(e=Array.isArray(i.log)?i.log:[i.log]).length?(l={},e.forEach(function(e){var t=e.from||"undefined";delete e.from,l[t]||(l[t]=[]),l[t].push(e)}),Object.keys(l).forEach(function(e){var t,n=l[e],r=null!=(r=i.url)&&r.includes("?")?"&":"?";"undefined"===e?(t=""+i.url,o(h(h({},i),{url:t,log:1===n.length?n[0]:n,data:u(n,f,e,i.data)}))):(t=i.url+r+"from="+e,o(h(h({},i),{url:t,log:1===n.length?n[0]:n,beanFilter:qu(i.beanFilter||[],["from"]),data:u(n,f,e,i.data)})))})):(t=(e=e[0]).from,delete e.from,n=null!=(a=i.url)&&a.includes("?")?"&":"?",t?(n=i.url+n+"from="+t,o(h(h({},i),{url:n,log:e,beanFilter:qu(i.beanFilter||[],["from"]),data:u(e,f,t,i.data)}))):(n=""+i.url,o(h(h({},i),{url:n,log:e,data:u(e,f,t,i.data)}))))):o(i)}},nc=function(u,l){return function(e,t){var n,r,i,o=Array.isArray(e),a=o?e:[e],s=(u.lifeCycle.emit("beforeRequest",e),u.config.beforeRequest);(a="function"==typeof s?a.map(function(e){try{var t=s({logs:e,logType:l});return(null==t?void 0:t.logType)===l&&null!=t&&t.logs?t.logs:!1!==t&&e}catch(X){return e}}).filter(function(e){return!1!==e}):a).length&&(n=a,e=Zu,!Array.isArray(n)||n.length<=1||(r=[],i=[],!(i="string"==typeof e?[e]:e))||i.length<=0||(i.forEach(function(t){n.forEach(function(e){null!=e&&e[t]&&r.push(t)})}),0<r.length&&(n=n.map(function(e){var t={};return r.forEach(function(e){t[e]=""}),h(h({},t),e)}))),a=n,t(o?a:a[0]))}},rc=function(i){return function(e,t){i.lifeCycle.emit("modifyRequest",e);var n=i.config.modifyRequest;if("function"==typeof n)try{var r=n(e);"object"===S(r)&&"url"in r&&(e=r)}catch(X){console.error(X)}t(e)}},ic=function(r){return function(e,t){null!=(n=r.lifeCycle)&&n.emit("afterRequest",e);var n=(r.config||{}).afterRequest;"function"==typeof n&&!1===n(e)||t(e)}},oc=y(1.1.valueOf),t=Fn.f,ac=Kn.f,sc=st.f,uc=Wn.trim,lc=x.Number,cc=(di.Number,lc.prototype),fc=x.TypeError,dc=y("".slice),hc=y("".charCodeAt),pc=function(e){var t,n,r,i,o,a,s,u=To(e,"number");if(Bi(u))throw new fc("Cannot convert a Symbol value to a number");if("string"==typeof u&&2<u.length)if(u=uc(u),43===(e=hc(u,0))||45===e){if(88===(t=hc(u,2))||120===t)return NaN}else if(48===e){switch(hc(u,1)){case 66:case 98:n=2,r=49;break;case 79:case 111:n=8,r=55;break;default:return+u}for(o=(i=dc(u,2)).length,a=0;a<o;a++)if((s=hc(i,a))<48||r<s)return NaN;return parseInt(i,n)}return+u},rn=ps("Number",!lc(" 0o1")||!lc("0b1")||lc("+0x1")),mc=function(e){var t,e=arguments.length<1?0:lc(function(e){e=To(e,"number");return"bigint"==typeof e?e:pc(e)}(e));return ke(cc,t=this)&&g(function(){oc(t)})?Jo(Object(e),this,mc):e};if(mc.prototype=cc,rn&&(cc.constructor=mc),R({global:!0,constructor:!0,wrap:!0,forced:rn},{Number:mc}),rn)for(var gc=di.Number,vc=lc,yc,wc=d?t(vc):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),bc=0;wc.length>bc;bc++)T(vc,yc=wc[bc])&&!T(gc,yc)&&sc(gc,yc,ac(vc,yc));var kc={generateTraceId:_c(16),generateSpanId:_c(8)},Sc=Array(32);function _c(t){return function(){for(var e=0;e<2*t;e++)Sc[e]=Math.floor(16*Math.random())+48,58<=Sc[e]&&(Sc[e]+=39);return String.fromCharCode.apply(null,Sc.slice(0,2*t))}}function Ec(){return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,function(e){return(e^(16*Math.random()&15)>>e/4).toString(16)})}var Cc=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})},Rc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Oc=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,xc=function(e){for(var t,n,r,i="",o=0,a=(e=String(e)).length%3;o<e.length;){if(255<(t=e.charCodeAt(o++))||255<(n=e.charCodeAt(o++))||255<(r=e.charCodeAt(o++)))throw new TypeError("Failed to execute 'btoa': The string to be encoded contains characters outside of the Latin1 range.");i+=Rc.charAt((t=t<<16|n<<8|r)>>18&63)+Rc.charAt(t>>12&63)+Rc.charAt(t>>6&63)+Rc.charAt(63&t)}return a?i.slice(0,a-3)+"===".substring(a):i},Ic=function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!Oc.test(e))throw new TypeError("Failed to execute 'atob': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,r,i="",o=0;o<e.length;)t=Rc.indexOf(e.charAt(o++))<<18|Rc.indexOf(e.charAt(o++))<<12|(n=Rc.indexOf(e.charAt(o++)))<<6|(r=Rc.indexOf(e.charAt(o++))),i+=64===n?String.fromCharCode(t>>16&255):64===r?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return i},Tc=(Pc.prototype.generate=function(e,t,n){if(void 0===t&&(t={}),this.url=e,!this.isUrlIgnored()&&this.isUrlInTraceUrls()&&this.traceType){switch(this.traceType){case"traceparent":this.traceId=this.createTraceparent();break;case"b3":this.traceId=this.createB3();break;case"sw8":this.traceId=this.createSw8(n);break;case"sentry-trace":this.traceId=this.createSentryTrace();break;default:return console.warn("this trace key "+this.traceType+" is not supported"),void(this.traceId="")}return t[this.traceType]&&(this.traceId=t[this.traceType]),{name:this.traceType,value:this.traceId}}},Pc.prototype.createTraceparent=function(){var e=kc.generateSpanId();return"00-"+kc.generateTraceId()+"-"+e+"-0"+this.traceFlag.toString(16)},Pc.prototype.createB3=function(){var e=kc.generateSpanId();return kc.generateTraceId()+"-"+e+"-"+this.traceFlag},Pc.prototype.createSw8=function(e){var t="function"==typeof btoa?btoa:xc,e=e||{},n=e.host,n=void 0===n?"":n,e=e.pathname,e=void 0===e?"":e,r=Cc(),i=Cc();return"1-"+String(t(i))+"-"+String(t(r))+"-1-"+String(t("tdem"))+"-"+String(t("1.0.9"))+"-"+String(t(encodeURI(e)))+"-"+String(t(n))},Pc.prototype.createSentryTrace=function(){var e=Ec().substring(16);return Ec()+"-"+e+"-"+this.traceFlag},Pc.prototype.isUrlIgnored=function(){if(Array.isArray(this.ignoreUrls)&&0!==this.ignoreUrls.length)for(var e=0,t=this.ignoreUrls;e<t.length;e++){var n=t[e];if(this.urlMatches(this.url,n))return!0}return!1},Pc.prototype.isUrlInTraceUrls=function(){if(!this.urls)return!0;if(Array.isArray(this.urls)){if(0===this.urls.length)return!1;for(var e=0,t=this.urls;e<t.length;e++){var n=t[e];if(this.urlMatches(this.url,n))return!0}}return!1},Pc.prototype.urlMatches=function(e,t){return"string"==typeof t?e===t:!!e.match(t)},Pc),Mc={sw8:function(e){var t="function"==typeof atob?atob:Ic,e=e.split("-")[1];return e?t(e):""},traceparent:function(e){return e.split("-")[1]},b3:function(e){return e.split("-")[0]},"sentry-trace":function(e){return e.split("-")[0]}},Ac=function(e){var t,n="";return n="object"===S(e)&&(t=(e=function(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=e[r]||"function"==typeof e.get&&e.get(r);if(i)return[r,i]}return["",""]}(e,Object.keys(Mc)))[0])?Mc[t](e[1]):n};function Pc(e,t,n,r){void 0===n&&(n=null),this.traceType=e,this.ignoreUrls=t,this.urls=n,this.traceFlag=r===undefined||null===r?1:Number(!!r)}function Lc(u){return function(e){e&&0!==e.length&&u.sendPipeline([function(t,e){var n,r,i,o,a={protocol_version:2,project_key:String(u.config.id||""),sdk:{name:u.sdkName,version:u.sdkVersion},app:{version:String(u.config.version||"1.0.0")},context:(n=u,r=String((null==(a=null==(r=null==(a=n.sessionManager)?void 0:a.getSession)?void 0:r.call(a))?void 0:a.id)||n.bean.sessionId||""),a=String(n.config.userId||n.config.uin||""),r={session_id:r,platform:(r=String(n.runtimePlatform||n.config.platform||"web").trim().toLowerCase(),["web","miniprogram","android","ios","electron","unknown"].includes(r)?r:["wx","my","qq","tt"].includes(r)?"miniprogram":"undefined"!=typeof window?"web":"unknown")},a&&(r.user_id=a),a=n.bean.runtime?String(n.bean.runtime):"",s=n.bean.processType?String(n.bean.processType):"",i=n.bean.windowId!==undefined?String(n.bean.windowId):"",o=n.bean.webContentsId!==undefined?String(n.bean.webContentsId):"",n=n.bean.appVersion?String(n.bean.appVersion):"",a&&(r.runtime=a),s&&(r.process_type=s),i&&(r.window_id=i),o&&(r.web_contents_id=o),n&&(r.app_version=n),"undefined"!=typeof navigator&&(r.user_agent=navigator.userAgent,r.language=navigator.language),"undefined"!=typeof screen&&(r.screen_resolution=screen.width+"x"+screen.height),r),events:t},s=String(u.config.url||"").replace(/\/+$/,"");s&&e({url:s+"/api/v1/collect/events",data:JSON.stringify(a),method:"POST",contentType:"application/json",addBean:!1,type:ml.EVENT,log:t,success:function(){u.lifeCycle.emit("afterReport",{success:!0,events:t})},fail:function(e){u.lifeCycle.emit("afterReport",{success:!1,error:e,events:t})}})}],ml.EVENT)(e)}}var Dc=function(){},Nc=function(n){if(n&&n.reduce&&n.length)return 1===n.length?function(e,t){n[0](e,t||Dc)}:n.reduce(function(n,r){return function(e,t){return void 0===t&&(t=Dc),n(e,function(e){return null==r?void 0:r(e,t)})}});throw new TypeError("createPipeline need at least one function param")},Fc=(R({target:"Object",stat:!0,sham:!d},{getOwnPropertyDescriptors:function(e){for(var t,n,r=ze(e),i=Kn.f,o=Zn(r),a={},s=0;o.length>s;)(n=i(r,t=o[s++]))!==undefined&&An(a,t,n);return a}}),function(t,n){Object.getOwnPropertyNames(t).forEach(function(e){"function"==typeof t[e]&&"constructor"!==e&&(n?n[e]="sendPipeline"===e?function(){return function(){}}:function(){}:t[e]=function(){})})}),Uc={rage_click:3,dead_click:4,error_click:4,form_validation_error:3,slow_page:3,back_forward:2,long_focus_time:2,form_zigzag:2,uncompleted_form:3,custom_struggle:3},jc={rage_click:4,dead_click:5,error_click:5,form_validation_error:4,slow_page:4,back_forward:3,long_focus_time:3,form_zigzag:3,uncompleted_form:3,custom_struggle:3},zc=(c.use=function(e){-1===c.installedPlugins.indexOf(e)&&e.tdemPlugin&&c.installedPlugins.push(e)},c.unuse=function(e){e=c.installedPlugins.indexOf(e);-1!==e&&c.installedPlugins.splice(e,1)},c.prototype.getInternalTransport=function(){return this.internalTransport},c.prototype.setInternalTransport=function(e){this.internalTransport=e},c.prototype.getInternalRetrySchedule=function(){return this.internalRetrySchedule},c.prototype.transportRequest=function(t,n){return Wu(this,void 0,void 0,function(){return Hu(this,function(e){switch(e.label){case 0:if(this.internalTransport)return[4,this.internalTransport.request(t,n)];throw new Error("Internal Transport is not configured");case 1:return[2,e.sent()||{ok:!0,request:t}]}})})},c.prototype.transportHandoff=function(t,n){return Wu(this,void 0,void 0,function(){return Hu(this,function(e){switch(e.label){case 0:if(this.internalTransport)return[4,(this.internalTransport.handoff||this.internalTransport.request).call(this.internalTransport,h(h({},t),{handoff:!0}),n)];throw new Error("Internal Transport is not configured");case 1:return[2,e.sent()||{ok:!0,request:t,handoffAccepted:!0}]}})})},c.prototype.init=function(e){this.setConfig(e),this.config=Gu(this.config,e.hostUrl);for(var t=0;t<c.installedPlugins.length;t++)try{c.installedPlugins[t].patch(this)}catch(v){this.sendSDKError(v)}this.lifeCycle.emit("onInited")},c.prototype.destroy=function(e){void 0===e&&(e=!1);var t,n,r=c.instances.indexOf(this);-1!==r&&c.instances.splice(r,1);for(var i=c.installedPlugins.length-1;0<=i;i--)try{c.installedPlugins[i].unpatch(this)}catch(L){this.sendSDKError(L)}if(this.lifeCycle.emit("destroy"),this.lifeCycle.clear(),e)t=this,n=Object.getOwnPropertyDescriptors(t),Object.keys(n).forEach(function(e){n[e].writable&&(t[e]=null)}),Object.setPrototypeOf(this,null);else{for(var o=this;o.constructor!==Object&&Fc(o,this),o=Object.getPrototypeOf(o););0===c.instances.length&&(r=Object.getPrototypeOf(this).constructor,Fc(r),Fc(c))}},c.prototype.setConfig=function(e){Object.assign(this.config,e);var e=this.config,t=e.id,n=e.uin,r=e.version,i=e.aid,o=e.env,a=void 0===o?"production":o,o=e.pageUrl,e=e.userId||(n!==undefined&&null!==n?String(n):""),n=this.bean.id!==t||this.bean.uin!==e||this.bean.aid!==i;return this.bean.id=t||"",this.bean.uin=e,this.bean.version=r||"1.0.9",this.bean.aid=i||"",this.bean.env=function(){switch(a){case Dl.production:case Dl.development:case Dl.gray:case Dl.pre:case Dl.daily:case Dl.local:case Dl.test:case Dl.others:return 1;default:return}}()?a:Dl.others,o&&this.extendBean("from",encodeURIComponent(o.slice(0,2048))),n&&this.lifeCycle.emit("onConfigChange",this.config),this.config},c.prototype.extendBean=function(e,t){this.bean[e]=t},c.prototype.send=function(e,i,o){var t=this;return Nc([rc(this),tc(this,null==e?void 0:e.type),function(n,r){t.request(n,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];r({isErr:!1,result:e,logType:n.type,logs:n.log}),null!=i&&i.apply(void 0,e)},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];r({isErr:!0,result:e,logType:n.type,logs:n.log}),null!=o&&o.apply(void 0,e)})},ic(this)])(e)},c.prototype.sendSDKError=function(e){var n=this;this.sendPipeline([function(e,t){t({url:n.config.url+"?id=1085&msg[0]="+encodeURIComponent(Rl(e))+"&level[0]=2&from="+n.config.id+"&count=1&version="+n.config.id+"(1.0.9)",addBean:!1,method:"get",type:ml.SDK_ERROR,log:e})}],ml.SDK_ERROR)(e)},c.prototype.sendPipeline=function(e,t){var n,o=this;return Nc(qu([function(e,t){if(e&&e.type===ml.EVENT)return t(e);if("number"!=typeof n.config.random&&(console.warn("random must in [0, 1], default is 1."),n.config.random=1),!n.isHidden||!n.isGetSample)if(n.isGetSample)n.isHidden||t(e);else{if(n.isGetSample=!0,Math.random()<n.config.random)return n.isHidden=!1,t(e);n.isHidden=!0}},nc(n=this,t)],e,[tc(this,t),rc(this),function(r,i){o.request(r,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=!1;-1<(""+e[o.failRequestCount=0]).indexOf("403 forbidden")&&(n=!0,o.destroy()),i({isErr:n,result:e,logType:null==r?void 0:r.type,logs:null==r?void 0:r.log}),null!=(n=null==r?void 0:r.success)&&n.call.apply(n,qu([r],e))},function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];60<=++o.failRequestCount&&o.destroy(),-1<(""+t[0]).indexOf("403 forbidden")&&o.destroy(),i({isErr:!0,result:t,logType:null==r?void 0:r.type,logs:null==r?void 0:r.log}),null!=(e=null==r?void 0:r.fail)&&e.call.apply(e,qu([r],t))})},ic(this)]))},c.prototype.track=function(e,t){void 0===t&&(t={}),e&&"string"==typeof e?(e={event_id:Ul(),event_type:p.CUSTOM,event_category:Nl.CUSTOM,timestamp:Date.now(),page_url:this.getCurrentEventPageUrl(t.pageUrl),data:{event_name:e,replay_id:this.getEventReplayId(t.replayId),tags:this.sanitizeEventTags(t.tags),payload:this.sanitizeEventPayload(t.payload),event_properties:this.sanitizeEventProperties(t.properties)}},this.reportTDEMEvent(e)):console.warn("track: name must be a non-empty string")},c.prototype.reportTDEMEvent=function(e){var n=this,e=Array.isArray(e)?e:[e];e.length&&(e=e.map(function(e){var t;return h(h({},e),{page_url:e.page_url||n.getCurrentEventPageUrl(),data:h(h({},e.data),n.mergeEventTags(null==(t=e.data)?void 0:t.tags)?{tags:n.mergeEventTags(null==(t=e.data)?void 0:t.tags)}:{})})}),this.lifeCycle.emit("tdemEventCreated",e),this.tdemEventPipeline(e))},c.prototype.measure=function(e,t,n){void 0===n&&(n={}),e&&"string"==typeof e?"number"==typeof t?t<0||2147483646<t?console.warn("measure: duration must between 0 and 2147483646"):this.submitMeasure(e,t,n):console.warn("measure: duration must be a number"):console.warn("measure: name must be a non-empty string")},c.prototype.startMeasure=function(e){"string"==typeof e&&e?this.timeMap[e]?console.warn("Measure "+e+" already exists"):this.timeMap[e]=Date.now():console.warn("startMeasure: name must be a non-empty string")},c.prototype.endMeasure=function(e,t){var n;void 0===t&&(t={}),"string"==typeof e&&e?(n=this.getTimeEventDuration(e))!==undefined?(this.submitMeasure(e,n,t),delete this.timeMap[e]):console.warn("Measure "+e+" does not exist"):console.warn("endMeasure: name must be a non-empty string")},c.prototype.captureMessage=function(e,t){var n;void 0===t&&(t={}),"string"==typeof e&&e?(n="error"===t.level?"error":"warn"===t.level?"warn":"info",n={event_id:Ul(),event_type:p.LOG,event_category:Nl.LOG,timestamp:Date.now(),page_url:this.getCurrentEventPageUrl(t.pageUrl),data:{log_level:n,replay_id:this.getEventReplayId(t.replayId),tags:this.sanitizeEventTags(t.tags),event_properties:this.sanitizeEventProperties(h({message:e},t.properties||{}))}},this.reportTDEMEvent(n)):console.warn("captureMessage: message must be a non-empty string")},c.prototype.captureException=function(e,t){void 0===t&&(t={});var e="string"==typeof e?new Error(e):e;e instanceof Error?(e={event_id:Ul(),event_type:p.JS_ERROR,event_category:Nl.ERROR,timestamp:Date.now(),page_url:this.getCurrentEventPageUrl(t.pageUrl),data:{exception_stacks:[{type:e.name||"Error",value:e.message,mechanism_type:"manual",mechanism_handled:1}],exception_frames:jl(e),replay_id:this.getEventReplayId(t.replayId),tags:this.sanitizeEventTags(t.tags),event_properties:this.sanitizeEventProperties(h(h({},t.properties||{}),t.level?{capture_level:t.level}:{}))}},this.reportTDEMEvent(e)):console.warn("captureException: error must be an Error or string")},c.prototype.setTags=function(e){e=this.sanitizeEventTags(e);this.setConfig({defaultTags:h(h({},this.config.defaultTags||{}),e||{})})},c.prototype.removeTags=function(e){var t,e=Array.isArray(e)?e:[e];e.length&&(t=h({},this.config.defaultTags||{}),e.forEach(function(e){delete t[e]}),this.setConfig({defaultTags:t}))},c.prototype.clearTags=function(){this.setConfig({defaultTags:{}})},c.prototype.setUser=function(e){"string"==typeof e&&e?this.setConfig({userId:e}):console.warn("setUser: userId must be a non-empty string")},c.prototype.clearUser=function(){this.setConfig({userId:"",uin:""})},c.prototype.reportStruggle=function(e){var t,n,r;e&&e.type&&e.ownerType&&e.ownerKey?(r=e.type,t="number"==typeof e.severity?e.severity:Uc[r],n="number"==typeof e.weight?e.weight:jc[r],r={event_id:Ul(),event_type:p.STRUGGLE,event_category:Nl.BEHAVIOR,timestamp:Date.now(),page_url:this.getCurrentEventPageUrl(e.pageUrl),data:{event_name:r,replay_id:this.getEventReplayId(),tags:this.sanitizeEventTags(e.tags),is_effective_action:!1,related_event_ids:this.normalizeRelatedEventIds(e.relatedEventIds),payload:this.sanitizeEventPayload(e.payload,e.payloadAllowlist),struggle_weight:n,struggle_severity:t,struggle_value:"number"==typeof e.value?e.value:n*t,event_properties:{form_id:e.formId||"",field_id:e.fieldId||"",trigger_event_id:e.triggerEventId||"",struggle_status:e.status||"detected",struggle_owner_type:e.ownerType,struggle_owner_key:e.ownerKey,detection_source:e.detectionSource||"sdk_auto",rule_version:e.ruleVersion||this.getDefaultRuleVersion()}}},this.reportTDEMEvent(r)):console.warn("reportStruggle params error")},c.prototype.reportFormSubmitResult=function(e){e&&e.status?(e={event_id:Ul(),event_type:p.FORM_SUBMIT_RESULT,event_category:Nl.BEHAVIOR,timestamp:Date.now(),page_url:this.getCurrentEventPageUrl(e.pageUrl),data:{event_name:e.eventName||"form_submit_"+e.status,replay_id:this.getEventReplayId(),tags:this.sanitizeEventTags(e.tags),is_effective_action:"boolean"!=typeof e.isEffectiveAction||e.isEffectiveAction,trigger_event_id:e.triggerEventId,related_event_ids:this.normalizeRelatedEventIds(e.relatedEventIds),payload:this.sanitizeEventPayload(e.payload,e.payloadAllowlist),validation_message:e.validationMessage?e.validationMessage.slice(0,256):undefined,event_properties:{status:e.status,validation_code:e.validationCode||"",form_id:e.formId||"",field_id:e.fieldId||""}}},this.reportTDEMEvent(e)):console.warn("reportFormSubmitResult params error")},c.prototype.reportPageView=function(e,t){void 0===t&&(t={});e=this.getCurrentEventPageUrl(e||t.pageUrl),e={event_id:Ul(),event_type:p.PAGE_VIEW,event_category:Nl.BEHAVIOR,timestamp:Date.now(),page_url:e,data:{page_title:t.pageTitle||"",referrer:t.referrer,replay_id:this.getEventReplayId(t.replayId),tags:this.sanitizeEventTags(t.tags),event_properties:this.sanitizeEventProperties(h(h(h(h(h(h(h({},t.properties||{}),t.navigationType?{navigation_type:t.navigationType}:{}),t.fromPage?{from_page:t.fromPage}:{}),t.toPage?{to_page:t.toPage}:{}),"boolean"==typeof t.isFirstVisit?{is_first_visit:t.isFirstVisit?"1":"0"}:{}),"boolean"==typeof t.isFirstLoad?{is_first_load:t.isFirstLoad?"1":"0"}:{}),t.deviceType?{device_type:t.deviceType}:{}))}};this.reportTDEMEvent(e)},c.prototype.setPage=function(e,t){var n;e&&"string"==typeof e?(n=this._customPageUrl||this.getCurrentEventPageUrl(),this._customPageUrl=e,this.reportPageView(e,{pageTitle:null==t?void 0:t.pageTitle,navigationType:"push",fromPage:(n||"").slice(0,512),toPage:e.slice(0,512),isFirstVisit:!1,tags:h({source:"manual",environment:this.config.env||"production",version:String(this.config.version||"")},null!=t&&t.pageGroup?{page_group:t.pageGroup}:{})}),this.lifeCycle.emit("pageChanged",{pageUrl:e,previousUrl:n,source:"manual"})):console.warn("setPage: pageUrl must be a non-empty string")},c.prototype.leavePage=function(){var e;this._customPageUrl&&(e=this._customPageUrl,this._customPageUrl=null,this.lifeCycle.emit("pageChanged",{pageUrl:this.getCurrentEventPageUrl(),previousUrl:e,source:"auto"}))},c.prototype.getCurrentEventPageUrl=function(e){if(e)return e;if(this._customPageUrl)return this._customPageUrl;try{return this.getOriginFrom()}catch(Le){return this.config.pageUrl||"undefined"!=typeof window&&(null==(e=window.location)?void 0:e.href)||""}},c.prototype.getCurrentReplayId=function(){var e,t;return String((null==(t=null==(e=null==(t=this.sessionManager)?void 0:t.getSession)?void 0:e.call(t))?void 0:t.replayId)||"")},c.prototype.getDefaultRuleVersion=function(){var e;return(null==(e=null==(e=this.config)?void 0:e.struggleMonitor)?void 0:e.ruleVersion)||"1.0.0"},c.prototype.getEventReplayId=function(e){return e||this.getCurrentReplayId()||undefined},c.prototype.mergeEventTags=function(e){return this.sanitizeEventTags(h(h({},this.config.defaultTags||{}),e||{}))},c.prototype.sanitizeStringMap=function(n,r){var i;return void 0===r&&(r=1024),n&&"object"===S(n)&&(i={},Object.keys(n).forEach(function(e){var t=n[e];e&&t!==undefined&&null!==t&&(i[String(e)]=String(t).slice(0,r))}),Object.keys(i).length)?i:undefined},c.prototype.sanitizeEventTags=function(e){return this.sanitizeStringMap(e,1024)},c.prototype.sanitizeEventProperties=function(e){return this.sanitizeStringMap(e,1024)},c.prototype.sanitizeEventPayload=function(n,e){var r;return n&&"object"===S(n)&&(e=(e=this.getPayloadAllowlist(e)).length?e:Object.keys(n),r={},e.forEach(function(e){var t;Object.prototype.hasOwnProperty.call(n,e)&&(t=n[e])!==undefined&&null!==t&&("string"==typeof t?r[e]=t.slice(0,256):"number"==typeof t||"boolean"==typeof t?r[e]=t:Array.isArray(t)?r[e]=t.slice(0,10).map(function(e){return"string"==typeof e?e.slice(0,256):"number"==typeof e||"boolean"==typeof e?e:String(e).slice(0,256)}):r[e]=String(t).slice(0,256))}),Object.keys(r).length)?r:undefined},c.prototype.getPayloadAllowlist=function(e){var t=null==(t=null==(t=this.config)?void 0:t.struggleMonitor)?void 0:t.payloadAllowlist;return Array.from(new Set(qu(Array.isArray(t)?t:[],Array.isArray(e)?e:[]).filter(function(e){return!!e})))},c.prototype.normalizeRelatedEventIds=function(e){return Array.isArray(e)&&e.length&&(e=Array.from(new Set(e.filter(function(e){return"string"==typeof e&&e})))).length?e:undefined},c.prototype.ready=function(e,t,n){throw new Error('You need to override "ready" method')},c.prototype.request=function(e,t,n){throw new Error('You need to override "request" method')},c.prototype.speedLogPipeline=function(e){throw new Error('You need to override "speedLogPipeline" method')},c.prototype.getOriginFrom=function(){throw new Error('You need to override "getOriginFrom" method')},Object.defineProperty(c.prototype,"__version__",{get:function(){return"1.0.9"},enumerable:!1,configurable:!0}),c.prototype.submitMeasure=function(e,t,n){void 0===n&&(n={});e={event_id:Ul(),event_type:p.CUSTOM,event_category:Nl.CUSTOM,timestamp:Date.now(),page_url:this.getCurrentEventPageUrl(n.pageUrl),data:{event_name:e,measurements:{duration:t},replay_id:this.getEventReplayId(n.replayId),tags:this.sanitizeEventTags(n.tags),payload:this.sanitizeEventPayload(n.payload),event_properties:this.sanitizeEventProperties(n.properties)}};this.reportTDEMEvent(e)},c.prototype.getTimeEventDuration=function(e){return e!==undefined&&this.timeMap[e]?Date.now()-this.timeMap[e]:undefined},c.version="1.0.9",c.instances=[],c.environment=Dl,c.installedPlugins=[],c),r=(Yc.prototype.patch=function(e){this.canUse(e)&&this.exist(e)&&(this.instances.push(e),this.triggerInit(e),this.triggerOnNewTdem(e))},Yc.prototype.unpatch=function(e){var t=this.instances.indexOf(e);-1!==t&&(this.instances.splice(t,1),0===this.instances.length)&&this.uninstall(e)},Yc.prototype.countInstance=function(){return this.instances.length},Yc.prototype.uninstall=function(e){var t;null!=(t=null==(t=this.option)?void 0:t.destroy)&&t.apply(this,[e])},Yc.prototype.walk=function(n){var r=this;this.instances.forEach(function(e){var t=r.canUse(e);t&&n(e,t)})},Yc.prototype.canUse=function(e){e=this.getConfig(e);return!(!e||"object"!==S(e))||!!e},Yc.prototype.getConfig=function(e){return null==(e=e.config)?void 0:e[this.name]},Yc.prototype.exist=function(e){return-1===this.instances.indexOf(e)},Yc.prototype.triggerInit=function(e){var t;this.inited||(this.inited=!0,null==(t=null==(t=this.option)?void 0:t.init))||t.call(this.option,this.getConfig(e))},Yc.prototype.triggerOnNewTdem=function(e){var t;null!=(t=null==(t=this.option)?void 0:t.onNewTdem)&&t.call(this.option,e,this.getConfig(e))},Yc),rn=new r({name:"aid",aid:"",init:function(e){try{var t=!0!==e&&e||window.localStorage.getItem("TDEM_ID");t||(t=Cc(),window.localStorage.setItem("TDEM_ID",t)),this.aid=t}catch(A){}},onNewTdem:function(e){e.bean.aid=this.aid,e.config.aid=this.aid}}),Bc=RangeError,Wc=String,Hc=Math.floor,qc=y(mt),Vc=y("".slice),Gc=y(1.1.toFixed),Jc=function(e,t,n){return 0===t?n:t%2==1?Jc(e,t-1,n*e):Jc(e*e,t/2,n)},$c=function(e,t,n){for(var r=-1,i=n;++r<6;)i+=t*e[r],e[r]=i%1e7,i=Hc(i/1e7)},Zc=function(e,t){for(var n=6,r=0;0<=--n;)r+=e[n],e[n]=Hc(r/t),r=r%t*1e7},Kc=function(e){for(var t,n=6,r="";0<=--n;)""===r&&0!==n&&0===e[n]||(t=Wc(e[n]),r=""===r?t:r+qc("0",7-t.length)+t);return r},t=g(function(){return"0.000"!==Gc(8e-5,3)||"1"!==Gc(.9,0)||"1.25"!==Gc(1.255,2)||"1000000000000000128"!==Gc(0xde0b6b3a7640080,0)})||!g(function(){Gc({})});function Yc(e){this.tdemPlugin=!0,this.name="",this.instances=[],this.inited=!1,e.$walk=this.walk.bind(this),e.$getConfig=this.getConfig.bind(this),this.option=e,this.name=e.name}function c(e,t){var n,r,i,o,a,s,u,l;void 0===t&&(t={}),this.sdkName="tdem-web-sdk",this.sdkVersion=c.version,this.isGetSample=!1,this.isHidden=!1,this.config={version:0,delay:1e3,onError:!0,repeat:60,random:1,aid:!0,device:!0,pagePerformance:!0,webVitals:!0,speedSample:!0,onClose:!0,reportLoadPackageSpeed:!0,env:"production",url:"",reportImmediately:!0,tdemConfig:!0,hostUrl:"https://dem.rumt-zh.com",offlineUrl:"",whiteListUrl:"",pvUrl:"",speedUrl:"",customTimeUrl:"",performanceUrl:"",performanceUrlForHippy:"",webVitalsUrl:"",eventUrl:"",setDataReportUrl:""},this.isWhiteList=!1,this.lifeCycle=new cl,this.bean={},this.internalRetrySchedule=Fl,this._customPageUrl=null,this.tdemEventPipeline=Nc([(r=n=!1,i=[],this._tdemSampleGate={decide:function(e){n=!0,(r=e)&&i.forEach(function(e){var t=e.event;return(0,e.resolve)(t)}),i=[]},reDecide:function(e){return r=!(e<=0)&&(100<=e||100*Math.random()<e)},get isDecided(){return n},get isSampled(){return r}},function(e,t){n?r&&t(e):i.length<1e3&&i.push({event:e,resolve:t})}),(a=100,u=Math.max(Number(a)||1,1),l=[],function(e,t){var e=Array.isArray(e)?e:[e],n=(l.push.apply(l,e),function(){for(;0<l.length;)t(l.splice(0,u))});clearTimeout(s),u<=l.length?n():s=setTimeout(function(){0<l.length&&n()},5e3)}),function(e,t){try{var n,r=JSON.parse(JSON.stringify(e)),i=(o.lifeCycle.emit("beforeReport",r),o.config.beforeReport);"function"==typeof i?0<(n=e.filter(function(e){return!1!==i(e)})).length&&t(n):t(e)}catch(P){t(e)}},Lc(o=this)]),this.timeMap={},this.failRequestCount=0,this.internalTransport=t.transport,this.internalRetrySchedule=t.retrySchedule||Fl,c.instances.push(this)}R({target:"Number",proto:!0,forced:t},{toFixed:function(e){var t,n,r,i=oc(this),e=se(e),o=[0,0,0,0,0,0],a="",s="0";if(e<0||20<e)throw new Bc("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||1e21<=i)return Wc(i);if(i<0&&(a="-",i=-i),1e-21<i)if(r=(t=function(){for(var e=0,t=i*Jc(2,69,1);4096<=t;)e+=12,t/=4096;for(;2<=t;)e+=1,t/=2;return e}()-69)<0?i*Jc(2,-t,1):i/Jc(2,t,1),r*=4503599627370496,0<(t=52-t)){for($c(o,0,r),n=e;7<=n;)$c(o,1e7,0),n-=7;for($c(o,Jc(10,n,1),0),n=t-1;23<=n;)Zc(o,1<<23),n-=23;Zc(o,1<<n),$c(o,1,1),Zc(o,2),s=Kc(o)}else $c(o,0,r),$c(o,1<<-t,0),s=Kc(o)+qc("0",e);return 0<e?a+((r=s.length)<=e?"0."+qc("0",e-r)+s:Vc(s,0,r-e)+"."+Vc(s,r-e)):a+s}});var Xc=function(t){return"string"!=typeof t||!t||$u.some(function(e){return-1<t.indexOf(e)})||Ju.some(function(e){return-1<t.indexOf(e)})},Qc=function(){return"undefined"!=typeof window.performance&&"function"==typeof performance.getEntriesByType&&"function"==typeof performance.now};function ef(e){return e=e.sessionManager,[(null==(e=null==(t=null==e?void 0:e.getSession)?void 0:t.call(e))?void 0:e.replayId)||"",null==e||e.id,!e||e.sampled,null==e||e.sampled][0];var t}var tf,nf,rf=new r({name:"assets"}),mt=rf=new r({name:"assets",collectCur:0,collectEntryType:"resource",ASSETS_INITIATOR_TYPE:["img","css","script","link","audio","video"],getFromParam:function(e){var t;return(null==(t=e.getOriginFrom)?void 0:t.call(e))||window.location.href},onNewTdem:function(e){var t=this;Qc()&&(setTimeout(function(){t.collectSuccessLog(e),t.collectFailLog(e)},5e3),performance.onresourcetimingbufferfull=function(){"function"==typeof performance.clearResourceTimings&&(t.collectCur=0,performance.clearResourceTimings())})},processLog:function(e,t){var n=t.duration||0,r=t.transferSize||0,n={event_id:Ul(),event_type:p.RESOURCE_LOAD,event_category:Nl.NETWORK,timestamp:Date.now(),page_url:t.from||window.location.href,data:{url:t.url,resource_type:t.type||"static",measurements:{duration:n,dns_time:t.domainLookup,tcp_time:t.connectTime,transfer_size:0<r?r:undefined},replay_id:ef(e),tags:{environment:e.config.env||"production",is_https:t.isHttps?"true":"false"},event_properties:{is_cached:String(0===r),protocol:t.nextHopProtocol||"",http_status:String(t.status||0)}}};null!=(r=e.reportTDEMEvent)&&r.call(e,n)},publish:function(t,n){var r=this;this.$walk(function(e){e===n&&(Array.isArray(t)?t.forEach(r.processLog):r.processLog(n,t))})},publishMany:function(e,t){for(var n=t.config,r=this.getFromParam(t),i=0,o=e.length;i<o;i++){var a=e[i];-1===this.ASSETS_INITIATOR_TYPE.indexOf(a.initiatorType)||Ll(a.name,n.hostUrl)||this.publish(this.generateLog(a,n,r),t)}},collectSuccessLog:function(n){var e,t,r=this;"function"==typeof window.PerformanceObserver?(this.publishMany(performance.getEntriesByType(this.collectEntryType),n),(e=new window.PerformanceObserver(function(e){r.publishMany(e.getEntries(),n)})).observe({entryTypes:[this.collectEntryType]}),n.lifeCycle.on("destroy",function(){0===rf.countInstance()&&e.disconnect()})):(t=setInterval(function(){var e=performance.getEntriesByType(r.collectEntryType),t=e.slice(r.collectCur);r.collectCur=e.length,r.publishMany(t,n)},3e3),n.lifeCycle.on("destroy",function(){0===rf.countInstance()&&clearInterval(t)}))},collectFailLog:function(i){var o=this,a=i.config,e=function(e){var t,n,r;e&&(e=e.target||e.srcElement,!(t=(null==e?void 0:e.src)||(null==e?void 0:e.href))||"string"!=typeof t||-1<window.location.href.indexOf(t)||(e="function"==typeof(null==(e=a.api)?void 0:e.resourceTypeHandler)?null==e?void 0:e.resourceTypeHandler(t):"",r=performance.getEntriesByType(o.collectEntryType).find(function(e){return e.name===t}),Ll(t,a.hostUrl))||(n=o.getFromParam(i),r={url:yl(t),status:400,duration:Number(((null==r?void 0:r.duration)||0).toFixed(2)),method:"get",type:e||"static",isHttps:wl(t),urlQuery:vl(t,!0),nextHopProtocol:"",domainLookup:0,connectTime:0,from:n},o.publish(r,i)))};window.document.addEventListener("error",e,!0),i.lifeCycle.on("destroy",function(){0===rf.countInstance()&&window.document.removeEventListener("error",e,!0)})},generateLog:function(e,t,n){var t="function"==typeof(null==(r=t.api)?void 0:r.resourceTypeHandler)?null==(r=t.api)?void 0:r.resourceTypeHandler(e.name):"",r=e.transferSize;return{url:yl(e.name),method:"get",duration:Number(e.duration.toFixed(2)),status:200,type:t||"static",isHttps:wl(e.name),nextHopProtocol:e.nextHopProtocol||"",urlQuery:vl(e.name,!0),domainLookup:gl(e.domainLookupEnd-e.domainLookupStart),connectTime:gl(e.connectEnd-e.connectStart),transferSize:0<r?r:-1,from:n}},collectNotReportedLog:function(e){var t,n;Qc()&&(t=(n=performance.getEntriesByType(this.collectEntryType)).length,"function"!=typeof window.PerformanceObserver)&&this.collectCur!==t&&(n=n.slice(this.collectCur),this.collectCur=t,this.publishMany(n,e))},destroy:function(){this.option.publish=function(){}}}),t=/ipad|iphone|ipod/i.test(xn)&&/applewebkit/i.test(xn),of=x.setImmediate,af=x.clearImmediate,sf=x.process,uf=x.Dispatch,lf=x.Function,o=x.MessageChannel,cf=x.String,ff=0,df={},hf=(g(function(){tf=x.location}),function(e){var t;T(df,e)&&(t=df[e],delete df[e],t())}),pf=function(e){return function(){hf(e)}},mf=function(e){hf(e.data)},gf=function(e){x.postMessage(cf(e),tf.protocol+"//"+tf.host)},o=(of&&af||(of=function(e){$l(arguments.length,1);var t=_(e)?e:lf(e),n=Pn(arguments,1);return df[++ff]=function(){Re(t,undefined,n)},nf(ff),ff},af=function(e){delete df[e]},Hl?nf=function(e){sf.nextTick(pf(e))}:uf&&uf.now?nf=function(e){uf.now(pf(e))}:o&&!t?(yf=(o=new o).port2,o.port1.onmessage=mf,nf=zr(yf.postMessage,yf)):x.addEventListener&&_(x.postMessage)&&!x.importScripts&&tf&&"file:"!==tf.protocol&&!g(gf)?(nf=gf,x.addEventListener("message",mf,!1)):nf="onreadystatechange"in me("script")?function(e){ar.appendChild(me("script")).onreadystatechange=function(){ar.removeChild(this),hf(e)}}:function(e){setTimeout(pf(e),0)}),{set:of,clear:af}),vf=Object.getOwnPropertyDescriptor,yf=function(e){var t;return d?(t=vf(x,e))&&t.value:x[e]},gf=function(){this.head=null,this.tail=null};gf.prototype={add:function(e){var e={item:e,next:null},t=this.tail;t?t.next=e:this.head=e,this.tail=e},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}};var wf,bf,kf,Sf,_f,Ef,Cf=gf,mf=/ipad|iphone|ipod/i.test(xn)&&"undefined"!=typeof Pebble,of=/web0s(?!.*chrome)/i.test(xn),Rf=o.set,af=x.MutationObserver||x.WebKitMutationObserver,gf=x.document,Of=x.process,xf=x.Promise,a=yf("queueMicrotask"),If=(a||(Sf=new Cf,_f=function(){var e,t;for(Hl&&(e=Of.domain)&&e.exit();t=Sf.get();)try{t()}catch(X){throw Sf.head&&Ef(),X}e&&e.enter()},Ef=t||Hl||of||!af||!gf?!mf&&xf&&xf.resolve?((t=xf.resolve(undefined)).constructor=xf,kf=zr(t.then,t),function(){kf(_f)}):Hl?function(){Of.nextTick(_f)}:(Rf=zr(Rf,x),function(){Rf(_f)}):(wf=!0,bf=gf.createTextNode(""),new af(_f).observe(bf,{characterData:!0}),function(){bf.data=wf=!wf}),a=function(e){Sf.head||Ef(),Sf.add(e)}),a),Tf=function(e){try{return{error:!1,value:e()}}catch(X){return{error:!0,value:X}}},Mf=x.Promise,Af=TypeError,Pf=function(e){var n,r;this.promise=new e(function(e,t){if(n!==undefined||r!==undefined)throw new Af("Bad Promise constructor");n=e,r=t}),this.resolve=Ce(n),this.reject=Ce(r)},Lf={f:function(e){return new Pf(e)}},Df=function(e,t){return E(e),O(t)&&t.constructor===e?t:((0,(e=Lf.f(e)).resolve)(t),e.promise)},Nf=Mf&&Mf.prototype,of=!!Mf&&g(function(){Nf["finally"].call({then:function(){}},function(){})});R({target:"Promise",proto:!0,real:!0,forced:of},{"finally":function(t){var n=qs(this,be("Promise")),e=_(t);return this.then(e?function(e){return Df(n,t()).then(function(){return e})}:t,e?function(e){return Df(n,t()).then(function(){throw e})}:t)}}),_(Mf)&&(mf=be("Promise").prototype["finally"],Nf["finally"]!==mf)&&Ot(Nf,"finally",mf,{unsafe:!0}),Mf&&Mf.prototype;var Ff,Uf,jf,zf,Bf=Ze("species"),Wf=!1,Hf=_(x.PromiseRejectionEvent),xf={CONSTRUCTOR:ps("Promise",function(){var e=$e(Mf),t=e!==String(Mf);if(!t&&66===Tn)return!0;if(!Tn||Tn<51||!/native code/.test(e)){var e=new Mf(function(e){e(1)}),n=function(e){e(function(){},function(){})};if((e.constructor={})[Bf]=n,!(Wf=e.then(function(){})instanceof n))return!0}return!(t||"BROWSER"!=Wl&&"DENO"!=Wl||Hf)}),REJECTION_EVENT:Hf,SUBCLASSING:Wf},qf=o.set,t=xf.CONSTRUCTOR,Vf=xf.REJECTION_EVENT,gf=xf.SUBCLASSING,Gf=bt.getterFor("Promise"),Jf=bt.set,af=Mf&&Mf.prototype,$f=Mf,Zf=af,Kf=x.TypeError,Yf=x.document,Xf=x.process,Qf=Lf.f,ed=Qf,td=!!(Yf&&Yf.createEvent&&x.dispatchEvent),nd=function(e){var t;return!(!O(e)||!_(t=e.then))&&t},rd=function(e,t){var n,r,i,o=t.value,a=1===t.state,s=a?e.ok:e.fail,u=e.resolve,l=e.reject,c=e.domain;try{s?(a||(2===t.rejection&&ud(t),t.rejection=1),!0===s?n=o:(c&&c.enter(),n=s(o),c&&(c.exit(),i=!0)),n===e.promise?l(new Kf("Promise-chain cycle")):(r=nd(n))?I(r,n,u,l):u(n)):l(o)}catch(X){c&&!i&&c.exit(),l(X)}},id=function(n,r){n.notified||(n.notified=!0,If(function(){for(var e,t=n.reactions;e=t.get();)rd(e,n);n.notified=!1,r&&!n.rejection&&ad(n)}))},od=function(e,t,n){var r;td?((r=Yf.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),x.dispatchEvent(r)):r={promise:t,reason:n},!Vf&&(t=x["on"+e])?t(r):"unhandledrejection"===e&&function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(X){}}("Unhandled promise rejection",n)},ad=function(r){I(qf,x,function(){var e,t=r.facade,n=r.value;if(sd(r)&&(e=Tf(function(){Hl?Xf.emit("unhandledRejection",n,t):od("unhandledrejection",t,n)}),r.rejection=Hl||sd(r)?2:1,e.error))throw e.value})},sd=function(e){return 1!==e.rejection&&!e.parent},ud=function(t){I(qf,x,function(){var e=t.facade;Hl?Xf.emit("rejectionHandled",e):od("rejectionhandled",e,t.value)})},ld=function(t,n,r){return function(e){t(n,e,r)}},cd=function(e,t,n){e.done||(e.done=!0,(e=n?n:e).value=t,e.state=2,id(e,!0))},fd=function(t,n,e){if(!t.done){t.done=!0,e&&(t=e);try{if(t.facade===n)throw new Kf("Promise can't be resolved itself");var r=nd(n);r?If(function(){var e={done:!1};try{I(r,n,ld(fd,e,t),ld(cd,e,t))}catch(X){cd(e,X,t)}}):(t.value=n,t.state=1,id(t,!1))}catch(X){cd({done:!1},X,t)}}};if(t&&(Zf=($f=function(e){er(this,Zf),Ce(e),I(Ff,this);var t=Gf(this);try{e(ld(fd,t),ld(cd,t))}catch(X){cd(t,X)}}).prototype,(Ff=function(e){Jf(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new Cf,rejection:!1,state:0,value:null})}).prototype=Ot(Zf,"then",function(e,t){var n=Gf(this),r=Qf(qs(this,$f));return n.parent=!0,r.ok=!_(e)||e,r.fail=_(t)&&t,r.domain=Hl?Xf.domain:undefined,0===n.state?n.reactions.add(r):If(function(){rd(r,n)}),r.promise}),Uf=function(){var e=new Ff,t=Gf(e);this.promise=e,this.resolve=ld(fd,t),this.reject=ld(cd,t)},Lf.f=Qf=function(e){return e===$f||e===jf?new Uf:ed(e)},_(Mf))&&af!==Object.prototype){zf=af.then,gf||Ot(af,"then",function(e,t){var n=this;return new $f(function(e,t){I(zf,n,e,t)}).then(e,t)},{unsafe:!0});try{delete af.constructor}catch(X){}kr&&kr(af,Zf)}R({global:!0,constructor:!0,wrap:!0,forced:t},{Promise:$f}),jf=di.Promise,hr($f,"Promise",!1),ma("Promise");var dd,hd,pd,a=xf.CONSTRUCTOR||!su(function(e){Mf.all(e).then(undefined,function(){})}),of=(R({target:"Promise",stat:!0,forced:a},{all:function(e){var s=this,t=Lf.f(s),u=t.resolve,l=t.reject,n=Tf(function(){var r=Ce(s.resolve),i=[],o=0,a=1;Xr(e,function(e){var t=o++,n=!1;a++,I(r,s,e).then(function(e){n||(n=!0,i[t]=e,--a)||u(i)},l)}),--a||u(i)});return n.error&&l(n.value),t.promise}}),xf.CONSTRUCTOR),mf=Mf&&Mf.prototype,gf=(R({target:"Promise",proto:!0,forced:of,real:!0},{"catch":function(e){return this.then(undefined,e)}}),_(Mf)&&(o=be("Promise").prototype["catch"],mf["catch"]!==o)&&Ot(mf,"catch",o,{unsafe:!0}),R({target:"Promise",stat:!0,forced:a},{race:function(e){var n=this,r=Lf.f(n),i=r.reject,t=Tf(function(){var t=Ce(n.resolve);Xr(e,function(e){I(t,n,e).then(r.resolve,i)})});return t.error&&i(t.value),r.promise}}),R({target:"Promise",stat:!0,forced:xf.CONSTRUCTOR},{reject:function(e){var t=Lf.f(this);return(0,t.reject)(e),t.promise}}),xf.CONSTRUCTOR),md=(be("Promise"),R({target:"Promise",stat:!0,forced:gf},{resolve:function(e){return Df(this,e)}}),window.navigator.userAgent.toLowerCase()),l={},gd=function(e){return-1!==md.indexOf(e)},vd=(l.macos=function(){return gd("mac")},l.ios=function(){return l.iphone()||l.ipod()||l.ipad()},l.iphone=function(){return!l.windows()&&gd("iphone")},l.ipod=function(){return gd("ipod")},l.ipad=function(){var e="MacIntel"===navigator.platform&&1<navigator.maxTouchPoints;return gd("ipad")||e},l.android=function(){return!l.windows()&&gd("android")},l.androidPhone=function(){return l.android()&&gd("mobile")},l.androidTablet=function(){return l.android()&&!gd("mobile")},l.blackberry=function(){return gd("blackberry")||gd("bb10")},l.blackberryPhone=function(){return l.blackberry()&&!gd("tablet")},l.blackberryTablet=function(){return l.blackberry()&&gd("tablet")},l.windows=function(){return gd("windows")},l.windowsPhone=function(){return l.windows()&&gd("phone")},l.windowsTablet=function(){return l.windows()&&gd("touch")&&!l.windowsPhone()},l.fxos=function(){return(gd("(mobile")||gd("(tablet"))&&gd(" rv:")},l.fxosPhone=function(){return l.fxos()&&gd("mobile")},l.fxosTablet=function(){return l.fxos()&&gd("tablet")},l.meego=function(){return gd("meego")},l.cordova=function(){return window.cordova&&"file:"===location.protocol},l.nodeWebkit=function(){return"object"===S(window.process)},l.mobile=function(){return l.androidPhone()||l.iphone()||l.ipod()||l.windowsPhone()||l.blackberryPhone()||l.fxosPhone()||l.meego()},l.tablet=function(){return l.ipad()||l.androidTablet()||l.blackberryTablet()||l.windowsTablet()||l.fxosTablet()},l.desktop=function(){return!l.tablet()&&!l.mobile()},l.isIE=function(){return"ActiveXObject"in window},void 0),yd=(R({target:"Object",stat:!0},{is:vd}),Object.is,yt("search",function(r,i,o){return[function(e){var t=re(this),n=O(e)?Nt(e,r):undefined;return n?I(n,e,t):new RegExp(e)[r](C(t))},function(e){var t=E(this),e=C(e),n=o(i,t,e);return n.done?n.value:(n=t.lastIndex,vd(n,0)||(t.lastIndex=0),e=Zt(t,e),vd(t.lastIndex,n)||(t.lastIndex=n),null===e?-1:e.index)}]}),Math.floor),wd=function(e,t){var n=e.length;if(n<8)for(var r,i,o=1;o<n;){for(r=e[i=o];i&&0<t(e[i-1],r);)e[i]=e[--i];i!==o++&&(e[i]=r)}else for(var a=yd(n/2),s=wd(Pn(e,0,a),t),u=wd(Pn(e,a),t),l=s.length,c=u.length,f=0,d=0;f<l||d<c;)e[f+d]=f<l&&d<c?t(s[f],u[d])<=0?s[f++]:u[d++]:f<l?s[f++]:u[d++];return e},bd=wd,af=xn.match(/firefox\/(\d+)/i),kd=!!af&&+af[1],Sd=/MSIE|Trident/.test(xn),t=xn.match(/AppleWebKit\/(\d+)\./),_d=!!t&&+t[1],Ed=[],Cd=y(Ed.sort),Rd=y(Ed.push),of=g(function(){Ed.sort(undefined)}),mf=g(function(){Ed.sort(null)}),o=Te("sort"),Od=!g(function(){if(Tn)return Tn<70;if(!(kd&&3<kd)){if(Sd)return!0;if(_d)return _d<603;for(var e,t,n,r="",i=65;i<76;i++){switch(e=String.fromCharCode(i),i){case 66:case 69:case 70:case 72:t=3;break;case 68:case 71:t=4;break;default:t=2}for(n=0;n<47;n++)Ed.push({k:e+n,v:t})}for(Ed.sort(function(e,t){return t.v-e.v}),n=0;n<Ed.length;n++)e=Ed[n].k.charAt(0),r.charAt(r.length-1)!==e&&(r+=e);return"DGBEFHACIJK"!==r}}),xd=(R({target:"Array",proto:!0,forced:of||!mf||!o||!Od},{sort:function(e){e!==undefined&&Ce(e);var t=oe(this);if(Od)return e===undefined?Cd(t):Cd(t,e);for(var n,r,i=[],o=ce(t),a=0;a<o;a++)a in t&&Rd(i,t[a]);for(bd(i,(r=e,function(e,t){return t===undefined?-1:e===undefined?1:r!==undefined?+r(e,t)||0:(e=C(e))===(t=C(t))?0:t<e?1:-1})),n=ce(i),a=0;a<n;)t[a]=i[a++];for(;a<o;)ba(t,a++);return t}}),RangeError),Id=String.fromCharCode,a=String.fromCodePoint,Td=y([].join),xf=!!a&&1!==a.length,gf=(R({target:"String",stat:!0,arity:1,forced:xf},{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,i=0;i<r;){if(mn(t=+arguments[i],1114111)!==t)throw new xd(t+" is not a valid code point");n[i++]=t<65536?Id(t):Id(55296+((t-=65536)>>10),t%1024+56320)}return Td(n,"")}}),Ze("iterator")),Md=bt.set,Ad=bt.getterFor("URLSearchParams"),Pd=bt.getterFor("URLSearchParamsIterator"),Ld=yf("fetch"),Dd=yf("Request"),Nd=yf("Headers"),Fd=Dd&&Dd.prototype,yt=Nd&&Nd.prototype,Ud=x.TypeError,jd=x.encodeURIComponent,zd=String.fromCharCode,Bd=be("String","fromCodePoint"),Wd=parseInt,Hd=y("".charAt),qd=y([].join),Vd=y([].push),Gd=y("".replace),Jd=y([].shift),$d=y([].splice),Zd=y("".split),Kd=y("".slice),Yd=y(/./.exec),Xd=/\+/g,Qd=/^[0-9a-f]+$/i,eh=function(e,t){e=Kd(e,t,t+2);return Yd(Qd,e)?Wd(e,16):NaN},th=function(e){for(var t=(e=Gd(e,Xd," ")).length,n="",r=0;r<t;){var i=Hd(e,r);if("%"===i){if("%"===Hd(e,r+1)||t<r+3){n+="%",r++;continue}var o=eh(e,r+1);if(o!=o){n+=i,r++;continue}r+=2;var a=function(e){for(var t=0,n=128;0<n&&0!=(e&n);n>>=1)t++;return t}(o);if(0===a)i=zd(o);else{if(1===a||4<a){n+="�",r++;continue}for(var s=[o],u=1;u<a&&!(++r+3>t||"%"!==Hd(e,r));){var l=eh(e,r+1);if(l!=l||191<l||l<128)break;if(1===u){if(224===o&&l<160)break;if(237===o&&159<l)break;if(240===o&&l<144)break;if(244===o&&143<l)break}Vd(s,l),r+=2,u++}if(s.length!==a){n+="�";continue}var c=function(e){var t=null,n=e.length;switch(n){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return null===t||1114111<t||55296<=t&&t<=57343||t<(3<n?65536:2<n?2048:1<n?128:0)?null:t}(s);if(null===c){for(var f=0;f<a;f++)n+="�";r++;continue}i=Bd(c)}}n+=i,r++}return n},nh=/[!'()~]|%20/g,rh={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ih=function(e){return rh[e]},oh=function(e){return Gd(jd(e),nh,ih)},ah=br(function(e,t){Md(this,{type:"URLSearchParamsIterator",target:Ad(e).entries,index:0,kind:t})},"URLSearchParams",function(){var e=Pd(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,xr(undefined,!0);var r=t[n];switch(e.kind){case"keys":return xr(r.key,!1);case"values":return xr(r.value,!1)}return xr([r.key,r.value],!1)},!0),sh=function(e){this.entries=[],this.url=null,e!==undefined&&(O(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Hd(e,0)?Kd(e,1):e:C(e)))},af=(sh.prototype={type:"URLSearchParams",bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,i,o,a,s=this.entries,u=Vr(e);if(u)for(n=(t=Jr(e,u)).next;!(r=I(n,t)).done;){if(i=(r=Jr(E(r.value))).next,(o=I(i,r)).done||(a=I(i,r)).done||!I(i,r).done)throw new Ud("Expected sequence with length 2");Vd(s,{key:C(o.value),value:C(a.value)})}else for(var l in e)T(e,l)&&Vd(s,{key:l,value:C(e[l])})},parseQuery:function(e){if(e)for(var t,n=this.entries,r=Zd(e,"&"),i=0;i<r.length;)(t=r[i++]).length&&(t=Zd(t,"="),Vd(n,{key:th(Jd(t)),value:th(qd(t,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],Vd(n,oh(e.key)+"="+oh(e.value));return qd(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}},function(){er(this,uh);var e=0<arguments.length?arguments[0]:undefined,e=Md(this,new sh(e));d||(this.size=e.entries.length)}),uh=af.prototype,of=(Fo(uh,{append:function(e,t){var n=Ad(this);$l(arguments.length,2),Vd(n.entries,{key:C(e),value:C(t)}),d||this.size++,n.updateURL()},"delete":function(e){for(var t=Ad(this),n=$l(arguments.length,1),r=t.entries,i=C(e),e=n<2?undefined:arguments[1],o=e===undefined?e:C(e),a=0;a<r.length;){var s=r[a];s.key!==i||o!==undefined&&s.value!==o?a++:$d(r,a,1)}d||(this.size=r.length),t.updateURL()},get:function(e){var t=Ad(this).entries;$l(arguments.length,1);for(var n=C(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){var t=Ad(this).entries;$l(arguments.length,1);for(var n=C(e),r=[],i=0;i<t.length;i++)t[i].key===n&&Vd(r,t[i].value);return r},has:function(e){for(var t=Ad(this).entries,n=$l(arguments.length,1),r=C(e),e=n<2?undefined:arguments[1],i=e===undefined?e:C(e),o=0;o<t.length;){var a=t[o++];if(a.key===r&&(i===undefined||a.value===i))return!0}return!1},set:function(e,t){var n=Ad(this);$l(arguments.length,2);for(var r,i=n.entries,o=!1,a=C(e),s=C(t),u=0;u<i.length;u++)(r=i[u]).key===a&&(o?$d(i,u--,1):(o=!0,r.value=s));o||Vd(i,{key:a,value:s}),d||(this.size=i.length),n.updateURL()},sort:function(){var e=Ad(this);bd(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,n=Ad(this).entries,r=zr(e,1<arguments.length?arguments[1]:undefined),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new ah(this,"keys")},values:function(){return new ah(this,"values")},entries:function(){return new ah(this,"entries")}},{enumerable:!0}),Ot(uh,gf,uh.entries,{name:"entries"}),Ot(uh,"toString",function(){return Ad(this).serialize()},{enumerable:!0}),d&&St(uh,"size",{get:function(){return Ad(this).entries.length},configurable:!0,enumerable:!0}),hr(af,"URLSearchParams"),R({global:!0,constructor:!0,forced:!0},{URLSearchParams:af}),_(Nd)&&(dd=y(yt.has),hd=y(yt.set),pd=function(e){if(O(e)){var t,n=e.body;if("URLSearchParams"===Qe(n))return t=e.headers?new Nd(e.headers):new Nd,dd(t,"content-type")||hd(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),rr(e,{body:at(0,C(n)),headers:at(0,t)})}return e},_(Ld)&&R({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return Ld(e,1<arguments.length?pd(arguments[1]):{})}}),_(Dd))&&((Fd.constructor=t=function(e){return er(this,Fd),new Dd(e,1<arguments.length?pd(arguments[1]):{})}).prototype=Fd,R({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:t})),{URLSearchParams:af,getState:Ad});R({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return I(URL.prototype.toString,this)}});var lh,ch=Ze("iterator"),fh=(g(function(){var e=new URL("b?a=1&b=2&c=3","https://a"),n=e.searchParams,t=new URLSearchParams("a=1&a=2&b=3"),r="";return e.pathname="c%20d",n.forEach(function(e,t){n["delete"]("b"),r+=t+e}),t["delete"]("a",2),t["delete"]("b",undefined),!n.size&&!d||!n.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==n.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!n[ch]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==r||"x"!==new URL("https://x",undefined).host}),/[^\0-\u007E]/),dh=/[.\u3002\uFF0E\uFF61]/g,hh="Overflow: input needs wider integers to process",ph=RangeError,mh=y(dh.exec),gh=Math.floor,vh=String.fromCharCode,yh=y("".charCodeAt),wh=y([].join),bh=y([].push),kh=y("".replace),Sh=y("".split),_h=y("".toLowerCase),Eh=function(e){return e+22+75*(e<26)},Ch=function(e){var t,n=[],r=(e=function(e){for(var t=[],n=0,r=e.length;n<r;){var i,o=yh(e,n++);55296<=o&&o<=56319&&n<r?56320==(64512&(i=yh(e,n++)))?bh(t,((1023&o)<<10)+(1023&i)+65536):(bh(t,o),n--):bh(t,o)}return t}(e)).length,i=128,o=0,a=72;for(c=0;c<e.length;c++)(t=e[c])<128&&bh(n,vh(t));var s=n.length,u=s;for(s&&bh(n,"-");u<r;){for(var l=2147483647,c=0;c<e.length;c++)(t=e[c])>=i&&t<l&&(l=t);var f=u+1;if(l-i>gh((2147483647-o)/f))throw new ph(hh);for(o+=(l-i)*f,i=l,c=0;c<e.length;c++){if((t=e[c])<i&&2147483647<++o)throw new ph(hh);if(t===i){for(var d=o,h=36;;){var p=h<=a?1:a+26<=h?26:h-a;if(d<p)break;var m=d-p,g=36-p;bh(n,vh(Eh(p+m%g))),d=gh(m/g),h+=36}bh(n,vh(Eh(d))),a=function(e,t,n){var r=0;for(e=n?gh(e/700):e>>1,e+=gh(e/t);455<e;)e=gh(e/35),r+=36;return gh(r+36*e/(e+38))}(o,f,u===s),o=0,u++}}o++,i++}return wh(n,"")},Rh=_t.codeAt,Oh=bt.set,xh=bt.getterFor("URL"),Ih=of.URLSearchParams,Th=of.getState,mf=x.URL,Mh=x.TypeError,Ah=x.encodeURIComponent,Ph=x.parseInt,Lh=Math.floor,Dh=Math.pow,Nh=y("".charAt),Fh=y(/./.exec),Uh=y([].join),jh=y(1.1.toString),zh=y([].pop),Bh=y([].push),Wh=y("".replace),Hh=y([].shift),qh=y("".split),Vh=y("".slice),Gh=y("".toLowerCase),Jh=y([].unshift),$h=/[a-z]/i,Zh=/[\d+\-.a-z]/i,Kh=/\d/,Yh=/^0x/i,Xh=/^[0-7]+$/,Qh=/^\d+$/,ep=/^[\da-f]+$/i,tp=/[\0\t\n\r #%/:<>?@[\\\]^|]/,np=/[\0\t\n\r #/:<>?@[\\\]^|]/,rp=/^[\u0000-\u0020]+/,ip=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,op=/[\t\n\r]/g,ap=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)Jh(t,e%256),e=Lh(e/256);return Uh(t,".")}if("object"!=S(e))return e;for(t="",r=function(e){for(var t=null,n=1,r=null,i=0,o=0;o<8;o++)0!==e[o]?(n<i&&(t=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return n<i?r:t}(e),n=0;n<8;n++)i&&0===e[n]||(i=i&&!1,r===n?(t+=n?":":"::",i=!0):(t+=jh(e[n],16),n<7&&(t+=":")));return"["+t+"]"},sp={},up=n({},sp,{" ":1,'"':1,"#":1,"<":1,">":1}),lp=n({},up,{"'":1}),cp=n({},sp,{" ":1,'"':1,"<":1,">":1,"`":1}),fp=n({},cp,{"#":1,"?":1,"{":1,"}":1,"^":1}),dp=n({},fp,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),hp=function(e,t){var n=Rh(e,0);return 32<=n&&n<127&&!T(t,e)?e:"'"===e&&T(t,e)?"%27":Ah(e)},pp={ftp:21,file:null,http:80,https:443,ws:80,wss:443},mp=function(e,t){return 2===e.length&&Fh($h,Nh(e,0))&&(":"===(e=Nh(e,1))||!t&&"|"===e)},gp=function(e){return 1<e.length&&mp(Vh(e,0,2))&&(2===e.length||"/"===(e=Nh(e,2))||"\\"===e||"?"===e||"#"===e)},vp={},yp={},wp={},bp={},kp={},Sp={},_p={},Ep={},Cp={},Rp={},Op={},xp={},Ip={},Tp={},Mp={},Ap={},Pp={},Lp={},Dp={},Np={},Fp={},Up=function(e,t,n){var r,i,e=C(e);if(t){if(i=this.parse(e))throw new Mh(i);this.searchParams=null}else{if(n!==undefined&&(r=new Up(n,!0)),i=this.parse(e,null,r))throw new Mh(i);(t=Th(new Ih)).bindURL(this),this.searchParams=t}},jp=(Up.prototype={type:"URL",parse:function(e,t,n){var r,i,o,a,s=this,u=t||vp,l=0,c="",f=!1,d=!1,h=!1;for(e=C(e),t||(s.scheme="",s.username="",s.password="",s.host=null,s.port=null,s.path=[],s.query=null,s.fragment=null,s.cannotBeABaseURL=!1,e=Wh(e,rp,""),e=Wh(e,ip,"$1")),e=Wh(e,op,""),r=au(e);l<=r.length;){switch(i=r[l],u){case vp:if(!i||!Fh($h,i)){if(t)return"Invalid scheme";u=wp;continue}c+=Gh(i),u=yp;break;case yp:if(i&&Fh(Zh,i))c+=Gh(i);else{if(":"!==i){if(t)return"Invalid scheme";c="",u=wp,l=0;continue}if(t&&(s.isSpecial()!==T(pp,c)||"file"===c&&(s.includesCredentials()||null!==s.port)||"file"===s.scheme&&""===s.host))return;if(s.scheme=c,t)return void(s.isSpecial()&&pp[s.scheme]===s.port&&(s.port=null));c="","file"===s.scheme?u=Tp:s.isSpecial()&&n&&n.scheme===s.scheme?u=bp:s.isSpecial()?u=Ep:"/"===r[l+1]?(u=kp,l++):(s.cannotBeABaseURL=!0,Bh(s.path,""),u=Dp)}break;case wp:if(!n||n.cannotBeABaseURL&&"#"!==i)return"Invalid scheme";if(n.cannotBeABaseURL&&"#"===i){s.scheme=n.scheme,s.path=Pn(n.path),s.query=n.query,s.fragment="",s.cannotBeABaseURL=!0,u=Fp;break}u="file"===n.scheme?Tp:Sp;continue;case bp:if("/"!==i||"/"!==r[l+1]){u=Sp;continue}u=Cp,l++;break;case kp:if("/"===i){u=Rp;break}u=Lp;continue;case Sp:if(s.scheme=n.scheme,i===lh)s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=Pn(n.path),s.query=n.query;else if("/"===i||"\\"===i&&s.isSpecial())u=_p;else if("?"===i)s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=Pn(n.path),s.query="",u=Np;else{if("#"!==i){s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=Pn(n.path),s.path.length&&s.path.length--,u=Lp;continue}s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=Pn(n.path),s.query=n.query,s.fragment="",u=Fp}break;case _p:if(!s.isSpecial()||"/"!==i&&"\\"!==i){if("/"!==i){s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,u=Lp;continue}u=Rp}else u=Cp;break;case Ep:if(u=Cp,"/"!==i||"/"!==r[l+1])continue;l++;break;case Cp:if("/"===i||"\\"===i)break;u=Rp;continue;case Rp:if("@"===i){f&&(c="%40"+c);for(var f=!0,p=au(c),m=0;m<p.length;m++){var g=p[m];":"!==g||h?(g=hp(g,dp),h?s.password+=g:s.username+=g):h=!0}c=""}else if(i===lh||"/"===i||"?"===i||"#"===i||"\\"===i&&s.isSpecial()){if(f&&""===c)return"Invalid authority";l-=au(c).length+1,c="",u=Op}else c+=i;break;case Op:case xp:if(t&&"file"===s.scheme){u=Ap;continue}if(":"!==i||d){if(i===lh||"/"===i||"?"===i||"#"===i||"\\"===i&&s.isSpecial()){if(s.isSpecial()&&""===c)return"Invalid host";if(t&&""===c&&(s.includesCredentials()||null!==s.port))return;if(o=s.parseHost(c))return o;if(c="",u=Pp,t)return;continue}"["===i?d=!0:"]"===i&&(d=!1),c+=i}else{if(""===c)return"Invalid host";if(t===xp)return;if(o=s.parseHost(c))return o;c="",u=Ip}break;case Ip:if(!Fh(Kh,i)){if(i===lh||"/"===i||"?"===i||"#"===i||"\\"===i&&s.isSpecial()||t){if(""!==c){var v=Ph(c,10);if(65535<v)return"Invalid port";s.port=s.isSpecial()&&v===pp[s.scheme]?null:v,c=""}if(t)return;u=Pp;continue}return"Invalid port"}c+=i;break;case Tp:if(s.scheme="file",s.host="","/"===i||"\\"===i)u=Mp;else{if(!n||"file"!==n.scheme){u=Lp;continue}switch(i){case lh:s.host=n.host,s.path=Pn(n.path),s.query=n.query;break;case"?":s.host=n.host,s.path=Pn(n.path),s.query="",u=Np;break;case"#":s.host=n.host,s.path=Pn(n.path),s.query=n.query,s.fragment="",u=Fp;break;default:s.host=n.host,gp(Uh(Pn(r,l),""))||(s.path=Pn(n.path),s.shortenPath()),u=Lp;continue}}break;case Mp:if("/"===i||"\\"===i){u=Ap;break}n&&"file"===n.scheme&&(s.host=n.host,!gp(Uh(Pn(r,l),"")))&&mp(n.path[0],!0)&&Bh(s.path,n.path[0]),u=Lp;continue;case Ap:if(i===lh||"/"===i||"\\"===i||"?"===i||"#"===i){if(!t&&mp(c))u=Lp;else{if(""===c){if(s.host="",t)return}else{if(o=s.parseHost(c))return o;if("localhost"===s.host&&(s.host=""),t)return;c=""}u=Pp}continue}c+=i;break;case Pp:if(s.isSpecial()){if(u=Lp,"/"!==i&&"\\"!==i)continue}else if(t||"?"!==i)if(t||"#"!==i){if(i!==lh&&(u=Lp,"/"!==i))continue}else s.fragment="",u=Fp;else s.query="",u=Np;break;case Lp:if(i===lh||"/"===i||"\\"===i&&s.isSpecial()||!t&&("?"===i||"#"===i)){if(".."===(v=Gh(c))||"%2e."===v||".%2e"===v||"%2e%2e"===v?(s.shortenPath(),"/"===i||"\\"===i&&s.isSpecial()||Bh(s.path,"")):"."===(a=c)||"%2e"===Gh(a)?"/"===i||"\\"===i&&s.isSpecial()||Bh(s.path,""):("file"===s.scheme&&!s.path.length&&mp(c)&&(null!==s.host&&""!==s.host&&(s.host=""),c=Nh(c,0)+":"),Bh(s.path,c)),c="","file"===s.scheme&&(i===lh||"?"===i||"#"===i))for(;1<s.path.length&&""===s.path[0];)Hh(s.path);"?"===i?(s.query="",u=Np):"#"===i&&(s.fragment="",u=Fp)}else c+=hp(i,fp);break;case Dp:"?"===i?(s.query="",u=Np):"#"===i?(s.fragment="",u=Fp):i!==lh&&(s.path[0]+=hp(i,sp));break;case Np:t||"#"!==i?i!==lh&&(s.query+=hp(i,s.isSpecial()?lp:up)):(s.fragment="",u=Fp);break;case Fp:i!==lh&&(s.fragment+=hp(i,cp))}l++}},parseHost:function(u){var e,t,n;if("["===Nh(u,0))return"]"===Nh(u,u.length-1)&&(e=function(e){var t,n,r,i,o,a,s,u=[0,0,0,0,0,0,0,0],l=0,c=null,f=0,d=function(){return Nh(e,f)};if(":"===d()){if(":"!==Nh(e,1))return;f+=2,c=++l}for(;d();){if(8===l)return;if(":"!==d()){for(t=n=0;n<4&&Fh(ep,d());)t=16*t+Ph(d(),16),f++,n++;if("."===d()){if(0===n)return;if(f-=n,6<l)return;for(r=0;d();){if(i=null,0<r){if(!("."===d()&&r<4))return;f++}if(!Fh(Kh,d()))return;for(;Fh(Kh,d());){if(o=Ph(d(),10),null===i)i=o;else{if(0===i)return;i=10*i+o}if(255<i)return;f++}u[l]=256*u[l]+i,2!=++r&&4!==r||l++}if(4!==r)return;break}if(":"===d()){if(f++,!d())return}else if(d())return;u[l++]=t}else{if(null!==c)return;f++,c=++l}}if(null!==c)for(a=l-c,l=7;0!==l&&0<a;)s=u[l],u[l--]=u[c+a-1],u[c+--a]=s;else if(8!==l)return;return u}(Vh(u,1,-1)))?void(this.host=e):"Invalid host";if(this.isSpecial()){if(u=function(){for(var e,t=[],n=Sh(kh(_h(u),dh,"."),"."),r=0;r<n.length;r++)e=n[r],bh(t,mh(fh,e)?"xn--"+Ch(e):e);return wh(t,".")}(),Fh(tp,u))return"Invalid host";if(function(){var e=qh(u,".");if(""===e[e.length-1]){if(1===e.length)return;e.length--}return Fh(Qh,e=e[e.length-1])||Fh(Yh,e)&&(""===(e=Vh(e,2))||Fh(ep,e))}()){if(null===(e=function(){var e,t,n,r,i,o,a,s=qh(u,".");if(s.length&&""===s[s.length-1]&&s.length--,4<(e=s.length))return null;for(t=[],n=0;n<e;n++){if(""===(r=s[n]))return null;if(i=10,1<r.length&&"0"===Nh(r,0)&&(i=Fh(Yh,r)?16:8,r=Vh(r,8===i?1:2)),""===r)o=0;else{if(!Fh(10===i?Qh:8===i?Xh:ep,r))return null;o=Ph(r,i)}Bh(t,o)}for(n=0;n<e;n++)if(o=t[n],n===e-1){if(o>=Dh(256,5-e))return null}else if(255<o)return null;for(a=zh(t),n=0;n<t.length;n++)a+=t[n]*Dh(256,3-n);return a}()))return"Invalid host";this.host=e}else this.host=u}else{if(Fh(np,u))return"Invalid host";for(e="",t=au(u),n=0;n<t.length;n++)e+=hp(t[n],sp);this.host=e}},cannotHaveUsernamePasswordPort:function(){return null===this.host||""===this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return T(pp,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&mp(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,r=e.password,i=e.host,o=e.port,a=e.path,s=e.query,u=e.fragment,l=t+":";return null!==i?(l+="//",e.includesCredentials()&&(l+=n+(r?":"+r:"")+"@"),l+=ap(i),null!==o&&(l+=":"+o)):"file"===t&&(l+="//"),null===i&&!e.cannotBeABaseURL&&1<a.length&&""===a[0]&&(l+="/."),l+=e.cannotBeABaseURL?a[0]:a.length?"/"+Uh(a,"/"):"",null!==s&&(l+="?"+s),null!==u&&(l+="#"+u),l},setHref:function(e){e=this.parse(e);if(e)throw new Mh(e);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new jp(this.path[0]).origin}catch(X){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+ap(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(C(e)+":",vp)},getUsername:function(){return this.username},setUsername:function(e){var t=au(C(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=hp(t[n],dp)}},getPassword:function(){return this.password},setPassword:function(e){var t=au(C(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=hp(t[n],dp)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?ap(e):ap(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Op)},getHostname:function(){var e=this.host;return null===e?"":ap(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,xp)},getPort:function(){var e=this.port;return null===e?"":C(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=C(e))?this.port=null:this.parse(e,Ip))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+Uh(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Pp))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=C(e))?this.query=null:("?"===Nh(e,0)&&(e=Vh(e,1)),this.query="",this.parse(e,Np)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=C(e))?("#"===Nh(e,0)&&(e=Vh(e,1)),this.fragment="",this.parse(e,Fp)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}},function(e){var t=er(this,zp),n=1<$l(arguments.length,1)?arguments[1]:undefined,e=Oh(t,new Up(e,!1,n));d||(t.href=e.serialize(),t.origin=e.getOrigin(),t.protocol=e.getProtocol(),t.username=e.getUsername(),t.password=e.getPassword(),t.host=e.getHost(),t.hostname=e.getHostname(),t.port=e.getPort(),t.pathname=e.getPathname(),t.search=e.getSearch(),t.searchParams=e.getSearchParams(),t.hash=e.getHash())}),zp=jp.prototype,o=function(e,t){return{get:function(){return xh(this)[e]()},set:t&&function(e){return xh(this)[t](e)},configurable:!0,enumerable:!0}};d&&(St(zp,"href",o("serialize","setHref")),St(zp,"origin",o("getOrigin")),St(zp,"protocol",o("getProtocol","setProtocol")),St(zp,"username",o("getUsername","setUsername")),St(zp,"password",o("getPassword","setPassword")),St(zp,"host",o("getHost","setHost")),St(zp,"hostname",o("getHostname","setHostname")),St(zp,"port",o("getPort","setPort")),St(zp,"pathname",o("getPathname","setPathname")),St(zp,"search",o("getSearch","setSearch")),St(zp,"searchParams",o("getSearchParams")),St(zp,"hash",o("getHash","setHash"))),Ot(zp,"toJSON",function(){return xh(this).serialize()},{enumerable:!0}),Ot(zp,"toString",function(){return xh(this).serialize()},{enumerable:!0}),mf&&(a=mf.createObjectURL,xf=mf.revokeObjectURL,a&&Ot(jp,"createObjectURL",zr(a,mf)),xf)&&Ot(jp,"revokeObjectURL",zr(xf,mf)),hr(jp,"URL"),R({global:!0,constructor:!0,forced:!0,sham:!d},{URL:jp});var Bp,Wp,Hp,qp,Vp,Gp,Jp,$p=function(){return{host:new URL(location.href).host,pathname:location.pathname}},Zp=!1,Kp=[],Yp=/^\/[^/]/,Xp=!1,Qp=[],em=function(r,e,i){return null!=e&&e.length&&"object"===S(r)?e.reduce(function(e,t){var n=window.Headers&&r instanceof Headers?r.get(t):r[t];return n?e+(""===e?"":"\n\n")+i+" header "+t+": "+n:e},""):""},tm={maxRetryCount:10,retryInterval:function(e){return 1e3*(2<<e)},whenRetryEndStillFail:"discard"},nm={API_RESPONSE:"api_response",AJAX_ERROR:"ajax_error",RET_ERROR:"ret_error",SLOW_NET_REQUEST:"slow_net_request"},rm=function(e,t){return e&&-1===["null","undefined"].indexOf(e)?t+": "+e:""},im=function(e,t,n){void 0===t&&(t="");var r,i,e="function"==typeof(null==(i=e.api)?void 0:i.resourceTypeHandler)?null==(i=e.api)?void 0:i.resourceTypeHandler(n):"";return-1===Ku.indexOf(e)&&(r=void 0===t?"":t,i=(void 0===n?"":n).split("?")[0],e=kl.test(i)||bl.some(function(e){return-1!==String(r).indexOf(e)})?"static":"fetch"),e},om=function(e,t){return e?nm.AJAX_ERROR:t?nm.RET_ERROR:nm.API_RESPONSE},am=function(e,t,n){if(!e)return!1;t=null==t?void 0:t.api;if(null!=t&&t.isSlowApi&&"function"==typeof(null==t?void 0:t.isSlowApi))try{return t.isSlowApi(n||{duration:e})}catch(X){return console.warn("[TDEM] isSlowApi function happen error:",X,", this data will not be reported."),!1}n=null!=(n=null==t?void 0:t.slowThreshold)?n:null==t?void 0:t.apiSlowThreshold;return n&&"number"==typeof n?n<e:1e3<e},sm=function(e,t){var e=e.api;if(null!=e&&e.usePerformanceTiming&&"string"==typeof t.url){e=null==(e=performance.getEntriesByName(t.url))?void 0:e.pop();if(e)return{url:t.url,isHttps:wl(t.url),method:t.method,type:t.type,status:t.status,duration:Number(e.duration.toFixed(2)),nextHopProtocol:e.nextHopProtocol||"",domainLookup:gl(e.domainLookupEnd-e.domainLookupStart),connectTime:gl(e.connectEnd-e.connectStart)}}return{url:t.url,isHttps:wl(t.url),method:t.method,type:t.type,status:t.status,duration:Number(t.duration.toFixed(2)),nextHopProtocol:"",domainLookup:ll.number,connectTime:ll.number}},yf=(new r({name:"api"}),new r({name:"api",override:!1,onNewTdem:function(e){var t,n;this.override||(this.override=!0,null!=(n=e.config.api)&&n.injectTraceHeader&&(this.traceRequestHeader=new Tc(n.injectTraceHeader,null!=(t=null==n?void 0:n.injectTraceIgnoreUrls)?t:[],null==n?void 0:n.injectTraceUrls,null==n?void 0:n.traceFlag)),this.overrideFetch(e.config,e),this.overrideXhr(e.config,e))},getFromParam:function(e){var t;return(null==(t=e.getOriginFrom)?void 0:t.call(e))||window.location.href},overrideFetch:function(b,k){var S=this,e=b.api,e={name:this.name,traceRequestHeader:null!=e&&e.injectTraceHeader?this.traceRequestHeader:null,getCurrentFrom:function(){return S.getFromParam(k)},then:function(d,h,p,m,g,v,y){var e,w;Ll(p,b.hostUrl)||(e=d.headers?d.headers.get("content-type"):"","fetch"===(w=im(b,e||"",p))?d.clone().text().then(function(r){var e,i=d.status<=0||400<=d.status,t=(null==(t=b.api)?void 0:t.reqHeaders)||[],o=em(null==m?void 0:m.headers,t,"req"),t=(null==(t=b.api)?void 0:t.resHeaders)||[],a=em(d.headers,t,"res"),s=Ac(null==m?void 0:m.headers),t=_l(r,b.api,{url:p,ctx:d,payload:null==m?void 0:m.body}),u=t.code,l=t.isErr,t=null==(t=b.api)?void 0:t.apiDetail,c=t?El(null==m?void 0:m.body,null==(e=b.api)?void 0:e.reqParamHandler,{url:p}):"",f=t?El(r,null==(e=b.api)?void 0:e.resBodyHandler,{url:p,ctx:d}):"";setTimeout(function(){var e=sm(b,{url:p,duration:h,type:w,status:d.status||0,method:(null==m?void 0:m.method)||"get"}),t=[i?"FETCH_ERROR: "+r:"","fetch req url: "+p,"res status: "+(e.status||0),"res duration: "+e.duration+"ms","res startTime: "+g,o,a,"req method: "+(e.method||"GET"),"res retcode: "+u,rm(c,"req param"),rm(f,"res data")].filter(function(e){return e}).join("\n\n"),t=(e.payload=null==m?void 0:m.body,e.ret=u,e.isErr=+l,e.from=v||S.getFromParam(k),{msg:t,code:u,trace:s,errorMsg:"",from:v||S.getFromParam(k),originFrom:y,level:nm.API_RESPONSE}),n=am(null==e?void 0:e.duration,b,e);t.level=n?nm.SLOW_NET_REQUEST:om(i,l),(n||t.level!==nm.API_RESPONSE||k.isWhiteList||null!=(n=null==(n=k.config)?void 0:n.api)&&n.reportRequest)&&S.publishNormalLog(t,k),S.publishSpeed(e,k)},0)})["catch"](function(e){console.info("ignore something error when process resp "+e)}):setTimeout(function(){var e=sm(b,{url:p,duration:h,type:w,status:d.status||0,method:(null==m?void 0:m.method)||"get"});e.type="static",e.urlQuery=vl(p,!0),e.from=v||S.getFromParam(k),S.publishSpeed(e,k)},0))},"catch":function(t,n,r,i,o,a,s){var u,e,l,c,f;throw Ll(r,b.hostUrl)||(u=im(b,"",r),e=(null==(e=b.api)?void 0:e.reqHeaders)||[],l=em(null==i?void 0:i.headers,e,"req"),c=Ac(null==i?void 0:i.headers),f=null!=(e=b.api)&&e.apiDetail?El(null==i?void 0:i.body,null==(e=b.api)?void 0:e.reqParamHandler,{url:r}):"",setTimeout(function(){var e=sm(b,{url:r,duration:n,type:u,status:0,method:(null==i?void 0:i.method)||"get"}),e=(e.from=a||S.getFromParam(k),S.publishSpeed(e,k),"AJAX_ERROR: "+t+"\n \nreq url: "+r+"\n \nres status: 0\n \nres duration: "+e.duration+"ms\n \nreq method: "+((null==i?void 0:i.method)||"get")+"\n \nreq param: "+f+"\n \nres startTime: "+o+"\n \n"+l);S.publishNormalLog({msg:e,level:nm.AJAX_ERROR,code:-400,trace:c,errorMsg:"",from:a||S.getFromParam(k),originFrom:s},k)},0)),t}},d=(this.hackFetchOptions=e,this.hackFetchOptions),h=null==(e=b.api)?void 0:e.ignoreHackReg;if(void 0===h&&(h=/\.flv(\?|$)/i),Qp.find(function(e){return e.name===d.name}))throw new Error("name '"+d.name+"' is already in hackFetch option list");Qp.push(d),!Xp&&window.fetch&&(Xp=!0,qp=window.fetch,window.fetch=function(e,i){void 0===i&&(i={});var o="string"==typeof e?e:null==e?void 0:e.url;if(null!=(a=null==h?void 0:h.test)&&a.call(h,o))return qp(o,i);Yp.test(o)&&(o=""+location.origin+o);var t,n,r,a=(d||{}).traceRequestHeader;a&&(t=void 0===(t=(i||{}).headers)?{}:t,n=(r=$p()).host,r=(n=a.generate(o,t,{host:n,pathname:r.pathname})||{}).name,a=n.value)&&r&&(i.headers=Object.assign(t,((n={})[r]=a,n)));for(var s=new Map,u=window.location.href,l=0;l<Qp.length;l++){var c=Qp[l];try{"function"==typeof c.beforeFetch&&c.beforeFetch(o,i),"function"==typeof c.getCurrentFrom&&s.set(c.name,c.getCurrentFrom())}catch(Ne){}}var f=Date.now();return qp(e,i).then(function(e){for(var t=e.clone(),n=0;n<Qp.length;n++){var r=Qp[n];try{"function"==typeof r.then&&r.then(t,Date.now()-f,o,i,f,s.get(r.name),u)}catch(Ne){}}return e})["catch"](function(e){for(var t=0;t<Qp.length;t++){var n=Qp[t];try{"function"==typeof n["catch"]&&n["catch"](e,Date.now()-f,o,i,f,s.get(n.name),u)}catch(Ne){}}throw e})})},overrideXhr:function(b,k){var e,i,S=this,o={name:this.name,ignoreHackReg:null==(e=b.api)?void 0:e.ignoreHackReg,traceRequestHeader:null!=(e=b.api)&&e.injectTraceHeader?this.traceRequestHeader:null,getCurrentFrom:function(){return S.getFromParam(k)},send:function(d,h,p,m){var e,t,g=Date.now(),v=(((null==b?void 0:b.api)||{}).injectTraceHeader&&(t=(e=$p()).host,e=(t=S.traceRequestHeader.generate(d.tdemUrl,{},{host:t,pathname:e.pathname})||{}).name,t=t.value,e)&&t&&d.setRequestHeader(e,t),d.addEventListener("loadend",function(){var l,n,e,c,f=d.tdemUrl||"";Ll(f,b.hostUrl)||"abort"===d.failType||(l="",(d.failType||!d.status||400<=d.status)&&(l=d.failType||"failed"),n=Date.now()-g,e=d.getResponseHeader("content-type")||"",c=im(b,e,f),setTimeout(function(){var r=sm(b,{url:f,duration:n,type:c,status:d.status,method:d.tdemMethod||"get"});if(r.from=p||S.getFromParam(k),"fetch"===c){var e=(null==(e=b.api)?void 0:e.reqHeaders)||[],i=em(d.tdemXhrReqHeader,e,"req"),e=(null==(e=b.api)?void 0:e.resHeaders)||[],t=d.getAllResponseHeaders().split("\r\n").reduce(function(e,t){t=t.split(": ");return t[0]&&t[1]&&(e[t[0]]=t[1]),e},{}),o=em(t,e,"res"),a=Ac(d.tdemXhrReqHeader),e=null==(t=b.api)?void 0:t.apiDetail,s=e?El(h,null==(t=b.api)?void 0:t.reqParamHandler,{url:f}):"",u=e?El(d.response,null==(t=b.api)?void 0:t.resBodyHandler,{url:f}):"";try{!function(e,t,n,r){var i,o,a;try{if("function"==typeof(null==t?void 0:t.retCodeHandlerAsync))return t.retCodeHandlerAsync(e,null==n?void 0:n.url,null==n?void 0:n.ctx,function(e){var t=e.code;null!=r&&r({code:void 0===t?Yu:t,isErr:e.isErr})});if("function"==typeof(null==t?void 0:t.retCodeHandler))return a=(o=t.retCodeHandler(e,null==n?void 0:n.url,null==n?void 0:n.ctx,null==n?void 0:n.payload)||{}).code,null!=r&&r({code:void 0===a?Yu:a,isErr:o.isErr});if(!(e="string"==typeof e?JSON.parse(e):e))return null!=r&&r({code:Yu,isErr:!1});"function"==typeof(null==(i=null==t?void 0:t.ret)?void 0:i.join)&&(Sl=[].concat(t.ret.map(function(e){return e.toLowerCase()})));var s=Object.getOwnPropertyNames(e).filter(function(e){return-1!==Sl.indexOf(e.toLowerCase())});if(s.length)return"未知"!==(a=e[s[0]])&&""!==a||(a=Yu),null!=r&&r({code:""+a,isErr:0!==a&&"0"!==a&&a!==Yu});null!=r&&r({code:Yu,isErr:!1})}catch(l){null!=r&&r({code:Yu,isErr:!1})}}(d.response,b.api,{url:f,ctx:d,payload:h},function(e){var t=e.code,e=e.isErr,n=[l?"AJAX_ERROR: request "+l:"","fetch req url: "+f,"res status: "+(r.status||0),"res duration: "+r.duration+"ms","res startTime: "+g,i,o,"req method: "+(r.method||"GET"),"res retcode: "+t,rm(s,"req param"),rm(u,"res data")].filter(function(e){return e}).join("\n\n");r.ret=t,r.isErr=+e,r.payload=h,am(null==r?void 0:r.duration,b,r)?S.publishNormalLog({msg:n,level:nm.SLOW_NET_REQUEST,code:t,trace:a,errorMsg:"",from:p||S.getFromParam(k),originFrom:m},k):S.publishNormalLog({msg:n,level:om(!!l,e),code:t,trace:a,errorMsg:"",from:p||S.getFromParam(k),originFrom:m},k),S.publishSpeed(r,k)})}catch(R){r.ret=Yu,S.publishSpeed(r,k)}}else r.type="static",r.urlQuery=vl(f,!0),S.publishSpeed(r,k);d.removeEventListener("abort",v),d.removeEventListener("error",y),d.removeEventListener("timeout",w)},0))}),function(){d.failType="abort"}),y=function(){d.failType="error"},w=function(){d.failType="timeout"};d.addEventListener("abort",v),d.addEventListener("error",y),d.addEventListener("timeout",w)}};this.hackXHROptions=o,i=this.hackXHROptions,Kp.find(function(e){return e.name===i.name})||(Kp.push(i),!Zp&&window.XMLHttpRequest&&(Bp=window.XMLHttpRequest.prototype.send,Wp=window.XMLHttpRequest.prototype.open,Hp=window.XMLHttpRequest.prototype.setRequestHeader,Zp=!0,window.XMLHttpRequest.prototype.open=function(){this.tdemMethod=arguments[0];var e,t=arguments[1];if(Yp.test(t)&&(t=""+location.origin+t),this.tdemUrl=t,null==(e=null==(t=i.ignoreHackReg)?void 0:t.test)||!e.call(t,this.tdemUrl))if(this.tdemXhrStartTime=Date.now(),this.sendByTdem)l.isIE()||(this.timeout=5e3);else for(var n=0;n<Kp.length;n++){var r=Kp[n];try{"function"==typeof r.open&&r.open(this)}catch(o){}}return Wp.apply(this,arguments)},window.XMLHttpRequest.prototype.setRequestHeader=function(){var e,t,n;return null!=(n=null==(t=i.ignoreHackReg)?void 0:t.test)&&n.call(t,this.tdemUrl)?Hp.apply(this,arguments):(t=arguments[0],n=arguments[1],this.tdemXhrReqHeader=null!=(e=this.tdemXhrReqHeader)?e:{},null!=i&&i.traceRequestHeader&&-1<["traceparent","b3","sw8","sentry-trace"].indexOf(t)&&(this.tdemXhrReqHeader[t]||(arguments[1]=n),this.tdemXhrReqHeader[t])?void 0:(this.tdemXhrReqHeader[t]=arguments[1],Hp.apply(this,arguments)))},window.XMLHttpRequest.prototype.send=function(){var e,t;if(!(null!=(t=null==(e=i.ignoreHackReg)?void 0:e.test)&&t.call(e,this.tdemUrl)||this.sendByTdem))for(var n=0;n<Kp.length;n++){var r=Kp[n];try{"function"==typeof r.send&&r.send(this,arguments[0],"function"==typeof r.getCurrentFrom?r.getCurrentFrom():undefined,window.location.href)}catch(S){}}return Bp.apply(this,arguments)}))},publishSpeed:function(e){},publishNormalLog:function(e,t){var n,r,i,o,a,s,u;[nm.API_RESPONSE,nm.AJAX_ERROR,nm.RET_ERROR,nm.SLOW_NET_REQUEST].includes(e.level)&&(n=(n=null==(n=e.msg)?void 0:n.match(/(?:fetch req url|req url):\s*(.+?)(?:\n|$)/))?n[1].trim():"",r=(r=null==(r=e.msg)?void 0:r.match(/req method:\s*(.+?)(?:\n|$)/i))?r[1].trim().toUpperCase():"GET",i=(i=null==(i=e.msg)?void 0:i.match(/res status:\s*(\d+)/))?parseInt(i[1],10):0,o=(o=null==(o=e.msg)?void 0:o.match(/res duration:\s*([\d.]+)ms/))?parseFloat(o[1]):0,u=(u=null==(u=e.msg)?void 0:u.match(/=+\s*res data\s*=+\s*\n([\s\S]*?)(?:\n=+|$)/))?u[1].trim().slice(0,1e3):undefined,a={},e.trace&&(a.trace_id=e.trace),[nm.AJAX_ERROR,nm.RET_ERROR].includes(e.level)||400<=i||0===i?(s={event_id:Ul(),event_type:p.API_ERROR,event_category:Nl.ERROR,timestamp:Date.now(),page_url:e.from||(null==(s=t.getOriginFrom)?void 0:s.call(t))||window.location.href,data:{url:n,measurements:{duration:o},response_body:u,replay_id:ef(t),tags:0<Object.keys(a).length?a:undefined,event_properties:{http_method:r,http_status:String(i)}}},null!=(u=t.reportTDEMEvent)&&u.call(t,s)):(u={event_id:Ul(),event_type:p.API_CALL,event_category:Nl.NETWORK,timestamp:Date.now(),page_url:e.from||(null==(s=t.getOriginFrom)?void 0:s.call(t))||window.location.href,data:{url:n,measurements:{duration:o},business_code:String(e.code||""),replay_id:ef(t),tags:0<Object.keys(a).length?a:undefined,event_properties:{http_method:r,http_status:String(i)}}},null!=(s=t.reportTDEMEvent)&&s.call(t,u)))},destroy:function(){var t,n,e;this.option.publishSpeed=function(){},this.option.publishNormalLog=function(){},this.option.hackXHROptions&&(n=this.option.hackXHROptions,-1!==(e=Kp.findIndex(function(e){return e.name===n.name})))&&Kp.splice(e,1),this.option.hackFetchOptions&&(t=this.option.hackFetchOptions,-1!==(e=Qp.findIndex(function(e){return e.name===t.name})))&&Qp.splice(e,1),this.option.override=!1}})),um={},gf=new r({name:"bridge",override:!1,onNewTdem:function(e){this.override||(this.override=!0,this.overrideBridge(e))},getFromParam:function(e){var t;return(null==(t=e.getOriginFrom)?void 0:t.call(e))||window.location.href},publishSpeed:function(t,n){this.$walk(function(e){e===n&&e.speedLogPipeline(t)})},overrideBridge:function(l){var c=this,f=l.config,e="object"===S(f.bridge)?f.bridge:undefined,t=null==e?void 0:e.target,e=null==e?void 0:e.methods;t&&null!=e&&e.length&&e.forEach(function(e){var u=t[e];um[e]=u,t[e]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e[0],i=e[1],n=e[2],o=e[3],a=Date.now(),s=c.getFromParam(l);u(r,i,n,function(e){var t=_l(e,f.api),n=t.code,t=t.isErr,n={url:r+"-"+i,name:r+"-"+i,duration:Date.now()-a,type:"bridge",ret:n,isErr:+t,from:s};c.publishSpeed(n,l),o(e)})}})},unHackBridge:function(e){var e="object"===S(e.config.bridge)?e.config.bridge:undefined,t=null==e?void 0:e.target;um=(t&&Object.keys(um).forEach(function(e){um[e]&&(t[e]=um[e])}),{})},destroy:function(e){this.option.publishSpeed=function(){},this.option.unHackBridge(e),this.option.override=!1}}),_t=((yt=Vp=Vp||{})[yt.unknown=100]="unknown",yt[yt.wifi=1]="wifi",yt[yt.net2g=2]="net2g",yt[yt.net3g=3]="net3g",yt[yt.net4g=4]="net4g",yt[yt.net5g=5]="net5g",yt[yt.net6g=6]="net6g",(t=Gp=Gp||{})[t.android=1]="android",t[t.ios=2]="ios",t[t.windows=3]="windows",t[t.macos=4]="macos",t[t.linux=5]="linux",t[t.other=100]="other",(af=Jp=Jp||{})[af.unknown=100]="unknown",af[af.normal=0]="normal",af[af.weak=1]="weak",af[af.disconnected=2]="disconnected",new r({name:"device",onNewTdem:function(e){e.extendBean("platform",this.getPlatform()),e.extendBean("netType",Vp.unknown),this.getDpi(e),this.refreshNetworkTypeToBean(e),this.refreshNetworkStatusToBean(e)},getDpi:function(e){e.extendBean("vp",Math.round(window.innerWidth)+" * "+Math.round(window.innerHeight)),window.screen&&e.extendBean("sr",Math.round(window.screen.width)+" * "+Math.round(window.screen.height))},getPlatform:function(){var t={android:/\bAndroid\s*([^;]+)/,ios:/\b(iPad|iPhone|iPod)\b.*? OS ([\d_]+)/,windows:/\b(Windows NT)/,macos:/\b(Mac OS)/,linux:/\b(Linux)/i},e=Object.keys(t).find(function(e){return t[e].test(navigator.userAgent)});return e?Gp[e]:Gp.other},refreshNetworkTypeToBean:function(t){var n=this,e=t.config;e&&("function"==typeof e.getNetworkType?e.getNetworkType:lm)(function(e){Vp[e]||(e=Vp.unknown),t.extendBean("netType",e),n.NetworkRefreshTimer=setTimeout(function(){n.refreshNetworkTypeToBean(t),clearTimeout(n.NetworkRefreshTimer)},1e4)})},refreshNetworkStatusToBean:function(t){var e,n=this,r=t.config;r&&null!=(e="function"==typeof r.getNetworkStatus?r.getNetworkStatus:e)&&e(function(e){Jp[e]===undefined&&(e=Jp.unknown),t.extendBean("netStatus",e),n.NetworkStatusRefreshTimer=setTimeout(function(){n.refreshNetworkStatusToBean(t),clearTimeout(n.NetworkStatusRefreshTimer)},1e4)})}})),lm=function(e){var t="",n=navigator.userAgent.match(/NetType\/(\w+)/);n?t=n[1]:navigator.connection&&(t=navigator.connection.effectiveType||navigator.connection.type),e((n=t=t||Yu,0<=(n=String(n).toLowerCase()).indexOf("4g")?Vp.net4g:0<=n.indexOf("wifi")?Vp.wifi:0<=n.indexOf("5g")?Vp.net5g:0<=n.indexOf("6g")?Vp.net6g:0<=n.indexOf("3g")?Vp.net3g:0<=n.indexOf("2g")?Vp.net2g:Vp.unknown))},cm=window.WebSocket,fm=[],dm={construct:function(e,t){var r=new e(t[0],t[1]);return r.originSend=r.send,r.addEventListener("error",function(e){var e=(null==e?void 0:e.currentTarget)||{},t=e.url,n=e.readyState;null!=fm&&fm.forEach(function(e){e=e.onErr;null!=e&&e({msg:"无法获知具体错误信息,需在浏览器控制台查看!",readyState:n,connectUrl:t})})}),Object.defineProperty(r,"send",{get:function(){return function(e){null!=(t=r.originSend)&&t.call(r,e);var t,e=r.readyState;if(e!==WebSocket.OPEN){var n={readyState:e,connectUrl:r.url};switch(e){case WebSocket.CLOSED:fm.forEach(function(e){e=e.sendErr;null!=e&&e(h({msg:"消息发送失败,连接已关闭!"},n))});break;case WebSocket.CONNECTING:fm.forEach(function(e){(0,e.sendErr)(h({msg:"消息发送失败,正在连接中!"},n))});break;case WebSocket.CLOSING:fm.forEach(function(e){(0,e.sendErr)(h({msg:"消息发送失败,连接正在关闭!"},n))})}}}}}),r}},hm=new r({name:"onError"}),of=hm=new r({name:"onError",onNewTdem:function(e){this.startListen(e)},getFromParam:function(e){var t;return(null==(t=e.getOriginFrom)?void 0:t.call(e))||window.location.href},startListen:function(s){var e,t,n,u=this,l=window.onerror,r=(window.onerror=function(e,t,n,r,i){var o,a=Rl(e);Xc(a)||(a=[{type:(null==i?void 0:i.name)||"Error",value:String(e),mechanism_type:"onerror",mechanism_handled:0}],o=i?jl(i):[{abs_path:t||"",colno:r||0,filename:(null==t?void 0:t.split("/").pop())||"","function":"(anonymous)",lineno:n||0,in_app:1,stack_level:0}],a={event_id:Ul(),event_type:p.JS_ERROR,event_category:Nl.ERROR,timestamp:Date.now(),page_url:u.getFromParam(s),data:{exception_stacks:a,exception_frames:o,replay_id:ef(s),tags:{environment:s.config.env||"production",version:String(s.config.version||"")}}},null!=(o=s.reportTDEMEvent)&&o.call(s,a)),null!=l&&l.call(window,e,t,n,r,i)},function(e){var t,n=e&&Rl(e.reason);n&&(t=[{type:(null==(t=e.reason)?void 0:t.name)||"PromiseRejection",value:(null==(t=e.reason)?void 0:t.message)||String(n),mechanism_type:"unhandledrejection",mechanism_handled:0}],n=e.reason instanceof Error?jl(e.reason):[],e={event_id:Ul(),event_type:p.PROMISE_ERROR,event_category:Nl.ERROR,timestamp:Date.now(),page_url:u.getFromParam(s),data:{exception_stacks:t,exception_frames:n,replay_id:ef(s),tags:{environment:s.config.env||"production"}}},null!=(t=s.reportTDEMEvent))&&t.call(s,e)}),i=(window.addEventListener("unhandledrejection",r),function(e){e=(null==e?void 0:e.target)||(null==e?void 0:e.srcElement);if(e){var t=e.src||e.href||"",n=e.tagName,n=(void 0===n?"script":n).toLowerCase(),r=["audio","video"].includes(n);if(!r||null!=e&&e.error){if(!(Ll(i=t,s.config.hostUrl)||-1<window.location.href.indexOf(i))){var i="other";if(/\.js$/.test(t)||"script"===n)i="script";else if(/\.css$/.test(t)||"link"===n)i="stylesheet";else if("img"===n)i="image";else{if(!r)return;i="media"}t={event_id:Ul(),event_type:p.RESOURCE_ERROR,event_category:Nl.ERROR,timestamp:Date.now(),page_url:u.getFromParam(s),data:{url:t,resource_type:i,replay_id:ef(s),tags:h({environment:s.config.env||"production"},r&&null!=e&&e.error?{error_code:String(e.error.code),error_message:e.error.message||""}:{}),event_properties:{element_tag:n}}};null!=(i=s.reportTDEMEvent)&&i.call(s,t)}}else console.log("may be media load success because error is undefine")}}),o=(window.document.addEventListener("error",i,!0),s.lifeCycle.on("destroy",function(){0===hm.countInstance()&&(window.removeEventListener("unhandledrejection",r),window.document.removeEventListener("error",i,!0))}),s.config.websocket);(("object"===S(o)?!1!==o.enabled:o)||s.config.websocketHack)&&(o={key:s.config.id+"-"+this.name,onErr:function(e){var t;null!=(t=u.publishWsErrorLog)&&t.call(u,e,s)},sendErr:function(e){var t;null!=(t=u.publishWsErrorLog)&&t.call(u,e,s)}},this.hackWebsocketConfig=o,o=this.hackWebsocketConfig,window.Proxy)&&window.WebSocket&&(e=window.WebSocket,window&&!e.isHack&&(t=new Proxy(WebSocket,dm),e.isHack=!0,window.WebSocket=t),n=o,fm.find(function(e){return e.key===n.key})||n&&fm.push(n))},publishWsErrorLog:function(e,n){var t=e.connectUrl,r=e.msg,e=e.readyState,i={event_id:Ul(),event_type:p.JS_ERROR,event_category:Nl.ERROR,timestamp:Date.now(),page_url:this.getFromParam(n),data:{exception_stacks:[{type:"WebSocketError",value:"WEBSOCKET_ERROR: connect: "+t+" readyState: "+e+" msg: "+r,mechanism_type:"websocket",mechanism_handled:0}],exception_frames:[],replay_id:ef(n),tags:{environment:n.config.env||"production",websocket_url:t||"",websocket_ready_state:String(null!=e?e:"")}}};this.$walk(function(e){var t;e===n&&null!=(t=e.reportTDEMEvent)&&t.call(e,i)})},destroy:function(){var t,e;this.option.hackWebsocketConfig&&(t=this.option.hackWebsocketConfig,window.WebSocket=cm,-1!==(e=fm.findIndex(function(e){return e.key===t.key})))&&fm.splice(e,1)}}),n=ci.f,pm=y(n),mm=y([].push),gm=d&&g(function(){var e=Object.create(null);return e[2]=2,!pm(e,2)}),o=function(u){return function(e){for(var t,n=ze(e),r=ir(n),i=gm&&null===tr(n),o=r.length,a=0,s=[];a<o;)t=r[a++],d&&!(i?t in n:pm(n,t))||mm(s,u?[t,n[t]]:n[t]);return s}},a={entries:o(!0),values:o(!1)},vm=a.entries,ym=(R({target:"Object",stat:!0},{entries:function(e){return vm(e)}}),new r({name:"click"}),function(e){if(""!==e.id&&e.id)return'id("'+e.id+'")';if(e===document.body)return e.tagName;if(e instanceof Document)return"document";var t=0;if(e.parentNode)for(var n=e.parentNode.childNodes,r=0;r<n.length;r+=1){var i=n[r];if(i===e)return ym(e.parentNode)+"/"+e.tagName+"["+(t+1)+"]";1===i.nodeType&&i.tagName===e.tagName&&(t+=1)}return 0}),wm=function(e){return e instanceof Array?new Map(e.map(function(e){return[e,!0]})):new Map},bm=function(e,t){return"string"==typeof e?e.split(t):[]},km=function(e){if(3===e.nodeType||4===e.nodeType)return e.nodeValue||"";if(1!==e.nodeType)return"";if("string"==typeof e.textContent)return e.textContent;for(var t="",n=e.firstChild;n;n=n.nextSibling)t+=km(n);return t},xf=new r({name:"click",listeners:[],onNewTdem:function(e){this.startListen(e)},startListen:function(a){for(var e=function(o){var e,t,n,r,i;s.listeners.push((e=document,t=o,n=function(e,t){var n,r,i;t&&!function(e,t){e="object"===S((e=e).click)?e.click:undefined,n=wm((null==e?void 0:e.ignoreClasses)||[])||new Map;for(var n,e={ignoreIds:wm((null==e?void 0:e.ignoreIds)||[])||new Map,ignoreClasses:n},r=e.ignoreClasses,i=e.ignoreIds,o=!(0===i.size&&0===r.size),a=t,s=(bm(t.getAttribute("id")||""," "),bm(t.getAttribute("class")||"",""),0),u=!1;a&&o&&a.getAttribute;){if(u)return!0;if(10<=s)break;for(var l=bm(a.getAttribute("id")||""," "),c=bm(a.getAttribute("class")||"",""),f=0,d=l;f<d.length;f++){var h=d[f];if(i.has(h)){u=!0;break}}for(var p=0,m=c;p<m.length;p++){var g=m[p];if(r.has(g)){u=!0;break}}s+=1,a=a.parentNode||a.parentElement}return!1}(a.config,t)&&(i=ym(t),n=function(e){e=function(e){var t="",n=e.nodeType;if(1===n||9===n||11===n){if("string"==typeof e.textContent)return e.textContent;for(var r=e.firstChild;r;r=r.nextSibling)t+=km(e)}else if(3===n||4===n)return e.nodeValue;return t}(e);return e?e.replace(/^\s+|\s+$/g,""):""}(t),r=t.getBoundingClientRect&&t.getBoundingClientRect(),i={event_id:Ul(),event_type:p.CLICK,event_category:Nl.BEHAVIOR,timestamp:Date.now(),page_url:window.location.href,data:{target_element:String(i),target_text:n.slice(0,127),click_position:r?{x:parseInt(String(r.left+window.scrollX),10)||0,y:parseInt(String(r.top+window.scrollY),10)||0}:undefined,replay_id:ef(a),tags:{environment:a.config.env||"production",event_op:o,node_name:(null==t?void 0:t.nodeName)||""},event_properties:{target_id:t.id||"",target_class:"string"==typeof t.className?t.className.slice(0,128):""}}},null!=(n=a.reportTDEMEvent))&&n.call(a,i)},void 0===(r=!0)&&(r=!0),i=function(e){var t=document.documentElement;t&&n.call(t,e,e.target)},e.addEventListener(t,i,r),{destroy:function(){e.removeEventListener(t,i,r)}}))},s=this,t=0,n=Object.entries({click:1,longpress:2});t<n.length;t++)e(n[t][0])},destroy:function(){this.listeners.forEach(function(e){return e.destroy()}),this.listeners=[]}}),Sm=(new r({name:"console"}),["log","error","warn","info","debug","trace"]),_m={log:console.log,error:console.error,warn:console.warn,info:console.info,debug:console.debug,trace:console.trace};var Em,Cm,Rm,Om,xm,Im,Tm,Mm,Am,Pm,Lm,mf=new r({name:"console",onNewTdem:function(e){this.startListen(e)},startListen:function(e){var d,h;h="object"===S((d=e).config.console)?d.config.console:undefined,Sm.forEach(function(c){var f=_m[c];console[c]=function(){for(var e,t,n,r,i,o,a,s,u=[],l=0;l<arguments.length;l++)u[l]=arguments[l];try{f.apply(console,u),o=c,a=d.isWhiteList,("all"===(s=(null==(s=h)?void 0:s.level)||"error")||a||("error"===s?"error"===o:"warn"===s?"error"===o||"warn"===o:"info"===s?["error","warn","info"].includes(o):"log"===s?["error","warn","info","log"].includes(o):"error"===o))&&(r=u.map(function(e){if("object"===S(e)&&null!==e)try{return JSON.stringify(e)}catch(h){}return String(e)}).join(" "),i={event_id:Ul(),event_type:p.LOG,event_category:Nl.LOG,timestamp:Date.now(),page_url:(null==(e=d.getOriginFrom)?void 0:e.call(d))||("undefined"!=typeof window?null==(t=window.location)?void 0:t.href:""),data:{log_level:"error"===c?"error":"warn"===c?"warn":"info",replay_id:ef(d),tags:{console_method:c},event_properties:{message:("console."+c+": "+r).slice(0,2048)}}},null!=(n=d.reportTDEMEvent)&&n.call(d,i))}catch(N){_m.error("Console hook error:",N)}}})},destroy:function(){Object.keys(_m).forEach(function(e){console[e]=_m[e]})}}),Dm=(xm={passive:!0,capture:!0},Im=new Date,yt=function(){Om=[],Cm=-1,Em=null,Pm(addEventListener)},Tm=function(e,t){Em||(Em=t,Cm=e,Rm=new Date,Pm(removeEventListener),Mm())},Mm=function(){var t;0<=Cm&&Cm<Rm-Im&&(t={entryType:"first-input",name:Em.type,target:Em.target,cancelable:Em.cancelable,startTime:Em.timeStamp,processingStart:Em.timeStamp+Cm},Om.forEach(function(e){e(t)}),Om=[])},Am=function(e){var t,n,r,i,o,a;e.cancelable&&(t=(1e12<e.timeStamp?new Date:performance.now())-e.timeStamp,"pointerdown"==e.type?(n=t,r=e,i=function(){Tm(n,r),a()},o=function(){a()},a=function(){removeEventListener("pointerup",i,xm),removeEventListener("pointercancel",o,xm)},addEventListener("pointerup",i,xm),addEventListener("pointercancel",o,xm)):Tm(t,e))},Pm=function(t){["mousedown","keydown","touchstart","pointerdown"].forEach(function(e){return t(e,Am,xm)})},Lm="hidden"===document.visibilityState?0:1/0,addEventListener("visibilitychange",function F(e){"hidden"===document.visibilityState&&(Lm=e.timeStamp,removeEventListener("visibilitychange",F,!0))},!0),yt(),self.webVitals={firstInputPolyfill:function(e){Om.push(e),Mm()},resetFirstInputPolyfill:yt,get firstHiddenTime(){return Lm}},function(e,t){var n,r=function(t,n,r,i){var o=function(e){"visibilitychange"===t&&"hidden"!==document.visibilityState||(i?setTimeout(function(){return n(e)},i):n(e),r&&removeEventListener(t,o,!0))};addEventListener(t,o,!0)};r("visibilitychange",e,null==t?void 0:t.once,null==(n=null==t?void 0:t.delay)?void 0:n.visibilitychange),r("pagehide",e,null==t?void 0:t.once,null==(n=null==t?void 0:t.delay)?void 0:n.pagehide),r("beforeunload",e,null==t?void 0:t.once,null==(n=null==t?void 0:t.delay)?void 0:n.beforeunload)});new r({name:"webVitals"});var Nm,Fm={FCP:-1,LCP:-1,FID:-1,CLS:-1,INP:-1,TTI:-1,from:undefined},Um=(new r({name:"pagePerformance"}),function(e,t,n,r){return void 0===n&&(n=15e3),void 0===r&&(r=0),(t=void 0===t?0:t)<=e&&e<=n?e:r}),jm=new Map,t=new r({name:"pagePerformance",performanceMap:{},onNewTdem:function(t){var e;Qc()&&(jm.set(t,{isPagePerformanceReported:!1}),Nm?this.publish(Nm,t):this.startCalcPerformance(t),e=this.publishWhenObHidden.bind(this,t),Dm(e,{once:!0}),t.lifeCycle.on("destroy",function(){var e=jm.get(t);e&&(e.isPagePerformanceReported=!1)}))},publishWhenObHidden:function(e){var t,n=jm.get(e);if(null==n||!n.isPagePerformanceReported){n=0;if(null!=(t=e.firstScreenInfo)&&t.timing)n=e.firstScreenInfo.timing;else if(-1<(null==(t=null==(t=window.PerformanceObserver)?void 0:t.supportedEntryTypes)?void 0:t.indexOf("paint")))try{var r,i=performance.getEntriesByName("first-contentful-paint");i&&0<i.length&&(r=i[0])&&0<r.startTime&&(n=r.startTime)}catch(P){}(Nm=this.buildPerformanceLog(e,n,this.getPageUrl(e),window.location.href))&&this.publish(Nm,e,!0)}},buildPerformanceLog:function(e,t,n,r){var i=performance.timing;return i?(n={from:n,originFrom:r,dnsLookup:Um(i.domainLookupEnd-i.domainLookupStart),tcp:Um(i.connectEnd-i.connectStart),ssl:Um(0===i.secureConnectionStart?0:i.requestStart-i.secureConnectionStart),ttfb:Um(i.responseStart-i.requestStart),contentDownload:Um(i.responseEnd-i.responseStart),domParse:Um(i.domInteractive-i.domLoading,0,15e3,1070),resourceDownload:Um(i.loadEventStart-i.domInteractive,0,15e3,1070),firstScreenTiming:Um(Math.floor(t),0,15e3,15e3)},(r=e.config).extraPerformanceData&&"{}"!==JSON.stringify(r.extraPerformanceData)&&(t=(i=r.extraPerformanceData).engineInit,e=i.bundleLoad,n=h(h({},n),{engineInit:Um(t,0,1e4),bundleLoad:Um(e,0,1e4)})),n):undefined},publish:function(r,i){var o=this;this.$walk(function(e){var t,n;e===i&&(t=(n=performance.timing).navigationStart,n={event_id:Ul(),event_type:p.PAGE_LOAD,event_category:Nl.PERFORMANCE,timestamp:Date.now(),page_url:r.originFrom||window.location.href,data:{measurements:{lcp:Fm.lcp,fcp:Fm.fcp,fid:Fm.fid,cls:Fm.cls,ttfb:Fm.ttfb||r.ttfb,dns_time:r.dnsLookup,tcp_time:r.tcp,ssl_time:r.ssl,request_time:r.ttfb,response_time:r.contentDownload,dom_parse_time:r.domParse,dom_ready:n.domContentLoadedEventEnd-t,load_complete:n.loadEventEnd-t,first_screen_time:r.firstScreenTiming},replay_id:ef(e),device_type:o.getDeviceType(),tags:{environment:e.config.env||"production",version:String(e.config.version||"")}}},null!=(t=e.reportTDEMEvent)&&t.call(e,n),n=jm.get(e))&&(n.isPagePerformanceReported=!0)})},getPageUrl:function(e){var t=this.$getConfig(e);if(null!=t&&t.urlHandler&&"function"==typeof(null==t?void 0:t.urlHandler)){t=null==t?void 0:t.urlHandler();if(t)return encodeURIComponent(t)}return e.getCurrentPageUrl()},getDeviceType:function(){var e=navigator.userAgent;return/mobile/i.test(e)?"Mobile":/tablet|ipad/i.test(e)?"Tablet":"Desktop"},startCalcPerformance:function(t){var n=this;try{var r=this.getPageUrl(t),i=t.getOriginFrom();this.getFirstScreenTiming(t,function(e){Nm=n.buildPerformanceLog(t,e,r,i);e=jm.get(t);!Nm||null!=e&&e.isPagePerformanceReported||n.publish(Nm,t)})}catch(b){}},getFirstScreenTiming:function(e,t){null!=t&&t(0)},setFirstScreenInfo:function(e,t,n,r){var i;e.config.id&&this.performanceMap[e.config.id]||(e.config.id&&(this.performanceMap[e.config.id]=!0),("object"!==S(null==(i=e.config)?void 0:i.pagePerformance)||null!=(i=e.config.pagePerformance)&&i.firstScreenInfo)&&(e.firstScreenInfo={element:n,timing:t,markDoms:r}))},isEleInArray:function(e,t){return!(!e||e===document.documentElement)&&(-1!==t.indexOf(e)||this.isEleInArray(e.parentElement,t))},isInFirstScreen:function(e){var t;return!(!e||"function"!=typeof e.getBoundingClientRect)&&(e=e.getBoundingClientRect(),t=window.innerHeight,0<=e.left)&&e.left<window.innerWidth&&0<=e.top&&e.top<t&&0<e.width&&0<e.height},walkAndCount:function(e){var t=0;if(e&&1===e.nodeType){t+=1;var n=e.children;if(null!=n&&n.length)for(var r=0;r<n.length;r++)1===n[r].nodeType&&(n[r].hasAttribute("TDEM-IGNORE-FIRST-SCREEN-TIMING")||n[r].hasAttribute("AEGIS-IGNORE-FIRST-SCREEN-TIMING"))||(t+=this.walkAndCount(n[r]))}return t},hasAncestorOrSelfWithAttribute:function(e,t){for(var n=t.replace(/^TDEM-/,"AEGIS-"),r=e;r&&r!==document.body;){if(r.hasAttribute(t)||n!==t&&r.hasAttribute(n))return!0;r=r.parentElement}return!1}}),zm=Math.min,Bm=[].lastIndexOf,Wm=!!Bm&&1/[1].lastIndexOf(1,-0)<0,af=Te("lastIndexOf"),Hm=Wm||!af?function(e){if(Wm)return Re(Bm,this,arguments)||0;var t=ze(this),n=ce(t);if(0!==n){var r=n-1;for((r=1<arguments.length?zm(r,se(arguments[1])):r)<0&&(r=n+r);0<=r;r--)if(r in t&&t[r]===e)return r||0}return-1}:Bm,qm=(R({target:"Array",proto:!0,forced:Hm!==[].lastIndexOf},{lastIndexOf:Hm}),new r({name:"spa"}),["replaceState","pushState","popstate","hashchange"]),n=new r({name:"spa",originFireUrl:"",lastPageUrl:"",navigationStack:[],navigationIndex:-1,onNewTdem:function(n){var r=this,e=(history.pushState=this.wr("pushState")||history.pushState,history.replaceState=this.wr("replaceState")||history.replaceState,this.sendPv=this.sendPv.bind(this),location.href);this.navigationStack.length||(this.navigationStack=[e],this.navigationIndex=0),n.config.spa&&this.sendPv(n,"reload"),qm.forEach(function(e){var t=e;window.addEventListener(e,function(){return r.sendPv.call(r,n,t)})})},wr:function(n){var r=history[n],e="__"+n+"__hasWrittenByTamSpa";return"function"==typeof r&&!history[e]&&(Object.defineProperty(history,e,{value:!0,enumerable:!1}),function(){var e=r.apply(this,arguments),t=null;return"function"==typeof Event?t=new Event(n):(t=document.createEvent("HTMLEvents")).initEvent(n,!1,!0),window.dispatchEvent(t),e})},resolveNavigationType:function(e,t){var n;return"pushState"===e?(this.navigationIndex<this.navigationStack.length-1&&(this.navigationStack=this.navigationStack.slice(0,this.navigationIndex+1)),this.navigationStack.push(t),this.navigationIndex=this.navigationStack.length-1,"push"):"replaceState"===e?(this.navigationIndex<0?(this.navigationStack=[t],this.navigationIndex=0):this.navigationStack[this.navigationIndex]=t,"replace"):"hashchange"===e?"hashchange":"popstate"===e?0<=(e=this.navigationStack.lastIndexOf(t))?(n=e<this.navigationIndex?"back":"forward",this.navigationIndex=e,n):(this.navigationStack.push(t),this.navigationIndex=this.navigationStack.length-1,"forward"):"reload"},sendPv:function(s,e){var u=this;void 0===e&&(e="reload"),setTimeout(function(){s._customPageUrl=null;var r=location.pathname+location.hash+s.config.id,i=s.getOriginFrom(),o=u.lastPageUrl||undefined,a=u.resolveNavigationType(e,location.href);u.$walk(function(e){var t,n;e===s&&r&&r!==u.originFireUrl&&(n={event_id:Ul(),event_type:p.PAGE_VIEW,event_category:Nl.BEHAVIOR,timestamp:Date.now(),page_url:i,data:{page_title:document.title||"",referrer:document.referrer||undefined,is_effective_action:!0,replay_id:ef(e),tags:{environment:e.config.env||"production",version:String(e.config.version||""),is_spa:"true"},event_properties:{navigation_type:a,from_page:(o||"").slice(0,512),to_page:(i||"").slice(0,512)}}},null!=(t=e.reportTDEMEvent)&&t.call(e,n),u.originFireUrl=r,u.lastPageUrl=i)})},0)},destroy:function(){this.option.sendPv=function(){}}}),Vm="__MONITOR_SESSION_V1__";function Gm(e,t){"undefined"!=typeof document&&(e=[e+"="+encodeURIComponent(t),"path=/","SameSite=Lax"],"undefined"!=typeof location&&"https:"===location.protocol&&e.push("Secure"),document.cookie=e.join("; "))}function Jm(e,t,n){void 0===n&&(n=1);var r=Date.now();return{sessionId:e,createdAt:r,lastActivity:r,source:t,version:n}}function $m(e,t){var n,r,i;return"undefined"==typeof window?Jm(t(),e):(r="undefined"!=typeof document&&(r="_tdem_s".replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),r=document.cookie.match(new RegExp("(?:^|; )"+r+"=([^;]*)")))?decodeURIComponent(r[1]):null,n=window[Vm],r?(null==n?void 0:n.sessionId)===r?(n.lastActivity=Date.now(),n):(i=Jm(r,(null==n?void 0:n.source)||e,(null==n?void 0:n.version)||1),window[Vm]=i):null!=n&&n.sessionId?(n.lastActivity=Date.now(),Gm("_tdem_s",n.sessionId),n):(i=Jm(t(),e),Gm("_tdem_s",(window[Vm]=i).sessionId),i))}rg.prototype.request=function(o,a){var s=this;return void 0===a&&(a={}),o.sendBeacon||o.handoff?this.handoff(o,a):new Promise(function(n){var e,r,t,i=new XMLHttpRequest;i.sendByTdem=!0,i.addEventListener("readystatechange",function(){var e,t;4===i.readyState&&((e={ok:0<i.status&&i.status<400,status:i.status,statusText:i.statusText,body:i.response,request:o}).ok?(null!=(t=a.success)&&t.call(a,i.response),null!=(t=a["final"])&&t.call(a,e),n(e)):(t=h(h({},e),{error:i.response}),null!=(e=a.fail)&&e.call(a,i.response),null!=(e=a["final"])&&e.call(a,t),n(t)))}),"get"===(o.method||"GET").toLowerCase()?(i.open("get",(e=o.url,r=o.data,"string"!=typeof e?"":"object"===S(r)&&r?(t=Object.getOwnPropertyNames(r).map(function(e){var t=r[e];return e+"="+("string"==typeof t?encodeURIComponent(t):encodeURIComponent(JSON.stringify(t)))}).join("&").replace(/eval/gi,"evaI"),e+(-1===e.indexOf("?")?"?":"&")+t):e)),s.applyHeaders(i,o.headers),i.send()):(i.open("post",o.url),s.applyHeaders(i,o.headers),o.contentType&&i.setRequestHeader("Content-Type",o.contentType),t=o.body!==undefined?o.body:o.data,s.shouldSanitizeEvalKeyword(o,t)&&(t=t.replace(/eval/gi,"evaI")),i.send(t))})},rg.prototype.shouldSanitizeEvalKeyword=function(e,t){return"string"==typeof t&&!("replay"===e.kind||(e=null!=(t=null==(t=e.headers)?void 0:t["Content-Encoding"])?t:null==(t=e.headers)?void 0:t["content-encoding"])&&/gzip/i.test(e))},rg.prototype.handoff=function(e,t){void 0===t&&(t={});var n,r="undefined"!=typeof navigator?navigator:undefined;return r&&"function"==typeof r.sendBeacon?(n=e.body!==undefined?e.body:e.data,r={ok:n=r.sendBeacon(e.url,n),request:e,handoffAccepted:n,error:n?undefined:new Error("navigator.sendBeacon rejected the payload")},n?null!=(n=t.success)&&n.call(t,{accepted:!0}):null!=(n=t.fail)&&n.call(t,r.error),null!=(n=t["final"])&&n.call(t,r),Promise.resolve(r)):(n={ok:!1,request:e,error:new Error("navigator.sendBeacon is unavailable")},null!=(r=t.fail)&&r.call(t,n.error),null!=(e=t["final"])&&e.call(t,n),Promise.resolve(n))},rg.prototype.applyHeaders=function(t,n){n&&Object.keys(n).forEach(function(e){t.setRequestHeader(e,n[e])})};var Zm,Km,Ym=rg,Xm=new Map,Qm=(Bu(Km=tg,o=Zm=zc),Km.prototype=null===o?Object.create(o):(ng.prototype=o.prototype,new ng),tg.prototype._bootstrapInit=function(e){this.setConfig(e),this.config=Gu(this.config,e.hostUrl),this._prefetchConfigAndInit(e)},tg.prototype._initImmediately=function(e){this.init(e),this._afterInit(e)},tg.prototype._prefetchConfigAndInit=function(a){return Wu(this,void 0,void 0,function(){var t,n,r,i,o;return Hu(this,function(e){switch(e.label){case 0:if(t=this.config.id,n=this._buildPrefetchConfigUrl(),r=!1,i=null,!t||!n)return[3,4];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,this.transportRequest({kind:"config",url:n,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({project_key:t})})];case 2:return(o=e.sent()).ok&&0===(o="string"==typeof o.body?JSON.parse(o.body):o.body).code&&o.data&&(r=!!o.data.enabled,i=o.data),[3,4];case 3:return e.sent(),(o=this._loadPrefetchDataFromCache(t))&&(r=!!o.enabled,i=o),[3,4];case 4:if(r){i&&(this._prefetchedConfigData=i);try{this._initAfterPreparedConfig(a)}catch(L){console.warn(L),console.log("%cThe above error occurred in the process of initializing TDEM, which will affect your normal use of TDEM.\nIt is recommended that you contact us for feedback and thank you for your support.","color: red"),this.sendSDKError(L)}}else console.info("[TDEM] SDK disabled by remote config, skip initialization");return[2]}})})},tg.prototype._buildPrefetchConfigUrl=function(){var e=(this.config.url||"").replace(/\/+$/,"");return e?e+"/api/v1/config":""},tg.prototype._loadPrefetchDataFromCache=function(e){try{var t,n,r=localStorage.getItem("TDEM_SAMPLE_CONFIG");return r?!((t=JSON.parse(r)).projectKey!==e||6048e5<=Date.now()-t.timestamp)&&0<t.sampleRate?(n={enabled:t.remoteEnabled!==undefined?!!t.remoteEnabled:0<t.sampleRate,tdem_sample_rate:t.sampleRate},t.replaySampleRate!==undefined&&(n.replay_sample_rate=t.replaySampleRate),t.errorTraceback!==undefined&&(n.error_traceback=t.errorTraceback),t.errorSampleRate!==undefined&&(n.error_sample_rate=t.errorSampleRate),n):null:null}catch(Uy){return null}},tg.prototype._initAfterPreparedConfig=function(e){for(var t=0;t<zc.installedPlugins.length;t++)try{zc.installedPlugins[t].patch(this)}catch(A){this.sendSDKError(A)}this.lifeCycle.emit("onInited"),this._afterInit(e)},tg.prototype._afterInit=function(e){var t,o,n=this;this._sdkInitialized=!0,this.extendBean("sessionId",tg.sessionID),this.extendBean("from",this.getCurrentPageUrl()),"undefined"!=typeof document&&this.extendBean("referer",encodeURIComponent(document.referrer||"")),t=hl(fl("tdem-web-retry-report-requests"),[]),(o=function(){var i;t.length&&(i=t.splice(0,1)[0],dl("tdem-web-retry-report-requests",JSON.stringify(t)),n.$request(i,function(){for(var e,t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{return null==(t=Xm.get(null==(e=i.extraRetryOptions)?void 0:e.success))?void 0:t.apply(i,n)}finally{o()}},function(){for(var e,t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{return null==(t=Xm.get(null==(e=i.extraRetryOptions)?void 0:e.fail))?void 0:t.apply(i,n)}finally{o()}}))})()},tg.prototype.getBean=function(t){var n=this;return void 0===t&&(t=[]),""+Object.getOwnPropertyNames(this.bean).filter(function(e){return-1===t.indexOf(e)}).map(function(e){return"from"===e?"from="+n.getCurrentPageUrl():e+"="+n.bean[e]}).join("&")},tg.prototype.getCurrentPageUrl=function(){var e;return this._customPageUrl?encodeURIComponent(this._customPageUrl.slice(0,2048)):(e=this.config.pageUrl||location.href,e=(e="function"==typeof this.config.urlHandler?this.config.urlHandler()||location.href:e).slice(0,2048),encodeURIComponent(e))},tg.prototype.getOriginFrom=function(){if(this._customPageUrl)return this._customPageUrl.slice(0,2048);try{return("undefined"!=typeof window&&window.location?window.location.href:"").slice(0,2048)}catch(Le){return""}},tg.prototype.ready=function(){var t=this,o=function(){var e,n,r,i;t.reportRequestQueue.length&&(e=t.reportRequestQueue.splice(0,1)[0],n=e.options,r=e.success,i=e.fail,t.$request(n,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return null==r?void 0:r.apply(n,e)}finally{o()}},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return null==i?void 0:i.apply(n,e)}finally{o()}}))};o(),this.isReportReady=!0},tg.prototype.request=function(u,n,l){var c,f,d=this;this.config.reportImmediately||this.isReportReady?this.$request(u,c=function(e){var t=hl(fl("tdem-web-retry-report-requests"),[]);null!=t&&t.length&&u.extraRetryOptions&&(t.splice(t.findIndex(function(e){return e.extraRetryOptions.requestId===u.extraRetryOptions.requestId}),1),dl("tdem-web-retry-report-requests",JSON.stringify(t)),Xm["delete"](u.extraRetryOptions.success),Xm["delete"](u.extraRetryOptions.fail)),null!=n&&n(e)},f=function(e){if(!d.config.reportRetry)return null==l?void 0:l(e);var t,n="boolean"==typeof d.config.reportRetry?tm:h(h({},tm),d.config.reportRetry),r=n.maxRetryCount,i=void 0===r?tm.maxRetryCount:r,r=n.retryInterval,r=void 0===r?tm.retryInterval:r,n=n.whenRetryEndStillFail,o=void 0===n?tm.whenRetryEndStillFail:n,a=(u.extraRetryOptions||(u.extraRetryOptions={requestId:"",retriedCount:0,success:"",fail:""}),u.extraRetryOptions),s=(a.requestId=a.requestId||u.url+"-"+Date.now()+"-"+Math.random(),a.requestId),n=(a.retriedCount=a.retriedCount||0,a.success=a.success||s+"_successCallback",a.fail=a.fail||s+"_failCallback",hl(fl("tdem-web-retry-report-requests"),[]));n.find(function(e){return e.extraRetryOptions.requestId===s})?(t=n.findIndex(function(e){return e.extraRetryOptions.requestId===s}),n[t]=u):n.push(u),dl("tdem-web-retry-report-requests",JSON.stringify(n)),setTimeout(function(){var e;a.retriedCount<i?(u.extraRetryOptions.retriedCount+=1,d.$request(u,c,f)):("discard"===o&&((e=hl(fl("tdem-web-retry-report-requests"),[]).filter(function(e){return(null==(e=e.extraRetryOptions)?void 0:e.requestId)!==s})).length?dl("tdem-web-retry-report-requests",JSON.stringify(e)):function(e){try{localStorage.removeItem(e)}catch(Uy){}}("tdem-web-retry-report-requests")),Xm["delete"](a.success),Xm["delete"](a.fail))},"function"==typeof r?r(u.extraRetryOptions.retriedCount):r),null!=l&&l(e),Xm.has(a.success)||Xm.set(a.success,c),Xm.has(a.fail)||Xm.set(a.fail,f)}):this.reportRequestQueue.push({options:u,success:n,fail:l})},tg.prototype.$request=function(s,e,t){var n,r;if(s&&"string"==typeof s.url&&""!==s.url&&this.bean.id)return n=s.url,!1!==s.addBean&&(n=function(e,t){var n,r,i,o=e,a=s.beanFilter||[];for(n in t)-1===a.indexOf(n)&&((i=(r=new RegExp("([?&])"+n+"(=([^&]*))?(?=&|$)")).exec(o))?i[2]&&""!==i[3]&&"undefined"!==i[3]||(o=o.replace(r,"$1"+n+"="+t[n])):(i=-1<o.indexOf("?")?"&":"?",o+=i+n+"="+t[n]));return o}(n,h(h({},this.bean),{from:this.getCurrentPageUrl()}))),s.url=n,n=s.method||"get",r=this.config.onBeforeRequest,(s=r?r(s,this):s)?s.url?(r={success:e,fail:t},void((e={kind:s.type===ml.WHITE_LIST?"config":"events",url:s.url,method:n.toUpperCase(),contentType:s.contentType,data:s.data,body:s.data,sendBeacon:!!(null!=s&&s.sendBeacon||this.sendNow),source:s}).sendBeacon?this.transportHandoff(e,r):this.transportRequest(e,r))):console.warn("Please handle the parameters reasonably, options.url is necessary"):console.warn("Sending request blocked")},tg.prototype.publishPluginsLogs=function(){var e=tg.installedPlugins.find(function(e){return"assets"===e.name});null!=e&&e.option.collectNotReportedLog(this)},tg.prototype.uploadLogs=function(e,t){var n;void 0===e&&(e={}),void 0===t&&(t={}),null!=(n=this.lifeCycle)&&n.emit("uploadLogs",e,t)},tg.prototype.reportWebVitals=function(e){try{var t=tg.installedPlugins.find(function(e){return"webVitals"===e.name});t&&this.config.webVitals&&this.config.webVitals.manualReport&&t.option.publish(this,e)}catch(Le){}},tg.sessionID=$m("tdem",Ec).sessionId,tg),yt=(new r({name:"ie"}),new r({name:"ie",init:function(){this.overrideTdemSend()},onNewTdem:function(e){this.startListen(e)},startListen:function(o){var a=this,s=window.onerror;window.onerror=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r,i=Rl(t[0]);Xc(i)||(r={event_id:Ul(),event_type:p.JS_ERROR,event_category:Nl.ERROR,timestamp:Date.now(),page_url:("undefined"!=typeof window?null==(e=window.location)?void 0:e.href:"")||"",data:{exception_stacks:[{type:"Error",value:String(i||""),mechanism_type:"onerror",mechanism_handled:0}],exception_frames:[{abs_path:String(t[1]||""),colno:Number(t[3])||0,filename:String(t[1]||"").split("/").pop()||"","function":"(anonymous)",lineno:Number(t[2])||0,in_app:1,stack_level:0}]}},a.$walk(function(e){var t;e===o&&null!=(t=e.reportTDEMEvent)&&t.call(e,r)})),null!=s&&s.call.apply(s,qu([window],t))}},overrideTdemSend:function(){Qm.prototype.request=function(e,t,n){var r,i,o=this;e&&"string"==typeof e.url&&""!==e.url&&this.bean.id&&(r=e.url,!1!==e.addBean&&(r=r+(-1===r.indexOf("?")?"?":"&")+this.getBean(e.beanFilter)),(i=new Image).onload=function(){o.request(e,t,n),null!=t&&t(null)},i.onerror=function(){o.request(e,t,n),null!=n&&n(null)},e.data?i.src=r+"&"+e.data:i.src=r)}},destroy:function(){}})),af=(new r({name:"onClose"}),new r({name:"onClose",onNewTdem:function(n){var r,i=this;l.desktop()?(r=window.onunload,window.onunload=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];i.publishNotReportedLog(n),null!=r&&r.call.apply(r,qu([window],e))}):Dm(this.publishNotReportedLog.bind(this,n),{once:!0})},publishNotReportedLog:function(t){var n=this;this.$walk(function(e){e===t&&(e.sendNow=!0,e.publishPluginsLogs(),n.publishThrottlePipeLogs(e))})},publishThrottlePipeLogs:function(e){null!=e&&e.speedLogPipeline([]),null!=e&&e.tdemEventPipeline([])}})),eg=void 0;function tg(e,t){var n,r,i,a,o,s,u,l,c,f,d=Zm.call(this,e,t=void 0===t?{}:t)||this;d.sendNow=!1,d.isReportReady=!1,d.reportRequestQueue=[],d._sdkInitialized=!1,d.speedLogPipeline=Nc([(l=[],c=(o=d).config,o.lifeCycle.on("destroy",function(){l.length=0}),function(e,t){Array.isArray(e)?l=l.concat(e):l.push(e),s&&l.length>=s||o.sendNow&&0<l.length?(l=Yl(l),0<(l=Array.isArray(l)?l:[]).length&&t(l.splice(0,l.length)),u&&clearTimeout(u)):(u&&clearTimeout(u),u=setTimeout(function(){u=null,l=Yl(l),0<(l=Array.isArray(l)?l:[]).length&&t(l.splice(0,l.length))},c.delay))}),(a=d.config,function(e,t){var n,r,i,o="number"==typeof a.repeat?a.repeat:60;!a.speedSample||o<=0?t(e):(n=(null==a?void 0:a.id)||"0",r=Ql[n]||{},Array.isArray(e)?(i=e.filter(function(e){var t=!r[e.url]||r[e.url]<o;return t?(r[e.url]=1+~~r[e.url],Ql[n]=r):Xl[n]||ec(n),t})).length&&t(i):!r[e.url]||r[e.url]<o?(r[e.url]=1+~~r[e.url],Ql[n]=r,t(e)):Xl[n]||ec(n))}),(i=d,function(t,n){lm(function(e){i.extendBean("netType",e),n(t)})}),function(e,t){null!=(n=d.lifeCycle)&&n.emit("beforeReportSpeed",e);var n,r=d.config.beforeReportSpeed;if((e="function"==typeof r?e.filter(function(e){return!1!==r(e)}):e).length)return t(e)},function(e,t){t(e.map(function(e){return"undefined"!=typeof e.payload&&delete e.payload,e}))},function(e){return d.sendPipeline([function(e,t){t({type:ml.SPEED,url:""+d.config.speedUrl,method:"post",data:Al(e,h(h({},d.bean),{from:d.getCurrentPageUrl()})),log:e})}],ml.SPEED)(e)}]),d.getInternalTransport()||d.setInternalTransport(new Ym),e.asyncPlugin=!0;try{"undefined"!=typeof document&&(f=String(e.userId||e.uin||(null!=(n=document.cookie.match(/\buin=\D+(\d*)/))?n:[])[1]||(null!=(r=document.cookie.match(/\bilive_uin=\D*(\d+)/))?r:[])[1]||""),e.userId=f,e.uin=e.uin||f),d._bootstrapInit(e)}catch(Me){console.warn(Me),console.log("%cThe above error occurred in the process of initializing TDEM, which will affect your normal use of TDEM.\nIt is recommended that you contact us for feedback and thank you for your support.","color: red"),d.sendSDKError(Me)}return d}function ng(){this.constructor=Km}function rg(){}R({target:"Math",stat:!0},{log1p:eg});Math.log;var o=Math.acosh,ig=Math.log,og=Math.sqrt,ag=Math.LN2,o=!o||710!==Math.floor(o(Number.MAX_VALUE))||o(Infinity)!==Infinity,o=(R({target:"Math",stat:!0,forced:o},{acosh:function(e){e=+e;return e<1?NaN:94906265.62425156<e?ig(e)+ag:eg(e-1+og(e-1)*og(1+e))}}),Math.asinh),sg=Math.log,ug=Math.sqrt,lg=Math.LN2,o=!(o&&0<1/o(0)),o=(R({target:"Math",stat:!0,forced:o},{asinh:function kR(e){e=+e;return isFinite(e)&&0!=e?e<0?-kR(-e):94906265.62425156<e?sg(e)+lg:sg(e+ug(e*e+1)):e}}),Math.atanh),o=!(o&&1/o(-0)<0),cg=(R({target:"Math",stat:!0,forced:o},{atanh:function(e){e=+e;return 0==e?e:eg(2*e/(1-e))/2}}),void 0),o=(R({target:"Math",stat:!0,forced:cg!==Math.expm1},{expm1:cg}),Math.expm1),o=(!o||22025.465794806718<o(10)||o(10)<22025.465794806718||o(-2e-17),Math.cosh),fg=Math.abs,dg=Math.E,o=!o||o(710)===Infinity,hg=(R({target:"Math",stat:!0,forced:o},{cosh:function(e){e=cg(fg(e)-1)+1;return(e+1/(e*dg*dg))*(dg/2)}}),Math.abs),pg=Math.exp,mg=Math.E,o=g(function(){return-2e-17!==Math.sinh(-2e-17)}),gg=(R({target:"Math",stat:!0,forced:o},{sinh:function(e){e=+e;return hg(e)<1?(cg(e)-cg(-e))/2:(pg(e-1)-pg(-e-1))*(mg/2)}}),Math.exp),vg=(R({target:"Math",stat:!0},{tanh:function(e){var e=+e,t=cg(e),n=cg(-e);return t===Infinity?1:n===Infinity?-1:(t-n)/(gg(e)+gg(-e))}}),a.values);R({target:"Object",stat:!0},{values:function(e){return vg(e)}});var yg,wg,bg,kg=bt.enforce,Sg=bt.get,o=x.Int8Array,_g=o&&o.prototype,a=x.Uint8ClampedArray,a=a&&a.prototype,Eg=o&&tr(o),Cg=_g&&tr(_g),o=Object.prototype,Rg=x.TypeError,Og=Ze("toStringTag"),xg=ht("TYPED_ARRAY_TAG"),Ig=i,i=!1,Tg={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},Mg={BigInt64Array:8,BigUint64Array:8},Ag=function(e){var t,e=tr(e);if(O(e))return(t=Sg(e))&&T(t,"TypedArrayConstructor")?t.TypedArrayConstructor:Ag(e)},Pg=function(e){return!!O(e)&&(e=Qe(e),T(Tg,e)||T(Mg,e))};for(yg in Tg)(bg=(wg=x[yg])&&wg.prototype)?kg(bg).TypedArrayConstructor=wg:Ig=!1;for(yg in Mg)(bg=(wg=x[yg])&&wg.prototype)&&(kg(bg).TypedArrayConstructor=wg);if((!Ig||!_(Eg)||Eg===Function.prototype)&&(Eg=function(){throw new Rg("Incorrect invocation")},Ig))for(yg in Tg)x[yg]&&kr(x[yg],Eg);if((!Ig||!Cg||Cg===o)&&(Cg=Eg.prototype,Ig))for(yg in Tg)x[yg]&&kr(x[yg].prototype,Cg);if(Ig&&tr(a)!==Cg&&kr(a,Cg),d&&!T(Cg,Og))for(yg in St(Cg,Og,{configurable:i=!0,get:function(){return O(this)?this[xg]:undefined}}),Tg)x[yg]&&ut(x[yg].prototype,xg,yg);var f={NATIVE_ARRAY_BUFFER_VIEWS:Ig,TYPED_ARRAY_TAG:i&&xg,aTypedArray:function(e){if(Pg(e))return e;throw new Rg("Target is not a typed array")},aTypedArrayConstructor:function(e){if(!_(e)||kr&&!ke(Eg,e))throw new Rg(_e(e)+" is not a typed array constructor");return e},exportTypedArrayMethod:function(e,t,n,r){if(d){if(n)for(var i in Tg){i=x[i];if(i&&T(i.prototype,e))try{delete i.prototype[e]}catch(X){try{i.prototype[e]=t}catch(P){}}}Cg[e]&&!n||Ot(Cg,e,!n&&Ig&&_g[e]||t,r)}},exportTypedArrayStaticMethod:function(e,t,n){var r,i;if(d){if(kr){if(n)for(r in Tg)if((i=x[r])&&T(i,e))try{delete i[e]}catch(X){}if(Eg[e]&&!n)return;try{return Ot(Eg,e,!n&&Ig&&Eg[e]||t)}catch(X){}}for(r in Tg)!(i=x[r])||i[e]&&!n||Ot(i,e,t)}},getTypedArrayConstructor:Ag,isView:function(e){return!!O(e)&&("DataView"===(e=Qe(e))||T(Tg,e)||T(Mg,e))},isTypedArray:Pg,TypedArray:Eg,TypedArrayPrototype:Cg},Lg=x.ArrayBuffer,Dg=x.Int8Array,Ng=!f.NATIVE_ARRAY_BUFFER_VIEWS||!g(function(){Dg(1)})||!g(function(){new Dg(-1)})||!su(function(e){new Dg,new Dg(null),new Dg(1.5),new Dg(e)},!0)||g(function(){return 1!==new Dg(new Lg(2),1,undefined).length}),Fg=(R({target:"Number",stat:!0},{isInteger:void 0}),Math.floor,Number.isInteger,RangeError),Ug=RangeError,jg=function(t,e){var n=function(){var e=se(t);if(e<0)throw new Fg("The argument can't be less than 0");return e}();if(n%e)throw new Ug("Wrong offset");return n},zg=Math.floor,Bg=TypeError,Wg=function(e){e=To(e,"number");if("number"==typeof e)throw new Bg("Can't convert number to bigint");return BigInt(e)},Hg=f.aTypedArrayConstructor,qg=function(e){var t=Ws(this),n=arguments.length,r=1<n?arguments[1]:undefined,i=r!==undefined;i&&Ce(r);var o,a,s,u,l,c,f,d,h=oe(e),e=Vr(h);if(e&&!Hr(e))for(d=(f=Jr(h,e)).next,h=[];!(c=I(d,f)).done;)h.push(c.value);for(i&&2<n&&(r=zr(r,arguments[2])),a=ce(h),u=function(e){e=Qe(e);return"BigInt64Array"===e||"BigUint64Array"===e}(s=new(Hg(t))(a)),o=0;o<a;o++)l=i?r(h[o],o):h[o],s[o]=u?Wg(l):+l;return s},Vg=function(e,t,n){for(var r=0,i=2<arguments.length?n:ce(t),o=new e(i);r<i;)o[r]=t[r++];return o},o=We(function(e){var r=Fn.f,u=si.forEach,h=bt.get,p=bt.set,m=bt.enforce,g=st.f,n=Kn.f,v=x.RangeError,y=Mo.ArrayBuffer,t=y.prototype,w=Mo.DataView,b=f.NATIVE_ARRAY_BUFFER_VIEWS,k=f.TYPED_ARRAY_TAG,S=f.TypedArray,_=f.TypedArrayPrototype,E=f.isTypedArray,i=function(e,t){St(e,t,{configurable:!0,get:function(){return h(this)[t]}})},C=function(e){return ke(t,e)||"ArrayBuffer"===(e=Qe(e))||"SharedArrayBuffer"===e},o=function(e,t){return E(e)&&!Bi(t)&&t in e&&(void 0)(+t)&&0<=t},a=function(e,t){return t=mi(t),o(e,t)?at(2,e[t]):n(e,t)},s=function(e,t,n){return t=mi(t),!(o(e,t)&&O(n)&&T(n,"value"))||T(n,"get")||T(n,"set")||n.configurable||T(n,"writable")&&!n.writable||T(n,"enumerable")&&!n.enumerable?g(e,t,n):(e[t]=n.value,e)};d?(b||(Kn.f=a,st.f=s,i(_,"buffer"),i(_,"byteOffset"),i(_,"byteLength"),i(_,"length")),R({target:"Object",stat:!0,forced:!b},{getOwnPropertyDescriptor:a,defineProperty:s}),e.exports=function(e,t,i){var l=e.match(/\d+/)[0]/8,n=e+(i?"Clamped":"")+"Array",o="get"+e,a="set"+e,s=x[n],c=s,f=c&&c.prototype,e={},d=function(e,r){g(e,r,{get:function(){var e=this,t=r;return(e=h(e)).view[o](t*l+e.byteOffset,!0)},set:function(e){var t,n;t=r,e=e,(n=h(n=this)).view[a](t*l+n.byteOffset,i?(t=+e)!=t||t<=0?0:255<=t?255:!((n=zg(t))+.5<t)&&(t<n+.5||n%2==0)?n:n+1:e,!0)},enumerable:!0})},t=(b?Ng&&(c=t(function(e,t,n,r){return er(e,f),Jo(O(t)?C(t)?r!==undefined?new s(t,jg(n,l),r):n!==undefined?new s(t,jg(n,l)):new s(t):E(t)?Vg(c,t):I(qg,c,t):new s(jo(t)),e,c)}),kr&&kr(c,S),u(r(s),function(e){e in c||ut(c,e,s[e])}),c.prototype=f):(c=t(function(e,t,n,r){er(e,f);var i,o,a=0,s=0;if(O(t)){if(!C(t))return E(t)?Vg(c,t):I(qg,c,t);var u=t,s=jg(n,l),n=t.byteLength;if(r===undefined){if(n%l)throw new v("Wrong length");if((i=n-s)<0)throw new v("Wrong length")}else if((i=jo(r)*l)+s>n)throw new v("Wrong length");o=i/l}else o=jo(t),u=new y(i=o*l);for(p(e,{buffer:u,byteOffset:s,byteLength:i,length:o,view:new w(u)});a<o;)d(e,a++)}),kr&&kr(c,S),f=c.prototype=rr(_)),f.constructor!==c&&ut(f,"constructor",c),m(f).TypedArrayConstructor=c,k&&ut(f,k,n),c!==s);e[n]=c,R({global:!0,constructor:!0,forced:t,sham:!b},e),"BYTES_PER_ELEMENT"in c||ut(c,"BYTES_PER_ELEMENT",l),"BYTES_PER_ELEMENT"in f||ut(f,"BYTES_PER_ELEMENT",l),ma(n)}):e.exports=function(){}}),Gg=(o("Float32",function(r){return function(e,t,n){return r(this,e,t,n)}}),o("Uint8",function(r){return function(e,t,n){return r(this,e,t,n)}}),R({target:"Array",proto:!0},{copyWithin:void 0}),nr("copyWithin"),Math.min,y(void 0)),Jg=f.aTypedArray,$g=((0,f.exportTypedArrayMethod)("copyWithin",function(e,t){return Gg(Jg(this),e,t,2<arguments.length?arguments[2]:undefined)}),Ar("every",TypeError)),Zg=(R({target:"Iterator",proto:!0,real:!0,forced:$g},{every:function(n){E(this);try{Ce(n)}catch(X){$r(this,"throw",X)}var e,r;return $g?I($g,this,n):(e=Qr(this),!Xr(e,function(e,t){if(!n(e,r++))return t()},{IS_RECORD:!(r=0),INTERRUPTED:!0}).stopped)}}),si.every),a=Te("every"),Kg=(R({target:"Array",proto:!0,forced:!a},{every:function(e){return Zg(this,e,1<arguments.length?arguments[1]:undefined)}}),si.every),Yg=f.aTypedArray,Xg=((0,f.exportTypedArrayMethod)("every",function(e){return Kg(Yg(this),e,1<arguments.length?arguments[1]:undefined)}),o("Int8",function(r){return function(e,t,n){return r(this,e,t,n)}}),f.getTypedArrayConstructor),Qg=function(e,t){return Vg(Xg(e),t)},ev=si.filter,tv=f.aTypedArray,nv=((0,f.exportTypedArrayMethod)("filter",function(e){e=ev(tv(this),e,1<arguments.length?arguments[1]:undefined);return Qg(this,e)}),si.find),rv=f.aTypedArray,iv=((0,f.exportTypedArrayMethod)("find",function(e){return nv(rv(this),e,1<arguments.length?arguments[1]:undefined)}),si.findIndex),ov=f.aTypedArray,av=((0,f.exportTypedArrayMethod)("findIndex",function(e){return iv(ov(this),e,1<arguments.length?arguments[1]:undefined)}),si.forEach),sv=f.aTypedArray,uv=((0,f.exportTypedArrayMethod)("forEach",function(e){av(sv(this),e,1<arguments.length?arguments[1]:undefined)}),Bn.includes),lv=f.aTypedArray,cv=((0,f.exportTypedArrayMethod)("includes",function(e){return uv(lv(this),e,1<arguments.length?arguments[1]:undefined)}),Bn.indexOf),fv=f.aTypedArray,dv=((0,f.exportTypedArrayMethod)("indexOf",function(e){return cv(fv(this),e,1<arguments.length?arguments[1]:undefined)}),Ze("iterator")),Og=x.Uint8Array,hv=y(pr.values),pv=y(pr.keys),mv=y(pr.entries),gv=f.aTypedArray,i=f.exportTypedArrayMethod,vv=Og&&Og.prototype,nr=!g(function(){vv[dv].call([1])}),Ar=!!vv&&vv.values&&vv[dv]===vv.values&&"values"===vv.values.name,Te=function(){return hv(gv(this))},yv=(i("entries",function(){return mv(gv(this))},nr),i("keys",function(){return pv(gv(this))},nr),i("values",Te,nr||!Ar,{name:"values"}),i(dv,Te,nr||!Ar,{name:"values"}),f.aTypedArray),a=f.exportTypedArrayMethod,wv=y([].join),bv=(a("join",function(e){return wv(yv(this),e)}),f.aTypedArray),kv=((0,f.exportTypedArrayMethod)("lastIndexOf",function(e){var t=arguments.length;return Re(Hm,bv(this),1<t?[e,arguments[1]]:[e])}),si.map),Sv=f.aTypedArray,_v=((0,f.exportTypedArrayMethod)("map",function(e){e=kv(Sv(this),e,1<arguments.length?arguments[1]:undefined);return Qg(this,e)}),e.left),Ev=f.aTypedArray,Cv=((0,f.exportTypedArrayMethod)("reduce",function(e){var t=arguments.length;return _v(Ev(this),e,t,1<t?arguments[1]:undefined)}),e.right),Rv=f.aTypedArray,Ov=((0,f.exportTypedArrayMethod)("reduceRight",function(e){var t=arguments.length;return Cv(Rv(this),e,t,1<t?arguments[1]:undefined)}),f.aTypedArray),Bn=f.exportTypedArrayMethod,xv=Math.floor,Iv=(Bn("reverse",function(){for(var e,t=Ov(this).length,n=xv(t/2),r=0;r<n;)e=this[r],this[r++]=this[--t],this[t]=e;return this}),o("Uint8",function(r){return function(e,t,n){return r(this,e,t,n)}},!0),si.some),Tv=f.aTypedArray,Mv=((0,f.exportTypedArrayMethod)("some",function(e){return Iv(Tv(this),e,1<arguments.length?arguments[1]:undefined)}),f.aTypedArray),Og=f.exportTypedArrayMethod,Av=x.Uint16Array,Pv=Av&&In(Av.prototype.sort),Te=!(!Pv||g(function(){Pv(new Av(2),null)})&&g(function(){Pv(new Av(2),{})})),Lv=!!Pv&&!g(function(){if(Tn)return Tn<74;if(kd)return kd<67;if(Sd)return!0;if(_d)return _d<602;for(var e,t=new Av(516),n=Array(516),r=0;r<516;r++)e=r%4,t[r]=515-r,n[r]=r-2*e+3;for(Pv(t,function(e,t){return(e/4|0)-(t/4|0)}),r=0;r<516;r++)if(t[r]!==n[r])return!0}),Dv=(Og("sort",function(e){return e!==undefined&&Ce(e),Lv?Pv(this,e):bd(Mv(this),(n=e,function(e,t){return n!==undefined?+n(e,t)||0:t!=t?e!=e?0:-1:e!=e?1:0===e&&0===t?0<1/e?0<1/t?0:1:0<1/t?-1:0:t<e?1:e<t?-1:0}));var n},!Lv||Te),f.aTypedArray),Nv=f.getTypedArrayConstructor,Fv=((0,f.exportTypedArrayMethod)("subarray",function(e,t){var n=Dv(this),r=n.length,e=mn(e,r);return new(Nv(n))(n.buffer,n.byteOffset+e*n.BYTES_PER_ELEMENT,le((t===undefined?r:mn(t,r))-e))}),x.Int8Array),Uv=f.aTypedArray,nr=f.exportTypedArrayMethod,jv=[].toLocaleString,zv=!!Fv&&g(function(){jv.call(new Fv(1))}),Ar=(nr("toLocaleString",function(){return Re(jv,zv?Pn(Uv(this)):Uv(this),Pn(arguments))},g(function(){return[1,2].toLocaleString()!==new Fv([1,2]).toLocaleString()})||!g(function(){Fv.prototype.toLocaleString.call([1,2])})),f.exportTypedArrayMethod),i=x.Uint8Array,a=i&&i.prototype||{},Bv=[].toString,Wv=y([].join),e=(g(function(){Bv.call({})})&&(Bv=function(){return Wv(this)}),a.toString!==Bv),Hv=(Ar("toString",Bv,e),f.aTypedArray),qv=f.getTypedArrayConstructor,Vv=((0,f.exportTypedArrayMethod)("slice",function(e,t){for(var n=Pn(Hv(this),e,t),e=qv(this),r=0,i=n.length,o=new e(i);r<i;)o[r]=n[r++];return o},g(function(){new Int8Array(1).slice()})),x.RangeError),Gv=x.Int8Array,Bn=Gv&&Gv.prototype,Jv=Bn&&Bn.set,$v=f.aTypedArray,Te=f.exportTypedArrayMethod,Zv=!g(function(){var e=new Uint8ClampedArray(2);return I(Jv,e,{length:1,0:3},1),3!==e[1]}),Og=Zv&&f.NATIVE_ARRAY_BUFFER_VIEWS&&g(function(){var e=new Gv(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}),Kv=(Te("set",function(e){$v(this);var t=jg(1<arguments.length?arguments[1]:undefined,1),n=oe(e);if(Zv)return I(Jv,this,n,t);var e=this.length,r=ce(n),i=0;if(e<r+t)throw new Vv("Wrong length");for(;i<r;)this[t+i]=n[i++]},!Zv||Og),f.aTypedArray),nr=f.exportTypedArrayMethod,Yv=y("".slice);nr("fill",function(e){var t=arguments.length,e=(Kv(this),"Big"===Yv(Qe(this),0,3)?Wg(e):+e);return I(Go,this,e,1<t?arguments[1]:undefined,2<t?arguments[2]:undefined)},g(function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})),new r({name:"aid"});var i=Kn.f,Xv=In("".slice),Qv=Math.min,a=Oe("startsWith"),Ar=!(a||!(e=i(String.prototype,"startsWith"))||e.writable);function ey(){return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,function(e){return(e^(16*Math.random()&15)>>e/4).toString(16)})}R({target:"String",proto:!0,forced:!Ar&&!a},{startsWith:function(e){var t=C(re(this)),e=(tl(e),C(e)),n=le(Qv(1<arguments.length?arguments[1]:undefined,t.length));return Xv(t,n,n+e.length)===e}});iy.generate=function(){return"rep_"+this.uuid32()},iy.uuid32=function(){return"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx".replace(/x/g,function(){return Math.floor(16*Math.random()).toString(16)})};var ty=iy,ny="[SessionReplay]",ry=!1;function iy(){}function m(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];ry&&console.log.apply(console,qu([ny+"["+e+"]"],t))}function oy(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];ry&&console.debug.apply(console,qu([ny+"["+e+"]"],t))}function ay(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];ry&&console.log.apply(console,qu([ny+"["+e+"] WARN:"],t))}function sy(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];ry&&console.log.apply(console,qu([ny+"["+e+"] ERROR:"],t))}dy.prototype.setTdemInstance=function(e){this.tdemInstance=e},dy.prototype.createSession=function(e){void 0===e&&(e="session");var t=null==(t=this.session)?void 0:t.replayId,n=$m("tdem",ey),n=h({id:n.sessionId,replayId:ty.generate(),started:Date.now(),lastActivity:Date.now(),segmentId:0,sampled:e},t?{previousReplayId:t}:{});return this.session=n,this.syncSharedSession(n.id),m("SessionManager","Document replay session created:",n.id,n.replayId),n},dy.prototype.restoreSession=function(){return this.session},dy.prototype.saveSession=function(){},dy.prototype.refreshSession=function(){var e=null!=(e=null==(e=this.session)?void 0:e.sampled)?e:"session";return this.createSession(e)},dy.prototype.updateActivity=function(){this.session&&(this.session.lastActivity=Date.now())},dy.prototype.incrementSegmentId=function(){var e;return this.session?(e=this.session.segmentId,this.session.segmentId+=1,e):0},dy.prototype.shouldRefreshSession=function(){return!1},dy.prototype.getSession=function(){return this.session},dy.prototype.getSessionId=function(){var e;return null!=(e=null==(e=this.session)?void 0:e.id)?e:""},dy.prototype.getReplayId=function(){var e;return null!=(e=null==(e=this.session)?void 0:e.replayId)?e:""},dy.prototype.clearSession=function(){var e;this.session=null;try{null!=(e=window.sessionStorage)&&e.removeItem("tdem_session")}catch(w){}},dy.prototype.syncSharedSession=function(e){var t,n,r;this.tdemInstance&&this.tdemInstance.extendBean("sessionId",e),e=e,"undefined"!=typeof window&&(t=Date.now(),(n=window[Vm])?(r=n.sessionId!==e,n.sessionId=e,n.version=r?n.version+1:n.version,n.source="tdem",r&&(n.createdAt=t),n.lastActivity=t):window[Vm]=Jm(e,"tdem"),Gm("_tdem_s",e),window.dispatchEvent(new CustomEvent("monitor-session-update",{detail:{sessionId:e,source:"tdem"}})))};var uy=dy,ly=((Bn={})[Bn.DomContentLoaded=0]="DomContentLoaded",Bn[Bn.Load=1]="Load",Bn[Bn.FullSnapshot=2]="FullSnapshot",Bn[Bn.IncrementalSnapshot=3]="IncrementalSnapshot",Bn[Bn.Meta=4]="Meta",Bn[Bn.Custom=5]="Custom",Bn[Bn.Plugin=6]="Plugin",Bn[Bn.Asset=7]="Asset",Bn),cy=(fy.prototype.ensureReady=function(){return Wu(this,void 0,void 0,function(){return Hu(this,function(e){return[2,this.ready]})})},fy.prototype.postMessage=function(n,r){var i=this,o=this.nextId++;return new Promise(function(e,t){i.pendingRequests.set(o,{resolve:e,reject:t}),i.worker.postMessage({id:o,method:n,arg:r})})},fy.prototype.destroy=function(){this.pendingRequests.forEach(function(e){return(0,e.reject)(new Error("Worker destroyed"))}),this.pendingRequests.clear(),this.worker.terminate()},fy);function fy(e){var o=this;this.nextId=0,this.pendingRequests=new Map,this.worker=e,this.worker.addEventListener("message",function(e){var e=e.data,t=e.id,n=e.success,r=e.response;"init"!==e.method&&(e=o.pendingRequests.get(t))&&(o.pendingRequests["delete"](t),n?e.resolve(r):e.reject(new Error(r||"Worker request failed")))}),this.ready=new Promise(function(t,n){var r=function(e){e=e.data;"init"===e.method&&e.success&&(o.worker.removeEventListener("message",r),clearTimeout(i),t())},i=(o.worker.addEventListener("message",r),o.worker.addEventListener("error",function(e){o.worker.removeEventListener("message",r),clearTimeout(i),n(new Error("Worker error: "+(e.message||"unknown")))}),setTimeout(function(){o.worker.removeEventListener("message",r),n(new Error("Worker init timeout (5s)"))},5e3))})}function dy(e){this.session=null,this.tdemInstance=null}py.prototype.initWorker=function(){var t=this,e=function(){try{var e,t,n;return"undefined"==typeof Worker||"undefined"==typeof Blob||"undefined"==typeof URL?null:(e=new Blob(["\n(function() {\n var events = [];\n var totalSize = 0;\n\n function handleMessage(data) {\n var method = data.method;\n var id = data.id;\n\n switch (method) {\n case 'addEvent':\n events.push(data.arg);\n totalSize += data.arg.length;\n return { id: id, method: method, success: true, response: totalSize };\n\n case 'finish':\n var json = '[' + events.join(',') + ']';\n events = [];\n totalSize = 0;\n // 返回原始 JSON 字符串,压缩在主线程做(pako 不好内联到 worker)\n return { id: id, method: method, success: true, response: json };\n\n case 'clear':\n events = [];\n totalSize = 0;\n return { id: id, method: method, success: true, response: void 0 };\n\n default:\n return { id: id, method: method, success: false, response: 'Unknown method' };\n }\n }\n\n self.addEventListener('message', function(e) {\n try {\n var result = handleMessage(e.data);\n self.postMessage(result);\n } catch (err) {\n self.postMessage({\n id: e.data.id,\n method: e.data.method,\n success: false,\n response: err.message || 'Worker error'\n });\n }\n });\n\n // 就绪信号\n self.postMessage({ method: 'init', success: true });\n})();\n"],{type:"application/javascript"}),t=URL.createObjectURL(e),n=new Worker(t,{name:"tdem-replay-compressor"}),URL.revokeObjectURL(t),m("CompressionWorker","Worker created successfully"),new cy(n))}catch(v){return ay("CompressionWorker","Failed to create worker, will fallback to sync buffer:",v),null}}();e?(this.workerHandler=e,this.useWorker=!0,e.ensureReady().then(function(){t.workerReady=!0,m("EventBuffer","Worker ready, migrating buffered events"),t.migrateEventsToWorker()})["catch"](function(e){ay("EventBuffer","Worker init failed, falling back to sync buffer:",e),t.useWorker=!1,t.workerHandler=null})):m("EventBuffer","Worker not available, using sync buffer")},py.prototype.migrateEventsToWorker=function(){if(this.workerHandler&&this.workerReady){var e=this.events;this.events=[];for(var t=0,n=e;t<n.length;t++){var r=n[t];this.addEventToWorker(r)}this.currentSize=0}},py.prototype.addEventToWorker=function(e){if(this.workerHandler)try{var t=JSON.stringify(e);this.workerHandler.postMessage("addEvent",t),this.workerEventCount++,this.workerSize+=t.length}catch(A){ay("EventBuffer","Failed to send event to worker:",A)}},py.prototype.addEvent=function(e){var t;this.useWorker&&this.workerReady&&this.workerHandler?(t=this.estimateEventSize(e),this.workerSize+t>this.config.maxSize&&(ay("EventBuffer","Worker buffer size limit exceeded, dropping old events"),this.workerHandler.postMessage("clear"),this.workerEventCount=0,this.workerSize=0),this.addEventToWorker(e)):(t=this.estimateEventSize(e),this.currentSize+t>this.config.maxSize&&(ay("EventBuffer","Size limit exceeded, removing old events"),this.trimOldEvents(t)),this.events.push(e),this.currentSize+=t)},py.prototype.getEvents=function(){return qu(this.events)},py.prototype.getEventCount=function(){return this.useWorker&&this.workerReady?this.workerEventCount+this.events.length:this.events.length},py.prototype.getSize=function(){return this.useWorker&&this.workerReady?this.workerSize+this.currentSize:this.currentSize},py.prototype.isEmpty=function(){return!(this.useWorker&&this.workerReady&&0!==this.workerEventCount||0!==this.events.length)},py.prototype.finishAsync=function(){return Wu(this,void 0,void 0,function(){var t,n,r;return Hu(this,function(e){switch(e.label){case 0:if(!(this.useWorker&&this.workerReady&&this.workerHandler&&0<this.workerEventCount))return[3,4];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,this.workerHandler.postMessage("finish")];case 2:return t=e.sent(),r=this.workerEventCount,n=this.workerSize,this.workerEventCount=0,this.workerSize=0,[2,{events:[],eventCount:r,uncompressedSize:n,eventsJson:t}];case 3:return ay("EventBuffer","Worker finish failed, falling back to sync:",e.sent()),[3,4];case 4:return[2,{events:r=this.getEvents(),eventCount:r.length,uncompressedSize:this.currentSize}]}})})},py.prototype.finish=function(){var e=this.getEvents();return{events:e,eventCount:e.length,uncompressedSize:this.currentSize}},py.prototype.clear=function(){this.events=[],this.currentSize=0,this.useWorker&&this.workerHandler&&(this.workerHandler.postMessage("clear"),this.workerEventCount=0,this.workerSize=0)},py.prototype.destroy=function(){this.clear(),this.workerHandler&&(this.workerHandler.destroy(),this.workerHandler=null),this.useWorker=!1,this.workerReady=!1},py.prototype.estimateEventSize=function(e){try{return JSON.stringify(e).length}catch(Uy){return 1024}},py.prototype.trimOldEvents=function(e){for(var t=-1,n=this.events.length-1;0<=n;n--)if(this.events[n].type===ly.FullSnapshot){t=n;break}var r=t;if(0<r)for(n=r-1;0<=n;n--)if(this.events[n].type===ly.Meta){r=n;break}for(var i,o=0,a=Math.max(e,.2*this.config.maxSize),s=0;s<r&&o<a;)s++,(i=this.events.shift())&&(o+=this.estimateEventSize(i));if(r<0)for(;0<this.events.length&&o<a;)(i=this.events.shift())&&(o+=this.estimateEventSize(i));this.currentSize=Math.max(0,this.currentSize-o)},py.prototype.hasCheckout=function(){return this.events.some(function(e){return e.type===ly.Meta||e.type===ly.FullSnapshot})},py.prototype.getLastCheckoutTime=function(){for(var e=this.events.length-1;0<=e;e--){var t=this.events[e];if(t.type===ly.FullSnapshot)return t.timestamp}return null},py.prototype.isUsingWorker=function(){return this.useWorker&&this.workerReady};var hy=py;function py(e,t){void 0===e&&(e={}),void 0===t&&(t=!1),this.events=[],this.currentSize=0,this.workerHandler=null,this.useWorker=!1,this.workerReady=!1,this.workerEventCount=0,this.workerSize=0,this.config={maxSize:null!=(e=e.maxSize)?e:5242880},t&&this.initWorker()}pi("toStringTag"),hr(be("Symbol"),"Symbol"),hr(x.JSON,"JSON",!0),hr(Math,"Math",!0),R({target:"Number",stat:!0},{isNaN:function(e){return e!=e}});var my=Wn.trim,gy=y("".charAt),vy=x.parseFloat,Og=x.Symbol,yy=Og&&Og.iterator,Te=1/vy(Vi+"-0")!=-Infinity||yy&&!g(function(){vy(Object(yy))})?function(e){var e=my(C(e)),t=vy(e);return 0===t&&"-"===gy(e,0)?-0:t}:vy,wy=(R({target:"Number",stat:!0,forced:Number.parseFloat!==Te},{parseFloat:Te}),be("Reflect","construct")),by=Object.prototype,ky=[].push,Sy=g(function(){function e(){}return!(wy(function(){},[],e)instanceof e)}),_y=!g(function(){wy(function(){})}),nr=Sy||_y,Ey=(R({target:"Reflect",stat:!0,forced:nr,sham:nr},{construct:function(e,t){Ws(e);var n=arguments.length<3?e:Ws(arguments[2]);if(E(t),_y&&!Sy)return wy(e,t,n);if(e===n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return Re(ky,r,t),new(Re(ts,e,r))}r=n.prototype,n=rr(O(r)?r:by),r=Re(e,n,t);return O(r)?r:n}}),function(e,t,n){var r,i;return E(e)===n?e[t]:(r=Kn.f(e,t))?(i=r)!==undefined&&(T(i,"value")||T(i,"writable"))?r.value:r.get===undefined?undefined:I(r.get,n):(i=tr(e),O(i)?Ey(i,t,n):void 0)}),i=(R({target:"Reflect",stat:!0},{get:function(e,t){return Ey(E(e),mi(t),arguments.length<3?e:arguments[2])}}),Kn.f),Cy=In("".slice),Ry=Math.min,e=Oe("endsWith"),a=!(e||!(Ar=i(String.prototype,"endsWith"))||Ar.writable),Oy=(R({target:"String",proto:!0,forced:!a&&!e},{endsWith:function(e){var t=C(re(this)),e=(tl(e),C(e)),n=1<arguments.length?arguments[1]:undefined,r=t.length,n=n===undefined?r:Ry(le(n),r);return Cy(t,n-e.length,n)===e}}),y("".replace),R({target:"String",proto:!0,forced:g(function(){var e="".bold('"');return e!==e.toLowerCase()||3<e.split('"').length})},{bold:function(){return 0,"<b"+">"+C(re(this))+"</b>"}}),o("Float64",function(r){return function(e,t,n){return r(this,e,t,n)}}),o("Int16",function(r){return function(e,t,n){return r(this,e,t,n)}}),o("Int32",function(r){return function(e,t,n){return r(this,e,t,n)}}),o("Uint16",function(r){return function(e,t,n){return r(this,e,t,n)}}),o("Uint32",function(r){return function(e,t,n){return r(this,e,t,n)}}),Object.isFrozen),Wn=ga||g(function(){Oy(1)}),xy=(R({target:"Object",stat:!0,forced:Wn},{isFrozen:function(e){return!O(e)||!(!ga||"ArrayBuffer"!==Q(e))||!!Oy&&Oy(e)}}),Object.isSealed),Og=ga||g(function(){xy(1)}),Iy=(R({target:"Object",stat:!0,forced:Og},{isSealed:function(e){return!O(e)||!(!ga||"ArrayBuffer"!==Q(e))||!!xy&&xy(e)}}),_a.onFreeze),Ty=Object.seal,Te=g(function(){Ty(1)});R({target:"Object",stat:!0,forced:Te,sham:!0},{seal:function(e){return Ty&&O(e)?Ty(Iy(e)):e}});var My,Ay,Py,Ly,Dy=bt.enforce,nr=Object,Ny=(Array.isArray,nr.isExtensible),In=!x.ActiveXObject&&"ActiveXObject"in x,Oe=function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}},i=lt("WeakMap",Oe,fa),Ar=i.prototype,Fy=y(Ar.set);xe&&In&&(My=fa.getConstructor(Oe,"WeakMap",!0),_a.enable(),Ay=y(Ar["delete"]),Py=y(Ar.has),Ly=y(Ar.get),Fo(Ar,{"delete":function(e){var t;return O(e)&&!Ny(e)?((t=Dy(this)).frozen||(t.frozen=new My),Ay(this,e)||t.frozen["delete"](e)):Ay(this,e)},has:function(e){var t;return O(e)&&!Ny(e)?((t=Dy(this)).frozen||(t.frozen=new My),Py(this,e)||t.frozen.has(e)):Py(this,e)},get:function(e){var t;return!O(e)||Ny(e)||((t=Dy(this)).frozen||(t.frozen=new My),Py(this,e))?Ly(this,e):t.frozen.get(e)},set:function(e,t){var n;return!O(e)||Ny(e)||((n=Dy(this)).frozen||(n.frozen=new My),Py(this,e))?Fy(this,e,t):n.frozen.set(e,t),this}}));var Uy,jy=["inputs"],zy=["inputId"],By=["inputs"],Wy=["inputId"],Hy=["type"],qy=Object.defineProperty,M=function(e,t,n){return e=e,t="symbol"!==S(t)?t+"":t,n=n,t in e?qy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Vy=Object.defineProperty,Gy=function(e,t,n){return e=e,t="symbol"!==S(t)?t+"":t,n=n,t in e?Vy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Jy=((a=Jy||{})[a.Document=0]="Document",a[a.DocumentType=1]="DocumentType",a[a.Element=2]="Element",a[a.Text=3]="Text",a[a.CDATA=4]="CDATA",a[a.Comment=5]="Comment",a),$y={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Zy={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Ky={},Yy={};function Xy(e){if(Ky[e])return Ky[e];var t=globalThis[e],n=t.prototype,r=e in $y?$y[e]:void 0,r=Boolean(r&&r.every(function(e){return Boolean(null==(e=null==(e=Object.getOwnPropertyDescriptor(n,e))?void 0:e.get)?void 0:e.toString().includes("[native code]"))})),i=e in Zy?Zy[e]:void 0,i=Boolean(i&&i.every(function(e){return"function"==typeof n[e]&&(null==(e=n[e])?void 0:e.toString().includes("[native code]"))}));if(r&&i&&!globalThis.Zone)return Ky[e]=t.prototype,t.prototype;try{var o,a,s=document.createElement("iframe"),u=(s.style.display="none",document.body.appendChild(s),s.contentWindow);return u?(o=u[e].prototype)?((a=navigator.userAgent).includes("Safari")&&!a.includes("Chrome")?(s.classList.add("rr-block"),s.setAttribute("__rrwebUntaintedMutationObserver",""),Yy[e]=function(){return s.remove()}):s.remove(),Ky[e]=o):(s.remove(),n):t.prototype}catch(N){return n}}var Qy={};function e0(e,t,n){var r="".concat(e,".").concat(String(n));return Qy[r]?Qy[r].call(t):(e=Xy(e),(e=null==(e=Object.getOwnPropertyDescriptor(e,n))?void 0:e.get)?(Qy[r]=e).call(t):t[n])}var t0={};function n0(e,t,n){var r="".concat(e,".").concat(String(n));return t0[r]?t0[r].bind(t):"function"!=typeof(e=Xy(e)[n])?t[n]:(t0[r]=e).bind(t)}var e=Date.now,r0={ownerDocument:function(e){return e0("Node",e,"ownerDocument")},childNodes:function(e){return e0("Node",e,"childNodes")},parentNode:function(e){return e0("Node",e,"parentNode")},parentElement:function(e){return e0("Node",e,"parentElement")},textContent:function(e){return e0("Node",e,"textContent")},contains:function(e,t){return n0("Node",e,"contains")(t)},getRootNode:function(e){return n0("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?e0("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?e0("Element",e,"shadowRoot"):null},querySelector:function(e,t){return e0("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return e0("Element",e,"querySelectorAll")(t)},nowTimestamp:e=/[1-9][0-9]{12}/.test(Date.now().toString())?e:function(){return(new Date).getTime()},mutationObserverCtor:function(){var e;return[Xy("MutationObserver").constructor,null!=(e=Yy.MutationObserver)?e:function(){}]},patch:function(e,t,n){try{var r,i;return t in e?("function"==typeof(i=n(r=e[t]))&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,function(){e[t]=r}):function(){}}catch(De){return function(){}}}};function i0(e){return e.nodeType===e.ELEMENT_NODE}function o0(e){var t=e&&"host"in e&&"mode"in e&&r0.host(e)||null;return Boolean(t&&"shadowRoot"in t&&r0.shadowRoot(t)===e)}function a0(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function s0(e){try{var t,n=e.rules||e.cssRules;return n?(!(t=e.href)&&e.ownerNode&&(t=e.ownerNode.baseURI),r=(r=Array.from(n,function(e){return u0(e,t)}).join("")).includes(" background-clip: text;")&&!r.includes(" -webkit-background-clip: text;")?r.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;"):r):null}catch(X){return null}var r}function u0(e,t){if("styleSheet"in e){var n;try{n=s0(e.styleSheet)||((r=(i=e).cssText).split('"').length<3?r:(r=["@import","url(".concat(JSON.stringify(i.href),")")],""===i.layerName?r.push("layer"):i.layerName&&r.push("layer(".concat(i.layerName,")")),i.supportsText&&r.push("supports(".concat(i.supportsText,")")),i.media.length&&r.push(i.media.mediaText),r.join(" ")+";"))}catch(X){n=e.cssText}return e.styleSheet.href?y0(n,e.styleSheet.href):n}var r,i=e.cssText;return"selectorText"in e&&e.selectorText.includes(":")&&(i=i.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),t?y0(i,t):i}var l0=k(function u(){b(this,u),Gy(this,"idNodeMap",new Map),Gy(this,"nodeMetaMap",new WeakMap)},[{key:"getId",value:function(e){return e&&null!=(e=null==(e=this.getMeta(e))?void 0:e.id)?e:-1}},{key:"getNode",value:function(e){return this.idNodeMap.get(e)||null}},{key:"getIds",value:function(){return Array.from(this.idNodeMap.keys())}},{key:"getMeta",value:function(e){return this.nodeMetaMap.get(e)||null}},{key:"removeNodeFromMap",value:function(e){var t=this,n=this.getId(e);this.idNodeMap["delete"](n),e.childNodes&&e.childNodes.forEach(function(e){return t.removeNodeFromMap(e)})}},{key:"has",value:function(e){return this.idNodeMap.has(e)}},{key:"hasNode",value:function(e){return this.nodeMetaMap.has(e)}},{key:"add",value:function(e,t){var n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}},{key:"replace",value:function(e,t){var n=this.getNode(e);n&&(n=this.nodeMetaMap.get(n))&&this.nodeMetaMap.set(t,n),this.idNodeMap.set(e,t)}},{key:"reset",value:function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}]);function c0(e){var t=e.element,n=e.maskInputOptions,r=e.tagName,i=e.type,o=e.maskInputFn,e=e.value||"",i=i&&f0(i);return e=n[r.toLowerCase()]||i&&n[i]?o?o(e,t):"*".repeat(e.length):e}function f0(e){return e.toLowerCase()}function d0(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?f0(t):null}function h0(e,t){var n;try{n=new URL(e,null!=t?t:window.location.href)}catch(Le){return null}e=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!=(t=null==e?void 0:e[1])?t:null}var p0=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,m0=/^(?:[a-z+]+:)?\/\//i,g0=/^www\..*/i,v0=/^(data:)([^,]*),(.*)/i;function y0(e,c){return(e||"").replace(p0,function(e,t,n,r,i,o){n=n||i||o,i=t||r||"";if(!n)return e;if(m0.test(n)||g0.test(n))return"url(".concat(i).concat(n).concat(i,")");if(v0.test(n))return"url(".concat(i).concat(n).concat(i,")");if("/"===n[0])return"url(".concat(i).concat((-1<(o=c).indexOf("//")?o.split("/").slice(0,3).join("/"):o.split("/")[0]).split("?")[0]+n).concat(i,")");var t=n.split("#")[0],r=n.substring(t.length),a=c.split("#")[0].split("/"),e=t.split("/");a.pop();var s,u=Me(e);try{for(u.s();!(s=u.n()).done;){var l=s.value;"."!==l&&(".."===l?a.pop():a.push(l))}}catch(Le){u.e(Le)}finally{u.f()}return"url(".concat(i).concat(a.join("/")).concat(r).concat(i,")")})}function w0(e,t){return 1<arguments.length&&t!==undefined&&t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}var b0,k0,S0=1,_0=new RegExp("[^a-z0-9-_:]");function E0(){return S0++}var C0=/^[^ \t\n\r\u000c]+/,R0=/^[, \t\n\r\u000c]+/,O0=new WeakMap;function x0(e,t){return t&&""!==t.trim()?I0(e,t):t}function I0(e,t){var n=O0.get(e);if(n||(n=e.createElement("a"),O0.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function T0(e,t,n,r){return r&&("src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]||"background"===n&&["table","td","th"].includes(t)?x0(e,r):"srcset"===n?function(e,t){if(""===t.trim())return t;var n=0;function r(e){var e=e.exec(t.substring(n));return e?(e=e[0],n+=e.length,e):""}for(var i=[];r(R0),!(n>=t.length);)if(","===(a=r(C0)).slice(-1))a=x0(e,a.substring(0,a.length-1)),i.push(a);else for(var o="",a=x0(e,a),s=!1;;){var u=t.charAt(n);if(""===u){i.push((a+o).trim());break}if(s)")"===u&&(s=!1);else{if(","===u){n+=1,i.push((a+o).trim());break}"("===u&&(s=!0)}o+=u,n+=1}return i.join(", ")}(e,r):"style"===n?y0(r,I0(e)):"object"===t&&"data"===n?x0(e,r):r)}function M0(e,t){return["video","audio"].includes(e)&&"autoplay"===t}function A0(e,t,n){if(!e)return!1;if(e.nodeType===e.ELEMENT_NODE)for(var r=e.classList.length;r--;){var i=e.classList[r];if(t.test(i))return!0}return!!n&&A0(r0.parentNode(e),t,n)}function P0(e,t,n,r){var i;if(i0(e)){if(!r0.childNodes(i=e).length)return!1}else{if(null===r0.parentElement(e))return!1;i=r0.parentElement(e)}try{if("string"==typeof t){if(r){if(i.closest(".".concat(t)))return!0}else if(i.classList.contains(t))return!0}else if(A0(i,t,r))return!0;if(n)if(r){if(i.closest(n))return!0}else if(i.matches(n))return!0}catch(De){}return!1}function L0(e,t){var n=t.doc,r=t.blockClass,i=t.blockSelector,o=t.needsMask,a=t.inlineStylesheet,s=t.maskInputOptions,u=void 0===s?{}:s,l=t.maskTextFn,c=t.maskInputFn,s=t.dataURLOptions,f=void 0===s?{}:s,d=t.inlineImages,N=t.recordCanvas,F=t.keepIframeSrcFn,s=t.newlyAddedElement,U=void 0!==s&&s,s=t.cssCaptured,j=void 0!==s&&s,h=(s=n,!(t=t.mirror).hasNode(s)||1===(s=t.getId(s))?void 0:s);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:Jy.Document,childNodes:[],compatMode:e.compatMode}:{type:Jy.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Jy.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:h};case e.ELEMENT_NODE:for(var p,m,g,v,y,w,b=e,k=(M={doc:n,blockClass:r,blockSelector:i,inlineStylesheet:a,maskInputOptions:u,maskInputFn:c,dataURLOptions:f,inlineImages:d,recordCanvas:N,keepIframeSrcFn:F,newlyAddedElement:U,rootId:h}).doc,S=M.blockSelector,_=M.inlineStylesheet,E=void 0===(E=M.maskInputOptions)?{}:E,C=M.maskInputFn,R=void 0===(O=M.dataURLOptions)?{}:O,O=M.inlineImages,x=M.recordCanvas,I=M.keepIframeSrcFn,T=void 0!==(T=M.newlyAddedElement)&&T,z=M.rootId,M=function(e,t,n){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var r=e.classList.length;r--;){var i=e.classList[r];if(t.test(i))return!0}if(n)return e.matches(n)}catch(S){}return!1}(b,M.blockClass,S),A=(m=b)instanceof HTMLFormElement?"form":(m=f0(m.tagName),_0.test(m)?"div":m),P={},B=b.attributes.length,L=0;L<B;L++){var D=b.attributes[L];M0(A,D.name)||(P[D.name]=T0(k,A,f0(D.name),D.value))}"link"===A&&_&&(m=null,m=(_=Array.from(k.styleSheets).find(function(e){return e.href===b.href}))?s0(_):m)&&(delete P.rel,delete P.href,P._cssText=m),"style"===A&&b.sheet&&(_=s0(b.sheet))&&(1<b.childNodes.length&&(_=function(e,t,n){var r=2<arguments.length&&n!==undefined&&n,i=Array.from(t.childNodes),o=[],a=0;if(1<i.length&&e&&"string"==typeof e)for(var s=w0(e,r),u=s.length/e.length,l=1;l<i.length;l++)if(i[l].textContent&&"string"==typeof i[l].textContent){for(var c=w0(i[l].textContent,r),f=3;f<c.length&&(c[f].match(/[a-zA-Z0-9]/)||-1!==c.indexOf(c.substring(0,f),1));f++);for(;f<c.length;f++){var d,h=c.substring(0,f),p=s.split(h),m=-1;if(2===p.length)m=p[0].length;else if(2<p.length&&""===p[0]&&""!==i[l-1].textContent)m=s.indexOf(h,1);else if(1===p.length){if(h=h.substring(0,h.length-1),(p=s.split(h)).length<=1)return o.push(e),o;f=101}else f===c.length-1&&(m=s.indexOf(h));if(-1!==(m=2<=p.length&&100<f&&((d=i[l-1].textContent)&&"string"==typeof d&&(d=w0(d).length,m=s.indexOf(h,d)),-1===m)?p[0].length:m)){for(var g=Math.floor(m/u);0<g&&g<e.length;){if((a+=1)>50*i.length)return o.push(e),o;var v=w0(e.substring(0,g),r);if(v.length===m){o.push(e.substring(0,g)),e=e.substring(g),s=s.substring(m);break}v.length<m?g+=Math.max(1,Math.floor((m-v.length)/u)):g-=Math.max(1,Math.floor((v.length-m)*u))}break}}}return o.push(e),o}(_,b).join("/* rr_split */")),P._cssText=_),["input","textarea","select"].includes(A)&&(m=b.value,_=b.checked,"radio"!==P.type&&"checkbox"!==P.type&&"submit"!==P.type&&"button"!==P.type&&m?P.value=c0({element:b,type:d0(b),tagName:A,value:m,maskInputOptions:E,maskInputFn:C}):_&&(P.checked=_)),"option"===A&&(b.selected&&!E.select?P.selected=!0:delete P.selected),"dialog"===A&&b.open&&(P.rr_open_mode=b.matches("dialog:modal")?"modal":"non-modal"),"canvas"===A&&x&&("2d"===b.__context?function(e){var t=e.getContext("2d");if(t)for(var n=0;n<e.width;n+=50)for(var r=0;r<e.height;r+=50){var i=t.getImageData,i="__rrweb_original__"in i?i.__rrweb_original__:i;if(new Uint32Array(i.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some(function(e){return 0!==e}))return}return 1}(b)||(P.rr_dataURL=b.toDataURL(R.type,R.quality)):"__context"in b||(m=b.toDataURL(R.type,R.quality),(C=k.createElement("canvas")).width=b.width,C.height=b.height,m!==C.toDataURL(R.type,R.quality)&&(P.rr_dataURL=m))),"img"===A&&O&&(b0||(b0=k.createElement("canvas"),k0=b0.getContext("2d")),v=(g=b).currentSrc||g.getAttribute("src")||"<unknown-src>",y=g.crossOrigin,w=function(){g.removeEventListener("load",w);try{b0.width=g.naturalWidth,b0.height=g.naturalHeight,k0.drawImage(g,0,0),P.rr_dataURL=b0.toDataURL(R.type,R.quality)}catch(Le){if("anonymous"!==g.crossOrigin)return g.crossOrigin="anonymous",void(g.complete&&0!==g.naturalWidth?w():g.addEventListener("load",w));console.warn("Cannot inline img src=".concat(v,"! Error: ").concat(Le))}"anonymous"===g.crossOrigin&&(y?P.crossOrigin=y:g.removeAttribute("crossorigin"))},g.complete&&0!==g.naturalWidth?w():g.addEventListener("load",w)),["audio","video"].includes(A)&&((_=P).rr_mediaState=b.paused?"paused":"played",_.rr_mediaCurrentTime=b.currentTime,_.rr_mediaPlaybackRate=b.playbackRate,_.rr_mediaMuted=b.muted,_.rr_mediaLoop=b.loop,_.rr_mediaVolume=b.volume),T||(b.scrollLeft&&(P.rr_scrollLeft=b.scrollLeft),b.scrollTop&&(P.rr_scrollTop=b.scrollTop)),M&&(x=(E=b.getBoundingClientRect()).width,C=E.height,P={"class":P["class"],rr_width:"".concat(x,"px"),rr_height:"".concat(C,"px")}),"iframe"!==A||I(P.src)||(b.contentDocument||(P.rr_src=P.src),delete P.src);try{customElements.get(A)&&(p=!0)}catch(ne){}return{type:Jy.Element,tagName:A,attributes:P,childNodes:[],isSVG:Boolean("svg"===b.tagName||b.ownerSVGElement)||void 0,needBlock:M,rootId:z,isCustom:p};case e.TEXT_NODE:return m=e,_=(O={doc:n,needsMask:o,maskTextFn:l,rootId:h,cssCaptured:j}).needsMask,T=O.maskTextFn,E=O.rootId,x=O.cssCaptured,C=(C=r0.parentNode(m))&&C.tagName,I="",M="STYLE"===C||void 0,(C="SCRIPT"===C||void 0)?I="SCRIPT_PLACEHOLDER":x||(I=r0.textContent(m),M&&(I=I&&y0(I,I0(O.doc)))),!M&&!C&&I&&_&&(I=T?T(I,r0.parentElement(m)):I.replace(/[\S]/g,"*")),{type:Jy.Text,textContent:I||"",rootId:E};case e.CDATA_SECTION_NODE:return{type:Jy.CDATA,textContent:"",rootId:h};case e.COMMENT_NODE:return{type:Jy.Comment,textContent:r0.textContent(e)||"",rootId:h};default:return!1}}function D0(e){return null==e?"":e.toLowerCase()}function N0(e){return!0===e||"all"===e?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===e,headMetaDescKeywords:"all"===e,headTitleMutations:"all"===e}:e||{}}function F0(t,e){var n=e.doc,r=e.mirror,i=e.blockClass,o=e.blockSelector,a=e.maskTextClass,s=e.maskTextSelector,u=e.skipChild,u=void 0!==u&&u,l=e.inlineStylesheet,c=void 0===l||l,l=e.maskInputOptions,f=void 0===l?{}:l,d=e.maskTextFn,h=e.maskInputFn,p=e.slimDOMOptions,l=e.dataURLOptions,m=void 0===l?{}:l,l=e.inlineImages,g=void 0!==l&&l,l=e.recordCanvas,v=void 0!==l&&l,y=e.onSerialize,w=e.onIframeLoad,l=e.iframeLoadTimeout,b=void 0===l?5e3:l,k=e.onStylesheetLoad,l=e.stylesheetLoadTimeout,S=void 0===l?5e3:l,l=e.keepIframeSrcFn,_=void 0===l?function(){return!1}:l,l=e.newlyAddedElement,l=void 0!==l&&l,E=e.cssCaptured,E=void 0!==E&&E,C=e.needsMask,e=e.preserveWhiteSpace,R=void 0===e||e,C=C||P0(t,a,s,void 0===C),e=L0(t,{doc:n,mirror:r,blockClass:i,blockSelector:o,needsMask:C,inlineStylesheet:c,maskInputOptions:f,maskTextFn:d,maskInputFn:h,dataURLOptions:m,inlineImages:g,recordCanvas:v,keepIframeSrcFn:_,newlyAddedElement:l,cssCaptured:E});if(!e)return console.warn(t,"not serialized"),null;var l=r.hasNode(t)?r.getId(t):function(e,t){if(t.comment&&e.type===Jy.Comment)return 1;if(e.type===Jy.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel&&"script"===e.attributes.as||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===h0(e.attributes.href)))return 1;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(D0(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===D0(e.attributes.name)||"icon"===D0(e.attributes.rel)||"apple-touch-icon"===D0(e.attributes.rel)||"shortcut icon"===D0(e.attributes.rel))))return 1;if("meta"===e.tagName){if(t.headMetaDescKeywords&&D0(e.attributes.name).match(/^description|keywords$/))return 1;if(t.headMetaSocial&&(D0(e.attributes.property).match(/^(og|twitter|fb):/)||D0(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===D0(e.attributes.name)))return 1;if(t.headMetaRobots&&("robots"===D0(e.attributes.name)||"googlebot"===D0(e.attributes.name)||"bingbot"===D0(e.attributes.name)))return 1;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return 1;if(t.headMetaAuthorship&&("author"===D0(e.attributes.name)||"generator"===D0(e.attributes.name)||"framework"===D0(e.attributes.name)||"publisher"===D0(e.attributes.name)||"progid"===D0(e.attributes.name)||D0(e.attributes.property).match(/^article:/)||D0(e.attributes.property).match(/^product:/)))return 1;if(t.headMetaVerification&&("google-site-verification"===D0(e.attributes.name)||"yandex-verification"===D0(e.attributes.name)||"csrf-token"===D0(e.attributes.name)||"p:domain_verify"===D0(e.attributes.name)||"verify-v1"===D0(e.attributes.name)||"verification"===D0(e.attributes.name)||"shopify-checkout-api-token"===D0(e.attributes.name)))return 1}}}(e,p)||!R&&e.type===Jy.Text&&!e.textContent.replace(/^\s+|\s+$/gm,"").length?-2:S0++,O=Object.assign(e,{id:l});if(r.add(t,O),-2===l)return null;y&&y(t);E=!u;if(O.type===Jy.Element&&(E=E&&!O.needBlock,delete O.needBlock,e=r0.shadowRoot(t))&&a0(e)&&(O.isShadowHost=!0),(O.type===Jy.Document||O.type===Jy.Element)&&E){p.headWhitespace&&O.type===Jy.Element&&"head"===O.tagName&&(R=!1);var x={doc:n,mirror:r,blockClass:i,blockSelector:o,needsMask:C,maskTextClass:a,maskTextSelector:s,skipChild:u,inlineStylesheet:c,maskInputOptions:f,maskTextFn:d,maskInputFn:h,slimDOMOptions:p,dataURLOptions:m,inlineImages:g,recordCanvas:v,preserveWhiteSpace:R,onSerialize:y,onIframeLoad:w,iframeLoadTimeout:b,onStylesheetLoad:k,stylesheetLoadTimeout:S,keepIframeSrcFn:_,cssCaptured:!1};if(O.type!==Jy.Element||"textarea"!==O.tagName||void 0===O.attributes.value){O.type===Jy.Element&&void 0!==O.attributes._cssText&&"string"==typeof O.attributes._cssText&&(x.cssCaptured=!0);for(var I=0,T=Array.from(r0.childNodes(t));I<T.length;I++){var M=F0(T[I],x);M&&O.childNodes.push(M)}}var A=null;if(i0(t)&&(A=r0.shadowRoot(t)))for(var P=0,L=Array.from(r0.childNodes(A));P<L.length;P++){var D=F0(L[P],x);D&&(a0(A)&&(D.isShadow=!0),O.childNodes.push(D))}}l=r0.parentNode(t);return l&&o0(l)&&a0(l)&&(O.isShadow=!0),O.type===Jy.Element&&"iframe"===O.tagName&&function(e,t,n){var r=e.contentWindow;if(r){var i,o=!1;try{i=r.document.readyState}catch(X){return}if("complete"===i){if("about:blank"!==r.location.href||"about:blank"===e.src||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}else{var a=setTimeout(function(){o||(t(),o=!0)},n);e.addEventListener("load",function(){clearTimeout(a),o=!0,t()})}}}(t,function(){var e=t.contentDocument;e&&w&&(e=F0(e,{doc:e,mirror:r,blockClass:i,blockSelector:o,needsMask:C,maskTextClass:a,maskTextSelector:s,skipChild:!1,inlineStylesheet:c,maskInputOptions:f,maskTextFn:d,maskInputFn:h,slimDOMOptions:p,dataURLOptions:m,inlineImages:g,recordCanvas:v,preserveWhiteSpace:R,onSerialize:y,onIframeLoad:w,iframeLoadTimeout:b,onStylesheetLoad:k,stylesheetLoadTimeout:S,keepIframeSrcFn:_}))&&w(t,e)},b),O.type===Jy.Element&&"link"===O.tagName&&"string"==typeof O.attributes.rel&&("stylesheet"===O.attributes.rel||"preload"===O.attributes.rel&&"string"==typeof O.attributes.href&&"css"===h0(O.attributes.href))&&function(e,t,n){var r,i,o=!1;try{r=e.sheet}catch(X){return}r||(i=setTimeout(function(){o||(t(),o=!0)},n),e.addEventListener("load",function(){clearTimeout(i),o=!0,t()}))}(t,function(){var e;k&&(e=F0(t,{doc:n,mirror:r,blockClass:i,blockSelector:o,needsMask:C,maskTextClass:a,maskTextSelector:s,skipChild:!1,inlineStylesheet:c,maskInputOptions:f,maskTextFn:d,maskInputFn:h,slimDOMOptions:p,dataURLOptions:m,inlineImages:g,recordCanvas:v,preserveWhiteSpace:R,onSerialize:y,onIframeLoad:w,iframeLoadTimeout:b,onStylesheetLoad:k,stylesheetLoadTimeout:S,keepIframeSrcFn:_}))&&k(t,e)},S),O}var U0,j0={exports:{}};var z0,B0,W0,H0,q0,V0=(W0=Object.freeze(Object.defineProperty({__proto__:null,"default":{}},Symbol.toStringTag,{value:"Module"}))).__esModule?W0:("function"==typeof(H0=W0["default"])?(q0=function W0(){return this instanceof W0?Reflect.construct(H0,arguments,this.constructor):H0.apply(this,arguments)}).prototype=H0.prototype:q0={},Object.defineProperty(q0,"__esModule",{value:!0}),Object.keys(W0).forEach(function(e){var t=Object.getOwnPropertyDescriptor(W0,e);Object.defineProperty(q0,e,t.get?t:{enumerable:!0,get:function(){return W0[e]}})}),q0);function G0(){var f,d,e,t,n;return B0||(B0=1,U0||(U0=1,t=String,j0.exports=(n=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t}})(),j0.exports.createColors=n),f=j0.exports,d=V0,n=$(Error),F(s,n),e=k(s,[{key:"setMessage",value:function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file||"<css input>","undefined"!=typeof this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}},{key:"showSourceCode",value:function(e){var r=this;if(!this.source)return"";var t=this.source;null==e&&(e=f.isColorSupported);var n,i,o,a,s,t=(t=d&&e?d(t):t).split(/\r?\n/),u=Math.max(this.line-3,0),l=Math.min(this.line+2,t.length),c=String(l).length;return e?(e=f.createColors(!0),n=e.bold,i=e.gray,o=e.red,a=function(e){return n(o(e))},s=function(e){return i(e)}):a=s=function(e){return e},t.slice(u,l).map(function(e,t){var t=u+1+t,n=" "+(" "+t).slice(-c)+" | ";return t===r.line?(t=s(n.replace(/\d/g," "))+e.slice(0,r.column-1).replace(/[^\t]/g," "),a(">")+s(n)+e+"\n "+t+a("^")):" "+s(n)+e}).join("\n")}},{key:"toString",value:function(){var e=(e=this.showSourceCode())&&"\n\n"+e+"\n";return this.name+": "+this.message+e}}]),(z0=e)["default"]=e),z0;function s(e,t,n,r,i,o){var a;return b(this,s),(a=v(this,s,[e])).name="CssSyntaxError",a.reason=e,i&&(a.file=i),r&&(a.source=r),o&&(a.plugin=o),void 0!==t&&void 0!==n&&("number"==typeof t?(a.line=t,a.column=n):(a.line=t.line,a.column=t.column,a.endLine=n.line,a.endColumn=n.column)),a.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(a,s),a}}var J0,$0,Z0,K0,Y0,X0,Q0,ew,tw,nw,rw,iw,ow,aw,sw,uw,lw,cw,fw,dw,hw,pw,mw,gw,vw,yw,ww,bw,kw,Sw,_w,Ew,Cw,Rw,Ow,xw,Iw,Tw,Mw,Aw,Pw,Lw,Dw,Nw,Fw,Uw,jw,zw,Bw,Ww,Hw,qw={};function Vw(){return J0||(J0=1,qw.isClean=Symbol("isClean"),qw.my=Symbol("my")),qw}function Gw(){var a,t;return Z0||(a={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!(Z0=1)},t=k(function t(e){b(this,t),this.builder=e},[{key:"atrule",value:function(e,t){var n="@"+e.name,r=e.params?this.rawValue(e,"params"):"";"undefined"!=typeof e.raws.afterName?n+=e.raws.afterName:r&&(n+=" "),e.nodes?this.block(e,n+r):(t=(e.raws.between||"")+(t?";":""),this.builder(n+r+t,e))}},{key:"beforeAfter",value:function(e,t){for(var n="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose"),r=e.parent,i=0;r&&"root"!==r.type;)i+=1,r=r.parent;if(n.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var a=0;a<i;a++)n+=o}return n}},{key:"block",value:function(e,t){var n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),(t=e.nodes&&e.nodes.length?(this.body(e),this.raw(e,"after")):this.raw(e,"after","emptyBody"))&&this.builder(t),this.builder("}",e,"end")}},{key:"body",value:function(e){for(var t=e.nodes.length-1;0<t&&"comment"===e.nodes[t].type;)--t;for(var n=this.raw(e,"semicolon"),r=0;r<e.nodes.length;r++){var i=e.nodes[r],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==r||n)}}},{key:"comment",value:function(e){var t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)}},{key:"decl",value:function(e,t){var n=this.raw(e,"between","colon"),n=e.prop+n+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)}},{key:"document",value:function(e){this.body(e)}},{key:"raw",value:function(e,t,n){var r;if(t&&void 0!==(r=e.raws[t]))return r;var i,o=e.parent;if("before"===(n=n||t)){if(!o||"root"===o.type&&o.first===e)return"";if(o&&"document"===o.type)return""}return o?((o=e.root()).rawCache||(o.rawCache={}),"undefined"!=typeof o.rawCache[n]?o.rawCache[n]:"before"===n||"after"===n?this.beforeAfter(e,n):(this[i="raw"+((i=n)[0].toUpperCase()+i.slice(1))]?r=this[i](o,e):o.walk(function(e){if(void 0!==(r=e.raws[t]))return!1}),void 0===r&&(r=a[n]),o.rawCache[n]=r)):a[n]}},{key:"rawBeforeClose",value:function(e){var t;return e.walk(function(e){if(e.nodes&&0<e.nodes.length&&"undefined"!=typeof e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t=t&&t.replace(/\S/g,"")}},{key:"rawBeforeComment",value:function(e,t){var n;return e.walkComments(function(e){if("undefined"!=typeof e.raws.before)return(n=e.raws.before).includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),n=void 0===n?this.raw(t,null,"beforeDecl"):n&&n.replace(/\S/g,"")}},{key:"rawBeforeDecl",value:function(e,t){var n;return e.walkDecls(function(e){if("undefined"!=typeof e.raws.before)return(n=e.raws.before).includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),n=void 0===n?this.raw(t,null,"beforeRule"):n&&n.replace(/\S/g,"")}},{key:"rawBeforeOpen",value:function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t}},{key:"rawBeforeRule",value:function(t){var n;return t.walk(function(e){if(e.nodes&&(e.parent!==t||t.first!==e)&&"undefined"!=typeof e.raws.before)return(n=e.raws.before).includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),n=n&&n.replace(/\S/g,"")}},{key:"rawColon",value:function(e){var t;return e.walkDecls(function(e){if("undefined"!=typeof e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t}},{key:"rawEmptyBody",value:function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t}},{key:"rawIndent",value:function(n){return n.raws.indent||(n.walk(function(e){var t=e.parent;if(t&&t!==n&&t.parent&&t.parent===n&&"undefined"!=typeof e.raws.before)return t=e.raws.before.split("\n"),r=(r=t[t.length-1]).replace(/\S/g,""),!1}),r);var r}},{key:"rawSemicolon",value:function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t}},{key:"rawValue",value:function(e,t){var n=e[t],t=e.raws[t];return t&&t.value===n?t.raw:n}},{key:"root",value:function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}},{key:"rule",value:function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}},{key:"stringify",value:function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}}]),($0=t)["default"]=t),$0}function Jw(){var n;return Y0||(Y0=1,n=Gw(),(K0=e)["default"]=e),K0;function e(e,t){new n(t).stringify(e)}}function $w(){var o,a,s,i,n,r,e;return Q0||(Q0=1,a=(o=Vw()).isClean,s=o.my,i=G0(),n=Gw(),r=Jw(),e=k(function o(){var e,t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{};for(e in b(this,o),this.raws={},this[a]=!1,this[s]=!0,t)if("nodes"===e){this.nodes=[];var n,r=Me(t[e]);try{for(r.s();!(n=r.n()).done;){var i=n.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}catch(Le){r.e(Le)}finally{r.f()}}else this[e]=t[e]},[{key:"addToError",value:function(e){var t;return e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)&&(t=this.source,e.stack=e.stack.replace(/\n\s{4}at /,"$&".concat(t.input.from,":").concat(t.start.line,":").concat(t.start.column,"$&"))),e}},{key:"after",value:function(e){return this.parent.insertAfter(this,e),this}},{key:"assign",value:function(){var e,t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{};for(e in t)this[e]=t[e];return this}},{key:"before",value:function(e){return this.parent.insertBefore(this,e),this}},{key:"cleanRaws",value:function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}},{key:"clone",value:function(){var e,t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{},n=function a(e,t){var n,r,i,o=new e.constructor;for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n&&(i=S(r=e[n]),"parent"===n&&"object"===i?t&&(o[n]=t):"source"===n?o[n]=r:Array.isArray(r)?o[n]=r.map(function(e){return a(e,o)}):("object"===i&&null!==r&&(r=a(r)),o[n]=r));return o}(this);for(e in t)n[e]=t[e];return n}},{key:"cloneAfter",value:function(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{},e=this.clone(e);return this.parent.insertAfter(this,e),e}},{key:"cloneBefore",value:function(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{},e=this.clone(e);return this.parent.insertBefore(this,e),e}},{key:"error",value:function(e){var t,n,r=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};return this.source?(t=(n=this.rangeBy(r)).end,this.source.input.error(e,{column:(n=n.start).column,line:n.line},{column:t.column,line:t.line},r)):new i(e)}},{key:"getProxyProcessor",value:function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,n){return e[t]!==n&&(e[t]=n,"prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0}}}},{key:"markDirty",value:function(){if(this[a]){this[a]=!1;for(var e=this;e=e.parent;)e[a]=!1}}},{key:"next",value:function(){var e;if(this.parent)return e=this.parent.index(this),this.parent.nodes[e+1]}},{key:"positionBy",value:function(e,t){var n=this.source.start;return e.index?n=this.positionInside(e.index,t):e.word&&-1!==(e=(t=this.toString()).indexOf(e.word))&&(n=this.positionInside(e,t)),n}},{key:"positionInside",value:function(e,t){for(var n=t||this.toString(),r=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===n[o]?i+=r=1:r+=1;return{column:r,line:i}}},{key:"prev",value:function(){var e;if(this.parent)return e=this.parent.index(this),this.parent.nodes[e-1]}},{key:"rangeBy",value:function(e){var t,n,r={column:this.source.start.column,line:this.source.start.line},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};return e.word?-1!==(n=(t=this.toString()).indexOf(e.word))&&(r=this.positionInside(n,t),i=this.positionInside(n+e.word.length,t)):(e.start?r={column:e.start.column,line:e.start.line}:e.index&&(r=this.positionInside(e.index)),e.end?i={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?i=this.positionInside(e.endIndex):e.index&&(i=this.positionInside(e.index+1))),{end:i=i.line<r.line||i.line===r.line&&i.column<=r.column?{column:r.column+1,line:r.line}:i,start:r}}},{key:"raw",value:function(e,t){return(new n).raw(this,e,t)}},{key:"remove",value:function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}},{key:"replaceWith",value:function(){if(this.parent){for(var e=this,t=!1,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];for(var o=0,a=r;o<a.length;o++){var s=a[o];s===this?t=!0:t?(this.parent.insertAfter(e,s),e=s):this.parent.insertBefore(e,s)}t||this.remove()}return this}},{key:"root",value:function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}},{key:"toJSON",value:function(e,t){var n,r,i,o={},a=null==t,s=(t=t||new Map,0);for(n in this)Object.prototype.hasOwnProperty.call(this,n)&&"parent"!==n&&"proxyCache"!==n&&(r=this[n],Array.isArray(r)?o[n]=r.map(function(e){return"object"===S(e)&&e.toJSON?e.toJSON(null,t):e}):"object"===S(r)&&r.toJSON?o[n]=r.toJSON(null,t):"source"===n?(null==(i=t.get(r.input))&&(i=s,t.set(r.input,s),s++),o[n]={end:r.end,inputId:i,start:r.start}):o[n]=r);return a&&(o.inputs=Fe(t.keys()).map(function(e){return e.toJSON()})),o}},{key:"toProxy",value:function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}},{key:"toString",value:function(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:r,t=(e.stringify&&(e=e.stringify),"");return e(this,function(e){t+=e}),t}},{key:"warn",value:function(e,t,n){var r,i={node:this};for(r in n)i[r]=n[r];return e.warn(t,i)}},{key:"proxyOf",get:function(){return this}}]),(X0=e)["default"]=e),X0}function Zw(){var e;return tw||(tw=1,e=$w(),F(t,e),e=k(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),(ew=e)["default"]=e),ew;function t(e){return b(this,t),e&&"undefined"!=typeof e.value&&"string"!=typeof e.value&&(e=Ae(Ae({},e),{},{value:String(e.value)})),(e=v(this,t,[e])).type="decl",e}}function Kw(){var r,i,t,n,o,a,s;return ow||(ow=1,r=V0.SourceMapConsumer,i=V0.SourceMapGenerator,t=V0.existsSync,n=V0.readFileSync,o=V0.dirname,a=V0.join,s=k(function s(e,t){b(this,s),!1!==t.map&&(this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:"),e=t.map?t.map.prev:void 0,e=this.loadMap(t.from,e),!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=o(this.mapFile)),e)&&(this.text=e)},[{key:"consumer",value:function(){return this.consumerCache||(this.consumerCache=new r(this.text)),this.consumerCache}},{key:"decodeInline",value:function(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var t=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+t)}},{key:"getAnnotationURL",value:function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}},{key:"isMap",value:function(e){return"object"===S(e)&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}},{key:"loadAnnotation",value:function(e){var t,n=e.match(/\/\*\s*# sourceMappingURL=/gm);n&&(n=e.lastIndexOf(n.pop()),t=e.indexOf("*/",n),-1<n)&&-1<t&&(this.annotation=this.getAnnotationURL(e.substring(n,t)))}},{key:"loadFile",value:function(e){if(this.root=o(e),t(e))return this.mapFile=e,n(e,"utf-8").toString().trim()}},{key:"loadMap",value:function(e,t){if(!1===t)return!1;if(!t)return this.inline?this.decodeInline(this.annotation):this.annotation?(n=this.annotation,e&&(n=a(o(e),n)),this.loadFile(n)):void 0;if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof r)return i.fromSourceMap(t).toString();if(t instanceof i)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var n=t(e);if(n){e=this.loadFile(n);if(e)return e;throw new Error("Unable to load previous source map: "+n.toString())}}},{key:"startWith",value:function(e,t){return!!e&&e.substr(0,t.length)===t}},{key:"withContent",value:function(){return!!(this.consumer().sourcesContent&&0<this.consumer().sourcesContent.length)}}]),(iw=s)["default"]=s),iw}function Yw(){var n,a,u,s,r,i,e,l,o,c,f,d,t;return sw||(sw=1,n=V0.SourceMapConsumer,t=V0.SourceMapGenerator,a=V0.fileURLToPath,u=V0.pathToFileURL,s=V0.isAbsolute,r=V0.resolve,i=(rw?nw:(rw=1,nw={nanoid:function(){for(var e="",t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:21;t--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return e},customAlphabet:function(n){var r=1<arguments.length&&arguments[1]!==undefined?arguments[1]:21;return function(){for(var e="",t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:r;t--;)e+=n[Math.random()*n.length|0];return e}}})).nanoid,e=V0,l=G0(),o=Kw(),c=Symbol("fromOffsetCache"),f=Boolean(n&&t),d=Boolean(r&&s),t=k(function n(e){var t=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};if(b(this,n),null==e||"object"===S(e)&&!e.toString)throw new Error("PostCSS received ".concat(e," instead of CSS string"));this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!d||/^\w+:\/\//.test(t.from)||s(t.from)?this.file=t.from:this.file=r(t.from)),d&&f&&(e=new o(this.css,t)).text&&(t=(this.map=e).consumer().file,!this.file)&&t&&(this.file=this.mapResolve(t)),this.file||(this.id="<input css "+i(6)+">"),this.map&&(this.map.file=this.from)},[{key:"error",value:function(e,t,n){var r,i,o,a=3<arguments.length&&arguments[3]!==undefined?arguments[3]:{},s=(t&&"object"===S(t)?(s=n,n="number"==typeof(i=t).offset?(t=(o=this.fromOffset(i.offset)).line,o.col):(t=i.line,i.column),i="number"==typeof s.offset?(r=(o=this.fromOffset(s.offset)).line,o.col):(r=s.line,s.column)):n||(t=(o=this.fromOffset(t)).line,n=o.col),this.origin(t,n,r,i));return(o=s?new l(e,void 0===s.endLine?s.line:{column:s.column,line:s.line},void 0===s.endLine?s.column:{column:s.endColumn,line:s.endLine},s.source,s.file,a.plugin):new l(e,void 0===r?t:{column:n,line:t},void 0===r?n:{column:i,line:r},this.css,this.file,a.plugin)).input={column:n,endColumn:i,endLine:r,line:t,source:this.css},this.file&&(u&&(o.input.url=u(this.file).toString()),o.input.file=this.file),o}},{key:"fromOffset",value:function(e){if(this[c])n=this[c];else{for(var t=this.css.split("\n"),n=new Array(t.length),r=0,i=0,o=t.length;i<o;i++)n[i]=r,r+=t[i].length+1;this[c]=n}var a=0;if(e>=n[n.length-1])a=n.length-1;else for(var s,u=n.length-2;a<u;)if(e<n[s=a+(u-a>>1)])u=s-1;else{if(!(e>=n[s+1])){a=s;break}a=s+1}return{col:e-n[a]+1,line:a+1}}},{key:"mapResolve",value:function(e){return/^\w+:\/\//.test(e)?e:r(this.map.consumer().sourceRoot||this.map.root||".",e)}},{key:"origin",value:function(e,t,n,r){if(!this.map)return!1;var i,o=this.map.consumer(),t=o.originalPositionFor({column:t,line:e});if(!t.source)return!1;"number"==typeof n&&(i=o.originalPositionFor({column:r,line:n}));e=s(t.source)?u(t.source):new URL(t.source,this.map.consumer().sourceRoot||u(this.map.mapFile)),r={column:t.column,endColumn:i&&i.column,endLine:i&&i.line,line:t.line,url:e.toString()};if("file:"===e.protocol){if(!a)throw new Error("file: protocol is not available in this PostCSS build");r.file=a(e)}n=o.sourceContentFor(t.source);return n&&(r.source=n),r}},{key:"toJSON",value:function(){for(var e={},t=0,n=["hasBOM","css","file","id"];t<n.length;t++){var r=n[t];null!=this[r]&&(e[r]=this[r])}return this.map&&(e.map=Ae({},this.map),e.map.consumerCache)&&(e.map.consumerCache=void 0),e}},{key:"from",get:function(){return this.file||this.id}}]),(aw=t)["default"]=t,e&&e.registerInput&&e.registerInput(t)),aw}function Xw(){if(lw)return uw;lw=1;var a=V0.SourceMapConsumer,t=V0.SourceMapGenerator,s=V0.dirname,n=V0.relative,r=V0.resolve,i=V0.sep,o=V0.pathToFileURL,u=Yw(),e=Boolean(a&&t),l=Boolean(s&&r&&n&&i);return uw=k(function U(e,t,n,r){b(this,U),this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map},[{key:"addAnnotation",value:function(){var e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map",t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}},{key:"applyPrevMaps",value:function(){var e,t=Me(this.previous());try{for(t.s();!(e=t.n()).done;){var n=e.value,r=this.toUrl(this.path(n.file)),i=n.root||s(n.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new a(n.text)).sourcesContent&&(o.sourcesContent=null):o=n.consumer(),this.map.applySourceMap(o,r,this.toUrl(this.path(i)))}}catch(Le){t.e(Le)}finally{t.f()}}},{key:"clearAnnotation",value:function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;0<=t;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}},{key:"generate",value:function(){var t;return this.clearAnnotation(),l&&e&&this.isMap()?this.generateMap():(t="",this.stringify(this.root,function(e){t+=e}),[t])}},{key:"generateMap",value:function(){var e;return this.root?this.generateString():1===this.previous().length?((e=this.previous()[0].consumer()).file=this.outputFile(),this.map=t.fromSourceMap(e,{ignoreInvalidMapping:!0})):(this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"})),this.isSourcesContent()&&this.setSourcesContent(),this.root&&0<this.previous().length&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}},{key:"generateString",value:function(){var r=this;this.css="",this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0});var i,o=1,a=1,s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(e,t,n){r.css+=e,t&&"end"!==n&&(s.generated.line=o,s.generated.column=a-1,t.source&&t.source.start?(s.source=r.sourcePath(t),s.original.line=t.source.start.line,s.original.column=t.source.start.column-1):(s.source="<no source>",s.original.line=1,s.original.column=0),r.map.addMapping(s)),(i=e.match(/\n/g))?(o+=i.length,i=e.lastIndexOf("\n"),a=e.length-i):a+=e.length,t&&"start"!==n&&(e=t.parent||{raws:{}},"decl"!==t.type&&("atrule"!==t.type||t.nodes)||t!==e.last||e.raws.semicolon)&&(t.source&&t.source.end?(s.source=r.sourcePath(t),s.original.line=t.source.end.line,s.original.column=t.source.end.column-1,s.generated.line=o,s.generated.column=a-2):(s.source="<no source>",s.original.line=1,s.original.column=0,s.generated.line=o,s.generated.column=a-1),r.map.addMapping(s))})}},{key:"isAnnotation",value:function(){return!!this.isInline()||("undefined"!=typeof this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))}},{key:"isInline",value:function(){var e;return"undefined"!=typeof this.mapOpts.inline?this.mapOpts.inline:(void 0===(e=this.mapOpts.annotation)||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))}},{key:"isMap",value:function(){return"undefined"!=typeof this.opts.map?!!this.opts.map:0<this.previous().length}},{key:"isSourcesContent",value:function(){return"undefined"!=typeof this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})}},{key:"outputFile",value:function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}},{key:"path",value:function(e){var t;return this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e)?e:this.memoizedPaths.get(e)||(t=this.opts.to?s(this.opts.to):".","string"==typeof this.mapOpts.annotation&&(t=s(r(t,this.mapOpts.annotation))),t=n(t,e),this.memoizedPaths.set(e,t),t)}},{key:"previous",value:function(){var e,t=this;return this.previousMaps||(this.previousMaps=[],this.root?this.root.walk(function(e){e.source&&e.source.input.map&&(e=e.source.input.map,t.previousMaps.includes(e)||t.previousMaps.push(e))}):(e=new u(this.originalCSS,this.opts)).map&&this.previousMaps.push(e.map)),this.previousMaps}},{key:"setSourcesContent",value:function(){var e,n=this,r={};this.root?this.root.walk(function(e){var t;e.source&&(t=e.source.input.from)&&!r[t]&&(r[t]=!0,t=n.usesFileUrls?n.toFileUrl(t):n.toUrl(n.path(t)),n.map.setSourceContent(t,e.source.input.css))}):this.css&&(e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>",this.map.setSourceContent(e,this.css))}},{key:"sourcePath",value:function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}},{key:"toBase64",value:function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}},{key:"toFileUrl",value:function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(o)return t=o(e).toString(),this.memoizedFileURLs.set(e,t),t;throw new Error("`map.absolute` option is not available in this PostCSS build")}},{key:"toUrl",value:function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===i&&(e=e.replace(/\\/g,"/"));t=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,t),t}}])}function Qw(){var e;return fw||(fw=1,e=$w(),F(t,e),e=k(t),(cw=e)["default"]=e),cw;function t(e){return b(this,t),(e=v(this,t,[e])).type="comment",e}}function eb(){var l,c,f,t,d,h,p,m,n,e;return hw||(hw=1,e=Vw(),d=e.isClean,h=e.my,p=Zw(),m=Qw(),e=$w(),F(g,e),(n=k(g,[{key:"append",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=0,i=t;r<i.length;r++){var o,a=i[r],a=this.normalize(a,this.last),s=Me(a);try{for(s.s();!(o=s.n()).done;){var u=o.value;this.proxyOf.nodes.push(u)}}catch(Le){s.e(Le)}finally{s.f()}}return this.markDirty(),this}},{key:"cleanRaws",value:function(e){if(V(g,"cleanRaws",this,3)([e]),this.nodes){var t,n=Me(this.nodes);try{for(n.s();!(t=n.n()).done;)t.value.cleanRaws(e)}catch(Le){n.e(Le)}finally{n.f()}}}},{key:"each",value:function(e){if(this.proxyOf.nodes){for(var t,n,r=this.getIterator();this.indexes[r]<this.proxyOf.nodes.length&&(t=this.indexes[r],!1!==(n=e(this.proxyOf.nodes[t],t)));)this.indexes[r]+=1;return delete this.indexes[r],n}}},{key:"every",value:function(e){return this.nodes.every(e)}},{key:"getIterator",value:function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e}},{key:"getProxyProcessor",value:function(){return{get:function(r,o){return"proxyOf"===o?r:r[o]&&("each"===o||"string"==typeof o&&o.startsWith("walk")?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r[o].apply(r,Fe(t.map(function(n){return"function"==typeof n?function(e,t){return n(e.toProxy(),t)}:n})))}:"every"===o||"some"===o?function(i){return r[o](function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return i.apply(void 0,[e.toProxy()].concat(n))})}:"root"===o?function(){return r.root().toProxy()}:"nodes"===o?r.nodes.map(function(e){return e.toProxy()}):"first"===o||"last"===o?r[o].toProxy():r[o])},set:function(e,t,n){return e[t]!==n&&(e[t]=n,"name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0}}}},{key:"index",value:function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}},{key:"insertAfter",value:function(e,t){var n,r,i,o=this.index(e),a=this.normalize(t,this.proxyOf.nodes[o]).reverse(),o=this.index(e),s=Me(a);try{for(s.s();!(n=s.n()).done;){var u=n.value;this.proxyOf.nodes.splice(o+1,0,u)}}catch(Le){s.e(Le)}finally{s.f()}for(i in this.indexes)o<(r=this.indexes[i])&&(this.indexes[i]=r+a.length);return this.markDirty(),this}},{key:"insertBefore",value:function(e,t){var n,r,i,o=this.index(e),a=this.normalize(t,this.proxyOf.nodes[o],0===o&&"prepend").reverse(),o=this.index(e),s=Me(a);try{for(s.s();!(n=s.n()).done;){var u=n.value;this.proxyOf.nodes.splice(o,0,u)}}catch(Le){s.e(Le)}finally{s.f()}for(i in this.indexes)o<=(r=this.indexes[i])&&(this.indexes[i]=r+a.length);return this.markDirty(),this}},{key:"normalize",value:function(e,t){var n=this;if("string"==typeof e)e=function W(e){return e.map(function(e){return e.nodes&&(e.nodes=W(e.nodes)),delete e.source,e})}(l(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){var r,i=Me(e=e.slice(0));try{for(i.s();!(r=i.n()).done;){var o=r.value;o.parent&&o.parent.removeChild(o,"ignore")}}catch(Le){i.e(Le)}finally{i.f()}}else if("root"===e.type&&"document"!==this.type){var a,s=Me(e=e.nodes.slice(0));try{for(s.s();!(a=s.n()).done;){var u=a.value;u.parent&&u.parent.removeChild(u,"ignore")}}catch(Le){s.e(Le)}finally{s.f()}}else if(e.type)e=[e];else if(e.prop){if("undefined"==typeof e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new p(e)]}else if(e.selector)e=[new c(e)];else if(e.name)e=[new f(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new m(e)]}return e.map(function(e){return e[h]||g.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[d]&&function c(e){if(e[d]=!1,e.proxyOf.nodes){var t,n=Me(e.proxyOf.nodes);try{for(n.s();!(t=n.n()).done;)c(t.value)}catch(Le){n.e(Le)}finally{n.f()}}}(e),"undefined"==typeof e.raws.before&&t&&"undefined"!=typeof t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e})}},{key:"prepend",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=Me(t=t.reverse());try{for(i.s();!(r=i.n()).done;){var o,a,s=r.value,u=this.normalize(s,this.first,"prepend").reverse(),l=Me(u);try{for(l.s();!(o=l.n()).done;){var c=o.value;this.proxyOf.nodes.unshift(c)}}catch(Le){l.e(Le)}finally{l.f()}for(a in this.indexes)this.indexes[a]=this.indexes[a]+u.length}}catch(Le){i.e(Le)}finally{i.f()}return this.markDirty(),this}},{key:"push",value:function(e){return(e.parent=this).proxyOf.nodes.push(e),this}},{key:"removeAll",value:function(){var e,t=Me(this.proxyOf.nodes);try{for(t.s();!(e=t.n()).done;)e.value.parent=void 0}catch(Le){t.e(Le)}finally{t.f()}return this.proxyOf.nodes=[],this.markDirty(),this}},{key:"removeChild",value:function(e){var t,n;for(n in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[n])>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}},{key:"replaceValues",value:function(t,n,r){return r||(r=n,n={}),this.walkDecls(function(e){n.props&&!n.props.includes(e.prop)||n.fast&&!e.value.includes(n.fast)||(e.value=e.value.replace(t,r))}),this.markDirty(),this}},{key:"some",value:function(e){return this.nodes.some(e)}},{key:"walk",value:function(r){return this.each(function(e,t){var n;try{n=r(e,t)}catch(b){throw e.addToError(b)}return n=!1!==n&&e.walk?e.walk(r):n})}},{key:"walkAtRules",value:function(n,r){return r?n instanceof RegExp?this.walk(function(e,t){if("atrule"===e.type&&n.test(e.name))return r(e,t)}):this.walk(function(e,t){if("atrule"===e.type&&e.name===n)return r(e,t)}):(r=n,this.walk(function(e,t){if("atrule"===e.type)return r(e,t)}))}},{key:"walkComments",value:function(n){return this.walk(function(e,t){if("comment"===e.type)return n(e,t)})}},{key:"walkDecls",value:function(n,r){return r?n instanceof RegExp?this.walk(function(e,t){if("decl"===e.type&&n.test(e.prop))return r(e,t)}):this.walk(function(e,t){if("decl"===e.type&&e.prop===n)return r(e,t)}):(r=n,this.walk(function(e,t){if("decl"===e.type)return r(e,t)}))}},{key:"walkRules",value:function(n,r){return r?n instanceof RegExp?this.walk(function(e,t){if("rule"===e.type&&n.test(e.selector))return r(e,t)}):this.walk(function(e,t){if("rule"===e.type&&e.selector===n)return r(e,t)}):(r=n,this.walk(function(e,t){if("rule"===e.type)return r(e,t)}))}},{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}])).registerParse=function(e){l=e},n.registerRule=function(e){c=e},n.registerAtRule=function(e){f=e},n.registerRoot=function(e){t=e},((dw=n)["default"]=n).rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,f.prototype):"rule"===e.type?Object.setPrototypeOf(e,c.prototype):"decl"===e.type?Object.setPrototypeOf(e,p.prototype):"comment"===e.type?Object.setPrototypeOf(e,m.prototype):"root"===e.type&&Object.setPrototypeOf(e,t.prototype),e[h]=!0,e.nodes&&e.nodes.forEach(function(e){n.rebuild(e)})}),dw;function g(){return b(this,g),v(this,g,arguments)}}function tb(){var t,n,e;return mw||(mw=1,e=eb(),F(r,e),(e=k(r,[{key:"toResult",value:function(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{};return new t(new n,this,e).stringify()}}])).registerLazyResult=function(e){t=e},e.registerProcessor=function(e){n=e},(pw=e)["default"]=e),pw;function r(e){return b(this,r),(e=v(this,r,[Ae({type:"document"},e)])).nodes||(e.nodes=[]),e}}function nb(){if(vw)return gw;vw=1;var t={};return gw=function(e){t[e]||(t[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))}}function rb(){var r;return ww||(ww=1,r=k(function r(e){var t,n=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};for(t in b(this,r),this.type="warning",this.text=e,n.node&&n.node.source&&(e=n.node.rangeBy(n),this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column),n)this[t]=n[t]},[{key:"toString",value:function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}]),(yw=r)["default"]=r),yw}function ib(){var n,r;return kw||(kw=1,n=rb(),r=k(function r(e,t,n){b(this,r),this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0},[{key:"toString",value:function(){return this.css}},{key:"warn",value:function(e){var t=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{},e=(t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin),new n(e,t));return this.messages.push(e),e}},{key:"warnings",value:function(){return this.messages.filter(function(e){return"warning"===e.type})}},{key:"content",get:function(){return this.css}}]),(bw=r)["default"]=r),bw}function ob(){var e,t;return Cw||(Cw=1,e=eb(),F(r,e),t=k(r,[{key:"append",value:function(){this.proxyOf.nodes||(this.nodes=[]);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return V(r,"append",this,3)(t)}},{key:"prepend",value:function(){this.proxyOf.nodes||(this.nodes=[]);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return V(r,"prepend",this,3)(t)}}]),(Ew=t)["default"]=t,e.registerAtRule(t)),Ew;function r(e){return b(this,r),(e=v(this,r,[e])).type="atrule",e}}function ab(){var t,n,e,r;return Ow||(Ow=1,e=eb(),F(o,e),(r=k(o,[{key:"normalize",value:function(e,t,n){e=V(o,"normalize",this,3)([e]);if(t)if("prepend"===n)1<this.nodes.length?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t){var r,i=Me(e);try{for(i.s();!(r=i.n()).done;)r.value.raws.before=t.raws.before}catch(Le){i.e(Le)}finally{i.f()}}return e}},{key:"removeChild",value:function(e,t){var n=this.index(e);return!t&&0===n&&1<this.nodes.length&&(this.nodes[1].raws.before=this.nodes[n].raws.before),V(o,"removeChild",this,3)([e])}},{key:"toResult",value:function(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{};return new t(new n,this,e).stringify()}}])).registerLazyResult=function(e){t=e},r.registerProcessor=function(e){n=e},Rw=r,e.registerRoot(r["default"]=r)),Rw;function o(e){return b(this,o),(e=v(this,o,[e])).type="root",e.nodes||(e.nodes=[]),e}}function sb(){var t;return Iw||(Iw=1,(xw=t={comma:function(e){return t.split(e,[","],!0)},space:function(e){return t.split(e,[" ","\n","\t"])},split:function(e,t,n){var r,i=[],o="",a=!1,s=0,u=!1,l="",c=!1,f=Me(e);try{for(f.s();!(r=f.n()).done;){var d=r.value;c?c=!1:"\\"===d?c=!0:u?d===l&&(u=!1):'"'===d||"'"===d?(u=!0,l=d):"("===d?s+=1:")"===d?0<s&&--s:0===s&&t.includes(d)&&(a=!0),a?(""!==o&&i.push(o.trim()),o="",a=!1):o+=d}}catch(Le){f.e(Le)}finally{f.f()}return!n&&""===o||i.push(o.trim()),i}})["default"]=t),xw}function ub(){var e,t,n;return Mw||(Mw=1,e=eb(),t=sb(),F(r,e),n=k(r,[{key:"selectors",get:function(){return t.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,t=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(t)}}]),(Tw=n)["default"]=n,e.registerRule(n)),Tw;function r(e){return b(this,r),(e=v(this,r,[e])).type="rule",e.nodes||(e.nodes=[]),e}}function lb(){if(Pw)return Aw;Pw=1;var p=Zw(),e=function(){if(_w)return Sw;_w=1;var w="'".charCodeAt(0),b='"'.charCodeAt(0),k="\\".charCodeAt(0),S="/".charCodeAt(0),_="\n".charCodeAt(0),E=" ".charCodeAt(0),C="\f".charCodeAt(0),R="\t".charCodeAt(0),O="\r".charCodeAt(0),x="[".charCodeAt(0),I="]".charCodeAt(0),T="(".charCodeAt(0),M=")".charCodeAt(0),A="{".charCodeAt(0),P="}".charCodeAt(0),L=";".charCodeAt(0),D="*".charCodeAt(0),N=":".charCodeAt(0),F="@".charCodeAt(0),U=/[\t\n\f\r "#'()/;[\\\]{}]/g,j=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,z=/.[\r\n"'(/\\]/,B=/[\da-f]/i;return Sw=function(t){var r,i,o,a,s,u,l,c,f,e=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{},d=t.css.valueOf(),h=e.ignoreErrors,p=d.length,m=0,g=[],v=[];function y(e){throw t.error("Unclosed "+e,m)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&p<=m},nextToken:function(e){if(v.length)return v.pop();if(!(p<=m)){var t=!!e&&e.ignoreUnclosed;switch(r=d.charCodeAt(m)){case _:case E:case R:case O:case C:for(i=m;i+=1,(r=d.charCodeAt(i))===E||r===_||r===R||r===O||r===C;);f=["space",d.slice(m,i)],m=i-1;break;case x:case I:case A:case P:case N:case L:case M:var n=String.fromCharCode(r);f=[n,n,m];break;case T:if(l=g.length?g.pop()[1]:"",c=d.charCodeAt(m+1),"url"===l&&c!==w&&c!==b&&c!==E&&c!==_&&c!==R&&c!==C&&c!==O){i=m;do{if(s=!1,-1===(i=d.indexOf(")",i+1))){if(h||t){i=m;break}y("bracket")}for(u=i;d.charCodeAt(u-1)===k;)--u,s=!s}while(s);f=["brackets",d.slice(m,i+1),m,i],m=i}else i=d.indexOf(")",m+1),l=d.slice(m,i+1),-1===i||z.test(l)?f=["(","(",m]:(f=["brackets",l,m,i],m=i);break;case w:case b:o=r===w?"'":'"',i=m;do{if(s=!1,-1===(i=d.indexOf(o,i+1))){if(h||t){i=m+1;break}y("string")}for(u=i;d.charCodeAt(u-1)===k;)--u,s=!s}while(s);f=["string",d.slice(m,i+1),m,i],m=i;break;case F:U.lastIndex=m+1,U.test(d),i=0===U.lastIndex?d.length-1:U.lastIndex-2,f=["at-word",d.slice(m,i+1),m,i],m=i;break;case k:for(i=m,a=!0;d.charCodeAt(i+1)===k;)i+=1,a=!a;if(r=d.charCodeAt(i+1),a&&r!==S&&r!==E&&r!==_&&r!==R&&r!==O&&r!==C&&(i+=1,B.test(d.charAt(i)))){for(;B.test(d.charAt(i+1));)i+=1;d.charCodeAt(i+1)===E&&(i+=1)}f=["word",d.slice(m,i+1),m,i],m=i;break;default:m=(r===S&&d.charCodeAt(m+1)===D?(0===(i=d.indexOf("*/",m+2)+1)&&(h||t?i=d.length:y("comment")),f=["comment",d.slice(m,i+1),m,i]):(j.lastIndex=m+1,j.test(d),i=0===j.lastIndex?d.length-1:j.lastIndex-2,f=["word",d.slice(m,i+1),m,i],g.push(f)),i)}return m++,f}},position:function(){return m}}}}(),n=Qw(),l=ob(),t=ab(),r=ub(),d={empty:!0,space:!0};return Aw=k(function D(e){b(this,D),this.input=e,this.root=new t,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}},[{key:"atrule",value:function(e){var t,n,r,i=new l;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,a=!1,s=[],u=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?u.push("("===t?")":"]"):"{"===t&&0<u.length?u.push("}"):t===u[u.length-1]&&u.pop(),0===u.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){a=!0;break}if("}"===t){if(0<s.length){for(n=s[r=s.length-1];n&&"space"===n[0];)n=s[--r];n&&(i.source.end=this.getPosition(n[3]||n[2]),i.source.end.offset++)}this.end(e);break}}if(s.push(e),this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(s),s.length?(i.raws.afterName=this.spacesAndCommentsFromStart(s),this.raw(i,"params",s),o&&(e=s[s.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),a&&(i.nodes=[],this.current=i)}},{key:"checkMissedSemicolon",value:function(e){var t=this.colon(e);if(!1!==t){for(var n,r=0,i=t-1;0<=i&&("space"===(n=e[i])[0]||2!==(r+=1));i--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}}},{key:"colon",value:function(e){var t,n,r,i,o=0,a=Me(e.entries());try{for(a.s();!(i=a.n()).done;){var s=Ne(i.value,2),u=s[0];if("("===(n=(t=s[1])[0])&&(o+=1),")"===n&&--o,0===o&&":"===n){if(r){if("word"===r[0]&&"progid"===r[1])continue;return u}this.doubleColon(t)}r=t}}catch(Le){a.e(Le)}finally{a.f()}return!1}},{key:"comment",value:function(e){var t=new n,e=(this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,e[1].slice(2,-2));/^\s*$/.test(e)?(t.text="",t.raws.left=e,t.raws.right=""):(e=e.match(/^(\s*)([^]*\S)(\s*)$/),t.text=e[2],t.raws.left=e[1],t.raws.right=e[3])}},{key:"createTokenizer",value:function(){this.tokenizer=e(this.input)}},{key:"decl",value:function(e,t){var n=new p;this.init(n,e[0][2]);var r,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(i[3]||i[2]||function(e){for(var t=e.length-1;0<=t;t--){var n=e[t],n=n[3]||n[2];if(n)return n}}(e)),n.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;n.prop+=e.shift()[1]}for(n.raws.between="";e.length;){if(":"===(r=e.shift())[0]){n.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),n.raws.between+=r[1]}"_"!==n.prop[0]&&"*"!==n.prop[0]||(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));for(var a,s=[];e.length&&("space"===(a=e[0][0])||"comment"===a);)s.push(e.shift());this.precheckMissedSemicolon(e);for(var u=e.length-1;0<=u;u--){if("!important"===(r=e[u])[1].toLowerCase()){n.important=!0;var l=this.stringFrom(e,u);" !important"!==(l=this.spacesFromEnd(e)+l)&&(n.raws.important=l);break}if("important"===r[1].toLowerCase()){for(var c=e.slice(0),f="",d=u;0<d;d--){var h=c[d][0];if(0===f.trim().indexOf("!")&&"space"!==h)break;f=c.pop()[1]+f}0===f.trim().indexOf("!")&&(n.important=!0,n.raws.important=f,e=c)}if("space"!==r[0]&&"comment"!==r[0])break}e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]})&&(n.raws.between+=s.map(function(e){return e[1]}).join(""),s=[]),this.raw(n,"value",s.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}},{key:"doubleColon",value:function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}},{key:"emptyRule",value:function(e){var t=new r;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}},{key:"end",value:function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}},{key:"endFile",value:function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}},{key:"freeSemicolon",value:function(e){this.spaces+=e[1],this.current.nodes&&(e=this.current.nodes[this.current.nodes.length-1])&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}},{key:"getPosition",value:function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}},{key:"init",value:function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}},{key:"other",value:function(e){for(var t,n=!1,r=!1,i=null,o=[],a=e[1].startsWith("--"),s=[],u=e;u;){if(t=u[0],s.push(u),"("===t||"["===t)i=i||u,o.push("("===t?")":"]");else if(a&&r&&"{"===t)i=i||u,o.push("}");else if(0===o.length){if(";"===t){if(r)return void this.decl(s,a);break}if("{"===t)return void this.rule(s);if("}"===t){this.tokenizer.back(s.pop()),n=!0;break}":"===t&&(r=!0)}else t===o[o.length-1]&&(o.pop(),0===o.length)&&(i=null);u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(n=!0),0<o.length&&this.unclosedBracket(i),n&&r){if(!a)for(;s.length&&("space"===(u=s[s.length-1][0])||"comment"===u);)this.tokenizer.back(s.pop());this.decl(s,a)}else this.unknownWord(s)}},{key:"parse",value:function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}},{key:"precheckMissedSemicolon",value:function(){}},{key:"raw",value:function(e,t,n,r){for(var i,o,a,s,u=n.length,l="",c=!0,f=0;f<u;f+=1)"space"===(a=(i=n[f])[0])&&f===u-1&&!r||"comment"===a&&(a=n[f-1]?n[f-1][0]:"empty",o=n[f+1]?n[f+1][0]:"empty",d[a]||d[o]||","===l.slice(-1))?c=!1:l+=i[1];c||(s=n.reduce(function(e,t){return e+t[1]},""),e.raws[t]={raw:s,value:l}),e[t]=l}},{key:"rule",value:function(e){e.pop();var t=new r;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}},{key:"spacesAndCommentsFromEnd",value:function(e){for(var t,n="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)n=e.pop()[1]+n;return n}},{key:"spacesAndCommentsFromStart",value:function(e){for(var t,n="";e.length&&("space"===(t=e[0][0])||"comment"===t);)n+=e.shift()[1];return n}},{key:"spacesFromEnd",value:function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t}},{key:"stringFrom",value:function(e,t){for(var n="",r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n}},{key:"unclosedBlock",value:function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}},{key:"unclosedBracket",value:function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}},{key:"unexpectedClose",value:function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}},{key:"unknownWord",value:function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}},{key:"unnamedAtrule",value:function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}}])}function cb(){var e,n,r;return Dw||(Dw=1,e=eb(),n=lb(),r=Yw(),Lw=t,e.registerParse(t["default"]=t)),Lw;function t(e,t){e=new r(e,t),e=new n(e);try{e.parse()}catch(P){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===P.name&&t&&t.from&&(/\.scss$/i.test(t.from)?P.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(t.from)?P.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(t.from)&&(P.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),P}return e.root}}function fb(){var f,a,n,r,u,s,i,c,l,e,o,d,h,p,t,m;return Fw||(Fw=1,t=Vw(),f=t.isClean,a=t.my,n=Xw(),r=Jw(),u=eb(),s=tb(),i=nb(),c=ib(),l=cb(),e=ab(),o={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},d={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},h={Once:!0,postcssPlugin:!0,prepare:!0},p={},(t=k(function s(e,t,n){var r,i=this;if(b(this,s),this.stringified=!1,this.processed=!1,"object"!==S(t)||null===t||"root"!==t.type&&"document"!==t.type)if(t instanceof s||t instanceof c)r=w(t.root),t.map&&("undefined"==typeof n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=t.map);else{var o=l;n.syntax&&(o=n.syntax.parse),(o=n.parser?n.parser:o).parse&&(o=o.parse);try{r=o(t,n)}catch(X){this.processed=!0,this.error=X}r&&!r[a]&&u.rebuild(r)}else r=w(t);this.result=new c(e,r,n),this.helpers=Ae(Ae({},p),{},{postcss:p,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===S(e)&&e.prepare?Ae(Ae({},e),e.prepare(i.result)):e})},[{key:"async",value:function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}},{key:"catch",value:function(e){return this["async"]()["catch"](e)}},{key:"finally",value:function(e){return this["async"]().then(e,e)}},{key:"getAsyncError",value:function(){throw new Error("Use process(css).then(cb) to work with async plugins")}},{key:"handleError",value:function(e,t){var n,r,i,o,a,s=this.result.lastPlugin;try{t&&t.addToError(e),"CssSyntaxError"!==(this.error=e).name||e.plugin?s.postcssVersion&&"production"!==process.env.NODE_ENV&&(n=s.postcssPlugin,r=s.postcssVersion,i=this.result.processor.version,o=r.split("."),a=i.split("."),o[0]!==a[0]||parseInt(o[1])>parseInt(a[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+i+", but "+n+" uses "+r+". Perhaps this is the source of the error below."):(e.plugin=s.postcssPlugin,e.setMessage())}catch(Le){console&&console.error&&console.error(Le)}return e}},{key:"prepareVisitors",value:function(){var r=this;this.listeners={};var e,t=function(e,t,n){r.listeners[t]||(r.listeners[t]=[]),r.listeners[t].push([e,n])},n=Me(this.plugins);try{for(n.s();!(e=n.n()).done;){var i=e.value;if("object"===S(i))for(var o in i){if(!d[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event ".concat(o," in ").concat(i.postcssPlugin,". Try to update PostCSS (").concat(this.processor.version," now)."));if(!h[o])if("object"===S(i[o]))for(var a in i[o])t(i,"*"===a?o:o+"-"+a.toLowerCase(),i[o][a]);else"function"==typeof i[o]&&t(i,o,i[o])}}}catch(Le){n.e(Le)}finally{n.f()}this.hasListener=0<Object.keys(this.listeners).length}},{key:"runAsync",value:(m=A(B().m(function e(){var t,i,n,r,o,a,s,u,l,c=this;return B().w(function(e){for(;;)switch(e.p=e.n){case 0:this.plugin=0,t=0;case 1:if(t<this.plugins.length){if(s=this.plugins[t],g(s=this.runOnRoot(s)))return e.p=2,e.n=3,s;e.n=5}else e.n=6;break;case 3:e.n=5;break;case 4:throw e.p=4,s=e.v,this.handleError(s);case 5:t++,e.n=1;break;case 6:if(this.prepareVisitors(),!this.hasListener){e.n=21;break}i=this.result.root;case 7:if(i[f]){e.n=14;break}i[f]=!0,n=[y(i)];case 8:if(0<n.length){if(g(u=this.visitTick(n)))return e.p=9,e.n=10,u;e.n=12}else e.n=13;break;case 10:e.n=12;break;case 11:throw e.p=11,u=e.v,l=n[n.length-1].node,this.handleError(u,l);case 12:e.n=8;break;case 13:e.n=7;break;case 14:if(!this.listeners.OnceExit){e.n=21;break}r=Me(this.listeners.OnceExit),e.p=15,a=B().m(function d(){var t,n,r;return B().w(function(e){for(;;)switch(e.p=e.n){case 0:if(n=Ne(o.value,2),r=n[0],t=n[1],c.result.lastPlugin=r,e.p=1,"document"===i.type)return n=i.nodes.map(function(e){return t(e,c.helpers)}),e.n=2,Promise.all(n);e.n=3;break;case 2:e.n=4;break;case 3:return e.n=4,t(i,c.helpers);case 4:e.n=6;break;case 5:throw e.p=5,r=e.v,c.handleError(r);case 6:return e.a(2)}},d,null,[[1,5]])}),r.s();case 16:if((o=r.n()).done){e.n=18;break}return e.d(H(a()),17);case 17:e.n=16;break;case 18:e.n=20;break;case 19:e.p=19,l=e.v,r.e(l);case 20:return e.p=20,r.f(),e.f(20);case 21:return this.processed=!0,e.a(2,this.stringify())}},e,this,[[15,19,20,21],[9,11],[2,4]])})),function(){return m.apply(this,arguments)})},{key:"runOnRoot",value:function(t){var e,n=this;this.result.lastPlugin=t;try{return"object"===S(t)&&t.Once?"document"===this.result.root.type?g((e=this.result.root.nodes.map(function(e){return t.Once(e,n.helpers)}))[0])?Promise.all(e):e:t.Once(this.result.root,this.helpers):"function"==typeof t?t(this.result.root,this.result):void 0}catch(X){throw this.handleError(X)}}},{key:"stringify",value:function(){if(this.error)throw this.error;var e,t;return this.stringified||(this.stringified=!0,this.sync(),t=this.result.opts,e=r,t.syntax&&(e=t.syntax.stringify),(e=t.stringifier?t.stringifier:e).stringify&&(e=e.stringify),t=new n(e,this.result.root,this.result.opts).generate(),this.result.css=t[0],this.result.map=t[1]),this.result}},{key:"sync",value:function(){if(this.error)throw this.error;if(!this.processed){if(this.processed=!0,this.processing)throw this.getAsyncError();var e,t=Me(this.plugins);try{for(t.s();!(e=t.n()).done;){var n=e.value;if(g(this.runOnRoot(n)))throw this.getAsyncError()}}catch(Le){t.e(Le)}finally{t.f()}if(this.prepareVisitors(),this.hasListener){for(var r=this.result.root;!r[f];)r[f]=!0,this.walkSync(r);if(this.listeners.OnceExit)if("document"===r.type){var i,o=Me(r.nodes);try{for(o.s();!(i=o.n()).done;){var a=i.value;this.visitSync(this.listeners.OnceExit,a)}}catch(Le){o.e(Le)}finally{o.f()}}else this.visitSync(this.listeners.OnceExit,r)}}return this.result}},{key:"then",value:function(e,t){return"production"===process.env.NODE_ENV||"from"in this.opts||i("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."),this["async"]().then(e,t)}},{key:"toString",value:function(){return this.css}},{key:"visitSync",value:function(e,t){var n,r=Me(e);try{for(r.s();!(n=r.n()).done;){var i=Ne(n.value,2),o=i[0],a=i[1],s=(this.result.lastPlugin=o,void 0);try{s=a(t,this.helpers)}catch(u){throw this.handleError(u,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(g(s))throw this.getAsyncError()}}catch(Le){r.e(Le)}finally{r.f()}}},{key:"visitTick",value:function(e){var t=e[e.length-1],n=t.node,r=t.visitors;if("root"===n.type||"document"===n.type||n.parent){if(0<r.length&&t.visitorIndex<r.length){var i=Ne(r[t.visitorIndex],2),o=i[0],i=i[1];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return i(n.toProxy(),this.helpers)}catch(c){throw this.handleError(c,n)}}if(0!==t.iterator){for(var a,s=t.iterator;a=n.nodes[n.indexes[s]];)if(n.indexes[s]+=1,!a[f])return a[f]=!0,void e.push(y(a));t.iterator=0,delete n.indexes[s]}for(var u=t.events;t.eventIndex<u.length;){var l=u[t.eventIndex];if(t.eventIndex+=1,0===l)return void(n.nodes&&n.nodes.length&&(n[f]=!0,t.iterator=n.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}}e.pop()}},{key:"walkSync",value:function(e){var t=this;e[f]=!0;var n,r=Me(v(e));try{for(r.s();!(n=r.n()).done;){var i=n.value;if(0===i)e.nodes&&e.each(function(e){e[f]||t.walkSync(e)});else{var o=this.listeners[i];if(o&&this.visitSync(o,e.toProxy()))return}}}catch(Le){r.e(Le)}finally{r.f()}}},{key:"warnings",value:function(){return this.sync().warnings()}},{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}])).registerPostcss=function(e){p=e},Nw=t,e.registerLazyResult(t["default"]=t),s.registerLazyResult(t)),Nw;function g(e){return"object"===S(e)&&"function"==typeof e.then}function v(e){var t=!1,n=o[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[n,n+"-"+t,0,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:e.append?[n,0,n+"Exit"]:[n,n+"Exit"]}function y(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:v(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function w(e){return e[f]=!1,e.nodes&&e.nodes.forEach(w),e}}function db(){var n,r,t,e,i,o,a,s,u,l,c;return Bw||(Bw=1,jw||(jw=1,o=Xw(),a=Jw(),s=nb(),u=cb(),l=ib(),c=k(function c(e,t,n){b(this,c),t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;var e=a,r=(this.result=new l(this._processor,void 0,this._opts),this.result.css=t,this),n=(Object.defineProperty(this.result,"root",{get:function(){return r.root}}),new o(e,void 0,this._opts,t));n.isMap()?(t=(e=Ne(n.generate(),2))[0],e=e[1],t&&(this.result.css=t),e&&(this.result.map=e)):(n.clearAnnotation(),this.result.css=n.css)},[{key:"async",value:function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}},{key:"catch",value:function(e){return this["async"]()["catch"](e)}},{key:"finally",value:function(e){return this["async"]().then(e,e)}},{key:"sync",value:function(){if(this.error)throw this.error;return this.result}},{key:"then",value:function(e,t){return"production"===process.env.NODE_ENV||"from"in this._opts||s("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."),this["async"]().then(e,t)}},{key:"toString",value:function(){return this._css}},{key:"warnings",value:function(){return[]}},{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=u;try{e=t(this._css,this._opts)}catch(X){this.error=X}if(this.error)throw this.error;return this._root=e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),(Uw=c)["default"]=c),n=Uw,r=fb(),t=tb(),e=ab(),i=k(function t(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:[];b(this,t),this.version="8.4.38",this.plugins=this.normalize(e)},[{key:"normalize",value:function(e){var t,n=[],r=Me(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===S(i)&&Array.isArray(i.plugins))n=n.concat(i.plugins);else if("object"===S(i)&&i.postcssPlugin)n.push(i);else if("function"==typeof i)n.push(i);else{if("object"!==S(i)||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}}}catch(Le){r.e(Le)}finally{r.f()}return n}},{key:"process",value:function(e){var t=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};return new(this.plugins.length||t.parser||t.stringifier||t.syntax?r:n)(this,e,t)}},{key:"use",value:function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}]),(zw=i)["default"]=i,e.registerProcessor(i),t.registerProcessor(i)),zw}s||(s=1,o=G0(),hb=Zw(),Wn=fb(),Og=eb(),pb=db(),Te=Jw(),q_||(q_=1,bb=Zw(),kb=Kw(),Sb=Qw(),_b=ob(),Eb=Yw(),Cb=ab(),Rb=ub(),(Ww=Ob)["default"]=Ob),nr=Ww,mb=tb(),lt=rb(),gb=Qw(),vb=ob(),i=ib(),xe=Yw(),In=cb(),Oe=sb(),yb=ub(),wb=ab(),fa=$w(),xb.plugin=function(t,n){var e,r=!1;function i(){console&&console.warn&&!r&&(r=!0,console.warn(t+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG)&&process.env.LANG.startsWith("cn")&&console.warn(t+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226");var e=n.apply(void 0,arguments);return e.postcssPlugin=t,e.postcssVersion=(new pb).version,e}return Object.defineProperty(i,"postcss",{get:function(){return e=e||i()}}),i.process=function(e,t,n){return xb([i(n)]).process(e,t)},i},xb.stringify=Te,xb.parse=In,xb.fromJSON=nr,xb.list=Oe,xb.comment=function(e){return new gb(e)},xb.atRule=function(e){return new vb(e)},xb.decl=function(e){return new hb(e)},xb.rule=function(e){return new yb(e)},xb.root=function(e){return new wb(e)},xb.document=function(e){return new mb(e)},xb.CssSyntaxError=o,xb.Declaration=hb,xb.Container=Og,xb.Processor=pb,xb.Document=mb,xb.Comment=gb,xb.Warning=lt,xb.AtRule=vb,xb.Result=i,xb.Input=xe,xb.Rule=yb,xb.Root=wb,xb.Node=fa,Wn.registerPostcss(xb),(Hw=xb)["default"]=xb);var hb,pb,mb,gb,vb,yb,wb,bb,kb,Sb,_b,Eb,Cb,Rb,a=(Ar=Hw)&&Ar.__esModule&&Object.prototype.hasOwnProperty.call(Ar,"default")?Ar["default"]:Ar;function Ob(e,t){if(Array.isArray(e))return e.map(function(e){return Ob(e)});var n,r=e.inputs,i=z(e,jy);if(r){t=[];var o,a=Me(r);try{for(a.s();!(o=a.n()).done;){var s=Ae(Ae({},o.value),{},{__proto__:Eb.prototype});s.map&&(s.map=Ae(Ae({},s.map),{},{__proto__:kb.prototype})),t.push(s)}}catch(Le){a.e(Le)}finally{a.f()}}if(i.nodes&&(i.nodes=e.nodes.map(function(e){return Ob(e,t)})),i.source&&(n=(r=i.source).inputId,r=z(r,zy),i.source=r,null!=n)&&(i.source.input=t[n]),"root"===i.type)return new Cb(i);if("decl"===i.type)return new bb(i);if("rule"===i.type)return new Rb(i);if("comment"===i.type)return new Sb(i);if("atrule"===i.type)return new _b(i);throw new Error("Unknown node type: "+e.type)}function xb(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new pb(t)}a.stringify;var Ib=Object.defineProperty,Tb=function(e,t,n){return e=e,t="symbol"!==S(t)?t+"":t,n=n,t in e?Ib(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n};Date.now().toString();var Mb,Ab={exports:{}};var Pb,Lb,Db,Nb,Fb,Ub=(Db=Object.freeze(Object.defineProperty({__proto__:null,"default":{}},Symbol.toStringTag,{value:"Module"}))).__esModule?Db:("function"==typeof(Nb=Db["default"])?(Fb=function Db(){return this instanceof Db?Reflect.construct(Nb,arguments,this.constructor):Nb.apply(this,arguments)}).prototype=Nb.prototype:Fb={},Object.defineProperty(Fb,"__esModule",{value:!0}),Object.keys(Db).forEach(function(e){var t=Object.getOwnPropertyDescriptor(Db,e);Object.defineProperty(Fb,e,t.get?t:{enumerable:!0,get:function(){return Db[e]}})}),Fb);function jb(){var f,d,e,t,n;return Lb||(Lb=1,Mb||(Mb=1,t=String,Ab.exports=(n=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t}})(),Ab.exports.createColors=n),f=Ab.exports,d=Ub,n=$(Error),F(s,n),e=k(s,[{key:"setMessage",value:function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file||"<css input>","undefined"!=typeof this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}},{key:"showSourceCode",value:function(e){var r=this;if(!this.source)return"";var t=this.source;null==e&&(e=f.isColorSupported);var n,i,o,a,s,t=(t=d&&e?d(t):t).split(/\r?\n/),u=Math.max(this.line-3,0),l=Math.min(this.line+2,t.length),c=String(l).length;return e?(e=f.createColors(!0),n=e.bold,i=e.gray,o=e.red,a=function(e){return n(o(e))},s=function(e){return i(e)}):a=s=function(e){return e},t.slice(u,l).map(function(e,t){var t=u+1+t,n=" "+(" "+t).slice(-c)+" | ";return t===r.line?(t=s(n.replace(/\d/g," "))+e.slice(0,r.column-1).replace(/[^\t]/g," "),a(">")+s(n)+e+"\n "+t+a("^")):" "+s(n)+e}).join("\n")}},{key:"toString",value:function(){var e=(e=this.showSourceCode())&&"\n\n"+e+"\n";return this.name+": "+this.message+e}}]),(Pb=e)["default"]=e),Pb;function s(e,t,n,r,i,o){var a;return b(this,s),(a=v(this,s,[e])).name="CssSyntaxError",a.reason=e,i&&(a.file=i),r&&(a.source=r),o&&(a.plugin=o),void 0!==t&&void 0!==n&&("number"==typeof t?(a.line=t,a.column=n):(a.line=t.line,a.column=t.column,a.endLine=n.line,a.endColumn=n.column)),a.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(a,s),a}}var zb,Bb,Wb,Hb,qb,Vb,Gb,Jb,$b,Zb,Kb,Yb,Xb,Qb,e1,t1,n1,r1,i1,o1,a1,s1,u1,l1,c1,f1,d1,h1,p1,m1,g1,v1,y1,w1,b1,k1,S1,_1,E1,C1,R1,O1,x1,I1,T1,M1,A1,P1,L1,D1,N1,F1={};function U1(){return zb||(zb=1,F1.isClean=Symbol("isClean"),F1.my=Symbol("my")),F1}function j1(){var a,t;return Wb||(a={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!(Wb=1)},t=k(function t(e){b(this,t),this.builder=e},[{key:"atrule",value:function(e,t){var n="@"+e.name,r=e.params?this.rawValue(e,"params"):"";"undefined"!=typeof e.raws.afterName?n+=e.raws.afterName:r&&(n+=" "),e.nodes?this.block(e,n+r):(t=(e.raws.between||"")+(t?";":""),this.builder(n+r+t,e))}},{key:"beforeAfter",value:function(e,t){for(var n="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose"),r=e.parent,i=0;r&&"root"!==r.type;)i+=1,r=r.parent;if(n.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var a=0;a<i;a++)n+=o}return n}},{key:"block",value:function(e,t){var n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),(t=e.nodes&&e.nodes.length?(this.body(e),this.raw(e,"after")):this.raw(e,"after","emptyBody"))&&this.builder(t),this.builder("}",e,"end")}},{key:"body",value:function(e){for(var t=e.nodes.length-1;0<t&&"comment"===e.nodes[t].type;)--t;for(var n=this.raw(e,"semicolon"),r=0;r<e.nodes.length;r++){var i=e.nodes[r],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==r||n)}}},{key:"comment",value:function(e){var t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)}},{key:"decl",value:function(e,t){var n=this.raw(e,"between","colon"),n=e.prop+n+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)}},{key:"document",value:function(e){this.body(e)}},{key:"raw",value:function(e,t,n){var r;if(t&&void 0!==(r=e.raws[t]))return r;var i,o=e.parent;if("before"===(n=n||t)){if(!o||"root"===o.type&&o.first===e)return"";if(o&&"document"===o.type)return""}return o?((o=e.root()).rawCache||(o.rawCache={}),"undefined"!=typeof o.rawCache[n]?o.rawCache[n]:"before"===n||"after"===n?this.beforeAfter(e,n):(this[i="raw"+((i=n)[0].toUpperCase()+i.slice(1))]?r=this[i](o,e):o.walk(function(e){if(void 0!==(r=e.raws[t]))return!1}),void 0===r&&(r=a[n]),o.rawCache[n]=r)):a[n]}},{key:"rawBeforeClose",value:function(e){var t;return e.walk(function(e){if(e.nodes&&0<e.nodes.length&&"undefined"!=typeof e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t=t&&t.replace(/\S/g,"")}},{key:"rawBeforeComment",value:function(e,t){var n;return e.walkComments(function(e){if("undefined"!=typeof e.raws.before)return(n=e.raws.before).includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),n=void 0===n?this.raw(t,null,"beforeDecl"):n&&n.replace(/\S/g,"")}},{key:"rawBeforeDecl",value:function(e,t){var n;return e.walkDecls(function(e){if("undefined"!=typeof e.raws.before)return(n=e.raws.before).includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),n=void 0===n?this.raw(t,null,"beforeRule"):n&&n.replace(/\S/g,"")}},{key:"rawBeforeOpen",value:function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t}},{key:"rawBeforeRule",value:function(t){var n;return t.walk(function(e){if(e.nodes&&(e.parent!==t||t.first!==e)&&"undefined"!=typeof e.raws.before)return(n=e.raws.before).includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),n=n&&n.replace(/\S/g,"")}},{key:"rawColon",value:function(e){var t;return e.walkDecls(function(e){if("undefined"!=typeof e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t}},{key:"rawEmptyBody",value:function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t}},{key:"rawIndent",value:function(n){return n.raws.indent||(n.walk(function(e){var t=e.parent;if(t&&t!==n&&t.parent&&t.parent===n&&"undefined"!=typeof e.raws.before)return t=e.raws.before.split("\n"),r=(r=t[t.length-1]).replace(/\S/g,""),!1}),r);var r}},{key:"rawSemicolon",value:function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t}},{key:"rawValue",value:function(e,t){var n=e[t],t=e.raws[t];return t&&t.value===n?t.raw:n}},{key:"root",value:function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}},{key:"rule",value:function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}},{key:"stringify",value:function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}}]),(Bb=t)["default"]=t),Bb}function z1(){var n;return qb||(qb=1,n=j1(),(Hb=e)["default"]=e),Hb;function e(e,t){new n(t).stringify(e)}}function B1(){var o,a,s,i,n,r,e;return Gb||(Gb=1,a=(o=U1()).isClean,s=o.my,i=jb(),n=j1(),r=z1(),e=k(function o(){var e,t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{};for(e in b(this,o),this.raws={},this[a]=!1,this[s]=!0,t)if("nodes"===e){this.nodes=[];var n,r=Me(t[e]);try{for(r.s();!(n=r.n()).done;){var i=n.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}catch(Le){r.e(Le)}finally{r.f()}}else this[e]=t[e]},[{key:"addToError",value:function(e){var t;return e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)&&(t=this.source,e.stack=e.stack.replace(/\n\s{4}at /,"$&".concat(t.input.from,":").concat(t.start.line,":").concat(t.start.column,"$&"))),e}},{key:"after",value:function(e){return this.parent.insertAfter(this,e),this}},{key:"assign",value:function(){var e,t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{};for(e in t)this[e]=t[e];return this}},{key:"before",value:function(e){return this.parent.insertBefore(this,e),this}},{key:"cleanRaws",value:function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}},{key:"clone",value:function(){var e,t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{},n=function a(e,t){var n,r,i,o=new e.constructor;for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n&&(i=S(r=e[n]),"parent"===n&&"object"===i?t&&(o[n]=t):"source"===n?o[n]=r:Array.isArray(r)?o[n]=r.map(function(e){return a(e,o)}):("object"===i&&null!==r&&(r=a(r)),o[n]=r));return o}(this);for(e in t)n[e]=t[e];return n}},{key:"cloneAfter",value:function(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{},e=this.clone(e);return this.parent.insertAfter(this,e),e}},{key:"cloneBefore",value:function(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{},e=this.clone(e);return this.parent.insertBefore(this,e),e}},{key:"error",value:function(e){var t,n,r=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};return this.source?(t=(n=this.rangeBy(r)).end,this.source.input.error(e,{column:(n=n.start).column,line:n.line},{column:t.column,line:t.line},r)):new i(e)}},{key:"getProxyProcessor",value:function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,n){return e[t]!==n&&(e[t]=n,"prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0}}}},{key:"markDirty",value:function(){if(this[a]){this[a]=!1;for(var e=this;e=e.parent;)e[a]=!1}}},{key:"next",value:function(){var e;if(this.parent)return e=this.parent.index(this),this.parent.nodes[e+1]}},{key:"positionBy",value:function(e,t){var n=this.source.start;return e.index?n=this.positionInside(e.index,t):e.word&&-1!==(e=(t=this.toString()).indexOf(e.word))&&(n=this.positionInside(e,t)),n}},{key:"positionInside",value:function(e,t){for(var n=t||this.toString(),r=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===n[o]?i+=r=1:r+=1;return{column:r,line:i}}},{key:"prev",value:function(){var e;if(this.parent)return e=this.parent.index(this),this.parent.nodes[e-1]}},{key:"rangeBy",value:function(e){var t,n,r={column:this.source.start.column,line:this.source.start.line},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};return e.word?-1!==(n=(t=this.toString()).indexOf(e.word))&&(r=this.positionInside(n,t),i=this.positionInside(n+e.word.length,t)):(e.start?r={column:e.start.column,line:e.start.line}:e.index&&(r=this.positionInside(e.index)),e.end?i={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?i=this.positionInside(e.endIndex):e.index&&(i=this.positionInside(e.index+1))),{end:i=i.line<r.line||i.line===r.line&&i.column<=r.column?{column:r.column+1,line:r.line}:i,start:r}}},{key:"raw",value:function(e,t){return(new n).raw(this,e,t)}},{key:"remove",value:function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}},{key:"replaceWith",value:function(){if(this.parent){for(var e=this,t=!1,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];for(var o=0,a=r;o<a.length;o++){var s=a[o];s===this?t=!0:t?(this.parent.insertAfter(e,s),e=s):this.parent.insertBefore(e,s)}t||this.remove()}return this}},{key:"root",value:function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}},{key:"toJSON",value:function(e,t){var n,r,i,o={},a=null==t,s=(t=t||new Map,0);for(n in this)Object.prototype.hasOwnProperty.call(this,n)&&"parent"!==n&&"proxyCache"!==n&&(r=this[n],Array.isArray(r)?o[n]=r.map(function(e){return"object"===S(e)&&e.toJSON?e.toJSON(null,t):e}):"object"===S(r)&&r.toJSON?o[n]=r.toJSON(null,t):"source"===n?(null==(i=t.get(r.input))&&(i=s,t.set(r.input,s),s++),o[n]={end:r.end,inputId:i,start:r.start}):o[n]=r);return a&&(o.inputs=Fe(t.keys()).map(function(e){return e.toJSON()})),o}},{key:"toProxy",value:function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}},{key:"toString",value:function(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:r,t=(e.stringify&&(e=e.stringify),"");return e(this,function(e){t+=e}),t}},{key:"warn",value:function(e,t,n){var r,i={node:this};for(r in n)i[r]=n[r];return e.warn(t,i)}},{key:"proxyOf",get:function(){return this}}]),(Vb=e)["default"]=e),Vb}function W1(){var e;return $b||($b=1,e=B1(),F(t,e),e=k(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),(Jb=e)["default"]=e),Jb;function t(e){return b(this,t),e&&"undefined"!=typeof e.value&&"string"!=typeof e.value&&(e=Ae(Ae({},e),{},{value:String(e.value)})),(e=v(this,t,[e])).type="decl",e}}function H1(){var r,i,t,n,o,a,s;return Xb||(Xb=1,r=Ub.SourceMapConsumer,i=Ub.SourceMapGenerator,t=Ub.existsSync,n=Ub.readFileSync,o=Ub.dirname,a=Ub.join,s=k(function s(e,t){b(this,s),!1!==t.map&&(this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:"),e=t.map?t.map.prev:void 0,e=this.loadMap(t.from,e),!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=o(this.mapFile)),e)&&(this.text=e)},[{key:"consumer",value:function(){return this.consumerCache||(this.consumerCache=new r(this.text)),this.consumerCache}},{key:"decodeInline",value:function(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var t=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+t)}},{key:"getAnnotationURL",value:function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}},{key:"isMap",value:function(e){return"object"===S(e)&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}},{key:"loadAnnotation",value:function(e){var t,n=e.match(/\/\*\s*# sourceMappingURL=/gm);n&&(n=e.lastIndexOf(n.pop()),t=e.indexOf("*/",n),-1<n)&&-1<t&&(this.annotation=this.getAnnotationURL(e.substring(n,t)))}},{key:"loadFile",value:function(e){if(this.root=o(e),t(e))return this.mapFile=e,n(e,"utf-8").toString().trim()}},{key:"loadMap",value:function(e,t){if(!1===t)return!1;if(!t)return this.inline?this.decodeInline(this.annotation):this.annotation?(n=this.annotation,e&&(n=a(o(e),n)),this.loadFile(n)):void 0;if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof r)return i.fromSourceMap(t).toString();if(t instanceof i)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var n=t(e);if(n){e=this.loadFile(n);if(e)return e;throw new Error("Unable to load previous source map: "+n.toString())}}},{key:"startWith",value:function(e,t){return!!e&&e.substr(0,t.length)===t}},{key:"withContent",value:function(){return!!(this.consumer().sourcesContent&&0<this.consumer().sourcesContent.length)}}]),(Yb=s)["default"]=s),Yb}function q1(){var n,a,u,s,r,i,e,l,o,c,f,d,t;return e1||(e1=1,n=Ub.SourceMapConsumer,t=Ub.SourceMapGenerator,a=Ub.fileURLToPath,u=Ub.pathToFileURL,s=Ub.isAbsolute,r=Ub.resolve,i=(Kb?Zb:(Kb=1,Zb={nanoid:function(){for(var e="",t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:21;t--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return e},customAlphabet:function(n){var r=1<arguments.length&&arguments[1]!==undefined?arguments[1]:21;return function(){for(var e="",t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:r;t--;)e+=n[Math.random()*n.length|0];return e}}})).nanoid,e=Ub,l=jb(),o=H1(),c=Symbol("fromOffsetCache"),f=Boolean(n&&t),d=Boolean(r&&s),t=k(function n(e){var t=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};if(b(this,n),null==e||"object"===S(e)&&!e.toString)throw new Error("PostCSS received ".concat(e," instead of CSS string"));this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!d||/^\w+:\/\//.test(t.from)||s(t.from)?this.file=t.from:this.file=r(t.from)),d&&f&&(e=new o(this.css,t)).text&&(t=(this.map=e).consumer().file,!this.file)&&t&&(this.file=this.mapResolve(t)),this.file||(this.id="<input css "+i(6)+">"),this.map&&(this.map.file=this.from)},[{key:"error",value:function(e,t,n){var r,i,o,a=3<arguments.length&&arguments[3]!==undefined?arguments[3]:{},s=(t&&"object"===S(t)?(s=n,n="number"==typeof(i=t).offset?(t=(o=this.fromOffset(i.offset)).line,o.col):(t=i.line,i.column),i="number"==typeof s.offset?(r=(o=this.fromOffset(s.offset)).line,o.col):(r=s.line,s.column)):n||(t=(o=this.fromOffset(t)).line,n=o.col),this.origin(t,n,r,i));return(o=s?new l(e,void 0===s.endLine?s.line:{column:s.column,line:s.line},void 0===s.endLine?s.column:{column:s.endColumn,line:s.endLine},s.source,s.file,a.plugin):new l(e,void 0===r?t:{column:n,line:t},void 0===r?n:{column:i,line:r},this.css,this.file,a.plugin)).input={column:n,endColumn:i,endLine:r,line:t,source:this.css},this.file&&(u&&(o.input.url=u(this.file).toString()),o.input.file=this.file),o}},{key:"fromOffset",value:function(e){if(this[c])n=this[c];else{for(var t=this.css.split("\n"),n=new Array(t.length),r=0,i=0,o=t.length;i<o;i++)n[i]=r,r+=t[i].length+1;this[c]=n}var a=0;if(e>=n[n.length-1])a=n.length-1;else for(var s,u=n.length-2;a<u;)if(e<n[s=a+(u-a>>1)])u=s-1;else{if(!(e>=n[s+1])){a=s;break}a=s+1}return{col:e-n[a]+1,line:a+1}}},{key:"mapResolve",value:function(e){return/^\w+:\/\//.test(e)?e:r(this.map.consumer().sourceRoot||this.map.root||".",e)}},{key:"origin",value:function(e,t,n,r){if(!this.map)return!1;var i,o=this.map.consumer(),t=o.originalPositionFor({column:t,line:e});if(!t.source)return!1;"number"==typeof n&&(i=o.originalPositionFor({column:r,line:n}));e=s(t.source)?u(t.source):new URL(t.source,this.map.consumer().sourceRoot||u(this.map.mapFile)),r={column:t.column,endColumn:i&&i.column,endLine:i&&i.line,line:t.line,url:e.toString()};if("file:"===e.protocol){if(!a)throw new Error("file: protocol is not available in this PostCSS build");r.file=a(e)}n=o.sourceContentFor(t.source);return n&&(r.source=n),r}},{key:"toJSON",value:function(){for(var e={},t=0,n=["hasBOM","css","file","id"];t<n.length;t++){var r=n[t];null!=this[r]&&(e[r]=this[r])}return this.map&&(e.map=Ae({},this.map),e.map.consumerCache)&&(e.map.consumerCache=void 0),e}},{key:"from",get:function(){return this.file||this.id}}]),(Qb=t)["default"]=t,e&&e.registerInput&&e.registerInput(t)),Qb}function V1(){if(n1)return t1;n1=1;var a=Ub.SourceMapConsumer,t=Ub.SourceMapGenerator,s=Ub.dirname,n=Ub.relative,r=Ub.resolve,i=Ub.sep,o=Ub.pathToFileURL,u=q1(),e=Boolean(a&&t),l=Boolean(s&&r&&n&&i);return t1=k(function U(e,t,n,r){b(this,U),this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map},[{key:"addAnnotation",value:function(){var e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map",t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}},{key:"applyPrevMaps",value:function(){var e,t=Me(this.previous());try{for(t.s();!(e=t.n()).done;){var n=e.value,r=this.toUrl(this.path(n.file)),i=n.root||s(n.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new a(n.text)).sourcesContent&&(o.sourcesContent=null):o=n.consumer(),this.map.applySourceMap(o,r,this.toUrl(this.path(i)))}}catch(Le){t.e(Le)}finally{t.f()}}},{key:"clearAnnotation",value:function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;0<=t;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}},{key:"generate",value:function(){var t;return this.clearAnnotation(),l&&e&&this.isMap()?this.generateMap():(t="",this.stringify(this.root,function(e){t+=e}),[t])}},{key:"generateMap",value:function(){var e;return this.root?this.generateString():1===this.previous().length?((e=this.previous()[0].consumer()).file=this.outputFile(),this.map=t.fromSourceMap(e,{ignoreInvalidMapping:!0})):(this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"})),this.isSourcesContent()&&this.setSourcesContent(),this.root&&0<this.previous().length&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}},{key:"generateString",value:function(){var r=this;this.css="",this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0});var i,o=1,a=1,s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(e,t,n){r.css+=e,t&&"end"!==n&&(s.generated.line=o,s.generated.column=a-1,t.source&&t.source.start?(s.source=r.sourcePath(t),s.original.line=t.source.start.line,s.original.column=t.source.start.column-1):(s.source="<no source>",s.original.line=1,s.original.column=0),r.map.addMapping(s)),(i=e.match(/\n/g))?(o+=i.length,i=e.lastIndexOf("\n"),a=e.length-i):a+=e.length,t&&"start"!==n&&(e=t.parent||{raws:{}},"decl"!==t.type&&("atrule"!==t.type||t.nodes)||t!==e.last||e.raws.semicolon)&&(t.source&&t.source.end?(s.source=r.sourcePath(t),s.original.line=t.source.end.line,s.original.column=t.source.end.column-1,s.generated.line=o,s.generated.column=a-2):(s.source="<no source>",s.original.line=1,s.original.column=0,s.generated.line=o,s.generated.column=a-1),r.map.addMapping(s))})}},{key:"isAnnotation",value:function(){return!!this.isInline()||("undefined"!=typeof this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))}},{key:"isInline",value:function(){var e;return"undefined"!=typeof this.mapOpts.inline?this.mapOpts.inline:(void 0===(e=this.mapOpts.annotation)||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))}},{key:"isMap",value:function(){return"undefined"!=typeof this.opts.map?!!this.opts.map:0<this.previous().length}},{key:"isSourcesContent",value:function(){return"undefined"!=typeof this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})}},{key:"outputFile",value:function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}},{key:"path",value:function(e){var t;return this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e)?e:this.memoizedPaths.get(e)||(t=this.opts.to?s(this.opts.to):".","string"==typeof this.mapOpts.annotation&&(t=s(r(t,this.mapOpts.annotation))),t=n(t,e),this.memoizedPaths.set(e,t),t)}},{key:"previous",value:function(){var e,t=this;return this.previousMaps||(this.previousMaps=[],this.root?this.root.walk(function(e){e.source&&e.source.input.map&&(e=e.source.input.map,t.previousMaps.includes(e)||t.previousMaps.push(e))}):(e=new u(this.originalCSS,this.opts)).map&&this.previousMaps.push(e.map)),this.previousMaps}},{key:"setSourcesContent",value:function(){var e,n=this,r={};this.root?this.root.walk(function(e){var t;e.source&&(t=e.source.input.from)&&!r[t]&&(r[t]=!0,t=n.usesFileUrls?n.toFileUrl(t):n.toUrl(n.path(t)),n.map.setSourceContent(t,e.source.input.css))}):this.css&&(e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>",this.map.setSourceContent(e,this.css))}},{key:"sourcePath",value:function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}},{key:"toBase64",value:function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}},{key:"toFileUrl",value:function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(o)return t=o(e).toString(),this.memoizedFileURLs.set(e,t),t;throw new Error("`map.absolute` option is not available in this PostCSS build")}},{key:"toUrl",value:function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===i&&(e=e.replace(/\\/g,"/"));t=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,t),t}}])}function G1(){var e;return i1||(i1=1,e=B1(),F(t,e),e=k(t),(r1=e)["default"]=e),r1;function t(e){return b(this,t),(e=v(this,t,[e])).type="comment",e}}function J1(){var l,c,f,t,d,h,p,m,n,e;return a1||(a1=1,e=U1(),d=e.isClean,h=e.my,p=W1(),m=G1(),e=B1(),F(g,e),(n=k(g,[{key:"append",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=0,i=t;r<i.length;r++){var o,a=i[r],a=this.normalize(a,this.last),s=Me(a);try{for(s.s();!(o=s.n()).done;){var u=o.value;this.proxyOf.nodes.push(u)}}catch(Le){s.e(Le)}finally{s.f()}}return this.markDirty(),this}},{key:"cleanRaws",value:function(e){if(V(g,"cleanRaws",this,3)([e]),this.nodes){var t,n=Me(this.nodes);try{for(n.s();!(t=n.n()).done;)t.value.cleanRaws(e)}catch(Le){n.e(Le)}finally{n.f()}}}},{key:"each",value:function(e){if(this.proxyOf.nodes){for(var t,n,r=this.getIterator();this.indexes[r]<this.proxyOf.nodes.length&&(t=this.indexes[r],!1!==(n=e(this.proxyOf.nodes[t],t)));)this.indexes[r]+=1;return delete this.indexes[r],n}}},{key:"every",value:function(e){return this.nodes.every(e)}},{key:"getIterator",value:function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e}},{key:"getProxyProcessor",value:function(){return{get:function(r,o){return"proxyOf"===o?r:r[o]&&("each"===o||"string"==typeof o&&o.startsWith("walk")?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r[o].apply(r,Fe(t.map(function(n){return"function"==typeof n?function(e,t){return n(e.toProxy(),t)}:n})))}:"every"===o||"some"===o?function(i){return r[o](function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return i.apply(void 0,[e.toProxy()].concat(n))})}:"root"===o?function(){return r.root().toProxy()}:"nodes"===o?r.nodes.map(function(e){return e.toProxy()}):"first"===o||"last"===o?r[o].toProxy():r[o])},set:function(e,t,n){return e[t]!==n&&(e[t]=n,"name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0}}}},{key:"index",value:function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}},{key:"insertAfter",value:function(e,t){var n,r,i,o=this.index(e),a=this.normalize(t,this.proxyOf.nodes[o]).reverse(),o=this.index(e),s=Me(a);try{for(s.s();!(n=s.n()).done;){var u=n.value;this.proxyOf.nodes.splice(o+1,0,u)}}catch(Le){s.e(Le)}finally{s.f()}for(i in this.indexes)o<(r=this.indexes[i])&&(this.indexes[i]=r+a.length);return this.markDirty(),this}},{key:"insertBefore",value:function(e,t){var n,r,i,o=this.index(e),a=this.normalize(t,this.proxyOf.nodes[o],0===o&&"prepend").reverse(),o=this.index(e),s=Me(a);try{for(s.s();!(n=s.n()).done;){var u=n.value;this.proxyOf.nodes.splice(o,0,u)}}catch(Le){s.e(Le)}finally{s.f()}for(i in this.indexes)o<=(r=this.indexes[i])&&(this.indexes[i]=r+a.length);return this.markDirty(),this}},{key:"normalize",value:function(e,t){var n=this;if("string"==typeof e)e=function W(e){return e.map(function(e){return e.nodes&&(e.nodes=W(e.nodes)),delete e.source,e})}(l(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){var r,i=Me(e=e.slice(0));try{for(i.s();!(r=i.n()).done;){var o=r.value;o.parent&&o.parent.removeChild(o,"ignore")}}catch(Le){i.e(Le)}finally{i.f()}}else if("root"===e.type&&"document"!==this.type){var a,s=Me(e=e.nodes.slice(0));try{for(s.s();!(a=s.n()).done;){var u=a.value;u.parent&&u.parent.removeChild(u,"ignore")}}catch(Le){s.e(Le)}finally{s.f()}}else if(e.type)e=[e];else if(e.prop){if("undefined"==typeof e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new p(e)]}else if(e.selector)e=[new c(e)];else if(e.name)e=[new f(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new m(e)]}return e.map(function(e){return e[h]||g.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[d]&&function c(e){if(e[d]=!1,e.proxyOf.nodes){var t,n=Me(e.proxyOf.nodes);try{for(n.s();!(t=n.n()).done;)c(t.value)}catch(Le){n.e(Le)}finally{n.f()}}}(e),"undefined"==typeof e.raws.before&&t&&"undefined"!=typeof t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e})}},{key:"prepend",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=Me(t=t.reverse());try{for(i.s();!(r=i.n()).done;){var o,a,s=r.value,u=this.normalize(s,this.first,"prepend").reverse(),l=Me(u);try{for(l.s();!(o=l.n()).done;){var c=o.value;this.proxyOf.nodes.unshift(c)}}catch(Le){l.e(Le)}finally{l.f()}for(a in this.indexes)this.indexes[a]=this.indexes[a]+u.length}}catch(Le){i.e(Le)}finally{i.f()}return this.markDirty(),this}},{key:"push",value:function(e){return(e.parent=this).proxyOf.nodes.push(e),this}},{key:"removeAll",value:function(){var e,t=Me(this.proxyOf.nodes);try{for(t.s();!(e=t.n()).done;)e.value.parent=void 0}catch(Le){t.e(Le)}finally{t.f()}return this.proxyOf.nodes=[],this.markDirty(),this}},{key:"removeChild",value:function(e){var t,n;for(n in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[n])>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}},{key:"replaceValues",value:function(t,n,r){return r||(r=n,n={}),this.walkDecls(function(e){n.props&&!n.props.includes(e.prop)||n.fast&&!e.value.includes(n.fast)||(e.value=e.value.replace(t,r))}),this.markDirty(),this}},{key:"some",value:function(e){return this.nodes.some(e)}},{key:"walk",value:function(r){return this.each(function(e,t){var n;try{n=r(e,t)}catch(b){throw e.addToError(b)}return n=!1!==n&&e.walk?e.walk(r):n})}},{key:"walkAtRules",value:function(n,r){return r?n instanceof RegExp?this.walk(function(e,t){if("atrule"===e.type&&n.test(e.name))return r(e,t)}):this.walk(function(e,t){if("atrule"===e.type&&e.name===n)return r(e,t)}):(r=n,this.walk(function(e,t){if("atrule"===e.type)return r(e,t)}))}},{key:"walkComments",value:function(n){return this.walk(function(e,t){if("comment"===e.type)return n(e,t)})}},{key:"walkDecls",value:function(n,r){return r?n instanceof RegExp?this.walk(function(e,t){if("decl"===e.type&&n.test(e.prop))return r(e,t)}):this.walk(function(e,t){if("decl"===e.type&&e.prop===n)return r(e,t)}):(r=n,this.walk(function(e,t){if("decl"===e.type)return r(e,t)}))}},{key:"walkRules",value:function(n,r){return r?n instanceof RegExp?this.walk(function(e,t){if("rule"===e.type&&n.test(e.selector))return r(e,t)}):this.walk(function(e,t){if("rule"===e.type&&e.selector===n)return r(e,t)}):(r=n,this.walk(function(e,t){if("rule"===e.type)return r(e,t)}))}},{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}])).registerParse=function(e){l=e},n.registerRule=function(e){c=e},n.registerAtRule=function(e){f=e},n.registerRoot=function(e){t=e},((o1=n)["default"]=n).rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,f.prototype):"rule"===e.type?Object.setPrototypeOf(e,c.prototype):"decl"===e.type?Object.setPrototypeOf(e,p.prototype):"comment"===e.type?Object.setPrototypeOf(e,m.prototype):"root"===e.type&&Object.setPrototypeOf(e,t.prototype),e[h]=!0,e.nodes&&e.nodes.forEach(function(e){n.rebuild(e)})}),o1;function g(){return b(this,g),v(this,g,arguments)}}function $1(){var t,n,e;return u1||(u1=1,e=J1(),F(r,e),(e=k(r,[{key:"toResult",value:function(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{};return new t(new n,this,e).stringify()}}])).registerLazyResult=function(e){t=e},e.registerProcessor=function(e){n=e},(s1=e)["default"]=e),s1;function r(e){return b(this,r),(e=v(this,r,[Ae({type:"document"},e)])).nodes||(e.nodes=[]),e}}function Z1(){if(c1)return l1;c1=1;var t={};return l1=function(e){t[e]||(t[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))}}function K1(){var r;return d1||(d1=1,r=k(function r(e){var t,n=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};for(t in b(this,r),this.type="warning",this.text=e,n.node&&n.node.source&&(e=n.node.rangeBy(n),this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column),n)this[t]=n[t]},[{key:"toString",value:function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}]),(f1=r)["default"]=r),f1}function Y1(){var n,r;return p1||(p1=1,n=K1(),r=k(function r(e,t,n){b(this,r),this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0},[{key:"toString",value:function(){return this.css}},{key:"warn",value:function(e){var t=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{},e=(t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin),new n(e,t));return this.messages.push(e),e}},{key:"warnings",value:function(){return this.messages.filter(function(e){return"warning"===e.type})}},{key:"content",get:function(){return this.css}}]),(h1=r)["default"]=r),h1}function X1(){var e,t;return y1||(y1=1,e=J1(),F(r,e),t=k(r,[{key:"append",value:function(){this.proxyOf.nodes||(this.nodes=[]);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return V(r,"append",this,3)(t)}},{key:"prepend",value:function(){this.proxyOf.nodes||(this.nodes=[]);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return V(r,"prepend",this,3)(t)}}]),(v1=t)["default"]=t,e.registerAtRule(t)),v1;function r(e){return b(this,r),(e=v(this,r,[e])).type="atrule",e}}function Q1(){var t,n,e,r;return b1||(b1=1,e=J1(),F(o,e),(r=k(o,[{key:"normalize",value:function(e,t,n){e=V(o,"normalize",this,3)([e]);if(t)if("prepend"===n)1<this.nodes.length?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t){var r,i=Me(e);try{for(i.s();!(r=i.n()).done;)r.value.raws.before=t.raws.before}catch(Le){i.e(Le)}finally{i.f()}}return e}},{key:"removeChild",value:function(e,t){var n=this.index(e);return!t&&0===n&&1<this.nodes.length&&(this.nodes[1].raws.before=this.nodes[n].raws.before),V(o,"removeChild",this,3)([e])}},{key:"toResult",value:function(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{};return new t(new n,this,e).stringify()}}])).registerLazyResult=function(e){t=e},r.registerProcessor=function(e){n=e},w1=r,e.registerRoot(r["default"]=r)),w1;function o(e){return b(this,o),(e=v(this,o,[e])).type="root",e.nodes||(e.nodes=[]),e}}function ek(){var t;return S1||(S1=1,(k1=t={comma:function(e){return t.split(e,[","],!0)},space:function(e){return t.split(e,[" ","\n","\t"])},split:function(e,t,n){var r,i=[],o="",a=!1,s=0,u=!1,l="",c=!1,f=Me(e);try{for(f.s();!(r=f.n()).done;){var d=r.value;c?c=!1:"\\"===d?c=!0:u?d===l&&(u=!1):'"'===d||"'"===d?(u=!0,l=d):"("===d?s+=1:")"===d?0<s&&--s:0===s&&t.includes(d)&&(a=!0),a?(""!==o&&i.push(o.trim()),o="",a=!1):o+=d}}catch(Le){f.e(Le)}finally{f.f()}return!n&&""===o||i.push(o.trim()),i}})["default"]=t),k1}function tk(){var e,t,n;return E1||(E1=1,e=J1(),t=ek(),F(r,e),n=k(r,[{key:"selectors",get:function(){return t.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,t=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(t)}}]),(_1=n)["default"]=n,e.registerRule(n)),_1;function r(e){return b(this,r),(e=v(this,r,[e])).type="rule",e.nodes||(e.nodes=[]),e}}function nk(){if(R1)return C1;R1=1;var p=W1(),e=function(){if(g1)return m1;g1=1;var w="'".charCodeAt(0),b='"'.charCodeAt(0),k="\\".charCodeAt(0),S="/".charCodeAt(0),_="\n".charCodeAt(0),E=" ".charCodeAt(0),C="\f".charCodeAt(0),R="\t".charCodeAt(0),O="\r".charCodeAt(0),x="[".charCodeAt(0),I="]".charCodeAt(0),T="(".charCodeAt(0),M=")".charCodeAt(0),A="{".charCodeAt(0),P="}".charCodeAt(0),L=";".charCodeAt(0),D="*".charCodeAt(0),N=":".charCodeAt(0),F="@".charCodeAt(0),U=/[\t\n\f\r "#'()/;[\\\]{}]/g,j=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,z=/.[\r\n"'(/\\]/,B=/[\da-f]/i;return m1=function(t){var r,i,o,a,s,u,l,c,f,e=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{},d=t.css.valueOf(),h=e.ignoreErrors,p=d.length,m=0,g=[],v=[];function y(e){throw t.error("Unclosed "+e,m)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&p<=m},nextToken:function(e){if(v.length)return v.pop();if(!(p<=m)){var t=!!e&&e.ignoreUnclosed;switch(r=d.charCodeAt(m)){case _:case E:case R:case O:case C:for(i=m;i+=1,(r=d.charCodeAt(i))===E||r===_||r===R||r===O||r===C;);f=["space",d.slice(m,i)],m=i-1;break;case x:case I:case A:case P:case N:case L:case M:var n=String.fromCharCode(r);f=[n,n,m];break;case T:if(l=g.length?g.pop()[1]:"",c=d.charCodeAt(m+1),"url"===l&&c!==w&&c!==b&&c!==E&&c!==_&&c!==R&&c!==C&&c!==O){i=m;do{if(s=!1,-1===(i=d.indexOf(")",i+1))){if(h||t){i=m;break}y("bracket")}for(u=i;d.charCodeAt(u-1)===k;)--u,s=!s}while(s);f=["brackets",d.slice(m,i+1),m,i],m=i}else i=d.indexOf(")",m+1),l=d.slice(m,i+1),-1===i||z.test(l)?f=["(","(",m]:(f=["brackets",l,m,i],m=i);break;case w:case b:o=r===w?"'":'"',i=m;do{if(s=!1,-1===(i=d.indexOf(o,i+1))){if(h||t){i=m+1;break}y("string")}for(u=i;d.charCodeAt(u-1)===k;)--u,s=!s}while(s);f=["string",d.slice(m,i+1),m,i],m=i;break;case F:U.lastIndex=m+1,U.test(d),i=0===U.lastIndex?d.length-1:U.lastIndex-2,f=["at-word",d.slice(m,i+1),m,i],m=i;break;case k:for(i=m,a=!0;d.charCodeAt(i+1)===k;)i+=1,a=!a;if(r=d.charCodeAt(i+1),a&&r!==S&&r!==E&&r!==_&&r!==R&&r!==O&&r!==C&&(i+=1,B.test(d.charAt(i)))){for(;B.test(d.charAt(i+1));)i+=1;d.charCodeAt(i+1)===E&&(i+=1)}f=["word",d.slice(m,i+1),m,i],m=i;break;default:m=(r===S&&d.charCodeAt(m+1)===D?(0===(i=d.indexOf("*/",m+2)+1)&&(h||t?i=d.length:y("comment")),f=["comment",d.slice(m,i+1),m,i]):(j.lastIndex=m+1,j.test(d),i=0===j.lastIndex?d.length-1:j.lastIndex-2,f=["word",d.slice(m,i+1),m,i],g.push(f)),i)}return m++,f}},position:function(){return m}}}}(),n=G1(),l=X1(),t=Q1(),r=tk(),d={empty:!0,space:!0};return C1=k(function D(e){b(this,D),this.input=e,this.root=new t,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}},[{key:"atrule",value:function(e){var t,n,r,i=new l;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,a=!1,s=[],u=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?u.push("("===t?")":"]"):"{"===t&&0<u.length?u.push("}"):t===u[u.length-1]&&u.pop(),0===u.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){a=!0;break}if("}"===t){if(0<s.length){for(n=s[r=s.length-1];n&&"space"===n[0];)n=s[--r];n&&(i.source.end=this.getPosition(n[3]||n[2]),i.source.end.offset++)}this.end(e);break}}if(s.push(e),this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(s),s.length?(i.raws.afterName=this.spacesAndCommentsFromStart(s),this.raw(i,"params",s),o&&(e=s[s.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),a&&(i.nodes=[],this.current=i)}},{key:"checkMissedSemicolon",value:function(e){var t=this.colon(e);if(!1!==t){for(var n,r=0,i=t-1;0<=i&&("space"===(n=e[i])[0]||2!==(r+=1));i--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}}},{key:"colon",value:function(e){var t,n,r,i,o=0,a=Me(e.entries());try{for(a.s();!(i=a.n()).done;){var s=Ne(i.value,2),u=s[0];if("("===(n=(t=s[1])[0])&&(o+=1),")"===n&&--o,0===o&&":"===n){if(r){if("word"===r[0]&&"progid"===r[1])continue;return u}this.doubleColon(t)}r=t}}catch(Le){a.e(Le)}finally{a.f()}return!1}},{key:"comment",value:function(e){var t=new n,e=(this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,e[1].slice(2,-2));/^\s*$/.test(e)?(t.text="",t.raws.left=e,t.raws.right=""):(e=e.match(/^(\s*)([^]*\S)(\s*)$/),t.text=e[2],t.raws.left=e[1],t.raws.right=e[3])}},{key:"createTokenizer",value:function(){this.tokenizer=e(this.input)}},{key:"decl",value:function(e,t){var n=new p;this.init(n,e[0][2]);var r,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(i[3]||i[2]||function(e){for(var t=e.length-1;0<=t;t--){var n=e[t],n=n[3]||n[2];if(n)return n}}(e)),n.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;n.prop+=e.shift()[1]}for(n.raws.between="";e.length;){if(":"===(r=e.shift())[0]){n.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),n.raws.between+=r[1]}"_"!==n.prop[0]&&"*"!==n.prop[0]||(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));for(var a,s=[];e.length&&("space"===(a=e[0][0])||"comment"===a);)s.push(e.shift());this.precheckMissedSemicolon(e);for(var u=e.length-1;0<=u;u--){if("!important"===(r=e[u])[1].toLowerCase()){n.important=!0;var l=this.stringFrom(e,u);" !important"!==(l=this.spacesFromEnd(e)+l)&&(n.raws.important=l);break}if("important"===r[1].toLowerCase()){for(var c=e.slice(0),f="",d=u;0<d;d--){var h=c[d][0];if(0===f.trim().indexOf("!")&&"space"!==h)break;f=c.pop()[1]+f}0===f.trim().indexOf("!")&&(n.important=!0,n.raws.important=f,e=c)}if("space"!==r[0]&&"comment"!==r[0])break}e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]})&&(n.raws.between+=s.map(function(e){return e[1]}).join(""),s=[]),this.raw(n,"value",s.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}},{key:"doubleColon",value:function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}},{key:"emptyRule",value:function(e){var t=new r;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}},{key:"end",value:function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}},{key:"endFile",value:function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}},{key:"freeSemicolon",value:function(e){this.spaces+=e[1],this.current.nodes&&(e=this.current.nodes[this.current.nodes.length-1])&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}},{key:"getPosition",value:function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}},{key:"init",value:function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}},{key:"other",value:function(e){for(var t,n=!1,r=!1,i=null,o=[],a=e[1].startsWith("--"),s=[],u=e;u;){if(t=u[0],s.push(u),"("===t||"["===t)i=i||u,o.push("("===t?")":"]");else if(a&&r&&"{"===t)i=i||u,o.push("}");else if(0===o.length){if(";"===t){if(r)return void this.decl(s,a);break}if("{"===t)return void this.rule(s);if("}"===t){this.tokenizer.back(s.pop()),n=!0;break}":"===t&&(r=!0)}else t===o[o.length-1]&&(o.pop(),0===o.length)&&(i=null);u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(n=!0),0<o.length&&this.unclosedBracket(i),n&&r){if(!a)for(;s.length&&("space"===(u=s[s.length-1][0])||"comment"===u);)this.tokenizer.back(s.pop());this.decl(s,a)}else this.unknownWord(s)}},{key:"parse",value:function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}},{key:"precheckMissedSemicolon",value:function(){}},{key:"raw",value:function(e,t,n,r){for(var i,o,a,s,u=n.length,l="",c=!0,f=0;f<u;f+=1)"space"===(a=(i=n[f])[0])&&f===u-1&&!r||"comment"===a&&(a=n[f-1]?n[f-1][0]:"empty",o=n[f+1]?n[f+1][0]:"empty",d[a]||d[o]||","===l.slice(-1))?c=!1:l+=i[1];c||(s=n.reduce(function(e,t){return e+t[1]},""),e.raws[t]={raw:s,value:l}),e[t]=l}},{key:"rule",value:function(e){e.pop();var t=new r;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}},{key:"spacesAndCommentsFromEnd",value:function(e){for(var t,n="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)n=e.pop()[1]+n;return n}},{key:"spacesAndCommentsFromStart",value:function(e){for(var t,n="";e.length&&("space"===(t=e[0][0])||"comment"===t);)n+=e.shift()[1];return n}},{key:"spacesFromEnd",value:function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t}},{key:"stringFrom",value:function(e,t){for(var n="",r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n}},{key:"unclosedBlock",value:function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}},{key:"unclosedBracket",value:function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}},{key:"unexpectedClose",value:function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}},{key:"unknownWord",value:function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}},{key:"unnamedAtrule",value:function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}}])}function rk(){var e,n,r;return x1||(x1=1,e=J1(),n=nk(),r=q1(),O1=t,e.registerParse(t["default"]=t)),O1;function t(e,t){e=new r(e,t),e=new n(e);try{e.parse()}catch(P){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===P.name&&t&&t.from&&(/\.scss$/i.test(t.from)?P.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(t.from)?P.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(t.from)&&(P.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),P}return e.root}}function ik(){var f,a,n,r,u,s,i,c,l,e,o,d,h,p,t,m;return T1||(T1=1,t=U1(),f=t.isClean,a=t.my,n=V1(),r=z1(),u=J1(),s=$1(),i=Z1(),c=Y1(),l=rk(),e=Q1(),o={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},d={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},h={Once:!0,postcssPlugin:!0,prepare:!0},p={},(t=k(function s(e,t,n){var r,i=this;if(b(this,s),this.stringified=!1,this.processed=!1,"object"!==S(t)||null===t||"root"!==t.type&&"document"!==t.type)if(t instanceof s||t instanceof c)r=w(t.root),t.map&&("undefined"==typeof n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=t.map);else{var o=l;n.syntax&&(o=n.syntax.parse),(o=n.parser?n.parser:o).parse&&(o=o.parse);try{r=o(t,n)}catch(X){this.processed=!0,this.error=X}r&&!r[a]&&u.rebuild(r)}else r=w(t);this.result=new c(e,r,n),this.helpers=Ae(Ae({},p),{},{postcss:p,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===S(e)&&e.prepare?Ae(Ae({},e),e.prepare(i.result)):e})},[{key:"async",value:function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}},{key:"catch",value:function(e){return this["async"]()["catch"](e)}},{key:"finally",value:function(e){return this["async"]().then(e,e)}},{key:"getAsyncError",value:function(){throw new Error("Use process(css).then(cb) to work with async plugins")}},{key:"handleError",value:function(e,t){var n,r,i,o,a,s=this.result.lastPlugin;try{t&&t.addToError(e),"CssSyntaxError"!==(this.error=e).name||e.plugin?s.postcssVersion&&"production"!==process.env.NODE_ENV&&(n=s.postcssPlugin,r=s.postcssVersion,i=this.result.processor.version,o=r.split("."),a=i.split("."),o[0]!==a[0]||parseInt(o[1])>parseInt(a[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+i+", but "+n+" uses "+r+". Perhaps this is the source of the error below."):(e.plugin=s.postcssPlugin,e.setMessage())}catch(Le){console&&console.error&&console.error(Le)}return e}},{key:"prepareVisitors",value:function(){var r=this;this.listeners={};var e,t=function(e,t,n){r.listeners[t]||(r.listeners[t]=[]),r.listeners[t].push([e,n])},n=Me(this.plugins);try{for(n.s();!(e=n.n()).done;){var i=e.value;if("object"===S(i))for(var o in i){if(!d[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event ".concat(o," in ").concat(i.postcssPlugin,". Try to update PostCSS (").concat(this.processor.version," now)."));if(!h[o])if("object"===S(i[o]))for(var a in i[o])t(i,"*"===a?o:o+"-"+a.toLowerCase(),i[o][a]);else"function"==typeof i[o]&&t(i,o,i[o])}}}catch(Le){n.e(Le)}finally{n.f()}this.hasListener=0<Object.keys(this.listeners).length}},{key:"runAsync",value:(m=A(B().m(function e(){var t,i,n,r,o,a,s,u,l,c=this;return B().w(function(e){for(;;)switch(e.p=e.n){case 0:this.plugin=0,t=0;case 1:if(t<this.plugins.length){if(s=this.plugins[t],g(s=this.runOnRoot(s)))return e.p=2,e.n=3,s;e.n=5}else e.n=6;break;case 3:e.n=5;break;case 4:throw e.p=4,s=e.v,this.handleError(s);case 5:t++,e.n=1;break;case 6:if(this.prepareVisitors(),!this.hasListener){e.n=21;break}i=this.result.root;case 7:if(i[f]){e.n=14;break}i[f]=!0,n=[y(i)];case 8:if(0<n.length){if(g(u=this.visitTick(n)))return e.p=9,e.n=10,u;e.n=12}else e.n=13;break;case 10:e.n=12;break;case 11:throw e.p=11,u=e.v,l=n[n.length-1].node,this.handleError(u,l);case 12:e.n=8;break;case 13:e.n=7;break;case 14:if(!this.listeners.OnceExit){e.n=21;break}r=Me(this.listeners.OnceExit),e.p=15,a=B().m(function d(){var t,n,r;return B().w(function(e){for(;;)switch(e.p=e.n){case 0:if(n=Ne(o.value,2),r=n[0],t=n[1],c.result.lastPlugin=r,e.p=1,"document"===i.type)return n=i.nodes.map(function(e){return t(e,c.helpers)}),e.n=2,Promise.all(n);e.n=3;break;case 2:e.n=4;break;case 3:return e.n=4,t(i,c.helpers);case 4:e.n=6;break;case 5:throw e.p=5,r=e.v,c.handleError(r);case 6:return e.a(2)}},d,null,[[1,5]])}),r.s();case 16:if((o=r.n()).done){e.n=18;break}return e.d(H(a()),17);case 17:e.n=16;break;case 18:e.n=20;break;case 19:e.p=19,l=e.v,r.e(l);case 20:return e.p=20,r.f(),e.f(20);case 21:return this.processed=!0,e.a(2,this.stringify())}},e,this,[[15,19,20,21],[9,11],[2,4]])})),function(){return m.apply(this,arguments)})},{key:"runOnRoot",value:function(t){var e,n=this;this.result.lastPlugin=t;try{return"object"===S(t)&&t.Once?"document"===this.result.root.type?g((e=this.result.root.nodes.map(function(e){return t.Once(e,n.helpers)}))[0])?Promise.all(e):e:t.Once(this.result.root,this.helpers):"function"==typeof t?t(this.result.root,this.result):void 0}catch(X){throw this.handleError(X)}}},{key:"stringify",value:function(){if(this.error)throw this.error;var e,t;return this.stringified||(this.stringified=!0,this.sync(),t=this.result.opts,e=r,t.syntax&&(e=t.syntax.stringify),(e=t.stringifier?t.stringifier:e).stringify&&(e=e.stringify),t=new n(e,this.result.root,this.result.opts).generate(),this.result.css=t[0],this.result.map=t[1]),this.result}},{key:"sync",value:function(){if(this.error)throw this.error;if(!this.processed){if(this.processed=!0,this.processing)throw this.getAsyncError();var e,t=Me(this.plugins);try{for(t.s();!(e=t.n()).done;){var n=e.value;if(g(this.runOnRoot(n)))throw this.getAsyncError()}}catch(Le){t.e(Le)}finally{t.f()}if(this.prepareVisitors(),this.hasListener){for(var r=this.result.root;!r[f];)r[f]=!0,this.walkSync(r);if(this.listeners.OnceExit)if("document"===r.type){var i,o=Me(r.nodes);try{for(o.s();!(i=o.n()).done;){var a=i.value;this.visitSync(this.listeners.OnceExit,a)}}catch(Le){o.e(Le)}finally{o.f()}}else this.visitSync(this.listeners.OnceExit,r)}}return this.result}},{key:"then",value:function(e,t){return"production"===process.env.NODE_ENV||"from"in this.opts||i("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."),this["async"]().then(e,t)}},{key:"toString",value:function(){return this.css}},{key:"visitSync",value:function(e,t){var n,r=Me(e);try{for(r.s();!(n=r.n()).done;){var i=Ne(n.value,2),o=i[0],a=i[1],s=(this.result.lastPlugin=o,void 0);try{s=a(t,this.helpers)}catch(u){throw this.handleError(u,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(g(s))throw this.getAsyncError()}}catch(Le){r.e(Le)}finally{r.f()}}},{key:"visitTick",value:function(e){var t=e[e.length-1],n=t.node,r=t.visitors;if("root"===n.type||"document"===n.type||n.parent){if(0<r.length&&t.visitorIndex<r.length){var i=Ne(r[t.visitorIndex],2),o=i[0],i=i[1];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return i(n.toProxy(),this.helpers)}catch(c){throw this.handleError(c,n)}}if(0!==t.iterator){for(var a,s=t.iterator;a=n.nodes[n.indexes[s]];)if(n.indexes[s]+=1,!a[f])return a[f]=!0,void e.push(y(a));t.iterator=0,delete n.indexes[s]}for(var u=t.events;t.eventIndex<u.length;){var l=u[t.eventIndex];if(t.eventIndex+=1,0===l)return void(n.nodes&&n.nodes.length&&(n[f]=!0,t.iterator=n.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}}e.pop()}},{key:"walkSync",value:function(e){var t=this;e[f]=!0;var n,r=Me(v(e));try{for(r.s();!(n=r.n()).done;){var i=n.value;if(0===i)e.nodes&&e.each(function(e){e[f]||t.walkSync(e)});else{var o=this.listeners[i];if(o&&this.visitSync(o,e.toProxy()))return}}}catch(Le){r.e(Le)}finally{r.f()}}},{key:"warnings",value:function(){return this.sync().warnings()}},{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}])).registerPostcss=function(e){p=e},I1=t,e.registerLazyResult(t["default"]=t),s.registerLazyResult(t)),I1;function g(e){return"object"===S(e)&&"function"==typeof e.then}function v(e){var t=!1,n=o[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[n,n+"-"+t,0,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:e.append?[n,0,n+"Exit"]:[n,n+"Exit"]}function y(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:v(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function w(e){return e[f]=!1,e.nodes&&e.nodes.forEach(w),e}}function ok(){var n,r,t,e,i,o,a,s,u,l,c;return L1||(L1=1,A1||(A1=1,o=V1(),a=z1(),s=Z1(),u=rk(),l=Y1(),c=k(function c(e,t,n){b(this,c),t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;var e=a,r=(this.result=new l(this._processor,void 0,this._opts),this.result.css=t,this),n=(Object.defineProperty(this.result,"root",{get:function(){return r.root}}),new o(e,void 0,this._opts,t));n.isMap()?(t=(e=Ne(n.generate(),2))[0],e=e[1],t&&(this.result.css=t),e&&(this.result.map=e)):(n.clearAnnotation(),this.result.css=n.css)},[{key:"async",value:function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}},{key:"catch",value:function(e){return this["async"]()["catch"](e)}},{key:"finally",value:function(e){return this["async"]().then(e,e)}},{key:"sync",value:function(){if(this.error)throw this.error;return this.result}},{key:"then",value:function(e,t){return"production"===process.env.NODE_ENV||"from"in this._opts||s("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."),this["async"]().then(e,t)}},{key:"toString",value:function(){return this._css}},{key:"warnings",value:function(){return[]}},{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=u;try{e=t(this._css,this._opts)}catch(X){this.error=X}if(this.error)throw this.error;return this._root=e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),(M1=c)["default"]=c),n=M1,r=ik(),t=$1(),e=Q1(),i=k(function t(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:[];b(this,t),this.version="8.4.38",this.plugins=this.normalize(e)},[{key:"normalize",value:function(e){var t,n=[],r=Me(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===S(i)&&Array.isArray(i.plugins))n=n.concat(i.plugins);else if("object"===S(i)&&i.postcssPlugin)n.push(i);else if("function"==typeof i)n.push(i);else{if("object"!==S(i)||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}}}catch(Le){r.e(Le)}finally{r.f()}return n}},{key:"process",value:function(e){var t=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};return new(this.plugins.length||t.parser||t.stringifier||t.syntax?r:n)(this,e,t)}},{key:"use",value:function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}]),(P1=i)["default"]=i,e.registerProcessor(i),t.registerProcessor(i)),P1}TC||(TC=1,e=jb(),ak=W1(),s=ik(),q_=J1(),sk=ok(),Te=z1(),QC||(QC=1,hk=W1(),pk=H1(),mk=G1(),gk=X1(),vk=q1(),yk=Q1(),wk=tk(),(D1=bk)["default"]=bk),In=D1,uk=$1(),Oe=K1(),lk=G1(),ck=X1(),o=Y1(),Og=q1(),lt=rk(),i=ek(),fk=tk(),dk=Q1(),xe=B1(),kk.plugin=function(t,n){var e,r=!1;function i(){console&&console.warn&&!r&&(r=!0,console.warn(t+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG)&&process.env.LANG.startsWith("cn")&&console.warn(t+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226");var e=n.apply(void 0,arguments);return e.postcssPlugin=t,e.postcssVersion=(new sk).version,e}return Object.defineProperty(i,"postcss",{get:function(){return e=e||i()}}),i.process=function(e,t,n){return kk([i(n)]).process(e,t)},i},kk.stringify=Te,kk.parse=lt,kk.fromJSON=In,kk.list=i,kk.comment=function(e){return new lk(e)},kk.atRule=function(e){return new ck(e)},kk.decl=function(e){return new ak(e)},kk.rule=function(e){return new fk(e)},kk.root=function(e){return new dk(e)},kk.document=function(e){return new uk(e)},kk.CssSyntaxError=e,kk.Declaration=ak,kk.Container=q_,kk.Processor=sk,kk.Document=uk,kk.Comment=lk,kk.Warning=Oe,kk.AtRule=ck,kk.Result=o,kk.Input=Og,kk.Rule=fk,kk.Root=dk,kk.Node=xe,s.registerPostcss(kk),(N1=kk)["default"]=kk);var ak,sk,uk,lk,ck,fk,dk,hk,pk,mk,gk,vk,yk,wk,Wn=(fa=N1)&&fa.__esModule&&Object.prototype.hasOwnProperty.call(fa,"default")?fa["default"]:fa;function bk(e,t){if(Array.isArray(e))return e.map(function(e){return bk(e)});var n,r=e.inputs,i=z(e,By);if(r){t=[];var o,a=Me(r);try{for(a.s();!(o=a.n()).done;){var s=Ae(Ae({},o.value),{},{__proto__:vk.prototype});s.map&&(s.map=Ae(Ae({},s.map),{},{__proto__:pk.prototype})),t.push(s)}}catch(Le){a.e(Le)}finally{a.f()}}if(i.nodes&&(i.nodes=e.nodes.map(function(e){return bk(e,t)})),i.source&&(n=(r=i.source).inputId,r=z(r,Wy),i.source=r,null!=n)&&(i.source.input=t[n]),"root"===i.type)return new yk(i);if("decl"===i.type)return new hk(i);if("rule"===i.type)return new wk(i);if("comment"===i.type)return new mk(i);if("atrule"===i.type)return new gk(i);throw new Error("Unknown node type: "+e.type)}function kk(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new sk(t)}Wn.stringify;var Sk=k(Ok,[{key:"childNodes",get:function(){for(var e=[],t=this.firstChild;t;)e.push(t),t=t.nextSibling;return e}},{key:"contains",value:function(e){if(e instanceof Ok&&e.ownerDocument===this.ownerDocument){if(e===this)return!0;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}}return!1}},{key:"appendChild",value:function(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}},{key:"insertBefore",value:function(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}},{key:"removeChild",value:function(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}},{key:"toString",value:function(){return"RRNode"}}]),_k={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Ek={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Ck={},Rk={};function Ok(){b(this,Ok),Tb(this,"parentElement",null),Tb(this,"parentNode",null),Tb(this,"ownerDocument"),Tb(this,"firstChild",null),Tb(this,"lastChild",null),Tb(this,"previousSibling",null),Tb(this,"nextSibling",null),Tb(this,"ELEMENT_NODE",1),Tb(this,"TEXT_NODE",3),Tb(this,"nodeType"),Tb(this,"nodeName"),Tb(this,"RRNodeType")}function xk(e){if(Ck[e])return Ck[e];var t=globalThis[e],n=t.prototype,r=e in _k?_k[e]:void 0,r=Boolean(r&&r.every(function(e){return Boolean(null==(e=null==(e=Object.getOwnPropertyDescriptor(n,e))?void 0:e.get)?void 0:e.toString().includes("[native code]"))})),i=e in Ek?Ek[e]:void 0,i=Boolean(i&&i.every(function(e){return"function"==typeof n[e]&&(null==(e=n[e])?void 0:e.toString().includes("[native code]"))}));if(r&&i&&!globalThis.Zone)return Ck[e]=t.prototype,t.prototype;try{var o,a,s=document.createElement("iframe"),u=(s.style.display="none",document.body.appendChild(s),s.contentWindow);return u?(o=u[e].prototype)?((a=navigator.userAgent).includes("Safari")&&!a.includes("Chrome")?(s.classList.add("rr-block"),s.setAttribute("__rrwebUntaintedMutationObserver",""),Rk[e]=function(){return s.remove()}):s.remove(),Ck[e]=o):(s.remove(),n):t.prototype}catch(N){return n}}var Ik={};function Tk(e,t,n){var r="".concat(e,".").concat(String(n));return Ik[r]?Ik[r].call(t):(e=xk(e),(e=null==(e=Object.getOwnPropertyDescriptor(e,n))?void 0:e.get)?(Ik[r]=e).call(t):t[n])}var Mk={};function Ak(e,t,n){var r="".concat(e,".").concat(String(n));return Mk[r]?Mk[r].bind(t):"function"!=typeof(e=xk(e)[n])?t[n]:(Mk[r]=e).bind(t)}function Pk(){var e;return[xk("MutationObserver").constructor,null!=(e=Rk.MutationObserver)?e:function(){}]}var Lk=Date.now;function Dk(e,t,n){try{var r,i;return t in e?("function"==typeof(i=n(r=e[t]))&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,function(){e[t]=r}):function(){}}catch(De){return function(){}}}var Pe={ownerDocument:function(e){return Tk("Node",e,"ownerDocument")},childNodes:function(e){return Tk("Node",e,"childNodes")},parentNode:function(e){return Tk("Node",e,"parentNode")},parentElement:function(e){return Tk("Node",e,"parentElement")},textContent:function(e){return Tk("Node",e,"textContent")},contains:function(e,t){return Ak("Node",e,"contains")(t)},getRootNode:function(e){return Ak("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?Tk("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?Tk("Element",e,"shadowRoot"):null},querySelector:function(e,t){return Tk("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return Tk("Element",e,"querySelectorAll")(t)},nowTimestamp:Lk=/[1-9][0-9]{12}/.test(Date.now().toString())?Lk:function(){return(new Date).getTime()},mutationObserverCtor:Pk,patch:Dk};function Nk(e,t,n){var r=2<arguments.length&&n!==undefined?n:document,i={capture:!0,passive:!0};return r.addEventListener(e,t,i),function(){return r.removeEventListener(e,t,i)}}var Fk="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",Ar={map:{},getId:function(){return console.error(Fk),-1},getNode:function(){return console.error(Fk),null},removeNodeFromMap:function(){console.error(Fk)},has:function(){return console.error(Fk),!1},reset:function(){console.error(Fk)}};function Uk(a,s,e){var u=2<arguments.length&&e!==undefined?e:{},l=null,c=0;return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Date.now(),i=(c||!1!==u.leading||(c=r),s-(r-c)),o=this;i<=0||s<i?(l&&(clearTimeout(l),l=null),c=r,a.apply(o,t)):l||!1===u.trailing||(l=setTimeout(function(){c=!1===u.leading?0:Date.now(),l=null,a.apply(o,t)},i))}}function jk(e,t,n,r,i){var i=4<arguments.length&&i!==undefined?i:window,o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set:function(e){var t=this;setTimeout(function(){n.set.call(t,e)},0),o&&o.set&&o.set.call(this,e)}}),function(){return jk(e,t,o||{},!0)}}function zk(e){var t,n=e.document;return{left:n.scrollingElement?n.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:n.documentElement.scrollLeft||(null==n?void 0:n.body)&&(null==(t=Pe.parentElement(n.body))?void 0:t.scrollLeft)||(null==(t=null==n?void 0:n.body)?void 0:t.scrollLeft)||0,top:n.scrollingElement?n.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==n?void 0:n.documentElement.scrollTop)||(null==n?void 0:n.body)&&(null==(t=Pe.parentElement(n.body))?void 0:t.scrollTop)||(null==(e=null==n?void 0:n.body)?void 0:e.scrollTop)||0}}function Bk(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Wk(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Hk(e){return e?e.nodeType===e.ELEMENT_NODE?e:Pe.parentElement(e):null}function qk(e,t,n,r){if(e){e=Hk(e);if(e){try{if("string"==typeof t){if(e.classList.contains(t))return 1;if(r&&null!==e.closest("."+t))return 1}else if(A0(e,t,r))return 1}catch(De){}if(n){if(e.matches(n))return 1;if(r&&null!==e.closest(n))return 1}}}}function Vk(e,t,n){return"TITLE"===e.tagName&&n.headTitleMutations||-2===t.getId(e)}function Gk(e){return Boolean(e.changedTouches)}function Jk(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function $k(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function Zk(e){return e&&(e instanceof Sk&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(Pe.shadowRoot(e)))}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&new Proxy(Ar,{get:function(e,t,n){return"map"===t&&console.error(Fk),Reflect.get(e,t,n)}});var Kk=k(function u(){b(this,u),M(this,"id",1),M(this,"styleIDMap",new WeakMap),M(this,"idStyleMap",new Map)},[{key:"getId",value:function(e){return null!=(e=this.styleIDMap.get(e))?e:-1}},{key:"has",value:function(e){return this.styleIDMap.has(e)}},{key:"add",value:function(e,t){return this.has(e)?this.getId(e):(t=void 0===t?this.id++:t,this.styleIDMap.set(e,t),this.idStyleMap.set(t,e),t)}},{key:"getStyle",value:function(e){return this.idStyleMap.get(e)||null}},{key:"reset",value:function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}},{key:"generateId",value:function(){return this.id++}}]);function Yk(e){var t,n=null;return n="getRootNode"in e&&(null==(t=Pe.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&Pe.host(Pe.getRootNode(e))?Pe.host(Pe.getRootNode(e)):n}function Xk(e){var n,t=Pe.ownerDocument(e);return t&&(Pe.contains(t,e)||(n=e,!!(t=Pe.ownerDocument(n))&&(e=function(){for(var e,t=n;e=Yk(t);)t=e;return t}(),Pe.contains(t,e))))}(a={})[a.DomContentLoaded=0]="DomContentLoaded",a[a.Load=1]="Load",a[a.FullSnapshot=2]="FullSnapshot",a[a.IncrementalSnapshot=3]="IncrementalSnapshot",a[a.Meta=4]="Meta",a[a.Custom=5]="Custom",a[a.Plugin=6]="Plugin",a[a.Asset=7]="Asset";var Qk=a,eS=((TC=eS||{})[TC.Mutation=0]="Mutation",TC[TC.MouseMove=1]="MouseMove",TC[TC.MouseInteraction=2]="MouseInteraction",TC[TC.Scroll=3]="Scroll",TC[TC.ViewportResize=4]="ViewportResize",TC[TC.Input=5]="Input",TC[TC.TouchMove=6]="TouchMove",TC[TC.MediaInteraction=7]="MediaInteraction",TC[TC.StyleSheetRule=8]="StyleSheetRule",TC[TC.CanvasMutation=9]="CanvasMutation",TC[TC.Font=10]="Font",TC[TC.Log=11]="Log",TC[TC.Drag=12]="Drag",TC[TC.StyleDeclaration=13]="StyleDeclaration",TC[TC.Selection=14]="Selection",TC[TC.AdoptedStyleSheet=15]="AdoptedStyleSheet",TC[TC.CustomElement=16]="CustomElement",TC),tS=((QC=tS||{})[QC.MouseUp=0]="MouseUp",QC[QC.MouseDown=1]="MouseDown",QC[QC.Click=2]="Click",QC[QC.ContextMenu=3]="ContextMenu",QC[QC.DblClick=4]="DblClick",QC[QC.Focus=5]="Focus",QC[QC.Blur=6]="Blur",QC[QC.TouchStart=7]="TouchStart",QC[QC.TouchMove_Departed=8]="TouchMove_Departed",QC[QC.TouchEnd=9]="TouchEnd",QC[QC.TouchCancel=10]="TouchCancel",QC),nS=((Te=nS||{})[Te.Mouse=0]="Mouse",Te[Te.Pen=1]="Pen",Te[Te.Touch=2]="Touch",Te),rS=((lt={})[lt["2D"]=0]="2D",lt[lt.WebGL=1]="WebGL",lt[lt.WebGL2=2]="WebGL2",lt),iS=((In=iS||{})[In.Play=0]="Play",In[In.Pause=1]="Pause",In[In.Seeked=2]="Seeked",In[In.VolumeChange=3]="VolumeChange",In[In.RateChange=4]="RateChange",In),oS=((i={})[i.Document=0]="Document",i[i.DocumentType=1]="DocumentType",i[i.Element=2]="Element",i[i.Text=3]="Text",i[i.CDATA=4]="CDATA",i[i.Comment=5]="Comment",i);function aS(e){return"__ln"in e}var sS,uS=k(function u(){b(this,u),M(this,"length",0),M(this,"head",null),M(this,"tail",null)},[{key:"get",value:function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var t=this.head,n=0;n<e;n++)t=(null==t?void 0:t.next)||null;return t}},{key:"addNode",value:function(e){var t,n={value:e,previous:null,next:null};e.__ln=n,e.previousSibling&&aS(e.previousSibling)?(t=e.previousSibling.__ln.next,n.next=t,n.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=n,t&&(t.previous=n)):e.nextSibling&&aS(e.nextSibling)&&e.nextSibling.__ln.previous?(t=e.nextSibling.__ln.previous,n.previous=t,n.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=n,t&&(t.next=n)):(this.head&&(this.head.previous=n),n.next=this.head,this.head=n),null===n.next&&(this.tail=n),this.length++}},{key:"removeNode",value:function(e){var t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}]),lS=function(e,t){return"".concat(e,"@").concat(t)},cS=k(function u(){var w=this;b(this,u),M(this,"frozen",!1),M(this,"locked",!1),M(this,"texts",[]),M(this,"attributes",[]),M(this,"attributeMap",new WeakMap),M(this,"removes",[]),M(this,"mapRemoves",[]),M(this,"movedMap",{}),M(this,"addedSet",new Set),M(this,"movedSet",new Set),M(this,"droppedSet",new Set),M(this,"removesSubTreeCache",new Set),M(this,"mutationCb"),M(this,"blockClass"),M(this,"blockSelector"),M(this,"maskTextClass"),M(this,"maskTextSelector"),M(this,"inlineStylesheet"),M(this,"maskInputOptions"),M(this,"maskTextFn"),M(this,"maskInputFn"),M(this,"keepIframeSrcFn"),M(this,"recordCanvas"),M(this,"inlineImages"),M(this,"slimDOMOptions"),M(this,"dataURLOptions"),M(this,"doc"),M(this,"mirror"),M(this,"iframeManager"),M(this,"stylesheetManager"),M(this,"shadowDomManager"),M(this,"canvasManager"),M(this,"processedNodeManager"),M(this,"unattachedDoc"),M(this,"processMutations",function(e){e.forEach(w.processMutation),w.emit()}),M(this,"emit",function(){if(!w.frozen&&!w.locked){for(var i=[],o=new Set,a=new uS,s=function(e){for(var t=e,n=-2;-2===n;)n=(t=t&&t.nextSibling)&&w.mirror.getId(t);return n},e=function(t){var e=Pe.parentNode(t);if(e&&Xk(t)){var n=!1;if(t.nodeType===Node.TEXT_NODE){var r=e.tagName;if("TEXTAREA"===r)return;"STYLE"===r&&w.addedSet.has(e)&&(n=!0)}r=o0(e)?w.mirror.getId(Yk(t)):w.mirror.getId(e),e=s(t);if(-1===r||-1===e)return a.addNode(t);n=F0(t,{doc:w.doc,mirror:w.mirror,blockClass:w.blockClass,blockSelector:w.blockSelector,maskTextClass:w.maskTextClass,maskTextSelector:w.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:w.inlineStylesheet,maskInputOptions:w.maskInputOptions,maskTextFn:w.maskTextFn,maskInputFn:w.maskInputFn,slimDOMOptions:w.slimDOMOptions,dataURLOptions:w.dataURLOptions,recordCanvas:w.recordCanvas,inlineImages:w.inlineImages,onSerialize:function(e){Jk(e,w.mirror)&&w.iframeManager.addIframe(e),$k(e,w.mirror)&&w.stylesheetManager.trackLinkElement(e),Zk(t)&&w.shadowDomManager.addShadowRoot(Pe.shadowRoot(t),w.doc)},onIframeLoad:function(e,t){w.iframeManager.attachIframe(e,t),w.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:function(e,t){w.stylesheetManager.attachLinkElement(e,t)},cssCaptured:n});n&&(i.push({parentId:r,nextId:e,node:n}),o.add(n.id))}};w.mapRemoves.length;)w.mirror.removeNodeFromMap(w.mapRemoves.shift());var t,n=Me(w.movedSet);try{for(n.s();!(t=n.n()).done;){var r=t.value;dS(w.removesSubTreeCache,r,w.mirror)&&!w.movedSet.has(Pe.parentNode(r))||e(r)}}catch(Le){n.e(Le)}finally{n.f()}var u,l=Me(w.addedSet);try{for(l.s();!(u=l.n()).done;){var c=u.value;!hS(w.droppedSet,c)&&!dS(w.removesSubTreeCache,c,w.mirror)||hS(w.movedSet,c)?e(c):w.droppedSet.add(c)}}catch(Le){l.e(Le)}finally{l.f()}for(var f=null;a.length;){var d,h,p=null;if(!(p=f&&(d=w.mirror.getId(Pe.parentNode(f.value)),h=s(f.value),-1!==d)&&-1!==h?f:p))for(var m=a.tail;m;){var g=m,m=m.previous;if(g){var v=w.mirror.getId(Pe.parentNode(g.value));if(-1!==s(g.value)){if(-1!==v){p=g;break}v=g.value,v=Pe.parentNode(v);if(v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE){v=Pe.host(v);if(-1!==w.mirror.getId(v)){p=g;break}}}}}if(!p){for(;a.head;)a.removeNode(a.head.value);break}f=p.previous,a.removeNode(p.value),e(p.value)}var y={texts:w.texts.map(function(e){var t=e.node,n=Pe.parentNode(t);return n&&"TEXTAREA"===n.tagName&&w.genTextAreaValueMutation(n),{id:w.mirror.getId(t),value:e.value}}).filter(function(e){return!o.has(e.id)}).filter(function(e){return w.mirror.has(e.id)}),attributes:w.attributes.map(function(e){var t,n,r=e.attributes;return"string"==typeof r.style&&(t=JSON.stringify(e.styleDiff),n=JSON.stringify(e._unchangedStyles),t.length<r.style.length)&&(t+n).split("var(").length===r.style.split("var(").length&&(r.style=e.styleDiff),{id:w.mirror.getId(e.node),attributes:r}}).filter(function(e){return!o.has(e.id)}).filter(function(e){return w.mirror.has(e.id)}),removes:w.removes,adds:i};(y.texts.length||y.attributes.length||y.removes.length||y.adds.length)&&(w.texts=[],w.attributes=[],w.attributeMap=new WeakMap,w.removes=[],w.addedSet=new Set,w.movedSet=new Set,w.droppedSet=new Set,w.removesSubTreeCache=new Set,w.movedMap={},w.mutationCb(y))}}),M(this,"genTextAreaValueMutation",function(e){var t=w.attributeMap.get(e),n=(t||(w.attributes.push(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}}),w.attributeMap.set(e,t)),Array.from(Pe.childNodes(e),function(e){return Pe.textContent(e)||""}).join(""));t.attributes.value=c0({element:e,maskInputOptions:w.maskInputOptions,tagName:e.tagName,type:d0(e),value:n,maskInputFn:w.maskInputFn})}),M(this,"processMutation",function(a){if(!Vk(a.target,w.mirror,w.slimDOMOptions))switch(a.type){case"characterData":var e=Pe.textContent(a.target);qk(a.target,w.blockClass,w.blockSelector,!1)||e===a.oldValue||w.texts.push({value:P0(a.target,w.maskTextClass,w.maskTextSelector,!0)&&e?w.maskTextFn?w.maskTextFn(e,Hk(a.target)):e.replace(/[\S]/g,"*"):e,node:a.target});break;case"attributes":var t,n=a.target,e=a.attributeName,s=a.target.getAttribute(e);if("value"===e&&(t=d0(n),s=c0({element:n,maskInputOptions:w.maskInputOptions,tagName:n.tagName,type:t,value:s,maskInputFn:w.maskInputFn})),!qk(a.target,w.blockClass,w.blockSelector,!1)&&s!==a.oldValue){var r=w.attributeMap.get(a.target);if("IFRAME"===n.tagName&&"src"===e&&!w.keepIframeSrcFn(s)){if(n.contentDocument)return;e="rr_src"}if(r||(r={node:a.target,attributes:{},styleDiff:{},_unchangedStyles:{}},w.attributes.push(r),w.attributeMap.set(a.target,r)),"type"===e&&"INPUT"===n.tagName&&"password"===(a.oldValue||"").toLowerCase()&&n.setAttribute("data-rr-is-password","true"),!M0(n.tagName,e))if(r.attributes[e]=T0(w.doc,f0(n.tagName),f0(e),s),"style"===e){if(!w.unattachedDoc)try{w.unattachedDoc=document.implementation.createHTMLDocument()}catch(B){w.unattachedDoc=w.doc}var i=w.unattachedDoc.createElement("span");a.oldValue&&i.setAttribute("style",a.oldValue);for(var o=0,u=Array.from(n.style);o<u.length;o++){var l=u[o],c=n.style.getPropertyValue(l),f=n.style.getPropertyPriority(l);c!==i.style.getPropertyValue(l)||f!==i.style.getPropertyPriority(l)?r.styleDiff[l]=""===f?c:[c,f]:r._unchangedStyles[l]=[c,f]}for(var d=0,h=Array.from(i.style);d<h.length;d++){var p=h[d];""===n.style.getPropertyValue(p)&&(r.styleDiff[p]=!1)}}else"open"===e&&"DIALOG"===n.tagName&&(n.matches("dialog:modal")?r.attributes.rr_open_mode="modal":r.attributes.rr_open_mode="non-modal")}break;case"childList":return qk(a.target,w.blockClass,w.blockSelector,!0)?void 0:"TEXTAREA"===a.target.tagName?void w.genTextAreaValueMutation(a.target):(a.addedNodes.forEach(function(e){return w.genAdds(e,a.target)}),void a.removedNodes.forEach(function(e){var t=w.mirror.getId(e),n=o0(a.target)?w.mirror.getId(Pe.host(a.target)):w.mirror.getId(a.target);if(!qk(a.target,w.blockClass,w.blockSelector,!1)&&!Vk(e,w.mirror,w.slimDOMOptions)&&-1!==w.mirror.getId(e)){if(w.addedSet.has(e))fS(w.addedSet,e),w.droppedSet.add(e);else if(!(w.addedSet.has(a.target)&&-1===t||function s(e,t){var n;return!o0(e)&&(n=t.getId(e),!t.has(n)||(!(n=Pe.parentNode(e))||n.nodeType!==e.DOCUMENT_NODE)&&(!n||s(n,t)))}(a.target,w.mirror)))if(w.movedSet.has(e)&&w.movedMap[lS(t,n)])fS(w.movedSet,e);else{w.removes.push({parentId:n,id:t,isShadow:!(!o0(a.target)||!a0(a.target))||void 0});for(var r=w.removesSubTreeCache,i=[e];i.length;){var o=i.pop();r.has(o)||(r.add(o),Pe.childNodes(o).forEach(function(e){return i.push(e)}))}}w.mapRemoves.push(e)}}))}}),M(this,"genAdds",function(t,e){if(!w.processedNodeManager.inOtherBuffer(t,w)&&!w.addedSet.has(t)&&!w.movedSet.has(t)){if(w.mirror.hasNode(t)){if(Vk(t,w.mirror,w.slimDOMOptions))return;w.movedSet.add(t);var n=null;(n=e&&w.mirror.hasNode(e)?w.mirror.getId(e):n)&&-1!==n&&(w.movedMap[lS(w.mirror.getId(t),n)]=!0)}else w.addedSet.add(t),w.droppedSet["delete"](t);qk(t,w.blockClass,w.blockSelector,!1)||(Pe.childNodes(t).forEach(function(e){return w.genAdds(e)}),Zk(t)&&Pe.childNodes(Pe.shadowRoot(t)).forEach(function(e){w.processedNodeManager.add(e,w),w.genAdds(e,t)}))}})},[{key:"init",value:function(t){var n=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(function(e){n[e]=t[e]})}},{key:"freeze",value:function(){this.frozen=!0,this.canvasManager.freeze()}},{key:"unfreeze",value:function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}},{key:"isFrozen",value:function(){return this.frozen}},{key:"lock",value:function(){this.locked=!0,this.canvasManager.lock()}},{key:"unlock",value:function(){this.locked=!1,this.canvasManager.unlock(),this.emit()}},{key:"reset",value:function(){this.shadowDomManager.reset(),this.canvasManager.reset()}}]);function fS(t,e){t["delete"](e),Pe.childNodes(e).forEach(function(e){return fS(t,e)})}function dS(e,t){return 0!==e.size&&(e=e,t=Pe.parentNode(t))&&e.has(t)}function hS(e,t){return 0!==e.size&&function A(e,t){t=Pe.parentNode(t);return!!t&&(!!e.has(t)||A(e,t))}(e,t)}var pS=function(e){return sS?function(){try{return e.apply(void 0,arguments)}catch(X){if(!sS||!0!==sS(X))throw X}}:e},mS=[];function gS(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(A){}return e&&e.target}function vS(e,t){var n=new cS,e=(mS.push(n),n.init(e),Ne(Pk(),2)),r=e[0],e=e[1],n=new r(pS(n.processMutations.bind(n)));return n.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),[n,e]}function yS(e){var t,r,a,s=e.mouseInteractionCb,i=e.doc,u=e.mirror,l=e.blockClass,c=e.blockSelector,e=e.sampling;return!1===e.mouseInteraction?function(){}:(t=!0===e.mouseInteraction||void 0===e.mouseInteraction?{}:e.mouseInteraction,r=[],a=null,Object.keys(tS).filter(function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==t[e]}).forEach(function(e){var o,t=f0(e),n=(o=e,function(e){var t=gS(e);if(!qk(t,l,c,!0)){var n=null,r=o;if("pointerType"in e){switch(e.pointerType){case"mouse":n=nS.Mouse;break;case"touch":n=nS.Touch;break;case"pen":n=nS.Pen}n===nS.Touch?tS[o]===tS.MouseDown?r="TouchStart":tS[o]===tS.MouseUp&&(r="TouchEnd"):nS.Pen}else Gk(e)&&(n=nS.Touch);null!==n?(a=n,(r.startsWith("Touch")&&n===nS.Touch||r.startsWith("Mouse")&&n===nS.Mouse)&&(n=null)):tS[o]===tS.Click&&(n=a,a=null);var i,e=Gk(e)?e.changedTouches[0]:e;e&&(t=u.getId(t),i=e.clientX,e=e.clientY,pS(s)(Ae({type:tS[r],id:t,x:i,y:e},null!==n&&{pointerType:n})))}});if(window.PointerEvent)switch(tS[e]){case tS.MouseDown:case tS.MouseUp:t=t.replace("mouse","pointer");break;case tS.TouchStart:case tS.TouchEnd:return}r.push(Nk(t,n,i))}),pS(function(){r.forEach(function(e){return e()})}))}function wS(e){var r=e.scrollCb,i=e.doc,o=e.mirror,a=e.blockClass,s=e.blockSelector,e=e.sampling;return Nk("scroll",pS(Uk(pS(function(e){var t,n,e=gS(e);e&&!qk(e,a,s,!0)&&(t=o.getId(e),e===i&&i.defaultView?(n=zk(i.defaultView),r({id:t,x:n.left,y:n.top})):r({id:t,x:e.scrollLeft,y:e.scrollTop}))}),e.scroll||100)),i)}var bS=["INPUT","TEXTAREA","SELECT"],kS=new WeakMap;function SS(e){return function w(e,t){var n;return RS("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||RS("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||RS("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||RS("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule?(n=Array.from(e.parentRule.cssRules).indexOf(e),t.unshift(n),w(e.parentRule,t)):(e.parentStyleSheet&&(n=Array.from(e.parentStyleSheet.cssRules).indexOf(e),t.unshift(n)),t)}(e,[])}function _S(e,t,n){var r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function ES(e,t){var n,r=e.mirror,i=e.stylesheetManager,o="#document"===t.nodeName?r.getId(t):r.getId(Pe.host(t)),e="#document"===t.nodeName?null==(e=t.defaultView)?void 0:e.Document:null==(r=null==(n=t.ownerDocument)?void 0:n.defaultView)?void 0:r.ShadowRoot,a=null!=e&&e.prototype?Object.getOwnPropertyDescriptor(null==e?void 0:e.prototype,"adoptedStyleSheets"):void 0;return null!==o&&-1!==o&&e&&a?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:function(){var e;return null==(e=a.get)?void 0:e.call(this)},set:function(e){var t=null==(t=a.set)?void 0:t.call(this,e);if(null!==o&&-1!==o)try{i.adoptStyleSheets(e,o)}catch(n){}return t}}),pS(function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})})):function(){}}function CS(e){var t,n,D,N,F,U,j,z,B,W,H,q,V,G,r=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{},i=e.doc.defaultView;if(!i)return function(){};t=r,n=(r=e).mutationCb,D=r.mousemoveCb,N=r.mouseInteractionCb,F=r.scrollCb,U=r.viewportResizeCb,j=r.inputCb,z=r.mediaInteractionCb,B=r.styleSheetRuleCb,W=r.styleDeclarationCb,H=r.canvasMutationCb,q=r.fontCb,V=r.selectionCb,G=r.customElementCb,r.mutationCb=function(){t.mutation&&t.mutation.apply(t,arguments),n.apply(void 0,arguments)},r.mousemoveCb=function(){t.mousemove&&t.mousemove.apply(t,arguments),D.apply(void 0,arguments)},r.mouseInteractionCb=function(){t.mouseInteraction&&t.mouseInteraction.apply(t,arguments),N.apply(void 0,arguments)},r.scrollCb=function(){t.scroll&&t.scroll.apply(t,arguments),F.apply(void 0,arguments)},r.viewportResizeCb=function(){t.viewportResize&&t.viewportResize.apply(t,arguments),U.apply(void 0,arguments)},r.inputCb=function(){t.input&&t.input.apply(t,arguments),j.apply(void 0,arguments)},r.mediaInteractionCb=function(){t.mediaInteaction&&t.mediaInteaction.apply(t,arguments),z.apply(void 0,arguments)},r.styleSheetRuleCb=function(){t.styleSheetRule&&t.styleSheetRule.apply(t,arguments),B.apply(void 0,arguments)},r.styleDeclarationCb=function(){t.styleDeclaration&&t.styleDeclaration.apply(t,arguments),W.apply(void 0,arguments)},r.canvasMutationCb=function(){t.canvasMutation&&t.canvasMutation.apply(t,arguments),H.apply(void 0,arguments)},r.fontCb=function(){t.font&&t.font.apply(t,arguments),q.apply(void 0,arguments)},r.selectionCb=function(){t.selection&&t.selection.apply(t,arguments),V.apply(void 0,arguments)},r.customElementCb=function(){t.customElement&&t.customElement.apply(t,arguments),G.apply(void 0,arguments)};var o,J,$,Z,K,Y,X,Q,a,ee,te,ne,re,s,u,ie,l,c,f,oe,d,h,p,m,ae,se,ue,le,g,v,y,ce,w,b,k,S,_,E,C,R,fe=function(){},de=(e.recordDOM&&(r=vS(e,e.doc),r=Ne(r,2),o=r[0],fe=r[1]),ue=(r=e).mousemoveCb,x=r.doc,le=r.mirror,!1===(O=r.sampling).mousemove?function(){}:(r="number"==typeof O.mousemove?O.mousemove:50,O="number"==typeof O.mousemoveCallback?O.mousemoveCallback:500,m=[],ae=Uk(pS(function(e){var t=Date.now()-p;ue(m.map(function(e){return e.timeOffset-=t,e}),e),m=[],p=null}),O),O=pS(Uk(pS(function(e){var t=gS(e),n=Gk(e)?e.changedTouches[0]:e,r=n.clientX,n=n.clientY;p=p||Lk(),m.push({x:r,y:n,id:le.getId(t),timeOffset:Lk()-p}),ae("undefined"!=typeof DragEvent&&e instanceof DragEvent?eS.Drag:e instanceof MouseEvent?eS.MouseMove:eS.TouchMove)}),r,{trailing:!1})),se=[Nk("mousemove",O,x),Nk("touchmove",O,x),Nk("drag",O,x)],pS(function(){se.forEach(function(e){return e()})}))),he=yS(e),pe=wS(e),me=(r={win:i},oe=(O=e).viewportResizeCb,O=r.win,h=d=-1,Nk("resize",pS(Uk(pS(function(){var e=Bk(),t=Wk();d===e&&h===t||(oe({width:Number(t),height:Number(e)}),d=e,h=t)}),200)),O)),ge=(Q=(x=e).inputCb,a=x.doc,ee=x.mirror,te=x.blockClass,ne=x.blockSelector,re=x.ignoreClass,s=x.ignoreSelector,u=x.maskInputOptions,ie=x.maskInputFn,l=x.userTriggeredOnInput,c=("last"===x.sampling.input?["change"]:["input","change"]).map(function(e){return Nk(e,pS(Se),a)}),(f=a.defaultView)?(x=f.Object.getOwnPropertyDescriptor(f.HTMLInputElement.prototype,"value"),r=[[f.HTMLInputElement.prototype,"value"],[f.HTMLInputElement.prototype,"checked"],[f.HTMLSelectElement.prototype,"value"],[f.HTMLTextAreaElement.prototype,"value"],[f.HTMLSelectElement.prototype,"selectedIndex"],[f.HTMLOptionElement.prototype,"selected"]],x&&x.set&&c.push.apply(c,Fe(r.map(function(e){return jk(e[0],e[1],{set:function(){pS(Se)({target:this,isTrusted:!1})}},!1,f)}))),pS(function(){c.forEach(function(e){return e()})})):function(){c.forEach(function(e){return e()})}),ve=(J=(O=e).mediaInteractionCb,$=O.blockClass,Z=O.blockSelector,K=O.mirror,Y=O.sampling,O=O.doc,x=pS(function(a){return Uk(pS(function(e){var t,n,r,i,o,e=gS(e);e&&!qk(e,$,Z,!0)&&(t=e.currentTime,n=e.volume,r=e.muted,i=e.playbackRate,o=e.loop,J({type:a,id:K.getId(e),currentTime:t,volume:n,muted:r,playbackRate:i,loop:o}))}),Y.media||500)}),X=[Nk("play",x(iS.Play),O),Nk("pause",x(iS.Pause),O),Nk("seeked",x(iS.Seeked),O),Nk("volumechange",x(iS.VolumeChange),O),Nk("ratechange",x(iS.RateChange),O)],pS(function(){X.forEach(function(e){return e()})})),ye=function(){},we=function(){},be=function(){},ke=function(){};function Se(e){var t,n,r,i=gS(e),e=e.isTrusted,o=i&&i.tagName;!(i=i&&"OPTION"===o?Pe.parentElement(i):i)||!o||bS.indexOf(o)<0||qk(i,te,ne,!0)||i.classList.contains(re)||s&&i.matches(s)||(t=i.value,n=!1,"radio"===(r=d0(i)||"")||"checkbox"===r?n=i.checked:(u[o.toLowerCase()]||u[r])&&(t=c0({element:i,maskInputOptions:u,tagName:o,type:r,value:t,maskInputFn:ie})),_e(i,l?{text:t,isChecked:n,userTriggered:e}:{text:t,isChecked:n}),o=i.name,"radio"===r&&o&&n&&a.querySelectorAll('input[type="radio"][name="'.concat(o,'"]')).forEach(function(e){var t;e!==i&&(t=e.value,_e(e,l?{text:t,isChecked:!n,userTriggered:!1}:{text:t,isChecked:!n}))}))}function _e(e,t){var n=kS.get(e);n&&n.text===t.text&&n.isChecked===t.isChecked||(kS.set(e,t),n=ee.getId(e),pS(Q)(Ae(Ae({},t),{},{id:n})))}e.recordDOM&&(ye=function(e,t){var s=e.styleSheetRuleCb,u=e.mirror,l=e.stylesheetManager,r=t.win;if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return function(){};var n=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(n,{apply:pS(function(e,t,n){var r=Ne(n,2),i=r[0],r=r[1],o=_S(t,u,l.styleMirror),a=o.id,o=o.styleId;return(a&&-1!==a||o&&-1!==o)&&s({id:a,styleId:o,adds:[{rule:i,index:r}]}),e.apply(t,n)})}),r.CSSStyleSheet.prototype.addRule=function(e,t){var n=2<arguments.length&&arguments[2]!==undefined?arguments[2]:this.cssRules.length,e="".concat(e," { ").concat(t," }");return r.CSSStyleSheet.prototype.insertRule.apply(this,[e,n])};var i,o,a=r.CSSStyleSheet.prototype.deleteRule,c=(r.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:pS(function(e,t,n){var r=Ne(n,1)[0],i=_S(t,u,l.styleMirror),o=i.id,i=i.styleId;return(o&&-1!==o||i&&-1!==i)&&s({id:o,styleId:i,removes:[{index:r}]}),e.apply(t,n)})}),r.CSSStyleSheet.prototype.removeRule=function(e){return r.CSSStyleSheet.prototype.deleteRule.apply(this,[e])},r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:pS(function(e,t,n){var r=Ne(n,1)[0],i=_S(t,u,l.styleMirror),o=i.id,i=i.styleId;return(o&&-1!==o||i&&-1!==i)&&s({id:o,styleId:i,replace:r}),e.apply(t,n)})})),r.CSSStyleSheet.prototype.replaceSync&&(o=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(o,{apply:pS(function(e,t,n){var r=Ne(n,1)[0],i=_S(t,u,l.styleMirror),o=i.id,i=i.styleId;return(o&&-1!==o||i&&-1!==i)&&s({id:o,styleId:i,replaceSync:r}),e.apply(t,n)})})),{}),f=(OS("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(OS("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),OS("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),OS("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule)),{});return Object.entries(c).forEach(function(e){var e=Ne(e,2),t=e[0],e=e[1];f[t]={insertRule:e.prototype.insertRule,deleteRule:e.prototype.deleteRule},e.prototype.insertRule=new Proxy(f[t].insertRule,{apply:pS(function(e,t,n){var r=Ne(n,2),i=r[0],r=r[1],o=_S(t.parentStyleSheet,u,l.styleMirror),a=o.id,o=o.styleId;return(a&&-1!==a||o&&-1!==o)&&s({id:a,styleId:o,adds:[{rule:i,index:[].concat(Fe(SS(t)),[r||0])}]}),e.apply(t,n)})}),e.prototype.deleteRule=new Proxy(f[t].deleteRule,{apply:pS(function(e,t,n){var r=Ne(n,1)[0],i=_S(t.parentStyleSheet,u,l.styleMirror),o=i.id,i=i.styleId;return(o&&-1!==o||i&&-1!==i)&&s({id:o,styleId:i,removes:[{index:[].concat(Fe(SS(t)),[r])}]}),e.apply(t,n)})})}),pS(function(){r.CSSStyleSheet.prototype.insertRule=n,r.CSSStyleSheet.prototype.deleteRule=a,i&&(r.CSSStyleSheet.prototype.replace=i),o&&(r.CSSStyleSheet.prototype.replaceSync=o),Object.entries(c).forEach(function(e){var e=Ne(e,2),t=e[0],e=e[1];e.prototype.insertRule=f[t].insertRule,e.prototype.deleteRule=f[t].deleteRule})})}(e,{win:i}),we=ES(e,e.doc),r={win:i},b=(x=e).styleDeclarationCb,k=x.mirror,S=x.ignoreCSSAttributes,_=x.stylesheetManager,E=r.win,C=E.CSSStyleDeclaration.prototype.setProperty,E.CSSStyleDeclaration.prototype.setProperty=new Proxy(C,{apply:pS(function(e,t,n){var r,i,o=Ne(n,3),a=o[0],s=o[1],o=o[2];return S.has(a)?C.apply(t,[a,s,o]):(r=(i=_S(null==(i=t.parentRule)?void 0:i.parentStyleSheet,k,_.styleMirror)).id,i=i.styleId,(r&&-1!==r||i&&-1!==i)&&b({id:r,styleId:i,set:{property:a,value:s,priority:o},index:SS(t.parentRule)}),e.apply(t,n))})}),R=E.CSSStyleDeclaration.prototype.removeProperty,E.CSSStyleDeclaration.prototype.removeProperty=new Proxy(R,{apply:pS(function(e,t,n){var r,i,o=Ne(n,1)[0];return S.has(o)?R.apply(t,[o]):(r=(i=_S(null==(i=t.parentRule)?void 0:i.parentStyleSheet,k,_.styleMirror)).id,i=i.styleId,(r&&-1!==r||i&&-1!==i)&&b({id:r,styleId:i,remove:{property:o},index:SS(t.parentRule)}),e.apply(t,n))})}),be=pS(function(){E.CSSStyleDeclaration.prototype.setProperty=C,E.CSSStyleDeclaration.prototype.removeProperty=R}),e.collectFonts)&&(ce=(O=e).fontCb,w=(O=O.doc).defaultView,ke=w?(g=[],v=new WeakMap,y=w.FontFace,w.FontFace=function(e,t,n){var r=new y(e,t,n);return v.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r},O=Dk(O.fonts,"add",function(e){return function(t){return setTimeout(pS(function(){var e=v.get(t);e&&(ce(e),v["delete"](t))}),0),e.apply(this,[t])}}),g.push(function(){w.FontFace=y}),g.push(O),pS(function(){g.forEach(function(e){return e()})})):function(){});Re=(x=e).doc,I=x.mirror,T=x.blockClass,M=x.blockSelector,Oe=x.selectionCb,A=!0,(x=pS(function(){var e=Re.getSelection();if(!(!e||A&&null!=e&&e.isCollapsed)){A=e.isCollapsed||!1;for(var t=[],n=e.rangeCount||0,r=0;r<n;r++){var i=e.getRangeAt(r),o=i.startContainer,a=i.startOffset,s=i.endContainer,i=i.endOffset;qk(o,T,M,!0)||qk(s,T,M,!0)||t.push({start:I.getId(o),startOffset:a,end:I.getId(s),endOffset:i})}Oe({ranges:t})}}))();var Ee,O,Ce,x,Re,I,T,M,Oe,A,xe=Nk("selectionchange",x),Ie=(O=(r=e).doc,Ce=r.customElementCb,(r=O.defaultView)&&r.customElements?Dk(r.customElements,"define",function(r){return function(e,t,n){try{Ce({define:{name:e}})}catch(De){console.warn("Custom element callback failed for ".concat(e))}return r.apply(this,[e,t,n])}}):function(){}),Te=[],P=Me(e.plugins);try{for(P.s();!(Ee=P.n()).done;){var L=Ee.value;Te.push(L.observer(L.callback,i,L.options))}}catch(Le){P.e(Le)}finally{P.f()}return pS(function(){mS.forEach(function(e){return e.reset()}),null!=o&&o.disconnect(),fe(),de(),he(),pe(),me(),ge(),ve(),ye(),we(),be(),ke(),xe(),Ie(),Te.forEach(function(e){return e()})})}function RS(e){return"undefined"!=typeof window[e]}function OS(e){return Boolean("undefined"!=typeof window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}for(var xS=k(function u(e){b(this,u),M(this,"iframeIdToRemoteIdMap",new WeakMap),M(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e},[{key:"getId",value:function(e,t,n,r){n=n||this.getIdToRemoteIdMap(e),r=r||this.getRemoteIdToIdMap(e),e=n.get(t);return e||(e=this.generateIdFn(),n.set(t,e),r.set(e,t)),e}},{key:"getIds",value:function(t,e){var n=this,r=this.getIdToRemoteIdMap(t),i=this.getRemoteIdToIdMap(t);return e.map(function(e){return n.getId(t,e,r,i)})}},{key:"getRemoteId",value:function(e,t,n){n=n||this.getRemoteIdToIdMap(e);return"number"!=typeof t?t:n.get(t)||-1}},{key:"getRemoteIds",value:function(t,e){var n=this,r=this.getRemoteIdToIdMap(t);return e.map(function(e){return n.getRemoteId(t,e,r)})}},{key:"reset",value:function(e){e?(this.iframeIdToRemoteIdMap["delete"](e),this.iframeRemoteIdToIdMap["delete"](e)):(this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap)}},{key:"getIdToRemoteIdMap",value:function(e){var t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}},{key:"getRemoteIdToIdMap",value:function(e){var t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}]),IS=k(function u(e){b(this,u),M(this,"iframes",new WeakMap),M(this,"crossOriginIframeMap",new WeakMap),M(this,"crossOriginIframeMirror",new xS(E0)),M(this,"crossOriginIframeStyleMirror"),M(this,"crossOriginIframeRootIdMap",new WeakMap),M(this,"mirror"),M(this,"mutationCb"),M(this,"wrappedEmit"),M(this,"loadListener"),M(this,"stylesheetManager"),M(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new xS(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))},[{key:"addIframe",value:function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}},{key:"addLoadListener",value:function(e){this.loadListener=e}},{key:"attachIframe",value:function(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&null!=(t=e.contentWindow)&&t.addEventListener("message",this.handleMessage.bind(this)),null!=(t=this.loadListener)&&t.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&0<e.contentDocument.adoptedStyleSheets.length&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}},{key:"handleMessage",value:function(e){var t=e;"rrweb"===t.data.type&&t.origin===t.data.origin&&e.source&&(e=this.crossOriginIframeMap.get(e.source))&&(e=this.transformCrossOriginEvent(e,t.data.event))&&this.wrappedEmit(e,t.data.isCheckout)}},{key:"transformCrossOriginEvent",value:function(n,e){var t,r=this;switch(e.type){case Qk.FullSnapshot:this.crossOriginIframeMirror.reset(n),this.crossOriginIframeStyleMirror.reset(n),this.replaceIdOnNode(e.data.node,n);var i=e.data.node.id;return this.crossOriginIframeRootIdMap.set(n,i),this.patchRootIdOnNode(e.data.node,i),{timestamp:e.timestamp,type:Qk.IncrementalSnapshot,data:{source:eS.Mutation,adds:[{parentId:this.mirror.getId(n),nextId:null,node:e.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case Qk.Meta:case Qk.Load:case Qk.DomContentLoaded:return!1;case Qk.Plugin:return e;case Qk.Custom:return this.replaceIds(e.data.payload,n,["id","parentId","previousId","nextId"]),e;case Qk.IncrementalSnapshot:switch(e.data.source){case eS.Mutation:return e.data.adds.forEach(function(e){r.replaceIds(e,n,["parentId","nextId","previousId"]),r.replaceIdOnNode(e.node,n);var t=r.crossOriginIframeRootIdMap.get(n);t&&r.patchRootIdOnNode(e.node,t)}),e.data.removes.forEach(function(e){r.replaceIds(e,n,["parentId","id"])}),e.data.attributes.forEach(function(e){r.replaceIds(e,n,["id"])}),e.data.texts.forEach(function(e){r.replaceIds(e,n,["id"])}),e;case eS.Drag:case eS.TouchMove:case eS.MouseMove:return e.data.positions.forEach(function(e){r.replaceIds(e,n,["id"])}),e;case eS.ViewportResize:return!1;case eS.MediaInteraction:case eS.MouseInteraction:case eS.Scroll:case eS.CanvasMutation:case eS.Input:return this.replaceIds(e.data,n,["id"]),e;case eS.StyleSheetRule:case eS.StyleDeclaration:return this.replaceIds(e.data,n,["id"]),this.replaceStyleIds(e.data,n,["styleId"]),e;case eS.Font:return e;case eS.Selection:return e.data.ranges.forEach(function(e){r.replaceIds(e,n,["start","end"])}),e;case eS.AdoptedStyleSheet:return this.replaceIds(e.data,n,["id"]),this.replaceStyleIds(e.data,n,["styleIds"]),null!=(t=e.data.styles)&&t.forEach(function(e){r.replaceStyleIds(e,n,["styleId"])}),e}}return!1}},{key:"replace",value:function(e,t,n,r){var i,o=Me(r);try{for(o.s();!(i=o.n()).done;){var a=i.value;!Array.isArray(t[a])&&"number"!=typeof t[a]||(Array.isArray(t[a])?t[a]=e.getIds(n,t[a]):t[a]=e.getId(n,t[a]))}}catch(Le){o.e(Le)}finally{o.f()}return t}},{key:"replaceIds",value:function(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}},{key:"replaceStyleIds",value:function(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}},{key:"replaceIdOnNode",value:function(e,t){var n=this;this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(function(e){n.replaceIdOnNode(e,t)})}},{key:"patchRootIdOnNode",value:function(e,t){var n=this;e.type===oS.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(function(e){n.patchRootIdOnNode(e,t)})}}]),TS=k(function u(e){b(this,u),M(this,"shadowDoms",new WeakSet),M(this,"mutationCb"),M(this,"scrollCb"),M(this,"bypassOptions"),M(this,"mirror"),M(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()},[{key:"init",value:function(){this.reset(),this.patchAttachShadow(Element,document)}},{key:"addShadowRoot",value:function(e,t){var n,r=this;a0(e)&&!this.shadowDoms.has(e)&&(this.shadowDoms.add(e),n=Ne(vS(Ae(Ae({},this.bypassOptions),{},{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e),1)[0],this.restoreHandlers.push(function(){return n.disconnect()}),this.restoreHandlers.push(wS(Ae(Ae({},this.bypassOptions),{},{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(function(){e.adoptedStyleSheets&&0<e.adoptedStyleSheets.length&&r.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,r.mirror.getId(Pe.host(e))),r.restoreHandlers.push(ES({mirror:r.mirror,stylesheetManager:r.bypassOptions.stylesheetManager},e))},0))}},{key:"observeAttachShadow",value:function(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}},{key:"patchAttachShadow",value:function(e,r){var i=this;this.restoreHandlers.push(Dk(e.prototype,"attachShadow",function(n){return function(e){var e=n.call(this,e),t=Pe.shadowRoot(this);return t&&Xk(this)&&i.addShadowRoot(t,r),e}}))}},{key:"reset",value:function(){this.restoreHandlers.forEach(function(e){try{e()}catch(w){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}]),MS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",AS="undefined"==typeof Uint8Array?[]:new Uint8Array(256),PS=0;PS<MS.length;PS++)AS[MS.charCodeAt(PS)]=PS;var LS=new Map,DS=function(e,t,n){var r;if(e&&(FS(e,t)||"object"===S(e)))return t=n,n=e.constructor.name,(r=LS.get(t))||(r=new Map,LS.set(t,r)),r.has(n)||r.set(n,[]),-1===(n=(t=r.get(n)).indexOf(e))&&(n=t.length,t.push(e)),n};var NS=function(e,t,n){return e.map(function(e){return function r(i,t,n){return i instanceof Array?i.map(function(e){return r(e,t,n)}):null===i?i:i instanceof Float32Array||i instanceof Float64Array||i instanceof Int32Array||i instanceof Uint32Array||i instanceof Uint8Array||i instanceof Uint16Array||i instanceof Int16Array||i instanceof Int8Array||i instanceof Uint8ClampedArray?{rr_type:i.constructor.name,args:[Object.values(i)]}:i instanceof ArrayBuffer?{rr_type:i.constructor.name,base64:function(){for(var e=new Uint8Array(i),t=e.length,n="",r=0;r<t;r+=3)n=(n=(n=(n+=MS[e[r]>>2])+MS[(3&e[r])<<4|e[r+1]>>4])+MS[(15&e[r+1])<<2|e[r+2]>>6])+MS[63&e[r+2]];return t%3==2?n=n.substring(0,n.length-1)+"=":t%3==1&&(n=n.substring(0,n.length-2)+"=="),n}()}:i instanceof DataView?{rr_type:i.constructor.name,args:[r(i.buffer,t,n),i.byteOffset,i.byteLength]}:i instanceof HTMLImageElement?{rr_type:i.constructor.name,src:i.src}:i instanceof HTMLCanvasElement?{rr_type:"HTMLImageElement",src:i.toDataURL()}:i instanceof ImageData?{rr_type:i.constructor.name,args:[r(i.data,t,n),i.width,i.height]}:FS(i,t)||"object"===S(i)?{rr_type:i.constructor.name,index:DS(i,t,n)}:i}(e,t,n)})},FS=function(t,n){var e=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(function(e){return"function"==typeof n[e]});return Boolean(e.find(function(e){return t instanceof n[e]}))};function US(e,a,s,u){var t=[];try{var n=Dk(e.HTMLCanvasElement.prototype,"getContext",function(o){return function(e){for(var t,n=arguments.length,r=new Array(1<n?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return qk(this,a,s,!0)||(t="experimental-webgl"===(t=e)?"webgl":t,"__context"in this||(this.__context=t),u&&["webgl","webgl2"].includes(t)&&(r[0]&&"object"===S(r[0])?(t=r[0]).preserveDrawingBuffer||(t.preserveDrawingBuffer=!0):r.splice(0,1,{preserveDrawingBuffer:!0}))),o.apply(this,[e].concat(r))}});t.push(n)}catch(P){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){t.forEach(function(e){return e()})}}function jS(t,s,u,l,c,f){var n,r=[],e=Me(Object.getOwnPropertyNames(t));try{for(e.s();!(n=e.n()).done;)!function(){var a=n.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))return;try{if("function"!=typeof t[a])return;var e=Dk(t,a,function(o){return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=o.apply(this,t);return DS(i,f,this),"tagName"in this.canvas&&!qk(this.canvas,l,c,!0)&&(r=NS(t,f,this),u(this.canvas,{type:s,property:a,args:r})),i}});r.push(e)}catch(N){e=jk(t,a,{set:function(e){u(this.canvas,{type:s,property:a,args:[e],setter:!0})}});r.push(e)}}()}catch(Le){e.e(Le)}finally{e.f()}return r}var zS='(function() {\n "use strict";\n var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";\n var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256);\n for (var i = 0; i < chars.length; i++) {\n lookup[chars.charCodeAt(i)] = i;\n }\n var encode = function(arraybuffer) {\n var bytes = new Uint8Array(arraybuffer), i2, len = bytes.length, base64 = "";\n for (i2 = 0; i2 < len; i2 += 3) {\n base64 += chars[bytes[i2] >> 2];\n base64 += chars[(bytes[i2] & 3) << 4 | bytes[i2 + 1] >> 4];\n base64 += chars[(bytes[i2 + 1] & 15) << 2 | bytes[i2 + 2] >> 6];\n base64 += chars[bytes[i2 + 2] & 63];\n }\n if (len % 3 === 2) {\n base64 = base64.substring(0, base64.length - 1) + "=";\n } else if (len % 3 === 1) {\n base64 = base64.substring(0, base64.length - 2) + "==";\n }\n return base64;\n };\n const lastBlobMap = /* @__PURE__ */ new Map();\n const transparentBlobMap = /* @__PURE__ */ new Map();\n async function getTransparentBlobFor(width, height, dataURLOptions) {\n const id = `${width}-${height}`;\n if ("OffscreenCanvas" in globalThis) {\n if (transparentBlobMap.has(id)) return transparentBlobMap.get(id);\n const offscreen = new OffscreenCanvas(width, height);\n offscreen.getContext("2d");\n const blob = await offscreen.convertToBlob(dataURLOptions);\n const arrayBuffer = await blob.arrayBuffer();\n const base64 = encode(arrayBuffer);\n transparentBlobMap.set(id, base64);\n return base64;\n } else {\n return "";\n }\n }\n const worker = self;\n worker.onmessage = async function(e) {\n if ("OffscreenCanvas" in globalThis) {\n const { id, bitmap, width, height, dataURLOptions } = e.data;\n const transparentBase64 = getTransparentBlobFor(\n width,\n height,\n dataURLOptions\n );\n const offscreen = new OffscreenCanvas(width, height);\n const ctx = offscreen.getContext("2d");\n ctx.drawImage(bitmap, 0, 0);\n bitmap.close();\n const blob = await offscreen.convertToBlob(dataURLOptions);\n const type = blob.type;\n const arrayBuffer = await blob.arrayBuffer();\n const base64 = encode(arrayBuffer);\n if (!lastBlobMap.has(id) && await transparentBase64 === base64) {\n lastBlobMap.set(id, base64);\n return worker.postMessage({ id });\n }\n if (lastBlobMap.get(id) === base64) return worker.postMessage({ id });\n worker.postMessage({\n id,\n type,\n base64,\n width,\n height\n });\n lastBlobMap.set(id, base64);\n } else {\n return worker.postMessage({ id: e.data.id });\n }\n };\n})();\n//# sourceMappingURL=image-bitmap-data-url-worker-IJpC7g_b.js.map\n',BS="undefined"!=typeof self&&self.Blob&&new Blob([zS],{type:"text/javascript;charset=utf-8"});function WS(e){var t,n;try{if(t=BS&&(self.URL||self.webkitURL).createObjectURL(BS))return(n=new Worker(t,{name:null==e?void 0:e.name})).addEventListener("error",function(){(self.URL||self.webkitURL).revokeObjectURL(t)}),n;throw""}catch(v){return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(zS),{name:null==e?void 0:e.name})}finally{t&&(self.URL||self.webkitURL).revokeObjectURL(t)}}var HS,qS,VS,GS,JS=k(function u(e){var n=this,t=(b(this,u),M(this,"pendingCanvasMutations",new Map),M(this,"rafStamps",{latestId:0,invokeId:null}),M(this,"mirror"),M(this,"mutationCb"),M(this,"resetObservers"),M(this,"frozen",!1),M(this,"locked",!1),M(this,"processMutation",function(e,t){(n.rafStamps.invokeId&&n.rafStamps.latestId!==n.rafStamps.invokeId||!n.rafStamps.invokeId)&&(n.rafStamps.invokeId=n.rafStamps.latestId),n.pendingCanvasMutations.has(e)||n.pendingCanvasMutations.set(e,[]),n.pendingCanvasMutations.get(e).push(t)}),e.sampling),t=void 0===t?"all":t,r=e.win,i=e.blockClass,o=e.blockSelector,a=e.recordCanvas,s=e.dataURLOptions;this.mutationCb=e.mutationCb,this.mirror=e.mirror,a&&"all"===t&&this.initCanvasMutationObserver(r,i,o),a&&"number"==typeof t&&this.initCanvasFPSObserver(t,r,i,o,{dataURLOptions:s})},[{key:"reset",value:function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}},{key:"freeze",value:function(){this.frozen=!0}},{key:"unfreeze",value:function(){this.frozen=!1}},{key:"lock",value:function(){this.locked=!0}},{key:"unlock",value:function(){this.locked=!1}},{key:"initCanvasFPSObserver",value:function(e,o,r,i,a){var s=this,t=US(o,r,i,!0),u=new Map,l=new WS;l.onmessage=function(e){var t,n=e.data.id;u.set(n,!1),"base64"in e.data&&(t=(e=e.data).base64,s.mutationCb({id:n,type:rS["2D"],commands:[{property:"clearRect",args:[0,0,e.width,e.height]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:t}],type:e.type}]},0,0]}]}))};var c=1e3/e,f=0,d=function(e){var t,n;h=(f&&e-f<c||(f=e,t=[],o.document.querySelectorAll("canvas").forEach(function(e){qk(e,r,i,!0)||t.push(e)}),t.forEach((n=A(B().m(function o(t){var n,r,i;return B().w(function(e){for(;;)switch(e.n){case 0:if(n=s.mirror.getId(t),u.get(n))return e.a(2);e.n=1;break;case 1:if(0===t.width||0===t.height)return e.a(2);e.n=2;break;case 2:return u.set(n,!0),["webgl","webgl2"].includes(t.__context)&&(r=t.getContext(t.__context),!1===(null==(i=null==r?void 0:r.getContextAttributes())?void 0:i.preserveDrawingBuffer))&&r.clear(r.COLOR_BUFFER_BIT),e.n=3,createImageBitmap(t);case 3:i=e.v,l.postMessage({id:n,bitmap:i,width:t.width,height:t.height,dataURLOptions:a.dataURLOptions},[i]);case 4:return e.a(2)}},o)})),function(e){return n.apply(this,arguments)}))),requestAnimationFrame(d))},h=requestAnimationFrame(d);this.resetObservers=function(){t(),cancelAnimationFrame(h)}}},{key:"initCanvasMutationObserver",value:function(e,t,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var r,i,o=US(e,t,n,!1),a=function(a,s,u,l){var t,n=[],e=Me(Object.getOwnPropertyNames(s.CanvasRenderingContext2D.prototype));try{for(e.s();!(t=e.n()).done;)!function(){var o=t.value;try{if("function"!=typeof s.CanvasRenderingContext2D.prototype[o])return;var e=Dk(s.CanvasRenderingContext2D.prototype,o,function(i){return function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return qk(this.canvas,u,l,!0)||setTimeout(function(){var e=NS(n,s,t);a(t.canvas,{type:rS["2D"],property:o,args:e})},0),i.apply(this,n)}});n.push(e)}catch(L){e=jk(s.CanvasRenderingContext2D.prototype,o,{set:function(e){a(this.canvas,{type:rS["2D"],property:o,args:[e],setter:!0})}});n.push(e)}}()}catch(Le){e.e(Le)}finally{e.f()}return function(){n.forEach(function(e){return e()})}}(this.processMutation.bind(this),e,t,n),s=(r=this.processMutation.bind(this),t=t,n=n,i=[],"undefined"!=typeof(e=e).WebGLRenderingContext&&i.push.apply(i,Fe(jS(e.WebGLRenderingContext.prototype,rS.WebGL,r,t,n,e))),"undefined"!=typeof e.WebGL2RenderingContext&&i.push.apply(i,Fe(jS(e.WebGL2RenderingContext.prototype,rS.WebGL2,r,t,n,e))),function(){i.forEach(function(e){return e()})});this.resetObservers=function(){o(),a(),s()}}},{key:"startPendingCanvasMutationFlusher",value:function(){var e=this;requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})}},{key:"startRAFTimestamping",value:function(){var t=this,n=function(e){t.rafStamps.latestId=e,requestAnimationFrame(n)};requestAnimationFrame(n)}},{key:"flushPendingCanvasMutations",value:function(){var r=this;this.pendingCanvasMutations.forEach(function(e,t){var n=r.mirror.getId(t);r.flushPendingCanvasMutationFor(t,n)}),requestAnimationFrame(function(){return r.flushPendingCanvasMutations()})}},{key:"flushPendingCanvasMutationFor",value:function(e,t){var n,r;this.frozen||this.locked||(r=this.pendingCanvasMutations.get(e))&&-1!==t&&(n=r.map(function(e){return e.type,z(e,Hy)}),r=r[0].type,this.mutationCb({id:t,type:r,commands:n}),this.pendingCanvasMutations["delete"](e))}}]),$S=k(function u(e){b(this,u),M(this,"trackedLinkElements",new WeakSet),M(this,"mutationCb"),M(this,"adoptedStyleSheetCb"),M(this,"styleMirror",new Kk),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb},[{key:"attachLinkElement",value:function(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}},{key:"trackLinkElement",value:function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}},{key:"adoptStyleSheets",value:function(e,t){var r=this;if(0!==e.length){var i,o={id:t,styleIds:[]},a=[],n=Me(e);try{for(n.s();!(i=n.n()).done;)!function(){var e,n=i.value;r.styleMirror.has(n)?e=r.styleMirror.getId(n):(e=r.styleMirror.add(n),a.push({styleId:e,rules:Array.from(n.rules||CSSRule,function(e,t){return{rule:u0(e,n.href),index:t}})})),o.styleIds.push(e)}()}catch(Le){n.e(Le)}finally{n.f()}0<a.length&&(o.styles=a),this.adoptedStyleSheetCb(o)}}},{key:"reset",value:function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}},{key:"trackStylesheetInLinkElement",value:function(e){}}]),ZS=k(function u(){b(this,u),M(this,"nodeMap",new WeakMap),M(this,"active",!1)},[{key:"inOtherBuffer",value:function(e,t){e=this.nodeMap.get(e);return e&&Array.from(e).some(function(e){return e!==t})}},{key:"add",value:function(e,t){var n=this;this.active||(this.active=!0,requestAnimationFrame(function(){n.nodeMap=new WeakMap,n.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}},{key:"destroy",value:function(){}}]),KS=!1;try{2!==Array.from([1],function(e){return 2*e})[0]&&(GS=document.createElement("iframe"),document.body.appendChild(GS),Array.from=(null==(Uy=GS.contentWindow)?void 0:Uy.Array.from)||Array.from,document.body.removeChild(GS))}catch(Le){console.debug("Unable to override Array.from",Le)}var YS,XS=new l0;function QS(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{},r=e.emit,i=e.checkoutEveryNms,o=e.checkoutEveryNth,t=e.blockClass,u=void 0===t?"rr-block":t,t=e.blockSelector,l=void 0===t?null:t,t=e.ignoreClass,D=void 0===t?"rr-ignore":t,t=e.ignoreSelector,N=void 0===t?null:t,t=e.maskTextClass,c=void 0===t?"rr-mask":t,t=e.maskTextSelector,f=void 0===t?null:t,t=e.inlineStylesheet,d=void 0===t||t,t=e.maskAllInputs,n=e.maskInputOptions,F=e.slimDOMOptions,h=e.maskInputFn,p=e.maskTextFn,U=e.hooks,j=e.packFn,a=e.sampling,s=void 0===a?{}:a,a=e.dataURLOptions,m=void 0===a?{}:a,a=e.mousemoveWait,g=e.recordDOM,z=void 0===g||g,g=e.recordCanvas,v=void 0!==g&&g,g=e.recordCrossOriginIframes,g=void 0!==g&&g,y=e.recordAfter,B=void 0===y?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":y,y=e.userTriggeredOnInput,W=void 0!==y&&y,y=e.collectFonts,H=void 0!==y&&y,y=e.inlineImages,w=void 0!==y&&y,b=e.plugins,y=e.keepIframeSrcFn,k=void 0===y?function(){return!1}:y,y=e.ignoreCSSAttributes,q=void 0===y?new Set([]):y,S=(sS=e.errorHandler,!g||window.parent===window),_=!1;if(!S)try{window.parent.document&&(_=!1)}catch(Ee){_=!0}if(S&&!r)throw new Error("emit function is required");if(!S&&!_)return function(){};void 0!==a&&void 0===s.mousemove&&(s.mousemove=a),XS.reset();var V,E=!0===t?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:void 0!==n?n:{password:!0},C=N0(F),R=(!function(e){"NodeList"in(e=0<arguments.length&&e!==undefined?e:window)&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}(),0),G=function(e){var t,n=Me(b||[]);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.eventProcessor&&(e=r.eventProcessor(e))}}catch(Le){n.e(Le)}finally{n.f()}return e=j&&!_?j(e):e};HS=function(e,t){var n;e.timestamp=Lk(),null==(n=mS[0])||!n.isFrozen()||e.type===Qk.FullSnapshot||e.type===Qk.IncrementalSnapshot&&e.data.source===eS.Mutation||mS.forEach(function(e){return e.unfreeze()}),S?null!=r&&r(G(e),t):_&&(n={type:"rrweb",event:G(e),origin:window.location.origin,isCheckout:t},window.parent.postMessage(n,"*")),e.type===Qk.FullSnapshot?(V=e,R=0):e.type!==Qk.IncrementalSnapshot||e.data.source===eS.Mutation&&e.data.isAttachIframe||(R++,t=o&&o<=R,n=i&&e.timestamp-V.timestamp>i,(t||n)&&qS(!0))};var J,O=function(e){HS({type:Qk.IncrementalSnapshot,data:Ae({source:eS.Mutation},e)})},$=function(e){return HS({type:Qk.IncrementalSnapshot,data:Ae({source:eS.Scroll},e)})},Z=function(e){return HS({type:Qk.IncrementalSnapshot,data:Ae({source:eS.CanvasMutation},e)})},x=new $S({mutationCb:O,adoptedStyleSheetCb:function(e){return HS({type:Qk.IncrementalSnapshot,data:Ae({source:eS.AdoptedStyleSheet},e)})}}),I=new IS({mirror:XS,mutationCb:O,stylesheetManager:x,recordCrossOriginIframes:g,wrappedEmit:HS}),T=Me(b||[]);try{for(T.s();!(J=T.n()).done;){var K=J.value;K.getMirror&&K.getMirror({nodeMirror:XS,crossOriginIframeMirror:I.crossOriginIframeMirror,crossOriginIframeStyleMirror:I.crossOriginIframeStyleMirror})}}catch(Le){T.e(Le)}finally{T.f()}var M=new ZS,A=(VS=new JS({recordCanvas:v,mutationCb:Z,win:window,blockClass:u,blockSelector:l,mirror:XS,sampling:s.canvas,dataURLOptions:m}),new TS({mutationCb:O,scrollCb:$,bypassOptions:{blockClass:u,blockSelector:l,maskTextClass:c,maskTextSelector:f,inlineStylesheet:d,maskInputOptions:E,dataURLOptions:m,maskTextFn:p,maskInputFn:h,recordCanvas:v,inlineImages:w,sampling:s,slimDOMOptions:C,iframeManager:I,stylesheetManager:x,canvasManager:VS,keepIframeSrcFn:k,processedNodeManager:M},mirror:XS}));qS=function(){var e,t,n,r,i,o,a=0<arguments.length&&arguments[0]!==undefined&&arguments[0];if(z){HS({type:Qk.Meta,data:{href:window.location.href,width:Wk(),height:Bk()}},a),x.reset(),A.init(),mS.forEach(function(e){return e.lock()});s=document,r=void 0===(r=(e={mirror:XS,blockClass:u,blockSelector:l,maskTextClass:c,maskTextSelector:f,inlineStylesheet:d,maskAllInputs:E,maskTextFn:p,maskInputFn:h,slimDOM:C,dataURLOptions:m,recordCanvas:v,inlineImages:w,onSerialize:function(e){Jk(e,XS)&&I.addIframe(e),$k(e,XS)&&x.trackLinkElement(e),Zk(e)&&A.addShadowRoot(Pe.shadowRoot(e),document)},onIframeLoad:function(e,t){I.attachIframe(e,t),A.observeAttachShadow(e)},onStylesheetLoad:function(e,t){x.attachLinkElement(e,t)},keepIframeSrcFn:k}).mirror)?new l0:r,t=e.inlineImages,n=e.recordCanvas,i=e.slimDOM,o=e.keepIframeSrcFn;var s=F0(s,{doc:s,mirror:r,blockClass:void 0===(s=e.blockClass)?"rr-block":s,blockSelector:void 0===(r=e.blockSelector)?null:r,maskTextClass:void 0===(s=e.maskTextClass)?"rr-mask":s,maskTextSelector:void 0===(r=e.maskTextSelector)?null:r,skipChild:!1,inlineStylesheet:void 0===(s=e.inlineStylesheet)||s,maskInputOptions:!0===(r=void 0!==(r=e.maskAllInputs)&&r)?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===r?{password:!0}:r,maskTextFn:e.maskTextFn,maskInputFn:e.maskInputFn,slimDOMOptions:N0(void 0!==i&&i),dataURLOptions:e.dataURLOptions,inlineImages:void 0!==t&&t,recordCanvas:void 0!==n&&n,preserveWhiteSpace:e.preserveWhiteSpace,onSerialize:e.onSerialize,onIframeLoad:e.onIframeLoad,iframeLoadTimeout:e.iframeLoadTimeout,onStylesheetLoad:e.onStylesheetLoad,stylesheetLoadTimeout:e.stylesheetLoadTimeout,keepIframeSrcFn:void 0===o?function(){return!1}:o,newlyAddedElement:!1});if(!s)return console.warn("Failed to snapshot the document");HS({type:Qk.FullSnapshot,data:{node:s,initialOffset:zk(window)}},a),mS.forEach(function(e){return e.unlock()}),document.adoptedStyleSheets&&0<document.adoptedStyleSheets.length&&x.adoptStyleSheets(document.adoptedStyleSheets,XS.getId(document))}};try{var P=[],Y=function(e){return pS(CS)({mutationCb:O,mousemoveCb:function(e,t){return HS({type:Qk.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return HS({type:Qk.IncrementalSnapshot,data:Ae({source:eS.MouseInteraction},e)})},scrollCb:$,viewportResizeCb:function(e){return HS({type:Qk.IncrementalSnapshot,data:Ae({source:eS.ViewportResize},e)})},inputCb:function(e){return HS({type:Qk.IncrementalSnapshot,data:Ae({source:eS.Input},e)})},mediaInteractionCb:function(e){return HS({type:Qk.IncrementalSnapshot,data:Ae({source:eS.MediaInteraction},e)})},styleSheetRuleCb:function(e){return HS({type:Qk.IncrementalSnapshot,data:Ae({source:eS.StyleSheetRule},e)})},styleDeclarationCb:function(e){return HS({type:Qk.IncrementalSnapshot,data:Ae({source:eS.StyleDeclaration},e)})},canvasMutationCb:Z,fontCb:function(e){return HS({type:Qk.IncrementalSnapshot,data:Ae({source:eS.Font},e)})},selectionCb:function(e){HS({type:Qk.IncrementalSnapshot,data:Ae({source:eS.Selection},e)})},customElementCb:function(e){HS({type:Qk.IncrementalSnapshot,data:Ae({source:eS.CustomElement},e)})},blockClass:u,ignoreClass:D,ignoreSelector:N,maskTextClass:c,maskTextSelector:f,maskInputOptions:E,inlineStylesheet:d,sampling:s,recordDOM:z,recordCanvas:v,inlineImages:w,userTriggeredOnInput:W,collectFonts:H,doc:e,maskInputFn:h,maskTextFn:p,keepIframeSrcFn:k,blockSelector:l,slimDOMOptions:C,dataURLOptions:m,mirror:XS,iframeManager:I,stylesheetManager:x,shadowDomManager:A,processedNodeManager:M,canvasManager:VS,ignoreCSSAttributes:q,plugins:(null==(e=null==b?void 0:b.filter(function(e){return e.observer}))?void 0:e.map(function(t){return{observer:t.observer,options:t.options,callback:function(e){return HS({type:Qk.Plugin,data:{plugin:t.name,payload:e}})}}}))||[]},U)},L=(I.addLoadListener(function(e){try{P.push(Y(e.contentDocument))}catch(X){console.warn(X)}}),function(){qS(),P.push(Y(document)),KS=!0});return["interactive","complete"].includes(document.readyState)?L():(P.push(Nk("DOMContentLoaded",function(){HS({type:Qk.DomContentLoaded,data:{}}),"DOMContentLoaded"===B&&L()})),P.push(Nk("load",function(){HS({type:Qk.Load,data:{}}),"load"===B&&L()},window))),function(){P.forEach(function(e){try{e()}catch(X){String(X).toLowerCase().includes("cross-origin")||console.warn(X)}}),M.destroy(),KS=!1,sS=void 0}}catch(X){console.warn(X)}}QS.addCustomEvent=function(e,t){if(!KS)throw new Error("please add custom event after start recording");HS({type:Qk.Custom,data:{tag:e,payload:t}})},QS.freezePage=function(){mS.forEach(function(e){return e.freeze()})},QS.takeFullSnapshot=function(e){if(!KS)throw new Error("please take full snapshot after start recording");qS(e)},QS.mirror=XS,(e=YS=YS||{})[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped";var e_='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',t_={maskAllText:!0,maskAllInputs:!0,blockAllMedia:!0,autoDetectSensitiveData:!0,mask:[".tdem-mask","[data-tdem-mask]","[data-sensitive]",".sensitive",".private"],block:[".tdem-block","[data-tdem-block]",".secret","[data-secret]","iframe[srcdoc]:not([src])",".replayer-wrapper"],ignore:[".tdem-ignore","[data-tdem-ignore]",'input[type="file"]','input[type="password"]'],maskInputOptions:{password:!0,email:!0,tel:!0,text:!1}},n_=(r_.maskPhone=function(e){return e.replace(this.phoneRegex,function(e){var t=e.replace(/[^\d]/g,"");return 11===t.length?e.substring(0,3)+"****"+e.substring(7):13===t.length?e.substring(0,6)+"****"+e.substring(10):e.substring(0,3)+"****"+e.substring(e.length-4)})},r_.maskIdCard=function(e){return e.replace(this.idCardRegex,function(e){return 18===e.length?e.substring(0,6)+"********"+e.substring(14):15===e.length?e.substring(0,6)+"******"+e.substring(12):e})},r_.maskEmail=function(e){return e.replace(this.emailRegex,function(e){var t,n=e.indexOf("@");return n<=1?"*"+e.substring(1):(t=e.substring(0,n),n=e.substring(n),t.charAt(0)+"***"+t.charAt(t.length-1)+n)})},r_.maskBankCard=function(e){return e.replace(this.bankCardRegex,function(e){var t=e.replace(/[^\d]/g,"");return t.length<13?e:t.substring(0,4)+" **** **** "+t.substring(t.length-4)})},r_.maskIP=function(e){return e.replace(this.ipv4Regex,function(e){e=e.split(".");return e[0]+".*.*."+e[3]})},r_.autoMask=function(e){var t;return e&&"string"==typeof e?(t=this.maskPhone(t=e),t=this.maskIdCard(t),t=this.maskEmail(t),this.maskBankCard(t)):e},r_.hasSensitiveData=function(e){return!(!e||"string"!=typeof e)&&(this.phoneRegex.test(e)||this.idCardRegex.test(e)||this.emailRegex.test(e)||this.bankCardRegex.test(e))},r_.phoneRegex=/1[3-9]\d{9}|(?:\+?86)?1[3-9]\d{9}/g,r_.idCardRegex=/[1-9]\d{5}(?:19|20)\d{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])\d{3}[\dXx]|[1-9]\d{7}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])\d{3}/g,r_.emailRegex=/[\w.-]+@[\w.-]+\.\w{2,}/g,r_.bankCardRegex=/\b\d{4}[\s-]?\d{4}[\s-]?\d{4}[\s-]?\d{1,7}\b/g,r_.ipv4Regex=/\b(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\b/g,r_);function r_(){}function i_(e,t){return void 0===e&&(e={}),h(h(h({},t=void 0===t?t_:t),e),{mask:o_(t.mask,e.mask),block:o_(t.block,e.block),ignore:o_(t.ignore,e.ignore),maskInputOptions:h(h({},t.maskInputOptions),e.maskInputOptions)})}function o_(e,t){e=new Set(qu(e||[],t||[]));return Array.from(e)}f_.prototype.push=function(e,t){if(this.emitFn=t,3===e.type&&this.isMutationEvent(e)){var n=e.data;if(this.buffer){if(this.enableRepeatDetection&&this.isRepeatPattern(n)){if(this.repeatCount++,3<this.repeatCount)return this.buffer=this.cloneEvent(e),void this.droppedByRepeat++}else this.repeatCount=0;this.mergeInto(n,e.timestamp),this.mergedCount++,(null!=(n=null==(n=this.buffer.data.adds)?void 0:n.length)?n:0)>=this.maxAddsPerMerge&&this.flush()}else this.buffer=this.cloneEvent(e),this.scheduleFlush()}else this.flush(),t(e)},f_.prototype.flush=function(){this.clearTimer(),this.buffer&&this.emitFn&&(this.emitFn(this.buffer),this.buffer=null,this.repeatCount=0)},f_.prototype.destroy=function(){this.flush(),this.clearTimer(),this.emitFn=null},f_.prototype.getStats=function(){return{mergedCount:this.mergedCount,droppedByRepeat:this.droppedByRepeat,cancelledByOffset:this.cancelledByOffset}},f_.prototype.isMutationEvent=function(e){return 0===(null==(e=e.data)?void 0:e.source)},f_.prototype.isRepeatPattern=function(e){var t;return!!this.buffer&&(t=null!=(t=this.buffer.data.adds)?t:[],e=null!=(e=e.adds)?e:[],0!==t.length)&&0!==e.length&&t.length===e.length&&(null==(t=t[0])?void 0:t.parentId)===(null==(t=e[0])?void 0:t.parentId)},f_.prototype.mergeInto=function(e,t){var n,r,i,o;if(this.buffer){var a=this.buffer.data;this.buffer.timestamp=Math.max(this.buffer.timestamp,t);for(var s=this,u=0,l=null!=(t=e.removes)?t:[];u<l.length;u++)!function(t){var e=(null!=(n=a.adds)?n:[]).findIndex(function(e){return(null==(e=e.node)?void 0:e.id)===t.id});0<=e?(a.adds.splice(e,1),s.cancelledByOffset++):(a.removes=null!=(n=a.removes)?n:[],a.removes.push(t))}(l[u]);for(var c=0,f=null!=(t=e.adds)?t:[];c<f.length;c++){var d=f[c];a.adds=null!=(r=a.adds)?r:[],a.adds.push(d)}for(var h=0,p=null!=(t=e.attributes)?t:[];h<p.length;h++)!function(t){a.attributes=null!=(i=a.attributes)?i:[];var e=a.attributes.findIndex(function(e){return e.id===t.id});0<=e?a.attributes[e]=t:a.attributes.push(t)}(p[h]);for(var m=0,g=null!=(t=e.texts)?t:[];m<g.length;m++)!function(t){a.texts=null!=(o=a.texts)?o:[];var e=a.texts.findIndex(function(e){return e.id===t.id});0<=e?a.texts[e]=t:a.texts.push(t)}(g[m])}},f_.prototype.cloneEvent=function(e){var t=e.data;return{type:e.type,timestamp:e.timestamp,data:{source:0,adds:qu(null!=(e=t.adds)?e:[]),removes:qu(null!=(e=t.removes)?e:[]),attributes:qu(null!=(e=t.attributes)?e:[]),texts:qu(null!=(e=t.texts)?e:[])}}},f_.prototype.scheduleFlush=function(){var e=this;this.clearTimer(),this.flushTimer=setTimeout(function(){e.flushTimer=null,e.flush()},this.windowMs)},f_.prototype.clearTimer=function(){null!==this.flushTimer&&(clearTimeout(this.flushTimer),this.flushTimer=null)};var a_=f_,s_=(c_.prototype.startRecording=function(e){var r,i,n=this;if(void 0===e&&(e={}),"recording"!==this.state){this.mutationLimitReached=!1,this.throttleCount=0,this.throttleWindowStart=Date.now(),this.throttleNotified=!1,this.mutationAddsInWindow=0;var t="buffer"===this.options.mode?12e4:3e5,t="number"==typeof e.checkoutEveryNms&&0<e.checkoutEveryNms?e.checkoutEveryNms:t,o="number"==typeof e.checkoutEveryNth&&0<e.checkoutEveryNth?e.checkoutEveryNth:undefined,a=i_(e.privacy||{},t_),s=h(h(h(h({emit:function(e,t){n.handleEvent(e,t)},checkoutEveryNms:t},o?{checkoutEveryNth:o}:{}),{sampling:{scroll:150,mousemove:!l.ios()&&50,mouseInteraction:!0,input:"last"},slimDOMOptions:{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:!0}}),(t={},(o=a).maskAllInputs!==undefined&&(t.maskAllInputs=o.maskAllInputs),o.maskInputOptions&&(t.maskInputOptions=o.maskInputOptions),null!=(s=o.mask)&&s.length&&(t.maskTextSelector=o.mask.join(",")),null!=(s=o.block)&&s.length&&(t.blockSelector=o.block.join(",")),o.blockAllMedia&&(t.blockSelector=t.blockSelector?t.blockSelector+","+e_:e_,t.ignoreCSSAttributes=new Set(["background-image"])),null!=(s=o.ignore)&&s.length&&(t.ignoreSelector=o.ignore.join(",")),!o.maskTextFn&&!1===o.autoDetectSensitiveData||(t.maskTextFn=(r=o.maskTextFn,i=!1!==o.autoDetectSensitiveData,function(e,t){var n;return e&&(n=e,i&&(n=n_.autoMask(n)),r?r(n,t):n)})),t)),e.rrwebConfig);try{this.hookMutationObserver(),this.stopRecordingFn=QS(s),this.state="recording",this.lastCheckoutTime=Date.now(),this.startCheckpointTimer(),m("RecorderManager","Recording started with config:",{maskAllText:a.maskAllText,maskAllInputs:a.maskAllInputs,autoDetectSensitiveData:a.autoDetectSensitiveData,mutationLimit:this.mutationLimit,checkpointIntervalMs:12e4})}catch(X){sy("RecorderManager","Failed to start recording:",X),this.state="stopped"}}else ay("RecorderManager","Already recording")},c_.prototype.stopRecording=function(){var e;this.stopCheckpointTimer(),null!=(e=this.mutationMerger)&&e.destroy(),this.unhookMutationObserver(),this.stopRecordingFn&&(this.stopRecordingFn(),this.stopRecordingFn=undefined),this.state="stopped",m("RecorderManager","Recording stopped")},c_.prototype.pauseRecording=function(){"recording"===this.state&&(this.stopRecording(),this.state="paused",m("RecorderManager","Recording paused"))},c_.prototype.resumeRecording=function(e){void 0===e&&(e={}),"paused"===this.state&&(this.startRecording(e),m("RecorderManager","Recording resumed"))},c_.prototype.hookMutationObserver=function(){try{var r,e,t=window.MutationObserver;t&&(r=this,(e=function(n){return new t(function(e,t){r.unhookMutationObserver(),r.onMutationHandler(e)&&n(e,t)})}).prototype=t.prototype,window.MutationObserver=e,this.restoreMutationObserver=function(){window.MutationObserver=t},oy("RecorderManager","MutationObserver hooked"))}catch(Le){ay("RecorderManager","Failed to hook MutationObserver:",Le)}},c_.prototype.unhookMutationObserver=function(){this.restoreMutationObserver&&(this.restoreMutationObserver(),this.restoreMutationObserver=null,oy("RecorderManager","MutationObserver restored"))},c_.prototype.onMutationHandler=function(e){var t,n=this;return!this.mutationLimitReached&&(t=(e=e.length)>this.mutationLimit,(e>this.mutationBreadcrumbLimit||t)&&this.emitMutationBreadcrumb(e,t),!t||(this.mutationLimitReached=!0,sy("RecorderManager","Mutation limit reached: "+e+" > "+this.mutationLimit+". Stopping."),setTimeout(function(){var e,t;null!=(t=(e=n.options).onMutationLimitReached)&&t.call(e),n.stopRecording()},0),!1))},c_.prototype.checkMutationLimit=function(e){var n=this;if(this.mutationLimitReached)return!1;if(3!==e.type)return!0;e=e.data;if(0!==(null==e?void 0:e.source))return!0;e=Array.isArray(e.adds)?e.adds.length:0;if(0===e)return!0;this.mutationAddsInWindow+=e;var t=e>this.mutationLimit||this.mutationAddsInWindow>2*this.mutationLimit;return(e>this.mutationBreadcrumbLimit||t)&&this.emitMutationBreadcrumb(e,t),!t||(sy("RecorderManager","Mutation limit: "+e+" adds (window: "+this.mutationAddsInWindow+"). Stopping."),this.mutationLimitReached=!0,setTimeout(function(){var e,t;null!=(t=(e=n.options).onMutationLimitReached)&&t.call(e),n.stopRecording()},0),!1)},c_.prototype.emitMutationBreadcrumb=function(e,t){var n;try{null!=(n=QS.addCustomEvent)&&n.call(QS,"replay.mutations",{count:e,limit:t,timestamp:Date.now()})}catch(b){}},c_.prototype.handleEvent=function(e,t){var n=this,r=(t&&(null!=(r=(i=this.options).onCheckout)&&r.call(i),this.lastCheckoutTime=Date.now(),null!=(i=this.mutationMerger))&&i.flush(),e.type);if(t||2===r||4===r||r<=1||this.checkEventThrottle()){if(3===r&&!this.mutationLimitReached){var i=Date.now();if(12e4<=i-this.lastCheckoutTime){this.lastCheckoutTime=i;try{var o=QS.takeFullSnapshot;"function"==typeof o&&(o(!0),oy("RecorderManager","Inline checkpoint: forced FullSnapshot"))}catch(Le){ay("RecorderManager","Inline checkpoint failed:",Le)}}}this.checkMutationLimit(e)&&(this.mutationMerger?this.mutationMerger.push(e,function(e){n.options.onRecordingEvent(e)}):this.options.onRecordingEvent(e))}},c_.prototype.checkEventThrottle=function(){var e,t=Date.now();if(5e3<t-this.throttleWindowStart&&(this.throttleCount=0,this.throttleWindowStart=t,this.throttleNotified=!1,this.mutationAddsInWindow=0),this.throttleCount++,300<this.throttleCount){if(!this.throttleNotified){this.throttleNotified=!0,ay("RecorderManager","Event throttled: "+this.throttleCount+" events in 5000ms window");try{null!=(e=QS.addCustomEvent)&&e.call(QS,"replay.throttled",{count:this.throttleCount,window:5e3})}catch(v){}}return!1}return!0},c_.prototype.startCheckpointTimer=function(){var t=this;this.stopCheckpointTimer(),this.checkpointTimer=setInterval(function(){if("recording"===t.state&&!t.mutationLimitReached)try{var e=QS.takeFullSnapshot;"function"==typeof e&&(e(!0),t.lastCheckoutTime=Date.now(),oy("RecorderManager","Checkpoint: forced FullSnapshot"))}catch(Le){ay("RecorderManager","Checkpoint FullSnapshot failed:",Le)}},12e4)},c_.prototype.stopCheckpointTimer=function(){null!==this.checkpointTimer&&(clearInterval(this.checkpointTimer),this.checkpointTimer=null)},c_.prototype.getState=function(){return this.state},c_.prototype.isRecording=function(){return"recording"===this.state},c_.prototype.getLastCheckoutTime=function(){return this.lastCheckoutTime},c_.prototype.takeFullSnapshot=function(){var e,t;"recording"===this.state&&this.stopRecordingFn&&(null!=(t=null==(e=this.stopRecordingFn)?void 0:e.takeFullSnapshot)&&t.call(e),this.lastCheckoutTime=Date.now())},c_.prototype.isMutationLimitReached=function(){return this.mutationLimitReached},c_),u_=(l_.prototype.initializeSampling=function(){return null!==this.samplingDecision?{mode:this.currentMode,shouldRecord:!1!==this.currentMode}:Math.random()<this.config.sessionSampleRate?(this.currentMode="session",this.samplingDecision=!0,m("SamplerManager","Sampled: session mode"),{mode:"session",shouldRecord:!0}):0<this.config.errorSampleRate?(this.currentMode="buffer",this.samplingDecision=!0,m("SamplerManager","Sampled: buffer mode"),{mode:"buffer",shouldRecord:!0}):(this.currentMode=!1,this.samplingDecision=!1,m("SamplerManager","Not sampled"),{mode:!1,shouldRecord:!1})},l_.prototype.decideSamplingMode=function(){return this.initializeSampling().mode},l_.prototype.onErrorOccurred=function(e){return"buffer"===this.currentMode&&!this.hasUpgraded&&!!(Math.random()<this.config.errorSampleRate)&&(this.switchMode("session"),this.hasUpgraded=!0)},l_.prototype.switchMode=function(e){var t=this.currentMode;this.currentMode=e,this.samplingDecision=!1!==e,m("SamplerManager","Mode switched: "+t+" -> "+e)},l_.prototype.getCurrentMode=function(){return this.currentMode},l_.prototype.isSampled=function(){return!0===this.samplingDecision},l_.prototype.isSessionMode=function(){return"session"===this.currentMode},l_.prototype.isBufferMode=function(){return"buffer"===this.currentMode},l_.prototype.upgradeToSessionMode=function(){return"buffer"===this.currentMode&&Math.random()<this.config.errorSampleRate&&(this.currentMode="session",m("SamplerManager","Upgraded to session mode due to error"),!0)},l_.prototype.updateRates=function(e,t){"number"==typeof e&&(this.config.sessionSampleRate=e),"number"==typeof t&&(this.config.errorSampleRate=t)},l_.prototype.forceMode=function(e){this.currentMode=e,this.samplingDecision=!1!==e},l_.prototype.reset=function(){this.currentMode=!1,this.samplingDecision=null},l_.prototype.getConfig=function(){return h({},this.config)},l_);function l_(e){var t;void 0===e&&(e={}),this.currentMode=!1,this.samplingDecision=null,this.hasUpgraded=!1,this.config={sessionSampleRate:null!=(t=e.sessionSampleRate)?t:.1,errorSampleRate:null!=(t=e.errorSampleRate)?t:1}}function c_(e,t){this.state="stopped",this.lastCheckoutTime=0,this.checkpointTimer=null,this.mutationLimitReached=!1,this.mutationMerger=null,this.mutationBreadcrumbLimit=750,this.mutationLimit=1e4,this.restoreMutationObserver=null,this.throttleCount=0,this.throttleWindowStart=0,this.throttleNotified=!1,this.mutationAddsInWindow=0,this.options=e,this.mutationBreadcrumbLimit=null!=(e=null==t?void 0:t.mutationBreadcrumbLimit)?e:750,this.mutationLimit=null!=(e=null==t?void 0:t.mutationLimit)?e:1e4,null!=t&&t.enableMutationMerge&&(this.mutationMerger=new a_({windowMs:null!=(e=null==t?void 0:t.mutationMergeWindowMs)?e:200,maxAddsPerMerge:500,enableRepeatDetection:!0}))}function f_(e){var t;this.buffer=null,this.flushTimer=null,this.repeatCount=0,this.emitFn=null,this.mergedCount=0,this.droppedByRepeat=0,this.cancelledByOffset=0,this.windowMs=null!=(t=null==e?void 0:e.windowMs)?t:200,this.maxAddsPerMerge=null!=(t=null==e?void 0:e.maxAddsPerMerge)?t:500,this.enableRepeatDetection=null==(t=null==e?void 0:e.enableRepeatDetection)||t}function d_(e){for(var t=e.length;0<=--t;)e[t]=0}var h_=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),p_=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),m_=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),g_=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),v_=new Array(576),y_=(d_(v_),new Array(60)),w_=(d_(y_),new Array(512)),b_=(d_(w_),new Array(256)),k_=(d_(b_),new Array(29));d_(k_);var S_,__,E_,C_=new Array(30);function R_(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function O_(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}d_(C_);var x_=function(e){return e<256?w_[e]:w_[256+(e>>>7)]},I_=function(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255},T_=function(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,I_(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)},M_=function(e,t,n){T_(e,n[2*t],n[2*t+1])},A_=function(e,t){for(var n=0;n|=1&e,e>>>=1,n<<=1,0<--t;);return n>>>1},P_=function(e,t,n){for(var r,i=new Array(16),o=0,a=1;a<=15;a++)o=o+n[a-1]<<1,i[a]=o;for(r=0;r<=t;r++){var s=e[2*r+1];0!==s&&(e[2*r]=A_(i[s]++,s))}},L_=function(e){for(var t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},D_=function(e){8<e.bi_valid?I_(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},N_=function(e,t,n,r){var i=2*t,o=2*n;return e[i]<e[o]||e[i]===e[o]&&r[t]<=r[n]},F_=function(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&N_(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!N_(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r},U_=function(e,t,n){var r,i,o,a,s=0;if(0!==e.sym_next)for(;r=255&e.pending_buf[e.sym_buf+s++],r+=(255&e.pending_buf[e.sym_buf+s++])<<8,i=e.pending_buf[e.sym_buf+s++],0==r?M_(e,i,t):(o=b_[i],M_(e,o+256+1,t),0!==(a=h_[o])&&(i-=k_[o],T_(e,i,a)),o=x_(--r),M_(e,o,n),0!==(a=p_[o])&&(r-=C_[o],T_(e,r,a))),s<e.sym_next;);M_(e,256,t)},j_=function(e,t){var n,r,i,o=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,u=t.stat_desc.elems,l=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<u;n++)0!==o[2*n]?(e.heap[++e.heap_len]=l=n,e.depth[n]=0):o[2*n+1]=0;for(;e.heap_len<2;)o[2*(i=e.heap[++e.heap_len]=l<2?++l:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=a[2*i+1]);for(t.max_code=l,n=e.heap_len>>1;1<=n;n--)F_(e,o,n);for(i=u;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],F_(e,o,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,o[2*i]=o[2*n]+o[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,o[2*n+1]=o[2*r+1]=i,e.heap[1]=i++,F_(e,o,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1];for(var c,f,d,h,p,m=e,g=t.dyn_tree,v=t.max_code,y=t.stat_desc.static_tree,w=t.stat_desc.has_stree,b=t.stat_desc.extra_bits,k=t.stat_desc.extra_base,S=t.stat_desc.max_length,_=0,E=0;E<=15;E++)m.bl_count[E]=0;for(g[2*m.heap[m.heap_max]+1]=0,c=m.heap_max+1;c<573;c++)(E=g[2*g[2*(f=m.heap[c])+1]+1]+1)>S&&(E=S,_++),g[2*f+1]=E,v<f||(m.bl_count[E]++,h=0,k<=f&&(h=b[f-k]),p=g[2*f],m.opt_len+=p*(E+h),w&&(m.static_len+=p*(y[2*f+1]+h)));if(0!==_){do{for(E=S-1;0===m.bl_count[E];)E--}while(m.bl_count[E]--,m.bl_count[E+1]+=2,m.bl_count[S]--,0<(_-=2));for(E=S;0!==E;E--)for(f=m.bl_count[E];0!==f;)(d=m.heap[--c])>v||(g[2*d+1]!==E&&(m.opt_len+=(E-g[2*d+1])*g[2*d],g[2*d+1]=E),f--)}P_(o,l,e.bl_count)},z_=function(e,t,n){var r,i,o=-1,a=t[1],s=0,u=7,l=4;for(0===a&&(u=138,l=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=t[2*(r+1)+1],++s<u&&i===a||(s<l?e.bl_tree[2*i]+=s:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,o=i,l=(s=0)===a?(u=138,3):i===a?(u=6,3):(u=7,4))},B_=function(e,t,n){var r,i,o=-1,a=t[1],s=0,u=7,l=4;for(0===a&&(u=138,l=3),r=0;r<=n;r++)if(i=a,a=t[2*(r+1)+1],!(++s<u&&i===a)){if(s<l)for(;M_(e,i,e.bl_tree),0!=--s;);else 0!==i?(i!==o&&(M_(e,i,e.bl_tree),s--),M_(e,16,e.bl_tree),T_(e,s-3,2)):s<=10?(M_(e,17,e.bl_tree),T_(e,s-3,3)):(M_(e,18,e.bl_tree),T_(e,s-11,7));o=i,l=(s=0)===a?(u=138,3):i===a?(u=6,3):(u=7,4)}},W_=!1,H_=function(e,t,n,r){T_(e,0+(r?1:0),3),D_(e),I_(e,n),I_(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n},q_=function(e){if(!W_){for(var t,n,r,i=new Array(16),o=0,a=0;a<28;a++)for(k_[a]=o,t=0;t<1<<h_[a];t++)b_[o++]=a;for(b_[o-1]=a,a=r=0;a<16;a++)for(C_[a]=r,t=0;t<1<<p_[a];t++)w_[r++]=a;for(r>>=7;a<30;a++)for(C_[a]=r<<7,t=0;t<1<<p_[a]-7;t++)w_[256+r++]=a;for(n=0;n<=15;n++)i[n]=0;for(t=0;t<=143;)v_[2*t+1]=8,t++,i[8]++;for(;t<=255;)v_[2*t+1]=9,t++,i[9]++;for(;t<=279;)v_[2*t+1]=7,t++,i[7]++;for(;t<=287;)v_[2*t+1]=8,t++,i[8]++;for(P_(v_,287,i),t=0;t<30;t++)y_[2*t+1]=5,y_[2*t]=A_(t,5);S_=new R_(v_,h_,257,286,15),__=new R_(y_,p_,0,30,15),E_=new R_(new Array(0),m_,0,19,7),W_=!0}e.l_desc=new O_(e.dyn_ltree,S_),e.d_desc=new O_(e.dyn_dtree,__),e.bl_desc=new O_(e.bl_tree,E_),e.bi_buf=0,e.bi_valid=0,L_(e)},Oe=H_,o=function(e,t,n,r){var i,o,a,s=0;if(0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){for(var t=4093624447,n=0;n<=31;n++,t>>>=1)if(1&t&&0!==e.dyn_ltree[2*n])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(n=32;n<256;n++)if(0!==e.dyn_ltree[2*n])return 1;return 0}(e)),j_(e,e.l_desc),j_(e,e.d_desc),s=function(e){var t;for(z_(e,e.dyn_ltree,e.l_desc.max_code),z_(e,e.dyn_dtree,e.d_desc.max_code),j_(e,e.bl_desc),t=18;3<=t&&0===e.bl_tree[2*g_[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),(o=e.static_len+3+7>>>3)<=(i=e.opt_len+3+7>>>3)&&(i=o)):i=o=n+5,n+4<=i&&-1!==t)H_(e,t,n,r);else if(4===e.strategy||o===i)T_(e,2+(r?1:0),3),U_(e,v_,y_);else{T_(e,4+(r?1:0),3);var u=e,l=(t=e.l_desc.max_code+1,n=e.d_desc.max_code+1,s+1);for(T_(u,t-257,5),T_(u,n-1,5),T_(u,l-4,4),a=0;a<l;a++)T_(u,u.bl_tree[2*g_[a]+1],3);B_(u,u.dyn_ltree,t-1),B_(u,u.dyn_dtree,n-1),U_(e,e.dyn_ltree,e.dyn_dtree)}L_(e),r&&D_(e)},Og=function(e,t,n){return e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=n,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(b_[n]+256+1)]++,e.dyn_dtree[2*x_(t)]++),e.sym_next===e.sym_end},xe=function(e){T_(e,2,3),M_(e,256,v_),16===(e=e).bi_valid?(I_(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)},V_=function(e,t,n,r){for(var i=65535&e|0,o=e>>>16&65535|0,a=0;0!==n;){for(n-=a=2e3<n?2e3:n;o=o+(i=i+t[r++]|0)|0,--a;);i%=65521,o%=65521}return i|o<<16|0},G_=new Uint32Array(function(){for(var e=[],t=0;t<256;t++){for(var n=t,r=0;r<8;r++)n=1&n?3988292384^n>>>1:n>>>1;e[t]=n}return e}()),J_=function(e,t,n,r){var i=G_,o=r+n;e^=-1;for(var a=r;a<o;a++)e=e>>>8^i[255&(e^t[a])];return-1^e},$_={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},s={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},Z_=q_,K_=Oe,Y_=o,X_=Og,Q_=xe,eE=s.Z_NO_FLUSH,tE=s.Z_PARTIAL_FLUSH,nE=s.Z_FULL_FLUSH,rE=s.Z_FINISH,iE=s.Z_BLOCK,oE=s.Z_OK,aE=s.Z_STREAM_END,sE=s.Z_STREAM_ERROR,uE=s.Z_DATA_ERROR,lE=s.Z_BUF_ERROR,cE=s.Z_DEFAULT_COMPRESSION,fE=s.Z_FILTERED,dE=s.Z_HUFFMAN_ONLY,hE=s.Z_RLE,pE=s.Z_FIXED,mE=s.Z_UNKNOWN,gE=s.Z_DEFLATED,Le=function(e,t){return e.msg=$_[t],t},vE=function(e){return 2*e-(4<e?9:0)},yE=function(e){for(var t=e.length;0<=--t;)e[t]=0},wE=function(e){for(var t,n,r=e.w_size,i=t=e.hash_size;n=e.head[--i],e.head[i]=r<=n?n-r:0,--t;);for(i=t=r;n=e.prev[--i],e.prev[i]=r<=n?n-r:0,--t;);},bE=function(e,t,n){return(t<<e.hash_shift^n)&e.hash_mask},kE=function(e,t){n=e.legacy_hash?e.ins_h=bE(e,e.ins_h,e.window[t+3-1]):(n=(n=e.window)[t]|n[t+1]<<8|n[t+2]<<16|n[t+3]<<24,e.ins_h=Math.imul(n,66521)+66521>>>16&e.hash_mask);var n,r=e.prev[t&e.w_mask]=e.head[n];return e.head[n]=t,r},SE=function(e){var t=e.state,n=t.pending;0!==(n=e.avail_out<n?e.avail_out:n)&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending)&&(t.pending_out=0)},_E=function(e,t){Y_(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,SE(e.strm)},EE=function(e,t){e.pending_buf[e.pending++]=t},CE=function(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t},RE=function(e,t,n,r){var i=e.avail_in;return 0===(i=r<i?r:i)?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),n),1===e.state.wrap?e.adler=V_(e.adler,t,i,n):2===e.state.wrap&&(e.adler=J_(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)},OE=function(e,t){var n,r,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,u=e.w_size-262<e.strstart?e.strstart-(e.w_size-262):0,l=e.window,c=e.w_mask,f=e.prev,d=e.strstart+258,h=l[o+a-1],p=l[o+a];e.good_match<=e.prev_length&&(i>>=2),e.lookahead<s&&(s=e.lookahead);do{if(l[(n=t)+a]===p&&l[n+a-1]===h&&l[n]===l[o]&&l[++n]===l[o+1]){for(o+=2,n++;l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&o<d;);if(r=258-(d-o),o=d-258,a<r){if(e.match_start=t,s<=(a=r))break;h=l[o+a-1],p=l[o+a]}}}while((t=f[t&c])>u&&0!=--i);return a<=e.lookahead?a:e.lookahead},xE=function(e){var t,n,r=e.w_size;do{if(t=e.window_size-e.lookahead-e.strstart,r+(r-262)<=e.strstart&&(e.window.set(e.window.subarray(r,r+r-t),0),e.match_start-=r,e.strstart-=r,e.block_start-=r,e.strstart<e.insert&&(e.insert=e.strstart),wE(e),t+=r),0===e.strm.avail_in)break;if(t=RE(e.strm,e.window,e.strstart+e.lookahead,t),e.lookahead+=t,e.legacy_hash){if(3<=e.lookahead+e.insert)for(n=e.strstart-e.insert,e.ins_h=e.window[n],e.ins_h=bE(e,e.ins_h,e.window[n+1]);e.insert&&(kE(e,n),n++,e.insert--,!(e.lookahead+e.insert<3)););}else if(3<e.lookahead+e.insert)for(n=e.strstart-e.insert;e.insert&&(kE(e,n),n++,e.insert--,!(e.lookahead+e.insert<=3)););}while(e.lookahead<262&&0!==e.strm.avail_in)},IE=function(e,t){for(var n,r,i,o=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,a=0,s=e.strm.avail_in;n=65535,i=e.bi_valid+42>>3,!(e.strm.avail_out<i||(n=(i=e.strm.avail_out-i)<(n=n>(r=e.strstart-e.block_start)+e.strm.avail_in?r+e.strm.avail_in:n)?i:n)<o&&(0===n&&t!==rE||t===eE||n!==r+e.strm.avail_in)||(a=t===rE&&n===r+e.strm.avail_in?1:0,K_(e,0,0,a),e.pending_buf[e.pending-4]=n,e.pending_buf[e.pending-3]=n>>8,e.pending_buf[e.pending-2]=~n,e.pending_buf[e.pending-1]=~n>>8,SE(e.strm),r&&(n<r&&(r=n),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+r),e.strm.next_out),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r,e.block_start+=r,n-=r),n&&(RE(e.strm,e.strm.output,e.strm.next_out,n),e.strm.next_out+=n,e.strm.avail_out-=n,e.strm.total_out+=n),0!==a)););return(s-=e.strm.avail_in)&&(s>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=s&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.strstart<e.insert)&&(e.insert=e.strstart),e.window.set(e.strm.input.subarray(e.strm.next_in-s,e.strm.next_in),e.strstart),e.strstart+=s,e.insert+=e.w_size-e.insert<s?e.w_size-e.insert:s),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),a?4:t!==eE&&t!==rE&&0===e.strm.avail_in&&e.strstart===e.block_start?2:(i=e.window_size-e.strstart,e.strm.avail_in>i&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,i+=e.w_size,e.strstart<e.insert)&&(e.insert=e.strstart),(i=i>e.strm.avail_in?e.strm.avail_in:i)&&(RE(e.strm,e.window,e.strstart,i),e.strstart+=i,e.insert+=e.w_size-e.insert<i?e.w_size-e.insert:i),e.high_water<e.strstart&&(e.high_water=e.strstart),o=(i=65535<e.pending_buf_size-(i=e.bi_valid+42>>3)?65535:e.pending_buf_size-i)>e.w_size?e.w_size:i,((r=e.strstart-e.block_start)>=o||(r||t===rE)&&t!==eE&&0===e.strm.avail_in&&r<=i)&&(n=i<r?i:r,a=t===rE&&0===e.strm.avail_in&&n===r?1:0,K_(e,e.block_start,n,a),e.block_start+=n,SE(e.strm)),a?3:1)},fa=function(e,t){for(var n,r;;){if(e.lookahead<262){if(xE(e),e.lookahead<262&&t===eE)return 1;if(0===e.lookahead)break}if((n=0)!==(n=3<=e.lookahead?kE(e,e.strstart):n)&&e.strstart-n<=e.w_size-262&&(e.match_length=OE(e,n)),3<=e.match_length)if(r=X_(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&3<=e.lookahead){for(e.match_length--;e.strstart++,n=kE(e,e.strstart),0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.legacy_hash&&(e.ins_h=e.window[e.strstart],e.ins_h=bE(e,e.ins_h,e.window[e.strstart+1]));else r=X_(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(_E(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,t===rE?(_E(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(_E(e,!1),0===e.strm.avail_out)?1:2},Wn=function(e,t){for(var n,r,i;;){if(e.lookahead<262){if(xE(e),e.lookahead<262&&t===eE)return 1;if(0===e.lookahead)break}if(n=0,3<=e.lookahead&&(n=kE(e,e.strstart)),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-262&&(e.match_length=OE(e,n),e.match_length<=5)&&(e.strategy===fE||3===e.match_length&&4096<e.strstart-e.match_start)&&(e.match_length=2),3<=e.prev_length&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-3,r=X_(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(n=kE(e,e.strstart)),0!=--e.prev_length;);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(_E(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((r=X_(e,0,e.window[e.strstart-1]))&&_E(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=X_(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,t===rE?(_E(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(_E(e,!1),0===e.strm.avail_out)?1:2};function TE(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}var ME=[new TE(0,0,0,0,IE),new TE(4,4,8,4,fa),new TE(4,5,16,8,fa),new TE(4,6,32,32,fa),new TE(4,4,16,16,Wn),new TE(8,16,32,32,Wn),new TE(8,16,128,128,Wn),new TE(8,32,128,256,Wn),new TE(32,128,258,1024,Wn),new TE(32,258,258,4096,Wn)];function AE(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=gE,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.legacy_hash=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),yE(this.dyn_ltree),yE(this.dyn_dtree),yE(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),yE(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),yE(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var PE=function(e){var t;return!e||!(t=e.state)||t.strm!==e||42!==t.status&&57!==t.status&&69!==t.status&&73!==t.status&&91!==t.status&&103!==t.status&&113!==t.status&&666!==t.status?1:0},LE=function(e){if(PE(e))return Le(e,sE);e.total_in=e.total_out=0,e.data_type=mE;var t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=2===t.wrap?57:t.wrap?42:113,e.adler=2===t.wrap?0:1,t.last_flush=-2,Z_(t),oE},DE=function(e){var t=LE(e);return t===oE&&((e=e.state).window_size=2*e.w_size,yE(e.head),e.max_lazy_match=ME[e.level].max_lazy,e.good_match=ME[e.level].good_length,e.nice_match=ME[e.level].nice_length,e.max_chain_length=ME[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),t},Ar=function(e,t,n,r,i,o,a){if(!e)return sE;var s=1;if(t===cE&&(t=6),r<0?(s=0,r=-r):15<r&&(s=2,r-=16),i<1||9<i||n!==gE||r<8||15<r||t<0||9<t||o<0||pE<o||8===r&&1!==s)return Le(e,sE);8===r&&(r=9);var u=new AE;return(e.state=u).strm=e,u.status=42,u.wrap=s,u.gzhead=null,u.w_bits=r,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.legacy_hash=a?1:0,u.hash_bits=i+7,!u.legacy_hash&&u.hash_bits<15&&(u.hash_bits=15),u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+3-1)/3),u.window=new Uint8Array(2*u.w_size),u.head=new Uint16Array(u.hash_size),u.prev=new Uint16Array(u.w_size),u.lit_bufsize=1<<i+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new Uint8Array(u.pending_buf_size),u.sym_buf=u.lit_bufsize,u.sym_end=3*(u.lit_bufsize-1),u.level=t,u.strategy=o,u.method=n,DE(e)},NE=Ar,FE=function(e,t){return PE(e)||2!==e.state.wrap?sE:(e.state.gzhead=t,oE)},UE=function(e,t){if(PE(e)||iE<t||t<0)return e?Le(e,sE):sE;var n=e.state;if(!e.output||0!==e.avail_in&&!e.input||666===n.status&&t!==rE)return Le(e,0===e.avail_out?lE:sE);var r=n.last_flush;if(n.last_flush=t,0!==n.pending){if(SE(e),0===e.avail_out)return n.last_flush=-1,oE}else if(0===e.avail_in&&vE(t)<=vE(r)&&t!==rE)return Le(e,lE);if(666===n.status&&0!==e.avail_in)return Le(e,lE);if(42===n.status&&0===n.wrap&&(n.status=113),42===n.status){r=gE+(n.w_bits-8<<4)<<8;if(r|=(n.strategy>=dE||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(r|=32),CE(n,r+=31-r%31),0!==n.strstart&&(CE(n,e.adler>>>16),CE(n,65535&e.adler)),e.adler=1,n.status=113,SE(e),0!==n.pending)return n.last_flush=-1,oE}if(57===n.status)if(e.adler=0,EE(n,31),EE(n,139),EE(n,8),n.gzhead)EE(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),EE(n,255&n.gzhead.time),EE(n,n.gzhead.time>>8&255),EE(n,n.gzhead.time>>16&255),EE(n,n.gzhead.time>>24&255),EE(n,9===n.level?2:n.strategy>=dE||n.level<2?4:0),EE(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(EE(n,255&n.gzhead.extra.length),EE(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=J_(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69;else if(EE(n,0),EE(n,0),EE(n,0),EE(n,0),EE(n,0),EE(n,9===n.level?2:n.strategy>=dE||n.level<2?4:0),EE(n,3),n.status=113,SE(e),0!==n.pending)return n.last_flush=-1,oE;if(69===n.status){if(n.gzhead.extra){for(var i=n.pending,o=(65535&n.gzhead.extra.length)-n.gzindex;n.pending+o>n.pending_buf_size;){var a=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+a),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>i&&(e.adler=J_(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex+=a,SE(e),0!==n.pending)return n.last_flush=-1,oE;i=0,o-=a}r=new Uint8Array(n.gzhead.extra);n.pending_buf.set(r.subarray(n.gzindex,n.gzindex+o),n.pending),n.pending+=o,n.gzhead.hcrc&&n.pending>i&&(e.adler=J_(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex=0}n.status=73}if(73===n.status){if(n.gzhead.name){var s,u=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>u&&(e.adler=J_(e.adler,n.pending_buf,n.pending-u,u)),SE(e),0!==n.pending)return n.last_flush=-1,oE;u=0}}while(s=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,EE(n,s),0!=s);n.gzhead.hcrc&&n.pending>u&&(e.adler=J_(e.adler,n.pending_buf,n.pending-u,u)),n.gzindex=0}n.status=91}if(91===n.status){if(n.gzhead.comment){var l,c=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>c&&(e.adler=J_(e.adler,n.pending_buf,n.pending-c,c)),SE(e),0!==n.pending)return n.last_flush=-1,oE;c=0}}while(l=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,EE(n,l),0!=l);n.gzhead.hcrc&&n.pending>c&&(e.adler=J_(e.adler,n.pending_buf,n.pending-c,c))}n.status=103}if(103===n.status){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(SE(e),0!==n.pending))return n.last_flush=-1,oE;EE(n,255&e.adler),EE(n,e.adler>>8&255),e.adler=0}if(n.status=113,SE(e),0!==n.pending)return n.last_flush=-1,oE}if(0!==e.avail_in||0!==n.lookahead||t!==eE&&666!==n.status){r=0===n.level?IE(n,t):n.strategy===dE?function(e,t){for(var n;;){if(0===e.lookahead&&(xE(e),0===e.lookahead)){if(t===eE)return 1;break}if(e.match_length=0,n=X_(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(_E(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===rE?(_E(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(_E(e,!1),0===e.strm.avail_out)?1:2}(n,t):n.strategy===hE?function(e,t){for(var n,r,i,o,a=e.window;;){if(e.lookahead<=258){if(xE(e),e.lookahead<=258&&t===eE)return 1;if(0===e.lookahead)break}if(e.match_length=0,3<=e.lookahead&&0<e.strstart&&(r=a[i=e.strstart-1])===a[++i]&&r===a[++i]&&r===a[++i]){for(o=e.strstart+258;r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&i<o;);e.match_length=258-(o-i),e.lookahead<e.match_length&&(e.match_length=e.lookahead)}if(3<=e.match_length?(n=X_(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=X_(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(_E(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===rE?(_E(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(_E(e,!1),0===e.strm.avail_out)?1:2}(n,t):ME[n.level].func(n,t);if(3!==r&&4!==r||(n.status=666),1===r||3===r)return 0===e.avail_out&&(n.last_flush=-1),oE;if(2===r&&(t===tE?Q_(n):t!==iE&&(K_(n,0,0,!1),t===nE)&&(yE(n.head),0===n.lookahead)&&(n.strstart=0,n.block_start=0,n.insert=0),SE(e),0===e.avail_out))return n.last_flush=-1,oE}return t!==rE||!(n.wrap<=0)&&(2===n.wrap?(EE(n,255&e.adler),EE(n,e.adler>>8&255),EE(n,e.adler>>16&255),EE(n,e.adler>>24&255),EE(n,255&e.total_in),EE(n,e.total_in>>8&255),EE(n,e.total_in>>16&255),EE(n,e.total_in>>24&255)):(CE(n,e.adler>>>16),CE(n,65535&e.adler)),SE(e),0<n.wrap&&(n.wrap=-n.wrap),0!==n.pending)?oE:aE},jE=function(e){var t;return PE(e)?sE:(t=e.state.status,e.state=null,113===t?Le(e,uE):oE)},zE=function(e,t){var n=t.length;if(PE(e))return sE;var r=e.state,i=r.wrap;if(2===i||1===i&&42!==r.status||r.lookahead)return sE;1===i&&(e.adler=V_(e.adler,t,n,0)),r.wrap=0,r.w_size<=n&&(0===i&&(yE(r.head),r.strstart=0,r.block_start=0,r.insert=0),(o=new Uint8Array(r.w_size)).set(t.subarray(n-r.w_size,n),0),t=o,n=r.w_size);var o=e.avail_in,a=e.next_in,s=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,xE(r);3<=r.lookahead;){for(var u=r.strstart,l=r.lookahead-2;kE(r,u),u++,--l;);r.strstart=u,r.lookahead=2,xE(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,e.next_in=a,e.input=s,e.avail_in=o,r.wrap=i,oE},BE=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},WE=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!==S(n))throw new TypeError(n+"must be non-object");for(var r in n)BE(n,r)&&(e[r]=n[r])}}return e},HE=function(e){for(var t=0,n=0,r=e.length;n<r;n++)t+=e[n].length;for(var i=new Uint8Array(t),o=0,a=0,s=e.length;o<s;o++){var u=e[o];i.set(u,a),a+=u.length}return i},qE=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(SR){qE=!1}for(var VE=new Uint8Array(256),GE=0;GE<256;GE++)VE[GE]=252<=GE?6:248<=GE?5:240<=GE?4:224<=GE?3:192<=GE?2:1;VE[254]=VE[255]=1;var JE=function(e){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(e);for(var t,n,r,i,o=e.length,a=0,s=0;s<o;s++)55296==(64512&(n=e.charCodeAt(s)))&&s+1<o&&56320==(64512&(r=e.charCodeAt(s+1)))&&(n=65536+(n-55296<<10)+(r-56320),s++),a+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Uint8Array(a),s=i=0;i<a;s++)55296==(64512&(n=e.charCodeAt(s)))&&s+1<o&&56320==(64512&(r=e.charCodeAt(s+1)))&&(n=65536+(n-55296<<10)+(r-56320),s++),n<128?t[i++]=n:(n<2048?t[i++]=192|n>>>6:(n<65536?t[i++]=224|n>>>12:(t[i++]=240|n>>>18,t[i++]=128|n>>>12&63),t[i++]=128|n>>>6&63),t[i++]=128|63&n);return t},$E=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},ZE=Object.prototype.toString,KE=s.Z_NO_FLUSH,YE=s.Z_SYNC_FLUSH,XE=s.Z_FULL_FLUSH,QE=s.Z_FINISH,eC=s.Z_OK,tC=s.Z_STREAM_END,nC={level:s.Z_DEFAULT_COMPRESSION,method:s.Z_DEFLATED,chunkSize:16384,windowBits:15,memLevel:8,strategy:s.Z_DEFAULT_STRATEGY,legacyHash:!0};function rC(e){this.options=WE({},nC,e||{});var e=this.options,t=(e.raw&&0<e.windowBits?e.windowBits=-e.windowBits:e.gzip&&0<e.windowBits&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new $E,this.strm.avail_out=0,NE(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy,e.legacyHash));if(t!==eC)throw new Error($_[t]);if(e.header&&FE(this.strm,e.header),e.dictionary){e="string"==typeof e.dictionary?JE(e.dictionary):"[object ArrayBuffer]"===ZE.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary;if((t=zE(this.strm,e))!==eC)throw new Error($_[t]);this._dict_set=!0}}function iC(e,t){t=new rC(t);if(t.push(e,!0),t.err)throw t.msg||$_[t.err];return t.result}rC.prototype.push=function(e,t){var n,r,i=this.strm,o=this.options.chunkSize;if(this.ended)return!1;for(r=t===~~t?t:!0===t?QE:KE,"string"==typeof e?i.input=JE(e):"[object ArrayBuffer]"===ZE.call(e)?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;;)if(0===i.avail_out&&(i.output=new Uint8Array(o),i.next_out=0,i.avail_out=o),(r===YE||r===XE)&&i.avail_out<=6)this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;else{if(UE(i,r)===tC)return 0<i.next_out&&this.onData(i.output.subarray(0,i.next_out)),n=jE(this.strm),this.onEnd(n),this.ended=!0,n===eC;if(0!==i.avail_out){if(0<r&&0<i.next_out)this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;else if(0===i.avail_in)break}else this.onData(i.output)}return!0},rC.prototype.onData=function(e){this.chunks.push(e)},rC.prototype.onEnd=function(e){e===eC&&(this.result=HE(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var a={Deflate:rC,deflate:iC,deflateRaw:function(e,t){return(t=t||{}).raw=!0,iC(e,t)},gzip:function(e,t){return(t=t||{}).gzip=!0,iC(e,t)},constants:s},oC=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),aC=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,199,75]),sC=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),uC=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),lC=function(e,t,n,r,i,o,a,s){for(var u,l,c,f,d,h,p,m,g,v=s.bits,y=0,w=0,b=0,k=0,S=0,_=0,E=0,C=0,R=0,O=0,x=null,I=new Uint16Array(16),T=new Uint16Array(16),M=null,y=0;y<=15;y++)I[y]=0;for(w=0;w<r;w++)I[t[n+w]]++;for(S=v,k=15;1<=k&&0===I[k];k--);if(k<S&&(S=k),0===k)i[o++]=20971520,i[o++]=20971520,s.bits=1;else{for(b=1;b<k&&0===I[b];b++);for(S<b&&(S=b),y=C=1;y<=15;y++)if((C=(C<<1)-I[y])<0)return-1;if(0<C&&(0===e||1!==k))return-1;for(T[1]=0,y=1;y<15;y++)T[y+1]=T[y]+I[y];for(w=0;w<r;w++)0!==t[n+w]&&(a[T[t[n+w]]++]=w);if(h=0===e?(x=M=a,20):1===e?(x=oC,M=aC,257):(x=sC,M=uC,0),y=b,d=o,E=w=O=0,c=-1,f=(R=1<<(_=S))-1,1===e&&852<R||2===e&&592<R)return 1;for(;;){for(g=a[w]+1<h?(m=0,a[w]):a[w]>=h?(m=M[a[w]-h],x[a[w]-h]):(m=96,0),u=1<<(p=y-E),b=l=1<<_;i[d+(O>>E)+(l-=u)]=p<<24|m<<16|g|0,0!==l;);for(u=1<<y-1;O&u;)u>>=1;if(0!==u?O=(O&u-1)+u:O=0,w++,0==--I[y]){if(y===k)break;y=t[n+a[w]]}if(S<y&&(O&f)!==c){for(d+=b,C=1<<(_=y-(E=0===E?S:E));_+E<k&&!((C-=I[_+E])<=0);)_++,C<<=1;if(R+=1<<_,1===e&&852<R||2===e&&592<R)return 1;i[c=O&f]=S<<24|_<<16|d-o|0}}0!==O&&(i[d+O]=y-E<<24|64<<16|0),s.bits=S}return 0},cC=s.Z_FINISH,fC=s.Z_BLOCK,dC=s.Z_TREES,hC=s.Z_OK,pC=s.Z_STREAM_END,mC=s.Z_NEED_DICT,gC=s.Z_STREAM_ERROR,vC=s.Z_DATA_ERROR,yC=s.Z_MEM_ERROR,wC=s.Z_BUF_ERROR,bC=s.Z_DEFLATED,kC=16209,SC=function(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)};function _C(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var EC,CC,RC=function(e){var t;return!e||!(t=e.state)||t.strm!==e||t.mode<16180||16211<t.mode?1:0},OC=function(e){var t;return RC(e)?gC:(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=16180,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(852),t.distcode=t.distdyn=new Int32Array(592),t.sane=1,t.back=-1,hC)},xC=function(e){var t;return RC(e)?gC:((t=e.state).wsize=0,t.whave=0,t.wnext=0,OC(e))},IC=function(e,t){var n,r;return RC(e)||(r=e.state,t<0?(n=0,t=-t):(n=5+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t))?gC:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,xC(e))},TC=function(e,t){var n;return e?(n=new _C,(e.state=n).strm=e,n.window=null,n.mode=16180,(n=IC(e,t))!==hC&&(e.state=null),n):gC},MC=!0,AC=function(e,t,n,r){var i,e=e.state;return null===e.window&&(e.window=new Uint8Array(1<<e.wbits)),0===e.wsize&&(e.wsize=1<<e.wbits,e.wnext=0,e.whave=0),e.wsize<=r?(e.window.set(t.subarray(n-e.wsize,n),0),e.wnext=0,e.whave=e.wsize):((i=e.wsize-e.wnext)>r&&(i=r),e.window.set(t.subarray(n-r,n-r+i),e.wnext),(r-=i)?(e.window.set(t.subarray(n-r,n),0),e.wnext=r,e.whave=e.wsize):(e.wnext+=i,e.wnext===e.wsize&&(e.wnext=0),e.whave<e.wsize&&(e.whave+=i))),0},PC=xC,LC=TC,DC=function(e,t){var n,r,i,o,a,s,u,l,c,f,d,h,p,m,g,v,y,w,b,k,S,_,E,C,R=0,O=new Uint8Array(4),x=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(RC(e)||!e.output||!e.input&&0!==e.avail_in)return gC;16191===(n=e.state).mode&&(n.mode=16192),a=e.next_out,i=e.output,o=e.next_in,r=e.input,l=n.hold,c=n.bits,f=s=e.avail_in,d=u=e.avail_out,_=hC;e:for(;;)switch(n.mode){case 16180:if(0===n.wrap)n.mode=16192;else{for(;c<16;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}2&n.wrap&&35615===l?(0===n.wbits&&(n.wbits=15),O[n.check=0]=255&l,O[1]=l>>>8&255,n.check=J_(n.check,O,2,0),c=l=0,n.mode=16181):(n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&l)<<8)+(l>>8))%31?(e.msg="incorrect header check",n.mode=kC):(15&l)!==bC?(e.msg="unknown compression method",n.mode=kC):(c-=4,S=8+(15&(l>>>=4)),0===n.wbits&&(n.wbits=S),15<S||S>n.wbits?(e.msg="invalid window size",n.mode=kC):(n.dmax=1<<n.wbits,n.flags=0,e.adler=n.check=1,n.mode=512&l?16189:16191,c=l=0)))}break;case 16181:for(;c<16;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}if(n.flags=l,(255&n.flags)!==bC){e.msg="unknown compression method",n.mode=kC;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=kC;break}n.head&&(n.head.text=l>>8&1),512&n.flags&&4&n.wrap&&(O[0]=255&l,O[1]=l>>>8&255,n.check=J_(n.check,O,2,0)),c=l=0,n.mode=16182;case 16182:for(;c<32;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}n.head&&(n.head.time=l),512&n.flags&&4&n.wrap&&(O[0]=255&l,O[1]=l>>>8&255,O[2]=l>>>16&255,O[3]=l>>>24&255,n.check=J_(n.check,O,4,0)),c=l=0,n.mode=16183;case 16183:for(;c<16;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}n.head&&(n.head.xflags=255&l,n.head.os=l>>8),512&n.flags&&4&n.wrap&&(O[0]=255&l,O[1]=l>>>8&255,n.check=J_(n.check,O,2,0)),c=l=0,n.mode=16184;case 16184:if(1024&n.flags){for(;c<16;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}n.length=l,n.head&&(n.head.extra_len=l),512&n.flags&&4&n.wrap&&(O[0]=255&l,O[1]=l>>>8&255,n.check=J_(n.check,O,2,0)),c=l=0}else n.head&&(n.head.extra=null);n.mode=16185;case 16185:if(1024&n.flags&&((h=(h=n.length)>s?s:h)&&(n.head&&(S=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(o,o+h),S)),512&n.flags&&4&n.wrap&&(n.check=J_(n.check,r,h,o)),s-=h,o+=h,n.length-=h),n.length))break e;n.length=0,n.mode=16186;case 16186:if(2048&n.flags){if(0===s)break e;for(h=0;S=r[o+h++],n.head&&S&&n.length<65536&&(n.head.name+=String.fromCharCode(S)),S&&h<s;);if(512&n.flags&&4&n.wrap&&(n.check=J_(n.check,r,h,o)),s-=h,o+=h,S)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=16187;case 16187:if(4096&n.flags){if(0===s)break e;for(h=0;S=r[o+h++],n.head&&S&&n.length<65536&&(n.head.comment+=String.fromCharCode(S)),S&&h<s;);if(512&n.flags&&4&n.wrap&&(n.check=J_(n.check,r,h,o)),s-=h,o+=h,S)break e}else n.head&&(n.head.comment=null);n.mode=16188;case 16188:if(512&n.flags){for(;c<16;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}if(4&n.wrap&&l!==(65535&n.check)){e.msg="header crc mismatch",n.mode=kC;break}c=l=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=16191;break;case 16189:for(;c<32;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}e.adler=n.check=SC(l),c=l=0,n.mode=16190;case 16190:if(0===n.havedict)return e.next_out=a,e.avail_out=u,e.next_in=o,e.avail_in=s,n.hold=l,n.bits=c,mC;e.adler=n.check=1,n.mode=16191;case 16191:if(t===fC||t===dC)break e;case 16192:if(n.last)l>>>=7&c,c-=7&c,n.mode=16206;else{for(;c<3;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}switch(n.last=1&l,--c,3&(l>>>=1)){case 0:n.mode=16193;break;case 1:if(function(e){if(MC){EC=new Int32Array(512),CC=new Int32Array(32);for(var t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(lC(1,e.lens,0,288,EC,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;lC(2,e.lens,0,32,CC,0,e.work,{bits:5}),MC=!1}e.lencode=EC,e.lenbits=9,e.distcode=CC,e.distbits=5}(n),n.mode=16199,t!==dC)break;l>>>=2,c-=2;break e;case 2:n.mode=16196;break;case 3:e.msg="invalid block type",n.mode=kC}l>>>=2,c-=2}break;case 16193:for(l>>>=7&c,c-=7&c;c<32;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}if((65535&l)!=(l>>>16^65535)){e.msg="invalid stored block lengths",n.mode=kC;break}if(n.length=65535&l,c=l=0,n.mode=16194,t===dC)break e;case 16194:n.mode=16195;case 16195:if(h=n.length){if(0===(h=u<(h=s<h?s:h)?u:h))break e;i.set(r.subarray(o,o+h),a),s-=h,o+=h,u-=h,a+=h,n.length-=h}else n.mode=16191;break;case 16196:for(;c<14;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}if(n.nlen=257+(31&l),l>>>=5,c-=5,n.ndist=1+(31&l),l>>>=5,c-=5,n.ncode=4+(15&l),l>>>=4,c-=4,286<n.nlen||30<n.ndist){e.msg="too many length or distance symbols",n.mode=kC;break}n.have=0,n.mode=16197;case 16197:for(;n.have<n.ncode;){for(;c<3;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}n.lens[x[n.have++]]=7&l,l>>>=3,c-=3}for(;n.have<19;)n.lens[x[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,E={bits:n.lenbits},_=lC(0,n.lens,0,19,n.lencode,0,n.work,E),n.lenbits=E.bits,_){e.msg="invalid code lengths set",n.mode=kC;break}n.have=0,n.mode=16198;case 16198:for(;n.have<n.nlen+n.ndist;){for(;v=(R=n.lencode[l&(1<<n.lenbits)-1])>>>16&255,y=65535&R,!((g=R>>>24)<=c);){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}if(y<16)l>>>=g,c-=g,n.lens[n.have++]=y;else{if(16===y){for(C=g+2;c<C;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}if(l>>>=g,c-=g,0===n.have){e.msg="invalid bit length repeat",n.mode=kC;break}S=n.lens[n.have-1],h=3+(3&l),l>>>=2,c-=2}else if(17===y){for(C=g+3;c<C;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}S=0,h=3+(7&(l>>>=g)),l>>>=3,c=c-g-3}else{for(C=g+7;c<C;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}S=0,h=11+(127&(l>>>=g)),l>>>=7,c=c-g-7}if(n.have+h>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=kC;break}for(;h--;)n.lens[n.have++]=S}}if(n.mode===kC)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=kC;break}if(n.lenbits=9,E={bits:n.lenbits},_=lC(1,n.lens,0,n.nlen,n.lencode,0,n.work,E),n.lenbits=E.bits,_){e.msg="invalid literal/lengths set",n.mode=kC;break}if(n.distbits=6,n.distcode=n.distdyn,E={bits:n.distbits},_=lC(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,E),n.distbits=E.bits,_){e.msg="invalid distances set",n.mode=kC;break}if(n.mode=16199,t===dC)break e;case 16199:n.mode=16200;case 16200:if(6<=s&&258<=u){e.next_out=a,e.avail_out=u,e.next_in=o,e.avail_in=s,n.hold=l,n.bits=c,function(e,t){var n,r,i,o,a,s,u=e.state,l=e.next_in,c=e.input,f=l+(e.avail_in-5),d=e.next_out,h=e.output,p=d-(t-e.avail_out),m=d+(e.avail_out-257),g=u.dmax,v=u.wsize,y=u.whave,w=u.wnext,b=u.window,k=u.hold,S=u.bits,_=u.lencode,E=u.distcode,C=(1<<u.lenbits)-1,R=(1<<u.distbits)-1;t:do{for(S<15&&(k+=c[l++]<<S,S+=8,k+=c[l++]<<S,S+=8),n=_[k&C];;){if(k>>>=r=n>>>24,S-=r,0==(r=n>>>16&255))h[d++]=65535&n;else{if(!(16&r)){if(0==(64&r)){n=_[(65535&n)+(k&(1<<r)-1)];continue}if(32&r){u.mode=16191;break t}e.msg="invalid literal/length code",u.mode=16209;break t}for(i=65535&n,(r&=15)&&(S<r&&(k+=c[l++]<<S,S+=8),i+=k&(1<<r)-1,k>>>=r,S-=r),S<15&&(k+=c[l++]<<S,S+=8,k+=c[l++]<<S,S+=8),n=E[k&R];;){if(k>>>=r=n>>>24,S-=r,!(16&(r=n>>>16&255))){if(0==(64&r)){n=E[(65535&n)+(k&(1<<r)-1)];continue}e.msg="invalid distance code",u.mode=16209;break t}if(o=65535&n,S<(r&=15)&&(k+=c[l++]<<S,(S+=8)<r)&&(k+=c[l++]<<S,S+=8),(o+=k&(1<<r)-1)>g){e.msg="invalid distance too far back",u.mode=16209;break t}if(k>>>=r,S-=r,o>(r=d-p)){if((r=o-r)>y&&u.sane){e.msg="invalid distance too far back",u.mode=16209;break t}if(s=b,(a=0)===w){if(a+=v-r,r<i){for(i-=r;h[d++]=b[a++],--r;);a=d-o,s=h}}else if(w<r){if(a+=v+w-r,(r-=w)<i){for(i-=r;h[d++]=b[a++],--r;);if(a=0,w<i){for(i-=r=w;h[d++]=b[a++],--r;);a=d-o,s=h}}}else if(a+=w-r,r<i){for(i-=r;h[d++]=b[a++],--r;);a=d-o,s=h}for(;2<i;)h[d++]=s[a++],h[d++]=s[a++],h[d++]=s[a++],i-=3;i&&(h[d++]=s[a++],1<i)&&(h[d++]=s[a++])}else{for(a=d-o;h[d++]=h[a++],h[d++]=h[a++],h[d++]=h[a++],2<(i-=3););i&&(h[d++]=h[a++],1<i)&&(h[d++]=h[a++])}break}}break}}while(l<f&&d<m);l-=i=S>>3,k&=(1<<(S-=i<<3))-1,e.next_in=l,e.next_out=d,e.avail_in=l<f?f-l+5:5-(l-f),e.avail_out=d<m?m-d+257:257-(d-m),u.hold=k,u.bits=S}(e,d),a=e.next_out,i=e.output,u=e.avail_out,o=e.next_in,r=e.input,s=e.avail_in,l=n.hold,c=n.bits,16191===n.mode&&(n.back=-1);break}for(n.back=0;v=(R=n.lencode[l&(1<<n.lenbits)-1])>>>16&255,y=65535&R,!((g=R>>>24)<=c);){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}if(v&&0==(240&v)){for(w=g,b=v,k=y;v=(R=n.lencode[k+((l&(1<<w+b)-1)>>w)])>>>16&255,y=65535&R,!(w+(g=R>>>24)<=c);){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}l>>>=w,c-=w,n.back+=w}if(l>>>=g,c-=g,n.back+=g,n.length=y,0===v){n.mode=16205;break}if(32&v){n.back=-1,n.mode=16191;break}if(64&v){e.msg="invalid literal/length code",n.mode=kC;break}n.extra=15&v,n.mode=16201;case 16201:if(n.extra){for(C=n.extra;c<C;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}n.length+=l&(1<<n.extra)-1,l>>>=n.extra,c-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=16202;case 16202:for(;v=(R=n.distcode[l&(1<<n.distbits)-1])>>>16&255,y=65535&R,!((g=R>>>24)<=c);){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}if(0==(240&v)){for(w=g,b=v,k=y;v=(R=n.distcode[k+((l&(1<<w+b)-1)>>w)])>>>16&255,y=65535&R,!(w+(g=R>>>24)<=c);){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}l>>>=w,c-=w,n.back+=w}if(l>>>=g,c-=g,n.back+=g,64&v){e.msg="invalid distance code",n.mode=kC;break}n.offset=y,n.extra=15&v,n.mode=16203;case 16203:if(n.extra){for(C=n.extra;c<C;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}n.offset+=l&(1<<n.extra)-1,l>>>=n.extra,c-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=kC;break}n.mode=16204;case 16204:if(0===u)break e;if(n.offset>(h=d-u)){if((h=n.offset-h)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=kC;break}p=h>n.wnext?(h-=n.wnext,n.wsize-h):n.wnext-h,h>n.length&&(h=n.length),m=n.window}else m=i,p=a-n.offset,h=n.length;for(u-=h=u<h?u:h,n.length-=h;i[a++]=m[p++],--h;);0===n.length&&(n.mode=16200);break;case 16205:if(0===u)break e;i[a++]=n.length,u--,n.mode=16200;break;case 16206:if(n.wrap){for(;c<32;){if(0===s)break e;s--,l|=r[o++]<<c,c+=8}if(d-=u,e.total_out+=d,n.total+=d,4&n.wrap&&d&&(e.adler=n.check=(n.flags?J_:V_)(n.check,i,d,a-d)),d=u,4&n.wrap&&(n.flags?l:SC(l))!==n.check){e.msg="incorrect data check",n.mode=kC;break}c=l=0}n.mode=16207;case 16207:if(n.wrap&&n.flags){for(;c<32;){if(0===s)break e;s--,l+=r[o++]<<c,c+=8}if(4&n.wrap&&l!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=kC;break}c=l=0}n.mode=16208;case 16208:_=pC;break e;case kC:_=vC;break e;case 16210:return yC;default:return gC}return e.next_out=a,e.avail_out=u,e.next_in=o,e.avail_in=s,n.hold=l,n.bits=c,(n.wsize||d!==e.avail_out&&n.mode<kC&&(n.mode<16206||t!==cC))&&AC(e,e.output,e.next_out,d-e.avail_out),d-=e.avail_out,e.total_in+=f-=e.avail_in,e.total_out+=d,n.total+=d,4&n.wrap&&d&&(e.adler=n.check=(n.flags?J_:V_)(n.check,i,d,e.next_out-d)),e.data_type=n.bits+(n.last?64:0)+(16191===n.mode?128:0)+(16199===n.mode||16194===n.mode?256:0),_=(0==f&&0===d||t===cC)&&_===hC?wC:_},NC=function(e){var t;return RC(e)?gC:((t=e.state).window&&(t.window=null),e.state=null,hC)},FC=function(e,t){return RC(e)||0==(2&(e=e.state).wrap)?gC:((e.head=t).done=!1,hC)},UC=function(e,t){var n,r=t.length;return RC(e)||0!==(n=e.state).wrap&&16190!==n.mode?gC:16190===n.mode&&V_(1,t,r,0)!==n.check?vC:AC(e,t,r,r)?(n.mode=16210,yC):(n.havedict=1,hC)},jC=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1},zC=Object.prototype.toString,BC=s.Z_NO_FLUSH,WC=s.Z_FINISH,HC=s.Z_OK,qC=s.Z_STREAM_END,VC=s.Z_NEED_DICT,GC=s.Z_STREAM_ERROR,JC=s.Z_DATA_ERROR,$C=s.Z_MEM_ERROR,ZC=s.Z_BUF_ERROR,KC={chunkSize:65536,windowBits:15,to:""};function YC(e){this.options=WE({},KC,e||{});var t=this.options,e=(t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits)&&(t.windowBits=-15),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new $E,this.strm.avail_out=0,LC(this.strm,t.windowBits));if(e!==HC)throw new Error($_[e]);if(this.header=new jC,FC(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=JE(t.dictionary):"[object ArrayBuffer]"===zC.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw)&&(e=UC(this.strm,t.dictionary))!==HC)throw new Error($_[e])}function XC(e,t){t=new YC(t);if(t.push(e,!0),t.err)throw t.msg||$_[t.err];return t.result}YC.prototype.push=function(e,t){var n,r,i=this.strm,o=this.options.chunkSize,a=this.options.dictionary;if(this.ended)return!1;for(r=t===~~t?t:!0===t?WC:BC,"[object ArrayBuffer]"===zC.call(e)?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;;){for(0===i.avail_out&&(i.output=new Uint8Array(o),i.next_out=0,i.avail_out=o),(n=DC(i,r))===VC&&a&&((n=UC(i,a))===HC?n=DC(i,r):n===JC&&(n=VC));0<i.avail_in&&n===qC&&2&i.state.wrap&&0!==i.state.flags&&0!==i.input[i.next_in];)PC(i),n=DC(i,r);switch(n){case GC:case JC:case VC:case $C:return this.onEnd(n),!(this.ended=!0)}var s,u,l,c=i.avail_out;if(i.next_out&&(0===i.avail_out||n===qC||0<r)&&("string"===this.options.to?(s=function(e,t){for(var n=(t=(t=t||e.length)>e.length?e.length:t)-1;0<=n&&128==(192&e[n]);)n--;return!(n<0||0===n)&&n+VE[e[n]]>t?n:t}(i.output,i.next_out),u=i.next_out-s,l=function(e,t){var n=t||e.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(e.subarray(0,t));for(var r=new Array(2*n),i=0,o=0;o<n;){var a=e[o++];if(a<128)r[i++]=a;else{var s=VE[a];if(4<s)r[i++]=65533,o+=s-1;else{for(a&=2===s?31:3===s?15:7;1<s&&o<n;)a=a<<6|63&e[o++],s--;1<s?r[i++]=65533:a<65536?r[i++]=a:(a-=65536,r[i++]=55296|a>>10&1023,r[i++]=56320|1023&a)}}}var u=r,l=i;if(l<65534&&u.subarray&&qE)return String.fromCharCode.apply(null,u.length===l?u:u.subarray(0,l));for(var c="",f=0;f<l;f++)c+=String.fromCharCode(u[f]);return c}(i.output,s),i.next_out=u,i.avail_out=o-u,u&&i.output.set(i.output.subarray(s,s+u),0),this.onData(l)):(this.onData(i.output.length===i.next_out?i.output:i.output.subarray(0,i.next_out)),i.avail_out=0,i.next_out=0)),n!==HC&&n!==ZC||0!==c){if(n===qC)return n=NC(this.strm),this.onEnd(n),this.ended=!0;if(0===i.avail_in){if(r===WC)return n=NC(this.strm),this.onEnd(n===HC?ZC:n),!(this.ended=!0);break}}}return!0},YC.prototype.onData=function(e){this.chunks.push(e)},YC.prototype.onEnd=function(e){e===HC&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=HE(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var QC={Inflate:YC,inflate:XC,inflateRaw:function(e,t){return(t=t||{}).raw=!0,XC(e,t)},ungzip:XC,constants:s},eR={Deflate:a.Deflate,deflate:a.deflate,deflateRaw:a.deflateRaw,gzip:a.gzip,Inflate:QC.Inflate,inflate:QC.inflate,inflateRaw:QC.inflateRaw,ungzip:QC.ungzip,constants:s},tR=(oR.prototype.uploadReplay=function(n){return Wu(this,void 0,void 0,function(){var t;return Hu(this,function(e){switch(e.label){case 0:if(this.isUploading)return ay("Uploader","Upload in progress, skipping"),[2,!1];this.isUploading=!0,e.label=1;case 1:return e.trys.push([1,3,4,5]),(t=this.config.beforeSend(n))?[4,this.doUploadWithRetry(t,0)]:(m("Uploader","Upload cancelled by beforeSend"),[2,!1]);case 2:return e.sent(),m("Uploader","Upload success:",{replay_id:n.replay_id,segment_id:n.segment_id}),[2,!0];case 3:return sy("Uploader","Upload failed:",t=e.sent()),this.config.onError(t),[2,!1];case 4:return this.isUploading=!1,[7];case 5:return[2]}})})},oR.prototype.doUploadWithRetry=function(r,i){return Wu(this,void 0,void 0,function(){var t,n;return Hu(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,5]),[4,this.doUpload(r)];case 1:return e.sent(),[3,5];case 2:return t=e.sent(),i<this.config.maxRetries?(m("Uploader","Retrying in "+(n=1e3*Math.pow(2,i))+"ms (attempt "+(i+1)+"/"+this.config.maxRetries+")"),[4,this.sleep(n)]):[3,4];case 3:return e.sent(),[2,this.doUploadWithRetry(r,i+1)];case 4:throw t;case 5:return[2]}})})},oR.prototype.prepareUploadPayload=function(e){var t=e.replay_format||"rrweb",n=e.events_encoding||"plain_json";if("rrweb"!==t)return e;if(!this.config.eventsCompression||"gzip_base64"===n)return h(h({},e),{replay_format:t,platform:e.platform||"web",events_encoding:n});try{var r=eR.gzip(e.events),i=this.uint8ArrayToBase64(r),o=e.events.length,a=r.length,s=i.length;return m("Uploader","Events compressed: "+Math.round(o/1024)+"KB -> gzip "+Math.round(a/1024)+"KB -> base64 "+Math.round(s/1024)+"KB"),h(h({},e),{replay_format:t,platform:e.platform||"web",events_encoding:"gzip_base64",events:i})}catch(X){return ay("Uploader","Events compression failed, fallback to plain_json:",X),h(h({},e),{replay_format:t,platform:e.platform||"web",events_encoding:"plain_json"})}},oR.prototype.uint8ArrayToBase64=function(e){for(var t="",n=0;n<e.length;n+=32768){for(var r=e.subarray(n,n+32768),i="",o=0;o<r.length;o++)i+=String.fromCharCode(r[o]);t+=i}if("function"==typeof btoa)return btoa(t);if("undefined"!=typeof Buffer)return Buffer.from(e).toString("base64");throw new Error("base64 encode is not supported")},oR.prototype.doUpload=function(i){return Wu(this,void 0,void 0,function(){var t,n,r;return Hu(this,function(e){switch(e.label){case 0:if(t=this.prepareUploadPayload(i),r=JSON.stringify(t),n={"Content-Type":"application/json","X-App-ID":this.config.appId},m("Uploader","Sending replay payload: "+Math.round(r.length/1024)+"KB, events_encoding="+(t.events_encoding||"plain_json")),r.length<65536||m("Uploader","Data size "+Math.round(r.length/1024)+"KB exceeds keepalive limit, using normal fetch"),this.config.transport)return[4,this.config.transport.request({kind:"replay",url:this.config.uploadUrl,method:"POST",headers:n,body:r})];throw new Error("Replay Transport is not configured");case 1:if(t=e.sent(),!(n=t||{ok:!1,status:0,statusText:"Transport failed"}).ok)throw new Error("HTTP "+(n.status||0)+": "+(n.statusText||"Transport failed"));if(0!==(r="string"==typeof n.body?JSON.parse(n.body):n.body).code)throw new Error("Server error (code "+r.code+"): "+r.message);return[2]}})})},oR.prototype.sendBeacon=function(e){var t;try{var n=this.prepareUploadPayload(e),r=JSON.stringify(n);return!(null==(t=this.config.transport)||!t.handoff||(this.config.transport.handoff({kind:"replay",url:this.config.uploadUrl,method:"POST",contentType:"application/json",body:r,sendBeacon:!0}),0))}catch(X){return sy("Uploader","sendBeacon failed:",X),!1}},oR.prototype.isUploadInProgress=function(){return this.isUploading},oR.prototype.sleep=function(t){return new Promise(function(e){return setTimeout(e,t)})},oR),nR=["a","button",'input[type="button"]','input[type="submit"]','[role="button"]',"[onclick]","[ng-click]","[v-on\\:click]"].join(","),rR=(iR.prototype.start=function(){this.isRunning||(document.addEventListener("pointerdown",this.handlePointerDown,!0),document.addEventListener("click",this.handleClick,!0),this.isRunning=!0,m("ClickDetector","Started"))},iR.prototype.stop=function(){this.isRunning&&(document.removeEventListener("pointerdown",this.handlePointerDown,!0),document.removeEventListener("click",this.handleClick,!0),this.cleanupSlowClick(),this.isRunning=!1,m("ClickDetector","Stopped"))},iR.prototype.handlePointerDown=function(e){var t,n,r=this,i=e.target;i&&i instanceof Element&&(i=this.getClickableElement(i))&&(this.cleanupSlowClick(),this.clickStartTime=Date.now(),this.clickNode=i,t=this.getNodeInfo(i),n=this.getExternalNavigationReason(e,i),this.options.onClickStart({node:t,timestamp:this.clickStartTime,target:i,event:e,effectiveActionReason:n||undefined}),n?this.markEffectiveAction(n):(this.slowClickTimeoutId=setTimeout(function(){r.handleSlowClick("timeout")},this.options.slowClickTimeout),this.startMutationObserver()))},iR.prototype.handleClick=function(e){var t=this,n=e.target,r=Date.now();this.rageActiveTarget&&r-this.rageLastClickTime>=this.options.rageClickWindow&&(this.rageActiveTarget=null,this.rageLastClickTime=0),this.rageActiveTarget&&this.isSameTarget(this.rageActiveTarget,n)?this.rageLastClickTime=r:(this.clickHistory.push({time:r,target:n}),this.clickHistory=this.clickHistory.filter(function(e){return r-e.time<t.options.rageClickWindow}),(e=this.clickHistory.filter(function(e){return t.isSameTarget(e.target,n)})).length>=this.options.rageClickCount&&(this.options.onRageClick({node:this.getNodeInfo(n),clickCount:e.length,timeWindowMs:this.options.rageClickWindow,timestamp:r}),this.rageActiveTarget=n,this.rageLastClickTime=r))},iR.prototype.startMutationObserver=function(){var t=this;this.clickNode&&document.body&&"undefined"!=typeof MutationObserver&&(this.mutationObserver=new MutationObserver(function(e){t.hasSignificantMutation(e)&&(t.emitEffectiveAction("dom_mutation"),t.handleSlowClick("mutation"))}),this.mutationObserver.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["class","style","hidden","disabled","aria-hidden","aria-disabled","aria-busy"],characterData:!0}))},iR.prototype.hasSignificantMutation=function(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];if("characterData"===r.type)return!0;if("childList"===r.type&&(0<r.addedNodes.length||0<r.removedNodes.length)&&Array.from(r.addedNodes).concat(Array.from(r.removedNodes)).some(function(e){return e.nodeType===Node.ELEMENT_NODE&&!["SCRIPT","STYLE","LINK"].includes(e.tagName)}))return!0;if("attributes"===r.type){r=r.attributeName;if(["class","style","hidden","disabled","aria-hidden","aria-disabled","aria-busy"].includes(r||""))return!0}}return!1},iR.prototype.handleSlowClick=function(e){var t;this.clickNode&&this.clickStartTime&&((t=Date.now()-this.clickStartTime)>=this.options.slowClickThreshold&&this.options.onSlowClick({node:this.getNodeInfo(this.clickNode),timeAfterClickMs:t,endReason:e,timestamp:this.clickStartTime}),this.cleanupSlowClick())},iR.prototype.cleanupSlowClick=function(){this.slowClickTimeoutId&&(clearTimeout(this.slowClickTimeoutId),this.slowClickTimeoutId=null),this.mutationObserver&&(this.mutationObserver.disconnect(),this.mutationObserver=null),this.clickStartTime=0,this.clickNode=null},iR.prototype.isSameTarget=function(e,t){return e===t||e.contains(t)||t.contains(e)},iR.prototype.markEffectiveAction=function(e){this.clickNode&&this.clickStartTime&&(this.emitEffectiveAction(e),this.cleanupSlowClick())},iR.prototype.emitEffectiveAction=function(e){this.clickNode&&this.options.onEffectiveAction({reason:e,timestamp:Date.now(),node:this.getNodeInfo(this.clickNode)})},iR.prototype.getClickableElement=function(e){return e.matches(nR)?e:e.closest(nR)},iR.prototype.getExternalNavigationReason=function(e,t){var n=t.closest("a");if(n){if(n.download)return"download";var r=(n.getAttribute("target")||"").toLowerCase();if(r&&"_self"!==r)return"external_navigation";if(n.href&&(1===e.button||e.metaKey||e.ctrlKey||e.shiftKey))return"external_navigation"}r=t.closest("form"),n=((null==r?void 0:r.getAttribute("target"))||"").toLowerCase();return n&&"_self"!==n?"external_navigation":t.hasAttribute("data-tdem-ignore-dead-click")||t.closest("[data-tdem-ignore-dead-click]")||t.hasAttribute("data-tdem-effective-action")||t.closest("[data-tdem-effective-action]")?"custom":null},iR.prototype.getNodeInfo=function(e){var t;return{id:(null==(t=e.__sn)?void 0:t.id)||0,tagName:e.tagName.toLowerCase(),textContent:(e.textContent||"").trim().substring(0,100),selector:this.getSelector(e)}},iR.prototype.getSelector=function(e){for(var t=[],n=e;n&&n!==document.body&&t.length<5;){var r,i=n.tagName.toLowerCase();if(n.id){i+="#"+n.id,t.unshift(i);break}n.className&&"string"==typeof n.className&&0<(r=n.className.trim().split(/\s+/).slice(0,2)).length&&(i+="."+r.join(".")),t.unshift(i),n=n.parentElement}return t.join(" > ")},iR.prototype.isActive=function(){return this.isRunning},iR);function iR(e){var t;void 0===e&&(e={}),this.isRunning=!1,this.clickStartTime=0,this.clickNode=null,this.slowClickTimeoutId=null,this.mutationObserver=null,this.clickHistory=[],this.rageActiveTarget=null,this.rageLastClickTime=0,this.options={slowClickTimeout:null!=(t=e.slowClickTimeout)?t:7e3,slowClickThreshold:null!=(t=e.slowClickThreshold)?t:3e3,rageClickCount:null!=(t=e.rageClickCount)?t:5,rageClickWindow:null!=(t=e.rageClickWindow)?t:1e3,onSlowClick:e.onSlowClick||function(){},onRageClick:e.onRageClick||function(){},onClickStart:e.onClickStart||function(){},onEffectiveAction:e.onEffectiveAction||function(){},onDeadClick:e.onDeadClick||function(){}},this.handleClick=this.handleClick.bind(this),this.handlePointerDown=this.handlePointerDown.bind(this)}function oR(e){var t;this.isUploading=!1,this.useCompression=!1,this.config={uploadUrl:e.uploadUrl||"/api/v1/collect/replay",appId:e.appId,maxRetries:null!=(t=e.maxRetries)?t:3,beforeSend:e.beforeSend||function(e){return e},onError:e.onError||function(){},eventsCompression:null==(t=e.eventsCompression)||t,transport:e.transport}}function aR(e){return Number.isNaN(e)?0:Math.max(0,Math.min(1,e))}function sR(e){return aR((e=e,(Number.isNaN(e)?0:Math.max(0,Math.min(100,e)))/100))}function uR(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function lR(e,t){var e=!1===(e=e)||e===undefined?{enabled:!1,sessionSampleRate:.1,errorSampleRate:1,errorTraceback:!0}:!0===e?{enabled:!0,sessionSampleRate:.1,errorSampleRate:1,errorTraceback:!0}:{enabled:!1!==e.enabled,sessionSampleRate:"number"==typeof e.sessionSampleRate?aR(e.sessionSampleRate):.1,errorSampleRate:"number"==typeof e.errorSampleRate?aR(e.errorSampleRate):1,errorTraceback:e.errorTraceback===undefined||!!e.errorTraceback},t=t&&"object"===S(t)?t:null,n=e.enabled,r=(t&&uR(t,"enabled")&&(n=e.enabled&&!!t.enabled),e.sessionSampleRate),i=e.errorSampleRate,e=e.errorTraceback;return n&&t&&(uR(t,"replay_sample_rate")&&t.replay_sample_rate!==undefined&&null!==t.replay_sample_rate&&(r=sR(Number(t.replay_sample_rate))),uR(t,"error_traceback")&&t.error_traceback!==undefined&&null!==t.error_traceback&&(e=!!t.error_traceback),uR(t,"error_sample_rate"))&&t.error_sample_rate!==undefined&&null!==t.error_sample_rate&&(i=sR(Number(t.error_sample_rate))),{enabled:n,sessionSampleRate:r,errorSampleRate:e?i:0,errorTraceback:e}}function cR(e,t){return h(h({},e),{enabled:t.enabled,sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,errorTraceback:t.errorTraceback})}function fR(e){var t=null==(t=e)?void 0:t._tdemSampleGate;if(!t)return 1;if(t.isDecided&&t.isSampled)return(!(t=e._effectiveReplayPolicy)||t.enabled)&&!1!==e._replaySampled}new r({name:"sessionReplay"});var Te=new r({name:"sessionReplay",sessionManager:null,eventBuffer:null,recorderManager:null,samplerManager:null,uploader:null,clickDetector:null,flushTimer:null,replayConfig:null,isInitialized:!1,errorTraceback:!0,_tdemRef:null,_isCheckoutFlushing:!1,_lastLifecycleSnapshotAt:0,init:function(e){},applyEffectivePolicy:function(e){var t,n;if(this.errorTraceback=e.errorTraceback,this.replayConfig&&(this.replayConfig=cR(this.replayConfig,e)),this.samplerManager&&this.samplerManager.updateRates(e.sessionSampleRate,e.errorSampleRate),this.isInitialized){if(e.enabled)return(n=this.samplerManager)?0<e.sessionSampleRate||e.errorTraceback&&0<e.errorSampleRate?!e.errorTraceback&&n.isBufferMode()?(m("Plugin","Error traceback off while in buffer, stopping replay"),this.stopReplay(),null!=(t=this.eventBuffer)&&t.clear(),void n.forceMode(!1)):void(e.errorTraceback&&e.sessionSampleRate<=0&&0<e.errorSampleRate&&n.isSessionMode()&&(m("Plugin","Remote SSR=0 with traceback on: demote session→buffer"),n.forceMode("buffer"),this.flushTimer)&&(clearInterval(this.flushTimer),this.flushTimer=null)):(m("Plugin","Effective policy no longer allows recording, stopping"),this.stopReplay(),null!=(t=this.eventBuffer)&&t.clear(),void n.forceMode(!1)):void 0;m("Plugin","Effective policy disabled, stopping replay"),this.stopReplay(),null!=(e=this.eventBuffer)&&e.clear()}},shouldSkipBufferFlush:function(){var e;return!0===(null==(e=this.samplerManager)?void 0:e.isBufferMode())},onNewTdem:function(e,t){var n,r,t=this.parseConfig(t),i=null!=(i=t.debug)&&i,i=(ry=i,e._effectiveReplayPolicy);i||(i=lR(t,(n=e._prefetchedConfigData)&&"object"===S(n)&&("replay_sample_rate"in n||"error_traceback"in n||"error_sample_rate"in n||"tdem_sample_rate"in n||"enabled"in n)?(r={},Object.prototype.hasOwnProperty.call(n,"enabled")&&(r.enabled=!!n.enabled),Object.prototype.hasOwnProperty.call(n,"replay_sample_rate")&&(r.replay_sample_rate=Number(n.replay_sample_rate)),Object.prototype.hasOwnProperty.call(n,"error_traceback")&&(r.error_traceback=!!n.error_traceback),Object.prototype.hasOwnProperty.call(n,"error_sample_rate")&&(r.error_sample_rate=Number(n.error_sample_rate)),r):null),e._effectiveReplayPolicy=i,e._replaySampled=i.enabled),i.enabled?(n=cR(h(h({},t),{enabled:!0}),i),this.replayConfig=n,this.errorTraceback=i.errorTraceback,this._tdemRef=e,this.initializeModules(e,n),(r=this.samplerManager.initializeSampling()).shouldRecord?(this.startReplay(e,n,r.mode),this.registerReplaySamplingCheck(e,n),this.listenForErrors(e,n),this.listenForPerformance(e),this.listenForLifecycle(e,n),this.listenForUnload(e),this.isInitialized=!0):m("Plugin","Not sampled by sampler, skipping")):m("Plugin","disabled by effective policy")},registerReplaySamplingCheck:function(t,e){var n=this,r=function(e){clearInterval(i),e?(m("Plugin","Session/policy rejected, stopping replay and clearing buffer"),n.stopReplay(),n.eventBuffer&&n.eventBuffer.clear()):m("Plugin","Session sampled, replay continues")},i=setInterval(function(){var e=null==(e=t)?void 0:e._tdemSampleGate;e&&e.isDecided&&(e.isSampled&&(!(e=t._effectiveReplayPolicy)||e.enabled)?r(!1):r(!0))},50);t.lifeCycle.on("destroy",function(){clearInterval(i)})},parseConfig:function(e){return!0===e?{enabled:!0}:"object"===S(e)?h(h({},e),{enabled:!1!==e.enabled}):{enabled:!1}},initializeModules:function(t,e){var n=this,r=(this.sessionManager=new uy({stickySession:null==(r=e.stickySession)||r}),this.sessionManager.setTdemInstance(t),t.sessionManager=this.sessionManager,this.eventBuffer=new hy({},null!=(r=e.useCompression)&&r),this.samplerManager=new u_({sessionSampleRate:e.sessionSampleRate,errorSampleRate:e.errorSampleRate}),this.recorderManager=new s_({onRecordingEvent:function(e){n.handleRecordingEvent(e,t)},onCheckout:function(){if(!n._isCheckoutFlushing){n._isCheckoutFlushing=!0;try{var e,t;n.shouldSkipBufferFlush()?m("SessionReplay","Checkout in buffer mode (error traceback), skip flush"):(e=n._tdemRef,t=n.replayConfig,e&&t&&n.eventBuffer&&!n.eventBuffer.isEmpty()&&(m("SessionReplay","Checkout triggered, flushing current buffer"),n.flushReplayData(e,t,!0)))}finally{n._isCheckoutFlushing=!1}}},mode:"session"},e),(t.config.url||t.config.hostUrl||"").replace(/\/+$/,""));this.uploader=new tR({uploadUrl:e.uploadUrl||r+"/api/v1/collect/replay",appId:String(t.config.id||""),beforeSend:e.beforeSend,onError:e.onError,eventsCompression:null==(r=e.eventsCompression)||r,transport:null==(r=t.getInternalTransport)?void 0:r.call(t)}),this.clickDetector=new rR({slowClickTimeout:e.slowClickTimeout,slowClickThreshold:e.slowClickThreshold,rageClickCount:e.rageClickCount,rageClickWindow:e.rageClickWindow,onSlowClick:function(e){n.handleSlowClick(e,t)},onRageClick:function(e){n.handleRageClick(e,t)}}),m("Plugin","Modules initialized")},startReplay:function(e,t,n){var r;this.sessionManager&&this.recorderManager&&this.eventBuffer?(m("Plugin","Session started:",(this.sessionManager.restoreSession()||this.sessionManager.createSession(n)).id,"mode:",n),this.recorderManager.options.mode=n,r=i_(h({maskAllText:!1!==t.maskAllInputs,maskAllInputs:t.maskAllInputs,maskTextSelector:t.maskTextSelector,blockSelector:t.blockSelector,ignoreSelector:t.ignoreSelector},t.privacy)),this.recorderManager.startRecording({privacy:r}),this.clickDetector&&this.clickDetector.start(),"session"===n?this.startFlushTimer(e,t):m("Plugin","Buffer mode - flush on error only")):sy("Plugin","Modules not initialized")},handleRecordingEvent:function(e,t){this.eventBuffer&&this.sessionManager&&(this.sanitizeDataURLs(e),this.eventBuffer.addEvent(e),this.sessionManager.updateActivity())},sanitizeDataURLs:function(e){var t=e.type;if(2===t){var n=null==(n=e.data)?void 0:n.node;n&&this.sanitizeNodeTree(n,1024)}else if(3===t){n=e.data;if(0===(null==n?void 0:n.source)&&Array.isArray(n.adds)){for(var r=0,i=n.adds;r<i.length;r++){var o=i[r];null!=o&&o.node&&this.sanitizeNodeTree(o.node,1024)}if(Array.isArray(n.attributes))for(var a=0,s=n.attributes;a<s.length;a++){var u=s[a];if(null!=u&&u.attributes)for(var l=0,c=Object.entries(u.attributes);l<c.length;l++){var f=c[l],d=f[0],f=f[1];"string"==typeof f&&1024<f.length&&f.startsWith("data:")&&(u.attributes[d]='data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg"%3E%3C/svg%3E')}}}}},sanitizeNodeTree:function(e,t){if(e){if(e.attributes)for(var n=e.attributes,r=0,i=Object.keys(n);r<i.length;r++){var o=i[r],a=n[o];"string"==typeof a&&a.length>t&&a.startsWith("data:")&&(n[o]='data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg"%3E%3C/svg%3E')}if(Array.isArray(e.childNodes))for(var s=0,u=e.childNodes;s<u.length;s++){var l=u[s];this.sanitizeNodeTree(l,t)}}},handleSlowClick:function(e,t){m("ClickDetector","Slow click detected:",e.timeAfterClickMs,"ms"),this.addCustomEvent({category:"ui.slowClickDetected",message:"Slow click: "+e.timeAfterClickMs+"ms on "+e.node.tagName,data:{node:e.node,timeAfterClickMs:e.timeAfterClickMs,endReason:e.endReason}},t)},handleRageClick:function(e,t){m("ClickDetector","Rage click detected:",e.clickCount,"clicks"),this.addCustomEvent({category:"ui.multiClick",message:"Rage click: "+e.clickCount+" clicks on "+e.node.tagName,data:{node:e.node,clickCount:e.clickCount,timeWindowMs:e.timeWindowMs}},t)},addCustomEvent:function(e,t){this.eventBuffer&&(e={type:5,data:{tag:e.category,payload:h({message:e.message},e.data)},timestamp:Date.now()},this.eventBuffer.addEvent(e))},startFlushTimer:function(e,t){var n=this;this.flushTimer&&clearInterval(this.flushTimer),this.flushTimer=setInterval(function(){n.flushReplayData(e,t)},2e4)},flushReplayData:function(c,f,d){return void 0===d&&(d=!1),Wu(this,void 0,void 0,function(){var t,n,r,i,o,a,s,u,l;return Hu(this,function(e){switch(e.label){case 0:return this.sessionManager&&this.eventBuffer&&this.uploader&&fR(c)&&(t=this.sessionManager.getSession())?this.sessionManager.shouldRefreshSession()?(m("Plugin","Session expired, refreshing"),this.stopReplay(),i=this.sessionManager.refreshSession(),c.lifeCycle.emit("sessionRefreshed"),n=c._replaySampled,i.sampled&&!1!==n&&this.startReplay(c,f,i.sampled),[2]):this.eventBuffer.isEmpty()?[2]:(n=this.eventBuffer.getEventCount(),!d&&n<10?(m("Flush","Skipping flush, only "+n+" events (min: 10)"),[2]):(0!==t.segmentId||this.eventBuffer.hasCheckout()||(ay("Flush","First segment missing FullSnapshot, triggering manual checkout"),this.recorderManager&&this.recorderManager.takeFullSnapshot()),[4,this.eventBuffer.finishAsync()])):[2];case 1:if(0===(r=e.sent()).eventCount)return[2];if(0===(i=r.events).length&&r.eventsJson)try{i=JSON.parse(r.eventsJson)}catch(H){return sy("Flush","Failed to parse eventsJson from worker:",H),[2]}s=this.splitEventsIntoChunks(i),m("Flush","Flushing "+r.eventCount+" events in "+s.length+" chunk(s), total size: "+Math.round(r.uncompressedSize/1024)+"KB"),o=!0,a=0,s=s,e.label=2;case 2:return a<s.length?(u=s[a],u=JSON.stringify(u),u={project_key:String(c.config.id||""),session_id:t.id,replay_id:t.replayId,segment_id:this.sessionManager.incrementSegmentId(),timestamp:Date.now(),replay_start_timestamp:t.started,replay_format:"rrweb",platform:"web",events_encoding:"plain_json",events:u},[4,this.uploader.uploadReplay(u)]):[3,5];case 3:if(!e.sent())return o=!1,[3,5];e.label=4;case 4:return a++,[3,2];case 5:return u=this.eventBuffer.isUsingWorker(),l=u?"(worker)":"(sync)",m("Flush","Flushing "+r.eventCount+" events, size: "+Math.round(r.uncompressedSize/1024)+"KB "+l),o&&(this.eventBuffer.clear(),this.sessionManager.saveSession()),[2]}})})},splitEventsIntoChunks:function(e,t,n){if(void 0===t&&(t=3145728),void 0===n&&(n=5242880),0===e.length)return[];var r=JSON.stringify(e);if(r.length<=t)return[e];ay("Split","Events size "+Math.round(r.length/1024)+"KB exceeds limit "+Math.round(t/1024)+"KB, splitting");for(var i=[],o=[],a=2,s=0,u=e;s<u.length;s++){var l,c,f=u[s],d=JSON.stringify(f).length+1;0<o.length&&t<a+d&&(i.push(o),o=[],a=2),n<d?((c=2===(l=f.type)||4===l)?sy:ay)("Split","Single event too large ("+Math.round(d/1024)+"KB), type="+l+(c?" (baseline snapshot, replay may become unplayable)":"")+", skipping"):(o.push(f),a+=d)}return 0<o.length&&i.push(o),i},stopReplay:function(){this.flushTimer&&(clearInterval(this.flushTimer),this.flushTimer=null),this.recorderManager&&this.recorderManager.stopRecording(),this.clickDetector&&this.clickDetector.stop(),m("Plugin","Recording stopped")},listenForErrors:function(t,n){var r=this;t.lifeCycle.on("errorOccurred",function(e){(Array.isArray(e)?e:[e]).forEach(function(e){e&&r.handleError(e,t,n)})}),t.lifeCycle.on("tdemEventCreated",function(e){(Array.isArray(e)?e:[e]).forEach(function(e){r.isErrorTDEMEvent(e)&&r.handleError(e,t,n)})})},isErrorTDEMEvent:function(e){return!!e&&("error"===String(e.event_category||"").toLowerCase()||(e=String(e.event_type||"").toLowerCase(),["js_error","promise_error","resource_error","api_error"].includes(e)))},handleError:function(e,t,n){this.samplerManager&&(this.samplerManager.isBufferMode()&&this.samplerManager.onErrorOccurred(e)&&(m("Plugin","Converting to session mode due to error"),this.flushReplayData(t,n,!0),this.startFlushTimer(t,n)),this.addCustomEvent({category:"error",message:(null==e?void 0:e.msg)||(null==e?void 0:e.message)||"Unknown error",data:{type:(null==e?void 0:e.type)||"error",stack:null==e?void 0:e.stack}},t))},listenForPerformance:function(n){var r=this;if(n.lifeCycle.on("afterReportWebVitals",function(e){r.handlePerformanceEvent("webVitals",e,n)}),n.lifeCycle.on("afterReportPagePerformance",function(e){r.handlePerformanceEvent("pageLoad",e,n)}),"undefined"!=typeof PerformanceObserver)try{var e=new PerformanceObserver(function(e){var t,e=e.getEntries(),e=e[e.length-1];e&&r.addCustomEvent({category:"performance.lcp",message:"LCP: "+Math.round(e.startTime)+"ms",data:{value:e.startTime,element:(null==(t=e.element)?void 0:t.tagName)||"unknown",size:e.size}},n)}),t=(e.observe({type:"largest-contentful-paint",buffered:!0}),new PerformanceObserver(function(e){e.getEntries().forEach(function(e){"first-contentful-paint"===e.name&&r.addCustomEvent({category:"performance.fcp",message:"FCP: "+Math.round(e.startTime)+"ms",data:{value:e.startTime}},n)})})),i=(t.observe({type:"paint",buffered:!0}),new PerformanceObserver(function(e){e.getEntries().forEach(function(e){100<e.duration&&r.addCustomEvent({category:"performance.longTask",message:"Long Task: "+Math.round(e.duration)+"ms",data:{duration:e.duration,startTime:e.startTime}},n)})}));i.observe({type:"longtask",buffered:!0}),n.lifeCycle.on("destroy",function(){e.disconnect(),t.disconnect(),i.disconnect()})}catch(De){}},handlePerformanceEvent:function(e,n,r){var i=this;n&&("webVitals"===e?["LCP","FCP","FID","CLS","TTFB","TTI","INP"].forEach(function(e){var t=n[e];t!==undefined&&-1!==t&&0<t&&i.addCustomEvent({category:"performance."+e.toLowerCase(),message:e+": "+("number"==typeof t?Math.round(t):t)+("CLS"===e?"":"ms"),data:{metric:e,value:t}},r)}):"pageLoad"===e&&this.addCustomEvent({category:"performance.pageLoad",message:"Page Load: "+(n.firstScreenTiming?Math.round(n.firstScreenTiming):"N/A")+"ms",data:{dnsLookup:n.dnsLookup,tcp:n.tcp,ssl:n.ssl,ttfb:n.ttfb,contentDownload:n.contentDownload,domParse:n.domParse,resourceDownload:n.resourceDownload,firstScreenTiming:n.firstScreenTiming}},r))},listenForLifecycle:function(o,t){var n,e,a=this;"undefined"!=typeof document&&(n=function(e){var t,n=null==(n=a.sessionManager)?void 0:n.getSession(),n=(null==n?void 0:n.replayId)||"",r=(null==(i=null==(r=o)?void 0:r.getOriginFrom)?void 0:i.call(r))||("undefined"!=typeof location?location.href:""),i="undefined"!=typeof document&&document.title||"";null!=(t=o.reportTDEMEvent)&&t.call(o,{event_id:Ul(),event_type:e,event_category:Nl.BEHAVIOR,timestamp:Date.now(),page_url:r,data:{page_title:i,replay_id:n,is_effective_action:!1,tags:{environment:o.config.env||"production",version:String(o.config.version||"")},event_properties:{visibility_state:"undefined"!=typeof document?document.visibilityState:"",lifecycle_type:e}}})},document.addEventListener("visibilitychange",e=function(){var e;if("undefined"!=typeof document){if("hidden"===document.visibilityState)return n(p.TAB_HIDDEN),a.shouldSkipBufferFlush()?void m("Lifecycle","Buffer mode (error traceback), skip flush on hidden"):void a.flushReplayData(o,t,!0);"visible"===document.visibilityState&&(n(p.TAB_VISIBLE),(e=Date.now())-a._lastLifecycleSnapshotAt<5e3||(a._lastLifecycleSnapshotAt=e,null!=(e=a.recorderManager)&&e.takeFullSnapshot(),a.shouldSkipBufferFlush()?m("Lifecycle","Buffer mode (error traceback), skip flush on visible"):a.flushReplayData(o,t,!0)))}}),o.lifeCycle.on("destroy",function(){document.removeEventListener("visibilitychange",e)}))},listenForUnload:function(e){var t=this,n=function(){t.flushOnUnload(e)};window.addEventListener("beforeunload",n),window.addEventListener("pagehide",n),e.lifeCycle.on("destroy",function(){window.removeEventListener("beforeunload",n),window.removeEventListener("pagehide",n)})},flushOnUnload:function(e){if(this.sessionManager&&this.eventBuffer&&this.uploader&&fR(e))if(this.shouldSkipBufferFlush())m("Unload","Buffer mode (error traceback), skip flush on unload");else{var t=this.sessionManager.getSession();if(t&&(this.recorderManager&&this.recorderManager.stopRecording(),this.clickDetector&&this.clickDetector.stop(),!this.eventBuffer.isEmpty())){var n=this.eventBuffer.finish();if(0!==n.eventCount){for(var n=this.splitEventsIntoChunks(n.events,51200,51200),r=0,i=0,o=0,a=n;o<a.length;o++){var s=a[o],s={project_key:String(e.config.id||""),session_id:t.id,replay_id:t.replayId,segment_id:this.sessionManager.incrementSegmentId(),timestamp:Date.now(),replay_start_timestamp:t.started,replay_format:"rrweb",platform:"web",events_encoding:"plain_json",events:JSON.stringify(s)};this.uploader.sendBeacon(s)?r++:(i++,ay("Unload","sendBeacon rejected chunk (segment_id="+s.segment_id+"), likely exceeds 64KB browser limit or queue full"))}m("SessionReplay","sendBeacon on unload: "+r+"/"+n.length+" chunk(s) queued, "+i+" rejected")}}}},destroy:function(){this.stopReplay(),this.sessionManager&&this.sessionManager.saveSession(),this.sessionManager=null,this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,this.recorderManager=null,this.samplerManager=null,this.uploader=null,this.clickDetector=null,this.replayConfig=null,this._tdemRef=null,this._isCheckoutFlushing=!1,this._lastLifecycleSnapshotAt=0,this.isInitialized=!1,m("Plugin","destroyed")}}),dR={enabled:!0,ruleVersion:"1.0.0",payloadAllowlist:[],click:{enabled:!0,deadClickWindowMs:3e3,rageClickWindowMs:1e3,rageClickCount:5,errorClickWindowMs:3e3,resolveOnDomMutation:!0,resolveOnSpaNavigation:!0,resolveOnExternalNavigation:!0,resolveOnWindowOpen:!0,resolveOnPageUnload:!0,resolveOnFormAction:!0,resolveOnApiSuccess:!0,ignoreDeadClickSelectors:[],effectiveActionSelectors:[]},performance:{enabled:!0,slowPageLcpThreshold:4e3,slowPageInpThreshold:500},form:{enabled:!0,fieldIdAttr:"data-field-id",formIdAttr:"data-form-id",longFocusThresholdMs:2e4,incompleteMinFieldRatio:.3,zigzagMinCount:2},navigation:{enabled:!0,backForwardAsStruggle:!0},custom:{enabled:!0,detector:undefined}},hR=new Set([p.JS_ERROR,p.PROMISE_ERROR,p.RESOURCE_ERROR,p.API_ERROR]),pR=new Set([p.FORM_CHANGE,p.FORM_SUBMIT,p.FORM_SUBMIT_RESULT]),lt=(new r({name:"struggleMonitor"}),new r({name:"struggleMonitor",instanceStates:new Map,originalWindowOpen:null,windowOpenHooked:!1,onNewTdem:function(t){var n,r=this,e=!0===(e=this.$getConfig(t))?h({},dR):e&&"object"===S(e)?h(h(h({},dR),e),{click:h(h({},dR.click),e.click||{}),performance:h(h({},dR.performance),e.performance||{}),form:h(h({},dR.form),e.form||{}),navigation:h(h({},dR.navigation),e.navigation||{}),custom:h(h({},dR.custom),e.custom||{}),payloadAllowlist:(Array.isArray(e.payloadAllowlist)?e:dR).payloadAllowlist,enabled:!1!==e.enabled}):h(h({},dR),{enabled:!1});e.enabled&&(n={config:e,clickDetector:null,recentClicks:[],pendingDeadClicks:new Map,focusStartMap:new Map,formStateMap:new Map,removeDomListeners:[],onEventCreated:null,onDestroy:null},this.instanceStates.set(t,n),this.initClickDetector(t,n),this.initFormListeners(t,n),n.onEventCreated=function(e){r.handleEventCreated(t,n,e||[])},t.lifeCycle.on("tdemEventCreated",n.onEventCreated),n.onDestroy=function(){return r.cleanupInstance(t)},t.lifeCycle.on("destroy",n.onDestroy))},initClickDetector:function(t,n){var e,r=this;"undefined"!=typeof window&&"undefined"!=typeof document&&(n.clickDetector=new rR({slowClickTimeout:null!=(e=null==(e=n.config.click)?void 0:e.deadClickWindowMs)?e:3e3,slowClickThreshold:null!=(e=null==(e=n.config.click)?void 0:e.deadClickWindowMs)?e:3e3,rageClickCount:null!=(e=null==(e=n.config.click)?void 0:e.rageClickCount)?e:5,rageClickWindow:null!=(e=null==(e=n.config.click)?void 0:e.rageClickWindowMs)?e:1e3,onRageClick:function(e){r.onRageClick(t,n,e)},onClickStart:function(e){r.onClickStart(t,n,e)},onEffectiveAction:function(e){r.onEffectiveAction(n,e)},onSlowClick:function(e){r.onSlowClick(t,n,e)}}),n.clickDetector.start(),this.initClickEffectiveActionListeners(n),this.initWindowOpenHook())},initClickEffectiveActionListeners:function(n){var e,t=this;"undefined"!=typeof window&&((e=function(e,t){window.addEventListener(e,t),n.removeDomListeners.push(function(){window.removeEventListener(e,t)})})("pagehide",function(){var e;!1!==(null==(e=n.config.click)?void 0:e.resolveOnPageUnload)&&(t.resolvePendingDeadClicks(n,"page_unload"),null!=(e=n.clickDetector))&&e.markEffectiveAction("page_unload")}),e("beforeunload",function(){var e;!1!==(null==(e=n.config.click)?void 0:e.resolveOnPageUnload)&&(t.resolvePendingDeadClicks(n,"page_unload"),null!=(e=n.clickDetector))&&e.markEffectiveAction("page_unload")}))},initWindowOpenHook:function(){var r,i;"undefined"==typeof window||this.windowOpenHooked||(r=window.open,this.originalWindowOpen=r,this.windowOpenHooked=!0,i=this,window.open=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=r.apply(window,e);return i.resolveWindowOpenActions(),n})},resolveWindowOpenActions:function(){var n=this,r=Date.now();this.instanceStates.forEach(function(e){var t;!1!==(null==(t=e.config.click)?void 0:t.resolveOnWindowOpen)&&(null!=(t=e.clickDetector)&&t.markEffectiveAction("window_open"),n.resolvePendingDeadClicks(e,"window_open",r,n.getCurrentPageUrl()))})},restoreWindowOpenHook:function(){"undefined"!=typeof window&&this.windowOpenHooked&&this.originalWindowOpen&&(window.open=this.originalWindowOpen,this.originalWindowOpen=null,this.windowOpenHooked=!1)},initFormListeners:function(r,i){var e,t,o=this;null!=(t=i.config.form)&&t.enabled&&"undefined"!=typeof document&&((t=function(e,t,n){void 0===n&&(n=!0),document.addEventListener(e,t,n),i.removeDomListeners.push(function(){document.removeEventListener(e,t,n)})})("focusin",function(e){e=o.getTrackableField(e.target);e&&o.reportFormEvent(r,i,p.FORM_FOCUS,e,e.form||undefined)}),t("focusout",function(e){e=o.getTrackableField(e.target);e&&o.reportFormEvent(r,i,p.FORM_BLUR,e,e.form||undefined)}),t("change",function(e){e=o.getTrackableField(e.target);e&&o.reportFormEvent(r,i,p.FORM_CHANGE,e,e.form||undefined)}),t("submit",function(e){e=e.target;e instanceof HTMLFormElement&&o.reportFormEvent(r,i,p.FORM_SUBMIT,null,e)}),t("invalid",function(e){var t,n,e=o.getTrackableField(e.target);e&&(n=e.form||undefined,n=o.buildFormBaseData(r,i,e,n),n={event_id:Ul(),event_type:p.FORM_SUBMIT_RESULT,event_category:Nl.BEHAVIOR,timestamp:Date.now(),page_url:"undefined"!=typeof window?window.location.href:(null==(t=r.getOriginFrom)?void 0:t.call(r))||"",data:h(h({},n),{event_name:"form_submit_fail",is_effective_action:!0,validation_message:e.validationMessage||undefined,event_properties:h(h({},n.event_properties||{}),{status:"fail",validation_code:!1===(null==(t=e.validity)?void 0:t.valid)?"invalid":"validation_error"})})},null!=(e=r.reportTDEMEvent))&&e.call(r,n)}),e=function(){o.reportPendingUncompletedForms(r,i,"pagehide")},"undefined"!=typeof window)&&(window.addEventListener("pagehide",e),i.removeDomListeners.push(function(){window.removeEventListener("pagehide",e)}))},getTrackableField:function(e){return!(e&&e instanceof Element)||!(e=e.closest("input, textarea, select"))||e instanceof HTMLInputElement&&["button","submit","reset","image","hidden"].includes(e.type)?null:e},buildFormBaseData:function(e,t,n,r){var n=n||null,r=r||(null==n?void 0:n.form)||undefined,i=(null==(i=t.config.form)?void 0:i.fieldIdAttr)||"data-field-id",t=(null==(t=t.config.form)?void 0:t.formIdAttr)||"data-form-id",i=n?n.getAttribute(i)||n.id||n.name||n.tagName.toLowerCase()+"_"+(n.type||"field"):undefined,t=r&&(r.getAttribute(t)||r.id||r.getAttribute("name")||r.getAttribute("action"))||undefined,o="string"==typeof(null==(o=n)?void 0:o.value)?n.value.length:0,o=0===o?"0":o<=10?"1_10":o<=50?"11_50":"51_plus";return{replay_id:ef(e),is_effective_action:!0,form_id:t,field_id:i,tags:{},event_properties:{field_name:(null==n?void 0:n.name)||"",field_type:(null==n?void 0:n.type)||(null==(e=null==n?void 0:n.tagName)?void 0:e.toLowerCase())||"",form_name:(null==r?void 0:r.getAttribute("name"))||"",is_required:String(!(null==n||!n.required)),value_length_bucket:String(o)}}},reportFormEvent:function(e,t,n,r,i){var t=this.buildFormBaseData(e,t,r,i),i="undefined"!=typeof window?window.location.href:(null==(r=e.getOriginFrom)?void 0:r.call(e))||"",r={event_id:Ul(),timestamp:Date.now(),page_url:i};n!==p.FORM_FOCUS?n!==p.FORM_BLUR?n!==p.FORM_CHANGE?(i=h(h({},r),{event_type:p.FORM_SUBMIT,event_category:Nl.BEHAVIOR,data:h(h({},t),{submit_method:"native_submit"})}),null!=(n=e.reportTDEMEvent)&&n.call(e,i)):(i=h(h({},r),{event_type:p.FORM_CHANGE,event_category:Nl.BEHAVIOR,data:t}),null!=(n=e.reportTDEMEvent)&&n.call(e,i)):(i=h(h({},r),{event_type:p.FORM_BLUR,event_category:Nl.BEHAVIOR,data:t}),null!=(n=e.reportTDEMEvent)&&n.call(e,i)):(i=h(h({},r),{event_type:p.FORM_FOCUS,event_category:Nl.BEHAVIOR,data:t}),null!=(n=e.reportTDEMEvent)&&n.call(e,i))},onClickStart:function(e,t,n){var r,i=t.config.click||dR.click;!1!==i.enabled&&(r=n.node.selector||n.node.tagName||"unknown",this.shouldIgnoreDeadClick(n.target,i)?this.resolvePendingDeadClicks(t,"custom",n.timestamp,this.getCurrentPageUrl()):this.scheduleDeadClick(e,t,{pendingId:"pending_"+n.timestamp+"_"+Math.random().toString(16).slice(2),timestamp:n.timestamp,pageUrl:this.getCurrentPageUrl(),ownerKey:r,node:n.node}))},onEffectiveAction:function(e,t){this.shouldResolveByReason(e,t.reason)&&this.resolvePendingDeadClicks(e,t.reason,t.timestamp,this.getCurrentPageUrl())},scheduleDeadClick:function(t,n,r){var i=this,o=null!=(e=null==(e=n.config.click)?void 0:e.deadClickWindowMs)?e:3e3,e=setTimeout(function(){var e=n.pendingDeadClicks.get(r.pendingId);e&&(n.pendingDeadClicks["delete"](r.pendingId),i.emitDeadClick(t,n,e,o))},o);n.pendingDeadClicks.set(r.pendingId,h(h({},r),{timeout:e}))},emitDeadClick:function(e,t,n,r){var i,o=n.clickEventId?[n.clickEventId]:undefined;null!=(i=e.reportStruggle)&&i.call(e,{type:"dead_click",ownerType:"element",ownerKey:n.ownerKey,pageUrl:n.pageUrl,triggerEventId:n.clickEventId,relatedEventIds:o,detectionSource:"rule_engine",ruleVersion:t.config.ruleVersion,payloadAllowlist:t.config.payloadAllowlist,payload:{timeout_ms:r,selector:n.node.selector||""}})},resolvePendingDeadClicks:function(r,i,o,a){void 0===o&&(o=Date.now());var e,s=null!=(e=null==(e=r.config.click)?void 0:e.deadClickWindowMs)?e:3e3;r.pendingDeadClicks.forEach(function(e,t){var n=o-e.timestamp;n<0||s<n||"spa_navigation"!==i&&"page_unload"!==i&&a&&e.pageUrl&&a!==e.pageUrl||(clearTimeout(e.timeout),r.pendingDeadClicks["delete"](t))})},linkPendingDeadClickToClickEvent:function(e,n,r){var i=n.timestamp||Date.now(),o=this.getEventPageUrl(n);e.pendingDeadClicks.forEach(function(e){var t;e.clickEventId||(t=i-e.timestamp)<0||1e3<t||o&&e.pageUrl&&o!==e.pageUrl||(e.clickEventId=n.event_id,r&&"unknown"!==r&&(e.ownerKey=r))})},shouldResolveByReason:function(e,t){e=e.config.click||dR.click;return!1!==e.enabled&&("dom_mutation"===t?!1!==e.resolveOnDomMutation:"spa_navigation"===t?!1!==e.resolveOnSpaNavigation:"external_navigation"===t||"download"===t?!1!==e.resolveOnExternalNavigation:"window_open"===t?!1!==e.resolveOnWindowOpen:"page_unload"===t?!1!==e.resolveOnPageUnload:"form_change"===t||"form_submit"===t?!1!==e.resolveOnFormAction:"api_success"!==t||!1!==e.resolveOnApiSuccess)},shouldIgnoreDeadClick:function(t,e){return qu(e.ignoreDeadClickSelectors||[],e.effectiveActionSelectors||[]).some(function(e){try{return!!e&&!!t.closest(e)}catch(Le){return!1}})},getCurrentPageUrl:function(){return"undefined"==typeof window?"":window.location.href},getEventPageUrl:function(e){return(null==e?void 0:e.page_url)||(null==(e=null==e?void 0:e.data)?void 0:e.page_url)||""},onRageClick:function(e,t,n){var r=n.node.selector||n.node.tagName||"unknown",i=null!=(o=null==(o=t.config.click)?void 0:o.rageClickWindowMs)?o:1e3,o=t.recentClicks.filter(function(e){return n.timestamp-e.timestamp<=i}).map(function(e){return e.eventId}).filter(Boolean).slice(-10),r={type:"rage_click",ownerType:"element",ownerKey:r,pageUrl:window.location.href,triggerEventId:o[0],relatedEventIds:o.length?o:undefined,detectionSource:"rule_engine",ruleVersion:t.config.ruleVersion,payloadAllowlist:t.config.payloadAllowlist,payload:{clickCount:n.clickCount,timeWindowMs:n.timeWindowMs,selector:n.node.selector||""}};null!=(o=e.reportStruggle)&&o.call(e,r)},onSlowClick:function(e,t,n){},handleEventCreated:function(i,o,e){var t,a=this,s=Date.now(),n=o.config.click||dR.click,r=Math.max(null!=(t=n.errorClickWindowMs)?t:3e3,null!=(t=n.rageClickWindowMs)?t:1e3,null!=(t=n.deadClickWindowMs)?t:3e3);o.recentClicks=o.recentClicks.filter(function(e){return s-e.timestamp<=r}),e.forEach(function(e){var t,n,r;e&&e.event_type!==p.STRUGGLE&&(t=e.timestamp||s,n=a.getEventPageUrl(e),e.event_type===p.CLICK?(r=(null==(r=e.data)?void 0:r.target_element)||(null==(r=e.data)?void 0:r.target_id)||(null==(r=e.data)?void 0:r.target_class)||"unknown",o.recentClicks.push({eventId:e.event_id,timestamp:t,pageUrl:n,ownerKey:r}),a.linkPendingDeadClickToClickEvent(o,e,r)):(a.isEffectiveActionEvent(o,e)&&(a.resolvePendingDeadClicks(o,a.getEffectiveActionReason(e),t,n),null!=(r=o.clickDetector)&&r.markEffectiveAction(a.getEffectiveActionReason(e))),hR.has(e.event_type)?a.tryReportErrorClick(i,o,e):e.event_type===p.PAGE_LOAD||e.event_type===p["true"]?a.tryReportSlowPage(i,o,e):e.event_type===p.FORM_FOCUS?(a.trackFormFocus(o,e),a.trackFormChangeAndZigzag(i,o,e)):e.event_type===p.FORM_CHANGE?a.trackFormChangeAndZigzag(i,o,e):e.event_type===p.FORM_BLUR?a.tryReportLongFocusTime(i,o,e):e.event_type===p.FORM_SUBMIT?a.trackFormSubmitResult(o,e):e.event_type===p.FORM_SUBMIT_RESULT?(a.trackFormSubmitResult(o,e),a.tryReportFormValidationError(i,o,e)):e.event_type===p.PAGE_VIEW&&null!=(n=null==(t=e.data)?void 0:t.event_properties)&&n.navigation_type&&a.tryReportBackForward(i,o,e)),a.tryReportCustomStruggle(i,o,e))})},isEffectiveActionEvent:function(e,t){var n;return!1!==(null==(n=e.config.click)?void 0:n.enabled)&&(t.event_type===p.API_CALL?!1!==(null==(n=e.config.click)?void 0:n.resolveOnApiSuccess):t.event_type===p.PAGE_VIEW&&null!=(n=null==(n=t.data)?void 0:n.event_properties)&&n.navigation_type?!1!==(null==(n=e.config.click)?void 0:n.resolveOnSpaNavigation):pR.has(t.event_type)?!1!==(null==(n=e.config.click)?void 0:n.resolveOnFormAction):!0===(null==(e=t.data)?void 0:e.is_effective_action))},getEffectiveActionReason:function(e){return e.event_type===p.API_CALL?"api_success":e.event_type===p.PAGE_VIEW?"spa_navigation":e.event_type===p.FORM_CHANGE?"form_change":e.event_type===p.FORM_SUBMIT||e.event_type===p.FORM_SUBMIT_RESULT?"form_submit":"custom"},getFormStateKey:function(e,t){return e||t||"unknown_form"},ensureFormState:function(e,t,n){var r=this.getFormStateKey(t,n);return e.formStateMap.has(r)||e.formStateMap.set(r,{formId:t||r,pageUrl:n||"",touchedFieldIds:new Set,requiredFieldIds:new Set,changedFieldIds:new Set,focusPath:[],zigzagHits:0,hasSuccessSubmit:!1,reportedZigzag:!1,reportedUncompleted:!1}),e.formStateMap.get(r)},recordFormTouch:function(e,t){var n,e=this.ensureFormState(e,null==(e=null==t?void 0:t.data)?void 0:e.form_id,null==t?void 0:t.page_url),r=String((null==(r=null==t?void 0:t.data)?void 0:r.field_id)||"");return r&&(e.touchedFieldIds.add(r),!0===(null==(n=t.data)?void 0:n.is_required)&&e.requiredFieldIds.add(r),t.event_type===p.FORM_CHANGE)&&e.changedFieldIds.add(r),null!=t&&t.page_url&&(e.pageUrl=t.page_url),e},trackFormFocus:function(e,t){var n,r=t,i=String((null==(i=null==r?void 0:r.data)?void 0:i.field_id)||"");i&&((n=this.recordFormTouch(e,r)).focusPath.push(i),12<n.focusPath.length&&n.focusPath.shift(),e.focusStartMap.set(i,{timestamp:t.timestamp||Date.now(),eventId:t.event_id,formId:null==(n=null==r?void 0:r.data)?void 0:n.form_id,pageUrl:null==r?void 0:r.page_url}))},trackFormChangeAndZigzag:function(e,t,n){var r,i,o,a,s;n.event_type!==p.FORM_CHANGE?n.event_type!==p.FORM_FOCUS||(s=(i=this.recordFormTouch(t,r=n)).focusPath).length<4||i.reportedZigzag||(o=(s=s.slice(-4))[0],a=s[1],!o)||!a||o===a||o!==s[2]||a!==s[3]||i.changedFieldIds.size<2||(i.zigzagHits+=1,s=null!=(a=null==(o=t.config.form)?void 0:o.zigzagMinCount)?a:2,i.zigzagHits<s)||(i.reportedZigzag=!0,null==(o=e.reportStruggle))||o.call(e,{type:"form_zigzag",ownerType:"form",ownerKey:i.formId,pageUrl:i.pageUrl,formId:i.formId,fieldId:String((null==(a=null==r?void 0:r.data)?void 0:a.field_id)||""),triggerEventId:r.event_id,relatedEventIds:[r.event_id],detectionSource:"rule_engine",ruleVersion:t.config.ruleVersion,payloadAllowlist:t.config.payloadAllowlist,payload:{zigzag_hits:i.zigzagHits,changed_field_count:i.changedFieldIds.size}}):this.recordFormTouch(t,n)},trackFormSubmitResult:function(e,t){t.event_type!==p.FORM_SUBMIT&&t.event_type!==p.FORM_SUBMIT_RESULT||((e=this.recordFormTouch(e,t)).lastSubmitEventId=t.event_id,t.event_type!==p.FORM_SUBMIT_RESULT)||"success"===(null==(t=null==(t=t.data)?void 0:t.event_properties)?void 0:t.status)&&(e.hasSuccessSubmit=!0)},reportPendingUncompletedForms:function(t,n,r){var i=this;n.formStateMap.forEach(function(e){i.tryReportUncompletedForm(t,n,e,r)})},tryReportUncompletedForm:function(e,t,n,r){var i,o,a,s;n.reportedUncompleted||n.hasSuccessSubmit||0===n.touchedFieldIds.size||(a=0<(o=n.requiredFieldIds.size)?o:n.touchedFieldIds.size)<=0||(a=n.changedFieldIds.size/a)<(s=null!=(s=null==(s=t.config.form)?void 0:s.incompleteMinFieldRatio)?s:.3)||(n.reportedUncompleted=!0,null==(i=e.reportStruggle))||i.call(e,{type:"uncompleted_form",ownerType:"form",ownerKey:n.formId,pageUrl:n.pageUrl,formId:n.formId,triggerEventId:n.lastSubmitEventId,relatedEventIds:n.lastSubmitEventId?[n.lastSubmitEventId]:undefined,detectionSource:"rule_engine",ruleVersion:t.config.ruleVersion,payloadAllowlist:t.config.payloadAllowlist,payload:{touched_field_count:n.touchedFieldIds.size,changed_field_count:n.changedFieldIds.size,required_field_count:o,changed_ratio:Number(a.toFixed(4)),threshold_ratio:s}})},tryReportLongFocusTime:function(e,t,n){var r,i,o,a,s=String((null==(s=null==n?void 0:n.data)?void 0:s.field_id)||"");s&&(i=t.focusStartMap.get(s))&&(t.focusStartMap["delete"](s),o=null!=(o=null==(o=t.config.form)?void 0:o.longFocusThresholdMs)?o:2e4,(a=Math.max((n.timestamp||Date.now())-i.timestamp,0))<o||null==(r=e.reportStruggle)||r.call(e,{type:"long_focus_time",ownerType:"field",ownerKey:s,pageUrl:(null==n?void 0:n.page_url)||i.pageUrl,formId:(null==(e=null==n?void 0:n.data)?void 0:e.form_id)||i.formId,fieldId:s,triggerEventId:n.event_id,relatedEventIds:[i.eventId||"",n.event_id].filter(Boolean),detectionSource:"rule_engine",ruleVersion:t.config.ruleVersion,payloadAllowlist:t.config.payloadAllowlist,payload:{focus_duration_ms:a,threshold_ms:o}}))},tryReportErrorClick:function(e,t,n){var r,i,o;t.recentClicks.length&&(i=null!=(o=(t.config.click||dR.click).errorClickWindowMs)?o:3e3,o=qu(t.recentClicks).reverse().find(function(e){return 0<=n.timestamp-e.timestamp&&n.timestamp-e.timestamp<=i}))&&null!=(r=e.reportStruggle)&&r.call(e,{type:"error_click",ownerType:"element",ownerKey:o.ownerKey,pageUrl:o.pageUrl||n.page_url,triggerEventId:o.eventId,relatedEventIds:[n.event_id],detectionSource:"rule_engine",ruleVersion:t.config.ruleVersion,payloadAllowlist:t.config.payloadAllowlist,payload:{errorEventType:n.event_type}})},tryReportSlowPage:function(e,t,n){var r,i,o,a=t.config.performance||dR.performance;a.enabled&&(i=(null==(i=n.data)?void 0:i.measurements)||{},r=Number(i.lcp||0),i=Number(i.inp||0),o=null!=(o=a.slowPageLcpThreshold)?o:4e3,a=null!=(a=a.slowPageInpThreshold)?a:500,o<=r||a<=i)&&null!=(o=e.reportStruggle)&&o.call(e,{type:"slow_page",ownerType:"page",ownerKey:n.page_url||("undefined"!=typeof window?window.location.href:""),pageUrl:n.page_url,triggerEventId:n.event_id,detectionSource:"rule_engine",ruleVersion:t.config.ruleVersion,payloadAllowlist:t.config.payloadAllowlist,payload:{lcp:r,inp:i,sourceEventType:n.event_type}})},tryReportFormValidationError:function(e,t,n){var r,i,o,a,s=(null==(s=null==n?void 0:n.data)?void 0:s.event_properties)||{},u=(null==n?void 0:n.data)||{};"fail"===String((null==s?void 0:s.status)||(null===(i=u)?void 0:i.status)||"")&&(i=String((null==s?void 0:s.field_id)||(null===(i=u)?void 0:i.field_id)||""),o=String((null==s?void 0:s.form_id)||(null===(o=u)?void 0:o.form_id)||""),a=i||o||(null==n?void 0:n.page_url)||"unknown",null!=(r=e.reportStruggle))&&r.call(e,{type:"form_validation_error",ownerType:i?"field":"form",ownerKey:a,pageUrl:null==n?void 0:n.page_url,formId:o,fieldId:i,triggerEventId:n.event_id,relatedEventIds:[n.event_id],detectionSource:"rule_engine",ruleVersion:t.config.ruleVersion,payloadAllowlist:t.config.payloadAllowlist,payload:{validation_code:(null==s?void 0:s.validation_code)||(null===(e=u)?void 0:e.validation_code),validation_message:null==(a=null==n?void 0:n.data)?void 0:a.validation_message,sourceEventType:n.event_type}})},tryReportBackForward:function(e,t,n){var r,i,o=t.config.navigation||dR.navigation;o.enabled&&o.backForwardAsStruggle&&(n=null==(n=null==(o=n)?void 0:o.data)?void 0:n.event_properties,"back"!==(i=String((null==n?void 0:n.navigation_type)||""))&&"forward"!==i||null==(r=e.reportStruggle)||r.call(e,{type:"back_forward",ownerType:"page",ownerKey:String((null==n?void 0:n.to_page)||"")||(null==o?void 0:o.page_url)||"unknown",pageUrl:null==o?void 0:o.page_url,triggerEventId:o.event_id,relatedEventIds:[o.event_id],detectionSource:"rule_engine",ruleVersion:t.config.ruleVersion,payloadAllowlist:t.config.payloadAllowlist,payload:{navigation_type:i,from_page:null==n?void 0:n.from_page,to_page:null==n?void 0:n.to_page}}))},tryReportCustomStruggle:function(n,r,i){var e=r.config.custom||dR.custom;e.enabled&&"function"==typeof e.detector&&(e=e.detector({event:i,tdem:n}),(Array.isArray(e)?e:e?[e]:[]).forEach(function(e){var t,e=h(h({},e),{type:(null==e?void 0:e.type)||"custom_struggle",ownerType:(null==e?void 0:e.ownerType)||"app",ownerKey:(null==e?void 0:e.ownerKey)||i.page_url||"custom",ruleVersion:(null==e?void 0:e.ruleVersion)||r.config.ruleVersion,payloadAllowlist:(null==e?void 0:e.payloadAllowlist)||r.config.payloadAllowlist,detectionSource:(null==e?void 0:e.detectionSource)||"custom"});null!=(t=n.reportStruggle)&&t.call(n,e)}))},cleanupInstance:function(e){var t=this.instanceStates.get(e);t&&(t.onEventCreated&&e.lifeCycle.remove("tdemEventCreated",t.onEventCreated),t.onDestroy&&e.lifeCycle.remove("destroy",t.onDestroy),t.clickDetector&&t.clickDetector.stop(),t.pendingDeadClicks.forEach(function(e){clearTimeout(e.timeout)}),t.pendingDeadClicks.clear(),this.reportPendingUncompletedForms(e,t,"destroy"),t.focusStartMap.clear(),t.formStateMap.clear(),t.removeDomListeners.forEach(function(e){return e()}),t.removeDomListeners=[],this.instanceStates["delete"](e),0===this.instanceStates.size)&&this.restoreWindowOpenHook()},destroy:function(){var n=this;this.instanceStates.forEach(function(e,t){n.cleanupInstance(t)}),this.instanceStates.clear(),this.restoreWindowOpenHook()}}));function mR(e,t,n){try{var r={projectKey:e,sampleRate:t,replaySampleRate:n.replay_sample_rate!==undefined?Number(n.replay_sample_rate):1,errorTraceback:n.error_traceback,errorSampleRate:n.error_sample_rate,remoteEnabled:n.enabled,timestamp:Date.now()};localStorage.setItem("TDEM_SAMPLE_CONFIG",JSON.stringify(r))}catch(Uy){}}function gR(e){return e._tdemSampleGate||null}function vR(e,t,n){e=gR(e);e?!n||t<=0?e.decide(!1):100<=t?e.decide(!0):(n=100*Math.random(),e.decide(n<t)):console.warn("[TDEM] Sample gate not found")}function yR(e,t){var t=lR(e.config.sessionReplay,t),e=(e._effectiveReplayPolicy=t,e._replaySampled=t.enabled,null==(n=null==(e=e.constructor.installedPlugins)?void 0:e.find)?void 0:n.call(e,function(e){return e&&"sessionReplay"===e.name})),n=null==(n=null==e?void 0:e.option)?void 0:n.applyEffectivePolicy;"function"==typeof n&&n.call(e.option,t)}function wR(e){var t={};return e&&"object"===S(e)&&(Object.prototype.hasOwnProperty.call(e,"enabled")&&(t.enabled=!!e.enabled),Object.prototype.hasOwnProperty.call(e,"replay_sample_rate")&&(t.replay_sample_rate=Number(e.replay_sample_rate)),Object.prototype.hasOwnProperty.call(e,"error_traceback")&&(t.error_traceback=!!e.error_traceback),Object.prototype.hasOwnProperty.call(e,"error_sample_rate"))&&(t.error_sample_rate=Number(e.error_sample_rate)),t}function bR(e,t,n){var r,i=gR(e);i&&((t=t?function(e){try{var t,n=localStorage.getItem("TDEM_SAMPLE_CONFIG");return n?(t=JSON.parse(n)).projectKey===e&&Date.now()-t.timestamp<6048e5?t:null:null}catch(Uy){return null}}(t):null)?(console.info("[TDEM] Using cached config, sampleRate:",t.sampleRate),n._cachedSampleRate=t.sampleRate,r={},t.remoteEnabled!==undefined&&(r.enabled=t.remoteEnabled),t.replaySampleRate!==undefined&&(r.replay_sample_rate=t.replaySampleRate),t.errorTraceback!==undefined&&(r.error_traceback=t.errorTraceback),t.errorSampleRate!==undefined&&(r.error_sample_rate=t.errorSampleRate),n._cachedRemote=r,n=t.remoteEnabled!==undefined?!!t.remoteEnabled:0<t.sampleRate,vR(e,t.sampleRate,n),yR(e,r)):(console.warn("[TDEM] No cached config, default to not report"),i.decide(!1),yR(e,null)))}In=new r({name:"tdemConfig",_cachedSampleRate:null,_cachedRemote:null,onNewTdem:function(e){var t=this,n=e._prefetchedConfigData;yR(e,n?wR(n):null),function(u,l){Wu(this,void 0,void 0,function(){var n,r,i,o,a,s;return Hu(this,function(e){switch(e.label){case 0:if(!(n=u.config.id))return bR(u,n,l),[2];if(r=u._prefetchedConfigData)return delete u._prefetchedConfigData,i=r.tdem_sample_rate,o=r.enabled,a=wR(r),mR(n,i,a),l._cachedSampleRate=i,l._cachedRemote=a,vR(u,i,o),yR(u,a),[2];if(t=(u.config.url||"").replace(/\/+$/,""),!(r=t?t+"/api/v1/config":""))return bR(u,n,l),[2];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,u.transportRequest({kind:"config",url:r,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({project_key:n})})];case 2:if(!(s=e.sent()).ok)throw new Error("HTTP "+s.status);if(0===(s="string"==typeof s.body?JSON.parse(s.body):s.body).code&&s.data)return i=s.data.tdem_sample_rate,o=s.data.enabled,a=wR(s.data),mR(n,i,a),l._cachedSampleRate=i,l._cachedRemote=a,vR(u,i,o),yR(u,a),[3,4];throw new Error("API error: code="+s.code);case 3:return s=e.sent(),console.warn("[TDEM] Failed to fetch remote config:",s),bR(u,n,l),[3,4];case 4:return[2]}var t})})}(e,this),e.lifeCycle.on("sessionRefreshed",function(){t.onSessionRefreshed(e)})},onSessionRefreshed:function(e){var t,n=gR(e);n&&n.isDecided&&null!==(t=this._cachedSampleRate)&&t!==undefined&&(t=n.reDecide(t),n=e._effectiveReplayPolicy,e._replaySampled=t&&(!n||n.enabled),console.info("[TDEM] Session refreshed, session="+t+", replayPolicyEnabled="+(null==n?void 0:n.enabled)))}});return Qm.use(of),Qm.use(yf),Qm.use(mt),Qm.use(t),Qm.use(rn),Qm.use(_t),Qm.use(n),Qm.use(yt),Qm.use(af),Qm.use(xf),Qm.use(mf),Qm.use(gf),Qm.use(In),Qm.use(Te),Qm.use(lt),Qm});