@amplitude/rrweb-player 2.0.0-alpha.33 → 2.0.0-alpha.35
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.
- package/dist/rrweb-player.cjs +11887 -8631
- package/dist/rrweb-player.cjs.map +1 -1
- package/dist/rrweb-player.d.cts +2 -64
- package/dist/rrweb-player.d.ts +2 -64
- package/dist/rrweb-player.js +11887 -8631
- package/dist/rrweb-player.js.map +1 -1
- package/dist/rrweb-player.umd.cjs +11878 -8664
- package/dist/rrweb-player.umd.cjs.map +4 -4
- package/dist/rrweb-player.umd.min.cjs +133 -53
- package/dist/rrweb-player.umd.min.cjs.map +4 -4
- package/dist/style.css +183 -5
- package/dist/style.min.css +1 -1
- package/dist/style.min.css.map +2 -2
- package/package.json +10 -15
|
@@ -11,60 +11,137 @@
|
|
|
11
11
|
}(this, () => {
|
|
12
12
|
var exports = {};
|
|
13
13
|
var module = { exports };
|
|
14
|
-
"use strict";var Wl=Object.defineProperty,Gl=Object.defineProperties;var Yl=Object.getOwnPropertyDescriptors;var Ot=Object.getOwnPropertySymbols;var ds=Object.prototype.hasOwnProperty,ms=Object.prototype.propertyIsEnumerable;var ps=(r,e,t)=>e in r?Wl(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,U=(r,e)=>{for(var t in e||(e={}))ds.call(e,t)&&ps(r,t,e[t]);if(Ot)for(var t of Ot(e))ms.call(e,t)&&ps(r,t,e[t]);return r},le=(r,e)=>Gl(r,Yl(e));var nt=(r,e)=>{var t={};for(var i in r)ds.call(r,i)&&e.indexOf(i)<0&&(t[i]=r[i]);if(r!=null&&Ot)for(var i of Ot(r))e.indexOf(i)<0&&ms.call(r,i)&&(t[i]=r[i]);return t};var jl=Object.defineProperty,Zl=(r,e,t)=>e in r?jl(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,gs=(r,e,t)=>Zl(r,typeof e!="symbol"?e+"":e,t);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function gt(){}function ys(r,e){for(const t in e)r[t]=e[t];return r}function Ln(r){return r()}function ws(){return Object.create(null)}function rt(r){r.forEach(Ln)}function Fn(r){return typeof r=="function"}function Fr(r,e){return r!=r?e==e:r!==e||r&&typeof r=="object"||typeof r=="function"}function Hl(r){return Object.keys(r).length===0}function vs(r){const e={};for(const t in r)t[0]!=="$"&&(e[t]=r[t]);return e}function T(r,e){r.appendChild(e)}function Me(r,e,t){r.insertBefore(e,t||null)}function Ee(r){r.parentNode&&r.parentNode.removeChild(r)}function Pi(r,e){for(let t=0;t<r.length;t+=1)r[t]&&r[t].d(e)}function re(r){return document.createElement(r)}function li(r){return document.createElementNS("http://www.w3.org/2000/svg",r)}function Le(r){return document.createTextNode(r)}function ce(){return Le(" ")}function Xl(){return Le("")}function je(r,e,t,i){return r.addEventListener(e,t,i),()=>r.removeEventListener(e,t,i)}function M(r,e,t){t==null?r.removeAttribute(e):r.getAttribute(e)!==t&&r.setAttribute(e,t)}function Jl(r){return Array.from(r.childNodes)}function ai(r,e){e=""+e,r.data!==e&&(r.data=e)}function ee(r,e,t,i){t==null?r.style.removeProperty(e):r.style.setProperty(e,t,"")}function Xe(r,e,t){r.classList.toggle(e,!!t)}function Kl(r,e,{bubbles:t=!1,cancelable:i=!1}={}){return new CustomEvent(r,{detail:e,bubbles:t,cancelable:i})}let yt;function pt(r){yt=r}function Ci(){if(!yt)throw new Error("Function called outside component initialization");return yt}function Bn(r){Ci().$$.on_mount.push(r)}function Ql(r){Ci().$$.after_update.push(r)}function Un(r){Ci().$$.on_destroy.push(r)}function ql(){const r=Ci();return(e,t,{cancelable:i=!1}={})=>{const s=r.$$.callbacks[e];if(s){const o=Kl(e,t,{cancelable:i});return s.slice().forEach(n=>{n.call(r,o)}),!o.defaultPrevented}return!0}}const Ve=[],$e=[];let He=[];const Qi=[],ea=Promise.resolve();let qi=!1;function ta(){qi||(qi=!0,ea.then(zn))}function er(r){He.push(r)}function ia(r){Qi.push(r)}const $i=new Set;let Ue=0;function zn(){if(Ue!==0)return;const r=yt;do{try{for(;Ue<Ve.length;){const e=Ve[Ue];Ue++,pt(e),ra(e.$$)}}catch(e){throw Ve.length=0,Ue=0,e}for(pt(null),Ve.length=0,Ue=0;$e.length;)$e.pop()();for(let e=0;e<He.length;e+=1){const t=He[e];$i.has(t)||($i.add(t),t())}He.length=0}while(Ve.length);for(;Qi.length;)Qi.pop()();qi=!1,$i.clear(),pt(r)}function ra(r){if(r.fragment!==null){r.update(),rt(r.before_update);const e=r.dirty;r.dirty=[-1],r.fragment&&r.fragment.p(r.ctx,e),r.after_update.forEach(er)}}function sa(r){const e=[],t=[];He.forEach(i=>r.indexOf(i)===-1?e.push(i):t.push(i)),t.forEach(i=>i()),He=e}const ii=new Set;let Pe;function Vn(){Pe={r:0,c:[],p:Pe}}function Wn(){Pe.r||rt(Pe.c),Pe=Pe.p}function Ae(r,e){r&&r.i&&(ii.delete(r),r.i(e))}function Je(r,e,t,i){if(r&&r.o){if(ii.has(r))return;ii.add(r),Pe.c.push(()=>{ii.delete(r),i&&(t&&r.d(1),i())}),r.o(e)}else i&&i()}function ze(r){return(r==null?void 0:r.length)!==void 0?r:Array.from(r)}function na(r,e,t){const i=r.$$.props[e];i!==void 0&&(r.$$.bound[i]=t,t(r.$$.ctx[i]))}function Gn(r){r&&r.c()}function Br(r,e,t){const{fragment:i,after_update:s}=r.$$;i&&i.m(e,t),er(()=>{const o=r.$$.on_mount.map(Ln).filter(Fn);r.$$.on_destroy?r.$$.on_destroy.push(...o):rt(o),r.$$.on_mount=[]}),s.forEach(er)}function Ur(r,e){const t=r.$$;t.fragment!==null&&(sa(t.after_update),rt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function oa(r,e){r.$$.dirty[0]===-1&&(Ve.push(r),ta(),r.$$.dirty.fill(0)),r.$$.dirty[e/31|0]|=1<<e%31}function zr(r,e,t,i,s,o,n=null,l=[-1]){const a=yt;pt(r);const u=r.$$={fragment:null,ctx:[],props:o,update:gt,not_equal:s,bound:ws(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:ws(),dirty:l,skip_bound:!1,root:e.target||a.$$.root};n&&n(u.root);let c=!1;if(u.ctx=t?t(r,e.props||{},(h,f,...g)=>{const d=g.length?g[0]:f;return u.ctx&&s(u.ctx[h],u.ctx[h]=d)&&(!u.skip_bound&&u.bound[h]&&u.bound[h](d),c&&oa(r,h)),f}):[],u.update(),c=!0,rt(u.before_update),u.fragment=i?i(u.ctx):!1,e.target){if(e.hydrate){const h=Jl(e.target);u.fragment&&u.fragment.l(h),h.forEach(Ee)}else u.fragment&&u.fragment.c();e.intro&&Ae(r.$$.fragment),Br(r,e.target,e.anchor),zn()}pt(a)}class Vr{constructor(){gs(this,"$$"),gs(this,"$$set")}$destroy(){Ur(this,1),this.$destroy=gt}$on(e,t){if(!Fn(t))return gt;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(t),()=>{const s=i.indexOf(t);s!==-1&&i.splice(s,1)}}$set(e){this.$$set&&!Hl(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const la="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(la);var aa=Object.defineProperty,ua=(r,e,t)=>e in r?aa(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,N=(r,e,t)=>ua(r,typeof e!="symbol"?e+"":e,t),bs,ca=Object.defineProperty,ha=(r,e,t)=>e in r?ca(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Cs=(r,e,t)=>ha(r,typeof e!="symbol"?e+"":e,t),Q=(r=>(r[r.Document=0]="Document",r[r.DocumentType=1]="DocumentType",r[r.Element=2]="Element",r[r.Text=3]="Text",r[r.CDATA=4]="CDATA",r[r.Comment=5]="Comment",r))(Q||{});function fa(r){return r.nodeType===r.ELEMENT_NODE}class Yn{constructor(){Cs(this,"idNodeMap",new Map),Cs(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;const i=(t=this.getMeta(e))==null?void 0:t.id;return i!=null?i:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(i=>this.removeNodeFromMap(i))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const i=t.id;this.idNodeMap.set(i,e),this.nodeMetaMap.set(e,t)}replace(e,t){const i=this.getNode(e);if(i){const s=this.nodeMetaMap.get(i);s&&this.nodeMetaMap.set(t,s)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function jn(){return new Yn}function pa(r){return r.toLowerCase()}function da(r,e){return!r||!e||r.type!==e.type?!1:r.type===Q.Document?r.compatMode===e.compatMode:r.type===Q.DocumentType?r.name===e.name&&r.publicId===e.publicId&&r.systemId===e.systemId:r.type===Q.Comment||r.type===Q.Text||r.type===Q.CDATA?r.textContent===e.textContent:r.type===Q.Element?r.tagName===e.tagName&&JSON.stringify(r.attributes)===JSON.stringify(e.attributes)&&r.isSVG===e.isSVG&&r.needBlock===e.needBlock:!1}const ma=/(max|min)-device-(width|height)/,Ss=new RegExp(ma.source,"g"),ga={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(r){r.params.match(Ss)&&(r.params=r.params.replace(Ss,"$1-$2"))}}}},ya={postcssPlugin:"postcss-hover-classes",prepare:function(){const r=[];return{Rule:function(e){r.indexOf(e)===-1&&(r.push(e),e.selectors.forEach(function(t){t.includes(":hover")&&(e.selector+=`,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
"use strict";var _c=Object.defineProperty,Sc=Object.defineProperties;var Ec=Object.getOwnPropertyDescriptors;var fi=Object.getOwnPropertySymbols;var To=Object.prototype.hasOwnProperty,Po=Object.prototype.propertyIsEnumerable;var Do=(e,t,r)=>t in e?_c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Q=(e,t)=>{for(var r in t||(t={}))To.call(t,r)&&Do(e,r,t[r]);if(fi)for(var r of fi(t))Po.call(t,r)&&Do(e,r,t[r]);return e},Se=(e,t)=>Sc(e,Ec(t));var Br=(e,t)=>{var r={};for(var i in e)To.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&fi)for(var i of fi(e))t.indexOf(i)<0&&Po.call(e,i)&&(r[i]=e[i]);return r};var Cc=Object.defineProperty,Ol=e=>{throw TypeError(e)},xc=(e,t,r)=>t in e?Cc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ct=(e,t,r)=>xc(e,typeof t!="symbol"?t+"":t,r),Gn=(e,t,r)=>t.has(e)||Ol("Cannot "+r),R=(e,t,r)=>(Gn(e,t,"read from private field"),r?r.call(e):t.get(e)),q=(e,t,r)=>t.has(e)?Ol("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),L=(e,t,r,i)=>(Gn(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r),de=(e,t,r)=>(Gn(e,t,"access private method"),r),ko,Zr,zr,Lt,Ft,$r,ei,Yr,Ge,Hn,ti,Sn,Al,Dl,st,He,Ei,Et,Cr,xt,nt,We,bt,zt,Qt,Yt,$t,pr,Jt,En,Pe,Tl,Pl,Yn,Oi,Ai,Cn,pt,_t,$e,mr,Ci,xi,xn,kt,tt;Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const Rc="5";var Ml,Nl;typeof window!="undefined"&&((Nl=(ko=(Ml=window.__svelte)!=null?Ml:window.__svelte={}).v)!=null?Nl:ko.v=new Set).add(Rc);let Dr=!1,Mc=!1;function Nc(){Dr=!0}Nc();const Oc=1,Ac=2,Dc=16,Tc=1,Pc=2,kl=4,kc=8,Ic=16,Lc=2,Il="[",Bi="[!",Jn="]",xr={},Ne=Symbol(),Fc="http://www.w3.org/1999/xhtml",Rn=!1;var Xn=Array.isArray,Uc=Array.prototype.indexOf,Wi=Array.from,Ll=Object.defineProperty,Kt=Object.getOwnPropertyDescriptor,Fl=Object.getOwnPropertyDescriptors,Bc=Object.prototype,Wc=Array.prototype,Qn=Object.getPrototypeOf,Io=Object.isExtensible;function qc(e){return e()}function Mn(e){for(var t=0;t<e.length;t++)e[t]()}function Ul(){var e,t,r=new Promise((i,s)=>{e=i,t=s});return{promise:r,resolve:e,reject:t}}const Ce=2,Kn=4,qi=8,zc=1<<24,Nt=16,Ot=32,lr=64,zi=128,lt=512,Ee=1024,Ie=2048,ct=4096,qe=8192,Mt=16384,$i=32768,Rr=65536,Lo=1<<17,Bl=1<<18,Tr=1<<19,Wl=1<<20,Bt=1<<25,ir=32768,Nn=1<<21,Zn=1<<22,Vt=1<<23,Zt=Symbol("$state"),ql=Symbol("legacy props"),$c=Symbol(""),wr=new class extends Error{constructor(){super(...arguments),Ct(this,"name","StaleReactionError"),Ct(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},eo=3,Pr=8;function Vi(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Vc(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function jc(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Gc(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Hc(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Yc(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Jc(){throw new Error("https://svelte.dev/e/hydration_failed")}function Xc(e){throw new Error("https://svelte.dev/e/lifecycle_legacy_only")}function Qc(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Kc(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Zc(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function ef(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function tf(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function ji(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function rf(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let Y=!1;function Rt(e){Y=e}let $;function ze(e){if(e===null)throw ji(),xr;return $=e}function Gi(){return ze(yt($))}function rt(e){if(Y){if(yt($)!==null)throw ji(),xr;$=e}}function sf(e=1){if(Y){for(var t=e,r=$;t--;)r=yt(r);$=r}}function Di(e=!0){for(var t=0,r=$;;){if(r.nodeType===Pr){var i=r.data;if(i===Jn){if(t===0)return r;t-=1}else(i===Il||i===Bi)&&(t+=1)}var s=yt(r);e&&r.remove(),r=s}}function zl(e){if(!e||e.nodeType!==Pr)throw ji(),xr;return e.data}function $l(e){return e===this.v}function nf(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Vl(e){return!nf(e,this.v)}let te=null;function Mr(e){te=e}function to(e,t=!1,r){te={p:te,i:!1,c:null,e:null,s:e,x:null,l:Dr&&!t?{s:null,u:null,$:[]}:null}}function ro(e){var t=te,r=t.e;if(r!==null){t.e=null;for(var i of r)au(i)}return e!==void 0&&(t.x=e),t.i=!0,te=t.p,e!=null?e:{}}function si(){return!Dr||te!==null&&te.l===null}let Xt=[];function jl(){var e=Xt;Xt=[],Mn(e)}function kr(e){if(Xt.length===0&&!Jr){var t=Xt;queueMicrotask(()=>{t===Xt&&jl()})}Xt.push(e)}function of(){for(;Xt.length>0;)jl()}function Gl(e){var t=V;if(t===null)return z.f|=Vt,e;if((t.f&$i)===0){if((t.f&zi)===0)throw e;t.b.error(e)}else Nr(e,t)}function Nr(e,t){for(;t!==null;){if((t.f&zi)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const Ri=new Set;let ee=null,Ae=null,Ye=[],Hi=null,On=!1,Jr=!1;const af=class An{constructor(){q(this,Ge),Ct(this,"committed",!1),Ct(this,"current",new Map),Ct(this,"previous",new Map),q(this,Zr,new Set),q(this,zr,new Set),q(this,Lt,0),q(this,Ft,0),q(this,$r,null),q(this,ei,new Set),q(this,Yr,new Set),Ct(this,"skipped_effects",new Set),Ct(this,"is_fork",!1)}is_deferred(){return this.is_fork||R(this,Ft)>0}process(t){var r;Ye=[],this.apply();var i={parent:null,effect:null,effects:[],render_effects:[]};for(const s of t)de(this,Ge,Hn).call(this,s,i);this.is_fork||de(this,Ge,Al).call(this),this.is_deferred()?(de(this,Ge,ti).call(this,i.effects),de(this,Ge,ti).call(this,i.render_effects)):(ee=null,Fo(i.render_effects),Fo(i.effects),(r=R(this,$r))==null||r.resolve()),Ae=null}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&Vt)===0&&(this.current.set(t,t.v),Ae==null||Ae.set(t,t.v))}activate(){ee=this,this.apply()}deactivate(){ee===this&&(ee=null,Ae=null)}flush(){if(this.activate(),Ye.length>0){if(Hl(),ee!==null&&ee!==this)return}else R(this,Lt)===0&&this.process([]);this.deactivate()}discard(){for(const t of R(this,zr))t(this);R(this,zr).clear()}increment(t){L(this,Lt,R(this,Lt)+1),t&&L(this,Ft,R(this,Ft)+1)}decrement(t){L(this,Lt,R(this,Lt)-1),t&&L(this,Ft,R(this,Ft)-1),this.revive()}revive(){for(const t of R(this,ei))R(this,Yr).delete(t),xe(t,Ie),nr(t);for(const t of R(this,Yr))xe(t,ct),nr(t);this.flush()}oncommit(t){R(this,Zr).add(t)}ondiscard(t){R(this,zr).add(t)}settled(){var t;return((t=R(this,$r))!=null?t:L(this,$r,Ul())).promise}static ensure(){if(ee===null){const t=ee=new An;Ri.add(ee),Jr||An.enqueue(()=>{ee===t&&t.flush()})}return ee}static enqueue(t){kr(t)}apply(){}};Zr=new WeakMap;zr=new WeakMap;Lt=new WeakMap;Ft=new WeakMap;$r=new WeakMap;ei=new WeakMap;Yr=new WeakMap;Ge=new WeakSet;Hn=function(e,t){var r;e.f^=Ee;for(var i=e.first;i!==null;){var s=i.f,n=(s&(Ot|lr))!==0,o=n&&(s&Ee)!==0,u=o||(s&qe)!==0||this.skipped_effects.has(i);if((i.f&zi)!==0&&((r=i.b)!=null&&r.is_pending())&&(t={parent:t,effect:i,effects:[],render_effects:[]}),!u&&i.fn!==null){n?i.f^=Ee:(s&Kn)!==0?t.effects.push(i):Ir(i)&&((i.f&Nt)!==0&&R(this,ei).add(i),Ar(i));var a=i.first;if(a!==null){i=a;continue}}var c=i.parent;for(i=i.next;i===null&&c!==null;)c===t.effect&&(de(this,Ge,ti).call(this,t.effects),de(this,Ge,ti).call(this,t.render_effects),t=t.parent),i=c.next,c=c.parent}};ti=function(e){for(const t of e)(t.f&Ie)!==0?R(this,ei).add(t):(t.f&ct)!==0&&R(this,Yr).add(t),de(this,Ge,Sn).call(this,t.deps),xe(t,Ee)};Sn=function(e){if(e!==null)for(const t of e)(t.f&Ce)===0||(t.f&ir)===0||(t.f^=ir,de(this,Ge,Sn).call(this,t.deps))};Al=function(){if(R(this,Ft)===0){for(const e of R(this,Zr))e();R(this,Zr).clear()}R(this,Lt)===0&&de(this,Ge,Dl).call(this)};Dl=function(){var e;if(Ri.size>1){this.previous.clear();var t=Ae,r=!0,i={parent:null,effect:null,effects:[],render_effects:[]};for(const n of Ri){if(n===this){r=!1;continue}const o=[];for(const[a,c]of this.current){if(n.current.has(a))if(r&&c!==n.current.get(a))n.current.set(a,c);else continue;o.push(a)}if(o.length===0)continue;const u=[...n.current.keys()].filter(a=>!this.current.has(a));if(u.length>0){var s=Ye;Ye=[];const a=new Set,c=new Map;for(const l of o)Yl(l,u,a,c);if(Ye.length>0){ee=n,n.apply();for(const l of Ye)de(e=n,Ge,Hn).call(e,l,i);n.deactivate()}Ye=s}}ee=null,Ae=t}this.committed=!0,Ri.delete(this)};let sr=af;function lf(e){var t=Jr;Jr=!0;try{for(var r;;){if(of(),Ye.length===0&&(ee==null||ee.flush(),Ye.length===0))return Hi=null,r;Hl()}}finally{Jr=t}}function Hl(){var e=er;On=!0;var t=null;try{var r=0;for(Pi(!0);Ye.length>0;){var i=sr.ensure();if(r++>1e3){var s,n;uf()}i.process(Ye),jt.clear()}}finally{On=!1,Pi(e),Hi=null}}function uf(){try{Yc()}catch(e){Nr(e,Hi)}}let mt=null;function Fo(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var i=e[r++];if((i.f&(Mt|qe))===0&&Ir(i)&&(mt=new Set,Ar(i),i.deps===null&&i.first===null&&i.nodes===null&&(i.teardown===null&&i.ac===null?fu(i):i.fn=null),(mt==null?void 0:mt.size)>0)){jt.clear();for(const s of mt){if((s.f&(Mt|qe))!==0)continue;const n=[s];let o=s.parent;for(;o!==null;)mt.has(o)&&(mt.delete(o),n.push(o)),o=o.parent;for(let u=n.length-1;u>=0;u--){const a=n[u];(a.f&(Mt|qe))===0&&Ar(a)}}mt.clear()}}mt=null}}function Yl(e,t,r,i){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const s of e.reactions){const n=s.f;(n&Ce)!==0?Yl(s,t,r,i):(n&(Zn|Nt))!==0&&(n&Ie)===0&&Jl(s,t,i)&&(xe(s,Ie),nr(s))}}function Jl(e,t,r){const i=r.get(e);if(i!==void 0)return i;if(e.deps!==null)for(const s of e.deps){if(t.includes(s))return!0;if((s.f&Ce)!==0&&Jl(s,t,r))return r.set(s,!0),!0}return r.set(e,!1),!1}function nr(e){for(var t=Hi=e;t.parent!==null;){t=t.parent;var r=t.f;if(On&&t===V&&(r&Nt)!==0&&(r&Bl)===0)return;if((r&(lr|Ot))!==0){if((r&Ee)===0)return;t.f^=Ee}}Ye.push(t)}function cf(e){let t=0,r=Gt(0),i;return()=>{ri()&&(M(r),ni(()=>(t===0&&(i=be(()=>e(()=>Xr(r)))),t+=1,()=>{kr(()=>{t-=1,t===0&&(i==null||i(),i=void 0,Xr(r))})})))}}var ff=Rr|Tr|zi;function hf(e,t,r){new df(e,t,r)}class df{constructor(t,r,i){q(this,Pe),Ct(this,"parent"),q(this,st,!1),q(this,He),q(this,Ei,Y?$:null),q(this,Et),q(this,Cr),q(this,xt),q(this,nt,null),q(this,We,null),q(this,bt,null),q(this,zt,null),q(this,Qt,null),q(this,Yt,0),q(this,$t,0),q(this,pr,!1),q(this,Jt,null),q(this,En,cf(()=>(L(this,Jt,Gt(R(this,Yt))),()=>{L(this,Jt,null)}))),L(this,He,t),L(this,Et,r),L(this,Cr,i),this.parent=V.b,L(this,st,!!R(this,Et).pending),L(this,xt,no(()=>{if(V.b=this,Y){const n=R(this,Ei);Gi(),n.nodeType===Pr&&n.data===Bi?de(this,Pe,Pl).call(this):de(this,Pe,Tl).call(this)}else{var s=de(this,Pe,Yn).call(this);try{L(this,nt,Xe(()=>i(s)))}catch(n){this.error(n)}R(this,$t)>0?de(this,Pe,Ai).call(this):L(this,st,!1)}return()=>{var n;(n=R(this,Qt))==null||n.remove()}},ff)),Y&&L(this,He,$)}is_pending(){return R(this,st)||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!R(this,Et).pending}update_pending_count(t){de(this,Pe,Cn).call(this,t),L(this,Yt,R(this,Yt)+t),R(this,Jt)&&Or(R(this,Jt),R(this,Yt))}get_effect_pending(){return R(this,En).call(this),M(R(this,Jt))}error(t){var r=R(this,Et).onerror;let i=R(this,Et).failed;if(R(this,pr)||!r&&!i)throw t;R(this,nt)&&(ke(R(this,nt)),L(this,nt,null)),R(this,We)&&(ke(R(this,We)),L(this,We,null)),R(this,bt)&&(ke(R(this,bt)),L(this,bt,null)),Y&&(ze(R(this,Ei)),sf(),ze(Di()));var s=!1,n=!1;const o=()=>{if(s){rf();return}s=!0,n&&tf(),sr.ensure(),L(this,Yt,0),R(this,bt)!==null&&ur(R(this,bt),()=>{L(this,bt,null)}),L(this,st,this.has_pending_snippet()),L(this,nt,de(this,Pe,Oi).call(this,()=>(L(this,pr,!1),Xe(()=>R(this,Cr).call(this,R(this,He)))))),R(this,$t)>0?de(this,Pe,Ai).call(this):L(this,st,!1)};var u=z;try{Le(null),n=!0,r==null||r(t,o),n=!1}catch(a){Nr(a,R(this,xt)&&R(this,xt).parent)}finally{Le(u)}i&&kr(()=>{L(this,bt,de(this,Pe,Oi).call(this,()=>{sr.ensure(),L(this,pr,!0);try{return Xe(()=>{i(R(this,He),()=>t,()=>o)})}catch(a){return Nr(a,R(this,xt).parent),null}finally{L(this,pr,!1)}}))})}}st=new WeakMap;He=new WeakMap;Ei=new WeakMap;Et=new WeakMap;Cr=new WeakMap;xt=new WeakMap;nt=new WeakMap;We=new WeakMap;bt=new WeakMap;zt=new WeakMap;Qt=new WeakMap;Yt=new WeakMap;$t=new WeakMap;pr=new WeakMap;Jt=new WeakMap;En=new WeakMap;Pe=new WeakSet;Tl=function(){try{L(this,nt,Xe(()=>R(this,Cr).call(this,R(this,He))))}catch(e){this.error(e)}L(this,st,!1)};Pl=function(){const e=R(this,Et).pending;e&&(L(this,We,Xe(()=>e(R(this,He)))),sr.enqueue(()=>{var t=de(this,Pe,Yn).call(this);L(this,nt,de(this,Pe,Oi).call(this,()=>(sr.ensure(),Xe(()=>R(this,Cr).call(this,t))))),R(this,$t)>0?de(this,Pe,Ai).call(this):(ur(R(this,We),()=>{L(this,We,null)}),L(this,st,!1))}))};Yn=function(){var e=R(this,He);return R(this,st)&&(L(this,Qt,ut()),R(this,He).before(R(this,Qt)),e=R(this,Qt)),e};Oi=function(e){var t=V,r=z,i=te;Ke(R(this,xt)),Le(R(this,xt)),Mr(R(this,xt).ctx);try{return e()}catch(s){return Gl(s),null}finally{Ke(t),Le(r),Mr(i)}};Ai=function(){const e=R(this,Et).pending;R(this,nt)!==null&&(L(this,zt,document.createDocumentFragment()),R(this,zt).append(R(this,Qt)),pu(R(this,nt),R(this,zt))),R(this,We)===null&&L(this,We,Xe(()=>e(R(this,He))))};Cn=function(e){var t;if(!this.has_pending_snippet()){this.parent&&de(t=this.parent,Pe,Cn).call(t,e);return}L(this,$t,R(this,$t)+e),R(this,$t)===0&&(L(this,st,!1),R(this,We)&&ur(R(this,We),()=>{L(this,We,null)}),R(this,zt)&&(R(this,He).before(R(this,zt)),L(this,zt,null)))};function pf(e,t,r,i){const s=si()?Yi:Ji;if(r.length===0&&e.length===0){i(t.map(s));return}var n=ee,o=V,u=mf();function a(){Promise.all(r.map(c=>gf(c))).then(c=>{u();try{i([...t.map(s),...c])}catch(l){(o.f&Mt)===0&&Nr(l,o)}n==null||n.deactivate(),Ti()}).catch(c=>{Nr(c,o)})}e.length>0?Promise.all(e).then(()=>{u();try{return a()}finally{n==null||n.deactivate(),Ti()}}):a()}function mf(){var e=V,t=z,r=te,i=ee;return function(n=!0){Ke(e),Le(t),Mr(r),n&&(i==null||i.activate())}}function Ti(){Ke(null),Le(null),Mr(null)}function Yi(e){var t=Ce|Ie,r=z!==null&&(z.f&Ce)!==0?z:null;return V!==null&&(V.f|=Tr),{ctx:te,deps:null,effects:null,equals:$l,f:t,fn:e,reactions:null,rv:0,v:Ne,wv:0,parent:r!=null?r:V,ac:null}}function gf(e,t){let r=V;r===null&&Vc();var i=r.b,s=void 0,n=Gt(Ne),o=!z,u=new Map;return xf(()=>{var a,c=Ul();s=c.promise;try{Promise.resolve(e()).then(c.resolve,c.reject).then(()=>{l===ee&&l.committed&&l.deactivate(),Ti()})}catch(h){c.reject(h),Ti()}var l=ee;if(o){var d=!i.is_pending();i.update_pending_count(1),l.increment(d),(a=u.get(l))==null||a.reject(wr),u.delete(l),u.set(l,c)}const f=(h,m=void 0)=>{if(l.activate(),m)m!==wr&&(n.f|=Vt,Or(n,m));else{(n.f&Vt)!==0&&(n.f^=Vt),Or(n,h);for(const[p,g]of u){if(u.delete(p),p===l)break;g.reject(wr)}}o&&(i.update_pending_count(-1),l.decrement(d))};c.promise.then(f,h=>f(null,h||"unknown"))}),so(()=>{for(const a of u.values())a.reject(wr)}),new Promise(a=>{function c(l){function d(){l===s?a(n):c(s)}l.then(d,d)}c(s)})}function Ji(e){const t=Yi(e);return t.equals=Vl,t}function Xl(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)ke(t[r])}}function vf(e){for(var t=e.parent;t!==null;){if((t.f&Ce)===0)return(t.f&Mt)===0?t:null;t=t.parent}return null}function io(e){var t,r=V;Ke(vf(e));try{e.f&=~ir,Xl(e),t=yu(e)}finally{Ke(r)}return t}function Ql(e){var t=io(e);if(e.equals(t)||(ee!=null&&ee.is_fork||(e.v=t),e.wv=gu()),!cr)if(Ae!==null)(ri()||ee!=null&&ee.is_fork)&&Ae.set(e,t);else{var r=(e.f<)===0?ct:Ee;xe(e,r)}}let Dn=new Set;const jt=new Map;let Kl=!1;function Gt(e,t){var r={f:0,v:e,reactions:null,equals:$l,rv:0,wv:0};return r}function At(e,t){const r=Gt(e);return Nf(r),r}function Oe(e,t=!1,r=!0){var n;var i;const s=Gt(e);return t||(s.equals=Vl),Dr&&r&&te!==null&&te.l!==null&&((n=(i=te.l).s)!=null?n:i.s=[]).push(s),s}function K(e,t,r=!1){z!==null&&(!vt||(z.f&Lo)!==0)&&si()&&(z.f&(Ce|Nt|Zn|Lo))!==0&&!(Qe!=null&&Qe.includes(e))&&ef();let i=r?br(t):t;return Or(e,i)}function Or(e,t){if(!e.equals(t)){var r=e.v;cr?jt.set(e,t):jt.set(e,r),e.v=t;var i=sr.ensure();i.capture(e,r),(e.f&Ce)!==0&&((e.f&Ie)!==0&&io(e),xe(e,(e.f<)!==0?Ee:ct)),e.wv=gu(),Zl(e,Ie),si()&&V!==null&&(V.f&Ee)!==0&&(V.f&(Ot|lr))===0&&(je===null?Of([e]):je.push(e)),!i.is_fork&&Dn.size>0&&!Kl&&yf()}return t}function yf(){Kl=!1;var e=er;Pi(!0);const t=Array.from(Dn);try{for(const r of t)(r.f&Ee)!==0&&xe(r,ct),Ir(r)&&Ar(r)}finally{Pi(e)}Dn.clear()}function Uo(e,t=1){var r=M(e),i=t===1?r++:r--;return K(e,r),i}function Xr(e){K(e,e.v+1)}function Zl(e,t){var r=e.reactions;if(r!==null)for(var i=si(),s=r.length,n=0;n<s;n++){var o=r[n],u=o.f;if(!(!i&&o===V)){var a=(u&Ie)===0;if(a&&xe(o,t),(u&Ce)!==0){var c=o;Ae==null||Ae.delete(c),(u&ir)===0&&(u<&&(o.f|=ir),Zl(c,ct))}else a&&((u&Nt)!==0&&mt!==null&&mt.add(o),nr(o))}}}function br(e){if(typeof e!="object"||e===null||Zt in e)return e;const t=Qn(e);if(t!==Bc&&t!==Wc)return e;var r=new Map,i=Xn(e),s=At(0),n=tr,o=u=>{if(tr===n)return u();var a=z,c=tr;Le(null),zo(n);var l=u();return Le(a),zo(c),l};return i&&r.set("length",At(e.length)),new Proxy(e,{defineProperty(u,a,c){(!("value"in c)||c.configurable===!1||c.enumerable===!1||c.writable===!1)&&Kc();var l=r.get(a);return l===void 0?l=o(()=>{var d=At(c.value);return r.set(a,d),d}):K(l,c.value,!0),!0},deleteProperty(u,a){var c=r.get(a);if(c===void 0){if(a in u){const l=o(()=>At(Ne));r.set(a,l),Xr(s)}}else K(c,Ne),Xr(s);return!0},get(u,a,c){var l;if(a===Zt)return e;var d=r.get(a),f=a in u;if(d===void 0&&(!f||(l=Kt(u,a))!=null&&l.writable)&&(d=o(()=>{var m=br(f?u[a]:Ne),p=At(m);return p}),r.set(a,d)),d!==void 0){var h=M(d);return h===Ne?void 0:h}return Reflect.get(u,a,c)},getOwnPropertyDescriptor(u,a){var c=Reflect.getOwnPropertyDescriptor(u,a);if(c&&"value"in c){var l=r.get(a);l&&(c.value=M(l))}else if(c===void 0){var d=r.get(a),f=d==null?void 0:d.v;if(d!==void 0&&f!==Ne)return{enumerable:!0,configurable:!0,value:f,writable:!0}}return c},has(u,a){var c;if(a===Zt)return!0;var l=r.get(a),d=l!==void 0&&l.v!==Ne||Reflect.has(u,a);if(l!==void 0||V!==null&&(!d||(c=Kt(u,a))!=null&&c.writable)){l===void 0&&(l=o(()=>{var h=d?br(u[a]):Ne,m=At(h);return m}),r.set(a,l));var f=M(l);if(f===Ne)return!1}return d},set(u,a,c,l){var d,f=r.get(a),h=a in u;if(i&&a==="length")for(var m=c;m<f.v;m+=1){var p=r.get(m+"");p!==void 0?K(p,Ne):m in u&&(p=o(()=>At(Ne)),r.set(m+"",p))}if(f===void 0)(!h||(d=Kt(u,a))!=null&&d.writable)&&(f=o(()=>At(void 0)),K(f,br(c)),r.set(a,f));else{h=f.v!==Ne;var g=o(()=>br(c));K(f,g)}var y=Reflect.getOwnPropertyDescriptor(u,a);if(y!=null&&y.set&&y.set.call(l,c),!h){if(i&&typeof a=="string"){var b=r.get("length"),_=Number(a);Number.isInteger(_)&&_>=b.v&&K(b,_+1)}Xr(s)}return!0},ownKeys(u){M(s);var a=Reflect.ownKeys(u).filter(d=>{var f=r.get(d);return f===void 0||f.v!==Ne});for(var[c,l]of r)l.v!==Ne&&!(c in u)&&a.push(c);return a},setPrototypeOf(){Zc()}})}var Bo,eu,tu,ru;function Tn(){if(Bo===void 0){Bo=window,eu=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;tu=Kt(t,"firstChild").get,ru=Kt(t,"nextSibling").get,Io(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Io(r)&&(r.__t=void 0)}}function ut(e=""){return document.createTextNode(e)}function or(e){return tu.call(e)}function yt(e){return ru.call(e)}function it(e,t){if(!Y)return or(e);var r=or($);if(r===null)r=$.appendChild(ut());else if(t&&r.nodeType!==eo){var i=ut();return r==null||r.before(i),ze(i),i}return ze(r),r}function wf(e,t=!1){if(!Y){var r=or(e);return r instanceof Comment&&r.data===""?yt(r):r}if(t&&($==null?void 0:$.nodeType)!==eo){var i=ut();return $==null||$.before(i),ze(i),i}return $}function Ve(e,t=1,r=!1){let i=Y?$:e;for(var s;t--;)s=i,i=yt(i);if(!Y)return i;if(r&&(i==null?void 0:i.nodeType)!==eo){var n=ut();return i===null?s==null||s.after(n):i.before(n),ze(n),n}return ze(i),i}function iu(e){e.textContent=""}function su(){return!1}let Wo=!1;function nu(){Wo||(Wo=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var t;if(!e.defaultPrevented)for(const r of e.target.elements)(t=r.__on_r)==null||t.call(r)})},{capture:!0}))}function Xi(e){var t=z,r=V;Le(null),Ke(null);try{return e()}finally{Le(t),Ke(r)}}function bf(e,t,r,i=r){e.addEventListener(t,()=>Xi(r));const s=e.__on_r;s?e.__on_r=()=>{s(),i(!0)}:e.__on_r=()=>i(!0),nu()}function ou(e){V===null&&(z===null&&Hc(),Gc()),cr&&jc()}function _f(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function wt(e,t,r){var u;var i=V;i!==null&&(i.f&qe)!==0&&(e|=qe);var s={ctx:te,deps:null,nodes:null,f:e|Ie|lt,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,wv:0,ac:null};if(r)try{Ar(s),s.f|=$i}catch(a){throw ke(s),a}else t!==null&&nr(s);var n=s;if(r&&n.deps===null&&n.teardown===null&&n.nodes===null&&n.first===n.last&&(n.f&Tr)===0&&(n=n.first,(e&Nt)!==0&&(e&Rr)!==0&&n!==null&&(n.f|=Rr)),n!==null&&(n.parent=i,i!==null&&_f(n,i),z!==null&&(z.f&Ce)!==0&&(e&lr)===0)){var o=z;((u=o.effects)!=null?u:o.effects=[]).push(n)}return s}function ri(){return z!==null&&!vt}function so(e){const t=wt(qi,null,!1);return xe(t,Ee),t.teardown=e,t}function Pn(e){var s;ou();var t=V.f,r=!z&&(t&Ot)!==0&&(t&$i)===0;if(r){var i=te;((s=i.e)!=null?s:i.e=[]).push(e)}else return au(e)}function au(e){return wt(Kn|Wl,e,!1)}function Sf(e){return ou(),wt(qi|Wl,e,!0)}function Ef(e){sr.ensure();const t=wt(lr|Tr,e,!0);return(r={})=>new Promise(i=>{r.outro?ur(t,()=>{ke(t),i(void 0)}):(ke(t),i(void 0))})}function Cf(e){return wt(Kn,e,!1)}function Ut(e,t){var r=te,i={effect:null,ran:!1,deps:e};r.l.$.push(i),i.effect=ni(()=>{e(),!i.ran&&(i.ran=!0,be(t))})}function lu(){var e=te;ni(()=>{for(var t of e.l.$){t.deps();var r=t.effect;(r.f&Ee)!==0&&xe(r,ct),Ir(r)&&Ar(r),t.ran=!1}})}function xf(e){return wt(Zn|Tr,e,!0)}function ni(e,t=0){return wt(qi|t,e,!0)}function _r(e,t=[],r=[],i=[]){pf(i,t,r,s=>{wt(qi,()=>e(...s.map(M)),!0)})}function no(e,t=0){var r=wt(Nt|t,e,!0);return r}function Xe(e){return wt(Ot|Tr,e,!0)}function uu(e){var t=e.teardown;if(t!==null){const r=cr,i=z;qo(!0),Le(null);try{t.call(null)}finally{qo(r),Le(i)}}}function cu(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&Xi(()=>{s.abort(wr)});var i=r.next;(r.f&lr)!==0?r.parent=null:ke(r,t),r=i}}function Rf(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&Ot)===0&&ke(t),t=r}}function ke(e,t=!0){var r=!1;(t||(e.f&Bl)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Mf(e.nodes.start,e.nodes.end),r=!0),cu(e,t&&!r),ki(e,0),xe(e,Mt);var i=e.nodes&&e.nodes.t;if(i!==null)for(const n of i)n.stop();uu(e);var s=e.parent;s!==null&&s.first!==null&&fu(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Mf(e,t){for(;e!==null;){var r=e===t?null:yt(e);e.remove(),e=r}}function fu(e){var t=e.parent,r=e.prev,i=e.next;r!==null&&(r.next=i),i!==null&&(i.prev=r),t!==null&&(t.first===e&&(t.first=i),t.last===e&&(t.last=r))}function ur(e,t,r=!0){var i=[];hu(e,i,!0);var s=()=>{r&&ke(e),t&&t()},n=i.length;if(n>0){var o=()=>--n||s();for(var u of i)u.out(o)}else s()}function hu(e,t,r){if((e.f&qe)===0){e.f^=qe;var i=e.nodes&&e.nodes.t;if(i!==null)for(const u of i)(u.is_global||r)&&t.push(u);for(var s=e.first;s!==null;){var n=s.next,o=(s.f&Rr)!==0||(s.f&Ot)!==0&&(e.f&Nt)!==0;hu(s,t,o?r:!1),s=n}}}function oo(e){du(e,!0)}function du(e,t){if((e.f&qe)!==0){e.f^=qe,(e.f&Ee)===0&&(xe(e,Ie),nr(e));for(var r=e.first;r!==null;){var i=r.next,s=(r.f&Rr)!==0||(r.f&Ot)!==0;du(r,s?t:!1),r=i}var n=e.nodes&&e.nodes.t;if(n!==null)for(const o of n)(o.is_global||t)&&o.in()}}function pu(e,t){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end;r!==null;){var s=r===i?null:yt(r);t.append(r),r=s}}let er=!1;function Pi(e){er=e}let cr=!1;function qo(e){cr=e}let z=null,vt=!1;function Le(e){z=e}let V=null;function Ke(e){V=e}let Qe=null;function Nf(e){z!==null&&(Qe===null?Qe=[e]:Qe.push(e))}let Te=null,Fe=0,je=null;function Of(e){je=e}let mu=1,ii=0,tr=ii;function zo(e){tr=e}function gu(){return++mu}function Ir(e){var t=e.f;if((t&Ie)!==0)return!0;if(t&Ce&&(e.f&=~ir),(t&ct)!==0){var r=e.deps;if(r!==null)for(var i=r.length,s=0;s<i;s++){var n=r[s];if(Ir(n)&&Ql(n),n.wv>e.wv)return!0}(t<)!==0&&Ae===null&&xe(e,Ee)}return!1}function vu(e,t,r=!0){var i=e.reactions;if(i!==null&&!(Qe!=null&&Qe.includes(e)))for(var s=0;s<i.length;s++){var n=i[s];(n.f&Ce)!==0?vu(n,t,!1):t===n&&(r?xe(n,Ie):(n.f&Ee)!==0&&xe(n,ct),nr(n))}}function yu(e){var p;var t,r=Te,i=Fe,s=je,n=z,o=Qe,u=te,a=vt,c=tr,l=e.f;Te=null,Fe=0,je=null,z=(l&(Ot|lr))===0?e:null,Qe=null,Mr(e.ctx),vt=!1,tr=++ii,e.ac!==null&&(Xi(()=>{e.ac.abort(wr)}),e.ac=null);try{e.f|=Nn;var d=e.fn,f=d(),h=e.deps;if(Te!==null){var m;if(ki(e,Fe),h!==null&&Fe>0)for(h.length=Fe+Te.length,m=0;m<Te.length;m++)h[Fe+m]=Te[m];else e.deps=h=Te;if(ri()&&(e.f<)!==0)for(m=Fe;m<h.length;m++)((p=(t=h[m]).reactions)!=null?p:t.reactions=[]).push(e)}else h!==null&&Fe<h.length&&(ki(e,Fe),h.length=Fe);if(si()&&je!==null&&!vt&&h!==null&&(e.f&(Ce|ct|Ie))===0)for(m=0;m<je.length;m++)vu(je[m],e);return n!==null&&n!==e&&(ii++,je!==null&&(s===null?s=je:s.push(...je))),(e.f&Vt)!==0&&(e.f^=Vt),f}catch(g){return Gl(g)}finally{e.f^=Nn,Te=r,Fe=i,je=s,z=n,Qe=o,Mr(u),vt=a,tr=c}}function Af(e,t){let r=t.reactions;if(r!==null){var i=Uc.call(r,e);if(i!==-1){var s=r.length-1;s===0?r=t.reactions=null:(r[i]=r[s],r.pop())}}r===null&&(t.f&Ce)!==0&&(Te===null||!Te.includes(t))&&(xe(t,ct),(t.f<)!==0&&(t.f^=lt,t.f&=~ir),Xl(t),ki(t,0))}function ki(e,t){var r=e.deps;if(r!==null)for(var i=t;i<r.length;i++)Af(e,r[i])}function Ar(e){var t=e.f;if((t&Mt)===0){xe(e,Ee);var r=V,i=er;V=e,er=!0;try{(t&(Nt|zc))!==0?Rf(e):cu(e),uu(e);var s=yu(e);e.teardown=typeof s=="function"?s:null,e.wv=mu;var n;Rn&&Mc&&(e.f&Ie)!==0&&e.deps}finally{er=i,V=r}}}function M(e){var a;var t=e.f,r=(t&Ce)!==0;if(z!==null&&!vt){var i=V!==null&&(V.f&Mt)!==0;if(!i&&!(Qe!=null&&Qe.includes(e))){var s=z.deps;if((z.f&Nn)!==0)e.rv<ii&&(e.rv=ii,Te===null&&s!==null&&s[Fe]===e?Fe++:Te===null?Te=[e]:Te.includes(e)||Te.push(e));else{((a=z.deps)!=null?a:z.deps=[]).push(e);var n=e.reactions;n===null?e.reactions=[z]:n.includes(z)||n.push(z)}}}if(cr){if(jt.has(e))return jt.get(e);if(r){var o=e,u=o.v;return((o.f&Ee)===0&&o.reactions!==null||bu(o))&&(u=io(o)),jt.set(o,u),u}}else r&&(!(Ae!=null&&Ae.has(e))||ee!=null&&ee.is_fork&&!ri())&&(o=e,Ir(o)&&Ql(o),er&&ri()&&(o.f<)===0&&wu(o));if(Ae!=null&&Ae.has(e))return Ae.get(e);if((e.f&Vt)!==0)throw e.v;return e.v}function wu(e){var t;if(e.deps!==null){e.f^=lt;for(const r of e.deps)((t=r.reactions)!=null?t:r.reactions=[]).push(e),(r.f&Ce)!==0&&(r.f<)===0&&wu(r)}}function bu(e){if(e.v===Ne)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(jt.has(t)||(t.f&Ce)!==0&&bu(t))return!0;return!1}function be(e){var t=vt;try{return vt=!0,e()}finally{vt=t}}const Df=-7169;function xe(e,t){e.f=e.f&Df|t}function Ue(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(Zt in e)kn(e);else if(!Array.isArray(e))for(let t in e){const r=e[t];typeof r=="object"&&r&&Zt in r&&kn(r)}}}function kn(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let i in e)try{kn(e[i],t)}catch(s){}const r=Qn(e);if(r!==Object.prototype&&r!==Array.prototype&&r!==Map.prototype&&r!==Set.prototype&&r!==Date.prototype){const i=Fl(r);for(let s in i){const n=i[s].get;if(n)try{n.call(e)}catch(o){}}}}}const Tf=new Set,$o=new Set;function Pf(e,t,r,i={}){function s(n){if(i.capture||Vr.call(t,n),!n.cancelBubble)return Xi(()=>r==null?void 0:r.call(this,n))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?kr(()=>{t.addEventListener(e,s,i)}):t.addEventListener(e,s,i),s}function Wr(e,t,r,i,s){var n={capture:i,passive:s},o=Pf(e,t,r,n);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&so(()=>{t.removeEventListener(e,o,n)})}let Vo=null;function Vr(e){var t,r=this,i=r.ownerDocument,s=e.type,n=((t=e.composedPath)==null?void 0:t.call(e))||[],o=n[0]||e.target;Vo=e;var u=0,a=Vo===e&&e.__root;if(a){var c=n.indexOf(a);if(c!==-1&&(r===document||r===window)){e.__root=r;return}var l=n.indexOf(r);if(l===-1)return;c<=l&&(u=c)}if(o=n[u]||e.target,o!==r){Ll(e,"currentTarget",{configurable:!0,get(){return o||i}});var d=z,f=V;Le(null),Ke(null);try{for(var h,m=[];o!==null;){var p=o.assignedSlot||o.parentNode||o.host||null;try{var g=o["__"+s];g!=null&&(!o.disabled||e.target===o)&&g.call(o,e)}catch(y){h?m.push(y):h=y}if(e.cancelBubble||p===r||p===null)break;o=p}if(h){for(let y of m)queueMicrotask(()=>{throw y});throw h}}finally{e.__root=r,delete e.currentTarget,Le(d),Ke(f)}}}function _u(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function ar(e,t){var r=V;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function Lr(e,t){var r=(t&Lc)!==0,i,s=!e.startsWith("<!>");return()=>{if(Y)return ar($,null),$;i===void 0&&(i=_u(s?e:"<!>"+e),i=or(i));var n=r||eu?document.importNode(i,!0):i.cloneNode(!0);return ar(n,n),n}}function kf(e,t,r="svg"){var i=!e.startsWith("<!>"),s=`<${r}>${i?e:"<!>"+e}</${r}>`,n;return()=>{if(Y)return ar($,null),$;if(!n){var o=_u(s),u=or(o);n=or(u)}var a=n.cloneNode(!0);return ar(a,a),a}}function Su(e,t){return kf(e,t,"svg")}function If(){if(Y)return ar($,null),$;var e=document.createDocumentFragment(),t=document.createComment(""),r=ut();return e.append(t,r),ar(t,r),e}function St(e,t){if(Y){var r=V;((r.f&$i)===0||r.nodes.end===null)&&(r.nodes.end=$),Gi();return}e!==null&&e.before(t)}const Lf=["touchstart","touchmove"];function Ff(e){return Lf.includes(e)}function Mi(e,t){var i;var r=t==null?"":typeof t=="object"?t+"":t;r!==((i=e.__t)!=null?i:e.__t=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function Eu(e,t){return Cu(e,t)}function Uf(e,t){var o;Tn(),t.intro=(o=t.intro)!=null?o:!1;const r=t.target,i=Y,s=$;try{for(var n=or(r);n&&(n.nodeType!==Pr||n.data!==Il);)n=yt(n);if(!n)throw xr;Rt(!0),ze(n);const u=Cu(e,Se(Q({},t),{anchor:n}));return Rt(!1),u}catch(u){if(u instanceof Error&&u.message.split(`
|
|
15
|
+
`).some(a=>a.startsWith("https://svelte.dev/e/")))throw u;return u!==xr&&console.warn("Failed to hydrate: ",u),t.recover===!1&&Jc(),Tn(),iu(r),Rt(!1),Eu(e,t)}finally{Rt(i),ze(s)}}const dr=new Map;function Cu(e,{target:t,anchor:r,props:i={},events:s,context:n,intro:o=!0}){Tn();var u=new Set,a=d=>{for(var f=0;f<d.length;f++){var h=d[f];if(!u.has(h)){u.add(h);var m=Ff(h);t.addEventListener(h,Vr,{passive:m});var p=dr.get(h);p===void 0?(document.addEventListener(h,Vr,{passive:m}),dr.set(h,1)):dr.set(h,p+1)}}};a(Wi(Tf)),$o.add(a);var c=void 0,l=Ef(()=>{var d=r!=null?r:t.appendChild(ut());return hf(d,{pending:()=>{}},f=>{if(n){to({});var h=te;h.c=n}if(s&&(i.$$events=s),Y&&ar(f,null),c=e(f,i)||{},Y&&(V.nodes.end=$,$===null||$.nodeType!==Pr||$.data!==Jn))throw ji(),xr;n&&ro()}),()=>{var f;for(var h of u){t.removeEventListener(h,Vr);var m=dr.get(h);--m===0?(document.removeEventListener(h,Vr),dr.delete(h)):dr.set(h,m)}$o.delete(a),d!==r&&((f=d.parentNode)==null||f.removeChild(d))}});return In.set(c,l),c}let In=new WeakMap;function Bf(e,t){const r=In.get(e);return r?(In.delete(e),r(t)):Promise.resolve()}class Wf{constructor(t,r=!0){Ct(this,"anchor"),q(this,pt,new Map),q(this,_t,new Map),q(this,$e,new Map),q(this,mr,new Set),q(this,Ci,!0),q(this,xi,()=>{var i=ee;if(R(this,pt).has(i)){var s=R(this,pt).get(i),n=R(this,_t).get(s);if(n)oo(n),R(this,mr).delete(s);else{var o=R(this,$e).get(s);o&&(R(this,_t).set(s,o.effect),R(this,$e).delete(s),o.fragment.lastChild.remove(),this.anchor.before(o.fragment),n=o.effect)}for(const[u,a]of R(this,pt)){if(R(this,pt).delete(u),u===i)break;const c=R(this,$e).get(a);c&&(ke(c.effect),R(this,$e).delete(a))}for(const[u,a]of R(this,_t)){if(u===s||R(this,mr).has(u))continue;const c=()=>{if(Array.from(R(this,pt).values()).includes(u)){var d=document.createDocumentFragment();pu(a,d),d.append(ut()),R(this,$e).set(u,{effect:a,fragment:d})}else ke(a);R(this,mr).delete(u),R(this,_t).delete(u)};R(this,Ci)||!n?(R(this,mr).add(u),ur(a,c,!1)):c()}}}),q(this,xn,i=>{R(this,pt).delete(i);const s=Array.from(R(this,pt).values());for(const[n,o]of R(this,$e))s.includes(n)||(ke(o.effect),R(this,$e).delete(n))}),this.anchor=t,L(this,Ci,r)}ensure(t,r){var i=ee,s=su();if(r&&!R(this,_t).has(t)&&!R(this,$e).has(t))if(s){var n=document.createDocumentFragment(),o=ut();n.append(o),R(this,$e).set(t,{effect:Xe(()=>r(o)),fragment:n})}else R(this,_t).set(t,Xe(()=>r(this.anchor)));if(R(this,pt).set(i,t),s){for(const[u,a]of R(this,_t))u===t?i.skipped_effects.delete(a):i.skipped_effects.add(a);for(const[u,a]of R(this,$e))u===t?i.skipped_effects.delete(a.effect):i.skipped_effects.add(a.effect);i.oncommit(R(this,xi)),i.ondiscard(R(this,xn))}else Y&&(this.anchor=$),R(this,xi).call(this)}}pt=new WeakMap;_t=new WeakMap;$e=new WeakMap;mr=new WeakMap;Ci=new WeakMap;xi=new WeakMap;xn=new WeakMap;function ao(e){te===null&&Vi(),Dr&&te.l!==null?Ru(te).m.push(e):Pn(()=>{const t=be(e);if(typeof t=="function")return t})}function xu(e){te===null&&Vi(),ao(()=>()=>be(e))}function qf(e,t,{bubbles:r=!1,cancelable:i=!1}={}){return new CustomEvent(e,{detail:t,bubbles:r,cancelable:i})}function zf(){const e=te;return e===null&&Vi(),(t,r,i)=>{var s;const n=(s=e.s.$$events)==null?void 0:s[t];if(n){const o=Xn(n)?n.slice():[n],u=qf(t,r,i);for(const a of o)a.call(e.x,u);return!u.defaultPrevented}return!0}}function $f(e){te===null&&Vi(),te.l===null&&Xc(),Ru(te).a.push(e)}function Ru(e){var r;var t=e.l;return(r=t.u)!=null?r:t.u={a:[],b:[],m:[]}}function Ln(e,t,r=!1){Y&&Gi();var i=new Wf(e),s=r?Rr:0;function n(o,u){if(Y){const c=zl(e)===Bi;if(o===c){var a=Di();ze(a),i.anchor=a,Rt(!1),i.ensure(o,u),Rt(!0);return}}i.ensure(o,u)}no(()=>{var o=!1;t((u,a=!0)=>{o=!0,n(a,u)}),o||n(!1,null)},s)}function hs(e,t){return t}function Vf(e,t,r){var d;for(var i=[],s=t.length,n,o=t.length,u=0;u<s;u++){let f=t[u];ur(f,()=>{if(n){if(n.pending.delete(f),n.done.add(f),n.pending.size===0){var h=e.outrogroups;Fn(Wi(n.done)),h.delete(n),h.size===0&&(e.outrogroups=null)}}else o-=1},!1)}if(o===0){var a=i.length===0&&r!==null;if(a){var c=r,l=c.parentNode;iu(l),l.append(c),e.items.clear()}Fn(t,!a)}else n={pending:new Set(t),done:new Set},((d=e.outrogroups)!=null?d:e.outrogroups=new Set).add(n)}function Fn(e,t=!0){for(var r=0;r<e.length;r++)ke(e[r],t)}var Dt;function ds(e,t,r,i,s,n=null){var o=e,u=new Map;Y&&Gi();var a=null,c=Ji(()=>{var p=r();return Xn(p)?p:p==null?[]:Wi(p)}),l,d=!0;function f(){m.fallback=a,jf(m,l,o,t,i),a!==null&&(l.length===0?(a.f&Bt)===0?oo(a):(a.f^=Bt,jr(a,null,o)):ur(a,()=>{a=null}))}var h=no(()=>{l=M(c);var p=l.length;let g=!1;if(Y){var y=zl(o)===Bi;y!==(p===0)&&(o=Di(),ze(o),Rt(!1),g=!0)}for(var b=new Set,_=ee,S=su(),v=0;v<p;v+=1){Y&&$.nodeType===Pr&&$.data===Jn&&(o=$,g=!0,Rt(!1));var w=l[v],E=i(w,v),C=d?null:u.get(E);C?(C.v&&Or(C.v,w),C.i&&Or(C.i,v),S&&_.skipped_effects.delete(C.e)):(C=Gf(u,d?o:Dt!=null?Dt:Dt=ut(),w,E,v,s,t,r),d||(C.e.f|=Bt),u.set(E,C)),b.add(E)}if(p===0&&n&&!a&&(d?a=Xe(()=>n(o)):(a=Xe(()=>n(Dt!=null?Dt:Dt=ut())),a.f|=Bt)),Y&&p>0&&ze(Di()),!d)if(S){for(const[A,N]of u)b.has(A)||_.skipped_effects.add(N.e);_.oncommit(f),_.ondiscard(()=>{})}else f();g&&Rt(!0),M(c)}),m={effect:h,items:u,outrogroups:null,fallback:a};d=!1,Y&&(o=$)}function jf(e,t,r,i,s){var n,o=t.length,u=e.items,a=e.effect.first,c,l=null,d=[],f=[],h,m,p,g;for(g=0;g<o;g+=1){if(h=t[g],m=s(h,g),p=u.get(m).e,e.outrogroups!==null)for(const A of e.outrogroups)A.pending.delete(p),A.done.delete(p);if((p.f&Bt)!==0)if(p.f^=Bt,p===a)jr(p,null,r);else{var y=l?l.next:a;p===e.effect.last&&(e.effect.last=p.prev),p.prev&&(p.prev.next=p.next),p.next&&(p.next.prev=p.prev),Tt(e,l,p),Tt(e,p,y),jr(p,y,r),l=p,d=[],f=[],a=l.next;continue}if((p.f&qe)!==0&&oo(p),p!==a){if(c!==void 0&&c.has(p)){if(d.length<f.length){var b=f[0],_;l=b.prev;var S=d[0],v=d[d.length-1];for(_=0;_<d.length;_+=1)jr(d[_],b,r);for(_=0;_<f.length;_+=1)c.delete(f[_]);Tt(e,S.prev,v.next),Tt(e,l,S),Tt(e,v,b),a=b,l=v,g-=1,d=[],f=[]}else c.delete(p),jr(p,a,r),Tt(e,p.prev,p.next),Tt(e,p,l===null?e.effect.first:l.next),Tt(e,l,p),l=p;continue}for(d=[],f=[];a!==null&&a!==p;)(c!=null?c:c=new Set).add(a),f.push(a),a=a.next;if(a===null)continue}(p.f&Bt)===0&&d.push(p),l=p,a=p.next}if(e.outrogroups!==null){for(const A of e.outrogroups)A.pending.size===0&&(Fn(Wi(A.done)),(n=e.outrogroups)==null||n.delete(A));e.outrogroups.size===0&&(e.outrogroups=null)}if(a!==null||c!==void 0){var w=[];if(c!==void 0)for(p of c)(p.f&qe)===0&&w.push(p);for(;a!==null;)(a.f&qe)===0&&a!==e.fallback&&w.push(a),a=a.next;var E=w.length;if(E>0){var C=null;Vf(e,w,C)}}}function Gf(e,t,r,i,s,n,o,u){var a=(o&Oc)!==0?(o&Dc)===0?Oe(r,!1,!1):Gt(r):null,c=(o&Ac)!==0?Gt(s):null;return{v:a,i:c,e:Xe(()=>(n(t,a!=null?a:r,c!=null?c:s,u),()=>{e.delete(i)}))}}function jr(e,t,r){if(e.nodes)for(var i=e.nodes.start,s=e.nodes.end,n=t&&(t.f&Bt)===0?t.nodes.start:r;i!==null;){var o=yt(i);if(n.before(i),i===s)return;i=o}}function Tt(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}const jo=[...`
|
|
16
|
+
\r\f\xA0\v\uFEFF`];function Hf(e,t,r){var i=e==null?"":""+e;if(r){for(var s in r)if(r[s])i=i?i+" "+s:s;else if(i.length)for(var n=s.length,o=0;(o=i.indexOf(s,o))>=0;){var u=o+n;(o===0||jo.includes(i[o-1]))&&(u===i.length||jo.includes(i[u]))?i=(o===0?"":i.substring(0,o))+i.substring(u+1):o=u}}return i===""?null:i}function Yf(e,t){return e==null?null:String(e)}function Un(e,t,r,i,s,n){var o=e.__className;if(Y||o!==r||o===void 0){var u=Hf(r,i,n);(!Y||u!==e.getAttribute("class"))&&(u==null?e.removeAttribute("class"):e.className=u),e.__className=r}else if(n&&s!==n)for(var a in n){var c=!!n[a];(s==null||c!==!!s[a])&&e.classList.toggle(a,c)}return n}function Sr(e,t,r,i){var s=e.__style;if(Y||s!==t){var n=Yf(t);(!Y||n!==e.getAttribute("style"))&&(n==null?e.removeAttribute("style"):e.style.cssText=n),e.__style=t}return i}const Jf=Symbol("is custom element"),Xf=Symbol("is html");function Qf(e){if(Y){var t=!1,r=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var i=e.value;rr(e,"value",null),e.value=i}if(e.hasAttribute("checked")){var s=e.checked;rr(e,"checked",null),e.checked=s}}};e.__on_r=r,kr(r),nu()}}function rr(e,t,r,i){var s=Kf(e);Y&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||s[t]!==(s[t]=r)&&(t==="loading"&&(e[$c]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Zf(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Kf(e){var t;return(t=e.__attributes)!=null?t:e.__attributes={[Jf]:e.nodeName.includes("-"),[Xf]:e.namespaceURI===Fc}}var Go=new Map;function Zf(e){var t=e.getAttribute("is")||e.nodeName,r=Go.get(t);if(r)return r;Go.set(t,r=[]);for(var i,s=e,n=Element.prototype;n!==s;){i=Fl(s);for(var o in i)i[o].set&&r.push(o);s=Qn(s)}return r}function eh(e,t,r=t){bf(e,"change",i=>{var s=i?e.defaultChecked:e.checked;r(s)}),(Y&&e.defaultChecked!==e.checked||be(t)==null)&&r(e.checked),ni(()=>{var i=t();e.checked=!!i})}function he(e,t,r){var i=Kt(e,t);i&&i.set&&(e[t]=r,so(()=>{e[t]=null}))}function Ho(e,t){return e===t||(e==null?void 0:e[Zt])===t}function Ni(e={},t,r,i){return Cf(()=>{var s,n;return ni(()=>{s=n,n=[],be(()=>{e!==r(...n)&&(t(e,...n),s&&Ho(r(...s),e)&&t(null,...s))})}),()=>{kr(()=>{n&&Ho(r(...n),e)&&t(null,...n)})}}),e}function Mu(e=!1){const t=te,r=t.l.u;if(!r)return;let i=()=>Ue(t.s);if(e){let s=0,n={};const o=Yi(()=>{let u=!1;const a=t.s;for(const c in a)a[c]!==n[c]&&(n[c]=a[c],u=!0);return u&&s++,s});i=()=>M(o)}r.b.length&&Sf(()=>{Yo(t,i),Mn(r.b)}),Pn(()=>{const s=be(()=>r.m.map(qc));return()=>{for(const n of s)typeof n=="function"&&n()}}),r.a.length&&Pn(()=>{Yo(t,i),Mn(r.a)})}function Yo(e,t){if(e.l.s)for(const r of e.l.s)M(r);t()}let hi=!1;function th(e){var t=hi;try{return hi=!1,[e(),hi]}finally{hi=t}}const rh={get(e,t){if(!e.exclude.includes(t))return M(e.version),t in e.special?e.special[t]():e.props[t]},set(e,t,r){if(!(t in e.special)){var i=V;try{Ke(e.parent_effect),e.special[t]=ce({get[t](){return e.props[t]}},t,kl)}finally{Ke(i)}}return e.special[t](r),Uo(e.version),!0},getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},deleteProperty(e,t){return e.exclude.includes(t)||(e.exclude.push(t),Uo(e.version)),!0},has(e,t){return e.exclude.includes(t)?!1:t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))}};function ih(e,t){return new Proxy({props:e,exclude:t,special:{},version:Gt(0),parent_effect:V},rh)}function ce(e,t,r,i){var S;var s,n=!Dr||(r&Pc)!==0,o=(r&kc)!==0,u=(r&Ic)!==0,a=i,c=!0,l=()=>(c&&(c=!1,a=u?be(i):i),a),d;if(o){var f=Zt in e||ql in e;d=(S=(s=Kt(e,t))==null?void 0:s.set)!=null?S:f&&t in e?v=>e[t]=v:void 0}var h,m=!1;o?[h,m]=th(()=>e[t]):h=e[t],h===void 0&&i!==void 0&&(h=l(),d&&(n&&Qc(),d(h)));var p;if(n?p=()=>{var v=e[t];return v===void 0?l():(c=!0,v)}:p=()=>{var v=e[t];return v!==void 0&&(a=void 0),v===void 0?a:v},n&&(r&kl)===0)return p;if(d){var g=e.$$legacy;return(function(v,w){return arguments.length>0?((!n||!w||g||m)&&d(w?p():v),v):p()})}var y=!1,b=((r&Tc)!==0?Yi:Ji)(()=>(y=!1,p()));o&&M(b);var _=V;return(function(v,w){if(arguments.length>0){const E=w?M(b):n&&o?br(v):v;return K(b,E),y=!0,a!==void 0&&(a=E),v}return cr&&y||(_.f&Mt)!==0?b.v:M(b)})}function sh(e){return class extends nh{constructor(t){super(Q({component:e},t))}}}class nh{constructor(t){var o;q(this,kt),q(this,tt);var r,i=new Map,s=(u,a)=>{var c=Oe(a,!1,!1);return i.set(u,c),c};const n=new Proxy(Se(Q({},t.props||{}),{$$events:{}}),{get(u,a){var c;return M((c=i.get(a))!=null?c:s(a,Reflect.get(u,a)))},has(u,a){var c;return a===ql?!0:(M((c=i.get(a))!=null?c:s(a,Reflect.get(u,a))),Reflect.has(u,a))},set(u,a,c){var l;return K((l=i.get(a))!=null?l:s(a,c),c),Reflect.set(u,a,c)}});L(this,tt,(t.hydrate?Uf:Eu)(t.component,{target:t.target,anchor:t.anchor,props:n,context:t.context,intro:(o=t.intro)!=null?o:!1,recover:t.recover})),(!((r=t==null?void 0:t.props)!=null&&r.$$host)||t.sync===!1)&&lf(),L(this,kt,n.$$events);for(const u of Object.keys(R(this,tt)))u==="$set"||u==="$destroy"||u==="$on"||Ll(this,u,{get(){return R(this,tt)[u]},set(a){R(this,tt)[u]=a},enumerable:!0});R(this,tt).$set=u=>{Object.assign(n,u)},R(this,tt).$destroy=()=>{Bf(R(this,tt))}}$set(t){R(this,tt).$set(t)}$on(t,r){R(this,kt)[t]=R(this,kt)[t]||[];const i=(...s)=>r.call(this,...s);return R(this,kt)[t].push(i),()=>{R(this,kt)[t]=R(this,kt)[t].filter(s=>s!==i)}}$destroy(){R(this,tt).$destroy()}}kt=new WeakMap;tt=new WeakMap;var oh=Object.defineProperty,ah=(e,t,r)=>t in e?oh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,I=(e,t,r)=>ah(e,typeof t!="symbol"?t+"":t,r),Jo,lh=Object.defineProperty,uh=(e,t,r)=>t in e?lh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Xo=(e,t,r)=>uh(e,typeof t!="symbol"?t+"":t,r),pe=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(pe||{});function ch(e){return e.nodeType===e.ELEMENT_NODE}class Nu{constructor(){Xo(this,"idNodeMap",new Map),Xo(this,"nodeMetaMap",new WeakMap)}getId(t){var r;if(!t)return-1;const i=(r=this.getMeta(t))==null?void 0:r.id;return i!=null?i:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(i=>this.removeNodeFromMap(i))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){const i=r.id;this.idNodeMap.set(i,t),this.nodeMetaMap.set(t,r)}replace(t,r){const i=this.getNode(t);if(i){const s=this.nodeMetaMap.get(i);s&&this.nodeMetaMap.set(r,s)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Ou(){return new Nu}function fh(e){return e.toLowerCase()}function hh(e,t){return!e||!t||e.type!==t.type?!1:e.type===pe.Document?e.compatMode===t.compatMode:e.type===pe.DocumentType?e.name===t.name&&e.publicId===t.publicId&&e.systemId===t.systemId:e.type===pe.Comment||e.type===pe.Text||e.type===pe.CDATA?e.textContent===t.textContent:e.type===pe.Element?e.tagName===t.tagName&&JSON.stringify(e.attributes)===JSON.stringify(t.attributes)&&e.isSVG===t.isSVG&&e.needBlock===t.needBlock:!1}const dh=/(max|min)-device-(width|height)/,Qo=new RegExp(dh.source,"g"),ph={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(e){e.params.match(Qo)&&(e.params=e.params.replace(Qo,"$1-$2"))}}}},mh={postcssPlugin:"postcss-hover-classes",prepare:function(){const e=[];return{Rule:function(t){e.indexOf(t)===-1&&(e.push(t),t.selectors.forEach(function(r){r.includes(":hover")&&(t.selector+=`,
|
|
17
|
+
`+r.replace(/:hover/g,".\\:hover"))}))}}}};function gh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function vh(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var s=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,s.get?s:{enumerable:!0,get:function(){return e[i]}})}),r}var di={exports:{}},Ko;function yh(){if(Ko)return di.exports;Ko=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return di.exports=t(),di.exports.createColors=t,di.exports}const wh={},bh=Object.freeze(Object.defineProperty({__proto__:null,default:wh},Symbol.toStringTag,{value:"Module"})),ot=vh(bh);var ps,Zo;function lo(){if(Zo)return ps;Zo=1;let e=yh(),t=ot;class r extends Error{constructor(s,n,o,u,a,c){super(s),this.name="CssSyntaxError",this.reason=s,a&&(this.file=a),u&&(this.source=u),c&&(this.plugin=c),typeof n!="undefined"&&typeof o!="undefined"&&(typeof n=="number"?(this.line=n,this.column=o):(this.line=n.line,this.column=n.column,this.endLine=o.line,this.endColumn=o.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(s){if(!this.source)return"";let n=this.source;s==null&&(s=e.isColorSupported),t&&s&&(n=t(n));let o=n.split(/\r?\n/),u=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length,l,d;if(s){let{bold:f,gray:h,red:m}=e.createColors(!0);l=p=>f(m(p)),d=p=>h(p)}else l=d=f=>f;return o.slice(u,a).map((f,h)=>{let m=u+1+h,p=" "+(" "+m).slice(-c)+" | ";if(m===this.line){let g=d(p.replace(/\d/g," "))+f.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+d(p)+f+`
|
|
18
|
+
`+g+l("^")}return" "+d(p)+f}).join(`
|
|
19
|
+
`)}toString(){let s=this.showSourceCode();return s&&(s=`
|
|
18
20
|
|
|
19
|
-
`+
|
|
20
|
-
`),this.name+": "+this.message+
|
|
21
|
+
`+s+`
|
|
22
|
+
`),this.name+": "+this.message+s}}return ps=r,r.default=r,ps}var pi={},ea;function uo(){return ea||(ea=1,pi.isClean=Symbol("isClean"),pi.my=Symbol("my")),pi}var ms,ta;function Au(){if(ta)return ms;ta=1;const e={after:`
|
|
21
23
|
`,beforeClose:`
|
|
22
24
|
`,beforeComment:`
|
|
23
25
|
`,beforeDecl:`
|
|
24
26
|
`,beforeOpen:" ",beforeRule:`
|
|
25
|
-
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function
|
|
26
|
-
`)){let
|
|
27
|
-
`)&&(
|
|
28
|
-
`)&&(
|
|
29
|
-
`)&&(
|
|
30
|
-
`)&&(
|
|
31
|
-
`);return
|
|
32
|
-
`?(
|
|
33
|
-
`);
|
|
27
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(i){return i[0].toUpperCase()+i.slice(1)}class r{constructor(s){this.builder=s}atrule(s,n){let o="@"+s.name,u=s.params?this.rawValue(s,"params"):"";if(typeof s.raws.afterName!="undefined"?o+=s.raws.afterName:u&&(o+=" "),s.nodes)this.block(s,o+u);else{let a=(s.raws.between||"")+(n?";":"");this.builder(o+u+a,s)}}beforeAfter(s,n){let o;s.type==="decl"?o=this.raw(s,null,"beforeDecl"):s.type==="comment"?o=this.raw(s,null,"beforeComment"):n==="before"?o=this.raw(s,null,"beforeRule"):o=this.raw(s,null,"beforeClose");let u=s.parent,a=0;for(;u&&u.type!=="root";)a+=1,u=u.parent;if(o.includes(`
|
|
28
|
+
`)){let c=this.raw(s,null,"indent");if(c.length)for(let l=0;l<a;l++)o+=c}return o}block(s,n){let o=this.raw(s,"between","beforeOpen");this.builder(n+o+"{",s,"start");let u;s.nodes&&s.nodes.length?(this.body(s),u=this.raw(s,"after")):u=this.raw(s,"after","emptyBody"),u&&this.builder(u),this.builder("}",s,"end")}body(s){let n=s.nodes.length-1;for(;n>0&&s.nodes[n].type==="comment";)n-=1;let o=this.raw(s,"semicolon");for(let u=0;u<s.nodes.length;u++){let a=s.nodes[u],c=this.raw(a,"before");c&&this.builder(c),this.stringify(a,n!==u||o)}}comment(s){let n=this.raw(s,"left","commentLeft"),o=this.raw(s,"right","commentRight");this.builder("/*"+n+s.text+o+"*/",s)}decl(s,n){let o=this.raw(s,"between","colon"),u=s.prop+o+this.rawValue(s,"value");s.important&&(u+=s.raws.important||" !important"),n&&(u+=";"),this.builder(u,s)}document(s){this.body(s)}raw(s,n,o){let u;if(o||(o=n),n&&(u=s.raws[n],typeof u!="undefined"))return u;let a=s.parent;if(o==="before"&&(!a||a.type==="root"&&a.first===s||a&&a.type==="document"))return"";if(!a)return e[o];let c=s.root();if(c.rawCache||(c.rawCache={}),typeof c.rawCache[o]!="undefined")return c.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(s,o);{let l="raw"+t(o);this[l]?u=this[l](c,s):c.walk(d=>{if(u=d.raws[n],typeof u!="undefined")return!1})}return typeof u=="undefined"&&(u=e[o]),c.rawCache[o]=u,u}rawBeforeClose(s){let n;return s.walk(o=>{if(o.nodes&&o.nodes.length>0&&typeof o.raws.after!="undefined")return n=o.raws.after,n.includes(`
|
|
29
|
+
`)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawBeforeComment(s,n){let o;return s.walkComments(u=>{if(typeof u.raws.before!="undefined")return o=u.raws.before,o.includes(`
|
|
30
|
+
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(n,null,"beforeDecl"):o&&(o=o.replace(/\S/g,"")),o}rawBeforeDecl(s,n){let o;return s.walkDecls(u=>{if(typeof u.raws.before!="undefined")return o=u.raws.before,o.includes(`
|
|
31
|
+
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(n,null,"beforeRule"):o&&(o=o.replace(/\S/g,"")),o}rawBeforeOpen(s){let n;return s.walk(o=>{if(o.type!=="decl"&&(n=o.raws.between,typeof n!="undefined"))return!1}),n}rawBeforeRule(s){let n;return s.walk(o=>{if(o.nodes&&(o.parent!==s||s.first!==o)&&typeof o.raws.before!="undefined")return n=o.raws.before,n.includes(`
|
|
32
|
+
`)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawColon(s){let n;return s.walkDecls(o=>{if(typeof o.raws.between!="undefined")return n=o.raws.between.replace(/[^\s:]/g,""),!1}),n}rawEmptyBody(s){let n;return s.walk(o=>{if(o.nodes&&o.nodes.length===0&&(n=o.raws.after,typeof n!="undefined"))return!1}),n}rawIndent(s){if(s.raws.indent)return s.raws.indent;let n;return s.walk(o=>{let u=o.parent;if(u&&u!==s&&u.parent&&u.parent===s&&typeof o.raws.before!="undefined"){let a=o.raws.before.split(`
|
|
33
|
+
`);return n=a[a.length-1],n=n.replace(/\S/g,""),!1}}),n}rawSemicolon(s){let n;return s.walk(o=>{if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(n=o.raws.semicolon,typeof n!="undefined"))return!1}),n}rawValue(s,n){let o=s[n],u=s.raws[n];return u&&u.value===o?u.raw:o}root(s){this.body(s),s.raws.after&&this.builder(s.raws.after)}rule(s){this.block(s,this.rawValue(s,"selector")),s.raws.ownSemicolon&&this.builder(s.raws.ownSemicolon,s,"end")}stringify(s,n){if(!this[s.type])throw new Error("Unknown AST node type "+s.type+". Maybe you need to change PostCSS stringifier.");this[s.type](s,n)}}return ms=r,r.default=r,ms}var gs,ra;function Qi(){if(ra)return gs;ra=1;let e=Au();function t(r,i){new e(i).stringify(r)}return gs=t,t.default=t,gs}var vs,ia;function Ki(){if(ia)return vs;ia=1;let{isClean:e,my:t}=uo(),r=lo(),i=Au(),s=Qi();function n(u,a){let c=new u.constructor;for(let l in u){if(!Object.prototype.hasOwnProperty.call(u,l)||l==="proxyCache")continue;let d=u[l],f=typeof d;l==="parent"&&f==="object"?a&&(c[l]=a):l==="source"?c[l]=d:Array.isArray(d)?c[l]=d.map(h=>n(h,c)):(f==="object"&&d!==null&&(d=n(d)),c[l]=d)}return c}class o{constructor(a={}){this.raws={},this[e]=!1,this[t]=!0;for(let c in a)if(c==="nodes"){this.nodes=[];for(let l of a[c])typeof l.clone=="function"?this.append(l.clone()):this.append(l)}else this[c]=a[c]}addToError(a){if(a.postcssNode=this,a.stack&&this.source&&/\n\s{4}at /.test(a.stack)){let c=this.source;a.stack=a.stack.replace(/\n\s{4}at /,`$&${c.input.from}:${c.start.line}:${c.start.column}$&`)}return a}after(a){return this.parent.insertAfter(this,a),this}assign(a={}){for(let c in a)this[c]=a[c];return this}before(a){return this.parent.insertBefore(this,a),this}cleanRaws(a){delete this.raws.before,delete this.raws.after,a||delete this.raws.between}clone(a={}){let c=n(this);for(let l in a)c[l]=a[l];return c}cloneAfter(a={}){let c=this.clone(a);return this.parent.insertAfter(this,c),c}cloneBefore(a={}){let c=this.clone(a);return this.parent.insertBefore(this,c),c}error(a,c={}){if(this.source){let{end:l,start:d}=this.rangeBy(c);return this.source.input.error(a,{column:d.column,line:d.line},{column:l.column,line:l.line},c)}return new r(a)}getProxyProcessor(){return{get(a,c){return c==="proxyOf"?a:c==="root"?()=>a.root().toProxy():a[c]},set(a,c,l){return a[c]===l||(a[c]=l,(c==="prop"||c==="value"||c==="name"||c==="params"||c==="important"||c==="text")&&a.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let a=this;for(;a=a.parent;)a[e]=!1}}next(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a+1]}positionBy(a,c){let l=this.source.start;if(a.index)l=this.positionInside(a.index,c);else if(a.word){c=this.toString();let d=c.indexOf(a.word);d!==-1&&(l=this.positionInside(d,c))}return l}positionInside(a,c){let l=c||this.toString(),d=this.source.start.column,f=this.source.start.line;for(let h=0;h<a;h++)l[h]===`
|
|
34
|
+
`?(d=1,f+=1):d+=1;return{column:d,line:f}}prev(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a-1]}rangeBy(a){let c={column:this.source.start.column,line:this.source.start.line},l=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:c.column+1,line:c.line};if(a.word){let d=this.toString(),f=d.indexOf(a.word);f!==-1&&(c=this.positionInside(f,d),l=this.positionInside(f+a.word.length,d))}else a.start?c={column:a.start.column,line:a.start.line}:a.index&&(c=this.positionInside(a.index)),a.end?l={column:a.end.column,line:a.end.line}:typeof a.endIndex=="number"?l=this.positionInside(a.endIndex):a.index&&(l=this.positionInside(a.index+1));return(l.line<c.line||l.line===c.line&&l.column<=c.column)&&(l={column:c.column+1,line:c.line}),{end:l,start:c}}raw(a,c){return new i().raw(this,a,c)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...a){if(this.parent){let c=this,l=!1;for(let d of a)d===this?l=!0:l?(this.parent.insertAfter(c,d),c=d):this.parent.insertBefore(c,d);l||this.remove()}return this}root(){let a=this;for(;a.parent&&a.parent.type!=="document";)a=a.parent;return a}toJSON(a,c){let l={},d=c==null;c=c||new Map;let f=0;for(let h in this){if(!Object.prototype.hasOwnProperty.call(this,h)||h==="parent"||h==="proxyCache")continue;let m=this[h];if(Array.isArray(m))l[h]=m.map(p=>typeof p=="object"&&p.toJSON?p.toJSON(null,c):p);else if(typeof m=="object"&&m.toJSON)l[h]=m.toJSON(null,c);else if(h==="source"){let p=c.get(m.input);p==null&&(p=f,c.set(m.input,f),f++),l[h]={end:m.end,inputId:p,start:m.start}}else l[h]=m}return d&&(l.inputs=[...c.keys()].map(h=>h.toJSON())),l}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(a=s){a.stringify&&(a=a.stringify);let c="";return a(this,l=>{c+=l}),c}warn(a,c,l){let d={node:this};for(let f in l)d[f]=l[f];return a.warn(c,d)}get proxyOf(){return this}}return vs=o,o.default=o,vs}var ys,sa;function Zi(){if(sa)return ys;sa=1;let e=Ki();class t extends e{constructor(i){i&&typeof i.value!="undefined"&&typeof i.value!="string"&&(i=Se(Q({},i),{value:String(i.value)})),super(i),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return ys=t,t.default=t,ys}var ws,na;function _h(){if(na)return ws;na=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return ws={nanoid:(i=21)=>{let s="",n=i;for(;n--;)s+=e[Math.random()*64|0];return s},customAlphabet:(i,s=21)=>(n=s)=>{let o="",u=n;for(;u--;)o+=i[Math.random()*i.length|0];return o}},ws}var bs,oa;function Du(){if(oa)return bs;oa=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ot,{existsSync:r,readFileSync:i}=ot,{dirname:s,join:n}=ot;function o(a){return Buffer?Buffer.from(a,"base64").toString():window.atob(a)}class u{constructor(c,l){if(l.map===!1)return;this.loadAnnotation(c),this.inline=this.startWith(this.annotation,"data:");let d=l.map?l.map.prev:void 0,f=this.loadMap(l.from,d);!this.mapFile&&l.from&&(this.mapFile=l.from),this.mapFile&&(this.root=s(this.mapFile)),f&&(this.text=f)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(c){let l=/^data:application\/json;charset=utf-?8;base64,/,d=/^data:application\/json;base64,/,f=/^data:application\/json;charset=utf-?8,/,h=/^data:application\/json,/;if(f.test(c)||h.test(c))return decodeURIComponent(c.substr(RegExp.lastMatch.length));if(l.test(c)||d.test(c))return o(c.substr(RegExp.lastMatch.length));let m=c.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}getAnnotationURL(c){return c.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(c){return typeof c!="object"?!1:typeof c.mappings=="string"||typeof c._mappings=="string"||Array.isArray(c.sections)}loadAnnotation(c){let l=c.match(/\/\*\s*# sourceMappingURL=/gm);if(!l)return;let d=c.lastIndexOf(l.pop()),f=c.indexOf("*/",d);d>-1&&f>-1&&(this.annotation=this.getAnnotationURL(c.substring(d,f)))}loadFile(c){if(this.root=s(c),r(c))return this.mapFile=c,i(c,"utf-8").toString().trim()}loadMap(c,l){if(l===!1)return!1;if(l){if(typeof l=="string")return l;if(typeof l=="function"){let d=l(c);if(d){let f=this.loadFile(d);if(!f)throw new Error("Unable to load previous source map: "+d.toString());return f}}else{if(l instanceof e)return t.fromSourceMap(l).toString();if(l instanceof t)return l.toString();if(this.isMap(l))return JSON.stringify(l);throw new Error("Unsupported previous source map format: "+l.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let d=this.annotation;return c&&(d=n(s(c),d)),this.loadFile(d)}}}startWith(c,l){return c?c.substr(0,l.length)===l:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return bs=u,u.default=u,bs}var _s,aa;function es(){if(aa)return _s;aa=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ot,{fileURLToPath:r,pathToFileURL:i}=ot,{isAbsolute:s,resolve:n}=ot,{nanoid:o}=_h(),u=ot,a=lo(),c=Du(),l=Symbol("fromOffsetCache"),d=!!(e&&t),f=!!(n&&s);class h{constructor(p,g={}){if(p===null||typeof p=="undefined"||typeof p=="object"&&!p.toString)throw new Error(`PostCSS received ${p} instead of CSS string`);if(this.css=p.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!f||/^\w+:\/\//.test(g.from)||s(g.from)?this.file=g.from:this.file=n(g.from)),f&&d){let y=new c(this.css,g);if(y.text){this.map=y;let b=y.consumer().file;!this.file&&b&&(this.file=this.mapResolve(b))}}this.file||(this.id="<input css "+o(6)+">"),this.map&&(this.map.file=this.from)}error(p,g,y,b={}){let _,S,v;if(g&&typeof g=="object"){let E=g,C=y;if(typeof E.offset=="number"){let A=this.fromOffset(E.offset);g=A.line,y=A.col}else g=E.line,y=E.column;if(typeof C.offset=="number"){let A=this.fromOffset(C.offset);S=A.line,v=A.col}else S=C.line,v=C.column}else if(!y){let E=this.fromOffset(g);g=E.line,y=E.col}let w=this.origin(g,y,S,v);return w?_=new a(p,w.endLine===void 0?w.line:{column:w.column,line:w.line},w.endLine===void 0?w.column:{column:w.endColumn,line:w.endLine},w.source,w.file,b.plugin):_=new a(p,S===void 0?g:{column:y,line:g},S===void 0?y:{column:v,line:S},this.css,this.file,b.plugin),_.input={column:y,endColumn:v,endLine:S,line:g,source:this.css},this.file&&(i&&(_.input.url=i(this.file).toString()),_.input.file=this.file),_}fromOffset(p){let g,y;if(this[l])y=this[l];else{let _=this.css.split(`
|
|
35
|
+
`);y=new Array(_.length);let S=0;for(let v=0,w=_.length;v<w;v++)y[v]=S,S+=_[v].length+1;this[l]=y}g=y[y.length-1];let b=0;if(p>=g)b=y.length-1;else{let _=y.length-2,S;for(;b<_;)if(S=b+(_-b>>1),p<y[S])_=S-1;else if(p>=y[S+1])b=S+1;else{b=S;break}}return{col:p-y[b]+1,line:b+1}}mapResolve(p){return/^\w+:\/\//.test(p)?p:n(this.map.consumer().sourceRoot||this.map.root||".",p)}origin(p,g,y,b){if(!this.map)return!1;let _=this.map.consumer(),S=_.originalPositionFor({column:g,line:p});if(!S.source)return!1;let v;typeof y=="number"&&(v=_.originalPositionFor({column:b,line:y}));let w;s(S.source)?w=i(S.source):w=new URL(S.source,this.map.consumer().sourceRoot||i(this.map.mapFile));let E={column:S.column,endColumn:v&&v.column,endLine:v&&v.line,line:S.line,url:w.toString()};if(w.protocol==="file:")if(r)E.file=r(w);else throw new Error("file: protocol is not available in this PostCSS build");let C=_.sourceContentFor(S.source);return C&&(E.source=C),E}toJSON(){let p={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(p[g]=this[g]);return this.map&&(p.map=Q({},this.map),p.map.consumerCache&&(p.map.consumerCache=void 0)),p}get from(){return this.file||this.id}}return _s=h,h.default=h,u&&u.registerInput&&u.registerInput(h),_s}var Ss,la;function Tu(){if(la)return Ss;la=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ot,{dirname:r,relative:i,resolve:s,sep:n}=ot,{pathToFileURL:o}=ot,u=es(),a=!!(e&&t),c=!!(r&&s&&i&&n);class l{constructor(f,h,m,p){this.stringify=f,this.mapOpts=m.map||{},this.root=h,this.opts=m,this.css=p,this.originalCSS=p,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let f;this.isInline()?f="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?f=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?f=this.mapOpts.annotation(this.opts.to,this.root):f=this.outputFile()+".map";let h=`
|
|
34
36
|
`;this.css.includes(`\r
|
|
35
|
-
`)&&(
|
|
36
|
-
`),this.css+=
|
|
37
|
-
`),t=l.length-n):t+=l.length,a&&u!=="start"){let c=a.parent||{raws:{}};(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==c.last||c.raws.semicolon)&&(a.source&&a.source.end?(s.source=this.sourcePath(a),s.original.line=a.source.end.line,s.original.column=a.source.end.column-1,s.generated.line=e,s.generated.column=t-2,this.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,s.generated.line=e,s.generated.column=t-1,this.map.addMapping(s)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let i=this.opts.to?si(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=si(qn(i,this.mapOpts.annotation)));let s=Qn(i,e);return this.memoizedPaths.set(e,s),s}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new Wa(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let i=t.source.input.from;if(i&&!e[i]){e[i]=!0;let s=this.usesFileUrls?this.toFileUrl(i):this.toUrl(this.path(i));this.map.setSourceContent(s,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(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))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(Os){let i=Os(e).toString();return this.memoizedFileURLs.set(e,i),i}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;eo==="\\"&&(e=e.replace(/\\/g,"/"));let i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i}};var to=ja;let Za=Ei,cr=class extends Za{constructor(e){super(e),this.type="comment"}};var Ri=cr;cr.default=cr;let{isClean:io,my:ro}=Rt,so=xi,no=Ri,Ha=Ei,oo,Yr,jr,lo;function ao(r){return r.map(e=>(e.nodes&&(e.nodes=ao(e.nodes)),delete e.source,e))}function uo(r){if(r[io]=!1,r.proxyOf.nodes)for(let e of r.proxyOf.nodes)uo(e)}let Re=class co extends Ha{append(...e){for(let t of e){let i=this.normalize(t,this.last);for(let s of i)this.proxyOf.nodes.push(s)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),i,s;for(;this.indexes[t]<this.proxyOf.nodes.length&&(i=this.indexes[t],s=e(this.proxyOf.nodes[i],i),s!==!1);)this.indexes[t]+=1;return delete this.indexes[t],s}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...i)=>e[t](...i.map(s=>typeof s=="function"?(o,n)=>s(o.toProxy(),n):s)):t==="every"||t==="some"?i=>e[t]((s,...o)=>i(s.toProxy(),...o)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(i=>i.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,i){return e[t]===i||(e[t]=i,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let i=this.index(e),s=this.normalize(t,this.proxyOf.nodes[i]).reverse();i=this.index(e);for(let n of s)this.proxyOf.nodes.splice(i+1,0,n);let o;for(let n in this.indexes)o=this.indexes[n],i<o&&(this.indexes[n]=o+s.length);return this.markDirty(),this}insertBefore(e,t){let i=this.index(e),s=i===0?"prepend":!1,o=this.normalize(t,this.proxyOf.nodes[i],s).reverse();i=this.index(e);for(let l of o)this.proxyOf.nodes.splice(i,0,l);let n;for(let l in this.indexes)n=this.indexes[l],i<=n&&(this.indexes[l]=n+o.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=ao(oo(e).nodes);else if(typeof e=="undefined")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value=="undefined")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new so(e)]}else if(e.selector)e=[new Yr(e)];else if(e.name)e=[new jr(e)];else if(e.text)e=[new no(e)];else throw new Error("Unknown node type in node creation");return e.map(s=>(s[ro]||co.rebuild(s),s=s.proxyOf,s.parent&&s.parent.removeChild(s),s[io]&&uo(s),typeof s.raws.before=="undefined"&&t&&typeof t.raws.before!="undefined"&&(s.raws.before=t.raws.before.replace(/\S/g,"")),s.parent=this.proxyOf,s))}prepend(...e){e=e.reverse();for(let t of e){let i=this.normalize(t,this.first,"prepend").reverse();for(let s of i)this.proxyOf.nodes.unshift(s);for(let s in this.indexes)this.indexes[s]=this.indexes[s]+i.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let i in this.indexes)t=this.indexes[i],t>=e&&(this.indexes[i]=t-1);return this.markDirty(),this}replaceValues(e,t,i){return i||(i=t,t={}),this.walkDecls(s=>{t.props&&!t.props.includes(s.prop)||t.fast&&!s.value.includes(t.fast)||(s.value=s.value.replace(e,i))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,i)=>{let s;try{s=e(t,i)}catch(o){throw t.addToError(o)}return s!==!1&&t.walk&&(s=t.walk(e)),s})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((i,s)=>{if(i.type==="atrule"&&e.test(i.name))return t(i,s)}):this.walk((i,s)=>{if(i.type==="atrule"&&i.name===e)return t(i,s)}):(t=e,this.walk((i,s)=>{if(i.type==="atrule")return t(i,s)}))}walkComments(e){return this.walk((t,i)=>{if(t.type==="comment")return e(t,i)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((i,s)=>{if(i.type==="decl"&&e.test(i.prop))return t(i,s)}):this.walk((i,s)=>{if(i.type==="decl"&&i.prop===e)return t(i,s)}):(t=e,this.walk((i,s)=>{if(i.type==="decl")return t(i,s)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((i,s)=>{if(i.type==="rule"&&e.test(i.selector))return t(i,s)}):this.walk((i,s)=>{if(i.type==="rule"&&i.selector===e)return t(i,s)}):(t=e,this.walk((i,s)=>{if(i.type==="rule")return t(i,s)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};Re.registerParse=r=>{oo=r};Re.registerRule=r=>{Yr=r};Re.registerAtRule=r=>{jr=r};Re.registerRoot=r=>{lo=r};var Fe=Re;Re.default=Re;Re.rebuild=r=>{r.type==="atrule"?Object.setPrototypeOf(r,jr.prototype):r.type==="rule"?Object.setPrototypeOf(r,Yr.prototype):r.type==="decl"?Object.setPrototypeOf(r,so.prototype):r.type==="comment"?Object.setPrototypeOf(r,no.prototype):r.type==="root"&&Object.setPrototypeOf(r,lo.prototype),r[ro]=!0,r.nodes&&r.nodes.forEach(e=>{Re.rebuild(e)})};let Xa=Fe,ho,fo,wt=class extends Xa{constructor(e){super(U({type:"document"},e)),this.nodes||(this.nodes=[])}toResult(e={}){return new ho(new fo,this,e).stringify()}};wt.registerLazyResult=r=>{ho=r};wt.registerProcessor=r=>{fo=r};var Zr=wt;wt.default=wt;let hr=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let i=t.node.rangeBy(t);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in t)this[i]=t[i]}toString(){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}};var po=hr;hr.default=hr;let Ja=po,fr=class{constructor(e,t,i){this.processor=e,this.messages=[],this.root=t,this.opts=i,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let i=new Ja(e,t);return this.messages.push(i),i}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var Hr=fr;fr.default=fr;const Ui=39,_s=34,kt=92,Ts=47,Pt=10,ot=32,$t=12,Lt=9,Ft=13,Ka=91,Qa=93,qa=40,eu=41,tu=123,iu=125,ru=59,su=42,nu=58,ou=64,Bt=/[\t\n\f\r "#'()/;[\\\]{}]/g,Ut=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,lu=/.[\r\n"'(/\\]/,ks=/[\da-f]/i;var au=function(e,t={}){let i=e.css.valueOf(),s=t.ignoreErrors,o,n,l,a,u,c,h,f,g,d,A=i.length,p=0,m=[],w=[];function v(){return p}function x(I){throw e.error("Unclosed "+I,p)}function R(){return w.length===0&&p>=A}function D(I){if(w.length)return w.pop();if(p>=A)return;let J=I?I.ignoreUnclosed:!1;switch(o=i.charCodeAt(p),o){case Pt:case ot:case Lt:case Ft:case $t:{n=p;do n+=1,o=i.charCodeAt(n);while(o===ot||o===Pt||o===Lt||o===Ft||o===$t);d=["space",i.slice(p,n)],p=n-1;break}case Ka:case Qa:case tu:case iu:case nu:case ru:case eu:{let z=String.fromCharCode(o);d=[z,z,p];break}case qa:{if(f=m.length?m.pop()[1]:"",g=i.charCodeAt(p+1),f==="url"&&g!==Ui&&g!==_s&&g!==ot&&g!==Pt&&g!==Lt&&g!==$t&&g!==Ft){n=p;do{if(c=!1,n=i.indexOf(")",n+1),n===-1)if(s||J){n=p;break}else x("bracket");for(h=n;i.charCodeAt(h-1)===kt;)h-=1,c=!c}while(c);d=["brackets",i.slice(p,n+1),p,n],p=n}else n=i.indexOf(")",p+1),a=i.slice(p,n+1),n===-1||lu.test(a)?d=["(","(",p]:(d=["brackets",a,p,n],p=n);break}case Ui:case _s:{l=o===Ui?"'":'"',n=p;do{if(c=!1,n=i.indexOf(l,n+1),n===-1)if(s||J){n=p+1;break}else x("string");for(h=n;i.charCodeAt(h-1)===kt;)h-=1,c=!c}while(c);d=["string",i.slice(p,n+1),p,n],p=n;break}case ou:{Bt.lastIndex=p+1,Bt.test(i),Bt.lastIndex===0?n=i.length-1:n=Bt.lastIndex-2,d=["at-word",i.slice(p,n+1),p,n],p=n;break}case kt:{for(n=p,u=!0;i.charCodeAt(n+1)===kt;)n+=1,u=!u;if(o=i.charCodeAt(n+1),u&&o!==Ts&&o!==ot&&o!==Pt&&o!==Lt&&o!==Ft&&o!==$t&&(n+=1,ks.test(i.charAt(n)))){for(;ks.test(i.charAt(n+1));)n+=1;i.charCodeAt(n+1)===ot&&(n+=1)}d=["word",i.slice(p,n+1),p,n],p=n;break}default:{o===Ts&&i.charCodeAt(p+1)===su?(n=i.indexOf("*/",p+2)+1,n===0&&(s||J?n=i.length:x("comment")),d=["comment",i.slice(p,n+1),p,n],p=n):(Ut.lastIndex=p+1,Ut.test(i),Ut.lastIndex===0?n=i.length-1:n=Ut.lastIndex-2,d=["word",i.slice(p,n+1),p,n],m.push(d),p=n);break}}return p++,d}function Z(I){w.push(I)}return{back:Z,endOfFile:R,nextToken:D,position:v}};let mo=Fe,ci=class extends mo{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var Xr=ci;ci.default=ci;mo.registerAtRule(ci);let go=Fe,yo,wo,Ke=class extends go{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,i){let s=super.normalize(e);if(t){if(i==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let o of s)o.raws.before=t.raws.before}return s}removeChild(e,t){let i=this.index(e);return!t&&i===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[i].raws.before),super.removeChild(e)}toResult(e={}){return new yo(new wo,this,e).stringify()}};Ke.registerLazyResult=r=>{yo=r};Ke.registerProcessor=r=>{wo=r};var Nt=Ke;Ke.default=Ke;go.registerRoot(Ke);let vt={comma(r){return vt.split(r,[","],!0)},space(r){let e=[" ",`
|
|
38
|
-
`," "];return vt.split(r,e)},split(r,e,t){let i=[],s="",o=!1,n=0,l=!1,a="",u=!1;for(let c of r)u?u=!1:c==="\\"?u=!0:l?c===a&&(l=!1):c==='"'||c==="'"?(l=!0,a=c):c==="("?n+=1:c===")"?n>0&&(n-=1):n===0&&e.includes(c)&&(o=!0),o?(s!==""&&i.push(s.trim()),s="",o=!1):s+=c;return(t||s!=="")&&i.push(s.trim()),i}};var vo=vt;vt.default=vt;let bo=Fe,uu=vo,hi=class extends bo{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return uu.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,i=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(i)}};var Jr=hi;hi.default=hi;bo.registerRule(hi);let cu=xi,hu=au,fu=Ri,pu=Xr,du=Nt,Ps=Jr;const $s={empty:!0,space:!0};function mu(r){for(let e=r.length-1;e>=0;e--){let t=r[e],i=t[3]||t[2];if(i)return i}}let gu=class{constructor(e){this.input=e,this.root=new du,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new pu;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let i,s,o,n=!1,l=!1,a=[],u=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),i=e[0],i==="("||i==="["?u.push(i==="("?")":"]"):i==="{"&&u.length>0?u.push("}"):i===u[u.length-1]&&u.pop(),u.length===0)if(i===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(i==="{"){l=!0;break}else if(i==="}"){if(a.length>0){for(o=a.length-1,s=a[o];s&&s[0]==="space";)s=a[--o];s&&(t.source.end=this.getPosition(s[3]||s[2]),t.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){n=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),n&&(e=a[a.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),l&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let i=0,s;for(let o=t-1;o>=0&&(s=e[o],!(s[0]!=="space"&&(i+=1,i===2)));o--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(e){let t=0,i,s,o;for(let[n,l]of e.entries()){if(i=l,s=i[0],s==="("&&(t+=1),s===")"&&(t-=1),t===0&&s===":")if(!o)this.doubleColon(i);else{if(o[0]==="word"&&o[1]==="progid")continue;return n}o=i}return!1}comment(e){let t=new fu;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let i=e[1].slice(2,-2);if(/^\s*$/.test(i))t.text="",t.raws.left=i,t.raws.right="";else{let s=i.match(/^(\s*)([^]*\S)(\s*)$/);t.text=s[2],t.raws.left=s[1],t.raws.right=s[3]}}createTokenizer(){this.tokenizer=hu(this.input)}decl(e,t){let i=new cu;this.init(i,e[0][2]);let s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(s[3]||s[2]||mu(e)),i.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){let u=e[0][0];if(u===":"||u==="space"||u==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";let o;for(;e.length;)if(o=e.shift(),o[0]===":"){i.raws.between+=o[1];break}else o[0]==="word"&&/\w/.test(o[1])&&this.unknownWord([o]),i.raws.between+=o[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let n=[],l;for(;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)n.push(e.shift());this.precheckMissedSemicolon(e);for(let u=e.length-1;u>=0;u--){if(o=e[u],o[1].toLowerCase()==="!important"){i.important=!0;let c=this.stringFrom(e,u);c=this.spacesFromEnd(e)+c,c!==" !important"&&(i.raws.important=c);break}else if(o[1].toLowerCase()==="important"){let c=e.slice(0),h="";for(let f=u;f>0;f--){let g=c[f][0];if(h.trim().indexOf("!")===0&&g!=="space")break;h=c.pop()[1]+h}h.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=h,e=c)}if(o[0]!=="space"&&o[0]!=="comment")break}e.some(u=>u[0]!=="space"&&u[0]!=="comment")&&(i.raws.between+=n.map(u=>u[1]).join(""),n=[]),this.raw(i,"value",n.concat(e),t),i.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new Ps;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(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)}endFile(){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())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,i=null,s=!1,o=null,n=[],l=e[1].startsWith("--"),a=[],u=e;for(;u;){if(i=u[0],a.push(u),i==="("||i==="[")o||(o=u),n.push(i==="("?")":"]");else if(l&&s&&i==="{")o||(o=u),n.push("}");else if(n.length===0)if(i===";")if(s){this.decl(a,l);return}else break;else if(i==="{"){this.rule(a);return}else if(i==="}"){this.tokenizer.back(a.pop()),t=!0;break}else i===":"&&(s=!0);else i===n[n.length-1]&&(n.pop(),n.length===0&&(o=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),n.length>0&&this.unclosedBracket(o),t&&s){if(!l)for(;a.length&&(u=a[a.length-1][0],!(u!=="space"&&u!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,l)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[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);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,i,s){let o,n,l=i.length,a="",u=!0,c,h;for(let f=0;f<l;f+=1)o=i[f],n=o[0],n==="space"&&f===l-1&&!s?u=!1:n==="comment"?(h=i[f-1]?i[f-1][0]:"empty",c=i[f+1]?i[f+1][0]:"empty",!$s[h]&&!$s[c]?a.slice(-1)===","?u=!1:a+=o[1]:u=!1):a+=o[1];if(!u){let f=i.reduce((g,d)=>g+d[1],"");e.raws[t]={raw:f,value:a}}e[t]=a}rule(e){e.pop();let t=new Ps;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,i="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)i=e.pop()[1]+i;return i}spacesAndCommentsFromStart(e){let t,i="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)i+=e.shift()[1];return i}spacesFromEnd(e){let t,i="";for(;e.length&&(t=e[e.length-1][0],t==="space");)i=e.pop()[1]+i;return i}stringFrom(e,t){let i="";for(let s=t;s<e.length;s++)i+=e[s][1];return e.splice(t,e.length-t),i}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};var yu=gu;let wu=Fe,vu=yu,bu=Ai;function fi(r,e){let t=new bu(r,e),i=new vu(t);try{i.parse()}catch(s){throw s}return i.root}var Kr=fi;fi.default=fi;wu.registerParse(fi);let{isClean:be,my:Cu}=Rt,Su=to,Eu=Si,xu=Fe,Au=Zr;let Ls=Hr,Ru=Kr,Nu=Nt;const Mu={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Iu={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},Du={Once:!0,postcssPlugin:!0,prepare:!0},Qe=0;function lt(r){return typeof r=="object"&&typeof r.then=="function"}function Co(r){let e=!1,t=Mu[r.type];return r.type==="decl"?e=r.prop.toLowerCase():r.type==="atrule"&&(e=r.name.toLowerCase()),e&&r.append?[t,t+"-"+e,Qe,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:r.append?[t,Qe,t+"Exit"]:[t,t+"Exit"]}function Fs(r){let e;return r.type==="document"?e=["Document",Qe,"DocumentExit"]:r.type==="root"?e=["Root",Qe,"RootExit"]:e=Co(r),{eventIndex:0,events:e,iterator:0,node:r,visitorIndex:0,visitors:[]}}function pr(r){return r[be]=!1,r.nodes&&r.nodes.forEach(e=>pr(e)),r}let dr={},qe=class So{constructor(e,t,i){this.stringified=!1,this.processed=!1;let s;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))s=pr(t);else if(t instanceof So||t instanceof Ls)s=pr(t.root),t.map&&(typeof i.map=="undefined"&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=t.map);else{let o=Ru;i.syntax&&(o=i.syntax.parse),i.parser&&(o=i.parser),o.parse&&(o=o.parse);try{s=o(t,i)}catch(n){this.processed=!0,this.error=n}s&&!s[Cu]&&xu.rebuild(s)}this.result=new Ls(e,s,i),this.helpers=le(U({},dr),{postcss:dr,result:this.result}),this.plugins=this.processor.plugins.map(o=>typeof o=="object"&&o.prepare?U(U({},o),o.prepare(this.result)):o)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let i=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=i.postcssPlugin,e.setMessage()):i.postcssVersion}catch(s){console&&console.error&&console.error(s)}return e}prepareVisitors(){this.listeners={};let e=(t,i,s)=>{this.listeners[i]||(this.listeners[i]=[]),this.listeners[i].push([t,s])};for(let t of this.plugins)if(typeof t=="object")for(let i in t){if(!Iu[i]&&/^[A-Z]/.test(i))throw new Error(`Unknown event ${i} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Du[i])if(typeof t[i]=="object")for(let s in t[i])s==="*"?e(t,i,t[i][s]):e(t,i+"-"+s.toLowerCase(),t[i][s]);else typeof t[i]=="function"&&e(t,i,t[i])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],i=this.runOnRoot(t);if(lt(i))try{await i}catch(s){throw this.handleError(s)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[be];){e[be]=!0;let t=[Fs(e)];for(;t.length>0;){let i=this.visitTick(t);if(lt(i))try{await i}catch(s){let o=t[t.length-1].node;throw this.handleError(s,o)}}}if(this.listeners.OnceExit)for(let[t,i]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let s=e.nodes.map(o=>i(o,this.helpers));await Promise.all(s)}else await i(e,this.helpers)}catch(s){throw this.handleError(s)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(i=>e.Once(i,this.helpers));return lt(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=Eu;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let s=new Su(t,this.result.root,this.result.opts).generate();return this.result.css=s[0],this.result.map=s[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(lt(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[be];)e[be]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[i,s]of e){this.result.lastPlugin=i;let o;try{o=s(t,this.helpers)}catch(n){throw this.handleError(n,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(lt(o))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:i,visitors:s}=t;if(i.type!=="root"&&i.type!=="document"&&!i.parent){e.pop();return}if(s.length>0&&t.visitorIndex<s.length){let[n,l]=s[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===s.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=n;try{return l(i.toProxy(),this.helpers)}catch(a){throw this.handleError(a,i)}}if(t.iterator!==0){let n=t.iterator,l;for(;l=i.nodes[i.indexes[n]];)if(i.indexes[n]+=1,!l[be]){l[be]=!0,e.push(Fs(l));return}t.iterator=0,delete i.indexes[n]}let o=t.events;for(;t.eventIndex<o.length;){let n=o[t.eventIndex];if(t.eventIndex+=1,n===Qe){i.nodes&&i.nodes.length&&(i[be]=!0,t.iterator=i.getIterator());return}else if(this.listeners[n]){t.visitors=this.listeners[n];return}}e.pop()}walkSync(e){e[be]=!0;let t=Co(e);for(let i of t)if(i===Qe)e.nodes&&e.each(s=>{s[be]||this.walkSync(s)});else{let s=this.listeners[i];if(s&&this.visitSync(s,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};qe.registerPostcss=r=>{dr=r};var Eo=qe;qe.default=qe;Nu.registerLazyResult(qe);Au.registerLazyResult(qe);let Ou=to,_u=Si;let Tu=Kr;const ku=Hr;let mr=class{constructor(e,t,i){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=i,this._map=void 0;let s,o=_u;this.result=new ku(this._processor,s,this._opts),this.result.css=t;let n=this;Object.defineProperty(this.result,"root",{get(){return n.root}});let l=new Ou(o,s,this._opts,t);if(l.isMap()){let[a,u]=l.generate();a&&(this.result.css=a),u&&(this.result.map=u)}else l.clearAnnotation(),this.result.css=l.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=Tu;try{e=t(this._css,this._opts)}catch(i){this.error=i}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var Pu=mr;mr.default=mr;let $u=Pu,Lu=Eo,Fu=Zr,Bu=Nt,bt=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let i of e)if(i.postcss===!0?i=i():i.postcss&&(i=i.postcss),typeof i=="object"&&Array.isArray(i.plugins))t=t.concat(i.plugins);else if(typeof i=="object"&&i.postcssPlugin)t.push(i);else if(typeof i=="function")t.push(i);else if(!(typeof i=="object"&&(i.parse||i.stringify)))throw new Error(i+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new $u(this,e,t):new Lu(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var Uu=bt;bt.default=bt;Bu.registerProcessor(bt);Fu.registerProcessor(bt);let zu=xi,Vu=Jn,Wu=Ri,Gu=Xr,Yu=Ai,ju=Nt,Zu=Jr;function Ct(r,e){if(Array.isArray(r))return r.map(n=>Ct(n));let s=r,{inputs:t}=s,i=nt(s,["inputs"]);if(t){e=[];for(let n of t){let l=le(U({},n),{__proto__:Yu.prototype});l.map&&(l.map=le(U({},l.map),{__proto__:Vu.prototype})),e.push(l)}}if(i.nodes&&(i.nodes=r.nodes.map(n=>Ct(n,e))),i.source){let o=i.source,{inputId:n}=o,l=nt(o,["inputId"]);i.source=l,n!=null&&(i.source.input=e[n])}if(i.type==="root")return new ju(i);if(i.type==="decl")return new zu(i);if(i.type==="rule")return new Zu(i);if(i.type==="comment")return new Wu(i);if(i.type==="atrule")return new Gu(i);throw new Error("Unknown node type: "+r.type)}var Hu=Ct;Ct.default=Ct;let Xu=Gr,xo=xi,Ju=Eo,Ku=Fe,Qr=Uu,Qu=Si,qu=Hu,Ao=Zr,ec=po,Ro=Ri,No=Xr,tc=Hr,ic=Ai,rc=Kr,sc=vo,Mo=Jr,Io=Nt,nc=Ei;function F(...r){return r.length===1&&Array.isArray(r[0])&&(r=r[0]),new Qr(r)}F.plugin=function(e,t){let i=!1;function s(...n){console&&console.warn&&!i&&(i=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
|
39
|
-
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(
|
|
40
|
-
https://www.w3ctech.com/topic/2226`));let l=t(...n);return l.postcssPlugin=e,l.postcssVersion=new Qr().version,l}let o;return Object.defineProperty(s,"postcss",{get(){return o||(o=s()),o}}),s.process=function(n,l,a){return F([s(a)]).process(n,l)},s};F.stringify=Qu;F.parse=rc;F.fromJSON=qu;F.list=sc;F.comment=r=>new Ro(r);F.atRule=r=>new No(r);F.decl=r=>new xo(r);F.rule=r=>new Mo(r);F.root=r=>new Io(r);F.document=r=>new Ao(r);F.CssSyntaxError=Xu;F.Declaration=xo;F.Container=Ku;F.Processor=Qr;F.Document=Ao;F.Comment=Ro;F.Warning=ec;F.AtRule=No;F.Result=tc;F.Input=ic;F.Rule=Mo;F.Root=Io;F.Node=nc;Ju.registerPostcss(F);var oc=F;F.default=F;const j=wa(oc);j.stringify;j.fromJSON;j.plugin;j.parse;j.list;j.document;j.comment;j.atRule;j.rule;j.decl;j.root;j.CssSyntaxError;j.Declaration;j.Container;j.Processor;j.Document;j.Comment;j.Warning;j.AtRule;j.Result;j.Input;j.Rule;j.Root;j.Node;const lc=["webview"],Bs={script:"noscript",altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};function ac(r){let e=Bs[r.tagName]?Bs[r.tagName]:r.tagName;return e==="link"&&r.attributes._cssText&&(e="style"),e}function Ni(r,e){const t=e==null?void 0:e.stylesWithHoverClass.get(r);if(t)return t;let i=r;try{i=j([ga,ya]).process(r).css}catch(s){console.warn("Failed to adapt css for replay",s)}return e==null||e.stylesWithHoverClass.set(r,i),i}function Us(){return{stylesWithHoverClass:new Map}}function uc(r,e,t,i){const s=[];for(const n of r.childNodes)n.type===Q.Text&&s.push(n);const o=e.split("/* rr_split */");for(;o.length>1&&o.length>s.length;)o.splice(-2,2,o.slice(-2).join(""));for(let n=0;n<s.length;n++){const l=s[n],a=o[n];l&&a&&(l.textContent=t?Ni(a,i):a)}}function cc(r,e,t,i){const{doc:s,hackCss:o,cache:n}=i;r.childNodes.length?uc(r,t,o,n):(o&&(t=Ni(t,n)),e.appendChild(s.createTextNode(t)))}function hc(r,e){var t;const{doc:i,hackCss:s,cache:o}=e;switch(r.type){case Q.Document:return i.implementation.createDocument(null,"",null);case Q.DocumentType:return i.implementation.createDocumentType(r.name||"html",r.publicId,r.systemId);case Q.Element:{const n=ac(r);let l;r.isSVG?l=i.createElementNS("http://www.w3.org/2000/svg",n):(r.isCustom&&((t=i.defaultView)!=null&&t.customElements)&&!i.defaultView.customElements.get(r.tagName)&&!lc.includes(r.tagName)&&i.defaultView.customElements.define(r.tagName,class extends i.defaultView.HTMLElement{}),l=i.createElement(n));const a={};for(const u in r.attributes){if(!Object.prototype.hasOwnProperty.call(r.attributes,u))continue;let c=r.attributes[u];if(!(n==="option"&&u==="selected"&&c===!1)&&c!==null){if(c===!0&&(c=""),u.startsWith("rr_")){a[u]=c;continue}if(typeof c=="string"){if(n==="style"&&u==="_cssText"){cc(r,l,c,e);continue}else if(n==="textarea"&&u==="value"){l.appendChild(i.createTextNode(c)),r.childNodes=[];continue}}try{if(r.isSVG&&u==="xlink:href")l.setAttributeNS("http://www.w3.org/1999/xlink",u,c.toString());else if(u==="onload"||u==="onclick"||u.substring(0,7)==="onmouse")l.setAttribute("_"+u,c.toString());else if(n==="meta"&&r.attributes["http-equiv"]==="Content-Security-Policy"&&u==="content"){l.setAttribute("csp-content",c.toString());continue}else n==="link"&&(r.attributes.rel==="preload"||r.attributes.rel==="modulepreload")&&r.attributes.as==="script"||n==="link"&&r.attributes.rel==="prefetch"&&typeof r.attributes.href=="string"&&r.attributes.href.endsWith(".js")||(n==="img"&&r.attributes.srcset&&r.attributes.rr_dataURL?l.setAttribute("rrweb-original-srcset",r.attributes.srcset):l.setAttribute(u,c.toString()))}catch(h){}}}for(const u in a){const c=a[u];if(n==="canvas"&&u==="rr_dataURL"){const h=i.createElement("img");h.onload=()=>{const f=l.getContext("2d");f&&f.drawImage(h,0,0,h.width,h.height)},h.src=c.toString(),l.RRNodeType&&(l.rr_dataURL=c.toString())}else if(n==="img"&&u==="rr_dataURL"){const h=l;h.currentSrc.startsWith("data:")||(h.setAttribute("rrweb-original-src",r.attributes.src),h.src=c.toString())}if(u==="rr_width")l.style.setProperty("width",c.toString());else if(u==="rr_height")l.style.setProperty("height",c.toString());else if(u==="rr_background_color")l.style.setProperty("background-color",c.toString());else if(u==="rr_mediaCurrentTime"&&typeof c=="number")l.currentTime=c;else if(u==="rr_mediaState")switch(c){case"played":l.play().catch(h=>console.warn("media playback error",h));break;case"paused":l.pause();break}else u==="rr_mediaPlaybackRate"&&typeof c=="number"?l.playbackRate=c:u==="rr_mediaMuted"&&typeof c=="boolean"?l.muted=c:u==="rr_mediaLoop"&&typeof c=="boolean"?l.loop=c:u==="rr_mediaVolume"&&typeof c=="number"?l.volume=c:u==="rr_open_mode"&&l.setAttribute("rr_open_mode",c)}if(r.isShadowHost)if(!l.shadowRoot)l.attachShadow({mode:"open"});else for(;l.shadowRoot.firstChild;)l.shadowRoot.removeChild(l.shadowRoot.firstChild);return l}case Q.Text:return r.isStyle&&s?i.createTextNode(Ni(r.textContent,o)):i.createTextNode(r.textContent);case Q.CDATA:return i.createCDATASection(r.textContent);case Q.Comment:return i.createComment(r.textContent);default:return null}}function dt(r,e){const{doc:t,mirror:i,skipChild:s=!1,hackCss:o=!0,afterAppend:n,cache:l}=e;if(i.has(r.id)){const u=i.getNode(r.id),c=i.getMeta(u);if(da(c,r))return i.getNode(r.id)}let a=hc(r,{doc:t,hackCss:o,cache:l});if(!a)return null;if(r.rootId&&i.getNode(r.rootId)!==t&&i.replace(r.rootId,t),r.type===Q.Document&&(t.close(),t.open(),r.compatMode==="BackCompat"&&r.childNodes&&r.childNodes[0].type!==Q.DocumentType&&(r.childNodes[0].type===Q.Element&&"xmlns"in r.childNodes[0].attributes&&r.childNodes[0].attributes.xmlns==="http://www.w3.org/1999/xhtml"?t.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):t.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),a=t),i.add(a,r),(r.type===Q.Document||r.type===Q.Element)&&!s)for(const u of r.childNodes){const c=dt(u,{doc:t,mirror:i,skipChild:!1,hackCss:o,afterAppend:n,cache:l});if(!c){console.warn("Failed to rebuild",u);continue}if(u.isShadow&&fa(a)&&a.shadowRoot)a.shadowRoot.appendChild(c);else if(r.type===Q.Document&&u.type==Q.Element){const h=c;let f=null;h.childNodes.forEach(g=>{g.nodeName==="BODY"&&(f=g)}),f?(h.removeChild(f),a.appendChild(c),h.appendChild(f)):a.appendChild(c)}else a.appendChild(c);n&&n(c,u.id)}return a}function fc(r,e){function t(i){e(i)}for(const i of r.getIds())r.has(i)&&t(r.getNode(i))}function pc(r,e){const t=e.getMeta(r);if((t==null?void 0:t.type)!==Q.Element)return;const i=r;for(const s in t.attributes){if(!(Object.prototype.hasOwnProperty.call(t.attributes,s)&&s.startsWith("rr_")))continue;const o=t.attributes[s];s==="rr_scrollLeft"&&(i.scrollLeft=o),s==="rr_scrollTop"&&(i.scrollTop=o)}}function dc(r,e){const{doc:t,onVisit:i,hackCss:s=!0,afterAppend:o,cache:n,mirror:l=new Yn}=e,a=dt(r,{doc:t,mirror:l,skipChild:!1,hackCss:s,afterAppend:o,cache:n});return fc(l,u=>{i&&i(u),pc(u,l)}),a}var mc=Object.defineProperty,gc=(r,e,t)=>e in r?mc(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,C=(r,e,t)=>gc(r,typeof e!="symbol"?e+"":e,t),yc=Object.defineProperty,wc=(r,e,t)=>e in r?yc(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,zs=(r,e,t)=>wc(r,typeof e!="symbol"?e+"":e,t);let vc=class{constructor(){zs(this,"idNodeMap",new Map),zs(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;const i=(t=this.getMeta(e))==null?void 0:t.id;return i!=null?i:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(i=>this.removeNodeFromMap(i))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const i=t.id;this.idNodeMap.set(i,e),this.nodeMetaMap.set(e,t)}replace(e,t){const i=this.getNode(e);if(i){const s=this.nodeMetaMap.get(i);s&&this.nodeMetaMap.set(t,s)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function bc(){return new vc}function Cc(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function Sc(r){if(r.__esModule)return r;var e=r.default;if(typeof e=="function"){var t=function i(){return this instanceof i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(r).forEach(function(i){var s=Object.getOwnPropertyDescriptor(r,i);Object.defineProperty(t,i,s.get?s:{enumerable:!0,get:function(){return r[i]}})}),t}var qr={exports:{}},G=String,Do=function(){return{isColorSupported:!1,reset:G,bold:G,dim:G,italic:G,underline:G,inverse:G,hidden:G,strikethrough:G,black:G,red:G,green:G,yellow:G,blue:G,magenta:G,cyan:G,white:G,gray:G,bgBlack:G,bgRed:G,bgGreen:G,bgYellow:G,bgBlue:G,bgMagenta:G,bgCyan:G,bgWhite:G}};qr.exports=Do();qr.exports.createColors=Do;var Ec=qr.exports;const xc={},Ac=Object.freeze(Object.defineProperty({__proto__:null,default:xc},Symbol.toStringTag,{value:"Module"})),ge=Sc(Ac);let Vs=Ec,Ws=ge,gr=class Oo extends Error{constructor(e,t,i,s,o,n){super(e),this.name="CssSyntaxError",this.reason=e,o&&(this.file=o),s&&(this.source=s),n&&(this.plugin=n),typeof t!="undefined"&&typeof i!="undefined"&&(typeof t=="number"?(this.line=t,this.column=i):(this.line=t.line,this.column=t.column,this.endLine=i.line,this.endColumn=i.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Oo)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=Vs.isColorSupported),Ws&&e&&(t=Ws(t));let i=t.split(/\r?\n/),s=Math.max(this.line-3,0),o=Math.min(this.line+2,i.length),n=String(o).length,l,a;if(e){let{bold:u,gray:c,red:h}=Vs.createColors(!0);l=f=>u(h(f)),a=f=>c(f)}else l=a=u=>u;return i.slice(s,o).map((u,c)=>{let h=s+1+c,f=" "+(" "+h).slice(-n)+" | ";if(h===this.line){let g=a(f.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+a(f)+u+`
|
|
41
|
-
`+g+l("^")}return" "+
|
|
42
|
-
`)}toString(){let
|
|
37
|
+
`)&&(h=`\r
|
|
38
|
+
`),this.css+=h+"/*# sourceMappingURL="+f+" */"}applyPrevMaps(){for(let f of this.previous()){let h=this.toUrl(this.path(f.file)),m=f.root||r(f.file),p;this.mapOpts.sourcesContent===!1?(p=new e(f.text),p.sourcesContent&&(p.sourcesContent=null)):p=f.consumer(),this.map.applySourceMap(p,h,this.toUrl(this.path(m)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let f;for(let h=this.root.nodes.length-1;h>=0;h--)f=this.root.nodes[h],f.type==="comment"&&f.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(h)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),c&&a&&this.isMap())return this.generateMap();{let f="";return this.stringify(this.root,h=>{f+=h}),[f]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let f=this.previous()[0].consumer();f.file=this.outputFile(),this.map=t.fromSourceMap(f,{ignoreInvalidMapping:!0})}else 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>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0});let f=1,h=1,m="<no source>",p={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,y;this.stringify(this.root,(b,_,S)=>{if(this.css+=b,_&&S!=="end"&&(p.generated.line=f,p.generated.column=h-1,_.source&&_.source.start?(p.source=this.sourcePath(_),p.original.line=_.source.start.line,p.original.column=_.source.start.column-1,this.map.addMapping(p)):(p.source=m,p.original.line=1,p.original.column=0,this.map.addMapping(p))),g=b.match(/\n/g),g?(f+=g.length,y=b.lastIndexOf(`
|
|
39
|
+
`),h=b.length-y):h+=b.length,_&&S!=="start"){let v=_.parent||{raws:{}};(!(_.type==="decl"||_.type==="atrule"&&!_.nodes)||_!==v.last||v.raws.semicolon)&&(_.source&&_.source.end?(p.source=this.sourcePath(_),p.original.line=_.source.end.line,p.original.column=_.source.end.column-1,p.generated.line=f,p.generated.column=h-2,this.map.addMapping(p)):(p.source=m,p.original.line=1,p.original.column=0,p.generated.line=f,p.generated.column=h-1,this.map.addMapping(p)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(f=>f.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let f=this.mapOpts.annotation;return typeof f!="undefined"&&f!==!0?!1:this.previous().length?this.previous().some(h=>h.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(f=>f.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(f){if(this.mapOpts.absolute||f.charCodeAt(0)===60||/^\w+:\/\//.test(f))return f;let h=this.memoizedPaths.get(f);if(h)return h;let m=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(m=r(s(m,this.mapOpts.annotation)));let p=i(m,f);return this.memoizedPaths.set(f,p),p}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(f=>{if(f.source&&f.source.input.map){let h=f.source.input.map;this.previousMaps.includes(h)||this.previousMaps.push(h)}});else{let f=new u(this.originalCSS,this.opts);f.map&&this.previousMaps.push(f.map)}return this.previousMaps}setSourcesContent(){let f={};if(this.root)this.root.walk(h=>{if(h.source){let m=h.source.input.from;if(m&&!f[m]){f[m]=!0;let p=this.usesFileUrls?this.toFileUrl(m):this.toUrl(this.path(m));this.map.setSourceContent(p,h.source.input.css)}}});else if(this.css){let h=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(h,this.css)}}sourcePath(f){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(f.source.input.from):this.toUrl(this.path(f.source.input.from))}toBase64(f){return Buffer?Buffer.from(f).toString("base64"):window.btoa(unescape(encodeURIComponent(f)))}toFileUrl(f){let h=this.memoizedFileURLs.get(f);if(h)return h;if(o){let m=o(f).toString();return this.memoizedFileURLs.set(f,m),m}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(f){let h=this.memoizedURLs.get(f);if(h)return h;n==="\\"&&(f=f.replace(/\\/g,"/"));let m=encodeURI(f).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(f,m),m}}return Ss=l,Ss}var Es,ua;function ts(){if(ua)return Es;ua=1;let e=Ki();class t extends e{constructor(i){super(i),this.type="comment"}}return Es=t,t.default=t,Es}var Cs,ca;function fr(){if(ca)return Cs;ca=1;let{isClean:e,my:t}=uo(),r=Zi(),i=ts(),s=Ki(),n,o,u,a;function c(f){return f.map(h=>(h.nodes&&(h.nodes=c(h.nodes)),delete h.source,h))}function l(f){if(f[e]=!1,f.proxyOf.nodes)for(let h of f.proxyOf.nodes)l(h)}class d extends s{append(...h){for(let m of h){let p=this.normalize(m,this.last);for(let g of p)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(h){if(super.cleanRaws(h),this.nodes)for(let m of this.nodes)m.cleanRaws(h)}each(h){if(!this.proxyOf.nodes)return;let m=this.getIterator(),p,g;for(;this.indexes[m]<this.proxyOf.nodes.length&&(p=this.indexes[m],g=h(this.proxyOf.nodes[p],p),g!==!1);)this.indexes[m]+=1;return delete this.indexes[m],g}every(h){return this.nodes.every(h)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let h=this.lastEach;return this.indexes[h]=0,h}getProxyProcessor(){return{get(h,m){return m==="proxyOf"?h:h[m]?m==="each"||typeof m=="string"&&m.startsWith("walk")?(...p)=>h[m](...p.map(g=>typeof g=="function"?(y,b)=>g(y.toProxy(),b):g)):m==="every"||m==="some"?p=>h[m]((g,...y)=>p(g.toProxy(),...y)):m==="root"?()=>h.root().toProxy():m==="nodes"?h.nodes.map(p=>p.toProxy()):m==="first"||m==="last"?h[m].toProxy():h[m]:h[m]},set(h,m,p){return h[m]===p||(h[m]=p,(m==="name"||m==="params"||m==="selector")&&h.markDirty()),!0}}}index(h){return typeof h=="number"?h:(h.proxyOf&&(h=h.proxyOf),this.proxyOf.nodes.indexOf(h))}insertAfter(h,m){let p=this.index(h),g=this.normalize(m,this.proxyOf.nodes[p]).reverse();p=this.index(h);for(let b of g)this.proxyOf.nodes.splice(p+1,0,b);let y;for(let b in this.indexes)y=this.indexes[b],p<y&&(this.indexes[b]=y+g.length);return this.markDirty(),this}insertBefore(h,m){let p=this.index(h),g=p===0?"prepend":!1,y=this.normalize(m,this.proxyOf.nodes[p],g).reverse();p=this.index(h);for(let _ of y)this.proxyOf.nodes.splice(p,0,_);let b;for(let _ in this.indexes)b=this.indexes[_],p<=b&&(this.indexes[_]=b+y.length);return this.markDirty(),this}normalize(h,m){if(typeof h=="string")h=c(n(h).nodes);else if(typeof h=="undefined")h=[];else if(Array.isArray(h)){h=h.slice(0);for(let g of h)g.parent&&g.parent.removeChild(g,"ignore")}else if(h.type==="root"&&this.type!=="document"){h=h.nodes.slice(0);for(let g of h)g.parent&&g.parent.removeChild(g,"ignore")}else if(h.type)h=[h];else if(h.prop){if(typeof h.value=="undefined")throw new Error("Value field is missed in node creation");typeof h.value!="string"&&(h.value=String(h.value)),h=[new r(h)]}else if(h.selector)h=[new o(h)];else if(h.name)h=[new u(h)];else if(h.text)h=[new i(h)];else throw new Error("Unknown node type in node creation");return h.map(g=>(g[t]||d.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&l(g),typeof g.raws.before=="undefined"&&m&&typeof m.raws.before!="undefined"&&(g.raws.before=m.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...h){h=h.reverse();for(let m of h){let p=this.normalize(m,this.first,"prepend").reverse();for(let g of p)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+p.length}return this.markDirty(),this}push(h){return h.parent=this,this.proxyOf.nodes.push(h),this}removeAll(){for(let h of this.proxyOf.nodes)h.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(h){h=this.index(h),this.proxyOf.nodes[h].parent=void 0,this.proxyOf.nodes.splice(h,1);let m;for(let p in this.indexes)m=this.indexes[p],m>=h&&(this.indexes[p]=m-1);return this.markDirty(),this}replaceValues(h,m,p){return p||(p=m,m={}),this.walkDecls(g=>{m.props&&!m.props.includes(g.prop)||m.fast&&!g.value.includes(m.fast)||(g.value=g.value.replace(h,p))}),this.markDirty(),this}some(h){return this.nodes.some(h)}walk(h){return this.each((m,p)=>{let g;try{g=h(m,p)}catch(y){throw m.addToError(y)}return g!==!1&&m.walk&&(g=m.walk(h)),g})}walkAtRules(h,m){return m?h instanceof RegExp?this.walk((p,g)=>{if(p.type==="atrule"&&h.test(p.name))return m(p,g)}):this.walk((p,g)=>{if(p.type==="atrule"&&p.name===h)return m(p,g)}):(m=h,this.walk((p,g)=>{if(p.type==="atrule")return m(p,g)}))}walkComments(h){return this.walk((m,p)=>{if(m.type==="comment")return h(m,p)})}walkDecls(h,m){return m?h instanceof RegExp?this.walk((p,g)=>{if(p.type==="decl"&&h.test(p.prop))return m(p,g)}):this.walk((p,g)=>{if(p.type==="decl"&&p.prop===h)return m(p,g)}):(m=h,this.walk((p,g)=>{if(p.type==="decl")return m(p,g)}))}walkRules(h,m){return m?h instanceof RegExp?this.walk((p,g)=>{if(p.type==="rule"&&h.test(p.selector))return m(p,g)}):this.walk((p,g)=>{if(p.type==="rule"&&p.selector===h)return m(p,g)}):(m=h,this.walk((p,g)=>{if(p.type==="rule")return m(p,g)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return d.registerParse=f=>{n=f},d.registerRule=f=>{o=f},d.registerAtRule=f=>{u=f},d.registerRoot=f=>{a=f},Cs=d,d.default=d,d.rebuild=f=>{f.type==="atrule"?Object.setPrototypeOf(f,u.prototype):f.type==="rule"?Object.setPrototypeOf(f,o.prototype):f.type==="decl"?Object.setPrototypeOf(f,r.prototype):f.type==="comment"?Object.setPrototypeOf(f,i.prototype):f.type==="root"&&Object.setPrototypeOf(f,a.prototype),f[t]=!0,f.nodes&&f.nodes.forEach(h=>{d.rebuild(h)})},Cs}var xs,fa;function co(){if(fa)return xs;fa=1;let e=fr(),t,r;class i extends e{constructor(n){super(Q({type:"document"},n)),this.nodes||(this.nodes=[])}toResult(n={}){return new t(new r,this,n).stringify()}}return i.registerLazyResult=s=>{t=s},i.registerProcessor=s=>{r=s},xs=i,i.default=i,xs}var Rs,ha;function Pu(){if(ha)return Rs;ha=1;let e={};return Rs=function(r){e[r]||(e[r]=!0,typeof console!="undefined"&&console.warn&&console.warn(r))},Rs}var Ms,da;function ku(){if(da)return Ms;da=1;class e{constructor(r,i={}){if(this.type="warning",this.text=r,i.node&&i.node.source){let s=i.node.rangeBy(i);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in i)this[s]=i[s]}toString(){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}}return Ms=e,e.default=e,Ms}var Ns,pa;function fo(){if(pa)return Ns;pa=1;let e=ku();class t{constructor(i,s,n){this.processor=i,this.messages=[],this.root=s,this.opts=n,this.css=void 0,this.map=void 0}toString(){return this.css}warn(i,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let n=new e(i,s);return this.messages.push(n),n}warnings(){return this.messages.filter(i=>i.type==="warning")}get content(){return this.css}}return Ns=t,t.default=t,Ns}var Os,ma;function Sh(){if(ma)return Os;ma=1;const e=39,t=34,r=92,i=47,s=10,n=32,o=12,u=9,a=13,c=91,l=93,d=40,f=41,h=123,m=125,p=59,g=42,y=58,b=64,_=/[\t\n\f\r "#'()/;[\\\]{}]/g,S=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,v=/.[\r\n"'(/\\]/,w=/[\da-f]/i;return Os=function(C,A={}){let N=C.css.valueOf(),U=A.ignoreErrors,T,x,me,ge,ie,F,se,Re,j,G,_e=N.length,O=0,ve=[],P=[];function B(){return O}function J(Z){throw C.error("Unclosed "+Z,O)}function k(){return P.length===0&&O>=_e}function oe(Z){if(P.length)return P.pop();if(O>=_e)return;let De=Z?Z.ignoreUnclosed:!1;switch(T=N.charCodeAt(O),T){case s:case n:case u:case a:case o:{x=O;do x+=1,T=N.charCodeAt(x);while(T===n||T===s||T===u||T===a||T===o);G=["space",N.slice(O,x)],O=x-1;break}case c:case l:case h:case m:case y:case p:case f:{let ht=String.fromCharCode(T);G=[ht,ht,O];break}case d:{if(Re=ve.length?ve.pop()[1]:"",j=N.charCodeAt(O+1),Re==="url"&&j!==e&&j!==t&&j!==n&&j!==s&&j!==u&&j!==o&&j!==a){x=O;do{if(F=!1,x=N.indexOf(")",x+1),x===-1)if(U||De){x=O;break}else J("bracket");for(se=x;N.charCodeAt(se-1)===r;)se-=1,F=!F}while(F);G=["brackets",N.slice(O,x+1),O,x],O=x}else x=N.indexOf(")",O+1),ge=N.slice(O,x+1),x===-1||v.test(ge)?G=["(","(",O]:(G=["brackets",ge,O,x],O=x);break}case e:case t:{me=T===e?"'":'"',x=O;do{if(F=!1,x=N.indexOf(me,x+1),x===-1)if(U||De){x=O+1;break}else J("string");for(se=x;N.charCodeAt(se-1)===r;)se-=1,F=!F}while(F);G=["string",N.slice(O,x+1),O,x],O=x;break}case b:{_.lastIndex=O+1,_.test(N),_.lastIndex===0?x=N.length-1:x=_.lastIndex-2,G=["at-word",N.slice(O,x+1),O,x],O=x;break}case r:{for(x=O,ie=!0;N.charCodeAt(x+1)===r;)x+=1,ie=!ie;if(T=N.charCodeAt(x+1),ie&&T!==i&&T!==n&&T!==s&&T!==u&&T!==a&&T!==o&&(x+=1,w.test(N.charAt(x)))){for(;w.test(N.charAt(x+1));)x+=1;N.charCodeAt(x+1)===n&&(x+=1)}G=["word",N.slice(O,x+1),O,x],O=x;break}default:{T===i&&N.charCodeAt(O+1)===g?(x=N.indexOf("*/",O+2)+1,x===0&&(U||De?x=N.length:J("comment")),G=["comment",N.slice(O,x+1),O,x],O=x):(S.lastIndex=O+1,S.test(N),S.lastIndex===0?x=N.length-1:x=S.lastIndex-2,G=["word",N.slice(O,x+1),O,x],ve.push(G),O=x);break}}return O++,G}function ne(Z){P.push(Z)}return{back:ne,endOfFile:k,nextToken:oe,position:B}},Os}var As,ga;function ho(){if(ga)return As;ga=1;let e=fr();class t extends e{constructor(i){super(i),this.type="atrule"}append(...i){return this.proxyOf.nodes||(this.nodes=[]),super.append(...i)}prepend(...i){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...i)}}return As=t,t.default=t,e.registerAtRule(t),As}var Ds,va;function oi(){if(va)return Ds;va=1;let e=fr(),t,r;class i extends e{constructor(n){super(n),this.type="root",this.nodes||(this.nodes=[])}normalize(n,o,u){let a=super.normalize(n);if(o){if(u==="prepend")this.nodes.length>1?o.raws.before=this.nodes[1].raws.before:delete o.raws.before;else if(this.first!==o)for(let c of a)c.raws.before=o.raws.before}return a}removeChild(n,o){let u=this.index(n);return!o&&u===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[u].raws.before),super.removeChild(n)}toResult(n={}){return new t(new r,this,n).stringify()}}return i.registerLazyResult=s=>{t=s},i.registerProcessor=s=>{r=s},Ds=i,i.default=i,e.registerRoot(i),Ds}var Ts,ya;function Iu(){if(ya)return Ts;ya=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
|
|
40
|
+
`," "];return e.split(t,r)},split(t,r,i){let s=[],n="",o=!1,u=0,a=!1,c="",l=!1;for(let d of t)l?l=!1:d==="\\"?l=!0:a?d===c&&(a=!1):d==='"'||d==="'"?(a=!0,c=d):d==="("?u+=1:d===")"?u>0&&(u-=1):u===0&&r.includes(d)&&(o=!0),o?(n!==""&&s.push(n.trim()),n="",o=!1):n+=d;return(i||n!=="")&&s.push(n.trim()),s}};return Ts=e,e.default=e,Ts}var Ps,wa;function po(){if(wa)return Ps;wa=1;let e=fr(),t=Iu();class r extends e{constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(s){let n=this.selector?this.selector.match(/,\s*/):null,o=n?n[0]:","+this.raw("between","beforeOpen");this.selector=s.join(o)}}return Ps=r,r.default=r,e.registerRule(r),Ps}var ks,ba;function Eh(){if(ba)return ks;ba=1;let e=Zi(),t=Sh(),r=ts(),i=ho(),s=oi(),n=po();const o={empty:!0,space:!0};function u(c){for(let l=c.length-1;l>=0;l--){let d=c[l],f=d[3]||d[2];if(f)return f}}class a{constructor(l){this.input=l,this.root=new s,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:l,start:{column:1,line:1,offset:0}}}atrule(l){let d=new i;d.name=l[1].slice(1),d.name===""&&this.unnamedAtrule(d,l),this.init(d,l[2]);let f,h,m,p=!1,g=!1,y=[],b=[];for(;!this.tokenizer.endOfFile();){if(l=this.tokenizer.nextToken(),f=l[0],f==="("||f==="["?b.push(f==="("?")":"]"):f==="{"&&b.length>0?b.push("}"):f===b[b.length-1]&&b.pop(),b.length===0)if(f===";"){d.source.end=this.getPosition(l[2]),d.source.end.offset++,this.semicolon=!0;break}else if(f==="{"){g=!0;break}else if(f==="}"){if(y.length>0){for(m=y.length-1,h=y[m];h&&h[0]==="space";)h=y[--m];h&&(d.source.end=this.getPosition(h[3]||h[2]),d.source.end.offset++)}this.end(l);break}else y.push(l);else y.push(l);if(this.tokenizer.endOfFile()){p=!0;break}}d.raws.between=this.spacesAndCommentsFromEnd(y),y.length?(d.raws.afterName=this.spacesAndCommentsFromStart(y),this.raw(d,"params",y),p&&(l=y[y.length-1],d.source.end=this.getPosition(l[3]||l[2]),d.source.end.offset++,this.spaces=d.raws.between,d.raws.between="")):(d.raws.afterName="",d.params=""),g&&(d.nodes=[],this.current=d)}checkMissedSemicolon(l){let d=this.colon(l);if(d===!1)return;let f=0,h;for(let m=d-1;m>=0&&(h=l[m],!(h[0]!=="space"&&(f+=1,f===2)));m--);throw this.input.error("Missed semicolon",h[0]==="word"?h[3]+1:h[2])}colon(l){let d=0,f,h,m;for(let[p,g]of l.entries()){if(f=g,h=f[0],h==="("&&(d+=1),h===")"&&(d-=1),d===0&&h===":")if(!m)this.doubleColon(f);else{if(m[0]==="word"&&m[1]==="progid")continue;return p}m=f}return!1}comment(l){let d=new r;this.init(d,l[2]),d.source.end=this.getPosition(l[3]||l[2]),d.source.end.offset++;let f=l[1].slice(2,-2);if(/^\s*$/.test(f))d.text="",d.raws.left=f,d.raws.right="";else{let h=f.match(/^(\s*)([^]*\S)(\s*)$/);d.text=h[2],d.raws.left=h[1],d.raws.right=h[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(l,d){let f=new e;this.init(f,l[0][2]);let h=l[l.length-1];for(h[0]===";"&&(this.semicolon=!0,l.pop()),f.source.end=this.getPosition(h[3]||h[2]||u(l)),f.source.end.offset++;l[0][0]!=="word";)l.length===1&&this.unknownWord(l),f.raws.before+=l.shift()[1];for(f.source.start=this.getPosition(l[0][2]),f.prop="";l.length;){let b=l[0][0];if(b===":"||b==="space"||b==="comment")break;f.prop+=l.shift()[1]}f.raws.between="";let m;for(;l.length;)if(m=l.shift(),m[0]===":"){f.raws.between+=m[1];break}else m[0]==="word"&&/\w/.test(m[1])&&this.unknownWord([m]),f.raws.between+=m[1];(f.prop[0]==="_"||f.prop[0]==="*")&&(f.raws.before+=f.prop[0],f.prop=f.prop.slice(1));let p=[],g;for(;l.length&&(g=l[0][0],!(g!=="space"&&g!=="comment"));)p.push(l.shift());this.precheckMissedSemicolon(l);for(let b=l.length-1;b>=0;b--){if(m=l[b],m[1].toLowerCase()==="!important"){f.important=!0;let _=this.stringFrom(l,b);_=this.spacesFromEnd(l)+_,_!==" !important"&&(f.raws.important=_);break}else if(m[1].toLowerCase()==="important"){let _=l.slice(0),S="";for(let v=b;v>0;v--){let w=_[v][0];if(S.trim().indexOf("!")===0&&w!=="space")break;S=_.pop()[1]+S}S.trim().indexOf("!")===0&&(f.important=!0,f.raws.important=S,l=_)}if(m[0]!=="space"&&m[0]!=="comment")break}l.some(b=>b[0]!=="space"&&b[0]!=="comment")&&(f.raws.between+=p.map(b=>b[1]).join(""),p=[]),this.raw(f,"value",p.concat(l),d),f.value.includes(":")&&!d&&this.checkMissedSemicolon(l)}doubleColon(l){throw this.input.error("Double colon",{offset:l[2]},{offset:l[2]+l[1].length})}emptyRule(l){let d=new n;this.init(d,l[2]),d.selector="",d.raws.between="",this.current=d}end(l){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(l[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(l)}endFile(){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())}freeSemicolon(l){if(this.spaces+=l[1],this.current.nodes){let d=this.current.nodes[this.current.nodes.length-1];d&&d.type==="rule"&&!d.raws.ownSemicolon&&(d.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(l){let d=this.input.fromOffset(l);return{column:d.col,line:d.line,offset:l}}init(l,d){this.current.push(l),l.source={input:this.input,start:this.getPosition(d)},l.raws.before=this.spaces,this.spaces="",l.type!=="comment"&&(this.semicolon=!1)}other(l){let d=!1,f=null,h=!1,m=null,p=[],g=l[1].startsWith("--"),y=[],b=l;for(;b;){if(f=b[0],y.push(b),f==="("||f==="[")m||(m=b),p.push(f==="("?")":"]");else if(g&&h&&f==="{")m||(m=b),p.push("}");else if(p.length===0)if(f===";")if(h){this.decl(y,g);return}else break;else if(f==="{"){this.rule(y);return}else if(f==="}"){this.tokenizer.back(y.pop()),d=!0;break}else f===":"&&(h=!0);else f===p[p.length-1]&&(p.pop(),p.length===0&&(m=null));b=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(d=!0),p.length>0&&this.unclosedBracket(m),d&&h){if(!g)for(;y.length&&(b=y[y.length-1][0],!(b!=="space"&&b!=="comment"));)this.tokenizer.back(y.pop());this.decl(y,g)}else this.unknownWord(y)}parse(){let l;for(;!this.tokenizer.endOfFile();)switch(l=this.tokenizer.nextToken(),l[0]){case"space":this.spaces+=l[1];break;case";":this.freeSemicolon(l);break;case"}":this.end(l);break;case"comment":this.comment(l);break;case"at-word":this.atrule(l);break;case"{":this.emptyRule(l);break;default:this.other(l);break}this.endFile()}precheckMissedSemicolon(){}raw(l,d,f,h){let m,p,g=f.length,y="",b=!0,_,S;for(let v=0;v<g;v+=1)m=f[v],p=m[0],p==="space"&&v===g-1&&!h?b=!1:p==="comment"?(S=f[v-1]?f[v-1][0]:"empty",_=f[v+1]?f[v+1][0]:"empty",!o[S]&&!o[_]?y.slice(-1)===","?b=!1:y+=m[1]:b=!1):y+=m[1];if(!b){let v=f.reduce((w,E)=>w+E[1],"");l.raws[d]={raw:v,value:y}}l[d]=y}rule(l){l.pop();let d=new n;this.init(d,l[0][2]),d.raws.between=this.spacesAndCommentsFromEnd(l),this.raw(d,"selector",l),this.current=d}spacesAndCommentsFromEnd(l){let d,f="";for(;l.length&&(d=l[l.length-1][0],!(d!=="space"&&d!=="comment"));)f=l.pop()[1]+f;return f}spacesAndCommentsFromStart(l){let d,f="";for(;l.length&&(d=l[0][0],!(d!=="space"&&d!=="comment"));)f+=l.shift()[1];return f}spacesFromEnd(l){let d,f="";for(;l.length&&(d=l[l.length-1][0],d==="space");)f=l.pop()[1]+f;return f}stringFrom(l,d){let f="";for(let h=d;h<l.length;h++)f+=l[h][1];return l.splice(d,l.length-d),f}unclosedBlock(){let l=this.current.source.start;throw this.input.error("Unclosed block",l.line,l.column)}unclosedBracket(l){throw this.input.error("Unclosed bracket",{offset:l[2]},{offset:l[2]+1})}unexpectedClose(l){throw this.input.error("Unexpected }",{offset:l[2]},{offset:l[2]+1})}unknownWord(l){throw this.input.error("Unknown word",{offset:l[0][2]},{offset:l[0][2]+l[0][1].length})}unnamedAtrule(l,d){throw this.input.error("At-rule without name",{offset:d[2]},{offset:d[2]+d[1].length})}}return ks=a,ks}var Is,_a;function mo(){if(_a)return Is;_a=1;let e=fr(),t=Eh(),r=es();function i(s,n){let o=new r(s,n),u=new t(o);try{u.parse()}catch(a){throw a}return u.root}return Is=i,i.default=i,e.registerParse(i),Is}var Ls,Sa;function Lu(){if(Sa)return Ls;Sa=1;let{isClean:e,my:t}=uo(),r=Tu(),i=Qi(),s=fr(),n=co(),o=Pu(),u=fo(),a=mo(),c=oi();const l={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},f={Once:!0,postcssPlugin:!0,prepare:!0},h=0;function m(S){return typeof S=="object"&&typeof S.then=="function"}function p(S){let v=!1,w=l[S.type];return S.type==="decl"?v=S.prop.toLowerCase():S.type==="atrule"&&(v=S.name.toLowerCase()),v&&S.append?[w,w+"-"+v,h,w+"Exit",w+"Exit-"+v]:v?[w,w+"-"+v,w+"Exit",w+"Exit-"+v]:S.append?[w,h,w+"Exit"]:[w,w+"Exit"]}function g(S){let v;return S.type==="document"?v=["Document",h,"DocumentExit"]:S.type==="root"?v=["Root",h,"RootExit"]:v=p(S),{eventIndex:0,events:v,iterator:0,node:S,visitorIndex:0,visitors:[]}}function y(S){return S[e]=!1,S.nodes&&S.nodes.forEach(v=>y(v)),S}let b={};class _{constructor(v,w,E){this.stringified=!1,this.processed=!1;let C;if(typeof w=="object"&&w!==null&&(w.type==="root"||w.type==="document"))C=y(w);else if(w instanceof _||w instanceof u)C=y(w.root),w.map&&(typeof E.map=="undefined"&&(E.map={}),E.map.inline||(E.map.inline=!1),E.map.prev=w.map);else{let A=a;E.syntax&&(A=E.syntax.parse),E.parser&&(A=E.parser),A.parse&&(A=A.parse);try{C=A(w,E)}catch(N){this.processed=!0,this.error=N}C&&!C[t]&&s.rebuild(C)}this.result=new u(v,C,E),this.helpers=Se(Q({},b),{postcss:b,result:this.result}),this.plugins=this.processor.plugins.map(A=>typeof A=="object"&&A.prepare?Q(Q({},A),A.prepare(this.result)):A)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(v){return this.async().catch(v)}finally(v){return this.async().then(v,v)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(v,w){let E=this.result.lastPlugin;try{w&&w.addToError(v),this.error=v,v.name==="CssSyntaxError"&&!v.plugin?(v.plugin=E.postcssPlugin,v.setMessage()):E.postcssVersion}catch(C){console&&console.error&&console.error(C)}return v}prepareVisitors(){this.listeners={};let v=(w,E,C)=>{this.listeners[E]||(this.listeners[E]=[]),this.listeners[E].push([w,C])};for(let w of this.plugins)if(typeof w=="object")for(let E in w){if(!d[E]&&/^[A-Z]/.test(E))throw new Error(`Unknown event ${E} in ${w.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f[E])if(typeof w[E]=="object")for(let C in w[E])C==="*"?v(w,E,w[E][C]):v(w,E+"-"+C.toLowerCase(),w[E][C]);else typeof w[E]=="function"&&v(w,E,w[E])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let v=0;v<this.plugins.length;v++){let w=this.plugins[v],E=this.runOnRoot(w);if(m(E))try{await E}catch(C){throw this.handleError(C)}}if(this.prepareVisitors(),this.hasListener){let v=this.result.root;for(;!v[e];){v[e]=!0;let w=[g(v)];for(;w.length>0;){let E=this.visitTick(w);if(m(E))try{await E}catch(C){let A=w[w.length-1].node;throw this.handleError(C,A)}}}if(this.listeners.OnceExit)for(let[w,E]of this.listeners.OnceExit){this.result.lastPlugin=w;try{if(v.type==="document"){let C=v.nodes.map(A=>E(A,this.helpers));await Promise.all(C)}else await E(v,this.helpers)}catch(C){throw this.handleError(C)}}}return this.processed=!0,this.stringify()}runOnRoot(v){this.result.lastPlugin=v;try{if(typeof v=="object"&&v.Once){if(this.result.root.type==="document"){let w=this.result.root.nodes.map(E=>v.Once(E,this.helpers));return m(w[0])?Promise.all(w):w}return v.Once(this.result.root,this.helpers)}else if(typeof v=="function")return v(this.result.root,this.result)}catch(w){throw this.handleError(w)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let v=this.result.opts,w=i;v.syntax&&(w=v.syntax.stringify),v.stringifier&&(w=v.stringifier),w.stringify&&(w=w.stringify);let C=new r(w,this.result.root,this.result.opts).generate();return this.result.css=C[0],this.result.map=C[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let v of this.plugins){let w=this.runOnRoot(v);if(m(w))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let v=this.result.root;for(;!v[e];)v[e]=!0,this.walkSync(v);if(this.listeners.OnceExit)if(v.type==="document")for(let w of v.nodes)this.visitSync(this.listeners.OnceExit,w);else this.visitSync(this.listeners.OnceExit,v)}return this.result}then(v,w){return this.async().then(v,w)}toString(){return this.css}visitSync(v,w){for(let[E,C]of v){this.result.lastPlugin=E;let A;try{A=C(w,this.helpers)}catch(N){throw this.handleError(N,w.proxyOf)}if(w.type!=="root"&&w.type!=="document"&&!w.parent)return!0;if(m(A))throw this.getAsyncError()}}visitTick(v){let w=v[v.length-1],{node:E,visitors:C}=w;if(E.type!=="root"&&E.type!=="document"&&!E.parent){v.pop();return}if(C.length>0&&w.visitorIndex<C.length){let[N,U]=C[w.visitorIndex];w.visitorIndex+=1,w.visitorIndex===C.length&&(w.visitors=[],w.visitorIndex=0),this.result.lastPlugin=N;try{return U(E.toProxy(),this.helpers)}catch(T){throw this.handleError(T,E)}}if(w.iterator!==0){let N=w.iterator,U;for(;U=E.nodes[E.indexes[N]];)if(E.indexes[N]+=1,!U[e]){U[e]=!0,v.push(g(U));return}w.iterator=0,delete E.indexes[N]}let A=w.events;for(;w.eventIndex<A.length;){let N=A[w.eventIndex];if(w.eventIndex+=1,N===h){E.nodes&&E.nodes.length&&(E[e]=!0,w.iterator=E.getIterator());return}else if(this.listeners[N]){w.visitors=this.listeners[N];return}}v.pop()}walkSync(v){v[e]=!0;let w=p(v);for(let E of w)if(E===h)v.nodes&&v.each(C=>{C[e]||this.walkSync(C)});else{let C=this.listeners[E];if(C&&this.visitSync(C,v.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return _.registerPostcss=S=>{b=S},Ls=_,_.default=_,c.registerLazyResult(_),n.registerLazyResult(_),Ls}var Fs,Ea;function Ch(){if(Ea)return Fs;Ea=1;let e=Tu(),t=Qi(),r=Pu(),i=mo();const s=fo();class n{constructor(u,a,c){a=a.toString(),this.stringified=!1,this._processor=u,this._css=a,this._opts=c,this._map=void 0;let l,d=t;this.result=new s(this._processor,l,this._opts),this.result.css=a;let f=this;Object.defineProperty(this.result,"root",{get(){return f.root}});let h=new e(d,l,this._opts,a);if(h.isMap()){let[m,p]=h.generate();m&&(this.result.css=m),p&&(this.result.map=p)}else h.clearAnnotation(),this.result.css=h.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(u){return this.async().catch(u)}finally(u){return this.async().then(u,u)}sync(){if(this.error)throw this.error;return this.result}then(u,a){return this.async().then(u,a)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let u,a=i;try{u=a(this._css,this._opts)}catch(c){this.error=c}if(this.error)throw this.error;return this._root=u,u}get[Symbol.toStringTag](){return"NoWorkResult"}}return Fs=n,n.default=n,Fs}var Us,Ca;function xh(){if(Ca)return Us;Ca=1;let e=Ch(),t=Lu(),r=co(),i=oi();class s{constructor(o=[]){this.version="8.4.38",this.plugins=this.normalize(o)}normalize(o){let u=[];for(let a of o)if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),typeof a=="object"&&Array.isArray(a.plugins))u=u.concat(a.plugins);else if(typeof a=="object"&&a.postcssPlugin)u.push(a);else if(typeof a=="function")u.push(a);else if(!(typeof a=="object"&&(a.parse||a.stringify)))throw new Error(a+" is not a PostCSS plugin");return u}process(o,u={}){return!this.plugins.length&&!u.parser&&!u.stringifier&&!u.syntax?new e(this,o,u):new t(this,o,u)}use(o){return this.plugins=this.plugins.concat(this.normalize([o])),this}}return Us=s,s.default=s,i.registerProcessor(s),r.registerProcessor(s),Us}var Bs,xa;function Rh(){if(xa)return Bs;xa=1;let e=Zi(),t=Du(),r=ts(),i=ho(),s=es(),n=oi(),o=po();function u(a,c){if(Array.isArray(a))return a.map(m=>u(m));let f=a,{inputs:l}=f,d=Br(f,["inputs"]);if(l){c=[];for(let m of l){let p=Se(Q({},m),{__proto__:s.prototype});p.map&&(p.map=Se(Q({},p.map),{__proto__:t.prototype})),c.push(p)}}if(d.nodes&&(d.nodes=a.nodes.map(m=>u(m,c))),d.source){let h=d.source,{inputId:m}=h,p=Br(h,["inputId"]);d.source=p,m!=null&&(d.source.input=c[m])}if(d.type==="root")return new n(d);if(d.type==="decl")return new e(d);if(d.type==="rule")return new o(d);if(d.type==="comment")return new r(d);if(d.type==="atrule")return new i(d);throw new Error("Unknown node type: "+a.type)}return Bs=u,u.default=u,Bs}var Ws,Ra;function Mh(){if(Ra)return Ws;Ra=1;let e=lo(),t=Zi(),r=Lu(),i=fr(),s=xh(),n=Qi(),o=Rh(),u=co(),a=ku(),c=ts(),l=ho(),d=fo(),f=es(),h=mo(),m=Iu(),p=po(),g=oi(),y=Ki();function b(..._){return _.length===1&&Array.isArray(_[0])&&(_=_[0]),new s(_)}return b.plugin=function(S,v){let w=!1;function E(...A){console&&console.warn&&!w&&(w=!0,console.warn(S+`: postcss.plugin was deprecated. Migration guide:
|
|
41
|
+
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(S+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
|
|
42
|
+
https://www.w3ctech.com/topic/2226`));let N=v(...A);return N.postcssPlugin=S,N.postcssVersion=new s().version,N}let C;return Object.defineProperty(E,"postcss",{get(){return C||(C=E()),C}}),E.process=function(A,N,U){return b([E(U)]).process(A,N)},E},b.stringify=n,b.parse=h,b.fromJSON=o,b.list=m,b.comment=_=>new c(_),b.atRule=_=>new l(_),b.decl=_=>new t(_),b.rule=_=>new p(_),b.root=_=>new g(_),b.document=_=>new u(_),b.CssSyntaxError=e,b.Declaration=t,b.Container=i,b.Processor=s,b.Document=u,b.Comment=c,b.Warning=a,b.AtRule=l,b.Result=d,b.Input=f,b.Rule=p,b.Root=g,b.Node=y,r.registerPostcss(b),Ws=b,b.default=b,Ws}var Nh=Mh();const le=gh(Nh);le.stringify;le.fromJSON;le.plugin;le.parse;le.list;le.document;le.comment;le.atRule;le.rule;le.decl;le.root;le.CssSyntaxError;le.Declaration;le.Container;le.Processor;le.Document;le.Comment;le.Warning;le.AtRule;le.Result;le.Input;le.Rule;le.Root;le.Node;const Oh=["webview"],Ma={script:"noscript",altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};function Ah(e){let t=Ma[e.tagName]?Ma[e.tagName]:e.tagName;return t==="link"&&e.attributes._cssText&&(t="style"),t}function rs(e,t){const r=t==null?void 0:t.stylesWithHoverClass.get(e);if(r)return r;let i=e;try{i=le([ph,mh]).process(e).css}catch(s){console.warn("Failed to adapt css for replay",s)}return t==null||t.stylesWithHoverClass.set(e,i),i}function Na(){return{stylesWithHoverClass:new Map}}function Dh(e,t,r,i){const s=[];for(const o of e.childNodes)o.type===pe.Text&&s.push(o);const n=t.split("/* rr_split */");for(;n.length>1&&n.length>s.length;)n.splice(-2,2,n.slice(-2).join(""));for(let o=0;o<s.length;o++){const u=s[o],a=n[o];u&&a&&(u.textContent=r?rs(a,i):a)}}function Th(e,t,r,i){const{doc:s,hackCss:n,cache:o}=i;e.childNodes.length?Dh(e,r,n,o):(n&&(r=rs(r,o)),t.appendChild(s.createTextNode(r)))}function Ph(e,t){var r;const{doc:i,hackCss:s,cache:n}=t;switch(e.type){case pe.Document:return i.implementation.createDocument(null,"",null);case pe.DocumentType:return i.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case pe.Element:{const o=Ah(e);let u;e.isSVG?u=i.createElementNS("http://www.w3.org/2000/svg",o):(e.isCustom&&((r=i.defaultView)!=null&&r.customElements)&&!i.defaultView.customElements.get(e.tagName)&&!Oh.includes(e.tagName)&&i.defaultView.customElements.define(e.tagName,class extends i.defaultView.HTMLElement{}),u=i.createElement(o));const a={};for(const c in e.attributes){if(!Object.prototype.hasOwnProperty.call(e.attributes,c))continue;let l=e.attributes[c];if(!(o==="option"&&c==="selected"&&l===!1)&&l!==null){if(l===!0&&(l=""),c.startsWith("rr_")){a[c]=l;continue}if(typeof l=="string"){if(o==="style"&&c==="_cssText"){Th(e,u,l,t);continue}else if(o==="textarea"&&c==="value"){u.appendChild(i.createTextNode(l)),e.childNodes=[];continue}}try{if(e.isSVG&&c==="xlink:href")u.setAttributeNS("http://www.w3.org/1999/xlink",c,l.toString());else if(c==="onload"||c==="onclick"||c.substring(0,7)==="onmouse")u.setAttribute("_"+c,l.toString());else if(o==="meta"&&e.attributes["http-equiv"]==="Content-Security-Policy"&&c==="content"){u.setAttribute("csp-content",l.toString());continue}else o==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")&&e.attributes.as==="script"||o==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&e.attributes.href.endsWith(".js")||(o==="img"&&e.attributes.srcset&&e.attributes.rr_dataURL?u.setAttribute("rrweb-original-srcset",e.attributes.srcset):u.setAttribute(c,l.toString()))}catch(d){}}}for(const c in a){const l=a[c];if(o==="canvas"&&c==="rr_dataURL"){const d=i.createElement("img");d.onload=()=>{const f=u.getContext("2d");f&&f.drawImage(d,0,0,d.width,d.height)},d.src=l.toString(),u.RRNodeType&&(u.rr_dataURL=l.toString())}else if(o==="img"&&c==="rr_dataURL"){const d=u;d.currentSrc.startsWith("data:")||(d.setAttribute("rrweb-original-src",e.attributes.src),d.src=l.toString())}if(c==="rr_width")u.style.setProperty("width",l.toString());else if(c==="rr_height")u.style.setProperty("height",l.toString());else if(c==="rr_background_color")u.style.setProperty("background-color",l.toString());else if(c==="rr_mediaCurrentTime"&&typeof l=="number")u.currentTime=l;else if(c==="rr_mediaState")switch(l){case"played":u.play().catch(d=>console.warn("media playback error",d));break;case"paused":u.pause();break}else c==="rr_mediaPlaybackRate"&&typeof l=="number"?u.playbackRate=l:c==="rr_mediaMuted"&&typeof l=="boolean"?u.muted=l:c==="rr_mediaLoop"&&typeof l=="boolean"?u.loop=l:c==="rr_mediaVolume"&&typeof l=="number"?u.volume=l:c==="rr_open_mode"&&u.setAttribute("rr_open_mode",l)}if(e.isShadowHost)if(!u.shadowRoot)u.attachShadow({mode:"open"});else for(;u.shadowRoot.firstChild;)u.shadowRoot.removeChild(u.shadowRoot.firstChild);return u}case pe.Text:return e.isStyle&&s?i.createTextNode(rs(e.textContent,n)):i.createTextNode(e.textContent);case pe.CDATA:return i.createCDATASection(e.textContent);case pe.Comment:return i.createComment(e.textContent);default:return null}}function Qr(e,t){const{doc:r,mirror:i,skipChild:s=!1,hackCss:n=!0,afterAppend:o,cache:u}=t;if(i.has(e.id)){const c=i.getNode(e.id),l=i.getMeta(c);if(hh(l,e))return i.getNode(e.id)}let a=Ph(e,{doc:r,hackCss:n,cache:u});if(!a)return null;if(e.rootId&&i.getNode(e.rootId)!==r&&i.replace(e.rootId,r),e.type===pe.Document&&(r.close(),r.open(),e.compatMode==="BackCompat"&&e.childNodes&&e.childNodes[0].type!==pe.DocumentType&&(e.childNodes[0].type===pe.Element&&"xmlns"in e.childNodes[0].attributes&&e.childNodes[0].attributes.xmlns==="http://www.w3.org/1999/xhtml"?r.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):r.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),a=r),i.add(a,e),(e.type===pe.Document||e.type===pe.Element)&&!s)for(const c of e.childNodes){const l=Qr(c,{doc:r,mirror:i,skipChild:!1,hackCss:n,afterAppend:o,cache:u});if(!l){console.warn("Failed to rebuild",c);continue}if(c.isShadow&&ch(a)&&a.shadowRoot)a.shadowRoot.appendChild(l);else if(e.type===pe.Document&&c.type==pe.Element){const d=l;let f=null;d.childNodes.forEach(h=>{h.nodeName==="BODY"&&(f=h)}),f?(d.removeChild(f),a.appendChild(l),d.appendChild(f)):a.appendChild(l)}else a.appendChild(l);o&&o(l,c.id)}return a}function kh(e,t){function r(i){t(i)}for(const i of e.getIds())e.has(i)&&r(e.getNode(i))}function Ih(e,t){const r=t.getMeta(e);if((r==null?void 0:r.type)!==pe.Element)return;const i=e;for(const s in r.attributes){if(!(Object.prototype.hasOwnProperty.call(r.attributes,s)&&s.startsWith("rr_")))continue;const n=r.attributes[s];s==="rr_scrollLeft"&&(i.scrollLeft=n),s==="rr_scrollTop"&&(i.scrollTop=n)}}function Lh(e,t){const{doc:r,onVisit:i,hackCss:s=!0,afterAppend:n,cache:o,mirror:u=new Nu}=t,a=Qr(e,{doc:r,mirror:u,skipChild:!1,hackCss:s,afterAppend:n,cache:o});return kh(u,c=>{i&&i(c),Ih(c,u)}),a}var Fh=Object.defineProperty,Uh=(e,t,r)=>t in e?Fh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,D=(e,t,r)=>Uh(e,typeof t!="symbol"?t+"":t,r),Bh=Object.defineProperty,Wh=(e,t,r)=>t in e?Bh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Oa=(e,t,r)=>Wh(e,typeof t!="symbol"?t+"":t,r);let qh=class{constructor(){Oa(this,"idNodeMap",new Map),Oa(this,"nodeMetaMap",new WeakMap)}getId(t){var r;if(!t)return-1;const i=(r=this.getMeta(t))==null?void 0:r.id;return i!=null?i:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(i=>this.removeNodeFromMap(i))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){const i=r.id;this.idNodeMap.set(i,t),this.nodeMetaMap.set(t,r)}replace(t,r){const i=this.getNode(t);if(i){const s=this.nodeMetaMap.get(i);s&&this.nodeMetaMap.set(r,s)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function zh(){return new qh}function $h(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Vh(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var s=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,s.get?s:{enumerable:!0,get:function(){return e[i]}})}),r}var mi={exports:{}},Aa;function jh(){if(Aa)return mi.exports;Aa=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return mi.exports=t(),mi.exports.createColors=t,mi.exports}const Gh={},Hh=Object.freeze(Object.defineProperty({__proto__:null,default:Gh},Symbol.toStringTag,{value:"Module"})),at=Vh(Hh);var qs,Da;function go(){if(Da)return qs;Da=1;let e=jh(),t=at;class r extends Error{constructor(s,n,o,u,a,c){super(s),this.name="CssSyntaxError",this.reason=s,a&&(this.file=a),u&&(this.source=u),c&&(this.plugin=c),typeof n!="undefined"&&typeof o!="undefined"&&(typeof n=="number"?(this.line=n,this.column=o):(this.line=n.line,this.column=n.column,this.endLine=o.line,this.endColumn=o.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(s){if(!this.source)return"";let n=this.source;s==null&&(s=e.isColorSupported),t&&s&&(n=t(n));let o=n.split(/\r?\n/),u=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length,l,d;if(s){let{bold:f,gray:h,red:m}=e.createColors(!0);l=p=>f(m(p)),d=p=>h(p)}else l=d=f=>f;return o.slice(u,a).map((f,h)=>{let m=u+1+h,p=" "+(" "+m).slice(-c)+" | ";if(m===this.line){let g=d(p.replace(/\d/g," "))+f.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+d(p)+f+`
|
|
43
|
+
`+g+l("^")}return" "+d(p)+f}).join(`
|
|
44
|
+
`)}toString(){let s=this.showSourceCode();return s&&(s=`
|
|
43
45
|
|
|
44
|
-
`+
|
|
45
|
-
`),this.name+": "+this.message+
|
|
46
|
+
`+s+`
|
|
47
|
+
`),this.name+": "+this.message+s}}return qs=r,r.default=r,qs}var gi={},Ta;function vo(){return Ta||(Ta=1,gi.isClean=Symbol("isClean"),gi.my=Symbol("my")),gi}var zs,Pa;function Fu(){if(Pa)return zs;Pa=1;const e={after:`
|
|
46
48
|
`,beforeClose:`
|
|
47
49
|
`,beforeComment:`
|
|
48
50
|
`,beforeDecl:`
|
|
49
51
|
`,beforeOpen:" ",beforeRule:`
|
|
50
|
-
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function
|
|
51
|
-
`)){let
|
|
52
|
-
`)&&(
|
|
53
|
-
`)&&(
|
|
54
|
-
`)&&(
|
|
55
|
-
`)&&(
|
|
56
|
-
`);return
|
|
57
|
-
`?(
|
|
58
|
-
`);
|
|
52
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(i){return i[0].toUpperCase()+i.slice(1)}class r{constructor(s){this.builder=s}atrule(s,n){let o="@"+s.name,u=s.params?this.rawValue(s,"params"):"";if(typeof s.raws.afterName!="undefined"?o+=s.raws.afterName:u&&(o+=" "),s.nodes)this.block(s,o+u);else{let a=(s.raws.between||"")+(n?";":"");this.builder(o+u+a,s)}}beforeAfter(s,n){let o;s.type==="decl"?o=this.raw(s,null,"beforeDecl"):s.type==="comment"?o=this.raw(s,null,"beforeComment"):n==="before"?o=this.raw(s,null,"beforeRule"):o=this.raw(s,null,"beforeClose");let u=s.parent,a=0;for(;u&&u.type!=="root";)a+=1,u=u.parent;if(o.includes(`
|
|
53
|
+
`)){let c=this.raw(s,null,"indent");if(c.length)for(let l=0;l<a;l++)o+=c}return o}block(s,n){let o=this.raw(s,"between","beforeOpen");this.builder(n+o+"{",s,"start");let u;s.nodes&&s.nodes.length?(this.body(s),u=this.raw(s,"after")):u=this.raw(s,"after","emptyBody"),u&&this.builder(u),this.builder("}",s,"end")}body(s){let n=s.nodes.length-1;for(;n>0&&s.nodes[n].type==="comment";)n-=1;let o=this.raw(s,"semicolon");for(let u=0;u<s.nodes.length;u++){let a=s.nodes[u],c=this.raw(a,"before");c&&this.builder(c),this.stringify(a,n!==u||o)}}comment(s){let n=this.raw(s,"left","commentLeft"),o=this.raw(s,"right","commentRight");this.builder("/*"+n+s.text+o+"*/",s)}decl(s,n){let o=this.raw(s,"between","colon"),u=s.prop+o+this.rawValue(s,"value");s.important&&(u+=s.raws.important||" !important"),n&&(u+=";"),this.builder(u,s)}document(s){this.body(s)}raw(s,n,o){let u;if(o||(o=n),n&&(u=s.raws[n],typeof u!="undefined"))return u;let a=s.parent;if(o==="before"&&(!a||a.type==="root"&&a.first===s||a&&a.type==="document"))return"";if(!a)return e[o];let c=s.root();if(c.rawCache||(c.rawCache={}),typeof c.rawCache[o]!="undefined")return c.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(s,o);{let l="raw"+t(o);this[l]?u=this[l](c,s):c.walk(d=>{if(u=d.raws[n],typeof u!="undefined")return!1})}return typeof u=="undefined"&&(u=e[o]),c.rawCache[o]=u,u}rawBeforeClose(s){let n;return s.walk(o=>{if(o.nodes&&o.nodes.length>0&&typeof o.raws.after!="undefined")return n=o.raws.after,n.includes(`
|
|
54
|
+
`)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawBeforeComment(s,n){let o;return s.walkComments(u=>{if(typeof u.raws.before!="undefined")return o=u.raws.before,o.includes(`
|
|
55
|
+
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(n,null,"beforeDecl"):o&&(o=o.replace(/\S/g,"")),o}rawBeforeDecl(s,n){let o;return s.walkDecls(u=>{if(typeof u.raws.before!="undefined")return o=u.raws.before,o.includes(`
|
|
56
|
+
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(n,null,"beforeRule"):o&&(o=o.replace(/\S/g,"")),o}rawBeforeOpen(s){let n;return s.walk(o=>{if(o.type!=="decl"&&(n=o.raws.between,typeof n!="undefined"))return!1}),n}rawBeforeRule(s){let n;return s.walk(o=>{if(o.nodes&&(o.parent!==s||s.first!==o)&&typeof o.raws.before!="undefined")return n=o.raws.before,n.includes(`
|
|
57
|
+
`)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawColon(s){let n;return s.walkDecls(o=>{if(typeof o.raws.between!="undefined")return n=o.raws.between.replace(/[^\s:]/g,""),!1}),n}rawEmptyBody(s){let n;return s.walk(o=>{if(o.nodes&&o.nodes.length===0&&(n=o.raws.after,typeof n!="undefined"))return!1}),n}rawIndent(s){if(s.raws.indent)return s.raws.indent;let n;return s.walk(o=>{let u=o.parent;if(u&&u!==s&&u.parent&&u.parent===s&&typeof o.raws.before!="undefined"){let a=o.raws.before.split(`
|
|
58
|
+
`);return n=a[a.length-1],n=n.replace(/\S/g,""),!1}}),n}rawSemicolon(s){let n;return s.walk(o=>{if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(n=o.raws.semicolon,typeof n!="undefined"))return!1}),n}rawValue(s,n){let o=s[n],u=s.raws[n];return u&&u.value===o?u.raw:o}root(s){this.body(s),s.raws.after&&this.builder(s.raws.after)}rule(s){this.block(s,this.rawValue(s,"selector")),s.raws.ownSemicolon&&this.builder(s.raws.ownSemicolon,s,"end")}stringify(s,n){if(!this[s.type])throw new Error("Unknown AST node type "+s.type+". Maybe you need to change PostCSS stringifier.");this[s.type](s,n)}}return zs=r,r.default=r,zs}var $s,ka;function is(){if(ka)return $s;ka=1;let e=Fu();function t(r,i){new e(i).stringify(r)}return $s=t,t.default=t,$s}var Vs,Ia;function ss(){if(Ia)return Vs;Ia=1;let{isClean:e,my:t}=vo(),r=go(),i=Fu(),s=is();function n(u,a){let c=new u.constructor;for(let l in u){if(!Object.prototype.hasOwnProperty.call(u,l)||l==="proxyCache")continue;let d=u[l],f=typeof d;l==="parent"&&f==="object"?a&&(c[l]=a):l==="source"?c[l]=d:Array.isArray(d)?c[l]=d.map(h=>n(h,c)):(f==="object"&&d!==null&&(d=n(d)),c[l]=d)}return c}class o{constructor(a={}){this.raws={},this[e]=!1,this[t]=!0;for(let c in a)if(c==="nodes"){this.nodes=[];for(let l of a[c])typeof l.clone=="function"?this.append(l.clone()):this.append(l)}else this[c]=a[c]}addToError(a){if(a.postcssNode=this,a.stack&&this.source&&/\n\s{4}at /.test(a.stack)){let c=this.source;a.stack=a.stack.replace(/\n\s{4}at /,`$&${c.input.from}:${c.start.line}:${c.start.column}$&`)}return a}after(a){return this.parent.insertAfter(this,a),this}assign(a={}){for(let c in a)this[c]=a[c];return this}before(a){return this.parent.insertBefore(this,a),this}cleanRaws(a){delete this.raws.before,delete this.raws.after,a||delete this.raws.between}clone(a={}){let c=n(this);for(let l in a)c[l]=a[l];return c}cloneAfter(a={}){let c=this.clone(a);return this.parent.insertAfter(this,c),c}cloneBefore(a={}){let c=this.clone(a);return this.parent.insertBefore(this,c),c}error(a,c={}){if(this.source){let{end:l,start:d}=this.rangeBy(c);return this.source.input.error(a,{column:d.column,line:d.line},{column:l.column,line:l.line},c)}return new r(a)}getProxyProcessor(){return{get(a,c){return c==="proxyOf"?a:c==="root"?()=>a.root().toProxy():a[c]},set(a,c,l){return a[c]===l||(a[c]=l,(c==="prop"||c==="value"||c==="name"||c==="params"||c==="important"||c==="text")&&a.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let a=this;for(;a=a.parent;)a[e]=!1}}next(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a+1]}positionBy(a,c){let l=this.source.start;if(a.index)l=this.positionInside(a.index,c);else if(a.word){c=this.toString();let d=c.indexOf(a.word);d!==-1&&(l=this.positionInside(d,c))}return l}positionInside(a,c){let l=c||this.toString(),d=this.source.start.column,f=this.source.start.line;for(let h=0;h<a;h++)l[h]===`
|
|
59
|
+
`?(d=1,f+=1):d+=1;return{column:d,line:f}}prev(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a-1]}rangeBy(a){let c={column:this.source.start.column,line:this.source.start.line},l=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:c.column+1,line:c.line};if(a.word){let d=this.toString(),f=d.indexOf(a.word);f!==-1&&(c=this.positionInside(f,d),l=this.positionInside(f+a.word.length,d))}else a.start?c={column:a.start.column,line:a.start.line}:a.index&&(c=this.positionInside(a.index)),a.end?l={column:a.end.column,line:a.end.line}:typeof a.endIndex=="number"?l=this.positionInside(a.endIndex):a.index&&(l=this.positionInside(a.index+1));return(l.line<c.line||l.line===c.line&&l.column<=c.column)&&(l={column:c.column+1,line:c.line}),{end:l,start:c}}raw(a,c){return new i().raw(this,a,c)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...a){if(this.parent){let c=this,l=!1;for(let d of a)d===this?l=!0:l?(this.parent.insertAfter(c,d),c=d):this.parent.insertBefore(c,d);l||this.remove()}return this}root(){let a=this;for(;a.parent&&a.parent.type!=="document";)a=a.parent;return a}toJSON(a,c){let l={},d=c==null;c=c||new Map;let f=0;for(let h in this){if(!Object.prototype.hasOwnProperty.call(this,h)||h==="parent"||h==="proxyCache")continue;let m=this[h];if(Array.isArray(m))l[h]=m.map(p=>typeof p=="object"&&p.toJSON?p.toJSON(null,c):p);else if(typeof m=="object"&&m.toJSON)l[h]=m.toJSON(null,c);else if(h==="source"){let p=c.get(m.input);p==null&&(p=f,c.set(m.input,f),f++),l[h]={end:m.end,inputId:p,start:m.start}}else l[h]=m}return d&&(l.inputs=[...c.keys()].map(h=>h.toJSON())),l}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(a=s){a.stringify&&(a=a.stringify);let c="";return a(this,l=>{c+=l}),c}warn(a,c,l){let d={node:this};for(let f in l)d[f]=l[f];return a.warn(c,d)}get proxyOf(){return this}}return Vs=o,o.default=o,Vs}var js,La;function ns(){if(La)return js;La=1;let e=ss();class t extends e{constructor(i){i&&typeof i.value!="undefined"&&typeof i.value!="string"&&(i=Se(Q({},i),{value:String(i.value)})),super(i),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return js=t,t.default=t,js}var Gs,Fa;function Yh(){if(Fa)return Gs;Fa=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Gs={nanoid:(i=21)=>{let s="",n=i;for(;n--;)s+=e[Math.random()*64|0];return s},customAlphabet:(i,s=21)=>(n=s)=>{let o="",u=n;for(;u--;)o+=i[Math.random()*i.length|0];return o}},Gs}var Hs,Ua;function Uu(){if(Ua)return Hs;Ua=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=at,{existsSync:r,readFileSync:i}=at,{dirname:s,join:n}=at;function o(a){return Buffer?Buffer.from(a,"base64").toString():window.atob(a)}class u{constructor(c,l){if(l.map===!1)return;this.loadAnnotation(c),this.inline=this.startWith(this.annotation,"data:");let d=l.map?l.map.prev:void 0,f=this.loadMap(l.from,d);!this.mapFile&&l.from&&(this.mapFile=l.from),this.mapFile&&(this.root=s(this.mapFile)),f&&(this.text=f)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(c){let l=/^data:application\/json;charset=utf-?8;base64,/,d=/^data:application\/json;base64,/,f=/^data:application\/json;charset=utf-?8,/,h=/^data:application\/json,/;if(f.test(c)||h.test(c))return decodeURIComponent(c.substr(RegExp.lastMatch.length));if(l.test(c)||d.test(c))return o(c.substr(RegExp.lastMatch.length));let m=c.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}getAnnotationURL(c){return c.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(c){return typeof c!="object"?!1:typeof c.mappings=="string"||typeof c._mappings=="string"||Array.isArray(c.sections)}loadAnnotation(c){let l=c.match(/\/\*\s*# sourceMappingURL=/gm);if(!l)return;let d=c.lastIndexOf(l.pop()),f=c.indexOf("*/",d);d>-1&&f>-1&&(this.annotation=this.getAnnotationURL(c.substring(d,f)))}loadFile(c){if(this.root=s(c),r(c))return this.mapFile=c,i(c,"utf-8").toString().trim()}loadMap(c,l){if(l===!1)return!1;if(l){if(typeof l=="string")return l;if(typeof l=="function"){let d=l(c);if(d){let f=this.loadFile(d);if(!f)throw new Error("Unable to load previous source map: "+d.toString());return f}}else{if(l instanceof e)return t.fromSourceMap(l).toString();if(l instanceof t)return l.toString();if(this.isMap(l))return JSON.stringify(l);throw new Error("Unsupported previous source map format: "+l.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let d=this.annotation;return c&&(d=n(s(c),d)),this.loadFile(d)}}}startWith(c,l){return c?c.substr(0,l.length)===l:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Hs=u,u.default=u,Hs}var Ys,Ba;function os(){if(Ba)return Ys;Ba=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=at,{fileURLToPath:r,pathToFileURL:i}=at,{isAbsolute:s,resolve:n}=at,{nanoid:o}=Yh(),u=at,a=go(),c=Uu(),l=Symbol("fromOffsetCache"),d=!!(e&&t),f=!!(n&&s);class h{constructor(p,g={}){if(p===null||typeof p=="undefined"||typeof p=="object"&&!p.toString)throw new Error(`PostCSS received ${p} instead of CSS string`);if(this.css=p.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!f||/^\w+:\/\//.test(g.from)||s(g.from)?this.file=g.from:this.file=n(g.from)),f&&d){let y=new c(this.css,g);if(y.text){this.map=y;let b=y.consumer().file;!this.file&&b&&(this.file=this.mapResolve(b))}}this.file||(this.id="<input css "+o(6)+">"),this.map&&(this.map.file=this.from)}error(p,g,y,b={}){let _,S,v;if(g&&typeof g=="object"){let E=g,C=y;if(typeof E.offset=="number"){let A=this.fromOffset(E.offset);g=A.line,y=A.col}else g=E.line,y=E.column;if(typeof C.offset=="number"){let A=this.fromOffset(C.offset);S=A.line,v=A.col}else S=C.line,v=C.column}else if(!y){let E=this.fromOffset(g);g=E.line,y=E.col}let w=this.origin(g,y,S,v);return w?_=new a(p,w.endLine===void 0?w.line:{column:w.column,line:w.line},w.endLine===void 0?w.column:{column:w.endColumn,line:w.endLine},w.source,w.file,b.plugin):_=new a(p,S===void 0?g:{column:y,line:g},S===void 0?y:{column:v,line:S},this.css,this.file,b.plugin),_.input={column:y,endColumn:v,endLine:S,line:g,source:this.css},this.file&&(i&&(_.input.url=i(this.file).toString()),_.input.file=this.file),_}fromOffset(p){let g,y;if(this[l])y=this[l];else{let _=this.css.split(`
|
|
60
|
+
`);y=new Array(_.length);let S=0;for(let v=0,w=_.length;v<w;v++)y[v]=S,S+=_[v].length+1;this[l]=y}g=y[y.length-1];let b=0;if(p>=g)b=y.length-1;else{let _=y.length-2,S;for(;b<_;)if(S=b+(_-b>>1),p<y[S])_=S-1;else if(p>=y[S+1])b=S+1;else{b=S;break}}return{col:p-y[b]+1,line:b+1}}mapResolve(p){return/^\w+:\/\//.test(p)?p:n(this.map.consumer().sourceRoot||this.map.root||".",p)}origin(p,g,y,b){if(!this.map)return!1;let _=this.map.consumer(),S=_.originalPositionFor({column:g,line:p});if(!S.source)return!1;let v;typeof y=="number"&&(v=_.originalPositionFor({column:b,line:y}));let w;s(S.source)?w=i(S.source):w=new URL(S.source,this.map.consumer().sourceRoot||i(this.map.mapFile));let E={column:S.column,endColumn:v&&v.column,endLine:v&&v.line,line:S.line,url:w.toString()};if(w.protocol==="file:")if(r)E.file=r(w);else throw new Error("file: protocol is not available in this PostCSS build");let C=_.sourceContentFor(S.source);return C&&(E.source=C),E}toJSON(){let p={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(p[g]=this[g]);return this.map&&(p.map=Q({},this.map),p.map.consumerCache&&(p.map.consumerCache=void 0)),p}get from(){return this.file||this.id}}return Ys=h,h.default=h,u&&u.registerInput&&u.registerInput(h),Ys}var Js,Wa;function Bu(){if(Wa)return Js;Wa=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=at,{dirname:r,relative:i,resolve:s,sep:n}=at,{pathToFileURL:o}=at,u=os(),a=!!(e&&t),c=!!(r&&s&&i&&n);class l{constructor(f,h,m,p){this.stringify=f,this.mapOpts=m.map||{},this.root=h,this.opts=m,this.css=p,this.originalCSS=p,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let f;this.isInline()?f="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?f=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?f=this.mapOpts.annotation(this.opts.to,this.root):f=this.outputFile()+".map";let h=`
|
|
59
61
|
`;this.css.includes(`\r
|
|
60
|
-
`)&&(
|
|
61
|
-
`),this.css+=
|
|
62
|
-
`),t=l.length-n):t+=l.length,a&&u!=="start"){let c=a.parent||{raws:{}};(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==c.last||c.raws.semicolon)&&(a.source&&a.source.end?(s.source=this.sourcePath(a),s.original.line=a.source.end.line,s.original.column=a.source.end.column-1,s.generated.line=e,s.generated.column=t-2,this.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,s.generated.line=e,s.generated.column=t-1,this.map.addMapping(s)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let i=this.opts.to?oi(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=oi($o(i,this.mapOpts.annotation)));let s=Po(i,e);return this.memoizedPaths.set(e,s),s}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new jc(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let i=t.source.input.from;if(i&&!e[i]){e[i]=!0;let s=this.usesFileUrls?this.toFileUrl(i):this.toUrl(this.path(i));this.map.setSourceContent(s,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(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))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(Js){let i=Js(e).toString();return this.memoizedFileURLs.set(e,i),i}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;Lo==="\\"&&(e=e.replace(/\\/g,"/"));let i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i}};var Fo=Xc;let Jc=Ii,Ar=class extends Jc{constructor(e){super(e),this.type="comment"}};var _i=Ar;Ar.default=Ar;let{isClean:Bo,my:Uo}=Mt,zo=Di,Vo=_i,Kc=Ii,Wo,ts,is,Go;function Yo(r){return r.map(e=>(e.nodes&&(e.nodes=Yo(e.nodes)),delete e.source,e))}function jo(r){if(r[Bo]=!1,r.proxyOf.nodes)for(let e of r.proxyOf.nodes)jo(e)}let Ne=class Zo extends Kc{append(...e){for(let t of e){let i=this.normalize(t,this.last);for(let s of i)this.proxyOf.nodes.push(s)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),i,s;for(;this.indexes[t]<this.proxyOf.nodes.length&&(i=this.indexes[t],s=e(this.proxyOf.nodes[i],i),s!==!1);)this.indexes[t]+=1;return delete this.indexes[t],s}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...i)=>e[t](...i.map(s=>typeof s=="function"?(o,n)=>s(o.toProxy(),n):s)):t==="every"||t==="some"?i=>e[t]((s,...o)=>i(s.toProxy(),...o)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(i=>i.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,i){return e[t]===i||(e[t]=i,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let i=this.index(e),s=this.normalize(t,this.proxyOf.nodes[i]).reverse();i=this.index(e);for(let n of s)this.proxyOf.nodes.splice(i+1,0,n);let o;for(let n in this.indexes)o=this.indexes[n],i<o&&(this.indexes[n]=o+s.length);return this.markDirty(),this}insertBefore(e,t){let i=this.index(e),s=i===0?"prepend":!1,o=this.normalize(t,this.proxyOf.nodes[i],s).reverse();i=this.index(e);for(let l of o)this.proxyOf.nodes.splice(i,0,l);let n;for(let l in this.indexes)n=this.indexes[l],i<=n&&(this.indexes[l]=n+o.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=Yo(Wo(e).nodes);else if(typeof e=="undefined")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value=="undefined")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new zo(e)]}else if(e.selector)e=[new ts(e)];else if(e.name)e=[new is(e)];else if(e.text)e=[new Vo(e)];else throw new Error("Unknown node type in node creation");return e.map(s=>(s[Uo]||Zo.rebuild(s),s=s.proxyOf,s.parent&&s.parent.removeChild(s),s[Bo]&&jo(s),typeof s.raws.before=="undefined"&&t&&typeof t.raws.before!="undefined"&&(s.raws.before=t.raws.before.replace(/\S/g,"")),s.parent=this.proxyOf,s))}prepend(...e){e=e.reverse();for(let t of e){let i=this.normalize(t,this.first,"prepend").reverse();for(let s of i)this.proxyOf.nodes.unshift(s);for(let s in this.indexes)this.indexes[s]=this.indexes[s]+i.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let i in this.indexes)t=this.indexes[i],t>=e&&(this.indexes[i]=t-1);return this.markDirty(),this}replaceValues(e,t,i){return i||(i=t,t={}),this.walkDecls(s=>{t.props&&!t.props.includes(s.prop)||t.fast&&!s.value.includes(t.fast)||(s.value=s.value.replace(e,i))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,i)=>{let s;try{s=e(t,i)}catch(o){throw t.addToError(o)}return s!==!1&&t.walk&&(s=t.walk(e)),s})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((i,s)=>{if(i.type==="atrule"&&e.test(i.name))return t(i,s)}):this.walk((i,s)=>{if(i.type==="atrule"&&i.name===e)return t(i,s)}):(t=e,this.walk((i,s)=>{if(i.type==="atrule")return t(i,s)}))}walkComments(e){return this.walk((t,i)=>{if(t.type==="comment")return e(t,i)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((i,s)=>{if(i.type==="decl"&&e.test(i.prop))return t(i,s)}):this.walk((i,s)=>{if(i.type==="decl"&&i.prop===e)return t(i,s)}):(t=e,this.walk((i,s)=>{if(i.type==="decl")return t(i,s)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((i,s)=>{if(i.type==="rule"&&e.test(i.selector))return t(i,s)}):this.walk((i,s)=>{if(i.type==="rule"&&i.selector===e)return t(i,s)}):(t=e,this.walk((i,s)=>{if(i.type==="rule")return t(i,s)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};Ne.registerParse=r=>{Wo=r};Ne.registerRule=r=>{ts=r};Ne.registerAtRule=r=>{is=r};Ne.registerRoot=r=>{Go=r};var Be=Ne;Ne.default=Ne;Ne.rebuild=r=>{r.type==="atrule"?Object.setPrototypeOf(r,is.prototype):r.type==="rule"?Object.setPrototypeOf(r,ts.prototype):r.type==="decl"?Object.setPrototypeOf(r,zo.prototype):r.type==="comment"?Object.setPrototypeOf(r,Vo.prototype):r.type==="root"&&Object.setPrototypeOf(r,Go.prototype),r[Uo]=!0,r.nodes&&r.nodes.forEach(e=>{Ne.rebuild(e)})};let Qc=Be,Ho,Xo,St=class extends Qc{constructor(e){super(U({type:"document"},e)),this.nodes||(this.nodes=[])}toResult(e={}){return new Ho(new Xo,this,e).stringify()}};St.registerLazyResult=r=>{Ho=r};St.registerProcessor=r=>{Xo=r};var rs=St;St.default=St;let Rr=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let i=t.node.rangeBy(t);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in t)this[i]=t[i]}toString(){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}};var Jo=Rr;Rr.default=Rr;let qc=Jo,Nr=class{constructor(e,t,i){this.processor=e,this.messages=[],this.root=t,this.opts=i,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let i=new qc(e,t);return this.messages.push(i),i}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var ss=Nr;Nr.default=Nr;const Gi=39,Ks=34,Wt=92,Qs=47,Gt=10,at=32,Yt=12,jt=9,Zt=13,eh=91,th=93,ih=40,rh=41,sh=123,nh=125,oh=59,lh=42,ah=58,uh=64,Ht=/[\t\n\f\r "#'()/;[\\\]{}]/g,Xt=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,ch=/.[\r\n"'(/\\]/,qs=/[\da-f]/i;var hh=function(e,t={}){let i=e.css.valueOf(),s=t.ignoreErrors,o,n,l,a,u,c,h,f,g,d,A=i.length,p=0,m=[],w=[];function v(){return p}function x(I){throw e.error("Unclosed "+I,p)}function R(){return w.length===0&&p>=A}function D(I){if(w.length)return w.pop();if(p>=A)return;let J=I?I.ignoreUnclosed:!1;switch(o=i.charCodeAt(p),o){case Gt:case at:case jt:case Zt:case Yt:{n=p;do n+=1,o=i.charCodeAt(n);while(o===at||o===Gt||o===jt||o===Zt||o===Yt);d=["space",i.slice(p,n)],p=n-1;break}case eh:case th:case sh:case nh:case ah:case oh:case rh:{let z=String.fromCharCode(o);d=[z,z,p];break}case ih:{if(f=m.length?m.pop()[1]:"",g=i.charCodeAt(p+1),f==="url"&&g!==Gi&&g!==Ks&&g!==at&&g!==Gt&&g!==jt&&g!==Yt&&g!==Zt){n=p;do{if(c=!1,n=i.indexOf(")",n+1),n===-1)if(s||J){n=p;break}else x("bracket");for(h=n;i.charCodeAt(h-1)===Wt;)h-=1,c=!c}while(c);d=["brackets",i.slice(p,n+1),p,n],p=n}else n=i.indexOf(")",p+1),a=i.slice(p,n+1),n===-1||ch.test(a)?d=["(","(",p]:(d=["brackets",a,p,n],p=n);break}case Gi:case Ks:{l=o===Gi?"'":'"',n=p;do{if(c=!1,n=i.indexOf(l,n+1),n===-1)if(s||J){n=p+1;break}else x("string");for(h=n;i.charCodeAt(h-1)===Wt;)h-=1,c=!c}while(c);d=["string",i.slice(p,n+1),p,n],p=n;break}case uh:{Ht.lastIndex=p+1,Ht.test(i),Ht.lastIndex===0?n=i.length-1:n=Ht.lastIndex-2,d=["at-word",i.slice(p,n+1),p,n],p=n;break}case Wt:{for(n=p,u=!0;i.charCodeAt(n+1)===Wt;)n+=1,u=!u;if(o=i.charCodeAt(n+1),u&&o!==Qs&&o!==at&&o!==Gt&&o!==jt&&o!==Zt&&o!==Yt&&(n+=1,qs.test(i.charAt(n)))){for(;qs.test(i.charAt(n+1));)n+=1;i.charCodeAt(n+1)===at&&(n+=1)}d=["word",i.slice(p,n+1),p,n],p=n;break}default:{o===Qs&&i.charCodeAt(p+1)===lh?(n=i.indexOf("*/",p+2)+1,n===0&&(s||J?n=i.length:x("comment")),d=["comment",i.slice(p,n+1),p,n],p=n):(Xt.lastIndex=p+1,Xt.test(i),Xt.lastIndex===0?n=i.length-1:n=Xt.lastIndex-2,d=["word",i.slice(p,n+1),p,n],m.push(d),p=n);break}}return p++,d}function Z(I){w.push(I)}return{back:Z,endOfFile:R,nextToken:D,position:v}};let Ko=Be,di=class extends Ko{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var ns=di;di.default=di;Ko.registerAtRule(di);let Qo=Be,qo,el,et=class extends Qo{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,i){let s=super.normalize(e);if(t){if(i==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let o of s)o.raws.before=t.raws.before}return s}removeChild(e,t){let i=this.index(e);return!t&&i===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[i].raws.before),super.removeChild(e)}toResult(e={}){return new qo(new el,this,e).stringify()}};et.registerLazyResult=r=>{qo=r};et.registerProcessor=r=>{el=r};var It=et;et.default=et;Qo.registerRoot(et);let Et={comma(r){return Et.split(r,[","],!0)},space(r){let e=[" ",`
|
|
63
|
-
`," "];return Et.split(r,e)},split(r,e,t){let i=[],s="",o=!1,n=0,l=!1,a="",u=!1;for(let c of r)u?u=!1:c==="\\"?u=!0:l?c===a&&(l=!1):c==='"'||c==="'"?(l=!0,a=c):c==="("?n+=1:c===")"?n>0&&(n-=1):n===0&&e.includes(c)&&(o=!0),o?(s!==""&&i.push(s.trim()),s="",o=!1):s+=c;return(t||s!=="")&&i.push(s.trim()),i}};var tl=Et;Et.default=Et;let il=Be,fh=tl,mi=class extends il{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return fh.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,i=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(i)}};var os=mi;mi.default=mi;il.registerRule(mi);let ph=Di,dh=hh,mh=_i,gh=ns,yh=It,en=os;const tn={empty:!0,space:!0};function wh(r){for(let e=r.length-1;e>=0;e--){let t=r[e],i=t[3]||t[2];if(i)return i}}let vh=class{constructor(e){this.input=e,this.root=new yh,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new gh;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let i,s,o,n=!1,l=!1,a=[],u=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),i=e[0],i==="("||i==="["?u.push(i==="("?")":"]"):i==="{"&&u.length>0?u.push("}"):i===u[u.length-1]&&u.pop(),u.length===0)if(i===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(i==="{"){l=!0;break}else if(i==="}"){if(a.length>0){for(o=a.length-1,s=a[o];s&&s[0]==="space";)s=a[--o];s&&(t.source.end=this.getPosition(s[3]||s[2]),t.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){n=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),n&&(e=a[a.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),l&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let i=0,s;for(let o=t-1;o>=0&&(s=e[o],!(s[0]!=="space"&&(i+=1,i===2)));o--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(e){let t=0,i,s,o;for(let[n,l]of e.entries()){if(i=l,s=i[0],s==="("&&(t+=1),s===")"&&(t-=1),t===0&&s===":")if(!o)this.doubleColon(i);else{if(o[0]==="word"&&o[1]==="progid")continue;return n}o=i}return!1}comment(e){let t=new mh;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let i=e[1].slice(2,-2);if(/^\s*$/.test(i))t.text="",t.raws.left=i,t.raws.right="";else{let s=i.match(/^(\s*)([^]*\S)(\s*)$/);t.text=s[2],t.raws.left=s[1],t.raws.right=s[3]}}createTokenizer(){this.tokenizer=dh(this.input)}decl(e,t){let i=new ph;this.init(i,e[0][2]);let s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(s[3]||s[2]||wh(e)),i.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){let u=e[0][0];if(u===":"||u==="space"||u==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";let o;for(;e.length;)if(o=e.shift(),o[0]===":"){i.raws.between+=o[1];break}else o[0]==="word"&&/\w/.test(o[1])&&this.unknownWord([o]),i.raws.between+=o[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let n=[],l;for(;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)n.push(e.shift());this.precheckMissedSemicolon(e);for(let u=e.length-1;u>=0;u--){if(o=e[u],o[1].toLowerCase()==="!important"){i.important=!0;let c=this.stringFrom(e,u);c=this.spacesFromEnd(e)+c,c!==" !important"&&(i.raws.important=c);break}else if(o[1].toLowerCase()==="important"){let c=e.slice(0),h="";for(let f=u;f>0;f--){let g=c[f][0];if(h.trim().indexOf("!")===0&&g!=="space")break;h=c.pop()[1]+h}h.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=h,e=c)}if(o[0]!=="space"&&o[0]!=="comment")break}e.some(u=>u[0]!=="space"&&u[0]!=="comment")&&(i.raws.between+=n.map(u=>u[1]).join(""),n=[]),this.raw(i,"value",n.concat(e),t),i.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new en;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(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)}endFile(){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())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,i=null,s=!1,o=null,n=[],l=e[1].startsWith("--"),a=[],u=e;for(;u;){if(i=u[0],a.push(u),i==="("||i==="[")o||(o=u),n.push(i==="("?")":"]");else if(l&&s&&i==="{")o||(o=u),n.push("}");else if(n.length===0)if(i===";")if(s){this.decl(a,l);return}else break;else if(i==="{"){this.rule(a);return}else if(i==="}"){this.tokenizer.back(a.pop()),t=!0;break}else i===":"&&(s=!0);else i===n[n.length-1]&&(n.pop(),n.length===0&&(o=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),n.length>0&&this.unclosedBracket(o),t&&s){if(!l)for(;a.length&&(u=a[a.length-1][0],!(u!=="space"&&u!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,l)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[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);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,i,s){let o,n,l=i.length,a="",u=!0,c,h;for(let f=0;f<l;f+=1)o=i[f],n=o[0],n==="space"&&f===l-1&&!s?u=!1:n==="comment"?(h=i[f-1]?i[f-1][0]:"empty",c=i[f+1]?i[f+1][0]:"empty",!tn[h]&&!tn[c]?a.slice(-1)===","?u=!1:a+=o[1]:u=!1):a+=o[1];if(!u){let f=i.reduce((g,d)=>g+d[1],"");e.raws[t]={raw:f,value:a}}e[t]=a}rule(e){e.pop();let t=new en;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,i="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)i=e.pop()[1]+i;return i}spacesAndCommentsFromStart(e){let t,i="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)i+=e.shift()[1];return i}spacesFromEnd(e){let t,i="";for(;e.length&&(t=e[e.length-1][0],t==="space");)i=e.pop()[1]+i;return i}stringFrom(e,t){let i="";for(let s=t;s<e.length;s++)i+=e[s][1];return e.splice(t,e.length-t),i}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};var bh=vh;let Ch=Be,Sh=bh,Eh=Oi;function gi(r,e){let t=new Eh(r,e),i=new Sh(t);try{i.parse()}catch(s){throw s}return i.root}var ls=gi;gi.default=gi;Ch.registerParse(gi);let{isClean:Ce,my:xh}=Mt,Ah=Fo,Rh=Mi,Nh=Be,Mh=rs;let rn=ss,Ih=ls,Dh=It;const Oh={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},_h={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},Th={Once:!0,postcssPlugin:!0,prepare:!0},tt=0;function ut(r){return typeof r=="object"&&typeof r.then=="function"}function rl(r){let e=!1,t=Oh[r.type];return r.type==="decl"?e=r.prop.toLowerCase():r.type==="atrule"&&(e=r.name.toLowerCase()),e&&r.append?[t,t+"-"+e,tt,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:r.append?[t,tt,t+"Exit"]:[t,t+"Exit"]}function sn(r){let e;return r.type==="document"?e=["Document",tt,"DocumentExit"]:r.type==="root"?e=["Root",tt,"RootExit"]:e=rl(r),{eventIndex:0,events:e,iterator:0,node:r,visitorIndex:0,visitors:[]}}function Mr(r){return r[Ce]=!1,r.nodes&&r.nodes.forEach(e=>Mr(e)),r}let Ir={},it=class sl{constructor(e,t,i){this.stringified=!1,this.processed=!1;let s;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))s=Mr(t);else if(t instanceof sl||t instanceof rn)s=Mr(t.root),t.map&&(typeof i.map=="undefined"&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=t.map);else{let o=Ih;i.syntax&&(o=i.syntax.parse),i.parser&&(o=i.parser),o.parse&&(o=o.parse);try{s=o(t,i)}catch(n){this.processed=!0,this.error=n}s&&!s[xh]&&Nh.rebuild(s)}this.result=new rn(e,s,i),this.helpers=le(U({},Ir),{postcss:Ir,result:this.result}),this.plugins=this.processor.plugins.map(o=>typeof o=="object"&&o.prepare?U(U({},o),o.prepare(this.result)):o)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let i=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=i.postcssPlugin,e.setMessage()):i.postcssVersion}catch(s){console&&console.error&&console.error(s)}return e}prepareVisitors(){this.listeners={};let e=(t,i,s)=>{this.listeners[i]||(this.listeners[i]=[]),this.listeners[i].push([t,s])};for(let t of this.plugins)if(typeof t=="object")for(let i in t){if(!_h[i]&&/^[A-Z]/.test(i))throw new Error(`Unknown event ${i} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Th[i])if(typeof t[i]=="object")for(let s in t[i])s==="*"?e(t,i,t[i][s]):e(t,i+"-"+s.toLowerCase(),t[i][s]);else typeof t[i]=="function"&&e(t,i,t[i])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],i=this.runOnRoot(t);if(ut(i))try{await i}catch(s){throw this.handleError(s)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Ce];){e[Ce]=!0;let t=[sn(e)];for(;t.length>0;){let i=this.visitTick(t);if(ut(i))try{await i}catch(s){let o=t[t.length-1].node;throw this.handleError(s,o)}}}if(this.listeners.OnceExit)for(let[t,i]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let s=e.nodes.map(o=>i(o,this.helpers));await Promise.all(s)}else await i(e,this.helpers)}catch(s){throw this.handleError(s)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(i=>e.Once(i,this.helpers));return ut(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=Rh;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let s=new Ah(t,this.result.root,this.result.opts).generate();return this.result.css=s[0],this.result.map=s[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(ut(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Ce];)e[Ce]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[i,s]of e){this.result.lastPlugin=i;let o;try{o=s(t,this.helpers)}catch(n){throw this.handleError(n,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(ut(o))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:i,visitors:s}=t;if(i.type!=="root"&&i.type!=="document"&&!i.parent){e.pop();return}if(s.length>0&&t.visitorIndex<s.length){let[n,l]=s[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===s.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=n;try{return l(i.toProxy(),this.helpers)}catch(a){throw this.handleError(a,i)}}if(t.iterator!==0){let n=t.iterator,l;for(;l=i.nodes[i.indexes[n]];)if(i.indexes[n]+=1,!l[Ce]){l[Ce]=!0,e.push(sn(l));return}t.iterator=0,delete i.indexes[n]}let o=t.events;for(;t.eventIndex<o.length;){let n=o[t.eventIndex];if(t.eventIndex+=1,n===tt){i.nodes&&i.nodes.length&&(i[Ce]=!0,t.iterator=i.getIterator());return}else if(this.listeners[n]){t.visitors=this.listeners[n];return}}e.pop()}walkSync(e){e[Ce]=!0;let t=rl(e);for(let i of t)if(i===tt)e.nodes&&e.each(s=>{s[Ce]||this.walkSync(s)});else{let s=this.listeners[i];if(s&&this.visitSync(s,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};it.registerPostcss=r=>{Ir=r};var nl=it;it.default=it;Dh.registerLazyResult(it);Mh.registerLazyResult(it);let kh=Fo,Ph=Mi;let $h=ls;const Lh=ss;let Dr=class{constructor(e,t,i){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=i,this._map=void 0;let s,o=Ph;this.result=new Lh(this._processor,s,this._opts),this.result.css=t;let n=this;Object.defineProperty(this.result,"root",{get(){return n.root}});let l=new kh(o,s,this._opts,t);if(l.isMap()){let[a,u]=l.generate();a&&(this.result.css=a),u&&(this.result.map=u)}else l.clearAnnotation(),this.result.css=l.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=$h;try{e=t(this._css,this._opts)}catch(i){this.error=i}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var Fh=Dr;Dr.default=Dr;let Bh=Fh,Uh=nl,zh=rs,Vh=It,xt=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let i of e)if(i.postcss===!0?i=i():i.postcss&&(i=i.postcss),typeof i=="object"&&Array.isArray(i.plugins))t=t.concat(i.plugins);else if(typeof i=="object"&&i.postcssPlugin)t.push(i);else if(typeof i=="function")t.push(i);else if(!(typeof i=="object"&&(i.parse||i.stringify)))throw new Error(i+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new Bh(this,e,t):new Uh(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var Wh=xt;xt.default=xt;Vh.registerProcessor(xt);zh.registerProcessor(xt);let Gh=Di,Yh=To,jh=_i,Zh=ns,Hh=Oi,Xh=It,Jh=os;function At(r,e){if(Array.isArray(r))return r.map(n=>At(n));let s=r,{inputs:t}=s,i=nt(s,["inputs"]);if(t){e=[];for(let n of t){let l=le(U({},n),{__proto__:Hh.prototype});l.map&&(l.map=le(U({},l.map),{__proto__:Yh.prototype})),e.push(l)}}if(i.nodes&&(i.nodes=r.nodes.map(n=>At(n,e))),i.source){let o=i.source,{inputId:n}=o,l=nt(o,["inputId"]);i.source=l,n!=null&&(i.source.input=e[n])}if(i.type==="root")return new Xh(i);if(i.type==="decl")return new Gh(i);if(i.type==="rule")return new Jh(i);if(i.type==="comment")return new jh(i);if(i.type==="atrule")return new Zh(i);throw new Error("Unknown node type: "+r.type)}var Kh=At;At.default=At;let Qh=es,ol=Di,qh=nl,ef=Be,as=Wh,tf=Mi,rf=Kh,ll=rs,sf=Jo,al=_i,ul=ns,nf=ss,of=Oi,lf=ls,af=tl,cl=os,hl=It,uf=Ii;function B(...r){return r.length===1&&Array.isArray(r[0])&&(r=r[0]),new as(r)}B.plugin=function(e,t){let i=!1;function s(...n){console&&console.warn&&!i&&(i=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
|
64
|
-
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(
|
|
65
|
-
https://www.w3ctech.com/topic/2226`));let l=t(...n);return l.postcssPlugin=e,l.postcssVersion=new as().version,l}let o;return Object.defineProperty(s,"postcss",{get(){return o||(o=s()),o}}),s.process=function(n,l,a){return B([s(a)]).process(n,l)},s};B.stringify=tf;B.parse=lf;B.fromJSON=rf;B.list=af;B.comment=r=>new al(r);B.atRule=r=>new ul(r);B.decl=r=>new ol(r);B.rule=r=>new cl(r);B.root=r=>new hl(r);B.document=r=>new ll(r);B.CssSyntaxError=Qh;B.Declaration=ol;B.Container=ef;B.Processor=as;B.Document=ll;B.Comment=al;B.Warning=sf;B.AtRule=ul;B.Result=nf;B.Input=of;B.Rule=cl;B.Root=hl;B.Node=uf;qh.registerPostcss(B);var cf=B;B.default=B;const X=Cc(cf);X.stringify;X.fromJSON;X.plugin;X.parse;X.list;X.document;X.comment;X.atRule;X.rule;X.decl;X.root;X.CssSyntaxError;X.Declaration;X.Container;X.Processor;X.Document;X.Comment;X.Warning;X.AtRule;X.Result;X.Input;X.Rule;X.Root;X.Node;var O=(r=>(r[r.Document=0]="Document",r[r.DocumentType=1]="DocumentType",r[r.Element=2]="Element",r[r.Text=3]="Text",r[r.CDATA=4]="CDATA",r[r.Comment=5]="Comment",r))(O||{});function hf(r){const e={},t=/;(?![^(]*\))/g,i=/:(.+)/,s=/\/\*.*?\*\//g;return r.replace(s,"").split(t).forEach(function(o){if(o){const n=o.split(i);n.length>1&&(e[Or(n[0].trim())]=n[1].trim())}}),e}function nn(r){const e=[];for(const t in r){const i=r[t];if(typeof i!="string")continue;const s=mf(t);e.push(`${s}: ${i};`)}return e.join(" ")}const ff=/-([a-z])/g,pf=/^--[a-zA-Z0-9-]+$/,Or=r=>pf.test(r)?r:r.replace(ff,(e,t)=>t?t.toUpperCase():""),df=/\B([A-Z])/g,mf=r=>r.replace(df,"-$1").toLowerCase();class ye{constructor(...e){C(this,"parentElement",null),C(this,"parentNode",null),C(this,"ownerDocument"),C(this,"firstChild",null),C(this,"lastChild",null),C(this,"previousSibling",null),C(this,"nextSibling",null),C(this,"ELEMENT_NODE",1),C(this,"TEXT_NODE",3),C(this,"nodeType"),C(this,"nodeName"),C(this,"RRNodeType")}get childNodes(){const e=[];let t=this.firstChild;for(;t;)e.push(t),t=t.nextSibling;return e}contains(e){if(e instanceof ye){if(e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0}else return!1;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}return!1}appendChild(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}class us extends ye{constructor(...e){super(e),C(this,"nodeType",9),C(this,"nodeName","#document"),C(this,"compatMode","CSS1Compat"),C(this,"RRNodeType",O.Document),C(this,"textContent",null),this.ownerDocument=this}get documentElement(){return this.childNodes.find(e=>e.RRNodeType===O.Element&&e.tagName==="HTML")||null}get body(){var e;return((e=this.documentElement)==null?void 0:e.childNodes.find(t=>t.RRNodeType===O.Element&&t.tagName==="BODY"))||null}get head(){var e;return((e=this.documentElement)==null?void 0:e.childNodes.find(t=>t.RRNodeType===O.Element&&t.tagName==="HEAD"))||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(e){const t=e.RRNodeType;if((t===O.Element||t===O.DocumentType)&&this.childNodes.some(s=>s.RRNodeType===t))throw new Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${t===O.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const i=cs(this,e);return i.parentElement=null,i}insertBefore(e,t){const i=e.RRNodeType;if((i===O.Element||i===O.DocumentType)&&this.childNodes.some(o=>o.RRNodeType===i))throw new Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${i===O.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const s=gl(this,e,t);return s.parentElement=null,s}removeChild(e){return yl(this,e)}open(){this.firstChild=null,this.lastChild=null}close(){}write(e){let t;if(e==='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'?t="-//W3C//DTD XHTML 1.0 Transitional//EN":e==='<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">'&&(t="-//W3C//DTD HTML 4.0 Transitional//EN"),t){const i=this.createDocumentType("html",t,"");this.open(),this.appendChild(i)}}createDocument(e,t,i){return new us}createDocumentType(e,t,i){const s=new fl(e,t,i);return s.ownerDocument=this,s}createElement(e){const t=new Ti(e);return t.ownerDocument=this,t}createElementNS(e,t){return this.createElement(t)}createTextNode(e){const t=new pl(e);return t.ownerDocument=this,t}createComment(e){const t=new dl(e);return t.ownerDocument=this,t}createCDATASection(e){const t=new ml(e);return t.ownerDocument=this,t}toString(){return"RRDocument"}}class fl extends ye{constructor(e,t,i){super(),C(this,"nodeType",10),C(this,"RRNodeType",O.DocumentType),C(this,"name"),C(this,"publicId"),C(this,"systemId"),C(this,"textContent",null),this.name=e,this.publicId=t,this.systemId=i,this.nodeName=e}toString(){return"RRDocumentType"}}class Ti extends ye{constructor(e){super(),C(this,"nodeType",1),C(this,"RRNodeType",O.Element),C(this,"tagName"),C(this,"attributes",{}),C(this,"shadowRoot",null),C(this,"scrollLeft"),C(this,"scrollTop"),this.tagName=e.toUpperCase(),this.nodeName=e.toUpperCase()}get textContent(){let e="";return this.childNodes.forEach(t=>e+=t.textContent),e}set textContent(e){this.firstChild=null,this.lastChild=null,this.appendChild(this.ownerDocument.createTextNode(e))}get classList(){return new wf(this.attributes.class,e=>{this.attributes.class=e})}get id(){return this.attributes.id||""}get className(){return this.attributes.class||""}get style(){const e=this.attributes.style?hf(this.attributes.style):{},t=/\B([A-Z])/g;return e.setProperty=(i,s,o)=>{if(t.test(i))return;const n=Or(i);s?e[n]=s:delete e[n],o==="important"&&(e[n]+=" !important"),this.attributes.style=nn(e)},e.removeProperty=i=>{if(t.test(i))return"";const s=Or(i),o=e[s]||"";return delete e[s],this.attributes.style=nn(e),o},e}getAttribute(e){return this.attributes[e]===void 0?null:this.attributes[e]}setAttribute(e,t){this.attributes[e]=t}setAttributeNS(e,t,i){this.setAttribute(t,i)}removeAttribute(e){delete this.attributes[e]}appendChild(e){return cs(this,e)}insertBefore(e,t){return gl(this,e,t)}removeChild(e){return yl(this,e)}attachShadow(e){const t=this.ownerDocument.createElement("SHADOWROOT");return this.shadowRoot=t,t}dispatchEvent(e){return!0}toString(){let e="";for(const t in this.attributes)e+=`${t}="${this.attributes[t]}" `;return`${this.tagName} ${e}`}}class gf extends Ti{constructor(){super(...arguments),C(this,"currentTime"),C(this,"volume"),C(this,"paused"),C(this,"muted"),C(this,"playbackRate"),C(this,"loop")}attachShadow(e){throw new Error("RRDomException: Failed to execute 'attachShadow' on 'RRElement': This RRElement does not support attachShadow")}play(){this.paused=!1}pause(){this.paused=!0}}class yf extends Ti{constructor(){super(...arguments),C(this,"tagName","DIALOG"),C(this,"nodeName","DIALOG")}get isModal(){return this.getAttribute("rr_open_mode")==="modal"}get open(){return this.getAttribute("open")!==null}close(){this.removeAttribute("open"),this.removeAttribute("rr_open_mode")}show(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","non-modal")}showModal(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","modal")}}class pl extends ye{constructor(e){super(),C(this,"nodeType",3),C(this,"nodeName","#text"),C(this,"RRNodeType",O.Text),C(this,"data"),this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRText text=${JSON.stringify(this.data)}`}}class dl extends ye{constructor(e){super(),C(this,"nodeType",8),C(this,"nodeName","#comment"),C(this,"RRNodeType",O.Comment),C(this,"data"),this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRComment text=${JSON.stringify(this.data)}`}}class ml extends ye{constructor(e){super(),C(this,"nodeName","#cdata-section"),C(this,"nodeType",4),C(this,"RRNodeType",O.CDATA),C(this,"data"),this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRCDATASection data=${JSON.stringify(this.data)}`}}class wf{constructor(e,t){if(C(this,"onChange"),C(this,"classes",[]),C(this,"add",(...i)=>{for(const s of i){const o=String(s);this.classes.indexOf(o)>=0||this.classes.push(o)}this.onChange&&this.onChange(this.classes.join(" "))}),C(this,"remove",(...i)=>{this.classes=this.classes.filter(s=>i.indexOf(s)===-1),this.onChange&&this.onChange(this.classes.join(" "))}),e){const i=e.trim().split(/\s+/);this.classes.push(...i)}this.onChange=t}}function cs(r,e){return e.parentNode&&e.parentNode.removeChild(e),r.lastChild?(r.lastChild.nextSibling=e,e.previousSibling=r.lastChild):(r.firstChild=e,e.previousSibling=null),r.lastChild=e,e.nextSibling=null,e.parentNode=r,e.parentElement=r,e.ownerDocument=r.ownerDocument,e}function gl(r,e,t){if(!t)return cs(r,e);if(t.parentNode!==r)throw new Error("Failed to execute 'insertBefore' on 'RRNode': The RRNode before which the new node is to be inserted is not a child of this RRNode.");return e===t||(e.parentNode&&e.parentNode.removeChild(e),e.previousSibling=t.previousSibling,t.previousSibling=e,e.nextSibling=t,e.previousSibling?e.previousSibling.nextSibling=e:r.firstChild=e,e.parentElement=r,e.parentNode=r,e.ownerDocument=r.ownerDocument),e}function yl(r,e){if(e.parentNode!==r)throw new Error("Failed to execute 'removeChild' on 'RRNode': The RRNode to be removed is not a child of this RRNode.");return e.previousSibling?e.previousSibling.nextSibling=e.nextSibling:r.firstChild=e.nextSibling,e.nextSibling?e.nextSibling.previousSibling=e.previousSibling:r.lastChild=e.previousSibling,e.previousSibling=null,e.nextSibling=null,e.parentElement=null,e.parentNode=null,e}var ue=(r=>(r[r.PLACEHOLDER=0]="PLACEHOLDER",r[r.ELEMENT_NODE=1]="ELEMENT_NODE",r[r.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",r[r.TEXT_NODE=3]="TEXT_NODE",r[r.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",r[r.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",r[r.ENTITY_NODE=6]="ENTITY_NODE",r[r.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",r[r.COMMENT_NODE=8]="COMMENT_NODE",r[r.DOCUMENT_NODE=9]="DOCUMENT_NODE",r[r.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",r[r.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",r))(ue||{});const _r={svg:"http://www.w3.org/2000/svg","xlink:href":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"},vf={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};let Se=null;function yi(r,e,t,i=e.mirror||e.ownerDocument.mirror){r=bf(r,e,t,i),wl(r,e,t,i),Cf(r,e,t)}function bf(r,e,t,i){var s;if(t.afterAppend&&!Se&&(Se=new WeakSet,setTimeout(()=>{Se=null},0)),!hs(r,e)){const o=wi(e,t.mirror,i);(s=r.parentNode)==null||s.replaceChild(o,r),r=o}switch(e.RRNodeType){case O.Document:{if(!We(r,e,t.mirror,i)){const o=i.getMeta(e);o&&(t.mirror.removeNodeFromMap(r),r.close(),r.open(),t.mirror.add(r,o),Se==null||Se.add(r))}break}case O.Element:{const o=r,n=e;switch(n.tagName){case"IFRAME":{const l=r.contentDocument;if(!l)break;yi(l,e.contentDocument,t,i);break}}n.shadowRoot&&(o.shadowRoot||o.attachShadow({mode:"open"}),wl(o.shadowRoot,n.shadowRoot,t,i)),Sf(o,n,i);break}}return r}function Cf(r,e,t){var i;switch(e.RRNodeType){case O.Document:{const s=e.scrollData;s&&t.applyScroll(s,!0);break}case O.Element:{const s=r,o=e;switch(o.scrollData&&t.applyScroll(o.scrollData,!0),o.inputData&&t.applyInput(o.inputData),o.tagName){case"AUDIO":case"VIDEO":{const n=r,l=o;l.paused!==void 0&&(l.paused?n.pause():n.play()),l.muted!==void 0&&(n.muted=l.muted),l.volume!==void 0&&(n.volume=l.volume),l.currentTime!==void 0&&(n.currentTime=l.currentTime),l.playbackRate!==void 0&&(n.playbackRate=l.playbackRate),l.loop!==void 0&&(n.loop=l.loop);break}case"CANVAS":{const n=e;if(n.rr_dataURL!==null){const l=document.createElement("img");l.onload=()=>{const a=s.getContext("2d");a&&a.drawImage(l,0,0,l.width,l.height)},l.src=n.rr_dataURL}n.canvasMutations.forEach(l=>t.applyCanvas(l.event,l.mutation,r));break}case"STYLE":{const n=s.sheet;n&&e.rules.forEach(l=>t.applyStyleSheetMutation(l,n));break}case"DIALOG":{const n=s,l=o,a=n.open,u=n.matches("dialog:modal"),c=l.open,h=l.isModal,f=u!==h,g=a!==c;if((f||a&&g)&&n.close(),c&&(g||f))try{h?n.showModal():n.show()}catch(d){console.warn(d)}break}}break}case O.Text:case O.Comment:case O.CDATA:{r.textContent!==e.data&&(r.textContent=e.data);break}}Se!=null&&Se.has(r)&&(Se.delete(r),(i=t.afterAppend)==null||i.call(t,r,t.mirror.getId(r)))}function Sf(r,e,t){const i=r.attributes,s=e.attributes;for(const o in s){const n=s[o],l=t.getMeta(e);if(l!=null&&l.isSVG&&_r[o])r.setAttributeNS(_r[o],o,n);else if(e.tagName==="CANVAS"&&o==="rr_dataURL"){const a=document.createElement("img");a.src=n,a.onload=()=>{const u=r.getContext("2d");u&&u.drawImage(a,0,0,a.width,a.height)}}else{if(e.tagName==="IFRAME"&&o==="srcdoc")continue;try{r.setAttribute(o,n)}catch(a){console.warn(a)}}}for(const{name:o}of Array.from(i))o in s||r.removeAttribute(o);e.scrollLeft&&(r.scrollLeft=e.scrollLeft),e.scrollTop&&(r.scrollTop=e.scrollTop)}function wl(r,e,t,i){const s=Array.from(r.childNodes),o=e.childNodes;if(s.length===0&&o.length===0)return;let n=0,l=s.length-1,a=0,u=o.length-1,c=s[n],h=s[l],f=o[a],g=o[u],d,A;for(;n<=l&&a<=u;)if(c===void 0)c=s[++n];else if(h===void 0)h=s[--l];else if(We(c,f,t.mirror,i))c=s[++n],f=o[++a];else if(We(h,g,t.mirror,i))h=s[--l],g=o[--u];else if(We(c,g,t.mirror,i)){try{r.insertBefore(c,h.nextSibling)}catch(w){console.warn(w)}c=s[++n],g=o[--u]}else if(We(h,f,t.mirror,i)){try{r.insertBefore(h,c)}catch(w){console.warn(w)}h=s[--l],f=o[++a]}else{if(!d){d={};for(let v=n;v<=l;v++){const x=s[v];x&&t.mirror.hasNode(x)&&(d[t.mirror.getId(x)]=v)}}A=d[i.getId(f)];const w=s[A];if(A!==void 0&&w&&We(w,f,t.mirror,i)){try{r.insertBefore(w,c)}catch(v){console.warn(v)}s[A]=void 0}else{const v=wi(f,t.mirror,i);r.nodeName==="#document"&&c&&(v.nodeType===v.DOCUMENT_TYPE_NODE&&c.nodeType===c.DOCUMENT_TYPE_NODE||v.nodeType===v.ELEMENT_NODE&&c.nodeType===c.ELEMENT_NODE)&&(r.removeChild(c),t.mirror.removeNodeFromMap(c),c=s[++n]);try{r.insertBefore(v,c||null)}catch(x){console.warn(x)}}f=o[++a]}if(n>l){const w=o[u+1];let v=null;for(w&&(v=t.mirror.getNode(i.getId(w)));a<=u;++a){const x=wi(o[a],t.mirror,i);try{r.insertBefore(x,v)}catch(R){console.warn(R)}}}else if(a>u)for(;n<=l;n++){const w=s[n];if(!(!w||w.parentNode!==r))try{r.removeChild(w),t.mirror.removeNodeFromMap(w)}catch(v){console.warn(v)}}let p=r.firstChild,m=e.firstChild;for(;p!==null&&m!==null;)yi(p,m,t,i),p=p.nextSibling,m=m.nextSibling}function wi(r,e,t){const i=t.getId(r),s=t.getMeta(r);let o=null;if(i>-1&&(o=e.getNode(i)),o!==null&&hs(o,r))return o;switch(r.RRNodeType){case O.Document:o=new Document;break;case O.DocumentType:o=document.implementation.createDocumentType(r.name,r.publicId,r.systemId);break;case O.Element:{let n=r.tagName.toLowerCase();n=vf[n]||n,s&&"isSVG"in s&&(s!=null&&s.isSVG)?o=document.createElementNS(_r.svg,n):o=document.createElement(r.tagName);break}case O.Text:o=document.createTextNode(r.data);break;case O.Comment:o=document.createComment(r.data);break;case O.CDATA:o=document.createCDATASection(r.data);break}s&&e.add(o,U({},s));try{Se==null||Se.add(o)}catch(n){}return o}function hs(r,e){return r.nodeType!==e.nodeType?!1:r.nodeType!==r.ELEMENT_NODE||r.tagName.toUpperCase()===e.tagName}function We(r,e,t,i){const s=t.getId(r),o=i.getId(e);return s===-1||s!==o?!1:hs(r,e)}class st extends us{constructor(e){super(),C(this,"UNSERIALIZED_STARTING_ID",-2),C(this,"_unserializedId",this.UNSERIALIZED_STARTING_ID),C(this,"mirror",kf()),C(this,"scrollData",null),e&&(this.mirror=e)}get unserializedId(){return this._unserializedId--}createDocument(e,t,i){return new st}createDocumentType(e,t,i){const s=new Ef(e,t,i);return s.ownerDocument=this,s}createElement(e){const t=e.toUpperCase();let i;switch(t){case"AUDIO":case"VIDEO":i=new xf(t);break;case"IFRAME":i=new Mf(t,this.mirror);break;case"CANVAS":i=new Rf(t);break;case"STYLE":i=new Nf(t);break;case"DIALOG":i=new Af(t);break;default:i=new ki(t);break}return i.ownerDocument=this,i}createComment(e){const t=new Df(e);return t.ownerDocument=this,t}createCDATASection(e){const t=new Of(e);return t.ownerDocument=this,t}createTextNode(e){const t=new If(e);return t.ownerDocument=this,t}destroyTree(){this.firstChild=null,this.lastChild=null,this.mirror.reset()}open(){super.open(),this._unserializedId=this.UNSERIALIZED_STARTING_ID}}const Ef=fl;class ki extends Ti{constructor(){super(...arguments),C(this,"inputData",null),C(this,"scrollData",null)}}class xf extends gf{}class Af extends yf{}class Rf extends ki{constructor(){super(...arguments),C(this,"rr_dataURL",null),C(this,"canvasMutations",[])}getContext(){return null}}class Nf extends ki{constructor(){super(...arguments),C(this,"rules",[])}}class Mf extends ki{constructor(e,t){super(e),C(this,"contentDocument",new st),this.contentDocument.mirror=t}}const If=pl,Df=dl,Of=ml;function _f(r){return r instanceof HTMLFormElement?"FORM":r.tagName.toUpperCase()}function vl(r,e,t,i){let s;switch(r.nodeType){case ue.DOCUMENT_NODE:i&&i.nodeName==="IFRAME"?s=i.contentDocument:(s=e,s.compatMode=r.compatMode);break;case ue.DOCUMENT_TYPE_NODE:{const n=r;s=e.createDocumentType(n.name,n.publicId,n.systemId);break}case ue.ELEMENT_NODE:{const n=r,l=_f(n);s=e.createElement(l);const a=s;for(const{name:u,value:c}of Array.from(n.attributes))a.attributes[u]=c;n.scrollLeft&&(a.scrollLeft=n.scrollLeft),n.scrollTop&&(a.scrollTop=n.scrollTop);break}case ue.TEXT_NODE:s=e.createTextNode(r.textContent||"");break;case ue.CDATA_SECTION_NODE:s=e.createCDATASection(r.data);break;case ue.COMMENT_NODE:s=e.createComment(r.textContent||"");break;case ue.DOCUMENT_FRAGMENT_NODE:s=i.attachShadow({mode:"open"});break;default:return null}let o=t.getMeta(r);return e instanceof st&&(o||(o=Tr(s,e.unserializedId),t.add(r,o)),e.mirror.add(s,U({},o))),s}function Tf(r,e=bc(),t=new st){function i(s,o){const n=vl(s,t,e,o);if(n!==null)if((o==null?void 0:o.nodeName)!=="IFRAME"&&s.nodeType!==ue.DOCUMENT_FRAGMENT_NODE&&(o==null||o.appendChild(n),n.parentNode=o,n.parentElement=o),s.nodeName==="IFRAME"){const l=s.contentDocument;l&&i(l,n)}else(s.nodeType===ue.DOCUMENT_NODE||s.nodeType===ue.ELEMENT_NODE||s.nodeType===ue.DOCUMENT_FRAGMENT_NODE)&&(s.nodeType===ue.ELEMENT_NODE&&s.shadowRoot&&i(s.shadowRoot,n),s.childNodes.forEach(l=>i(l,n)))}return i(r,null),t}function kf(){return new Pf}class Pf{constructor(){C(this,"idNodeMap",new Map),C(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;const i=(t=this.getMeta(e))==null?void 0:t.id;return i!=null?i:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(i=>this.removeNodeFromMap(i))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const i=t.id;this.idNodeMap.set(i,e),this.nodeMetaMap.set(e,t)}replace(e,t){const i=this.getNode(e);if(i){const s=this.nodeMetaMap.get(i);s&&this.nodeMetaMap.set(t,s)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Tr(r,e){switch(r.RRNodeType){case O.Document:return{id:e,type:r.RRNodeType,childNodes:[]};case O.DocumentType:{const t=r;return{id:e,type:r.RRNodeType,name:t.name,publicId:t.publicId,systemId:t.systemId}}case O.Element:return{id:e,type:r.RRNodeType,tagName:r.tagName.toLowerCase(),attributes:{},childNodes:[]};case O.Text:return{id:e,type:r.RRNodeType,textContent:r.textContent||""};case O.Comment:return{id:e,type:r.RRNodeType,textContent:r.textContent||""};case O.CDATA:return{id:e,type:r.RRNodeType,textContent:""}}}const on={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},ln={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Jt={};function $f(r){var e,t;const i=(t=(e=globalThis==null?void 0:globalThis.Zone)==null?void 0:e.__symbol__)==null?void 0:t.call(e,r);if(i&&globalThis[i])return globalThis[i]}function fs(r){if(Jt[r])return Jt[r];const e=$f(r)||globalThis[r],t=e.prototype,i=r in on?on[r]:void 0,s=!!(i&&i.every(l=>{var a,u;return!!((u=(a=Object.getOwnPropertyDescriptor(t,l))==null?void 0:a.get)!=null&&u.toString().includes("[native code]"))})),o=r in ln?ln[r]:void 0,n=!!(o&&o.every(l=>{var a;return typeof t[l]=="function"&&((a=t[l])==null?void 0:a.toString().includes("[native code]"))}));if(s&&n)return Jt[r]=e.prototype,e.prototype;try{const l=document.createElement("iframe");document.body.appendChild(l);const a=l.contentWindow;if(!a)return e.prototype;const u=a[r].prototype;return document.body.removeChild(l),u?Jt[r]=u:t}catch(l){return t}}const Yi={};function Te(r,e,t){var i;const s=`${r}.${String(t)}`;if(Yi[s])return Yi[s].call(e);const o=fs(r),n=(i=Object.getOwnPropertyDescriptor(o,t))==null?void 0:i.get;return n?(Yi[s]=n,n.call(e)):e[t]}const ji={};function bl(r,e,t){const i=`${r}.${String(t)}`;if(ji[i])return ji[i].bind(e);const o=fs(r)[t];return typeof o!="function"?e[t]:(ji[i]=o,o.bind(e))}function Lf(r){return Te("Node",r,"childNodes")}function Ff(r){return Te("Node",r,"parentNode")}function Bf(r){return Te("Node",r,"parentElement")}function Uf(r){return Te("Node",r,"textContent")}function zf(r,e){return bl("Node",r,"contains")(e)}function Vf(r){return bl("Node",r,"getRootNode")()}function Wf(r){return!r||!("host"in r)?null:Te("ShadowRoot",r,"host")}function Gf(r){return r.styleSheets}function Yf(r){return!r||!("shadowRoot"in r)?null:Te("Element",r,"shadowRoot")}function jf(r,e){return Te("Element",r,"querySelector")(e)}function Zf(r,e){return Te("Element",r,"querySelectorAll")(e)}function Hf(){return fs("MutationObserver").constructor}const Xf={childNodes:Lf,parentNode:Ff,parentElement:Bf,textContent:Uf,contains:zf,getRootNode:Vf,host:Wf,styleSheets:Gf,shadowRoot:Yf,querySelector:jf,querySelectorAll:Zf,mutationObserver:Hf},Ge=`Please stop import mirror directly. Instead of that,\r
|
|
62
|
+
`)&&(h=`\r
|
|
63
|
+
`),this.css+=h+"/*# sourceMappingURL="+f+" */"}applyPrevMaps(){for(let f of this.previous()){let h=this.toUrl(this.path(f.file)),m=f.root||r(f.file),p;this.mapOpts.sourcesContent===!1?(p=new e(f.text),p.sourcesContent&&(p.sourcesContent=null)):p=f.consumer(),this.map.applySourceMap(p,h,this.toUrl(this.path(m)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let f;for(let h=this.root.nodes.length-1;h>=0;h--)f=this.root.nodes[h],f.type==="comment"&&f.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(h)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),c&&a&&this.isMap())return this.generateMap();{let f="";return this.stringify(this.root,h=>{f+=h}),[f]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let f=this.previous()[0].consumer();f.file=this.outputFile(),this.map=t.fromSourceMap(f,{ignoreInvalidMapping:!0})}else 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>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0});let f=1,h=1,m="<no source>",p={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,y;this.stringify(this.root,(b,_,S)=>{if(this.css+=b,_&&S!=="end"&&(p.generated.line=f,p.generated.column=h-1,_.source&&_.source.start?(p.source=this.sourcePath(_),p.original.line=_.source.start.line,p.original.column=_.source.start.column-1,this.map.addMapping(p)):(p.source=m,p.original.line=1,p.original.column=0,this.map.addMapping(p))),g=b.match(/\n/g),g?(f+=g.length,y=b.lastIndexOf(`
|
|
64
|
+
`),h=b.length-y):h+=b.length,_&&S!=="start"){let v=_.parent||{raws:{}};(!(_.type==="decl"||_.type==="atrule"&&!_.nodes)||_!==v.last||v.raws.semicolon)&&(_.source&&_.source.end?(p.source=this.sourcePath(_),p.original.line=_.source.end.line,p.original.column=_.source.end.column-1,p.generated.line=f,p.generated.column=h-2,this.map.addMapping(p)):(p.source=m,p.original.line=1,p.original.column=0,p.generated.line=f,p.generated.column=h-1,this.map.addMapping(p)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(f=>f.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let f=this.mapOpts.annotation;return typeof f!="undefined"&&f!==!0?!1:this.previous().length?this.previous().some(h=>h.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(f=>f.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(f){if(this.mapOpts.absolute||f.charCodeAt(0)===60||/^\w+:\/\//.test(f))return f;let h=this.memoizedPaths.get(f);if(h)return h;let m=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(m=r(s(m,this.mapOpts.annotation)));let p=i(m,f);return this.memoizedPaths.set(f,p),p}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(f=>{if(f.source&&f.source.input.map){let h=f.source.input.map;this.previousMaps.includes(h)||this.previousMaps.push(h)}});else{let f=new u(this.originalCSS,this.opts);f.map&&this.previousMaps.push(f.map)}return this.previousMaps}setSourcesContent(){let f={};if(this.root)this.root.walk(h=>{if(h.source){let m=h.source.input.from;if(m&&!f[m]){f[m]=!0;let p=this.usesFileUrls?this.toFileUrl(m):this.toUrl(this.path(m));this.map.setSourceContent(p,h.source.input.css)}}});else if(this.css){let h=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(h,this.css)}}sourcePath(f){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(f.source.input.from):this.toUrl(this.path(f.source.input.from))}toBase64(f){return Buffer?Buffer.from(f).toString("base64"):window.btoa(unescape(encodeURIComponent(f)))}toFileUrl(f){let h=this.memoizedFileURLs.get(f);if(h)return h;if(o){let m=o(f).toString();return this.memoizedFileURLs.set(f,m),m}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(f){let h=this.memoizedURLs.get(f);if(h)return h;n==="\\"&&(f=f.replace(/\\/g,"/"));let m=encodeURI(f).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(f,m),m}}return Js=l,Js}var Xs,qa;function as(){if(qa)return Xs;qa=1;let e=ss();class t extends e{constructor(i){super(i),this.type="comment"}}return Xs=t,t.default=t,Xs}var Qs,za;function hr(){if(za)return Qs;za=1;let{isClean:e,my:t}=vo(),r=ns(),i=as(),s=ss(),n,o,u,a;function c(f){return f.map(h=>(h.nodes&&(h.nodes=c(h.nodes)),delete h.source,h))}function l(f){if(f[e]=!1,f.proxyOf.nodes)for(let h of f.proxyOf.nodes)l(h)}class d extends s{append(...h){for(let m of h){let p=this.normalize(m,this.last);for(let g of p)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(h){if(super.cleanRaws(h),this.nodes)for(let m of this.nodes)m.cleanRaws(h)}each(h){if(!this.proxyOf.nodes)return;let m=this.getIterator(),p,g;for(;this.indexes[m]<this.proxyOf.nodes.length&&(p=this.indexes[m],g=h(this.proxyOf.nodes[p],p),g!==!1);)this.indexes[m]+=1;return delete this.indexes[m],g}every(h){return this.nodes.every(h)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let h=this.lastEach;return this.indexes[h]=0,h}getProxyProcessor(){return{get(h,m){return m==="proxyOf"?h:h[m]?m==="each"||typeof m=="string"&&m.startsWith("walk")?(...p)=>h[m](...p.map(g=>typeof g=="function"?(y,b)=>g(y.toProxy(),b):g)):m==="every"||m==="some"?p=>h[m]((g,...y)=>p(g.toProxy(),...y)):m==="root"?()=>h.root().toProxy():m==="nodes"?h.nodes.map(p=>p.toProxy()):m==="first"||m==="last"?h[m].toProxy():h[m]:h[m]},set(h,m,p){return h[m]===p||(h[m]=p,(m==="name"||m==="params"||m==="selector")&&h.markDirty()),!0}}}index(h){return typeof h=="number"?h:(h.proxyOf&&(h=h.proxyOf),this.proxyOf.nodes.indexOf(h))}insertAfter(h,m){let p=this.index(h),g=this.normalize(m,this.proxyOf.nodes[p]).reverse();p=this.index(h);for(let b of g)this.proxyOf.nodes.splice(p+1,0,b);let y;for(let b in this.indexes)y=this.indexes[b],p<y&&(this.indexes[b]=y+g.length);return this.markDirty(),this}insertBefore(h,m){let p=this.index(h),g=p===0?"prepend":!1,y=this.normalize(m,this.proxyOf.nodes[p],g).reverse();p=this.index(h);for(let _ of y)this.proxyOf.nodes.splice(p,0,_);let b;for(let _ in this.indexes)b=this.indexes[_],p<=b&&(this.indexes[_]=b+y.length);return this.markDirty(),this}normalize(h,m){if(typeof h=="string")h=c(n(h).nodes);else if(typeof h=="undefined")h=[];else if(Array.isArray(h)){h=h.slice(0);for(let g of h)g.parent&&g.parent.removeChild(g,"ignore")}else if(h.type==="root"&&this.type!=="document"){h=h.nodes.slice(0);for(let g of h)g.parent&&g.parent.removeChild(g,"ignore")}else if(h.type)h=[h];else if(h.prop){if(typeof h.value=="undefined")throw new Error("Value field is missed in node creation");typeof h.value!="string"&&(h.value=String(h.value)),h=[new r(h)]}else if(h.selector)h=[new o(h)];else if(h.name)h=[new u(h)];else if(h.text)h=[new i(h)];else throw new Error("Unknown node type in node creation");return h.map(g=>(g[t]||d.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&l(g),typeof g.raws.before=="undefined"&&m&&typeof m.raws.before!="undefined"&&(g.raws.before=m.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...h){h=h.reverse();for(let m of h){let p=this.normalize(m,this.first,"prepend").reverse();for(let g of p)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+p.length}return this.markDirty(),this}push(h){return h.parent=this,this.proxyOf.nodes.push(h),this}removeAll(){for(let h of this.proxyOf.nodes)h.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(h){h=this.index(h),this.proxyOf.nodes[h].parent=void 0,this.proxyOf.nodes.splice(h,1);let m;for(let p in this.indexes)m=this.indexes[p],m>=h&&(this.indexes[p]=m-1);return this.markDirty(),this}replaceValues(h,m,p){return p||(p=m,m={}),this.walkDecls(g=>{m.props&&!m.props.includes(g.prop)||m.fast&&!g.value.includes(m.fast)||(g.value=g.value.replace(h,p))}),this.markDirty(),this}some(h){return this.nodes.some(h)}walk(h){return this.each((m,p)=>{let g;try{g=h(m,p)}catch(y){throw m.addToError(y)}return g!==!1&&m.walk&&(g=m.walk(h)),g})}walkAtRules(h,m){return m?h instanceof RegExp?this.walk((p,g)=>{if(p.type==="atrule"&&h.test(p.name))return m(p,g)}):this.walk((p,g)=>{if(p.type==="atrule"&&p.name===h)return m(p,g)}):(m=h,this.walk((p,g)=>{if(p.type==="atrule")return m(p,g)}))}walkComments(h){return this.walk((m,p)=>{if(m.type==="comment")return h(m,p)})}walkDecls(h,m){return m?h instanceof RegExp?this.walk((p,g)=>{if(p.type==="decl"&&h.test(p.prop))return m(p,g)}):this.walk((p,g)=>{if(p.type==="decl"&&p.prop===h)return m(p,g)}):(m=h,this.walk((p,g)=>{if(p.type==="decl")return m(p,g)}))}walkRules(h,m){return m?h instanceof RegExp?this.walk((p,g)=>{if(p.type==="rule"&&h.test(p.selector))return m(p,g)}):this.walk((p,g)=>{if(p.type==="rule"&&p.selector===h)return m(p,g)}):(m=h,this.walk((p,g)=>{if(p.type==="rule")return m(p,g)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return d.registerParse=f=>{n=f},d.registerRule=f=>{o=f},d.registerAtRule=f=>{u=f},d.registerRoot=f=>{a=f},Qs=d,d.default=d,d.rebuild=f=>{f.type==="atrule"?Object.setPrototypeOf(f,u.prototype):f.type==="rule"?Object.setPrototypeOf(f,o.prototype):f.type==="decl"?Object.setPrototypeOf(f,r.prototype):f.type==="comment"?Object.setPrototypeOf(f,i.prototype):f.type==="root"&&Object.setPrototypeOf(f,a.prototype),f[t]=!0,f.nodes&&f.nodes.forEach(h=>{d.rebuild(h)})},Qs}var Ks,$a;function yo(){if($a)return Ks;$a=1;let e=hr(),t,r;class i extends e{constructor(n){super(Q({type:"document"},n)),this.nodes||(this.nodes=[])}toResult(n={}){return new t(new r,this,n).stringify()}}return i.registerLazyResult=s=>{t=s},i.registerProcessor=s=>{r=s},Ks=i,i.default=i,Ks}var Zs,Va;function Wu(){if(Va)return Zs;Va=1;let e={};return Zs=function(r){e[r]||(e[r]=!0,typeof console!="undefined"&&console.warn&&console.warn(r))},Zs}var en,ja;function qu(){if(ja)return en;ja=1;class e{constructor(r,i={}){if(this.type="warning",this.text=r,i.node&&i.node.source){let s=i.node.rangeBy(i);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in i)this[s]=i[s]}toString(){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}}return en=e,e.default=e,en}var tn,Ga;function wo(){if(Ga)return tn;Ga=1;let e=qu();class t{constructor(i,s,n){this.processor=i,this.messages=[],this.root=s,this.opts=n,this.css=void 0,this.map=void 0}toString(){return this.css}warn(i,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let n=new e(i,s);return this.messages.push(n),n}warnings(){return this.messages.filter(i=>i.type==="warning")}get content(){return this.css}}return tn=t,t.default=t,tn}var rn,Ha;function Jh(){if(Ha)return rn;Ha=1;const e=39,t=34,r=92,i=47,s=10,n=32,o=12,u=9,a=13,c=91,l=93,d=40,f=41,h=123,m=125,p=59,g=42,y=58,b=64,_=/[\t\n\f\r "#'()/;[\\\]{}]/g,S=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,v=/.[\r\n"'(/\\]/,w=/[\da-f]/i;return rn=function(C,A={}){let N=C.css.valueOf(),U=A.ignoreErrors,T,x,me,ge,ie,F,se,Re,j,G,_e=N.length,O=0,ve=[],P=[];function B(){return O}function J(Z){throw C.error("Unclosed "+Z,O)}function k(){return P.length===0&&O>=_e}function oe(Z){if(P.length)return P.pop();if(O>=_e)return;let De=Z?Z.ignoreUnclosed:!1;switch(T=N.charCodeAt(O),T){case s:case n:case u:case a:case o:{x=O;do x+=1,T=N.charCodeAt(x);while(T===n||T===s||T===u||T===a||T===o);G=["space",N.slice(O,x)],O=x-1;break}case c:case l:case h:case m:case y:case p:case f:{let ht=String.fromCharCode(T);G=[ht,ht,O];break}case d:{if(Re=ve.length?ve.pop()[1]:"",j=N.charCodeAt(O+1),Re==="url"&&j!==e&&j!==t&&j!==n&&j!==s&&j!==u&&j!==o&&j!==a){x=O;do{if(F=!1,x=N.indexOf(")",x+1),x===-1)if(U||De){x=O;break}else J("bracket");for(se=x;N.charCodeAt(se-1)===r;)se-=1,F=!F}while(F);G=["brackets",N.slice(O,x+1),O,x],O=x}else x=N.indexOf(")",O+1),ge=N.slice(O,x+1),x===-1||v.test(ge)?G=["(","(",O]:(G=["brackets",ge,O,x],O=x);break}case e:case t:{me=T===e?"'":'"',x=O;do{if(F=!1,x=N.indexOf(me,x+1),x===-1)if(U||De){x=O+1;break}else J("string");for(se=x;N.charCodeAt(se-1)===r;)se-=1,F=!F}while(F);G=["string",N.slice(O,x+1),O,x],O=x;break}case b:{_.lastIndex=O+1,_.test(N),_.lastIndex===0?x=N.length-1:x=_.lastIndex-2,G=["at-word",N.slice(O,x+1),O,x],O=x;break}case r:{for(x=O,ie=!0;N.charCodeAt(x+1)===r;)x+=1,ie=!ie;if(T=N.charCodeAt(x+1),ie&&T!==i&&T!==n&&T!==s&&T!==u&&T!==a&&T!==o&&(x+=1,w.test(N.charAt(x)))){for(;w.test(N.charAt(x+1));)x+=1;N.charCodeAt(x+1)===n&&(x+=1)}G=["word",N.slice(O,x+1),O,x],O=x;break}default:{T===i&&N.charCodeAt(O+1)===g?(x=N.indexOf("*/",O+2)+1,x===0&&(U||De?x=N.length:J("comment")),G=["comment",N.slice(O,x+1),O,x],O=x):(S.lastIndex=O+1,S.test(N),S.lastIndex===0?x=N.length-1:x=S.lastIndex-2,G=["word",N.slice(O,x+1),O,x],ve.push(G),O=x);break}}return O++,G}function ne(Z){P.push(Z)}return{back:ne,endOfFile:k,nextToken:oe,position:B}},rn}var sn,Ya;function bo(){if(Ya)return sn;Ya=1;let e=hr();class t extends e{constructor(i){super(i),this.type="atrule"}append(...i){return this.proxyOf.nodes||(this.nodes=[]),super.append(...i)}prepend(...i){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...i)}}return sn=t,t.default=t,e.registerAtRule(t),sn}var nn,Ja;function ai(){if(Ja)return nn;Ja=1;let e=hr(),t,r;class i extends e{constructor(n){super(n),this.type="root",this.nodes||(this.nodes=[])}normalize(n,o,u){let a=super.normalize(n);if(o){if(u==="prepend")this.nodes.length>1?o.raws.before=this.nodes[1].raws.before:delete o.raws.before;else if(this.first!==o)for(let c of a)c.raws.before=o.raws.before}return a}removeChild(n,o){let u=this.index(n);return!o&&u===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[u].raws.before),super.removeChild(n)}toResult(n={}){return new t(new r,this,n).stringify()}}return i.registerLazyResult=s=>{t=s},i.registerProcessor=s=>{r=s},nn=i,i.default=i,e.registerRoot(i),nn}var on,Xa;function zu(){if(Xa)return on;Xa=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
|
|
65
|
+
`," "];return e.split(t,r)},split(t,r,i){let s=[],n="",o=!1,u=0,a=!1,c="",l=!1;for(let d of t)l?l=!1:d==="\\"?l=!0:a?d===c&&(a=!1):d==='"'||d==="'"?(a=!0,c=d):d==="("?u+=1:d===")"?u>0&&(u-=1):u===0&&r.includes(d)&&(o=!0),o?(n!==""&&s.push(n.trim()),n="",o=!1):n+=d;return(i||n!=="")&&s.push(n.trim()),s}};return on=e,e.default=e,on}var an,Qa;function _o(){if(Qa)return an;Qa=1;let e=hr(),t=zu();class r extends e{constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(s){let n=this.selector?this.selector.match(/,\s*/):null,o=n?n[0]:","+this.raw("between","beforeOpen");this.selector=s.join(o)}}return an=r,r.default=r,e.registerRule(r),an}var ln,Ka;function Xh(){if(Ka)return ln;Ka=1;let e=ns(),t=Jh(),r=as(),i=bo(),s=ai(),n=_o();const o={empty:!0,space:!0};function u(c){for(let l=c.length-1;l>=0;l--){let d=c[l],f=d[3]||d[2];if(f)return f}}class a{constructor(l){this.input=l,this.root=new s,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:l,start:{column:1,line:1,offset:0}}}atrule(l){let d=new i;d.name=l[1].slice(1),d.name===""&&this.unnamedAtrule(d,l),this.init(d,l[2]);let f,h,m,p=!1,g=!1,y=[],b=[];for(;!this.tokenizer.endOfFile();){if(l=this.tokenizer.nextToken(),f=l[0],f==="("||f==="["?b.push(f==="("?")":"]"):f==="{"&&b.length>0?b.push("}"):f===b[b.length-1]&&b.pop(),b.length===0)if(f===";"){d.source.end=this.getPosition(l[2]),d.source.end.offset++,this.semicolon=!0;break}else if(f==="{"){g=!0;break}else if(f==="}"){if(y.length>0){for(m=y.length-1,h=y[m];h&&h[0]==="space";)h=y[--m];h&&(d.source.end=this.getPosition(h[3]||h[2]),d.source.end.offset++)}this.end(l);break}else y.push(l);else y.push(l);if(this.tokenizer.endOfFile()){p=!0;break}}d.raws.between=this.spacesAndCommentsFromEnd(y),y.length?(d.raws.afterName=this.spacesAndCommentsFromStart(y),this.raw(d,"params",y),p&&(l=y[y.length-1],d.source.end=this.getPosition(l[3]||l[2]),d.source.end.offset++,this.spaces=d.raws.between,d.raws.between="")):(d.raws.afterName="",d.params=""),g&&(d.nodes=[],this.current=d)}checkMissedSemicolon(l){let d=this.colon(l);if(d===!1)return;let f=0,h;for(let m=d-1;m>=0&&(h=l[m],!(h[0]!=="space"&&(f+=1,f===2)));m--);throw this.input.error("Missed semicolon",h[0]==="word"?h[3]+1:h[2])}colon(l){let d=0,f,h,m;for(let[p,g]of l.entries()){if(f=g,h=f[0],h==="("&&(d+=1),h===")"&&(d-=1),d===0&&h===":")if(!m)this.doubleColon(f);else{if(m[0]==="word"&&m[1]==="progid")continue;return p}m=f}return!1}comment(l){let d=new r;this.init(d,l[2]),d.source.end=this.getPosition(l[3]||l[2]),d.source.end.offset++;let f=l[1].slice(2,-2);if(/^\s*$/.test(f))d.text="",d.raws.left=f,d.raws.right="";else{let h=f.match(/^(\s*)([^]*\S)(\s*)$/);d.text=h[2],d.raws.left=h[1],d.raws.right=h[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(l,d){let f=new e;this.init(f,l[0][2]);let h=l[l.length-1];for(h[0]===";"&&(this.semicolon=!0,l.pop()),f.source.end=this.getPosition(h[3]||h[2]||u(l)),f.source.end.offset++;l[0][0]!=="word";)l.length===1&&this.unknownWord(l),f.raws.before+=l.shift()[1];for(f.source.start=this.getPosition(l[0][2]),f.prop="";l.length;){let b=l[0][0];if(b===":"||b==="space"||b==="comment")break;f.prop+=l.shift()[1]}f.raws.between="";let m;for(;l.length;)if(m=l.shift(),m[0]===":"){f.raws.between+=m[1];break}else m[0]==="word"&&/\w/.test(m[1])&&this.unknownWord([m]),f.raws.between+=m[1];(f.prop[0]==="_"||f.prop[0]==="*")&&(f.raws.before+=f.prop[0],f.prop=f.prop.slice(1));let p=[],g;for(;l.length&&(g=l[0][0],!(g!=="space"&&g!=="comment"));)p.push(l.shift());this.precheckMissedSemicolon(l);for(let b=l.length-1;b>=0;b--){if(m=l[b],m[1].toLowerCase()==="!important"){f.important=!0;let _=this.stringFrom(l,b);_=this.spacesFromEnd(l)+_,_!==" !important"&&(f.raws.important=_);break}else if(m[1].toLowerCase()==="important"){let _=l.slice(0),S="";for(let v=b;v>0;v--){let w=_[v][0];if(S.trim().indexOf("!")===0&&w!=="space")break;S=_.pop()[1]+S}S.trim().indexOf("!")===0&&(f.important=!0,f.raws.important=S,l=_)}if(m[0]!=="space"&&m[0]!=="comment")break}l.some(b=>b[0]!=="space"&&b[0]!=="comment")&&(f.raws.between+=p.map(b=>b[1]).join(""),p=[]),this.raw(f,"value",p.concat(l),d),f.value.includes(":")&&!d&&this.checkMissedSemicolon(l)}doubleColon(l){throw this.input.error("Double colon",{offset:l[2]},{offset:l[2]+l[1].length})}emptyRule(l){let d=new n;this.init(d,l[2]),d.selector="",d.raws.between="",this.current=d}end(l){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(l[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(l)}endFile(){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())}freeSemicolon(l){if(this.spaces+=l[1],this.current.nodes){let d=this.current.nodes[this.current.nodes.length-1];d&&d.type==="rule"&&!d.raws.ownSemicolon&&(d.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(l){let d=this.input.fromOffset(l);return{column:d.col,line:d.line,offset:l}}init(l,d){this.current.push(l),l.source={input:this.input,start:this.getPosition(d)},l.raws.before=this.spaces,this.spaces="",l.type!=="comment"&&(this.semicolon=!1)}other(l){let d=!1,f=null,h=!1,m=null,p=[],g=l[1].startsWith("--"),y=[],b=l;for(;b;){if(f=b[0],y.push(b),f==="("||f==="[")m||(m=b),p.push(f==="("?")":"]");else if(g&&h&&f==="{")m||(m=b),p.push("}");else if(p.length===0)if(f===";")if(h){this.decl(y,g);return}else break;else if(f==="{"){this.rule(y);return}else if(f==="}"){this.tokenizer.back(y.pop()),d=!0;break}else f===":"&&(h=!0);else f===p[p.length-1]&&(p.pop(),p.length===0&&(m=null));b=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(d=!0),p.length>0&&this.unclosedBracket(m),d&&h){if(!g)for(;y.length&&(b=y[y.length-1][0],!(b!=="space"&&b!=="comment"));)this.tokenizer.back(y.pop());this.decl(y,g)}else this.unknownWord(y)}parse(){let l;for(;!this.tokenizer.endOfFile();)switch(l=this.tokenizer.nextToken(),l[0]){case"space":this.spaces+=l[1];break;case";":this.freeSemicolon(l);break;case"}":this.end(l);break;case"comment":this.comment(l);break;case"at-word":this.atrule(l);break;case"{":this.emptyRule(l);break;default:this.other(l);break}this.endFile()}precheckMissedSemicolon(){}raw(l,d,f,h){let m,p,g=f.length,y="",b=!0,_,S;for(let v=0;v<g;v+=1)m=f[v],p=m[0],p==="space"&&v===g-1&&!h?b=!1:p==="comment"?(S=f[v-1]?f[v-1][0]:"empty",_=f[v+1]?f[v+1][0]:"empty",!o[S]&&!o[_]?y.slice(-1)===","?b=!1:y+=m[1]:b=!1):y+=m[1];if(!b){let v=f.reduce((w,E)=>w+E[1],"");l.raws[d]={raw:v,value:y}}l[d]=y}rule(l){l.pop();let d=new n;this.init(d,l[0][2]),d.raws.between=this.spacesAndCommentsFromEnd(l),this.raw(d,"selector",l),this.current=d}spacesAndCommentsFromEnd(l){let d,f="";for(;l.length&&(d=l[l.length-1][0],!(d!=="space"&&d!=="comment"));)f=l.pop()[1]+f;return f}spacesAndCommentsFromStart(l){let d,f="";for(;l.length&&(d=l[0][0],!(d!=="space"&&d!=="comment"));)f+=l.shift()[1];return f}spacesFromEnd(l){let d,f="";for(;l.length&&(d=l[l.length-1][0],d==="space");)f=l.pop()[1]+f;return f}stringFrom(l,d){let f="";for(let h=d;h<l.length;h++)f+=l[h][1];return l.splice(d,l.length-d),f}unclosedBlock(){let l=this.current.source.start;throw this.input.error("Unclosed block",l.line,l.column)}unclosedBracket(l){throw this.input.error("Unclosed bracket",{offset:l[2]},{offset:l[2]+1})}unexpectedClose(l){throw this.input.error("Unexpected }",{offset:l[2]},{offset:l[2]+1})}unknownWord(l){throw this.input.error("Unknown word",{offset:l[0][2]},{offset:l[0][2]+l[0][1].length})}unnamedAtrule(l,d){throw this.input.error("At-rule without name",{offset:d[2]},{offset:d[2]+d[1].length})}}return ln=a,ln}var un,Za;function So(){if(Za)return un;Za=1;let e=hr(),t=Xh(),r=os();function i(s,n){let o=new r(s,n),u=new t(o);try{u.parse()}catch(a){throw a}return u.root}return un=i,i.default=i,e.registerParse(i),un}var cn,el;function $u(){if(el)return cn;el=1;let{isClean:e,my:t}=vo(),r=Bu(),i=is(),s=hr(),n=yo(),o=Wu(),u=wo(),a=So(),c=ai();const l={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},f={Once:!0,postcssPlugin:!0,prepare:!0},h=0;function m(S){return typeof S=="object"&&typeof S.then=="function"}function p(S){let v=!1,w=l[S.type];return S.type==="decl"?v=S.prop.toLowerCase():S.type==="atrule"&&(v=S.name.toLowerCase()),v&&S.append?[w,w+"-"+v,h,w+"Exit",w+"Exit-"+v]:v?[w,w+"-"+v,w+"Exit",w+"Exit-"+v]:S.append?[w,h,w+"Exit"]:[w,w+"Exit"]}function g(S){let v;return S.type==="document"?v=["Document",h,"DocumentExit"]:S.type==="root"?v=["Root",h,"RootExit"]:v=p(S),{eventIndex:0,events:v,iterator:0,node:S,visitorIndex:0,visitors:[]}}function y(S){return S[e]=!1,S.nodes&&S.nodes.forEach(v=>y(v)),S}let b={};class _{constructor(v,w,E){this.stringified=!1,this.processed=!1;let C;if(typeof w=="object"&&w!==null&&(w.type==="root"||w.type==="document"))C=y(w);else if(w instanceof _||w instanceof u)C=y(w.root),w.map&&(typeof E.map=="undefined"&&(E.map={}),E.map.inline||(E.map.inline=!1),E.map.prev=w.map);else{let A=a;E.syntax&&(A=E.syntax.parse),E.parser&&(A=E.parser),A.parse&&(A=A.parse);try{C=A(w,E)}catch(N){this.processed=!0,this.error=N}C&&!C[t]&&s.rebuild(C)}this.result=new u(v,C,E),this.helpers=Se(Q({},b),{postcss:b,result:this.result}),this.plugins=this.processor.plugins.map(A=>typeof A=="object"&&A.prepare?Q(Q({},A),A.prepare(this.result)):A)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(v){return this.async().catch(v)}finally(v){return this.async().then(v,v)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(v,w){let E=this.result.lastPlugin;try{w&&w.addToError(v),this.error=v,v.name==="CssSyntaxError"&&!v.plugin?(v.plugin=E.postcssPlugin,v.setMessage()):E.postcssVersion}catch(C){console&&console.error&&console.error(C)}return v}prepareVisitors(){this.listeners={};let v=(w,E,C)=>{this.listeners[E]||(this.listeners[E]=[]),this.listeners[E].push([w,C])};for(let w of this.plugins)if(typeof w=="object")for(let E in w){if(!d[E]&&/^[A-Z]/.test(E))throw new Error(`Unknown event ${E} in ${w.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f[E])if(typeof w[E]=="object")for(let C in w[E])C==="*"?v(w,E,w[E][C]):v(w,E+"-"+C.toLowerCase(),w[E][C]);else typeof w[E]=="function"&&v(w,E,w[E])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let v=0;v<this.plugins.length;v++){let w=this.plugins[v],E=this.runOnRoot(w);if(m(E))try{await E}catch(C){throw this.handleError(C)}}if(this.prepareVisitors(),this.hasListener){let v=this.result.root;for(;!v[e];){v[e]=!0;let w=[g(v)];for(;w.length>0;){let E=this.visitTick(w);if(m(E))try{await E}catch(C){let A=w[w.length-1].node;throw this.handleError(C,A)}}}if(this.listeners.OnceExit)for(let[w,E]of this.listeners.OnceExit){this.result.lastPlugin=w;try{if(v.type==="document"){let C=v.nodes.map(A=>E(A,this.helpers));await Promise.all(C)}else await E(v,this.helpers)}catch(C){throw this.handleError(C)}}}return this.processed=!0,this.stringify()}runOnRoot(v){this.result.lastPlugin=v;try{if(typeof v=="object"&&v.Once){if(this.result.root.type==="document"){let w=this.result.root.nodes.map(E=>v.Once(E,this.helpers));return m(w[0])?Promise.all(w):w}return v.Once(this.result.root,this.helpers)}else if(typeof v=="function")return v(this.result.root,this.result)}catch(w){throw this.handleError(w)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let v=this.result.opts,w=i;v.syntax&&(w=v.syntax.stringify),v.stringifier&&(w=v.stringifier),w.stringify&&(w=w.stringify);let C=new r(w,this.result.root,this.result.opts).generate();return this.result.css=C[0],this.result.map=C[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let v of this.plugins){let w=this.runOnRoot(v);if(m(w))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let v=this.result.root;for(;!v[e];)v[e]=!0,this.walkSync(v);if(this.listeners.OnceExit)if(v.type==="document")for(let w of v.nodes)this.visitSync(this.listeners.OnceExit,w);else this.visitSync(this.listeners.OnceExit,v)}return this.result}then(v,w){return this.async().then(v,w)}toString(){return this.css}visitSync(v,w){for(let[E,C]of v){this.result.lastPlugin=E;let A;try{A=C(w,this.helpers)}catch(N){throw this.handleError(N,w.proxyOf)}if(w.type!=="root"&&w.type!=="document"&&!w.parent)return!0;if(m(A))throw this.getAsyncError()}}visitTick(v){let w=v[v.length-1],{node:E,visitors:C}=w;if(E.type!=="root"&&E.type!=="document"&&!E.parent){v.pop();return}if(C.length>0&&w.visitorIndex<C.length){let[N,U]=C[w.visitorIndex];w.visitorIndex+=1,w.visitorIndex===C.length&&(w.visitors=[],w.visitorIndex=0),this.result.lastPlugin=N;try{return U(E.toProxy(),this.helpers)}catch(T){throw this.handleError(T,E)}}if(w.iterator!==0){let N=w.iterator,U;for(;U=E.nodes[E.indexes[N]];)if(E.indexes[N]+=1,!U[e]){U[e]=!0,v.push(g(U));return}w.iterator=0,delete E.indexes[N]}let A=w.events;for(;w.eventIndex<A.length;){let N=A[w.eventIndex];if(w.eventIndex+=1,N===h){E.nodes&&E.nodes.length&&(E[e]=!0,w.iterator=E.getIterator());return}else if(this.listeners[N]){w.visitors=this.listeners[N];return}}v.pop()}walkSync(v){v[e]=!0;let w=p(v);for(let E of w)if(E===h)v.nodes&&v.each(C=>{C[e]||this.walkSync(C)});else{let C=this.listeners[E];if(C&&this.visitSync(C,v.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return _.registerPostcss=S=>{b=S},cn=_,_.default=_,c.registerLazyResult(_),n.registerLazyResult(_),cn}var fn,tl;function Qh(){if(tl)return fn;tl=1;let e=Bu(),t=is(),r=Wu(),i=So();const s=wo();class n{constructor(u,a,c){a=a.toString(),this.stringified=!1,this._processor=u,this._css=a,this._opts=c,this._map=void 0;let l,d=t;this.result=new s(this._processor,l,this._opts),this.result.css=a;let f=this;Object.defineProperty(this.result,"root",{get(){return f.root}});let h=new e(d,l,this._opts,a);if(h.isMap()){let[m,p]=h.generate();m&&(this.result.css=m),p&&(this.result.map=p)}else h.clearAnnotation(),this.result.css=h.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(u){return this.async().catch(u)}finally(u){return this.async().then(u,u)}sync(){if(this.error)throw this.error;return this.result}then(u,a){return this.async().then(u,a)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let u,a=i;try{u=a(this._css,this._opts)}catch(c){this.error=c}if(this.error)throw this.error;return this._root=u,u}get[Symbol.toStringTag](){return"NoWorkResult"}}return fn=n,n.default=n,fn}var hn,rl;function Kh(){if(rl)return hn;rl=1;let e=Qh(),t=$u(),r=yo(),i=ai();class s{constructor(o=[]){this.version="8.4.38",this.plugins=this.normalize(o)}normalize(o){let u=[];for(let a of o)if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),typeof a=="object"&&Array.isArray(a.plugins))u=u.concat(a.plugins);else if(typeof a=="object"&&a.postcssPlugin)u.push(a);else if(typeof a=="function")u.push(a);else if(!(typeof a=="object"&&(a.parse||a.stringify)))throw new Error(a+" is not a PostCSS plugin");return u}process(o,u={}){return!this.plugins.length&&!u.parser&&!u.stringifier&&!u.syntax?new e(this,o,u):new t(this,o,u)}use(o){return this.plugins=this.plugins.concat(this.normalize([o])),this}}return hn=s,s.default=s,i.registerProcessor(s),r.registerProcessor(s),hn}var dn,il;function Zh(){if(il)return dn;il=1;let e=ns(),t=Uu(),r=as(),i=bo(),s=os(),n=ai(),o=_o();function u(a,c){if(Array.isArray(a))return a.map(m=>u(m));let f=a,{inputs:l}=f,d=Br(f,["inputs"]);if(l){c=[];for(let m of l){let p=Se(Q({},m),{__proto__:s.prototype});p.map&&(p.map=Se(Q({},p.map),{__proto__:t.prototype})),c.push(p)}}if(d.nodes&&(d.nodes=a.nodes.map(m=>u(m,c))),d.source){let h=d.source,{inputId:m}=h,p=Br(h,["inputId"]);d.source=p,m!=null&&(d.source.input=c[m])}if(d.type==="root")return new n(d);if(d.type==="decl")return new e(d);if(d.type==="rule")return new o(d);if(d.type==="comment")return new r(d);if(d.type==="atrule")return new i(d);throw new Error("Unknown node type: "+a.type)}return dn=u,u.default=u,dn}var pn,sl;function ed(){if(sl)return pn;sl=1;let e=go(),t=ns(),r=$u(),i=hr(),s=Kh(),n=is(),o=Zh(),u=yo(),a=qu(),c=as(),l=bo(),d=wo(),f=os(),h=So(),m=zu(),p=_o(),g=ai(),y=ss();function b(..._){return _.length===1&&Array.isArray(_[0])&&(_=_[0]),new s(_)}return b.plugin=function(S,v){let w=!1;function E(...A){console&&console.warn&&!w&&(w=!0,console.warn(S+`: postcss.plugin was deprecated. Migration guide:
|
|
66
|
+
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(S+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
|
|
67
|
+
https://www.w3ctech.com/topic/2226`));let N=v(...A);return N.postcssPlugin=S,N.postcssVersion=new s().version,N}let C;return Object.defineProperty(E,"postcss",{get(){return C||(C=E()),C}}),E.process=function(A,N,U){return b([E(U)]).process(A,N)},E},b.stringify=n,b.parse=h,b.fromJSON=o,b.list=m,b.comment=_=>new c(_),b.atRule=_=>new l(_),b.decl=_=>new t(_),b.rule=_=>new p(_),b.root=_=>new g(_),b.document=_=>new u(_),b.CssSyntaxError=e,b.Declaration=t,b.Container=i,b.Processor=s,b.Document=u,b.Comment=c,b.Warning=a,b.AtRule=l,b.Result=d,b.Input=f,b.Rule=p,b.Root=g,b.Node=y,r.registerPostcss(b),pn=b,b.default=b,pn}var td=ed();const fe=$h(td);fe.stringify;fe.fromJSON;fe.plugin;fe.parse;fe.list;fe.document;fe.comment;fe.atRule;fe.rule;fe.decl;fe.root;fe.CssSyntaxError;fe.Declaration;fe.Container;fe.Processor;fe.Document;fe.Comment;fe.Warning;fe.AtRule;fe.Result;fe.Input;fe.Rule;fe.Root;fe.Node;var W=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(W||{});function rd(e){const t={},r=/;(?![^(]*\))/g,i=/:(.+)/,s=/\/\*.*?\*\//g;return e.replace(s,"").split(r).forEach(function(n){if(n){const o=n.split(i);o.length>1&&(t[Bn(o[0].trim())]=o[1].trim())}}),t}function nl(e){const t=[];for(const r in e){const i=e[r];if(typeof i!="string")continue;const s=od(r);t.push(`${s}: ${i};`)}return t.join(" ")}const id=/-([a-z])/g,sd=/^--[a-zA-Z0-9-]+$/,Bn=e=>sd.test(e)?e:e.replace(id,(t,r)=>r?r.toUpperCase():""),nd=/\B([A-Z])/g,od=e=>e.replace(nd,"-$1").toLowerCase();class ft{constructor(...t){D(this,"parentElement",null),D(this,"parentNode",null),D(this,"ownerDocument"),D(this,"firstChild",null),D(this,"lastChild",null),D(this,"previousSibling",null),D(this,"nextSibling",null),D(this,"ELEMENT_NODE",1),D(this,"TEXT_NODE",3),D(this,"nodeType"),D(this,"nodeName"),D(this,"RRNodeType")}get childNodes(){const t=[];let r=this.firstChild;for(;r;)t.push(r),r=r.nextSibling;return t}contains(t){if(t instanceof ft){if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0}else return!1;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1}appendChild(t){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(t,r){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(t){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}class Eo extends ft{constructor(...t){super(t),D(this,"nodeType",9),D(this,"nodeName","#document"),D(this,"compatMode","CSS1Compat"),D(this,"RRNodeType",W.Document),D(this,"textContent",null),this.ownerDocument=this}get documentElement(){return this.childNodes.find(t=>t.RRNodeType===W.Element&&t.tagName==="HTML")||null}get body(){var t;return((t=this.documentElement)==null?void 0:t.childNodes.find(r=>r.RRNodeType===W.Element&&r.tagName==="BODY"))||null}get head(){var t;return((t=this.documentElement)==null?void 0:t.childNodes.find(r=>r.RRNodeType===W.Element&&r.tagName==="HEAD"))||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(t){const r=t.RRNodeType;if((r===W.Element||r===W.DocumentType)&&this.childNodes.some(s=>s.RRNodeType===r))throw new Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${r===W.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const i=Co(this,t);return i.parentElement=null,i}insertBefore(t,r){const i=t.RRNodeType;if((i===W.Element||i===W.DocumentType)&&this.childNodes.some(n=>n.RRNodeType===i))throw new Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${i===W.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const s=Yu(this,t,r);return s.parentElement=null,s}removeChild(t){return Ju(this,t)}open(){this.firstChild=null,this.lastChild=null}close(){}write(t){let r;if(t==='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'?r="-//W3C//DTD XHTML 1.0 Transitional//EN":t==='<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">'&&(r="-//W3C//DTD HTML 4.0 Transitional//EN"),r){const i=this.createDocumentType("html",r,"");this.open(),this.appendChild(i)}}createDocument(t,r,i){return new Eo}createDocumentType(t,r,i){const s=new Vu(t,r,i);return s.ownerDocument=this,s}createElement(t){const r=new ls(t);return r.ownerDocument=this,r}createElementNS(t,r){return this.createElement(r)}createTextNode(t){const r=new ju(t);return r.ownerDocument=this,r}createComment(t){const r=new Gu(t);return r.ownerDocument=this,r}createCDATASection(t){const r=new Hu(t);return r.ownerDocument=this,r}toString(){return"RRDocument"}}class Vu extends ft{constructor(t,r,i){super(),D(this,"nodeType",10),D(this,"RRNodeType",W.DocumentType),D(this,"name"),D(this,"publicId"),D(this,"systemId"),D(this,"textContent",null),this.name=t,this.publicId=r,this.systemId=i,this.nodeName=t}toString(){return"RRDocumentType"}}class ls extends ft{constructor(t){super(),D(this,"nodeType",1),D(this,"RRNodeType",W.Element),D(this,"tagName"),D(this,"attributes",{}),D(this,"shadowRoot",null),D(this,"scrollLeft"),D(this,"scrollTop"),this.tagName=t.toUpperCase(),this.nodeName=t.toUpperCase()}get textContent(){let t="";return this.childNodes.forEach(r=>t+=r.textContent),t}set textContent(t){this.firstChild=null,this.lastChild=null,this.appendChild(this.ownerDocument.createTextNode(t))}get classList(){return new ud(this.attributes.class,t=>{this.attributes.class=t})}get id(){return this.attributes.id||""}get className(){return this.attributes.class||""}get style(){const t=this.attributes.style?rd(this.attributes.style):{},r=/\B([A-Z])/g;return t.setProperty=(i,s,n)=>{if(r.test(i))return;const o=Bn(i);s?t[o]=s:delete t[o],n==="important"&&(t[o]+=" !important"),this.attributes.style=nl(t)},t.removeProperty=i=>{if(r.test(i))return"";const s=Bn(i),n=t[s]||"";return delete t[s],this.attributes.style=nl(t),n},t}getAttribute(t){return this.attributes[t]===void 0?null:this.attributes[t]}setAttribute(t,r){this.attributes[t]=r}setAttributeNS(t,r,i){this.setAttribute(r,i)}removeAttribute(t){delete this.attributes[t]}appendChild(t){return Co(this,t)}insertBefore(t,r){return Yu(this,t,r)}removeChild(t){return Ju(this,t)}attachShadow(t){const r=this.ownerDocument.createElement("SHADOWROOT");return this.shadowRoot=r,r}dispatchEvent(t){return!0}toString(){let t="";for(const r in this.attributes)t+=`${r}="${this.attributes[r]}" `;return`${this.tagName} ${t}`}}class ad extends ls{constructor(){super(...arguments),D(this,"currentTime"),D(this,"volume"),D(this,"paused"),D(this,"muted"),D(this,"playbackRate"),D(this,"loop")}attachShadow(t){throw new Error("RRDomException: Failed to execute 'attachShadow' on 'RRElement': This RRElement does not support attachShadow")}play(){this.paused=!1}pause(){this.paused=!0}}class ld extends ls{constructor(){super(...arguments),D(this,"tagName","DIALOG"),D(this,"nodeName","DIALOG")}get isModal(){return this.getAttribute("rr_open_mode")==="modal"}get open(){return this.getAttribute("open")!==null}close(){this.removeAttribute("open"),this.removeAttribute("rr_open_mode")}show(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","non-modal")}showModal(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","modal")}}class ju extends ft{constructor(t){super(),D(this,"nodeType",3),D(this,"nodeName","#text"),D(this,"RRNodeType",W.Text),D(this,"data"),this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRText text=${JSON.stringify(this.data)}`}}class Gu extends ft{constructor(t){super(),D(this,"nodeType",8),D(this,"nodeName","#comment"),D(this,"RRNodeType",W.Comment),D(this,"data"),this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRComment text=${JSON.stringify(this.data)}`}}class Hu extends ft{constructor(t){super(),D(this,"nodeName","#cdata-section"),D(this,"nodeType",4),D(this,"RRNodeType",W.CDATA),D(this,"data"),this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRCDATASection data=${JSON.stringify(this.data)}`}}class ud{constructor(t,r){if(D(this,"onChange"),D(this,"classes",[]),D(this,"add",(...i)=>{for(const s of i){const n=String(s);this.classes.indexOf(n)>=0||this.classes.push(n)}this.onChange&&this.onChange(this.classes.join(" "))}),D(this,"remove",(...i)=>{this.classes=this.classes.filter(s=>i.indexOf(s)===-1),this.onChange&&this.onChange(this.classes.join(" "))}),t){const i=t.trim().split(/\s+/);this.classes.push(...i)}this.onChange=r}}function Co(e,t){return t.parentNode&&t.parentNode.removeChild(t),e.lastChild?(e.lastChild.nextSibling=t,t.previousSibling=e.lastChild):(e.firstChild=t,t.previousSibling=null),e.lastChild=t,t.nextSibling=null,t.parentNode=e,t.parentElement=e,t.ownerDocument=e.ownerDocument,t}function Yu(e,t,r){if(!r)return Co(e,t);if(r.parentNode!==e)throw new Error("Failed to execute 'insertBefore' on 'RRNode': The RRNode before which the new node is to be inserted is not a child of this RRNode.");return t===r||(t.parentNode&&t.parentNode.removeChild(t),t.previousSibling=r.previousSibling,r.previousSibling=t,t.nextSibling=r,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,t.parentElement=e,t.parentNode=e,t.ownerDocument=e.ownerDocument),t}function Ju(e,t){if(t.parentNode!==e)throw new Error("Failed to execute 'removeChild' on 'RRNode': The RRNode to be removed is not a child of this RRNode.");return t.previousSibling?t.previousSibling.nextSibling=t.nextSibling:e.firstChild=t.nextSibling,t.nextSibling?t.nextSibling.previousSibling=t.previousSibling:e.lastChild=t.previousSibling,t.previousSibling=null,t.nextSibling=null,t.parentElement=null,t.parentNode=null,t}var Be=(e=>(e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",e))(Be||{});const Wn={svg:"http://www.w3.org/2000/svg","xlink:href":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"},cd={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};let gt=null;function Ii(e,t,r,i=t.mirror||t.ownerDocument.mirror){e=fd(e,t,r,i),Xu(e,t,r,i),hd(e,t,r)}function fd(e,t,r,i){var s;if(r.afterAppend&&!gt&&(gt=new WeakSet,setTimeout(()=>{gt=null},0)),!xo(e,t)){const n=Li(t,r.mirror,i);(s=e.parentNode)==null||s.replaceChild(n,e),e=n}switch(t.RRNodeType){case W.Document:{if(!gr(e,t,r.mirror,i)){const n=i.getMeta(t);n&&(r.mirror.removeNodeFromMap(e),e.close(),e.open(),r.mirror.add(e,n),gt==null||gt.add(e))}break}case W.Element:{const n=e,o=t;switch(o.tagName){case"IFRAME":{const u=e.contentDocument;if(!u)break;Ii(u,t.contentDocument,r,i);break}}o.shadowRoot&&(n.shadowRoot||n.attachShadow({mode:"open"}),Xu(n.shadowRoot,o.shadowRoot,r,i)),dd(n,o,i);break}}return e}function hd(e,t,r){var i;switch(t.RRNodeType){case W.Document:{const s=t.scrollData;s&&r.applyScroll(s,!0);break}case W.Element:{const s=e,n=t;switch(n.scrollData&&r.applyScroll(n.scrollData,!0),n.inputData&&r.applyInput(n.inputData),n.tagName){case"AUDIO":case"VIDEO":{const o=e,u=n;u.paused!==void 0&&(u.paused?o.pause():o.play()),u.muted!==void 0&&(o.muted=u.muted),u.volume!==void 0&&(o.volume=u.volume),u.currentTime!==void 0&&(o.currentTime=u.currentTime),u.playbackRate!==void 0&&(o.playbackRate=u.playbackRate),u.loop!==void 0&&(o.loop=u.loop);break}case"CANVAS":{const o=t;if(o.rr_dataURL!==null){const u=document.createElement("img");u.onload=()=>{const a=s.getContext("2d");a&&a.drawImage(u,0,0,u.width,u.height)},u.src=o.rr_dataURL}o.canvasMutations.forEach(u=>r.applyCanvas(u.event,u.mutation,e));break}case"STYLE":{const o=s.sheet;o&&t.rules.forEach(u=>r.applyStyleSheetMutation(u,o));break}case"DIALOG":{const o=s,u=n,a=o.open,c=o.matches("dialog:modal"),l=u.open,d=u.isModal,f=c!==d,h=a!==l;if((f||a&&h)&&o.close(),l&&(h||f))try{d?o.showModal():o.show()}catch(m){console.warn(m)}break}}break}case W.Text:case W.Comment:case W.CDATA:{e.textContent!==t.data&&(e.textContent=t.data);break}}gt!=null&>.has(e)&&(gt.delete(e),(i=r.afterAppend)==null||i.call(r,e,r.mirror.getId(e)))}function dd(e,t,r){const i=e.attributes,s=t.attributes;for(const n in s){const o=s[n],u=r.getMeta(t);if(u!=null&&u.isSVG&&Wn[n])e.setAttributeNS(Wn[n],n,o);else if(t.tagName==="CANVAS"&&n==="rr_dataURL"){const a=document.createElement("img");a.src=o,a.onload=()=>{const c=e.getContext("2d");c&&c.drawImage(a,0,0,a.width,a.height)}}else{if(t.tagName==="IFRAME"&&n==="srcdoc")continue;try{e.setAttribute(n,o)}catch(a){console.warn(a)}}}for(const{name:n}of Array.from(i))n in s||e.removeAttribute(n);t.scrollLeft&&(e.scrollLeft=t.scrollLeft),t.scrollTop&&(e.scrollTop=t.scrollTop)}function Xu(e,t,r,i){const s=Array.from(e.childNodes),n=t.childNodes;if(s.length===0&&n.length===0)return;let o=0,u=s.length-1,a=0,c=n.length-1,l=s[o],d=s[u],f=n[a],h=n[c],m,p;for(;o<=u&&a<=c;)if(l===void 0)l=s[++o];else if(d===void 0)d=s[--u];else if(gr(l,f,r.mirror,i))l=s[++o],f=n[++a];else if(gr(d,h,r.mirror,i))d=s[--u],h=n[--c];else if(gr(l,h,r.mirror,i)){try{e.insertBefore(l,d.nextSibling)}catch(b){console.warn(b)}l=s[++o],h=n[--c]}else if(gr(d,f,r.mirror,i)){try{e.insertBefore(d,l)}catch(b){console.warn(b)}d=s[--u],f=n[++a]}else{if(!m){m={};for(let _=o;_<=u;_++){const S=s[_];S&&r.mirror.hasNode(S)&&(m[r.mirror.getId(S)]=_)}}p=m[i.getId(f)];const b=s[p];if(p!==void 0&&b&&gr(b,f,r.mirror,i)){try{e.insertBefore(b,l)}catch(_){console.warn(_)}s[p]=void 0}else{const _=Li(f,r.mirror,i);e.nodeName==="#document"&&l&&(_.nodeType===_.DOCUMENT_TYPE_NODE&&l.nodeType===l.DOCUMENT_TYPE_NODE||_.nodeType===_.ELEMENT_NODE&&l.nodeType===l.ELEMENT_NODE)&&(e.removeChild(l),r.mirror.removeNodeFromMap(l),l=s[++o]);try{e.insertBefore(_,l||null)}catch(S){console.warn(S)}}f=n[++a]}if(o>u){const b=n[c+1];let _=null;for(b&&(_=r.mirror.getNode(i.getId(b)));a<=c;++a){const S=Li(n[a],r.mirror,i);try{e.insertBefore(S,_)}catch(v){console.warn(v)}}}else if(a>c)for(;o<=u;o++){const b=s[o];if(!(!b||b.parentNode!==e))try{e.removeChild(b),r.mirror.removeNodeFromMap(b)}catch(_){console.warn(_)}}let g=e.firstChild,y=t.firstChild;for(;g!==null&&y!==null;)Ii(g,y,r,i),g=g.nextSibling,y=y.nextSibling}function Li(e,t,r){const i=r.getId(e),s=r.getMeta(e);let n=null;if(i>-1&&(n=t.getNode(i)),n!==null&&xo(n,e))return n;switch(e.RRNodeType){case W.Document:n=new Document;break;case W.DocumentType:n=document.implementation.createDocumentType(e.name,e.publicId,e.systemId);break;case W.Element:{let o=e.tagName.toLowerCase();o=cd[o]||o,s&&"isSVG"in s&&(s!=null&&s.isSVG)?n=document.createElementNS(Wn.svg,o):n=document.createElement(e.tagName);break}case W.Text:n=document.createTextNode(e.data);break;case W.Comment:n=document.createComment(e.data);break;case W.CDATA:n=document.createCDATASection(e.data);break}s&&t.add(n,Q({},s));try{gt==null||gt.add(n)}catch(o){}return n}function xo(e,t){return e.nodeType!==t.nodeType?!1:e.nodeType!==e.ELEMENT_NODE||e.tagName.toUpperCase()===t.tagName}function gr(e,t,r,i){const s=r.getId(e),n=i.getId(t);return s===-1||s!==n?!1:xo(e,t)}class Fr extends Eo{constructor(t){super(),D(this,"UNSERIALIZED_STARTING_ID",-2),D(this,"_unserializedId",this.UNSERIALIZED_STARTING_ID),D(this,"mirror",xd()),D(this,"scrollData",null),t&&(this.mirror=t)}get unserializedId(){return this._unserializedId--}createDocument(t,r,i){return new Fr}createDocumentType(t,r,i){const s=new pd(t,r,i);return s.ownerDocument=this,s}createElement(t){const r=t.toUpperCase();let i;switch(r){case"AUDIO":case"VIDEO":i=new md(r);break;case"IFRAME":i=new wd(r,this.mirror);break;case"CANVAS":i=new vd(r);break;case"STYLE":i=new yd(r);break;case"DIALOG":i=new gd(r);break;default:i=new us(r);break}return i.ownerDocument=this,i}createComment(t){const r=new _d(t);return r.ownerDocument=this,r}createCDATASection(t){const r=new Sd(t);return r.ownerDocument=this,r}createTextNode(t){const r=new bd(t);return r.ownerDocument=this,r}destroyTree(){this.firstChild=null,this.lastChild=null,this.mirror.reset()}open(){super.open(),this._unserializedId=this.UNSERIALIZED_STARTING_ID}}const pd=Vu;class us extends ls{constructor(){super(...arguments),D(this,"inputData",null),D(this,"scrollData",null)}}class md extends ad{}class gd extends ld{}class vd extends us{constructor(){super(...arguments),D(this,"rr_dataURL",null),D(this,"canvasMutations",[])}getContext(){return null}}class yd extends us{constructor(){super(...arguments),D(this,"rules",[])}}class wd extends us{constructor(t,r){super(t),D(this,"contentDocument",new Fr),this.contentDocument.mirror=r}}const bd=ju,_d=Gu,Sd=Hu;function Ed(e){return e instanceof HTMLFormElement?"FORM":e.tagName.toUpperCase()}function Qu(e,t,r,i){let s;switch(e.nodeType){case Be.DOCUMENT_NODE:i&&i.nodeName==="IFRAME"?s=i.contentDocument:(s=t,s.compatMode=e.compatMode);break;case Be.DOCUMENT_TYPE_NODE:{const o=e;s=t.createDocumentType(o.name,o.publicId,o.systemId);break}case Be.ELEMENT_NODE:{const o=e,u=Ed(o);s=t.createElement(u);const a=s;for(const{name:c,value:l}of Array.from(o.attributes))a.attributes[c]=l;o.scrollLeft&&(a.scrollLeft=o.scrollLeft),o.scrollTop&&(a.scrollTop=o.scrollTop);break}case Be.TEXT_NODE:s=t.createTextNode(e.textContent||"");break;case Be.CDATA_SECTION_NODE:s=t.createCDATASection(e.data);break;case Be.COMMENT_NODE:s=t.createComment(e.textContent||"");break;case Be.DOCUMENT_FRAGMENT_NODE:s=i.attachShadow({mode:"open"});break;default:return null}let n=r.getMeta(e);return t instanceof Fr&&(n||(n=qn(s,t.unserializedId),r.add(e,n)),t.mirror.add(s,Q({},n))),s}function Cd(e,t=zh(),r=new Fr){function i(s,n){const o=Qu(s,r,t,n);if(o!==null)if((n==null?void 0:n.nodeName)!=="IFRAME"&&s.nodeType!==Be.DOCUMENT_FRAGMENT_NODE&&(n==null||n.appendChild(o),o.parentNode=n,o.parentElement=n),s.nodeName==="IFRAME"){const u=s.contentDocument;u&&i(u,o)}else(s.nodeType===Be.DOCUMENT_NODE||s.nodeType===Be.ELEMENT_NODE||s.nodeType===Be.DOCUMENT_FRAGMENT_NODE)&&(s.nodeType===Be.ELEMENT_NODE&&s.shadowRoot&&i(s.shadowRoot,o),s.childNodes.forEach(u=>i(u,o)))}return i(e,null),r}function xd(){return new Rd}class Rd{constructor(){D(this,"idNodeMap",new Map),D(this,"nodeMetaMap",new WeakMap)}getId(t){var r;if(!t)return-1;const i=(r=this.getMeta(t))==null?void 0:r.id;return i!=null?i:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(i=>this.removeNodeFromMap(i))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){const i=r.id;this.idNodeMap.set(i,t),this.nodeMetaMap.set(t,r)}replace(t,r){const i=this.getNode(t);if(i){const s=this.nodeMetaMap.get(i);s&&this.nodeMetaMap.set(r,s)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function qn(e,t){switch(e.RRNodeType){case W.Document:return{id:t,type:e.RRNodeType,childNodes:[]};case W.DocumentType:{const r=e;return{id:t,type:e.RRNodeType,name:r.name,publicId:r.publicId,systemId:r.systemId}}case W.Element:return{id:t,type:e.RRNodeType,tagName:e.tagName.toLowerCase(),attributes:{},childNodes:[]};case W.Text:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case W.Comment:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case W.CDATA:return{id:t,type:e.RRNodeType,textContent:""}}}const ol={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},al={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},vi={};function Md(e){var t,r;const i=(r=(t=globalThis==null?void 0:globalThis.Zone)==null?void 0:t.__symbol__)==null?void 0:r.call(t,e);if(i&&globalThis[i])return globalThis[i]}function Ro(e){if(vi[e])return vi[e];const t=Md(e)||globalThis[e],r=t.prototype,i=e in ol?ol[e]:void 0,s=!!(i&&i.every(u=>{var a,c;return!!((c=(a=Object.getOwnPropertyDescriptor(r,u))==null?void 0:a.get)!=null&&c.toString().includes("[native code]"))})),n=e in al?al[e]:void 0,o=!!(n&&n.every(u=>{var a;return typeof r[u]=="function"&&((a=r[u])==null?void 0:a.toString().includes("[native code]"))}));if(s&&o)return vi[e]=t.prototype,t.prototype;try{const u=document.createElement("iframe");document.body.appendChild(u);const a=u.contentWindow;if(!a)return t.prototype;const c=a[e].prototype;return document.body.removeChild(u),c?vi[e]=c:r}catch(u){return r}}const mn={};function Ht(e,t,r){var i;const s=`${e}.${String(r)}`;if(mn[s])return mn[s].call(t);const n=Ro(e),o=(i=Object.getOwnPropertyDescriptor(n,r))==null?void 0:i.get;return o?(mn[s]=o,o.call(t)):t[r]}const gn={};function Ku(e,t,r){const i=`${e}.${String(r)}`;if(gn[i])return gn[i].bind(t);const n=Ro(e)[r];return typeof n!="function"?t[r]:(gn[i]=n,n.bind(t))}function Nd(e){return Ht("Node",e,"childNodes")}function Od(e){return Ht("Node",e,"parentNode")}function Ad(e){return Ht("Node",e,"parentElement")}function Dd(e){return Ht("Node",e,"textContent")}function Td(e,t){return Ku("Node",e,"contains")(t)}function Pd(e){return Ku("Node",e,"getRootNode")()}function kd(e){return!e||!("host"in e)?null:Ht("ShadowRoot",e,"host")}function Id(e){return e.styleSheets}function Ld(e){return!e||!("shadowRoot"in e)?null:Ht("Element",e,"shadowRoot")}function Fd(e,t){return Ht("Element",e,"querySelector")(t)}function Ud(e,t){return Ht("Element",e,"querySelectorAll")(t)}function Bd(){return Ro("MutationObserver").constructor}const Wd={childNodes:Nd,parentNode:Od,parentElement:Ad,textContent:Dd,contains:Td,getRootNode:Pd,host:kd,styleSheets:Id,shadowRoot:Ld,querySelector:Fd,querySelectorAll:Ud,mutationObserver:Bd},vr=`Please stop import mirror directly. Instead of that,\r
|
|
66
68
|
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
|
|
67
|
-
or you can use record.mirror to access the mirror instance during recording.`;let an={map:{},getId(){return console.error(Ge),-1},getNode(){return console.error(Ge),null},removeNodeFromMap(){console.error(Ge)},has(){return console.error(Ge),!1},reset(){console.error(Ge)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(an=new Proxy(an,{get(r,e,t){return e==="map"&&console.error(Ge),Reflect.get(r,e,t)}}));Date.now().toString();function Jf(r=window){"NodeList"in r&&!r.NodeList.prototype.forEach&&(r.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in r&&!r.DOMTokenList.prototype.forEach&&(r.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function Kf(r){const e={},t=(s,o)=>{const n={value:s,parent:o,children:[]};return e[s.node.id]=n,n},i=[];for(const s of r){const{nextId:o,parentId:n}=s;if(o&&o in e){const l=e[o];if(l.parent){const a=l.parent.children.indexOf(l);l.parent.children.splice(a,0,t(s,l.parent))}else{const a=i.indexOf(l);i.splice(a,0,t(s,null))}continue}if(n in e){const l=e[n];l.children.push(t(s,l));continue}i.push(t(s,null))}return i}function Cl(r,e){e(r.value);for(let t=r.children.length-1;t>=0;t--)Cl(r.children[t],e)}function Zi(r,e){return!!(r.nodeName==="IFRAME"&&e.getMeta(r))}function Sl(r,e){var t,i;const s=(i=(t=r.ownerDocument)==null?void 0:t.defaultView)==null?void 0:i.frameElement;if(!s||s===e)return{x:0,y:0,relativeScale:1,absoluteScale:1};const o=s.getBoundingClientRect(),n=Sl(s,e),l=o.height/s.clientHeight;return{x:o.x*n.relativeScale+n.x,y:o.y*n.relativeScale+n.y,relativeScale:l,absoluteScale:n.absoluteScale*l}}function Kt(r){return r?r instanceof ye&&"shadowRoot"in r?!!r.shadowRoot:!!Xf.shadowRoot(r):!1}function ht(r,e){const t=r[e[0]];return e.length===1?t:ht(t.cssRules[e[1]].cssRules,e.slice(2))}function un(r){const e=[...r],t=e.pop();return{positions:e,index:t}}function Qf(r){const e=new Set,t=[];for(let i=r.length;i--;){const s=r[i];e.has(s.id)||(t.push(s),e.add(s.id))}return t}class qf{constructor(){N(this,"id",1),N(this,"styleIDMap",new WeakMap),N(this,"idStyleMap",new Map)}getId(e){var t;return(t=this.styleIDMap.get(e))!=null?t:-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let i;return t===void 0?i=this.id++:i=t,this.styleIDMap.set(e,i),this.idStyleMap.set(i,e),i}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}var H=(r=>(r[r.DomContentLoaded=0]="DomContentLoaded",r[r.Load=1]="Load",r[r.FullSnapshot=2]="FullSnapshot",r[r.IncrementalSnapshot=3]="IncrementalSnapshot",r[r.Meta=4]="Meta",r[r.Custom=5]="Custom",r[r.Plugin=6]="Plugin",r))(H||{}),_=(r=>(r[r.Mutation=0]="Mutation",r[r.MouseMove=1]="MouseMove",r[r.MouseInteraction=2]="MouseInteraction",r[r.Scroll=3]="Scroll",r[r.ViewportResize=4]="ViewportResize",r[r.Input=5]="Input",r[r.TouchMove=6]="TouchMove",r[r.MediaInteraction=7]="MediaInteraction",r[r.StyleSheetRule=8]="StyleSheetRule",r[r.CanvasMutation=9]="CanvasMutation",r[r.Font=10]="Font",r[r.Log=11]="Log",r[r.Drag=12]="Drag",r[r.StyleDeclaration=13]="StyleDeclaration",r[r.Selection=14]="Selection",r[r.AdoptedStyleSheet=15]="AdoptedStyleSheet",r[r.CustomElement=16]="CustomElement",r))(_||{}),ie=(r=>(r[r.MouseUp=0]="MouseUp",r[r.MouseDown=1]="MouseDown",r[r.Click=2]="Click",r[r.ContextMenu=3]="ContextMenu",r[r.DblClick=4]="DblClick",r[r.Focus=5]="Focus",r[r.Blur=6]="Blur",r[r.TouchStart=7]="TouchStart",r[r.TouchMove_Departed=8]="TouchMove_Departed",r[r.TouchEnd=9]="TouchEnd",r[r.TouchCancel=10]="TouchCancel",r))(ie||{}),vi=(r=>(r[r["2D"]=0]="2D",r[r.WebGL=1]="WebGL",r[r.WebGL2=2]="WebGL2",r))(vi||{}),kr=(r=>(r[r.Play=0]="Play",r[r.Pause=1]="Pause",r[r.Seeked=2]="Seeked",r[r.VolumeChange=3]="VolumeChange",r[r.RateChange=4]="RateChange",r))(kr||{}),P=(r=>(r.Start="start",r.Pause="pause",r.Resume="resume",r.Resize="resize",r.Finish="finish",r.FullsnapshotRebuilded="fullsnapshot-rebuilded",r.LoadStylesheetStart="load-stylesheet-start",r.LoadStylesheetEnd="load-stylesheet-end",r.SkipStart="skip-start",r.SkipEnd="skip-end",r.MouseInteraction="mouse-interaction",r.EventCast="event-cast",r.CustomEvent="custom-event",r.Flush="flush",r.StateChange="state-change",r.PlayBack="play-back",r.Destroy="destroy",r))(P||{}),De=(r=>(r[r.Document=0]="Document",r[r.DocumentType=1]="DocumentType",r[r.Element=2]="Element",r[r.Text=3]="Text",r[r.CDATA=4]="CDATA",r[r.Comment=5]="Comment",r))(De||{}),cn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ft=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var Qt=0;Qt<cn.length;Qt++)ft[cn.charCodeAt(Qt)]=Qt;var ep=function(r){var e=r.length*.75,t=r.length,i,s=0,o,n,l,a;r[r.length-1]==="="&&(e--,r[r.length-2]==="="&&e--);var u=new ArrayBuffer(e),c=new Uint8Array(u);for(i=0;i<t;i+=4)o=ft[r.charCodeAt(i)],n=ft[r.charCodeAt(i+1)],l=ft[r.charCodeAt(i+2)],a=ft[r.charCodeAt(i+3)],c[s++]=o<<2|n>>4,c[s++]=(n&15)<<4|l>>2,c[s++]=(l&3)<<6|a&63;return u};const tp="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",ip=r=>Uint8Array.from(atob(r),e=>e.charCodeAt(0));typeof window!="undefined"&&window.Blob&&new Blob([ip(tp)],{type:"text/javascript;charset=utf-8"});try{if(Array.from([1],r=>r*2)[0]!==2){const r=document.createElement("iframe");document.body.appendChild(r),Array.from=((bs=r.contentWindow)==null?void 0:bs.Array.from)||Array.from,document.body.removeChild(r)}}catch(r){console.debug("Unable to override Array.from",r)}jn();function El(r){return{all:r=r||new Map,on:function(e,t){var i=r.get(e);i?i.push(t):r.set(e,[t])},off:function(e,t){var i=r.get(e);i&&(t?i.splice(i.indexOf(t)>>>0,1):r.set(e,[]))},emit:function(e,t){var i=r.get(e);i&&i.slice().map(function(s){s(t)}),(i=r.get("*"))&&i.slice().map(function(s){s(e,t)})}}}const rp=Object.freeze(Object.defineProperty({__proto__:null,default:El},Symbol.toStringTag,{value:"Module"}));function sp(r=window,e=document){if("scrollBehavior"in e.documentElement.style&&r.__forceSmoothScrollPolyfill__!==!0)return;const t=r.HTMLElement||r.Element,i=468,s={scroll:r.scroll||r.scrollTo,scrollBy:r.scrollBy,elementScroll:t.prototype.scroll||a,scrollIntoView:t.prototype.scrollIntoView},o=r.performance&&r.performance.now?r.performance.now.bind(r.performance):Date.now;function n(m){const w=["MSIE ","Trident/","Edge/"];return new RegExp(w.join("|")).test(m)}const l=n(r.navigator.userAgent)?1:0;function a(m,w){this.scrollLeft=m,this.scrollTop=w}function u(m){return .5*(1-Math.cos(Math.PI*m))}function c(m){if(m===null||typeof m!="object"||m.behavior===void 0||m.behavior==="auto"||m.behavior==="instant")return!0;if(typeof m=="object"&&m.behavior==="smooth")return!1;throw new TypeError("behavior member of ScrollOptions "+m.behavior+" is not a valid value for enumeration ScrollBehavior.")}function h(m,w){if(w==="Y")return m.clientHeight+l<m.scrollHeight;if(w==="X")return m.clientWidth+l<m.scrollWidth}function f(m,w){const v=r.getComputedStyle(m,null)["overflow"+w];return v==="auto"||v==="scroll"}function g(m){const w=h(m,"Y")&&f(m,"Y"),v=h(m,"X")&&f(m,"X");return w||v}function d(m){for(;m!==e.body&&g(m)===!1;)m=m.parentNode||m.host;return m}function A(m){const w=o();let v,x,R,D=(w-m.startTime)/i;D=D>1?1:D,v=u(D),x=m.startX+(m.x-m.startX)*v,R=m.startY+(m.y-m.startY)*v,m.method.call(m.scrollable,x,R),(x!==m.x||R!==m.y)&&r.requestAnimationFrame(A.bind(r,m))}function p(m,w,v){let x,R,D,Z;const I=o();m===e.body?(x=r,R=r.scrollX||r.pageXOffset,D=r.scrollY||r.pageYOffset,Z=s.scroll):(x=m,R=m.scrollLeft,D=m.scrollTop,Z=a),A({scrollable:x,method:Z,startTime:I,startX:R,startY:D,x:w,y:v})}r.scroll=r.scrollTo=function(){if(arguments[0]!==void 0){if(c(arguments[0])===!0){s.scroll.call(r,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:r.scrollX||r.pageXOffset,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:r.scrollY||r.pageYOffset);return}p.call(r,e.body,arguments[0].left!==void 0?~~arguments[0].left:r.scrollX||r.pageXOffset,arguments[0].top!==void 0?~~arguments[0].top:r.scrollY||r.pageYOffset)}},r.scrollBy=function(){if(arguments[0]!==void 0){if(c(arguments[0])){s.scrollBy.call(r,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:0,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:0);return}p.call(r,e.body,~~arguments[0].left+(r.scrollX||r.pageXOffset),~~arguments[0].top+(r.scrollY||r.pageYOffset))}},t.prototype.scroll=t.prototype.scrollTo=function(){if(arguments[0]===void 0)return;if(c(arguments[0])===!0){if(typeof arguments[0]=="number"&&arguments[1]===void 0)throw new SyntaxError("Value could not be converted");s.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left:typeof arguments[0]!="object"?~~arguments[0]:this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top:arguments[1]!==void 0?~~arguments[1]:this.scrollTop);return}const m=arguments[0].left,w=arguments[0].top;p.call(this,this,typeof m=="undefined"?this.scrollLeft:~~m,typeof w=="undefined"?this.scrollTop:~~w)},t.prototype.scrollBy=function(){if(arguments[0]!==void 0){if(c(arguments[0])===!0){s.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop);return}this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},t.prototype.scrollIntoView=function(){if(c(arguments[0])===!0){s.scrollIntoView.call(this,arguments[0]===void 0?!0:arguments[0]);return}const m=d(this),w=m.getBoundingClientRect(),v=this.getBoundingClientRect();m!==e.body?(p.call(this,m,m.scrollLeft+v.left-w.left,m.scrollTop+v.top-w.top),r.getComputedStyle(m).position!=="fixed"&&r.scrollBy({left:w.left,top:w.top,behavior:"smooth"})):r.scrollBy({left:v.left,top:v.top,behavior:"smooth"})}}class np{constructor(e=[],t){N(this,"timeOffset",0),N(this,"speed"),N(this,"actions"),N(this,"raf",null),N(this,"lastTimestamp"),this.actions=e,this.speed=t.speed}addAction(e){const t=this.raf===!0;if(!this.actions.length||this.actions[this.actions.length-1].delay<=e.delay)this.actions.push(e);else{const i=this.findActionIndex(e);this.actions.splice(i,0,e)}t&&(this.raf=requestAnimationFrame(this.rafCheck.bind(this)))}start(){this.timeOffset=0,this.lastTimestamp=performance.now(),this.raf=requestAnimationFrame(this.rafCheck.bind(this))}rafCheck(){const e=performance.now();for(this.timeOffset+=(e-this.lastTimestamp)*this.speed,this.lastTimestamp=e;this.actions.length;){const t=this.actions[0];if(this.timeOffset>=t.delay)this.actions.shift(),t.doAction();else break}this.actions.length>0?this.raf=requestAnimationFrame(this.rafCheck.bind(this)):this.raf=!0}clear(){this.raf&&(this.raf!==!0&&cancelAnimationFrame(this.raf),this.raf=null),this.actions.length=0}setSpeed(e){this.speed=e}isActive(){return this.raf!==null}findActionIndex(e){let t=0,i=this.actions.length-1;for(;t<=i;){const s=Math.floor((t+i)/2);if(this.actions[s].delay<e.delay)t=s+1;else if(this.actions[s].delay>e.delay)i=s-1;else return s+1}return t}}function hn(r,e){if(r.type===H.IncrementalSnapshot&&r.data.source===_.MouseMove&&r.data.positions&&r.data.positions.length){const t=r.data.positions[0].timeOffset,i=r.timestamp+t;return r.delay=i-e,i-e}return r.delay=r.timestamp-e,r.delay}/*! *****************************************************************************
|
|
69
|
+
or you can use record.mirror to access the mirror instance during recording.`;let ll={map:{},getId(){return console.error(vr),-1},getNode(){return console.error(vr),null},removeNodeFromMap(){console.error(vr)},has(){return console.error(vr),!1},reset(){console.error(vr)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(ll=new Proxy(ll,{get(e,t,r){return t==="map"&&console.error(vr),Reflect.get(e,t,r)}}));Date.now().toString();function qd(e=window){"NodeList"in e&&!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)}function zd(e){const t={},r=(s,n)=>{const o={value:s,parent:n,children:[]};return t[s.node.id]=o,o},i=[];for(const s of e){const{nextId:n,parentId:o}=s;if(n&&n in t){const u=t[n];if(u.parent){const a=u.parent.children.indexOf(u);u.parent.children.splice(a,0,r(s,u.parent))}else{const a=i.indexOf(u);i.splice(a,0,r(s,null))}continue}if(o in t){const u=t[o];u.children.push(r(s,u));continue}i.push(r(s,null))}return i}function Zu(e,t){t(e.value);for(let r=e.children.length-1;r>=0;r--)Zu(e.children[r],t)}function vn(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function ec(e,t){var r,i;const s=(i=(r=e.ownerDocument)==null?void 0:r.defaultView)==null?void 0:i.frameElement;if(!s||s===t)return{x:0,y:0,relativeScale:1,absoluteScale:1};const n=s.getBoundingClientRect(),o=ec(s,t),u=n.height/s.clientHeight;return{x:n.x*o.relativeScale+o.x,y:n.y*o.relativeScale+o.y,relativeScale:u,absoluteScale:o.absoluteScale*u}}function yi(e){return e?e instanceof ft&&"shadowRoot"in e?!!e.shadowRoot:!!Wd.shadowRoot(e):!1}function Gr(e,t){const r=e[t[0]];return t.length===1?r:Gr(r.cssRules[t[1]].cssRules,t.slice(2))}function ul(e){const t=[...e],r=t.pop();return{positions:t,index:r}}function $d(e){const t=new Set,r=[];for(let i=e.length;i--;){const s=e[i];t.has(s.id)||(r.push(s),t.add(s.id))}return r}class Vd{constructor(){I(this,"id",1),I(this,"styleIDMap",new WeakMap),I(this,"idStyleMap",new Map)}getId(t){var r;return(r=this.styleIDMap.get(t))!=null?r:-1}has(t){return this.styleIDMap.has(t)}add(t,r){if(this.has(t))return this.getId(t);let i;return r===void 0?i=this.id++:i=r,this.styleIDMap.set(t,i),this.idStyleMap.set(i,t),i}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}var ue=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(ue||{}),H=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(H||{}),ye=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(ye||{}),Fi=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Fi||{}),zn=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(zn||{}),X=(e=>(e.Start="start",e.Pause="pause",e.Resume="resume",e.Resize="resize",e.Finish="finish",e.FullsnapshotRebuilded="fullsnapshot-rebuilded",e.LoadStylesheetStart="load-stylesheet-start",e.LoadStylesheetEnd="load-stylesheet-end",e.SkipStart="skip-start",e.SkipEnd="skip-end",e.MouseInteraction="mouse-interaction",e.EventCast="event-cast",e.CustomEvent="custom-event",e.Flush="flush",e.StateChange="state-change",e.PlayBack="play-back",e.Destroy="destroy",e))(X||{}),It=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(It||{}),cl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Hr=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var wi=0;wi<cl.length;wi++)Hr[cl.charCodeAt(wi)]=wi;var jd=function(e){var t=e.length*.75,r=e.length,i,s=0,n,o,u,a;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var c=new ArrayBuffer(t),l=new Uint8Array(c);for(i=0;i<r;i+=4)n=Hr[e.charCodeAt(i)],o=Hr[e.charCodeAt(i+1)],u=Hr[e.charCodeAt(i+2)],a=Hr[e.charCodeAt(i+3)],l[s++]=n<<2|o>>4,l[s++]=(o&15)<<4|u>>2,l[s++]=(u&3)<<6|a&63;return c};const Gd=`(function() {
|
|
70
|
+
"use strict";
|
|
71
|
+
var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
72
|
+
var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256);
|
|
73
|
+
for (var i = 0; i < chars.length; i++) {
|
|
74
|
+
lookup[chars.charCodeAt(i)] = i;
|
|
75
|
+
}
|
|
76
|
+
var encode = function(arraybuffer) {
|
|
77
|
+
var bytes = new Uint8Array(arraybuffer), i2, len = bytes.length, base64 = "";
|
|
78
|
+
for (i2 = 0; i2 < len; i2 += 3) {
|
|
79
|
+
base64 += chars[bytes[i2] >> 2];
|
|
80
|
+
base64 += chars[(bytes[i2] & 3) << 4 | bytes[i2 + 1] >> 4];
|
|
81
|
+
base64 += chars[(bytes[i2 + 1] & 15) << 2 | bytes[i2 + 2] >> 6];
|
|
82
|
+
base64 += chars[bytes[i2 + 2] & 63];
|
|
83
|
+
}
|
|
84
|
+
if (len % 3 === 2) {
|
|
85
|
+
base64 = base64.substring(0, base64.length - 1) + "=";
|
|
86
|
+
} else if (len % 3 === 1) {
|
|
87
|
+
base64 = base64.substring(0, base64.length - 2) + "==";
|
|
88
|
+
}
|
|
89
|
+
return base64;
|
|
90
|
+
};
|
|
91
|
+
const lastBlobMap = /* @__PURE__ */ new Map();
|
|
92
|
+
const transparentBlobMap = /* @__PURE__ */ new Map();
|
|
93
|
+
async function getTransparentBlobFor(width, height, dataURLOptions) {
|
|
94
|
+
const id = \`\${width}-\${height}\`;
|
|
95
|
+
if ("OffscreenCanvas" in globalThis) {
|
|
96
|
+
if (transparentBlobMap.has(id)) return transparentBlobMap.get(id);
|
|
97
|
+
const offscreen = new OffscreenCanvas(width, height);
|
|
98
|
+
offscreen.getContext("2d");
|
|
99
|
+
const blob = await offscreen.convertToBlob(dataURLOptions);
|
|
100
|
+
const arrayBuffer = await blob.arrayBuffer();
|
|
101
|
+
const base64 = encode(arrayBuffer);
|
|
102
|
+
transparentBlobMap.set(id, base64);
|
|
103
|
+
return base64;
|
|
104
|
+
} else {
|
|
105
|
+
return "";
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
const worker = self;
|
|
109
|
+
worker.onmessage = async function(e) {
|
|
110
|
+
if ("OffscreenCanvas" in globalThis) {
|
|
111
|
+
const { id, bitmap, width, height, dataURLOptions } = e.data;
|
|
112
|
+
const transparentBase64 = getTransparentBlobFor(
|
|
113
|
+
width,
|
|
114
|
+
height,
|
|
115
|
+
dataURLOptions
|
|
116
|
+
);
|
|
117
|
+
const offscreen = new OffscreenCanvas(width, height);
|
|
118
|
+
const ctx = offscreen.getContext("2d");
|
|
119
|
+
ctx.drawImage(bitmap, 0, 0);
|
|
120
|
+
bitmap.close();
|
|
121
|
+
const blob = await offscreen.convertToBlob(dataURLOptions);
|
|
122
|
+
const type = blob.type;
|
|
123
|
+
const arrayBuffer = await blob.arrayBuffer();
|
|
124
|
+
const base64 = encode(arrayBuffer);
|
|
125
|
+
if (!lastBlobMap.has(id) && await transparentBase64 === base64) {
|
|
126
|
+
lastBlobMap.set(id, base64);
|
|
127
|
+
return worker.postMessage({ id });
|
|
128
|
+
}
|
|
129
|
+
if (lastBlobMap.get(id) === base64) return worker.postMessage({ id });
|
|
130
|
+
worker.postMessage({
|
|
131
|
+
id,
|
|
132
|
+
type,
|
|
133
|
+
base64,
|
|
134
|
+
width,
|
|
135
|
+
height
|
|
136
|
+
});
|
|
137
|
+
lastBlobMap.set(id, base64);
|
|
138
|
+
} else {
|
|
139
|
+
return worker.postMessage({ id: e.data.id });
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
})();
|
|
143
|
+
//# sourceMappingURL=image-bitmap-data-url-worker-IJpC7g_b.js.map
|
|
144
|
+
`;typeof self!="undefined"&&self.Blob&&new Blob([Gd],{type:"text/javascript;charset=utf-8"});try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=((Jo=e.contentWindow)==null?void 0:Jo.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}Ou();function tc(e){return{all:e=e||new Map,on:function(t,r){var i=e.get(t);i?i.push(r):e.set(t,[r])},off:function(t,r){var i=e.get(t);i&&(r?i.splice(i.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var i=e.get(t);i&&i.slice().map(function(s){s(r)}),(i=e.get("*"))&&i.slice().map(function(s){s(t,r)})}}}const Hd=Object.freeze(Object.defineProperty({__proto__:null,default:tc},Symbol.toStringTag,{value:"Module"}));function Yd(e=window,t=document){if("scrollBehavior"in t.documentElement.style&&e.__forceSmoothScrollPolyfill__!==!0)return;const r=e.HTMLElement||e.Element,i=468,s={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:r.prototype.scroll||a,scrollIntoView:r.prototype.scrollIntoView},n=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now;function o(y){const b=["MSIE ","Trident/","Edge/"];return new RegExp(b.join("|")).test(y)}const u=o(e.navigator.userAgent)?1:0;function a(y,b){this.scrollLeft=y,this.scrollTop=b}function c(y){return .5*(1-Math.cos(Math.PI*y))}function l(y){if(y===null||typeof y!="object"||y.behavior===void 0||y.behavior==="auto"||y.behavior==="instant")return!0;if(typeof y=="object"&&y.behavior==="smooth")return!1;throw new TypeError("behavior member of ScrollOptions "+y.behavior+" is not a valid value for enumeration ScrollBehavior.")}function d(y,b){if(b==="Y")return y.clientHeight+u<y.scrollHeight;if(b==="X")return y.clientWidth+u<y.scrollWidth}function f(y,b){const _=e.getComputedStyle(y,null)["overflow"+b];return _==="auto"||_==="scroll"}function h(y){const b=d(y,"Y")&&f(y,"Y"),_=d(y,"X")&&f(y,"X");return b||_}function m(y){for(;y!==t.body&&h(y)===!1;)y=y.parentNode||y.host;return y}function p(y){const b=n();let _,S,v,w=(b-y.startTime)/i;w=w>1?1:w,_=c(w),S=y.startX+(y.x-y.startX)*_,v=y.startY+(y.y-y.startY)*_,y.method.call(y.scrollable,S,v),(S!==y.x||v!==y.y)&&e.requestAnimationFrame(p.bind(e,y))}function g(y,b,_){let S,v,w,E;const C=n();y===t.body?(S=e,v=e.scrollX||e.pageXOffset,w=e.scrollY||e.pageYOffset,E=s.scroll):(S=y,v=y.scrollLeft,w=y.scrollTop,E=a),p({scrollable:S,method:E,startTime:C,startX:v,startY:w,x:b,y:_})}e.scroll=e.scrollTo=function(){if(arguments[0]!==void 0){if(l(arguments[0])===!0){s.scroll.call(e,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:e.scrollX||e.pageXOffset,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:e.scrollY||e.pageYOffset);return}g.call(e,t.body,arguments[0].left!==void 0?~~arguments[0].left:e.scrollX||e.pageXOffset,arguments[0].top!==void 0?~~arguments[0].top:e.scrollY||e.pageYOffset)}},e.scrollBy=function(){if(arguments[0]!==void 0){if(l(arguments[0])){s.scrollBy.call(e,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:0,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:0);return}g.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset))}},r.prototype.scroll=r.prototype.scrollTo=function(){if(arguments[0]===void 0)return;if(l(arguments[0])===!0){if(typeof arguments[0]=="number"&&arguments[1]===void 0)throw new SyntaxError("Value could not be converted");s.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left:typeof arguments[0]!="object"?~~arguments[0]:this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top:arguments[1]!==void 0?~~arguments[1]:this.scrollTop);return}const y=arguments[0].left,b=arguments[0].top;g.call(this,this,typeof y=="undefined"?this.scrollLeft:~~y,typeof b=="undefined"?this.scrollTop:~~b)},r.prototype.scrollBy=function(){if(arguments[0]!==void 0){if(l(arguments[0])===!0){s.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop);return}this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},r.prototype.scrollIntoView=function(){if(l(arguments[0])===!0){s.scrollIntoView.call(this,arguments[0]===void 0?!0:arguments[0]);return}const y=m(this),b=y.getBoundingClientRect(),_=this.getBoundingClientRect();y!==t.body?(g.call(this,y,y.scrollLeft+_.left-b.left,y.scrollTop+_.top-b.top),e.getComputedStyle(y).position!=="fixed"&&e.scrollBy({left:b.left,top:b.top,behavior:"smooth"})):e.scrollBy({left:_.left,top:_.top,behavior:"smooth"})}}class Jd{constructor(t=[],r){I(this,"timeOffset",0),I(this,"speed"),I(this,"actions"),I(this,"raf",null),I(this,"lastTimestamp"),this.actions=t,this.speed=r.speed}addAction(t){const r=this.raf===!0;if(!this.actions.length||this.actions[this.actions.length-1].delay<=t.delay)this.actions.push(t);else{const i=this.findActionIndex(t);this.actions.splice(i,0,t)}r&&(this.raf=requestAnimationFrame(this.rafCheck.bind(this)))}start(){this.timeOffset=0,this.lastTimestamp=performance.now(),this.raf=requestAnimationFrame(this.rafCheck.bind(this))}rafCheck(){const t=performance.now();for(this.timeOffset+=(t-this.lastTimestamp)*this.speed,this.lastTimestamp=t;this.actions.length;){const r=this.actions[0];if(this.timeOffset>=r.delay)this.actions.shift(),r.doAction();else break}this.actions.length>0?this.raf=requestAnimationFrame(this.rafCheck.bind(this)):this.raf=!0}clear(){this.raf&&(this.raf!==!0&&cancelAnimationFrame(this.raf),this.raf=null),this.actions.length=0}setSpeed(t){this.speed=t}isActive(){return this.raf!==null}findActionIndex(t){let r=0,i=this.actions.length-1;for(;r<=i;){const s=Math.floor((r+i)/2);if(this.actions[s].delay<t.delay)r=s+1;else if(this.actions[s].delay>t.delay)i=s-1;else return s+1}return r}}function fl(e,t){if(e.type===ue.IncrementalSnapshot&&e.data.source===H.MouseMove&&e.data.positions&&e.data.positions.length){const r=e.data.positions[0].timeOffset,i=e.timestamp+r;return e.delay=i-t,i-t}return e.delay=e.timestamp-t,e.delay}/*! *****************************************************************************
|
|
68
145
|
Copyright (c) Microsoft Corporation.
|
|
69
146
|
|
|
70
147
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -77,14 +154,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
77
154
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
78
155
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
79
156
|
PERFORMANCE OF THIS SOFTWARE.
|
|
80
|
-
***************************************************************************** */function fn(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var i,s,o=t.call(r),n=[];try{for(;(e===void 0||e-- >0)&&!(i=o.next()).done;)n.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}finally{if(s)throw s.error}}return n}var Ze;(function(r){r[r.NotStarted=0]="NotStarted",r[r.Running=1]="Running",r[r.Stopped=2]="Stopped"})(Ze||(Ze={}));var xl={type:"xstate.init"};function Hi(r){return r===void 0?[]:[].concat(r)}function Ye(r){return{type:"xstate.assign",assignment:r}}function pn(r,e){return typeof(r=typeof r=="string"&&e&&e[r]?e[r]:r)=="string"?{type:r}:typeof r=="function"?{type:r.name,exec:r}:r}function bi(r){return function(e){return r===e}}function Al(r){return typeof r=="string"?{type:r}:r}function dn(r,e){return{value:r,context:e,actions:[],changed:!1,matches:bi(r)}}function mn(r,e,t){var i=e,s=!1;return[r.filter(function(o){if(o.type==="xstate.assign"){s=!0;var n=Object.assign({},i);return typeof o.assignment=="function"?n=o.assignment(i,t):Object.keys(o.assignment).forEach(function(l){n[l]=typeof o.assignment[l]=="function"?o.assignment[l](i,t):o.assignment[l]}),i=n,!1}return!0}),i,s]}function Rl(r,e){e===void 0&&(e={});var t=fn(mn(Hi(r.states[r.initial].entry).map(function(n){return pn(n,e.actions)}),r.context,xl),2),i=t[0],s=t[1],o={config:r,_options:e,initialState:{value:r.initial,actions:i,context:s,matches:bi(r.initial)},transition:function(n,l){var a,u,c=typeof n=="string"?{value:n,context:r.context}:n,h=c.value,f=c.context,g=Al(l),d=r.states[h];if(d.on){var A=Hi(d.on[g.type]);try{for(var p=function(V){var oe=typeof Symbol=="function"&&Symbol.iterator,se=oe&&V[oe],te=0;if(se)return se.call(V);if(V&&typeof V.length=="number")return{next:function(){return V&&te>=V.length&&(V=void 0),{value:V&&V[te++],done:!V}}};throw new TypeError(oe?"Object is not iterable.":"Symbol.iterator is not defined.")}(A),m=p.next();!m.done;m=p.next()){var w=m.value;if(w===void 0)return dn(h,f);var v=typeof w=="string"?{target:w}:w,x=v.target,R=v.actions,D=R===void 0?[]:R,Z=v.cond,I=Z===void 0?function(){return!0}:Z,J=x===void 0,z=x!=null?x:h,fe=r.states[z];if(I(f,g)){var ae=fn(mn((J?Hi(D):[].concat(d.exit,D,fe.entry).filter(function(V){return V})).map(function(V){return pn(V,o._options.actions)}),f,g),3),q=ae[0],L=ae[1],ne=ae[2],k=x!=null?x:h;return{value:k,context:L,actions:q,changed:x!==h||q.length>0||ne,matches:bi(k)}}}}catch(V){a={error:V}}finally{try{m&&!m.done&&(u=p.return)&&u.call(p)}finally{if(a)throw a.error}}}return dn(h,f)}};return o}var gn=function(r,e){return r.actions.forEach(function(t){var i=t.exec;return i&&i(r.context,e)})};function Nl(r){var e=r.initialState,t=Ze.NotStarted,i=new Set,s={_machine:r,send:function(o){t===Ze.Running&&(e=r.transition(e,o),gn(e,Al(o)),i.forEach(function(n){return n(e)}))},subscribe:function(o){return i.add(o),o(e),{unsubscribe:function(){return i.delete(o)}}},start:function(o){if(o){var n=typeof o=="object"?o:{context:r.config.context,value:o};e={value:n.value,actions:[],context:n.context,matches:bi(n.value)}}return t=Ze.Running,gn(e,xl),s},stop:function(){return t=Ze.Stopped,i.clear(),s},get state(){return e},get status(){return t}};return s}function op(r,e){for(let t=r.length-1;t>=0;t--){const i=r[t];if(i.type===H.Meta&&i.timestamp<=e)return r.slice(t)}return r}function lp(r,{getCastFn:e,applyEventsSynchronously:t,emitter:i}){const s=Rl({id:"player",context:r,initial:"paused",states:{playing:{on:{PAUSE:{target:"paused",actions:["pause"]},CAST_EVENT:{target:"playing",actions:"castEvent"},END:{target:"paused",actions:["resetLastPlayedEvent","pause"]},ADD_EVENT:{target:"playing",actions:["addEvent"]}}},paused:{on:{PLAY:{target:"playing",actions:["recordTimeOffset","play"]},CAST_EVENT:{target:"paused",actions:"castEvent"},TO_LIVE:{target:"live",actions:["startLive"]},ADD_EVENT:{target:"paused",actions:["addEvent"]}}},live:{on:{ADD_EVENT:{target:"live",actions:["addEvent"]},CAST_EVENT:{target:"live",actions:["castEvent"]}}}}},{actions:{castEvent:Ye({lastPlayedEvent:(o,n)=>n.type==="CAST_EVENT"?n.payload.event:o.lastPlayedEvent}),recordTimeOffset:Ye((o,n)=>{let l=o.timeOffset;return"payload"in n&&"timeOffset"in n.payload&&(l=n.payload.timeOffset),le(U({},o),{timeOffset:l,baselineTime:o.events[0].timestamp+l})}),play(o){var n;const{timer:l,events:a,baselineTime:u,lastPlayedEvent:c}=o;l.clear();for(const d of a)hn(d,u);const h=op(a,u);let f=c==null?void 0:c.timestamp;(c==null?void 0:c.type)===H.IncrementalSnapshot&&c.data.source===_.MouseMove&&(f=c.timestamp+((n=c.data.positions[0])==null?void 0:n.timeOffset)),u<(f||0)&&i.emit(P.PlayBack);const g=new Array;for(const d of h)if(!(f&&f<u&&(d.timestamp<=f||d===c)))if(d.timestamp<u)g.push(d);else{const A=e(d,!1);l.addAction({doAction:()=>{A()},delay:d.delay})}t(g),i.emit(P.Flush),l.start()},pause(o){o.timer.clear()},resetLastPlayedEvent:Ye(o=>le(U({},o),{lastPlayedEvent:null})),startLive:Ye({baselineTime:(o,n)=>(o.timer.start(),n.type==="TO_LIVE"&&n.payload.baselineTime?n.payload.baselineTime:Date.now())}),addEvent:Ye((o,n)=>{const{baselineTime:l,timer:a,events:u}=o;if(n.type==="ADD_EVENT"){const{event:c}=n.payload;hn(c,l);let h=u.length-1;if(!u[h]||u[h].timestamp<=c.timestamp)u.push(c);else{let d=-1,A=0;for(;A<=h;){const p=Math.floor((A+h)/2);u[p].timestamp<=c.timestamp?A=p+1:h=p-1}d===-1&&(d=A),u.splice(d,0,c)}const f=c.timestamp<l,g=e(c,f);f?g():a.isActive()&&a.addAction({doAction:()=>{g()},delay:c.delay})}return le(U({},o),{events:u})})}});return Nl(s)}function ap(r){const e=Rl({id:"speed",context:r,initial:"normal",states:{normal:{on:{FAST_FORWARD:{target:"skipping",actions:["recordSpeed","setSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}},skipping:{on:{BACK_TO_NORMAL:{target:"normal",actions:["restoreSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}}}},{actions:{setSpeed:(t,i)=>{"payload"in i&&t.timer.setSpeed(i.payload.speed)},recordSpeed:Ye({normalSpeed:t=>t.timer.speed}),restoreSpeed:t=>{t.timer.setSpeed(t.normalSpeed)}}});return Nl(e)}const yn=r=>[`.${r} { background: currentColor }`,"noscript { display: none !important; }"],wn=new Map;function Ml(r,e){let t=wn.get(r);return t||(t=new Map,wn.set(r,t)),t.has(e)||t.set(e,[]),t.get(e)}function Oe(r,e,t){return async i=>{if(i&&typeof i=="object"&&"rr_type"in i)if(t&&(t.isUnchanged=!1),i.rr_type==="ImageBitmap"&&"args"in i){const s=await Oe(r,e,t)(i.args);return await createImageBitmap.apply(null,s)}else if("index"in i){if(t||e===null)return i;const{rr_type:s,index:o}=i;return Ml(e,s)[o]}else if("args"in i){const{rr_type:s,args:o}=i,n=window[s];return new n(...await Promise.all(o.map(Oe(r,e,t))))}else{if("base64"in i)return ep(i.base64);if("src"in i){const s=r.get(i.src);if(s)return s;{const o=new Image;return o.src=i.src,r.set(i.src,o),o}}else if("data"in i&&i.rr_type==="Blob"){const s=await Promise.all(i.data.map(Oe(r,e,t)));return new Blob(s,{type:i.type})}}else if(Array.isArray(i))return await Promise.all(i.map(Oe(r,e,t)));return i}}function up(r,e){try{return e===vi.WebGL?r.getContext("webgl")||r.getContext("experimental-webgl"):r.getContext("webgl2")}catch(t){return null}}const cp=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject"];function hp(r,e){if(!(e!=null&&e.constructor))return;const{name:t}=e.constructor;if(!cp.includes(t))return;const i=Ml(r,t);i.includes(e)||i.push(e)}async function fp({mutation:r,target:e,type:t,imageMap:i,errorHandler:s}){try{const o=up(e,t);if(!o)return;if(r.setter){o[r.property]=r.args[0];return}const n=o[r.property],l=await Promise.all(r.args.map(Oe(i,o))),a=n.apply(o,l);hp(o,a);const u=!1}catch(o){s(r,o)}}async function pp({event:r,mutations:e,target:t,imageMap:i,errorHandler:s}){const o=t.getContext("2d");if(!o){s(e[0],new Error("Canvas context is null"));return}const n=e.map(async a=>Promise.all(a.args.map(Oe(i,o))));(await Promise.all(n)).forEach((a,u)=>{const c=e[u];try{if(c.setter){o[c.property]=c.args[0];return}const h=o[c.property];c.property==="drawImage"&&typeof c.args[0]=="string"?(i.get(r),h.apply(o,c.args)):h.apply(o,a)}catch(h){s(c,h)}})}async function vn({event:r,mutation:e,target:t,imageMap:i,canvasEventMap:s,errorHandler:o}){try{const n=s.get(r)||e,l="commands"in n?n.commands:[n];if([vi.WebGL,vi.WebGL2].includes(e.type)){for(let a=0;a<l.length;a++){const u=l[a];await fp({mutation:u,type:e.type,target:t,imageMap:i,errorHandler:o})}return}await pp({event:r,mutations:l,target:t,imageMap:i,errorHandler:o})}catch(n){o(e,n)}}class dp{constructor(e){N(this,"mediaMap",new Map),N(this,"warn"),N(this,"service"),N(this,"speedService"),N(this,"emitter"),N(this,"getCurrentTime"),N(this,"metadataCallbackMap",new Map),this.warn=e.warn,this.service=e.service,this.speedService=e.speedService,this.emitter=e.emitter,this.getCurrentTime=e.getCurrentTime,this.emitter.on(P.Start,this.start.bind(this)),this.emitter.on(P.SkipStart,this.start.bind(this)),this.emitter.on(P.Pause,this.pause.bind(this)),this.emitter.on(P.Finish,this.pause.bind(this)),this.speedService.subscribe(()=>{this.syncAllMediaElements()})}syncAllMediaElements(e={pause:!1}){this.mediaMap.forEach((t,i)=>{this.syncTargetWithState(i),e.pause&&i.pause()})}start(){this.syncAllMediaElements()}pause(){this.syncAllMediaElements({pause:!0})}seekTo({time:e,target:t,mediaState:i}){if(i.isPlaying){const o=(e-i.lastInteractionTimeOffset)/1e3*i.playbackRate,n="duration"in t&&t.duration;if(Number.isNaN(n)){this.waitForMetadata(t);return}let l=i.currentTimeAtLastInteraction+o;t.loop&&n!==!1&&(l=l%n),t.currentTime=l}else t.pause(),t.currentTime=i.currentTimeAtLastInteraction}waitForMetadata(e){if(this.metadataCallbackMap.has(e)||!("addEventListener"in e))return;const t=()=>{this.metadataCallbackMap.delete(e);const i=this.mediaMap.get(e);i&&this.seekTo({time:this.getCurrentTime(),target:e,mediaState:i})};this.metadataCallbackMap.set(e,t),e.addEventListener("loadedmetadata",t,{once:!0})}getMediaStateFromMutation({target:e,timeOffset:t,mutation:i}){var g,d,A,p,m;const s=this.mediaMap.get(e),{type:o,playbackRate:n,currentTime:l,muted:a,volume:u,loop:c}=i;return{isPlaying:o===kr.Play||o!==kr.Pause&&((s==null?void 0:s.isPlaying)||e.getAttribute("autoplay")!==null),currentTimeAtLastInteraction:(g=l!=null?l:s==null?void 0:s.currentTimeAtLastInteraction)!=null?g:0,lastInteractionTimeOffset:t,playbackRate:(d=n!=null?n:s==null?void 0:s.playbackRate)!=null?d:1,volume:(A=u!=null?u:s==null?void 0:s.volume)!=null?A:1,muted:(p=a!=null?a:s==null?void 0:s.muted)!=null?p:e.getAttribute("muted")===null,loop:(m=c!=null?c:s==null?void 0:s.loop)!=null?m:e.getAttribute("loop")===null}}syncTargetWithState(e){const t=this.mediaMap.get(e);if(!t)return;const{muted:i,loop:s,volume:o,isPlaying:n}=t,l=this.service.state.matches("paused"),a=t.playbackRate*this.speedService.state.context.timer.speed;try{this.seekTo({time:this.getCurrentTime(),target:e,mediaState:t}),e.volume!==o&&(e.volume=o),e.muted=i,e.loop=s,e.playbackRate!==a&&(e.playbackRate=a),n&&!l?e.play():e.pause()}catch(u){this.warn(`Failed to replay media interactions: ${u.message||u}`)}}addMediaElements(e,t,i){if(!["AUDIO","VIDEO"].includes(e.nodeName))return;const s=e,o=i.getMeta(s);if(!o||!("attributes"in o))return;const n=this.service.state.matches("paused"),l=o.attributes;let a=!1;l.rr_mediaState?a=l.rr_mediaState==="played":a=s.getAttribute("autoplay")!==null,a&&n&&s.pause();let u=1;typeof l.rr_mediaPlaybackRate=="number"&&(u=l.rr_mediaPlaybackRate);let c=!1;typeof l.rr_mediaMuted=="boolean"?c=l.rr_mediaMuted:c=s.getAttribute("muted")!==null;let h=!1;typeof l.rr_mediaLoop=="boolean"?h=l.rr_mediaLoop:h=s.getAttribute("loop")!==null;let f=1;typeof l.rr_mediaVolume=="number"&&(f=l.rr_mediaVolume);let g=0;typeof l.rr_mediaCurrentTime=="number"&&(g=l.rr_mediaCurrentTime),this.mediaMap.set(s,{isPlaying:a,currentTimeAtLastInteraction:g,lastInteractionTimeOffset:t,playbackRate:u,volume:f,muted:c,loop:h}),this.syncTargetWithState(s)}mediaMutation({target:e,timeOffset:t,mutation:i}){this.mediaMap.set(e,this.getMediaStateFromMutation({target:e,timeOffset:t,mutation:i})),this.syncTargetWithState(e)}isSupportedMediaElement(e){return["AUDIO","VIDEO"].includes(e.nodeName)}reset(){this.mediaMap.clear()}}function qt(r,e){if(r.nodeName!=="DIALOG"||r instanceof ye)return;const t=r,i=t.open,s=i&&t.matches("dialog:modal"),o=t.getAttribute("rr_open_mode"),n=typeof(e==null?void 0:e.attributes.open)=="string"||typeof t.getAttribute("open")=="string",l=o==="modal";if(!(i&&!(s&&o==="non-modal"||!s&&l))){if(!t.isConnected){console.warn("dialog is not attached to the dom",t);return}i&&t.close(),n&&(l?t.showModal():t.show())}}function mp(r,e){if(r.nodeName!=="DIALOG"||r instanceof ye)return;const t=r;if(!t.isConnected){console.warn("dialog is not attached to the dom",t);return}e.attributes.open===null&&(t.removeAttribute("open"),t.removeAttribute("rr_open_mode"))}const gp=El||rp,bn="[replayer]",ei="__rrweb-injected-style__",Xi={duration:500,lineCap:"round",lineWidth:3,strokeStyle:"red"};function Cn(r){return r.type==H.IncrementalSnapshot&&(r.data.source==_.TouchMove||r.data.source==_.MouseInteraction&&r.data.type==ie.TouchStart)}class yp{constructor(e,t){if(N(this,"wrapper"),N(this,"iframe"),N(this,"service"),N(this,"speedService"),N(this,"config"),N(this,"usingVirtualDom",!1),N(this,"virtualDom",new st),N(this,"mouse"),N(this,"mouseTail",null),N(this,"tailPositions",[]),N(this,"emitter",gp()),N(this,"nextUserInteractionEvent"),N(this,"legacy_missingNodeRetryMap",{}),N(this,"cache",Us()),N(this,"imageMap",new Map),N(this,"canvasEventMap",new Map),N(this,"mirror",jn()),N(this,"styleMirror",new qf),N(this,"mediaManager"),N(this,"firstFullSnapshot",null),N(this,"newDocumentQueue",[]),N(this,"mousePos",null),N(this,"touchActive",null),N(this,"lastMouseDownEvent",null),N(this,"lastHoveredRootNode"),N(this,"lastSelectionData",null),N(this,"constructedStyleMutations",[]),N(this,"adoptedStyleSheets",[]),N(this,"handleResize",l=>{this.iframe.style.display="inherit";for(const a of[this.mouseTail,this.iframe])a&&(a.setAttribute("width",String(l.width)),a.setAttribute("height",String(l.height)))}),N(this,"applyEventsSynchronously",l=>{for(const a of l){switch(a.type){case H.DomContentLoaded:case H.Load:case H.Custom:continue;case H.FullSnapshot:case H.Meta:case H.Plugin:case H.IncrementalSnapshot:break}this.getCastFn(a,!0)()}}),N(this,"getCastFn",(l,a=!1)=>{let u;switch(l.type){case H.DomContentLoaded:case H.Load:break;case H.Custom:u=()=>{this.emitter.emit(P.CustomEvent,l)};break;case H.Meta:u=()=>this.emitter.emit(P.Resize,{width:l.data.width,height:l.data.height});break;case H.FullSnapshot:u=()=>{var h;if(this.firstFullSnapshot){if(this.firstFullSnapshot===l){this.firstFullSnapshot=!0;return}}else this.firstFullSnapshot=!0;this.mediaManager.reset(),this.styleMirror.reset(),this.rebuildFullSnapshot(l,a),(h=this.iframe.contentWindow)==null||h.scrollTo(l.data.initialOffset)};break;case H.IncrementalSnapshot:u=()=>{if(this.applyIncremental(l,a),!a&&this.config.skipInactive&&!this.nextUserInteractionEvent){for(const h of this.service.state.context.events)if(!(h.timestamp<=l.timestamp)&&this.isUserInteraction(h)){h.delay-l.delay>this.config.inactivePeriodThreshold*this.speedService.state.context.timer.speed&&(this.nextUserInteractionEvent=h);break}if(this.nextUserInteractionEvent){const h=this.nextUserInteractionEvent.delay-l.delay;this.play(this.getCurrentTime()+h),this.nextUserInteractionEvent=null}}};break}return()=>{u&&u();for(const f of this.config.plugins||[])f.handler&&f.handler(l,a,{replayer:this});this.service.send({type:"CAST_EVENT",payload:{event:l}});const h=this.service.state.context.events.length-1;if(!this.config.liveMode&&l===this.service.state.context.events[h]){const f=()=>{h<this.service.state.context.events.length-1||(this.backToNormal(),this.service.send("END"),this.emitter.emit(P.Finish))};let g=50;l.type===H.IncrementalSnapshot&&l.data.source===_.MouseMove&&l.data.positions.length&&(g+=Math.max(0,-l.data.positions[0].timeOffset)),setTimeout(f,g)}this.emitter.emit(P.EventCast,l)}}),!(t!=null&&t.liveMode)&&e.length<2)throw new Error("Replayer need at least 2 events.");const i={speed:1,maxSpeed:360,root:document.body,loadTimeout:0,skipInactive:!1,inactivePeriodThreshold:10*1e3,showWarning:!0,showDebug:!1,blockClass:"rr-block",liveMode:!1,insertStyleRules:[],triggerFocus:!0,UNSAFE_replayCanvas:!1,pauseAnimation:!0,mouseTail:Xi,useVirtualDom:!0,logger:console};this.config=Object.assign({},i,t),this.handleResize=this.handleResize.bind(this),this.getCastFn=this.getCastFn.bind(this),this.applyEventsSynchronously=this.applyEventsSynchronously.bind(this),this.emitter.on(P.Resize,this.handleResize),this.setupDom();for(const l of this.config.plugins||[])l.getMirror&&l.getMirror({nodeMirror:this.mirror});this.emitter.on(P.Flush,()=>{if(this.usingVirtualDom){const l={mirror:this.mirror,applyCanvas:(a,u,c)=>{vn({event:a,mutation:u,target:c,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})},applyInput:this.applyInput.bind(this),applyScroll:this.applyScroll.bind(this),applyStyleSheetMutation:(a,u)=>{a.source===_.StyleSheetRule?this.applyStyleSheetRule(a,u):a.source===_.StyleDeclaration&&this.applyStyleDeclaration(a,u)},afterAppend:(a,u)=>{for(const c of this.config.plugins||[])c.onBuild&&c.onBuild(a,{id:u,replayer:this})}};if(this.iframe.contentDocument)try{yi(this.iframe.contentDocument,this.virtualDom,l,this.virtualDom.mirror)}catch(a){console.warn(a)}if(this.virtualDom.destroyTree(),this.usingVirtualDom=!1,Object.keys(this.legacy_missingNodeRetryMap).length)for(const a in this.legacy_missingNodeRetryMap)try{const u=this.legacy_missingNodeRetryMap[a],c=wi(u.node,this.mirror,this.virtualDom.mirror);yi(c,u.node,l,this.virtualDom.mirror),u.node=c}catch(u){this.warn(u)}this.constructedStyleMutations.forEach(a=>{this.applyStyleSheetMutation(a)}),this.constructedStyleMutations=[],this.adoptedStyleSheets.forEach(a=>{this.applyAdoptedStyleSheet(a)}),this.adoptedStyleSheets=[]}if(this.mousePos&&(this.moveAndHover(this.mousePos.x,this.mousePos.y,this.mousePos.id,!0,this.mousePos.debugData),this.mousePos=null),this.touchActive===!0?this.mouse.classList.add("touch-active"):this.touchActive===!1&&this.mouse.classList.remove("touch-active"),this.touchActive=null,this.lastMouseDownEvent){const[l,a]=this.lastMouseDownEvent;l.dispatchEvent(a)}this.lastMouseDownEvent=null,this.lastSelectionData&&(this.applySelection(this.lastSelectionData),this.lastSelectionData=null)}),this.emitter.on(P.PlayBack,()=>{this.firstFullSnapshot=null,this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset()});const s=new np([],{speed:this.config.speed});this.service=lp({events:e.map(l=>t&&t.unpackFn?t.unpackFn(l):l).sort((l,a)=>l.timestamp-a.timestamp),timer:s,timeOffset:0,baselineTime:0,lastPlayedEvent:null},{getCastFn:this.getCastFn,applyEventsSynchronously:this.applyEventsSynchronously,emitter:this.emitter}),this.service.start(),this.service.subscribe(l=>{this.emitter.emit(P.StateChange,{player:l})}),this.speedService=ap({normalSpeed:-1,timer:s}),this.speedService.start(),this.speedService.subscribe(l=>{this.emitter.emit(P.StateChange,{speed:l})}),this.mediaManager=new dp({warn:this.warn.bind(this),service:this.service,speedService:this.speedService,emitter:this.emitter,getCurrentTime:this.getCurrentTime.bind(this)});const o=this.service.state.context.events.find(l=>l.type===H.Meta),n=this.service.state.context.events.find(l=>l.type===H.FullSnapshot);if(o){const{width:l,height:a}=o.data;setTimeout(()=>{this.emitter.emit(P.Resize,{width:l,height:a})},0)}n&&setTimeout(()=>{var l;this.firstFullSnapshot||(this.firstFullSnapshot=n,this.rebuildFullSnapshot(n),(l=this.iframe.contentWindow)==null||l.scrollTo(n.data.initialOffset))},1),this.service.state.context.events.find(Cn)&&this.mouse.classList.add("touch-device")}get timer(){return this.service.state.context.timer}on(e,t){return this.emitter.on(e,t),this}off(e,t){return this.emitter.off(e,t),this}setConfig(e){Object.keys(e).forEach(t=>{e[t],this.config[t]=e[t]}),this.config.skipInactive||this.backToNormal(),typeof e.speed!="undefined"&&this.speedService.send({type:"SET_SPEED",payload:{speed:e.speed}}),typeof e.mouseTail!="undefined"&&(e.mouseTail===!1?this.mouseTail&&(this.mouseTail.style.display="none"):(this.mouseTail||(this.mouseTail=document.createElement("canvas"),this.mouseTail.width=Number.parseFloat(this.iframe.width),this.mouseTail.height=Number.parseFloat(this.iframe.height),this.mouseTail.classList.add("replayer-mouse-tail"),this.wrapper.insertBefore(this.mouseTail,this.iframe)),this.mouseTail.style.display="inherit"))}getMetaData(){const e=this.service.state.context.events[0],t=this.service.state.context.events[this.service.state.context.events.length-1];return{startTime:e.timestamp,endTime:t.timestamp,totalTime:t.timestamp-e.timestamp}}getCurrentTime(){return this.timer.timeOffset+this.getTimeOffset()}getTimeOffset(){const{baselineTime:e,events:t}=this.service.state.context;return e-t[0].timestamp}getMirror(){return this.mirror}play(e=0){var t,i;this.service.state.matches("paused")?this.service.send({type:"PLAY",payload:{timeOffset:e}}):(this.service.send({type:"PAUSE"}),this.service.send({type:"PLAY",payload:{timeOffset:e}})),(i=(t=this.iframe.contentDocument)==null?void 0:t.getElementsByTagName("html")[0])==null||i.classList.remove("rrweb-paused"),this.emitter.emit(P.Start)}pause(e){var t,i;e===void 0&&this.service.state.matches("playing")&&this.service.send({type:"PAUSE"}),typeof e=="number"&&(this.play(e),this.service.send({type:"PAUSE"})),(i=(t=this.iframe.contentDocument)==null?void 0:t.getElementsByTagName("html")[0])==null||i.classList.add("rrweb-paused"),this.emitter.emit(P.Pause)}resume(e=0){this.warn("The 'resume' was deprecated in 1.0. Please use 'play' method which has the same interface."),this.play(e),this.emitter.emit(P.Resume)}destroy(){this.pause(),this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset(),this.config.root.removeChild(this.wrapper),this.emitter.emit(P.Destroy)}startLive(e){this.service.send({type:"TO_LIVE",payload:{baselineTime:e}})}addEvent(e){const t=this.config.unpackFn?this.config.unpackFn(e):e;Cn(t)&&this.mouse.classList.add("touch-device"),Promise.resolve().then(()=>this.service.send({type:"ADD_EVENT",payload:{event:t}}))}enableInteract(){this.iframe.setAttribute("scrolling","auto"),this.iframe.style.pointerEvents="auto"}disableInteract(){this.iframe.setAttribute("scrolling","no"),this.iframe.style.pointerEvents="none"}resetCache(){this.cache=Us()}setupDom(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("replayer-wrapper"),this.config.root.appendChild(this.wrapper),this.mouse=document.createElement("div"),this.mouse.classList.add("replayer-mouse"),this.wrapper.appendChild(this.mouse),this.config.mouseTail!==!1&&(this.mouseTail=document.createElement("canvas"),this.mouseTail.classList.add("replayer-mouse-tail"),this.mouseTail.style.display="inherit",this.wrapper.appendChild(this.mouseTail)),this.iframe=document.createElement("iframe");const e=["allow-same-origin"];this.config.UNSAFE_replayCanvas&&e.push("allow-scripts"),this.iframe.style.display="none",this.iframe.setAttribute("sandbox",e.join(" ")),this.disableInteract(),this.wrapper.appendChild(this.iframe),this.iframe.contentWindow&&this.iframe.contentDocument&&(sp(this.iframe.contentWindow,this.iframe.contentDocument),Jf(this.iframe.contentWindow))}rebuildFullSnapshot(e,t=!1){if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");Object.keys(this.legacy_missingNodeRetryMap).length&&this.warn("Found unresolved missing node map",this.legacy_missingNodeRetryMap),this.legacy_missingNodeRetryMap={};const i=[],s=new Set,o=(a,u)=>{if(a.nodeName==="DIALOG"&&s.add(a),this.collectIframeAndAttachDocument(i,a),this.mediaManager.isSupportedMediaElement(a)){const{events:c}=this.service.state.context;this.mediaManager.addMediaElements(a,e.timestamp-c[0].timestamp,this.mirror)}for(const c of this.config.plugins||[])c.onBuild&&c.onBuild(a,{id:u,replayer:this})};this.usingVirtualDom&&(this.virtualDom.destroyTree(),this.usingVirtualDom=!1),this.mirror.reset(),dc(e.data.node,{doc:this.iframe.contentDocument,afterAppend:o,cache:this.cache,mirror:this.mirror}),o(this.iframe.contentDocument,e.data.node.id);for(const{mutationInQueue:a,builtNode:u}of i)this.attachDocumentToIframe(a,u),this.newDocumentQueue=this.newDocumentQueue.filter(c=>c!==a);const{documentElement:n,head:l}=this.iframe.contentDocument;this.insertStyleRules(n,l),s.forEach(a=>qt(a)),this.service.state.matches("playing")||this.iframe.contentDocument.getElementsByTagName("html")[0].classList.add("rrweb-paused"),this.emitter.emit(P.FullsnapshotRebuilded,e),t||this.waitForStylesheetLoad(),this.config.UNSAFE_replayCanvas&&this.preloadAllImages()}insertStyleRules(e,t){var i;const s=yn(this.config.blockClass).concat(this.config.insertStyleRules);if(this.config.pauseAnimation&&s.push("html.rrweb-paused *, html.rrweb-paused *:before, html.rrweb-paused *:after { animation-play-state: paused !important; }"),!!s.length)if(this.usingVirtualDom){const o=this.virtualDom.createElement("style");this.virtualDom.mirror.add(o,Tr(o,this.virtualDom.unserializedId)),e.insertBefore(o,t),o.rules.push({source:_.StyleSheetRule,adds:s.map((n,l)=>({rule:n,index:l}))})}else{const o=document.createElement("style");e.insertBefore(o,t);for(let n=0;n<s.length;n++)(i=o.sheet)==null||i.insertRule(s[n],n)}}isShadowRoot(e){return e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}insertStyleRulesIntoShadowRoot(e){var s;var t;const i=yn(this.config.blockClass).concat(this.config.insertStyleRules);if(i.length){if(this.usingVirtualDom&&e.getAttribute("id")!==ei){const o=this.virtualDom.createElement("style");this.virtualDom.mirror.add(o,Tr(o,this.virtualDom.unserializedId)),o.setAttribute("id",ei),e.insertBefore(o,e.firstChild||null),o.rules.push({source:_.StyleSheetRule,adds:i.map((n,l)=>({rule:n,index:l}))})}else if(this.isShadowRoot(e)&&!e.getElementById(ei)){const o=document.createElement("style");o.id=ei,e.insertBefore(o,(s=e.firstChild)!=null?s:null);for(let n=0;n<i.length;n++)(t=o.sheet)==null||t.insertRule(i[n],n)}}}attachDocumentToIframe(e,t){const i=this.usingVirtualDom?this.virtualDom.mirror:this.mirror,s=[],o=new Set,n=(l,a)=>{l.nodeName==="DIALOG"&&o.add(l),this.collectIframeAndAttachDocument(s,l);const u=i.getMeta(l);if((u==null?void 0:u.type)===De.Element&&(u==null?void 0:u.tagName.toUpperCase())==="HTML"){const{documentElement:c,head:h}=t.contentDocument;this.insertStyleRules(c,h)}if(!this.usingVirtualDom)for(const c of this.config.plugins||[])c.onBuild&&c.onBuild(l,{id:a,replayer:this})};dt(e.node,{doc:t.contentDocument,mirror:i,hackCss:!0,skipChild:!1,afterAppend:n,cache:this.cache}),n(t.contentDocument,e.node.id);for(const{mutationInQueue:l,builtNode:a}of s)this.attachDocumentToIframe(l,a),this.newDocumentQueue=this.newDocumentQueue.filter(u=>u!==l);o.forEach(l=>qt(l))}collectIframeAndAttachDocument(e,t){if(Zi(t,this.mirror)){const i=this.newDocumentQueue.find(s=>s.parentId===this.mirror.getId(t));i&&e.push({mutationInQueue:i,builtNode:t})}}waitForStylesheetLoad(){var e;const t=(e=this.iframe.contentDocument)==null?void 0:e.head;if(t){const i=new Set;let s,o=this.service.state;const n=()=>{o=this.service.state};this.emitter.on(P.Start,n),this.emitter.on(P.Pause,n);const l=()=>{this.emitter.off(P.Start,n),this.emitter.off(P.Pause,n)};t.querySelectorAll('link[rel="stylesheet"]').forEach(a=>{a.sheet||(i.add(a),a.addEventListener("load",()=>{i.delete(a),i.size===0&&s!==-1&&(o.matches("playing")&&this.play(this.getCurrentTime()),this.emitter.emit(P.LoadStylesheetEnd),s&&clearTimeout(s),l())}))}),i.size>0&&(this.service.send({type:"PAUSE"}),this.emitter.emit(P.LoadStylesheetStart),s=setTimeout(()=>{o.matches("playing")&&this.play(this.getCurrentTime()),s=-1,l()},this.config.loadTimeout))}}async preloadAllImages(){const e=[];for(const t of this.service.state.context.events)t.type===H.IncrementalSnapshot&&t.data.source===_.CanvasMutation&&(e.push(this.deserializeAndPreloadCanvasEvents(t.data,t)),("commands"in t.data?t.data.commands:[t.data]).forEach(s=>{this.preloadImages(s,t)}));return Promise.all(e)}preloadImages(e,t){if(e.property==="drawImage"&&typeof e.args[0]=="string"&&!this.imageMap.has(t)){const i=document.createElement("canvas"),s=i.getContext("2d"),o=s==null?void 0:s.createImageData(i.width,i.height);s==null||s.putImageData(o,0,0)}}async deserializeAndPreloadCanvasEvents(e,t){if(!this.canvasEventMap.has(t)){const i={isUnchanged:!0};if("commands"in e){const s=await Promise.all(e.commands.map(async o=>{const n=await Promise.all(o.args.map(Oe(this.imageMap,null,i)));return le(U({},o),{args:n})}));i.isUnchanged===!1&&this.canvasEventMap.set(t,le(U({},e),{commands:s}))}else{const s=await Promise.all(e.args.map(Oe(this.imageMap,null,i)));i.isUnchanged===!1&&this.canvasEventMap.set(t,le(U({},e),{args:s}))}}}applyIncremental(e,t){var i,s,o;const{data:n}=e;switch(n.source){case _.Mutation:{try{this.applyMutation(n,t)}catch(l){this.warn(`Exception in mutation ${l.message||l}`,n)}break}case _.Drag:case _.TouchMove:case _.MouseMove:if(t){const l=n.positions[n.positions.length-1];this.mousePos={x:l.x,y:l.y,id:l.id,debugData:n}}else n.positions.forEach(l=>{const a={doAction:()=>{this.moveAndHover(l.x,l.y,l.id,t,n)},delay:l.timeOffset+e.timestamp-this.service.state.context.baselineTime};this.timer.addAction(a)}),this.timer.addAction({doAction(){},delay:e.delay-((i=n.positions[0])==null?void 0:i.timeOffset)});break;case _.MouseInteraction:{if(n.id===-1)break;const l=new Event(pa(ie[n.type])),a=this.mirror.getNode(n.id);if(!a)return this.debugNodeNotFound(n,n.id);this.emitter.emit(P.MouseInteraction,{type:n.type,target:a});const{triggerFocus:u}=this.config;switch(n.type){case ie.Blur:"blur"in a&&a.blur();break;case ie.Focus:u&&a.focus&&a.focus({preventScroll:!0});break;case ie.Click:case ie.TouchStart:case ie.TouchEnd:case ie.MouseDown:case ie.MouseUp:t?(n.type===ie.TouchStart?this.touchActive=!0:n.type===ie.TouchEnd&&(this.touchActive=!1),n.type===ie.MouseDown?this.lastMouseDownEvent=[a,l]:n.type===ie.MouseUp&&(this.lastMouseDownEvent=null),this.mousePos={x:n.x||0,y:n.y||0,id:n.id,debugData:n}):(n.type===ie.TouchStart&&(this.tailPositions.length=0),this.moveAndHover(n.x||0,n.y||0,n.id,t,n),n.type===ie.Click?(this.mouse.classList.remove("active"),this.mouse.offsetWidth,this.mouse.classList.add("active")):n.type===ie.TouchStart?(this.mouse.offsetWidth,this.mouse.classList.add("touch-active")):n.type===ie.TouchEnd?this.mouse.classList.remove("touch-active"):a.dispatchEvent(l));break;case ie.TouchCancel:t?this.touchActive=!1:this.mouse.classList.remove("touch-active");break;default:a.dispatchEvent(l)}break}case _.Scroll:{if(n.id===-1)break;if(this.usingVirtualDom){const l=this.virtualDom.mirror.getNode(n.id);if(!l)return this.debugNodeNotFound(n,n.id);l.scrollData=n;break}this.applyScroll(n,t);break}case _.ViewportResize:this.emitter.emit(P.Resize,{width:n.width,height:n.height});break;case _.Input:{if(n.id===-1)break;if(this.usingVirtualDom){const l=this.virtualDom.mirror.getNode(n.id);if(!l)return this.debugNodeNotFound(n,n.id);l.inputData=n;break}this.applyInput(n);break}case _.MediaInteraction:{const l=this.usingVirtualDom?this.virtualDom.mirror.getNode(n.id):this.mirror.getNode(n.id);if(!l)return this.debugNodeNotFound(n,n.id);const a=l,{events:u}=this.service.state.context;this.mediaManager.mediaMutation({target:a,timeOffset:e.timestamp-u[0].timestamp,mutation:n});break}case _.StyleSheetRule:case _.StyleDeclaration:{this.usingVirtualDom?n.styleId?this.constructedStyleMutations.push(n):n.id&&((s=this.virtualDom.mirror.getNode(n.id))==null||s.rules.push(n)):this.applyStyleSheetMutation(n);break}case _.CanvasMutation:{if(!this.config.UNSAFE_replayCanvas)return;if(this.usingVirtualDom){const l=this.virtualDom.mirror.getNode(n.id);if(!l)return this.debugNodeNotFound(n,n.id);l.canvasMutations.push({event:e,mutation:n})}else{const l=this.mirror.getNode(n.id);if(!l)return this.debugNodeNotFound(n,n.id);vn({event:e,mutation:n,target:l,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})}break}case _.Font:{try{const l=new FontFace(n.family,n.buffer?new Uint8Array(JSON.parse(n.fontSource)):n.fontSource,n.descriptors);(o=this.iframe.contentDocument)==null||o.fonts.add(l)}catch(l){this.warn(l)}break}case _.Selection:{if(t){this.lastSelectionData=n;break}this.applySelection(n);break}case _.AdoptedStyleSheet:{this.usingVirtualDom?this.adoptedStyleSheets.push(n):this.applyAdoptedStyleSheet(n);break}}}applyMutation(e,t){if(this.config.useVirtualDom&&!this.usingVirtualDom&&t&&(this.usingVirtualDom=!0,Tf(this.iframe.contentDocument,this.mirror,this.virtualDom),Object.keys(this.legacy_missingNodeRetryMap).length))for(const u in this.legacy_missingNodeRetryMap)try{const c=this.legacy_missingNodeRetryMap[u],h=vl(c.node,this.virtualDom,this.mirror);h&&(c.node=h)}catch(c){this.warn(c)}const i=this.usingVirtualDom?this.virtualDom.mirror:this.mirror;e.removes=e.removes.filter(u=>i.getNode(u.id)?!0:(this.warnNodeNotFound(e,u.id),!1)),e.removes.forEach(u=>{var c;const h=i.getNode(u.id);if(!h)return;let f=i.getNode(u.parentId);if(!f)return this.warnNodeNotFound(e,u.parentId);if(u.isShadow&&Kt(f)&&(f=f.shadowRoot),i.removeNodeFromMap(h),f)try{f.removeChild(h),this.usingVirtualDom&&h.nodeName==="#text"&&f.nodeName==="STYLE"&&((c=f.rules)==null?void 0:c.length)>0&&(f.rules=[])}catch(g){if(g instanceof DOMException)this.warn("parent could not remove child in mutation",f,h,e);else throw g}});const s=U({},this.legacy_missingNodeRetryMap),o=[],n=u=>{let c=null;return u.nextId&&(c=i.getNode(u.nextId)),u.nextId!==null&&u.nextId!==void 0&&u.nextId!==-1&&!c},l=u=>{var c,h;if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");let f=i.getNode(u.parentId);if(!f)return u.node.type===De.Document?this.newDocumentQueue.push(u):o.push(u);u.node.isShadow&&(Kt(f)||f.attachShadow({mode:"open"}),f=f.shadowRoot,this.insertStyleRulesIntoShadowRoot(f));let g=null,d=null;if(u.previousId&&(g=i.getNode(u.previousId)),u.nextId&&(d=i.getNode(u.nextId)),n(u))return o.push(u);if(u.node.rootId&&!i.getNode(u.node.rootId))return;const A=u.node.rootId?i.getNode(u.node.rootId):this.usingVirtualDom?this.virtualDom:this.iframe.contentDocument;if(Zi(f,i)){this.attachDocumentToIframe(u,f);return}const p=(v,x)=>{if(!this.usingVirtualDom){qt(v);for(const R of this.config.plugins||[])R.onBuild&&R.onBuild(v,{id:x,replayer:this})}},m=dt(u.node,{doc:A,mirror:i,skipChild:!0,hackCss:!0,cache:this.cache,afterAppend:p});if(u.previousId===-1||u.nextId===-1){s[u.node.id]={node:m,mutation:u};return}const w=i.getMeta(f);if(w&&w.type===De.Element&&u.node.type===De.Text){const v=Array.isArray(f.childNodes)?f.childNodes:Array.from(f.childNodes);if(w.tagName==="textarea")for(const x of v)x.nodeType===f.TEXT_NODE&&f.removeChild(x);else if(w.tagName==="style"&&v.length===1)for(const x of v)x.nodeType===f.TEXT_NODE&&!i.hasNode(x)&&(m.textContent=x.textContent,f.removeChild(x))}else if((w==null?void 0:w.type)===De.Document){const v=f;u.node.type===De.DocumentType&&((c=v.childNodes[0])==null?void 0:c.nodeType)===Node.DOCUMENT_TYPE_NODE&&v.removeChild(v.childNodes[0]),m.nodeName==="HTML"&&v.documentElement&&v.removeChild(v.documentElement)}if(g&&g.nextSibling&&g.nextSibling.parentNode?f.insertBefore(m,g.nextSibling):d&&d.parentNode?f.contains(d)?f.insertBefore(m,d):f.insertBefore(m,null):f.appendChild(m),p(m,u.node.id),this.usingVirtualDom&&m.nodeName==="#text"&&f.nodeName==="STYLE"&&((h=f.rules)==null?void 0:h.length)>0&&(f.rules=[]),Zi(m,this.mirror)){const v=this.mirror.getId(m),x=this.newDocumentQueue.find(R=>R.parentId===v);x&&(this.attachDocumentToIframe(x,m),this.newDocumentQueue=this.newDocumentQueue.filter(R=>R!==x))}(u.previousId||u.nextId)&&this.legacy_resolveMissingNode(s,f,m,u)};e.adds.forEach(u=>{l(u)});const a=Date.now();for(;o.length;){const u=Kf(o);if(o.length=0,Date.now()-a>500){this.warn("Timeout in the loop, please check the resolve tree data:",u);break}for(const c of u)i.getNode(c.value.parentId)?Cl(c,f=>{l(f)}):this.debug("Drop resolve tree since there is no parent for the root node.",c)}Object.keys(s).length&&Object.assign(this.legacy_missingNodeRetryMap,s),Qf(e.texts).forEach(u=>{var c;const h=i.getNode(u.id);if(!h)return e.removes.find(g=>g.id===u.id)?void 0:this.warnNodeNotFound(e,u.id);const f=h.parentElement;if(u.value&&f&&f.tagName==="STYLE"?h.textContent=Ni(u.value,this.cache):h.textContent=u.value,this.usingVirtualDom){const g=h.parentNode;((c=g==null?void 0:g.rules)==null?void 0:c.length)>0&&(g.rules=[])}}),e.attributes.forEach(u=>{var c;const h=i.getNode(u.id);if(!h)return e.removes.find(f=>f.id===u.id)?void 0:this.warnNodeNotFound(e,u.id);for(const f in u.attributes)if(typeof f=="string"){const g=u.attributes[f];if(g===null)h.removeAttribute(f),f==="open"&&mp(h,u);else if(typeof g=="string")try{if(f==="_cssText"&&(h.nodeName==="LINK"||h.nodeName==="STYLE"))try{const d=i.getMeta(h);Object.assign(d.attributes,u.attributes);const A=dt(d,{doc:h.ownerDocument,mirror:i,skipChild:!0,hackCss:!0,cache:this.cache}),p=h.nextSibling,m=h.parentNode;if(A&&m){m.removeChild(h),m.insertBefore(A,p),i.replace(u.id,A);break}}catch(d){}if(f==="value"&&h.nodeName==="TEXTAREA"){const d=h;d.childNodes.forEach(p=>d.removeChild(p));const A=(c=h.ownerDocument)==null?void 0:c.createTextNode(g);A&&d.appendChild(A)}else h.setAttribute(f,g);f==="rr_open_mode"&&h.nodeName==="DIALOG"&&qt(h,u)}catch(d){this.warn("An error occurred may due to the checkout feature.",d)}else if(f==="style"){const d=g,A=h;for(const p in d)if(d[p]===!1)A.style.removeProperty(p);else if(d[p]instanceof Array){const m=d[p];A.style.setProperty(p,m[0],m[1])}else{const m=d[p];A.style.setProperty(p,m)}}}})}applyScroll(e,t){var i,s;const o=this.mirror.getNode(e.id);if(!o)return this.debugNodeNotFound(e,e.id);const n=this.mirror.getMeta(o);if(o===this.iframe.contentDocument)(i=this.iframe.contentWindow)==null||i.scrollTo({top:e.y,left:e.x,behavior:t?"auto":"smooth"});else if((n==null?void 0:n.type)===De.Document)(s=o.defaultView)==null||s.scrollTo({top:e.y,left:e.x,behavior:t?"auto":"smooth"});else try{o.scrollTo({top:e.y,left:e.x,behavior:t?"auto":"smooth"})}catch(l){}}applyInput(e){const t=this.mirror.getNode(e.id);if(!t)return this.debugNodeNotFound(e,e.id);try{t.checked=e.isChecked,t.value=e.text}catch(i){}}applySelection(e){try{const t=new Set,i=e.ranges.map(({start:s,startOffset:o,end:n,endOffset:l})=>{const a=this.mirror.getNode(s),u=this.mirror.getNode(n);if(!a||!u)return;const c=new Range;c.setStart(a,o),c.setEnd(u,l);const h=a.ownerDocument,f=h==null?void 0:h.getSelection();return f&&t.add(f),{range:c,selection:f}});t.forEach(s=>s.removeAllRanges()),i.forEach(s=>{var o;return s&&((o=s.selection)==null?void 0:o.addRange(s.range))})}catch(t){}}applyStyleSheetMutation(e){var t;let i=null;e.styleId?i=this.styleMirror.getStyle(e.styleId):e.id&&(i=((t=this.mirror.getNode(e.id))==null?void 0:t.sheet)||null),i&&(e.source===_.StyleSheetRule?this.applyStyleSheetRule(e,i):e.source===_.StyleDeclaration&&this.applyStyleDeclaration(e,i))}applyStyleSheetRule(e,t){var i,s,o,n;if((i=e.adds)==null||i.forEach(({rule:l,index:a})=>{try{if(Array.isArray(a)){const{positions:u,index:c}=un(a);ht(t.cssRules,u).insertRule(l,c)}else{const u=a===void 0?void 0:Math.min(a,t.cssRules.length);t==null||t.insertRule(l,u)}}catch(u){}}),(s=e.removes)==null||s.forEach(({index:l})=>{try{if(Array.isArray(l)){const{positions:a,index:u}=un(l);ht(t.cssRules,a).deleteRule(u||0)}else t==null||t.deleteRule(l)}catch(a){}}),e.replace)try{(o=t.replace)==null||o.call(t,e.replace)}catch(l){}if(e.replaceSync)try{(n=t.replaceSync)==null||n.call(t,e.replaceSync)}catch(l){}}applyStyleDeclaration(e,t){e.set&&ht(t.rules,e.index).style.setProperty(e.set.property,e.set.value,e.set.priority),e.remove&&ht(t.rules,e.index).style.removeProperty(e.remove.property)}applyAdoptedStyleSheet(e){var t;const i=this.mirror.getNode(e.id);if(!i)return;(t=e.styles)==null||t.forEach(l=>{var a;let u=null,c=null;if(Kt(i)?c=((a=i.ownerDocument)==null?void 0:a.defaultView)||null:i.nodeName==="#document"&&(c=i.defaultView),!!c)try{u=new c.CSSStyleSheet,this.styleMirror.add(u,l.styleId),this.applyStyleSheetRule({source:_.StyleSheetRule,adds:l.rules},u)}catch(h){}});const s=10;let o=0;const n=(l,a)=>{const u=a.map(c=>this.styleMirror.getStyle(c)).filter(c=>c!==null);Kt(l)?l.shadowRoot.adoptedStyleSheets=u:l.nodeName==="#document"&&(l.adoptedStyleSheets=u),u.length!==a.length&&o<s&&(setTimeout(()=>n(l,a),0+100*o),o++)};n(i,e.styleIds)}legacy_resolveMissingNode(e,t,i,s){const{previousId:o,nextId:n}=s,l=o&&e[o],a=n&&e[n];if(l){const{node:u,mutation:c}=l;t.insertBefore(u,i),delete e[c.node.id],delete this.legacy_missingNodeRetryMap[c.node.id],(c.previousId||c.nextId)&&this.legacy_resolveMissingNode(e,t,u,c)}if(a){const{node:u,mutation:c}=a;t.insertBefore(u,i.nextSibling),delete e[c.node.id],delete this.legacy_missingNodeRetryMap[c.node.id],(c.previousId||c.nextId)&&this.legacy_resolveMissingNode(e,t,u,c)}}moveAndHover(e,t,i,s,o){const n=this.mirror.getNode(i);if(!n)return this.debugNodeNotFound(o,i);const l=Sl(n,this.iframe),a=e*l.absoluteScale+l.x,u=t*l.absoluteScale+l.y;this.mouse.style.left=`${a}px`,this.mouse.style.top=`${u}px`,s||this.drawMouseTail({x:a,y:u}),this.hoverElements(n)}drawMouseTail(e){if(!this.mouseTail)return;const{lineCap:t,lineWidth:i,strokeStyle:s,duration:o}=this.config.mouseTail===!0?Xi:Object.assign({},Xi,this.config.mouseTail),n=()=>{if(!this.mouseTail)return;const l=this.mouseTail.getContext("2d");!l||!this.tailPositions.length||(l.clearRect(0,0,this.mouseTail.width,this.mouseTail.height),l.beginPath(),l.lineWidth=i,l.lineCap=t,l.strokeStyle=s,l.moveTo(this.tailPositions[0].x,this.tailPositions[0].y),this.tailPositions.forEach(a=>l.lineTo(a.x,a.y)),l.stroke())};this.tailPositions.push(e),n(),setTimeout(()=>{this.tailPositions=this.tailPositions.filter(l=>l!==e),n()},o/this.speedService.state.context.timer.speed)}hoverElements(e){var t;(t=this.lastHoveredRootNode||this.iframe.contentDocument)==null||t.querySelectorAll(".\\:hover").forEach(s=>{s.classList.remove(":hover")}),this.lastHoveredRootNode=e.getRootNode();let i=e;for(;i;)i.classList&&i.classList.add(":hover"),i=i.parentElement}isUserInteraction(e){return e.type!==H.IncrementalSnapshot?!1:e.data.source>_.Mutation&&e.data.source<=_.Input}backToNormal(){this.nextUserInteractionEvent=null,!this.speedService.state.matches("normal")&&(this.speedService.send({type:"BACK_TO_NORMAL"}),this.emitter.emit(P.SkipEnd,{speed:this.speedService.state.context.normalSpeed}))}warnNodeNotFound(e,t){this.warn(`Node with id '${t}' not found. `,e)}warnCanvasMutationFailed(e,t){this.warn("Has error on canvas update",t,"canvas mutation:",e)}debugNodeNotFound(e,t){this.debug(`Node with id '${t}' not found. `,e)}warn(...e){this.config.showWarning&&this.config.logger.warn(bn,...e)}debug(...e){this.config.showDebug&&this.config.logger.log(bn,...e)}}var he=Uint8Array,_e=Uint16Array,Pr=Uint32Array,Il=new he([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,0,0,0]),Dl=new he([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,0,0]),wp=new he([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Ol=function(r,e){for(var t=new _e(31),i=0;i<31;++i)t[i]=e+=1<<r[i-1];for(var s=new Pr(t[30]),i=1;i<30;++i)for(var o=t[i];o<t[i+1];++o)s[o]=o-t[i]<<5|i;return[t,s]},_l=Ol(Il,2),Tl=_l[0],vp=_l[1];Tl[28]=258,vp[258]=28;var bp=Ol(Dl,0),Cp=bp[0],$r=new _e(32768);for(var Y=0;Y<32768;++Y){var Ie=(Y&43690)>>>1|(Y&21845)<<1;Ie=(Ie&52428)>>>2|(Ie&13107)<<2,Ie=(Ie&61680)>>>4|(Ie&3855)<<4,$r[Y]=((Ie&65280)>>>8|(Ie&255)<<8)>>>1}var mt=function(r,e,t){for(var i=r.length,s=0,o=new _e(e);s<i;++s)++o[r[s]-1];var n=new _e(e);for(s=0;s<e;++s)n[s]=n[s-1]+o[s-1]<<1;var l;if(t){l=new _e(1<<e);var a=15-e;for(s=0;s<i;++s)if(r[s])for(var u=s<<4|r[s],c=e-r[s],h=n[r[s]-1]++<<c,f=h|(1<<c)-1;h<=f;++h)l[$r[h]>>>a]=u}else for(l=new _e(i),s=0;s<i;++s)l[s]=$r[n[r[s]-1]++]>>>15-r[s];return l},Dt=new he(288);for(var Y=0;Y<144;++Y)Dt[Y]=8;for(var Y=144;Y<256;++Y)Dt[Y]=9;for(var Y=256;Y<280;++Y)Dt[Y]=7;for(var Y=280;Y<288;++Y)Dt[Y]=8;var kl=new he(32);for(var Y=0;Y<32;++Y)kl[Y]=5;var Sp=mt(Dt,9,1),Ep=mt(kl,5,1),Ji=function(r){for(var e=r[0],t=1;t<r.length;++t)r[t]>e&&(e=r[t]);return e},de=function(r,e,t){var i=e/8>>0;return(r[i]|r[i+1]<<8)>>>(e&7)&t},Ki=function(r,e){var t=e/8>>0;return(r[t]|r[t+1]<<8|r[t+2]<<16)>>>(e&7)},xp=function(r){return(r/8>>0)+(r&7&&1)},Pl=function(r,e,t){(t==null||t>r.length)&&(t=r.length);var i=new(r instanceof _e?_e:r instanceof Pr?Pr:he)(t-e);return i.set(r.subarray(e,t)),i},Ap=function(r,e,t){var i=r.length,s=!e||t,o=!t||t.i;t||(t={}),e||(e=new he(i*3));var n=function(y){var E=e.length;if(y>E){var $=new he(Math.max(E*2,y));$.set(e),e=$}},l=t.f||0,a=t.p||0,u=t.b||0,c=t.l,h=t.d,f=t.m,g=t.n,d=i*8;do{if(!c){t.f=l=de(r,a,1);var A=de(r,a+1,3);if(a+=3,A)if(A==1)c=Sp,h=Ep,f=9,g=5;else if(A==2){var v=de(r,a,31)+257,x=de(r,a+10,15)+4,R=v+de(r,a+5,31)+1;a+=14;for(var D=new he(R),Z=new he(19),I=0;I<x;++I)Z[wp[I]]=de(r,a+I*3,7);a+=x*3;var J=Ji(Z),z=(1<<J)-1;if(!o&&a+R*(J+7)>d)break;for(var fe=mt(Z,J,1),I=0;I<R;){var ae=fe[de(r,a,z)];a+=ae&15;var p=ae>>>4;if(p<16)D[I++]=p;else{var q=0,L=0;for(p==16?(L=3+de(r,a,3),a+=2,q=D[I-1]):p==17?(L=3+de(r,a,7),a+=3):p==18&&(L=11+de(r,a,127),a+=7);L--;)D[I++]=q}}var ne=D.subarray(0,v),k=D.subarray(v);f=Ji(ne),g=Ji(k),c=mt(ne,f,1),h=mt(k,g,1)}else throw"invalid block type";else{var p=xp(a)+4,m=r[p-4]|r[p-3]<<8,w=p+m;if(w>i){if(o)throw"unexpected EOF";break}s&&n(u+m),e.set(r.subarray(p,w),u),t.b=u+=m,t.p=a=w*8;continue}if(a>d)throw"unexpected EOF"}s&&n(u+131072);for(var V=(1<<f)-1,oe=(1<<g)-1,se=f+g+18;o||a+se<d;){var q=c[Ki(r,a)&V],te=q>>>4;if(a+=q&15,a>d)throw"unexpected EOF";if(!q)throw"invalid length/literal";if(te<256)e[u++]=te;else if(te==256){c=null;break}else{var K=te-254;if(te>264){var I=te-257,pe=Il[I];K=de(r,a,(1<<pe)-1)+Tl[I],a+=pe}var we=h[Ki(r,a)&oe],S=we>>>4;if(!we)throw"invalid distance";a+=we&15;var k=Cp[S];if(S>3){var pe=Dl[S];k+=Ki(r,a)&(1<<pe)-1,a+=pe}if(a>d)throw"unexpected EOF";s&&n(u+131072);for(var b=u+K;u<b;u+=4)e[u]=e[u-k],e[u+1]=e[u+1-k],e[u+2]=e[u+2-k],e[u+3]=e[u+3-k];u=b}}t.l=c,t.p=a,t.b=u,c&&(l=1,t.m=f,t.d=h,t.n=g)}while(!l);return u==e.length?e:Pl(e,0,u)},Rp=function(r){if((r[0]&15)!=8||r[0]>>>4>7||(r[0]<<8|r[1])%31)throw"invalid zlib data";if(r[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function Np(r,e){return Ap((Rp(r),r.subarray(2,-4)),e)}function Mp(r,e){for(var t=r.length,i=new he(r.length+(r.length>>>1)),s=0,o=function(u){i[s++]=u},n=0;n<t;++n){if(s+5>i.length){var l=new he(s+8+(t-n<<1));l.set(i),i=l}var a=r.charCodeAt(n);a<128||e?o(a):a<2048?(o(192|a>>>6),o(128|a&63)):a>55295&&a<57344?(a=65536+(a&1047552)|r.charCodeAt(++n)&1023,o(240|a>>>18),o(128|a>>>12&63),o(128|a>>>6&63),o(128|a&63)):(o(224|a>>>12),o(128|a>>>6&63),o(128|a&63))}return Pl(i,0,s)}function Ip(r,e){var t="";if(typeof TextDecoder!="undefined")return new TextDecoder().decode(r);for(var i=0;i<r.length;){var s=r[i++];s<128||e?t+=String.fromCharCode(s):s<224?t+=String.fromCharCode((s&31)<<6|r[i++]&63):s<240?t+=String.fromCharCode((s&15)<<12|(r[i++]&63)<<6|r[i++]&63):(s=((s&15)<<18|(r[i++]&63)<<12|(r[i++]&63)<<6|r[i++]&63)-65536,t+=String.fromCharCode(55296|s>>10,56320|s&1023))}return t}const Sn="v1",Dp=r=>{if(typeof r!="string")return r;try{const e=JSON.parse(r);if(e.timestamp)return e}catch(e){}try{const e=JSON.parse(Ip(Np(Mp(r,!0))));if(e.v===Sn)return e;throw new Error(`These events were packed with packer ${e.v} which is incompatible with current packer ${Sn}.`)}catch(e){throw console.error(e),new Error("Unknown data format.")}};function En(r){let e="";return Object.keys(r).forEach(t=>{e+=`${t}: ${r[t]};`}),e}function ct(r,e=2){let t=String(r);const i=Math.pow(10,e-1);if(r<i)for(;String(i).length>t.length;)t=`0${r}`;return t}const $l=1e3,Lr=60*$l,xn=60*Lr;function ti(r){if(r<=0)return"00:00";const e=Math.floor(r/xn);r=r%xn;const t=Math.floor(r/Lr);r=r%Lr;const i=Math.floor(r/$l);return e?`${ct(e)}:${ct(t)}:${ct(i)}`:`${ct(t)}:${ct(i)}`}function Op(r){return r.requestFullscreen?r.requestFullscreen():r.mozRequestFullScreen?r.mozRequestFullScreen():r.webkitRequestFullscreen?r.webkitRequestFullscreen():r.msRequestFullscreen?r.msRequestFullscreen():Promise.resolve()}function _p(){return document.exitFullscreen?document.exitFullscreen():document.mozExitFullscreen?document.mozExitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen?document.msExitFullscreen():Promise.resolve()}function An(){let r=!1;return["fullscreen","webkitIsFullScreen","mozFullScreen","msFullscreenElement"].forEach(e=>{e in document&&(r=r||!!document[e])}),r}function Tp(r){return document.addEventListener("fullscreenchange",r),document.addEventListener("webkitfullscreenchange",r),document.addEventListener("mozfullscreenchange",r),document.addEventListener("MSFullscreenChange",r),()=>{document.removeEventListener("fullscreenchange",r),document.removeEventListener("webkitfullscreenchange",r),document.removeEventListener("mozfullscreenchange",r),document.removeEventListener("MSFullscreenChange",r)}}function Rn(r){return{"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Undefined]":"undefined","[object Null]":"null","[object Object]":"object"}[Object.prototype.toString.call(r)]}function kp(r){return r.type!==H.IncrementalSnapshot?!1:r.data.source>_.Mutation&&r.data.source<=_.Input}function Pp(r,e){const t=[];let i=r[0].timestamp;for(const s of r)kp(s)&&(s.timestamp-i>e&&t.push([i,s.timestamp]),i=s.timestamp);return t}var Ll=(r=>(r[r.DomContentLoaded=0]="DomContentLoaded",r[r.Load=1]="Load",r[r.FullSnapshot=2]="FullSnapshot",r[r.IncrementalSnapshot=3]="IncrementalSnapshot",r[r.Meta=4]="Meta",r[r.Custom=5]="Custom",r[r.Plugin=6]="Plugin",r))(Ll||{});function $p(r){let e,t,i,s,o,n,l,a,u;return{c(){e=re("div"),t=re("input"),i=ce(),s=re("label"),o=ce(),n=re("span"),l=Le(r[3]),M(t,"type","checkbox"),M(t,"id",r[2]),t.disabled=r[1],M(t,"class","svelte-a6h7w7"),M(s,"for",r[2]),M(s,"class","svelte-a6h7w7"),M(n,"class","label svelte-a6h7w7"),M(e,"class","switch svelte-a6h7w7"),Xe(e,"disabled",r[1])},m(c,h){Me(c,e,h),T(e,t),t.checked=r[0],T(e,i),T(e,s),T(e,o),T(e,n),T(n,l),a||(u=je(t,"change",r[4]),a=!0)},p(c,[h]){h&4&&M(t,"id",c[2]),h&2&&(t.disabled=c[1]),h&1&&(t.checked=c[0]),h&4&&M(s,"for",c[2]),h&8&&ai(l,c[3]),h&2&&Xe(e,"disabled",c[1])},i:gt,o:gt,d(c){c&&Ee(e),a=!1,u()}}}function Lp(r,e,t){let{disabled:i}=e,{checked:s}=e,{id:o}=e,{label:n}=e;function l(){s=this.checked,t(0,s)}return r.$$set=a=>{"disabled"in a&&t(1,i=a.disabled),"checked"in a&&t(0,s=a.checked),"id"in a&&t(2,o=a.id),"label"in a&&t(3,n=a.label)},[s,i,o,n,l]}class Fp extends Vr{constructor(e){super(),zr(this,e,Lp,$p,Fr,{disabled:1,checked:0,id:2,label:3})}}function Nn(r,e,t){const i=r.slice();return i[38]=e[t],i}function Mn(r,e,t){const i=r.slice();return i[41]=e[t],i}function In(r,e,t){const i=r.slice();return i[44]=e[t],i}function Dn(r){let e,t,i,s=ti(r[6])+"",o,n,l,a,u,c,h,f,g,d,A=ti(r[8].totalTime)+"",p,m,w,v,x,R,D,Z,I,J,z,fe,ae,q=ze(r[13]),L=[];for(let S=0;S<q.length;S+=1)L[S]=On(In(r,q,S));let ne=ze(r[9]),k=[];for(let S=0;S<ne.length;S+=1)k[S]=_n(Mn(r,ne,S));function V(S,b){return S[7]==="playing"?Up:Bp}let oe=V(r),se=oe(r),te=ze(r[3]),K=[];for(let S=0;S<te.length;S+=1)K[S]=Tn(Nn(r,te,S));function pe(S){r[29](S)}let we={id:"skip",disabled:r[10]==="skipping",label:"skip inactive"};return r[0]!==void 0&&(we.checked=r[0]),D=new Fp({props:we}),$e.push(()=>na(D,"checked",pe)),{c(){e=re("div"),t=re("div"),i=re("span"),o=Le(s),n=ce(),l=re("div"),a=re("div"),u=ce();for(let S=0;S<L.length;S+=1)L[S].c();c=ce();for(let S=0;S<k.length;S+=1)k[S].c();h=ce(),f=re("div"),g=ce(),d=re("span"),p=Le(A),m=ce(),w=re("div"),v=re("button"),se.c(),x=ce();for(let S=0;S<K.length;S+=1)K[S].c();R=ce(),Gn(D.$$.fragment),I=ce(),J=re("button"),J.innerHTML=`<svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16"><defs><style type="text/css"></style></defs><path d="M916 380c-26.4 0-48-21.6-48-48L868 223.2 613.6 477.6c-18.4
|
|
81
|
-
18.4-48.8 18.4-68 0-18.4-18.4-18.4-48.8 0-68L800 156 692 156c-26.4
|
|
82
|
-
0-48-21.6-48-48 0-26.4 21.6-48 48-48l224 0c26.4 0 48 21.6 48 48l0
|
|
83
|
-
224C964 358.4 942.4 380 916 380zM231.2 860l108.8 0c26.4 0 48 21.6 48
|
|
84
|
-
48s-21.6 48-48 48l-224 0c-26.4 0-48-21.6-48-48l0-224c0-26.4 21.6-48
|
|
85
|
-
48-48 26.4 0 48 21.6 48 48L164 792l253.6-253.6c18.4-18.4 48.8-18.4
|
|
86
|
-
68 0 18.4 18.4 18.4 48.8 0 68L231.2 860z"></path></svg>`,M(i,"class","rr-timeline__time svelte-189zk2r"),M(a,"class","rr-progress__step svelte-189zk2r"),ee(a,"width",r[12]),M(f,"class","rr-progress__handler svelte-189zk2r"),ee(f,"left",r[12]),M(l,"class","rr-progress svelte-189zk2r"),Xe(l,"disabled",r[10]==="skipping"),M(d,"class","rr-timeline__time svelte-189zk2r"),M(t,"class","rr-timeline svelte-189zk2r"),M(v,"class","svelte-189zk2r"),M(J,"class","svelte-189zk2r"),M(w,"class","rr-controller__btns svelte-189zk2r"),M(e,"class","rr-controller svelte-189zk2r")},m(S,b){Me(S,e,b),T(e,t),T(t,i),T(i,o),T(t,n),T(t,l),T(l,a),T(l,u);for(let y=0;y<L.length;y+=1)L[y]&&L[y].m(l,null);T(l,c);for(let y=0;y<k.length;y+=1)k[y]&&k[y].m(l,null);T(l,h),T(l,f),r[27](l),T(t,g),T(t,d),T(d,p),T(e,m),T(e,w),T(w,v),se.m(v,null),T(w,x);for(let y=0;y<K.length;y+=1)K[y]&&K[y].m(w,null);T(w,R),Br(D,w,null),T(w,I),T(w,J),z=!0,fe||(ae=[je(l,"click",r[15]),je(l,"keydown",r[16]),je(v,"click",r[4]),je(J,"click",r[30])],fe=!0)},p(S,b){if((!z||b[0]&64)&&s!==(s=ti(S[6])+"")&&ai(o,s),(!z||b[0]&4096)&&ee(a,"width",S[12]),b[0]&8192){q=ze(S[13]);let E;for(E=0;E<q.length;E+=1){const $=In(S,q,E);L[E]?L[E].p($,b):(L[E]=On($),L[E].c(),L[E].m(l,c))}for(;E<L.length;E+=1)L[E].d(1);L.length=q.length}if(b[0]&512){ne=ze(S[9]);let E;for(E=0;E<ne.length;E+=1){const $=Mn(S,ne,E);k[E]?k[E].p($,b):(k[E]=_n($),k[E].c(),k[E].m(l,h))}for(;E<k.length;E+=1)k[E].d(1);k.length=ne.length}if((!z||b[0]&4096)&&ee(f,"left",S[12]),(!z||b[0]&1024)&&Xe(l,"disabled",S[10]==="skipping"),(!z||b[0]&256)&&A!==(A=ti(S[8].totalTime)+"")&&ai(p,A),oe!==(oe=V(S))&&(se.d(1),se=oe(S),se&&(se.c(),se.m(v,null))),b[0]&1066){te=ze(S[3]);let E;for(E=0;E<te.length;E+=1){const $=Nn(S,te,E);K[E]?K[E].p($,b):(K[E]=Tn($),K[E].c(),K[E].m(w,R))}for(;E<K.length;E+=1)K[E].d(1);K.length=te.length}const y={};b[0]&1024&&(y.disabled=S[10]==="skipping"),!Z&&b[0]&1&&(Z=!0,y.checked=S[0],ia(()=>Z=!1)),D.$set(y)},i(S){z||(Ae(D.$$.fragment,S),z=!0)},o(S){Je(D.$$.fragment,S),z=!1},d(S){S&&Ee(e),Pi(L,S),Pi(k,S),r[27](null),se.d(),Pi(K,S),Ur(D),fe=!1,rt(ae)}}}function On(r){let e,t;return{c(){e=re("div"),M(e,"title",t=r[44].name),ee(e,"width",r[44].width),ee(e,"height","4px"),ee(e,"position","absolute"),ee(e,"background",r[44].background),ee(e,"left",r[44].position)},m(i,s){Me(i,e,s)},p(i,s){s[0]&8192&&t!==(t=i[44].name)&&M(e,"title",t),s[0]&8192&&ee(e,"width",i[44].width),s[0]&8192&&ee(e,"background",i[44].background),s[0]&8192&&ee(e,"left",i[44].position)},d(i){i&&Ee(e)}}}function _n(r){let e,t;return{c(){e=re("div"),M(e,"title",t=r[41].name),ee(e,"width","10px"),ee(e,"height","5px"),ee(e,"position","absolute"),ee(e,"top","2px"),ee(e,"transform","translate(-50%, -50%)"),ee(e,"background",r[41].background),ee(e,"left",r[41].position)},m(i,s){Me(i,e,s)},p(i,s){s[0]&512&&t!==(t=i[41].name)&&M(e,"title",t),s[0]&512&&ee(e,"background",i[41].background),s[0]&512&&ee(e,"left",i[41].position)},d(i){i&&Ee(e)}}}function Bp(r){let e,t;return{c(){e=li("svg"),t=li("path"),M(t,"d",`M170.65984 896l0-768 640 384zM644.66944
|
|
87
|
-
512l-388.66944-233.32864 0 466.65728z`),M(e,"class","icon"),M(e,"viewBox","0 0 1024 1024"),M(e,"version","1.1"),M(e,"xmlns","http://www.w3.org/2000/svg"),M(e,"xmlns:xlink","http://www.w3.org/1999/xlink"),M(e,"width","16"),M(e,"height","16")},m(i,s){Me(i,e,s),T(e,t)},d(i){i&&Ee(e)}}}function Up(r){let e,t;return{c(){e=li("svg"),t=li("path"),M(t,"d",`M682.65984 128q53.00224 0 90.50112 37.49888t37.49888 90.50112l0
|
|
157
|
+
***************************************************************************** */function hl(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i,s,n=r.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(u){s={error:u}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o}var Er;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Er||(Er={}));var rc={type:"xstate.init"};function yn(e){return e===void 0?[]:[].concat(e)}function yr(e){return{type:"xstate.assign",assignment:e}}function dl(e,t){return typeof(e=typeof e=="string"&&t&&t[e]?t[e]:e)=="string"?{type:e}:typeof e=="function"?{type:e.name,exec:e}:e}function Ui(e){return function(t){return e===t}}function ic(e){return typeof e=="string"?{type:e}:e}function pl(e,t){return{value:e,context:t,actions:[],changed:!1,matches:Ui(e)}}function ml(e,t,r){var i=t,s=!1;return[e.filter((function(n){if(n.type==="xstate.assign"){s=!0;var o=Object.assign({},i);return typeof n.assignment=="function"?o=n.assignment(i,r):Object.keys(n.assignment).forEach((function(u){o[u]=typeof n.assignment[u]=="function"?n.assignment[u](i,r):n.assignment[u]})),i=o,!1}return!0})),i,s]}function sc(e,t){t===void 0&&(t={});var r=hl(ml(yn(e.states[e.initial].entry).map((function(o){return dl(o,t.actions)})),e.context,rc),2),i=r[0],s=r[1],n={config:e,_options:t,initialState:{value:e.initial,actions:i,context:s,matches:Ui(e.initial)},transition:function(o,u){var a,c,l=typeof o=="string"?{value:o,context:e.context}:o,d=l.value,f=l.context,h=ic(u),m=e.states[d];if(m.on){var p=yn(m.on[h.type]);try{for(var g=(function(F){var se=typeof Symbol=="function"&&Symbol.iterator,Re=se&&F[se],j=0;if(Re)return Re.call(F);if(F&&typeof F.length=="number")return{next:function(){return F&&j>=F.length&&(F=void 0),{value:F&&F[j++],done:!F}}};throw new TypeError(se?"Object is not iterable.":"Symbol.iterator is not defined.")})(p),y=g.next();!y.done;y=g.next()){var b=y.value;if(b===void 0)return pl(d,f);var _=typeof b=="string"?{target:b}:b,S=_.target,v=_.actions,w=v===void 0?[]:v,E=_.cond,C=E===void 0?function(){return!0}:E,A=S===void 0,N=S!=null?S:d,U=e.states[N];if(C(f,h)){var T=hl(ml((A?yn(w):[].concat(m.exit,w,U.entry).filter((function(F){return F}))).map((function(F){return dl(F,n._options.actions)})),f,h),3),x=T[0],me=T[1],ge=T[2],ie=S!=null?S:d;return{value:ie,context:me,actions:x,changed:S!==d||x.length>0||ge,matches:Ui(ie)}}}}catch(F){a={error:F}}finally{try{y&&!y.done&&(c=g.return)&&c.call(g)}finally{if(a)throw a.error}}}return pl(d,f)}};return n}var gl=function(e,t){return e.actions.forEach((function(r){var i=r.exec;return i&&i(e.context,t)}))};function nc(e){var t=e.initialState,r=Er.NotStarted,i=new Set,s={_machine:e,send:function(n){r===Er.Running&&(t=e.transition(t,n),gl(t,ic(n)),i.forEach((function(o){return o(t)})))},subscribe:function(n){return i.add(n),n(t),{unsubscribe:function(){return i.delete(n)}}},start:function(n){if(n){var o=typeof n=="object"?n:{context:e.config.context,value:n};t={value:o.value,actions:[],context:o.context,matches:Ui(o.value)}}return r=Er.Running,gl(t,rc),s},stop:function(){return r=Er.Stopped,i.clear(),s},get state(){return t},get status(){return r}};return s}function Xd(e,t){for(let r=e.length-1;r>=0;r--){const i=e[r];if(i.type===ue.Meta&&i.timestamp<=t)return e.slice(r)}return e}function Qd(e,{getCastFn:t,applyEventsSynchronously:r,emitter:i}){const s=sc({id:"player",context:e,initial:"paused",states:{playing:{on:{PAUSE:{target:"paused",actions:["pause"]},CAST_EVENT:{target:"playing",actions:"castEvent"},END:{target:"paused",actions:["resetLastPlayedEvent","pause"]},ADD_EVENT:{target:"playing",actions:["addEvent"]}}},paused:{on:{PLAY:{target:"playing",actions:["recordTimeOffset","play"]},CAST_EVENT:{target:"paused",actions:"castEvent"},TO_LIVE:{target:"live",actions:["startLive"]},ADD_EVENT:{target:"paused",actions:["addEvent"]}}},live:{on:{ADD_EVENT:{target:"live",actions:["addEvent"]},CAST_EVENT:{target:"live",actions:["castEvent"]}}}}},{actions:{castEvent:yr({lastPlayedEvent:(n,o)=>o.type==="CAST_EVENT"?o.payload.event:n.lastPlayedEvent}),recordTimeOffset:yr((n,o)=>{let u=n.timeOffset;return"payload"in o&&"timeOffset"in o.payload&&(u=o.payload.timeOffset),Se(Q({},n),{timeOffset:u,baselineTime:n.events[0].timestamp+u})}),play(n){var o;const{timer:u,events:a,baselineTime:c,lastPlayedEvent:l}=n;u.clear();for(const m of a)fl(m,c);const d=Xd(a,c);let f=l==null?void 0:l.timestamp;(l==null?void 0:l.type)===ue.IncrementalSnapshot&&l.data.source===H.MouseMove&&(f=l.timestamp+((o=l.data.positions[0])==null?void 0:o.timeOffset)),c<(f||0)&&i.emit(X.PlayBack);const h=new Array;for(const m of d)if(!(f&&f<c&&(m.timestamp<=f||m===l)))if(m.timestamp<c)h.push(m);else{const p=t(m,!1);u.addAction({doAction:()=>{p()},delay:m.delay})}r(h),i.emit(X.Flush),u.start()},pause(n){n.timer.clear()},resetLastPlayedEvent:yr(n=>Se(Q({},n),{lastPlayedEvent:null})),startLive:yr({baselineTime:(n,o)=>(n.timer.start(),o.type==="TO_LIVE"&&o.payload.baselineTime?o.payload.baselineTime:Date.now())}),addEvent:yr((n,o)=>{const{baselineTime:u,timer:a,events:c}=n;if(o.type==="ADD_EVENT"){const{event:l}=o.payload;fl(l,u);let d=c.length-1;if(!c[d]||c[d].timestamp<=l.timestamp)c.push(l);else{let m=-1,p=0;for(;p<=d;){const g=Math.floor((p+d)/2);c[g].timestamp<=l.timestamp?p=g+1:d=g-1}m===-1&&(m=p),c.splice(m,0,l)}const f=l.timestamp<u,h=t(l,f);f?h():a.isActive()&&a.addAction({doAction:()=>{h()},delay:l.delay})}return Se(Q({},n),{events:c})})}});return nc(s)}function Kd(e){const t=sc({id:"speed",context:e,initial:"normal",states:{normal:{on:{FAST_FORWARD:{target:"skipping",actions:["recordSpeed","setSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}},skipping:{on:{BACK_TO_NORMAL:{target:"normal",actions:["restoreSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}}}},{actions:{setSpeed:(r,i)=>{"payload"in i&&r.timer.setSpeed(i.payload.speed)},recordSpeed:yr({normalSpeed:r=>r.timer.speed}),restoreSpeed:r=>{r.timer.setSpeed(r.normalSpeed)}}});return nc(t)}const vl=e=>[`.${e} { background: currentColor }`,"noscript { display: none !important; }"],yl=new Map;function oc(e,t){let r=yl.get(e);return r||(r=new Map,yl.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}function Wt(e,t,r){return async i=>{if(i&&typeof i=="object"&&"rr_type"in i)if(r&&(r.isUnchanged=!1),i.rr_type==="ImageBitmap"&&"args"in i){const s=await Wt(e,t,r)(i.args);return await createImageBitmap.apply(null,s)}else if("index"in i){if(r||t===null)return i;const{rr_type:s,index:n}=i;return oc(t,s)[n]}else if("args"in i){const{rr_type:s,args:n}=i,o=window[s];return new o(...await Promise.all(n.map(Wt(e,t,r))))}else{if("base64"in i)return jd(i.base64);if("src"in i){const s=e.get(i.src);if(s)return s;{const n=new Image;return n.src=i.src,e.set(i.src,n),n}}else if("data"in i&&i.rr_type==="Blob"){const s=await Promise.all(i.data.map(Wt(e,t,r)));return new Blob(s,{type:i.type})}}else if(Array.isArray(i))return await Promise.all(i.map(Wt(e,t,r)));return i}}function Zd(e,t){try{return t===Fi.WebGL?e.getContext("webgl")||e.getContext("experimental-webgl"):e.getContext("webgl2")}catch(r){return null}}const ep=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject"];function tp(e,t){if(!(t!=null&&t.constructor))return;const{name:r}=t.constructor;if(!ep.includes(r))return;const i=oc(e,r);i.includes(t)||i.push(t)}async function rp({mutation:e,target:t,type:r,imageMap:i,errorHandler:s}){try{const n=Zd(t,r);if(!n)return;if(e.setter){n[e.property]=e.args[0];return}const o=n[e.property],u=await Promise.all(e.args.map(Wt(i,n))),a=o.apply(n,u);tp(n,a);const c=!1}catch(n){s(e,n)}}async function ip({event:e,mutations:t,target:r,imageMap:i,errorHandler:s}){const n=r.getContext("2d");if(!n){s(t[0],new Error("Canvas context is null"));return}const o=t.map(async a=>Promise.all(a.args.map(Wt(i,n))));(await Promise.all(o)).forEach((a,c)=>{const l=t[c];try{if(l.setter){n[l.property]=l.args[0];return}const d=n[l.property];l.property==="drawImage"&&typeof l.args[0]=="string"?(i.get(e),d.apply(n,l.args)):d.apply(n,a)}catch(d){s(l,d)}})}async function wl({event:e,mutation:t,target:r,imageMap:i,canvasEventMap:s,errorHandler:n}){try{const o=s.get(e)||t,u="commands"in o?o.commands:[o];if([Fi.WebGL,Fi.WebGL2].includes(t.type)){for(let a=0;a<u.length;a++){const c=u[a];await rp({mutation:c,type:t.type,target:r,imageMap:i,errorHandler:n})}return}await ip({event:e,mutations:u,target:r,imageMap:i,errorHandler:n})}catch(o){n(t,o)}}class sp{constructor(t){I(this,"mediaMap",new Map),I(this,"warn"),I(this,"service"),I(this,"speedService"),I(this,"emitter"),I(this,"getCurrentTime"),I(this,"metadataCallbackMap",new Map),this.warn=t.warn,this.service=t.service,this.speedService=t.speedService,this.emitter=t.emitter,this.getCurrentTime=t.getCurrentTime,this.emitter.on(X.Start,this.start.bind(this)),this.emitter.on(X.SkipStart,this.start.bind(this)),this.emitter.on(X.Pause,this.pause.bind(this)),this.emitter.on(X.Finish,this.pause.bind(this)),this.speedService.subscribe(()=>{this.syncAllMediaElements()})}syncAllMediaElements(t={pause:!1}){this.mediaMap.forEach((r,i)=>{this.syncTargetWithState(i),t.pause&&i.pause()})}start(){this.syncAllMediaElements()}pause(){this.syncAllMediaElements({pause:!0})}seekTo({time:t,target:r,mediaState:i}){if(i.isPlaying){const n=(t-i.lastInteractionTimeOffset)/1e3*i.playbackRate,o="duration"in r&&r.duration;if(Number.isNaN(o)){this.waitForMetadata(r);return}let u=i.currentTimeAtLastInteraction+n;r.loop&&o!==!1&&(u=u%o),r.currentTime=u}else r.pause(),r.currentTime=i.currentTimeAtLastInteraction}waitForMetadata(t){if(this.metadataCallbackMap.has(t)||!("addEventListener"in t))return;const r=()=>{this.metadataCallbackMap.delete(t);const i=this.mediaMap.get(t);i&&this.seekTo({time:this.getCurrentTime(),target:t,mediaState:i})};this.metadataCallbackMap.set(t,r),t.addEventListener("loadedmetadata",r,{once:!0})}getMediaStateFromMutation({target:t,timeOffset:r,mutation:i}){var h,m,p,g,y;const s=this.mediaMap.get(t),{type:n,playbackRate:o,currentTime:u,muted:a,volume:c,loop:l}=i;return{isPlaying:n===zn.Play||n!==zn.Pause&&((s==null?void 0:s.isPlaying)||t.getAttribute("autoplay")!==null),currentTimeAtLastInteraction:(h=u!=null?u:s==null?void 0:s.currentTimeAtLastInteraction)!=null?h:0,lastInteractionTimeOffset:r,playbackRate:(m=o!=null?o:s==null?void 0:s.playbackRate)!=null?m:1,volume:(p=c!=null?c:s==null?void 0:s.volume)!=null?p:1,muted:(g=a!=null?a:s==null?void 0:s.muted)!=null?g:t.getAttribute("muted")===null,loop:(y=l!=null?l:s==null?void 0:s.loop)!=null?y:t.getAttribute("loop")===null}}syncTargetWithState(t){const r=this.mediaMap.get(t);if(!r)return;const{muted:i,loop:s,volume:n,isPlaying:o}=r,u=this.service.state.matches("paused"),a=r.playbackRate*this.speedService.state.context.timer.speed;try{this.seekTo({time:this.getCurrentTime(),target:t,mediaState:r}),t.volume!==n&&(t.volume=n),t.muted=i,t.loop=s,t.playbackRate!==a&&(t.playbackRate=a),o&&!u?t.play():t.pause()}catch(c){this.warn(`Failed to replay media interactions: ${c.message||c}`)}}addMediaElements(t,r,i){if(!["AUDIO","VIDEO"].includes(t.nodeName))return;const s=t,n=i.getMeta(s);if(!n||!("attributes"in n))return;const o=this.service.state.matches("paused"),u=n.attributes;let a=!1;u.rr_mediaState?a=u.rr_mediaState==="played":a=s.getAttribute("autoplay")!==null,a&&o&&s.pause();let c=1;typeof u.rr_mediaPlaybackRate=="number"&&(c=u.rr_mediaPlaybackRate);let l=!1;typeof u.rr_mediaMuted=="boolean"?l=u.rr_mediaMuted:l=s.getAttribute("muted")!==null;let d=!1;typeof u.rr_mediaLoop=="boolean"?d=u.rr_mediaLoop:d=s.getAttribute("loop")!==null;let f=1;typeof u.rr_mediaVolume=="number"&&(f=u.rr_mediaVolume);let h=0;typeof u.rr_mediaCurrentTime=="number"&&(h=u.rr_mediaCurrentTime),this.mediaMap.set(s,{isPlaying:a,currentTimeAtLastInteraction:h,lastInteractionTimeOffset:r,playbackRate:c,volume:f,muted:l,loop:d}),this.syncTargetWithState(s)}mediaMutation({target:t,timeOffset:r,mutation:i}){this.mediaMap.set(t,this.getMediaStateFromMutation({target:t,timeOffset:r,mutation:i})),this.syncTargetWithState(t)}isSupportedMediaElement(t){return["AUDIO","VIDEO"].includes(t.nodeName)}reset(){this.mediaMap.clear()}}function bi(e,t){if(e.nodeName!=="DIALOG"||e instanceof ft)return;const r=e,i=r.open,s=i&&r.matches("dialog:modal"),n=r.getAttribute("rr_open_mode"),o=typeof(t==null?void 0:t.attributes.open)=="string"||typeof r.getAttribute("open")=="string",u=n==="modal";if(!(i&&!(s&&n==="non-modal"||!s&&u))){if(!r.isConnected){console.warn("dialog is not attached to the dom",r);return}i&&r.close(),o&&(u?r.showModal():r.show())}}function np(e,t){if(e.nodeName!=="DIALOG"||e instanceof ft)return;const r=e;if(!r.isConnected){console.warn("dialog is not attached to the dom",r);return}t.attributes.open===null&&(r.removeAttribute("open"),r.removeAttribute("rr_open_mode"))}const op=tc||Hd,bl="[replayer]",_i="__rrweb-injected-style__",wn={duration:500,lineCap:"round",lineWidth:3,strokeStyle:"red"};function _l(e){return e.type==ue.IncrementalSnapshot&&(e.data.source==H.TouchMove||e.data.source==H.MouseInteraction&&e.data.type==ye.TouchStart)}class ap{constructor(t,r){if(I(this,"wrapper"),I(this,"iframe"),I(this,"service"),I(this,"speedService"),I(this,"config"),I(this,"usingVirtualDom",!1),I(this,"virtualDom",new Fr),I(this,"mouse"),I(this,"mouseTail",null),I(this,"tailPositions",[]),I(this,"emitter",op()),I(this,"nextUserInteractionEvent"),I(this,"legacy_missingNodeRetryMap",{}),I(this,"cache",Na()),I(this,"imageMap",new Map),I(this,"canvasEventMap",new Map),I(this,"mirror",Ou()),I(this,"styleMirror",new Vd),I(this,"mediaManager"),I(this,"firstFullSnapshot",null),I(this,"newDocumentQueue",[]),I(this,"mousePos",null),I(this,"touchActive",null),I(this,"lastMouseDownEvent",null),I(this,"lastHoveredRootNode"),I(this,"lastSelectionData",null),I(this,"constructedStyleMutations",[]),I(this,"adoptedStyleSheets",[]),I(this,"handleResize",u=>{this.iframe.style.display="inherit";for(const a of[this.mouseTail,this.iframe])a&&(a.setAttribute("width",String(u.width)),a.setAttribute("height",String(u.height)))}),I(this,"applyEventsSynchronously",u=>{for(const a of u){switch(a.type){case ue.DomContentLoaded:case ue.Load:case ue.Custom:continue;case ue.FullSnapshot:case ue.Meta:case ue.Plugin:case ue.IncrementalSnapshot:break}this.getCastFn(a,!0)()}}),I(this,"getCastFn",(u,a=!1)=>{let c;switch(u.type){case ue.DomContentLoaded:case ue.Load:break;case ue.Custom:c=()=>{this.emitter.emit(X.CustomEvent,u)};break;case ue.Meta:c=()=>this.emitter.emit(X.Resize,{width:u.data.width,height:u.data.height});break;case ue.FullSnapshot:c=()=>{var d;if(this.firstFullSnapshot){if(this.firstFullSnapshot===u){this.firstFullSnapshot=!0;return}}else this.firstFullSnapshot=!0;this.mediaManager.reset(),this.styleMirror.reset(),this.rebuildFullSnapshot(u,a),(d=this.iframe.contentWindow)==null||d.scrollTo(u.data.initialOffset)};break;case ue.IncrementalSnapshot:c=()=>{if(this.applyIncremental(u,a),!a&&this.config.skipInactive&&!this.nextUserInteractionEvent){for(const d of this.service.state.context.events)if(!(d.timestamp<=u.timestamp)&&this.isUserInteraction(d)){d.delay-u.delay>this.config.inactivePeriodThreshold*this.speedService.state.context.timer.speed&&(this.nextUserInteractionEvent=d);break}if(this.nextUserInteractionEvent){const d=this.nextUserInteractionEvent.delay-u.delay;this.play(this.getCurrentTime()+d),this.nextUserInteractionEvent=null}}};break}return()=>{c&&c();for(const f of this.config.plugins||[])f.handler&&f.handler(u,a,{replayer:this});this.service.send({type:"CAST_EVENT",payload:{event:u}});const d=this.service.state.context.events.length-1;if(!this.config.liveMode&&u===this.service.state.context.events[d]){const f=()=>{d<this.service.state.context.events.length-1||(this.backToNormal(),this.service.send("END"),this.emitter.emit(X.Finish))};let h=50;u.type===ue.IncrementalSnapshot&&u.data.source===H.MouseMove&&u.data.positions.length&&(h+=Math.max(0,-u.data.positions[0].timeOffset)),setTimeout(f,h)}this.emitter.emit(X.EventCast,u)}}),!(r!=null&&r.liveMode)&&t.length<2)throw new Error("Replayer need at least 2 events.");const i={speed:1,maxSpeed:360,root:document.body,loadTimeout:0,skipInactive:!1,inactivePeriodThreshold:10*1e3,showWarning:!0,showDebug:!1,blockClass:"rr-block",liveMode:!1,insertStyleRules:[],triggerFocus:!0,UNSAFE_replayCanvas:!1,pauseAnimation:!0,mouseTail:wn,useVirtualDom:!0,logger:console};this.config=Object.assign({},i,r),this.handleResize=this.handleResize.bind(this),this.getCastFn=this.getCastFn.bind(this),this.applyEventsSynchronously=this.applyEventsSynchronously.bind(this),this.emitter.on(X.Resize,this.handleResize),this.setupDom();for(const u of this.config.plugins||[])u.getMirror&&u.getMirror({nodeMirror:this.mirror});this.emitter.on(X.Flush,()=>{if(this.usingVirtualDom){const u={mirror:this.mirror,applyCanvas:(a,c,l)=>{wl({event:a,mutation:c,target:l,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})},applyInput:this.applyInput.bind(this),applyScroll:this.applyScroll.bind(this),applyStyleSheetMutation:(a,c)=>{a.source===H.StyleSheetRule?this.applyStyleSheetRule(a,c):a.source===H.StyleDeclaration&&this.applyStyleDeclaration(a,c)},afterAppend:(a,c)=>{for(const l of this.config.plugins||[])l.onBuild&&l.onBuild(a,{id:c,replayer:this})}};if(this.iframe.contentDocument)try{Ii(this.iframe.contentDocument,this.virtualDom,u,this.virtualDom.mirror)}catch(a){console.warn(a)}if(this.virtualDom.destroyTree(),this.usingVirtualDom=!1,Object.keys(this.legacy_missingNodeRetryMap).length)for(const a in this.legacy_missingNodeRetryMap)try{const c=this.legacy_missingNodeRetryMap[a],l=Li(c.node,this.mirror,this.virtualDom.mirror);Ii(l,c.node,u,this.virtualDom.mirror),c.node=l}catch(c){this.warn(c)}this.constructedStyleMutations.forEach(a=>{this.applyStyleSheetMutation(a)}),this.constructedStyleMutations=[],this.adoptedStyleSheets.forEach(a=>{this.applyAdoptedStyleSheet(a)}),this.adoptedStyleSheets=[]}if(this.mousePos&&(this.moveAndHover(this.mousePos.x,this.mousePos.y,this.mousePos.id,!0,this.mousePos.debugData),this.mousePos=null),this.touchActive===!0?this.mouse.classList.add("touch-active"):this.touchActive===!1&&this.mouse.classList.remove("touch-active"),this.touchActive=null,this.lastMouseDownEvent){const[u,a]=this.lastMouseDownEvent;u.dispatchEvent(a)}this.lastMouseDownEvent=null,this.lastSelectionData&&(this.applySelection(this.lastSelectionData),this.lastSelectionData=null)}),this.emitter.on(X.PlayBack,()=>{this.firstFullSnapshot=null,this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset()});const s=new Jd([],{speed:this.config.speed});this.service=Qd({events:t.map(u=>r&&r.unpackFn?r.unpackFn(u):u).sort((u,a)=>u.timestamp-a.timestamp),timer:s,timeOffset:0,baselineTime:0,lastPlayedEvent:null},{getCastFn:this.getCastFn,applyEventsSynchronously:this.applyEventsSynchronously,emitter:this.emitter}),this.service.start(),this.service.subscribe(u=>{this.emitter.emit(X.StateChange,{player:u})}),this.speedService=Kd({normalSpeed:-1,timer:s}),this.speedService.start(),this.speedService.subscribe(u=>{this.emitter.emit(X.StateChange,{speed:u})}),this.mediaManager=new sp({warn:this.warn.bind(this),service:this.service,speedService:this.speedService,emitter:this.emitter,getCurrentTime:this.getCurrentTime.bind(this)});const n=this.service.state.context.events.find(u=>u.type===ue.Meta),o=this.service.state.context.events.find(u=>u.type===ue.FullSnapshot);if(n){const{width:u,height:a}=n.data;setTimeout(()=>{this.emitter.emit(X.Resize,{width:u,height:a})},0)}o&&setTimeout(()=>{var u;this.firstFullSnapshot||(this.firstFullSnapshot=o,this.rebuildFullSnapshot(o),(u=this.iframe.contentWindow)==null||u.scrollTo(o.data.initialOffset))},1),this.service.state.context.events.find(_l)&&this.mouse.classList.add("touch-device")}get timer(){return this.service.state.context.timer}on(t,r){return this.emitter.on(t,r),this}off(t,r){return this.emitter.off(t,r),this}setConfig(t){Object.keys(t).forEach(r=>{t[r],this.config[r]=t[r]}),this.config.skipInactive||this.backToNormal(),typeof t.speed!="undefined"&&this.speedService.send({type:"SET_SPEED",payload:{speed:t.speed}}),typeof t.mouseTail!="undefined"&&(t.mouseTail===!1?this.mouseTail&&(this.mouseTail.style.display="none"):(this.mouseTail||(this.mouseTail=document.createElement("canvas"),this.mouseTail.width=Number.parseFloat(this.iframe.width),this.mouseTail.height=Number.parseFloat(this.iframe.height),this.mouseTail.classList.add("replayer-mouse-tail"),this.wrapper.insertBefore(this.mouseTail,this.iframe)),this.mouseTail.style.display="inherit"))}getMetaData(){const t=this.service.state.context.events[0],r=this.service.state.context.events[this.service.state.context.events.length-1];return{startTime:t.timestamp,endTime:r.timestamp,totalTime:r.timestamp-t.timestamp}}getCurrentTime(){return this.timer.timeOffset+this.getTimeOffset()}getTimeOffset(){const{baselineTime:t,events:r}=this.service.state.context;return t-r[0].timestamp}getMirror(){return this.mirror}play(t=0){var r,i;this.service.state.matches("paused")?this.service.send({type:"PLAY",payload:{timeOffset:t}}):(this.service.send({type:"PAUSE"}),this.service.send({type:"PLAY",payload:{timeOffset:t}})),(i=(r=this.iframe.contentDocument)==null?void 0:r.getElementsByTagName("html")[0])==null||i.classList.remove("rrweb-paused"),this.emitter.emit(X.Start)}pause(t){var r,i;t===void 0&&this.service.state.matches("playing")&&this.service.send({type:"PAUSE"}),typeof t=="number"&&(this.play(t),this.service.send({type:"PAUSE"})),(i=(r=this.iframe.contentDocument)==null?void 0:r.getElementsByTagName("html")[0])==null||i.classList.add("rrweb-paused"),this.emitter.emit(X.Pause)}resume(t=0){this.warn("The 'resume' was deprecated in 1.0. Please use 'play' method which has the same interface."),this.play(t),this.emitter.emit(X.Resume)}destroy(){this.pause(),this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset(),this.config.root.removeChild(this.wrapper),this.emitter.emit(X.Destroy)}startLive(t){this.service.send({type:"TO_LIVE",payload:{baselineTime:t}})}addEvent(t){const r=this.config.unpackFn?this.config.unpackFn(t):t;_l(r)&&this.mouse.classList.add("touch-device"),Promise.resolve().then(()=>this.service.send({type:"ADD_EVENT",payload:{event:r}}))}enableInteract(){this.iframe.setAttribute("scrolling","auto"),this.iframe.style.pointerEvents="auto"}disableInteract(){this.iframe.setAttribute("scrolling","no"),this.iframe.style.pointerEvents="none"}resetCache(){this.cache=Na()}setupDom(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("replayer-wrapper"),this.config.root.appendChild(this.wrapper),this.mouse=document.createElement("div"),this.mouse.classList.add("replayer-mouse"),this.wrapper.appendChild(this.mouse),this.config.mouseTail!==!1&&(this.mouseTail=document.createElement("canvas"),this.mouseTail.classList.add("replayer-mouse-tail"),this.mouseTail.style.display="inherit",this.wrapper.appendChild(this.mouseTail)),this.iframe=document.createElement("iframe");const t=["allow-same-origin"];this.config.UNSAFE_replayCanvas&&t.push("allow-scripts"),this.iframe.style.display="none",this.iframe.setAttribute("sandbox",t.join(" ")),this.disableInteract(),this.wrapper.appendChild(this.iframe),this.iframe.contentWindow&&this.iframe.contentDocument&&(Yd(this.iframe.contentWindow,this.iframe.contentDocument),qd(this.iframe.contentWindow))}rebuildFullSnapshot(t,r=!1){if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");Object.keys(this.legacy_missingNodeRetryMap).length&&this.warn("Found unresolved missing node map",this.legacy_missingNodeRetryMap),this.legacy_missingNodeRetryMap={};const i=[],s=new Set,n=(a,c)=>{if(a.nodeName==="DIALOG"&&s.add(a),this.collectIframeAndAttachDocument(i,a),this.mediaManager.isSupportedMediaElement(a)){const{events:l}=this.service.state.context;this.mediaManager.addMediaElements(a,t.timestamp-l[0].timestamp,this.mirror)}for(const l of this.config.plugins||[])l.onBuild&&l.onBuild(a,{id:c,replayer:this})};this.usingVirtualDom&&(this.virtualDom.destroyTree(),this.usingVirtualDom=!1),this.mirror.reset(),Lh(t.data.node,{doc:this.iframe.contentDocument,afterAppend:n,cache:this.cache,mirror:this.mirror}),n(this.iframe.contentDocument,t.data.node.id);for(const{mutationInQueue:a,builtNode:c}of i)this.attachDocumentToIframe(a,c),this.newDocumentQueue=this.newDocumentQueue.filter(l=>l!==a);const{documentElement:o,head:u}=this.iframe.contentDocument;this.insertStyleRules(o,u),s.forEach(a=>bi(a)),this.service.state.matches("playing")||this.iframe.contentDocument.getElementsByTagName("html")[0].classList.add("rrweb-paused"),this.emitter.emit(X.FullsnapshotRebuilded,t),r||this.waitForStylesheetLoad(),this.config.UNSAFE_replayCanvas&&this.preloadAllImages()}insertStyleRules(t,r){var i;const s=vl(this.config.blockClass).concat(this.config.insertStyleRules);if(this.config.pauseAnimation&&s.push("html.rrweb-paused *, html.rrweb-paused *:before, html.rrweb-paused *:after { animation-play-state: paused !important; }"),!!s.length)if(this.usingVirtualDom){const n=this.virtualDom.createElement("style");this.virtualDom.mirror.add(n,qn(n,this.virtualDom.unserializedId)),t.insertBefore(n,r),n.rules.push({source:H.StyleSheetRule,adds:s.map((o,u)=>({rule:o,index:u}))})}else{const n=document.createElement("style");t.insertBefore(n,r);for(let o=0;o<s.length;o++)(i=n.sheet)==null||i.insertRule(s[o],o)}}isShadowRoot(t){return t.nodeType===Node.DOCUMENT_FRAGMENT_NODE}insertStyleRulesIntoShadowRoot(t){var s;var r;const i=vl(this.config.blockClass).concat(this.config.insertStyleRules);if(i.length){if(this.usingVirtualDom&&t.getAttribute("id")!==_i){const n=this.virtualDom.createElement("style");this.virtualDom.mirror.add(n,qn(n,this.virtualDom.unserializedId)),n.setAttribute("id",_i),t.insertBefore(n,t.firstChild||null),n.rules.push({source:H.StyleSheetRule,adds:i.map((o,u)=>({rule:o,index:u}))})}else if(this.isShadowRoot(t)&&!t.getElementById(_i)){const n=document.createElement("style");n.id=_i,t.insertBefore(n,(s=t.firstChild)!=null?s:null);for(let o=0;o<i.length;o++)(r=n.sheet)==null||r.insertRule(i[o],o)}}}attachDocumentToIframe(t,r){const i=this.usingVirtualDom?this.virtualDom.mirror:this.mirror,s=[],n=new Set,o=(u,a)=>{u.nodeName==="DIALOG"&&n.add(u),this.collectIframeAndAttachDocument(s,u);const c=i.getMeta(u);if((c==null?void 0:c.type)===It.Element&&(c==null?void 0:c.tagName.toUpperCase())==="HTML"){const{documentElement:l,head:d}=r.contentDocument;this.insertStyleRules(l,d)}if(!this.usingVirtualDom)for(const l of this.config.plugins||[])l.onBuild&&l.onBuild(u,{id:a,replayer:this})};Qr(t.node,{doc:r.contentDocument,mirror:i,hackCss:!0,skipChild:!1,afterAppend:o,cache:this.cache}),o(r.contentDocument,t.node.id);for(const{mutationInQueue:u,builtNode:a}of s)this.attachDocumentToIframe(u,a),this.newDocumentQueue=this.newDocumentQueue.filter(c=>c!==u);n.forEach(u=>bi(u))}collectIframeAndAttachDocument(t,r){if(vn(r,this.mirror)){const i=this.newDocumentQueue.find(s=>s.parentId===this.mirror.getId(r));i&&t.push({mutationInQueue:i,builtNode:r})}}waitForStylesheetLoad(){var t;const r=(t=this.iframe.contentDocument)==null?void 0:t.head;if(r){const i=new Set;let s,n=this.service.state;const o=()=>{n=this.service.state};this.emitter.on(X.Start,o),this.emitter.on(X.Pause,o);const u=()=>{this.emitter.off(X.Start,o),this.emitter.off(X.Pause,o)};r.querySelectorAll('link[rel="stylesheet"]').forEach(a=>{a.sheet||(i.add(a),a.addEventListener("load",()=>{i.delete(a),i.size===0&&s!==-1&&(n.matches("playing")&&this.play(this.getCurrentTime()),this.emitter.emit(X.LoadStylesheetEnd),s&&clearTimeout(s),u())}))}),i.size>0&&(this.service.send({type:"PAUSE"}),this.emitter.emit(X.LoadStylesheetStart),s=setTimeout(()=>{n.matches("playing")&&this.play(this.getCurrentTime()),s=-1,u()},this.config.loadTimeout))}}async preloadAllImages(){const t=[];for(const r of this.service.state.context.events)r.type===ue.IncrementalSnapshot&&r.data.source===H.CanvasMutation&&(t.push(this.deserializeAndPreloadCanvasEvents(r.data,r)),("commands"in r.data?r.data.commands:[r.data]).forEach(s=>{this.preloadImages(s,r)}));return Promise.all(t)}preloadImages(t,r){if(t.property==="drawImage"&&typeof t.args[0]=="string"&&!this.imageMap.has(r)){const i=document.createElement("canvas"),s=i.getContext("2d"),n=s==null?void 0:s.createImageData(i.width,i.height);s==null||s.putImageData(n,0,0)}}async deserializeAndPreloadCanvasEvents(t,r){if(!this.canvasEventMap.has(r)){const i={isUnchanged:!0};if("commands"in t){const s=await Promise.all(t.commands.map(async n=>{const o=await Promise.all(n.args.map(Wt(this.imageMap,null,i)));return Se(Q({},n),{args:o})}));i.isUnchanged===!1&&this.canvasEventMap.set(r,Se(Q({},t),{commands:s}))}else{const s=await Promise.all(t.args.map(Wt(this.imageMap,null,i)));i.isUnchanged===!1&&this.canvasEventMap.set(r,Se(Q({},t),{args:s}))}}}applyIncremental(t,r){var i,s,n;const{data:o}=t;switch(o.source){case H.Mutation:{try{this.applyMutation(o,r)}catch(u){this.warn(`Exception in mutation ${u.message||u}`,o)}break}case H.Drag:case H.TouchMove:case H.MouseMove:if(r){const u=o.positions[o.positions.length-1];this.mousePos={x:u.x,y:u.y,id:u.id,debugData:o}}else o.positions.forEach(u=>{const a={doAction:()=>{this.moveAndHover(u.x,u.y,u.id,r,o)},delay:u.timeOffset+t.timestamp-this.service.state.context.baselineTime};this.timer.addAction(a)}),this.timer.addAction({doAction(){},delay:t.delay-((i=o.positions[0])==null?void 0:i.timeOffset)});break;case H.MouseInteraction:{if(o.id===-1)break;const u=new Event(fh(ye[o.type])),a=this.mirror.getNode(o.id);if(!a)return this.debugNodeNotFound(o,o.id);this.emitter.emit(X.MouseInteraction,{type:o.type,target:a});const{triggerFocus:c}=this.config;switch(o.type){case ye.Blur:"blur"in a&&a.blur();break;case ye.Focus:c&&a.focus&&a.focus({preventScroll:!0});break;case ye.Click:case ye.TouchStart:case ye.TouchEnd:case ye.MouseDown:case ye.MouseUp:r?(o.type===ye.TouchStart?this.touchActive=!0:o.type===ye.TouchEnd&&(this.touchActive=!1),o.type===ye.MouseDown?this.lastMouseDownEvent=[a,u]:o.type===ye.MouseUp&&(this.lastMouseDownEvent=null),this.mousePos={x:o.x||0,y:o.y||0,id:o.id,debugData:o}):(o.type===ye.TouchStart&&(this.tailPositions.length=0),this.moveAndHover(o.x||0,o.y||0,o.id,r,o),o.type===ye.Click?(this.mouse.classList.remove("active"),this.mouse.offsetWidth,this.mouse.classList.add("active")):o.type===ye.TouchStart?(this.mouse.offsetWidth,this.mouse.classList.add("touch-active")):o.type===ye.TouchEnd?this.mouse.classList.remove("touch-active"):a.dispatchEvent(u));break;case ye.TouchCancel:r?this.touchActive=!1:this.mouse.classList.remove("touch-active");break;default:a.dispatchEvent(u)}break}case H.Scroll:{if(o.id===-1)break;if(this.usingVirtualDom){const u=this.virtualDom.mirror.getNode(o.id);if(!u)return this.debugNodeNotFound(o,o.id);u.scrollData=o;break}this.applyScroll(o,r);break}case H.ViewportResize:this.emitter.emit(X.Resize,{width:o.width,height:o.height});break;case H.Input:{if(o.id===-1)break;if(this.usingVirtualDom){const u=this.virtualDom.mirror.getNode(o.id);if(!u)return this.debugNodeNotFound(o,o.id);u.inputData=o;break}this.applyInput(o);break}case H.MediaInteraction:{const u=this.usingVirtualDom?this.virtualDom.mirror.getNode(o.id):this.mirror.getNode(o.id);if(!u)return this.debugNodeNotFound(o,o.id);const a=u,{events:c}=this.service.state.context;this.mediaManager.mediaMutation({target:a,timeOffset:t.timestamp-c[0].timestamp,mutation:o});break}case H.StyleSheetRule:case H.StyleDeclaration:{this.usingVirtualDom?o.styleId?this.constructedStyleMutations.push(o):o.id&&((s=this.virtualDom.mirror.getNode(o.id))==null||s.rules.push(o)):this.applyStyleSheetMutation(o);break}case H.CanvasMutation:{if(!this.config.UNSAFE_replayCanvas)return;if(this.usingVirtualDom){const u=this.virtualDom.mirror.getNode(o.id);if(!u)return this.debugNodeNotFound(o,o.id);u.canvasMutations.push({event:t,mutation:o})}else{const u=this.mirror.getNode(o.id);if(!u)return this.debugNodeNotFound(o,o.id);wl({event:t,mutation:o,target:u,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})}break}case H.Font:{try{const u=new FontFace(o.family,o.buffer?new Uint8Array(JSON.parse(o.fontSource)):o.fontSource,o.descriptors);(n=this.iframe.contentDocument)==null||n.fonts.add(u)}catch(u){this.warn(u)}break}case H.Selection:{if(r){this.lastSelectionData=o;break}this.applySelection(o);break}case H.AdoptedStyleSheet:{this.usingVirtualDom?this.adoptedStyleSheets.push(o):this.applyAdoptedStyleSheet(o);break}}}applyMutation(t,r){if(this.config.useVirtualDom&&!this.usingVirtualDom&&r&&(this.usingVirtualDom=!0,Cd(this.iframe.contentDocument,this.mirror,this.virtualDom),Object.keys(this.legacy_missingNodeRetryMap).length))for(const c in this.legacy_missingNodeRetryMap)try{const l=this.legacy_missingNodeRetryMap[c],d=Qu(l.node,this.virtualDom,this.mirror);d&&(l.node=d)}catch(l){this.warn(l)}const i=this.usingVirtualDom?this.virtualDom.mirror:this.mirror;t.removes=t.removes.filter(c=>i.getNode(c.id)?!0:(this.warnNodeNotFound(t,c.id),!1)),t.removes.forEach(c=>{var l;const d=i.getNode(c.id);if(!d)return;let f=i.getNode(c.parentId);if(!f)return this.warnNodeNotFound(t,c.parentId);if(c.isShadow&&yi(f)&&(f=f.shadowRoot),i.removeNodeFromMap(d),f)try{f.removeChild(d),this.usingVirtualDom&&d.nodeName==="#text"&&f.nodeName==="STYLE"&&((l=f.rules)==null?void 0:l.length)>0&&(f.rules=[])}catch(h){if(h instanceof DOMException)this.warn("parent could not remove child in mutation",f,d,t);else throw h}});const s=Q({},this.legacy_missingNodeRetryMap),n=[],o=c=>{let l=null;return c.nextId&&(l=i.getNode(c.nextId)),c.nextId!==null&&c.nextId!==void 0&&c.nextId!==-1&&!l},u=c=>{var l,d;if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");let f=i.getNode(c.parentId);if(!f)return c.node.type===It.Document?this.newDocumentQueue.push(c):n.push(c);c.node.isShadow&&(yi(f)||f.attachShadow({mode:"open"}),f=f.shadowRoot,this.insertStyleRulesIntoShadowRoot(f));let h=null,m=null;if(c.previousId&&(h=i.getNode(c.previousId)),c.nextId&&(m=i.getNode(c.nextId)),o(c))return n.push(c);if(c.node.rootId&&!i.getNode(c.node.rootId))return;const p=c.node.rootId?i.getNode(c.node.rootId):this.usingVirtualDom?this.virtualDom:this.iframe.contentDocument;if(vn(f,i)){this.attachDocumentToIframe(c,f);return}const g=(_,S)=>{if(!this.usingVirtualDom){bi(_);for(const v of this.config.plugins||[])v.onBuild&&v.onBuild(_,{id:S,replayer:this})}},y=Qr(c.node,{doc:p,mirror:i,skipChild:!0,hackCss:!0,cache:this.cache,afterAppend:g});if(c.previousId===-1||c.nextId===-1){s[c.node.id]={node:y,mutation:c};return}const b=i.getMeta(f);if(b&&b.type===It.Element&&c.node.type===It.Text){const _=Array.isArray(f.childNodes)?f.childNodes:Array.from(f.childNodes);if(b.tagName==="textarea")for(const S of _)S.nodeType===f.TEXT_NODE&&f.removeChild(S);else if(b.tagName==="style"&&_.length===1)for(const S of _)S.nodeType===f.TEXT_NODE&&!i.hasNode(S)&&(y.textContent=S.textContent,f.removeChild(S))}else if((b==null?void 0:b.type)===It.Document){const _=f;c.node.type===It.DocumentType&&((l=_.childNodes[0])==null?void 0:l.nodeType)===Node.DOCUMENT_TYPE_NODE&&_.removeChild(_.childNodes[0]),y.nodeName==="HTML"&&_.documentElement&&_.removeChild(_.documentElement)}if(h&&h.nextSibling&&h.nextSibling.parentNode?f.insertBefore(y,h.nextSibling):m&&m.parentNode?f.contains(m)?f.insertBefore(y,m):f.insertBefore(y,null):f.appendChild(y),g(y,c.node.id),this.usingVirtualDom&&y.nodeName==="#text"&&f.nodeName==="STYLE"&&((d=f.rules)==null?void 0:d.length)>0&&(f.rules=[]),vn(y,this.mirror)){const _=this.mirror.getId(y),S=this.newDocumentQueue.find(v=>v.parentId===_);S&&(this.attachDocumentToIframe(S,y),this.newDocumentQueue=this.newDocumentQueue.filter(v=>v!==S))}(c.previousId||c.nextId)&&this.legacy_resolveMissingNode(s,f,y,c)};t.adds.forEach(c=>{u(c)});const a=Date.now();for(;n.length;){const c=zd(n);if(n.length=0,Date.now()-a>500){this.warn("Timeout in the loop, please check the resolve tree data:",c);break}for(const l of c)i.getNode(l.value.parentId)?Zu(l,f=>{u(f)}):this.debug("Drop resolve tree since there is no parent for the root node.",l)}Object.keys(s).length&&Object.assign(this.legacy_missingNodeRetryMap,s),$d(t.texts).forEach(c=>{var l;const d=i.getNode(c.id);if(!d)return t.removes.find(h=>h.id===c.id)?void 0:this.warnNodeNotFound(t,c.id);const f=d.parentElement;if(c.value&&f&&f.tagName==="STYLE"?d.textContent=rs(c.value,this.cache):d.textContent=c.value,this.usingVirtualDom){const h=d.parentNode;((l=h==null?void 0:h.rules)==null?void 0:l.length)>0&&(h.rules=[])}}),t.attributes.forEach(c=>{var l;const d=i.getNode(c.id);if(!d)return t.removes.find(f=>f.id===c.id)?void 0:this.warnNodeNotFound(t,c.id);for(const f in c.attributes)if(typeof f=="string"){const h=c.attributes[f];if(h===null)d.removeAttribute(f),f==="open"&&np(d,c);else if(typeof h=="string")try{if(f==="_cssText"&&(d.nodeName==="LINK"||d.nodeName==="STYLE"))try{const m=i.getMeta(d);Object.assign(m.attributes,c.attributes);const p=Qr(m,{doc:d.ownerDocument,mirror:i,skipChild:!0,hackCss:!0,cache:this.cache}),g=d.nextSibling,y=d.parentNode;if(p&&y){y.removeChild(d),y.insertBefore(p,g),i.replace(c.id,p);break}}catch(m){}if(f==="value"&&d.nodeName==="TEXTAREA"){const m=d;m.childNodes.forEach(g=>m.removeChild(g));const p=(l=d.ownerDocument)==null?void 0:l.createTextNode(h);p&&m.appendChild(p)}else d.setAttribute(f,h);f==="rr_open_mode"&&d.nodeName==="DIALOG"&&bi(d,c)}catch(m){this.warn("An error occurred may due to the checkout feature.",m)}else if(f==="style"){const m=h,p=d;for(const g in m)if(m[g]===!1)p.style.removeProperty(g);else if(m[g]instanceof Array){const y=m[g];p.style.setProperty(g,y[0],y[1])}else{const y=m[g];p.style.setProperty(g,y)}}}})}applyScroll(t,r){var i,s;const n=this.mirror.getNode(t.id);if(!n)return this.debugNodeNotFound(t,t.id);const o=this.mirror.getMeta(n);if(n===this.iframe.contentDocument)(i=this.iframe.contentWindow)==null||i.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"});else if((o==null?void 0:o.type)===It.Document)(s=n.defaultView)==null||s.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"});else try{n.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"})}catch(u){}}applyInput(t){const r=this.mirror.getNode(t.id);if(!r)return this.debugNodeNotFound(t,t.id);try{r.checked=t.isChecked,r.value=t.text}catch(i){}}applySelection(t){try{const r=new Set,i=t.ranges.map(({start:s,startOffset:n,end:o,endOffset:u})=>{const a=this.mirror.getNode(s),c=this.mirror.getNode(o);if(!a||!c)return;const l=new Range;l.setStart(a,n),l.setEnd(c,u);const d=a.ownerDocument,f=d==null?void 0:d.getSelection();return f&&r.add(f),{range:l,selection:f}});r.forEach(s=>s.removeAllRanges()),i.forEach(s=>{var n;return s&&((n=s.selection)==null?void 0:n.addRange(s.range))})}catch(r){}}applyStyleSheetMutation(t){var r;let i=null;t.styleId?i=this.styleMirror.getStyle(t.styleId):t.id&&(i=((r=this.mirror.getNode(t.id))==null?void 0:r.sheet)||null),i&&(t.source===H.StyleSheetRule?this.applyStyleSheetRule(t,i):t.source===H.StyleDeclaration&&this.applyStyleDeclaration(t,i))}applyStyleSheetRule(t,r){var i,s,n,o;if((i=t.adds)==null||i.forEach(({rule:u,index:a})=>{try{if(Array.isArray(a)){const{positions:c,index:l}=ul(a);Gr(r.cssRules,c).insertRule(u,l)}else{const c=a===void 0?void 0:Math.min(a,r.cssRules.length);r==null||r.insertRule(u,c)}}catch(c){}}),(s=t.removes)==null||s.forEach(({index:u})=>{try{if(Array.isArray(u)){const{positions:a,index:c}=ul(u);Gr(r.cssRules,a).deleteRule(c||0)}else r==null||r.deleteRule(u)}catch(a){}}),t.replace)try{(n=r.replace)==null||n.call(r,t.replace)}catch(u){}if(t.replaceSync)try{(o=r.replaceSync)==null||o.call(r,t.replaceSync)}catch(u){}}applyStyleDeclaration(t,r){t.set&&Gr(r.rules,t.index).style.setProperty(t.set.property,t.set.value,t.set.priority),t.remove&&Gr(r.rules,t.index).style.removeProperty(t.remove.property)}applyAdoptedStyleSheet(t){var r;const i=this.mirror.getNode(t.id);if(!i)return;(r=t.styles)==null||r.forEach(u=>{var a;let c=null,l=null;if(yi(i)?l=((a=i.ownerDocument)==null?void 0:a.defaultView)||null:i.nodeName==="#document"&&(l=i.defaultView),!!l)try{c=new l.CSSStyleSheet,this.styleMirror.add(c,u.styleId),this.applyStyleSheetRule({source:H.StyleSheetRule,adds:u.rules},c)}catch(d){}});const s=10;let n=0;const o=(u,a)=>{const c=a.map(l=>this.styleMirror.getStyle(l)).filter(l=>l!==null);yi(u)?u.shadowRoot.adoptedStyleSheets=c:u.nodeName==="#document"&&(u.adoptedStyleSheets=c),c.length!==a.length&&n<s&&(setTimeout(()=>o(u,a),0+100*n),n++)};o(i,t.styleIds)}legacy_resolveMissingNode(t,r,i,s){const{previousId:n,nextId:o}=s,u=n&&t[n],a=o&&t[o];if(u){const{node:c,mutation:l}=u;r.insertBefore(c,i),delete t[l.node.id],delete this.legacy_missingNodeRetryMap[l.node.id],(l.previousId||l.nextId)&&this.legacy_resolveMissingNode(t,r,c,l)}if(a){const{node:c,mutation:l}=a;r.insertBefore(c,i.nextSibling),delete t[l.node.id],delete this.legacy_missingNodeRetryMap[l.node.id],(l.previousId||l.nextId)&&this.legacy_resolveMissingNode(t,r,c,l)}}moveAndHover(t,r,i,s,n){const o=this.mirror.getNode(i);if(!o)return this.debugNodeNotFound(n,i);const u=ec(o,this.iframe),a=t*u.absoluteScale+u.x,c=r*u.absoluteScale+u.y;this.mouse.style.left=`${a}px`,this.mouse.style.top=`${c}px`,s||this.drawMouseTail({x:a,y:c}),this.hoverElements(o)}drawMouseTail(t){if(!this.mouseTail)return;const{lineCap:r,lineWidth:i,strokeStyle:s,duration:n}=this.config.mouseTail===!0?wn:Object.assign({},wn,this.config.mouseTail),o=()=>{if(!this.mouseTail)return;const u=this.mouseTail.getContext("2d");!u||!this.tailPositions.length||(u.clearRect(0,0,this.mouseTail.width,this.mouseTail.height),u.beginPath(),u.lineWidth=i,u.lineCap=r,u.strokeStyle=s,u.moveTo(this.tailPositions[0].x,this.tailPositions[0].y),this.tailPositions.forEach(a=>u.lineTo(a.x,a.y)),u.stroke())};this.tailPositions.push(t),o(),setTimeout(()=>{this.tailPositions=this.tailPositions.filter(u=>u!==t),o()},n/this.speedService.state.context.timer.speed)}hoverElements(t){var r;(r=this.lastHoveredRootNode||this.iframe.contentDocument)==null||r.querySelectorAll(".\\:hover").forEach(s=>{s.classList.remove(":hover")}),this.lastHoveredRootNode=t.getRootNode();let i=t;for(;i;)i.classList&&i.classList.add(":hover"),i=i.parentElement}isUserInteraction(t){return t.type!==ue.IncrementalSnapshot?!1:t.data.source>H.Mutation&&t.data.source<=H.Input}backToNormal(){this.nextUserInteractionEvent=null,!this.speedService.state.matches("normal")&&(this.speedService.send({type:"BACK_TO_NORMAL"}),this.emitter.emit(X.SkipEnd,{speed:this.speedService.state.context.normalSpeed}))}warnNodeNotFound(t,r){this.warn(`Node with id '${r}' not found. `,t)}warnCanvasMutationFailed(t,r){this.warn("Has error on canvas update",r,"canvas mutation:",t)}debugNodeNotFound(t,r){this.debug(`Node with id '${r}' not found. `,t)}warn(...t){this.config.showWarning&&this.config.logger.warn(bl,...t)}debug(...t){this.config.showDebug&&this.config.logger.log(bl,...t)}}var Je=Uint8Array,qt=Uint16Array,$n=Uint32Array,ac=new Je([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,0,0,0]),lc=new Je([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,0,0]),lp=new Je([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),uc=function(e,t){for(var r=new qt(31),i=0;i<31;++i)r[i]=t+=1<<e[i-1];for(var s=new $n(r[30]),i=1;i<30;++i)for(var n=r[i];n<r[i+1];++n)s[n]=n-r[i]<<5|i;return[r,s]},cc=uc(ac,2),fc=cc[0],up=cc[1];fc[28]=258,up[258]=28;var cp=uc(lc,0),fp=cp[0],Vn=new qt(32768);for(var ae=0;ae<32768;++ae){var Pt=(ae&43690)>>>1|(ae&21845)<<1;Pt=(Pt&52428)>>>2|(Pt&13107)<<2,Pt=(Pt&61680)>>>4|(Pt&3855)<<4,Vn[ae]=((Pt&65280)>>>8|(Pt&255)<<8)>>>1}var Kr=(function(e,t,r){for(var i=e.length,s=0,n=new qt(t);s<i;++s)++n[e[s]-1];var o=new qt(t);for(s=0;s<t;++s)o[s]=o[s-1]+n[s-1]<<1;var u;if(r){u=new qt(1<<t);var a=15-t;for(s=0;s<i;++s)if(e[s])for(var c=s<<4|e[s],l=t-e[s],d=o[e[s]-1]++<<l,f=d|(1<<l)-1;d<=f;++d)u[Vn[d]>>>a]=c}else for(u=new qt(i),s=0;s<i;++s)u[s]=Vn[o[e[s]-1]++]>>>15-e[s];return u}),li=new Je(288);for(var ae=0;ae<144;++ae)li[ae]=8;for(var ae=144;ae<256;++ae)li[ae]=9;for(var ae=256;ae<280;++ae)li[ae]=7;for(var ae=280;ae<288;++ae)li[ae]=8;var hc=new Je(32);for(var ae=0;ae<32;++ae)hc[ae]=5;var hp=Kr(li,9,1),dp=Kr(hc,5,1),bn=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},et=function(e,t,r){var i=t/8>>0;return(e[i]|e[i+1]<<8)>>>(t&7)&r},_n=function(e,t){var r=t/8>>0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>>(t&7)},pp=function(e){return(e/8>>0)+(e&7&&1)},dc=function(e,t,r){(r==null||r>e.length)&&(r=e.length);var i=new(e instanceof qt?qt:e instanceof $n?$n:Je)(r-t);return i.set(e.subarray(t,r)),i},mp=function(e,t,r){var i=e.length,s=!t||r,n=!r||r.i;r||(r={}),t||(t=new Je(i*3));var o=function(B){var J=t.length;if(B>J){var k=new Je(Math.max(J*2,B));k.set(t),t=k}},u=r.f||0,a=r.p||0,c=r.b||0,l=r.l,d=r.d,f=r.m,h=r.n,m=i*8;do{if(!l){r.f=u=et(e,a,1);var p=et(e,a+1,3);if(a+=3,p)if(p==1)l=hp,d=dp,f=9,h=5;else if(p==2){var _=et(e,a,31)+257,S=et(e,a+10,15)+4,v=_+et(e,a+5,31)+1;a+=14;for(var w=new Je(v),E=new Je(19),C=0;C<S;++C)E[lp[C]]=et(e,a+C*3,7);a+=S*3;var A=bn(E),N=(1<<A)-1;if(!n&&a+v*(A+7)>m)break;for(var U=Kr(E,A,1),C=0;C<v;){var T=U[et(e,a,N)];a+=T&15;var g=T>>>4;if(g<16)w[C++]=g;else{var x=0,me=0;for(g==16?(me=3+et(e,a,3),a+=2,x=w[C-1]):g==17?(me=3+et(e,a,7),a+=3):g==18&&(me=11+et(e,a,127),a+=7);me--;)w[C++]=x}}var ge=w.subarray(0,_),ie=w.subarray(_);f=bn(ge),h=bn(ie),l=Kr(ge,f,1),d=Kr(ie,h,1)}else throw"invalid block type";else{var g=pp(a)+4,y=e[g-4]|e[g-3]<<8,b=g+y;if(b>i){if(n)throw"unexpected EOF";break}s&&o(c+y),t.set(e.subarray(g,b),c),r.b=c+=y,r.p=a=b*8;continue}if(a>m)throw"unexpected EOF"}s&&o(c+131072);for(var F=(1<<f)-1,se=(1<<h)-1,Re=f+h+18;n||a+Re<m;){var x=l[_n(e,a)&F],j=x>>>4;if(a+=x&15,a>m)throw"unexpected EOF";if(!x)throw"invalid length/literal";if(j<256)t[c++]=j;else if(j==256){l=null;break}else{var G=j-254;if(j>264){var C=j-257,_e=ac[C];G=et(e,a,(1<<_e)-1)+fc[C],a+=_e}var O=d[_n(e,a)&se],ve=O>>>4;if(!O)throw"invalid distance";a+=O&15;var ie=fp[ve];if(ve>3){var _e=lc[ve];ie+=_n(e,a)&(1<<_e)-1,a+=_e}if(a>m)throw"unexpected EOF";s&&o(c+131072);for(var P=c+G;c<P;c+=4)t[c]=t[c-ie],t[c+1]=t[c+1-ie],t[c+2]=t[c+2-ie],t[c+3]=t[c+3-ie];c=P}}r.l=l,r.p=a,r.b=c,l&&(u=1,r.m=f,r.d=d,r.n=h)}while(!u);return c==t.length?t:dc(t,0,c)},gp=function(e){if((e[0]&15)!=8||e[0]>>>4>7||(e[0]<<8|e[1])%31)throw"invalid zlib data";if(e[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function vp(e,t){return mp((gp(e),e.subarray(2,-4)),t)}function yp(e,t){for(var r=e.length,i=new Je(e.length+(e.length>>>1)),s=0,n=function(c){i[s++]=c},o=0;o<r;++o){if(s+5>i.length){var u=new Je(s+8+(r-o<<1));u.set(i),i=u}var a=e.charCodeAt(o);n(a)}return dc(i,0,s)}function wp(e,t){var r="";if(typeof TextDecoder!="undefined")return new TextDecoder().decode(e);for(var i=0;i<e.length;){var s=e[i++];s<128||t?r+=String.fromCharCode(s):s<224?r+=String.fromCharCode((s&31)<<6|e[i++]&63):s<240?r+=String.fromCharCode((s&15)<<12|(e[i++]&63)<<6|e[i++]&63):(s=((s&15)<<18|(e[i++]&63)<<12|(e[i++]&63)<<6|e[i++]&63)-65536,r+=String.fromCharCode(55296|s>>10,56320|s&1023))}return r}const Sl="v1",bp=e=>{if(typeof e!="string")return e;try{const t=JSON.parse(e);if(t.timestamp)return t}catch(t){}try{const t=JSON.parse(wp(vp(yp(e,!0))));if(t.v===Sl)return t;throw new Error(`These events were packed with packer ${t.v} which is incompatible with current packer ${Sl}.`)}catch(t){throw console.error(t),new Error("Unknown data format.")}};function El(e){let t="";return Object.keys(e).forEach(r=>{t+=`${r}: ${e[r]};`}),t}function qr(e,t=2){let r=String(e);const i=Math.pow(10,t-1);if(e<i)for(;String(i).length>r.length;)r=`0${e}`;return r}const pc=1e3,jn=60*pc,Cl=60*jn;function Si(e){if(e<=0)return"00:00";const t=Math.floor(e/Cl);e=e%Cl;const r=Math.floor(e/jn);e=e%jn;const i=Math.floor(e/pc);return t?`${qr(t)}:${qr(r)}:${qr(i)}`:`${qr(r)}:${qr(i)}`}function _p(e){return e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():Promise.resolve()}function Sp(){return document.exitFullscreen?document.exitFullscreen():document.mozExitFullscreen?document.mozExitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen?document.msExitFullscreen():Promise.resolve()}function xl(){let e=!1;return["fullscreen","webkitIsFullScreen","mozFullScreen","msFullscreenElement"].forEach(t=>{t in document&&(e=e||!!document[t])}),e}function Ep(e){return document.addEventListener("fullscreenchange",e),document.addEventListener("webkitfullscreenchange",e),document.addEventListener("mozfullscreenchange",e),document.addEventListener("MSFullscreenChange",e),()=>{document.removeEventListener("fullscreenchange",e),document.removeEventListener("webkitfullscreenchange",e),document.removeEventListener("mozfullscreenchange",e),document.removeEventListener("MSFullscreenChange",e)}}function Rl(e){return{"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Undefined]":"undefined","[object Null]":"null","[object Object]":"object"}[Object.prototype.toString.call(e)]}function Cp(e){return e.type!==ue.IncrementalSnapshot?!1:e.data.source>H.Mutation&&e.data.source<=H.Input}function xp(e,t){const r=[];let i=e[0].timestamp;for(const s of e)Cp(s)&&(s.timestamp-i>t&&r.push([i,s.timestamp]),i=s.timestamp);return r}var mc=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(mc||{}),Rp=Lr('<div><input type="checkbox" class="svelte-184lr04"/> <label class="svelte-184lr04"></label> <span class="label svelte-184lr04"> </span></div>');function Mp(e,t){let r=ce(t,"disabled",8),i=ce(t,"checked",12),s=ce(t,"id",8),n=ce(t,"label",8);var o=Rp();let u;var a=it(o);Qf(a);var c=Ve(a,2),l=Ve(c,2),d=it(l,!0);rt(l),rt(o),_r(()=>{u=Un(o,1,"switch svelte-184lr04",null,u,{disabled:r()}),rr(a,"id",s()),a.disabled=r(),rr(c,"for",s()),Mi(d,n())}),eh(a,i),St(e,o)}var Np=Lr("<div></div>"),Op=Lr("<div></div>"),Ap=Su(`<svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16" aria-label="Play"><path d="M682.65984 128q53.00224 0 90.50112 37.49888t37.49888 90.50112l0
|
|
88
158
|
512q0 53.00224-37.49888 90.50112t-90.50112
|
|
89
159
|
37.49888-90.50112-37.49888-37.49888-90.50112l0-512q0-53.00224
|
|
90
160
|
37.49888-90.50112t90.50112-37.49888zM341.34016 128q53.00224 0
|
|
@@ -97,15 +167,25 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
97
167
|
12.4928-30.16704l0-512q0-17.67424-12.4928-30.16704t-30.16704-12.4928zM682.65984
|
|
98
168
|
213.34016q-17.67424 0-30.16704 12.4928t-12.4928 30.16704l0 512q0
|
|
99
169
|
17.67424 12.4928 30.16704t30.16704 12.4928 30.16704-12.4928
|
|
100
|
-
12.4928-30.16704l0-512q0-17.67424-12.4928-30.16704t-30.16704-12.4928z
|
|
170
|
+
12.4928-30.16704l0-512q0-17.67424-12.4928-30.16704t-30.16704-12.4928z"></path></svg>`),Dp=Su(`<svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16" aria-label="Pause"><path d="M170.65984 896l0-768 640 384zM644.66944
|
|
171
|
+
512l-388.66944-233.32864 0 466.65728z"></path></svg>`),Tp=Lr("<button> </button>"),Pp=Lr(`<div class="rr-controller svelte-14v7dbr"><div class="rr-timeline svelte-14v7dbr"><span class="rr-timeline__time svelte-14v7dbr"> </span> <div role="slider" aria-label="Progress bar" aria-valuemin="0" aria-valuemax="100" tabindex="0"><div class="rr-progress__step svelte-14v7dbr"></div> <!> <!> <div class="rr-progress__handler svelte-14v7dbr"></div></div> <span class="rr-timeline__time svelte-14v7dbr"> </span></div> <div class="rr-controller__btns svelte-14v7dbr"><button class="svelte-14v7dbr"><!></button> <!> <!> <button aria-label="Fullscreen" class="svelte-14v7dbr"><svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16"><defs><style type="text/css"></style></defs><path d="M916 380c-26.4 0-48-21.6-48-48L868 223.2 613.6 477.6c-18.4
|
|
172
|
+
18.4-48.8 18.4-68 0-18.4-18.4-18.4-48.8 0-68L800 156 692 156c-26.4
|
|
173
|
+
0-48-21.6-48-48 0-26.4 21.6-48 48-48l224 0c26.4 0 48 21.6 48 48l0
|
|
174
|
+
224C964 358.4 942.4 380 916 380zM231.2 860l108.8 0c26.4 0 48 21.6 48
|
|
175
|
+
48s-21.6 48-48 48l-224 0c-26.4 0-48-21.6-48-48l0-224c0-26.4 21.6-48
|
|
176
|
+
48-48 26.4 0 48 21.6 48 48L164 792l253.6-253.6c18.4-18.4 48.8-18.4
|
|
177
|
+
68 0 18.4 18.4 18.4 48.8 0 68L231.2 860z"></path></svg></button></div></div>`);function kp(e,t){to(t,!1);const r=zf();let i=ce(t,"replayer",8),s=ce(t,"showController",8),n=ce(t,"autoPlay",8),o=ce(t,"skipInactive",12),u=ce(t,"speedOption",8),a=ce(t,"speed",28,()=>u().length?u()[0]:1),c=ce(t,"tags",24,()=>({})),l=ce(t,"inactiveColor",8),d=Oe(0),f=null,h=Oe(),m=Oe(),p=Oe(),g,y=!1,b=null,_=null,S=Oe(),v=Oe();function w(P,B,J){const k=B-P;return(100-(B-J)/k*100).toFixed(2)}let E=Oe(),C=Oe();const A=()=>{N();function P(){K(d,i().getCurrentTime()),y&&M(d)>=y&&(_?ge(_.start,_.end,!0,void 0):(i().pause(),b&&(b(),b=null))),M(d)<M(S).totalTime&&(f=requestAnimationFrame(P))}f=requestAnimationFrame(P)},N=()=>{f&&(cancelAnimationFrame(f),f=null)},U=()=>{switch(M(h)){case"playing":x();break;case"paused":T();break}},T=()=>{M(h)==="paused"&&(g?(i().play(),g=!1):i().play(M(d)))},x=()=>{M(h)==="playing"&&(i().pause(),y=!1)},me=(P,B)=>{K(d,P),y=!1,g=!1,(typeof B=="boolean"?B:M(h)==="playing")?i().play(P):i().pause(P)},ge=(P,B,J=!1,k=void 0)=>{J?_={start:P,end:B}:_=null,K(d,P),y=B,b=k||null,i().play(P)},ie=P=>{if(M(m)==="skipping")return;const B=M(p).getBoundingClientRect();let k=(P.clientX-B.left)/B.width;k<0?k=0:k>1&&(k=1);const oe=M(S).totalTime*k;me(oe)},F=P=>{M(m)!=="skipping"&&(P.key==="ArrowLeft"?me(M(d)-5):P.key==="ArrowRight"&&me(M(d)+5))},se=P=>{let B=M(h)==="playing";a(P),B&&i().pause(),i().setConfig({speed:a()}),B&&i().play(M(d))},Re=()=>{o(!o())},j=()=>Promise.resolve().then(()=>{K(S,i().getMetaData())});ao(()=>{K(h,i().service.state.value),K(m,i().speedService.state.value),i().on("state-change",P=>{const{player:B,speed:J}=P;if(B!=null&&B.value&&M(h)!==B.value)switch(K(h,B.value),M(h)){case"playing":A();break;case"paused":N();break}J!=null&&J.value&&M(m)!==J.value&&K(m,J.value)}),i().on("finish",()=>{g=!0,b&&(b(),b=null)}),n()&&i().play()}),$f(()=>{o()!==i().config.skipInactive&&i().setConfig({skipInactive:o()})}),xu(()=>{i().pause(),N()}),Ut(()=>M(d),()=>{r("ui-update-current-time",{payload:M(d)})}),Ut(()=>M(h),()=>{r("ui-update-player-state",{payload:M(h)})}),Ut(()=>Ue(i()),()=>{K(S,i().getMetaData())}),Ut(()=>(M(d),M(S)),()=>{const P=Math.min(1,M(d)/M(S).totalTime);K(v,`${100*P}%`),r("ui-update-progress",{payload:P})}),Ut(()=>(Ue(i()),Ue(c())),()=>{K(E,(()=>{const{context:P}=i().service.state,B=P.events.length,J=P.events[0].timestamp,k=P.events[B-1].timestamp,oe=[];return P.events.forEach(ne=>{if(ne.type===mc.Custom){const Z={name:ne.data.tag,background:c()[ne.data.tag]||"rgb(73, 80, 246)",position:`${w(J,k,ne.timestamp)}%`};oe.push(Z)}}),oe})())}),Ut(()=>(Ue(i()),Ue(l())),()=>{K(C,(()=>{try{const{context:P}=i().service.state,B=P.events.length,J=P.events[0].timestamp,k=P.events[B-1].timestamp,oe=xp(P.events,i().config.inactivePeriodThreshold),ne=(Z,De,ht,ui)=>{const cs=De-Z;return((ui-ht)/cs*100).toFixed(2)};return oe.map(Z=>({name:"inactive period",background:l(),position:`${w(J,k,Z[0])}%`,width:`${ne(J,k,Z[0],Z[1])}%`}))}catch(P){return[]}})())}),lu();var G={toggle:U,play:T,pause:x,goto:me,playRange:ge,setSpeed:se,toggleSkipInactive:Re,triggerUpdateMeta:j};Mu();var _e=If(),O=wf(_e);{var ve=P=>{var B=Pp(),J=it(B),k=it(J),oe=it(k,!0);rt(k);var ne=Ve(k,2);let Z;var De=it(ne),ht=Ve(De,2);ds(ht,1,()=>M(C),hs,(we,re)=>{var Me=Np();_r(()=>{var Ze,dt,Ur;rr(Me,"title",(M(re),be(()=>M(re).name))),Sr(Me,`width: ${(Ze=(M(re),be(()=>M(re).width)))!=null?Ze:""};height: 4px;position: absolute;background: ${(dt=(M(re),be(()=>M(re).background)))!=null?dt:""};left:
|
|
178
|
+
${(Ur=(M(re),be(()=>M(re).position)))!=null?Ur:""};`)}),St(we,Me)});var ui=Ve(ht,2);ds(ui,1,()=>M(E),hs,(we,re)=>{var Me=Op();_r(()=>{var Ze,dt;rr(Me,"title",(M(re),be(()=>M(re).name))),Sr(Me,`width: 10px;height: 5px;position: absolute;top:
|
|
179
|
+
2px;transform: translate(-50%, -50%);background: ${(Ze=(M(re),be(()=>M(re).background)))!=null?Ze:""};left:
|
|
180
|
+
${(dt=(M(re),be(()=>M(re).position)))!=null?dt:""};`)}),St(we,Me)});var cs=Ve(ui,2);rt(ne),Ni(ne,we=>K(p,we),()=>M(p));var fs=Ve(ne,2),Mo=it(fs,!0);rt(fs),rt(J);var No=Ve(J,2),ci=it(No),vc=it(ci);{var yc=we=>{var re=Ap();St(we,re)},wc=we=>{var re=Dp();St(we,re)};Ln(vc,we=>{M(h)==="playing"?we(yc):we(wc,!1)})}rt(ci);var Oo=Ve(ci,2);ds(Oo,1,u,hs,(we,re)=>{var Me=Tp();let Ze;var dt=it(Me);rt(Me),_r(()=>{var Ur;Me.disabled=M(m)==="skipping",Ze=Un(Me,1,"svelte-14v7dbr",null,Ze,{active:M(re)===a()&&M(m)!=="skipping"}),Mi(dt,`${(Ur=M(re))!=null?Ur:""}x`)}),Wr("click",Me,()=>se(M(re))),St(we,Me)});var Ao=Ve(Oo,2);{let we=Ji(()=>M(m)==="skipping");Mp(Ao,{id:"skip",get disabled(){return M(we)},label:"skip inactive",get checked(){return o()},set checked(re){o(re)},$$legacy:!0})}var bc=Ve(Ao,2);rt(No),rt(B),_r((we,re,Me)=>{var Ze,dt;Mi(oe,we),Z=Un(ne,1,"rr-progress svelte-14v7dbr",null,Z,{disabled:M(m)==="skipping"}),rr(ne,"aria-valuenow",re),Sr(De,`width: ${(Ze=M(v))!=null?Ze:""}`),Sr(cs,`left: ${(dt=M(v))!=null?dt:""}`),Mi(Mo,Me)},[()=>(Ue(Si),M(d),be(()=>Si(M(d)))),()=>(M(v),be(()=>parseFloat(M(v)))),()=>(Ue(Si),M(S),be(()=>Si(M(S).totalTime)))]),Wr("click",ne,ie),Wr("keydown",ne,F),Wr("click",ci,U),Wr("click",bc,()=>r("fullscreen")),St(P,B)};Ln(O,P=>{s()&&P(ve)})}return St(e,_e),he(t,"toggle",U),he(t,"play",T),he(t,"pause",x),he(t,"goto",me),he(t,"playRange",ge),he(t,"setSpeed",se),he(t,"toggleSkipInactive",Re),he(t,"triggerUpdateMeta",j),ro(G)}var Ip=Lr('<div class="rr-player svelte-1qub0ki"><div class="rr-player__frame svelte-1qub0ki"></div> <!></div>');function Lp(e,t){const r=ih(t,["children","$$slots","$$events","$$legacy"]);to(t,!1);let i=ce(t,"width",12,1024),s=ce(t,"height",12,576),n=ce(t,"maxScale",8,1),o=ce(t,"events",8),u=ce(t,"skipInactive",8,!0),a=ce(t,"autoPlay",8,!0),c=ce(t,"speedOption",24,()=>[1,2,4,8]),l=ce(t,"speed",8,1),d=ce(t,"showController",8,!0),f=ce(t,"tags",24,()=>({})),h=ce(t,"inactiveColor",8,"#D4D4D4"),m=Oe();const p=()=>M(m).getMirror(),g=80;let y=Oe(),b=Oe(),_,S=i(),v=s(),w=Oe(),E=Oe(),C=Oe();const A=(k,oe)=>{const ne=i()/oe.width,Z=s()/oe.height,De=[ne,Z];n()&&De.push(n()),k.style.transform=`scale(${Math.min(...De)})translate(-50%, -50%)`},N=()=>{A(M(m).wrapper,{width:M(m).iframe.offsetWidth,height:M(m).iframe.offsetHeight})},U=()=>{M(y)&&(xl()?Sp():_p(M(y)))},T=(k,oe)=>{switch(M(m).on(k,oe),k){case"ui-update-current-time":case"ui-update-progress":case"ui-update-player-state":M(w).$on(k,({detail:ne})=>oe(ne))}},x=k=>{M(m).addEvent(k),M(w).triggerUpdateMeta()},me=()=>M(m).getMetaData(),ge=()=>M(m),ie=()=>{M(w).toggle()},F=k=>{M(w).setSpeed(k)},se=()=>{M(w).toggleSkipInactive()},Re=()=>{M(w).play()},j=()=>{M(w).pause()},G=(k,oe)=>{M(w).goto(k,oe)},_e=(k,oe,ne=!1,Z=void 0)=>{M(w).playRange(k,oe,ne,Z)};ao(()=>{if(c()!==void 0&&Rl(c())!=="array")throw new Error("speedOption must be array");if(c().forEach(k=>{if(Rl(k)!=="number")throw new Error("item of speedOption must be number")}),c().indexOf(l())<0)throw new Error(`speed must be one of speedOption,
|
|
101
181
|
current config:
|
|
102
182
|
{
|
|
103
183
|
...
|
|
104
|
-
speed: ${
|
|
105
|
-
speedOption: [${
|
|
184
|
+
speed: ${l()},
|
|
185
|
+
speedOption: [${c().toString()}]
|
|
106
186
|
...
|
|
107
187
|
}
|
|
108
|
-
`);
|
|
188
|
+
`);K(m,new ap(o(),Q({speed:l(),root:M(b),unpackFn:bp},r))),M(m).on("resize",k=>{A(M(m).wrapper,k)}),_=Ep(()=>{xl()?setTimeout(()=>{S=i(),v=s(),i(M(y).offsetWidth),s(M(y).offsetHeight-(d()?g:0)),A(M(m).wrapper,{width:M(m).iframe.offsetWidth,height:M(m).iframe.offsetHeight})},0):(i(S),s(v),A(M(m).wrapper,{width:M(m).iframe.offsetWidth,height:M(m).iframe.offsetHeight}))})}),xu(()=>{_&&_()}),Ut(()=>(Ue(i()),Ue(s())),()=>{K(E,El({width:`${i()}px`,height:`${s()}px`}))}),Ut(()=>(Ue(i()),Ue(s()),Ue(d())),()=>{K(C,El({width:`${i()}px`,height:`${s()+(d()?g:0)}px`}))}),lu();var O={getMirror:p,triggerResize:N,toggleFullscreen:U,addEventListener:T,addEvent:x,getMetaData:me,getReplayer:ge,toggle:ie,setSpeed:F,toggleSkipInactive:se,play:Re,pause:j,goto:G,playRange:_e};Mu();var ve=Ip(),P=it(ve);Ni(P,k=>K(b,k),()=>M(b));var B=Ve(P,2);{var J=k=>{Ni(kp(k,{get replayer(){return M(m)},get showController(){return d()},get autoPlay(){return a()},get speedOption(){return c()},get skipInactive(){return u()},get tags(){return f()},get inactiveColor(){return h()},$$events:{fullscreen:()=>U()},$$legacy:!0}),oe=>K(w,oe),()=>M(w))};Ln(B,k=>{M(m)&&k(J)})}return rt(ve),Ni(ve,k=>K(y,k),()=>M(y)),_r(()=>{Sr(ve,M(C)),Sr(P,M(E))}),St(e,ve),he(t,"getMirror",p),he(t,"triggerResize",N),he(t,"toggleFullscreen",U),he(t,"addEventListener",T),he(t,"addEvent",x),he(t,"getMetaData",me),he(t,"getReplayer",ge),he(t,"toggle",ie),he(t,"setSpeed",F),he(t,"toggleSkipInactive",se),he(t,"play",Re),he(t,"pause",j),he(t,"goto",G),he(t,"playRange",_e),ro(O)}const Fp=sh(Lp);class gc extends Fp{constructor(t){var r;super({target:t.target,props:(r=t.data)!=null?r:t.props})}}exports.Player=gc;exports.default=gc;
|
|
109
189
|
if (typeof module.exports == "object" && typeof exports == "object") {
|
|
110
190
|
var __cp = (to, from, except, desc) => {
|
|
111
191
|
if ((from && typeof from === "object") || typeof from === "function") {
|