ednl-liftstatus-web-components 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +2 -0
  3. package/dist/cjs/ednl-liftstatus-web-components.cjs.js +19 -0
  4. package/dist/cjs/index-844f384e.js +1073 -0
  5. package/dist/cjs/index.cjs.js +2 -0
  6. package/dist/cjs/loader.cjs.js +21 -0
  7. package/dist/cjs/ls-3d-scene_8.cjs.entry.js +10130 -0
  8. package/dist/collection/collection-manifest.json +19 -0
  9. package/dist/collection/components/ls-3d-scene/ls-3d-scene.css +4 -0
  10. package/dist/collection/components/ls-3d-scene/ls-3d-scene.js +17 -0
  11. package/dist/collection/components/ls-counters/ls-counters.css +4 -0
  12. package/dist/collection/components/ls-counters/ls-counters.js +17 -0
  13. package/dist/collection/components/ls-data/ls-data.css +4 -0
  14. package/dist/collection/components/ls-data/ls-data.js +51 -0
  15. package/dist/collection/components/ls-history/ls-history.css +4 -0
  16. package/dist/collection/components/ls-history/ls-history.js +17 -0
  17. package/dist/collection/components/ls-status/ls-status.css +4 -0
  18. package/dist/collection/components/ls-status/ls-status.js +24 -0
  19. package/dist/collection/components/ls-status-history/ls-status-history.css +4 -0
  20. package/dist/collection/components/ls-status-history/ls-status-history.js +17 -0
  21. package/dist/collection/components/ls-status-item/ls-status-item.css +19 -0
  22. package/dist/collection/components/ls-status-item/ls-status-item.js +68 -0
  23. package/dist/collection/components/ls-swimlane/ls-swimlane.css +4 -0
  24. package/dist/collection/components/ls-swimlane/ls-swimlane.js +17 -0
  25. package/dist/collection/index.js +1 -0
  26. package/dist/collection/utils/utils.js +3 -0
  27. package/dist/custom-elements/index.d.ts +87 -0
  28. package/dist/custom-elements/index.js +10163 -0
  29. package/dist/ednl-liftstatus-web-components/ednl-liftstatus-web-components.css +1 -0
  30. package/dist/ednl-liftstatus-web-components/ednl-liftstatus-web-components.esm.js +1 -0
  31. package/dist/ednl-liftstatus-web-components/index.esm.js +0 -0
  32. package/dist/ednl-liftstatus-web-components/p-7b9ecd22.js +1 -0
  33. package/dist/ednl-liftstatus-web-components/p-db25283a.entry.js +2 -0
  34. package/dist/esm/ednl-liftstatus-web-components.js +17 -0
  35. package/dist/esm/index-01d5c148.js +1047 -0
  36. package/dist/esm/index.js +1 -0
  37. package/dist/esm/loader.js +17 -0
  38. package/dist/esm/ls-3d-scene_8.entry.js +10119 -0
  39. package/dist/esm/polyfills/core-js.js +11 -0
  40. package/dist/esm/polyfills/css-shim.js +1 -0
  41. package/dist/esm/polyfills/dom.js +79 -0
  42. package/dist/esm/polyfills/es5-html-element.js +1 -0
  43. package/dist/esm/polyfills/index.js +34 -0
  44. package/dist/esm/polyfills/system.js +6 -0
  45. package/dist/index.cjs.js +1 -0
  46. package/dist/index.js +1 -0
  47. package/dist/types/components/ls-3d-scene/ls-3d-scene.d.ts +3 -0
  48. package/dist/types/components/ls-counters/ls-counters.d.ts +3 -0
  49. package/dist/types/components/ls-data/ls-data.d.ts +10 -0
  50. package/dist/types/components/ls-history/ls-history.d.ts +3 -0
  51. package/dist/types/components/ls-status/ls-status.d.ts +3 -0
  52. package/dist/types/components/ls-status-history/ls-status-history.d.ts +3 -0
  53. package/dist/types/components/ls-status-item/ls-status-item.d.ts +26 -0
  54. package/dist/types/components/ls-swimlane/ls-swimlane.d.ts +3 -0
  55. package/dist/types/components.d.ts +144 -0
  56. package/dist/types/index.d.ts +1 -0
  57. package/dist/types/stencil-public-runtime.d.ts +1563 -0
  58. package/dist/types/utils/utils.d.ts +1 -0
  59. package/loader/cdn.js +3 -0
  60. package/loader/index.cjs.js +3 -0
  61. package/loader/index.d.ts +13 -0
  62. package/loader/index.es2017.js +3 -0
  63. package/loader/index.js +4 -0
  64. package/loader/package.json +10 -0
  65. package/package.json +76 -0
