hunter-mate 0.1.19 → 0.1.20

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 (124) hide show
  1. package/dist/assets/extension/background/{service-worker.20261008011501.js → service-worker.20261015103433.js} +6 -6
  2. package/dist/assets/extension/background/service-worker.js +6 -6
  3. package/dist/assets/extension/build-info.json +1 -1
  4. package/dist/assets/extension/content/index.js +2 -2
  5. package/dist/assets/extension/manifest.json +3 -3
  6. package/dist/assets/extension/offscreen/offscreen.html +1 -1
  7. package/dist/assets/extension/offscreen/offscreen.js +2 -2
  8. package/dist/assets/extension/package.json +1 -1
  9. package/dist/assets/server/chunks/{chunk-IXYSL3NT.mjs → chunk-BLXHCSZD.mjs} +8 -10
  10. package/dist/assets/server/chunks/{script-rule-ANR2J7E6.mjs → script-rule-ZJN6CEYX.mjs} +1 -1
  11. package/dist/assets/server/main.mjs +4087 -2872
  12. package/dist/index.js +231 -52
  13. package/dist/web/dist/404.html +1 -1
  14. package/dist/web/dist/_next/static/2fPtjfAzNbYkpIoAQOsP3/_buildManifest.js +1 -0
  15. package/dist/web/dist/_next/static/chunks/105-dcd8f6d5867c8995.js +32 -0
  16. package/dist/web/dist/_next/static/chunks/166.b263e636ff66212f.js +1 -0
  17. package/dist/web/dist/_next/static/chunks/1e6d5a0c.75afa2d319272f42.js +15 -0
  18. package/dist/web/dist/_next/static/chunks/555-e2a871b9d2eccb03.js +12 -0
  19. package/dist/web/dist/_next/static/chunks/589-f984bff035a1cb85.js +1 -0
  20. package/dist/web/dist/_next/static/chunks/671.ae431f885d6c7f0c.js +1 -0
  21. package/dist/web/dist/_next/static/chunks/686-9f419b70feea9470.js +1 -0
  22. package/dist/web/dist/_next/static/chunks/852-248884963a986600.js +1 -0
  23. package/dist/web/dist/_next/static/chunks/865-0ed23dd43c0832a2.js +1 -0
  24. package/dist/web/dist/_next/static/chunks/935-7be3e60dd8bc29d2.js +5 -0
  25. package/dist/web/dist/_next/static/chunks/954-fb0212fe71f60a52.js +1 -0
  26. package/dist/web/dist/_next/static/chunks/a7067448-e416655baf443992.js +1 -0
  27. package/dist/web/dist/_next/static/chunks/app/_not-found/page-5b7249eb3c9a6cb9.js +1 -0
  28. package/dist/web/dist/_next/static/chunks/app/admin/data/page-14698e9c4ddaa6d9.js +1 -0
  29. package/dist/web/dist/_next/static/chunks/app/auth/verify/page-05304d5803008d61.js +1 -0
  30. package/dist/web/dist/_next/static/chunks/app/companies/page-ec27ce9ab3610221.js +1 -0
  31. package/dist/web/dist/_next/static/chunks/app/company/admin/page-c2584183bc4b34d1.js +1 -0
  32. package/dist/web/dist/_next/static/chunks/app/entity/page-08755f96102f0565.js +1 -0
  33. package/dist/web/dist/_next/static/chunks/app/jobs/page-4175a90f1b42f87d.js +1 -0
  34. package/dist/web/dist/_next/static/chunks/app/layout-af39afc7866e74db.js +1 -0
  35. package/dist/web/dist/_next/static/chunks/app/logs/page-be50a4e10b1a0024.js +1 -0
  36. package/dist/web/dist/_next/static/chunks/app/matching/jobs/[id]/talents/page-cf445b0cb8c2cb0a.js +1 -0
  37. package/dist/web/dist/_next/static/chunks/app/matching/portraits/[id]/jobs/page-c7ff0d79b6a75915.js +1 -0
  38. package/dist/web/dist/_next/static/chunks/app/page-bd282e1e5f0965f1.js +1 -0
  39. package/dist/web/dist/_next/static/chunks/app/parselog/page-9814e75d6900a743.js +1 -0
  40. package/dist/web/dist/_next/static/chunks/app/recordings/page-441016638b43c4f8.js +1 -0
  41. package/dist/web/dist/_next/static/chunks/app/resource-usage/page-f6fa06bfe21bcd32.js +1 -0
  42. package/dist/web/dist/_next/static/chunks/app/shared/[token]/page-c9c5042a2d07c0bc.js +1 -0
  43. package/dist/web/dist/_next/static/chunks/app/snapshots/[id]/agent-prompt/page-f54cf2f0058035ca.js +1 -0
  44. package/dist/web/dist/_next/static/chunks/app/talents/page-c0a0c250eb5f5459.js +1 -0
  45. package/dist/web/dist/_next/static/chunks/app/team/insights/page-8b3934df3e292368.js +1 -0
  46. package/dist/web/dist/_next/static/chunks/framework-8aa939434277315a.js +1 -0
  47. package/dist/web/dist/_next/static/chunks/main-8a2c75d6c43385dd.js +1 -0
  48. package/dist/web/dist/_next/static/chunks/main-app-f496bd51a73ef9f3.js +1 -0
  49. package/dist/web/dist/_next/static/chunks/pages/_app-037e1cd81d653e68.js +4 -0
  50. package/dist/web/dist/_next/static/chunks/pages/_error-59095d3b83385d1f.js +1 -0
  51. package/dist/web/dist/_next/static/chunks/{webpack-cf21e951181fd345.js → webpack-54e74ccc9e9451ee.js} +1 -1
  52. package/dist/web/dist/_next/static/css/bd072fee69ae8474.css +3 -0
  53. package/dist/web/dist/admin/data.html +1 -1
  54. package/dist/web/dist/admin/data.txt +8 -6
  55. package/dist/web/dist/auth/verify.html +1 -1
  56. package/dist/web/dist/auth/verify.txt +8 -6
  57. package/dist/web/dist/companies.html +1 -1
  58. package/dist/web/dist/companies.txt +9 -7
  59. package/dist/web/dist/company/admin.html +1 -1
  60. package/dist/web/dist/company/admin.txt +8 -6
  61. package/dist/web/dist/entity.html +1 -1
  62. package/dist/web/dist/entity.txt +9 -7
  63. package/dist/web/dist/index.html +1 -1
  64. package/dist/web/dist/index.txt +9 -7
  65. package/dist/web/dist/jobs.html +1 -1
  66. package/dist/web/dist/jobs.txt +9 -7
  67. package/dist/web/dist/logs.html +1 -1
  68. package/dist/web/dist/logs.txt +9 -7
  69. package/dist/web/dist/matching/jobs/placeholder/talents.html +1 -1
  70. package/dist/web/dist/matching/jobs/placeholder/talents.txt +8 -6
  71. package/dist/web/dist/matching/portraits/placeholder/jobs.html +1 -1
  72. package/dist/web/dist/matching/portraits/placeholder/jobs.txt +8 -6
  73. package/dist/web/dist/parselog.html +1 -1
  74. package/dist/web/dist/parselog.txt +9 -7
  75. package/dist/web/dist/recordings.html +1 -1
  76. package/dist/web/dist/recordings.txt +9 -7
  77. package/dist/web/dist/resource-usage.html +1 -1
  78. package/dist/web/dist/resource-usage.txt +9 -7
  79. package/dist/web/dist/shared/placeholder.html +1 -1
  80. package/dist/web/dist/shared/placeholder.txt +8 -6
  81. package/dist/web/dist/snapshots/placeholder/agent-prompt.html +1 -1
  82. package/dist/web/dist/snapshots/placeholder/agent-prompt.txt +8 -6
  83. package/dist/web/dist/talents.html +1 -1
  84. package/dist/web/dist/talents.txt +8 -6
  85. package/dist/web/dist/team/insights.html +1 -1
  86. package/dist/web/dist/team/insights.txt +8 -6
  87. package/package.json +1 -1
  88. package/dist/web/dist/_next/static/9Wm8FfXwBJyMk-wYf4l81/_buildManifest.js +0 -1
  89. package/dist/web/dist/_next/static/chunks/166.f30be223f694f8ee.js +0 -1
  90. package/dist/web/dist/_next/static/chunks/1e6d5a0c.0488932e17ecdf24.js +0 -15
  91. package/dist/web/dist/_next/static/chunks/542-4a43545450151f1d.js +0 -1
  92. package/dist/web/dist/_next/static/chunks/589-5e99e548a0ee6bac.js +0 -1
  93. package/dist/web/dist/_next/static/chunks/670-750aa43678fb0d30.js +0 -1
  94. package/dist/web/dist/_next/static/chunks/671.3b8e9cc96b25b6ea.js +0 -1
  95. package/dist/web/dist/_next/static/chunks/686-ade57c57a1737818.js +0 -1
  96. package/dist/web/dist/_next/static/chunks/852-5150a7ae95a599fb.js +0 -1
  97. package/dist/web/dist/_next/static/chunks/935-4058f12c3d405b32.js +0 -5
  98. package/dist/web/dist/_next/static/chunks/a7067448-d3882c7e74c162bf.js +0 -1
  99. package/dist/web/dist/_next/static/chunks/app/_not-found/page-cf5ab201496f0914.js +0 -1
  100. package/dist/web/dist/_next/static/chunks/app/admin/data/page-a566c6b13c61f9d4.js +0 -1
  101. package/dist/web/dist/_next/static/chunks/app/auth/verify/page-38fa28a48f76defa.js +0 -1
  102. package/dist/web/dist/_next/static/chunks/app/companies/page-058047767bc162f4.js +0 -1
  103. package/dist/web/dist/_next/static/chunks/app/company/admin/page-a2088b59c3820800.js +0 -1
  104. package/dist/web/dist/_next/static/chunks/app/entity/page-dc9664fb628e2d08.js +0 -1
  105. package/dist/web/dist/_next/static/chunks/app/jobs/page-4fb6a67d044b238d.js +0 -1
  106. package/dist/web/dist/_next/static/chunks/app/layout-1feb99bf08beb3c8.js +0 -1
  107. package/dist/web/dist/_next/static/chunks/app/logs/page-ccc6bb863cf77e56.js +0 -1
  108. package/dist/web/dist/_next/static/chunks/app/matching/jobs/[id]/talents/page-c6714cec1ffd7c5e.js +0 -1
  109. package/dist/web/dist/_next/static/chunks/app/matching/portraits/[id]/jobs/page-658eca1ae5ca29dc.js +0 -1
  110. package/dist/web/dist/_next/static/chunks/app/page-291cd145a56bd020.js +0 -1
  111. package/dist/web/dist/_next/static/chunks/app/parselog/page-b1b7ae9483273ce0.js +0 -1
  112. package/dist/web/dist/_next/static/chunks/app/recordings/page-c12948f01885099e.js +0 -1
  113. package/dist/web/dist/_next/static/chunks/app/resource-usage/page-8394e96892688180.js +0 -1
  114. package/dist/web/dist/_next/static/chunks/app/shared/[token]/page-e859e87f2301b120.js +0 -1
  115. package/dist/web/dist/_next/static/chunks/app/snapshots/[id]/agent-prompt/page-f519552be54e3bdf.js +0 -1
  116. package/dist/web/dist/_next/static/chunks/app/talents/page-75af05473ea322d9.js +0 -1
  117. package/dist/web/dist/_next/static/chunks/app/team/insights/page-7b8769e35cd9987b.js +0 -1
  118. package/dist/web/dist/_next/static/chunks/framework-b3a558b17a070965.js +0 -1
  119. package/dist/web/dist/_next/static/chunks/main-8d45182e1c21cb95.js +0 -1
  120. package/dist/web/dist/_next/static/chunks/main-app-70da092dee991648.js +0 -1
  121. package/dist/web/dist/_next/static/chunks/pages/_app-8438560f1c1a7980.js +0 -4
  122. package/dist/web/dist/_next/static/chunks/pages/_error-17756f67e0a11350.js +0 -1
  123. package/dist/web/dist/_next/static/css/9eaf0c9cc1c24641.css +0 -3
  124. /package/dist/web/dist/_next/static/{9Wm8FfXwBJyMk-wYf4l81 → 2fPtjfAzNbYkpIoAQOsP3}/_ssgManifest.js +0 -0
