@devskin/browser-sdk 1.0.21 → 1.0.23

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.
@@ -1,4 +1,24 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).DevSkin=t()}(this,function(){"use strict";class e{constructor(e){this.config=e}collect(){return{type:this.getDeviceType(),vendor:this.getVendor(),model:this.getModel(),os:this.getOS(),screen:this.getScreenInfo(),memory:this.getMemory(),cores:this.getCores(),connection:this.getConnection()}}getDeviceType(){const e=navigator.userAgent;return/(tablet|ipad|playbook|silk)|(android(?!.*mobi))/i.test(e)?"tablet":/Mobile|Android|iP(hone|od)|IEMobile|BlackBerry|Kindle|Silk-Accelerated|(hpw|web)OS|Opera M(obi|ini)/.test(e)?"mobile":e.includes("Windows")||e.includes("Macintosh")||e.includes("Linux")?"desktop":"unknown"}getVendor(){return navigator.vendor||void 0}getModel(){const e=navigator.userAgent.match(/\(([^)]+)\)/);if(e&&e[1])return e[1]}getOS(){const e=navigator.userAgent;let t="Unknown",n="";if(e.includes("Win"))t="Windows",e.includes("Windows NT 10.0")?n="10":e.includes("Windows NT 6.3")?n="8.1":e.includes("Windows NT 6.2")?n="8":e.includes("Windows NT 6.1")&&(n="7");else if(e.includes("Mac")){t="macOS";const o=e.match(/Mac OS X (\d+[._]\d+[._]\d+)?/);o&&o[1]&&(n=o[1].replace(/_/g,"."))}else if(e.includes("X11")||e.includes("Linux"))t="Linux";else if(e.includes("Android")){t="Android";const o=e.match(/Android (\d+\.?\d*)/);o&&o[1]&&(n=o[1])}else if(e.includes("iOS")||e.includes("iPhone")||e.includes("iPad")){t="iOS";const o=e.match(/OS (\d+_\d+(_\d+)?)/);o&&o[1]&&(n=o[1].replace(/_/g,"."))}return{name:t,version:n}}getScreenInfo(){return{width:window.screen.width,height:window.screen.height,orientation:this.getOrientation(),pixelRatio:window.devicePixelRatio||1}}getOrientation(){return window.screen.orientation?window.screen.orientation.type:window.innerWidth>window.innerHeight?"landscape":"portrait"}getMemory(){return navigator.deviceMemory}getCores(){return navigator.hardwareConcurrency}getConnection(){const e=navigator.connection||navigator.mozConnection||navigator.webkitConnection;if(e)return{effectiveType:e.effectiveType,downlink:e.downlink,rtt:e.rtt,saveData:e.saveData}}}function t(e,t,n,o){return new(n||(n=Promise))(function(r,s){function i(e){try{c(o.next(e))}catch(e){s(e)}}function a(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,a)}c((o=o.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;class n{constructor(e){this.config=e,this.geoData=null,this.config.captureLocation&&this.requestGeolocation()}collect(){return Object.assign({url:window.location.href,hostname:window.location.hostname,pathname:window.location.pathname,search:window.location.search,hash:window.location.hash,protocol:window.location.protocol,port:window.location.port,referrer:document.referrer},this.geoData)}requestGeolocation(){return t(this,void 0,void 0,function*(){try{const e=Intl.DateTimeFormat().resolvedOptions().timeZone;this.geoData={timezone:e},"geolocation"in navigator&&navigator.geolocation.getCurrentPosition(e=>{this.geoData=Object.assign(Object.assign({},this.geoData),{latitude:e.coords.latitude,longitude:e.coords.longitude}),this.reverseGeocode(e.coords.latitude,e.coords.longitude)},e=>{this.config.debug&&console.log("[DevSkin] Geolocation permission denied or error:",e)},{timeout:5e3,maximumAge:6e5})}catch(e){this.config.debug&&console.error("[DevSkin] Error requesting geolocation:",e)}})}reverseGeocode(e,n){return t(this,void 0,void 0,function*(){try{const t=yield fetch(`https://nominatim.openstreetmap.org/reverse?format=json&lat=${e}&lon=${n}&zoom=10&addressdetails=1`,{headers:{"User-Agent":"DevSkin-SDK/1.0"}});if(t.ok){const e=yield t.json();e.address&&(this.geoData=Object.assign(Object.assign({},this.geoData),{country:e.address.country,region:e.address.state||e.address.region,city:e.address.city||e.address.town||e.address.village}))}}catch(e){this.config.debug&&console.error("[DevSkin] Error reverse geocoding:",e)}})}}class o{constructor(e){this.config=e}collect(){return{name:this.getBrowserName(),version:this.getBrowserVersion(),engine:this.getEngine(),userAgent:navigator.userAgent,language:navigator.language,languages:navigator.languages?Array.from(navigator.languages):[navigator.language],cookieEnabled:navigator.cookieEnabled,doNotTrack:this.getDoNotTrack(),viewport:{width:window.innerWidth,height:window.innerHeight},timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,timezoneOffset:(new Date).getTimezoneOffset()}}getBrowserName(){const e=navigator.userAgent;return e.includes("Firefox")?"Firefox":e.includes("Edg")?"Edge":e.includes("Chrome")?"Chrome":e.includes("Safari")&&!e.includes("Chrome")?"Safari":e.includes("Opera")||e.includes("OPR")?"Opera":e.includes("Trident")||e.includes("MSIE")?"Internet Explorer":"Unknown"}getBrowserVersion(){const e=navigator.userAgent;let t=null;switch(this.getBrowserName()){case"Chrome":t=e.match(/Chrome\/(\d+\.\d+)/);break;case"Firefox":t=e.match(/Firefox\/(\d+\.\d+)/);break;case"Safari":t=e.match(/Version\/(\d+\.\d+)/);break;case"Edge":t=e.match(/Edg\/(\d+\.\d+)/);break;case"Opera":if(t=e.match(/(Opera|OPR)\/(\d+\.\d+)/),t)return t[2];break;case"Internet Explorer":if(t=e.match(/(MSIE |rv:)(\d+\.\d+)/),t)return t[2]}return t&&t[1]?t[1]:""}getEngine(){const e=navigator.userAgent;return e.includes("Gecko")&&e.includes("Firefox")?"Gecko":e.includes("AppleWebKit")?e.includes("Chrome")||e.includes("Edg")?"Blink":"WebKit":e.includes("Trident")?"Trident":"Unknown"}getDoNotTrack(){const e=navigator.doNotTrack||window.doNotTrack||navigator.msDoNotTrack;return"1"===e||"yes"===e||"0"!==e&&"no"!==e&&null}}var r,s,i,a,c,l=-1,d=function(e){addEventListener("pageshow",function(t){t.persisted&&(l=t.timeStamp,e(t))},!0)},u=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},h=function(){var e=u();return e&&e.activationStart||0},p=function(e,t){var n=u(),o="navigate";return l>=0?o="back-forward-cache":n&&(document.prerendering||h()>0?o="prerender":document.wasDiscarded?o="restore":n.type&&(o=n.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:o}},m=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var o=new PerformanceObserver(function(e){Promise.resolve().then(function(){t(e.getEntries())})});return o.observe(Object.assign({type:e,buffered:!0},n||{})),o}}catch(e){}},f=function(e,t,n,o){var r,s;return function(i){t.value>=0&&(i||o)&&((s=t.value-(r||0))||void 0===r)&&(r=t.value,t.delta=s,t.rating=function(e,t){return e>t[1]?"poor":e>t[0]?"needs-improvement":"good"}(t.value,n),e(t))}},g=function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})},v=function(e){var t=function(t){"pagehide"!==t.type&&"hidden"!==document.visibilityState||e(t)};addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0)},y=function(e){var t=!1;return function(n){t||(e(n),t=!0)}},S=-1,b=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},w=function(e){"hidden"===document.visibilityState&&S>-1&&(S="visibilitychange"===e.type?e.timeStamp:0,I())},k=function(){addEventListener("visibilitychange",w,!0),addEventListener("prerenderingchange",w,!0)},I=function(){removeEventListener("visibilitychange",w,!0),removeEventListener("prerenderingchange",w,!0)},C=function(){return S<0&&(S=b(),k(),d(function(){setTimeout(function(){S=b(),k()},0)})),{get firstHiddenTime(){return S}}},M=function(e){document.prerendering?addEventListener("prerenderingchange",function(){return e()},!0):e()},T=[1800,3e3],O=function(e,t){t=t||{},M(function(){var n,o=C(),r=p("FCP"),s=m("paint",function(e){e.forEach(function(e){"first-contentful-paint"===e.name&&(s.disconnect(),e.startTime<o.firstHiddenTime&&(r.value=Math.max(e.startTime-h(),0),r.entries.push(e),n(!0)))})});s&&(n=f(e,r,T,t.reportAllChanges),d(function(o){r=p("FCP"),n=f(e,r,T,t.reportAllChanges),g(function(){r.value=performance.now()-o.timeStamp,n(!0)})}))})},E=[.1,.25],D={passive:!0,capture:!0},R=new Date,x=function(e,t){r||(r=t,s=e,i=new Date,A(removeEventListener),L())},L=function(){if(s>=0&&s<i-R){var e={entryType:"first-input",name:r.type,target:r.target,cancelable:r.cancelable,startTime:r.timeStamp,processingStart:r.timeStamp+s};a.forEach(function(t){t(e)}),a=[]}},N=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){x(e,t),r()},o=function(){r()},r=function(){removeEventListener("pointerup",n,D),removeEventListener("pointercancel",o,D)};addEventListener("pointerup",n,D),addEventListener("pointercancel",o,D)}(t,e):x(t,e)}},A=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach(function(t){return e(t,N,D)})},_=[100,300],F=[2500,4e3],P={},j=[800,1800],W=function e(t){document.prerendering?M(function(){return e(t)}):"complete"!==document.readyState?addEventListener("load",function(){return e(t)},!0):setTimeout(t,0)},U=function(e,t){t=t||{};var n=p("TTFB"),o=f(e,n,j,t.reportAllChanges);W(function(){var r=u();if(r){var s=r.responseStart;if(s<=0||s>performance.now())return;n.value=Math.max(s-h(),0),n.entries=[r],o(!0),d(function(){n=p("TTFB",0),(o=f(e,n,j,t.reportAllChanges))(!0)})}})};class B{constructor(e,t){this.config=e,this.transport=t,this.metrics={}}start(){!function(e,t){t=t||{},O(y(function(){var n,o=p("CLS",0),r=0,s=[],i=function(e){e.forEach(function(e){if(!e.hadRecentInput){var t=s[0],n=s[s.length-1];r&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(r+=e.value,s.push(e)):(r=e.value,s=[e])}}),r>o.value&&(o.value=r,o.entries=s,n())},a=m("layout-shift",i);a&&(n=f(e,o,E,t.reportAllChanges),v(function(){i(a.takeRecords()),n(!0)}),d(function(){r=0,o=p("CLS",0),n=f(e,o,E,t.reportAllChanges),g(function(){return n()})}),setTimeout(n,0))}))}(e=>this.handleMetric(e)),O(e=>this.handleMetric(e)),function(e,t){t=t||{},M(function(){var n,o=C(),i=p("FID"),c=function(e){e.startTime<o.firstHiddenTime&&(i.value=e.processingStart-e.startTime,i.entries.push(e),n(!0))},l=function(e){e.forEach(c)},u=m("first-input",l);n=f(e,i,_,t.reportAllChanges),u&&v(y(function(){l(u.takeRecords()),u.disconnect()})),u&&d(function(){var o;i=p("FID"),n=f(e,i,_,t.reportAllChanges),a=[],s=-1,r=null,A(addEventListener),o=c,a.push(o),L()})})}(e=>this.handleMetric(e)),function(e,t){t=t||{},M(function(){var n,o=C(),r=p("LCP"),s=function(e){var t=e[e.length-1];t&&t.startTime<o.firstHiddenTime&&(r.value=Math.max(t.startTime-h(),0),r.entries=[t],n())},i=m("largest-contentful-paint",s);if(i){n=f(e,r,F,t.reportAllChanges);var a=y(function(){P[r.id]||(s(i.takeRecords()),i.disconnect(),P[r.id]=!0,n(!0))});["keydown","click"].forEach(function(e){addEventListener(e,function(){return setTimeout(a,0)},!0)}),v(a),d(function(o){r=p("LCP"),n=f(e,r,F,t.reportAllChanges),g(function(){r.value=performance.now()-o.timeStamp,P[r.id]=!0,n(!0)})})}})}(e=>this.handleMetric(e)),U(e=>this.handleMetric(e)),this.collectNavigationTimings(),this.collectResourceTimings(),this.config.longTaskThreshold&&this.observeLongTasks()}handleMetric(e){const t=e.name.toLowerCase();this.metrics[t]=e.value,this.config.debug&&console.log(`[DevSkin] Web Vital ${e.name}:`,e.value),this.transport.sendPerformanceMetric({name:e.name,value:e.value,rating:e.rating,delta:e.delta,timestamp:(new Date).toISOString()})}collectNavigationTimings(){window.performance&&window.performance.timing&&window.addEventListener("load",()=>{setTimeout(()=>{const e=window.performance.timing,t=window.performance.navigation,n=e.domContentLoadedEventEnd-e.navigationStart,o=e.loadEventEnd-e.navigationStart;this.metrics.domLoad=n,this.metrics.windowLoad=o,this.config.debug&&console.log("[DevSkin] Navigation Timings:",{domLoad:n,windowLoad:o,navigationType:t.type}),this.transport.sendPerformanceMetric({name:"Navigation",value:o,details:{domLoad:n,windowLoad:o,navigationType:t.type,redirectCount:t.redirectCount,dns:e.domainLookupEnd-e.domainLookupStart,tcp:e.connectEnd-e.connectStart,request:e.responseStart-e.requestStart,response:e.responseEnd-e.responseStart,dom:e.domComplete-e.domLoading},timestamp:(new Date).toISOString()})},0)})}collectResourceTimings(){window.performance&&window.performance.getEntriesByType&&window.addEventListener("load",()=>{setTimeout(()=>{const e=window.performance.getEntriesByType("resource"),t={total:e.length,byType:{},slowest:[]};e.forEach(e=>{const n=e.initiatorType||"other";t.byType[n]=(t.byType[n]||0)+1}),t.slowest=e.map(e=>({name:e.name,duration:e.duration,type:e.initiatorType})).sort((e,t)=>t.duration-e.duration).slice(0,10),this.config.debug&&console.log("[DevSkin] Resource Timings:",t),this.transport.sendPerformanceMetric({name:"Resources",value:e.length,details:t,timestamp:(new Date).toISOString()})},1e3)})}observeLongTasks(){if("PerformanceObserver"in window)try{new PerformanceObserver(e=>{for(const t of e.getEntries())t.duration>=(this.config.longTaskThreshold||50)&&(this.config.debug&&console.log("[DevSkin] Long Task detected:",t),this.transport.sendPerformanceMetric({name:"LongTask",value:t.duration,details:{name:t.name,entryType:t.entryType,startTime:t.startTime},timestamp:(new Date).toISOString()}))}).observe({entryTypes:["longtask"]})}catch(e){this.config.debug&&console.error("[DevSkin] Error observing long tasks:",e)}}getMetrics(){return Object.assign({},this.metrics)}}class H{constructor(e,t){var n;this.config=e,this.transport=t,this.breadcrumbs=[],this.maxBreadcrumbs=(null===(n=e.errorOptions)||void 0===n?void 0:n.maxBreadcrumbs)||30}start(){window.addEventListener("error",e=>{this.handleError(e.error||e.message,{filename:e.filename,lineno:e.lineno,colno:e.colno})}),window.addEventListener("unhandledrejection",e=>{this.handleError(e.reason,{type:"unhandledrejection"})}),this.setupAutomaticBreadcrumbs()}captureError(e,t){this.handleError(e,t)}addBreadcrumb(e){const t={category:e.category,message:e.message,level:e.level||"info",timestamp:(new Date).toISOString(),data:e.data};this.breadcrumbs.push(t),this.breadcrumbs.length>this.maxBreadcrumbs&&this.breadcrumbs.shift(),this.config.debug&&console.log("[DevSkin] Breadcrumb added:",t)}handleError(e,t){var n;if(this.shouldIgnoreError(e))return;let o;if(e instanceof Error){if(o={message:e.message,stack:e.stack,type:e.name||"Error",timestamp:(new Date).toISOString(),session_id:"",url:window.location.href,breadcrumbs:[...this.breadcrumbs],context:Object.assign(Object.assign({},t),{userAgent:navigator.userAgent,viewport:{width:window.innerWidth,height:window.innerHeight}})},e.stack){const t=e.stack.match(/:(\d+):(\d+)/);t&&(o.line=parseInt(t[1],10),o.column=parseInt(t[2],10))}}else o={message:String(e),type:"Error",timestamp:(new Date).toISOString(),session_id:"",url:window.location.href,breadcrumbs:[...this.breadcrumbs],context:t};(null===(n=this.config.errorOptions)||void 0===n?void 0:n.includeLocalVariables)&&t&&(o.context=Object.assign(Object.assign({},o.context),{localVariables:t})),this.config.debug&&console.log("[DevSkin] Error captured:",o),this.addBreadcrumb({category:"error",message:o.message,level:"error",data:{type:o.type,stack:o.stack}}),this.transport.sendError(o)}shouldIgnoreError(e){var t,n;const o=(null===(t=this.config.errorOptions)||void 0===t?void 0:t.ignoreErrors)||[],r=e instanceof Error?e.message:String(e);for(const e of o)if(e instanceof RegExp){if(e.test(r))return!0}else if("string"==typeof e&&r.includes(e))return!0;const s=(null===(n=this.config.errorOptions)||void 0===n?void 0:n.denyUrls)||[],i=e instanceof Error?e.stack:"";for(const e of s)if(e.test(i||""))return!0;return!1}setupAutomaticBreadcrumbs(){this.wrapConsole(),document.addEventListener("click",e=>{var t;const n=e.target;this.addBreadcrumb({category:"ui.click",message:`Clicked on ${n.tagName}`,data:{tagName:n.tagName,id:n.id,className:n.className,innerText:null===(t=n.innerText)||void 0===t?void 0:t.substring(0,100)}})},!0);let e=window.location.href;const t=()=>{e!==window.location.href&&(this.addBreadcrumb({category:"navigation",message:`Navigated to ${window.location.pathname}`,data:{from:e,to:window.location.href}}),e=window.location.href)};window.addEventListener("popstate",t),window.addEventListener("hashchange",t);const n=history.pushState;history.pushState=function(...e){n.apply(this,e),t()};const o=history.replaceState;history.replaceState=function(...e){o.apply(this,e),t()}}wrapConsole(){["log","info","warn","error"].forEach(e=>{const t=console[e];console[e]=(...n)=>{if(t.apply(console,n),"warn"===e||"error"===e){const t=n.map(e=>String(e)).join(" ");if(t.startsWith("[DevSkin]"))return;this.addBreadcrumb({category:"console",message:t,level:"warn"===e?"warning":"error",data:{arguments:n}})}}})}getBreadcrumbs(){return[...this.breadcrumbs]}}class z{constructor(e,t){this.config=e,this.transport=t}start(){this.interceptFetch(),this.interceptXHR()}interceptFetch(){if(!window.fetch)return;const e=window.fetch;window.fetch=(...n)=>t(this,void 0,void 0,function*(){var t,o,r;const[s,i]=n,a="string"==typeof s?s:s instanceof Request?s.url:s.toString(),c=(null==i?void 0:i.method)||"GET",l=Date.now();try{const s=yield e(...n),i=s.clone(),d=Date.now()-l;if(this.shouldIgnoreUrl(a))return s;if((null===(t=this.config.networkRequestOptions)||void 0===t?void 0:t.captureFailedOnly)&&s.ok)return s;const u={url:a,method:c,status:s.status,duration:d,size:yield this.getResponseSize(i),type:"fetch",timestamp:(new Date).toISOString(),failed:!s.ok};if((null===(o=this.config.networkRequestOptions)||void 0===o?void 0:o.captureHeaders)&&(u.headers=this.headersToObject(s.headers)),(null===(r=this.config.networkRequestOptions)||void 0===r?void 0:r.captureBody)&&!s.ok)try{const e=yield i.text();u.body=e.substring(0,1e4)}catch(e){}return this.config.debug&&console.log("[DevSkin] Network request tracked:",u),this.transport.sendNetworkRequest(u),s}catch(e){const t=Date.now()-l;if(!this.shouldIgnoreUrl(a)){const e={url:a,method:c,duration:t,type:"fetch",timestamp:(new Date).toISOString(),failed:!0};this.config.debug&&console.log("[DevSkin] Network request failed:",e),this.transport.sendNetworkRequest(e)}throw e}})}interceptXHR(){const e=XMLHttpRequest.prototype.open,t=XMLHttpRequest.prototype.send;XMLHttpRequest.prototype.open=function(t,n,o,r,s){return this.__devskin={method:t,url:n.toString(),startTime:Date.now()},void 0!==r?e.call(this,t,n,null==o||o,r,null!=s?s:void 0):void 0!==o?e.call(this,t,n,o):e.call(this,t,n,!0)},XMLHttpRequest.prototype.send=function(e){const n=this,o=n.__devskin;if(!o)return t.call(this,e);const r=window.__devskinNetworkCollector,s=()=>{const e=Date.now()-o.startTime;if(!(null==r?void 0:r.shouldIgnoreUrl(o.url))){const t={url:o.url,method:o.method,duration:e,type:"xhr",timestamp:(new Date).toISOString(),failed:!0};(null==r?void 0:r.config.debug)&&console.log("[DevSkin] XHR request failed:",t),null==r||r.transport.sendNetworkRequest(t)}};return n.addEventListener("load",()=>{var e,t,s,i;const a=Date.now()-o.startTime;if(null==r?void 0:r.shouldIgnoreUrl(o.url))return;if((null===(e=null==r?void 0:r.config.networkRequestOptions)||void 0===e?void 0:e.captureFailedOnly)&&n.status>=200&&n.status<400)return;const c={url:o.url,method:o.method,status:n.status,duration:a,type:"xhr",timestamp:(new Date).toISOString(),failed:0===n.status||n.status>=400};if((null===(t=null==r?void 0:r.config.networkRequestOptions)||void 0===t?void 0:t.captureHeaders)&&(c.headers=r.parseResponseHeaders(n.getAllResponseHeaders())),(null===(s=null==r?void 0:r.config.networkRequestOptions)||void 0===s?void 0:s.captureBody)&&c.failed)try{c.body=null===(i=n.responseText)||void 0===i?void 0:i.substring(0,1e4)}catch(e){}(null==r?void 0:r.config.debug)&&console.log("[DevSkin] XHR request tracked:",c),null==r||r.transport.sendNetworkRequest(c)}),n.addEventListener("error",s),n.addEventListener("abort",s),t.call(this,e)},window.__devskinNetworkCollector=this}shouldIgnoreUrl(e){var t;if(e.includes(this.config.apiUrl||""))return!0;const n=(null===(t=this.config.networkRequestOptions)||void 0===t?void 0:t.ignoreUrls)||[];for(const t of n)if(t.test(e))return!0;return!1}getResponseSize(e){return t(this,void 0,void 0,function*(){try{return(yield e.blob()).size}catch(e){return}})}headersToObject(e){const t={};return e.forEach((e,n)=>{t[n]=e}),t}parseResponseHeaders(e){const t={};if(!e)return t;return e.trim().split(/[\r\n]+/).forEach(e=>{const n=e.split(": "),o=n.shift(),r=n.join(": ");o&&(t[o]=r)}),t}}class q{constructor(e,t){this.config=e,this.transport=t,this.clickData=[],this.scrollData=[],this.mouseMoveData=[],this.maxScrollDepth=0,this.flushInterval=null,this.mouseMoveSampling=.1}start(){var e;(null===(e=this.config.heatmapOptions)||void 0===e?void 0:e.enabled)&&(this.config.debug&&console.log("[DevSkin] Starting heatmap collection"),!1!==this.config.heatmapOptions.trackClicks&&this.trackClicks(),!1!==this.config.heatmapOptions.trackScroll&&this.trackScrollDepth(),this.config.heatmapOptions.trackMouseMovement&&(this.mouseMoveSampling=this.config.heatmapOptions.mouseMoveSampling||.1,this.trackMouseMovement()),this.flushInterval=setInterval(()=>{this.flush()},1e4),window.addEventListener("beforeunload",()=>{this.flush()}))}stop(){this.flushInterval&&(clearInterval(this.flushInterval),this.flushInterval=null),this.flush()}trackClicks(){document.addEventListener("click",e=>{const t=e.target,n=t.getBoundingClientRect(),o=e.clientX-n.left,r=e.clientY-n.top,s=e.clientX+window.scrollX,i=e.clientY+window.scrollY,a={x:e.clientX,y:e.clientY,relativeX:o,relativeY:r,pageX:s,pageY:i,element:this.getElementSelector(t),elementId:t.id||void 0,elementClass:t.className||void 0,pageUrl:window.location.href,timestamp:(new Date).toISOString(),viewportWidth:window.innerWidth,viewportHeight:window.innerHeight};this.clickData.push(a),this.config.debug&&console.log("[DevSkin] Click tracked:",a),this.clickData.length>=50&&this.flush()},!0)}trackScrollDepth(){const e=()=>{const e=window.innerHeight,t=document.documentElement.scrollHeight,n=window.scrollY||document.documentElement.scrollTop,o=Math.round((n+e)/t*100);if(o>this.maxScrollDepth){this.maxScrollDepth=o;const n={depth:o,maxDepth:this.maxScrollDepth,pageHeight:t,viewportHeight:e,pageUrl:window.location.href,timestamp:(new Date).toISOString()};this.scrollData.push(n),this.config.debug&&console.log("[DevSkin] Scroll depth:",o+"%")}};let t=null;window.addEventListener("scroll",()=>{t&&clearTimeout(t),t=setTimeout(e,100)}),e()}trackMouseMovement(){let e=null;window.addEventListener("mousemove",t=>{if(Math.random()>this.mouseMoveSampling)return;if(e)return;e=setTimeout(()=>{e=null},100);const n={x:t.clientX+window.scrollX,y:t.clientY+window.scrollY,pageUrl:window.location.href,timestamp:(new Date).toISOString()};this.mouseMoveData.push(n),this.mouseMoveData.length>=100&&this.flush()})}flush(){this.clickData.length>0&&(this.clickData.forEach(e=>{this.transport.sendHeatmapData(Object.assign({type:"click"},e))}),this.clickData=[]),this.scrollData.length>0&&(this.scrollData.forEach(e=>{this.transport.sendHeatmapData(Object.assign({type:"scroll"},e))}),this.scrollData=[]),this.mouseMoveData.length>0&&(this.mouseMoveData.forEach(e=>{this.transport.sendHeatmapData(Object.assign({type:"mousemove"},e))}),this.mouseMoveData=[])}getElementSelector(e){if(e.id)return`#${e.id}`;if(e.className){const t=e.className.split(" ").filter(e=>e);if(t.length>0)return`${e.tagName.toLowerCase()}.${t.join(".")}`}return e.tagName.toLowerCase()}}function $(e){const t=null==e?void 0:e.host;return Boolean((null==t?void 0:t.shadowRoot)===e)}function V(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function G(e){try{const n=e.rules||e.cssRules;return n?((t=Array.from(n,X).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}var t}function X(e){let t;if(function(e){return"styleSheet"in e}(e))try{t=G(e.styleSheet)||function(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch(e){}else if(function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":"))return function(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}(e.cssText);return t||e.cssText}!function(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"}(c||(c={}));class K{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){var t;if(!e)return-1;const n=null===(t=this.getMeta(e))||void 0===t?void 0:t.id;return null!=n?n:-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 n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Y({element:e,maskInputOptions:t,tagName:n,type:o,value:r,maskInputFn:s}){let i=r||"";const a=o&&J(o);return(t[n.toLowerCase()]||a&&t[a])&&(i=s?s(i,e):"*".repeat(i.length)),i}function J(e){return e.toLowerCase()}const Z="__rrweb_original__";function Q(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?J(t):null}function ee(e,t){var n;let o;try{o=new URL(e,null!=t?t:window.location.href)}catch(e){return null}const r=o.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!==(n=null==r?void 0:r[1])&&void 0!==n?n:null}let te=1;const ne=new RegExp("[^a-z0-9-_:]");function oe(){return te++}let re,se;const ie=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,ae=/^(?:[a-z+]+:)?\/\//i,ce=/^www\..*/i,le=/^(data:)([^,]*),(.*)/i;function de(e,t){return(e||"").replace(ie,(e,n,o,r,s,i)=>{const a=o||s||i,c=n||r||"";if(!a)return e;if(ae.test(a)||ce.test(a))return`url(${c}${a}${c})`;if(le.test(a))return`url(${c}${a}${c})`;if("/"===a[0])return`url(${c}${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}${c})`;const l=t.split("/"),d=a.split("/");l.pop();for(const e of d)"."!==e&&(".."===e?l.pop():l.push(e));return`url(${c}${l.join("/")}${c})`})}const ue=/^[^ \t\n\r\u000c]+/,he=/^[, \t\n\r\u000c]+/;function pe(e,t){if(!t||""===t.trim())return t;const n=e.createElement("a");return n.href=t,n.href}function me(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function fe(){const e=document.createElement("a");return e.href="",e.href}function ge(e,t,n,o){return o?"src"===n||"href"===n&&("use"!==t||"#"!==o[0])||"xlink:href"===n&&"#"!==o[0]?pe(e,o):"background"!==n||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===n?function(e,t){if(""===t.trim())return t;let n=0;function o(e){let o;const r=e.exec(t.substring(n));return r?(o=r[0],n+=o.length,o):""}const r=[];for(;o(he),!(n>=t.length);){let s=o(ue);if(","===s.slice(-1))s=pe(e,s.substring(0,s.length-1)),r.push(s);else{let o="";s=pe(e,s);let i=!1;for(;;){const e=t.charAt(n);if(""===e){r.push((s+o).trim());break}if(i)")"===e&&(i=!1);else{if(","===e){n+=1,r.push((s+o).trim());break}"("===e&&(i=!0)}o+=e,n+=1}}}return r.join(", ")}(e,o):"style"===n?de(o,fe()):"object"===t&&"data"===n?pe(e,o):o:pe(e,o):o}function ve(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function ye(e,t,n){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!n&&ye(e.parentNode,t,n);for(let n=e.classList.length;n--;){const o=e.classList[n];if(t.test(o))return!0}return!!n&&ye(e.parentNode,t,n)}function Se(e,t,n,o){try{const r=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===r)return!1;if("string"==typeof t){if(o){if(r.closest(`.${t}`))return!0}else if(r.classList.contains(t))return!0}else if(ye(r,t,o))return!0;if(n)if(o){if(r.closest(n))return!0}else if(r.matches(n))return!0}catch(e){}return!1}function be(e,t){const{doc:n,mirror:o,blockClass:r,blockSelector:s,needsMask:i,inlineStylesheet:a,maskInputOptions:l={},maskTextFn:d,maskInputFn:u,dataURLOptions:h={},inlineImages:p,recordCanvas:m,keepIframeSrcFn:f,newlyAddedElement:g=!1}=t,v=function(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}(n,o);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:c.Document,childNodes:[],compatMode:e.compatMode}:{type:c.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:c.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:v};case e.ELEMENT_NODE:return function(e,t){const{doc:n,blockClass:o,blockSelector:r,inlineStylesheet:s,maskInputOptions:i={},maskInputFn:a,dataURLOptions:l={},inlineImages:d,recordCanvas:u,keepIframeSrcFn:h,newlyAddedElement:p=!1,rootId:m}=t,f=function(e,t,n){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){const o=e.classList[n];if(t.test(o))return!0}if(n)return e.matches(n)}catch(e){}return!1}(e,o,r),g=function(e){if(e instanceof HTMLFormElement)return"form";const t=J(e.tagName);return ne.test(t)?"div":t}(e);let v={};const y=e.attributes.length;for(let t=0;t<y;t++){const o=e.attributes[t];ve(g,o.name,o.value)||(v[o.name]=ge(n,g,J(o.name),o.value))}if("link"===g&&s){const t=Array.from(n.styleSheets).find(t=>t.href===e.href);let o=null;t&&(o=G(t)),o&&(delete v.rel,delete v.href,v._cssText=de(o,t.href))}if("style"===g&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=G(e.sheet);t&&(v._cssText=de(t,fe()))}if("input"===g||"textarea"===g||"select"===g){const t=e.value,n=e.checked;"radio"!==v.type&&"checkbox"!==v.type&&"submit"!==v.type&&"button"!==v.type&&t?v.value=Y({element:e,type:Q(e),tagName:g,value:t,maskInputOptions:i,maskInputFn:a}):n&&(v.checked=n)}"option"===g&&(e.selected&&!i.select?v.selected=!0:delete v.selected);if("canvas"===g&&u)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let o=0;o<e.height;o+=50){const r=t.getImageData,s=Z in r?r[Z]:r;if(new Uint32Array(s.call(t,n,o,Math.min(50,e.width-n),Math.min(50,e.height-o)).data.buffer).some(e=>0!==e))return!1}return!0})(e)||(v.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){const t=e.toDataURL(l.type,l.quality),n=document.createElement("canvas");n.width=e.width,n.height=e.height;t!==n.toDataURL(l.type,l.quality)&&(v.rr_dataURL=t)}if("img"===g&&d){re||(re=n.createElement("canvas"),se=re.getContext("2d"));const t=e,o=t.crossOrigin;t.crossOrigin="anonymous";const r=()=>{t.removeEventListener("load",r);try{re.width=t.naturalWidth,re.height=t.naturalHeight,se.drawImage(t,0,0),v.rr_dataURL=re.toDataURL(l.type,l.quality)}catch(e){console.warn(`Cannot inline img src=${t.currentSrc}! Error: ${e}`)}o?v.crossOrigin=o:t.removeAttribute("crossorigin")};t.complete&&0!==t.naturalWidth?r():t.addEventListener("load",r)}if("audio"===g||"video"===g){const t=v;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}p||(e.scrollLeft&&(v.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(v.rr_scrollTop=e.scrollTop));if(f){const{width:t,height:n}=e.getBoundingClientRect();v={class:v.class,rr_width:`${t}px`,rr_height:`${n}px`}}"iframe"!==g||h(v.src)||(e.contentDocument||(v.rr_src=v.src),delete v.src);let S;try{customElements.get(g)&&(S=!0)}catch(e){}return{type:c.Element,tagName:g,attributes:v,childNodes:[],isSVG:me(e)||void 0,needBlock:f,rootId:m,isCustom:S}}(e,{doc:n,blockClass:r,blockSelector:s,inlineStylesheet:a,maskInputOptions:l,maskInputFn:u,dataURLOptions:h,inlineImages:p,recordCanvas:m,keepIframeSrcFn:f,newlyAddedElement:g,rootId:v});case e.TEXT_NODE:return function(e,t){var n;const{needsMask:o,maskTextFn:r,rootId:s}=t,i=e.parentNode&&e.parentNode.tagName;let a=e.textContent;const l="STYLE"===i||void 0,d="SCRIPT"===i||void 0;if(l&&a){try{e.nextSibling||e.previousSibling||(null===(n=e.parentNode.sheet)||void 0===n?void 0:n.cssRules)&&(a=G(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}a=de(a,fe())}d&&(a="SCRIPT_PLACEHOLDER");!l&&!d&&a&&o&&(a=r?r(a,e.parentElement):a.replace(/[\S]/g,"*"));return{type:c.Text,textContent:a||"",isStyle:l,rootId:s}}(e,{needsMask:i,maskTextFn:d,rootId:v});case e.CDATA_SECTION_NODE:return{type:c.CDATA,textContent:"",rootId:v};case e.COMMENT_NODE:return{type:c.Comment,textContent:e.textContent||"",rootId:v};default:return!1}}function we(e){return null==e?"":e.toLowerCase()}function ke(e,t){const{doc:n,mirror:o,blockClass:r,blockSelector:s,maskTextClass:i,maskTextSelector:a,skipChild:l=!1,inlineStylesheet:d=!0,maskInputOptions:u={},maskTextFn:h,maskInputFn:p,slimDOMOptions:m,dataURLOptions:f={},inlineImages:g=!1,recordCanvas:v=!1,onSerialize:y,onIframeLoad:S,iframeLoadTimeout:b=5e3,onStylesheetLoad:w,stylesheetLoadTimeout:k=5e3,keepIframeSrcFn:I=()=>!1,newlyAddedElement:C=!1}=t;let{needsMask:M}=t,{preserveWhiteSpace:T=!0}=t;if(!M&&e.childNodes){M=Se(e,i,a,void 0===M)}const O=be(e,{doc:n,mirror:o,blockClass:r,blockSelector:s,needsMask:M,inlineStylesheet:d,maskInputOptions:u,maskTextFn:h,maskInputFn:p,dataURLOptions:f,inlineImages:g,recordCanvas:v,keepIframeSrcFn:I,newlyAddedElement:C});if(!O)return console.warn(e,"not serialized"),null;let E;E=o.hasNode(e)?o.getId(e):!function(e,t){if(t.comment&&e.type===c.Comment)return!0;if(e.type===c.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"===ee(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(we(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===we(e.attributes.name)||"icon"===we(e.attributes.rel)||"apple-touch-icon"===we(e.attributes.rel)||"shortcut icon"===we(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&we(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(we(e.attributes.property).match(/^(og|twitter|fb):/)||we(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===we(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===we(e.attributes.name)||"googlebot"===we(e.attributes.name)||"bingbot"===we(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===we(e.attributes.name)||"generator"===we(e.attributes.name)||"framework"===we(e.attributes.name)||"publisher"===we(e.attributes.name)||"progid"===we(e.attributes.name)||we(e.attributes.property).match(/^article:/)||we(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===we(e.attributes.name)||"yandex-verification"===we(e.attributes.name)||"csrf-token"===we(e.attributes.name)||"p:domain_verify"===we(e.attributes.name)||"verify-v1"===we(e.attributes.name)||"verification"===we(e.attributes.name)||"shopify-checkout-api-token"===we(e.attributes.name)))return!0}}return!1}(O,m)&&(T||O.type!==c.Text||O.isStyle||O.textContent.replace(/^\s+|\s+$/gm,"").length)?oe():-2;const D=Object.assign(O,{id:E});if(o.add(e,D),-2===E)return null;y&&y(e);let R=!l;if(D.type===c.Element){R=R&&!D.needBlock,delete D.needBlock;const t=e.shadowRoot;t&&V(t)&&(D.isShadowHost=!0)}if((D.type===c.Document||D.type===c.Element)&&R){m.headWhitespace&&D.type===c.Element&&"head"===D.tagName&&(T=!1);const t={doc:n,mirror:o,blockClass:r,blockSelector:s,needsMask:M,maskTextClass:i,maskTextSelector:a,skipChild:l,inlineStylesheet:d,maskInputOptions:u,maskTextFn:h,maskInputFn:p,slimDOMOptions:m,dataURLOptions:f,inlineImages:g,recordCanvas:v,preserveWhiteSpace:T,onSerialize:y,onIframeLoad:S,iframeLoadTimeout:b,onStylesheetLoad:w,stylesheetLoadTimeout:k,keepIframeSrcFn:I};if(D.type===c.Element&&"textarea"===D.tagName&&void 0!==D.attributes.value);else for(const n of Array.from(e.childNodes)){const e=ke(n,t);e&&D.childNodes.push(e)}if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const o=ke(n,t);o&&(V(e.shadowRoot)&&(o.isShadow=!0),D.childNodes.push(o))}}return e.parentNode&&$(e.parentNode)&&V(e.parentNode)&&(D.isShadow=!0),D.type===c.Element&&"iframe"===D.tagName&&function(e,t,n){const o=e.contentWindow;if(!o)return;let r,s=!1;try{r=o.document.readyState}catch(e){return}if("complete"!==r){const o=setTimeout(()=>{s||(t(),s=!0)},n);return void e.addEventListener("load",()=>{clearTimeout(o),s=!0,t()})}const i="about:blank";if(o.location.href!==i||e.src===i||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{const t=e.contentDocument;if(t&&S){const n=ke(t,{doc:t,mirror:o,blockClass:r,blockSelector:s,needsMask:M,maskTextClass:i,maskTextSelector:a,skipChild:!1,inlineStylesheet:d,maskInputOptions:u,maskTextFn:h,maskInputFn:p,slimDOMOptions:m,dataURLOptions:f,inlineImages:g,recordCanvas:v,preserveWhiteSpace:T,onSerialize:y,onIframeLoad:S,iframeLoadTimeout:b,onStylesheetLoad:w,stylesheetLoadTimeout:k,keepIframeSrcFn:I});n&&S(e,n)}},b),D.type===c.Element&&"link"===D.tagName&&"string"==typeof D.attributes.rel&&("stylesheet"===D.attributes.rel||"preload"===D.attributes.rel&&"string"==typeof D.attributes.href&&"css"===ee(D.attributes.href))&&function(e,t,n){let o,r=!1;try{o=e.sheet}catch(e){return}if(o)return;const s=setTimeout(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{clearTimeout(s),r=!0,t()})}(e,()=>{if(w){const t=ke(e,{doc:n,mirror:o,blockClass:r,blockSelector:s,needsMask:M,maskTextClass:i,maskTextSelector:a,skipChild:!1,inlineStylesheet:d,maskInputOptions:u,maskTextFn:h,maskInputFn:p,slimDOMOptions:m,dataURLOptions:f,inlineImages:g,recordCanvas:v,preserveWhiteSpace:T,onSerialize:y,onIframeLoad:S,iframeLoadTimeout:b,onStylesheetLoad:w,stylesheetLoadTimeout:k,keepIframeSrcFn:I});t&&w(e,t)}},k),D}function Ie(e,t,n=document){const o={capture:!0,passive:!0};return n.addEventListener(e,t,o),()=>n.removeEventListener(e,t,o)}const Ce="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 Me={map:{},getId:()=>(console.error(Ce),-1),getNode:()=>(console.error(Ce),null),removeNodeFromMap(){console.error(Ce)},has:()=>(console.error(Ce),!1),reset(){console.error(Ce)}};function Te(e,t,n={}){let o=null,r=0;return function(...s){const i=Date.now();r||!1!==n.leading||(r=i);const a=t-(i-r),c=this;a<=0||a>t?(o&&(clearTimeout(o),o=null),r=i,e.apply(c,s)):o||!1===n.trailing||(o=setTimeout(()=>{r=!1===n.leading?0:Date.now(),o=null,e.apply(c,s)},a))}}function Oe(e,t,n,o,r=window){const s=r.Object.getOwnPropertyDescriptor(e,t);return r.Object.defineProperty(e,t,o?n:{set(e){setTimeout(()=>{n.set.call(this,e)},0),s&&s.set&&s.set.call(this,e)}}),()=>Oe(e,t,s||{},!0)}function Ee(e,t,n){try{if(!(t in e))return()=>{};const o=e[t],r=n(o);return"function"==typeof r&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:o}})),e[t]=r,()=>{e[t]=o}}catch(e){return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Me=new Proxy(Me,{get:(e,t,n)=>("map"===t&&console.error(Ce),Reflect.get(e,t,n))}));let De=Date.now;function Re(e){var t,n,o,r,s,i;const a=e.document;return{left:a.scrollingElement?a.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:(null==a?void 0:a.documentElement.scrollLeft)||(null===(n=null===(t=null==a?void 0:a.body)||void 0===t?void 0:t.parentElement)||void 0===n?void 0:n.scrollLeft)||(null===(o=null==a?void 0:a.body)||void 0===o?void 0:o.scrollLeft)||0,top:a.scrollingElement?a.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==a?void 0:a.documentElement.scrollTop)||(null===(s=null===(r=null==a?void 0:a.body)||void 0===r?void 0:r.parentElement)||void 0===s?void 0:s.scrollTop)||(null===(i=null==a?void 0:a.body)||void 0===i?void 0:i.scrollTop)||0}}function xe(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Le(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Ne(e){if(!e)return null;return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}function Ae(e,t,n,o){if(!e)return!1;const r=Ne(e);if(!r)return!1;try{if("string"==typeof t){if(r.classList.contains(t))return!0;if(o&&null!==r.closest("."+t))return!0}else if(ye(r,t,o))return!0}catch(e){}if(n){if(r.matches(n))return!0;if(o&&null!==r.closest(n))return!0}return!1}function _e(e,t){return-2===t.getId(e)}function Fe(e,t){if($(e))return!1;const n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||Fe(e.parentNode,t))}function Pe(e){return Boolean(e.changedTouches)}function je(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function We(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function Ue(e){return Boolean(null==e?void 0:e.shadowRoot)}/[1-9][0-9]{12}/.test(Date.now().toString())||(De=()=>(new Date).getTime());class Be{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){var t;return null!==(t=this.styleIDMap.get(e))&&void 0!==t?t:-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}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 He(e){var t,n;let o=null;return(null===(n=null===(t=e.getRootNode)||void 0===t?void 0:t.call(e))||void 0===n?void 0:n.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(o=e.getRootNode().host),o}function ze(e){const t=e.ownerDocument;if(!t)return!1;const n=function(e){let t,n=e;for(;t=He(n);)n=t;return n}(e);return t.contains(n)}function qe(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||ze(e))}var $e=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))($e||{}),Ve=(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))(Ve||{}),Ge=(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))(Ge||{}),Xe=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Xe||{}),Ke=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Ke||{});function Ye(e){return"__ln"in e}class Je{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)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&&Ye(e.previousSibling)){const n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&Ye(e.nextSibling)&&e.nextSibling.__ln.previous){const n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.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 Ze=(e,t)=>`${e}@${t}`;class Qe{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,n=new Je,o=e=>{let t=e,n=-2;for(;-2===n;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},r=r=>{if(!r.parentNode||!qe(r)||"TEXTAREA"===r.parentNode.tagName)return;const s=$(r.parentNode)?this.mirror.getId(He(r)):this.mirror.getId(r.parentNode),i=o(r);if(-1===s||-1===i)return n.addNode(r);const a=ke(r,{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=>{je(e,this.mirror)&&this.iframeManager.addIframe(e),We(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),Ue(r)&&this.shadowDomManager.addShadowRoot(r.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});a&&(e.push({parentId:s,nextId:i,node:a}),t.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)tt(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||r(e);for(const e of this.addedSet)ot(this.droppedSet,e)||tt(this.removes,e,this.mirror)?ot(this.movedSet,e)?r(e):this.droppedSet.add(e):r(e);let s=null;for(;n.length;){let e=null;if(s){const t=this.mirror.getId(s.value.parentNode),n=o(s.value);-1!==t&&-1!==n&&(e=s)}if(!e){let t=n.tail;for(;t;){const n=t;if(t=t.previous,n){const t=this.mirror.getId(n.value.parentNode);if(-1===o(n.value))continue;if(-1!==t){e=n;break}{const t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const o=t.parentNode.host;if(-1!==this.mirror.getId(o)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}s=e.previous,n.removeNode(e.value),r(e.value)}const i={texts:this.texts.map(e=>{const t=e.node;return t.parentNode&&"TEXTAREA"===t.parentNode.tagName&&this.genTextAreaValueMutation(t.parentNode),{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 n=JSON.stringify(e.styleDiff),o=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+o).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};(i.texts.length||i.attributes.length||i.removes.length||i.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.movedMap={},this.mutationCb(i))},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(e.childNodes,e=>e.textContent||"").join("")},this.processMutation=e=>{if(!_e(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;Ae(e.target,this.blockClass,this.blockSelector,!1)||t===e.oldValue||this.texts.push({value:Se(e.target,this.maskTextClass,this.maskTextSelector,!0)&&t?this.maskTextFn?this.maskTextFn(t,Ne(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let n=e.attributeName,o=e.target.getAttribute(n);if("value"===n){const e=Q(t);o=Y({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:e,value:o,maskInputFn:this.maskInputFn})}if(Ae(e.target,this.blockClass,this.blockSelector,!1)||o===e.oldValue)return;let r=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(o)){if(t.contentDocument)return;n="rr_src"}if(r||(r={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(r),this.attributeMap.set(e.target,r)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!ve(t.tagName,n)&&(r.attributes[n]=ge(this.doc,J(t.tagName),J(n),o),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}const n=this.unattachedDoc.createElement("span");e.oldValue&&n.setAttribute("style",e.oldValue);for(const e of Array.from(t.style)){const o=t.style.getPropertyValue(e),s=t.style.getPropertyPriority(e);o!==n.style.getPropertyValue(e)||s!==n.style.getPropertyPriority(e)?r.styleDiff[e]=""===s?o:[o,s]:r._unchangedStyles[e]=[o,s]}for(const e of Array.from(n.style))""===t.style.getPropertyValue(e)&&(r.styleDiff[e]=!1)}break}case"childList":if(Ae(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 n=this.mirror.getId(t),o=$(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);Ae(e.target,this.blockClass,this.blockSelector,!1)||_e(t,this.mirror)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(et(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||Fe(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[Ze(n,o)]?et(this.movedSet,t):this.removes.push({parentId:o,id:n,isShadow:!(!$(e.target)||!V(e.target))||void 0})),this.mapRemoves.push(t))})}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(_e(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[Ze(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);Ae(e,this.blockClass,this.blockSelector,!1)||(e.childNodes.forEach(e=>this.genAdds(e)),Ue(e)&&e.shadowRoot.childNodes.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 et(e,t){e.delete(t),t.childNodes.forEach(t=>et(e,t))}function tt(e,t,n){return 0!==e.length&&nt(e,t,n)}function nt(e,t,n){const{parentNode:o}=t;if(!o)return!1;const r=n.getId(o);return!!e.some(e=>e.id===r)||nt(e,o,n)}function ot(e,t){return 0!==e.size&&rt(e,t)}function rt(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||rt(e,n))}let st;function it(e){st=e}function at(){st=void 0}const ct=e=>{if(!st)return e;return(...t)=>{try{return e(...t)}catch(e){if(st&&!0===st(e))return;throw e}}},lt=[];function dt(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(e){}return e&&e.target}function ut(e,t){var n,o;const r=new Qe;lt.push(r),r.init(e);let s=window.MutationObserver||window.__rrMutationObserver;const i=null===(o=null===(n=null===window||void 0===window?void 0:window.Zone)||void 0===n?void 0:n.__symbol__)||void 0===o?void 0:o.call(n,"MutationObserver");i&&window[i]&&(s=window[i]);const a=new s(ct(r.processMutations.bind(r)));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function ht({mouseInteractionCb:e,doc:t,mirror:n,blockClass:o,blockSelector:r,sampling:s}){if(!1===s.mouseInteraction)return()=>{};const i=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,a=[];let c=null;return Object.keys(Ge).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==i[e]).forEach(s=>{let i=J(s);const l=(t=>s=>{const i=dt(s);if(Ae(i,o,r,!0))return;let a=null,l=t;if("pointerType"in s){switch(s.pointerType){case"mouse":a=Xe.Mouse;break;case"touch":a=Xe.Touch;break;case"pen":a=Xe.Pen}a===Xe.Touch?Ge[t]===Ge.MouseDown?l="TouchStart":Ge[t]===Ge.MouseUp&&(l="TouchEnd"):Xe.Pen}else Pe(s)&&(a=Xe.Touch);null!==a?(c=a,(l.startsWith("Touch")&&a===Xe.Touch||l.startsWith("Mouse")&&a===Xe.Mouse)&&(a=null)):Ge[t]===Ge.Click&&(a=c,c=null);const d=Pe(s)?s.changedTouches[0]:s;if(!d)return;const u=n.getId(i),{clientX:h,clientY:p}=d;ct(e)(Object.assign({type:Ge[l],id:u,x:h,y:p},null!==a&&{pointerType:a}))})(s);if(window.PointerEvent)switch(Ge[s]){case Ge.MouseDown:case Ge.MouseUp:i=i.replace("mouse","pointer");break;case Ge.TouchStart:case Ge.TouchEnd:return}a.push(Ie(i,l,t))}),ct(()=>{a.forEach(e=>e())})}function pt({scrollCb:e,doc:t,mirror:n,blockClass:o,blockSelector:r,sampling:s}){return Ie("scroll",ct(Te(ct(s=>{const i=dt(s);if(!i||Ae(i,o,r,!0))return;const a=n.getId(i);if(i===t&&t.defaultView){const n=Re(t.defaultView);e({id:a,x:n.left,y:n.top})}else e({id:a,x:i.scrollLeft,y:i.scrollTop})}),s.scroll||100)),t)}const mt=["INPUT","TEXTAREA","SELECT"],ft=new WeakMap;function gt(e){return function(e,t){if(bt("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||bt("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||bt("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||bt("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){const n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function vt(e,t,n){let o,r;return e?(e.ownerNode?o=t.getId(e.ownerNode):r=n.getId(e),{styleId:r,id:o}):{}}function yt({mirror:e,stylesheetManager:t},n){var o,r,s;let i=null;i="#document"===n.nodeName?e.getId(n):e.getId(n.host);const a="#document"===n.nodeName?null===(o=n.defaultView)||void 0===o?void 0:o.Document:null===(s=null===(r=n.ownerDocument)||void 0===r?void 0:r.defaultView)||void 0===s?void 0:s.ShadowRoot,c=(null==a?void 0:a.prototype)?Object.getOwnPropertyDescriptor(null==a?void 0:a.prototype,"adoptedStyleSheets"):void 0;return null!==i&&-1!==i&&a&&c?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get(){var e;return null===(e=c.get)||void 0===e?void 0:e.call(this)},set(e){var n;const o=null===(n=c.set)||void 0===n?void 0:n.call(this,e);if(null!==i&&-1!==i)try{t.adoptStyleSheets(e,i)}catch(e){}return o}}),ct(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})})):()=>{}}function St(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let o;!function(e,t){const{mutationCb:n,mousemoveCb:o,mouseInteractionCb:r,scrollCb:s,viewportResizeCb:i,inputCb:a,mediaInteractionCb:c,styleSheetRuleCb:l,styleDeclarationCb:d,canvasMutationCb:u,fontCb:h,selectionCb:p,customElementCb:m}=e;e.mutationCb=(...e)=>{t.mutation&&t.mutation(...e),n(...e)},e.mousemoveCb=(...e)=>{t.mousemove&&t.mousemove(...e),o(...e)},e.mouseInteractionCb=(...e)=>{t.mouseInteraction&&t.mouseInteraction(...e),r(...e)},e.scrollCb=(...e)=>{t.scroll&&t.scroll(...e),s(...e)},e.viewportResizeCb=(...e)=>{t.viewportResize&&t.viewportResize(...e),i(...e)},e.inputCb=(...e)=>{t.input&&t.input(...e),a(...e)},e.mediaInteractionCb=(...e)=>{t.mediaInteaction&&t.mediaInteaction(...e),c(...e)},e.styleSheetRuleCb=(...e)=>{t.styleSheetRule&&t.styleSheetRule(...e),l(...e)},e.styleDeclarationCb=(...e)=>{t.styleDeclaration&&t.styleDeclaration(...e),d(...e)},e.canvasMutationCb=(...e)=>{t.canvasMutation&&t.canvasMutation(...e),u(...e)},e.fontCb=(...e)=>{t.font&&t.font(...e),h(...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&&(o=ut(e,e.doc));const r=function({mousemoveCb:e,sampling:t,doc:n,mirror:o}){if(!1===t.mousemove)return()=>{};const r="number"==typeof t.mousemove?t.mousemove:50,s="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let i,a=[];const c=Te(ct(t=>{const n=Date.now()-i;e(a.map(e=>(e.timeOffset-=n,e)),t),a=[],i=null}),s),l=ct(Te(ct(e=>{const t=dt(e),{clientX:n,clientY:r}=Pe(e)?e.changedTouches[0]:e;i||(i=De()),a.push({x:n,y:r,id:o.getId(t),timeOffset:De()-i}),c("undefined"!=typeof DragEvent&&e instanceof DragEvent?Ve.Drag:e instanceof MouseEvent?Ve.MouseMove:Ve.TouchMove)}),r,{trailing:!1})),d=[Ie("mousemove",l,n),Ie("touchmove",l,n),Ie("drag",l,n)];return ct(()=>{d.forEach(e=>e())})}(e),s=ht(e),i=pt(e),a=function({viewportResizeCb:e},{win:t}){let n=-1,o=-1;return Ie("resize",ct(Te(ct(()=>{const t=xe(),r=Le();n===t&&o===r||(e({width:Number(r),height:Number(t)}),n=t,o=r)}),200)),t)}(e,{win:n}),c=function({inputCb:e,doc:t,mirror:n,blockClass:o,blockSelector:r,ignoreClass:s,ignoreSelector:i,maskInputOptions:a,maskInputFn:c,sampling:l,userTriggeredOnInput:d}){function u(e){let n=dt(e);const l=e.isTrusted,u=n&&n.tagName;if(n&&"OPTION"===u&&(n=n.parentElement),!n||!u||mt.indexOf(u)<0||Ae(n,o,r,!0))return;if(n.classList.contains(s)||i&&n.matches(i))return;let p=n.value,m=!1;const f=Q(n)||"";"radio"===f||"checkbox"===f?m=n.checked:(a[u.toLowerCase()]||a[f])&&(p=Y({element:n,maskInputOptions:a,tagName:u,type:f,value:p,maskInputFn:c})),h(n,d?{text:p,isChecked:m,userTriggered:l}:{text:p,isChecked:m});const g=n.name;"radio"===f&&g&&m&&t.querySelectorAll(`input[type="radio"][name="${g}"]`).forEach(e=>{if(e!==n){const t=e.value;h(e,d?{text:t,isChecked:!m,userTriggered:!1}:{text:t,isChecked:!m})}})}function h(t,o){const r=ft.get(t);if(!r||r.text!==o.text||r.isChecked!==o.isChecked){ft.set(t,o);const r=n.getId(t);ct(e)(Object.assign(Object.assign({},o),{id:r}))}}const p=("last"===l.input?["change"]:["input","change"]).map(e=>Ie(e,ct(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=>Oe(e[0],e[1],{set(){ct(u)({target:this,isTrusted:!1})}},!1,m))),ct(()=>{p.forEach(e=>e())})}(e),l=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,mirror:o,sampling:r,doc:s}){const i=ct(s=>Te(ct(r=>{const i=dt(r);if(!i||Ae(i,t,n,!0))return;const{currentTime:a,volume:c,muted:l,playbackRate:d,loop:u}=i;e({type:s,id:o.getId(i),currentTime:a,volume:c,muted:l,playbackRate:d,loop:u})}),r.media||500)),a=[Ie("play",i(0),s),Ie("pause",i(1),s),Ie("seeked",i(2),s),Ie("volumechange",i(3),s),Ie("ratechange",i(4),s)];return ct(()=>{a.forEach(e=>e())})}(e);let d=()=>{},u=()=>{},h=()=>{},p=()=>{};e.recordDOM&&(d=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:o}){if(!o.CSSStyleSheet||!o.CSSStyleSheet.prototype)return()=>{};const r=o.CSSStyleSheet.prototype.insertRule;o.CSSStyleSheet.prototype.insertRule=new Proxy(r,{apply:ct((o,r,s)=>{const[i,a]=s,{id:c,styleId:l}=vt(r,t,n.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,adds:[{rule:i,index:a}]}),o.apply(r,s)})});const s=o.CSSStyleSheet.prototype.deleteRule;let i,a;o.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:ct((o,r,s)=>{const[i]=s,{id:a,styleId:c}=vt(r,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:i}]}),o.apply(r,s)})}),o.CSSStyleSheet.prototype.replace&&(i=o.CSSStyleSheet.prototype.replace,o.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:ct((o,r,s)=>{const[i]=s,{id:a,styleId:c}=vt(r,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replace:i}),o.apply(r,s)})})),o.CSSStyleSheet.prototype.replaceSync&&(a=o.CSSStyleSheet.prototype.replaceSync,o.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:ct((o,r,s)=>{const[i]=s,{id:a,styleId:c}=vt(r,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replaceSync:i}),o.apply(r,s)})}));const c={};wt("CSSGroupingRule")?c.CSSGroupingRule=o.CSSGroupingRule:(wt("CSSMediaRule")&&(c.CSSMediaRule=o.CSSMediaRule),wt("CSSConditionRule")&&(c.CSSConditionRule=o.CSSConditionRule),wt("CSSSupportsRule")&&(c.CSSSupportsRule=o.CSSSupportsRule));const l={};return Object.entries(c).forEach(([o,r])=>{l[o]={insertRule:r.prototype.insertRule,deleteRule:r.prototype.deleteRule},r.prototype.insertRule=new Proxy(l[o].insertRule,{apply:ct((o,r,s)=>{const[i,a]=s,{id:c,styleId:l}=vt(r.parentStyleSheet,t,n.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,adds:[{rule:i,index:[...gt(r),a||0]}]}),o.apply(r,s)})}),r.prototype.deleteRule=new Proxy(l[o].deleteRule,{apply:ct((o,r,s)=>{const[i]=s,{id:a,styleId:c}=vt(r.parentStyleSheet,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:[...gt(r),i]}]}),o.apply(r,s)})})}),ct(()=>{o.CSSStyleSheet.prototype.insertRule=r,o.CSSStyleSheet.prototype.deleteRule=s,i&&(o.CSSStyleSheet.prototype.replace=i),a&&(o.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach(([e,t])=>{t.prototype.insertRule=l[e].insertRule,t.prototype.deleteRule=l[e].deleteRule})})}(e,{win:n}),u=yt(e,e.doc),h=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:o},{win:r}){const s=r.CSSStyleDeclaration.prototype.setProperty;r.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:ct((r,i,a)=>{var c;const[l,d,u]=a;if(n.has(l))return s.apply(i,[l,d,u]);const{id:h,styleId:p}=vt(null===(c=i.parentRule)||void 0===c?void 0:c.parentStyleSheet,t,o.styleMirror);return(h&&-1!==h||p&&-1!==p)&&e({id:h,styleId:p,set:{property:l,value:d,priority:u},index:gt(i.parentRule)}),r.apply(i,a)})});const i=r.CSSStyleDeclaration.prototype.removeProperty;return r.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:ct((r,s,a)=>{var c;const[l]=a;if(n.has(l))return i.apply(s,[l]);const{id:d,styleId:u}=vt(null===(c=s.parentRule)||void 0===c?void 0:c.parentStyleSheet,t,o.styleMirror);return(d&&-1!==d||u&&-1!==u)&&e({id:d,styleId:u,remove:{property:l},index:gt(s.parentRule)}),r.apply(s,a)})}),ct(()=>{r.CSSStyleDeclaration.prototype.setProperty=s,r.CSSStyleDeclaration.prototype.removeProperty=i})}(e,{win:n}),e.collectFonts&&(p=function({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const o=[],r=new WeakMap,s=n.FontFace;n.FontFace=function(e,t,n){const o=new s(e,t,n);return r.set(o,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),o};const i=Ee(t.fonts,"add",function(t){return function(n){return setTimeout(ct(()=>{const t=r.get(n);t&&(e(t),r.delete(n))}),0),t.apply(this,[n])}});return o.push(()=>{n.FontFace=s}),o.push(i),ct(()=>{o.forEach(e=>e())})}(e)));const m=function(e){const{doc:t,mirror:n,blockClass:o,blockSelector:r,selectionCb:s}=e;let i=!0;const a=ct(()=>{const e=t.getSelection();if(!e||i&&(null==e?void 0:e.isCollapsed))return;i=e.isCollapsed||!1;const a=[],c=e.rangeCount||0;for(let t=0;t<c;t++){const s=e.getRangeAt(t),{startContainer:i,startOffset:c,endContainer:l,endOffset:d}=s;Ae(i,o,r,!0)||Ae(l,o,r,!0)||a.push({start:n.getId(i),startOffset:c,end:n.getId(l),endOffset:d})}s({ranges:a})});return a(),Ie("selectionchange",a)}(e),f=function({doc:e,customElementCb:t}){const n=e.defaultView;return n&&n.customElements?Ee(n.customElements,"define",function(e){return function(n,o,r){try{t({define:{name:n}})}catch(e){console.warn(`Custom element callback failed for ${n}`)}return e.apply(this,[n,o,r])}}):()=>{}}(e),g=[];for(const t of e.plugins)g.push(t.observer(t.callback,n,t.options));return ct(()=>{lt.forEach(e=>e.reset()),null==o||o.disconnect(),r(),s(),i(),a(),c(),l(),d(),u(),h(),p(),m(),f(),g.forEach(e=>e())})}function bt(e){return void 0!==window[e]}function wt(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class kt{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,o){const r=n||this.getIdToRemoteIdMap(e),s=o||this.getRemoteIdToIdMap(e);let i=r.get(t);return i||(i=this.generateIdFn(),r.set(t,i),s.set(i,t)),i}getIds(e,t){const n=this.getIdToRemoteIdMap(e),o=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,n,o))}getRemoteId(e,t,n){const o=n||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;const r=o.get(t);return r||-1}getRemoteIds(e,t){const n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,n))}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 It{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new kt(oe),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new kt(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 n;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),null===(n=this.loadListener)||void 0===n||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 n=this.crossOriginIframeMap.get(e.source);if(!n)return;const o=this.transformCrossOriginEvent(n,t.data.event);o&&this.wrappedEmit(o,t.data.isCheckout)}transformCrossOriginEvent(e,t){var n;switch(t.type){case $e.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:$e.IncrementalSnapshot,data:{source:Ve.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case $e.Meta:case $e.Load:case $e.DomContentLoaded:return!1;case $e.Plugin:return t;case $e.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case $e.IncrementalSnapshot:switch(t.data.source){case Ve.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)}),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 Ve.Drag:case Ve.TouchMove:case Ve.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case Ve.ViewportResize:return!1;case Ve.MediaInteraction:case Ve.MouseInteraction:case Ve.Scroll:case Ve.CanvasMutation:case Ve.Input:return this.replaceIds(t.data,e,["id"]),t;case Ve.StyleSheetRule:case Ve.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case Ve.Font:return t;case Ve.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case Ve.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null===(n=t.data.styles)||void 0===n||n.forEach(t=>{this.replaceStyleIds(t,e,["styleId"])}),t}}return!1}replace(e,t,n,o){for(const r of o)(Array.isArray(t[r])||"number"==typeof t[r])&&(Array.isArray(t[r])?t[r]=e.getIds(n,t[r]):t[r]=e.getId(n,t[r]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}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===c.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class Ct{constructor(e){this.shadowDoms=new WeakSet,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(!V(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e);const n=ut(Object.assign(Object.assign({},this.bypassOptions),{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(pt(Object.assign(Object.assign({},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(e.host)),this.restoreHandlers.push(yt({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 n=this;this.restoreHandlers.push(Ee(e.prototype,"attachShadow",function(e){return function(o){const r=e.call(this,o);return this.shadowRoot&&qe(this)&&n.addShadowRoot(this.shadowRoot,t),r}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}
1
+ !function(A,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(A="undefined"!=typeof globalThis?globalThis:A||self).DevSkin=e()}(this,function(){"use strict";class A{constructor(A){this.config=A}collect(){return{type:this.getDeviceType(),vendor:this.getVendor(),model:this.getModel(),os:this.getOS(),screen:this.getScreenInfo(),memory:this.getMemory(),cores:this.getCores(),connection:this.getConnection()}}getDeviceType(){const A=navigator.userAgent;return/(tablet|ipad|playbook|silk)|(android(?!.*mobi))/i.test(A)?"tablet":/Mobile|Android|iP(hone|od)|IEMobile|BlackBerry|Kindle|Silk-Accelerated|(hpw|web)OS|Opera M(obi|ini)/.test(A)?"mobile":A.includes("Windows")||A.includes("Macintosh")||A.includes("Linux")?"desktop":"unknown"}getVendor(){return navigator.vendor||void 0}getModel(){const A=navigator.userAgent.match(/\(([^)]+)\)/);if(A&&A[1])return A[1]}getOS(){const A=navigator.userAgent;let e="Unknown",t="";if(A.includes("Win"))e="Windows",A.includes("Windows NT 10.0")?t="10":A.includes("Windows NT 6.3")?t="8.1":A.includes("Windows NT 6.2")?t="8":A.includes("Windows NT 6.1")&&(t="7");else if(A.includes("Mac")){e="macOS";const r=A.match(/Mac OS X (\d+[._]\d+[._]\d+)?/);r&&r[1]&&(t=r[1].replace(/_/g,"."))}else if(A.includes("X11")||A.includes("Linux"))e="Linux";else if(A.includes("Android")){e="Android";const r=A.match(/Android (\d+\.?\d*)/);r&&r[1]&&(t=r[1])}else if(A.includes("iOS")||A.includes("iPhone")||A.includes("iPad")){e="iOS";const r=A.match(/OS (\d+_\d+(_\d+)?)/);r&&r[1]&&(t=r[1].replace(/_/g,"."))}return{name:e,version:t}}getScreenInfo(){return{width:window.screen.width,height:window.screen.height,orientation:this.getOrientation(),pixelRatio:window.devicePixelRatio||1}}getOrientation(){return window.screen.orientation?window.screen.orientation.type:window.innerWidth>window.innerHeight?"landscape":"portrait"}getMemory(){return navigator.deviceMemory}getCores(){return navigator.hardwareConcurrency}getConnection(){const A=navigator.connection||navigator.mozConnection||navigator.webkitConnection;if(A)return{effectiveType:A.effectiveType,downlink:A.downlink,rtt:A.rtt,saveData:A.saveData}}}function e(A,e,t,r){return new(t||(t=Promise))(function(n,s){function o(A){try{a(r.next(A))}catch(A){s(A)}}function i(A){try{a(r.throw(A))}catch(A){s(A)}}function a(A){var e;A.done?n(A.value):(e=A.value,e instanceof t?e:new t(function(A){A(e)})).then(o,i)}a((r=r.apply(A,e||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;class t{constructor(A){this.config=A,this.geoData=null,this.config.captureLocation&&this.requestGeolocation()}collect(){return Object.assign({url:window.location.href,hostname:window.location.hostname,pathname:window.location.pathname,search:window.location.search,hash:window.location.hash,protocol:window.location.protocol,port:window.location.port,referrer:document.referrer},this.geoData)}requestGeolocation(){return e(this,void 0,void 0,function*(){try{const A=Intl.DateTimeFormat().resolvedOptions().timeZone;this.geoData={timezone:A},"geolocation"in navigator&&navigator.geolocation.getCurrentPosition(A=>{this.geoData=Object.assign(Object.assign({},this.geoData),{latitude:A.coords.latitude,longitude:A.coords.longitude}),this.reverseGeocode(A.coords.latitude,A.coords.longitude)},A=>{this.config.debug&&console.log("[DevSkin] Geolocation permission denied or error:",A)},{timeout:5e3,maximumAge:6e5})}catch(A){this.config.debug&&console.error("[DevSkin] Error requesting geolocation:",A)}})}reverseGeocode(A,t){return e(this,void 0,void 0,function*(){try{const e=yield fetch(`https://nominatim.openstreetmap.org/reverse?format=json&lat=${A}&lon=${t}&zoom=10&addressdetails=1`,{headers:{"User-Agent":"DevSkin-SDK/1.0"}});if(e.ok){const A=yield e.json();A.address&&(this.geoData=Object.assign(Object.assign({},this.geoData),{country:A.address.country,region:A.address.state||A.address.region,city:A.address.city||A.address.town||A.address.village}))}}catch(A){this.config.debug&&console.error("[DevSkin] Error reverse geocoding:",A)}})}}class r{constructor(A){this.config=A}collect(){return{name:this.getBrowserName(),version:this.getBrowserVersion(),engine:this.getEngine(),userAgent:navigator.userAgent,language:navigator.language,languages:navigator.languages?Array.from(navigator.languages):[navigator.language],cookieEnabled:navigator.cookieEnabled,doNotTrack:this.getDoNotTrack(),viewport:{width:window.innerWidth,height:window.innerHeight},timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,timezoneOffset:(new Date).getTimezoneOffset()}}getBrowserName(){const A=navigator.userAgent;return A.includes("Firefox")?"Firefox":A.includes("Edg")?"Edge":A.includes("Chrome")?"Chrome":A.includes("Safari")&&!A.includes("Chrome")?"Safari":A.includes("Opera")||A.includes("OPR")?"Opera":A.includes("Trident")||A.includes("MSIE")?"Internet Explorer":"Unknown"}getBrowserVersion(){const A=navigator.userAgent;let e=null;switch(this.getBrowserName()){case"Chrome":e=A.match(/Chrome\/(\d+\.\d+)/);break;case"Firefox":e=A.match(/Firefox\/(\d+\.\d+)/);break;case"Safari":e=A.match(/Version\/(\d+\.\d+)/);break;case"Edge":e=A.match(/Edg\/(\d+\.\d+)/);break;case"Opera":if(e=A.match(/(Opera|OPR)\/(\d+\.\d+)/),e)return e[2];break;case"Internet Explorer":if(e=A.match(/(MSIE |rv:)(\d+\.\d+)/),e)return e[2]}return e&&e[1]?e[1]:""}getEngine(){const A=navigator.userAgent;return A.includes("Gecko")&&A.includes("Firefox")?"Gecko":A.includes("AppleWebKit")?A.includes("Chrome")||A.includes("Edg")?"Blink":"WebKit":A.includes("Trident")?"Trident":"Unknown"}getDoNotTrack(){const A=navigator.doNotTrack||window.doNotTrack||navigator.msDoNotTrack;return"1"===A||"yes"===A||"0"!==A&&"no"!==A&&null}}var n,s,o,i,a=-1,c=function(A){addEventListener("pageshow",function(e){e.persisted&&(a=e.timeStamp,A(e))},!0)},B=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},l=function(){var A=B();return A&&A.activationStart||0},u=function(A,e){var t=B(),r="navigate";return a>=0?r="back-forward-cache":t&&(document.prerendering||l()>0?r="prerender":document.wasDiscarded?r="restore":t.type&&(r=t.type.replace(/_/g,"-"))),{name:A,value:void 0===e?-1:e,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},g=function(A,e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(A)){var r=new PerformanceObserver(function(A){Promise.resolve().then(function(){e(A.getEntries())})});return r.observe(Object.assign({type:A,buffered:!0},t||{})),r}}catch(A){}},d=function(A,e,t,r){var n,s;return function(o){e.value>=0&&(o||r)&&((s=e.value-(n||0))||void 0===n)&&(n=e.value,e.delta=s,e.rating=function(A,e){return A>e[1]?"poor":A>e[0]?"needs-improvement":"good"}(e.value,t),A(e))}},h=function(A){requestAnimationFrame(function(){return requestAnimationFrame(function(){return A()})})},w=function(A){var e=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||A(e)};addEventListener("visibilitychange",e,!0),addEventListener("pagehide",e,!0)},Q=function(A){var e=!1;return function(t){e||(A(t),e=!0)}},p=-1,C=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},f=function(A){"hidden"===document.visibilityState&&p>-1&&(p="visibilitychange"===A.type?A.timeStamp:0,F())},U=function(){addEventListener("visibilitychange",f,!0),addEventListener("prerenderingchange",f,!0)},F=function(){removeEventListener("visibilitychange",f,!0),removeEventListener("prerenderingchange",f,!0)},m=function(){return p<0&&(p=C(),U(),c(function(){setTimeout(function(){p=C(),U()},0)})),{get firstHiddenTime(){return p}}},y=function(A){document.prerendering?addEventListener("prerenderingchange",function(){return A()},!0):A()},I=[1800,3e3],E=function(A,e){e=e||{},y(function(){var t,r=m(),n=u("FCP"),s=g("paint",function(A){A.forEach(function(A){"first-contentful-paint"===A.name&&(s.disconnect(),A.startTime<r.firstHiddenTime&&(n.value=Math.max(A.startTime-l(),0),n.entries.push(A),t(!0)))})});s&&(t=d(A,n,I,e.reportAllChanges),c(function(r){n=u("FCP"),t=d(A,n,I,e.reportAllChanges),h(function(){n.value=performance.now()-r.timeStamp,t(!0)})}))})},H=[.1,.25],v={passive:!0,capture:!0},b=new Date,S=function(A,e){n||(n=e,s=A,o=new Date,D(removeEventListener),L())},L=function(){if(s>=0&&s<o-b){var A={entryType:"first-input",name:n.type,target:n.target,cancelable:n.cancelable,startTime:n.timeStamp,processingStart:n.timeStamp+s};i.forEach(function(e){e(A)}),i=[]}},K=function(A){if(A.cancelable){var e=(A.timeStamp>1e12?new Date:performance.now())-A.timeStamp;"pointerdown"==A.type?function(A,e){var t=function(){S(A,e),n()},r=function(){n()},n=function(){removeEventListener("pointerup",t,v),removeEventListener("pointercancel",r,v)};addEventListener("pointerup",t,v),addEventListener("pointercancel",r,v)}(e,A):S(e,A)}},D=function(A){["mousedown","keydown","touchstart","pointerdown"].forEach(function(e){return A(e,K,v)})},M=[100,300],k=[2500,4e3],T={},O=[800,1800],x=function A(e){document.prerendering?y(function(){return A(e)}):"complete"!==document.readyState?addEventListener("load",function(){return A(e)},!0):setTimeout(e,0)},R=function(A,e){e=e||{};var t=u("TTFB"),r=d(A,t,O,e.reportAllChanges);x(function(){var n=B();if(n){var s=n.responseStart;if(s<=0||s>performance.now())return;t.value=Math.max(s-l(),0),t.entries=[n],r(!0),c(function(){t=u("TTFB",0),(r=d(A,t,O,e.reportAllChanges))(!0)})}})};class N{constructor(A,e){this.config=A,this.transport=e,this.metrics={}}start(){!function(A,e){e=e||{},E(Q(function(){var t,r=u("CLS",0),n=0,s=[],o=function(A){A.forEach(function(A){if(!A.hadRecentInput){var e=s[0],t=s[s.length-1];n&&A.startTime-t.startTime<1e3&&A.startTime-e.startTime<5e3?(n+=A.value,s.push(A)):(n=A.value,s=[A])}}),n>r.value&&(r.value=n,r.entries=s,t())},i=g("layout-shift",o);i&&(t=d(A,r,H,e.reportAllChanges),w(function(){o(i.takeRecords()),t(!0)}),c(function(){n=0,r=u("CLS",0),t=d(A,r,H,e.reportAllChanges),h(function(){return t()})}),setTimeout(t,0))}))}(A=>this.handleMetric(A)),E(A=>this.handleMetric(A)),function(A,e){e=e||{},y(function(){var t,r=m(),o=u("FID"),a=function(A){A.startTime<r.firstHiddenTime&&(o.value=A.processingStart-A.startTime,o.entries.push(A),t(!0))},B=function(A){A.forEach(a)},l=g("first-input",B);t=d(A,o,M,e.reportAllChanges),l&&w(Q(function(){B(l.takeRecords()),l.disconnect()})),l&&c(function(){var r;o=u("FID"),t=d(A,o,M,e.reportAllChanges),i=[],s=-1,n=null,D(addEventListener),r=a,i.push(r),L()})})}(A=>this.handleMetric(A)),function(A,e){e=e||{},y(function(){var t,r=m(),n=u("LCP"),s=function(A){var e=A[A.length-1];e&&e.startTime<r.firstHiddenTime&&(n.value=Math.max(e.startTime-l(),0),n.entries=[e],t())},o=g("largest-contentful-paint",s);if(o){t=d(A,n,k,e.reportAllChanges);var i=Q(function(){T[n.id]||(s(o.takeRecords()),o.disconnect(),T[n.id]=!0,t(!0))});["keydown","click"].forEach(function(A){addEventListener(A,function(){return setTimeout(i,0)},!0)}),w(i),c(function(r){n=u("LCP"),t=d(A,n,k,e.reportAllChanges),h(function(){n.value=performance.now()-r.timeStamp,T[n.id]=!0,t(!0)})})}})}(A=>this.handleMetric(A)),R(A=>this.handleMetric(A)),this.collectNavigationTimings(),this.collectResourceTimings(),this.config.longTaskThreshold&&this.observeLongTasks()}handleMetric(A){const e=A.name.toLowerCase();this.metrics[e]=A.value,this.config.debug&&console.log(`[DevSkin] Web Vital ${A.name}:`,A.value),this.transport.sendPerformanceMetric({name:A.name,value:A.value,rating:A.rating,delta:A.delta,timestamp:(new Date).toISOString()})}collectNavigationTimings(){window.performance&&window.performance.timing&&window.addEventListener("load",()=>{setTimeout(()=>{const A=window.performance.timing,e=window.performance.navigation,t=A.domContentLoadedEventEnd-A.navigationStart,r=A.loadEventEnd-A.navigationStart;this.metrics.domLoad=t,this.metrics.windowLoad=r,this.config.debug&&console.log("[DevSkin] Navigation Timings:",{domLoad:t,windowLoad:r,navigationType:e.type}),this.transport.sendPerformanceMetric({name:"Navigation",value:r,details:{domLoad:t,windowLoad:r,navigationType:e.type,redirectCount:e.redirectCount,dns:A.domainLookupEnd-A.domainLookupStart,tcp:A.connectEnd-A.connectStart,request:A.responseStart-A.requestStart,response:A.responseEnd-A.responseStart,dom:A.domComplete-A.domLoading},timestamp:(new Date).toISOString()})},0)})}collectResourceTimings(){window.performance&&window.performance.getEntriesByType&&window.addEventListener("load",()=>{setTimeout(()=>{const A=window.performance.getEntriesByType("resource"),e={total:A.length,byType:{},slowest:[]};A.forEach(A=>{const t=A.initiatorType||"other";e.byType[t]=(e.byType[t]||0)+1}),e.slowest=A.map(A=>({name:A.name,duration:A.duration,type:A.initiatorType})).sort((A,e)=>e.duration-A.duration).slice(0,10),this.config.debug&&console.log("[DevSkin] Resource Timings:",e),this.transport.sendPerformanceMetric({name:"Resources",value:A.length,details:e,timestamp:(new Date).toISOString()})},1e3)})}observeLongTasks(){if("PerformanceObserver"in window)try{new PerformanceObserver(A=>{for(const e of A.getEntries())e.duration>=(this.config.longTaskThreshold||50)&&(this.config.debug&&console.log("[DevSkin] Long Task detected:",e),this.transport.sendPerformanceMetric({name:"LongTask",value:e.duration,details:{name:e.name,entryType:e.entryType,startTime:e.startTime},timestamp:(new Date).toISOString()}))}).observe({entryTypes:["longtask"]})}catch(A){this.config.debug&&console.error("[DevSkin] Error observing long tasks:",A)}}getMetrics(){return Object.assign({},this.metrics)}}class G{constructor(A,e){var t;this.config=A,this.transport=e,this.breadcrumbs=[],this.maxBreadcrumbs=(null===(t=A.errorOptions)||void 0===t?void 0:t.maxBreadcrumbs)||30}start(){window.addEventListener("error",A=>{this.handleError(A.error||A.message,{filename:A.filename,lineno:A.lineno,colno:A.colno})}),window.addEventListener("unhandledrejection",A=>{this.handleError(A.reason,{type:"unhandledrejection"})}),this.setupAutomaticBreadcrumbs()}captureError(A,e){this.handleError(A,e)}addBreadcrumb(A){const e={category:A.category,message:A.message,level:A.level||"info",timestamp:(new Date).toISOString(),data:A.data};this.breadcrumbs.push(e),this.breadcrumbs.length>this.maxBreadcrumbs&&this.breadcrumbs.shift(),this.config.debug&&console.log("[DevSkin] Breadcrumb added:",e)}handleError(A,e){var t;if(this.shouldIgnoreError(A))return;let r;if(A instanceof Error){if(r={message:A.message,stack:A.stack,type:A.name||"Error",timestamp:(new Date).toISOString(),session_id:"",url:window.location.href,breadcrumbs:[...this.breadcrumbs],context:Object.assign(Object.assign({},e),{userAgent:navigator.userAgent,viewport:{width:window.innerWidth,height:window.innerHeight}})},A.stack){const e=A.stack.match(/:(\d+):(\d+)/);e&&(r.line=parseInt(e[1],10),r.column=parseInt(e[2],10))}}else r={message:String(A),type:"Error",timestamp:(new Date).toISOString(),session_id:"",url:window.location.href,breadcrumbs:[...this.breadcrumbs],context:e};(null===(t=this.config.errorOptions)||void 0===t?void 0:t.includeLocalVariables)&&e&&(r.context=Object.assign(Object.assign({},r.context),{localVariables:e})),this.config.debug&&console.log("[DevSkin] Error captured:",r),this.addBreadcrumb({category:"error",message:r.message,level:"error",data:{type:r.type,stack:r.stack}}),this.transport.sendError(r)}shouldIgnoreError(A){var e,t;const r=(null===(e=this.config.errorOptions)||void 0===e?void 0:e.ignoreErrors)||[],n=A instanceof Error?A.message:String(A);for(const A of r)if(A instanceof RegExp){if(A.test(n))return!0}else if("string"==typeof A&&n.includes(A))return!0;const s=(null===(t=this.config.errorOptions)||void 0===t?void 0:t.denyUrls)||[],o=A instanceof Error?A.stack:"";for(const A of s)if(A.test(o||""))return!0;return!1}setupAutomaticBreadcrumbs(){this.wrapConsole(),document.addEventListener("click",A=>{var e;const t=A.target;this.addBreadcrumb({category:"ui.click",message:`Clicked on ${t.tagName}`,data:{tagName:t.tagName,id:t.id,className:t.className,innerText:null===(e=t.innerText)||void 0===e?void 0:e.substring(0,100)}})},!0);let A=window.location.href;const e=()=>{A!==window.location.href&&(this.addBreadcrumb({category:"navigation",message:`Navigated to ${window.location.pathname}`,data:{from:A,to:window.location.href}}),A=window.location.href)};window.addEventListener("popstate",e),window.addEventListener("hashchange",e);const t=history.pushState;history.pushState=function(...A){t.apply(this,A),e()};const r=history.replaceState;history.replaceState=function(...A){r.apply(this,A),e()}}wrapConsole(){["log","info","warn","error"].forEach(A=>{const e=console[A];console[A]=(...t)=>{if(e.apply(console,t),"warn"===A||"error"===A){const e=t.map(A=>String(A)).join(" ");if(e.startsWith("[DevSkin]"))return;this.addBreadcrumb({category:"console",message:e,level:"warn"===A?"warning":"error",data:{arguments:t}})}}})}getBreadcrumbs(){return[...this.breadcrumbs]}}class V{constructor(A,e){this.config=A,this.transport=e}start(){this.interceptFetch(),this.interceptXHR()}interceptFetch(){if(!window.fetch)return;const A=window.fetch;window.fetch=(...t)=>e(this,void 0,void 0,function*(){var e,r,n;const[s,o]=t,i="string"==typeof s?s:s instanceof Request?s.url:s.toString(),a=(null==o?void 0:o.method)||"GET",c=Date.now();try{const s=yield A(...t),o=s.clone(),B=Date.now()-c;if(this.shouldIgnoreUrl(i))return s;if((null===(e=this.config.networkRequestOptions)||void 0===e?void 0:e.captureFailedOnly)&&s.ok)return s;const l={url:i,method:a,status:s.status,duration:B,size:yield this.getResponseSize(o),type:"fetch",timestamp:(new Date).toISOString(),failed:!s.ok};if((null===(r=this.config.networkRequestOptions)||void 0===r?void 0:r.captureHeaders)&&(l.headers=this.headersToObject(s.headers)),(null===(n=this.config.networkRequestOptions)||void 0===n?void 0:n.captureBody)&&!s.ok)try{const A=yield o.text();l.body=A.substring(0,1e4)}catch(A){}return this.config.debug&&console.log("[DevSkin] Network request tracked:",l),this.transport.sendNetworkRequest(l),s}catch(A){const e=Date.now()-c;if(!this.shouldIgnoreUrl(i)){const A={url:i,method:a,duration:e,type:"fetch",timestamp:(new Date).toISOString(),failed:!0};this.config.debug&&console.log("[DevSkin] Network request failed:",A),this.transport.sendNetworkRequest(A)}throw A}})}interceptXHR(){const A=XMLHttpRequest.prototype.open,e=XMLHttpRequest.prototype.send;XMLHttpRequest.prototype.open=function(e,t,r,n,s){return this.__devskin={method:e,url:t.toString(),startTime:Date.now()},void 0!==n?A.call(this,e,t,null==r||r,n,null!=s?s:void 0):void 0!==r?A.call(this,e,t,r):A.call(this,e,t,!0)},XMLHttpRequest.prototype.send=function(A){const t=this,r=t.__devskin;if(!r)return e.call(this,A);const n=window.__devskinNetworkCollector,s=()=>{const A=Date.now()-r.startTime;if(!(null==n?void 0:n.shouldIgnoreUrl(r.url))){const e={url:r.url,method:r.method,duration:A,type:"xhr",timestamp:(new Date).toISOString(),failed:!0};(null==n?void 0:n.config.debug)&&console.log("[DevSkin] XHR request failed:",e),null==n||n.transport.sendNetworkRequest(e)}};return t.addEventListener("load",()=>{var A,e,s,o;const i=Date.now()-r.startTime;if(null==n?void 0:n.shouldIgnoreUrl(r.url))return;if((null===(A=null==n?void 0:n.config.networkRequestOptions)||void 0===A?void 0:A.captureFailedOnly)&&t.status>=200&&t.status<400)return;const a={url:r.url,method:r.method,status:t.status,duration:i,type:"xhr",timestamp:(new Date).toISOString(),failed:0===t.status||t.status>=400};if((null===(e=null==n?void 0:n.config.networkRequestOptions)||void 0===e?void 0:e.captureHeaders)&&(a.headers=n.parseResponseHeaders(t.getAllResponseHeaders())),(null===(s=null==n?void 0:n.config.networkRequestOptions)||void 0===s?void 0:s.captureBody)&&a.failed)try{a.body=null===(o=t.responseText)||void 0===o?void 0:o.substring(0,1e4)}catch(A){}(null==n?void 0:n.config.debug)&&console.log("[DevSkin] XHR request tracked:",a),null==n||n.transport.sendNetworkRequest(a)}),t.addEventListener("error",s),t.addEventListener("abort",s),e.call(this,A)},window.__devskinNetworkCollector=this}shouldIgnoreUrl(A){var e;if(A.includes(this.config.apiUrl||""))return!0;const t=(null===(e=this.config.networkRequestOptions)||void 0===e?void 0:e.ignoreUrls)||[];for(const e of t)if(e.test(A))return!0;return!1}getResponseSize(A){return e(this,void 0,void 0,function*(){try{return(yield A.blob()).size}catch(A){return}})}headersToObject(A){const e={};return A.forEach((A,t)=>{e[t]=A}),e}parseResponseHeaders(A){const e={};if(!A)return e;return A.trim().split(/[\r\n]+/).forEach(A=>{const t=A.split(": "),r=t.shift(),n=t.join(": ");r&&(e[r]=n)}),e}}class P{constructor(A,e){this.config=A,this.transport=e,this.clickData=[],this.scrollData=[],this.mouseMoveData=[],this.maxScrollDepth=0,this.flushInterval=null,this.mouseMoveSampling=.1}start(){var A;(null===(A=this.config.heatmapOptions)||void 0===A?void 0:A.enabled)&&(this.config.debug&&console.log("[DevSkin] Starting heatmap collection"),!1!==this.config.heatmapOptions.trackClicks&&this.trackClicks(),!1!==this.config.heatmapOptions.trackScroll&&this.trackScrollDepth(),this.config.heatmapOptions.trackMouseMovement&&(this.mouseMoveSampling=this.config.heatmapOptions.mouseMoveSampling||.1,this.trackMouseMovement()),this.flushInterval=setInterval(()=>{this.flush()},1e4),window.addEventListener("beforeunload",()=>{this.flush()}))}stop(){this.flushInterval&&(clearInterval(this.flushInterval),this.flushInterval=null),this.flush()}trackClicks(){document.addEventListener("click",A=>{const e=A.target,t=e.getBoundingClientRect(),r=A.clientX-t.left,n=A.clientY-t.top,s=A.clientX+window.scrollX,o=A.clientY+window.scrollY,i={x:A.clientX,y:A.clientY,relativeX:r,relativeY:n,pageX:s,pageY:o,element:this.getElementSelector(e),elementId:e.id||void 0,elementClass:e.className||void 0,pageUrl:window.location.href,timestamp:(new Date).toISOString(),viewportWidth:window.innerWidth,viewportHeight:window.innerHeight};this.clickData.push(i),this.config.debug&&console.log("[DevSkin] Click tracked:",i),this.clickData.length>=50&&this.flush()},!0)}trackScrollDepth(){const A=()=>{const A=window.innerHeight,e=document.documentElement.scrollHeight,t=window.scrollY||document.documentElement.scrollTop,r=Math.round((t+A)/e*100);if(r>this.maxScrollDepth){this.maxScrollDepth=r;const t={depth:r,maxDepth:this.maxScrollDepth,pageHeight:e,viewportHeight:A,pageUrl:window.location.href,timestamp:(new Date).toISOString()};this.scrollData.push(t),this.config.debug&&console.log("[DevSkin] Scroll depth:",r+"%")}};let e=null;window.addEventListener("scroll",()=>{e&&clearTimeout(e),e=setTimeout(A,100)}),A()}trackMouseMovement(){let A=null;window.addEventListener("mousemove",e=>{if(Math.random()>this.mouseMoveSampling)return;if(A)return;A=setTimeout(()=>{A=null},100);const t={x:e.clientX+window.scrollX,y:e.clientY+window.scrollY,pageUrl:window.location.href,timestamp:(new Date).toISOString()};this.mouseMoveData.push(t),this.mouseMoveData.length>=100&&this.flush()})}flush(){this.clickData.length>0&&(this.clickData.forEach(A=>{this.transport.sendHeatmapData(Object.assign({type:"click"},A))}),this.clickData=[]),this.scrollData.length>0&&(this.scrollData.forEach(A=>{this.transport.sendHeatmapData(Object.assign({type:"scroll"},A))}),this.scrollData=[]),this.mouseMoveData.length>0&&(this.mouseMoveData.forEach(A=>{this.transport.sendHeatmapData(Object.assign({type:"mousemove"},A))}),this.mouseMoveData=[])}getElementSelector(A){if(A.id)return`#${A.id}`;if(A.className){const e=A.className.split(" ").filter(A=>A);if(e.length>0)return`${A.tagName.toLowerCase()}.${e.join(".")}`}return A.tagName.toLowerCase()}}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function X(A){return A&&A.__esModule&&Object.prototype.hasOwnProperty.call(A,"default")?A.default:A}var J={exports:{}};
2
+ /*!
3
+ * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
4
+ * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
5
+ * Released under MIT License
6
+ */!function(A){A.exports=function(){
7
+ /*! *****************************************************************************
8
+ Copyright (c) Microsoft Corporation.
9
+
10
+ Permission to use, copy, modify, and/or distribute this software for any
11
+ purpose with or without fee is hereby granted.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
14
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
15
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
16
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
17
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
18
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19
+ PERFORMANCE OF THIS SOFTWARE.
20
+ ***************************************************************************** */
21
+ var A=function(e,t){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,e){A.__proto__=e}||function(A,e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=e[t])},A(e,t)};function e(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}A(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var t=function(){return t=Object.assign||function(A){for(var e,t=1,r=arguments.length;t<r;t++)for(var n in e=arguments[t])Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n]);return A},t.apply(this,arguments)};function r(A,e,t,r){function n(A){return A instanceof t?A:new t(function(e){e(A)})}return new(t||(t=Promise))(function(e,t){function s(A){try{i(r.next(A))}catch(A){t(A)}}function o(A){try{i(r.throw(A))}catch(A){t(A)}}function i(A){A.done?e(A.value):n(A.value).then(s,o)}i((r=r.apply(A,[])).next())})}function n(A,e){var t,r,n,s,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return s={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function i(A){return function(e){return a([A,e])}}function a(s){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,r&&(n=2&s[0]?r.return:s[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,s[1])).done)return n;switch(r=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((n=(n=o.trys).length>0&&n[n.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]<n[3])){o.label=s[1];break}if(6===s[0]&&o.label<n[1]){o.label=n[1],n=s;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(s);break}n[2]&&o.ops.pop(),o.trys.pop();continue}s=e.call(A,o)}catch(A){s=[6,A],r=0}finally{t=n=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function s(A,e,t){if(2===arguments.length)for(var r,n=0,s=e.length;n<s;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return A.concat(r||e)}for(var o=function(){function A(A,e,t,r){this.left=A,this.top=e,this.width=t,this.height=r}return A.prototype.add=function(e,t,r,n){return new A(this.left+e,this.top+t,this.width+r,this.height+n)},A.fromClientRect=function(e,t){return new A(t.left+e.windowBounds.left,t.top+e.windowBounds.top,t.width,t.height)},A.fromDOMRectList=function(e,t){var r=Array.from(t).find(function(A){return 0!==A.width});return r?new A(r.left+e.windowBounds.left,r.top+e.windowBounds.top,r.width,r.height):A.EMPTY},A.EMPTY=new A(0,0,0,0),A}(),i=function(A,e){return o.fromClientRect(A,e.getBoundingClientRect())},a=function(A){var e=A.body,t=A.documentElement;if(!e||!t)throw new Error("Unable to get document size");var r=Math.max(Math.max(e.scrollWidth,t.scrollWidth),Math.max(e.offsetWidth,t.offsetWidth),Math.max(e.clientWidth,t.clientWidth)),n=Math.max(Math.max(e.scrollHeight,t.scrollHeight),Math.max(e.offsetHeight,t.offsetHeight),Math.max(e.clientHeight,t.clientHeight));return new o(0,0,r,n)},c=function(A){for(var e=[],t=0,r=A.length;t<r;){var n=A.charCodeAt(t++);if(n>=55296&&n<=56319&&t<r){var s=A.charCodeAt(t++);56320==(64512&s)?e.push(((1023&n)<<10)+(1023&s)+65536):(e.push(n),t--)}else e.push(n)}return e},B=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var t=A.length;if(!t)return"";for(var r=[],n=-1,s="";++n<t;){var o=A[n];o<=65535?r.push(o):(o-=65536,r.push(55296+(o>>10),o%1024+56320)),(n+1===t||r.length>16384)&&(s+=String.fromCharCode.apply(String,r),r.length=0)}return s},l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u="undefined"==typeof Uint8Array?[]:new Uint8Array(256),g=0;g<l.length;g++)u[l.charCodeAt(g)]=g;for(var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h="undefined"==typeof Uint8Array?[]:new Uint8Array(256),w=0;w<d.length;w++)h[d.charCodeAt(w)]=w;for(var Q=function(A){var e,t,r,n,s,o=.75*A.length,i=A.length,a=0;"="===A[A.length-1]&&(o--,"="===A[A.length-2]&&o--);var c="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(o):new Array(o),B=Array.isArray(c)?c:new Uint8Array(c);for(e=0;e<i;e+=4)t=h[A.charCodeAt(e)],r=h[A.charCodeAt(e+1)],n=h[A.charCodeAt(e+2)],s=h[A.charCodeAt(e+3)],B[a++]=t<<2|r>>4,B[a++]=(15&r)<<4|n>>2,B[a++]=(3&n)<<6|63&s;return c},p=function(A){for(var e=A.length,t=[],r=0;r<e;r+=2)t.push(A[r+1]<<8|A[r]);return t},C=function(A){for(var e=A.length,t=[],r=0;r<e;r+=4)t.push(A[r+3]<<24|A[r+2]<<16|A[r+1]<<8|A[r]);return t},f=5,U=11,F=2,m=65536>>f,y=(1<<f)-1,I=m+(1024>>f)+32,E=65536>>U,H=(1<<U-f)-1,v=function(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))},b=function(A,e,t){return A.slice?A.slice(e,t):new Uint32Array(Array.prototype.slice.call(A,e,t))},S=function(A,e){var t=Q(A),r=Array.isArray(t)?C(t):new Uint32Array(t),n=Array.isArray(t)?p(t):new Uint16Array(t),s=24,o=v(n,s/2,r[4]/2),i=2===r[5]?v(n,(s+r[4])/2):b(r,Math.ceil((s+r[4])/4));return new L(r[0],r[1],r[2],r[3],o,i)},L=function(){function A(A,e,t,r,n,s){this.initialValue=A,this.errorValue=e,this.highStart=t,this.highValueIndex=r,this.index=n,this.data=s}return A.prototype.get=function(A){var e;if(A>=0){if(A<55296||A>56319&&A<=65535)return e=((e=this.index[A>>f])<<F)+(A&y),this.data[e];if(A<=65535)return e=((e=this.index[m+(A-55296>>f)])<<F)+(A&y),this.data[e];if(A<this.highStart)return e=I-E+(A>>U),e=this.index[e],e+=A>>f&H,e=((e=this.index[e])<<F)+(A&y),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A}(),K="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",D="undefined"==typeof Uint8Array?[]:new Uint8Array(256),M=0;M<K.length;M++)D[K.charCodeAt(M)]=M;var k=50,T=1,O=2,x=3,R=4,N=5,G=7,V=8,P=9,X=10,J=11,W=12,_=13,Y=14,Z=15,j=16,q=17,z=18,$=19,AA=20,eA=21,tA=22,rA=23,nA=24,sA=25,oA=26,iA=27,aA=28,cA=29,BA=30,lA=31,uA=32,gA=33,dA=34,hA=35,wA=36,QA=37,pA=38,CA=39,fA=40,UA=41,FA=42,mA=43,yA=[9001,65288],IA="!",EA="×",HA="÷",vA=S("KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhA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HLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACz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AAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0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8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDH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YAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgA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4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUA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eAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQA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AAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQ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AJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA=="),bA=[BA,wA],SA=[T,O,x,N],LA=[X,V],KA=[iA,oA],DA=SA.concat(LA),MA=[pA,CA,fA,dA,hA],kA=[Z,_],TA=function(A,e){void 0===e&&(e="strict");var t=[],r=[],n=[];return A.forEach(function(A,s){var o=vA.get(A);if(o>k?(n.push(!0),o-=k):n.push(!1),-1!==["normal","auto","loose"].indexOf(e)&&-1!==[8208,8211,12316,12448].indexOf(A))return r.push(s),t.push(j);if(o===R||o===J){if(0===s)return r.push(s),t.push(BA);var i=t[s-1];return-1===DA.indexOf(i)?(r.push(r[s-1]),t.push(i)):(r.push(s),t.push(BA))}return r.push(s),o===lA?t.push("strict"===e?eA:QA):o===FA||o===cA?t.push(BA):o===mA?A>=131072&&A<=196605||A>=196608&&A<=262141?t.push(QA):t.push(BA):void t.push(o)}),[r,t,n]},OA=function(A,e,t,r){var n=r[t];if(Array.isArray(A)?-1!==A.indexOf(n):A===n)for(var s=t;s<=r.length;){if((a=r[++s])===e)return!0;if(a!==X)break}if(n===X)for(s=t;s>0;){var o=r[--s];if(Array.isArray(A)?-1!==A.indexOf(o):A===o)for(var i=t;i<=r.length;){var a;if((a=r[++i])===e)return!0;if(a!==X)break}if(o!==X)break}return!1},xA=function(A,e){for(var t=A;t>=0;){var r=e[t];if(r!==X)return r;t--}return 0},RA=function(A,e,t,r,n){if(0===t[r])return EA;var s=r-1;if(Array.isArray(n)&&!0===n[s])return EA;var o=s-1,i=s+1,a=e[s],c=o>=0?e[o]:0,B=e[i];if(a===O&&B===x)return EA;if(-1!==SA.indexOf(a))return IA;if(-1!==SA.indexOf(B))return EA;if(-1!==LA.indexOf(B))return EA;if(xA(s,e)===V)return HA;if(vA.get(A[s])===J)return EA;if((a===uA||a===gA)&&vA.get(A[i])===J)return EA;if(a===G||B===G)return EA;if(a===P)return EA;if(-1===[X,_,Z].indexOf(a)&&B===P)return EA;if(-1!==[q,z,$,nA,aA].indexOf(B))return EA;if(xA(s,e)===tA)return EA;if(OA(rA,tA,s,e))return EA;if(OA([q,z],eA,s,e))return EA;if(OA(W,W,s,e))return EA;if(a===X)return HA;if(a===rA||B===rA)return EA;if(B===j||a===j)return HA;if(-1!==[_,Z,eA].indexOf(B)||a===Y)return EA;if(c===wA&&-1!==kA.indexOf(a))return EA;if(a===aA&&B===wA)return EA;if(B===AA)return EA;if(-1!==bA.indexOf(B)&&a===sA||-1!==bA.indexOf(a)&&B===sA)return EA;if(a===iA&&-1!==[QA,uA,gA].indexOf(B)||-1!==[QA,uA,gA].indexOf(a)&&B===oA)return EA;if(-1!==bA.indexOf(a)&&-1!==KA.indexOf(B)||-1!==KA.indexOf(a)&&-1!==bA.indexOf(B))return EA;if(-1!==[iA,oA].indexOf(a)&&(B===sA||-1!==[tA,Z].indexOf(B)&&e[i+1]===sA)||-1!==[tA,Z].indexOf(a)&&B===sA||a===sA&&-1!==[sA,aA,nA].indexOf(B))return EA;if(-1!==[sA,aA,nA,q,z].indexOf(B))for(var l=s;l>=0;){if((u=e[l])===sA)return EA;if(-1===[aA,nA].indexOf(u))break;l--}if(-1!==[iA,oA].indexOf(B))for(l=-1!==[q,z].indexOf(a)?o:s;l>=0;){var u;if((u=e[l])===sA)return EA;if(-1===[aA,nA].indexOf(u))break;l--}if(pA===a&&-1!==[pA,CA,dA,hA].indexOf(B)||-1!==[CA,dA].indexOf(a)&&-1!==[CA,fA].indexOf(B)||-1!==[fA,hA].indexOf(a)&&B===fA)return EA;if(-1!==MA.indexOf(a)&&-1!==[AA,oA].indexOf(B)||-1!==MA.indexOf(B)&&a===iA)return EA;if(-1!==bA.indexOf(a)&&-1!==bA.indexOf(B))return EA;if(a===nA&&-1!==bA.indexOf(B))return EA;if(-1!==bA.concat(sA).indexOf(a)&&B===tA&&-1===yA.indexOf(A[i])||-1!==bA.concat(sA).indexOf(B)&&a===z)return EA;if(a===UA&&B===UA){for(var g=t[s],d=1;g>0&&e[--g]===UA;)d++;if(d%2!=0)return EA}return a===uA&&B===gA?EA:HA},NA=function(A,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var t=TA(A,e.lineBreak),r=t[0],n=t[1],s=t[2];"break-all"!==e.wordBreak&&"break-word"!==e.wordBreak||(n=n.map(function(A){return-1!==[sA,BA,FA].indexOf(A)?QA:A}));var o="keep-all"===e.wordBreak?s.map(function(e,t){return e&&A[t]>=19968&&A[t]<=40959}):void 0;return[r,n,o]},GA=function(){function A(A,e,t,r){this.codePoints=A,this.required=e===IA,this.start=t,this.end=r}return A.prototype.slice=function(){return B.apply(void 0,this.codePoints.slice(this.start,this.end))},A}(),VA=function(A,e){var t=c(A),r=NA(t,e),n=r[0],s=r[1],o=r[2],i=t.length,a=0,B=0;return{next:function(){if(B>=i)return{done:!0,value:null};for(var A=EA;B<i&&(A=RA(t,s,n,++B,o))===EA;);if(A!==EA||B===i){var e=new GA(t,A,a,B);return a=B,{value:e,done:!1}}return{done:!0,value:null}}}},PA=1,XA=2,JA=4,WA=8,_A=10,YA=47,ZA=92,jA=9,qA=32,zA=34,$A=61,Ae=35,ee=36,te=37,re=39,ne=40,se=41,oe=95,ie=45,ae=33,ce=60,Be=62,le=64,ue=91,ge=93,de=61,he=123,we=63,Qe=125,pe=124,Ce=126,fe=128,Ue=65533,Fe=42,me=43,ye=44,Ie=58,Ee=59,He=46,ve=0,be=8,Se=11,Le=14,Ke=31,De=127,Me=-1,ke=48,Te=97,Oe=101,xe=102,Re=117,Ne=122,Ge=65,Ve=69,Pe=70,Xe=85,Je=90,We=function(A){return A>=ke&&A<=57},_e=function(A){return A>=55296&&A<=57343},Ye=function(A){return We(A)||A>=Ge&&A<=Pe||A>=Te&&A<=xe},Ze=function(A){return A>=Te&&A<=Ne},je=function(A){return A>=Ge&&A<=Je},qe=function(A){return Ze(A)||je(A)},ze=function(A){return A>=fe},$e=function(A){return A===_A||A===jA||A===qA},At=function(A){return qe(A)||ze(A)||A===oe},et=function(A){return At(A)||We(A)||A===ie},tt=function(A){return A>=ve&&A<=be||A===Se||A>=Le&&A<=Ke||A===De},rt=function(A,e){return A===ZA&&e!==_A},nt=function(A,e,t){return A===ie?At(e)||rt(e,t):!!At(A)||!(A!==ZA||!rt(A,e))},st=function(A,e,t){return A===me||A===ie?!!We(e)||e===He&&We(t):We(A===He?e:A)},ot=function(A){var e=0,t=1;A[e]!==me&&A[e]!==ie||(A[e]===ie&&(t=-1),e++);for(var r=[];We(A[e]);)r.push(A[e++]);var n=r.length?parseInt(B.apply(void 0,r),10):0;A[e]===He&&e++;for(var s=[];We(A[e]);)s.push(A[e++]);var o=s.length,i=o?parseInt(B.apply(void 0,s),10):0;A[e]!==Ve&&A[e]!==Oe||e++;var a=1;A[e]!==me&&A[e]!==ie||(A[e]===ie&&(a=-1),e++);for(var c=[];We(A[e]);)c.push(A[e++]);var l=c.length?parseInt(B.apply(void 0,c),10):0;return t*(n+i*Math.pow(10,-o))*Math.pow(10,a*l)},it={type:2},at={type:3},ct={type:4},Bt={type:13},lt={type:8},ut={type:21},gt={type:9},dt={type:10},ht={type:11},wt={type:12},Qt={type:14},pt={type:23},Ct={type:1},ft={type:25},Ut={type:24},Ft={type:26},mt={type:27},yt={type:28},It={type:29},Et={type:31},Ht={type:32},vt=function(){function A(){this._value=[]}return A.prototype.write=function(A){this._value=this._value.concat(c(A))},A.prototype.read=function(){for(var A=[],e=this.consumeToken();e!==Ht;)A.push(e),e=this.consumeToken();return A},A.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case zA:return this.consumeStringToken(zA);case Ae:var e=this.peekCodePoint(0),t=this.peekCodePoint(1),r=this.peekCodePoint(2);if(et(e)||rt(t,r)){var n=nt(e,t,r)?XA:PA;return{type:5,value:this.consumeName(),flags:n}}break;case ee:if(this.peekCodePoint(0)===$A)return this.consumeCodePoint(),Bt;break;case re:return this.consumeStringToken(re);case ne:return it;case se:return at;case Fe:if(this.peekCodePoint(0)===$A)return this.consumeCodePoint(),Qt;break;case me:if(st(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case ye:return ct;case ie:var s=A,o=this.peekCodePoint(0),i=this.peekCodePoint(1);if(st(s,o,i))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(nt(s,o,i))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(o===ie&&i===Be)return this.consumeCodePoint(),this.consumeCodePoint(),Ut;break;case He:if(st(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case YA:if(this.peekCodePoint(0)===Fe)for(this.consumeCodePoint();;){var a=this.consumeCodePoint();if(a===Fe&&(a=this.consumeCodePoint())===YA)return this.consumeToken();if(a===Me)return this.consumeToken()}break;case Ie:return Ft;case Ee:return mt;case ce:if(this.peekCodePoint(0)===ae&&this.peekCodePoint(1)===ie&&this.peekCodePoint(2)===ie)return this.consumeCodePoint(),this.consumeCodePoint(),ft;break;case le:var c=this.peekCodePoint(0),l=this.peekCodePoint(1),u=this.peekCodePoint(2);if(nt(c,l,u))return{type:7,value:this.consumeName()};break;case ue:return yt;case ZA:if(rt(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case ge:return It;case de:if(this.peekCodePoint(0)===$A)return this.consumeCodePoint(),lt;break;case he:return ht;case Qe:return wt;case Re:case Xe:var g=this.peekCodePoint(0),d=this.peekCodePoint(1);return g!==me||!Ye(d)&&d!==we||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case pe:if(this.peekCodePoint(0)===$A)return this.consumeCodePoint(),gt;if(this.peekCodePoint(0)===pe)return this.consumeCodePoint(),ut;break;case Ce:if(this.peekCodePoint(0)===$A)return this.consumeCodePoint(),dt;break;case Me:return Ht}return $e(A)?(this.consumeWhiteSpace(),Et):We(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):At(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:B(A)}},A.prototype.consumeCodePoint=function(){var A=this._value.shift();return void 0===A?-1:A},A.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)},A.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},A.prototype.consumeUnicodeRangeToken=function(){for(var A=[],e=this.consumeCodePoint();Ye(e)&&A.length<6;)A.push(e),e=this.consumeCodePoint();for(var t=!1;e===we&&A.length<6;)A.push(e),e=this.consumeCodePoint(),t=!0;if(t)return{type:30,start:parseInt(B.apply(void 0,A.map(function(A){return A===we?ke:A})),16),end:parseInt(B.apply(void 0,A.map(function(A){return A===we?Pe:A})),16)};var r=parseInt(B.apply(void 0,A),16);if(this.peekCodePoint(0)===ie&&Ye(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();for(var n=[];Ye(e)&&n.length<6;)n.push(e),e=this.consumeCodePoint();return{type:30,start:r,end:parseInt(B.apply(void 0,n),16)}}return{type:30,start:r,end:r}},A.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return"url"===A.toLowerCase()&&this.peekCodePoint(0)===ne?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===ne?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},A.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Me)return{type:22,value:""};var e=this.peekCodePoint(0);if(e===re||e===zA){var t=this.consumeStringToken(this.consumeCodePoint());return 0===t.type&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Me||this.peekCodePoint(0)===se)?(this.consumeCodePoint(),{type:22,value:t.value}):(this.consumeBadUrlRemnants(),pt)}for(;;){var r=this.consumeCodePoint();if(r===Me||r===se)return{type:22,value:B.apply(void 0,A)};if($e(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Me||this.peekCodePoint(0)===se?(this.consumeCodePoint(),{type:22,value:B.apply(void 0,A)}):(this.consumeBadUrlRemnants(),pt);if(r===zA||r===re||r===ne||tt(r))return this.consumeBadUrlRemnants(),pt;if(r===ZA){if(!rt(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),pt;A.push(this.consumeEscapedCodePoint())}else A.push(r)}},A.prototype.consumeWhiteSpace=function(){for(;$e(this.peekCodePoint(0));)this.consumeCodePoint()},A.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(A===se||A===Me)return;rt(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},A.prototype.consumeStringSlice=function(A){for(var e=5e4,t="";A>0;){var r=Math.min(e,A);t+=B.apply(void 0,this._value.splice(0,r)),A-=r}return this._value.shift(),t},A.prototype.consumeStringToken=function(A){for(var e="",t=0;;){var r=this._value[t];if(r===Me||void 0===r||r===A)return{type:0,value:e+=this.consumeStringSlice(t)};if(r===_A)return this._value.splice(0,t),Ct;if(r===ZA){var n=this._value[t+1];n!==Me&&void 0!==n&&(n===_A?(e+=this.consumeStringSlice(t),t=-1,this._value.shift()):rt(r,n)&&(e+=this.consumeStringSlice(t),e+=B(this.consumeEscapedCodePoint()),t=-1))}t++}},A.prototype.consumeNumber=function(){var A=[],e=JA,t=this.peekCodePoint(0);for(t!==me&&t!==ie||A.push(this.consumeCodePoint());We(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(t===He&&We(r))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=WA;We(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0),r=this.peekCodePoint(1);var n=this.peekCodePoint(2);if((t===Ve||t===Oe)&&((r===me||r===ie)&&We(n)||We(r)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=WA;We(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[ot(A),e]},A.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),e=A[0],t=A[1],r=this.peekCodePoint(0),n=this.peekCodePoint(1),s=this.peekCodePoint(2);return nt(r,n,s)?{type:15,number:e,flags:t,unit:this.consumeName()}:r===te?(this.consumeCodePoint(),{type:16,number:e,flags:t}):{type:17,number:e,flags:t}},A.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(Ye(A)){for(var e=B(A);Ye(this.peekCodePoint(0))&&e.length<6;)e+=B(this.consumeCodePoint());$e(this.peekCodePoint(0))&&this.consumeCodePoint();var t=parseInt(e,16);return 0===t||_e(t)||t>1114111?Ue:t}return A===Me?Ue:A},A.prototype.consumeName=function(){for(var A="";;){var e=this.consumeCodePoint();if(et(e))A+=B(e);else{if(!rt(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),A;A+=B(this.consumeEscapedCodePoint())}}},A}(),bt=function(){function A(A){this._tokens=A}return A.create=function(e){var t=new vt;return t.write(e),new A(t.read())},A.parseValue=function(e){return A.create(e).parseComponentValue()},A.parseValues=function(e){return A.create(e).parseComponentValues()},A.prototype.parseComponentValue=function(){for(var A=this.consumeToken();31===A.type;)A=this.consumeToken();if(32===A.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);var e=this.consumeComponentValue();do{A=this.consumeToken()}while(31===A.type);if(32===A.type)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},A.prototype.parseComponentValues=function(){for(var A=[];;){var e=this.consumeComponentValue();if(32===e.type)return A;A.push(e),A.push()}},A.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case 11:case 28:case 2:return this.consumeSimpleBlock(A.type);case 19:return this.consumeFunction(A)}return A},A.prototype.consumeSimpleBlock=function(A){for(var e={type:A,values:[]},t=this.consumeToken();;){if(32===t.type||xt(t,A))return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue()),t=this.consumeToken()}},A.prototype.consumeFunction=function(A){for(var e={name:A.value,values:[],type:18};;){var t=this.consumeToken();if(32===t.type||3===t.type)return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue())}},A.prototype.consumeToken=function(){var A=this._tokens.shift();return void 0===A?Ht:A},A.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},A}(),St=function(A){return 15===A.type},Lt=function(A){return 17===A.type},Kt=function(A){return 20===A.type},Dt=function(A){return 0===A.type},Mt=function(A,e){return Kt(A)&&A.value===e},kt=function(A){return 31!==A.type},Tt=function(A){return 31!==A.type&&4!==A.type},Ot=function(A){var e=[],t=[];return A.forEach(function(A){if(4===A.type){if(0===t.length)throw new Error("Error parsing function args, zero tokens for arg");return e.push(t),void(t=[])}31!==A.type&&t.push(A)}),t.length&&e.push(t),e},xt=function(A,e){return 11===e&&12===A.type||28===e&&29===A.type||2===e&&3===A.type},Rt=function(A){return 17===A.type||15===A.type},Nt=function(A){return 16===A.type||Rt(A)},Gt=function(A){return A.length>1?[A[0],A[1]]:[A[0]]},Vt={type:17,number:0,flags:JA},Pt={type:16,number:50,flags:JA},Xt={type:16,number:100,flags:JA},Jt=function(A,e,t){var r=A[0],n=A[1];return[Wt(r,e),Wt(void 0!==n?n:r,t)]},Wt=function(A,e){if(16===A.type)return A.number/100*e;if(St(A))switch(A.unit){case"rem":case"em":return 16*A.number;default:return A.number}return A.number},_t="deg",Yt="grad",Zt="rad",jt="turn",qt={name:"angle",parse:function(A,e){if(15===e.type)switch(e.unit){case _t:return Math.PI*e.number/180;case Yt:return Math.PI/200*e.number;case Zt:return e.number;case jt:return 2*Math.PI*e.number}throw new Error("Unsupported angle type")}},zt=function(A){return 15===A.type&&(A.unit===_t||A.unit===Yt||A.unit===Zt||A.unit===jt)},$t=function(A){switch(A.filter(Kt).map(function(A){return A.value}).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Vt,Vt];case"to top":case"bottom":return Ar(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Vt,Xt];case"to right":case"left":return Ar(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Xt,Xt];case"to bottom":case"top":return Ar(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Xt,Vt];case"to left":case"right":return Ar(270)}return 0},Ar=function(A){return Math.PI*A/180},er={name:"color",parse:function(A,e){if(18===e.type){var t=cr[e.name];if(void 0===t)throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return t(A,e.values)}if(5===e.type){if(3===e.value.length){var r=e.value.substring(0,1),n=e.value.substring(1,2),s=e.value.substring(2,3);return nr(parseInt(r+r,16),parseInt(n+n,16),parseInt(s+s,16),1)}if(4===e.value.length){r=e.value.substring(0,1),n=e.value.substring(1,2),s=e.value.substring(2,3);var o=e.value.substring(3,4);return nr(parseInt(r+r,16),parseInt(n+n,16),parseInt(s+s,16),parseInt(o+o,16)/255)}if(6===e.value.length)return r=e.value.substring(0,2),n=e.value.substring(2,4),s=e.value.substring(4,6),nr(parseInt(r,16),parseInt(n,16),parseInt(s,16),1);if(8===e.value.length)return r=e.value.substring(0,2),n=e.value.substring(2,4),s=e.value.substring(4,6),o=e.value.substring(6,8),nr(parseInt(r,16),parseInt(n,16),parseInt(s,16),parseInt(o,16)/255)}if(20===e.type){var i=lr[e.value.toUpperCase()];if(void 0!==i)return i}return lr.TRANSPARENT}},tr=function(A){return!(255&A)},rr=function(A){var e=255&A,t=255&A>>8,r=255&A>>16,n=255&A>>24;return e<255?"rgba("+n+","+r+","+t+","+e/255+")":"rgb("+n+","+r+","+t+")"},nr=function(A,e,t,r){return(A<<24|e<<16|t<<8|Math.round(255*r))>>>0},sr=function(A,e){if(17===A.type)return A.number;if(16===A.type){var t=3===e?1:255;return 3===e?A.number/100*t:Math.round(A.number/100*t)}return 0},or=function(A,e){var t=e.filter(Tt);if(3===t.length){var r=t.map(sr),n=r[0],s=r[1],o=r[2];return nr(n,s,o,1)}if(4===t.length){var i=t.map(sr),a=(n=i[0],s=i[1],o=i[2],i[3]);return nr(n,s,o,a)}return 0};function ir(A,e,t){return t<0&&(t+=1),t>=1&&(t-=1),t<1/6?(e-A)*t*6+A:t<.5?e:t<2/3?6*(e-A)*(2/3-t)+A:A}var ar=function(A,e){var t=e.filter(Tt),r=t[0],n=t[1],s=t[2],o=t[3],i=(17===r.type?Ar(r.number):qt.parse(A,r))/(2*Math.PI),a=Nt(n)?n.number/100:0,c=Nt(s)?s.number/100:0,B=void 0!==o&&Nt(o)?Wt(o,1):1;if(0===a)return nr(255*c,255*c,255*c,1);var l=c<=.5?c*(a+1):c+a-c*a,u=2*c-l,g=ir(u,l,i+1/3),d=ir(u,l,i),h=ir(u,l,i-1/3);return nr(255*g,255*d,255*h,B)},cr={hsl:ar,hsla:ar,rgb:or,rgba:or},Br=function(A,e){return er.parse(A,bt.create(e).parseComponentValue())},lr={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},ur={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map(function(A){if(Kt(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},gr={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},dr=function(A,e){var t=er.parse(A,e[0]),r=e[1];return r&&Nt(r)?{color:t,stop:r}:{color:t,stop:null}},hr=function(A,e){var t=A[0],r=A[A.length-1];null===t.stop&&(t.stop=Vt),null===r.stop&&(r.stop=Xt);for(var n=[],s=0,o=0;o<A.length;o++){var i=A[o].stop;if(null!==i){var a=Wt(i,e);a>s?n.push(a):n.push(s),s=a}else n.push(null)}var c=null;for(o=0;o<n.length;o++){var B=n[o];if(null===B)null===c&&(c=o);else if(null!==c){for(var l=o-c,u=(B-n[c-1])/(l+1),g=1;g<=l;g++)n[c+g-1]=u*g;c=null}}return A.map(function(A,t){return{color:A.color,stop:Math.max(Math.min(1,n[t]/e),0)}})},wr=function(A,e,t){var r=e/2,n=t/2,s=Wt(A[0],e)-r,o=n-Wt(A[1],t);return(Math.atan2(o,s)+2*Math.PI)%(2*Math.PI)},Qr=function(A,e,t){var r="number"==typeof A?A:wr(A,e,t),n=Math.abs(e*Math.sin(r))+Math.abs(t*Math.cos(r)),s=e/2,o=t/2,i=n/2,a=Math.sin(r-Math.PI/2)*i,c=Math.cos(r-Math.PI/2)*i;return[n,s-c,s+c,o-a,o+a]},pr=function(A,e){return Math.sqrt(A*A+e*e)},Cr=function(A,e,t,r,n){return[[0,0],[0,e],[A,0],[A,e]].reduce(function(A,e){var s=e[0],o=e[1],i=pr(t-s,r-o);return(n?i<A.optimumDistance:i>A.optimumDistance)?{optimumCorner:e,optimumDistance:i}:A},{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},fr=function(A,e,t,r,n){var s=0,o=0;switch(A.size){case 0:0===A.shape?s=o=Math.min(Math.abs(e),Math.abs(e-r),Math.abs(t),Math.abs(t-n)):1===A.shape&&(s=Math.min(Math.abs(e),Math.abs(e-r)),o=Math.min(Math.abs(t),Math.abs(t-n)));break;case 2:if(0===A.shape)s=o=Math.min(pr(e,t),pr(e,t-n),pr(e-r,t),pr(e-r,t-n));else if(1===A.shape){var i=Math.min(Math.abs(t),Math.abs(t-n))/Math.min(Math.abs(e),Math.abs(e-r)),a=Cr(r,n,e,t,!0),c=a[0],B=a[1];o=i*(s=pr(c-e,(B-t)/i))}break;case 1:0===A.shape?s=o=Math.max(Math.abs(e),Math.abs(e-r),Math.abs(t),Math.abs(t-n)):1===A.shape&&(s=Math.max(Math.abs(e),Math.abs(e-r)),o=Math.max(Math.abs(t),Math.abs(t-n)));break;case 3:if(0===A.shape)s=o=Math.max(pr(e,t),pr(e,t-n),pr(e-r,t),pr(e-r,t-n));else if(1===A.shape){i=Math.max(Math.abs(t),Math.abs(t-n))/Math.max(Math.abs(e),Math.abs(e-r));var l=Cr(r,n,e,t,!1);c=l[0],B=l[1],o=i*(s=pr(c-e,(B-t)/i))}}return Array.isArray(A.size)&&(s=Wt(A.size[0],r),o=2===A.size.length?Wt(A.size[1],n):s),[s,o]},Ur=function(A,e){var t=Ar(180),r=[];return Ot(e).forEach(function(e,n){if(0===n){var s=e[0];if(20===s.type&&"to"===s.value)return void(t=$t(e));if(zt(s))return void(t=qt.parse(A,s))}var o=dr(A,e);r.push(o)}),{angle:t,stops:r,type:1}},Fr=function(A,e){var t=Ar(180),r=[];return Ot(e).forEach(function(e,n){if(0===n){var s=e[0];if(20===s.type&&-1!==["top","left","right","bottom"].indexOf(s.value))return void(t=$t(e));if(zt(s))return void(t=(qt.parse(A,s)+Ar(270))%Ar(360))}var o=dr(A,e);r.push(o)}),{angle:t,stops:r,type:1}},mr=function(A,e){var t=Ar(180),r=[],n=1,s=0,o=3,i=[];return Ot(e).forEach(function(e,t){var s=e[0];if(0===t){if(Kt(s)&&"linear"===s.value)return void(n=1);if(Kt(s)&&"radial"===s.value)return void(n=2)}if(18===s.type)if("from"===s.name){var o=er.parse(A,s.values[0]);r.push({stop:Vt,color:o})}else if("to"===s.name)o=er.parse(A,s.values[0]),r.push({stop:Xt,color:o});else if("color-stop"===s.name){var i=s.values.filter(Tt);if(2===i.length){o=er.parse(A,i[1]);var a=i[0];Lt(a)&&r.push({stop:{type:16,number:100*a.number,flags:a.flags},color:o})}}}),1===n?{angle:(t+Ar(180))%Ar(360),stops:r,type:n}:{size:o,shape:s,stops:r,position:i,type:n}},yr="closest-side",Ir="farthest-side",Er="closest-corner",Hr="farthest-corner",vr="circle",br="ellipse",Sr="cover",Lr="contain",Kr=function(A,e){var t=0,r=3,n=[],s=[];return Ot(e).forEach(function(e,o){var i=!0;if(0===o){var a=!1;i=e.reduce(function(A,e){if(a)if(Kt(e))switch(e.value){case"center":return s.push(Pt),A;case"top":case"left":return s.push(Vt),A;case"right":case"bottom":return s.push(Xt),A}else(Nt(e)||Rt(e))&&s.push(e);else if(Kt(e))switch(e.value){case vr:return t=0,!1;case br:return t=1,!1;case"at":return a=!0,!1;case yr:return r=0,!1;case Sr:case Ir:return r=1,!1;case Lr:case Er:return r=2,!1;case Hr:return r=3,!1}else if(Rt(e)||Nt(e))return Array.isArray(r)||(r=[]),r.push(e),!1;return A},i)}if(i){var c=dr(A,e);n.push(c)}}),{size:r,shape:t,stops:n,position:s,type:2}},Dr=function(A,e){var t=0,r=3,n=[],s=[];return Ot(e).forEach(function(e,o){var i=!0;if(0===o?i=e.reduce(function(A,e){if(Kt(e))switch(e.value){case"center":return s.push(Pt),!1;case"top":case"left":return s.push(Vt),!1;case"right":case"bottom":return s.push(Xt),!1}else if(Nt(e)||Rt(e))return s.push(e),!1;return A},i):1===o&&(i=e.reduce(function(A,e){if(Kt(e))switch(e.value){case vr:return t=0,!1;case br:return t=1,!1;case Lr:case yr:return r=0,!1;case Ir:return r=1,!1;case Er:return r=2,!1;case Sr:case Hr:return r=3,!1}else if(Rt(e)||Nt(e))return Array.isArray(r)||(r=[]),r.push(e),!1;return A},i)),i){var a=dr(A,e);n.push(a)}}),{size:r,shape:t,stops:n,position:s,type:2}},Mr=function(A){return 1===A.type},kr=function(A){return 2===A.type},Tr={name:"image",parse:function(A,e){if(22===e.type){var t={url:e.value,type:0};return A.cache.addImage(e.value),t}if(18===e.type){var r=Rr[e.name];if(void 0===r)throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return r(A,e.values)}throw new Error("Unsupported image type "+e.type)}};function Or(A){return!(20===A.type&&"none"===A.value||18===A.type&&!Rr[A.name])}var xr,Rr={"linear-gradient":Ur,"-moz-linear-gradient":Fr,"-ms-linear-gradient":Fr,"-o-linear-gradient":Fr,"-webkit-linear-gradient":Fr,"radial-gradient":Kr,"-moz-radial-gradient":Dr,"-ms-radial-gradient":Dr,"-o-radial-gradient":Dr,"-webkit-radial-gradient":Dr,"-webkit-gradient":mr},Nr={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(A,e){if(0===e.length)return[];var t=e[0];return 20===t.type&&"none"===t.value?[]:e.filter(function(A){return Tt(A)&&Or(A)}).map(function(e){return Tr.parse(A,e)})}},Gr={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map(function(A){if(Kt(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Vr={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(A,e){return Ot(e).map(function(A){return A.filter(Nt)}).map(Gt)}},Pr={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(A,e){return Ot(e).map(function(A){return A.filter(Kt).map(function(A){return A.value}).join(" ")}).map(Xr)}},Xr=function(A){switch(A){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}};!function(A){A.AUTO="auto",A.CONTAIN="contain",A.COVER="cover"}(xr||(xr={}));var Jr,Wr={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(A,e){return Ot(e).map(function(A){return A.filter(_r)})}},_r=function(A){return Kt(A)||Nt(A)},Yr=function(A){return{name:"border-"+A+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Zr=Yr("top"),jr=Yr("right"),qr=Yr("bottom"),zr=Yr("left"),$r=function(A){return{name:"border-radius-"+A,initialValue:"0 0",prefix:!1,type:1,parse:function(A,e){return Gt(e.filter(Nt))}}},An=$r("top-left"),en=$r("top-right"),tn=$r("bottom-right"),rn=$r("bottom-left"),nn=function(A){return{name:"border-"+A+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(A,e){switch(e){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},sn=nn("top"),on=nn("right"),an=nn("bottom"),cn=nn("left"),Bn=function(A){return{name:"border-"+A+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return St(e)?e.number:0}}},ln=Bn("top"),un=Bn("right"),gn=Bn("bottom"),dn=Bn("left"),hn={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},wn={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(A,e){return"rtl"===e?1:0}},Qn={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(A,e){return e.filter(Kt).reduce(function(A,e){return A|pn(e.value)},0)}},pn=function(A){switch(A){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},Cn={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},fn={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(A,e){return 20===e.type&&"normal"===e.value?0:17===e.type||15===e.type?e.number:0}};!function(A){A.NORMAL="normal",A.STRICT="strict"}(Jr||(Jr={}));var Un,Fn={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){return"strict"===e?Jr.STRICT:Jr.NORMAL}},mn={name:"line-height",initialValue:"normal",prefix:!1,type:4},yn=function(A,e){return Kt(A)&&"normal"===A.value?1.2*e:17===A.type?e*A.number:Nt(A)?Wt(A,e):e},In={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(A,e){return 20===e.type&&"none"===e.value?null:Tr.parse(A,e)}},En={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(A,e){return"inside"===e?0:1}},Hn={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},vn=function(A){return{name:"margin-"+A,initialValue:"0",prefix:!1,type:4}},bn=vn("top"),Sn=vn("right"),Ln=vn("bottom"),Kn=vn("left"),Dn={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(A,e){return e.filter(Kt).map(function(A){switch(A.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},Mn={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){return"break-word"===e?"break-word":"normal"}},kn=function(A){return{name:"padding-"+A,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Tn=kn("top"),On=kn("right"),xn=kn("bottom"),Rn=kn("left"),Nn={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(A,e){switch(e){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},Gn={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(A,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Vn={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return 1===e.length&&Mt(e[0],"none")?[]:Ot(e).map(function(e){for(var t={color:lr.TRANSPARENT,offsetX:Vt,offsetY:Vt,blur:Vt},r=0,n=0;n<e.length;n++){var s=e[n];Rt(s)?(0===r?t.offsetX=s:1===r?t.offsetY=s:t.blur=s,r++):t.color=er.parse(A,s)}return t})}},Pn={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Xn={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(A,e){if(20===e.type&&"none"===e.value)return null;if(18===e.type){var t=Jn[e.name];if(void 0===t)throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return t(e.values)}return null}},Jn={matrix:function(A){var e=A.filter(function(A){return 17===A.type}).map(function(A){return A.number});return 6===e.length?e:null},matrix3d:function(A){var e=A.filter(function(A){return 17===A.type}).map(function(A){return A.number}),t=e[0],r=e[1];e[2],e[3];var n=e[4],s=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var o=e[12],i=e[13];return e[14],e[15],16===e.length?[t,r,n,s,o,i]:null}},Wn={type:16,number:50,flags:JA},_n=[Wn,Wn],Yn={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(A,e){var t=e.filter(Nt);return 2!==t.length?_n:[t[0],t[1]]}},Zn={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"hidden":return 1;case"collapse":return 2;default:return 0}}};!function(A){A.NORMAL="normal",A.BREAK_ALL="break-all",A.KEEP_ALL="keep-all"}(Un||(Un={}));for(var jn={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"break-all":return Un.BREAK_ALL;case"keep-all":return Un.KEEP_ALL;default:return Un.NORMAL}}},qn={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(A,e){if(20===e.type)return{auto:!0,order:0};if(Lt(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},zn={name:"time",parse:function(A,e){if(15===e.type)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},$n={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(A,e){return Lt(e)?e.number:1}},As={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},es={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(A,e){return e.filter(Kt).map(function(A){switch(A.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(A){return 0!==A})}},ts={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(A,e){var t=[],r=[];return e.forEach(function(A){switch(A.type){case 20:case 0:t.push(A.value);break;case 17:t.push(A.number.toString());break;case 4:r.push(t.join(" ")),t.length=0}}),t.length&&r.push(t.join(" ")),r.map(function(A){return-1===A.indexOf(" ")?A:"'"+A+"'"})}},rs={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},ns={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(A,e){return Lt(e)?e.number:Kt(e)&&"bold"===e.value?700:400}},ss={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return e.filter(Kt).map(function(A){return A.value})}},os={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},is=function(A,e){return 0!==(A&e)},as={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(A,e){if(0===e.length)return[];var t=e[0];return 20===t.type&&"none"===t.value?[]:e}},cs={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(0===e.length)return null;var t=e[0];if(20===t.type&&"none"===t.value)return null;for(var r=[],n=e.filter(kt),s=0;s<n.length;s++){var o=n[s],i=n[s+1];if(20===o.type){var a=i&&Lt(i)?i.number:1;r.push({counter:o.value,increment:a})}}return r}},Bs={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(0===e.length)return[];for(var t=[],r=e.filter(kt),n=0;n<r.length;n++){var s=r[n],o=r[n+1];if(Kt(s)&&"none"!==s.value){var i=o&&Lt(o)?o.number:0;t.push({counter:s.value,reset:i})}}return t}},ls={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(A,e){return e.filter(St).map(function(e){return zn.parse(A,e)})}},us={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(0===e.length)return null;var t=e[0];if(20===t.type&&"none"===t.value)return null;var r=[],n=e.filter(Dt);if(n.length%2!=0)return null;for(var s=0;s<n.length;s+=2){var o=n[s].value,i=n[s+1].value;r.push({open:o,close:i})}return r}},gs=function(A,e,t){if(!A)return"";var r=A[Math.min(e,A.length-1)];return r?t?r.open:r.close:""},ds={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return 1===e.length&&Mt(e[0],"none")?[]:Ot(e).map(function(e){for(var t={color:255,offsetX:Vt,offsetY:Vt,blur:Vt,spread:Vt,inset:!1},r=0,n=0;n<e.length;n++){var s=e[n];Mt(s,"inset")?t.inset=!0:Rt(s)?(0===r?t.offsetX=s:1===r?t.offsetY=s:2===r?t.blur=s:t.spread=s,r++):t.color=er.parse(A,s)}return t})}},hs={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(A,e){var t=[0,1,2],r=[];return e.filter(Kt).forEach(function(A){switch(A.value){case"stroke":r.push(1);break;case"fill":r.push(0);break;case"markers":r.push(2)}}),t.forEach(function(A){-1===r.indexOf(A)&&r.push(A)}),r}},ws={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},Qs={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return St(e)?e.number:0}},ps=function(){function A(A,e){var t,r;this.animationDuration=Us(A,ls,e.animationDuration),this.backgroundClip=Us(A,ur,e.backgroundClip),this.backgroundColor=Us(A,gr,e.backgroundColor),this.backgroundImage=Us(A,Nr,e.backgroundImage),this.backgroundOrigin=Us(A,Gr,e.backgroundOrigin),this.backgroundPosition=Us(A,Vr,e.backgroundPosition),this.backgroundRepeat=Us(A,Pr,e.backgroundRepeat),this.backgroundSize=Us(A,Wr,e.backgroundSize),this.borderTopColor=Us(A,Zr,e.borderTopColor),this.borderRightColor=Us(A,jr,e.borderRightColor),this.borderBottomColor=Us(A,qr,e.borderBottomColor),this.borderLeftColor=Us(A,zr,e.borderLeftColor),this.borderTopLeftRadius=Us(A,An,e.borderTopLeftRadius),this.borderTopRightRadius=Us(A,en,e.borderTopRightRadius),this.borderBottomRightRadius=Us(A,tn,e.borderBottomRightRadius),this.borderBottomLeftRadius=Us(A,rn,e.borderBottomLeftRadius),this.borderTopStyle=Us(A,sn,e.borderTopStyle),this.borderRightStyle=Us(A,on,e.borderRightStyle),this.borderBottomStyle=Us(A,an,e.borderBottomStyle),this.borderLeftStyle=Us(A,cn,e.borderLeftStyle),this.borderTopWidth=Us(A,ln,e.borderTopWidth),this.borderRightWidth=Us(A,un,e.borderRightWidth),this.borderBottomWidth=Us(A,gn,e.borderBottomWidth),this.borderLeftWidth=Us(A,dn,e.borderLeftWidth),this.boxShadow=Us(A,ds,e.boxShadow),this.color=Us(A,hn,e.color),this.direction=Us(A,wn,e.direction),this.display=Us(A,Qn,e.display),this.float=Us(A,Cn,e.cssFloat),this.fontFamily=Us(A,ts,e.fontFamily),this.fontSize=Us(A,rs,e.fontSize),this.fontStyle=Us(A,os,e.fontStyle),this.fontVariant=Us(A,ss,e.fontVariant),this.fontWeight=Us(A,ns,e.fontWeight),this.letterSpacing=Us(A,fn,e.letterSpacing),this.lineBreak=Us(A,Fn,e.lineBreak),this.lineHeight=Us(A,mn,e.lineHeight),this.listStyleImage=Us(A,In,e.listStyleImage),this.listStylePosition=Us(A,En,e.listStylePosition),this.listStyleType=Us(A,Hn,e.listStyleType),this.marginTop=Us(A,bn,e.marginTop),this.marginRight=Us(A,Sn,e.marginRight),this.marginBottom=Us(A,Ln,e.marginBottom),this.marginLeft=Us(A,Kn,e.marginLeft),this.opacity=Us(A,$n,e.opacity);var n=Us(A,Dn,e.overflow);this.overflowX=n[0],this.overflowY=n[n.length>1?1:0],this.overflowWrap=Us(A,Mn,e.overflowWrap),this.paddingTop=Us(A,Tn,e.paddingTop),this.paddingRight=Us(A,On,e.paddingRight),this.paddingBottom=Us(A,xn,e.paddingBottom),this.paddingLeft=Us(A,Rn,e.paddingLeft),this.paintOrder=Us(A,hs,e.paintOrder),this.position=Us(A,Gn,e.position),this.textAlign=Us(A,Nn,e.textAlign),this.textDecorationColor=Us(A,As,null!==(t=e.textDecorationColor)&&void 0!==t?t:e.color),this.textDecorationLine=Us(A,es,null!==(r=e.textDecorationLine)&&void 0!==r?r:e.textDecoration),this.textShadow=Us(A,Vn,e.textShadow),this.textTransform=Us(A,Pn,e.textTransform),this.transform=Us(A,Xn,e.transform),this.transformOrigin=Us(A,Yn,e.transformOrigin),this.visibility=Us(A,Zn,e.visibility),this.webkitTextStrokeColor=Us(A,ws,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=Us(A,Qs,e.webkitTextStrokeWidth),this.wordBreak=Us(A,jn,e.wordBreak),this.zIndex=Us(A,qn,e.zIndex)}return A.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},A.prototype.isTransparent=function(){return tr(this.backgroundColor)},A.prototype.isTransformed=function(){return null!==this.transform},A.prototype.isPositioned=function(){return 0!==this.position},A.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},A.prototype.isFloating=function(){return 0!==this.float},A.prototype.isInlineLevel=function(){return is(this.display,4)||is(this.display,33554432)||is(this.display,268435456)||is(this.display,536870912)||is(this.display,67108864)||is(this.display,134217728)},A}(),Cs=function(){function A(A,e){this.content=Us(A,as,e.content),this.quotes=Us(A,us,e.quotes)}return A}(),fs=function(){function A(A,e){this.counterIncrement=Us(A,cs,e.counterIncrement),this.counterReset=Us(A,Bs,e.counterReset)}return A}(),Us=function(A,e,t){var r=new vt,n=null!=t?t.toString():e.initialValue;r.write(n);var s=new bt(r.read());switch(e.type){case 2:var o=s.parseComponentValue();return e.parse(A,Kt(o)?o.value:e.initialValue);case 0:return e.parse(A,s.parseComponentValue());case 1:return e.parse(A,s.parseComponentValues());case 4:return s.parseComponentValue();case 3:switch(e.format){case"angle":return qt.parse(A,s.parseComponentValue());case"color":return er.parse(A,s.parseComponentValue());case"image":return Tr.parse(A,s.parseComponentValue());case"length":var i=s.parseComponentValue();return Rt(i)?i:Vt;case"length-percentage":var a=s.parseComponentValue();return Nt(a)?a:Vt;case"time":return zn.parse(A,s.parseComponentValue())}}},Fs="data-html2canvas-debug",ms=function(A){switch(A.getAttribute(Fs)){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},ys=function(A,e){var t=ms(A);return 1===t||e===t},Is=function(){function A(A,e){this.context=A,this.textNodes=[],this.elements=[],this.flags=0,ys(e,3),this.styles=new ps(A,window.getComputedStyle(e,null)),gi(e)&&(this.styles.animationDuration.some(function(A){return A>0})&&(e.style.animationDuration="0s"),null!==this.styles.transform&&(e.style.transform="none")),this.bounds=i(this.context,e),ys(e,4)&&(this.flags|=16)}return A}(),Es="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIA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AQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWK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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Hs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",vs="undefined"==typeof Uint8Array?[]:new Uint8Array(256),bs=0;bs<Hs.length;bs++)vs[Hs.charCodeAt(bs)]=bs;for(var Ss=function(A){var e,t,r,n,s,o=.75*A.length,i=A.length,a=0;"="===A[A.length-1]&&(o--,"="===A[A.length-2]&&o--);var c="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(o):new Array(o),B=Array.isArray(c)?c:new Uint8Array(c);for(e=0;e<i;e+=4)t=vs[A.charCodeAt(e)],r=vs[A.charCodeAt(e+1)],n=vs[A.charCodeAt(e+2)],s=vs[A.charCodeAt(e+3)],B[a++]=t<<2|r>>4,B[a++]=(15&r)<<4|n>>2,B[a++]=(3&n)<<6|63&s;return c},Ls=function(A){for(var e=A.length,t=[],r=0;r<e;r+=2)t.push(A[r+1]<<8|A[r]);return t},Ks=function(A){for(var e=A.length,t=[],r=0;r<e;r+=4)t.push(A[r+3]<<24|A[r+2]<<16|A[r+1]<<8|A[r]);return t},Ds=5,Ms=11,ks=2,Ts=65536>>Ds,Os=(1<<Ds)-1,xs=Ts+(1024>>Ds)+32,Rs=65536>>Ms,Ns=(1<<Ms-Ds)-1,Gs=function(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))},Vs=function(A,e,t){return A.slice?A.slice(e,t):new Uint32Array(Array.prototype.slice.call(A,e,t))},Ps=function(A,e){var t=Ss(A),r=Array.isArray(t)?Ks(t):new Uint32Array(t),n=Array.isArray(t)?Ls(t):new Uint16Array(t),s=24,o=Gs(n,s/2,r[4]/2),i=2===r[5]?Gs(n,(s+r[4])/2):Vs(r,Math.ceil((s+r[4])/4));return new Xs(r[0],r[1],r[2],r[3],o,i)},Xs=function(){function A(A,e,t,r,n,s){this.initialValue=A,this.errorValue=e,this.highStart=t,this.highValueIndex=r,this.index=n,this.data=s}return A.prototype.get=function(A){var e;if(A>=0){if(A<55296||A>56319&&A<=65535)return e=((e=this.index[A>>Ds])<<ks)+(A&Os),this.data[e];if(A<=65535)return e=((e=this.index[Ts+(A-55296>>Ds)])<<ks)+(A&Os),this.data[e];if(A<this.highStart)return e=xs-Rs+(A>>Ms),e=this.index[e],e+=A>>Ds&Ns,e=((e=this.index[e])<<ks)+(A&Os),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A}(),Js="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ws="undefined"==typeof Uint8Array?[]:new Uint8Array(256),_s=0;_s<Js.length;_s++)Ws[Js.charCodeAt(_s)]=_s;var Ys,Zs=1,js=2,qs=3,zs=4,$s=5,Ao=7,eo=8,to=9,ro=10,no=11,so=12,oo=13,io=14,ao=15,co=function(A){for(var e=[],t=0,r=A.length;t<r;){var n=A.charCodeAt(t++);if(n>=55296&&n<=56319&&t<r){var s=A.charCodeAt(t++);56320==(64512&s)?e.push(((1023&n)<<10)+(1023&s)+65536):(e.push(n),t--)}else e.push(n)}return e},Bo=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var t=A.length;if(!t)return"";for(var r=[],n=-1,s="";++n<t;){var o=A[n];o<=65535?r.push(o):(o-=65536,r.push(55296+(o>>10),o%1024+56320)),(n+1===t||r.length>16384)&&(s+=String.fromCharCode.apply(String,r),r.length=0)}return s},lo=Ps(Es),uo="×",go="÷",ho=function(A){return lo.get(A)},wo=function(A,e,t){var r=t-2,n=e[r],s=e[t-1],o=e[t];if(s===js&&o===qs)return uo;if(s===js||s===qs||s===zs)return go;if(o===js||o===qs||o===zs)return go;if(s===eo&&-1!==[eo,to,no,so].indexOf(o))return uo;if(!(s!==no&&s!==to||o!==to&&o!==ro))return uo;if((s===so||s===ro)&&o===ro)return uo;if(o===oo||o===$s)return uo;if(o===Ao)return uo;if(s===Zs)return uo;if(s===oo&&o===io){for(;n===$s;)n=e[--r];if(n===io)return uo}if(s===ao&&o===ao){for(var i=0;n===ao;)i++,n=e[--r];if(i%2==0)return uo}return go},Qo=function(A){var e=co(A),t=e.length,r=0,n=0,s=e.map(ho);return{next:function(){if(r>=t)return{done:!0,value:null};for(var A=uo;r<t&&(A=wo(e,s,++r))===uo;);if(A!==uo||r===t){var o=Bo.apply(null,e.slice(n,r));return n=r,{value:o,done:!1}}return{done:!0,value:null}}}},po=function(A){for(var e,t=Qo(A),r=[];!(e=t.next()).done;)e.value&&r.push(e.value.slice());return r},Co=function(A){var e=123;if(A.createRange){var t=A.createRange();if(t.getBoundingClientRect){var r=A.createElement("boundtest");r.style.height=e+"px",r.style.display="block",A.body.appendChild(r),t.selectNode(r);var n=t.getBoundingClientRect(),s=Math.round(n.height);if(A.body.removeChild(r),s===e)return!0}}return!1},fo=function(A){var e=A.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",A.body.appendChild(e);var t=A.createRange();e.innerHTML="function"==typeof"".repeat?"&#128104;".repeat(10):"";var r=e.firstChild,n=c(r.data).map(function(A){return B(A)}),s=0,o={},i=n.every(function(A,e){t.setStart(r,s),t.setEnd(r,s+A.length);var n=t.getBoundingClientRect();s+=A.length;var i=n.x>o.x||n.y>o.y;return o=n,0===e||i});return A.body.removeChild(e),i},Uo=function(){return void 0!==(new Image).crossOrigin},Fo=function(){return"string"==typeof(new XMLHttpRequest).responseType},mo=function(A){var e=new Image,t=A.createElement("canvas"),r=t.getContext("2d");if(!r)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(e,0,0),t.toDataURL()}catch(A){return!1}return!0},yo=function(A){return 0===A[0]&&255===A[1]&&0===A[2]&&255===A[3]},Io=function(A){var e=A.createElement("canvas"),t=100;e.width=t,e.height=t;var r=e.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,t,t);var n=new Image,s=e.toDataURL();n.src=s;var o=Eo(t,t,0,0,n);return r.fillStyle="red",r.fillRect(0,0,t,t),Ho(o).then(function(e){r.drawImage(e,0,0);var n=r.getImageData(0,0,t,t).data;r.fillStyle="red",r.fillRect(0,0,t,t);var o=A.createElement("div");return o.style.backgroundImage="url("+s+")",o.style.height=t+"px",yo(n)?Ho(Eo(t,t,0,0,o)):Promise.reject(!1)}).then(function(A){return r.drawImage(A,0,0),yo(r.getImageData(0,0,t,t).data)}).catch(function(){return!1})},Eo=function(A,e,t,r,n){var s="http://www.w3.org/2000/svg",o=document.createElementNS(s,"svg"),i=document.createElementNS(s,"foreignObject");return o.setAttributeNS(null,"width",A.toString()),o.setAttributeNS(null,"height",e.toString()),i.setAttributeNS(null,"width","100%"),i.setAttributeNS(null,"height","100%"),i.setAttributeNS(null,"x",t.toString()),i.setAttributeNS(null,"y",r.toString()),i.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(i),i.appendChild(n),o},Ho=function(A){return new Promise(function(e,t){var r=new Image;r.onload=function(){return e(r)},r.onerror=t,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(A))})},vo={get SUPPORT_RANGE_BOUNDS(){var A=Co(document);return Object.defineProperty(vo,"SUPPORT_RANGE_BOUNDS",{value:A}),A},get SUPPORT_WORD_BREAKING(){var A=vo.SUPPORT_RANGE_BOUNDS&&fo(document);return Object.defineProperty(vo,"SUPPORT_WORD_BREAKING",{value:A}),A},get SUPPORT_SVG_DRAWING(){var A=mo(document);return Object.defineProperty(vo,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_FOREIGNOBJECT_DRAWING(){var A="function"==typeof Array.from&&"function"==typeof window.fetch?Io(document):Promise.resolve(!1);return Object.defineProperty(vo,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){var A=Uo();return Object.defineProperty(vo,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){var A=Fo();return Object.defineProperty(vo,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){var A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(vo,"SUPPORT_CORS_XHR",{value:A}),A},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var A=!("undefined"==typeof Intl||!Intl.Segmenter);return Object.defineProperty(vo,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:A}),A}},bo=function(){function A(A,e){this.text=A,this.bounds=e}return A}(),So=function(A,e,t,r){var n=ko(e,t),s=[],i=0;return n.forEach(function(e){if(t.textDecorationLine.length||e.trim().length>0)if(vo.SUPPORT_RANGE_BOUNDS){var n=Ko(r,i,e.length).getClientRects();if(n.length>1){var a=Do(e),c=0;a.forEach(function(e){s.push(new bo(e,o.fromDOMRectList(A,Ko(r,c+i,e.length).getClientRects()))),c+=e.length})}else s.push(new bo(e,o.fromDOMRectList(A,n)))}else{var B=r.splitText(e.length);s.push(new bo(e,Lo(A,r))),r=B}else vo.SUPPORT_RANGE_BOUNDS||(r=r.splitText(e.length));i+=e.length}),s},Lo=function(A,e){var t=e.ownerDocument;if(t){var r=t.createElement("html2canvaswrapper");r.appendChild(e.cloneNode(!0));var n=e.parentNode;if(n){n.replaceChild(r,e);var s=i(A,r);return r.firstChild&&n.replaceChild(r.firstChild,r),s}}return o.EMPTY},Ko=function(A,e,t){var r=A.ownerDocument;if(!r)throw new Error("Node has no owner document");var n=r.createRange();return n.setStart(A,e),n.setEnd(A,e+t),n},Do=function(A){if(vo.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(A)).map(function(A){return A.segment})}return po(A)},Mo=function(A,e){if(vo.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(t.segment(A)).map(function(A){return A.segment})}return Oo(A,e)},ko=function(A,e){return 0!==e.letterSpacing?Do(A):Mo(A,e)},To=[32,160,4961,65792,65793,4153,4241],Oo=function(A,e){for(var t,r=VA(A,{lineBreak:e.lineBreak,wordBreak:"break-word"===e.overflowWrap?"break-word":e.wordBreak}),n=[],s=function(){if(t.value){var A=t.value.slice(),e=c(A),r="";e.forEach(function(A){-1===To.indexOf(A)?r+=B(A):(r.length&&n.push(r),n.push(B(A)),r="")}),r.length&&n.push(r)}};!(t=r.next()).done;)s();return n},xo=function(){function A(A,e,t){this.text=Ro(e.data,t.textTransform),this.textBounds=So(A,this.text,t,e)}return A}(),Ro=function(A,e){switch(e){case 1:return A.toLowerCase();case 3:return A.replace(No,Go);case 2:return A.toUpperCase();default:return A}},No=/(^|\s|:|-|\(|\))([a-z])/g,Go=function(A,e,t){return A.length>0?e+t.toUpperCase():A},Vo=function(A){function t(e,t){var r=A.call(this,e,t)||this;return r.src=t.currentSrc||t.src,r.intrinsicWidth=t.naturalWidth,r.intrinsicHeight=t.naturalHeight,r.context.cache.addImage(r.src),r}return e(t,A),t}(Is),Po=function(A){function t(e,t){var r=A.call(this,e,t)||this;return r.canvas=t,r.intrinsicWidth=t.width,r.intrinsicHeight=t.height,r}return e(t,A),t}(Is),Xo=function(A){function t(e,t){var r=A.call(this,e,t)||this,n=new XMLSerializer,s=i(e,t);return t.setAttribute("width",s.width+"px"),t.setAttribute("height",s.height+"px"),r.svg="data:image/svg+xml,"+encodeURIComponent(n.serializeToString(t)),r.intrinsicWidth=t.width.baseVal.value,r.intrinsicHeight=t.height.baseVal.value,r.context.cache.addImage(r.svg),r}return e(t,A),t}(Is),Jo=function(A){function t(e,t){var r=A.call(this,e,t)||this;return r.value=t.value,r}return e(t,A),t}(Is),Wo=function(A){function t(e,t){var r=A.call(this,e,t)||this;return r.start=t.start,r.reversed="boolean"==typeof t.reversed&&!0===t.reversed,r}return e(t,A),t}(Is),_o=[{type:15,flags:0,unit:"px",number:3}],Yo=[{type:16,flags:0,number:50}],Zo=function(A){return A.width>A.height?new o(A.left+(A.width-A.height)/2,A.top,A.height,A.height):A.width<A.height?new o(A.left,A.top+(A.height-A.width)/2,A.width,A.width):A},jo=function(A){var e=A.type===$o?new Array(A.value.length+1).join("•"):A.value;return 0===e.length?A.placeholder||"":e},qo="checkbox",zo="radio",$o="password",Ai=707406591,ei=function(A){function t(e,t){var r=A.call(this,e,t)||this;switch(r.type=t.type.toLowerCase(),r.checked=t.checked,r.value=jo(t),r.type!==qo&&r.type!==zo||(r.styles.backgroundColor=3739148031,r.styles.borderTopColor=r.styles.borderRightColor=r.styles.borderBottomColor=r.styles.borderLeftColor=2779096575,r.styles.borderTopWidth=r.styles.borderRightWidth=r.styles.borderBottomWidth=r.styles.borderLeftWidth=1,r.styles.borderTopStyle=r.styles.borderRightStyle=r.styles.borderBottomStyle=r.styles.borderLeftStyle=1,r.styles.backgroundClip=[0],r.styles.backgroundOrigin=[0],r.bounds=Zo(r.bounds)),r.type){case qo:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=_o;break;case zo:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=Yo}return r}return e(t,A),t}(Is),ti=function(A){function t(e,t){var r=A.call(this,e,t)||this,n=t.options[t.selectedIndex||0];return r.value=n&&n.text||"",r}return e(t,A),t}(Is),ri=function(A){function t(e,t){var r=A.call(this,e,t)||this;return r.value=t.value,r}return e(t,A),t}(Is),ni=function(A){function t(e,t){var r=A.call(this,e,t)||this;r.src=t.src,r.width=parseInt(t.width,10)||0,r.height=parseInt(t.height,10)||0,r.backgroundColor=r.styles.backgroundColor;try{if(t.contentWindow&&t.contentWindow.document&&t.contentWindow.document.documentElement){r.tree=ai(e,t.contentWindow.document.documentElement);var n=t.contentWindow.document.documentElement?Br(e,getComputedStyle(t.contentWindow.document.documentElement).backgroundColor):lr.TRANSPARENT,s=t.contentWindow.document.body?Br(e,getComputedStyle(t.contentWindow.document.body).backgroundColor):lr.TRANSPARENT;r.backgroundColor=tr(n)?tr(s)?r.styles.backgroundColor:s:n}}catch(A){}return r}return e(t,A),t}(Is),si=["OL","UL","MENU"],oi=function(A,e,t,r){for(var n=e.firstChild,s=void 0;n;n=s)if(s=n.nextSibling,li(n)&&n.data.trim().length>0)t.textNodes.push(new xo(A,n,t.styles));else if(ui(n))if(bi(n)&&n.assignedNodes)n.assignedNodes().forEach(function(e){return oi(A,e,t,r)});else{var o=ii(A,n);o.styles.isVisible()&&(ci(n,o,r)?o.flags|=4:Bi(o.styles)&&(o.flags|=2),-1!==si.indexOf(n.tagName)&&(o.flags|=8),t.elements.push(o),n.slot,n.shadowRoot?oi(A,n.shadowRoot,o,r):Hi(n)||Ci(n)||vi(n)||oi(A,n,o,r))}},ii=function(A,e){return mi(e)?new Vo(A,e):Ui(e)?new Po(A,e):Ci(e)?new Xo(A,e):hi(e)?new Jo(A,e):wi(e)?new Wo(A,e):Qi(e)?new ei(A,e):vi(e)?new ti(A,e):Hi(e)?new ri(A,e):yi(e)?new ni(A,e):new Is(A,e)},ai=function(A,e){var t=ii(A,e);return t.flags|=4,oi(A,e,t,t),t},ci=function(A,e,t){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||fi(A)&&t.styles.isTransparent()},Bi=function(A){return A.isPositioned()||A.isFloating()},li=function(A){return A.nodeType===Node.TEXT_NODE},ui=function(A){return A.nodeType===Node.ELEMENT_NODE},gi=function(A){return ui(A)&&void 0!==A.style&&!di(A)},di=function(A){return"object"==typeof A.className},hi=function(A){return"LI"===A.tagName},wi=function(A){return"OL"===A.tagName},Qi=function(A){return"INPUT"===A.tagName},pi=function(A){return"HTML"===A.tagName},Ci=function(A){return"svg"===A.tagName},fi=function(A){return"BODY"===A.tagName},Ui=function(A){return"CANVAS"===A.tagName},Fi=function(A){return"VIDEO"===A.tagName},mi=function(A){return"IMG"===A.tagName},yi=function(A){return"IFRAME"===A.tagName},Ii=function(A){return"STYLE"===A.tagName},Ei=function(A){return"SCRIPT"===A.tagName},Hi=function(A){return"TEXTAREA"===A.tagName},vi=function(A){return"SELECT"===A.tagName},bi=function(A){return"SLOT"===A.tagName},Si=function(A){return A.tagName.indexOf("-")>0},Li=function(){function A(){this.counters={}}return A.prototype.getCounterValue=function(A){var e=this.counters[A];return e&&e.length?e[e.length-1]:1},A.prototype.getCounterValues=function(A){var e=this.counters[A];return e||[]},A.prototype.pop=function(A){var e=this;A.forEach(function(A){return e.counters[A].pop()})},A.prototype.parse=function(A){var e=this,t=A.counterIncrement,r=A.counterReset,n=!0;null!==t&&t.forEach(function(A){var t=e.counters[A.counter];t&&0!==A.increment&&(n=!1,t.length||t.push(1),t[Math.max(0,t.length-1)]+=A.increment)});var s=[];return n&&r.forEach(function(A){var t=e.counters[A.counter];s.push(A.counter),t||(t=e.counters[A.counter]=[]),t.push(A.reset)}),s},A}(),Ki={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Di={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Mi={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},ki={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Ti=function(A,e,t,r,n,s){return A<e||A>t?Zi(A,n,s.length>0):r.integers.reduce(function(e,t,n){for(;A>=t;)A-=t,e+=r.values[n];return e},"")+s},Oi=function(A,e,t,r){var n="";do{t||A--,n=r(A)+n,A/=e}while(A*e>=e);return n},xi=function(A,e,t,r,n){var s=t-e+1;return(A<0?"-":"")+(Oi(Math.abs(A),s,r,function(A){return B(Math.floor(A%s)+e)})+n)},Ri=function(A,e,t){void 0===t&&(t=". ");var r=e.length;return Oi(Math.abs(A),r,!1,function(A){return e[Math.floor(A%r)]})+t},Ni=1,Gi=2,Vi=4,Pi=8,Xi=function(A,e,t,r,n,s){if(A<-9999||A>9999)return Zi(A,4,n.length>0);var o=Math.abs(A),i=n;if(0===o)return e[0]+i;for(var a=0;o>0&&a<=4;a++){var c=o%10;0===c&&is(s,Ni)&&""!==i?i=e[c]+i:c>1||1===c&&0===a||1===c&&1===a&&is(s,Gi)||1===c&&1===a&&is(s,Vi)&&A>100||1===c&&a>1&&is(s,Pi)?i=e[c]+(a>0?t[a-1]:"")+i:1===c&&a>0&&(i=t[a-1]+i),o=Math.floor(o/10)}return(A<0?r:"")+i},Ji="十百千萬",Wi="拾佰仟萬",_i="マイナス",Yi="마이너스",Zi=function(A,e,t){var r=t?". ":"",n=t?"、":"",s=t?", ":"",o=t?" ":"";switch(e){case 0:return"•"+o;case 1:return"◦"+o;case 2:return"◾"+o;case 5:var i=xi(A,48,57,!0,r);return i.length<4?"0"+i:i;case 4:return Ri(A,"〇一二三四五六七八九",n);case 6:return Ti(A,1,3999,Ki,3,r).toLowerCase();case 7:return Ti(A,1,3999,Ki,3,r);case 8:return xi(A,945,969,!1,r);case 9:return xi(A,97,122,!1,r);case 10:return xi(A,65,90,!1,r);case 11:return xi(A,1632,1641,!0,r);case 12:case 49:return Ti(A,1,9999,Di,3,r);case 35:return Ti(A,1,9999,Di,3,r).toLowerCase();case 13:return xi(A,2534,2543,!0,r);case 14:case 30:return xi(A,6112,6121,!0,r);case 15:return Ri(A,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return Ri(A,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 48:return Xi(A,"零一二三四五六七八九",Ji,"負",n,Gi|Vi|Pi);case 47:return Xi(A,"零壹貳參肆伍陸柒捌玖",Wi,"負",n,Ni|Gi|Vi|Pi);case 42:return Xi(A,"零一二三四五六七八九",Ji,"负",n,Gi|Vi|Pi);case 41:return Xi(A,"零壹贰叁肆伍陆柒捌玖",Wi,"负",n,Ni|Gi|Vi|Pi);case 26:return Xi(A,"〇一二三四五六七八九","十百千万",_i,n,0);case 25:return Xi(A,"零壱弐参四伍六七八九","拾百千万",_i,n,Ni|Gi|Vi);case 31:return Xi(A,"영일이삼사오육칠팔구","십백천만",Yi,s,Ni|Gi|Vi);case 33:return Xi(A,"零一二三四五六七八九","十百千萬",Yi,s,0);case 32:return Xi(A,"零壹貳參四五六七八九","拾百千",Yi,s,Ni|Gi|Vi);case 18:return xi(A,2406,2415,!0,r);case 20:return Ti(A,1,19999,ki,3,r);case 21:return xi(A,2790,2799,!0,r);case 22:return xi(A,2662,2671,!0,r);case 22:return Ti(A,1,10999,Mi,3,r);case 23:return Ri(A,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Ri(A,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return xi(A,3302,3311,!0,r);case 28:return Ri(A,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 29:return Ri(A,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case 34:return xi(A,3792,3801,!0,r);case 37:return xi(A,6160,6169,!0,r);case 38:return xi(A,4160,4169,!0,r);case 39:return xi(A,2918,2927,!0,r);case 40:return xi(A,1776,1785,!0,r);case 43:return xi(A,3046,3055,!0,r);case 44:return xi(A,3174,3183,!0,r);case 45:return xi(A,3664,3673,!0,r);case 46:return xi(A,3872,3881,!0,r);default:return xi(A,48,57,!0,r)}},ji="data-html2canvas-ignore",qi=function(){function A(A,e,t){if(this.context=A,this.options=t,this.scrolledElements=[],this.referenceElement=e,this.counters=new Li,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}return A.prototype.toIFrame=function(A,e){var t=this,s=$i(A,e);if(!s.contentWindow)return Promise.reject("Unable to find iframe window");var o=A.defaultView.pageXOffset,i=A.defaultView.pageYOffset,a=s.contentWindow,c=a.document,B=ta(s).then(function(){return r(t,void 0,void 0,function(){var A,t;return n(this,function(r){switch(r.label){case 0:return this.scrolledElements.forEach(ia),a&&(a.scrollTo(e.left,e.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||a.scrollY===e.top&&a.scrollX===e.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(a.scrollX-e.left,a.scrollY-e.top,0,0))),A=this.options.onclone,void 0===(t=this.clonedReferenceElement)?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:c.fonts&&c.fonts.ready?[4,c.fonts.ready]:[3,2];case 1:r.sent(),r.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,ea(c)]:[3,4];case 3:r.sent(),r.label=4;case 4:return"function"==typeof A?[2,Promise.resolve().then(function(){return A(c,t)}).then(function(){return s})]:[2,s]}})})});return c.open(),c.write(sa(document.doctype)+"<html></html>"),oa(this.referenceElement.ownerDocument,o,i),c.replaceChild(c.adoptNode(this.documentElement),c.documentElement),c.close(),B},A.prototype.createElementClone=function(A){if(ys(A,2),Ui(A))return this.createCanvasClone(A);if(Fi(A))return this.createVideoClone(A);if(Ii(A))return this.createStyleClone(A);var e=A.cloneNode(!1);return mi(e)&&(mi(A)&&A.currentSrc&&A.currentSrc!==A.src&&(e.src=A.currentSrc,e.srcset=""),"lazy"===e.loading&&(e.loading="eager")),Si(e)?this.createCustomElementClone(e):e},A.prototype.createCustomElementClone=function(A){var e=document.createElement("html2canvascustomelement");return na(A.style,e),e},A.prototype.createStyleClone=function(A){try{var e=A.sheet;if(e&&e.cssRules){var t=[].slice.call(e.cssRules,0).reduce(function(A,e){return e&&"string"==typeof e.cssText?A+e.cssText:A},""),r=A.cloneNode(!1);return r.textContent=t,r}}catch(A){if(this.context.logger.error("Unable to access cssRules property",A),"SecurityError"!==A.name)throw A}return A.cloneNode(!1)},A.prototype.createCanvasClone=function(A){var e;if(this.options.inlineImages&&A.ownerDocument){var t=A.ownerDocument.createElement("img");try{return t.src=A.toDataURL(),t}catch(e){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",A)}}var r=A.cloneNode(!1);try{r.width=A.width,r.height=A.height;var n=A.getContext("2d"),s=r.getContext("2d");if(s)if(!this.options.allowTaint&&n)s.putImageData(n.getImageData(0,0,A.width,A.height),0,0);else{var o=null!==(e=A.getContext("webgl2"))&&void 0!==e?e:A.getContext("webgl");if(o){var i=o.getContextAttributes();!1===(null==i?void 0:i.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",A)}s.drawImage(A,0,0)}return r}catch(e){this.context.logger.info("Unable to clone canvas as it is tainted",A)}return r},A.prototype.createVideoClone=function(A){var e=A.ownerDocument.createElement("canvas");e.width=A.offsetWidth,e.height=A.offsetHeight;var t=e.getContext("2d");try{return t&&(t.drawImage(A,0,0,e.width,e.height),this.options.allowTaint||t.getImageData(0,0,e.width,e.height)),e}catch(e){this.context.logger.info("Unable to clone video as it is tainted",A)}var r=A.ownerDocument.createElement("canvas");return r.width=A.offsetWidth,r.height=A.offsetHeight,r},A.prototype.appendChildNode=function(A,e,t){ui(e)&&(Ei(e)||e.hasAttribute(ji)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(e))||this.options.copyStyles&&ui(e)&&Ii(e)||A.appendChild(this.cloneNode(e,t))},A.prototype.cloneChildNodes=function(A,e,t){for(var r=this,n=A.shadowRoot?A.shadowRoot.firstChild:A.firstChild;n;n=n.nextSibling)if(ui(n)&&bi(n)&&"function"==typeof n.assignedNodes){var s=n.assignedNodes();s.length&&s.forEach(function(A){return r.appendChildNode(e,A,t)})}else this.appendChildNode(e,n,t)},A.prototype.cloneNode=function(A,e){if(li(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var t=A.ownerDocument.defaultView;if(t&&ui(A)&&(gi(A)||di(A))){var r=this.createElementClone(A);r.style.transitionProperty="none";var n=t.getComputedStyle(A),s=t.getComputedStyle(A,":before"),o=t.getComputedStyle(A,":after");this.referenceElement===A&&gi(r)&&(this.clonedReferenceElement=r),fi(r)&&ga(r);var i=this.counters.parse(new fs(this.context,n)),a=this.resolvePseudoContent(A,r,s,Ys.BEFORE);Si(A)&&(e=!0),Fi(A)||this.cloneChildNodes(A,r,e),a&&r.insertBefore(a,r.firstChild);var c=this.resolvePseudoContent(A,r,o,Ys.AFTER);return c&&r.appendChild(c),this.counters.pop(i),(n&&(this.options.copyStyles||di(A))&&!yi(A)||e)&&na(n,r),0===A.scrollTop&&0===A.scrollLeft||this.scrolledElements.push([r,A.scrollLeft,A.scrollTop]),(Hi(A)||vi(A))&&(Hi(r)||vi(r))&&(r.value=A.value),r}return A.cloneNode(!1)},A.prototype.resolvePseudoContent=function(A,e,t,r){var n=this;if(t){var s=t.content,o=e.ownerDocument;if(o&&s&&"none"!==s&&"-moz-alt-content"!==s&&"none"!==t.display){this.counters.parse(new fs(this.context,t));var i=new Cs(this.context,t),a=o.createElement("html2canvaspseudoelement");na(t,a),i.content.forEach(function(e){if(0===e.type)a.appendChild(o.createTextNode(e.value));else if(22===e.type){var t=o.createElement("img");t.src=e.value,t.style.opacity="1",a.appendChild(t)}else if(18===e.type){if("attr"===e.name){var r=e.values.filter(Kt);r.length&&a.appendChild(o.createTextNode(A.getAttribute(r[0].value)||""))}else if("counter"===e.name){var s=e.values.filter(Tt),c=s[0],B=s[1];if(c&&Kt(c)){var l=n.counters.getCounterValue(c.value),u=B&&Kt(B)?Hn.parse(n.context,B.value):3;a.appendChild(o.createTextNode(Zi(l,u,!1)))}}else if("counters"===e.name){var g=e.values.filter(Tt),d=(c=g[0],g[1]);if(B=g[2],c&&Kt(c)){var h=n.counters.getCounterValues(c.value),w=B&&Kt(B)?Hn.parse(n.context,B.value):3,Q=d&&0===d.type?d.value:"",p=h.map(function(A){return Zi(A,w,!1)}).join(Q);a.appendChild(o.createTextNode(p))}}}else if(20===e.type)switch(e.value){case"open-quote":a.appendChild(o.createTextNode(gs(i.quotes,n.quoteDepth++,!0)));break;case"close-quote":a.appendChild(o.createTextNode(gs(i.quotes,--n.quoteDepth,!1)));break;default:a.appendChild(o.createTextNode(e.value))}}),a.className=Ba+" "+la;var c=r===Ys.BEFORE?" "+Ba:" "+la;return di(e)?e.className.baseValue+=c:e.className+=c,a}}},A.destroy=function(A){return!!A.parentNode&&(A.parentNode.removeChild(A),!0)},A}();!function(A){A[A.BEFORE=0]="BEFORE",A[A.AFTER=1]="AFTER"}(Ys||(Ys={}));var zi,$i=function(A,e){var t=A.createElement("iframe");return t.className="html2canvas-container",t.style.visibility="hidden",t.style.position="fixed",t.style.left="-10000px",t.style.top="0px",t.style.border="0",t.width=e.width.toString(),t.height=e.height.toString(),t.scrolling="no",t.setAttribute(ji,"true"),A.body.appendChild(t),t},Aa=function(A){return new Promise(function(e){A.complete?e():A.src?(A.onload=e,A.onerror=e):e()})},ea=function(A){return Promise.all([].slice.call(A.images,0).map(Aa))},ta=function(A){return new Promise(function(e,t){var r=A.contentWindow;if(!r)return t("No window assigned for iframe");var n=r.document;r.onload=A.onload=function(){r.onload=A.onload=null;var t=setInterval(function(){n.body.childNodes.length>0&&"complete"===n.readyState&&(clearInterval(t),e(A))},50)}})},ra=["all","d","content"],na=function(A,e){for(var t=A.length-1;t>=0;t--){var r=A.item(t);-1===ra.indexOf(r)&&e.style.setProperty(r,A.getPropertyValue(r))}return e},sa=function(A){var e="";return A&&(e+="<!DOCTYPE ",A.name&&(e+=A.name),A.internalSubset&&(e+=A.internalSubset),A.publicId&&(e+='"'+A.publicId+'"'),A.systemId&&(e+='"'+A.systemId+'"'),e+=">"),e},oa=function(A,e,t){A&&A.defaultView&&(e!==A.defaultView.pageXOffset||t!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(e,t)},ia=function(A){var e=A[0],t=A[1],r=A[2];e.scrollLeft=t,e.scrollTop=r},aa=":before",ca=":after",Ba="___html2canvas___pseudoelement_before",la="___html2canvas___pseudoelement_after",ua='{\n content: "" !important;\n display: none !important;\n}',ga=function(A){da(A,"."+Ba+aa+ua+"\n ."+la+ca+ua)},da=function(A,e){var t=A.ownerDocument;if(t){var r=t.createElement("style");r.textContent=e,A.appendChild(r)}},ha=function(){function A(){}return A.getOrigin=function(e){var t=A._link;return t?(t.href=e,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},A.isSameOrigin=function(e){return A.getOrigin(e)===A._origin},A.setContext=function(e){A._link=e.document.createElement("a"),A._origin=A.getOrigin(e.location.href)},A._origin="about:blank",A}(),wa=function(){function A(A,e){this.context=A,this._options=e,this._cache={}}return A.prototype.addImage=function(A){var e=Promise.resolve();return this.has(A)?e:ma(A)||fa(A)?((this._cache[A]=this.loadImage(A)).catch(function(){}),e):e},A.prototype.match=function(A){return this._cache[A]},A.prototype.loadImage=function(A){return r(this,void 0,void 0,function(){var e,t,r,s,o=this;return n(this,function(n){switch(n.label){case 0:return e=ha.isSameOrigin(A),t=!Ua(A)&&!0===this._options.useCORS&&vo.SUPPORT_CORS_IMAGES&&!e,r=!Ua(A)&&!e&&!ma(A)&&"string"==typeof this._options.proxy&&vo.SUPPORT_CORS_XHR&&!t,e||!1!==this._options.allowTaint||Ua(A)||ma(A)||r||t?(s=A,r?[4,this.proxy(s)]:[3,2]):[2];case 1:s=n.sent(),n.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise(function(A,e){var r=new Image;r.onload=function(){return A(r)},r.onerror=e,(Fa(s)||t)&&(r.crossOrigin="anonymous"),r.src=s,!0===r.complete&&setTimeout(function(){return A(r)},500),o._options.imageTimeout>0&&setTimeout(function(){return e("Timed out ("+o._options.imageTimeout+"ms) loading image")},o._options.imageTimeout)})];case 3:return[2,n.sent()]}})})},A.prototype.has=function(A){return void 0!==this._cache[A]},A.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},A.prototype.proxy=function(A){var e=this,t=this._options.proxy;if(!t)throw new Error("No proxy defined");var r=A.substring(0,256);return new Promise(function(n,s){var o=vo.SUPPORT_RESPONSE_TYPE?"blob":"text",i=new XMLHttpRequest;i.onload=function(){if(200===i.status)if("text"===o)n(i.response);else{var A=new FileReader;A.addEventListener("load",function(){return n(A.result)},!1),A.addEventListener("error",function(A){return s(A)},!1),A.readAsDataURL(i.response)}else s("Failed to proxy resource "+r+" with status code "+i.status)},i.onerror=s;var a=t.indexOf("?")>-1?"&":"?";if(i.open("GET",""+t+a+"url="+encodeURIComponent(A)+"&responseType="+o),"text"!==o&&i instanceof XMLHttpRequest&&(i.responseType=o),e._options.imageTimeout){var c=e._options.imageTimeout;i.timeout=c,i.ontimeout=function(){return s("Timed out ("+c+"ms) proxying "+r)}}i.send()})},A}(),Qa=/^data:image\/svg\+xml/i,pa=/^data:image\/.*;base64,/i,Ca=/^data:image\/.*/i,fa=function(A){return vo.SUPPORT_SVG_DRAWING||!ya(A)},Ua=function(A){return Ca.test(A)},Fa=function(A){return pa.test(A)},ma=function(A){return"blob"===A.substr(0,4)},ya=function(A){return"svg"===A.substr(-3).toLowerCase()||Qa.test(A)},Ia=function(){function A(A,e){this.type=0,this.x=A,this.y=e}return A.prototype.add=function(e,t){return new A(this.x+e,this.y+t)},A}(),Ea=function(A,e,t){return new Ia(A.x+(e.x-A.x)*t,A.y+(e.y-A.y)*t)},Ha=function(){function A(A,e,t,r){this.type=1,this.start=A,this.startControl=e,this.endControl=t,this.end=r}return A.prototype.subdivide=function(e,t){var r=Ea(this.start,this.startControl,e),n=Ea(this.startControl,this.endControl,e),s=Ea(this.endControl,this.end,e),o=Ea(r,n,e),i=Ea(n,s,e),a=Ea(o,i,e);return t?new A(this.start,r,o,a):new A(a,i,s,this.end)},A.prototype.add=function(e,t){return new A(this.start.add(e,t),this.startControl.add(e,t),this.endControl.add(e,t),this.end.add(e,t))},A.prototype.reverse=function(){return new A(this.end,this.endControl,this.startControl,this.start)},A}(),va=function(A){return 1===A.type},ba=function(){function A(A){var e=A.styles,t=A.bounds,r=Jt(e.borderTopLeftRadius,t.width,t.height),n=r[0],s=r[1],o=Jt(e.borderTopRightRadius,t.width,t.height),i=o[0],a=o[1],c=Jt(e.borderBottomRightRadius,t.width,t.height),B=c[0],l=c[1],u=Jt(e.borderBottomLeftRadius,t.width,t.height),g=u[0],d=u[1],h=[];h.push((n+i)/t.width),h.push((g+B)/t.width),h.push((s+d)/t.height),h.push((a+l)/t.height);var w=Math.max.apply(Math,h);w>1&&(n/=w,s/=w,i/=w,a/=w,B/=w,l/=w,g/=w,d/=w);var Q=t.width-i,p=t.height-l,C=t.width-B,f=t.height-d,U=e.borderTopWidth,F=e.borderRightWidth,m=e.borderBottomWidth,y=e.borderLeftWidth,I=Wt(e.paddingTop,A.bounds.width),E=Wt(e.paddingRight,A.bounds.width),H=Wt(e.paddingBottom,A.bounds.width),v=Wt(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=n>0||s>0?Sa(t.left+y/3,t.top+U/3,n-y/3,s-U/3,zi.TOP_LEFT):new Ia(t.left+y/3,t.top+U/3),this.topRightBorderDoubleOuterBox=n>0||s>0?Sa(t.left+Q,t.top+U/3,i-F/3,a-U/3,zi.TOP_RIGHT):new Ia(t.left+t.width-F/3,t.top+U/3),this.bottomRightBorderDoubleOuterBox=B>0||l>0?Sa(t.left+C,t.top+p,B-F/3,l-m/3,zi.BOTTOM_RIGHT):new Ia(t.left+t.width-F/3,t.top+t.height-m/3),this.bottomLeftBorderDoubleOuterBox=g>0||d>0?Sa(t.left+y/3,t.top+f,g-y/3,d-m/3,zi.BOTTOM_LEFT):new Ia(t.left+y/3,t.top+t.height-m/3),this.topLeftBorderDoubleInnerBox=n>0||s>0?Sa(t.left+2*y/3,t.top+2*U/3,n-2*y/3,s-2*U/3,zi.TOP_LEFT):new Ia(t.left+2*y/3,t.top+2*U/3),this.topRightBorderDoubleInnerBox=n>0||s>0?Sa(t.left+Q,t.top+2*U/3,i-2*F/3,a-2*U/3,zi.TOP_RIGHT):new Ia(t.left+t.width-2*F/3,t.top+2*U/3),this.bottomRightBorderDoubleInnerBox=B>0||l>0?Sa(t.left+C,t.top+p,B-2*F/3,l-2*m/3,zi.BOTTOM_RIGHT):new Ia(t.left+t.width-2*F/3,t.top+t.height-2*m/3),this.bottomLeftBorderDoubleInnerBox=g>0||d>0?Sa(t.left+2*y/3,t.top+f,g-2*y/3,d-2*m/3,zi.BOTTOM_LEFT):new Ia(t.left+2*y/3,t.top+t.height-2*m/3),this.topLeftBorderStroke=n>0||s>0?Sa(t.left+y/2,t.top+U/2,n-y/2,s-U/2,zi.TOP_LEFT):new Ia(t.left+y/2,t.top+U/2),this.topRightBorderStroke=n>0||s>0?Sa(t.left+Q,t.top+U/2,i-F/2,a-U/2,zi.TOP_RIGHT):new Ia(t.left+t.width-F/2,t.top+U/2),this.bottomRightBorderStroke=B>0||l>0?Sa(t.left+C,t.top+p,B-F/2,l-m/2,zi.BOTTOM_RIGHT):new Ia(t.left+t.width-F/2,t.top+t.height-m/2),this.bottomLeftBorderStroke=g>0||d>0?Sa(t.left+y/2,t.top+f,g-y/2,d-m/2,zi.BOTTOM_LEFT):new Ia(t.left+y/2,t.top+t.height-m/2),this.topLeftBorderBox=n>0||s>0?Sa(t.left,t.top,n,s,zi.TOP_LEFT):new Ia(t.left,t.top),this.topRightBorderBox=i>0||a>0?Sa(t.left+Q,t.top,i,a,zi.TOP_RIGHT):new Ia(t.left+t.width,t.top),this.bottomRightBorderBox=B>0||l>0?Sa(t.left+C,t.top+p,B,l,zi.BOTTOM_RIGHT):new Ia(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=g>0||d>0?Sa(t.left,t.top+f,g,d,zi.BOTTOM_LEFT):new Ia(t.left,t.top+t.height),this.topLeftPaddingBox=n>0||s>0?Sa(t.left+y,t.top+U,Math.max(0,n-y),Math.max(0,s-U),zi.TOP_LEFT):new Ia(t.left+y,t.top+U),this.topRightPaddingBox=i>0||a>0?Sa(t.left+Math.min(Q,t.width-F),t.top+U,Q>t.width+F?0:Math.max(0,i-F),Math.max(0,a-U),zi.TOP_RIGHT):new Ia(t.left+t.width-F,t.top+U),this.bottomRightPaddingBox=B>0||l>0?Sa(t.left+Math.min(C,t.width-y),t.top+Math.min(p,t.height-m),Math.max(0,B-F),Math.max(0,l-m),zi.BOTTOM_RIGHT):new Ia(t.left+t.width-F,t.top+t.height-m),this.bottomLeftPaddingBox=g>0||d>0?Sa(t.left+y,t.top+Math.min(f,t.height-m),Math.max(0,g-y),Math.max(0,d-m),zi.BOTTOM_LEFT):new Ia(t.left+y,t.top+t.height-m),this.topLeftContentBox=n>0||s>0?Sa(t.left+y+v,t.top+U+I,Math.max(0,n-(y+v)),Math.max(0,s-(U+I)),zi.TOP_LEFT):new Ia(t.left+y+v,t.top+U+I),this.topRightContentBox=i>0||a>0?Sa(t.left+Math.min(Q,t.width+y+v),t.top+U+I,Q>t.width+y+v?0:i-y+v,a-(U+I),zi.TOP_RIGHT):new Ia(t.left+t.width-(F+E),t.top+U+I),this.bottomRightContentBox=B>0||l>0?Sa(t.left+Math.min(C,t.width-(y+v)),t.top+Math.min(p,t.height+U+I),Math.max(0,B-(F+E)),l-(m+H),zi.BOTTOM_RIGHT):new Ia(t.left+t.width-(F+E),t.top+t.height-(m+H)),this.bottomLeftContentBox=g>0||d>0?Sa(t.left+y+v,t.top+f,Math.max(0,g-(y+v)),d-(m+H),zi.BOTTOM_LEFT):new Ia(t.left+y+v,t.top+t.height-(m+H))}return A}();!function(A){A[A.TOP_LEFT=0]="TOP_LEFT",A[A.TOP_RIGHT=1]="TOP_RIGHT",A[A.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",A[A.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(zi||(zi={}));var Sa=function(A,e,t,r,n){var s=(Math.sqrt(2)-1)/3*4,o=t*s,i=r*s,a=A+t,c=e+r;switch(n){case zi.TOP_LEFT:return new Ha(new Ia(A,c),new Ia(A,c-i),new Ia(a-o,e),new Ia(a,e));case zi.TOP_RIGHT:return new Ha(new Ia(A,e),new Ia(A+o,e),new Ia(a,c-i),new Ia(a,c));case zi.BOTTOM_RIGHT:return new Ha(new Ia(a,e),new Ia(a,e+i),new Ia(A+o,c),new Ia(A,c));case zi.BOTTOM_LEFT:default:return new Ha(new Ia(a,c),new Ia(a-o,c),new Ia(A,e+i),new Ia(A,e))}},La=function(A){return[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox]},Ka=function(A){return[A.topLeftContentBox,A.topRightContentBox,A.bottomRightContentBox,A.bottomLeftContentBox]},Da=function(A){return[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox]},Ma=function(){function A(A,e,t){this.offsetX=A,this.offsetY=e,this.matrix=t,this.type=0,this.target=6}return A}(),ka=function(){function A(A,e){this.path=A,this.target=e,this.type=1}return A}(),Ta=function(){function A(A){this.opacity=A,this.type=2,this.target=6}return A}(),Oa=function(A){return 0===A.type},xa=function(A){return 1===A.type},Ra=function(A){return 2===A.type},Na=function(A,e){return A.length===e.length&&A.some(function(A,t){return A===e[t]})},Ga=function(A,e,t,r,n){return A.map(function(A,s){switch(s){case 0:return A.add(e,t);case 1:return A.add(e+r,t);case 2:return A.add(e+r,t+n);case 3:return A.add(e,t+n)}return A})},Va=function(){function A(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return A}(),Pa=function(){function A(A,e){if(this.container=A,this.parent=e,this.effects=[],this.curves=new ba(this.container),this.container.styles.opacity<1&&this.effects.push(new Ta(this.container.styles.opacity)),null!==this.container.styles.transform){var t=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,n=this.container.styles.transform;this.effects.push(new Ma(t,r,n))}if(0!==this.container.styles.overflowX){var s=La(this.curves),o=Da(this.curves);Na(s,o)?this.effects.push(new ka(s,6)):(this.effects.push(new ka(s,2)),this.effects.push(new ka(o,4)))}}return A.prototype.getEffects=function(A){for(var e=-1===[2,3].indexOf(this.container.styles.position),t=this.parent,r=this.effects.slice(0);t;){var n=t.effects.filter(function(A){return!xa(A)});if(e||0!==t.container.styles.position||!t.parent){if(r.unshift.apply(r,n),e=-1===[2,3].indexOf(t.container.styles.position),0!==t.container.styles.overflowX){var s=La(t.curves),o=Da(t.curves);Na(s,o)||r.unshift(new ka(o,6))}}else r.unshift.apply(r,n);t=t.parent}return r.filter(function(e){return is(e.target,A)})},A}(),Xa=function(A,e,t,r){A.container.elements.forEach(function(n){var s=is(n.flags,4),o=is(n.flags,2),i=new Pa(n,A);is(n.styles.display,2048)&&r.push(i);var a=is(n.flags,8)?[]:r;if(s||o){var c=s||n.styles.isPositioned()?t:e,B=new Va(i);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var l=n.styles.zIndex.order;if(l<0){var u=0;c.negativeZIndex.some(function(A,e){return l>A.element.container.styles.zIndex.order?(u=e,!1):u>0}),c.negativeZIndex.splice(u,0,B)}else if(l>0){var g=0;c.positiveZIndex.some(function(A,e){return l>=A.element.container.styles.zIndex.order?(g=e+1,!1):g>0}),c.positiveZIndex.splice(g,0,B)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(B)}else n.styles.isFloating()?c.nonPositionedFloats.push(B):c.nonPositionedInlineLevel.push(B);Xa(i,B,s?B:t,a)}else n.styles.isInlineLevel()?e.inlineLevel.push(i):e.nonInlineLevel.push(i),Xa(i,e,t,a);is(n.flags,8)&&Ja(n,a)})},Ja=function(A,e){for(var t=A instanceof Wo?A.start:1,r=A instanceof Wo&&A.reversed,n=0;n<e.length;n++){var s=e[n];s.container instanceof Jo&&"number"==typeof s.container.value&&0!==s.container.value&&(t=s.container.value),s.listValue=Zi(t,s.container.styles.listStyleType,!0),t+=r?-1:1}},Wa=function(A){var e=new Pa(A,null),t=new Va(e),r=[];return Xa(e,t,t,r),Ja(e.container,r),t},_a=function(A,e){switch(e){case 0:return za(A.topLeftBorderBox,A.topLeftPaddingBox,A.topRightBorderBox,A.topRightPaddingBox);case 1:return za(A.topRightBorderBox,A.topRightPaddingBox,A.bottomRightBorderBox,A.bottomRightPaddingBox);case 2:return za(A.bottomRightBorderBox,A.bottomRightPaddingBox,A.bottomLeftBorderBox,A.bottomLeftPaddingBox);default:return za(A.bottomLeftBorderBox,A.bottomLeftPaddingBox,A.topLeftBorderBox,A.topLeftPaddingBox)}},Ya=function(A,e){switch(e){case 0:return za(A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox,A.topRightBorderBox,A.topRightBorderDoubleOuterBox);case 1:return za(A.topRightBorderBox,A.topRightBorderDoubleOuterBox,A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox);case 2:return za(A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox,A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox);default:return za(A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox,A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox)}},Za=function(A,e){switch(e){case 0:return za(A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox,A.topRightBorderDoubleInnerBox,A.topRightPaddingBox);case 1:return za(A.topRightBorderDoubleInnerBox,A.topRightPaddingBox,A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox);case 2:return za(A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox,A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox);default:return za(A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox,A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox)}},ja=function(A,e){switch(e){case 0:return qa(A.topLeftBorderStroke,A.topRightBorderStroke);case 1:return qa(A.topRightBorderStroke,A.bottomRightBorderStroke);case 2:return qa(A.bottomRightBorderStroke,A.bottomLeftBorderStroke);default:return qa(A.bottomLeftBorderStroke,A.topLeftBorderStroke)}},qa=function(A,e){var t=[];return va(A)?t.push(A.subdivide(.5,!1)):t.push(A),va(e)?t.push(e.subdivide(.5,!0)):t.push(e),t},za=function(A,e,t,r){var n=[];return va(A)?n.push(A.subdivide(.5,!1)):n.push(A),va(t)?n.push(t.subdivide(.5,!0)):n.push(t),va(r)?n.push(r.subdivide(.5,!0).reverse()):n.push(r),va(e)?n.push(e.subdivide(.5,!1).reverse()):n.push(e),n},$a=function(A){var e=A.bounds,t=A.styles;return e.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},Ac=function(A){var e=A.styles,t=A.bounds,r=Wt(e.paddingLeft,t.width),n=Wt(e.paddingRight,t.width),s=Wt(e.paddingTop,t.width),o=Wt(e.paddingBottom,t.width);return t.add(r+e.borderLeftWidth,s+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+r+n),-(e.borderTopWidth+e.borderBottomWidth+s+o))},ec=function(A,e){return 0===A?e.bounds:2===A?Ac(e):$a(e)},tc=function(A,e){return 0===A?e.bounds:2===A?Ac(e):$a(e)},rc=function(A,e,t){var r=ec(ic(A.styles.backgroundOrigin,e),A),n=tc(ic(A.styles.backgroundClip,e),A),s=oc(ic(A.styles.backgroundSize,e),t,r),o=s[0],i=s[1],a=Jt(ic(A.styles.backgroundPosition,e),r.width-o,r.height-i);return[ac(ic(A.styles.backgroundRepeat,e),a,s,r,n),Math.round(r.left+a[0]),Math.round(r.top+a[1]),o,i]},nc=function(A){return Kt(A)&&A.value===xr.AUTO},sc=function(A){return"number"==typeof A},oc=function(A,e,t){var r=e[0],n=e[1],s=e[2],o=A[0],i=A[1];if(!o)return[0,0];if(Nt(o)&&i&&Nt(i))return[Wt(o,t.width),Wt(i,t.height)];var a=sc(s);if(Kt(o)&&(o.value===xr.CONTAIN||o.value===xr.COVER))return sc(s)?t.width/t.height<s!=(o.value===xr.COVER)?[t.width,t.width/s]:[t.height*s,t.height]:[t.width,t.height];var c=sc(r),B=sc(n),l=c||B;if(nc(o)&&(!i||nc(i)))return c&&B?[r,n]:a||l?l&&a?[c?r:n*s,B?n:r/s]:[c?r:t.width,B?n:t.height]:[t.width,t.height];if(a){var u=0,g=0;return Nt(o)?u=Wt(o,t.width):Nt(i)&&(g=Wt(i,t.height)),nc(o)?u=g*s:i&&!nc(i)||(g=u/s),[u,g]}var d=null,h=null;if(Nt(o)?d=Wt(o,t.width):i&&Nt(i)&&(h=Wt(i,t.height)),null===d||i&&!nc(i)||(h=c&&B?d/r*n:t.height),null!==h&&nc(o)&&(d=c&&B?h/n*r:t.width),null!==d&&null!==h)return[d,h];throw new Error("Unable to calculate background-size for element")},ic=function(A,e){var t=A[e];return void 0===t?A[0]:t},ac=function(A,e,t,r,n){var s=e[0],o=e[1],i=t[0],a=t[1];switch(A){case 2:return[new Ia(Math.round(r.left),Math.round(r.top+o)),new Ia(Math.round(r.left+r.width),Math.round(r.top+o)),new Ia(Math.round(r.left+r.width),Math.round(a+r.top+o)),new Ia(Math.round(r.left),Math.round(a+r.top+o))];case 3:return[new Ia(Math.round(r.left+s),Math.round(r.top)),new Ia(Math.round(r.left+s+i),Math.round(r.top)),new Ia(Math.round(r.left+s+i),Math.round(r.height+r.top)),new Ia(Math.round(r.left+s),Math.round(r.height+r.top))];case 1:return[new Ia(Math.round(r.left+s),Math.round(r.top+o)),new Ia(Math.round(r.left+s+i),Math.round(r.top+o)),new Ia(Math.round(r.left+s+i),Math.round(r.top+o+a)),new Ia(Math.round(r.left+s),Math.round(r.top+o+a))];default:return[new Ia(Math.round(n.left),Math.round(n.top)),new Ia(Math.round(n.left+n.width),Math.round(n.top)),new Ia(Math.round(n.left+n.width),Math.round(n.height+n.top)),new Ia(Math.round(n.left),Math.round(n.height+n.top))]}},cc="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Bc="Hidden Text",lc=function(){function A(A){this._data={},this._document=A}return A.prototype.parseMetrics=function(A,e){var t=this._document.createElement("div"),r=this._document.createElement("img"),n=this._document.createElement("span"),s=this._document.body;t.style.visibility="hidden",t.style.fontFamily=A,t.style.fontSize=e,t.style.margin="0",t.style.padding="0",t.style.whiteSpace="nowrap",s.appendChild(t),r.src=cc,r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",n.style.fontFamily=A,n.style.fontSize=e,n.style.margin="0",n.style.padding="0",n.appendChild(this._document.createTextNode(Bc)),t.appendChild(n),t.appendChild(r);var o=r.offsetTop-n.offsetTop+2;t.removeChild(n),t.appendChild(this._document.createTextNode(Bc)),t.style.lineHeight="normal",r.style.verticalAlign="super";var i=r.offsetTop-t.offsetTop+2;return s.removeChild(t),{baseline:o,middle:i}},A.prototype.getMetrics=function(A,e){var t=A+" "+e;return void 0===this._data[t]&&(this._data[t]=this.parseMetrics(A,e)),this._data[t]},A}(),uc=function(){function A(A,e){this.context=A,this.options=e}return A}(),gc=1e4,dc=function(A){function t(e,t){var r=A.call(this,e,t)||this;return r._activeEffects=[],r.canvas=t.canvas?t.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),t.canvas||(r.canvas.width=Math.floor(t.width*t.scale),r.canvas.height=Math.floor(t.height*t.scale),r.canvas.style.width=t.width+"px",r.canvas.style.height=t.height+"px"),r.fontMetrics=new lc(document),r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-t.x,-t.y),r.ctx.textBaseline="bottom",r._activeEffects=[],r.context.logger.debug("Canvas renderer initialized ("+t.width+"x"+t.height+") with scale "+t.scale),r}return e(t,A),t.prototype.applyEffects=function(A){for(var e=this;this._activeEffects.length;)this.popEffect();A.forEach(function(A){return e.applyEffect(A)})},t.prototype.applyEffect=function(A){this.ctx.save(),Ra(A)&&(this.ctx.globalAlpha=A.opacity),Oa(A)&&(this.ctx.translate(A.offsetX,A.offsetY),this.ctx.transform(A.matrix[0],A.matrix[1],A.matrix[2],A.matrix[3],A.matrix[4],A.matrix[5]),this.ctx.translate(-A.offsetX,-A.offsetY)),xa(A)&&(this.path(A.path),this.ctx.clip()),this._activeEffects.push(A)},t.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},t.prototype.renderStack=function(A){return r(this,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return A.element.container.styles.isVisible()?[4,this.renderStackContent(A)]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}})})},t.prototype.renderNode=function(A){return r(this,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return is(A.container.flags,16),A.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(A)]:[3,3];case 1:return e.sent(),[4,this.renderNodeContent(A)];case 2:e.sent(),e.label=3;case 3:return[2]}})})},t.prototype.renderTextWithLetterSpacing=function(A,e,t){var r=this;0===e?this.ctx.fillText(A.text,A.bounds.left,A.bounds.top+t):Do(A.text).reduce(function(e,n){return r.ctx.fillText(n,e,A.bounds.top+t),e+r.ctx.measureText(n).width},A.bounds.left)},t.prototype.createFontStyle=function(A){var e=A.fontVariant.filter(function(A){return"normal"===A||"small-caps"===A}).join(""),t=Cc(A.fontFamily).join(", "),r=St(A.fontSize)?""+A.fontSize.number+A.fontSize.unit:A.fontSize.number+"px";return[[A.fontStyle,e,A.fontWeight,r,t].join(" "),t,r]},t.prototype.renderTextNode=function(A,e){return r(this,void 0,void 0,function(){var t,r,s,o,i,a,c,B,l=this;return n(this,function(n){return t=this.createFontStyle(e),r=t[0],s=t[1],o=t[2],this.ctx.font=r,this.ctx.direction=1===e.direction?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",i=this.fontMetrics.getMetrics(s,o),a=i.baseline,c=i.middle,B=e.paintOrder,A.textBounds.forEach(function(A){B.forEach(function(t){switch(t){case 0:l.ctx.fillStyle=rr(e.color),l.renderTextWithLetterSpacing(A,e.letterSpacing,a);var r=e.textShadow;r.length&&A.text.trim().length&&(r.slice(0).reverse().forEach(function(t){l.ctx.shadowColor=rr(t.color),l.ctx.shadowOffsetX=t.offsetX.number*l.options.scale,l.ctx.shadowOffsetY=t.offsetY.number*l.options.scale,l.ctx.shadowBlur=t.blur.number,l.renderTextWithLetterSpacing(A,e.letterSpacing,a)}),l.ctx.shadowColor="",l.ctx.shadowOffsetX=0,l.ctx.shadowOffsetY=0,l.ctx.shadowBlur=0),e.textDecorationLine.length&&(l.ctx.fillStyle=rr(e.textDecorationColor||e.color),e.textDecorationLine.forEach(function(e){switch(e){case 1:l.ctx.fillRect(A.bounds.left,Math.round(A.bounds.top+a),A.bounds.width,1);break;case 2:l.ctx.fillRect(A.bounds.left,Math.round(A.bounds.top),A.bounds.width,1);break;case 3:l.ctx.fillRect(A.bounds.left,Math.ceil(A.bounds.top+c),A.bounds.width,1)}}));break;case 1:e.webkitTextStrokeWidth&&A.text.trim().length&&(l.ctx.strokeStyle=rr(e.webkitTextStrokeColor),l.ctx.lineWidth=e.webkitTextStrokeWidth,l.ctx.lineJoin=window.chrome?"miter":"round",l.ctx.strokeText(A.text,A.bounds.left,A.bounds.top+a)),l.ctx.strokeStyle="",l.ctx.lineWidth=0,l.ctx.lineJoin="miter"}})}),[2]})})},t.prototype.renderReplacedElement=function(A,e,t){if(t&&A.intrinsicWidth>0&&A.intrinsicHeight>0){var r=Ac(A),n=Da(e);this.path(n),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(t,0,0,A.intrinsicWidth,A.intrinsicHeight,r.left,r.top,r.width,r.height),this.ctx.restore()}},t.prototype.renderNodeContent=function(A){return r(this,void 0,void 0,function(){var e,r,s,i,a,c,B,l,u,g,d,h,w,Q,p,C,f,U;return n(this,function(n){switch(n.label){case 0:this.applyEffects(A.getEffects(4)),e=A.container,r=A.curves,s=e.styles,i=0,a=e.textNodes,n.label=1;case 1:return i<a.length?(c=a[i],[4,this.renderTextNode(c,s)]):[3,4];case 2:n.sent(),n.label=3;case 3:return i++,[3,1];case 4:if(!(e instanceof Vo))return[3,8];n.label=5;case 5:return n.trys.push([5,7,,8]),[4,this.context.cache.match(e.src)];case 6:return p=n.sent(),this.renderReplacedElement(e,r,p),[3,8];case 7:return n.sent(),this.context.logger.error("Error loading image "+e.src),[3,8];case 8:if(e instanceof Po&&this.renderReplacedElement(e,r,e.canvas),!(e instanceof Xo))return[3,12];n.label=9;case 9:return n.trys.push([9,11,,12]),[4,this.context.cache.match(e.svg)];case 10:return p=n.sent(),this.renderReplacedElement(e,r,p),[3,12];case 11:return n.sent(),this.context.logger.error("Error loading svg "+e.svg.substring(0,255)),[3,12];case 12:return e instanceof ni&&e.tree?[4,new t(this.context,{scale:this.options.scale,backgroundColor:e.backgroundColor,x:0,y:0,width:e.width,height:e.height}).render(e.tree)]:[3,14];case 13:B=n.sent(),e.width&&e.height&&this.ctx.drawImage(B,0,0,e.width,e.height,e.bounds.left,e.bounds.top,e.bounds.width,e.bounds.height),n.label=14;case 14:if(e instanceof ei&&(l=Math.min(e.bounds.width,e.bounds.height),e.type===qo?e.checked&&(this.ctx.save(),this.path([new Ia(e.bounds.left+.39363*l,e.bounds.top+.79*l),new Ia(e.bounds.left+.16*l,e.bounds.top+.5549*l),new Ia(e.bounds.left+.27347*l,e.bounds.top+.44071*l),new Ia(e.bounds.left+.39694*l,e.bounds.top+.5649*l),new Ia(e.bounds.left+.72983*l,e.bounds.top+.23*l),new Ia(e.bounds.left+.84*l,e.bounds.top+.34085*l),new Ia(e.bounds.left+.39363*l,e.bounds.top+.79*l)]),this.ctx.fillStyle=rr(Ai),this.ctx.fill(),this.ctx.restore()):e.type===zo&&e.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(e.bounds.left+l/2,e.bounds.top+l/2,l/4,0,2*Math.PI,!0),this.ctx.fillStyle=rr(Ai),this.ctx.fill(),this.ctx.restore())),hc(e)&&e.value.length){switch(u=this.createFontStyle(s),f=u[0],g=u[1],d=this.fontMetrics.getMetrics(f,g).baseline,this.ctx.font=f,this.ctx.fillStyle=rr(s.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Qc(e.styles.textAlign),U=Ac(e),h=0,e.styles.textAlign){case 1:h+=U.width/2;break;case 2:h+=U.width}w=U.add(h,0,0,-U.height/2+1),this.ctx.save(),this.path([new Ia(U.left,U.top),new Ia(U.left+U.width,U.top),new Ia(U.left+U.width,U.top+U.height),new Ia(U.left,U.top+U.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new bo(e.value,w),s.letterSpacing,d),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!is(e.styles.display,2048))return[3,20];if(null===e.styles.listStyleImage)return[3,19];if(0!==(Q=e.styles.listStyleImage).type)return[3,18];p=void 0,C=Q.url,n.label=15;case 15:return n.trys.push([15,17,,18]),[4,this.context.cache.match(C)];case 16:return p=n.sent(),this.ctx.drawImage(p,e.bounds.left-(p.width+10),e.bounds.top),[3,18];case 17:return n.sent(),this.context.logger.error("Error loading list-style-image "+C),[3,18];case 18:return[3,20];case 19:A.listValue&&-1!==e.styles.listStyleType&&(f=this.createFontStyle(s)[0],this.ctx.font=f,this.ctx.fillStyle=rr(s.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",U=new o(e.bounds.left,e.bounds.top+Wt(e.styles.paddingTop,e.bounds.width),e.bounds.width,yn(s.lineHeight,s.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new bo(A.listValue,U),s.letterSpacing,yn(s.lineHeight,s.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),n.label=20;case 20:return[2]}})})},t.prototype.renderStackContent=function(A){return r(this,void 0,void 0,function(){var e,t,r,s,o,i,a,c,B,l,u,g,d,h,w;return n(this,function(n){switch(n.label){case 0:return is(A.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(A.element)];case 1:n.sent(),e=0,t=A.negativeZIndex,n.label=2;case 2:return e<t.length?(w=t[e],[4,this.renderStack(w)]):[3,5];case 3:n.sent(),n.label=4;case 4:return e++,[3,2];case 5:return[4,this.renderNodeContent(A.element)];case 6:n.sent(),r=0,s=A.nonInlineLevel,n.label=7;case 7:return r<s.length?(w=s[r],[4,this.renderNode(w)]):[3,10];case 8:n.sent(),n.label=9;case 9:return r++,[3,7];case 10:o=0,i=A.nonPositionedFloats,n.label=11;case 11:return o<i.length?(w=i[o],[4,this.renderStack(w)]):[3,14];case 12:n.sent(),n.label=13;case 13:return o++,[3,11];case 14:a=0,c=A.nonPositionedInlineLevel,n.label=15;case 15:return a<c.length?(w=c[a],[4,this.renderStack(w)]):[3,18];case 16:n.sent(),n.label=17;case 17:return a++,[3,15];case 18:B=0,l=A.inlineLevel,n.label=19;case 19:return B<l.length?(w=l[B],[4,this.renderNode(w)]):[3,22];case 20:n.sent(),n.label=21;case 21:return B++,[3,19];case 22:u=0,g=A.zeroOrAutoZIndexOrTransformedOrOpacity,n.label=23;case 23:return u<g.length?(w=g[u],[4,this.renderStack(w)]):[3,26];case 24:n.sent(),n.label=25;case 25:return u++,[3,23];case 26:d=0,h=A.positiveZIndex,n.label=27;case 27:return d<h.length?(w=h[d],[4,this.renderStack(w)]):[3,30];case 28:n.sent(),n.label=29;case 29:return d++,[3,27];case 30:return[2]}})})},t.prototype.mask=function(A){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(A.slice(0).reverse()),this.ctx.closePath()},t.prototype.path=function(A){this.ctx.beginPath(),this.formatPath(A),this.ctx.closePath()},t.prototype.formatPath=function(A){var e=this;A.forEach(function(A,t){var r=va(A)?A.start:A;0===t?e.ctx.moveTo(r.x,r.y):e.ctx.lineTo(r.x,r.y),va(A)&&e.ctx.bezierCurveTo(A.startControl.x,A.startControl.y,A.endControl.x,A.endControl.y,A.end.x,A.end.y)})},t.prototype.renderRepeat=function(A,e,t,r){this.path(A),this.ctx.fillStyle=e,this.ctx.translate(t,r),this.ctx.fill(),this.ctx.translate(-t,-r)},t.prototype.resizeImage=function(A,e,t){var r;if(A.width===e&&A.height===t)return A;var n=(null!==(r=this.canvas.ownerDocument)&&void 0!==r?r:document).createElement("canvas");return n.width=Math.max(1,e),n.height=Math.max(1,t),n.getContext("2d").drawImage(A,0,0,A.width,A.height,0,0,e,t),n},t.prototype.renderBackgroundImage=function(A){return r(this,void 0,void 0,function(){var e,t,r,s,o,i;return n(this,function(a){switch(a.label){case 0:e=A.styles.backgroundImage.length-1,t=function(t){var s,o,i,a,c,B,l,u,g,d,h,w,Q,p,C,f,U,F,m,y,I,E,H,v,b,S,L,K,D,M,k;return n(this,function(n){switch(n.label){case 0:if(0!==t.type)return[3,5];s=void 0,o=t.url,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,r.context.cache.match(o)];case 2:return s=n.sent(),[3,4];case 3:return n.sent(),r.context.logger.error("Error loading background-image "+o),[3,4];case 4:return s&&(i=rc(A,e,[s.width,s.height,s.width/s.height]),f=i[0],E=i[1],H=i[2],m=i[3],y=i[4],p=r.ctx.createPattern(r.resizeImage(s,m,y),"repeat"),r.renderRepeat(f,p,E,H)),[3,6];case 5:Mr(t)?(a=rc(A,e,[null,null,null]),f=a[0],E=a[1],H=a[2],m=a[3],y=a[4],c=Qr(t.angle,m,y),B=c[0],l=c[1],u=c[2],g=c[3],d=c[4],(h=document.createElement("canvas")).width=m,h.height=y,w=h.getContext("2d"),Q=w.createLinearGradient(l,g,u,d),hr(t.stops,B).forEach(function(A){return Q.addColorStop(A.stop,rr(A.color))}),w.fillStyle=Q,w.fillRect(0,0,m,y),m>0&&y>0&&(p=r.ctx.createPattern(h,"repeat"),r.renderRepeat(f,p,E,H))):kr(t)&&(C=rc(A,e,[null,null,null]),f=C[0],U=C[1],F=C[2],m=C[3],y=C[4],I=0===t.position.length?[Pt]:t.position,E=Wt(I[0],m),H=Wt(I[I.length-1],y),v=fr(t,E,H,m,y),b=v[0],S=v[1],b>0&&S>0&&(L=r.ctx.createRadialGradient(U+E,F+H,0,U+E,F+H,b),hr(t.stops,2*b).forEach(function(A){return L.addColorStop(A.stop,rr(A.color))}),r.path(f),r.ctx.fillStyle=L,b!==S?(K=A.bounds.left+.5*A.bounds.width,D=A.bounds.top+.5*A.bounds.height,k=1/(M=S/b),r.ctx.save(),r.ctx.translate(K,D),r.ctx.transform(1,0,0,M,0,0),r.ctx.translate(-K,-D),r.ctx.fillRect(U,k*(F-D)+D,m,y*k),r.ctx.restore()):r.ctx.fill())),n.label=6;case 6:return e--,[2]}})},r=this,s=0,o=A.styles.backgroundImage.slice(0).reverse(),a.label=1;case 1:return s<o.length?(i=o[s],[5,t(i)]):[3,4];case 2:a.sent(),a.label=3;case 3:return s++,[3,1];case 4:return[2]}})})},t.prototype.renderSolidBorder=function(A,e,t){return r(this,void 0,void 0,function(){return n(this,function(r){return this.path(_a(t,e)),this.ctx.fillStyle=rr(A),this.ctx.fill(),[2]})})},t.prototype.renderDoubleBorder=function(A,e,t,s){return r(this,void 0,void 0,function(){var r,o;return n(this,function(n){switch(n.label){case 0:return e<3?[4,this.renderSolidBorder(A,t,s)]:[3,2];case 1:return n.sent(),[2];case 2:return r=Ya(s,t),this.path(r),this.ctx.fillStyle=rr(A),this.ctx.fill(),o=Za(s,t),this.path(o),this.ctx.fill(),[2]}})})},t.prototype.renderNodeBackgroundAndBorders=function(A){return r(this,void 0,void 0,function(){var e,t,r,s,o,i,a,c,B=this;return n(this,function(n){switch(n.label){case 0:return this.applyEffects(A.getEffects(2)),e=A.container.styles,t=!tr(e.backgroundColor)||e.backgroundImage.length,r=[{style:e.borderTopStyle,color:e.borderTopColor,width:e.borderTopWidth},{style:e.borderRightStyle,color:e.borderRightColor,width:e.borderRightWidth},{style:e.borderBottomStyle,color:e.borderBottomColor,width:e.borderBottomWidth},{style:e.borderLeftStyle,color:e.borderLeftColor,width:e.borderLeftWidth}],s=wc(ic(e.backgroundClip,0),A.curves),t||e.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),tr(e.backgroundColor)||(this.ctx.fillStyle=rr(e.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(A.container)]):[3,2];case 1:n.sent(),this.ctx.restore(),e.boxShadow.slice(0).reverse().forEach(function(e){B.ctx.save();var t=La(A.curves),r=e.inset?0:gc,n=Ga(t,-r+(e.inset?1:-1)*e.spread.number,(e.inset?1:-1)*e.spread.number,e.spread.number*(e.inset?-2:2),e.spread.number*(e.inset?-2:2));e.inset?(B.path(t),B.ctx.clip(),B.mask(n)):(B.mask(t),B.ctx.clip(),B.path(n)),B.ctx.shadowOffsetX=e.offsetX.number+r,B.ctx.shadowOffsetY=e.offsetY.number,B.ctx.shadowColor=rr(e.color),B.ctx.shadowBlur=e.blur.number,B.ctx.fillStyle=e.inset?rr(e.color):"rgba(0,0,0,1)",B.ctx.fill(),B.ctx.restore()}),n.label=2;case 2:o=0,i=0,a=r,n.label=3;case 3:return i<a.length?0!==(c=a[i]).style&&!tr(c.color)&&c.width>0?2!==c.style?[3,5]:[4,this.renderDashedDottedBorder(c.color,c.width,o,A.curves,2)]:[3,11]:[3,13];case 4:return n.sent(),[3,11];case 5:return 3!==c.style?[3,7]:[4,this.renderDashedDottedBorder(c.color,c.width,o,A.curves,3)];case 6:return n.sent(),[3,11];case 7:return 4!==c.style?[3,9]:[4,this.renderDoubleBorder(c.color,c.width,o,A.curves)];case 8:return n.sent(),[3,11];case 9:return[4,this.renderSolidBorder(c.color,o,A.curves)];case 10:n.sent(),n.label=11;case 11:o++,n.label=12;case 12:return i++,[3,3];case 13:return[2]}})})},t.prototype.renderDashedDottedBorder=function(A,e,t,s,o){return r(this,void 0,void 0,function(){var r,i,a,c,B,l,u,g,d,h,w,Q,p,C,f,U;return n(this,function(n){return this.ctx.save(),r=ja(s,t),i=_a(s,t),2===o&&(this.path(i),this.ctx.clip()),va(i[0])?(a=i[0].start.x,c=i[0].start.y):(a=i[0].x,c=i[0].y),va(i[1])?(B=i[1].end.x,l=i[1].end.y):(B=i[1].x,l=i[1].y),u=0===t||2===t?Math.abs(a-B):Math.abs(c-l),this.ctx.beginPath(),3===o?this.formatPath(r):this.formatPath(i.slice(0,2)),g=e<3?3*e:2*e,d=e<3?2*e:e,3===o&&(g=e,d=e),h=!0,u<=2*g?h=!1:u<=2*g+d?(g*=w=u/(2*g+d),d*=w):(Q=Math.floor((u+d)/(g+d)),p=(u-Q*g)/(Q-1),d=(C=(u-(Q+1)*g)/Q)<=0||Math.abs(d-p)<Math.abs(d-C)?p:C),h&&(3===o?this.ctx.setLineDash([0,g+d]):this.ctx.setLineDash([g,d])),3===o?(this.ctx.lineCap="round",this.ctx.lineWidth=e):this.ctx.lineWidth=2*e+1.1,this.ctx.strokeStyle=rr(A),this.ctx.stroke(),this.ctx.setLineDash([]),2===o&&(va(i[0])&&(f=i[3],U=i[0],this.ctx.beginPath(),this.formatPath([new Ia(f.end.x,f.end.y),new Ia(U.start.x,U.start.y)]),this.ctx.stroke()),va(i[1])&&(f=i[1],U=i[2],this.ctx.beginPath(),this.formatPath([new Ia(f.end.x,f.end.y),new Ia(U.start.x,U.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},t.prototype.render=function(A){return r(this,void 0,void 0,function(){var e;return n(this,function(t){switch(t.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=rr(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),e=Wa(A),[4,this.renderStack(e)];case 1:return t.sent(),this.applyEffects([]),[2,this.canvas]}})})},t}(uc),hc=function(A){return A instanceof ri||A instanceof ti||A instanceof ei&&A.type!==zo&&A.type!==qo},wc=function(A,e){switch(A){case 0:return La(e);case 2:return Ka(e);default:return Da(e)}},Qc=function(A){switch(A){case 1:return"center";case 2:return"right";default:return"left"}},pc=["-apple-system","system-ui"],Cc=function(A){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?A.filter(function(A){return-1===pc.indexOf(A)}):A},fc=function(A){function t(e,t){var r=A.call(this,e,t)||this;return r.canvas=t.canvas?t.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),r.options=t,r.canvas.width=Math.floor(t.width*t.scale),r.canvas.height=Math.floor(t.height*t.scale),r.canvas.style.width=t.width+"px",r.canvas.style.height=t.height+"px",r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-t.x,-t.y),r.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+t.width+"x"+t.height+" at "+t.x+","+t.y+") with scale "+t.scale),r}return e(t,A),t.prototype.render=function(A){return r(this,void 0,void 0,function(){var e,t;return n(this,function(r){switch(r.label){case 0:return e=Eo(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,A),[4,Uc(e)];case 1:return t=r.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=rr(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(t,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},t}(uc),Uc=function(A){return new Promise(function(e,t){var r=new Image;r.onload=function(){e(r)},r.onerror=t,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(A))})},Fc=function(){function A(A){var e=A.id,t=A.enabled;this.id=e,this.enabled=t,this.start=Date.now()}return A.prototype.debug=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.debug?console.debug.apply(console,s([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},A.prototype.getTime=function(){return Date.now()-this.start},A.prototype.info=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&"undefined"!=typeof window&&window.console&&"function"==typeof console.info&&console.info.apply(console,s([this.id,this.getTime()+"ms"],A))},A.prototype.warn=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.warn?console.warn.apply(console,s([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},A.prototype.error=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.error?console.error.apply(console,s([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},A.instances={},A}(),mc=function(){function A(e,t){var r;this.windowBounds=t,this.instanceName="#"+A.instanceCount++,this.logger=new Fc({id:this.instanceName,enabled:e.logging}),this.cache=null!==(r=e.cache)&&void 0!==r?r:new wa(this,e)}return A.instanceCount=1,A}(),yc=function(A,e){return void 0===e&&(e={}),Ic(A,e)};"undefined"!=typeof window&&ha.setContext(window);var Ic=function(A,e){return r(void 0,void 0,void 0,function(){var r,s,c,B,l,u,g,d,h,w,Q,p,C,f,U,F,m,y,I,E,H,v,b,S,L,K,D,M,k,T,O,x,R,N,G,V,P,X;return n(this,function(n){switch(n.label){case 0:if(!A||"object"!=typeof A)return[2,Promise.reject("Invalid element provided as first argument")];if(!(r=A.ownerDocument))throw new Error("Element is not attached to a Document");if(!(s=r.defaultView))throw new Error("Document is not attached to a Window");return c={allowTaint:null!==(v=e.allowTaint)&&void 0!==v&&v,imageTimeout:null!==(b=e.imageTimeout)&&void 0!==b?b:15e3,proxy:e.proxy,useCORS:null!==(S=e.useCORS)&&void 0!==S&&S},B=t({logging:null===(L=e.logging)||void 0===L||L,cache:e.cache},c),l={windowWidth:null!==(K=e.windowWidth)&&void 0!==K?K:s.innerWidth,windowHeight:null!==(D=e.windowHeight)&&void 0!==D?D:s.innerHeight,scrollX:null!==(M=e.scrollX)&&void 0!==M?M:s.pageXOffset,scrollY:null!==(k=e.scrollY)&&void 0!==k?k:s.pageYOffset},u=new o(l.scrollX,l.scrollY,l.windowWidth,l.windowHeight),g=new mc(B,u),d=null!==(T=e.foreignObjectRendering)&&void 0!==T&&T,h={allowTaint:null!==(O=e.allowTaint)&&void 0!==O&&O,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:d,copyStyles:d},g.logger.debug("Starting document clone with size "+u.width+"x"+u.height+" scrolled to "+-u.left+","+-u.top),w=new qi(g,A,h),(Q=w.clonedReferenceElement)?[4,w.toIFrame(r,u)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return p=n.sent(),C=fi(Q)||pi(Q)?a(Q.ownerDocument):i(g,Q),f=C.width,U=C.height,F=C.left,m=C.top,y=Ec(g,Q,e.backgroundColor),I={canvas:e.canvas,backgroundColor:y,scale:null!==(R=null!==(x=e.scale)&&void 0!==x?x:s.devicePixelRatio)&&void 0!==R?R:1,x:(null!==(N=e.x)&&void 0!==N?N:0)+F,y:(null!==(G=e.y)&&void 0!==G?G:0)+m,width:null!==(V=e.width)&&void 0!==V?V:Math.ceil(f),height:null!==(P=e.height)&&void 0!==P?P:Math.ceil(U)},d?(g.logger.debug("Document cloned, using foreign object rendering"),[4,new fc(g,I).render(Q)]):[3,3];case 2:return E=n.sent(),[3,5];case 3:return g.logger.debug("Document cloned, element located at "+F+","+m+" with size "+f+"x"+U+" using computed rendering"),g.logger.debug("Starting DOM parsing"),H=ai(g,Q),y===H.styles.backgroundColor&&(H.styles.backgroundColor=lr.TRANSPARENT),g.logger.debug("Starting renderer for element at "+I.x+","+I.y+" with size "+I.width+"x"+I.height),[4,new dc(g,I).render(H)];case 4:E=n.sent(),n.label=5;case 5:return(null===(X=e.removeContainer)||void 0===X||X)&&(qi.destroy(p)||g.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),g.logger.debug("Finished rendering"),[2,E]}})})},Ec=function(A,e,t){var r=e.ownerDocument,n=r.documentElement?Br(A,getComputedStyle(r.documentElement).backgroundColor):lr.TRANSPARENT,s=r.body?Br(A,getComputedStyle(r.body).backgroundColor):lr.TRANSPARENT,o="string"==typeof t?Br(A,t):null===t?lr.TRANSPARENT:4294967295;return e===r.documentElement?tr(n)?tr(s)?o:s:n:o};return yc}()}(J);var W,_=X(J.exports);class Y{constructor(A,e){this.config=A,this.transport=e,this.captured=!1}captureAndSend(A,t){return e(this,void 0,void 0,function*(){if(!this.captured)try{yield new Promise(A=>setTimeout(A,2e3)),this.config.debug&&console.log("[DevSkin] Capturing page screenshot...");const e=Math.max(document.body.scrollWidth,document.documentElement.scrollWidth,document.body.offsetWidth,document.documentElement.offsetWidth,document.body.clientWidth,document.documentElement.clientWidth),r=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight),n=yield _(document.body,{allowTaint:!0,useCORS:!0,logging:!1,scale:.5,width:e,height:r,windowWidth:e,windowHeight:r,x:0,y:0}),s=n.toDataURL("image/jpeg",.6);this.transport.sendScreenshot({session_id:A,page_url:t,screenshot:s,width:n.width,height:n.height}),this.captured=!0,this.config.debug&&console.log("[DevSkin] Screenshot captured and sent:",{size:Math.round(s.length/1024)+"KB",dimensions:`${n.width}x${n.height}`})}catch(A){console.error("[DevSkin] Failed to capture screenshot:",A)}})}}function Z(A){const e=null==A?void 0:A.host;return Boolean((null==e?void 0:e.shadowRoot)===A)}function j(A){return"[object ShadowRoot]"===Object.prototype.toString.call(A)}function q(A){try{const t=A.rules||A.cssRules;return t?((e=Array.from(t,z).join("")).includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),e):null}catch(A){return null}var e}function z(A){let e;if(function(A){return"styleSheet"in A}(A))try{e=q(A.styleSheet)||function(A){const{cssText:e}=A;if(e.split('"').length<3)return e;const t=["@import",`url(${JSON.stringify(A.href)})`];return""===A.layerName?t.push("layer"):A.layerName&&t.push(`layer(${A.layerName})`),A.supportsText&&t.push(`supports(${A.supportsText})`),A.media.length&&t.push(A.media.mediaText),t.join(" ")+";"}(A)}catch(A){}else if(function(A){return"selectorText"in A}(A)&&A.selectorText.includes(":"))return function(A){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return A.replace(e,"$1\\$2")}(A.cssText);return e||A.cssText}!function(A){A[A.Document=0]="Document",A[A.DocumentType=1]="DocumentType",A[A.Element=2]="Element",A[A.Text=3]="Text",A[A.CDATA=4]="CDATA",A[A.Comment=5]="Comment"}(W||(W={}));class ${constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(A){var e;if(!A)return-1;const t=null===(e=this.getMeta(A))||void 0===e?void 0:e.id;return null!=t?t:-1}getNode(A){return this.idNodeMap.get(A)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(A){return this.nodeMetaMap.get(A)||null}removeNodeFromMap(A){const e=this.getId(A);this.idNodeMap.delete(e),A.childNodes&&A.childNodes.forEach(A=>this.removeNodeFromMap(A))}has(A){return this.idNodeMap.has(A)}hasNode(A){return this.nodeMetaMap.has(A)}add(A,e){const t=e.id;this.idNodeMap.set(t,A),this.nodeMetaMap.set(A,e)}replace(A,e){const t=this.getNode(A);if(t){const A=this.nodeMetaMap.get(t);A&&this.nodeMetaMap.set(e,A)}this.idNodeMap.set(A,e)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function AA({element:A,maskInputOptions:e,tagName:t,type:r,value:n,maskInputFn:s}){let o=n||"";const i=r&&eA(r);return(e[t.toLowerCase()]||i&&e[i])&&(o=s?s(o,A):"*".repeat(o.length)),o}function eA(A){return A.toLowerCase()}const tA="__rrweb_original__";function rA(A){const e=A.type;return A.hasAttribute("data-rr-is-password")?"password":e?eA(e):null}function nA(A,e){var t;let r;try{r=new URL(A,null!=e?e:window.location.href)}catch(A){return null}const n=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!==(t=null==n?void 0:n[1])&&void 0!==t?t:null}let sA=1;const oA=new RegExp("[^a-z0-9-_:]");function iA(){return sA++}let aA,cA;const BA=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,lA=/^(?:[a-z+]+:)?\/\//i,uA=/^www\..*/i,gA=/^(data:)([^,]*),(.*)/i;function dA(A,e){return(A||"").replace(BA,(A,t,r,n,s,o)=>{const i=r||s||o,a=t||n||"";if(!i)return A;if(lA.test(i)||uA.test(i))return`url(${a}${i}${a})`;if(gA.test(i))return`url(${a}${i}${a})`;if("/"===i[0])return`url(${a}${function(A){let e="";return e=A.indexOf("//")>-1?A.split("/").slice(0,3).join("/"):A.split("/")[0],e=e.split("?")[0],e}(e)+i}${a})`;const c=e.split("/"),B=i.split("/");c.pop();for(const A of B)"."!==A&&(".."===A?c.pop():c.push(A));return`url(${a}${c.join("/")}${a})`})}const hA=/^[^ \t\n\r\u000c]+/,wA=/^[, \t\n\r\u000c]+/;function QA(A,e){if(!e||""===e.trim())return e;const t=A.createElement("a");return t.href=e,t.href}function pA(A){return Boolean("svg"===A.tagName||A.ownerSVGElement)}function CA(){const A=document.createElement("a");return A.href="",A.href}function fA(A,e,t,r){return r?"src"===t||"href"===t&&("use"!==e||"#"!==r[0])||"xlink:href"===t&&"#"!==r[0]?QA(A,r):"background"!==t||"table"!==e&&"td"!==e&&"th"!==e?"srcset"===t?function(A,e){if(""===e.trim())return e;let t=0;function r(A){let r;const n=A.exec(e.substring(t));return n?(r=n[0],t+=r.length,r):""}const n=[];for(;r(wA),!(t>=e.length);){let s=r(hA);if(","===s.slice(-1))s=QA(A,s.substring(0,s.length-1)),n.push(s);else{let r="";s=QA(A,s);let o=!1;for(;;){const A=e.charAt(t);if(""===A){n.push((s+r).trim());break}if(o)")"===A&&(o=!1);else{if(","===A){t+=1,n.push((s+r).trim());break}"("===A&&(o=!0)}r+=A,t+=1}}}return n.join(", ")}(A,r):"style"===t?dA(r,CA()):"object"===e&&"data"===t?QA(A,r):r:QA(A,r):r}function UA(A,e,t){return("video"===A||"audio"===A)&&"autoplay"===e}function FA(A,e,t){if(!A)return!1;if(A.nodeType!==A.ELEMENT_NODE)return!!t&&FA(A.parentNode,e,t);for(let t=A.classList.length;t--;){const r=A.classList[t];if(e.test(r))return!0}return!!t&&FA(A.parentNode,e,t)}function mA(A,e,t,r){try{const n=A.nodeType===A.ELEMENT_NODE?A:A.parentElement;if(null===n)return!1;if("string"==typeof e){if(r){if(n.closest(`.${e}`))return!0}else if(n.classList.contains(e))return!0}else if(FA(n,e,r))return!0;if(t)if(r){if(n.closest(t))return!0}else if(n.matches(t))return!0}catch(A){}return!1}function yA(A,e){const{doc:t,mirror:r,blockClass:n,blockSelector:s,needsMask:o,inlineStylesheet:i,maskInputOptions:a={},maskTextFn:c,maskInputFn:B,dataURLOptions:l={},inlineImages:u,recordCanvas:g,keepIframeSrcFn:d,newlyAddedElement:h=!1}=e,w=function(A,e){if(!e.hasNode(A))return;const t=e.getId(A);return 1===t?void 0:t}(t,r);switch(A.nodeType){case A.DOCUMENT_NODE:return"CSS1Compat"!==A.compatMode?{type:W.Document,childNodes:[],compatMode:A.compatMode}:{type:W.Document,childNodes:[]};case A.DOCUMENT_TYPE_NODE:return{type:W.DocumentType,name:A.name,publicId:A.publicId,systemId:A.systemId,rootId:w};case A.ELEMENT_NODE:return function(A,e){const{doc:t,blockClass:r,blockSelector:n,inlineStylesheet:s,maskInputOptions:o={},maskInputFn:i,dataURLOptions:a={},inlineImages:c,recordCanvas:B,keepIframeSrcFn:l,newlyAddedElement:u=!1,rootId:g}=e,d=function(A,e,t){try{if("string"==typeof e){if(A.classList.contains(e))return!0}else for(let t=A.classList.length;t--;){const r=A.classList[t];if(e.test(r))return!0}if(t)return A.matches(t)}catch(A){}return!1}(A,r,n),h=function(A){if(A instanceof HTMLFormElement)return"form";const e=eA(A.tagName);return oA.test(e)?"div":e}(A);let w={};const Q=A.attributes.length;for(let e=0;e<Q;e++){const r=A.attributes[e];UA(h,r.name,r.value)||(w[r.name]=fA(t,h,eA(r.name),r.value))}if("link"===h&&s){const e=Array.from(t.styleSheets).find(e=>e.href===A.href);let r=null;e&&(r=q(e)),r&&(delete w.rel,delete w.href,w._cssText=dA(r,e.href))}if("style"===h&&A.sheet&&!(A.innerText||A.textContent||"").trim().length){const e=q(A.sheet);e&&(w._cssText=dA(e,CA()))}if("input"===h||"textarea"===h||"select"===h){const e=A.value,t=A.checked;"radio"!==w.type&&"checkbox"!==w.type&&"submit"!==w.type&&"button"!==w.type&&e?w.value=AA({element:A,type:rA(A),tagName:h,value:e,maskInputOptions:o,maskInputFn:i}):t&&(w.checked=t)}"option"===h&&(A.selected&&!o.select?w.selected=!0:delete w.selected);if("canvas"===h&&B)if("2d"===A.__context)(function(A){const e=A.getContext("2d");if(!e)return!0;for(let t=0;t<A.width;t+=50)for(let r=0;r<A.height;r+=50){const n=e.getImageData,s=tA in n?n[tA]:n;if(new Uint32Array(s.call(e,t,r,Math.min(50,A.width-t),Math.min(50,A.height-r)).data.buffer).some(A=>0!==A))return!1}return!0})(A)||(w.rr_dataURL=A.toDataURL(a.type,a.quality));else if(!("__context"in A)){const e=A.toDataURL(a.type,a.quality),t=document.createElement("canvas");t.width=A.width,t.height=A.height;e!==t.toDataURL(a.type,a.quality)&&(w.rr_dataURL=e)}if("img"===h&&c){aA||(aA=t.createElement("canvas"),cA=aA.getContext("2d"));const e=A,r=e.crossOrigin;e.crossOrigin="anonymous";const n=()=>{e.removeEventListener("load",n);try{aA.width=e.naturalWidth,aA.height=e.naturalHeight,cA.drawImage(e,0,0),w.rr_dataURL=aA.toDataURL(a.type,a.quality)}catch(A){console.warn(`Cannot inline img src=${e.currentSrc}! Error: ${A}`)}r?w.crossOrigin=r:e.removeAttribute("crossorigin")};e.complete&&0!==e.naturalWidth?n():e.addEventListener("load",n)}if("audio"===h||"video"===h){const e=w;e.rr_mediaState=A.paused?"paused":"played",e.rr_mediaCurrentTime=A.currentTime,e.rr_mediaPlaybackRate=A.playbackRate,e.rr_mediaMuted=A.muted,e.rr_mediaLoop=A.loop,e.rr_mediaVolume=A.volume}u||(A.scrollLeft&&(w.rr_scrollLeft=A.scrollLeft),A.scrollTop&&(w.rr_scrollTop=A.scrollTop));if(d){const{width:e,height:t}=A.getBoundingClientRect();w={class:w.class,rr_width:`${e}px`,rr_height:`${t}px`}}"iframe"!==h||l(w.src)||(A.contentDocument||(w.rr_src=w.src),delete w.src);let p;try{customElements.get(h)&&(p=!0)}catch(A){}return{type:W.Element,tagName:h,attributes:w,childNodes:[],isSVG:pA(A)||void 0,needBlock:d,rootId:g,isCustom:p}}(A,{doc:t,blockClass:n,blockSelector:s,inlineStylesheet:i,maskInputOptions:a,maskInputFn:B,dataURLOptions:l,inlineImages:u,recordCanvas:g,keepIframeSrcFn:d,newlyAddedElement:h,rootId:w});case A.TEXT_NODE:return function(A,e){var t;const{needsMask:r,maskTextFn:n,rootId:s}=e,o=A.parentNode&&A.parentNode.tagName;let i=A.textContent;const a="STYLE"===o||void 0,c="SCRIPT"===o||void 0;if(a&&i){try{A.nextSibling||A.previousSibling||(null===(t=A.parentNode.sheet)||void 0===t?void 0:t.cssRules)&&(i=q(A.parentNode.sheet))}catch(e){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${e}`,A)}i=dA(i,CA())}c&&(i="SCRIPT_PLACEHOLDER");!a&&!c&&i&&r&&(i=n?n(i,A.parentElement):i.replace(/[\S]/g,"*"));return{type:W.Text,textContent:i||"",isStyle:a,rootId:s}}(A,{needsMask:o,maskTextFn:c,rootId:w});case A.CDATA_SECTION_NODE:return{type:W.CDATA,textContent:"",rootId:w};case A.COMMENT_NODE:return{type:W.Comment,textContent:A.textContent||"",rootId:w};default:return!1}}function IA(A){return null==A?"":A.toLowerCase()}function EA(A,e){const{doc:t,mirror:r,blockClass:n,blockSelector:s,maskTextClass:o,maskTextSelector:i,skipChild:a=!1,inlineStylesheet:c=!0,maskInputOptions:B={},maskTextFn:l,maskInputFn:u,slimDOMOptions:g,dataURLOptions:d={},inlineImages:h=!1,recordCanvas:w=!1,onSerialize:Q,onIframeLoad:p,iframeLoadTimeout:C=5e3,onStylesheetLoad:f,stylesheetLoadTimeout:U=5e3,keepIframeSrcFn:F=()=>!1,newlyAddedElement:m=!1}=e;let{needsMask:y}=e,{preserveWhiteSpace:I=!0}=e;if(!y&&A.childNodes){y=mA(A,o,i,void 0===y)}const E=yA(A,{doc:t,mirror:r,blockClass:n,blockSelector:s,needsMask:y,inlineStylesheet:c,maskInputOptions:B,maskTextFn:l,maskInputFn:u,dataURLOptions:d,inlineImages:h,recordCanvas:w,keepIframeSrcFn:F,newlyAddedElement:m});if(!E)return console.warn(A,"not serialized"),null;let H;H=r.hasNode(A)?r.getId(A):!function(A,e){if(e.comment&&A.type===W.Comment)return!0;if(A.type===W.Element){if(e.script&&("script"===A.tagName||"link"===A.tagName&&("preload"===A.attributes.rel||"modulepreload"===A.attributes.rel)&&"script"===A.attributes.as||"link"===A.tagName&&"prefetch"===A.attributes.rel&&"string"==typeof A.attributes.href&&"js"===nA(A.attributes.href)))return!0;if(e.headFavicon&&("link"===A.tagName&&"shortcut icon"===A.attributes.rel||"meta"===A.tagName&&(IA(A.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===IA(A.attributes.name)||"icon"===IA(A.attributes.rel)||"apple-touch-icon"===IA(A.attributes.rel)||"shortcut icon"===IA(A.attributes.rel))))return!0;if("meta"===A.tagName){if(e.headMetaDescKeywords&&IA(A.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(IA(A.attributes.property).match(/^(og|twitter|fb):/)||IA(A.attributes.name).match(/^(og|twitter):/)||"pinterest"===IA(A.attributes.name)))return!0;if(e.headMetaRobots&&("robots"===IA(A.attributes.name)||"googlebot"===IA(A.attributes.name)||"bingbot"===IA(A.attributes.name)))return!0;if(e.headMetaHttpEquiv&&void 0!==A.attributes["http-equiv"])return!0;if(e.headMetaAuthorship&&("author"===IA(A.attributes.name)||"generator"===IA(A.attributes.name)||"framework"===IA(A.attributes.name)||"publisher"===IA(A.attributes.name)||"progid"===IA(A.attributes.name)||IA(A.attributes.property).match(/^article:/)||IA(A.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&("google-site-verification"===IA(A.attributes.name)||"yandex-verification"===IA(A.attributes.name)||"csrf-token"===IA(A.attributes.name)||"p:domain_verify"===IA(A.attributes.name)||"verify-v1"===IA(A.attributes.name)||"verification"===IA(A.attributes.name)||"shopify-checkout-api-token"===IA(A.attributes.name)))return!0}}return!1}(E,g)&&(I||E.type!==W.Text||E.isStyle||E.textContent.replace(/^\s+|\s+$/gm,"").length)?iA():-2;const v=Object.assign(E,{id:H});if(r.add(A,v),-2===H)return null;Q&&Q(A);let b=!a;if(v.type===W.Element){b=b&&!v.needBlock,delete v.needBlock;const e=A.shadowRoot;e&&j(e)&&(v.isShadowHost=!0)}if((v.type===W.Document||v.type===W.Element)&&b){g.headWhitespace&&v.type===W.Element&&"head"===v.tagName&&(I=!1);const e={doc:t,mirror:r,blockClass:n,blockSelector:s,needsMask:y,maskTextClass:o,maskTextSelector:i,skipChild:a,inlineStylesheet:c,maskInputOptions:B,maskTextFn:l,maskInputFn:u,slimDOMOptions:g,dataURLOptions:d,inlineImages:h,recordCanvas:w,preserveWhiteSpace:I,onSerialize:Q,onIframeLoad:p,iframeLoadTimeout:C,onStylesheetLoad:f,stylesheetLoadTimeout:U,keepIframeSrcFn:F};if(v.type===W.Element&&"textarea"===v.tagName&&void 0!==v.attributes.value);else for(const t of Array.from(A.childNodes)){const A=EA(t,e);A&&v.childNodes.push(A)}if(function(A){return A.nodeType===A.ELEMENT_NODE}(A)&&A.shadowRoot)for(const t of Array.from(A.shadowRoot.childNodes)){const r=EA(t,e);r&&(j(A.shadowRoot)&&(r.isShadow=!0),v.childNodes.push(r))}}return A.parentNode&&Z(A.parentNode)&&j(A.parentNode)&&(v.isShadow=!0),v.type===W.Element&&"iframe"===v.tagName&&function(A,e,t){const r=A.contentWindow;if(!r)return;let n,s=!1;try{n=r.document.readyState}catch(A){return}if("complete"!==n){const r=setTimeout(()=>{s||(e(),s=!0)},t);return void A.addEventListener("load",()=>{clearTimeout(r),s=!0,e()})}const o="about:blank";if(r.location.href!==o||A.src===o||""===A.src)return setTimeout(e,0),A.addEventListener("load",e);A.addEventListener("load",e)}(A,()=>{const e=A.contentDocument;if(e&&p){const t=EA(e,{doc:e,mirror:r,blockClass:n,blockSelector:s,needsMask:y,maskTextClass:o,maskTextSelector:i,skipChild:!1,inlineStylesheet:c,maskInputOptions:B,maskTextFn:l,maskInputFn:u,slimDOMOptions:g,dataURLOptions:d,inlineImages:h,recordCanvas:w,preserveWhiteSpace:I,onSerialize:Q,onIframeLoad:p,iframeLoadTimeout:C,onStylesheetLoad:f,stylesheetLoadTimeout:U,keepIframeSrcFn:F});t&&p(A,t)}},C),v.type===W.Element&&"link"===v.tagName&&"string"==typeof v.attributes.rel&&("stylesheet"===v.attributes.rel||"preload"===v.attributes.rel&&"string"==typeof v.attributes.href&&"css"===nA(v.attributes.href))&&function(A,e,t){let r,n=!1;try{r=A.sheet}catch(A){return}if(r)return;const s=setTimeout(()=>{n||(e(),n=!0)},t);A.addEventListener("load",()=>{clearTimeout(s),n=!0,e()})}(A,()=>{if(f){const e=EA(A,{doc:t,mirror:r,blockClass:n,blockSelector:s,needsMask:y,maskTextClass:o,maskTextSelector:i,skipChild:!1,inlineStylesheet:c,maskInputOptions:B,maskTextFn:l,maskInputFn:u,slimDOMOptions:g,dataURLOptions:d,inlineImages:h,recordCanvas:w,preserveWhiteSpace:I,onSerialize:Q,onIframeLoad:p,iframeLoadTimeout:C,onStylesheetLoad:f,stylesheetLoadTimeout:U,keepIframeSrcFn:F});e&&f(A,e)}},U),v}function HA(A,e,t=document){const r={capture:!0,passive:!0};return t.addEventListener(A,e,r),()=>t.removeEventListener(A,e,r)}const vA="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 bA={map:{},getId:()=>(console.error(vA),-1),getNode:()=>(console.error(vA),null),removeNodeFromMap(){console.error(vA)},has:()=>(console.error(vA),!1),reset(){console.error(vA)}};function SA(A,e,t={}){let r=null,n=0;return function(...s){const o=Date.now();n||!1!==t.leading||(n=o);const i=e-(o-n),a=this;i<=0||i>e?(r&&(clearTimeout(r),r=null),n=o,A.apply(a,s)):r||!1===t.trailing||(r=setTimeout(()=>{n=!1===t.leading?0:Date.now(),r=null,A.apply(a,s)},i))}}function LA(A,e,t,r,n=window){const s=n.Object.getOwnPropertyDescriptor(A,e);return n.Object.defineProperty(A,e,r?t:{set(A){setTimeout(()=>{t.set.call(this,A)},0),s&&s.set&&s.set.call(this,A)}}),()=>LA(A,e,s||{},!0)}function KA(A,e,t){try{if(!(e in A))return()=>{};const r=A[e],n=t(r);return"function"==typeof n&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__rrweb_original__:{enumerable:!1,value:r}})),A[e]=n,()=>{A[e]=r}}catch(A){return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(bA=new Proxy(bA,{get:(A,e,t)=>("map"===e&&console.error(vA),Reflect.get(A,e,t))}));let DA=Date.now;function MA(A){var e,t,r,n,s,o;const i=A.document;return{left:i.scrollingElement?i.scrollingElement.scrollLeft:void 0!==A.pageXOffset?A.pageXOffset:(null==i?void 0:i.documentElement.scrollLeft)||(null===(t=null===(e=null==i?void 0:i.body)||void 0===e?void 0:e.parentElement)||void 0===t?void 0:t.scrollLeft)||(null===(r=null==i?void 0:i.body)||void 0===r?void 0:r.scrollLeft)||0,top:i.scrollingElement?i.scrollingElement.scrollTop:void 0!==A.pageYOffset?A.pageYOffset:(null==i?void 0:i.documentElement.scrollTop)||(null===(s=null===(n=null==i?void 0:i.body)||void 0===n?void 0:n.parentElement)||void 0===s?void 0:s.scrollTop)||(null===(o=null==i?void 0:i.body)||void 0===o?void 0:o.scrollTop)||0}}function kA(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function TA(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function OA(A){if(!A)return null;return A.nodeType===A.ELEMENT_NODE?A:A.parentElement}function xA(A,e,t,r){if(!A)return!1;const n=OA(A);if(!n)return!1;try{if("string"==typeof e){if(n.classList.contains(e))return!0;if(r&&null!==n.closest("."+e))return!0}else if(FA(n,e,r))return!0}catch(A){}if(t){if(n.matches(t))return!0;if(r&&null!==n.closest(t))return!0}return!1}function RA(A,e){return-2===e.getId(A)}function NA(A,e){if(Z(A))return!1;const t=e.getId(A);return!e.has(t)||(!A.parentNode||A.parentNode.nodeType!==A.DOCUMENT_NODE)&&(!A.parentNode||NA(A.parentNode,e))}function GA(A){return Boolean(A.changedTouches)}function VA(A,e){return Boolean("IFRAME"===A.nodeName&&e.getMeta(A))}function PA(A,e){return Boolean("LINK"===A.nodeName&&A.nodeType===A.ELEMENT_NODE&&A.getAttribute&&"stylesheet"===A.getAttribute("rel")&&e.getMeta(A))}function XA(A){return Boolean(null==A?void 0:A.shadowRoot)}/[1-9][0-9]{12}/.test(Date.now().toString())||(DA=()=>(new Date).getTime());class JA{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(A){var e;return null!==(e=this.styleIDMap.get(A))&&void 0!==e?e:-1}has(A){return this.styleIDMap.has(A)}add(A,e){if(this.has(A))return this.getId(A);let t;return t=void 0===e?this.id++:e,this.styleIDMap.set(A,t),this.idStyleMap.set(t,A),t}getStyle(A){return this.idStyleMap.get(A)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function WA(A){var e,t;let r=null;return(null===(t=null===(e=A.getRootNode)||void 0===e?void 0:e.call(A))||void 0===t?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&A.getRootNode().host&&(r=A.getRootNode().host),r}function _A(A){const e=A.ownerDocument;if(!e)return!1;const t=function(A){let e,t=A;for(;e=WA(t);)t=e;return t}(A);return e.contains(t)}function YA(A){const e=A.ownerDocument;return!!e&&(e.contains(A)||_A(A))}var ZA=(A=>(A[A.DomContentLoaded=0]="DomContentLoaded",A[A.Load=1]="Load",A[A.FullSnapshot=2]="FullSnapshot",A[A.IncrementalSnapshot=3]="IncrementalSnapshot",A[A.Meta=4]="Meta",A[A.Custom=5]="Custom",A[A.Plugin=6]="Plugin",A))(ZA||{}),jA=(A=>(A[A.Mutation=0]="Mutation",A[A.MouseMove=1]="MouseMove",A[A.MouseInteraction=2]="MouseInteraction",A[A.Scroll=3]="Scroll",A[A.ViewportResize=4]="ViewportResize",A[A.Input=5]="Input",A[A.TouchMove=6]="TouchMove",A[A.MediaInteraction=7]="MediaInteraction",A[A.StyleSheetRule=8]="StyleSheetRule",A[A.CanvasMutation=9]="CanvasMutation",A[A.Font=10]="Font",A[A.Log=11]="Log",A[A.Drag=12]="Drag",A[A.StyleDeclaration=13]="StyleDeclaration",A[A.Selection=14]="Selection",A[A.AdoptedStyleSheet=15]="AdoptedStyleSheet",A[A.CustomElement=16]="CustomElement",A))(jA||{}),qA=(A=>(A[A.MouseUp=0]="MouseUp",A[A.MouseDown=1]="MouseDown",A[A.Click=2]="Click",A[A.ContextMenu=3]="ContextMenu",A[A.DblClick=4]="DblClick",A[A.Focus=5]="Focus",A[A.Blur=6]="Blur",A[A.TouchStart=7]="TouchStart",A[A.TouchMove_Departed=8]="TouchMove_Departed",A[A.TouchEnd=9]="TouchEnd",A[A.TouchCancel=10]="TouchCancel",A))(qA||{}),zA=(A=>(A[A.Mouse=0]="Mouse",A[A.Pen=1]="Pen",A[A.Touch=2]="Touch",A))(zA||{}),$A=(A=>(A[A["2D"]=0]="2D",A[A.WebGL=1]="WebGL",A[A.WebGL2=2]="WebGL2",A))($A||{});function Ae(A){return"__ln"in A}class ee{constructor(){this.length=0,this.head=null,this.tail=null}get(A){if(A>=this.length)throw new Error("Position outside of list range");let e=this.head;for(let t=0;t<A;t++)e=(null==e?void 0:e.next)||null;return e}addNode(A){const e={value:A,previous:null,next:null};if(A.__ln=e,A.previousSibling&&Ae(A.previousSibling)){const t=A.previousSibling.__ln.next;e.next=t,e.previous=A.previousSibling.__ln,A.previousSibling.__ln.next=e,t&&(t.previous=e)}else if(A.nextSibling&&Ae(A.nextSibling)&&A.nextSibling.__ln.previous){const t=A.nextSibling.__ln.previous;e.previous=t,e.next=A.nextSibling.__ln,A.nextSibling.__ln.previous=e,t&&(t.next=e)}else this.head&&(this.head.previous=e),e.next=this.head,this.head=e;null===e.next&&(this.tail=e),this.length++}removeNode(A){const e=A.__ln;this.head&&(e.previous?(e.previous.next=e.next,e.next?e.next.previous=e.previous:this.tail=e.previous):(this.head=e.next,this.head?this.head.previous=null:this.tail=null),A.__ln&&delete A.__ln,this.length--)}}const te=(A,e)=>`${A}@${e}`;class re{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=A=>{A.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const A=[],e=new Set,t=new ee,r=A=>{let e=A,t=-2;for(;-2===t;)e=e&&e.nextSibling,t=e&&this.mirror.getId(e);return t},n=n=>{if(!n.parentNode||!YA(n)||"TEXTAREA"===n.parentNode.tagName)return;const s=Z(n.parentNode)?this.mirror.getId(WA(n)):this.mirror.getId(n.parentNode),o=r(n);if(-1===s||-1===o)return t.addNode(n);const i=EA(n,{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:A=>{VA(A,this.mirror)&&this.iframeManager.addIframe(A),PA(A,this.mirror)&&this.stylesheetManager.trackLinkElement(A),XA(n)&&this.shadowDomManager.addShadowRoot(n.shadowRoot,this.doc)},onIframeLoad:(A,e)=>{this.iframeManager.attachIframe(A,e),this.shadowDomManager.observeAttachShadow(A)},onStylesheetLoad:(A,e)=>{this.stylesheetManager.attachLinkElement(A,e)}});i&&(A.push({parentId:s,nextId:o,node:i}),e.add(i.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const A of this.movedSet)se(this.removes,A,this.mirror)&&!this.movedSet.has(A.parentNode)||n(A);for(const A of this.addedSet)ie(this.droppedSet,A)||se(this.removes,A,this.mirror)?ie(this.movedSet,A)?n(A):this.droppedSet.add(A):n(A);let s=null;for(;t.length;){let A=null;if(s){const e=this.mirror.getId(s.value.parentNode),t=r(s.value);-1!==e&&-1!==t&&(A=s)}if(!A){let e=t.tail;for(;e;){const t=e;if(e=e.previous,t){const e=this.mirror.getId(t.value.parentNode);if(-1===r(t.value))continue;if(-1!==e){A=t;break}{const e=t.value;if(e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const r=e.parentNode.host;if(-1!==this.mirror.getId(r)){A=t;break}}}}}}if(!A){for(;t.head;)t.removeNode(t.head.value);break}s=A.previous,t.removeNode(A.value),n(A.value)}const o={texts:this.texts.map(A=>{const e=A.node;return e.parentNode&&"TEXTAREA"===e.parentNode.tagName&&this.genTextAreaValueMutation(e.parentNode),{id:this.mirror.getId(e),value:A.value}}).filter(A=>!e.has(A.id)).filter(A=>this.mirror.has(A.id)),attributes:this.attributes.map(A=>{const{attributes:e}=A;if("string"==typeof e.style){const t=JSON.stringify(A.styleDiff),r=JSON.stringify(A._unchangedStyles);t.length<e.style.length&&(t+r).split("var(").length===e.style.split("var(").length&&(e.style=A.styleDiff)}return{id:this.mirror.getId(A.node),attributes:e}}).filter(A=>!e.has(A.id)).filter(A=>this.mirror.has(A.id)),removes:this.removes,adds:A};(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.movedMap={},this.mutationCb(o))},this.genTextAreaValueMutation=A=>{let e=this.attributeMap.get(A);e||(e={node:A,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(e),this.attributeMap.set(A,e)),e.attributes.value=Array.from(A.childNodes,A=>A.textContent||"").join("")},this.processMutation=A=>{if(!RA(A.target,this.mirror))switch(A.type){case"characterData":{const e=A.target.textContent;xA(A.target,this.blockClass,this.blockSelector,!1)||e===A.oldValue||this.texts.push({value:mA(A.target,this.maskTextClass,this.maskTextSelector,!0)&&e?this.maskTextFn?this.maskTextFn(e,OA(A.target)):e.replace(/[\S]/g,"*"):e,node:A.target});break}case"attributes":{const e=A.target;let t=A.attributeName,r=A.target.getAttribute(t);if("value"===t){const A=rA(e);r=AA({element:e,maskInputOptions:this.maskInputOptions,tagName:e.tagName,type:A,value:r,maskInputFn:this.maskInputFn})}if(xA(A.target,this.blockClass,this.blockSelector,!1)||r===A.oldValue)return;let n=this.attributeMap.get(A.target);if("IFRAME"===e.tagName&&"src"===t&&!this.keepIframeSrcFn(r)){if(e.contentDocument)return;t="rr_src"}if(n||(n={node:A.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(n),this.attributeMap.set(A.target,n)),"type"===t&&"INPUT"===e.tagName&&"password"===(A.oldValue||"").toLowerCase()&&e.setAttribute("data-rr-is-password","true"),!UA(e.tagName,t)&&(n.attributes[t]=fA(this.doc,eA(e.tagName),eA(t),r),"style"===t)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(A){this.unattachedDoc=this.doc}const t=this.unattachedDoc.createElement("span");A.oldValue&&t.setAttribute("style",A.oldValue);for(const A of Array.from(e.style)){const r=e.style.getPropertyValue(A),s=e.style.getPropertyPriority(A);r!==t.style.getPropertyValue(A)||s!==t.style.getPropertyPriority(A)?n.styleDiff[A]=""===s?r:[r,s]:n._unchangedStyles[A]=[r,s]}for(const A of Array.from(t.style))""===e.style.getPropertyValue(A)&&(n.styleDiff[A]=!1)}break}case"childList":if(xA(A.target,this.blockClass,this.blockSelector,!0))return;if("TEXTAREA"===A.target.tagName)return void this.genTextAreaValueMutation(A.target);A.addedNodes.forEach(e=>this.genAdds(e,A.target)),A.removedNodes.forEach(e=>{const t=this.mirror.getId(e),r=Z(A.target)?this.mirror.getId(A.target.host):this.mirror.getId(A.target);xA(A.target,this.blockClass,this.blockSelector,!1)||RA(e,this.mirror)||!function(A,e){return-1!==e.getId(A)}(e,this.mirror)||(this.addedSet.has(e)?(ne(this.addedSet,e),this.droppedSet.add(e)):this.addedSet.has(A.target)&&-1===t||NA(A.target,this.mirror)||(this.movedSet.has(e)&&this.movedMap[te(t,r)]?ne(this.movedSet,e):this.removes.push({parentId:r,id:t,isShadow:!(!Z(A.target)||!j(A.target))||void 0})),this.mapRemoves.push(e))})}},this.genAdds=(A,e)=>{if(!this.processedNodeManager.inOtherBuffer(A,this)&&!this.addedSet.has(A)&&!this.movedSet.has(A)){if(this.mirror.hasNode(A)){if(RA(A,this.mirror))return;this.movedSet.add(A);let t=null;e&&this.mirror.hasNode(e)&&(t=this.mirror.getId(e)),t&&-1!==t&&(this.movedMap[te(this.mirror.getId(A),t)]=!0)}else this.addedSet.add(A),this.droppedSet.delete(A);xA(A,this.blockClass,this.blockSelector,!1)||(A.childNodes.forEach(A=>this.genAdds(A)),XA(A)&&A.shadowRoot.childNodes.forEach(e=>{this.processedNodeManager.add(e,this),this.genAdds(e,A)}))}}}init(A){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(e=>{this[e]=A[e]})}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 ne(A,e){A.delete(e),e.childNodes.forEach(e=>ne(A,e))}function se(A,e,t){return 0!==A.length&&oe(A,e,t)}function oe(A,e,t){const{parentNode:r}=e;if(!r)return!1;const n=t.getId(r);return!!A.some(A=>A.id===n)||oe(A,r,t)}function ie(A,e){return 0!==A.size&&ae(A,e)}function ae(A,e){const{parentNode:t}=e;return!!t&&(!!A.has(t)||ae(A,t))}let ce;function Be(A){ce=A}function le(){ce=void 0}const ue=A=>{if(!ce)return A;return(...e)=>{try{return A(...e)}catch(A){if(ce&&!0===ce(A))return;throw A}}},ge=[];function de(A){try{if("composedPath"in A){const e=A.composedPath();if(e.length)return e[0]}else if("path"in A&&A.path.length)return A.path[0]}catch(A){}return A&&A.target}function he(A,e){var t,r;const n=new re;ge.push(n),n.init(A);let s=window.MutationObserver||window.__rrMutationObserver;const o=null===(r=null===(t=null===window||void 0===window?void 0:window.Zone)||void 0===t?void 0:t.__symbol__)||void 0===r?void 0:r.call(t,"MutationObserver");o&&window[o]&&(s=window[o]);const i=new s(ue(n.processMutations.bind(n)));return i.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function we({mouseInteractionCb:A,doc:e,mirror:t,blockClass:r,blockSelector:n,sampling:s}){if(!1===s.mouseInteraction)return()=>{};const o=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,i=[];let a=null;return Object.keys(qA).filter(A=>Number.isNaN(Number(A))&&!A.endsWith("_Departed")&&!1!==o[A]).forEach(s=>{let o=eA(s);const c=(e=>s=>{const o=de(s);if(xA(o,r,n,!0))return;let i=null,c=e;if("pointerType"in s){switch(s.pointerType){case"mouse":i=zA.Mouse;break;case"touch":i=zA.Touch;break;case"pen":i=zA.Pen}i===zA.Touch?qA[e]===qA.MouseDown?c="TouchStart":qA[e]===qA.MouseUp&&(c="TouchEnd"):zA.Pen}else GA(s)&&(i=zA.Touch);null!==i?(a=i,(c.startsWith("Touch")&&i===zA.Touch||c.startsWith("Mouse")&&i===zA.Mouse)&&(i=null)):qA[e]===qA.Click&&(i=a,a=null);const B=GA(s)?s.changedTouches[0]:s;if(!B)return;const l=t.getId(o),{clientX:u,clientY:g}=B;ue(A)(Object.assign({type:qA[c],id:l,x:u,y:g},null!==i&&{pointerType:i}))})(s);if(window.PointerEvent)switch(qA[s]){case qA.MouseDown:case qA.MouseUp:o=o.replace("mouse","pointer");break;case qA.TouchStart:case qA.TouchEnd:return}i.push(HA(o,c,e))}),ue(()=>{i.forEach(A=>A())})}function Qe({scrollCb:A,doc:e,mirror:t,blockClass:r,blockSelector:n,sampling:s}){return HA("scroll",ue(SA(ue(s=>{const o=de(s);if(!o||xA(o,r,n,!0))return;const i=t.getId(o);if(o===e&&e.defaultView){const t=MA(e.defaultView);A({id:i,x:t.left,y:t.top})}else A({id:i,x:o.scrollLeft,y:o.scrollTop})}),s.scroll||100)),e)}const pe=["INPUT","TEXTAREA","SELECT"],Ce=new WeakMap;function fe(A){return function(A,e){if(ye("CSSGroupingRule")&&A.parentRule instanceof CSSGroupingRule||ye("CSSMediaRule")&&A.parentRule instanceof CSSMediaRule||ye("CSSSupportsRule")&&A.parentRule instanceof CSSSupportsRule||ye("CSSConditionRule")&&A.parentRule instanceof CSSConditionRule){const t=Array.from(A.parentRule.cssRules).indexOf(A);e.unshift(t)}else if(A.parentStyleSheet){const t=Array.from(A.parentStyleSheet.cssRules).indexOf(A);e.unshift(t)}return e}(A,[])}function Ue(A,e,t){let r,n;return A?(A.ownerNode?r=e.getId(A.ownerNode):n=t.getId(A),{styleId:n,id:r}):{}}function Fe({mirror:A,stylesheetManager:e},t){var r,n,s;let o=null;o="#document"===t.nodeName?A.getId(t):A.getId(t.host);const i="#document"===t.nodeName?null===(r=t.defaultView)||void 0===r?void 0:r.Document:null===(s=null===(n=t.ownerDocument)||void 0===n?void 0:n.defaultView)||void 0===s?void 0:s.ShadowRoot,a=(null==i?void 0:i.prototype)?Object.getOwnPropertyDescriptor(null==i?void 0:i.prototype,"adoptedStyleSheets"):void 0;return null!==o&&-1!==o&&i&&a?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){var A;return null===(A=a.get)||void 0===A?void 0:A.call(this)},set(A){var t;const r=null===(t=a.set)||void 0===t?void 0:t.call(this,A);if(null!==o&&-1!==o)try{e.adoptStyleSheets(A,o)}catch(A){}return r}}),ue(()=>{Object.defineProperty(t,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})})):()=>{}}function me(A,e={}){const t=A.doc.defaultView;if(!t)return()=>{};let r;!function(A,e){const{mutationCb:t,mousemoveCb:r,mouseInteractionCb:n,scrollCb:s,viewportResizeCb:o,inputCb:i,mediaInteractionCb:a,styleSheetRuleCb:c,styleDeclarationCb:B,canvasMutationCb:l,fontCb:u,selectionCb:g,customElementCb:d}=A;A.mutationCb=(...A)=>{e.mutation&&e.mutation(...A),t(...A)},A.mousemoveCb=(...A)=>{e.mousemove&&e.mousemove(...A),r(...A)},A.mouseInteractionCb=(...A)=>{e.mouseInteraction&&e.mouseInteraction(...A),n(...A)},A.scrollCb=(...A)=>{e.scroll&&e.scroll(...A),s(...A)},A.viewportResizeCb=(...A)=>{e.viewportResize&&e.viewportResize(...A),o(...A)},A.inputCb=(...A)=>{e.input&&e.input(...A),i(...A)},A.mediaInteractionCb=(...A)=>{e.mediaInteaction&&e.mediaInteaction(...A),a(...A)},A.styleSheetRuleCb=(...A)=>{e.styleSheetRule&&e.styleSheetRule(...A),c(...A)},A.styleDeclarationCb=(...A)=>{e.styleDeclaration&&e.styleDeclaration(...A),B(...A)},A.canvasMutationCb=(...A)=>{e.canvasMutation&&e.canvasMutation(...A),l(...A)},A.fontCb=(...A)=>{e.font&&e.font(...A),u(...A)},A.selectionCb=(...A)=>{e.selection&&e.selection(...A),g(...A)},A.customElementCb=(...A)=>{e.customElement&&e.customElement(...A),d(...A)}}(A,e),A.recordDOM&&(r=he(A,A.doc));const n=function({mousemoveCb:A,sampling:e,doc:t,mirror:r}){if(!1===e.mousemove)return()=>{};const n="number"==typeof e.mousemove?e.mousemove:50,s="number"==typeof e.mousemoveCallback?e.mousemoveCallback:500;let o,i=[];const a=SA(ue(e=>{const t=Date.now()-o;A(i.map(A=>(A.timeOffset-=t,A)),e),i=[],o=null}),s),c=ue(SA(ue(A=>{const e=de(A),{clientX:t,clientY:n}=GA(A)?A.changedTouches[0]:A;o||(o=DA()),i.push({x:t,y:n,id:r.getId(e),timeOffset:DA()-o}),a("undefined"!=typeof DragEvent&&A instanceof DragEvent?jA.Drag:A instanceof MouseEvent?jA.MouseMove:jA.TouchMove)}),n,{trailing:!1})),B=[HA("mousemove",c,t),HA("touchmove",c,t),HA("drag",c,t)];return ue(()=>{B.forEach(A=>A())})}(A),s=we(A),o=Qe(A),i=function({viewportResizeCb:A},{win:e}){let t=-1,r=-1;return HA("resize",ue(SA(ue(()=>{const e=kA(),n=TA();t===e&&r===n||(A({width:Number(n),height:Number(e)}),t=e,r=n)}),200)),e)}(A,{win:t}),a=function({inputCb:A,doc:e,mirror:t,blockClass:r,blockSelector:n,ignoreClass:s,ignoreSelector:o,maskInputOptions:i,maskInputFn:a,sampling:c,userTriggeredOnInput:B}){function l(A){let t=de(A);const c=A.isTrusted,l=t&&t.tagName;if(t&&"OPTION"===l&&(t=t.parentElement),!t||!l||pe.indexOf(l)<0||xA(t,r,n,!0))return;if(t.classList.contains(s)||o&&t.matches(o))return;let g=t.value,d=!1;const h=rA(t)||"";"radio"===h||"checkbox"===h?d=t.checked:(i[l.toLowerCase()]||i[h])&&(g=AA({element:t,maskInputOptions:i,tagName:l,type:h,value:g,maskInputFn:a})),u(t,B?{text:g,isChecked:d,userTriggered:c}:{text:g,isChecked:d});const w=t.name;"radio"===h&&w&&d&&e.querySelectorAll(`input[type="radio"][name="${w}"]`).forEach(A=>{if(A!==t){const e=A.value;u(A,B?{text:e,isChecked:!d,userTriggered:!1}:{text:e,isChecked:!d})}})}function u(e,r){const n=Ce.get(e);if(!n||n.text!==r.text||n.isChecked!==r.isChecked){Ce.set(e,r);const n=t.getId(e);ue(A)(Object.assign(Object.assign({},r),{id:n}))}}const g=("last"===c.input?["change"]:["input","change"]).map(A=>HA(A,ue(l),e)),d=e.defaultView;if(!d)return()=>{g.forEach(A=>A())};const h=d.Object.getOwnPropertyDescriptor(d.HTMLInputElement.prototype,"value"),w=[[d.HTMLInputElement.prototype,"value"],[d.HTMLInputElement.prototype,"checked"],[d.HTMLSelectElement.prototype,"value"],[d.HTMLTextAreaElement.prototype,"value"],[d.HTMLSelectElement.prototype,"selectedIndex"],[d.HTMLOptionElement.prototype,"selected"]];return h&&h.set&&g.push(...w.map(A=>LA(A[0],A[1],{set(){ue(l)({target:this,isTrusted:!1})}},!1,d))),ue(()=>{g.forEach(A=>A())})}(A),c=function({mediaInteractionCb:A,blockClass:e,blockSelector:t,mirror:r,sampling:n,doc:s}){const o=ue(s=>SA(ue(n=>{const o=de(n);if(!o||xA(o,e,t,!0))return;const{currentTime:i,volume:a,muted:c,playbackRate:B,loop:l}=o;A({type:s,id:r.getId(o),currentTime:i,volume:a,muted:c,playbackRate:B,loop:l})}),n.media||500)),i=[HA("play",o(0),s),HA("pause",o(1),s),HA("seeked",o(2),s),HA("volumechange",o(3),s),HA("ratechange",o(4),s)];return ue(()=>{i.forEach(A=>A())})}(A);let B=()=>{},l=()=>{},u=()=>{},g=()=>{};A.recordDOM&&(B=function({styleSheetRuleCb:A,mirror:e,stylesheetManager:t},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const n=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(n,{apply:ue((r,n,s)=>{const[o,i]=s,{id:a,styleId:c}=Ue(n,e,t.styleMirror);return(a&&-1!==a||c&&-1!==c)&&A({id:a,styleId:c,adds:[{rule:o,index:i}]}),r.apply(n,s)})});const s=r.CSSStyleSheet.prototype.deleteRule;let o,i;r.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:ue((r,n,s)=>{const[o]=s,{id:i,styleId:a}=Ue(n,e,t.styleMirror);return(i&&-1!==i||a&&-1!==a)&&A({id:i,styleId:a,removes:[{index:o}]}),r.apply(n,s)})}),r.CSSStyleSheet.prototype.replace&&(o=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:ue((r,n,s)=>{const[o]=s,{id:i,styleId:a}=Ue(n,e,t.styleMirror);return(i&&-1!==i||a&&-1!==a)&&A({id:i,styleId:a,replace:o}),r.apply(n,s)})})),r.CSSStyleSheet.prototype.replaceSync&&(i=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(i,{apply:ue((r,n,s)=>{const[o]=s,{id:i,styleId:a}=Ue(n,e,t.styleMirror);return(i&&-1!==i||a&&-1!==a)&&A({id:i,styleId:a,replaceSync:o}),r.apply(n,s)})}));const a={};Ie("CSSGroupingRule")?a.CSSGroupingRule=r.CSSGroupingRule:(Ie("CSSMediaRule")&&(a.CSSMediaRule=r.CSSMediaRule),Ie("CSSConditionRule")&&(a.CSSConditionRule=r.CSSConditionRule),Ie("CSSSupportsRule")&&(a.CSSSupportsRule=r.CSSSupportsRule));const c={};return Object.entries(a).forEach(([r,n])=>{c[r]={insertRule:n.prototype.insertRule,deleteRule:n.prototype.deleteRule},n.prototype.insertRule=new Proxy(c[r].insertRule,{apply:ue((r,n,s)=>{const[o,i]=s,{id:a,styleId:c}=Ue(n.parentStyleSheet,e,t.styleMirror);return(a&&-1!==a||c&&-1!==c)&&A({id:a,styleId:c,adds:[{rule:o,index:[...fe(n),i||0]}]}),r.apply(n,s)})}),n.prototype.deleteRule=new Proxy(c[r].deleteRule,{apply:ue((r,n,s)=>{const[o]=s,{id:i,styleId:a}=Ue(n.parentStyleSheet,e,t.styleMirror);return(i&&-1!==i||a&&-1!==a)&&A({id:i,styleId:a,removes:[{index:[...fe(n),o]}]}),r.apply(n,s)})})}),ue(()=>{r.CSSStyleSheet.prototype.insertRule=n,r.CSSStyleSheet.prototype.deleteRule=s,o&&(r.CSSStyleSheet.prototype.replace=o),i&&(r.CSSStyleSheet.prototype.replaceSync=i),Object.entries(a).forEach(([A,e])=>{e.prototype.insertRule=c[A].insertRule,e.prototype.deleteRule=c[A].deleteRule})})}(A,{win:t}),l=Fe(A,A.doc),u=function({styleDeclarationCb:A,mirror:e,ignoreCSSAttributes:t,stylesheetManager:r},{win:n}){const s=n.CSSStyleDeclaration.prototype.setProperty;n.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:ue((n,o,i)=>{var a;const[c,B,l]=i;if(t.has(c))return s.apply(o,[c,B,l]);const{id:u,styleId:g}=Ue(null===(a=o.parentRule)||void 0===a?void 0:a.parentStyleSheet,e,r.styleMirror);return(u&&-1!==u||g&&-1!==g)&&A({id:u,styleId:g,set:{property:c,value:B,priority:l},index:fe(o.parentRule)}),n.apply(o,i)})});const o=n.CSSStyleDeclaration.prototype.removeProperty;return n.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:ue((n,s,i)=>{var a;const[c]=i;if(t.has(c))return o.apply(s,[c]);const{id:B,styleId:l}=Ue(null===(a=s.parentRule)||void 0===a?void 0:a.parentStyleSheet,e,r.styleMirror);return(B&&-1!==B||l&&-1!==l)&&A({id:B,styleId:l,remove:{property:c},index:fe(s.parentRule)}),n.apply(s,i)})}),ue(()=>{n.CSSStyleDeclaration.prototype.setProperty=s,n.CSSStyleDeclaration.prototype.removeProperty=o})}(A,{win:t}),A.collectFonts&&(g=function({fontCb:A,doc:e}){const t=e.defaultView;if(!t)return()=>{};const r=[],n=new WeakMap,s=t.FontFace;t.FontFace=function(A,e,t){const r=new s(A,e,t);return n.set(r,{family:A,buffer:"string"!=typeof e,descriptors:t,fontSource:"string"==typeof e?e:JSON.stringify(Array.from(new Uint8Array(e)))}),r};const o=KA(e.fonts,"add",function(e){return function(t){return setTimeout(ue(()=>{const e=n.get(t);e&&(A(e),n.delete(t))}),0),e.apply(this,[t])}});return r.push(()=>{t.FontFace=s}),r.push(o),ue(()=>{r.forEach(A=>A())})}(A)));const d=function(A){const{doc:e,mirror:t,blockClass:r,blockSelector:n,selectionCb:s}=A;let o=!0;const i=ue(()=>{const A=e.getSelection();if(!A||o&&(null==A?void 0:A.isCollapsed))return;o=A.isCollapsed||!1;const i=[],a=A.rangeCount||0;for(let e=0;e<a;e++){const s=A.getRangeAt(e),{startContainer:o,startOffset:a,endContainer:c,endOffset:B}=s;xA(o,r,n,!0)||xA(c,r,n,!0)||i.push({start:t.getId(o),startOffset:a,end:t.getId(c),endOffset:B})}s({ranges:i})});return i(),HA("selectionchange",i)}(A),h=function({doc:A,customElementCb:e}){const t=A.defaultView;return t&&t.customElements?KA(t.customElements,"define",function(A){return function(t,r,n){try{e({define:{name:t}})}catch(A){console.warn(`Custom element callback failed for ${t}`)}return A.apply(this,[t,r,n])}}):()=>{}}(A),w=[];for(const e of A.plugins)w.push(e.observer(e.callback,t,e.options));return ue(()=>{ge.forEach(A=>A.reset()),null==r||r.disconnect(),n(),s(),o(),i(),a(),c(),B(),l(),u(),g(),d(),h(),w.forEach(A=>A())})}function ye(A){return void 0!==window[A]}function Ie(A){return Boolean(void 0!==window[A]&&window[A].prototype&&"insertRule"in window[A].prototype&&"deleteRule"in window[A].prototype)}class Ee{constructor(A){this.generateIdFn=A,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(A,e,t,r){const n=t||this.getIdToRemoteIdMap(A),s=r||this.getRemoteIdToIdMap(A);let o=n.get(e);return o||(o=this.generateIdFn(),n.set(e,o),s.set(o,e)),o}getIds(A,e){const t=this.getIdToRemoteIdMap(A),r=this.getRemoteIdToIdMap(A);return e.map(e=>this.getId(A,e,t,r))}getRemoteId(A,e,t){const r=t||this.getRemoteIdToIdMap(A);if("number"!=typeof e)return e;const n=r.get(e);return n||-1}getRemoteIds(A,e){const t=this.getRemoteIdToIdMap(A);return e.map(e=>this.getRemoteId(A,e,t))}reset(A){if(!A)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(A),this.iframeRemoteIdToIdMap.delete(A)}getIdToRemoteIdMap(A){let e=this.iframeIdToRemoteIdMap.get(A);return e||(e=new Map,this.iframeIdToRemoteIdMap.set(A,e)),e}getRemoteIdToIdMap(A){let e=this.iframeRemoteIdToIdMap.get(A);return e||(e=new Map,this.iframeRemoteIdToIdMap.set(A,e)),e}}class He{constructor(A){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Ee(iA),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=A.mutationCb,this.wrappedEmit=A.wrappedEmit,this.stylesheetManager=A.stylesheetManager,this.recordCrossOriginIframes=A.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Ee(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=A.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(A){this.iframes.set(A,!0),A.contentWindow&&this.crossOriginIframeMap.set(A.contentWindow,A)}addLoadListener(A){this.loadListener=A}attachIframe(A,e){var t;this.mutationCb({adds:[{parentId:this.mirror.getId(A),nextId:null,node:e}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),null===(t=this.loadListener)||void 0===t||t.call(this,A),A.contentDocument&&A.contentDocument.adoptedStyleSheets&&A.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(A.contentDocument.adoptedStyleSheets,this.mirror.getId(A.contentDocument))}handleMessage(A){const e=A;if("rrweb"!==e.data.type||e.origin!==e.data.origin)return;if(!A.source)return;const t=this.crossOriginIframeMap.get(A.source);if(!t)return;const r=this.transformCrossOriginEvent(t,e.data.event);r&&this.wrappedEmit(r,e.data.isCheckout)}transformCrossOriginEvent(A,e){var t;switch(e.type){case ZA.FullSnapshot:{this.crossOriginIframeMirror.reset(A),this.crossOriginIframeStyleMirror.reset(A),this.replaceIdOnNode(e.data.node,A);const t=e.data.node.id;return this.crossOriginIframeRootIdMap.set(A,t),this.patchRootIdOnNode(e.data.node,t),{timestamp:e.timestamp,type:ZA.IncrementalSnapshot,data:{source:jA.Mutation,adds:[{parentId:this.mirror.getId(A),nextId:null,node:e.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case ZA.Meta:case ZA.Load:case ZA.DomContentLoaded:return!1;case ZA.Plugin:return e;case ZA.Custom:return this.replaceIds(e.data.payload,A,["id","parentId","previousId","nextId"]),e;case ZA.IncrementalSnapshot:switch(e.data.source){case jA.Mutation:return e.data.adds.forEach(e=>{this.replaceIds(e,A,["parentId","nextId","previousId"]),this.replaceIdOnNode(e.node,A);const t=this.crossOriginIframeRootIdMap.get(A);t&&this.patchRootIdOnNode(e.node,t)}),e.data.removes.forEach(e=>{this.replaceIds(e,A,["parentId","id"])}),e.data.attributes.forEach(e=>{this.replaceIds(e,A,["id"])}),e.data.texts.forEach(e=>{this.replaceIds(e,A,["id"])}),e;case jA.Drag:case jA.TouchMove:case jA.MouseMove:return e.data.positions.forEach(e=>{this.replaceIds(e,A,["id"])}),e;case jA.ViewportResize:return!1;case jA.MediaInteraction:case jA.MouseInteraction:case jA.Scroll:case jA.CanvasMutation:case jA.Input:return this.replaceIds(e.data,A,["id"]),e;case jA.StyleSheetRule:case jA.StyleDeclaration:return this.replaceIds(e.data,A,["id"]),this.replaceStyleIds(e.data,A,["styleId"]),e;case jA.Font:return e;case jA.Selection:return e.data.ranges.forEach(e=>{this.replaceIds(e,A,["start","end"])}),e;case jA.AdoptedStyleSheet:return this.replaceIds(e.data,A,["id"]),this.replaceStyleIds(e.data,A,["styleIds"]),null===(t=e.data.styles)||void 0===t||t.forEach(e=>{this.replaceStyleIds(e,A,["styleId"])}),e}}return!1}replace(A,e,t,r){for(const n of r)(Array.isArray(e[n])||"number"==typeof e[n])&&(Array.isArray(e[n])?e[n]=A.getIds(t,e[n]):e[n]=A.getId(t,e[n]));return e}replaceIds(A,e,t){return this.replace(this.crossOriginIframeMirror,A,e,t)}replaceStyleIds(A,e,t){return this.replace(this.crossOriginIframeStyleMirror,A,e,t)}replaceIdOnNode(A,e){this.replaceIds(A,e,["id","rootId"]),"childNodes"in A&&A.childNodes.forEach(A=>{this.replaceIdOnNode(A,e)})}patchRootIdOnNode(A,e){A.type===W.Document||A.rootId||(A.rootId=e),"childNodes"in A&&A.childNodes.forEach(A=>{this.patchRootIdOnNode(A,e)})}}class ve{constructor(A){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=A.mutationCb,this.scrollCb=A.scrollCb,this.bypassOptions=A.bypassOptions,this.mirror=A.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(A,e){if(!j(A))return;if(this.shadowDoms.has(A))return;this.shadowDoms.add(A);const t=he(Object.assign(Object.assign({},this.bypassOptions),{doc:e,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),A);this.restoreHandlers.push(()=>t.disconnect()),this.restoreHandlers.push(Qe(Object.assign(Object.assign({},this.bypassOptions),{scrollCb:this.scrollCb,doc:A,mirror:this.mirror}))),setTimeout(()=>{A.adoptedStyleSheets&&A.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(A.adoptedStyleSheets,this.mirror.getId(A.host)),this.restoreHandlers.push(Fe({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},A))},0)}observeAttachShadow(A){A.contentWindow&&A.contentDocument&&this.patchAttachShadow(A.contentWindow.Element,A.contentDocument)}patchAttachShadow(A,e){const t=this;this.restoreHandlers.push(KA(A.prototype,"attachShadow",function(A){return function(r){const n=A.call(this,r);return this.shadowRoot&&YA(this)&&t.addShadowRoot(this.shadowRoot,e),n}}))}reset(){this.restoreHandlers.forEach(A=>{try{A()}catch(A){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}
2
22
  /*! *****************************************************************************
3
23
  Copyright (c) Microsoft Corporation.
4
24
 
@@ -12,7 +32,7 @@
12
32
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
33
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
34
  PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */function Mt(e,t,n,o){return new(n||(n=Promise))(function(t,r){function s(e){try{a(o.next(e))}catch(e){r(e)}}function i(e){try{a(o.throw(e))}catch(e){r(e)}}function a(e){var o;e.done?t(e.value):(o=e.value,o instanceof n?o:new n(function(e){e(o)})).then(s,i)}a((o=o.apply(e,[])).next())})}for(var Tt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ot="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Et=0;Et<64;Et++)Ot[Tt.charCodeAt(Et)]=Et;const Dt=new Map;const Rt=(e,t,n)=>{if(!e||!Nt(e,t)&&"object"!=typeof e)return;const o=function(e,t){let n=Dt.get(e);return n||(n=new Map,Dt.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}(n,e.constructor.name);let r=o.indexOf(e);return-1===r&&(r=o.length,o.push(e)),r};function xt(e,t,n){if(e instanceof Array)return e.map(e=>xt(e,t,n));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){const t=e.constructor.name,n=function(e){var t,n=new Uint8Array(e),o=n.length,r="";for(t=0;t<o;t+=3)r+=Tt[n[t]>>2],r+=Tt[(3&n[t])<<4|n[t+1]>>4],r+=Tt[(15&n[t+1])<<2|n[t+2]>>6],r+=Tt[63&n[t+2]];return o%3==2?r=r.substring(0,r.length-1)+"=":o%3==1&&(r=r.substring(0,r.length-2)+"=="),r}(e);return{rr_type:t,base64:n}}if(e instanceof DataView){return{rr_type:e.constructor.name,args:[xt(e.buffer,t,n),e.byteOffset,e.byteLength]}}if(e instanceof HTMLImageElement){const t=e.constructor.name,{src:n}=e;return{rr_type:t,src:n}}if(e instanceof HTMLCanvasElement){return{rr_type:"HTMLImageElement",src:e.toDataURL()}}if(e instanceof ImageData){return{rr_type:e.constructor.name,args:[xt(e.data,t,n),e.width,e.height]}}if(Nt(e,t)||"object"==typeof e){return{rr_type:e.constructor.name,index:Rt(e,t,n)}}return e}const Lt=(e,t,n)=>e.map(e=>xt(e,t,n)),Nt=(e,t)=>{const n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof t[e]);return Boolean(n.find(n=>e instanceof t[n]))};function At(e,t,n,o){const r=[];try{const s=Ee(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(r,...s){if(!Ae(this,t,n,!0)){const e=function(e){return"experimental-webgl"===e?"webgl":e}(r);if("__context"in this||(this.__context=e),o&&["webgl","webgl2"].includes(e))if(s[0]&&"object"==typeof s[0]){const e=s[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else s.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[r,...s])}});r.push(s)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{r.forEach(e=>e())}}function _t(e,t,n,o,r,s,i){const a=[],c=Object.getOwnPropertyNames(e);for(const s of c)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(s))try{if("function"!=typeof e[s])continue;const c=Ee(e,s,function(e){return function(...a){const c=e.apply(this,a);if(Rt(c,i,this),"tagName"in this.canvas&&!Ae(this.canvas,o,r,!0)){const e=Lt(a,i,this),o={type:t,property:s,args:e};n(this.canvas,o)}return c}});a.push(c)}catch(o){const r=Oe(e,s,{set(e){n(this.canvas,{type:t,property:s,args:[e],setter:!0})}});a.push(r)}return a}var Ft,Pt,jt=(Ft=function(){!function(){
35
+ ***************************************************************************** */function be(A,e,t,r){return new(t||(t=Promise))(function(e,n){function s(A){try{i(r.next(A))}catch(A){n(A)}}function o(A){try{i(r.throw(A))}catch(A){n(A)}}function i(A){var r;A.done?e(A.value):(r=A.value,r instanceof t?r:new t(function(A){A(r)})).then(s,o)}i((r=r.apply(A,[])).next())})}for(var Se="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Le="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Ke=0;Ke<64;Ke++)Le[Se.charCodeAt(Ke)]=Ke;const De=new Map;const Me=(A,e,t)=>{if(!A||!Oe(A,e)&&"object"!=typeof A)return;const r=function(A,e){let t=De.get(A);return t||(t=new Map,De.set(A,t)),t.has(e)||t.set(e,[]),t.get(e)}(t,A.constructor.name);let n=r.indexOf(A);return-1===n&&(n=r.length,r.push(A)),n};function ke(A,e,t){if(A instanceof Array)return A.map(A=>ke(A,e,t));if(null===A)return A;if(A instanceof Float32Array||A instanceof Float64Array||A instanceof Int32Array||A instanceof Uint32Array||A instanceof Uint8Array||A instanceof Uint16Array||A instanceof Int16Array||A instanceof Int8Array||A instanceof Uint8ClampedArray){return{rr_type:A.constructor.name,args:[Object.values(A)]}}if(A instanceof ArrayBuffer){const e=A.constructor.name,t=function(A){var e,t=new Uint8Array(A),r=t.length,n="";for(e=0;e<r;e+=3)n+=Se[t[e]>>2],n+=Se[(3&t[e])<<4|t[e+1]>>4],n+=Se[(15&t[e+1])<<2|t[e+2]>>6],n+=Se[63&t[e+2]];return r%3==2?n=n.substring(0,n.length-1)+"=":r%3==1&&(n=n.substring(0,n.length-2)+"=="),n}(A);return{rr_type:e,base64:t}}if(A instanceof DataView){return{rr_type:A.constructor.name,args:[ke(A.buffer,e,t),A.byteOffset,A.byteLength]}}if(A instanceof HTMLImageElement){const e=A.constructor.name,{src:t}=A;return{rr_type:e,src:t}}if(A instanceof HTMLCanvasElement){return{rr_type:"HTMLImageElement",src:A.toDataURL()}}if(A instanceof ImageData){return{rr_type:A.constructor.name,args:[ke(A.data,e,t),A.width,A.height]}}if(Oe(A,e)||"object"==typeof A){return{rr_type:A.constructor.name,index:Me(A,e,t)}}return A}const Te=(A,e,t)=>A.map(A=>ke(A,e,t)),Oe=(A,e)=>{const t=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(A=>"function"==typeof e[A]);return Boolean(t.find(t=>A instanceof e[t]))};function xe(A,e,t,r){const n=[];try{const s=KA(A.HTMLCanvasElement.prototype,"getContext",function(A){return function(n,...s){if(!xA(this,e,t,!0)){const A=function(A){return"experimental-webgl"===A?"webgl":A}(n);if("__context"in this||(this.__context=A),r&&["webgl","webgl2"].includes(A))if(s[0]&&"object"==typeof s[0]){const A=s[0];A.preserveDrawingBuffer||(A.preserveDrawingBuffer=!0)}else s.splice(0,1,{preserveDrawingBuffer:!0})}return A.apply(this,[n,...s])}});n.push(s)}catch(A){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{n.forEach(A=>A())}}function Re(A,e,t,r,n,s,o){const i=[],a=Object.getOwnPropertyNames(A);for(const s of a)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(s))try{if("function"!=typeof A[s])continue;const a=KA(A,s,function(A){return function(...i){const a=A.apply(this,i);if(Me(a,o,this),"tagName"in this.canvas&&!xA(this.canvas,r,n,!0)){const A=Te(i,o,this),r={type:e,property:s,args:A};t(this.canvas,r)}return a}});i.push(a)}catch(r){const n=LA(A,s,{set(A){t(this.canvas,{type:e,property:s,args:[A],setter:!0})}});i.push(n)}return i}var Ne,Ge,Ve=(Ne=function(){!function(){
16
36
  /*! *****************************************************************************
17
37
  Copyright (c) Microsoft Corporation.
18
38
 
@@ -27,5 +47,5 @@
27
47
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
28
48
  PERFORMANCE OF THIS SOFTWARE.
29
49
  ***************************************************************************** */
30
- function e(e,t,n,o){return new(n||(n=Promise))(function(t,r){function s(e){try{a(o.next(e))}catch(e){r(e)}}function i(e){try{a(o.throw(e))}catch(e){r(e)}}function a(e){var o;e.done?t(e.value):(o=e.value,o instanceof n?o:new n(function(e){e(o)})).then(s,i)}a((o=o.apply(e,[])).next())})}for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="undefined"==typeof Uint8Array?[]:new Uint8Array(256),o=0;o<64;o++)n[t.charCodeAt(o)]=o;var r=function(e){var n,o=new Uint8Array(e),r=o.length,s="";for(n=0;n<r;n+=3)s+=t[o[n]>>2],s+=t[(3&o[n])<<4|o[n+1]>>4],s+=t[(15&o[n+1])<<2|o[n+2]>>6],s+=t[63&o[n+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const s=new Map,i=new Map,a=self;a.onmessage=function(t){return e(this,0,void 0,function*(){if(!("OffscreenCanvas"in globalThis))return a.postMessage({id:t.data.id});{const{id:n,bitmap:o,width:c,height:l,dataURLOptions:d}=t.data,u=function(t,n,o){return e(this,0,void 0,function*(){const e=`${t}-${n}`;if("OffscreenCanvas"in globalThis){if(i.has(e))return i.get(e);const s=new OffscreenCanvas(t,n);s.getContext("2d");const a=yield s.convertToBlob(o),c=yield a.arrayBuffer(),l=r(c);return i.set(e,l),l}return""})}(c,l,d),h=new OffscreenCanvas(c,l);h.getContext("2d").drawImage(o,0,0),o.close();const p=yield h.convertToBlob(d),m=p.type,f=yield p.arrayBuffer(),g=r(f);if(!s.has(n)&&(yield u)===g)return s.set(n,g),a.postMessage({id:n});if(s.get(n)===g)return a.postMessage({id:n});a.postMessage({id:n,type:m,base64:g,width:c,height:l}),s.set(n,g)}})}}()},function(e){return Pt=Pt||function(e){var t=function(e){var t=e.toString().split("\n");t.pop(),t.shift();for(var n=t[0].search(/\S/),o=/(['"])__worker_loader_strict__(['"])/g,r=0,s=t.length;r<s;++r)t[r]=t[r].substring(n).replace(o,"$1use strict$2")+"\n";return t}(e),n=new Blob(t,{type:"application/javascript"});return URL.createObjectURL(n)}(Ft),new Worker(Pt,e)});class Wt{reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,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:n,blockClass:o,blockSelector:r,recordCanvas:s,dataURLOptions:i}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,s&&"all"===t&&this.initCanvasMutationObserver(n,o,r),s&&"number"==typeof t&&this.initCanvasFPSObserver(t,n,o,r,{dataURLOptions:i})}initCanvasFPSObserver(e,t,n,o,r){const s=At(t,n,o,!0),i=new Map,a=new jt;a.onmessage=e=>{const{id:t}=e.data;if(i.set(t,!1),!("base64"in e.data))return;const{base64:n,type:o,width:r,height:s}=e.data;this.mutationCb({id:t,type:Ke["2D"],commands:[{property:"clearRect",args:[0,0,r,s]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:o}]},0,0]}]})};const c=1e3/e;let l,d=0;const u=e=>{d&&e-d<c||(d=e,(()=>{const e=[];return t.document.querySelectorAll("canvas").forEach(t=>{Ae(t,n,o,!0)||e.push(t)}),e})().forEach(e=>Mt(this,0,void 0,function*(){var t;const n=this.mirror.getId(e);if(i.get(n))return;if(0===e.width||0===e.height)return;if(i.set(n,!0),["webgl","webgl2"].includes(e.__context)){const n=e.getContext(e.__context);!1===(null===(t=null==n?void 0:n.getContextAttributes())||void 0===t?void 0:t.preserveDrawingBuffer)&&n.clear(n.COLOR_BUFFER_BIT)}const o=yield createImageBitmap(e);a.postMessage({id:n,bitmap:o,width:e.width,height:e.height,dataURLOptions:r.dataURLOptions},[o])}))),l=requestAnimationFrame(u)};l=requestAnimationFrame(u),this.resetObservers=()=>{s(),cancelAnimationFrame(l)}}initCanvasMutationObserver(e,t,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const o=At(e,t,n,!1),r=function(e,t,n,o){const r=[],s=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const i of s)try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[i])continue;const s=Ee(t.CanvasRenderingContext2D.prototype,i,function(r){return function(...s){return Ae(this.canvas,n,o,!0)||setTimeout(()=>{const n=Lt(s,t,this);e(this.canvas,{type:Ke["2D"],property:i,args:n})},0),r.apply(this,s)}});r.push(s)}catch(n){const o=Oe(t.CanvasRenderingContext2D.prototype,i,{set(t){e(this.canvas,{type:Ke["2D"],property:i,args:[t],setter:!0})}});r.push(o)}return()=>{r.forEach(e=>e())}}(this.processMutation.bind(this),e,t,n),s=function(e,t,n,o){const r=[];return r.push(..._t(t.WebGLRenderingContext.prototype,Ke.WebGL,e,n,o,0,t)),void 0!==t.WebGL2RenderingContext&&r.push(..._t(t.WebGL2RenderingContext.prototype,Ke.WebGL2,e,n,o,0,t)),()=>{r.forEach(e=>e())}}(this.processMutation.bind(this),e,t,n,this.mirror);this.resetObservers=()=>{o(),r(),s()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{const n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;const n=this.pendingCanvasMutations.get(e);if(!n||-1===t)return;const o=n.map(e=>{const t=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["type"]);return t}),{type:r}=n[0];this.mutationCb({id:t,type:r,commands:o}),this.pendingCanvasMutations.delete(e)}}class Ut{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new Be,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 n={id:t,styleIds:[]},o=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),o.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:X(e),index:t}))})),n.styleIds.push(e)}o.length>0&&(n.styles=o),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class Bt{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){requestAnimationFrame(()=>{this.clear(),this.loop&&this.periodicallyClear()})}inOtherBuffer(e,t){const n=this.nodeMap.get(e);return n&&Array.from(n).some(e=>e!==t)}add(e,t){this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}function Ht(e){return Object.assign(Object.assign({},e),{timestamp:De()})}let zt,qt,$t,Vt=!1;const Gt=new K;function Xt(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:o,blockClass:r="rr-block",blockSelector:s=null,ignoreClass:i="rr-ignore",ignoreSelector:a=null,maskTextClass:c="rr-mask",maskTextSelector:l=null,inlineStylesheet:d=!0,maskAllInputs:u,maskInputOptions:h,slimDOMOptions:p,maskInputFn:m,maskTextFn:f,hooks:g,packFn:v,sampling:y={},dataURLOptions:S={},mousemoveWait:b,recordDOM:w=!0,recordCanvas:k=!1,recordCrossOriginIframes:I=!1,recordAfter:C=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:M=!1,collectFonts:T=!1,inlineImages:O=!1,plugins:E,keepIframeSrcFn:D=()=>!1,ignoreCSSAttributes:R=new Set([]),errorHandler:x}=e;it(x);const L=!I||window.parent===window;let N=!1;if(!L)try{window.parent.document&&(N=!1)}catch(e){N=!0}if(L&&!t)throw new Error("emit function is required");void 0!==b&&void 0===y.mousemove&&(y.mousemove=b),Gt.reset();const A=!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!==h?h:{password:!0},_=!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}:p||{};let F;!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),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let P=0;const j=e=>{for(const t of E||[])t.eventProcessor&&(e=t.eventProcessor(e));return v&&!N&&(e=v(e)),e};zt=(e,r)=>{var s;if(!(null===(s=lt[0])||void 0===s?void 0:s.isFrozen())||e.type===$e.FullSnapshot||e.type===$e.IncrementalSnapshot&&e.data.source===Ve.Mutation||lt.forEach(e=>e.unfreeze()),L)null==t||t(j(e),r);else if(N){const t={type:"rrweb",event:j(e),origin:window.location.origin,isCheckout:r};window.parent.postMessage(t,"*")}if(e.type===$e.FullSnapshot)F=e,P=0;else if(e.type===$e.IncrementalSnapshot){if(e.data.source===Ve.Mutation&&e.data.isAttachIframe)return;P++;const t=o&&P>=o,r=n&&e.timestamp-F.timestamp>n;(t||r)&&qt(!0)}};const W=e=>{zt(Ht({type:$e.IncrementalSnapshot,data:Object.assign({source:Ve.Mutation},e)}))},U=e=>zt(Ht({type:$e.IncrementalSnapshot,data:Object.assign({source:Ve.Scroll},e)})),B=e=>zt(Ht({type:$e.IncrementalSnapshot,data:Object.assign({source:Ve.CanvasMutation},e)})),H=new Ut({mutationCb:W,adoptedStyleSheetCb:e=>zt(Ht({type:$e.IncrementalSnapshot,data:Object.assign({source:Ve.AdoptedStyleSheet},e)}))}),z=new It({mirror:Gt,mutationCb:W,stylesheetManager:H,recordCrossOriginIframes:I,wrappedEmit:zt});for(const e of E||[])e.getMirror&&e.getMirror({nodeMirror:Gt,crossOriginIframeMirror:z.crossOriginIframeMirror,crossOriginIframeStyleMirror:z.crossOriginIframeStyleMirror});const q=new Bt;$t=new Wt({recordCanvas:k,mutationCb:B,win:window,blockClass:r,blockSelector:s,mirror:Gt,sampling:y.canvas,dataURLOptions:S});const $=new Ct({mutationCb:W,scrollCb:U,bypassOptions:{blockClass:r,blockSelector:s,maskTextClass:c,maskTextSelector:l,inlineStylesheet:d,maskInputOptions:A,dataURLOptions:S,maskTextFn:f,maskInputFn:m,recordCanvas:k,inlineImages:O,sampling:y,slimDOMOptions:_,iframeManager:z,stylesheetManager:H,canvasManager:$t,keepIframeSrcFn:D,processedNodeManager:q},mirror:Gt});qt=(e=!1)=>{if(!w)return;zt(Ht({type:$e.Meta,data:{href:window.location.href,width:Le(),height:xe()}}),e),H.reset(),$.init(),lt.forEach(e=>e.lock());const t=function(e,t){const{mirror:n=new K,blockClass:o="rr-block",blockSelector:r=null,maskTextClass:s="rr-mask",maskTextSelector:i=null,inlineStylesheet:a=!0,inlineImages:c=!1,recordCanvas:l=!1,maskAllInputs:d=!1,maskTextFn:u,maskInputFn:h,slimDOM:p=!1,dataURLOptions:m,preserveWhiteSpace:f,onSerialize:g,onIframeLoad:v,iframeLoadTimeout:y,onStylesheetLoad:S,stylesheetLoadTimeout:b,keepIframeSrcFn:w=()=>!1}=t||{};return ke(e,{doc:e,mirror:n,blockClass:o,blockSelector:r,maskTextClass:s,maskTextSelector:i,skipChild:!1,inlineStylesheet:a,maskInputOptions:!0===d?{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===d?{password:!0}:d,maskTextFn:u,maskInputFn:h,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:c,recordCanvas:l,preserveWhiteSpace:f,onSerialize:g,onIframeLoad:v,iframeLoadTimeout:y,onStylesheetLoad:S,stylesheetLoadTimeout:b,keepIframeSrcFn:w,newlyAddedElement:!1})}(document,{mirror:Gt,blockClass:r,blockSelector:s,maskTextClass:c,maskTextSelector:l,inlineStylesheet:d,maskAllInputs:A,maskTextFn:f,slimDOM:_,dataURLOptions:S,recordCanvas:k,inlineImages:O,onSerialize:e=>{je(e,Gt)&&z.addIframe(e),We(e,Gt)&&H.trackLinkElement(e),Ue(e)&&$.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{z.attachIframe(e,t),$.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{H.attachLinkElement(e,t)},keepIframeSrcFn:D});if(!t)return console.warn("Failed to snapshot the document");zt(Ht({type:$e.FullSnapshot,data:{node:t,initialOffset:Re(window)}}),e),lt.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&H.adoptStyleSheets(document.adoptedStyleSheets,Gt.getId(document))};try{const e=[],t=e=>{var t;return ct(St)({mutationCb:W,mousemoveCb:(e,t)=>zt(Ht({type:$e.IncrementalSnapshot,data:{source:t,positions:e}})),mouseInteractionCb:e=>zt(Ht({type:$e.IncrementalSnapshot,data:Object.assign({source:Ve.MouseInteraction},e)})),scrollCb:U,viewportResizeCb:e=>zt(Ht({type:$e.IncrementalSnapshot,data:Object.assign({source:Ve.ViewportResize},e)})),inputCb:e=>zt(Ht({type:$e.IncrementalSnapshot,data:Object.assign({source:Ve.Input},e)})),mediaInteractionCb:e=>zt(Ht({type:$e.IncrementalSnapshot,data:Object.assign({source:Ve.MediaInteraction},e)})),styleSheetRuleCb:e=>zt(Ht({type:$e.IncrementalSnapshot,data:Object.assign({source:Ve.StyleSheetRule},e)})),styleDeclarationCb:e=>zt(Ht({type:$e.IncrementalSnapshot,data:Object.assign({source:Ve.StyleDeclaration},e)})),canvasMutationCb:B,fontCb:e=>zt(Ht({type:$e.IncrementalSnapshot,data:Object.assign({source:Ve.Font},e)})),selectionCb:e=>{zt(Ht({type:$e.IncrementalSnapshot,data:Object.assign({source:Ve.Selection},e)}))},customElementCb:e=>{zt(Ht({type:$e.IncrementalSnapshot,data:Object.assign({source:Ve.CustomElement},e)}))},blockClass:r,ignoreClass:i,ignoreSelector:a,maskTextClass:c,maskTextSelector:l,maskInputOptions:A,inlineStylesheet:d,sampling:y,recordDOM:w,recordCanvas:k,inlineImages:O,userTriggeredOnInput:M,collectFonts:T,doc:e,maskInputFn:m,maskTextFn:f,keepIframeSrcFn:D,blockSelector:s,slimDOMOptions:_,dataURLOptions:S,mirror:Gt,iframeManager:z,stylesheetManager:H,shadowDomManager:$,processedNodeManager:q,canvasManager:$t,ignoreCSSAttributes:R,plugins:(null===(t=null==E?void 0:E.filter(e=>e.observer))||void 0===t?void 0:t.map(e=>({observer:e.observer,options:e.options,callback:t=>zt(Ht({type:$e.Plugin,data:{plugin:e.name,payload:t}}))})))||[]},g)};z.addLoadListener(n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}});const n=()=>{qt(),e.push(t(document)),Vt=!0};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(Ie("DOMContentLoaded",()=>{zt(Ht({type:$e.DomContentLoaded,data:{}})),"DOMContentLoaded"===C&&n()})),e.push(Ie("load",()=>{zt(Ht({type:$e.Load,data:{}})),"load"===C&&n()},window))),()=>{e.forEach(e=>e()),q.destroy(),Vt=!1,at()}}catch(e){console.warn(e)}}Xt.addCustomEvent=(e,t)=>{if(!Vt)throw new Error("please add custom event after start recording");zt(Ht({type:$e.Custom,data:{tag:e,payload:t}}))},Xt.freezePage=()=>{lt.forEach(e=>e.freeze())},Xt.takeFullSnapshot=e=>{if(!Vt)throw new Error("please take full snapshot after start recording");qt(e)},Xt.mirror=Gt;class Kt{constructor(e,t,n){this.stopFn=null,this.events=[],this.onEventsReady=null,this.flushInterval=null,this.hasFullSnapshot=!1,this.sessionId=e,this.config=t,this.onEventsReady=n}start(){if(this.config.enabled)if(this.stopFn)console.warn("[RRWeb] Recording already started");else try{this.stopFn=Xt({emit:e=>{this.events.push(e),2===e.type?(this.hasFullSnapshot=!0,this.flush()):this.hasFullSnapshot&&this.events.length>=50&&this.flush()},sampling:{mousemove:void 0===this.config.sampleRate||Math.floor(100/this.config.sampleRate),mouseInteraction:!0,scroll:150,media:800,input:"last"},checkoutEveryNms:this.config.checkoutEveryNms||3e5,checkoutEveryNth:this.config.checkoutEveryNth||200,blockClass:this.config.blockClass||"rr-block",ignoreClass:this.config.ignoreClass||"rr-ignore",maskAllInputs:void 0===this.config.maskAllInputs||this.config.maskAllInputs,maskInputOptions:this.config.maskInputOptions||{password:!0,email:!0,tel:!0},maskTextClass:"rr-mask",inlineStylesheet:void 0===this.config.inlineStylesheet||this.config.inlineStylesheet,recordCanvas:this.config.recordCanvas||!1,collectFonts:void 0===this.config.collectFonts||this.config.collectFonts,recordCrossOriginIframes:!1}),this.flushInterval=window.setInterval(()=>{this.hasFullSnapshot&&this.events.length>0&&this.flush()},1e4),setTimeout(()=>{if(!this.hasFullSnapshot)try{Xt.takeFullSnapshot()}catch(e){this.events.length>0&&(this.hasFullSnapshot=!0,this.flush())}},2e3)}catch(e){console.error("[RRWeb] Failed to start recording:",e)}else console.log("[RRWeb] Recording disabled in config")}stop(){this.stopFn&&(this.stopFn(),this.stopFn=null),this.flushInterval&&(clearInterval(this.flushInterval),this.flushInterval=null),this.events.length>0&&this.flush()}flush(){if(0===this.events.length)return;const e=[...this.events];this.events=[],this.onEventsReady&&this.onEventsReady(e)}getEventCount(){return this.events.length}isRecording(){return null!==this.stopFn}}class Yt{constructor(e){this.config=e,this.queue=[],this.flushInterval=null,this.maxQueueSize=50,this.flushIntervalMs=5e3,this.apiUrl=e.apiUrl||"https://api.devskin.com",this.startPeriodicFlush(),"undefined"!=typeof window&&(window.addEventListener("beforeunload",()=>{this.flush()}),window.addEventListener("visibilitychange",()=>{document.hidden&&this.flush(!0)}))}sendEvent(e){this.enqueue("event",e)}identifyUser(e){this.sendToBackend("/v1/analytics/identify",e)}startSession(e){this.sendToBackend("/v1/analytics/session",e)}sendError(e){this.enqueue("error",e)}sendNetworkRequest(e){this.enqueue("network",e)}sendPerformanceMetric(e){this.enqueue("performance",e)}sendRecordingEvents(e,n){return t(this,void 0,void 0,function*(){const t={session_id:e,events:n,timestamp:(new Date).toISOString(),apiKey:this.config.apiKey,appId:this.config.appId},o=new Blob([JSON.stringify(t)]).size,r=n.some(e=>2===e.type),s=r?3:1;let i=null;for(let t=1;t<=s;t++)try{return void(o>1e5?yield this.sendToBackendXHR("/v1/rum/recordings",{session_id:e,events:n,timestamp:(new Date).toISOString()}):yield this.sendToBackend("/v1/rum/recordings",{session_id:e,events:n,timestamp:(new Date).toISOString()}))}catch(e){if(i=e,t<s){const e=1e3*t;yield new Promise(t=>setTimeout(t,e))}}this.config.debug&&console.error(`[DevSkin SDK] Failed to send recording events after ${s} attempts:`,i)})}sendHeatmapData(e){this.enqueue("heatmap",e)}flush(e=!1){if(0===this.queue.length)return;const t=[...this.queue];this.queue=[];const n={};t.forEach(e=>{n[e.type]||(n[e.type]=[]),n[e.type].push(e.data)}),Object.entries(n).forEach(([t,n])=>{const o=this.getEndpointForType(t);this.sendToBackend(o,{[t+"s"]:n},e)}),this.config.debug&&console.log(`[DevSkin] Flushed ${t.length} items to backend`)}enqueue(e,t){this.queue.push({type:e,data:t,timestamp:Date.now()}),this.queue.length>=this.maxQueueSize&&this.flush()}startPeriodicFlush(){this.flushInterval=setInterval(()=>{this.flush()},this.flushIntervalMs)}getEndpointForType(e){switch(e){case"event":default:return"/v1/analytics/events";case"error":return"/v1/analytics/errors";case"network":return"/v1/analytics/network";case"performance":return"/v1/analytics/performance";case"heatmap":return"/v1/sdk/heatmap"}}sendToBackendXHR(e,n){return t(this,void 0,void 0,function*(){const t=`${this.apiUrl}${e}`,o=Object.assign(Object.assign({},n),{apiKey:this.config.apiKey,appId:this.config.appId,environment:this.config.environment,release:this.config.release});if(this.config.beforeSend){if(!this.config.beforeSend(o))return}return new Promise((n,r)=>{const s=new XMLHttpRequest;s.open("POST",t,!0),s.setRequestHeader("Content-Type","application/json"),s.setRequestHeader("Authorization",`Bearer ${this.config.apiKey}`),s.onload=()=>{s.status>=200&&s.status<300?(this.config.debug&&console.log("[DevSkin] Data sent successfully via XHR:",e),n()):(console.error("[DevSkin] XHR HTTP Error:",s.status,s.responseText),r(new Error(`HTTP ${s.status}: ${s.statusText}`)))},s.onerror=()=>{console.error("[DevSkin] XHR network error:",e),r(new Error("Network error"))},s.ontimeout=()=>{console.error("[DevSkin] XHR timeout:",e),r(new Error("Request timeout"))},s.timeout=3e4;try{const e=JSON.stringify(o);s.send(e)}catch(e){console.error("[DevSkin] Failed to send XHR request:",e),r(e)}})})}sendToBackend(e,n){return t(this,arguments,void 0,function*(e,t,n=!1){const o=`${this.apiUrl}${e}`,r=Object.assign(Object.assign({},t),{apiKey:this.config.apiKey,appId:this.config.appId,environment:this.config.environment,release:this.config.release});if(this.config.beforeSend){if(!this.config.beforeSend(r))return}if(n&&navigator.sendBeacon){const e=new Blob([JSON.stringify(r)],{type:"application/json"});return void navigator.sendBeacon(o,e)}try{const t=yield fetch(o,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.config.apiKey}`},body:JSON.stringify(r),keepalive:!0});if(!t.ok){const e=yield t.text();throw console.error("[DevSkin] HTTP Error:",t.status,e),new Error(`HTTP ${t.status}: ${t.statusText}`)}this.config.debug&&console.log("[DevSkin] Data sent successfully:",e)}catch(t){throw console.error("[DevSkin] Failed to send data to",e,":",t),t}})}destroy(){this.flushInterval&&(clearInterval(this.flushInterval),this.flushInterval=null),this.flush()}}return new class{constructor(){this.config=null,this.transport=null,this.sessionId=null,this.userId=null,this.anonymousId=null,this.sessionStartTime=0,this.initialized=!1,this.deviceCollector=null,this.locationCollector=null,this.browserCollector=null,this.performanceCollector=null,this.errorCollector=null,this.networkCollector=null,this.heatmapCollector=null,this.rrwebRecorder=null}init(t){var r,s,i,a;if(this.initialized)return void console.warn("[DevSkin] SDK already initialized");this.config=Object.assign({debug:!1,captureWebVitals:!0,captureNetworkRequests:!0,captureErrors:!0,captureUserAgent:!0,captureLocation:!0,captureDevice:!0,heatmapOptions:{enabled:!0,trackClicks:!0,trackScroll:!0,trackMouseMovement:!1}},t),this.config.debug&&console.log("[DevSkin] Initializing SDK with config:",this.config),this.transport=new Yt(this.config),this.anonymousId=this.getOrCreateAnonymousId(),this.deviceCollector=new e(this.config),this.locationCollector=new n(this.config),this.browserCollector=new o(this.config),this.startSession(),this.config.captureWebVitals&&(this.performanceCollector=new B(this.config,this.transport),this.performanceCollector.start()),this.config.captureErrors&&(this.errorCollector=new H(this.config,this.transport),this.errorCollector.start()),this.config.captureNetworkRequests&&(this.networkCollector=new z(this.config,this.transport),this.networkCollector.start());if((null===(r=this.config.heatmapOptions)||void 0===r?void 0:r.enabled)||(null===(s=this.config.sessionRecording)||void 0===s?void 0:s.enabled)){const e=Object.assign({enabled:!0,trackClicks:!0,trackScroll:!0,trackMouseMovement:!0,mouseMoveSampling:.05},this.config.heatmapOptions);this.config.heatmapOptions=e,this.heatmapCollector=new q(this.config,this.transport),this.heatmapCollector.start(),this.config.debug&&console.log("[DevSkin] Heatmap collection enabled",(null===(i=this.config.sessionRecording)||void 0===i?void 0:i.enabled)?"(auto-enabled with session recording)":"")}(null===(a=this.config.sessionRecording)||void 0===a?void 0:a.enabled)&&(this.rrwebRecorder=new Kt(this.sessionId,{enabled:!0,sampleRate:this.config.sessionRecording.sampling||.5,blockClass:"rr-block",ignoreClass:this.config.sessionRecording.ignoreClass||"rr-ignore",maskAllInputs:void 0===this.config.sessionRecording.maskAllInputs||this.config.sessionRecording.maskAllInputs,maskInputOptions:{password:!0,email:!0,tel:!0},recordCanvas:this.config.sessionRecording.recordCanvas||!1,collectFonts:!0,inlineStylesheet:!0,checkoutEveryNms:3e5,checkoutEveryNth:200},e=>{var t;null===(t=this.transport)||void 0===t||t.sendRecordingEvents(this.sessionId,e)}),setTimeout(()=>{var e,t;null===(e=this.rrwebRecorder)||void 0===e||e.start(),(null===(t=this.config)||void 0===t?void 0:t.debug)&&console.log("[DevSkin] RRWeb recording started for session:",this.sessionId)},500)),this.trackPageView(),this.setupVisibilityTracking(),this.setupUnloadTracking(),this.initialized=!0,this.config.debug&&console.log("[DevSkin] SDK initialized successfully")}track(e,t){var n,o;if(!this.initialized)return void console.warn("[DevSkin] SDK not initialized. Call init() first.");const r={event_name:e,event_type:"track",timestamp:(new Date).toISOString(),session_id:this.sessionId,user_id:this.userId||void 0,anonymous_id:this.anonymousId||void 0,properties:Object.assign(Object.assign({},t),this.getContextData()),page_url:window.location.href,page_title:document.title};null===(n=this.transport)||void 0===n||n.sendEvent(r),(null===(o=this.config)||void 0===o?void 0:o.debug)&&console.log("[DevSkin] Event tracked:",r)}trackPageView(e){this.track("page_view",Object.assign({path:window.location.pathname,search:window.location.search,hash:window.location.hash,referrer:document.referrer},e))}identify(e,t){var n,o;if(!this.initialized)return void console.warn("[DevSkin] SDK not initialized. Call init() first.");this.userId=e;const r={user_id:e,anonymous_id:this.anonymousId||void 0,traits:Object.assign(Object.assign({},t),this.getContextData()),session_id:this.sessionId,timestamp:(new Date).toISOString()};null===(n=this.transport)||void 0===n||n.identifyUser(r),(null===(o=this.config)||void 0===o?void 0:o.debug)&&console.log("[DevSkin] User identified:",r)}captureError(e,t){var n;this.initialized?null===(n=this.errorCollector)||void 0===n||n.captureError(e,Object.assign(Object.assign({},t),{session_id:this.sessionId,user_id:this.userId||void 0})):console.warn("[DevSkin] SDK not initialized. Call init() first.")}addBreadcrumb(e){var t;this.initialized&&(null===(t=this.errorCollector)||void 0===t||t.addBreadcrumb(e))}startRecording(){var e;null===(e=this.rrwebRecorder)||void 0===e||e.start()}stopRecording(){var e;null===(e=this.rrwebRecorder)||void 0===e||e.stop()}optOut(){localStorage.setItem("devskin_opt_out","true"),this.initialized=!1}optIn(){localStorage.removeItem("devskin_opt_out")}startSession(){var e;this.sessionId=this.generateId(),this.sessionStartTime=Date.now();const t=Object.assign({session_id:this.sessionId,user_id:this.userId||void 0,anonymous_id:this.anonymousId,started_at:(new Date).toISOString()},this.getContextData());null===(e=this.transport)||void 0===e||e.startSession(t)}getContextData(){const e={};return this.deviceCollector&&(e.device=this.deviceCollector.collect()),this.browserCollector&&(e.browser=this.browserCollector.collect()),this.locationCollector&&(e.location=this.locationCollector.collect()),e}getOrCreateAnonymousId(){let e=localStorage.getItem("devskin_anonymous_id");return e||(e=this.generateId(),localStorage.setItem("devskin_anonymous_id",e)),e}generateId(){return`${Date.now()}-${Math.random().toString(36).substr(2,9)}`}setupVisibilityTracking(){document.addEventListener("visibilitychange",()=>{document.hidden?this.track("page_hidden"):this.track("page_visible")})}setupUnloadTracking(){window.addEventListener("beforeunload",()=>{var e,t;if(this.track("page_unload"),this.sessionId&&this.sessionStartTime){const t=new Date,n=Date.now()-this.sessionStartTime;null===(e=this.transport)||void 0===e||e.startSession(Object.assign({session_id:this.sessionId,user_id:this.userId||void 0,anonymous_id:this.anonymousId,ended_at:t.toISOString(),duration_ms:n},this.getContextData()))}null===(t=this.transport)||void 0===t||t.flush(!0)})}}});
50
+ function A(A,e,t,r){return new(t||(t=Promise))(function(e,n){function s(A){try{i(r.next(A))}catch(A){n(A)}}function o(A){try{i(r.throw(A))}catch(A){n(A)}}function i(A){var r;A.done?e(A.value):(r=A.value,r instanceof t?r:new t(function(A){A(r)})).then(s,o)}i((r=r.apply(A,[])).next())})}for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),r=0;r<64;r++)t[e.charCodeAt(r)]=r;var n=function(A){var t,r=new Uint8Array(A),n=r.length,s="";for(t=0;t<n;t+=3)s+=e[r[t]>>2],s+=e[(3&r[t])<<4|r[t+1]>>4],s+=e[(15&r[t+1])<<2|r[t+2]>>6],s+=e[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};const s=new Map,o=new Map,i=self;i.onmessage=function(e){return A(this,0,void 0,function*(){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:r,width:a,height:c,dataURLOptions:B}=e.data,l=function(e,t,r){return A(this,0,void 0,function*(){const A=`${e}-${t}`;if("OffscreenCanvas"in globalThis){if(o.has(A))return o.get(A);const s=new OffscreenCanvas(e,t);s.getContext("2d");const i=yield s.convertToBlob(r),a=yield i.arrayBuffer(),c=n(a);return o.set(A,c),c}return""})}(a,c,B),u=new OffscreenCanvas(a,c);u.getContext("2d").drawImage(r,0,0),r.close();const g=yield u.convertToBlob(B),d=g.type,h=yield g.arrayBuffer(),w=n(h);if(!s.has(t)&&(yield l)===w)return s.set(t,w),i.postMessage({id:t});if(s.get(t)===w)return i.postMessage({id:t});i.postMessage({id:t,type:d,base64:w,width:a,height:c}),s.set(t,w)}})}}()},function(A){return Ge=Ge||function(A){var e=function(A){var e=A.toString().split("\n");e.pop(),e.shift();for(var t=e[0].search(/\S/),r=/(['"])__worker_loader_strict__(['"])/g,n=0,s=e.length;n<s;++n)e[n]=e[n].substring(t).replace(r,"$1use strict$2")+"\n";return e}(A),t=new Blob(e,{type:"application/javascript"});return URL.createObjectURL(t)}(Ne),new Worker(Ge,A)});class Pe{reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(A){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=(A,e)=>{!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(A)||this.pendingCanvasMutations.set(A,[]),this.pendingCanvasMutations.get(A).push(e)};const{sampling:e="all",win:t,blockClass:r,blockSelector:n,recordCanvas:s,dataURLOptions:o}=A;this.mutationCb=A.mutationCb,this.mirror=A.mirror,s&&"all"===e&&this.initCanvasMutationObserver(t,r,n),s&&"number"==typeof e&&this.initCanvasFPSObserver(e,t,r,n,{dataURLOptions:o})}initCanvasFPSObserver(A,e,t,r,n){const s=xe(e,t,r,!0),o=new Map,i=new Ve;i.onmessage=A=>{const{id:e}=A.data;if(o.set(e,!1),!("base64"in A.data))return;const{base64:t,type:r,width:n,height:s}=A.data;this.mutationCb({id:e,type:$A["2D"],commands:[{property:"clearRect",args:[0,0,n,s]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:t}],type:r}]},0,0]}]})};const a=1e3/A;let c,B=0;const l=A=>{B&&A-B<a||(B=A,(()=>{const A=[];return e.document.querySelectorAll("canvas").forEach(e=>{xA(e,t,r,!0)||A.push(e)}),A})().forEach(A=>be(this,0,void 0,function*(){var e;const t=this.mirror.getId(A);if(o.get(t))return;if(0===A.width||0===A.height)return;if(o.set(t,!0),["webgl","webgl2"].includes(A.__context)){const t=A.getContext(A.__context);!1===(null===(e=null==t?void 0:t.getContextAttributes())||void 0===e?void 0:e.preserveDrawingBuffer)&&t.clear(t.COLOR_BUFFER_BIT)}const r=yield createImageBitmap(A);i.postMessage({id:t,bitmap:r,width:A.width,height:A.height,dataURLOptions:n.dataURLOptions},[r])}))),c=requestAnimationFrame(l)};c=requestAnimationFrame(l),this.resetObservers=()=>{s(),cancelAnimationFrame(c)}}initCanvasMutationObserver(A,e,t){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const r=xe(A,e,t,!1),n=function(A,e,t,r){const n=[],s=Object.getOwnPropertyNames(e.CanvasRenderingContext2D.prototype);for(const o of s)try{if("function"!=typeof e.CanvasRenderingContext2D.prototype[o])continue;const s=KA(e.CanvasRenderingContext2D.prototype,o,function(n){return function(...s){return xA(this.canvas,t,r,!0)||setTimeout(()=>{const t=Te(s,e,this);A(this.canvas,{type:$A["2D"],property:o,args:t})},0),n.apply(this,s)}});n.push(s)}catch(t){const r=LA(e.CanvasRenderingContext2D.prototype,o,{set(e){A(this.canvas,{type:$A["2D"],property:o,args:[e],setter:!0})}});n.push(r)}return()=>{n.forEach(A=>A())}}(this.processMutation.bind(this),A,e,t),s=function(A,e,t,r){const n=[];return n.push(...Re(e.WebGLRenderingContext.prototype,$A.WebGL,A,t,r,0,e)),void 0!==e.WebGL2RenderingContext&&n.push(...Re(e.WebGL2RenderingContext.prototype,$A.WebGL2,A,t,r,0,e)),()=>{n.forEach(A=>A())}}(this.processMutation.bind(this),A,e,t,this.mirror);this.resetObservers=()=>{r(),n(),s()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const A=e=>{this.rafStamps.latestId=e,requestAnimationFrame(A)};requestAnimationFrame(A)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((A,e)=>{const t=this.mirror.getId(e);this.flushPendingCanvasMutationFor(e,t)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(A,e){if(this.frozen||this.locked)return;const t=this.pendingCanvasMutations.get(A);if(!t||-1===e)return;const r=t.map(A=>{const e=function(A,e){var t={};for(var r in A)Object.prototype.hasOwnProperty.call(A,r)&&e.indexOf(r)<0&&(t[r]=A[r]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(A);n<r.length;n++)e.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(A,r[n])&&(t[r[n]]=A[r[n]])}return t}(A,["type"]);return e}),{type:n}=t[0];this.mutationCb({id:e,type:n,commands:r}),this.pendingCanvasMutations.delete(A)}}class Xe{constructor(A){this.trackedLinkElements=new WeakSet,this.styleMirror=new JA,this.mutationCb=A.mutationCb,this.adoptedStyleSheetCb=A.adoptedStyleSheetCb}attachLinkElement(A,e){"_cssText"in e.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:e.id,attributes:e.attributes}]}),this.trackLinkElement(A)}trackLinkElement(A){this.trackedLinkElements.has(A)||(this.trackedLinkElements.add(A),this.trackStylesheetInLinkElement(A))}adoptStyleSheets(A,e){if(0===A.length)return;const t={id:e,styleIds:[]},r=[];for(const e of A){let A;this.styleMirror.has(e)?A=this.styleMirror.getId(e):(A=this.styleMirror.add(e),r.push({styleId:A,rules:Array.from(e.rules||CSSRule,(A,e)=>({rule:z(A),index:e}))})),t.styleIds.push(A)}r.length>0&&(t.styles=r),this.adoptedStyleSheetCb(t)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(A){}}class Je{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){requestAnimationFrame(()=>{this.clear(),this.loop&&this.periodicallyClear()})}inOtherBuffer(A,e){const t=this.nodeMap.get(A);return t&&Array.from(t).some(A=>A!==e)}add(A,e){this.nodeMap.set(A,(this.nodeMap.get(A)||new Set).add(e))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}function We(A){return Object.assign(Object.assign({},A),{timestamp:DA()})}let _e,Ye,Ze,je=!1;const qe=new $;function ze(A={}){const{emit:e,checkoutEveryNms:t,checkoutEveryNth:r,blockClass:n="rr-block",blockSelector:s=null,ignoreClass:o="rr-ignore",ignoreSelector:i=null,maskTextClass:a="rr-mask",maskTextSelector:c=null,inlineStylesheet:B=!0,maskAllInputs:l,maskInputOptions:u,slimDOMOptions:g,maskInputFn:d,maskTextFn:h,hooks:w,packFn:Q,sampling:p={},dataURLOptions:C={},mousemoveWait:f,recordDOM:U=!0,recordCanvas:F=!1,recordCrossOriginIframes:m=!1,recordAfter:y=("DOMContentLoaded"===A.recordAfter?A.recordAfter:"load"),userTriggeredOnInput:I=!1,collectFonts:E=!1,inlineImages:H=!1,plugins:v,keepIframeSrcFn:b=()=>!1,ignoreCSSAttributes:S=new Set([]),errorHandler:L}=A;Be(L);const K=!m||window.parent===window;let D=!1;if(!K)try{window.parent.document&&(D=!1)}catch(A){D=!0}if(K&&!e)throw new Error("emit function is required");void 0!==f&&void 0===p.mousemove&&(p.mousemove=f),qe.reset();const M=!0===l?{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!==u?u:{password:!0},k=!0===g||"all"===g?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===g,headMetaDescKeywords:"all"===g}:g||{};let T;!function(A=window){"NodeList"in A&&!A.NodeList.prototype.forEach&&(A.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in A&&!A.DOMTokenList.prototype.forEach&&(A.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...A)=>{let e=A[0];if(!(0 in A))throw new TypeError("1 argument is required");do{if(this===e)return!0}while(e=e&&e.parentNode);return!1})}();let O=0;const x=A=>{for(const e of v||[])e.eventProcessor&&(A=e.eventProcessor(A));return Q&&!D&&(A=Q(A)),A};_e=(A,n)=>{var s;if(!(null===(s=ge[0])||void 0===s?void 0:s.isFrozen())||A.type===ZA.FullSnapshot||A.type===ZA.IncrementalSnapshot&&A.data.source===jA.Mutation||ge.forEach(A=>A.unfreeze()),K)null==e||e(x(A),n);else if(D){const e={type:"rrweb",event:x(A),origin:window.location.origin,isCheckout:n};window.parent.postMessage(e,"*")}if(A.type===ZA.FullSnapshot)T=A,O=0;else if(A.type===ZA.IncrementalSnapshot){if(A.data.source===jA.Mutation&&A.data.isAttachIframe)return;O++;const e=r&&O>=r,n=t&&A.timestamp-T.timestamp>t;(e||n)&&Ye(!0)}};const R=A=>{_e(We({type:ZA.IncrementalSnapshot,data:Object.assign({source:jA.Mutation},A)}))},N=A=>_e(We({type:ZA.IncrementalSnapshot,data:Object.assign({source:jA.Scroll},A)})),G=A=>_e(We({type:ZA.IncrementalSnapshot,data:Object.assign({source:jA.CanvasMutation},A)})),V=new Xe({mutationCb:R,adoptedStyleSheetCb:A=>_e(We({type:ZA.IncrementalSnapshot,data:Object.assign({source:jA.AdoptedStyleSheet},A)}))}),P=new He({mirror:qe,mutationCb:R,stylesheetManager:V,recordCrossOriginIframes:m,wrappedEmit:_e});for(const A of v||[])A.getMirror&&A.getMirror({nodeMirror:qe,crossOriginIframeMirror:P.crossOriginIframeMirror,crossOriginIframeStyleMirror:P.crossOriginIframeStyleMirror});const X=new Je;Ze=new Pe({recordCanvas:F,mutationCb:G,win:window,blockClass:n,blockSelector:s,mirror:qe,sampling:p.canvas,dataURLOptions:C});const J=new ve({mutationCb:R,scrollCb:N,bypassOptions:{blockClass:n,blockSelector:s,maskTextClass:a,maskTextSelector:c,inlineStylesheet:B,maskInputOptions:M,dataURLOptions:C,maskTextFn:h,maskInputFn:d,recordCanvas:F,inlineImages:H,sampling:p,slimDOMOptions:k,iframeManager:P,stylesheetManager:V,canvasManager:Ze,keepIframeSrcFn:b,processedNodeManager:X},mirror:qe});Ye=(A=!1)=>{if(!U)return;_e(We({type:ZA.Meta,data:{href:window.location.href,width:TA(),height:kA()}}),A),V.reset(),J.init(),ge.forEach(A=>A.lock());const e=function(A,e){const{mirror:t=new $,blockClass:r="rr-block",blockSelector:n=null,maskTextClass:s="rr-mask",maskTextSelector:o=null,inlineStylesheet:i=!0,inlineImages:a=!1,recordCanvas:c=!1,maskAllInputs:B=!1,maskTextFn:l,maskInputFn:u,slimDOM:g=!1,dataURLOptions:d,preserveWhiteSpace:h,onSerialize:w,onIframeLoad:Q,iframeLoadTimeout:p,onStylesheetLoad:C,stylesheetLoadTimeout:f,keepIframeSrcFn:U=()=>!1}=e||{};return EA(A,{doc:A,mirror:t,blockClass:r,blockSelector:n,maskTextClass:s,maskTextSelector:o,skipChild:!1,inlineStylesheet:i,maskInputOptions:!0===B?{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===B?{password:!0}:B,maskTextFn:l,maskInputFn:u,slimDOMOptions:!0===g||"all"===g?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===g,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===g?{}:g,dataURLOptions:d,inlineImages:a,recordCanvas:c,preserveWhiteSpace:h,onSerialize:w,onIframeLoad:Q,iframeLoadTimeout:p,onStylesheetLoad:C,stylesheetLoadTimeout:f,keepIframeSrcFn:U,newlyAddedElement:!1})}(document,{mirror:qe,blockClass:n,blockSelector:s,maskTextClass:a,maskTextSelector:c,inlineStylesheet:B,maskAllInputs:M,maskTextFn:h,slimDOM:k,dataURLOptions:C,recordCanvas:F,inlineImages:H,onSerialize:A=>{VA(A,qe)&&P.addIframe(A),PA(A,qe)&&V.trackLinkElement(A),XA(A)&&J.addShadowRoot(A.shadowRoot,document)},onIframeLoad:(A,e)=>{P.attachIframe(A,e),J.observeAttachShadow(A)},onStylesheetLoad:(A,e)=>{V.attachLinkElement(A,e)},keepIframeSrcFn:b});if(!e)return console.warn("Failed to snapshot the document");_e(We({type:ZA.FullSnapshot,data:{node:e,initialOffset:MA(window)}}),A),ge.forEach(A=>A.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&V.adoptStyleSheets(document.adoptedStyleSheets,qe.getId(document))};try{const A=[],e=A=>{var e;return ue(me)({mutationCb:R,mousemoveCb:(A,e)=>_e(We({type:ZA.IncrementalSnapshot,data:{source:e,positions:A}})),mouseInteractionCb:A=>_e(We({type:ZA.IncrementalSnapshot,data:Object.assign({source:jA.MouseInteraction},A)})),scrollCb:N,viewportResizeCb:A=>_e(We({type:ZA.IncrementalSnapshot,data:Object.assign({source:jA.ViewportResize},A)})),inputCb:A=>_e(We({type:ZA.IncrementalSnapshot,data:Object.assign({source:jA.Input},A)})),mediaInteractionCb:A=>_e(We({type:ZA.IncrementalSnapshot,data:Object.assign({source:jA.MediaInteraction},A)})),styleSheetRuleCb:A=>_e(We({type:ZA.IncrementalSnapshot,data:Object.assign({source:jA.StyleSheetRule},A)})),styleDeclarationCb:A=>_e(We({type:ZA.IncrementalSnapshot,data:Object.assign({source:jA.StyleDeclaration},A)})),canvasMutationCb:G,fontCb:A=>_e(We({type:ZA.IncrementalSnapshot,data:Object.assign({source:jA.Font},A)})),selectionCb:A=>{_e(We({type:ZA.IncrementalSnapshot,data:Object.assign({source:jA.Selection},A)}))},customElementCb:A=>{_e(We({type:ZA.IncrementalSnapshot,data:Object.assign({source:jA.CustomElement},A)}))},blockClass:n,ignoreClass:o,ignoreSelector:i,maskTextClass:a,maskTextSelector:c,maskInputOptions:M,inlineStylesheet:B,sampling:p,recordDOM:U,recordCanvas:F,inlineImages:H,userTriggeredOnInput:I,collectFonts:E,doc:A,maskInputFn:d,maskTextFn:h,keepIframeSrcFn:b,blockSelector:s,slimDOMOptions:k,dataURLOptions:C,mirror:qe,iframeManager:P,stylesheetManager:V,shadowDomManager:J,processedNodeManager:X,canvasManager:Ze,ignoreCSSAttributes:S,plugins:(null===(e=null==v?void 0:v.filter(A=>A.observer))||void 0===e?void 0:e.map(A=>({observer:A.observer,options:A.options,callback:e=>_e(We({type:ZA.Plugin,data:{plugin:A.name,payload:e}}))})))||[]},w)};P.addLoadListener(t=>{try{A.push(e(t.contentDocument))}catch(A){console.warn(A)}});const t=()=>{Ye(),A.push(e(document)),je=!0};return"interactive"===document.readyState||"complete"===document.readyState?t():(A.push(HA("DOMContentLoaded",()=>{_e(We({type:ZA.DomContentLoaded,data:{}})),"DOMContentLoaded"===y&&t()})),A.push(HA("load",()=>{_e(We({type:ZA.Load,data:{}})),"load"===y&&t()},window))),()=>{A.forEach(A=>A()),X.destroy(),je=!1,le()}}catch(A){console.warn(A)}}ze.addCustomEvent=(A,e)=>{if(!je)throw new Error("please add custom event after start recording");_e(We({type:ZA.Custom,data:{tag:A,payload:e}}))},ze.freezePage=()=>{ge.forEach(A=>A.freeze())},ze.takeFullSnapshot=A=>{if(!je)throw new Error("please take full snapshot after start recording");Ye(A)},ze.mirror=qe;class $e{constructor(A,e,t){this.stopFn=null,this.events=[],this.onEventsReady=null,this.flushInterval=null,this.hasFullSnapshot=!1,this.sessionId=A,this.config=e,this.onEventsReady=t}start(){if(this.config.enabled)if(this.stopFn)console.warn("[RRWeb] Recording already started");else try{this.stopFn=ze({emit:A=>{this.events.push(A),2===A.type?(this.hasFullSnapshot=!0,this.flush()):this.hasFullSnapshot&&this.events.length>=50&&this.flush()},sampling:{mousemove:void 0===this.config.sampleRate||Math.floor(100/this.config.sampleRate),mouseInteraction:!0,scroll:150,media:800,input:"last"},checkoutEveryNms:this.config.checkoutEveryNms||3e5,checkoutEveryNth:this.config.checkoutEveryNth||200,blockClass:this.config.blockClass||"rr-block",ignoreClass:this.config.ignoreClass||"rr-ignore",maskAllInputs:void 0===this.config.maskAllInputs||this.config.maskAllInputs,maskInputOptions:this.config.maskInputOptions||{password:!0,email:!0,tel:!0},maskTextClass:"rr-mask",inlineStylesheet:void 0===this.config.inlineStylesheet||this.config.inlineStylesheet,recordCanvas:this.config.recordCanvas||!1,collectFonts:void 0===this.config.collectFonts||this.config.collectFonts,recordCrossOriginIframes:!1}),this.flushInterval=window.setInterval(()=>{this.hasFullSnapshot&&this.events.length>0&&this.flush()},1e4),setTimeout(()=>{if(!this.hasFullSnapshot)try{ze.takeFullSnapshot()}catch(A){this.events.length>0&&(this.hasFullSnapshot=!0,this.flush())}},2e3)}catch(A){console.error("[RRWeb] Failed to start recording:",A)}else console.log("[RRWeb] Recording disabled in config")}stop(){this.stopFn&&(this.stopFn(),this.stopFn=null),this.flushInterval&&(clearInterval(this.flushInterval),this.flushInterval=null),this.events.length>0&&this.flush()}flush(){if(0===this.events.length)return;const A=[...this.events];this.events=[],this.onEventsReady&&this.onEventsReady(A)}getEventCount(){return this.events.length}isRecording(){return null!==this.stopFn}}class At{constructor(A){this.config=A,this.queue=[],this.flushInterval=null,this.maxQueueSize=50,this.flushIntervalMs=5e3,this.apiUrl=A.apiUrl||"https://api.devskin.com",this.startPeriodicFlush(),"undefined"!=typeof window&&(window.addEventListener("beforeunload",()=>{this.flush()}),window.addEventListener("visibilitychange",()=>{document.hidden&&this.flush(!0)}))}sendEvent(A){this.enqueue("event",A)}identifyUser(A){this.sendToBackend("/v1/analytics/identify",A)}startSession(A){this.sendToBackend("/v1/analytics/session",A)}sendError(A){this.enqueue("error",A)}sendNetworkRequest(A){this.enqueue("network",A)}sendPerformanceMetric(A){this.enqueue("performance",A)}sendRecordingEvents(A,t){return e(this,void 0,void 0,function*(){const e={session_id:A,events:t,timestamp:(new Date).toISOString(),apiKey:this.config.apiKey,appId:this.config.appId},r=new Blob([JSON.stringify(e)]).size,n=t.some(A=>2===A.type),s=n?3:1;let o=null;for(let e=1;e<=s;e++)try{return void(r>1e5?yield this.sendToBackendXHR("/v1/rum/recordings",{session_id:A,events:t,timestamp:(new Date).toISOString()}):yield this.sendToBackend("/v1/rum/recordings",{session_id:A,events:t,timestamp:(new Date).toISOString()}))}catch(A){if(o=A,e<s){const A=1e3*e;yield new Promise(e=>setTimeout(e,A))}}this.config.debug&&console.error(`[DevSkin SDK] Failed to send recording events after ${s} attempts:`,o)})}sendHeatmapData(A){this.enqueue("heatmap",A)}sendScreenshot(A){return e(this,void 0,void 0,function*(){yield this.sendToBackend("/v1/sdk/screenshot",{screenshot:A})})}flush(A=!1){if(0===this.queue.length)return;const e=[...this.queue];this.queue=[];const t={};e.forEach(A=>{t[A.type]||(t[A.type]=[]),t[A.type].push(A.data)}),Object.entries(t).forEach(([e,t])=>{const r=this.getEndpointForType(e);this.sendToBackend(r,{[e+"s"]:t},A)}),this.config.debug&&console.log(`[DevSkin] Flushed ${e.length} items to backend`)}enqueue(A,e){this.queue.push({type:A,data:e,timestamp:Date.now()}),this.queue.length>=this.maxQueueSize&&this.flush()}startPeriodicFlush(){this.flushInterval=setInterval(()=>{this.flush()},this.flushIntervalMs)}getEndpointForType(A){switch(A){case"event":default:return"/v1/analytics/events";case"error":return"/v1/analytics/errors";case"network":return"/v1/analytics/network";case"performance":return"/v1/analytics/performance";case"heatmap":return"/v1/sdk/heatmap"}}sendToBackendXHR(A,t){return e(this,void 0,void 0,function*(){const e=`${this.apiUrl}${A}`,r=Object.assign(Object.assign({},t),{apiKey:this.config.apiKey,appId:this.config.appId,environment:this.config.environment,release:this.config.release});if(this.config.beforeSend){if(!this.config.beforeSend(r))return}return new Promise((t,n)=>{const s=new XMLHttpRequest;s.open("POST",e,!0),s.setRequestHeader("Content-Type","application/json"),s.setRequestHeader("Authorization",`Bearer ${this.config.apiKey}`),s.onload=()=>{s.status>=200&&s.status<300?(this.config.debug&&console.log("[DevSkin] Data sent successfully via XHR:",A),t()):(console.error("[DevSkin] XHR HTTP Error:",s.status,s.responseText),n(new Error(`HTTP ${s.status}: ${s.statusText}`)))},s.onerror=()=>{console.error("[DevSkin] XHR network error:",A),n(new Error("Network error"))},s.ontimeout=()=>{console.error("[DevSkin] XHR timeout:",A),n(new Error("Request timeout"))},s.timeout=3e4;try{const A=JSON.stringify(r);s.send(A)}catch(A){console.error("[DevSkin] Failed to send XHR request:",A),n(A)}})})}sendToBackend(A,t){return e(this,arguments,void 0,function*(A,e,t=!1){const r=`${this.apiUrl}${A}`,n=Object.assign(Object.assign({},e),{apiKey:this.config.apiKey,appId:this.config.appId,environment:this.config.environment,release:this.config.release});if(this.config.beforeSend){if(!this.config.beforeSend(n))return}if(t&&navigator.sendBeacon){const A=new Blob([JSON.stringify(n)],{type:"application/json"});return void navigator.sendBeacon(r,A)}try{const e=yield fetch(r,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.config.apiKey}`},body:JSON.stringify(n),keepalive:!0});if(!e.ok){const A=yield e.text();throw console.error("[DevSkin] HTTP Error:",e.status,A),new Error(`HTTP ${e.status}: ${e.statusText}`)}this.config.debug&&console.log("[DevSkin] Data sent successfully:",A)}catch(e){throw console.error("[DevSkin] Failed to send data to",A,":",e),e}})}destroy(){this.flushInterval&&(clearInterval(this.flushInterval),this.flushInterval=null),this.flush()}}return new class{constructor(){this.config=null,this.transport=null,this.sessionId=null,this.userId=null,this.anonymousId=null,this.sessionStartTime=0,this.initialized=!1,this.deviceCollector=null,this.locationCollector=null,this.browserCollector=null,this.performanceCollector=null,this.errorCollector=null,this.networkCollector=null,this.heatmapCollector=null,this.screenshotCollector=null,this.rrwebRecorder=null}init(e){var n,s,o,i;if(this.initialized)return void console.warn("[DevSkin] SDK already initialized");this.config=Object.assign({debug:!1,captureWebVitals:!0,captureNetworkRequests:!0,captureErrors:!0,captureUserAgent:!0,captureLocation:!0,captureDevice:!0,heatmapOptions:{enabled:!0,trackClicks:!0,trackScroll:!0,trackMouseMovement:!1}},e),this.config.debug&&console.log("[DevSkin] Initializing SDK with config:",this.config),this.transport=new At(this.config),this.anonymousId=this.getOrCreateAnonymousId(),this.deviceCollector=new A(this.config),this.locationCollector=new t(this.config),this.browserCollector=new r(this.config),this.startSession(),this.config.captureWebVitals&&(this.performanceCollector=new N(this.config,this.transport),this.performanceCollector.start()),this.config.captureErrors&&(this.errorCollector=new G(this.config,this.transport),this.errorCollector.start()),this.config.captureNetworkRequests&&(this.networkCollector=new V(this.config,this.transport),this.networkCollector.start());if((null===(n=this.config.heatmapOptions)||void 0===n?void 0:n.enabled)||(null===(s=this.config.sessionRecording)||void 0===s?void 0:s.enabled)){const A=Object.assign({enabled:!0,trackClicks:!0,trackScroll:!0,trackMouseMovement:!0,mouseMoveSampling:.05},this.config.heatmapOptions);this.config.heatmapOptions=A,this.heatmapCollector=new P(this.config,this.transport),this.heatmapCollector.start(),this.screenshotCollector=new Y(this.config,this.transport),this.screenshotCollector.captureAndSend(this.sessionId,window.location.href),this.config.debug&&console.log("[DevSkin] Heatmap collection enabled",(null===(o=this.config.sessionRecording)||void 0===o?void 0:o.enabled)?"(auto-enabled with session recording)":"")}(null===(i=this.config.sessionRecording)||void 0===i?void 0:i.enabled)&&(this.rrwebRecorder=new $e(this.sessionId,{enabled:!0,sampleRate:this.config.sessionRecording.sampling||.5,blockClass:"rr-block",ignoreClass:this.config.sessionRecording.ignoreClass||"rr-ignore",maskAllInputs:void 0===this.config.sessionRecording.maskAllInputs||this.config.sessionRecording.maskAllInputs,maskInputOptions:{password:!0,email:!0,tel:!0},recordCanvas:this.config.sessionRecording.recordCanvas||!1,collectFonts:!0,inlineStylesheet:!0,checkoutEveryNms:3e5,checkoutEveryNth:200},A=>{var e;null===(e=this.transport)||void 0===e||e.sendRecordingEvents(this.sessionId,A)}),setTimeout(()=>{var A,e;null===(A=this.rrwebRecorder)||void 0===A||A.start(),(null===(e=this.config)||void 0===e?void 0:e.debug)&&console.log("[DevSkin] RRWeb recording started for session:",this.sessionId)},500)),this.trackPageView(),this.setupVisibilityTracking(),this.setupUnloadTracking(),this.initialized=!0,this.config.debug&&console.log("[DevSkin] SDK initialized successfully")}track(A,e){var t,r;if(!this.initialized)return void console.warn("[DevSkin] SDK not initialized. Call init() first.");const n={event_name:A,event_type:"track",timestamp:(new Date).toISOString(),session_id:this.sessionId,user_id:this.userId||void 0,anonymous_id:this.anonymousId||void 0,properties:Object.assign(Object.assign({},e),this.getContextData()),page_url:window.location.href,page_title:document.title};null===(t=this.transport)||void 0===t||t.sendEvent(n),(null===(r=this.config)||void 0===r?void 0:r.debug)&&console.log("[DevSkin] Event tracked:",n)}trackPageView(A){this.track("page_view",Object.assign({path:window.location.pathname,search:window.location.search,hash:window.location.hash,referrer:document.referrer},A))}identify(A,e){var t,r;if(!this.initialized)return void console.warn("[DevSkin] SDK not initialized. Call init() first.");this.userId=A;const n={user_id:A,anonymous_id:this.anonymousId||void 0,traits:Object.assign(Object.assign({},e),this.getContextData()),session_id:this.sessionId,timestamp:(new Date).toISOString()};null===(t=this.transport)||void 0===t||t.identifyUser(n),(null===(r=this.config)||void 0===r?void 0:r.debug)&&console.log("[DevSkin] User identified:",n)}captureError(A,e){var t;this.initialized?null===(t=this.errorCollector)||void 0===t||t.captureError(A,Object.assign(Object.assign({},e),{session_id:this.sessionId,user_id:this.userId||void 0})):console.warn("[DevSkin] SDK not initialized. Call init() first.")}addBreadcrumb(A){var e;this.initialized&&(null===(e=this.errorCollector)||void 0===e||e.addBreadcrumb(A))}startRecording(){var A;null===(A=this.rrwebRecorder)||void 0===A||A.start()}stopRecording(){var A;null===(A=this.rrwebRecorder)||void 0===A||A.stop()}optOut(){localStorage.setItem("devskin_opt_out","true"),this.initialized=!1}optIn(){localStorage.removeItem("devskin_opt_out")}startSession(){var A;this.sessionId=this.generateId(),this.sessionStartTime=Date.now();const e=Object.assign({session_id:this.sessionId,user_id:this.userId||void 0,anonymous_id:this.anonymousId,started_at:(new Date).toISOString()},this.getContextData());null===(A=this.transport)||void 0===A||A.startSession(e)}getContextData(){const A={};return this.deviceCollector&&(A.device=this.deviceCollector.collect()),this.browserCollector&&(A.browser=this.browserCollector.collect()),this.locationCollector&&(A.location=this.locationCollector.collect()),A}getOrCreateAnonymousId(){let A=localStorage.getItem("devskin_anonymous_id");return A||(A=this.generateId(),localStorage.setItem("devskin_anonymous_id",A)),A}generateId(){return`${Date.now()}-${Math.random().toString(36).substr(2,9)}`}setupVisibilityTracking(){document.addEventListener("visibilitychange",()=>{document.hidden?this.track("page_hidden"):this.track("page_visible")})}setupUnloadTracking(){window.addEventListener("beforeunload",()=>{var A,e;if(this.track("page_unload"),this.sessionId&&this.sessionStartTime){const e=new Date,t=Date.now()-this.sessionStartTime;null===(A=this.transport)||void 0===A||A.startSession(Object.assign({session_id:this.sessionId,user_id:this.userId||void 0,anonymous_id:this.anonymousId,ended_at:e.toISOString(),duration_ms:t},this.getContextData()))}null===(e=this.transport)||void 0===e||e.flush(!0)})}}});
31
51
  //# sourceMappingURL=devskin.umd.min.js.map