@amplitude/rrweb-player 2.0.0-alpha.34 → 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 +17004 -8618
- 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 +17004 -8618
- package/dist/rrweb-player.js.map +1 -1
- package/dist/rrweb-player.umd.cjs +16945 -8592
- package/dist/rrweb-player.umd.cjs.map +4 -4
- package/dist/rrweb-player.umd.min.cjs +72 -45
- 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,59 +11,62 @@
|
|
|
11
11
|
}(this, () => {
|
|
12
12
|
var exports = {};
|
|
13
13
|
var module = { exports };
|
|
14
|
-
"use strict";var Ai=Object.defineProperty,ki=Object.defineProperties;var Mi=Object.getOwnPropertyDescriptors;var Ie=Object.getOwnPropertySymbols;var Er=Object.prototype.hasOwnProperty,Ar=Object.prototype.propertyIsEnumerable;var _r=(e,i,u)=>i in e?Ai(e,i,{enumerable:!0,configurable:!0,writable:!0,value:u}):e[i]=u,Q=(e,i)=>{for(var u in i||(i={}))Er.call(i,u)&&_r(e,u,i[u]);if(Ie)for(var u of Ie(i))Ar.call(i,u)&&_r(e,u,i[u]);return e},ie=(e,i)=>ki(e,Mi(i));var Re=(e,i)=>{var u={};for(var d in e)Er.call(e,d)&&i.indexOf(d)<0&&(u[d]=e[d]);if(e!=null&&Ie)for(var d of Ie(e))i.indexOf(d)<0&&Ar.call(e,d)&&(u[d]=e[d]);return u};var Ni=Object.defineProperty,Ii=(e,i,u)=>i in e?Ni(e,i,{enumerable:!0,configurable:!0,writable:!0,value:u}):e[i]=u,kr=(e,i,u)=>Ii(e,typeof i!="symbol"?i+"":i,u);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function _e(){}function Mr(e,i){for(const u in i)e[u]=i[u];return e}function ei(e){return e()}function Nr(){return Object.create(null)}function xe(e){e.forEach(ei)}function ti(e){return typeof e=="function"}function ar(e,i){return e!=e?i==i:e!==i||e&&typeof e=="object"||typeof e=="function"}function Li(e){return Object.keys(e).length===0}function Ir(e){const i={};for(const u in e)u[0]!=="$"&&(i[u]=e[u]);return i}function z(e,i){e.appendChild(i)}function oe(e,i,u){e.insertBefore(i,u||null)}function se(e){e.parentNode&&e.parentNode.removeChild(e)}function tt(e,i){for(let u=0;u<e.length;u+=1)e[u]&&e[u].d(i)}function H(e){return document.createElement(e)}function je(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function he(e){return document.createTextNode(e)}function ee(){return he(" ")}function Ui(){return he("")}function ye(e,i,u,d){return e.addEventListener(i,u,d),()=>e.removeEventListener(i,u,d)}function L(e,i,u){u==null?e.removeAttribute(i):e.getAttribute(i)!==u&&e.setAttribute(i,u)}function Di(e){return Array.from(e.childNodes)}function Te(e,i){i=""+i,e.data!==i&&(e.data=i)}function J(e,i,u,d){u==null?e.style.removeProperty(i):e.style.setProperty(i,u,"")}function ve(e,i,u){e.classList.toggle(i,!!u)}function Fi(e,i,{bubbles:u=!1,cancelable:d=!1}={}){return new CustomEvent(e,{detail:i,bubbles:u,cancelable:d})}let Ee;function Pe(e){Ee=e}function ri(){if(!Ee)throw new Error("Function called outside component initialization");return Ee}function si(e){ri().$$.on_destroy.push(e)}function zi(){const e=ri();return(i,u,{cancelable:d=!1}={})=>{const s=e.$$.callbacks[i];if(s){const c=Fi(i,u,{cancelable:d});return s.slice().forEach(p=>{p.call(e,c)}),!c.defaultPrevented}return!0}}const ge=[],fe=[];let be=[];const sr=[],qi=Promise.resolve();let ir=!1;function Bi(){ir||(ir=!0,qi.then(ii))}function nr(e){be.push(e)}function ji(e){sr.push(e)}const rt=new Set;let de=0;function ii(){if(de!==0)return;const e=Ee;do{try{for(;de<ge.length;){const i=ge[de];de++,Pe(i),Ti(i.$$)}}catch(i){throw ge.length=0,de=0,i}for(Pe(null),ge.length=0,de=0;fe.length;)fe.pop()();for(let i=0;i<be.length;i+=1){const u=be[i];rt.has(u)||(rt.add(u),u())}be.length=0}while(ge.length);for(;sr.length;)sr.pop()();ir=!1,rt.clear(),Pe(e)}function Ti(e){if(e.fragment!==null){e.update(),xe(e.before_update);const i=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,i),e.after_update.forEach(nr)}}function Wi(e){const i=[],u=[];be.forEach(d=>e.indexOf(d)===-1?i.push(d):u.push(d)),u.forEach(d=>d()),be=i}const Be=new Set;let ue;function ni(){ue={r:0,c:[],p:ue}}function oi(){ue.r||xe(ue.c),ue=ue.p}function ne(e,i){e&&e.i&&(Be.delete(e),e.i(i))}function Se(e,i,u,d){if(e&&e.o){if(Be.has(e))return;Be.add(e),ue.c.push(()=>{Be.delete(e),d&&(u&&e.d(1),d())}),e.o(i)}else d&&d()}function me(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function $i(e,i,u){const d=e.$$.props[i];d!==void 0&&(e.$$.bound[d]=u,u(e.$$.ctx[d]))}function li(e){e&&e.c()}function ur(e,i,u){const{fragment:d,after_update:s}=e.$$;d&&d.m(i,u),nr(()=>{const c=e.$$.on_mount.map(ei).filter(ti);e.$$.on_destroy?e.$$.on_destroy.push(...c):xe(c),e.$$.on_mount=[]}),s.forEach(nr)}function fr(e,i){const u=e.$$;u.fragment!==null&&(Wi(u.after_update),xe(u.on_destroy),u.fragment&&u.fragment.d(i),u.on_destroy=u.fragment=null,u.ctx=[])}function Vi(e,i){e.$$.dirty[0]===-1&&(ge.push(e),Bi(),e.$$.dirty.fill(0)),e.$$.dirty[i/31|0]|=1<<i%31}function hr(e,i,u,d,s,c,p=null,m=[-1]){const a=Ee;Pe(e);const h=e.$$={fragment:null,ctx:[],props:c,update:_e,not_equal:s,bound:Nr(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(i.context||(a?a.$$.context:[])),callbacks:Nr(),dirty:m,skip_bound:!1,root:i.target||a.$$.root};p&&p(h.root);let t=!1;if(h.ctx=u?u(e,i.props||{},(o,n,...r)=>{const f=r.length?r[0]:n;return h.ctx&&s(h.ctx[o],h.ctx[o]=f)&&(!h.skip_bound&&h.bound[o]&&h.bound[o](f),t&&Vi(e,o)),n}):[],h.update(),t=!0,xe(h.before_update),h.fragment=d?d(h.ctx):!1,i.target){if(i.hydrate){const o=Di(i.target);h.fragment&&h.fragment.l(o),o.forEach(se)}else h.fragment&&h.fragment.c();i.intro&&ne(e.$$.fragment),ur(e,i.target,i.anchor),ii()}Pe(a)}class cr{constructor(){kr(this,"$$"),kr(this,"$$set")}$destroy(){fr(this,1),this.$destroy=_e}$on(i,u){if(!ti(u))return _e;const d=this.$$.callbacks[i]||(this.$$.callbacks[i]=[]);return d.push(u),()=>{const s=d.indexOf(u);s!==-1&&d.splice(s,1)}}$set(i){this.$$set&&!Li(i)&&(this.$$.skip_bound=!0,this.$$set(i),this.$$.skip_bound=!1)}}const Gi="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Gi);var Lr,Ji=Object.defineProperty,Hi=(e,i,u)=>i in e?Ji(e,i,{enumerable:!0,configurable:!0,writable:!0,value:u}):e[i]=u,Ur=(e,i,u)=>Hi(e,typeof i!="symbol"?i+"":i,u);class Yi{constructor(){Ur(this,"idNodeMap",new Map),Ur(this,"nodeMetaMap",new WeakMap)}getId(i){var u;if(!i)return-1;const d=(u=this.getMeta(i))==null?void 0:u.id;return d!=null?d:-1}getNode(i){return this.idNodeMap.get(i)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(i){return this.nodeMetaMap.get(i)||null}removeNodeFromMap(i){const u=this.getId(i);this.idNodeMap.delete(u),i.childNodes&&i.childNodes.forEach(d=>this.removeNodeFromMap(d))}has(i){return this.idNodeMap.has(i)}hasNode(i){return this.nodeMetaMap.has(i)}add(i,u){const d=u.id;this.idNodeMap.set(d,i),this.nodeMetaMap.set(i,u)}replace(i,u){const d=this.getNode(i);if(d){const s=this.nodeMetaMap.get(d);s&&this.nodeMetaMap.set(u,s)}this.idNodeMap.set(i,u)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Qi(){return new Yi}function Ki(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Xi(e){if(e.__esModule)return e;var i=e.default;if(typeof i=="function"){var u=function d(){return this instanceof d?Reflect.construct(i,arguments,this.constructor):i.apply(this,arguments)};u.prototype=i.prototype}else u={};return Object.defineProperty(u,"__esModule",{value:!0}),Object.keys(e).forEach(function(d){var s=Object.getOwnPropertyDescriptor(e,d);Object.defineProperty(u,d,s.get?s:{enumerable:!0,get:function(){return e[d]}})}),u}var Le={exports:{}},Dr;function Zi(){if(Dr)return Le.exports;Dr=1;var e=String,i=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 Le.exports=i(),Le.exports.createColors=i,Le.exports}const en={},tn=Object.freeze(Object.defineProperty({__proto__:null,default:en},Symbol.toStringTag,{value:"Module"})),te=Xi(tn);var st,Fr;function pr(){if(Fr)return st;Fr=1;let e=Zi(),i=te;class u extends Error{constructor(s,c,p,m,a,h){super(s),this.name="CssSyntaxError",this.reason=s,a&&(this.file=a),m&&(this.source=m),h&&(this.plugin=h),typeof c!="undefined"&&typeof p!="undefined"&&(typeof c=="number"?(this.line=c,this.column=p):(this.line=c.line,this.column=c.column,this.endLine=p.line,this.endColumn=p.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,u)}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 c=this.source;s==null&&(s=e.isColorSupported),i&&s&&(c=i(c));let p=c.split(/\r?\n/),m=Math.max(this.line-3,0),a=Math.min(this.line+2,p.length),h=String(a).length,t,o;if(s){let{bold:n,gray:r,red:f}=e.createColors(!0);t=l=>n(f(l)),o=l=>r(l)}else t=o=n=>n;return p.slice(m,a).map((n,r)=>{let f=m+1+r,l=" "+(" "+f).slice(-h)+" | ";if(f===this.line){let g=o(l.replace(/\d/g," "))+n.slice(0,this.column-1).replace(/[^\t]/g," ");return t(">")+o(l)+n+`
|
|
15
|
-
|
|
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(`
|
|
16
19
|
`)}toString(){let s=this.showSourceCode();return s&&(s=`
|
|
17
20
|
|
|
18
21
|
`+s+`
|
|
19
|
-
`),this.name+": "+this.message+s}}return
|
|
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:`
|
|
20
23
|
`,beforeClose:`
|
|
21
24
|
`,beforeComment:`
|
|
22
25
|
`,beforeDecl:`
|
|
23
26
|
`,beforeOpen:" ",beforeRule:`
|
|
24
|
-
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function i
|
|
25
|
-
`)){let
|
|
26
|
-
`)&&(
|
|
27
|
-
`)&&(
|
|
28
|
-
`)&&(
|
|
29
|
-
`)&&(
|
|
30
|
-
`);return
|
|
31
|
-
`?(
|
|
32
|
-
`);
|
|
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=`
|
|
33
36
|
`;this.css.includes(`\r
|
|
34
|
-
`)&&(
|
|
35
|
-
`),this.css+=
|
|
36
|
-
`),r=b.length-x):r+=b.length,v&&C!=="start"){let y=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==y.last||y.raws.semicolon)&&(v.source&&v.source.end?(l.source=this.sourcePath(v),l.original.line=v.source.end.line,l.original.column=v.source.end.column-1,l.generated.line=n,l.generated.column=r-2,this.map.addMapping(l)):(l.source=f,l.original.line=1,l.original.column=0,l.generated.line=n,l.generated.column=r-1,this.map.addMapping(l)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(n=>n.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let n=this.mapOpts.annotation;return typeof n!="undefined"&&n!==!0?!1:this.previous().length?this.previous().some(r=>r.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(n=>n.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(n){if(this.mapOpts.absolute||n.charCodeAt(0)===60||/^\w+:\/\//.test(n))return n;let r=this.memoizedPaths.get(n);if(r)return r;let f=this.opts.to?u(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(f=u(s(f,this.mapOpts.annotation)));let l=d(f,n);return this.memoizedPaths.set(n,l),l}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(n=>{if(n.source&&n.source.input.map){let r=n.source.input.map;this.previousMaps.includes(r)||this.previousMaps.push(r)}});else{let n=new m(this.originalCSS,this.opts);n.map&&this.previousMaps.push(n.map)}return this.previousMaps}setSourcesContent(){let n={};if(this.root)this.root.walk(r=>{if(r.source){let f=r.source.input.from;if(f&&!n[f]){n[f]=!0;let l=this.usesFileUrls?this.toFileUrl(f):this.toUrl(this.path(f));this.map.setSourceContent(l,r.source.input.css)}}});else if(this.css){let r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}}sourcePath(n){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(n.source.input.from):this.toUrl(this.path(n.source.input.from))}toBase64(n){return Buffer?Buffer.from(n).toString("base64"):window.btoa(unescape(encodeURIComponent(n)))}toFileUrl(n){let r=this.memoizedFileURLs.get(n);if(r)return r;if(p){let f=p(n).toString();return this.memoizedFileURLs.set(n,f),f}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(n){let r=this.memoizedURLs.get(n);if(r)return r;c==="\\"&&(n=n.replace(/\\/g,"/"));let f=encodeURI(n).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(n,f),f}}return ht=t,ht}var ct,Jr;function Je(){if(Jr)return ct;Jr=1;let e=$e();class i extends e{constructor(d){super(d),this.type="comment"}}return ct=i,i.default=i,ct}var pt,Hr;function ce(){if(Hr)return pt;Hr=1;let{isClean:e,my:i}=dr(),u=Ve(),d=Je(),s=$e(),c,p,m,a;function h(n){return n.map(r=>(r.nodes&&(r.nodes=h(r.nodes)),delete r.source,r))}function t(n){if(n[e]=!1,n.proxyOf.nodes)for(let r of n.proxyOf.nodes)t(r)}class o extends s{append(...r){for(let f of r){let l=this.normalize(f,this.last);for(let g of l)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(r){if(super.cleanRaws(r),this.nodes)for(let f of this.nodes)f.cleanRaws(r)}each(r){if(!this.proxyOf.nodes)return;let f=this.getIterator(),l,g;for(;this.indexes[f]<this.proxyOf.nodes.length&&(l=this.indexes[f],g=r(this.proxyOf.nodes[l],l),g!==!1);)this.indexes[f]+=1;return delete this.indexes[f],g}every(r){return this.nodes.every(r)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let r=this.lastEach;return this.indexes[r]=0,r}getProxyProcessor(){return{get(r,f){return f==="proxyOf"?r:r[f]?f==="each"||typeof f=="string"&&f.startsWith("walk")?(...l)=>r[f](...l.map(g=>typeof g=="function"?(x,b)=>g(x.toProxy(),b):g)):f==="every"||f==="some"?l=>r[f]((g,...x)=>l(g.toProxy(),...x)):f==="root"?()=>r.root().toProxy():f==="nodes"?r.nodes.map(l=>l.toProxy()):f==="first"||f==="last"?r[f].toProxy():r[f]:r[f]},set(r,f,l){return r[f]===l||(r[f]=l,(f==="name"||f==="params"||f==="selector")&&r.markDirty()),!0}}}index(r){return typeof r=="number"?r:(r.proxyOf&&(r=r.proxyOf),this.proxyOf.nodes.indexOf(r))}insertAfter(r,f){let l=this.index(r),g=this.normalize(f,this.proxyOf.nodes[l]).reverse();l=this.index(r);for(let b of g)this.proxyOf.nodes.splice(l+1,0,b);let x;for(let b in this.indexes)x=this.indexes[b],l<x&&(this.indexes[b]=x+g.length);return this.markDirty(),this}insertBefore(r,f){let l=this.index(r),g=l===0?"prepend":!1,x=this.normalize(f,this.proxyOf.nodes[l],g).reverse();l=this.index(r);for(let v of x)this.proxyOf.nodes.splice(l,0,v);let b;for(let v in this.indexes)b=this.indexes[v],l<=b&&(this.indexes[v]=b+x.length);return this.markDirty(),this}normalize(r,f){if(typeof r=="string")r=h(c(r).nodes);else if(typeof r=="undefined")r=[];else if(Array.isArray(r)){r=r.slice(0);for(let g of r)g.parent&&g.parent.removeChild(g,"ignore")}else if(r.type==="root"&&this.type!=="document"){r=r.nodes.slice(0);for(let g of r)g.parent&&g.parent.removeChild(g,"ignore")}else if(r.type)r=[r];else if(r.prop){if(typeof r.value=="undefined")throw new Error("Value field is missed in node creation");typeof r.value!="string"&&(r.value=String(r.value)),r=[new u(r)]}else if(r.selector)r=[new p(r)];else if(r.name)r=[new m(r)];else if(r.text)r=[new d(r)];else throw new Error("Unknown node type in node creation");return r.map(g=>(g[i]||o.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&t(g),typeof g.raws.before=="undefined"&&f&&typeof f.raws.before!="undefined"&&(g.raws.before=f.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...r){r=r.reverse();for(let f of r){let l=this.normalize(f,this.first,"prepend").reverse();for(let g of l)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+l.length}return this.markDirty(),this}push(r){return r.parent=this,this.proxyOf.nodes.push(r),this}removeAll(){for(let r of this.proxyOf.nodes)r.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(r){r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1);let f;for(let l in this.indexes)f=this.indexes[l],f>=r&&(this.indexes[l]=f-1);return this.markDirty(),this}replaceValues(r,f,l){return l||(l=f,f={}),this.walkDecls(g=>{f.props&&!f.props.includes(g.prop)||f.fast&&!g.value.includes(f.fast)||(g.value=g.value.replace(r,l))}),this.markDirty(),this}some(r){return this.nodes.some(r)}walk(r){return this.each((f,l)=>{let g;try{g=r(f,l)}catch(x){throw f.addToError(x)}return g!==!1&&f.walk&&(g=f.walk(r)),g})}walkAtRules(r,f){return f?r instanceof RegExp?this.walk((l,g)=>{if(l.type==="atrule"&&r.test(l.name))return f(l,g)}):this.walk((l,g)=>{if(l.type==="atrule"&&l.name===r)return f(l,g)}):(f=r,this.walk((l,g)=>{if(l.type==="atrule")return f(l,g)}))}walkComments(r){return this.walk((f,l)=>{if(f.type==="comment")return r(f,l)})}walkDecls(r,f){return f?r instanceof RegExp?this.walk((l,g)=>{if(l.type==="decl"&&r.test(l.prop))return f(l,g)}):this.walk((l,g)=>{if(l.type==="decl"&&l.prop===r)return f(l,g)}):(f=r,this.walk((l,g)=>{if(l.type==="decl")return f(l,g)}))}walkRules(r,f){return f?r instanceof RegExp?this.walk((l,g)=>{if(l.type==="rule"&&r.test(l.selector))return f(l,g)}):this.walk((l,g)=>{if(l.type==="rule"&&l.selector===r)return f(l,g)}):(f=r,this.walk((l,g)=>{if(l.type==="rule")return f(l,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 o.registerParse=n=>{c=n},o.registerRule=n=>{p=n},o.registerAtRule=n=>{m=n},o.registerRoot=n=>{a=n},pt=o,o.default=o,o.rebuild=n=>{n.type==="atrule"?Object.setPrototypeOf(n,m.prototype):n.type==="rule"?Object.setPrototypeOf(n,p.prototype):n.type==="decl"?Object.setPrototypeOf(n,u.prototype):n.type==="comment"?Object.setPrototypeOf(n,d.prototype):n.type==="root"&&Object.setPrototypeOf(n,a.prototype),n[i]=!0,n.nodes&&n.nodes.forEach(r=>{o.rebuild(r)})},pt}var dt,Yr;function mr(){if(Yr)return dt;Yr=1;let e=ce(),i,u;class d extends e{constructor(c){super(Q({type:"document"},c)),this.nodes||(this.nodes=[])}toResult(c={}){return new i(new u,this,c).stringify()}}return d.registerLazyResult=s=>{i=s},d.registerProcessor=s=>{u=s},dt=d,d.default=d,dt}var mt,Qr;function hi(){if(Qr)return mt;Qr=1;let e={};return mt=function(u){e[u]||(e[u]=!0,typeof console!="undefined"&&console.warn&&console.warn(u))},mt}var gt,Kr;function ci(){if(Kr)return gt;Kr=1;class e{constructor(u,d={}){if(this.type="warning",this.text=u,d.node&&d.node.source){let s=d.node.rangeBy(d);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in d)this[s]=d[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 gt=e,e.default=e,gt}var wt,Xr;function gr(){if(Xr)return wt;Xr=1;let e=ci();class i{constructor(d,s,c){this.processor=d,this.messages=[],this.root=s,this.opts=c,this.css=void 0,this.map=void 0}toString(){return this.css}warn(d,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let c=new e(d,s);return this.messages.push(c),c}warnings(){return this.messages.filter(d=>d.type==="warning")}get content(){return this.css}}return wt=i,i.default=i,wt}var yt,Zr;function sn(){if(Zr)return yt;Zr=1;const e=39,i=34,u=92,d=47,s=10,c=32,p=12,m=9,a=13,h=91,t=93,o=40,n=41,r=123,f=125,l=59,g=42,x=58,b=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,C=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,w=/[\da-f]/i;return yt=function(P,A={}){let _=P.css.valueOf(),U=A.ignoreErrors,I,O,T,Y,q,$,k,j,D,M,K=_.length,R=0,E=[],F=[];function B(){return R}function N(Z){throw P.error("Unclosed "+Z,R)}function X(){return F.length===0&&R>=K}function Me(Z){if(F.length)return F.pop();if(R>=K)return;let ae=Z?Z.ignoreUnclosed:!1;switch(I=_.charCodeAt(R),I){case s:case c:case m:case a:case p:{O=R;do O+=1,I=_.charCodeAt(O);while(I===c||I===s||I===m||I===a||I===p);M=["space",_.slice(R,O)],R=O-1;break}case h:case t:case r:case f:case x:case l:case n:{let Ce=String.fromCharCode(I);M=[Ce,Ce,R];break}case o:{if(j=E.length?E.pop()[1]:"",D=_.charCodeAt(R+1),j==="url"&&D!==e&&D!==i&&D!==c&&D!==s&&D!==m&&D!==p&&D!==a){O=R;do{if($=!1,O=_.indexOf(")",O+1),O===-1)if(U||ae){O=R;break}else N("bracket");for(k=O;_.charCodeAt(k-1)===u;)k-=1,$=!$}while($);M=["brackets",_.slice(R,O+1),R,O],R=O}else O=_.indexOf(")",R+1),Y=_.slice(R,O+1),O===-1||y.test(Y)?M=["(","(",R]:(M=["brackets",Y,R,O],R=O);break}case e:case i:{T=I===e?"'":'"',O=R;do{if($=!1,O=_.indexOf(T,O+1),O===-1)if(U||ae){O=R+1;break}else N("string");for(k=O;_.charCodeAt(k-1)===u;)k-=1,$=!$}while($);M=["string",_.slice(R,O+1),R,O],R=O;break}case b:{v.lastIndex=R+1,v.test(_),v.lastIndex===0?O=_.length-1:O=v.lastIndex-2,M=["at-word",_.slice(R,O+1),R,O],R=O;break}case u:{for(O=R,q=!0;_.charCodeAt(O+1)===u;)O+=1,q=!q;if(I=_.charCodeAt(O+1),q&&I!==d&&I!==c&&I!==s&&I!==m&&I!==a&&I!==p&&(O+=1,w.test(_.charAt(O)))){for(;w.test(_.charAt(O+1));)O+=1;_.charCodeAt(O+1)===c&&(O+=1)}M=["word",_.slice(R,O+1),R,O],R=O;break}default:{I===d&&_.charCodeAt(R+1)===g?(O=_.indexOf("*/",R+2)+1,O===0&&(U||ae?O=_.length:N("comment")),M=["comment",_.slice(R,O+1),R,O],R=O):(C.lastIndex=R+1,C.test(_),C.lastIndex===0?O=_.length-1:O=C.lastIndex-2,M=["word",_.slice(R,O+1),R,O],E.push(M),R=O);break}}return R++,M}function Ne(Z){F.push(Z)}return{back:Ne,endOfFile:X,nextToken:Me,position:B}},yt}var bt,es;function wr(){if(es)return bt;es=1;let e=ce();class i extends e{constructor(d){super(d),this.type="atrule"}append(...d){return this.proxyOf.nodes||(this.nodes=[]),super.append(...d)}prepend(...d){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...d)}}return bt=i,i.default=i,e.registerAtRule(i),bt}var vt,ts;function Ae(){if(ts)return vt;ts=1;let e=ce(),i,u;class d extends e{constructor(c){super(c),this.type="root",this.nodes||(this.nodes=[])}normalize(c,p,m){let a=super.normalize(c);if(p){if(m==="prepend")this.nodes.length>1?p.raws.before=this.nodes[1].raws.before:delete p.raws.before;else if(this.first!==p)for(let h of a)h.raws.before=p.raws.before}return a}removeChild(c,p){let m=this.index(c);return!p&&m===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[m].raws.before),super.removeChild(c)}toResult(c={}){return new i(new u,this,c).stringify()}}return d.registerLazyResult=s=>{i=s},d.registerProcessor=s=>{u=s},vt=d,d.default=d,e.registerRoot(d),vt}var St,rs;function pi(){if(rs)return St;rs=1;let e={comma(i){return e.split(i,[","],!0)},space(i){let u=[" ",`
|
|
37
|
-
`," "];return e.split(i,u)},split(i,u,d){let s=[],c="",p=!1,m=0,a=!1,h="",t=!1;for(let o of i)t?t=!1:o==="\\"?t=!0:a?o===h&&(a=!1):o==='"'||o==="'"?(a=!0,h=o):o==="("?m+=1:o===")"?m>0&&(m-=1):m===0&&u.includes(o)&&(p=!0),p?(c!==""&&s.push(c.trim()),c="",p=!1):c+=o;return(d||c!=="")&&s.push(c.trim()),s}};return St=e,e.default=e,St}var xt,ss;function yr(){if(ss)return xt;ss=1;let e=ce(),i=pi();class u extends e{constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return i.comma(this.selector)}set selectors(s){let c=this.selector?this.selector.match(/,\s*/):null,p=c?c[0]:","+this.raw("between","beforeOpen");this.selector=s.join(p)}}return xt=u,u.default=u,e.registerRule(u),xt}var Ct,is;function nn(){if(is)return Ct;is=1;let e=Ve(),i=sn(),u=Je(),d=wr(),s=Ae(),c=yr();const p={empty:!0,space:!0};function m(h){for(let t=h.length-1;t>=0;t--){let o=h[t],n=o[3]||o[2];if(n)return n}}class a{constructor(t){this.input=t,this.root=new s,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let o=new d;o.name=t[1].slice(1),o.name===""&&this.unnamedAtrule(o,t),this.init(o,t[2]);let n,r,f,l=!1,g=!1,x=[],b=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),n=t[0],n==="("||n==="["?b.push(n==="("?")":"]"):n==="{"&&b.length>0?b.push("}"):n===b[b.length-1]&&b.pop(),b.length===0)if(n===";"){o.source.end=this.getPosition(t[2]),o.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){g=!0;break}else if(n==="}"){if(x.length>0){for(f=x.length-1,r=x[f];r&&r[0]==="space";)r=x[--f];r&&(o.source.end=this.getPosition(r[3]||r[2]),o.source.end.offset++)}this.end(t);break}else x.push(t);else x.push(t);if(this.tokenizer.endOfFile()){l=!0;break}}o.raws.between=this.spacesAndCommentsFromEnd(x),x.length?(o.raws.afterName=this.spacesAndCommentsFromStart(x),this.raw(o,"params",x),l&&(t=x[x.length-1],o.source.end=this.getPosition(t[3]||t[2]),o.source.end.offset++,this.spaces=o.raws.between,o.raws.between="")):(o.raws.afterName="",o.params=""),g&&(o.nodes=[],this.current=o)}checkMissedSemicolon(t){let o=this.colon(t);if(o===!1)return;let n=0,r;for(let f=o-1;f>=0&&(r=t[f],!(r[0]!=="space"&&(n+=1,n===2)));f--);throw this.input.error("Missed semicolon",r[0]==="word"?r[3]+1:r[2])}colon(t){let o=0,n,r,f;for(let[l,g]of t.entries()){if(n=g,r=n[0],r==="("&&(o+=1),r===")"&&(o-=1),o===0&&r===":")if(!f)this.doubleColon(n);else{if(f[0]==="word"&&f[1]==="progid")continue;return l}f=n}return!1}comment(t){let o=new u;this.init(o,t[2]),o.source.end=this.getPosition(t[3]||t[2]),o.source.end.offset++;let n=t[1].slice(2,-2);if(/^\s*$/.test(n))o.text="",o.raws.left=n,o.raws.right="";else{let r=n.match(/^(\s*)([^]*\S)(\s*)$/);o.text=r[2],o.raws.left=r[1],o.raws.right=r[3]}}createTokenizer(){this.tokenizer=i(this.input)}decl(t,o){let n=new e;this.init(n,t[0][2]);let r=t[t.length-1];for(r[0]===";"&&(this.semicolon=!0,t.pop()),n.source.end=this.getPosition(r[3]||r[2]||m(t)),n.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),n.raws.before+=t.shift()[1];for(n.source.start=this.getPosition(t[0][2]),n.prop="";t.length;){let b=t[0][0];if(b===":"||b==="space"||b==="comment")break;n.prop+=t.shift()[1]}n.raws.between="";let f;for(;t.length;)if(f=t.shift(),f[0]===":"){n.raws.between+=f[1];break}else f[0]==="word"&&/\w/.test(f[1])&&this.unknownWord([f]),n.raws.between+=f[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let l=[],g;for(;t.length&&(g=t[0][0],!(g!=="space"&&g!=="comment"));)l.push(t.shift());this.precheckMissedSemicolon(t);for(let b=t.length-1;b>=0;b--){if(f=t[b],f[1].toLowerCase()==="!important"){n.important=!0;let v=this.stringFrom(t,b);v=this.spacesFromEnd(t)+v,v!==" !important"&&(n.raws.important=v);break}else if(f[1].toLowerCase()==="important"){let v=t.slice(0),C="";for(let y=b;y>0;y--){let w=v[y][0];if(C.trim().indexOf("!")===0&&w!=="space")break;C=v.pop()[1]+C}C.trim().indexOf("!")===0&&(n.important=!0,n.raws.important=C,t=v)}if(f[0]!=="space"&&f[0]!=="comment")break}t.some(b=>b[0]!=="space"&&b[0]!=="comment")&&(n.raws.between+=l.map(b=>b[1]).join(""),l=[]),this.raw(n,"value",l.concat(t),o),n.value.includes(":")&&!o&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let o=new c;this.init(o,t[2]),o.selector="",o.raws.between="",this.current=o}end(t){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(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}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(t){if(this.spaces+=t[1],this.current.nodes){let o=this.current.nodes[this.current.nodes.length-1];o&&o.type==="rule"&&!o.raws.ownSemicolon&&(o.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){let o=this.input.fromOffset(t);return{column:o.col,line:o.line,offset:t}}init(t,o){this.current.push(t),t.source={input:this.input,start:this.getPosition(o)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)}other(t){let o=!1,n=null,r=!1,f=null,l=[],g=t[1].startsWith("--"),x=[],b=t;for(;b;){if(n=b[0],x.push(b),n==="("||n==="[")f||(f=b),l.push(n==="("?")":"]");else if(g&&r&&n==="{")f||(f=b),l.push("}");else if(l.length===0)if(n===";")if(r){this.decl(x,g);return}else break;else if(n==="{"){this.rule(x);return}else if(n==="}"){this.tokenizer.back(x.pop()),o=!0;break}else n===":"&&(r=!0);else n===l[l.length-1]&&(l.pop(),l.length===0&&(f=null));b=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(o=!0),l.length>0&&this.unclosedBracket(f),o&&r){if(!g)for(;x.length&&(b=x[x.length-1][0],!(b!=="space"&&b!=="comment"));)this.tokenizer.back(x.pop());this.decl(x,g)}else this.unknownWord(x)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()}precheckMissedSemicolon(){}raw(t,o,n,r){let f,l,g=n.length,x="",b=!0,v,C;for(let y=0;y<g;y+=1)f=n[y],l=f[0],l==="space"&&y===g-1&&!r?b=!1:l==="comment"?(C=n[y-1]?n[y-1][0]:"empty",v=n[y+1]?n[y+1][0]:"empty",!p[C]&&!p[v]?x.slice(-1)===","?b=!1:x+=f[1]:b=!1):x+=f[1];if(!b){let y=n.reduce((w,S)=>w+S[1],"");t.raws[o]={raw:y,value:x}}t[o]=x}rule(t){t.pop();let o=new c;this.init(o,t[0][2]),o.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(o,"selector",t),this.current=o}spacesAndCommentsFromEnd(t){let o,n="";for(;t.length&&(o=t[t.length-1][0],!(o!=="space"&&o!=="comment"));)n=t.pop()[1]+n;return n}spacesAndCommentsFromStart(t){let o,n="";for(;t.length&&(o=t[0][0],!(o!=="space"&&o!=="comment"));)n+=t.shift()[1];return n}spacesFromEnd(t){let o,n="";for(;t.length&&(o=t[t.length-1][0],o==="space");)n=t.pop()[1]+n;return n}stringFrom(t,o){let n="";for(let r=o;r<t.length;r++)n+=t[r][1];return t.splice(o,t.length-o),n}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,o){throw this.input.error("At-rule without name",{offset:o[2]},{offset:o[2]+o[1].length})}}return Ct=a,Ct}var Rt,ns;function br(){if(ns)return Rt;ns=1;let e=ce(),i=nn(),u=Ge();function d(s,c){let p=new u(s,c),m=new i(p);try{m.parse()}catch(a){throw a}return m.root}return Rt=d,d.default=d,e.registerParse(d),Rt}var Ot,os;function di(){if(os)return Ot;os=1;let{isClean:e,my:i}=dr(),u=fi(),d=We(),s=ce(),c=mr(),p=hi(),m=gr(),a=br(),h=Ae();const t={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},o={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},n={Once:!0,postcssPlugin:!0,prepare:!0},r=0;function f(C){return typeof C=="object"&&typeof C.then=="function"}function l(C){let y=!1,w=t[C.type];return C.type==="decl"?y=C.prop.toLowerCase():C.type==="atrule"&&(y=C.name.toLowerCase()),y&&C.append?[w,w+"-"+y,r,w+"Exit",w+"Exit-"+y]:y?[w,w+"-"+y,w+"Exit",w+"Exit-"+y]:C.append?[w,r,w+"Exit"]:[w,w+"Exit"]}function g(C){let y;return C.type==="document"?y=["Document",r,"DocumentExit"]:C.type==="root"?y=["Root",r,"RootExit"]:y=l(C),{eventIndex:0,events:y,iterator:0,node:C,visitorIndex:0,visitors:[]}}function x(C){return C[e]=!1,C.nodes&&C.nodes.forEach(y=>x(y)),C}let b={};class v{constructor(y,w,S){this.stringified=!1,this.processed=!1;let P;if(typeof w=="object"&&w!==null&&(w.type==="root"||w.type==="document"))P=x(w);else if(w instanceof v||w instanceof m)P=x(w.root),w.map&&(typeof S.map=="undefined"&&(S.map={}),S.map.inline||(S.map.inline=!1),S.map.prev=w.map);else{let A=a;S.syntax&&(A=S.syntax.parse),S.parser&&(A=S.parser),A.parse&&(A=A.parse);try{P=A(w,S)}catch(_){this.processed=!0,this.error=_}P&&!P[i]&&s.rebuild(P)}this.result=new m(y,P,S),this.helpers=ie(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(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,w){let S=this.result.lastPlugin;try{w&&w.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=S.postcssPlugin,y.setMessage()):S.postcssVersion}catch(P){console&&console.error&&console.error(P)}return y}prepareVisitors(){this.listeners={};let y=(w,S,P)=>{this.listeners[S]||(this.listeners[S]=[]),this.listeners[S].push([w,P])};for(let w of this.plugins)if(typeof w=="object")for(let S in w){if(!o[S]&&/^[A-Z]/.test(S))throw new Error(`Unknown event ${S} in ${w.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!n[S])if(typeof w[S]=="object")for(let P in w[S])P==="*"?y(w,S,w[S][P]):y(w,S+"-"+P.toLowerCase(),w[S][P]);else typeof w[S]=="function"&&y(w,S,w[S])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let w=this.plugins[y],S=this.runOnRoot(w);if(f(S))try{await S}catch(P){throw this.handleError(P)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[e];){y[e]=!0;let w=[g(y)];for(;w.length>0;){let S=this.visitTick(w);if(f(S))try{await S}catch(P){let A=w[w.length-1].node;throw this.handleError(P,A)}}}if(this.listeners.OnceExit)for(let[w,S]of this.listeners.OnceExit){this.result.lastPlugin=w;try{if(y.type==="document"){let P=y.nodes.map(A=>S(A,this.helpers));await Promise.all(P)}else await S(y,this.helpers)}catch(P){throw this.handleError(P)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let w=this.result.root.nodes.map(S=>y.Once(S,this.helpers));return f(w[0])?Promise.all(w):w}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(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 y=this.result.opts,w=d;y.syntax&&(w=y.syntax.stringify),y.stringifier&&(w=y.stringifier),w.stringify&&(w=w.stringify);let P=new u(w,this.result.root,this.result.opts).generate();return this.result.css=P[0],this.result.map=P[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 y of this.plugins){let w=this.runOnRoot(y);if(f(w))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[e];)y[e]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let w of y.nodes)this.visitSync(this.listeners.OnceExit,w);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,w){return this.async().then(y,w)}toString(){return this.css}visitSync(y,w){for(let[S,P]of y){this.result.lastPlugin=S;let A;try{A=P(w,this.helpers)}catch(_){throw this.handleError(_,w.proxyOf)}if(w.type!=="root"&&w.type!=="document"&&!w.parent)return!0;if(f(A))throw this.getAsyncError()}}visitTick(y){let w=y[y.length-1],{node:S,visitors:P}=w;if(S.type!=="root"&&S.type!=="document"&&!S.parent){y.pop();return}if(P.length>0&&w.visitorIndex<P.length){let[_,U]=P[w.visitorIndex];w.visitorIndex+=1,w.visitorIndex===P.length&&(w.visitors=[],w.visitorIndex=0),this.result.lastPlugin=_;try{return U(S.toProxy(),this.helpers)}catch(I){throw this.handleError(I,S)}}if(w.iterator!==0){let _=w.iterator,U;for(;U=S.nodes[S.indexes[_]];)if(S.indexes[_]+=1,!U[e]){U[e]=!0,y.push(g(U));return}w.iterator=0,delete S.indexes[_]}let A=w.events;for(;w.eventIndex<A.length;){let _=A[w.eventIndex];if(w.eventIndex+=1,_===r){S.nodes&&S.nodes.length&&(S[e]=!0,w.iterator=S.getIterator());return}else if(this.listeners[_]){w.visitors=this.listeners[_];return}}y.pop()}walkSync(y){y[e]=!0;let w=l(y);for(let S of w)if(S===r)y.nodes&&y.each(P=>{P[e]||this.walkSync(P)});else{let P=this.listeners[S];if(P&&this.visitSync(P,y.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 v.registerPostcss=C=>{b=C},Ot=v,v.default=v,h.registerLazyResult(v),c.registerLazyResult(v),Ot}var Pt,ls;function on(){if(ls)return Pt;ls=1;let e=fi(),i=We(),u=hi(),d=br();const s=gr();class c{constructor(m,a,h){a=a.toString(),this.stringified=!1,this._processor=m,this._css=a,this._opts=h,this._map=void 0;let t,o=i;this.result=new s(this._processor,t,this._opts),this.result.css=a;let n=this;Object.defineProperty(this.result,"root",{get(){return n.root}});let r=new e(o,t,this._opts,a);if(r.isMap()){let[f,l]=r.generate();f&&(this.result.css=f),l&&(this.result.map=l)}else r.clearAnnotation(),this.result.css=r.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(m){return this.async().catch(m)}finally(m){return this.async().then(m,m)}sync(){if(this.error)throw this.error;return this.result}then(m,a){return this.async().then(m,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 m,a=d;try{m=a(this._css,this._opts)}catch(h){this.error=h}if(this.error)throw this.error;return this._root=m,m}get[Symbol.toStringTag](){return"NoWorkResult"}}return Pt=c,c.default=c,Pt}var _t,as;function ln(){if(as)return _t;as=1;let e=on(),i=di(),u=mr(),d=Ae();class s{constructor(p=[]){this.version="8.4.38",this.plugins=this.normalize(p)}normalize(p){let m=[];for(let a of p)if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),typeof a=="object"&&Array.isArray(a.plugins))m=m.concat(a.plugins);else if(typeof a=="object"&&a.postcssPlugin)m.push(a);else if(typeof a=="function")m.push(a);else if(!(typeof a=="object"&&(a.parse||a.stringify)))throw new Error(a+" is not a PostCSS plugin");return m}process(p,m={}){return!this.plugins.length&&!m.parser&&!m.stringifier&&!m.syntax?new e(this,p,m):new i(this,p,m)}use(p){return this.plugins=this.plugins.concat(this.normalize([p])),this}}return _t=s,s.default=s,d.registerProcessor(s),u.registerProcessor(s),_t}var Et,us;function an(){if(us)return Et;us=1;let e=Ve(),i=ui(),u=Je(),d=wr(),s=Ge(),c=Ae(),p=yr();function m(a,h){if(Array.isArray(a))return a.map(f=>m(f));let n=a,{inputs:t}=n,o=Re(n,["inputs"]);if(t){h=[];for(let f of t){let l=ie(Q({},f),{__proto__:s.prototype});l.map&&(l.map=ie(Q({},l.map),{__proto__:i.prototype})),h.push(l)}}if(o.nodes&&(o.nodes=a.nodes.map(f=>m(f,h))),o.source){let r=o.source,{inputId:f}=r,l=Re(r,["inputId"]);o.source=l,f!=null&&(o.source.input=h[f])}if(o.type==="root")return new c(o);if(o.type==="decl")return new e(o);if(o.type==="rule")return new p(o);if(o.type==="comment")return new u(o);if(o.type==="atrule")return new d(o);throw new Error("Unknown node type: "+a.type)}return Et=m,m.default=m,Et}var At,fs;function un(){if(fs)return At;fs=1;let e=pr(),i=Ve(),u=di(),d=ce(),s=ln(),c=We(),p=an(),m=mr(),a=ci(),h=Je(),t=wr(),o=gr(),n=Ge(),r=br(),f=pi(),l=yr(),g=Ae(),x=$e();function b(...v){return v.length===1&&Array.isArray(v[0])&&(v=v[0]),new s(v)}return b.plugin=function(C,y){let w=!1;function S(...A){console&&console.warn&&!w&&(w=!0,console.warn(C+`: postcss.plugin was deprecated. Migration guide:
|
|
38
|
-
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(
|
|
39
|
-
https://www.w3ctech.com/topic/2226`));let _=y(...A);return _.postcssPlugin=C,_.postcssVersion=new s().version,_}let P;return Object.defineProperty(S,"postcss",{get(){return P||(P=S()),P}}),S.process=function(A,_,U){return b([S(U)]).process(A,_)},S},b.stringify=c,b.parse=r,b.fromJSON=p,b.list=f,b.comment=v=>new h(v),b.atRule=v=>new t(v),b.decl=v=>new i(v),b.rule=v=>new l(v),b.root=v=>new g(v),b.document=v=>new m(v),b.CssSyntaxError=e,b.Declaration=i,b.Container=d,b.Processor=s,b.Document=m,b.Comment=h,b.Warning=a,b.AtRule=t,b.Result=o,b.Input=n,b.Rule=l,b.Root=g,b.Node=x,u.registerPostcss(b),At=b,b.default=b,At}var fn=un();const V=Ki(fn);V.stringify;V.fromJSON;V.plugin;V.parse;V.list;V.document;V.comment;V.atRule;V.rule;V.decl;V.root;V.CssSyntaxError;V.Declaration;V.Container;V.Processor;V.Document;V.Comment;V.Warning;V.AtRule;V.Result;V.Input;V.Rule;V.Root;V.Node;function hn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function cn(e){if(e.__esModule)return e;var i=e.default;if(typeof i=="function"){var u=function d(){return this instanceof d?Reflect.construct(i,arguments,this.constructor):i.apply(this,arguments)};u.prototype=i.prototype}else u={};return Object.defineProperty(u,"__esModule",{value:!0}),Object.keys(e).forEach(function(d){var s=Object.getOwnPropertyDescriptor(e,d);Object.defineProperty(u,d,s.get?s:{enumerable:!0,get:function(){return e[d]}})}),u}var De={exports:{}},hs;function pn(){if(hs)return De.exports;hs=1;var e=String,i=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 De.exports=i(),De.exports.createColors=i,De.exports}const dn={},mn=Object.freeze(Object.defineProperty({__proto__:null,default:dn},Symbol.toStringTag,{value:"Module"})),re=cn(mn);var kt,cs;function vr(){if(cs)return kt;cs=1;let e=pn(),i=re;class u extends Error{constructor(s,c,p,m,a,h){super(s),this.name="CssSyntaxError",this.reason=s,a&&(this.file=a),m&&(this.source=m),h&&(this.plugin=h),typeof c!="undefined"&&typeof p!="undefined"&&(typeof c=="number"?(this.line=c,this.column=p):(this.line=c.line,this.column=c.column,this.endLine=p.line,this.endColumn=p.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,u)}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 c=this.source;s==null&&(s=e.isColorSupported),i&&s&&(c=i(c));let p=c.split(/\r?\n/),m=Math.max(this.line-3,0),a=Math.min(this.line+2,p.length),h=String(a).length,t,o;if(s){let{bold:n,gray:r,red:f}=e.createColors(!0);t=l=>n(f(l)),o=l=>r(l)}else t=o=n=>n;return p.slice(m,a).map((n,r)=>{let f=m+1+r,l=" "+(" "+f).slice(-h)+" | ";if(f===this.line){let g=o(l.replace(/\d/g," "))+n.slice(0,this.column-1).replace(/[^\t]/g," ");return t(">")+o(l)+n+`
|
|
40
|
-
`+g+
|
|
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(`
|
|
41
44
|
`)}toString(){let s=this.showSourceCode();return s&&(s=`
|
|
42
45
|
|
|
43
46
|
`+s+`
|
|
44
|
-
`),this.name+": "+this.message+s}}return
|
|
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:`
|
|
45
48
|
`,beforeClose:`
|
|
46
49
|
`,beforeComment:`
|
|
47
50
|
`,beforeDecl:`
|
|
48
51
|
`,beforeOpen:" ",beforeRule:`
|
|
49
|
-
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function i
|
|
50
|
-
`)){let
|
|
51
|
-
`)&&(
|
|
52
|
-
`)&&(
|
|
53
|
-
`)&&(
|
|
54
|
-
`)&&(
|
|
55
|
-
`);return
|
|
56
|
-
`?(
|
|
57
|
-
`);
|
|
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=`
|
|
58
61
|
`;this.css.includes(`\r
|
|
59
|
-
`)&&(
|
|
60
|
-
`),this.css+=
|
|
61
|
-
`),r=b.length-x):r+=b.length,v&&C!=="start"){let y=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==y.last||y.raws.semicolon)&&(v.source&&v.source.end?(l.source=this.sourcePath(v),l.original.line=v.source.end.line,l.original.column=v.source.end.column-1,l.generated.line=n,l.generated.column=r-2,this.map.addMapping(l)):(l.source=f,l.original.line=1,l.original.column=0,l.generated.line=n,l.generated.column=r-1,this.map.addMapping(l)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(n=>n.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let n=this.mapOpts.annotation;return typeof n!="undefined"&&n!==!0?!1:this.previous().length?this.previous().some(r=>r.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(n=>n.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(n){if(this.mapOpts.absolute||n.charCodeAt(0)===60||/^\w+:\/\//.test(n))return n;let r=this.memoizedPaths.get(n);if(r)return r;let f=this.opts.to?u(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(f=u(s(f,this.mapOpts.annotation)));let l=d(f,n);return this.memoizedPaths.set(n,l),l}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(n=>{if(n.source&&n.source.input.map){let r=n.source.input.map;this.previousMaps.includes(r)||this.previousMaps.push(r)}});else{let n=new m(this.originalCSS,this.opts);n.map&&this.previousMaps.push(n.map)}return this.previousMaps}setSourcesContent(){let n={};if(this.root)this.root.walk(r=>{if(r.source){let f=r.source.input.from;if(f&&!n[f]){n[f]=!0;let l=this.usesFileUrls?this.toFileUrl(f):this.toUrl(this.path(f));this.map.setSourceContent(l,r.source.input.css)}}});else if(this.css){let r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}}sourcePath(n){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(n.source.input.from):this.toUrl(this.path(n.source.input.from))}toBase64(n){return Buffer?Buffer.from(n).toString("base64"):window.btoa(unescape(encodeURIComponent(n)))}toFileUrl(n){let r=this.memoizedFileURLs.get(n);if(r)return r;if(p){let f=p(n).toString();return this.memoizedFileURLs.set(n,f),f}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(n){let r=this.memoizedURLs.get(n);if(r)return r;c==="\\"&&(n=n.replace(/\\/g,"/"));let f=encodeURI(n).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(n,f),f}}return zt=t,zt}var qt,xs;function Xe(){if(xs)return qt;xs=1;let e=Ye();class i extends e{constructor(d){super(d),this.type="comment"}}return qt=i,i.default=i,qt}var Bt,Cs;function pe(){if(Cs)return Bt;Cs=1;let{isClean:e,my:i}=Sr(),u=Qe(),d=Xe(),s=Ye(),c,p,m,a;function h(n){return n.map(r=>(r.nodes&&(r.nodes=h(r.nodes)),delete r.source,r))}function t(n){if(n[e]=!1,n.proxyOf.nodes)for(let r of n.proxyOf.nodes)t(r)}class o extends s{append(...r){for(let f of r){let l=this.normalize(f,this.last);for(let g of l)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(r){if(super.cleanRaws(r),this.nodes)for(let f of this.nodes)f.cleanRaws(r)}each(r){if(!this.proxyOf.nodes)return;let f=this.getIterator(),l,g;for(;this.indexes[f]<this.proxyOf.nodes.length&&(l=this.indexes[f],g=r(this.proxyOf.nodes[l],l),g!==!1);)this.indexes[f]+=1;return delete this.indexes[f],g}every(r){return this.nodes.every(r)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let r=this.lastEach;return this.indexes[r]=0,r}getProxyProcessor(){return{get(r,f){return f==="proxyOf"?r:r[f]?f==="each"||typeof f=="string"&&f.startsWith("walk")?(...l)=>r[f](...l.map(g=>typeof g=="function"?(x,b)=>g(x.toProxy(),b):g)):f==="every"||f==="some"?l=>r[f]((g,...x)=>l(g.toProxy(),...x)):f==="root"?()=>r.root().toProxy():f==="nodes"?r.nodes.map(l=>l.toProxy()):f==="first"||f==="last"?r[f].toProxy():r[f]:r[f]},set(r,f,l){return r[f]===l||(r[f]=l,(f==="name"||f==="params"||f==="selector")&&r.markDirty()),!0}}}index(r){return typeof r=="number"?r:(r.proxyOf&&(r=r.proxyOf),this.proxyOf.nodes.indexOf(r))}insertAfter(r,f){let l=this.index(r),g=this.normalize(f,this.proxyOf.nodes[l]).reverse();l=this.index(r);for(let b of g)this.proxyOf.nodes.splice(l+1,0,b);let x;for(let b in this.indexes)x=this.indexes[b],l<x&&(this.indexes[b]=x+g.length);return this.markDirty(),this}insertBefore(r,f){let l=this.index(r),g=l===0?"prepend":!1,x=this.normalize(f,this.proxyOf.nodes[l],g).reverse();l=this.index(r);for(let v of x)this.proxyOf.nodes.splice(l,0,v);let b;for(let v in this.indexes)b=this.indexes[v],l<=b&&(this.indexes[v]=b+x.length);return this.markDirty(),this}normalize(r,f){if(typeof r=="string")r=h(c(r).nodes);else if(typeof r=="undefined")r=[];else if(Array.isArray(r)){r=r.slice(0);for(let g of r)g.parent&&g.parent.removeChild(g,"ignore")}else if(r.type==="root"&&this.type!=="document"){r=r.nodes.slice(0);for(let g of r)g.parent&&g.parent.removeChild(g,"ignore")}else if(r.type)r=[r];else if(r.prop){if(typeof r.value=="undefined")throw new Error("Value field is missed in node creation");typeof r.value!="string"&&(r.value=String(r.value)),r=[new u(r)]}else if(r.selector)r=[new p(r)];else if(r.name)r=[new m(r)];else if(r.text)r=[new d(r)];else throw new Error("Unknown node type in node creation");return r.map(g=>(g[i]||o.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&t(g),typeof g.raws.before=="undefined"&&f&&typeof f.raws.before!="undefined"&&(g.raws.before=f.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...r){r=r.reverse();for(let f of r){let l=this.normalize(f,this.first,"prepend").reverse();for(let g of l)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+l.length}return this.markDirty(),this}push(r){return r.parent=this,this.proxyOf.nodes.push(r),this}removeAll(){for(let r of this.proxyOf.nodes)r.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(r){r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1);let f;for(let l in this.indexes)f=this.indexes[l],f>=r&&(this.indexes[l]=f-1);return this.markDirty(),this}replaceValues(r,f,l){return l||(l=f,f={}),this.walkDecls(g=>{f.props&&!f.props.includes(g.prop)||f.fast&&!g.value.includes(f.fast)||(g.value=g.value.replace(r,l))}),this.markDirty(),this}some(r){return this.nodes.some(r)}walk(r){return this.each((f,l)=>{let g;try{g=r(f,l)}catch(x){throw f.addToError(x)}return g!==!1&&f.walk&&(g=f.walk(r)),g})}walkAtRules(r,f){return f?r instanceof RegExp?this.walk((l,g)=>{if(l.type==="atrule"&&r.test(l.name))return f(l,g)}):this.walk((l,g)=>{if(l.type==="atrule"&&l.name===r)return f(l,g)}):(f=r,this.walk((l,g)=>{if(l.type==="atrule")return f(l,g)}))}walkComments(r){return this.walk((f,l)=>{if(f.type==="comment")return r(f,l)})}walkDecls(r,f){return f?r instanceof RegExp?this.walk((l,g)=>{if(l.type==="decl"&&r.test(l.prop))return f(l,g)}):this.walk((l,g)=>{if(l.type==="decl"&&l.prop===r)return f(l,g)}):(f=r,this.walk((l,g)=>{if(l.type==="decl")return f(l,g)}))}walkRules(r,f){return f?r instanceof RegExp?this.walk((l,g)=>{if(l.type==="rule"&&r.test(l.selector))return f(l,g)}):this.walk((l,g)=>{if(l.type==="rule"&&l.selector===r)return f(l,g)}):(f=r,this.walk((l,g)=>{if(l.type==="rule")return f(l,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 o.registerParse=n=>{c=n},o.registerRule=n=>{p=n},o.registerAtRule=n=>{m=n},o.registerRoot=n=>{a=n},Bt=o,o.default=o,o.rebuild=n=>{n.type==="atrule"?Object.setPrototypeOf(n,m.prototype):n.type==="rule"?Object.setPrototypeOf(n,p.prototype):n.type==="decl"?Object.setPrototypeOf(n,u.prototype):n.type==="comment"?Object.setPrototypeOf(n,d.prototype):n.type==="root"&&Object.setPrototypeOf(n,a.prototype),n[i]=!0,n.nodes&&n.nodes.forEach(r=>{o.rebuild(r)})},Bt}var jt,Rs;function xr(){if(Rs)return jt;Rs=1;let e=pe(),i,u;class d extends e{constructor(c){super(Q({type:"document"},c)),this.nodes||(this.nodes=[])}toResult(c={}){return new i(new u,this,c).stringify()}}return d.registerLazyResult=s=>{i=s},d.registerProcessor=s=>{u=s},jt=d,d.default=d,jt}var Tt,Os;function yi(){if(Os)return Tt;Os=1;let e={};return Tt=function(u){e[u]||(e[u]=!0,typeof console!="undefined"&&console.warn&&console.warn(u))},Tt}var Wt,Ps;function bi(){if(Ps)return Wt;Ps=1;class e{constructor(u,d={}){if(this.type="warning",this.text=u,d.node&&d.node.source){let s=d.node.rangeBy(d);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in d)this[s]=d[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 Wt=e,e.default=e,Wt}var $t,_s;function Cr(){if(_s)return $t;_s=1;let e=bi();class i{constructor(d,s,c){this.processor=d,this.messages=[],this.root=s,this.opts=c,this.css=void 0,this.map=void 0}toString(){return this.css}warn(d,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let c=new e(d,s);return this.messages.push(c),c}warnings(){return this.messages.filter(d=>d.type==="warning")}get content(){return this.css}}return $t=i,i.default=i,$t}var Vt,Es;function wn(){if(Es)return Vt;Es=1;const e=39,i=34,u=92,d=47,s=10,c=32,p=12,m=9,a=13,h=91,t=93,o=40,n=41,r=123,f=125,l=59,g=42,x=58,b=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,C=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,w=/[\da-f]/i;return Vt=function(P,A={}){let _=P.css.valueOf(),U=A.ignoreErrors,I,O,T,Y,q,$,k,j,D,M,K=_.length,R=0,E=[],F=[];function B(){return R}function N(Z){throw P.error("Unclosed "+Z,R)}function X(){return F.length===0&&R>=K}function Me(Z){if(F.length)return F.pop();if(R>=K)return;let ae=Z?Z.ignoreUnclosed:!1;switch(I=_.charCodeAt(R),I){case s:case c:case m:case a:case p:{O=R;do O+=1,I=_.charCodeAt(O);while(I===c||I===s||I===m||I===a||I===p);M=["space",_.slice(R,O)],R=O-1;break}case h:case t:case r:case f:case x:case l:case n:{let Ce=String.fromCharCode(I);M=[Ce,Ce,R];break}case o:{if(j=E.length?E.pop()[1]:"",D=_.charCodeAt(R+1),j==="url"&&D!==e&&D!==i&&D!==c&&D!==s&&D!==m&&D!==p&&D!==a){O=R;do{if($=!1,O=_.indexOf(")",O+1),O===-1)if(U||ae){O=R;break}else N("bracket");for(k=O;_.charCodeAt(k-1)===u;)k-=1,$=!$}while($);M=["brackets",_.slice(R,O+1),R,O],R=O}else O=_.indexOf(")",R+1),Y=_.slice(R,O+1),O===-1||y.test(Y)?M=["(","(",R]:(M=["brackets",Y,R,O],R=O);break}case e:case i:{T=I===e?"'":'"',O=R;do{if($=!1,O=_.indexOf(T,O+1),O===-1)if(U||ae){O=R+1;break}else N("string");for(k=O;_.charCodeAt(k-1)===u;)k-=1,$=!$}while($);M=["string",_.slice(R,O+1),R,O],R=O;break}case b:{v.lastIndex=R+1,v.test(_),v.lastIndex===0?O=_.length-1:O=v.lastIndex-2,M=["at-word",_.slice(R,O+1),R,O],R=O;break}case u:{for(O=R,q=!0;_.charCodeAt(O+1)===u;)O+=1,q=!q;if(I=_.charCodeAt(O+1),q&&I!==d&&I!==c&&I!==s&&I!==m&&I!==a&&I!==p&&(O+=1,w.test(_.charAt(O)))){for(;w.test(_.charAt(O+1));)O+=1;_.charCodeAt(O+1)===c&&(O+=1)}M=["word",_.slice(R,O+1),R,O],R=O;break}default:{I===d&&_.charCodeAt(R+1)===g?(O=_.indexOf("*/",R+2)+1,O===0&&(U||ae?O=_.length:N("comment")),M=["comment",_.slice(R,O+1),R,O],R=O):(C.lastIndex=R+1,C.test(_),C.lastIndex===0?O=_.length-1:O=C.lastIndex-2,M=["word",_.slice(R,O+1),R,O],E.push(M),R=O);break}}return R++,M}function Ne(Z){F.push(Z)}return{back:Ne,endOfFile:X,nextToken:Me,position:B}},Vt}var Gt,As;function Rr(){if(As)return Gt;As=1;let e=pe();class i extends e{constructor(d){super(d),this.type="atrule"}append(...d){return this.proxyOf.nodes||(this.nodes=[]),super.append(...d)}prepend(...d){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...d)}}return Gt=i,i.default=i,e.registerAtRule(i),Gt}var Jt,ks;function ke(){if(ks)return Jt;ks=1;let e=pe(),i,u;class d extends e{constructor(c){super(c),this.type="root",this.nodes||(this.nodes=[])}normalize(c,p,m){let a=super.normalize(c);if(p){if(m==="prepend")this.nodes.length>1?p.raws.before=this.nodes[1].raws.before:delete p.raws.before;else if(this.first!==p)for(let h of a)h.raws.before=p.raws.before}return a}removeChild(c,p){let m=this.index(c);return!p&&m===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[m].raws.before),super.removeChild(c)}toResult(c={}){return new i(new u,this,c).stringify()}}return d.registerLazyResult=s=>{i=s},d.registerProcessor=s=>{u=s},Jt=d,d.default=d,e.registerRoot(d),Jt}var Ht,Ms;function vi(){if(Ms)return Ht;Ms=1;let e={comma(i){return e.split(i,[","],!0)},space(i){let u=[" ",`
|
|
62
|
-
`," "];return e.split(i,u)},split(i,u,d){let s=[],c="",p=!1,m=0,a=!1,h="",t=!1;for(let o of i)t?t=!1:o==="\\"?t=!0:a?o===h&&(a=!1):o==='"'||o==="'"?(a=!0,h=o):o==="("?m+=1:o===")"?m>0&&(m-=1):m===0&&u.includes(o)&&(p=!0),p?(c!==""&&s.push(c.trim()),c="",p=!1):c+=o;return(d||c!=="")&&s.push(c.trim()),s}};return Ht=e,e.default=e,Ht}var Yt,Ns;function Or(){if(Ns)return Yt;Ns=1;let e=pe(),i=vi();class u extends e{constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return i.comma(this.selector)}set selectors(s){let c=this.selector?this.selector.match(/,\s*/):null,p=c?c[0]:","+this.raw("between","beforeOpen");this.selector=s.join(p)}}return Yt=u,u.default=u,e.registerRule(u),Yt}var Qt,Is;function yn(){if(Is)return Qt;Is=1;let e=Qe(),i=wn(),u=Xe(),d=Rr(),s=ke(),c=Or();const p={empty:!0,space:!0};function m(h){for(let t=h.length-1;t>=0;t--){let o=h[t],n=o[3]||o[2];if(n)return n}}class a{constructor(t){this.input=t,this.root=new s,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let o=new d;o.name=t[1].slice(1),o.name===""&&this.unnamedAtrule(o,t),this.init(o,t[2]);let n,r,f,l=!1,g=!1,x=[],b=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),n=t[0],n==="("||n==="["?b.push(n==="("?")":"]"):n==="{"&&b.length>0?b.push("}"):n===b[b.length-1]&&b.pop(),b.length===0)if(n===";"){o.source.end=this.getPosition(t[2]),o.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){g=!0;break}else if(n==="}"){if(x.length>0){for(f=x.length-1,r=x[f];r&&r[0]==="space";)r=x[--f];r&&(o.source.end=this.getPosition(r[3]||r[2]),o.source.end.offset++)}this.end(t);break}else x.push(t);else x.push(t);if(this.tokenizer.endOfFile()){l=!0;break}}o.raws.between=this.spacesAndCommentsFromEnd(x),x.length?(o.raws.afterName=this.spacesAndCommentsFromStart(x),this.raw(o,"params",x),l&&(t=x[x.length-1],o.source.end=this.getPosition(t[3]||t[2]),o.source.end.offset++,this.spaces=o.raws.between,o.raws.between="")):(o.raws.afterName="",o.params=""),g&&(o.nodes=[],this.current=o)}checkMissedSemicolon(t){let o=this.colon(t);if(o===!1)return;let n=0,r;for(let f=o-1;f>=0&&(r=t[f],!(r[0]!=="space"&&(n+=1,n===2)));f--);throw this.input.error("Missed semicolon",r[0]==="word"?r[3]+1:r[2])}colon(t){let o=0,n,r,f;for(let[l,g]of t.entries()){if(n=g,r=n[0],r==="("&&(o+=1),r===")"&&(o-=1),o===0&&r===":")if(!f)this.doubleColon(n);else{if(f[0]==="word"&&f[1]==="progid")continue;return l}f=n}return!1}comment(t){let o=new u;this.init(o,t[2]),o.source.end=this.getPosition(t[3]||t[2]),o.source.end.offset++;let n=t[1].slice(2,-2);if(/^\s*$/.test(n))o.text="",o.raws.left=n,o.raws.right="";else{let r=n.match(/^(\s*)([^]*\S)(\s*)$/);o.text=r[2],o.raws.left=r[1],o.raws.right=r[3]}}createTokenizer(){this.tokenizer=i(this.input)}decl(t,o){let n=new e;this.init(n,t[0][2]);let r=t[t.length-1];for(r[0]===";"&&(this.semicolon=!0,t.pop()),n.source.end=this.getPosition(r[3]||r[2]||m(t)),n.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),n.raws.before+=t.shift()[1];for(n.source.start=this.getPosition(t[0][2]),n.prop="";t.length;){let b=t[0][0];if(b===":"||b==="space"||b==="comment")break;n.prop+=t.shift()[1]}n.raws.between="";let f;for(;t.length;)if(f=t.shift(),f[0]===":"){n.raws.between+=f[1];break}else f[0]==="word"&&/\w/.test(f[1])&&this.unknownWord([f]),n.raws.between+=f[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let l=[],g;for(;t.length&&(g=t[0][0],!(g!=="space"&&g!=="comment"));)l.push(t.shift());this.precheckMissedSemicolon(t);for(let b=t.length-1;b>=0;b--){if(f=t[b],f[1].toLowerCase()==="!important"){n.important=!0;let v=this.stringFrom(t,b);v=this.spacesFromEnd(t)+v,v!==" !important"&&(n.raws.important=v);break}else if(f[1].toLowerCase()==="important"){let v=t.slice(0),C="";for(let y=b;y>0;y--){let w=v[y][0];if(C.trim().indexOf("!")===0&&w!=="space")break;C=v.pop()[1]+C}C.trim().indexOf("!")===0&&(n.important=!0,n.raws.important=C,t=v)}if(f[0]!=="space"&&f[0]!=="comment")break}t.some(b=>b[0]!=="space"&&b[0]!=="comment")&&(n.raws.between+=l.map(b=>b[1]).join(""),l=[]),this.raw(n,"value",l.concat(t),o),n.value.includes(":")&&!o&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let o=new c;this.init(o,t[2]),o.selector="",o.raws.between="",this.current=o}end(t){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(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}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(t){if(this.spaces+=t[1],this.current.nodes){let o=this.current.nodes[this.current.nodes.length-1];o&&o.type==="rule"&&!o.raws.ownSemicolon&&(o.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){let o=this.input.fromOffset(t);return{column:o.col,line:o.line,offset:t}}init(t,o){this.current.push(t),t.source={input:this.input,start:this.getPosition(o)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)}other(t){let o=!1,n=null,r=!1,f=null,l=[],g=t[1].startsWith("--"),x=[],b=t;for(;b;){if(n=b[0],x.push(b),n==="("||n==="[")f||(f=b),l.push(n==="("?")":"]");else if(g&&r&&n==="{")f||(f=b),l.push("}");else if(l.length===0)if(n===";")if(r){this.decl(x,g);return}else break;else if(n==="{"){this.rule(x);return}else if(n==="}"){this.tokenizer.back(x.pop()),o=!0;break}else n===":"&&(r=!0);else n===l[l.length-1]&&(l.pop(),l.length===0&&(f=null));b=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(o=!0),l.length>0&&this.unclosedBracket(f),o&&r){if(!g)for(;x.length&&(b=x[x.length-1][0],!(b!=="space"&&b!=="comment"));)this.tokenizer.back(x.pop());this.decl(x,g)}else this.unknownWord(x)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()}precheckMissedSemicolon(){}raw(t,o,n,r){let f,l,g=n.length,x="",b=!0,v,C;for(let y=0;y<g;y+=1)f=n[y],l=f[0],l==="space"&&y===g-1&&!r?b=!1:l==="comment"?(C=n[y-1]?n[y-1][0]:"empty",v=n[y+1]?n[y+1][0]:"empty",!p[C]&&!p[v]?x.slice(-1)===","?b=!1:x+=f[1]:b=!1):x+=f[1];if(!b){let y=n.reduce((w,S)=>w+S[1],"");t.raws[o]={raw:y,value:x}}t[o]=x}rule(t){t.pop();let o=new c;this.init(o,t[0][2]),o.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(o,"selector",t),this.current=o}spacesAndCommentsFromEnd(t){let o,n="";for(;t.length&&(o=t[t.length-1][0],!(o!=="space"&&o!=="comment"));)n=t.pop()[1]+n;return n}spacesAndCommentsFromStart(t){let o,n="";for(;t.length&&(o=t[0][0],!(o!=="space"&&o!=="comment"));)n+=t.shift()[1];return n}spacesFromEnd(t){let o,n="";for(;t.length&&(o=t[t.length-1][0],o==="space");)n=t.pop()[1]+n;return n}stringFrom(t,o){let n="";for(let r=o;r<t.length;r++)n+=t[r][1];return t.splice(o,t.length-o),n}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,o){throw this.input.error("At-rule without name",{offset:o[2]},{offset:o[2]+o[1].length})}}return Qt=a,Qt}var Kt,Ls;function Pr(){if(Ls)return Kt;Ls=1;let e=pe(),i=yn(),u=Ke();function d(s,c){let p=new u(s,c),m=new i(p);try{m.parse()}catch(a){throw a}return m.root}return Kt=d,d.default=d,e.registerParse(d),Kt}var Xt,Us;function Si(){if(Us)return Xt;Us=1;let{isClean:e,my:i}=Sr(),u=wi(),d=He(),s=pe(),c=xr(),p=yi(),m=Cr(),a=Pr(),h=ke();const t={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},o={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},n={Once:!0,postcssPlugin:!0,prepare:!0},r=0;function f(C){return typeof C=="object"&&typeof C.then=="function"}function l(C){let y=!1,w=t[C.type];return C.type==="decl"?y=C.prop.toLowerCase():C.type==="atrule"&&(y=C.name.toLowerCase()),y&&C.append?[w,w+"-"+y,r,w+"Exit",w+"Exit-"+y]:y?[w,w+"-"+y,w+"Exit",w+"Exit-"+y]:C.append?[w,r,w+"Exit"]:[w,w+"Exit"]}function g(C){let y;return C.type==="document"?y=["Document",r,"DocumentExit"]:C.type==="root"?y=["Root",r,"RootExit"]:y=l(C),{eventIndex:0,events:y,iterator:0,node:C,visitorIndex:0,visitors:[]}}function x(C){return C[e]=!1,C.nodes&&C.nodes.forEach(y=>x(y)),C}let b={};class v{constructor(y,w,S){this.stringified=!1,this.processed=!1;let P;if(typeof w=="object"&&w!==null&&(w.type==="root"||w.type==="document"))P=x(w);else if(w instanceof v||w instanceof m)P=x(w.root),w.map&&(typeof S.map=="undefined"&&(S.map={}),S.map.inline||(S.map.inline=!1),S.map.prev=w.map);else{let A=a;S.syntax&&(A=S.syntax.parse),S.parser&&(A=S.parser),A.parse&&(A=A.parse);try{P=A(w,S)}catch(_){this.processed=!0,this.error=_}P&&!P[i]&&s.rebuild(P)}this.result=new m(y,P,S),this.helpers=ie(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(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,w){let S=this.result.lastPlugin;try{w&&w.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=S.postcssPlugin,y.setMessage()):S.postcssVersion}catch(P){console&&console.error&&console.error(P)}return y}prepareVisitors(){this.listeners={};let y=(w,S,P)=>{this.listeners[S]||(this.listeners[S]=[]),this.listeners[S].push([w,P])};for(let w of this.plugins)if(typeof w=="object")for(let S in w){if(!o[S]&&/^[A-Z]/.test(S))throw new Error(`Unknown event ${S} in ${w.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!n[S])if(typeof w[S]=="object")for(let P in w[S])P==="*"?y(w,S,w[S][P]):y(w,S+"-"+P.toLowerCase(),w[S][P]);else typeof w[S]=="function"&&y(w,S,w[S])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let w=this.plugins[y],S=this.runOnRoot(w);if(f(S))try{await S}catch(P){throw this.handleError(P)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[e];){y[e]=!0;let w=[g(y)];for(;w.length>0;){let S=this.visitTick(w);if(f(S))try{await S}catch(P){let A=w[w.length-1].node;throw this.handleError(P,A)}}}if(this.listeners.OnceExit)for(let[w,S]of this.listeners.OnceExit){this.result.lastPlugin=w;try{if(y.type==="document"){let P=y.nodes.map(A=>S(A,this.helpers));await Promise.all(P)}else await S(y,this.helpers)}catch(P){throw this.handleError(P)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let w=this.result.root.nodes.map(S=>y.Once(S,this.helpers));return f(w[0])?Promise.all(w):w}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(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 y=this.result.opts,w=d;y.syntax&&(w=y.syntax.stringify),y.stringifier&&(w=y.stringifier),w.stringify&&(w=w.stringify);let P=new u(w,this.result.root,this.result.opts).generate();return this.result.css=P[0],this.result.map=P[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 y of this.plugins){let w=this.runOnRoot(y);if(f(w))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[e];)y[e]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let w of y.nodes)this.visitSync(this.listeners.OnceExit,w);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,w){return this.async().then(y,w)}toString(){return this.css}visitSync(y,w){for(let[S,P]of y){this.result.lastPlugin=S;let A;try{A=P(w,this.helpers)}catch(_){throw this.handleError(_,w.proxyOf)}if(w.type!=="root"&&w.type!=="document"&&!w.parent)return!0;if(f(A))throw this.getAsyncError()}}visitTick(y){let w=y[y.length-1],{node:S,visitors:P}=w;if(S.type!=="root"&&S.type!=="document"&&!S.parent){y.pop();return}if(P.length>0&&w.visitorIndex<P.length){let[_,U]=P[w.visitorIndex];w.visitorIndex+=1,w.visitorIndex===P.length&&(w.visitors=[],w.visitorIndex=0),this.result.lastPlugin=_;try{return U(S.toProxy(),this.helpers)}catch(I){throw this.handleError(I,S)}}if(w.iterator!==0){let _=w.iterator,U;for(;U=S.nodes[S.indexes[_]];)if(S.indexes[_]+=1,!U[e]){U[e]=!0,y.push(g(U));return}w.iterator=0,delete S.indexes[_]}let A=w.events;for(;w.eventIndex<A.length;){let _=A[w.eventIndex];if(w.eventIndex+=1,_===r){S.nodes&&S.nodes.length&&(S[e]=!0,w.iterator=S.getIterator());return}else if(this.listeners[_]){w.visitors=this.listeners[_];return}}y.pop()}walkSync(y){y[e]=!0;let w=l(y);for(let S of w)if(S===r)y.nodes&&y.each(P=>{P[e]||this.walkSync(P)});else{let P=this.listeners[S];if(P&&this.visitSync(P,y.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 v.registerPostcss=C=>{b=C},Xt=v,v.default=v,h.registerLazyResult(v),c.registerLazyResult(v),Xt}var Zt,Ds;function bn(){if(Ds)return Zt;Ds=1;let e=wi(),i=He(),u=yi(),d=Pr();const s=Cr();class c{constructor(m,a,h){a=a.toString(),this.stringified=!1,this._processor=m,this._css=a,this._opts=h,this._map=void 0;let t,o=i;this.result=new s(this._processor,t,this._opts),this.result.css=a;let n=this;Object.defineProperty(this.result,"root",{get(){return n.root}});let r=new e(o,t,this._opts,a);if(r.isMap()){let[f,l]=r.generate();f&&(this.result.css=f),l&&(this.result.map=l)}else r.clearAnnotation(),this.result.css=r.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(m){return this.async().catch(m)}finally(m){return this.async().then(m,m)}sync(){if(this.error)throw this.error;return this.result}then(m,a){return this.async().then(m,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 m,a=d;try{m=a(this._css,this._opts)}catch(h){this.error=h}if(this.error)throw this.error;return this._root=m,m}get[Symbol.toStringTag](){return"NoWorkResult"}}return Zt=c,c.default=c,Zt}var er,Fs;function vn(){if(Fs)return er;Fs=1;let e=bn(),i=Si(),u=xr(),d=ke();class s{constructor(p=[]){this.version="8.4.38",this.plugins=this.normalize(p)}normalize(p){let m=[];for(let a of p)if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),typeof a=="object"&&Array.isArray(a.plugins))m=m.concat(a.plugins);else if(typeof a=="object"&&a.postcssPlugin)m.push(a);else if(typeof a=="function")m.push(a);else if(!(typeof a=="object"&&(a.parse||a.stringify)))throw new Error(a+" is not a PostCSS plugin");return m}process(p,m={}){return!this.plugins.length&&!m.parser&&!m.stringifier&&!m.syntax?new e(this,p,m):new i(this,p,m)}use(p){return this.plugins=this.plugins.concat(this.normalize([p])),this}}return er=s,s.default=s,d.registerProcessor(s),u.registerProcessor(s),er}var tr,zs;function Sn(){if(zs)return tr;zs=1;let e=Qe(),i=gi(),u=Xe(),d=Rr(),s=Ke(),c=ke(),p=Or();function m(a,h){if(Array.isArray(a))return a.map(f=>m(f));let n=a,{inputs:t}=n,o=Re(n,["inputs"]);if(t){h=[];for(let f of t){let l=ie(Q({},f),{__proto__:s.prototype});l.map&&(l.map=ie(Q({},l.map),{__proto__:i.prototype})),h.push(l)}}if(o.nodes&&(o.nodes=a.nodes.map(f=>m(f,h))),o.source){let r=o.source,{inputId:f}=r,l=Re(r,["inputId"]);o.source=l,f!=null&&(o.source.input=h[f])}if(o.type==="root")return new c(o);if(o.type==="decl")return new e(o);if(o.type==="rule")return new p(o);if(o.type==="comment")return new u(o);if(o.type==="atrule")return new d(o);throw new Error("Unknown node type: "+a.type)}return tr=m,m.default=m,tr}var rr,qs;function xn(){if(qs)return rr;qs=1;let e=vr(),i=Qe(),u=Si(),d=pe(),s=vn(),c=He(),p=Sn(),m=xr(),a=bi(),h=Xe(),t=Rr(),o=Cr(),n=Ke(),r=Pr(),f=vi(),l=Or(),g=ke(),x=Ye();function b(...v){return v.length===1&&Array.isArray(v[0])&&(v=v[0]),new s(v)}return b.plugin=function(C,y){let w=!1;function S(...A){console&&console.warn&&!w&&(w=!0,console.warn(C+`: postcss.plugin was deprecated. Migration guide:
|
|
63
|
-
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(
|
|
64
|
-
https://www.w3ctech.com/topic/2226`));let _=y(...A);return _.postcssPlugin=C,_.postcssVersion=new s().version,_}let P;return Object.defineProperty(S,"postcss",{get(){return P||(P=S()),P}}),S.process=function(A,_,U){return b([S(U)]).process(A,_)},S},b.stringify=c,b.parse=r,b.fromJSON=p,b.list=f,b.comment=v=>new h(v),b.atRule=v=>new t(v),b.decl=v=>new i(v),b.rule=v=>new l(v),b.root=v=>new g(v),b.document=v=>new m(v),b.CssSyntaxError=e,b.Declaration=i,b.Container=d,b.Processor=s,b.Document=m,b.Comment=h,b.Warning=a,b.AtRule=t,b.Result=o,b.Input=n,b.Rule=l,b.Root=g,b.Node=x,u.registerPostcss(b),rr=b,b.default=b,rr}var Cn=xn();const G=hn(Cn);G.stringify;G.fromJSON;G.plugin;G.parse;G.list;G.document;G.comment;G.atRule;G.rule;G.decl;G.root;G.CssSyntaxError;G.Declaration;G.Container;G.Processor;G.Document;G.Comment;G.Warning;G.AtRule;G.Result;G.Input;G.Rule;G.Root;G.Node;const we=`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
|
|
65
68
|
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
|
|
66
|
-
or you can use record.mirror to access the mirror instance during recording.`;let
|
|
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() {
|
|
67
70
|
"use strict";
|
|
68
71
|
var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
69
72
|
var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256);
|
|
@@ -138,14 +141,20 @@ or you can use record.mirror to access the mirror instance during recording.`;le
|
|
|
138
141
|
};
|
|
139
142
|
})();
|
|
140
143
|
//# sourceMappingURL=image-bitmap-data-url-worker-IJpC7g_b.js.map
|
|
141
|
-
`;typeof self!="undefined"&&self.Blob&&new Blob([
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
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}/*! *****************************************************************************
|
|
145
|
+
Copyright (c) Microsoft Corporation.
|
|
146
|
+
|
|
147
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
148
|
+
purpose with or without fee is hereby granted.
|
|
149
|
+
|
|
150
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
151
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
152
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
153
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
154
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
155
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
156
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
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
|
|
149
158
|
512q0 53.00224-37.49888 90.50112t-90.50112
|
|
150
159
|
37.49888-90.50112-37.49888-37.49888-90.50112l0-512q0-53.00224
|
|
151
160
|
37.49888-90.50112t90.50112-37.49888zM341.34016 128q53.00224 0
|
|
@@ -158,7 +167,25 @@ or you can use record.mirror to access the mirror instance during recording.`;le
|
|
|
158
167
|
12.4928-30.16704l0-512q0-17.67424-12.4928-30.16704t-30.16704-12.4928zM682.65984
|
|
159
168
|
213.34016q-17.67424 0-30.16704 12.4928t-12.4928 30.16704l0 512q0
|
|
160
169
|
17.67424 12.4928 30.16704t30.16704 12.4928 30.16704-12.4928
|
|
161
|
-
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,
|
|
181
|
+
current config:
|
|
182
|
+
{
|
|
183
|
+
...
|
|
184
|
+
speed: ${l()},
|
|
185
|
+
speedOption: [${c().toString()}]
|
|
186
|
+
...
|
|
187
|
+
}
|
|
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;
|
|
162
189
|
if (typeof module.exports == "object" && typeof exports == "object") {
|
|
163
190
|
var __cp = (to, from, except, desc) => {
|
|
164
191
|
if ((from && typeof from === "object") || typeof from === "function") {
|