/home/suroeste/public_html/wp-content/plugins/woocommerce/assets/client/admin/chunks
NameSizeModeActions
185.style.css21820644editdlrm
727.style.css15500644editdlrm
925.style.css703870644editdlrm
1828.style.css450920644editdlrm
1878.js1074310644editdlrm
1878.js.LICENSE.txt2460644editdlrm
2106.js110320644editdlrm
2294.js95840644editdlrm
2397.style.css32500644editdlrm
2502.style.css14630644editdlrm
2624.style.css11100644editdlrm
2953.style.css54660644editdlrm
3307.style.css331330644editdlrm
3404.js546990644editdlrm
3404.js.LICENSE.txt1490644editdlrm
3576.style.css19680644editdlrm
3581.js134010644editdlrm
3581.style.css83460644editdlrm
3700.style.css14630644editdlrm
3994.style.css19680644editdlrm
4011.style.css14630644editdlrm
4505.js78290644editdlrm
4505.js.LICENSE.txt8080644editdlrm
4854.style.css14630644editdlrm
4882.style.css151030644editdlrm
5502.style.css531000644editdlrm
5516.js130890644editdlrm
5516.style.css61990644editdlrm
5641.js585810644editdlrm
5641.js.LICENSE.txt5350644editdlrm
5708.style.css371830644editdlrm
5771.js112160644editdlrm
5948.js193670644editdlrm
5948.js.LICENSE.txt990644editdlrm
6083.js27040644editdlrm
6125.style.css25410644editdlrm
6290.js187660644editdlrm
6732.style.css13760644editdlrm
6824.style.css21820644editdlrm
6924.js125520644editdlrm
7387.style.css181520644editdlrm
7708.style.css187790644editdlrm
7872.js681580644editdlrm
7872.js.LICENSE.txt8080644editdlrm
7970.js440110644editdlrm
7970.js.LICENSE.txt1600644editdlrm
8219.style.css262120644editdlrm
8430.js451960644editdlrm
8430.js.LICENSE.txt5350644editdlrm
8544.style.css6420644editdlrm
8597.style.css46570644editdlrm
8851.style.css122500644editdlrm
9360.style.css111400644editdlrm
9456.style.css14630644editdlrm
9669.style.css610420644editdlrm
9792.style.css14630644editdlrm
9850.js7500644editdlrm
9941.js107030644editdlrm
9966.style.css54110644editdlrm
activity-panels-help.js103370644editdlrm
activity-panels-inbox.js98050644editdlrm
activity-panels-setup.js3540644editdlrm
analytics-report-categories.js124850644editdlrm
analytics-report-coupons.js154170644editdlrm
analytics-report-customers.js119700644editdlrm
analytics-report-downloads.js163230644editdlrm
analytics-report-orders.js98270644editdlrm
analytics-report-products.js151120644editdlrm
analytics-report-revenue.js168680644editdlrm
analytics-report-stock.js41660644editdlrm
analytics-report-taxes.js149200644editdlrm
analytics-report-variations.js89310644editdlrm
analytics-report.js17950644editdlrm
analytics-settings.js177470644editdlrm
category-metabox.js76080644editdlrm
core-profiler.js758630644editdlrm
core-profiler.js.LICENSE.txt3060644editdlrm
customizable-dashboard.js155740644editdlrm
customize-store.js2371170644editdlrm
dashboard-charts.js222660644editdlrm
dashboard.js4630644editdlrm
edit-product-page.js202780644editdlrm
homescreen.js997130644editdlrm
launch-store.js334950644editdlrm
leaderboards.js47450644editdlrm
marketplace.js1015370644editdlrm
multichannel-marketing.js654100644editdlrm
payment-recommendations.js40350644editdlrm
product-page.js21810644editdlrm
profile-wizard.js610970644editdlrm
shipping-recommendations.js154930644editdlrm
store-alerts.js54650644editdlrm
store-performance.js45860644editdlrm
wcpay-payment-welcome-page.js175510644editdlrm
Edit: /home/suroeste/public_html/wp-content/plugins/woocommerce/assets/client/admin/chunks/3404.js (54699B)
/*! For license information please see 3404.js.LICENSE.txt */ (globalThis.webpackChunk_wcAdmin_webpackJsonp=globalThis.webpackChunk_wcAdmin_webpackJsonp||[]).push([[3404],{73404:(e,t,n)=>{"use strict";var r,o=Object.create,i=Object.defineProperty,s=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,u=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,l=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of a(t))c.call(e,o)||o===n||i(e,o,{get:()=>t[o],enumerable:!(r=s(t,o))||r.enumerable});return e},f=(e,t,n)=>(n=null!=e?o(u(e)):{},l(!t&&e&&e.__esModule?n:i(n,"default",{value:e,enumerable:!0}),e)),d={};((e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})})(d,{createBrowserInspector:()=>O,createBrowserReceiver:()=>E,createInspector:()=>b,createSkyInspector:()=>T,createWebSocketInspector:()=>C,createWebSocketReceiver:()=>R}),e.exports=(r=d,l(i({},"__esModule",{value:!0}),r));var p=f(n(4329)),h=n(7872);function y(e){return"string"==typeof e?{type:e}:e}var g="undefined"!=typeof process&&void 0!==process.versions?.node&&"undefined"==typeof document,v={devDependencies:{"@changesets/changelog-github":"^0.5.0","@changesets/cli":"^2.27.1","@types/jsdom":"^21.1.6","@types/uuid":"^9.0.8",jsdom:"^23.2.0",tsup:"^8.0.2",typescript:"^5.3.3",vitest:"^1.3.1",xstate:"^5.9.1"},name:"@statelyai/inspect",version:"0.2.5",description:"Inspection utilities for state, actors, workflows, and state machines.",main:"dist/index.js",repository:"https://github.com/statelyai/inspect.git",author:"David Khourshid ",license:"MIT",dependencies:{"fast-safe-stringify":"^2.1.1","isomorphic-ws":"^5.0.0",partysocket:"^0.0.25","safe-stable-stringify":"^2.4.3",superjson:"^1.13.3",uuid:"^9.0.1"},peerDependencies:{xstate:"^5.5.1"},scripts:{build:"tsup src/index.ts --dts",watch:"tsup src/index.ts --dts --watch",test:"vitest",prepublishOnly:"tsup src/index.ts --dts",changeset:"changeset",release:"changeset publish",version:"changeset version",dev:"yarn build && ./scripts/dev.sh"},publishConfig:{access:"public"},packageManager:"pnpm@8.11.0"},m=f(n(30149));function b(e,t){function n(n){if(t?.filter&&!t.filter(n))return;const r=t?.serialize?.(n)??n;e.send(r)}return{adapter:e,actor:(e,t,r)=>{const o="string"==typeof e?e:e.sessionId,i=e?.logic?.config,s=i?(0,m.default)(i):void 0,a=r?.rootId??"string"==typeof e?void 0:("string"==typeof(u=e)?void 0:function(e){let t=e;do{t=t._parent}while(t?._parent);return t}(u)?.sessionId)??void 0;var u;const c=r?.parentId??"string"==typeof e?void 0:e._parent?.sessionId;n({type:"@xstate.actor",name:i?i.id:o,sessionId:o,createdAt:Date.now().toString(),_version:v.version,rootId:a,parentId:c,id:null,definition:s,snapshot:t??{status:"active"}})},event:(e,t,r)=>{const o="string"==typeof e?e:e.sessionId;n({type:"@xstate.event",sourceId:r?.source?"string"==typeof r.source?r.source:r.source.sessionId:void 0,sessionId:o,event:y(t),id:Math.random().toString(),createdAt:Date.now().toString(),rootId:"anonymous",_version:v.version})},snapshot:(e,t,r)=>{const o="string"==typeof e?e:e.sessionId;n({type:"@xstate.snapshot",snapshot:{status:"active",...t},event:r?.event??{type:""},sessionId:o,id:null,createdAt:Date.now().toString(),rootId:"anonymous",_version:v.version})},inspect:{next:e=>{var t;t=function(){const t=function(e){switch(e.type){case"@xstate.actor":{const t=e.actorRef,n=t?.logic,r=n?.config;let o=t.id;return o===t.sessionId&&r&&(o=r.id),{name:o,type:"@xstate.actor",definition:"object"==typeof r?(0,m.default)(r,((e,t)=>"function"==typeof t?{type:t.name}:t)):(0,m.default)({id:o}),_version:v.version,createdAt:Date.now().toString(),id:null,rootId:e.rootId,parentId:e.actorRef._parent?.sessionId,sessionId:e.actorRef.sessionId,snapshot:e.actorRef.getSnapshot()}}case"@xstate.event":return{type:"@xstate.event",event:e.event,sourceId:e.sourceRef?.sessionId,sessionId:e.actorRef.sessionId,_version:v.version,createdAt:Date.now().toString(),id:null,rootId:e.rootId};case"@xstate.snapshot":return{type:"@xstate.snapshot",event:e.event,snapshot:JSON.parse((0,m.default)(e.snapshot)),sessionId:e.actorRef.sessionId,_version:v.version,createdAt:Date.now().toString(),id:null,rootId:e.rootId};default:if(e.type.startsWith("@xstate."))return;return void console.warn(`Unhandled inspection event type: ${e.type}`)}}(e);t&&n(t)},"undefined"!=typeof window?(window.requestIdleCallback||window.requestAnimationFrame)(t):setTimeout(t,0)}},start(){e.start?.()},stop(){e.stop?.()}}}var w=class{constructor(){}start(){}stop(){}send(e){}},_="@statelyai.connected";function O(e){const t=e?.window??("undefined"==typeof window?void 0:window);if(!t)return console.error("Window does not exist; inspector cannot be started."),new w;const n={url:"https://stately.ai/inspect",filter:()=>!0,serialize:e=>JSON.parse((0,p.default)(e)),autoStart:!0,iframe:null,...e,window:t},r=b(new k(n),n);return n.autoStart&&r.start(),r}var S={replayCount:0,window:"undefined"!=typeof window?window:void 0};function E(e){const t={...S,...e}.window,n=t.self===t.top?t.opener:t.parent,r=new Set;t.addEventListener("message",(e=>{(function(e){return"object"==typeof e&&null!==e&&"string"==typeof e.type&&"string"==typeof e._version})(e.data)&&r.forEach((t=>t.next?.(e.data)))}));const o={subscribe(e){const t=(0,h.toObserver)(e);return r.add(t),{unsubscribe(){r.delete(t)}}}};return n&&n.postMessage({type:_},"*"),o}var k=class{constructor(e){this.options=e}status="disconnected";deferredEvents=[];targetWindow=null;start(){this.targetWindow=this.options.iframe?null:this.options.window.open(String(this.options.url),"xstateinspector"),this.options.iframe&&(this.options.iframe.addEventListener("load",(()=>{this.targetWindow=this.options.iframe?.contentWindow??null})),this.options.iframe?.setAttribute("src",String(this.options.url))),this.options.window.addEventListener("message",(e=>{(function(e){return"object"==typeof e&&null!==e&&"string"==typeof e.type})(e.data)&&"@statelyai.connected"===e.data.type&&(this.status="connected",this.deferredEvents.forEach((e=>{const t=this.options.serialize(e);this.targetWindow?.postMessage(t,"*")})))}))}stop(){this.targetWindow?.postMessage({type:"@statelyai.disconnected"},"*"),this.status="disconnected"}send(e){if(this.options.filter(e)){if(this.options.send)this.options.send(e);else if("connected"===this.status){const t=this.options.serialize(e);this.targetWindow?.postMessage(t,"*")}this.deferredEvents.push(e)}}},I=f(n(90583)),j=n(60237),x=n(35088),P=!1;function T(e={}){const{host:t,apiBaseURL:r}={host:P?"localhost:1999":"stately-sky-beta.mellson.partykit.dev",apiBaseURL:P?"http://localhost:3000/registry/api/sky":"https://stately.ai/registry/api/sky"},o=r.replace("/api/sky",""),{apiKey:i,onerror:s,...a}=e,u=(0,x.v4)(),c=`inspect-${u}`,l=new I.default({host:t,room:c,WebSocket:g?n(4877):void 0}),f=`${o}/inspect/${u}`;return l.onerror=s??console.error,l.onopen=()=>{console.log("Connected to Sky, link to your live inspect session:"),console.log(f)},g?b({...a,send(e){const t=i?{apiKey:i,...e}:e;l.send((0,j.stringify)(t))}}):O({...a,url:f,send(e){const t=i?{apiKey:i,...e}:e;l.send((0,j.stringify)(t))}})}var A=f(n(4877)),$=f(n(30149)),M=n(7872),N=class{ws;status="closed";deferredEvents=[];options;constructor(e){this.options={filter:()=>!0,serialize:e=>JSON.parse((0,$.default)(e)),autoStart:!0,url:"ws://localhost:8080",...e}}start(){const e=()=>{this.ws=new A.default(this.options.url),this.ws.onopen=()=>{console.log("websocket open"),this.status="open",this.deferredEvents.forEach((e=>{const t=this.options.serialize(e);this.ws.send((0,$.default)(t))}))},this.ws.onclose=()=>{console.log("websocket closed")},this.ws.onerror=async t=>{console.error("websocket error",t),await new Promise((e=>setTimeout(e,5e3))),console.warn("restarting"),e()},this.ws.onmessage=e=>{"string"==typeof e.data&&console.log("message",e.data)}};e()}stop(){this.ws.close(),this.status="closed"}send(e){"open"===this.status?this.ws.send((0,$.default)(e)):this.deferredEvents.push(e)}};function C(e){return b(new N(e),e)}function R(e){const t={server:"ws://localhost:8080",...e},n=new Set,r=new A.default(t.server);return r.onopen=()=>{console.log("websocket open"),r.onmessage=e=>{if("string"!=typeof e.data)return;console.log("message",e.data);const t=JSON.parse(e.data);n.forEach((e=>{e.next?.(t)}))}},{subscribe(e){const t=(0,M.toObserver)(e);return n.add(t),{unsubscribe(){n.delete(t)}}}}}},4329:e=>{e.exports=s,s.default=s,s.stable=l,s.stableStringify=l;var t="[...]",n="[Circular]",r=[],o=[];function i(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function s(e,t,n,s){var a;void 0===s&&(s=i()),u(e,"",0,[],void 0,0,s);try{a=0===o.length?JSON.stringify(e,t,n):JSON.stringify(e,d(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==r.length;){var c=r.pop();4===c.length?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}}return a}function a(e,t,n,i){var s=Object.getOwnPropertyDescriptor(i,n);void 0!==s.get?s.configurable?(Object.defineProperty(i,n,{value:e}),r.push([i,n,t,s])):o.push([t,n,e]):(i[n]=e,r.push([i,n,t]))}function u(e,r,o,i,s,c,l){var f;if(c+=1,"object"==typeof e&&null!==e){for(f=0;fl.depthLimit)return void a(t,e,r,s);if(void 0!==l.edgesLimit&&o+1>l.edgesLimit)return void a(t,e,r,s);if(i.push(e),Array.isArray(e))for(f=0;ft?1:0}function l(e,t,n,s){void 0===s&&(s=i());var a,u=f(e,"",0,[],void 0,0,s)||e;try{a=0===o.length?JSON.stringify(u,t,n):JSON.stringify(u,d(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==r.length;){var c=r.pop();4===c.length?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}}return a}function f(e,o,i,s,u,l,d){var p;if(l+=1,"object"==typeof e&&null!==e){for(p=0;pd.depthLimit)return void a(t,e,o,u);if(void 0!==d.edgesLimit&&i+1>d.edgesLimit)return void a(t,e,o,u);if(s.push(e),Array.isArray(e))for(p=0;p0)for(var r=0;r{"use strict";n.r(t),n.d(t,{default:()=>o});var r=null;"undefined"!=typeof WebSocket?r=WebSocket:"undefined"!=typeof MozWebSocket?r=MozWebSocket:void 0!==n.g?r=n.g.WebSocket||n.g.MozWebSocket:"undefined"!=typeof window?r=window.WebSocket||window.MozWebSocket:"undefined"!=typeof self&&(r=self.WebSocket||self.MozWebSocket);const o=r},90583:e=>{"use strict";var t,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,s={};((e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})})(s,{WebSocket:()=>h,default:()=>v}),e.exports=(t=s,((e,t,s,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of o(t))i.call(e,s)||undefined===s||n(e,s,{get:()=>t[s],enumerable:!(a=r(t,s))||a.enumerable});return e})(n({},"__esModule",{value:!0}),t)),globalThis.EventTarget&&globalThis.Event||console.error("\n PartySocket requires a global 'EventTarget' class to be available!\n You can polyfill this global by adding this to your code before any partysocket imports: \n \n ```\n import 'partysocket/event-target-polyfill';\n ```\n Please file an issue at https://github.com/partykit/partykit if you're still having trouble.\n");var a=class extends Event{message;error;constructor(e,t){super("error",t),this.message=e.message,this.error=e}},u=class extends Event{code;reason;wasClean=!0;constructor(e=1e3,t="",n){super("close",n),this.code=e,this.reason=t}},c=(Event,a),l=u,f="undefined"!=typeof process&&void 0!==process.versions?.node&&"undefined"==typeof document?function(e){return"data"in e?new MessageEvent(e.type,e):"code"in e||"reason"in e?new u(e.code||1999,e.reason||"unknown reason",e):"error"in e?new a(e.error,e):new Event(e.type,e)}:function(e){return new e.constructor(e.type,e)},d={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+4e3*Math.random(),minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0,startClosed:!1,debug:!1},p=!1,h=class e extends EventTarget{_ws;_retryCount=-1;_uptimeTimeout;_connectTimeout;_shouldReconnect=!0;_connectLock=!1;_binaryType="blob";_closeCalled=!1;_messageQueue=[];_debugLogger=console.log.bind(console);_url;_protocols;_options;constructor(e,t,n={}){super(),this._url=e,this._protocols=t,this._options=n,this._options.startClosed&&(this._shouldReconnect=!1),this._options.debugLogger&&(this._debugLogger=this._options.debugLogger),this._connect()}static get CONNECTING(){return 0}static get OPEN(){return 1}static get CLOSING(){return 2}static get CLOSED(){return 3}get CONNECTING(){return e.CONNECTING}get OPEN(){return e.OPEN}get CLOSING(){return e.CLOSING}get CLOSED(){return e.CLOSED}get binaryType(){return this._ws?this._ws.binaryType:this._binaryType}set binaryType(e){this._binaryType=e,this._ws&&(this._ws.binaryType=e)}get retryCount(){return Math.max(this._retryCount,0)}get bufferedAmount(){return this._messageQueue.reduce(((e,t)=>("string"==typeof t?e+=t.length:t instanceof Blob?e+=t.size:e+=t.byteLength,e)),0)+(this._ws?this._ws.bufferedAmount:0)}get extensions(){return this._ws?this._ws.extensions:""}get protocol(){return this._ws?this._ws.protocol:""}get readyState(){return this._ws?this._ws.readyState:this._options.startClosed?e.CLOSED:e.CONNECTING}get url(){return this._ws?this._ws.url:""}get shouldReconnect(){return this._shouldReconnect}onclose=null;onerror=null;onmessage=null;onopen=null;close(e=1e3,t){this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),this._ws?this._ws.readyState!==this.CLOSED?this._ws.close(e,t):this._debug("close: already closed"):this._debug("close enqueued: no ws instance")}reconnect(e,t){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,this._ws&&this._ws.readyState!==this.CLOSED?(this._disconnect(e,t),this._connect()):this._connect()}send(e){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",e),this._ws.send(e);else{const{maxEnqueuedMessages:t=d.maxEnqueuedMessages}=this._options;this._messageQueue.length",...e)}_getNextDelay(){const{reconnectionDelayGrowFactor:e=d.reconnectionDelayGrowFactor,minReconnectionDelay:t=d.minReconnectionDelay,maxReconnectionDelay:n=d.maxReconnectionDelay}=this._options;let r=0;return this._retryCount>0&&(r=t*Math.pow(e,this._retryCount-1),r>n&&(r=n)),this._debug("next delay",r),r}_wait(){return new Promise((e=>{setTimeout(e,this._getNextDelay())}))}_getNextProtocols(e){if(!e)return Promise.resolve(null);if("string"==typeof e||Array.isArray(e))return Promise.resolve(e);if("function"==typeof e){const t=e();if(!t)return Promise.resolve(null);if("string"==typeof t||Array.isArray(t))return Promise.resolve(t);if(t.then)return t}throw Error("Invalid protocols")}_getNextUrl(e){if("string"==typeof e)return Promise.resolve(e);if("function"==typeof e){const t=e();if("string"==typeof t)return Promise.resolve(t);if(t.then)return t}throw Error("Invalid URL")}_connect(){if(this._connectLock||!this._shouldReconnect)return;this._connectLock=!0;const{maxRetries:e=d.maxRetries,connectionTimeout:t=d.connectionTimeout}=this._options;this._retryCount>=e?this._debug("max retries reached",this._retryCount,">=",e):(this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),this._wait().then((()=>Promise.all([this._getNextUrl(this._url),this._getNextProtocols(this._protocols||null)]))).then((([e,n])=>{if(this._closeCalled)return void(this._connectLock=!1);this._options.WebSocket||"undefined"!=typeof WebSocket||p||(console.error("‼️ No WebSocket implementation available. You should define options.WebSocket. \n\nFor example, if you're using node.js, run `npm install ws`, and then in your code:\n\nimport PartySocket from 'partysocket';\nimport WS from 'ws';\n\nconst partysocket = new PartySocket({\n host: \"127.0.0.1:1999\",\n room: \"test-room\",\n WebSocket: WS\n});\n\n"),p=!0);const r=this._options.WebSocket||WebSocket;this._debug("connect",{url:e,protocols:n}),this._ws=n?new r(e,n):new r(e),this._ws.binaryType=this._binaryType,this._connectLock=!1,this._addListeners(),this._connectTimeout=setTimeout((()=>this._handleTimeout()),t)})).catch((e=>{this._connectLock=!1,this._handleError(new c(Error(e.message),this))})))}_handleTimeout(){this._debug("timeout event"),this._handleError(new c(Error("TIMEOUT"),this))}_disconnect(e=1e3,t){if(this._clearTimeouts(),this._ws){this._removeListeners();try{this._ws.close(e,t),this._handleClose(new l(e,t,this))}catch(e){}}}_acceptOpen(){this._debug("accept open"),this._retryCount=0}_handleOpen=e=>{this._debug("open event");const{minUptime:t=d.minUptime}=this._options;clearTimeout(this._connectTimeout),this._uptimeTimeout=setTimeout((()=>this._acceptOpen()),t),function(e,t){if(!e)throw new Error("WebSocket is not defined")}(this._ws),this._ws.binaryType=this._binaryType,this._messageQueue.forEach((e=>this._ws?.send(e))),this._messageQueue=[],this.onopen&&this.onopen(e),this.dispatchEvent(f(e))};_handleMessage=e=>{this._debug("message event"),this.onmessage&&this.onmessage(e),this.dispatchEvent(f(e))};_handleError=e=>{this._debug("error event",e.message),this._disconnect(void 0,"TIMEOUT"===e.message?"timeout":void 0),this.onerror&&this.onerror(e),this._debug("exec error listeners"),this.dispatchEvent(f(e)),this._connect()};_handleClose=e=>{this._debug("close event"),this._clearTimeouts(),this._shouldReconnect&&this._connect(),this.onclose&&this.onclose(e),this.dispatchEvent(f(e))};_removeListeners(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))}_addListeners(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))}_clearTimeouts(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)}},y=e=>null!==e[1]&&void 0!==e[1];function g(e,t,n={}){const{host:r,path:o,protocol:i,room:s,party:a,query:u}=e;let c=r.replace(/^(http|https|ws|wss):\/\//,"");if(c.endsWith("/")&&(c=c.slice(0,-1)),o&&o.startsWith("/"))throw new Error("path must not start with a slash");const l=a??"main",f=o?`/${o}`:"",d=i||(c.startsWith("localhost:")||c.startsWith("127.0.0.1:")||c.startsWith("192.168.")||c.startsWith("10.")||c.startsWith("172.")&&c.split(".")[1]>="16"&&c.split(".")[1]<="31"||c.startsWith("[::ffff:7f00:1]:")?t:t+"s"),p=`${d}://${c}/${a?`parties/${a}`:"party"}/${s}${f}`,h=(e={})=>`${p}?${new URLSearchParams([...Object.entries(n),...Object.entries(e).filter(y)])}`,g="function"==typeof u?async()=>h(await u()):h(u);return{host:c,path:f,room:s,name:l,protocol:d,partyUrl:p,urlProvider:g}}var v=class extends h{constructor(e){const t=m(e);super(t.urlProvider,t.protocols,t.socketOptions),this.partySocketOptions=e,this.setWSProperties(t)}_pk;_pkurl;name;room;host;path;updateProperties(e){const t=m({...this.partySocketOptions,...e,host:e.host??this.host,room:e.room??this.room,path:e.path??this.path});this._url=t.urlProvider,this._protocols=t.protocols,this._options=t.socketOptions,this.setWSProperties(t)}setWSProperties(e){const{_pk:t,_pkurl:n,name:r,room:o,host:i,path:s}=e;this._pk=t,this._pkurl=n,this.name=r,this.room=o,this.host=i,this.path=s}reconnect(e,t){if(!this.room||!this.host)throw new Error("The room and host must be set before connecting, use `updateProperties` method to set them or pass them to the constructor.");super.reconnect(e,t)}get id(){return this._pk}get roomUrl(){return this._pkurl}static async fetch(e,t){const n=g(e,"http"),r="string"==typeof n.urlProvider?n.urlProvider:await n.urlProvider();return(e.fetch??fetch)(r,t)}};function m(e){const{id:t,host:n,path:r,party:o,room:i,protocol:s,query:a,protocols:u,...c}=e,l=t||function(){if("undefined"!=typeof crypto&&crypto.randomUUID)return crypto.randomUUID();let e=(new Date).getTime(),t="undefined"!=typeof performance&&performance.now&&1e3*performance.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(n){let r=16*Math.random();return e>0?(r=(e+r)%16|0,e=Math.floor(e/16)):(r=(t+r)%16|0,t=Math.floor(t/16)),("x"===n?r:3&r|8).toString(16)}))}(),f=g(e,"ws",{_pk:l});return{_pk:l,_pkurl:f.partyUrl,name:f.name,room:f.room,host:f.host,path:f.path,protocols:u,socketOptions:c,urlProvider:f.urlProvider}}},30149:(e,t)=>{"use strict";const{hasOwnProperty:n}=Object.prototype,r=p();r.configure=p,r.stringify=r,r.default=r,t.stringify=r,t.configure=p,e.exports=r;const o=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/;function i(e){return e.length<5e3&&!o.test(e)?`"${e}"`:JSON.stringify(e)}function s(e){if(e.length>200)return e.sort();for(let t=1;tn;)e[r]=e[r-1],r--;e[r]=n}return e}const a=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function u(e){return void 0!==a.call(e)&&0!==e.length}function c(e,t,n){e.length= 1`)}return void 0===r?1/0:r}function d(e){return 1===e?"1 item":`${e} items`}function p(e){const t=function(e){if(n.call(e,"strict")){const t=e.strict;if("boolean"!=typeof t)throw new TypeError('The "strict" argument must be of type boolean');if(t)return e=>{let t="Object can not safely be stringified. Received type "+typeof e;throw"function"!=typeof e&&(t+=` (${e.toString()})`),new Error(t)}}}(e={...e});t&&(void 0===e.bigint&&(e.bigint=!1),"circularValue"in e||(e.circularValue=Error));const r=function(e){if(n.call(e,"circularValue")){const t=e.circularValue;if("string"==typeof t)return`"${t}"`;if(null==t)return t;if(t===Error||t===TypeError)return{toString(){throw new TypeError("Converting circular structure to JSON")}};throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}(e),o=l(e,"bigint"),a=l(e,"deterministic"),p=f(e,"maximumDepth"),h=f(e,"maximumBreadth");function y(e,n,c,l,f,g){let v=n[e];switch("object"==typeof v&&null!==v&&"function"==typeof v.toJSON&&(v=v.toJSON(e)),v=l.call(n,e,v),typeof v){case"string":return i(v);case"object":{if(null===v)return"null";if(-1!==c.indexOf(v))return r;let e="",t=",";const n=g;if(Array.isArray(v)){if(0===v.length)return"[]";if(ph&&(e+=`${t}"... ${d(v.length-h-1)} not stringified"`),""!==f&&(e+=`\n${n}`),c.pop(),`[${e}]`}let o=Object.keys(v);const m=o.length;if(0===m)return"{}";if(ph&&(e+=`${w}"...":${b}"${d(m-h)} not stringified"`,w=t),""!==f&&w.length>1&&(e=`\n${g}${e}\n${n}`),c.pop(),`{${e}}`}case"number":return isFinite(v)?String(v):t?t(v):"null";case"boolean":return!0===v?"true":"false";case"undefined":return;case"bigint":if(o)return String(v);default:return t?t(v):void 0}}function g(e,n,s,a,u,c){switch("object"==typeof n&&null!==n&&"function"==typeof n.toJSON&&(n=n.toJSON(e)),typeof n){case"string":return i(n);case"object":{if(null===n)return"null";if(-1!==s.indexOf(n))return r;const e=c;let t="",o=",";if(Array.isArray(n)){if(0===n.length)return"[]";if(ph&&(t+=`${o}"... ${d(n.length-h-1)} not stringified"`),""!==u&&(t+=`\n${e}`),s.pop(),`[${t}]`}s.push(n);let l="";""!==u&&(o=`,\n${c+=u}`,l=" ");let f="";for(const e of a){const r=g(e,n[e],s,a,u,c);void 0!==r&&(t+=`${f}${i(e)}:${l}${r}`,f=o)}return""!==u&&f.length>1&&(t=`\n${c}${t}\n${e}`),s.pop(),`{${t}}`}case"number":return isFinite(n)?String(n):t?t(n):"null";case"boolean":return!0===n?"true":"false";case"undefined":return;case"bigint":if(o)return String(n);default:return t?t(n):void 0}}function v(e,n,l,f,y){switch(typeof n){case"string":return i(n);case"object":{if(null===n)return"null";if("function"==typeof n.toJSON){if("object"!=typeof(n=n.toJSON(e)))return v(e,n,l,f,y);if(null===n)return"null"}if(-1!==l.indexOf(n))return r;const t=y;if(Array.isArray(n)){if(0===n.length)return"[]";if(ph&&(e+=`${r}"... ${d(n.length-h-1)} not stringified"`),e+=`\n${t}`,l.pop(),`[${e}]`}let o=Object.keys(n);const g=o.length;if(0===g)return"{}";if(ph&&(b+=`${w}"...": "${d(g-h)} not stringified"`,w=m),""!==w&&(b=`\n${y}${b}\n${t}`),l.pop(),`{${b}}`}case"number":return isFinite(n)?String(n):t?t(n):"null";case"boolean":return!0===n?"true":"false";case"undefined":return;case"bigint":if(o)return String(n);default:return t?t(n):void 0}}function m(e,n,l){switch(typeof n){case"string":return i(n);case"object":{if(null===n)return"null";if("function"==typeof n.toJSON){if("object"!=typeof(n=n.toJSON(e)))return m(e,n,l);if(null===n)return"null"}if(-1!==l.indexOf(n))return r;let t="";if(Array.isArray(n)){if(0===n.length)return"[]";if(ph&&(t+=`,"... ${d(n.length-h-1)} not stringified"`),l.pop(),`[${t}]`}let o=Object.keys(n);const f=o.length;if(0===f)return"{}";if(ph&&(t+=`${y}"...":"${d(f-h)} not stringified"`),l.pop(),`{${t}}`}case"number":return isFinite(n)?String(n):t?t(n):"null";case"boolean":return!0===n?"true":"false";case"undefined":return;case"bigint":if(o)return String(n);default:return t?t(n):void 0}}return function(e,t,n){if(arguments.length>1){let r="";if("number"==typeof n?r=" ".repeat(Math.min(n,10)):"string"==typeof n&&(r=n.slice(0,10)),null!=t){if("function"==typeof t)return y("",{"":e},[],t,r,"");if(Array.isArray(t))return g("",e,[],function(e){const t=new Set;for(const n of e)"string"!=typeof n&&"number"!=typeof n||t.add(String(n));return t}(t),r,"")}if(0!==r.length)return v("",e,[],r,"")}return m("",e,[])}}},60237:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SuperJSON:()=>Y,allowErrorProps:()=>se,default:()=>H,deserialize:()=>ee,parse:()=>ne,registerClass:()=>re,registerCustom:()=>oe,registerSymbol:()=>ie,serialize:()=>Z,stringify:()=>te});var r,o=function(){function e(){this.keyToValue=new Map,this.valueToKey=new Map}return e.prototype.set=function(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)},e.prototype.getByKey=function(e){return this.keyToValue.get(e)},e.prototype.getByValue=function(e){return this.valueToKey.get(e)},e.prototype.clear=function(){this.keyToValue.clear(),this.valueToKey.clear()},e}(),i=function(){function e(e){this.generateIdentifier=e,this.kv=new o}return e.prototype.register=function(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))},e.prototype.clear=function(){this.kv.clear()},e.prototype.getIdentifier=function(e){return this.kv.getByValue(e)},e.prototype.getValue=function(e){return this.kv.getByKey(e)},e}(),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(){var t=e.call(this,(function(e){return e.name}))||this;return t.classToAllowedProps=new Map,t}return s(t,e),t.prototype.register=function(t,n){"object"==typeof n?(n.allowProps&&this.classToAllowedProps.set(t,n.allowProps),e.prototype.register.call(this,t,n.identifier)):e.prototype.register.call(this,t,n)},t.prototype.getAllowedProps=function(e){return this.classToAllowedProps.get(e)},t}(i),u=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s};function c(e,t){Object.entries(e).forEach((function(e){var n=u(e,2),r=n[0],o=n[1];return t(o,r)}))}function l(e,t){return-1!==e.indexOf(t)}function f(e,t){for(var n=0;n0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},I=function(e,t){for(var n=0,r=t.length,o=e.length;n0?"Infinity":"-Infinity"}),Number),j((function(e){return 0===e&&1/e==-1/0}),"number",(function(){return"-0"}),Number),j((function(e){return e instanceof URL}),"URL",(function(e){return e.toString()}),(function(e){return new URL(e)}))];function P(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var T=P((function(e,t){return!!b(e)&&!!t.symbolRegistry.getIdentifier(e)}),(function(e,t){return["symbol",t.symbolRegistry.getIdentifier(e)]}),(function(e){return e.description}),(function(e,t,n){var r=n.symbolRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown symbol");return r})),A=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((function(e,t){return e[t.name]=t,e}),{}),$=P((function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}),(function(e){return["typed-array",e.constructor.name]}),(function(e){return I([],k(e))}),(function(e,t){var n=A[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)}));function M(e,t){return!!(null==e?void 0:e.constructor)&&!!t.classRegistry.getIdentifier(e.constructor)}var N=P(M,(function(e,t){return["class",t.classRegistry.getIdentifier(e.constructor)]}),(function(e,t){var n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return E({},e);var r={};return n.forEach((function(t){r[t]=e[t]})),r}),(function(e,t,n){var r=n.classRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(r.prototype),e)})),C=P((function(e,t){return!!t.customTransformerRegistry.findApplicable(e)}),(function(e,t){return["custom",t.customTransformerRegistry.findApplicable(e).name]}),(function(e,t){return t.customTransformerRegistry.findApplicable(e).serialize(e)}),(function(e,t,n){var r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw new Error("Trying to deserialize unknown custom value");return r.deserialize(e)})),R=[N,T,C,$],L=function(e,t){var n=f(R,(function(n){return n.isApplicable(e,t)}));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};var r=f(x,(function(n){return n.isApplicable(e,t)}));return r?{value:r.transform(e,t),type:r.annotation}:void 0},U={};x.forEach((function(e){U[e.annotation]=e}));var D=function(e,t){for(var n=e.keys();t>0;)n.next(),t--;return n.next().value};function W(e){if(l(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(l(e,"prototype"))throw new Error("prototype is not allowed as a property");if(l(e,"constructor"))throw new Error("constructor is not allowed as a property")}var z=function(e,t,n){if(W(t),0===t.length)return n(e);for(var r=e,o=0;o0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},J=function(e,t){for(var n=0,r=t.length,o=e.length;nQ(e,t))):function(e){if("Object"!==G(e))return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}(e)?[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)].reduce(((n,r)=>(K(t.props)&&!t.props.includes(r)||function(e,t,n,r,o){const i={}.propertyIsEnumerable.call(r,t)?"enumerable":"nonenumerable";"enumerable"===i&&(e[t]=n),o&&"nonenumerable"===i&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}(n,r,Q(e[r],t),e,t.nonenumerable),n)),{}):e}var X=function(){return X=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}(t)))},e.defaultInstance=new e,e.serialize=e.defaultInstance.serialize.bind(e.defaultInstance),e.deserialize=e.defaultInstance.deserialize.bind(e.defaultInstance),e.stringify=e.defaultInstance.stringify.bind(e.defaultInstance),e.parse=e.defaultInstance.parse.bind(e.defaultInstance),e.registerClass=e.defaultInstance.registerClass.bind(e.defaultInstance),e.registerSymbol=e.defaultInstance.registerSymbol.bind(e.defaultInstance),e.registerCustom=e.defaultInstance.registerCustom.bind(e.defaultInstance),e.allowErrorProps=e.defaultInstance.allowErrorProps.bind(e.defaultInstance),e}();const H=Y;var Z=Y.serialize,ee=Y.deserialize,te=Y.stringify,ne=Y.parse,re=Y.registerClass,oe=Y.registerCustom,ie=Y.registerSymbol,se=Y.allowErrorProps},35088:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return u.default}});var r=d(n(49576)),o=d(n(93377)),i=d(n(70703)),s=d(n(73681)),a=d(n(47112)),u=d(n(10997)),c=d(n(29783)),l=d(n(29483)),f=d(n(9283));function d(e){return e&&e.__esModule?e:{default:e}}},24688:(e,t)=>{"use strict";function n(e){return 14+(e+64>>>9<<4)+1}function r(e,t){const n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function o(e,t,n,o,i,s){return r((a=r(r(t,e),r(o,s)))<<(u=i)|a>>>32-u,n);var a,u}function i(e,t,n,r,i,s,a){return o(t&n|~t&r,e,t,i,s,a)}function s(e,t,n,r,i,s,a){return o(t&r|n&~r,e,t,i,s,a)}function a(e,t,n,r,i,s,a){return o(t^n^r,e,t,i,s,a)}function u(e,t,n,r,i,s,a){return o(n^(t|~r),e,t,i,s,a)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let n=0;n>5]>>>o%32&255,i=parseInt(r.charAt(n>>>4&15)+r.charAt(15&n),16);t.push(i)}return t}(function(e,t){e[t>>5]|=128<>5]|=(255&e[n/8])<{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};t.default=n},47112:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="00000000-0000-0000-0000-000000000000"},9283:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(29783))&&r.__esModule?r:{default:r};t.default=function(e){if(!(0,o.default)(e))throw TypeError("Invalid UUID");let t;const n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}},13031:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},18891:(e,t)=>{"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!n&&(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!n))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(r)};const r=new Uint8Array(16)},92278:(e,t)=>{"use strict";function n(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function r(e,t){return e<>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){const t=[1518500249,1859775393,2400959708,3395469782],o=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let n=0;n>>0;f=l,l=c,c=r(u,30)>>>0,u=s,s=a}o[0]=o[0]+s>>>0,o[1]=o[1]+u>>>0,o[2]=o[2]+c>>>0,o[3]=o[3]+l>>>0,o[4]=o[4]+f>>>0}return[o[0]>>24&255,o[0]>>16&255,o[0]>>8&255,255&o[0],o[1]>>24&255,o[1]>>16&255,o[1]>>8&255,255&o[1],o[2]>>24&255,o[2]>>16&255,o[2]>>8&255,255&o[2],o[3]>>24&255,o[3]>>16&255,o[3]>>8&255,255&o[3],o[4]>>24&255,o[4]>>16&255,o[4]>>8&255,255&o[4]]}},29483:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=s;var r,o=(r=n(29783))&&r.__esModule?r:{default:r};const i=[];for(let e=0;e<256;++e)i.push((e+256).toString(16).slice(1));function s(e,t=0){return i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]}t.default=function(e,t=0){const n=s(e,t);if(!(0,o.default)(n))throw TypeError("Stringified UUID is invalid");return n}},49576:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(18891))&&r.__esModule?r:{default:r},i=n(29483);let s,a,u=0,c=0;t.default=function(e,t,n){let r=t&&n||0;const l=t||new Array(16);let f=(e=e||{}).node||s,d=void 0!==e.clockseq?e.clockseq:a;if(null==f||null==d){const t=e.random||(e.rng||o.default)();null==f&&(f=s=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==d&&(d=a=16383&(t[6]<<8|t[7]))}let p=void 0!==e.msecs?e.msecs:Date.now(),h=void 0!==e.nsecs?e.nsecs:c+1;const y=p-u+(h-c)/1e4;if(y<0&&void 0===e.clockseq&&(d=d+1&16383),(y<0||p>u)&&void 0===e.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");u=p,c=h,a=d,p+=122192928e5;const g=(1e4*(268435455&p)+h)%4294967296;l[r++]=g>>>24&255,l[r++]=g>>>16&255,l[r++]=g>>>8&255,l[r++]=255&g;const v=p/4294967296*1e4&268435455;l[r++]=v>>>8&255,l[r++]=255&v,l[r++]=v>>>24&15|16,l[r++]=v>>>16&255,l[r++]=d>>>8|128,l[r++]=255&d;for(let e=0;e<6;++e)l[r+e]=f[e];return t||(0,i.unsafeStringify)(l)}},93377:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(43271)),o=i(n(24688));function i(e){return e&&e.__esModule?e:{default:e}}var s=(0,r.default)("v3",48,o.default);t.default=s},43271:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0,t.default=function(e,t,n){function r(e,r,s,a){var u;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(10009)),o=s(n(18891)),i=n(29483);function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,n){if(r.default.randomUUID&&!t&&!e)return r.default.randomUUID();const s=(e=e||{}).random||(e.rng||o.default)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=s[e];return t}return(0,i.unsafeStringify)(s)}},73681:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(43271)),o=i(n(92278));function i(e){return e&&e.__esModule?e:{default:e}}var s=(0,r.default)("v5",80,o.default);t.default=s},29783:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(13031))&&r.__esModule?r:{default:r};t.default=function(e){return"string"==typeof e&&o.default.test(e)}},10997:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(29783))&&r.__esModule?r:{default:r};t.default=function(e){if(!(0,o.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}}}]);