@brainfish-ai/web-tracker 0.0.17 → 0.0.19

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 (44) hide show
  1. package/dist/index.d.ts +38 -2
  2. package/dist/src/tracker.ts.es.d.ts +1 -0
  3. package/dist/tracker.cjs.js +1 -1
  4. package/dist/tracker.cjs.js.gz +0 -0
  5. package/dist/tracker.cjs.js.map +1 -1
  6. package/dist/tracker.d.ts +9 -1
  7. package/dist/tracker.es.js +37724 -0
  8. package/dist/tracker.es.js.gz +0 -0
  9. package/dist/tracker.es.js.map +1 -0
  10. package/dist/tracker.js +1 -14
  11. package/dist/tracker.js.gz +0 -0
  12. package/dist/tracker.js.map +1 -1
  13. package/package.json +6 -5
  14. package/dist/index.cjs.js +0 -129
  15. package/dist/index.cjs.js.gz +0 -0
  16. package/dist/index.cjs.js.map +0 -1
  17. package/dist/index.js +0 -11749
  18. package/dist/index.js.gz +0 -0
  19. package/dist/index.js.map +0 -1
  20. package/dist/src/index.d.ts +0 -38
  21. package/dist/src/tracker.d.ts +0 -9
  22. /package/dist/{src/common → common}/canDiscover.d.ts +0 -0
  23. /package/dist/{src/common → common}/isLocal.d.ts +0 -0
  24. /package/dist/{src/record → record}/eventBuffer.d.ts +0 -0
  25. /package/dist/{src/record → record}/index.d.ts +0 -0
  26. /package/dist/{src/record → record}/recorder.d.ts +0 -0
  27. /package/dist/{src/record → record}/recordingManager.d.ts +0 -0
  28. /package/dist/{src/record → record}/sender.d.ts +0 -0
  29. /package/dist/{src/record → record}/stasher.d.ts +0 -0
  30. /package/dist/{src/record → record}/timer.d.ts +0 -0
  31. /package/dist/{src/redact → redact}/built-ins/NameRedactor.d.ts +0 -0
  32. /package/dist/{src/redact → redact}/built-ins/SimpleRegexpRedactor.d.ts +0 -0
  33. /package/dist/{src/redact → redact}/built-ins/simple-regexp-patterns.d.ts +0 -0
  34. /package/dist/{src/redact → redact}/built-ins/well-known-names.d.ts +0 -0
  35. /package/dist/{src/redact → redact}/composition.d.ts +0 -0
  36. /package/dist/{src/redact → redact}/index.d.ts +0 -0
  37. /package/dist/{src/redact → redact}/types.d.ts +0 -0
  38. /package/dist/{src/redact → redact}/utils.d.ts +0 -0
  39. /package/dist/{src/screenshot → screenshot}/capture.d.ts +0 -0
  40. /package/dist/{src/screenshot → screenshot}/redact.d.ts +0 -0
  41. /package/dist/{src/screenshot → screenshot}/renderStability.d.ts +0 -0
  42. /package/dist/{src/screenshot → screenshot}/snapshot.d.ts +0 -0
  43. /package/dist/{src/session → session}/sessionManager.d.ts +0 -0
  44. /package/dist/{src/setupTests.d.ts → setupTests.d.ts} +0 -0
package/dist/tracker.js CHANGED
@@ -1,15 +1,2 @@
1
- import { Tracker as r } from "./index.js";
2
- ((s) => {
3
- if (s.BrainfishAnalytics && "q" in s.BrainfishAnalytics) {
4
- const o = s.BrainfishAnalytics.q || [], a = o.findIndex((i) => i[0] === "init");
5
- if (a === -1) return void console.warn("BrainfishAnalytics has not been initialized.");
6
- const [c] = o.splice(a, 1), n = new r(c[1]);
7
- o.forEach((i) => {
8
- i[0] in n && n[i[0]](...i.slice(1));
9
- }), s.BrainfishAnalytics = (i, ...e) => {
10
- const t = n[i] ? n[i].bind(n) : void 0;
11
- typeof t == "function" ? t(...e) : console.warn(`Method ${i} does not exist on BrainfishAnalytics`);
12
- };
13
- }
14
- })(window);
1
+ var __defProp=Object.defineProperty,__defNormalProp=(e,t,r)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,__publicField=(e,t,r)=>__defNormalProp(e,"symbol"!=typeof t?t+"":t,r);!function(){"use strict";const e=Object.create(null);e.open="0",e.close="1",e.ping="2",e.pong="3",e.message="4",e.upgrade="5",e.noop="6";const t=Object.create(null);Object.keys(e).forEach(r=>{t[e[r]]=r});const r={type:"error",data:"parser error"},n="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),s="function"==typeof ArrayBuffer,i=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,o=({type:t,data:r},o,l)=>n&&r instanceof Blob?o?l(r):a(r,l):s&&(r instanceof ArrayBuffer||i(r))?o?l(r):a(new Blob([r]),l):l(e[t]+(r||"")),a=(e,t)=>{const r=new FileReader;return r.onload=function(){const e=r.result.split(",")[1];t("b"+(e||""))},r.readAsDataURL(e)};function l(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let c;const h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let Xk=0;Xk<64;Xk++)u[h.charCodeAt(Xk)]=Xk;const d="function"==typeof ArrayBuffer,p=(e,n)=>{if("string"!=typeof e)return{type:"message",data:f(e,n)};const s=e.charAt(0);if("b"===s)return{type:"message",data:m(e.substring(1),n)};return t[s]?e.length>1?{type:t[s],data:e.substring(1)}:{type:t[s]}:r},m=(e,t)=>{if(d){const r=(e=>{let t,r,n,s,i,o=.75*e.length,a=e.length,l=0;"="===e[e.length-1]&&(o--,"="===e[e.length-2]&&o--);const c=new ArrayBuffer(o),h=new Uint8Array(c);for(t=0;t<a;t+=4)r=u[e.charCodeAt(t)],n=u[e.charCodeAt(t+1)],s=u[e.charCodeAt(t+2)],i=u[e.charCodeAt(t+3)],h[l++]=r<<2|n>>4,h[l++]=(15&n)<<4|s>>2,h[l++]=(3&s)<<6|63&i;return c})(e);return f(r,t)}return{base64:!0,data:e}},f=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,g=String.fromCharCode(30);function y(){return new TransformStream({transform(e,t){!function(e,t){n&&e.data instanceof Blob?e.data.arrayBuffer().then(l).then(t):s&&(e.data instanceof ArrayBuffer||i(e.data))?t(l(e.data)):o(e,!1,e=>{c||(c=new TextEncoder),t(c.encode(e))})}(e,r=>{const n=r.length;let s;if(n<126)s=new Uint8Array(1),new DataView(s.buffer).setUint8(0,n);else if(n<65536){s=new Uint8Array(3);const e=new DataView(s.buffer);e.setUint8(0,126),e.setUint16(1,n)}else{s=new Uint8Array(9);const e=new DataView(s.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(n))}e.data&&"string"!=typeof e.data&&(s[0]|=128),t.enqueue(s),t.enqueue(r)})}})}let b;function w(e){return e.reduce((e,t)=>e+t.length,0)}function k(e,t){if(e[0].length===t)return e.shift();const r=new Uint8Array(t);let n=0;for(let s=0;s<t;s++)r[s]=e[0][n++],n===e[0].length&&(e.shift(),n=0);return e.length&&n<e[0].length&&(e[0]=e[0].slice(n)),r}function v(e){if(e)return function(e){for(var t in v.prototype)e[t]=v.prototype[t];return e}(e)}v.prototype.on=v.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},v.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this},v.prototype.off=v.prototype.removeListener=v.prototype.removeAllListeners=v.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var s=0;s<n.length;s++)if((r=n[s])===t||r.fn===t){n.splice(s,1);break}return 0===n.length&&delete this._callbacks["$"+e],this},v.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),r=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(r){n=0;for(var s=(r=r.slice(0)).length;n<s;++n)r[n].apply(this,t)}return this},v.prototype.emitReserved=v.prototype.emit,v.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},v.prototype.hasListeners=function(e){return!!this.listeners(e).length};const S="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),C="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function x(e,...t){return t.reduce((t,r)=>(e.hasOwnProperty(r)&&(t[r]=e[r]),t),{})}const I=C.setTimeout,O=C.clearTimeout;function A(e,t){t.useNativeTimers?(e.setTimeoutFn=I.bind(C),e.clearTimeoutFn=O.bind(C)):(e.setTimeoutFn=C.setTimeout.bind(C),e.clearTimeoutFn=C.clearTimeout.bind(C))}function E(e){return"string"==typeof e?function(e){let t=0,r=0;for(let n=0,s=e.length;n<s;n++)t=e.charCodeAt(n),t<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(n++,r+=4);return r}(e):Math.ceil(1.33*(e.byteLength||e.size))}function R(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}class M extends Error{constructor(e,t,r){super(e),this.description=t,this.context=r,this.type="TransportError"}}class j extends v{constructor(e){super(),this.writable=!1,A(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,r){return super.emitReserved("error",new M(e,t,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=p(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return-1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){const t=function(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}(e);return t.length?"?"+t:""}}class z extends j{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let e=0;this._polling&&(e++,this.once("pollComplete",function(){--e||t()})),this.writable||(e++,this.once("drain",function(){--e||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){((e,t)=>{const r=e.split(g),n=[];for(let s=0;s<r.length;s++){const e=p(r[s],t);if(n.push(e),"error"===e.type)break}return n})(e,this.socket.binaryType).forEach(e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)}),"closed"!==this.readyState&&(this._polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,((e,t)=>{const r=e.length,n=new Array(r);let s=0;e.forEach((e,i)=>{o(e,!1,e=>{n[i]=e,++s===r&&t(n.join(g))})})})(e,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=R()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}}let N=!1;try{N="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(Hk){}const _=N;function T(){}class P extends z{constructor(e){if(super(e),"undefined"!=typeof location){const t="https:"===location.protocol;let r=location.port;r||(r=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||r!==e.port}}doWrite(e,t){const r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",(e,t)=>{this.onError("xhr post error",e,t)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(e,t)=>{this.onError("xhr poll error",e,t)}),this.pollXhr=e}}class L extends v{constructor(e,t,r){super(),this.createRequest=e,A(this,r),this._opts=r,this._method=r.method||"GET",this._uri=t,this._data=void 0!==r.data?r.data:null,this._create()}_create(){var e;const t=x(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(t);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let e in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(e)&&r.setRequestHeader(e,this._opts.extraHeaders[e])}}catch(n){}if("POST"===this._method)try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(n){}try{r.setRequestHeader("Accept","*/*")}catch(n){}null===(e=this._opts.cookieJar)||void 0===e||e.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var e;3===r.readyState&&(null===(e=this._opts.cookieJar)||void 0===e||e.parseCookies(r.getResponseHeader("set-cookie"))),4===r.readyState&&(200===r.status||1223===r.status?this._onLoad():this.setTimeoutFn(()=>{this._onError("number"==typeof r.status?r.status:0)},0))},r.send(this._data)}catch(n){return void this.setTimeoutFn(()=>{this._onError(n)},0)}"undefined"!=typeof document&&(this._index=L.requestsCount++,L.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(void 0!==this._xhr&&null!==this._xhr){if(this._xhr.onreadystatechange=T,e)try{this._xhr.abort()}catch(t){}"undefined"!=typeof document&&delete L.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}if(L.requestsCount=0,L.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",F);else if("function"==typeof addEventListener){addEventListener("onpagehide"in C?"pagehide":"unload",F,!1)}function F(){for(let e in L.requests)L.requests.hasOwnProperty(e)&&L.requests[e].abort()}const D=function(){const e=B({xdomain:!1});return e&&null!==e.responseType}();function B(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||_))return new XMLHttpRequest}catch(r){}if(!t)try{return new(C[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(r){}}const U="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class V extends j{get name(){return"websocket"}doOpen(){const e=this.uri(),t=this.opts.protocols,r=U?{}:x(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,r)}catch(Hk){return this.emitReserved("error",Hk)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const r=e[t],n=t===e.length-1;o(r,this.supportsBinary,e=>{try{this.doWrite(r,e)}catch(t){}n&&S(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){void 0!==this.ws&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=R()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}const W=C.WebSocket||C.MozWebSocket;const q={websocket:class extends V{createSocket(e,t,r){return U?new W(e,t,r):t?new W(e,t):new W(e)}doWrite(e,t){this.ws.send(t)}},webtransport:class extends j{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(Hk){return this.emitReserved("error",Hk)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{const t=function(e,t){b||(b=new TextDecoder);const n=[];let s=0,i=-1,o=!1;return new TransformStream({transform(a,l){for(n.push(a);;){if(0===s){if(w(n)<1)break;const e=k(n,1);o=!(128&~e[0]),i=127&e[0],s=i<126?3:126===i?1:2}else if(1===s){if(w(n)<2)break;const e=k(n,2);i=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),s=3}else if(2===s){if(w(n)<8)break;const e=k(n,8),t=new DataView(e.buffer,e.byteOffset,e.length),o=t.getUint32(0);if(o>Math.pow(2,21)-1){l.enqueue(r);break}i=o*Math.pow(2,32)+t.getUint32(4),s=3}else{if(w(n)<i)break;const e=k(n,i);l.enqueue(p(o?e:b.decode(e),t)),s=0}if(0===i||i>e){l.enqueue(r);break}}}})}(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),s=y();s.readable.pipeTo(e.writable),this._writer=s.writable.getWriter();const i=()=>{n.read().then(({done:e,value:t})=>{e||(this.onPacket(t),i())}).catch(e=>{})};i();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const r=e[t],n=t===e.length-1;this._writer.write(r).then(()=>{n&&S(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;null===(e=this._transport)||void 0===e||e.close()}},polling:class extends P{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=D&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new L(B,this.uri(),e)}}},Y=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Z=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function G(e){if(e.length>8e3)throw"URI too long";const t=e,r=e.indexOf("["),n=e.indexOf("]");-1!=r&&-1!=n&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));let s=Y.exec(e||""),i={},o=14;for(;o--;)i[Z[o]]=s[o]||"";return-1!=r&&-1!=n&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=function(e,t){const r=/\/{2,9}/g,n=t.replace(r,"/").split("/");"/"!=t.slice(0,1)&&0!==t.length||n.splice(0,1);"/"==t.slice(-1)&&n.splice(n.length-1,1);return n}(0,i.path),i.queryKey=function(e,t){const r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,n){t&&(r[t]=n)}),r}(0,i.query),i}const J="function"==typeof addEventListener&&"function"==typeof removeEventListener,$=[];J&&addEventListener("offline",()=>{$.forEach(e=>e())},!1);class H extends v{constructor(e,t){if(super(),this.binaryType="arraybuffer",this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&"object"==typeof e&&(t=e,e=null),e){const r=G(e);t.hostname=r.host,t.secure="https"===r.protocol||"wss"===r.protocol,t.port=r.port,r.query&&(t.query=r.query)}else t.host&&(t.hostname=G(t.host).host);A(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach(e=>{const t=e.prototype.name;this.transports.push(t),this._transportsByName[t]=e}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=function(e){let t={},r=e.split("&");for(let n=0,s=r.length;n<s;n++){let e=r[n].split("=");t[decodeURIComponent(e[0])]=decodeURIComponent(e[1])}return t}(this.opts.query)),J&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},$.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);const r=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](r)}_open(){if(0===this.transports.length)return void this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);const e=this.opts.rememberUpgrade&&H.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket")?"websocket":this.transports[0];this.readyState="opening";const t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",e=>this._onClose("transport close",e))}onOpen(){this.readyState="open",H.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush()}_onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const t=new Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t<this.writeBuffer.length;t++){const r=this.writeBuffer[t].data;if(r&&(e+=E(r)),t>0&&e>this._maxPayload)return this.writeBuffer.slice(0,t);e+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,S(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,t,r){return this._sendPacket("message",e,t,r),this}send(e,t,r){return this._sendPacket("message",e,t,r),this}_sendPacket(e,t,r,n){if("function"==typeof t&&(n=t,t=void 0),"function"==typeof r&&(n=r,r=null),"closing"===this.readyState||"closed"===this.readyState)return;(r=r||{}).compress=!1!==r.compress;const s={type:e,data:t,options:r};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),n&&this.once("flush",n),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},r=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():e()}):this.upgrading?r():e()),this}_onError(e){if(H.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&"opening"===this.readyState)return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),J&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const e=$.indexOf(this._offlineEventListener);-1!==e&&$.splice(e,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}H.protocol=4;class X extends H{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),"open"===this.readyState&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),r=!1;H.priorWebsocketSuccess=!1;const n=()=>{r||(t.send([{type:"ping",data:"probe"}]),t.once("packet",e=>{if(!r)if("pong"===e.type&&"probe"===e.data){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;H.priorWebsocketSuccess="websocket"===t.name,this.transport.pause(()=>{r||"closed"!==this.readyState&&(c(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const e=new Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}}))};function s(){r||(r=!0,c(),t.close(),t=null)}const i=e=>{const r=new Error("probe error: "+e);r.transport=t.name,s(),this.emitReserved("upgradeError",r)};function o(){i("transport closed")}function a(){i("socket closed")}function l(e){t&&e.name!==t.name&&s()}const c=()=>{t.removeListener("open",n),t.removeListener("error",i),t.removeListener("close",o),this.off("close",a),this.off("upgrading",l)};t.once("open",n),t.once("error",i),t.once("close",o),this.once("close",a),this.once("upgrading",l),-1!==this._upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn(()=>{r||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const t=[];for(let r=0;r<e.length;r++)~this.transports.indexOf(e[r])&&t.push(e[r]);return t}}let K=class extends X{constructor(e,t={}){const r="object"==typeof e?e:t;(!r.transports||r.transports&&"string"==typeof r.transports[0])&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(e=>q[e]).filter(e=>!!e)),super(e,r)}};const Q="function"==typeof ArrayBuffer,ee=Object.prototype.toString,te="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===ee.call(Blob),re="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===ee.call(File);function ne(e){return Q&&(e instanceof ArrayBuffer||(e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer)(e))||te&&e instanceof Blob||re&&e instanceof File}function se(e,t){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let t=0,r=e.length;t<r;t++)if(se(e[t]))return!0;return!1}if(ne(e))return!0;if(e.toJSON&&"function"==typeof e.toJSON&&1===arguments.length)return se(e.toJSON(),!0);for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&se(e[r]))return!0;return!1}function ie(e){const t=[],r=e.data,n=e;return n.data=oe(r,t),n.attachments=t.length,{packet:n,buffers:t}}function oe(e,t){if(!e)return e;if(ne(e)){const r={_placeholder:!0,num:t.length};return t.push(e),r}if(Array.isArray(e)){const r=new Array(e.length);for(let n=0;n<e.length;n++)r[n]=oe(e[n],t);return r}if("object"==typeof e&&!(e instanceof Date)){const r={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=oe(e[n],t));return r}return e}function ae(e,t){return e.data=le(e.data,t),delete e.attachments,e}function le(e,t){if(!e)return e;if(e&&!0===e._placeholder){if("number"==typeof e.num&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=le(e[r],t);else if("object"==typeof e)for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=le(e[r],t));return e}const ce=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var he,ue;(ue=he||(he={}))[ue.CONNECT=0]="CONNECT",ue[ue.DISCONNECT=1]="DISCONNECT",ue[ue.EVENT=2]="EVENT",ue[ue.ACK=3]="ACK",ue[ue.CONNECT_ERROR=4]="CONNECT_ERROR",ue[ue.BINARY_EVENT=5]="BINARY_EVENT",ue[ue.BINARY_ACK=6]="BINARY_ACK";function de(e){return"[object Object]"===Object.prototype.toString.call(e)}class pe extends v{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);const r=t.type===he.BINARY_EVENT;r||t.type===he.BINARY_ACK?(t.type=r?he.EVENT:he.ACK,this.reconstructor=new me(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else{if(!ne(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t))}}decodeString(e){let t=0;const r={type:Number(e.charAt(0))};if(void 0===he[r.type])throw new Error("unknown packet type "+r.type);if(r.type===he.BINARY_EVENT||r.type===he.BINARY_ACK){const n=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const s=e.substring(n,t);if(s!=Number(s)||"-"!==e.charAt(t))throw new Error("Illegal attachments");r.attachments=Number(s)}if("/"===e.charAt(t+1)){const n=t+1;for(;++t;){if(","===e.charAt(t))break;if(t===e.length)break}r.nsp=e.substring(n,t)}else r.nsp="/";const n=e.charAt(t+1);if(""!==n&&Number(n)==n){const n=t+1;for(;++t;){const r=e.charAt(t);if(null==r||Number(r)!=r){--t;break}if(t===e.length)break}r.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){const n=this.tryParse(e.substr(t));if(!pe.isPayloadValid(r.type,n))throw new Error("invalid payload");r.data=n}return r}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(t){return!1}}static isPayloadValid(e,t){switch(e){case he.CONNECT:return de(t);case he.DISCONNECT:return void 0===t;case he.CONNECT_ERROR:return"string"==typeof t||de(t);case he.EVENT:case he.BINARY_EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===ce.indexOf(t[0]));case he.ACK:case he.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class me{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const e=ae(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const fe=Object.freeze(Object.defineProperty({__proto__:null,Decoder:pe,Encoder:class{constructor(e){this.replacer=e}encode(e){return e.type!==he.EVENT&&e.type!==he.ACK||!se(e)?[this.encodeAsString(e)]:this.encodeAsBinary({type:e.type===he.EVENT?he.BINARY_EVENT:he.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id})}encodeAsString(e){let t=""+e.type;return e.type!==he.BINARY_EVENT&&e.type!==he.BINARY_ACK||(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){const t=ie(e),r=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(r),n}},get PacketType(){return he},protocol:5},Symbol.toStringTag,{value:"Module"}));function ge(e,t,r){return e.on(t,r),function(){e.off(t,r)}}const ye=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class be extends v{constructor(e,t,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[ge(e,"open",this.onopen.bind(this)),ge(e,"packet",this.onpacket.bind(this)),ge(e,"error",this.onerror.bind(this)),ge(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){var r,n,s;if(ye.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;const i={type:he.EVENT,data:t,options:{}};if(i.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){const e=this.ids++,r=t.pop();this._registerAckCallback(e,r),i.id=e}const o=null===(n=null===(r=this.io.engine)||void 0===r?void 0:r.transport)||void 0===n?void 0:n.writable,a=this.connected&&!(null===(s=this.io.engine)||void 0===s?void 0:s._hasPingExpired());return this.flags.volatile&&!o||(a?(this.notifyOutgoingListeners(i),this.packet(i)):this.sendBuffer.push(i)),this.flags={},this}_registerAckCallback(e,t){var r;const n=null!==(r=this.flags.timeout)&&void 0!==r?r:this._opts.ackTimeout;if(void 0===n)return void(this.acks[e]=t);const s=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,new Error("operation has timed out"))},n),i=(...e)=>{this.io.clearTimeoutFn(s),t.apply(this,e)};i.withError=!0,this.acks[e]=i}emitWithAck(e,...t){return new Promise((r,n)=>{const s=(e,t)=>e?n(e):r(t);s.withError=!0,t.push(s),this.emit(e,...t)})}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((e,...n)=>{if(r!==this._queue[0])return;return null!==e?r.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...n)),r.pending=!1,this._drainQueue()}),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:he.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(t=>String(t.id)===e)){const t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case he.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case he.EVENT:case he.BINARY_EVENT:this.onevent(e);break;case he.ACK:case he.BINARY_ACK:this.onack(e);break;case he.DISCONNECT:this.ondisconnect();break;case he.CONNECT_ERROR:this.destroy();const t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){const t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const r of t)r.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let r=!1;return function(...n){r||(r=!0,t.packet({type:he.ACK,id:e,data:n}))}}onack(e){const t=this.acks[e.id];"function"==typeof t&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:he.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let r=0;r<t.length;r++)if(e===t[r])return t.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let r=0;r<t.length;r++)if(e===t[r])return t.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const r of t)r.apply(this,e.data)}}}function we(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}we.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=1&Math.floor(10*t)?e+r:e-r}return 0|Math.min(e,this.max)},we.prototype.reset=function(){this.attempts=0},we.prototype.setMin=function(e){this.ms=e},we.prototype.setMax=function(e){this.max=e},we.prototype.setJitter=function(e){this.jitter=e};class ke extends v{constructor(e,t){var r;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,A(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(r=t.randomizationFactor)&&void 0!==r?r:.5),this.backoff=new we({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const n=t.parser||fe;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new K(this.uri,this.opts);const t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const n=ge(t,"open",function(){r.onopen(),e&&e()}),s=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},i=ge(t,"error",s);if(!1!==this._timeout){const e=this._timeout,r=this.setTimeoutFn(()=>{n(),s(new Error("timeout")),t.close()},e);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}return this.subs.push(n),this.subs.push(i),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(ge(e,"ping",this.onping.bind(this)),ge(e,"data",this.ondata.bind(this)),ge(e,"error",this.onerror.bind(this)),ge(e,"close",this.onclose.bind(this)),ge(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){S(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new be(this,e,t),this.nsps[e]=r),r}_destroy(e){const t=Object.keys(this.nsps);for(const r of t){if(this.nsps[r].active)return}this._close()}_packet(e){const t=this.encoder.encode(e);for(let r=0;r<t.length;r++)this.engine.write(t[r],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var r;this.cleanup(),null===(r=this.engine)||void 0===r||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open(t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()}))},t);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const ve={};function Se(e,t){"object"==typeof e&&(t=e,e=void 0);const r=function(e,t="",r){let n=e;r=r||"undefined"!=typeof location&&location,null==e&&(e=r.protocol+"//"+r.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?r.protocol+e:r.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==r?r.protocol+"//"+e:"https://"+e),n=G(e)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";const s=-1!==n.host.indexOf(":")?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+s+":"+n.port+t,n.href=n.protocol+"://"+s+(r&&r.port===n.port?"":":"+n.port),n}(e,(t=t||{}).path||"/socket.io"),n=r.source,s=r.id,i=r.path,o=ve[s]&&i in ve[s].nsps;let a;return t.forceNew||t["force new connection"]||!1===t.multiplex||o?a=new ke(n,t):(ve[s]||(ve[s]=new ke(n,t)),a=ve[s]),r.query&&!t.query&&(t.query=r.queryKey),a.socket(r.path,t)}Object.assign(Se,{Manager:ke,Socket:be,io:Se,connect:Se});class Ce{constructor(e){__publicField(this,"socket"),__publicField(this,"encode"),__publicField(this,"decode"),this.socket=Se(e.baseUrl,{transports:["websocket"],path:"/analytics/ws",auth:{token:e.authToken},query:e.query}),this.encode=e.encoder??(e=>function(e){const t=(new TextEncoder).encode(e);if("undefined"!=typeof window&&"function"==typeof window.btoa){const e=Array.from(t,e=>String.fromCharCode(e)).join("");return btoa(e)}if("undefined"!=typeof Buffer)return Buffer.from(t).toString("base64");throw new Error("[utils.base64Encode]: Unsupported environment")}(JSON.stringify(e))),this.decode=e.decoder??(e=>JSON.parse((e=>{if("undefined"!=typeof window&&"function"==typeof window.atob){const t=atob(e),r=t.length,n=new Uint8Array(r);for(let e=0;e<r;e++)n[e]=t.charCodeAt(e);return(new TextDecoder).decode(n)}if("undefined"!=typeof Buffer)return Buffer.from(e,"base64").toString("utf-8");throw new Error("[utils.base64Decode]: Unsupported environment")})(e)))}send(e,t,r){"function"==typeof r?this.socket.emit(e,this.encode(t),r):this.socket.emit(e,this.encode(t))}on(e,t){this.socket.on(e,e=>t(this.decode(e)))}}class xe{constructor(e){if(__publicField(this,"defaultTTL"),__publicField(this,"items"),this.defaultTTL=e,e<=0)throw new Error("Default TTL must be a positive number.");this.items=new Map,this.defaultTTL=e,setInterval(()=>this.cleanup(),e)}add(e,t){const r=void 0!==t?t:this.defaultTTL;if(r<=0)throw new Error("TTL must be a positive number.");const n=Date.now()+r;this.items.set(e,n)}has(e){const t=this.items.get(e);return void 0!==t&&(!(Date.now()>t)||(this.items.delete(e),!1))}delete(e){this.items.delete(e)}get size(){return this.cleanup(),this.items.size}clear(){this.items.clear()}cleanup(){const e=Date.now();for(const[t,r]of this.items.entries())r<=e&&this.items.delete(t)}toArray(){return this.cleanup(),Array.from(this.items.keys())}}var Ie,Oe,Ae,Ee;(Oe=Ie||(Ie={})).OpenUrl="openUrl",Oe.CallPhone="callPhone",Oe.SendEmail="sendEmail",Oe.TriggerEvent="triggerEvent",(Ee=Ae||(Ae={})).Button="button",Ee.Link="link";class Re{constructor(e){__publicField(this,"options"),__publicField(this,"client"),__publicField(this,"userId"),__publicField(this,"global"),__publicField(this,"queue",[]),__publicField(this,"knownEvents",["nudge.show"]),__publicField(this,"eventListeners",{}),__publicField(this,"recentNudgeIds",new xe(1e3)),this.options=e;const t={sdk_name:e.sdk||"node",sdk_version:e.sdkVersion||""};this.client=new Ce({baseUrl:e.apiUrl||"https://analytic.brainfi.sh",authToken:e.accessKey,query:t}),this.setupIncomingPayloadHandler()}init(){}ready(){this.options.waitForUser=!1,this.flush()}setupIncomingPayloadHandler(){this.client.on("e",this.handleIncomingPayload.bind(this))}handleIncomingPayload(e){if("nudge.show"===e.type){const{nudgeId:t}=e.payload;if(this.recentNudgeIds.has(t))return;this.recentNudgeIds.add(t),this.dispatchEventListeners("nudge.show",e.payload)}}dispatchEventListeners(e,t){this.eventListeners[e]?.forEach(e=>e(t))}on(e,t){this.knownEvents.includes(e)&&(this.eventListeners[e]||(this.eventListeners[e]=[]),this.eventListeners[e].push(t))}off(e,t){this.knownEvents.includes(e)&&this.eventListeners[e]&&(this.eventListeners[e]=this.eventListeners[e].filter(e=>e!==t),0===this.eventListeners[e].length&&delete this.eventListeners[e])}async send(e,t){return this.options.disabled||this.options.filter&&!this.options.filter(e)?Promise.resolve():this.options.waitForUser&&!this.userId?(this.queue.push(e),Promise.resolve()):this.client.send("t",e,t)}setGlobalProperties(e){this.global={...this.global,...e}}async track(e,t,r){return this.send({type:"event.track",payload:{name:e,userId:t?.userId??this.userId,properties:{...this.global??{},...t??{},...r?{_bfOverrides:r}:{}}}})}async identify(e){e.userId&&(this.userId=e.userId,this.flush());const t=document.querySelector("#bf-iframe-container .trigger-iframe");if(t){const r=()=>{t.contentWindow&&t.contentWindow.postMessage({type:"USER_IDENTIFY",payload:e},"*")};t.contentWindow&&r(),t.addEventListener("load",r)}if(Object.keys(e).length>1)return this.send({type:"user.identify",payload:{...e,properties:{...this.global,...e.properties}}})}async record(e,t){return this.send({type:"event.record",payload:{events:e,userId:this.userId}},t)}async alias(e){return this.send({type:"user.alias",payload:e})}async increment(e){return this.send({type:"user.increment",payload:e})}async decrement(e){return this.send({type:"user.decrement",payload:e})}clear(){this.userId=void 0}flush(){this.queue.forEach(e=>{this.send({...e,payload:{...e.payload,userId:e.payload.userId??this.userId}})}),this.queue=[]}}const Me=(()=>{let e=0;return()=>(e+=1,`u${`0000${(Math.random()*36**4|0).toString(36)}`.slice(-4)}${e}`)})();function je(e){const t=[];for(let r=0,n=e.length;r<n;r++)t.push(e[r]);return t}let ze=null;function Ne(e={}){return ze||(e.includeStyleProperties?(ze=e.includeStyleProperties,ze):(ze=je(window.getComputedStyle(document.documentElement)),ze))}function _e(e,t){const r=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return r?parseFloat(r.replace("px","")):0}function Te(e,t={}){return{width:t.width||function(e){const t=_e(e,"border-left-width"),r=_e(e,"border-right-width");return e.clientWidth+t+r}(e),height:t.height||function(e){const t=_e(e,"border-top-width"),r=_e(e,"border-bottom-width");return e.clientHeight+t+r}(e)}}const Pe=16384;function Le(e){return new Promise((t,r)=>{const n=new Image;n.onload=()=>{n.decode().then(()=>{requestAnimationFrame(()=>t(n))})},n.onerror=r,n.crossOrigin="anonymous",n.decoding="async",n.src=e})}async function Fe(e,t,r){const n="http://www.w3.org/2000/svg",s=document.createElementNS(n,"svg"),i=document.createElementNS(n,"foreignObject");return s.setAttribute("width",`${t}`),s.setAttribute("height",`${r}`),s.setAttribute("viewBox",`0 0 ${t} ${r}`),i.setAttribute("width","100%"),i.setAttribute("height","100%"),i.setAttribute("x","0"),i.setAttribute("y","0"),i.setAttribute("externalResourcesRequired","true"),s.appendChild(i),i.appendChild(e),async function(e){return Promise.resolve().then(()=>(new XMLSerializer).serializeToString(e)).then(encodeURIComponent).then(e=>`data:image/svg+xml;charset=utf-8,${e}`)}(s)}const De=(e,t)=>{if(e instanceof t)return!0;const r=Object.getPrototypeOf(e);return null!==r&&(r.constructor.name===t.name||De(r,t))};function Be(e,t,r,n){const s=`.${e}:${t}`,i=r.cssText?function(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}(r):function(e,t){return Ne(t).map(t=>`${t}: ${e.getPropertyValue(t)}${e.getPropertyPriority(t)?" !important":""};`).join(" ")}(r,n);return document.createTextNode(`${s}{${i}}`)}function Ue(e,t,r,n){const s=window.getComputedStyle(e,r),i=s.getPropertyValue("content");if(""===i||"none"===i)return;const o=Me();try{t.className=`${t.className} ${o}`}catch(Hk){return}const a=document.createElement("style");a.appendChild(Be(o,r,s,n)),t.appendChild(a)}const Ve="application/font-woff",We="image/jpeg",qe={woff:Ve,woff2:Ve,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:We,jpeg:We,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function Ye(e){const t=function(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}(e).toLowerCase();return qe[t]||""}function Ze(e){return-1!==e.search(/^(data:)/)}async function Ge(e,t,r){const n=await fetch(e,t);if(404===n.status)throw new Error(`Resource "${n.url}" not found`);const s=await n.blob();return new Promise((e,t)=>{const i=new FileReader;i.onerror=t,i.onloadend=()=>{try{e(r({res:n,result:i.result}))}catch(s){t(s)}},i.readAsDataURL(s)})}const Je={};async function $e(e,t,r){const n=function(e,t,r){let n=e.replace(/\?.*/,"");return r&&(n=e),/ttf|otf|eot|woff2?/i.test(n)&&(n=n.replace(/.*\//,"")),t?`[${t}]${n}`:n}(e,t,r.includeQueryParams);if(null!=Je[n])return Je[n];let s;r.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+(new Date).getTime());try{const n=await Ge(e,r.fetchRequestInit,({res:e,result:r})=>(t||(t=e.headers.get("Content-Type")||""),function(e){return e.split(/,/)[1]}(r)));s=function(e,t){return`data:${t};base64,${e}`}(n,t)}catch(i){s=r.imagePlaceholder||"";let t=`Failed to fetch resource: ${e}`;i&&(t="string"==typeof i?i:i.message),t&&console.warn(t)}return Je[n]=s,s}async function He(e,t){return De(e,HTMLCanvasElement)?async function(e){const t=e.toDataURL();return"data:,"===t?e.cloneNode(!1):Le(t)}(e):De(e,HTMLVideoElement)?async function(e,t){if(e.currentSrc){const t=document.createElement("canvas"),r=t.getContext("2d");return t.width=e.clientWidth,t.height=e.clientHeight,null==r||r.drawImage(e,0,0,t.width,t.height),Le(t.toDataURL())}const r=e.poster,n=Ye(r);return Le(await $e(r,n,t))}(e,t):De(e,HTMLIFrameElement)?async function(e,t){var r;try{if(null===(r=null==e?void 0:e.contentDocument)||void 0===r?void 0:r.body)return await et(e.contentDocument.body,t,!0)}catch(n){}return e.cloneNode(!1)}(e,t):e.cloneNode(Ke(e))}const Xe=e=>null!=e.tagName&&"SLOT"===e.tagName.toUpperCase(),Ke=e=>null!=e.tagName&&"SVG"===e.tagName.toUpperCase();function Qe(e,t,r){return De(t,Element)&&(function(e,t,r){const n=t.style;if(!n)return;const s=window.getComputedStyle(e);s.cssText?(n.cssText=s.cssText,n.transformOrigin=s.transformOrigin):Ne(r).forEach(r=>{let i=s.getPropertyValue(r);if("font-size"===r&&i.endsWith("px")){const e=Math.floor(parseFloat(i.substring(0,i.length-2)))-.1;i=`${e}px`}De(e,HTMLIFrameElement)&&"display"===r&&"inline"===i&&(i="block"),"d"===r&&t.getAttribute("d")&&(i=`path(${t.getAttribute("d")})`),n.setProperty(r,i,s.getPropertyPriority(r))})}(e,t,r),function(e,t,r){Ue(e,t,":before",r),Ue(e,t,":after",r)}(e,t,r),function(e,t){De(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),De(e,HTMLInputElement)&&t.setAttribute("value",e.value)}(e,t),function(e,t){if(De(e,HTMLSelectElement)){const r=t,n=Array.from(r.children).find(t=>e.value===t.getAttribute("value"));n&&n.setAttribute("selected","")}}(e,t)),t}async function et(e,t,r){return r||!t.filter||t.filter(e)?Promise.resolve(e).then(e=>He(e,t)).then(r=>async function(e,t,r){var n,s;if(Ke(t))return t;let i=[];return i=Xe(e)&&e.assignedNodes?je(e.assignedNodes()):De(e,HTMLIFrameElement)&&(null===(n=e.contentDocument)||void 0===n?void 0:n.body)?je(e.contentDocument.body.childNodes):je((null!==(s=e.shadowRoot)&&void 0!==s?s:e).childNodes),0===i.length||De(e,HTMLVideoElement)||await i.reduce((e,n)=>e.then(()=>et(n,r)).then(e=>{e&&t.appendChild(e)}),Promise.resolve()),t}(e,r,t)).then(r=>Qe(e,r,t)).then(e=>async function(e,t){const r=e.querySelectorAll?e.querySelectorAll("use"):[];if(0===r.length)return e;const n={};for(let i=0;i<r.length;i++){const s=r[i].getAttribute("xlink:href");if(s){const r=e.querySelector(s),i=document.querySelector(s);r||!i||n[s]||(n[s]=await et(i,t,!0))}}const s=Object.values(n);if(s.length){const t="http://www.w3.org/1999/xhtml",r=document.createElementNS(t,"svg");r.setAttribute("xmlns",t),r.style.position="absolute",r.style.width="0",r.style.height="0",r.style.overflow="hidden",r.style.display="none";const n=document.createElementNS(t,"defs");r.appendChild(n);for(let e=0;e<s.length;e++)n.appendChild(s[e]);e.appendChild(r)}return e}(e,t)):null}const tt=/url\((['"]?)([^'"]+?)\1\)/g,rt=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,nt=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;async function st(e,t,r,n,s){try{const i=r?function(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const r=document.implementation.createHTMLDocument(),n=r.createElement("base"),s=r.createElement("a");return r.head.appendChild(n),r.body.appendChild(s),t&&(n.href=t),s.href=e,s.href}(t,r):t,o=Ye(t);let a;return s||(a=await $e(i,o,n)),e.replace(function(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}(t),`$1${a}$3`)}catch(i){}return e}function it(e){return-1!==e.search(tt)}async function ot(e,t,r){if(!it(e))return e;const n=function(e,{preferredFontFormat:t}){return t?e.replace(nt,e=>{for(;;){const[r,,n]=rt.exec(e)||[];if(!n)return"";if(n===t)return`src: ${r};`}}):e}(e,r),s=function(e){const t=[];return e.replace(tt,(e,r,n)=>(t.push(n),e)),t.filter(e=>!Ze(e))}(n);return s.reduce((e,n)=>e.then(e=>st(e,n,t,r)),Promise.resolve(n))}async function at(e,t,r){var n;const s=null===(n=t.style)||void 0===n?void 0:n.getPropertyValue(e);if(s){const n=await ot(s,null,r);return t.style.setProperty(e,n,t.style.getPropertyPriority(e)),!0}return!1}async function lt(e,t){De(e,Element)&&(await async function(e,t){await at("background",e,t)||await at("background-image",e,t),await at("mask",e,t)||await at("-webkit-mask",e,t)||await at("mask-image",e,t)||await at("-webkit-mask-image",e,t)}(e,t),await async function(e,t){const r=De(e,HTMLImageElement);if((!r||Ze(e.src))&&(!De(e,SVGImageElement)||Ze(e.href.baseVal)))return;const n=r?e.src:e.href.baseVal,s=await $e(n,Ye(n),t);await new Promise((n,i)=>{e.onload=n,e.onerror=t.onImageErrorHandler?(...e)=>{try{n(t.onImageErrorHandler(...e))}catch(r){i(r)}}:i;const o=e;o.decode&&(o.decode=n),"lazy"===o.loading&&(o.loading="eager"),r?(e.srcset="",e.src=s):e.href.baseVal=s})}(e,t),await async function(e,t){const r=je(e.childNodes).map(e=>lt(e,t));await Promise.all(r).then(()=>e)}(e,t))}const ct={};async function ht(e){let t=ct[e];if(null!=t)return t;const r=await fetch(e);return t={url:e,cssText:await r.text()},ct[e]=t,t}async function ut(e,t){let r=e.cssText;const n=/url\(["']?([^"')]+)["']?\)/g,s=(r.match(/url\([^)]+\)/g)||[]).map(async s=>{let i=s.replace(n,"$1");return i.startsWith("https://")||(i=new URL(i,e.url).href),Ge(i,t.fetchRequestInit,({result:e})=>(r=r.replace(s,`url(${e})`),[s,e]))});return Promise.all(s).then(()=>r)}function dt(e){if(null==e)return[];const t=[];let r=e.replace(/(\/\*[\s\S]*?\*\/)/gi,"");const n=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const e=n.exec(r);if(null===e)break;t.push(e[0])}r=r.replace(n,"");const s=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,i=new RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let e=s.exec(r);if(null===e){if(e=i.exec(r),null===e)break;s.lastIndex=i.lastIndex}else i.lastIndex=s.lastIndex;t.push(e[0])}return t}async function pt(e,t){if(null==e.ownerDocument)throw new Error("Provided element is not within a Document");const r=je(e.ownerDocument.styleSheets),n=await async function(e,t){const r=[],n=[];return e.forEach(r=>{if("cssRules"in r)try{je(r.cssRules||[]).forEach((e,s)=>{if(e.type===CSSRule.IMPORT_RULE){let i=s+1;const o=ht(e.href).then(e=>ut(e,t)).then(e=>dt(e).forEach(e=>{try{r.insertRule(e,e.startsWith("@import")?i+=1:r.cssRules.length)}catch(t){console.error("Error inserting rule from remote css",{rule:e,error:t})}})).catch(e=>{console.error("Error loading remote css",e.toString())});n.push(o)}})}catch(s){const i=e.find(e=>null==e.href)||document.styleSheets[0];null!=r.href&&n.push(ht(r.href).then(e=>ut(e,t)).then(e=>dt(e).forEach(e=>{i.insertRule(e,i.cssRules.length)})).catch(e=>{console.error("Error loading remote stylesheet",e)})),console.error("Error inlining remote css file",s)}}),Promise.all(n).then(()=>(e.forEach(e=>{if("cssRules"in e)try{je(e.cssRules||[]).forEach(e=>{r.push(e)})}catch(t){console.error(`Error while reading CSS rules from ${e.href}`,t)}}),r))}(r,t);return function(e){return e.filter(e=>e.type===CSSRule.FONT_FACE_RULE).filter(e=>it(e.style.getPropertyValue("src")))}(n)}function mt(e){return e.trim().replace(/["']/g,"")}async function ft(e,t){const r=await pt(e,t),n=function(e){const t=new Set;return function e(r){(r.style.fontFamily||getComputedStyle(r).fontFamily).split(",").forEach(e=>{t.add(mt(e))}),Array.from(r.children).forEach(t=>{t instanceof HTMLElement&&e(t)})}(e),t}(e);return(await Promise.all(r.filter(e=>n.has(mt(e.style.fontFamily))).map(e=>{const r=e.parentStyleSheet?e.parentStyleSheet.href:null;return ot(e.cssText,r,t)}))).join("\n")}async function gt(e,t={}){const{width:r,height:n}=Te(e,t),s=await et(e,t,!0);await async function(e,t){const r=null!=t.fontEmbedCSS?t.fontEmbedCSS:t.skipFonts?null:await ft(e,t);if(r){const t=document.createElement("style"),n=document.createTextNode(r);t.appendChild(n),e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}}(s,t),await lt(s,t),function(e,t){const{style:r}=e;t.backgroundColor&&(r.backgroundColor=t.backgroundColor),t.width&&(r.width=`${t.width}px`),t.height&&(r.height=`${t.height}px`);const n=t.style;null!=n&&Object.keys(n).forEach(e=>{r[e]=n[e]})}(s,t);return await Fe(s,r,n)}async function yt(e,t={}){const{width:r,height:n}=Te(e,t),s=await gt(e,t),i=await Le(s),o=document.createElement("canvas"),a=o.getContext("2d"),l=t.pixelRatio||function(){let e,t;try{t=process}catch(n){}const r=t&&t.env?t.env.devicePixelRatio:null;return r&&(e=parseInt(r,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}(),c=t.canvasWidth||r,h=t.canvasHeight||n;return o.width=c*l,o.height=h*l,t.skipAutoScale||function(e){(e.width>Pe||e.height>Pe)&&(e.width>Pe&&e.height>Pe?e.width>e.height?(e.height*=Pe/e.width,e.width=Pe):(e.width*=Pe/e.height,e.height=Pe):e.width>Pe?(e.height*=Pe/e.width,e.width=Pe):(e.width*=Pe/e.height,e.height=Pe))}(o),o.style.width=`${c}`,o.style.height=`${h}`,t.backgroundColor&&(a.fillStyle=t.backgroundColor,a.fillRect(0,0,o.width,o.height)),a.drawImage(i,0,0,o.width,o.height),o}async function bt(e){const t=document.documentElement.scrollHeight,r=document.documentElement.scrollWidth,n=Array.from(document.styleSheets).map(e=>{try{return Array.from(e.cssRules).map(e=>e.cssText).join("")}catch(t){return""}}).join("\n"),s=document.createElement("style");s.textContent=n,e.appendChild(s);const i=await async function(e,t={}){return(await yt(e,t)).toDataURL()}(e,{quality:.7,width:r,height:t,style:{transform:"scale(1)"},skipFonts:!0,cacheBust:!0,backgroundColor:"white",fetchRequestInit:{mode:"cors"},filter:e=>!["bf-nocapture"].some(t=>e.classList?.contains(t)),imagePlaceholder:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+P+/HgAFdwI2QJIhFwAAAABJRU5ErkJggg=="});return e.removeChild(s),i}const wt=new RegExp("((("+/(^|\.\s+)(dear|hi|hello|greetings|hey|hey there)/gi.source+")|("+/(thx|thanks|thank you|regards|best|[a-z]+ly|[a-z]+ regards|all the best|happy [a-z]+ing|take care|have a [a-z]+ (weekend|night|day))/gi.source+"\\s*[,.!]*))[\\s-]*)","gi"),kt=new RegExp("( ?(([A-Z][a-z]+)|([A-Z]\\.)))+([,.]|[,.]?$)","gm"),vt=new RegExp("\\b(\\s*)(\\s*("+["aaron","abad","abarca","abbate","abbey","abbie","abbott","abby","abdullah","abel","abell","abercrombie","abernathy","abernethy","abeyta","abigail","ables","abner","abney","abraham","abrams","abramson","abrego","abreu","absher","abshire","acevedo","aceves","acker","ackerman","ackley","acklin","acord","acosta","acree","acuff","acuna","ada","adah","adair","adaline","adam","adame","adames","adams","adamski","adamson","adcock","addie","addington","addis","addison","adela","adelaida","adelaide","adele","adelia","adelina","adeline","adell","adella","adelle","adena","adina","adkins","adkinson","adkison","adkisson","adler","adorno","adria","adrian","adriana","adriane","adrianna","adrianne","adrien","adriene","adrienne","afton","agatha","agnes","agnew","agnus","agosto","agripina","aguayo","agueda","aguero","aguiar","aguila","aguilar","aguilera","aguirre","agustin","agustina","ahearn","ahern","ahlers","ahmad","ahmed","ahn","ahner","aho","ahrens","ahumada","aida","aiello","aiken","aikens","aiko","aileen","ailene","aimee","ainsworth","aisha","aitken","aja","aker","akers","akiko","akilah","akins","alaina","alaine","alan","alana","alane","alanis","alaniz","alanna","alarcon","alayna","alba","albanese","albano","albaugh","albers","albert","alberta","albertha","albertina","albertine","alberto","albertson","albin","albina","albrecht","albright","albritton","alcala","alcantar","alcantara","alcaraz","alcorn","alda","aldana","alden","alderete","alderson","aldrich","aldridge","alease","alecia","aleen","aleida","aleisha","alejandra","alejandrina","alejandro","aleman","alena","alene","alesha","aleshia","alesia","alessandra","alessi","aleta","aletha","alethea","alethia","alex","alexa","alexander","alexandra","alexandria","alexia","alexis","alfano","alfaro","alfonso","alford","alfred","alfreda","alfredia","alger","ali","alia","alica","alice","alicea","alicia","alida","alina","aline","alisa","alise","alisha","alishia","alisia","alison","alissa","alita","alix","aliza","alla","allain","allan","allard","alleen","allegra","alleman","allen","allena","allene","alleyne","allgood","allie","alline","allison","allman","allmon","allred","allyn","allyson","alma","almanza","almaraz","almazan","almeda","almeida","almeta","almonte","alona","alonso","alonzo","alpert","alston","alsup","alta","altagracia","altamirano","altha","althea","altman","alton","alva","alvarado","alvardo","alvarez","alvera","alverez","alverson","alverta","alves","alvey","alvina","alvis","alyce","alycia","alysa","alyse","alysha","alysia","alyson","alyssa","amada","amador","amal","amalia","aman","amanda","amaral","amaro","amato","amaya","amber","amberly","ambriz","ambrose","amee","amelia","america","amerson","ames","amey","amick","amie","amiee","amin","amina","amira","ammerman","ammie","amos","amparo","amundson","amy","anabel","analisa","anamaria","anastacia","anastasia","anaya","ancheta","andera","anders","andersen","anderson","anderton","andes","andino","andra","andrade","andre","andrea","andree","andres","andresen","andress","andrew","andrews","andria","andrus","anette","ange","angela","angele","angelena","angeles","angelia","angelica","angelika","angelina","angeline","angelique","angelita","angell","angella","angelo","angelyn","angie","angila","angla","anglea","anglin","anguiano","angulo","angus","anh","anika","anisa","anisha","anissa","anita","anitra","anja","anjanette","anjelica","ann","anna","annabel","annabell","annabelle","annalee","annalisa","annamae","annamaria","annamarie","anne","anneliese","annelle","annemarie","annett","annetta","annette","annice","annie","annika","annis","annita","annmarie","anselmo","ansley","anson","anthony","antionette","antoine","antoinette","anton","antonelli","antonetta","antonette","antonia","antonietta","antonina","antonio","anya","aparicio","apodaca","apolonia","aponte","appleby","applegate","appleton","applewhite","appling","apryl","aquilar","aquino","araceli","aracelis","aracely","aragon","araiza","arana","aranda","arango","araujo","arbogast","arbuckle","arce","arcelia","arceneaux","archambault","archibald","archie","archuleta","arciniega","ardath","ardelia","ardell","ardella","ardelle","ardis","ardith","ardoin","arellano","aretha","arevalo","argelia","argentina","argo","arguelles","arguello","argueta","ariana","ariane","arianna","arianne","arica","arie","ariel","arielle","arla","arlean","arleen","arlena","arlene","arletha","arletta","arlette","arlinda","arline","arlyne","armanda","armandina","armbruster","armendariz","armenta","armentrout","armes","armida","armijo","arminda","armistead","armitage","armstead","armstrong","arndt","arneson","arnett","arnetta","arnette","arnita","arnold","arnone","aronson","arredondo","arreola","arriaga","arrington","arriola","arrowood","arruda","arsenault","arteaga","arthur","artie","artis","arvilla","arvizu","arwood","arzola","asberry","asbury","asha","ashanti","ashbaugh","ashburn","ashby","ashcraft","ashe","ashely","asher","ashford","ashlea","ashlee","ashleigh","ashley","ashli","ashlie","ashly","ashlyn","ashmore","ashton","ashworth","asia","askins","asley","assunta","aston","astrid","asuncion","atchison","atchley","atencio","athena","atherton","athey","atkins","atkinson","attaway","atwater","atwell","atwood","aube","aubin","aubrey","aucoin","audet","audette","audie","audra","audrea","audrey","audria","audrie","audry","augusta","augustin","augustina","augustine","augustus","ault","aultman","aundrea","aurea","aurelia","aurora","aurore","austin","auten","autrey","autry","ava","avalos","avelar","avelina","avent","averett","averill","avery","avila","aviles","avina","avis","avril","awilda","ayako","ayala","ayana","ayanna","aycock","ayer","ayers","ayesha","ayotte","azalee","azar","azevedo","azucena","azzie","babara","babb","babcock","baber","babette","babin","babineaux","baca","bachman","backman","backus","bader","badgett","badillo","baer","baez","baeza","bagby","baggett","bagley","bagwell","bahena","bahr","baier","bailes","bailey","baillargeon","baily","bain","baines","bair","baird","baisden","bakke","bakken","bakker","balch","balcom","balderas","baldridge","baldwin","ballance","ballard","ballenger","ballentine","ballesteros","ballew","ballinger","ballou","baltazar","balzer","bambi","banas","bancroft","bankhead","bankston","bannon","banta","banuelos","bao","baptiste","barabara","barahona","barajas","baran","baranowski","barba","barbar","barbara","barbee","barbera","barbieri","barbosa","barbour","barboza","barbra","barclay","barden","bardwell","barela","barfield","barger","barham","barhorst","barkley","barksdale","barlow","barnard","barner","barnes","barnett","barnette","barnhart","barnhill","barnum","barnwell","barone","barr","barragan","barraza","barrera","barreto","barrett","barrick","barrie","barrientos","barringer","barrington","barron","barros","barry","barta","bartel","bartell","bartels","barth","bartholomew","bartlett","bartley","barto","bartz","bascom","basham","basile","basilia","basinger","baskerville","baskin","bassett","bastian","batchelder","batchelor","bateman","batey","batista","batson","battaglia","battista","batton","baty","baucom","bauer","baugh","baugher","baughman","baum","bauman","baumann","baumgardner","baumgartner","bautista","baxley","bayer","bayless","baylor","bayne","bazan","bazemore","beaird","beal","beale","beall","beals","beaman","beamon","beane","bearden","beardsley","beasley","beason","beaton","beatrice","beatris","beatriz","beattie","beatty","beaty","beauchamp","beaudette","beaudoin","beaudry","beaulah","beaulieu","beaumont","beauregard","bebe","becerra","bechtel","bechtold","becker","beckett","beckford","beckham","becki","beckie","beckley","beckman","beckner","beckwith","becky","becnel","bedard","bedford","bedwell","beebe","beecher","beeler","beem","beeman","beene","beesley","beeson","begay","beggs","begley","behling","behr","behrens","bejarano","belanger","belden","belen","belew","belia","belinda","belisle","belk","belkis","belknap","bella","bellamy","belle","beller","bellinger","bello","belton","beltran","beltz","belva","bemis","benally","benavides","benavidez","benbow","benedetto","benedict","benefield","benfield","benford","benge","benham","benita","benites","benitez","benn","benner","bennett","bennie","benning","bennington","benoit","benson","bentley","benton","bentz","benz","berard","berenice","bergen","berger","bergeron","bergin","berglund","bergman","bergmann","bergquist","bergstrom","berkey","berkley","berkowitz","berman","bermudez","berna","bernadette","bernadine","bernal","bernard","bernarda","bernardina","bernardine","bernardo","berndt","berneice","berner","bernetta","bernhardt","bernice","bernie","berniece","bernier","bernita","bernstein","berrios","berryhill","berryman","berta","bertha","bertie","bertram","bertrand","berube","beryl","bess","bessette","bessie","betancourt","beth","bethanie","bethann","bethany","bethea","bethel","bethune","betsey","betsy","bette","bettencourt","bettie","bettina","bettis","betts","betty","bettyann","bettye","betz","beula","beulah","bev","bevan","beveridge","beverlee","beverley","beverly","bevins","bevis","bewley","beyer","bianca","bianchi","bianco","bibb","bibbs","bickel","bickerstaff","bickford","biddle","bidwell","bieber","bierman","bigelow","biggers","biggerstaff","bigham","bigler","bigley","bilbrey","biller","billi","billie","billingsley","billington","billiot","billups","billy","billye","bilodeau","bilyeu","binette","binford","bingaman","bingham","binion","binkley","binns","birchfield","birdsall","birdsong","birdwell","birgit","birmingham","birnbaum","birt","bischoff","bissell","bissonnette","bitner","bittner","bivens","bivins","bixby","bixler","blackburn","blackford","blackman","blackmon","blackmore","blackshear","blackstock","blackstone","blackwell","blaine","blair","blais","blaisdell","blake","blakely","blakemore","blakeney","blakeslee","blakey","blakley","blakney","blalock","blanc","blanca","blanch","blanchard","blanche","blanchette","blanding","blaney","blankenship","blanton","blaylock","bledsoe","blevins","bloch","blodgett","blomquist","blondell","bloodworth","bloomfield","blouin","blount","bluhm","blum","blume","blumenthal","bly","blythe","boardman","boatright","boatwright","bobb","bobbi","bobbie","bobbitt","bobby","bobbye","bobette","bobo","bocanegra","boddie","boden","bodine","bodnar","boehm","boettcher","bogard","bogart","boger","boggess","boggs","bohannan","bohannon","bohn","boisvert","bojorquez","bok","boland","bolanos","bolding","boldt","bolduc","bolen","boley","bolick","bolin","boling","bolinger","bollinger","bolton","bolyard","boman","bomar","bonanno","boney","bonham","bonilla","bonin","bonita","bonnell","bonner","bonnett","bonney","bonnie","bonny","bono","booher","booker","bookout","boone","boothe","bopp","borchardt","borchers","bordeaux","bordelon","borden","boren","borg","borges","borja","borkowski","borowski","borrego","borrero","borst","bosch","bosco","bosley","bost","bostic","bostick","bostwick","boswell","bosworth","botelho","botello","bouchard","boucher","boudreau","boudreaux","bouffard","boughton","bouie","boulanger","bouldin","boulware","bourassa","bourque","bousquet","boutin","boutte","boutwell","bova","bove","bowden","bowe","bowen","bowens","bowes","bowie","bowker","bowles","bowlin","boyce","boyd","boyer","boyes","boyett","boyette","boykin","boykins","boylan","boyle","boyles","boynton","bozarth","bozeman","bracey","brackett","bracy","bradberry","bradbury","braddock","braddy","braden","bradfield","bradford","bradley","bradshaw","brady","bragdon","bragg","brainard","braithwaite","braley","bramblett","bramlett","brammer","branda","brande","brandee","brandenburg","brandes","brandi","brandie","brandon","brandt","branham","brann","brannan","brannen","brannon","branscum","branson","brantley","branton","branum","brashear","braswell","bratcher","bratton","braud","brauer","braun","brawley","brawner","braxton","brayton","brazell","braziel","breana","breann","breanna","breanne","breault","breaux","breazeale","breckenridge","bree","breeden","breedlove","breen","brehm","breland","bremer","brenda","brenna","brennan","brenneman","brenner","bresnahan","brett","bretz","breunig","brewington","brewton","brian","briana","brianna","brianne","brice","briceno","bricker","brickey","bridgeman","bridgers","bridget","bridgett","bridgette","bridgewater","brien","brigette","briggs","brigham","brigid","brigida","brigitte","briley","brinda","brinker","brinkley","brinkman","brinson","brinton","briones","brisco","briscoe","briseno","brisson","brister","bristol","bristow","britany","britney","britni","brito","britt","britta","brittain","brittaney","brittani","brittanie","brittany","britteny","brittingham","brittney","brittni","brittny","britton","broadbent","broaddus","broadnax","broadus","broadwater","brochu","brockington","brockman","brockway","broderick","brodeur","brodie","brodsky","brody","brogdon","brokaw","bromley","bronson","bronwyn","brooke","brooker","brookins","brookshire","broome","broomfield","brophy","brotherton","broughton","broussard","browder","brower","browne","brownell","brownfield","brownlee","broyles","brubaker","bruce","brumbaugh","brumfield","brumley","brummett","bruna","brundage","brune","brunelle","bruner","brunilda","brunner","bruno","bruns","brunson","bruton","bryan","bryanna","bryant","bryce","brynn","bryson","bucci","buchanan","bucher","buchholz","buckingham","buckley","buckman","buckner","budd","budde","buehler","buell","buena","bueno","buenrostro","buettner","buffington","bufford","buffy","buford","bugg","buggs","bui","buie","bula","bulah","bullard","bullen","buller","bullington","bullins","bullis","bulter","bumgardner","bumgarner","bunn","bunnell","bunton","burbank","burch","burcham","burchell","burchett","burchette","burchfield","burdett","burdette","burdick","burdine","burford","burge","burgett","burgin","burgos","burkett","burkey","burkhalter","burkhardt","burkhart","burkholder","burleigh","burleson","burlingame","burma","burmeister","burnell","burnett","burnette","burney","burnham","burrell","burress","burris","burroughs","burrus","burruss","burson","burt","burwell","busch","bushey","bushnell","bussard","busse","bussell","bussey","bustamante","bustos","butterfield","butterworth","butz","buxton","buzzell","byars","bybee","byer","byerly","byers","byington","byler","bynum","byrd","byrne","byrnes","byron","byrum","caballero","caban","cabe","cabral","cabrales","cabrera","caceres","caddell","cadena","cadwell","cady","caffey","cagle","cahill","cahoon","caine","caines","caitlin","caitlyn","calabro","calandra","calder","calderon","caldwell","calfee","calhoun","calista","callaghan","callahan","callaway","callen","callender","callie","callihan","callis","callison","calloway","calton","calvert","calvillo","calvin","calvo","calzada","camacho","camara","camarena","camargo","camarillo","cambell","camelia","camellia","cameron","cami","camie","camila","camilla","camille","camire","cammack","cammie","cammy","campbell","campuzano","canada","canaday","canady","canales","candace","candance","candelaria","candelario","candi","candice","candida","candie","candis","candler","candra","candyce","cannady","cano","cantara","cantrell","cantu","cantwell","cao","capel","capone","capps","caprice","capuano","caputo","cara","caraballo","carbajal","carbaugh","carbone","carden","cardenas","cardin","cardinale","cardona","cardoso","cardoza","cardwell","caren","carey","cargile","cargill","cari","caridad","carie","carillo","carin","carina","carisa","carissa","carita","carl","carla","carlee","carleen","carlena","carlene","carleton","carletta","carley","carli","carlie","carlile","carlin","carline","carlisle","carlita","carlo","carlos","carlota","carlotta","carlsen","carlson","carlton","carly","carlyle","carlyn","carma","carmack","carman","carmel","carmela","carmelia","carmelina","carmelita","carmella","carmen","carmichael","carmina","carmody","carmon","carmona","carnahan","carner","carnes","caro","carola","carolann","carole","carolee","carolin","carolina","caroline","caroll","carolyn","carolyne","carolynn","caron","carothers","caroyln","carpio","carranza","carrasco","carrasquillo","carreno","carreon","carrera","carrero","carri","carrico","carrie","carrigan","carrillo","carrington","carrizales","carrol","carroll","carruth","carruthers","carson","carswell","cartagena","cartier","carty","caruso","caruthers","carvajal","carvalho","cary","caryl","carylon","caryn","casandra","casanova","casares","casarez","casavant","cascio","casey","cashman","casiano","casias","casie","casillas","casimira","caskey","cason","casper","cass","cassady","cassandra","cassaundra","cassel","cassell","cassey","cassi","cassidy","cassie","cassity","cassondra","cassy","castaneda","castano","castanon","casteel","castellano","castellanos","castello","castillo","castleberry","castleman","casto","caston","castorena","castro","caswell","catalan","catalano","catalina","catarina","caterina","catharine","cathcart","catherin","catherina","catherine","cathern","catheryn","cathey","cathi","cathie","cathleen","cathrine","cathryn","cathy","catina","catlett","catlin","cato","caton","catrice","catrina","catron","caudell","caudill","cauley","caulfield","cauthen","cavanaugh","cavazos","cavender","cavin","caviness","cawley","cawthon","cayla","caylor","cazares","ceasar","ceballos","cecelia","cecil","cecila","cecile","cecilia","cecille","cecily","cedeno","cedillo","ceja","celena","celesta","celeste","celestina","celestine","celia","celina","celinda","celine","celsa","centeno","ceola","cepeda","cerda","cervantes","cervantez","chabot","chacon","chadwell","chadwick","chae","chaffee","chaffin","chafin","chaisson","chalfant","chalmers","chamberlain","chamberlin","chamblee","chambless","chambliss","chamness","champlin","chan","chana","chanda","chandra","chanel","chanell","chanelle","chaney","chang","chantal","chantay","chante","chantel","chantell","chantelle","chao","chapa","chaparro","chapin","chaplin","chappell","chapple","chara","charbonneau","charest","charette","charis","charise","charissa","charisse","charita","charla","charland","charleen","charlena","charlene","charles","charlesetta","charlette","charley","charlie","charline","charlott","charlotte","charlsie","charlton","charlyn","charmain","charmaine","charolette","charron","chartier","chasidy","chasity","chassidy","chastain","chasteen","chatham","chatman","chau","chavarria","chavers","chaves","chavez","chavira","chavis","chaya","cheatham","chee","chelsea","chelsey","chelsie","chen","chenault","cheney","cheng","chenoweth","cher","chere","cheree","cherelle","cheri","cherie","cherilyn","cherise","cherly","cherlyn","cherri","cherrie","cherryl","chery","cheryl","cheryle","cheryll","chesser","chesson","chester","cheung","chewning","cheyenne","chiang","chidester","chieko","childers","childress","childs","chilton","ching","chinn","chipman","chiquita","chisholm","chism","chisolm","chitwood","chiu","chloe","cho","choate","choe","choi","chong","chouinard","chris","chrisman","chrissy","christ","christa","christal","christeen","christel","christen","christena","christene","christensen","christenson","christi","christia","christian","christiana","christiane","christiansen","christianson","christie","christin","christina","christine","christinia","christman","christmas","christner","christopher","christopherso","christy","chronister","chrystal","chu","chun","chung","churchill","churchwell","ciara","cicely","ciera","cierra","cimino","cinda","cinderella","cindi","cindie","cindy","cinthia","cintron","cioffi","cira","cisneros","claar","claiborne","clair","claire","clancy","clanton","clapp","clara","clardy","clare","clarence","claretha","claretta","claribel","clarice","clarinda","clarine","claris","clarisa","clarissa","clarita","clark","clarke","clarkson","classie","claude","claudette","claudia","claudie","claudine","claudio","claus","clausen","claussen","clawson","claxton","claycomb","claypool","claypoole","clayton","claytor","cleary","clegg","cleghorn","cleland","clelia","clemencia","clemens","clemente","clementina","clementine","clements","clemmer","clemmie","clemmons","clemons","cleo","cleopatra","cleora","cleotilde","cleta","cleveland","clevenger","clifford","clifton","clinkscales","clinton","cloninger","clora","clorinda","clotilde","clouse","cloutier","clower","clowers","cloyd","cluff","clyburn","clyde","clymer","coakley","coan","coates","cobos","coburn","cochran","cochrane","cockerham","cockrell","codi","cody","coe","coelho","coen","cofer","coffelt","coffey","coffman","cofield","cogan","coggins","cogswell","cohen","cohn","coker","colangelo","colbert","colburn","colby","coldiron","coleen","colella","coleman","colene","coletta","colette","collado","collazo","colleen","collen","collene","collett","collette","colletti","colley","collin","collins","collinsworth","collum","colman","colombo","colquitt","colson","colston","colton","colucci","colunga","colvin","colwell","comeau","comeaux","compton","comstock","conant","conaway","concepcion","concetta","concha","conchita","conde","condon","congdon","conklin","conley","conlin","conlon","connally","connell","connelly","connie","connolly","connor","connors","conover","conrad","conroy","constance","constantine","constantino","consuela","consuelo","contessa","conti","contreras","conway","conwell","conyers","cooke","cooksey","cookson","cooley","coolidge","coomer","cooney","copeland","copenhaver","copley","coppage","coppola","cora","coralee","coralie","corazon","corbett","corbin","corbitt","corcoran","cordeiro","cordelia","cordell","corder","cordero","cordes","cordia","cordie","cordoba","cordova","coreen","corene","coretta","corey","cori","corie","corina","corine","corinna","corinne","corley","corliss","cormier","cornejo","cornelia","cornelison","cornelius","cornell","cornish","cornwell","coronado","coronel","corpuz","corr","corrales","correa","correia","correll","corrie","corrigan","corrin","corrina","corrine","corrinne","corriveau","corson","cortes","cortese","cortez","cortney","corum","corwin","cory","cosby","cosentino","cosgrove","cosme","cosper","costanzo","costello","coston","cota","cothran","cotten","cottingham","cottle","cotto","cottrell","cottrill","coughlin","coulombe","coulson","courson","courtney","covarrubias","covington","cowart","cowden","cowell","cowen","cowgill","cowles","cowley","coyle","coyne","cozart","crabb","crabtree","craddock","crafton","craighead","crain","cramer","crampton","crandall","crandell","cranford","crawford","crawley","crayton","creech","creekmore","creighton","crenshaw","creola","crespo","creswell","cribb","cribbs","crider","crigger","crim","criner","crippen","cris","criselda","criss","crissman","crissy","crist","crista","cristal","cristen","cristi","cristie","cristin","cristina","cristine","cristy","criswell","crites","crittenden","crocker","crockett","cromer","cromwell","cronin","croom","crosby","crossland","crossley","crossman","crosson","croteau","crotty","crowe","crowell","crowl","crowley","crowson","crowther","croy","cruce","crum","crumley","crumpler","crumpton","crutcher","crutchfield","cruz","crysta","crystle","cuc","cuellar","cuevas","culbertson","culbreth","cullen","culley","cullum","culp","culpepper","cumming","cummings","cundiff","cunha","cunningham","cuomo","cupp","curcio","cureton","curiel","curley","curran","currey","currin","curtin","curtis","curtiss","cusack","cushing","cushman","cusick","custer","cuthbertson","cutright","cutshall","cyndi","cyndy","cynthia","cyr","cyrstal","cyrus","cythia","dabbs","dabney","dacia","dacosta","dade","daggett","dagmar","dagny","dagostino","dahlberg","dahlgren","dahlia","daigle","dail","dailey","daina","daine","daisey","dakota","dale","dalene","dalessandro","dalessio","daley","dalia","dalila","dallas","dalrymple","dalton","daly","damaris","damato","dambrosio","dameron","damian","damiano","damico","damon","dampier","damron","dan","dana","danae","dancy","dandrea","dandridge","danelle","danette","danford","danforth","dangelo","dangerfield","dani","dania","danica","daniel","daniela","daniele","daniell","daniella","danielle","daniels","danielson","danika","danille","danita","danley","dann","danna","danner","dannette","dannie","dannielle","dansby","dantzler","danuta","danyel","danyell","danyelle","dao","daphine","daphne","dara","darby","darcel","darcey","darci","darcie","darcy","dardar","darden","daria","darla","darleen","darlena","darlene","darline","darnell","darr","darrow","daryl","dashiell","dasilva","daugherty","daughtry","daves","davey","david","davida","davidson","davie","davies","davila","davina","davis","davison","davisson","davy","dawes","dawkins","dawna","dawne","dawson","daye","dayle","dayna","daysi","dayton","deadra","deana","deanda","deandra","deandrea","deane","deangelis","deangelo","deann","deanna","deanne","dearborn","dearing","dearman","deas","deason","deaton","deaver","deb","debbi","debbie","debbra","debby","debera","deberry","debi","deboer","debora","deborah","debose","debra","debrah","debroah","decarlo","decastro","deckard","decosta","decoteau","dede","dedra","dee","deeann","deeanna","deedee","deedra","deegan","deel","deen","deena","deering","deese","deetta","defazio","defelice","degraw","degroot","deguzman","dehart","dehaven","deherrera","deidra","deidre","deirdre","deitz","deja","dejesus","dejong","delacruz","delafuente","delagarza","delaine","delana","delancey","delaney","delano","delao","delapaz","delarosa","delatorre","delcie","delena","deleon","delfina","delgadillo","delgado","delia","delicia","delila","delilah","delinda","delisa","delisle","delk","dell","della","dellinger","delma","delmy","deloach","delois","deloise","delong","delora","deloras","delorenzo","delores","deloris","delorse","delossantos","delozier","delp","delpha","delphia","delphine","delrio","delrosario","delsie","deltoro","deluca","deluna","delvalle","delvecchio","demarco","demars","demello","demers","demetra","demetria","demetrice","demetrius","deming","demoss","dempsey","dena","denae","dendy","deneen","denese","denham","denice","denis","denise","denisha","denison","denisse","denita","denman","denna","dennard","denney","dennis","dennise","dennison","denny","densmore","denson","denton","denyse","deon","deonna","depalma","depew","depriest","derosa","derose","derosier","derouen","derr","derryberry","desai","desalvo","desantis","desilva","desimone","desirae","desiree","desjardins","desmarais","desmond","desouza","despain","despina","desrochers","desrosiers","dessie","destefano","detra","detwiler","deutsch","devaney","devaughn","devault","dever","deville","devin","devine","devito","devlin","devoe","devon","devona","devora","devorah","devore","devries","dewberry","deweese","dewey","deyo","deyoung","dia","dian","diana","diane","diann","dianna","dianne","dias","diaz","dicarlo","dicken","dickenson","dickerson","dickinson","dickman","dickson","diedra","diedre","diego","diehl","diep","dierdre","dietrich","dietz","diez","diggins","diggs","digiacomo","digiovanni","digna","dillard","diller","dilley","dillingham","dillion","dillman","dillon","dillow","dilorenzo","dilworth","dimaggio","dimarco","dimmick","dina","dinah","dineen","dingess","dingman","dinh","dinkins","dinorah","dinsmore","dion","dione","dionna","dionne","diorio","dipietro","dishman","dismuke","disney","distefano","dittman","dittmer","divina","dix","dixie","dixon","dixson","dizon","doak","doan","doane","dobbs","dobson","doby","dockery","dodd","dodds","dodie","dodson","doering","doerr","doggett","doherty","doiron","dolan","dollie","dolores","doloris","dombrowski","domenica","dominga","domingo","dominguez","dominica","dominick","dominique","dominque","dominquez","domitila","domonique","dona","donahue","donald","donaldson","donato","donegan","donella","donelson","donetta","donette","doney","donita","donley","donna","donnell","donnelly","donner","donnetta","donnette","donnie","donofrio","donohoe","donohue","donovan","donya","doody","dooley","doolittle","dora","doran","dorathy","dorcas","dore","doreatha","doreen","dorene","doretha","dorethea","doretta","dori","doria","dorian","dorie","dorinda","dorine","doris","dorla","dorman","dorn","dorotha","dorothea","dorothy","dorris","dorsett","dorsey","dortch","dortha","dorthea","dorthey","dorthy","dorton","dostie","dotson","dottie","dotty","doucette","doud","dougherty","douglas","douglass","dovie","dowdell","dowden","dowell","dowling","downes","downey","doyle","doyon","drayton","dreama","dreher","drema","drennan","drennen","dressler","drews","dreyer","driggers","driscoll","driskell","drouin","drucilla","drumm","drummond","drury","drusilla","dryden","drye","duarte","dube","dubois","dubose","ducharme","duckett","duckworth","duclos","duda","dudek","dudley","duenas","duffey","duffy","dufour","dufrene","dufresne","dugan","dugas","duggan","dugger","duggins","duhon","dulaney","dulce","dulcie","duley","dulin","dumont","dunagan","dunaway","dunbar","duncan","dunford","dungan","dunham","dunigan","dunkin","dunkle","dunlap","dunleavy","dunlop","dunn","dunne","dunson","dunston","dunton","duong","duplessis","dupont","dupre","dupree","duprey","dupuis","duque","duquette","duran","durand","durante","durbin","durden","duren","durfee","durham","durkee","durkin","duron","durr","durrett","dusti","dustin","dutcher","dutra","dutton","duval","duvall","dvorak","dwana","dwyer","dyan","dykstra","dyson","eaddy","eades","eads","eady","eagan","eakin","eakins","eames","eanes","earle","earlean","earleen","earlene","earley","earlie","earline","earnestine","earp","eartha","easley","eason","easterday","eastman","easton","eastwood","eatmon","eaton","eberhardt","eberle","eberly","ebersole","ebert","ebner","eboni","ebonie","eby","eccles","echevarria","echeverria","echols","eck","eckard","eckenrode","ecker","eckert","eckhardt","ecklund","eckman","eckstein","eda","edda","eddie","eddings","eddington","eddins","edelman","edelmira","edelstein","eden","edens","edgar","edgerton","edgington","edie","edington","edison","edith","edmiston","edmond","edmonds","edmondson","edmonson","edmunds","edmundson","edna","edra","edris","edson","edward","edwards","edwina","edyth","edythe","effie","egan","egbert","eggert","eggleston","ehlers","ehrlich","ehtel","eichelberger","eicher","eichhorn","eichler","eidson","eiland","eileen","eilene","eisele","eisenberg","eklund","ela","eladia","elaina","elaine","elam","elana","elane","elanor","elayne","elba","elbert","elda","eldora","eldred","eldredge","eldridge","eleanor","eleanora","eleanore","elease","elena","elene","eleni","elenor","elenora","elenore","eleonor","eleonora","eleonore","eley","elfreda","elfrieda","elfriede","elgin","elia","eliana","elias","eliason","elicia","elida","elidia","elin","elina","elinor","elinore","elisa","elisabeth","elise","elisha","elissa","eliz","eliza","elizabet","elizabeth","elizbeth","elizebeth","elizondo","elke","elkins","ella","ellamae","ellan","elledge","ellen","ellena","ellender","eller","elli","ellie","ellinger","ellingson","ellington","elliot","elliott","ellis","ellison","ellsworth","elly","ellyn","elma","elmer","elmira","elmore","elna","elnora","elodia","elois","eloisa","eloise","elouise","elrod","elsa","elsie","elson","elston","elswick","elsy","elva","elvera","elvia","elvie","elvina","elvira","elwanda","elwell","elwood","ely","elyse","elza","ema","emanuel","embree","embrey","embry","emelda","emelia","emelina","emeline","emely","emerick","emerita","emerson","emiko","emilee","emilia","emilie","emily","emma","emmaline","emmert","emmett","emmie","emmons","emmy","emogene","emory","emrich","emrick","encarnacion","enciso","enda","endicott","endres","endsley","enedina","eneida","eng","engel","engelhardt","england","engle","engleman","engler","englert","english","engstrom","enid","enloe","ennis","enoch","enola","enos","enright","enriqueta","enriquez","ensor","epifania","epley","epperson","epps","epstein","erb","erdman","erdmann","eric","erica","ericka","erickson","ericson","erika","erin","erinn","erlene","erlinda","erline","erma","ermelinda","erminia","erna","ernest","ernestina","ernestine","ernst","erskine","ervin","erwin","eryn","escalante","escalera","escamilla","escobar","escobedo","eshelman","eskew","eskridge","eslinger","esmeralda","esparza","esperanza","espinal","espino","espinosa","espinoza","esposito","esqueda","esquibel","esquivel","essary","essex","essie","esta","estabrook","estefana","estela","estell","estella","estelle","estep","ester","estes","estevez","esther","estrada","estrella","etha","ethel","ethelene","ethelyn","etheridge","ethridge","ethyl","etienne","etsuko","etta","etter","ettie","eubank","eubanks","eudy","eufemia","eugena","eugene","eugenia","eugenie","eulah","eulalia","eun","euna","eunice","eura","eure","eusebia","eustolia","eva","evalyn","evan","evangelina","evangeline","evangelista","evans","eveland","evelia","evelin","evelina","eveline","evelyn","evelyne","evelynn","evenson","everett","everette","everhart","evers","eversole","everson","evette","evia","evie","evita","evon","evonne","ewa","ewald","ewell","ewing","exie","exum","eyler","ezell","ezzell","faber","fabian","fabiola","fabrizio","fagan","fahey","fairbanks","fairchild","faircloth","fairfield","fairley","faison","fajardo","falco","falcone","falgoust","falgout","falk","falkner","fallon","fancher","fanelli","fann","fannie","fannin","fanny","fant","farah","farber","faria","farias","faris","farkas","farley","farnham","farnsworth","farr","farrah","farrar","farrell","farrington","farris","farwell","fasano","fassett","fatima","fatimah","faucher","faught","faulk","faulkner","faust","faustina","faviola","fawcett","faye","fazio","featherston","featherstone","fecteau","feder","federico","feeley","feeney","fehr","feinberg","feinstein","felder","feldman","felecia","felica","felice","felicia","feliciano","felicidad","felicita","felicitas","felipa","felipe","felisa","felisha","felix","felker","feltner","felton","fenderson","fendley","fenn","fennell","fenner","fenske","fenton","fenwick","ferebee","ferguson","ferland","fermina","fernanda","fernande","fernandes","fernandez","fernando","ferne","ferrante","ferrari","ferraro","ferree","ferreira","ferrell","ferrer","ferretti","ferri","ferrin","ferris","ferro","fessler","fewell","fick","fidela","fidelia","fidler","fiedler","fierro","fifield","figueroa","fike","fikes","fillmore","filomena","fincher","findlay","findley","finke","finkelstein","finkle","finlay","finley","finn","finnegan","finnell","finney","fiona","fiore","fischer","fiscus","fishman","fiske","fite","fitz","fitzgerald","fitzhugh","fitzpatrick","fitzsimmons","fitzwater","flagg","flaherty","flanagan","flanders","flanigan","flannery","flatt","flavia","fleenor","fleetwood","fleischer","fleischman","flemming","fleta","flickinger","flinn","florance","florencia","florene","florentina","flores","floretta","florez","floria","florinda","florine","florio","florrie","flossie","flournoy","floy","floyd","fluellen","fluker","flynn","flynt","fogarty","fogel","fogg","foley","follett","folse","folsom","foltz","fonda","fong","fonseca","fontaine","fontana","fontanez","fontenot","fontes","foote","foran","forbes","forbis","forcier","forde","fordham","foret","forman","forney","forrest","forrester","forsberg","forster","forsyth","forsythe","fortenberry","fortier","fortin","fortner","fortney","fortson","fortuna","fortunato","foti","fournier","foust","fouts","fowlkes","foxworth","frady","fraga","fraley","frampton","fran","france","francene","frances","francesca","franchesca","francie","francina","francine","francis","francisca","francisco","franck","franco","francois","francoise","franke","frankel","frankie","franko","fransisca","frantz","franz","franzen","fraser","frasier","frausto","frawley","frazee","frazer","frazier","frechette","fred","freda","fredda","freddie","frederica","frederick","fredericka","fredericks","frederickson","fredette","fredia","fredrick","fredricka","fredrickson","freeda","freeland","freese","fregoso","freida","freitag","freitas","fretwell","freund","frey","frias","frick","fricke","frida","friday","frieda","friedman","friedrich","friel","frierson","friesen","frink","frisbee","frisbie","frisby","frisch","fritts","fritz","frizzell","froehlich","fromm","fruge","frye","fuchs","fuentes","fugate","fuhrman","fujimoto","fulbright","fulcher","fulford","fulk","fulkerson","fulks","fullerton","fullmer","fulmer","fulton","fults","fultz","fumiko","funches","funderburk","fung","funke","funkhouser","fuqua","furman","furr","furst","furtado","fusco","fussell","futch","futrell","fye","gabel","gabriel","gabriela","gabriele","gabriella","gabrielle","gaddis","gaddy","gadson","gaffney","gagliano","gagliardi","gagne","gagnon","gailey","gaines","gainey","gaitan","gaither","galan","galarza","galbraith","galbreath","galicia","galina","galindo","gallagher","gallaher","gallardo","gallaway","gallego","gallegos","galligan","gallion","gallman","gallo","galloway","gallup","galvan","galvez","galvin","gamache","gambill","gamboa","gambrell","gamez","gandy","gann","gannon","gantt","gantz","gaona","garay","garber","garcia","gard","gardiner","gardner","garfield","garibay","garica","garman","garmon","garnet","garnett","garofalo","garrard","garretson","garrett","garrick","garrido","garris","garrity","garrow","garry","gartner","garton","garver","garvey","garvin","gary","garza","gasaway","gaskill","gaspar","gaspard","gass","gassaway","gastelum","gaston","gatewood","gatlin","gatling","gattis","gatto","gaudet","gaudette","gaudreau","gaughan","gaul","gause","gauthier","gauvin","gavin","gayden","gaye","gayla","gayle","gaylene","gaylor","gaylord","gaynell","gaynelle","gaynor","gaytan","gayton","gearhart","gearldine","geary","gebhardt","gebhart","geddes","geer","gehring","gehrke","geier","geiger","geis","geisler","gelinas","geller","gema","gendron","genevie","genevieve","genevive","genia","genna","gennie","genny","genovese","genoveva","georgann","george","georgeann","georgeanna","georgene","georgetta","georgette","georgia","georgiana","georgiann","georgianna","georgianne","georgie","georgina","georgine","gerald","geraldine","geralyn","gerard","gerber","gerda","gerdes","gerena","gerhardt","gerhart","geri","gerlach","germaine","germany","gerri","gerry","gertha","gertie","gertrud","gertrude","gertrudis","gertude","gervais","geter","getty","getz","geyer","ghislaine","gholston","gia","gianna","gibb","gibbs","gibson","giddens","giddings","gideon","gidget","giese","giffin","gifford","gigi","giglio","giguere","gil","gilberte","gilbertson","gilbreath","gilchrist","gilda","gile","giles","gilkey","gillam","gillard","gillen","gillenwater","gilles","gillespie","gillett","gillette","gilley","gilliam","gillian","gilliard","gilligan","gilliland","gillis","gillispie","gillman","gillum","gilma","gilman","gilmer","gilmore","gilpin","gilreath","gilroy","gilson","gilstrap","gina","ginder","ginette","gingerich","gingras","gingrich","ginny","ginsberg","ginter","giordano","giovanna","gipson","girard","giroux","gisela","gisele","giselle","gish","gita","gittens","giuseppina","givens","gladis","gladney","gladstone","glady","gladys","glaser","glasgow","glasper","glasscock","glasser","glayds","gleason","glenda","glendora","glenn","glenna","glennie","glennis","glick","glidden","glidewell","glinda","glisson","gloria","gluck","glynda","glynis","glynn","gober","goble","godbey","goddard","godfrey","godin","godinez","godoy","godsey","godwin","goebel","goetz","goforth","goines","goins","golda","goldberg","goldfarb","golding","goldman","goldsberry","goldstein","gomes","gomez","gonsalez","gonsalves","gonzales","gonzalez","gooch","goodale","goodall","goode","goodell","gooden","goodin","gooding","goodloe","goodnight","goodrich","goodrum","goodsell","goodson","goodwin","goolsby","gordan","gordon","gordy","goree","gorham","gorman","gormley","gorski","gorton","goshorn","gosnell","goss","gosselin","gossett","gott","gottlieb","gottschalk","gough","gould","goulet","gourley","gouveia","govan","gove","govea","gowen","gower","goyette","graber","grabowski","gracia","gracie","graciela","grady","graf","graff","grafton","gragg","graham","grajeda","grammer","granado","granados","grantham","granville","grasso","grau","gravitt","gravois","graybill","grayce","grayson","graziano","grazyna","greathouse","greco","greeley","greenberg","greene","greenhaw","greenlaw","greenleaf","greenlee","greenwald","greenway","greenwell","greer","greeson","gregg","gregoire","gregor","gregoria","gregorio","gregory","greig","greiner","grenier","gresham","greta","gretchen","gretta","gricelda","grider","grieco","griego","grier","griffen","griffey","griffis","griffith","griffiths","grigg","griggs","grigsby","grijalva","grillo","grimaldi","grimaldo","grimm","grimmett","grimsley","grindle","griner","grisby","grisel","griselda","grisham","grissom","griswold","groce","groff","grogan","groh","grose","grossman","grosso","groth","grover","grubb","grubbs","grube","gruber","grundy","guadalupe","guajardo","guardado","guarino","guay","gudrun","guenther","guerin","guerra","guerrero","guertin","guevara","guffey","guido","guidry","guilford","guillen","guillermina","guillermo","guillory","guillot","guimond","guinn","gulick","gulledge","gullett","gumm","gump","gunderson","gunn","gunther","gupta","gupton","gurley","gurrola","gurule","gusman","gussie","gustafson","gustin","guth","guthrie","gutierrez","gutshall","guyer","guyette","guyton","guzman","gwen","gwenda","gwendolyn","gwenn","gwin","gwinn","gwyn","gwyneth","haag","haas","haase","haber","haberman","hackett","hackman","hackworth","haddad","haddix","hadfield","hadley","hadlock","hae","hafer","haffner","hafner","haga","hagan","hagans","hagar","hage","hageman","hagen","hager","hagerman","hagerty","haggerty","hagler","hagood","hague","hagy","hahn","haigh","haight","haile","hailey","haines","haire","hairston","halcomb","hales","haley","halford","halina","halle","haller","hallett","halley","halliburton","halliday","hallie","hallman","hallock","halloran","hallowell","halpern","halpin","halsey","halstead","halverson","halvorsen","halvorson","hamann","hamblin","hambrick","hamby","hamel","hamer","hamill","hamilton","hamlett","hamlin","hamm","hammack","hamman","hammel","hammett","hammon","hammond","hammonds","hammons","hamner","hampson","hampton","hamrick","han","hana","hancock","handley","hanes","haney","hanh","hanke","hankins","hanley","hanlon","hann","hanna","hannah","hannan","hannelore","hanner","hannigan","hannon","hanrahan","hans","hansen","hanson","harbaugh","harber","harbin","harbison","hardaway","hardcastle","hardee","hardeman","hardesty","hardie","hardiman","hardin","harding","hardison","hardman","hardnett","hardwick","hargett","hargis","hargrave","hargrove","harker","harkey","harkins","harkness","harlan","harless","harley","harlow","harmon","harner","harney","haro","harold","harr","harrell","harrelson","harriet","harriett","harriette","harrigan","harriman","harrington","harris","harrison","harrod","harrold","harter","hartfield","hartford","hartle","hartley","hartman","hartmann","hartnett","hartsell","hartsfield","hartsock","hartung","hartwell","hartwig","harty","hartz","hartzell","hartzog","harvell","harvey","harville","harvin","harwell","harwood","hashimoto","haskell","haskins","hass","hassan","hassell","hassett","hassie","hassler","hasson","hatchett","hatfield","hathaway","hathcock","hathorn","hatley","hatten","hattie","hatton","hauck","haug","haugen","haun","haupt","hauser","havard","haviland","hawes","hawkes","hawkins","hawkinson","hawley","hawn","haworth","hawthorne","hayashi","haydee","hayden","haydon","hayes","haygood","hayley","hayman","hayner","haynes","haynie","haywood","hazelton","hazelwood","hazen","hazlett","hazzard","headley","headrick","healey","healy","heaney","hearn","hearne","heather","heatherly","heaton","hebert","hecht","hecker","heckman","hedden","hedgepeth","hedrick","hedwig","hedy","hee","heffernan","heffner","heflin","hefner","hegarty","heide","heidi","heidy","heike","heil","heilman","heim","hein","heine","heinrich","heins","heintz","heinz","heise","heiser","heisler","helaine","helen","helena","helene","helfrich","helga","helgeson","hellen","hellman","helman","helmer","helmick","helmuth","helton","helwig","hembree","hemingway","hemphill","hendershot","henderson","hendley","hendon","hendren","hendrick","hendricks","hendrickson","hendrix","hendry","henke","henkel","henley","hennessey","hennessy","henninger","henrietta","henriette","henriques","henriquez","henry","hensel","henshaw","hensley","henson","henton","hepburn","hepler","hepner","herbert","herbst","heredia","hereford","herlinda","herma","herman","hermann","hermelinda","hermes","hermila","hermina","hermine","herminia","hermosillo","hernadez","hernandes","hernandez","herndon","herod","herold","herr","herren","herrera","herrick","herrin","herrington","herrmann","herrod","herron","hersey","hersh","hershberger","hershey","herta","hertel","hertha","herzog","hess","hesse","hesson","hester","hetrick","hettie","hetzel","heuer","hewett","hewitt","hewlett","heyer","heyward","heywood","hiatt","hibbard","hibbert","hibbler","hibbs","hickerson","hickman","hickok","hickox","hickson","hiedi","hien","hiers","higa","higbee","higdon","higginbotham","higgins","higgs","highsmith","hightower","higley","hilaria","hilary","hilbert","hilburn","hilda","hilde","hildebrand","hildebrandt","hildegard","hildegarde","hildred","hildreth","hileman","hiles","hillard","hillary","hiller","hilliard","hillis","hillman","hillyer","hilma","hilton","himes","hinckley","hindman","hine","hines","hinkle","hinkley","hinman","hinojosa","hinrichs","hinshaw","hinson","hinton","hintz","hinz","hipp","hiroko","hirsch","hirst","hisako","hitchcock","hite","hitt","hix","hixon","hixson","hoa","hoag","hoagland","hoang","hobart","hobbs","hobson","hoch","hochstetler","hockenberry","hockett","hodge","hodges","hodgkins","hodgson","hodson","hoekstra","hoelscher","hoey","hofer","hoff","hoffer","hoffman","hoffmann","hofmann","hoggard","hogue","holbert","holbrook","holcomb","holcombe","holguin","holifield","holladay","hollander","hollar","hollenbeck","holley","holli","holliday","hollie","hollifield","holliman","hollinger","hollingshead","hollingsworth","hollins","hollis","hollister","holloman","holloway","hollowell","holman","holmberg","holmes","holmgren","holmquist","holsinger","holst","holstein","holston","holter","holton","holtz","holzer","hom","homan","honaker","honea","honeycutt","hoopes","hooten","hopkins","hoppe","hopson","horan","hord","horgan","hornback","hornbeck","horne","hornsby","horowitz","horrocks","horsley","horta","hortencia","hortense","hortensia","horton","horvath","hosey","hoskins","hosmer","hostetler","hostetter","hotchkiss","houchens","houck","houghton","houk","houle","houlihan","householder","houser","housley","housman","houston","hovey","hovis","howard","howarth","howell","howells","hower","howerton","howie","howland","howlett","howse","howze","hoye","hoyle","hoyos","hoyt","hsiu","hsu","hua","huang","hubbard","hubbell","hubble","hubbs","huber","hubert","huckaby","hudak","huddleston","hudgens","hudgins","hudnall","hudson","hudspeth","huebner","huerta","huertas","huey","huffman","hufford","huggins","hughes","hughey","hughs","hui","huie","hulbert","hulda","hulett","hulse","hulsey","humbert","hume","humes","humphrey","humphreys","humphries","hundley","huneycutt","hungerford","hunley","hunnicutt","hunsaker","huntington","huntley","huong","hupp","hurd","hurlburt","hurtado","huskey","hussey","husted","huston","hutchens","hutcherson","hutcheson","hutchings","hutchins","hutchinson","hutchison","huth","hutson","hutt","hutto","hutton","huynh","hwa","hwang","hyacinth","hyatt","hyde","hyden","hyder","hye","hyland","hylton","hyman","hynes","hyo","hyon","hysell","hyun","ibanez","ibarra","ibrahim","ickes","idell","idella","iesha","iglesias","ignacia","ilana","ilda","ileana","ileen","ilene","iliana","ilona","ilse","iluminada","imelda","imes","imhoff","imogene","india","indira","inell","ines","inez","inga","ingalls","ingeborg","ingersoll","ingham","ingraham","ingrid","inman","inocencia","iona","ione","ira","iraida","irby","ireland","irena","irene","irick","irina","irish","irizarry","irma","irmgard","irvin","irvine","irving","irwin","iryna","isa","isaac","isaacs","isaacson","isabel","isabell","isabella","isabelle","isadora","isaura","isbell","isela","isenberg","isham","isidra","isis","islas","isley","isobel","isom","ison","israel","ito","ivana","ivelisse","iverson","ives","ivette","ivey","ivie","ivonne","izaguirre","izetta","izola","izzo","jablonski","jacalyn","jacelyn","jacinda","jacinta","jacinto","jackeline","jackelyn","jacki","jackie","jacklyn","jackqueline","jackson","jaclyn","jaco","jacob","jacobi","jacobo","jacobs","jacobsen","jacobson","jacoby","jacqualine","jacque","jacquelin","jacqueline","jacquelyn","jacquelyne","jacquelynn","jacques","jacquetta","jacquez","jacqui","jacquie","jacquiline","jacquline","jacqulyn","jada","jadwiga","jae","jaffe","jahn","jahnke","jaime","jaimee","jaimes","jaimie","jalbert","jaleesa","jalisa","jama","jame","jamee","jamerson","james","jameson","jamey","jami","jamie","jamieson","jamika","jamila","jamison","jammie","jan","jana","janae","janay","jane","janean","janee","janeen","janel","janell","janella","janelle","janene","janessa","janet","janeth","janett","janetta","janette","janey","jani","janice","janie","janiece","janina","janine","janis","janise","janita","jankowski","jann","janna","jannet","jannette","jannie","jansen","janson","janssen","janyce","jaqueline","jaquelyn","jaques","jaquez","jara","jaramillo","jarboe","jardine","jarman","jarmon","jarrell","jarrett","jarvis","jason","jasso","jaunita","jauregui","javier","jaworski","jaye","jayme","jaymie","jayna","jayne","jaynes","jazmin","jazmine","jeana","jeanbaptiste","jeane","jeanelle","jeanene","jeanett","jeanetta","jeanette","jeanice","jeanie","jeanine","jeanlouis","jeanmarie","jeanna","jeanne","jeannetta","jeannette","jeannie","jeannine","jeffcoat","jefferies","jeffers","jefferson","jeffery","jeffie","jeffrey","jeffreys","jeffries","jemison","jen","jena","jenae","jene","jenee","jenell","jenelle","jenette","jeneva","jeni","jenice","jenifer","jeniffer","jenine","jenise","jenkins","jenks","jenna","jennefer","jennell","jennette","jenni","jennie","jennifer","jenniffer","jennine","jennings","jenny","jensen","jenson","jepson","jeraldine","jeremy","jeri","jerica","jerilyn","jerlene","jernigan","jerome","jerri","jerrica","jerrie","jerry","jesenia","jesica","jeske","jesse","jessee","jessen","jessenia","jessi","jessia","jessica","jessie","jessika","jessup","jestine","jesus","jesusa","jesusita","jeter","jett","jetta","jettie","jewell","jewett","jiles","jill","jillian","jim","jimenez","jimerson","jiminez","jimmie","joan","joana","joane","joanie","joann","joanna","joanne","joannie","joaquina","jobe","jocelyn","jodee","jodi","jodie","jody","joe","joeann","joel","joella","joelle","joellen","joeseph","joesph","joetta","joette","joey","johana","johanna","johanne","johansen","johanson","john","johna","johnetta","johnette","johnie","johnna","johnnie","johnny","johnsen","johnsie","johnson","johnston","johnstone","joi","joie","jolanda","joleen","jolene","jolie","jolin","joline","jolley","jolyn","jolynn","jon","jona","jonas","jone","jonell","jonelle","jones","jong","joni","jonie","jonna","jonnie","joplin","jordan","jordon","jorge","jorgensen","jorgenson","jose","josefa","josefina","josefine","joselyn","joseph","josephina","josephine","josephson","josette","josey","joshua","josie","joslin","joslyn","josphine","jost","joubert","jovan","jovita","jowers","joya","joyce","joycelyn","joye","joyner","juan","juana","juanita","juarez","judd","jude","judi","judie","judith","judkins","judson","judy","jule","julee","julene","juli","julia","julian","juliana","juliane","juliann","julianna","julianne","julie","julieann","julien","julienne","juliet","julieta","julietta","juliette","julio","julissa","julius","jung","junie","junita","junko","jurado","justa","justin","justina","justine","justus","jutta","kacey","kaci","kacie","kacy","kaczmarek","kahl","kahle","kahler","kahn","kaila","kaitlin","kaitlyn","kala","kaleigh","kaley","kali","kallie","kalyn","kam","kamala","kami","kamilah","kaminski","kaminsky","kammerer","kamp","kandace","kandi","kandice","kandis","kandra","kandy","kane","kanesha","kanisha","kantor","kao","kaplan","kapp","kara","karan","kareen","karen","karena","karey","kari","karie","karima","karin","karina","karine","karisa","karissa","karl","karla","karleen","karlene","karly","karlyn","karmen","karnes","karns","karol","karole","karoline","karolyn","karon","karp","karr","karren","karri","karrie","karry","kary","karyl","karyn","kasandra","kasey","kasha","kasi","kasie","kasper","kass","kassandra","kassie","kasten","kastner","kate","katelin","katelyn","katelynn","katerine","kates","kathaleen","katharina","katharine","katharyn","kathe","katheleen","katherin","katherina","katherine","kathern","katheryn","kathey","kathi","kathie","kathleen","kathlene","kathline","kathlyn","kathrin","kathrine","kathryn","kathryne","kathy","kathyrn","kati","katia","katie","katina","katlyn","kato","katrice","katrina","kattie","katy","katz","kauffman","kaufman","kaufmann","kautz","kavanagh","kavanaugh","kay","kayce","kaycee","kaye","kayla","kaylee","kayleen","kayleigh","kaylene","kaylor","kayser","kazuko","kean","keane","kearney","kearns","kearse","keating","keaton","kecia","kee","keefe","keefer","keegan","keele","keeley","keely","keena","keenan","keene","keeney","keesee","keesha","keeter","keeton","keever","keffer","kehoe","keiko","keil","keila","keim","keira","keiser","keisha","keith","keitha","keitt","keli","kellam","kellar","kelle","kellee","kelleher","keller","kellerman","kelley","kelli","kellie","kellner","kellogg","kellum","kelly","kellye","kelm","kelsey","kelsi","kelsie","kelso","kelton","kemberly","kempf","kena","kenda","kendal","kendall","kendra","kendrick","kendricks","kenia","kenisha","kenna","kennard","kennedy","kenneth","kenney","kennon","kenny","kenya","kenyatta","kenyetta","kenyon","keown","kephart","kepler","kera","kerby","keren","keri","kerley","kerr","kerri","kerrie","kerrigan","kerry","kershaw","kershner","kerstin","kesha","keshia","kesler","kessel","kessinger","kessler","kester","kesterson","ketcham","ketchum","ketron","keturah","keva","kevin","keyes","keyser","khadijah","khalilah","khoury","kia","kiana","kiara","kibler","kidd","kidwell","kiefer","kieffer","kiel","kiely","kiera","kiernan","kiersten","kiesha","kiger","kight","kilburn","kilby","kile","kiley","kilgore","killebrew","killen","killian","killingsworth","killion","killough","kilmer","kilpatrick","kim","kimball","kimber","kimberely","kimberlee","kimberley","kimberli","kimberlie","kimberlin","kimberly","kimbery","kimble","kimbra","kimbrell","kimbro","kimbrough","kimes","kimi","kimiko","kimmel","kimsey","kimura","kina","kinard","kincaid","kindra","kingery","kingsbury","kingsley","kingston","kinlaw","kinnard","kinney","kinsella","kinser","kinsey","kinsler","kinsley","kinslow","kinzer","kira","kirby","kirchner","kirkendall","kirkham","kirkland","kirkpatrick","kirksey","kirkwood","kirschner","kirsten","kirstie","kirstin","kirtley","kirwan","kiser","kisha","kisner","kissinger","kistler","kittie","kittrell","kitts","kitty","kiyoko","kizer","kizzie","kizzy","klara","klatt","klaus","klein","kline","kling","klingensmith","klinger","klink","klotz","klug","knapp","knecht","knepper","knighten","knighton","knisley","knopp","knorr","knott","knotts","knowles","knowlton","knox","knudsen","knudson","knuth","knutson","kobayashi","koch","kocher","koehler","koehn","koenig","koerner","koester","koger","kohler","kohn","kolb","koller","kong","konrad","koon","koonce","koons","koontz","koopman","kopp","kori","korn","kornegay","korte","kortney","koski","koster","kourtney","kovac","kovach","kovacs","kowal","kowalczyk","kowalewski","kowalski","kozak","koziol","kozlowski","kraemer","krall","kramer","kratz","kratzer","kraus","krause","krauss","krawczyk","krebs","kremer","kress","krick","krieg","krieger","kris","krishna","krissy","krista","kristal","kristan","kristeen","kristel","kristen","kristi","kristian","kristie","kristin","kristina","kristine","kristle","kristy","kristyn","kroeger","krohn","krol","kroll","kropp","krouse","krueger","krug","kruger","krumm","kruse","krysta","krystal","krysten","krystin","krystina","krystle","krystyna","kubiak","kucera","kuehl","kuehn","kugler","kuhl","kuhlman","kuhlmann","kuhn","kuhns","kujawa","kulp","kum","kumar","kunkel","kunkle","kuntz","kunz","kurth","kurtz","kushner","kuster","kutz","kuykendall","kwan","kwiatkowski","kwon","kyla","kyle","kylee","kylie","kym","kymberly","kyoko","kyong","kyra","kyser","kyung","labarbera","labbe","labelle","labonte","laboy","labrecque","labrie","lacasse","lacey","lach","lachance","lachelle","laci","lacie","laclair","lacombe","lacour","lacresha","lacroix","ladawn","ladd","ladner","ladonna","lael","lafave","lafayette","lafferty","laflamme","lafleur","lafollette","lafond","lafontaine","lafountain","lafrance","lafreniere","lagasse","laguna","lagunas","lahoma","lahr","lai","lail","laila","laine","laing","lajoie","lajuana","lakeesha","lakeisha","lakendra","lakenya","lakesha","lakeshia","lakey","lakia","lakiesha","lakisha","lakita","lala","laliberte","lally","lalonde","lamanna","lamar","lambrecht","lamere","lamkin","lamm","lamonica","lamont","lamontagne","lamoreaux","lamothe","lamoureux","lampe","lampkin","lampley","lana","lancaster","landa","landeros","landes","landin","landis","landon","landreth","landrum","landry","lanell","lanelle","lanette","laney","lang","langan","langdon","lange","langer","langevin","langford","langham","langley","langlois","langston","lanham","lani","lanie","lanier","lanita","lankford","lannie","lanning","lanora","lansing","lantz","lanza","lao","lapierre","laplante","lapoint","lapointe","laporte","lapp","laquanda","laquita","lara","larae","laraine","laree","largent","larhonda","larios","larisa","larissa","larita","lariviere","larkin","larkins","larocca","laroche","larochelle","larock","laronda","larosa","larose","larrabee","larraine","larry","larsen","larson","larue","lasalle","lasandra","lasater","lashanda","lashandra","lashaun","lashaunda","lashawn","lashawna","lashawnda","lashay","lashell","lashley","lashon","lashonda","lashunda","laskowski","lasky","lasley","lasonya","lasseter","lassiter","latanya","latarsha","latasha","latashia","latesha","latham","lathan","lathrop","latia","laticia","latimer","latina","latisha","latonia","latonya","latoria","latosha","latour","latoya","latoyia","latrice","latricia","latrina","latrisha","latta","lattimore","lau","lauderdale","lauer","laughlin","launa","laura","lauralee","lauran","laure","laureano","laureen","lauren","laurena","laurence","laurene","laurent","lauretta","laurette","lauri","laurice","laurie","laurinda","laurine","lauryn","laux","lavada","lavallee","lavalley","lavelle","lavenia","lavera","lavergne","lavern","laverna","laverne","laverty","lavery","laveta","lavette","lavigne","lavin","lavina","lavine","lavinia","lavoie","lavon","lavona","lavonda","lavone","lavonia","lavonna","lavonne","lawana","lawanda","lawanna","lawhorn","lawler","lawlor","lawrence","lawson","lawton","layfield","layla","layne","layton","lazarus","lazo","leah","leahy","leake","leana","leandra","leann","leanna","leanne","leanora","leath","leatha","leatherman","leatherwood","leatrice","leavitt","lebeau","lebel","leblanc","leboeuf","lebron","lebrun","lechner","lecia","leclair","leclaire","leclerc","lecompte","leda","ledbetter","lederman","ledesma","ledet","ledezma","ledford","ledoux","leduc","leeann","leeanna","leeanne","leeds","leena","leeper","leesa","lefebvre","lefevre","leffler","lefler","leflore","leftwich","legault","legere","legg","leggett","legrand","lehman","lehmann","leia","leibowitz","leida","leigh","leigha","leighann","leighton","leija","leiker","leila","leilani","leininger","leisa","leisha","leith","leiva","lejeune","lekisha","lela","lelah","leland","lelia","lemaster","lemay","lemieux","lemire","lemke","lemley","lemmon","lemmons","lemoine","lemos","lemus","lena","lenard","lenhart","lenita","lenna","lennie","lennon","lennox","lenoir","lenora","lenore","lentz","lenz","leo","leola","leoma","leon","leona","leonard","leonarda","leonardo","leone","leong","leonia","leonida","leonie","leonila","leonor","leonora","leonore","leontine","leora","leos","leota","lepage","lepore","lera","lerch","lerma","lerner","leroy","lesa","lesha","lesher","lesia","lesko","leslee","lesley","lesli","leslie","lessard","lessie","lester","leta","letendre","letha","leticia","letisha","letitia","letourneau","lett","lettie","letty","leung","levan","levasseur","leveille","leverett","levesque","levi","levine","levinson","levitt","lewallen","lewandowski","lewellen","lewin","lewis","lexie","leyba","leyva","lezlie","lheureux","liane","lianne","libbie","libby","librada","lida","liddell","liddle","lidia","lieb","lieberman","lieselotte","liggett","liggins","lightfoot","lightner","ligia","ligon","lila","liles","lili","lilia","lilian","liliana","lilla","lillard","lilley","lilli","lillia","lilliam","lillian","lilliana","lillie","lilly","lim","limon","linares","lincoln","linda","lindahl","lindberg","lindell","lindeman","linder","linderman","lindgren","lindholm","lindley","lindner","lindo","lindquist","lindsay","lindsey","lindsley","lindstrom","lindsy","lindy","lineberry","linette","ling","lingenfelter","lingerfelt","lingle","linh","linkous","linn","linnea","linnie","linsey","linton","linville","lippert","lipps","lipscomb","lipsey","lisa","lisabeth","lisandra","lisbeth","lise","lisette","lisha","lissa","lissette","liston","lita","litchfield","littlefield","littlejohn","littleton","litton","littrell","liu","livengood","livesay","livia","livingston","liz","liza","lizabeth","lizarraga","lizbeth","lizeth","lizette","lizotte","lizzette","lizzie","llanes","llewellyn","lloyd","lockard","locke","lockett","lockhart","locklear","lockridge","lockwood","loeb","loeffler","loehr","loera","loesch","loftin","loftis","lofton","loftus","logan","loggins","logsdon","logue","lohman","lohr","loida","lois","loise","lola","lolita","lollar","lollis","loma","lomax","lombardi","lombardo","lomeli","lona","londa","london","lonergan","loney","longley","longmire","longo","longoria","loni","lonna","lonnie","loomis","looney","lopez","lora","loraine","loralee","lorean","loree","loreen","lorelei","loren","lorena","lorene","lorenz","lorenza","lorenzen","lorenzo","loreta","loretta","lorette","lori","loria","loriann","lorie","lorilee","lorina","lorinda","lorine","lorita","lorna","lorraine","lorretta","lorri","lorriane","lorrie","lorrine","lory","lott","lottie","lotz","lou","louann","louanne","loucks","loudermilk","louella","louetta","loughlin","louie","louis","louisa","louise","louque","loura","lourdes","lourie","louvenia","lovato","lovejoy","lovelace","lovelady","loveland","lovell","lovella","lovett","lovetta","lovie","lovins","lowder","lowell","lowman","lowrance","lowrey","lowry","lowther","loya","loyce","loyd","lozada","lozano","lozier","lozoya","luana","luann","luanna","luanne","luba","lubin","lucas","lucero","luci","lucia","luciana","luciano","lucie","lucienne","lucier","lucila","lucile","lucilla","lucille","lucina","lucinda","lucio","luckett","luckey","lucrecia","lucretia","lucy","ludie","ludivina","ludlow","ludwick","ludwig","lueck","luella","luetta","luevano","lugo","lui","luis","luisa","luise","lujan","lukas","lukens","luker","lula","lulu","luna","lund","lundberg","lunde","lundgren","lundquist","lundy","lunn","lunsford","luong","lupe","lupita","lupo","lura","lurlene","lurline","lussier","luther","luttrell","luu","luvenia","luz","lyda","lydia","lydon","lykins","lyla","lyle","lyles","lyman","lyn","lynda","lyndia","lyndsay","lyndsey","lynell","lynelle","lynetta","lynette","lynn","lynna","lynne","lynnette","lynsey","lyon","lyons","lytle","mabe","mabel","mabelle","mable","mabry","macaluso","macarthur","macdonald","macdougall","macedo","macfarlane","macgregor","mach","machado","machelle","machuca","macias","macie","maciel","mackay","mackenzie","mackey","mackie","mackinnon","macklin","maclean","macleod","macmillan","macneil","macomber","macon","macpherson","macy","madalene","madaline","madalyn","maddie","maddox","maddux","madelaine","madeleine","madelene","madeline","madelyn","mader","madera","madewell","madge","madie","madigan","madison","madlyn","madonna","madore","madrid","madsen","madson","mae","maeda","maegan","maes","maestas","mafalda","magali","magallanes","magaly","magan","magana","magaret","magda","magdalen","magdalena","magdalene","magdaleno","magee","magen","maggard","maggie","maggio","magill","magness","magnolia","magnuson","magruder","maguire","mahaffey","mahalia","mahan","maher","mahler","mahon","mahone","mahoney","mai","maia","maida","maier","maile","maines","maira","maire","maisha","maisie","majewski","majorie","makeda","maki","makowski","malave","malcolm","malcom","maldonado","malek","malena","maley","malia","malika","malinda","malinowski","malisa","malissa","malka","mallett","mallette","malley","mallie","mallon","mallory","malloy","malone","maloney","malorie","maloy","malvina","mamie","mammie","manchester","mancilla","mancini","mancuso","manda","mandel","mandeville","mandi","mandie","mandy","maness","mangan","mangrum","mangum","manie","manion","manis","manley","mann","mannino","manns","manriquez","mansell","mansfield","manson","mansour","mantooth","manuel","manuela","manzanares","manzano","manzo","mapes","mapp","marable","maragaret","maragret","maranda","marasco","marcano","marceau","marcela","marcelene","marcelina","marceline","marcell","marcella","marcelle","marcene","marchand","marchant","marchelle","marchetti","marci","marcia","marciano","marcie","marcotte","marcoux","marcum","marcus","marcy","mardell","marden","mardis","marek","maren","margaret","margareta","margarete","margarett","margaretta","margarette","margart","marge","margene","margeret","margert","margery","marget","margherita","margie","margit","margo","margorie","margot","margret","margrett","marguerita","marguerite","margurite","margy","marhta","mari","maria","mariah","mariam","marian","mariana","marianela","mariani","mariann","marianna","marianne","mariano","maribel","maribeth","marica","maricela","maricruz","marie","mariel","mariela","mariella","marielle","marietta","mariette","mariko","marilee","marilou","marilu","marilyn","marilynn","marin","marinda","marinelli","marino","mario","marion","maris","marisa","mariscal","marisela","marisha","marisol","marissa","marita","maritza","marivel","marjorie","marjory","markel","marketta","markey","markham","markita","markle","markley","markowitz","markus","marla","marlana","marleen","marlen","marlena","marlene","marler","marley","marlin","marline","marlo","marlow","marlowe","marlyn","marlys","marna","marni","marnie","maroney","marotta","marquardt","marquerite","marquetta","marquez","marquita","marquitta","marr","marra","marrero","marriott","marron","marroquin","marrs","marrufo","marsha","marshall","marston","marta","marte","martell","marth","martha","marti","martin","martina","martindale","martine","martineau","martinelli","martines","martinez","martino","martinson","marty","martz","marva","marvella","marvin","marvis","marx","mary","marya","maryalice","maryam","maryann","maryanna","maryanne","marybelle","marybeth","maryellen","maryetta","maryjane","maryjo","maryland","marylee","marylin","maryln","marylou","marylouise","marylyn","marylynn","maryrose","masako","mascarenas","mashburn","masse","massengale","massey","massie","masterson","mastin","mata","mateo","matha","matheny","mather","matherly","matherne","mathers","mathes","matheson","mathew","mathews","mathewson","mathias","mathieu","mathilda","mathilde","mathis","mathison","matias","matilda","matilde","matlock","matney","matos","matson","matsumoto","matta","mattern","matteson","matthew","matthews","mattie","mattingly","mattison","mattos","mattox","mattson","matz","maude","maudie","mauk","mauldin","mauney","maupin","maura","maureen","maurer","maurice","mauricio","maurine","maurita","mauro","maus","mavis","maxey","maxfield","maxie","maxima","maximina","maxine","maxon","maxson","maybell","maybelle","mayberry","maye","mayer","mayers","mayes","mayfield","mayhew","mayle","mayme","maynard","mayne","maynor","mayo","mayola","mayorga","mayra","mazie","mazur","mazurek","mazza","mazzola","mcabee","mcadams","mcadoo","mcafee","mcalister","mcallister","mcalpin","mcalpine","mcanally","mcandrew","mcardle","mcarthur","mcatee","mcauley","mcauliffe","mcavoy","mcbee","mcbrayer","mcbride","mcbroom","mcbryde","mcburney","mccabe","mccafferty","mccaffrey","mccain","mccaleb","mccall","mccalla","mccallister","mccallum","mccammon","mccandless","mccann","mccants","mccarley","mccarron","mccarter","mccarthy","mccartney","mccarty","mccarver","mccary","mccaskill","mccaslin","mccauley","mccay","mcchesney","mcclain","mcclanahan","mcclary","mcclean","mccleary","mcclellan","mcclelland","mcclendon","mcclintock","mcclinton","mccloskey","mccloud","mcclung","mcclure","mcclurg","mccluskey","mccollough","mccollum","mccomas","mccomb","mccombs","mcconnell","mccool","mccord","mccorkle","mccormack","mccormick","mccourt","mccowan","mccown","mccoy","mccracken","mccrae","mccrary","mccraw","mccray","mccrea","mccready","mccreary","mccrory","mccubbin","mccue","mcculley","mcculloch","mccullough","mccullum","mccully","mccune","mccurdy","mccurry","mccusker","mccutchen","mccutcheon","mcdade","mcdaniel","mcdaniels","mcdavid","mcdermott","mcdevitt","mcdonald","mcdonnell","mcdonough","mcdougal","mcdougald","mcdougall","mcdowell","mcduffie","mceachern","mcelhaney","mcelrath","mcelroy","mcentire","mcevoy","mcewen","mcfadden","mcfall","mcfarland","mcfarlane","mcfarlin","mcgaha","mcgann","mcgarry","mcgary","mcgee","mcgehee","mcghee","mcgill","mcginley","mcginn","mcginnis","mcginty","mcglone","mcglothlin","mcglynn","mcgough","mcgovern","mcgowan","mcgowen","mcgrath","mcgraw","mcgregor","mcgrew","mcgriff","mcgruder","mcguigan","mcguinness","mcguire","mchale","mchenry","mchugh","mcilwain","mcinerney","mcinnis","mcintire","mcintosh","mcintyre","mciver","mckamey","mckay","mckean","mckee","mckeehan","mckeever","mckellar","mckelvey","mckenna","mckenney","mckenzie","mckeon","mckeown","mckibben","mckie","mckim","mckinley","mckinney","mckinnie","mckinnon","mckinzie","mckissick","mcknight","mckown","mckoy","mclain","mclane","mclaren","mclaughlin","mclaurin","mclean","mclellan","mclemore","mclendon","mcleod","mclin","mcloughlin","mcmahan","mcmahon","mcmann","mcmanus","mcmaster","mcmasters","mcmichael","mcmillan","mcmillen","mcmillian","mcmillin","mcmillon","mcminn","mcmorris","mcmullen","mcmullin","mcmurray","mcmurry","mcnabb","mcnair","mcnally","mcnamara","mcnamee","mcnary","mcneal","mcneely","mcneese","mcneil","mcneill","mcnew","mcniel","mcnulty","mcnutt","mcpeak","mcphail","mcphee","mcpherson","mcquade","mcqueen","mcquiston","mcrae","mcreynolds","mcroberts","mcshane","mcswain","mcsweeney","mcvay","mcvey","mcwhirter","mcwhorter","mcwilliams","meacham","meade","meader","meador","meadors","meagan","meaghan","meagher","mears","mebane","mecham","mechelle","meda","medeiros","medellin","medford","medlin","medlock","medrano","mee","meehan","meekins","meeks","mefford","meg","megan","meggan","meghan","meghann","mehta","mei","meier","meissner","mejia","mejias","melaine","melancon","melani","melania","melanie","melanson","melany","melba","melcher","melchor","melda","mele","melendez","melgar","melia","melida","melina","melinda","melisa","melissa","melissia","melita","mellie","mellisa","mellissa","mello","mellon","mellott","melnick","melo","melodee","melodi","melodie","melonie","melony","melson","melva","melville","melvin","melvina","melynda","mena","menard","menchaca","mendenhall","mendes","mendez","mendiola","mendoza","mendy","menefee","menendez","meneses","menjivar","menke","meraz","mercado","mercedes","mercedez","mercier","mercurio","meredith","meri","merida","merideth","meridith","merilyn","merissa","merkel","merkle","merle","merlene","merlyn","merna","merrell","merri","merrick","merrie","merrifield","merrilee","merrill","merriman","merritt","merriweather","mertens","mertie","mertz","merwin","meryl","messer","messick","messina","messinger","messner","mestas","metcalf","metcalfe","metts","metz","metzger","metzler","meunier","meyer","meyers","meza","mia","mica","micaela","micah","miceli","micha","michael","michaela","michaele","michaelis","michaels","michaelson","michal","michalak","michalski","michaud","micheal","michel","michele","michelina","micheline","michell","michelle","michels","michiko","mickel","mickelson","mickens","mickey","micki","mickie","middaugh","middlebrooks","middleton","midgett","midkiff","miele","mielke","mier","miesha","migdalia","mignon","miguel","miguelina","mika","mikaela","mike","mikell","mikesell","miki","mikki","mila","milagro","milagros","milam","milan","milano","milburn","milda","mildred","miley","milford","milissa","millan","millar","millard","millen","millett","millican","millicent","millie","milligan","milliken","millner","millsap","millsaps","milly","milne","milner","milton","mimi","mims","minard","mincey","minda","mindi","mindy","minerva","ming","mingo","minh","minna","minnich","minnick","minnie","minta","minton","mintz","mira","miramontes","miranda","mireille","mireles","mirella","mireya","miriam","mirian","mirna","mirta","mirtha","misha","miss","missy","misti","mistie","mitchel","mitchell","mitchem","mitchum","mitsue","mitsuko","mittie","mitzi","mitzie","mixon","miyamoto","miyoko","mize","mizell","moberg","mobley","modesta","modica","modlin","moeller","moen","moffatt","moffett","moffitt","mohamed","mohammed","mohan","mohler","moira","mojica","molina","moller","mollie","molloy","molly","molnar","mona","monaco","monaghan","monahan","moncada","moncrief","monday","mondragon","monet","monge","monica","monika","monique","moniz","monnie","monroe","monroy","monserrate","monson","montague","montalvo","montana","montanez","montano","monteiro","montelongo","montemayor","montenegro","montez","montgomery","monti","montiel","montoya","monzon","mooney","mooneyham","moore","moorefield","moorehead","moorer","moores","moorhead","mora","morabito","moralez","moran","moreau","morehead","morehouse","moreira","moreland","morell","morelli","morelock","moreno","morey","morgan","mori","moriah","moriarty","morin","moritz","morley","morman","morrell","morrill","morrison","morrissette","morrissey","mortensen","mortenson","mortimer","morton","mosby","moseley","mosely","moser","mosher","mosier","moskowitz","mosley","mosqueda","mota","moten","moton","motta","moua","moulton","moultrie","mowery","mowry","moxley","moye","moyer","moyers","moynihan","mozell","mozella","mozelle","mudd","mueller","muhammad","mui","mulcahy","mulder","muldoon","muldrow","mulholland","mulkey","mullen","mullens","mullin","mullinax","mullins","mullis","mulvaney","mulvey","mumford","muncy","munday","mundell","mundy","munford","munger","munguia","muniz","munn","munos","munoz","munro","munroe","munsey","munson","muoi","murchison","murdoch","murdock","murguia","muriel","murillo","muro","murphey","murphree","murr","murrell","musgrave","musgrove","musick","musselman","musser","musso","muth","myatt","myer","myers","myesha","myhre","myles","myong","myra","myriam","myrick","myrl","myrle","myrna","myrta","myrtice","myrtie","myrtis","myrtle","myung","nabors","nadeau","nadene","nader","nadia","nadine","nadler","nagel","nagle","nagy","naida","najera","nakamura","nakano","nakesha","nakia","nakisha","nakita","nall","nalley","nancee","nancey","nanci","nancie","nancy","nanette","nannette","nannie","naoma","naomi","napier","napoli","napolitano","naquin","naranjo","narcisa","nardi","nardone","narvaez","nash","nason","natacha","natale","natalia","natalie","natalya","natasha","natashia","nate","nathalie","nathan","natisha","natividad","natosha","naughton","naumann","nava","navarra","navarrete","navarrette","navarro","naylor","nazario","neace","neale","nealy","neary","necaise","necole","neda","nedra","needham","neel","neeley","neely","neff","negrete","negron","neida","neil","neill","neilson","nelda","nelia","nelida","nell","nella","nelle","nellie","nelly","nelms","nelsen","nemeth","nena","nenita","neoma","neomi","nereida","neri","nerissa","nero","nery","nesbit","nesbitt","nesmith","nestor","neta","nettie","neu","neubauer","neuman","neumann","neva","nevada","nevarez","neville","nevins","newberry","newby","newcomb","newhouse","newkirk","newland","newlin","newman","newport","newsom","newsome","newson","ney","nez","ngan","ngo","ngoc","nguyen","nguyet","nichelle","nichol","nicholas","nichole","nicholle","nicholls","nichols","nicholson","nickell","nickelson","nickens","nickerson","nicki","nickie","nickles","nickole","nicky","nicol","nicola","nicolas","nicolasa","nicole","nicolette","nicolle","nida","nidia","nielsen","nielson","nieman","niemann","niemeyer","niemi","niesha","nieto","nieves","nightingale","nigro","niki","nikia","nikita","nikki","nikole","nila","nilda","niles","nilsa","nilsen","nilsson","nimmons","nina","ninfa","nino","nisha","nissen","nita","nixon","noah","nobuko","noe","noel","noelia","noella","noelle","noemi","nohemi","nola","nolan","noland","nolasco","nolen","noles","nolin","nolte","noma","nona","noonan","nora","norah","nord","nordstrom","noreen","norene","norfleet","noriega","noriko","norine","norma","norman","normand","norris","norsworthy","northcutt","northrop","northrup","norton","norvell","norwood","nottingham","novak","novotny","nowak","nowell","nowicki","nowlin","nubia","nugent","nunes","nunez","nunley","nunn","nunnally","nuno","nuss","nussbaum","nutt","nyberg","nydia","nygaard","nyla","nystrom","oakes","oakley","oates","obannon","obdulia","ober","oberg","obregon","obrian","obrien","obryan","obryant","ocampo","ocasio","ochoa","ocie","oconnell","oconner","oconnor","octavia","oda","odaniel","oday","odelia","odell","oden","odessa","odette","odilia","odle","odom","odonnell","odum","ofelia","offutt","ogburn","ogden","oglesby","ogletree","ogrady","ohalloran","ohara","ohare","ojeda","okeefe","okelley","olander","oldham","oleary","olene","oleson","oleta","olevia","olga","olguin","olimpia","olin","olinda","olinger","oliva","olivares","olivarez","olivas","oliveira","olivera","olivia","olivier","olivo","oller","ollie","ollis","olmos","olmstead","olney","oloughlin","olsen","olson","olszewski","olvera","olympia","omalley","omar","omara","omeara","oneal","oneida","oneil","oneill","oney","ong","onie","onita","ontiveros","ophelia","oquendo","oquinn","oralee","oralia","orcutt","ordonez","ordway","oreilly","orellana","oretha","orlando","orman","ormsby","orndorff","ornelas","orosco","orourke","orozco","orpha","orr","orta","ortega","ortego","orth","ortiz","orton","osborn","osborne","osburn","oscar","osgood","oshaughnessy","oshea","oshiro","osman","osorio","ossie","osteen","oster","osterman","ostrander","ostrom","ostrowski","osullivan","osuna","oswald","oswalt","otelia","otero","otey","otha","otilia","otis","otoole","ott","otte","otten","ottinger","oubre","ouellette","ouida","ousley","ovalle","overcash","overstreet","overton","overturf","owen","owens","owensby","owings","owsley","oxendine","oxford","oxley","oyler","ozell","ozella","ozie","ozuna","pabon","pacheco","packard","padgett","padilla","padron","paez","pagano","pagel","paige","paine","paiz","pak","palacio","palacios","palermo","palladino","palma","palmieri","palmira","palmore","palomo","palumbo","pam","pamala","pamela","pamelia","pamella","pamila","pamula","panek","paniagua","pankey","pannell","pantoja","paola","pappas","paquette","paquin","parada","paradis","pardo","pardue","paredes","parenteau","parham","paris","parisi","parke","parkhurst","parkinson","parkman","parmenter","parmer","parnell","parra","parrett","parris","parrish","parrott","partain","partee","parthenia","particia","partida","partin","partlow","paschall","pascoe","pasley","pasquale","passmore","pastore","patel","paterson","patino","patnode","patria","patrica","patrice","patricia","patrick","patrina","patsy","patterson","patti","pattie","pattison","patton","patty","paugh","paul","paula","paulene","pauletta","paulette","pauley","paulin","paulina","pauline","paulino","paulita","paulk","paulsen","paulson","paulus","paxton","payne","paynter","payton","paz","peabody","peachey","peake","pearcy","pearle","pearlene","pearlie","pearline","pearman","pearsall","pearson","peaslee","peay","peckham","pecoraro","peden","pedersen","pederson","pedigo","pedraza","pedroza","peebles","peele","peeples","peggie","peggy","pegram","pegues","pei","peiffer","pelayo","pelfrey","pelkey","pellegrini","pellegrino","pellerin","pelletier","peloquin","peltier","pelton","peluso","pemberton","pena","pender","pendergast","pendergrass","pendleton","pendley","penelope","penick","penland","penley","penn","pennell","penney","penni","pennie","pennington","penrod","penton","pepe","pepin","perales","peralta","peraza","percy","perdomo","perea","peres","pereyra","perez","perla","perlman","permenter","pernell","perrault","perreault","perreira","perri","perrin","perrine","perrone","perrotta","perry","perryman","persaud","persinger","pesce","pete","peter","peterkin","peterman","petersen","peterson","petra","petree","petrie","petrillo","petrina","petro","petronila","petry","pettaway","petterson","pettiford","pettigrew","pettis","pettit","pettus","pettway","peyton","pfaff","pfeffer","pfeifer","pfeiffer","pfister","pham","phan","pharr","phebe","phelan","phelps","phifer","philbrick","philip","philips","phillip","phillips","phillis","philomena","philpot","philpott","phinney","phipps","phoebe","phung","phuong","phylicia","phylis","phyliss","phyllis","piatt","picard","pichardo","pickard","pickel","pickens","pickering","pickett","piedad","pieper","piercy","pierre","pierson","pifer","pigg","pilkington","pimental","pimentel","pina","pinard","pinckney","pineda","pinero","pinkard","pinkerton","pinkham","pinkney","pinkston","pino","pinon","pinson","piotrowski","pires","pirtle","pisano","pitchford","pitre","pitt","pittman","pitts","pitzer","pizarro","placencia","plante","plascencia","platt","plemmons","pless","plotkin","plott","plourde","plumlee","plumley","plummer","plunkett","plyler","poche","poe","poff","pogue","pohl","poindexter","poirier","poisson","pok","polanco","poland","polito","polley","polly","polson","polston","pomerleau","pomeroy","poole","pooler","poore","popham","popovich","popp","porras","porsche","porsha","porterfield","portia","portillo","portis","posner","poston","poteat","poteet","poulin","pouliot","poulos","poulson","powe","powell","poynter","prado","prather","preciado","preece","prendergast","prentiss","prescott","presley","presnell","pressley","preston","prevost","prewitt","prichard","pricilla","prickett","priddy","pridemore","pridgen","priester","prieto","primm","prindle","prine","pringle","priscila","priscilla","pritchard","pritchett","privett","probst","proffitt","propst","prosser","proulx","prouty","provencher","providencia","pruett","pruitt","pryor","puckett","puente","puentes","puga","pugliese","puleo","pulido","pullen","pulliam","pumphrey","pura","purcell","purdy","purifoy","purkey","purnell","pursley","purvis","puryear","putman","putnam","pyatt","pyle","pyles","qiana","quach","quackenbush","quade","qualls","quan","quattlebaum","queenie","quesada","quesenberry","quevedo","quezada","quiana","quigley","quijano","quiles","quillen","quimby","quinlan","quinn","quinonez","quintana","quintanilla","quintero","quinton","quiroz","quyen","raab","rabb","rabe","raber","rabideau","rabinowitz","rabon","raby","rachael","rachal","racheal","rachel","rachele","rachell","rachelle","racine","rackley","racquel","radcliff","radcliffe","rademacher","rader","radford","radke","radtke","rae","raeann","rael","raelene","rafaela","rafferty","ragan","ragin","ragland","ragsdale","raguel","rahman","rahn","railey","raina","rainbolt","rainer","raines","rainey","rainwater","raisa","raleigh","raley","ralph","ralston","ramage","rambo","ramer","rameriz","ramey","ramires","ramirez","ramon","ramona","ramonita","ramos","ramsay","ramsdell","ramsey","ranae","rancourt","randa","randall","randazzo","randee","randel","randell","randi","randle","randolph","randy","ranee","raney","rangel","rankin","rankins","ransdell","ranson","rao","raphael","raposa","rapp","raquel","rasberry","rascon","rasheeda","rashid","rashida","rasmussen","ratchford","ratcliff","ratcliffe","rathbone","rathbun","ratliff","rau","rauch","rausch","rawlings","rawlins","rawls","rawson","raya","rayborn","rayburn","raye","rayfield","rayford","raylene","raymer","raymond","raymonde","raymund","rayna","rayner","raynor","razo","rea","reagan","reanna","reardon","reatha","reavis","reba","rebbeca","rebbecca","rebeca","rebecca","rebecka","rebekah","reber","reda","reddick","redford","redman","redmon","redmond","redwine","reece","reena","reese","refugia","refugio","regalado","regan","regena","regenia","regina","regine","reginia","rehm","reich","reichard","reichel","reichert","reid","reiff","reiko","reilly","reimer","reimers","reina","reiner","reinert","reinhardt","reinhart","reinhold","reinke","reiser","reiss","reita","reitz","rema","rembert","remedios","remillard","remington","remona","remy","rena","renae","renata","renate","renaud","renay","renda","rendon","rene","renea","reneau","renee","renetta","renfro","renfroe","renfrow","renita","renn","renna","renner","rennie","reno","renshaw","renteria","renz","resendez","resnick","ressie","ressler","reta","retha","retta","reuter","reva","revell","revis","rey","reyes","reyna","reynalda","reynolds","reynoso","rhea","rheba","rhee","rhiannon","rhinehart","rhoades","rhoads","rhoda","rhoden","rhodes","rhona","rhonda","rhyne","ribeiro","ricarda","ricci","ricciardi","riccio","richard","richards","richardson","richburg","richelle","richerson","richert","richey","richie","richman","richmond","rickard","rickert","ricketts","ricki","rickie","rickman","rico","riddell","riddick","ridenhour","ridenour","rideout","ridgway","ridley","riedel","rieger","riehl","riendeau","ries","riffe","rigby","rigdon","riggins","riggle","rigney","rigsby","riker","rikki","riley","rimmer","rinaldi","rincon","rinehart","ringler","rinker","riojas","riordan","rios","rioux","ripley","rippy","risa","risinger","risley","risner","ritchey","ritchie","rittenhouse","ritz","rivard","rivera","rivero","rivka","rizo","rizzo","roa","roane","roark","robb","robbie","robbin","robbins","robbyn","robena","roberge","roberson","robert","roberta","roberto","roberts","robertson","robeson","robey","robichaud","robichaux","robinett","robinette","robinson","robison","robledo","robson","roby","robyn","rocco","rocha","roche","rochel","rochell","rochelle","rochester","rocio","rockett","rockwell","rockwood","rodarte","rodas","roddy","roden","roderick","rodgers","rodney","rodrigez","rodrigue","rodrigues","rodriguez","rodriques","rodriquez","roeder","roemer","roesch","roesler","rogan","roger","rogers","rohde","rohr","rohrer","rojas","rojo","roland","rolanda","rolande","roldan","rolf","rolfe","rolle","rollins","rollo","rolon","romana","romano","rome","romelia","romeo","romero","romine","romo","romona","rona","ronald","ronda","roney","roni","ronna","ronni","ronnie","rooker","rooney","rory","rosa","rosado","rosalba","rosalee","rosales","rosalia","rosalie","rosalina","rosalind","rosalinda","rosaline","rosalva","rosalyn","rosamaria","rosamond","rosana","rosann","rosanna","rosanne","rosaria","rosario","rosas","rosaura","roscoe","roseann","roseanna","roseanne","roseberry","roseboro","roselee","roselia","roseline","rosella","roselle","roselyn","roseman","rosemarie","rosemond","rosen","rosena","rosenbaum","rosenberg","rosenberger","rosenberry","rosenblatt","rosenblum","rosenda","rosenfeld","rosenthal","rosetta","rosette","rosia","rosie","rosina","rosio","rosita","roslyn","ross","rossana","rossi","rossie","rossiter","rossman","rost","roth","rothman","rothrock","rothstein","rothwell","rotz","roundtree","roundy","rountree","rourke","roush","rousseau","roussel","rowden","rowe","rowell","rowena","rowland","rowles","rowlett","rowley","roxana","roxane","roxann","roxanna","roxanne","roxie","roy","roybal","royce","royer","royston","rozanne","rozella","rozier","ruano","rubalcava","ruben","rubenstein","rubi","rubie","rubin","rubino","rubio","rubye","ruch","rucker","ruckman","rudnick","rudolph","rudy","rueda","ruelas","ruffner","rufina","rugg","ruggiero","ruggles","ruhl","ruiz","rummel","rumph","rumsey","rundell","runge","runion","runyan","runyon","rupe","rupert","rupp","ruppert","rusch","rushton","russ","russell","russo","rutan","ruth","rutha","ruthann","ruthanne","ruthe","ruthie","rutkowski","rutland","rutledge","ruvalcaba","ryan","ryann","ryder","saad","saari","saavedra","sabina","sabine","sabo","sabol","sabra","sabrina","sacco","sacha","sachiko","sachs","sackett","sadie","sadler","sadowski","sadye","saechao","saenz","saez","safford","saito","saiz","sala","salas","salazar","salcedo","salcido","saldana","saldivar","saleh","salem","salena","salerno","salgado","salisbury","salley","sallie","sally","salo","salome","salomon","saltzman","salvador","salvatore","salyer","salyers","salzman","sam","samaniego","samantha","samara","samatha","samella","samira","sammie","sammons","sammy","samons","samora","sampson","sams","samson","samuel","samuels","samuelson","sana","sanabria","sanborn","sanches","sanchez","sanda","sandberg","sandee","sanderlin","sanderson","sandi","sandidge","sandie","sandifer","sandler","sandlin","sandoval","sandra","sandstrom","sandusky","sanford","sanjuana","sanjuanita","sankey","sanmiguel","sanora","sansom","sansone","santa","santacruz","santamaria","santana","santiago","santillan","santina","santo","santoro","santos","santoyo","sapp","sappington","sara","sarabia","sarah","sarai","saran","sargeant","sargent","sari","sarina","sarita","sarmiento","sartain","sartin","sarver","sasaki","sasha","sasser","sather","sato","satterfield","satterwhite","sattler","saturnina","sau","sauceda","saucedo","sauer","saunders","saundra","sauter","savannah","saville","savino","savoie","sawicki","saxon","saxton","sayles","saylor","sayre","scaife","scalf","scalise","scanlan","scanlon","scarberry","scarborough","scarbrough","scarlett","schaaf","schaal","schade","schaefer","schaeffer","schafer","schaffer","schaffner","schall","schaller","scharf","schatz","schaub","schauer","scheel","scheer","scheffler","schell","scheller","schenck","schenk","scherer","schermerhorn","schexnayder","schick","schiff","schiffman","schindler","schlegel","schleicher","schlosser","schlueter","schmid","schmidt","schmit","schmitt","schmitz","schneider","schock","schoen","schoenfeld","schofield","scholl","scholz","schoonmaker","schoonover","schott","schrader","schram","schramm","schreck","schreiber","schreiner","schrimsher","schrock","schroder","schroeder","schubert","schuck","schuh","schuler","schuller","schulman","schulte","schultz","schulz","schulze","schumacher","schuman","schumann","schuster","schutt","schutz","schuyler","schwab","schwartz","schwarz","schweitzer","scofield","scoggins","scott","scottie","scoville","scribner","scrivner","scroggins","scruggs","scully","seabolt","seabrook","seagraves","seale","sealey","sealy","sean","searcy","searle","searles","seaton","seaver","seavey","seawright","seay","sebastian","sebrina","sechrist","seda","sedillo","seeger","seeley","seema","segal","segarra","seger","segovia","segura","seibel","seiber","seibert","seidel","seifert","seiler","seitz","selby","selena","selene","selina","sellars","selma","selman","sena","senaida","seng","senn","senter","sepulveda","serafina","serena","sergent","serina","serita","serna","serrano","serrato","sessoms","setser","setsuko","setzer","severson","sevier","sevigny","sevilla","seward","sewell","seymore","seymour","shackelford","shackleford","shae","shafer","shaffer","shaina","shakia","shakira","shakita","shala","shalanda","shalon","shalonda","shamblin","shameka","shamika","shana","shanae","shanahan","shanda","shandi","shandra","shane","shaneka","shanel","shanell","shanelle","shaner","shani","shanice","shanika","shaniqua","shanita","shankle","shanklin","shanna","shannan","shannon","shanon","shanta","shantae","shantay","shante","shantel","shantell","shantelle","shanti","shapiro","shaquana","shaquita","shara","sharan","sharda","sharee","sharell","sharen","shari","sharice","sharie","sharika","sharilyn","sharita","sharkey","sharla","sharleen","sharlene","sharma","sharmaine","sharolyn","sharon","sharonda","sharpe","sharri","sharron","sharyl","sharyn","shasta","shattuck","shaughnessy","shaun","shauna","shaunda","shaunna","shaunta","shaunte","shavon","shavonda","shavonne","shawana","shawanda","shawanna","shawn","shawna","shawnda","shawnee","shawnna","shawnta","shay","shayla","shayna","shayne","shea","shealy","shearin","sheba","shedd","sheehan","sheehy","sheena","sheffield","sheila","sheilah","shela","shelba","shelby","sheldon","shelia","shella","shelley","shelli","shellie","shelly","shelton","shemeka","shemika","shena","shenika","shenita","shenk","shenna","shepard","shephard","sheppard","shera","sheree","sherell","sherer","sheri","sherice","sheridan","sherie","sherika","sherill","sherilyn","sherise","sherita","sherlene","sherley","sherly","sherlyn","sherman","sheron","sherrell","sherrer","sherri","sherrie","sherril","sherrill","sherrod","sherron","sherryl","sherwin","sherwood","shery","sheryl","sheryll","shetler","shick","shiela","shifflett","shiflett","shila","shiloh","shinn","shipe","shipley","shipp","shippy","shira","shirely","shirey","shirl","shirlee","shirleen","shirlene","shirley","shirly","shively","shizue","shizuko","shockey","shockley","shoemake","shoffner","shona","shonda","shondra","shonna","shonta","shoop","shortridge","shoshana","shotwell","shoup","shouse","showalter","shrader","shreve","shropshire","shroyer","shrum","shu","shubert","shuler","shull","shults","shultz","shumaker","shuman","shumate","shumpert","shumway","shupe","shuster","shutt","shyla","sibert","sibley","sibyl","sickler","sidney","siebert","siegel","siegfried","sievers","sifuentes","sigler","sigman","sigmon","signe","sigrid","sikora","silas","silva","silvana","silveira","silverman","silverstein","silvey","silvia","simard","simas","simmon","simmons","simms","simon","simona","simonds","simone","simoneau","simoneaux","simonne","simons","simonson","simonton","simpkins","simpson","sinclair","sindy","singh","singletary","singley","siobhan","sirena","sirois","sisco","sisk","sisneros","sisson","sistrunk","sitton","siu","sixta","sizemore","skaggs","skeen","skeens","skelton","skidmore","skiles","skye","slagle","slaton","slavin","slayton","sloat","slocum","slone","slover","slusher","slyvia","smalley","smallwood","smedley","smelser","smitherman","smithson","smtih","smyth","smythe","snapp","snavely","snodgrass","snowden","snyder","soares","sobel","socorro","sofia","sohn","soila","soileau","sokol","solange","solberg","soledad","solis","soliz","soloman","solomon","solorio","solorzano","somer","somers","somerville","sommer","sommers","sommerville","sona","sondra","songer","sonia","sonja","sonnier","sonya","soper","sophia","sophie","sophy","soraya","sorensen","sorenson","soria","soriano","sorrell","sorrells","sosa","sotelo","soto","soucy","soukup","soule","sousa","southard","southerland","southwick","southworth","souza","sowder","sowell","spalding","spann","spano","sparkman","spaulding","specht","spector","speight","spellman","sperry","spiegel","spielman","spiers","spiker","spillman","spinelli","spitler","spitzer","spivey","spooner","spradlin","spradling","spraggins","sprague","spratt","sprayberry","spriggs","sproul","sprouse","spruill","spurgeon","spurlock","staats","stacee","stacey","staci","stacia","stacie","stackhouse","stacy","stadler","stafford","stagg","staggs","stagner","stahl","staley","stallard","stallworth","stalnaker","stambaugh","stamey","stamm","stancil","standifer","standley","standridge","stanfield","stanfill","stanford","stanger","stanley","stansberry","stansbury","stanton","stapleton","starkey","starla","starnes","starr","stasia","staten","staton","staub","stauffer","stclair","stcyr","steadman","stearns","stebbins","steck","stedman","steele","steelman","stefani","stefania","stefanie","stefany","steffanie","steffen","steffens","stegall","steger","steib","steiger","steinbach","steinberg","steiner","steinke","steinman","steinmetz","stella","stelly","stenson","stepanie","stephaine","stephan","stephane","stephani","stephania","stephanie","stephany","stephen","stephenie","stephens","stephenson","stephine","stephnie","stepp","sternberg","stetson","steven","stevenson","steverson","stevie","stewart","stgermain","sthilaire","stickney","stidham","stier","stiffler","stillman","stillwell","stiltner","stilwell","stine","stines","stinnett","stinson","stites","stith","stitt","stjohn","stlaurent","stlouis","stockdale","stockton","stockwell","stoddard","stoffel","stogner","stoll","stollings","stoltz","stoltzfus","stonge","stott","stotts","stouffer","stovall","stowe","stowell","stpeter","stpierre","strachan","strader","strahan","straka","straley","strasser","stratton","straub","strauss","strawn","strawser","streeter","streit","stribling","stricker","strickland","strickler","stricklin","stringfellow","strobel","stroh","strom","stroman","stromberg","strother","strouse","struble","strunk","stuart","stubblefield","stuckey","studer","stultz","stumpf","sturdivant","sturges","sturgill","sturgis","sturm","sturtevant","stutz","stutzman","suanne","suarez","suazo","sublett","sudduth","sudie","sueann","suellen","suggs","suh","suiter","suk","sulema","sullins","sullivan","sumiko","summerlin","summerville","sumner","sumrall","sundberg","sunderland","sunni","surber","surratt","susan","susana","susann","susanna","susannah","susanne","susie","sussman","susy","suter","sutherland","sutphin","sutter","sutton","suzan","suzann","suzanna","suzanne","suzette","suzi","suzie","suzuki","suzy","svetlana","svitlana","svoboda","swafford","swaim","swaney","swanger","swann","swanner","swanson","swarey","swartz","swearingen","sweatt","sweitzer","swenson","swett","swick","swiger","swindell","swinford","swinney","swinson","swint","swinton","switzer","swope","sybil","syble","sydney","sydnor","sylvester","sylvia","sylvie","symons","synder","synthia","syreeta","szabo","szymanski","tabatha","tabb","taber","tabetha","tabitha","tackett","tafoya","taft","taggart","tague","taina","taisha","tajuana","takahashi","takako","takisha","talamantes","talavera","talbert","talbott","talia","taliaferro","talisha","talitha","talkington","tallent","talley","tallman","talton","tamala","tamar","tamara","tamatha","tamayo","tambra","tameika","tameka","tamekia","tamela","tamera","tamesha","tamez","tami","tamica","tamie","tamika","tamiko","tamisha","tammara","tammera","tammi","tammie","tammy","tamra","tana","tanaka","tandra","tandy","taneka","tanesha","tangela","tanguay","tania","tanika","tanisha","tanja","tankersley","tanna","tanya","tapia","tapley","tapp","tara","tarah","tarango","tarbox","tardif","tardiff","taren","tari","tarpley","tarr","tarra","tarrant","tarsha","tarver","taryn","tasha","tashia","tashina","tasia","tatiana","tatro","tatum","tatyana","taunya","tavares","tavarez","taveras","tawana","tawanda","tawanna","tawna","tawnya","taylor","tayna","teague","teasley","tedford","teena","teets","tegan","teisha","teixeira","tejada","tejeda","telford","telles","tellez","tello","telma","temeka","temika","tempie","templeton","templin","tena","tenesha","tenisha","tennant","tenney","tennie","tennille","tennison","tennyson","tenorio","teodora","teofila","tera","teran","tereasa","teresa","terese","teresia","teresita","teressa","teri","terica","terina","terisa","terra","terrazas","terrell","terresa","terri","terrie","terrill","terrilyn","terry","terwilliger","tesch","tesha","tess","tessa","tessie","tessier","testerman","teter","tetreault","thach","thacker","thai","thalia","thames","thanh","thao","tharp","tharpe","thaxton","thayer","thea","theda","theis","theisen","theiss","thelen","thelma","theo","theobald","theodora","theodore","theola","theresa","therese","theresia","theressa","theriault","theriot","therrien","thersa","thi","thibault","thibeault","thibodeau","thibodeaux","thiel","thiele","thielen","thies","thigpen","thom","thoma","thomas","thomasena","thomasina","thomasine","thomason","thomasson","thompkins","thompson","thomsen","thomson","thora","thornberry","thornburg","thorne","thornhill","thornton","thorson","thorton","threadgill","threatt","thresa","throckmorton","thu","thurber","thurman","thurmond","thurston","thuy","tia","tiana","tianna","tibbetts","tibbs","tidwell","tiera","tierney","tierra","tiesha","tifany","tiffaney","tiffani","tiffanie","tiffany","tiffiny","tighe","tijerina","tijuana","tilda","tilghman","tillery","tillett","tilley","tillie","tillis","tillman","tillotson","tilton","timberlake","timika","timm","timmerman","timmons","timms","timothy","tims","tina","tincher","tindall","tindle","tingley","tinisha","tinney","tinsley","tippett","tipton","tirado","tisa","tisdale","tish","tisha","titus","tobar","tobey","tobi","tobias","tobie","tobin","toby","toccara","todd","toi","toland","tolbert","toledo","tolentino","toler","toliver","tolle","tollefson","tolley","tolliver","tolman","tolson","tomas","tomasa","tomblin","tomeka","tomi","tomika","tomiko","tomlin","tomlinson","tommie","tommy","tommye","tomoko","tompkins","tona","tonda","tonette","toni","tonia","tonie","tonisha","tonita","tonja","tony","tonya","toole","tooley","toombs","toomer","toomey","tora","torgerson","tori","torie","toro","torre","torrence","torres","torrey","torrez","torri","torrie","tory","toscano","tosha","toshia","toshiko","toth","totten","toussaint","tova","tovar","towanda","towe","towle","towne","towner","townes","townley","townsend","townsley","toya","tracee","tracey","traci","tracie","tracy","trahan","trainor","tramel","trammell","tran","trang","trantham","trapp","trask","travers","travis","trawick","traylor","traynor","treadway","treadwell","treasa","treece","treena","trejo","tremblay","trena","trent","tresa","tressa","tressie","treva","trevino","trexler","tricia","trigg","trimble","trina","trinh","trinidad","triplett","tripp","trish","trisha","trista","tristan","trombley","trost","trotman","trott","trottier","troup","troutman","trowbridge","troxell","troxler","troy","troyer","truax","trudeau","trudi","trudie","trudy","trueblood","truelove","truesdale","truett","truitt","trujillo","trula","truman","truong","trussell","tsai","tsang","tse","tso","tsosie","tubbs","tucci","tudor","tuggle","tula","tull","tullis","tully","tunnell","tunstall","tupper","turcotte","turgeon","turk","turley","turman","turnage","turnbow","turnbull","turney","turpin","tutt","tuttle","tuyet","twana","twanda","twanna","twigg","twila","twilley","twitty","twombly","twomey","twyla","twyman","tyesha","tyisha","tyler","tyndall","tyner","tynisha","tyra","tyree","tyrrell","tyson","tyus","uhl","ulibarri","ullman","ulloa","ullrich","ulmer","ulrich","ulrike","underhill","ung","unger","unknow","unruh","upchurch","upshaw","upton","urbina","urias","uribe","urquhart","urrutia","ursula","usha","ussery","ute","utley","vaca","vaccaro","vachon","vada","vaden","vadnais","vaillancourt","val","valadez","valarie","valda","valdes","valdez","valdivia","valdovinos","valencia","valene","valente","valenti","valentin","valentina","valentino","valenzuela","valeri","valeria","valerie","valerio","valero","valery","valladares","valle","vallee","vallejo","valles","vallie","valliere","valorie","valrie","valverde","vanatta","vanburen","vanbuskirk","vance","vancleave","vanda","vandenberg","vanderpool","vandiver","vandusen","vandyke","vanegas","vanesa","vanessa","vanetta","vanhook","vanhoose","vanhorn","vanhouten","vania","vanita","vankirk","vanlandingham","vanmeter","vann","vanna","vannatta","vannesa","vanness","vannessa","vannoy","vanover","vanpelt","vanscoy","vansickle","vantassel","vanwinkle","vanzandt","vanzant","varela","varga","vargas","vargo","varnado","varner","varney","vashti","vasiliki","vasques","vasquez","vassallo","vassar","vaughan","vaughn","vaught","vazquez","veach","veasey","veda","veilleux","velarde","velasco","velasquez","velazquez","velda","velez","velia","veliz","vella","velma","veloz","velva","vena","venable","venegas","venessa","venetta","venice","venita","vennie","ventura","veola","vera","verda","verdell","verdie","verdugo","verduzco","vereen","verena","vergara","vergie","verla","verlene","verlie","verline","vermillion","verna","vernell","vernetta","vernia","vernice","vernie","vernita","vernon","verona","veronica","veronika","veronique","verret","versie","vertie","vesta","veta","vetter","vicenta","vick","vickers","vickery","vickey","vicki","vickie","vicky","victoria","victorina","vida","vidal","vidrine","vieira","viera","vierra","vigue","viki","vikki","villagomez","villalba","villalobos","villalpando","villanueva","villareal","villarreal","villasenor","villatoro","villegas","villeneuve","vilma","vincent","vincenza","vinita","vinnie","vinson","violeta","violette","virgen","virgie","virgil","virgina","virginia","visser","vitale","vivan","vivian","viviana","vivien","vivienne","voelker","vogel","vogler","vogt","voight","voigt","volkman","vollmer","volpe","volz","voncile","vonda","vonnie","voorhees","voss","vowell","voyles","vue","vuong","wachter","waddell","wadley","wadsworth","wagner","wagstaff","wahl","wai","waite","waites","wakefield","walcott","walczak","walden","waldman","waldon","waldron","waldrop","waldrup","wallace","wallen","walley","wallin","wallis","walsh","walston","walter","walters","walther","waltman","walton","waltraud","walz","wampler","wanda","waneta","wanetta","wanita","wardell","wardlaw","warfield","wargo","warnke","warnock","warr","warrick","warrington","warwick","washburn","washington","wasson","watanabe","waterhouse","watford","watkins","watson","watters","watterson","wava","wayland","wayman","wayne","weatherby","weatherford","weathersby","weatherspoon","webb","webber","weddle","weeden","weekley","weese","wegner","wei","weidman","weidner","weigand","weigel","weiland","weiler","weimer","weinberg","weinberger","weiner","weinstein","weintraub","weis","weisberg","weise","weiser","weisman","weiss","weissman","weitzel","welborn","weldon","welker","weller","wellington","wellman","welton","welty","wendel","wendell","wendi","wendie","wendling","wendolyn","wendt","wendy","wenger","wenona","wentworth","wentz","wentzel","wenzel","werner","werth","wertz","wescott","wesley","wessel","wessels","wesson","westberry","westbrook","westbrooks","westcott","westerfield","westerman","westfall","westlund","westmoreland","weston","westover","westphal","wethington","wetmore","wetzel","wexler","whalen","whaley","wharton","whatley","wheatley","wheaton","wheelock","whelan","whipple","whisenant","whisenhunt","whisler","whitacre","whitaker","whitcomb","whitehead","whitehouse","whitehurst","whiteley","whiteman","whitesell","whiteside","whitfield","whitford","whitley","whitlock","whitman","whitmer","whitmire","whitmore","whitney","whitson","whitt","whittaker","whitted","whittemore","whitten","whittier","whittington","whitton","whitworth","whorton","whyte","wickham","wicklund","wickman","wideman","widmer","widner","wiegand","wieland","wiener","wiese","wigfall","wiggins","wiggs","wigley","wilbanks","wilber","wilborn","wilbourn","wilbur","wilburn","wilcher","wilcox","wilda","wilde","wildman","wiley","wilfong","wilford","wilhelm","wilhelmina","wilhemina","wilhite","wilhoit","wilk","wilke","wilkens","wilkerson","wilkes","wilkey","wilkie","wilkins","wilkinson","wilks","willa","willaims","willams","willard","wille","willena","willene","willett","willetta","willette","willhite","willia","william","williams","williamson","willie","williemae","williford","willingham","willis","willison","willman","willodean","willoughby","willson","wilma","wilmot","wilmoth","wilson","wilton","wimberly","wimbush","wimer","wimmer","winburn","winchell","winchester","windham","windom","windsor","winegar","winfield","winfrey","wingard","wingate","wingfield","wingo","winifred","winkelman","winkler","winn","winnie","winnifred","winona","winslow","winstead","winston","winton","wirth","wiseman","wisner","wisniewski","witcher","witham","witherspoon","withrow","witkowski","witmer","witt","witte","witten","wittman","wofford","wojcik","wolcott","wolfe","wolfenbarger","wolff","wolfgang","wolford","wolfson","wolter","wolters","womack","wonda","wong","woodall","woodard","woodbury","woodford","woodham","woodley","woodring","woodrow","woodrum","woodson","woodworth","woolard","wooldridge","woolery","wooley","woolf","woolfolk","woolley","woolridge","woosley","wooster","wooten","wooton","worden","worley","worrell","worsham","worsley","wortham","worthen","worthington","wortman","wozniak","wray","wrenn","wulf","wunderlich","wurth","wyant","wyatt","wyche","wyckoff","wylie","wyman","wynell","wynne","wynona","wyrick","wysocki","xenia","xiao","xiomara","xiong","xochitl","xuan","yadira","yaeko","yael","yahaira","yajaira","yamada","yamamoto","yan","yancey","yancy","yandell","yanez","yanira","yarber","yarborough","yarbrough","yasmin","yasmine","yasuko","yates","yazzie","ybarra","yeager","yee","yeh","yelena","yepez","yer","yesenia","yessenia","yetta","yeung","yevette","yi","yim","ying","yingling","yoakum","yockey","yocum","yoder","yoel","yoho","yoko","yolanda","yolande","yolando","yolonda","yong","yoo","yoon","yoshida","yoshie","yoshiko","yost","youlanda","youmans","youngblood","youngman","youngs","yount","younts","yu","yuen","yuette","yuk","yuki","yukiko","yuko","yulanda","yun","yung","yuonne","yuri","yuriko","yvette","yvone","yvonne","zachary","zack","zada","zahn","zaida","zajac","zak","zamarripa","zambrano","zamora","zamudio","zana","zandra","zaragoza","zarate","zavala","zayas","zeigler","zelaya","zelda","zella","zeller","zellers","zelma","zena","zenaida","zendejas","zenia","zenobia","zepeda","zeringue","zetta","zhang","zhao","ziegler","zielinski","zimmerman","zimmermann","zina","zink","zinn","zita","zito","zoe","zofia","zoila","zola","zona","zonia","zook","zora","zoraida","zorn","zuber","zucker","zula","zulema","zulma","zumwalt","zuniga"].join("|")+"))+\\b","gim");class St{constructor(e="PERSON_NAME"){this.replaceWith=e}redact(e){wt.lastIndex=0,kt.lastIndex=0;let t=wt.exec(e);for(;null!==t;){kt.lastIndex=wt.lastIndex;let r=kt.exec(e);if(null!==r&&r.index===wt.lastIndex){let t=null===r[5]?"":r[5];e=e.slice(0,r.index)+this.replaceWith+t+e.slice(r.index+r[0].length)}t=wt.exec(e)}return e=e.replace(vt,"$1"+this.replaceWith)}}const Ct=new RegExp("(\\d+\\s*(\\w+ ){1,2}"+/(street|st|road|rd|avenue|ave|drive|dr|loop|court|ct|circle|cir|lane|ln|boulevard|blvd|way)\.?\b/gi.source+"(\\s+"+/(apt|bldg|dept|fl|hngr|lot|pier|rm|ste|slip|trlr|unit|#)\.? *[a-z0-9-]+\b/gi.source+")?)|("+/P\.? ?O\.? *Box +\d+/gi.source+")","gi"),xt=Object.freeze(Object.defineProperty({__proto__:null,credentials:/(login( cred(ential)?s| info(rmation)?)?|cred(ential)?s) ?:\s*\S+\s+\/?\s*\S+/gi,creditCardNumber:/\d{4}[ -]?\d{4}[ -]?\d{4}[ -]?\d{4}|\d{4}[ -]?\d{6}[ -]?\d{4}\d?/g,digits:/\b\d{4,}\b/g,emailAddress:/([a-z0-9_\-.+]+)@\w+(\.\w+)*/gi,ipAddress:/(\d{1,3}(\.\d{1,3}){3}|[0-9A-F]{4}(:[0-9A-F]{4}){5}(::|(:0000)+))/gi,password:/(pass(word|phrase)?|secret): \S+/gi,phoneNumber:/(\(?\+?[0-9]{1,2}\)?[-. ]?)?(\(?[0-9]{3}\)?|[0-9]{3})[-. ]?([0-9]{3}[-. ]?[0-9]{4}|\b[A-Z0-9]{7}\b)/g,streetAddress:Ct,url:/([^\s:/?#]+):\/\/([^/?#\s]*)([^?#\s]*)(\?([^#\s]*))?(#([^\s]*))?/g,usSocialSecurityNumber:/\b\d{3}[ -.]\d{2}[ -.]\d{4}\b/g,username:/(user( ?name)?|login): \S+/gi,zipcode:/\b\d{5}\b(-\d{4})?\b/g},Symbol.toStringTag,{value:"Module"}));function It(e){return e.replace(/[A-Z]/g,(e,t)=>0!==t?`_${e.toLowerCase()}`:e.toLowerCase())}class Ot{constructor({replaceWith:e=It("default").toUpperCase(),regexpPattern:t}){__publicField(this,"regexpMatcher"),__publicField(this,"replaceWith"),this.replaceWith=e,this.regexpMatcher=t}redact(e){return e.replace(this.regexpMatcher,this.replaceWith)}}function At(e){return void 0!==e.regexpPattern?new Ot({regexpPattern:e.regexpPattern,replaceWith:e.replaceWith}):e}class Et{constructor(e){__publicField(this,"childRedactors",[]),__publicField(this,"redact",e=>{for(const t of this.childRedactors)e=t.redact(e);return e}),this.childRedactors=function(e={}){const t=[];e.customRedactors&&e.customRedactors.before&&e.customRedactors.before.map(At).forEach(e=>t.push(e));for(const r of Object.keys(xt))e.builtInRedactors&&e.builtInRedactors[r]&&!1===e.builtInRedactors[r].enabled||t.push(new Ot({regexpPattern:xt[r],replaceWith:e.globalReplaceWith||It(r).toUpperCase()}));return e.builtInRedactors&&e.builtInRedactors.names&&!1===e.builtInRedactors.names.enabled||t.push(new St(e.globalReplaceWith)),e.customRedactors&&e.customRedactors.after&&e.customRedactors.after.map(At).forEach(e=>t.push(e)),t}(e)}}const Rt={before:[{regexpPattern:/\b[A-Z]\d{7}\b/g,replaceWith:"PASSPORT_NUMBER"},{regexpPattern:/(?<=password: )(.*)/gi,replaceWith:"[REDACTED]"}]};function Mt(e){return new Et({builtInRedactors:{names:{replaceWith:"ANONYMOUS_PERSON"}},customRedactors:Rt}).redact(e)}function jt(e){const t=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null);let r;for(;r=t.nextNode();){const e=r.nodeValue,t=Mt(e);e!==t&&(r.nodeValue=t)}!function(e){const t=Array.from(e.querySelectorAll('input[type="password"]'));t.forEach(e=>{e.value="[REDACTED]"})}(e)}async function zt(e={}){const{maxWaitTime:t=2e3,minStableFrames:r=3,requiredSelectors:n=[]}=e;return new Promise(e=>{const s=performance.now();let i,o=0,a=0;const l=()=>{if(performance.now()-s>t)return cancelAnimationFrame(i),void e();const c=document.documentElement.offsetHeight;if(c!==a||n.length&&!n.every(e=>{const t=document.querySelector(e);if(!t)return!1;const r=t.getBoundingClientRect();return r.width>0&&r.height>0}))o=0;else if(o++,o>=r)return cancelAnimationFrame(i),void e();a=c,i=requestAnimationFrame(l)};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>{i=requestAnimationFrame(l)},{once:!0}):i=requestAnimationFrame(l)})}var Nt,_t=Object.defineProperty,Tt=(e,t,r)=>((e,t,r)=>t in e?_t(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r),Pt=Object.defineProperty,Lt=(e,t,r)=>((e,t,r)=>t in e?Pt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r),Ft=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Ft||{});const Dt={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Bt={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Ut={};function Vt(e){if(Ut[e])return Ut[e];const t=globalThis[e],r=t.prototype,n=e in Dt?Dt[e]:void 0,s=Boolean(n&&n.every(e=>{var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),i=e in Bt?Bt[e]:void 0,o=Boolean(i&&i.every(e=>{var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(s&&o&&!globalThis.Zone)return Ut[e]=t.prototype,t.prototype;try{const n=document.createElement("iframe");document.body.appendChild(n);const s=n.contentWindow;if(!s)return t.prototype;const i=s[e].prototype;return document.body.removeChild(n),i?Ut[e]=i:r}catch{return r}}const Wt={};function qt(e,t,r){var n;const s=`${e}.${String(r)}`;if(Wt[s])return Wt[s].call(t);const i=Vt(e),o=null==(n=Object.getOwnPropertyDescriptor(i,r))?void 0:n.get;return o?(Wt[s]=o,o.call(t)):t[r]}const Yt={};function Zt(e,t,r){const n=`${e}.${String(r)}`;if(Yt[n])return Yt[n].bind(t);const s=Vt(e)[r];return"function"!=typeof s?t[r]:(Yt[n]=s,s.bind(t))}const Gt={childNodes:function(e){return qt("Node",e,"childNodes")},parentNode:function(e){return qt("Node",e,"parentNode")},parentElement:function(e){return qt("Node",e,"parentElement")},textContent:function(e){return qt("Node",e,"textContent")},contains:function(e,t){return Zt("Node",e,"contains")(t)},getRootNode:function(e){return Zt("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?qt("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?qt("Element",e,"shadowRoot"):null},querySelector:function(e,t){return qt("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return qt("Element",e,"querySelectorAll")(t)},mutationObserver:function(){return Vt("MutationObserver").constructor}};function Jt(e){return e.nodeType===e.ELEMENT_NODE}function $t(e){const t=e&&"host"in e&&"mode"in e&&Gt.host(e)||null;return Boolean(t&&"shadowRoot"in t&&Gt.shadowRoot(t)===e)}function Ht(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function Xt(e){try{const r=e.rules||e.cssRules;if(!r)return null;let n=e.href;!n&&e.ownerNode&&e.ownerNode.ownerDocument&&(n=e.ownerNode.ownerDocument.location.href);const s=Array.from(r,e=>Kt(e,n)).join("");return(t=s).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t}catch(r){return null}var t}function Kt(e,t){if(function(e){return"styleSheet"in e}(e)){let t;try{t=Xt(e.styleSheet)||function(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const r=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(r){t=e.cssText}return e.styleSheet.href?cr(t,e.styleSheet.href):t}{let r=e.cssText;return function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":")&&(r=function(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}(r)),t?cr(r,t):r}}let Qt=class{constructor(){Lt(this,"idNodeMap",new Map),Lt(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;return(null==(t=this.getMeta(e))?void 0:t.id)??-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){const r=this.getNode(e);if(r){const 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 er({element:e,maskInputOptions:t,tagName:r,type:n,value:s,maskInputFn:i}){let o=s||"";const a=n&&tr(n);return(t[r.toLowerCase()]||a&&t[a])&&(o=i?i(o,e):"*".repeat(o.length)),o}function tr(e){return e.toLowerCase()}const rr="__rrweb_original__";function nr(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?tr(t):null}function sr(e,t){let r;try{r=new URL(e,t??window.location.href)}catch(Hk){return null}const n=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return(null==n?void 0:n[1])??null}const ir=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,or=/^(?:[a-z+]+:)?\/\//i,ar=/^www\..*/i,lr=/^(data:)([^,]*),(.*)/i;function cr(e,t){return(e||"").replace(ir,(e,r,n,s,i,o)=>{const a=n||i||o,l=r||s||"";if(!a)return e;if(or.test(a)||ar.test(a))return`url(${l}${a}${l})`;if(lr.test(a))return`url(${l}${a}${l})`;if("/"===a[0])return`url(${l}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+a}${l})`;const c=t.split("/"),h=a.split("/");c.pop();for(const t of h)"."!==t&&(".."===t?c.pop():c.push(t));return`url(${l}${c.join("/")}${l})`})}function hr(e){return e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"")}function ur(e,t){return function(e,t){const r=Array.from(t.childNodes),n=[];if(r.length>1&&e&&"string"==typeof e){const t=hr(e);for(let s=1;s<r.length;s++)if(r[s].textContent&&"string"==typeof r[s].textContent){const i=hr(r[s].textContent);for(let r=3;r<i.length;r++){const s=i.substring(0,r);if(2===t.split(s).length){const r=t.indexOf(s);for(let t=r;t<e.length;t++)if(hr(e.substring(0,t)).length===r){n.push(e.substring(0,t)),e=e.substring(t);break}break}}}}return n.push(e),n}(e,t).join("/* rr_split */")}let dr=1;const pr=new RegExp("[^a-z0-9-_:]");function mr(){return dr++}let fr,gr;const yr=/^[^ \t\n\r\u000c]+/,br=/^[, \t\n\r\u000c]+/;const wr=new WeakMap;function kr(e,t){return t&&""!==t.trim()?Sr(e,t):t}function vr(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function Sr(e,t){let r=wr.get(e);if(r||(r=e.createElement("a"),wr.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function Cr(e,t,r,n){return n?"src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0]?kr(e,n):"background"!==r||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===r?function(e,t){if(""===t.trim())return t;let r=0;function n(e){let n;const s=e.exec(t.substring(r));return s?(n=s[0],r+=n.length,n):""}const s=[];for(;n(br),!(r>=t.length);){let i=n(yr);if(","===i.slice(-1))i=kr(e,i.substring(0,i.length-1)),s.push(i);else{let n="";i=kr(e,i);let o=!1;for(;;){const e=t.charAt(r);if(""===e){s.push((i+n).trim());break}if(o)")"===e&&(o=!1);else{if(","===e){r+=1,s.push((i+n).trim());break}"("===e&&(o=!0)}n+=e,r+=1}}}return s.join(", ")}(e,n):"style"===r?cr(n,Sr(e)):"object"===t&&"data"===r?kr(e,n):n:kr(e,n):n}function xr(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function Ir(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&Ir(Gt.parentNode(e),t,r);for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!!r&&Ir(Gt.parentNode(e),t,r)}function Or(e,t,r,n){let s;if(Jt(e)){if(s=e,!Gt.childNodes(s).length)return!1}else{if(null===Gt.parentElement(e))return!1;s=Gt.parentElement(e)}try{if("string"==typeof t){if(n){if(s.closest(`.${t}`))return!0}else if(s.classList.contains(t))return!0}else if(Ir(s,t,n))return!0;if(r)if(n){if(s.closest(r))return!0}else if(s.matches(r))return!0}catch(i){}return!1}function Ar(e,t){const{doc:r,mirror:n,blockClass:s,blockSelector:i,needsMask:o,inlineStylesheet:a,maskInputOptions:l={},maskTextFn:c,maskInputFn:h,dataURLOptions:u={},inlineImages:d,recordCanvas:p,keepIframeSrcFn:m,newlyAddedElement:f=!1,cssCaptured:g=!1}=t,y=function(e,t){if(!t.hasNode(e))return;const r=t.getId(e);return 1===r?void 0:r}(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:Ft.Document,childNodes:[],compatMode:e.compatMode}:{type:Ft.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Ft.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:y};case e.ELEMENT_NODE:return function(e,t){const{doc:r,blockClass:n,blockSelector:s,inlineStylesheet:i,maskInputOptions:o={},maskInputFn:a,dataURLOptions:l={},inlineImages:c,recordCanvas:h,keepIframeSrcFn:u,newlyAddedElement:d=!1,rootId:p}=t,m=function(e,t,r){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let r=e.classList.length;r--;){const n=e.classList[r];if(t.test(n))return!0}if(r)return e.matches(r)}catch(n){}return!1}(e,n,s),f=function(e){if(e instanceof HTMLFormElement)return"form";const t=tr(e.tagName);return pr.test(t)?"div":t}(e);let g={};const y=e.attributes.length;for(let k=0;k<y;k++){const t=e.attributes[k];xr(f,t.name,t.value)||(g[t.name]=Cr(r,f,tr(t.name),t.value))}if("link"===f&&i){const t=Array.from(r.styleSheets).find(t=>t.href===e.href);let n=null;t&&(n=Xt(t)),n&&(delete g.rel,delete g.href,g._cssText=n)}if("style"===f&&e.sheet){let t=Xt(e.sheet);t&&(e.childNodes.length>1&&(t=ur(t,e)),g._cssText=t)}if("input"===f||"textarea"===f||"select"===f){const t=e.value,r=e.checked;"radio"!==g.type&&"checkbox"!==g.type&&"submit"!==g.type&&"button"!==g.type&&t?g.value=er({element:e,type:nr(e),tagName:f,value:t,maskInputOptions:o,maskInputFn:a}):r&&(g.checked=r)}"option"===f&&(e.selected&&!o.select?g.selected=!0:delete g.selected);"dialog"===f&&e.open&&(g.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal");if("canvas"===f&&h)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let r=0;r<e.width;r+=50)for(let n=0;n<e.height;n+=50){const s=t.getImageData,i=rr in s?s[rr]:s;if(new Uint32Array(i.call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some(e=>0!==e))return!1}return!0})(e)||(g.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){const t=e.toDataURL(l.type,l.quality),n=r.createElement("canvas");n.width=e.width,n.height=e.height;t!==n.toDataURL(l.type,l.quality)&&(g.rr_dataURL=t)}if("img"===f&&c){fr||(fr=r.createElement("canvas"),gr=fr.getContext("2d"));const t=e,n=t.currentSrc||t.getAttribute("src")||"<unknown-src>",s=t.crossOrigin,i=()=>{t.removeEventListener("load",i);try{fr.width=t.naturalWidth,fr.height=t.naturalHeight,gr.drawImage(t,0,0),g.rr_dataURL=fr.toDataURL(l.type,l.quality)}catch(Hk){if("anonymous"!==t.crossOrigin)return t.crossOrigin="anonymous",void(t.complete&&0!==t.naturalWidth?i():t.addEventListener("load",i));console.warn(`Cannot inline img src=${n}! Error: ${Hk}`)}"anonymous"===t.crossOrigin&&(s?g.crossOrigin=s:t.removeAttribute("crossorigin"))};t.complete&&0!==t.naturalWidth?i():t.addEventListener("load",i)}if("audio"===f||"video"===f){const t=g;t.rr_mediaState=e.paused?"paused":"played",t.rr_mediaCurrentTime=e.currentTime,t.rr_mediaPlaybackRate=e.playbackRate,t.rr_mediaMuted=e.muted,t.rr_mediaLoop=e.loop,t.rr_mediaVolume=e.volume}d||(e.scrollLeft&&(g.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(g.rr_scrollTop=e.scrollTop));if(m){const{width:t,height:r}=e.getBoundingClientRect();g={class:g.class,rr_width:`${t}px`,rr_height:`${r}px`}}"iframe"!==f||u(g.src)||(e.contentDocument||(g.rr_src=g.src),delete g.src);let b;try{customElements.get(f)&&(b=!0)}catch(w){}return{type:Ft.Element,tagName:f,attributes:g,childNodes:[],isSVG:vr(e)||void 0,needBlock:m,rootId:p,isCustom:b}}(e,{doc:r,blockClass:s,blockSelector:i,inlineStylesheet:a,maskInputOptions:l,maskInputFn:h,dataURLOptions:u,inlineImages:d,recordCanvas:p,keepIframeSrcFn:m,newlyAddedElement:f,rootId:y});case e.TEXT_NODE:return function(e,t){const{needsMask:r,maskTextFn:n,rootId:s,cssCaptured:i}=t,o=Gt.parentNode(e),a=o&&o.tagName;let l="";const c="STYLE"===a||void 0,h="SCRIPT"===a||void 0;h?l="SCRIPT_PLACEHOLDER":i||(l=Gt.textContent(e),c&&l&&(l=cr(l,Sr(t.doc))));!c&&!h&&l&&r&&(l=n?n(l,Gt.parentElement(e)):l.replace(/[\S]/g,"*"));return{type:Ft.Text,textContent:l||"",rootId:s}}(e,{doc:r,needsMask:o,maskTextFn:c,rootId:y,cssCaptured:g});case e.CDATA_SECTION_NODE:return{type:Ft.CDATA,textContent:"",rootId:y};case e.COMMENT_NODE:return{type:Ft.Comment,textContent:Gt.textContent(e)||"",rootId:y};default:return!1}}function Er(e){return null==e?"":e.toLowerCase()}function Rr(e,t){const{doc:r,mirror:n,blockClass:s,blockSelector:i,maskTextClass:o,maskTextSelector:a,skipChild:l=!1,inlineStylesheet:c=!0,maskInputOptions:h={},maskTextFn:u,maskInputFn:d,slimDOMOptions:p,dataURLOptions:m={},inlineImages:f=!1,recordCanvas:g=!1,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:w=5e3,onStylesheetLoad:k,stylesheetLoadTimeout:v=5e3,keepIframeSrcFn:S=()=>!1,newlyAddedElement:C=!1,cssCaptured:x=!1}=t;let{needsMask:I}=t,{preserveWhiteSpace:O=!0}=t;if(!I){I=Or(e,o,a,void 0===I)}const A=Ar(e,{doc:r,mirror:n,blockClass:s,blockSelector:i,needsMask:I,inlineStylesheet:c,maskInputOptions:h,maskTextFn:u,maskInputFn:d,dataURLOptions:m,inlineImages:f,recordCanvas:g,keepIframeSrcFn:S,newlyAddedElement:C,cssCaptured:x});if(!A)return console.warn(e,"not serialized"),null;let E;E=n.hasNode(e)?n.getId(e):function(e,t){if(t.comment&&e.type===Ft.Comment)return!0;if(e.type===Ft.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===sr(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Er(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Er(e.attributes.name)||"icon"===Er(e.attributes.rel)||"apple-touch-icon"===Er(e.attributes.rel)||"shortcut icon"===Er(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Er(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Er(e.attributes.property).match(/^(og|twitter|fb):/)||Er(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Er(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Er(e.attributes.name)||"googlebot"===Er(e.attributes.name)||"bingbot"===Er(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Er(e.attributes.name)||"generator"===Er(e.attributes.name)||"framework"===Er(e.attributes.name)||"publisher"===Er(e.attributes.name)||"progid"===Er(e.attributes.name)||Er(e.attributes.property).match(/^article:/)||Er(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Er(e.attributes.name)||"yandex-verification"===Er(e.attributes.name)||"csrf-token"===Er(e.attributes.name)||"p:domain_verify"===Er(e.attributes.name)||"verify-v1"===Er(e.attributes.name)||"verification"===Er(e.attributes.name)||"shopify-checkout-api-token"===Er(e.attributes.name)))return!0}}return!1}(A,p)||!O&&A.type===Ft.Text&&!A.textContent.replace(/^\s+|\s+$/gm,"").length?-2:mr();const R=Object.assign(A,{id:E});if(n.add(e,R),-2===E)return null;y&&y(e);let M=!l;if(R.type===Ft.Element){M=M&&!R.needBlock,delete R.needBlock;const t=Gt.shadowRoot(e);t&&Ht(t)&&(R.isShadowHost=!0)}if((R.type===Ft.Document||R.type===Ft.Element)&&M){p.headWhitespace&&R.type===Ft.Element&&"head"===R.tagName&&(O=!1);const t={doc:r,mirror:n,blockClass:s,blockSelector:i,needsMask:I,maskTextClass:o,maskTextSelector:a,skipChild:l,inlineStylesheet:c,maskInputOptions:h,maskTextFn:u,maskInputFn:d,slimDOMOptions:p,dataURLOptions:m,inlineImages:f,recordCanvas:g,preserveWhiteSpace:O,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:w,onStylesheetLoad:k,stylesheetLoadTimeout:v,keepIframeSrcFn:S,cssCaptured:!1};if(R.type===Ft.Element&&"textarea"===R.tagName&&void 0!==R.attributes.value);else{R.type===Ft.Element&&void 0!==R.attributes._cssText&&"string"==typeof R.attributes._cssText&&(t.cssCaptured=!0);for(const r of Array.from(Gt.childNodes(e))){const e=Rr(r,t);e&&R.childNodes.push(e)}}let C=null;if(Jt(e)&&(C=Gt.shadowRoot(e)))for(const e of Array.from(Gt.childNodes(C))){const r=Rr(e,t);r&&(Ht(C)&&(r.isShadow=!0),R.childNodes.push(r))}}const j=Gt.parentNode(e);return j&&$t(j)&&Ht(j)&&(R.isShadow=!0),R.type===Ft.Element&&"iframe"===R.tagName&&function(e,t,r){const n=e.contentWindow;if(!n)return;let s,i=!1;try{s=n.document.readyState}catch(a){return}if("complete"!==s){const n=setTimeout(()=>{i||(t(),i=!0)},r);return void e.addEventListener("load",()=>{clearTimeout(n),i=!0,t()})}const o="about:blank";if(n.location.href!==o||e.src===o||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{const t=e.contentDocument;if(t&&b){const r=Rr(t,{doc:t,mirror:n,blockClass:s,blockSelector:i,needsMask:I,maskTextClass:o,maskTextSelector:a,skipChild:!1,inlineStylesheet:c,maskInputOptions:h,maskTextFn:u,maskInputFn:d,slimDOMOptions:p,dataURLOptions:m,inlineImages:f,recordCanvas:g,preserveWhiteSpace:O,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:w,onStylesheetLoad:k,stylesheetLoadTimeout:v,keepIframeSrcFn:S});r&&b(e,r)}},w),R.type===Ft.Element&&"link"===R.tagName&&"string"==typeof R.attributes.rel&&("stylesheet"===R.attributes.rel||"preload"===R.attributes.rel&&"string"==typeof R.attributes.href&&"css"===sr(R.attributes.href))&&function(e,t,r){let n,s=!1;try{n=e.sheet}catch(o){return}if(n)return;const i=setTimeout(()=>{s||(t(),s=!0)},r);e.addEventListener("load",()=>{clearTimeout(i),s=!0,t()})}(e,()=>{if(k){const t=Rr(e,{doc:r,mirror:n,blockClass:s,blockSelector:i,needsMask:I,maskTextClass:o,maskTextSelector:a,skipChild:!1,inlineStylesheet:c,maskInputOptions:h,maskTextFn:u,maskInputFn:d,slimDOMOptions:p,dataURLOptions:m,inlineImages:f,recordCanvas:g,preserveWhiteSpace:O,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:w,onStylesheetLoad:k,stylesheetLoadTimeout:v,keepIframeSrcFn:S});t&&k(e,t)}},v),R}function Mr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function jr(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 n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var zr={exports:{}},Nr=String,_r=function(){return{isColorSupported:!1,reset:Nr,bold:Nr,dim:Nr,italic:Nr,underline:Nr,inverse:Nr,hidden:Nr,strikethrough:Nr,black:Nr,red:Nr,green:Nr,yellow:Nr,blue:Nr,magenta:Nr,cyan:Nr,white:Nr,gray:Nr,bgBlack:Nr,bgRed:Nr,bgGreen:Nr,bgYellow:Nr,bgBlue:Nr,bgMagenta:Nr,bgCyan:Nr,bgWhite:Nr}};zr.exports=_r(),zr.exports.createColors=_r;var Tr=zr.exports;const Pr=jr(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));let Lr=Tr,Fr=Pr,Dr=class e extends Error{constructor(t,r,n,s,i,o){super(t),this.name="CssSyntaxError",this.reason=t,i&&(this.file=i),s&&(this.source=s),o&&(this.plugin=o),void 0!==r&&void 0!==n&&("number"==typeof r?(this.line=r,this.column=n):(this.line=r.line,this.column=r.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}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(e){if(!this.source)return"";let t=this.source;null==e&&(e=Lr.isColorSupported),Fr&&e&&(t=Fr(t));let r,n,s=t.split(/\r?\n/),i=Math.max(this.line-3,0),o=Math.min(this.line+2,s.length),a=String(o).length;if(e){let{bold:e,gray:t,red:s}=Lr.createColors(!0);r=t=>e(s(t)),n=e=>t(e)}else r=n=e=>e;return s.slice(i,o).map((e,t)=>{let s=i+1+t,o=" "+(" "+s).slice(-a)+" | ";if(s===this.line){let t=n(o.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return r(">")+n(o)+e+"\n "+t+r("^")}return" "+n(o)+e}).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}};var Br=Dr;Dr.default=Dr;var Ur={};Ur.isClean=Symbol("isClean"),Ur.my=Symbol("my");const Vr={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};let Wr=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{let s=(e.raws.between||"")+(t?";":"");this.builder(r+n+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 n=e.parent,s=0;for(;n&&"root"!==n.type;)s+=1,n=n.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,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",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 n=0;n<e.nodes.length;n++){let s=e.nodes[n],i=this.raw(s,"before");i&&this.builder(i),this.stringify(s,t!==n||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"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)}document(e){this.body(e)}raw(e,t,r){let n;if(r||(r=t),t&&(n=e.raws[t],void 0!==n))return n;let s=e.parent;if("before"===r){if(!s||"root"===s.type&&s.first===e)return"";if(s&&"document"===s.type)return""}if(!s)return Vr[r];let i=e.root();if(i.rawCache||(i.rawCache={}),void 0!==i.rawCache[r])return i.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);{let s="raw"+((o=r)[0].toUpperCase()+o.slice(1));this[s]?n=this[s](i,e):i.walk(e=>{if(n=e.raws[t],void 0!==n)return!1})}var o;return void 0===n&&(n=Vr[r]),i.rawCache[r]=n,n}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,t.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,r.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,r.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&&(t=e.raws.between,void 0!==t))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,t.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&&(t=e.raws.after,void 0!==t))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(r=>{let n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){let e=r.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1}),t}rawValue(e,t){let r=e[t],n=e.raws[t];return n&&n.value===r?n.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 new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};var qr=Wr;Wr.default=Wr;let Yr=qr;function Zr(e,t){new Yr(t).stringify(e)}var Gr=Zr;Zr.default=Zr;let{isClean:Jr,my:$r}=Ur,Hr=Br,Xr=qr,Kr=Gr;function Qr(e,t){let r=new e.constructor;for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;if("proxyCache"===n)continue;let s=e[n],i=typeof s;"parent"===n&&"object"===i?t&&(r[n]=t):"source"===n?r[n]=s:Array.isArray(s)?r[n]=s.map(e=>Qr(e,r)):("object"===i&&null!==s&&(s=Qr(s)),r[n]=s)}return r}let en=class{constructor(e={}){this.raws={},this[Jr]=!1,this[$r]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let r of e[t])"function"==typeof r.clone?this.append(r.clone()):this.append(r)}else this[t]=e[t]}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=Qr(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:n}=this.rangeBy(t);return this.source.input.error(e,{column:n.column,line:n.line},{column:r.column,line:r.line},t)}return new Hr(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[Jr]){this[Jr]=!1;let e=this;for(;e=e.parent;)e[Jr]=!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 n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r}positionInside(e,t){let r=t||this.toString(),n=this.source.start.column,s=this.source.start.line;for(let i=0;i<e;i++)"\n"===r[i]?(n=1,s+=1):n+=1;return{column:n,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 n=this.toString(),s=n.indexOf(e.word);-1!==s&&(t=this.positionInside(s,n),r=this.positionInside(s+e.word.length,n))}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 Xr).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 n of e)n===this?r=!0:r?(this.parent.insertAfter(t,n),t=n):this.parent.insertBefore(t,n);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={},n=null==t;t=t||new Map;let s=0;for(let i in this){if(!Object.prototype.hasOwnProperty.call(this,i))continue;if("parent"===i||"proxyCache"===i)continue;let e=this[i];if(Array.isArray(e))r[i]=e.map(e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e);else if("object"==typeof e&&e.toJSON)r[i]=e.toJSON(null,t);else if("source"===i){let n=t.get(e.input);null==n&&(n=s,t.set(e.input,s),s++),r[i]={end:e.end,inputId:n,start:e.start}}else r[i]=e}return n&&(r.inputs=[...t.keys()].map(e=>e.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Kr){e.stringify&&(e=e.stringify);let t="";return e(this,e=>{t+=e}),t}warn(e,t,r){let n={node:this};for(let s in r)n[s]=r[s];return e.warn(t,n)}get proxyOf(){return this}};var tn=en;en.default=en;let rn=tn,nn=class extends rn{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]}};var sn=nn;nn.default=nn;var on={nanoid:(e=21)=>{let t="",r=e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t}};let{SourceMapConsumer:an,SourceMapGenerator:ln}=Pr,{existsSync:cn,readFileSync:hn}=Pr,{dirname:un,join:dn}=Pr;let pn=class{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,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=un(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new an(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))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var t;let r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)}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()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}loadFile(e){if(this.root=un(e),cn(e))return this.mapFile=e,hn(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof an)return ln.fromSourceMap(t).toString();if(t instanceof ln)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let r=t(e);if(r){let e=this.loadFile(r);if(!e)throw new Error("Unable to load previous source map: "+r.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;return e&&(t=dn(un(e),t)),this.loadFile(t)}}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var mn=pn;pn.default=pn;let{SourceMapConsumer:fn,SourceMapGenerator:gn}=Pr,{fileURLToPath:yn,pathToFileURL:bn}=Pr,{isAbsolute:wn,resolve:kn}=Pr,{nanoid:vn}=on,Sn=Pr,Cn=Br,xn=mn,In=Symbol("fromOffsetCache"),On=Boolean(fn&&gn),An=Boolean(kn&&wn),En=class{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new 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&&(!An||/^\w+:\/\//.test(t.from)||wn(t.from)?this.file=t.from:this.file=kn(t.from)),An&&On){let e=new xn(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 "+vn(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,n={}){let s,i,o;if(t&&"object"==typeof t){let e=t,n=r;if("number"==typeof e.offset){let n=this.fromOffset(e.offset);t=n.line,r=n.col}else t=e.line,r=e.column;if("number"==typeof n.offset){let e=this.fromOffset(n.offset);i=e.line,o=e.col}else i=n.line,o=n.column}else if(!r){let e=this.fromOffset(t);t=e.line,r=e.col}let a=this.origin(t,r,i,o);return s=a?new Cn(e,void 0===a.endLine?a.line:{column:a.column,line:a.line},void 0===a.endLine?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,n.plugin):new Cn(e,void 0===i?t:{column:r,line:t},void 0===i?r:{column:o,line:i},this.css,this.file,n.plugin),s.input={column:r,endColumn:o,endLine:i,line:t,source:this.css},this.file&&(bn&&(s.input.url=bn(this.file).toString()),s.input.file=this.file),s}fromOffset(e){let t,r;if(this[In])r=this[In];else{let e=this.css.split("\n");r=new Array(e.length);let t=0;for(let n=0,s=e.length;n<s;n++)r[n]=t,t+=e[n].length+1;this[In]=r}t=r[r.length-1];let n=0;if(e>=t)n=r.length-1;else{let t,s=r.length-2;for(;n<s;)if(t=n+(s-n>>1),e<r[t])s=t-1;else{if(!(e>=r[t+1])){n=t;break}n=t+1}}return{col:e-r[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:kn(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,n){if(!this.map)return!1;let s,i,o=this.map.consumer(),a=o.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(s=o.originalPositionFor({column:n,line:r})),i=wn(a.source)?bn(a.source):new URL(a.source,this.map.consumer().sourceRoot||bn(this.map.mapFile));let l={column:a.column,endColumn:s&&s.column,endLine:s&&s.line,line:a.line,url:i.toString()};if("file:"===i.protocol){if(!yn)throw new Error("file: protocol is not available in this PostCSS build");l.file=yn(i)}let c=o.sourceContentFor(a.source);return c&&(l.source=c),l}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}};var Rn=En;En.default=En,Sn&&Sn.registerInput&&Sn.registerInput(En);let{SourceMapConsumer:Mn,SourceMapGenerator:jn}=Pr,{dirname:zn,relative:Nn,resolve:_n,sep:Tn}=Pr,{pathToFileURL:Pn}=Pr,Ln=Rn,Fn=Boolean(Mn&&jn),Dn=Boolean(zn&&_n&&Nn&&Tn);var Bn=class{constructor(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,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 e of this.previous()){let t,r=this.toUrl(this.path(e.file)),n=e.root||zn(e.file);!1===this.mapOpts.sourcesContent?(t=new Mn(e.text),t.sourcesContent&&(t.sourcesContent=null)):t=e.consumer(),this.map.applySourceMap(t,r,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--)e=this.root.nodes[t],"comment"===e.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(),Dn&&Fn&&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=jn.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new jn({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new jn({file:this.outputFile(),ignoreInvalidMapping:!0});let e,t,r=1,n=1,s="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(o,a,l)=>{if(this.css+=o,a&&"end"!==l&&(i.generated.line=r,i.generated.column=n-1,a.source&&a.source.start?(i.source=this.sourcePath(a),i.original.line=a.source.start.line,i.original.column=a.source.start.column-1,this.map.addMapping(i)):(i.source=s,i.original.line=1,i.original.column=0,this.map.addMapping(i))),e=o.match(/\n/g),e?(r+=e.length,t=o.lastIndexOf("\n"),n=o.length-t):n+=o.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?(i.source=this.sourcePath(a),i.original.line=a.source.end.line,i.original.column=a.source.end.column-1,i.generated.line=r,i.generated.column=n-2,this.map.addMapping(i)):(i.source=s,i.original.line=1,i.original.column=0,i.generated.line=r,i.generated.column=n-1,this.map.addMapping(i)))}})}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)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?zn(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=zn(_n(r,this.mapOpts.annotation)));let n=Nn(r,e);return this.memoizedPaths.set(e,n),n}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 Ln(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 n=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(n,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 Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(Pn){let t=Pn(e).toString();return this.memoizedFileURLs.set(e,t),t}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===Tn&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};let Un=tn,Vn=class extends Un{constructor(e){super(e),this.type="comment"}};var Wn=Vn;Vn.default=Vn;let qn,Yn,Zn,Gn,{isClean:Jn,my:$n}=Ur,Hn=sn,Xn=Wn,Kn=tn;function Qn(e){return e.map(e=>(e.nodes&&(e.nodes=Qn(e.nodes)),delete e.source,e))}function es(e){if(e[Jn]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)es(t)}let ts=class e extends Kn{append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t,r,n=this.getIterator();for(;this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],r=e(this.proxyOf.nodes[t],t),!1!==r);)this.indexes[n]+=1;return delete this.indexes[n],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)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...r)=>e[t](...r.map(e=>"function"==typeof e?(t,r)=>e(t.toProxy(),r):e)):"every"===t||"some"===t?r=>e[t]((e,...t)=>r(e.toProxy(),...t)):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map(e=>e.toProxy()):"first"===t||"last"===t?e[t].toProxy():e[t]: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,n=this.index(e),s=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let i of s)this.proxyOf.nodes.splice(n+1,0,i);for(let i in this.indexes)r=this.indexes[i],n<r&&(this.indexes[i]=r+s.length);return this.markDirty(),this}insertBefore(e,t){let r,n=this.index(e),s=0===n&&"prepend",i=this.normalize(t,this.proxyOf.nodes[n],s).reverse();n=this.index(e);for(let o of i)this.proxyOf.nodes.splice(n,0,o);for(let o in this.indexes)r=this.indexes[o],n<=r&&(this.indexes[o]=r+i.length);return this.markDirty(),this}normalize(t,r){if("string"==typeof t)t=Qn(qn(t).nodes);else if(void 0===t)t=[];else if(Array.isArray(t)){t=t.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if("root"===t.type&&"document"!==this.type){t=t.nodes.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if(t.type)t=[t];else if(t.prop){if(void 0===t.value)throw new Error("Value field is missed in node creation");"string"!=typeof t.value&&(t.value=String(t.value)),t=[new Hn(t)]}else if(t.selector)t=[new Yn(t)];else if(t.name)t=[new Zn(t)];else{if(!t.text)throw new Error("Unknown node type in node creation");t=[new Xn(t)]}return t.map(t=>(t[$n]||e.rebuild(t),(t=t.proxyOf).parent&&t.parent.removeChild(t),t[Jn]&&es(t),void 0===t.raws.before&&r&&void 0!==r.raws.before&&(t.raws.before=r.raws.before.replace(/\S/g,"")),t.parent=this.proxyOf,t))}prepend(...e){e=e.reverse();for(let t of e){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;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(n=>{t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let n;try{n=e(t,r)}catch(s){throw t.addToError(s)}return!1!==n&&t.walk&&(n=t.walk(e)),n})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk((r,n)=>{if("atrule"===r.type&&r.name===e)return t(r,n)}):(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,n)=>{if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk((r,n)=>{if("decl"===r.type&&r.prop===e)return t(r,n)}):(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,n)=>{if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk((r,n)=>{if("rule"===r.type&&r.selector===e)return t(r,n)}):(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]}};ts.registerParse=e=>{qn=e},ts.registerRule=e=>{Yn=e},ts.registerAtRule=e=>{Zn=e},ts.registerRoot=e=>{Gn=e};var rs=ts;ts.default=ts,ts.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,Zn.prototype):"rule"===e.type?Object.setPrototypeOf(e,Yn.prototype):"decl"===e.type?Object.setPrototypeOf(e,Hn.prototype):"comment"===e.type?Object.setPrototypeOf(e,Xn.prototype):"root"===e.type&&Object.setPrototypeOf(e,Gn.prototype),e[$n]=!0,e.nodes&&e.nodes.forEach(e=>{ts.rebuild(e)})};let ns,ss,is=rs,os=class extends is{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new ns(new ss,this,e).stringify()}};os.registerLazyResult=e=>{ns=e},os.registerProcessor=e=>{ss=e};var as=os;os.default=os;let ls={};var cs=function(e){ls[e]||(ls[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))};let hs=class{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 r in t)this[r]=t[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var us=hs;hs.default=hs;let ds=us,ps=class{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(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new ds(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>"warning"===e.type)}get content(){return this.css}};var ms=ps;ps.default=ps;const fs="'".charCodeAt(0),gs='"'.charCodeAt(0),ys="\\".charCodeAt(0),bs="/".charCodeAt(0),ws="\n".charCodeAt(0),ks=" ".charCodeAt(0),vs="\f".charCodeAt(0),Ss="\t".charCodeAt(0),Cs="\r".charCodeAt(0),xs="[".charCodeAt(0),Is="]".charCodeAt(0),Os="(".charCodeAt(0),As=")".charCodeAt(0),Es="{".charCodeAt(0),Rs="}".charCodeAt(0),Ms=";".charCodeAt(0),js="*".charCodeAt(0),zs=":".charCodeAt(0),Ns="@".charCodeAt(0),_s=/[\t\n\f\r "#'()/;[\\\]{}]/g,Ts=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Ps=/.[\r\n"'(/\\]/,Ls=/[\da-f]/i;let Fs=rs,Ds=class extends Fs{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var Bs=Ds;Ds.default=Ds,Fs.registerAtRule(Ds);let Us,Vs,Ws=rs,qs=class extends Ws{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let n=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 s of n)s.raws.before=t.raws.before;return n}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(e={}){return new Us(new Vs,this,e).stringify()}};qs.registerLazyResult=e=>{Us=e},qs.registerProcessor=e=>{Vs=e};var Ys=qs;qs.default=qs,Ws.registerRoot(qs);let Zs={comma:e=>Zs.split(e,[","],!0),space:e=>Zs.split(e,[" ","\n","\t"]),split(e,t,r){let n=[],s="",i=!1,o=0,a=!1,l="",c=!1;for(let h of e)c?c=!1:"\\"===h?c=!0:a?h===l&&(a=!1):'"'===h||"'"===h?(a=!0,l=h):"("===h?o+=1:")"===h?o>0&&(o-=1):0===o&&t.includes(h)&&(i=!0),i?(""!==s&&n.push(s.trim()),s="",i=!1):s+=h;return(r||""!==s)&&n.push(s.trim()),n}};var Gs=Zs;Zs.default=Zs;let Js=rs,$s=Gs,Hs=class extends Js{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return $s.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)}};var Xs=Hs;Hs.default=Hs,Js.registerRule(Hs);let Ks=sn,Qs=function(e,t={}){let r,n,s,i,o,a,l,c,h,u,d=e.css.valueOf(),p=t.ignoreErrors,m=d.length,f=0,g=[],y=[];function b(t){throw e.error("Unclosed "+t,f)}return{back:function(e){y.push(e)},endOfFile:function(){return 0===y.length&&f>=m},nextToken:function(e){if(y.length)return y.pop();if(f>=m)return;let t=!!e&&e.ignoreUnclosed;switch(r=d.charCodeAt(f),r){case ws:case ks:case Ss:case Cs:case vs:n=f;do{n+=1,r=d.charCodeAt(n)}while(r===ks||r===ws||r===Ss||r===Cs||r===vs);u=["space",d.slice(f,n)],f=n-1;break;case xs:case Is:case Es:case Rs:case zs:case Ms:case As:{let e=String.fromCharCode(r);u=[e,e,f];break}case Os:if(c=g.length?g.pop()[1]:"",h=d.charCodeAt(f+1),"url"===c&&h!==fs&&h!==gs&&h!==ks&&h!==ws&&h!==Ss&&h!==vs&&h!==Cs){n=f;do{if(a=!1,n=d.indexOf(")",n+1),-1===n){if(p||t){n=f;break}b("bracket")}for(l=n;d.charCodeAt(l-1)===ys;)l-=1,a=!a}while(a);u=["brackets",d.slice(f,n+1),f,n],f=n}else n=d.indexOf(")",f+1),i=d.slice(f,n+1),-1===n||Ps.test(i)?u=["(","(",f]:(u=["brackets",i,f,n],f=n);break;case fs:case gs:s=r===fs?"'":'"',n=f;do{if(a=!1,n=d.indexOf(s,n+1),-1===n){if(p||t){n=f+1;break}b("string")}for(l=n;d.charCodeAt(l-1)===ys;)l-=1,a=!a}while(a);u=["string",d.slice(f,n+1),f,n],f=n;break;case Ns:_s.lastIndex=f+1,_s.test(d),n=0===_s.lastIndex?d.length-1:_s.lastIndex-2,u=["at-word",d.slice(f,n+1),f,n],f=n;break;case ys:for(n=f,o=!0;d.charCodeAt(n+1)===ys;)n+=1,o=!o;if(r=d.charCodeAt(n+1),o&&r!==bs&&r!==ks&&r!==ws&&r!==Ss&&r!==Cs&&r!==vs&&(n+=1,Ls.test(d.charAt(n)))){for(;Ls.test(d.charAt(n+1));)n+=1;d.charCodeAt(n+1)===ks&&(n+=1)}u=["word",d.slice(f,n+1),f,n],f=n;break;default:r===bs&&d.charCodeAt(f+1)===js?(n=d.indexOf("*/",f+2)+1,0===n&&(p||t?n=d.length:b("comment")),u=["comment",d.slice(f,n+1),f,n],f=n):(Ts.lastIndex=f+1,Ts.test(d),n=0===Ts.lastIndex?d.length-1:Ts.lastIndex-2,u=["word",d.slice(f,n+1),f,n],g.push(u),f=n)}return f++,u},position:function(){return f}}},ei=Wn,ti=Bs,ri=Ys,ni=Xs;const si={empty:!0,space:!0};let ii=rs,oi=class{constructor(e){this.input=e,this.root=new ri,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,n,s=new ti;s.name=e[1].slice(1),""===s.name&&this.unnamedAtrule(s,e),this.init(s,e[2]);let i=!1,o=!1,a=[],l=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?l.push("("===t?")":"]"):"{"===t&&l.length>0?l.push("}"):t===l[l.length-1]&&l.pop(),0===l.length){if(";"===t){s.source.end=this.getPosition(e[2]),s.source.end.offset++,this.semicolon=!0;break}if("{"===t){o=!0;break}if("}"===t){if(a.length>0){for(n=a.length-1,r=a[n];r&&"space"===r[0];)r=a[--n];r&&(s.source.end=this.getPosition(r[3]||r[2]),s.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){i=!0;break}}s.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(s.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(s,"params",a),i&&(e=a[a.length-1],s.source.end=this.getPosition(e[3]||e[2]),s.source.end.offset++,this.spaces=s.raws.between,s.raws.between="")):(s.raws.afterName="",s.params=""),o&&(s.nodes=[],this.current=s)}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let r,n=0;for(let s=t-1;s>=0&&(r=e[s],"space"===r[0]||(n+=1,2!==n));s--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}colon(e){let t,r,n,s=0;for(let[i,o]of e.entries()){if(t=o,r=t[0],"("===r&&(s+=1),")"===r&&(s-=1),0===s&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return i}this.doubleColon(t)}n=t}return!1}comment(e){let t=new ei;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=Qs(this.input)}decl(e,t){let r=new Ks;this.init(r,e[0][2]);let n,s=e[e.length-1];for(";"===s[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(s[3]||s[2]||function(e){for(let t=e.length-1;t>=0;t--){let r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(n=e.shift(),":"===n[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let i,o=[];for(;e.length&&(i=e[0][0],"space"===i||"comment"===i);)o.push(e.shift());this.precheckMissedSemicolon(e);for(let a=e.length-1;a>=0;a--){if(n=e[a],"!important"===n[1].toLowerCase()){r.important=!0;let t=this.stringFrom(e,a);t=this.spacesFromEnd(e)+t," !important"!==t&&(r.raws.important=t);break}if("important"===n[1].toLowerCase()){let t=e.slice(0),n="";for(let e=a;e>0;e--){let r=t[e][0];if(0===n.trim().indexOf("!")&&"space"!==r)break;n=t.pop()[1]+n}0===n.trim().indexOf("!")&&(r.important=!0,r.raws.important=n,e=t)}if("space"!==n[0]&&"comment"!==n[0])break}e.some(e=>"space"!==e[0]&&"comment"!==e[0])&&(r.raws.between+=o.map(e=>e[1]).join(""),o=[]),this.raw(r,"value",o.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new ni;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,n=!1,s=null,i=[],o=e[1].startsWith("--"),a=[],l=e;for(;l;){if(r=l[0],a.push(l),"("===r||"["===r)s||(s=l),i.push("("===r?")":"]");else if(o&&n&&"{"===r)s||(s=l),i.push("}");else if(0===i.length){if(";"===r){if(n)return void this.decl(a,o);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===i[i.length-1]&&(i.pop(),0===i.length&&(s=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),i.length>0&&this.unclosedBracket(s),t&&n){if(!o)for(;a.length&&(l=a[a.length-1][0],"space"===l||"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(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,n){let s,i,o,a,l=r.length,c="",h=!0;for(let u=0;u<l;u+=1)s=r[u],i=s[0],"space"!==i||u!==l-1||n?"comment"===i?(a=r[u-1]?r[u-1][0]:"empty",o=r[u+1]?r[u+1][0]:"empty",si[a]||si[o]||","===c.slice(-1)?h=!1:c+=s[1]):c+=s[1]:h=!1;if(!h){let n=r.reduce((e,t)=>e+t[1],"");e.raws[t]={raw:n,value:c}}e[t]=c}rule(e){e.pop();let t=new ni;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let n=t;n<e.length;n++)r+=e[n][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})}},ai=Rn;function li(e,t){let r=new ai(e,t),n=new oi(r);try{n.parse()}catch(s){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===s.name&&t&&t.from&&(/\.scss$/i.test(t.from)?s.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(t.from)?s.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(t.from)&&(s.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),s}return n.root}var ci=li;li.default=li,ii.registerParse(li);let{isClean:hi,my:ui}=Ur,di=Bn,pi=Gr,mi=rs,fi=as,gi=cs,yi=ms,bi=ci,wi=Ys;const ki={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},vi={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},Si={Once:!0,postcssPlugin:!0,prepare:!0};function Ci(e){return"object"==typeof e&&"function"==typeof e.then}function xi(e){let t=!1,r=ki[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 Ii(e){let t;return t="document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:xi(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function Oi(e){return e[hi]=!1,e.nodes&&e.nodes.forEach(e=>Oi(e)),e}let Ai={},Ei=class e{constructor(t,r,n){let s;if(this.stringified=!1,this.processed=!1,"object"!=typeof r||null===r||"root"!==r.type&&"document"!==r.type)if(r instanceof e||r instanceof yi)s=Oi(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{let e=bi;n.syntax&&(e=n.syntax.parse),n.parser&&(e=n.parser),e.parse&&(e=e.parse);try{s=e(r,n)}catch(i){this.processed=!0,this.error=i}s&&!s[ui]&&mi.rebuild(s)}else s=Oi(r);this.result=new yi(t,s,n),this.helpers={...Ai,postcss:Ai,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 new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion&&"production"!==process.env.NODE_ENV){let e=r.postcssPlugin,t=r.postcssVersion,n=this.result.processor.version,s=t.split("."),i=n.split(".");(s[0]!==i[0]||parseInt(s[1])>parseInt(i[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+n+", but "+e+" uses "+t+". Perhaps this is the source of the error below.")}}else e.plugin=r.postcssPlugin,e.setMessage()}catch(Hk){console&&console.error&&console.error(Hk)}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(!vi[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Si[r])if("object"==typeof t[r])for(let n in t[r])e(t,"*"===n?r:r+"-"+n.toLowerCase(),t[r][n]);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 r=0;r<this.plugins.length;r++){let t=this.plugins[r],n=this.runOnRoot(t);if(Ci(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[hi];){e[hi]=!0;let r=[Ii(e)];for(;r.length>0;){let e=this.visitTick(r);if(Ci(e))try{await e}catch(t){let e=r[r.length-1].node;throw this.handleError(t,e)}}}if(this.listeners.OnceExit)for(let[r,n]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if("document"===e.type){let t=e.nodes.map(e=>n(e,this.helpers));await Promise.all(t)}else await n(e,this.helpers)}catch(t){throw this.handleError(t)}}}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));return Ci(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=pi;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new di(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[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(Ci(this.runOnRoot(e)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[hi];)e[hi]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return"production"!==process.env.NODE_ENV&&("from"in this.opts||gi("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,s]of e){let e;this.result.lastPlugin=n;try{e=s(t,this.helpers)}catch(r){throw this.handleError(r,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(Ci(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:n}=t;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(n.length>0&&t.visitorIndex<n.length){let[e,s]=n[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return s(r.toProxy(),this.helpers)}catch(i){throw this.handleError(i,r)}}if(0!==t.iterator){let n,s=t.iterator;for(;n=r.nodes[r.indexes[s]];)if(r.indexes[s]+=1,!n[hi])return n[hi]=!0,void e.push(Ii(n));t.iterator=0,delete r.indexes[s]}let s=t.events;for(;t.eventIndex<s.length;){let e=s[t.eventIndex];if(t.eventIndex+=1,0===e)return void(r.nodes&&r.nodes.length&&(r[hi]=!0,t.iterator=r.getIterator()));if(this.listeners[e])return void(t.visitors=this.listeners[e])}e.pop()}walkSync(e){e[hi]=!0;let t=xi(e);for(let r of t)if(0===r)e.nodes&&e.each(e=>{e[hi]||this.walkSync(e)});else{let t=this.listeners[r];if(t&&this.visitSync(t,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};Ei.registerPostcss=e=>{Ai=e};var Ri=Ei;Ei.default=Ei,wi.registerLazyResult(Ei),fi.registerLazyResult(Ei);let Mi=Bn,ji=Gr,zi=cs,Ni=ci;const _i=ms;let Ti=class{constructor(e,t,r){let n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let s=ji;this.result=new _i(this._processor,n,this._opts),this.result.css=t;let i=this;Object.defineProperty(this.result,"root",{get:()=>i.root});let o=new Mi(s,n,this._opts,t);if(o.isMap()){let[e,t]=o.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else o.clearAnnotation(),this.result.css=o.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"production"!==process.env.NODE_ENV&&("from"in this._opts||zi("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=Ni;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var Pi=Ti;Ti.default=Ti;let Li=Pi,Fi=Ri,Di=as,Bi=Ys,Ui=class{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)throw new Error(r+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new Fi(this,e,t):new Li(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var Vi=Ui;Ui.default=Ui,Bi.registerProcessor(Ui),Di.registerProcessor(Ui);let Wi=sn,qi=mn,Yi=Wn,Zi=Bs,Gi=Rn,Ji=Ys,$i=Xs;function Hi(e,t){if(Array.isArray(e))return e.map(e=>Hi(e));let{inputs:r,...n}=e;if(r){t=[];for(let e of r){let r={...e,__proto__:Gi.prototype};r.map&&(r.map={...r.map,__proto__:qi.prototype}),t.push(r)}}if(n.nodes&&(n.nodes=e.nodes.map(e=>Hi(e,t))),n.source){let{inputId:e,...r}=n.source;n.source=r,null!=e&&(n.source.input=t[e])}if("root"===n.type)return new Ji(n);if("decl"===n.type)return new Wi(n);if("rule"===n.type)return new $i(n);if("comment"===n.type)return new Yi(n);if("atrule"===n.type)return new Zi(n);throw new Error("Unknown node type: "+e.type)}var Xi=Hi;Hi.default=Hi;let Ki=Br,Qi=sn,eo=Ri,to=rs,ro=Vi,no=Gr,so=Xi,io=as,oo=us,ao=Wn,lo=Bs,co=ms,ho=Rn,uo=ci,po=Gs,mo=Xs,fo=Ys,go=tn;function yo(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new ro(e)}yo.plugin=function(e,t){let r,n=!1;function s(...r){console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let s=t(...r);return s.postcssPlugin=e,s.postcssVersion=(new ro).version,s}return Object.defineProperty(s,"postcss",{get:()=>(r||(r=s()),r)}),s.process=function(e,t,r){return yo([s(r)]).process(e,t)},s},yo.stringify=no,yo.parse=uo,yo.fromJSON=so,yo.list=po,yo.comment=e=>new ao(e),yo.atRule=e=>new lo(e),yo.decl=e=>new Qi(e),yo.rule=e=>new mo(e),yo.root=e=>new fo(e),yo.document=e=>new io(e),yo.CssSyntaxError=Ki,yo.Declaration=Qi,yo.Container=to,yo.Processor=ro,yo.Document=io,yo.Comment=ao,yo.Warning=oo,yo.AtRule=lo,yo.Result=co,yo.Input=ho,yo.Rule=mo,yo.Root=fo,yo.Node=go,eo.registerPostcss(yo);var bo=yo;yo.default=yo;const wo=Mr(bo);wo.stringify,wo.fromJSON,wo.plugin,wo.parse,wo.list,wo.document,wo.comment,wo.atRule,wo.rule,wo.decl,wo.root,wo.CssSyntaxError,wo.Declaration,wo.Container,wo.Processor,wo.Document,wo.Comment,wo.Warning,wo.AtRule,wo.Result,wo.Input,wo.Rule,wo.Root,wo.Node;var ko=Object.defineProperty,vo=(e,t,r)=>((e,t,r)=>t in e?ko(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r);function So(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Co(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 n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var xo={exports:{}},Io=String,Oo=function(){return{isColorSupported:!1,reset:Io,bold:Io,dim:Io,italic:Io,underline:Io,inverse:Io,hidden:Io,strikethrough:Io,black:Io,red:Io,green:Io,yellow:Io,blue:Io,magenta:Io,cyan:Io,white:Io,gray:Io,bgBlack:Io,bgRed:Io,bgGreen:Io,bgYellow:Io,bgBlue:Io,bgMagenta:Io,bgCyan:Io,bgWhite:Io}};xo.exports=Oo(),xo.exports.createColors=Oo;var Ao=xo.exports;const Eo=Co(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));let Ro=Ao,Mo=Eo,jo=class e extends Error{constructor(t,r,n,s,i,o){super(t),this.name="CssSyntaxError",this.reason=t,i&&(this.file=i),s&&(this.source=s),o&&(this.plugin=o),void 0!==r&&void 0!==n&&("number"==typeof r?(this.line=r,this.column=n):(this.line=r.line,this.column=r.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}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(e){if(!this.source)return"";let t=this.source;null==e&&(e=Ro.isColorSupported),Mo&&e&&(t=Mo(t));let r,n,s=t.split(/\r?\n/),i=Math.max(this.line-3,0),o=Math.min(this.line+2,s.length),a=String(o).length;if(e){let{bold:e,gray:t,red:s}=Ro.createColors(!0);r=t=>e(s(t)),n=e=>t(e)}else r=n=e=>e;return s.slice(i,o).map((e,t)=>{let s=i+1+t,o=" "+(" "+s).slice(-a)+" | ";if(s===this.line){let t=n(o.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return r(">")+n(o)+e+"\n "+t+r("^")}return" "+n(o)+e}).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}};var zo=jo;jo.default=jo;var No={};No.isClean=Symbol("isClean"),No.my=Symbol("my");const _o={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};let To=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{let s=(e.raws.between||"")+(t?";":"");this.builder(r+n+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 n=e.parent,s=0;for(;n&&"root"!==n.type;)s+=1,n=n.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,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",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 n=0;n<e.nodes.length;n++){let s=e.nodes[n],i=this.raw(s,"before");i&&this.builder(i),this.stringify(s,t!==n||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"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)}document(e){this.body(e)}raw(e,t,r){let n;if(r||(r=t),t&&(n=e.raws[t],void 0!==n))return n;let s=e.parent;if("before"===r){if(!s||"root"===s.type&&s.first===e)return"";if(s&&"document"===s.type)return""}if(!s)return _o[r];let i=e.root();if(i.rawCache||(i.rawCache={}),void 0!==i.rawCache[r])return i.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);{let s="raw"+((o=r)[0].toUpperCase()+o.slice(1));this[s]?n=this[s](i,e):i.walk(e=>{if(n=e.raws[t],void 0!==n)return!1})}var o;return void 0===n&&(n=_o[r]),i.rawCache[r]=n,n}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,t.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,r.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,r.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&&(t=e.raws.between,void 0!==t))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,t.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&&(t=e.raws.after,void 0!==t))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(r=>{let n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){let e=r.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1}),t}rawValue(e,t){let r=e[t],n=e.raws[t];return n&&n.value===r?n.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 new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};var Po=To;To.default=To;let Lo=Po;function Fo(e,t){new Lo(t).stringify(e)}var Do=Fo;Fo.default=Fo;let{isClean:Bo,my:Uo}=No,Vo=zo,Wo=Po,qo=Do;function Yo(e,t){let r=new e.constructor;for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;if("proxyCache"===n)continue;let s=e[n],i=typeof s;"parent"===n&&"object"===i?t&&(r[n]=t):"source"===n?r[n]=s:Array.isArray(s)?r[n]=s.map(e=>Yo(e,r)):("object"===i&&null!==s&&(s=Yo(s)),r[n]=s)}return r}let Zo=class{constructor(e={}){this.raws={},this[Bo]=!1,this[Uo]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let r of e[t])"function"==typeof r.clone?this.append(r.clone()):this.append(r)}else this[t]=e[t]}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=Yo(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:n}=this.rangeBy(t);return this.source.input.error(e,{column:n.column,line:n.line},{column:r.column,line:r.line},t)}return new Vo(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[Bo]){this[Bo]=!1;let e=this;for(;e=e.parent;)e[Bo]=!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 n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r}positionInside(e,t){let r=t||this.toString(),n=this.source.start.column,s=this.source.start.line;for(let i=0;i<e;i++)"\n"===r[i]?(n=1,s+=1):n+=1;return{column:n,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 n=this.toString(),s=n.indexOf(e.word);-1!==s&&(t=this.positionInside(s,n),r=this.positionInside(s+e.word.length,n))}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 Wo).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 n of e)n===this?r=!0:r?(this.parent.insertAfter(t,n),t=n):this.parent.insertBefore(t,n);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={},n=null==t;t=t||new Map;let s=0;for(let i in this){if(!Object.prototype.hasOwnProperty.call(this,i))continue;if("parent"===i||"proxyCache"===i)continue;let e=this[i];if(Array.isArray(e))r[i]=e.map(e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e);else if("object"==typeof e&&e.toJSON)r[i]=e.toJSON(null,t);else if("source"===i){let n=t.get(e.input);null==n&&(n=s,t.set(e.input,s),s++),r[i]={end:e.end,inputId:n,start:e.start}}else r[i]=e}return n&&(r.inputs=[...t.keys()].map(e=>e.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=qo){e.stringify&&(e=e.stringify);let t="";return e(this,e=>{t+=e}),t}warn(e,t,r){let n={node:this};for(let s in r)n[s]=r[s];return e.warn(t,n)}get proxyOf(){return this}};var Go=Zo;Zo.default=Zo;let Jo=Go,$o=class extends Jo{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]}};var Ho=$o;$o.default=$o;var Xo={nanoid:(e=21)=>{let t="",r=e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t}};let{SourceMapConsumer:Ko,SourceMapGenerator:Qo}=Eo,{existsSync:ea,readFileSync:ta}=Eo,{dirname:ra,join:na}=Eo;let sa=class{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,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=ra(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new Ko(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))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var t;let r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)}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()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}loadFile(e){if(this.root=ra(e),ea(e))return this.mapFile=e,ta(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof Ko)return Qo.fromSourceMap(t).toString();if(t instanceof Qo)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let r=t(e);if(r){let e=this.loadFile(r);if(!e)throw new Error("Unable to load previous source map: "+r.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;return e&&(t=na(ra(e),t)),this.loadFile(t)}}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var ia=sa;sa.default=sa;let{SourceMapConsumer:oa,SourceMapGenerator:aa}=Eo,{fileURLToPath:la,pathToFileURL:ca}=Eo,{isAbsolute:ha,resolve:ua}=Eo,{nanoid:da}=Xo,pa=Eo,ma=zo,fa=ia,ga=Symbol("fromOffsetCache"),ya=Boolean(oa&&aa),ba=Boolean(ua&&ha),wa=class{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new 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&&(!ba||/^\w+:\/\//.test(t.from)||ha(t.from)?this.file=t.from:this.file=ua(t.from)),ba&&ya){let e=new fa(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 "+da(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,n={}){let s,i,o;if(t&&"object"==typeof t){let e=t,n=r;if("number"==typeof e.offset){let n=this.fromOffset(e.offset);t=n.line,r=n.col}else t=e.line,r=e.column;if("number"==typeof n.offset){let e=this.fromOffset(n.offset);i=e.line,o=e.col}else i=n.line,o=n.column}else if(!r){let e=this.fromOffset(t);t=e.line,r=e.col}let a=this.origin(t,r,i,o);return s=a?new ma(e,void 0===a.endLine?a.line:{column:a.column,line:a.line},void 0===a.endLine?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,n.plugin):new ma(e,void 0===i?t:{column:r,line:t},void 0===i?r:{column:o,line:i},this.css,this.file,n.plugin),s.input={column:r,endColumn:o,endLine:i,line:t,source:this.css},this.file&&(ca&&(s.input.url=ca(this.file).toString()),s.input.file=this.file),s}fromOffset(e){let t,r;if(this[ga])r=this[ga];else{let e=this.css.split("\n");r=new Array(e.length);let t=0;for(let n=0,s=e.length;n<s;n++)r[n]=t,t+=e[n].length+1;this[ga]=r}t=r[r.length-1];let n=0;if(e>=t)n=r.length-1;else{let t,s=r.length-2;for(;n<s;)if(t=n+(s-n>>1),e<r[t])s=t-1;else{if(!(e>=r[t+1])){n=t;break}n=t+1}}return{col:e-r[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:ua(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,n){if(!this.map)return!1;let s,i,o=this.map.consumer(),a=o.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(s=o.originalPositionFor({column:n,line:r})),i=ha(a.source)?ca(a.source):new URL(a.source,this.map.consumer().sourceRoot||ca(this.map.mapFile));let l={column:a.column,endColumn:s&&s.column,endLine:s&&s.line,line:a.line,url:i.toString()};if("file:"===i.protocol){if(!la)throw new Error("file: protocol is not available in this PostCSS build");l.file=la(i)}let c=o.sourceContentFor(a.source);return c&&(l.source=c),l}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}};var ka=wa;wa.default=wa,pa&&pa.registerInput&&pa.registerInput(wa);let{SourceMapConsumer:va,SourceMapGenerator:Sa}=Eo,{dirname:Ca,relative:xa,resolve:Ia,sep:Oa}=Eo,{pathToFileURL:Aa}=Eo,Ea=ka,Ra=Boolean(va&&Sa),Ma=Boolean(Ca&&Ia&&xa&&Oa);var ja=class{constructor(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,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 e of this.previous()){let t,r=this.toUrl(this.path(e.file)),n=e.root||Ca(e.file);!1===this.mapOpts.sourcesContent?(t=new va(e.text),t.sourcesContent&&(t.sourcesContent=null)):t=e.consumer(),this.map.applySourceMap(t,r,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--)e=this.root.nodes[t],"comment"===e.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(),Ma&&Ra&&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=Sa.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Sa({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new Sa({file:this.outputFile(),ignoreInvalidMapping:!0});let e,t,r=1,n=1,s="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(o,a,l)=>{if(this.css+=o,a&&"end"!==l&&(i.generated.line=r,i.generated.column=n-1,a.source&&a.source.start?(i.source=this.sourcePath(a),i.original.line=a.source.start.line,i.original.column=a.source.start.column-1,this.map.addMapping(i)):(i.source=s,i.original.line=1,i.original.column=0,this.map.addMapping(i))),e=o.match(/\n/g),e?(r+=e.length,t=o.lastIndexOf("\n"),n=o.length-t):n+=o.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?(i.source=this.sourcePath(a),i.original.line=a.source.end.line,i.original.column=a.source.end.column-1,i.generated.line=r,i.generated.column=n-2,this.map.addMapping(i)):(i.source=s,i.original.line=1,i.original.column=0,i.generated.line=r,i.generated.column=n-1,this.map.addMapping(i)))}})}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)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?Ca(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=Ca(Ia(r,this.mapOpts.annotation)));let n=xa(r,e);return this.memoizedPaths.set(e,n),n}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 Ea(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 n=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(n,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 Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(Aa){let t=Aa(e).toString();return this.memoizedFileURLs.set(e,t),t}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===Oa&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};let za=Go,Na=class extends za{constructor(e){super(e),this.type="comment"}};var _a=Na;Na.default=Na;let Ta,Pa,La,Fa,{isClean:Da,my:Ba}=No,Ua=Ho,Va=_a,Wa=Go;function qa(e){return e.map(e=>(e.nodes&&(e.nodes=qa(e.nodes)),delete e.source,e))}function Ya(e){if(e[Da]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)Ya(t)}let Za=class e extends Wa{append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t,r,n=this.getIterator();for(;this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],r=e(this.proxyOf.nodes[t],t),!1!==r);)this.indexes[n]+=1;return delete this.indexes[n],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)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...r)=>e[t](...r.map(e=>"function"==typeof e?(t,r)=>e(t.toProxy(),r):e)):"every"===t||"some"===t?r=>e[t]((e,...t)=>r(e.toProxy(),...t)):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map(e=>e.toProxy()):"first"===t||"last"===t?e[t].toProxy():e[t]: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,n=this.index(e),s=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let i of s)this.proxyOf.nodes.splice(n+1,0,i);for(let i in this.indexes)r=this.indexes[i],n<r&&(this.indexes[i]=r+s.length);return this.markDirty(),this}insertBefore(e,t){let r,n=this.index(e),s=0===n&&"prepend",i=this.normalize(t,this.proxyOf.nodes[n],s).reverse();n=this.index(e);for(let o of i)this.proxyOf.nodes.splice(n,0,o);for(let o in this.indexes)r=this.indexes[o],n<=r&&(this.indexes[o]=r+i.length);return this.markDirty(),this}normalize(t,r){if("string"==typeof t)t=qa(Ta(t).nodes);else if(void 0===t)t=[];else if(Array.isArray(t)){t=t.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if("root"===t.type&&"document"!==this.type){t=t.nodes.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if(t.type)t=[t];else if(t.prop){if(void 0===t.value)throw new Error("Value field is missed in node creation");"string"!=typeof t.value&&(t.value=String(t.value)),t=[new Ua(t)]}else if(t.selector)t=[new Pa(t)];else if(t.name)t=[new La(t)];else{if(!t.text)throw new Error("Unknown node type in node creation");t=[new Va(t)]}return t.map(t=>(t[Ba]||e.rebuild(t),(t=t.proxyOf).parent&&t.parent.removeChild(t),t[Da]&&Ya(t),void 0===t.raws.before&&r&&void 0!==r.raws.before&&(t.raws.before=r.raws.before.replace(/\S/g,"")),t.parent=this.proxyOf,t))}prepend(...e){e=e.reverse();for(let t of e){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;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(n=>{t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let n;try{n=e(t,r)}catch(s){throw t.addToError(s)}return!1!==n&&t.walk&&(n=t.walk(e)),n})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk((r,n)=>{if("atrule"===r.type&&r.name===e)return t(r,n)}):(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,n)=>{if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk((r,n)=>{if("decl"===r.type&&r.prop===e)return t(r,n)}):(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,n)=>{if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk((r,n)=>{if("rule"===r.type&&r.selector===e)return t(r,n)}):(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]}};Za.registerParse=e=>{Ta=e},Za.registerRule=e=>{Pa=e},Za.registerAtRule=e=>{La=e},Za.registerRoot=e=>{Fa=e};var Ga=Za;Za.default=Za,Za.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,La.prototype):"rule"===e.type?Object.setPrototypeOf(e,Pa.prototype):"decl"===e.type?Object.setPrototypeOf(e,Ua.prototype):"comment"===e.type?Object.setPrototypeOf(e,Va.prototype):"root"===e.type&&Object.setPrototypeOf(e,Fa.prototype),e[Ba]=!0,e.nodes&&e.nodes.forEach(e=>{Za.rebuild(e)})};let Ja,$a,Ha=Ga,Xa=class extends Ha{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Ja(new $a,this,e).stringify()}};Xa.registerLazyResult=e=>{Ja=e},Xa.registerProcessor=e=>{$a=e};var Ka=Xa;Xa.default=Xa;let Qa={};var el=function(e){Qa[e]||(Qa[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))};let tl=class{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 r in t)this[r]=t[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var rl=tl;tl.default=tl;let nl=rl,sl=class{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(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new nl(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>"warning"===e.type)}get content(){return this.css}};var il=sl;sl.default=sl;const ol="'".charCodeAt(0),al='"'.charCodeAt(0),ll="\\".charCodeAt(0),cl="/".charCodeAt(0),hl="\n".charCodeAt(0),ul=" ".charCodeAt(0),dl="\f".charCodeAt(0),pl="\t".charCodeAt(0),ml="\r".charCodeAt(0),fl="[".charCodeAt(0),gl="]".charCodeAt(0),yl="(".charCodeAt(0),bl=")".charCodeAt(0),wl="{".charCodeAt(0),kl="}".charCodeAt(0),vl=";".charCodeAt(0),Sl="*".charCodeAt(0),Cl=":".charCodeAt(0),xl="@".charCodeAt(0),Il=/[\t\n\f\r "#'()/;[\\\]{}]/g,Ol=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Al=/.[\r\n"'(/\\]/,El=/[\da-f]/i;let Rl=Ga,Ml=class extends Rl{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var jl=Ml;Ml.default=Ml,Rl.registerAtRule(Ml);let zl,Nl,_l=Ga,Tl=class extends _l{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let n=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 s of n)s.raws.before=t.raws.before;return n}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(e={}){return new zl(new Nl,this,e).stringify()}};Tl.registerLazyResult=e=>{zl=e},Tl.registerProcessor=e=>{Nl=e};var Pl=Tl;Tl.default=Tl,_l.registerRoot(Tl);let Ll={comma:e=>Ll.split(e,[","],!0),space:e=>Ll.split(e,[" ","\n","\t"]),split(e,t,r){let n=[],s="",i=!1,o=0,a=!1,l="",c=!1;for(let h of e)c?c=!1:"\\"===h?c=!0:a?h===l&&(a=!1):'"'===h||"'"===h?(a=!0,l=h):"("===h?o+=1:")"===h?o>0&&(o-=1):0===o&&t.includes(h)&&(i=!0),i?(""!==s&&n.push(s.trim()),s="",i=!1):s+=h;return(r||""!==s)&&n.push(s.trim()),n}};var Fl=Ll;Ll.default=Ll;let Dl=Ga,Bl=Fl,Ul=class extends Dl{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Bl.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)}};var Vl=Ul;Ul.default=Ul,Dl.registerRule(Ul);let Wl=Ho,ql=function(e,t={}){let r,n,s,i,o,a,l,c,h,u,d=e.css.valueOf(),p=t.ignoreErrors,m=d.length,f=0,g=[],y=[];function b(t){throw e.error("Unclosed "+t,f)}return{back:function(e){y.push(e)},endOfFile:function(){return 0===y.length&&f>=m},nextToken:function(e){if(y.length)return y.pop();if(f>=m)return;let t=!!e&&e.ignoreUnclosed;switch(r=d.charCodeAt(f),r){case hl:case ul:case pl:case ml:case dl:n=f;do{n+=1,r=d.charCodeAt(n)}while(r===ul||r===hl||r===pl||r===ml||r===dl);u=["space",d.slice(f,n)],f=n-1;break;case fl:case gl:case wl:case kl:case Cl:case vl:case bl:{let e=String.fromCharCode(r);u=[e,e,f];break}case yl:if(c=g.length?g.pop()[1]:"",h=d.charCodeAt(f+1),"url"===c&&h!==ol&&h!==al&&h!==ul&&h!==hl&&h!==pl&&h!==dl&&h!==ml){n=f;do{if(a=!1,n=d.indexOf(")",n+1),-1===n){if(p||t){n=f;break}b("bracket")}for(l=n;d.charCodeAt(l-1)===ll;)l-=1,a=!a}while(a);u=["brackets",d.slice(f,n+1),f,n],f=n}else n=d.indexOf(")",f+1),i=d.slice(f,n+1),-1===n||Al.test(i)?u=["(","(",f]:(u=["brackets",i,f,n],f=n);break;case ol:case al:s=r===ol?"'":'"',n=f;do{if(a=!1,n=d.indexOf(s,n+1),-1===n){if(p||t){n=f+1;break}b("string")}for(l=n;d.charCodeAt(l-1)===ll;)l-=1,a=!a}while(a);u=["string",d.slice(f,n+1),f,n],f=n;break;case xl:Il.lastIndex=f+1,Il.test(d),n=0===Il.lastIndex?d.length-1:Il.lastIndex-2,u=["at-word",d.slice(f,n+1),f,n],f=n;break;case ll:for(n=f,o=!0;d.charCodeAt(n+1)===ll;)n+=1,o=!o;if(r=d.charCodeAt(n+1),o&&r!==cl&&r!==ul&&r!==hl&&r!==pl&&r!==ml&&r!==dl&&(n+=1,El.test(d.charAt(n)))){for(;El.test(d.charAt(n+1));)n+=1;d.charCodeAt(n+1)===ul&&(n+=1)}u=["word",d.slice(f,n+1),f,n],f=n;break;default:r===cl&&d.charCodeAt(f+1)===Sl?(n=d.indexOf("*/",f+2)+1,0===n&&(p||t?n=d.length:b("comment")),u=["comment",d.slice(f,n+1),f,n],f=n):(Ol.lastIndex=f+1,Ol.test(d),n=0===Ol.lastIndex?d.length-1:Ol.lastIndex-2,u=["word",d.slice(f,n+1),f,n],g.push(u),f=n)}return f++,u},position:function(){return f}}},Yl=_a,Zl=jl,Gl=Pl,Jl=Vl;const $l={empty:!0,space:!0};let Hl=Ga,Xl=class{constructor(e){this.input=e,this.root=new Gl,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,n,s=new Zl;s.name=e[1].slice(1),""===s.name&&this.unnamedAtrule(s,e),this.init(s,e[2]);let i=!1,o=!1,a=[],l=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?l.push("("===t?")":"]"):"{"===t&&l.length>0?l.push("}"):t===l[l.length-1]&&l.pop(),0===l.length){if(";"===t){s.source.end=this.getPosition(e[2]),s.source.end.offset++,this.semicolon=!0;break}if("{"===t){o=!0;break}if("}"===t){if(a.length>0){for(n=a.length-1,r=a[n];r&&"space"===r[0];)r=a[--n];r&&(s.source.end=this.getPosition(r[3]||r[2]),s.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){i=!0;break}}s.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(s.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(s,"params",a),i&&(e=a[a.length-1],s.source.end=this.getPosition(e[3]||e[2]),s.source.end.offset++,this.spaces=s.raws.between,s.raws.between="")):(s.raws.afterName="",s.params=""),o&&(s.nodes=[],this.current=s)}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let r,n=0;for(let s=t-1;s>=0&&(r=e[s],"space"===r[0]||(n+=1,2!==n));s--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}colon(e){let t,r,n,s=0;for(let[i,o]of e.entries()){if(t=o,r=t[0],"("===r&&(s+=1),")"===r&&(s-=1),0===s&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return i}this.doubleColon(t)}n=t}return!1}comment(e){let t=new Yl;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=ql(this.input)}decl(e,t){let r=new Wl;this.init(r,e[0][2]);let n,s=e[e.length-1];for(";"===s[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(s[3]||s[2]||function(e){for(let t=e.length-1;t>=0;t--){let r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(n=e.shift(),":"===n[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let i,o=[];for(;e.length&&(i=e[0][0],"space"===i||"comment"===i);)o.push(e.shift());this.precheckMissedSemicolon(e);for(let a=e.length-1;a>=0;a--){if(n=e[a],"!important"===n[1].toLowerCase()){r.important=!0;let t=this.stringFrom(e,a);t=this.spacesFromEnd(e)+t," !important"!==t&&(r.raws.important=t);break}if("important"===n[1].toLowerCase()){let t=e.slice(0),n="";for(let e=a;e>0;e--){let r=t[e][0];if(0===n.trim().indexOf("!")&&"space"!==r)break;n=t.pop()[1]+n}0===n.trim().indexOf("!")&&(r.important=!0,r.raws.important=n,e=t)}if("space"!==n[0]&&"comment"!==n[0])break}e.some(e=>"space"!==e[0]&&"comment"!==e[0])&&(r.raws.between+=o.map(e=>e[1]).join(""),o=[]),this.raw(r,"value",o.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new Jl;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,n=!1,s=null,i=[],o=e[1].startsWith("--"),a=[],l=e;for(;l;){if(r=l[0],a.push(l),"("===r||"["===r)s||(s=l),i.push("("===r?")":"]");else if(o&&n&&"{"===r)s||(s=l),i.push("}");else if(0===i.length){if(";"===r){if(n)return void this.decl(a,o);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===i[i.length-1]&&(i.pop(),0===i.length&&(s=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),i.length>0&&this.unclosedBracket(s),t&&n){if(!o)for(;a.length&&(l=a[a.length-1][0],"space"===l||"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(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,n){let s,i,o,a,l=r.length,c="",h=!0;for(let u=0;u<l;u+=1)s=r[u],i=s[0],"space"!==i||u!==l-1||n?"comment"===i?(a=r[u-1]?r[u-1][0]:"empty",o=r[u+1]?r[u+1][0]:"empty",$l[a]||$l[o]||","===c.slice(-1)?h=!1:c+=s[1]):c+=s[1]:h=!1;if(!h){let n=r.reduce((e,t)=>e+t[1],"");e.raws[t]={raw:n,value:c}}e[t]=c}rule(e){e.pop();let t=new Jl;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let n=t;n<e.length;n++)r+=e[n][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})}},Kl=ka;function Ql(e,t){let r=new Kl(e,t),n=new Xl(r);try{n.parse()}catch(s){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===s.name&&t&&t.from&&(/\.scss$/i.test(t.from)?s.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(t.from)?s.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(t.from)&&(s.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),s}return n.root}var ec=Ql;Ql.default=Ql,Hl.registerParse(Ql);let{isClean:tc,my:rc}=No,nc=ja,sc=Do,ic=Ga,oc=Ka,ac=el,lc=il,cc=ec,hc=Pl;const uc={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},dc={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},pc={Once:!0,postcssPlugin:!0,prepare:!0};function mc(e){return"object"==typeof e&&"function"==typeof e.then}function fc(e){let t=!1,r=uc[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 gc(e){let t;return t="document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:fc(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function yc(e){return e[tc]=!1,e.nodes&&e.nodes.forEach(e=>yc(e)),e}let bc={},wc=class e{constructor(t,r,n){let s;if(this.stringified=!1,this.processed=!1,"object"!=typeof r||null===r||"root"!==r.type&&"document"!==r.type)if(r instanceof e||r instanceof lc)s=yc(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{let e=cc;n.syntax&&(e=n.syntax.parse),n.parser&&(e=n.parser),e.parse&&(e=e.parse);try{s=e(r,n)}catch(i){this.processed=!0,this.error=i}s&&!s[rc]&&ic.rebuild(s)}else s=yc(r);this.result=new lc(t,s,n),this.helpers={...bc,postcss:bc,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 new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion&&"production"!==process.env.NODE_ENV){let e=r.postcssPlugin,t=r.postcssVersion,n=this.result.processor.version,s=t.split("."),i=n.split(".");(s[0]!==i[0]||parseInt(s[1])>parseInt(i[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+n+", but "+e+" uses "+t+". Perhaps this is the source of the error below.")}}else e.plugin=r.postcssPlugin,e.setMessage()}catch(Hk){console&&console.error&&console.error(Hk)}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(!dc[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!pc[r])if("object"==typeof t[r])for(let n in t[r])e(t,"*"===n?r:r+"-"+n.toLowerCase(),t[r][n]);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 r=0;r<this.plugins.length;r++){let t=this.plugins[r],n=this.runOnRoot(t);if(mc(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[tc];){e[tc]=!0;let r=[gc(e)];for(;r.length>0;){let e=this.visitTick(r);if(mc(e))try{await e}catch(t){let e=r[r.length-1].node;throw this.handleError(t,e)}}}if(this.listeners.OnceExit)for(let[r,n]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if("document"===e.type){let t=e.nodes.map(e=>n(e,this.helpers));await Promise.all(t)}else await n(e,this.helpers)}catch(t){throw this.handleError(t)}}}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));return mc(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=sc;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new nc(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[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(mc(this.runOnRoot(e)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[tc];)e[tc]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return"production"!==process.env.NODE_ENV&&("from"in this.opts||ac("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,s]of e){let e;this.result.lastPlugin=n;try{e=s(t,this.helpers)}catch(r){throw this.handleError(r,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(mc(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:n}=t;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(n.length>0&&t.visitorIndex<n.length){let[e,s]=n[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return s(r.toProxy(),this.helpers)}catch(i){throw this.handleError(i,r)}}if(0!==t.iterator){let n,s=t.iterator;for(;n=r.nodes[r.indexes[s]];)if(r.indexes[s]+=1,!n[tc])return n[tc]=!0,void e.push(gc(n));t.iterator=0,delete r.indexes[s]}let s=t.events;for(;t.eventIndex<s.length;){let e=s[t.eventIndex];if(t.eventIndex+=1,0===e)return void(r.nodes&&r.nodes.length&&(r[tc]=!0,t.iterator=r.getIterator()));if(this.listeners[e])return void(t.visitors=this.listeners[e])}e.pop()}walkSync(e){e[tc]=!0;let t=fc(e);for(let r of t)if(0===r)e.nodes&&e.each(e=>{e[tc]||this.walkSync(e)});else{let t=this.listeners[r];if(t&&this.visitSync(t,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};wc.registerPostcss=e=>{bc=e};var kc=wc;wc.default=wc,hc.registerLazyResult(wc),oc.registerLazyResult(wc);let vc=ja,Sc=Do,Cc=el,xc=ec;const Ic=il;let Oc=class{constructor(e,t,r){let n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let s=Sc;this.result=new Ic(this._processor,n,this._opts),this.result.css=t;let i=this;Object.defineProperty(this.result,"root",{get:()=>i.root});let o=new vc(s,n,this._opts,t);if(o.isMap()){let[e,t]=o.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else o.clearAnnotation(),this.result.css=o.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"production"!==process.env.NODE_ENV&&("from"in this._opts||Cc("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=xc;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var Ac=Oc;Oc.default=Oc;let Ec=Ac,Rc=kc,Mc=Ka,jc=Pl,zc=class{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)throw new Error(r+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new Rc(this,e,t):new Ec(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var Nc=zc;zc.default=zc,jc.registerProcessor(zc),Mc.registerProcessor(zc);let _c=Ho,Tc=ia,Pc=_a,Lc=jl,Fc=ka,Dc=Pl,Bc=Vl;function Uc(e,t){if(Array.isArray(e))return e.map(e=>Uc(e));let{inputs:r,...n}=e;if(r){t=[];for(let e of r){let r={...e,__proto__:Fc.prototype};r.map&&(r.map={...r.map,__proto__:Tc.prototype}),t.push(r)}}if(n.nodes&&(n.nodes=e.nodes.map(e=>Uc(e,t))),n.source){let{inputId:e,...r}=n.source;n.source=r,null!=e&&(n.source.input=t[e])}if("root"===n.type)return new Dc(n);if("decl"===n.type)return new _c(n);if("rule"===n.type)return new Bc(n);if("comment"===n.type)return new Pc(n);if("atrule"===n.type)return new Lc(n);throw new Error("Unknown node type: "+e.type)}var Vc=Uc;Uc.default=Uc;let Wc=zo,qc=Ho,Yc=kc,Zc=Ga,Gc=Nc,Jc=Do,$c=Vc,Hc=Ka,Xc=rl,Kc=_a,Qc=jl,eh=il,th=ka,rh=ec,nh=Fl,sh=Vl,ih=Pl,oh=Go;function ah(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new Gc(e)}ah.plugin=function(e,t){let r,n=!1;function s(...r){console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let s=t(...r);return s.postcssPlugin=e,s.postcssVersion=(new Gc).version,s}return Object.defineProperty(s,"postcss",{get:()=>(r||(r=s()),r)}),s.process=function(e,t,r){return ah([s(r)]).process(e,t)},s},ah.stringify=Jc,ah.parse=rh,ah.fromJSON=$c,ah.list=nh,ah.comment=e=>new Kc(e),ah.atRule=e=>new Qc(e),ah.decl=e=>new qc(e),ah.rule=e=>new sh(e),ah.root=e=>new ih(e),ah.document=e=>new Hc(e),ah.CssSyntaxError=Wc,ah.Declaration=qc,ah.Container=Zc,ah.Processor=Gc,ah.Document=Hc,ah.Comment=Kc,ah.Warning=Xc,ah.AtRule=Qc,ah.Result=eh,ah.Input=th,ah.Rule=sh,ah.Root=ih,ah.Node=oh,Yc.registerPostcss(ah);var lh=ah;ah.default=ah;const ch=So(lh);ch.stringify,ch.fromJSON,ch.plugin,ch.parse,ch.list,ch.document,ch.comment,ch.atRule,ch.rule,ch.decl,ch.root,ch.CssSyntaxError,ch.Declaration,ch.Container,ch.Processor,ch.Document,ch.Comment,ch.Warning,ch.AtRule,ch.Result,ch.Input,ch.Rule,ch.Root,ch.Node;let hh=class e{constructor(...e){vo(this,"parentElement",null),vo(this,"parentNode",null),vo(this,"ownerDocument"),vo(this,"firstChild",null),vo(this,"lastChild",null),vo(this,"previousSibling",null),vo(this,"nextSibling",null),vo(this,"ELEMENT_NODE",1),vo(this,"TEXT_NODE",3),vo(this,"nodeType"),vo(this,"nodeName"),vo(this,"RRNodeType")}get childNodes(){const e=[];let t=this.firstChild;for(;t;)e.push(t),t=t.nextSibling;return e}contains(t){if(!(t instanceof e))return!1;if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1}appendChild(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}};const uh={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},dh={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},ph={};function mh(e){if(ph[e])return ph[e];const t=globalThis[e],r=t.prototype,n=e in uh?uh[e]:void 0,s=Boolean(n&&n.every(e=>{var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),i=e in dh?dh[e]:void 0,o=Boolean(i&&i.every(e=>{var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(s&&o&&!globalThis.Zone)return ph[e]=t.prototype,t.prototype;try{const n=document.createElement("iframe");document.body.appendChild(n);const s=n.contentWindow;if(!s)return t.prototype;const i=s[e].prototype;return document.body.removeChild(n),i?ph[e]=i:r}catch{return r}}const fh={};function gh(e,t,r){var n;const s=`${e}.${String(r)}`;if(fh[s])return fh[s].call(t);const i=mh(e),o=null==(n=Object.getOwnPropertyDescriptor(i,r))?void 0:n.get;return o?(fh[s]=o,o.call(t)):t[r]}const yh={};function bh(e,t,r){const n=`${e}.${String(r)}`;if(yh[n])return yh[n].bind(t);const s=mh(e)[r];return"function"!=typeof s?t[r]:(yh[n]=s,s.bind(t))}function wh(){return mh("MutationObserver").constructor}const kh={childNodes:function(e){return gh("Node",e,"childNodes")},parentNode:function(e){return gh("Node",e,"parentNode")},parentElement:function(e){return gh("Node",e,"parentElement")},textContent:function(e){return gh("Node",e,"textContent")},contains:function(e,t){return bh("Node",e,"contains")(t)},getRootNode:function(e){return bh("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?gh("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?gh("Element",e,"shadowRoot"):null},querySelector:function(e,t){return gh("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return gh("Element",e,"querySelectorAll")(t)},mutationObserver:wh};function vh(e,t,r=document){const n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}const Sh="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.";let Ch={map:{},getId:()=>(console.error(Sh),-1),getNode:()=>(console.error(Sh),null),removeNodeFromMap(){console.error(Sh)},has:()=>(console.error(Sh),!1),reset(){console.error(Sh)}};function xh(e,t,r={}){let n=null,s=0;return function(...i){const o=Date.now();s||!1!==r.leading||(s=o);const a=t-(o-s),l=this;a<=0||a>t?(n&&(clearTimeout(n),n=null),s=o,e.apply(l,i)):n||!1===r.trailing||(n=setTimeout(()=>{s=!1===r.leading?0:Date.now(),n=null,e.apply(l,i)},a))}}function Ih(e,t,r,n,s=window){const i=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,n?r:{set(e){setTimeout(()=>{r.set.call(this,e)},0),i&&i.set&&i.set.call(this,e)}}),()=>Ih(e,t,i||{},!0)}function Oh(e,t,r){try{if(!(t in e))return()=>{};const n=e[t],s=r(n);return"function"==typeof s&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=s,()=>{e[t]=n}}catch{return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Ch=new Proxy(Ch,{get:(e,t,r)=>("map"===t&&console.error(Sh),Reflect.get(e,t,r))}));let Ah=Date.now;function Eh(e){var t,r,n,s;const i=e.document;return{left:i.scrollingElement?i.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:i.documentElement.scrollLeft||(null==i?void 0:i.body)&&(null==(t=kh.parentElement(i.body))?void 0:t.scrollLeft)||(null==(r=null==i?void 0:i.body)?void 0:r.scrollLeft)||0,top:i.scrollingElement?i.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==i?void 0:i.documentElement.scrollTop)||(null==i?void 0:i.body)&&(null==(n=kh.parentElement(i.body))?void 0:n.scrollTop)||(null==(s=null==i?void 0:i.body)?void 0:s.scrollTop)||0}}function Rh(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Mh(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function jh(e){if(!e)return null;return e.nodeType===e.ELEMENT_NODE?e:kh.parentElement(e)}function zh(e,t,r,n){if(!e)return!1;const s=jh(e);if(!s)return!1;try{if("string"==typeof t){if(s.classList.contains(t))return!0;if(n&&null!==s.closest("."+t))return!0}else if(Ir(s,t,n))return!0}catch(i){}if(r){if(s.matches(r))return!0;if(n&&null!==s.closest(r))return!0}return!1}function Nh(e,t,r){return!("TITLE"!==e.tagName||!r.headTitleMutations)||-2===t.getId(e)}function _h(e,t){if($t(e))return!1;const r=t.getId(e);if(!t.has(r))return!0;const n=kh.parentNode(e);return(!n||n.nodeType!==e.DOCUMENT_NODE)&&(!n||_h(n,t))}function Th(e){return Boolean(e.changedTouches)}function Ph(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function Lh(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function Fh(e){return!!e&&(e instanceof hh&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(kh.shadowRoot(e)))}/[1-9][0-9]{12}/.test(Date.now().toString())||(Ah=()=>(new Date).getTime());let Dh=class{constructor(){Tt(this,"id",1),Tt(this,"styleIDMap",new WeakMap),Tt(this,"idStyleMap",new Map)}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let r;return 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++}};function Bh(e){var t;let r=null;return"getRootNode"in e&&(null==(t=kh.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&kh.host(kh.getRootNode(e))&&(r=kh.host(kh.getRootNode(e))),r}function Uh(e){const t=e.ownerDocument;if(!t)return!1;const r=function(e){let t,r=e;for(;t=Bh(r);)r=t;return r}(e);return kh.contains(t,r)}function Vh(e){const t=e.ownerDocument;return!!t&&(kh.contains(t,e)||Uh(e))}var Wh=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(Wh||{}),qh=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(qh||{}),Yh=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(Yh||{}),Zh=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Zh||{}),Gh=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Gh||{}),Jh=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(Jh||{}),$h=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))($h||{});function Hh(e){return"__ln"in e}class Xh{constructor(){Tt(this,"length",0),Tt(this,"head",null),Tt(this,"tail",null)}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let r=0;r<e;r++)t=(null==t?void 0:t.next)||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Hh(e.previousSibling)){const r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&Hh(e.nextSibling)&&e.nextSibling.__ln.previous){const r=e.nextSibling.__ln.previous;t.previous=r,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,r&&(r.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const Kh=(e,t)=>`${e}@${t}`;class Qh{constructor(){Tt(this,"frozen",!1),Tt(this,"locked",!1),Tt(this,"texts",[]),Tt(this,"attributes",[]),Tt(this,"attributeMap",new WeakMap),Tt(this,"removes",[]),Tt(this,"mapRemoves",[]),Tt(this,"movedMap",{}),Tt(this,"addedSet",new Set),Tt(this,"movedSet",new Set),Tt(this,"droppedSet",new Set),Tt(this,"removesSubTreeCache",new Set),Tt(this,"mutationCb"),Tt(this,"blockClass"),Tt(this,"blockSelector"),Tt(this,"maskTextClass"),Tt(this,"maskTextSelector"),Tt(this,"inlineStylesheet"),Tt(this,"maskInputOptions"),Tt(this,"maskTextFn"),Tt(this,"maskInputFn"),Tt(this,"keepIframeSrcFn"),Tt(this,"recordCanvas"),Tt(this,"inlineImages"),Tt(this,"slimDOMOptions"),Tt(this,"dataURLOptions"),Tt(this,"doc"),Tt(this,"mirror"),Tt(this,"iframeManager"),Tt(this,"stylesheetManager"),Tt(this,"shadowDomManager"),Tt(this,"canvasManager"),Tt(this,"processedNodeManager"),Tt(this,"unattachedDoc"),Tt(this,"processMutations",e=>{e.forEach(this.processMutation),this.emit()}),Tt(this,"emit",()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,r=new Xh,n=e=>{let t=e,r=-2;for(;-2===r;)t=t&&t.nextSibling,r=t&&this.mirror.getId(t);return r},s=s=>{const i=kh.parentNode(s);if(!i||!Vh(s))return;let o=!1;if(s.nodeType===Node.TEXT_NODE){const e=i.tagName;if("TEXTAREA"===e)return;"STYLE"===e&&this.addedSet.has(i)&&(o=!0)}const a=$t(i)?this.mirror.getId(Bh(s)):this.mirror.getId(i),l=n(s);if(-1===a||-1===l)return r.addNode(s);const c=Rr(s,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{Ph(e,this.mirror)&&this.iframeManager.addIframe(e),Lh(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),Fh(s)&&this.shadowDomManager.addShadowRoot(kh.shadowRoot(s),this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},cssCaptured:o});c&&(e.push({parentId:a,nextId:l,node:c}),t.add(c.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const a of this.movedSet)tu(this.removesSubTreeCache,a,this.mirror)&&!this.movedSet.has(kh.parentNode(a))||s(a);for(const a of this.addedSet)ru(this.droppedSet,a)||tu(this.removesSubTreeCache,a,this.mirror)?ru(this.movedSet,a)?s(a):this.droppedSet.add(a):s(a);let i=null;for(;r.length;){let e=null;if(i){const t=this.mirror.getId(kh.parentNode(i.value)),r=n(i.value);-1!==t&&-1!==r&&(e=i)}if(!e){let t=r.tail;for(;t;){const r=t;if(t=t.previous,r){const t=this.mirror.getId(kh.parentNode(r.value));if(-1===n(r.value))continue;if(-1!==t){e=r;break}{const t=r.value,n=kh.parentNode(t);if(n&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const t=kh.host(n);if(-1!==this.mirror.getId(t)){e=r;break}}}}}}if(!e){for(;r.head;)r.removeNode(r.head.value);break}i=e.previous,r.removeNode(e.value),s(e.value)}const o={texts:this.texts.map(e=>{const t=e.node,r=kh.parentNode(t);return r&&"TEXTAREA"===r.tagName&&this.genTextAreaValueMutation(r),{id:this.mirror.getId(t),value:e.value}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{const{attributes:t}=e;if("string"==typeof t.style){const r=JSON.stringify(e.styleDiff),n=JSON.stringify(e._unchangedStyles);r.length<t.style.length&&(r+n).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(o.texts.length||o.attributes.length||o.removes.length||o.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(o))}),Tt(this,"genTextAreaValueMutation",e=>{let t=this.attributeMap.get(e);t||(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(t),this.attributeMap.set(e,t)),t.attributes.value=Array.from(kh.childNodes(e),e=>kh.textContent(e)||"").join("")}),Tt(this,"processMutation",e=>{if(!Nh(e.target,this.mirror,this.slimDOMOptions))switch(e.type){case"characterData":{const t=kh.textContent(e.target);zh(e.target,this.blockClass,this.blockSelector,!1)||t===e.oldValue||this.texts.push({value:Or(e.target,this.maskTextClass,this.maskTextSelector,!0)&&t?this.maskTextFn?this.maskTextFn(t,jh(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const r=e.target;let n=e.attributeName,s=e.target.getAttribute(n);if("value"===n){const e=nr(r);s=er({element:r,maskInputOptions:this.maskInputOptions,tagName:r.tagName,type:e,value:s,maskInputFn:this.maskInputFn})}if(zh(e.target,this.blockClass,this.blockSelector,!1)||s===e.oldValue)return;let i=this.attributeMap.get(e.target);if("IFRAME"===r.tagName&&"src"===n&&!this.keepIframeSrcFn(s)){if(r.contentDocument)return;n="rr_src"}if(i||(i={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(e.target,i)),"type"===n&&"INPUT"===r.tagName&&"password"===(e.oldValue||"").toLowerCase()&&r.setAttribute("data-rr-is-password","true"),!xr(r.tagName,n))if(i.attributes[n]=Cr(this.doc,tr(r.tagName),tr(n),s),"style"===n){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(t){this.unattachedDoc=this.doc}const n=this.unattachedDoc.createElement("span");e.oldValue&&n.setAttribute("style",e.oldValue);for(const e of Array.from(r.style)){const t=r.style.getPropertyValue(e),s=r.style.getPropertyPriority(e);t!==n.style.getPropertyValue(e)||s!==n.style.getPropertyPriority(e)?i.styleDiff[e]=""===s?t:[t,s]:i._unchangedStyles[e]=[t,s]}for(const e of Array.from(n.style))""===r.style.getPropertyValue(e)&&(i.styleDiff[e]=!1)}else"open"===n&&"DIALOG"===r.tagName&&(r.matches("dialog:modal")?i.attributes.rr_open_mode="modal":i.attributes.rr_open_mode="non-modal");break}case"childList":if(zh(e.target,this.blockClass,this.blockSelector,!0))return;if("TEXTAREA"===e.target.tagName)return void this.genTextAreaValueMutation(e.target);e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{const r=this.mirror.getId(t),n=$t(e.target)?this.mirror.getId(kh.host(e.target)):this.mirror.getId(e.target);zh(e.target,this.blockClass,this.blockSelector,!1)||Nh(t,this.mirror,this.slimDOMOptions)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(eu(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===r||_h(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[Kh(r,n)]?eu(this.movedSet,t):(this.removes.push({parentId:n,id:r,isShadow:!(!$t(e.target)||!Ht(e.target))||void 0}),function(e,t){const r=[e];for(;r.length;){const e=r.pop();t.has(e)||(t.add(e),kh.childNodes(e).forEach(e=>r.push(e)))}}(t,this.removesSubTreeCache))),this.mapRemoves.push(t))})}}),Tt(this,"genAdds",(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(Nh(e,this.mirror,this.slimDOMOptions))return;this.movedSet.add(e);let r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&-1!==r&&(this.movedMap[Kh(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);zh(e,this.blockClass,this.blockSelector,!1)||(kh.childNodes(e).forEach(e=>this.genAdds(e)),Fh(e)&&kh.childNodes(kh.shadowRoot(e)).forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}})}init(e){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(t=>{this[t]=e[t]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function eu(e,t){e.delete(t),kh.childNodes(t).forEach(t=>eu(e,t))}function tu(e,t,r){return 0!==e.size&&function(e,t){const r=kh.parentNode(t);return!!r&&e.has(r)}(e,t)}function ru(e,t){return 0!==e.size&&nu(e,t)}function nu(e,t){const r=kh.parentNode(t);return!!r&&(!!e.has(r)||nu(e,r))}let su;const iu=e=>{if(!su)return e;return(...t)=>{try{return e(...t)}catch(r){if(su&&!0===su(r))return;throw r}}},ou=[];function au(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function lu(e,t){const r=new Qh;ou.push(r),r.init(e);const n=new(wh())(iu(r.processMutations.bind(r)));return n.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),n}function cu({mouseInteractionCb:e,doc:t,mirror:r,blockClass:n,blockSelector:s,sampling:i}){if(!1===i.mouseInteraction)return()=>{};const o=!0===i.mouseInteraction||void 0===i.mouseInteraction?{}:i.mouseInteraction,a=[];let l=null;return Object.keys(Yh).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==o[e]).forEach(i=>{let o=tr(i);const c=(t=>i=>{const o=au(i);if(zh(o,n,s,!0))return;let a=null,c=t;if("pointerType"in i){switch(i.pointerType){case"mouse":a=Zh.Mouse;break;case"touch":a=Zh.Touch;break;case"pen":a=Zh.Pen}a===Zh.Touch?Yh[t]===Yh.MouseDown?c="TouchStart":Yh[t]===Yh.MouseUp&&(c="TouchEnd"):Zh.Pen}else Th(i)&&(a=Zh.Touch);null!==a?(l=a,(c.startsWith("Touch")&&a===Zh.Touch||c.startsWith("Mouse")&&a===Zh.Mouse)&&(a=null)):Yh[t]===Yh.Click&&(a=l,l=null);const h=Th(i)?i.changedTouches[0]:i;if(!h)return;const u=r.getId(o),{clientX:d,clientY:p}=h;iu(e)({type:Yh[c],id:u,x:d,y:p,...null!==a&&{pointerType:a}})})(i);if(window.PointerEvent)switch(Yh[i]){case Yh.MouseDown:case Yh.MouseUp:o=o.replace("mouse","pointer");break;case Yh.TouchStart:case Yh.TouchEnd:return}a.push(vh(o,c,t))}),iu(()=>{a.forEach(e=>e())})}function hu({scrollCb:e,doc:t,mirror:r,blockClass:n,blockSelector:s,sampling:i}){return vh("scroll",iu(xh(iu(i=>{const o=au(i);if(!o||zh(o,n,s,!0))return;const a=r.getId(o);if(o===t&&t.defaultView){const r=Eh(t.defaultView);e({id:a,x:r.left,y:r.top})}else e({id:a,x:o.scrollLeft,y:o.scrollTop})}),i.scroll||100)),t)}const uu=["INPUT","TEXTAREA","SELECT"],du=new WeakMap;function pu(e){return function(e,t){if(yu("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||yu("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||yu("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||yu("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){const r=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(r)}return t}(e,[])}function mu(e,t,r){let n,s;return e?(e.ownerNode?n=t.getId(e.ownerNode):s=r.getId(e),{styleId:s,id:n}):{}}function fu({mirror:e,stylesheetManager:t},r){var n,s,i;let o=null;o="#document"===r.nodeName?e.getId(r):e.getId(kh.host(r));const a="#document"===r.nodeName?null==(n=r.defaultView)?void 0:n.Document:null==(i=null==(s=r.ownerDocument)?void 0:s.defaultView)?void 0:i.ShadowRoot,l=(null==a?void 0:a.prototype)?Object.getOwnPropertyDescriptor(null==a?void 0:a.prototype,"adoptedStyleSheets"):void 0;return null!==o&&-1!==o&&a&&l?(Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get(){var e;return null==(e=l.get)?void 0:e.call(this)},set(e){var r;const n=null==(r=l.set)?void 0:r.call(this,e);if(null!==o&&-1!==o)try{t.adoptStyleSheets(e,o)}catch(s){}return n}}),iu(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})})):()=>{}}function gu(e,t={}){const r=e.doc.defaultView;if(!r)return()=>{};let n;!function(e,t){const{mutationCb:r,mousemoveCb:n,mouseInteractionCb:s,scrollCb:i,viewportResizeCb:o,inputCb:a,mediaInteractionCb:l,styleSheetRuleCb:c,styleDeclarationCb:h,canvasMutationCb:u,fontCb:d,selectionCb:p,customElementCb:m}=e;e.mutationCb=(...e)=>{t.mutation&&t.mutation(...e),r(...e)},e.mousemoveCb=(...e)=>{t.mousemove&&t.mousemove(...e),n(...e)},e.mouseInteractionCb=(...e)=>{t.mouseInteraction&&t.mouseInteraction(...e),s(...e)},e.scrollCb=(...e)=>{t.scroll&&t.scroll(...e),i(...e)},e.viewportResizeCb=(...e)=>{t.viewportResize&&t.viewportResize(...e),o(...e)},e.inputCb=(...e)=>{t.input&&t.input(...e),a(...e)},e.mediaInteractionCb=(...e)=>{t.mediaInteaction&&t.mediaInteaction(...e),l(...e)},e.styleSheetRuleCb=(...e)=>{t.styleSheetRule&&t.styleSheetRule(...e),c(...e)},e.styleDeclarationCb=(...e)=>{t.styleDeclaration&&t.styleDeclaration(...e),h(...e)},e.canvasMutationCb=(...e)=>{t.canvasMutation&&t.canvasMutation(...e),u(...e)},e.fontCb=(...e)=>{t.font&&t.font(...e),d(...e)},e.selectionCb=(...e)=>{t.selection&&t.selection(...e),p(...e)},e.customElementCb=(...e)=>{t.customElement&&t.customElement(...e),m(...e)}}(e,t),e.recordDOM&&(n=lu(e,e.doc));const s=function({mousemoveCb:e,sampling:t,doc:r,mirror:n}){if(!1===t.mousemove)return()=>{};const s="number"==typeof t.mousemove?t.mousemove:50,i="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let o,a=[];const l=xh(iu(t=>{const r=Date.now()-o;e(a.map(e=>(e.timeOffset-=r,e)),t),a=[],o=null}),i),c=iu(xh(iu(e=>{const t=au(e),{clientX:r,clientY:s}=Th(e)?e.changedTouches[0]:e;o||(o=Ah()),a.push({x:r,y:s,id:n.getId(t),timeOffset:Ah()-o}),l("undefined"!=typeof DragEvent&&e instanceof DragEvent?qh.Drag:e instanceof MouseEvent?qh.MouseMove:qh.TouchMove)}),s,{trailing:!1})),h=[vh("mousemove",c,r),vh("touchmove",c,r),vh("drag",c,r)];return iu(()=>{h.forEach(e=>e())})}(e),i=cu(e),o=hu(e),a=function({viewportResizeCb:e},{win:t}){let r=-1,n=-1;return vh("resize",iu(xh(iu(()=>{const t=Rh(),s=Mh();r===t&&n===s||(e({width:Number(s),height:Number(t)}),r=t,n=s)}),200)),t)}(e,{win:r}),l=function({inputCb:e,doc:t,mirror:r,blockClass:n,blockSelector:s,ignoreClass:i,ignoreSelector:o,maskInputOptions:a,maskInputFn:l,sampling:c,userTriggeredOnInput:h}){function u(e){let r=au(e);const c=e.isTrusted,u=r&&r.tagName;if(r&&"OPTION"===u&&(r=kh.parentElement(r)),!r||!u||uu.indexOf(u)<0||zh(r,n,s,!0))return;if(r.classList.contains(i)||o&&r.matches(o))return;let p=r.value,m=!1;const f=nr(r)||"";"radio"===f||"checkbox"===f?m=r.checked:(a[u.toLowerCase()]||a[f])&&(p=er({element:r,maskInputOptions:a,tagName:u,type:f,value:p,maskInputFn:l})),d(r,h?{text:p,isChecked:m,userTriggered:c}:{text:p,isChecked:m});const g=r.name;"radio"===f&&g&&m&&t.querySelectorAll(`input[type="radio"][name="${g}"]`).forEach(e=>{if(e!==r){const t=e.value;d(e,h?{text:t,isChecked:!m,userTriggered:!1}:{text:t,isChecked:!m})}})}function d(t,n){const s=du.get(t);if(!s||s.text!==n.text||s.isChecked!==n.isChecked){du.set(t,n);const s=r.getId(t);iu(e)({...n,id:s})}}const p=("last"===c.input?["change"]:["input","change"]).map(e=>vh(e,iu(u),t)),m=t.defaultView;if(!m)return()=>{p.forEach(e=>e())};const f=m.Object.getOwnPropertyDescriptor(m.HTMLInputElement.prototype,"value"),g=[[m.HTMLInputElement.prototype,"value"],[m.HTMLInputElement.prototype,"checked"],[m.HTMLSelectElement.prototype,"value"],[m.HTMLTextAreaElement.prototype,"value"],[m.HTMLSelectElement.prototype,"selectedIndex"],[m.HTMLOptionElement.prototype,"selected"]];return f&&f.set&&p.push(...g.map(e=>Ih(e[0],e[1],{set(){iu(u)({target:this,isTrusted:!1})}},!1,m))),iu(()=>{p.forEach(e=>e())})}(e),c=function({mediaInteractionCb:e,blockClass:t,blockSelector:r,mirror:n,sampling:s,doc:i}){const o=iu(i=>xh(iu(s=>{const o=au(s);if(!o||zh(o,t,r,!0))return;const{currentTime:a,volume:l,muted:c,playbackRate:h,loop:u}=o;e({type:i,id:n.getId(o),currentTime:a,volume:l,muted:c,playbackRate:h,loop:u})}),s.media||500)),a=[vh("play",o(Jh.Play),i),vh("pause",o(Jh.Pause),i),vh("seeked",o(Jh.Seeked),i),vh("volumechange",o(Jh.VolumeChange),i),vh("ratechange",o(Jh.RateChange),i)];return iu(()=>{a.forEach(e=>e())})}(e);let h=()=>{},u=()=>{},d=()=>{},p=()=>{};e.recordDOM&&(h=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};const s=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:iu((n,s,i)=>{const[o,a]=i,{id:l,styleId:c}=mu(s,t,r.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:o,index:a}]}),n.apply(s,i)})}),n.CSSStyleSheet.prototype.addRule=function(e,t,r=this.cssRules.length){const s=`${e} { ${t} }`;return n.CSSStyleSheet.prototype.insertRule.apply(this,[s,r])};const i=n.CSSStyleSheet.prototype.deleteRule;let o,a;n.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:iu((n,s,i)=>{const[o]=i,{id:a,styleId:l}=mu(s,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,removes:[{index:o}]}),n.apply(s,i)})}),n.CSSStyleSheet.prototype.removeRule=function(e){return n.CSSStyleSheet.prototype.deleteRule.apply(this,[e])},n.CSSStyleSheet.prototype.replace&&(o=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:iu((n,s,i)=>{const[o]=i,{id:a,styleId:l}=mu(s,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,replace:o}),n.apply(s,i)})})),n.CSSStyleSheet.prototype.replaceSync&&(a=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:iu((n,s,i)=>{const[o]=i,{id:a,styleId:l}=mu(s,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,replaceSync:o}),n.apply(s,i)})}));const l={};bu("CSSGroupingRule")?l.CSSGroupingRule=n.CSSGroupingRule:(bu("CSSMediaRule")&&(l.CSSMediaRule=n.CSSMediaRule),bu("CSSConditionRule")&&(l.CSSConditionRule=n.CSSConditionRule),bu("CSSSupportsRule")&&(l.CSSSupportsRule=n.CSSSupportsRule));const c={};return Object.entries(l).forEach(([n,s])=>{c[n]={insertRule:s.prototype.insertRule,deleteRule:s.prototype.deleteRule},s.prototype.insertRule=new Proxy(c[n].insertRule,{apply:iu((n,s,i)=>{const[o,a]=i,{id:l,styleId:c}=mu(s.parentStyleSheet,t,r.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:o,index:[...pu(s),a||0]}]}),n.apply(s,i)})}),s.prototype.deleteRule=new Proxy(c[n].deleteRule,{apply:iu((n,s,i)=>{const[o]=i,{id:a,styleId:l}=mu(s.parentStyleSheet,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,removes:[{index:[...pu(s),o]}]}),n.apply(s,i)})})}),iu(()=>{n.CSSStyleSheet.prototype.insertRule=s,n.CSSStyleSheet.prototype.deleteRule=i,o&&(n.CSSStyleSheet.prototype.replace=o),a&&(n.CSSStyleSheet.prototype.replaceSync=a),Object.entries(l).forEach(([e,t])=>{t.prototype.insertRule=c[e].insertRule,t.prototype.deleteRule=c[e].deleteRule})})}(e,{win:r}),u=fu(e,e.doc),d=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:n},{win:s}){const i=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:iu((s,o,a)=>{var l;const[c,h,u]=a;if(r.has(c))return i.apply(o,[c,h,u]);const{id:d,styleId:p}=mu(null==(l=o.parentRule)?void 0:l.parentStyleSheet,t,n.styleMirror);return(d&&-1!==d||p&&-1!==p)&&e({id:d,styleId:p,set:{property:c,value:h,priority:u},index:pu(o.parentRule)}),s.apply(o,a)})});const o=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:iu((s,i,a)=>{var l;const[c]=a;if(r.has(c))return o.apply(i,[c]);const{id:h,styleId:u}=mu(null==(l=i.parentRule)?void 0:l.parentStyleSheet,t,n.styleMirror);return(h&&-1!==h||u&&-1!==u)&&e({id:h,styleId:u,remove:{property:c},index:pu(i.parentRule)}),s.apply(i,a)})}),iu(()=>{s.CSSStyleDeclaration.prototype.setProperty=i,s.CSSStyleDeclaration.prototype.removeProperty=o})}(e,{win:r}),e.collectFonts&&(p=function({fontCb:e,doc:t}){const r=t.defaultView;if(!r)return()=>{};const n=[],s=new WeakMap,i=r.FontFace;r.FontFace=function(e,t,r){const n=new i(e,t,r);return s.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};const o=Oh(t.fonts,"add",function(t){return function(r){return setTimeout(iu(()=>{const t=s.get(r);t&&(e(t),s.delete(r))}),0),t.apply(this,[r])}});return n.push(()=>{r.FontFace=i}),n.push(o),iu(()=>{n.forEach(e=>e())})}(e)));const m=function(e){const{doc:t,mirror:r,blockClass:n,blockSelector:s,selectionCb:i}=e;let o=!0;const a=iu(()=>{const e=t.getSelection();if(!e||o&&(null==e?void 0:e.isCollapsed))return;o=e.isCollapsed||!1;const a=[],l=e.rangeCount||0;for(let t=0;t<l;t++){const i=e.getRangeAt(t),{startContainer:o,startOffset:l,endContainer:c,endOffset:h}=i;zh(o,n,s,!0)||zh(c,n,s,!0)||a.push({start:r.getId(o),startOffset:l,end:r.getId(c),endOffset:h})}i({ranges:a})});return a(),vh("selectionchange",a)}(e),f=function({doc:e,customElementCb:t}){const r=e.defaultView;return r&&r.customElements?Oh(r.customElements,"define",function(e){return function(r,n,s){try{t({define:{name:r}})}catch(i){console.warn(`Custom element callback failed for ${r}`)}return e.apply(this,[r,n,s])}}):()=>{}}(e),g=[];for(const y of e.plugins)g.push(y.observer(y.callback,r,y.options));return iu(()=>{ou.forEach(e=>e.reset()),null==n||n.disconnect(),s(),i(),o(),a(),l(),c(),h(),u(),d(),p(),m(),f(),g.forEach(e=>e())})}function yu(e){return void 0!==window[e]}function bu(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class wu{constructor(e){Tt(this,"iframeIdToRemoteIdMap",new WeakMap),Tt(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}getId(e,t,r,n){const s=r||this.getIdToRemoteIdMap(e),i=n||this.getRemoteIdToIdMap(e);let o=s.get(t);return o||(o=this.generateIdFn(),s.set(t,o),i.set(o,t)),o}getIds(e,t){const r=this.getIdToRemoteIdMap(e),n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,r,n))}getRemoteId(e,t,r){const n=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;const s=n.get(t);return s||-1}getRemoteIds(e,t){const r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,r))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class ku{constructor(e){Tt(this,"iframes",new WeakMap),Tt(this,"crossOriginIframeMap",new WeakMap),Tt(this,"crossOriginIframeMirror",new wu(mr)),Tt(this,"crossOriginIframeStyleMirror"),Tt(this,"crossOriginIframeRootIdMap",new WeakMap),Tt(this,"mirror"),Tt(this,"mutationCb"),Tt(this,"wrappedEmit"),Tt(this,"loadListener"),Tt(this,"stylesheetManager"),Tt(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new wu(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){var r,n;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&(null==(r=e.contentWindow)||r.addEventListener("message",this.handleMessage.bind(this))),null==(n=this.loadListener)||n.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;if(!e.source)return;const r=this.crossOriginIframeMap.get(e.source);if(!r)return;const n=this.transformCrossOriginEvent(r,t.data.event);n&&this.wrappedEmit(n,t.data.isCheckout)}transformCrossOriginEvent(e,t){var r;switch(t.type){case Wh.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const r=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,r),this.patchRootIdOnNode(t.data.node,r),{timestamp:t.timestamp,type:Wh.IncrementalSnapshot,data:{source:qh.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Wh.Meta:case Wh.Load:case Wh.DomContentLoaded:return!1;case Wh.Plugin:return t;case Wh.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case Wh.IncrementalSnapshot:switch(t.data.source){case qh.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const r=this.crossOriginIframeRootIdMap.get(e);r&&this.patchRootIdOnNode(t.node,r)}),t.data.removes.forEach(t=>{this.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,["id"])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case qh.Drag:case qh.TouchMove:case qh.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case qh.ViewportResize:return!1;case qh.MediaInteraction:case qh.MouseInteraction:case qh.Scroll:case qh.CanvasMutation:case qh.Input:return this.replaceIds(t.data,e,["id"]),t;case qh.StyleSheetRule:case qh.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case qh.Font:return t;case qh.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case qh.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(r=t.data.styles)||r.forEach(t=>{this.replaceStyleIds(t,e,["styleId"])}),t}}return!1}replace(e,t,r,n){for(const s of n)(Array.isArray(t[s])||"number"==typeof t[s])&&(Array.isArray(t[s])?t[s]=e.getIds(r,t[s]):t[s]=e.getId(r,t[s]));return t}replaceIds(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}replaceStyleIds(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===$h.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class vu{constructor(e){Tt(this,"shadowDoms",new WeakSet),Tt(this,"mutationCb"),Tt(this,"scrollCb"),Tt(this,"bypassOptions"),Tt(this,"mirror"),Tt(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!Ht(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e);const r=lu({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(hu({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),setTimeout(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(kh.host(e))),this.restoreHandlers.push(fu({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){const r=this;this.restoreHandlers.push(Oh(e.prototype,"attachShadow",function(e){return function(n){const s=e.call(this,n),i=kh.shadowRoot(this);return i&&Vh(this)&&r.addShadowRoot(i,t),s}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(t){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}for(var Su="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Cu="undefined"==typeof Uint8Array?[]:new Uint8Array(256),xu=0;xu<64;xu++)Cu[Su.charCodeAt(xu)]=xu;const Iu=new Map;const Ou=(e,t,r)=>{if(!e||!Ru(e,t)&&"object"!=typeof e)return;const n=function(e,t){let r=Iu.get(e);return r||(r=new Map,Iu.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}(r,e.constructor.name);let s=n.indexOf(e);return-1===s&&(s=n.length,n.push(e)),s};function Au(e,t,r){if(e instanceof Array)return e.map(e=>Au(e,t,r));if(null===e)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray){return{rr_type:e.constructor.name,args:[Object.values(e)]}}if(e instanceof ArrayBuffer){return{rr_type:e.constructor.name,base64:function(e){var t,r=new Uint8Array(e),n=r.length,s="";for(t=0;t<n;t+=3)s+=Su[r[t]>>2],s+=Su[(3&r[t])<<4|r[t+1]>>4],s+=Su[(15&r[t+1])<<2|r[t+2]>>6],s+=Su[63&r[t+2]];return n%3==2?s=s.substring(0,s.length-1)+"=":n%3==1&&(s=s.substring(0,s.length-2)+"=="),s}(e)}}if(e instanceof DataView){return{rr_type:e.constructor.name,args:[Au(e.buffer,t,r),e.byteOffset,e.byteLength]}}if(e instanceof HTMLImageElement){const t=e.constructor.name,{src:r}=e;return{rr_type:t,src:r}}if(e instanceof HTMLCanvasElement){return{rr_type:"HTMLImageElement",src:e.toDataURL()}}if(e instanceof ImageData){return{rr_type:e.constructor.name,args:[Au(e.data,t,r),e.width,e.height]}}if(Ru(e,t)||"object"==typeof e){return{rr_type:e.constructor.name,index:Ou(e,t,r)}}return e}const Eu=(e,t,r)=>e.map(e=>Au(e,t,r)),Ru=(e,t)=>{const r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof t[e]);return Boolean(r.find(r=>e instanceof t[r]))};function Mu(e,t,r,n){const s=[];try{const i=Oh(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(s,...i){if(!zh(this,t,r,!0)){const e=function(e){return"experimental-webgl"===e?"webgl":e}(s);if("__context"in this||(this.__context=e),n&&["webgl","webgl2"].includes(e))if(i[0]&&"object"==typeof i[0]){const e=i[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else i.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[s,...i])}});s.push(i)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{s.forEach(e=>e())}}function ju(e,t,r,n,s,i){const o=[],a=Object.getOwnPropertyNames(e);for(const l of a)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(l))try{if("function"!=typeof e[l])continue;const a=Oh(e,l,function(e){return function(...o){const a=e.apply(this,o);if(Ou(a,i,this),"tagName"in this.canvas&&!zh(this.canvas,n,s,!0)){const e=Eu(o,i,this),n={type:t,property:l,args:e};r(this.canvas,n)}return a}});o.push(a)}catch{const n=Ih(e,l,{set(e){r(this.canvas,{type:t,property:l,args:[e],setter:!0})}});o.push(n)}return o}const zu="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",Nu="undefined"!=typeof window&&window.Blob&&new Blob([(_u=zu,Uint8Array.from(atob(_u),e=>e.charCodeAt(0)))],{type:"text/javascript;charset=utf-8"});var _u;function Tu(e){let t;try{if(t=Nu&&(window.URL||window.webkitURL).createObjectURL(Nu),!t)throw"";const r=new Worker(t,{name:null==e?void 0:e.name});return r.addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(t)}),r}catch(r){return new Worker("data:text/javascript;base64,"+zu,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}class Pu{constructor(e){Tt(this,"pendingCanvasMutations",new Map),Tt(this,"rafStamps",{latestId:0,invokeId:null}),Tt(this,"mirror"),Tt(this,"mutationCb"),Tt(this,"resetObservers"),Tt(this,"frozen",!1),Tt(this,"locked",!1),Tt(this,"processMutation",(e,t)=>{!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)});const{sampling:t="all",win:r,blockClass:n,blockSelector:s,recordCanvas:i,dataURLOptions:o}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,i&&"all"===t&&this.initCanvasMutationObserver(r,n,s),i&&"number"==typeof t&&this.initCanvasFPSObserver(t,r,n,s,{dataURLOptions:o})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(e,t,r,n,s){const i=Mu(t,r,n,!0),o=new Map,a=new Tu;a.onmessage=e=>{const{id:t}=e.data;if(o.set(t,!1),!("base64"in e.data))return;const{base64:r,type:n,width:s,height:i}=e.data;this.mutationCb({id:t,type:Gh["2D"],commands:[{property:"clearRect",args:[0,0,s,i]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:r}],type:n}]},0,0]}]})};const l=1e3/e;let c,h=0;const u=e=>{h&&e-h<l||(h=e,(()=>{const e=[];return t.document.querySelectorAll("canvas").forEach(t=>{zh(t,r,n,!0)||e.push(t)}),e})().forEach(async e=>{var t;const r=this.mirror.getId(e);if(o.get(r))return;if(0===e.width||0===e.height)return;if(o.set(r,!0),["webgl","webgl2"].includes(e.__context)){const r=e.getContext(e.__context);!1===(null==(t=null==r?void 0:r.getContextAttributes())?void 0:t.preserveDrawingBuffer)&&r.clear(r.COLOR_BUFFER_BIT)}const n=await createImageBitmap(e);a.postMessage({id:r,bitmap:n,width:e.width,height:e.height,dataURLOptions:s.dataURLOptions},[n])})),c=requestAnimationFrame(u)};c=requestAnimationFrame(u),this.resetObservers=()=>{i(),cancelAnimationFrame(c)}}initCanvasMutationObserver(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const n=Mu(e,t,r,!1),s=function(e,t,r,n){const s=[],i=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const o of i)try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[o])continue;const i=Oh(t.CanvasRenderingContext2D.prototype,o,function(s){return function(...i){return zh(this.canvas,r,n,!0)||setTimeout(()=>{const r=Eu(i,t,this);e(this.canvas,{type:Gh["2D"],property:o,args:r})},0),s.apply(this,i)}});s.push(i)}catch{const r=Ih(t.CanvasRenderingContext2D.prototype,o,{set(t){e(this.canvas,{type:Gh["2D"],property:o,args:[t],setter:!0})}});s.push(r)}return()=>{s.forEach(e=>e())}}(this.processMutation.bind(this),e,t,r),i=function(e,t,r,n){const s=[];return s.push(...ju(t.WebGLRenderingContext.prototype,Gh.WebGL,e,r,n,t)),void 0!==t.WebGL2RenderingContext&&s.push(...ju(t.WebGL2RenderingContext.prototype,Gh.WebGL2,e,r,n,t)),()=>{s.forEach(e=>e())}}(this.processMutation.bind(this),e,t,r);this.resetObservers=()=>{n(),s(),i()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{const r=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,r)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(e);if(!r||-1===t)return;const n=r.map(e=>{const{type:t,...r}=e;return r}),{type:s}=r[0];this.mutationCb({id:t,type:s,commands:n}),this.pendingCanvasMutations.delete(e)}}class Lu{constructor(e){Tt(this,"trackedLinkElements",new WeakSet),Tt(this,"mutationCb"),Tt(this,"adoptedStyleSheetCb"),Tt(this,"styleMirror",new Dh),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const r={id:t,styleIds:[]},n=[];for(const s of e){let e;this.styleMirror.has(s)?e=this.styleMirror.getId(s):(e=this.styleMirror.add(s),n.push({styleId:e,rules:Array.from(s.rules||CSSRule,(e,t)=>({rule:Kt(e,s.href),index:t}))})),r.styleIds.push(e)}n.length>0&&(r.styles=n),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class Fu{constructor(){Tt(this,"nodeMap",new WeakMap),Tt(this,"active",!1)}inOtherBuffer(e,t){const r=this.nodeMap.get(e);return r&&Array.from(r).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let Du,Bu,Uu,Vu=!1;try{if(2!==Array.from([1],e=>2*e)[0]){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=(null==(Nt=e.contentWindow)?void 0:Nt.Array.from)||Array.from,document.body.removeChild(e)}}catch(Hk){console.debug("Unable to override Array.from",Hk)}const Wu=new Qt;function qu(e={}){const{emit:t,checkoutEveryNms:r,checkoutEveryNth:n,blockClass:s="rr-block",blockSelector:i=null,ignoreClass:o="rr-ignore",ignoreSelector:a=null,maskTextClass:l="rr-mask",maskTextSelector:c=null,inlineStylesheet:h=!0,maskAllInputs:u,maskInputOptions:d,slimDOMOptions:p,maskInputFn:m,maskTextFn:f,hooks:g,packFn:y,sampling:b={},dataURLOptions:w={},mousemoveWait:k,recordDOM:v=!0,recordCanvas:S=!1,recordCrossOriginIframes:C=!1,recordAfter:x=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:I=!1,collectFonts:O=!1,inlineImages:A=!1,plugins:E,keepIframeSrcFn:R=()=>!1,ignoreCSSAttributes:M=new Set([]),errorHandler:j}=e;su=j;const z=!C||window.parent===window;let N=!1;if(!z)try{window.parent.document&&(N=!1)}catch(Z){N=!0}if(z&&!t)throw new Error("emit function is required");if(!z&&!N)return()=>{};void 0!==k&&void 0===b.mousemove&&(b.mousemove=k),Wu.reset();const _=!0===u?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:void 0!==d?d:{password:!0},T=!0===p||"all"===p?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===p,headMetaDescKeywords:"all"===p,headTitleMutations:"all"===p}:p||{};let P;!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)}();let L=0;const F=e=>{for(const t of E||[])t.eventProcessor&&(e=t.eventProcessor(e));return y&&!N&&(e=y(e)),e};Du=(e,s)=>{var i;const o=e;if(o.timestamp=Ah(),!(null==(i=ou[0])?void 0:i.isFrozen())||o.type===Wh.FullSnapshot||o.type===Wh.IncrementalSnapshot&&o.data.source===qh.Mutation||ou.forEach(e=>e.unfreeze()),z)null==t||t(F(o),s);else if(N){const e={type:"rrweb",event:F(o),origin:window.location.origin,isCheckout:s};window.parent.postMessage(e,"*")}if(o.type===Wh.FullSnapshot)P=o,L=0;else if(o.type===Wh.IncrementalSnapshot){if(o.data.source===qh.Mutation&&o.data.isAttachIframe)return;L++;const e=n&&L>=n,t=r&&o.timestamp-P.timestamp>r;(e||t)&&Bu(!0)}};const D=e=>{Du({type:Wh.IncrementalSnapshot,data:{source:qh.Mutation,...e}})},B=e=>Du({type:Wh.IncrementalSnapshot,data:{source:qh.Scroll,...e}}),U=e=>Du({type:Wh.IncrementalSnapshot,data:{source:qh.CanvasMutation,...e}}),V=new Lu({mutationCb:D,adoptedStyleSheetCb:e=>Du({type:Wh.IncrementalSnapshot,data:{source:qh.AdoptedStyleSheet,...e}})}),W=new ku({mirror:Wu,mutationCb:D,stylesheetManager:V,recordCrossOriginIframes:C,wrappedEmit:Du});for(const J of E||[])J.getMirror&&J.getMirror({nodeMirror:Wu,crossOriginIframeMirror:W.crossOriginIframeMirror,crossOriginIframeStyleMirror:W.crossOriginIframeStyleMirror});const q=new Fu;Uu=new Pu({recordCanvas:S,mutationCb:U,win:window,blockClass:s,blockSelector:i,mirror:Wu,sampling:b.canvas,dataURLOptions:w});const Y=new vu({mutationCb:D,scrollCb:B,bypassOptions:{blockClass:s,blockSelector:i,maskTextClass:l,maskTextSelector:c,inlineStylesheet:h,maskInputOptions:_,dataURLOptions:w,maskTextFn:f,maskInputFn:m,recordCanvas:S,inlineImages:A,sampling:b,slimDOMOptions:T,iframeManager:W,stylesheetManager:V,canvasManager:Uu,keepIframeSrcFn:R,processedNodeManager:q},mirror:Wu});Bu=(e=!1)=>{if(!v)return;Du({type:Wh.Meta,data:{href:window.location.href,width:Mh(),height:Rh()}},e),V.reset(),Y.init(),ou.forEach(e=>e.lock());const t=function(e,t){const{mirror:r=new Qt,blockClass:n="rr-block",blockSelector:s=null,maskTextClass:i="rr-mask",maskTextSelector:o=null,inlineStylesheet:a=!0,inlineImages:l=!1,recordCanvas:c=!1,maskAllInputs:h=!1,maskTextFn:u,maskInputFn:d,slimDOM:p=!1,dataURLOptions:m,preserveWhiteSpace:f,onSerialize:g,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:w,stylesheetLoadTimeout:k,keepIframeSrcFn:v=()=>!1}=t||{};return Rr(e,{doc:e,mirror:r,blockClass:n,blockSelector:s,maskTextClass:i,maskTextSelector:o,skipChild:!1,inlineStylesheet:a,maskInputOptions:!0===h?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===h?{password:!0}:h,maskTextFn:u,maskInputFn:d,slimDOMOptions:!0===p||"all"===p?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===p,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===p?{}:p,dataURLOptions:m,inlineImages:l,recordCanvas:c,preserveWhiteSpace:f,onSerialize:g,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:w,stylesheetLoadTimeout:k,keepIframeSrcFn:v,newlyAddedElement:!1})}(document,{mirror:Wu,blockClass:s,blockSelector:i,maskTextClass:l,maskTextSelector:c,inlineStylesheet:h,maskAllInputs:_,maskTextFn:f,maskInputFn:m,slimDOM:T,dataURLOptions:w,recordCanvas:S,inlineImages:A,onSerialize:e=>{Ph(e,Wu)&&W.addIframe(e),Lh(e,Wu)&&V.trackLinkElement(e),Fh(e)&&Y.addShadowRoot(kh.shadowRoot(e),document)},onIframeLoad:(e,t)=>{W.attachIframe(e,t),Y.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{V.attachLinkElement(e,t)},keepIframeSrcFn:R});if(!t)return console.warn("Failed to snapshot the document");Du({type:Wh.FullSnapshot,data:{node:t,initialOffset:Eh(window)}},e),ou.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&V.adoptStyleSheets(document.adoptedStyleSheets,Wu.getId(document))};try{const e=[],t=e=>{var t;return iu(gu)({mutationCb:D,mousemoveCb:(e,t)=>Du({type:Wh.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>Du({type:Wh.IncrementalSnapshot,data:{source:qh.MouseInteraction,...e}}),scrollCb:B,viewportResizeCb:e=>Du({type:Wh.IncrementalSnapshot,data:{source:qh.ViewportResize,...e}}),inputCb:e=>Du({type:Wh.IncrementalSnapshot,data:{source:qh.Input,...e}}),mediaInteractionCb:e=>Du({type:Wh.IncrementalSnapshot,data:{source:qh.MediaInteraction,...e}}),styleSheetRuleCb:e=>Du({type:Wh.IncrementalSnapshot,data:{source:qh.StyleSheetRule,...e}}),styleDeclarationCb:e=>Du({type:Wh.IncrementalSnapshot,data:{source:qh.StyleDeclaration,...e}}),canvasMutationCb:U,fontCb:e=>Du({type:Wh.IncrementalSnapshot,data:{source:qh.Font,...e}}),selectionCb:e=>{Du({type:Wh.IncrementalSnapshot,data:{source:qh.Selection,...e}})},customElementCb:e=>{Du({type:Wh.IncrementalSnapshot,data:{source:qh.CustomElement,...e}})},blockClass:s,ignoreClass:o,ignoreSelector:a,maskTextClass:l,maskTextSelector:c,maskInputOptions:_,inlineStylesheet:h,sampling:b,recordDOM:v,recordCanvas:S,inlineImages:A,userTriggeredOnInput:I,collectFonts:O,doc:e,maskInputFn:m,maskTextFn:f,keepIframeSrcFn:R,blockSelector:i,slimDOMOptions:T,dataURLOptions:w,mirror:Wu,iframeManager:W,stylesheetManager:V,shadowDomManager:Y,processedNodeManager:q,canvasManager:Uu,ignoreCSSAttributes:M,plugins:(null==(t=null==E?void 0:E.filter(e=>e.observer))?void 0:t.map(e=>({observer:e.observer,options:e.options,callback:t=>Du({type:Wh.Plugin,data:{plugin:e.name,payload:t}})})))||[]},g)};W.addLoadListener(r=>{try{e.push(t(r.contentDocument))}catch(n){console.warn(n)}});const r=()=>{Bu(),e.push(t(document)),Vu=!0};return"interactive"===document.readyState||"complete"===document.readyState?r():(e.push(vh("DOMContentLoaded",()=>{Du({type:Wh.DomContentLoaded,data:{}}),"DOMContentLoaded"===x&&r()})),e.push(vh("load",()=>{Du({type:Wh.Load,data:{}}),"load"===x&&r()},window))),()=>{e.forEach(e=>e()),q.destroy(),Vu=!1,su=void 0}}catch(G){console.warn(G)}}var Yu,Zu;qu.addCustomEvent=(e,t)=>{if(!Vu)throw new Error("please add custom event after start recording");Du({type:Wh.Custom,data:{tag:e,payload:t}})},qu.freezePage=()=>{ou.forEach(e=>e.freeze())},qu.takeFullSnapshot=e=>{if(!Vu)throw new Error("please take full snapshot after start recording");Bu(e)},qu.mirror=Wu,(Zu=Yu||(Yu={}))[Zu.NotStarted=0]="NotStarted",Zu[Zu.Running=1]="Running",Zu[Zu.Stopped=2]="Stopped";const{addCustomEvent:Gu}=qu,{freezePage:Ju}=qu,{takeFullSnapshot:$u}=qu;class Hu extends Array{constructor(){super()}isEmpty(){return 0===this.length}isFull(){return 10===this.length}flush(){return this.splice(0,this.length)}}class Xu{constructor(e){__publicField(this,"agent"),__publicField(this,"eventBuffer"),this.agent=e,this.eventBuffer=new Hu}start(){document.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&this.send()})}handle(e){e.type===Wh.FullSnapshot&&this.eventBuffer.find(e=>e.type===Wh.FullSnapshot)?console.warn("Full snapshot already in buffer, ignoring..."):(this.eventBuffer.push(e),this.eventBuffer.isFull()&&this.send())}async send(){if(!this.eventBuffer.isEmpty())if(this.agent.sendEvents){const e=this.eventBuffer.flush();await this.agent.sendEvents(e)}else console.warn("No send function provided to Agent")}}var Ku,Qu=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(Qu||{}),ed=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(ed||{}),td=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(td||{}),rd=Object.defineProperty,nd=(e,t,r)=>((e,t,r)=>t in e?rd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r),sd=Object.defineProperty,id=(e,t,r)=>((e,t,r)=>t in e?sd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r),od=Object.defineProperty,ad=(e,t,r)=>((e,t,r)=>t in e?od(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r);const ld={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},cd={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},hd={};function ud(e){if(hd[e])return hd[e];const t=globalThis[e],r=t.prototype,n=e in ld?ld[e]:void 0,s=Boolean(n&&n.every(e=>{var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),i=e in cd?cd[e]:void 0,o=Boolean(i&&i.every(e=>{var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(s&&o&&!globalThis.Zone)return hd[e]=t.prototype,t.prototype;try{const n=document.createElement("iframe");document.body.appendChild(n);const s=n.contentWindow;if(!s)return t.prototype;const i=s[e].prototype;return document.body.removeChild(n),i?hd[e]=i:r}catch{return r}}const dd={};function pd(e,t,r){var n;const s=`${e}.${String(r)}`;if(dd[s])return dd[s].call(t);const i=ud(e),o=null==(n=Object.getOwnPropertyDescriptor(i,r))?void 0:n.get;return o?(dd[s]=o,o.call(t)):t[r]}const md={};function fd(e,t,r){const n=`${e}.${String(r)}`;if(md[n])return md[n].bind(t);const s=ud(e)[r];return"function"!=typeof s?t[r]:(md[n]=s,s.bind(t))}const gd={childNodes:function(e){return pd("Node",e,"childNodes")},parentNode:function(e){return pd("Node",e,"parentNode")},parentElement:function(e){return pd("Node",e,"parentElement")},textContent:function(e){return pd("Node",e,"textContent")},contains:function(e,t){return fd("Node",e,"contains")(t)},getRootNode:function(e){return fd("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?pd("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?pd("Element",e,"shadowRoot"):null},querySelector:function(e,t){return pd("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return pd("Element",e,"querySelectorAll")(t)},mutationObserver:function(){return ud("MutationObserver").constructor}};class yd{constructor(){ad(this,"idNodeMap",new Map),ad(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;return(null==(t=this.getMeta(e))?void 0:t.id)??-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){const r=this.getNode(e);if(r){const 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 bd(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&bd(gd.parentNode(e),t,r);for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!!r&&bd(gd.parentNode(e),t,r)}function wd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function kd(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 n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var vd={exports:{}},Sd=String,Cd=function(){return{isColorSupported:!1,reset:Sd,bold:Sd,dim:Sd,italic:Sd,underline:Sd,inverse:Sd,hidden:Sd,strikethrough:Sd,black:Sd,red:Sd,green:Sd,yellow:Sd,blue:Sd,magenta:Sd,cyan:Sd,white:Sd,gray:Sd,bgBlack:Sd,bgRed:Sd,bgGreen:Sd,bgYellow:Sd,bgBlue:Sd,bgMagenta:Sd,bgCyan:Sd,bgWhite:Sd}};vd.exports=Cd(),vd.exports.createColors=Cd;var xd=vd.exports;const Id=kd(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));let Od=xd,Ad=Id,Ed=class e extends Error{constructor(t,r,n,s,i,o){super(t),this.name="CssSyntaxError",this.reason=t,i&&(this.file=i),s&&(this.source=s),o&&(this.plugin=o),void 0!==r&&void 0!==n&&("number"==typeof r?(this.line=r,this.column=n):(this.line=r.line,this.column=r.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}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(e){if(!this.source)return"";let t=this.source;null==e&&(e=Od.isColorSupported),Ad&&e&&(t=Ad(t));let r,n,s=t.split(/\r?\n/),i=Math.max(this.line-3,0),o=Math.min(this.line+2,s.length),a=String(o).length;if(e){let{bold:e,gray:t,red:s}=Od.createColors(!0);r=t=>e(s(t)),n=e=>t(e)}else r=n=e=>e;return s.slice(i,o).map((e,t)=>{let s=i+1+t,o=" "+(" "+s).slice(-a)+" | ";if(s===this.line){let t=n(o.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return r(">")+n(o)+e+"\n "+t+r("^")}return" "+n(o)+e}).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}};var Rd=Ed;Ed.default=Ed;var Md={};Md.isClean=Symbol("isClean"),Md.my=Symbol("my");const jd={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};let zd=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{let s=(e.raws.between||"")+(t?";":"");this.builder(r+n+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 n=e.parent,s=0;for(;n&&"root"!==n.type;)s+=1,n=n.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,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",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 n=0;n<e.nodes.length;n++){let s=e.nodes[n],i=this.raw(s,"before");i&&this.builder(i),this.stringify(s,t!==n||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"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)}document(e){this.body(e)}raw(e,t,r){let n;if(r||(r=t),t&&(n=e.raws[t],void 0!==n))return n;let s=e.parent;if("before"===r){if(!s||"root"===s.type&&s.first===e)return"";if(s&&"document"===s.type)return""}if(!s)return jd[r];let i=e.root();if(i.rawCache||(i.rawCache={}),void 0!==i.rawCache[r])return i.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);{let s="raw"+((o=r)[0].toUpperCase()+o.slice(1));this[s]?n=this[s](i,e):i.walk(e=>{if(n=e.raws[t],void 0!==n)return!1})}var o;return void 0===n&&(n=jd[r]),i.rawCache[r]=n,n}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,t.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,r.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,r.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&&(t=e.raws.between,void 0!==t))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,t.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&&(t=e.raws.after,void 0!==t))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(r=>{let n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){let e=r.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1}),t}rawValue(e,t){let r=e[t],n=e.raws[t];return n&&n.value===r?n.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 new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};var Nd=zd;zd.default=zd;let _d=Nd;function Td(e,t){new _d(t).stringify(e)}var Pd=Td;Td.default=Td;let{isClean:Ld,my:Fd}=Md,Dd=Rd,Bd=Nd,Ud=Pd;function Vd(e,t){let r=new e.constructor;for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;if("proxyCache"===n)continue;let s=e[n],i=typeof s;"parent"===n&&"object"===i?t&&(r[n]=t):"source"===n?r[n]=s:Array.isArray(s)?r[n]=s.map(e=>Vd(e,r)):("object"===i&&null!==s&&(s=Vd(s)),r[n]=s)}return r}let Wd=class{constructor(e={}){this.raws={},this[Ld]=!1,this[Fd]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let r of e[t])"function"==typeof r.clone?this.append(r.clone()):this.append(r)}else this[t]=e[t]}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=Vd(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:n}=this.rangeBy(t);return this.source.input.error(e,{column:n.column,line:n.line},{column:r.column,line:r.line},t)}return new Dd(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[Ld]){this[Ld]=!1;let e=this;for(;e=e.parent;)e[Ld]=!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 n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r}positionInside(e,t){let r=t||this.toString(),n=this.source.start.column,s=this.source.start.line;for(let i=0;i<e;i++)"\n"===r[i]?(n=1,s+=1):n+=1;return{column:n,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 n=this.toString(),s=n.indexOf(e.word);-1!==s&&(t=this.positionInside(s,n),r=this.positionInside(s+e.word.length,n))}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 Bd).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 n of e)n===this?r=!0:r?(this.parent.insertAfter(t,n),t=n):this.parent.insertBefore(t,n);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={},n=null==t;t=t||new Map;let s=0;for(let i in this){if(!Object.prototype.hasOwnProperty.call(this,i))continue;if("parent"===i||"proxyCache"===i)continue;let e=this[i];if(Array.isArray(e))r[i]=e.map(e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e);else if("object"==typeof e&&e.toJSON)r[i]=e.toJSON(null,t);else if("source"===i){let n=t.get(e.input);null==n&&(n=s,t.set(e.input,s),s++),r[i]={end:e.end,inputId:n,start:e.start}}else r[i]=e}return n&&(r.inputs=[...t.keys()].map(e=>e.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Ud){e.stringify&&(e=e.stringify);let t="";return e(this,e=>{t+=e}),t}warn(e,t,r){let n={node:this};for(let s in r)n[s]=r[s];return e.warn(t,n)}get proxyOf(){return this}};var qd=Wd;Wd.default=Wd;let Yd=qd,Zd=class extends Yd{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]}};var Gd=Zd;Zd.default=Zd;var Jd={nanoid:(e=21)=>{let t="",r=e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t}};let{SourceMapConsumer:$d,SourceMapGenerator:Hd}=Id,{existsSync:Xd,readFileSync:Kd}=Id,{dirname:Qd,join:ep}=Id;let tp=class{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,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Qd(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new $d(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))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var t;let r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)}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()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}loadFile(e){if(this.root=Qd(e),Xd(e))return this.mapFile=e,Kd(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof $d)return Hd.fromSourceMap(t).toString();if(t instanceof Hd)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let r=t(e);if(r){let e=this.loadFile(r);if(!e)throw new Error("Unable to load previous source map: "+r.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;return e&&(t=ep(Qd(e),t)),this.loadFile(t)}}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var rp=tp;tp.default=tp;let{SourceMapConsumer:np,SourceMapGenerator:sp}=Id,{fileURLToPath:ip,pathToFileURL:op}=Id,{isAbsolute:ap,resolve:lp}=Id,{nanoid:cp}=Jd,hp=Id,up=Rd,dp=rp,pp=Symbol("fromOffsetCache"),mp=Boolean(np&&sp),fp=Boolean(lp&&ap),gp=class{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new 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&&(!fp||/^\w+:\/\//.test(t.from)||ap(t.from)?this.file=t.from:this.file=lp(t.from)),fp&&mp){let e=new dp(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 "+cp(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,n={}){let s,i,o;if(t&&"object"==typeof t){let e=t,n=r;if("number"==typeof e.offset){let n=this.fromOffset(e.offset);t=n.line,r=n.col}else t=e.line,r=e.column;if("number"==typeof n.offset){let e=this.fromOffset(n.offset);i=e.line,o=e.col}else i=n.line,o=n.column}else if(!r){let e=this.fromOffset(t);t=e.line,r=e.col}let a=this.origin(t,r,i,o);return s=a?new up(e,void 0===a.endLine?a.line:{column:a.column,line:a.line},void 0===a.endLine?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,n.plugin):new up(e,void 0===i?t:{column:r,line:t},void 0===i?r:{column:o,line:i},this.css,this.file,n.plugin),s.input={column:r,endColumn:o,endLine:i,line:t,source:this.css},this.file&&(op&&(s.input.url=op(this.file).toString()),s.input.file=this.file),s}fromOffset(e){let t,r;if(this[pp])r=this[pp];else{let e=this.css.split("\n");r=new Array(e.length);let t=0;for(let n=0,s=e.length;n<s;n++)r[n]=t,t+=e[n].length+1;this[pp]=r}t=r[r.length-1];let n=0;if(e>=t)n=r.length-1;else{let t,s=r.length-2;for(;n<s;)if(t=n+(s-n>>1),e<r[t])s=t-1;else{if(!(e>=r[t+1])){n=t;break}n=t+1}}return{col:e-r[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:lp(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,n){if(!this.map)return!1;let s,i,o=this.map.consumer(),a=o.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(s=o.originalPositionFor({column:n,line:r})),i=ap(a.source)?op(a.source):new URL(a.source,this.map.consumer().sourceRoot||op(this.map.mapFile));let l={column:a.column,endColumn:s&&s.column,endLine:s&&s.line,line:a.line,url:i.toString()};if("file:"===i.protocol){if(!ip)throw new Error("file: protocol is not available in this PostCSS build");l.file=ip(i)}let c=o.sourceContentFor(a.source);return c&&(l.source=c),l}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}};var yp=gp;gp.default=gp,hp&&hp.registerInput&&hp.registerInput(gp);let{SourceMapConsumer:bp,SourceMapGenerator:wp}=Id,{dirname:kp,relative:vp,resolve:Sp,sep:Cp}=Id,{pathToFileURL:xp}=Id,Ip=yp,Op=Boolean(bp&&wp),Ap=Boolean(kp&&Sp&&vp&&Cp);var Ep=class{constructor(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,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 e of this.previous()){let t,r=this.toUrl(this.path(e.file)),n=e.root||kp(e.file);!1===this.mapOpts.sourcesContent?(t=new bp(e.text),t.sourcesContent&&(t.sourcesContent=null)):t=e.consumer(),this.map.applySourceMap(t,r,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--)e=this.root.nodes[t],"comment"===e.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(),Ap&&Op&&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=wp.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new wp({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new wp({file:this.outputFile(),ignoreInvalidMapping:!0});let e,t,r=1,n=1,s="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(o,a,l)=>{if(this.css+=o,a&&"end"!==l&&(i.generated.line=r,i.generated.column=n-1,a.source&&a.source.start?(i.source=this.sourcePath(a),i.original.line=a.source.start.line,i.original.column=a.source.start.column-1,this.map.addMapping(i)):(i.source=s,i.original.line=1,i.original.column=0,this.map.addMapping(i))),e=o.match(/\n/g),e?(r+=e.length,t=o.lastIndexOf("\n"),n=o.length-t):n+=o.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?(i.source=this.sourcePath(a),i.original.line=a.source.end.line,i.original.column=a.source.end.column-1,i.generated.line=r,i.generated.column=n-2,this.map.addMapping(i)):(i.source=s,i.original.line=1,i.original.column=0,i.generated.line=r,i.generated.column=n-1,this.map.addMapping(i)))}})}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)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?kp(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=kp(Sp(r,this.mapOpts.annotation)));let n=vp(r,e);return this.memoizedPaths.set(e,n),n}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 Ip(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 n=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(n,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 Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(xp){let t=xp(e).toString();return this.memoizedFileURLs.set(e,t),t}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===Cp&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};let Rp=qd,Mp=class extends Rp{constructor(e){super(e),this.type="comment"}};var jp=Mp;Mp.default=Mp;let zp,Np,_p,Tp,{isClean:Pp,my:Lp}=Md,Fp=Gd,Dp=jp,Bp=qd;function Up(e){return e.map(e=>(e.nodes&&(e.nodes=Up(e.nodes)),delete e.source,e))}function Vp(e){if(e[Pp]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)Vp(t)}let Wp=class e extends Bp{append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t,r,n=this.getIterator();for(;this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],r=e(this.proxyOf.nodes[t],t),!1!==r);)this.indexes[n]+=1;return delete this.indexes[n],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)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...r)=>e[t](...r.map(e=>"function"==typeof e?(t,r)=>e(t.toProxy(),r):e)):"every"===t||"some"===t?r=>e[t]((e,...t)=>r(e.toProxy(),...t)):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map(e=>e.toProxy()):"first"===t||"last"===t?e[t].toProxy():e[t]: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,n=this.index(e),s=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let i of s)this.proxyOf.nodes.splice(n+1,0,i);for(let i in this.indexes)r=this.indexes[i],n<r&&(this.indexes[i]=r+s.length);return this.markDirty(),this}insertBefore(e,t){let r,n=this.index(e),s=0===n&&"prepend",i=this.normalize(t,this.proxyOf.nodes[n],s).reverse();n=this.index(e);for(let o of i)this.proxyOf.nodes.splice(n,0,o);for(let o in this.indexes)r=this.indexes[o],n<=r&&(this.indexes[o]=r+i.length);return this.markDirty(),this}normalize(t,r){if("string"==typeof t)t=Up(zp(t).nodes);else if(void 0===t)t=[];else if(Array.isArray(t)){t=t.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if("root"===t.type&&"document"!==this.type){t=t.nodes.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if(t.type)t=[t];else if(t.prop){if(void 0===t.value)throw new Error("Value field is missed in node creation");"string"!=typeof t.value&&(t.value=String(t.value)),t=[new Fp(t)]}else if(t.selector)t=[new Np(t)];else if(t.name)t=[new _p(t)];else{if(!t.text)throw new Error("Unknown node type in node creation");t=[new Dp(t)]}return t.map(t=>(t[Lp]||e.rebuild(t),(t=t.proxyOf).parent&&t.parent.removeChild(t),t[Pp]&&Vp(t),void 0===t.raws.before&&r&&void 0!==r.raws.before&&(t.raws.before=r.raws.before.replace(/\S/g,"")),t.parent=this.proxyOf,t))}prepend(...e){e=e.reverse();for(let t of e){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;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(n=>{t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let n;try{n=e(t,r)}catch(s){throw t.addToError(s)}return!1!==n&&t.walk&&(n=t.walk(e)),n})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk((r,n)=>{if("atrule"===r.type&&r.name===e)return t(r,n)}):(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,n)=>{if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk((r,n)=>{if("decl"===r.type&&r.prop===e)return t(r,n)}):(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,n)=>{if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk((r,n)=>{if("rule"===r.type&&r.selector===e)return t(r,n)}):(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]}};Wp.registerParse=e=>{zp=e},Wp.registerRule=e=>{Np=e},Wp.registerAtRule=e=>{_p=e},Wp.registerRoot=e=>{Tp=e};var qp=Wp;Wp.default=Wp,Wp.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,_p.prototype):"rule"===e.type?Object.setPrototypeOf(e,Np.prototype):"decl"===e.type?Object.setPrototypeOf(e,Fp.prototype):"comment"===e.type?Object.setPrototypeOf(e,Dp.prototype):"root"===e.type&&Object.setPrototypeOf(e,Tp.prototype),e[Lp]=!0,e.nodes&&e.nodes.forEach(e=>{Wp.rebuild(e)})};let Yp,Zp,Gp=qp,Jp=class extends Gp{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Yp(new Zp,this,e).stringify()}};Jp.registerLazyResult=e=>{Yp=e},Jp.registerProcessor=e=>{Zp=e};var $p=Jp;Jp.default=Jp;let Hp={};var Xp=function(e){Hp[e]||(Hp[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))};let Kp=class{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 r in t)this[r]=t[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var Qp=Kp;Kp.default=Kp;let em=Qp,tm=class{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(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new em(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>"warning"===e.type)}get content(){return this.css}};var rm=tm;tm.default=tm;const nm="'".charCodeAt(0),sm='"'.charCodeAt(0),im="\\".charCodeAt(0),om="/".charCodeAt(0),am="\n".charCodeAt(0),lm=" ".charCodeAt(0),cm="\f".charCodeAt(0),hm="\t".charCodeAt(0),um="\r".charCodeAt(0),dm="[".charCodeAt(0),pm="]".charCodeAt(0),mm="(".charCodeAt(0),fm=")".charCodeAt(0),gm="{".charCodeAt(0),ym="}".charCodeAt(0),bm=";".charCodeAt(0),wm="*".charCodeAt(0),km=":".charCodeAt(0),vm="@".charCodeAt(0),Sm=/[\t\n\f\r "#'()/;[\\\]{}]/g,Cm=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,xm=/.[\r\n"'(/\\]/,Im=/[\da-f]/i;let Om=qp,Am=class extends Om{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var Em=Am;Am.default=Am,Om.registerAtRule(Am);let Rm,Mm,jm=qp,zm=class extends jm{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let n=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 s of n)s.raws.before=t.raws.before;return n}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(e={}){return new Rm(new Mm,this,e).stringify()}};zm.registerLazyResult=e=>{Rm=e},zm.registerProcessor=e=>{Mm=e};var Nm=zm;zm.default=zm,jm.registerRoot(zm);let _m={comma:e=>_m.split(e,[","],!0),space:e=>_m.split(e,[" ","\n","\t"]),split(e,t,r){let n=[],s="",i=!1,o=0,a=!1,l="",c=!1;for(let h of e)c?c=!1:"\\"===h?c=!0:a?h===l&&(a=!1):'"'===h||"'"===h?(a=!0,l=h):"("===h?o+=1:")"===h?o>0&&(o-=1):0===o&&t.includes(h)&&(i=!0),i?(""!==s&&n.push(s.trim()),s="",i=!1):s+=h;return(r||""!==s)&&n.push(s.trim()),n}};var Tm=_m;_m.default=_m;let Pm=qp,Lm=Tm,Fm=class extends Pm{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Lm.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)}};var Dm=Fm;Fm.default=Fm,Pm.registerRule(Fm);let Bm=Gd,Um=function(e,t={}){let r,n,s,i,o,a,l,c,h,u,d=e.css.valueOf(),p=t.ignoreErrors,m=d.length,f=0,g=[],y=[];function b(t){throw e.error("Unclosed "+t,f)}return{back:function(e){y.push(e)},endOfFile:function(){return 0===y.length&&f>=m},nextToken:function(e){if(y.length)return y.pop();if(f>=m)return;let t=!!e&&e.ignoreUnclosed;switch(r=d.charCodeAt(f),r){case am:case lm:case hm:case um:case cm:n=f;do{n+=1,r=d.charCodeAt(n)}while(r===lm||r===am||r===hm||r===um||r===cm);u=["space",d.slice(f,n)],f=n-1;break;case dm:case pm:case gm:case ym:case km:case bm:case fm:{let e=String.fromCharCode(r);u=[e,e,f];break}case mm:if(c=g.length?g.pop()[1]:"",h=d.charCodeAt(f+1),"url"===c&&h!==nm&&h!==sm&&h!==lm&&h!==am&&h!==hm&&h!==cm&&h!==um){n=f;do{if(a=!1,n=d.indexOf(")",n+1),-1===n){if(p||t){n=f;break}b("bracket")}for(l=n;d.charCodeAt(l-1)===im;)l-=1,a=!a}while(a);u=["brackets",d.slice(f,n+1),f,n],f=n}else n=d.indexOf(")",f+1),i=d.slice(f,n+1),-1===n||xm.test(i)?u=["(","(",f]:(u=["brackets",i,f,n],f=n);break;case nm:case sm:s=r===nm?"'":'"',n=f;do{if(a=!1,n=d.indexOf(s,n+1),-1===n){if(p||t){n=f+1;break}b("string")}for(l=n;d.charCodeAt(l-1)===im;)l-=1,a=!a}while(a);u=["string",d.slice(f,n+1),f,n],f=n;break;case vm:Sm.lastIndex=f+1,Sm.test(d),n=0===Sm.lastIndex?d.length-1:Sm.lastIndex-2,u=["at-word",d.slice(f,n+1),f,n],f=n;break;case im:for(n=f,o=!0;d.charCodeAt(n+1)===im;)n+=1,o=!o;if(r=d.charCodeAt(n+1),o&&r!==om&&r!==lm&&r!==am&&r!==hm&&r!==um&&r!==cm&&(n+=1,Im.test(d.charAt(n)))){for(;Im.test(d.charAt(n+1));)n+=1;d.charCodeAt(n+1)===lm&&(n+=1)}u=["word",d.slice(f,n+1),f,n],f=n;break;default:r===om&&d.charCodeAt(f+1)===wm?(n=d.indexOf("*/",f+2)+1,0===n&&(p||t?n=d.length:b("comment")),u=["comment",d.slice(f,n+1),f,n],f=n):(Cm.lastIndex=f+1,Cm.test(d),n=0===Cm.lastIndex?d.length-1:Cm.lastIndex-2,u=["word",d.slice(f,n+1),f,n],g.push(u),f=n)}return f++,u},position:function(){return f}}},Vm=jp,Wm=Em,qm=Nm,Ym=Dm;const Zm={empty:!0,space:!0};let Gm=qp,Jm=class{constructor(e){this.input=e,this.root=new qm,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,n,s=new Wm;s.name=e[1].slice(1),""===s.name&&this.unnamedAtrule(s,e),this.init(s,e[2]);let i=!1,o=!1,a=[],l=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?l.push("("===t?")":"]"):"{"===t&&l.length>0?l.push("}"):t===l[l.length-1]&&l.pop(),0===l.length){if(";"===t){s.source.end=this.getPosition(e[2]),s.source.end.offset++,this.semicolon=!0;break}if("{"===t){o=!0;break}if("}"===t){if(a.length>0){for(n=a.length-1,r=a[n];r&&"space"===r[0];)r=a[--n];r&&(s.source.end=this.getPosition(r[3]||r[2]),s.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){i=!0;break}}s.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(s.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(s,"params",a),i&&(e=a[a.length-1],s.source.end=this.getPosition(e[3]||e[2]),s.source.end.offset++,this.spaces=s.raws.between,s.raws.between="")):(s.raws.afterName="",s.params=""),o&&(s.nodes=[],this.current=s)}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let r,n=0;for(let s=t-1;s>=0&&(r=e[s],"space"===r[0]||(n+=1,2!==n));s--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}colon(e){let t,r,n,s=0;for(let[i,o]of e.entries()){if(t=o,r=t[0],"("===r&&(s+=1),")"===r&&(s-=1),0===s&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return i}this.doubleColon(t)}n=t}return!1}comment(e){let t=new Vm;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=Um(this.input)}decl(e,t){let r=new Bm;this.init(r,e[0][2]);let n,s=e[e.length-1];for(";"===s[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(s[3]||s[2]||function(e){for(let t=e.length-1;t>=0;t--){let r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(n=e.shift(),":"===n[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let i,o=[];for(;e.length&&(i=e[0][0],"space"===i||"comment"===i);)o.push(e.shift());this.precheckMissedSemicolon(e);for(let a=e.length-1;a>=0;a--){if(n=e[a],"!important"===n[1].toLowerCase()){r.important=!0;let t=this.stringFrom(e,a);t=this.spacesFromEnd(e)+t," !important"!==t&&(r.raws.important=t);break}if("important"===n[1].toLowerCase()){let t=e.slice(0),n="";for(let e=a;e>0;e--){let r=t[e][0];if(0===n.trim().indexOf("!")&&"space"!==r)break;n=t.pop()[1]+n}0===n.trim().indexOf("!")&&(r.important=!0,r.raws.important=n,e=t)}if("space"!==n[0]&&"comment"!==n[0])break}e.some(e=>"space"!==e[0]&&"comment"!==e[0])&&(r.raws.between+=o.map(e=>e[1]).join(""),o=[]),this.raw(r,"value",o.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new Ym;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,n=!1,s=null,i=[],o=e[1].startsWith("--"),a=[],l=e;for(;l;){if(r=l[0],a.push(l),"("===r||"["===r)s||(s=l),i.push("("===r?")":"]");else if(o&&n&&"{"===r)s||(s=l),i.push("}");else if(0===i.length){if(";"===r){if(n)return void this.decl(a,o);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===i[i.length-1]&&(i.pop(),0===i.length&&(s=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),i.length>0&&this.unclosedBracket(s),t&&n){if(!o)for(;a.length&&(l=a[a.length-1][0],"space"===l||"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(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,n){let s,i,o,a,l=r.length,c="",h=!0;for(let u=0;u<l;u+=1)s=r[u],i=s[0],"space"!==i||u!==l-1||n?"comment"===i?(a=r[u-1]?r[u-1][0]:"empty",o=r[u+1]?r[u+1][0]:"empty",Zm[a]||Zm[o]||","===c.slice(-1)?h=!1:c+=s[1]):c+=s[1]:h=!1;if(!h){let n=r.reduce((e,t)=>e+t[1],"");e.raws[t]={raw:n,value:c}}e[t]=c}rule(e){e.pop();let t=new Ym;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let n=t;n<e.length;n++)r+=e[n][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})}},$m=yp;function Hm(e,t){let r=new $m(e,t),n=new Jm(r);try{n.parse()}catch(s){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===s.name&&t&&t.from&&(/\.scss$/i.test(t.from)?s.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(t.from)?s.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(t.from)&&(s.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),s}return n.root}var Xm=Hm;Hm.default=Hm,Gm.registerParse(Hm);let{isClean:Km,my:Qm}=Md,ef=Ep,tf=Pd,rf=qp,nf=$p,sf=Xp,of=rm,af=Xm,lf=Nm;const cf={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},hf={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},uf={Once:!0,postcssPlugin:!0,prepare:!0};function df(e){return"object"==typeof e&&"function"==typeof e.then}function pf(e){let t=!1,r=cf[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 mf(e){let t;return t="document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:pf(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function ff(e){return e[Km]=!1,e.nodes&&e.nodes.forEach(e=>ff(e)),e}let gf={},yf=class e{constructor(t,r,n){let s;if(this.stringified=!1,this.processed=!1,"object"!=typeof r||null===r||"root"!==r.type&&"document"!==r.type)if(r instanceof e||r instanceof of)s=ff(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{let e=af;n.syntax&&(e=n.syntax.parse),n.parser&&(e=n.parser),e.parse&&(e=e.parse);try{s=e(r,n)}catch(i){this.processed=!0,this.error=i}s&&!s[Qm]&&rf.rebuild(s)}else s=ff(r);this.result=new of(t,s,n),this.helpers={...gf,postcss:gf,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 new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion&&"production"!==process.env.NODE_ENV){let e=r.postcssPlugin,t=r.postcssVersion,n=this.result.processor.version,s=t.split("."),i=n.split(".");(s[0]!==i[0]||parseInt(s[1])>parseInt(i[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+n+", but "+e+" uses "+t+". Perhaps this is the source of the error below.")}}else e.plugin=r.postcssPlugin,e.setMessage()}catch(Hk){console&&console.error&&console.error(Hk)}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(!hf[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!uf[r])if("object"==typeof t[r])for(let n in t[r])e(t,"*"===n?r:r+"-"+n.toLowerCase(),t[r][n]);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 r=0;r<this.plugins.length;r++){let t=this.plugins[r],n=this.runOnRoot(t);if(df(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Km];){e[Km]=!0;let r=[mf(e)];for(;r.length>0;){let e=this.visitTick(r);if(df(e))try{await e}catch(t){let e=r[r.length-1].node;throw this.handleError(t,e)}}}if(this.listeners.OnceExit)for(let[r,n]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if("document"===e.type){let t=e.nodes.map(e=>n(e,this.helpers));await Promise.all(t)}else await n(e,this.helpers)}catch(t){throw this.handleError(t)}}}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));return df(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=tf;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new ef(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[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(df(this.runOnRoot(e)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Km];)e[Km]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return"production"!==process.env.NODE_ENV&&("from"in this.opts||sf("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,s]of e){let e;this.result.lastPlugin=n;try{e=s(t,this.helpers)}catch(r){throw this.handleError(r,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(df(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:n}=t;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(n.length>0&&t.visitorIndex<n.length){let[e,s]=n[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return s(r.toProxy(),this.helpers)}catch(i){throw this.handleError(i,r)}}if(0!==t.iterator){let n,s=t.iterator;for(;n=r.nodes[r.indexes[s]];)if(r.indexes[s]+=1,!n[Km])return n[Km]=!0,void e.push(mf(n));t.iterator=0,delete r.indexes[s]}let s=t.events;for(;t.eventIndex<s.length;){let e=s[t.eventIndex];if(t.eventIndex+=1,0===e)return void(r.nodes&&r.nodes.length&&(r[Km]=!0,t.iterator=r.getIterator()));if(this.listeners[e])return void(t.visitors=this.listeners[e])}e.pop()}walkSync(e){e[Km]=!0;let t=pf(e);for(let r of t)if(0===r)e.nodes&&e.each(e=>{e[Km]||this.walkSync(e)});else{let t=this.listeners[r];if(t&&this.visitSync(t,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};yf.registerPostcss=e=>{gf=e};var bf=yf;yf.default=yf,lf.registerLazyResult(yf),nf.registerLazyResult(yf);let wf=Ep,kf=Pd,vf=Xp,Sf=Xm;const Cf=rm;let xf=class{constructor(e,t,r){let n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let s=kf;this.result=new Cf(this._processor,n,this._opts),this.result.css=t;let i=this;Object.defineProperty(this.result,"root",{get:()=>i.root});let o=new wf(s,n,this._opts,t);if(o.isMap()){let[e,t]=o.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else o.clearAnnotation(),this.result.css=o.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"production"!==process.env.NODE_ENV&&("from"in this._opts||vf("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=Sf;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var If=xf;xf.default=xf;let Of=If,Af=bf,Ef=$p,Rf=Nm,Mf=class{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)throw new Error(r+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new Af(this,e,t):new Of(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var jf=Mf;Mf.default=Mf,Rf.registerProcessor(Mf),Ef.registerProcessor(Mf);let zf=Gd,Nf=rp,_f=jp,Tf=Em,Pf=yp,Lf=Nm,Ff=Dm;function Df(e,t){if(Array.isArray(e))return e.map(e=>Df(e));let{inputs:r,...n}=e;if(r){t=[];for(let e of r){let r={...e,__proto__:Pf.prototype};r.map&&(r.map={...r.map,__proto__:Nf.prototype}),t.push(r)}}if(n.nodes&&(n.nodes=e.nodes.map(e=>Df(e,t))),n.source){let{inputId:e,...r}=n.source;n.source=r,null!=e&&(n.source.input=t[e])}if("root"===n.type)return new Lf(n);if("decl"===n.type)return new zf(n);if("rule"===n.type)return new Ff(n);if("comment"===n.type)return new _f(n);if("atrule"===n.type)return new Tf(n);throw new Error("Unknown node type: "+e.type)}var Bf=Df;Df.default=Df;let Uf=Rd,Vf=Gd,Wf=bf,qf=qp,Yf=jf,Zf=Pd,Gf=Bf,Jf=$p,$f=Qp,Hf=jp,Xf=Em,Kf=rm,Qf=yp,eg=Xm,tg=Tm,rg=Dm,ng=Nm,sg=qd;function ig(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new Yf(e)}ig.plugin=function(e,t){let r,n=!1;function s(...r){console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let s=t(...r);return s.postcssPlugin=e,s.postcssVersion=(new Yf).version,s}return Object.defineProperty(s,"postcss",{get:()=>(r||(r=s()),r)}),s.process=function(e,t,r){return ig([s(r)]).process(e,t)},s},ig.stringify=Zf,ig.parse=eg,ig.fromJSON=Gf,ig.list=tg,ig.comment=e=>new Hf(e),ig.atRule=e=>new Xf(e),ig.decl=e=>new Vf(e),ig.rule=e=>new rg(e),ig.root=e=>new ng(e),ig.document=e=>new Jf(e),ig.CssSyntaxError=Uf,ig.Declaration=Vf,ig.Container=qf,ig.Processor=Yf,ig.Document=Jf,ig.Comment=Hf,ig.Warning=$f,ig.AtRule=Xf,ig.Result=Kf,ig.Input=Qf,ig.Rule=rg,ig.Root=ng,ig.Node=sg,Wf.registerPostcss(ig);var og=ig;ig.default=ig;const ag=wd(og);ag.stringify,ag.fromJSON,ag.plugin,ag.parse,ag.list,ag.document,ag.comment,ag.atRule,ag.rule,ag.decl,ag.root,ag.CssSyntaxError,ag.Declaration,ag.Container,ag.Processor,ag.Document,ag.Comment,ag.Warning,ag.AtRule,ag.Result,ag.Input,ag.Rule,ag.Root,ag.Node;var lg=Object.defineProperty,cg=(e,t,r)=>((e,t,r)=>t in e?lg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r);function hg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ug(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 n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var dg={exports:{}},pg=String,mg=function(){return{isColorSupported:!1,reset:pg,bold:pg,dim:pg,italic:pg,underline:pg,inverse:pg,hidden:pg,strikethrough:pg,black:pg,red:pg,green:pg,yellow:pg,blue:pg,magenta:pg,cyan:pg,white:pg,gray:pg,bgBlack:pg,bgRed:pg,bgGreen:pg,bgYellow:pg,bgBlue:pg,bgMagenta:pg,bgCyan:pg,bgWhite:pg}};dg.exports=mg(),dg.exports.createColors=mg;var fg=dg.exports;const gg=ug(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));let yg=fg,bg=gg,wg=class e extends Error{constructor(t,r,n,s,i,o){super(t),this.name="CssSyntaxError",this.reason=t,i&&(this.file=i),s&&(this.source=s),o&&(this.plugin=o),void 0!==r&&void 0!==n&&("number"==typeof r?(this.line=r,this.column=n):(this.line=r.line,this.column=r.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}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(e){if(!this.source)return"";let t=this.source;null==e&&(e=yg.isColorSupported),bg&&e&&(t=bg(t));let r,n,s=t.split(/\r?\n/),i=Math.max(this.line-3,0),o=Math.min(this.line+2,s.length),a=String(o).length;if(e){let{bold:e,gray:t,red:s}=yg.createColors(!0);r=t=>e(s(t)),n=e=>t(e)}else r=n=e=>e;return s.slice(i,o).map((e,t)=>{let s=i+1+t,o=" "+(" "+s).slice(-a)+" | ";if(s===this.line){let t=n(o.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return r(">")+n(o)+e+"\n "+t+r("^")}return" "+n(o)+e}).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}};var kg=wg;wg.default=wg;var vg={};vg.isClean=Symbol("isClean"),vg.my=Symbol("my");const Sg={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};let Cg=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{let s=(e.raws.between||"")+(t?";":"");this.builder(r+n+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 n=e.parent,s=0;for(;n&&"root"!==n.type;)s+=1,n=n.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,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",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 n=0;n<e.nodes.length;n++){let s=e.nodes[n],i=this.raw(s,"before");i&&this.builder(i),this.stringify(s,t!==n||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"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)}document(e){this.body(e)}raw(e,t,r){let n;if(r||(r=t),t&&(n=e.raws[t],void 0!==n))return n;let s=e.parent;if("before"===r){if(!s||"root"===s.type&&s.first===e)return"";if(s&&"document"===s.type)return""}if(!s)return Sg[r];let i=e.root();if(i.rawCache||(i.rawCache={}),void 0!==i.rawCache[r])return i.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);{let s="raw"+((o=r)[0].toUpperCase()+o.slice(1));this[s]?n=this[s](i,e):i.walk(e=>{if(n=e.raws[t],void 0!==n)return!1})}var o;return void 0===n&&(n=Sg[r]),i.rawCache[r]=n,n}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,t.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,r.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,r.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&&(t=e.raws.between,void 0!==t))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,t.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&&(t=e.raws.after,void 0!==t))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(r=>{let n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){let e=r.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1}),t}rawValue(e,t){let r=e[t],n=e.raws[t];return n&&n.value===r?n.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 new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};var xg=Cg;Cg.default=Cg;let Ig=xg;function Og(e,t){new Ig(t).stringify(e)}var Ag=Og;Og.default=Og;let{isClean:Eg,my:Rg}=vg,Mg=kg,jg=xg,zg=Ag;function Ng(e,t){let r=new e.constructor;for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;if("proxyCache"===n)continue;let s=e[n],i=typeof s;"parent"===n&&"object"===i?t&&(r[n]=t):"source"===n?r[n]=s:Array.isArray(s)?r[n]=s.map(e=>Ng(e,r)):("object"===i&&null!==s&&(s=Ng(s)),r[n]=s)}return r}let _g=class{constructor(e={}){this.raws={},this[Eg]=!1,this[Rg]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let r of e[t])"function"==typeof r.clone?this.append(r.clone()):this.append(r)}else this[t]=e[t]}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=Ng(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:n}=this.rangeBy(t);return this.source.input.error(e,{column:n.column,line:n.line},{column:r.column,line:r.line},t)}return new Mg(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[Eg]){this[Eg]=!1;let e=this;for(;e=e.parent;)e[Eg]=!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 n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r}positionInside(e,t){let r=t||this.toString(),n=this.source.start.column,s=this.source.start.line;for(let i=0;i<e;i++)"\n"===r[i]?(n=1,s+=1):n+=1;return{column:n,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 n=this.toString(),s=n.indexOf(e.word);-1!==s&&(t=this.positionInside(s,n),r=this.positionInside(s+e.word.length,n))}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 jg).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 n of e)n===this?r=!0:r?(this.parent.insertAfter(t,n),t=n):this.parent.insertBefore(t,n);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={},n=null==t;t=t||new Map;let s=0;for(let i in this){if(!Object.prototype.hasOwnProperty.call(this,i))continue;if("parent"===i||"proxyCache"===i)continue;let e=this[i];if(Array.isArray(e))r[i]=e.map(e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e);else if("object"==typeof e&&e.toJSON)r[i]=e.toJSON(null,t);else if("source"===i){let n=t.get(e.input);null==n&&(n=s,t.set(e.input,s),s++),r[i]={end:e.end,inputId:n,start:e.start}}else r[i]=e}return n&&(r.inputs=[...t.keys()].map(e=>e.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=zg){e.stringify&&(e=e.stringify);let t="";return e(this,e=>{t+=e}),t}warn(e,t,r){let n={node:this};for(let s in r)n[s]=r[s];return e.warn(t,n)}get proxyOf(){return this}};var Tg=_g;_g.default=_g;let Pg=Tg,Lg=class extends Pg{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]}};var Fg=Lg;Lg.default=Lg;var Dg={nanoid:(e=21)=>{let t="",r=e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t}};let{SourceMapConsumer:Bg,SourceMapGenerator:Ug}=gg,{existsSync:Vg,readFileSync:Wg}=gg,{dirname:qg,join:Yg}=gg;let Zg=class{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,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=qg(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new Bg(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))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var t;let r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)}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()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}loadFile(e){if(this.root=qg(e),Vg(e))return this.mapFile=e,Wg(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof Bg)return Ug.fromSourceMap(t).toString();if(t instanceof Ug)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let r=t(e);if(r){let e=this.loadFile(r);if(!e)throw new Error("Unable to load previous source map: "+r.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;return e&&(t=Yg(qg(e),t)),this.loadFile(t)}}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var Gg=Zg;Zg.default=Zg;let{SourceMapConsumer:Jg,SourceMapGenerator:$g}=gg,{fileURLToPath:Hg,pathToFileURL:Xg}=gg,{isAbsolute:Kg,resolve:Qg}=gg,{nanoid:ey}=Dg,ty=gg,ry=kg,ny=Gg,sy=Symbol("fromOffsetCache"),iy=Boolean(Jg&&$g),oy=Boolean(Qg&&Kg),ay=class{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new 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&&(!oy||/^\w+:\/\//.test(t.from)||Kg(t.from)?this.file=t.from:this.file=Qg(t.from)),oy&&iy){let e=new ny(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 "+ey(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,n={}){let s,i,o;if(t&&"object"==typeof t){let e=t,n=r;if("number"==typeof e.offset){let n=this.fromOffset(e.offset);t=n.line,r=n.col}else t=e.line,r=e.column;if("number"==typeof n.offset){let e=this.fromOffset(n.offset);i=e.line,o=e.col}else i=n.line,o=n.column}else if(!r){let e=this.fromOffset(t);t=e.line,r=e.col}let a=this.origin(t,r,i,o);return s=a?new ry(e,void 0===a.endLine?a.line:{column:a.column,line:a.line},void 0===a.endLine?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,n.plugin):new ry(e,void 0===i?t:{column:r,line:t},void 0===i?r:{column:o,line:i},this.css,this.file,n.plugin),s.input={column:r,endColumn:o,endLine:i,line:t,source:this.css},this.file&&(Xg&&(s.input.url=Xg(this.file).toString()),s.input.file=this.file),s}fromOffset(e){let t,r;if(this[sy])r=this[sy];else{let e=this.css.split("\n");r=new Array(e.length);let t=0;for(let n=0,s=e.length;n<s;n++)r[n]=t,t+=e[n].length+1;this[sy]=r}t=r[r.length-1];let n=0;if(e>=t)n=r.length-1;else{let t,s=r.length-2;for(;n<s;)if(t=n+(s-n>>1),e<r[t])s=t-1;else{if(!(e>=r[t+1])){n=t;break}n=t+1}}return{col:e-r[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:Qg(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,n){if(!this.map)return!1;let s,i,o=this.map.consumer(),a=o.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(s=o.originalPositionFor({column:n,line:r})),i=Kg(a.source)?Xg(a.source):new URL(a.source,this.map.consumer().sourceRoot||Xg(this.map.mapFile));let l={column:a.column,endColumn:s&&s.column,endLine:s&&s.line,line:a.line,url:i.toString()};if("file:"===i.protocol){if(!Hg)throw new Error("file: protocol is not available in this PostCSS build");l.file=Hg(i)}let c=o.sourceContentFor(a.source);return c&&(l.source=c),l}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}};var ly=ay;ay.default=ay,ty&&ty.registerInput&&ty.registerInput(ay);let{SourceMapConsumer:cy,SourceMapGenerator:hy}=gg,{dirname:uy,relative:dy,resolve:py,sep:my}=gg,{pathToFileURL:fy}=gg,gy=ly,yy=Boolean(cy&&hy),by=Boolean(uy&&py&&dy&&my);var wy=class{constructor(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,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 e of this.previous()){let t,r=this.toUrl(this.path(e.file)),n=e.root||uy(e.file);!1===this.mapOpts.sourcesContent?(t=new cy(e.text),t.sourcesContent&&(t.sourcesContent=null)):t=e.consumer(),this.map.applySourceMap(t,r,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--)e=this.root.nodes[t],"comment"===e.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(),by&&yy&&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=hy.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new hy({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new hy({file:this.outputFile(),ignoreInvalidMapping:!0});let e,t,r=1,n=1,s="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(o,a,l)=>{if(this.css+=o,a&&"end"!==l&&(i.generated.line=r,i.generated.column=n-1,a.source&&a.source.start?(i.source=this.sourcePath(a),i.original.line=a.source.start.line,i.original.column=a.source.start.column-1,this.map.addMapping(i)):(i.source=s,i.original.line=1,i.original.column=0,this.map.addMapping(i))),e=o.match(/\n/g),e?(r+=e.length,t=o.lastIndexOf("\n"),n=o.length-t):n+=o.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?(i.source=this.sourcePath(a),i.original.line=a.source.end.line,i.original.column=a.source.end.column-1,i.generated.line=r,i.generated.column=n-2,this.map.addMapping(i)):(i.source=s,i.original.line=1,i.original.column=0,i.generated.line=r,i.generated.column=n-1,this.map.addMapping(i)))}})}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)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?uy(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=uy(py(r,this.mapOpts.annotation)));let n=dy(r,e);return this.memoizedPaths.set(e,n),n}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 gy(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 n=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(n,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 Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(fy){let t=fy(e).toString();return this.memoizedFileURLs.set(e,t),t}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===my&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};let ky=Tg,vy=class extends ky{constructor(e){super(e),this.type="comment"}};var Sy=vy;vy.default=vy;let Cy,xy,Iy,Oy,{isClean:Ay,my:Ey}=vg,Ry=Fg,My=Sy,jy=Tg;function zy(e){return e.map(e=>(e.nodes&&(e.nodes=zy(e.nodes)),delete e.source,e))}function Ny(e){if(e[Ay]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)Ny(t)}let _y=class e extends jy{append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t,r,n=this.getIterator();for(;this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],r=e(this.proxyOf.nodes[t],t),!1!==r);)this.indexes[n]+=1;return delete this.indexes[n],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)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...r)=>e[t](...r.map(e=>"function"==typeof e?(t,r)=>e(t.toProxy(),r):e)):"every"===t||"some"===t?r=>e[t]((e,...t)=>r(e.toProxy(),...t)):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map(e=>e.toProxy()):"first"===t||"last"===t?e[t].toProxy():e[t]: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,n=this.index(e),s=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let i of s)this.proxyOf.nodes.splice(n+1,0,i);for(let i in this.indexes)r=this.indexes[i],n<r&&(this.indexes[i]=r+s.length);return this.markDirty(),this}insertBefore(e,t){let r,n=this.index(e),s=0===n&&"prepend",i=this.normalize(t,this.proxyOf.nodes[n],s).reverse();n=this.index(e);for(let o of i)this.proxyOf.nodes.splice(n,0,o);for(let o in this.indexes)r=this.indexes[o],n<=r&&(this.indexes[o]=r+i.length);return this.markDirty(),this}normalize(t,r){if("string"==typeof t)t=zy(Cy(t).nodes);else if(void 0===t)t=[];else if(Array.isArray(t)){t=t.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if("root"===t.type&&"document"!==this.type){t=t.nodes.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if(t.type)t=[t];else if(t.prop){if(void 0===t.value)throw new Error("Value field is missed in node creation");"string"!=typeof t.value&&(t.value=String(t.value)),t=[new Ry(t)]}else if(t.selector)t=[new xy(t)];else if(t.name)t=[new Iy(t)];else{if(!t.text)throw new Error("Unknown node type in node creation");t=[new My(t)]}return t.map(t=>(t[Ey]||e.rebuild(t),(t=t.proxyOf).parent&&t.parent.removeChild(t),t[Ay]&&Ny(t),void 0===t.raws.before&&r&&void 0!==r.raws.before&&(t.raws.before=r.raws.before.replace(/\S/g,"")),t.parent=this.proxyOf,t))}prepend(...e){e=e.reverse();for(let t of e){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;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(n=>{t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let n;try{n=e(t,r)}catch(s){throw t.addToError(s)}return!1!==n&&t.walk&&(n=t.walk(e)),n})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk((r,n)=>{if("atrule"===r.type&&r.name===e)return t(r,n)}):(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,n)=>{if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk((r,n)=>{if("decl"===r.type&&r.prop===e)return t(r,n)}):(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,n)=>{if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk((r,n)=>{if("rule"===r.type&&r.selector===e)return t(r,n)}):(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]}};_y.registerParse=e=>{Cy=e},_y.registerRule=e=>{xy=e},_y.registerAtRule=e=>{Iy=e},_y.registerRoot=e=>{Oy=e};var Ty=_y;_y.default=_y,_y.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,Iy.prototype):"rule"===e.type?Object.setPrototypeOf(e,xy.prototype):"decl"===e.type?Object.setPrototypeOf(e,Ry.prototype):"comment"===e.type?Object.setPrototypeOf(e,My.prototype):"root"===e.type&&Object.setPrototypeOf(e,Oy.prototype),e[Ey]=!0,e.nodes&&e.nodes.forEach(e=>{_y.rebuild(e)})};let Py,Ly,Fy=Ty,Dy=class extends Fy{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Py(new Ly,this,e).stringify()}};Dy.registerLazyResult=e=>{Py=e},Dy.registerProcessor=e=>{Ly=e};var By=Dy;Dy.default=Dy;let Uy={};var Vy=function(e){Uy[e]||(Uy[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))};let Wy=class{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 r in t)this[r]=t[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var qy=Wy;Wy.default=Wy;let Yy=qy,Zy=class{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(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new Yy(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>"warning"===e.type)}get content(){return this.css}};var Gy=Zy;Zy.default=Zy;const Jy="'".charCodeAt(0),$y='"'.charCodeAt(0),Hy="\\".charCodeAt(0),Xy="/".charCodeAt(0),Ky="\n".charCodeAt(0),Qy=" ".charCodeAt(0),eb="\f".charCodeAt(0),tb="\t".charCodeAt(0),rb="\r".charCodeAt(0),nb="[".charCodeAt(0),sb="]".charCodeAt(0),ib="(".charCodeAt(0),ob=")".charCodeAt(0),ab="{".charCodeAt(0),lb="}".charCodeAt(0),cb=";".charCodeAt(0),hb="*".charCodeAt(0),ub=":".charCodeAt(0),db="@".charCodeAt(0),pb=/[\t\n\f\r "#'()/;[\\\]{}]/g,mb=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,fb=/.[\r\n"'(/\\]/,gb=/[\da-f]/i;let yb=Ty,bb=class extends yb{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var wb=bb;bb.default=bb,yb.registerAtRule(bb);let kb,vb,Sb=Ty,Cb=class extends Sb{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let n=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 s of n)s.raws.before=t.raws.before;return n}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(e={}){return new kb(new vb,this,e).stringify()}};Cb.registerLazyResult=e=>{kb=e},Cb.registerProcessor=e=>{vb=e};var xb=Cb;Cb.default=Cb,Sb.registerRoot(Cb);let Ib={comma:e=>Ib.split(e,[","],!0),space:e=>Ib.split(e,[" ","\n","\t"]),split(e,t,r){let n=[],s="",i=!1,o=0,a=!1,l="",c=!1;for(let h of e)c?c=!1:"\\"===h?c=!0:a?h===l&&(a=!1):'"'===h||"'"===h?(a=!0,l=h):"("===h?o+=1:")"===h?o>0&&(o-=1):0===o&&t.includes(h)&&(i=!0),i?(""!==s&&n.push(s.trim()),s="",i=!1):s+=h;return(r||""!==s)&&n.push(s.trim()),n}};var Ob=Ib;Ib.default=Ib;let Ab=Ty,Eb=Ob,Rb=class extends Ab{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Eb.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)}};var Mb=Rb;Rb.default=Rb,Ab.registerRule(Rb);let jb=Fg,zb=function(e,t={}){let r,n,s,i,o,a,l,c,h,u,d=e.css.valueOf(),p=t.ignoreErrors,m=d.length,f=0,g=[],y=[];function b(t){throw e.error("Unclosed "+t,f)}return{back:function(e){y.push(e)},endOfFile:function(){return 0===y.length&&f>=m},nextToken:function(e){if(y.length)return y.pop();if(f>=m)return;let t=!!e&&e.ignoreUnclosed;switch(r=d.charCodeAt(f),r){case Ky:case Qy:case tb:case rb:case eb:n=f;do{n+=1,r=d.charCodeAt(n)}while(r===Qy||r===Ky||r===tb||r===rb||r===eb);u=["space",d.slice(f,n)],f=n-1;break;case nb:case sb:case ab:case lb:case ub:case cb:case ob:{let e=String.fromCharCode(r);u=[e,e,f];break}case ib:if(c=g.length?g.pop()[1]:"",h=d.charCodeAt(f+1),"url"===c&&h!==Jy&&h!==$y&&h!==Qy&&h!==Ky&&h!==tb&&h!==eb&&h!==rb){n=f;do{if(a=!1,n=d.indexOf(")",n+1),-1===n){if(p||t){n=f;break}b("bracket")}for(l=n;d.charCodeAt(l-1)===Hy;)l-=1,a=!a}while(a);u=["brackets",d.slice(f,n+1),f,n],f=n}else n=d.indexOf(")",f+1),i=d.slice(f,n+1),-1===n||fb.test(i)?u=["(","(",f]:(u=["brackets",i,f,n],f=n);break;case Jy:case $y:s=r===Jy?"'":'"',n=f;do{if(a=!1,n=d.indexOf(s,n+1),-1===n){if(p||t){n=f+1;break}b("string")}for(l=n;d.charCodeAt(l-1)===Hy;)l-=1,a=!a}while(a);u=["string",d.slice(f,n+1),f,n],f=n;break;case db:pb.lastIndex=f+1,pb.test(d),n=0===pb.lastIndex?d.length-1:pb.lastIndex-2,u=["at-word",d.slice(f,n+1),f,n],f=n;break;case Hy:for(n=f,o=!0;d.charCodeAt(n+1)===Hy;)n+=1,o=!o;if(r=d.charCodeAt(n+1),o&&r!==Xy&&r!==Qy&&r!==Ky&&r!==tb&&r!==rb&&r!==eb&&(n+=1,gb.test(d.charAt(n)))){for(;gb.test(d.charAt(n+1));)n+=1;d.charCodeAt(n+1)===Qy&&(n+=1)}u=["word",d.slice(f,n+1),f,n],f=n;break;default:r===Xy&&d.charCodeAt(f+1)===hb?(n=d.indexOf("*/",f+2)+1,0===n&&(p||t?n=d.length:b("comment")),u=["comment",d.slice(f,n+1),f,n],f=n):(mb.lastIndex=f+1,mb.test(d),n=0===mb.lastIndex?d.length-1:mb.lastIndex-2,u=["word",d.slice(f,n+1),f,n],g.push(u),f=n)}return f++,u},position:function(){return f}}},Nb=Sy,_b=wb,Tb=xb,Pb=Mb;const Lb={empty:!0,space:!0};let Fb=Ty,Db=class{constructor(e){this.input=e,this.root=new Tb,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,n,s=new _b;s.name=e[1].slice(1),""===s.name&&this.unnamedAtrule(s,e),this.init(s,e[2]);let i=!1,o=!1,a=[],l=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?l.push("("===t?")":"]"):"{"===t&&l.length>0?l.push("}"):t===l[l.length-1]&&l.pop(),0===l.length){if(";"===t){s.source.end=this.getPosition(e[2]),s.source.end.offset++,this.semicolon=!0;break}if("{"===t){o=!0;break}if("}"===t){if(a.length>0){for(n=a.length-1,r=a[n];r&&"space"===r[0];)r=a[--n];r&&(s.source.end=this.getPosition(r[3]||r[2]),s.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){i=!0;break}}s.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(s.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(s,"params",a),i&&(e=a[a.length-1],s.source.end=this.getPosition(e[3]||e[2]),s.source.end.offset++,this.spaces=s.raws.between,s.raws.between="")):(s.raws.afterName="",s.params=""),o&&(s.nodes=[],this.current=s)}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let r,n=0;for(let s=t-1;s>=0&&(r=e[s],"space"===r[0]||(n+=1,2!==n));s--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}colon(e){let t,r,n,s=0;for(let[i,o]of e.entries()){if(t=o,r=t[0],"("===r&&(s+=1),")"===r&&(s-=1),0===s&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return i}this.doubleColon(t)}n=t}return!1}comment(e){let t=new Nb;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=zb(this.input)}decl(e,t){let r=new jb;this.init(r,e[0][2]);let n,s=e[e.length-1];for(";"===s[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(s[3]||s[2]||function(e){for(let t=e.length-1;t>=0;t--){let r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(n=e.shift(),":"===n[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let i,o=[];for(;e.length&&(i=e[0][0],"space"===i||"comment"===i);)o.push(e.shift());this.precheckMissedSemicolon(e);for(let a=e.length-1;a>=0;a--){if(n=e[a],"!important"===n[1].toLowerCase()){r.important=!0;let t=this.stringFrom(e,a);t=this.spacesFromEnd(e)+t," !important"!==t&&(r.raws.important=t);break}if("important"===n[1].toLowerCase()){let t=e.slice(0),n="";for(let e=a;e>0;e--){let r=t[e][0];if(0===n.trim().indexOf("!")&&"space"!==r)break;n=t.pop()[1]+n}0===n.trim().indexOf("!")&&(r.important=!0,r.raws.important=n,e=t)}if("space"!==n[0]&&"comment"!==n[0])break}e.some(e=>"space"!==e[0]&&"comment"!==e[0])&&(r.raws.between+=o.map(e=>e[1]).join(""),o=[]),this.raw(r,"value",o.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new Pb;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,n=!1,s=null,i=[],o=e[1].startsWith("--"),a=[],l=e;for(;l;){if(r=l[0],a.push(l),"("===r||"["===r)s||(s=l),i.push("("===r?")":"]");else if(o&&n&&"{"===r)s||(s=l),i.push("}");else if(0===i.length){if(";"===r){if(n)return void this.decl(a,o);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===i[i.length-1]&&(i.pop(),0===i.length&&(s=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),i.length>0&&this.unclosedBracket(s),t&&n){if(!o)for(;a.length&&(l=a[a.length-1][0],"space"===l||"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(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,n){let s,i,o,a,l=r.length,c="",h=!0;for(let u=0;u<l;u+=1)s=r[u],i=s[0],"space"!==i||u!==l-1||n?"comment"===i?(a=r[u-1]?r[u-1][0]:"empty",o=r[u+1]?r[u+1][0]:"empty",Lb[a]||Lb[o]||","===c.slice(-1)?h=!1:c+=s[1]):c+=s[1]:h=!1;if(!h){let n=r.reduce((e,t)=>e+t[1],"");e.raws[t]={raw:n,value:c}}e[t]=c}rule(e){e.pop();let t=new Pb;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let n=t;n<e.length;n++)r+=e[n][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})}},Bb=ly;function Ub(e,t){let r=new Bb(e,t),n=new Db(r);try{n.parse()}catch(s){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===s.name&&t&&t.from&&(/\.scss$/i.test(t.from)?s.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(t.from)?s.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(t.from)&&(s.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),s}return n.root}var Vb=Ub;Ub.default=Ub,Fb.registerParse(Ub);let{isClean:Wb,my:qb}=vg,Yb=wy,Zb=Ag,Gb=Ty,Jb=By,$b=Vy,Hb=Gy,Xb=Vb,Kb=xb;const Qb={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},ew={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},tw={Once:!0,postcssPlugin:!0,prepare:!0};function rw(e){return"object"==typeof e&&"function"==typeof e.then}function nw(e){let t=!1,r=Qb[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 sw(e){let t;return t="document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:nw(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function iw(e){return e[Wb]=!1,e.nodes&&e.nodes.forEach(e=>iw(e)),e}let ow={},aw=class e{constructor(t,r,n){let s;if(this.stringified=!1,this.processed=!1,"object"!=typeof r||null===r||"root"!==r.type&&"document"!==r.type)if(r instanceof e||r instanceof Hb)s=iw(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{let e=Xb;n.syntax&&(e=n.syntax.parse),n.parser&&(e=n.parser),e.parse&&(e=e.parse);try{s=e(r,n)}catch(i){this.processed=!0,this.error=i}s&&!s[qb]&&Gb.rebuild(s)}else s=iw(r);this.result=new Hb(t,s,n),this.helpers={...ow,postcss:ow,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 new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion&&"production"!==process.env.NODE_ENV){let e=r.postcssPlugin,t=r.postcssVersion,n=this.result.processor.version,s=t.split("."),i=n.split(".");(s[0]!==i[0]||parseInt(s[1])>parseInt(i[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+n+", but "+e+" uses "+t+". Perhaps this is the source of the error below.")}}else e.plugin=r.postcssPlugin,e.setMessage()}catch(Hk){console&&console.error&&console.error(Hk)}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(!ew[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!tw[r])if("object"==typeof t[r])for(let n in t[r])e(t,"*"===n?r:r+"-"+n.toLowerCase(),t[r][n]);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 r=0;r<this.plugins.length;r++){let t=this.plugins[r],n=this.runOnRoot(t);if(rw(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Wb];){e[Wb]=!0;let r=[sw(e)];for(;r.length>0;){let e=this.visitTick(r);if(rw(e))try{await e}catch(t){let e=r[r.length-1].node;throw this.handleError(t,e)}}}if(this.listeners.OnceExit)for(let[r,n]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if("document"===e.type){let t=e.nodes.map(e=>n(e,this.helpers));await Promise.all(t)}else await n(e,this.helpers)}catch(t){throw this.handleError(t)}}}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));return rw(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=Zb;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new Yb(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[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(rw(this.runOnRoot(e)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Wb];)e[Wb]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return"production"!==process.env.NODE_ENV&&("from"in this.opts||$b("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,s]of e){let e;this.result.lastPlugin=n;try{e=s(t,this.helpers)}catch(r){throw this.handleError(r,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(rw(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:n}=t;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(n.length>0&&t.visitorIndex<n.length){let[e,s]=n[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return s(r.toProxy(),this.helpers)}catch(i){throw this.handleError(i,r)}}if(0!==t.iterator){let n,s=t.iterator;for(;n=r.nodes[r.indexes[s]];)if(r.indexes[s]+=1,!n[Wb])return n[Wb]=!0,void e.push(sw(n));t.iterator=0,delete r.indexes[s]}let s=t.events;for(;t.eventIndex<s.length;){let e=s[t.eventIndex];if(t.eventIndex+=1,0===e)return void(r.nodes&&r.nodes.length&&(r[Wb]=!0,t.iterator=r.getIterator()));if(this.listeners[e])return void(t.visitors=this.listeners[e])}e.pop()}walkSync(e){e[Wb]=!0;let t=nw(e);for(let r of t)if(0===r)e.nodes&&e.each(e=>{e[Wb]||this.walkSync(e)});else{let t=this.listeners[r];if(t&&this.visitSync(t,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};aw.registerPostcss=e=>{ow=e};var lw=aw;aw.default=aw,Kb.registerLazyResult(aw),Jb.registerLazyResult(aw);let cw=wy,hw=Ag,uw=Vy,dw=Vb;const pw=Gy;let mw=class{constructor(e,t,r){let n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let s=hw;this.result=new pw(this._processor,n,this._opts),this.result.css=t;let i=this;Object.defineProperty(this.result,"root",{get:()=>i.root});let o=new cw(s,n,this._opts,t);if(o.isMap()){let[e,t]=o.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else o.clearAnnotation(),this.result.css=o.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"production"!==process.env.NODE_ENV&&("from"in this._opts||uw("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=dw;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var fw=mw;mw.default=mw;let gw=fw,yw=lw,bw=By,ww=xb,kw=class{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)throw new Error(r+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new yw(this,e,t):new gw(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var vw=kw;kw.default=kw,ww.registerProcessor(kw),bw.registerProcessor(kw);let Sw=Fg,Cw=Gg,xw=Sy,Iw=wb,Ow=ly,Aw=xb,Ew=Mb;function Rw(e,t){if(Array.isArray(e))return e.map(e=>Rw(e));let{inputs:r,...n}=e;if(r){t=[];for(let e of r){let r={...e,__proto__:Ow.prototype};r.map&&(r.map={...r.map,__proto__:Cw.prototype}),t.push(r)}}if(n.nodes&&(n.nodes=e.nodes.map(e=>Rw(e,t))),n.source){let{inputId:e,...r}=n.source;n.source=r,null!=e&&(n.source.input=t[e])}if("root"===n.type)return new Aw(n);if("decl"===n.type)return new Sw(n);if("rule"===n.type)return new Ew(n);if("comment"===n.type)return new xw(n);if("atrule"===n.type)return new Iw(n);throw new Error("Unknown node type: "+e.type)}var Mw=Rw;Rw.default=Rw;let jw=kg,zw=Fg,Nw=lw,_w=Ty,Tw=vw,Pw=Ag,Lw=Mw,Fw=By,Dw=qy,Bw=Sy,Uw=wb,Vw=Gy,Ww=ly,qw=Vb,Yw=Ob,Zw=Mb,Gw=xb,Jw=Tg;function $w(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new Tw(e)}$w.plugin=function(e,t){let r,n=!1;function s(...r){console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let s=t(...r);return s.postcssPlugin=e,s.postcssVersion=(new Tw).version,s}return Object.defineProperty(s,"postcss",{get:()=>(r||(r=s()),r)}),s.process=function(e,t,r){return $w([s(r)]).process(e,t)},s},$w.stringify=Pw,$w.parse=qw,$w.fromJSON=Lw,$w.list=Yw,$w.comment=e=>new Bw(e),$w.atRule=e=>new Uw(e),$w.decl=e=>new zw(e),$w.rule=e=>new Zw(e),$w.root=e=>new Gw(e),$w.document=e=>new Fw(e),$w.CssSyntaxError=jw,$w.Declaration=zw,$w.Container=_w,$w.Processor=Tw,$w.Document=Fw,$w.Comment=Bw,$w.Warning=Dw,$w.AtRule=Uw,$w.Result=Vw,$w.Input=Ww,$w.Rule=Zw,$w.Root=Gw,$w.Node=Jw,Nw.registerPostcss($w);var Hw=$w;$w.default=$w;const Xw=hg(Hw);Xw.stringify,Xw.fromJSON,Xw.plugin,Xw.parse,Xw.list,Xw.document,Xw.comment,Xw.atRule,Xw.rule,Xw.decl,Xw.root,Xw.CssSyntaxError,Xw.Declaration,Xw.Container,Xw.Processor,Xw.Document,Xw.Comment,Xw.Warning,Xw.AtRule,Xw.Result,Xw.Input,Xw.Rule,Xw.Root,Xw.Node;class Kw{constructor(...e){cg(this,"parentElement",null),cg(this,"parentNode",null),cg(this,"ownerDocument"),cg(this,"firstChild",null),cg(this,"lastChild",null),cg(this,"previousSibling",null),cg(this,"nextSibling",null),cg(this,"ELEMENT_NODE",1),cg(this,"TEXT_NODE",3),cg(this,"nodeType"),cg(this,"nodeName"),cg(this,"RRNodeType")}get childNodes(){const e=[];let t=this.firstChild;for(;t;)e.push(t),t=t.nextSibling;return e}contains(e){if(!(e instanceof Kw))return!1;if(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 new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}const Qw={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},ek={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},tk={};function rk(e){if(tk[e])return tk[e];const t=globalThis[e],r=t.prototype,n=e in Qw?Qw[e]:void 0,s=Boolean(n&&n.every(e=>{var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),i=e in ek?ek[e]:void 0,o=Boolean(i&&i.every(e=>{var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(s&&o&&!globalThis.Zone)return tk[e]=t.prototype,t.prototype;try{const n=document.createElement("iframe");document.body.appendChild(n);const s=n.contentWindow;if(!s)return t.prototype;const i=s[e].prototype;return document.body.removeChild(n),i?tk[e]=i:r}catch{return r}}const nk={};function sk(e,t,r){var n;const s=`${e}.${String(r)}`;if(nk[s])return nk[s].call(t);const i=rk(e),o=null==(n=Object.getOwnPropertyDescriptor(i,r))?void 0:n.get;return o?(nk[s]=o,o.call(t)):t[r]}const ik={};function ok(e,t,r){const n=`${e}.${String(r)}`;if(ik[n])return ik[n].bind(t);const s=rk(e)[r];return"function"!=typeof s?t[r]:(ik[n]=s,s.bind(t))}const ak={childNodes:function(e){return sk("Node",e,"childNodes")},parentNode:function(e){return sk("Node",e,"parentNode")},parentElement:function(e){return sk("Node",e,"parentElement")},textContent:function(e){return sk("Node",e,"textContent")},contains:function(e,t){return ok("Node",e,"contains")(t)},getRootNode:function(e){return ok("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?sk("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?sk("Element",e,"shadowRoot"):null},querySelector:function(e,t){return sk("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return sk("Element",e,"querySelectorAll")(t)},mutationObserver:function(){return rk("MutationObserver").constructor}};const lk="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.";let ck={map:{},getId:()=>(console.error(lk),-1),getNode:()=>(console.error(lk),null),removeNodeFromMap(){console.error(lk)},has:()=>(console.error(lk),!1),reset(){console.error(lk)}};"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(ck=new Proxy(ck,{get:(e,t,r)=>("map"===t&&console.error(lk),Reflect.get(e,t,r))}));let hk=Date.now;function uk(e){if(!e)return null;return e.nodeType===e.ELEMENT_NODE?e:ak.parentElement(e)}/[1-9][0-9]{12}/.test(Date.now().toString())||(hk=()=>(new Date).getTime());function dk(e){var t;let r=null;return"getRootNode"in e&&(null==(t=ak.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&ak.host(ak.getRootNode(e))&&(r=ak.host(ak.getRootNode(e))),r}function pk(e){let t,r=e;for(;t=dk(r);)r=t;return r}function mk(e){const t=e.ownerDocument;if(!t)return!1;const r=pk(e);return ak.contains(t,r)}const fk=Object.freeze(Object.defineProperty({__proto__:null,StyleSheetMirror:class{constructor(){id(this,"id",1),id(this,"styleIDMap",new WeakMap),id(this,"idStyleMap",new Map)}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let r;return 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++}},get _mirror(){return ck},closestElementOfNode:uk,getBaseDimension:function e(t,r){var n,s;const i=null==(s=null==(n=t.ownerDocument)?void 0:n.defaultView)?void 0:s.frameElement;if(!i||i===r)return{x:0,y:0,relativeScale:1,absoluteScale:1};const o=i.getBoundingClientRect(),a=e(i,r),l=o.height/i.clientHeight;return{x:o.x*a.relativeScale+a.x,y:o.y*a.relativeScale+a.y,relativeScale:l,absoluteScale:a.absoluteScale*l}},getNestedRule:function e(t,r){const n=t[r[0]];return 1===r.length?n:e(n.cssRules[r[1]].cssRules,r.slice(2))},getPositionsAndIndex:function(e){const t=[...e],r=t.pop();return{positions:t,index:r}},getRootShadowHost:pk,getShadowHost:dk,getWindowHeight:function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight},getWindowScroll:function(e){var t,r,n,s;const i=e.document;return{left:i.scrollingElement?i.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:i.documentElement.scrollLeft||(null==i?void 0:i.body)&&(null==(t=ak.parentElement(i.body))?void 0:t.scrollLeft)||(null==(r=null==i?void 0:i.body)?void 0:r.scrollLeft)||0,top:i.scrollingElement?i.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==i?void 0:i.documentElement.scrollTop)||(null==i?void 0:i.body)&&(null==(n=ak.parentElement(i.body))?void 0:n.scrollTop)||(null==(s=null==i?void 0:i.body)?void 0:s.scrollTop)||0}},getWindowWidth:function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth},hasShadowRoot:function(e){return!!e&&(e instanceof Kw&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(ak.shadowRoot(e)))},hookSetter:function e(t,r,n,s,i=window){const o=i.Object.getOwnPropertyDescriptor(t,r);return i.Object.defineProperty(t,r,s?n:{set(e){setTimeout(()=>{n.set.call(this,e)},0),o&&o.set&&o.set.call(this,e)}}),()=>e(t,r,o||{},!0)},inDom:function(e){const t=e.ownerDocument;return!!t&&(ak.contains(t,e)||mk(e))},isAncestorRemoved:function e(t,r){if(function(e){const t=e&&"host"in e&&"mode"in e&&gd.host(e)||null;return Boolean(t&&"shadowRoot"in t&&gd.shadowRoot(t)===e)}(t))return!1;const n=r.getId(t);if(!r.has(n))return!0;const s=ak.parentNode(t);return(!s||s.nodeType!==t.DOCUMENT_NODE)&&(!s||e(s,r))},isBlocked:function(e,t,r,n){if(!e)return!1;const s=uk(e);if(!s)return!1;try{if("string"==typeof t){if(s.classList.contains(t))return!0;if(n&&null!==s.closest("."+t))return!0}else if(bd(s,t,n))return!0}catch(i){}if(r){if(s.matches(r))return!0;if(n&&null!==s.closest(r))return!0}return!1},isIgnored:function(e,t,r){return!("TITLE"!==e.tagName||!r.headTitleMutations)||-2===t.getId(e)},isSerialized:function(e,t){return-1!==t.getId(e)},isSerializedIframe:function(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))},isSerializedStylesheet:function(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))},iterateResolveTree:function e(t,r){r(t.value);for(let n=t.children.length-1;n>=0;n--)e(t.children[n],r)},legacy_isTouchEvent:function(e){return Boolean(e.changedTouches)},get nowTimestamp(){return hk},on:function(e,t,r=document){const n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)},patch:function(e,t,r){try{if(!(t in e))return()=>{};const n=e[t],s=r(n);return"function"==typeof s&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=s,()=>{e[t]=n}}catch{return()=>{}}},polyfill: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)},queueToResolveTrees:function(e){const t={},r=(e,r)=>{const n={value:e,parent:r,children:[]};return t[e.node.id]=n,n},n=[];for(const s of e){const{nextId:e,parentId:i}=s;if(e&&e in t){const i=t[e];if(i.parent){const e=i.parent.children.indexOf(i);i.parent.children.splice(e,0,r(s,i.parent))}else{const e=n.indexOf(i);n.splice(e,0,r(s,null))}}else if(i in t){const e=t[i];e.children.push(r(s,e))}else n.push(r(s,null))}return n},shadowHostInDom:mk,throttle:function(e,t,r={}){let n=null,s=0;return function(...i){const o=Date.now();s||!1!==r.leading||(s=o);const a=t-(o-s),l=this;a<=0||a>t?(n&&(clearTimeout(n),n=null),s=o,e.apply(l,i)):n||!1===r.trailing||(n=setTimeout(()=>{s=!1===r.leading?0:Date.now(),n=null,e.apply(l,i)},a))}},uniqueTextMutations:function(e){const t=new Set,r=[];for(let n=e.length;n--;){const s=e[n];t.has(s.id)||(r.push(s),t.add(s.id))}return r}},Symbol.toStringTag,{value:"Module"}));for(var gk="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",yk="undefined"==typeof Uint8Array?[]:new Uint8Array(256),bk=0;bk<64;bk++)yk[gk.charCodeAt(bk)]=bk;"undefined"!=typeof window&&window.Blob&&new Blob([(e=>Uint8Array.from(atob(e),e=>e.charCodeAt(0)))("KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=")],{type:"text/javascript;charset=utf-8"});try{if(2!==Array.from([1],e=>2*e)[0]){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=(null==(Ku=e.contentWindow)?void 0:Ku.Array.from)||Array.from,document.body.removeChild(e)}}catch(Hk){console.debug("Unable to override Array.from",Hk)}var wk;new yd,function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(wk||(wk={}));class kk{constructor(e){nd(this,"fileName"),nd(this,"functionName"),nd(this,"lineNumber"),nd(this,"columnNumber"),this.fileName=e.fileName||"",this.functionName=e.functionName||"",this.lineNumber=e.lineNumber,this.columnNumber=e.columnNumber}toString(){const e=this.lineNumber||"",t=this.columnNumber||"";return this.functionName?`${this.functionName} (${this.fileName}:${e}:${t})`:`${this.fileName}:${e}:${t}`}}const vk=/(^|@)\S+:\d+/,Sk=/^\s*at .*(\S+:\d+|\(native\))/m,Ck=/^(eval@)?(\[native code])?$/,xk={parse:function(e){return e?void 0!==e.stacktrace||void 0!==e["opera#sourceloc"]?this.parseOpera(e):e.stack&&e.stack.match(Sk)?this.parseV8OrIE(e):e.stack?this.parseFFOrSafari(e):(console.warn("[console-record-plugin]: Failed to parse error object:",e),[]):[]},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];const t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));if(!t)throw new Error(`Cannot parse given url: ${e}`);return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(Sk)},this).map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));let t=e.replace(/^\s+/,"").replace(/\(eval code/g,"(");const r=t.match(/ (\((.+):(\d+):(\d+)\)$)/);t=r?t.replace(r[0],""):t;const n=t.split(/\s+/).slice(1),s=this.extractLocation(r?r[1]:n.pop()),i=n.join(" ")||void 0,o=["eval","<anonymous>"].indexOf(s[0])>-1?void 0:s[0];return new kk({functionName:i,fileName:o,lineNumber:s[1],columnNumber:s[2]})},this)},parseFFOrSafari:function(e){return e.stack.split("\n").filter(function(e){return!e.match(Ck)},this).map(function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new kk({functionName:e});{const t=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=e.match(t),n=r&&r[1]?r[1]:void 0,s=this.extractLocation(e.replace(t,""));return new kk({functionName:n,fileName:s[0],lineNumber:s[1],columnNumber:s[2]})}},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){const t=/Line (\d+).*script (?:in )?(\S+)/i,r=e.message.split("\n"),n=[];for(let s=2,i=r.length;s<i;s+=2){const e=t.exec(r[s]);e&&n.push(new kk({fileName:e[2],lineNumber:parseFloat(e[1])}))}return n},parseOpera10:function(e){const t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=e.stacktrace.split("\n"),n=[];for(let s=0,i=r.length;s<i;s+=2){const e=t.exec(r[s]);e&&n.push(new kk({functionName:e[3]||void 0,fileName:e[2],lineNumber:parseFloat(e[1])}))}return n},parseOpera11:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(vk)&&!e.match(/^Error created at/)},this).map(function(e){const t=e.split("@"),r=this.extractLocation(t.pop()),n=(t.shift()||"").replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new kk({functionName:n,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})},this)}};function Ik(e){if(!e||!e.outerHTML)return"";let t="";for(;e.parentElement;){let r=e.localName;if(!r)break;r=r.toLowerCase();const n=e.parentElement,s=[];if(n.children&&n.children.length>0)for(let e=0;e<n.children.length;e++){const t=n.children[e];t.localName&&t.localName.toLowerCase&&t.localName.toLowerCase()===r&&s.push(t)}s.length>1&&(r+=`:eq(${s.indexOf(e)})`),t=r+(t?">"+t:""),e=n}return t}function Ok(e){return"[object Object]"===Object.prototype.toString.call(e)}function Ak(e,t){if(0===t)return!0;const r=Object.keys(e);for(const n of r)if(Ok(e[n])&&Ak(e[n],t-1))return!0;return!1}function Ek(e,t){const r={numOfKeysLimit:50,depthOfLimit:4};Object.assign(r,t);const n=[],s=[];return JSON.stringify(e,function(e,t){if(n.length>0){const r=n.indexOf(this);~r?n.splice(r+1):n.push(this),~r?s.splice(r,1/0,e):s.push(e),~n.indexOf(t)&&(t=n[0]===t?"[Circular ~]":"[Circular ~."+s.slice(0,n.indexOf(t)).join(".")+"]")}else n.push(t);if(null===t)return t;if(void 0===t)return"undefined";if(function(e){if(Ok(e)&&Object.keys(e).length>r.numOfKeysLimit)return!0;if("function"==typeof e)return!0;if(Ok(e)&&Ak(e,r.depthOfLimit))return!0;return!1}(t))return function(e){let t=e.toString();r.stringLengthLimit&&t.length>r.stringLengthLimit&&(t=`${t.slice(0,r.stringLengthLimit)}...`);return t}(t);if("bigint"==typeof t)return t.toString()+"n";if(t instanceof Event){const e={};for(const r in t){const n=t[r];Array.isArray(n)?e[r]=Ik(n.length?n[0]:null):e[r]=n}return e}return t instanceof Node?t instanceof HTMLElement?t?t.outerHTML:"":t.nodeName:t instanceof Error?t.stack?t.stack+"\nEnd of stack for Error object":t.name+": "+t.message:t})}const Rk={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function Mk(e,t,r){const n=r?Object.assign({},Rk,r):Rk,s=n.logger;if(!s)return()=>{};let i;i="string"==typeof s?t[s]:s;let o=0,a=!1;const l=[];if(n.level.includes("error")){const r=t=>{const r=t.message,s=t.error,i=xk.parse(s).map(e=>e.toString()),o=[Ek(r,n.stringifyOptions)];e({level:"error",trace:i,payload:o})};t.addEventListener("error",r),l.push(()=>{t.removeEventListener("error",r)});const s=t=>{let r,s;t.reason instanceof Error?(r=t.reason,s=[Ek(`Uncaught (in promise) ${r.name}: ${r.message}`,n.stringifyOptions)]):(r=new Error,s=[Ek("Uncaught (in promise)",n.stringifyOptions),Ek(t.reason,n.stringifyOptions)]);const i=xk.parse(r).map(e=>e.toString());e({level:"error",trace:i,payload:s})};t.addEventListener("unhandledrejection",s),l.push(()=>{t.removeEventListener("unhandledrejection",s)})}for(const h of n.level)l.push(c(i,h));return()=>{l.forEach(e=>e())};function c(t,r){return t[r]?fk.patch(t,r,t=>(...s)=>{if(t.apply(this,s),!("assert"===r&&s[0]||a)){a=!0;try{const t=xk.parse(new Error).map(e=>e.toString()).splice(1),i=("assert"===r?s.slice(1):s).map(e=>Ek(e,n.stringifyOptions));o++,o<n.lengthThreshold?e({level:r,trace:t,payload:i}):o===n.lengthThreshold&&e({level:"warn",trace:[],payload:[Ek("The number of log records reached the threshold.")]})}catch(i){t("rrweb logger error:",i,...s)}finally{a=!1}}}):()=>{}}}const jk={recordOptions:{blockClass:"bf-nocapture",blockSelector:void 0,ignoreClass:"bf-ignore-input",ignoreCSSAttributes:void 0,maskTextClass:"bf-mask",maskTextSelector:void 0,maskAllInputs:!0,maskInputOptions:{password:!0},maskInputFn:void 0,maskTextFn:void 0},recordConsolePlugin:{level:["error"],lengthThreshold:Number.POSITIVE_INFINITY,stringifyOptions:{stringLengthLimit:Number.POSITIVE_INFINITY,numOfKeysLimit:Number.POSITIVE_INFINITY,depthOfLimit:Number.POSITIVE_INFINITY}},samplingOptions:{scroll:150,media:1e3,canvas:8,input:"last"}};class zk{constructor(e){var t;__publicField(this,"options"),__publicField(this,"stop"),this.options={...jk.recordOptions,emit:e,plugins:[(t=jk.recordConsolePlugin,{name:"rrweb/console@1",observer:Mk,options:t})],sampling:jk.samplingOptions},this.stop=null}static mockImplementation(e){throw new Error("Method not implemented.")}start(){this.stop=qu(this.options)??null}getMirror(){return qu.mirror}takeFullSnapshot(){return qu.takeFullSnapshot()}}class Nk{constructor(e){__publicField(this,"recordingManager"),__publicField(this,"isRunning"),__publicField(this,"events"),this.recordingManager=e,this.isRunning=!1,this.events=[]}start(){this.isRunning=!0}handle(e){this.isInitializingEvent(e)?this.events.push(e):this.stop(e)}isInitializingEvent(e){return[2,4].includes(e.type)||this.isSelectionEvent(e)||this.isConsoleEvent(e)}isSelectionEvent(e){return 3===e.type&&14===e.data.source}isConsoleEvent(e){return 6===e.type}stop(e){this.stamp(this.events,e.timestamp-1),this.publish(...this.events,e),this.events=[],this.isRunning=!1}stamp(e,t){e.forEach(e=>e.timestamp=t)}publish(...e){e.forEach(e=>{this.recordingManager.publishEvent(e)})}}function _k(e,t){void 0===t&&(t={});for(var r=function(e){for(var t=[],r=0;r<e.length;){var n=e[r];if("*"!==n&&"+"!==n&&"?"!==n)if("\\"!==n)if("{"!==n)if("}"!==n)if(":"!==n)if("("!==n)t.push({type:"CHAR",index:r,value:e[r++]});else{var s=1,i="";if("?"===e[a=r+1])throw new TypeError('Pattern cannot start with "?" at '.concat(a));for(;a<e.length;)if("\\"!==e[a]){if(")"===e[a]){if(0===--s){a++;break}}else if("("===e[a]&&(s++,"?"!==e[a+1]))throw new TypeError("Capturing groups are not allowed at ".concat(a));i+=e[a++]}else i+=e[a++]+e[a++];if(s)throw new TypeError("Unbalanced pattern at ".concat(r));if(!i)throw new TypeError("Missing pattern at ".concat(r));t.push({type:"PATTERN",index:r,value:i}),r=a}else{for(var o="",a=r+1;a<e.length;){var l=e.charCodeAt(a);if(!(l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||95===l))break;o+=e[a++]}if(!o)throw new TypeError("Missing parameter name at ".concat(r));t.push({type:"NAME",index:r,value:o}),r=a}else t.push({type:"CLOSE",index:r,value:e[r++]});else t.push({type:"OPEN",index:r,value:e[r++]});else t.push({type:"ESCAPED_CHAR",index:r++,value:e[r++]});else t.push({type:"MODIFIER",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}(e),n=t.prefixes,s=void 0===n?"./":n,i=t.delimiter,o=void 0===i?"/#?":i,a=[],l=0,c=0,h="",u=function(e){if(c<r.length&&r[c].type===e)return r[c++].value},d=function(e){var t=u(e);if(void 0!==t)return t;var n=r[c],s=n.type,i=n.index;throw new TypeError("Unexpected ".concat(s," at ").concat(i,", expected ").concat(e))},p=function(){for(var e,t="";e=u("CHAR")||u("ESCAPED_CHAR");)t+=e;return t},m=function(e){var t=a[a.length-1],r=e||(t&&"string"==typeof t?t:"");if(t&&!r)throw new TypeError('Must have text between two parameters, missing text after "'.concat(t.name,'"'));return!r||function(e){for(var t=0,r=o;t<r.length;t++){var n=r[t];if(e.indexOf(n)>-1)return!0}return!1}(r)?"[^".concat(Pk(o),"]+?"):"(?:(?!".concat(Pk(r),")[^").concat(Pk(o),"])+?")};c<r.length;){var f=u("CHAR"),g=u("NAME"),y=u("PATTERN");if(g||y){var b=f||"";-1===s.indexOf(b)&&(h+=b,b=""),h&&(a.push(h),h=""),a.push({name:g||l++,prefix:b,suffix:"",pattern:y||m(b),modifier:u("MODIFIER")||""})}else{var w=f||u("ESCAPED_CHAR");if(w)h+=w;else if(h&&(a.push(h),h=""),u("OPEN")){b=p();var k=u("NAME")||"",v=u("PATTERN")||"",S=p();d("CLOSE"),a.push({name:k||(v?l++:""),pattern:k&&!v?m(b):v,prefix:b,suffix:S,modifier:u("MODIFIER")||""})}else d("END")}}return a}function Tk(e,t){var r=[];return function(e,t,r){void 0===r&&(r={});var n=r.decode,s=void 0===n?function(e){return e}:n;return function(r){var n=e.exec(r);if(!n)return!1;for(var i=n[0],o=n.index,a=Object.create(null),l=function(e){if(void 0===n[e])return"continue";var r=t[e-1];"*"===r.modifier||"+"===r.modifier?a[r.name]=n[e].split(r.prefix+r.suffix).map(function(e){return s(e,r)}):a[r.name]=s(n[e],r)},c=1;c<n.length;c++)l(c);return{path:i,index:o,params:a}}}(Dk(e,r,t),r,t)}function Pk(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function Lk(e){return e&&e.sensitive?"":"i"}function Fk(e,t,r){return function(e,t,r){void 0===r&&(r={});for(var n=r.strict,s=void 0!==n&&n,i=r.start,o=void 0===i||i,a=r.end,l=void 0===a||a,c=r.encode,h=void 0===c?function(e){return e}:c,u=r.delimiter,d=void 0===u?"/#?":u,p=r.endsWith,m="[".concat(Pk(void 0===p?"":p),"]|$"),f="[".concat(Pk(d),"]"),g=o?"^":"",y=0,b=e;y<b.length;y++){var w=b[y];if("string"==typeof w)g+=Pk(h(w));else{var k=Pk(h(w.prefix)),v=Pk(h(w.suffix));if(w.pattern)if(t&&t.push(w),k||v)if("+"===w.modifier||"*"===w.modifier){var S="*"===w.modifier?"?":"";g+="(?:".concat(k,"((?:").concat(w.pattern,")(?:").concat(v).concat(k,"(?:").concat(w.pattern,"))*)").concat(v,")").concat(S)}else g+="(?:".concat(k,"(").concat(w.pattern,")").concat(v,")").concat(w.modifier);else{if("+"===w.modifier||"*"===w.modifier)throw new TypeError('Can not repeat "'.concat(w.name,'" without a prefix and suffix'));g+="(".concat(w.pattern,")").concat(w.modifier)}else g+="(?:".concat(k).concat(v,")").concat(w.modifier)}}if(l)s||(g+="".concat(f,"?")),g+=r.endsWith?"(?=".concat(m,")"):"$";else{var C=e[e.length-1],x="string"==typeof C?f.indexOf(C[C.length-1])>-1:void 0===C;s||(g+="(?:".concat(f,"(?=").concat(m,"))?")),x||(g+="(?=".concat(f,"|").concat(m,")"))}return new RegExp(g,Lk(r))}(_k(e,r),t,r)}function Dk(e,t,r){return e instanceof RegExp?function(e,t){if(!t)return e;for(var r=/\((?:\?<(.*?)>)?(?!\?)/g,n=0,s=r.exec(e.source);s;)t.push({name:s[1]||n++,prefix:"",suffix:"",modifier:"",pattern:""}),s=r.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,r){var n=e.map(function(e){return Dk(e,t,r).source});return new RegExp("(?:".concat(n.join("|"),")"),Lk(r))}(e,t,r):Fk(e,t,r)}function Bk(e,t){if(function(){if("undefined"==typeof window)return!1;const e=window.location.hostname;return"localhost"===e||"127.0.0.1"===e}()&&!t)return!1;const r=window.location.pathname;for(const s of e)try{if(Tk(s,{decode:decodeURIComponent})(r))return!1}catch(n){if(s===r)return!1}return!0}const Uk=[ed.MouseMove,ed.MouseInteraction,ed.Scroll,ed.ViewportResize,ed.Input,ed.TouchMove,ed.MediaInteraction,ed.Drag];class Vk{constructor(e){__publicField(this,"agent"),__publicField(this,"recorder"),__publicField(this,"stasher"),this.agent=e,this.recorder=new zk(this.handleEvent.bind(this)),this.stasher=new Nk(this)}start(){this.recorder.start()}handleEvent(e){const t=new URL(window.location.href),r=t.origin+t.pathname;if(Bk(this.agent.recordingBlocklist,this.agent._allowLocalhostRecording)){if(this.agent.sessionManager.isIdle){if(!this.isInteractiveEvent(e))return;this.agent.handleActivityDuringIdle()}if(this.isClick(e)){let t=qu.mirror.getNode(e.data.id);t&&this.nodeIsInteresting(t)&&(e.conversionData={},e.conversionData.eventType="click",e.conversionData.textContent=t.textContent,e.conversionData.htmlElement=t.nodeName?.toLowerCase(),e.conversionData.location=r)}this.isCustom(e)&&(e.conversionData={},e.conversionData.eventType="custom",e.conversionData.customEventType=e.data.tag,e.conversionData.location=r),this.stasher.isRunning?this.stasher.handle(e):this.publishEvent(e)}}publishEvent(e){this.agent.sender.handle(e),this.agent.timer&&this.agent.timer.restart()}startRecorderWithStasher(){this.stasher.start(),this.recorder=new zk(this.handleEvent.bind(this)),this.recorder.start()}isClick(e){return e.type===Qu.IncrementalSnapshot&&e.data.source===ed.MouseInteraction&&e.data.type===td.Click}nodeIsInteresting(e){return"BUTTON"===e.nodeName||"ANCHOR"===e.nodeName}isCustom(e){return e.type===Qu.Custom}isInteractiveEvent(e){return e.type===Qu.IncrementalSnapshot&&Uk.includes(e.data?.source)}}class Wk{constructor(e,t){__publicField(this,"agent"),__publicField(this,"MAX_IDLE_TIME"),__publicField(this,"timeoutId"),this.agent=e,this.MAX_IDLE_TIME=t,this.timeoutId=0}restart(){this.stop(),this.start()}stop(){clearTimeout(this.timeoutId)}start(){this.timeoutId=window.setTimeout(this.agent.handleTimeout.bind(this.agent),this.MAX_IDLE_TIME)}}const qk=class e{constructor(){__publicField(this,"sessionId",null),__publicField(this,"lastScreenViewEventTime",0),__publicField(this,"isIdle",!1)}static getInstance(){return e.instance||(e.instance=new e),e.instance}determineSessionState(e){return!this.sessionId&&e?"new":this.sessionId&&e&&this.sessionId!==e?"changed":this.sessionId===e&&null!==this.sessionId?"active":"expired"}handleSessionTransition(e,t){switch(e){case"new":case"changed":this.updateIdleStatus(!1),t.takeFullSnapshot?.()}}updateSession(e,t={}){const r=this.determineSessionState(e);this.handleSessionTransition(r,t),this.sessionId=e}updateLastScreenViewEventTime(){this.lastScreenViewEventTime=Date.now()}updateIdleStatus(e){this.isIdle=e}getLastScreenViewEventTime(){return this.lastScreenViewEventTime}getCurrentSessionId(){return this.sessionId}};__publicField(qk,"instance");let Yk=qk;const Zk=class e{constructor(){__publicField(this,"recordingManager"),__publicField(this,"sender"),__publicField(this,"MAX_IDLE_TIME"),__publicField(this,"timer"),__publicField(this,"sendEvents"),__publicField(this,"sendScreenViewEvent"),__publicField(this,"recordingBlocklist",[]),__publicField(this,"_allowLocalhostRecording"),__publicField(this,"_allowScreenRecording"),__publicField(this,"sessionCreationPromise",null),this.recordingManager=new Vk(this),this.sender=new Xu(this)}get sessionManager(){return e._sessionManager}async start({sendEvents:e,sendScreenViewEvent:t,recordingBlocklist:r,_allowLocalhostRecording:n,_allowScreenRecording:s}){this.sendEvents=e,this.sendScreenViewEvent=t,this.recordingBlocklist=r,this._allowLocalhostRecording=n,this._allowScreenRecording=s,this.MAX_IDLE_TIME=6e4,this.timer=new Wk(this,this.MAX_IDLE_TIME),this.sender.start(),this.recordingManager.start()}handleTimeout(){this.recordingManager.recorder.stop&&this.recordingManager.recorder.stop(),this.sender.send(),this.recordingManager.startRecorderWithStasher(),e._sessionManager.updateIdleStatus(!0)}handleActivityDuringIdle(){null===e._sessionManager.getCurrentSessionId()&&(e._sessionManager.getLastScreenViewEventTime()>Date.now()-5e3||this.sessionCreationPromise||(this.sessionCreationPromise=this.createSession().finally(()=>{this.sessionCreationPromise=null})))}takeFullSnapshot(){return this.recordingManager.recorder.takeFullSnapshot()}static handleCustomEvent(e){qu.addCustomEvent(e,null)}async createSession(){if(this.sendScreenViewEvent)try{this.sendScreenViewEvent({__path:window.location.href,__title:document.title,__is_session_refresh:!0})}catch(e){console.error("Failed to send screen_view event:",e)}}};__publicField(Zk,"_sessionManager",Yk.getInstance());let Gk=Zk;function Jk(e){return e.replace(/([-_][a-z])/gi,e=>e.toUpperCase().replace("-","").replace("_",""))}class $k extends Re{constructor(e){super({sdk:"web",sdkVersion:"0.0.19",...e}),__publicField(this,"lastPath",""),__publicField(this,"debounceTimer",null),__publicField(this,"agent"),__publicField(this,"sessionManager",Yk.getInstance()),__publicField(this,"recordingBlocklist",[]),__publicField(this,"MAX_SCREENSHOT_SIZE",768e3),this.options=e,this.agent=new Gk,this.recordingBlocklist=e.recordingBlocklist||[],this.isServer()||(this.setGlobalProperties({__referrer:document.referrer}),this.options.trackOutgoingLinks&&this.trackOutgoingLinks(),this.options.trackScreenViews&&this.trackScreenViews(),this.options.trackAttributes&&this.trackAttributes(),this.options.enableRecording&&this.options._allowScreenRecording&&this.startRecording())}debounce(e,t){this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(e,t)}isServer(){return"undefined"==typeof document}trackOutgoingLinks(){this.isServer()||document.addEventListener("click",e=>{const t=e.target,r=t.closest("a");if(r&&t){const e=r.getAttribute("href");e?.startsWith("http")&&super.track("link_out",{href:e,text:r.innerText||r.getAttribute("title")||t.getAttribute("alt")||t.getAttribute("title")})}})}trackScreenViews(){if(this.isServer())return;this.screenView();const e=history.pushState;history.pushState=function(...t){const r=e.apply(this,t);return window.dispatchEvent(new Event("pushstate")),window.dispatchEvent(new Event("locationchange")),r};const t=history.replaceState;history.replaceState=function(...e){const r=t.apply(this,e);return window.dispatchEvent(new Event("replacestate")),window.dispatchEvent(new Event("locationchange")),r},window.addEventListener("popstate",function(){window.dispatchEvent(new Event("locationchange"))});const r=()=>this.debounce(()=>this.screenView(),100);this.options.trackHashChanges?window.addEventListener("hashchange",r):window.addEventListener("locationchange",r)}trackAttributes(){this.isServer()||document.addEventListener("click",e=>{const t=e.target,r=t.closest("button"),n=t.closest("a"),s=r?.getAttribute("data-track")?r:n?.getAttribute("data-track")?n:null;if(s){const e={};for(const r of s.attributes)r.name.startsWith("data-")&&"data-track"!==r.name&&(e[Jk(r.name.replace(/^data-/,""))]=r.value);const t=s.getAttribute("data-track");t&&super.track(t,e)}})}startRecording(){this.isServer()||this.agent.start({sendEvents:this.recordEventsToServer.bind(this),sendScreenViewEvent:this.sendScreenViewEvent.bind(this),recordingBlocklist:this.recordingBlocklist,_allowLocalhostRecording:this.options._allowLocalhostRecording})}async screenView(e,t){if(this.isServer())return;let r,n;if("string"==typeof e?(r=e,n=t):(r=window.location.href,n=e),this.lastPath===r)return;this.lastPath=r;const s={...n??{},__path:r,__title:document.title};if(this.options.enableRecording&&Bk(this.recordingBlocklist,this.options._allowLocalhostRecording))try{const e=await async function(e){try{await zt(e);const t=document.body.cloneNode(!0);return jt(t),await bt(t)}catch(t){console.error("An error occurred:",t)}}();e&&(e.length<=this.MAX_SCREENSHOT_SIZE?s.__screenshot=e:(s.__screenshotOmitted=!0,s.__screenshotSizeInBytes=e.length))}catch(Hk){s.__screenshotOmitted=!0,s.__screenshotError=Hk.message}this.sendScreenViewEvent(s)}async recordEventsToServer(e){this.record(e,e=>{this.sessionManager.updateSession(e.sessionId,{takeFullSnapshot:()=>{this.agent.takeFullSnapshot()}})})}sendScreenViewEvent(e){super.track("screen_view",e),this.sessionManager.updateLastScreenViewEventTime()}}(e=>{if(e.BrainfishAnalytics&&"q"in e.BrainfishAnalytics){const t=e.BrainfishAnalytics.q||[],r=t.findIndex(e=>"init"===e[0]);if(-1===r)return void console.warn("BrainfishAnalytics has not been initialized.");const[n]=t.splice(r,1),s=new $k(n[1]);t.forEach(e=>{e[0]in s&&s[e[0]](...e.slice(1))}),e.BrainfishAnalytics=(e,...t)=>{const r=s[e]?s[e].bind(s):void 0;"function"==typeof r?r(...t):console.warn(`Method ${e} does not exist on BrainfishAnalytics`)}}})(window)}();
15
2
  //# sourceMappingURL=tracker.js.map