@@ -0,0 +1,15 @@
1
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="112e7ede-022f-4680-89dc-ddc31724eab5",e._sentryDebugIdIdentifier="sentry-dbid-112e7ede-022f-4680-89dc-ddc31724eab5")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[131],{15841:function(e,t,r){let i,s;r.r(t),r.d(t,{Player:function(){return nP},default:function(){return nP}});var n,o,a,l,u,h,c,p,d,f,m,g,y,w,v,b,x,S,E,C,M,k,N,O,T,D,R,A,I,P,_,L,F,$,U,B,j,z,V,W,G,H,Y,q,J,X,Q,Z,K,ee,et,er,ei,es,en,eo,ea,el,eu,eh,ec,ep,ed,ef,em,eg,ey,ew,ev,eb,ex,eS,eE,eC,eM,ek,eN,eO,eT,eD,eR,eA,eI,eP,e_,eL,eF,e$,eU,eB,ej,ez,eV,eW,eG,eH,eY,eq,eJ,eX,eQ,eZ,eK,e0,e1,e2,e4,e3,e8,e6,e9,e5,e7,te,tt,tr,ti,ts,tn,to,ta,tl,tu,th,tc,tp,td,tf,tm,tg=r(46671).lW,ty=r(60529),tw=Object.defineProperty,tv=(e,t,r)=>t in e?tw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,tb=(e,t,r)=>tv(e,"symbol"!=typeof t?t+"":t,r);function tx(){}function tS(e,t){for(let r in t)e[r]=t[r];return e}function tE(e){return e()}function tC(){return Object.create(null)}function tM(e){e.forEach(tE)}function tk(e){return"function"==typeof e}function tN(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function tO(e){let t={};for(let r in e)"$"!==r[0]&&(t[r]=e[r]);return t}function tT(e,t){e.appendChild(t)}function tD(e,t,r){e.insertBefore(t,r||null)}function tR(e){e.parentNode&&e.parentNode.removeChild(e)}function tA(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function tI(e){return document.createElement(e)}function tP(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function t_(e){return document.createTextNode(e)}function tL(){return t_(" ")}function tF(e,t,r,i){return e.addEventListener(t,r,i),()=>e.removeEventListener(t,r,i)}function t$(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function tU(e,t){t=""+t,e.data!==t&&(e.data=t)}function tB(e,t,r,i){null==r?e.style.removeProperty(t):e.style.setProperty(t,r,"")}function tj(e,t,r){e.classList.toggle(t,!!r)}function tz(){if(!i)throw Error("Function called outside component initialization");return i}function tV(e){tz().$$.on_mount.push(e)}function tW(e){tz().$$.on_destroy.push(e)}let tG=[],tH=[],tY=[],tq=[],tJ=Promise.resolve(),tX=!1;function tQ(e){tY.push(e)}let tZ=new Set,tK=0;function t0(){if(0!==tK)return;let e=i;do{try{for(;tK<tG.length;){let e=tG[tK];tK++,i=e,function(e){if(null!==e.fragment){e.update(),tM(e.before_update);let t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(tQ)}}(e.$$)}}catch(e){throw tG.length=0,tK=0,e}for(i=null,tG.length=0,tK=0;tH.length;)tH.pop()();for(let e=0;e<tY.length;e+=1){let t=tY[e];tZ.has(t)||(tZ.add(t),t())}tY.length=0}while(tG.length);for(;tq.length;)tq.pop()();tX=!1,tZ.clear(),i=e}let t1=new Set;function t2(){s={r:0,c:[],p:s}}function t4(){s.r||tM(s.c),s=s.p}function t3(e,t){e&&e.i&&(t1.delete(e),e.i(t))}function t8(e,t,r,i){e&&e.o?t1.has(e)||(t1.add(e),s.c.push(()=>{t1.delete(e),i&&(r&&e.d(1),i())}),e.o(t)):i&&i()}function t6(e){return(null==e?void 0:e.length)!==void 0?e:Array.from(e)}function t9(e,t,r){let{fragment:i,after_update:s}=e.$$;i&&i.m(t,r),tQ(()=>{let t=e.$$.on_mount.map(tE).filter(tk);e.$$.on_destroy?e.$$.on_destroy.push(...t):tM(t),e.$$.on_mount=[]}),s.forEach(tQ)}function t5(e,t){let r=e.$$;null!==r.fragment&&(!function(e){let t=[],r=[];tY.forEach(i=>-1===e.indexOf(i)?t.push(i):r.push(i)),r.forEach(e=>e()),tY=t}(r.after_update),tM(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function t7(e,t,r,s,n,o,a=null,l=[-1]){let u=i;i=e;let h=e.$$={fragment:null,ctx:[],props:o,update:tx,not_equal:n,bound:tC(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:tC(),dirty:l,skip_bound:!1,root:t.target||u.$$.root};a&&a(h.root);let c=!1;if(h.ctx=r?r(e,t.props||{},(t,r,...i)=>{let s=i.length?i[0]:r;return h.ctx&&n(h.ctx[t],h.ctx[t]=s)&&(!h.skip_bound&&h.bound[t]&&h.bound[t](s),c)&&(-1===e.$$.dirty[0]&&(tG.push(e),tX||(tX=!0,tJ.then(t0)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31),r}):[],h.update(),c=!0,tM(h.before_update),h.fragment=!!s&&s(h.ctx),t.target){if(t.hydrate){let e=Array.from(t.target.childNodes);h.fragment&&h.fragment.l(e),e.forEach(tR)}else h.fragment&&h.fragment.c();t.intro&&t3(e.$$.fragment),t9(e,t.target,t.anchor),t0()}i=u}class re{constructor(){tb(this,"$$"),tb(this,"$$set")}$destroy(){t5(this,1),this.$destroy=tx}$on(e,t){if(!tk(t))return tx;let r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{let e=r.indexOf(t);-1!==e&&r.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}"undefined"!=typeof window&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4");var rt=Object.defineProperty,rr=(e,t,r)=>t in e?rt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ri=(e,t,r)=>rr(e,"symbol"!=typeof t?t+"":t,r),rs=Object.defineProperty,rn=(e,t,r)=>t in e?rs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ro=(e,t,r)=>rn(e,"symbol"!=typeof t?t+"":t,r),ra=((n=ra||{})[n.Document=0]="Document",n[n.DocumentType=1]="DocumentType",n[n.Element=2]="Element",n[n.Text=3]="Text",n[n.CDATA=4]="CDATA",n[n.Comment=5]="Comment",n);Date.now().toString();class rl{constructor(){ro(this,"idNodeMap",new Map),ro(this,"nodeMetaMap",new WeakMap)}getId(e){var t;return e?(null==(t=this.getMeta(e))?void 0:t.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(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){let r=this.getNode(e);if(r){let e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}let ru=RegExp(/(max|min)-device-(width|height)/.source,"g"),rh={postcssPlugin:"postcss-custom-selectors",prepare:()=>({postcssPlugin:"postcss-custom-selectors",AtRule:function(e){e.params.match(ru)&&(e.params=e.params.replace(ru,"$1-$2"))}})},rc={postcssPlugin:"postcss-hover-classes",prepare:function(){let e=[];return{Rule:function(t){-1===e.indexOf(t)&&(e.push(t),t.selectors.forEach(function(e){e.includes(":hover")&&(t.selector+=",\n"+e.replace(/:hover/g,".\\:hover"))}))}}}};var rp={exports:{}};let rd=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:function(){return e[t]}})}),r}(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));function rf(){if(E)return S;E=1;let e=function(){if(x)return rp.exports;x=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return rp.exports=t(),rp.exports.createColors=t,rp.exports}();class t extends Error{constructor(e,r,i,s,n,o){super(e),this.name="CssSyntaxError",this.reason=e,n&&(this.file=n),s&&(this.source=s),o&&(this.plugin=o),void 0!==r&&void 0!==i&&("number"==typeof r?(this.line=r,this.column=i):(this.line=r.line,this.column=r.column,this.endLine=i.line,this.endColumn=i.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,t)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){let r,i;if(!this.source)return"";let s=this.source;null==t&&(t=e.isColorSupported),rd&&t&&(s=rd(s));let n=s.split(/\r?\n/),o=Math.max(this.line-3,0),a=Math.min(this.line+2,n.length),l=String(a).length;if(t){let{bold:t,gray:s,red:n}=e.createColors(!0);r=e=>t(n(e)),i=e=>s(e)}else r=i=e=>e;return n.slice(o,a).map((e,t)=>{let s=o+1+t,n=" "+(" "+s).slice(-l)+" | ";if(s===this.line){let t=i(n.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return r(">")+i(n)+e+"\n "+t+r("^")}return" "+i(n)+e}).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}return S=t,t.default=t,S}var rm={};function rg(){return C||(C=1,rm.isClean=Symbol("isClean"),rm.my=Symbol("my")),rm}function ry(){if(k)return M;k=1;let e={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};class t{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,i=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:i&&(r+=" "),e.nodes)this.block(e,r+i);else{let s=(e.raws.between||"")+(t?";":"");this.builder(r+i+s,e)}}beforeAfter(e,t){let r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let i=e.parent,s=0;for(;i&&"root"!==i.type;)s+=1,i=i.parent;if(r.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<s;e++)r+=t}return r}block(e,t){let r,i=this.raw(e,"between","beforeOpen");this.builder(t+i+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let r=this.raw(e,"semicolon");for(let i=0;i<e.nodes.length;i++){let s=e.nodes[i],n=this.raw(s,"before");n&&this.builder(n),this.stringify(s,t!==i||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),i=e.prop+r+this.rawValue(e,"value");e.important&&(i+=e.raws.important||" !important"),t&&(i+=";"),this.builder(i,e)}document(e){this.body(e)}raw(t,r,i){let s;if(i||(i=r),r&&void 0!==(s=t.raws[r]))return s;let n=t.parent;if("before"===i&&(!n||"root"===n.type&&n.first===t||n&&"document"===n.type))return"";if(!n)return e[i];let o=t.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[i])return o.rawCache[i];if("before"===i||"after"===i)return this.beforeAfter(t,i);{var a;let e="raw"+((a=i)[0].toUpperCase()+a.slice(1));this[e]?s=this[e](o,t):o.walk(e=>{if(void 0!==(s=e.raws[r]))return!1})}return void 0===s&&(s=e[i]),o.rawCache[i]=s,s}rawBeforeClose(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(e=>{if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(e=>{if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(e=>{if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(e=>{if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t}rawIndent(e){let t;return e.raws.indent?e.raws.indent:(e.walk(r=>{let i=r.parent;if(i&&i!==e&&i.parent&&i.parent===e&&void 0!==r.raws.before){let e=r.raws.before.split("\n");return t=(t=e[e.length-1]).replace(/\S/g,""),!1}}),t)}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t}rawValue(e,t){let r=e[t],i=e.raws[t];return i&&i.value===r?i.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}}return M=t,t.default=t,M}function rw(){if(O)return N;O=1;let e=ry();function t(t,r){new e(r).stringify(t)}return N=t,t.default=t,N}function rv(){if(D)return T;D=1;let{isClean:e,my:t}=rg(),r=rf(),i=ry(),s=rw();class n{constructor(r={}){for(let i in this.raws={},this[e]=!1,this[t]=!0,r)if("nodes"===i)for(let e of(this.nodes=[],r[i]))"function"==typeof e.clone?this.append(e.clone()):this.append(e);else this[i]=r[i]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=function e(t,r){let i=new t.constructor;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s)||"proxyCache"===s)continue;let n=t[s],o=typeof n;"parent"===s&&"object"===o?r&&(i[s]=r):"source"===s?i[s]=n:Array.isArray(n)?i[s]=n.map(t=>e(t,i)):("object"===o&&null!==n&&(n=e(n)),i[s]=n)}return i}(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:i}=this.rangeBy(t);return this.source.input.error(e,{column:i.column,line:i.line},{column:r.column,line:r.line},t)}return new r(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,r)=>e[t]===r||(e[t]=r,("prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0)}}markDirty(){if(this[e]){this[e]=!1;let t=this;for(;t=t.parent;)t[e]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){let i=(t=this.toString()).indexOf(e.word);-1!==i&&(r=this.positionInside(i,t))}return r}positionInside(e,t){let r=t||this.toString(),i=this.source.start.column,s=this.source.start.line;for(let t=0;t<e;t++)"\n"===r[t]?(i=1,s+=1):i+=1;return{column:i,line:s}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let i=this.toString(),s=i.indexOf(e.word);-1!==s&&(t=this.positionInside(s,i),r=this.positionInside(s+e.word.length,i))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}}raw(e,t){return new i().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let i of e)i===this?r=!0:r?(this.parent.insertAfter(t,i),t=i):this.parent.insertBefore(t,i);r||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let r={},i=null==t;t=t||new Map;let s=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e)||"parent"===e||"proxyCache"===e)continue;let i=this[e];if(Array.isArray(i))r[e]=i.map(e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e);else if("object"==typeof i&&i.toJSON)r[e]=i.toJSON(null,t);else if("source"===e){let n=t.get(i.input);null==n&&(n=s,t.set(i.input,s),s++),r[e]={end:i.end,inputId:n,start:i.start}}else r[e]=i}return i&&(r.inputs=[...t.keys()].map(e=>e.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=s){e.stringify&&(e=e.stringify);let t="";return e(this,e=>{t+=e}),t}warn(e,t,r){let i={node:this};for(let e in r)i[e]=r[e];return e.warn(t,i)}get proxyOf(){return this}}return T=n,n.default=n,T}function rb(){if(A)return R;A=1;let e=rv();class t extends e{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}return R=t,t.default=t,R}function rx(){if(L)return _;L=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=rd,{existsSync:r,readFileSync:i}=rd,{dirname:s,join:n}=rd;class o{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,i=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=s(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e)){var t;return t=e.substr(RegExp.lastMatch.length),tg?tg.from(t,"base64").toString():window.atob(t)}throw Error("Unsupported source map encoding "+e.match(/data:application\/json;([^,]+),/)[1])}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let r=e.lastIndexOf(t.pop()),i=e.indexOf("*/",r);r>-1&&i>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,i)))}loadFile(e){if(this.root=s(e),r(e))return this.mapFile=e,i(e,"utf-8").toString().trim()}loadMap(r,i){if(!1===i)return!1;if(i){if("string"==typeof i)return i;if("function"==typeof i){let e=i(r);if(e){let t=this.loadFile(e);if(!t)throw Error("Unable to load previous source map: "+e.toString());return t}}else if(i instanceof e)return t.fromSourceMap(i).toString();else if(i instanceof t)return i.toString();else if(this.isMap(i))return JSON.stringify(i);else throw Error("Unsupported previous source map format: "+i.toString())}else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){let e=this.annotation;return r&&(e=n(s(r),e)),this.loadFile(e)}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return _=o,o.default=o,_}function rS(){if($)return F;$=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=rd,{fileURLToPath:r,pathToFileURL:i}=rd,{isAbsolute:s,resolve:n}=rd,{nanoid:o}=P?I:(P=1,I={nanoid:(e=21)=>{let t="",r=e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(r=t)=>{let i="",s=r;for(;s--;)i+=e[Math.random()*e.length|0];return i}}),a=rf(),l=rx(),u=Symbol("fromOffsetCache"),h=!!(e&&t),c=!!(n&&s);class p{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\uFEFF"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!c||/^\w+:\/\//.test(t.from)||s(t.from)?this.file=t.from:this.file=n(t.from)),c&&h){let e=new l(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+o(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,s={}){let n,o,l;if(t&&"object"==typeof t){let e=t,i=r;if("number"==typeof e.offset){let i=this.fromOffset(e.offset);t=i.line,r=i.col}else t=e.line,r=e.column;if("number"==typeof i.offset){let e=this.fromOffset(i.offset);o=e.line,l=e.col}else o=i.line,l=i.column}else if(!r){let e=this.fromOffset(t);t=e.line,r=e.col}let u=this.origin(t,r,o,l);return(n=u?new a(e,void 0===u.endLine?u.line:{column:u.column,line:u.line},void 0===u.endLine?u.column:{column:u.endColumn,line:u.endLine},u.source,u.file,s.plugin):new a(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:l,line:o},this.css,this.file,s.plugin)).input={column:r,endColumn:l,endLine:o,line:t,source:this.css},this.file&&(i&&(n.input.url=i(this.file).toString()),n.input.file=this.file),n}fromOffset(e){let t,r;if(this[u])r=this[u];else{let e=this.css.split("\n");r=Array(e.length);let t=0;for(let i=0,s=e.length;i<s;i++)r[i]=t,t+=e[i].length+1;this[u]=r}t=r[r.length-1];let i=0;if(e>=t)i=r.length-1;else{let t,s=r.length-2;for(;i<s;)if(e<r[t=i+(s-i>>1)])s=t-1;else if(e>=r[t+1])i=t+1;else{i=t;break}}return{col:e-r[i]+1,line:i+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:n(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,n,o){let a,l;if(!this.map)return!1;let u=this.map.consumer(),h=u.originalPositionFor({column:t,line:e});if(!h.source)return!1;"number"==typeof n&&(a=u.originalPositionFor({column:o,line:n})),l=s(h.source)?i(h.source):new URL(h.source,this.map.consumer().sourceRoot||i(this.map.mapFile));let c={column:h.column,endColumn:a&&a.column,endLine:a&&a.line,line:h.line,url:l.toString()};if("file:"===l.protocol){if(r)c.file=r(l);else throw Error("file: protocol is not available in this PostCSS build")}let p=u.sourceContentFor(h.source);return p&&(c.source=p),c}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}}return F=p,p.default=p,rd&&rd.registerInput&&rd.registerInput(p),F}function rE(){if(B)return U;B=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=rd,{dirname:r,relative:i,resolve:s,sep:n}=rd,{pathToFileURL:o}=rd,a=rS(),l=!!(e&&t),u=!!(r&&s&&i&&n);class h{constructor(e,t,r,i){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=i,this.originalCSS=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let t of this.previous()){let i,s=this.toUrl(this.path(t.file)),n=t.root||r(t.file);!1===this.mapOpts.sourcesContent?(i=new e(t.text)).sourcesContent&&(i.sourcesContent=null):i=t.consumer(),this.map.applySourceMap(i,s,this.toUrl(this.path(n)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation){if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}}generate(){if(this.clearAnnotation(),u&&l&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=t.fromSourceMap(e,{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(){let e,r;this.css="",this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0});let i=1,s=1,n="<no source>",o={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(t,a,l)=>{if(this.css+=t,a&&"end"!==l&&(o.generated.line=i,o.generated.column=s-1,a.source&&a.source.start?(o.source=this.sourcePath(a),o.original.line=a.source.start.line,o.original.column=a.source.start.column-1):(o.source=n,o.original.line=1,o.original.column=0),this.map.addMapping(o)),(e=t.match(/\n/g))?(i+=e.length,r=t.lastIndexOf("\n"),s=t.length-r):s+=t.length,a&&"start"!==l){let e=a.parent||{raws:{}};(!("decl"===a.type||"atrule"===a.type&&!a.nodes)||a!==e.last||e.raws.semicolon)&&(a.source&&a.source.end?(o.source=this.sourcePath(a),o.original.line=a.source.end.line,o.original.column=a.source.end.column-1,o.generated.line=i,o.generated.column=s-2):(o.source=n,o.original.line=1,o.original.column=0,o.generated.line=i,o.generated.column=s-1),this.map.addMapping(o))}})}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(e=>e.annotation))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(e=>e.inline))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(e=>e.withContent())}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let n=this.opts.to?r(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(n=r(s(n,this.mapOpts.annotation)));let o=i(n,e);return this.memoizedPaths.set(e,o),o}previous(){if(!this.previousMaps){if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new a(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let i=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(i,t.source.input.css)}}});else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return tg?tg.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(o){let t=o(e).toString();return this.memoizedFileURLs.set(e,t),t}throw Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===n&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}}return U=h}function rC(){if(z)return j;z=1;let e=rv();class t extends e{constructor(e){super(e),this.type="comment"}}return j=t,t.default=t,j}function rM(){let e,t,r,i;if(W)return V;W=1;let{isClean:s,my:n}=rg(),o=rb(),a=rC(),l=rv();class u extends l{append(...e){for(let t of e)for(let e of this.normalize(t,this.last))this.proxyOf.nodes.push(e);return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){let t,r;if(!this.proxyOf.nodes)return;let i=this.getIterator();for(;this.indexes[i]<this.proxyOf.nodes.length&&(t=this.indexes[i],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[i]+=1;return delete this.indexes[i],r}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){if("proxyOf"===t)return e;if(!e[t])return e[t];if("each"===t||"string"==typeof t&&t.startsWith("walk"))return(...r)=>e[t](...r.map(e=>"function"==typeof e?(t,r)=>e(t.toProxy(),r):e));if("every"===t||"some"===t)return r=>e[t]((e,...t)=>r(e.toProxy(),...t));if("root"===t)return()=>e.root().toProxy();if("nodes"===t)return e.nodes.map(e=>e.toProxy());if("first"===t||"last"===t)return e[t].toProxy();else return e[t]},set:(e,t,r)=>e[t]===r||(e[t]=r,("name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r,i=this.index(e),s=this.normalize(t,this.proxyOf.nodes[i]).reverse();for(let t of(i=this.index(e),s))this.proxyOf.nodes.splice(i+1,0,t);for(let e in this.indexes)i<(r=this.indexes[e])&&(this.indexes[e]=r+s.length);return this.markDirty(),this}insertBefore(e,t){let r,i=this.index(e),s=0===i&&"prepend",n=this.normalize(t,this.proxyOf.nodes[i],s).reverse();for(let t of(i=this.index(e),n))this.proxyOf.nodes.splice(i,0,t);for(let e in this.indexes)i<=(r=this.indexes[e])&&(this.indexes[e]=r+n.length);return this.markDirty(),this}normalize(i,l){if("string"==typeof i)i=function e(t){return t.map(t=>(t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t))}(e(i).nodes);else if(void 0===i)i=[];else if(Array.isArray(i))for(let e of i=i.slice(0))e.parent&&e.parent.removeChild(e,"ignore");else if("root"===i.type&&"document"!==this.type)for(let e of i=i.nodes.slice(0))e.parent&&e.parent.removeChild(e,"ignore");else if(i.type)i=[i];else if(i.prop){if(void 0===i.value)throw Error("Value field is missed in node creation");"string"!=typeof i.value&&(i.value=String(i.value)),i=[new o(i)]}else if(i.selector)i=[new t(i)];else if(i.name)i=[new r(i)];else if(i.text)i=[new a(i)];else throw Error("Unknown node type in node creation");return i.map(e=>(e[n]||u.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[s]&&function e(t){if(t[s]=!1,t.proxyOf.nodes)for(let r of t.proxyOf.nodes)e(r)}(e),void 0===e.raws.before&&l&&void 0!==l.raws.before&&(e.raws.before=l.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e))}prepend(...e){for(let t of e=e.reverse()){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;for(let r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(i=>{(!t.props||t.props.includes(i.prop))&&(!t.fast||i.value.includes(t.fast))&&(i.value=i.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let i;try{i=e(t,r)}catch(e){throw t.addToError(e)}return!1!==i&&t.walk&&(i=t.walk(e)),i})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if("atrule"===r.type&&e.test(r.name))return t(r,i)}):this.walk((r,i)=>{if("atrule"===r.type&&r.name===e)return t(r,i)}):(t=e,this.walk((e,r)=>{if("atrule"===e.type)return t(e,r)}))}walkComments(e){return this.walk((t,r)=>{if("comment"===t.type)return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if("decl"===r.type&&e.test(r.prop))return t(r,i)}):this.walk((r,i)=>{if("decl"===r.type&&r.prop===e)return t(r,i)}):(t=e,this.walk((e,r)=>{if("decl"===e.type)return t(e,r)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if("rule"===r.type&&e.test(r.selector))return t(r,i)}):this.walk((r,i)=>{if("rule"===r.type&&r.selector===e)return t(r,i)}):(t=e,this.walk((e,r)=>{if("rule"===e.type)return t(e,r)}))}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 u.registerParse=t=>{e=t},u.registerRule=e=>{t=e},u.registerAtRule=e=>{r=e},u.registerRoot=e=>{i=e},V=u,u.default=u,u.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,r.prototype):"rule"===e.type?Object.setPrototypeOf(e,t.prototype):"decl"===e.type?Object.setPrototypeOf(e,o.prototype):"comment"===e.type?Object.setPrototypeOf(e,a.prototype):"root"===e.type&&Object.setPrototypeOf(e,i.prototype),e[n]=!0,e.nodes&&e.nodes.forEach(e=>{u.rebuild(e)})},V}function rk(){let e,t;if(H)return G;H=1;let r=rM();class i extends r{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(r={}){return new e(new t,this,r).stringify()}}return i.registerLazyResult=t=>{e=t},i.registerProcessor=e=>{t=e},G=i,i.default=i,G}function rN(){if(q)return Y;q=1;let e={};return Y=function(t){!e[t]&&(e[t]=!0,"undefined"!=typeof console&&console.warn&&console.warn(t))}}function rO(){if(X)return J;X=1;class e{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}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 J=e,e.default=e,J}function rT(){if(Z)return Q;Z=1;let e=rO();class t{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(t,r={}){!r.plugin&&this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);let i=new e(t,r);return this.messages.push(i),i}warnings(){return this.messages.filter(e=>"warning"===e.type)}get content(){return this.css}}return Q=t,t.default=t,Q}function rD(){if(er)return et;er=1;let e=rM();class t extends e{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}}return et=t,t.default=t,e.registerAtRule(t),et}function rR(){let e,t;if(es)return ei;es=1;let r=rM();class i extends r{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let i=super.normalize(e);if(t){if("prepend"===r)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of i)e.raws.before=t.raws.before}return i}removeChild(e,t){let r=this.index(e);return!t&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(r={}){return new e(new t,this,r).stringify()}}return i.registerLazyResult=t=>{e=t},i.registerProcessor=e=>{t=e},ei=i,i.default=i,r.registerRoot(i),ei}function rA(){if(eo)return en;eo=1;let e={comma:t=>e.split(t,[","],!0),space:t=>e.split(t,[" ","\n"," "]),split(e,t,r){let i=[],s="",n=!1,o=0,a=!1,l="",u=!1;for(let r of e)u?u=!1:"\\"===r?u=!0:a?r===l&&(a=!1):'"'===r||"'"===r?(a=!0,l=r):"("===r?o+=1:")"===r?o>0&&(o-=1):0===o&&t.includes(r)&&(n=!0),n?(""!==s&&i.push(s.trim()),s="",n=!1):s+=r;return(r||""!==s)&&i.push(s.trim()),i}};return en=e,e.default=e,en}function rI(){if(el)return ea;el=1;let e=rM(),t=rA();class r extends e{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}return ea=r,r.default=r,e.registerRule(r),ea}function rP(){if(ep)return ec;ep=1;let e=rM(),t=function(){if(eh)return eu;eh=1;let e=rb(),t=function(){if(ee)return K;ee=1;let e=/[\t\n\f\r "#'()/;[\\\]{}]/g,t=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,r=/.[\r\n"'(/\\]/,i=/[\da-f]/i;return K=function(s,n={}){let o,a,l,u,h,c,p,d,f,m,g=s.css.valueOf(),y=n.ignoreErrors,w=g.length,v=0,b=[],x=[];function S(e){throw s.error("Unclosed "+e,v)}return{back:function(e){x.push(e)},endOfFile:function(){return 0===x.length&&v>=w},nextToken:function(s){if(x.length)return x.pop();if(v>=w)return;let n=!!s&&s.ignoreUnclosed;switch(o=g.charCodeAt(v)){case 10:case 32:case 9:case 13:case 12:a=v;do a+=1,o=g.charCodeAt(a);while(32===o||10===o||9===o||13===o||12===o);m=["space",g.slice(v,a)],v=a-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let e=String.fromCharCode(o);m=[e,e,v];break}case 40:if(d=b.length?b.pop()[1]:"",f=g.charCodeAt(v+1),"url"===d&&39!==f&&34!==f&&32!==f&&10!==f&&9!==f&&12!==f&&13!==f){a=v;do{if(c=!1,-1===(a=g.indexOf(")",a+1))){if(y||n){a=v;break}S("bracket")}for(p=a;92===g.charCodeAt(p-1);)p-=1,c=!c}while(c);m=["brackets",g.slice(v,a+1),v,a],v=a}else a=g.indexOf(")",v+1),u=g.slice(v,a+1),-1===a||r.test(u)?m=["(","(",v]:(m=["brackets",u,v,a],v=a);break;case 39:case 34:l=39===o?"'":'"',a=v;do{if(c=!1,-1===(a=g.indexOf(l,a+1))){if(y||n){a=v+1;break}S("string")}for(p=a;92===g.charCodeAt(p-1);)p-=1,c=!c}while(c);m=["string",g.slice(v,a+1),v,a],v=a;break;case 64:e.lastIndex=v+1,e.test(g),a=0===e.lastIndex?g.length-1:e.lastIndex-2,m=["at-word",g.slice(v,a+1),v,a],v=a;break;case 92:for(a=v,h=!0;92===g.charCodeAt(a+1);)a+=1,h=!h;if(o=g.charCodeAt(a+1),h&&47!==o&&32!==o&&10!==o&&9!==o&&13!==o&&12!==o&&(a+=1,i.test(g.charAt(a)))){for(;i.test(g.charAt(a+1));)a+=1;32===g.charCodeAt(a+1)&&(a+=1)}m=["word",g.slice(v,a+1),v,a],v=a;break;default:47===o&&42===g.charCodeAt(v+1)?(0===(a=g.indexOf("*/",v+2)+1)&&(y||n?a=g.length:S("comment")),m=["comment",g.slice(v,a+1),v,a]):(t.lastIndex=v+1,t.test(g),a=0===t.lastIndex?g.length-1:t.lastIndex-2,m=["word",g.slice(v,a+1),v,a],b.push(m)),v=a}return v++,m},position:function(){return v}}}}(),r=rC(),i=rD(),s=rR(),n=rI(),o={empty:!0,space:!0};class a{constructor(e){this.input=e,this.root=new s,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t,r,s,n=new i;n.name=e[1].slice(1),""===n.name&&this.unnamedAtrule(n,e),this.init(n,e[2]);let o=!1,a=!1,l=[],u=[];for(;!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?u.push("("===t?")":"]"):"{"===t&&u.length>0?u.push("}"):t===u[u.length-1]&&u.pop(),0===u.length){if(";"===t){n.source.end=this.getPosition(e[2]),n.source.end.offset++,this.semicolon=!0;break}if("{"===t){a=!0;break}if("}"===t){if(l.length>0){for(s=l.length-1,r=l[s];r&&"space"===r[0];)r=l[--s];r&&(n.source.end=this.getPosition(r[3]||r[2]),n.source.end.offset++)}this.end(e);break}l.push(e)}else l.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}n.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(n.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(n,"params",l),o&&(e=l[l.length-1],n.source.end=this.getPosition(e[3]||e[2]),n.source.end.offset++,this.spaces=n.raws.between,n.raws.between="")):(n.raws.afterName="",n.params=""),a&&(n.nodes=[],this.current=n)}checkMissedSemicolon(e){let t,r=this.colon(e);if(!1===r)return;let i=0;for(let s=r-1;s>=0&&("space"===(t=e[s])[0]||2!==(i+=1));s--);throw this.input.error("Missed semicolon","word"===t[0]?t[3]+1:t[2])}colon(e){let t,r,i=0;for(let[s,n]of e.entries()){if("("===(t=n[0])&&(i+=1),")"===t&&(i-=1),0===i&&":"===t){if(r){if("word"===r[0]&&"progid"===r[1])continue;return s}this.doubleColon(n)}r=n}return!1}comment(e){let t=new r;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let i=e[1].slice(2,-2);if(/^\s*$/.test(i))t.text="",t.raws.left=i,t.raws.right="";else{let e=i.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(t,r){let i,s,n=new e;this.init(n,t[0][2]);let o=t[t.length-1];for(";"===o[0]&&(this.semicolon=!0,t.pop()),n.source.end=this.getPosition(o[3]||o[2]||function(e){for(let t=e.length-1;t>=0;t--){let r=e[t],i=r[3]||r[2];if(i)return i}}(t)),n.source.end.offset++;"word"!==t[0][0];)1===t.length&&this.unknownWord(t),n.raws.before+=t.shift()[1];for(n.source.start=this.getPosition(t[0][2]),n.prop="";t.length;){let e=t[0][0];if(":"===e||"space"===e||"comment"===e)break;n.prop+=t.shift()[1]}for(n.raws.between="";t.length;){if(":"===(i=t.shift())[0]){n.raws.between+=i[1];break}"word"===i[0]&&/\w/.test(i[1])&&this.unknownWord([i]),n.raws.between+=i[1]}("_"===n.prop[0]||"*"===n.prop[0])&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let a=[];for(;t.length&&("space"===(s=t[0][0])||"comment"===s);)a.push(t.shift());this.precheckMissedSemicolon(t);for(let e=t.length-1;e>=0;e--){if("!important"===(i=t[e])[1].toLowerCase()){n.important=!0;let r=this.stringFrom(t,e);" !important"!==(r=this.spacesFromEnd(t)+r)&&(n.raws.important=r);break}if("important"===i[1].toLowerCase()){let r=t.slice(0),i="";for(let t=e;t>0;t--){let e=r[t][0];if(0===i.trim().indexOf("!")&&"space"!==e)break;i=r.pop()[1]+i}0===i.trim().indexOf("!")&&(n.important=!0,n.raws.important=i,t=r)}if("space"!==i[0]&&"comment"!==i[0])break}t.some(e=>"space"!==e[0]&&"comment"!==e[0])&&(n.raws.between+=a.map(e=>e[1]).join(""),a=[]),this.raw(n,"value",a.concat(t),r),n.value.includes(":")&&!r&&this.checkMissedSemicolon(t)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new n;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,r=null,i=!1,s=null,n=[],o=e[1].startsWith("--"),a=[],l=e;for(;l;){if(r=l[0],a.push(l),"("===r||"["===r)s||(s=l),n.push("("===r?")":"]");else if(o&&i&&"{"===r)s||(s=l),n.push("}");else if(0===n.length){if(";"===r){if(i){this.decl(a,o);return}break}if("{"===r){this.rule(a);return}if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(i=!0)}else r===n[n.length-1]&&(n.pop(),0===n.length&&(s=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),n.length>0&&this.unclosedBracket(s),t&&i){if(!o)for(;a.length&&("space"===(l=a[a.length-1][0])||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,o)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,i){let s,n,a,l;let u=r.length,h="",c=!0;for(let e=0;e<u;e+=1)"space"!==(n=(s=r[e])[0])||e!==u-1||i?"comment"===n?(l=r[e-1]?r[e-1][0]:"empty",a=r[e+1]?r[e+1][0]:"empty",o[l]||o[a]?c=!1:","===h.slice(-1)?c=!1:h+=s[1]):h+=s[1]:c=!1;if(!c){let i=r.reduce((e,t)=>e+t[1],"");e.raws[t]={raw:i,value:h}}e[t]=h}rule(e){e.pop();let t=new n;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t;let r="";for(;e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t;let r="";for(;e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r}spacesFromEnd(e){let t="";for(;e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t}stringFrom(e,t){let r="";for(let i=t;i<e.length;i++)r+=e[i][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}}return eu=a}(),r=rS();function i(e,i){let s=new t(new r(e,i));try{s.parse()}catch(e){throw e}return s.root}return ec=i,i.default=i,e.registerParse(i),ec}function r_(){if(ef)return ed;ef=1;let{isClean:e,my:t}=rg(),r=rE(),i=rw(),s=rM(),n=rk();rN();let o=rT(),a=rP(),l=rR(),u={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},h={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},c={Once:!0,postcssPlugin:!0,prepare:!0};function p(e){return"object"==typeof e&&"function"==typeof e.then}function d(e){let t=!1,r=u[e.type];return("decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append)?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function f(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:d(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function m(t){return t[e]=!1,t.nodes&&t.nodes.forEach(e=>m(e)),t}let g={};class y{constructor(e,r,i){let n;if(this.stringified=!1,this.processed=!1,"object"==typeof r&&null!==r&&("root"===r.type||"document"===r.type))n=m(r);else if(r instanceof y||r instanceof o)n=m(r.root),r.map&&(void 0===i.map&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=r.map);else{let e=a;i.syntax&&(e=i.syntax.parse),i.parser&&(e=i.parser),e.parse&&(e=e.parse);try{n=e(r,i)}catch(e){this.processed=!0,this.error=e}n&&!n[t]&&s.rebuild(n)}this.result=new o(e,n,i),this.helpers={...g,postcss:g,result:this.result},this.plugins=this.processor.plugins.map(e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,r)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,r])};for(let t of this.plugins)if("object"==typeof t)for(let r in t){if(!h[r]&&/^[A-Z]/.test(r))throw Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!c[r]){if("object"==typeof t[r])for(let i in t[r])e(t,"*"===i?r:r+"-"+i.toLowerCase(),t[r][i]);else"function"==typeof t[r]&&e(t,r,t[r])}}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(p(r))try{await r}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[e];){t[e]=!0;let r=[f(t)];for(;r.length>0;){let e=this.visitTick(r);if(p(e))try{await e}catch(t){let e=r[r.length-1].node;throw this.handleError(t,e)}}}if(this.listeners.OnceExit)for(let[e,r]of this.listeners.OnceExit){this.result.lastPlugin=e;try{if("document"===t.type){let e=t.nodes.map(e=>r(e,this.helpers));await Promise.all(e)}else await r(t,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));if(p(t[0]))return Promise.all(t);return t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=i;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let s=new r(t,this.result.root,this.result.opts).generate();return this.result.css=s[0],this.result.map=s[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins)if(p(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[e];)t[e]=!0,this.walkSync(t);if(this.listeners.OnceExit){if("document"===t.type)for(let e of t.nodes)this.visitSync(this.listeners.OnceExit,e);else this.visitSync(this.listeners.OnceExit,t)}}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,i]of e){let e;this.result.lastPlugin=r;try{e=i(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(p(e))throw this.getAsyncError()}}visitTick(t){let r=t[t.length-1],{node:i,visitors:s}=r;if("root"!==i.type&&"document"!==i.type&&!i.parent){t.pop();return}if(s.length>0&&r.visitorIndex<s.length){let[e,t]=s[r.visitorIndex];r.visitorIndex+=1,r.visitorIndex===s.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=e;try{return t(i.toProxy(),this.helpers)}catch(e){throw this.handleError(e,i)}}if(0!==r.iterator){let s,n=r.iterator;for(;s=i.nodes[i.indexes[n]];)if(i.indexes[n]+=1,!s[e]){s[e]=!0,t.push(f(s));return}r.iterator=0,delete i.indexes[n]}let n=r.events;for(;r.eventIndex<n.length;){let t=n[r.eventIndex];if(r.eventIndex+=1,0===t){i.nodes&&i.nodes.length&&(i[e]=!0,r.iterator=i.getIterator());return}if(this.listeners[t]){r.visitors=this.listeners[t];return}}t.pop()}walkSync(t){for(let r of(t[e]=!0,d(t)))if(0===r)t.nodes&&t.each(t=>{t[e]||this.walkSync(t)});else{let e=this.listeners[r];if(e&&this.visitSync(e,t.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 y.registerPostcss=e=>{g=e},ed=y,y.default=y,l.registerLazyResult(y),n.registerLazyResult(y),ed}let rL=(o=function(){if(eS)return ex;eS=1;let e=rf(),t=rb(),r=r_(),i=rM(),s=function(){if(ew)return ey;ew=1;let e=function(){if(eg)return em;eg=1;let e=rE(),t=rw();rN();let r=rP(),i=rT();class s{constructor(r,s,n){let o;s=s.toString(),this.stringified=!1,this._processor=r,this._css=s,this._opts=n,this._map=void 0,this.result=new i(this._processor,o,this._opts),this.result.css=s;let a=this;Object.defineProperty(this.result,"root",{get:()=>a.root});let l=new e(t,o,this._opts,s);if(l.isMap()){let[e,t]=l.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else l.clearAnnotation(),this.result.css=l.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){let e;if(this._root)return this._root;try{e=r(this._css,this._opts)}catch(e){this.error=e}if(!this.error)return this._root=e,e;throw this.error}get[Symbol.toStringTag](){return"NoWorkResult"}}return em=s,s.default=s,em}(),t=r_(),r=rk(),i=rR();class s{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)t.push(r);else if("function"==typeof r)t.push(r);else if("object"==typeof r&&(r.parse||r.stringify));else throw Error(r+" is not a PostCSS plugin");return t}process(r,i={}){return this.plugins.length||i.parser||i.stringifier||i.syntax?new t(this,r,i):new e(this,r,i)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}return ey=s,s.default=s,i.registerProcessor(s),r.registerProcessor(s),ey}(),n=rw(),o=function(){if(eb)return ev;eb=1;let e=rb(),t=rx(),r=rC(),i=rD(),s=rS(),n=rR(),o=rI();function a(l,u){if(Array.isArray(l))return l.map(e=>a(e));let{inputs:h,...c}=l;if(h)for(let e of(u=[],h)){let r={...e,__proto__:s.prototype};r.map&&(r.map={...r.map,__proto__:t.prototype}),u.push(r)}if(c.nodes&&(c.nodes=l.nodes.map(e=>a(e,u))),c.source){let{inputId:e,...t}=c.source;c.source=t,null!=e&&(c.source.input=u[e])}if("root"===c.type)return new n(c);if("decl"===c.type)return new e(c);if("rule"===c.type)return new o(c);if("comment"===c.type)return new r(c);if("atrule"===c.type)return new i(c);throw Error("Unknown node type: "+l.type)}return ev=a,a.default=a,ev}(),a=rk(),l=rO(),u=rC(),h=rD(),c=rT(),p=rS(),d=rP(),f=rA(),m=rI(),g=rR(),y=rv();function w(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new s(e)}return w.plugin=function(e,t){let r,i=!1;function n(...r){console&&console.warn&&!i&&(i=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),ty.env.LANG&&ty.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let o=t(...r);return o.postcssPlugin=e,o.postcssVersion=new s().version,o}return Object.defineProperty(n,"postcss",{get:()=>(r||(r=n()),r)}),n.process=function(e,t,r){return w([n(r)]).process(e,t)},n},w.stringify=n,w.parse=d,w.fromJSON=o,w.list=f,w.comment=e=>new u(e),w.atRule=e=>new h(e),w.decl=e=>new t(e),w.rule=e=>new m(e),w.root=e=>new g(e),w.document=e=>new a(e),w.CssSyntaxError=e,w.Declaration=t,w.Container=i,w.Processor=s,w.Document=a,w.Comment=u,w.Warning=l,w.AtRule=h,w.Result=c,w.Input=p,w.Rule=m,w.Root=g,w.Node=y,r.registerPostcss(w),ex=w,w.default=w,ex}())&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o;rL.stringify,rL.fromJSON,rL.plugin,rL.parse,rL.list,rL.document,rL.comment,rL.atRule,rL.rule,rL.decl,rL.root,rL.CssSyntaxError,rL.Declaration,rL.Container,rL.Processor,rL.Document,rL.Comment,rL.Warning,rL.AtRule,rL.Result,rL.Input,rL.Rule,rL.Root,rL.Node;let rF={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 r$(e,t){let r=null==t?void 0:t.stylesWithHoverClass.get(e);if(r)return r;let i=e;try{i=rL([rh,rc]).process(e).css}catch(e){console.warn("Failed to adapt css for replay",e)}return null==t||t.stylesWithHoverClass.set(e,i),i}function rU(){return{stylesWithHoverClass:new Map}}let rB="rrweb-snapshot.createSandboxedIframe() requires root to be connected to a document before creating a sandboxed iframe.",rj=new WeakSet;function rz(e,t){var r,i;let{doc:s,mirror:n,skipChild:o=!1,hackCss:a=!0,afterAppend:l,cache:u}=t;if(n.has(e.id)){let t=n.getNode(e.id);if((r=n.getMeta(t))&&e&&r.type===e.type&&(r.type===ra.Document?r.compatMode===e.compatMode:r.type===ra.DocumentType?r.name===e.name&&r.publicId===e.publicId&&r.systemId===e.systemId:r.type===ra.Comment||r.type===ra.Text||r.type===ra.CDATA?r.textContent===e.textContent:r.type===ra.Element&&r.tagName===e.tagName&&JSON.stringify(r.attributes)===JSON.stringify(e.attributes)&&r.isSVG===e.isSVG&&r.needBlock===e.needBlock))return n.getNode(e.id)}let h=function(e,t){var r;let{doc:i,hackCss:s,cache:n}=t;switch(e.type){case ra.Document:return i.implementation.createDocument(null,"",null);case ra.DocumentType:return i.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case ra.Element:{let s,n;let o=("link"===(n=rF[e.tagName]?rF[e.tagName]:e.tagName)&&e.attributes._cssText&&(n="style"),n);e.isSVG?s=i.createElementNS("http://www.w3.org/2000/svg",o):(e.isCustom&&(null==(r=i.defaultView)?void 0:r.customElements)&&!i.defaultView.customElements.get(e.tagName)&&i.defaultView.customElements.define(e.tagName,class extends i.defaultView.HTMLElement{}),s=i.createElement(o));let a={};for(let r in e.attributes){if(!Object.prototype.hasOwnProperty.call(e.attributes,r))continue;let n=e.attributes[r];if(("option"!==o||"selected"!==r||!1!==n)&&null!==n){if(!0===n&&(n=""),r.startsWith("rr_")){a[r]=n;continue}if("string"!=typeof n);else if("style"===o&&"_cssText"===r){!function(e,t,r,i){let{doc:s,hackCss:n,cache:o}=i;e.childNodes.length?function(e,t,r,i){let s=[];for(let t of e.childNodes)t.type===ra.Text&&s.push(t);let n=t.split("/* rr_split */");for(;n.length>1&&n.length>s.length;)n.splice(-2,2,n.slice(-2).join(""));let o="";r&&(o=r$(n.join(""),i));let a=0;for(let e=0;e<s.length&&e!==n.length;e++){let t=s[e];if(r){if(e<n.length-1){let r=a,i=n[e+1].length;i=Math.min(i,30);let s=!1;for(;i>2;i--){let t=n[e+1].substring(0,i),l=o.substring(a).indexOf(t);if(s=-1!==l){r+=l;break}}s||(r+=n[e].length),t.textContent=o.substring(a,r),a=r}else t.textContent=o.substring(a)}else t.textContent=n[e]}}(e,r,n,o):(n&&(r=r$(r,o)),t.appendChild(s.createTextNode(r)))}(e,s,n,t);continue}else if("textarea"===o&&"value"===r){s.appendChild(i.createTextNode(n)),e.childNodes=[];continue}try{if(e.isSVG&&"xlink:href"===r)s.setAttributeNS("http://www.w3.org/1999/xlink",r,n.toString());else if("onload"===r||"onclick"===r||"onmouse"===r.substring(0,7))s.setAttribute("_"+r,n.toString());else if("meta"===o&&"Content-Security-Policy"===e.attributes["http-equiv"]&&"content"===r){s.setAttribute("csp-content",n.toString());continue}else"link"===o&&("preload"===e.attributes.rel&&"script"===e.attributes.as||"modulepreload"===e.attributes.rel)||"link"===o&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===function(e,t){let r;try{r=new URL(e,(void 0)??window.location.href)}catch(e){return null}let i=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return(null==i?void 0:i[1])??null}(e.attributes.href)||("img"===o&&e.attributes.srcset&&e.attributes.rr_dataURL?s.setAttribute("rrweb-original-srcset",e.attributes.srcset):s.setAttribute(r,n.toString()))}catch(e){}}}for(let t in a){let r=a[t];if("canvas"===o&&"rr_dataURL"===t){let e=i.createElement("img");e.onload=()=>{let t=s.getContext("2d");t&&t.drawImage(e,0,0,e.width,e.height)},e.src=r.toString(),s.RRNodeType&&(s.rr_dataURL=r.toString())}else if("img"===o&&"rr_dataURL"===t){let t=s;t.currentSrc.startsWith("data:")||(t.setAttribute("rrweb-original-src",e.attributes.src),t.src=r.toString())}if("rr_width"===t)s.style.setProperty("width",r.toString());else if("rr_height"===t)s.style.setProperty("height",r.toString());else if("rr_mediaCurrentTime"===t&&"number"==typeof r)s.currentTime=r;else if("rr_mediaState"===t)switch(r){case"played":s.play().catch(e=>console.warn("media playback error",e));break;case"paused":s.pause()}else"rr_mediaPlaybackRate"===t&&"number"==typeof r?s.playbackRate=r:"rr_mediaMuted"===t&&"boolean"==typeof r?s.muted=r:"rr_mediaLoop"===t&&"boolean"==typeof r?s.loop=r:"rr_mediaVolume"===t&&"number"==typeof r?s.volume=r:"rr_open_mode"===t&&s.setAttribute("rr_open_mode",r)}if(e.isShadowHost){if(s.shadowRoot)for(;s.shadowRoot.firstChild;)s.shadowRoot.removeChild(s.shadowRoot.firstChild);else s.attachShadow({mode:"open"})}return s}case ra.Text:if(e.isStyle&&s)return i.createTextNode(r$(e.textContent,n));return i.createTextNode(e.textContent);case ra.CDATA:return i.createCDATASection(e.textContent);case ra.Comment:return i.createComment(e.textContent);default:return null}}(e,{doc:s,hackCss:a,cache:u});if(!h)return null;if(e.rootId&&n.getNode(e.rootId)!==s&&n.replace(e.rootId,s),e.type===ra.Document&&(s.close(),s.open(),"BackCompat"===e.compatMode&&e.childNodes&&e.childNodes[0].type!==ra.DocumentType&&(e.childNodes[0].type===ra.Element&&"xmlns"in e.childNodes[0].attributes&&"http://www.w3.org/1999/xhtml"===e.childNodes[0].attributes.xmlns?s.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):s.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),h=s),n.add(h,e),(e.type===ra.Document||e.type===ra.Element)&&!o)for(let t of e.childNodes){let r=rz(t,{doc:s,mirror:n,skipChild:!1,hackCss:a,afterAppend:l,cache:u});if(!r){console.warn("Failed to rebuild",t);continue}if(t.isShadow&&(i=h).nodeType===i.ELEMENT_NODE&&h.shadowRoot)h.shadowRoot.appendChild(r);else if(e.type===ra.Document&&t.type==ra.Element){let e=null;r.childNodes.forEach(t=>{"BODY"===t.nodeName&&(e=t)}),e?(r.removeChild(e),h.appendChild(r),r.appendChild(e)):h.appendChild(r)}else h.appendChild(r);l&&l(r,t.id)}return h}var rV=Object.defineProperty,rW=(e,t,r)=>t in e?rV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rG=(e,t,r)=>rW(e,"symbol"!=typeof t?t+"":t,r),rH=Object.defineProperty,rY=(e,t,r)=>t in e?rH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rq=(e,t,r)=>rY(e,"symbol"!=typeof t?t+"":t,r);Date.now().toString();let rJ=class{constructor(){rq(this,"idNodeMap",new Map),rq(this,"nodeMetaMap",new WeakMap)}getId(e){var t;return e?(null==(t=this.getMeta(e))?void 0:t.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(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){let r=this.getNode(e);if(r){let e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};var rX={exports:{}};let rQ=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:function(){return e[t]}})}),r}(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));function rZ(){if(eM)return eC;eM=1;let e=function(){if(eE)return rX.exports;eE=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return rX.exports=t(),rX.exports.createColors=t,rX.exports}();class t extends Error{constructor(e,r,i,s,n,o){super(e),this.name="CssSyntaxError",this.reason=e,n&&(this.file=n),s&&(this.source=s),o&&(this.plugin=o),void 0!==r&&void 0!==i&&("number"==typeof r?(this.line=r,this.column=i):(this.line=r.line,this.column=r.column,this.endLine=i.line,this.endColumn=i.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,t)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){let r,i;if(!this.source)return"";let s=this.source;null==t&&(t=e.isColorSupported),rQ&&t&&(s=rQ(s));let n=s.split(/\r?\n/),o=Math.max(this.line-3,0),a=Math.min(this.line+2,n.length),l=String(a).length;if(t){let{bold:t,gray:s,red:n}=e.createColors(!0);r=e=>t(n(e)),i=e=>s(e)}else r=i=e=>e;return n.slice(o,a).map((e,t)=>{let s=o+1+t,n=" "+(" "+s).slice(-l)+" | ";if(s===this.line){let t=i(n.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return r(">")+i(n)+e+"\n "+t+r("^")}return" "+i(n)+e}).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}return eC=t,t.default=t,eC}var rK={};function r0(){return ek||(ek=1,rK.isClean=Symbol("isClean"),rK.my=Symbol("my")),rK}function r1(){if(eO)return eN;eO=1;let e={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};class t{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,i=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:i&&(r+=" "),e.nodes)this.block(e,r+i);else{let s=(e.raws.between||"")+(t?";":"");this.builder(r+i+s,e)}}beforeAfter(e,t){let r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let i=e.parent,s=0;for(;i&&"root"!==i.type;)s+=1,i=i.parent;if(r.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<s;e++)r+=t}return r}block(e,t){let r,i=this.raw(e,"between","beforeOpen");this.builder(t+i+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let r=this.raw(e,"semicolon");for(let i=0;i<e.nodes.length;i++){let s=e.nodes[i],n=this.raw(s,"before");n&&this.builder(n),this.stringify(s,t!==i||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),i=e.prop+r+this.rawValue(e,"value");e.important&&(i+=e.raws.important||" !important"),t&&(i+=";"),this.builder(i,e)}document(e){this.body(e)}raw(t,r,i){let s;if(i||(i=r),r&&void 0!==(s=t.raws[r]))return s;let n=t.parent;if("before"===i&&(!n||"root"===n.type&&n.first===t||n&&"document"===n.type))return"";if(!n)return e[i];let o=t.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[i])return o.rawCache[i];if("before"===i||"after"===i)return this.beforeAfter(t,i);{var a;let e="raw"+((a=i)[0].toUpperCase()+a.slice(1));this[e]?s=this[e](o,t):o.walk(e=>{if(void 0!==(s=e.raws[r]))return!1})}return void 0===s&&(s=e[i]),o.rawCache[i]=s,s}rawBeforeClose(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(e=>{if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(e=>{if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(e=>{if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(e=>{if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t}rawIndent(e){let t;return e.raws.indent?e.raws.indent:(e.walk(r=>{let i=r.parent;if(i&&i!==e&&i.parent&&i.parent===e&&void 0!==r.raws.before){let e=r.raws.before.split("\n");return t=(t=e[e.length-1]).replace(/\S/g,""),!1}}),t)}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t}rawValue(e,t){let r=e[t],i=e.raws[t];return i&&i.value===r?i.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}}return eN=t,t.default=t,eN}function r2(){if(eD)return eT;eD=1;let e=r1();function t(t,r){new e(r).stringify(t)}return eT=t,t.default=t,eT}function r4(){if(eA)return eR;eA=1;let{isClean:e,my:t}=r0(),r=rZ(),i=r1(),s=r2();class n{constructor(r={}){for(let i in this.raws={},this[e]=!1,this[t]=!0,r)if("nodes"===i)for(let e of(this.nodes=[],r[i]))"function"==typeof e.clone?this.append(e.clone()):this.append(e);else this[i]=r[i]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=function e(t,r){let i=new t.constructor;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s)||"proxyCache"===s)continue;let n=t[s],o=typeof n;"parent"===s&&"object"===o?r&&(i[s]=r):"source"===s?i[s]=n:Array.isArray(n)?i[s]=n.map(t=>e(t,i)):("object"===o&&null!==n&&(n=e(n)),i[s]=n)}return i}(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:i}=this.rangeBy(t);return this.source.input.error(e,{column:i.column,line:i.line},{column:r.column,line:r.line},t)}return new r(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,r)=>e[t]===r||(e[t]=r,("prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0)}}markDirty(){if(this[e]){this[e]=!1;let t=this;for(;t=t.parent;)t[e]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){let i=(t=this.toString()).indexOf(e.word);-1!==i&&(r=this.positionInside(i,t))}return r}positionInside(e,t){let r=t||this.toString(),i=this.source.start.column,s=this.source.start.line;for(let t=0;t<e;t++)"\n"===r[t]?(i=1,s+=1):i+=1;return{column:i,line:s}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let i=this.toString(),s=i.indexOf(e.word);-1!==s&&(t=this.positionInside(s,i),r=this.positionInside(s+e.word.length,i))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}}raw(e,t){return new i().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let i of e)i===this?r=!0:r?(this.parent.insertAfter(t,i),t=i):this.parent.insertBefore(t,i);r||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let r={},i=null==t;t=t||new Map;let s=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e)||"parent"===e||"proxyCache"===e)continue;let i=this[e];if(Array.isArray(i))r[e]=i.map(e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e);else if("object"==typeof i&&i.toJSON)r[e]=i.toJSON(null,t);else if("source"===e){let n=t.get(i.input);null==n&&(n=s,t.set(i.input,s),s++),r[e]={end:i.end,inputId:n,start:i.start}}else r[e]=i}return i&&(r.inputs=[...t.keys()].map(e=>e.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=s){e.stringify&&(e=e.stringify);let t="";return e(this,e=>{t+=e}),t}warn(e,t,r){let i={node:this};for(let e in r)i[e]=r[e];return e.warn(t,i)}get proxyOf(){return this}}return eR=n,n.default=n,eR}function r3(){if(eP)return eI;eP=1;let e=r4();class t extends e{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}return eI=t,t.default=t,eI}function r8(){if(e$)return eF;e$=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=rQ,{existsSync:r,readFileSync:i}=rQ,{dirname:s,join:n}=rQ;class o{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,i=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=s(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e)){var t;return t=e.substr(RegExp.lastMatch.length),tg?tg.from(t,"base64").toString():window.atob(t)}throw Error("Unsupported source map encoding "+e.match(/data:application\/json;([^,]+),/)[1])}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let r=e.lastIndexOf(t.pop()),i=e.indexOf("*/",r);r>-1&&i>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,i)))}loadFile(e){if(this.root=s(e),r(e))return this.mapFile=e,i(e,"utf-8").toString().trim()}loadMap(r,i){if(!1===i)return!1;if(i){if("string"==typeof i)return i;if("function"==typeof i){let e=i(r);if(e){let t=this.loadFile(e);if(!t)throw Error("Unable to load previous source map: "+e.toString());return t}}else if(i instanceof e)return t.fromSourceMap(i).toString();else if(i instanceof t)return i.toString();else if(this.isMap(i))return JSON.stringify(i);else throw Error("Unsupported previous source map format: "+i.toString())}else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){let e=this.annotation;return r&&(e=n(s(r),e)),this.loadFile(e)}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return eF=o,o.default=o,eF}function r6(){if(eB)return eU;eB=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=rQ,{fileURLToPath:r,pathToFileURL:i}=rQ,{isAbsolute:s,resolve:n}=rQ,{nanoid:o}=eL?e_:(eL=1,e_={nanoid:(e=21)=>{let t="",r=e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(r=t)=>{let i="",s=r;for(;s--;)i+=e[Math.random()*e.length|0];return i}}),a=rZ(),l=r8(),u=Symbol("fromOffsetCache"),h=!!(e&&t),c=!!(n&&s);class p{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\uFEFF"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!c||/^\w+:\/\//.test(t.from)||s(t.from)?this.file=t.from:this.file=n(t.from)),c&&h){let e=new l(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+o(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,s={}){let n,o,l;if(t&&"object"==typeof t){let e=t,i=r;if("number"==typeof e.offset){let i=this.fromOffset(e.offset);t=i.line,r=i.col}else t=e.line,r=e.column;if("number"==typeof i.offset){let e=this.fromOffset(i.offset);o=e.line,l=e.col}else o=i.line,l=i.column}else if(!r){let e=this.fromOffset(t);t=e.line,r=e.col}let u=this.origin(t,r,o,l);return(n=u?new a(e,void 0===u.endLine?u.line:{column:u.column,line:u.line},void 0===u.endLine?u.column:{column:u.endColumn,line:u.endLine},u.source,u.file,s.plugin):new a(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:l,line:o},this.css,this.file,s.plugin)).input={column:r,endColumn:l,endLine:o,line:t,source:this.css},this.file&&(i&&(n.input.url=i(this.file).toString()),n.input.file=this.file),n}fromOffset(e){let t,r;if(this[u])r=this[u];else{let e=this.css.split("\n");r=Array(e.length);let t=0;for(let i=0,s=e.length;i<s;i++)r[i]=t,t+=e[i].length+1;this[u]=r}t=r[r.length-1];let i=0;if(e>=t)i=r.length-1;else{let t,s=r.length-2;for(;i<s;)if(e<r[t=i+(s-i>>1)])s=t-1;else if(e>=r[t+1])i=t+1;else{i=t;break}}return{col:e-r[i]+1,line:i+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:n(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,n,o){let a,l;if(!this.map)return!1;let u=this.map.consumer(),h=u.originalPositionFor({column:t,line:e});if(!h.source)return!1;"number"==typeof n&&(a=u.originalPositionFor({column:o,line:n})),l=s(h.source)?i(h.source):new URL(h.source,this.map.consumer().sourceRoot||i(this.map.mapFile));let c={column:h.column,endColumn:a&&a.column,endLine:a&&a.line,line:h.line,url:l.toString()};if("file:"===l.protocol){if(r)c.file=r(l);else throw Error("file: protocol is not available in this PostCSS build")}let p=u.sourceContentFor(h.source);return p&&(c.source=p),c}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}}return eU=p,p.default=p,rQ&&rQ.registerInput&&rQ.registerInput(p),eU}function r9(){if(ez)return ej;ez=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=rQ,{dirname:r,relative:i,resolve:s,sep:n}=rQ,{pathToFileURL:o}=rQ,a=r6(),l=!!(e&&t),u=!!(r&&s&&i&&n);class h{constructor(e,t,r,i){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=i,this.originalCSS=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let t of this.previous()){let i,s=this.toUrl(this.path(t.file)),n=t.root||r(t.file);!1===this.mapOpts.sourcesContent?(i=new e(t.text)).sourcesContent&&(i.sourcesContent=null):i=t.consumer(),this.map.applySourceMap(i,s,this.toUrl(this.path(n)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation){if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}}generate(){if(this.clearAnnotation(),u&&l&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=t.fromSourceMap(e,{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(){let e,r;this.css="",this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0});let i=1,s=1,n="<no source>",o={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(t,a,l)=>{if(this.css+=t,a&&"end"!==l&&(o.generated.line=i,o.generated.column=s-1,a.source&&a.source.start?(o.source=this.sourcePath(a),o.original.line=a.source.start.line,o.original.column=a.source.start.column-1):(o.source=n,o.original.line=1,o.original.column=0),this.map.addMapping(o)),(e=t.match(/\n/g))?(i+=e.length,r=t.lastIndexOf("\n"),s=t.length-r):s+=t.length,a&&"start"!==l){let e=a.parent||{raws:{}};(!("decl"===a.type||"atrule"===a.type&&!a.nodes)||a!==e.last||e.raws.semicolon)&&(a.source&&a.source.end?(o.source=this.sourcePath(a),o.original.line=a.source.end.line,o.original.column=a.source.end.column-1,o.generated.line=i,o.generated.column=s-2):(o.source=n,o.original.line=1,o.original.column=0,o.generated.line=i,o.generated.column=s-1),this.map.addMapping(o))}})}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(e=>e.annotation))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(e=>e.inline))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(e=>e.withContent())}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let n=this.opts.to?r(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(n=r(s(n,this.mapOpts.annotation)));let o=i(n,e);return this.memoizedPaths.set(e,o),o}previous(){if(!this.previousMaps){if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new a(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let i=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(i,t.source.input.css)}}});else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return tg?tg.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(o){let t=o(e).toString();return this.memoizedFileURLs.set(e,t),t}throw Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===n&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}}return ej=h}function r5(){if(eW)return eV;eW=1;let e=r4();class t extends e{constructor(e){super(e),this.type="comment"}}return eV=t,t.default=t,eV}function r7(){let e,t,r,i;if(eH)return eG;eH=1;let{isClean:s,my:n}=r0(),o=r3(),a=r5(),l=r4();class u extends l{append(...e){for(let t of e)for(let e of this.normalize(t,this.last))this.proxyOf.nodes.push(e);return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){let t,r;if(!this.proxyOf.nodes)return;let i=this.getIterator();for(;this.indexes[i]<this.proxyOf.nodes.length&&(t=this.indexes[i],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[i]+=1;return delete this.indexes[i],r}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){if("proxyOf"===t)return e;if(!e[t])return e[t];if("each"===t||"string"==typeof t&&t.startsWith("walk"))return(...r)=>e[t](...r.map(e=>"function"==typeof e?(t,r)=>e(t.toProxy(),r):e));if("every"===t||"some"===t)return r=>e[t]((e,...t)=>r(e.toProxy(),...t));if("root"===t)return()=>e.root().toProxy();if("nodes"===t)return e.nodes.map(e=>e.toProxy());if("first"===t||"last"===t)return e[t].toProxy();else return e[t]},set:(e,t,r)=>e[t]===r||(e[t]=r,("name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r,i=this.index(e),s=this.normalize(t,this.proxyOf.nodes[i]).reverse();for(let t of(i=this.index(e),s))this.proxyOf.nodes.splice(i+1,0,t);for(let e in this.indexes)i<(r=this.indexes[e])&&(this.indexes[e]=r+s.length);return this.markDirty(),this}insertBefore(e,t){let r,i=this.index(e),s=0===i&&"prepend",n=this.normalize(t,this.proxyOf.nodes[i],s).reverse();for(let t of(i=this.index(e),n))this.proxyOf.nodes.splice(i,0,t);for(let e in this.indexes)i<=(r=this.indexes[e])&&(this.indexes[e]=r+n.length);return this.markDirty(),this}normalize(i,l){if("string"==typeof i)i=function e(t){return t.map(t=>(t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t))}(e(i).nodes);else if(void 0===i)i=[];else if(Array.isArray(i))for(let e of i=i.slice(0))e.parent&&e.parent.removeChild(e,"ignore");else if("root"===i.type&&"document"!==this.type)for(let e of i=i.nodes.slice(0))e.parent&&e.parent.removeChild(e,"ignore");else if(i.type)i=[i];else if(i.prop){if(void 0===i.value)throw Error("Value field is missed in node creation");"string"!=typeof i.value&&(i.value=String(i.value)),i=[new o(i)]}else if(i.selector)i=[new t(i)];else if(i.name)i=[new r(i)];else if(i.text)i=[new a(i)];else throw Error("Unknown node type in node creation");return i.map(e=>(e[n]||u.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[s]&&function e(t){if(t[s]=!1,t.proxyOf.nodes)for(let r of t.proxyOf.nodes)e(r)}(e),void 0===e.raws.before&&l&&void 0!==l.raws.before&&(e.raws.before=l.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e))}prepend(...e){for(let t of e=e.reverse()){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;for(let r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(i=>{(!t.props||t.props.includes(i.prop))&&(!t.fast||i.value.includes(t.fast))&&(i.value=i.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let i;try{i=e(t,r)}catch(e){throw t.addToError(e)}return!1!==i&&t.walk&&(i=t.walk(e)),i})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if("atrule"===r.type&&e.test(r.name))return t(r,i)}):this.walk((r,i)=>{if("atrule"===r.type&&r.name===e)return t(r,i)}):(t=e,this.walk((e,r)=>{if("atrule"===e.type)return t(e,r)}))}walkComments(e){return this.walk((t,r)=>{if("comment"===t.type)return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if("decl"===r.type&&e.test(r.prop))return t(r,i)}):this.walk((r,i)=>{if("decl"===r.type&&r.prop===e)return t(r,i)}):(t=e,this.walk((e,r)=>{if("decl"===e.type)return t(e,r)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if("rule"===r.type&&e.test(r.selector))return t(r,i)}):this.walk((r,i)=>{if("rule"===r.type&&r.selector===e)return t(r,i)}):(t=e,this.walk((e,r)=>{if("rule"===e.type)return t(e,r)}))}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 u.registerParse=t=>{e=t},u.registerRule=e=>{t=e},u.registerAtRule=e=>{r=e},u.registerRoot=e=>{i=e},eG=u,u.default=u,u.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,r.prototype):"rule"===e.type?Object.setPrototypeOf(e,t.prototype):"decl"===e.type?Object.setPrototypeOf(e,o.prototype):"comment"===e.type?Object.setPrototypeOf(e,a.prototype):"root"===e.type&&Object.setPrototypeOf(e,i.prototype),e[n]=!0,e.nodes&&e.nodes.forEach(e=>{u.rebuild(e)})},eG}function ie(){let e,t;if(eq)return eY;eq=1;let r=r7();class i extends r{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(r={}){return new e(new t,this,r).stringify()}}return i.registerLazyResult=t=>{e=t},i.registerProcessor=e=>{t=e},eY=i,i.default=i,eY}function it(){if(eX)return eJ;eX=1;let e={};return eJ=function(t){!e[t]&&(e[t]=!0,"undefined"!=typeof console&&console.warn&&console.warn(t))}}function ir(){if(eZ)return eQ;eZ=1;class e{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}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 eQ=e,e.default=e,eQ}function ii(){if(e0)return eK;e0=1;let e=ir();class t{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(t,r={}){!r.plugin&&this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);let i=new e(t,r);return this.messages.push(i),i}warnings(){return this.messages.filter(e=>"warning"===e.type)}get content(){return this.css}}return eK=t,t.default=t,eK}function is(){if(e3)return e4;e3=1;let e=r7();class t extends e{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}}return e4=t,t.default=t,e.registerAtRule(t),e4}function io(){let e,t;if(e6)return e8;e6=1;let r=r7();class i extends r{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let i=super.normalize(e);if(t){if("prepend"===r)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of i)e.raws.before=t.raws.before}return i}removeChild(e,t){let r=this.index(e);return!t&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(r={}){return new e(new t,this,r).stringify()}}return i.registerLazyResult=t=>{e=t},i.registerProcessor=e=>{t=e},e8=i,i.default=i,r.registerRoot(i),e8}function ia(){if(e5)return e9;e5=1;let e={comma:t=>e.split(t,[","],!0),space:t=>e.split(t,[" ","\n"," "]),split(e,t,r){let i=[],s="",n=!1,o=0,a=!1,l="",u=!1;for(let r of e)u?u=!1:"\\"===r?u=!0:a?r===l&&(a=!1):'"'===r||"'"===r?(a=!0,l=r):"("===r?o+=1:")"===r?o>0&&(o-=1):0===o&&t.includes(r)&&(n=!0),n?(""!==s&&i.push(s.trim()),s="",n=!1):s+=r;return(r||""!==s)&&i.push(s.trim()),i}};return e9=e,e.default=e,e9}function il(){if(te)return e7;te=1;let e=r7(),t=ia();class r extends e{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}return e7=r,r.default=r,e.registerRule(r),e7}function iu(){if(ts)return ti;ts=1;let e=r7(),t=function(){if(tr)return tt;tr=1;let e=r3(),t=function(){if(e2)return e1;e2=1;let e=/[\t\n\f\r "#'()/;[\\\]{}]/g,t=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,r=/.[\r\n"'(/\\]/,i=/[\da-f]/i;return e1=function(s,n={}){let o,a,l,u,h,c,p,d,f,m,g=s.css.valueOf(),y=n.ignoreErrors,w=g.length,v=0,b=[],x=[];function S(e){throw s.error("Unclosed "+e,v)}return{back:function(e){x.push(e)},endOfFile:function(){return 0===x.length&&v>=w},nextToken:function(s){if(x.length)return x.pop();if(v>=w)return;let n=!!s&&s.ignoreUnclosed;switch(o=g.charCodeAt(v)){case 10:case 32:case 9:case 13:case 12:a=v;do a+=1,o=g.charCodeAt(a);while(32===o||10===o||9===o||13===o||12===o);m=["space",g.slice(v,a)],v=a-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let e=String.fromCharCode(o);m=[e,e,v];break}case 40:if(d=b.length?b.pop()[1]:"",f=g.charCodeAt(v+1),"url"===d&&39!==f&&34!==f&&32!==f&&10!==f&&9!==f&&12!==f&&13!==f){a=v;do{if(c=!1,-1===(a=g.indexOf(")",a+1))){if(y||n){a=v;break}S("bracket")}for(p=a;92===g.charCodeAt(p-1);)p-=1,c=!c}while(c);m=["brackets",g.slice(v,a+1),v,a],v=a}else a=g.indexOf(")",v+1),u=g.slice(v,a+1),-1===a||r.test(u)?m=["(","(",v]:(m=["brackets",u,v,a],v=a);break;case 39:case 34:l=39===o?"'":'"',a=v;do{if(c=!1,-1===(a=g.indexOf(l,a+1))){if(y||n){a=v+1;break}S("string")}for(p=a;92===g.charCodeAt(p-1);)p-=1,c=!c}while(c);m=["string",g.slice(v,a+1),v,a],v=a;break;case 64:e.lastIndex=v+1,e.test(g),a=0===e.lastIndex?g.length-1:e.lastIndex-2,m=["at-word",g.slice(v,a+1),v,a],v=a;break;case 92:for(a=v,h=!0;92===g.charCodeAt(a+1);)a+=1,h=!h;if(o=g.charCodeAt(a+1),h&&47!==o&&32!==o&&10!==o&&9!==o&&13!==o&&12!==o&&(a+=1,i.test(g.charAt(a)))){for(;i.test(g.charAt(a+1));)a+=1;32===g.charCodeAt(a+1)&&(a+=1)}m=["word",g.slice(v,a+1),v,a],v=a;break;default:47===o&&42===g.charCodeAt(v+1)?(0===(a=g.indexOf("*/",v+2)+1)&&(y||n?a=g.length:S("comment")),m=["comment",g.slice(v,a+1),v,a]):(t.lastIndex=v+1,t.test(g),a=0===t.lastIndex?g.length-1:t.lastIndex-2,m=["word",g.slice(v,a+1),v,a],b.push(m)),v=a}return v++,m},position:function(){return v}}}}(),r=r5(),i=is(),s=io(),n=il(),o={empty:!0,space:!0};class a{constructor(e){this.input=e,this.root=new s,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t,r,s,n=new i;n.name=e[1].slice(1),""===n.name&&this.unnamedAtrule(n,e),this.init(n,e[2]);let o=!1,a=!1,l=[],u=[];for(;!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?u.push("("===t?")":"]"):"{"===t&&u.length>0?u.push("}"):t===u[u.length-1]&&u.pop(),0===u.length){if(";"===t){n.source.end=this.getPosition(e[2]),n.source.end.offset++,this.semicolon=!0;break}if("{"===t){a=!0;break}if("}"===t){if(l.length>0){for(s=l.length-1,r=l[s];r&&"space"===r[0];)r=l[--s];r&&(n.source.end=this.getPosition(r[3]||r[2]),n.source.end.offset++)}this.end(e);break}l.push(e)}else l.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}n.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(n.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(n,"params",l),o&&(e=l[l.length-1],n.source.end=this.getPosition(e[3]||e[2]),n.source.end.offset++,this.spaces=n.raws.between,n.raws.between="")):(n.raws.afterName="",n.params=""),a&&(n.nodes=[],this.current=n)}checkMissedSemicolon(e){let t,r=this.colon(e);if(!1===r)return;let i=0;for(let s=r-1;s>=0&&("space"===(t=e[s])[0]||2!==(i+=1));s--);throw this.input.error("Missed semicolon","word"===t[0]?t[3]+1:t[2])}colon(e){let t,r,i=0;for(let[s,n]of e.entries()){if("("===(t=n[0])&&(i+=1),")"===t&&(i-=1),0===i&&":"===t){if(r){if("word"===r[0]&&"progid"===r[1])continue;return s}this.doubleColon(n)}r=n}return!1}comment(e){let t=new r;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let i=e[1].slice(2,-2);if(/^\s*$/.test(i))t.text="",t.raws.left=i,t.raws.right="";else{let e=i.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(t,r){let i,s,n=new e;this.init(n,t[0][2]);let o=t[t.length-1];for(";"===o[0]&&(this.semicolon=!0,t.pop()),n.source.end=this.getPosition(o[3]||o[2]||function(e){for(let t=e.length-1;t>=0;t--){let r=e[t],i=r[3]||r[2];if(i)return i}}(t)),n.source.end.offset++;"word"!==t[0][0];)1===t.length&&this.unknownWord(t),n.raws.before+=t.shift()[1];for(n.source.start=this.getPosition(t[0][2]),n.prop="";t.length;){let e=t[0][0];if(":"===e||"space"===e||"comment"===e)break;n.prop+=t.shift()[1]}for(n.raws.between="";t.length;){if(":"===(i=t.shift())[0]){n.raws.between+=i[1];break}"word"===i[0]&&/\w/.test(i[1])&&this.unknownWord([i]),n.raws.between+=i[1]}("_"===n.prop[0]||"*"===n.prop[0])&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let a=[];for(;t.length&&("space"===(s=t[0][0])||"comment"===s);)a.push(t.shift());this.precheckMissedSemicolon(t);for(let e=t.length-1;e>=0;e--){if("!important"===(i=t[e])[1].toLowerCase()){n.important=!0;let r=this.stringFrom(t,e);" !important"!==(r=this.spacesFromEnd(t)+r)&&(n.raws.important=r);break}if("important"===i[1].toLowerCase()){let r=t.slice(0),i="";for(let t=e;t>0;t--){let e=r[t][0];if(0===i.trim().indexOf("!")&&"space"!==e)break;i=r.pop()[1]+i}0===i.trim().indexOf("!")&&(n.important=!0,n.raws.important=i,t=r)}if("space"!==i[0]&&"comment"!==i[0])break}t.some(e=>"space"!==e[0]&&"comment"!==e[0])&&(n.raws.between+=a.map(e=>e[1]).join(""),a=[]),this.raw(n,"value",a.concat(t),r),n.value.includes(":")&&!r&&this.checkMissedSemicolon(t)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new n;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,r=null,i=!1,s=null,n=[],o=e[1].startsWith("--"),a=[],l=e;for(;l;){if(r=l[0],a.push(l),"("===r||"["===r)s||(s=l),n.push("("===r?")":"]");else if(o&&i&&"{"===r)s||(s=l),n.push("}");else if(0===n.length){if(";"===r){if(i){this.decl(a,o);return}break}if("{"===r){this.rule(a);return}if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(i=!0)}else r===n[n.length-1]&&(n.pop(),0===n.length&&(s=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),n.length>0&&this.unclosedBracket(s),t&&i){if(!o)for(;a.length&&("space"===(l=a[a.length-1][0])||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,o)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,i){let s,n,a,l;let u=r.length,h="",c=!0;for(let e=0;e<u;e+=1)"space"!==(n=(s=r[e])[0])||e!==u-1||i?"comment"===n?(l=r[e-1]?r[e-1][0]:"empty",a=r[e+1]?r[e+1][0]:"empty",o[l]||o[a]?c=!1:","===h.slice(-1)?c=!1:h+=s[1]):h+=s[1]:c=!1;if(!c){let i=r.reduce((e,t)=>e+t[1],"");e.raws[t]={raw:i,value:h}}e[t]=h}rule(e){e.pop();let t=new n;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t;let r="";for(;e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t;let r="";for(;e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r}spacesFromEnd(e){let t="";for(;e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t}stringFrom(e,t){let r="";for(let i=t;i<e.length;i++)r+=e[i][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}}return tt=a}(),r=r6();function i(e,i){let s=new t(new r(e,i));try{s.parse()}catch(e){throw e}return s.root}return ti=i,i.default=i,e.registerParse(i),ti}function ih(){if(to)return tn;to=1;let{isClean:e,my:t}=r0(),r=r9(),i=r2(),s=r7(),n=ie();it();let o=ii(),a=iu(),l=io(),u={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},h={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},c={Once:!0,postcssPlugin:!0,prepare:!0};function p(e){return"object"==typeof e&&"function"==typeof e.then}function d(e){let t=!1,r=u[e.type];return("decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append)?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function f(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:d(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function m(t){return t[e]=!1,t.nodes&&t.nodes.forEach(e=>m(e)),t}let g={};class y{constructor(e,r,i){let n;if(this.stringified=!1,this.processed=!1,"object"==typeof r&&null!==r&&("root"===r.type||"document"===r.type))n=m(r);else if(r instanceof y||r instanceof o)n=m(r.root),r.map&&(void 0===i.map&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=r.map);else{let e=a;i.syntax&&(e=i.syntax.parse),i.parser&&(e=i.parser),e.parse&&(e=e.parse);try{n=e(r,i)}catch(e){this.processed=!0,this.error=e}n&&!n[t]&&s.rebuild(n)}this.result=new o(e,n,i),this.helpers={...g,postcss:g,result:this.result},this.plugins=this.processor.plugins.map(e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,r)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,r])};for(let t of this.plugins)if("object"==typeof t)for(let r in t){if(!h[r]&&/^[A-Z]/.test(r))throw Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!c[r]){if("object"==typeof t[r])for(let i in t[r])e(t,"*"===i?r:r+"-"+i.toLowerCase(),t[r][i]);else"function"==typeof t[r]&&e(t,r,t[r])}}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(p(r))try{await r}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[e];){t[e]=!0;let r=[f(t)];for(;r.length>0;){let e=this.visitTick(r);if(p(e))try{await e}catch(t){let e=r[r.length-1].node;throw this.handleError(t,e)}}}if(this.listeners.OnceExit)for(let[e,r]of this.listeners.OnceExit){this.result.lastPlugin=e;try{if("document"===t.type){let e=t.nodes.map(e=>r(e,this.helpers));await Promise.all(e)}else await r(t,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));if(p(t[0]))return Promise.all(t);return t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=i;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let s=new r(t,this.result.root,this.result.opts).generate();return this.result.css=s[0],this.result.map=s[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins)if(p(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[e];)t[e]=!0,this.walkSync(t);if(this.listeners.OnceExit){if("document"===t.type)for(let e of t.nodes)this.visitSync(this.listeners.OnceExit,e);else this.visitSync(this.listeners.OnceExit,t)}}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,i]of e){let e;this.result.lastPlugin=r;try{e=i(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(p(e))throw this.getAsyncError()}}visitTick(t){let r=t[t.length-1],{node:i,visitors:s}=r;if("root"!==i.type&&"document"!==i.type&&!i.parent){t.pop();return}if(s.length>0&&r.visitorIndex<s.length){let[e,t]=s[r.visitorIndex];r.visitorIndex+=1,r.visitorIndex===s.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=e;try{return t(i.toProxy(),this.helpers)}catch(e){throw this.handleError(e,i)}}if(0!==r.iterator){let s,n=r.iterator;for(;s=i.nodes[i.indexes[n]];)if(i.indexes[n]+=1,!s[e]){s[e]=!0,t.push(f(s));return}r.iterator=0,delete i.indexes[n]}let n=r.events;for(;r.eventIndex<n.length;){let t=n[r.eventIndex];if(r.eventIndex+=1,0===t){i.nodes&&i.nodes.length&&(i[e]=!0,r.iterator=i.getIterator());return}if(this.listeners[t]){r.visitors=this.listeners[t];return}}t.pop()}walkSync(t){for(let r of(t[e]=!0,d(t)))if(0===r)t.nodes&&t.each(t=>{t[e]||this.walkSync(t)});else{let e=this.listeners[r];if(e&&this.visitSync(e,t.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 y.registerPostcss=e=>{g=e},tn=y,y.default=y,l.registerLazyResult(y),n.registerLazyResult(y),tn}let ic=(a=function(){if(tf)return td;tf=1;let e=rZ(),t=r3(),r=ih(),i=r7(),s=function(){if(th)return tu;th=1;let e=function(){if(tl)return ta;tl=1;let e=r9(),t=r2();it();let r=iu(),i=ii();class s{constructor(r,s,n){let o;s=s.toString(),this.stringified=!1,this._processor=r,this._css=s,this._opts=n,this._map=void 0,this.result=new i(this._processor,o,this._opts),this.result.css=s;let a=this;Object.defineProperty(this.result,"root",{get:()=>a.root});let l=new e(t,o,this._opts,s);if(l.isMap()){let[e,t]=l.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else l.clearAnnotation(),this.result.css=l.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){let e;if(this._root)return this._root;try{e=r(this._css,this._opts)}catch(e){this.error=e}if(!this.error)return this._root=e,e;throw this.error}get[Symbol.toStringTag](){return"NoWorkResult"}}return ta=s,s.default=s,ta}(),t=ih(),r=ie(),i=io();class s{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)t.push(r);else if("function"==typeof r)t.push(r);else if("object"==typeof r&&(r.parse||r.stringify));else throw Error(r+" is not a PostCSS plugin");return t}process(r,i={}){return this.plugins.length||i.parser||i.stringifier||i.syntax?new t(this,r,i):new e(this,r,i)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}return tu=s,s.default=s,i.registerProcessor(s),r.registerProcessor(s),tu}(),n=r2(),o=function(){if(tp)return tc;tp=1;let e=r3(),t=r8(),r=r5(),i=is(),s=r6(),n=io(),o=il();function a(l,u){if(Array.isArray(l))return l.map(e=>a(e));let{inputs:h,...c}=l;if(h)for(let e of(u=[],h)){let r={...e,__proto__:s.prototype};r.map&&(r.map={...r.map,__proto__:t.prototype}),u.push(r)}if(c.nodes&&(c.nodes=l.nodes.map(e=>a(e,u))),c.source){let{inputId:e,...t}=c.source;c.source=t,null!=e&&(c.source.input=u[e])}if("root"===c.type)return new n(c);if("decl"===c.type)return new e(c);if("rule"===c.type)return new o(c);if("comment"===c.type)return new r(c);if("atrule"===c.type)return new i(c);throw Error("Unknown node type: "+l.type)}return tc=a,a.default=a,tc}(),a=ie(),l=ir(),u=r5(),h=is(),c=ii(),p=r6(),d=iu(),f=ia(),m=il(),g=io(),y=r4();function w(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new s(e)}return w.plugin=function(e,t){let r,i=!1;function n(...r){console&&console.warn&&!i&&(i=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),ty.env.LANG&&ty.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let o=t(...r);return o.postcssPlugin=e,o.postcssVersion=new s().version,o}return Object.defineProperty(n,"postcss",{get:()=>(r||(r=n()),r)}),n.process=function(e,t,r){return w([n(r)]).process(e,t)},n},w.stringify=n,w.parse=d,w.fromJSON=o,w.list=f,w.comment=e=>new u(e),w.atRule=e=>new h(e),w.decl=e=>new t(e),w.rule=e=>new m(e),w.root=e=>new g(e),w.document=e=>new a(e),w.CssSyntaxError=e,w.Declaration=t,w.Container=i,w.Processor=s,w.Document=a,w.Comment=u,w.Warning=l,w.AtRule=h,w.Result=c,w.Input=p,w.Rule=m,w.Root=g,w.Node=y,r.registerPostcss(w),td=w,w.default=w,td}())&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a;ic.stringify,ic.fromJSON,ic.plugin,ic.parse,ic.list,ic.document,ic.comment,ic.atRule,ic.rule,ic.decl,ic.root,ic.CssSyntaxError,ic.Declaration,ic.Container,ic.Processor,ic.Document,ic.Comment,ic.Warning,ic.AtRule,ic.Result,ic.Input,ic.Rule,ic.Root,ic.Node;var ip=((l=ip||{})[l.Document=0]="Document",l[l.DocumentType=1]="DocumentType",l[l.Element=2]="Element",l[l.Text=3]="Text",l[l.CDATA=4]="CDATA",l[l.Comment=5]="Comment",l);function id(e){let t=[];for(let r in e){let i=e[r];if("string"!=typeof i)continue;let s=iv(r);t.push(`${s}: ${i};`)}return t.join(" ")}let im=/-([a-z])/g,ig=/^--[a-zA-Z0-9-]+$/,iy=e=>ig.test(e)?e:e.replace(im,(e,t)=>t?t.toUpperCase():""),iw=/\B([A-Z])/g,iv=e=>e.replace(iw,"-$1").toLowerCase();class ib{constructor(...e){rG(this,"parentElement",null),rG(this,"parentNode",null),rG(this,"ownerDocument"),rG(this,"firstChild",null),rG(this,"lastChild",null),rG(this,"previousSibling",null),rG(this,"nextSibling",null),rG(this,"ELEMENT_NODE",1),rG(this,"TEXT_NODE",3),rG(this,"nodeType"),rG(this,"nodeName"),rG(this,"RRNodeType")}get childNodes(){let e=[],t=this.firstChild;for(;t;)e.push(t),t=t.nextSibling;return e}contains(e){if(!(e instanceof ib)||e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}return!1}appendChild(e){throw Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(e,t){throw Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(e){throw Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}class ix extends ib{constructor(...e){super(e),rG(this,"nodeType",9),rG(this,"nodeName","#document"),rG(this,"compatMode","CSS1Compat"),rG(this,"RRNodeType",ip.Document),rG(this,"textContent",null),this.ownerDocument=this}get documentElement(){return this.childNodes.find(e=>e.RRNodeType===ip.Element&&"HTML"===e.tagName)||null}get body(){var e;return(null==(e=this.documentElement)?void 0:e.childNodes.find(e=>e.RRNodeType===ip.Element&&"BODY"===e.tagName))||null}get head(){var e;return(null==(e=this.documentElement)?void 0:e.childNodes.find(e=>e.RRNodeType===ip.Element&&"HEAD"===e.tagName))||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(e){let t=e.RRNodeType;if((t===ip.Element||t===ip.DocumentType)&&this.childNodes.some(e=>e.RRNodeType===t))throw Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${t===ip.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);let r=iD(this,e);return r.parentElement=null,r}insertBefore(e,t){let r=e.RRNodeType;if((r===ip.Element||r===ip.DocumentType)&&this.childNodes.some(e=>e.RRNodeType===r))throw Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${r===ip.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);let i=iR(this,e,t);return i.parentElement=null,i}removeChild(e){return iA(this,e)}open(){this.firstChild=null,this.lastChild=null}close(){}write(e){let t;if('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'===e?t="-//W3C//DTD XHTML 1.0 Transitional//EN":'<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">'===e&&(t="-//W3C//DTD HTML 4.0 Transitional//EN"),t){let e=this.createDocumentType("html",t,"");this.open(),this.appendChild(e)}}createDocument(e,t,r){return new ix}createDocumentType(e,t,r){let i=new iS(e,t,r);return i.ownerDocument=this,i}createElement(e){let t=new iE(e);return t.ownerDocument=this,t}createElementNS(e,t){return this.createElement(t)}createTextNode(e){let t=new ik(e);return t.ownerDocument=this,t}createComment(e){let t=new iN(e);return t.ownerDocument=this,t}createCDATASection(e){let t=new iO(e);return t.ownerDocument=this,t}toString(){return"RRDocument"}}class iS extends ib{constructor(e,t,r){super(),rG(this,"nodeType",10),rG(this,"RRNodeType",ip.DocumentType),rG(this,"name"),rG(this,"publicId"),rG(this,"systemId"),rG(this,"textContent",null),this.name=e,this.publicId=t,this.systemId=r,this.nodeName=e}toString(){return"RRDocumentType"}}class iE extends ib{constructor(e){super(),rG(this,"nodeType",1),rG(this,"RRNodeType",ip.Element),rG(this,"tagName"),rG(this,"attributes",{}),rG(this,"shadowRoot",null),rG(this,"scrollLeft"),rG(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 iT(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?function(e){let t={},r=/:(.+)/;return e.replace(/\/\*.*?\*\//g,"").split(/;(?![^(]*\))/g).forEach(function(e){if(e){let i=e.split(r);i.length>1&&(t[iy(i[0].trim())]=i[1].trim())}}),t}(this.attributes.style):{},t=/\B([A-Z])/g;return e.setProperty=(r,i,s)=>{if(t.test(r))return;let n=iy(r);i?e[n]=i:delete e[n],"important"===s&&(e[n]+=" !important"),this.attributes.style=id(e)},e.removeProperty=r=>{if(t.test(r))return"";let i=iy(r),s=e[i]||"";return delete e[i],this.attributes.style=id(e),s},e}getAttribute(e){return void 0===this.attributes[e]?null:this.attributes[e]}setAttribute(e,t){this.attributes[e]=t}setAttributeNS(e,t,r){this.setAttribute(t,r)}removeAttribute(e){delete this.attributes[e]}appendChild(e){return iD(this,e)}insertBefore(e,t){return iR(this,e,t)}removeChild(e){return iA(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}`}}class iC extends iE{constructor(){super(...arguments),rG(this,"currentTime"),rG(this,"volume"),rG(this,"paused"),rG(this,"muted"),rG(this,"playbackRate"),rG(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}}class iM extends iE{constructor(){super(...arguments),rG(this,"tagName","DIALOG"),rG(this,"nodeName","DIALOG")}get isModal(){return"modal"===this.getAttribute("rr_open_mode")}get open(){return null!==this.getAttribute("open")}close(){this.removeAttribute("open"),this.removeAttribute("rr_open_mode")}show(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","non-modal")}showModal(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","modal")}}class ik extends ib{constructor(e){super(),rG(this,"nodeType",3),rG(this,"nodeName","#text"),rG(this,"RRNodeType",ip.Text),rG(this,"data"),this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRText text=${JSON.stringify(this.data)}`}}class iN extends ib{constructor(e){super(),rG(this,"nodeType",8),rG(this,"nodeName","#comment"),rG(this,"RRNodeType",ip.Comment),rG(this,"data"),this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRComment text=${JSON.stringify(this.data)}`}}class iO extends ib{constructor(e){super(),rG(this,"nodeName","#cdata-section"),rG(this,"nodeType",4),rG(this,"RRNodeType",ip.CDATA),rG(this,"data"),this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRCDATASection data=${JSON.stringify(this.data)}`}}class iT{constructor(e,t){if(rG(this,"onChange"),rG(this,"classes",[]),rG(this,"add",(...e)=>{for(let t of e){let e=String(t);this.classes.indexOf(e)>=0||this.classes.push(e)}this.onChange&&this.onChange(this.classes.join(" "))}),rG(this,"remove",(...e)=>{this.classes=this.classes.filter(t=>-1===e.indexOf(t)),this.onChange&&this.onChange(this.classes.join(" "))}),e){let t=e.trim().split(/\s+/);this.classes.push(...t)}this.onChange=t}}function iD(e,t){return t.parentNode&&t.parentNode.removeChild(t),e.lastChild?(e.lastChild.nextSibling=t,t.previousSibling=e.lastChild):(e.firstChild=t,t.previousSibling=null),e.lastChild=t,t.nextSibling=null,t.parentNode=e,t.parentElement=e,t.ownerDocument=e.ownerDocument,t}function iR(e,t,r){if(!r)return iD(e,t);if(r.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===r||(t.parentNode&&t.parentNode.removeChild(t),t.previousSibling=r.previousSibling,r.previousSibling=t,t.nextSibling=r,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,t.parentElement=e,t.parentNode=e,t.ownerDocument=e.ownerDocument),t}function iA(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}var iI=((u=iI||{})[u.PLACEHOLDER=0]="PLACEHOLDER",u[u.ELEMENT_NODE=1]="ELEMENT_NODE",u[u.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",u[u.TEXT_NODE=3]="TEXT_NODE",u[u.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",u[u.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",u[u.ENTITY_NODE=6]="ENTITY_NODE",u[u.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",u[u.COMMENT_NODE=8]="COMMENT_NODE",u[u.DOCUMENT_NODE=9]="DOCUMENT_NODE",u[u.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",u[u.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",u);let iP={svg:"http://www.w3.org/2000/svg","xlink:href":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"},i_={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"},iL=null;function iF(e,t,r,i=t.mirror||t.ownerDocument.mirror){i$(e=function(e,t,r,i){var s;if(r.afterAppend&&!iL&&(iL=new WeakSet,setTimeout(()=>{iL=null},0)),!iB(e,t)){let n=iU(t,r.mirror,i);null==(s=e.parentNode)||s.replaceChild(n,e),e=n}switch(t.RRNodeType){case ip.Document:if(!ij(e,t,r.mirror,i)){let s=i.getMeta(t);s&&(r.mirror.removeNodeFromMap(e),e.close(),e.open(),r.mirror.add(e,s),null==iL||iL.add(e))}break;case ip.Element:{let s=e;switch(t.tagName){case"IFRAME":{let s=e.contentDocument;if(!s)break;iF(s,t.contentDocument,r,i)}}t.shadowRoot&&(s.shadowRoot||s.attachShadow({mode:"open"}),i$(s.shadowRoot,t.shadowRoot,r,i)),function(e,t,r){let i=e.attributes,s=t.attributes;for(let i in s){let n=s[i],o=r.getMeta(t);if((null==o?void 0:o.isSVG)&&iP[i])e.setAttributeNS(iP[i],i,n);else if("CANVAS"===t.tagName&&"rr_dataURL"===i){let t=document.createElement("img");t.src=n,t.onload=()=>{let r=e.getContext("2d");r&&r.drawImage(t,0,0,t.width,t.height)}}else{if("IFRAME"===t.tagName&&"srcdoc"===i)continue;try{e.setAttribute(i,n)}catch(e){console.warn(e)}}}for(let{name:t}of Array.from(i))t in s||e.removeAttribute(t);t.scrollLeft&&(e.scrollLeft=t.scrollLeft),t.scrollTop&&(e.scrollTop=t.scrollTop)}(s,t,i)}}return e}(e,t,r,i),t,r,i),function(e,t,r){var i;switch(t.RRNodeType){case ip.Document:{let e=t.scrollData;e&&r.applyScroll(e,!0);break}case ip.Element:switch(t.scrollData&&r.applyScroll(t.scrollData,!0),t.inputData&&r.applyInput(t.inputData),t.tagName){case"AUDIO":case"VIDEO":void 0!==t.paused&&(t.paused?e.pause():e.play()),void 0!==t.muted&&(e.muted=t.muted),void 0!==t.volume&&(e.volume=t.volume),void 0!==t.currentTime&&(e.currentTime=t.currentTime),void 0!==t.playbackRate&&(e.playbackRate=t.playbackRate),void 0!==t.loop&&(e.loop=t.loop);break;case"CANVAS":if(null!==t.rr_dataURL){let r=document.createElement("img");r.onload=()=>{let t=e.getContext("2d");t&&t.drawImage(r,0,0,r.width,r.height)},r.src=t.rr_dataURL}t.canvasMutations.forEach(t=>r.applyCanvas(t.event,t.mutation,e));break;case"STYLE":{let i=e.sheet;i&&t.rules.forEach(e=>r.applyStyleSheetMutation(e,i));break}case"DIALOG":{let r=e.open,i=e.matches("dialog:modal"),s=t.open,n=t.isModal,o=i!==n,a=r!==s;if((o||r&&a)&&e.close(),s&&(a||o))try{n?e.showModal():e.show()}catch(e){console.warn(e)}}}break;case ip.Text:case ip.Comment:case ip.CDATA:e.textContent!==t.data&&(e.textContent=t.data)}(null==iL?void 0:iL.has(e))&&(iL.delete(e),null==(i=r.afterAppend)||i.call(r,e,r.mirror.getId(e)))}(e,t,r)}function i$(e,t,r,i){let s,n;let o=Array.from(e.childNodes),a=t.childNodes;if(0===o.length&&0===a.length)return;let l=0,u=o.length-1,h=0,c=a.length-1,p=o[l],d=o[u],f=a[h],m=a[c];for(;l<=u&&h<=c;)if(void 0===p)p=o[++l];else if(void 0===d)d=o[--u];else if(ij(p,f,r.mirror,i))p=o[++l],f=a[++h];else if(ij(d,m,r.mirror,i))d=o[--u],m=a[--c];else if(ij(p,m,r.mirror,i)){try{e.insertBefore(p,d.nextSibling)}catch(e){console.warn(e)}p=o[++l],m=a[--c]}else if(ij(d,f,r.mirror,i)){try{e.insertBefore(d,p)}catch(e){console.warn(e)}d=o[--u],f=a[++h]}else{if(!s){s={};for(let e=l;e<=u;e++){let t=o[e];t&&r.mirror.hasNode(t)&&(s[r.mirror.getId(t)]=e)}}let t=o[n=s[i.getId(f)]];if(void 0!==n&&t&&ij(t,f,r.mirror,i)){try{e.insertBefore(t,p)}catch(e){console.warn(e)}o[n]=void 0}else{let t=iU(f,r.mirror,i);"#document"===e.nodeName&&p&&(t.nodeType===t.DOCUMENT_TYPE_NODE&&p.nodeType===p.DOCUMENT_TYPE_NODE||t.nodeType===t.ELEMENT_NODE&&p.nodeType===p.ELEMENT_NODE)&&(e.removeChild(p),r.mirror.removeNodeFromMap(p),p=o[++l]);try{e.insertBefore(t,p||null)}catch(e){console.warn(e)}}f=a[++h]}if(l>u){let t=a[c+1],s=null;for(t&&(s=r.mirror.getNode(i.getId(t)));h<=c;++h){let t=iU(a[h],r.mirror,i);try{e.insertBefore(t,s)}catch(e){console.warn(e)}}}else if(h>c)for(;l<=u;l++){let t=o[l];if(t&&t.parentNode===e)try{e.removeChild(t),r.mirror.removeNodeFromMap(t)}catch(e){console.warn(e)}}let g=e.firstChild,y=t.firstChild;for(;null!==g&&null!==y;)iF(g,y,r,i),g=g.nextSibling,y=y.nextSibling}function iU(e,t,r){let i=r.getId(e),s=r.getMeta(e),n=null;if(i>-1&&(n=t.getNode(i)),null!==n&&iB(n,e))return n;switch(e.RRNodeType){case ip.Document:n=new Document;break;case ip.DocumentType:n=document.implementation.createDocumentType(e.name,e.publicId,e.systemId);break;case ip.Element:{let t=e.tagName.toLowerCase();t=i_[t]||t,n=s&&"isSVG"in s&&(null==s?void 0:s.isSVG)?document.createElementNS(iP.svg,t):document.createElement(e.tagName);break}case ip.Text:n=document.createTextNode(e.data);break;case ip.Comment:n=document.createComment(e.data);break;case ip.CDATA:n=document.createCDATASection(e.data)}s&&t.add(n,{...s});try{null==iL||iL.add(n)}catch(e){}return n}function iB(e,t){return e.nodeType===t.nodeType&&(e.nodeType!==e.ELEMENT_NODE||e.tagName.toUpperCase()===t.tagName)}function ij(e,t,r,i){let s=r.getId(e),n=i.getId(t);return -1!==s&&s===n&&iB(e,t)}class iz extends ix{constructor(e){super(),rG(this,"UNSERIALIZED_STARTING_ID",-2),rG(this,"_unserializedId",this.UNSERIALIZED_STARTING_ID),rG(this,"mirror",new i0),rG(this,"scrollData",null),e&&(this.mirror=e)}get unserializedId(){return this._unserializedId--}createDocument(e,t,r){return new iz}createDocumentType(e,t,r){let i=new iV(e,t,r);return i.ownerDocument=this,i}createElement(e){let t;let r=e.toUpperCase();switch(r){case"AUDIO":case"VIDEO":t=new iG(r);break;case"IFRAME":t=new iJ(r,this.mirror);break;case"CANVAS":t=new iY(r);break;case"STYLE":t=new iq(r);break;case"DIALOG":t=new iH(r);break;default:t=new iW(r)}return t.ownerDocument=this,t}createComment(e){let t=new iQ(e);return t.ownerDocument=this,t}createCDATASection(e){let t=new iZ(e);return t.ownerDocument=this,t}createTextNode(e){let t=new iX(e);return t.ownerDocument=this,t}destroyTree(){this.firstChild=null,this.lastChild=null,this.mirror.reset()}open(){super.open(),this._unserializedId=this.UNSERIALIZED_STARTING_ID}}let iV=iS;class iW extends iE{constructor(){super(...arguments),rG(this,"inputData",null),rG(this,"scrollData",null)}}class iG extends iC{}class iH extends iM{}class iY extends iW{constructor(){super(...arguments),rG(this,"rr_dataURL",null),rG(this,"canvasMutations",[])}getContext(){return null}}class iq extends iW{constructor(){super(...arguments),rG(this,"rules",[])}}class iJ extends iW{constructor(e,t){super(e),rG(this,"contentDocument",new iz),this.contentDocument.mirror=t}}let iX=ik,iQ=iN,iZ=iO;function iK(e,t,r,i){let s;switch(e.nodeType){case iI.DOCUMENT_NODE:i&&"IFRAME"===i.nodeName?s=i.contentDocument:(s=t).compatMode=e.compatMode;break;case iI.DOCUMENT_TYPE_NODE:s=t.createDocumentType(e.name,e.publicId,e.systemId);break;case iI.ELEMENT_NODE:{let r=e instanceof HTMLFormElement?"FORM":e.tagName.toUpperCase(),i=s=t.createElement(r);for(let{name:t,value:r}of Array.from(e.attributes))i.attributes[t]=r;e.scrollLeft&&(i.scrollLeft=e.scrollLeft),e.scrollTop&&(i.scrollTop=e.scrollTop);break}case iI.TEXT_NODE:s=t.createTextNode(e.textContent||"");break;case iI.CDATA_SECTION_NODE:s=t.createCDATASection(e.data);break;case iI.COMMENT_NODE:s=t.createComment(e.textContent||"");break;case iI.DOCUMENT_FRAGMENT_NODE:s=i.attachShadow({mode:"open"});break;default:return null}let n=r.getMeta(e);return t instanceof iz&&(n||(n=i1(s,t.unserializedId),r.add(e,n)),t.mirror.add(s,{...n})),s}class i0{constructor(){rG(this,"idNodeMap",new Map),rG(this,"nodeMetaMap",new WeakMap)}getId(e){var t;return e?(null==(t=this.getMeta(e))?void 0:t.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(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){let r=this.getNode(e);if(r){let e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function i1(e,t){switch(e.RRNodeType){case ip.Document:return{id:t,type:e.RRNodeType,childNodes:[]};case ip.DocumentType:return{id:t,type:e.RRNodeType,name:e.name,publicId:e.publicId,systemId:e.systemId};case ip.Element:return{id:t,type:e.RRNodeType,tagName:e.tagName.toLowerCase(),attributes:{},childNodes:[]};case ip.Text:case ip.Comment:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case ip.CDATA:return{id:t,type:e.RRNodeType,textContent:""}}}let i2={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},i4={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},i3={},i8={},i6=()=>!!globalThis.Zone,i9={};/[1-9][0-9]{12}/.test(Date.now().toString())||(()=>new Date().getTime());let i5={shadowRoot:function(e){return e&&"shadowRoot"in e?function(e,t,r){var i;let s=`${e}.${String(r)}`;if(i9[s])return i9[s].call(t);let n=null==(i=Object.getOwnPropertyDescriptor(function(e){if(i3[e])return i3[e];let t=globalThis[e],r=t.prototype,i=e in i2?i2[e]:void 0,s=!!(i&&i.every(e=>{var t,i;return!!(null==(i=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:i.toString().includes("[native code]"))})),n=e in i4?i4[e]:void 0,o=!!(n&&n.every(e=>{var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(s&&o&&!i6())return i3[e]=t.prototype,t.prototype;try{let i=document.createElement("iframe");i.style.display="none",document.body.appendChild(i);let s=i.contentWindow;if(!s)return t.prototype;let n=s[e].prototype;if(!n)return i.remove(),r;let o=navigator.userAgent;return o.includes("Safari")&&!o.includes("Chrome")?(i.classList.add("rr-block"),i.setAttribute("__rrwebUntaintedMutationObserver",""),i8[e]=()=>i.remove()):i.remove(),i3[e]=n}catch{return r}}(e),r))?void 0:i.get;return n?(i9[s]=n,n.call(t)):t[r]}("Element",e,"shadowRoot"):null}},i7="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",se={map:{},getId:()=>(console.error(i7),-1),getNode:()=>(console.error(i7),null),removeNodeFromMap(){console.error(i7)},has:()=>(console.error(i7),!1),reset(){console.error(i7)}};function st(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function sr(e){return!!e&&(e instanceof ib&&"shadowRoot"in e?!!e.shadowRoot:!!i5.shadowRoot(e))}function si(e,t){let r=null==e?void 0:e[t[0]];return r?1===t.length?r:si(r.cssRules,t.slice(1)):null}function ss(e){let t=[...e],r=t.pop();return{positions:t,index:r}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(se=new Proxy(se,{get:(e,t,r)=>("map"===t&&console.error(i7),Reflect.get(e,t,r))}));class sn{constructor(){ri(this,"id",1),ri(this,"styleIDMap",new WeakMap),ri(this,"idStyleMap",new Map)}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){let r;return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r)}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}for(var so=((h=so||{})[h.DomContentLoaded=0]="DomContentLoaded",h[h.Load=1]="Load",h[h.FullSnapshot=2]="FullSnapshot",h[h.IncrementalSnapshot=3]="IncrementalSnapshot",h[h.Meta=4]="Meta",h[h.Custom=5]="Custom",h[h.Plugin=6]="Plugin",h[h.Asset=7]="Asset",h),sa=((c=sa||{})[c.Mutation=0]="Mutation",c[c.MouseMove=1]="MouseMove",c[c.MouseInteraction=2]="MouseInteraction",c[c.Scroll=3]="Scroll",c[c.ViewportResize=4]="ViewportResize",c[c.Input=5]="Input",c[c.TouchMove=6]="TouchMove",c[c.MediaInteraction=7]="MediaInteraction",c[c.StyleSheetRule=8]="StyleSheetRule",c[c.CanvasMutation=9]="CanvasMutation",c[c.Font=10]="Font",c[c.Log=11]="Log",c[c.Drag=12]="Drag",c[c.StyleDeclaration=13]="StyleDeclaration",c[c.Selection=14]="Selection",c[c.AdoptedStyleSheet=15]="AdoptedStyleSheet",c[c.CustomElement=16]="CustomElement",c),sl=((p=sl||{})[p.MouseUp=0]="MouseUp",p[p.MouseDown=1]="MouseDown",p[p.Click=2]="Click",p[p.ContextMenu=3]="ContextMenu",p[p.DblClick=4]="DblClick",p[p.Focus=5]="Focus",p[p.Blur=6]="Blur",p[p.TouchStart=7]="TouchStart",p[p.TouchMove_Departed=8]="TouchMove_Departed",p[p.TouchEnd=9]="TouchEnd",p[p.TouchCancel=10]="TouchCancel",p),su=((d=su||{})[d["2D"]=0]="2D",d[d.WebGL=1]="WebGL",d[d.WebGL2=2]="WebGL2",d),sh=((f=sh||{})[f.Play=0]="Play",f[f.Pause=1]="Pause",f[f.Seeked=2]="Seeked",f[f.VolumeChange=3]="VolumeChange",f[f.RateChange=4]="RateChange",f),sc=((m=sc||{}).Start="start",m.Pause="pause",m.Resume="resume",m.Resize="resize",m.Finish="finish",m.FullsnapshotRebuilded="fullsnapshot-rebuilded",m.LoadStylesheetStart="load-stylesheet-start",m.LoadStylesheetEnd="load-stylesheet-end",m.SkipStart="skip-start",m.SkipEnd="skip-end",m.MouseInteraction="mouse-interaction",m.EventCast="event-cast",m.CustomEvent="custom-event",m.Flush="flush",m.StateChange="state-change",m.PlayBack="play-back",m.Destroy="destroy",m),sp=((g=sp||{})[g.Document=0]="Document",g[g.DocumentType=1]="DocumentType",g[g.Element=2]="Element",g[g.Text=3]="Text",g[g.CDATA=4]="CDATA",g[g.Comment=5]="Comment",g),sd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",sf="undefined"==typeof Uint8Array?[]:new Uint8Array(256),sm=0;sm<sd.length;sm++)sf[sd.charCodeAt(sm)]=sm;var sg=function(e){var t,r,i,s,n,o=.75*e.length,a=e.length,l=0;"="===e[e.length-1]&&(o--,"="===e[e.length-2]&&o--);var u=new ArrayBuffer(o),h=new Uint8Array(u);for(t=0;t<a;t+=4)r=sf[e.charCodeAt(t)],i=sf[e.charCodeAt(t+1)],s=sf[e.charCodeAt(t+2)],n=sf[e.charCodeAt(t+3)],h[l++]=r<<2|i>>4,h[l++]=(15&i)<<4|s>>2,h[l++]=(3&s)<<6|63&n;return u};"undefined"!=typeof self&&self.Blob&&new Blob(['(function() {\n "use strict";\n var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";\n var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256);\n for (var i = 0; i < chars.length; i++) {\n lookup[chars.charCodeAt(i)] = i;\n }\n var encode = function(arraybuffer) {\n var bytes = new Uint8Array(arraybuffer), i2, len = bytes.length, base64 = "";\n for (i2 = 0; i2 < len; i2 += 3) {\n base64 += chars[bytes[i2] >> 2];\n base64 += chars[(bytes[i2] & 3) << 4 | bytes[i2 + 1] >> 4];\n base64 += chars[(bytes[i2 + 1] & 15) << 2 | bytes[i2 + 2] >> 6];\n base64 += chars[bytes[i2 + 2] & 63];\n }\n if (len % 3 === 2) {\n base64 = base64.substring(0, base64.length - 1) + "=";\n } else if (len % 3 === 1) {\n base64 = base64.substring(0, base64.length - 2) + "==";\n }\n return base64;\n };\n const lastBlobMap = /* @__PURE__ */ new Map();\n const transparentBlobMap = /* @__PURE__ */ new Map();\n async function getTransparentBlobFor(width, height, dataURLOptions) {\n const id = `${width}-${height}`;\n if ("OffscreenCanvas" in globalThis) {\n if (transparentBlobMap.has(id)) return transparentBlobMap.get(id);\n const offscreen = new OffscreenCanvas(width, height);\n offscreen.getContext("2d");\n const blob = await offscreen.convertToBlob(dataURLOptions);\n const arrayBuffer = await blob.arrayBuffer();\n const base64 = encode(arrayBuffer);\n transparentBlobMap.set(id, base64);\n return base64;\n } else {\n return "";\n }\n }\n const worker = self;\n worker.onmessage = async function(e) {\n if ("OffscreenCanvas" in globalThis) {\n const { id, bitmap, width, height, dataURLOptions } = e.data;\n const transparentBase64 = getTransparentBlobFor(\n width,\n height,\n dataURLOptions\n );\n const offscreen = new OffscreenCanvas(width, height);\n const ctx = offscreen.getContext("2d");\n ctx.drawImage(bitmap, 0, 0);\n bitmap.close();\n const blob = await offscreen.convertToBlob(dataURLOptions);\n const type = blob.type;\n const arrayBuffer = await blob.arrayBuffer();\n const base64 = encode(arrayBuffer);\n if (!lastBlobMap.has(id) && await transparentBase64 === base64) {\n lastBlobMap.set(id, base64);\n return worker.postMessage({ id });\n }\n if (lastBlobMap.get(id) === base64) return worker.postMessage({ id });\n worker.postMessage({\n id,\n type,\n base64,\n width,\n height\n });\n lastBlobMap.set(id, base64);\n } else {\n return worker.postMessage({ id: e.data.id });\n }\n };\n})();\n//# sourceMappingURL=image-bitmap-data-url-worker-IJpC7g_b.js.map\n'],{type:"text/javascript;charset=utf-8"});try{if(2!==Array.from([1],e=>2*e)[0]){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=(null==(b=e.contentWindow)?void 0:b.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}new rl;class sy{constructor(e=[],t){ri(this,"timeOffset",0),ri(this,"speed"),ri(this,"actions"),ri(this,"raf",null),ri(this,"lastTimestamp"),this.actions=e,this.speed=t.speed}addAction(e){let t=!0===this.raf;if(!this.actions.length||this.actions[this.actions.length-1].delay<=e.delay)this.actions.push(e);else{let t=this.findActionIndex(e);this.actions.splice(t,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(){!0===this.raf&&this.rafCheck()}rafCheck(){let e=performance.now();for(this.timeOffset+=(e-this.lastTimestamp)*this.speed,this.lastTimestamp=e;this.actions.length;){let e=this.actions[0];if(this.timeOffset>=e.delay)this.actions.shift(),e.doAction();else break}this.actions.length>0?this.raf=requestAnimationFrame(this.rafCheck.bind(this)):this.raf=!0}clear(){this.raf&&(!0!==this.raf&&cancelAnimationFrame(this.raf),this.raf=null),this.actions.length=0}setSpeed(e){this.speed=e}isActive(){return null!==this.raf}findActionIndex(e){let t=0,r=this.actions.length-1;for(;t<=r;){let i=Math.floor((t+r)/2);if(this.actions[i].delay<e.delay)t=i+1;else{if(!(this.actions[i].delay>e.delay))return i+1;r=i-1}}return t}}function sw(e,t){if(e.type===so.IncrementalSnapshot&&e.data.source===sa.MouseMove&&e.data.positions&&e.data.positions.length){let r=e.data.positions[0].timeOffset,i=e.timestamp+r;return e.delay=i-t,i-t}return e.delay=e.timestamp-t,e.delay}function sv(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,s,n=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(e){s={error:e}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o}(y=tm||(tm={}))[y.NotStarted=0]="NotStarted",y[y.Running=1]="Running",y[y.Stopped=2]="Stopped";var sb={type:"xstate.init"};function sx(e){return void 0===e?[]:[].concat(e)}function sS(e){return{type:"xstate.assign",assignment:e}}function sE(e,t){return"string"==typeof(e="string"==typeof e&&t&&t[e]?t[e]:e)?{type:e}:"function"==typeof e?{type:e.name,exec:e}:e}function sC(e){return function(t){return e===t}}function sM(e){return"string"==typeof e?{type:e}:e}function sk(e,t){return{value:e,context:t,actions:[],changed:!1,matches:sC(e)}}function sN(e,t,r){var i=t,s=!1;return[e.filter(function(e){if("xstate.assign"===e.type){s=!0;var t=Object.assign({},i);return"function"==typeof e.assignment?t=e.assignment(i,r):Object.keys(e.assignment).forEach(function(s){t[s]="function"==typeof e.assignment[s]?e.assignment[s](i,r):e.assignment[s]}),i=t,!1}return!0}),i,s]}function sO(e,t){void 0===t&&(t={});var r=sv(sN(sx(e.states[e.initial].entry).map(function(e){return sE(e,t.actions)}),e.context,sb),2),i=r[0],s=r[1],n={config:e,_options:t,initialState:{value:e.initial,actions:i,context:s,matches:sC(e.initial)},transition:function(t,r){var i,s,o="string"==typeof t?{value:t,context:e.context}:t,a=o.value,l=o.context,u=sM(r),h=e.states[a];if(h.on){var c=sx(h.on[u.type]);try{for(var p=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(c),d=p.next();!d.done;d=p.next()){var f=d.value;if(void 0===f)return sk(a,l);var m="string"==typeof f?{target:f}:f,g=m.target,y=m.actions,w=void 0===y?[]:y,v=m.cond,b=void 0===v?function(){return!0}:v,x=void 0===g,S=null!=g?g:a,E=e.states[S];if(b(l,u)){var C=sv(sN((x?sx(w):[].concat(h.exit,w,E.entry).filter(function(e){return e})).map(function(e){return sE(e,n._options.actions)}),l,u),3),M=C[0],k=C[1],N=C[2],O=null!=g?g:a;return{value:O,context:k,actions:M,changed:g!==a||M.length>0||N,matches:sC(O)}}}}catch(e){i={error:e}}finally{try{d&&!d.done&&(s=p.return)&&s.call(p)}finally{if(i)throw i.error}}}return sk(a,l)}};return n}var sT=function(e,t){return e.actions.forEach(function(r){var i=r.exec;return i&&i(e.context,t)})};function sD(e){var t=e.initialState,r=tm.NotStarted,i=new Set,s={_machine:e,send:function(s){r===tm.Running&&(sT(t=e.transition(t,s),sM(s)),i.forEach(function(e){return e(t)}))},subscribe:function(e){return i.add(e),e(t),{unsubscribe:function(){return i.delete(e)}}},start:function(i){if(i){var n="object"==typeof i?i:{context:e.config.context,value:i};t={value:n.value,actions:[],context:n.context,matches:sC(n.value)}}return r=tm.Running,sT(t,sb),s},stop:function(){return r=tm.Stopped,i.clear(),s},get state(){return t},get status(){return r}};return s}let sR=e=>[`.${e} { background: currentColor }`,"noscript { display: none !important; }"],sA=new Map;function sI(e,t){let r=sA.get(e);return r||(r=new Map,sA.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}function sP(e,t,r){return async i=>{if(i&&"object"==typeof i&&"rr_type"in i){if(r&&(r.isUnchanged=!1),"ImageBitmap"===i.rr_type&&"args"in i){let s=await sP(e,t,r)(i.args);return await createImageBitmap.apply(null,s)}if("index"in i){if(r||null===t)return i;let{rr_type:e,index:s}=i;return sI(t,e)[s]}if("args"in i){let{rr_type:s,args:n}=i;return new window[s](...await Promise.all(n.map(sP(e,t,r))))}if("base64"in i)return sg(i.base64);else if("src"in i){let t=e.get(i.src);if(t)return t;{let t=new Image;return t.src=i.src,e.set(i.src,t),t}}else if("data"in i&&"Blob"===i.rr_type)return new Blob(await Promise.all(i.data.map(sP(e,t,r))),{type:i.type})}else if(Array.isArray(i))return await Promise.all(i.map(sP(e,t,r)));return i}}let s_=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject"];async function sL({mutation:e,target:t,type:r,imageMap:i,errorHandler:s}){try{let s=function(e,t){try{if(t===su.WebGL)return e.getContext("webgl")||e.getContext("experimental-webgl");return e.getContext("webgl2")}catch(e){return null}}(t,r);if(!s)return;if(e.setter){s[e.property]=e.args[0];return}let n=s[e.property],o=await Promise.all(e.args.map(sP(i,s))),a=n.apply(s,o);!function(e,t){if(!(null==t?void 0:t.constructor))return;let{name:r}=t.constructor;if(!s_.includes(r))return;let i=sI(e,r);i.includes(t)||i.push(t)}(s,a)}catch(t){s(e,t)}}async function sF({event:e,mutations:t,target:r,imageMap:i,errorHandler:s}){let n=r.getContext("2d");if(!n){s(t[0],Error("Canvas context is null"));return}let o=t.map(async e=>Promise.all(e.args.map(sP(i,n))));(await Promise.all(o)).forEach((r,o)=>{let a=t[o];try{if(a.setter){n[a.property]=a.args[0];return}let t=n[a.property];"drawImage"===a.property&&"string"==typeof a.args[0]?(i.get(e),t.apply(n,a.args)):t.apply(n,r)}catch(e){s(a,e)}})}async function s$({event:e,mutation:t,target:r,imageMap:i,canvasEventMap:s,errorHandler:n}){try{let o=s.get(e)||t,a="commands"in o?o.commands:[o];if([su.WebGL,su.WebGL2].includes(t.type)){for(let e=0;e<a.length;e++){let s=a[e];await sL({mutation:s,type:t.type,target:r,imageMap:i,errorHandler:n})}return}await sF({event:e,mutations:a,target:r,imageMap:i,errorHandler:n})}catch(e){n(t,e)}}class sU{constructor(e){ri(this,"mediaMap",new Map),ri(this,"warn"),ri(this,"service"),ri(this,"speedService"),ri(this,"emitter"),ri(this,"getCurrentTime"),ri(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(sc.Start,this.start.bind(this)),this.emitter.on(sc.SkipStart,this.start.bind(this)),this.emitter.on(sc.Pause,this.pause.bind(this)),this.emitter.on(sc.Finish,this.pause.bind(this)),this.speedService.subscribe(()=>{this.syncAllMediaElements()})}syncAllMediaElements(e={pause:!1}){this.mediaMap.forEach((t,r)=>{this.syncTargetWithState(r),e.pause&&r.pause()})}start(){this.syncAllMediaElements()}pause(){this.syncAllMediaElements({pause:!0})}seekTo({time:e,target:t,mediaState:r}){if(r.isPlaying){let i=(e-r.lastInteractionTimeOffset)/1e3*r.playbackRate,s="duration"in t&&t.duration;if(Number.isNaN(s)){this.waitForMetadata(t);return}let n=r.currentTimeAtLastInteraction+i;t.loop&&!1!==s&&(n%=s),t.currentTime=n}else t.pause(),t.currentTime=r.currentTimeAtLastInteraction}waitForMetadata(e){if(this.metadataCallbackMap.has(e)||!("addEventListener"in e))return;let t=()=>{this.metadataCallbackMap.delete(e);let t=this.mediaMap.get(e);t&&this.seekTo({time:this.getCurrentTime(),target:e,mediaState:t})};this.metadataCallbackMap.set(e,t),e.addEventListener("loadedmetadata",t,{once:!0})}getMediaStateFromMutation({target:e,timeOffset:t,mutation:r}){let i=this.mediaMap.get(e),{type:s,playbackRate:n,currentTime:o,muted:a,volume:l,loop:u}=r;return{isPlaying:s===sh.Play||s!==sh.Pause&&((null==i?void 0:i.isPlaying)||null!==e.getAttribute("autoplay")),currentTimeAtLastInteraction:o??(null==i?void 0:i.currentTimeAtLastInteraction)??0,lastInteractionTimeOffset:t,playbackRate:n??(null==i?void 0:i.playbackRate)??1,volume:l??(null==i?void 0:i.volume)??1,muted:a??(null==i?void 0:i.muted)??null===e.getAttribute("muted"),loop:u??(null==i?void 0:i.loop)??null===e.getAttribute("loop")}}syncTargetWithState(e){let t=this.mediaMap.get(e);if(!t)return;let{muted:r,loop:i,volume:s,isPlaying:n}=t,o=this.service.state.matches("paused"),a=t.playbackRate*this.speedService.state.context.timer.speed;try{this.seekTo({time:this.getCurrentTime(),target:e,mediaState:t}),e.volume!==s&&(e.volume=s),e.muted=r,e.loop=i,e.playbackRate!==a&&(e.playbackRate=a),n&&!o?e.play():e.pause()}catch(e){this.warn(`Failed to replay media interactions: ${e.message||e}`)}}addMediaElements(e,t,r){if(!["AUDIO","VIDEO"].includes(e.nodeName))return;let i=r.getMeta(e);if(!i||!("attributes"in i))return;let s=this.service.state.matches("paused"),n=i.attributes,o=!1;(o=n.rr_mediaState?"played"===n.rr_mediaState:null!==e.getAttribute("autoplay"))&&s&&e.pause();let a=1;"number"==typeof n.rr_mediaPlaybackRate&&(a=n.rr_mediaPlaybackRate);let l=!1;l="boolean"==typeof n.rr_mediaMuted?n.rr_mediaMuted:null!==e.getAttribute("muted");let u=!1;u="boolean"==typeof n.rr_mediaLoop?n.rr_mediaLoop:null!==e.getAttribute("loop");let h=1;"number"==typeof n.rr_mediaVolume&&(h=n.rr_mediaVolume);let c=0;"number"==typeof n.rr_mediaCurrentTime&&(c=n.rr_mediaCurrentTime),this.mediaMap.set(e,{isPlaying:o,currentTimeAtLastInteraction:c,lastInteractionTimeOffset:t,playbackRate:a,volume:h,muted:l,loop:u}),this.syncTargetWithState(e)}mediaMutation({target:e,timeOffset:t,mutation:r}){this.mediaMap.set(e,this.getMediaStateFromMutation({target:e,timeOffset:t,mutation:r})),this.syncTargetWithState(e)}isSupportedMediaElement(e){return["AUDIO","VIDEO"].includes(e.nodeName)}reset(){this.mediaMap.clear()}}function sB(e,t){if("DIALOG"!==e.nodeName||e instanceof ib)return;let r=e.open,i=r&&e.matches("dialog:modal"),s=e.getAttribute("rr_open_mode"),n="string"==typeof(null==t?void 0:t.attributes.open)||"string"==typeof e.getAttribute("open"),o="modal"===s;if(!r||i&&"non-modal"===s||!i&&o){if(!e.isConnected){console.warn("dialog is not attached to the dom",e);return}r&&e.close(),n&&(o?e.showModal():e.show())}}let sj="[replayer]",sz={duration:500,lineCap:"round",lineWidth:3,strokeStyle:"red"};function sV(e){return e.type==so.IncrementalSnapshot&&(e.data.source==sa.TouchMove||e.data.source==sa.MouseInteraction&&e.data.type==sl.TouchStart)}class sW{constructor(e,t){var r;if(ri(this,"wrapper"),ri(this,"iframe"),ri(this,"UNSAFE_replayCanvas",!1),ri(this,"service"),ri(this,"speedService"),ri(this,"config"),ri(this,"usingVirtualDom",!1),ri(this,"virtualDom",new iz),ri(this,"mouse"),ri(this,"mouseTail",null),ri(this,"tailPositions",[]),ri(this,"emitter",{all:r=r||new Map,on:function(e,t){var i=r.get(e);i?i.push(t):r.set(e,[t])},off:function(e,t){var i=r.get(e);i&&(t?i.splice(i.indexOf(t)>>>0,1):r.set(e,[]))},emit:function(e,t){var i=r.get(e);i&&i.slice().map(function(e){e(t)}),(i=r.get("*"))&&i.slice().map(function(r){r(e,t)})}}),ri(this,"nextUserInteractionEvent"),ri(this,"legacy_missingNodeRetryMap",{}),ri(this,"cache",rU()),ri(this,"imageMap",new Map),ri(this,"canvasEventMap",new Map),ri(this,"mirror",new rl),ri(this,"styleMirror",new sn),ri(this,"mediaManager"),ri(this,"firstFullSnapshot",null),ri(this,"newDocumentQueue",[]),ri(this,"mousePos",null),ri(this,"touchActive",null),ri(this,"lastMouseDownEvent",null),ri(this,"lastHoveredRootNode"),ri(this,"lastSelectionData",null),ri(this,"constructedStyleMutations",[]),ri(this,"adoptedStyleSheets",[]),ri(this,"handleResize",e=>{for(let t of(this.iframe.style.display="inherit",[this.mouseTail,this.iframe]))t&&(t.setAttribute("width",String(e.width)),t.setAttribute("height",String(e.height)))}),ri(this,"applyEventsSynchronously",e=>{for(let t of e){switch(t.type){case so.DomContentLoaded:case so.Load:case so.Custom:continue;case so.FullSnapshot:case so.Meta:case so.Plugin:case so.IncrementalSnapshot:}this.getCastFn(t,!0)()}}),ri(this,"getCastFn",(e,t=!1)=>{let r;switch(e.type){case so.DomContentLoaded:case so.Load:break;case so.Custom:r=()=>{this.emitter.emit(sc.CustomEvent,e)};break;case so.Meta:r=()=>this.emitter.emit(sc.Resize,{width:e.data.width,height:e.data.height});break;case so.FullSnapshot:r=()=>{var r;if(this.firstFullSnapshot){if(this.firstFullSnapshot===e){this.firstFullSnapshot=!0;return}}else this.firstFullSnapshot=!0;this.mediaManager.reset(),this.styleMirror.reset(),this.rebuildFullSnapshot(e,t),null==(r=this.iframe.contentWindow)||r.scrollTo(e.data.initialOffset)};break;case so.IncrementalSnapshot:r=()=>{if(this.applyIncremental(e,t),!t&&(e===this.nextUserInteractionEvent&&(this.nextUserInteractionEvent=null,this.backToNormal()),this.config.skipInactive&&!this.nextUserInteractionEvent)){for(let t of this.service.state.context.events)if(!(t.timestamp<=e.timestamp)&&this.isUserInteraction(t)){t.delay-e.delay>this.config.inactivePeriodThreshold*this.speedService.state.context.timer.speed&&(this.nextUserInteractionEvent=t);break}if(this.nextUserInteractionEvent){let t={speed:Math.min(Math.round((this.nextUserInteractionEvent.delay-e.delay)/5e3),this.config.maxSpeed)};this.speedService.send({type:"FAST_FORWARD",payload:t}),this.emitter.emit(sc.SkipStart,t)}}}}return()=>{for(let i of(r&&r(),this.config.plugins||[]))i.handler&&i.handler(e,t,{replayer:this});this.service.send({type:"CAST_EVENT",payload:{event:e}});let i=this.service.state.context.events.length-1;if(!this.config.liveMode&&e===this.service.state.context.events[i]){let t=50;e.type===so.IncrementalSnapshot&&e.data.source===sa.MouseMove&&e.data.positions.length&&(t+=Math.max(0,-e.data.positions[0].timeOffset)),setTimeout(()=>{i<this.service.state.context.events.length-1||(this.backToNormal(),this.service.send("END"),this.emitter.emit(sc.Finish))},t)}this.emitter.emit(sc.EventCast,e)}}),!(null==t?void 0: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:1e4,showWarning:!0,showDebug:!1,blockClass:"rr-block",liveMode:!1,insertStyleRules:[],triggerFocus:!0,UNSAFE_replayCanvas:!1,pauseAnimation:!0,mouseTail:sz,useVirtualDom:!0,logger:console};for(let e of(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(sc.Resize,this.handleResize),this.setupDom(),this.config.plugins||[]))e.getMirror&&e.getMirror({nodeMirror:this.mirror});this.emitter.on(sc.Flush,()=>{if(this.usingVirtualDom){let e={mirror:this.mirror,applyCanvas:(e,t,r)=>{s$({event:e,mutation:t,target:r,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})},applyInput:this.applyInput.bind(this),applyScroll:this.applyScroll.bind(this),applyStyleSheetMutation:(e,t)=>{e.source===sa.StyleSheetRule?this.applyStyleSheetRule(e,t):e.source===sa.StyleDeclaration&&this.applyStyleDeclaration(e,t)},afterAppend:(e,t)=>{for(let r of this.config.plugins||[])r.onBuild&&r.onBuild(e,{id:t,replayer:this})}};if(this.iframe.contentDocument)try{iF(this.iframe.contentDocument,this.virtualDom,e,this.virtualDom.mirror)}catch(e){console.warn(e)}if(this.virtualDom.destroyTree(),this.usingVirtualDom=!1,Object.keys(this.legacy_missingNodeRetryMap).length)for(let t in this.legacy_missingNodeRetryMap)try{let r=this.legacy_missingNodeRetryMap[t],i=iU(r.node,this.mirror,this.virtualDom.mirror);iF(i,r.node,e,this.virtualDom.mirror),r.node=i}catch(e){this.warn(e)}this.constructedStyleMutations.forEach(e=>{this.applyStyleSheetMutation(e)}),this.constructedStyleMutations=[],this.adoptedStyleSheets.forEach(e=>{this.applyAdoptedStyleSheet(e)}),this.adoptedStyleSheets=[]}if(this.mousePos&&(this.moveAndHover(this.mousePos.x,this.mousePos.y,this.mousePos.id,!0,this.mousePos.debugData),this.mousePos=null),!0===this.touchActive?this.mouse.classList.add("touch-active"):!1===this.touchActive&&this.mouse.classList.remove("touch-active"),this.touchActive=null,this.lastMouseDownEvent){let[e,t]=this.lastMouseDownEvent;e.dispatchEvent(t)}this.lastMouseDownEvent=null,this.lastSelectionData&&(this.applySelection(this.lastSelectionData),this.lastSelectionData=null)}),this.emitter.on(sc.PlayBack,()=>{this.firstFullSnapshot=null,this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset()});let s=new sy([],{speed:this.config.speed});this.service=function(e,{getCastFn:t,applyEventsSynchronously:r,emitter:i}){return sD(sO({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:sS({lastPlayedEvent:(e,t)=>"CAST_EVENT"===t.type?t.payload.event:e.lastPlayedEvent}),recordTimeOffset:sS((e,t)=>{let r=e.timeOffset;return"payload"in t&&"timeOffset"in t.payload&&(r=t.payload.timeOffset),{...e,timeOffset:r,baselineTime:e.events[0].timestamp+r}}),play(e){var s;let{timer:n,events:o,baselineTime:a,lastPlayedEvent:l}=e;for(let e of(n.clear(),o))sw(e,a);let u=function(e,t){for(let r=e.length-1;r>=0;r--){let i=e[r];if(i.type===so.Meta&&i.timestamp<=t)return e.slice(r)}return e}(o,a),h=null==l?void 0:l.timestamp;(null==l?void 0:l.type)===so.IncrementalSnapshot&&l.data.source===sa.MouseMove&&(h=l.timestamp+(null==(s=l.data.positions[0])?void 0:s.timeOffset)),a<(h||0)&&i.emit(sc.PlayBack);let c=[];for(let e of u)if(!h||!(h<a)||!(e.timestamp<=h)&&e!==l){if(e.timestamp<a)c.push(e);else{let r=t(e,!1);n.addAction({doAction:()=>{r()},delay:e.delay})}}r(c),i.emit(sc.Flush),n.start()},pause(e){e.timer.clear()},resetLastPlayedEvent:sS(e=>({...e,lastPlayedEvent:null})),startLive:sS({baselineTime:(e,t)=>(e.timer.start(),"TO_LIVE"===t.type&&t.payload.baselineTime)?t.payload.baselineTime:Date.now()}),addEvent:sS((e,r)=>{let{baselineTime:i,timer:s,events:n}=e;if("ADD_EVENT"===r.type){let{event:e}=r.payload;sw(e,i);let o=n.length-1;if(!n[o]||n[o].timestamp<=e.timestamp)n.push(e);else{let t=-1,r=0;for(;r<=o;){let t=Math.floor((r+o)/2);n[t].timestamp<=e.timestamp?r=t+1:o=t-1}-1===t&&(t=r),n.splice(t,0,e)}let a=e.timestamp<i,l=t(e,a);a?l():s.isActive()&&s.addAction({doAction:()=>{l()},delay:e.delay})}return{...e,events:n}})}}))}({events:e.map(e=>t&&t.unpackFn?t.unpackFn(e):e).sort((e,t)=>e.timestamp-t.timestamp),timer:s,timeOffset:0,baselineTime:0,lastPlayedEvent:null},{getCastFn:this.getCastFn,applyEventsSynchronously:this.applyEventsSynchronously,emitter:this.emitter}),this.service.start(),this.service.subscribe(e=>{this.emitter.emit(sc.StateChange,{player:e})}),this.speedService=sD(sO({id:"speed",context:{normalSpeed:-1,timer:s},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:(e,t)=>{"payload"in t&&e.timer.setSpeed(t.payload.speed)},recordSpeed:sS({normalSpeed:e=>e.timer.speed}),restoreSpeed:e=>{e.timer.setSpeed(e.normalSpeed)}}})),this.speedService.start(),this.speedService.subscribe(e=>{this.emitter.emit(sc.StateChange,{speed:e})}),this.mediaManager=new sU({warn:this.warn.bind(this),service:this.service,speedService:this.speedService,emitter:this.emitter,getCurrentTime:this.getCurrentTime.bind(this)});let n=this.service.state.context.events.find(e=>e.type===so.Meta),o=this.service.state.context.events.find(e=>e.type===so.FullSnapshot);if(n){let{width:e,height:t}=n.data;setTimeout(()=>{this.emitter.emit(sc.Resize,{width:e,height:t})},0)}o&&setTimeout(()=>{var e;this.firstFullSnapshot||(this.firstFullSnapshot=o,this.rebuildFullSnapshot(o),null==(e=this.iframe.contentWindow)||e.scrollTo(o.data.initialOffset))},1),this.service.state.context.events.find(sV)&&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(),void 0!==e.speed&&this.speedService.send({type:"SET_SPEED",payload:{speed:e.speed}}),void 0!==e.mouseTail&&(!1===e.mouseTail?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,r;this.service.state.matches("paused")||this.service.send({type:"PAUSE"}),this.service.send({type:"PLAY",payload:{timeOffset:e}}),null==(r=null==(t=this.iframe.contentDocument)?void 0:t.getElementsByTagName("html")[0])||r.classList.remove("rrweb-paused"),this.emitter.emit(sc.Start)}pause(e){var t,r;void 0===e&&this.service.state.matches("playing")&&this.service.send({type:"PAUSE"}),"number"==typeof e&&(this.play(e),this.service.send({type:"PAUSE"})),null==(r=null==(t=this.iframe.contentDocument)?void 0:t.getElementsByTagName("html")[0])||r.classList.add("rrweb-paused"),this.emitter.emit(sc.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(sc.Resume)}destroy(){this.pause(),this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset(),this.config.root.removeChild(this.wrapper),this.emitter.emit(sc.Destroy)}startLive(e){this.service.send({type:"TO_LIVE",payload:{baselineTime:e}})}addEvent(e){let t=this.config.unpackFn?this.config.unpackFn(e):e;sV(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=rU()}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),!1!==this.config.mouseTail&&(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=function(e){var t;if(!e.root.isConnected)throw Error(rB);let r=e.root.ownerDocument.createElement("iframe");for(let[t,i]of Object.entries(e.iframeAttributes||{}))"sandbox"!==t&&r.setAttribute(t,i);r.setAttribute("sandbox","allow-same-origin"),e.root.appendChild(r);let i=r.contentDocument;if(!i||!r.contentWindow)throw null==(t=r.parentNode)||t.removeChild(r),Error(rB);return rj.add(i),r}({root:this.wrapper}),this.UNSAFE_replayCanvas=!1),this.iframe.style.display="none",this.disableInteract(),this.iframe.contentWindow&&this.iframe.contentDocument&&(function(e=window,t=document){var r;if("scrollBehavior"in t.documentElement.style&&!0!==e.__forceSmoothScrollPolyfill__)return;let i=e.HTMLElement||e.Element,s={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:i.prototype.scroll||a,scrollIntoView:i.prototype.scrollIntoView},n=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now,o=(r=e.navigator.userAgent,RegExp("MSIE |Trident/|Edge/").test(r))?1:0;function a(e,t){this.scrollLeft=e,this.scrollTop=t}function l(e){if(null===e||"object"!=typeof e||void 0===e.behavior||"auto"===e.behavior||"instant"===e.behavior)return!0;if("object"==typeof e&&"smooth"===e.behavior)return!1;throw TypeError("behavior member of ScrollOptions "+e.behavior+" is not a valid value for enumeration ScrollBehavior.")}function u(e,t){return"Y"===t?e.clientHeight+o<e.scrollHeight:"X"===t?e.clientWidth+o<e.scrollWidth:void 0}function h(t,r){let i=e.getComputedStyle(t,null)["overflow"+r];return"auto"===i||"scroll"===i}function c(r,i,o){let l,u,h,c;let p=n();r===t.body?(l=e,u=e.scrollX||e.pageXOffset,h=e.scrollY||e.pageYOffset,c=s.scroll):(l=r,u=r.scrollLeft,h=r.scrollTop,c=a),function t(r){let i,s,o;let a=(n()-r.startTime)/468;i=.5*(1-Math.cos(Math.PI*(a=a>1?1:a))),s=r.startX+(r.x-r.startX)*i,o=r.startY+(r.y-r.startY)*i,r.method.call(r.scrollable,s,o),(s!==r.x||o!==r.y)&&e.requestAnimationFrame(t.bind(e,r))}({scrollable:l,method:c,startTime:p,startX:u,startY:h,x:i,y:o})}e.scroll=e.scrollTo=function(){if(void 0!==arguments[0]){if(!0===l(arguments[0])){s.scroll.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:e.scrollY||e.pageYOffset);return}c.call(e,t.body,void 0!==arguments[0].left?~~arguments[0].left:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:e.scrollY||e.pageYOffset)}},e.scrollBy=function(){if(void 0!==arguments[0]){if(l(arguments[0])){s.scrollBy.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0);return}c.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(void 0===arguments[0])return;if(!0===l(arguments[0])){if("number"==typeof arguments[0]&&void 0===arguments[1])throw SyntaxError("Value could not be converted");s.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop);return}let e=arguments[0].left,t=arguments[0].top;c.call(this,this,void 0===e?this.scrollLeft:~~e,void 0===t?this.scrollTop:~~t)},i.prototype.scrollBy=function(){if(void 0!==arguments[0]){if(!0===l(arguments[0])){s.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop);return}this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},i.prototype.scrollIntoView=function(){if(!0===l(arguments[0])){s.scrollIntoView.call(this,void 0===arguments[0]||arguments[0]);return}let r=function(e){for(;e!==t.body&&!1===function(e){let t=u(e,"Y")&&h(e,"Y"),r=u(e,"X")&&h(e,"X");return t||r}(e);)e=e.parentNode||e.host;return e}(this),i=r.getBoundingClientRect(),n=this.getBoundingClientRect();r!==t.body?(c.call(this,r,r.scrollLeft+n.left-i.left,r.scrollTop+n.top-i.top),"fixed"!==e.getComputedStyle(r).position&&e.scrollBy({left:i.left,top:i.top,behavior:"smooth"})):e.scrollBy({left:n.left,top:n.top,behavior:"smooth"})}}(this.iframe.contentWindow,this.iframe.contentDocument),function(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)}(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 r=[],i=new Set,s=(t,s)=>{if("DIALOG"===t.nodeName&&i.add(t),this.collectIframeAndAttachDocument(r,t),this.mediaManager.isSupportedMediaElement(t)){let{events:r}=this.service.state.context;this.mediaManager.addMediaElements(t,e.timestamp-r[0].timestamp,this.mirror)}for(let e of this.config.plugins||[])e.onBuild&&e.onBuild(t,{id:s,replayer:this})};for(let{mutationInQueue:t,builtNode:i}of(this.usingVirtualDom&&(this.virtualDom.destroyTree(),this.usingVirtualDom=!1),this.mirror.reset(),!function(e,t){!function(e){if(e.UNSAFE_allowUnprotectedRebuild)return;let t=e.doc.defaultView;if(!(!t||rj.has(e.doc)&&function(e){if(!e||"IFRAME"!==e.tagName||!("sandbox"in e))return!1;let t=Array.from(e.sandbox);return 1===t.length&&"allow-same-origin"===t[0]}(t.frameElement)))throw Error("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.")}(t);let{doc:r,onVisit:i,hackCss:s=!0,afterAppend:n,cache:o,mirror:a=new rl}=t;rz(e,{doc:r,mirror:a,skipChild:!1,hackCss:s,afterAppend:n,cache:o}),function(e,t){for(let r of e.getIds())e.has(r)&&t(e.getNode(r))}(a,e=>{i&&i(e),function(e,t){let r=t.getMeta(e);if((null==r?void 0:r.type)===ra.Element)for(let t in r.attributes){if(!(Object.prototype.hasOwnProperty.call(r.attributes,t)&&t.startsWith("rr_")))continue;let i=r.attributes[t];"rr_scrollLeft"===t&&(e.scrollLeft=i),"rr_scrollTop"===t&&(e.scrollTop=i)}}(e,a)})}(e.data.node,{doc:this.iframe.contentDocument,afterAppend:s,cache:this.cache,mirror:this.mirror,UNSAFE_allowUnprotectedRebuild:this.UNSAFE_replayCanvas}),s(this.iframe.contentDocument,e.data.node.id),r))this.attachDocumentToIframe(t,i),this.newDocumentQueue=this.newDocumentQueue.filter(e=>e!==t);let{documentElement:n,head:o}=this.iframe.contentDocument;this.insertStyleRules(n,o),i.forEach(e=>sB(e)),this.service.state.matches("playing")||this.iframe.contentDocument.getElementsByTagName("html")[0].classList.add("rrweb-paused"),this.emitter.emit(sc.FullsnapshotRebuilded,e),t||this.waitForStylesheetLoad(),this.config.UNSAFE_replayCanvas&&this.preloadAllImages()}insertStyleRules(e,t){var r;let i=sR(this.config.blockClass).concat(this.config.insertStyleRules);if(this.config.pauseAnimation&&i.push("html.rrweb-paused *, html.rrweb-paused *:before, html.rrweb-paused *:after { animation-play-state: paused !important; }"),i.length){if(this.usingVirtualDom){let r=this.virtualDom.createElement("style");this.virtualDom.mirror.add(r,i1(r,this.virtualDom.unserializedId)),e.insertBefore(r,t),r.rules.push({source:sa.StyleSheetRule,adds:i.map((e,t)=>({rule:e,index:t}))})}else{let s=document.createElement("style");e.insertBefore(s,t);for(let e=0;e<i.length;e++)null==(r=s.sheet)||r.insertRule(i[e],e)}}}attachDocumentToIframe(e,t){let r=this.usingVirtualDom?this.virtualDom.mirror:this.mirror,i=[],s=new Set,n=(e,n)=>{"DIALOG"===e.nodeName&&s.add(e),this.collectIframeAndAttachDocument(i,e);let o=r.getMeta(e);if((null==o?void 0:o.type)===sp.Element&&(null==o?void 0:o.tagName.toUpperCase())==="HTML"){let{documentElement:e,head:r}=t.contentDocument;this.insertStyleRules(e,r)}if(!this.usingVirtualDom)for(let t of this.config.plugins||[])t.onBuild&&t.onBuild(e,{id:n,replayer:this})};for(let{mutationInQueue:s,builtNode:o}of(rz(e.node,{doc:t.contentDocument,mirror:r,hackCss:!0,skipChild:!1,afterAppend:n,cache:this.cache}),n(t.contentDocument,e.node.id),i))this.attachDocumentToIframe(s,o),this.newDocumentQueue=this.newDocumentQueue.filter(e=>e!==s);s.forEach(e=>sB(e))}collectIframeAndAttachDocument(e,t){if(st(t,this.mirror)){let r=this.newDocumentQueue.find(e=>e.parentId===this.mirror.getId(t));r&&e.push({mutationInQueue:r,builtNode:t})}}waitForStylesheetLoad(){var e;let t=null==(e=this.iframe.contentDocument)?void 0:e.head;if(t){let e;let r=new Set,i=this.service.state,s=()=>{i=this.service.state};this.emitter.on(sc.Start,s),this.emitter.on(sc.Pause,s);let n=()=>{this.emitter.off(sc.Start,s),this.emitter.off(sc.Pause,s)};t.querySelectorAll('link[rel="stylesheet"]').forEach(t=>{t.sheet||(r.add(t),t.addEventListener("load",()=>{r.delete(t),0===r.size&&-1!==e&&(i.matches("playing")&&this.play(this.getCurrentTime()),this.emitter.emit(sc.LoadStylesheetEnd),e&&clearTimeout(e),n())}))}),r.size>0&&(this.service.send({type:"PAUSE"}),this.emitter.emit(sc.LoadStylesheetStart),e=setTimeout(()=>{i.matches("playing")&&this.play(this.getCurrentTime()),e=-1,n()},this.config.loadTimeout))}}async preloadAllImages(){let e=[];for(let t of this.service.state.context.events)t.type===so.IncrementalSnapshot&&t.data.source===sa.CanvasMutation&&(e.push(this.deserializeAndPreloadCanvasEvents(t.data,t)),("commands"in t.data?t.data.commands:[t.data]).forEach(e=>{this.preloadImages(e,t)}));return Promise.all(e)}preloadImages(e,t){if("drawImage"===e.property&&"string"==typeof e.args[0]&&!this.imageMap.has(t)){let e=document.createElement("canvas"),t=e.getContext("2d"),r=null==t?void 0:t.createImageData(e.width,e.height);null==t||t.putImageData(r,0,0)}}async deserializeAndPreloadCanvasEvents(e,t){if(!this.canvasEventMap.has(t)){let r={isUnchanged:!0};if("commands"in e){let i=await Promise.all(e.commands.map(async e=>{let t=await Promise.all(e.args.map(sP(this.imageMap,null,r)));return{...e,args:t}}));!1===r.isUnchanged&&this.canvasEventMap.set(t,{...e,commands:i})}else{let i=await Promise.all(e.args.map(sP(this.imageMap,null,r)));!1===r.isUnchanged&&this.canvasEventMap.set(t,{...e,args:i})}}}applyIncremental(e,t){var r,i,s;let{data:n}=e;switch(n.source){case sa.Mutation:try{this.applyMutation(n,t)}catch(e){this.warn(`Exception in mutation ${e.message||e}`,n)}break;case sa.Drag:case sa.TouchMove:case sa.MouseMove:if(t){let e=n.positions[n.positions.length-1];this.mousePos={x:e.x,y:e.y,id:e.id,debugData:n}}else n.positions.forEach(r=>{let i={doAction:()=>{this.moveAndHover(r.x,r.y,r.id,t,n)},delay:r.timeOffset+e.timestamp-this.service.state.context.baselineTime};this.timer.addAction(i)}),this.timer.addAction({doAction(){},delay:e.delay-(null==(r=n.positions[0])?void 0:r.timeOffset)});break;case sa.MouseInteraction:{if(-1===n.id)break;let e=new Event(sl[n.type].toLowerCase()),r=this.mirror.getNode(n.id);if(!r)return this.debugNodeNotFound(n,n.id);this.emitter.emit(sc.MouseInteraction,{type:n.type,target:r});let{triggerFocus:i}=this.config;switch(n.type){case sl.Blur:"blur"in r&&r.blur();break;case sl.Focus:i&&r.focus&&r.focus({preventScroll:!0});break;case sl.Click:case sl.TouchStart:case sl.TouchEnd:case sl.MouseDown:case sl.MouseUp:t?(n.type===sl.TouchStart?this.touchActive=!0:n.type===sl.TouchEnd&&(this.touchActive=!1),n.type===sl.MouseDown?this.lastMouseDownEvent=[r,e]:n.type===sl.MouseUp&&(this.lastMouseDownEvent=null),this.mousePos={x:n.x||0,y:n.y||0,id:n.id,debugData:n}):(n.type===sl.TouchStart&&(this.tailPositions.length=0),this.moveAndHover(n.x||0,n.y||0,n.id,t,n),n.type===sl.Click?(this.mouse.classList.remove("active"),this.mouse.offsetWidth,this.mouse.classList.add("active")):n.type===sl.TouchStart?(this.mouse.offsetWidth,this.mouse.classList.add("touch-active")):n.type===sl.TouchEnd?this.mouse.classList.remove("touch-active"):r.dispatchEvent(e));break;case sl.TouchCancel:t?this.touchActive=!1:this.mouse.classList.remove("touch-active");break;default:r.dispatchEvent(e)}break}case sa.Scroll:if(-1===n.id)break;if(this.usingVirtualDom){let e=this.virtualDom.mirror.getNode(n.id);if(!e)return this.debugNodeNotFound(n,n.id);e.scrollData=n;break}this.applyScroll(n,t);break;case sa.ViewportResize:this.emitter.emit(sc.Resize,{width:n.width,height:n.height});break;case sa.Input:if(-1===n.id)break;if(this.usingVirtualDom){let e=this.virtualDom.mirror.getNode(n.id);if(!e)return this.debugNodeNotFound(n,n.id);e.inputData=n;break}this.applyInput(n);break;case sa.MediaInteraction:{let t=this.usingVirtualDom?this.virtualDom.mirror.getNode(n.id):this.mirror.getNode(n.id);if(!t)return this.debugNodeNotFound(n,n.id);let{events:r}=this.service.state.context;this.mediaManager.mediaMutation({target:t,timeOffset:e.timestamp-r[0].timestamp,mutation:n});break}case sa.StyleSheetRule:case sa.StyleDeclaration:this.usingVirtualDom?n.styleId?this.constructedStyleMutations.push(n):n.id&&(null==(i=this.virtualDom.mirror.getNode(n.id))||i.rules.push(n)):this.applyStyleSheetMutation(n);break;case sa.CanvasMutation:if(!this.config.UNSAFE_replayCanvas)return;if(this.usingVirtualDom){let t=this.virtualDom.mirror.getNode(n.id);if(!t)return this.debugNodeNotFound(n,n.id);t.canvasMutations.push({event:e,mutation:n})}else{let t=this.mirror.getNode(n.id);if(!t)return this.debugNodeNotFound(n,n.id);s$({event:e,mutation:n,target:t,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})}break;case sa.Font:try{let e=new FontFace(n.family,n.buffer?new Uint8Array(JSON.parse(n.fontSource)):n.fontSource,n.descriptors);null==(s=this.iframe.contentDocument)||s.fonts.add(e)}catch(e){this.warn(e)}break;case sa.Selection:if(t){this.lastSelectionData=n;break}this.applySelection(n);break;case sa.AdoptedStyleSheet:this.usingVirtualDom?this.adoptedStyleSheets.push(n):this.applyAdoptedStyleSheet(n)}}applyMutation(e,t){if(this.config.useVirtualDom&&!this.usingVirtualDom&&t&&(this.usingVirtualDom=!0,!function(e,t=new rJ,r=new iz){!function e(i,s){let n=iK(i,r,t,s);if(null!==n){if((null==s?void 0:s.nodeName)!=="IFRAME"&&i.nodeType!==iI.DOCUMENT_FRAGMENT_NODE&&(null==s||s.appendChild(n),n.parentNode=s,n.parentElement=s),"IFRAME"===i.nodeName){let t=i.contentDocument;t&&e(t,n)}else(i.nodeType===iI.DOCUMENT_NODE||i.nodeType===iI.ELEMENT_NODE||i.nodeType===iI.DOCUMENT_FRAGMENT_NODE)&&(i.nodeType===iI.ELEMENT_NODE&&i.shadowRoot&&e(i.shadowRoot,n),i.childNodes.forEach(t=>e(t,n)))}}(e,null)}(this.iframe.contentDocument,this.mirror,this.virtualDom),Object.keys(this.legacy_missingNodeRetryMap).length))for(let e in this.legacy_missingNodeRetryMap)try{let t=this.legacy_missingNodeRetryMap[e],r=iK(t.node,this.virtualDom,this.mirror);r&&(t.node=r)}catch(e){this.warn(e)}let r=this.usingVirtualDom?this.virtualDom.mirror:this.mirror;e.removes=e.removes.filter(t=>!!r.getNode(t.id)||(this.warnNodeNotFound(e,t.id),!1)),e.removes.forEach(t=>{var i;let s=r.getNode(t.id);if(!s)return;let n=r.getNode(t.parentId);if(!n)return this.warnNodeNotFound(e,t.parentId);if(t.isShadow&&sr(n)&&(n=n.shadowRoot),r.removeNodeFromMap(s),n)try{n.removeChild(s),this.usingVirtualDom&&"#text"===s.nodeName&&"STYLE"===n.nodeName&&(null==(i=n.rules)?void 0:i.length)>0&&(n.rules=[])}catch(t){if(t instanceof DOMException)this.warn("parent could not remove child in mutation",n,s,e);else throw t}});let i={...this.legacy_missingNodeRetryMap},s=[],n=e=>{let t=null;return e.nextId&&(t=r.getNode(e.nextId)),null!==e.nextId&&void 0!==e.nextId&&-1!==e.nextId&&!t},o=e=>{var t,o;if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");let a=r.getNode(e.parentId);if(!a)return e.node.type===sp.Document?this.newDocumentQueue.push(e):s.push(e);e.node.isShadow&&(sr(a)||a.attachShadow({mode:"open"}),a=a.shadowRoot);let l=null,u=null;if(e.previousId&&(l=r.getNode(e.previousId)),e.nextId&&(u=r.getNode(e.nextId)),n(e))return s.push(e);if(e.node.rootId&&!r.getNode(e.node.rootId))return;let h=e.node.rootId?r.getNode(e.node.rootId):this.usingVirtualDom?this.virtualDom:this.iframe.contentDocument;if(st(a,r)){this.attachDocumentToIframe(e,a);return}let c=(e,t)=>{if(!this.usingVirtualDom)for(let r of(sB(e),this.config.plugins||[]))r.onBuild&&r.onBuild(e,{id:t,replayer:this})},p=rz(e.node,{doc:h,mirror:r,skipChild:!0,hackCss:!0,cache:this.cache,afterAppend:c});if(-1===e.previousId||-1===e.nextId){i[e.node.id]={node:p,mutation:e};return}let d=r.getMeta(a);if(d&&d.type===sp.Element&&e.node.type===sp.Text){let e=Array.isArray(a.childNodes)?a.childNodes:Array.from(a.childNodes);if("textarea"===d.tagName)for(let t of e)t.nodeType===a.TEXT_NODE&&a.removeChild(t);else if("style"===d.tagName&&1===e.length)for(let t of e)t.nodeType!==a.TEXT_NODE||r.hasNode(t)||(p.textContent=t.textContent,a.removeChild(t))}else if((null==d?void 0:d.type)===sp.Document){let r=a;e.node.type===sp.DocumentType&&(null==(t=r.childNodes[0])?void 0:t.nodeType)===Node.DOCUMENT_TYPE_NODE&&r.removeChild(r.childNodes[0]),"HTML"===p.nodeName&&r.documentElement&&r.removeChild(r.documentElement)}if(l&&l.nextSibling&&l.nextSibling.parentNode?a.insertBefore(p,l.nextSibling):u&&u.parentNode?a.contains(u)?a.insertBefore(p,u):a.insertBefore(p,null):a.appendChild(p),c(p,e.node.id),this.usingVirtualDom&&"#text"===p.nodeName&&"STYLE"===a.nodeName&&(null==(o=a.rules)?void 0:o.length)>0&&(a.rules=[]),st(p,this.mirror)){let e=this.mirror.getId(p),t=this.newDocumentQueue.find(t=>t.parentId===e);t&&(this.attachDocumentToIframe(t,p),this.newDocumentQueue=this.newDocumentQueue.filter(e=>e!==t))}(e.previousId||e.nextId)&&this.legacy_resolveMissingNode(i,a,p,e)};e.adds.forEach(e=>{o(e)});let a=Date.now();for(;s.length;){let e=function(e){let t={},r=(e,r)=>{let i={value:e,parent:r,children:[]};return t[e.node.id]=i,i},i=[];for(let s of e){let{nextId:e,parentId:n}=s;if(e&&e in t){let n=t[e];if(n.parent){let e=n.parent.children.indexOf(n);n.parent.children.splice(e,0,r(s,n.parent))}else{let e=i.indexOf(n);i.splice(e,0,r(s,null))}continue}if(n in t){let e=t[n];e.children.push(r(s,e));continue}i.push(r(s,null))}return i}(s);if(s.length=0,Date.now()-a>500){this.warn("Timeout in the loop, please check the resolve tree data:",e);break}for(let t of e)r.getNode(t.value.parentId)?function e(t,r){r(t.value);for(let i=t.children.length-1;i>=0;i--)e(t.children[i],r)}(t,e=>{o(e)}):this.debug("Drop resolve tree since there is no parent for the root node.",t)}Object.keys(i).length&&Object.assign(this.legacy_missingNodeRetryMap,i),(function(e){let t=new Set,r=[];for(let i=e.length;i--;){let s=e[i];t.has(s.id)||(r.push(s),t.add(s.id))}return r})(e.texts).forEach(t=>{var i;let s=r.getNode(t.id);if(!s){if(e.removes.find(e=>e.id===t.id))return;return this.warnNodeNotFound(e,t.id)}let n=s.parentElement;if(t.value&&n&&"STYLE"===n.tagName?s.textContent=r$(t.value,this.cache):s.textContent=t.value,this.usingVirtualDom){let e=s.parentNode;(null==(i=null==e?void 0:e.rules)?void 0:i.length)>0&&(e.rules=[])}}),e.attributes.forEach(t=>{var i;let s=r.getNode(t.id);if(!s){if(e.removes.find(e=>e.id===t.id))return;return this.warnNodeNotFound(e,t.id)}for(let e in t.attributes)if("string"==typeof e){let n=t.attributes[e];if(null===n)s.removeAttribute(e),"open"===e&&function(e,t){if("DIALOG"===e.nodeName&&!(e instanceof ib)){if(!e.isConnected){console.warn("dialog is not attached to the dom",e);return}null===t.attributes.open&&(e.removeAttribute("open"),e.removeAttribute("rr_open_mode"))}}(s,t);else if("string"==typeof n)try{if("_cssText"===e&&("LINK"===s.nodeName||"STYLE"===s.nodeName))try{let e=r.getMeta(s),i=rz({...e,attributes:{...e.attributes,...t.attributes}},{doc:s.ownerDocument,mirror:r,skipChild:!0,hackCss:!0,cache:this.cache});Object.assign(e.attributes,t.attributes);let n=s.nextSibling,o=s.parentNode;if(i&&o){o.removeChild(s),o.insertBefore(i,n),r.replace(t.id,i);break}}catch(e){}if("value"===e&&"TEXTAREA"===s.nodeName){s.childNodes.forEach(e=>s.removeChild(e));let e=null==(i=s.ownerDocument)?void 0:i.createTextNode(n);e&&s.appendChild(e)}else s.setAttribute(e,n);"rr_open_mode"===e&&"DIALOG"===s.nodeName&&sB(s,t)}catch(e){this.warn("An error occurred may due to the checkout feature.",e)}else if("style"===e)for(let e in n)if(!1===n[e])s.style.removeProperty(e);else if(n[e]instanceof Array){let t=n[e];s.style.setProperty(e,t[0],t[1])}else{let t=n[e];s.style.setProperty(e,t)}}})}applyScroll(e,t){var r,i;let s=this.mirror.getNode(e.id);if(!s)return this.debugNodeNotFound(e,e.id);let n=this.mirror.getMeta(s);if(s===this.iframe.contentDocument)null==(r=this.iframe.contentWindow)||r.scrollTo({top:e.y,left:e.x,behavior:t?"auto":"smooth"});else if((null==n?void 0:n.type)===sp.Document)null==(i=s.defaultView)||i.scrollTo({top:e.y,left:e.x,behavior:t?"auto":"smooth"});else try{s.scrollTo({top:e.y,left:e.x,behavior:t?"auto":"smooth"})}catch(e){}}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(e){}}applySelection(e){try{let t=new Set,r=e.ranges.map(({start:e,startOffset:r,end:i,endOffset:s})=>{let n=this.mirror.getNode(e),o=this.mirror.getNode(i);if(!n||!o)return;let a=new Range;a.setStart(n,r),a.setEnd(o,s);let l=n.ownerDocument,u=null==l?void 0:l.getSelection();return u&&t.add(u),{range:a,selection:u}});t.forEach(e=>e.removeAllRanges()),r.forEach(e=>{var t;return e&&(null==(t=e.selection)?void 0:t.addRange(e.range))})}catch(e){}}applyStyleSheetMutation(e){var t;let r=null;e.styleId?r=this.styleMirror.getStyle(e.styleId):e.id&&(r=(null==(t=this.mirror.getNode(e.id))?void 0:t.sheet)||null),r&&(e.source===sa.StyleSheetRule?this.applyStyleSheetRule(e,r):e.source===sa.StyleDeclaration&&this.applyStyleDeclaration(e,r))}applyStyleSheetRule(e,t){var r,i,s,n;if(null==(r=e.adds)||r.forEach(({rule:e,index:r})=>{try{if(Array.isArray(r)){let{positions:i,index:s}=ss(r),n=si(t.cssRules,i);null==n||n.insertRule(e,s)}else{let i=void 0===r?void 0:Math.min(r,t.cssRules.length);null==t||t.insertRule(e,i)}}catch(e){}}),null==(i=e.removes)||i.forEach(({index:e})=>{try{if(Array.isArray(e)){let{positions:r,index:i}=ss(e),s=si(t.cssRules,r);null==s||s.deleteRule(i||0)}else null==t||t.deleteRule(e)}catch(e){}}),"string"==typeof e.replace)try{null==(s=t.replace)||s.call(t,e.replace)}catch(e){}if("string"==typeof e.replaceSync)try{null==(n=t.replaceSync)||n.call(t,e.replaceSync)}catch(e){}}applyStyleDeclaration(e,t){if(e.set){let r=si(t.rules,e.index);(null==r?void 0:r.style)&&r.style.setProperty(e.set.property,e.set.value,e.set.priority)}if(e.remove){let r=si(t.rules,e.index);(null==r?void 0:r.style)&&r.style.removeProperty(e.remove.property)}}applyAdoptedStyleSheet(e){var t;let r=this.mirror.getNode(e.id);if(!r)return;null==(t=e.styles)||t.forEach(e=>{var t;let i=null,s=null;if(sr(r)?s=(null==(t=r.ownerDocument)?void 0:t.defaultView)||null:"#document"===r.nodeName&&(s=r.defaultView),s)try{i=new s.CSSStyleSheet,this.styleMirror.add(i,e.styleId),this.applyStyleSheetRule({source:sa.StyleSheetRule,adds:e.rules},i)}catch(e){}});let i=0,s=(e,t)=>{let r=t.map(e=>this.styleMirror.getStyle(e)).filter(e=>null!==e);sr(e)?e.shadowRoot.adoptedStyleSheets=r:"#document"===e.nodeName&&(e.adoptedStyleSheets=r),r.length!==t.length&&i<10&&(setTimeout(()=>s(e,t),0+100*i),i++)};s(r,e.styleIds)}legacy_resolveMissingNode(e,t,r,i){let{previousId:s,nextId:n}=i,o=s&&e[s],a=n&&e[n];if(o){let{node:i,mutation:s}=o;t.insertBefore(i,r),delete e[s.node.id],delete this.legacy_missingNodeRetryMap[s.node.id],(s.previousId||s.nextId)&&this.legacy_resolveMissingNode(e,t,i,s)}if(a){let{node:i,mutation:s}=a;t.insertBefore(i,r.nextSibling),delete e[s.node.id],delete this.legacy_missingNodeRetryMap[s.node.id],(s.previousId||s.nextId)&&this.legacy_resolveMissingNode(e,t,i,s)}}moveAndHover(e,t,r,i,s){let n=this.mirror.getNode(r);if(!n)return this.debugNodeNotFound(s,r);let o=function e(t,r){var i,s;let n=null==(s=null==(i=t.ownerDocument)?void 0:i.defaultView)?void 0:s.frameElement;if(!n||n===r)return{x:0,y:0,relativeScale:1,absoluteScale:1};let o=n.getBoundingClientRect(),a=e(n,r),l=o.height/n.clientHeight;return{x:o.x*a.relativeScale+a.x,y:o.y*a.relativeScale+a.y,relativeScale:l,absoluteScale:a.absoluteScale*l}}(n,this.iframe),a=e*o.absoluteScale+o.x,l=t*o.absoluteScale+o.y;this.mouse.style.left=`${a}px`,this.mouse.style.top=`${l}px`,i||this.drawMouseTail({x:a,y:l}),this.hoverElements(n)}drawMouseTail(e){if(!this.mouseTail)return;let{lineCap:t,lineWidth:r,strokeStyle:i,duration:s}=!0===this.config.mouseTail?sz:Object.assign({},sz,this.config.mouseTail),n=()=>{if(!this.mouseTail)return;let e=this.mouseTail.getContext("2d");e&&this.tailPositions.length&&(e.clearRect(0,0,this.mouseTail.width,this.mouseTail.height),e.beginPath(),e.lineWidth=r,e.lineCap=t,e.strokeStyle=i,e.moveTo(this.tailPositions[0].x,this.tailPositions[0].y),this.tailPositions.forEach(t=>e.lineTo(t.x,t.y)),e.stroke())};this.tailPositions.push(e),n(),setTimeout(()=>{this.tailPositions=this.tailPositions.filter(t=>t!==e),n()},s/this.speedService.state.context.timer.speed)}hoverElements(e){var t;null==(t=this.lastHoveredRootNode||this.iframe.contentDocument)||t.querySelectorAll(".\\:hover").forEach(e=>{e.classList.remove(":hover")}),this.lastHoveredRootNode=e.getRootNode();let r=e;for(;r;)r.classList&&r.classList.add(":hover"),r=r.parentElement}isUserInteraction(e){return e.type===so.IncrementalSnapshot&&e.data.source>sa.Mutation&&e.data.source<=sa.Input}backToNormal(){this.nextUserInteractionEvent=null,this.speedService.state.matches("normal")||(this.speedService.send({type:"BACK_TO_NORMAL"}),this.emitter.emit(sc.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(sj,...e)}debug(...e){this.config.showDebug&&this.config.logger.log(sj,...e)}}var sG=Uint8Array,sH=Uint16Array,sY=Uint32Array,sq=new sG([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),sJ=new sG([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),sX=new sG([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),sQ=function(e,t){for(var r=new sH(31),i=0;i<31;++i)r[i]=t+=1<<e[i-1];for(var s=new sY(r[30]),i=1;i<30;++i)for(var n=r[i];n<r[i+1];++n)s[n]=n-r[i]<<5|i;return[r,s]},sZ=sQ(sq,2),sK=sZ[0],s0=sZ[1];sK[28]=258,s0[258]=28;for(var s1=sQ(sJ,0)[0],s2=new sH(32768),s4=0;s4<32768;++s4){var s3=(43690&s4)>>>1|(21845&s4)<<1;s3=(61680&(s3=(52428&s3)>>>2|(13107&s3)<<2))>>>4|(3855&s3)<<4,s2[s4]=((65280&s3)>>>8|(255&s3)<<8)>>>1}for(var s8=function(e,t,r){for(var i,s=e.length,n=0,o=new sH(t);n<s;++n)++o[e[n]-1];var a=new sH(t);for(n=0;n<t;++n)a[n]=a[n-1]+o[n-1]<<1;if(r){i=new sH(1<<t);var l=15-t;for(n=0;n<s;++n)if(e[n])for(var u=n<<4|e[n],h=t-e[n],c=a[e[n]-1]++<<h,p=c|(1<<h)-1;c<=p;++c)i[s2[c]>>>l]=u}else for(n=0,i=new sH(s);n<s;++n)i[n]=s2[a[e[n]-1]++]>>>15-e[n];return i},s6=new sG(288),s4=0;s4<144;++s4)s6[s4]=8;for(var s4=144;s4<256;++s4)s6[s4]=9;for(var s4=256;s4<280;++s4)s6[s4]=7;for(var s4=280;s4<288;++s4)s6[s4]=8;for(var s9=new sG(32),s4=0;s4<32;++s4)s9[s4]=5;var s5=s8(s6,9,1),s7=s8(s9,5,1),ne=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},nt=function(e,t,r){var i=t/8>>0;return(e[i]|e[i+1]<<8)>>>(7&t)&r},nr=function(e,t){var r=t/8>>0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>>(7&t)},ni=function(e,t,r){(null==r||r>e.length)&&(r=e.length);var i=new(e instanceof sH?sH:e instanceof sY?sY:sG)(r-t);return i.set(e.subarray(t,r)),i},ns=function(e,t,r){var i=e.length,s=!t||r,n=!r||r.i;r||(r={}),t||(t=new sG(3*i));var o=function(e){var r=t.length;if(e>r){var i=new sG(Math.max(2*r,e));i.set(t),t=i}},a=r.f||0,l=r.p||0,u=r.b||0,h=r.l,c=r.d,p=r.m,d=r.n,f=8*i;do{if(!h){r.f=a=nt(e,l,1);var m=nt(e,l+1,3);if(l+=3,m){if(1==m)h=s5,c=s7,p=9,d=5;else if(2==m){var g=nt(e,l,31)+257,y=nt(e,l+10,15)+4,w=g+nt(e,l+5,31)+1;l+=14;for(var v=new sG(w),b=new sG(19),x=0;x<y;++x)b[sX[x]]=nt(e,l+3*x,7);l+=3*y;var S=ne(b),E=(1<<S)-1;if(!n&&l+w*(S+7)>f)break;for(var C=s8(b,S,1),x=0;x<w;){var M=C[nt(e,l,E)];l+=15&M;var k=M>>>4;if(k<16)v[x++]=k;else{var N=0,O=0;for(16==k?(O=3+nt(e,l,3),l+=2,N=v[x-1]):17==k?(O=3+nt(e,l,7),l+=3):18==k&&(O=11+nt(e,l,127),l+=7);O--;)v[x++]=N}}var T=v.subarray(0,g),D=v.subarray(g);p=ne(T),d=ne(D),h=s8(T,p,1),c=s8(D,d,1)}else throw"invalid block type"}else{var R,k=((R=l)/8>>0)+(7&R&&1)+4,A=e[k-4]|e[k-3]<<8,I=k+A;if(I>i){if(n)throw"unexpected EOF";break}s&&o(u+A),t.set(e.subarray(k,I),u),r.b=u+=A,r.p=l=8*I;continue}if(l>f)throw"unexpected EOF"}s&&o(u+131072);for(var P=(1<<p)-1,_=(1<<d)-1,L=p+d+18;n||l+L<f;){var N=h[nr(e,l)&P],F=N>>>4;if((l+=15&N)>f)throw"unexpected EOF";if(!N)throw"invalid length/literal";if(F<256)t[u++]=F;else if(256==F){h=null;break}else{var $=F-254;if(F>264){var x=F-257,U=sq[x];$=nt(e,l,(1<<U)-1)+sK[x],l+=U}var B=c[nr(e,l)&_],j=B>>>4;if(!B)throw"invalid distance";l+=15&B;var D=s1[j];if(j>3){var U=sJ[j];D+=nr(e,l)&(1<<U)-1,l+=U}if(l>f)throw"unexpected EOF";s&&o(u+131072);for(var z=u+$;u<z;u+=4)t[u]=t[u-D],t[u+1]=t[u+1-D],t[u+2]=t[u+2-D],t[u+3]=t[u+3-D];u=z}}r.l=h,r.p=l,r.b=u,h&&(a=1,r.m=p,r.d=c,r.n=d)}while(!a);return u==t.length?t:ni(t,0,u)},nn=function(e){if((15&e[0])!=8||e[0]>>>4>7||(e[0]<<8|e[1])%31)throw"invalid zlib data";if(32&e[1])throw"invalid zlib data: preset dictionaries not supported"};let no=e=>{if("string"!=typeof e)return e;try{let t=JSON.parse(e);if(t.timestamp)return t}catch(e){}try{var t;let r=JSON.parse(function(e,t){var r="";if("undefined"!=typeof TextDecoder)return new TextDecoder().decode(e);for(var i=0;i<e.length;){var s=e[i++];s<128?r+=String.fromCharCode(s):s<224?r+=String.fromCharCode((31&s)<<6|63&e[i++]):s<240?r+=String.fromCharCode((15&s)<<12|(63&e[i++])<<6|63&e[i++]):r+=String.fromCharCode(55296|(s=((15&s)<<18|(63&e[i++])<<12|(63&e[i++])<<6|63&e[i++])-65536)>>10,56320|1023&s)}return r}((t=function(e,t){for(var r=e.length,i=new sG(e.length+(e.length>>>1)),s=0,n=0;n<r;++n){if(s+5>i.length){var o,a=new sG(s+8+(r-n<<1));a.set(i),i=a}o=e.charCodeAt(n),i[s++]=o}return ni(i,0,s)}(e,0),ns((nn(t),t.subarray(2,-4)),void 0))));if("v1"===r.v)return r;throw Error(`These events were packed with packer ${r.v} which is incompatible with current packer v1.`)}catch(e){throw console.error(e),Error("Unknown data format.")}};var na=((w=na||{})[w.DomContentLoaded=0]="DomContentLoaded",w[w.Load=1]="Load",w[w.FullSnapshot=2]="FullSnapshot",w[w.IncrementalSnapshot=3]="IncrementalSnapshot",w[w.Meta=4]="Meta",w[w.Custom=5]="Custom",w[w.Plugin=6]="Plugin",w[w.Asset=7]="Asset",w),nl=((v=nl||{})[v.Mutation=0]="Mutation",v[v.MouseMove=1]="MouseMove",v[v.MouseInteraction=2]="MouseInteraction",v[v.Scroll=3]="Scroll",v[v.ViewportResize=4]="ViewportResize",v[v.Input=5]="Input",v[v.TouchMove=6]="TouchMove",v[v.MediaInteraction=7]="MediaInteraction",v[v.StyleSheetRule=8]="StyleSheetRule",v[v.CanvasMutation=9]="CanvasMutation",v[v.Font=10]="Font",v[v.Log=11]="Log",v[v.Drag=12]="Drag",v[v.StyleDeclaration=13]="StyleDeclaration",v[v.Selection=14]="Selection",v[v.AdoptedStyleSheet=15]="AdoptedStyleSheet",v[v.CustomElement=16]="CustomElement",v);function nu(e){let t="";return Object.keys(e).forEach(r=>{t+=`${r}: ${e[r]};`}),t}function nh(e,t=2){let r=String(e),i=Math.pow(10,t-1);if(e<i)for(;String(i).length>r.length;)r=`0${e}`;return r}function nc(e){if(e<=0)return"00:00";let t=Math.floor(e/36e5),r=Math.floor((e%=36e5)/6e4),i=Math.floor((e%=6e4)/1e3);return t?`${nh(t)}:${nh(r)}:${nh(i)}`:`${nh(r)}:${nh(i)}`}function np(){let e=!1;return["fullscreen","webkitIsFullScreen","mozFullScreen","msFullscreenElement"].forEach(t=>{t in document&&(e=e||!!document[t])}),e}function nd(e){return({"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Undefined]":"undefined","[object Null]":"null","[object Object]":"object"})[Object.prototype.toString.call(e)]}function nf(e){let t,r,i,s,n,o,a,l,u;return{c(){t=tI("div"),r=tI("input"),i=tL(),s=tI("label"),n=tL(),o=tI("span"),a=t_(e[3]),t$(r,"type","checkbox"),t$(r,"id",e[2]),r.disabled=e[1],t$(r,"class","svelte-a6h7w7"),t$(s,"for",e[2]),t$(s,"class","svelte-a6h7w7"),t$(o,"class","label svelte-a6h7w7"),t$(t,"class","switch svelte-a6h7w7"),tj(t,"disabled",e[1])},m(h,c){tD(h,t,c),tT(t,r),r.checked=e[0],tT(t,i),tT(t,s),tT(t,n),tT(t,o),tT(o,a),l||(u=tF(r,"change",e[4]),l=!0)},p(e,[i]){4&i&&t$(r,"id",e[2]),2&i&&(r.disabled=e[1]),1&i&&(r.checked=e[0]),4&i&&t$(s,"for",e[2]),8&i&&tU(a,e[3]),2&i&&tj(t,"disabled",e[1])},i:tx,o:tx,d(e){e&&tR(t),l=!1,u()}}}function nm(e,t,r){let{disabled:i}=t,{checked:s}=t,{id:n}=t,{label:o}=t;return e.$$set=e=>{"disabled"in e&&r(1,i=e.disabled),"checked"in e&&r(0,s=e.checked),"id"in e&&r(2,n=e.id),"label"in e&&r(3,o=e.label)},[s,i,n,o,function(){r(0,s=this.checked)}]}class ng extends re{constructor(e){super(),t7(this,e,nm,nf,tN,{disabled:1,checked:0,id:2,label:3})}}function ny(e,t,r){let i=e.slice();return i[38]=t[r],i}function nw(e,t,r){let i=e.slice();return i[41]=t[r],i}function nv(e,t,r){let i=e.slice();return i[44]=t[r],i}function nb(e){let t,r,i,s,n,o,a,l,u,h,c,p,d,f,m,g,y,w,v,b,x,S,E,C,M,k;let N=nc(e[6])+"",O=nc(e[8].totalTime)+"",T=t6(e[13]),D=[];for(let t=0;t<T.length;t+=1)D[t]=nx(nv(e,T,t));let R=t6(e[9]),A=[];for(let t=0;t<R.length;t+=1)A[t]=nS(nw(e,R,t));function I(e,t){return"playing"===e[7]?nC:nE}let P=I(e),_=P(e),L=t6(e[3]),F=[];for(let t=0;t<L.length;t+=1)F[t]=nM(ny(e,L,t));function $(t){e[29](t)}let U={id:"skip",disabled:"skipping"===e[10],label:"skip inactive"};return void 0!==e[0]&&(U.checked=e[0]),b=new ng({props:U}),tH.push(()=>(function(e,t,r){let i=e.$$.props[t];void 0!==i&&(e.$$.bound[i]=r,r(e.$$.ctx[i]))})(b,"checked",$)),{c(){var x;t=tI("div"),r=tI("div"),i=tI("span"),s=t_(N),n=tL(),o=tI("div"),a=tI("div"),l=tL();for(let e=0;e<D.length;e+=1)D[e].c();u=tL();for(let e=0;e<A.length;e+=1)A[e].c();h=tL(),c=tI("div"),p=tL(),d=tI("span"),f=t_(O),m=tL(),g=tI("div"),y=tI("button"),_.c(),w=tL();for(let e=0;e<F.length;e+=1)F[e].c();v=tL(),(x=b.$$.fragment)&&x.c(),S=tL(),(E=tI("button")).innerHTML=`<svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16"><defs><style type="text/css"></style></defs><path d="M916 380c-26.4 0-48-21.6-48-48L868 223.2 613.6 477.6c-18.4
2
+ 18.4-48.8 18.4-68 0-18.4-18.4-18.4-48.8 0-68L800 156 692 156c-26.4
3
+ 0-48-21.6-48-48 0-26.4 21.6-48 48-48l224 0c26.4 0 48 21.6 48 48l0
4
+ 224C964 358.4 942.4 380 916 380zM231.2 860l108.8 0c26.4 0 48 21.6 48
5
+ 48s-21.6 48-48 48l-224 0c-26.4 0-48-21.6-48-48l0-224c0-26.4 21.6-48
6
+ 48-48 26.4 0 48 21.6 48 48L164 792l253.6-253.6c18.4-18.4 48.8-18.4
7
+ 68 0 18.4 18.4 18.4 48.8 0 68L231.2 860z"></path></svg>`,t$(i,"class","rr-timeline__time svelte-189zk2r"),t$(a,"class","rr-progress__step svelte-189zk2r"),tB(a,"width",e[12]),t$(c,"class","rr-progress__handler svelte-189zk2r"),tB(c,"left",e[12]),t$(o,"class","rr-progress svelte-189zk2r"),tj(o,"disabled","skipping"===e[10]),t$(d,"class","rr-timeline__time svelte-189zk2r"),t$(r,"class","rr-timeline svelte-189zk2r"),t$(y,"class","svelte-189zk2r"),t$(E,"class","svelte-189zk2r"),t$(g,"class","rr-controller__btns svelte-189zk2r"),t$(t,"class","rr-controller svelte-189zk2r")},m(x,N){tD(x,t,N),tT(t,r),tT(r,i),tT(i,s),tT(r,n),tT(r,o),tT(o,a),tT(o,l);for(let e=0;e<D.length;e+=1)D[e]&&D[e].m(o,null);tT(o,u);for(let e=0;e<A.length;e+=1)A[e]&&A[e].m(o,null);tT(o,h),tT(o,c),e[27](o),tT(r,p),tT(r,d),tT(d,f),tT(t,m),tT(t,g),tT(g,y),_.m(y,null),tT(g,w);for(let e=0;e<F.length;e+=1)F[e]&&F[e].m(g,null);tT(g,v),t9(b,g,null),tT(g,S),tT(g,E),C=!0,M||(k=[tF(o,"click",e[15]),tF(o,"keydown",e[16]),tF(y,"click",e[4]),tF(E,"click",e[30])],M=!0)},p(e,t){if((!C||64&t[0])&&N!==(N=nc(e[6])+"")&&tU(s,N),(!C||4096&t[0])&&tB(a,"width",e[12]),8192&t[0]){let r;for(r=0,T=t6(e[13]);r<T.length;r+=1){let i=nv(e,T,r);D[r]?D[r].p(i,t):(D[r]=nx(i),D[r].c(),D[r].m(o,u))}for(;r<D.length;r+=1)D[r].d(1);D.length=T.length}if(512&t[0]){let r;for(r=0,R=t6(e[9]);r<R.length;r+=1){let i=nw(e,R,r);A[r]?A[r].p(i,t):(A[r]=nS(i),A[r].c(),A[r].m(o,h))}for(;r<A.length;r+=1)A[r].d(1);A.length=R.length}if((!C||4096&t[0])&&tB(c,"left",e[12]),(!C||1024&t[0])&&tj(o,"disabled","skipping"===e[10]),(!C||256&t[0])&&O!==(O=nc(e[8].totalTime)+"")&&tU(f,O),P!==(P=I(e))&&(_.d(1),(_=P(e))&&(_.c(),_.m(y,null))),1066&t[0]){let r;for(r=0,L=t6(e[3]);r<L.length;r+=1){let i=ny(e,L,r);F[r]?F[r].p(i,t):(F[r]=nM(i),F[r].c(),F[r].m(g,v))}for(;r<F.length;r+=1)F[r].d(1);F.length=L.length}let r={};if(1024&t[0]&&(r.disabled="skipping"===e[10]),!x&&1&t[0]){var i;x=!0,r.checked=e[0],i=()=>x=!1,tq.push(i)}b.$set(r)},i(e){C||(t3(b.$$.fragment,e),C=!0)},o(e){t8(b.$$.fragment,e),C=!1},d(r){r&&tR(t),tA(D,r),tA(A,r),e[27](null),_.d(),tA(F,r),t5(b),M=!1,tM(k)}}}function nx(e){let t,r;return{c(){t$(t=tI("div"),"title",r=e[44].name),tB(t,"width",e[44].width),tB(t,"height","4px"),tB(t,"position","absolute"),tB(t,"background",e[44].background),tB(t,"left",e[44].position)},m(e,r){tD(e,t,r)},p(e,i){8192&i[0]&&r!==(r=e[44].name)&&t$(t,"title",r),8192&i[0]&&tB(t,"width",e[44].width),8192&i[0]&&tB(t,"background",e[44].background),8192&i[0]&&tB(t,"left",e[44].position)},d(e){e&&tR(t)}}}function nS(e){let t,r;return{c(){t$(t=tI("div"),"title",r=e[41].name),tB(t,"width","10px"),tB(t,"height","5px"),tB(t,"position","absolute"),tB(t,"top","2px"),tB(t,"transform","translate(-50%, -50%)"),tB(t,"background",e[41].background),tB(t,"left",e[41].position)},m(e,r){tD(e,t,r)},p(e,i){512&i[0]&&r!==(r=e[41].name)&&t$(t,"title",r),512&i[0]&&tB(t,"background",e[41].background),512&i[0]&&tB(t,"left",e[41].position)},d(e){e&&tR(t)}}}function nE(e){let t,r;return{c(){t=tP("svg"),t$(r=tP("path"),"d","M170.65984 896l0-768 640 384zM644.66944\n 512l-388.66944-233.32864 0 466.65728z"),t$(t,"class","icon"),t$(t,"viewBox","0 0 1024 1024"),t$(t,"version","1.1"),t$(t,"xmlns","http://www.w3.org/2000/svg"),t$(t,"xmlns:xlink","http://www.w3.org/1999/xlink"),t$(t,"width","16"),t$(t,"height","16")},m(e,i){tD(e,t,i),tT(t,r)},d(e){e&&tR(t)}}}function nC(e){let t,r;return{c(){t=tP("svg"),t$(r=tP("path"),"d","M682.65984 128q53.00224 0 90.50112 37.49888t37.49888 90.50112l0\n 512q0 53.00224-37.49888 90.50112t-90.50112\n 37.49888-90.50112-37.49888-37.49888-90.50112l0-512q0-53.00224\n 37.49888-90.50112t90.50112-37.49888zM341.34016 128q53.00224 0\n 90.50112 37.49888t37.49888 90.50112l0 512q0 53.00224-37.49888\n 90.50112t-90.50112\n 37.49888-90.50112-37.49888-37.49888-90.50112l0-512q0-53.00224\n 37.49888-90.50112t90.50112-37.49888zM341.34016 213.34016q-17.67424\n 0-30.16704 12.4928t-12.4928 30.16704l0 512q0 17.67424 12.4928\n 30.16704t30.16704 12.4928 30.16704-12.4928\n 12.4928-30.16704l0-512q0-17.67424-12.4928-30.16704t-30.16704-12.4928zM682.65984\n 213.34016q-17.67424 0-30.16704 12.4928t-12.4928 30.16704l0 512q0\n 17.67424 12.4928 30.16704t30.16704 12.4928 30.16704-12.4928\n 12.4928-30.16704l0-512q0-17.67424-12.4928-30.16704t-30.16704-12.4928z"),t$(t,"class","icon"),t$(t,"viewBox","0 0 1024 1024"),t$(t,"version","1.1"),t$(t,"xmlns","http://www.w3.org/2000/svg"),t$(t,"xmlns:xlink","http://www.w3.org/1999/xlink"),t$(t,"width","16"),t$(t,"height","16")},m(e,i){tD(e,t,i),tT(t,r)},d(e){e&&tR(t)}}}function nM(e){let t,r,i,s,n,o;let a=e[38]+"";function l(){return e[28](e[38])}return{c(){t=tI("button"),r=t_(a),i=t_("x"),t.disabled=s="skipping"===e[10],t$(t,"class","svelte-189zk2r"),tj(t,"active",e[38]===e[1]&&"skipping"!==e[10])},m(e,s){tD(e,t,s),tT(t,r),tT(t,i),n||(o=tF(t,"click",l),n=!0)},p(i,n){e=i,8&n[0]&&a!==(a=e[38]+"")&&tU(r,a),1024&n[0]&&s!==(s="skipping"===e[10])&&(t.disabled=s),1034&n[0]&&tj(t,"active",e[38]===e[1]&&"skipping"!==e[10])},d(e){e&&tR(t),n=!1,o()}}}function nk(e){let t,r;let i=e[2]&&nb(e);return{c(){i&&i.c(),t=t_("")},m(e,s){i&&i.m(e,s),tD(e,t,s),r=!0},p(e,r){e[2]?i?(i.p(e,r),4&r[0]&&t3(i,1)):((i=nb(e)).c(),t3(i,1),i.m(t.parentNode,t)):i&&(t2(),t8(i,1,1,()=>{i=null}),t4())},i(e){r||(t3(i),r=!0)},o(e){t8(i),r=!1},d(e){e&&tR(t),i&&i.d(e)}}}function nN(e,t,r){return(100-(t-r)/(t-e)*100).toFixed(2)}function nO(e,t,r){var i;let s,n,o,a,l,u,h,c;let p=function(){let e=tz();return(t,r,{cancelable:i=!1}={})=>{let s=e.$$.callbacks[t];if(s){let n=function(e,t,{bubbles:r=!1,cancelable:i=!1}={}){return new CustomEvent(e,{detail:t,bubbles:r,cancelable:i})}(t,r,{cancelable:i});return s.slice().forEach(t=>{t.call(e,n)}),!n.defaultPrevented}return!0}}(),{replayer:d}=t,{showController:f}=t,{autoPlay:m}=t,{skipInactive:g}=t,{speedOption:y}=t,{speed:w=y.length?y[0]:1}=t,{tags:v={}}=t,{inactiveColor:b}=t,x=0,S=null,E=!1,C=null,M=null,k=()=>{N(),S=requestAnimationFrame(function e(){r(6,x=d.getCurrentTime()),E&&x>=E&&(M?R(M.start,M.end,!0,void 0):(d.pause(),C&&(C(),C=null))),x<l.totalTime&&(S=requestAnimationFrame(e))})},N=()=>{S&&(cancelAnimationFrame(S),S=null)},O=()=>{"paused"===s&&(a?(d.play(),a=!1):d.play(x))},T=()=>{"playing"===s&&(d.pause(),E=!1)},D=(e,t)=>{r(6,x=e),E=!1,a=!1,("boolean"==typeof t?t:"playing"===s)?d.play(e):d.pause(e)},R=(e,t,i=!1,s)=>{M=i?{start:e,end:t}:null,r(6,x=e),E=t,C=s||null,d.play(e)},A=e=>{let t="playing"===s;r(1,w=e),t&&d.pause(),d.setConfig({speed:w}),t&&d.play(x)};return tV(()=>{r(7,s=d.service.state.value),r(10,n=d.speedService.state.value),d.on("state-change",e=>{let{player:t,speed:i}=e;if((null==t?void 0:t.value)&&s!==t.value)switch(r(7,s=t.value),s){case"playing":k();break;case"paused":N()}(null==i?void 0:i.value)&&n!==i.value&&r(10,n=i.value)}),d.on("finish",()=>{a=!0,C&&(C(),C=null)}),m&&d.play()}),i=()=>{g!==d.config.skipInactive&&d.setConfig({skipInactive:g})},tz().$$.after_update.push(i),tW(()=>{d.pause(),N()}),e.$$set=e=>{"replayer"in e&&r(17,d=e.replayer),"showController"in e&&r(2,f=e.showController),"autoPlay"in e&&r(18,m=e.autoPlay),"skipInactive"in e&&r(0,g=e.skipInactive),"speedOption"in e&&r(3,y=e.speedOption),"speed"in e&&r(1,w=e.speed),"tags"in e&&r(19,v=e.tags),"inactiveColor"in e&&r(20,b=e.inactiveColor)},e.$$.update=()=>{if(64&e.$$.dirty[0]&&p("ui-update-current-time",{payload:x}),128&e.$$.dirty[0]&&p("ui-update-player-state",{payload:s}),131072&e.$$.dirty[0]&&r(8,l=d.getMetaData()),320&e.$$.dirty[0]){let e=Math.min(1,x/l.totalTime);r(12,u=`${100*e}%`),p("ui-update-progress",{payload:e})}655360&e.$$.dirty[0]&&r(9,h=(()=>{let{context:e}=d.service.state,t=e.events.length,r=e.events[0].timestamp,i=e.events[t-1].timestamp,s=[];return e.events.forEach(e=>{if(e.type===na.Custom){let t={name:e.data.tag,background:v[e.data.tag]||"rgb(73, 80, 246)",position:`${nN(r,i,e.timestamp)}%`};s.push(t)}}),s})()),1179648&e.$$.dirty[0]&&r(13,c=(()=>{try{let{context:e}=d.service.state,t=e.events.length,r=e.events[0].timestamp,i=e.events[t-1].timestamp,s=function(e,t){let r=[],i=e[0].timestamp;for(let s of e)s.type===na.IncrementalSnapshot&&s.data.source>nl.Mutation&&s.data.source<=nl.Input&&(s.timestamp-i>t&&r.push([i,s.timestamp]),i=s.timestamp);return r}(e.events,d.config.inactivePeriodThreshold),n=(e,t,r,i)=>((i-r)/(t-e)*100).toFixed(2);return s.map(e=>({name:"inactive period",background:b,position:`${nN(r,i,e[0])}%`,width:`${n(r,i,e[0],e[1])}%`}))}catch(e){return[]}})())},[g,w,f,y,()=>{switch(s){case"playing":T();break;case"paused":O()}},A,x,s,l,h,n,o,u,c,p,e=>{if("skipping"===n)return;let t=o.getBoundingClientRect(),r=(e.clientX-t.left)/t.width;r<0?r=0:r>1&&(r=1),D(l.totalTime*r)},e=>{"skipping"!==n&&("ArrowLeft"===e.key?D(x-5):"ArrowRight"===e.key&&D(x+5))},d,m,v,b,O,T,D,R,()=>{r(0,g=!g)},()=>Promise.resolve().then(()=>{r(8,l=d.getMetaData())}),function(e){tH[e?"unshift":"push"](()=>{r(11,o=e)})},e=>A(e),function(e){r(0,g=e)},()=>p("fullscreen")]}class nT extends re{constructor(e){super(),t7(this,e,nO,nk,tN,{replayer:17,showController:2,autoPlay:18,skipInactive:0,speedOption:3,speed:1,tags:19,inactiveColor:20,toggle:4,play:21,pause:22,goto:23,playRange:24,setSpeed:5,toggleSkipInactive:25,triggerUpdateMeta:26},null,[-1,-1])}get toggle(){return this.$$.ctx[4]}get play(){return this.$$.ctx[21]}get pause(){return this.$$.ctx[22]}get goto(){return this.$$.ctx[23]}get playRange(){return this.$$.ctx[24]}get setSpeed(){return this.$$.ctx[5]}get toggleSkipInactive(){return this.$$.ctx[25]}get triggerUpdateMeta(){return this.$$.ctx[26]}}function nD(e){let t,r;return t=new nT({props:{replayer:e[7],showController:e[3],autoPlay:e[1],speedOption:e[2],skipInactive:e[0],tags:e[4],inactiveColor:e[5]}}),e[32](t),t.$on("fullscreen",e[33]),{c(){var e;(e=t.$$.fragment)&&e.c()},m(e,i){t9(t,e,i),r=!0},p(e,r){let i={};128&r[0]&&(i.replayer=e[7]),8&r[0]&&(i.showController=e[3]),2&r[0]&&(i.autoPlay=e[1]),4&r[0]&&(i.speedOption=e[2]),1&r[0]&&(i.skipInactive=e[0]),16&r[0]&&(i.tags=e[4]),32&r[0]&&(i.inactiveColor=e[5]),t.$set(i)},i(e){r||(t3(t.$$.fragment,e),r=!0)},o(e){t8(t.$$.fragment,e),r=!1},d(r){e[32](null),t5(t,r)}}}function nR(e){let t,r,i,s;let n=e[7]&&nD(e);return{c(){t=tI("div"),r=tI("div"),i=tL(),n&&n.c(),t$(r,"class","rr-player__frame"),t$(r,"style",e[11]),t$(t,"class","rr-player"),t$(t,"style",e[12])},m(o,a){tD(o,t,a),tT(t,r),e[31](r),tT(t,i),n&&n.m(t,null),e[34](t),s=!0},p(e,i){(!s||2048&i[0])&&t$(r,"style",e[11]),e[7]?n?(n.p(e,i),128&i[0]&&t3(n,1)):((n=nD(e)).c(),t3(n,1),n.m(t,null)):n&&(t2(),t8(n,1,1,()=>{n=null}),t4()),(!s||4096&i[0])&&t$(t,"style",e[12])},i(e){s||(t3(n),s=!0)},o(e){t8(n),s=!1},d(r){r&&tR(t),e[31](null),n&&n.d(),e[34](null)}}}function nA(e,t,r){let i,s,n,o,a,l,u,{width:h=1024}=t,{height:c=576}=t,{maxScale:p=1}=t,{events:d}=t,{skipInactive:f=!0}=t,{autoPlay:m=!0}=t,{speedOption:g=[1,2,4,8]}=t,{speed:y=1}=t,{showController:w=!0}=t,{tags:v={}}=t,{inactiveColor:b="#D4D4D4"}=t,x=h,S=c,E=(e,t)=>{let r=[h/t.width,c/t.height];p&&r.push(p),e.style.transform=`scale(${Math.min(...r)})translate(-50%, -50%)`},C=()=>{var e;s&&(np()?document.exitFullscreen?document.exitFullscreen():document.mozExitFullscreen?document.mozExitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen?document.msExitFullscreen():Promise.resolve():(e=s).requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():Promise.resolve())};return tV(()=>{var e;if(void 0!==g&&"array"!==nd(g))throw Error("speedOption must be array");if(g.forEach(e=>{if("number"!==nd(e))throw Error("item of speedOption must be number")}),0>g.indexOf(y))throw Error(`speed must be one of speedOption,
8
+ current config:
9
+ {
10
+ ...
11
+ speed: ${y},
12
+ speedOption: [${g.toString()}]
13
+ ...
14
+ }
15
+ `);r(7,i=new sW(d,{speed:y,root:n,unpackFn:no,...t})),i.on("resize",e=>{E(i.wrapper,e)}),e=()=>{np()?setTimeout(()=>{x=h,S=c,r(13,h=s.offsetWidth),r(14,c=s.offsetHeight-(w?80:0)),E(i.wrapper,{width:i.iframe.offsetWidth,height:i.iframe.offsetHeight})},0):(r(13,h=x),r(14,c=S),E(i.wrapper,{width:i.iframe.offsetWidth,height:i.iframe.offsetHeight}))},document.addEventListener("fullscreenchange",e),document.addEventListener("webkitfullscreenchange",e),document.addEventListener("mozfullscreenchange",e),document.addEventListener("MSFullscreenChange",e),o=()=>{document.removeEventListener("fullscreenchange",e),document.removeEventListener("webkitfullscreenchange",e),document.removeEventListener("mozfullscreenchange",e),document.removeEventListener("MSFullscreenChange",e)}}),tW(()=>{o&&o()}),e.$$set=e=>{r(39,t=tS(tS({},t),tO(e))),"width"in e&&r(13,h=e.width),"height"in e&&r(14,c=e.height),"maxScale"in e&&r(15,p=e.maxScale),"events"in e&&r(16,d=e.events),"skipInactive"in e&&r(0,f=e.skipInactive),"autoPlay"in e&&r(1,m=e.autoPlay),"speedOption"in e&&r(2,g=e.speedOption),"speed"in e&&r(17,y=e.speed),"showController"in e&&r(3,w=e.showController),"tags"in e&&r(4,v=e.tags),"inactiveColor"in e&&r(5,b=e.inactiveColor)},e.$$.update=()=>{24576&e.$$.dirty[0]&&r(11,l=nu({width:`${h}px`,height:`${c}px`})),24584&e.$$.dirty[0]&&r(12,u=nu({width:`${h}px`,height:`${c+(w?80:0)}px`}))},t=tO(t),[f,m,g,w,v,b,C,i,s,n,a,l,u,h,c,p,d,y,()=>i.getMirror(),()=>{E(i.wrapper,{width:i.iframe.offsetWidth,height:i.iframe.offsetHeight})},(e,t)=>{switch(i.on(e,t),e){case"ui-update-current-time":case"ui-update-progress":case"ui-update-player-state":a.$on(e,({detail:e})=>t(e))}},e=>{i.addEvent(e),a.triggerUpdateMeta()},()=>i.getMetaData(),()=>i,()=>{a.toggle()},e=>{a.setSpeed(e)},()=>{a.toggleSkipInactive()},()=>{a.play()},()=>{a.pause()},(e,t)=>{a.goto(e,t)},(e,t,r=!1,i)=>{a.playRange(e,t,r,i)},function(e){tH[e?"unshift":"push"](()=>{r(9,n=e)})},function(e){tH[e?"unshift":"push"](()=>{r(10,a=e)})},()=>C(),function(e){tH[e?"unshift":"push"](()=>{r(8,s=e)})}]}let nI=class extends re{constructor(e){super(),t7(this,e,nA,nR,tN,{width:13,height:14,maxScale:15,events:16,skipInactive:0,autoPlay:1,speedOption:2,speed:17,showController:3,tags:4,inactiveColor:5,getMirror:18,triggerResize:19,toggleFullscreen:6,addEventListener:20,addEvent:21,getMetaData:22,getReplayer:23,toggle:24,setSpeed:25,toggleSkipInactive:26,play:27,pause:28,goto:29,playRange:30},null,[-1,-1])}get getMirror(){return this.$$.ctx[18]}get triggerResize(){return this.$$.ctx[19]}get toggleFullscreen(){return this.$$.ctx[6]}get addEventListener(){return this.$$.ctx[20]}get addEvent(){return this.$$.ctx[21]}get getMetaData(){return this.$$.ctx[22]}get getReplayer(){return this.$$.ctx[23]}get toggle(){return this.$$.ctx[24]}get setSpeed(){return this.$$.ctx[25]}get toggleSkipInactive(){return this.$$.ctx[26]}get play(){return this.$$.ctx[27]}get pause(){return this.$$.ctx[28]}get goto(){return this.$$.ctx[29]}get playRange(){return this.$$.ctx[30]}};class nP extends nI{constructor(e){super({target:e.target,props:e.data||e.props})}}}}]);