lensmcp 1.25.17 → 1.25.21

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.
Files changed (61) hide show
  1. package/bin.js +1 -1
  2. package/bundled/bridge.js +38 -37
  3. package/bundled/capture-runner.js +6 -6
  4. package/bundled/dashboard-ui/app.css +1 -1
  5. package/bundled/dashboard-ui/app.js +92 -92
  6. package/bundled/dashboard-ui/chunks/ReplayView-vO4p7cGp.js +131 -0
  7. package/bundled/dashboard.js +288 -279
  8. package/bundled/main.js +228 -221
  9. package/bundled/shim.js +8 -8
  10. package/lib/agent-asked.js +4 -4
  11. package/lib/agent-plugins.js +2 -2
  12. package/lib/bridge-origins.js +1 -1
  13. package/lib/call-command.js +2 -2
  14. package/lib/cli-help.js +3 -3
  15. package/lib/cli.js +12 -12
  16. package/lib/dashboard-login.d.ts +9 -2
  17. package/lib/dashboard-login.js +3 -3
  18. package/lib/dismiss-command.js +2 -2
  19. package/lib/duplicate-registration.js +1 -1
  20. package/lib/forward-signals.js +1 -1
  21. package/lib/gateway-registration.js +1 -1
  22. package/lib/guest-graph.js +4 -4
  23. package/lib/heap-analyzer-main.js +1 -1
  24. package/lib/heap-analyzer.js +1 -1
  25. package/lib/hook-memory.js +1 -1
  26. package/lib/instance-command.js +9 -9
  27. package/lib/instance-registry.js +2 -2
  28. package/lib/instance-resources.js +5 -5
  29. package/lib/instance-worktree.js +6 -6
  30. package/lib/lens-ignore.js +2 -2
  31. package/lib/lint-args.js +1 -1
  32. package/lib/logs-follow.js +1 -1
  33. package/lib/mcp-mode.js +3 -3
  34. package/lib/mcp-restart.js +1 -1
  35. package/lib/mcp-sessions.js +2 -2
  36. package/lib/mcp-token.js +3 -3
  37. package/lib/mcp-wiring.js +2 -2
  38. package/lib/mem-command.js +3 -3
  39. package/lib/perf-rules-check.js +4 -4
  40. package/lib/plugin-version.js +3 -3
  41. package/lib/pod-source-maps.js +1 -1
  42. package/lib/process-identity.js +1 -1
  43. package/lib/process-ownership.js +2 -2
  44. package/lib/project-files.js +1 -1
  45. package/lib/recycle-policy.js +1 -1
  46. package/lib/resp-client.js +5 -5
  47. package/lib/restart-command.js +2 -2
  48. package/lib/server-bundle.js +2 -2
  49. package/lib/status-client.js +2 -2
  50. package/lib/status-policy.js +2 -2
  51. package/lib/sweep.js +1 -1
  52. package/lib/upgrade.js +2 -2
  53. package/lib/workspace-scope.js +2 -2
  54. package/package.json +4 -4
  55. package/plugin/.claude-plugin/plugin.json +1 -1
  56. package/plugin/skills/dashboard/SKILL.md +2 -1
  57. package/plugin/skills/using-lensmcp/SKILL.md +28 -1
  58. package/plugin/skills/worktrees/SKILL.md +2 -1
  59. package/plugins/lensmcp/.codex-plugin/plugin.json +1 -1
  60. package/plugins/lensmcp/skills/lensmcp-dashboard/SKILL.md +2 -1
  61. package/plugins/lensmcp/skills/using-lensmcp/SKILL.md +27 -1