@@ -0,0 +1 @@
1
+ :root{--ls-primary-color:#749e91;--ls-secondary-color:#4b7064;--ls-font-family:-apple-system, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue;--ls-font-primary-color:#18181B}
@@ -0,0 +1 @@
1
+ import{p as s,b as t}from"./p-7b9ecd22.js";(()=>{const t=import.meta.url,a={};return""!==t&&(a.resourcesUrl=new URL(".",t).href),s(a)})().then((s=>t([["p-db25283a",[[1,"ls-status"],[1,"ls-3d-scene"],[1,"ls-counters"],[1,"ls-data",{data:[32],socketID:[32]}],[1,"ls-history"],[1,"ls-status-history"],[1,"ls-swimlane"],[1,"ls-status-item",{sensorId:[2,"sensor-id"],dataLabel:[1,"data-label"],sensorData:[32]}]]]],s)));
@@ -0,0 +1 @@
1
+ let t,e,n=!1;const l="undefined"!=typeof window?window:{},s=l.document||{head:{}},o={t:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,l)=>t.addEventListener(e,n,l),rel:(t,e,n,l)=>t.removeEventListener(e,n,l),ce:(t,e)=>new CustomEvent(t,e)},c=t=>Promise.resolve(t),r=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(t){}return!1})(),i=new WeakMap,a=t=>"sc-"+t.o,u={},f=t=>"object"==(t=typeof t)||"function"===t,$=(t,e,...n)=>{let l=null,s=!1,o=!1,c=[];const r=e=>{for(let n=0;n<e.length;n++)l=e[n],Array.isArray(l)?r(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof t&&!f(l))&&(l+=""),s&&o?c[c.length-1].i+=l:c.push(s?d(null,l):l),o=s)};if(r(n),e){const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}const i=d(t,null);return i.u=e,c.length>0&&(i.$=c),i},d=(t,e)=>({t:0,h:t,i:e,p:null,$:null,u:null}),h={},p=(t,e,n,l,s,o)=>{if(n!==l){let c=N(t,e);if(e.toLowerCase(),"class"===e){const e=t.classList,s=m(n),o=m(l);e.remove(...s.filter((t=>t&&!o.includes(t)))),e.add(...o.filter((t=>t&&!s.includes(t))))}else{const r=f(l);if((c||r&&null!==l)&&!s)try{if(t.tagName.includes("-"))t[e]=l;else{let s=null==l?"":l;"list"===e?c=!1:null!=n&&t[e]==s||(t[e]=s)}}catch(t){}null==l||!1===l?!1===l&&""!==t.getAttribute(e)||t.removeAttribute(e):(!c||4&o||s)&&!r&&t.setAttribute(e,l=!0===l?"":l)}}},y=/\s/,m=t=>t?t.split(y):[],w=(t,e,n,l)=>{const s=11===e.p.nodeType&&e.p.host?e.p.host:e.p,o=t&&t.u||u,c=e.u||u;for(l in o)l in c||p(s,l,o[l],void 0,n,e.t);for(l in c)p(s,l,o[l],c[l],n,e.t)},b=(e,n,l)=>{let o,c,r=n.$[l],i=0;if(null!==r.i)o=r.p=s.createTextNode(r.i);else if(o=r.p=s.createElement(r.h),w(null,r,!1),null!=t&&o["s-si"]!==t&&o.classList.add(o["s-si"]=t),r.$)for(i=0;i<r.$.length;++i)c=b(e,r,i),c&&o.appendChild(c);return o},S=(t,n,l,s,o,c)=>{let r,i=t;for(i.shadowRoot&&i.tagName===e&&(i=i.shadowRoot);o<=c;++o)s[o]&&(r=b(null,l,o),r&&(s[o].p=r,i.insertBefore(r,n)))},g=(t,e,n,l)=>{for(;e<=n;++e)(l=t[e])&&l.p.remove()},j=(t,e)=>t.h===e.h,M=(t,e)=>{const n=e.p=t.p,l=t.$,s=e.$,o=e.i;null===o?("slot"===e.h||w(t,e,!1),null!==l&&null!==s?((t,e,n,l)=>{let s,o=0,c=0,r=e.length-1,i=e[0],a=e[r],u=l.length-1,f=l[0],$=l[u];for(;o<=r&&c<=u;)null==i?i=e[++o]:null==a?a=e[--r]:null==f?f=l[++c]:null==$?$=l[--u]:j(i,f)?(M(i,f),i=e[++o],f=l[++c]):j(a,$)?(M(a,$),a=e[--r],$=l[--u]):j(i,$)?(M(i,$),t.insertBefore(i.p,a.p.nextSibling),i=e[++o],$=l[--u]):j(a,f)?(M(a,f),t.insertBefore(a.p,i.p),a=e[--r],f=l[++c]):(s=b(e&&e[c],n,c),f=l[++c],s&&i.p.parentNode.insertBefore(s,i.p));o>r?S(t,null==l[u+1]?null:l[u+1].p,n,l,c,u):c>u&&g(e,o,r)})(n,l,e,s):null!==s?(null!==t.i&&(n.textContent=""),S(n,null,e,s,0,s.length-1)):null!==l&&g(l,0,l.length-1)):t.i!==o&&(n.data=o)},k=(t,e)=>{e&&!t.m&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.m=e)))},v=(t,e)=>{if(t.t|=16,!(4&t.t))return k(t,t.S),X((()=>C(t,e)));t.t|=512},C=(t,e)=>{const n=t.g;let l;return e&&(l=L(n,"componentWillLoad")),T(l,(()=>O(t,n,e)))},O=async(t,e,n)=>{const l=t.j,o=l["s-rc"];n&&(t=>{const e=t.M,n=t.j,l=e.t,o=((t,e)=>{let n=a(e),l=B.get(n);if(t=11===t.nodeType?t:s,l)if("string"==typeof l){let e,o=i.get(t=t.head||t);o||i.set(t,o=new Set),o.has(n)||(e=s.createElement("style"),e.innerHTML=l,t.insertBefore(e,t.querySelector("link")),o&&o.add(n))}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(t);P(t,e),o&&(o.map((t=>t())),l["s-rc"]=void 0);{const e=l["s-p"],n=()=>x(t);0===e.length?n():(Promise.all(e).then(n),t.t|=4,e.length=0)}},P=(n,l)=>{try{l=l.render(),n.t&=-17,n.t|=2,((n,l)=>{const s=n.j,o=n.k||d(null,null),c=(t=>t&&t.h===h)(l)?l:$(null,null,l);e=s.tagName,c.h=null,c.t|=4,n.k=c,c.p=o.p=s.shadowRoot||s,t=s["s-sc"],M(o,c)})(n,l)}catch(t){V(t,n.j)}return null},x=t=>{const e=t.j,n=t.S;64&t.t||(t.t|=64,W(e),t.v(e),n||E()),t.m&&(t.m(),t.m=void 0),512&t.t&&Q((()=>v(t,!1))),t.t&=-517},E=()=>{W(s.documentElement),Q((()=>(t=>{const e=o.ce("appload",{detail:{namespace:"ednl-liftstatus-web-components"}});return t.dispatchEvent(e),e})(l)))},L=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){V(t)}},T=(t,e)=>t&&t.then?t.then(e):e(),W=t=>t.classList.add("hydrated"),A=(t,e,n)=>{if(e.C){const l=Object.entries(e.C),s=t.prototype;if(l.map((([t,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(s,t,{get(){return((t,e)=>R(this).O.get(e))(0,t)},set(n){((t,e,n,l)=>{const s=R(t),o=s.O.get(e),c=s.t,r=s.g;n=((t,e)=>null==t||f(t)?t:2&e?parseFloat(t):1&e?t+"":t)(n,l.C[e][0]),8&c&&void 0!==o||n===o||(s.O.set(e,n),r&&2==(18&c)&&v(s,!1))})(this,t,n,e)},configurable:!0,enumerable:!0})})),1&n){const e=new Map;s.attributeChangedCallback=function(t,n,l){o.jmp((()=>{const n=e.get(t);this.hasOwnProperty(n)&&(l=this[n],delete this[n]),this[n]=(null!==l||"boolean"!=typeof this[n])&&l}))},t.observedAttributes=l.filter((([t,e])=>15&e[0])).map((([t,n])=>{const l=n[1]||t;return e.set(l,t),l}))}}return t},F=(t,e={})=>{const n=[],c=e.exclude||[],i=l.customElements,u=s.head,f=u.querySelector("meta[charset]"),$=s.createElement("style"),d=[];let h,p=!0;Object.assign(o,e),o.l=new URL(e.resourcesUrl||"./",s.baseURI).href,t.map((t=>t[1].map((e=>{const l={t:e[0],o:e[1],C:e[2],P:e[3]};l.C=e[2];const s=l.o,u=class extends HTMLElement{constructor(t){super(t),q(t=this,l),1&l.t&&t.attachShadow({mode:"open"})}connectedCallback(){h&&(clearTimeout(h),h=null),p?d.push(this):o.jmp((()=>(t=>{if(0==(1&o.t)){const e=R(t),n=e.M,l=()=>{};if(!(1&e.t)){e.t|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){k(e,e.S=n);break}}n.C&&Object.entries(n.C).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n,l,s)=>{if(0==(32&e.t)){{if(e.t|=32,(s=z(n)).then){const t=()=>{};s=await s,t()}s.isProxied||(A(s,n,2),s.isProxied=!0);const t=()=>{};e.t|=8;try{new s(e)}catch(t){V(t)}e.t&=-9,t()}if(s.style){let t=s.style;const e=a(n);if(!B.has(e)){const l=()=>{};((t,e,n)=>{let l=B.get(t);r&&n?(l=l||new CSSStyleSheet,l.replace(e)):l=e,B.set(t,l)})(e,t,!!(1&n.t)),l()}}}const o=e.S,c=()=>v(e,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(0,e,n)}l()}})(this)))}disconnectedCallback(){o.jmp((()=>(()=>{0==(1&o.t)&&L(R(this).g,"disconnectedCallback")})()))}componentOnReady(){return R(this).L}};l.T=t[0],c.includes(s)||i.get(s)||(n.push(s),i.define(s,A(u,l,1)))})))),$.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",$.setAttribute("data-styles",""),u.insertBefore($,f?f.nextSibling:u.firstChild),p=!1,d.length?d.map((t=>t.connectedCallback())):o.jmp((()=>h=setTimeout(E,30)))},H=new WeakMap,R=t=>H.get(t),U=(t,e)=>H.set(e.g=t,e),q=(t,e)=>{const n={t:0,j:t,M:e,O:new Map};return n.L=new Promise((t=>n.v=t)),t["s-p"]=[],t["s-rc"]=[],H.set(t,n)},N=(t,e)=>e in t,V=(t,e)=>(0,console.error)(t,e),_=new Map,z=t=>{const e=t.o.replace(/-/g,"_"),n=t.T,l=_.get(n);return l?l[e]:import(`./${n}.entry.js`).then((t=>(_.set(n,t),t[e])),V)},B=new Map,D=[],G=[],I=(t,e)=>l=>{t.push(l),n||(n=!0,e&&4&o.t?Q(K):o.raf(K))},J=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){V(t)}t.length=0},K=()=>{J(D),J(G),(n=D.length>0)&&o.raf(K)},Q=t=>c().then(t),X=I(G,!0);export{h as H,F as b,$ as h,c as p,U as r}
@@ -0,0 +1,2 @@
1
+ import{r as t,h as n,H as i}from"./p-7b9ecd22.js";const r=class{constructor(n){t(this,n)}render(){return n(i,null,n("fieldset",null,n("legend",null,"ls-3d-scene")),n("slot",null))}};r.style=":host{display:block;font-family:var(--ls-font-family)}";const e=class{constructor(n){t(this,n)}render(){return n(i,null,n("fieldset",null,n("legend",null,"ls-counters")),n("slot",null))}};e.style=":host{display:block;font-family:var(--ls-font-family)}";var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(t,n,i){return t(i={path:n,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},i.exports),i.exports}function u(t){if(t.__esModule)return t;var n=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(t).forEach((function(i){var r=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(n,i,r.get?r:{enumerable:!0,get:function(){return t[i]}})})),n}var f=o((function(t,n){var i;i={},("object"==typeof window&&window||s).PubSub=i,function(t){var n={},i=-1;function r(t,n,i){try{t(n,i)}catch(t){setTimeout(function(t){return function(){throw t}}(t),0)}}function e(t,n,i){t(n,i)}function s(t,i,s,o){var u,f=n[i],a=o?e:r;if(Object.prototype.hasOwnProperty.call(n,i))for(u in f)Object.prototype.hasOwnProperty.call(f,u)&&a(f[u],t,s)}function o(t){var i=String(t);return Boolean(Object.prototype.hasOwnProperty.call(n,i)&&function(t){var n;for(n in t)if(Object.prototype.hasOwnProperty.call(t,n))return!0;return!1}(n[i]))}function u(t,n,i,r){var e=function(t,n,i){return function(){var r=String(t),e=r.lastIndexOf(".");for(s(t,t,n,i);-1!==e;)e=(r=r.substr(0,e)).lastIndexOf("."),s(t,r,n,i);s(t,"*",n,i)}}(t="symbol"==typeof t?t.toString():t,n,r);return!!function(t){for(var n=String(t),i=o(n)||o("*"),r=n.lastIndexOf(".");!i&&-1!==r;)r=(n=n.substr(0,r)).lastIndexOf("."),i=o(n);return i}(t)&&(!0===i?e():setTimeout(e,0),!0)}t.publish=function(n,i){return u(n,i,!1,t.immediateExceptions)},t.publishSync=function(n,i){return u(n,i,!0,t.immediateExceptions)},t.subscribe=function(t,r){if("function"!=typeof r)return!1;t="symbol"==typeof t?t.toString():t,Object.prototype.hasOwnProperty.call(n,t)||(n[t]={});var e="uid_"+String(++i);return n[t][e]=r,e},t.subscribeAll=function(n){return t.subscribe("*",n)},t.subscribeOnce=function(n,i){var r=t.subscribe(n,(function(){t.unsubscribe(r),i.apply(this,arguments)}));return t},t.clearAllSubscriptions=function(){n={}},t.clearSubscriptions=function(t){var i;for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&0===i.indexOf(t)&&delete n[i]},t.countSubscriptions=function(t){var i,r,e=0;for(i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&0===i.indexOf(t)){for(r in n[i])e++;break}return e},t.getSubscriptions=function(t){var i,r=[];for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&0===i.indexOf(t)&&r.push(i);return r},t.unsubscribe=function(i){var r,e,s,o="string"==typeof i&&(Object.prototype.hasOwnProperty.call(n,i)||function(t){var i;for(i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&0===i.indexOf(t))return!0;return!1}(i)),u=!o&&"string"==typeof i,f="function"==typeof i,a=!1;if(!o){for(r in n)if(Object.prototype.hasOwnProperty.call(n,r)){if(e=n[r],u&&e[i]){delete e[i],a=i;break}if(f)for(s in e)Object.prototype.hasOwnProperty.call(e,s)&&e[s]===i&&(delete e[s],a=!0)}return a}t.clearSubscriptions(i)}}(i),void 0!==t&&t.exports&&(n=t.exports=i),n.PubSub=i,t.exports=n=i})),a=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,c=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],h=function(t){var n,i,r=t,e=t.indexOf("["),s=t.indexOf("]");-1!=e&&-1!=s&&(t=t.substring(0,e)+t.substring(e,s).replace(/:/g,";")+t.substring(s,t.length));for(var o,u=a.exec(t||""),f={},h=14;h--;)f[c[h]]=u[h]||"";return-1!=e&&-1!=s&&(f.source=r,f.host=f.host.substring(1,f.host.length-1).replace(/;/g,":"),f.authority=f.authority.replace("[","").replace("]","").replace(/;/g,":"),f.ipv6uri=!0),f.pathNames=(i=(n=f.path).replace(/\/{2,9}/g,"/").split("/"),"/"!=n.substr(0,1)&&0!==n.length||i.splice(0,1),"/"==n.substr(n.length-1,1)&&i.splice(i.length-1,1),i),f.queryKey=(o={},f.query.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(t,n,i){n&&(o[n]=i)})),o),f};const l="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function d(){throw new Error("setTimeout has not been defined")}function v(){throw new Error("clearTimeout has not been defined")}var p=d,y=v;function C(t){if(p===setTimeout)return setTimeout(t,0);if((p===d||!p)&&setTimeout)return p=setTimeout,setTimeout(t,0);try{return p(t,0)}catch(n){try{return p.call(null,t,0)}catch(n){return p.call(this,t,0)}}}"function"==typeof l.setTimeout&&(p=setTimeout),"function"==typeof l.clearTimeout&&(y=clearTimeout);var w,g=[],m=!1,b=-1;function F(){m&&w&&(m=!1,w.length?g=w.concat(g):b=-1,g.length&&k())}function k(){if(!m){var t=C(F);m=!0;for(var n=g.length;n;){for(w=g,g=[];++b<n;)w&&w[b].run();b=-1,n=g.length}w=null,m=!1,function(t){if(y===clearTimeout)return clearTimeout(t);if((y===v||!y)&&clearTimeout)return y=clearTimeout,clearTimeout(t);try{y(t)}catch(n){try{return y.call(null,t)}catch(n){return y.call(this,t)}}}(t)}}function A(t,n){this.fun=t,this.array=n}function E(){}A.prototype.run=function(){this.fun.apply(null,this.array)};var M=E,T=E,B=E,j=E,N=E,S=E,R=E,O=l.performance||{},x=O.now||O.mozNow||O.msNow||O.oNow||O.webkitNow||function(){return(new Date).getTime()},I=new Date,U={nextTick:function(t){var n=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)n[i-1]=arguments[i];g.push(new A(t,n)),1!==g.length||m||C(k)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:M,addListener:T,once:B,off:j,removeListener:N,removeAllListeners:S,emit:R,binding:function(){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(t){var n=.001*x.call(O),i=Math.floor(n),r=Math.floor(n%1*1e9);return t&&(i-=t[0],(r-=t[1])<0&&(i--,r+=1e9)),[i,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-I)/1e3}},_=36e5,J=24*_,z=function(t,n){n=n||{};var i=typeof t;if("string"===i&&t.length>0)return function(t){if(!((t=String(t)).length>100)){var n=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(n){var i=parseFloat(n[1]);switch((n[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*i;case"days":case"day":case"d":return i*J;case"hours":case"hour":case"hrs":case"hr":case"h":return i*_;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*i;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*i;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}}}(t);if("number"===i&&!1===isNaN(t))return n.long?function(t){return D(t,J,"day")||D(t,_,"hour")||D(t,6e4,"minute")||D(t,1e3,"second")||t+" ms"}(t):function(t){return t>=J?Math.round(t/J)+"d":t>=_?Math.round(t/_)+"h":t>=6e4?Math.round(t/6e4)+"m":t>=1e3?Math.round(t/1e3)+"s":t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function D(t,n,i){if(!(t<n))return t<1.5*n?Math.floor(t/n)+" "+i:Math.ceil(t/n)+" "+i+"s"}var L=o((function(t,n){function i(t){var i;function e(){if(e.enabled){var t=e,r=+new Date,s=r-(i||r);t.diff=s,t.prev=i,t.curr=r,i=r;for(var o=new Array(arguments.length),u=0;u<o.length;u++)o[u]=arguments[u];o[0]=n.coerce(o[0]),"string"!=typeof o[0]&&o.unshift("%O");var f=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,(function(i,r){if("%%"===i)return i;f++;var e=n.formatters[r];return"function"==typeof e&&(i=e.call(t,o[f]),o.splice(f,1),f--),i})),n.formatArgs.call(t,o);var a=e.log||n.log||console.log.bind(console);a.apply(t,o)}}return e.namespace=t,e.enabled=n.enabled(t),e.useColors=n.useColors(),e.color=function(t){var i,r=0;for(i in t)r=(r<<5)-r+t.charCodeAt(i),r|=0;return n.colors[Math.abs(r)%n.colors.length]}(t),e.destroy=r,"function"==typeof n.init&&n.init(e),n.instances.push(e),e}function r(){var t=n.instances.indexOf(this);return-1!==t&&(n.instances.splice(t,1),!0)}(n=t.exports=i.debug=i.default=i).coerce=function(t){return t instanceof Error?t.stack||t.message:t},n.disable=function(){n.enable("")},n.enable=function(t){var i;n.save(t),n.names=[],n.skips=[];var r=("string"==typeof t?t:"").split(/[\s,]+/),e=r.length;for(i=0;i<e;i++)r[i]&&("-"===(t=r[i].replace(/\*/g,".*?"))[0]?n.skips.push(new RegExp("^"+t.substr(1)+"$")):n.names.push(new RegExp("^"+t+"$")));for(i=0;i<n.instances.length;i++){var s=n.instances[i];s.enabled=n.enabled(s.namespace)}},n.enabled=function(t){if("*"===t[t.length-1])return!0;var i,r;for(i=0,r=n.skips.length;i<r;i++)if(n.skips[i].test(t))return!1;for(i=0,r=n.names.length;i<r;i++)if(n.names[i].test(t))return!0;return!1},n.humanize=z,n.instances=[],n.names=[],n.skips=[],n.formatters={}})),q=o((function(t,n){function i(){var t;try{t=n.storage.debug}catch(t){}return!t&&void 0!==U&&"env"in U&&(t=U.env.DEBUG),t}(n=t.exports=L).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},n.formatArgs=function(t){var i=this.useColors;if(t[0]=(i?"%c":"")+this.namespace+(i?" %c":" ")+t[0]+(i?"%c ":" ")+"+"+n.humanize(this.diff),i){var r="color: "+this.color;t.splice(1,0,r,"color: inherit");var e=0,s=0;t[0].replace(/%[a-zA-Z%]/g,(function(t){"%%"!==t&&(e++,"%c"===t&&(s=e))})),t.splice(s,0,r)}},n.save=function(t){try{null==t?n.storage.removeItem("debug"):n.storage.debug=t}catch(t){}},n.load=i,n.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},n.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),n.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],n.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},n.enable(i())})),$=q("socket.io-client:url"),X=36e5,Z=24*X,H=function(t,n){n=n||{};var i=typeof t;if("string"===i&&t.length>0)return function(t){if(!((t=String(t)).length>100)){var n=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(n){var i=parseFloat(n[1]);switch((n[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*i;case"days":case"day":case"d":return i*Z;case"hours":case"hour":case"hrs":case"hr":case"h":return i*X;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*i;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*i;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}}}(t);if("number"===i&&!1===isNaN(t))return n.long?function(t){return P(t,Z,"day")||P(t,X,"hour")||P(t,6e4,"minute")||P(t,1e3,"second")||t+" ms"}(t):function(t){return t>=Z?Math.round(t/Z)+"d":t>=X?Math.round(t/X)+"h":t>=6e4?Math.round(t/6e4)+"m":t>=1e3?Math.round(t/1e3)+"s":t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function P(t,n,i){if(!(t<n))return t<1.5*n?Math.floor(t/n)+" "+i:Math.ceil(t/n)+" "+i+"s"}var Y=o((function(t,n){function i(t){var i;function e(){if(e.enabled){var t=e,r=+new Date,s=r-(i||r);t.diff=s,t.prev=i,t.curr=r,i=r;for(var o=new Array(arguments.length),u=0;u<o.length;u++)o[u]=arguments[u];o[0]=n.coerce(o[0]),"string"!=typeof o[0]&&o.unshift("%O");var f=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,(function(i,r){if("%%"===i)return i;f++;var e=n.formatters[r];return"function"==typeof e&&(i=e.call(t,o[f]),o.splice(f,1),f--),i})),n.formatArgs.call(t,o);var a=e.log||n.log||console.log.bind(console);a.apply(t,o)}}return e.namespace=t,e.enabled=n.enabled(t),e.useColors=n.useColors(),e.color=function(t){var i,r=0;for(i in t)r=(r<<5)-r+t.charCodeAt(i),r|=0;return n.colors[Math.abs(r)%n.colors.length]}(t),e.destroy=r,"function"==typeof n.init&&n.init(e),n.instances.push(e),e}function r(){var t=n.instances.indexOf(this);return-1!==t&&(n.instances.splice(t,1),!0)}(n=t.exports=i.debug=i.default=i).coerce=function(t){return t instanceof Error?t.stack||t.message:t},n.disable=function(){n.enable("")},n.enable=function(t){var i;n.save(t),n.names=[],n.skips=[];var r=("string"==typeof t?t:"").split(/[\s,]+/),e=r.length;for(i=0;i<e;i++)r[i]&&("-"===(t=r[i].replace(/\*/g,".*?"))[0]?n.skips.push(new RegExp("^"+t.substr(1)+"$")):n.names.push(new RegExp("^"+t+"$")));for(i=0;i<n.instances.length;i++){var s=n.instances[i];s.enabled=n.enabled(s.namespace)}},n.enabled=function(t){if("*"===t[t.length-1])return!0;var i,r;for(i=0,r=n.skips.length;i<r;i++)if(n.skips[i].test(t))return!1;for(i=0,r=n.names.length;i<r;i++)if(n.names[i].test(t))return!0;return!1},n.humanize=H,n.instances=[],n.names=[],n.skips=[],n.formatters={}})),V=o((function(t,n){function i(){var t;try{t=n.storage.debug}catch(t){}return!t&&void 0!==U&&"env"in U&&(t=U.env.DEBUG),t}(n=t.exports=Y).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},n.formatArgs=function(t){var i=this.useColors;if(t[0]=(i?"%c":"")+this.namespace+(i?" %c":" ")+t[0]+(i?"%c ":" ")+"+"+n.humanize(this.diff),i){var r="color: "+this.color;t.splice(1,0,r,"color: inherit");var e=0,s=0;t[0].replace(/%[a-zA-Z%]/g,(function(t){"%%"!==t&&(e++,"%c"===t&&(s=e))})),t.splice(s,0,r)}},n.save=function(t){try{null==t?n.storage.removeItem("debug"):n.storage.debug=t}catch(t){}},n.load=i,n.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},n.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),n.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],n.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},n.enable(i())})),W=o((function(t){function n(t){if(t)return function(t){for(var i in n.prototype)t[i]=n.prototype[i];return t}(t)}t.exports=n,n.prototype.on=n.prototype.addEventListener=function(t,n){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(n),this},n.prototype.once=function(t,n){function i(){this.off(t,i),n.apply(this,arguments)}return i.fn=n,this.on(t,i),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(t,n){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var i,r=this._callbacks["$"+t];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var e=0;e<r.length;e++)if((i=r[e])===n||i.fn===n){r.splice(e,1);break}return 0===r.length&&delete this._callbacks["$"+t],this},n.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var n=new Array(arguments.length-1),i=this._callbacks["$"+t],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(i){r=0;for(var e=(i=i.slice(0)).length;r<e;++r)i[r].apply(this,n)}return this},n.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},n.prototype.hasListeners=function(t){return!!this.listeners(t).length}})),G={}.toString,K=Array.isArray||function(t){return"[object Array]"==G.call(t)},Q=[],tt=[],nt="undefined"!=typeof Uint8Array?Uint8Array:Array,it=!1;function rt(){it=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=0,i=t.length;n<i;++n)Q[n]=t[n],tt[t.charCodeAt(n)]=n;tt["-".charCodeAt(0)]=62,tt["_".charCodeAt(0)]=63}function et(t,n,i){for(var r,e=[],s=n;s<i;s+=3)e.push(Q[(r=(t[s]<<16)+(t[s+1]<<8)+t[s+2])>>18&63]+Q[r>>12&63]+Q[r>>6&63]+Q[63&r]);return e.join("")}function st(t,n,i,r,e){var s,o,u=8*e-r-1,f=(1<<u)-1,a=f>>1,c=-7,h=i?e-1:0,l=i?-1:1,d=t[n+h];for(h+=l,s=d&(1<<-c)-1,d>>=-c,c+=u;c>0;s=256*s+t[n+h],h+=l,c-=8);for(o=s&(1<<-c)-1,s>>=-c,c+=r;c>0;o=256*o+t[n+h],h+=l,c-=8);if(0===s)s=1-a;else{if(s===f)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,r),s-=a}return(d?-1:1)*o*Math.pow(2,s-r)}function ot(t,n,i,r,e,s){var o,u,f,a=8*s-e-1,c=(1<<a)-1,h=c>>1,l=23===e?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:s-1,v=r?1:-1,p=n<0||0===n&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(u=isNaN(n)?1:0,o=c):(o=Math.floor(Math.log(n)/Math.LN2),n*(f=Math.pow(2,-o))<1&&(o--,f*=2),(n+=o+h>=1?l/f:l*Math.pow(2,1-h))*f>=2&&(o++,f/=2),o+h>=c?(u=0,o=c):o+h>=1?(u=(n*f-1)*Math.pow(2,e),o+=h):(u=n*Math.pow(2,h-1)*Math.pow(2,e),o=0));e>=8;t[i+d]=255&u,d+=v,u/=256,e-=8);for(o=o<<e|u,a+=e;a>0;t[i+d]=255&o,d+=v,o/=256,a-=8);t[i+d-v]|=128*p}var ut={}.toString,ft=Array.isArray||function(t){return"[object Array]"==ut.call(t)};function at(){return ht.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function ct(t,n){if(at()<n)throw new RangeError("Invalid typed array length");return ht.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(n)).__proto__=ht.prototype:(null===t&&(t=new ht(n)),t.length=n),t}function ht(t,n,i){if(!(ht.TYPED_ARRAY_SUPPORT||this instanceof ht))return new ht(t,n,i);if("number"==typeof t){if("string"==typeof n)throw new Error("If encoding is specified then the first argument must be a string");return vt(this,t)}return lt(this,t,n,i)}function lt(t,n,i,r){if("number"==typeof n)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer?function(t,n,i,r){if(i<0||n.byteLength<i)throw new RangeError("'offset' is out of bounds");if(n.byteLength<i+(r||0))throw new RangeError("'length' is out of bounds");return n=void 0===i&&void 0===r?new Uint8Array(n):void 0===r?new Uint8Array(n,i):new Uint8Array(n,i,r),ht.TYPED_ARRAY_SUPPORT?(t=n).__proto__=ht.prototype:t=pt(t,n),t}(t,n,i,r):"string"==typeof n?function(t,n,i){if("string"==typeof i&&""!==i||(i="utf8"),!ht.isEncoding(i))throw new TypeError('"encoding" must be a valid string encoding');var r=0|wt(n,i),e=(t=ct(t,r)).write(n,i);return e!==r&&(t=t.slice(0,e)),t}(t,n,i):function(t,n){if(Ct(n)){var i=0|yt(n.length);return 0===(t=ct(t,i)).length||n.copy(t,0,0,i),t}if(n){if("undefined"!=typeof ArrayBuffer&&n.buffer instanceof ArrayBuffer||"length"in n)return"number"!=typeof n.length||(r=n.length)!=r?ct(t,0):pt(t,n);if("Buffer"===n.type&&ft(n.data))return pt(t,n.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,n)}function dt(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function vt(t,n){if(dt(n),t=ct(t,n<0?0:0|yt(n)),!ht.TYPED_ARRAY_SUPPORT)for(var i=0;i<n;++i)t[i]=0;return t}function pt(t,n){var i=n.length<0?0:0|yt(n.length);t=ct(t,i);for(var r=0;r<i;r+=1)t[r]=255&n[r];return t}function yt(t){if(t>=at())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+at().toString(16)+" bytes");return 0|t}function Ct(t){return!(null==t||!t._isBuffer)}function wt(t,n){if(Ct(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var i=t.length;if(0===i)return 0;for(var r=!1;;)switch(n){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return $t(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return Xt(t).length;default:if(r)return $t(t).length;n=(""+n).toLowerCase(),r=!0}}function gt(t,n,i){var r=!1;if((void 0===n||n<0)&&(n=0),n>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(n>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return Ot(this,n,i);case"utf8":case"utf-8":return Nt(this,n,i);case"ascii":return St(this,n,i);case"latin1":case"binary":return Rt(this,n,i);case"base64":return jt(this,n,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return xt(this,n,i);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function mt(t,n,i){var r=t[n];t[n]=t[i],t[i]=r}function bt(t,n,i,r,e){if(0===t.length)return-1;if("string"==typeof i?(r=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=e?0:t.length-1),i<0&&(i=t.length+i),i>=t.length){if(e)return-1;i=t.length-1}else if(i<0){if(!e)return-1;i=0}if("string"==typeof n&&(n=ht.from(n,r)),Ct(n))return 0===n.length?-1:Ft(t,n,i,r,e);if("number"==typeof n)return n&=255,ht.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?e?Uint8Array.prototype.indexOf.call(t,n,i):Uint8Array.prototype.lastIndexOf.call(t,n,i):Ft(t,[n],i,r,e);throw new TypeError("val must be string, number or Buffer")}function Ft(t,n,i,r,e){var s,o=1,u=t.length,f=n.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||n.length<2)return-1;o=2,u/=2,f/=2,i/=2}function a(t,n){return 1===o?t[n]:t.readUInt16BE(n*o)}if(e){var c=-1;for(s=i;s<u;s++)if(a(t,s)===a(n,-1===c?0:s-c)){if(-1===c&&(c=s),s-c+1===f)return c*o}else-1!==c&&(s-=s-c),c=-1}else for(i+f>u&&(i=u-f),s=i;s>=0;s--){for(var h=!0,l=0;l<f;l++)if(a(t,s+l)!==a(n,l)){h=!1;break}if(h)return s}return-1}function kt(t,n,i,r){i=Number(i)||0;var e=t.length-i;r?(r=Number(r))>e&&(r=e):r=e;var s=n.length;if(s%2!=0)throw new TypeError("Invalid hex string");r>s/2&&(r=s/2);for(var o=0;o<r;++o){var u=parseInt(n.substr(2*o,2),16);if(isNaN(u))return o;t[i+o]=u}return o}function At(t,n,i,r){return Zt($t(n,t.length-i),t,i,r)}function Et(t,n,i,r){return Zt(function(t){for(var n=[],i=0;i<t.length;++i)n.push(255&t.charCodeAt(i));return n}(n),t,i,r)}function Mt(t,n,i,r){return Et(t,n,i,r)}function Tt(t,n,i,r){return Zt(Xt(n),t,i,r)}function Bt(t,n,i,r){return Zt(function(t,n){for(var i,r,e=[],s=0;s<t.length&&!((n-=2)<0);++s)r=(i=t.charCodeAt(s))>>8,e.push(i%256),e.push(r);return e}(n,t.length-i),t,i,r)}function jt(t,n,i){return function(t){var n;it||rt();for(var i=t.length,r=i%3,e="",s=[],o=16383,u=0,f=i-r;u<f;u+=o)s.push(et(t,u,u+o>f?f:u+o));return 1===r?(e+=Q[(n=t[i-1])>>2],e+=Q[n<<4&63],e+="=="):2===r&&(e+=Q[(n=(t[i-2]<<8)+t[i-1])>>10],e+=Q[n>>4&63],e+=Q[n<<2&63],e+="="),s.push(e),s.join("")}(0===n&&i===t.length?t:t.slice(n,i))}function Nt(t,n,i){i=Math.min(t.length,i);for(var r=[],e=n;e<i;){var s,o,u,f,a=t[e],c=null,h=a>239?4:a>223?3:a>191?2:1;if(e+h<=i)switch(h){case 1:a<128&&(c=a);break;case 2:128==(192&(s=t[e+1]))&&(f=(31&a)<<6|63&s)>127&&(c=f);break;case 3:o=t[e+2],128==(192&(s=t[e+1]))&&128==(192&o)&&(f=(15&a)<<12|(63&s)<<6|63&o)>2047&&(f<55296||f>57343)&&(c=f);break;case 4:o=t[e+2],u=t[e+3],128==(192&(s=t[e+1]))&&128==(192&o)&&128==(192&u)&&(f=(15&a)<<18|(63&s)<<12|(63&o)<<6|63&u)>65535&&f<1114112&&(c=f)}null===c?(c=65533,h=1):c>65535&&(r.push((c-=65536)>>>10&1023|55296),c=56320|1023&c),r.push(c),e+=h}return function(t){var n=t.length;if(n<=4096)return String.fromCharCode.apply(String,t);for(var i="",r=0;r<n;)i+=String.fromCharCode.apply(String,t.slice(r,r+=4096));return i}(r)}function St(t,n,i){var r="";i=Math.min(t.length,i);for(var e=n;e<i;++e)r+=String.fromCharCode(127&t[e]);return r}function Rt(t,n,i){var r="";i=Math.min(t.length,i);for(var e=n;e<i;++e)r+=String.fromCharCode(t[e]);return r}function Ot(t,n,i){var r,e=t.length;(!n||n<0)&&(n=0),(!i||i<0||i>e)&&(i=e);for(var s="",o=n;o<i;++o)s+=(r=t[o])<16?"0"+r.toString(16):r.toString(16);return s}function xt(t,n,i){for(var r=t.slice(n,i),e="",s=0;s<r.length;s+=2)e+=String.fromCharCode(r[s]+256*r[s+1]);return e}function It(t,n,i){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+n>i)throw new RangeError("Trying to access beyond buffer length")}function Ut(t,n,i,r,e,s){if(!Ct(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>e||n<s)throw new RangeError('"value" argument is out of bounds');if(i+r>t.length)throw new RangeError("Index out of range")}function _t(t,n,i,r){n<0&&(n=65535+n+1);for(var e=0,s=Math.min(t.length-i,2);e<s;++e)t[i+e]=(n&255<<8*(r?e:1-e))>>>8*(r?e:1-e)}function Jt(t,n,i,r){n<0&&(n=4294967295+n+1);for(var e=0,s=Math.min(t.length-i,4);e<s;++e)t[i+e]=n>>>8*(r?e:3-e)&255}function zt(t,n,i,r){if(i+r>t.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function Dt(t,n,i,r,e){return e||zt(t,0,i,4),ot(t,n,i,r,23,4),i+4}function Lt(t,n,i,r,e){return e||zt(t,0,i,8),ot(t,n,i,r,52,8),i+8}ht.TYPED_ARRAY_SUPPORT=void 0===l.TYPED_ARRAY_SUPPORT||l.TYPED_ARRAY_SUPPORT,ht.poolSize=8192,ht._augment=function(t){return t.__proto__=ht.prototype,t},ht.from=function(t,n,i){return lt(null,t,n,i)},ht.TYPED_ARRAY_SUPPORT&&(ht.prototype.__proto__=Uint8Array.prototype,ht.__proto__=Uint8Array),ht.alloc=function(t,n,i){return function(t,n,i,r){return dt(n),n<=0?ct(t,n):void 0!==i?"string"==typeof r?ct(t,n).fill(i,r):ct(t,n).fill(i):ct(t,n)}(null,t,n,i)},ht.allocUnsafe=function(t){return vt(null,t)},ht.allocUnsafeSlow=function(t){return vt(null,t)},ht.isBuffer=function(t){return null!=t&&(!!t._isBuffer||Ht(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&Ht(t.slice(0,0))}(t))},ht.compare=function(t,n){if(!Ct(t)||!Ct(n))throw new TypeError("Arguments must be Buffers");if(t===n)return 0;for(var i=t.length,r=n.length,e=0,s=Math.min(i,r);e<s;++e)if(t[e]!==n[e]){i=t[e],r=n[e];break}return i<r?-1:r<i?1:0},ht.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},ht.concat=function(t,n){if(!ft(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return ht.alloc(0);var i;if(void 0===n)for(n=0,i=0;i<t.length;++i)n+=t[i].length;var r=ht.allocUnsafe(n),e=0;for(i=0;i<t.length;++i){var s=t[i];if(!Ct(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(r,e),e+=s.length}return r},ht.byteLength=wt,ht.prototype._isBuffer=!0,ht.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;n<t;n+=2)mt(this,n,n+1);return this},ht.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var n=0;n<t;n+=4)mt(this,n,n+3),mt(this,n+1,n+2);return this},ht.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var n=0;n<t;n+=8)mt(this,n,n+7),mt(this,n+1,n+6),mt(this,n+2,n+5),mt(this,n+3,n+4);return this},ht.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?Nt(this,0,t):gt.apply(this,arguments)},ht.prototype.equals=function(t){if(!Ct(t))throw new TypeError("Argument must be a Buffer");return this===t||0===ht.compare(this,t)},ht.prototype.inspect=function(){var t="";return this.length>0&&(t=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(t+=" ... ")),"<Buffer "+t+">"},ht.prototype.compare=function(t,n,i,r,e){if(!Ct(t))throw new TypeError("Argument must be a Buffer");if(void 0===n&&(n=0),void 0===i&&(i=t?t.length:0),void 0===r&&(r=0),void 0===e&&(e=this.length),n<0||i>t.length||r<0||e>this.length)throw new RangeError("out of range index");if(r>=e&&n>=i)return 0;if(r>=e)return-1;if(n>=i)return 1;if(this===t)return 0;for(var s=(e>>>=0)-(r>>>=0),o=(i>>>=0)-(n>>>=0),u=Math.min(s,o),f=this.slice(r,e),a=t.slice(n,i),c=0;c<u;++c)if(f[c]!==a[c]){s=f[c],o=a[c];break}return s<o?-1:o<s?1:0},ht.prototype.includes=function(t,n,i){return-1!==this.indexOf(t,n,i)},ht.prototype.indexOf=function(t,n,i){return bt(this,t,n,i,!0)},ht.prototype.lastIndexOf=function(t,n,i){return bt(this,t,n,i,!1)},ht.prototype.write=function(t,n,i,r){if(void 0===n)r="utf8",i=this.length,n=0;else if(void 0===i&&"string"==typeof n)r=n,i=this.length,n=0;else{if(!isFinite(n))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");n|=0,isFinite(i)?(i|=0,void 0===r&&(r="utf8")):(r=i,i=void 0)}var e=this.length-n;if((void 0===i||i>e)&&(i=e),t.length>0&&(i<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var s=!1;;)switch(r){case"hex":return kt(this,t,n,i);case"utf8":case"utf-8":return At(this,t,n,i);case"ascii":return Et(this,t,n,i);case"latin1":case"binary":return Mt(this,t,n,i);case"base64":return Tt(this,t,n,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Bt(this,t,n,i);default:if(s)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),s=!0}},ht.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},ht.prototype.slice=function(t,n){var i,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(n=void 0===n?r:~~n)<0?(n+=r)<0&&(n=0):n>r&&(n=r),n<t&&(n=t),ht.TYPED_ARRAY_SUPPORT)(i=this.subarray(t,n)).__proto__=ht.prototype;else{var e=n-t;i=new ht(e,void 0);for(var s=0;s<e;++s)i[s]=this[s+t]}return i},ht.prototype.readUIntLE=function(t,n,i){t|=0,n|=0,i||It(t,n,this.length);for(var r=this[t],e=1,s=0;++s<n&&(e*=256);)r+=this[t+s]*e;return r},ht.prototype.readUIntBE=function(t,n,i){t|=0,n|=0,i||It(t,n,this.length);for(var r=this[t+--n],e=1;n>0&&(e*=256);)r+=this[t+--n]*e;return r},ht.prototype.readUInt8=function(t,n){return n||It(t,1,this.length),this[t]},ht.prototype.readUInt16LE=function(t,n){return n||It(t,2,this.length),this[t]|this[t+1]<<8},ht.prototype.readUInt16BE=function(t,n){return n||It(t,2,this.length),this[t]<<8|this[t+1]},ht.prototype.readUInt32LE=function(t,n){return n||It(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},ht.prototype.readUInt32BE=function(t,n){return n||It(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},ht.prototype.readIntLE=function(t,n,i){t|=0,n|=0,i||It(t,n,this.length);for(var r=this[t],e=1,s=0;++s<n&&(e*=256);)r+=this[t+s]*e;return r>=(e*=128)&&(r-=Math.pow(2,8*n)),r},ht.prototype.readIntBE=function(t,n,i){t|=0,n|=0,i||It(t,n,this.length);for(var r=n,e=1,s=this[t+--r];r>0&&(e*=256);)s+=this[t+--r]*e;return s>=(e*=128)&&(s-=Math.pow(2,8*n)),s},ht.prototype.readInt8=function(t,n){return n||It(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},ht.prototype.readInt16LE=function(t,n){n||It(t,2,this.length);var i=this[t]|this[t+1]<<8;return 32768&i?4294901760|i:i},ht.prototype.readInt16BE=function(t,n){n||It(t,2,this.length);var i=this[t+1]|this[t]<<8;return 32768&i?4294901760|i:i},ht.prototype.readInt32LE=function(t,n){return n||It(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},ht.prototype.readInt32BE=function(t,n){return n||It(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},ht.prototype.readFloatLE=function(t,n){return n||It(t,4,this.length),st(this,t,!0,23,4)},ht.prototype.readFloatBE=function(t,n){return n||It(t,4,this.length),st(this,t,!1,23,4)},ht.prototype.readDoubleLE=function(t,n){return n||It(t,8,this.length),st(this,t,!0,52,8)},ht.prototype.readDoubleBE=function(t,n){return n||It(t,8,this.length),st(this,t,!1,52,8)},ht.prototype.writeUIntLE=function(t,n,i,r){t=+t,n|=0,i|=0,r||Ut(this,t,n,i,Math.pow(2,8*i)-1,0);var e=1,s=0;for(this[n]=255&t;++s<i&&(e*=256);)this[n+s]=t/e&255;return n+i},ht.prototype.writeUIntBE=function(t,n,i,r){t=+t,n|=0,i|=0,r||Ut(this,t,n,i,Math.pow(2,8*i)-1,0);var e=i-1,s=1;for(this[n+e]=255&t;--e>=0&&(s*=256);)this[n+e]=t/s&255;return n+i},ht.prototype.writeUInt8=function(t,n,i){return t=+t,n|=0,i||Ut(this,t,n,1,255,0),ht.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[n]=255&t,n+1},ht.prototype.writeUInt16LE=function(t,n,i){return t=+t,n|=0,i||Ut(this,t,n,2,65535,0),ht.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8):_t(this,t,n,!0),n+2},ht.prototype.writeUInt16BE=function(t,n,i){return t=+t,n|=0,i||Ut(this,t,n,2,65535,0),ht.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=255&t):_t(this,t,n,!1),n+2},ht.prototype.writeUInt32LE=function(t,n,i){return t=+t,n|=0,i||Ut(this,t,n,4,4294967295,0),ht.TYPED_ARRAY_SUPPORT?(this[n+3]=t>>>24,this[n+2]=t>>>16,this[n+1]=t>>>8,this[n]=255&t):Jt(this,t,n,!0),n+4},ht.prototype.writeUInt32BE=function(t,n,i){return t=+t,n|=0,i||Ut(this,t,n,4,4294967295,0),ht.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=255&t):Jt(this,t,n,!1),n+4},ht.prototype.writeIntLE=function(t,n,i,r){if(t=+t,n|=0,!r){var e=Math.pow(2,8*i-1);Ut(this,t,n,i,e-1,-e)}var s=0,o=1,u=0;for(this[n]=255&t;++s<i&&(o*=256);)t<0&&0===u&&0!==this[n+s-1]&&(u=1),this[n+s]=(t/o>>0)-u&255;return n+i},ht.prototype.writeIntBE=function(t,n,i,r){if(t=+t,n|=0,!r){var e=Math.pow(2,8*i-1);Ut(this,t,n,i,e-1,-e)}var s=i-1,o=1,u=0;for(this[n+s]=255&t;--s>=0&&(o*=256);)t<0&&0===u&&0!==this[n+s+1]&&(u=1),this[n+s]=(t/o>>0)-u&255;return n+i},ht.prototype.writeInt8=function(t,n,i){return t=+t,n|=0,i||Ut(this,t,n,1,127,-128),ht.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[n]=255&t,n+1},ht.prototype.writeInt16LE=function(t,n,i){return t=+t,n|=0,i||Ut(this,t,n,2,32767,-32768),ht.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8):_t(this,t,n,!0),n+2},ht.prototype.writeInt16BE=function(t,n,i){return t=+t,n|=0,i||Ut(this,t,n,2,32767,-32768),ht.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=255&t):_t(this,t,n,!1),n+2},ht.prototype.writeInt32LE=function(t,n,i){return t=+t,n|=0,i||Ut(this,t,n,4,2147483647,-2147483648),ht.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8,this[n+2]=t>>>16,this[n+3]=t>>>24):Jt(this,t,n,!0),n+4},ht.prototype.writeInt32BE=function(t,n,i){return t=+t,n|=0,i||Ut(this,t,n,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),ht.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=255&t):Jt(this,t,n,!1),n+4},ht.prototype.writeFloatLE=function(t,n,i){return Dt(this,t,n,!0,i)},ht.prototype.writeFloatBE=function(t,n,i){return Dt(this,t,n,!1,i)},ht.prototype.writeDoubleLE=function(t,n,i){return Lt(this,t,n,!0,i)},ht.prototype.writeDoubleBE=function(t,n,i){return Lt(this,t,n,!1,i)},ht.prototype.copy=function(t,n,i,r){if(i||(i=0),r||0===r||(r=this.length),n>=t.length&&(n=t.length),n||(n=0),r>0&&r<i&&(r=i),r===i)return 0;if(0===t.length||0===this.length)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-n<r-i&&(r=t.length-n+i);var e,s=r-i;if(this===t&&i<n&&n<r)for(e=s-1;e>=0;--e)t[e+n]=this[e+i];else if(s<1e3||!ht.TYPED_ARRAY_SUPPORT)for(e=0;e<s;++e)t[e+n]=this[e+i];else Uint8Array.prototype.set.call(t,this.subarray(i,i+s),n);return s},ht.prototype.fill=function(t,n,i,r){if("string"==typeof t){if("string"==typeof n?(r=n,n=0,i=this.length):"string"==typeof i&&(r=i,i=this.length),1===t.length){var e=t.charCodeAt(0);e<256&&(t=e)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!ht.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(n<0||this.length<n||this.length<i)throw new RangeError("Out of range index");if(i<=n)return this;var s;if(n>>>=0,i=void 0===i?this.length:i>>>0,t||(t=0),"number"==typeof t)for(s=n;s<i;++s)this[s]=t;else{var o=Ct(t)?t:$t(new ht(t,r).toString()),u=o.length;for(s=0;s<i-n;++s)this[s+n]=o[s%u]}return this};var qt=/[^+\/0-9A-Za-z-_]/g;function $t(t,n){var i;n=n||1/0;for(var r=t.length,e=null,s=[],o=0;o<r;++o){if((i=t.charCodeAt(o))>55295&&i<57344){if(!e){if(i>56319){(n-=3)>-1&&s.push(239,191,189);continue}if(o+1===r){(n-=3)>-1&&s.push(239,191,189);continue}e=i;continue}if(i<56320){(n-=3)>-1&&s.push(239,191,189),e=i;continue}i=65536+(e-55296<<10|i-56320)}else e&&(n-=3)>-1&&s.push(239,191,189);if(e=null,i<128){if((n-=1)<0)break;s.push(i)}else if(i<2048){if((n-=2)<0)break;s.push(i>>6|192,63&i|128)}else if(i<65536){if((n-=3)<0)break;s.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((n-=4)<0)break;s.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return s}function Xt(t){return function(t){var n,i,r,e,s,o;it||rt();var u=t.length;if(u%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o=new nt(3*u/4-(s="="===t[u-2]?2:"="===t[u-1]?1:0)),r=s>0?u-4:u;var f=0;for(n=0,i=0;n<r;n+=4,i+=3)e=tt[t.charCodeAt(n)]<<18|tt[t.charCodeAt(n+1)]<<12|tt[t.charCodeAt(n+2)]<<6|tt[t.charCodeAt(n+3)],o[f++]=e>>16&255,o[f++]=e>>8&255,o[f++]=255&e;return 2===s?(e=tt[t.charCodeAt(n)]<<2|tt[t.charCodeAt(n+1)]>>4,o[f++]=255&e):1===s&&(e=tt[t.charCodeAt(n)]<<10|tt[t.charCodeAt(n+1)]<<4|tt[t.charCodeAt(n+2)]>>2,o[f++]=e>>8&255,o[f++]=255&e),o}(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(qt,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function Zt(t,n,i,r){for(var e=0;e<r&&!(e+i>=n.length||e>=t.length);++e)n[e+i]=t[e];return e}function Ht(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}var Pt=function(t){return Yt&&ht.isBuffer(t)||Vt&&(t instanceof ArrayBuffer||function(t){return"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer}(t))},Yt="function"==typeof ht.isBuffer,Vt="function"==typeof ArrayBuffer,Wt=Object.prototype.toString,Gt="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Wt.call(Blob),Kt="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===Wt.call(File);function Qt(t,n){if(!t)return t;if(Pt(t)){var i={_placeholder:!0,num:n.length};return n.push(t),i}if(K(t)){for(var r=new Array(t.length),e=0;e<t.length;e++)r[e]=Qt(t[e],n);return r}if("object"==typeof t&&!(t instanceof Date)){for(var s in r={},t)r[s]=Qt(t[s],n);return r}return t}function tn(t,n){if(!t)return t;if(t&&t._placeholder)return n[t.num];if(K(t))for(var i=0;i<t.length;i++)t[i]=tn(t[i],n);else if("object"==typeof t)for(var r in t)t[r]=tn(t[r],n);return t}var nn=function(t){var n=[],i=t;return i.data=Qt(t.data,n),i.attachments=n.length,{packet:i,buffers:n}},rn=function(t,n){return t.data=tn(t.data,n),t.attachments=void 0,t},en=o((function(t,n){var i=V("socket.io-parser");function r(){}n.protocol=4,n.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],n.CONNECT=0,n.DISCONNECT=1,n.EVENT=2,n.ACK=3,n.ERROR=4,n.BINARY_EVENT=5,n.BINARY_ACK=6,n.Encoder=r,n.Decoder=o;var e=n.ERROR+'"encode error"';function s(t){var r=""+t.type;if(n.BINARY_EVENT!==t.type&&n.BINARY_ACK!==t.type||(r+=t.attachments+"-"),t.nsp&&"/"!==t.nsp&&(r+=t.nsp+","),null!=t.id&&(r+=t.id),null!=t.data){var s=function(t){try{return JSON.stringify(t)}catch(t){return!1}}(t.data);if(!1===s)return e;r+=s}return i("encoded %j as %s",t,r),r}function o(){this.reconstructor=null}function u(t){this.reconPack=t,this.buffers=[]}function f(t){return{type:n.ERROR,data:"parser error: "+t}}r.prototype.encode=function(t,r){i("encoding packet %j",t),n.BINARY_EVENT===t.type||n.BINARY_ACK===t.type?function(t,n){!function(t,n){var i=0,r=t;!function t(e,s,o){if(!e)return e;if(Gt&&e instanceof Blob||Kt&&e instanceof File){i++;var u=new FileReader;u.onload=function(){o?o[s]=this.result:r=this.result,--i||n(r)},u.readAsArrayBuffer(e)}else if(K(e))for(var f=0;f<e.length;f++)t(e[f],f,e);else if("object"==typeof e&&!Pt(e))for(var a in e)t(e[a],a,e)}(r),i||n(r)}(t,(function(t){var i=nn(t),r=s(i.packet),e=i.buffers;e.unshift(r),n(e)}))}(t,r):r([s(t)])},W(o.prototype),o.prototype.add=function(t){var r;if("string"==typeof t)r=function(t){var r=0,e={type:Number(t.charAt(0))};if(null==n.types[e.type])return f("unknown packet type "+e.type);if(n.BINARY_EVENT===e.type||n.BINARY_ACK===e.type){for(var s=r+1;"-"!==t.charAt(++r)&&r!=t.length;);var o=t.substring(s,r);if(o!=Number(o)||"-"!==t.charAt(r))throw new Error("Illegal attachments");e.attachments=Number(o)}if("/"===t.charAt(r+1)){for(s=r+1;++r&&","!==(a=t.charAt(r))&&r!==t.length;);e.nsp=t.substring(s,r)}else e.nsp="/";var u=t.charAt(r+1);if(""!==u&&Number(u)==u){for(s=r+1;++r;){var a;if(null==(a=t.charAt(r))||Number(a)!=a){--r;break}if(r===t.length)break}e.id=Number(t.substring(s,r+1))}if(t.charAt(++r)){var c=function(t){try{return JSON.parse(t)}catch(t){return!1}}(t.substr(r));if(!1===c||e.type!==n.ERROR&&!K(c))return f("invalid payload");e.data=c}return i("decoded %s as %j",t,e),e}(t),n.BINARY_EVENT===r.type||n.BINARY_ACK===r.type?(this.reconstructor=new u(r),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",r)):this.emit("decoded",r);else{if(!Pt(t)&&!t.base64)throw new Error("Unknown type: "+t);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");(r=this.reconstructor.takeBinaryData(t))&&(this.reconstructor=null,this.emit("decoded",r))}},o.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},u.prototype.takeBinaryData=function(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){var n=rn(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null},u.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}})),sn=o((function(t){try{t.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(n){t.exports=!1}})),on="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")(),un=function(t){var n=t.xdomain,i=t.xscheme,r=t.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!n||sn))return new XMLHttpRequest}catch(t){}try{if("undefined"!=typeof XDomainRequest&&!i&&r)return new XDomainRequest}catch(t){}if(!n)try{return new(on[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(t){}},fn=Object.keys||function(t){var n=[],i=Object.prototype.hasOwnProperty;for(var r in t)i.call(t,r)&&n.push(r);return n},an={}.toString,cn=Array.isArray||function(t){return"[object Array]"==an.call(t)},hn=Object.prototype.toString,ln="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===hn.call(Blob),dn="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===hn.call(File),vn=function t(n){if(!n||"object"!=typeof n)return!1;if(cn(n)){for(var i=0,r=n.length;i<r;i++)if(t(n[i]))return!0;return!1}if(ht.isBuffer&&ht.isBuffer(n)||"function"==typeof ArrayBuffer&&n instanceof ArrayBuffer||ln&&n instanceof Blob||dn&&n instanceof File)return!0;if(n.toJSON&&"function"==typeof n.toJSON&&1===arguments.length)return t(n.toJSON(),!0);for(var e in n)if(Object.prototype.hasOwnProperty.call(n,e)&&t(n[e]))return!0;return!1},pn=function(t,n,i){var r=t.byteLength;if(n=n||0,i=i||r,t.slice)return t.slice(n,i);if(n<0&&(n+=r),i<0&&(i+=r),i>r&&(i=r),n>=r||n>=i||0===r)return new ArrayBuffer(0);for(var e=new Uint8Array(t),s=new Uint8Array(i-n),o=n,u=0;o<i;o++,u++)s[u]=e[o];return s.buffer};function yn(){}
2
+ /*! https://mths.be/utf8js v2.1.2 by @mathias */var Cn,wn,gn,mn=String.fromCharCode;function bn(t){for(var n,i,r=[],e=0,s=t.length;e<s;)(n=t.charCodeAt(e++))>=55296&&n<=56319&&e<s?56320==(64512&(i=t.charCodeAt(e++)))?r.push(((1023&n)<<10)+(1023&i)+65536):(r.push(n),e--):r.push(n);return r}function Fn(t,n){if(t>=55296&&t<=57343){if(n)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function kn(t,n){return mn(t>>n&63|128)}function An(t,n){if(0==(4294967168&t))return mn(t);var i="";return 0==(4294965248&t)?i=mn(t>>6&31|192):0==(4294901760&t)?(Fn(t,n)||(t=65533),i=mn(t>>12&15|224),i+=kn(t,6)):0==(4292870144&t)&&(i=mn(t>>18&7|240),i+=kn(t,12),i+=kn(t,6)),i+mn(63&t|128)}function En(){if(gn>=wn)throw Error("Invalid byte index");var t=255&Cn[gn];if(gn++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}function Mn(t){var n,i;if(gn>wn)throw Error("Invalid byte index");if(gn==wn)return!1;if(n=255&Cn[gn],gn++,0==(128&n))return n;if(192==(224&n)){if((i=(31&n)<<6|En())>=128)return i;throw Error("Invalid continuation byte")}if(224==(240&n)){if((i=(15&n)<<12|En()<<6|En())>=2048)return Fn(i,t)?i:65533;throw Error("Invalid continuation byte")}if(240==(248&n)&&(i=(7&n)<<18|En()<<12|En()<<6|En())>=65536&&i<=1114111)return i;throw Error("Invalid UTF-8 detected")}var Tn=function(t,n){for(var i=!1!==(n=n||{}).strict,r=bn(t),e=r.length,s=-1,o="";++s<e;)o+=An(r[s],i);return o},Bn=function(t,n){var i=!1!==(n=n||{}).strict;Cn=bn(t),wn=Cn.length,gn=0;for(var r,e=[];!1!==(r=Mn(i));)e.push(r);return function(t){for(var n,i=t.length,r=-1,e="";++r<i;)(n=t[r])>65535&&(e+=mn((n-=65536)>>>10&1023|55296),n=56320|1023&n),e+=mn(n);return e}(e)},jn=o((function(t,n){var i;i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n.encode=function(t){var n,r=new Uint8Array(t),e=r.length,s="";for(n=0;n<e;n+=3)s+=i[r[n]>>2],s+=i[(3&r[n])<<4|r[n+1]>>4],s+=i[(15&r[n+1])<<2|r[n+2]>>6],s+=i[63&r[n+2]];return e%3==2?s=s.substring(0,s.length-1)+"=":e%3==1&&(s=s.substring(0,s.length-2)+"=="),s},n.decode=function(t){var n,r,e,s,o,u=.75*t.length,f=t.length,a=0;"="===t[t.length-1]&&(u--,"="===t[t.length-2]&&u--);var c=new ArrayBuffer(u),h=new Uint8Array(c);for(n=0;n<f;n+=4)r=i.indexOf(t[n]),e=i.indexOf(t[n+1]),s=i.indexOf(t[n+2]),o=i.indexOf(t[n+3]),h[a++]=r<<2|e>>4,h[a++]=(15&e)<<4|s>>2,h[a++]=(3&s)<<6|63&o;return c}})),Nn=void 0!==Nn?Nn:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder&&MozBlobBuilder,Sn=function(){try{return 2===new Blob(["hi"]).size}catch(t){return!1}}(),Rn=Sn&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(t){return!1}}(),On=Nn&&Nn.prototype.append&&Nn.prototype.getBlob;function xn(t){return t.map((function(t){if(t.buffer instanceof ArrayBuffer){var n=t.buffer;if(t.byteLength!==n.byteLength){var i=new Uint8Array(t.byteLength);i.set(new Uint8Array(n,t.byteOffset,t.byteLength)),n=i.buffer}return n}return t}))}function In(t,n){n=n||{};var i=new Nn;return xn(t).forEach((function(t){i.append(t)})),n.type?i.getBlob(n.type):i.getBlob()}function Un(t,n){return new Blob(xn(t),n||{})}"undefined"!=typeof Blob&&(In.prototype=Blob.prototype,Un.prototype=Blob.prototype);var _n=Sn?Rn?Blob:Un:On?In:void 0,Jn=o((function(t,n){var i;"undefined"!=typeof ArrayBuffer&&(i=jn);var r="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),e="undefined"!=typeof navigator&&/PhantomJS/i.test(navigator.userAgent),s=r||e;n.protocol=3;var o=n.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},u=fn(o),f={type:"error",data:"parser error"};function a(t,n,i){for(var r=new Array(t.length),e=function(t,n,i){var r=!1;return i=i||yn,e.count=t,0===t?n():e;function e(t,s){if(e.count<=0)throw new Error("after called too many times");--e.count,t?(r=!0,n(t),n=i):0!==e.count||r||n(null,s)}}(t.length,i),s=function(t,i,e){n(i,(function(n,i){r[t]=i,e(n,r)}))},o=0;o<t.length;o++)s(o,t[o],e)}n.encodePacket=function(t,i,r,e){"function"==typeof i&&(e=i,i=!1),"function"==typeof r&&(e=r,r=null);var u=void 0===t.data?void 0:t.data.buffer||t.data;if("undefined"!=typeof ArrayBuffer&&u instanceof ArrayBuffer)return function(t,i,r){if(!i)return n.encodeBase64Packet(t,r);var e=t.data,s=new Uint8Array(e),u=new Uint8Array(1+e.byteLength);u[0]=o[t.type];for(var f=0;f<s.length;f++)u[f+1]=s[f];return r(u.buffer)}(t,i,e);if(void 0!==_n&&u instanceof _n)return function(t,i,r){if(!i)return n.encodeBase64Packet(t,r);if(s)return function(t,i,r){if(!i)return n.encodeBase64Packet(t,r);var e=new FileReader;return e.onload=function(){n.encodePacket({type:t.type,data:e.result},i,!0,r)},e.readAsArrayBuffer(t.data)}(t,i,r);var e=new Uint8Array(1);return e[0]=o[t.type],r(new _n([e.buffer,t.data]))}(t,i,e);if(u&&u.base64)return function(t,i){return i("b"+n.packets[t.type]+t.data.data)}(t,e);var f=o[t.type];return void 0!==t.data&&(f+=r?Tn(String(t.data),{strict:!1}):String(t.data)),e(""+f)},n.encodeBase64Packet=function(t,i){var r,e="b"+n.packets[t.type];if(void 0!==_n&&t.data instanceof _n){var s=new FileReader;return s.onload=function(){var t=s.result.split(",")[1];i(e+t)},s.readAsDataURL(t.data)}try{r=String.fromCharCode.apply(null,new Uint8Array(t.data))}catch(n){for(var o=new Uint8Array(t.data),u=new Array(o.length),f=0;f<o.length;f++)u[f]=o[f];r=String.fromCharCode.apply(null,u)}return e+=btoa(r),i(e)},n.decodePacket=function(t,i,r){if(void 0===t)return f;if("string"==typeof t){if("b"===t.charAt(0))return n.decodeBase64Packet(t.substr(1),i);if(r&&!1===(t=function(t){try{t=Bn(t,{strict:!1})}catch(t){return!1}return t}(t)))return f;var e=t.charAt(0);return Number(e)==e&&u[e]?t.length>1?{type:u[e],data:t.substring(1)}:{type:u[e]}:f}e=new Uint8Array(t)[0];var s=pn(t,1);return _n&&"blob"===i&&(s=new _n([s])),{type:u[e],data:s}},n.decodeBase64Packet=function(t,n){var r=u[t.charAt(0)];if(!i)return{type:r,data:{base64:!0,data:t.substr(1)}};var e=i.decode(t.substr(1));return"blob"===n&&_n&&(e=new _n([e])),{type:r,data:e}},n.encodePayload=function(t,i,r){"function"==typeof i&&(r=i,i=null);var e=vn(t);return i&&e?_n&&!s?n.encodePayloadAsBlob(t,r):n.encodePayloadAsArrayBuffer(t,r):t.length?void a(t,(function(t,r){n.encodePacket(t,!!e&&i,!1,(function(t){r(null,function(t){return t.length+":"+t}(t))}))}),(function(t,n){return r(n.join(""))})):r("0:")},n.decodePayload=function(t,i,r){if("string"!=typeof t)return n.decodePayloadAsBinary(t,i,r);var e;if("function"==typeof i&&(r=i,i=null),""===t)return r(f,0,1);for(var s,o,u="",a=0,c=t.length;a<c;a++){var h=t.charAt(a);if(":"===h){if(""===u||u!=(s=Number(u)))return r(f,0,1);if(u!=(o=t.substr(a+1,s)).length)return r(f,0,1);if(o.length){if(e=n.decodePacket(o,i,!1),f.type===e.type&&f.data===e.data)return r(f,0,1);if(!1===r(e,a+s,c))return}a+=s,u=""}else u+=h}return""!==u?r(f,0,1):void 0},n.encodePayloadAsArrayBuffer=function(t,i){if(!t.length)return i(new ArrayBuffer(0));a(t,(function(t,i){n.encodePacket(t,!0,!0,(function(t){return i(null,t)}))}),(function(t,n){var r=n.reduce((function(t,n){var i;return t+(i="string"==typeof n?n.length:n.byteLength).toString().length+i+2}),0),e=new Uint8Array(r),s=0;return n.forEach((function(t){var n="string"==typeof t,i=t;if(n){for(var r=new Uint8Array(t.length),o=0;o<t.length;o++)r[o]=t.charCodeAt(o);i=r.buffer}e[s++]=n?0:1;var u=i.byteLength.toString();for(o=0;o<u.length;o++)e[s++]=parseInt(u[o]);for(e[s++]=255,r=new Uint8Array(i),o=0;o<r.length;o++)e[s++]=r[o]})),i(e.buffer)}))},n.encodePayloadAsBlob=function(t,i){a(t,(function(t,i){n.encodePacket(t,!0,!0,(function(t){var n=new Uint8Array(1);if(n[0]=1,"string"==typeof t){for(var r=new Uint8Array(t.length),e=0;e<t.length;e++)r[e]=t.charCodeAt(e);t=r.buffer,n[0]=0}var s=(t instanceof ArrayBuffer?t.byteLength:t.size).toString(),o=new Uint8Array(s.length+1);for(e=0;e<s.length;e++)o[e]=parseInt(s[e]);if(o[s.length]=255,_n){var u=new _n([n.buffer,o.buffer,t]);i(null,u)}}))}),(function(t,n){return i(new _n(n))}))},n.decodePayloadAsBinary=function(t,i,r){"function"==typeof i&&(r=i,i=null);for(var e=t,s=[];e.byteLength>0;){for(var o=new Uint8Array(e),u=0===o[0],a="",c=1;255!==o[c];c++){if(a.length>310)return r(f,0,1);a+=o[c]}e=pn(e,2+a.length),a=parseInt(a);var h=pn(e,0,a);if(u)try{h=String.fromCharCode.apply(null,new Uint8Array(h))}catch(t){var l=new Uint8Array(h);for(h="",c=0;c<l.length;c++)h+=String.fromCharCode(l[c])}s.push(h),e=pn(e,a)}var d=s.length;s.forEach((function(t,e){r(n.decodePacket(t,i,!0),e,d)}))}})),zn=Dn;function Dn(t){this.path=t.path,this.hostname=t.hostname,this.port=t.port,this.secure=t.secure,this.query=t.query,this.timestampParam=t.timestampParam,this.timestampRequests=t.timestampRequests,this.readyState="",this.agent=t.agent||!1,this.socket=t.socket,this.enablesXDR=t.enablesXDR,this.withCredentials=t.withCredentials,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.forceNode=t.forceNode,this.isReactNative=t.isReactNative,this.extraHeaders=t.extraHeaders,this.localAddress=t.localAddress}W(Dn.prototype),Dn.prototype.onError=function(t,n){var i=new Error(t);return i.type="TransportError",i.description=n,this.emit("error",i),this},Dn.prototype.open=function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this},Dn.prototype.close=function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this},Dn.prototype.send=function(t){if("open"!==this.readyState)throw new Error("Transport not open");this.write(t)},Dn.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},Dn.prototype.onData=function(t){var n=Jn.decodePacket(t,this.socket.binaryType);this.onPacket(n)},Dn.prototype.onPacket=function(t){this.emit("packet",t)},Dn.prototype.onClose=function(){this.readyState="closed",this.emit("close")};var Ln,qn=function(t){var n="";for(var i in t)t.hasOwnProperty(i)&&(n.length&&(n+="&"),n+=encodeURIComponent(i)+"="+encodeURIComponent(t[i]));return n},$n=function(t,n){var i=function(){};i.prototype=n.prototype,t.prototype=new i,t.prototype.constructor=t},Xn="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),Zn={},Hn=0,Pn=0;function Yn(t){var n="";do{n=Xn[t%64]+n,t=Math.floor(t/64)}while(t>0);return n}function Vn(){var t=Yn(+new Date);return t!==Ln?(Hn=0,Ln=t):t+"."+Yn(Hn++)}for(;Pn<64;Pn++)Zn[Xn[Pn]]=Pn;Vn.encode=Yn,Vn.decode=function(t){var n=0;for(Pn=0;Pn<t.length;Pn++)n=64*n+Zn[t.charAt(Pn)];return n};var Wn=Vn,Gn=1e3,Kn=60*Gn,Qn=60*Kn,ti=24*Qn,ni=function(t,n){n=n||{};var i=typeof t;if("string"===i&&t.length>0)return function(t){if(!((t=String(t)).length>100)){var n=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(n){var i=parseFloat(n[1]);switch((n[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*i;case"days":case"day":case"d":return i*ti;case"hours":case"hour":case"hrs":case"hr":case"h":return i*Qn;case"minutes":case"minute":case"mins":case"min":case"m":return i*Kn;case"seconds":case"second":case"secs":case"sec":case"s":return i*Gn;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}}}(t);if("number"===i&&!1===isNaN(t))return n.long?function(t){return ii(t,ti,"day")||ii(t,Qn,"hour")||ii(t,Kn,"minute")||ii(t,Gn,"second")||t+" ms"}(t):function(t){return t>=ti?Math.round(t/ti)+"d":t>=Qn?Math.round(t/Qn)+"h":t>=Kn?Math.round(t/Kn)+"m":t>=Gn?Math.round(t/Gn)+"s":t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function ii(t,n,i){if(!(t<n))return t<1.5*n?Math.floor(t/n)+" "+i:Math.ceil(t/n)+" "+i+"s"}var ri=o((function(t,n){function i(t){var i;function e(){if(e.enabled){var t=e,r=+new Date,s=r-(i||r);t.diff=s,t.prev=i,t.curr=r,i=r;for(var o=new Array(arguments.length),u=0;u<o.length;u++)o[u]=arguments[u];o[0]=n.coerce(o[0]),"string"!=typeof o[0]&&o.unshift("%O");var f=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,(function(i,r){if("%%"===i)return i;f++;var e=n.formatters[r];return"function"==typeof e&&(i=e.call(t,o[f]),o.splice(f,1),f--),i})),n.formatArgs.call(t,o);var a=e.log||n.log||console.log.bind(console);a.apply(t,o)}}return e.namespace=t,e.enabled=n.enabled(t),e.useColors=n.useColors(),e.color=function(t){var i,r=0;for(i in t)r=(r<<5)-r+t.charCodeAt(i),r|=0;return n.colors[Math.abs(r)%n.colors.length]}(t),e.destroy=r,"function"==typeof n.init&&n.init(e),n.instances.push(e),e}function r(){var t=n.instances.indexOf(this);return-1!==t&&(n.instances.splice(t,1),!0)}(n=t.exports=i.debug=i.default=i).coerce=function(t){return t instanceof Error?t.stack||t.message:t},n.disable=function(){n.enable("")},n.enable=function(t){var i;n.save(t),n.names=[],n.skips=[];var r=("string"==typeof t?t:"").split(/[\s,]+/),e=r.length;for(i=0;i<e;i++)r[i]&&("-"===(t=r[i].replace(/\*/g,".*?"))[0]?n.skips.push(new RegExp("^"+t.substr(1)+"$")):n.names.push(new RegExp("^"+t+"$")));for(i=0;i<n.instances.length;i++){var s=n.instances[i];s.enabled=n.enabled(s.namespace)}},n.enabled=function(t){if("*"===t[t.length-1])return!0;var i,r;for(i=0,r=n.skips.length;i<r;i++)if(n.skips[i].test(t))return!1;for(i=0,r=n.names.length;i<r;i++)if(n.names[i].test(t))return!0;return!1},n.humanize=ni,n.instances=[],n.names=[],n.skips=[],n.formatters={}})),ei=o((function(t,n){function i(){var t;try{t=n.storage.debug}catch(t){}return!t&&void 0!==U&&"env"in U&&(t=U.env.DEBUG),t}(n=t.exports=ri).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},n.formatArgs=function(t){var i=this.useColors;if(t[0]=(i?"%c":"")+this.namespace+(i?" %c":" ")+t[0]+(i?"%c ":" ")+"+"+n.humanize(this.diff),i){var r="color: "+this.color;t.splice(1,0,r,"color: inherit");var e=0,s=0;t[0].replace(/%[a-zA-Z%]/g,(function(t){"%%"!==t&&(e++,"%c"===t&&(s=e))})),t.splice(s,0,r)}},n.save=function(t){try{null==t?n.storage.removeItem("debug"):n.storage.debug=t}catch(t){}},n.load=i,n.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},n.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),n.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],n.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},n.enable(i())})),si=ei("engine.io-client:polling"),oi=fi,ui=null!=new un({xdomain:!1}).responseType;function fi(t){ui&&!(t&&t.forceBase64)||(this.supportsBinary=!1),zn.call(this,t)}$n(fi,zn),fi.prototype.name="polling",fi.prototype.doOpen=function(){this.poll()},fi.prototype.pause=function(t){var n=this;function i(){si("paused"),n.readyState="paused",t()}if(this.readyState="pausing",this.polling||!this.writable){var r=0;this.polling&&(si("we are currently polling - waiting to pause"),r++,this.once("pollComplete",(function(){si("pre-pause polling complete"),--r||i()}))),this.writable||(si("we are currently writing - waiting to pause"),r++,this.once("drain",(function(){si("pre-pause writing complete"),--r||i()})))}else i()},fi.prototype.poll=function(){si("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},fi.prototype.onData=function(t){var n=this;si("polling got data %s",t),Jn.decodePayload(t,this.socket.binaryType,(function(t){if("opening"===n.readyState&&"open"===t.type&&n.onOpen(),"close"===t.type)return n.onClose(),!1;n.onPacket(t)})),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():si('ignoring poll - transport state "%s"',this.readyState))},fi.prototype.doClose=function(){var t=this;function n(){si("writing close packet"),t.write([{type:"close"}])}"open"===this.readyState?(si("transport open - closing"),n()):(si("transport not open - deferring close"),this.once("open",n))},fi.prototype.write=function(t){var n=this;this.writable=!1;var i=function(){n.writable=!0,n.emit("drain")};Jn.encodePayload(t,this.supportsBinary,(function(t){n.doWrite(t,i)}))},fi.prototype.uri=function(){var t=this.query||{},n=this.secure?"https":"http",i="";return!1!==this.timestampRequests&&(t[this.timestampParam]=Wn()),this.supportsBinary||t.sid||(t.b64=1),t=qn(t),this.port&&("https"===n&&443!==Number(this.port)||"http"===n&&80!==Number(this.port))&&(i=":"+this.port),t.length&&(t="?"+t),n+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+i+this.path+t};var ai=ei("engine.io-client:polling-xhr"),ci=di,hi=vi;function li(){}function di(t){if(oi.call(this,t),this.requestTimeout=t.requestTimeout,this.extraHeaders=t.extraHeaders,"undefined"!=typeof location){var n="https:"===location.protocol,i=location.port;i||(i=n?443:80),this.xd="undefined"!=typeof location&&t.hostname!==location.hostname||i!==t.port,this.xs=t.secure!==n}}function vi(t){this.method=t.method||"GET",this.uri=t.uri,this.xd=!!t.xd,this.xs=!!t.xs,this.async=!1!==t.async,this.data=void 0!==t.data?t.data:null,this.agent=t.agent,this.isBinary=t.isBinary,this.supportsBinary=t.supportsBinary,this.enablesXDR=t.enablesXDR,this.withCredentials=t.withCredentials,this.requestTimeout=t.requestTimeout,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.extraHeaders=t.extraHeaders,this.create()}function pi(){for(var t in vi.requests)vi.requests.hasOwnProperty(t)&&vi.requests[t].abort()}$n(di,oi),di.prototype.supportsBinary=!0,di.prototype.request=function(t){return(t=t||{}).uri=this.uri(),t.xd=this.xd,t.xs=this.xs,t.agent=this.agent||!1,t.supportsBinary=this.supportsBinary,t.enablesXDR=this.enablesXDR,t.withCredentials=this.withCredentials,t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized,t.requestTimeout=this.requestTimeout,t.extraHeaders=this.extraHeaders,new vi(t)},di.prototype.doWrite=function(t,n){var i=this.request({method:"POST",data:t,isBinary:"string"!=typeof t&&void 0!==t}),r=this;i.on("success",n),i.on("error",(function(t){r.onError("xhr post error",t)})),this.sendXhr=i},di.prototype.doPoll=function(){ai("xhr poll");var t=this.request(),n=this;t.on("data",(function(t){n.onData(t)})),t.on("error",(function(t){n.onError("xhr poll error",t)})),this.pollXhr=t},W(vi.prototype),vi.prototype.create=function(){var t={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized;var n=this.xhr=new un(t),i=this;try{ai("xhr open %s: %s",this.method,this.uri),n.open(this.method,this.uri,this.async);try{if(this.extraHeaders)for(var r in n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0),this.extraHeaders)this.extraHeaders.hasOwnProperty(r)&&n.setRequestHeader(r,this.extraHeaders[r])}catch(t){}if("POST"===this.method)try{n.setRequestHeader("Content-type",this.isBinary?"application/octet-stream":"text/plain;charset=UTF-8")}catch(t){}try{n.setRequestHeader("Accept","*/*")}catch(t){}"withCredentials"in n&&(n.withCredentials=this.withCredentials),this.requestTimeout&&(n.timeout=this.requestTimeout),this.hasXDR()?(n.onload=function(){i.onLoad()},n.onerror=function(){i.onError(n.responseText)}):n.onreadystatechange=function(){if(2===n.readyState)try{var t=n.getResponseHeader("Content-Type");(i.supportsBinary&&"application/octet-stream"===t||"application/octet-stream; charset=UTF-8"===t)&&(n.responseType="arraybuffer")}catch(t){}4===n.readyState&&(200===n.status||1223===n.status?i.onLoad():setTimeout((function(){i.onError("number"==typeof n.status?n.status:0)}),0))},ai("xhr data %s",this.data),n.send(this.data)}catch(t){return void setTimeout((function(){i.onError(t)}),0)}"undefined"!=typeof document&&(this.index=vi.requestsCount++,vi.requests[this.index]=this)},vi.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},vi.prototype.onData=function(t){this.emit("data",t),this.onSuccess()},vi.prototype.onError=function(t){this.emit("error",t),this.cleanup(!0)},vi.prototype.cleanup=function(t){if(null!=this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=li:this.xhr.onreadystatechange=li,t)try{this.xhr.abort()}catch(t){}"undefined"!=typeof document&&delete vi.requests[this.index],this.xhr=null}},vi.prototype.onLoad=function(){var t;try{var n;try{n=this.xhr.getResponseHeader("Content-Type")}catch(t){}t=("application/octet-stream"===n||"application/octet-stream; charset=UTF-8"===n)&&this.xhr.response||this.xhr.responseText}catch(t){this.onError(t)}null!=t&&this.onData(t)},vi.prototype.hasXDR=function(){return"undefined"!=typeof XDomainRequest&&!this.xs&&this.enablesXDR},vi.prototype.abort=function(){this.cleanup()},vi.requestsCount=0,vi.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",pi):"function"==typeof addEventListener&&addEventListener("onpagehide"in on?"pagehide":"unload",pi,!1)),ci.Request=hi;var yi,Ci=bi,wi=/\n/g,gi=/\\n/g;function mi(){}function bi(t){oi.call(this,t),this.query=this.query||{},yi||(yi=on.___eio=on.___eio||[]),this.index=yi.length;var n=this;yi.push((function(t){n.onData(t)})),this.query.j=this.index,"function"==typeof addEventListener&&addEventListener("beforeunload",(function(){n.script&&(n.script.onerror=mi)}),!1)}$n(bi,oi),bi.prototype.supportsBinary=!1,bi.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),oi.prototype.doClose.call(this)},bi.prototype.doPoll=function(){var t=this,n=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),n.async=!0,n.src=this.uri(),n.onerror=function(n){t.onError("jsonp poll error",n)};var i=document.getElementsByTagName("script")[0];i?i.parentNode.insertBefore(n,i):(document.head||document.body).appendChild(n),this.script=n,"undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent)&&setTimeout((function(){var t=document.createElement("iframe");document.body.appendChild(t),document.body.removeChild(t)}),100)},bi.prototype.doWrite=function(t,n){var i=this;if(!this.form){var r,e=document.createElement("form"),s=document.createElement("textarea"),o=this.iframeId="eio_iframe_"+this.index;e.className="socketio",e.style.position="absolute",e.style.top="-1000px",e.style.left="-1000px",e.target=o,e.method="POST",e.setAttribute("accept-charset","utf-8"),s.name="d",e.appendChild(s),document.body.appendChild(e),this.form=e,this.area=s}function u(){f(),n()}function f(){if(i.iframe)try{i.form.removeChild(i.iframe)}catch(t){i.onError("jsonp polling iframe removal error",t)}try{r=document.createElement('<iframe src="javascript:0" name="'+i.iframeId+'">')}catch(t){(r=document.createElement("iframe")).name=i.iframeId,r.src="javascript:0"}r.id=i.iframeId,i.form.appendChild(r),i.iframe=r}this.form.action=this.uri(),f(),t=t.replace(gi,"\\\n"),this.area.value=t.replace(wi,"\\n");try{this.form.submit()}catch(t){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===i.iframe.readyState&&u()}:this.iframe.onload=u};const Fi=u(Object.freeze({__proto__:null,default:{}}));var ki,Ai,Ei=ei("engine.io-client:websocket");if("undefined"!=typeof WebSocket?ki=WebSocket:"undefined"!=typeof self&&(ki=self.WebSocket||self.MozWebSocket),"undefined"==typeof window)try{Ai=Fi}catch(t){}var Mi=ki||Ai,Ti=Bi;function Bi(t){t&&t.forceBase64&&(this.supportsBinary=!1),this.perMessageDeflate=t.perMessageDeflate,this.usingBrowserWebSocket=ki&&!t.forceNode,this.protocols=t.protocols,this.usingBrowserWebSocket||(Mi=Ai),zn.call(this,t)}$n(Bi,zn),Bi.prototype.name="websocket",Bi.prototype.supportsBinary=!0,Bi.prototype.doOpen=function(){if(this.check()){var t=this.uri(),n=this.protocols,i={};this.isReactNative||(i.agent=this.agent,i.perMessageDeflate=this.perMessageDeflate,i.pfx=this.pfx,i.key=this.key,i.passphrase=this.passphrase,i.cert=this.cert,i.ca=this.ca,i.ciphers=this.ciphers,i.rejectUnauthorized=this.rejectUnauthorized),this.extraHeaders&&(i.headers=this.extraHeaders),this.localAddress&&(i.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?n?new Mi(t,n):new Mi(t):new Mi(t,n,i)}catch(t){return this.emit("error",t)}void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},Bi.prototype.addEventListeners=function(){var t=this;this.ws.onopen=function(){t.onOpen()},this.ws.onclose=function(){t.onClose()},this.ws.onmessage=function(n){t.onData(n.data)},this.ws.onerror=function(n){t.onError("websocket error",n)}},Bi.prototype.write=function(t){var n=this;this.writable=!1;for(var i=t.length,r=0,e=i;r<e;r++)!function(t){Jn.encodePacket(t,n.supportsBinary,(function(r){if(!n.usingBrowserWebSocket){var e={};t.options&&(e.compress=t.options.compress),n.perMessageDeflate&&("string"==typeof r?ht.byteLength(r):r.length)<n.perMessageDeflate.threshold&&(e.compress=!1)}try{n.usingBrowserWebSocket?n.ws.send(r):n.ws.send(r,e)}catch(t){Ei("websocket closed before onclose event")}--i||(n.emit("flush"),setTimeout((function(){n.writable=!0,n.emit("drain")}),0))}))}(t[r])},Bi.prototype.onClose=function(){zn.prototype.onClose.call(this)},Bi.prototype.doClose=function(){void 0!==this.ws&&this.ws.close()},Bi.prototype.uri=function(){var t=this.query||{},n=this.secure?"wss":"ws",i="";return this.port&&("wss"===n&&443!==Number(this.port)||"ws"===n&&80!==Number(this.port))&&(i=":"+this.port),this.timestampRequests&&(t[this.timestampParam]=Wn()),this.supportsBinary||(t.b64=1),(t=qn(t)).length&&(t="?"+t),n+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+i+this.path+t},Bi.prototype.check=function(){return!(!Mi||"__initialize"in Mi&&this.name===Bi.prototype.name)};var ji={polling:function(t){var n=!1,i=!1,r=!1!==t.jsonp;if("undefined"!=typeof location){var e="https:"===location.protocol,s=location.port;s||(s=e?443:80),n=t.hostname!==location.hostname||s!==t.port,i=t.secure!==e}if(t.xdomain=n,t.xscheme=i,"open"in new un(t)&&!t.forceJSONP)return new ci(t);if(!r)throw new Error("JSONP disabled");return new Ci(t)},websocket:Ti},Ni=[].indexOf,Si=function(t,n){if(Ni)return t.indexOf(n);for(var i=0;i<t.length;++i)if(t[i]===n)return i;return-1},Ri=ei("engine.io-client:socket"),Oi=xi;function xi(t,n){if(!(this instanceof xi))return new xi(t,n);n=n||{},t&&"object"==typeof t&&(n=t,t=null),t?(t=h(t),n.hostname=t.host,n.secure="https"===t.protocol||"wss"===t.protocol,n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=h(n.host).host),this.secure=null!=n.secure?n.secure:"undefined"!=typeof location&&"https:"===location.protocol,n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.agent=n.agent||!1,this.hostname=n.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=n.port||("undefined"!=typeof location&&location.port?location.port:this.secure?443:80),this.query=n.query||{},"string"==typeof this.query&&(this.query=function(t){for(var n={},i=t.split("&"),r=0,e=i.length;r<e;r++){var s=i[r].split("=");n[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return n}(this.query)),this.upgrade=!1!==n.upgrade,this.path=(n.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!n.forceJSONP,this.jsonp=!1!==n.jsonp,this.forceBase64=!!n.forceBase64,this.enablesXDR=!!n.enablesXDR,this.withCredentials=!1!==n.withCredentials,this.timestampParam=n.timestampParam||"t",this.timestampRequests=n.timestampRequests,this.transports=n.transports||["polling","websocket"],this.transportOptions=n.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=n.policyPort||843,this.rememberUpgrade=n.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=n.onlyBinaryUpgrades,this.perMessageDeflate=!1!==n.perMessageDeflate&&(n.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=n.pfx||void 0,this.key=n.key||void 0,this.passphrase=n.passphrase||void 0,this.cert=n.cert||void 0,this.ca=n.ca||void 0,this.ciphers=n.ciphers||void 0,this.rejectUnauthorized=void 0===n.rejectUnauthorized||n.rejectUnauthorized,this.forceNode=!!n.forceNode,this.isReactNative="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),("undefined"==typeof self||this.isReactNative)&&(n.extraHeaders&&Object.keys(n.extraHeaders).length>0&&(this.extraHeaders=n.extraHeaders),n.localAddress&&(this.localAddress=n.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}xi.priorWebsocketSuccess=!1,W(xi.prototype),xi.protocol=Jn.protocol,xi.Socket=xi,xi.Transport=zn,xi.transports=ji,xi.parser=Jn,xi.prototype.createTransport=function(t){Ri('creating transport "%s"',t);var n=function(t){var n={};for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);return n}(this.query);n.EIO=Jn.protocol,n.transport=t;var i=this.transportOptions[t]||{};return this.id&&(n.sid=this.id),new ji[t]({query:n,socket:this,agent:i.agent||this.agent,hostname:i.hostname||this.hostname,port:i.port||this.port,secure:i.secure||this.secure,path:i.path||this.path,forceJSONP:i.forceJSONP||this.forceJSONP,jsonp:i.jsonp||this.jsonp,forceBase64:i.forceBase64||this.forceBase64,enablesXDR:i.enablesXDR||this.enablesXDR,withCredentials:i.withCredentials||this.withCredentials,timestampRequests:i.timestampRequests||this.timestampRequests,timestampParam:i.timestampParam||this.timestampParam,policyPort:i.policyPort||this.policyPort,pfx:i.pfx||this.pfx,key:i.key||this.key,passphrase:i.passphrase||this.passphrase,cert:i.cert||this.cert,ca:i.ca||this.ca,ciphers:i.ciphers||this.ciphers,rejectUnauthorized:i.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:i.perMessageDeflate||this.perMessageDeflate,extraHeaders:i.extraHeaders||this.extraHeaders,forceNode:i.forceNode||this.forceNode,localAddress:i.localAddress||this.localAddress,requestTimeout:i.requestTimeout||this.requestTimeout,protocols:i.protocols||void 0,isReactNative:this.isReactNative})},xi.prototype.open=function(){var t;if(this.rememberUpgrade&&xi.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))t="websocket";else{if(0===this.transports.length){var n=this;return void setTimeout((function(){n.emit("error","No transports available")}),0)}t=this.transports[0]}this.readyState="opening";try{t=this.createTransport(t)}catch(t){return this.transports.shift(),void this.open()}t.open(),this.setTransport(t)},xi.prototype.setTransport=function(t){Ri("setting transport %s",t.name);var n=this;this.transport&&(Ri("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=t,t.on("drain",(function(){n.onDrain()})).on("packet",(function(t){n.onPacket(t)})).on("error",(function(t){n.onError(t)})).on("close",(function(){n.onClose("transport close")}))},xi.prototype.probe=function(t){Ri('probing transport "%s"',t);var n=this.createTransport(t,{probe:1}),i=!1,r=this;function e(){r.onlyBinaryUpgrades&&(i=i||!this.supportsBinary&&r.transport.supportsBinary),i||(Ri('probe transport "%s" opened',t),n.send([{type:"ping",data:"probe"}]),n.once("packet",(function(e){if(!i)if("pong"===e.type&&"probe"===e.data){if(Ri('probe transport "%s" pong',t),r.upgrading=!0,r.emit("upgrading",n),!n)return;xi.priorWebsocketSuccess="websocket"===n.name,Ri('pausing current transport "%s"',r.transport.name),r.transport.pause((function(){i||"closed"!==r.readyState&&(Ri("changing transport and sending upgrade packet"),c(),r.setTransport(n),n.send([{type:"upgrade"}]),r.emit("upgrade",n),n=null,r.upgrading=!1,r.flush())}))}else{Ri('probe transport "%s" failed',t);var s=new Error("probe error");s.transport=n.name,r.emit("upgradeError",s)}})))}function s(){i||(i=!0,c(),n.close(),n=null)}function o(i){var e=new Error("probe error: "+i);e.transport=n.name,s(),Ri('probe transport "%s" failed because of error: %s',t,i),r.emit("upgradeError",e)}function u(){o("transport closed")}function f(){o("socket closed")}function a(t){n&&t.name!==n.name&&(Ri('"%s" works - aborting "%s"',t.name,n.name),s())}function c(){n.removeListener("open",e),n.removeListener("error",o),n.removeListener("close",u),r.removeListener("close",f),r.removeListener("upgrading",a)}xi.priorWebsocketSuccess=!1,n.once("open",e),n.once("error",o),n.once("close",u),this.once("close",f),this.once("upgrading",a),n.open()},xi.prototype.onOpen=function(){if(Ri("socket open"),this.readyState="open",xi.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){Ri("starting upgrade probes");for(var t=0,n=this.upgrades.length;t<n;t++)this.probe(this.upgrades[t])}},xi.prototype.onPacket=function(t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(Ri('socket receive: type "%s", data "%s"',t.type,t.data),this.emit("packet",t),this.emit("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var n=new Error("server error");n.code=t.data,this.onError(n);break;case"message":this.emit("data",t.data),this.emit("message",t.data)}else Ri('packet received with socket readyState "%s"',this.readyState)},xi.prototype.onHandshake=function(t){this.emit("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.onOpen(),"closed"!==this.readyState&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},xi.prototype.onHeartbeat=function(t){clearTimeout(this.pingTimeoutTimer);var n=this;n.pingTimeoutTimer=setTimeout((function(){"closed"!==n.readyState&&n.onClose("ping timeout")}),t||n.pingInterval+n.pingTimeout)},xi.prototype.setPing=function(){var t=this;clearTimeout(t.pingIntervalTimer),t.pingIntervalTimer=setTimeout((function(){Ri("writing ping packet - expecting pong within %sms",t.pingTimeout),t.ping(),t.onHeartbeat(t.pingTimeout)}),t.pingInterval)},xi.prototype.ping=function(){var t=this;this.sendPacket("ping",(function(){t.emit("ping")}))},xi.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emit("drain"):this.flush()},xi.prototype.flush=function(){"closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(Ri("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},xi.prototype.write=xi.prototype.send=function(t,n,i){return this.sendPacket("message",t,n,i),this},xi.prototype.sendPacket=function(t,n,i,r){if("function"==typeof n&&(r=n,n=void 0),"function"==typeof i&&(r=i,i=null),"closing"!==this.readyState&&"closed"!==this.readyState){(i=i||{}).compress=!1!==i.compress;var e={type:t,data:n,options:i};this.emit("packetCreate",e),this.writeBuffer.push(e),r&&this.once("flush",r),this.flush()}},xi.prototype.close=function(){if("opening"===this.readyState||"open"===this.readyState){this.readyState="closing";var t=this;this.writeBuffer.length?this.once("drain",(function(){this.upgrading?r():n()})):this.upgrading?r():n()}function n(){t.onClose("forced close"),Ri("socket closing - telling transport to close"),t.transport.close()}function i(){t.removeListener("upgrade",i),t.removeListener("upgradeError",i),n()}function r(){t.once("upgrade",i),t.once("upgradeError",i)}return this},xi.prototype.onError=function(t){Ri("socket error %j",t),xi.priorWebsocketSuccess=!1,this.emit("error",t),this.onClose("transport error",t)},xi.prototype.onClose=function(t,n){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(Ri('socket close with reason: "%s"',t),clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)},xi.prototype.filterUpgrades=function(t){for(var n=[],i=0,r=t.length;i<r;i++)~Si(this.transports,t[i])&&n.push(t[i]);return n};var Ii=Oi;Ii.parser=Jn;var Ui=function(t,n){for(var i=[],r=(n=n||0)||0;r<t.length;r++)i[r-n]=t[r];return i},_i=function(t,n,i){return t.on(n,i),{destroy:function(){t.removeListener(n,i)}}},Ji=[].slice,zi=function(t,n){if("string"==typeof n&&(n=t[n]),"function"!=typeof n)throw new Error("bind() requires a function");var i=Ji.call(arguments,2);return function(){return n.apply(t,i.concat(Ji.call(arguments)))}},Di=o((function(t){var n=q("socket.io-client:socket");t.exports=e;var i={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},r=W.prototype.emit;function e(t,n,i){this.io=t,this.nsp=n,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},i&&i.query&&(this.query=i.query),this.io.autoConnect&&this.open()}W(e.prototype),e.prototype.subEvents=function(){if(!this.subs){var t=this.io;this.subs=[_i(t,"open",zi(this,"onopen")),_i(t,"packet",zi(this,"onpacket")),_i(t,"close",zi(this,"onclose"))]}},e.prototype.open=e.prototype.connect=function(){return this.connected||(this.subEvents(),this.io.reconnecting||this.io.open(),"open"===this.io.readyState&&this.onopen(),this.emit("connecting")),this},e.prototype.send=function(){var t=Ui(arguments);return t.unshift("message"),this.emit.apply(this,t),this},e.prototype.emit=function(t){if(i.hasOwnProperty(t))return r.apply(this,arguments),this;var e=Ui(arguments),s={type:(void 0!==this.flags.binary?this.flags.binary:vn(e))?en.BINARY_EVENT:en.EVENT,data:e,options:{}};return s.options.compress=!this.flags||!1!==this.flags.compress,"function"==typeof e[e.length-1]&&(n("emitting packet with ack id %d",this.ids),this.acks[this.ids]=e.pop(),s.id=this.ids++),this.connected?this.packet(s):this.sendBuffer.push(s),this.flags={},this},e.prototype.packet=function(t){t.nsp=this.nsp,this.io.packet(t)},e.prototype.onopen=function(){if(n("transport is open - connecting"),"/"!==this.nsp)if(this.query){var t="object"==typeof this.query?qn(this.query):this.query;n("sending connect packet with query %s",t),this.packet({type:en.CONNECT,query:t})}else this.packet({type:en.CONNECT})},e.prototype.onclose=function(t){n("close (%s)",t),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",t)},e.prototype.onpacket=function(t){if(t.nsp===this.nsp||t.type===en.ERROR&&"/"===t.nsp)switch(t.type){case en.CONNECT:this.onconnect();break;case en.EVENT:case en.BINARY_EVENT:this.onevent(t);break;case en.ACK:case en.BINARY_ACK:this.onack(t);break;case en.DISCONNECT:this.ondisconnect();break;case en.ERROR:this.emit("error",t.data)}},e.prototype.onevent=function(t){var i=t.data||[];n("emitting event %j",i),null!=t.id&&(n("attaching ack callback to event"),i.push(this.ack(t.id))),this.connected?r.apply(this,i):this.receiveBuffer.push(i)},e.prototype.ack=function(t){var i=this,r=!1;return function(){if(!r){r=!0;var e=Ui(arguments);n("sending ack %j",e),i.packet({type:vn(e)?en.BINARY_ACK:en.ACK,id:t,data:e})}}},e.prototype.onack=function(t){var i=this.acks[t.id];"function"==typeof i?(n("calling ack %s with %j",t.id,t.data),i.apply(this,t.data),delete this.acks[t.id]):n("bad ack %s",t.id)},e.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emit("connect"),this.emitBuffered()},e.prototype.emitBuffered=function(){var t;for(t=0;t<this.receiveBuffer.length;t++)r.apply(this,this.receiveBuffer[t]);for(this.receiveBuffer=[],t=0;t<this.sendBuffer.length;t++)this.packet(this.sendBuffer[t]);this.sendBuffer=[]},e.prototype.ondisconnect=function(){n("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},e.prototype.destroy=function(){if(this.subs){for(var t=0;t<this.subs.length;t++)this.subs[t].destroy();this.subs=null}this.io.destroy(this)},e.prototype.close=e.prototype.disconnect=function(){return this.connected&&(n("performing disconnect (%s)",this.nsp),this.packet({type:en.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},e.prototype.compress=function(t){return this.flags.compress=t,this},e.prototype.binary=function(t){return this.flags.binary=t,this}})),Li=qi;function qi(t){this.ms=(t=t||{}).min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}qi.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var n=Math.random(),i=Math.floor(n*this.jitter*t);t=0==(1&Math.floor(10*n))?t-i:t+i}return 0|Math.min(t,this.max)},qi.prototype.reset=function(){this.attempts=0},qi.prototype.setMin=function(t){this.ms=t},qi.prototype.setMax=function(t){this.max=t},qi.prototype.setJitter=function(t){this.jitter=t};var $i=q("socket.io-client:manager"),Xi=Object.prototype.hasOwnProperty,Zi=Hi;function Hi(t,n){if(!(this instanceof Hi))return new Hi(t,n);t&&"object"==typeof t&&(n=t,t=void 0),(n=n||{}).path=n.path||"/socket.io",this.nsps={},this.subs=[],this.opts=n,this.reconnection(!1!==n.reconnection),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor(n.randomizationFactor||.5),this.backoff=new Li({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==n.timeout?2e4:n.timeout),this.readyState="closed",this.uri=t,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var i=n.parser||en;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this.autoConnect=!1!==n.autoConnect,this.autoConnect&&this.open()}Hi.prototype.emitAll=function(){for(var t in this.emit.apply(this,arguments),this.nsps)Xi.call(this.nsps,t)&&this.nsps[t].emit.apply(this.nsps[t],arguments)},Hi.prototype.updateSocketIds=function(){for(var t in this.nsps)Xi.call(this.nsps,t)&&(this.nsps[t].id=this.generateId(t))},Hi.prototype.generateId=function(t){return("/"===t?"":t+"#")+this.engine.id},W(Hi.prototype),Hi.prototype.reconnection=function(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection},Hi.prototype.reconnectionAttempts=function(t){return arguments.length?(this._reconnectionAttempts=t,this):this._reconnectionAttempts},Hi.prototype.reconnectionDelay=function(t){return arguments.length?(this._reconnectionDelay=t,this.backoff&&this.backoff.setMin(t),this):this._reconnectionDelay},Hi.prototype.randomizationFactor=function(t){return arguments.length?(this._randomizationFactor=t,this.backoff&&this.backoff.setJitter(t),this):this._randomizationFactor},Hi.prototype.reconnectionDelayMax=function(t){return arguments.length?(this._reconnectionDelayMax=t,this.backoff&&this.backoff.setMax(t),this):this._reconnectionDelayMax},Hi.prototype.timeout=function(t){return arguments.length?(this._timeout=t,this):this._timeout},Hi.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()},Hi.prototype.open=Hi.prototype.connect=function(t){if($i("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;$i("opening %s",this.uri),this.engine=Ii(this.uri,this.opts);var n=this.engine,i=this;this.readyState="opening",this.skipReconnect=!1;var r=_i(n,"open",(function(){i.onopen(),t&&t()})),e=_i(n,"error",(function(n){if($i("connect_error"),i.cleanup(),i.readyState="closed",i.emitAll("connect_error",n),t){var r=new Error("Connection error");r.data=n,t(r)}else i.maybeReconnectOnOpen()}));if(!1!==this._timeout){var s=this._timeout;$i("connect attempt will timeout after %d",s),0===s&&r.destroy();var o=setTimeout((function(){$i("connect attempt timed out after %d",s),r.destroy(),n.close(),n.emit("error","timeout"),i.emitAll("connect_timeout",s)}),s);this.subs.push({destroy:function(){clearTimeout(o)}})}return this.subs.push(r),this.subs.push(e),this},Hi.prototype.onopen=function(){$i("open"),this.cleanup(),this.readyState="open",this.emit("open");var t=this.engine;this.subs.push(_i(t,"data",zi(this,"ondata"))),this.subs.push(_i(t,"ping",zi(this,"onping"))),this.subs.push(_i(t,"pong",zi(this,"onpong"))),this.subs.push(_i(t,"error",zi(this,"onerror"))),this.subs.push(_i(t,"close",zi(this,"onclose"))),this.subs.push(_i(this.decoder,"decoded",zi(this,"ondecoded")))},Hi.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},Hi.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},Hi.prototype.ondata=function(t){this.decoder.add(t)},Hi.prototype.ondecoded=function(t){this.emit("packet",t)},Hi.prototype.onerror=function(t){$i("error",t),this.emitAll("error",t)},Hi.prototype.socket=function(t,n){var i=this.nsps[t];if(!i){i=new Di(this,t,n),this.nsps[t]=i;var r=this;i.on("connecting",e),i.on("connect",(function(){i.id=r.generateId(t)})),this.autoConnect&&e()}function e(){~Si(r.connecting,i)||r.connecting.push(i)}return i},Hi.prototype.destroy=function(t){var n=Si(this.connecting,t);~n&&this.connecting.splice(n,1),this.connecting.length||this.close()},Hi.prototype.packet=function(t){$i("writing packet %j",t);var n=this;t.query&&0===t.type&&(t.nsp+="?"+t.query),n.encoding?n.packetBuffer.push(t):(n.encoding=!0,this.encoder.encode(t,(function(i){for(var r=0;r<i.length;r++)n.engine.write(i[r],t.options);n.encoding=!1,n.processPacketQueue()})))},Hi.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var t=this.packetBuffer.shift();this.packet(t)}},Hi.prototype.cleanup=function(){$i("cleanup");for(var t=this.subs.length,n=0;n<t;n++)this.subs.shift().destroy();this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},Hi.prototype.close=Hi.prototype.disconnect=function(){$i("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,"opening"===this.readyState&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},Hi.prototype.onclose=function(t){$i("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",t),this._reconnection&&!this.skipReconnect&&this.reconnect()},Hi.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var t=this;if(this.backoff.attempts>=this._reconnectionAttempts)$i("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var n=this.backoff.duration();$i("will wait %dms before reconnect attempt",n),this.reconnecting=!0;var i=setTimeout((function(){t.skipReconnect||($i("attempting reconnect"),t.emitAll("reconnect_attempt",t.backoff.attempts),t.emitAll("reconnecting",t.backoff.attempts),t.skipReconnect||t.open((function(n){n?($i("reconnect attempt error"),t.reconnecting=!1,t.reconnect(),t.emitAll("reconnect_error",n.data)):($i("reconnect success"),t.onreconnect())})))}),n);this.subs.push({destroy:function(){clearTimeout(i)}})}},Hi.prototype.onreconnect=function(){var t=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",t)};var Pi=o((function(t,n){var i=q("socket.io-client");t.exports=n=e;var r=n.managers={};function e(t,n){"object"==typeof t&&(n=t,t=void 0),n=n||{};var e,s=function(t,n){var i=t;n=n||"undefined"!=typeof location&&location,null==t&&(t=n.protocol+"//"+n.host),"string"==typeof t&&("/"===t.charAt(0)&&(t="/"===t.charAt(1)?n.protocol+t:n.host+t),/^(https?|wss?):\/\//.test(t)||($("protocol-less url %s",t),t=void 0!==n?n.protocol+"//"+t:"https://"+t),$("parse %s",t),i=h(t)),i.port||(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";var r=-1!==i.host.indexOf(":")?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+r+":"+i.port,i.href=i.protocol+"://"+r+(n&&n.port===i.port?"":":"+i.port),i}(t),o=s.source,u=s.id;return n.forceNew||n["force new connection"]||!1===n.multiplex||r[u]&&s.path in r[u].nsps?(i("ignoring socket cache for %s",o),e=Zi(o,n)):(r[u]||(i("new io instance for %s",o),r[u]=Zi(o,n)),e=r[u]),s.query&&!n.query&&(n.query=s.query),e.socket(s.path,n)}n.protocol=en.protocol,n.connect=e,n.Manager=Zi,n.Socket=Di}));const Yi=class{constructor(n){t(this,n)}componentWillLoad(){const t=Pi("https://api.liftstatus.nl/",{transports:["websocket"],path:"/liftstatus/socket.io",reconnectionAttempts:5,query:{access_token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJvcmciOiJFRE5MIiwib2lkIjoibGlmdHN0YXR1cy1taS0zMTkwMSIsIm90eXBlIjoiZXh0IiwiY21kcyI6dHJ1ZSwiaWF0IjoxNjMzNjg1MTI3LCJleHAiOjE2MzM3NzE1MjcsImF1ZCI6ImVkbmwtbGlmdHN0YXR1cy1hcGkiLCJpc3MiOiJFRE5MIiwic3ViIjoiNTY1In0.q6SZQ1H1n23MwxJZnorVZ16gnVYefpknYKba9hqsZfI"}});t.emit("getSensorData",{},((t,n)=>{this.data=n,f.publish("LS-DATA",this.data)})),t.on("connect",(()=>{this.socketID=t.id})),t.emit("listen",{}),t.on("module",(t=>{const n=t.message.data,i=Object.keys(n)[0],r=Object.values(n)[0];this.data.values[i]=r,f.publish("LS-DATA",this.data)}))}render(){return n(i,null,n("fieldset",null,n("legend",null,"ls-data")),n("slot",null))}disconnectedCallback(){Pi.Socket.close()}};Yi.style=":host{display:block;font-family:var(--ls-font-family)}";const Vi=class{constructor(n){t(this,n)}render(){return n(i,null,n("fieldset",null,n("legend",null,"ls-history")),n("slot",null))}};Vi.style=":host{display:block;font-family:var(--ls-font-family)}";const Wi=class{constructor(n){t(this,n)}render(){return n(i,null,n("fieldset",null,n("legend",null,"ls-status"),n("ls-status-item",{"sensor-id":"500","data-label":"Status lift"}),n("ls-status-item",{"sensor-id":"501","data-label":"Current stop"}),n("ls-status-item",{"sensor-id":"502","data-label":"Front door"}),n("ls-status-item",{"sensor-id":"503","data-label":"Rear door"}),n("ls-status-item",{"sensor-id":"513","data-label":"Status"}),n("ls-status-item",{"sensor-id":"514","data-label":"Last passed stopping point"}),n("ls-status-item",{"sensor-id":"515","data-label":"Current stop"})),n("slot",null))}};Wi.style=":host{display:block;font-family:var(--ls-font-family)}";const Gi=class{constructor(n){t(this,n)}render(){return n(i,null,n("fieldset",null,n("legend",null,"ls-status-history")),n("slot",null))}};Gi.style=":host{display:block;font-family:var(--ls-font-family)}";const Ki=class{constructor(n){t(this,n),this.updateData=(t,n)=>{this.sensorData=n.values[this.sensorId]}}componentWillLoad(){this.token=f.subscribe("LS-DATA",this.updateData)}render(){return n(i,null,n("div",{class:"ls-label"},this.dataLabel||"Sensor data"),n("div",{class:"ls-value"},this.sensorData||"-"),n("slot",null))}disconnectedCallback(){f.unsubscribe(this.token)}};Ki.style=":host{display:block;font-family:var(--ls-font-family);color:var(--ls-font-primary-color)}div.ls-label{text-transform:uppercase;letter-spacing:0.05rem;font-weight:600;color:#71717A}div.ls-value{font-size:2rem;margin-top:-0.5rem;padding-bottom:1rem;height:2.75rem}";const Qi=class{constructor(n){t(this,n)}render(){return n(i,null,n("fieldset",null,n("legend",null,"ls-swimlane")),n("slot",null))}};Qi.style=":host{display:block;font-family:var(--ls-font-family)}";export{r as ls_3d_scene,e as ls_counters,Yi as ls_data,Vi as ls_history,Wi as ls_status,Gi as ls_status_history,Ki as ls_status_item,Qi as ls_swimlane}
@@ -0,0 +1,17 @@
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-01d5c148.js';
2
+
3
+ /*
4
+ Stencil Client Patch Browser v2.8.1 | MIT Licensed | https://stenciljs.com
5
+ */
6
+ const patchBrowser = () => {
7
+ const importMeta = import.meta.url;
8
+ const opts = {};
9
+ if (importMeta !== '') {
10
+ opts.resourcesUrl = new URL('.', importMeta).href;
11
+ }
12
+ return promiseResolve(opts);
13
+ };
14
+
15
+ patchBrowser().then(options => {
16
+ return bootstrapLazy([["ls-3d-scene_8",[[1,"ls-status"],[1,"ls-3d-scene"],[1,"ls-counters"],[1,"ls-data",{"data":[32],"socketID":[32]}],[1,"ls-history"],[1,"ls-status-history"],[1,"ls-swimlane"],[1,"ls-status-item",{"sensorId":[2,"sensor-id"],"dataLabel":[1,"data-label"],"sensorData":[32]}]]]], options);
17
+ });