/*! For license information please see chunk.264.764fd5283a9cebbad7a7.js.LICENSE.txt */
(self.webpackChunk_ember_auto_import_=self.webpackChunk_ember_auto_import_||[]).push([[264],{9489:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}}},5559:e=>{function t(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=t=function(e){return typeof e}:e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(n)}e.exports=t},7180:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{CI:()=>o,DEBUG:()=>r})
const r=!1,o=!1},5718:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{ChatStatusChecker:()=>a})
var r=/https:\/\/(.+)\.linkedin(?:-ei)?.(?:com|cn|biz)$/,o=1
function i(e,t){var n=e
return Object.keys(t).length>0&&-1===e.indexOf("?")&&(n+="?"),n+new URLSearchParams(t).toString()}var a=function(){function e(e,t,n){this.iframe=document.createElement("iframe"),this.channel=null,this.status="pending",this.noChannelException="MessageChannel has not been declared",this.env=e,this.listeners=new Set,this.options=t,this.hostParentElement=n,this._id=++o}return Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),e.prototype._canHandleMessage=function(e){return!!e.origin&&(this.env.testEnv?e.origin===window.location.origin:r.test(e.origin))},e.prototype.start=function(){var e=this
if(0===Object.keys(this.options).length||null===this.iframe)throw new Error("No library options were provided")
var t=this.options.optionalChatConfig,n=this.iframe,r=this.options.workflow,o=this.env.testEnv,a=this.env.baseUrl,s=window.location.origin,c=t&&t.preferredLanguage?t.preferredLanguage:null,u=t&&t.hcProduct?t.hcProduct:"linkedin",l={workflow:r,origin:s,clientId:""+this.id}
null!==c&&(l.prefLang=c)
var d=i("/test/fakes/iframe.html",l),f=i(a+"/help/"+u+"/chat/status",l)
null!==this.hostParentElement&&this.hostParentElement.appendChild(n),n.style.display="none",n.src=o?d:f,n.classList.add("care-chat-status"),window.addEventListener("message",(function(r){if(e._canHandleMessage(r)&&r&&r.data&&r.data.type&&r.data.status){var o=r.data
switch(o.type){case"care:chat:handshake":e.notifyStatusListeners(o.status),e.channel=new MessageChannel
var i=e.channel.port1,s=e.channel.port2
i.onmessage=e.onMessage.bind(e),n.contentWindow&&n.contentWindow.postMessage({type:"care:chat:init",optionalChatConfig:t,clientId:e.id},a,[s])
break
case"care:chat:configNotFound":console.warn("Config not found for workflow: "+e.options.workflow),e.notifyStatusListeners(o.status)}}}),!1)},e.prototype.startChat=function(){if(null===this.channel)throw new Error(this.noChannelException)
"available"===this.status?this.channel.port1.postMessage("care:chat:start"):console.warn("Cannot start chat if no agents are available")},e.prototype.stop=function(){if(null===this.channel)throw new Error(this.noChannelException)
this.channel.port1.postMessage("care:chat:stop")},e.prototype.destroy=function(){null!==this.channel&&(this.channel.port1.close(),this.channel.port2.close(),this.channel=null),this.listeners.clear(),null!==this.iframe&&this.iframe.parentNode&&this.iframe.parentNode.removeChild(this.iframe),this.iframe=null,this.hostParentElement=null},e.prototype.addStatusChangeListener=function(e){this.listeners.add(e)},e.prototype.getStatus=function(){return this.status},e.prototype.notifyStatusListeners=function(e){this.listeners.forEach((function(t){return t(e)}))},e.prototype.onMessage=function(e){var t=e.data,n=t.status,r=t.type,o=t.clientId
if(null==o||o===this.id)switch(r){case"care:chat:status":this.status=n,this.notifyStatusListeners(n)
break
case"care:chat:configNotFound":console.warn("Config not found for workflow: "+this.options.workflow),this.status=n,this.notifyStatusListeners(n)}},e}()},3462:(e,t,n)=>{"use strict"
function r(e,t){var n=Object.keys(e)
if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e)
t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{}
t%2?r(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n]
r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]
if(null!=n){var r,o,i=[],a=!0,s=!1
try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||d(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||d(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){if(e){if("string"==typeof e)return f(e,t)
var n=Object.prototype.toString.call(e).slice(8,-1)
return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length)
for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n]
return r}var h,p
n.r(t),n.d(t,{Client:()=>R,Task:()=>C,closeClient:()=>M,getClient:()=>A}),function(e){e.invalid="com.linekdin.realtimefrontend.Invalid",e.clientConnection="com.linkedin.realtimefrontend.ClientConnection",e.heartbeat="com.linkedin.realtimefrontend.Heartbeat",e.decoratedEvent="com.linkedin.realtimefrontend.DecoratedEvent"}(h||(h={})),function(e){e[e.CONNECTING=0]="CONNECTING",e[e.OPEN=1]="OPEN",e[e.CLOSE=2]="CLOSE"}(p||(p={}))
var g="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}
function v(e){var t={exports:{}}
return e(t,t.exports),t.exports}var m=v((function(e,t){e.exports=function(){var e="List(",t="(",n=/^(\/[^?]+)\??(.*)$/,r={extractPathAndQueryStringFromUrl:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",t=n.exec(e)
return t?{path:t[1],queryString:t[2]}:{path:"",queryString:""}}},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=/[,()':]/g,a=/[,()':]/,s={encode:function(e){if("object"!==(void 0===(e=JSON.parse(JSON.stringify(e)))?"undefined":o(e)))throw new Error("You must pass either an array or an object to the encode function.")
return this._process(e,!1)},reducedEncode:function(e){if("object"!==(void 0===(e=JSON.parse(JSON.stringify(e)))?"undefined":o(e)))throw new Error("You must pass either an array or an object to the reducedEncode function.")
return this._process(e,!0)},paramEncode:function(e){if(e=JSON.parse(JSON.stringify(e)),Array.isArray(e)||"object"!==(void 0===e?"undefined":o(e)))throw new Error("You must pass an object to the paramEncode function. Use arrayParamEncode.")
var t=[]
for(var n in e)e.hasOwnProperty(n)&&t.push(this._processPrimitive(n)+"="+this._process(e[n],!1))
return t.join("&")},arrayParamEncode:function(e){return this.paramEncode(this._arrayParamEncode(e))},_arrayParamEncode:function(e){if(e=JSON.parse(JSON.stringify(e)),!Array.isArray(e))throw new Error("You must pass an array to the arrayParamEncode function.")
return e.reduce((function(e,t){if(!t||!t.hasOwnProperty("name")||!t.hasOwnProperty("value"))throw new Error("Objects passed to the arrayParamEncode function must have name and value properties.")
if("object"===o(t.value)&&null!==t.value)throw new Error("Only primitives may be passed to arrayParamEncode as item values.")
var n=t.name,r=e.hasOwnProperty(n)
return r?r&&"object"===o(e[n])&&null!==e[n]?e[n].push(t.value):e[n]=[e[n],t.value]:e[n]=t.value,e}),{})},_process:function(e,t){return Array.isArray(e)?this._processArray(e,t):"object"===(void 0===e?"undefined":o(e))&&null!==e?this._processObject(e,t):this._processPrimitive(e,t)},_processArray:function(t,n){for(var r=new Array(t.length),o=0;o<t.length;o++)r[o]=this._process(t[o],n)
return e+r.join(",")+")"},_processObject:function(e,n){var r=[]
for(var o in e)e.hasOwnProperty(o)&&r.push(this._processPrimitive(o,n)+":"+this._process(e[o],n))
return t+r.join(",")+")"},_processPrimitive:function(e,t){return""===e?"''":t&&"string"==typeof e&&a.test(e)?e.replace(i,escape):t?e:encodeURIComponent(e).replace(i,escape)}},c=/(%2C|%28|%29|%27|%3A)/g,u=/(%2C|%28|%29|%27|%3A)/
function l(e,t,n){var r=2<arguments.length&&void 0!==n?n:0
return e.indexOf(t,r)===r}function d(e,t){if(e[e.length-1]!==t)throw new Error("Input has unbalanced prefix and suffix: "+e)}function f(e,t){for(var n=1<arguments.length&&void 0!==t?t:0,r=0,o=!1;n<e.length;){var i=e[n]
if("("===i&&(r++,o=!0),")"===i&&r--,0===r&&o)break
n++}return n}function h(e,t){return t?u.test(e)&&(e=e.replace(c,unescape)):e=decodeURIComponent(e),void 0===e||"''"===e?"":e}var p={paramDecode:function(e){var t=this
return e.split("&").reduce((function(e,n){if(!n.length)return e
if(0===n.indexOf("="))return e
var r=function(e,t){if(Array.isArray(e))return e
if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0
try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),2!==n.length);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e)
throw new TypeError("Invalid attempt to destructure non-iterable instance")}(n.split("=")),o=r[0],i=r[1]
return"''"===o&&(o=""),void 0!==i&&""!==i||(i="''"),e[decodeURIComponent(o)]=t._decode(i),e}),{})},decode:function(e){return this._decode(e,!1)},reducedDecode:function(e){return this._decode(e,!0)},_decode:function(n,r){return void 0!==n&&"''"!==n||(n=""),l(n,e)?(d(n,")"),this._decodeList(n.substring(5,n.length-1),r)):l(n,t)?(d(n,")"),this._decodeObject(n.substring(1,n.length-1),r)):h(n,r)},_decodeList:function(n,r){for(var o=[],i=0;i<n.length;)if(l(n,e,i)||l(n,t,i)){var a=f(n,i)
o.push(this._decode(n.substring(i,a+1),r)),i=a+2}else{var s=n.indexOf(",",i)
s<0&&(s=n.length),o.push(h(n.substring(i,s),r)),i=s+1}return o},_decodeObject:function(n,r){for(var o={},i=0;i<n.length;){var a=n.indexOf(":",i),s=h(n.substring(i,a),r)
if(i=a+1,n.startsWith(e,i)||n.startsWith(t,i)){var c=f(n,i)
o[s]=this._decode(n.substring(i,c+1),r),i=c+2}else{var u=n.indexOf(",",i)
u<0&&(u=n.length)
var l=h(n.substring(i,u),r)
o[s]=l,i=u+1}}return o}},g=Object.freeze({S_100_CONTINUE:100,S_101_SWITCHING_PROTOCOLS:101,S_200_OK:200,S_201_CREATED:201,S_202_ACCEPTED:202,S_203_NON_AUTHORITATIVE_INFORMATION:203,S_204_NO_CONTENT:204,S_205_RESET_CONTENT:205,S_206_PARTIAL_CONTENT:206,S_207_MULTI_STATUS:207,S_300_MULTIPLE_CHOICES:300,S_301_MOVED_PERMANENTLY:301,S_302_FOUND:302,S_303_SEE_OTHER:303,S_304_NOT_MODIFIED:304,S_305_USE_PROXY:305,S_307_TEMPORARY_REDIRECT:307,S_400_BAD_REQUEST:400,S_401_UNAUTHORIZED:401,S_402_PAYMENT_REQUIRED:402,S_403_FORBIDDEN:403,S_404_NOT_FOUND:404,S_405_METHOD_NOT_ALLOWED:405,S_406_NOT_ACCEPTABLE:406,S_407_PROXY_AUTHENTICATION_REQUIRED:407,S_408_REQUEST_TIMEOUT:408,S_409_CONFLICT:409,S_410_GONE:410,S_411_LENGTH_REQUIRED:411,S_412_PRECONDITION_FAILED:412,S_413_REQUEST_ENTITY_TOO_LARGE:413,S_414_REQUEST_URI_TOO_LONG:414,S_415_UNSUPPORTED_MEDIA_TYPE:415,S_416_REQUESTED_RANGE_NOT_SATISFIABLE:416,S_417_EXPECTATION_FAILED:417,S_422_UNPROCESSABLE_ENTITY:422,S_423_LOCKED:423,S_424_FAILED_DEPENDENCY:424,S_428_PRECONDITION_REQUIRED:428,S_429_TOO_MANY_REQUESTS:429,S_500_INTERNAL_SERVER_ERROR:500,S_501_NOT_IMPLEMENTED:501,S_502_BAD_GATEWAY:502,S_503_SERVICE_UNAVAILABLE:503,S_504_GATEWAY_TIMEOUT:504,S_505_HTTP_VERSION_NOT_SUPPORTED:505}),v="application/x-www-form-urlencoded",m=8e3
function y(e){if(Object&&Object.assign)return Object.assign.apply(Object,arguments)
if(null==e)throw new TypeError("Cannot convert undefined or null to object")
for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n]
if(null!=r)for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t}function b(e){if(!0===e.forceQueryTunnel){var t=r.extractPathAndQueryStringFromUrl(e.url),n=t.path,o=t.queryString
if(o){var i=y({},e.headers,{"X-HTTP-Method-Override":e.method}),a=void 0,s=void 0
if(e.body){var c="RESTLI_"+Date.now()
s="multipart/mixed; boundary="+c,a=["--"+c,"Content-Type: "+v,"",o,"--"+c,"Content-Type: application/json","",e.body,"--"+c+"--"].join("\r\n")}else s=v,a=o
return i["Content-Type"]=s,{body:a,headers:i,method:"POST",url:n}}}var u={method:e.method,url:e.url}
return e.body&&(u.body=e.body),u}function E(){var e=document.querySelector('meta[name="isQueryTunnelRequestSupported"]')
return e&&"true"===e.getAttribute("content")||!1}function w(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=r.extractPathAndQueryStringFromUrl(e),o=n.path,i=n.queryString
if(o.length>m)throw new Error("Per AFD limitations, this request url "+e+" will not work. Please contact ask_traffic@.")
if((e.length>m||i.length>4e3)&&"GET"===t.method){var a=y({},t)
a.url=e,a.forceQueryTunnel=!0
var s=b(a)
t.method=s.method,e=s.url,t.headers=s.headers,t.body=s.body,t.data=s.body}return{url:e,request:t}}return{encoder:s,decoder:p,httpStatus:g,queryTunnel:{encodeRequest:b,isQueryTunnelSupportedForAFD:E,checkAndEncodeLongUrl:w,queryTunnelRequest:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}
return E()?w(e,t):{url:e,request:t}}},utils:r}}()})),y=v((function(e,t){e.exports=function(){var e=new RegExp("urn:[^:]+:([a-z]\\w*)(?::(.+))?"),t=/^fs_/
function n(n){if("string"!=typeof n)throw new TypeError("URNs must be of type string, but the parameter passed to extractEntityInfoFromUrn was of type "+typeof n+".")
var r,o,i=e.exec(n)
return i&&(r=i[1].replace(t,""),o=i[2]),{id:o,type:r}}var r=/(?![^(]*\)),/
return{checkForEntityId:function(t){var n=e.exec(t)
return n?n[2]:t},extractEntityInfoFromUrn:n,urnToObject:function e(t){var o=n(t),i=o.id,a=o.type,s={}
if("("===i.charAt(0)){for(var c,u=i.substring(1,i.length-1).split(r),l=0;c=u[l];++l)0===c.indexOf("urn")&&(u[l]=e(c))
i=u}return s[a]=i,s}}}()})),b=function(e,t,n){return n.indexOf(e)===t},E=function(e){return function(t){return!e.includes(t)}},w=function(e){return 5===Math.floor(e/100)},_=function(){function e(t,n){var r=this
i(this,e),c(this,"_endpoint",void 0),c(this,"_connectionId",void 0),c(this,"_requestHeaders",void 0),c(this,"parseResponse",(function(e,t){var n=Object.keys(e.errors||{}).filter((function(t){return!w(e.errors[t].status)})),r=Object.keys(e.errors||{}).filter((function(t){return w(e.errors[t].status)}))
return[t.filter((function(e){return!n.includes(e)&&!r.includes(e)})),n,r]})),c(this,"clockSyncConfig",(function(){return{method:"GET",url:"".concat((e=r._endpoint,"".concat(e,"/realtimeFrontendTimestamp"))),body:[],headers:r._requestHeaders}
var e})),c(this,"subscribeConfig",(function(e){var t,n,o=r.connectionId,i=r._requestHeaders,a=e.map((function(e){return{clientConnectionId:o,topic:e}})),s=(t=a.map((function(e){return[m.encoder.encode(e),{}]})),Object.fromEntries?Object.fromEntries(t):l(t).reduce((function(e,t){var n=u(t,2),r=n[0],o=n[1]
return e[r]=o,e}),{}))
return{method:"PUT",url:"".concat((n=r._endpoint,"".concat(n,"/realtimeFrontendSubscriptions")),"?").concat(m.encoder.paramEncode({ids:a})),body:s,headers:i}})),c(this,"unsubscribeConfig",(function(e){return o(o({},r.subscribeConfig(e)),{},{method:"DELETE"})})),c(this,"apiCallSubscribe",(function(e){return r.sendRequest(r.subscribeConfig(e))})),c(this,"apiCallUnsubscribe",(function(e){return r.sendRequest(r.unsubscribeConfig(e))})),c(this,"apiCallClockSync",(function(){return r.sendRequest(r.clockSyncConfig())})),c(this,"sendRequest",(function(e){return new Promise((function(t,n){var r=o({},e)
r.body&&(r.body=JSON.stringify(r.body)),r.url.length>1e3&&(r.forceQueryTunnel=!0,r=m.queryTunnel.encodeRequest(r))
var i=new XMLHttpRequest
i.open(r.method,r.url),Object.entries(r.headers).forEach((function(e){var t=u(e,2),n=t[0],r=t[1]
return i.setRequestHeader(n,r)})),i.onerror=function(e){n({status:i.status,message:e.message||"Realtime: request failed"})},i.onreadystatechange=function(){var e=i.status
if(i.readyState===XMLHttpRequest.DONE)if(e>=200&&e<300)try{t(JSON.parse(i.responseText))}catch(t){n({status:e,message:"Realtime: Invalid JSON in API response"})}else n({status:e,message:"Realtime: API Server Error"})},i.send(r.body)}))})),this._endpoint=t,this._connectionId=null,this._requestHeaders=n}return s(e,[{key:"connectionId",get:function(){return this._connectionId}},{key:"setConnectionId",value:function(e){e&&(this._connectionId=e)}},{key:"disconnect",value:function(){this._connectionId=null}},{key:"subscribe",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0
return new Promise((function(r,o){null!==t.connectionId?t.apiCallSubscribe(e).then((function(n){r(t.parseResponse(n,e))})).catch((function(i){var a=i.status
412!==a&&w(a)&&n<2?t.subscribe(e,n+1).then(r):o(i)})):o(new Error("RealtimeAPI: error - missing connectionID"))}))}},{key:"unsubscribe",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0
return new Promise((function(r,o){null!==t.connectionId?t.apiCallUnsubscribe(e).then((function(n){var o=t.parseResponse(n,e)
r(o)})).catch((function(i){var a=i.status
412!==a&&w(a)&&n<2?t.unsubscribe(e,n+1).then(r).catch(o):o(i)})):o(new Error("RealtimeAPI: error - missing connectionID"))}))}},{key:"getTimestamp",value:function(){return this.apiCallClockSync()}}]),e}(),C=function(){function e(t){i(this,e),c(this,"_timer",0),c(this,"_taskFunction",void 0),this._taskFunction=t}return s(e,[{key:"start",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0
this._timer&&this.cancel(),this.schedule(this._taskFunction,e)}},{key:"cancel",value:function(){this._timer&&(window.clearTimeout(this._timer),this._timer=0)}},{key:"schedule",value:function(e,t){var n=this
this._timer=window.setTimeout((function(){e((function(r){return n.schedule(e,r||t)}))}),t)}}]),e}(),T=function(){function e(t,n,r){var o
i(this,e),c(this,"core",void 0),c(this,"_api",void 0),c(this,"_serverClockTimeDiff",0),c(this,"trackingContextPromise",void 0),c(this,"_lastTimeClockSynced",0),c(this,"_recentServerClockTimeDiffs",[]),this.core=t,this._api=n,this.trackingContextPromise=null===(o=this.core)||void 0===o?void 0:o.navigate(r)}return s(e,[{key:"syncRealtimeServerClockTime",value:function(){var e=this,t=Date.now()
if(!(t-this._lastTimeClockSynced<86e4))return this._lastTimeClockSynced=t,this._api.getTimestamp().then((function(n){var r=Date.now()
e._recentServerClockTimeDiffs=e._recentServerClockTimeDiffs.filter((function(e){return r-e.syncedAt<36e5}))
var o=r-t
0===o&&(o=1),e._recentServerClockTimeDiffs.push({syncedAt:r,clockDiff:n.timestamp-(t+r)/2,weight:1/o}),e._serverClockTimeDiff=e._computeWeightedAverageOfServerClockTimeDiff(e._recentServerClockTimeDiffs)}))}},{key:"getServerClockTime",value:function(){return this._serverClockTimeDiff?Date.now()+this._serverClockTimeDiff:-1}},{key:"_computeWeightedAverageOfServerClockTimeDiff",value:function(e){var t,n=0,r=0,o=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]
if(!n){if(Array.isArray(e)||(n=d(e))){n&&(e=n)
var r=0,o=function(){}
return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1
return{s:function(){n=n.call(e)},n:function(){var e=n.next()
return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}(e)
try{for(o.s();!(t=o.n()).done;){var i=t.value,a=i.clockDiff,s=i.weight
n+=s*a,r+=s}}catch(e){o.e(e)}finally{o.f()}return Math.round(n/r)}},{key:"fireRealtimeTracking",value:function(e,t){var n,r=this,o=t.topic,i=t.publisherTrackingId,a=t.trackingId,s={publisherTrackingId:i,realtimeEventId:t.id,realtimeTrackingId:a,topicUrn:o,receivedTime:t.receivedTime}
null===(n=this.trackingContextPromise)||void 0===n||n.finally((function(){var t
null===(t=r.core)||void 0===t||t.fireEvent(e,s)}))}}]),e}(),S={domain:"",detectMissedHeartbeat:!0,heartbeatPollInterval:15e3,heartbeatGapThreshold:3e4,coverageGap:18e4,acceptableErrorCount:2,alertChannelErrors:!1,maxRetryCount:2,connectHeaders:{},urlQueryParams:"?rc=1"},R=function(){function e(t){var n,r=this
i(this,e),c(this,"_options",void 0),c(this,"_events",{}),c(this,"_eventSourceErrorCount",0),c(this,"_api",void 0),c(this,"_eventSource",null),c(this,"_lastHeartBeatReceivedAt",null),c(this,"_heartBeatMonitor",void 0),c(this,"_reconnectTask",void 0),c(this,"_reconnectDelay",void 0),c(this,"_realtimeTracking",void 0),c(this,"_subscribedTopics",[]),c(this,"_personalTopicsTypes",[]),c(this,"_timeConnectionLost",void 0),c(this,"_boundUnloadHandler",null),c(this,"eventSourceOnmessage",(function(e){var t,n=r.parseMessage(e),i=n.type,a=n.eventData
switch(i){case h.invalid:r.triggerEvent("error",{status:500,message:a})
break
case h.clientConnection:var s=a.id,c=a.personalTopics
if(r._api.setConnectionId(s),r._personalTopicsTypes=l(c),r._subscribedTopics.length>0&&r.restoreSubscriptions(),r._lastHeartBeatReceivedAt=Date.now(),r.triggerEvent("connect",{id:s,personalTopicsTypes:r._personalTopicsTypes}),null!==r._timeConnectionLost){var u=Date.now()-r._timeConnectionLost
r._timeConnectionLost=null,u>r.options.heartbeatGapThreshold&&r.triggerEvent("reconnected",u)}break
case h.heartbeat:r._lastHeartBeatReceivedAt=Date.now(),r.triggerEvent("heartbeat",r._lastHeartBeatReceivedAt)
break
case h.decoratedEvent:default:var d=(t=r._personalTopicsTypes,function(e){var n=y.extractEntityInfoFromUrn(e).type
return t.includes(n)})
if(r._subscribedTopics.includes(a.topic)||d(a.topic)){if(r.triggerEvent("topic",o({},a)),r.realtimeTracking){var f=r.realtimeTracking.getServerClockTime()
a.receivedTime=f,r.realtimeTracking.fireRealtimeTracking("RealtimeEventDeliveredEvent",a)}}else r.triggerEvent("error",{status:500,message:'Received a message for "'.concat(a.topic,'" that was not subscribed to')})}})),c(this,"triggerEvent",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]
var o=t[0],i=t[1]
return!!r._events[o]&&(r._events[o].forEach((function(e){return e(o,i)})),!0)})),c(this,"eventSourceOnError",(function(e){if(r._eventSourceErrorCount++,function(e){return void 0!==e.error&&null!==e.error}(e)){var t,n,o
if(401===e.error.status)return r.disconnectAndClose(),void r.triggerEvent("error",e.error);(!r._eventSource||(null===(t=r._eventSource)||void 0===t?void 0:t.readyState)===p.CLOSE||r._eventSourceErrorCount>r.options.acceptableErrorCount)&&r.scheduleReconnect(),r.triggerEvent("error",{status:null!==(n=e.error.status)&&void 0!==n?n:500,message:"EventSource error - ".concat(null!==(o=e.error.message)&&void 0!==o?o:"unknown"),originalEvent:e.error})}else{var i;(!r._eventSource||(null===(i=r._eventSource)||void 0===i?void 0:i.readyState)===p.CLOSE||r._eventSourceErrorCount>r.options.acceptableErrorCount)&&r.scheduleReconnect(),r.options.alertChannelErrors&&r.triggerEvent("error",{status:900,message:"Unknown EventSource connection error/warning event",originalEvent:e})}})),c(this,"parseMessage",(function(e){var t
try{t=JSON.parse(e.data)}catch(t){var n=JSON.stringify(e.data)
return{type:h.invalid,eventData:"Error parsing JSON in ember-cli-realtime. JSON not valid: ".concat(n)}}var r=Object.keys(t)[0]
return{type:r,eventData:t[r]}})),c(this,"_reconnectHandler",(function(e){r.triggerEvent("reconnecting",null),r.connect().catch((function(t){var n,o
r._eventSource=null
var i={status:null!==(n=t.status)&&void 0!==n?n:900,message:"EventSource connection failed - ".concat(null!==(o=t.message)&&void 0!==o?o:"unknown reason"),originalEvent:t}
t.status>=400&&t.status<500?r.triggerEvent("error",i):(r.options.alertChannelErrors&&r.triggerEvent("error",i),e(r._reconnectDelay()))}))})),c(this,"_heartbeatCheck",(function(e){if(null===r._timeConnectionLost){if(null===r._lastHeartBeatReceivedAt)return void r.scheduleReconnect()
var t=Date.now()-r._lastHeartBeatReceivedAt
if(t>r.options.heartbeatGapThreshold)return r.triggerEvent("poorRealtimeConnectionDetected",t),void r.scheduleReconnect()}e()})),c(this,"scheduleReconnect",(function(){r.disconnectAndClose(),r._reconnectTask.start(r._reconnectDelay())})),c(this,"startHeartBeatMonitoring",(function(){r._options.detectMissedHeartbeat&&r._heartBeatMonitor.start(r.options.heartbeatPollInterval)})),c(this,"setupLeaveGuard",(function(){r._boundUnloadHandler&&window.removeEventListener("beforeunload",r._boundUnloadHandler),r._boundUnloadHandler=r.beforeUnloadHandler.bind(r),window.addEventListener("beforeunload",r._boundUnloadHandler)})),this._options=o(o({},S),t),this._options.heartbeatGapThreshold=Math.max(2*this._options.heartbeatPollInterval,this.options.heartbeatGapThreshold),this._reconnectDelay=(n=0,function(){var e=++n-Math.max(1,0)
if(e<=0)return 0
var t=4*Math.random()
return 1===e?1e3*(5+t):1e3*(10+t)}),this._api=new _(this._options.domain,this._options.connectHeaders),this._heartBeatMonitor=new C(this._heartbeatCheck.bind(this)),this._reconnectTask=new C(this._reconnectHandler.bind(this)),this._timeConnectionLost=null,this._options.tracking&&(this._realtimeTracking=new T(this._options.tracking.trackingCore,this._api,this._options.tracking.pageKey)),this.setupLeaveGuard()}return s(e,[{key:"options",get:function(){return this._options}},{key:"realtimeTracking",get:function(){return this._realtimeTracking}},{key:"connected",get:function(){return null!==this._eventSource}},{key:"realtimeConnectUrl",get:function(){var e=this._options.domain.endsWith("/")?"":"/"
return"".concat(this._options.domain).concat(e,"realtime/connect").concat(this._options.urlQueryParams)}},{key:"addSubscriptions",value:function(e){var t=this.filterSubscriptionList(e,this._subscribedTopics)
return 0===t.length?Promise.resolve({succeeded:[],failed:[]}):this.apiSubscribe(t)}},{key:"removeSubscriptions",value:function(e){var t=this
return new Promise((function(n,r){var o,i=(e instanceof Array?e:[e]).filter(b).filter((o=t._subscribedTopics,function(e){return o.includes(e)}))
if(0===i.length)return n({succeeded:[],failed:[]})
t._api.unsubscribe(i).then((function(e){var r=u(e,2),o=r[0],i=r[1]
o.forEach((function(e){return t.triggerEvent("unsubscribe",e)})),i.forEach((function(e){return t.triggerEvent("unsubscribeFailed",e)})),t._subscribedTopics=t._subscribedTopics.filter(E(o)),n({succeeded:o,failed:i})})).catch((function(e){t.triggerEvent("error",e),r(e)}))}))}},{key:"addEventListener",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r]
var o=n[0],i=n[1]
return this._events[o]||(this._events[o]=[]),this._events[o].includes(i)?null:(this._events[o].push(i),function(){return e.removeEventListener.apply(e,l([o,i]))})}},{key:"removeEventListener",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]
var r=t[0],o=t[1]
if(!this._events[r])return!1
var i=this._events[r].length
return this._events[r]=this._events[r].filter((function(e){return e!==o})),i!==this._events[r].length}},{key:"_getConnectionHandler",value:function(e,t,n){var r=this
return function(o){n.removeEventListener("error",t),n.addEventListener("error",r.eventSourceOnError.bind(r)),r.startHeartBeatMonitoring(),r.triggerEvent("open",null),e()}}},{key:"connect",value:function(){var e=this
return this._eventSource?Promise.resolve():new Promise((function(t,n){var r=e.connectEventSource()
if(r.readyState!==p.CONNECTING){var o=new Error("EventSource readyState is incorrect: ".concat(r.readyState))
e.triggerEvent("error",o),n(o)}else{var i=function(e){r.readyState!==p.CONNECTING&&n(e)}
r.addEventListener("error",i),r.addEventListener("open",e._getConnectionHandler(t,i,r)),r.addEventListener("message",e.eventSourceOnmessage.bind(e)),e.realtimeTracking&&e.realtimeTracking.syncRealtimeServerClockTime()}}))}},{key:"disconnectAndClose",value:function(){this._timeConnectionLost||(this._timeConnectionLost=Date.now(),this._heartBeatMonitor.cancel(),this._reconnectTask.cancel(),this._eventSource&&(this._api.disconnect(),this._eventSource.close(),this._eventSource=null),this._eventSourceErrorCount=0,this.triggerEvent("close",null))}},{key:"filterSubscriptionList",value:function(e,t){var n,r=(n=this._personalTopicsTypes,function(e){var t=y.extractEntityInfoFromUrn(e).type
return!n.includes(t)}),o=E(t)
return(e instanceof Array?e:[e]).filter(b).filter(r).filter(o)}},{key:"restoreSubscriptions",value:function(){var e=this.filterSubscriptionList(this._subscribedTopics,[])
return 0===e.length?Promise.resolve({succeeded:[],failed:[]}):this.apiSubscribe(e)}},{key:"apiSubscribe",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1
return new Promise((function(r,o){t._api.subscribe(e).then((function(e){var i=u(e,3),a=i[0],s=i[1],c=i[2]
t._subscribedTopics=[].concat(l(t._subscribedTopics),l(a.filter(E(t._subscribedTopics)))),a.forEach((function(e){return t.triggerEvent("subscribe",e)})),c.length>0&&n<t.options.maxRetryCount?t.apiSubscribe(c,n+1).then((function(e){r({succeeded:[].concat(l(a),l(e.succeeded)),failed:[].concat(l(s),l(e.failed))})})).catch(o):(s.forEach((function(e){return t.triggerEvent("subscribeFailed",e)})),r({succeeded:a,failed:[].concat(l(s),l(c))}))})).catch((function(n){412===n.status?(t.scheduleReconnect(),r({succeeded:[],failed:e})):(t.triggerEvent("error",n),o(n))}))}))}},{key:"connectEventSource",value:function(){return this._eventSource||(this._eventSource=new EventSource(this.realtimeConnectUrl,{headers:this.options.connectHeaders,withCredentials:!0})),this._eventSource}},{key:"beforeUnloadHandler",value:function(){e.close()}}],[{key:"create",value:function(t){return e.singleton?e.singleton._options=o(o({},e.singleton._options),t):e.singleton=new e(t),e.singleton}},{key:"close",value:function(){if(!e.singleton)return!1
var t=e.singleton._boundUnloadHandler
return t&&window.removeEventListener("beforeunload",t),e.singleton.disconnectAndClose(),e.singleton=null,!0}}]),e}()
c(R,"singleton",void 0)
var O=v((function(e,t){!function(n){var r=n.setTimeout,o=n.clearTimeout,i=n.XMLHttpRequest,a=n.XDomainRequest,s=n.ActiveXObject,c=n.EventSource,u=n.document,l=n.Promise,d=n.fetch,f=n.Response,h=n.TextDecoder,p=n.TextEncoder,g=n.AbortController
if("undefined"==typeof window||void 0===u||"readyState"in u||null!=u.body||(u.readyState="loading",window.addEventListener("load",(function(e){u.readyState="complete"}),!1)),null==i&&null!=s&&(i=function(){return new s("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==g){var v=d
d=function(e,t){var n=t.signal
return v(e,{headers:t.headers,credentials:t.credentials,cache:t.cache}).then((function(e){var t=e.body.getReader()
return n._reader=t,n._aborted&&n._reader.cancel(),{status:e.status,statusText:e.statusText,headers:e.headers,body:{getReader:function(){return t}}}}))},g=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function m(){this.bitsNeeded=0,this.codePoint=0}m.prototype.decode=function(e){function t(e,t,n){if(1===n)return e>=128>>t&&e<<t<=2047
if(2===n)return e>=2048>>t&&e<<t<=55295||e>=57344>>t&&e<<t<=65535
if(3===n)return e>=65536>>t&&e<<t<=1114111
throw new Error}function n(e,t){if(6===e)return t>>6>15?3:t>31?2:1
if(12===e)return t>15?3:2
if(18===e)return 3
throw new Error}for(var r="",o=this.bitsNeeded,i=this.codePoint,a=0;a<e.length;a+=1){var s=e[a]
0!==o&&(s<128||s>191||!t(i<<6|63&s,o-6,n(o,i)))&&(o=0,i=65533,r+=String.fromCharCode(i)),0===o?(s>=0&&s<=127?(o=0,i=s):s>=192&&s<=223?(o=6,i=31&s):s>=224&&s<=239?(o=12,i=15&s):s>=240&&s<=247?(o=18,i=7&s):(o=0,i=65533),0===o||t(i,o,n(o,i))||(o=0,i=65533)):(o-=6,i=i<<6|63&s),0===o&&(i<=65535?r+=String.fromCharCode(i):(r+=String.fromCharCode(55296+(i-65535-1>>10)),r+=String.fromCharCode(56320+(i-65535-1&1023))))}return this.bitsNeeded=o,this.codePoint=i,r},null!=h&&null!=p&&function(){try{return"test"===(new h).decode((new p).encode("test"),{stream:!0})}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}return!1}()||(h=m)
var y=function(){}
function b(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=y,this.onload=y,this.onerror=y,this.onreadystatechange=y,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=y}function E(e){return e.replace(/[A-Z]/g,(function(e){return String.fromCharCode(e.charCodeAt(0)+32)}))}function w(e){for(var t=Object.create(null),n=e.split("\r\n"),r=0;r<n.length;r+=1){var o=n[r].split(": "),i=o.shift(),a=o.join(": ")
t[E(i)]=a}this._map=t}function _(){}function C(e){this._headers=e}function T(){}function S(){this._listeners=Object.create(null)}function R(e){r((function(){throw e}),0)}function O(e){this.type=e,this.target=void 0}function A(e,t){O.call(this,e),this.data=t.data,this.lastEventId=t.lastEventId}function M(e,t){O.call(this,e),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}function I(e,t){O.call(this,e),this.error=t.error}b.prototype.open=function(e,t){this._abort(!0)
var n=this,a=this._xhr,s=1,c=0
this._abort=function(e){0!==n._sendTimeout&&(o(n._sendTimeout),n._sendTimeout=0),1!==s&&2!==s&&3!==s||(s=4,a.onload=y,a.onerror=y,a.onabort=y,a.onprogress=y,a.onreadystatechange=y,a.abort(),0!==c&&(o(c),c=0),e||(n.readyState=4,n.onabort(null),n.onreadystatechange())),s=0}
var u=function(){if(1===s){var e=0,t="",r=void 0
if("contentType"in a)e=200,t="OK",r=a.contentType
else try{e=a.status,t=a.statusText,r=a.getResponseHeader("Content-Type")}catch(n){e=0,t="",r=void 0}0!==e&&(s=2,n.readyState=2,n.status=e,n.statusText=t,n._contentType=r,n.onreadystatechange())}},l=function(){if(u(),2===s||3===s){s=3
var e=""
try{e=a.responseText}catch(e){}n.readyState=3,n.responseText=e,n.onprogress()}},d=function(e,t){if(null!=t&&null!=t.preventDefault||(t={preventDefault:y}),l(),1===s||2===s||3===s){if(s=4,0!==c&&(o(c),c=0),n.readyState=4,"load"===e)n.onload(t)
else if("error"===e)n.onerror(t)
else{if("abort"!==e)throw new TypeError
n.onabort(t)}n.onreadystatechange()}},f=function(){c=r((function(){f()}),500),3===a.readyState&&l()}
"onload"in a&&(a.onload=function(e){d("load",e)}),"onerror"in a&&(a.onerror=function(e){d("error",e)}),"onabort"in a&&(a.onabort=function(e){d("abort",e)}),"onprogress"in a&&(a.onprogress=l),"onreadystatechange"in a&&(a.onreadystatechange=function(e){!function(e){null!=a&&(4===a.readyState?"onload"in a&&"onerror"in a&&"onabort"in a||d(""===a.responseText?"error":"load",e):3===a.readyState?"onprogress"in a||l():2===a.readyState&&u())}(e)}),!("contentType"in a)&&"ontimeout"in i.prototype||(t+=(-1===t.indexOf("?")?"?":"&")+"padding=true"),a.open(e,t,!0),"readyState"in a&&(c=r((function(){f()}),0))},b.prototype.abort=function(){this._abort(!1)},b.prototype.getResponseHeader=function(e){return this._contentType},b.prototype.setRequestHeader=function(e,t){var n=this._xhr
"setRequestHeader"in n&&n.setRequestHeader(e,t)},b.prototype.getAllResponseHeaders=function(){return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},b.prototype.send=function(){if("ontimeout"in i.prototype&&("sendAsBinary"in i.prototype||"mozAnon"in i.prototype)||null==u||null==u.readyState||"complete"===u.readyState){var e=this._xhr
"withCredentials"in e&&(e.withCredentials=this.withCredentials)
try{e.send(void 0)}catch(e){throw e}}else{var t=this
t._sendTimeout=r((function(){t._sendTimeout=0,t.send()}),4)}},w.prototype.get=function(e){return this._map[E(e)]},null!=i&&null==i.HEADERS_RECEIVED&&(i.HEADERS_RECEIVED=2),_.prototype.open=function(e,t,n,r,o,a,s){e.open("GET",o)
var c=0
for(var u in e.onprogress=function(){var t=e.responseText.slice(c)
c+=t.length,n(t)},e.onerror=function(e){e.preventDefault(),r(new Error("NetworkError"))},e.onload=function(){r(null)},e.onabort=function(){r(null)},e.onreadystatechange=function(){if(e.readyState===i.HEADERS_RECEIVED){var n=e.status,r=e.statusText,o=e.getResponseHeader("Content-Type"),a=e.getAllResponseHeaders()
t(n,r,o,new w(a))}},e.withCredentials=a,s)Object.prototype.hasOwnProperty.call(s,u)&&e.setRequestHeader(u,s[u])
return e.send(),e},C.prototype.get=function(e){return this._headers.get(e)},T.prototype.open=function(e,t,n,r,o,i,a){var s=null,c=new g,u=c.signal,f=new h
return d(o,{headers:a,credentials:i?"include":"same-origin",signal:u,cache:"no-store"}).then((function(e){return s=e.body.getReader(),t(e.status,e.statusText,e.headers.get("Content-Type"),new C(e.headers)),new l((function(e,t){var r=function(){s.read().then((function(t){if(t.done)e(void 0)
else{var o=f.decode(t.value,{stream:!0})
n(o),r()}})).catch((function(e){t(e)}))}
r()}))})).catch((function(e){return"AbortError"===e.name?void 0:e})).then((function(e){r(e)})),{abort:function(){null!=s&&s.cancel(),c.abort()}}},S.prototype.dispatchEvent=function(e){e.target=this
var t=this._listeners[e.type]
if(null!=t)for(var n=t.length,r=0;r<n;r+=1){var o=t[r]
try{"function"==typeof o.handleEvent?o.handleEvent(e):o.call(this,e)}catch(e){R(e)}}},S.prototype.addEventListener=function(e,t){e=String(e)
var n=this._listeners,r=n[e]
null==r&&(r=[],n[e]=r)
for(var o=!1,i=0;i<r.length;i+=1)r[i]===t&&(o=!0)
o||r.push(t)},S.prototype.removeEventListener=function(e,t){e=String(e)
var n=this._listeners,r=n[e]
if(null!=r){for(var o=[],i=0;i<r.length;i+=1)r[i]!==t&&o.push(r[i])
0===o.length?delete n[e]:n[e]=o}},A.prototype=Object.create(O.prototype),M.prototype=Object.create(O.prototype),I.prototype=Object.create(O.prototype)
var k=/^text\/event\-stream(;.*)?$/i,D=function(e,t){var n=null==e?t:parseInt(e,10)
return n!=n&&(n=t),P(n)},P=function(e){return Math.min(Math.max(e,1e3),18e6)},N=function(e,t,n){try{"function"==typeof t&&t.call(e,n)}catch(e){R(e)}}
function x(e,t){S.call(this),t=t||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,function(e,t,n){t=String(t)
var s=Boolean(n.withCredentials),c=n.lastEventIdQueryParameterName||"lastEventId",u=P(1e3),l=D(n.heartbeatTimeout,45e3),d="",f=u,h=!1,p=0,g=n.headers||{},v=n.Transport,m=L&&null==v?void 0:new b(null!=v?new v:null!=i&&"withCredentials"in i.prototype||null==a?new i:new a),y=null!=v&&"string"!=typeof v?new v:null==m?new T:new _,E=void 0,w=0,C=-1,S="",R="",O="",x="",j=0,B=0,F=0,U=function(t,n,r,o){if(0===C)if(200===t&&null!=r&&k.test(r)){C=1,h=Date.now(),f=u,e.readyState=1
var i=new M("open",{status:t,statusText:n,headers:o})
e.dispatchEvent(i),N(e,e.onopen,i)}else{var a=""
200!==t?(n&&(n=n.replace(/\s+/g," ")),a="EventSource's response has a status "+t+" "+n+" that is not 200. Aborting the connection."):a="EventSource's response has a Content-Type specifying an unsupported type: "+(null==r?"-":r.replace(/\s+/g," "))+". Aborting the connection.",K(),i=new M("error",{status:t,statusText:n,headers:o}),e.dispatchEvent(i),N(e,e.onerror,i),console.error(a)}},H=function(t){if(1===C){for(var n=-1,i=0;i<t.length;i+=1)(c=t.charCodeAt(i))!=="\n".charCodeAt(0)&&c!=="\r".charCodeAt(0)||(n=i)
var a=(-1!==n?x:"")+t.slice(0,n+1)
x=(-1===n?x:"")+t.slice(n+1),""!==t&&(h=Date.now(),p+=t.length)
for(var s=0;s<a.length;s+=1){var c=a.charCodeAt(s)
if(-1===j&&c==="\n".charCodeAt(0))j=0
else if(-1===j&&(j=0),c==="\r".charCodeAt(0)||c==="\n".charCodeAt(0)){if(0!==j){1===j&&(F=s+1)
var g=a.slice(B,F-1),v=a.slice(F+(F<s&&a.charCodeAt(F)===" ".charCodeAt(0)?1:0),s)
"data"===g?(S+="\n",S+=v):"id"===g?R=v:"event"===g?O=v:"retry"===g?(u=D(v,u),f=u):"heartbeatTimeout"===g&&(l=D(v,l),0!==w&&(o(w),w=r((function(){q()}),l)))}if(0===j){if(""!==S){d=R,""===O&&(O="message")
var m=new A(O,{data:S.slice(1),lastEventId:R})
if(e.dispatchEvent(m),"open"===O?N(e,e.onopen,m):"message"===O?N(e,e.onmessage,m):"error"===O&&N(e,e.onerror,m),2===C)return}S="",O=""}j=c==="\r".charCodeAt(0)?-1:0}else 0===j&&(B=s,j=1),1===j?c===":".charCodeAt(0)&&(F=s+1,j=2):2===j&&(j=3)}}},Z=function(t){if(1===C||0===C){C=-1,0!==w&&(o(w),w=0),w=r((function(){q()}),f),f=P(Math.min(16*u,2*f)),e.readyState=0
var n=new I("error",{error:t})
e.dispatchEvent(n),N(e,e.onerror,n),null!=t&&console.error(t)}},K=function(){C=2,null!=E&&(E.abort(),E=void 0),0!==w&&(o(w),w=0),e.readyState=2},q=function(){if(w=0,-1===C){h=!1,p=0,w=r((function(){q()}),l),C=0,S="",O="",R=d,x="",B=0,F=0,j=0
var n=t
if("data:"!==t.slice(0,5)&&"blob:"!==t.slice(0,5)&&""!==d){var o=t.indexOf("?")
n=-1===o?t:t.slice(0,o+1)+t.slice(o+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,(function(e,t){return t===c?"":e})),n+=(-1===t.indexOf("?")?"?":"&")+c+"="+encodeURIComponent(d)}var i=e.withCredentials,a={Accept:"text/event-stream"},s=e.headers
if(null!=s)for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&(a[u]=s[u])
try{E=y.open(m,U,H,Z,n,i,a)}catch(e){throw K(),e}}else if(h||null==E){var f=Math.max((h||Date.now())+l-Date.now(),1)
h=!1,w=r((function(){q()}),f)}else Z(new Error("No activity within "+l+" milliseconds. "+(0===C?"No response received.":p+" chars received.")+" Reconnecting.")),null!=E&&(E.abort(),E=void 0)}
e.url=t,e.readyState=0,e.withCredentials=s,e.headers=g,e._close=K,q()}(this,e,t)}var L=null!=d&&null!=f&&"body"in f.prototype
x.prototype=Object.create(S.prototype),x.prototype.CONNECTING=0,x.prototype.OPEN=1,x.prototype.CLOSED=2,x.prototype.close=function(){this._close()},x.CONNECTING=0,x.OPEN=1,x.CLOSED=2,x.prototype.withCredentials=void 0
var j,B=c
null==i||null!=c&&"withCredentials"in c.prototype||(B=x),void 0!==(j=function(e){e.EventSourcePolyfill=x,e.NativeEventSource=c,e.EventSource=B}(t))&&(e.exports=j)}("undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:g:globalThis)}))
function A(e){return R.create(e)}function M(){return R.close()}"undefined"!=typeof globalThis?globalThis.EventSource=O.EventSourcePolyfill:window.EventSource=O.EventSourcePolyfill},5787:(e,t,n)=>{"use strict"
function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i
n.r(t),n.d(t,{NON_ESSENTIAL_CATEGORIES:()=>u,USER_MODE:()=>l,getBannerData:()=>C,getCookieConsent:()=>_,parseEncodedConsent:()=>w,updateCookieConsent:()=>T})
var a,s,c,u={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},l={GUEST:"GUEST",MEMBER:"MEMBER"},d=(o(i={},l.GUEST,"li_gc"),o(i,l.MEMBER,"li_mc"),i),f="liap",h=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null
for(var a in r(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=n,this.userMode=o,this.optedInConsentMap={},u)t[a]=t[a]||0,0!==t[a]&&(this.consentAvailable=!0),this.optedInConsentMap[a]=1===t[a]||0===t[a]&&1===i},p=(a=[u.ADVERTISING,u.ANALYTICS_AND_RESEARCH,u.FUNCTIONAL],s=[0,1,2,0],c=new RegExp(["^(\\d+)","(\\d+)","(\\d+)","((?:.|\\s)+)"].join(";")),{parseConsentBody:function(e,t){var n=e.match(c)
if(!n)return{error:"Invalid consent body encoding",consent:new h}
for(var r=parseInt(n[1],10),o={},i=0;i<a.length;i++)o[a[i]]=s[r>>2*i&3]
var u=new Date(1e3*parseInt(n[2],10)),l=parseInt(n[3],10),d=0
return l>=0&&l<=3&&(d=s[l]),{error:null,consent:new h(o,u,t,d)}}}),g=new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),v=function(e,t){var n=t.match(new RegExp("(?:^|; *)".concat(e,"=([^;]*)")))
return n&&n.length>1?n[1]:null},m=function(e,t){var n=v(d[e],t)
return n?w(n,e):v(d[l.GUEST],t)||v(d[l.MEMBER],t)?y(2):y(1)},y=function(e){var t={}
for(var n in u)t[n]=e
return{error:null,consent:new h(t,null,null,e)}},b=function(){var e=document.domain.match(/^(?:|.*\.)([^\.]+\.[^\.]+)$/)
return e?e[1]:"linkedin-ei.com"},E=function(e){var t=e===l.MEMBER?"settings/member-cookies":"mypreferences/g/guest-cookies"
return"https://www.".concat(b(),"/").concat(t)},w=function(e,t){e&&e.length>1&&'"'==e.charAt(0)&&'"'==e.charAt(e.length-1)&&(e=e.substring(1,e.length-1))
var n,r=null
try{r=(n=e,"undefined"==typeof atob&&"undefined"!=typeof Buffer?Buffer.from(n,"base64").toString("binary"):atob(n)).match(g)}catch(e){}if(!r)return{error:"Invalid consent encoding",consent:new h}
var o=parseInt(r[1],10),i=r[2]
return 1===o?p.parseConsentBody(i,t):{error:"Invalid encoded consent version ".concat(o),consent:new h}},_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.cookie
return e||(e=v(f,t)?v(d[l.MEMBER],t)?l.MEMBER:l.GUEST:v(d[l.GUEST],t)?l.GUEST:l.MEMBER),m(e,t)},C=function(e){var t=_(e),n=t.consent,r=e||n.userMode||l.GUEST
return{showBanner:!t.error&&!n.consentAvailable,userMode:r,managePreferenceUrl:E(r)}},T=function(e,t){var n=e.optedInConsentMap,r=e.updateSettings,o=e.userMode
t=t||function(e,t){},e.optedInConsentMap||t("optedInConsentMap is a required option",null)
var i=new XMLHttpRequest
i.open("POST","https://www.".concat(b(),"/cookie-consent/")),i.setRequestHeader("Content-Type","application/json"),i.withCredentials=!0,i.onload=function(){200!==i.status?t("Request failed with status ".concat(i.status),null):t(null,i)},i.onerror=function(){t("Request failed with an error",i)}
var a={UPDATE_SETTINGS:r,USER_MODE:o,CATEGORIES:{}}
for(var s in u){var c=void 0
!0===n[s]?c=1:!1===n[s]&&(c=2),a.CATEGORIES[s]=c}i.send(JSON.stringify(a))}},2158:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{CALL_TREE_ID_HEADER_NAME:()=>s,DEGRADATION_TRACKING_EVENT_FIELD:()=>p,DEGRADATION_TRACKING_EVENT_NAME:()=>i,DOWNSTREAM_REQUEST_FIELD:()=>g,DegradationTrackingMetadata:()=>k,DegradationTrackingMetadataOptionName:()=>S,FABRIC_HEADER_NAME:()=>l,FEATURE_DEGRADATION_METRIC_EVENT_NAME:()=>a,FailureTrackingMetadata:()=>H,INSTRUMENTATION_GUIDE_PROMPT:()=>o,InternalFailureProcessingMetadata:()=>Z,InternalFeatureDegradationMetricEventProducer:()=>b,InternalFeatureDegradationMetricStore:()=>C,InvalidArgumentError:()=>O,JET_NOISE_TAG:()=>y,JET_UNCLASSIFIED_ERROR_TAG:()=>m,METRIC_EMISSION_INTERVAL_IN_MS:()=>v,MICROSOFT_EDGE_REFERENCE_HEADER_NAME:()=>u,PEM_METADATA_HEADER_NAME:()=>d,PEM_RESPONSE_METADATA_HEADER_NAME:()=>f,PEM_RESPONSE_METATADA_HEADER_AVAILABILITY_KEY:()=>h,POINT_OF_PRESENCE_ID_HEADER_NAME:()=>c,ParsedResponseHeaders:()=>K,PemTrackingService:()=>V,ResponseDetails:()=>q,RetryableDegradationTrackingMetadata:()=>D,SUPPORTED_DEGRADATION_TRACKING_METADATA_OPTIONS:()=>R,calculateSuccessfulDownstreamCallsRatio:()=>B,createDegradeEvents:()=>L,determineResponseErrorType:()=>x,generateSpanSuffix:()=>j,parseDownstreamEndpointPathname:()=>P,refineServerErrorType:()=>N,validateKey:()=>I,validateProductName:()=>M})
var r=n(8972)
const o="See https://go/pem/degradation-tracking-user-guide for instrumentation instructions",i="FeatureDegradeEvent",a="FeatureDegradationMetricEvent",s="x-li-uuid",c="x-li-pop",u="x-msedge-ref",l="x-li-fabric",d="X-LI-PEM-Metadata",f="x-li-pem-resp-meta",h="availability",p={featureKey:"featureKey",productName:"productName",downstreamRequests:"downstreamRequests"},g={degradationKey:"degradationKey",degradationReason:"degradationReason",responseCode:"responseCode",endpointPath:"endpointPath",callTreeId:"responseCallTreeId"},v=6e4,m="pem-unclassified-error",y="noise"
class b extends class{constructor(e,t){this._collectedFeatureMetrics=e,this._fireEventCallback=t}}{produceMetricEvent(e){this._collectedFeatureMetrics.flushMetrics().forEach((t=>{const n=[]
t.featureCallCounts.forEach((e=>{n.push({featureProductName:e.featureMetricIdentifier.productName,featureKey:e.featureMetricIdentifier.featureKey,degradedDownstreamCallCount:e.failedApiCallCount,totalDownstreamCallCount:e.totalApiCallCount,retriedDownstreamCallCount:e.retriedApiCallCount,retriedSuccessfulDownstreamCallsRatio:e.retriedSuccessfulCallsRatio,pointOfPresenceId:e.featureMetricIdentifier.pointOfPresenceId,responseErrorTypeV2:e.featureMetricIdentifier.responseErrorType,successfulDownstreamCallsRatio:e.successfulApiCallsRatio,metricKey:{featureProductName:e.featureMetricIdentifier.productName,featureKey:e.featureMetricIdentifier.featureKey,pointOfPresenceId:e.featureMetricIdentifier.pointOfPresenceId,responseErrorTypeV2:e.featureMetricIdentifier.responseErrorType,responseFabric:e.featureMetricIdentifier.responseFabric}})}))
const r={header:{},requestHeader:{},time:Date.now(),metrics:n}
this._fireEventCallback(a,r,t.pageInstance,e)}))}}function E(e){return JSON.stringify(e,Object.keys(e).sort())}class w extends class{constructor(e){this._featureCallCounts=new Map,this._pageInstance=e}get pageInstance(){return this._pageInstance}get featureCallCounts(){return this._featureCallCounts}}{trackSuccessfulFeatureApiCall(e){this.trackMetric(e,(e=>{e.successfulApiCallsRatio+=1,e.totalApiCallCount++}))}trackFailedFeatureApiCall(e,t){this.trackMetric(e,(e=>{0===t?e.failedApiCallCount++:e.successfulApiCallsRatio+=t,e.totalApiCallCount++}))}trackRetriedFeatureApiCall(e,t){this.trackMetric(e,(e=>{e.retriedApiCallCount++,e.retriedSuccessfulCallsRatio+=t}))}trackRetriedSuccessfulFeatureApiCall(e){this.trackMetric(e,(e=>{e.successfulApiCallsRatio++,e.totalApiCallCount++}))}changeRetriedMetricsToTotal(){this.featureCallCounts.forEach((e=>e.changeCallCountsFromRetriedToTotal()))}trackMetric(e,t){const n=E(e)
if(this.featureCallCounts.has(n))t(this.featureCallCounts.get(n))
else{const r=new _(e)
t(r),this.featureCallCounts.set(n,r)}}}class _ extends class{constructor(e){this.featureMetricIdentifier=e}}{constructor(){super(...arguments),this.successfulApiCallsRatio=0,this.failedApiCallCount=0,this.totalApiCallCount=0,this.retriedApiCallCount=0,this.retriedSuccessfulCallsRatio=0}mergeCallCounts(e){return this.successfulApiCallsRatio+=e.successfulApiCallsRatio,this.failedApiCallCount+=e.failedApiCallCount,this.totalApiCallCount+=e.totalApiCallCount,this.retriedApiCallCount+=e.retriedApiCallCount,this.retriedSuccessfulCallsRatio+=e.retriedSuccessfulCallsRatio,this}changeCallCountsFromRetriedToTotal(){this.totalApiCallCount+=this.retriedApiCallCount,this.successfulApiCallsRatio+=this.retriedSuccessfulCallsRatio,0===this.successfulApiCallsRatio&&(this.failedApiCallCount+=1),this.retriedApiCallCount=0,this.retriedSuccessfulCallsRatio=0}}class C extends class{flushMetrics(){const e=[...this.metrics.values()]
return this.metrics=new Map,e}}{constructor(){super(...arguments),this.metrics=new Map}incrementSuccessfulFeatureApiCall(e,t){this.incrementMetric(t,(t=>t.trackSuccessfulFeatureApiCall(e)))}incrementFailedFeatureApiCall(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0
this.incrementMetric(t,(t=>t.trackFailedFeatureApiCall(e,n)))}incrementRetriedFeatureApiCall(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0
this.incrementMetric(t,(t=>t.trackRetriedFeatureApiCall(e,n)))}incrementRetriedSuccessfulApiCall(e,t){this.incrementMetric(t,(t=>t.trackRetriedSuccessfulFeatureApiCall(e)))}mergeMetricsFrom(e){e.metrics.forEach(((e,t)=>{const n=this.metrics.get(t)
void 0!==n?e.featureCallCounts.forEach(((e,r)=>{var o
let i=n.featureCallCounts.get(r)
void 0!==i?i=i.mergeCallCounts(e):null===(o=this.metrics.get(t))||void 0===o||o.featureCallCounts.set(t,e)})):this.metrics.set(t,e)}))}changeRetriedMetricsToTotal(){this.metrics.forEach((e=>e.changeRetriedMetricsToTotal()))}incrementMetric(e,t){const n=E(e)
if(this.metrics.has(n))t(this.metrics.get(n))
else{const r=new w(e)
t(r),this.metrics.set(n,r)}}}function T(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}var S
!function(e){e.ProductName="productName",e.AdditionalDegradedResponseCodes="additionalDegradedResponseCodes",e.NonDegradedResponseCodes="nonDegradedResponseCodes",e.DegradationKeyOverrides="degradationKeyOverrides",e.ClientSensorGroupName="clientSensorGroupName",e.EnablePerformanceMeasurement="enablePerformanceMeasurement",e.CustomTrackingId="customTrackingId",e.DisableAvailabilityCalculation="disableAvailabilityCalculation",e.EnableSessionRecording="enableSessionRecording"}(S||(S={}))
const R=new Set(Object.values(S))
class O extends Error{constructor(e){super(e),Object.setPrototypeOf(this,O.prototype)}}function A(e){return 0===e.length||!e.trim()}function M(e){if("string"!=typeof e)throw new O("The product name must be a string. ".concat(o,"."))
if(A(e))throw new O("No product name was specified. Please configure a defaultProductName or specify it per instrumented API "+"call. ".concat(o,"."))
if(/[^a-zA-Z0-9-_ \\/]/.test(e))throw new O("Product name '".concat(e,"' can only contain alphanumeric, underscores (_), spaces ( ), dashes (-) and forward slashes (/). ").concat(o,"."))
return e}function I(e){if("string"!=typeof e)throw new O("Keys must be strings. ".concat(o,"."))
if(A(e))throw new O("Keys should not be blank. ".concat(o,"."))
if(/[^a-z0-9-]/.test(e))throw new O("'".concat(e,"' can only contain lowercase alphanumeric characters and dashes (-). ").concat(o,"."))
return e}class k{constructor(e,t,n){var r,i,a
if(this._shouldEnablePerformanceMeasurement=!1,this._shouldDisableAvailabilityCalculation=!1,this._shouldRecordSession=!1,this._featureKey=I(e),this._defaultDegradationKey=I(t),!n)return this._additionalDegradedResponseCodes=[],this._nonDegradedResponseCodes=[],void(this._degradationKeyOverrides=[])
if("object"!=typeof n)throw new O("DegradationTrackingMetadata options should be an object. ".concat(o,"."))
const s=n.productName
s&&(this._productName=M(s))
const c=n.additionalDegradedResponseCodes,u=n.nonDegradedResponseCodes
!function(e,t){const n=(e,t)=>{if(!T(e)||e<=0||e>999)throw new O("Please only specify positive integer response codes between 1 and 999 for the ".concat(t," option. ")+"".concat(e," was specified. ").concat(o,"."))
if(429===e||999===e)throw new O("PEM does not consider 429 and 999 API responses indications of the real member experience because it represents LinkedIn throttling abusive requests. We drop 429s and 999s by default, so please remove them "+"from your ".concat(t," options."))
if(t===S.NonDegradedResponseCodes&&e>=400&&e<500)throw new O("For server responses that have a status code, PEM does not consider 4xx as degraded. ".concat(e," is not ")+"considered a degradation unless you explicitly add it to the ".concat(S.AdditionalDegradedResponseCodes," option")+". Please remove ".concat(e," from the ").concat(S.NonDegradedResponseCodes," option. ")+"".concat(o,"."))}
if(void 0!==e&&!Array.isArray(e))throw new O("Please specify an array of positive integer response codes between 1 and 999 for the response codes that "+"shouldn't be counted as degraded for the ".concat(S.NonDegradedResponseCodes," option. ")+"".concat(o,"."))
if(void 0!==t&&!Array.isArray(t))throw new O("Please specify an array of positive integer response codes between 1 and 999 for the response codes that should only be considered as the degraded state(s) for the "+"".concat(S.AdditionalDegradedResponseCodes," option. ").concat(o,"."))
e&&e.forEach((e=>n(e,S.NonDegradedResponseCodes))),t&&t.forEach((e=>n(e,S.AdditionalDegradedResponseCodes)))}(u,c),this._nonDegradedResponseCodes=u||[],this._additionalDegradedResponseCodes=c||[],this._degradationKeyOverrides=n.degradationKeyOverrides||[],this._clientSensorGroupName=n.clientSensorGroupName,this._shouldEnablePerformanceMeasurement=null!==(r=n.enablePerformanceMeasurement)&&void 0!==r&&r,this._customTrackingId=n.customTrackingId,this._shouldDisableAvailabilityCalculation=null!==(i=n.disableAvailabilityCalculation)&&void 0!==i&&i,this._shouldRecordSession=null!==(a=n.enableSessionRecording)&&void 0!==a&&a,function(e){Object.keys(e).forEach((e=>{if(!R.has(e))throw new O("An unsupported degradation tracking option '".concat(e,"' was provided. Please fix or remove it. ")+"".concat(o))}))}(n)}static isDegradationTrackingMetadata(e){return null!=e&&Object.getOwnPropertyNames(k.prototype).every((t=>Object.hasOwnProperty.call(Object.getPrototypeOf(e),t)))}get featureKey(){return this._featureKey}get defaultDegradationKey(){return this._defaultDegradationKey}get degradationKey(){return this._defaultDegradationKey}get productName(){return this._productName}get additionalDegradedResponseCodes(){return this._additionalDegradedResponseCodes}get nonDegradedResponseCodes(){return this._nonDegradedResponseCodes}get degradationKeyOverrides(){return this._degradationKeyOverrides}get clientSensorGroupName(){return this._clientSensorGroupName}get shouldEnablePerformanceMeasurement(){return this._shouldEnablePerformanceMeasurement}get customTrackingId(){return this._customTrackingId}get shouldDisableAvailabilityCalculation(){return this._shouldDisableAvailabilityCalculation}get shouldRecordSession(){return this._shouldRecordSession}}class D{constructor(e){this._degradationTrackingMetadata=e,this._featureMetricStore=new C,this._lastRequestMetricStore=new C,this._requestsMade=0,this._trackingId=(0,r.v4)()}static isRetryableDegradationTrackingMetadata(e){return null!=e&&Object.getOwnPropertyNames(D.prototype).every((t=>Object.hasOwnProperty.call(Object.getPrototypeOf(e),t)))}get degradationTrackingMetadata(){return this._degradationTrackingMetadata}get featureMetricStore(){return this._featureMetricStore}get currentRequestSequenceId(){return this._requestsMade-1}get flowTrackingId(){return this._trackingId}get shouldDisableAvailabilityCalculation(){return this._degradationTrackingMetadata.shouldDisableAvailabilityCalculation}get featureKey(){return this._degradationTrackingMetadata.featureKey}get defaultDegradationKey(){return this._degradationTrackingMetadata.defaultDegradationKey}get productName(){return this._degradationTrackingMetadata.productName}get nonDegradedResponseCodes(){return new Set(this._degradationTrackingMetadata.nonDegradedResponseCodes)}get additionalDegradedResponseCodes(){return this._degradationTrackingMetadata.additionalDegradedResponseCodes}get degradationKeyOverrides(){return this._degradationTrackingMetadata.degradationKeyOverrides}get customTrackingId(){return this._degradationTrackingMetadata.customTrackingId}get clientSensorGroupName(){return this._degradationTrackingMetadata.clientSensorGroupName}get shouldEnablePerformanceMeasurement(){return this._degradationTrackingMetadata.shouldEnablePerformanceMeasurement}incrementRetriedFeatureApiCall(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0
this._requestsMade++,this._featureMetricStore.mergeMetricsFrom(this._lastRequestMetricStore),this._lastRequestMetricStore.flushMetrics(),this._lastRequestMetricStore.incrementRetriedFeatureApiCall(e,t,n)}incrementRetriedSuccessfulApiCall(e,t){this._requestsMade++,this._featureMetricStore.mergeMetricsFrom(this._lastRequestMetricStore),this._lastRequestMetricStore.flushMetrics(),this._lastRequestMetricStore.incrementRetriedSuccessfulApiCall(e,t)}flushMetricStoreToServiceStore(e){this._lastRequestMetricStore.changeRetriedMetricsToTotal(),this._featureMetricStore.mergeMetricsFrom(this._lastRequestMetricStore),e.mergeMetricsFrom(this._featureMetricStore),this._featureMetricStore.flushMetrics(),this._lastRequestMetricStore.flushMetrics()}}function P(e,t){if(!e.includes("/"))return e
const n=function(e){const t=document.createElement("a")
return t.href=e,t.pathname}(e),r=n.split("/").filter((e=>e.length))
if(!t.length)return r.join("/")
const o=[]
for(let i=r.length-1;i>=0;i--){const e=r[i],n=t.indexOf(e)
n>=0?t.splice(n,1):o.push(e)}return o.reverse().join("/")}function N(e){if(e){if(e.fabric)return"SERVER_ERROR"
if(e.pointOfPresenceId)return"TRAFFIC_L0_TO_L1_ERROR"
if(e.microsoftEdgeReference)return"TRAFFIC_AFD_TO_L0_ERROR"}return"SERVER_ERROR"}function x(e){const t=e.responseError,n=e.parsedHeaders,r=e.responseCode
if(r){if(429===r||999===r)return"TOO_MANY_REQUESTS"
if(n&&!n.hasAnyLinkedInHeaders()&&r&&r>=400&&r<600)return"BLOCKED_BY_CLIENT_PROXY"
if((o=r)>=400&&o<500)return function(e){return 429===e?"TOO_MANY_REQUESTS":"CLIENT_ERROR"}(r)
if(function(e){return e>=500&&e<600}(r))return N(n)
if(function(e,t){return!!(e>=200&&e<300&&t&&t.downstreamAvailability<1)}(r,n))return"DOWNSTREAM_GRACEFUL_DEGRADATION"}var o
if(!t)return null
if(t instanceof Error){if("AbortError"===t.name)return"CLIENT_ABORTED"
if(t instanceof TypeError&&(t.message.indexOf("Network request failed")>=0||t.message.indexOf("NetworkError when attempting to fetch resource")>=0||t.message.indexOf("Failed to fetch")>=0))return"NETWORK_ERROR"}else{if("timeout"===t.statusText)return"CLIENT_TIMEOUT"
if(0===t.status&&"abort"===t.statusText)return"CLIENT_ABORTED"
if("readyState"in t&&0===t.readyState)return"NETWORK_ERROR"}return"UNCLASSIFIED"}function L(e,t,n,r){if(!(null==e?void 0:e.trim())||!t||!Array.isArray(t))return[]
const o=[],i=r.responseCode
return t.forEach((t=>{const a=t.getDegradationKey(i),s=t.shouldImpactAvailability(n)&&t.isCountedAgainstAvailability(n,i),c={endpointPath:e,degradationKey:a,responseErrorTypeV2:n,isCountedAgainstAvailability:s,downstreamServiceErrorCode:r.downstreamServiceErrorCode}
i&&(c.responseCode=i)
const u=r.parsedHeaders
u.callTreeId&&(c.responseCallTreeId=u.callTreeId),(null==u?void 0:u.pointOfPresenceId)&&(c.pointOfPresenceId=u.pointOfPresenceId),(null==u?void 0:u.microsoftEdgeReference)&&(c.microsoftEdgeReference=u.microsoftEdgeReference),(null==u?void 0:u.fabric)&&(c.fabric=u.fabric),D.isRetryableDegradationTrackingMetadata(t.retryableTrackingMetadata)&&(c.retryDetails={trackingId:t.retryableTrackingMetadata.flowTrackingId,sequenceId:t.retryableTrackingMetadata.currentRequestSequenceId}),o.push({header:{},requestHeader:{},productName:t.productName,featureKey:t.featureKey,failedDownstreamRequests:[c],customTrackingId:t.customTrackingId})})),o}function j(e){if(!e)return"-success"
switch(e){case"SERVER_ERROR":case"GRAPHQL_FULL_FAILURE":return"-server-error"
case"CLIENT_ERROR":case"TOO_MANY_REQUESTS":return"-client-error"
default:return"-misc-error"}}function B(e,t){return"DOWNSTREAM_GRACEFUL_DEGRADATION"===e?t.downstreamAvailability:0}var F
!function(e){e.ProductName="productName",e.CustomTrackingId="customTrackingId",e.ClientSensorGroupName="clientSensorGroupName",e.AdditionalDegradedResponseCodes="additionalDegradedResponseCodes",e.NonDegradedResponseCodes="nonDegradedResponseCodes",e.DegradationKeyOverrides="degradationKeyOverrides",e.ShouldDisableDegradationTracking="shouldDisableDegradationTracking",e.EnablePerformanceMeasurement="enablePerformanceMeasurement"}(F||(F={}))
const U=new Set(Object.values(F))
class H{constructor(e,t,n){if(!n)return void(this._degradationTrackingMetadata=new k(e,t,{nonDegradedResponseCodes:[],additionalDegradedResponseCodes:[],degradationKeyOverrides:[]}))
if("object"!=typeof n)throw new O("FailureTrackingMetadata options should be an object. ".concat(o,"."))
const r=n.additionalDegradedResponseCodes,i=n.nonDegradedResponseCodes
this.validateResponseCodes(r,i)
const a={productName:n.productName,additionalDegradedResponseCodes:n.additionalDegradedResponseCodes,nonDegradedResponseCodes:n.nonDegradedResponseCodes,degradationKeyOverrides:n.degradationKeyOverrides,clientSensorGroupName:n.clientSensorGroupName,customTrackingId:n.customTrackingId,enablePerformanceMeasurement:n.enablePerformanceMeasurement}
this._degradationTrackingMetadata=new k(e,t,a),function(e){Object.keys(e).forEach((e=>{if(!U.has(e))throw new O("An unsupported failure tracking option '".concat(e,"' was provided. Please fix or remove it. ")+"".concat(o))}))}(n)}static isFailureTrackingMetadata(e){return null!=e&&Object.getOwnPropertyNames(H.prototype).every((t=>Object.hasOwnProperty.call(Object.getPrototypeOf(e),t)))}get featureKey(){return this._degradationTrackingMetadata.featureKey}get defaultDegradationKey(){return this._degradationTrackingMetadata.defaultDegradationKey}get productName(){return this._degradationTrackingMetadata.productName}get nonDegradedResponseCodes(){return new Set(this._degradationTrackingMetadata.nonDegradedResponseCodes)}get additionalDegradedResponseCodes(){return new Set(this._degradationTrackingMetadata.additionalDegradedResponseCodes)}get degradationKeyOverrides(){return this._degradationTrackingMetadata.degradationKeyOverrides}get customTrackingId(){return this._degradationTrackingMetadata.customTrackingId}get clientSensorGroupName(){return this._degradationTrackingMetadata.clientSensorGroupName}get shouldEnablePerformanceMeasurement(){return this._degradationTrackingMetadata.shouldEnablePerformanceMeasurement}validateResponseCodes(e,t){const n=(e,t)=>{if(!T(e)||e<=0||e>999)throw new O("Please only specify positive integer response codes between 1 and 999 for the ".concat(t," option. ")+"".concat(e," was specified. ").concat(o,"."))
if(429===e||999===e)throw new O("PEM does not consider 429 and 999 API responses indications of the real member experience because it represents LinkedIn throttling abusive requests. We drop 429s and 999s by default, so please remove them "+"from your ".concat(t," options."))
if(t===F.NonDegradedResponseCodes&&(e<500||e>=600))throw new O("For server responses that have a status code, PEM does not consider non-5xx as degradations by default "+"anymore. ".concat(e," is not considered a degradation unless you explicitly add it to the ")+"".concat(F.AdditionalDegradedResponseCodes," option. Please remove ").concat(e," from the ")+"".concat(F.NonDegradedResponseCodes," option. ").concat(o,"."))}
if(void 0!==t&&!Array.isArray(t))throw new O("Please specify an array of positive integer response codes between 1 and 999 for the response codes that "+"shouldn't be counted as degraded for the ".concat(F.NonDegradedResponseCodes," option. ")+"".concat(o,"."))
if(void 0!==e&&!Array.isArray(e))throw new O("Please specify an array of positive integer response codes between 1 and 999 for the response codes that should also be considered as the degraded state(s) for the "+"".concat(F.AdditionalDegradedResponseCodes," option. ").concat(o,"."))
null==t||t.forEach((e=>n(e,F.NonDegradedResponseCodes))),null==e||e.forEach((e=>n(e,F.AdditionalDegradedResponseCodes)))
const r=new Set(e),i=new Set(t)
if([...r].some((e=>i.has(e))))throw new O("Response codes can't be both degraded and non-degraded. Please ensure that your additionalDegradedResponseCodes and nonDegradedResponseCodes "+"don't have any overlapping response codes. ".concat(o,"."))}}class Z{constructor(e,t){if(this._additionalDegradedResponseCodes=new Set,this._degradationKeyByResponseCode=new Map,this._shouldDisableAvailabilityCalculation=!1,this._shouldRecordSession=!1,this._retryableTrackingMetadata=null,!D.isRetryableDegradationTrackingMetadata(e)&&!k.isDegradationTrackingMetadata(e)&&!H.isFailureTrackingMetadata(e))throw new O("We encountered a bug where we forgot to provide the tracking metadata as an argument. Please report it to the #pem team.")
if(!t)throw new O("We encountered a bug where we forgot to provide the product name as an argument. Please report it to the #pem team.")
this._featureKey=e.featureKey,this._productName=t,this._clientSensorGroupName=e.clientSensorGroupName,this._defaultDegradationKey=e.defaultDegradationKey
let n=k.isDegradationTrackingMetadata(e)?e:void 0
D.isRetryableDegradationTrackingMetadata(e)&&(n=e.degradationTrackingMetadata,this._retryableTrackingMetadata=e),void 0!==n?(this._nonDegradedResponseCodes=new Set(n.nonDegradedResponseCodes),this._customTrackingId=n.customTrackingId,this._shouldDisableAvailabilityCalculation=n.shouldDisableAvailabilityCalculation,this._shouldRecordSession=n.shouldRecordSession,n.additionalDegradedResponseCodes.length&&(this.processAdditionalDegradedResponseCodes(e.additionalDegradedResponseCodes),this.initializeDegradationKeyOverrides(e.degradationKeyOverrides))):(this._nonDegradedResponseCodes=new Set(e.nonDegradedResponseCodes),this._customTrackingId=e.customTrackingId,this.processAdditionalDegradedResponseCodes(e.additionalDegradedResponseCodes),this.initializeDegradationKeyOverrides(e.degradationKeyOverrides))}getDegradationKey(e){return this._degradationKeyByResponseCode.has(e)?this._degradationKeyByResponseCode.get(e):this._defaultDegradationKey}get featureKey(){return this._featureKey}get productName(){return this._productName}get customTrackingId(){return this._customTrackingId}get clientSensorGroupName(){return this._clientSensorGroupName}get shouldDisableAvailabilityCalculation(){return this._shouldDisableAvailabilityCalculation}get shouldRecordSession(){return this._shouldRecordSession}get retryableTrackingMetadata(){return this._retryableTrackingMetadata}get retryMetricStore(){var e,t
return void 0!==(null===(e=this._retryableTrackingMetadata)||void 0===e?void 0:e.featureMetricStore)?null===(t=this._retryableTrackingMetadata)||void 0===t?void 0:t.featureMetricStore:null}isCountedAgainstAvailability(e,t){return null!==e&&(null==t||this.canResponseCodeCountAgainstAvailability(t))}canResponseCodeCountAgainstAvailability(e){if(this._degradationKeyByResponseCode.has(e))return!0
if(this._additionalDegradedResponseCodes.has(e))return!0
const t=e>=400&&e<500,n=this._nonDegradedResponseCodes.has(e)
return!t&&!n}shouldImpactAvailability(e,t,n){return!(e&&"CLIENT_ABORTED"===e||"BLOCKED_BY_CLIENT_PROXY"===e||!(null==n?void 0:n.hasAnyLinkedInHeaders())&&t&&t>=400&&t<600||"TOO_MANY_REQUESTS"===e)}processAdditionalDegradedResponseCodes(e){e.forEach((e=>{if(this._nonDegradedResponseCodes.has(e))throw new O("You attempted to specify ".concat(e," as an additional degraded response code for the '").concat(this.featureKey,"' feature, ")+"however it is also specified in the non-degraded response codes for that feature. Please decide whether "+"you want to consider ".concat(e," responses a degraded state or not. ").concat(o,"."))
this._additionalDegradedResponseCodes.add(e)}))}initializeDegradationKeyOverrides(e){e.forEach((e=>{if(!e.responseCodesToOverride||!e.degradationKey||!Array.isArray(e.responseCodesToOverride)||"string"!=typeof e.degradationKey)throw new O("Degradation key overrides must consist of an array of responseCodesToOverride "+"and a string degradationKey. ".concat(o,"."))
new Set(e.responseCodesToOverride).forEach((t=>{if(!this.canResponseCodeCountAgainstAvailability(t))throw new O("A degradation key override was specified for ".concat(t,", but that response code isn't considered degraded. ")+"Please add it to additionalDegradedResponseCodes if you want it to count against your availability.")
this._degradationKeyByResponseCode.set(t,e.degradationKey)}))}))}}class K{constructor(e){const t=new Map
null==e||e.forEach(((e,n)=>{t.set(n.toLowerCase(),e)})),this._callTreeId=t.get(s)||null,this._pointOfPresenceId=t.get(c)||null,this._msEdgeRef=t.get(u)||null,this._fabric=t.get(l)||null,this._responseMetadata=t.get(f)||null,this._downstreamAvailability=function(e){if(null==e)return null
const t=e.split(",")
for(const n of t){const e=n.split("=",2)
if(2===e.length&&e[0]===h){const t=parseFloat(e[1])
if(t>=0&&t<=1)return t}}return null}(this._responseMetadata)||1}get callTreeId(){return this._callTreeId}get pointOfPresenceId(){return this._pointOfPresenceId}get microsoftEdgeReference(){return this._msEdgeRef}get fabric(){return this._fabric}get downstreamAvailability(){return this._downstreamAvailability}hasAnyLinkedInHeaders(){return!!(this._fabric||this._pointOfPresenceId||this._msEdgeRef||this._callTreeId)}}class q{constructor(e,t,n,r){this._responseCode=e||null,this._parsedResponseHeaders=t?new K(t):new K,this._responseError=n||null,this._downstreamServiceErrorCode=r}get responseCode(){return this._responseCode}get parsedHeaders(){return this._parsedResponseHeaders}get responseError(){return this._responseError}set responseError(e){this._responseError=e}get downstreamServiceErrorCode(){return this._downstreamServiceErrorCode}set downstreamServiceErrorCode(e){this._downstreamServiceErrorCode=e}}class V{constructor(e,t,n){this._featureMetricStore=new C,this._defaultProductName=e,this._fireEventCallback=t,this._jetErrorCallback=n,this._metricSender=new b(this._featureMetricStore,t),window.setInterval((()=>this._metricSender.produceMetricEvent()),v),window.addEventListener("visibilitychange",(()=>{"hidden"===document.visibilityState&&this._metricSender.produceMetricEvent(!0)}))}trackFeatureDegradationsForFetch(e,t,n,r,o){let i,a=null
const s=new Map,c=this._createFailureProcessingMetadata(n)
return t=this._getAndValidateUrlEntityIDs(t),r.then((e=>{a=e.status,e.headers.forEach(((e,t)=>s.set(t.toLowerCase(),e))),!1===e.ok&&(i=e)})).catch((e=>{throw i=e,e})).finally((()=>{this._trackResponse(e,a,t,c,o,s,i)}))}trackFeatureDegradationsForJQueryAjax(e,t,n,r,o,i){const a=t.status,s=t.getAllResponseHeaders(),c=new Map
s&&s.trim().split(/[\r\n]+/).forEach((e=>{const t=e.split(": "),n=t.shift()
if(n){const e=t.join(": ")
c.set(n.toLowerCase(),e)}}))
const u=i?null:t,l=this._createFailureProcessingMetadata(r)
n=this._getAndValidateUrlEntityIDs(n),this._trackResponse(e,a,n,l,o,c,u)}startRetryFlow(e){return V.startRetryFlow(e)}static startRetryFlow(e){return new D(e)}completeRetryFlow(e){if(!D.isRetryableDegradationTrackingMetadata(e))throw new O("retryFlowMetadata must be an instance of RetryableDegradationTrackingMetadata")
e.flushMetricStoreToServiceStore(this._featureMetricStore)}_trackResponse(e,t,n,r,o,a,s){const c=new q(t,a,s),u=c.parsedHeaders,l=x(c),d=P(e,n),f=new Set,h=new Set
r.forEach((e=>{f.add(e.productName),h.add(e.featureKey)
const n=null!==e.retryableTrackingMetadata&&null!==e.retryMetricStore
!e.shouldDisableAvailabilityCalculation&&e.shouldImpactAvailability(l)&&(e.isCountedAgainstAvailability(l,t)?(n?e.retryableTrackingMetadata.incrementRetriedFeatureApiCall.bind(e.retryableTrackingMetadata):this._featureMetricStore.incrementFailedFeatureApiCall.bind(this._featureMetricStore))({featureKey:e.featureKey,productName:e.productName,pointOfPresenceId:u.pointOfPresenceId,responseErrorType:l,responseFabric:u.fabric},o,B(l,u)):(n?e.retryableTrackingMetadata.incrementRetriedSuccessfulApiCall.bind(e.retryableTrackingMetadata):this._featureMetricStore.incrementSuccessfulFeatureApiCall.bind(this._featureMetricStore))({featureKey:e.featureKey,productName:e.productName,pointOfPresenceId:u.pointOfPresenceId,responseFabric:u.fabric},o))})),l&&(this._reportErrorIfUnclassified(s,l,t,f,h),L(d,r,l,c).forEach((e=>{this._fireEventCallback(i,e,o)})))}_reportErrorIfUnclassified(e,t,n,r,o){var i
if((0===n||null==n)&&"UNCLASSIFIED"===t){const t=[y,m]
let n
r.forEach((e=>t.push("pem-product-".concat(e)))),o.forEach((e=>t.push("pem-feature-".concat(e)))),n=e instanceof Error?e:new Error("Could not classify jQuery response: ".concat(JSON.stringify(e))),null===(i=this._jetErrorCallback)||void 0===i||i.call(this,n,t,!1)}}_createFailureProcessingMetadata(e){if(!e||!Array.isArray(e)||!e.length)throw new O("Please specify a non-empty array of degradation tracking metadata. ".concat(o,"."))
const t=new Set
return e.map((e=>{if(!k.isDegradationTrackingMetadata(e)&&!D.isRetryableDegradationTrackingMetadata(e))throw new O("Please use DegradationTrackingMetadata or RetryableDegradationTrackingMetadata to specify the degradations. ".concat(o,"."))
const n=M(e.productName||this._defaultProductName),r="".concat(n,"!!").concat(e.featureKey)
if(t.has(r))throw new O("More than one degradation tracking metadata has the same productName/featureKey combination. Please merge them together")
return t.add(r),new Z(e,n)}))}_getAndValidateUrlEntityIDs(e){if(!Array.isArray(e))throw new O("Please specify the queried IDs to remove from the request URL, or use an empty array if there "+"are none. ".concat(o,"."))
return e}}},4735:function(e){e.exports=function(){"use strict"
var e=new RegExp("urn:[^:]+:([a-z]\\w*)(?::(.+))?"),t=/^fs_/
function n(n){if("string"!=typeof n)throw new TypeError("URNs must be of type string, but the parameter passed to extractEntityInfoFromUrn was of type "+typeof n+".")
var r,o,i=e.exec(n)
return i&&(r=i[1].replace(t,""),o=i[2]),{id:o,type:r}}var r=/(?![^(]*\)),/
return{checkForEntityId:function(t){var n=e.exec(t)
return n?n[2]:t},extractEntityInfoFromUrn:n,urnToObject:function e(t){var o=n(t),i=o.id,a=o.type,s={}
if("("===i.charAt(0)){for(var c,u=i.substring(1,i.length-1).split(r),l=0;c=u[l];++l)0===c.indexOf("urn")&&(u[l]=e(c))
i=u}return s[a]=i,s}}}()},6258:(e,t,n)=>{"use strict"
n.d(t,{Z:()=>s})
var r=n(9745),o=n(6314),i=n(3078),a=n(324)
function s(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1)
var s=e.getBoundingClientRect(),c=1,u=1
t&&(0,r.Re)(e)&&(c=e.offsetWidth>0&&(0,o.NM)(s.width)/e.offsetWidth||1,u=e.offsetHeight>0&&(0,o.NM)(s.height)/e.offsetHeight||1)
var l=((0,r.kK)(e)?(0,i.Z)(e):window).visualViewport,d=!(0,a.Z)()&&n,f=(s.left+(d&&l?l.offsetLeft:0))/c,h=(s.top+(d&&l?l.offsetTop:0))/u,p=s.width/c,g=s.height/u
return{width:p,height:g,top:h,right:f+p,bottom:h+g,left:f,x:f,y:h}}},1410:(e,t,n)=>{"use strict"
n.d(t,{Z:()=>o})
var r=n(3078)
function o(e){return(0,r.Z)(e).getComputedStyle(e)}},2478:(e,t,n)=>{"use strict"
n.d(t,{Z:()=>o})
var r=n(9745)
function o(e){return(((0,r.kK)(e)?e.ownerDocument:e.document)||window.document).documentElement}},2642:(e,t,n)=>{"use strict"
n.d(t,{Z:()=>o})
var r=n(6258)
function o(e){var t=(0,r.Z)(e),n=e.offsetWidth,o=e.offsetHeight
return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}},8550:(e,t,n)=>{"use strict"
function r(e){return e?(e.nodeName||"").toLowerCase():null}n.d(t,{Z:()=>r})},7258:(e,t,n)=>{"use strict"
n.d(t,{Z:()=>d})
var r=n(3078),o=n(8550),i=n(1410),a=n(9745)
function s(e){return["table","td","th"].indexOf((0,o.Z)(e))>=0}var c=n(714),u=n(3414)
function l(e){return(0,a.Re)(e)&&"fixed"!==(0,i.Z)(e).position?e.offsetParent:null}function d(e){for(var t=(0,r.Z)(e),n=l(e);n&&s(n)&&"static"===(0,i.Z)(n).position;)n=l(n)
return n&&("html"===(0,o.Z)(n)||"body"===(0,o.Z)(n)&&"static"===(0,i.Z)(n).position)?t:n||function(e){var t=/firefox/i.test((0,u.Z)())
if(/Trident/i.test((0,u.Z)())&&(0,a.Re)(e)&&"fixed"===(0,i.Z)(e).position)return null
var n=(0,c.Z)(e)
for((0,a.Zq)(n)&&(n=n.host);(0,a.Re)(n)&&["html","body"].indexOf((0,o.Z)(n))<0;){var r=(0,i.Z)(n)
if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n
n=n.parentNode}return null}(e)||t}},714:(e,t,n)=>{"use strict"
n.d(t,{Z:()=>a})
var r=n(8550),o=n(2478),i=n(9745)
function a(e){return"html"===(0,r.Z)(e)?e:e.assignedSlot||e.parentNode||((0,i.Zq)(e)?e.host:null)||(0,o.Z)(e)}},3078:(e,t,n)=>{"use strict"
function r(e){if(null==e)return window
if("[object Window]"!==e.toString()){var t=e.ownerDocument
return t&&t.defaultView||window}return e}n.d(t,{Z:()=>r})},1922:(e,t,n)=>{"use strict"
n.d(t,{Z:()=>o})
var r=n(3078)
function o(e){var t=(0,r.Z)(e)
return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}},7766:(e,t,n)=>{"use strict"
n.d(t,{Z:()=>a})
var r=n(6258),o=n(2478),i=n(1922)
function a(e){return(0,r.Z)((0,o.Z)(e)).left+(0,i.Z)(e).scrollLeft}},9745:(e,t,n)=>{"use strict"
n.d(t,{Re:()=>i,Zq:()=>a,kK:()=>o})
var r=n(3078)
function o(e){return e instanceof(0,r.Z)(e).Element||e instanceof Element}function i(e){return e instanceof(0,r.Z)(e).HTMLElement||e instanceof HTMLElement}function a(e){return"undefined"!=typeof ShadowRoot&&(e instanceof(0,r.Z)(e).ShadowRoot||e instanceof ShadowRoot)}},324:(e,t,n)=>{"use strict"
n.d(t,{Z:()=>o})
var r=n(3414)
function o(){return!/^((?!chrome|android).)*safari/i.test((0,r.Z)())}},1079:(e,t,n)=>{"use strict"
n.d(t,{Z:()=>o})
var r=n(1410)
function o(e){var t=(0,r.Z)(e),n=t.overflow,o=t.overflowX,i=t.overflowY
return/auto|scroll|overlay|hidden/.test(n+i+o)}},9177:(e,t,n)=>{"use strict"
n.d(t,{Z:()=>u})
var r=n(714),o=n(1079),i=n(8550),a=n(9745)
function s(e){return["html","body","#document"].indexOf((0,i.Z)(e))>=0?e.ownerDocument.body:(0,a.Re)(e)&&(0,o.Z)(e)?e:s((0,r.Z)(e))}var c=n(3078)
function u(e,t){var n
void 0===t&&(t=[])
var i=s(e),a=i===(null==(n=e.ownerDocument)?void 0:n.body),l=(0,c.Z)(i),d=a?[l].concat(l.visualViewport||[],(0,o.Z)(i)?i:[]):i,f=t.concat(d)
return a?f:f.concat(u((0,r.Z)(d)))}},7946:(e,t,n)=>{"use strict"
n.d(t,{BL:()=>u,Ct:()=>v,F2:()=>i,I:()=>o,Pj:()=>f,YP:()=>p,bw:()=>g,d7:()=>s,k5:()=>h,mv:()=>c,t$:()=>a,ut:()=>l,we:()=>r,xs:()=>m,zV:()=>d})
var r="top",o="bottom",i="right",a="left",s="auto",c=[r,o,i,a],u="start",l="end",d="clippingParents",f="viewport",h="popper",p="reference",g=c.reduce((function(e,t){return e.concat([t+"-"+u,t+"-"+l])}),[]),v=[].concat(c,[s]).reduce((function(e,t){return e.concat([t,t+"-"+u,t+"-"+l])}),[]),m=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"]},2801:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{default:()=>d})
var r={left:"right",right:"left",bottom:"top",top:"bottom"}
function o(e){return e.replace(/left|right|bottom|top/g,(function(e){return r[e]}))}var i=n(1501),a={start:"end",end:"start"}
function s(e){return e.replace(/start|end/g,(function(e){return a[e]}))}var c=n(8219),u=n(2026),l=n(7946)
const d={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name
if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,d=void 0===a||a,f=n.altAxis,h=void 0===f||f,p=n.fallbackPlacements,g=n.padding,v=n.boundary,m=n.rootBoundary,y=n.altBoundary,b=n.flipVariations,E=void 0===b||b,w=n.allowedAutoPlacements,_=t.options.placement,C=(0,i.Z)(_),T=p||(C!==_&&E?function(e){if((0,i.Z)(e)===l.d7)return[]
var t=o(e)
return[s(e),t,s(t)]}(_):[o(_)]),S=[_].concat(T).reduce((function(e,n){return e.concat((0,i.Z)(n)===l.d7?function(e,t){void 0===t&&(t={})
var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,s=n.padding,d=n.flipVariations,f=n.allowedAutoPlacements,h=void 0===f?l.Ct:f,p=(0,u.Z)(r),g=p?d?l.bw:l.bw.filter((function(e){return(0,u.Z)(e)===p})):l.mv,v=g.filter((function(e){return h.indexOf(e)>=0}))
0===v.length&&(v=g)
var m=v.reduce((function(t,n){return t[n]=(0,c.Z)(e,{placement:n,boundary:o,rootBoundary:a,padding:s})[(0,i.Z)(n)],t}),{})
return Object.keys(m).sort((function(e,t){return m[e]-m[t]}))}(t,{placement:n,boundary:v,rootBoundary:m,padding:g,flipVariations:E,allowedAutoPlacements:w}):n)}),[]),R=t.rects.reference,O=t.rects.popper,A=new Map,M=!0,I=S[0],k=0;k<S.length;k++){var D=S[k],P=(0,i.Z)(D),N=(0,u.Z)(D)===l.BL,x=[l.we,l.I].indexOf(P)>=0,L=x?"width":"height",j=(0,c.Z)(t,{placement:D,boundary:v,rootBoundary:m,altBoundary:y,padding:g}),B=x?N?l.F2:l.t$:N?l.I:l.we
R[L]>O[L]&&(B=o(B))
var F=o(B),U=[]
if(d&&U.push(j[P]<=0),h&&U.push(j[B]<=0,j[F]<=0),U.every((function(e){return e}))){I=D,M=!1
break}A.set(D,U)}if(M)for(var H=function(e){var t=S.find((function(t){var n=A.get(t)
if(n)return n.slice(0,e).every((function(e){return e}))}))
if(t)return I=t,"break"},Z=E?3:1;Z>0&&"break"!==H(Z);Z--);t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}}},7390:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{default:()=>a,distanceAndSkiddingToXY:()=>i})
var r=n(1501),o=n(7946)
function i(e,t,n){var i=(0,r.Z)(e),a=[o.t$,o.we].indexOf(i)>=0?-1:1,s="function"==typeof n?n(Object.assign({},t,{placement:e})):n,c=s[0],u=s[1]
return c=c||0,u=(u||0)*a,[o.t$,o.F2].indexOf(i)>=0?{x:u,y:c}:{x:c,y:u}}const a={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,a=n.offset,s=void 0===a?[0,0]:a,c=o.Ct.reduce((function(e,n){return e[n]=i(n,t.rects,s),e}),{}),u=c[t.placement],l=u.x,d=u.y
null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=c}}},6546:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{default:()=>h})
var r=n(7946),o=n(1501),i=n(2138),a=n(6314)
function s(e,t,n){return(0,a.Fp)(e,(0,a.VV)(t,n))}var c=n(2642),u=n(7258),l=n(8219),d=n(2026),f=n(2277)
const h={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,h=e.name,p=n.mainAxis,g=void 0===p||p,v=n.altAxis,m=void 0!==v&&v,y=n.boundary,b=n.rootBoundary,E=n.altBoundary,w=n.padding,_=n.tether,C=void 0===_||_,T=n.tetherOffset,S=void 0===T?0:T,R=(0,l.Z)(t,{boundary:y,rootBoundary:b,padding:w,altBoundary:E}),O=(0,o.Z)(t.placement),A=(0,d.Z)(t.placement),M=!A,I=(0,i.Z)(O),k="x"===I?"y":"x",D=t.modifiersData.popperOffsets,P=t.rects.reference,N=t.rects.popper,x="function"==typeof S?S(Object.assign({},t.rects,{placement:t.placement})):S,L="number"==typeof x?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,B={x:0,y:0}
if(D){if(g){var F,U="y"===I?r.we:r.t$,H="y"===I?r.I:r.F2,Z="y"===I?"height":"width",K=D[I],q=K+R[U],V=K-R[H],G=C?-N[Z]/2:0,W=A===r.BL?P[Z]:N[Z],Q=A===r.BL?-N[Z]:-P[Z],Y=t.elements.arrow,J=C&&Y?(0,c.Z)(Y):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:(0,f.Z)(),$=z[U],X=z[H],ee=s(0,P[Z],J[Z]),te=M?P[Z]/2-G-ee-$-L.mainAxis:W-ee-$-L.mainAxis,ne=M?-P[Z]/2+G+ee+X+L.mainAxis:Q+ee+X+L.mainAxis,re=t.elements.arrow&&(0,u.Z)(t.elements.arrow),oe=re?"y"===I?re.clientTop||0:re.clientLeft||0:0,ie=null!=(F=null==j?void 0:j[I])?F:0,ae=K+te-ie-oe,se=K+ne-ie,ce=s(C?(0,a.VV)(q,ae):q,K,C?(0,a.Fp)(V,se):V)
D[I]=ce,B[I]=ce-K}if(m){var ue,le="x"===I?r.we:r.t$,de="x"===I?r.I:r.F2,fe=D[k],he="y"===k?"height":"width",pe=fe+R[le],ge=fe-R[de],ve=-1!==[r.we,r.t$].indexOf(O),me=null!=(ue=null==j?void 0:j[k])?ue:0,ye=ve?pe:fe-P[he]-N[he]-me+L.altAxis,be=ve?fe+P[he]+N[he]-me-L.altAxis:ge,Ee=C&&ve?function(e,t,n){var r=s(e,t,n)
return r>n?n:r}(ye,fe,be):s(C?ye:pe,fe,C?be:ge)
D[k]=Ee,B[k]=Ee-fe}t.modifiersData[h]=B}},requiresIfExists:["offset"]}},174:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{createPopper:()=>D,defaultModifiers:()=>k,detectOverflow:()=>w.Z,popperGenerator:()=>E})
var r=n(6258),o=n(1922),i=n(3078),a=n(9745),s=n(8550),c=n(7766),u=n(2478),l=n(1079),d=n(6314)
function f(e,t,n){void 0===n&&(n=!1)
var f,h,p=(0,a.Re)(t),g=(0,a.Re)(t)&&function(e){var t=e.getBoundingClientRect(),n=(0,d.NM)(t.width)/e.offsetWidth||1,r=(0,d.NM)(t.height)/e.offsetHeight||1
return 1!==n||1!==r}(t),v=(0,u.Z)(t),m=(0,r.Z)(e,g,n),y={scrollLeft:0,scrollTop:0},b={x:0,y:0}
return(p||!p&&!n)&&(("body"!==(0,s.Z)(t)||(0,l.Z)(v))&&(y=(f=t)!==(0,i.Z)(f)&&(0,a.Re)(f)?{scrollLeft:(h=f).scrollLeft,scrollTop:h.scrollTop}:(0,o.Z)(f)),(0,a.Re)(t)?((b=(0,r.Z)(t,!0)).x+=t.clientLeft,b.y+=t.clientTop):v&&(b.x=(0,c.Z)(v))),{x:m.left+y.scrollLeft-b.x,y:m.top+y.scrollTop-b.y,width:m.width,height:m.height}}var h=n(2642),p=n(9177),g=n(7258),v=n(7946)
function m(e){var t=new Map,n=new Set,r=[]
function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e)
r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var y={placement:"bottom",modifiers:[],strategy:"absolute"}
function b(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]
return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function E(e){void 0===e&&(e={})
var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?y:o
return function(e,t,n){void 0===n&&(n=i)
var o,s,c={placement:"bottom",orderedModifiers:[],options:Object.assign({},y,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},u=[],l=!1,d={state:c,setOptions:function(n){var o="function"==typeof n?n(c.options):n
E(),c.options=Object.assign({},i,c.options,o),c.scrollParents={reference:(0,a.kK)(e)?(0,p.Z)(e):e.contextElement?(0,p.Z)(e.contextElement):[],popper:(0,p.Z)(t)}
var s,l,f=function(e){var t=m(e)
return v.xs.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((s=[].concat(r,c.options.modifiers),l=s.reduce((function(e,t){var n=e[t.name]
return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(l).map((function(e){return l[e]}))))
return c.orderedModifiers=f.filter((function(e){return e.enabled})),c.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect
if("function"==typeof o){var i=o({state:c,name:t,instance:d,options:r})
u.push(i||function(){})}})),d.update()},forceUpdate:function(){if(!l){var e=c.elements,t=e.reference,n=e.popper
if(b(t,n)){c.rects={reference:f(t,(0,g.Z)(n),"fixed"===c.options.strategy),popper:(0,h.Z)(n)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach((function(e){return c.modifiersData[e.name]=Object.assign({},e.data)}))
for(var r=0;r<c.orderedModifiers.length;r++)if(!0!==c.reset){var o=c.orderedModifiers[r],i=o.fn,a=o.options,s=void 0===a?{}:a,u=o.name
"function"==typeof i&&(c=i({state:c,options:s,name:u,instance:d})||c)}else c.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){d.forceUpdate(),e(c)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(o())}))}))),s}),destroy:function(){E(),l=!0}}
if(!b(e,t))return d
function E(){u.forEach((function(e){return e()})),u=[]}return d.setOptions(n).then((function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e)})),d}}var w=n(8219),_={passive:!0}
const C={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,s=r.resize,c=void 0===s||s,u=(0,i.Z)(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper)
return a&&l.forEach((function(e){e.addEventListener("scroll",n.update,_)})),c&&u.addEventListener("resize",n.update,_),function(){a&&l.forEach((function(e){e.removeEventListener("scroll",n.update,_)})),c&&u.removeEventListener("resize",n.update,_)}},data:{}}
var T=n(1274)
const S={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name
t.modifiersData[n]=(0,T.Z)({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}}
var R=n(1410),O=n(1501),A=n(2026),M={top:"auto",right:"auto",bottom:"auto",left:"auto"}
function I(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,c=e.position,l=e.gpuAcceleration,f=e.adaptive,h=e.roundOffsets,p=e.isFixed,m=s.x,y=void 0===m?0:m,b=s.y,E=void 0===b?0:b,w="function"==typeof h?h({x:y,y:E}):{x:y,y:E}
y=w.x,E=w.y
var _=s.hasOwnProperty("x"),C=s.hasOwnProperty("y"),T=v.t$,S=v.we,O=window
if(f){var A=(0,g.Z)(n),I="clientHeight",k="clientWidth"
A===(0,i.Z)(n)&&(A=(0,u.Z)(n),"static"!==(0,R.Z)(A).position&&"absolute"===c&&(I="scrollHeight",k="scrollWidth")),(o===v.we||(o===v.t$||o===v.F2)&&a===v.ut)&&(S=v.I,E-=(p&&A===O&&O.visualViewport?O.visualViewport.height:A[I])-r.height,E*=l?1:-1),o!==v.t$&&(o!==v.we&&o!==v.I||a!==v.ut)||(T=v.F2,y-=(p&&A===O&&O.visualViewport?O.visualViewport.width:A[k])-r.width,y*=l?1:-1)}var D,P=Object.assign({position:c},f&&M),N=!0===h?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1
return{x:(0,d.NM)(t*r)/r||0,y:(0,d.NM)(n*r)/r||0}}({x:y,y:E}):{x:y,y:E}
return y=N.x,E=N.y,l?Object.assign({},P,((D={})[S]=C?"0":"",D[T]=_?"0":"",D.transform=(O.devicePixelRatio||1)<=1?"translate("+y+"px, "+E+"px)":"translate3d("+y+"px, "+E+"px, 0)",D)):Object.assign({},P,((t={})[S]=C?E+"px":"",t[T]=_?y+"px":"",t.transform="",t))}var k=[C,S,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,c=void 0===s||s,u={placement:(0,O.Z)(t.placement),variation:(0,A.Z)(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy}
null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,I(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,I(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state
Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];(0,a.Re)(o)&&(0,s.Z)(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e]
!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}}
return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});(0,a.Re)(r)&&(0,s.Z)(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]}],D=E({defaultModifiers:k})},1274:(e,t,n)=>{"use strict"
n.d(t,{Z:()=>s})
var r=n(1501),o=n(2026),i=n(2138),a=n(7946)
function s(e){var t,n=e.reference,s=e.element,c=e.placement,u=c?(0,r.Z)(c):null,l=c?(0,o.Z)(c):null,d=n.x+n.width/2-s.width/2,f=n.y+n.height/2-s.height/2
switch(u){case a.we:t={x:d,y:n.y-s.height}
break
case a.I:t={x:d,y:n.y+n.height}
break
case a.F2:t={x:n.x+n.width,y:f}
break
case a.t$:t={x:n.x-s.width,y:f}
break
default:t={x:n.x,y:n.y}}var h=u?(0,i.Z)(u):null
if(null!=h){var p="y"===h?"height":"width"
switch(l){case a.BL:t[h]=t[h]-(n[p]/2-s[p]/2)
break
case a.ut:t[h]=t[h]+(n[p]/2-s[p]/2)}}return t}},8219:(e,t,n)=>{"use strict"
n.d(t,{Z:()=>w})
var r=n(7946),o=n(3078),i=n(2478),a=n(7766),s=n(324),c=n(1410),u=n(1922),l=n(6314),d=n(9177),f=n(7258),h=n(9745),p=n(6258),g=n(714),v=n(8550)
function m(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function y(e,t,n){return t===r.Pj?m(function(e,t){var n=(0,o.Z)(e),r=(0,i.Z)(e),c=n.visualViewport,u=r.clientWidth,l=r.clientHeight,d=0,f=0
if(c){u=c.width,l=c.height
var h=(0,s.Z)();(h||!h&&"fixed"===t)&&(d=c.offsetLeft,f=c.offsetTop)}return{width:u,height:l,x:d+(0,a.Z)(e),y:f}}(e,n)):(0,h.kK)(t)?function(e,t){var n=(0,p.Z)(e,!1,"fixed"===t)
return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):m(function(e){var t,n=(0,i.Z)(e),r=(0,u.Z)(e),o=null==(t=e.ownerDocument)?void 0:t.body,s=(0,l.Fp)(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),d=(0,l.Fp)(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),f=-r.scrollLeft+(0,a.Z)(e),h=-r.scrollTop
return"rtl"===(0,c.Z)(o||n).direction&&(f+=(0,l.Fp)(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:d,x:f,y:h}}((0,i.Z)(e)))}var b=n(1274),E=n(2277)
function w(e,t){void 0===t&&(t={})
var n,o=t,a=o.placement,s=void 0===a?e.placement:a,u=o.strategy,w=void 0===u?e.strategy:u,_=o.boundary,C=void 0===_?r.zV:_,T=o.rootBoundary,S=void 0===T?r.Pj:T,R=o.elementContext,O=void 0===R?r.k5:R,A=o.altBoundary,M=void 0!==A&&A,I=o.padding,k=void 0===I?0:I,D=function(e){return Object.assign({},(0,E.Z)(),e)}("number"!=typeof k?k:(n=k,r.mv.reduce((function(e,t){return e[t]=n,e}),{}))),P=O===r.k5?r.YP:r.k5,N=e.rects.popper,x=e.elements[M?P:O],L=function(e,t,n,r){var o="clippingParents"===t?function(e){var t=(0,d.Z)((0,g.Z)(e)),n=["absolute","fixed"].indexOf((0,c.Z)(e).position)>=0&&(0,h.Re)(e)?(0,f.Z)(e):e
return(0,h.kK)(n)?t.filter((function(e){return(0,h.kK)(e)&&function(e,t){var n=t.getRootNode&&t.getRootNode()
if(e.contains(t))return!0
if(n&&(0,h.Zq)(n)){var r=t
do{if(r&&e.isSameNode(r))return!0
r=r.parentNode||r.host}while(r)}return!1}(e,n)&&"body"!==(0,v.Z)(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce((function(t,n){var o=y(e,n,r)
return t.top=(0,l.Fp)(o.top,t.top),t.right=(0,l.VV)(o.right,t.right),t.bottom=(0,l.VV)(o.bottom,t.bottom),t.left=(0,l.Fp)(o.left,t.left),t}),y(e,a,r))
return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}((0,h.kK)(x)?x:x.contextElement||(0,i.Z)(e.elements.popper),C,S,w),j=(0,p.Z)(e.elements.reference),B=(0,b.Z)({reference:j,element:N,strategy:"absolute",placement:s}),F=m(Object.assign({},N,B)),U=O===r.k5?F:j,H={top:L.top-U.top+D.top,bottom:U.bottom-L.bottom+D.bottom,left:L.left-U.left+D.left,right:U.right-L.right+D.right},Z=e.modifiersData.offset
if(O===r.k5&&Z){var K=Z[s]
Object.keys(H).forEach((function(e){var t=[r.F2,r.I].indexOf(e)>=0?1:-1,n=[r.we,r.I].indexOf(e)>=0?"y":"x"
H[e]+=K[n]*t}))}return H}},1501:(e,t,n)=>{"use strict"
function r(e){return e.split("-")[0]}n.d(t,{Z:()=>r})},2277:(e,t,n)=>{"use strict"
function r(){return{top:0,right:0,bottom:0,left:0}}n.d(t,{Z:()=>r})},2138:(e,t,n)=>{"use strict"
function r(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}n.d(t,{Z:()=>r})},2026:(e,t,n)=>{"use strict"
function r(e){return e.split("-")[1]}n.d(t,{Z:()=>r})},6314:(e,t,n)=>{"use strict"
n.d(t,{Fp:()=>r,NM:()=>i,VV:()=>o})
var r=Math.max,o=Math.min,i=Math.round},3414:(e,t,n)=>{"use strict"
function r(){var e=navigator.userAgentData
return null!=e&&e.brands?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}n.d(t,{Z:()=>r})},2240:(e,t,n)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.OPEN_BROADCAST_CHANNELS=t.BroadcastChannel=void 0,t.clearNodeFolder=function(e){e=(0,i.fillOptionsWithDefaults)(e)
var t=(0,o.chooseMethod)(e)
return"node"===t.type?t.clearNodeFolder().then((function(){return!0})):r.PROMISE_RESOLVED_FALSE},t.enforceOptions=function(e){s=e}
var r=n(5927),o=n(8045),i=n(9894),a=new Set
t.OPEN_BROADCAST_CHANNELS=a
var s,c=0,u=function(e,t){var n,u
this.id=c++,a.add(this),this.name=e,s&&(t=s),this.options=(0,i.fillOptionsWithDefaults)(t),this.method=(0,o.chooseMethod)(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,u=(n=this).method.create(n.name,n.options),(0,r.isPromise)(u)?(n._prepP=u,u.then((function(e){n._state=e}))):n._state=u}
function l(e,t,n){var o={time:e.method.microSeconds(),type:t,data:n}
return(e._prepP?e._prepP:r.PROMISE_RESOLVED_VOID).then((function(){var t=e.method.postMessage(e._state,o)
return e._uMP.add(t),t.catch().then((function(){return e._uMP.delete(t)})),t}))}function d(e){return e._addEL.message.length>0||e._addEL.internal.length>0}function f(e,t,n){e._addEL[t].push(n),function(e){if(!e._iL&&d(e)){var t=function(t){e._addEL[t.type].forEach((function(e){var n=e.time-1e5
t.time>=n&&e.fn(t.data)}))},n=e.method.microSeconds()
e._prepP?e._prepP.then((function(){e._iL=!0,e.method.onMessage(e._state,t,n)})):(e._iL=!0,e.method.onMessage(e._state,t,n))}}(e)}function h(e,t,n){e._addEL[t]=e._addEL[t].filter((function(e){return e!==n})),function(e){if(e._iL&&!d(e)){e._iL=!1
var t=e.method.microSeconds()
e.method.onMessage(e._state,null,t)}}(e)}t.BroadcastChannel=u,u._pubkey=!0,u.prototype={postMessage:function(e){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed")
return l(this,"message",e)},postInternal:function(e){return l(this,"internal",e)},set onmessage(e){var t={time:this.method.microSeconds(),fn:e}
h(this,"message",this._onML),e&&"function"==typeof e?(this._onML=t,f(this,"message",t)):this._onML=null},addEventListener:function(e,t){f(this,e,{time:this.method.microSeconds(),fn:t})},removeEventListener:function(e,t){h(this,e,this._addEL[e].find((function(e){return e.fn===t})))},close:function(){var e=this
if(!this.closed){a.delete(this),this.closed=!0
var t=this._prepP?this._prepP:r.PROMISE_RESOLVED_VOID
return this._onML=null,this._addEL.message=[],t.then((function(){return Promise.all(Array.from(e._uMP))})).then((function(){return Promise.all(e._befC.map((function(e){return e()})))})).then((function(){return e.method.close(e._state)}))}},get type(){return this.method.type},get isClosed(){return this.closed}}},528:(e,t,n)=>{"use strict"
var r=n(4403)
e.exports={BroadcastChannel:r.BroadcastChannel,createLeaderElection:r.createLeaderElection,clearNodeFolder:r.clearNodeFolder,enforceOptions:r.enforceOptions,beLeader:r.beLeader}},4403:(e,t,n)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BroadcastChannel",{enumerable:!0,get:function(){return r.BroadcastChannel}}),Object.defineProperty(t,"OPEN_BROADCAST_CHANNELS",{enumerable:!0,get:function(){return r.OPEN_BROADCAST_CHANNELS}}),Object.defineProperty(t,"beLeader",{enumerable:!0,get:function(){return o.beLeader}}),Object.defineProperty(t,"clearNodeFolder",{enumerable:!0,get:function(){return r.clearNodeFolder}}),Object.defineProperty(t,"createLeaderElection",{enumerable:!0,get:function(){return o.createLeaderElection}}),Object.defineProperty(t,"enforceOptions",{enumerable:!0,get:function(){return r.enforceOptions}})
var r=n(2240),o=n(7621)},7621:(e,t,n)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.beLeader=s,t.createLeaderElection=function(e,t){if(e._leaderElector)throw new Error("BroadcastChannel already has a leader-elector")
t=function(e,t){return e||(e={}),(e=JSON.parse(JSON.stringify(e))).fallbackInterval||(e.fallbackInterval=3e3),e.responseTime||(e.responseTime=t.method.averageResponseTime(t.options)),e}(t,e)
var n=new i(e,t)
return e._befC.push((function(){return n.die()})),e._leaderElector=n,n}
var r=n(5927),o=n(1258),i=function(e,t){var n=this
this.broadcastChannel=e,this._options=t,this.isLeader=!1,this.hasLeader=!1,this.isDead=!1,this.token=(0,r.randomToken)(),this._aplQ=r.PROMISE_RESOLVED_VOID,this._aplQC=0,this._unl=[],this._lstns=[],this._dpL=function(){},this._dpLC=!1
var o=function(e){"leader"===e.context&&("death"===e.action&&(n.hasLeader=!1),"tell"===e.action&&(n.hasLeader=!0))}
this.broadcastChannel.addEventListener("internal",o),this._lstns.push(o)}
function a(e,t){var n={context:"leader",action:t,token:e.token}
return e.broadcastChannel.postInternal(n)}function s(e){e.isLeader=!0,e.hasLeader=!0
var t=(0,o.add)((function(){return e.die()}))
e._unl.push(t)
var n=function(t){"leader"===t.context&&"apply"===t.action&&a(e,"tell"),"leader"!==t.context||"tell"!==t.action||e._dpLC||(e._dpLC=!0,e._dpL(),a(e,"tell"))}
return e.broadcastChannel.addEventListener("internal",n),e._lstns.push(n),a(e,"tell")}i.prototype={applyOnce:function(e){var t=this
return this.isLeader?(0,r.sleep)(0,!0):this.isDead?(0,r.sleep)(0,!1):this._aplQC>1?this._aplQ:(this._aplQC=this._aplQC+1,this._aplQ=this._aplQ.then((function(){return function(){if(t.isLeader)return r.PROMISE_RESOLVED_TRUE
var n,o=!1,i=new Promise((function(e){n=function(){o=!0,e()}})),c=[],u=function(e){"leader"===e.context&&e.token!=t.token&&(c.push(e),"apply"===e.action&&e.token>t.token&&n(),"tell"===e.action&&(n(),t.hasLeader=!0))}
t.broadcastChannel.addEventListener("internal",u)
var l=e?4*t._options.responseTime:t._options.responseTime
return a(t,"apply").then((function(){return Promise.race([(0,r.sleep)(l),i.then((function(){return Promise.reject(new Error)}))])})).then((function(){return a(t,"apply")})).then((function(){return Promise.race([(0,r.sleep)(l),i.then((function(){return Promise.reject(new Error)}))])})).catch((function(){})).then((function(){return t.broadcastChannel.removeEventListener("internal",u),!o&&s(t).then((function(){return!0}))}))}()})).then((function(){t._aplQC=t._aplQC-1})),this._aplQ.then((function(){return t.isLeader})))},awaitLeadership:function(){return this._aLP||(this._aLP=(e=this).isLeader?r.PROMISE_RESOLVED_VOID:new Promise((function(t){var n=!1
function o(){n||(n=!0,e.broadcastChannel.removeEventListener("internal",i),t(!0))}e.applyOnce().then((function(){e.isLeader&&o()})),function t(){return(0,r.sleep)(e._options.fallbackInterval).then((function(){if(!e.isDead&&!n)return e.isLeader?void o():e.applyOnce(!0).then((function(){e.isLeader?o():t()}))}))}()
var i=function(t){"leader"===t.context&&"death"===t.action&&(e.hasLeader=!1,e.applyOnce().then((function(){e.isLeader&&o()})))}
e.broadcastChannel.addEventListener("internal",i),e._lstns.push(i)}))),this._aLP
var e},set onduplicate(e){this._dpL=e},die:function(){var e=this
return this._lstns.forEach((function(t){return e.broadcastChannel.removeEventListener("internal",t)})),this._lstns=[],this._unl.forEach((function(e){return e.remove()})),this._unl=[],this.isLeader&&(this.hasLeader=!1,this.isLeader=!1),this.isDead=!0,a(this,"death")}}},8045:(e,t,n)=>{"use strict"
var r=n(9489)
n(5559),Object.defineProperty(t,"__esModule",{value:!0}),t.chooseMethod=function(e){var t=[].concat(e.methods,u).filter(Boolean)
if(e.type){if("simulate"===e.type)return s.default
var n=t.find((function(t){return t.type===e.type}))
if(n)return n
throw new Error("method-type "+e.type+" not found")}e.webWorkerSupport||c.isNode||(t=t.filter((function(e){return"idb"!==e.type})))
var r=t.find((function(e){return e.canBeUsed()}))
if(r)return r
throw new Error("No useable method found in "+JSON.stringify(u.map((function(e){return e.type}))))}
var o=r(n(3769)),i=r(n(8302)),a=r(n(5875)),s=r(n(2582)),c=n(5927),u=[o.default,i.default,a.default]},8302:(e,t,n)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.averageResponseTime=_,t.canBeUsed=w,t.cleanOldMessages=p,t.close=y,t.create=g,t.createDatabase=u,t.default=void 0,t.getAllMessages=function(e){var t=e.transaction(s).objectStore(s),n=[]
return new Promise((function(e){t.openCursor().onsuccess=function(t){var r=t.target.result
r?(n.push(r.value),r.continue()):e(n)}}))},t.getIdb=c,t.getMessagesHigherThan=d,t.getOldMessages=h,t.microSeconds=void 0,t.onMessage=E,t.postMessage=b,t.removeMessageById=f,t.type=void 0,t.writeMessage=l
var r=n(5927),o=n(3916),i=n(9894),a=r.microSeconds
t.microSeconds=a
var s="messages"
function c(){if("undefined"!=typeof indexedDB)return indexedDB
if("undefined"!=typeof window){if(void 0!==window.mozIndexedDB)return window.mozIndexedDB
if(void 0!==window.webkitIndexedDB)return window.webkitIndexedDB
if(void 0!==window.msIndexedDB)return window.msIndexedDB}return!1}function u(e){var t="pubkey.broadcast-channel-0-"+e,n=c().open(t,1)
return n.onupgradeneeded=function(e){e.target.result.createObjectStore(s,{keyPath:"id",autoIncrement:!0})},new Promise((function(e,t){n.onerror=function(e){return t(e)},n.onsuccess=function(){e(n.result)}}))}function l(e,t,n){var r={uuid:t,time:(new Date).getTime(),data:n},o=e.transaction([s],"readwrite")
return new Promise((function(e,t){o.oncomplete=function(){return e()},o.onerror=function(e){return t(e)},o.objectStore(s).add(r)}))}function d(e,t){var n=e.transaction(s).objectStore(s),r=[]
return new Promise((function(e){(function(){try{var e=IDBKeyRange.bound(t+1,1/0)
return n.openCursor(e)}catch(e){return n.openCursor()}}()).onsuccess=function(n){var o=n.target.result
o?o.value.id<t+1?o.continue(t+1):(r.push(o.value),o.continue()):e(r)}}))}function f(e,t){var n=e.transaction([s],"readwrite").objectStore(s).delete(t)
return new Promise((function(e){n.onsuccess=function(){return e()}}))}function h(e,t){var n=(new Date).getTime()-t,r=e.transaction(s).objectStore(s),o=[]
return new Promise((function(e){r.openCursor().onsuccess=function(t){var r=t.target.result
if(r){var i=r.value
if(!(i.time<n))return void e(o)
o.push(i),r.continue()}else e(o)}}))}function p(e,t){return h(e,t).then((function(t){return Promise.all(t.map((function(t){return f(e,t.id)})))}))}function g(e,t){return t=(0,i.fillOptionsWithDefaults)(t),u(e).then((function(n){var i={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:(0,r.randomToken)(),eMIs:new o.ObliviousSet(2*t.idb.ttl),writeBlockPromise:r.PROMISE_RESOLVED_VOID,messagesCallback:null,readQueuePromises:[],db:n}
return n.onclose=function(){i.closed=!0,t.idb.onclose&&t.idb.onclose()},v(i),i}))}function v(e){e.closed||m(e).then((function(){return(0,r.sleep)(e.options.idb.fallbackInterval)})).then((function(){return v(e)}))}function m(e){return e.closed?r.PROMISE_RESOLVED_VOID:e.messagesCallback?d(e.db,e.lastCursorId).then((function(t){var n=t.filter((function(e){return!!e})).map((function(t){return t.id>e.lastCursorId&&(e.lastCursorId=t.id),t})).filter((function(t){return function(e,t){return!(e.uuid===t.uuid||t.eMIs.has(e.id)||e.data.time<t.messagesCallbackTime)}(t,e)})).sort((function(e,t){return e.time-t.time}))
return n.forEach((function(t){e.messagesCallback&&(e.eMIs.add(t.id),e.messagesCallback(t.data))})),r.PROMISE_RESOLVED_VOID})):r.PROMISE_RESOLVED_VOID}function y(e){e.closed=!0,e.db.close()}function b(e,t){return e.writeBlockPromise=e.writeBlockPromise.then((function(){return l(e.db,e.uuid,t)})).then((function(){0===(0,r.randomInt)(0,10)&&p(e.db,e.options.idb.ttl)})),e.writeBlockPromise}function E(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t,m(e)}function w(){return!r.isNode&&!!c()}function _(e){return 2*e.idb.fallbackInterval}t.type="idb"
var C={create:g,close:y,onMessage:E,postMessage:b,canBeUsed:w,type:"idb",averageResponseTime:_,microSeconds:a}
t.default=C},5875:(e,t,n)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.addStorageEventListener=d,t.averageResponseTime=m,t.canBeUsed=v,t.close=p,t.create=h,t.default=void 0,t.getLocalStorage=c,t.microSeconds=void 0,t.onMessage=g,t.postMessage=l,t.removeStorageEventListener=f,t.storageKey=u,t.type=void 0
var r=n(3916),o=n(9894),i=n(5927),a=i.microSeconds
t.microSeconds=a
var s="localstorage"
function c(){var e
if("undefined"==typeof window)return null
try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch(e){}return e}function u(e){return"pubkey.broadcastChannel-"+e}function l(e,t){return new Promise((function(n){(0,i.sleep)().then((function(){var r=u(e.channelName),o={token:(0,i.randomToken)(),time:(new Date).getTime(),data:t,uuid:e.uuid},a=JSON.stringify(o)
c().setItem(r,a)
var s=document.createEvent("Event")
s.initEvent("storage",!0,!0),s.key=r,s.newValue=a,window.dispatchEvent(s),n()}))}))}function d(e,t){var n=u(e),r=function(e){e.key===n&&t(JSON.parse(e.newValue))}
return window.addEventListener("storage",r),r}function f(e){window.removeEventListener("storage",e)}function h(e,t){if(t=(0,o.fillOptionsWithDefaults)(t),!v())throw new Error("BroadcastChannel: localstorage cannot be used")
var n=(0,i.randomToken)(),a=new r.ObliviousSet(t.localstorage.removeTimeout),s={channelName:e,uuid:n,eMIs:a}
return s.listener=d(e,(function(e){s.messagesCallback&&e.uuid!==n&&e.token&&!a.has(e.token)&&(e.data.time&&e.data.time<s.messagesCallbackTime||(a.add(e.token),s.messagesCallback(e.data)))})),s}function p(e){f(e.listener)}function g(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t}function v(){if(i.isNode)return!1
var e=c()
if(!e)return!1
try{var t="__broadcastchannel_check"
e.setItem(t,"works"),e.removeItem(t)}catch(e){return!1}return!0}function m(){var e=navigator.userAgent.toLowerCase()
return e.includes("safari")&&!e.includes("chrome")?240:120}t.type=s
var y={create:h,close:p,onMessage:g,postMessage:l,canBeUsed:v,type:s,averageResponseTime:m,microSeconds:a}
t.default=y},3769:(e,t,n)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.averageResponseTime=d,t.canBeUsed=l,t.close=s,t.create=a,t.microSeconds=t.default=void 0,t.onMessage=u,t.postMessage=c,t.type=void 0
var r=n(5927),o=r.microSeconds
t.microSeconds=o
var i="native"
function a(e){var t={messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]}
return t.bc.onmessage=function(e){t.messagesCallback&&t.messagesCallback(e.data)},t}function s(e){e.bc.close(),e.subFns=[]}function c(e,t){try{return e.bc.postMessage(t,!1),r.PROMISE_RESOLVED_VOID}catch(e){return Promise.reject(e)}}function u(e,t){e.messagesCallback=t}function l(){if(r.isNode&&"undefined"==typeof window)return!1
if("function"==typeof BroadcastChannel){if(BroadcastChannel._pubkey)throw new Error("BroadcastChannel: Do not overwrite window.BroadcastChannel with this module, this is not a polyfill")
return!0}return!1}function d(){return 150}t.type=i
var f={create:a,close:s,onMessage:u,postMessage:c,canBeUsed:l,type:i,averageResponseTime:d,microSeconds:o}
t.default=f},2582:(e,t,n)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.averageResponseTime=d,t.canBeUsed=l,t.close=s,t.create=a,t.microSeconds=t.default=void 0,t.onMessage=u,t.postMessage=c,t.type=void 0
var r=n(5927).microSeconds
t.microSeconds=r
var o="simulate"
t.type=o
var i=new Set
function a(e){var t={name:e,messagesCallback:null}
return i.add(t),t}function s(e){i.delete(e)}function c(e,t){return new Promise((function(n){return setTimeout((function(){Array.from(i).filter((function(t){return t.name===e.name})).filter((function(t){return t!==e})).filter((function(e){return!!e.messagesCallback})).forEach((function(e){return e.messagesCallback(t)})),n()}),5)}))}function u(e,t){e.messagesCallback=t}function l(){return!0}function d(){return 5}var f={create:a,close:s,onMessage:u,postMessage:c,canBeUsed:l,type:o,averageResponseTime:d,microSeconds:r}
t.default=f},9894:(e,t)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.fillOptionsWithDefaults=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=JSON.parse(JSON.stringify(e))
return void 0===t.webWorkerSupport&&(t.webWorkerSupport=!0),t.idb||(t.idb={}),t.idb.ttl||(t.idb.ttl=45e3),t.idb.fallbackInterval||(t.idb.fallbackInterval=150),e.idb&&"function"==typeof e.idb.onclose&&(t.idb.onclose=e.idb.onclose),t.localstorage||(t.localstorage={}),t.localstorage.removeTimeout||(t.localstorage.removeTimeout=6e4),e.methods&&(t.methods=e.methods),t.node||(t.node={}),t.node.ttl||(t.node.ttl=12e4),t.node.maxParallelWrites||(t.node.maxParallelWrites=2048),void 0===t.node.useFastPath&&(t.node.useFastPath=!0),t}},5927:(e,t)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.isNode=t.PROMISE_RESOLVED_VOID=t.PROMISE_RESOLVED_TRUE=t.PROMISE_RESOLVED_FALSE=void 0,t.isPromise=function(e){return!(!e||"function"!=typeof e.then)},t.microSeconds=function(){var e=(new Date).getTime()
return e===i?1e3*e+ ++a:(i=e,a=0,1e3*e)},t.randomInt=function(e,t){return Math.floor(Math.random()*(t-e+1)+e)},t.randomToken=function(){return Math.random().toString(36).substring(2)},t.sleep=function(e,t){return e||(e=0),new Promise((function(n){return setTimeout((function(){return n(t)}),e)}))}
var n=Promise.resolve(!1)
t.PROMISE_RESOLVED_FALSE=n
var r=Promise.resolve(!0)
t.PROMISE_RESOLVED_TRUE=r
var o=Promise.resolve()
t.PROMISE_RESOLVED_VOID=o
var i=0,a=0,s="[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)
t.isNode=s},4036:e=>{"use strict"
var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e)
return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103
function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e
var n}function o(e,t,n){return e.concat(t).map((function(e){return r(e,n)}))}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function a(e,t){try{return t in e}catch(e){return!1}}function s(e,n,c){(c=c||{}).arrayMerge=c.arrayMerge||o,c.isMergeableObject=c.isMergeableObject||t,c.cloneUnlessOtherwiseSpecified=r
var u=Array.isArray(n)
return u===Array.isArray(e)?u?c.arrayMerge(e,n,c):function(e,t,n){var o={}
return n.isMergeableObject(e)&&i(e).forEach((function(t){o[t]=r(e[t],n)})),i(t).forEach((function(i){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(a(e,i)&&n.isMergeableObject(t[i])?o[i]=function(e,t){if(!t.customMerge)return s
var n=t.customMerge(e)
return"function"==typeof n?n:s}(i,n)(e[i],t[i],n):o[i]=r(t[i],n))})),o}(e,n,c):r(n,c)}s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array")
return e.reduce((function(e,n){return s(e,n,t)}),{})}
var c=s
e.exports=c},1300:e=>{e.exports=!1},8405:e=>{"use strict"
var t={single_source_shortest_paths:function(e,n,r){var o={},i={}
i[n]=0
var a,s,c,u,l,d,f,h=t.PriorityQueue.make()
for(h.push(n,0);!h.empty();)for(c in s=(a=h.pop()).value,u=a.cost,l=e[s]||{})l.hasOwnProperty(c)&&(d=u+l[c],f=i[c],(void 0===i[c]||f>d)&&(i[c]=d,h.push(c,d),o[c]=s))
if(void 0!==r&&void 0===i[r]){var p=["Could not find a path from ",n," to ",r,"."].join("")
throw new Error(p)}return o},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r]
return n.reverse(),n},find_path:function(e,n,r){var o=t.single_source_shortest_paths(e,n,r)
return t.extract_shortest_path_from_predecessor_list(o,r)},PriorityQueue:{make:function(e){var n,r=t.PriorityQueue,o={}
for(n in e=e||{},r)r.hasOwnProperty(n)&&(o[n]=r[n])
return o.queue=[],o.sorter=e.sorter||r.default_sorter,o},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t}
this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}}
e.exports=t},4220:e=>{"use strict"
e.exports=function(e){for(var t=[],n=e.length,r=0;r<n;r++){var o=e.charCodeAt(r)
if(o>=55296&&o<=56319&&n>r+1){var i=e.charCodeAt(r+1)
i>=56320&&i<=57343&&(o=1024*(o-55296)+i-56320+65536,r+=1)}o<128?t.push(o):o<2048?(t.push(o>>6|192),t.push(63&o|128)):o<55296||o>=57344&&o<65536?(t.push(o>>12|224),t.push(o>>6&63|128),t.push(63&o|128)):o>=65536&&o<=1114111?(t.push(o>>18|240),t.push(o>>12&63|128),t.push(o>>6&63|128),t.push(63&o|128)):t.push(239,191,189)}return new Uint8Array(t).buffer}},4249:e=>{"use strict"
var t=/[|\\{}()[\]^$+*?.]/g
e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string")
return e.replace(t,"\\$&")}},6990:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{default:()=>l})
var r,o=function(){function e(){this.registry=new WeakMap}return e.prototype.elementExists=function(e){return this.registry.has(e)},e.prototype.getElement=function(e){return this.registry.get(e)},e.prototype.addElement=function(e,t){e&&this.registry.set(e,t||{})},e.prototype.removeElement=function(e){this.registry.delete(e)},e.prototype.destroyRegistry=function(){this.registry=new WeakMap},e}(),i=function(){}
!function(e){e.enter="enter",e.exit="exit"}(r||(r={}))
var a,s=function(){function e(){this.registry=new o}return e.prototype.addCallback=function(e,t,n){var o,i,a
e===r.enter?((o={})[r.enter]=n,a=o):((i={})[r.exit]=n,a=i),this.registry.addElement(t,Object.assign({},this.registry.getElement(t),a))},e.prototype.dispatchCallback=function(e,t,n){if(e===r.enter){var o=this.registry.getElement(t).enter;(void 0===o?i:o)(n)}else{var a=this.registry.getElement(t)
a&&a.exit&&a.exit(n)}},e}(),c=(a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},a(e,t)},function(e,t){function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(){return u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])
return e},u.apply(this,arguments)}
const l=function(e){function t(){var t=e.call(this)||this
return t.elementRegistry=new o,t}return c(t,e),t.prototype.observe=function(e,t){void 0===t&&(t={}),e&&(this.elementRegistry.addElement(e,u({},t)),this.setupObserver(e,u({},t)))},t.prototype.unobserve=function(e,t){var n=this.findMatchingRootEntry(t)
n&&n.intersectionObserver.unobserve(e)},t.prototype.addEnterCallback=function(e,t){this.addCallback(r.enter,e,t)},t.prototype.addExitCallback=function(e,t){this.addCallback(r.exit,e,t)},t.prototype.dispatchEnterCallback=function(e,t){this.dispatchCallback(r.enter,e,t)},t.prototype.dispatchExitCallback=function(e,t){this.dispatchCallback(r.exit,e,t)},t.prototype.destroy=function(){this.elementRegistry.destroyRegistry()},t.prototype.setupOnIntersection=function(e){var t=this
return function(n){return t.onIntersection(e,n)}},t.prototype.setupObserver=function(e,t){var n,r,o=t.root,i=void 0===o?window:o,a=this.findRootFromRegistry(i)
if(a&&(r=this.determineMatchingElements(t,a)),r){var s=r.elements,c=r.intersectionObserver
s.push(e),c&&c.observe(e)}else{var u={elements:[e],intersectionObserver:c=this.newObserver(e,t),options:t},l=this.stringifyOptions(t)
a?a[l]=u:this.elementRegistry.addElement(i,((n={})[l]=u,n))}},t.prototype.newObserver=function(e,t){var n=t.root,r=t.rootMargin,o=t.threshold,i=new IntersectionObserver(this.setupOnIntersection(t).bind(this),{root:n,rootMargin:r,threshold:o})
return i.observe(e),i},t.prototype.onIntersection=function(e,t){var n=this
t.forEach((function(t){var r=t.isIntersecting,o=t.intersectionRatio,i=e.threshold||0
Array.isArray(i)&&(i=i[i.length-1])
var a=n.findMatchingRootEntry(e)
r||o>i?a&&a.elements.some((function(e){return!(!e||e!==t.target||(n.dispatchEnterCallback(e,t),0))})):a&&a.elements.some((function(e){return!(!e||e!==t.target||(n.dispatchExitCallback(e,t),0))}))}))},t.prototype.findRootFromRegistry=function(e){if(this.elementRegistry)return this.elementRegistry.getElement(e)},t.prototype.findMatchingRootEntry=function(e){var t=e.root,n=void 0===t?window:t,r=this.findRootFromRegistry(n)
if(r)return r[this.stringifyOptions(e)]},t.prototype.determineMatchingElements=function(e,t){var n=this,r=Object.keys(t).filter((function(r){var o=t[r].options
return n.areOptionsSame(e,o)}))[0]
return t[r]},t.prototype.areOptionsSame=function(e,t){if(e===t)return!0
var n=Object.prototype.toString.call(e),r=Object.prototype.toString.call(t)
if(n!==r)return!1
if("[object Object]"!==n&&"[object Object]"!==r)return e===t
if(e&&t&&"object"==typeof e&&"object"==typeof t)for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&!1===this.areOptionsSame(e[o],t[o]))return!1
return!0},t.prototype.stringifyOptions=function(e){var t=e.root
return JSON.stringify(e,(function(e,n){if("root"===e&&t){var r=Array.prototype.slice.call(t.classList).reduce((function(e,t){return e+t}),"")
return t.id+"-"+r}return n}))},t}(s)},3916:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{ObliviousSet:()=>r,now:()=>i,removeTooOldValues:()=>o})
var r=function(){function e(e){this.ttl=e,this.set=new Set,this.timeMap=new Map}return e.prototype.has=function(e){return this.set.has(e)},e.prototype.add=function(e){var t=this
this.timeMap.set(e,i()),this.set.add(e),setTimeout((function(){o(t)}),0)},e.prototype.clear=function(){this.set.clear(),this.timeMap.clear()},e}()
function o(e){for(var t=i()-e.ttl,n=e.set[Symbol.iterator]();;){var r=n.next().value
if(!r)return
if(!(e.timeMap.get(r)<t))return
e.timeMap.delete(r),e.set.delete(r)}}function i(){return(new Date).getTime()}},1970:(e,t,n)=>{const r=n(840),o=n(3667),i=n(3437),a=n(4205)
function s(e,t,n,i,a){const s=[].slice.call(arguments,1),c=s.length,u="function"==typeof s[c-1]
if(!u&&!r())throw new Error("Callback required as last argument")
if(!u){if(c<1)throw new Error("Too few arguments provided")
return 1===c?(n=t,t=i=void 0):2!==c||t.getContext||(i=n,n=t,t=void 0),new Promise((function(r,a){try{const a=o.create(n,i)
r(e(a,t,i))}catch(e){a(e)}}))}if(c<2)throw new Error("Too few arguments provided")
2===c?(a=n,n=t,t=i=void 0):3===c&&(t.getContext&&void 0===a?(a=i,i=void 0):(a=i,i=n,n=t,t=void 0))
try{const r=o.create(n,i)
a(null,e(r,t,i))}catch(e){a(e)}}t.create=o.create,t.toCanvas=s.bind(null,i.render),t.toDataURL=s.bind(null,i.renderToDataURL),t.toString=s.bind(null,(function(e,t,n){return a.render(e,n)}))},840:e=>{e.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},1829:(e,t,n)=>{const r=n(6445).getSymbolSize
t.getRowColCoords=function(e){if(1===e)return[]
const t=Math.floor(e/7)+2,n=r(e),o=145===n?26:2*Math.ceil((n-13)/(2*t-2)),i=[n-7]
for(let r=1;r<t-1;r++)i[r]=i[r-1]-o
return i.push(6),i.reverse()},t.getPositions=function(e){const n=[],r=t.getRowColCoords(e),o=r.length
for(let t=0;t<o;t++)for(let e=0;e<o;e++)0===t&&0===e||0===t&&e===o-1||t===o-1&&0===e||n.push([r[t],r[e]])
return n}},121:(e,t,n)=>{const r=n(2851),o=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"]
function i(e){this.mode=r.ALPHANUMERIC,this.data=e}i.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t
for(t=0;t+2<=this.data.length;t+=2){let n=45*o.indexOf(this.data[t])
n+=o.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(o.indexOf(this.data[t]),6)},e.exports=i},2163:e=>{function t(){this.buffer=[],this.length=0}t.prototype={get:function(e){const t=Math.floor(e/8)
return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(let n=0;n<t;n++)this.putBit(1==(e>>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8)
this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},3303:e=>{function t(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0")
this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}t.prototype.set=function(e,t,n,r){const o=e*this.size+t
this.data[o]=n,r&&(this.reservedBit[o]=!0)},t.prototype.get=function(e,t){return this.data[e*this.size+t]},t.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},t.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=t},4506:(e,t,n)=>{const r=n(4220),o=n(2851)
function i(e){this.mode=o.BYTE,this.data=new Uint8Array(r(e))}i.getBitsLength=function(e){return 8*e},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},e.exports=i},2842:(e,t,n)=>{const r=n(7356),o=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],i=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430]
t.getBlocksCount=function(e,t){switch(t){case r.L:return o[4*(e-1)+0]
case r.M:return o[4*(e-1)+1]
case r.Q:return o[4*(e-1)+2]
case r.H:return o[4*(e-1)+3]
default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case r.L:return i[4*(e-1)+0]
case r.M:return i[4*(e-1)+1]
case r.Q:return i[4*(e-1)+2]
case r.H:return i[4*(e-1)+3]
default:return}}},7356:(e,t)=>{t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,n){if(t.isValid(e))return e
try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string")
switch(e.toLowerCase()){case"l":case"low":return t.L
case"m":case"medium":return t.M
case"q":case"quartile":return t.Q
case"h":case"high":return t.H
default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(e){return n}}},4280:(e,t,n)=>{const r=n(6445).getSymbolSize
t.getPositions=function(e){const t=r(e)
return[[0,0],[t-7,0],[0,t-7]]}},3468:(e,t,n)=>{const r=n(6445),o=r.getBCHDigit(1335)
t.getEncodedBits=function(e,t){const n=e.bit<<3|t
let i=n<<10
for(;r.getBCHDigit(i)-o>=0;)i^=1335<<r.getBCHDigit(i)-o
return 21522^(n<<10|i)}},1254:(e,t)=>{const n=new Uint8Array(512),r=new Uint8Array(256)
!function(){let e=1
for(let t=0;t<255;t++)n[t]=e,r[e]=t,e<<=1,256&e&&(e^=285)
for(let t=255;t<512;t++)n[t]=n[t-255]}(),t.log=function(e){if(e<1)throw new Error("log("+e+")")
return r[e]},t.exp=function(e){return n[e]},t.mul=function(e,t){return 0===e||0===t?0:n[r[e]+r[t]]}},3466:(e,t,n)=>{const r=n(2851),o=n(6445)
function i(e){this.mode=r.KANJI,this.data=e}i.getBitsLength=function(e){return 13*e},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t
for(t=0;t<this.data.length;t++){let n=o.toSJIS(this.data[t])
if(n>=33088&&n<=40956)n-=33088
else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8")
n-=49472}n=192*(n>>>8&255)+(255&n),e.put(n,13)}},e.exports=i},1819:(e,t)=>{function n(e,n,r){switch(e){case t.Patterns.PATTERN000:return(n+r)%2==0
case t.Patterns.PATTERN001:return n%2==0
case t.Patterns.PATTERN010:return r%3==0
case t.Patterns.PATTERN011:return(n+r)%3==0
case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2==0
case t.Patterns.PATTERN101:return n*r%2+n*r%3==0
case t.Patterns.PATTERN110:return(n*r%2+n*r%3)%2==0
case t.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2==0
default:throw new Error("bad maskPattern:"+e)}}t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){const t=e.size
let n=0,r=0,o=0,i=null,a=null
for(let s=0;s<t;s++){r=o=0,i=a=null
for(let c=0;c<t;c++){let t=e.get(s,c)
t===i?r++:(r>=5&&(n+=r-5+3),i=t,r=1),t=e.get(c,s),t===a?o++:(o>=5&&(n+=o-5+3),a=t,o=1)}r>=5&&(n+=r-5+3),o>=5&&(n+=o-5+3)}return n},t.getPenaltyN2=function(e){const t=e.size
let n=0
for(let r=0;r<t-1;r++)for(let o=0;o<t-1;o++){const t=e.get(r,o)+e.get(r,o+1)+e.get(r+1,o)+e.get(r+1,o+1)
4!==t&&0!==t||n++}return 3*n},t.getPenaltyN3=function(e){const t=e.size
let n=0,r=0,o=0
for(let i=0;i<t;i++){r=o=0
for(let a=0;a<t;a++)r=r<<1&2047|e.get(i,a),a>=10&&(1488===r||93===r)&&n++,o=o<<1&2047|e.get(a,i),a>=10&&(1488===o||93===o)&&n++}return 40*n},t.getPenaltyN4=function(e){let t=0
const n=e.data.length
for(let r=0;r<n;r++)t+=e.data[r]
return 10*Math.abs(Math.ceil(100*t/n/5)-10)},t.applyMask=function(e,t){const r=t.size
for(let o=0;o<r;o++)for(let i=0;i<r;i++)t.isReserved(i,o)||t.xor(i,o,n(e,i,o))},t.getBestMask=function(e,n){const r=Object.keys(t.Patterns).length
let o=0,i=1/0
for(let a=0;a<r;a++){n(a),t.applyMask(a,e)
const r=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e)
t.applyMask(a,e),r<i&&(i=r,o=a)}return o}},2851:(e,t,n)=>{const r=n(2906),o=n(8836)
t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e)
if(!r.isValid(t))throw new Error("Invalid version: "+t)
return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return o.testNumeric(e)?t.NUMERIC:o.testAlphanumeric(e)?t.ALPHANUMERIC:o.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id
throw new Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,n){if(t.isValid(e))return e
try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string")
switch(e.toLowerCase()){case"numeric":return t.NUMERIC
case"alphanumeric":return t.ALPHANUMERIC
case"kanji":return t.KANJI
case"byte":return t.BYTE
default:throw new Error("Unknown mode: "+e)}}(e)}catch(e){return n}}},4807:(e,t,n)=>{const r=n(2851)
function o(e){this.mode=r.NUMERIC,this.data=e.toString()}o.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t,n,r
for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10)
const o=this.data.length-t
o>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,3*o+1))},e.exports=o},5876:(e,t,n)=>{const r=n(1254)
t.mul=function(e,t){const n=new Uint8Array(e.length+t.length-1)
for(let o=0;o<e.length;o++)for(let i=0;i<t.length;i++)n[o+i]^=r.mul(e[o],t[i])
return n},t.mod=function(e,t){let n=new Uint8Array(e)
for(;n.length-t.length>=0;){const e=n[0]
for(let i=0;i<t.length;i++)n[i]^=r.mul(t[i],e)
let o=0
for(;o<n.length&&0===n[o];)o++
n=n.slice(o)}return n},t.generateECPolynomial=function(e){let n=new Uint8Array([1])
for(let o=0;o<e;o++)n=t.mul(n,new Uint8Array([1,r.exp(o)]))
return n}},3667:(e,t,n)=>{const r=n(6445),o=n(7356),i=n(2163),a=n(3303),s=n(1829),c=n(4280),u=n(1819),l=n(2842),d=n(4179),f=n(5928),h=n(3468),p=n(2851),g=n(3250)
function v(e,t,n){const r=e.size,o=h.getEncodedBits(t,n)
let i,a
for(i=0;i<15;i++)a=1==(o>>i&1),i<6?e.set(i,8,a,!0):i<8?e.set(i+1,8,a,!0):e.set(r-15+i,8,a,!0),i<8?e.set(8,r-i-1,a,!0):i<9?e.set(8,15-i-1+1,a,!0):e.set(8,15-i-1,a,!0)
e.set(r-8,8,1,!0)}function m(e,t,n,o){let h
if(Array.isArray(e))h=g.fromArray(e)
else{if("string"!=typeof e)throw new Error("Invalid data")
{let r=t
if(!r){const t=g.rawSplit(e)
r=f.getBestVersionForData(t,n)}h=g.fromString(e,r||40)}}const m=f.getBestVersionForData(h,n)
if(!m)throw new Error("The amount of data is too big to be stored in a QR Code")
if(t){if(t<m)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+m+".\n")}else t=m
const y=function(e,t,n){const o=new i
n.forEach((function(t){o.put(t.mode.bit,4),o.put(t.getLength(),p.getCharCountIndicator(t.mode,e)),t.write(o)}))
const a=8*(r.getSymbolTotalCodewords(e)-l.getTotalCodewordsCount(e,t))
for(o.getLengthInBits()+4<=a&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(0)
const s=(a-o.getLengthInBits())/8
for(let r=0;r<s;r++)o.put(r%2?17:236,8)
return function(e,t,n){const o=r.getSymbolTotalCodewords(t),i=o-l.getTotalCodewordsCount(t,n),a=l.getBlocksCount(t,n),s=a-o%a,c=Math.floor(o/a),u=Math.floor(i/a),f=u+1,h=c-u,p=new d(h)
let g=0
const v=new Array(a),m=new Array(a)
let y=0
const b=new Uint8Array(e.buffer)
for(let r=0;r<a;r++){const e=r<s?u:f
v[r]=b.slice(g,g+e),m[r]=p.encode(v[r]),g+=e,y=Math.max(y,e)}const E=new Uint8Array(o)
let w,_,C=0
for(w=0;w<y;w++)for(_=0;_<a;_++)w<v[_].length&&(E[C++]=v[_][w])
for(w=0;w<h;w++)for(_=0;_<a;_++)E[C++]=m[_][w]
return E}(o,e,t)}(t,n,h),b=r.getSymbolSize(t),E=new a(b)
return function(e,t){const n=e.size,r=c.getPositions(t)
for(let o=0;o<r.length;o++){const t=r[o][0],i=r[o][1]
for(let r=-1;r<=7;r++)if(!(t+r<=-1||n<=t+r))for(let o=-1;o<=7;o++)i+o<=-1||n<=i+o||(r>=0&&r<=6&&(0===o||6===o)||o>=0&&o<=6&&(0===r||6===r)||r>=2&&r<=4&&o>=2&&o<=4?e.set(t+r,i+o,!0,!0):e.set(t+r,i+o,!1,!0))}}(E,t),function(e){const t=e.size
for(let n=8;n<t-8;n++){const t=n%2==0
e.set(n,6,t,!0),e.set(6,n,t,!0)}}(E),function(e,t){const n=s.getPositions(t)
for(let r=0;r<n.length;r++){const t=n[r][0],o=n[r][1]
for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)-2===n||2===n||-2===r||2===r||0===n&&0===r?e.set(t+n,o+r,!0,!0):e.set(t+n,o+r,!1,!0)}}(E,t),v(E,n,0),t>=7&&function(e,t){const n=e.size,r=f.getEncodedBits(t)
let o,i,a
for(let s=0;s<18;s++)o=Math.floor(s/3),i=s%3+n-8-3,a=1==(r>>s&1),e.set(o,i,a,!0),e.set(i,o,a,!0)}(E,t),function(e,t){const n=e.size
let r=-1,o=n-1,i=7,a=0
for(let s=n-1;s>0;s-=2)for(6===s&&s--;;){for(let n=0;n<2;n++)if(!e.isReserved(o,s-n)){let r=!1
a<t.length&&(r=1==(t[a]>>>i&1)),e.set(o,s-n,r),i--,-1===i&&(a++,i=7)}if(o+=r,o<0||n<=o){o-=r,r=-r
break}}}(E,y),isNaN(o)&&(o=u.getBestMask(E,v.bind(null,E,n))),u.applyMask(o,E),v(E,n,o),{modules:E,version:t,errorCorrectionLevel:n,maskPattern:o,segments:h}}t.create=function(e,t){if(void 0===e||""===e)throw new Error("No input text")
let n,i,a=o.M
return void 0!==t&&(a=o.from(t.errorCorrectionLevel,o.M),n=f.from(t.version),i=u.from(t.maskPattern),t.toSJISFunc&&r.setToSJISFunction(t.toSJISFunc)),m(e,n,a,i)}},4179:(e,t,n)=>{const r=n(5876)
function o(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}o.prototype.initialize=function(e){this.degree=e,this.genPoly=r.generateECPolynomial(this.degree)},o.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized")
const t=new Uint8Array(e.length+this.degree)
t.set(e)
const n=r.mod(t,this.genPoly),o=this.degree-n.length
if(o>0){const e=new Uint8Array(this.degree)
return e.set(n,o),e}return n},e.exports=o},8836:(e,t)=>{let n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+"
n=n.replace(/u/g,"\\u")
const r="(?:(?![A-Z0-9 $%*+\\-./:]|"+n+")(?:.|[\r\n]))+"
t.KANJI=new RegExp(n,"g"),t.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=new RegExp(r,"g"),t.NUMERIC=new RegExp("[0-9]+","g"),t.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g")
const o=new RegExp("^"+n+"$"),i=new RegExp("^[0-9]+$"),a=new RegExp("^[A-Z0-9 $%*+\\-./:]+$")
t.testKanji=function(e){return o.test(e)},t.testNumeric=function(e){return i.test(e)},t.testAlphanumeric=function(e){return a.test(e)}},3250:(e,t,n)=>{const r=n(2851),o=n(4807),i=n(121),a=n(4506),s=n(3466),c=n(8836),u=n(6445),l=n(8405)
function d(e){return unescape(encodeURIComponent(e)).length}function f(e,t,n){const r=[]
let o
for(;null!==(o=e.exec(n));)r.push({data:o[0],index:o.index,mode:t,length:o[0].length})
return r}function h(e){const t=f(c.NUMERIC,r.NUMERIC,e),n=f(c.ALPHANUMERIC,r.ALPHANUMERIC,e)
let o,i
return u.isKanjiModeEnabled()?(o=f(c.BYTE,r.BYTE,e),i=f(c.KANJI,r.KANJI,e)):(o=f(c.BYTE_KANJI,r.BYTE,e),i=[]),t.concat(n,o,i).sort((function(e,t){return e.index-t.index})).map((function(e){return{data:e.data,mode:e.mode,length:e.length}}))}function p(e,t){switch(t){case r.NUMERIC:return o.getBitsLength(e)
case r.ALPHANUMERIC:return i.getBitsLength(e)
case r.KANJI:return s.getBitsLength(e)
case r.BYTE:return a.getBitsLength(e)}}function g(e,t){let n
const c=r.getBestModeForData(e)
if(n=r.from(t,c),n!==r.BYTE&&n.bit<c.bit)throw new Error('"'+e+'" cannot be encoded with mode '+r.toString(n)+".\n Suggested mode is: "+r.toString(c))
switch(n!==r.KANJI||u.isKanjiModeEnabled()||(n=r.BYTE),n){case r.NUMERIC:return new o(e)
case r.ALPHANUMERIC:return new i(e)
case r.KANJI:return new s(e)
case r.BYTE:return new a(e)}}t.fromArray=function(e){return e.reduce((function(e,t){return"string"==typeof t?e.push(g(t,null)):t.data&&e.push(g(t.data,t.mode)),e}),[])},t.fromString=function(e,n){const o=function(e){const t=[]
for(let n=0;n<e.length;n++){const o=e[n]
switch(o.mode){case r.NUMERIC:t.push([o,{data:o.data,mode:r.ALPHANUMERIC,length:o.length},{data:o.data,mode:r.BYTE,length:o.length}])
break
case r.ALPHANUMERIC:t.push([o,{data:o.data,mode:r.BYTE,length:o.length}])
break
case r.KANJI:t.push([o,{data:o.data,mode:r.BYTE,length:d(o.data)}])
break
case r.BYTE:t.push([{data:o.data,mode:r.BYTE,length:d(o.data)}])}}return t}(h(e,u.isKanjiModeEnabled())),i=function(e,t){const n={},o={start:{}}
let i=["start"]
for(let a=0;a<e.length;a++){const s=e[a],c=[]
for(let e=0;e<s.length;e++){const u=s[e],l=""+a+e
c.push(l),n[l]={node:u,lastCount:0},o[l]={}
for(let e=0;e<i.length;e++){const a=i[e]
n[a]&&n[a].node.mode===u.mode?(o[a][l]=p(n[a].lastCount+u.length,u.mode)-p(n[a].lastCount,u.mode),n[a].lastCount+=u.length):(n[a]&&(n[a].lastCount=u.length),o[a][l]=p(u.length,u.mode)+4+r.getCharCountIndicator(u.mode,t))}}i=c}for(let r=0;r<i.length;r++)o[i[r]].end=0
return{map:o,table:n}}(o,n),a=l.find_path(i.map,"start","end"),s=[]
for(let t=1;t<a.length-1;t++)s.push(i.table[a[t]].node)
return t.fromArray(s.reduce((function(e,t){const n=e.length-1>=0?e[e.length-1]:null
return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)}),[]))},t.rawSplit=function(e){return t.fromArray(h(e,u.isKanjiModeEnabled()))}},6445:(e,t)=>{let n
const r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706]
t.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined')
if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40')
return 4*e+17},t.getSymbolTotalCodewords=function(e){return r[e]},t.getBCHDigit=function(e){let t=0
for(;0!==e;)t++,e>>>=1
return t},t.setToSJISFunction=function(e){if("function"!=typeof e)throw new Error('"toSJISFunc" is not a valid function.')
n=e},t.isKanjiModeEnabled=function(){return void 0!==n},t.toSJIS=function(e){return n(e)}},2906:(e,t)=>{t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},5928:(e,t,n)=>{const r=n(6445),o=n(2842),i=n(7356),a=n(2851),s=n(2906),c=r.getBCHDigit(7973)
function u(e,t){return a.getCharCountIndicator(e,t)+4}function l(e,t){let n=0
return e.forEach((function(e){const r=u(e.mode,t)
n+=r+e.getBitsLength()})),n}t.from=function(e,t){return s.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,n){if(!s.isValid(e))throw new Error("Invalid QR Code version")
void 0===n&&(n=a.BYTE)
const i=8*(r.getSymbolTotalCodewords(e)-o.getTotalCodewordsCount(e,t))
if(n===a.MIXED)return i
const c=i-u(n,e)
switch(n){case a.NUMERIC:return Math.floor(c/10*3)
case a.ALPHANUMERIC:return Math.floor(c/11*2)
case a.KANJI:return Math.floor(c/13)
case a.BYTE:default:return Math.floor(c/8)}},t.getBestVersionForData=function(e,n){let r
const o=i.from(n,i.M)
if(Array.isArray(e)){if(e.length>1)return function(e,n){for(let r=1;r<=40;r++)if(l(e,r)<=t.getCapacity(r,n,a.MIXED))return r}(e,o)
if(0===e.length)return 1
r=e[0]}else r=e
return function(e,n,r){for(let o=1;o<=40;o++)if(n<=t.getCapacity(o,r,e))return o}(r.mode,r.getLength(),o)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw new Error("Invalid QR Code version")
let t=e<<12
for(;r.getBCHDigit(t)-c>=0;)t^=7973<<r.getBCHDigit(t)-c
return e<<12|t}},3437:(e,t,n)=>{const r=n(5409)
t.render=function(e,t,n){let o=n,i=t
void 0!==o||t&&t.getContext||(o=t,t=void 0),t||(i=function(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}()),o=r.getOptions(o)
const a=r.getImageWidth(e.modules.size,o),s=i.getContext("2d"),c=s.createImageData(a,a)
return r.qrToImageData(c.data,e,o),function(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=n,t.width=n,t.style.height=n+"px",t.style.width=n+"px"}(s,i,a),s.putImageData(c,0,0),i},t.renderToDataURL=function(e,n,r){let o=r
void 0!==o||n&&n.getContext||(o=n,n=void 0),o||(o={})
const i=t.render(e,n,o),a=o.type||"image/png",s=o.rendererOpts||{}
return i.toDataURL(a,s.quality)}},4205:(e,t,n)=>{const r=n(5409)
function o(e,t){const n=e.a/255,r=t+'="'+e.hex+'"'
return n<1?r+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function i(e,t,n){let r=e+t
return void 0!==n&&(r+=" "+n),r}t.render=function(e,t,n){const a=r.getOptions(t),s=e.modules.size,c=e.modules.data,u=s+2*a.margin,l=a.color.light.a?"<path "+o(a.color.light,"fill")+' d="M0 0h'+u+"v"+u+'H0z"/>':"",d="<path "+o(a.color.dark,"stroke")+' d="'+function(e,t,n){let r="",o=0,a=!1,s=0
for(let c=0;c<e.length;c++){const u=Math.floor(c%t),l=Math.floor(c/t)
u||a||(a=!0),e[c]?(s++,c>0&&u>0&&e[c-1]||(r+=a?i("M",u+n,.5+l+n):i("m",o,0),o=0,a=!1),u+1<t&&e[c+1]||(r+=i("h",s),s=0)):o++}return r}(c,s,a.margin)+'"/>',f='viewBox="0 0 '+u+" "+u+'"',h='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+f+' shape-rendering="crispEdges">'+l+d+"</svg>\n"
return"function"==typeof n&&n(null,h),h}},5409:(e,t)=>{function n(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string")
let t=e.slice().replace("#","").split("")
if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e)
3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map((function(e){return[e,e]})))),6===t.length&&t.push("F","F")
const n=parseInt(t.join(""),16)
return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={})
const t=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,o=e.scale||4
return{width:r,scale:r?4:o,margin:t,color:{dark:n(e.color.dark||"#000000ff"),light:n(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,n){const r=t.getScale(e,n)
return Math.floor((e+2*n.margin)*r)},t.qrToImageData=function(e,n,r){const o=n.modules.size,i=n.modules.data,a=t.getScale(o,r),s=Math.floor((o+2*r.margin)*a),c=r.margin*a,u=[r.color.light,r.color.dark]
for(let t=0;t<s;t++)for(let n=0;n<s;n++){let l=4*(t*s+n),d=r.color.light
t>=c&&n>=c&&t<s-c&&n<s-c&&(d=u[i[Math.floor((t-c)/a)*o+Math.floor((n-c)/a)]?1:0]),e[l++]=d.r,e[l++]=d.g,e[l++]=d.b,e[l]=d.a}}},9802:(e,t,n)=>{"use strict"
function r(e){var t=e.intersectionRect
return t.width>=0&&t.height>=0}function o(e){try{return e.getBoundingClientRect()}catch(e){if("object"==typeof e&&null!==e&&16389==(65535&e.number))return{top:0,bottom:0,left:0,width:0,height:0,right:0,x:0,y:0}
throw e}}function i(e,t){return Math.round(e-t)}n.r(t),n.d(t,{IntersectionObserver:()=>Y,SpanielObserver:()=>G,Watcher:()=>Q,__w__:()=>y,elementSatisfiesRatio:()=>z,getGlobalEngine:()=>_,invalidate:()=>v,off:()=>B,on:()=>j,queryElement:()=>J,scheduleRead:()=>H,scheduleWork:()=>U,setGlobalEngine:()=>w})
var a,s=(a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},a(e,t)},function(e,t){function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(){function e(){this.items=[]}return e.prototype.remove=function(e){for(var t=this.items.length,n=0;n<t;n++)this.removePredicate(e,this.items[n])&&(this.items.splice(n,1),n--,t--)},e.prototype.clear=function(){this.items=[]},e.prototype.push=function(e){this.items.push(e)},e.prototype.isEmpty=function(){return 0===this.items.length},e}()
const u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.removePredicate=function(e,t){return"string"==typeof e?t.id===e:t.callback===e},t}(c)
var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.removePredicate=function(e,t){return t===e},t}(c),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.removePredicate=function(e,t){return"string"==typeof e?t.id===e:"function"==typeof e?t.callback===e:t.el===e},t}(c),f=function(){return 0},h=!("undefined"==typeof window||!window||"undefined"==typeof document||!document),p=h&&!!window.requestAnimationFrame,g={hasDOM:h,hasRAF:p,getScrollTop:f,getScrollLeft:f,getHeight:f,getWidth:f,rAF:p?window.requestAnimationFrame.bind(window):function(e){e()},meta:{width:0,height:0,scrollTop:0,scrollLeft:0,x:0,y:0,top:0,left:0},version:0,lastVersion:0,updateMeta:f,get isDirty(){return g.version!==g.lastVersion},document:window.document,IntersectionObserver:h&&window.IntersectionObserver,performance:h&&window.performance}
function v(){++g.version}function m(){var e=null!=document.scrollingElement
g.getScrollTop=e?function(){return document.scrollingElement.scrollTop}:function(){return window.scrollY},g.getScrollLeft=e?function(){return document.scrollingElement.scrollLeft}:function(){return window.scrollX}}h&&(g.getHeight=function(){return window.innerHeight},g.getWidth=function(){return window.innerWidth},g.updateMeta=function(){g.meta.height=g.getHeight(),g.meta.width=g.getWidth(),g.meta.scrollLeft=g.getScrollLeft(),g.meta.scrollTop=g.getScrollTop(),g.lastVersion=g.version},g.updateMeta(),"loading"!==document.readyState?m():document.addEventListener("DOMContentLoaded",m),window.addEventListener("resize",v,!1),window.addEventListener("scroll",v,!1))
const y=g
var b=function(){function e(){this.reads=[],this.work=[],this.running=!1}return e.prototype.scheduleRead=function(e){this.reads.unshift(e),this.run()},e.prototype.scheduleWork=function(e){this.work.unshift(e),this.run()},e.prototype.run=function(){var e=this
this.running||(this.running=!0,y.rAF((function(){e.running=!1
for(var t=0,n=e.reads.length;t<n;t++)e.reads.pop()()
t=0
for(var r=e.work.length;t<r;t++)e.work.pop()();(e.work.length>0||e.reads.length>0)&&e.run()})))},e}(),E=null
function w(e){return!E&&(E=e,!0)}function _(){return E||(E=new b)}var C=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)}
return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),T="xxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0
return("x"===e?t:3&t|8).toString(16)})),S=0,R=function(){function e(e,t,n,r,o,i,a,s,c,u){this.dateNow=e,this.highResTime=t,this.scrollTop=n,this.scrollLeft=r,this.width=o,this.height=i,this.x=a,this.y=s,this.top=c,this.left=u}return e.generate=function(t){void 0===t&&(t=window)
var n=this.revalidateRootMeta(t)
return new e(Date.now(),performance.now(),n.scrollTop,n.scrollLeft,n.width,n.height,n.x,n.y,n.top,n.left)},e.revalidateRootMeta=function(e){void 0===e&&(e=document)
var t,n={width:0,height:0,scrollTop:0,scrollLeft:0,x:0,y:0,top:0,left:0}
return y.isDirty&&y.updateMeta(),e===window||e===document?(n.height=y.meta.height,n.width=y.meta.width,n.scrollLeft=y.meta.scrollLeft,n.scrollTop=y.meta.scrollTop,n):(t=o(e),n.scrollTop=e.scrollTop,n.scrollLeft=e.scrollLeft,n.width=t.width,n.height=t.height,n.x=t.x,n.y=t.y,n.top=t.top,n.left=t.left,n)},e}()
function O(){return S+++T}var A=function(){function e(e,t){this.isTicking=!1,this.toRemove=[],this.engine=e||_(),this.root=t||window}return e.prototype.tick=function(){if(this.queue.isEmpty())this.isTicking=!1
else{if(this.toRemove.length>0){for(var e=0;e<this.toRemove.length;e++)this.queue.remove(this.toRemove[e])
this.toRemove=[]}this.applyQueue(R.generate(this.root)),this.engine.scheduleRead(this.tick.bind(this))}},e.prototype.scheduleWork=function(e){this.engine.scheduleWork(e)},e.prototype.scheduleRead=function(e){this.engine.scheduleRead(e)},e.prototype.queryElement=function(e,t){var n,r,i=this
this.engine.scheduleRead((function(){n=o(e),r=R.generate(i.root)})),this.engine.scheduleWork((function(){t(n,r)}))},e.prototype.unwatch=function(e){this.toRemove.push(e)},e.prototype.unwatchAll=function(){this.queue.clear()},e.prototype.startTicking=function(){this.isTicking||(this.isTicking=!0,this.engine.scheduleRead(this.tick.bind(this)))},e}(),M=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
return t.queue=new u,t}return C(t,e),t.prototype.applyQueue=function(e){for(var t=0;t<this.queue.items.length;t++){var n=this.queue.items[t],r=n.id;(0,n.callback)(e,r)}},t.prototype.watch=function(e){this.startTicking()
var t=O()
return this.queue.push({callback:e,id:t}),t},t}(A),I=function(e){function t(t){var n=e.call(this,void 0,window)||this
return n.predicate=t,n}return C(t,e),t.prototype.applyQueue=function(t){this.predicate(t)&&e.prototype.applyQueue.call(this,t)},t}(M),k=function(e){function t(t,n,r){void 0===r&&(r=!1)
var o=e.call(this,t,n)||this
return o.lastVersion=y.version,o.queue=new d,o.ALLOW_CACHED_SCHEDULER=r,o}return C(t,e),Object.defineProperty(t.prototype,"isDirty",{get:function(){return y.version!==this.lastVersion},enumerable:!1,configurable:!0}),t.prototype.applyQueue=function(e){for(var t=0;t<this.queue.items.length;t++){var n=this.queue.items[t],r=n.callback,i=n.el,a=n.id,s=n.clientRect
!this.isDirty&&s&&this.ALLOW_CACHED_SCHEDULER||(s=this.queue.items[t].clientRect=o(i)),r(e,a,s)}this.lastVersion=y.version},t.prototype.watch=function(e,t,n){return this.startTicking(),n=n||O(),this.queue.push({el:e,callback:t,id:n,clientRect:null}),n},t}(A),D=null
function P(){return D||(D=new M)}var N=function(){function e(){this.queue=new l}return e.prototype.listen=function(e){this.queue.push(e)},e.prototype.unlisten=function(e){this.queue.remove(e)},e.prototype.trigger=function(e){for(var t=0;t<this.queue.items.length;t++)this.queue.items[t](e)},e}(),x=function(){function e(e){this.scheduler=new I(e.bind(this))}return e.prototype.trigger=function(){},e.prototype.listen=function(e){this.state=R.generate(),this.scheduler.watch(e)},e.prototype.unlisten=function(e){this.scheduler.unwatch(e)},e}(),L=null
function j(e,t){var n=(L||(L={scroll:new x((function(e){var t=this.state,n=t.scrollTop,r=t.scrollLeft
return this.state=e,n!==e.scrollTop||r!==e.scrollLeft})),resize:new x((function(e){var t=this.state,n=t.width,r=t.height
return this.state=e,r!==e.height||n!==e.width})),destroy:new N,beforeunload:new N,hide:new N,show:new N}))[e]
n&&n.listen(t)}function B(e,t){if(L){var n=L[e]
n&&n.unlisten(t)}}function F(e,t){if(L){var n=L[e]
n&&n.trigger(t)}}function U(e){P().scheduleWork(e)}function H(e){P().scheduleRead(e)}function Z(e){var t=e.left,n=e.right,r=e.top,o=e.bottom
return{left:t,x:t,top:r,y:r,bottom:o,right:n,width:n-t,height:o-r}}y.hasDOM&&(window.addEventListener("beforeunload",(function(){F("beforeunload"),F("destroy")})),document.addEventListener("visibilitychange",(function(){"visible"===document.visibilityState?F("show"):F("hide")})))
var K=function(){function e(e,t){void 0===t&&(t={}),this.records={},this.callback=e,t.threshold=t.threshold||0,this.rootMarginObj=function(e){var t=e.split(" ").map((function(e){return parseInt(e,10)}))
switch(t.length){case 2:return{top:t[0],left:t[1],bottom:t[0],right:t[1]}
case 3:return{top:t[0],left:t[1],bottom:t[2],right:t[1]}
case 4:return{top:t[0],left:t[1],bottom:t[2],right:t[3]}
default:return{top:0,left:0,bottom:0,right:0}}}(t.rootMargin||"0px"),this.root=t.root||null,Array.isArray(t.threshold)?this.thresholds=t.threshold:this.thresholds=[t.threshold],this.scheduler=new k(void 0,this.root,t.ALLOW_CACHED_SCHEDULER)}return e.prototype.observe=function(e){var t=this,n=e,r=n.__spanielId=n.__spanielId||O()
return this.scheduler.watch(e,(function(e,r,o){t.onTick(e,r,o,n)}),n.__spanielId),r},e.prototype.onTick=function(e,t,n,r){var o=this,i=this.generateEntryEvent(e,n,r),a=i.numSatisfiedThresholds,s=i.entry,c=this.records[t]||(this.records[t]={entry:s,numSatisfiedThresholds:0})
a===c.numSatisfiedThresholds&&s.isIntersecting===c.entry.isIntersecting||(c.numSatisfiedThresholds=a,c.entry=s,this.scheduler.scheduleWork((function(){o.callback([s])})))},e.prototype.unobserve=function(e){this.scheduler.unwatch(e.__spanielId),delete this.records[e.__spanielId]},e.prototype.disconnect=function(){this.scheduler.unwatchAll(),this.records={}},e.prototype.takeRecords=function(){return[]},e.prototype.generateEntryEvent=function(e,t,n){for(var r=0,o=q(e,t,n,this.rootMarginObj),i=0;i<this.thresholds.length;i++){var a=this.thresholds[i]
o.intersectionRatio>=a&&r++}return{numSatisfiedThresholds:r,entry:o}},e}()
function q(e,t,n,o){if("none"===n.style.display)return{time:e.dateNow,highResTime:e.highResTime,boundingClientRect:{bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0},intersectionRatio:0,intersectionRect:{bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0},isIntersecting:!1,rootBounds:{bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0},target:n}
var i=t.bottom,a=t.right,s=e.left+o.left,c=e.top+o.top,u={left:s,top:c,bottom:o.bottom,right:o.right,width:e.width-(o.right+o.left),height:e.height-(o.bottom+o.top),y:c,x:s},l=Math.max(u.left,t.left),d=Math.max(u.top,t.top),f=Math.min(u.left+u.width,t.right)-l,h=f>=0?l:0,p=d>=0?d:0,g={left:h,top:p,x:h,y:p,width:f,height:Math.min(u.top+u.height,t.bottom)-d,right:a,bottom:i}
return function(e){var t=e.unixTime,n=e.highResTime,o=e.rootBounds,i=e.boundingClientRect,a=e.intersectionRect,s=e.target,c=i.height*i.width
return{time:t,highResTime:n,rootBounds:o,boundingClientRect:i,intersectionRect:a,target:s,intersectionRatio:c>0?a.width*a.height/c:0,isIntersecting:r({intersectionRect:a})}}({unixTime:e.dateNow,highResTime:e.highResTime,rootBounds:u,target:n,boundingClientRect:Z(t),intersectionRect:g})}var V={x:0,y:0,width:0,height:0,bottom:0,left:0,top:0,right:0},G=function(){function e(e,t){var n=this
this.paused=!1,this.queuedEntries=[],this.recordStore={},this.callback=e
var r,o=t||{threshold:[]},i=o.root,a=o.rootMargin,s=o.threshold,c=o.ALLOW_CACHED_SCHEDULER,u=o.BACKGROUND_TAB_FIX,l=o.USE_NATIVE_IO,d="string"!=typeof(a=a||"0px")?(r=a).top+"px "+r.right+"px "+r.bottom+"px "+r.left+"px":a
this.thresholds=s.sort((function(e){return e.ratio}))
var f={root:i,rootMargin:d,threshold:this.thresholds.map((function(e){return e.ratio})),ALLOW_CACHED_SCHEDULER:c}
this.usingNativeIo=!!l&&!!y.IntersectionObserver
var h=this.usingNativeIo?y.IntersectionObserver:K
this.observer=new h((function(e){return n.internalCallback(e)}),f),this.onTabHidden=this._onTabHidden.bind(this),this.onWindowClosed=this._onWindowClosed.bind(this),this.onTabShown=this._onTabShown.bind(this),y.hasDOM&&(j("beforeunload",this.onWindowClosed),j("hide",this.onTabHidden),j("show",this.onTabShown),u&&(this.paused="visible"!==y.document.visibilityState))}return e.prototype._onWindowClosed=function(){this.onTabHidden()},e.prototype.setAllHidden=function(){for(var e=Object.keys(this.recordStore),t=0;t<e.length;t++)this.handleRecordExiting(this.recordStore[e[t]])
this.flushQueuedEntries()},e.prototype._onTabHidden=function(){this.paused=!0,this.setAllHidden()},e.prototype.generateObserverTimestamp=function(){return this.usingNativeIo?Math.floor(performance.now()):Date.now()},e.prototype._onTabShown=function(){this.paused=!1
for(var e=Object.keys(this.recordStore),t=performance.now(),n=this.generateObserverTimestamp(),r=0;r<e.length;r++){var o=this.recordStore[e[r]].lastSeenEntry
if(o){var i=o.intersectionRatio,a=o.boundingClientRect,s=o.rootBounds,c=o.intersectionRect,u=o.isIntersecting,l=o.target
this.handleObserverEntry({intersectionRatio:i,boundingClientRect:a,time:n,highResTime:t,isIntersecting:u,rootBounds:s,intersectionRect:c,target:l})}}},e.prototype.internalCallback=function(e){e.forEach(this.handleObserverEntry.bind(this))},e.prototype.flushQueuedEntries=function(){this.queuedEntries.length>0&&(this.callback(this.queuedEntries),this.queuedEntries=[])},e.prototype.generateSpanielEntry=function(e,t){var n=e.intersectionRatio,r=e.rootBounds,o=e.boundingClientRect,i=e.intersectionRect,a=e.isIntersecting,s=e.time,c=e.target,u=this.recordStore[c.__spanielId],l=this.usingNativeIo?Math.floor((y.performance.timeOrigin||y.performance.timing.navigationStart)+s):s,d=this.usingNativeIo?s:e.highResTime
if(!d)throw new Error("Missing intersection entry timestamp")
return{intersectionRatio:n,isIntersecting:a,unixTime:l,time:l,highResTime:d,rootBounds:r,boundingClientRect:o,intersectionRect:i,target:c,duration:0,visibleTime:a?l:-1,entering:!1,payload:u.payload,label:t.threshold.label,threshold:t.threshold}},e.prototype.handleRecordExiting=function(e){var t=this,n=Date.now(),r=performance.now()
e.thresholdStates.forEach((function(o){var a=e.lastSeenEntry&&e.lastSeenEntry.boundingClientRect
t.handleThresholdExiting({intersectionRatio:-1,isIntersecting:!1,unixTime:n,time:n,highResTime:r,payload:e.payload,label:o.threshold.label,threshold:o.threshold,entering:!1,rootBounds:V,boundingClientRect:a||V,intersectionRect:V,visibleTime:o.lastVisible.unixTime,duration:i(r,o.lastVisible.highResTime),target:e.target},o),o.lastSatisfied=!1,o.visible=!1,o.lastEntry=null}))},e.prototype.handleThresholdExiting=function(e,t){var n=e.highResTime,r=!!t.threshold.time
t.lastSatisfied&&(!r||r&&t.visible)&&(e.duration=i(n,t.lastVisible.highResTime),e.visibleTime=t.lastVisible.unixTime,e.entering=!1,t.visible=!1,this.queuedEntries.push(e)),clearTimeout(t.timeoutId)},e.prototype.handleObserverEntry=function(e){var t=this,n=e.target,o=this.recordStore[n.__spanielId]
o&&(o.lastSeenEntry=e,this.paused||(o.thresholdStates.forEach((function(n){var o=!!n.threshold.time,a=t.generateSpanielEntry(e,n),s=e.intersectionRatio>=n.threshold.ratio,c="boolean"==typeof a.isIntersecting?a.isIntersecting:r(e),u=s&&c
if(u!=n.lastSatisfied){if(u)if(a.entering=!0,n.lastVisible={highResTime:a.highResTime,unixTime:a.unixTime},o){var l=Number(setTimeout((function(){n.visible=!0,a.duration=i(performance.now(),n.lastVisible.highResTime),a.visibleTime=n.lastVisible.unixTime,t.callback([a])}),n.threshold.time))
n.timeoutId=l}else n.visible=!0,a.duration=Date.now()-n.lastVisible.unixTime,t.queuedEntries.push(a)
else t.handleThresholdExiting(a,n)
n.lastEntry=e,n.lastSatisfied=u}})),this.flushQueuedEntries()))},e.prototype.disconnect=function(){this.setAllHidden(),this.observer.disconnect(),this.recordStore={}},e.prototype.destroy=function(){this.disconnect(),y.hasDOM&&(B("beforeunload",this.onWindowClosed),B("hide",this.onTabHidden),B("show",this.onTabShown))},e.prototype.unobserve=function(e){var t=this,n=this.recordStore[e.__spanielId]
n&&(delete this.recordStore[e.__spanielId],this.observer.unobserve(e),U((function(){t.handleRecordExiting(n),t.flushQueuedEntries()})))},e.prototype.observe=function(e,t){var n=e,r=n.__spanielId=n.__spanielId||O()
return this.recordStore[r]={target:n,payload:t,lastSeenEntry:null,thresholdStates:this.thresholds.map((function(e){return{lastSatisfied:!1,lastEntry:null,threshold:e,visible:!1,lastVisible:{unixTime:0,highResTime:-1}}}))},this.observer.observe(n),r},e}()
function W(e){e.forEach((function(e){var t=e.label,n=e.duration,r=e.boundingClientRect,o=e.intersectionRect,i={duration:n,boundingClientRect:r,visibleTime:e.visibleTime,intersectionRect:o}
e.entering?e.payload.callback(t,i):"impressed"===e.label&&e.payload.callback("impression-complete",i)}))}var Q=function(){function e(e){void 0===e&&(e={})
var t=e.time,n=e.ratio,r=e.rootMargin,o=e.root,i=e.ALLOW_CACHED_SCHEDULER,a=e.BACKGROUND_TAB_FIX,s=e.USE_NATIVE_IO,c=[{label:"exposed",time:0,ratio:0}]
null!=t&&c.push({label:"impressed",time:t,ratio:n||0}),n&&c.push({label:"visible",time:0,ratio:n}),this.observer=new G(W,{rootMargin:r,threshold:c,root:o,ALLOW_CACHED_SCHEDULER:i,BACKGROUND_TAB_FIX:a,USE_NATIVE_IO:s})}return e.prototype.watch=function(e,t){this.observer.observe(e,{callback:t})},e.prototype.unwatch=function(e){this.observer.unobserve(e)},e.prototype.disconnect=function(){this.observer.disconnect()},e.prototype.destroy=function(){this.observer.destroy()},e}(),Y=y.IntersectionObserver?y.IntersectionObserver:K
function J(e,t){P().queryElement(e,t)}function z(e,t,n,r){void 0===t&&(t=0),void 0===r&&(r={top:0,bottom:0,left:0,right:0}),J(e,(function(o,i){var a=q(i,o,e,r)
n(a.isIntersecting&&a.intersectionRatio>=t)}))}},1258:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{add:()=>d,getSize:()=>p,removeAll:()=>h,runAll:()=>f})
var r=n(1300),o=n.n(r)
const i={add:function(e){if("function"==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope);else{if("function"!=typeof window.addEventListener)return
window.addEventListener("beforeunload",(function(){e()}),!0),window.addEventListener("unload",(function(){e()}),!0)}}}
var a=n(199),s=n.n(a),c=o()?s():i,u=new Set,l=!1
function d(e){if(l||(l=!0,c.add(f)),"function"!=typeof e)throw new Error("Listener is no function")
return u.add(e),{remove:function(){return u.delete(e)},run:function(){return u.delete(e),e()}}}function f(){var e=[]
return u.forEach((function(t){e.push(t()),u.delete(t)})),Promise.all(e)}function h(){u.clear()}function p(){return u.size}},8972:(e,t,n)=>{var r=n(5679),o=n(4161),i=o
i.v1=r,i.v4=o,e.exports=i},4318:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1)
e.exports=function(e,n){var r=n||0,o=t
return[o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]]].join("")}},8042:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)
if(t){var n=new Uint8Array(16)
e.exports=function(){return t(n),n}}else{var r=new Array(16)
e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255
return r}}},5679:(e,t,n)=>{var r,o,i=n(8042),a=n(4318),s=0,c=0
e.exports=function(e,t,n){var u=t&&n||0,l=t||[],d=(e=e||{}).node||r,f=void 0!==e.clockseq?e.clockseq:o
if(null==d||null==f){var h=i()
null==d&&(d=r=[1|h[0],h[1],h[2],h[3],h[4],h[5]]),null==f&&(f=o=16383&(h[6]<<8|h[7]))}var p=void 0!==e.msecs?e.msecs:(new Date).getTime(),g=void 0!==e.nsecs?e.nsecs:c+1,v=p-s+(g-c)/1e4
if(v<0&&void 0===e.clockseq&&(f=f+1&16383),(v<0||p>s)&&void 0===e.nsecs&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")
s=p,c=g,o=f
var m=(1e4*(268435455&(p+=122192928e5))+g)%4294967296
l[u++]=m>>>24&255,l[u++]=m>>>16&255,l[u++]=m>>>8&255,l[u++]=255&m
var y=p/4294967296*1e4&268435455
l[u++]=y>>>8&255,l[u++]=255&y,l[u++]=y>>>24&15|16,l[u++]=y>>>16&255,l[u++]=f>>>8|128,l[u++]=255&f
for(var b=0;b<6;++b)l[u+b]=d[b]
return t||a(l)}},4161:(e,t,n)=>{var r=n(8042),o=n(4318)
e.exports=function(e,t,n){var i=t&&n||0
"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null)
var a=(e=e||{}).random||(e.rng||r)()
if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[i+s]=a[s]
return t||o(a)}}}])

//# sourceMappingURL=chunk.264.764fd5283a9cebbad7a7.map