@@ -0,0 +1,131 @@
1
+ "use strict";var rn=Object.defineProperty;var y=(e,t)=>rn(e,"name",{value:t,configurable:!0});/*! LensMCP session replay player. Third-party code in this chunk, under the MIT License: @rrweb/replay, rrweb, rrweb-snapshot, @rrweb/utils, @rrweb/types 2.1.7 (https://github.com/rrweb-io/rrweb) — Copyright (c) 2018 Contributors; postcss (https://github.com/postcss/postcss) — Copyright 2013 Andrey Sitnik. */import{a as sn,c as nn,d as lt,f as on,g as an,h as Ur,i as ln,l as De,m as ee,n as un,o as hn,p as cn,r as pn,s as ut,t as dn,u as jr}from"../app.js";var _=an(),fn=Object.defineProperty,mn=y((e,t,i)=>t in e?fn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,"v"),O=y((e,t,i)=>mn(e,typeof t=="symbol"?t:t+"",i),"y"),gn=Object.defineProperty,yn=y((e,t,i)=>t in e?gn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,"x"),Br=y((e,t,i)=>yn(e,typeof t=="symbol"?t:t+"",i),"ee"),U=(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))(U||{});Date.now().toString();function wn(e){return e.nodeType===e.ELEMENT_NODE}y(wn,"te");var $r=class{static{y(this,"C")}constructor(){Br(this,"idNodeMap",new Map),Br(this,"nodeMetaMap",new WeakMap)}getId(e){return e?this.getMeta(e)?.id??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(i=>this.removeNodeFromMap(i))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let i=t.id;this.idNodeMap.set(i,e),this.nodeMetaMap.set(e,t)}replace(e,t){let i=this.getNode(e);if(i){let u=this.nodeMetaMap.get(i);u&&this.nodeMetaMap.set(t,u)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function zr(){return new $r}y(zr,"w");function bn(e){return e.toLowerCase()}y(bn,"T");function vn(e,t){return!e||!t||e.type!==t.type?!1:e.type===U.Document?e.compatMode===t.compatMode:e.type===U.DocumentType?e.name===t.name&&e.publicId===t.publicId&&e.systemId===t.systemId:e.type===U.Comment||e.type===U.Text||e.type===U.CDATA?e.textContent===t.textContent:e.type===U.Element?e.tagName===t.tagName&&JSON.stringify(e.attributes)===JSON.stringify(t.attributes)&&e.isSVG===t.isSVG&&e.needBlock===t.needBlock:!1}y(vn,"ne");function xn(e,t){let i;try{i=new URL(e,t??window.location.href)}catch{return null}return i.pathname.match(/\.([0-9a-z]+)(?:$)/i)?.[1]??null}y(xn,"re");var Wr=RegExp("(max|min)-device-(width|height)","g"),Sn={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:y(function(e){e.params.match(Wr)&&(e.params=e.params.replace(Wr,"$1-$2"))},"AtRule")}}},En={postcssPlugin:"postcss-hover-classes",prepare:y(function(){let e=[];return{Rule:y(function(t){e.indexOf(t)===-1&&(e.push(t),t.selectors.forEach(function(i){i.includes(":hover")&&(t.selector+=`,
2
+ `+i.replace(/:hover/g,".\\:hover"))}))},"Rule")}},"prepare")};function Cn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}y(Cn,"se");function Nn(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var i=y(function u(){return this instanceof u?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)},"e");i.prototype=t.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(e).forEach(function(u){var r=Object.getOwnPropertyDescriptor(e,u);Object.defineProperty(i,u,r.get?r:{enumerable:!0,get:y(function(){return e[u]},"get")})}),i}y(Nn,"ce");var Ae={exports:{}},Vr;function Mn(){if(Vr)return Ae.exports;Vr=1;var e=String,t=y(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}},"t");return Ae.exports=t(),Ae.exports.createColors=t,Ae.exports}y(Mn,"ue");var Z=Nn(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),ht,Gr;function ct(){if(Gr)return ht;Gr=1;let e=Mn(),t=Z;class i extends Error{static{y(this,"n")}constructor(r,l,s,p,a,n){super(r),this.name="CssSyntaxError",this.reason=r,a&&(this.file=a),p&&(this.source=p),n&&(this.plugin=n),l!==void 0&&s!==void 0&&(typeof l=="number"?(this.line=l,this.column=s):(this.line=l.line,this.column=l.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,i)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",this.line!==void 0&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(r){if(!this.source)return"";let l=this.source;r??=e.isColorSupported,t&&r&&(l=t(l));let s=l.split(/\r?\n/),p=Math.max(this.line-3,0),a=Math.min(this.line+2,s.length),n=String(a).length,o,d;if(r){let{bold:c,gray:h,red:g}=e.createColors(!0);o=y(f=>c(g(f)),"c"),d=y(f=>h(f),"l")}else o=d=y(c=>c,"l");return s.slice(p,a).map((c,h)=>{let g=p+1+h,f=" "+(" "+g).slice(-n)+" | ";if(g===this.line){let w=d(f.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+d(f)+c+`
3
+ `+w+o("^")}return" "+d(f)+c}).join(`
4
+ `)}toString(){let r=this.showSourceCode();return r&&=`
5
+
6
+ `+r+`
7
+ `,this.name+": "+this.message+r}}return ht=i,i.default=i,ht}y(ct,"fe");var Ie={},Hr;function pt(){return Hr||(Hr=1,Ie.isClean=Symbol("isClean"),Ie.my=Symbol("my")),Ie}y(pt,"pe");var dt,qr;function Yr(){if(qr)return dt;qr=1;let e={after:`
8
+ `,beforeClose:`
9
+ `,beforeComment:`
10
+ `,beforeDecl:`
11
+ `,beforeOpen:" ",beforeRule:`
12
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(u){return u[0].toUpperCase()+u.slice(1)}y(t,"t");class i{static{y(this,"n")}constructor(r){this.builder=r}atrule(r,l){let s="@"+r.name,p=r.params?this.rawValue(r,"params"):"";if(r.raws.afterName===void 0?p&&(s+=" "):s+=r.raws.afterName,r.nodes)this.block(r,s+p);else{let a=(r.raws.between||"")+(l?";":"");this.builder(s+p+a,r)}}beforeAfter(r,l){let s;s=r.type==="decl"?this.raw(r,null,"beforeDecl"):r.type==="comment"?this.raw(r,null,"beforeComment"):l==="before"?this.raw(r,null,"beforeRule"):this.raw(r,null,"beforeClose");let p=r.parent,a=0;for(;p&&p.type!=="root";)a+=1,p=p.parent;if(s.includes(`
13
+ `)){let n=this.raw(r,null,"indent");if(n.length)for(let o=0;o<a;o++)s+=n}return s}block(r,l){let s=this.raw(r,"between","beforeOpen");this.builder(l+s+"{",r,"start");let p;r.nodes&&r.nodes.length?(this.body(r),p=this.raw(r,"after")):p=this.raw(r,"after","emptyBody"),p&&this.builder(p),this.builder("}",r,"end")}body(r){let l=r.nodes.length-1;for(;l>0&&r.nodes[l].type==="comment";)--l;let s=this.raw(r,"semicolon");for(let p=0;p<r.nodes.length;p++){let a=r.nodes[p],n=this.raw(a,"before");n&&this.builder(n),this.stringify(a,l!==p||s)}}comment(r){let l=this.raw(r,"left","commentLeft"),s=this.raw(r,"right","commentRight");this.builder("/*"+l+r.text+s+"*/",r)}decl(r,l){let s=this.raw(r,"between","colon"),p=r.prop+s+this.rawValue(r,"value");r.important&&(p+=r.raws.important||" !important"),l&&(p+=";"),this.builder(p,r)}document(r){this.body(r)}raw(r,l,s){let p;if(s||=l,l&&(p=r.raws[l],p!==void 0))return p;let a=r.parent;if(s==="before"&&(!a||a.type==="root"&&a.first===r||a&&a.type==="document"))return"";if(!a)return e[s];let n=r.root();if(n.rawCache||={},n.rawCache[s]!==void 0)return n.rawCache[s];if(s==="before"||s==="after")return this.beforeAfter(r,s);{let o="raw"+t(s);this[o]?p=this[o](n,r):n.walk(d=>{if(p=d.raws[l],p!==void 0)return!1})}return p===void 0&&(p=e[s]),n.rawCache[s]=p,p}rawBeforeClose(r){let l;return r.walk(s=>{if(s.nodes&&s.nodes.length>0&&s.raws.after!==void 0)return l=s.raws.after,l.includes(`
14
+ `)&&(l=l.replace(/[^\n]+$/,"")),!1}),l&&=l.replace(/\S/g,""),l}rawBeforeComment(r,l){let s;return r.walkComments(p=>{if(p.raws.before!==void 0)return s=p.raws.before,s.includes(`
15
+ `)&&(s=s.replace(/[^\n]+$/,"")),!1}),s===void 0?s=this.raw(l,null,"beforeDecl"):s&&=s.replace(/\S/g,""),s}rawBeforeDecl(r,l){let s;return r.walkDecls(p=>{if(p.raws.before!==void 0)return s=p.raws.before,s.includes(`
16
+ `)&&(s=s.replace(/[^\n]+$/,"")),!1}),s===void 0?s=this.raw(l,null,"beforeRule"):s&&=s.replace(/\S/g,""),s}rawBeforeOpen(r){let l;return r.walk(s=>{if(s.type!=="decl"&&(l=s.raws.between,l!==void 0))return!1}),l}rawBeforeRule(r){let l;return r.walk(s=>{if(s.nodes&&(s.parent!==r||r.first!==s)&&s.raws.before!==void 0)return l=s.raws.before,l.includes(`
17
+ `)&&(l=l.replace(/[^\n]+$/,"")),!1}),l&&=l.replace(/\S/g,""),l}rawColon(r){let l;return r.walkDecls(s=>{if(s.raws.between!==void 0)return l=s.raws.between.replace(/[^\s:]/g,""),!1}),l}rawEmptyBody(r){let l;return r.walk(s=>{if(s.nodes&&s.nodes.length===0&&(l=s.raws.after,l!==void 0))return!1}),l}rawIndent(r){if(r.raws.indent)return r.raws.indent;let l;return r.walk(s=>{let p=s.parent;if(p&&p!==r&&p.parent&&p.parent===r&&s.raws.before!==void 0){let a=s.raws.before.split(`
18
+ `);return l=a[a.length-1],l=l.replace(/\S/g,""),!1}}),l}rawSemicolon(r){let l;return r.walk(s=>{if(s.nodes&&s.nodes.length&&s.last.type==="decl"&&(l=s.raws.semicolon,l!==void 0))return!1}),l}rawValue(r,l){let s=r[l],p=r.raws[l];return p&&p.value===s?p.raw:s}root(r){this.body(r),r.raws.after&&this.builder(r.raws.after)}rule(r){this.block(r,this.rawValue(r,"selector")),r.raws.ownSemicolon&&this.builder(r.raws.ownSemicolon,r,"end")}stringify(r,l){if(!this[r.type])throw Error("Unknown AST node type "+r.type+". Maybe you need to change PostCSS stringifier.");this[r.type](r,l)}}return dt=i,i.default=i,dt}y(Yr,"ge");var ft,Qr;function Pe(){if(Qr)return ft;Qr=1;let e=Yr();function t(i,u){new e(u).stringify(i)}return y(t,"t"),ft=t,t.default=t,ft}y(Pe,"j");var mt,Kr;function _e(){if(Kr)return mt;Kr=1;let{isClean:e,my:t}=pt(),i=ct(),u=Yr(),r=Pe();function l(p,a){let n=new p.constructor;for(let o in p){if(!Object.prototype.hasOwnProperty.call(p,o)||o==="proxyCache")continue;let d=p[o],c=typeof d;o==="parent"&&c==="object"?a&&(n[o]=a):o==="source"?n[o]=d:Array.isArray(d)?n[o]=d.map(h=>l(h,n)):(c==="object"&&d!==null&&(d=l(d)),n[o]=d)}return n}y(l,"a");class s{static{y(this,"o")}constructor(a={}){this.raws={},this[e]=!1,this[t]=!0;for(let n in a)if(n==="nodes"){this.nodes=[];for(let o of a[n])typeof o.clone=="function"?this.append(o.clone()):this.append(o)}else this[n]=a[n]}addToError(a){if(a.postcssNode=this,a.stack&&this.source&&/\n\s{4}at /.test(a.stack)){let n=this.source;a.stack=a.stack.replace(/\n\s{4}at /,`$&${n.input.from}:${n.start.line}:${n.start.column}$&`)}return a}after(a){return this.parent.insertAfter(this,a),this}assign(a={}){for(let n in a)this[n]=a[n];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 n=l(this);for(let o in a)n[o]=a[o];return n}cloneAfter(a={}){let n=this.clone(a);return this.parent.insertAfter(this,n),n}cloneBefore(a={}){let n=this.clone(a);return this.parent.insertBefore(this,n),n}error(a,n={}){if(this.source){let{end:o,start:d}=this.rangeBy(n);return this.source.input.error(a,{column:d.column,line:d.line},{column:o.column,line:o.line},n)}return new i(a)}getProxyProcessor(){return{get(a,n){return n==="proxyOf"?a:n==="root"?()=>a.root().toProxy():a[n]},set(a,n,o){return a[n]===o||(a[n]=o,(n==="prop"||n==="value"||n==="name"||n==="params"||n==="important"||n==="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,n){let o=this.source.start;if(a.index)o=this.positionInside(a.index,n);else if(a.word){n=this.toString();let d=n.indexOf(a.word);d!==-1&&(o=this.positionInside(d,n))}return o}positionInside(a,n){let o=n||this.toString(),d=this.source.start.column,c=this.source.start.line;for(let h=0;h<a;h++)o[h]===`
19
+ `?(d=1,c+=1):d+=1;return{column:d,line:c}}prev(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a-1]}rangeBy(a){let n={column:this.source.start.column,line:this.source.start.line},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:n.column+1,line:n.line};if(a.word){let d=this.toString(),c=d.indexOf(a.word);c!==-1&&(n=this.positionInside(c,d),o=this.positionInside(c+a.word.length,d))}else a.start?n={column:a.start.column,line:a.start.line}:a.index&&(n=this.positionInside(a.index)),a.end?o={column:a.end.column,line:a.end.line}:typeof a.endIndex=="number"?o=this.positionInside(a.endIndex):a.index&&(o=this.positionInside(a.index+1));return(o.line<n.line||o.line===n.line&&o.column<=n.column)&&(o={column:n.column+1,line:n.line}),{end:o,start:n}}raw(a,n){return new u().raw(this,a,n)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...a){if(this.parent){let n=this,o=!1;for(let d of a)d===this?o=!0:o?(this.parent.insertAfter(n,d),n=d):this.parent.insertBefore(n,d);o||this.remove()}return this}root(){let a=this;for(;a.parent&&a.parent.type!=="document";)a=a.parent;return a}toJSON(a,n){let o={},d=n==null;n||=new Map;let c=0;for(let h in this){if(!Object.prototype.hasOwnProperty.call(this,h)||h==="parent"||h==="proxyCache")continue;let g=this[h];if(Array.isArray(g))o[h]=g.map(f=>typeof f=="object"&&f.toJSON?f.toJSON(null,n):f);else if(typeof g=="object"&&g.toJSON)o[h]=g.toJSON(null,n);else if(h==="source"){let f=n.get(g.input);f??(f=c,n.set(g.input,c),c++),o[h]={end:g.end,inputId:f,start:g.start}}else o[h]=g}return d&&(o.inputs=[...n.keys()].map(h=>h.toJSON())),o}toProxy(){return this.proxyCache||=new Proxy(this,this.getProxyProcessor()),this.proxyCache}toString(a=r){a.stringify&&(a=a.stringify);let n="";return a(this,o=>{n+=o}),n}warn(a,n,o){let d={node:this};for(let c in o)d[c]=o[c];return a.warn(n,d)}get proxyOf(){return this}}return mt=s,s.default=s,mt}y(_e,"N");var gt,Zr;function Le(){if(Zr)return gt;Zr=1;let e=_e();class t extends e{static{y(this,"t")}constructor(u){u&&u.value!==void 0&&typeof u.value!="string"&&(u={...u,value:String(u.value)}),super(u),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return gt=t,t.default=t,gt}y(Le,"I");var yt,Jr;function Tn(){return Jr||(Jr=1,yt={nanoid:y((e=21)=>{let t="",i=e;for(;i--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[Math.random()*64|0];return t},"nanoid"),customAlphabet:y((e,t=21)=>(i=t)=>{let u="",r=i;for(;r--;)u+=e[Math.random()*e.length|0];return u},"customAlphabet")}),yt}y(Tn,"xe");var wt,Xr;function es(){if(Xr)return wt;Xr=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=Z,{existsSync:i,readFileSync:u}=Z,{dirname:r,join:l}=Z;function s(a){return Buffer?Buffer.from(a,"base64").toString():window.atob(a)}y(s,"o");class p{static{y(this,"s")}constructor(n,o){if(o.map===!1)return;this.loadAnnotation(n),this.inline=this.startWith(this.annotation,"data:");let d=o.map?o.map.prev:void 0,c=this.loadMap(o.from,d);!this.mapFile&&o.from&&(this.mapFile=o.from),this.mapFile&&(this.root=r(this.mapFile)),c&&(this.text=c)}consumer(){return this.consumerCache||=new e(this.text),this.consumerCache}decodeInline(n){let o=/^data:application\/json;charset=utf-?8;base64,/,d=/^data:application\/json;base64,/;if(/^data:application\/json;charset=utf-?8,/.test(n)||/^data:application\/json,/.test(n))return decodeURIComponent(n.substr(RegExp.lastMatch.length));if(o.test(n)||d.test(n))return s(n.substr(RegExp.lastMatch.length));let c=n.match(/data:application\/json;([^,]+),/)[1];throw Error("Unsupported source map encoding "+c)}getAnnotationURL(n){return n.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(n){return typeof n=="object"?typeof n.mappings=="string"||typeof n._mappings=="string"||Array.isArray(n.sections):!1}loadAnnotation(n){let o=n.match(/\/\*\s*# sourceMappingURL=/gm);if(!o)return;let d=n.lastIndexOf(o.pop()),c=n.indexOf("*/",d);d>-1&&c>-1&&(this.annotation=this.getAnnotationURL(n.substring(d,c)))}loadFile(n){if(this.root=r(n),i(n))return this.mapFile=n,u(n,"utf-8").toString().trim()}loadMap(n,o){if(o===!1)return!1;if(o){if(typeof o=="string")return o;if(typeof o=="function"){let d=o(n);if(d){let c=this.loadFile(d);if(!c)throw Error("Unable to load previous source map: "+d.toString());return c}}else{if(o instanceof e)return t.fromSourceMap(o).toString();if(o instanceof t)return o.toString();if(this.isMap(o))return JSON.stringify(o);throw Error("Unsupported previous source map format: "+o.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let d=this.annotation;return n&&(d=l(r(n),d)),this.loadFile(d)}}}startWith(n,o){return n?n.substr(0,o.length)===o:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return wt=p,p.default=p,wt}y(es,"we");var bt,ts;function Fe(){if(ts)return bt;ts=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=Z,{fileURLToPath:i,pathToFileURL:u}=Z,{isAbsolute:r,resolve:l}=Z,{nanoid:s}=Tn(),p=Z,a=ct(),n=es(),o=Symbol("fromOffsetCache"),d=!!(e&&t),c=!!(l&&r);class h{static{y(this,"p")}constructor(f,w={}){if(f==null||typeof f=="object"&&!f.toString)throw Error(`PostCSS received ${f} instead of CSS string`);if(this.css=f.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,w.from&&(!c||/^\w+:\/\//.test(w.from)||r(w.from)?this.file=w.from:this.file=l(w.from)),c&&d){let x=new n(this.css,w);if(x.text){this.map=x;let v=x.consumer().file;!this.file&&v&&(this.file=this.mapResolve(v))}}this.file||(this.id="<input css "+s(6)+">"),this.map&&(this.map.file=this.from)}error(f,w,x,v={}){let m,b,S;if(w&&typeof w=="object"){let C=w,T=x;if(typeof C.offset=="number"){let R=this.fromOffset(C.offset);w=R.line,x=R.col}else w=C.line,x=C.column;if(typeof T.offset=="number"){let R=this.fromOffset(T.offset);b=R.line,S=R.col}else b=T.line,S=T.column}else if(!x){let C=this.fromOffset(w);w=C.line,x=C.col}let E=this.origin(w,x,b,S);return m=E?new a(f,E.endLine===void 0?E.line:{column:E.column,line:E.line},E.endLine===void 0?E.column:{column:E.endColumn,line:E.endLine},E.source,E.file,v.plugin):new a(f,b===void 0?w:{column:x,line:w},b===void 0?x:{column:S,line:b},this.css,this.file,v.plugin),m.input={column:x,endColumn:S,endLine:b,line:w,source:this.css},this.file&&(u&&(m.input.url=u(this.file).toString()),m.input.file=this.file),m}fromOffset(f){let w,x;if(this[o])x=this[o];else{let m=this.css.split(`
20
+ `);x=Array(m.length);let b=0;for(let S=0,E=m.length;S<E;S++)x[S]=b,b+=m[S].length+1;this[o]=x}w=x[x.length-1];let v=0;if(f>=w)v=x.length-1;else{let m=x.length-2,b;for(;v<m;)if(b=v+(m-v>>1),f<x[b])m=b-1;else if(f>=x[b+1])v=b+1;else{v=b;break}}return{col:f-x[v]+1,line:v+1}}mapResolve(f){return/^\w+:\/\//.test(f)?f:l(this.map.consumer().sourceRoot||this.map.root||".",f)}origin(f,w,x,v){if(!this.map)return!1;let m=this.map.consumer(),b=m.originalPositionFor({column:w,line:f});if(!b.source)return!1;let S;typeof x=="number"&&(S=m.originalPositionFor({column:v,line:x}));let E;E=r(b.source)?u(b.source):new URL(b.source,this.map.consumer().sourceRoot||u(this.map.mapFile));let C={column:b.column,endColumn:S&&S.column,endLine:S&&S.line,line:b.line,url:E.toString()};if(E.protocol==="file:")if(i)C.file=i(E);else throw Error("file: protocol is not available in this PostCSS build");let T=m.sourceContentFor(b.source);return T&&(C.source=T),C}toJSON(){let f={};for(let w of["hasBOM","css","file","id"])this[w]!=null&&(f[w]=this[w]);return this.map&&(f.map={...this.map},f.map.consumerCache&&(f.map.consumerCache=void 0)),f}get from(){return this.file||this.id}}return bt=h,h.default=h,p&&p.registerInput&&p.registerInput(h),bt}y(Fe,"De");var vt,rs;function ss(){if(rs)return vt;rs=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=Z,{dirname:i,relative:u,resolve:r,sep:l}=Z,{pathToFileURL:s}=Z,p=Fe(),a=!!(e&&t),n=!!(i&&r&&u&&l);class o{static{y(this,"u")}constructor(c,h,g,f){this.stringify=c,this.mapOpts=g.map||{},this.root=h,this.opts=g,this.css=f,this.originalCSS=f,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let c;c=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let h=`
21
+ `;this.css.includes(`\r
22
+ `)&&(h=`\r
23
+ `),this.css+=h+"/*# sourceMappingURL="+c+" */"}applyPrevMaps(){for(let c of this.previous()){let h=this.toUrl(this.path(c.file)),g=c.root||i(c.file),f;this.mapOpts.sourcesContent===!1?(f=new e(c.text),f.sourcesContent&&=null):f=c.consumer(),this.map.applySourceMap(f,h,this.toUrl(this.path(g)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let c;for(let h=this.root.nodes.length-1;h>=0;h--)c=this.root.nodes[h],c.type==="comment"&&c.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(h)}else this.css&&=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,"")}generate(){if(this.clearAnnotation(),n&&a&&this.isMap())return this.generateMap();{let c="";return this.stringify(this.root,h=>{c+=h}),[c]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let c=this.previous()[0].consumer();c.file=this.outputFile(),this.map=t.fromSourceMap(c,{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 c=1,h=1,g="<no source>",f={generated:{column:0,line:0},original:{column:0,line:0},source:""},w,x;this.stringify(this.root,(v,m,b)=>{if(this.css+=v,m&&b!=="end"&&(f.generated.line=c,f.generated.column=h-1,m.source&&m.source.start?(f.source=this.sourcePath(m),f.original.line=m.source.start.line,f.original.column=m.source.start.column-1,this.map.addMapping(f)):(f.source=g,f.original.line=1,f.original.column=0,this.map.addMapping(f))),w=v.match(/\n/g),w?(c+=w.length,x=v.lastIndexOf(`
24
+ `),h=v.length-x):h+=v.length,m&&b!=="start"){let S=m.parent||{raws:{}};(!(m.type==="decl"||m.type==="atrule"&&!m.nodes)||m!==S.last||S.raws.semicolon)&&(m.source&&m.source.end?(f.source=this.sourcePath(m),f.original.line=m.source.end.line,f.original.column=m.source.end.column-1,f.generated.line=c,f.generated.column=h-2,this.map.addMapping(f)):(f.source=g,f.original.line=1,f.original.column=0,f.generated.line=c,f.generated.column=h-1,this.map.addMapping(f)))}})}isAnnotation(){return this.isInline()?!0:this.mapOpts.annotation===void 0?this.previous().length?this.previous().some(c=>c.annotation):!0:this.mapOpts.annotation}isInline(){if(this.mapOpts.inline!==void 0)return this.mapOpts.inline;let c=this.mapOpts.annotation;return c!==void 0&&c!==!0?!1:this.previous().length?this.previous().some(h=>h.inline):!0}isMap(){return this.opts.map===void 0?this.previous().length>0:!!this.opts.map}isSourcesContent(){return this.mapOpts.sourcesContent===void 0?this.previous().length?this.previous().some(c=>c.withContent()):!0:this.mapOpts.sourcesContent}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(c){if(this.mapOpts.absolute||c.charCodeAt(0)===60||/^\w+:\/\//.test(c))return c;let h=this.memoizedPaths.get(c);if(h)return h;let g=this.opts.to?i(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(g=i(r(g,this.mapOpts.annotation)));let f=u(g,c);return this.memoizedPaths.set(c,f),f}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(c=>{if(c.source&&c.source.input.map){let h=c.source.input.map;this.previousMaps.includes(h)||this.previousMaps.push(h)}});else{let c=new p(this.originalCSS,this.opts);c.map&&this.previousMaps.push(c.map)}return this.previousMaps}setSourcesContent(){let c={};if(this.root)this.root.walk(h=>{if(h.source){let g=h.source.input.from;if(g&&!c[g]){c[g]=!0;let f=this.usesFileUrls?this.toFileUrl(g):this.toUrl(this.path(g));this.map.setSourceContent(f,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(c){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(c.source.input.from):this.toUrl(this.path(c.source.input.from))}toBase64(c){return Buffer?Buffer.from(c).toString("base64"):window.btoa(unescape(encodeURIComponent(c)))}toFileUrl(c){let h=this.memoizedFileURLs.get(c);if(h)return h;if(s){let g=s(c).toString();return this.memoizedFileURLs.set(c,g),g}else throw Error("`map.absolute` option is not available in this PostCSS build")}toUrl(c){let h=this.memoizedURLs.get(c);if(h)return h;l==="\\"&&(c=c.replace(/\\/g,"/"));let g=encodeURI(c).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(c,g),g}}return vt=o,vt}y(ss,"Ae");var xt,is;function Ue(){if(is)return xt;is=1;let e=_e();class t extends e{static{y(this,"t")}constructor(u){super(u),this.type="comment"}}return xt=t,t.default=t,xt}y(Ue,"Ne");var St,ns;function oe(){if(ns)return St;ns=1;let{isClean:e,my:t}=pt(),i=Le(),u=Ue(),r=_e(),l,s,p,a;function n(c){return c.map(h=>(h.nodes&&=n(h.nodes),delete h.source,h))}y(n,"l");function o(c){if(c[e]=!1,c.proxyOf.nodes)for(let h of c.proxyOf.nodes)o(h)}y(o,"u");class d extends r{static{y(this,"d")}append(...h){for(let g of h){let f=this.normalize(g,this.last);for(let w of f)this.proxyOf.nodes.push(w)}return this.markDirty(),this}cleanRaws(h){if(super.cleanRaws(h),this.nodes)for(let g of this.nodes)g.cleanRaws(h)}each(h){if(!this.proxyOf.nodes)return;let g=this.getIterator(),f,w;for(;this.indexes[g]<this.proxyOf.nodes.length&&(f=this.indexes[g],w=h(this.proxyOf.nodes[f],f),w!==!1);)this.indexes[g]+=1;return delete this.indexes[g],w}every(h){return this.nodes.every(h)}getIterator(){this.lastEach||=0,this.indexes||={},this.lastEach+=1;let h=this.lastEach;return this.indexes[h]=0,h}getProxyProcessor(){return{get(h,g){return g==="proxyOf"?h:h[g]?g==="each"||typeof g=="string"&&g.startsWith("walk")?(...f)=>h[g](...f.map(w=>typeof w=="function"?(x,v)=>w(x.toProxy(),v):w)):g==="every"||g==="some"?f=>h[g]((w,...x)=>f(w.toProxy(),...x)):g==="root"?()=>h.root().toProxy():g==="nodes"?h.nodes.map(f=>f.toProxy()):g==="first"||g==="last"?h[g].toProxy():h[g]:h[g]},set(h,g,f){return h[g]===f||(h[g]=f,(g==="name"||g==="params"||g==="selector")&&h.markDirty()),!0}}}index(h){return typeof h=="number"?h:(h.proxyOf&&(h=h.proxyOf),this.proxyOf.nodes.indexOf(h))}insertAfter(h,g){let f=this.index(h),w=this.normalize(g,this.proxyOf.nodes[f]).reverse();f=this.index(h);for(let v of w)this.proxyOf.nodes.splice(f+1,0,v);let x;for(let v in this.indexes)x=this.indexes[v],f<x&&(this.indexes[v]=x+w.length);return this.markDirty(),this}insertBefore(h,g){let f=this.index(h),w=f===0?"prepend":!1,x=this.normalize(g,this.proxyOf.nodes[f],w).reverse();f=this.index(h);for(let m of x)this.proxyOf.nodes.splice(f,0,m);let v;for(let m in this.indexes)v=this.indexes[m],f<=v&&(this.indexes[m]=v+x.length);return this.markDirty(),this}normalize(h,g){if(typeof h=="string")h=n(l(h).nodes);else if(h===void 0)h=[];else if(Array.isArray(h)){h=h.slice(0);for(let f of h)f.parent&&f.parent.removeChild(f,"ignore")}else if(h.type==="root"&&this.type!=="document"){h=h.nodes.slice(0);for(let f of h)f.parent&&f.parent.removeChild(f,"ignore")}else if(h.type)h=[h];else if(h.prop){if(h.value===void 0)throw Error("Value field is missed in node creation");typeof h.value!="string"&&(h.value=String(h.value)),h=[new i(h)]}else if(h.selector)h=[new s(h)];else if(h.name)h=[new p(h)];else if(h.text)h=[new u(h)];else throw Error("Unknown node type in node creation");return h.map(f=>(f[t]||d.rebuild(f),f=f.proxyOf,f.parent&&f.parent.removeChild(f),f[e]&&o(f),f.raws.before===void 0&&g&&g.raws.before!==void 0&&(f.raws.before=g.raws.before.replace(/\S/g,"")),f.parent=this.proxyOf,f))}prepend(...h){h=h.reverse();for(let g of h){let f=this.normalize(g,this.first,"prepend").reverse();for(let w of f)this.proxyOf.nodes.unshift(w);for(let w in this.indexes)this.indexes[w]=this.indexes[w]+f.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 g;for(let f in this.indexes)g=this.indexes[f],g>=h&&(this.indexes[f]=g-1);return this.markDirty(),this}replaceValues(h,g,f){return f||(f=g,g={}),this.walkDecls(w=>{g.props&&!g.props.includes(w.prop)||g.fast&&!w.value.includes(g.fast)||(w.value=w.value.replace(h,f))}),this.markDirty(),this}some(h){return this.nodes.some(h)}walk(h){return this.each((g,f)=>{let w;try{w=h(g,f)}catch(x){throw g.addToError(x)}return w!==!1&&g.walk&&(w=g.walk(h)),w})}walkAtRules(h,g){return g?h instanceof RegExp?this.walk((f,w)=>{if(f.type==="atrule"&&h.test(f.name))return g(f,w)}):this.walk((f,w)=>{if(f.type==="atrule"&&f.name===h)return g(f,w)}):(g=h,this.walk((f,w)=>{if(f.type==="atrule")return g(f,w)}))}walkComments(h){return this.walk((g,f)=>{if(g.type==="comment")return h(g,f)})}walkDecls(h,g){return g?h instanceof RegExp?this.walk((f,w)=>{if(f.type==="decl"&&h.test(f.prop))return g(f,w)}):this.walk((f,w)=>{if(f.type==="decl"&&f.prop===h)return g(f,w)}):(g=h,this.walk((f,w)=>{if(f.type==="decl")return g(f,w)}))}walkRules(h,g){return g?h instanceof RegExp?this.walk((f,w)=>{if(f.type==="rule"&&h.test(f.selector))return g(f,w)}):this.walk((f,w)=>{if(f.type==="rule"&&f.selector===h)return g(f,w)}):(g=h,this.walk((f,w)=>{if(f.type==="rule")return g(f,w)}))}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=c=>{l=c},d.registerRule=c=>{s=c},d.registerAtRule=c=>{p=c},d.registerRoot=c=>{a=c},St=d,d.default=d,d.rebuild=c=>{c.type==="atrule"?Object.setPrototypeOf(c,p.prototype):c.type==="rule"?Object.setPrototypeOf(c,s.prototype):c.type==="decl"?Object.setPrototypeOf(c,i.prototype):c.type==="comment"?Object.setPrototypeOf(c,u.prototype):c.type==="root"&&Object.setPrototypeOf(c,a.prototype),c[t]=!0,c.nodes&&c.nodes.forEach(h=>{d.rebuild(h)})},St}y(oe,"R");var Et,os;function Ct(){if(os)return Et;os=1;let e=oe(),t,i;class u extends e{static{y(this,"r")}constructor(l){super({type:"document",...l}),this.nodes||=[]}toResult(l={}){return new t(new i,this,l).stringify()}}return u.registerLazyResult=r=>{t=r},u.registerProcessor=r=>{i=r},Et=u,u.default=u,Et}y(Ct,"Re");var Nt,as;function ls(){if(as)return Nt;as=1;let e={};return Nt=y(function(t){e[t]||(e[t]=!0,typeof console<"u"&&console.warn&&console.warn(t))},"ze"),Nt}y(ls,"Ve");var Mt,us;function hs(){if(us)return Mt;us=1;class e{static{y(this,"e")}constructor(i,u={}){if(this.type="warning",this.text=i,u.node&&u.node.source){let r=u.node.rangeBy(u);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in u)this[r]=u[r]}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 Mt=e,e.default=e,Mt}y(hs,"We");var Tt,cs;function kt(){if(cs)return Tt;cs=1;let e=hs();class t{static{y(this,"t")}constructor(u,r,l){this.processor=u,this.messages=[],this.root=r,this.opts=l,this.css=void 0,this.map=void 0}toString(){return this.css}warn(u,r={}){r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);let l=new e(u,r);return this.messages.push(l),l}warnings(){return this.messages.filter(u=>u.type==="warning")}get content(){return this.css}}return Tt=t,t.default=t,Tt}y(kt,"qe");var Ot,ps;function kn(){if(ps)return Ot;ps=1;let e=/[\t\n\f\r "#'()/;[\\\]{}]/g,t=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,i=/.[\r\n"'(/\\]/,u=/[\da-f]/i;return Ot=y(function(r,l={}){let s=r.css.valueOf(),p=l.ignoreErrors,a,n,o,d,c,h,g,f,w,x,v=s.length,m=0,b=[],S=[];function E(){return m}y(E,"ee");function C(z){throw r.error("Unclosed "+z,m)}y(C,"S");function T(){return S.length===0&&m>=v}y(T,"te");function R(z){if(S.length)return S.pop();if(m>=v)return;let G=z?z.ignoreUnclosed:!1;switch(a=s.charCodeAt(m),a){case 10:case 32:case 9:case 13:case 12:n=m;do n+=1,a=s.charCodeAt(n);while(a===32||a===10||a===9||a===13||a===12);x=["space",s.slice(m,n)],m=n-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let X=String.fromCharCode(a);x=[X,X,m];break}case 40:if(f=b.length?b.pop()[1]:"",w=s.charCodeAt(m+1),f==="url"&&w!==39&&w!==34&&w!==32&&w!==10&&w!==9&&w!==12&&w!==13){n=m;do{if(h=!1,n=s.indexOf(")",n+1),n===-1)if(p||G){n=m;break}else C("bracket");for(g=n;s.charCodeAt(g-1)===92;)--g,h=!h}while(h);x=["brackets",s.slice(m,n+1),m,n],m=n}else n=s.indexOf(")",m+1),d=s.slice(m,n+1),n===-1||i.test(d)?x=["(","(",m]:(x=["brackets",d,m,n],m=n);break;case 39:case 34:o=a===39?"'":'"',n=m;do{if(h=!1,n=s.indexOf(o,n+1),n===-1)if(p||G){n=m+1;break}else C("string");for(g=n;s.charCodeAt(g-1)===92;)--g,h=!h}while(h);x=["string",s.slice(m,n+1),m,n],m=n;break;case 64:e.lastIndex=m+1,e.test(s),n=e.lastIndex===0?s.length-1:e.lastIndex-2,x=["at-word",s.slice(m,n+1),m,n],m=n;break;case 92:for(n=m,c=!0;s.charCodeAt(n+1)===92;)n+=1,c=!c;if(a=s.charCodeAt(n+1),c&&a!==47&&a!==32&&a!==10&&a!==9&&a!==13&&a!==12&&(n+=1,u.test(s.charAt(n)))){for(;u.test(s.charAt(n+1));)n+=1;s.charCodeAt(n+1)===32&&(n+=1)}x=["word",s.slice(m,n+1),m,n],m=n;break;default:a===47&&s.charCodeAt(m+1)===42?(n=s.indexOf("*/",m+2)+1,n===0&&(p||G?n=s.length:C("comment")),x=["comment",s.slice(m,n+1),m,n],m=n):(t.lastIndex=m+1,t.test(s),n=t.lastIndex===0?s.length-1:t.lastIndex-2,x=["word",s.slice(m,n+1),m,n],b.push(x),m=n);break}return m++,x}y(R,"C");function $(z){S.push(z)}return y($,"w"),{back:$,endOfFile:T,nextToken:R,position:E}},"Je"),Ot}y(kn,"Xe");var Rt,ds;function Dt(){if(ds)return Rt;ds=1;let e=oe();class t extends e{static{y(this,"t")}constructor(u){super(u),this.type="atrule"}append(...u){return this.proxyOf.nodes||(this.nodes=[]),super.append(...u)}prepend(...u){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...u)}}return Rt=t,t.default=t,e.registerAtRule(t),Rt}y(Dt,"$e");var At,fs;function be(){if(fs)return At;fs=1;let e=oe(),t,i;class u extends e{static{y(this,"r")}constructor(l){super(l),this.type="root",this.nodes||=[]}normalize(l,s,p){let a=super.normalize(l);if(s){if(p==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(let n of a)n.raws.before=s.raws.before}return a}removeChild(l,s){let p=this.index(l);return!s&&p===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[p].raws.before),super.removeChild(l)}toResult(l={}){return new t(new i,this,l).stringify()}}return u.registerLazyResult=r=>{t=r},u.registerProcessor=r=>{i=r},At=u,u.default=u,e.registerRoot(u),At}y(be,"nt");var It,ms;function gs(){if(ms)return It;ms=1;let e={comma(t){return e.split(t,[","],!0)},space(t){return e.split(t,[" ",`
25
+ `," "])},split(t,i,u){let r=[],l="",s=!1,p=0,a=!1,n="",o=!1;for(let d of t)o?o=!1:d==="\\"?o=!0:a?d===n&&(a=!1):d==='"'||d==="'"?(a=!0,n=d):d==="("?p+=1:d===")"?p>0&&--p:p===0&&i.includes(d)&&(s=!0),s?(l!==""&&r.push(l.trim()),l="",s=!1):l+=d;return(u||l!=="")&&r.push(l.trim()),r}};return It=e,e.default=e,It}y(gs,"at");var Pt,ys;function _t(){if(ys)return Pt;ys=1;let e=oe(),t=gs();class i extends e{static{y(this,"n")}constructor(r){super(r),this.type="rule",this.nodes||=[]}get selectors(){return t.comma(this.selector)}set selectors(r){let l=this.selector?this.selector.match(/,\s*/):null,s=l?l[0]:","+this.raw("between","beforeOpen");this.selector=r.join(s)}}return Pt=i,i.default=i,e.registerRule(i),Pt}y(_t,"ct");var Lt,ws;function On(){if(ws)return Lt;ws=1;let e=Le(),t=kn(),i=Ue(),u=Dt(),r=be(),l=_t(),s={empty:!0,space:!0};function p(n){for(let o=n.length-1;o>=0;o--){let d=n[o],c=d[3]||d[2];if(c)return c}}y(p,"s");class a{static{y(this,"c")}constructor(o){this.input=o,this.root=new r,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:o,start:{column:1,line:1,offset:0}}}atrule(o){let d=new u;d.name=o[1].slice(1),d.name===""&&this.unnamedAtrule(d,o),this.init(d,o[2]);let c,h,g,f=!1,w=!1,x=[],v=[];for(;!this.tokenizer.endOfFile();){if(o=this.tokenizer.nextToken(),c=o[0],c==="("||c==="["?v.push(c==="("?")":"]"):c==="{"&&v.length>0?v.push("}"):c===v[v.length-1]&&v.pop(),v.length===0)if(c===";"){d.source.end=this.getPosition(o[2]),d.source.end.offset++,this.semicolon=!0;break}else if(c==="{"){w=!0;break}else if(c==="}"){if(x.length>0){for(g=x.length-1,h=x[g];h&&h[0]==="space";)h=x[--g];h&&(d.source.end=this.getPosition(h[3]||h[2]),d.source.end.offset++)}this.end(o);break}else x.push(o);else x.push(o);if(this.tokenizer.endOfFile()){f=!0;break}}d.raws.between=this.spacesAndCommentsFromEnd(x),x.length?(d.raws.afterName=this.spacesAndCommentsFromStart(x),this.raw(d,"params",x),f&&(o=x[x.length-1],d.source.end=this.getPosition(o[3]||o[2]),d.source.end.offset++,this.spaces=d.raws.between,d.raws.between="")):(d.raws.afterName="",d.params=""),w&&(d.nodes=[],this.current=d)}checkMissedSemicolon(o){let d=this.colon(o);if(d===!1)return;let c=0,h;for(let g=d-1;g>=0&&(h=o[g],!(h[0]!=="space"&&(c+=1,c===2)));g--);throw this.input.error("Missed semicolon",h[0]==="word"?h[3]+1:h[2])}colon(o){let d=0,c,h,g;for(let[f,w]of o.entries()){if(c=w,h=c[0],h==="("&&(d+=1),h===")"&&--d,d===0&&h===":")if(!g)this.doubleColon(c);else{if(g[0]==="word"&&g[1]==="progid")continue;return f}g=c}return!1}comment(o){let d=new i;this.init(d,o[2]),d.source.end=this.getPosition(o[3]||o[2]),d.source.end.offset++;let c=o[1].slice(2,-2);if(/^\s*$/.test(c))d.text="",d.raws.left=c,d.raws.right="";else{let h=c.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(o,d){let c=new e;this.init(c,o[0][2]);let h=o[o.length-1];for(h[0]===";"&&(this.semicolon=!0,o.pop()),c.source.end=this.getPosition(h[3]||h[2]||p(o)),c.source.end.offset++;o[0][0]!=="word";)o.length===1&&this.unknownWord(o),c.raws.before+=o.shift()[1];for(c.source.start=this.getPosition(o[0][2]),c.prop="";o.length;){let x=o[0][0];if(x===":"||x==="space"||x==="comment")break;c.prop+=o.shift()[1]}c.raws.between="";let g;for(;o.length;)if(g=o.shift(),g[0]===":"){c.raws.between+=g[1];break}else g[0]==="word"&&/\w/.test(g[1])&&this.unknownWord([g]),c.raws.between+=g[1];(c.prop[0]==="_"||c.prop[0]==="*")&&(c.raws.before+=c.prop[0],c.prop=c.prop.slice(1));let f=[],w;for(;o.length&&(w=o[0][0],!(w!=="space"&&w!=="comment"));)f.push(o.shift());this.precheckMissedSemicolon(o);for(let x=o.length-1;x>=0;x--){if(g=o[x],g[1].toLowerCase()==="!important"){c.important=!0;let v=this.stringFrom(o,x);v=this.spacesFromEnd(o)+v,v!==" !important"&&(c.raws.important=v);break}else if(g[1].toLowerCase()==="important"){let v=o.slice(0),m="";for(let b=x;b>0;b--){let S=v[b][0];if(m.trim().indexOf("!")===0&&S!=="space")break;m=v.pop()[1]+m}m.trim().indexOf("!")===0&&(c.important=!0,c.raws.important=m,o=v)}if(g[0]!=="space"&&g[0]!=="comment")break}o.some(x=>x[0]!=="space"&&x[0]!=="comment")&&(c.raws.between+=f.map(x=>x[1]).join(""),f=[]),this.raw(c,"value",f.concat(o),d),c.value.includes(":")&&!d&&this.checkMissedSemicolon(o)}doubleColon(o){throw this.input.error("Double colon",{offset:o[2]},{offset:o[2]+o[1].length})}emptyRule(o){let d=new l;this.init(d,o[2]),d.selector="",d.raws.between="",this.current=d}end(o){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(o[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(o)}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(o){if(this.spaces+=o[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(o){let d=this.input.fromOffset(o);return{column:d.col,line:d.line,offset:o}}init(o,d){this.current.push(o),o.source={input:this.input,start:this.getPosition(d)},o.raws.before=this.spaces,this.spaces="",o.type!=="comment"&&(this.semicolon=!1)}other(o){let d=!1,c=null,h=!1,g=null,f=[],w=o[1].startsWith("--"),x=[],v=o;for(;v;){if(c=v[0],x.push(v),c==="("||c==="[")g||=v,f.push(c==="("?")":"]");else if(w&&h&&c==="{")g||=v,f.push("}");else if(f.length===0)if(c===";")if(h){this.decl(x,w);return}else break;else if(c==="{"){this.rule(x);return}else if(c==="}"){this.tokenizer.back(x.pop()),d=!0;break}else c===":"&&(h=!0);else c===f[f.length-1]&&(f.pop(),f.length===0&&(g=null));v=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(d=!0),f.length>0&&this.unclosedBracket(g),d&&h){if(!w)for(;x.length&&(v=x[x.length-1][0],!(v!=="space"&&v!=="comment"));)this.tokenizer.back(x.pop());this.decl(x,w)}else this.unknownWord(x)}parse(){let o;for(;!this.tokenizer.endOfFile();)switch(o=this.tokenizer.nextToken(),o[0]){case"space":this.spaces+=o[1];break;case";":this.freeSemicolon(o);break;case"}":this.end(o);break;case"comment":this.comment(o);break;case"at-word":this.atrule(o);break;case"{":this.emptyRule(o);break;default:this.other(o);break}this.endFile()}precheckMissedSemicolon(){}raw(o,d,c,h){let g,f,w=c.length,x="",v=!0,m,b;for(let S=0;S<w;S+=1)g=c[S],f=g[0],f==="space"&&S===w-1&&!h?v=!1:f==="comment"?(b=c[S-1]?c[S-1][0]:"empty",m=c[S+1]?c[S+1][0]:"empty",!s[b]&&!s[m]?x.slice(-1)===","?v=!1:x+=g[1]:v=!1):x+=g[1];if(!v){let S=c.reduce((E,C)=>E+C[1],"");o.raws[d]={raw:S,value:x}}o[d]=x}rule(o){o.pop();let d=new l;this.init(d,o[0][2]),d.raws.between=this.spacesAndCommentsFromEnd(o),this.raw(d,"selector",o),this.current=d}spacesAndCommentsFromEnd(o){let d,c="";for(;o.length&&(d=o[o.length-1][0],!(d!=="space"&&d!=="comment"));)c=o.pop()[1]+c;return c}spacesAndCommentsFromStart(o){let d,c="";for(;o.length&&(d=o[0][0],!(d!=="space"&&d!=="comment"));)c+=o.shift()[1];return c}spacesFromEnd(o){let d,c="";for(;o.length&&(d=o[o.length-1][0],d==="space");)c=o.pop()[1]+c;return c}stringFrom(o,d){let c="";for(let h=d;h<o.length;h++)c+=o[h][1];return o.splice(d,o.length-d),c}unclosedBlock(){let o=this.current.source.start;throw this.input.error("Unclosed block",o.line,o.column)}unclosedBracket(o){throw this.input.error("Unclosed bracket",{offset:o[2]},{offset:o[2]+1})}unexpectedClose(o){throw this.input.error("Unexpected }",{offset:o[2]},{offset:o[2]+1})}unknownWord(o){throw this.input.error("Unknown word",{offset:o[0][2]},{offset:o[0][2]+o[0][1].length})}unnamedAtrule(o,d){throw this.input.error("At-rule without name",{offset:d[2]},{offset:d[2]+d[1].length})}}return Lt=a,Lt}y(On,"dt");var Ft,bs;function Ut(){if(bs)return Ft;bs=1;let e=oe(),t=On(),i=Fe();function u(r,l){let s=new t(new i(r,l));try{s.parse()}catch(p){throw p}return s.root}return y(u,"r"),Ft=u,u.default=u,e.registerParse(u),Ft}y(Ut,"mt");var jt,vs;function xs(){if(vs)return jt;vs=1;let{isClean:e,my:t}=pt(),i=ss(),u=Pe(),r=oe(),l=Ct();ls();let s=kt(),p=Ut(),a=be(),n={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},d={Once:!0,postcssPlugin:!0,prepare:!0};function c(v){return typeof v=="object"&&typeof v.then=="function"}y(c,"f");function h(v){let m=!1,b=n[v.type];return v.type==="decl"?m=v.prop.toLowerCase():v.type==="atrule"&&(m=v.name.toLowerCase()),m&&v.append?[b,b+"-"+m,0,b+"Exit",b+"Exit-"+m]:m?[b,b+"-"+m,b+"Exit",b+"Exit-"+m]:v.append?[b,0,b+"Exit"]:[b,b+"Exit"]}y(h,"p");function g(v){let m;return m=v.type==="document"?["Document",0,"DocumentExit"]:v.type==="root"?["Root",0,"RootExit"]:h(v),{eventIndex:0,events:m,iterator:0,node:v,visitorIndex:0,visitors:[]}}y(g,"m");function f(v){return v[e]=!1,v.nodes&&v.nodes.forEach(m=>f(m)),v}y(f,"h");let w={};class x{static{y(this,"_")}constructor(m,b,S){this.stringified=!1,this.processed=!1;let E;if(typeof b=="object"&&b&&(b.type==="root"||b.type==="document"))E=f(b);else if(b instanceof x||b instanceof s)E=f(b.root),b.map&&(S.map===void 0&&(S.map={}),S.map.inline||(S.map.inline=!1),S.map.prev=b.map);else{let C=p;S.syntax&&(C=S.syntax.parse),S.parser&&(C=S.parser),C.parse&&(C=C.parse);try{E=C(b,S)}catch(T){this.processed=!0,this.error=T}E&&!E[t]&&r.rebuild(E)}this.result=new s(m,E,S),this.helpers={...w,postcss:w,result:this.result},this.plugins=this.processor.plugins.map(C=>typeof C=="object"&&C.prepare?{...C,...C.prepare(this.result)}:C)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||=this.runAsync(),this.processing)}catch(m){return this.async().catch(m)}finally(m){return this.async().then(m,m)}getAsyncError(){throw Error("Use process(css).then(cb) to work with async plugins")}handleError(m,b){let S=this.result.lastPlugin;try{b&&b.addToError(m),this.error=m,m.name==="CssSyntaxError"&&!m.plugin?(m.plugin=S.postcssPlugin,m.setMessage()):S.postcssVersion}catch(E){console&&console.error&&console.error(E)}return m}prepareVisitors(){this.listeners={};let m=y((b,S,E)=>{this.listeners[S]||(this.listeners[S]=[]),this.listeners[S].push([b,E])},"e");for(let b of this.plugins)if(typeof b=="object")for(let S in b){if(!o[S]&&/^[A-Z]/.test(S))throw Error(`Unknown event ${S} in ${b.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!d[S])if(typeof b[S]=="object")for(let E in b[S])E==="*"?m(b,S,b[S][E]):m(b,S+"-"+E.toLowerCase(),b[S][E]);else typeof b[S]=="function"&&m(b,S,b[S])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let m=0;m<this.plugins.length;m++){let b=this.plugins[m],S=this.runOnRoot(b);if(c(S))try{await S}catch(E){throw this.handleError(E)}}if(this.prepareVisitors(),this.hasListener){let m=this.result.root;for(;!m[e];){m[e]=!0;let b=[g(m)];for(;b.length>0;){let S=this.visitTick(b);if(c(S))try{await S}catch(E){let C=b[b.length-1].node;throw this.handleError(E,C)}}}if(this.listeners.OnceExit)for(let[b,S]of this.listeners.OnceExit){this.result.lastPlugin=b;try{if(m.type==="document"){let E=m.nodes.map(C=>S(C,this.helpers));await Promise.all(E)}else await S(m,this.helpers)}catch(E){throw this.handleError(E)}}}return this.processed=!0,this.stringify()}runOnRoot(m){this.result.lastPlugin=m;try{if(typeof m=="object"&&m.Once){if(this.result.root.type==="document"){let b=this.result.root.nodes.map(S=>m.Once(S,this.helpers));return c(b[0])?Promise.all(b):b}return m.Once(this.result.root,this.helpers)}else if(typeof m=="function")return m(this.result.root,this.result)}catch(b){throw this.handleError(b)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let m=this.result.opts,b=u;m.syntax&&(b=m.syntax.stringify),m.stringifier&&(b=m.stringifier),b.stringify&&(b=b.stringify);let S=new i(b,this.result.root,this.result.opts).generate();return this.result.css=S[0],this.result.map=S[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let m of this.plugins)if(c(this.runOnRoot(m)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let m=this.result.root;for(;!m[e];)m[e]=!0,this.walkSync(m);if(this.listeners.OnceExit)if(m.type==="document")for(let b of m.nodes)this.visitSync(this.listeners.OnceExit,b);else this.visitSync(this.listeners.OnceExit,m)}return this.result}then(m,b){return this.async().then(m,b)}toString(){return this.css}visitSync(m,b){for(let[S,E]of m){this.result.lastPlugin=S;let C;try{C=E(b,this.helpers)}catch(T){throw this.handleError(T,b.proxyOf)}if(b.type!=="root"&&b.type!=="document"&&!b.parent)return!0;if(c(C))throw this.getAsyncError()}}visitTick(m){let b=m[m.length-1],{node:S,visitors:E}=b;if(S.type!=="root"&&S.type!=="document"&&!S.parent){m.pop();return}if(E.length>0&&b.visitorIndex<E.length){let[T,R]=E[b.visitorIndex];b.visitorIndex+=1,b.visitorIndex===E.length&&(b.visitors=[],b.visitorIndex=0),this.result.lastPlugin=T;try{return R(S.toProxy(),this.helpers)}catch($){throw this.handleError($,S)}}if(b.iterator!==0){let T=b.iterator,R;for(;R=S.nodes[S.indexes[T]];)if(S.indexes[T]+=1,!R[e]){R[e]=!0,m.push(g(R));return}b.iterator=0,delete S.indexes[T]}let C=b.events;for(;b.eventIndex<C.length;){let T=C[b.eventIndex];if(b.eventIndex+=1,T===0){S.nodes&&S.nodes.length&&(S[e]=!0,b.iterator=S.getIterator());return}else if(this.listeners[T]){b.visitors=this.listeners[T];return}}m.pop()}walkSync(m){m[e]=!0;let b=h(m);for(let S of b)if(S===0)m.nodes&&m.each(E=>{E[e]||this.walkSync(E)});else{let E=this.listeners[S];if(E&&this.visitSync(E,m.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 x.registerPostcss=v=>{w=v},jt=x,x.default=x,a.registerLazyResult(x),l.registerLazyResult(x),jt}y(xs,"_t");var Bt,Ss;function Rn(){if(Ss)return Bt;Ss=1;let e=ss(),t=Pe();ls();let i=Ut(),u=kt();class r{static{y(this,"i")}constructor(s,p,a){p=p.toString(),this.stringified=!1,this._processor=s,this._css=p,this._opts=a,this._map=void 0;let n=t;this.result=new u(this._processor,void 0,this._opts),this.result.css=p;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let d=new e(n,void 0,this._opts,p);if(d.isMap()){let[c,h]=d.generate();c&&(this.result.css=c),h&&(this.result.map=h)}else d.clearAnnotation(),this.result.css=d.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(s){return this.async().catch(s)}finally(s){return this.async().then(s,s)}sync(){if(this.error)throw this.error;return this.result}then(s,p){return this.async().then(s,p)}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 s,p=i;try{s=p(this._css,this._opts)}catch(a){this.error=a}if(this.error)throw this.error;return this._root=s,s}get[Symbol.toStringTag](){return"NoWorkResult"}}return Bt=r,r.default=r,Bt}y(Rn,"bt");var $t,Es;function Dn(){if(Es)return $t;Es=1;let e=Rn(),t=xs(),i=Ct(),u=be();class r{static{y(this,"i")}constructor(s=[]){this.version="8.4.38",this.plugins=this.normalize(s)}normalize(s){let p=[];for(let a of s)if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),typeof a=="object"&&Array.isArray(a.plugins))p=p.concat(a.plugins);else if(typeof a=="object"&&a.postcssPlugin)p.push(a);else if(typeof a=="function")p.push(a);else if(!(typeof a=="object"&&(a.parse||a.stringify)))throw Error(a+" is not a PostCSS plugin");return p}process(s,p={}){return!this.plugins.length&&!p.parser&&!p.stringifier&&!p.syntax?new e(this,s,p):new t(this,s,p)}use(s){return this.plugins=this.plugins.concat(this.normalize([s])),this}}return $t=r,r.default=r,u.registerProcessor(r),i.registerProcessor(r),$t}y(Dn,"Ct");var zt,Cs;function An(){if(Cs)return zt;Cs=1;let e=Le(),t=es(),i=Ue(),u=Dt(),r=Fe(),l=be(),s=_t();function p(a,n){if(Array.isArray(a))return a.map(c=>p(c));let{inputs:o,...d}=a;if(o){n=[];for(let c of o){let h={...c,__proto__:r.prototype};h.map&&={...h.map,__proto__:t.prototype},n.push(h)}}if(d.nodes&&=a.nodes.map(c=>p(c,n)),d.source){let{inputId:c,...h}=d.source;d.source=h,c!=null&&(d.source.input=n[c])}if(d.type==="root")return new l(d);if(d.type==="decl")return new e(d);if(d.type==="rule")return new s(d);if(d.type==="comment")return new i(d);if(d.type==="atrule")return new u(d);throw Error("Unknown node type: "+a.type)}return y(p,"s"),zt=p,p.default=p,zt}y(An,"Et");var Wt,Ns;function In(){if(Ns)return Wt;Ns=1;let e=ct(),t=Le(),i=xs(),u=oe(),r=Dn(),l=Pe(),s=An(),p=Ct(),a=hs(),n=Ue(),o=Dt(),d=kt(),c=Fe(),h=Ut(),g=gs(),f=_t(),w=be(),x=_e();function v(...m){return m.length===1&&Array.isArray(m[0])&&(m=m[0]),new r(m)}return y(v,"v"),v.plugin=function(m,b){let S=!1;function E(...T){console&&console.warn&&!S&&(S=!0,console.warn(m+`: postcss.plugin was deprecated. Migration guide:
26
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),{}.LANG&&{}.LANG.startsWith("cn")&&console.warn(m+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
27
+ https://www.w3ctech.com/topic/2226`));let R=b(...T);return R.postcssPlugin=m,R.postcssVersion=new r().version,R}y(E,"r");let C;return Object.defineProperty(E,"postcss",{get(){return C||=E(),C}}),E.process=function(T,R,$){return v([E($)]).process(T,R)},E},v.stringify=l,v.parse=h,v.fromJSON=s,v.list=g,v.comment=m=>new n(m),v.atRule=m=>new o(m),v.decl=m=>new t(m),v.rule=m=>new f(m),v.root=m=>new w(m),v.document=m=>new p(m),v.CssSyntaxError=e,v.Declaration=t,v.Container=u,v.Processor=r,v.Document=p,v.Comment=n,v.Warning=a,v.AtRule=o,v.Result=d,v.Input=c,v.Rule=f,v.Root=w,v.Node=x,i.registerPostcss(v),Wt=v,v.default=v,Wt}y(In,"kt");var L=Cn(In());L.stringify,L.fromJSON,L.plugin,L.parse,L.list,L.document,L.comment,L.atRule,L.rule,L.decl,L.root,L.CssSyntaxError,L.Declaration,L.Container,L.Processor,L.Document,L.Comment,L.Warning,L.AtRule,L.Result,L.Input,L.Rule,L.Root,L.Node;var Ms={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 Pn(e){let t=Ms[e.tagName]?Ms[e.tagName]:e.tagName;return t==="link"&&e.attributes._cssText&&(t="style"),t}y(Pn,"jt");function je(e,t){let i=t?.stylesWithHoverClass.get(e);if(i)return i;let u=e;try{u=L([Sn,En]).process(e).css}catch(r){console.warn("Failed to adapt css for replay",r)}return t?.stylesWithHoverClass.set(e,u),u}y(je,"Mt");function Ts(){return{stylesWithHoverClass:new Map}}y(Ts,"Nt");var _n="rrweb-snapshot.rebuild() cannot rebuild into an unprotected browser document. Use rebuildIntoSandboxedIframe() or set UNSAFE_allowUnprotectedRebuild: true only when you accept the script-execution risk.",ks="rrweb-snapshot.createSandboxedIframe() requires root to be connected to a document before creating a sandboxed iframe.",Os=new WeakSet;function Ln(e){if(!e||e.tagName!=="IFRAME"||!("sandbox"in e))return!1;let t=Array.from(e.sandbox);return t.length===1&&t[0]==="allow-same-origin"}y(Ln,"Lt");function Fn(e){if(e.UNSAFE_allowUnprotectedRebuild)return;let t=e.doc.defaultView;if(t&&!(Os.has(e.doc)&&Ln(t.frameElement)))throw Error(_n)}y(Fn,"Rt");function Un(e,t,i,u){let r=[];for(let n of e.childNodes)n.type===U.Text&&r.push(n);let l=t.split("/* rr_split */");for(;l.length>1&&l.length>r.length;)l.splice(-2,2,l.slice(-2).join(""));let s="";i&&(s=je(l.join(""),u));let p=0,a=-1;for(let n=0;n<r.length&&n!==l.length;n++){let o=r[n],d=l[n],c=n<l.length-1?l[n+1]:null;if(i&&c){let h=p,g=c.length;g=Math.min(g,30);let f=!1;for(;g>2;g--){let w=c.substring(0,g),x=s.substring(p).indexOf(w);if(f=x!==-1,f){h+=x;break}}f||(h+=d.length),d=s.substring(p,h),p=h}else i&&(d=s.substring(p));a!==-1&&(d=d.substring(a)),c&&(a!==-1||d.endsWith("0p")&&c.startsWith("x"))&&(a=c.indexOf("}"),a!==-1&&(a+=1,d+=c.substring(0,a))),o.textContent=d}}y(Un,"zt");function jn(e,t,i,u){let{doc:r,hackCss:l,cache:s}=u;e.childNodes.length?Un(e,i,l,s):(l&&(i=je(i,s)),t.appendChild(r.createTextNode(i)))}y(jn,"Bt");function Bn(e,t){let{doc:i,hackCss:u,cache:r}=t;switch(e.type){case U.Document:return i.implementation.createDocument(null,"",null);case U.DocumentType:return i.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case U.Element:{let l=Pn(e),s;e.isSVG?s=i.createElementNS("http://www.w3.org/2000/svg",l):(e.isCustom&&i.defaultView?.customElements&&!i.defaultView.customElements.get(e.tagName)&&i.defaultView.customElements.define(e.tagName,class extends i.defaultView.HTMLElement{}),s=i.createElement(l));let p={};for(let a in e.attributes){if(!Object.prototype.hasOwnProperty.call(e.attributes,a))continue;let n=e.attributes[a];if(!(l==="option"&&a==="selected"&&n===!1)&&n!==null){if(n===!0&&(n=""),a.startsWith("rr_")){p[a]=n;continue}if(typeof n=="string"){if(l==="style"&&a==="_cssText"){jn(e,s,n,t);continue}else if(l==="textarea"&&a==="value"){s.appendChild(i.createTextNode(n)),e.childNodes=[];continue}}try{if(e.isSVG&&a==="xlink:href")s.setAttributeNS("http://www.w3.org/1999/xlink",a,n.toString());else if(a==="onload"||a==="onclick"||a.substring(0,7)==="onmouse")s.setAttribute("_"+a,n.toString());else if(l==="meta"&&e.attributes["http-equiv"]==="Content-Security-Policy"&&a==="content"){s.setAttribute("csp-content",n.toString());continue}else l==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||l==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&xn(e.attributes.href)==="js"||(l==="img"&&e.attributes.srcset&&e.attributes.rr_dataURL?s.setAttribute("rrweb-original-srcset",e.attributes.srcset):s.setAttribute(a,n.toString()))}catch{}}}for(let a in p){let n=p[a];if(l==="canvas"&&a==="rr_dataURL"){let o=i.createElement("img");o.onload=()=>{let d=s.getContext("2d");d&&d.drawImage(o,0,0,o.width,o.height)},o.src=n.toString(),s.RRNodeType&&(s.rr_dataURL=n.toString())}else if(l==="img"&&a==="rr_dataURL"){let o=s;o.currentSrc.startsWith("data:")||(o.setAttribute("rrweb-original-src",e.attributes.src),o.src=n.toString())}if(a==="rr_width")s.style.setProperty("width",n.toString());else if(a==="rr_height")s.style.setProperty("height",n.toString());else if(a==="rr_mediaCurrentTime"&&typeof n=="number")s.currentTime=n;else if(a==="rr_mediaState")switch(n){case"played":s.play().catch(o=>console.warn("media playback error",o));break;case"paused":s.pause();break}else a==="rr_mediaPlaybackRate"&&typeof n=="number"?s.playbackRate=n:a==="rr_mediaMuted"&&typeof n=="boolean"?s.muted=n:a==="rr_mediaLoop"&&typeof n=="boolean"?s.loop=n:a==="rr_mediaVolume"&&typeof n=="number"?s.volume=n:a==="rr_open_mode"&&s.setAttribute("rr_open_mode",n)}if(e.isShadowHost)if(!s.shadowRoot)s.attachShadow({mode:"open"});else for(;s.shadowRoot.firstChild;)s.shadowRoot.removeChild(s.shadowRoot.firstChild);return(l==="input"||l==="textarea")&&s.setAttribute("autocomplete","off"),s}case U.Text:return e.isStyle&&u?i.createTextNode(je(e.textContent,r)):i.createTextNode(e.textContent);case U.CDATA:return i.createCDATASection(e.textContent);case U.Comment:return i.createComment(e.textContent);default:return null}}y(Bn,"Vt");function ve(e,t){let{doc:i,mirror:u,skipChild:r=!1,hackCss:l=!0,afterAppend:s,cache:p}=t;if(u.has(e.id)){let n=u.getNode(e.id);if(vn(u.getMeta(n),e))return u.getNode(e.id)}let a=Bn(e,{doc:i,hackCss:l,cache:p});if(!a)return null;if(e.rootId&&u.getNode(e.rootId)!==i&&u.replace(e.rootId,i),e.type===U.Document&&(i.close(),i.open(),e.compatMode==="BackCompat"&&e.childNodes&&e.childNodes[0].type!==U.DocumentType&&(e.childNodes[0].type===U.Element&&"xmlns"in e.childNodes[0].attributes&&e.childNodes[0].attributes.xmlns==="http://www.w3.org/1999/xhtml"?i.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):i.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),a=i),u.add(a,e),(e.type===U.Document||e.type===U.Element)&&!r)for(let n of e.childNodes){let o=ve(n,{doc:i,mirror:u,skipChild:!1,hackCss:l,afterAppend:s,cache:p});if(!o){console.warn("Failed to rebuild",n);continue}if(n.isShadow&&wn(a)&&a.shadowRoot)a.shadowRoot.appendChild(o);else if(e.type===U.Document&&n.type==U.Element){let d=o,c=null;d.childNodes.forEach(h=>{h.nodeName==="BODY"&&(c=h)}),c?(d.removeChild(c),a.appendChild(o),d.appendChild(c)):a.appendChild(o)}else a.appendChild(o);s&&s(o,n.id)}return a}y(ve,"Ht");function $n(e,t){function i(u){t(u)}y(i,"n");for(let u of e.getIds())e.has(u)&&i(e.getNode(u))}y($n,"Ut");function zn(e,t){let i=t.getMeta(e);if(i?.type!==U.Element)return;let u=e;for(let r in i.attributes){if(!(Object.prototype.hasOwnProperty.call(i.attributes,r)&&r.startsWith("rr_")))continue;let l=i.attributes[r];r==="rr_scrollLeft"&&(u.scrollLeft=l),r==="rr_scrollTop"&&(u.scrollTop=l)}}y(zn,"Wt");function Wn(e,t){Fn(t);let{doc:i,onVisit:u,hackCss:r=!0,afterAppend:l,cache:s,mirror:p=new $r}=t,a=ve(e,{doc:i,mirror:p,skipChild:!1,hackCss:r,afterAppend:l,cache:s});return $n(p,n=>{u&&u(n),zn(n,p)}),a}y(Wn,"Gt");function Vn(e){var t;if(!e.root.isConnected)throw Error(ks);let i=e.root.ownerDocument.createElement("iframe");for(let[r,l]of Object.entries(e.iframeAttributes||{}))r!=="sandbox"&&i.setAttribute(r,l);i.setAttribute("sandbox","allow-same-origin"),e.root.appendChild(i);let u=i.contentDocument;if(!u||!i.contentWindow)throw(t=i.parentNode)==null||t.removeChild(i),Error(ks);return Os.add(u),i}y(Vn,"Kt");var Gn=Object.defineProperty,Hn=y((e,t,i)=>t in e?Gn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,"Jt"),M=y((e,t,i)=>Hn(e,typeof t=="symbol"?t:t+"",i),"B"),qn=Object.defineProperty,Yn=y((e,t,i)=>t in e?qn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,"Xt"),Rs=y((e,t,i)=>Yn(e,typeof t=="symbol"?t:t+"",i),"Zt");Date.now().toString();var Qn=class{static{y(this,"Qt")}constructor(){Rs(this,"idNodeMap",new Map),Rs(this,"nodeMetaMap",new WeakMap)}getId(e){return e?this.getMeta(e)?.id??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(i=>this.removeNodeFromMap(i))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let i=t.id;this.idNodeMap.set(i,e),this.nodeMetaMap.set(e,t)}replace(e,t){let i=this.getNode(e);if(i){let u=this.nodeMetaMap.get(i);u&&this.nodeMetaMap.set(t,u)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function Kn(){return new Qn}y(Kn,"$t");function Zn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}y(Zn,"en");function Jn(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var i=y(function u(){return this instanceof u?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)},"e");i.prototype=t.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(e).forEach(function(u){var r=Object.getOwnPropertyDescriptor(e,u);Object.defineProperty(i,u,r.get?r:{enumerable:!0,get:y(function(){return e[u]},"get")})}),i}y(Jn,"tn");var Be={exports:{}},Ds;function Xn(){if(Ds)return Be.exports;Ds=1;var e=String,t=y(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}},"t");return Be.exports=t(),Be.exports.createColors=t,Be.exports}y(Xn,"an");var J=Jn(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),Vt,As;function Gt(){if(As)return Vt;As=1;let e=Xn(),t=J;class i extends Error{static{y(this,"n")}constructor(r,l,s,p,a,n){super(r),this.name="CssSyntaxError",this.reason=r,a&&(this.file=a),p&&(this.source=p),n&&(this.plugin=n),l!==void 0&&s!==void 0&&(typeof l=="number"?(this.line=l,this.column=s):(this.line=l.line,this.column=l.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,i)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",this.line!==void 0&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(r){if(!this.source)return"";let l=this.source;r??=e.isColorSupported,t&&r&&(l=t(l));let s=l.split(/\r?\n/),p=Math.max(this.line-3,0),a=Math.min(this.line+2,s.length),n=String(a).length,o,d;if(r){let{bold:c,gray:h,red:g}=e.createColors(!0);o=y(f=>c(g(f)),"c"),d=y(f=>h(f),"l")}else o=d=y(c=>c,"l");return s.slice(p,a).map((c,h)=>{let g=p+1+h,f=" "+(" "+g).slice(-n)+" | ";if(g===this.line){let w=d(f.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+d(f)+c+`
28
+ `+w+o("^")}return" "+d(f)+c}).join(`
29
+ `)}toString(){let r=this.showSourceCode();return r&&=`
30
+
31
+ `+r+`
32
+ `,this.name+": "+this.message+r}}return Vt=i,i.default=i,Vt}y(Gt,"cn");var $e={},Is;function Ht(){return Is||(Is=1,$e.isClean=Symbol("isClean"),$e.my=Symbol("my")),$e}y(Ht,"dn");var qt,Ps;function _s(){if(Ps)return qt;Ps=1;let e={after:`
33
+ `,beforeClose:`
34
+ `,beforeComment:`
35
+ `,beforeDecl:`
36
+ `,beforeOpen:" ",beforeRule:`
37
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(u){return u[0].toUpperCase()+u.slice(1)}y(t,"t");class i{static{y(this,"n")}constructor(r){this.builder=r}atrule(r,l){let s="@"+r.name,p=r.params?this.rawValue(r,"params"):"";if(r.raws.afterName===void 0?p&&(s+=" "):s+=r.raws.afterName,r.nodes)this.block(r,s+p);else{let a=(r.raws.between||"")+(l?";":"");this.builder(s+p+a,r)}}beforeAfter(r,l){let s;s=r.type==="decl"?this.raw(r,null,"beforeDecl"):r.type==="comment"?this.raw(r,null,"beforeComment"):l==="before"?this.raw(r,null,"beforeRule"):this.raw(r,null,"beforeClose");let p=r.parent,a=0;for(;p&&p.type!=="root";)a+=1,p=p.parent;if(s.includes(`
38
+ `)){let n=this.raw(r,null,"indent");if(n.length)for(let o=0;o<a;o++)s+=n}return s}block(r,l){let s=this.raw(r,"between","beforeOpen");this.builder(l+s+"{",r,"start");let p;r.nodes&&r.nodes.length?(this.body(r),p=this.raw(r,"after")):p=this.raw(r,"after","emptyBody"),p&&this.builder(p),this.builder("}",r,"end")}body(r){let l=r.nodes.length-1;for(;l>0&&r.nodes[l].type==="comment";)--l;let s=this.raw(r,"semicolon");for(let p=0;p<r.nodes.length;p++){let a=r.nodes[p],n=this.raw(a,"before");n&&this.builder(n),this.stringify(a,l!==p||s)}}comment(r){let l=this.raw(r,"left","commentLeft"),s=this.raw(r,"right","commentRight");this.builder("/*"+l+r.text+s+"*/",r)}decl(r,l){let s=this.raw(r,"between","colon"),p=r.prop+s+this.rawValue(r,"value");r.important&&(p+=r.raws.important||" !important"),l&&(p+=";"),this.builder(p,r)}document(r){this.body(r)}raw(r,l,s){let p;if(s||=l,l&&(p=r.raws[l],p!==void 0))return p;let a=r.parent;if(s==="before"&&(!a||a.type==="root"&&a.first===r||a&&a.type==="document"))return"";if(!a)return e[s];let n=r.root();if(n.rawCache||={},n.rawCache[s]!==void 0)return n.rawCache[s];if(s==="before"||s==="after")return this.beforeAfter(r,s);{let o="raw"+t(s);this[o]?p=this[o](n,r):n.walk(d=>{if(p=d.raws[l],p!==void 0)return!1})}return p===void 0&&(p=e[s]),n.rawCache[s]=p,p}rawBeforeClose(r){let l;return r.walk(s=>{if(s.nodes&&s.nodes.length>0&&s.raws.after!==void 0)return l=s.raws.after,l.includes(`
39
+ `)&&(l=l.replace(/[^\n]+$/,"")),!1}),l&&=l.replace(/\S/g,""),l}rawBeforeComment(r,l){let s;return r.walkComments(p=>{if(p.raws.before!==void 0)return s=p.raws.before,s.includes(`
40
+ `)&&(s=s.replace(/[^\n]+$/,"")),!1}),s===void 0?s=this.raw(l,null,"beforeDecl"):s&&=s.replace(/\S/g,""),s}rawBeforeDecl(r,l){let s;return r.walkDecls(p=>{if(p.raws.before!==void 0)return s=p.raws.before,s.includes(`
41
+ `)&&(s=s.replace(/[^\n]+$/,"")),!1}),s===void 0?s=this.raw(l,null,"beforeRule"):s&&=s.replace(/\S/g,""),s}rawBeforeOpen(r){let l;return r.walk(s=>{if(s.type!=="decl"&&(l=s.raws.between,l!==void 0))return!1}),l}rawBeforeRule(r){let l;return r.walk(s=>{if(s.nodes&&(s.parent!==r||r.first!==s)&&s.raws.before!==void 0)return l=s.raws.before,l.includes(`
42
+ `)&&(l=l.replace(/[^\n]+$/,"")),!1}),l&&=l.replace(/\S/g,""),l}rawColon(r){let l;return r.walkDecls(s=>{if(s.raws.between!==void 0)return l=s.raws.between.replace(/[^\s:]/g,""),!1}),l}rawEmptyBody(r){let l;return r.walk(s=>{if(s.nodes&&s.nodes.length===0&&(l=s.raws.after,l!==void 0))return!1}),l}rawIndent(r){if(r.raws.indent)return r.raws.indent;let l;return r.walk(s=>{let p=s.parent;if(p&&p!==r&&p.parent&&p.parent===r&&s.raws.before!==void 0){let a=s.raws.before.split(`
43
+ `);return l=a[a.length-1],l=l.replace(/\S/g,""),!1}}),l}rawSemicolon(r){let l;return r.walk(s=>{if(s.nodes&&s.nodes.length&&s.last.type==="decl"&&(l=s.raws.semicolon,l!==void 0))return!1}),l}rawValue(r,l){let s=r[l],p=r.raws[l];return p&&p.value===s?p.raw:s}root(r){this.body(r),r.raws.after&&this.builder(r.raws.after)}rule(r){this.block(r,this.rawValue(r,"selector")),r.raws.ownSemicolon&&this.builder(r.raws.ownSemicolon,r,"end")}stringify(r,l){if(!this[r.type])throw Error("Unknown AST node type "+r.type+". Maybe you need to change PostCSS stringifier.");this[r.type](r,l)}}return qt=i,i.default=i,qt}y(_s,"mn");var Yt,Ls;function ze(){if(Ls)return Yt;Ls=1;let e=_s();function t(i,u){new e(u).stringify(i)}return y(t,"t"),Yt=t,t.default=t,Yt}y(ze,"_n");var Qt,Fs;function We(){if(Fs)return Qt;Fs=1;let{isClean:e,my:t}=Ht(),i=Gt(),u=_s(),r=ze();function l(p,a){let n=new p.constructor;for(let o in p){if(!Object.prototype.hasOwnProperty.call(p,o)||o==="proxyCache")continue;let d=p[o],c=typeof d;o==="parent"&&c==="object"?a&&(n[o]=a):o==="source"?n[o]=d:Array.isArray(d)?n[o]=d.map(h=>l(h,n)):(c==="object"&&d!==null&&(d=l(d)),n[o]=d)}return n}y(l,"a");class s{static{y(this,"o")}constructor(a={}){this.raws={},this[e]=!1,this[t]=!0;for(let n in a)if(n==="nodes"){this.nodes=[];for(let o of a[n])typeof o.clone=="function"?this.append(o.clone()):this.append(o)}else this[n]=a[n]}addToError(a){if(a.postcssNode=this,a.stack&&this.source&&/\n\s{4}at /.test(a.stack)){let n=this.source;a.stack=a.stack.replace(/\n\s{4}at /,`$&${n.input.from}:${n.start.line}:${n.start.column}$&`)}return a}after(a){return this.parent.insertAfter(this,a),this}assign(a={}){for(let n in a)this[n]=a[n];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 n=l(this);for(let o in a)n[o]=a[o];return n}cloneAfter(a={}){let n=this.clone(a);return this.parent.insertAfter(this,n),n}cloneBefore(a={}){let n=this.clone(a);return this.parent.insertBefore(this,n),n}error(a,n={}){if(this.source){let{end:o,start:d}=this.rangeBy(n);return this.source.input.error(a,{column:d.column,line:d.line},{column:o.column,line:o.line},n)}return new i(a)}getProxyProcessor(){return{get(a,n){return n==="proxyOf"?a:n==="root"?()=>a.root().toProxy():a[n]},set(a,n,o){return a[n]===o||(a[n]=o,(n==="prop"||n==="value"||n==="name"||n==="params"||n==="important"||n==="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,n){let o=this.source.start;if(a.index)o=this.positionInside(a.index,n);else if(a.word){n=this.toString();let d=n.indexOf(a.word);d!==-1&&(o=this.positionInside(d,n))}return o}positionInside(a,n){let o=n||this.toString(),d=this.source.start.column,c=this.source.start.line;for(let h=0;h<a;h++)o[h]===`
44
+ `?(d=1,c+=1):d+=1;return{column:d,line:c}}prev(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a-1]}rangeBy(a){let n={column:this.source.start.column,line:this.source.start.line},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:n.column+1,line:n.line};if(a.word){let d=this.toString(),c=d.indexOf(a.word);c!==-1&&(n=this.positionInside(c,d),o=this.positionInside(c+a.word.length,d))}else a.start?n={column:a.start.column,line:a.start.line}:a.index&&(n=this.positionInside(a.index)),a.end?o={column:a.end.column,line:a.end.line}:typeof a.endIndex=="number"?o=this.positionInside(a.endIndex):a.index&&(o=this.positionInside(a.index+1));return(o.line<n.line||o.line===n.line&&o.column<=n.column)&&(o={column:n.column+1,line:n.line}),{end:o,start:n}}raw(a,n){return new u().raw(this,a,n)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...a){if(this.parent){let n=this,o=!1;for(let d of a)d===this?o=!0:o?(this.parent.insertAfter(n,d),n=d):this.parent.insertBefore(n,d);o||this.remove()}return this}root(){let a=this;for(;a.parent&&a.parent.type!=="document";)a=a.parent;return a}toJSON(a,n){let o={},d=n==null;n||=new Map;let c=0;for(let h in this){if(!Object.prototype.hasOwnProperty.call(this,h)||h==="parent"||h==="proxyCache")continue;let g=this[h];if(Array.isArray(g))o[h]=g.map(f=>typeof f=="object"&&f.toJSON?f.toJSON(null,n):f);else if(typeof g=="object"&&g.toJSON)o[h]=g.toJSON(null,n);else if(h==="source"){let f=n.get(g.input);f??(f=c,n.set(g.input,c),c++),o[h]={end:g.end,inputId:f,start:g.start}}else o[h]=g}return d&&(o.inputs=[...n.keys()].map(h=>h.toJSON())),o}toProxy(){return this.proxyCache||=new Proxy(this,this.getProxyProcessor()),this.proxyCache}toString(a=r){a.stringify&&(a=a.stringify);let n="";return a(this,o=>{n+=o}),n}warn(a,n,o){let d={node:this};for(let c in o)d[c]=o[c];return a.warn(n,d)}get proxyOf(){return this}}return Qt=s,s.default=s,Qt}y(We,"bn");var Kt,Us;function Ve(){if(Us)return Kt;Us=1;let e=We();class t extends e{static{y(this,"t")}constructor(u){u&&u.value!==void 0&&typeof u.value!="string"&&(u={...u,value:String(u.value)}),super(u),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return Kt=t,t.default=t,Kt}y(Ve,"Cn");var Zt,js;function eo(){return js||(js=1,Zt={nanoid:y((e=21)=>{let t="",i=e;for(;i--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[Math.random()*64|0];return t},"nanoid"),customAlphabet:y((e,t=21)=>(i=t)=>{let u="",r=i;for(;r--;)u+=e[Math.random()*e.length|0];return u},"customAlphabet")}),Zt}y(eo,"En");var Jt,Bs;function $s(){if(Bs)return Jt;Bs=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=J,{existsSync:i,readFileSync:u}=J,{dirname:r,join:l}=J;function s(a){return Buffer?Buffer.from(a,"base64").toString():window.atob(a)}y(s,"o");class p{static{y(this,"s")}constructor(n,o){if(o.map===!1)return;this.loadAnnotation(n),this.inline=this.startWith(this.annotation,"data:");let d=o.map?o.map.prev:void 0,c=this.loadMap(o.from,d);!this.mapFile&&o.from&&(this.mapFile=o.from),this.mapFile&&(this.root=r(this.mapFile)),c&&(this.text=c)}consumer(){return this.consumerCache||=new e(this.text),this.consumerCache}decodeInline(n){let o=/^data:application\/json;charset=utf-?8;base64,/,d=/^data:application\/json;base64,/;if(/^data:application\/json;charset=utf-?8,/.test(n)||/^data:application\/json,/.test(n))return decodeURIComponent(n.substr(RegExp.lastMatch.length));if(o.test(n)||d.test(n))return s(n.substr(RegExp.lastMatch.length));let c=n.match(/data:application\/json;([^,]+),/)[1];throw Error("Unsupported source map encoding "+c)}getAnnotationURL(n){return n.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(n){return typeof n=="object"?typeof n.mappings=="string"||typeof n._mappings=="string"||Array.isArray(n.sections):!1}loadAnnotation(n){let o=n.match(/\/\*\s*# sourceMappingURL=/gm);if(!o)return;let d=n.lastIndexOf(o.pop()),c=n.indexOf("*/",d);d>-1&&c>-1&&(this.annotation=this.getAnnotationURL(n.substring(d,c)))}loadFile(n){if(this.root=r(n),i(n))return this.mapFile=n,u(n,"utf-8").toString().trim()}loadMap(n,o){if(o===!1)return!1;if(o){if(typeof o=="string")return o;if(typeof o=="function"){let d=o(n);if(d){let c=this.loadFile(d);if(!c)throw Error("Unable to load previous source map: "+d.toString());return c}}else{if(o instanceof e)return t.fromSourceMap(o).toString();if(o instanceof t)return o.toString();if(this.isMap(o))return JSON.stringify(o);throw Error("Unsupported previous source map format: "+o.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let d=this.annotation;return n&&(d=l(r(n),d)),this.loadFile(d)}}}startWith(n,o){return n?n.substr(0,o.length)===o:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Jt=p,p.default=p,Jt}y($s,"kn");var Xt,zs;function Ge(){if(zs)return Xt;zs=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=J,{fileURLToPath:i,pathToFileURL:u}=J,{isAbsolute:r,resolve:l}=J,{nanoid:s}=eo(),p=J,a=Gt(),n=$s(),o=Symbol("fromOffsetCache"),d=!!(e&&t),c=!!(l&&r);class h{static{y(this,"p")}constructor(f,w={}){if(f==null||typeof f=="object"&&!f.toString)throw Error(`PostCSS received ${f} instead of CSS string`);if(this.css=f.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,w.from&&(!c||/^\w+:\/\//.test(w.from)||r(w.from)?this.file=w.from:this.file=l(w.from)),c&&d){let x=new n(this.css,w);if(x.text){this.map=x;let v=x.consumer().file;!this.file&&v&&(this.file=this.mapResolve(v))}}this.file||(this.id="<input css "+s(6)+">"),this.map&&(this.map.file=this.from)}error(f,w,x,v={}){let m,b,S;if(w&&typeof w=="object"){let C=w,T=x;if(typeof C.offset=="number"){let R=this.fromOffset(C.offset);w=R.line,x=R.col}else w=C.line,x=C.column;if(typeof T.offset=="number"){let R=this.fromOffset(T.offset);b=R.line,S=R.col}else b=T.line,S=T.column}else if(!x){let C=this.fromOffset(w);w=C.line,x=C.col}let E=this.origin(w,x,b,S);return m=E?new a(f,E.endLine===void 0?E.line:{column:E.column,line:E.line},E.endLine===void 0?E.column:{column:E.endColumn,line:E.endLine},E.source,E.file,v.plugin):new a(f,b===void 0?w:{column:x,line:w},b===void 0?x:{column:S,line:b},this.css,this.file,v.plugin),m.input={column:x,endColumn:S,endLine:b,line:w,source:this.css},this.file&&(u&&(m.input.url=u(this.file).toString()),m.input.file=this.file),m}fromOffset(f){let w,x;if(this[o])x=this[o];else{let m=this.css.split(`
45
+ `);x=Array(m.length);let b=0;for(let S=0,E=m.length;S<E;S++)x[S]=b,b+=m[S].length+1;this[o]=x}w=x[x.length-1];let v=0;if(f>=w)v=x.length-1;else{let m=x.length-2,b;for(;v<m;)if(b=v+(m-v>>1),f<x[b])m=b-1;else if(f>=x[b+1])v=b+1;else{v=b;break}}return{col:f-x[v]+1,line:v+1}}mapResolve(f){return/^\w+:\/\//.test(f)?f:l(this.map.consumer().sourceRoot||this.map.root||".",f)}origin(f,w,x,v){if(!this.map)return!1;let m=this.map.consumer(),b=m.originalPositionFor({column:w,line:f});if(!b.source)return!1;let S;typeof x=="number"&&(S=m.originalPositionFor({column:v,line:x}));let E;E=r(b.source)?u(b.source):new URL(b.source,this.map.consumer().sourceRoot||u(this.map.mapFile));let C={column:b.column,endColumn:S&&S.column,endLine:S&&S.line,line:b.line,url:E.toString()};if(E.protocol==="file:")if(i)C.file=i(E);else throw Error("file: protocol is not available in this PostCSS build");let T=m.sourceContentFor(b.source);return T&&(C.source=T),C}toJSON(){let f={};for(let w of["hasBOM","css","file","id"])this[w]!=null&&(f[w]=this[w]);return this.map&&(f.map={...this.map},f.map.consumerCache&&(f.map.consumerCache=void 0)),f}get from(){return this.file||this.id}}return Xt=h,h.default=h,p&&p.registerInput&&p.registerInput(h),Xt}y(Ge,"Mn");var er,Ws;function Vs(){if(Ws)return er;Ws=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=J,{dirname:i,relative:u,resolve:r,sep:l}=J,{pathToFileURL:s}=J,p=Ge(),a=!!(e&&t),n=!!(i&&r&&u&&l);class o{static{y(this,"u")}constructor(c,h,g,f){this.stringify=c,this.mapOpts=g.map||{},this.root=h,this.opts=g,this.css=f,this.originalCSS=f,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let c;c=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let h=`
46
+ `;this.css.includes(`\r
47
+ `)&&(h=`\r
48
+ `),this.css+=h+"/*# sourceMappingURL="+c+" */"}applyPrevMaps(){for(let c of this.previous()){let h=this.toUrl(this.path(c.file)),g=c.root||i(c.file),f;this.mapOpts.sourcesContent===!1?(f=new e(c.text),f.sourcesContent&&=null):f=c.consumer(),this.map.applySourceMap(f,h,this.toUrl(this.path(g)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let c;for(let h=this.root.nodes.length-1;h>=0;h--)c=this.root.nodes[h],c.type==="comment"&&c.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(h)}else this.css&&=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,"")}generate(){if(this.clearAnnotation(),n&&a&&this.isMap())return this.generateMap();{let c="";return this.stringify(this.root,h=>{c+=h}),[c]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let c=this.previous()[0].consumer();c.file=this.outputFile(),this.map=t.fromSourceMap(c,{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 c=1,h=1,g="<no source>",f={generated:{column:0,line:0},original:{column:0,line:0},source:""},w,x;this.stringify(this.root,(v,m,b)=>{if(this.css+=v,m&&b!=="end"&&(f.generated.line=c,f.generated.column=h-1,m.source&&m.source.start?(f.source=this.sourcePath(m),f.original.line=m.source.start.line,f.original.column=m.source.start.column-1,this.map.addMapping(f)):(f.source=g,f.original.line=1,f.original.column=0,this.map.addMapping(f))),w=v.match(/\n/g),w?(c+=w.length,x=v.lastIndexOf(`
49
+ `),h=v.length-x):h+=v.length,m&&b!=="start"){let S=m.parent||{raws:{}};(!(m.type==="decl"||m.type==="atrule"&&!m.nodes)||m!==S.last||S.raws.semicolon)&&(m.source&&m.source.end?(f.source=this.sourcePath(m),f.original.line=m.source.end.line,f.original.column=m.source.end.column-1,f.generated.line=c,f.generated.column=h-2,this.map.addMapping(f)):(f.source=g,f.original.line=1,f.original.column=0,f.generated.line=c,f.generated.column=h-1,this.map.addMapping(f)))}})}isAnnotation(){return this.isInline()?!0:this.mapOpts.annotation===void 0?this.previous().length?this.previous().some(c=>c.annotation):!0:this.mapOpts.annotation}isInline(){if(this.mapOpts.inline!==void 0)return this.mapOpts.inline;let c=this.mapOpts.annotation;return c!==void 0&&c!==!0?!1:this.previous().length?this.previous().some(h=>h.inline):!0}isMap(){return this.opts.map===void 0?this.previous().length>0:!!this.opts.map}isSourcesContent(){return this.mapOpts.sourcesContent===void 0?this.previous().length?this.previous().some(c=>c.withContent()):!0:this.mapOpts.sourcesContent}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(c){if(this.mapOpts.absolute||c.charCodeAt(0)===60||/^\w+:\/\//.test(c))return c;let h=this.memoizedPaths.get(c);if(h)return h;let g=this.opts.to?i(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(g=i(r(g,this.mapOpts.annotation)));let f=u(g,c);return this.memoizedPaths.set(c,f),f}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(c=>{if(c.source&&c.source.input.map){let h=c.source.input.map;this.previousMaps.includes(h)||this.previousMaps.push(h)}});else{let c=new p(this.originalCSS,this.opts);c.map&&this.previousMaps.push(c.map)}return this.previousMaps}setSourcesContent(){let c={};if(this.root)this.root.walk(h=>{if(h.source){let g=h.source.input.from;if(g&&!c[g]){c[g]=!0;let f=this.usesFileUrls?this.toFileUrl(g):this.toUrl(this.path(g));this.map.setSourceContent(f,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(c){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(c.source.input.from):this.toUrl(this.path(c.source.input.from))}toBase64(c){return Buffer?Buffer.from(c).toString("base64"):window.btoa(unescape(encodeURIComponent(c)))}toFileUrl(c){let h=this.memoizedFileURLs.get(c);if(h)return h;if(s){let g=s(c).toString();return this.memoizedFileURLs.set(c,g),g}else throw Error("`map.absolute` option is not available in this PostCSS build")}toUrl(c){let h=this.memoizedURLs.get(c);if(h)return h;l==="\\"&&(c=c.replace(/\\/g,"/"));let g=encodeURI(c).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(c,g),g}}return er=o,er}y(Vs,"Fn");var tr,Gs;function He(){if(Gs)return tr;Gs=1;let e=We();class t extends e{static{y(this,"t")}constructor(u){super(u),this.type="comment"}}return tr=t,t.default=t,tr}y(He,"Rn");var rr,Hs;function ae(){if(Hs)return rr;Hs=1;let{isClean:e,my:t}=Ht(),i=Ve(),u=He(),r=We(),l,s,p,a;function n(c){return c.map(h=>(h.nodes&&=n(h.nodes),delete h.source,h))}y(n,"l");function o(c){if(c[e]=!1,c.proxyOf.nodes)for(let h of c.proxyOf.nodes)o(h)}y(o,"u");class d extends r{static{y(this,"d")}append(...h){for(let g of h){let f=this.normalize(g,this.last);for(let w of f)this.proxyOf.nodes.push(w)}return this.markDirty(),this}cleanRaws(h){if(super.cleanRaws(h),this.nodes)for(let g of this.nodes)g.cleanRaws(h)}each(h){if(!this.proxyOf.nodes)return;let g=this.getIterator(),f,w;for(;this.indexes[g]<this.proxyOf.nodes.length&&(f=this.indexes[g],w=h(this.proxyOf.nodes[f],f),w!==!1);)this.indexes[g]+=1;return delete this.indexes[g],w}every(h){return this.nodes.every(h)}getIterator(){this.lastEach||=0,this.indexes||={},this.lastEach+=1;let h=this.lastEach;return this.indexes[h]=0,h}getProxyProcessor(){return{get(h,g){return g==="proxyOf"?h:h[g]?g==="each"||typeof g=="string"&&g.startsWith("walk")?(...f)=>h[g](...f.map(w=>typeof w=="function"?(x,v)=>w(x.toProxy(),v):w)):g==="every"||g==="some"?f=>h[g]((w,...x)=>f(w.toProxy(),...x)):g==="root"?()=>h.root().toProxy():g==="nodes"?h.nodes.map(f=>f.toProxy()):g==="first"||g==="last"?h[g].toProxy():h[g]:h[g]},set(h,g,f){return h[g]===f||(h[g]=f,(g==="name"||g==="params"||g==="selector")&&h.markDirty()),!0}}}index(h){return typeof h=="number"?h:(h.proxyOf&&(h=h.proxyOf),this.proxyOf.nodes.indexOf(h))}insertAfter(h,g){let f=this.index(h),w=this.normalize(g,this.proxyOf.nodes[f]).reverse();f=this.index(h);for(let v of w)this.proxyOf.nodes.splice(f+1,0,v);let x;for(let v in this.indexes)x=this.indexes[v],f<x&&(this.indexes[v]=x+w.length);return this.markDirty(),this}insertBefore(h,g){let f=this.index(h),w=f===0?"prepend":!1,x=this.normalize(g,this.proxyOf.nodes[f],w).reverse();f=this.index(h);for(let m of x)this.proxyOf.nodes.splice(f,0,m);let v;for(let m in this.indexes)v=this.indexes[m],f<=v&&(this.indexes[m]=v+x.length);return this.markDirty(),this}normalize(h,g){if(typeof h=="string")h=n(l(h).nodes);else if(h===void 0)h=[];else if(Array.isArray(h)){h=h.slice(0);for(let f of h)f.parent&&f.parent.removeChild(f,"ignore")}else if(h.type==="root"&&this.type!=="document"){h=h.nodes.slice(0);for(let f of h)f.parent&&f.parent.removeChild(f,"ignore")}else if(h.type)h=[h];else if(h.prop){if(h.value===void 0)throw Error("Value field is missed in node creation");typeof h.value!="string"&&(h.value=String(h.value)),h=[new i(h)]}else if(h.selector)h=[new s(h)];else if(h.name)h=[new p(h)];else if(h.text)h=[new u(h)];else throw Error("Unknown node type in node creation");return h.map(f=>(f[t]||d.rebuild(f),f=f.proxyOf,f.parent&&f.parent.removeChild(f),f[e]&&o(f),f.raws.before===void 0&&g&&g.raws.before!==void 0&&(f.raws.before=g.raws.before.replace(/\S/g,"")),f.parent=this.proxyOf,f))}prepend(...h){h=h.reverse();for(let g of h){let f=this.normalize(g,this.first,"prepend").reverse();for(let w of f)this.proxyOf.nodes.unshift(w);for(let w in this.indexes)this.indexes[w]=this.indexes[w]+f.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 g;for(let f in this.indexes)g=this.indexes[f],g>=h&&(this.indexes[f]=g-1);return this.markDirty(),this}replaceValues(h,g,f){return f||(f=g,g={}),this.walkDecls(w=>{g.props&&!g.props.includes(w.prop)||g.fast&&!w.value.includes(g.fast)||(w.value=w.value.replace(h,f))}),this.markDirty(),this}some(h){return this.nodes.some(h)}walk(h){return this.each((g,f)=>{let w;try{w=h(g,f)}catch(x){throw g.addToError(x)}return w!==!1&&g.walk&&(w=g.walk(h)),w})}walkAtRules(h,g){return g?h instanceof RegExp?this.walk((f,w)=>{if(f.type==="atrule"&&h.test(f.name))return g(f,w)}):this.walk((f,w)=>{if(f.type==="atrule"&&f.name===h)return g(f,w)}):(g=h,this.walk((f,w)=>{if(f.type==="atrule")return g(f,w)}))}walkComments(h){return this.walk((g,f)=>{if(g.type==="comment")return h(g,f)})}walkDecls(h,g){return g?h instanceof RegExp?this.walk((f,w)=>{if(f.type==="decl"&&h.test(f.prop))return g(f,w)}):this.walk((f,w)=>{if(f.type==="decl"&&f.prop===h)return g(f,w)}):(g=h,this.walk((f,w)=>{if(f.type==="decl")return g(f,w)}))}walkRules(h,g){return g?h instanceof RegExp?this.walk((f,w)=>{if(f.type==="rule"&&h.test(f.selector))return g(f,w)}):this.walk((f,w)=>{if(f.type==="rule"&&f.selector===h)return g(f,w)}):(g=h,this.walk((f,w)=>{if(f.type==="rule")return g(f,w)}))}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=c=>{l=c},d.registerRule=c=>{s=c},d.registerAtRule=c=>{p=c},d.registerRoot=c=>{a=c},rr=d,d.default=d,d.rebuild=c=>{c.type==="atrule"?Object.setPrototypeOf(c,p.prototype):c.type==="rule"?Object.setPrototypeOf(c,s.prototype):c.type==="decl"?Object.setPrototypeOf(c,i.prototype):c.type==="comment"?Object.setPrototypeOf(c,u.prototype):c.type==="root"&&Object.setPrototypeOf(c,a.prototype),c[t]=!0,c.nodes&&c.nodes.forEach(h=>{d.rebuild(h)})},rr}y(ae,"Vn");var sr,qs;function ir(){if(qs)return sr;qs=1;let e=ae(),t,i;class u extends e{static{y(this,"r")}constructor(l){super({type:"document",...l}),this.nodes||=[]}toResult(l={}){return new t(new i,this,l).stringify()}}return u.registerLazyResult=r=>{t=r},u.registerProcessor=r=>{i=r},sr=u,u.default=u,sr}y(ir,"Wn");var nr,Ys;function Qs(){if(Ys)return nr;Ys=1;let e={};return nr=y(function(t){e[t]||(e[t]=!0,typeof console<"u"&&console.warn&&console.warn(t))},"Gn"),nr}y(Qs,"qn");var or,Ks;function Zs(){if(Ks)return or;Ks=1;class e{static{y(this,"e")}constructor(i,u={}){if(this.type="warning",this.text=i,u.node&&u.node.source){let r=u.node.rangeBy(u);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in u)this[r]=u[r]}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 or=e,e.default=e,or}y(Zs,"Xn");var ar,Js;function lr(){if(Js)return ar;Js=1;let e=Zs();class t{static{y(this,"t")}constructor(u,r,l){this.processor=u,this.messages=[],this.root=r,this.opts=l,this.css=void 0,this.map=void 0}toString(){return this.css}warn(u,r={}){r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);let l=new e(u,r);return this.messages.push(l),l}warnings(){return this.messages.filter(u=>u.type==="warning")}get content(){return this.css}}return ar=t,t.default=t,ar}y(lr,"$n");var ur,Xs;function to(){if(Xs)return ur;Xs=1;let e=/[\t\n\f\r "#'()/;[\\\]{}]/g,t=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,i=/.[\r\n"'(/\\]/,u=/[\da-f]/i;return ur=y(function(r,l={}){let s=r.css.valueOf(),p=l.ignoreErrors,a,n,o,d,c,h,g,f,w,x,v=s.length,m=0,b=[],S=[];function E(){return m}y(E,"ee");function C(z){throw r.error("Unclosed "+z,m)}y(C,"S");function T(){return S.length===0&&m>=v}y(T,"te");function R(z){if(S.length)return S.pop();if(m>=v)return;let G=z?z.ignoreUnclosed:!1;switch(a=s.charCodeAt(m),a){case 10:case 32:case 9:case 13:case 12:n=m;do n+=1,a=s.charCodeAt(n);while(a===32||a===10||a===9||a===13||a===12);x=["space",s.slice(m,n)],m=n-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let X=String.fromCharCode(a);x=[X,X,m];break}case 40:if(f=b.length?b.pop()[1]:"",w=s.charCodeAt(m+1),f==="url"&&w!==39&&w!==34&&w!==32&&w!==10&&w!==9&&w!==12&&w!==13){n=m;do{if(h=!1,n=s.indexOf(")",n+1),n===-1)if(p||G){n=m;break}else C("bracket");for(g=n;s.charCodeAt(g-1)===92;)--g,h=!h}while(h);x=["brackets",s.slice(m,n+1),m,n],m=n}else n=s.indexOf(")",m+1),d=s.slice(m,n+1),n===-1||i.test(d)?x=["(","(",m]:(x=["brackets",d,m,n],m=n);break;case 39:case 34:o=a===39?"'":'"',n=m;do{if(h=!1,n=s.indexOf(o,n+1),n===-1)if(p||G){n=m+1;break}else C("string");for(g=n;s.charCodeAt(g-1)===92;)--g,h=!h}while(h);x=["string",s.slice(m,n+1),m,n],m=n;break;case 64:e.lastIndex=m+1,e.test(s),n=e.lastIndex===0?s.length-1:e.lastIndex-2,x=["at-word",s.slice(m,n+1),m,n],m=n;break;case 92:for(n=m,c=!0;s.charCodeAt(n+1)===92;)n+=1,c=!c;if(a=s.charCodeAt(n+1),c&&a!==47&&a!==32&&a!==10&&a!==9&&a!==13&&a!==12&&(n+=1,u.test(s.charAt(n)))){for(;u.test(s.charAt(n+1));)n+=1;s.charCodeAt(n+1)===32&&(n+=1)}x=["word",s.slice(m,n+1),m,n],m=n;break;default:a===47&&s.charCodeAt(m+1)===42?(n=s.indexOf("*/",m+2)+1,n===0&&(p||G?n=s.length:C("comment")),x=["comment",s.slice(m,n+1),m,n],m=n):(t.lastIndex=m+1,t.test(s),n=t.lastIndex===0?s.length-1:t.lastIndex-2,x=["word",s.slice(m,n+1),m,n],b.push(x),m=n);break}return m++,x}y(R,"C");function $(z){S.push(z)}return y($,"w"),{back:$,endOfFile:T,nextToken:R,position:E}},"er"),ur}y(to,"nr");var hr,ei;function cr(){if(ei)return hr;ei=1;let e=ae();class t extends e{static{y(this,"t")}constructor(u){super(u),this.type="atrule"}append(...u){return this.proxyOf.nodes||(this.nodes=[]),super.append(...u)}prepend(...u){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...u)}}return hr=t,t.default=t,e.registerAtRule(t),hr}y(cr,"ar");var pr,ti;function xe(){if(ti)return pr;ti=1;let e=ae(),t,i;class u extends e{static{y(this,"r")}constructor(l){super(l),this.type="root",this.nodes||=[]}normalize(l,s,p){let a=super.normalize(l);if(s){if(p==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(let n of a)n.raws.before=s.raws.before}return a}removeChild(l,s){let p=this.index(l);return!s&&p===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[p].raws.before),super.removeChild(l)}toResult(l={}){return new t(new i,this,l).stringify()}}return u.registerLazyResult=r=>{t=r},u.registerProcessor=r=>{i=r},pr=u,u.default=u,e.registerRoot(u),pr}y(xe,"cr");var dr,ri;function si(){if(ri)return dr;ri=1;let e={comma(t){return e.split(t,[","],!0)},space(t){return e.split(t,[" ",`
50
+ `," "])},split(t,i,u){let r=[],l="",s=!1,p=0,a=!1,n="",o=!1;for(let d of t)o?o=!1:d==="\\"?o=!0:a?d===n&&(a=!1):d==='"'||d==="'"?(a=!0,n=d):d==="("?p+=1:d===")"?p>0&&--p:p===0&&i.includes(d)&&(s=!0),s?(l!==""&&r.push(l.trim()),l="",s=!1):l+=d;return(u||l!=="")&&r.push(l.trim()),r}};return dr=e,e.default=e,dr}y(si,"dr");var fr,ii;function mr(){if(ii)return fr;ii=1;let e=ae(),t=si();class i extends e{static{y(this,"n")}constructor(r){super(r),this.type="rule",this.nodes||=[]}get selectors(){return t.comma(this.selector)}set selectors(r){let l=this.selector?this.selector.match(/,\s*/):null,s=l?l[0]:","+this.raw("between","beforeOpen");this.selector=r.join(s)}}return fr=i,i.default=i,e.registerRule(i),fr}y(mr,"mr");var gr,ni;function ro(){if(ni)return gr;ni=1;let e=Ve(),t=to(),i=He(),u=cr(),r=xe(),l=mr(),s={empty:!0,space:!0};function p(n){for(let o=n.length-1;o>=0;o--){let d=n[o],c=d[3]||d[2];if(c)return c}}y(p,"s");class a{static{y(this,"c")}constructor(o){this.input=o,this.root=new r,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:o,start:{column:1,line:1,offset:0}}}atrule(o){let d=new u;d.name=o[1].slice(1),d.name===""&&this.unnamedAtrule(d,o),this.init(d,o[2]);let c,h,g,f=!1,w=!1,x=[],v=[];for(;!this.tokenizer.endOfFile();){if(o=this.tokenizer.nextToken(),c=o[0],c==="("||c==="["?v.push(c==="("?")":"]"):c==="{"&&v.length>0?v.push("}"):c===v[v.length-1]&&v.pop(),v.length===0)if(c===";"){d.source.end=this.getPosition(o[2]),d.source.end.offset++,this.semicolon=!0;break}else if(c==="{"){w=!0;break}else if(c==="}"){if(x.length>0){for(g=x.length-1,h=x[g];h&&h[0]==="space";)h=x[--g];h&&(d.source.end=this.getPosition(h[3]||h[2]),d.source.end.offset++)}this.end(o);break}else x.push(o);else x.push(o);if(this.tokenizer.endOfFile()){f=!0;break}}d.raws.between=this.spacesAndCommentsFromEnd(x),x.length?(d.raws.afterName=this.spacesAndCommentsFromStart(x),this.raw(d,"params",x),f&&(o=x[x.length-1],d.source.end=this.getPosition(o[3]||o[2]),d.source.end.offset++,this.spaces=d.raws.between,d.raws.between="")):(d.raws.afterName="",d.params=""),w&&(d.nodes=[],this.current=d)}checkMissedSemicolon(o){let d=this.colon(o);if(d===!1)return;let c=0,h;for(let g=d-1;g>=0&&(h=o[g],!(h[0]!=="space"&&(c+=1,c===2)));g--);throw this.input.error("Missed semicolon",h[0]==="word"?h[3]+1:h[2])}colon(o){let d=0,c,h,g;for(let[f,w]of o.entries()){if(c=w,h=c[0],h==="("&&(d+=1),h===")"&&--d,d===0&&h===":")if(!g)this.doubleColon(c);else{if(g[0]==="word"&&g[1]==="progid")continue;return f}g=c}return!1}comment(o){let d=new i;this.init(d,o[2]),d.source.end=this.getPosition(o[3]||o[2]),d.source.end.offset++;let c=o[1].slice(2,-2);if(/^\s*$/.test(c))d.text="",d.raws.left=c,d.raws.right="";else{let h=c.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(o,d){let c=new e;this.init(c,o[0][2]);let h=o[o.length-1];for(h[0]===";"&&(this.semicolon=!0,o.pop()),c.source.end=this.getPosition(h[3]||h[2]||p(o)),c.source.end.offset++;o[0][0]!=="word";)o.length===1&&this.unknownWord(o),c.raws.before+=o.shift()[1];for(c.source.start=this.getPosition(o[0][2]),c.prop="";o.length;){let x=o[0][0];if(x===":"||x==="space"||x==="comment")break;c.prop+=o.shift()[1]}c.raws.between="";let g;for(;o.length;)if(g=o.shift(),g[0]===":"){c.raws.between+=g[1];break}else g[0]==="word"&&/\w/.test(g[1])&&this.unknownWord([g]),c.raws.between+=g[1];(c.prop[0]==="_"||c.prop[0]==="*")&&(c.raws.before+=c.prop[0],c.prop=c.prop.slice(1));let f=[],w;for(;o.length&&(w=o[0][0],!(w!=="space"&&w!=="comment"));)f.push(o.shift());this.precheckMissedSemicolon(o);for(let x=o.length-1;x>=0;x--){if(g=o[x],g[1].toLowerCase()==="!important"){c.important=!0;let v=this.stringFrom(o,x);v=this.spacesFromEnd(o)+v,v!==" !important"&&(c.raws.important=v);break}else if(g[1].toLowerCase()==="important"){let v=o.slice(0),m="";for(let b=x;b>0;b--){let S=v[b][0];if(m.trim().indexOf("!")===0&&S!=="space")break;m=v.pop()[1]+m}m.trim().indexOf("!")===0&&(c.important=!0,c.raws.important=m,o=v)}if(g[0]!=="space"&&g[0]!=="comment")break}o.some(x=>x[0]!=="space"&&x[0]!=="comment")&&(c.raws.between+=f.map(x=>x[1]).join(""),f=[]),this.raw(c,"value",f.concat(o),d),c.value.includes(":")&&!d&&this.checkMissedSemicolon(o)}doubleColon(o){throw this.input.error("Double colon",{offset:o[2]},{offset:o[2]+o[1].length})}emptyRule(o){let d=new l;this.init(d,o[2]),d.selector="",d.raws.between="",this.current=d}end(o){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(o[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(o)}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(o){if(this.spaces+=o[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(o){let d=this.input.fromOffset(o);return{column:d.col,line:d.line,offset:o}}init(o,d){this.current.push(o),o.source={input:this.input,start:this.getPosition(d)},o.raws.before=this.spaces,this.spaces="",o.type!=="comment"&&(this.semicolon=!1)}other(o){let d=!1,c=null,h=!1,g=null,f=[],w=o[1].startsWith("--"),x=[],v=o;for(;v;){if(c=v[0],x.push(v),c==="("||c==="[")g||=v,f.push(c==="("?")":"]");else if(w&&h&&c==="{")g||=v,f.push("}");else if(f.length===0)if(c===";")if(h){this.decl(x,w);return}else break;else if(c==="{"){this.rule(x);return}else if(c==="}"){this.tokenizer.back(x.pop()),d=!0;break}else c===":"&&(h=!0);else c===f[f.length-1]&&(f.pop(),f.length===0&&(g=null));v=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(d=!0),f.length>0&&this.unclosedBracket(g),d&&h){if(!w)for(;x.length&&(v=x[x.length-1][0],!(v!=="space"&&v!=="comment"));)this.tokenizer.back(x.pop());this.decl(x,w)}else this.unknownWord(x)}parse(){let o;for(;!this.tokenizer.endOfFile();)switch(o=this.tokenizer.nextToken(),o[0]){case"space":this.spaces+=o[1];break;case";":this.freeSemicolon(o);break;case"}":this.end(o);break;case"comment":this.comment(o);break;case"at-word":this.atrule(o);break;case"{":this.emptyRule(o);break;default:this.other(o);break}this.endFile()}precheckMissedSemicolon(){}raw(o,d,c,h){let g,f,w=c.length,x="",v=!0,m,b;for(let S=0;S<w;S+=1)g=c[S],f=g[0],f==="space"&&S===w-1&&!h?v=!1:f==="comment"?(b=c[S-1]?c[S-1][0]:"empty",m=c[S+1]?c[S+1][0]:"empty",!s[b]&&!s[m]?x.slice(-1)===","?v=!1:x+=g[1]:v=!1):x+=g[1];if(!v){let S=c.reduce((E,C)=>E+C[1],"");o.raws[d]={raw:S,value:x}}o[d]=x}rule(o){o.pop();let d=new l;this.init(d,o[0][2]),d.raws.between=this.spacesAndCommentsFromEnd(o),this.raw(d,"selector",o),this.current=d}spacesAndCommentsFromEnd(o){let d,c="";for(;o.length&&(d=o[o.length-1][0],!(d!=="space"&&d!=="comment"));)c=o.pop()[1]+c;return c}spacesAndCommentsFromStart(o){let d,c="";for(;o.length&&(d=o[0][0],!(d!=="space"&&d!=="comment"));)c+=o.shift()[1];return c}spacesFromEnd(o){let d,c="";for(;o.length&&(d=o[o.length-1][0],d==="space");)c=o.pop()[1]+c;return c}stringFrom(o,d){let c="";for(let h=d;h<o.length;h++)c+=o[h][1];return o.splice(d,o.length-d),c}unclosedBlock(){let o=this.current.source.start;throw this.input.error("Unclosed block",o.line,o.column)}unclosedBracket(o){throw this.input.error("Unclosed bracket",{offset:o[2]},{offset:o[2]+1})}unexpectedClose(o){throw this.input.error("Unexpected }",{offset:o[2]},{offset:o[2]+1})}unknownWord(o){throw this.input.error("Unknown word",{offset:o[0][2]},{offset:o[0][2]+o[0][1].length})}unnamedAtrule(o,d){throw this.input.error("At-rule without name",{offset:d[2]},{offset:d[2]+d[1].length})}}return gr=a,gr}y(ro,"_r");var yr,oi;function wr(){if(oi)return yr;oi=1;let e=ae(),t=ro(),i=Ge();function u(r,l){let s=new t(new i(r,l));try{s.parse()}catch(p){throw p}return s.root}return y(u,"r"),yr=u,u.default=u,e.registerParse(u),yr}y(wr,"br");var br,ai;function li(){if(ai)return br;ai=1;let{isClean:e,my:t}=Ht(),i=Vs(),u=ze(),r=ae(),l=ir();Qs();let s=lr(),p=wr(),a=xe(),n={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},d={Once:!0,postcssPlugin:!0,prepare:!0};function c(v){return typeof v=="object"&&typeof v.then=="function"}y(c,"f");function h(v){let m=!1,b=n[v.type];return v.type==="decl"?m=v.prop.toLowerCase():v.type==="atrule"&&(m=v.name.toLowerCase()),m&&v.append?[b,b+"-"+m,0,b+"Exit",b+"Exit-"+m]:m?[b,b+"-"+m,b+"Exit",b+"Exit-"+m]:v.append?[b,0,b+"Exit"]:[b,b+"Exit"]}y(h,"p");function g(v){let m;return m=v.type==="document"?["Document",0,"DocumentExit"]:v.type==="root"?["Root",0,"RootExit"]:h(v),{eventIndex:0,events:m,iterator:0,node:v,visitorIndex:0,visitors:[]}}y(g,"m");function f(v){return v[e]=!1,v.nodes&&v.nodes.forEach(m=>f(m)),v}y(f,"h");let w={};class x{static{y(this,"_")}constructor(m,b,S){this.stringified=!1,this.processed=!1;let E;if(typeof b=="object"&&b&&(b.type==="root"||b.type==="document"))E=f(b);else if(b instanceof x||b instanceof s)E=f(b.root),b.map&&(S.map===void 0&&(S.map={}),S.map.inline||(S.map.inline=!1),S.map.prev=b.map);else{let C=p;S.syntax&&(C=S.syntax.parse),S.parser&&(C=S.parser),C.parse&&(C=C.parse);try{E=C(b,S)}catch(T){this.processed=!0,this.error=T}E&&!E[t]&&r.rebuild(E)}this.result=new s(m,E,S),this.helpers={...w,postcss:w,result:this.result},this.plugins=this.processor.plugins.map(C=>typeof C=="object"&&C.prepare?{...C,...C.prepare(this.result)}:C)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||=this.runAsync(),this.processing)}catch(m){return this.async().catch(m)}finally(m){return this.async().then(m,m)}getAsyncError(){throw Error("Use process(css).then(cb) to work with async plugins")}handleError(m,b){let S=this.result.lastPlugin;try{b&&b.addToError(m),this.error=m,m.name==="CssSyntaxError"&&!m.plugin?(m.plugin=S.postcssPlugin,m.setMessage()):S.postcssVersion}catch(E){console&&console.error&&console.error(E)}return m}prepareVisitors(){this.listeners={};let m=y((b,S,E)=>{this.listeners[S]||(this.listeners[S]=[]),this.listeners[S].push([b,E])},"e");for(let b of this.plugins)if(typeof b=="object")for(let S in b){if(!o[S]&&/^[A-Z]/.test(S))throw Error(`Unknown event ${S} in ${b.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!d[S])if(typeof b[S]=="object")for(let E in b[S])E==="*"?m(b,S,b[S][E]):m(b,S+"-"+E.toLowerCase(),b[S][E]);else typeof b[S]=="function"&&m(b,S,b[S])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let m=0;m<this.plugins.length;m++){let b=this.plugins[m],S=this.runOnRoot(b);if(c(S))try{await S}catch(E){throw this.handleError(E)}}if(this.prepareVisitors(),this.hasListener){let m=this.result.root;for(;!m[e];){m[e]=!0;let b=[g(m)];for(;b.length>0;){let S=this.visitTick(b);if(c(S))try{await S}catch(E){let C=b[b.length-1].node;throw this.handleError(E,C)}}}if(this.listeners.OnceExit)for(let[b,S]of this.listeners.OnceExit){this.result.lastPlugin=b;try{if(m.type==="document"){let E=m.nodes.map(C=>S(C,this.helpers));await Promise.all(E)}else await S(m,this.helpers)}catch(E){throw this.handleError(E)}}}return this.processed=!0,this.stringify()}runOnRoot(m){this.result.lastPlugin=m;try{if(typeof m=="object"&&m.Once){if(this.result.root.type==="document"){let b=this.result.root.nodes.map(S=>m.Once(S,this.helpers));return c(b[0])?Promise.all(b):b}return m.Once(this.result.root,this.helpers)}else if(typeof m=="function")return m(this.result.root,this.result)}catch(b){throw this.handleError(b)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let m=this.result.opts,b=u;m.syntax&&(b=m.syntax.stringify),m.stringifier&&(b=m.stringifier),b.stringify&&(b=b.stringify);let S=new i(b,this.result.root,this.result.opts).generate();return this.result.css=S[0],this.result.map=S[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let m of this.plugins)if(c(this.runOnRoot(m)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let m=this.result.root;for(;!m[e];)m[e]=!0,this.walkSync(m);if(this.listeners.OnceExit)if(m.type==="document")for(let b of m.nodes)this.visitSync(this.listeners.OnceExit,b);else this.visitSync(this.listeners.OnceExit,m)}return this.result}then(m,b){return this.async().then(m,b)}toString(){return this.css}visitSync(m,b){for(let[S,E]of m){this.result.lastPlugin=S;let C;try{C=E(b,this.helpers)}catch(T){throw this.handleError(T,b.proxyOf)}if(b.type!=="root"&&b.type!=="document"&&!b.parent)return!0;if(c(C))throw this.getAsyncError()}}visitTick(m){let b=m[m.length-1],{node:S,visitors:E}=b;if(S.type!=="root"&&S.type!=="document"&&!S.parent){m.pop();return}if(E.length>0&&b.visitorIndex<E.length){let[T,R]=E[b.visitorIndex];b.visitorIndex+=1,b.visitorIndex===E.length&&(b.visitors=[],b.visitorIndex=0),this.result.lastPlugin=T;try{return R(S.toProxy(),this.helpers)}catch($){throw this.handleError($,S)}}if(b.iterator!==0){let T=b.iterator,R;for(;R=S.nodes[S.indexes[T]];)if(S.indexes[T]+=1,!R[e]){R[e]=!0,m.push(g(R));return}b.iterator=0,delete S.indexes[T]}let C=b.events;for(;b.eventIndex<C.length;){let T=C[b.eventIndex];if(b.eventIndex+=1,T===0){S.nodes&&S.nodes.length&&(S[e]=!0,b.iterator=S.getIterator());return}else if(this.listeners[T]){b.visitors=this.listeners[T];return}}m.pop()}walkSync(m){m[e]=!0;let b=h(m);for(let S of b)if(S===0)m.nodes&&m.each(E=>{E[e]||this.walkSync(E)});else{let E=this.listeners[S];if(E&&this.visitSync(E,m.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 x.registerPostcss=v=>{w=v},br=x,x.default=x,a.registerLazyResult(x),l.registerLazyResult(x),br}y(li,"Cr");var vr,ui;function so(){if(ui)return vr;ui=1;let e=Vs(),t=ze();Qs();let i=wr(),u=lr();class r{static{y(this,"i")}constructor(s,p,a){p=p.toString(),this.stringified=!1,this._processor=s,this._css=p,this._opts=a,this._map=void 0;let n=t;this.result=new u(this._processor,void 0,this._opts),this.result.css=p;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let d=new e(n,void 0,this._opts,p);if(d.isMap()){let[c,h]=d.generate();c&&(this.result.css=c),h&&(this.result.map=h)}else d.clearAnnotation(),this.result.css=d.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(s){return this.async().catch(s)}finally(s){return this.async().then(s,s)}sync(){if(this.error)throw this.error;return this.result}then(s,p){return this.async().then(s,p)}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 s,p=i;try{s=p(this._css,this._opts)}catch(a){this.error=a}if(this.error)throw this.error;return this._root=s,s}get[Symbol.toStringTag](){return"NoWorkResult"}}return vr=r,r.default=r,vr}y(so,"Er");var xr,hi;function io(){if(hi)return xr;hi=1;let e=so(),t=li(),i=ir(),u=xe();class r{static{y(this,"i")}constructor(s=[]){this.version="8.4.38",this.plugins=this.normalize(s)}normalize(s){let p=[];for(let a of s)if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),typeof a=="object"&&Array.isArray(a.plugins))p=p.concat(a.plugins);else if(typeof a=="object"&&a.postcssPlugin)p.push(a);else if(typeof a=="function")p.push(a);else if(!(typeof a=="object"&&(a.parse||a.stringify)))throw Error(a+" is not a PostCSS plugin");return p}process(s,p={}){return!this.plugins.length&&!p.parser&&!p.stringifier&&!p.syntax?new e(this,s,p):new t(this,s,p)}use(s){return this.plugins=this.plugins.concat(this.normalize([s])),this}}return xr=r,r.default=r,u.registerProcessor(r),i.registerProcessor(r),xr}y(io,"kr");var Sr,ci;function no(){if(ci)return Sr;ci=1;let e=Ve(),t=$s(),i=He(),u=cr(),r=Ge(),l=xe(),s=mr();function p(a,n){if(Array.isArray(a))return a.map(c=>p(c));let{inputs:o,...d}=a;if(o){n=[];for(let c of o){let h={...c,__proto__:r.prototype};h.map&&={...h.map,__proto__:t.prototype},n.push(h)}}if(d.nodes&&=a.nodes.map(c=>p(c,n)),d.source){let{inputId:c,...h}=d.source;d.source=h,c!=null&&(d.source.input=n[c])}if(d.type==="root")return new l(d);if(d.type==="decl")return new e(d);if(d.type==="rule")return new s(d);if(d.type==="comment")return new i(d);if(d.type==="atrule")return new u(d);throw Error("Unknown node type: "+a.type)}return y(p,"s"),Sr=p,p.default=p,Sr}y(no,"Mr");var Er,pi;function oo(){if(pi)return Er;pi=1;let e=Gt(),t=Ve(),i=li(),u=ae(),r=io(),l=ze(),s=no(),p=ir(),a=Zs(),n=He(),o=cr(),d=lr(),c=Ge(),h=wr(),g=si(),f=mr(),w=xe(),x=We();function v(...m){return m.length===1&&Array.isArray(m[0])&&(m=m[0]),new r(m)}return y(v,"v"),v.plugin=function(m,b){let S=!1;function E(...T){console&&console.warn&&!S&&(S=!0,console.warn(m+`: postcss.plugin was deprecated. Migration guide:
51
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),{}.LANG&&{}.LANG.startsWith("cn")&&console.warn(m+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
52
+ https://www.w3ctech.com/topic/2226`));let R=b(...T);return R.postcssPlugin=m,R.postcssVersion=new r().version,R}y(E,"r");let C;return Object.defineProperty(E,"postcss",{get(){return C||=E(),C}}),E.process=function(T,R,$){return v([E($)]).process(T,R)},E},v.stringify=l,v.parse=h,v.fromJSON=s,v.list=g,v.comment=m=>new n(m),v.atRule=m=>new o(m),v.decl=m=>new t(m),v.rule=m=>new f(m),v.root=m=>new w(m),v.document=m=>new p(m),v.CssSyntaxError=e,v.Declaration=t,v.Container=u,v.Processor=r,v.Document=p,v.Comment=n,v.Warning=a,v.AtRule=o,v.Result=d,v.Input=c,v.Rule=f,v.Root=w,v.Node=x,i.registerPostcss(v),Er=v,v.default=v,Er}y(oo,"Fr");var F=Zn(oo());F.stringify,F.fromJSON,F.plugin,F.parse,F.list,F.document,F.comment,F.atRule,F.rule,F.decl,F.root,F.CssSyntaxError,F.Declaration,F.Container,F.Processor,F.Document,F.Comment,F.Warning,F.AtRule,F.Result,F.Input,F.Rule,F.Root,F.Node;var D=(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))(D||{});function ao(e){let t={},i=/;(?![^(]*\))/g,u=/:(.+)/;return e.replace(/\/\*.*?\*\//g,"").split(i).forEach(function(r){if(r){let l=r.split(u);l.length>1&&(t[Cr(l[0].trim())]=l[1].trim())}}),t}y(ao,"Ir");function di(e){let t=[];for(let i in e){let u=e[i];if(typeof u!="string")continue;let r=co(i);t.push(`${r}: ${u};`)}return t.join(" ")}y(di,"Lr");var lo=/-([a-z])/g,uo=/^--[a-zA-Z0-9-]+$/,Cr=y(e=>uo.test(e)?e:e.replace(lo,(t,i)=>i?i.toUpperCase():""),"Br"),ho=/\B([A-Z])/g,co=y(e=>e.replace(ho,"-$1").toLowerCase(),"Hr"),se=class Ki{static{y(this,"e")}constructor(...t){M(this,"parentElement",null),M(this,"parentNode",null),M(this,"ownerDocument"),M(this,"firstChild",null),M(this,"lastChild",null),M(this,"previousSibling",null),M(this,"nextSibling",null),M(this,"ELEMENT_NODE",1),M(this,"TEXT_NODE",3),M(this,"nodeType"),M(this,"nodeName"),M(this,"RRNodeType")}get childNodes(){let t=[],i=this.firstChild;for(;i;)t.push(i),i=i.nextSibling;return t}contains(t){if(!(t instanceof Ki)||t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1}appendChild(t){throw Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(t,i){throw Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(t){throw Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}},po=class Zi extends se{static{y(this,"e")}constructor(...t){super(t),M(this,"nodeType",9),M(this,"nodeName","#document"),M(this,"compatMode","CSS1Compat"),M(this,"RRNodeType",D.Document),M(this,"textContent",null),this.ownerDocument=this}get documentElement(){return this.childNodes.find(t=>t.RRNodeType===D.Element&&t.tagName==="HTML")||null}get body(){return this.documentElement?.childNodes.find(t=>t.RRNodeType===D.Element&&t.tagName==="BODY")||null}get head(){return this.documentElement?.childNodes.find(t=>t.RRNodeType===D.Element&&t.tagName==="HEAD")||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(t){let i=t.RRNodeType;if((i===D.Element||i===D.DocumentType)&&this.childNodes.some(r=>r.RRNodeType===i))throw Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${i===D.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);let u=Nr(this,t);return u.parentElement=null,u}insertBefore(t,i){let u=t.RRNodeType;if((u===D.Element||u===D.DocumentType)&&this.childNodes.some(l=>l.RRNodeType===u))throw Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${u===D.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);let r=wi(this,t,i);return r.parentElement=null,r}removeChild(t){return bi(this,t)}open(){this.firstChild=null,this.lastChild=null}close(){}write(t){let i;if(t==='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'?i="-//W3C//DTD XHTML 1.0 Transitional//EN":t==='<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">'&&(i="-//W3C//DTD HTML 4.0 Transitional//EN"),i){let u=this.createDocumentType("html",i,"");this.open(),this.appendChild(u)}}createDocument(t,i,u){return new Zi}createDocumentType(t,i,u){let r=new fi(t,i,u);return r.ownerDocument=this,r}createElement(t){let i=new qe(t);return i.ownerDocument=this,i}createElementNS(t,i){return this.createElement(i)}createTextNode(t){let i=new mi(t);return i.ownerDocument=this,i}createComment(t){let i=new gi(t);return i.ownerDocument=this,i}createCDATASection(t){let i=new yi(t);return i.ownerDocument=this,i}toString(){return"RRDocument"}},fi=class extends se{static{y(this,"Wr")}constructor(e,t,i){super(),M(this,"nodeType",10),M(this,"RRNodeType",D.DocumentType),M(this,"name"),M(this,"publicId"),M(this,"systemId"),M(this,"textContent",null),this.name=e,this.publicId=t,this.systemId=i,this.nodeName=e}toString(){return"RRDocumentType"}},qe=class extends se{static{y(this,"Gr")}constructor(e){super(),M(this,"nodeType",1),M(this,"RRNodeType",D.Element),M(this,"tagName"),M(this,"attributes",{}),M(this,"shadowRoot",null),M(this,"scrollLeft"),M(this,"scrollTop"),this.tagName=e.toUpperCase(),this.nodeName=e.toUpperCase()}get textContent(){let e="";return this.childNodes.forEach(t=>e+=t.textContent),e}set textContent(e){this.firstChild=null,this.lastChild=null,this.appendChild(this.ownerDocument.createTextNode(e))}get classList(){return new go(this.attributes.class,e=>{this.attributes.class=e})}get id(){return this.attributes.id||""}get className(){return this.attributes.class||""}get style(){let e=this.attributes.style?ao(this.attributes.style):{},t=/\B([A-Z])/g;return e.setProperty=(i,u,r)=>{if(t.test(i))return;let l=Cr(i);u?e[l]=u:delete e[l],r==="important"&&(e[l]+=" !important"),this.attributes.style=di(e)},e.removeProperty=i=>{if(t.test(i))return"";let u=Cr(i),r=e[u]||"";return delete e[u],this.attributes.style=di(e),r},e}getAttribute(e){return this.attributes[e]===void 0?null:this.attributes[e]}setAttribute(e,t){this.attributes[e]=t}setAttributeNS(e,t,i){this.setAttribute(t,i)}removeAttribute(e){delete this.attributes[e]}appendChild(e){return Nr(this,e)}insertBefore(e,t){return wi(this,e,t)}removeChild(e){return bi(this,e)}attachShadow(e){let t=this.ownerDocument.createElement("SHADOWROOT");return this.shadowRoot=t,t}dispatchEvent(e){return!0}toString(){let e="";for(let t in this.attributes)e+=`${t}="${this.attributes[t]}" `;return`${this.tagName} ${e}`}},fo=class extends qe{static{y(this,"Kr")}constructor(){super(...arguments),M(this,"currentTime"),M(this,"volume"),M(this,"paused"),M(this,"muted"),M(this,"playbackRate"),M(this,"loop")}attachShadow(e){throw Error("RRDomException: Failed to execute 'attachShadow' on 'RRElement': This RRElement does not support attachShadow")}play(){this.paused=!1}pause(){this.paused=!0}},mo=class extends qe{static{y(this,"qr")}constructor(){super(...arguments),M(this,"tagName","DIALOG"),M(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")}},mi=class extends se{static{y(this,"Jr")}constructor(e){super(),M(this,"nodeType",3),M(this,"nodeName","#text"),M(this,"RRNodeType",D.Text),M(this,"data"),this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRText text=${JSON.stringify(this.data)}`}},gi=class extends se{static{y(this,"Yr")}constructor(e){super(),M(this,"nodeType",8),M(this,"nodeName","#comment"),M(this,"RRNodeType",D.Comment),M(this,"data"),this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRComment text=${JSON.stringify(this.data)}`}},yi=class extends se{static{y(this,"Xr")}constructor(e){super(),M(this,"nodeName","#cdata-section"),M(this,"nodeType",4),M(this,"RRNodeType",D.CDATA),M(this,"data"),this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRCDATASection data=${JSON.stringify(this.data)}`}},go=class{static{y(this,"Zr")}constructor(e,t){if(M(this,"onChange"),M(this,"classes",[]),M(this,"add",(...i)=>{for(let u of i){let r=String(u);this.classes.indexOf(r)>=0||this.classes.push(r)}this.onChange&&this.onChange(this.classes.join(" "))}),M(this,"remove",(...i)=>{this.classes=this.classes.filter(u=>i.indexOf(u)===-1),this.onChange&&this.onChange(this.classes.join(" "))}),e){let i=e.trim().split(/\s+/);this.classes.push(...i)}this.onChange=t}};function Nr(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}y(Nr,"Qr");function wi(e,t,i){if(!i)return Nr(e,t);if(i.parentNode!==e)throw 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===i||(t.parentNode&&t.parentNode.removeChild(t),t.previousSibling=i.previousSibling,i.previousSibling=t,t.nextSibling=i,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,t.parentElement=e,t.parentNode=e,t.ownerDocument=e.ownerDocument),t}y(wi,"$r");function bi(e,t){if(t.parentNode!==e)throw 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}y(bi,"ei");var Y=(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))(Y||{}),Mr={svg:"http://www.w3.org/2000/svg","xlink:href":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"},yo={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"},le=null;function Ye(e,t,i,u=t.mirror||t.ownerDocument.mirror){e=wo(e,t,i,u),vi(e,t,i,u),bo(e,t,i)}y(Ye,"ii");function wo(e,t,i,u){var r;if(i.afterAppend&&!le&&(le=new WeakSet,setTimeout(()=>{le=null},0)),!Tr(e,t)){let l=Qe(t,i.mirror,u);(r=e.parentNode)==null||r.replaceChild(l,e),e=l}switch(t.RRNodeType){case D.Document:if(!ce(e,t,i.mirror,u)){let l=u.getMeta(t);l&&(i.mirror.removeNodeFromMap(e),e.close(),e.open(),i.mirror.add(e,l),le?.add(e))}break;case D.Element:{let l=e,s=t;switch(s.tagName){case"IFRAME":{let p=e.contentDocument;if(!p)break;Ye(p,t.contentDocument,i,u);break}}s.shadowRoot&&(l.shadowRoot||l.attachShadow({mode:"open"}),vi(l.shadowRoot,s.shadowRoot,i,u)),vo(l,s,u);break}}return e}y(wo,"ai");function bo(e,t,i){var u;switch(t.RRNodeType){case D.Document:{let r=t.scrollData;r&&i.applyScroll(r,!0);break}case D.Element:{let r=e,l=t;switch(l.scrollData&&i.applyScroll(l.scrollData,!0),l.inputData&&i.applyInput(l.inputData),l.tagName){case"AUDIO":case"VIDEO":{let s=e,p=l;p.paused!==void 0&&(p.paused?s.pause():s.play()),p.muted!==void 0&&(s.muted=p.muted),p.volume!==void 0&&(s.volume=p.volume),p.currentTime!==void 0&&(s.currentTime=p.currentTime),p.playbackRate!==void 0&&(s.playbackRate=p.playbackRate),p.loop!==void 0&&(s.loop=p.loop);break}case"CANVAS":{let s=t;if(s.rr_dataURL!==null){let p=document.createElement("img");p.onload=()=>{let a=r.getContext("2d");a&&a.drawImage(p,0,0,p.width,p.height)},p.src=s.rr_dataURL}s.canvasMutations.forEach(p=>i.applyCanvas(p.event,p.mutation,e));break}case"STYLE":{let s=r.sheet;s&&t.rules.forEach(p=>i.applyStyleSheetMutation(p,s));break}case"DIALOG":{let s=r,p=l,a=s.open,n=s.matches("dialog:modal"),o=p.open,d=p.isModal,c=n!==d,h=a!==o;if((c||a&&h)&&s.close(),o&&(h||c))try{d?s.showModal():s.show()}catch(g){console.warn(g)}break}}break}case D.Text:case D.Comment:case D.CDATA:e.textContent!==t.data&&(e.textContent=t.data);break}le?.has(e)&&(le.delete(e),(u=i.afterAppend)==null||u.call(i,e,i.mirror.getId(e)))}y(bo,"oi");function vo(e,t,i){let u=e.attributes,r=t.attributes;for(let l in r){let s=r[l];if(i.getMeta(t)?.isSVG&&Mr[l])e.setAttributeNS(Mr[l],l,s);else if(t.tagName==="CANVAS"&&l==="rr_dataURL"){let p=document.createElement("img");p.src=s,p.onload=()=>{let a=e.getContext("2d");a&&a.drawImage(p,0,0,p.width,p.height)}}else{if(t.tagName==="IFRAME"&&l==="srcdoc")continue;try{e.setAttribute(l,s)}catch(p){console.warn(p)}}}for(let{name:l}of Array.from(u))l in r||e.removeAttribute(l);t.scrollLeft&&(e.scrollLeft=t.scrollLeft),t.scrollTop&&(e.scrollTop=t.scrollTop)}y(vo,"si");function vi(e,t,i,u){let r=Array.from(e.childNodes),l=t.childNodes;if(r.length===0&&l.length===0)return;let s=0,p=r.length-1,a=0,n=l.length-1,o=r[s],d=r[p],c=l[a],h=l[n],g,f;for(;s<=p&&a<=n;)if(o===void 0)o=r[++s];else if(d===void 0)d=r[--p];else if(ce(o,c,i.mirror,u))o=r[++s],c=l[++a];else if(ce(d,h,i.mirror,u))d=r[--p],h=l[--n];else if(ce(o,h,i.mirror,u)){try{e.insertBefore(o,d.nextSibling)}catch(v){console.warn(v)}o=r[++s],h=l[--n]}else if(ce(d,c,i.mirror,u)){try{e.insertBefore(d,o)}catch(v){console.warn(v)}d=r[--p],c=l[++a]}else{if(!g){g={};for(let m=s;m<=p;m++){let b=r[m];b&&i.mirror.hasNode(b)&&(g[i.mirror.getId(b)]=m)}}f=g[u.getId(c)];let v=r[f];if(f!==void 0&&v&&ce(v,c,i.mirror,u)){try{e.insertBefore(v,o)}catch(m){console.warn(m)}r[f]=void 0}else{let m=Qe(c,i.mirror,u);e.nodeName==="#document"&&o&&(m.nodeType===m.DOCUMENT_TYPE_NODE&&o.nodeType===o.DOCUMENT_TYPE_NODE||m.nodeType===m.ELEMENT_NODE&&o.nodeType===o.ELEMENT_NODE)&&(e.removeChild(o),i.mirror.removeNodeFromMap(o),o=r[++s]);try{e.insertBefore(m,o||null)}catch(b){console.warn(b)}}c=l[++a]}if(s>p){let v=l[n+1],m=null;for(v&&(m=i.mirror.getNode(u.getId(v)));a<=n;++a){let b=Qe(l[a],i.mirror,u);try{e.insertBefore(b,m)}catch(S){console.warn(S)}}}else if(a>n)for(;s<=p;s++){let v=r[s];if(!(!v||v.parentNode!==e))try{e.removeChild(v),i.mirror.removeNodeFromMap(v)}catch(m){console.warn(m)}}let w=e.firstChild,x=t.firstChild;for(;w!==null&&x!==null;)Ye(w,x,i,u),w=w.nextSibling,x=x.nextSibling}y(vi,"ci");function Qe(e,t,i){let u=i.getId(e),r=i.getMeta(e),l=null;if(u>-1&&(l=t.getNode(u)),l!==null&&Tr(l,e))return l;switch(e.RRNodeType){case D.Document:l=new Document;break;case D.DocumentType:l=document.implementation.createDocumentType(e.name,e.publicId,e.systemId);break;case D.Element:{let s=e.tagName.toLowerCase();s=yo[s]||s,l=r&&"isSVG"in r&&r?.isSVG?document.createElementNS(Mr.svg,s):document.createElement(e.tagName);break}case D.Text:l=document.createTextNode(e.data);break;case D.Comment:l=document.createComment(e.data);break;case D.CDATA:l=document.createCDATASection(e.data);break}r&&t.add(l,{...r});try{le?.add(l)}catch{}return l}y(Qe,"li");function Tr(e,t){return e.nodeType===t.nodeType?e.nodeType!==e.ELEMENT_NODE||e.tagName.toUpperCase()===t.tagName:!1}y(Tr,"ui");function ce(e,t,i,u){let r=i.getId(e),l=u.getId(t);return r===-1||r!==l?!1:Tr(e,t)}y(ce,"di");var Ke=class Ji extends po{static{y(this,"e")}constructor(t){super(),M(this,"UNSERIALIZED_STARTING_ID",-2),M(this,"_unserializedId",this.UNSERIALIZED_STARTING_ID),M(this,"mirror",Ao()),M(this,"scrollData",null),t&&(this.mirror=t)}get unserializedId(){return this._unserializedId--}createDocument(t,i,u){return new Ji}createDocumentType(t,i,u){let r=new xo(t,i,u);return r.ownerDocument=this,r}createElement(t){let i=t.toUpperCase(),u;switch(i){case"AUDIO":case"VIDEO":u=new So(i);break;case"IFRAME":u=new Mo(i,this.mirror);break;case"CANVAS":u=new Co(i);break;case"STYLE":u=new No(i);break;case"DIALOG":u=new Eo(i);break;default:u=new Ze(i);break}return u.ownerDocument=this,u}createComment(t){let i=new ko(t);return i.ownerDocument=this,i}createCDATASection(t){let i=new Oo(t);return i.ownerDocument=this,i}createTextNode(t){let i=new To(t);return i.ownerDocument=this,i}destroyTree(){this.firstChild=null,this.lastChild=null,this.mirror.reset()}open(){super.open(),this._unserializedId=this.UNSERIALIZED_STARTING_ID}},xo=fi,Ze=class extends qe{static{y(this,"mi")}constructor(){super(...arguments),M(this,"inputData",null),M(this,"scrollData",null)}},So=class extends fo{static{y(this,"hi")}},Eo=class extends mo{static{y(this,"gi")}},Co=class extends Ze{static{y(this,"_i")}constructor(){super(...arguments),M(this,"rr_dataURL",null),M(this,"canvasMutations",[])}getContext(){return null}},No=class extends Ze{static{y(this,"vi")}constructor(){super(...arguments),M(this,"rules",[])}},Mo=class extends Ze{static{y(this,"yi")}constructor(e,t){super(e),M(this,"contentDocument",new Ke),this.contentDocument.mirror=t}},To=mi,ko=gi,Oo=yi;function Ro(e){return e instanceof HTMLFormElement?"FORM":e.tagName.toUpperCase()}y(Ro,"Ci");function xi(e,t,i,u){let r;switch(e.nodeType){case Y.DOCUMENT_NODE:u&&u.nodeName==="IFRAME"?r=u.contentDocument:(r=t,r.compatMode=e.compatMode);break;case Y.DOCUMENT_TYPE_NODE:{let s=e;r=t.createDocumentType(s.name,s.publicId,s.systemId);break}case Y.ELEMENT_NODE:{let s=e,p=Ro(s);r=t.createElement(p);let a=r;for(let{name:n,value:o}of Array.from(s.attributes))a.attributes[n]=o;s.scrollLeft&&(a.scrollLeft=s.scrollLeft),s.scrollTop&&(a.scrollTop=s.scrollTop);break}case Y.TEXT_NODE:r=t.createTextNode(e.textContent||"");break;case Y.CDATA_SECTION_NODE:r=t.createCDATASection(e.data);break;case Y.COMMENT_NODE:r=t.createComment(e.textContent||"");break;case Y.DOCUMENT_FRAGMENT_NODE:r=u.attachShadow({mode:"open"});break;default:return null}let l=i.getMeta(e);return t instanceof Ke&&(l||(l=Si(r,t.unserializedId),i.add(e,l)),t.mirror.add(r,{...l})),r}y(xi,"wi");function Do(e,t=Kn(),i=new Ke){function u(r,l){let s=xi(r,i,t,l);if(s!==null)if(l?.nodeName!=="IFRAME"&&r.nodeType!==Y.DOCUMENT_FRAGMENT_NODE&&(l?.appendChild(s),s.parentNode=l,s.parentElement=l),r.nodeName==="IFRAME"){let p=r.contentDocument;p&&u(p,s)}else(r.nodeType===Y.DOCUMENT_NODE||r.nodeType===Y.ELEMENT_NODE||r.nodeType===Y.DOCUMENT_FRAGMENT_NODE)&&(r.nodeType===Y.ELEMENT_NODE&&r.shadowRoot&&u(r.shadowRoot,s),r.childNodes.forEach(p=>u(p,s)))}return y(u,"r"),u(e,null),i}y(Do,"Ti");function Ao(){return new Io}y(Ao,"Ei");var Io=class{static{y(this,"Di")}constructor(){M(this,"idNodeMap",new Map),M(this,"nodeMetaMap",new WeakMap)}getId(e){return e?this.getMeta(e)?.id??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(i=>this.removeNodeFromMap(i))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let i=t.id;this.idNodeMap.set(i,e),this.nodeMetaMap.set(e,t)}replace(e,t){let i=this.getNode(e);if(i){let u=this.nodeMetaMap.get(i);u&&this.nodeMetaMap.set(t,u)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function Si(e,t){switch(e.RRNodeType){case D.Document:return{id:t,type:e.RRNodeType,childNodes:[]};case D.DocumentType:{let i=e;return{id:t,type:e.RRNodeType,name:i.name,publicId:i.publicId,systemId:i.systemId}}case D.Element:return{id:t,type:e.RRNodeType,tagName:e.tagName.toLowerCase(),attributes:{},childNodes:[]};case D.Text:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case D.Comment:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case D.CDATA:return{id:t,type:e.RRNodeType,textContent:""}}}y(Si,"Oi");var Ei={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument","firstChild","lastChild","nextSibling","previousSibling"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Ci={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Je={},Ni={},Po=y(()=>!!globalThis.Zone,"Ni");function kr(e){if(Je[e])return Je[e];let t=globalThis[e],i=t.prototype,u=e in Ei?Ei[e]:void 0,r=!!(u&&u.every(p=>!!Object.getOwnPropertyDescriptor(i,p)?.get?.toString().includes("[native code]"))),l=e in Ci?Ci[e]:void 0,s=!!(l&&l.every(p=>typeof i[p]=="function"&&i[p]?.toString().includes("[native code]")));if(r&&s&&!Po())return Je[e]=t.prototype,t.prototype;try{let p=document.createElement("iframe");p.style.display="none",document.body.appendChild(p);let a=p.contentWindow;if(!a)return t.prototype;let n=a[e].prototype;if(!n)return p.remove(),i;let o=navigator.userAgent;return o.includes("Safari")&&!o.includes("Chrome")?(p.classList.add("rr-block"),p.setAttribute("__rrwebUntaintedMutationObserver",""),Ni[e]=()=>p.remove()):p.remove(),Je[e]=n}catch{return i}}y(kr,"Pi");var Or={};function Q(e,t,i){let u=Or[e]?.[i];if(u)return u.call(t);let r=kr(e),l=Object.getOwnPropertyDescriptor(r,i)?.get;return l?((Or[e]||(Or[e]={}))[i]=l,l.call(t)):t[i]}y(Q,"K");var Rr={};function Mi(e,t,i){let u=`${e}.${String(i)}`;if(Rr[u])return Rr[u].bind(t);let r=kr(e)[i];return typeof r=="function"?(Rr[u]=r,r.bind(t)):t[i]}y(Mi,"Li");function _o(e){return Q("Node",e,"ownerDocument")}y(_o,"Ri");function Lo(e){return Q("Node",e,"childNodes")}y(Lo,"zi");function Fo(e){return Q("Node",e,"parentNode")}y(Fo,"Bi");function Uo(e){return Q("Node",e,"parentElement")}y(Uo,"Vi");function jo(e){return Q("Node",e,"textContent")}y(jo,"Hi");function Bo(e){return Q("Node",e,"firstChild")}y(Bo,"Ui");function $o(e){return Q("Node",e,"lastChild")}y($o,"Wi");function zo(e){return Q("Node",e,"nextSibling")}y(zo,"Gi");function Wo(e){return Q("Node",e,"previousSibling")}y(Wo,"Ki");function Vo(e,t){return Mi("Node",e,"contains")(t)}y(Vo,"qi");function Go(e){return Mi("Node",e,"getRootNode")()}y(Go,"Ji");function Ho(e){return!e||!("host"in e)?null:Q("ShadowRoot",e,"host")}y(Ho,"Yi");function qo(e){return e.styleSheets}y(qo,"Xi");function Yo(e){return!e||!("shadowRoot"in e)?null:Q("Element",e,"shadowRoot")}y(Yo,"Zi");function Qo(e,t){return Q("Element",e,"querySelector")(t)}y(Qo,"Qi");function Ko(e,t){return Q("Element",e,"querySelectorAll")(t)}y(Ko,"$i");function Zo(){return[kr("MutationObserver").constructor,Ni.MutationObserver??(()=>{})]}y(Zo,"ea");var Ti=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Ti=y(()=>new Date().getTime(),"ta"));function Jo(e,t,i){try{if(!(t in e))return()=>{};let u=e[t],r=i(u);return typeof r=="function"&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:u}})),e[t]=r,()=>{e[t]=u}}catch{return()=>{}}}y(Jo,"na");var Xo={ownerDocument:_o,childNodes:Lo,parentNode:Fo,parentElement:Uo,textContent:jo,firstChild:Bo,lastChild:$o,nextSibling:zo,previousSibling:Wo,contains:Vo,getRootNode:Go,host:Ho,styleSheets:qo,shadowRoot:Yo,querySelector:Qo,querySelectorAll:Ko,nowTimestamp:Ti,mutationObserverCtor:Zo,patch:Jo},pe=`Please stop import mirror directly. Instead of that,\r
53
+ now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
54
+ or you can use record.mirror to access the mirror instance during recording.`,ki={map:{},getId(){return console.error(pe),-1},getNode(){return console.error(pe),null},removeNodeFromMap(){console.error(pe)},has(){return console.error(pe),!1},reset(){console.error(pe)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(ki=new Proxy(ki,{get(e,t,i){return t==="map"&&console.error(pe),Reflect.get(e,t,i)}}));function ea(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)}y(ea,"oa");function ta(e){let t={},i=y((r,l)=>{let s={value:r,parent:l,children:[]};return t[r.node.id]=s,s},"n"),u=[];for(let r of e){let{nextId:l,parentId:s}=r;if(l&&l in t){let p=t[l];if(p.parent){let a=p.parent.children.indexOf(p);p.parent.children.splice(a,0,i(r,p.parent))}else{let a=u.indexOf(p);u.splice(a,0,i(r,null))}continue}if(s in t){let p=t[s];p.children.push(i(r,p));continue}u.push(i(r,null))}return u}y(ta,"sa");function Oi(e,t){t(e.value);for(let i=e.children.length-1;i>=0;i--)Oi(e.children[i],t)}y(Oi,"ca");function Dr(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}y(Dr,"la");function Ri(e,t){let i=e.ownerDocument?.defaultView?.frameElement;if(!i||i===t)return{x:0,y:0,relativeScale:1,absoluteScale:1};let u=i.getBoundingClientRect(),r=Ri(i,t),l=u.height/i.clientHeight;return{x:u.x*r.relativeScale+r.x,y:u.y*r.relativeScale+r.y,relativeScale:l,absoluteScale:r.absoluteScale*l}}y(Ri,"ua");function Xe(e){return e?e instanceof se&&"shadowRoot"in e?!!e.shadowRoot:!!Xo.shadowRoot(e):!1}y(Xe,"da");function Se(e,t){let i=e?.[t[0]];return i?t.length===1?i:Se(i.cssRules,t.slice(1)):null}y(Se,"fa");function Di(e){let t=[...e];return{positions:t,index:t.pop()}}y(Di,"pa");function ra(e){let t=new Set,i=[];for(let u=e.length;u--;){let r=e[u];t.has(r.id)||(i.push(r),t.add(r.id))}return i}y(ra,"ma");for(var sa=class{constructor(){O(this,"id",1),O(this,"styleIDMap",new WeakMap),O(this,"idStyleMap",new Map)}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let i;return i=t===void 0?this.id++:t,this.styleIDMap.set(e,i),this.idStyleMap.set(i,e),i}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}},j=(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[e.Asset=7]="Asset",e))(j||{}),I=(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))(I||{}),V=(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))(V||{}),et=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(et||{}),Ar=(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))(Ar||{}),A=(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))(A||{}),ie=(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))(ie||{}),Ai="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ee=typeof Uint8Array>"u"?[]:new Uint8Array(256),tt=0;tt<Ai.length;tt++)Ee[Ai.charCodeAt(tt)]=tt;var ia=y(function(e){var t=e.length*.75,i=e.length,u,r=0,l,s,p,a;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var n=new ArrayBuffer(t),o=new Uint8Array(n);for(u=0;u<i;u+=4)l=Ee[e.charCodeAt(u)],s=Ee[e.charCodeAt(u+1)],p=Ee[e.charCodeAt(u+2)],a=Ee[e.charCodeAt(u+3)],o[r++]=l<<2|s>>4,o[r++]=(s&15)<<4|p>>2,o[r++]=(p&3)<<6|a&63;return n},"xa");typeof self<"u"&&self.Blob&&new Blob([`(function() {
55
+ "use strict";
56
+ var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
57
+ var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256);
58
+ for (var i = 0; i < chars.length; i++) {
59
+ lookup[chars.charCodeAt(i)] = i;
60
+ }
61
+ var encode = function(arraybuffer) {
62
+ var bytes = new Uint8Array(arraybuffer), i2, len = bytes.length, base64 = "";
63
+ for (i2 = 0; i2 < len; i2 += 3) {
64
+ base64 += chars[bytes[i2] >> 2];
65
+ base64 += chars[(bytes[i2] & 3) << 4 | bytes[i2 + 1] >> 4];
66
+ base64 += chars[(bytes[i2 + 1] & 15) << 2 | bytes[i2 + 2] >> 6];
67
+ base64 += chars[bytes[i2 + 2] & 63];
68
+ }
69
+ if (len % 3 === 2) {
70
+ base64 = base64.substring(0, base64.length - 1) + "=";
71
+ } else if (len % 3 === 1) {
72
+ base64 = base64.substring(0, base64.length - 2) + "==";
73
+ }
74
+ return base64;
75
+ };
76
+ const lastBlobMap = /* @__PURE__ */ new Map();
77
+ const transparentBlobMap = /* @__PURE__ */ new Map();
78
+ async function getTransparentBlobFor(width, height, dataURLOptions) {
79
+ const id = \`\${width}-\${height}\`;
80
+ if ("OffscreenCanvas" in globalThis) {
81
+ if (transparentBlobMap.has(id)) return transparentBlobMap.get(id);
82
+ const offscreen = new OffscreenCanvas(width, height);
83
+ offscreen.getContext("2d");
84
+ const blob = await offscreen.convertToBlob(dataURLOptions);
85
+ const arrayBuffer = await blob.arrayBuffer();
86
+ const base64 = encode(arrayBuffer);
87
+ transparentBlobMap.set(id, base64);
88
+ return base64;
89
+ } else {
90
+ return "";
91
+ }
92
+ }
93
+ const worker = self;
94
+ worker.onmessage = async function(e) {
95
+ if ("OffscreenCanvas" in globalThis) {
96
+ const { id, bitmap, width, height, dataURLOptions } = e.data;
97
+ const transparentBase64 = getTransparentBlobFor(
98
+ width,
99
+ height,
100
+ dataURLOptions
101
+ );
102
+ const offscreen = new OffscreenCanvas(width, height);
103
+ const ctx = offscreen.getContext("2d");
104
+ ctx.drawImage(bitmap, 0, 0);
105
+ bitmap.close();
106
+ const blob = await offscreen.convertToBlob(dataURLOptions);
107
+ const type = blob.type;
108
+ const arrayBuffer = await blob.arrayBuffer();
109
+ const base64 = encode(arrayBuffer);
110
+ if (!lastBlobMap.has(id) && await transparentBase64 === base64) {
111
+ lastBlobMap.set(id, base64);
112
+ return worker.postMessage({ id });
113
+ }
114
+ if (lastBlobMap.get(id) === base64) return worker.postMessage({ id });
115
+ worker.postMessage({
116
+ id,
117
+ type,
118
+ base64,
119
+ width,
120
+ height
121
+ });
122
+ lastBlobMap.set(id, base64);
123
+ } else {
124
+ return worker.postMessage({ id: e.data.id });
125
+ }
126
+ };
127
+ })();
128
+ //# sourceMappingURL=image-bitmap-data-url-worker-IJpC7g_b.js.map
129
+ `],{type:"text/javascript;charset=utf-8"});try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}zr();function na(e){return{all:e||=new Map,on:y(function(t,i){var u=e.get(t);u?u.push(i):e.set(t,[i])},"on"),off:y(function(t,i){var u=e.get(t);u&&(i?u.splice(u.indexOf(i)>>>0,1):e.set(t,[]))},"off"),emit:y(function(t,i){var u=e.get(t);u&&u.slice().map(function(r){r(i)}),(u=e.get("*"))&&u.slice().map(function(r){r(t,i)})},"emit")}}y(na,"Sa");function oa(e=window,t=document){if("scrollBehavior"in t.documentElement.style&&e.__forceSmoothScrollPolyfill__!==!0)return;let i=e.HTMLElement||e.Element,u={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:i.prototype.scroll||p,scrollIntoView:i.prototype.scrollIntoView},r=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now;function l(w){return new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(w)}y(l,"a");let s=+!!l(e.navigator.userAgent);function p(w,x){this.scrollLeft=w,this.scrollTop=x}y(p,"s");function a(w){return .5*(1-Math.cos(Math.PI*w))}y(a,"c");function n(w){if(typeof w!="object"||!w||w.behavior===void 0||w.behavior==="auto"||w.behavior==="instant")return!0;if(typeof w=="object"&&w.behavior==="smooth")return!1;throw TypeError("behavior member of ScrollOptions "+w.behavior+" is not a valid value for enumeration ScrollBehavior.")}y(n,"l");function o(w,x){if(x==="Y")return w.clientHeight+s<w.scrollHeight;if(x==="X")return w.clientWidth+s<w.scrollWidth}y(o,"u");function d(w,x){let v=e.getComputedStyle(w,null)["overflow"+x];return v==="auto"||v==="scroll"}y(d,"d");function c(w){let x=o(w,"Y")&&d(w,"Y"),v=o(w,"X")&&d(w,"X");return x||v}y(c,"f");function h(w){for(;w!==t.body&&c(w)===!1;)w=w.parentNode||w.host;return w}y(h,"p");function g(w){let x=r(),v,m,b,S=(x-w.startTime)/468;S=S>1?1:S,v=a(S),m=w.startX+(w.x-w.startX)*v,b=w.startY+(w.y-w.startY)*v,w.method.call(w.scrollable,m,b),(m!==w.x||b!==w.y)&&e.requestAnimationFrame(g.bind(e,w))}y(g,"m");function f(w,x,v){let m,b,S,E,C=r();w===t.body?(m=e,b=e.scrollX||e.pageXOffset,S=e.scrollY||e.pageYOffset,E=u.scroll):(m=w,b=w.scrollLeft,S=w.scrollTop,E=p),g({scrollable:m,method:E,startTime:C,startX:b,startY:S,x,y:v})}y(f,"h"),e.scroll=e.scrollTo=function(){if(arguments[0]!==void 0){if(n(arguments[0])===!0){u.scroll.call(e,arguments[0].left===void 0?typeof arguments[0]=="object"?e.scrollX||e.pageXOffset:arguments[0]:arguments[0].left,arguments[0].top===void 0?arguments[1]===void 0?e.scrollY||e.pageYOffset:arguments[1]:arguments[0].top);return}f.call(e,t.body,arguments[0].left===void 0?e.scrollX||e.pageXOffset:~~arguments[0].left,arguments[0].top===void 0?e.scrollY||e.pageYOffset:~~arguments[0].top)}},e.scrollBy=function(){if(arguments[0]!==void 0){if(n(arguments[0])){u.scrollBy.call(e,arguments[0].left===void 0?typeof arguments[0]=="object"?0:arguments[0]:arguments[0].left,arguments[0].top===void 0?arguments[1]===void 0?0:arguments[1]:arguments[0].top);return}f.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset))}},i.prototype.scroll=i.prototype.scrollTo=function(){if(arguments[0]===void 0)return;if(n(arguments[0])===!0){if(typeof arguments[0]=="number"&&arguments[1]===void 0)throw SyntaxError("Value could not be converted");u.elementScroll.call(this,arguments[0].left===void 0?typeof arguments[0]=="object"?this.scrollLeft:~~arguments[0]:~~arguments[0].left,arguments[0].top===void 0?arguments[1]===void 0?this.scrollTop:~~arguments[1]:~~arguments[0].top);return}let w=arguments[0].left,x=arguments[0].top;f.call(this,this,w===void 0?this.scrollLeft:~~w,x===void 0?this.scrollTop:~~x)},i.prototype.scrollBy=function(){if(arguments[0]!==void 0){if(n(arguments[0])===!0){u.elementScroll.call(this,arguments[0].left===void 0?~~arguments[0]+this.scrollLeft:~~arguments[0].left+this.scrollLeft,arguments[0].top===void 0?~~arguments[1]+this.scrollTop:~~arguments[0].top+this.scrollTop);return}this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},i.prototype.scrollIntoView=function(){if(n(arguments[0])===!0){u.scrollIntoView.call(this,arguments[0]===void 0?!0:arguments[0]);return}let w=h(this),x=w.getBoundingClientRect(),v=this.getBoundingClientRect();w===t.body?e.scrollBy({left:v.left,top:v.top,behavior:"smooth"}):(f.call(this,w,w.scrollLeft+v.left-x.left,w.scrollTop+v.top-x.top),e.getComputedStyle(w).position!=="fixed"&&e.scrollBy({left:x.left,top:x.top,behavior:"smooth"}))}}y(oa,"Ca");var aa=class{static{y(this,"wa")}constructor(e=[],t){O(this,"timeOffset",0),O(this,"speed"),O(this,"actions"),O(this,"raf",null),O(this,"lastTimestamp"),this.actions=e,this.speed=t.speed}addAction(e){let t=this.raf===!0;if(!this.actions.length||this.actions[this.actions.length-1].delay<=e.delay)this.actions.push(e);else{let i=this.findActionIndex(e);this.actions.splice(i,0,e)}t&&(this.raf=requestAnimationFrame(this.rafCheck.bind(this)))}start(){this.timeOffset=0,this.lastTimestamp=performance.now(),this.raf=requestAnimationFrame(this.rafCheck.bind(this))}updateLiveTime(){this.raf===!0&&this.rafCheck()}rafCheck(){let e=performance.now();for(this.timeOffset+=(e-this.lastTimestamp)*this.speed,this.lastTimestamp=e;this.actions.length;){let t=this.actions[0];if(this.timeOffset>=t.delay)this.actions.shift(),t.doAction();else break}this.actions.length>0?this.raf=requestAnimationFrame(this.rafCheck.bind(this)):this.raf=!0}clear(){this.raf&&=(this.raf!==!0&&cancelAnimationFrame(this.raf),null),this.actions.length=0}setSpeed(e){this.speed=e}isActive(){return this.raf!==null}findActionIndex(e){let t=0,i=this.actions.length-1;for(;t<=i;){let u=Math.floor((t+i)/2);if(this.actions[u].delay<e.delay)t=u+1;else if(this.actions[u].delay>e.delay)i=u-1;else return u+1}return t}};function Ii(e,t){if(e.type===j.IncrementalSnapshot&&e.data.source===I.MouseMove&&e.data.positions&&e.data.positions.length){let i=e.data.positions[0].timeOffset,u=e.timestamp+i;return e.delay=u-t,u-t}return e.delay=e.timestamp-t,e.delay}y(Ii,"Ta");function Pi(e,t){var i=typeof Symbol=="function"&&e[Symbol.iterator];if(!i)return e;var u,r,l=i.call(e),s=[];try{for(;(t===void 0||t-- >0)&&!(u=l.next()).done;)s.push(u.value)}catch(p){r={error:p}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}return s}y(Pi,"Ea");var Ce;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Ce||={});var _i={type:"xstate.init"};function Ir(e){return e===void 0?[]:[].concat(e)}y(Ir,"ka");function de(e){return{type:"xstate.assign",assignment:e}}y(de,"Aa");function Li(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}y(Li,"ja");function rt(e){return function(t){return e===t}}y(rt,"Ma");function Fi(e){return typeof e=="string"?{type:e}:e}y(Fi,"Na");function Ui(e,t){return{value:e,context:t,actions:[],changed:!1,matches:rt(e)}}y(Ui,"Pa");function ji(e,t,i){var u=t,r=!1;return[e.filter(function(l){if(l.type==="xstate.assign"){r=!0;var s=Object.assign({},u);return typeof l.assignment=="function"?s=l.assignment(u,i):Object.keys(l.assignment).forEach(function(p){s[p]=typeof l.assignment[p]=="function"?l.assignment[p](u,i):l.assignment[p]}),u=s,!1}return!0}),u,r]}y(ji,"Fa");function Bi(e,t){t===void 0&&(t={});var i=Pi(ji(Ir(e.states[e.initial].entry).map(function(s){return Li(s,t.actions)}),e.context,_i),2),u=i[0],r=i[1],l={config:e,_options:t,initialState:{value:e.initial,actions:u,context:r,matches:rt(e.initial)},transition:y(function(s,p){var a,n,o=typeof s=="string"?{value:s,context:e.context}:s,d=o.value,c=o.context,h=Fi(p),g=e.states[d];if(g.on){var f=Ir(g.on[h.type]);try{for(var w=(function(W){var fe=typeof Symbol=="function"&&Symbol.iterator,Me=fe&&W[fe],he=0;if(Me)return Me.call(W);if(W&&typeof W.length=="number")return{next:y(function(){return W&&he>=W.length&&(W=void 0),{value:W&&W[he++],done:!W}},"next")};throw TypeError(fe?"Object is not iterable.":"Symbol.iterator is not defined.")})(f),x=w.next();!x.done;x=w.next()){var v=x.value;if(v===void 0)return Ui(d,c);var m=typeof v=="string"?{target:v}:v,b=m.target,S=m.actions,E=S===void 0?[]:S,C=m.cond,T=C===void 0?function(){return!0}:C,R=b===void 0,$=b??d,z=e.states[$];if(T(c,h)){var G=Pi(ji((R?Ir(E):[].concat(g.exit,E,z.entry).filter(function(W){return W})).map(function(W){return Li(W,l._options.actions)}),c,h),3),X=G[0],q=G[1],H=G[2],Ne=b??d;return{value:Ne,context:q,actions:X,changed:b!==d||X.length>0||H,matches:rt(Ne)}}}}catch(W){a={error:W}}finally{try{x&&!x.done&&(n=w.return)&&n.call(w)}finally{if(a)throw a.error}}}return Ui(d,c)},"transition")};return l}y(Bi,"Ia");var $i=y(function(e,t){return e.actions.forEach(function(i){var u=i.exec;return u&&u(e.context,t)})},"La");function zi(e){var t=e.initialState,i=Ce.NotStarted,u=new Set,r={_machine:e,send:y(function(l){i===Ce.Running&&(t=e.transition(t,l),$i(t,Fi(l)),u.forEach(function(s){return s(t)}))},"send"),subscribe:y(function(l){return u.add(l),l(t),{unsubscribe:y(function(){return u.delete(l)},"unsubscribe")}},"subscribe"),start:y(function(l){if(l){var s=typeof l=="object"?l:{context:e.config.context,value:l};t={value:s.value,actions:[],context:s.context,matches:rt(s.value)}}return i=Ce.Running,$i(t,_i),r},"start"),stop:y(function(){return i=Ce.Stopped,u.clear(),r},"stop"),get state(){return t},get status(){return i}};return r}y(zi,"Ra");function la(e,t){for(let i=e.length-1;i>=0;i--){let u=e[i];if(u.type===j.Meta&&u.timestamp<=t)return e.slice(i)}return e}y(la,"za");function ua(e,{getCastFn:t,applyEventsSynchronously:i,emitter:u}){return zi(Bi({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:de({lastPlayedEvent:y((r,l)=>l.type==="CAST_EVENT"?l.payload.event:r.lastPlayedEvent,"lastPlayedEvent")}),recordTimeOffset:de((r,l)=>{let s=r.timeOffset;return"payload"in l&&"timeOffset"in l.payload&&(s=l.payload.timeOffset),{...r,timeOffset:s,baselineTime:r.events[0].timestamp+s}}),play(r){let{timer:l,events:s,baselineTime:p,lastPlayedEvent:a}=r;l.clear();for(let c of s)Ii(c,p);let n=la(s,p),o=a?.timestamp;a?.type===j.IncrementalSnapshot&&a.data.source===I.MouseMove&&(o=a.timestamp+a.data.positions[0]?.timeOffset),p<(o||0)&&u.emit(A.PlayBack);let d=[];for(let c of n)if(!(o&&o<p&&(c.timestamp<=o||c===a)))if(c.timestamp<p)d.push(c);else{let h=t(c,!1);l.addAction({doAction:y(()=>{h()},"doAction"),delay:c.delay})}i(d),u.emit(A.Flush),l.start()},pause(r){r.timer.clear()},resetLastPlayedEvent:de(r=>({...r,lastPlayedEvent:null})),startLive:de({baselineTime:y((r,l)=>(r.timer.start(),l.type==="TO_LIVE"&&l.payload.baselineTime?l.payload.baselineTime:Date.now()),"baselineTime")}),addEvent:de((r,l)=>{let{baselineTime:s,timer:p,events:a}=r;if(l.type==="ADD_EVENT"){let{event:n}=l.payload;Ii(n,s);let o=a.length-1;if(!a[o]||a[o].timestamp<=n.timestamp)a.push(n);else{let h=-1,g=0;for(;g<=o;){let f=Math.floor((g+o)/2);a[f].timestamp<=n.timestamp?g=f+1:o=f-1}h===-1&&(h=g),a.splice(h,0,n)}let d=n.timestamp<s,c=t(n,d);d?c():p.isActive()&&p.addAction({doAction:y(()=>{c()},"doAction"),delay:n.delay})}return{...r,events:a}})}}))}y(ua,"Ba");function ha(e){return zi(Bi({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:y((t,i)=>{"payload"in i&&t.timer.setSpeed(i.payload.speed)},"setSpeed"),recordSpeed:de({normalSpeed:y(t=>t.timer.speed,"normalSpeed")}),restoreSpeed:y(t=>{t.timer.setSpeed(t.normalSpeed)},"restoreSpeed")}}))}y(ha,"Va");var ca=y(e=>[`.${e} { background: currentColor }`,"noscript { display: none !important; }"],"Ha"),Wi=new Map;function Vi(e,t){let i=Wi.get(e);return i||(i=new Map,Wi.set(e,i)),i.has(t)||i.set(t,[]),i.get(t)}y(Vi,"Wa");function ne(e,t,i){return async u=>{if(u&&typeof u=="object"&&"rr_type"in u)if(i&&(i.isUnchanged=!1),u.rr_type==="ImageBitmap"&&"args"in u){let r=await ne(e,t,i)(u.args);return await createImageBitmap.apply(null,r)}else if("index"in u){if(i||t===null)return u;let{rr_type:r,index:l}=u;return Vi(t,r)[l]}else if("args"in u){let{rr_type:r,args:l}=u,s=window[r];return new s(...await Promise.all(l.map(ne(e,t,i))))}else{if("base64"in u)return ia(u.base64);if("src"in u){let r=e.get(u.src);if(r)return r;{let l=new Image;return l.src=u.src,e.set(u.src,l),l}}else if("data"in u&&u.rr_type==="Blob"){let r=await Promise.all(u.data.map(ne(e,t,i)));return new Blob(r,{type:u.type})}}else if(Array.isArray(u))return await Promise.all(u.map(ne(e,t,i)));return u}}y(ne,"Q");function pa(e,t){try{return t===et.WebGL?e.getContext("webgl")||e.getContext("experimental-webgl"):e.getContext("webgl2")}catch{return null}}y(pa,"Ga");var da=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject"];function fa(e,t){if(!t?.constructor)return;let{name:i}=t.constructor;if(!da.includes(i))return;let u=Vi(e,i);u.includes(t)||u.push(t)}y(fa,"qa");async function ma({mutation:e,target:t,type:i,imageMap:u,errorHandler:r}){try{let l=pa(t,i);if(!l)return;if(e.setter){l[e.property]=e.args[0];return}let s=l[e.property],p=await Promise.all(e.args.map(ne(u,l)));fa(l,s.apply(l,p))}catch(l){r(e,l)}}y(ma,"Ja");async function ga({event:e,mutations:t,target:i,imageMap:u,errorHandler:r}){let l=i.getContext("2d");if(!l){r(t[0],Error("Canvas context is null"));return}let s=t.map(async p=>Promise.all(p.args.map(ne(u,l))));(await Promise.all(s)).forEach((p,a)=>{let n=t[a];try{if(n.setter){l[n.property]=n.args[0];return}let o=l[n.property];n.property==="drawImage"&&typeof n.args[0]=="string"?(u.get(e),o.apply(l,n.args)):o.apply(l,p)}catch(o){r(n,o)}})}y(ga,"Ya");async function Gi({event:e,mutation:t,target:i,imageMap:u,canvasEventMap:r,errorHandler:l}){try{let s=r.get(e)||t,p="commands"in s?s.commands:[s];if([et.WebGL,et.WebGL2].includes(t.type)){for(let a=0;a<p.length;a++){let n=p[a];await ma({mutation:n,type:t.type,target:i,imageMap:u,errorHandler:l})}return}await ga({event:e,mutations:p,target:i,imageMap:u,errorHandler:l})}catch(s){l(t,s)}}y(Gi,"Xa");var ya=class{static{y(this,"Za")}constructor(e){O(this,"mediaMap",new Map),O(this,"warn"),O(this,"service"),O(this,"speedService"),O(this,"emitter"),O(this,"getCurrentTime"),O(this,"metadataCallbackMap",new Map),this.warn=e.warn,this.service=e.service,this.speedService=e.speedService,this.emitter=e.emitter,this.getCurrentTime=e.getCurrentTime,this.emitter.on(A.Start,this.start.bind(this)),this.emitter.on(A.SkipStart,this.start.bind(this)),this.emitter.on(A.Pause,this.pause.bind(this)),this.emitter.on(A.Finish,this.pause.bind(this)),this.speedService.subscribe(()=>{this.syncAllMediaElements()})}syncAllMediaElements(e={pause:!1}){this.mediaMap.forEach((t,i)=>{this.syncTargetWithState(i),e.pause&&i.pause()})}start(){this.syncAllMediaElements()}pause(){this.syncAllMediaElements({pause:!0})}seekTo({time:e,target:t,mediaState:i}){if(i.isPlaying){let u=(e-i.lastInteractionTimeOffset)/1e3*i.playbackRate,r="duration"in t&&t.duration;if(Number.isNaN(r)){this.waitForMetadata(t);return}let l=i.currentTimeAtLastInteraction+u;t.loop&&r!==!1&&(l%=r),t.currentTime=l}else t.pause(),t.currentTime=i.currentTimeAtLastInteraction}waitForMetadata(e){if(this.metadataCallbackMap.has(e)||!("addEventListener"in e))return;let t=y(()=>{this.metadataCallbackMap.delete(e);let i=this.mediaMap.get(e);i&&this.seekTo({time:this.getCurrentTime(),target:e,mediaState:i})},"t");this.metadataCallbackMap.set(e,t),e.addEventListener("loadedmetadata",t,{once:!0})}getMediaStateFromMutation({target:e,timeOffset:t,mutation:i}){let u=this.mediaMap.get(e),{type:r,playbackRate:l,currentTime:s,muted:p,volume:a,loop:n}=i;return{isPlaying:r===Ar.Play||r!==Ar.Pause&&(u?.isPlaying||e.getAttribute("autoplay")!==null),currentTimeAtLastInteraction:s??u?.currentTimeAtLastInteraction??0,lastInteractionTimeOffset:t,playbackRate:l??u?.playbackRate??1,volume:a??u?.volume??1,muted:p??u?.muted??e.getAttribute("muted")===null,loop:n??u?.loop??e.getAttribute("loop")===null}}syncTargetWithState(e){let t=this.mediaMap.get(e);if(!t)return;let{muted:i,loop:u,volume:r,isPlaying:l}=t,s=this.service.state.matches("paused"),p=t.playbackRate*this.speedService.state.context.timer.speed;try{this.seekTo({time:this.getCurrentTime(),target:e,mediaState:t}),e.volume!==r&&(e.volume=r),e.muted=i,e.loop=u,e.playbackRate!==p&&(e.playbackRate=p),l&&!s?e.play():e.pause()}catch(a){this.warn(`Failed to replay media interactions: ${a.message||a}`)}}addMediaElements(e,t,i){if(!["AUDIO","VIDEO"].includes(e.nodeName))return;let u=e,r=i.getMeta(u);if(!r||!("attributes"in r))return;let l=this.service.state.matches("paused"),s=r.attributes,p=!1;p=s.rr_mediaState?s.rr_mediaState==="played":u.getAttribute("autoplay")!==null,p&&l&&u.pause();let a=1;typeof s.rr_mediaPlaybackRate=="number"&&(a=s.rr_mediaPlaybackRate);let n=!1;n=typeof s.rr_mediaMuted=="boolean"?s.rr_mediaMuted:u.getAttribute("muted")!==null;let o=!1;o=typeof s.rr_mediaLoop=="boolean"?s.rr_mediaLoop:u.getAttribute("loop")!==null;let d=1;typeof s.rr_mediaVolume=="number"&&(d=s.rr_mediaVolume);let c=0;typeof s.rr_mediaCurrentTime=="number"&&(c=s.rr_mediaCurrentTime),this.mediaMap.set(u,{isPlaying:p,currentTimeAtLastInteraction:c,lastInteractionTimeOffset:t,playbackRate:a,volume:d,muted:n,loop:o}),this.syncTargetWithState(u)}mediaMutation({target:e,timeOffset:t,mutation:i}){this.mediaMap.set(e,this.getMediaStateFromMutation({target:e,timeOffset:t,mutation:i})),this.syncTargetWithState(e)}isSupportedMediaElement(e){return["AUDIO","VIDEO"].includes(e.nodeName)}reset(){this.mediaMap.clear()}};function st(e,t){if(e.nodeName!=="DIALOG"||e instanceof se)return;let i=e,u=i.open,r=u&&i.matches("dialog:modal"),l=i.getAttribute("rr_open_mode"),s=typeof t?.attributes.open=="string"||typeof i.getAttribute("open")=="string",p=l==="modal";if(!(u&&!(r&&l==="non-modal"||!r&&p))){if(!i.isConnected){console.warn("dialog is not attached to the dom",i);return}u&&i.close(),s&&(p?i.showModal():i.show())}}y(st,"Qa");function wa(e,t){if(e.nodeName!=="DIALOG"||e instanceof se)return;let i=e;if(!i.isConnected){console.warn("dialog is not attached to the dom",i);return}t.attributes.open===null&&(i.removeAttribute("open"),i.removeAttribute("rr_open_mode"))}y(wa,"$a");var ba=5*1e3,va=na,Hi="[replayer]",Pr={duration:500,lineCap:"round",lineWidth:3,strokeStyle:"red"};function qi(e){return e.type==j.IncrementalSnapshot&&(e.data.source==I.TouchMove||e.data.source==I.MouseInteraction&&e.data.type==V.TouchStart)}y(qi,"io");var xa=class{static{y(this,"ao")}constructor(e,t){if(O(this,"wrapper"),O(this,"iframe"),O(this,"UNSAFE_replayCanvas",!1),O(this,"service"),O(this,"speedService"),O(this,"config"),O(this,"usingVirtualDom",!1),O(this,"virtualDom",new Ke),O(this,"mouse"),O(this,"mouseTail",null),O(this,"tailPositions",[]),O(this,"emitter",va()),O(this,"nextUserInteractionEvent"),O(this,"legacy_missingNodeRetryMap",{}),O(this,"cache",Ts()),O(this,"imageMap",new Map),O(this,"canvasEventMap",new Map),O(this,"mirror",zr()),O(this,"styleMirror",new sa),O(this,"mediaManager"),O(this,"firstFullSnapshot",null),O(this,"newDocumentQueue",[]),O(this,"mousePos",null),O(this,"touchActive",null),O(this,"lastMouseDownEvent",null),O(this,"lastHoveredRootNode"),O(this,"lastSelectionData",null),O(this,"constructedStyleMutations",[]),O(this,"adoptedStyleSheets",[]),O(this,"handleResize",s=>{this.iframe.style.display="inherit";for(let p of[this.mouseTail,this.iframe])p&&(p.setAttribute("width",String(s.width)),p.setAttribute("height",String(s.height)))}),O(this,"applyEventsSynchronously",s=>{for(let p of s){switch(p.type){case j.DomContentLoaded:case j.Load:continue;case j.FullSnapshot:case j.Meta:case j.Plugin:case j.IncrementalSnapshot:break}this.getCastFn(p,!0)()}}),O(this,"getCastFn",(s,p=!1)=>{let a;switch(s.type){case j.DomContentLoaded:case j.Load:break;case j.Custom:a=y(()=>{this.emitter.emit(A.CustomEvent,s)},"n");break;case j.Meta:a=y(()=>this.emitter.emit(A.Resize,{width:s.data.width,height:s.data.height}),"n");break;case j.FullSnapshot:a=y(()=>{var n;if(this.firstFullSnapshot){if(this.firstFullSnapshot===s){this.firstFullSnapshot=!0;return}}else this.firstFullSnapshot=!0;this.mediaManager.reset(),this.styleMirror.reset(),this.rebuildFullSnapshot(s,p),(n=this.iframe.contentWindow)==null||n.scrollTo(s.data.initialOffset)},"n");break;case j.IncrementalSnapshot:a=y(()=>{if(this.applyIncremental(s,p),!p&&(s===this.nextUserInteractionEvent&&(this.nextUserInteractionEvent=null,this.backToNormal()),this.config.skipInactive&&!this.nextUserInteractionEvent)){for(let n of this.service.state.context.events)if(!(n.timestamp<=s.timestamp)&&this.isUserInteraction(n)){n.delay-s.delay>this.config.inactivePeriodThreshold*this.speedService.state.context.timer.speed&&(this.nextUserInteractionEvent=n);break}if(this.nextUserInteractionEvent){let n=this.nextUserInteractionEvent.delay-s.delay,o={speed:Math.min(Math.round(n/ba),this.config.maxSpeed)};this.speedService.send({type:"FAST_FORWARD",payload:o}),this.emitter.emit(A.SkipStart,o)}}},"n");break}return()=>{a&&a();for(let o of this.config.plugins||[])o.handler&&o.handler(s,p,{replayer:this});this.service.send({type:"CAST_EVENT",payload:{event:s}});let n=this.service.state.context.events.length-1;if(!this.config.liveMode&&s===this.service.state.context.events[n]){let o=y(()=>{n<this.service.state.context.events.length-1||(this.backToNormal(),this.service.send("END"),this.emitter.emit(A.Finish))},"t"),d=50;s.type===j.IncrementalSnapshot&&s.data.source===I.MouseMove&&s.data.positions.length&&(d+=Math.max(0,-s.data.positions[0].timeOffset)),setTimeout(o,d)}this.emitter.emit(A.EventCast,s)}}),!t?.liveMode&&e.length<2)throw Error("Replayer need at least 2 events.");let 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:Pr,useVirtualDom:!0,logger:console};this.config=Object.assign({},i,t),this.handleResize=this.handleResize.bind(this),this.getCastFn=this.getCastFn.bind(this),this.applyEventsSynchronously=this.applyEventsSynchronously.bind(this),this.emitter.on(A.Resize,this.handleResize),this.setupDom();for(let s of this.config.plugins||[])s.getMirror&&s.getMirror({nodeMirror:this.mirror});this.emitter.on(A.Flush,()=>{if(this.usingVirtualDom){let s={mirror:this.mirror,applyCanvas:y((p,a,n)=>{Gi({event:p,mutation:a,target:n,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})},"applyCanvas"),applyInput:this.applyInput.bind(this),applyScroll:this.applyScroll.bind(this),applyStyleSheetMutation:y((p,a)=>{p.source===I.StyleSheetRule?this.applyStyleSheetRule(p,a):p.source===I.StyleDeclaration&&this.applyStyleDeclaration(p,a)},"applyStyleSheetMutation"),afterAppend:y((p,a)=>{for(let n of this.config.plugins||[])n.onBuild&&n.onBuild(p,{id:a,replayer:this})},"afterAppend")};if(this.iframe.contentDocument)try{Ye(this.iframe.contentDocument,this.virtualDom,s,this.virtualDom.mirror)}catch(p){this.warn(p)}if(this.virtualDom.destroyTree(),this.usingVirtualDom=!1,Object.keys(this.legacy_missingNodeRetryMap).length)for(let p in this.legacy_missingNodeRetryMap)try{let a=this.legacy_missingNodeRetryMap[p],n=Qe(a.node,this.mirror,this.virtualDom.mirror);Ye(n,a.node,s,this.virtualDom.mirror),a.node=n}catch(a){this.warn(a)}this.constructedStyleMutations.forEach(p=>{this.applyStyleSheetMutation(p)}),this.constructedStyleMutations=[],this.adoptedStyleSheets.forEach(p=>{this.applyAdoptedStyleSheet(p)}),this.adoptedStyleSheets=[]}if(this.mousePos&&=(this.moveAndHover(this.mousePos.x,this.mousePos.y,this.mousePos.id,!0,this.mousePos.debugData),null),this.touchActive===!0?this.mouse.classList.add("touch-active"):this.touchActive===!1&&this.mouse.classList.remove("touch-active"),this.touchActive=null,this.lastMouseDownEvent){let[s,p]=this.lastMouseDownEvent;s.dispatchEvent(p)}this.lastMouseDownEvent=null,this.lastSelectionData&&=(this.applySelection(this.lastSelectionData),null)}),this.emitter.on(A.PlayBack,()=>{this.firstFullSnapshot=null,this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset()});let u=new aa([],{speed:this.config.speed});this.service=ua({events:e.map(s=>t&&t.unpackFn?t.unpackFn(s):s).sort((s,p)=>s.timestamp-p.timestamp),timer:u,timeOffset:0,baselineTime:0,lastPlayedEvent:null},{getCastFn:this.getCastFn,applyEventsSynchronously:this.applyEventsSynchronously,emitter:this.emitter}),this.service.start(),this.service.subscribe(s=>{this.emitter.emit(A.StateChange,{player:s})}),this.speedService=ha({normalSpeed:-1,timer:u}),this.speedService.start(),this.speedService.subscribe(s=>{this.emitter.emit(A.StateChange,{speed:s})}),this.mediaManager=new ya({warn:this.warn.bind(this),service:this.service,speedService:this.speedService,emitter:this.emitter,getCurrentTime:this.getCurrentTime.bind(this)});let r=this.service.state.context.events.find(s=>s.type===j.Meta),l=this.service.state.context.events.find(s=>s.type===j.FullSnapshot);if(r){let{width:s,height:p}=r.data;setTimeout(()=>{this.emitter.emit(A.Resize,{width:s,height:p})},0)}l&&setTimeout(()=>{var s;this.firstFullSnapshot||(this.firstFullSnapshot=l,this.rebuildFullSnapshot(l),(s=this.iframe.contentWindow)==null||s.scrollTo(l.data.initialOffset))},1),this.service.state.context.events.find(qi)&&this.mouse.classList.add("touch-device")}get timer(){return this.service.state.context.timer}on(e,t){return this.emitter.on(e,t),this}off(e,t){return this.emitter.off(e,t),this}setConfig(e){Object.keys(e).forEach(t=>{e[t],this.config[t]=e[t]}),this.config.skipInactive||this.backToNormal(),e.speed!==void 0&&this.speedService.send({type:"SET_SPEED",payload:{speed:e.speed}}),e.mouseTail!==void 0&&(e.mouseTail===!1?this.mouseTail&&(this.mouseTail.style.display="none"):(this.mouseTail||(this.mouseTail=document.createElement("canvas"),this.mouseTail.width=Number.parseFloat(this.iframe.width),this.mouseTail.height=Number.parseFloat(this.iframe.height),this.mouseTail.classList.add("replayer-mouse-tail"),this.wrapper.insertBefore(this.mouseTail,this.iframe)),this.mouseTail.style.display="inherit"))}getMetaData(){let e=this.service.state.context.events[0],t=this.service.state.context.events[this.service.state.context.events.length-1];return{startTime:e.timestamp,endTime:t.timestamp,totalTime:t.timestamp-e.timestamp}}getCurrentTime(){return this.config.liveMode&&this.timer.updateLiveTime(),this.timer.timeOffset+this.getTimeOffset()}getTimeOffset(){let{baselineTime:e,events:t}=this.service.state.context;return e-t[0].timestamp}getMirror(){return this.mirror}play(e=0){var t;this.service.state.matches("paused")||this.service.send({type:"PAUSE"}),this.service.send({type:"PLAY",payload:{timeOffset:e}}),(t=this.iframe.contentDocument?.getElementsByTagName("html")[0])==null||t.classList.remove("rrweb-paused"),this.emitter.emit(A.Start)}pause(e){var t;e===void 0&&this.service.state.matches("playing")&&this.service.send({type:"PAUSE"}),typeof e=="number"&&(this.play(e),this.service.send({type:"PAUSE"})),(t=this.iframe.contentDocument?.getElementsByTagName("html")[0])==null||t.classList.add("rrweb-paused"),this.emitter.emit(A.Pause)}resume(e=0){this.warn("The 'resume' was deprecated in 1.0. Please use 'play' method which has the same interface."),this.play(e),this.emitter.emit(A.Resume)}destroy(){this.pause(),this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset(),this.config.root.removeChild(this.wrapper),this.emitter.emit(A.Destroy)}startLive(e){this.service.send({type:"TO_LIVE",payload:{baselineTime:e}})}addEvent(e){let t=this.config.unpackFn?this.config.unpackFn(e):e;qi(t)&&this.mouse.classList.add("touch-device"),Promise.resolve().then(()=>this.service.send({type:"ADD_EVENT",payload:{event:t}}))}enableInteract(){this.iframe.setAttribute("scrolling","auto"),this.iframe.style.pointerEvents="auto"}disableInteract(){this.iframe.setAttribute("scrolling","no"),this.iframe.style.pointerEvents="none"}resetCache(){this.cache=Ts()}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.config.UNSAFE_replayCanvas?(this.iframe=document.createElement("iframe"),this.iframe.setAttribute("sandbox","allow-same-origin allow-scripts"),this.wrapper.appendChild(this.iframe),this.UNSAFE_replayCanvas=!0):(this.iframe=Vn({root:this.wrapper}),this.UNSAFE_replayCanvas=!1),this.iframe.style.display="none",this.disableInteract(),this.iframe.contentWindow&&this.iframe.contentDocument&&(oa(this.iframe.contentWindow,this.iframe.contentDocument),ea(this.iframe.contentWindow))}rebuildFullSnapshot(e,t=!1){if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");Object.keys(this.legacy_missingNodeRetryMap).length&&this.warn("Found unresolved missing node map",this.legacy_missingNodeRetryMap),this.legacy_missingNodeRetryMap={};let i=[],u=new Set,r=y((p,a)=>{if(p.nodeName==="DIALOG"&&u.add(p),this.collectIframeAndAttachDocument(i,p),this.mediaManager.isSupportedMediaElement(p)){let{events:n}=this.service.state.context;this.mediaManager.addMediaElements(p,e.timestamp-n[0].timestamp,this.mirror)}for(let n of this.config.plugins||[])n.onBuild&&n.onBuild(p,{id:a,replayer:this})},"i");this.usingVirtualDom&&=(this.virtualDom.destroyTree(),!1),this.mirror.reset(),Wn(e.data.node,{doc:this.iframe.contentDocument,afterAppend:r,cache:this.cache,mirror:this.mirror,UNSAFE_allowUnprotectedRebuild:this.UNSAFE_replayCanvas}),r(this.iframe.contentDocument,e.data.node.id);for(let{mutationInQueue:p,builtNode:a}of i)this.attachDocumentToIframe(p,a),this.newDocumentQueue=this.newDocumentQueue.filter(n=>n!==p);let{documentElement:l,head:s}=this.iframe.contentDocument;this.insertStyleRules(l,s),u.forEach(p=>st(p)),this.service.state.matches("playing")||this.iframe.contentDocument.getElementsByTagName("html")[0].classList.add("rrweb-paused"),this.emitter.emit(A.FullsnapshotRebuilded,e),t||this.waitForStylesheetLoad(),this.config.UNSAFE_replayCanvas&&this.preloadAllImages()}insertStyleRules(e,t){var i;let u=ca(this.config.blockClass).concat(this.config.insertStyleRules);if(this.config.pauseAnimation&&u.push("html.rrweb-paused *, html.rrweb-paused *:before, html.rrweb-paused *:after { animation-play-state: paused !important; }"),u.length)if(this.usingVirtualDom){let r=this.virtualDom.createElement("style");this.virtualDom.mirror.add(r,Si(r,this.virtualDom.unserializedId)),e.insertBefore(r,t),r.rules.push({source:I.StyleSheetRule,adds:u.map((l,s)=>({rule:l,index:s}))})}else{let r=document.createElement("style");e.insertBefore(r,t);for(let l=0;l<u.length;l++)(i=r.sheet)==null||i.insertRule(u[l],l)}}attachDocumentToIframe(e,t){let i=this.usingVirtualDom?this.virtualDom.mirror:this.mirror,u=[],r=new Set,l=y((s,p)=>{s.nodeName==="DIALOG"&&r.add(s),this.collectIframeAndAttachDocument(u,s);let a=i.getMeta(s);if(a?.type===ie.Element&&a?.tagName.toUpperCase()==="HTML"){let{documentElement:n,head:o}=t.contentDocument;this.insertStyleRules(n,o)}if(!this.usingVirtualDom)for(let n of this.config.plugins||[])n.onBuild&&n.onBuild(s,{id:p,replayer:this})},"a");ve(e.node,{doc:t.contentDocument,mirror:i,hackCss:!0,skipChild:!1,afterAppend:l,cache:this.cache}),l(t.contentDocument,e.node.id);for(let{mutationInQueue:s,builtNode:p}of u)this.attachDocumentToIframe(s,p),this.newDocumentQueue=this.newDocumentQueue.filter(a=>a!==s);r.forEach(s=>st(s))}collectIframeAndAttachDocument(e,t){if(Dr(t,this.mirror)){let i=this.newDocumentQueue.find(u=>u.parentId===this.mirror.getId(t));i&&e.push({mutationInQueue:i,builtNode:t})}}waitForStylesheetLoad(){let e=this.iframe.contentDocument?.head;if(e){let t=new Set,i,u=this.service.state,r=y(()=>{u=this.service.state},"i");this.emitter.on(A.Start,r),this.emitter.on(A.Pause,r);let l=y(()=>{this.emitter.off(A.Start,r),this.emitter.off(A.Pause,r)},"a");e.querySelectorAll('link[rel="stylesheet"]').forEach(s=>{s.sheet||(t.add(s),s.addEventListener("load",()=>{t.delete(s),t.size===0&&i!==-1&&(u.matches("playing")&&this.play(this.getCurrentTime()),this.emitter.emit(A.LoadStylesheetEnd),i&&clearTimeout(i),l())}))}),t.size>0&&(this.service.send({type:"PAUSE"}),this.emitter.emit(A.LoadStylesheetStart),i=setTimeout(()=>{u.matches("playing")&&this.play(this.getCurrentTime()),i=-1,l()},this.config.loadTimeout))}}async preloadAllImages(){let e=[];for(let t of this.service.state.context.events)t.type===j.IncrementalSnapshot&&t.data.source===I.CanvasMutation&&(e.push(this.deserializeAndPreloadCanvasEvents(t.data,t)),("commands"in t.data?t.data.commands:[t.data]).forEach(i=>{this.preloadImages(i,t)}));return Promise.all(e)}preloadImages(e,t){if(e.property==="drawImage"&&typeof e.args[0]=="string"&&!this.imageMap.has(t)){let i=document.createElement("canvas"),u=i.getContext("2d"),r=u?.createImageData(i.width,i.height);u?.putImageData(r,0,0)}}async deserializeAndPreloadCanvasEvents(e,t){if(!this.canvasEventMap.has(t)){let i={isUnchanged:!0};if("commands"in e){let u=await Promise.all(e.commands.map(async r=>{let l=await Promise.all(r.args.map(ne(this.imageMap,null,i)));return{...r,args:l}}));i.isUnchanged===!1&&this.canvasEventMap.set(t,{...e,commands:u})}else{let u=await Promise.all(e.args.map(ne(this.imageMap,null,i)));i.isUnchanged===!1&&this.canvasEventMap.set(t,{...e,args:u})}}}applyIncremental(e,t){var i,u;let{data:r}=e;switch(r.source){case I.Mutation:try{this.applyMutation(r,t)}catch(l){this.warn(`Exception in mutation ${l.message||l}`,r)}break;case I.Drag:case I.TouchMove:case I.MouseMove:if(t){let l=r.positions[r.positions.length-1];this.mousePos={x:l.x,y:l.y,id:l.id,debugData:r}}else r.positions.forEach(l=>{let s={doAction:y(()=>{this.moveAndHover(l.x,l.y,l.id,t,r)},"doAction"),delay:l.timeOffset+e.timestamp-this.service.state.context.baselineTime};this.timer.addAction(s)}),this.timer.addAction({doAction(){},delay:e.delay-r.positions[0]?.timeOffset});break;case I.MouseInteraction:{if(r.id===-1)break;let l=new Event(bn(V[r.type])),s=this.mirror.getNode(r.id);if(!s)return this.debugNodeNotFound(r,r.id);this.emitter.emit(A.MouseInteraction,{type:r.type,target:s});let{triggerFocus:p}=this.config;switch(r.type){case V.Blur:"blur"in s&&s.blur();break;case V.Focus:p&&s.focus&&s.focus({preventScroll:!0});break;case V.Click:case V.TouchStart:case V.TouchEnd:case V.MouseDown:case V.MouseUp:t?(r.type===V.TouchStart?this.touchActive=!0:r.type===V.TouchEnd&&(this.touchActive=!1),r.type===V.MouseDown?this.lastMouseDownEvent=[s,l]:r.type===V.MouseUp&&(this.lastMouseDownEvent=null),this.mousePos={x:r.x||0,y:r.y||0,id:r.id,debugData:r}):(r.type===V.TouchStart&&(this.tailPositions.length=0),this.moveAndHover(r.x||0,r.y||0,r.id,t,r),r.type===V.Click?(this.mouse.classList.remove("active"),this.mouse.offsetWidth,this.mouse.classList.add("active")):r.type===V.TouchStart?(this.mouse.offsetWidth,this.mouse.classList.add("touch-active")):r.type===V.TouchEnd?this.mouse.classList.remove("touch-active"):s.dispatchEvent(l));break;case V.TouchCancel:t?this.touchActive=!1:this.mouse.classList.remove("touch-active");break;default:s.dispatchEvent(l)}break}case I.Scroll:if(r.id===-1)break;if(this.usingVirtualDom){let l=this.virtualDom.mirror.getNode(r.id);if(!l)return this.debugNodeNotFound(r,r.id);l.scrollData=r;break}this.applyScroll(r,t);break;case I.ViewportResize:this.emitter.emit(A.Resize,{width:r.width,height:r.height});break;case I.Input:if(r.id===-1)break;if(this.usingVirtualDom){let l=this.virtualDom.mirror.getNode(r.id);if(!l)return this.debugNodeNotFound(r,r.id);l.inputData=r;break}this.applyInput(r);break;case I.MediaInteraction:{let l=this.usingVirtualDom?this.virtualDom.mirror.getNode(r.id):this.mirror.getNode(r.id);if(!l)return this.debugNodeNotFound(r,r.id);let s=l,{events:p}=this.service.state.context;this.mediaManager.mediaMutation({target:s,timeOffset:e.timestamp-p[0].timestamp,mutation:r});break}case I.StyleSheetRule:case I.StyleDeclaration:this.usingVirtualDom?r.styleId?this.constructedStyleMutations.push(r):r.id&&((i=this.virtualDom.mirror.getNode(r.id))==null||i.rules.push(r)):this.applyStyleSheetMutation(r);break;case I.CanvasMutation:if(!this.config.UNSAFE_replayCanvas)return;if(this.usingVirtualDom){let l=this.virtualDom.mirror.getNode(r.id);if(!l)return this.debugNodeNotFound(r,r.id);l.canvasMutations.push({event:e,mutation:r})}else{let l=this.mirror.getNode(r.id);if(!l)return this.debugNodeNotFound(r,r.id);Gi({event:e,mutation:r,target:l,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})}break;case I.Font:try{let l=new FontFace(r.family,r.buffer?new Uint8Array(JSON.parse(r.fontSource)):r.fontSource,r.descriptors);(u=this.iframe.contentDocument)==null||u.fonts.add(l)}catch(l){this.warn(l)}break;case I.Selection:if(t){this.lastSelectionData=r;break}this.applySelection(r);break;case I.AdoptedStyleSheet:this.usingVirtualDom?this.adoptedStyleSheets.push(r):this.applyAdoptedStyleSheet(r);break}}applyMutation(e,t){if(this.config.useVirtualDom&&!this.usingVirtualDom&&t&&(this.usingVirtualDom=!0,Do(this.iframe.contentDocument,this.mirror,this.virtualDom),Object.keys(this.legacy_missingNodeRetryMap).length))for(let a in this.legacy_missingNodeRetryMap)try{let n=this.legacy_missingNodeRetryMap[a],o=xi(n.node,this.virtualDom,this.mirror);o&&(n.node=o)}catch(n){this.warn(n)}let i=this.usingVirtualDom?this.virtualDom.mirror:this.mirror;e.removes=e.removes.filter(a=>i.getNode(a.id)?!0:(this.warnNodeNotFound(e,a.id),!1)),e.removes.forEach(a=>{let n=i.getNode(a.id);if(!n)return;let o=i.getNode(a.parentId);if(!o)return this.warnNodeNotFound(e,a.parentId);if(a.isShadow&&Xe(o)&&(o=o.shadowRoot),i.removeNodeFromMap(n),o)try{o.removeChild(n),this.usingVirtualDom&&n.nodeName==="#text"&&o.nodeName==="STYLE"&&o.rules?.length>0&&(o.rules=[])}catch(d){if(d instanceof DOMException)this.warn("parent could not remove child in mutation",o,n,e);else throw d}});let u={...this.legacy_missingNodeRetryMap},r=[],l=y(a=>{let n=null;return a.nextId&&(n=i.getNode(a.nextId)),a.nextId!==null&&a.nextId!==void 0&&a.nextId!==-1&&!n},"a"),s=y(a=>{if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");let n=i.getNode(a.parentId);if(!n)return a.node.type===ie.Document?this.newDocumentQueue.push(a):r.push(a);a.node.isShadow&&(Xe(n)||n.attachShadow({mode:"open"}),n=n.shadowRoot);let o=null,d=null;if(a.previousId&&(o=i.getNode(a.previousId)),a.nextId&&(d=i.getNode(a.nextId)),l(a))return r.push(a);if(a.node.rootId&&!i.getNode(a.node.rootId))return;let c=a.node.rootId?i.getNode(a.node.rootId):this.usingVirtualDom?this.virtualDom:this.iframe.contentDocument;if(Dr(n,i)){this.attachDocumentToIframe(a,n);return}let h=y((w,x)=>{if(!this.usingVirtualDom){st(w);for(let v of this.config.plugins||[])v.onBuild&&v.onBuild(w,{id:x,replayer:this})}},"l"),g=ve(a.node,{doc:c,mirror:i,skipChild:!0,hackCss:!0,cache:this.cache,afterAppend:h});if(a.previousId===-1||a.nextId===-1){u[a.node.id]={node:g,mutation:a};return}let f=i.getMeta(n);if(f&&f.type===ie.Element&&a.node.type===ie.Text){let w=Array.isArray(n.childNodes)?n.childNodes:Array.from(n.childNodes);if(f.tagName==="textarea")for(let x of w)x.nodeType===n.TEXT_NODE&&n.removeChild(x);else if(f.tagName==="style"&&w.length===1)for(let x of w)x.nodeType===n.TEXT_NODE&&!i.hasNode(x)&&(g.textContent=x.textContent,n.removeChild(x))}else if(f?.type===ie.Document){let w=n;a.node.type===ie.DocumentType&&w.childNodes[0]?.nodeType===Node.DOCUMENT_TYPE_NODE&&w.removeChild(w.childNodes[0]),g.nodeName==="HTML"&&w.documentElement&&w.removeChild(w.documentElement)}if(o&&o.nextSibling&&o.nextSibling.parentNode?n.insertBefore(g,o.nextSibling):d&&d.parentNode?n.contains(d)?n.insertBefore(g,d):n.insertBefore(g,null):n.appendChild(g),h(g,a.node.id),this.usingVirtualDom&&g.nodeName==="#text"&&n.nodeName==="STYLE"&&n.rules?.length>0&&(n.rules=[]),Dr(g,this.mirror)){let w=this.mirror.getId(g),x=this.newDocumentQueue.find(v=>v.parentId===w);x&&(this.attachDocumentToIframe(x,g),this.newDocumentQueue=this.newDocumentQueue.filter(v=>v!==x))}(a.previousId||a.nextId)&&this.legacy_resolveMissingNode(u,n,g,a)},"o");e.adds.forEach(a=>{s(a)});let p=Date.now();for(;r.length;){let a=ta(r);if(r.length=0,Date.now()-p>500){this.warn("Timeout in the loop, please check the resolve tree data:",a);break}for(let n of a)i.getNode(n.value.parentId)?Oi(n,o=>{s(o)}):this.debug("Drop resolve tree since there is no parent for the root node.",n)}Object.keys(u).length&&Object.assign(this.legacy_missingNodeRetryMap,u),ra(e.texts).forEach(a=>{let n=i.getNode(a.id);if(!n)return e.removes.find(d=>d.id===a.id)?void 0:this.warnNodeNotFound(e,a.id);let o=n.parentElement;if(a.value&&o&&o.tagName==="STYLE"?n.textContent=je(a.value,this.cache):n.textContent=a.value,this.usingVirtualDom){let d=n.parentNode;d?.rules?.length>0&&(d.rules=[])}}),e.attributes.forEach(a=>{let n=i.getNode(a.id);if(!n)return e.removes.find(o=>o.id===a.id)?void 0:this.warnNodeNotFound(e,a.id);for(let o in a.attributes)if(typeof o=="string"){let d=a.attributes[o];if(d===null)n.removeAttribute(o),o==="open"&&wa(n,a);else if(typeof d=="string")try{if(o==="_cssText"&&(n.nodeName==="LINK"||n.nodeName==="STYLE"))try{let c=i.getMeta(n),h=ve({...c,attributes:{...c.attributes,...a.attributes}},{doc:n.ownerDocument,mirror:i,skipChild:!0,hackCss:!0,cache:this.cache});Object.assign(c.attributes,a.attributes);let g=n.nextSibling,f=n.parentNode;if(h&&f){f.removeChild(n),f.insertBefore(h,g),i.replace(a.id,h);break}}catch{}if(o==="value"&&n.nodeName==="TEXTAREA"){let c=n;c.childNodes.forEach(g=>c.removeChild(g));let h=n.ownerDocument?.createTextNode(d);h&&c.appendChild(h)}else n.setAttribute(o,d);o==="rr_open_mode"&&n.nodeName==="DIALOG"&&st(n,a)}catch(c){this.warn("An error occurred may due to the checkout feature.",c)}else if(o==="style"){let c=d,h=n;for(let g in c)if(c[g]===!1)h.style.removeProperty(g);else if(c[g]instanceof Array){let f=c[g];h.style.setProperty(g,f[0],f[1])}else{let f=c[g];h.style.setProperty(g,f)}}}})}applyScroll(e,t){var i,u;let r=this.mirror.getNode(e.id);if(!r)return this.debugNodeNotFound(e,e.id);let l=this.mirror.getMeta(r);if(r===this.iframe.contentDocument)(i=this.iframe.contentWindow)==null||i.scrollTo({top:e.y,left:e.x,behavior:t?"auto":"smooth"});else if(l?.type===ie.Document)(u=r.defaultView)==null||u.scrollTo({top:e.y,left:e.x,behavior:t?"auto":"smooth"});else try{r.scrollTo({top:e.y,left:e.x,behavior:t?"auto":"smooth"})}catch{}}applyInput(e){let t=this.mirror.getNode(e.id);if(!t)return this.debugNodeNotFound(e,e.id);try{t.checked=e.isChecked,t.value=e.text}catch{}}applySelection(e){try{let t=new Set,i=e.ranges.map(({start:u,startOffset:r,end:l,endOffset:s})=>{let p=this.mirror.getNode(u),a=this.mirror.getNode(l);if(!p||!a)return;let n=new Range;n.setStart(p,r),n.setEnd(a,s);let o=p.ownerDocument?.getSelection();return o&&t.add(o),{range:n,selection:o}});t.forEach(u=>u.removeAllRanges()),i.forEach(u=>u&&u.selection?.addRange(u.range))}catch{}}applyStyleSheetMutation(e){let t=null;e.styleId?t=this.styleMirror.getStyle(e.styleId):e.id&&(t=this.mirror.getNode(e.id)?.sheet||null),t&&(e.source===I.StyleSheetRule?this.applyStyleSheetRule(e,t):e.source===I.StyleDeclaration&&this.applyStyleDeclaration(e,t))}applyStyleSheetRule(e,t){var i,u,r,l;if((i=e.adds)==null||i.forEach(({rule:s,index:p})=>{try{if(Array.isArray(p)){let{positions:a,index:n}=Di(p);Se(t.cssRules,a)?.insertRule(s,n)}else{let a=p===void 0?void 0:Math.min(p,t.cssRules.length);t?.insertRule(s,a)}}catch{}}),(u=e.removes)==null||u.forEach(({index:s})=>{try{if(Array.isArray(s)){let{positions:p,index:a}=Di(s);Se(t.cssRules,p)?.deleteRule(a||0)}else t?.deleteRule(s)}catch{}}),typeof e.replace=="string")try{(r=t.replace)==null||r.call(t,e.replace)}catch{}if(typeof e.replaceSync=="string")try{(l=t.replaceSync)==null||l.call(t,e.replaceSync)}catch{}}applyStyleDeclaration(e,t){if(e.set){let i=Se(t.rules,e.index);i?.style&&i.style.setProperty(e.set.property,e.set.value,e.set.priority)}if(e.remove){let i=Se(t.rules,e.index);i?.style&&i.style.removeProperty(e.remove.property)}}applyAdoptedStyleSheet(e){var t;let i=this.mirror.getNode(e.id);if(!i)return;(t=e.styles)==null||t.forEach(l=>{let s=null,p=null;if(Xe(i)?p=i.ownerDocument?.defaultView||null:i.nodeName==="#document"&&(p=i.defaultView),p)try{s=new p.CSSStyleSheet,this.styleMirror.add(s,l.styleId),this.applyStyleSheetRule({source:I.StyleSheetRule,adds:l.rules},s)}catch{}});let u=0,r=y((l,s)=>{let p=s.map(a=>this.styleMirror.getStyle(a)).filter(a=>a!==null);Xe(l)?l.shadowRoot.adoptedStyleSheets=p:l.nodeName==="#document"&&(l.adoptedStyleSheets=p),p.length!==s.length&&u<10&&(setTimeout(()=>r(l,s),0+100*u),u++)},"i");r(i,e.styleIds)}legacy_resolveMissingNode(e,t,i,u){let{previousId:r,nextId:l}=u,s=r&&e[r],p=l&&e[l];if(s){let{node:a,mutation:n}=s;t.insertBefore(a,i),delete e[n.node.id],delete this.legacy_missingNodeRetryMap[n.node.id],(n.previousId||n.nextId)&&this.legacy_resolveMissingNode(e,t,a,n)}if(p){let{node:a,mutation:n}=p;t.insertBefore(a,i.nextSibling),delete e[n.node.id],delete this.legacy_missingNodeRetryMap[n.node.id],(n.previousId||n.nextId)&&this.legacy_resolveMissingNode(e,t,a,n)}}moveAndHover(e,t,i,u,r){let l=this.mirror.getNode(i);if(!l)return this.debugNodeNotFound(r,i);let s=Ri(l,this.iframe),p=e*s.absoluteScale+s.x,a=t*s.absoluteScale+s.y;this.mouse.style.left=`${p}px`,this.mouse.style.top=`${a}px`,u||this.drawMouseTail({x:p,y:a}),this.hoverElements(l)}drawMouseTail(e){if(!this.mouseTail)return;let{lineCap:t,lineWidth:i,strokeStyle:u,duration:r}=this.config.mouseTail===!0?Pr:Object.assign({},Pr,this.config.mouseTail),l=y(()=>{if(!this.mouseTail)return;let s=this.mouseTail.getContext("2d");!s||!this.tailPositions.length||(s.clearRect(0,0,this.mouseTail.width,this.mouseTail.height),s.beginPath(),s.lineWidth=i,s.lineCap=t,s.strokeStyle=u,s.moveTo(this.tailPositions[0].x,this.tailPositions[0].y),this.tailPositions.forEach(p=>s.lineTo(p.x,p.y)),s.stroke())},"a");this.tailPositions.push(e),l(),setTimeout(()=>{this.tailPositions=this.tailPositions.filter(s=>s!==e),l()},r/this.speedService.state.context.timer.speed)}hoverElements(e){var t;(t=this.lastHoveredRootNode||this.iframe.contentDocument)==null||t.querySelectorAll(".\\:hover").forEach(u=>{u.classList.remove(":hover")}),this.lastHoveredRootNode=e.getRootNode();let i=e;for(;i;)i.classList&&i.classList.add(":hover"),i=i.parentElement}isUserInteraction(e){return e.type===j.IncrementalSnapshot?e.data.source>I.Mutation&&e.data.source<=I.Input:!1}backToNormal(){this.nextUserInteractionEvent=null,!this.speedService.state.matches("normal")&&(this.speedService.send({type:"BACK_TO_NORMAL"}),this.emitter.emit(A.SkipEnd,{speed:this.speedService.state.context.normalSpeed}))}warnNodeNotFound(e,t){this.warn(`Node with id '${t}' not found. `,e)}warnCanvasMutationFailed(e,t){this.warn("Has error on canvas update",t,"canvas mutation:",e)}debugNodeNotFound(e,t){this.debug(`Node with id '${t}' not found. `,e)}warn(...e){this.config.showWarning&&this.config.logger.warn(Hi,...e)}debug(...e){this.config.showDebug&&this.config.logger.log(Hi,...e)}},Sa=[.25,.5,1,2],Ea=new Set(["request","fetch","gateway-request","server-request","queue-process","egress","ai-call"]);function it(e){return e.status!==void 0&&e.status>=400||e.error===!0||e.kind==="error"}y(it,"co");function Yi(e){return e.ms===void 0?!1:e.kind==="db-query"?e.ms>100:Ea.has(e.kind)&&e.ms>500}y(Yi,"lo");function Ca(e,t){return e.map(i=>({...i,off:Math.max(0,i.at-t),failed:it(i),slow:!it(i)&&Yi(i)})).sort((i,u)=>i.off-u.off)}y(Ca,"uo");function Na(e,t){let i=t.reduce((u,r)=>Math.max(u,r.off+(r.ms??0)),0);return Math.max(e,i)}y(Na,"fo");function Ma(e,t){let i=0,u=e.length-1,r=-1;for(;i<=u;){let l=i+u>>1;e[l].off<=t?(r=l,i=l+1):u=l-1}return r}y(Ma,"po");function Ta(e,t,i=2,u=3){let r=Math.max(0,t-i);return{from:r,items:e.slice(r,Math.max(r,t)+u+1)}}y(Ta,"mo");function ka(e,t,i){if(!(i<=t))return e.find(u=>u.failed&&u.off>t&&u.off<=i)}y(ka,"ho");var Oa=400,Ra=new Set(["services","data","ai","network"]);function Da(e,t,i){let u=new Set(["origin"]);for(let r of e){let l=r.start-t;if(i<l||i>l+Math.max(r.durationMs??0,Oa))continue;r.project&&Ra.has(r.area)&&u.add(sn(r.project));let s=hn(r);s&&u.add(s)}return u}y(Da,"vo");function Aa(e,t){let i=t.flatMap(u=>{let r=u.kind==="session"?/^page opened (\S+)/.exec(u.text):u.kind==="nav"?/(?:→ |^navigated to )(\S+)$/.exec(u.text):null;return r?[{off:u.off,href:r[1]}]:[]});return[...e,...i].sort((u,r)=>u.off-r.off)}y(Aa,"yo");function Ia(e,t){let i=e[0]?.href;for(let u of e){if(u.off>t)break;i=u.href}return i}y(Ia,"bo");var Pa=y(e=>e.service&&e.text.startsWith(`${e.service}: `)?e.text.slice(e.service.length+2):e.text,"xo"),ue=y((e,t)=>e.startsWith(t)?e.slice(t.length):e,"So");function _a(e){let t=e.service??"a service",i=Pa(e),u=Yi(e)?" \xB7 slow":"";switch(e.kind){case"click":case"submit":case"change":case"input":return`The user ${i}`;case"request":{let[r,l]=i.split(" \u2192 ");return l?it(e)?`The page calls ${r} \u2014 the request failed (${l})`:`The page calls ${r} \u2014 ${l}${u}`:`The page calls ${r}`}case"gateway-request":return`The gateway routes ${ue(i,"gateway ")}${u}`;case"server-request":return it(e)?`${t} answers ${i} \u2014 the request failed`:`${t} handles ${i}${u}`;case"db-query":return`${t} queries the database \u2014 ${ue(i,"SQL ")}${u}`;case"redis-op":return`${t} uses the cache \u2014 ${ue(i,"cache ")}`;case"queue-enqueued":return`${t} queues a job \u2014 ${i}`;case"queue-process":case"queue-active":case"queue-completed":case"queue-failed":return`${t} runs a job \u2014 ${i}${u}`;case"egress":return`${t} calls out \u2014 ${ue(i,"egress ")}${u}`;case"ai-call":return`${t} asks a model \u2014 ${ue(i,"ai ")}${u}`;case"fs-ops":return`${t} touches files \u2014 ${ue(i,"fs ")}`;case"exec":return`${t} runs a command \u2014 ${ue(i,"exec ")}`;case"log":return`${t} logs \u2014 ${i}`;case"span":return`${t} runs ${i}${u}`;default:return i.charAt(0).toUpperCase()+i.slice(1)}}y(_a,"Co");var k=cn();function Qi(e){return{error:e instanceof Error?e.message:String(e),...e instanceof jr?{status:e.status}:{}}}y(Qi,"wo");function La({flowId:e}){let t=Ur(ee),[i,u]=(0,_.useState)(!1),[r,l]=(0,_.useState)({}),[s,p]=(0,_.useState)({});return(0,_.useEffect)(()=>{let a=new AbortController;return l({}),p({}),lt("/api/replay/story",{flow:e,...i?{whole:1}:{}},a.signal).then(async n=>{l({data:n});try{p({data:await lt("/api/replay/segment",{load:n.loadId,from:n.window.from,to:n.window.to},a.signal)})}catch(o){o.name!=="AbortError"&&p(Qi(o))}}).catch(n=>{n.name!=="AbortError"&&l(Qi(n))}),()=>a.abort()},[e,i]),(0,_.useEffect)(()=>()=>{ee.ui.replayTheater=!1},[]),r.error?(0,k.jsx)("div",{className:"flow-body-pad",children:(0,k.jsx)(nn,{compact:!0,title:r.status===404?"No recording holds this flow":r.status===403?"The recording is not served here":"The replay could not be read",children:r.status===404?"Session replay records every page of the app opened through the gateway (Settings \u203A Features \u203A Session replay). This flow ran in no page it recorded \u2014 another app, a page opened before the lens, or a recording swept after 14 days.":r.status===403?"A recording holds what the page showed and what was typed: only a dashboard bound to this machine serves it. Unset LENSMCP_DASHBOARD_BIND.":r.error})}):r.data?(0,k.jsx)(Fa,{story:r.data,seg:s,whole:i,onWhole:u,cluster:t.cluster},`${r.data.loadId}:${r.data.window.from}`):(0,k.jsx)("div",{className:"view-loading",children:"Reading the recording\u2026"})}y(La,"To");function Fa({story:e,seg:t,whole:i,onWhole:u,cluster:r}){let l=Ur(ee),s=(0,_.useRef)(null),p=(0,_.useRef)(null),a=(0,_.useRef)(void 0),[n,o]=(0,_.useState)(e.window.from),[d,c]=(0,_.useState)(0),[h,g]=(0,_.useState)(0),[f,w]=(0,_.useState)(!1),[x,v]=(0,_.useState)(1),[m,b]=(0,_.useState)(!1),[S,E]=(0,_.useState)(void 0),C=(0,_.useRef)({wall:0,from:0,prev:0}),[T,R]=(0,_.useState)(void 0),[$,z]=(0,_.useState)({}),G=e.focus.flowId;(0,_.useEffect)(()=>{if(!G)return;let N=new AbortController;return lt("/api/replay/chapters",{flow:G},N.signal).then(R,()=>{}),()=>N.abort()},[G]);let X=y(()=>{G&&(z({busy:!0}),on("/api/replay/chapters",{flow:G}).then(N=>{R(N),z({})}).catch(N=>z({error:N instanceof Error?N.message:String(N),...N instanceof jr&&N.status===412?{setup:!0}:{}})))},"fe"),q=(0,_.useMemo)(()=>Ca(e.items,n),[e,n]),H=Na(d,q),Ne=(0,_.useMemo)(()=>Aa((t.data?.events??[]).filter(N=>N.type===4&&typeof N.data?.href=="string").map(N=>({off:N.timestamp-n,href:N.data?.href})),q),[t.data,n,q]),W=(0,_.useMemo)(()=>ln(r),[r?JSON.stringify([r.hosts.map(N=>N.host),r.routes.map(N=>N.host),r.services.map(N=>[N.project,N.host,N.internalHost,N.path])]):""]),fe=(0,_.useMemo)(()=>pn(e.nodes??[],void 0,W),[e,W]),Me=(0,_.useMemo)(()=>Da(e.nodes??[],n,h),[e,n,h]);(0,_.useEffect)(()=>{let N=s.current,P=t.data?.events;if(!N||!P?.length)return;let B=new xa(P,{root:N,mouseTail:!1,skipInactive:!1,triggerFocus:!1,showWarning:!1});a.current=B;let te=B.getMetaData();o(te.startTime),c(te.totalTime);let re=y(()=>{let nt=B.wrapper,ot=B.iframe,at=p.current;if(!nt||!ot||!at)return;let tn=Math.min(1,at.clientWidth/(ot.offsetWidth||1),at.clientHeight/(ot.offsetHeight||1));nt.style.transform=`scale(${tn})`,nt.style.transformOrigin="top left"},"a");B.on("resize",()=>requestAnimationFrame(re));let we=new ResizeObserver(re);p.current&&we.observe(p.current);let Re=Math.max(0,(t.data?.playFrom??te.startTime)-te.startTime);return B.pause(Re),g(Re),C.current={wall:0,from:Re,prev:Re},requestAnimationFrame(re),()=>{we.disconnect(),B.destroy(),a.current=void 0,N.innerHTML=""}},[t.data]),(0,_.useEffect)(()=>{if(!f)return;let N=0,P=y(()=>{let B=C.current,te=B.from+(performance.now()-B.wall)*x,re=l.ui.replayPauseAtErrors?ka(q,B.prev,te):void 0;if(re||te>=H){let we=re?re.off:H;a.current?.pause(Math.min(we,d)),g(we),w(!1),re&&E(q.indexOf(re));return}B.prev=te,g(te),N=requestAnimationFrame(P)},"t");return N=requestAnimationFrame(P),()=>cancelAnimationFrame(N)},[f,x,q,H,d,l.ui.replayPauseAtErrors]);let he=y((N=h)=>{let P=N>=H?0:N;C.current={wall:performance.now(),from:P,prev:P},P<d?a.current?.play(P):a.current?.pause(d),g(P),w(!0)},"_e"),_r=y(()=>{a.current?.pause(Math.min(h,d)),w(!1)},"ve"),Te=y(N=>{let P=Math.max(0,Math.min(H,N));f?he(P):(a.current?.pause(Math.min(P,d)),g(P))},"j"),Xi=y(N=>{a.current?.setConfig({speed:N}),C.current={wall:performance.now(),from:h,prev:h},v(N)},"ye");un(N=>N.key===" "?(f?_r():he(),!0):N.key==="z"?(ee.ui.replayTheater=!ee.ui.replayTheater,!0):N.key==="Escape"&&!N.defaultPrevented&&ee.ui.replayTheater?(ee.ui.replayTheater=!1,!0):!1,[f,h,H,d]);let me=(T?.chapters??[]).filter(N=>N.startAt!==void 0&&N.endAt!==void 0).map(N=>({...N,off:N.startAt-n,end:N.endAt-n})),ke=me.findIndex((N,P)=>h>=N.off&&(h<=N.end||h<(me[P+1]?.off??1/0))),Oe=ke>=0?me[ke]:void 0,ge=Ma(q,h),ye=ge>=0?q[ge]:void 0,Lr=m?{from:0,items:q}:Ta(q,Math.max(ge,0)),K=S===void 0?ye:q[S],en=Ia(Ne,h),Fr=[...e.notes,...t.data?.gaps.length?[`The recording lost ${t.data.gaps.length} chunk${t.data.gaps.length===1?"":"s"} here; it restarts at the next snapshot after each.`]:[],...t.data?.missingBlobs.length?["Part of the recording is no longer kept: the page shows a hole there."]:[],...t.error?[t.status===413?"This stretch of the recording is too large to play at once \u2014 the steps below still tell it.":`The recording could not be read: ${t.error}`]:[]];return(0,k.jsxs)("div",{className:"rp",children:[(0,k.jsxs)("div",{className:"rp-head-row",children:[(0,k.jsxs)("div",{className:`rp-caption${ye?.failed?" bad":ye?.slow?" warn":""}`,children:[(0,k.jsxs)("span",{className:"rp-caption-meta",children:[Oe?`Chapter ${ke+1} of ${me.length} \xB7 ${Oe.title} \xB7 `:"",ut(h)," of ",ut(H),e.focus.flowId&&!i?" \xB7 this flow":" \xB7 the whole page load"]}),(0,k.jsx)("p",{className:"rp-sentence",children:ye?_a(ye):"The recording starts here."}),Oe?.description?(0,k.jsx)("p",{className:"rp-chapter-desc muted",children:Oe.description}):null]}),G?(0,k.jsxs)("div",{className:"rp-describe",children:[(0,k.jsxs)("button",{type:"button",className:"kb",disabled:$.busy,onClick:X,title:"Claude cuts the flow into chapters \u2014 spends from the click allowance; only what happened is sent, never a value or what was typed",children:[(0,k.jsx)(De,{name:"star_shine",size:14})," ",$.busy?"Describing\u2026":T?"Describe again":"Describe with Claude"]}),$.error?(0,k.jsx)("span",{className:"rp-describe-error",children:$.setup?"Add an API token in Settings \u203A API tokens":$.error}):null]}):null]}),(0,k.jsxs)("div",{className:"rp-stage",children:[(0,k.jsxs)("section",{className:"rp-page card",children:[(0,k.jsxs)("div",{className:"rp-chrome",children:[(0,k.jsxs)("span",{className:"rp-dots","aria-hidden":"true",children:[(0,k.jsx)("i",{}),(0,k.jsx)("i",{}),(0,k.jsx)("i",{})]}),(0,k.jsx)("span",{className:"rp-url mono",children:en??e.origin??""})]}),(0,k.jsxs)("div",{className:"rp-screen",ref:p,children:[(0,k.jsx)("div",{ref:s,className:"rp-host"}),!t.data&&!t.error?(0,k.jsx)("div",{className:"rp-screen-note",children:"Reading the page\u2026"}):null]})]}),(0,k.jsx)("section",{className:"rp-system card",children:(0,k.jsx)(dn,{map:fe,lit:Me,onPick:y(()=>{},"onPick")})})]}),(0,k.jsxs)("div",{className:"rp-transport",children:[(0,k.jsx)("button",{type:"button",className:"kb rp-play","aria-label":f?"Pause":"Play",onClick:y(()=>f?_r():he(),"onClick"),children:(0,k.jsx)(De,{name:f?"pause":"play_arrow",size:18})}),(0,k.jsx)("button",{type:"button",className:"kb","aria-label":"From the start",onClick:y(()=>Te(0),"onClick"),children:(0,k.jsx)(De,{name:"replay",size:16})}),(0,k.jsxs)("div",{className:"rp-scrubber",role:"slider","aria-label":"Time","aria-valuemin":0,"aria-valuemax":Math.round(H),"aria-valuenow":Math.round(h),tabIndex:0,onClick:y(N=>{let P=N.currentTarget.getBoundingClientRect();Te((N.clientX-P.left)/P.width*H)},"onClick"),children:[me.map((N,P)=>(0,k.jsx)("button",{type:"button",className:`rp-band kind-${N.kind}${P===ke?" on":""}`,style:{left:`${N.off/(H||1)*100}%`,width:`${Math.max(N.end-N.off,H*.01)/(H||1)*100}%`},title:N.title,onClick:y(B=>{B.stopPropagation(),Te(N.off)},"onClick"),children:N.title},`c${P}`)),q.map((N,P)=>(0,k.jsx)("span",{className:`rp-tick${N.failed?" bad":N.slow?" warn":""}`,style:{left:`${N.off/(H||1)*100}%`},title:N.text},P)),(0,k.jsx)("span",{className:"rp-head",style:{left:`${h/(H||1)*100}%`}})]}),(0,k.jsx)("select",{className:"rp-speed","aria-label":"Speed",value:x,onChange:y(N=>Xi(Number(N.target.value)),"onChange"),children:Sa.map(N=>(0,k.jsxs)("option",{value:N,children:[N,"\xD7"]},N))}),(0,k.jsxs)("label",{className:"rp-toggle",children:[(0,k.jsx)("input",{type:"checkbox",checked:l.ui.replayPauseAtErrors,onChange:y(N=>ee.ui.replayPauseAtErrors=N.target.checked,"onChange")})," Pause at errors"]}),(0,k.jsxs)("label",{className:"rp-toggle",children:[(0,k.jsx)("input",{type:"checkbox",checked:i,onChange:y(N=>u(N.target.checked),"onChange")})," Whole page load"]}),(0,k.jsx)("button",{type:"button",className:"kb","aria-label":"Theater",title:"Theater (z)",onClick:y(()=>ee.ui.replayTheater=!ee.ui.replayTheater,"onClick"),children:(0,k.jsx)(De,{name:l.ui.replayTheater?"close_fullscreen":"fullscreen",size:16})})]}),(0,k.jsxs)("section",{className:"rp-steps card",children:[(0,k.jsxs)("header",{className:"rp-steps-head",children:[(0,k.jsx)("h3",{children:"Steps"}),(0,k.jsx)("button",{type:"button",className:"link",onClick:y(()=>b(!m),"onClick"),children:m?"Around now":`Show all ${q.length}`})]}),(0,k.jsx)("ol",{className:"rp-list",children:Lr.items.map((N,P)=>{let B=Lr.from+P;return(0,k.jsx)("li",{className:`rp-step lane-${N.lane}${B===ge?" now":B>ge?" later":""}${N.failed?" bad":N.slow?" warn":""}${S===B?" picked":""}`,children:(0,k.jsxs)("button",{type:"button",onClick:y(()=>{E(B),Te(N.off)},"onClick"),children:[(0,k.jsxs)("span",{className:"rp-t mono",children:["+",ut(N.off)]}),(0,k.jsx)("span",{className:"rp-lane",children:N.lane}),(0,k.jsx)("span",{className:"rp-text",children:N.text})]})},B)})}),K?.sql||K?.value?(0,k.jsxs)("div",{className:"rp-detail",children:[K.sql?(0,k.jsxs)("pre",{className:"mono",children:[K.sql.statement,K.sql.more?`
130
+ \u2026 ${K.sql.more} more characters`:""]}):null,K.sql?.rows?.length?(0,k.jsx)("pre",{className:"mono muted",children:JSON.stringify(K.sql.rows,null,2)}):null,K.value?(0,k.jsxs)("pre",{className:"mono",children:[K.value.text,K.value.more?`
131
+ \u2026 ${K.value.more} more characters`:""]}):null]}):null,Fr.length?(0,k.jsx)("ul",{className:"rp-notes muted",children:Fr.map(N=>(0,k.jsx)("li",{children:N},N))}):null]})]})}y(Fa,"Eo");export{La as default};