@qaecy/cue-ui 0.0.66 → 0.0.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/6780.js DELETED
@@ -1,7 +0,0 @@
1
- (self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[6780],{91294(Le,g,R){var d={"./assets/wasm/dir_scanner_wasm.mjs":[44141,[4141]]};function V($){if(!R.o(d,$))return Promise.resolve().then(()=>{var x=new Error("Cannot find module '"+$+"'");throw x.code="MODULE_NOT_FOUND",x});var U=d[$],G=U[0];return R.e(U[1][0]).then(()=>R(G))}V.keys=()=>Object.keys(d),V.id=91294,Le.exports=V},78380(Le){function g(R){return Promise.resolve().then(()=>{var d=new Error("Cannot find module '"+R+"'");throw d.code="MODULE_NOT_FOUND",d})}g.keys=()=>[],g.resolve=g,g.id=78380,Le.exports=g},97814(Le,g,R){"use strict";R.d(g,{cY:()=>Re,FA:()=>jt,g:()=>ct,u:()=>M,Uj:()=>S,Fy:()=>Je,tD:()=>Qt,bD:()=>Jn,T9:()=>z,yU:()=>k,XA:()=>J,mS:()=>A,Ku:()=>zn,ZQ:()=>bt,sr:()=>Q,zJ:()=>Pe,c1:()=>L,zW:()=>Ee,jZ:()=>jn,lV:()=>Te,nr:()=>En,Ov:()=>ge,gE:()=>Ve,Am:()=>Pr,P1:()=>Cn,eX:()=>Me});var d=R(10467);const x=function(X){const W=[];let ae=0;for(let Oe=0;Oe<X.length;Oe++){let H=X.charCodeAt(Oe);H<128?W[ae++]=H:H<2048?(W[ae++]=H>>6|192,W[ae++]=63&H|128):55296==(64512&H)&&Oe+1<X.length&&56320==(64512&X.charCodeAt(Oe+1))?(H=65536+((1023&H)<<10)+(1023&X.charCodeAt(++Oe)),W[ae++]=H>>18|240,W[ae++]=H>>12&63|128,W[ae++]=H>>6&63|128,W[ae++]=63&H|128):(W[ae++]=H>>12|224,W[ae++]=H>>6&63|128,W[ae++]=63&H|128)}return W},D={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(X,W){if(!Array.isArray(X))throw Error("encodeByteArray takes an array as a parameter");this.init_();const ae=W?this.byteToCharMapWebSafe_:this.byteToCharMap_,Oe=[];for(let H=0;H<X.length;H+=3){const Ze=X[H],mt=H+1<X.length,qt=mt?X[H+1]:0,Be=H+2<X.length,on=Be?X[H+2]:0;let xe=(15&qt)<<2|on>>6,be=63&on;Be||(be=64,mt||(xe=64)),Oe.push(ae[Ze>>2],ae[(3&Ze)<<4|qt>>4],ae[xe],ae[be])}return Oe.join("")},encodeString(X,W){return this.HAS_NATIVE_SUPPORT&&!W?btoa(X):this.encodeByteArray(x(X),W)},decodeString(X,W){return this.HAS_NATIVE_SUPPORT&&!W?atob(X):function(X){const W=[];let ae=0,Oe=0;for(;ae<X.length;){const H=X[ae++];if(H<128)W[Oe++]=String.fromCharCode(H);else if(H>191&&H<224){const Ze=X[ae++];W[Oe++]=String.fromCharCode((31&H)<<6|63&Ze)}else if(H>239&&H<365){const Be=((7&H)<<18|(63&X[ae++])<<12|(63&X[ae++])<<6|63&X[ae++])-65536;W[Oe++]=String.fromCharCode(55296+(Be>>10)),W[Oe++]=String.fromCharCode(56320+(1023&Be))}else{const Ze=X[ae++],mt=X[ae++];W[Oe++]=String.fromCharCode((15&H)<<12|(63&Ze)<<6|63&mt)}}return W.join("")}(this.decodeStringToByteArray(X,W))},decodeStringToByteArray(X,W){this.init_();const ae=W?this.charToByteMapWebSafe_:this.charToByteMap_,Oe=[];for(let H=0;H<X.length;){const Ze=ae[X.charAt(H++)],qt=H<X.length?ae[X.charAt(H)]:0;++H;const on=H<X.length?ae[X.charAt(H)]:64;++H;const xt=H<X.length?ae[X.charAt(H)]:64;if(++H,null==Ze||null==qt||null==on||null==xt)throw new O;Oe.push(Ze<<2|qt>>4),64!==on&&(Oe.push(qt<<4&240|on>>2),64!==xt&&Oe.push(on<<6&192|xt))}return Oe},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let X=0;X<this.ENCODED_VALS.length;X++)this.byteToCharMap_[X]=this.ENCODED_VALS.charAt(X),this.charToByteMap_[this.byteToCharMap_[X]]=X,this.byteToCharMapWebSafe_[X]=this.ENCODED_VALS_WEBSAFE.charAt(X),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[X]]=X,X>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(X)]=X,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(X)]=X)}}};class O extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const S=function(X){return function(X){const W=x(X);return D.encodeByteArray(W,!0)}(X).replace(/\./g,"")},M=function(X){try{return D.decodeString(X,!0)}catch(W){console.error("base64Decode failed: ",W)}return null};function A(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}const w=()=>{try{return A().__FIREBASE_DEFAULTS__||(()=>{if(typeof process>"u"||typeof process.env>"u")return;const X=process.env.__FIREBASE_DEFAULTS__;return X?JSON.parse(X):void 0})()||(()=>{if(typeof document>"u")return;let X;try{X=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const W=X&&M(X[1]);return W&&JSON.parse(W)})()}catch(X){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${X}`)}},k=X=>{const W=(X=>w()?.emulatorHosts?.[X])(X);if(!W)return;const ae=W.lastIndexOf(":");if(ae<=0||ae+1===W.length)throw new Error(`Invalid host ${W} with no separate hostname and port!`);const Oe=parseInt(W.substring(ae+1),10);return"["===W[0]?[W.substring(1,ae-1),Oe]:[W.substring(0,ae),Oe]},z=()=>w()?.config,J=X=>w()?.[`_${X}`];class Re{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((W,ae)=>{this.resolve=W,this.reject=ae})}wrapCallback(W){return(ae,Oe)=>{ae?this.reject(ae):this.resolve(Oe),"function"==typeof W&&(this.promise.catch(()=>{}),1===W.length?W(ae):W(ae,Oe))}}}function Pe(X){try{return(X.startsWith("http://")||X.startsWith("https://")?new URL(X).hostname:X).endsWith(".cloudworkstations.dev")}catch{return!1}}function Ve(X){return Fe.apply(this,arguments)}function Fe(){return(Fe=(0,d.A)(function*(X){return(yield fetch(X,{credentials:"include"})).ok})).apply(this,arguments)}function Je(X,W){if(X.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const Oe=W||"demo-project",H=X.iat||0,Ze=X.sub||X.user_id;if(!Ze)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const mt={iss:`https://securetoken.google.com/${Oe}`,aud:Oe,iat:H,exp:H+3600,auth_time:H,sub:Ze,user_id:Ze,firebase:{sign_in_provider:"custom",identities:{}},...X};return[S(JSON.stringify({alg:"none",type:"JWT"})),S(JSON.stringify(mt)),""].join(".")}const rt={};let Vt=!1;function Cn(X,W){if(typeof window>"u"||typeof document>"u"||!Pe(window.location.host)||rt[X]===W||rt[X]||Vt)return;function ae(xe){return`__firebase__banner__${xe}`}rt[X]=W;const Oe="__firebase__banner",Ze=function vt(){const X={prod:[],emulator:[]};for(const W of Object.keys(rt))rt[W]?X.emulator.push(W):X.prod.push(W);return X}().prod.length>0;function xt(){const xe=function Ct(X){let W=document.getElementById(X),ae=!1;return W||(W=document.createElement("div"),W.setAttribute("id",X),ae=!0),{created:ae,element:W}}(Oe),be=ae("text"),Ne=document.getElementById(be)||document.createElement("span"),Yt=ae("learnmore"),Tn=document.getElementById(Yt)||document.createElement("a"),Eo=ae("preprendIcon"),ao=document.getElementById(Eo)||document.createElementNS("http://www.w3.org/2000/svg","svg");if(xe.created){const Cr=xe.element;(function qt(xe){xe.style.display="flex",xe.style.background="#7faaf0",xe.style.position="fixed",xe.style.bottom="5px",xe.style.left="5px",xe.style.padding=".5em",xe.style.borderRadius="5px",xe.style.alignItems="center"})(Cr),function Xe(xe,be){xe.setAttribute("id",be),xe.innerText="Learn more",xe.href="https://firebase.google.com/docs/studio/preview-apps#preview-backend",xe.setAttribute("target","__blank"),xe.style.paddingLeft="5px",xe.style.textDecoration="underline"}(Tn,Yt);const is=function on(){const xe=document.createElement("span");return xe.style.cursor="pointer",xe.style.marginLeft="16px",xe.style.fontSize="24px",xe.innerHTML=" &times;",xe.onclick=()=>{Vt=!0,function mt(){const xe=document.getElementById(Oe);xe&&xe.remove()}()},xe}();(function Be(xe,be){xe.setAttribute("width","24"),xe.setAttribute("id",be),xe.setAttribute("height","24"),xe.setAttribute("viewBox","0 0 24 24"),xe.setAttribute("fill","none"),xe.style.marginLeft="-6px"})(ao,Eo),Cr.append(ao,Ne,Tn,is),document.body.appendChild(Cr)}Ze?(Ne.innerText="Preview backend disconnected.",ao.innerHTML='<g clip-path="url(#clip0_6013_33858)">\n<path d="M4.8 17.6L12 5.6L19.2 17.6H4.8ZM6.91667 16.4H17.0833L12 7.93333L6.91667 16.4ZM12 15.6C12.1667 15.6 12.3056 15.5444 12.4167 15.4333C12.5389 15.3111 12.6 15.1667 12.6 15C12.6 14.8333 12.5389 14.6944 12.4167 14.5833C12.3056 14.4611 12.1667 14.4 12 14.4C11.8333 14.4 11.6889 14.4611 11.5667 14.5833C11.4556 14.6944 11.4 14.8333 11.4 15C11.4 15.1667 11.4556 15.3111 11.5667 15.4333C11.6889 15.5444 11.8333 15.6 12 15.6ZM11.4 13.6H12.6V10.4H11.4V13.6Z" fill="#212121"/>\n</g>\n<defs>\n<clipPath id="clip0_6013_33858">\n<rect width="24" height="24" fill="white"/>\n</clipPath>\n</defs>'):(ao.innerHTML='<g clip-path="url(#clip0_6083_34804)">\n<path d="M11.4 15.2H12.6V11.2H11.4V15.2ZM12 10C12.1667 10 12.3056 9.94444 12.4167 9.83333C12.5389 9.71111 12.6 9.56667 12.6 9.4C12.6 9.23333 12.5389 9.09444 12.4167 8.98333C12.3056 8.86111 12.1667 8.8 12 8.8C11.8333 8.8 11.6889 8.86111 11.5667 8.98333C11.4556 9.09444 11.4 9.23333 11.4 9.4C11.4 9.56667 11.4556 9.71111 11.5667 9.83333C11.6889 9.94444 11.8333 10 12 10ZM12 18.4C11.1222 18.4 10.2944 18.2333 9.51667 17.9C8.73889 17.5667 8.05556 17.1111 7.46667 16.5333C6.88889 15.9444 6.43333 15.2611 6.1 14.4833C5.76667 13.7056 5.6 12.8778 5.6 12C5.6 11.1111 5.76667 10.2833 6.1 9.51667C6.43333 8.73889 6.88889 8.06111 7.46667 7.48333C8.05556 6.89444 8.73889 6.43333 9.51667 6.1C10.2944 5.76667 11.1222 5.6 12 5.6C12.8889 5.6 13.7167 5.76667 14.4833 6.1C15.2611 6.43333 15.9389 6.89444 16.5167 7.48333C17.1056 8.06111 17.5667 8.73889 17.9 9.51667C18.2333 10.2833 18.4 11.1111 18.4 12C18.4 12.8778 18.2333 13.7056 17.9 14.4833C17.5667 15.2611 17.1056 15.9444 16.5167 16.5333C15.9389 17.1111 15.2611 17.5667 14.4833 17.9C13.7167 18.2333 12.8889 18.4 12 18.4ZM12 17.2C13.4444 17.2 14.6722 16.6944 15.6833 15.6833C16.6944 14.6722 17.2 13.4444 17.2 12C17.2 10.5556 16.6944 9.32778 15.6833 8.31667C14.6722 7.30555 13.4444 6.8 12 6.8C10.5556 6.8 9.32778 7.30555 8.31667 8.31667C7.30556 9.32778 6.8 10.5556 6.8 12C6.8 13.4444 7.30556 14.6722 8.31667 15.6833C9.32778 16.6944 10.5556 17.2 12 17.2Z" fill="#212121"/>\n</g>\n<defs>\n<clipPath id="clip0_6083_34804">\n<rect width="24" height="24" fill="white"/>\n</clipPath>\n</defs>',Ne.innerText="Preview backend running in this workspace."),Ne.setAttribute("id",be)}"loading"===document.readyState?window.addEventListener("DOMContentLoaded",xt):xt()}function bt(){return typeof navigator<"u"&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function jn(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(bt())}function je(){const X=w()?.forceEnvironment;if("node"===X)return!0;if("browser"===X)return!1;try{return"[object process]"===Object.prototype.toString.call(global.process)}catch{return!1}}function L(){return typeof navigator<"u"&&"Cloudflare-Workers"===navigator.userAgent}function Q(){const X="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof X&&void 0!==X.id}function Te(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function En(){return!je()&&!!navigator.userAgent&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function ge(){return!je()&&!!navigator.userAgent&&(navigator.userAgent.includes("Safari")||navigator.userAgent.includes("WebKit"))&&!navigator.userAgent.includes("Chrome")}function Ee(){try{return"object"==typeof indexedDB}catch{return!1}}function Me(){return new Promise((X,W)=>{try{let ae=!0;const Oe="validate-browser-context-for-indexeddb-analytics-module",H=self.indexedDB.open(Oe);H.onsuccess=()=>{H.result.close(),ae||self.indexedDB.deleteDatabase(Oe),X(!0)},H.onupgradeneeded=()=>{ae=!1},H.onerror=()=>{W(H.error?.message||"")}}catch(ae){W(ae)}})}class ct extends Error{constructor(W,ae,Oe){super(ae),this.code=W,this.customData=Oe,this.name="FirebaseError",Object.setPrototypeOf(this,ct.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,jt.prototype.create)}}class jt{constructor(W,ae,Oe){this.service=W,this.serviceName=ae,this.errors=Oe}create(W,...ae){const Oe=ae[0]||{},H=`${this.service}/${W}`,Ze=this.errors[W],mt=Ze?function In(X,W){return X.replace(xn,(ae,Oe)=>{const H=W[Oe];return null!=H?String(H):`<${Oe}?>`})}(Ze,Oe):"Error";return new ct(H,`${this.serviceName}: ${mt} (${H}).`,Oe)}}const xn=/\{\$([^}]+)}/g;function Jn(X,W){if(X===W)return!0;const ae=Object.keys(X),Oe=Object.keys(W);for(const H of ae){if(!Oe.includes(H))return!1;const Ze=X[H],mt=W[H];if(Xn(Ze)&&Xn(mt)){if(!Jn(Ze,mt))return!1}else if(Ze!==mt)return!1}for(const H of Oe)if(!ae.includes(H))return!1;return!0}function Xn(X){return null!==X&&"object"==typeof X}function Pr(X){const W=[];for(const[ae,Oe]of Object.entries(X))Array.isArray(Oe)?Oe.forEach(H=>{W.push(encodeURIComponent(ae)+"="+encodeURIComponent(H))}):W.push(encodeURIComponent(ae)+"="+encodeURIComponent(Oe));return W.length?"&"+W.join("&"):""}function Qt(X,W){const ae=new eo(X,W);return ae.subscribe.bind(ae)}class eo{constructor(W,ae){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=ae,this.task.then(()=>{W(this)}).catch(Oe=>{this.error(Oe)})}next(W){this.forEachObserver(ae=>{ae.next(W)})}error(W){this.forEachObserver(ae=>{ae.error(W)}),this.close(W)}complete(){this.forEachObserver(W=>{W.complete()}),this.close()}subscribe(W,ae,Oe){let H;if(void 0===W&&void 0===ae&&void 0===Oe)throw new Error("Missing Observer.");H=function kr(X,W){if("object"!=typeof X||null===X)return!1;for(const ae of W)if(ae in X&&"function"==typeof X[ae])return!0;return!1}(W,["next","error","complete"])?W:{next:W,error:ae,complete:Oe},void 0===H.next&&(H.next=yo),void 0===H.error&&(H.error=yo),void 0===H.complete&&(H.complete=yo);const Ze=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?H.error(this.finalError):H.complete()}catch{}}),this.observers.push(H),Ze}unsubscribeOne(W){void 0===this.observers||void 0===this.observers[W]||(delete this.observers[W],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(W){if(!this.finalized)for(let ae=0;ae<this.observers.length;ae++)this.sendOne(ae,W)}sendOne(W,ae){this.task.then(()=>{if(void 0!==this.observers&&void 0!==this.observers[W])try{ae(this.observers[W])}catch(Oe){typeof console<"u"&&console.error&&console.error(Oe)}})}close(W){this.finalized||(this.finalized=!0,void 0!==W&&(this.finalError=W),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function yo(){}function zn(X){return X&&X._delegate?X._delegate:X}},91927(Le,g){"use strict";function R(Pe,Ve){return{validate:Pe,compare:Ve}}Object.defineProperty(g,"__esModule",{value:!0}),g.formatNames=g.fastFormats=g.fullFormats=void 0,g.fullFormats={date:R(U,G),time:R(j(!0),D),"date-time":R(S(!0),M),"iso-time":R(j(),O),"iso-date-time":R(S(),F),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:function A(Pe){return Z.test(Pe)&&Y.test(Pe)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:function Re(Pe){if(J.test(Pe))return!1;try{return new RegExp(Pe),!0}catch{return!1}},uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:function _(Pe){return v.lastIndex=0,v.test(Pe)},int32:{type:"number",validate:function T(Pe){return Number.isInteger(Pe)&&Pe<=2147483647&&Pe>=-2147483648}},int64:{type:"number",validate:function k(Pe){return Number.isInteger(Pe)}},float:{type:"number",validate:z},double:{type:"number",validate:z},password:!0,binary:!0},g.fastFormats={...g.fullFormats,date:R(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,G),time:R(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,D),"date-time":R(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,M),"iso-time":R(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,O),"iso-date-time":R(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,F),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},g.formatNames=Object.keys(g.fullFormats);const V=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,$=[0,31,28,31,30,31,30,31,31,30,31,30,31];function U(Pe){const Ve=V.exec(Pe);if(!Ve)return!1;const Je=+Ve[2],rt=+Ve[3];return Je>=1&&Je<=12&&rt>=1&&rt<=(2===Je&&function d(Pe){return Pe%4==0&&(Pe%100!=0||Pe%400==0)}(+Ve[1])?29:$[Je])}function G(Pe,Ve){if(Pe&&Ve)return Pe>Ve?1:Pe<Ve?-1:0}const x=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function j(Pe){return function(Fe){const Je=x.exec(Fe);if(!Je)return!1;const rt=+Je[1],vt=+Je[2],Ct=+Je[3],Cn="-"===Je[5]?-1:1,bt=+(Je[6]||0),jn=+(Je[7]||0);if(bt>23||jn>59||Pe&&!Je[4])return!1;if(rt<=23&&vt<=59&&Ct<60)return!0;const je=vt-jn*Cn,ye=rt-bt*Cn-(je<0?1:0);return(23===ye||-1===ye)&&(59===je||-1===je)&&Ct<61}}function D(Pe,Ve){if(!Pe||!Ve)return;const Fe=new Date("2020-01-01T"+Pe).valueOf(),Je=new Date("2020-01-01T"+Ve).valueOf();return Fe&&Je?Fe-Je:void 0}function O(Pe,Ve){if(!Pe||!Ve)return;const Fe=x.exec(Pe),Je=x.exec(Ve);return Fe&&Je?(Pe=Fe[1]+Fe[2]+Fe[3])>(Ve=Je[1]+Je[2]+Je[3])?1:Pe<Ve?-1:0:void 0}const C=/t|\s/i;function S(Pe){const Ve=j(Pe);return function(Je){const rt=Je.split(C);return 2===rt.length&&U(rt[0])&&Ve(rt[1])}}function M(Pe,Ve){if(!Pe||!Ve)return;const Fe=new Date(Pe).valueOf(),Je=new Date(Ve).valueOf();return Fe&&Je?Fe-Je:void 0}function F(Pe,Ve){if(!Pe||!Ve)return;const[Fe,Je]=Pe.split(C),[rt,vt]=Ve.split(C),Ct=G(Fe,rt);return void 0!==Ct?Ct||D(Je,vt):void 0}const Z=/\/|:/,Y=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,v=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function z(){return!0}const J=/[^\\]\\Z/},71011(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0});const d=R(91927),V=R(62040),$=R(22984),U=new $.Name("fullFormats"),G=new $.Name("fastFormats"),x=(D,O={keywords:!0})=>{if(Array.isArray(O))return j(D,O,d.fullFormats,U),D;const[C,S]="fast"===O.mode?[d.fastFormats,G]:[d.fullFormats,U];return j(D,O.formats||d.formatNames,C,S),O.keywords&&(0,V.default)(D),D};function j(D,O,C,S){var M,F;null!==(M=(F=D.opts.code).formats)&&void 0!==M||(F.formats=$._`require("ajv-formats/dist/formats").${S}`);for(const Z of O)D.addFormat(Z,C[Z])}x.get=(D,O="full")=>{const S=("fast"===O?d.fastFormats:d.fullFormats)[D];if(!S)throw new Error(`Unknown format "${D}"`);return S},Le.exports=g=x,Object.defineProperty(g,"__esModule",{value:!0}),g.default=x},62040(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.formatLimitDefinition=void 0;const d=R(51435),V=R(22984),$=V.operators,U={formatMaximum:{okStr:"<=",ok:$.LTE,fail:$.GT},formatMinimum:{okStr:">=",ok:$.GTE,fail:$.LT},formatExclusiveMaximum:{okStr:"<",ok:$.LT,fail:$.GTE},formatExclusiveMinimum:{okStr:">",ok:$.GT,fail:$.LTE}},G={message:({keyword:j,schemaCode:D})=>V.str`should be ${U[j].okStr} ${D}`,params:({keyword:j,schemaCode:D})=>V._`{comparison: ${U[j].okStr}, limit: ${D}}`};g.formatLimitDefinition={keyword:Object.keys(U),type:"string",schemaType:"string",$data:!0,error:G,code(j){const{gen:D,data:O,schemaCode:C,keyword:S,it:M}=j,{opts:F,self:Z}=M;if(!F.validateFormats)return;const Y=new d.KeywordCxt(M,Z.RULES.all.format.definition,"format");function _(m){return V._`${m}.compare(${O}, ${C}) ${U[S].fail} 0`}Y.$data?function A(){const m=D.scopeValue("formats",{ref:Z.formats,code:F.code.formats}),w=D.const("fmt",V._`${m}[${Y.schemaCode}]`);j.fail$data((0,V.or)(V._`typeof ${w} != "object"`,V._`${w} instanceof RegExp`,V._`typeof ${w}.compare != "function"`,_(w)))}():function v(){const m=Y.schema,w=Z.formats[m];if(!w||!0===w)return;if("object"!=typeof w||w instanceof RegExp||"function"!=typeof w.compare)throw new Error(`"${S}": format "${m}" does not define "compare" function`);const T=D.scopeValue("formats",{key:m,ref:w,code:F.code.formats?V._`${F.code.formats}${(0,V.getProperty)(m)}`:void 0});j.fail$data(_(T))}()},dependencies:["format"]},g.default=j=>(j.addKeyword(g.formatLimitDefinition),j)},51435(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.MissingRefError=g.ValidationError=g.CodeGen=g.Name=g.nil=g.stringify=g.str=g._=g.KeywordCxt=g.Ajv=void 0;const d=R(4017),V=R(94505),$=R(95962),U=R(7595),G=["/properties"],x="http://json-schema.org/draft-07/schema";class j extends d.default{_addVocabularies(){super._addVocabularies(),V.default.forEach(F=>this.addVocabulary(F)),this.opts.discriminator&&this.addKeyword($.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const F=this.opts.$data?this.$dataMetaSchema(U,G):U;this.addMetaSchema(F,x,!1),this.refs["http://json-schema.org/schema"]=x}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(x)?x:void 0)}}g.Ajv=j,Le.exports=g=j,Le.exports.Ajv=j,Object.defineProperty(g,"__esModule",{value:!0}),g.default=j;var D=R(99141);Object.defineProperty(g,"KeywordCxt",{enumerable:!0,get:function(){return D.KeywordCxt}});var O=R(22984);Object.defineProperty(g,"_",{enumerable:!0,get:function(){return O._}}),Object.defineProperty(g,"str",{enumerable:!0,get:function(){return O.str}}),Object.defineProperty(g,"stringify",{enumerable:!0,get:function(){return O.stringify}}),Object.defineProperty(g,"nil",{enumerable:!0,get:function(){return O.nil}}),Object.defineProperty(g,"Name",{enumerable:!0,get:function(){return O.Name}}),Object.defineProperty(g,"CodeGen",{enumerable:!0,get:function(){return O.CodeGen}});var C=R(46545);Object.defineProperty(g,"ValidationError",{enumerable:!0,get:function(){return C.default}});var S=R(56798);Object.defineProperty(g,"MissingRefError",{enumerable:!0,get:function(){return S.default}})},80123(Le,g){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.regexpCode=g.getEsmExportName=g.getProperty=g.safeStringify=g.stringify=g.strConcat=g.addCodeArg=g.str=g._=g.nil=g._Code=g.Name=g.IDENTIFIER=g._CodeOrName=void 0;class R{}g._CodeOrName=R,g.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class d extends R{constructor(v){if(super(),!g.IDENTIFIER.test(v))throw new Error("CodeGen: name must be a valid identifier");this.str=v}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}g.Name=d;class V extends R{constructor(v){super(),this._items="string"==typeof v?[v]:v}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const v=this._items[0];return""===v||'""'===v}get str(){var v;return null!==(v=this._str)&&void 0!==v?v:this._str=this._items.reduce((_,m)=>`${_}${m}`,"")}get names(){var v;return null!==(v=this._names)&&void 0!==v?v:this._names=this._items.reduce((_,m)=>(m instanceof d&&(_[m.str]=(_[m.str]||0)+1),_),{})}}function $(A,...v){const _=[A[0]];let m=0;for(;m<v.length;)x(_,v[m]),_.push(A[++m]);return new V(_)}g._Code=V,g.nil=new V(""),g._=$;const U=new V("+");function G(A,...v){const _=[M(A[0])];let m=0;for(;m<v.length;)_.push(U),x(_,v[m]),_.push(U,M(A[++m]));return function j(A){let v=1;for(;v<A.length-1;){if(A[v]===U){const _=D(A[v-1],A[v+1]);if(void 0!==_){A.splice(v-1,3,_);continue}A[v++]="+"}v++}}(_),new V(_)}function x(A,v){v instanceof V?A.push(...v._items):A.push(v instanceof d?v:function C(A){return"number"==typeof A||"boolean"==typeof A||null===A?A:M(Array.isArray(A)?A.join(","):A)}(v))}function D(A,v){return'""'===v?A:'""'===A?v:"string"==typeof A?v instanceof d||'"'!==A[A.length-1]?void 0:"string"!=typeof v?`${A.slice(0,-1)}${v}"`:'"'===v[0]?A.slice(0,-1)+v.slice(1):void 0:"string"!=typeof v||'"'!==v[0]||A instanceof d?void 0:`"${A}${v.slice(1)}`}function M(A){return JSON.stringify(A).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}g.str=G,g.addCodeArg=x,g.strConcat=function O(A,v){return v.emptyStr()?A:A.emptyStr()?v:G`${A}${v}`},g.stringify=function S(A){return new V(M(A))},g.safeStringify=M,g.getProperty=function F(A){return"string"==typeof A&&g.IDENTIFIER.test(A)?new V(`.${A}`):$`[${A}]`},g.getEsmExportName=function Z(A){if("string"==typeof A&&g.IDENTIFIER.test(A))return new V(`${A}`);throw new Error(`CodeGen: invalid export name: ${A}, use explicit $id name mapping`)},g.regexpCode=function Y(A){return new V(A.toString())}},22984(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.or=g.and=g.not=g.CodeGen=g.operators=g.varKinds=g.ValueScopeName=g.ValueScope=g.Scope=g.Name=g.regexpCode=g.stringify=g.getProperty=g.nil=g.strConcat=g.str=g._=void 0;const d=R(80123),V=R(36032);var $=R(80123);Object.defineProperty(g,"_",{enumerable:!0,get:function(){return $._}}),Object.defineProperty(g,"str",{enumerable:!0,get:function(){return $.str}}),Object.defineProperty(g,"strConcat",{enumerable:!0,get:function(){return $.strConcat}}),Object.defineProperty(g,"nil",{enumerable:!0,get:function(){return $.nil}}),Object.defineProperty(g,"getProperty",{enumerable:!0,get:function(){return $.getProperty}}),Object.defineProperty(g,"stringify",{enumerable:!0,get:function(){return $.stringify}}),Object.defineProperty(g,"regexpCode",{enumerable:!0,get:function(){return $.regexpCode}}),Object.defineProperty(g,"Name",{enumerable:!0,get:function(){return $.Name}});var U=R(36032);Object.defineProperty(g,"Scope",{enumerable:!0,get:function(){return U.Scope}}),Object.defineProperty(g,"ValueScope",{enumerable:!0,get:function(){return U.ValueScope}}),Object.defineProperty(g,"ValueScopeName",{enumerable:!0,get:function(){return U.ValueScopeName}}),Object.defineProperty(g,"varKinds",{enumerable:!0,get:function(){return U.varKinds}}),g.operators={GT:new d._Code(">"),GTE:new d._Code(">="),LT:new d._Code("<"),LTE:new d._Code("<="),EQ:new d._Code("==="),NEQ:new d._Code("!=="),NOT:new d._Code("!"),OR:new d._Code("||"),AND:new d._Code("&&"),ADD:new d._Code("+")};class G{optimizeNodes(){return this}optimizeNames(L,Q){return this}}class x extends G{constructor(L,Q,Te){super(),this.varKind=L,this.name=Q,this.rhs=Te}render({es5:L,_n:Q}){return`${L?V.varKinds.var:this.varKind} ${this.name}${void 0===this.rhs?"":` = ${this.rhs}`};`+Q}optimizeNames(L,Q){if(L[this.name.str])return this.rhs&&(this.rhs=rt(this.rhs,L,Q)),this}get names(){return this.rhs instanceof d._CodeOrName?this.rhs.names:{}}}class j extends G{constructor(L,Q,Te){super(),this.lhs=L,this.rhs=Q,this.sideEffects=Te}render({_n:L}){return`${this.lhs} = ${this.rhs};`+L}optimizeNames(L,Q){if(!(this.lhs instanceof d.Name)||L[this.lhs.str]||this.sideEffects)return this.rhs=rt(this.rhs,L,Q),this}get names(){return Je(this.lhs instanceof d.Name?{}:{...this.lhs.names},this.rhs)}}class D extends j{constructor(L,Q,Te,He){super(L,Te,He),this.op=Q}render({_n:L}){return`${this.lhs} ${this.op}= ${this.rhs};`+L}}class O extends G{constructor(L){super(),this.label=L,this.names={}}render({_n:L}){return`${this.label}:`+L}}class C extends G{constructor(L){super(),this.label=L,this.names={}}render({_n:L}){return`break${this.label?` ${this.label}`:""};`+L}}class S extends G{constructor(L){super(),this.error=L}render({_n:L}){return`throw ${this.error};`+L}get names(){return this.error.names}}class M extends G{constructor(L){super(),this.code=L}render({_n:L}){return`${this.code};`+L}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(L,Q){return this.code=rt(this.code,L,Q),this}get names(){return this.code instanceof d._CodeOrName?this.code.names:{}}}class F extends G{constructor(L=[]){super(),this.nodes=L}render(L){return this.nodes.reduce((Q,Te)=>Q+Te.render(L),"")}optimizeNodes(){const{nodes:L}=this;let Q=L.length;for(;Q--;){const Te=L[Q].optimizeNodes();Array.isArray(Te)?L.splice(Q,1,...Te):Te?L[Q]=Te:L.splice(Q,1)}return L.length>0?this:void 0}optimizeNames(L,Q){const{nodes:Te}=this;let He=Te.length;for(;He--;){const it=Te[He];it.optimizeNames(L,Q)||(vt(L,it.names),Te.splice(He,1))}return Te.length>0?this:void 0}get names(){return this.nodes.reduce((L,Q)=>Fe(L,Q.names),{})}}class Z extends F{render(L){return"{"+L._n+super.render(L)+"}"+L._n}}class Y extends F{}let A=(()=>{class de extends Z{}return de.kind="else",de})(),v=(()=>{class de extends Z{constructor(Q,Te){super(Te),this.condition=Q}render(Q){let Te=`if(${this.condition})`+super.render(Q);return this.else&&(Te+="else "+this.else.render(Q)),Te}optimizeNodes(){super.optimizeNodes();const Q=this.condition;if(!0===Q)return this.nodes;let Te=this.else;if(Te){const He=Te.optimizeNodes();Te=this.else=Array.isArray(He)?new A(He):He}return Te?!1===Q?Te instanceof de?Te:Te.nodes:this.nodes.length?this:new de(Ct(Q),Te instanceof de?[Te]:Te.nodes):!1!==Q&&this.nodes.length?this:void 0}optimizeNames(Q,Te){var He;if(this.else=null===(He=this.else)||void 0===He?void 0:He.optimizeNames(Q,Te),super.optimizeNames(Q,Te)||this.else)return this.condition=rt(this.condition,Q,Te),this}get names(){const Q=super.names;return Je(Q,this.condition),this.else&&Fe(Q,this.else.names),Q}}return de.kind="if",de})(),_=(()=>{class de extends Z{}return de.kind="for",de})();class m extends _{constructor(L){super(),this.iteration=L}render(L){return`for(${this.iteration})`+super.render(L)}optimizeNames(L,Q){if(super.optimizeNames(L,Q))return this.iteration=rt(this.iteration,L,Q),this}get names(){return Fe(super.names,this.iteration.names)}}class w extends _{constructor(L,Q,Te,He){super(),this.varKind=L,this.name=Q,this.from=Te,this.to=He}render(L){const Q=L.es5?V.varKinds.var:this.varKind,{name:Te,from:He,to:it}=this;return`for(${Q} ${Te}=${He}; ${Te}<${it}; ${Te}++)`+super.render(L)}get names(){const L=Je(super.names,this.from);return Je(L,this.to)}}class T extends _{constructor(L,Q,Te,He){super(),this.loop=L,this.varKind=Q,this.name=Te,this.iterable=He}render(L){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(L)}optimizeNames(L,Q){if(super.optimizeNames(L,Q))return this.iterable=rt(this.iterable,L,Q),this}get names(){return Fe(super.names,this.iterable.names)}}let k=(()=>{class de extends Z{constructor(Q,Te,He){super(),this.name=Q,this.args=Te,this.async=He}render(Q){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(Q)}}return de.kind="func",de})(),z=(()=>{class de extends F{render(Q){return"return "+super.render(Q)}}return de.kind="return",de})();class J extends Z{render(L){let Q="try"+super.render(L);return this.catch&&(Q+=this.catch.render(L)),this.finally&&(Q+=this.finally.render(L)),Q}optimizeNodes(){var L,Q;return super.optimizeNodes(),null===(L=this.catch)||void 0===L||L.optimizeNodes(),null===(Q=this.finally)||void 0===Q||Q.optimizeNodes(),this}optimizeNames(L,Q){var Te,He;return super.optimizeNames(L,Q),null===(Te=this.catch)||void 0===Te||Te.optimizeNames(L,Q),null===(He=this.finally)||void 0===He||He.optimizeNames(L,Q),this}get names(){const L=super.names;return this.catch&&Fe(L,this.catch.names),this.finally&&Fe(L,this.finally.names),L}}let Re=(()=>{class de extends Z{constructor(Q){super(),this.error=Q}render(Q){return`catch(${this.error})`+super.render(Q)}}return de.kind="catch",de})(),Pe=(()=>{class de extends Z{render(Q){return"finally"+super.render(Q)}}return de.kind="finally",de})();function Fe(de,L){for(const Q in L)de[Q]=(de[Q]||0)+(L[Q]||0);return de}function Je(de,L){return L instanceof d._CodeOrName?Fe(de,L.names):de}function rt(de,L,Q){return de instanceof d.Name?Te(de):function He(it){return it instanceof d._Code&&it._items.some(yt=>yt instanceof d.Name&&1===L[yt.str]&&void 0!==Q[yt.str])}(de)?new d._Code(de._items.reduce((it,yt)=>(yt instanceof d.Name&&(yt=Te(yt)),yt instanceof d._Code?it.push(...yt._items):it.push(yt),it),[])):de;function Te(it){const yt=Q[it.str];return void 0===yt||1!==L[it.str]?it:(delete L[it.str],yt)}}function vt(de,L){for(const Q in L)de[Q]=(de[Q]||0)-(L[Q]||0)}function Ct(de){return"boolean"==typeof de||"number"==typeof de||null===de?!de:d._`!${ye(de)}`}g.CodeGen=class Ve{constructor(L,Q={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...Q,_n:Q.lines?"\n":""},this._extScope=L,this._scope=new V.Scope({parent:L}),this._nodes=[new Y]}toString(){return this._root.render(this.opts)}name(L){return this._scope.name(L)}scopeName(L){return this._extScope.name(L)}scopeValue(L,Q){const Te=this._extScope.value(L,Q);return(this._values[Te.prefix]||(this._values[Te.prefix]=new Set)).add(Te),Te}getScopeValue(L,Q){return this._extScope.getValue(L,Q)}scopeRefs(L){return this._extScope.scopeRefs(L,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(L,Q,Te,He){const it=this._scope.toName(Q);return void 0!==Te&&He&&(this._constants[it.str]=Te),this._leafNode(new x(L,it,Te)),it}const(L,Q,Te){return this._def(V.varKinds.const,L,Q,Te)}let(L,Q,Te){return this._def(V.varKinds.let,L,Q,Te)}var(L,Q,Te){return this._def(V.varKinds.var,L,Q,Te)}assign(L,Q,Te){return this._leafNode(new j(L,Q,Te))}add(L,Q){return this._leafNode(new D(L,g.operators.ADD,Q))}code(L){return"function"==typeof L?L():L!==d.nil&&this._leafNode(new M(L)),this}object(...L){const Q=["{"];for(const[Te,He]of L)Q.length>1&&Q.push(","),Q.push(Te),(Te!==He||this.opts.es5)&&(Q.push(":"),(0,d.addCodeArg)(Q,He));return Q.push("}"),new d._Code(Q)}if(L,Q,Te){if(this._blockNode(new v(L)),Q&&Te)this.code(Q).else().code(Te).endIf();else if(Q)this.code(Q).endIf();else if(Te)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(L){return this._elseNode(new v(L))}else(){return this._elseNode(new A)}endIf(){return this._endBlockNode(v,A)}_for(L,Q){return this._blockNode(L),Q&&this.code(Q).endFor(),this}for(L,Q){return this._for(new m(L),Q)}forRange(L,Q,Te,He,it=(this.opts.es5?V.varKinds.var:V.varKinds.let)){const yt=this._scope.toName(L);return this._for(new w(it,yt,Q,Te),()=>He(yt))}forOf(L,Q,Te,He=V.varKinds.const){const it=this._scope.toName(L);if(this.opts.es5){const yt=Q instanceof d.Name?Q:this.var("_arr",Q);return this.forRange("_i",0,d._`${yt}.length`,Xt=>{this.var(it,d._`${yt}[${Xt}]`),Te(it)})}return this._for(new T("of",He,it,Q),()=>Te(it))}forIn(L,Q,Te,He=(this.opts.es5?V.varKinds.var:V.varKinds.const)){if(this.opts.ownProperties)return this.forOf(L,d._`Object.keys(${Q})`,Te);const it=this._scope.toName(L);return this._for(new T("in",He,it,Q),()=>Te(it))}endFor(){return this._endBlockNode(_)}label(L){return this._leafNode(new O(L))}break(L){return this._leafNode(new C(L))}return(L){const Q=new z;if(this._blockNode(Q),this.code(L),1!==Q.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(z)}try(L,Q,Te){if(!Q&&!Te)throw new Error('CodeGen: "try" without "catch" and "finally"');const He=new J;if(this._blockNode(He),this.code(L),Q){const it=this.name("e");this._currNode=He.catch=new Re(it),Q(it)}return Te&&(this._currNode=He.finally=new Pe,this.code(Te)),this._endBlockNode(Re,Pe)}throw(L){return this._leafNode(new S(L))}block(L,Q){return this._blockStarts.push(this._nodes.length),L&&this.code(L).endBlock(Q),this}endBlock(L){const Q=this._blockStarts.pop();if(void 0===Q)throw new Error("CodeGen: not in self-balancing block");const Te=this._nodes.length-Q;if(Te<0||void 0!==L&&Te!==L)throw new Error(`CodeGen: wrong number of nodes: ${Te} vs ${L} expected`);return this._nodes.length=Q,this}func(L,Q=d.nil,Te,He){return this._blockNode(new k(L,Q,Te)),He&&this.code(He).endFunc(),this}endFunc(){return this._endBlockNode(k)}optimize(L=1){for(;L-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(L){return this._currNode.nodes.push(L),this}_blockNode(L){this._currNode.nodes.push(L),this._nodes.push(L)}_endBlockNode(L,Q){const Te=this._currNode;if(Te instanceof L||Q&&Te instanceof Q)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${Q?`${L.kind}/${Q.kind}`:L.kind}"`)}_elseNode(L){const Q=this._currNode;if(!(Q instanceof v))throw new Error('CodeGen: "else" without "if"');return this._currNode=Q.else=L,this}get _root(){return this._nodes[0]}get _currNode(){const L=this._nodes;return L[L.length-1]}set _currNode(L){const Q=this._nodes;Q[Q.length-1]=L}},g.not=Ct;const Vt=je(g.operators.AND);g.and=function Cn(...de){return de.reduce(Vt)};const bt=je(g.operators.OR);function je(de){return(L,Q)=>L===d.nil?Q:Q===d.nil?L:d._`${ye(L)} ${de} ${ye(Q)}`}function ye(de){return de instanceof d.Name?de:d._`(${de})`}g.or=function jn(...de){return de.reduce(bt)}},36032(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.ValueScope=g.ValueScopeName=g.Scope=g.varKinds=g.UsedValueState=void 0;const d=R(80123);class V extends Error{constructor(O){super(`CodeGen: "code" for ${O} not defined`),this.value=O.value}}var $=function(D){return D[D.Started=0]="Started",D[D.Completed=1]="Completed",D}($||(g.UsedValueState=$={}));g.varKinds={const:new d.Name("const"),let:new d.Name("let"),var:new d.Name("var")};class U{constructor({prefixes:O,parent:C}={}){this._names={},this._prefixes=O,this._parent=C}toName(O){return O instanceof d.Name?O:this.name(O)}name(O){return new d.Name(this._newName(O))}_newName(O){return`${O}${(this._names[O]||this._nameGroup(O)).index++}`}_nameGroup(O){var C,S;if(null!==(S=null===(C=this._parent)||void 0===C?void 0:C._prefixes)&&void 0!==S&&S.has(O)||this._prefixes&&!this._prefixes.has(O))throw new Error(`CodeGen: prefix "${O}" is not allowed in this scope`);return this._names[O]={prefix:O,index:0}}}g.Scope=U;class G extends d.Name{constructor(O,C){super(C),this.prefix=O}setValue(O,{property:C,itemIndex:S}){this.value=O,this.scopePath=d._`.${new d.Name(C)}[${S}]`}}g.ValueScopeName=G;const x=d._`\n`;g.ValueScope=class j extends U{constructor(O){super(O),this._values={},this._scope=O.scope,this.opts={...O,_n:O.lines?x:d.nil}}get(){return this._scope}name(O){return new G(O,this._newName(O))}value(O,C){var S;if(void 0===C.ref)throw new Error("CodeGen: ref must be passed in value");const M=this.toName(O),{prefix:F}=M,Z=null!==(S=C.key)&&void 0!==S?S:C.ref;let Y=this._values[F];if(Y){const _=Y.get(Z);if(_)return _}else Y=this._values[F]=new Map;Y.set(Z,M);const A=this._scope[F]||(this._scope[F]=[]),v=A.length;return A[v]=C.ref,M.setValue(C,{property:F,itemIndex:v}),M}getValue(O,C){const S=this._values[O];if(S)return S.get(C)}scopeRefs(O,C=this._values){return this._reduceValues(C,S=>{if(void 0===S.scopePath)throw new Error(`CodeGen: name "${S}" has no value`);return d._`${O}${S.scopePath}`})}scopeCode(O=this._values,C,S){return this._reduceValues(O,M=>{if(void 0===M.value)throw new Error(`CodeGen: name "${M}" has no value`);return M.value.code},C,S)}_reduceValues(O,C,S={},M){let F=d.nil;for(const Z in O){const Y=O[Z];if(!Y)continue;const A=S[Z]=S[Z]||new Map;Y.forEach(v=>{if(A.has(v))return;A.set(v,$.Started);let _=C(v);if(_)F=d._`${F}${this.opts.es5?g.varKinds.var:g.varKinds.const} ${v} = ${_};${this.opts._n}`;else{if(!(_=M?.(v)))throw new V(v);F=d._`${F}${_}${this.opts._n}`}A.set(v,$.Completed)})}return F}}},41751(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.extendErrors=g.resetErrorsCount=g.reportExtraError=g.reportError=g.keyword$DataError=g.keywordError=void 0;const d=R(22984),V=R(73612),$=R(80794);function D(A,v){const _=A.const("err",v);A.if(d._`${$.default.vErrors} === null`,()=>A.assign($.default.vErrors,d._`[${_}]`),d._`${$.default.vErrors}.push(${_})`),A.code(d._`${$.default.errors}++`)}function O(A,v){const{gen:_,validateName:m,schemaEnv:w}=A;w.$async?_.throw(d._`new ${A.ValidationError}(${v})`):(_.assign(d._`${m}.errors`,v),_.return(!1))}g.keywordError={message:({keyword:A})=>d.str`must pass "${A}" keyword validation`},g.keyword$DataError={message:({keyword:A,schemaType:v})=>v?d.str`"${A}" keyword must be ${v} ($data)`:d.str`"${A}" keyword is invalid ($data)`},g.reportError=function U(A,v=g.keywordError,_,m){const{it:w}=A,{gen:T,compositeRule:k,allErrors:z}=w,J=S(A,v,_);m??(k||z)?D(T,J):O(w,d._`[${J}]`)},g.reportExtraError=function G(A,v=g.keywordError,_){const{it:m}=A,{gen:w,compositeRule:T,allErrors:k}=m;D(w,S(A,v,_)),T||k||O(m,$.default.vErrors)},g.resetErrorsCount=function x(A,v){A.assign($.default.errors,v),A.if(d._`${$.default.vErrors} !== null`,()=>A.if(v,()=>A.assign(d._`${$.default.vErrors}.length`,v),()=>A.assign($.default.vErrors,null)))},g.extendErrors=function j({gen:A,keyword:v,schemaValue:_,data:m,errsCount:w,it:T}){if(void 0===w)throw new Error("ajv implementation error");const k=A.name("err");A.forRange("i",w,$.default.errors,z=>{A.const(k,d._`${$.default.vErrors}[${z}]`),A.if(d._`${k}.instancePath === undefined`,()=>A.assign(d._`${k}.instancePath`,(0,d.strConcat)($.default.instancePath,T.errorPath))),A.assign(d._`${k}.schemaPath`,d.str`${T.errSchemaPath}/${v}`),T.opts.verbose&&(A.assign(d._`${k}.schema`,_),A.assign(d._`${k}.data`,m))})};const C={keyword:new d.Name("keyword"),schemaPath:new d.Name("schemaPath"),params:new d.Name("params"),propertyName:new d.Name("propertyName"),message:new d.Name("message"),schema:new d.Name("schema"),parentSchema:new d.Name("parentSchema")};function S(A,v,_){const{createErrors:m}=A.it;return!1===m?d._`{}`:function M(A,v,_={}){const{gen:m,it:w}=A,T=[F(w,_),Z(A,_)];return function Y(A,{params:v,message:_},m){const{keyword:w,data:T,schemaValue:k,it:z}=A,{opts:J,propertyName:Re,topSchemaRef:Pe,schemaPath:Ve}=z;m.push([C.keyword,w],[C.params,"function"==typeof v?v(A):v||d._`{}`]),J.messages&&m.push([C.message,"function"==typeof _?_(A):_]),J.verbose&&m.push([C.schema,k],[C.parentSchema,d._`${Pe}${Ve}`],[$.default.data,T]),Re&&m.push([C.propertyName,Re])}(A,v,T),m.object(...T)}(A,v,_)}function F({errorPath:A},{instancePath:v}){const _=v?d.str`${A}${(0,V.getErrorPath)(v,V.Type.Str)}`:A;return[$.default.instancePath,(0,d.strConcat)($.default.instancePath,_)]}function Z({keyword:A,it:{errSchemaPath:v}},{schemaPath:_,parentSchema:m}){let w=m?v:d.str`${v}/${A}`;return _&&(w=d.str`${w}${(0,V.getErrorPath)(_,V.Type.Str)}`),[C.schemaPath,w]}},95938(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.resolveSchema=g.getCompilingSchema=g.resolveRef=g.compileSchema=g.SchemaEnv=void 0;const d=R(22984),V=R(46545),$=R(80794),U=R(72014),G=R(73612),x=R(99141);class j{constructor(_){var m;let w;this.refs={},this.dynamicAnchors={},"object"==typeof _.schema&&(w=_.schema),this.schema=_.schema,this.schemaId=_.schemaId,this.root=_.root||this,this.baseId=null!==(m=_.baseId)&&void 0!==m?m:(0,U.normalizeId)(w?.[_.schemaId||"$id"]),this.schemaPath=_.schemaPath,this.localRefs=_.localRefs,this.meta=_.meta,this.$async=w?.$async,this.refs={}}}function D(v){const _=S.call(this,v);if(_)return _;const m=(0,U.getFullPath)(this.opts.uriResolver,v.root.baseId),{es5:w,lines:T}=this.opts.code,{ownProperties:k}=this.opts,z=new d.CodeGen(this.scope,{es5:w,lines:T,ownProperties:k});let J;v.$async&&(J=z.scopeValue("Error",{ref:V.default,code:d._`require("ajv/dist/runtime/validation_error").default`}));const Re=z.scopeName("validate");v.validateName=Re;const Pe={gen:z,allErrors:this.opts.allErrors,data:$.default.data,parentData:$.default.parentData,parentDataProperty:$.default.parentDataProperty,dataNames:[$.default.data],dataPathArr:[d.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:z.scopeValue("schema",!0===this.opts.code.source?{ref:v.schema,code:(0,d.stringify)(v.schema)}:{ref:v.schema}),validateName:Re,ValidationError:J,schema:v.schema,schemaEnv:v,rootId:m,baseId:v.baseId||m,schemaPath:d.nil,errSchemaPath:v.schemaPath||(this.opts.jtd?"":"#"),errorPath:d._`""`,opts:this.opts,self:this};let Ve;try{this._compilations.add(v),(0,x.validateFunctionCode)(Pe),z.optimize(this.opts.code.optimize);const Fe=z.toString();Ve=`${z.scopeRefs($.default.scope)}return ${Fe}`,this.opts.code.process&&(Ve=this.opts.code.process(Ve,v));const rt=new Function(`${$.default.self}`,`${$.default.scope}`,Ve)(this,this.scope.get());if(this.scope.value(Re,{ref:rt}),rt.errors=null,rt.schema=v.schema,rt.schemaEnv=v,v.$async&&(rt.$async=!0),!0===this.opts.code.source&&(rt.source={validateName:Re,validateCode:Fe,scopeValues:z._values}),this.opts.unevaluated){const{props:vt,items:Ct}=Pe;rt.evaluated={props:vt instanceof d.Name?void 0:vt,items:Ct instanceof d.Name?void 0:Ct,dynamicProps:vt instanceof d.Name,dynamicItems:Ct instanceof d.Name},rt.source&&(rt.source.evaluated=(0,d.stringify)(rt.evaluated))}return v.validate=rt,v}catch(Fe){throw delete v.validate,delete v.validateName,Ve&&this.logger.error("Error compiling schema, function code:",Ve),Fe}finally{this._compilations.delete(v)}}function C(v){return(0,U.inlineRef)(v.schema,this.opts.inlineRefs)?v.schema:v.validate?v:D.call(this,v)}function S(v){for(const _ of this._compilations)if(M(_,v))return _}function M(v,_){return v.schema===_.schema&&v.root===_.root&&v.baseId===_.baseId}function F(v,_){let m;for(;"string"==typeof(m=this.refs[_]);)_=m;return m||this.schemas[_]||Z.call(this,v,_)}function Z(v,_){const m=this.opts.uriResolver.parse(_),w=(0,U._getFullPath)(this.opts.uriResolver,m);let T=(0,U.getFullPath)(this.opts.uriResolver,v.baseId,void 0);if(Object.keys(v.schema).length>0&&w===T)return A.call(this,m,v);const k=(0,U.normalizeId)(w),z=this.refs[k]||this.schemas[k];if("string"==typeof z){const J=Z.call(this,v,z);return"object"!=typeof J?.schema?void 0:A.call(this,m,J)}if("object"==typeof z?.schema){if(z.validate||D.call(this,z),k===(0,U.normalizeId)(_)){const{schema:J}=z,{schemaId:Re}=this.opts,Pe=J[Re];return Pe&&(T=(0,U.resolveUrl)(this.opts.uriResolver,T,Pe)),new j({schema:J,schemaId:Re,root:v,baseId:T})}return A.call(this,m,z)}}g.SchemaEnv=j,g.compileSchema=D,g.resolveRef=function O(v,_,m){var w;m=(0,U.resolveUrl)(this.opts.uriResolver,_,m);const T=v.refs[m];if(T)return T;let k=F.call(this,v,m);if(void 0===k){const z=null===(w=v.localRefs)||void 0===w?void 0:w[m],{schemaId:J}=this.opts;z&&(k=new j({schema:z,schemaId:J,root:v,baseId:_}))}return void 0!==k?v.refs[m]=C.call(this,k):void 0},g.getCompilingSchema=S,g.resolveSchema=Z;const Y=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function A(v,{baseId:_,schema:m,root:w}){var T;if("/"!==(null===(T=v.fragment)||void 0===T?void 0:T[0]))return;for(const J of v.fragment.slice(1).split("/")){if("boolean"==typeof m)return;const Re=m[(0,G.unescapeFragment)(J)];if(void 0===Re)return;const Pe="object"==typeof(m=Re)&&m[this.opts.schemaId];!Y.has(J)&&Pe&&(_=(0,U.resolveUrl)(this.opts.uriResolver,_,Pe))}let k;if("boolean"!=typeof m&&m.$ref&&!(0,G.schemaHasRulesButRef)(m,this.RULES)){const J=(0,U.resolveUrl)(this.opts.uriResolver,_,m.$ref);k=Z.call(this,w,J)}const{schemaId:z}=this.opts;return k=k||new j({schema:m,schemaId:z,root:w,baseId:_}),k.schema!==k.root.schema?k:void 0}},80794(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0});const d=R(22984),V={data:new d.Name("data"),valCxt:new d.Name("valCxt"),instancePath:new d.Name("instancePath"),parentData:new d.Name("parentData"),parentDataProperty:new d.Name("parentDataProperty"),rootData:new d.Name("rootData"),dynamicAnchors:new d.Name("dynamicAnchors"),vErrors:new d.Name("vErrors"),errors:new d.Name("errors"),this:new d.Name("this"),self:new d.Name("self"),scope:new d.Name("scope"),json:new d.Name("json"),jsonPos:new d.Name("jsonPos"),jsonLen:new d.Name("jsonLen"),jsonPart:new d.Name("jsonPart")};g.default=V},56798(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0});const d=R(72014);class V extends Error{constructor(U,G,x,j){super(j||`can't resolve reference ${x} from id ${G}`),this.missingRef=(0,d.resolveUrl)(U,G,x),this.missingSchema=(0,d.normalizeId)((0,d.getFullPath)(U,this.missingRef))}}g.default=V},72014(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.getSchemaRefs=g.resolveUrl=g.normalizeId=g._getFullPath=g.getFullPath=g.inlineRef=void 0;const d=R(73612),V=R(68986),$=R(97915),U=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);g.inlineRef=function G(A,v=!0){return"boolean"==typeof A||(!0===v?!j(A):!!v&&D(A)<=v)};const x=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function j(A){for(const v in A){if(x.has(v))return!0;const _=A[v];if(Array.isArray(_)&&_.some(j)||"object"==typeof _&&j(_))return!0}return!1}function D(A){let v=0;for(const _ in A){if("$ref"===_)return 1/0;if(v++,!U.has(_)&&("object"==typeof A[_]&&(0,d.eachItem)(A[_],m=>v+=D(m)),v===1/0))return 1/0}return v}function O(A,v="",_){!1!==_&&(v=M(v));const m=A.parse(v);return C(A,m)}function C(A,v){return A.serialize(v).split("#")[0]+"#"}g.getFullPath=O,g._getFullPath=C;const S=/#\/?$/;function M(A){return A?A.replace(S,""):""}g.normalizeId=M,g.resolveUrl=function F(A,v,_){return _=M(_),A.resolve(v,_)};const Z=/^[a-z_][-a-z0-9._]*$/i;g.getSchemaRefs=function Y(A,v){if("boolean"==typeof A)return{};const{schemaId:_,uriResolver:m}=this.opts,w=M(A[_]||v),T={"":w},k=O(m,w,!1),z={},J=new Set;return $(A,{allKeys:!0},(Ve,Fe,Je,rt)=>{if(void 0===rt)return;const vt=k+Fe;let Ct=T[rt];function Vt(bt){if(bt=M(Ct?(0,this.opts.uriResolver.resolve)(Ct,bt):bt),J.has(bt))throw Pe(bt);J.add(bt);let je=this.refs[bt];return"string"==typeof je&&(je=this.refs[je]),"object"==typeof je?Re(Ve,je.schema,bt):bt!==M(vt)&&("#"===bt[0]?(Re(Ve,z[bt],bt),z[bt]=Ve):this.refs[bt]=vt),bt}function Cn(bt){if("string"==typeof bt){if(!Z.test(bt))throw new Error(`invalid anchor "${bt}"`);Vt.call(this,`#${bt}`)}}"string"==typeof Ve[_]&&(Ct=Vt.call(this,Ve[_])),Cn.call(this,Ve.$anchor),Cn.call(this,Ve.$dynamicAnchor),T[Fe]=Ct}),z;function Re(Ve,Fe,Je){if(void 0!==Fe&&!V(Ve,Fe))throw Pe(Je)}function Pe(Ve){return new Error(`reference "${Ve}" resolves to more than one schema`)}}},98621(Le,g){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.getRules=g.isJSONType=void 0;const d=new Set(["string","number","integer","boolean","null","object","array"]);g.isJSONType=function V(U){return"string"==typeof U&&d.has(U)},g.getRules=function $(){const U={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...U,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},U.number,U.string,U.array,U.object],post:{rules:[]},all:{},keywords:{}}}},73612(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.checkStrictMode=g.getErrorPath=g.Type=g.useFunc=g.setEvaluated=g.evaluatedPropsToName=g.mergeEvaluated=g.eachItem=g.unescapeJsonPointer=g.escapeJsonPointer=g.escapeFragment=g.unescapeFragment=g.schemaRefOrVal=g.schemaHasRulesButRef=g.schemaHasRules=g.checkUnknownRules=g.alwaysValidSchema=g.toHash=void 0;const d=R(22984),V=R(80123);function G(k,z=k.schema){const{opts:J,self:Re}=k;if(!J.strictSchema||"boolean"==typeof z)return;const Pe=Re.RULES.keywords;for(const Ve in z)Pe[Ve]||T(k,`unknown keyword: "${Ve}"`)}function x(k,z){if("boolean"==typeof k)return!k;for(const J in k)if(z[J])return!0;return!1}function S(k){return"number"==typeof k?`${k}`:k.replace(/~/g,"~0").replace(/\//g,"~1")}function M(k){return k.replace(/~1/g,"/").replace(/~0/g,"~")}function Z({mergeNames:k,mergeToName:z,mergeValues:J,resultToName:Re}){return(Pe,Ve,Fe,Je)=>{const rt=void 0===Fe?Ve:Fe instanceof d.Name?(Ve instanceof d.Name?k(Pe,Ve,Fe):z(Pe,Ve,Fe),Fe):Ve instanceof d.Name?(z(Pe,Fe,Ve),Ve):J(Ve,Fe);return Je!==d.Name||rt instanceof d.Name?rt:Re(Pe,rt)}}function Y(k,z){if(!0===z)return k.var("props",!0);const J=k.var("props",d._`{}`);return void 0!==z&&A(k,J,z),J}function A(k,z,J){Object.keys(J).forEach(Re=>k.assign(d._`${z}${(0,d.getProperty)(Re)}`,!0))}g.toHash=function $(k){const z={};for(const J of k)z[J]=!0;return z},g.alwaysValidSchema=function U(k,z){return"boolean"==typeof z?z:0===Object.keys(z).length||(G(k,z),!x(z,k.self.RULES.all))},g.checkUnknownRules=G,g.schemaHasRules=x,g.schemaHasRulesButRef=function j(k,z){if("boolean"==typeof k)return!k;for(const J in k)if("$ref"!==J&&z.all[J])return!0;return!1},g.schemaRefOrVal=function D({topSchemaRef:k,schemaPath:z},J,Re,Pe){if(!Pe){if("number"==typeof J||"boolean"==typeof J)return J;if("string"==typeof J)return d._`${J}`}return d._`${k}${z}${(0,d.getProperty)(Re)}`},g.unescapeFragment=function O(k){return M(decodeURIComponent(k))},g.escapeFragment=function C(k){return encodeURIComponent(S(k))},g.escapeJsonPointer=S,g.unescapeJsonPointer=M,g.eachItem=function F(k,z){if(Array.isArray(k))for(const J of k)z(J);else z(k)},g.mergeEvaluated={props:Z({mergeNames:(k,z,J)=>k.if(d._`${J} !== true && ${z} !== undefined`,()=>{k.if(d._`${z} === true`,()=>k.assign(J,!0),()=>k.assign(J,d._`${J} || {}`).code(d._`Object.assign(${J}, ${z})`))}),mergeToName:(k,z,J)=>k.if(d._`${J} !== true`,()=>{!0===z?k.assign(J,!0):(k.assign(J,d._`${J} || {}`),A(k,J,z))}),mergeValues:(k,z)=>!0===k||{...k,...z},resultToName:Y}),items:Z({mergeNames:(k,z,J)=>k.if(d._`${J} !== true && ${z} !== undefined`,()=>k.assign(J,d._`${z} === true ? true : ${J} > ${z} ? ${J} : ${z}`)),mergeToName:(k,z,J)=>k.if(d._`${J} !== true`,()=>k.assign(J,!0===z||d._`${J} > ${z} ? ${J} : ${z}`)),mergeValues:(k,z)=>!0===k||Math.max(k,z),resultToName:(k,z)=>k.var("items",z)})},g.evaluatedPropsToName=Y,g.setEvaluated=A;const v={};g.useFunc=function _(k,z){return k.scopeValue("func",{ref:z,code:v[z.code]||(v[z.code]=new V._Code(z.code))})};var m=function(k){return k[k.Num=0]="Num",k[k.Str=1]="Str",k}(m||(g.Type=m={}));function T(k,z,J=k.opts.strictSchema){if(J){if(z=`strict mode: ${z}`,!0===J)throw new Error(z);k.self.logger.warn(z)}}g.getErrorPath=function w(k,z,J){if(k instanceof d.Name){const Re=z===m.Num;return J?Re?d._`"[" + ${k} + "]"`:d._`"['" + ${k} + "']"`:Re?d._`"/" + ${k}`:d._`"/" + ${k}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return J?(0,d.getProperty)(k).toString():"/"+S(k)},g.checkStrictMode=T},61528(Le,g){"use strict";function d($,U){return U.rules.some(G=>V($,G))}function V($,U){var G;return void 0!==$[U.keyword]||(null===(G=U.definition.implements)||void 0===G?void 0:G.some(x=>void 0!==$[x]))}Object.defineProperty(g,"__esModule",{value:!0}),g.shouldUseRule=g.shouldUseGroup=g.schemaHasRulesForType=void 0,g.schemaHasRulesForType=function R({schema:$,self:U},G){const x=U.RULES.types[G];return x&&!0!==x&&d($,x)},g.shouldUseGroup=d,g.shouldUseRule=V},21654(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.boolOrEmptySchema=g.topBoolOrEmptySchema=void 0;const d=R(41751),V=R(22984),$=R(80794),U={message:"boolean schema is false"};function j(D,O){const{gen:C,data:S}=D;(0,d.reportError)({gen:C,keyword:"false schema",data:S,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:D},U,void 0,O)}g.topBoolOrEmptySchema=function G(D){const{gen:O,schema:C,validateName:S}=D;!1===C?j(D,!1):"object"==typeof C&&!0===C.$async?O.return($.default.data):(O.assign(V._`${S}.errors`,null),O.return(!0))},g.boolOrEmptySchema=function x(D,O){const{gen:C,schema:S}=D;!1===S?(C.var(O,!1),j(D)):C.var(O,!0)}},97465(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.reportTypeError=g.checkDataTypes=g.checkDataType=g.coerceAndCheckDataType=g.getJSONTypes=g.getSchemaTypes=g.DataType=void 0;const d=R(98621),V=R(61528),$=R(41751),U=R(22984),G=R(73612);var x=function(m){return m[m.Correct=0]="Correct",m[m.Wrong=1]="Wrong",m}(x||(g.DataType=x={}));function D(m){const w=Array.isArray(m)?m:m?[m]:[];if(w.every(d.isJSONType))return w;throw new Error("type must be JSONType or JSONType[]: "+w.join(","))}g.getSchemaTypes=function j(m){const w=D(m.type);if(w.includes("null")){if(!1===m.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!w.length&&void 0!==m.nullable)throw new Error('"nullable" cannot be used without "type"');!0===m.nullable&&w.push("null")}return w},g.getJSONTypes=D,g.coerceAndCheckDataType=function O(m,w){const{gen:T,data:k,opts:z}=m,J=function S(m,w){return w?m.filter(T=>C.has(T)||"array"===w&&"array"===T):[]}(w,z.coerceTypes),Re=w.length>0&&!(0===J.length&&1===w.length&&(0,V.schemaHasRulesForType)(m,w[0]));if(Re){const Pe=Y(w,k,z.strictNumbers,x.Wrong);T.if(Pe,()=>{J.length?function M(m,w,T){const{gen:k,data:z,opts:J}=m,Re=k.let("dataType",U._`typeof ${z}`),Pe=k.let("coerced",U._`undefined`);"array"===J.coerceTypes&&k.if(U._`${Re} == 'object' && Array.isArray(${z}) && ${z}.length == 1`,()=>k.assign(z,U._`${z}[0]`).assign(Re,U._`typeof ${z}`).if(Y(w,z,J.strictNumbers),()=>k.assign(Pe,z))),k.if(U._`${Pe} !== undefined`);for(const Fe of T)(C.has(Fe)||"array"===Fe&&"array"===J.coerceTypes)&&Ve(Fe);function Ve(Fe){switch(Fe){case"string":return void k.elseIf(U._`${Re} == "number" || ${Re} == "boolean"`).assign(Pe,U._`"" + ${z}`).elseIf(U._`${z} === null`).assign(Pe,U._`""`);case"number":return void k.elseIf(U._`${Re} == "boolean" || ${z} === null
2
- || (${Re} == "string" && ${z} && ${z} == +${z})`).assign(Pe,U._`+${z}`);case"integer":return void k.elseIf(U._`${Re} === "boolean" || ${z} === null
3
- || (${Re} === "string" && ${z} && ${z} == +${z} && !(${z} % 1))`).assign(Pe,U._`+${z}`);case"boolean":return void k.elseIf(U._`${z} === "false" || ${z} === 0 || ${z} === null`).assign(Pe,!1).elseIf(U._`${z} === "true" || ${z} === 1`).assign(Pe,!0);case"null":return k.elseIf(U._`${z} === "" || ${z} === 0 || ${z} === false`),void k.assign(Pe,null);case"array":k.elseIf(U._`${Re} === "string" || ${Re} === "number"
4
- || ${Re} === "boolean" || ${z} === null`).assign(Pe,U._`[${z}]`)}}k.else(),v(m),k.endIf(),k.if(U._`${Pe} !== undefined`,()=>{k.assign(z,Pe),function F({gen:m,parentData:w,parentDataProperty:T},k){m.if(U._`${w} !== undefined`,()=>m.assign(U._`${w}[${T}]`,k))}(m,Pe)})}(m,w,J):v(m)})}return Re};const C=new Set(["string","number","integer","boolean","null"]);function Z(m,w,T,k=x.Correct){const z=k===x.Correct?U.operators.EQ:U.operators.NEQ;let J;switch(m){case"null":return U._`${w} ${z} null`;case"array":J=U._`Array.isArray(${w})`;break;case"object":J=U._`${w} && typeof ${w} == "object" && !Array.isArray(${w})`;break;case"integer":J=Re(U._`!(${w} % 1) && !isNaN(${w})`);break;case"number":J=Re();break;default:return U._`typeof ${w} ${z} ${m}`}return k===x.Correct?J:(0,U.not)(J);function Re(Pe=U.nil){return(0,U.and)(U._`typeof ${w} == "number"`,Pe,T?U._`isFinite(${w})`:U.nil)}}function Y(m,w,T,k){if(1===m.length)return Z(m[0],w,T,k);let z;const J=(0,G.toHash)(m);if(J.array&&J.object){const Re=U._`typeof ${w} != "object"`;z=J.null?Re:U._`!${w} || ${Re}`,delete J.null,delete J.array,delete J.object}else z=U.nil;J.number&&delete J.integer;for(const Re in J)z=(0,U.and)(z,Z(Re,w,T,k));return z}g.checkDataType=Z,g.checkDataTypes=Y;const A={message:({schema:m})=>`must be ${m}`,params:({schema:m,schemaValue:w})=>"string"==typeof m?U._`{type: ${m}}`:U._`{type: ${w}}`};function v(m){const w=function _(m){const{gen:w,data:T,schema:k}=m,z=(0,G.schemaRefOrVal)(m,k,"type");return{gen:w,keyword:"type",data:T,schema:k.type,schemaCode:z,schemaValue:z,parentSchema:k,params:{},it:m}}(m);(0,$.reportError)(w,A)}g.reportTypeError=v},28655(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.assignDefaults=void 0;const d=R(22984),V=R(73612);function U(G,x,j){const{gen:D,compositeRule:O,data:C,opts:S}=G;if(void 0===j)return;const M=d._`${C}${(0,d.getProperty)(x)}`;if(O)return void(0,V.checkStrictMode)(G,`default is ignored for: ${M}`);let F=d._`${M} === undefined`;"empty"===S.useDefaults&&(F=d._`${F} || ${M} === null || ${M} === ""`),D.if(F,d._`${M} = ${(0,d.stringify)(j)}`)}g.assignDefaults=function $(G,x){const{properties:j,items:D}=G.schema;if("object"===x&&j)for(const O in j)U(G,O,j[O].default);else"array"===x&&Array.isArray(D)&&D.forEach((O,C)=>U(G,C,O.default))}},99141(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.getData=g.KeywordCxt=g.validateFunctionCode=void 0;const d=R(21654),V=R(97465),$=R(61528),U=R(97465),G=R(28655),x=R(58870),j=R(78404),D=R(22984),O=R(80794),C=R(72014),S=R(73612),M=R(41751);function Z({gen:ge,validateName:Ee,schema:Me,schemaEnv:qe,opts:ze},ct){ze.code.es5?ge.func(Ee,D._`${O.default.data}, ${O.default.valCxt}`,qe.$async,()=>{ge.code(D._`"use strict"; ${m(Me,ze)}`),function A(ge,Ee){ge.if(O.default.valCxt,()=>{ge.var(O.default.instancePath,D._`${O.default.valCxt}.${O.default.instancePath}`),ge.var(O.default.parentData,D._`${O.default.valCxt}.${O.default.parentData}`),ge.var(O.default.parentDataProperty,D._`${O.default.valCxt}.${O.default.parentDataProperty}`),ge.var(O.default.rootData,D._`${O.default.valCxt}.${O.default.rootData}`),Ee.dynamicRef&&ge.var(O.default.dynamicAnchors,D._`${O.default.valCxt}.${O.default.dynamicAnchors}`)},()=>{ge.var(O.default.instancePath,D._`""`),ge.var(O.default.parentData,D._`undefined`),ge.var(O.default.parentDataProperty,D._`undefined`),ge.var(O.default.rootData,O.default.data),Ee.dynamicRef&&ge.var(O.default.dynamicAnchors,D._`{}`)})}(ge,ze),ge.code(ct)}):ge.func(Ee,D._`${O.default.data}, ${function Y(ge){return D._`{${O.default.instancePath}="", ${O.default.parentData}, ${O.default.parentDataProperty}, ${O.default.rootData}=${O.default.data}${ge.dynamicRef?D._`, ${O.default.dynamicAnchors}={}`:D.nil}}={}`}(ze)}`,qe.$async,()=>ge.code(m(Me,ze)).code(ct))}function m(ge,Ee){const Me="object"==typeof ge&&ge[Ee.schemaId];return Me&&(Ee.code.source||Ee.code.process)?D._`/*# sourceURL=${Me} */`:D.nil}function T({schema:ge,self:Ee}){if("boolean"==typeof ge)return!ge;for(const Me in ge)if(Ee.RULES.all[Me])return!0;return!1}function k(ge){return"boolean"!=typeof ge.schema}function J(ge){(0,S.checkUnknownRules)(ge),function Pe(ge){const{schema:Ee,errSchemaPath:Me,opts:qe,self:ze}=ge;Ee.$ref&&qe.ignoreKeywordsWithRef&&(0,S.schemaHasRulesButRef)(Ee,ze.RULES)&&ze.logger.warn(`$ref: keywords ignored in schema at path "${Me}"`)}(ge)}function Re(ge,Ee){if(ge.opts.jtd)return Vt(ge,[],!1,Ee);const Me=(0,V.getSchemaTypes)(ge.schema);Vt(ge,Me,!(0,V.coerceAndCheckDataType)(ge,Me),Ee)}function rt({gen:ge,schemaEnv:Ee,schema:Me,errSchemaPath:qe,opts:ze}){const ct=Me.$comment;if(!0===ze.$comment)ge.code(D._`${O.default.self}.logger.log(${ct})`);else if("function"==typeof ze.$comment){const jt=D.str`${qe}/$comment`,In=ge.scopeValue("root",{ref:Ee.root});ge.code(D._`${O.default.self}.opts.$comment(${ct}, ${jt}, ${In}.schema)`)}}function Vt(ge,Ee,Me,qe){const{gen:ze,schema:ct,data:jt,allErrors:In,opts:xn,self:Zt}=ge,{RULES:dn}=Zt;function Gt(Nn){(0,$.shouldUseGroup)(ct,Nn)&&(Nn.type?(ze.if((0,U.checkDataType)(Nn.type,jt,xn.strictNumbers)),Cn(ge,Nn),1===Ee.length&&Ee[0]===Nn.type&&Me&&(ze.else(),(0,U.reportTypeError)(ge)),ze.endIf()):Cn(ge,Nn),In||ze.if(D._`${O.default.errors} === ${qe||0}`))}!ct.$ref||!xn.ignoreKeywordsWithRef&&(0,S.schemaHasRulesButRef)(ct,dn)?(xn.jtd||function bt(ge,Ee){ge.schemaEnv.meta||!ge.opts.strictTypes||(function jn(ge,Ee){if(Ee.length){if(!ge.dataTypes.length)return void(ge.dataTypes=Ee);Ee.forEach(Me=>{L(ge.dataTypes,Me)||Te(ge,`type "${Me}" not allowed by context "${ge.dataTypes.join(",")}"`)}),function Q(ge,Ee){const Me=[];for(const qe of ge.dataTypes)L(Ee,qe)?Me.push(qe):Ee.includes("integer")&&"number"===qe&&Me.push("integer");ge.dataTypes=Me}(ge,Ee)}}(ge,Ee),ge.opts.allowUnionTypes||function je(ge,Ee){Ee.length>1&&(2!==Ee.length||!Ee.includes("null"))&&Te(ge,"use allowUnionTypes to allow union type keyword")}(ge,Ee),function ye(ge,Ee){const Me=ge.self.RULES.all;for(const qe in Me){const ze=Me[qe];if("object"==typeof ze&&(0,$.shouldUseRule)(ge.schema,ze)){const{type:ct}=ze.definition;ct.length&&!ct.some(jt=>de(Ee,jt))&&Te(ge,`missing type "${ct.join(",")}" for keyword "${qe}"`)}}}(ge,ge.dataTypes))}(ge,Ee),ze.block(()=>{for(const Nn of dn.rules)Gt(Nn);Gt(dn.post)})):ze.block(()=>it(ge,"$ref",dn.all.$ref.definition))}function Cn(ge,Ee){const{gen:Me,schema:qe,opts:{useDefaults:ze}}=ge;ze&&(0,G.assignDefaults)(ge,Ee.type),Me.block(()=>{for(const ct of Ee.rules)(0,$.shouldUseRule)(qe,ct)&&it(ge,ct.keyword,ct.definition,Ee.type)})}function de(ge,Ee){return ge.includes(Ee)||"number"===Ee&&ge.includes("integer")}function L(ge,Ee){return ge.includes(Ee)||"integer"===Ee&&ge.includes("number")}function Te(ge,Ee){(0,S.checkStrictMode)(ge,Ee+=` at "${ge.schemaEnv.baseId+ge.errSchemaPath}" (strictTypes)`,ge.opts.strictTypes)}g.validateFunctionCode=function F(ge){k(ge)&&(J(ge),T(ge))?function v(ge){const{schema:Ee,opts:Me,gen:qe}=ge;Z(ge,()=>{Me.$comment&&Ee.$comment&&rt(ge),function Ve(ge){const{schema:Ee,opts:Me}=ge;void 0!==Ee.default&&Me.useDefaults&&Me.strictSchema&&(0,S.checkStrictMode)(ge,"default is ignored in the schema root")}(ge),qe.let(O.default.vErrors,null),qe.let(O.default.errors,0),Me.unevaluated&&function _(ge){const{gen:Ee,validateName:Me}=ge;ge.evaluated=Ee.const("evaluated",D._`${Me}.evaluated`),Ee.if(D._`${ge.evaluated}.dynamicProps`,()=>Ee.assign(D._`${ge.evaluated}.props`,D._`undefined`)),Ee.if(D._`${ge.evaluated}.dynamicItems`,()=>Ee.assign(D._`${ge.evaluated}.items`,D._`undefined`))}(ge),Re(ge),function vt(ge){const{gen:Ee,schemaEnv:Me,validateName:qe,ValidationError:ze,opts:ct}=ge;Me.$async?Ee.if(D._`${O.default.errors} === 0`,()=>Ee.return(O.default.data),()=>Ee.throw(D._`new ${ze}(${O.default.vErrors})`)):(Ee.assign(D._`${qe}.errors`,O.default.vErrors),ct.unevaluated&&function Ct({gen:ge,evaluated:Ee,props:Me,items:qe}){Me instanceof D.Name&&ge.assign(D._`${Ee}.props`,Me),qe instanceof D.Name&&ge.assign(D._`${Ee}.items`,qe)}(ge),Ee.return(D._`${O.default.errors} === 0`))}(ge)})}(ge):Z(ge,()=>(0,d.topBoolOrEmptySchema)(ge))};class He{constructor(Ee,Me,qe){if((0,x.validateKeywordUsage)(Ee,Me,qe),this.gen=Ee.gen,this.allErrors=Ee.allErrors,this.keyword=qe,this.data=Ee.data,this.schema=Ee.schema[qe],this.$data=Me.$data&&Ee.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,S.schemaRefOrVal)(Ee,this.schema,qe,this.$data),this.schemaType=Me.schemaType,this.parentSchema=Ee.schema,this.params={},this.it=Ee,this.def=Me,this.$data)this.schemaCode=Ee.gen.const("vSchema",En(this.$data,Ee));else if(this.schemaCode=this.schemaValue,!(0,x.validSchemaType)(this.schema,Me.schemaType,Me.allowUndefined))throw new Error(`${qe} value must be ${JSON.stringify(Me.schemaType)}`);("code"in Me?Me.trackErrors:!1!==Me.errors)&&(this.errsCount=Ee.gen.const("_errs",O.default.errors))}result(Ee,Me,qe){this.failResult((0,D.not)(Ee),Me,qe)}failResult(Ee,Me,qe){this.gen.if(Ee),qe?qe():this.error(),Me?(this.gen.else(),Me(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(Ee,Me){this.failResult((0,D.not)(Ee),void 0,Me)}fail(Ee){if(void 0===Ee)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(Ee),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(Ee){if(!this.$data)return this.fail(Ee);const{schemaCode:Me}=this;this.fail(D._`${Me} !== undefined && (${(0,D.or)(this.invalid$data(),Ee)})`)}error(Ee,Me,qe){if(Me)return this.setParams(Me),this._error(Ee,qe),void this.setParams({});this._error(Ee,qe)}_error(Ee,Me){(Ee?M.reportExtraError:M.reportError)(this,this.def.error,Me)}$dataError(){(0,M.reportError)(this,this.def.$dataError||M.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,M.resetErrorsCount)(this.gen,this.errsCount)}ok(Ee){this.allErrors||this.gen.if(Ee)}setParams(Ee,Me){Me?Object.assign(this.params,Ee):this.params=Ee}block$data(Ee,Me,qe=D.nil){this.gen.block(()=>{this.check$data(Ee,qe),Me()})}check$data(Ee=D.nil,Me=D.nil){if(!this.$data)return;const{gen:qe,schemaCode:ze,schemaType:ct,def:jt}=this;qe.if((0,D.or)(D._`${ze} === undefined`,Me)),Ee!==D.nil&&qe.assign(Ee,!0),(ct.length||jt.validateSchema)&&(qe.elseIf(this.invalid$data()),this.$dataError(),Ee!==D.nil&&qe.assign(Ee,!1)),qe.else()}invalid$data(){const{gen:Ee,schemaCode:Me,schemaType:qe,def:ze,it:ct}=this;return(0,D.or)(function jt(){if(qe.length){if(!(Me instanceof D.Name))throw new Error("ajv implementation error");const xn=Array.isArray(qe)?qe:[qe];return D._`${(0,U.checkDataTypes)(xn,Me,ct.opts.strictNumbers,U.DataType.Wrong)}`}return D.nil}(),function In(){if(ze.validateSchema){const xn=Ee.scopeValue("validate$data",{ref:ze.validateSchema});return D._`!${xn}(${Me})`}return D.nil}())}subschema(Ee,Me){const qe=(0,j.getSubschema)(this.it,Ee);(0,j.extendSubschemaData)(qe,this.it,Ee),(0,j.extendSubschemaMode)(qe,Ee);const ze={...this.it,...qe,items:void 0,props:void 0};return function w(ge,Ee){k(ge)&&(J(ge),T(ge))?function z(ge,Ee){const{schema:Me,gen:qe,opts:ze}=ge;ze.$comment&&Me.$comment&&rt(ge),function Fe(ge){const Ee=ge.schema[ge.opts.schemaId];Ee&&(ge.baseId=(0,C.resolveUrl)(ge.opts.uriResolver,ge.baseId,Ee))}(ge),function Je(ge){if(ge.schema.$async&&!ge.schemaEnv.$async)throw new Error("async schema in sync schema")}(ge);const ct=qe.const("_errs",O.default.errors);Re(ge,ct),qe.var(Ee,D._`${ct} === ${O.default.errors}`)}(ge,Ee):(0,d.boolOrEmptySchema)(ge,Ee)}(ze,Me),ze}mergeEvaluated(Ee,Me){const{it:qe,gen:ze}=this;qe.opts.unevaluated&&(!0!==qe.props&&void 0!==Ee.props&&(qe.props=S.mergeEvaluated.props(ze,Ee.props,qe.props,Me)),!0!==qe.items&&void 0!==Ee.items&&(qe.items=S.mergeEvaluated.items(ze,Ee.items,qe.items,Me)))}mergeValidEvaluated(Ee,Me){const{it:qe,gen:ze}=this;if(qe.opts.unevaluated&&(!0!==qe.props||!0!==qe.items))return ze.if(Me,()=>this.mergeEvaluated(Ee,D.Name)),!0}}function it(ge,Ee,Me,qe){const ze=new He(ge,Me,Ee);"code"in Me?Me.code(ze,qe):ze.$data&&Me.validate?(0,x.funcKeywordCode)(ze,Me):"macro"in Me?(0,x.macroKeywordCode)(ze,Me):(Me.compile||Me.validate)&&(0,x.funcKeywordCode)(ze,Me)}g.KeywordCxt=He;const yt=/^\/(?:[^~]|~0|~1)*$/,Xt=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function En(ge,{dataLevel:Ee,dataNames:Me,dataPathArr:qe}){let ze,ct;if(""===ge)return O.default.rootData;if("/"===ge[0]){if(!yt.test(ge))throw new Error(`Invalid JSON-pointer: ${ge}`);ze=ge,ct=O.default.rootData}else{const Zt=Xt.exec(ge);if(!Zt)throw new Error(`Invalid JSON-pointer: ${ge}`);const dn=+Zt[1];if(ze=Zt[2],"#"===ze){if(dn>=Ee)throw new Error(xn("property/index",dn));return qe[Ee-dn]}if(dn>Ee)throw new Error(xn("data",dn));if(ct=Me[Ee-dn],!ze)return ct}let jt=ct;const In=ze.split("/");for(const Zt of In)Zt&&(ct=D._`${ct}${(0,D.getProperty)((0,S.unescapeJsonPointer)(Zt))}`,jt=D._`${jt} && ${ct}`);return jt;function xn(Zt,dn){return`Cannot access ${Zt} ${dn} levels up, current level is ${Ee}`}}g.getData=En},58870(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.validateKeywordUsage=g.validSchemaType=g.funcKeywordCode=g.macroKeywordCode=void 0;const d=R(22984),V=R(80794),$=R(47904),U=R(41751);function j(F){const{gen:Z,data:Y,it:A}=F;Z.if(A.parentData,()=>Z.assign(Y,d._`${A.parentData}[${A.parentDataProperty}]`))}function C(F,Z,Y){if(void 0===Y)throw new Error(`keyword "${Z}" failed to compile`);return F.scopeValue("keyword","function"==typeof Y?{ref:Y}:{ref:Y,code:(0,d.stringify)(Y)})}g.macroKeywordCode=function G(F,Z){const{gen:Y,keyword:A,schema:v,parentSchema:_,it:m}=F,w=Z.macro.call(m.self,v,_,m),T=C(Y,A,w);!1!==m.opts.validateSchema&&m.self.validateSchema(w,!0);const k=Y.name("valid");F.subschema({schema:w,schemaPath:d.nil,errSchemaPath:`${m.errSchemaPath}/${A}`,topSchemaRef:T,compositeRule:!0},k),F.pass(k,()=>F.error(!0))},g.funcKeywordCode=function x(F,Z){var Y;const{gen:A,keyword:v,schema:_,parentSchema:m,$data:w,it:T}=F;!function O({schemaEnv:F},Z){if(Z.async&&!F.$async)throw new Error("async keyword in sync schema")}(T,Z);const k=!w&&Z.compile?Z.compile.call(T.self,_,m,T):Z.validate,z=C(A,v,k),J=A.let("valid");function Fe(rt=(Z.async?d._`await `:d.nil)){A.assign(J,d._`${rt}${(0,$.callValidateCode)(F,z,T.opts.passContext?V.default.this:V.default.self,!("compile"in Z&&!w||!1===Z.schema))}`,Z.modifying)}function Je(rt){var vt;A.if((0,d.not)(null!==(vt=Z.valid)&&void 0!==vt?vt:J),rt)}F.block$data(J,function Re(){if(!1===Z.errors)Fe(),Z.modifying&&j(F),Je(()=>F.error());else{const rt=Z.async?function Pe(){const rt=A.let("ruleErrs",null);return A.try(()=>Fe(d._`await `),vt=>A.assign(J,!1).if(d._`${vt} instanceof ${T.ValidationError}`,()=>A.assign(rt,d._`${vt}.errors`),()=>A.throw(vt))),rt}():function Ve(){const rt=d._`${z}.errors`;return A.assign(rt,null),Fe(d.nil),rt}();Z.modifying&&j(F),Je(()=>function D(F,Z){const{gen:Y}=F;Y.if(d._`Array.isArray(${Z})`,()=>{Y.assign(V.default.vErrors,d._`${V.default.vErrors} === null ? ${Z} : ${V.default.vErrors}.concat(${Z})`).assign(V.default.errors,d._`${V.default.vErrors}.length`),(0,U.extendErrors)(F)},()=>F.error())}(F,rt))}}),F.ok(null!==(Y=Z.valid)&&void 0!==Y?Y:J)},g.validSchemaType=function S(F,Z,Y=!1){return!Z.length||Z.some(A=>"array"===A?Array.isArray(F):"object"===A?F&&"object"==typeof F&&!Array.isArray(F):typeof F==A||Y&&typeof F>"u")},g.validateKeywordUsage=function M({schema:F,opts:Z,self:Y,errSchemaPath:A},v,_){if(Array.isArray(v.keyword)?!v.keyword.includes(_):v.keyword!==_)throw new Error("ajv implementation error");const m=v.dependencies;if(m?.some(w=>!Object.prototype.hasOwnProperty.call(F,w)))throw new Error(`parent schema must have dependencies of ${_}: ${m.join(",")}`);if(v.validateSchema&&!v.validateSchema(F[_])){const T=`keyword "${_}" value is invalid at path "${A}": `+Y.errorsText(v.validateSchema.errors);if("log"!==Z.validateSchema)throw new Error(T);Y.logger.error(T)}}},78404(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.extendSubschemaMode=g.extendSubschemaData=g.getSubschema=void 0;const d=R(22984),V=R(73612);g.getSubschema=function $(x,{keyword:j,schemaProp:D,schema:O,schemaPath:C,errSchemaPath:S,topSchemaRef:M}){if(void 0!==j&&void 0!==O)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==j){const F=x.schema[j];return void 0===D?{schema:F,schemaPath:d._`${x.schemaPath}${(0,d.getProperty)(j)}`,errSchemaPath:`${x.errSchemaPath}/${j}`}:{schema:F[D],schemaPath:d._`${x.schemaPath}${(0,d.getProperty)(j)}${(0,d.getProperty)(D)}`,errSchemaPath:`${x.errSchemaPath}/${j}/${(0,V.escapeFragment)(D)}`}}if(void 0!==O){if(void 0===C||void 0===S||void 0===M)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:O,schemaPath:C,topSchemaRef:M,errSchemaPath:S}}throw new Error('either "keyword" or "schema" must be passed')},g.extendSubschemaData=function U(x,j,{dataProp:D,dataPropType:O,data:C,dataTypes:S,propertyName:M}){if(void 0!==C&&void 0!==D)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:F}=j;if(void 0!==D){const{errorPath:Y,dataPathArr:A,opts:v}=j;Z(F.let("data",d._`${j.data}${(0,d.getProperty)(D)}`,!0)),x.errorPath=d.str`${Y}${(0,V.getErrorPath)(D,O,v.jsPropertySyntax)}`,x.parentDataProperty=d._`${D}`,x.dataPathArr=[...A,x.parentDataProperty]}function Z(Y){x.data=Y,x.dataLevel=j.dataLevel+1,x.dataTypes=[],j.definedProperties=new Set,x.parentData=j.data,x.dataNames=[...j.dataNames,Y]}void 0!==C&&(Z(C instanceof d.Name?C:F.let("data",C,!0)),void 0!==M&&(x.propertyName=M)),S&&(x.dataTypes=S)},g.extendSubschemaMode=function G(x,{jtdDiscriminator:j,jtdMetadata:D,compositeRule:O,createErrors:C,allErrors:S}){void 0!==O&&(x.compositeRule=O),void 0!==C&&(x.createErrors=C),void 0!==S&&(x.allErrors=S),x.jtdDiscriminator=j,x.jtdMetadata=D}},4017(Le,g,R){"use strict";var d=R(29293).default;Object.defineProperty(g,"__esModule",{value:!0}),g.CodeGen=g.Name=g.nil=g.stringify=g.str=g._=g.KeywordCxt=void 0;var V=R(99141);Object.defineProperty(g,"KeywordCxt",{enumerable:!0,get:function(){return V.KeywordCxt}});var $=R(22984);Object.defineProperty(g,"_",{enumerable:!0,get:function(){return $._}}),Object.defineProperty(g,"str",{enumerable:!0,get:function(){return $.str}}),Object.defineProperty(g,"stringify",{enumerable:!0,get:function(){return $.stringify}}),Object.defineProperty(g,"nil",{enumerable:!0,get:function(){return $.nil}}),Object.defineProperty(g,"Name",{enumerable:!0,get:function(){return $.Name}}),Object.defineProperty(g,"CodeGen",{enumerable:!0,get:function(){return $.CodeGen}});const U=R(46545),G=R(56798),x=R(98621),j=R(95938),D=R(22984),O=R(72014),C=R(97465),S=R(73612),M=R(70545),F=R(67977),Z=(je,ye)=>new RegExp(je,ye);Z.code="new RegExp";const Y=["removeAdditional","useDefaults","coerceTypes"],A=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),v={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},_={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function w(je){var ye,de,L,Q,Te,He,it,yt,Xt,En,ge,Ee,Me,qe,ze,ct,jt,In,xn,Zt,dn,Gt,Nn,pr,io;const Fr=je.strict,Rr=null===(ye=je.code)||void 0===ye?void 0:ye.optimize,ut=!0===Rr||void 0===Rr?1:Rr||0,_o=null!==(L=null===(de=je.code)||void 0===de?void 0:de.regExp)&&void 0!==L?L:Z,No=null!==(Q=je.uriResolver)&&void 0!==Q?Q:F.default;return{strictSchema:null===(He=null!==(Te=je.strictSchema)&&void 0!==Te?Te:Fr)||void 0===He||He,strictNumbers:null===(yt=null!==(it=je.strictNumbers)&&void 0!==it?it:Fr)||void 0===yt||yt,strictTypes:null!==(En=null!==(Xt=je.strictTypes)&&void 0!==Xt?Xt:Fr)&&void 0!==En?En:"log",strictTuples:null!==(Ee=null!==(ge=je.strictTuples)&&void 0!==ge?ge:Fr)&&void 0!==Ee?Ee:"log",strictRequired:null!==(qe=null!==(Me=je.strictRequired)&&void 0!==Me?Me:Fr)&&void 0!==qe&&qe,code:je.code?{...je.code,optimize:ut,regExp:_o}:{optimize:ut,regExp:_o},loopRequired:null!==(ze=je.loopRequired)&&void 0!==ze?ze:200,loopEnum:null!==(ct=je.loopEnum)&&void 0!==ct?ct:200,meta:null===(jt=je.meta)||void 0===jt||jt,messages:null===(In=je.messages)||void 0===In||In,inlineRefs:null===(xn=je.inlineRefs)||void 0===xn||xn,schemaId:null!==(Zt=je.schemaId)&&void 0!==Zt?Zt:"$id",addUsedSchema:null===(dn=je.addUsedSchema)||void 0===dn||dn,validateSchema:null===(Gt=je.validateSchema)||void 0===Gt||Gt,validateFormats:null===(Nn=je.validateFormats)||void 0===Nn||Nn,unicodeRegExp:null===(pr=je.unicodeRegExp)||void 0===pr||pr,int32range:null===(io=je.int32range)||void 0===io||io,uriResolver:No}}class T{constructor(ye={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,ye=this.opts={...ye,...w(ye)};const{es5:de,lines:L}=this.opts.code;this.scope=new D.ValueScope({scope:{},prefixes:A,es5:de,lines:L}),this.logger=function Je(je){if(!1===je)return Fe;if(void 0===je)return console;if(je.log&&je.warn&&je.error)return je;throw new Error("logger must implement log, warn and error methods")}(ye.logger);const Q=ye.validateFormats;ye.validateFormats=!1,this.RULES=(0,x.getRules)(),k.call(this,v,ye,"NOT SUPPORTED"),k.call(this,_,ye,"DEPRECATED","warn"),this._metaOpts=Ve.call(this),ye.formats&&Re.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),ye.keywords&&Pe.call(this,ye.keywords),"object"==typeof ye.meta&&this.addMetaSchema(ye.meta),J.call(this),ye.validateFormats=Q}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:ye,meta:de,schemaId:L}=this.opts;let Q=M;"id"===L&&(Q={...M},Q.id=Q.$id,delete Q.$id),de&&ye&&this.addMetaSchema(Q,Q[L],!1)}defaultMeta(){const{meta:ye,schemaId:de}=this.opts;return this.opts.defaultMeta="object"==typeof ye?ye[de]||ye:void 0}validate(ye,de){let L;if("string"==typeof ye){if(L=this.getSchema(ye),!L)throw new Error(`no schema with key or ref "${ye}"`)}else L=this.compile(ye);const Q=L(de);return"$async"in L||(this.errors=L.errors),Q}compile(ye,de){const L=this._addSchema(ye,de);return L.validate||this._compileSchemaEnv(L)}compileAsync(ye,de){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:L}=this.opts;return Q.call(this,ye,de);function Q(ze,ct){return Te.apply(this,arguments)}function Te(){return(Te=d(function*(ze,ct){yield He.call(this,ze.$schema);const jt=this._addSchema(ze,ct);return jt.validate||yt.call(this,jt)})).apply(this,arguments)}function He(ze){return it.apply(this,arguments)}function it(){return(it=d(function*(ze){ze&&!this.getSchema(ze)&&(yield Q.call(this,{$ref:ze},!0))})).apply(this,arguments)}function yt(ze){return Xt.apply(this,arguments)}function Xt(){return(Xt=d(function*(ze){try{return this._compileSchemaEnv(ze)}catch(ct){if(!(ct instanceof G.default))throw ct;return En.call(this,ct),yield ge.call(this,ct.missingSchema),yt.call(this,ze)}})).apply(this,arguments)}function En({missingSchema:ze,missingRef:ct}){if(this.refs[ze])throw new Error(`AnySchema ${ze} is loaded but ${ct} cannot be resolved`)}function ge(ze){return Ee.apply(this,arguments)}function Ee(){return(Ee=d(function*(ze){const ct=yield Me.call(this,ze);this.refs[ze]||(yield He.call(this,ct.$schema)),this.refs[ze]||this.addSchema(ct,ze,de)})).apply(this,arguments)}function Me(ze){return qe.apply(this,arguments)}function qe(){return(qe=d(function*(ze){const ct=this._loading[ze];if(ct)return ct;try{return yield this._loading[ze]=L(ze)}finally{delete this._loading[ze]}})).apply(this,arguments)}}addSchema(ye,de,L,Q=this.opts.validateSchema){if(Array.isArray(ye)){for(const He of ye)this.addSchema(He,void 0,L,Q);return this}let Te;if("object"==typeof ye){const{schemaId:He}=this.opts;if(Te=ye[He],void 0!==Te&&"string"!=typeof Te)throw new Error(`schema ${He} must be string`)}return de=(0,O.normalizeId)(de||Te),this._checkUnique(de),this.schemas[de]=this._addSchema(ye,L,de,Q,!0),this}addMetaSchema(ye,de,L=this.opts.validateSchema){return this.addSchema(ye,de,!0,L),this}validateSchema(ye,de){if("boolean"==typeof ye)return!0;let L;if(L=ye.$schema,void 0!==L&&"string"!=typeof L)throw new Error("$schema must be a string");if(L=L||this.opts.defaultMeta||this.defaultMeta(),!L)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const Q=this.validate(L,ye);if(!Q&&de){const Te="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(Te);this.logger.error(Te)}return Q}getSchema(ye){let de;for(;"string"==typeof(de=z.call(this,ye));)ye=de;if(void 0===de){const{schemaId:L}=this.opts,Q=new j.SchemaEnv({schema:{},schemaId:L});if(de=j.resolveSchema.call(this,Q,ye),!de)return;this.refs[ye]=de}return de.validate||this._compileSchemaEnv(de)}removeSchema(ye){if(ye instanceof RegExp)return this._removeAllSchemas(this.schemas,ye),this._removeAllSchemas(this.refs,ye),this;switch(typeof ye){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const de=z.call(this,ye);return"object"==typeof de&&this._cache.delete(de.schema),delete this.schemas[ye],delete this.refs[ye],this}case"object":{this._cache.delete(ye);let L=ye[this.opts.schemaId];return L&&(L=(0,O.normalizeId)(L),delete this.schemas[L],delete this.refs[L]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(ye){for(const de of ye)this.addKeyword(de);return this}addKeyword(ye,de){let L;if("string"==typeof ye)L=ye,"object"==typeof de&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),de.keyword=L);else{if("object"!=typeof ye||void 0!==de)throw new Error("invalid addKeywords parameters");if(L=(de=ye).keyword,Array.isArray(L)&&!L.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(vt.call(this,L,de),!de)return(0,S.eachItem)(L,Te=>Ct.call(this,Te)),this;Cn.call(this,de);const Q={...de,type:(0,C.getJSONTypes)(de.type),schemaType:(0,C.getJSONTypes)(de.schemaType)};return(0,S.eachItem)(L,0===Q.type.length?Te=>Ct.call(this,Te,Q):Te=>Q.type.forEach(He=>Ct.call(this,Te,Q,He))),this}getKeyword(ye){const de=this.RULES.all[ye];return"object"==typeof de?de.definition:!!de}removeKeyword(ye){const{RULES:de}=this;delete de.keywords[ye],delete de.all[ye];for(const L of de.rules){const Q=L.rules.findIndex(Te=>Te.keyword===ye);Q>=0&&L.rules.splice(Q,1)}return this}addFormat(ye,de){return"string"==typeof de&&(de=new RegExp(de)),this.formats[ye]=de,this}errorsText(ye=this.errors,{separator:de=", ",dataVar:L="data"}={}){return ye&&0!==ye.length?ye.map(Q=>`${L}${Q.instancePath} ${Q.message}`).reduce((Q,Te)=>Q+de+Te):"No errors"}$dataMetaSchema(ye,de){const L=this.RULES.all;ye=JSON.parse(JSON.stringify(ye));for(const Q of de){const Te=Q.split("/").slice(1);let He=ye;for(const it of Te)He=He[it];for(const it in L){const yt=L[it];if("object"!=typeof yt)continue;const{$data:Xt}=yt.definition,En=He[it];Xt&&En&&(He[it]=jn(En))}}return ye}_removeAllSchemas(ye,de){for(const L in ye){const Q=ye[L];(!de||de.test(L))&&("string"==typeof Q?delete ye[L]:Q&&!Q.meta&&(this._cache.delete(Q.schema),delete ye[L]))}}_addSchema(ye,de,L,Q=this.opts.validateSchema,Te=this.opts.addUsedSchema){let He;const{schemaId:it}=this.opts;if("object"==typeof ye)He=ye[it];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof ye)throw new Error("schema must be object or boolean")}let yt=this._cache.get(ye);if(void 0!==yt)return yt;L=(0,O.normalizeId)(He||L);const Xt=O.getSchemaRefs.call(this,ye,L);return yt=new j.SchemaEnv({schema:ye,schemaId:it,meta:de,baseId:L,localRefs:Xt}),this._cache.set(yt.schema,yt),Te&&!L.startsWith("#")&&(L&&this._checkUnique(L),this.refs[L]=yt),Q&&this.validateSchema(ye,!0),yt}_checkUnique(ye){if(this.schemas[ye]||this.refs[ye])throw new Error(`schema with key or id "${ye}" already exists`)}_compileSchemaEnv(ye){if(ye.meta?this._compileMetaSchema(ye):j.compileSchema.call(this,ye),!ye.validate)throw new Error("ajv implementation error");return ye.validate}_compileMetaSchema(ye){const de=this.opts;this.opts=this._metaOpts;try{j.compileSchema.call(this,ye)}finally{this.opts=de}}}function k(je,ye,de,L="error"){for(const Q in je)Q in ye&&this.logger[L](`${de}: option ${Q}. ${je[Q]}`)}function z(je){return je=(0,O.normalizeId)(je),this.schemas[je]||this.refs[je]}function J(){const je=this.opts.schemas;if(je)if(Array.isArray(je))this.addSchema(je);else for(const ye in je)this.addSchema(je[ye],ye)}function Re(){for(const je in this.opts.formats){const ye=this.opts.formats[je];ye&&this.addFormat(je,ye)}}function Pe(je){if(Array.isArray(je))this.addVocabulary(je);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const ye in je){const de=je[ye];de.keyword||(de.keyword=ye),this.addKeyword(de)}}}function Ve(){const je={...this.opts};for(const ye of Y)delete je[ye];return je}T.ValidationError=U.default,T.MissingRefError=G.default,g.default=T;const Fe={log(){},warn(){},error(){}},rt=/^[a-z_$][a-z0-9_$:-]*$/i;function vt(je,ye){const{RULES:de}=this;if((0,S.eachItem)(je,L=>{if(de.keywords[L])throw new Error(`Keyword ${L} is already defined`);if(!rt.test(L))throw new Error(`Keyword ${L} has invalid name`)}),ye&&ye.$data&&!("code"in ye)&&!("validate"in ye))throw new Error('$data keyword must have "code" or "validate" function')}function Ct(je,ye,de){var L;const Q=ye?.post;if(de&&Q)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:Te}=this;let He=Q?Te.post:Te.rules.find(({type:yt})=>yt===de);if(He||(He={type:de,rules:[]},Te.rules.push(He)),Te.keywords[je]=!0,!ye)return;const it={keyword:je,definition:{...ye,type:(0,C.getJSONTypes)(ye.type),schemaType:(0,C.getJSONTypes)(ye.schemaType)}};ye.before?Vt.call(this,He,it,ye.before):He.rules.push(it),Te.all[je]=it,null===(L=ye.implements)||void 0===L||L.forEach(yt=>this.addKeyword(yt))}function Vt(je,ye,de){const L=je.rules.findIndex(Q=>Q.keyword===de);L>=0?je.rules.splice(L,0,ye):(je.rules.push(ye),this.logger.warn(`rule ${de} is not defined`))}function Cn(je){let{metaSchema:ye}=je;void 0!==ye&&(je.$data&&this.opts.$data&&(ye=jn(ye)),je.validateSchema=this.compile(ye,!0))}const bt={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function jn(je){return{anyOf:[je,bt]}}},17155(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0});const d=R(68986);d.code='require("ajv/dist/runtime/equal").default',g.default=d},68946(Le,g){"use strict";function R(d){const V=d.length;let G,$=0,U=0;for(;U<V;)$++,G=d.charCodeAt(U++),G>=55296&&G<=56319&&U<V&&(G=d.charCodeAt(U),56320==(64512&G)&&U++);return $}Object.defineProperty(g,"__esModule",{value:!0}),g.default=R,R.code='require("ajv/dist/runtime/ucs2length").default'},67977(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0});const d=R(95484);d.code='require("ajv/dist/runtime/uri").default',g.default=d},46545(Le,g){"use strict";Object.defineProperty(g,"__esModule",{value:!0});class R extends Error{constructor(V){super("validation failed"),this.errors=V,this.ajv=this.validation=!0}}g.default=R},90932(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.validateAdditionalItems=void 0;const d=R(22984),V=R(73612),U={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:x}})=>d.str`must NOT have more than ${x} items`,params:({params:{len:x}})=>d._`{limit: ${x}}`},code(x){const{parentSchema:j,it:D}=x,{items:O}=j;Array.isArray(O)?G(x,O):(0,V.checkStrictMode)(D,'"additionalItems" is ignored when "items" is not an array of schemas')}};function G(x,j){const{gen:D,schema:O,data:C,keyword:S,it:M}=x;M.items=!0;const F=D.const("len",d._`${C}.length`);if(!1===O)x.setParams({len:j.length}),x.pass(d._`${F} <= ${j.length}`);else if("object"==typeof O&&!(0,V.alwaysValidSchema)(M,O)){const Y=D.var("valid",d._`${F} <= ${j.length}`);D.if((0,d.not)(Y),()=>function Z(Y){D.forRange("i",j.length,F,A=>{x.subschema({keyword:S,dataProp:A,dataPropType:V.Type.Num},Y),M.allErrors||D.if((0,d.not)(Y),()=>D.break())})}(Y)),x.ok(Y)}}g.validateAdditionalItems=G,g.default=U},72059(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0});const d=R(47904),V=R(22984),$=R(80794),U=R(73612);g.default={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:j})=>V._`{additionalProperty: ${j.additionalProperty}}`},code(j){const{gen:D,schema:O,parentSchema:C,data:S,errsCount:M,it:F}=j;if(!M)throw new Error("ajv implementation error");const{allErrors:Z,opts:Y}=F;if(F.props=!0,"all"!==Y.removeAdditional&&(0,U.alwaysValidSchema)(F,O))return;const A=(0,d.allSchemaProperties)(C.properties),v=(0,d.allSchemaProperties)(C.patternProperties);function w(z){D.code(V._`delete ${S}[${z}]`)}function T(z){if("all"===Y.removeAdditional||Y.removeAdditional&&!1===O)w(z);else{if(!1===O)return j.setParams({additionalProperty:z}),j.error(),void(Z||D.break());if("object"==typeof O&&!(0,U.alwaysValidSchema)(F,O)){const J=D.name("valid");"failing"===Y.removeAdditional?(k(z,J,!1),D.if((0,V.not)(J),()=>{j.reset(),w(z)})):(k(z,J),Z||D.if((0,V.not)(J),()=>D.break()))}}}function k(z,J,Re){const Pe={keyword:"additionalProperties",dataProp:z,dataPropType:U.Type.Str};!1===Re&&Object.assign(Pe,{compositeRule:!0,createErrors:!1,allErrors:!1}),j.subschema(Pe,J)}(function _(){D.forIn("key",S,z=>{A.length||v.length?D.if(function m(z){let J;if(A.length>8){const Re=(0,U.schemaRefOrVal)(F,C.properties,"properties");J=(0,d.isOwnProperty)(D,Re,z)}else J=A.length?(0,V.or)(...A.map(Re=>V._`${z} === ${Re}`)):V.nil;return v.length&&(J=(0,V.or)(J,...v.map(Re=>V._`${(0,d.usePattern)(j,Re)}.test(${z})`))),(0,V.not)(J)}(z),()=>T(z)):T(z)})})(),j.ok(V._`${M} === ${$.default.errors}`)}}},74153(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0});const d=R(73612);g.default={keyword:"allOf",schemaType:"array",code($){const{gen:U,schema:G,it:x}=$;if(!Array.isArray(G))throw new Error("ajv implementation error");const j=U.name("valid");G.forEach((D,O)=>{if((0,d.alwaysValidSchema)(x,D))return;const C=$.subschema({keyword:"allOf",schemaProp:O},j);$.ok(j),$.mergeEvaluated(C)})}}},72304(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0});const V={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:R(47904).validateUnion,error:{message:"must match a schema in anyOf"}};g.default=V},62210(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0});const d=R(22984),V=R(73612);g.default={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:G,max:x}})=>void 0===x?d.str`must contain at least ${G} valid item(s)`:d.str`must contain at least ${G} and no more than ${x} valid item(s)`,params:({params:{min:G,max:x}})=>void 0===x?d._`{minContains: ${G}}`:d._`{minContains: ${G}, maxContains: ${x}}`},code(G){const{gen:x,schema:j,parentSchema:D,data:O,it:C}=G;let S,M;const{minContains:F,maxContains:Z}=D;C.opts.next?(S=void 0===F?1:F,M=Z):S=1;const Y=x.const("len",d._`${O}.length`);if(G.setParams({min:S,max:M}),void 0===M&&0===S)return void(0,V.checkStrictMode)(C,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==M&&S>M)return(0,V.checkStrictMode)(C,'"minContains" > "maxContains" is always invalid'),void G.fail();if((0,V.alwaysValidSchema)(C,j)){let w=d._`${Y} >= ${S}`;return void 0!==M&&(w=d._`${w} && ${Y} <= ${M}`),void G.pass(w)}C.items=!0;const A=x.name("valid");function v(){const w=x.name("_valid"),T=x.let("count",0);_(w,()=>x.if(w,()=>function m(w){x.code(d._`${w}++`),void 0===M?x.if(d._`${w} >= ${S}`,()=>x.assign(A,!0).break()):(x.if(d._`${w} > ${M}`,()=>x.assign(A,!1).break()),1===S?x.assign(A,!0):x.if(d._`${w} >= ${S}`,()=>x.assign(A,!0)))}(T)))}function _(w,T){x.forRange("i",0,Y,k=>{G.subschema({keyword:"contains",dataProp:k,dataPropType:V.Type.Num,compositeRule:!0},w),T()})}void 0===M&&1===S?_(A,()=>x.if(A,()=>x.break())):0===S?(x.let(A,!0),void 0!==M&&x.if(d._`${O}.length > 0`,v)):(x.let(A,!1),v()),G.result(A,()=>G.reset())}}},69758(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.validateSchemaDeps=g.validatePropertyDeps=g.error=void 0;const d=R(22984),V=R(73612),$=R(47904);g.error={message:({params:{property:D,depsCount:O,deps:C}})=>d.str`must have ${1===O?"property":"properties"} ${C} when property ${D} is present`,params:({params:{property:D,depsCount:O,deps:C,missingProperty:S}})=>d._`{property: ${D},
5
- missingProperty: ${S},
6
- depsCount: ${O},
7
- deps: ${C}}`};const U={keyword:"dependencies",type:"object",schemaType:"object",error:g.error,code(D){const[O,C]=function G({schema:D}){const O={},C={};for(const S in D)"__proto__"!==S&&((Array.isArray(D[S])?O:C)[S]=D[S]);return[O,C]}(D);x(D,O),j(D,C)}};function x(D,O=D.schema){const{gen:C,data:S,it:M}=D;if(0===Object.keys(O).length)return;const F=C.let("missing");for(const Z in O){const Y=O[Z];if(0===Y.length)continue;const A=(0,$.propertyInData)(C,S,Z,M.opts.ownProperties);D.setParams({property:Z,depsCount:Y.length,deps:Y.join(", ")}),M.allErrors?C.if(A,()=>{for(const v of Y)(0,$.checkReportMissingProp)(D,v)}):(C.if(d._`${A} && (${(0,$.checkMissingProp)(D,Y,F)})`),(0,$.reportMissingProp)(D,F),C.else())}}function j(D,O=D.schema){const{gen:C,data:S,keyword:M,it:F}=D,Z=C.name("valid");for(const Y in O)(0,V.alwaysValidSchema)(F,O[Y])||(C.if((0,$.propertyInData)(C,S,Y,F.opts.ownProperties),()=>{const A=D.subschema({keyword:M,schemaProp:Y},Z);D.mergeValidEvaluated(A,Z)},()=>C.var(Z,!0)),D.ok(Z))}g.validatePropertyDeps=x,g.validateSchemaDeps=j,g.default=U},65388(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0});const d=R(22984),V=R(73612);function G(x,j){const D=x.schema[j];return void 0!==D&&!(0,V.alwaysValidSchema)(x,D)}g.default={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:x})=>d.str`must match "${x.ifClause}" schema`,params:({params:x})=>d._`{failingKeyword: ${x.ifClause}}`},code(x){const{gen:j,parentSchema:D,it:O}=x;void 0===D.then&&void 0===D.else&&(0,V.checkStrictMode)(O,'"if" without "then" and "else" is ignored');const C=G(O,"then"),S=G(O,"else");if(!C&&!S)return;const M=j.let("valid",!0),F=j.name("_valid");if(function Z(){const A=x.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},F);x.mergeEvaluated(A)}(),x.reset(),C&&S){const A=j.let("ifClause");x.setParams({ifClause:A}),j.if(F,Y("then",A),Y("else",A))}else C?j.if(F,Y("then")):j.if((0,d.not)(F),Y("else"));function Y(A,v){return()=>{const _=x.subschema({keyword:A},F);j.assign(M,F),x.mergeValidEvaluated(_,M),v?j.assign(v,d._`${A}`):x.setParams({ifClause:A})}}x.pass(M,()=>x.error(!0))}}},38643(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0});const d=R(90932),V=R(38575),$=R(7579),U=R(49739),G=R(62210),x=R(69758),j=R(87920),D=R(72059),O=R(14662),C=R(3324),S=R(83402),M=R(72304),F=R(98374),Z=R(74153),Y=R(65388),A=R(88809);g.default=function v(_=!1){const m=[S.default,M.default,F.default,Z.default,Y.default,A.default,j.default,D.default,x.default,O.default,C.default];return _?m.push(V.default,U.default):m.push(d.default,$.default),m.push(G.default),m}},7579(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.validateTuple=void 0;const d=R(22984),V=R(73612),$=R(47904),U={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(x){const{schema:j,it:D}=x;if(Array.isArray(j))return G(x,"additionalItems",j);D.items=!0,!(0,V.alwaysValidSchema)(D,j)&&x.ok((0,$.validateArray)(x))}};function G(x,j,D=x.schema){const{gen:O,parentSchema:C,data:S,keyword:M,it:F}=x;(function A(v){const{opts:_,errSchemaPath:m}=F,w=D.length;_.strictTuples&&!(w===v.minItems&&(w===v.maxItems||!1===v[j]))&&(0,V.checkStrictMode)(F,`"${M}" is ${w}-tuple, but minItems or maxItems/${j} are not specified or different at path "${m}"`,_.strictTuples)})(C),F.opts.unevaluated&&D.length&&!0!==F.items&&(F.items=V.mergeEvaluated.items(O,D.length,F.items));const Z=O.name("valid"),Y=O.const("len",d._`${S}.length`);D.forEach((v,_)=>{(0,V.alwaysValidSchema)(F,v)||(O.if(d._`${Y} > ${_}`,()=>x.subschema({keyword:M,schemaProp:_,dataProp:_},Z)),x.ok(Z))})}g.validateTuple=G,g.default=U},49739(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0});const d=R(22984),V=R(73612),$=R(47904),U=R(90932);g.default={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:j}})=>d.str`must NOT have more than ${j} items`,params:({params:{len:j}})=>d._`{limit: ${j}}`},code(j){const{schema:D,parentSchema:O,it:C}=j,{prefixItems:S}=O;C.items=!0,!(0,V.alwaysValidSchema)(C,D)&&(S?(0,U.validateAdditionalItems)(j,S):j.ok((0,$.validateArray)(j)))}}},83402(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0});const d=R(73612);g.default={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code($){const{gen:U,schema:G,it:x}=$;if((0,d.alwaysValidSchema)(x,G))return void $.fail();const j=U.name("valid");$.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},j),$.failResult(j,()=>$.reset(),()=>$.error())},error:{message:"must NOT be valid"}}},98374(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0});const d=R(22984),V=R(73612);g.default={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:G})=>d._`{passingSchemas: ${G.passing}}`},code(G){const{gen:x,schema:j,parentSchema:D,it:O}=G;if(!Array.isArray(j))throw new Error("ajv implementation error");if(O.opts.discriminator&&D.discriminator)return;const C=j,S=x.let("valid",!1),M=x.let("passing",null),F=x.name("_valid");G.setParams({passing:M}),x.block(function Z(){C.forEach((Y,A)=>{let v;(0,V.alwaysValidSchema)(O,Y)?x.var(F,!0):v=G.subschema({keyword:"oneOf",schemaProp:A,compositeRule:!0},F),A>0&&x.if(d._`${F} && ${S}`).assign(S,!1).assign(M,d._`[${M}, ${A}]`).else(),x.if(F,()=>{x.assign(S,!0),x.assign(M,A),v&&G.mergeEvaluated(v,d.Name)})})}),G.result(S,()=>G.reset(),()=>G.error(!0))}}},3324(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0});const d=R(47904),V=R(22984),$=R(73612),U=R(73612);g.default={keyword:"patternProperties",type:"object",schemaType:"object",code(x){const{gen:j,schema:D,data:O,parentSchema:C,it:S}=x,{opts:M}=S,F=(0,d.allSchemaProperties)(D),Z=F.filter(T=>(0,$.alwaysValidSchema)(S,D[T]));if(0===F.length||Z.length===F.length&&(!S.opts.unevaluated||!0===S.props))return;const Y=M.strictSchema&&!M.allowMatchingProperties&&C.properties,A=j.name("valid");!0!==S.props&&!(S.props instanceof V.Name)&&(S.props=(0,U.evaluatedPropsToName)(j,S.props));const{props:v}=S;function m(T){for(const k in Y)new RegExp(T).test(k)&&(0,$.checkStrictMode)(S,`property ${k} matches pattern ${T} (use allowMatchingProperties)`)}function w(T){j.forIn("key",O,k=>{j.if(V._`${(0,d.usePattern)(x,T)}.test(${k})`,()=>{const z=Z.includes(T);z||x.subschema({keyword:"patternProperties",schemaProp:T,dataProp:k,dataPropType:U.Type.Str},A),S.opts.unevaluated&&!0!==v?j.assign(V._`${v}[${k}]`,!0):!z&&!S.allErrors&&j.if((0,V.not)(A),()=>j.break())})})}!function _(){for(const T of F)Y&&m(T),S.allErrors?w(T):(j.var(A,!0),w(T),j.if(A))}()}}},38575(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0});const d=R(7579);g.default={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:$=>(0,d.validateTuple)($,"items")}},14662(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0});const d=R(99141),V=R(47904),$=R(73612),U=R(72059);g.default={keyword:"properties",type:"object",schemaType:"object",code(x){const{gen:j,schema:D,parentSchema:O,data:C,it:S}=x;"all"===S.opts.removeAdditional&&void 0===O.additionalProperties&&U.default.code(new d.KeywordCxt(S,U.default,"additionalProperties"));const M=(0,V.allSchemaProperties)(D);for(const v of M)S.definedProperties.add(v);S.opts.unevaluated&&M.length&&!0!==S.props&&(S.props=$.mergeEvaluated.props(j,(0,$.toHash)(M),S.props));const F=M.filter(v=>!(0,$.alwaysValidSchema)(S,D[v]));if(0===F.length)return;const Z=j.name("valid");for(const v of F)Y(v)?A(v):(j.if((0,V.propertyInData)(j,C,v,S.opts.ownProperties)),A(v),S.allErrors||j.else().var(Z,!0),j.endIf()),x.it.definedProperties.add(v),x.ok(Z);function Y(v){return S.opts.useDefaults&&!S.compositeRule&&void 0!==D[v].default}function A(v){x.subschema({keyword:"properties",schemaProp:v,dataProp:v},Z)}}}},87920(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0});const d=R(22984),V=R(73612);g.default={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:G})=>d._`{propertyName: ${G.propertyName}}`},code(G){const{gen:x,schema:j,data:D,it:O}=G;if((0,V.alwaysValidSchema)(O,j))return;const C=x.name("valid");x.forIn("key",D,S=>{G.setParams({propertyName:S}),G.subschema({keyword:"propertyNames",data:S,dataTypes:["string"],propertyName:S,compositeRule:!0},C),x.if((0,d.not)(C),()=>{G.error(!0),O.allErrors||x.break()})}),G.ok(C)}}},88809(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0});const d=R(73612);g.default={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:$,parentSchema:U,it:G}){void 0===U.if&&(0,d.checkStrictMode)(G,`"${$}" without "if" is ignored`)}}},47904(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.validateUnion=g.validateArray=g.usePattern=g.callValidateCode=g.schemaProperties=g.allSchemaProperties=g.noPropertyInData=g.propertyInData=g.isOwnProperty=g.hasPropFunc=g.reportMissingProp=g.checkMissingProp=g.checkReportMissingProp=void 0;const d=R(22984),V=R(73612),$=R(80794),U=R(73612);function D(m){return m.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:d._`Object.prototype.hasOwnProperty`})}function O(m,w,T){return d._`${D(m)}.call(${w}, ${T})`}function S(m,w,T,k){const z=d._`${w}${(0,d.getProperty)(T)} === undefined`;return k?(0,d.or)(z,(0,d.not)(O(m,w,T))):z}function M(m){return m?Object.keys(m).filter(w=>"__proto__"!==w):[]}g.checkReportMissingProp=function G(m,w){const{gen:T,data:k,it:z}=m;T.if(S(T,k,w,z.opts.ownProperties),()=>{m.setParams({missingProperty:d._`${w}`},!0),m.error()})},g.checkMissingProp=function x({gen:m,data:w,it:{opts:T}},k,z){return(0,d.or)(...k.map(J=>(0,d.and)(S(m,w,J,T.ownProperties),d._`${z} = ${J}`)))},g.reportMissingProp=function j(m,w){m.setParams({missingProperty:w},!0),m.error()},g.hasPropFunc=D,g.isOwnProperty=O,g.propertyInData=function C(m,w,T,k){const z=d._`${w}${(0,d.getProperty)(T)} !== undefined`;return k?d._`${z} && ${O(m,w,T)}`:z},g.noPropertyInData=S,g.allSchemaProperties=M,g.schemaProperties=function F(m,w){return M(w).filter(T=>!(0,V.alwaysValidSchema)(m,w[T]))},g.callValidateCode=function Z({schemaCode:m,data:w,it:{gen:T,topSchemaRef:k,schemaPath:z,errorPath:J},it:Re},Pe,Ve,Fe){const Je=Fe?d._`${m}, ${w}, ${k}${z}`:w,rt=[[$.default.instancePath,(0,d.strConcat)($.default.instancePath,J)],[$.default.parentData,Re.parentData],[$.default.parentDataProperty,Re.parentDataProperty],[$.default.rootData,$.default.rootData]];Re.opts.dynamicRef&&rt.push([$.default.dynamicAnchors,$.default.dynamicAnchors]);const vt=d._`${Je}, ${T.object(...rt)}`;return Ve!==d.nil?d._`${Pe}.call(${Ve}, ${vt})`:d._`${Pe}(${vt})`};const Y=d._`new RegExp`;g.usePattern=function A({gen:m,it:{opts:w}},T){const k=w.unicodeRegExp?"u":"",{regExp:z}=w.code,J=z(T,k);return m.scopeValue("pattern",{key:J.toString(),ref:J,code:d._`${"new RegExp"===z.code?Y:(0,U.useFunc)(m,z)}(${T}, ${k})`})},g.validateArray=function v(m){const{gen:w,data:T,keyword:k,it:z}=m,J=w.name("valid");if(z.allErrors){const Pe=w.let("valid",!0);return Re(()=>w.assign(Pe,!1)),Pe}return w.var(J,!0),Re(()=>w.break()),J;function Re(Pe){const Ve=w.const("len",d._`${T}.length`);w.forRange("i",0,Ve,Fe=>{m.subschema({keyword:k,dataProp:Fe,dataPropType:V.Type.Num},J),w.if((0,d.not)(J),Pe)})}},g.validateUnion=function _(m){const{gen:w,schema:T,keyword:k,it:z}=m;if(!Array.isArray(T))throw new Error("ajv implementation error");if(T.some(Ve=>(0,V.alwaysValidSchema)(z,Ve))&&!z.opts.unevaluated)return;const Re=w.let("valid",!1),Pe=w.name("_valid");w.block(()=>T.forEach((Ve,Fe)=>{const Je=m.subschema({keyword:k,schemaProp:Fe,compositeRule:!0},Pe);w.assign(Re,d._`${Re} || ${Pe}`),m.mergeValidEvaluated(Je,Pe)||w.if((0,d.not)(Re))})),m.result(Re,()=>m.reset(),()=>m.error(!0))}},48396(Le,g){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.default={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}}},51945(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0});const d=R(48396),V=R(2368);g.default=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",d.default,V.default]},2368(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.callRef=g.getValidate=void 0;const d=R(56798),V=R(47904),$=R(22984),U=R(80794),G=R(95938),x=R(73612),j={keyword:"$ref",schemaType:"string",code(C){const{gen:S,schema:M,it:F}=C,{baseId:Z,schemaEnv:Y,validateName:A,opts:v,self:_}=F,{root:m}=Y;if(("#"===M||"#/"===M)&&Z===m.baseId)return function T(){if(Y===m)return O(C,A,Y,Y.$async);const J=S.scopeValue("root",{ref:m});return O(C,$._`${J}.validate`,m,m.$async)}();const w=G.resolveRef.call(_,m,Z,M);if(void 0===w)throw new d.default(F.opts.uriResolver,Z,M);return w instanceof G.SchemaEnv?function k(J){const Re=D(C,J);O(C,Re,J,J.$async)}(w):function z(J){const Re=S.scopeValue("schema",!0===v.code.source?{ref:J,code:(0,$.stringify)(J)}:{ref:J}),Pe=S.name("valid"),Ve=C.subschema({schema:J,dataTypes:[],schemaPath:$.nil,topSchemaRef:Re,errSchemaPath:M},Pe);C.mergeEvaluated(Ve),C.ok(Pe)}(w)}};function D(C,S){const{gen:M}=C;return S.validate?M.scopeValue("validate",{ref:S.validate}):$._`${M.scopeValue("wrapper",{ref:S})}.validate`}function O(C,S,M,F){const{gen:Z,it:Y}=C,{allErrors:A,schemaEnv:v,opts:_}=Y,m=_.passContext?U.default.this:$.nil;function k(J){const Re=$._`${J}.errors`;Z.assign(U.default.vErrors,$._`${U.default.vErrors} === null ? ${Re} : ${U.default.vErrors}.concat(${Re})`),Z.assign(U.default.errors,$._`${U.default.vErrors}.length`)}function z(J){var Re;if(!Y.opts.unevaluated)return;const Pe=null===(Re=M?.validate)||void 0===Re?void 0:Re.evaluated;if(!0!==Y.props)if(Pe&&!Pe.dynamicProps)void 0!==Pe.props&&(Y.props=x.mergeEvaluated.props(Z,Pe.props,Y.props));else{const Ve=Z.var("props",$._`${J}.evaluated.props`);Y.props=x.mergeEvaluated.props(Z,Ve,Y.props,$.Name)}if(!0!==Y.items)if(Pe&&!Pe.dynamicItems)void 0!==Pe.items&&(Y.items=x.mergeEvaluated.items(Z,Pe.items,Y.items));else{const Ve=Z.var("items",$._`${J}.evaluated.items`);Y.items=x.mergeEvaluated.items(Z,Ve,Y.items,$.Name)}}F?function w(){if(!v.$async)throw new Error("async schema referenced by sync schema");const J=Z.let("valid");Z.try(()=>{Z.code($._`await ${(0,V.callValidateCode)(C,S,m)}`),z(S),A||Z.assign(J,!0)},Re=>{Z.if($._`!(${Re} instanceof ${Y.ValidationError})`,()=>Z.throw(Re)),k(Re),A||Z.assign(J,!1)}),C.ok(J)}():function T(){C.result((0,V.callValidateCode)(C,S,m),()=>z(S),()=>k(S))}()}g.getValidate=D,g.callRef=O,g.default=j},95962(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0});const d=R(22984),V=R(15031),$=R(95938),U=R(56798),G=R(73612);g.default={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:D,tagName:O}})=>D===V.DiscrError.Tag?`tag "${O}" must be string`:`value of tag "${O}" must be in oneOf`,params:({params:{discrError:D,tag:O,tagName:C}})=>d._`{error: ${D}, tag: ${C}, tagValue: ${O}}`},code(D){const{gen:O,data:C,schema:S,parentSchema:M,it:F}=D,{oneOf:Z}=M;if(!F.opts.discriminator)throw new Error("discriminator: requires discriminator option");const Y=S.propertyName;if("string"!=typeof Y)throw new Error("discriminator: requires propertyName");if(S.mapping)throw new Error("discriminator: mapping is not supported");if(!Z)throw new Error("discriminator: requires oneOf keyword");const A=O.let("valid",!1),v=O.const("tag",d._`${C}${(0,d.getProperty)(Y)}`);function m(T){const k=O.name("valid"),z=D.subschema({keyword:"oneOf",schemaProp:T},k);return D.mergeEvaluated(z,d.Name),k}O.if(d._`typeof ${v} == "string"`,()=>function _(){const T=function w(){var T;const k={},z=Re(M);let J=!0;for(let Fe=0;Fe<Z.length;Fe++){let Je=Z[Fe];if(Je?.$ref&&!(0,G.schemaHasRulesButRef)(Je,F.self.RULES)){const vt=Je.$ref;if(Je=$.resolveRef.call(F.self,F.schemaEnv.root,F.baseId,vt),Je instanceof $.SchemaEnv&&(Je=Je.schema),void 0===Je)throw new U.default(F.opts.uriResolver,F.baseId,vt)}const rt=null===(T=Je?.properties)||void 0===T?void 0:T[Y];if("object"!=typeof rt)throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${Y}"`);J=J&&(z||Re(Je)),Pe(rt,Fe)}if(!J)throw new Error(`discriminator: "${Y}" must be required`);return k;function Re({required:Fe}){return Array.isArray(Fe)&&Fe.includes(Y)}function Pe(Fe,Je){if(Fe.const)Ve(Fe.const,Je);else{if(!Fe.enum)throw new Error(`discriminator: "properties/${Y}" must have "const" or "enum"`);for(const rt of Fe.enum)Ve(rt,Je)}}function Ve(Fe,Je){if("string"!=typeof Fe||Fe in k)throw new Error(`discriminator: "${Y}" values must be unique strings`);k[Fe]=Je}}();O.if(!1);for(const k in T)O.elseIf(d._`${v} === ${k}`),O.assign(A,m(T[k]));O.else(),D.error(!1,{discrError:V.DiscrError.Mapping,tag:v,tagName:Y}),O.endIf()}(),()=>D.error(!1,{discrError:V.DiscrError.Tag,tag:v,tagName:Y})),D.ok(A)}}},15031(Le,g){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.DiscrError=void 0;var R=function(d){return d.Tag="tag",d.Mapping="mapping",d}(R||(g.DiscrError=R={}))},94505(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0});const d=R(51945),V=R(96845),$=R(38643),U=R(21901),G=R(60680),x=[d.default,V.default,(0,$.default)(),U.default,G.metadataVocabulary,G.contentVocabulary];g.default=x},84326(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0});const d=R(22984);g.default={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:U})=>d.str`must match format "${U}"`,params:({schemaCode:U})=>d._`{format: ${U}}`},code(U,G){const{gen:x,data:j,$data:D,schema:O,schemaCode:C,it:S}=U,{opts:M,errSchemaPath:F,schemaEnv:Z,self:Y}=S;M.validateFormats&&(D?function A(){const _=x.scopeValue("formats",{ref:Y.formats,code:M.code.formats}),m=x.const("fDef",d._`${_}[${C}]`),w=x.let("fType"),T=x.let("format");x.if(d._`typeof ${m} == "object" && !(${m} instanceof RegExp)`,()=>x.assign(w,d._`${m}.type || "string"`).assign(T,d._`${m}.validate`),()=>x.assign(w,d._`"string"`).assign(T,m)),U.fail$data((0,d.or)(function k(){return!1===M.strictSchema?d.nil:d._`${C} && !${T}`}(),function z(){const J=Z.$async?d._`(${m}.async ? await ${T}(${j}) : ${T}(${j}))`:d._`${T}(${j})`,Re=d._`(typeof ${T} == "function" ? ${J} : ${T}.test(${j}))`;return d._`${T} && ${T} !== true && ${w} === ${G} && !${Re}`}()))}():function v(){const _=Y.formats[O];if(!_)return void function k(){if(!1!==M.strictSchema)throw new Error(Re());function Re(){return`unknown format "${O}" ignored in schema at path "${F}"`}Y.logger.warn(Re())}();if(!0===_)return;const[m,w,T]=function z(Re){const Pe=Re instanceof RegExp?(0,d.regexpCode)(Re):M.code.formats?d._`${M.code.formats}${(0,d.getProperty)(O)}`:void 0,Ve=x.scopeValue("formats",{key:O,ref:Re,code:Pe});return"object"!=typeof Re||Re instanceof RegExp?["string",Re,Ve]:[Re.type||"string",Re.validate,d._`${Ve}.validate`]}(_);m===G&&U.pass(function J(){if("object"==typeof _&&!(_ instanceof RegExp)&&_.async){if(!Z.$async)throw new Error("async format in sync schema");return d._`await ${T}(${j})`}return"function"==typeof w?d._`${T}(${j})`:d._`${T}.test(${j})`}())}())}}},21901(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0});const V=[R(84326).default];g.default=V},60680(Le,g){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.contentVocabulary=g.metadataVocabulary=void 0,g.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],g.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},49870(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0});const d=R(22984),V=R(73612),$=R(17155);g.default={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:x})=>d._`{allowedValue: ${x}}`},code(x){const{gen:j,data:D,$data:O,schemaCode:C,schema:S}=x;O||S&&"object"==typeof S?x.fail$data(d._`!${(0,V.useFunc)(j,$.default)}(${D}, ${C})`):x.fail(d._`${S} !== ${D}`)}}},70708(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0});const d=R(22984),V=R(73612),$=R(17155);g.default={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:x})=>d._`{allowedValues: ${x}}`},code(x){const{gen:j,data:D,$data:O,schema:C,schemaCode:S,it:M}=x;if(!O&&0===C.length)throw new Error("enum must have non-empty array");let Z;const Y=()=>Z??(Z=(0,V.useFunc)(j,$.default));let A;if(C.length>=M.opts.loopEnum||O)A=j.let("valid"),x.block$data(A,function v(){j.assign(A,!1),j.forOf("v",S,m=>j.if(d._`${Y()}(${D}, ${m})`,()=>j.assign(A,!0).break()))});else{if(!Array.isArray(C))throw new Error("ajv implementation error");const m=j.const("vSchema",S);A=(0,d.or)(...C.map((w,T)=>function _(m,w){const T=C[w];return"object"==typeof T&&null!==T?d._`${Y()}(${D}, ${m}[${w}])`:d._`${D} === ${T}`}(m,T)))}x.pass(A)}}},96845(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0});const d=R(72255),V=R(44696),$=R(1278),U=R(75363),G=R(17987),x=R(90620),j=R(75692),D=R(12112),O=R(49870),C=R(70708);g.default=[d.default,V.default,$.default,U.default,G.default,x.default,j.default,D.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},O.default,C.default]},75692(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0});const d=R(22984);g.default={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message:({keyword:U,schemaCode:G})=>d.str`must NOT have ${"maxItems"===U?"more":"fewer"} than ${G} items`,params:({schemaCode:U})=>d._`{limit: ${U}}`},code(U){const{keyword:G,data:x,schemaCode:j}=U;U.fail$data(d._`${x}.length ${"maxItems"===G?d.operators.GT:d.operators.LT} ${j}`)}}},1278(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0});const d=R(22984),V=R(73612),$=R(68946);g.default={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message:({keyword:x,schemaCode:j})=>d.str`must NOT have ${"maxLength"===x?"more":"fewer"} than ${j} characters`,params:({schemaCode:x})=>d._`{limit: ${x}}`},code(x){const{keyword:j,data:D,schemaCode:O,it:C}=x,S="maxLength"===j?d.operators.GT:d.operators.LT,M=!1===C.opts.unicode?d._`${D}.length`:d._`${(0,V.useFunc)(x.gen,$.default)}(${D})`;x.fail$data(d._`${M} ${S} ${O}`)}}},72255(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0});const d=R(22984),V=d.operators,$={maximum:{okStr:"<=",ok:V.LTE,fail:V.GT},minimum:{okStr:">=",ok:V.GTE,fail:V.LT},exclusiveMaximum:{okStr:"<",ok:V.LT,fail:V.GTE},exclusiveMinimum:{okStr:">",ok:V.GT,fail:V.LTE}},U={message:({keyword:x,schemaCode:j})=>d.str`must be ${$[x].okStr} ${j}`,params:({keyword:x,schemaCode:j})=>d._`{comparison: ${$[x].okStr}, limit: ${j}}`},G={keyword:Object.keys($),type:"number",schemaType:"number",$data:!0,error:U,code(x){const{keyword:j,data:D,schemaCode:O}=x;x.fail$data(d._`${D} ${$[j].fail} ${O} || isNaN(${D})`)}};g.default=G},17987(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0});const d=R(22984);g.default={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message:({keyword:U,schemaCode:G})=>d.str`must NOT have ${"maxProperties"===U?"more":"fewer"} than ${G} properties`,params:({schemaCode:U})=>d._`{limit: ${U}}`},code(U){const{keyword:G,data:x,schemaCode:j}=U;U.fail$data(d._`Object.keys(${x}).length ${"maxProperties"===G?d.operators.GT:d.operators.LT} ${j}`)}}},44696(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0});const d=R(22984);g.default={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:U})=>d.str`must be multiple of ${U}`,params:({schemaCode:U})=>d._`{multipleOf: ${U}}`},code(U){const{gen:G,data:x,schemaCode:j,it:D}=U,O=D.opts.multipleOfPrecision,C=G.let("res"),S=O?d._`Math.abs(Math.round(${C}) - ${C}) > 1e-${O}`:d._`${C} !== parseInt(${C})`;U.fail$data(d._`(${j} === 0 || (${C} = ${x}/${j}, ${S}))`)}}},75363(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0});const d=R(47904),V=R(22984);g.default={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:G})=>V.str`must match pattern "${G}"`,params:({schemaCode:G})=>V._`{pattern: ${G}}`},code(G){const{data:x,$data:j,schema:D,schemaCode:O,it:C}=G,M=j?V._`(new RegExp(${O}, ${C.opts.unicodeRegExp?"u":""}))`:(0,d.usePattern)(G,D);G.fail$data(V._`!${M}.test(${x})`)}}},90620(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0});const d=R(47904),V=R(22984),$=R(73612);g.default={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:x}})=>V.str`must have required property '${x}'`,params:({params:{missingProperty:x}})=>V._`{missingProperty: ${x}}`},code(x){const{gen:j,schema:D,schemaCode:O,data:C,$data:S,it:M}=x,{opts:F}=M;if(!S&&0===D.length)return;const Z=D.length>=F.loopRequired;if(M.allErrors?function Y(){if(Z||S)x.block$data(V.nil,v);else for(const m of D)(0,d.checkReportMissingProp)(x,m)}():function A(){const m=j.let("missing");if(Z||S){const w=j.let("valid",!0);x.block$data(w,()=>function _(m,w){x.setParams({missingProperty:m}),j.forOf(m,O,()=>{j.assign(w,(0,d.propertyInData)(j,C,m,F.ownProperties)),j.if((0,V.not)(w),()=>{x.error(),j.break()})},V.nil)}(m,w)),x.ok(w)}else j.if((0,d.checkMissingProp)(x,D,m)),(0,d.reportMissingProp)(x,m),j.else()}(),F.strictRequired){const m=x.parentSchema.properties,{definedProperties:w}=x.it;for(const T of D)void 0!==m?.[T]||w.has(T)||(0,$.checkStrictMode)(M,`required property "${T}" is not defined at "${M.schemaEnv.baseId+M.errSchemaPath}" (strictRequired)`,M.opts.strictRequired)}function v(){j.forOf("prop",O,m=>{x.setParams({missingProperty:m}),j.if((0,d.noPropertyInData)(j,C,m,F.ownProperties),()=>x.error())})}}}},12112(Le,g,R){"use strict";Object.defineProperty(g,"__esModule",{value:!0});const d=R(97465),V=R(22984),$=R(73612),U=R(17155);g.default={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:j,j:D}})=>V.str`must NOT have duplicate items (items ## ${D} and ${j} are identical)`,params:({params:{i:j,j:D}})=>V._`{i: ${j}, j: ${D}}`},code(j){const{gen:D,data:O,$data:C,schema:S,parentSchema:M,schemaCode:F,it:Z}=j;if(!C&&!S)return;const Y=D.let("valid"),A=M.items?(0,d.getSchemaTypes)(M.items):[];function m(T,k){const z=D.name("item"),J=(0,d.checkDataTypes)(A,z,Z.opts.strictNumbers,d.DataType.Wrong),Re=D.const("indices",V._`{}`);D.for(V._`;${T}--;`,()=>{D.let(z,V._`${O}[${T}]`),D.if(J,V._`continue`),A.length>1&&D.if(V._`typeof ${z} == "string"`,V._`${z} += "_"`),D.if(V._`typeof ${Re}[${z}] == "number"`,()=>{D.assign(k,V._`${Re}[${z}]`),j.error(),D.assign(Y,!1).break()}).code(V._`${Re}[${z}] = ${T}`)})}function w(T,k){const z=(0,$.useFunc)(D,U.default),J=D.name("outer");D.label(J).for(V._`;${T}--;`,()=>D.for(V._`${k} = ${T}; ${k}--;`,()=>D.if(V._`${z}(${O}[${T}], ${O}[${k}])`,()=>{j.error(),D.assign(Y,!1).break(J)})))}j.block$data(Y,function v(){const T=D.let("i",V._`${O}.length`),k=D.let("j");j.setParams({i:T,j:k}),D.assign(Y,!0),D.if(V._`${T} > 1`,()=>(function _(){return A.length>0&&!A.some(T=>"object"===T||"array"===T)}()?m:w)(T,k))},V._`${F} === false`),j.ok(Y)}}},68986(Le){"use strict";Le.exports=function g(R,d){if(R===d)return!0;if(R&&d&&"object"==typeof R&&"object"==typeof d){if(R.constructor!==d.constructor)return!1;var V,$,U;if(Array.isArray(R)){if((V=R.length)!=d.length)return!1;for($=V;0!==$--;)if(!g(R[$],d[$]))return!1;return!0}if(R.constructor===RegExp)return R.source===d.source&&R.flags===d.flags;if(R.valueOf!==Object.prototype.valueOf)return R.valueOf()===d.valueOf();if(R.toString!==Object.prototype.toString)return R.toString()===d.toString();if((V=(U=Object.keys(R)).length)!==Object.keys(d).length)return!1;for($=V;0!==$--;)if(!Object.prototype.hasOwnProperty.call(d,U[$]))return!1;for($=V;0!==$--;){var G=U[$];if(!g(R[G],d[G]))return!1}return!0}return R!=R&&d!=d}},97915(Le){"use strict";var g=Le.exports=function(V,$,U){"function"==typeof $&&(U=$,$={}),R($,"function"==typeof(U=$.cb||U)?U:U.pre||function(){},U.post||function(){},V,"",V)};function R(V,$,U,G,x,j,D,O,C,S){if(G&&"object"==typeof G&&!Array.isArray(G)){for(var M in $(G,x,j,D,O,C,S),G){var F=G[M];if(Array.isArray(F)){if(M in g.arrayKeywords)for(var Z=0;Z<F.length;Z++)R(V,$,U,F[Z],x+"/"+M+"/"+Z,j,x,M,G,Z)}else if(M in g.propsKeywords){if(F&&"object"==typeof F)for(var Y in F)R(V,$,U,F[Y],x+"/"+M+"/"+d(Y),j,x,M,G,Y)}else(M in g.keywords||V.allKeys&&!(M in g.skipKeywords))&&R(V,$,U,F,x+"/"+M,j,x,M,G)}U(G,x,j,D,O,C,S)}}function d(V){return V.replace(/~/g,"~0").replace(/\//g,"~1")}g.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},g.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},g.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},g.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0}},94556(Le){Le.exports=function(){"use strict";var d=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function $(A,v){var _=A[0],m=A[1],w=A[2],T=A[3];m=((m+=((w=((w+=((T=((T+=((_=((_+=(m&w|~m&T)+v[0]-680876936|0)<<7|_>>>25)+m|0)&m|~_&w)+v[1]-389564586|0)<<12|T>>>20)+_|0)&_|~T&m)+v[2]+606105819|0)<<17|w>>>15)+T|0)&T|~w&_)+v[3]-1044525330|0)<<22|m>>>10)+w|0,m=((m+=((w=((w+=((T=((T+=((_=((_+=(m&w|~m&T)+v[4]-176418897|0)<<7|_>>>25)+m|0)&m|~_&w)+v[5]+1200080426|0)<<12|T>>>20)+_|0)&_|~T&m)+v[6]-1473231341|0)<<17|w>>>15)+T|0)&T|~w&_)+v[7]-45705983|0)<<22|m>>>10)+w|0,m=((m+=((w=((w+=((T=((T+=((_=((_+=(m&w|~m&T)+v[8]+1770035416|0)<<7|_>>>25)+m|0)&m|~_&w)+v[9]-1958414417|0)<<12|T>>>20)+_|0)&_|~T&m)+v[10]-42063|0)<<17|w>>>15)+T|0)&T|~w&_)+v[11]-1990404162|0)<<22|m>>>10)+w|0,m=((m+=((w=((w+=((T=((T+=((_=((_+=(m&w|~m&T)+v[12]+1804603682|0)<<7|_>>>25)+m|0)&m|~_&w)+v[13]-40341101|0)<<12|T>>>20)+_|0)&_|~T&m)+v[14]-1502002290|0)<<17|w>>>15)+T|0)&T|~w&_)+v[15]+1236535329|0)<<22|m>>>10)+w|0,m=((m+=((w=((w+=((T=((T+=((_=((_+=(m&T|w&~T)+v[1]-165796510|0)<<5|_>>>27)+m|0)&w|m&~w)+v[6]-1069501632|0)<<9|T>>>23)+_|0)&m|_&~m)+v[11]+643717713|0)<<14|w>>>18)+T|0)&_|T&~_)+v[0]-373897302|0)<<20|m>>>12)+w|0,m=((m+=((w=((w+=((T=((T+=((_=((_+=(m&T|w&~T)+v[5]-701558691|0)<<5|_>>>27)+m|0)&w|m&~w)+v[10]+38016083|0)<<9|T>>>23)+_|0)&m|_&~m)+v[15]-660478335|0)<<14|w>>>18)+T|0)&_|T&~_)+v[4]-405537848|0)<<20|m>>>12)+w|0,m=((m+=((w=((w+=((T=((T+=((_=((_+=(m&T|w&~T)+v[9]+568446438|0)<<5|_>>>27)+m|0)&w|m&~w)+v[14]-1019803690|0)<<9|T>>>23)+_|0)&m|_&~m)+v[3]-187363961|0)<<14|w>>>18)+T|0)&_|T&~_)+v[8]+1163531501|0)<<20|m>>>12)+w|0,m=((m+=((w=((w+=((T=((T+=((_=((_+=(m&T|w&~T)+v[13]-1444681467|0)<<5|_>>>27)+m|0)&w|m&~w)+v[2]-51403784|0)<<9|T>>>23)+_|0)&m|_&~m)+v[7]+1735328473|0)<<14|w>>>18)+T|0)&_|T&~_)+v[12]-1926607734|0)<<20|m>>>12)+w|0,m=((m+=((w=((w+=((T=((T+=((_=((_+=(m^w^T)+v[5]-378558|0)<<4|_>>>28)+m|0)^m^w)+v[8]-2022574463|0)<<11|T>>>21)+_|0)^_^m)+v[11]+1839030562|0)<<16|w>>>16)+T|0)^T^_)+v[14]-35309556|0)<<23|m>>>9)+w|0,m=((m+=((w=((w+=((T=((T+=((_=((_+=(m^w^T)+v[1]-1530992060|0)<<4|_>>>28)+m|0)^m^w)+v[4]+1272893353|0)<<11|T>>>21)+_|0)^_^m)+v[7]-155497632|0)<<16|w>>>16)+T|0)^T^_)+v[10]-1094730640|0)<<23|m>>>9)+w|0,m=((m+=((w=((w+=((T=((T+=((_=((_+=(m^w^T)+v[13]+681279174|0)<<4|_>>>28)+m|0)^m^w)+v[0]-358537222|0)<<11|T>>>21)+_|0)^_^m)+v[3]-722521979|0)<<16|w>>>16)+T|0)^T^_)+v[6]+76029189|0)<<23|m>>>9)+w|0,m=((m+=((w=((w+=((T=((T+=((_=((_+=(m^w^T)+v[9]-640364487|0)<<4|_>>>28)+m|0)^m^w)+v[12]-421815835|0)<<11|T>>>21)+_|0)^_^m)+v[15]+530742520|0)<<16|w>>>16)+T|0)^T^_)+v[2]-995338651|0)<<23|m>>>9)+w|0,m=((m+=((T=((T+=(m^((_=((_+=(w^(m|~T))+v[0]-198630844|0)<<6|_>>>26)+m|0)|~w))+v[7]+1126891415|0)<<10|T>>>22)+_|0)^((w=((w+=(_^(T|~m))+v[14]-1416354905|0)<<15|w>>>17)+T|0)|~_))+v[5]-57434055|0)<<21|m>>>11)+w|0,m=((m+=((T=((T+=(m^((_=((_+=(w^(m|~T))+v[12]+1700485571|0)<<6|_>>>26)+m|0)|~w))+v[3]-1894986606|0)<<10|T>>>22)+_|0)^((w=((w+=(_^(T|~m))+v[10]-1051523|0)<<15|w>>>17)+T|0)|~_))+v[1]-2054922799|0)<<21|m>>>11)+w|0,m=((m+=((T=((T+=(m^((_=((_+=(w^(m|~T))+v[8]+1873313359|0)<<6|_>>>26)+m|0)|~w))+v[15]-30611744|0)<<10|T>>>22)+_|0)^((w=((w+=(_^(T|~m))+v[6]-1560198380|0)<<15|w>>>17)+T|0)|~_))+v[13]+1309151649|0)<<21|m>>>11)+w|0,m=((m+=((T=((T+=(m^((_=((_+=(w^(m|~T))+v[4]-145523070|0)<<6|_>>>26)+m|0)|~w))+v[11]-1120210379|0)<<10|T>>>22)+_|0)^((w=((w+=(_^(T|~m))+v[2]+718787259|0)<<15|w>>>17)+T|0)|~_))+v[9]-343485551|0)<<21|m>>>11)+w|0,A[0]=_+A[0]|0,A[1]=m+A[1]|0,A[2]=w+A[2]|0,A[3]=T+A[3]|0}function U(A){var _,v=[];for(_=0;_<64;_+=4)v[_>>2]=A.charCodeAt(_)+(A.charCodeAt(_+1)<<8)+(A.charCodeAt(_+2)<<16)+(A.charCodeAt(_+3)<<24);return v}function G(A){var _,v=[];for(_=0;_<64;_+=4)v[_>>2]=A[_]+(A[_+1]<<8)+(A[_+2]<<16)+(A[_+3]<<24);return v}function x(A){var m,w,T,k,z,J,v=A.length,_=[1732584193,-271733879,-1732584194,271733878];for(m=64;m<=v;m+=64)$(_,U(A.substring(m-64,m)));for(w=(A=A.substring(m-64)).length,T=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],m=0;m<w;m+=1)T[m>>2]|=A.charCodeAt(m)<<(m%4<<3);if(T[m>>2]|=128<<(m%4<<3),m>55)for($(_,T),m=0;m<16;m+=1)T[m]=0;return k=(k=8*v).toString(16).match(/(.*?)(.{0,8})$/),z=parseInt(k[2],16),J=parseInt(k[1],16)||0,T[14]=z,T[15]=J,$(_,T),_}function D(A){var _,v="";for(_=0;_<4;_+=1)v+=d[A>>8*_+4&15]+d[A>>8*_&15];return v}function O(A){var v;for(v=0;v<A.length;v+=1)A[v]=D(A[v]);return A.join("")}function C(A){return/[\u0080-\uFFFF]/.test(A)&&(A=unescape(encodeURIComponent(A))),A}function Z(A){var m,v=[],_=A.length;for(m=0;m<_-1;m+=2)v.push(parseInt(A.substr(m,2),16));return String.fromCharCode.apply(String,v)}function Y(){this.reset()}return O(x("hello")),typeof ArrayBuffer<"u"&&!ArrayBuffer.prototype.slice&&function(){function A(v,_){return(v=0|v||0)<0?Math.max(v+_,0):Math.min(v,_)}ArrayBuffer.prototype.slice=function(v,_){var k,z,J,Re,m=this.byteLength,w=A(v,m),T=m;return void 0!==_&&(T=A(_,m)),w>T?new ArrayBuffer(0):(k=T-w,z=new ArrayBuffer(k),J=new Uint8Array(z),Re=new Uint8Array(this,w,k),J.set(Re),z)}}(),Y.prototype.append=function(A){return this.appendBinary(C(A)),this},Y.prototype.appendBinary=function(A){this._buff+=A,this._length+=A.length;var _,v=this._buff.length;for(_=64;_<=v;_+=64)$(this._hash,U(this._buff.substring(_-64,_)));return this._buff=this._buff.substring(_-64),this},Y.prototype.end=function(A){var m,T,v=this._buff,_=v.length,w=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(m=0;m<_;m+=1)w[m>>2]|=v.charCodeAt(m)<<(m%4<<3);return this._finish(w,_),T=O(this._hash),A&&(T=Z(T)),this.reset(),T},Y.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},Y.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},Y.prototype.setState=function(A){return this._buff=A.buff,this._length=A.length,this._hash=A.hash,this},Y.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},Y.prototype._finish=function(A,v){var m,w,T,_=v;if(A[_>>2]|=128<<(_%4<<3),_>55)for($(this._hash,A),_=0;_<16;_+=1)A[_]=0;m=(m=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),w=parseInt(m[2],16),T=parseInt(m[1],16)||0,A[14]=w,A[15]=T,$(this._hash,A)},Y.hash=function(A,v){return Y.hashBinary(C(A),v)},Y.hashBinary=function(A,v){var m=O(x(A));return v?Z(m):m},(Y.ArrayBuffer=function(){this.reset()}).prototype.append=function(A){var m,v=function F(A,v,_){var m=new Uint8Array(A.byteLength+v.byteLength);return m.set(new Uint8Array(A)),m.set(new Uint8Array(v),A.byteLength),_?m:m.buffer}(this._buff.buffer,A,!0),_=v.length;for(this._length+=A.byteLength,m=64;m<=_;m+=64)$(this._hash,G(v.subarray(m-64,m)));return this._buff=m-64<_?new Uint8Array(v.buffer.slice(m-64)):new Uint8Array(0),this},Y.ArrayBuffer.prototype.end=function(A){var w,T,v=this._buff,_=v.length,m=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(w=0;w<_;w+=1)m[w>>2]|=v[w]<<(w%4<<3);return this._finish(m,_),T=O(this._hash),A&&(T=Z(T)),this.reset(),T},Y.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},Y.ArrayBuffer.prototype.getState=function(){var A=Y.prototype.getState.call(this);return A.buff=function M(A){return String.fromCharCode.apply(null,new Uint8Array(A))}(A.buff),A},Y.ArrayBuffer.prototype.setState=function(A){return A.buff=function S(A,v){var T,_=A.length,m=new ArrayBuffer(_),w=new Uint8Array(m);for(T=0;T<_;T+=1)w[T]=A.charCodeAt(T);return v?w:m}(A.buff,!0),Y.prototype.setState.call(this,A)},Y.ArrayBuffer.prototype.destroy=Y.prototype.destroy,Y.ArrayBuffer.prototype._finish=Y.prototype._finish,Y.ArrayBuffer.hash=function(A,v){var m=O(function j(A){var m,w,T,k,z,J,v=A.length,_=[1732584193,-271733879,-1732584194,271733878];for(m=64;m<=v;m+=64)$(_,G(A.subarray(m-64,m)));for(w=(A=m-64<v?A.subarray(m-64):new Uint8Array(0)).length,T=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],m=0;m<w;m+=1)T[m>>2]|=A[m]<<(m%4<<3);if(T[m>>2]|=128<<(m%4<<3),m>55)for($(_,T),m=0;m<16;m+=1)T[m]=0;return k=(k=8*v).toString(16).match(/(.*?)(.{0,8})$/),z=parseInt(k[2],16),J=parseInt(k[1],16)||0,T[14]=z,T[15]=J,$(_,T),_}(new Uint8Array(A)));return v?Z(m):m},Y}()},75448(Le,g,R){"use strict";R.d(g,{ButtonLabel:()=>G});var d=R(17705),V=R(42245),$=R(35547);const U=["*"];let G=(()=>{class x{fontSize=(0,d.hFB)("m");italic=(0,d.hFB)(!1);noWrap=(0,d.hFB)(!0);static \u0275fac=function(O){return new(O||x)};static \u0275cmp=$.VBU({type:x,selectors:[["cue-button-label"]],inputs:{fontSize:[1,"fontSize"],italic:[1,"italic"],noWrap:[1,"noWrap"]},ngContentSelectors:U,decls:3,vars:3,consts:[[3,"size","italic","noWrap"]],template:function(O,C){1&O&&($.NAR(),$.j41(0,"div")(1,"cue-typography",0),$.SdG(2),$.k0s()()),2&O&&($.R7$(),$.Y8G("size",C.fontSize())("italic",C.italic())("noWrap",C.noWrap()))},dependencies:[V.Typography],styles:["div[_ngcontent-%COMP%]{transform:translateY(.05em)}"]})}return x})()},95484(Le,g,R){"use strict";const{normalizeIPv6:d,removeDotSegments:V,recomposeAuthority:$,normalizeComponentEncoding:U,isIPv4:G,nonSimpleDomain:x}=R(3057),{SCHEMES:j,getSchemeHandler:D}=R(36128);function S(v,_,m,w){const T={};return w||(v=Y(F(v,m),m),_=Y(F(_,m),m)),!(m=m||{}).tolerant&&_.scheme?(T.scheme=_.scheme,T.userinfo=_.userinfo,T.host=_.host,T.port=_.port,T.path=V(_.path||""),T.query=_.query):(void 0!==_.userinfo||void 0!==_.host||void 0!==_.port?(T.userinfo=_.userinfo,T.host=_.host,T.port=_.port,T.path=V(_.path||""),T.query=_.query):(_.path?("/"===_.path[0]?T.path=V(_.path):(T.path=void 0===v.userinfo&&void 0===v.host&&void 0===v.port||v.path?v.path?v.path.slice(0,v.path.lastIndexOf("/")+1)+_.path:_.path:"/"+_.path,T.path=V(T.path)),T.query=_.query):(T.path=v.path,T.query=void 0!==_.query?_.query:v.query),T.userinfo=v.userinfo,T.host=v.host,T.port=v.port),T.scheme=v.scheme),T.fragment=_.fragment,T}function F(v,_){const m={host:v.host,scheme:v.scheme,userinfo:v.userinfo,port:v.port,path:v.path,query:v.query,nid:v.nid,nss:v.nss,uuid:v.uuid,fragment:v.fragment,reference:v.reference,resourceName:v.resourceName,secure:v.secure,error:""},w=Object.assign({},_),T=[],k=D(w.scheme||m.scheme);k&&k.serialize&&k.serialize(m,w),void 0!==m.path&&(w.skipEscape?m.path=unescape(m.path):(m.path=escape(m.path),void 0!==m.scheme&&(m.path=m.path.split("%3A").join(":")))),"suffix"!==w.reference&&m.scheme&&T.push(m.scheme,":");const z=$(m);if(void 0!==z&&("suffix"!==w.reference&&T.push("//"),T.push(z),m.path&&"/"!==m.path[0]&&T.push("/")),void 0!==m.path){let J=m.path;!w.absolutePath&&(!k||!k.absolutePath)&&(J=V(J)),void 0===z&&"/"===J[0]&&"/"===J[1]&&(J="/%2F"+J.slice(2)),T.push(J)}return void 0!==m.query&&T.push("?",m.query),void 0!==m.fragment&&T.push("#",m.fragment),T.join("")}const Z=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function Y(v,_){const m=Object.assign({},_),w={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let T=!1;"suffix"===m.reference&&(v=m.scheme?m.scheme+":"+v:"//"+v);const k=v.match(Z);if(k){if(w.scheme=k[1],w.userinfo=k[3],w.host=k[4],w.port=parseInt(k[5],10),w.path=k[6]||"",w.query=k[7],w.fragment=k[8],isNaN(w.port)&&(w.port=k[5]),w.host)if(!1===G(w.host)){const Re=d(w.host);w.host=Re.host.toLowerCase(),T=Re.isIPV6}else T=!0;w.reference=void 0!==w.scheme||void 0!==w.userinfo||void 0!==w.host||void 0!==w.port||void 0!==w.query||w.path?void 0===w.scheme?"relative":void 0===w.fragment?"absolute":"uri":"same-document",m.reference&&"suffix"!==m.reference&&m.reference!==w.reference&&(w.error=w.error||"URI is not a "+m.reference+" reference.");const z=D(m.scheme||w.scheme);if(!m.unicodeSupport&&(!z||!z.unicodeSupport)&&w.host&&(m.domainHost||z&&z.domainHost)&&!1===T&&x(w.host))try{w.host=URL.domainToASCII(w.host.toLowerCase())}catch(J){w.error=w.error||"Host's domain name can not be converted to ASCII: "+J}(!z||z&&!z.skipNormalize)&&(-1!==v.indexOf("%")&&(void 0!==w.scheme&&(w.scheme=unescape(w.scheme)),void 0!==w.host&&(w.host=unescape(w.host))),w.path&&(w.path=escape(unescape(w.path))),w.fragment&&(w.fragment=encodeURI(decodeURIComponent(w.fragment)))),z&&z.parse&&z.parse(w,m)}else w.error=w.error||"URI can not be parsed.";return w}const A={SCHEMES:j,normalize:function O(v,_){return"string"==typeof v?v=F(Y(v,_),_):"object"==typeof v&&(v=Y(F(v,_),_)),v},resolve:function C(v,_,m){const w=m?Object.assign({scheme:"null"},m):{scheme:"null"},T=S(Y(v,w),Y(_,w),w,!0);return w.skipEscape=!0,F(T,w)},resolveComponent:S,equal:function M(v,_,m){return"string"==typeof v?(v=unescape(v),v=F(U(Y(v,m),!0),{...m,skipEscape:!0})):"object"==typeof v&&(v=F(U(v,!0),{...m,skipEscape:!0})),"string"==typeof _?(_=unescape(_),_=F(U(Y(_,m),!0),{...m,skipEscape:!0})):"object"==typeof _&&(_=F(U(_,!0),{...m,skipEscape:!0})),v.toLowerCase()===_.toLowerCase()},serialize:F,parse:Y};Le.exports=A,Le.exports.default=A,Le.exports.fastUri=A},36128(Le,g,R){"use strict";const{isUUID:d}=R(3057),V=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,$=["http","https","ws","wss","urn","urn:uuid"];function G(k){return!0===k.secure||!1!==k.secure&&!!k.scheme&&!(3!==k.scheme.length||"w"!==k.scheme[0]&&"W"!==k.scheme[0]||"s"!==k.scheme[1]&&"S"!==k.scheme[1]||"s"!==k.scheme[2]&&"S"!==k.scheme[2])}function x(k){return k.host||(k.error=k.error||"HTTP URIs must have a host."),k}function j(k){const z="https"===String(k.scheme).toLowerCase();return(k.port===(z?443:80)||""===k.port)&&(k.port=void 0),k.path||(k.path="/"),k}const Z={scheme:"http",domainHost:!0,parse:x,serialize:j},A={scheme:"ws",domainHost:!0,parse:function D(k){return k.secure=G(k),k.resourceName=(k.path||"/")+(k.query?"?"+k.query:""),k.path=void 0,k.query=void 0,k},serialize:function O(k){if((k.port===(G(k)?443:80)||""===k.port)&&(k.port=void 0),"boolean"==typeof k.secure&&(k.scheme=k.secure?"wss":"ws",k.secure=void 0),k.resourceName){const[z,J]=k.resourceName.split("?");k.path=z&&"/"!==z?z:void 0,k.query=J,k.resourceName=void 0}return k.fragment=void 0,k}},w={http:Z,https:{scheme:"https",domainHost:Z.domainHost,parse:x,serialize:j},ws:A,wss:{scheme:"wss",domainHost:A.domainHost,parse:A.parse,serialize:A.serialize},urn:{scheme:"urn",parse:function C(k,z){if(!k.path)return k.error="URN can not be parsed",k;const J=k.path.match(V);if(J){const Re=z.scheme||k.scheme||"urn";k.nid=J[1].toLowerCase(),k.nss=J[2];const Ve=T(`${Re}:${z.nid||k.nid}`);k.path=void 0,Ve&&(k=Ve.parse(k,z))}else k.error=k.error||"URN can not be parsed.";return k},serialize:function S(k,z){if(void 0===k.nid)throw new Error("URN without nid cannot be serialized");const J=z.scheme||k.scheme||"urn",Re=k.nid.toLowerCase(),Ve=T(`${J}:${z.nid||Re}`);Ve&&(k=Ve.serialize(k,z));const Fe=k;return Fe.path=`${Re||z.nid}:${k.nss}`,z.skipEscape=!0,Fe},skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:function M(k,z){const J=k;return J.uuid=J.nss,J.nss=void 0,!z.tolerant&&(!J.uuid||!d(J.uuid))&&(J.error=J.error||"UUID is not valid."),J},serialize:function F(k){const z=k;return z.nss=(k.uuid||"").toLowerCase(),z},skipNormalize:!0}};function T(k){return k&&(w[k]||w[k.toLowerCase()])||void 0}Object.setPrototypeOf(w,null),Le.exports={wsIsSecure:G,SCHEMES:w,isValidSchemeName:function U(k){return-1!==$.indexOf(k)},getSchemeHandler:T}},3057(Le){"use strict";const g=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),R=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function d(S){let M="",F=0,Z=0;for(Z=0;Z<S.length;Z++)if(F=S[Z].charCodeAt(0),48!==F){if(!(F>=48&&F<=57||F>=65&&F<=70||F>=97&&F<=102))return"";M+=S[Z];break}for(Z+=1;Z<S.length;Z++){if(F=S[Z].charCodeAt(0),!(F>=48&&F<=57||F>=65&&F<=70||F>=97&&F<=102))return"";M+=S[Z]}return M}const V=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function $(S){return S.length=0,!0}function U(S,M,F){if(S.length){const Z=d(S);if(""===Z)return F.error=!0,!1;M.push(Z),S.length=0}return!0}function x(S){if(function j(S,M){let F=0;for(let Z=0;Z<S.length;Z++)S[Z]===M&&F++;return F}(S,":")<2)return{host:S,isIPV6:!1};const M=function G(S){let M=0;const F={error:!1,address:"",zone:""},Z=[],Y=[];let A=!1,v=!1,_=U;for(let m=0;m<S.length;m++){const w=S[m];if("["!==w&&"]"!==w){if(":"===w){if(!0===A&&(v=!0),!_(Y,Z,F))break;if(++M>7){F.error=!0;break}m>0&&":"===S[m-1]&&(A=!0),Z.push(":");continue}if("%"!==w){Y.push(w);continue}if(!_(Y,Z,F))break;_=$}}return Y.length&&(_===$?F.zone=Y.join(""):Z.push(v?Y.join(""):d(Y))),F.address=Z.join(""),F}(S);if(M.error)return{host:S,isIPV6:!1};{let F=M.address,Z=M.address;return M.zone&&(F+="%"+M.zone,Z+="%25"+M.zone),{host:F,isIPV6:!0,escapedHost:Z}}}Le.exports={nonSimpleDomain:V,recomposeAuthority:function C(S){const M=[];if(void 0!==S.userinfo&&(M.push(S.userinfo),M.push("@")),void 0!==S.host){let F=unescape(S.host);if(!R(F)){const Z=x(F);F=!0===Z.isIPV6?`[${Z.escapedHost}]`:S.host}M.push(F)}return("number"==typeof S.port||"string"==typeof S.port)&&(M.push(":"),M.push(String(S.port))),M.length?M.join(""):void 0},normalizeComponentEncoding:function O(S,M){const F=!0!==M?escape:unescape;return void 0!==S.scheme&&(S.scheme=F(S.scheme)),void 0!==S.userinfo&&(S.userinfo=F(S.userinfo)),void 0!==S.host&&(S.host=F(S.host)),void 0!==S.path&&(S.path=F(S.path)),void 0!==S.query&&(S.query=F(S.query)),void 0!==S.fragment&&(S.fragment=F(S.fragment)),S},removeDotSegments:function D(S){let M=S;const F=[];let Z=-1,Y=0;for(;Y=M.length;){if(1===Y){if("."===M)break;if("/"===M){F.push("/");break}F.push(M);break}if(2===Y){if("."===M[0]){if("."===M[1])break;if("/"===M[1]){M=M.slice(2);continue}}else if("/"===M[0]&&("."===M[1]||"/"===M[1])){F.push("/");break}}else if(3===Y&&"/.."===M){0!==F.length&&F.pop(),F.push("/");break}if("."===M[0]){if("."===M[1]){if("/"===M[2]){M=M.slice(3);continue}}else if("/"===M[1]){M=M.slice(2);continue}}else if("/"===M[0]&&"."===M[1]){if("/"===M[2]){M=M.slice(2);continue}if("."===M[2]&&"/"===M[3]){M=M.slice(3),0!==F.length&&F.pop();continue}}if(-1===(Z=M.indexOf("/",1))){F.push(M);break}F.push(M.slice(0,Z)),M=M.slice(Z)}return F.join("")},isIPv4:R,isUUID:g,normalizeIPv6:x,stringArrayToHexStripped:d}},29293(Le){function g(d,V,$,U,G,x,j){try{var D=d[x](j),O=D.value}catch(C){return void $(C)}D.done?V(O):Promise.resolve(O).then(U,G)}Le.exports=function R(d){return function(){var V=this,$=arguments;return new Promise(function(U,G){var x=d.apply(V,$);function j(O){g(x,U,G,j,D,"next",O)}function D(O){g(x,U,G,j,D,"throw",O)}j(void 0)})}},Le.exports.__esModule=!0,Le.exports.default=Le.exports},17579(Le,g,R){"use strict";R.d(g,{NV:()=>g9,f$:()=>zd,g8:()=>Wy,Ug:()=>UR});var d=R(10467),$=(R(10600),R(53659));(0,$.KO)("firebase","12.8.0","app"),R(26702);const j="http://www.w3.org/1999/02/22-rdf-syntax-ns#",D="http://www.w3.org/2001/XMLSchema#",O="http://www.w3.org/2000/10/swap/",C={xsd:{decimal:`${D}decimal`,boolean:`${D}boolean`,double:`${D}double`,integer:`${D}integer`,string:`${D}string`},rdf:{type:`${j}type`,nil:`${j}nil`,first:`${j}first`,rest:`${j}rest`,langString:`${j}langString`},owl:{sameAs:"http://www.w3.org/2002/07/owl#sameAs"},r:{forSome:`${O}reify#forSome`,forAll:`${O}reify#forAll`},log:{implies:`${O}log#implies`,isImpliedBy:`${O}log#isImpliedBy`}},{rdf:S,xsd:M}=C;let F,Z=0;const v={namedNode:Je,blankNode:rt,variable:Ct,literal:vt,defaultGraph:function Vt(){return F},quad:Cn,triple:Cn,fromTerm:bt,fromQuad:jn};class _{constructor(e){this.id=e}get value(){return this.id}equals(e){return e instanceof _?this.id===e.id:!!e&&this.termType===e.termType&&this.value===e.value}hashCode(){return 0}toJSON(){return{termType:this.termType,value:this.value}}}class m extends _{get termType(){return"NamedNode"}}class w extends _{get termType(){return"Literal"}get value(){return this.id.substring(1,this.id.lastIndexOf('"'))}get language(){const e=this.id;let t=e.lastIndexOf('"')+1;return t<e.length&&"@"===e[t++]?e.substr(t).toLowerCase():""}get datatype(){return new m(this.datatypeString)}get datatypeString(){const e=this.id,t=e.lastIndexOf('"')+1,r=t<e.length?e[t]:"";return"^"===r?e.substr(t+2):"@"!==r?M.string:S.langString}equals(e){return e instanceof w?this.id===e.id:!!e&&!!e.datatype&&this.termType===e.termType&&this.value===e.value&&this.language===e.language&&this.datatype.value===e.datatype.value}toJSON(){return{termType:this.termType,value:this.value,language:this.language,datatype:{termType:"NamedNode",value:this.datatypeString}}}}class T extends _{constructor(e){super(`_:${e}`)}get termType(){return"BlankNode"}get value(){return this.id.substr(2)}}class k extends _{constructor(e){super(`?${e}`)}get termType(){return"Variable"}get value(){return this.id.substr(1)}}F=new class z extends _{constructor(){return super(""),F||this}get termType(){return"DefaultGraph"}equals(e){return this===e||!!e&&this.termType===e.termType}};class Pe extends _{constructor(e,t,r,o){super(""),this._subject=e,this._predicate=t,this._object=r,this._graph=o||F}get termType(){return"Quad"}get subject(){return this._subject}get predicate(){return this._predicate}get object(){return this._object}get graph(){return this._graph}toJSON(){return{termType:this.termType,subject:this._subject.toJSON(),predicate:this._predicate.toJSON(),object:this._object.toJSON(),graph:this._graph.toJSON()}}equals(e){return!!e&&this._subject.equals(e.subject)&&this._predicate.equals(e.predicate)&&this._object.equals(e.object)&&this._graph.equals(e.graph)}}function Je(n){return new m(n)}function rt(n){return new T(n||"n3-"+Z++)}function vt(n,e){if("string"==typeof e)return new w(`"${n}"@${e.toLowerCase()}`);let t=e?e.value:"";return""===t&&("boolean"==typeof n?t=M.boolean:"number"==typeof n&&(Number.isFinite(n)?t=Number.isInteger(n)?M.integer:M.double:(t=M.double,Number.isNaN(n)||(n=n>0?"INF":"-INF")))),new w(""===t||t===M.string?`"${n}"`:`"${n}"^^${t}`)}function Ct(n){return new k(n)}function Cn(n,e,t,r){return new Pe(n,e,t,r)}function bt(n){if(n instanceof _)return n;switch(n.termType){case"NamedNode":return Je(n.value);case"BlankNode":return rt(n.value);case"Variable":return Ct(n.value);case"DefaultGraph":return F;case"Literal":return vt(n.value,n.language||n.datatype);case"Quad":return jn(n);default:throw new Error(`Unexpected termType: ${n.termType}`)}}function jn(n){if(n instanceof Pe)return n;if("Quad"!==n.termType)throw new Error(`Unexpected termType: ${n.termType}`);return Cn(bt(n.subject),bt(n.predicate),bt(n.object),bt(n.graph))}v.defaultGraph();var Jn,Rr=R(2040),ut=R(97814),_o=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},No={};(function(){var n;function r(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.C=Array(this.blockSize),this.o=this.h=0,this.u()}function o(se,B,te){te||(te=0);const le=Array(16);if("string"==typeof B)for(var ue=0;ue<16;++ue)le[ue]=B.charCodeAt(te++)|B.charCodeAt(te++)<<8|B.charCodeAt(te++)<<16|B.charCodeAt(te++)<<24;else for(ue=0;ue<16;++ue)le[ue]=B[te++]|B[te++]<<8|B[te++]<<16|B[te++]<<24;let ne,Ie=se.g[3];ne=(B=se.g[0])+(Ie^(te=se.g[1])&((ue=se.g[2])^Ie))+le[0]+3614090360&4294967295,ne=Ie+(ue^(B=te+(ne<<7&4294967295|ne>>>25))&(te^ue))+le[1]+3905402710&4294967295,Ie=B+(ne<<12&4294967295|ne>>>20),ne=ue+(te^Ie&(B^te))+le[2]+606105819&4294967295,ne=te+(B^(ue=Ie+(ne<<17&4294967295|ne>>>15))&(Ie^B))+le[3]+3250441966&4294967295,ne=B+(Ie^(te=ue+(ne<<22&4294967295|ne>>>10))&(ue^Ie))+le[4]+4118548399&4294967295,ne=Ie+(ue^(B=te+(ne<<7&4294967295|ne>>>25))&(te^ue))+le[5]+1200080426&4294967295,Ie=B+(ne<<12&4294967295|ne>>>20),ne=ue+(te^Ie&(B^te))+le[6]+2821735955&4294967295,ne=te+(B^(ue=Ie+(ne<<17&4294967295|ne>>>15))&(Ie^B))+le[7]+4249261313&4294967295,ne=B+(Ie^(te=ue+(ne<<22&4294967295|ne>>>10))&(ue^Ie))+le[8]+1770035416&4294967295,ne=Ie+(ue^(B=te+(ne<<7&4294967295|ne>>>25))&(te^ue))+le[9]+2336552879&4294967295,Ie=B+(ne<<12&4294967295|ne>>>20),ne=ue+(te^Ie&(B^te))+le[10]+4294925233&4294967295,ne=te+(B^(ue=Ie+(ne<<17&4294967295|ne>>>15))&(Ie^B))+le[11]+2304563134&4294967295,ne=B+(Ie^(te=ue+(ne<<22&4294967295|ne>>>10))&(ue^Ie))+le[12]+1804603682&4294967295,ne=Ie+(ue^(B=te+(ne<<7&4294967295|ne>>>25))&(te^ue))+le[13]+4254626195&4294967295,Ie=B+(ne<<12&4294967295|ne>>>20),ne=ue+(te^Ie&(B^te))+le[14]+2792965006&4294967295,ne=te+(B^(ue=Ie+(ne<<17&4294967295|ne>>>15))&(Ie^B))+le[15]+1236535329&4294967295,ne=B+(ue^Ie&((te=ue+(ne<<22&4294967295|ne>>>10))^ue))+le[1]+4129170786&4294967295,ne=Ie+(te^ue&((B=te+(ne<<5&4294967295|ne>>>27))^te))+le[6]+3225465664&4294967295,Ie=B+(ne<<9&4294967295|ne>>>23),ne=ue+(B^te&(Ie^B))+le[11]+643717713&4294967295,ne=te+(Ie^B&((ue=Ie+(ne<<14&4294967295|ne>>>18))^Ie))+le[0]+3921069994&4294967295,ne=B+(ue^Ie&((te=ue+(ne<<20&4294967295|ne>>>12))^ue))+le[5]+3593408605&4294967295,ne=Ie+(te^ue&((B=te+(ne<<5&4294967295|ne>>>27))^te))+le[10]+38016083&4294967295,Ie=B+(ne<<9&4294967295|ne>>>23),ne=ue+(B^te&(Ie^B))+le[15]+3634488961&4294967295,ne=te+(Ie^B&((ue=Ie+(ne<<14&4294967295|ne>>>18))^Ie))+le[4]+3889429448&4294967295,ne=B+(ue^Ie&((te=ue+(ne<<20&4294967295|ne>>>12))^ue))+le[9]+568446438&4294967295,ne=Ie+(te^ue&((B=te+(ne<<5&4294967295|ne>>>27))^te))+le[14]+3275163606&4294967295,Ie=B+(ne<<9&4294967295|ne>>>23),ne=ue+(B^te&(Ie^B))+le[3]+4107603335&4294967295,ne=te+(Ie^B&((ue=Ie+(ne<<14&4294967295|ne>>>18))^Ie))+le[8]+1163531501&4294967295,ne=B+(ue^Ie&((te=ue+(ne<<20&4294967295|ne>>>12))^ue))+le[13]+2850285829&4294967295,ne=Ie+(te^ue&((B=te+(ne<<5&4294967295|ne>>>27))^te))+le[2]+4243563512&4294967295,Ie=B+(ne<<9&4294967295|ne>>>23),ne=ue+(B^te&(Ie^B))+le[7]+1735328473&4294967295,ne=te+(Ie^B&((ue=Ie+(ne<<14&4294967295|ne>>>18))^Ie))+le[12]+2368359562&4294967295,ne=B+((te=ue+(ne<<20&4294967295|ne>>>12))^ue^Ie)+le[5]+4294588738&4294967295,ne=Ie+((B=te+(ne<<4&4294967295|ne>>>28))^te^ue)+le[8]+2272392833&4294967295,Ie=B+(ne<<11&4294967295|ne>>>21),ne=ue+(Ie^B^te)+le[11]+1839030562&4294967295,ne=te+((ue=Ie+(ne<<16&4294967295|ne>>>16))^Ie^B)+le[14]+4259657740&4294967295,ne=B+((te=ue+(ne<<23&4294967295|ne>>>9))^ue^Ie)+le[1]+2763975236&4294967295,ne=Ie+((B=te+(ne<<4&4294967295|ne>>>28))^te^ue)+le[4]+1272893353&4294967295,Ie=B+(ne<<11&4294967295|ne>>>21),ne=ue+(Ie^B^te)+le[7]+4139469664&4294967295,ne=te+((ue=Ie+(ne<<16&4294967295|ne>>>16))^Ie^B)+le[10]+3200236656&4294967295,ne=B+((te=ue+(ne<<23&4294967295|ne>>>9))^ue^Ie)+le[13]+681279174&4294967295,ne=Ie+((B=te+(ne<<4&4294967295|ne>>>28))^te^ue)+le[0]+3936430074&4294967295,Ie=B+(ne<<11&4294967295|ne>>>21),ne=ue+(Ie^B^te)+le[3]+3572445317&4294967295,ne=te+((ue=Ie+(ne<<16&4294967295|ne>>>16))^Ie^B)+le[6]+76029189&4294967295,ne=B+((te=ue+(ne<<23&4294967295|ne>>>9))^ue^Ie)+le[9]+3654602809&4294967295,ne=Ie+((B=te+(ne<<4&4294967295|ne>>>28))^te^ue)+le[12]+3873151461&4294967295,Ie=B+(ne<<11&4294967295|ne>>>21),ne=ue+(Ie^B^te)+le[15]+530742520&4294967295,ne=te+((ue=Ie+(ne<<16&4294967295|ne>>>16))^Ie^B)+le[2]+3299628645&4294967295,ne=B+(ue^((te=ue+(ne<<23&4294967295|ne>>>9))|~Ie))+le[0]+4096336452&4294967295,ne=Ie+(te^((B=te+(ne<<6&4294967295|ne>>>26))|~ue))+le[7]+1126891415&4294967295,Ie=B+(ne<<10&4294967295|ne>>>22),ne=ue+(B^(Ie|~te))+le[14]+2878612391&4294967295,ne=te+(Ie^((ue=Ie+(ne<<15&4294967295|ne>>>17))|~B))+le[5]+4237533241&4294967295,ne=B+(ue^((te=ue+(ne<<21&4294967295|ne>>>11))|~Ie))+le[12]+1700485571&4294967295,ne=Ie+(te^((B=te+(ne<<6&4294967295|ne>>>26))|~ue))+le[3]+2399980690&4294967295,Ie=B+(ne<<10&4294967295|ne>>>22),ne=ue+(B^(Ie|~te))+le[10]+4293915773&4294967295,ne=te+(Ie^((ue=Ie+(ne<<15&4294967295|ne>>>17))|~B))+le[1]+2240044497&4294967295,ne=B+(ue^((te=ue+(ne<<21&4294967295|ne>>>11))|~Ie))+le[8]+1873313359&4294967295,ne=Ie+(te^((B=te+(ne<<6&4294967295|ne>>>26))|~ue))+le[15]+4264355552&4294967295,Ie=B+(ne<<10&4294967295|ne>>>22),ne=ue+(B^(Ie|~te))+le[6]+2734768916&4294967295,ne=te+(Ie^((ue=Ie+(ne<<15&4294967295|ne>>>17))|~B))+le[13]+1309151649&4294967295,ne=B+(ue^((te=ue+(ne<<21&4294967295|ne>>>11))|~Ie))+le[4]+4149444226&4294967295,ne=Ie+(te^((B=te+(ne<<6&4294967295|ne>>>26))|~ue))+le[11]+3174756917&4294967295,Ie=B+(ne<<10&4294967295|ne>>>22),ne=ue+(B^(Ie|~te))+le[2]+718787259&4294967295,ne=te+(Ie^((ue=Ie+(ne<<15&4294967295|ne>>>17))|~B))+le[9]+3951481745&4294967295,se.g[0]=se.g[0]+B&4294967295,se.g[1]=se.g[1]+(ue+(ne<<21&4294967295|ne>>>11))&4294967295,se.g[2]=se.g[2]+ue&4294967295,se.g[3]=se.g[3]+Ie&4294967295}function i(se,B){this.h=B;const te=[];let le=!0;for(let ue=se.length-1;ue>=0;ue--){const Ie=0|se[ue];le&&Ie==B||(te[ue]=Ie,le=!1)}this.g=te}(function e(se,B){function te(){}te.prototype=B.prototype,se.F=B.prototype,se.prototype=new te,se.prototype.constructor=se,se.D=function(le,ue,Ie){for(var ne=Array(arguments.length-2),Ur=2;Ur<arguments.length;Ur++)ne[Ur-2]=arguments[Ur];return B.prototype[ue].apply(le,ne)}})(r,function t(){this.blockSize=-1}),r.prototype.u=function(){this.g[0]=1732584193,this.g[1]=4023233417,this.g[2]=2562383102,this.g[3]=271733878,this.o=this.h=0},r.prototype.v=function(se,B){void 0===B&&(B=se.length);const te=B-this.blockSize,le=this.C;let ue=this.h,Ie=0;for(;Ie<B;){if(0==ue)for(;Ie<=te;)o(this,se,Ie),Ie+=this.blockSize;if("string"==typeof se){for(;Ie<B;)if(le[ue++]=se.charCodeAt(Ie++),ue==this.blockSize){o(this,le),ue=0;break}}else for(;Ie<B;)if(le[ue++]=se[Ie++],ue==this.blockSize){o(this,le),ue=0;break}}this.h=ue,this.o+=B},r.prototype.A=function(){var se=Array((this.h<56?this.blockSize:2*this.blockSize)-this.h);se[0]=128;for(var B=1;B<se.length-8;++B)se[B]=0;B=8*this.o;for(var te=se.length-8;te<se.length;++te)se[te]=255&B,B/=256;for(this.v(se),se=Array(16),B=0,te=0;te<4;++te)for(let le=0;le<32;le+=8)se[B++]=this.g[te]>>>le&255;return se};var a={};function c(se){return-128<=se&&se<128?function s(se,B){var te=a;return Object.prototype.hasOwnProperty.call(te,se)?te[se]:te[se]=B(se)}(se,function(B){return new i([0|B],B<0?-1:0)}):new i([0|se],se<0?-1:0)}function l(se){if(isNaN(se)||!isFinite(se))return p;if(se<0)return fe(l(-se));const B=[];let te=1;for(let le=0;se>=te;le++)B[le]=se/te|0,te*=4294967296;return new i(B,0)}var p=c(0),y=c(1),P=c(16777216);function K(se){if(0!=se.h)return!1;for(let B=0;B<se.g.length;B++)if(0!=se.g[B])return!1;return!0}function re(se){return-1==se.h}function fe(se){const B=se.g.length,te=[];for(let le=0;le<B;le++)te[le]=~se.g[le];return new i(te,~se.h).add(y)}function ce(se,B){return se.add(fe(B))}function Ae(se,B){for(;(65535&se[B])!=se[B];)se[B+1]+=se[B]>>>16,se[B]&=65535,B++}function $e(se,B){this.g=se,this.h=B}function Qe(se,B){if(K(B))throw Error("division by zero");if(K(se))return new $e(p,p);if(re(se))return B=Qe(fe(se),B),new $e(fe(B.g),fe(B.h));if(re(B))return B=Qe(se,fe(B)),new $e(fe(B.g),B.h);if(se.g.length>30){if(re(se)||re(B))throw Error("slowDivide_ only works with positive integers.");for(var te=y,le=B;le.l(se)<=0;)te=pt(te),le=pt(le);var ue=_t(te,1),Ie=_t(le,1);for(le=_t(le,2),te=_t(te,2);!K(le);){var ne=Ie.add(le);ne.l(se)<=0&&(ue=ue.add(te),Ie=ne),le=_t(le,1),te=_t(te,1)}return B=ce(se,ue.j(B)),new $e(ue,B)}for(ue=p;se.l(B)>=0;){for(te=Math.max(1,Math.floor(se.m()/B.m())),le=(le=Math.ceil(Math.log(te)/Math.LN2))<=48?1:Math.pow(2,le-48),ne=(Ie=l(te)).j(B);re(ne)||ne.l(se)>0;)ne=(Ie=l(te-=le)).j(B);K(Ie)&&(Ie=y),ue=ue.add(Ie),se=ce(se,ne)}return new $e(ue,se)}function pt(se){const B=se.g.length+1,te=[];for(let le=0;le<B;le++)te[le]=se.i(le)<<1|se.i(le-1)>>>31;return new i(te,se.h)}function _t(se,B){const te=B>>5;B%=32;const le=se.g.length-te,ue=[];for(let Ie=0;Ie<le;Ie++)ue[Ie]=B>0?se.i(Ie+te)>>>B|se.i(Ie+te+1)<<32-B:se.i(Ie+te);return new i(ue,se.h)}(n=i.prototype).m=function(){if(re(this))return-fe(this).m();let se=0,B=1;for(let te=0;te<this.g.length;te++){const le=this.i(te);se+=(le>=0?le:4294967296+le)*B,B*=4294967296}return se},n.toString=function(se){if((se=se||10)<2||36<se)throw Error("radix out of range: "+se);if(K(this))return"0";if(re(this))return"-"+fe(this).toString(se);const B=l(Math.pow(se,6));var te=this;let le="";for(;;){const ue=Qe(te,B).g;let Ie=(((te=ce(te,ue.j(B))).g.length>0?te.g[0]:te.h)>>>0).toString(se);if(K(te=ue))return Ie+le;for(;Ie.length<6;)Ie="0"+Ie;le=Ie+le}},n.i=function(se){return se<0?0:se<this.g.length?this.g[se]:this.h},n.l=function(se){return re(se=ce(this,se))?-1:K(se)?0:1},n.abs=function(){return re(this)?fe(this):this},n.add=function(se){const B=Math.max(this.g.length,se.g.length),te=[];let le=0;for(let ue=0;ue<=B;ue++){let Ie=le+(65535&this.i(ue))+(65535&se.i(ue)),ne=(Ie>>>16)+(this.i(ue)>>>16)+(se.i(ue)>>>16);le=ne>>>16,Ie&=65535,ne&=65535,te[ue]=ne<<16|Ie}return new i(te,-2147483648&te[te.length-1]?-1:0)},n.j=function(se){if(K(this)||K(se))return p;if(re(this))return re(se)?fe(this).j(fe(se)):fe(fe(this).j(se));if(re(se))return fe(this.j(fe(se)));if(this.l(P)<0&&se.l(P)<0)return l(this.m()*se.m());const B=this.g.length+se.g.length,te=[];for(var le=0;le<2*B;le++)te[le]=0;for(le=0;le<this.g.length;le++)for(let ue=0;ue<se.g.length;ue++){const Ie=this.i(le)>>>16,ne=65535&this.i(le),Ur=se.i(ue)>>>16,Os=65535&se.i(ue);te[2*le+2*ue]+=ne*Os,Ae(te,2*le+2*ue),te[2*le+2*ue+1]+=Ie*Os,Ae(te,2*le+2*ue+1),te[2*le+2*ue+1]+=ne*Ur,Ae(te,2*le+2*ue+1),te[2*le+2*ue+2]+=Ie*Ur,Ae(te,2*le+2*ue+2)}for(se=0;se<B;se++)te[se]=te[2*se+1]<<16|te[2*se];for(se=B;se<2*B;se++)te[se]=0;return new i(te,0)},n.B=function(se){return Qe(this,se).h},n.and=function(se){const B=Math.max(this.g.length,se.g.length),te=[];for(let le=0;le<B;le++)te[le]=this.i(le)&se.i(le);return new i(te,this.h&se.h)},n.or=function(se){const B=Math.max(this.g.length,se.g.length),te=[];for(let le=0;le<B;le++)te[le]=this.i(le)|se.i(le);return new i(te,this.h|se.h)},n.xor=function(se){const B=Math.max(this.g.length,se.g.length),te=[];for(let le=0;le<B;le++)te[le]=this.i(le)^se.i(le);return new i(te,this.h^se.h)},r.prototype.digest=r.prototype.A,r.prototype.reset=r.prototype.u,r.prototype.update=r.prototype.v,No.Md5=r,i.prototype.add=i.prototype.add,i.prototype.multiply=i.prototype.j,i.prototype.modulo=i.prototype.B,i.prototype.compare=i.prototype.l,i.prototype.toNumber=i.prototype.m,i.prototype.toString=i.prototype.toString,i.prototype.getBits=i.prototype.i,i.fromNumber=l,i.fromString=function h(se,B){if(0==se.length)throw Error("number format error: empty string");if((B=B||10)<2||36<B)throw Error("radix out of range: "+B);if("-"==se.charAt(0))return fe(h(se.substring(1),B));if(se.indexOf("-")>=0)throw Error('number format error: interior "-" character');const te=l(Math.pow(B,8));let le=p;for(let Ie=0;Ie<se.length;Ie+=8){var ue=Math.min(8,se.length-Ie);const ne=parseInt(se.substring(Ie,Ie+ue),B);ue<8?(ue=l(Math.pow(B,ue)),le=le.j(ue).add(l(ne))):(le=le.j(te),le=le.add(l(ne)))}return le},Jn=No.Integer=i}).apply(typeof _o<"u"?_o:typeof self<"u"?self:typeof window<"u"?window:{});var Mo,Qt,eo,ns,kr,yo,Fs,wo,rn=R(81919),Pr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Yn={};(function(){var n,e=Object.defineProperty,r=function t(u){u=["object"==typeof globalThis&&globalThis,u,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof Pr&&Pr];for(var f=0;f<u.length;++f){var b=u[f];if(b&&b.Math==Math)return b}throw Error("Cannot find global object")}(this);function o(u,f){if(f)e:{var b=r;u=u.split(".");for(var N=0;N<u.length-1;N++){var ve=u[N];if(!(ve in b))break e;b=b[ve]}(f=f(N=b[u=u[u.length-1]]))!=N&&null!=f&&e(b,u,{configurable:!0,writable:!0,value:f})}}o("Symbol.dispose",function(u){return u||Symbol("Symbol.dispose")}),o("Array.prototype.values",function(u){return u||function(){return this[Symbol.iterator]()}}),o("Object.entries",function(u){return u||function(f){var N,b=[];for(N in f)Object.prototype.hasOwnProperty.call(f,N)&&b.push([N,f[N]]);return b}});var s=s||{},i=this||self;function a(u){var f=typeof u;return"object"==f&&null!=u||"function"==f}function c(u,f,b){return u.call.apply(u.bind,arguments)}function l(u,f,b){return(l=c).apply(null,arguments)}function h(u,f){var b=Array.prototype.slice.call(arguments,1);return function(){var N=b.slice();return N.push.apply(N,arguments),u.apply(this,N)}}function p(u,f){function b(){}b.prototype=f.prototype,u.Z=f.prototype,u.prototype=new b,u.prototype.constructor=u,u.Ob=function(N,ve,Se){for(var et=Array(arguments.length-2),Rt=2;Rt<arguments.length;Rt++)et[Rt-2]=arguments[Rt];return f.prototype[ve].apply(N,et)}}var y=typeof AsyncContext<"u"&&"function"==typeof AsyncContext.Snapshot?u=>u&&AsyncContext.Snapshot.wrap(u):u=>u;function P(u){const f=u.length;if(f>0){const b=Array(f);for(let N=0;N<f;N++)b[N]=u[N];return b}return[]}function K(u,f){for(let N=1;N<arguments.length;N++){const ve=arguments[N];var b=typeof ve;if("array"==(b="object"!=b?b:ve?Array.isArray(ve)?"array":b:"null")||"object"==b&&"number"==typeof ve.length){const Se=ve.length||0;u.length=(b=u.length||0)+Se;for(let et=0;et<Se;et++)u[b+et]=ve[et]}else u.push(ve)}}function fe(u){i.setTimeout(()=>{throw u},0)}function ce(){var u=se;let f=null;return u.g&&(f=u.g,u.g=u.g.next,u.g||(u.h=null),f.next=null),f}var $e=new class re{constructor(f,b){this.i=f,this.j=b,this.h=0,this.g=null}get(){let f;return this.h>0?(this.h--,f=this.g,this.g=f.next,f.next=null):f=this.i(),f}}(()=>new Qe,u=>u.reset());class Qe{constructor(){this.next=this.g=this.h=null}set(f,b){this.h=f,this.g=b,this.next=null}reset(){this.next=this.g=this.h=null}}let pt,_t=!1,se=new class Ae{constructor(){this.h=this.g=null}add(f,b){const N=$e.get();N.set(f,b),this.h?this.h.next=N:this.g=N,this.h=N}},B=()=>{const u=Promise.resolve(void 0);pt=()=>{u.then(te)}};function te(){for(var u;u=ce();){try{u.h.call(u.g)}catch(b){fe(b)}var f=$e;f.j(u),f.h<100&&(f.h++,u.next=f.g,f.g=u)}_t=!1}function le(){this.u=this.u,this.C=this.C}function ue(u,f){this.type=u,this.g=this.target=f,this.defaultPrevented=!1}le.prototype.u=!1,le.prototype.dispose=function(){this.u||(this.u=!0,this.N())},le.prototype[Symbol.dispose]=function(){this.dispose()},le.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()},ue.prototype.h=function(){this.defaultPrevented=!0};var Ie=function(){if(!i.addEventListener||!Object.defineProperty)return!1;var u=!1,f=Object.defineProperty({},"passive",{get:function(){u=!0}});try{const b=()=>{};i.addEventListener("test",b,f),i.removeEventListener("test",b,f)}catch{}return u}();function ne(u){return/^[\s\xa0]*$/.test(u)}function Ur(u,f){ue.call(this,u?u.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,u&&this.init(u,f)}p(Ur,ue),Ur.prototype.init=function(u,f){const b=this.type=u.type,N=u.changedTouches&&u.changedTouches.length?u.changedTouches[0]:null;this.target=u.target||u.srcElement,this.g=f,(f=u.relatedTarget)||("mouseover"==b?f=u.fromElement:"mouseout"==b&&(f=u.toElement)),this.relatedTarget=f,N?(this.clientX=void 0!==N.clientX?N.clientX:N.pageX,this.clientY=void 0!==N.clientY?N.clientY:N.pageY,this.screenX=N.screenX||0,this.screenY=N.screenY||0):(this.clientX=void 0!==u.clientX?u.clientX:u.pageX,this.clientY=void 0!==u.clientY?u.clientY:u.pageY,this.screenX=u.screenX||0,this.screenY=u.screenY||0),this.button=u.button,this.key=u.key||"",this.ctrlKey=u.ctrlKey,this.altKey=u.altKey,this.shiftKey=u.shiftKey,this.metaKey=u.metaKey,this.pointerId=u.pointerId||0,this.pointerType=u.pointerType,this.state=u.state,this.i=u,u.defaultPrevented&&Ur.Z.h.call(this)},Ur.prototype.h=function(){Ur.Z.h.call(this);const u=this.i;u.preventDefault?u.preventDefault():u.returnValue=!1};var Os="closure_listenable_"+(1e6*Math.random()|0),y9=0;function w9(u,f,b,N,ve){this.listener=u,this.proxy=null,this.src=f,this.type=b,this.capture=!!N,this.ha=ve,this.key=++y9,this.da=this.fa=!1}function Gd(u){u.da=!0,u.listener=null,u.proxy=null,u.src=null,u.ha=null}function Kd(u,f,b){for(const N in u)f.call(b,u[N],N,u)}function nP(u){const f={};for(const b in u)f[b]=u[b];return f}const rP="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function oP(u,f){let b,N;for(let ve=1;ve<arguments.length;ve++){for(b in N=arguments[ve],N)u[b]=N[b];for(let Se=0;Se<rP.length;Se++)b=rP[Se],Object.prototype.hasOwnProperty.call(N,b)&&(u[b]=N[b])}}function Wd(u){this.src=u,this.g={},this.h=0}function aw(u,f){const b=f.type;if(b in u.g){var Se,N=u.g[b],ve=Array.prototype.indexOf.call(N,f,void 0);(Se=ve>=0)&&Array.prototype.splice.call(N,ve,1),Se&&(Gd(f),0==u.g[b].length&&(delete u.g[b],u.h--))}}function cw(u,f,b,N){for(let ve=0;ve<u.length;++ve){const Se=u[ve];if(!Se.da&&Se.listener==f&&Se.capture==!!b&&Se.ha==N)return ve}return-1}Wd.prototype.add=function(u,f,b,N,ve){const Se=u.toString();(u=this.g[Se])||(u=this.g[Se]=[],this.h++);const et=cw(u,f,N,ve);return et>-1?(f=u[et],b||(f.fa=!1)):((f=new w9(f,this.src,Se,!!N,ve)).fa=b,u.push(f)),f};var uw="closure_lm_"+(1e6*Math.random()|0),lw={};function sP(u,f,b,N,ve){if(N&&N.once)return aP(u,f,b,N,ve);if(Array.isArray(f)){for(let Se=0;Se<f.length;Se++)sP(u,f[Se],b,N,ve);return null}return b=fw(b),u&&u[Os]?u.J(f,b,a(N)?!!N.capture:!!N,ve):iP(u,f,b,!1,N,ve)}function iP(u,f,b,N,ve,Se){if(!f)throw Error("Invalid event type");const et=a(ve)?!!ve.capture:!!ve;let Rt=hw(u);if(Rt||(u[uw]=Rt=new Wd(u)),(b=Rt.add(f,b,N,et,Se)).proxy)return b;if(N=function b9(){const f=E9;return function u(b){return f.call(u.src,u.listener,b)}}(),b.proxy=N,N.src=u,N.listener=b,u.addEventListener)Ie||(ve=et),void 0===ve&&(ve=!1),u.addEventListener(f.toString(),N,ve);else if(u.attachEvent)u.attachEvent(uP(f.toString()),N);else{if(!u.addListener||!u.removeListener)throw Error("addEventListener and attachEvent are unavailable.");u.addListener(N)}return b}function aP(u,f,b,N,ve){if(Array.isArray(f)){for(let Se=0;Se<f.length;Se++)aP(u,f[Se],b,N,ve);return null}return b=fw(b),u&&u[Os]?u.K(f,b,a(N)?!!N.capture:!!N,ve):iP(u,f,b,!0,N,ve)}function cP(u,f,b,N,ve){if(Array.isArray(f))for(var Se=0;Se<f.length;Se++)cP(u,f[Se],b,N,ve);else N=a(N)?!!N.capture:!!N,b=fw(b),u&&u[Os]?(u=u.i,(Se=String(f).toString())in u.g&&(b=cw(f=u.g[Se],b,N,ve))>-1&&(Gd(f[b]),Array.prototype.splice.call(f,b,1),0==f.length&&(delete u.g[Se],u.h--))):u&&(u=hw(u))&&(f=u.g[f.toString()],u=-1,f&&(u=cw(f,b,N,ve)),(b=u>-1?f[u]:null)&&dw(b))}function dw(u){if("number"!=typeof u&&u&&!u.da){var f=u.src;if(f&&f[Os])aw(f.i,u);else{var b=u.type,N=u.proxy;f.removeEventListener?f.removeEventListener(b,N,u.capture):f.detachEvent?f.detachEvent(uP(b),N):f.addListener&&f.removeListener&&f.removeListener(N),(b=hw(f))?(aw(b,u),0==b.h&&(b.src=null,f[uw]=null)):Gd(u)}}}function uP(u){return u in lw?lw[u]:lw[u]="on"+u}function E9(u,f){if(u.da)u=!0;else{f=new Ur(f,this);const b=u.listener,N=u.ha||u.src;u.fa&&dw(u),u=b.call(N,f)}return u}function hw(u){return(u=u[uw])instanceof Wd?u:null}var pw="__closure_events_fn_"+(1e9*Math.random()>>>0);function fw(u){return"function"==typeof u?u:(u[pw]||(u[pw]=function(f){return u.handleEvent(f)}),u[pw])}function br(){le.call(this),this.i=new Wd(this),this.M=this,this.G=null}function Ar(u,f){var b,N=u.G;if(N)for(b=[];N;N=N.G)b.push(N);if(u=u.M,N=f.type||f,"string"==typeof f)f=new ue(f,u);else if(f instanceof ue)f.target=f.target||u;else{var ve=f;oP(f=new ue(N,u),ve)}let Se,et;if(ve=!0,b)for(et=b.length-1;et>=0;et--)Se=f.g=b[et],ve=Zd(Se,N,!0,f)&&ve;if(Se=f.g=u,ve=Zd(Se,N,!0,f)&&ve,ve=Zd(Se,N,!1,f)&&ve,b)for(et=0;et<b.length;et++)Se=f.g=b[et],ve=Zd(Se,N,!1,f)&&ve}function Zd(u,f,b,N){if(!(f=u.i.g[String(f)]))return!0;f=f.concat();let ve=!0;for(let Se=0;Se<f.length;++Se){const et=f[Se];if(et&&!et.da&&et.capture==b){const Rt=et.listener,Qn=et.ha||et.src;et.fa&&aw(u.i,et),ve=!1!==Rt.call(Qn,N)&&ve}}return ve&&!N.defaultPrevented}function lP(u){u.g=function I9(u,f){if("function"!=typeof u){if(!u||"function"!=typeof u.handleEvent)throw Error("Invalid listener argument");u=l(u.handleEvent,u)}return Number(f)>2147483647?-1:i.setTimeout(u,f||0)}(()=>{u.g=null,u.i&&(u.i=!1,lP(u))},u.l);const f=u.h;u.h=null,u.m.apply(null,f)}p(br,le),br.prototype[Os]=!0,br.prototype.removeEventListener=function(u,f,b,N){cP(this,u,f,b,N)},br.prototype.N=function(){if(br.Z.N.call(this),this.i){var u=this.i;for(const f in u.g){const b=u.g[f];for(let N=0;N<b.length;N++)Gd(b[N]);delete u.g[f],u.h--}}this.G=null},br.prototype.J=function(u,f,b,N){return this.i.add(String(u),f,!1,b,N)},br.prototype.K=function(u,f,b,N){return this.i.add(String(u),f,!0,b,N)};class T9 extends le{constructor(f,b){super(),this.m=f,this.l=b,this.h=null,this.i=!1,this.g=null}j(f){this.h=arguments,this.g?this.i=!0:lP(this)}N(){super.N(),this.g&&(i.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function gu(u){le.call(this),this.h=u,this.g={}}p(gu,le);var dP=[];function hP(u){Kd(u.g,function(f,b){this.g.hasOwnProperty(b)&&dw(f)},u),u.g={}}gu.prototype.N=function(){gu.Z.N.call(this),hP(this)},gu.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var mw=i.JSON.stringify,A9=i.JSON.parse,S9=class{stringify(u){return i.JSON.stringify(u,void 0)}parse(u){return i.JSON.parse(u,void 0)}};function pP(){}function fP(){}var _u={OPEN:"a",hb:"b",ERROR:"c",tb:"d"};function gw(){ue.call(this,"d")}function _w(){ue.call(this,"c")}p(gw,ue),p(_w,ue);var yi={},mP=null;function Qd(){return mP=mP||new br}function gP(u){ue.call(this,yi.Ia,u)}function yu(u){const f=Qd();Ar(f,new gP(f))}function _P(u,f){ue.call(this,yi.STAT_EVENT,u),this.stat=f}function Sr(u){const f=Qd();Ar(f,new _P(f,u))}function yP(u,f){ue.call(this,yi.Ja,u),this.size=f}function wu(u,f){if("function"!=typeof u)throw Error("Fn must not be null and must be a function");return i.setTimeout(function(){u()},f)}function vu(){this.g=!0}function Ea(u,f,b,N){u.info(function(){return"XMLHTTP TEXT ("+f+"): "+function C9(u,f){if(!u.g)return f;if(!f)return null;try{const Se=JSON.parse(f);if(Se)for(u=0;u<Se.length;u++)if(Array.isArray(Se[u])){var b=Se[u];if(!(b.length<2)){var N=b[1];if(Array.isArray(N)&&!(N.length<1)){var ve=N[0];if("noop"!=ve&&"stop"!=ve&&"close"!=ve)for(let et=1;et<N.length;et++)N[et]=""}}}return mw(Se)}catch{return f}}(u,b)+(N?" "+N:"")})}yi.Ia="serverreachability",p(gP,ue),yi.STAT_EVENT="statevent",p(_P,ue),yi.Ja="timingevent",p(yP,ue),vu.prototype.ua=function(){this.g=!1},vu.prototype.info=function(){};var vP,Jd={NO_ERROR:0,cb:1,qb:2,pb:3,kb:4,ob:5,rb:6,Ga:7,TIMEOUT:8,ub:9},wP={ib:"complete",Fb:"success",ERROR:"error",Ga:"abort",xb:"ready",yb:"readystatechange",TIMEOUT:"timeout",sb:"incrementaldata",wb:"progress",lb:"downloadprogress",Nb:"uploadprogress"};function yw(){}function bu(u){return encodeURIComponent(String(u))}function x9(u){var f=1;u=u.split(":");const b=[];for(;f>0&&u.length;)b.push(u.shift()),f--;return u.length&&b.push(u.join(":")),b}function $s(u,f,b,N){this.j=u,this.i=f,this.l=b,this.S=N||1,this.V=new gu(this),this.H=45e3,this.J=null,this.o=!1,this.u=this.B=this.A=this.M=this.F=this.T=this.D=null,this.G=[],this.g=null,this.C=0,this.m=this.v=null,this.X=-1,this.K=!1,this.P=0,this.O=null,this.W=this.L=this.U=this.R=!1,this.h=new bP}function bP(){this.i=null,this.g="",this.h=!1}p(yw,pP),yw.prototype.g=function(){return new XMLHttpRequest},vP=new yw;var EP={},ww={};function vw(u,f,b){u.M=1,u.A=Yd(Oo(f)),u.u=b,u.R=!0,IP(u,null)}function IP(u,f){u.F=Date.now(),Xd(u),u.B=Oo(u.A);var b=u.B,N=u.S;Array.isArray(N)||(N=[String(N)]),MP(b.i,"t",N),u.C=0,b=u.j.L,u.h=new bP,u.g=ek(u.j,b?f:null,!u.u),u.P>0&&(u.O=new T9(l(u.Y,u,u.g),u.P)),f=u.V,b=u.g,N=u.ba;var ve="readystatechange";Array.isArray(ve)||(ve&&(dP[0]=ve.toString()),ve=dP);for(let Se=0;Se<ve.length;Se++){const et=sP(b,ve[Se],N||f.handleEvent,!1,f.h||f);if(!et)break;f.g[et.key]=et}f=u.J?nP(u.J):{},u.u?(u.v||(u.v="POST"),f["Content-Type"]="application/x-www-form-urlencoded",u.g.ea(u.B,u.v,u.u,f)):(u.v="GET",u.g.ea(u.B,u.v,null,f)),yu(),function R9(u,f,b,N,ve,Se){u.info(function(){if(u.g)if(Se){var et="",Rt=Se.split("&");for(let nn=0;nn<Rt.length;nn++){var Qn=Rt[nn].split("=");if(Qn.length>1){const sr=Qn[0];Qn=Qn[1];const $o=sr.split("_");et=$o.length>=2&&"type"==$o[1]?et+(sr+"=")+Qn+"&":et+(sr+"=redacted&")}}}else et=null;else et=Se;return"XMLHTTP REQ ("+N+") [attempt "+ve+"]: "+f+"\n"+b+"\n"+et})}(u.i,u.v,u.B,u.l,u.S,u.u)}function TP(u){return!!u.g&&"GET"==u.v&&2!=u.M&&u.j.Aa}function O9(u,f){var b=u.C,N=f.indexOf("\n",b);return-1==N?ww:(b=Number(f.substring(b,N)),isNaN(b)?EP:(N+=1)+b>f.length?ww:(f=f.slice(N,N+b),u.C=N+b,f))}function Xd(u){u.T=Date.now()+u.H,AP(u,u.H)}function AP(u,f){if(null!=u.D)throw Error("WatchDog timer not null");u.D=wu(l(u.aa,u),f)}function bw(u){u.D&&(i.clearTimeout(u.D),u.D=null)}function Eu(u){0==u.j.I||u.K||QP(u.j,u)}function wi(u){bw(u);var f=u.O;f&&"function"==typeof f.dispose&&f.dispose(),u.O=null,hP(u.V),u.g&&(f=u.g,u.g=null,f.abort(),f.dispose())}function Ew(u,f){try{var b=u.j;if(0!=b.I&&(b.g==u||Iw(b.h,u)))if(!u.L&&Iw(b.h,u)&&3==b.I){try{var N=b.Ba.g.parse(f)}catch{N=null}if(Array.isArray(N)&&3==N.length){var ve=N;if(0==ve[0]){e:if(!b.v){if(b.g){if(!(b.g.F+3e3<u.F))break e;sh(b),rh(b)}Pw(b),Sr(18)}}else b.xa=ve[1],0<b.xa-b.K&&ve[2]<37500&&b.F&&0==b.A&&!b.C&&(b.C=wu(l(b.Va,b),6e3));PP(b.h)<=1&&b.ta&&(b.ta=void 0)}else bi(b,11)}else if((u.L||b.g==u)&&sh(b),!ne(f))for(ve=b.Ba.g.parse(f),f=0;f<ve.length;f++){let nn=ve[f];const sr=nn[0];if(!(sr<=b.K))if(b.K=sr,nn=nn[1],2==b.I)if("c"==nn[0]){b.M=nn[1],b.ba=nn[2];const $o=nn[3];null!=$o&&(b.ka=$o,b.j.info("VER="+b.ka));const Ei=nn[4];null!=Ei&&(b.za=Ei,b.j.info("SVER="+b.za));const Ls=nn[5];null!=Ls&&"number"==typeof Ls&&Ls>0&&(b.O=N=1.5*Ls,b.j.info("backChannelRequestTimeoutMs_="+N)),N=b;const Us=u.g;if(Us){const ah=Us.g?Us.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(ah){var Se=N.h;Se.g||-1==ah.indexOf("spdy")&&-1==ah.indexOf("quic")&&-1==ah.indexOf("h2")||(Se.j=Se.l,Se.g=new Set,Se.h&&(Tw(Se,Se.h),Se.h=null))}if(N.G){const Cw=Us.g?Us.g.getResponseHeader("X-HTTP-Session-Id"):null;Cw&&(N.wa=Cw,gn(N.J,N.G,Cw))}}b.I=3,b.l&&b.l.ra(),b.aa&&(b.T=Date.now()-u.F,b.j.info("Handshake RTT: "+b.T+"ms"));var et=u;if((N=b).na=YP(N,N.L?N.ba:null,N.W),et.L){kP(N.h,et);var Rt=et,Qn=N.O;Qn&&(Rt.H=Qn),Rt.D&&(bw(Rt),Xd(Rt)),N.g=et}else WP(N);b.i.length>0&&oh(b)}else"stop"!=nn[0]&&"close"!=nn[0]||bi(b,7);else 3==b.I&&("stop"==nn[0]||"close"==nn[0]?"stop"==nn[0]?bi(b,7):Rw(b):"noop"!=nn[0]&&b.l&&b.l.qa(nn),b.A=0)}yu()}catch{}}$s.prototype.ba=function(u){u=u.target;const f=this.O;f&&3==Vs(u)?f.j():this.Y(u)},$s.prototype.Y=function(u){try{if(u==this.g)e:{const Rt=Vs(this.g),Qn=this.g.ya();if(this.g.ca(),!(Rt<3)&&(3!=Rt||this.g&&(this.h.h||this.g.la()||qP(this.g)))){this.K||4!=Rt||7==Qn||yu(),bw(this);var f=this.g.ca();this.X=f;var b=function D9(u){if(!TP(u))return u.g.la();const f=qP(u.g);if(""===f)return"";let b="";const N=f.length,ve=4==Vs(u.g);if(!u.h.i){if(typeof TextDecoder>"u")return wi(u),Eu(u),"";u.h.i=new i.TextDecoder}for(let Se=0;Se<N;Se++)u.h.h=!0,b+=u.h.i.decode(f[Se],{stream:!(ve&&Se==N-1)});return f.length=0,u.h.g+=b,u.C=0,u.h.g}(this);if(this.o=200==f,function P9(u,f,b,N,ve,Se,et){u.info(function(){return"XMLHTTP RESP ("+N+") [ attempt "+ve+"]: "+f+"\n"+b+"\n"+Se+" "+et})}(this.i,this.v,this.B,this.l,this.S,Rt,f),this.o){if(this.U&&!this.L){t:{if(this.g){var N,ve=this.g;if((N=ve.g?ve.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!ne(N)){var Se=N;break t}}Se=null}if(!(u=Se)){this.o=!1,this.m=3,Sr(12),wi(this),Eu(this);break e}Ea(this.i,this.l,u,"Initial handshake response via X-HTTP-Initial-Response"),this.L=!0,Ew(this,u)}if(this.R){let sr;for(u=!0;!this.K&&this.C<b.length;){if(sr=O9(this,b),sr==ww){4==Rt&&(this.m=4,Sr(14),u=!1),Ea(this.i,this.l,null,"[Incomplete Response]");break}if(sr==EP){this.m=4,Sr(15),Ea(this.i,this.l,b,"[Invalid Chunk]"),u=!1;break}Ea(this.i,this.l,sr,null),Ew(this,sr)}if(TP(this)&&0!=this.C&&(this.h.g=this.h.g.slice(this.C),this.C=0),4!=Rt||0!=b.length||this.h.h||(this.m=1,Sr(16),u=!1),this.o=this.o&&u,u){if(b.length>0&&!this.W){this.W=!0;var et=this.j;et.g==this&&et.aa&&!et.P&&(et.j.info("Great, no buffering proxy detected. Bytes received: "+b.length),kw(et),et.P=!0,Sr(11))}}else Ea(this.i,this.l,b,"[Invalid Chunked Response]"),wi(this),Eu(this)}else Ea(this.i,this.l,b,null),Ew(this,b);4==Rt&&wi(this),this.o&&!this.K&&(4==Rt?QP(this.j,this):(this.o=!1,Xd(this)))}else(function K9(u){const f={};u=(u.g&&Vs(u)>=2&&u.g.getAllResponseHeaders()||"").split("\r\n");for(let N=0;N<u.length;N++){if(ne(u[N]))continue;var b=x9(u[N]);const ve=b[0];if("string"!=typeof(b=b[1]))continue;b=b.trim();const Se=f[ve]||[];f[ve]=Se,Se.push(b)}!function v9(u,f){for(const b in u)f.call(void 0,u[b],b,u)}(f,function(N){return N.join(", ")})})(this.g),400==f&&b.indexOf("Unknown SID")>0?(this.m=3,Sr(12)):(this.m=0,Sr(13)),wi(this),Eu(this)}}}catch{}},$s.prototype.cancel=function(){this.K=!0,wi(this)},$s.prototype.aa=function(){this.D=null;const u=Date.now();u-this.T>=0?(function k9(u,f){u.info(function(){return"TIMEOUT: "+f})}(this.i,this.B),2!=this.M&&(yu(),Sr(17)),wi(this),this.m=2,Eu(this)):AP(this,this.T-u)};var $9=class{constructor(u,f){this.g=u,this.map=f}};function SP(u){this.l=u||10,u=i.PerformanceNavigationTiming?(u=i.performance.getEntriesByType("navigation")).length>0&&("hq"==u[0].nextHopProtocol||"h2"==u[0].nextHopProtocol):!!(i.chrome&&i.chrome.loadTimes&&i.chrome.loadTimes()&&i.chrome.loadTimes().wasFetchedViaSpdy),this.j=u?this.l:1,this.g=null,this.j>1&&(this.g=new Set),this.h=null,this.i=[]}function RP(u){return!!u.h||!!u.g&&u.g.size>=u.j}function PP(u){return u.h?1:u.g?u.g.size:0}function Iw(u,f){return u.h?u.h==f:!!u.g&&u.g.has(f)}function Tw(u,f){u.g?u.g.add(f):u.h=f}function kP(u,f){u.h&&u.h==f?u.h=null:u.g&&u.g.has(f)&&u.g.delete(f)}function CP(u){if(null!=u.h)return u.i.concat(u.h.G);if(null!=u.g&&0!==u.g.size){let f=u.i;for(const b of u.g.values())f=f.concat(b.G);return f}return P(u.i)}SP.prototype.cancel=function(){if(this.i=CP(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&0!==this.g.size){for(const u of this.g.values())u.cancel();this.g.clear()}};var xP=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function Ns(u){let f;this.g=this.o=this.j="",this.u=null,this.m=this.h="",this.l=!1,u instanceof Ns?(this.l=u.l,Iu(this,u.j),this.o=u.o,this.g=u.g,Tu(this,u.u),this.h=u.h,Aw(this,VP(u.i)),this.m=u.m):u&&(f=String(u).match(xP))?(this.l=!1,Iu(this,f[1]||"",!0),this.o=Au(f[2]||""),this.g=Au(f[3]||"",!0),Tu(this,f[4]),this.h=Au(f[5]||"",!0),Aw(this,f[6]||"",!0),this.m=Au(f[7]||"")):(this.l=!1,this.i=new Ru(null,this.l))}function Oo(u){return new Ns(u)}function Iu(u,f,b){u.j=b?Au(f,!0):f,u.j&&(u.j=u.j.replace(/:$/,""))}function Tu(u,f){if(f){if(f=Number(f),isNaN(f)||f<0)throw Error("Bad port number "+f);u.u=f}else u.u=null}function Aw(u,f,b){f instanceof Ru?(u.i=f,function j9(u,f){f&&!u.j&&(vi(u),u.i=null,u.g.forEach(function(b,N){const ve=N.toLowerCase();N!=ve&&(OP(this,N),MP(this,ve,b))},u)),u.j=f}(u.i,u.l)):(b||(f=Su(f,U9)),u.i=new Ru(f,u.l))}function gn(u,f,b){u.i.set(f,b)}function Yd(u){return gn(u,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),u}function Au(u,f){return u?f?decodeURI(u.replace(/%25/g,"%2525")):decodeURIComponent(u):""}function Su(u,f,b){return"string"==typeof u?(u=encodeURI(u).replace(f,M9),b&&(u=u.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),u):null}function M9(u){return"%"+((u=u.charCodeAt(0))>>4&15).toString(16)+(15&u).toString(16)}Ns.prototype.toString=function(){const u=[];var f=this.j;f&&u.push(Su(f,DP,!0),":");var b=this.g;return(b||"file"==f)&&(u.push("//"),(f=this.o)&&u.push(Su(f,DP,!0),"@"),u.push(bu(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(b=this.u)&&u.push(":",String(b))),(b=this.h)&&(this.g&&"/"!=b.charAt(0)&&u.push("/"),u.push(Su(b,"/"==b.charAt(0)?L9:V9,!0))),(b=this.i.toString())&&u.push("?",b),(b=this.m)&&u.push("#",Su(b,F9)),u.join("")},Ns.prototype.resolve=function(u){const f=Oo(this);let b=!!u.j;b?Iu(f,u.j):b=!!u.o,b?f.o=u.o:b=!!u.g,b?f.g=u.g:b=null!=u.u;var N=u.h;if(b)Tu(f,u.u);else if(b=!!u.h){if("/"!=N.charAt(0))if(this.g&&!this.h)N="/"+N;else{var ve=f.h.lastIndexOf("/");-1!=ve&&(N=f.h.slice(0,ve+1)+N)}if(".."==(ve=N)||"."==ve)N="";else if(-1!=ve.indexOf("./")||-1!=ve.indexOf("/.")){N=0==ve.lastIndexOf("/",0),ve=ve.split("/");const Se=[];for(let et=0;et<ve.length;){const Rt=ve[et++];"."==Rt?N&&et==ve.length&&Se.push(""):".."==Rt?((Se.length>1||1==Se.length&&""!=Se[0])&&Se.pop(),N&&et==ve.length&&Se.push("")):(Se.push(Rt),N=!0)}N=Se.join("/")}else N=ve}return b?f.h=N:b=""!==u.i.toString(),b?Aw(f,VP(u.i)):b=!!u.m,b&&(f.m=u.m),f};var DP=/[#\/\?@]/g,V9=/[#\?:]/g,L9=/[#\?]/g,U9=/[#\?@]/g,F9=/#/g;function Ru(u,f){this.h=this.g=null,this.i=u||null,this.j=!!f}function vi(u){u.g||(u.g=new Map,u.h=0,u.i&&function N9(u,f){if(u){u=u.split("&");for(let b=0;b<u.length;b++){const N=u[b].indexOf("=");let ve,Se=null;N>=0?(ve=u[b].substring(0,N),Se=u[b].substring(N+1)):ve=u[b],f(ve,Se?decodeURIComponent(Se.replace(/\+/g," ")):"")}}}(u.i,function(f,b){u.add(decodeURIComponent(f.replace(/\+/g," ")),b)}))}function OP(u,f){vi(u),f=Ia(u,f),u.g.has(f)&&(u.i=null,u.h-=u.g.get(f).length,u.g.delete(f))}function $P(u,f){return vi(u),f=Ia(u,f),u.g.has(f)}function NP(u,f){vi(u);let b=[];if("string"==typeof f)$P(u,f)&&(b=b.concat(u.g.get(Ia(u,f))));else for(u=Array.from(u.g.values()),f=0;f<u.length;f++)b=b.concat(u[f]);return b}function MP(u,f,b){OP(u,f),b.length>0&&(u.i=null,u.g.set(Ia(u,f),P(b)),u.h+=b.length)}function VP(u){const f=new Ru;return f.i=u.i,u.g&&(f.g=new Map(u.g),f.h=u.h),f}function Ia(u,f){return f=String(f),u.j&&(f=f.toLowerCase()),f}function Ms(u,f,b,N,ve){try{ve&&(ve.onload=null,ve.onerror=null,ve.onabort=null,ve.ontimeout=null),N(b)}catch{}}function B9(){this.g=new S9}function eh(u){this.i=u.Sb||null,this.h=u.ab||!1}function th(u,f){br.call(this),this.H=u,this.o=f,this.m=void 0,this.status=this.readyState=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.A=new Headers,this.h=null,this.F="GET",this.D="",this.g=!1,this.B=this.j=this.l=null,this.v=new AbortController}function LP(u){u.j.read().then(u.Ma.bind(u)).catch(u.ga.bind(u))}function Pu(u){u.readyState=4,u.l=null,u.j=null,u.B=null,ku(u)}function ku(u){u.onreadystatechange&&u.onreadystatechange.call(u)}function UP(u){let f="";return Kd(u,function(b,N){f+=N,f+=":",f+=b,f+="\r\n"}),f}function Sw(u,f,b){e:{for(N in b){var N=!1;break e}N=!0}N||(b=UP(b),"string"==typeof u?null!=b&&bu(b):gn(u,f,b))}function $n(u){br.call(this),this.headers=new Map,this.L=u||null,this.h=!1,this.g=null,this.D="",this.o=0,this.l="",this.j=this.B=this.v=this.A=!1,this.m=null,this.F="",this.H=!1}(n=Ru.prototype).add=function(u,f){vi(this),this.i=null,u=Ia(this,u);let b=this.g.get(u);return b||this.g.set(u,b=[]),b.push(f),this.h+=1,this},n.forEach=function(u,f){vi(this),this.g.forEach(function(b,N){b.forEach(function(ve){u.call(f,ve,N,this)},this)},this)},n.set=function(u,f){return vi(this),this.i=null,$P(this,u=Ia(this,u))&&(this.h-=this.g.get(u).length),this.g.set(u,[f]),this.h+=1,this},n.get=function(u,f){return u&&(u=NP(this,u)).length>0?String(u[0]):f},n.toString=function(){if(this.i)return this.i;if(!this.g)return"";const u=[],f=Array.from(this.g.keys());for(let N=0;N<f.length;N++){var b=f[N];const ve=bu(b);b=NP(this,b);for(let Se=0;Se<b.length;Se++){let et=ve;""!==b[Se]&&(et+="="+bu(b[Se])),u.push(et)}}return this.i=u.join("&")},p(eh,pP),eh.prototype.g=function(){return new th(this.i,this.h)},p(th,br),(n=th.prototype).open=function(u,f){if(0!=this.readyState)throw this.abort(),Error("Error reopening a connection");this.F=u,this.D=f,this.readyState=1,ku(this)},n.send=function(u){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");if(this.v.signal.aborted)throw this.abort(),Error("Request was aborted.");this.g=!0;const f={headers:this.A,method:this.F,credentials:this.m,cache:void 0,signal:this.v.signal};u&&(f.body=u),(this.H||i).fetch(new Request(this.D,f)).then(this.Pa.bind(this),this.ga.bind(this))},n.abort=function(){this.response=this.responseText="",this.A=new Headers,this.status=0,this.v.abort(),this.j&&this.j.cancel("Request was aborted.").catch(()=>{}),this.readyState>=1&&this.g&&4!=this.readyState&&(this.g=!1,Pu(this)),this.readyState=0},n.Pa=function(u){if(this.g&&(this.l=u,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=u.headers,this.readyState=2,ku(this)),this.g&&(this.readyState=3,ku(this),this.g)))if("arraybuffer"===this.responseType)u.arrayBuffer().then(this.Na.bind(this),this.ga.bind(this));else if(typeof i.ReadableStream<"u"&&"body"in u){if(this.j=u.body.getReader(),this.o){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.B=new TextDecoder;LP(this)}else u.text().then(this.Oa.bind(this),this.ga.bind(this))},n.Ma=function(u){if(this.g){if(this.o&&u.value)this.response.push(u.value);else if(!this.o){var f=u.value?u.value:new Uint8Array(0);(f=this.B.decode(f,{stream:!u.done}))&&(this.response=this.responseText+=f)}u.done?Pu(this):ku(this),3==this.readyState&&LP(this)}},n.Oa=function(u){this.g&&(this.response=this.responseText=u,Pu(this))},n.Na=function(u){this.g&&(this.response=u,Pu(this))},n.ga=function(){this.g&&Pu(this)},n.setRequestHeader=function(u,f){this.A.append(u,f)},n.getResponseHeader=function(u){return this.h&&this.h.get(u.toLowerCase())||""},n.getAllResponseHeaders=function(){if(!this.h)return"";const u=[],f=this.h.entries();for(var b=f.next();!b.done;)u.push((b=b.value)[0]+": "+b[1]),b=f.next();return u.join("\r\n")},Object.defineProperty(th.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(u){this.m=u?"include":"same-origin"}}),p($n,br);var H9=/^https?$/i,G9=["POST","PUT"];function FP(u,f){u.h=!1,u.g&&(u.j=!0,u.g.abort(),u.j=!1),u.l=f,u.o=5,jP(u),nh(u)}function jP(u){u.A||(u.A=!0,Ar(u,"complete"),Ar(u,"error"))}function zP(u){if(u.h&&typeof s<"u")if(u.v&&4==Vs(u))setTimeout(u.Ca.bind(u),0);else if(Ar(u,"readystatechange"),4==Vs(u)){u.h=!1;try{const Se=u.ca();e:switch(Se){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var f=!0;break e;default:f=!1}var b;if(!(b=f)){var N;if(N=0===Se){let et=String(u.D).match(xP)[1]||null;!et&&i.self&&i.self.location&&(et=i.self.location.protocol.slice(0,-1)),N=!H9.test(et?et.toLowerCase():"")}b=N}if(b)Ar(u,"complete"),Ar(u,"success");else{u.o=6;try{var ve=Vs(u)>2?u.g.statusText:""}catch{ve=""}u.l=ve+" ["+u.ca()+"]",jP(u)}}finally{nh(u)}}}function nh(u,f){if(u.g){u.m&&(clearTimeout(u.m),u.m=null);const b=u.g;u.g=null,f||Ar(u,"ready");try{b.onreadystatechange=null}catch{}}}function Vs(u){return u.g?u.g.readyState:0}function qP(u){try{if(!u.g)return null;if("response"in u.g)return u.g.response;switch(u.F){case"":case"text":return u.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in u.g)return u.g.mozResponseArrayBuffer}return null}catch{return null}}function Cu(u,f,b){return b&&b.internalChannelParams&&b.internalChannelParams[u]||f}function BP(u){this.za=0,this.i=[],this.j=new vu,this.ba=this.na=this.J=this.W=this.g=this.wa=this.G=this.H=this.u=this.U=this.o=null,this.Ya=this.V=0,this.Sa=Cu("failFast",!1,u),this.F=this.C=this.v=this.m=this.l=null,this.X=!0,this.xa=this.K=-1,this.Y=this.A=this.D=0,this.Qa=Cu("baseRetryDelayMs",5e3,u),this.Za=Cu("retryDelaySeedMs",1e4,u),this.Ta=Cu("forwardChannelMaxRetries",2,u),this.va=Cu("forwardChannelRequestTimeoutMs",2e4,u),this.ma=u&&u.xmlHttpFactory||void 0,this.Ua=u&&u.Rb||void 0,this.Aa=u&&u.useFetchStreams||!1,this.O=void 0,this.L=u&&u.supportsCrossDomainXhr||!1,this.M="",this.h=new SP(u&&u.concurrentRequestLimit),this.Ba=new B9,this.S=u&&u.fastHandshake||!1,this.R=u&&u.encodeInitMessageHeaders||!1,this.S&&this.R&&(this.R=!1),this.Ra=u&&u.Pb||!1,u&&u.ua&&this.j.ua(),u&&u.forceLongPolling&&(this.X=!1),this.aa=!this.S&&this.X&&u&&u.detectBufferingProxy||!1,this.ia=void 0,u&&u.longPollingTimeout&&u.longPollingTimeout>0&&(this.ia=u.longPollingTimeout),this.ta=void 0,this.T=0,this.P=!1,this.ja=this.B=null}function Rw(u){if(HP(u),3==u.I){var f=u.V++,b=Oo(u.J);if(gn(b,"SID",u.M),gn(b,"RID",f),gn(b,"TYPE","terminate"),xu(u,b),(f=new $s(u,u.j,f)).M=2,f.A=Yd(Oo(b)),b=!1,i.navigator&&i.navigator.sendBeacon)try{b=i.navigator.sendBeacon(f.A.toString(),"")}catch{}!b&&i.Image&&((new Image).src=f.A,b=!0),b||(f.g=ek(f.j,null),f.g.ea(f.A)),f.F=Date.now(),Xd(f)}XP(u)}function rh(u){u.g&&(kw(u),u.g.cancel(),u.g=null)}function HP(u){rh(u),u.v&&(i.clearTimeout(u.v),u.v=null),sh(u),u.h.cancel(),u.m&&("number"==typeof u.m&&i.clearTimeout(u.m),u.m=null)}function oh(u){if(!RP(u.h)&&!u.m){u.m=!0;var f=u.Ea;pt||B(),_t||(pt(),_t=!0),se.add(f,u),u.D=0}}function GP(u,f){var b;b=f?f.l:u.V++;const N=Oo(u.J);gn(N,"SID",u.M),gn(N,"RID",b),gn(N,"AID",u.K),xu(u,N),u.u&&u.o&&Sw(N,u.u,u.o),b=new $s(u,u.j,b,u.D+1),null===u.u&&(b.J=u.o),f&&(u.i=f.G.concat(u.i)),f=KP(u,b,1e3),b.H=Math.round(.5*u.va)+Math.round(.5*u.va*Math.random()),Tw(u.h,b),vw(b,N,f)}function xu(u,f){u.H&&Kd(u.H,function(b,N){gn(f,N,b)}),u.l&&Kd({},function(b,N){gn(f,N,b)})}function KP(u,f,b){b=Math.min(u.i.length,b);const N=u.l?l(u.l.Ka,u.l,u):null;e:{var ve=u.i;let Rt=-1;for(;;){const Qn=["count="+b];-1==Rt?b>0?(Rt=ve[0].g,Qn.push("ofs="+Rt)):Rt=0:Qn.push("ofs="+Rt);let nn=!0;for(let sr=0;sr<b;sr++){var Se=ve[sr].g;const $o=ve[sr].map;if((Se-=Rt)<0)Rt=Math.max(0,ve[sr].g-100),nn=!1;else try{Se="req"+Se+"_"||0;try{var et=$o instanceof Map?$o:Object.entries($o);for(const[Ei,Ls]of et){let Us=Ls;a(Ls)&&(Us=mw(Ls)),Qn.push(Se+Ei+"="+encodeURIComponent(Us))}}catch(Ei){throw Qn.push(Se+"type="+encodeURIComponent("_badmap")),Ei}}catch{N&&N($o)}}if(nn){et=Qn.join("&");break e}}et=void 0}return u=u.i.splice(0,b),f.G=u,et}function WP(u){if(!u.g&&!u.v){u.Y=1;var f=u.Da;pt||B(),_t||(pt(),_t=!0),se.add(f,u),u.A=0}}function Pw(u){return!(u.g||u.v||u.A>=3||(u.Y++,u.v=wu(l(u.Da,u),JP(u,u.A)),u.A++,0))}function kw(u){null!=u.B&&(i.clearTimeout(u.B),u.B=null)}function ZP(u){u.g=new $s(u,u.j,"rpc",u.Y),null===u.u&&(u.g.J=u.o),u.g.P=0;var f=Oo(u.na);gn(f,"RID","rpc"),gn(f,"SID",u.M),gn(f,"AID",u.K),gn(f,"CI",u.F?"0":"1"),!u.F&&u.ia&&gn(f,"TO",u.ia),gn(f,"TYPE","xmlhttp"),xu(u,f),u.u&&u.o&&Sw(f,u.u,u.o),u.O&&(u.g.H=u.O);var b=u.g;u=u.ba,b.M=1,b.A=Yd(Oo(f)),b.u=null,b.R=!0,IP(b,u)}function sh(u){null!=u.C&&(i.clearTimeout(u.C),u.C=null)}function QP(u,f){var b=null;if(u.g==f){sh(u),kw(u),u.g=null;var N=2}else{if(!Iw(u.h,f))return;b=f.G,kP(u.h,f),N=1}if(0!=u.I)if(f.o)if(1==N){b=f.u?f.u.length:0,f=Date.now()-f.F;var ve=u.D;Ar(N=Qd(),new yP(N,b)),oh(u)}else WP(u);else if(3==(ve=f.m)||0==ve&&f.X>0||!(1==N&&function W9(u,f){return!(PP(u.h)>=u.h.j-(u.m?1:0)||(u.m?(u.i=f.G.concat(u.i),0):1==u.I||2==u.I||u.D>=(u.Sa?0:u.Ta)||(u.m=wu(l(u.Ea,u,f),JP(u,u.D)),u.D++,0)))}(u,f)||2==N&&Pw(u)))switch(b&&b.length>0&&(f=u.h,f.i=f.i.concat(b)),ve){case 1:bi(u,5);break;case 4:bi(u,10);break;case 3:bi(u,6);break;default:bi(u,2)}}function JP(u,f){let b=u.Qa+Math.floor(Math.random()*u.Za);return u.isActive()||(b*=2),b*f}function bi(u,f){if(u.j.info("Error code "+f),2==f){var b=l(u.bb,u),N=u.Ua;const ve=!N;N=new Ns(N||"//www.google.com/images/cleardot.gif"),i.location&&"http"==i.location.protocol||Iu(N,"https"),Yd(N),ve?function z9(u,f){const b=new vu;if(i.Image){const N=new Image;N.onload=h(Ms,b,"TestLoadImage: loaded",!0,f,N),N.onerror=h(Ms,b,"TestLoadImage: error",!1,f,N),N.onabort=h(Ms,b,"TestLoadImage: abort",!1,f,N),N.ontimeout=h(Ms,b,"TestLoadImage: timeout",!1,f,N),i.setTimeout(function(){N.ontimeout&&N.ontimeout()},1e4),N.src=u}else f(!1)}(N.toString(),b):function q9(u,f){new vu;const N=new AbortController,ve=setTimeout(()=>{N.abort(),Ms(0,0,!1,f)},1e4);fetch(u,{signal:N.signal}).then(Se=>{clearTimeout(ve),Ms(0,0,!!Se.ok,f)}).catch(()=>{clearTimeout(ve),Ms(0,0,!1,f)})}(N.toString(),b)}else Sr(2);u.I=0,u.l&&u.l.pa(f),XP(u),HP(u)}function XP(u){if(u.I=0,u.ja=[],u.l){const f=CP(u.h);(0!=f.length||0!=u.i.length)&&(K(u.ja,f),K(u.ja,u.i),u.h.i.length=0,P(u.i),u.i.length=0),u.l.oa()}}function YP(u,f,b){var N=b instanceof Ns?Oo(b):new Ns(b);if(""!=N.g)f&&(N.g=f+"."+N.g),Tu(N,N.u);else{var ve=i.location;N=ve.protocol,f=f?f+"."+ve.hostname:ve.hostname,ve=+ve.port;const Se=new Ns(null);N&&Iu(Se,N),f&&(Se.g=f),ve&&Tu(Se,ve),b&&(Se.h=b),N=Se}return f=u.wa,(b=u.G)&&f&&gn(N,b,f),gn(N,"VER",u.ka),xu(u,N),N}function ek(u,f,b){if(f&&!u.L)throw Error("Can't create secondary domain capable XhrIo object.");return(f=new $n(u.Aa&&!u.ma?new eh({ab:b}):u.ma)).Fa(u.L),f}function tk(){}function ih(){}function Yr(u,f){br.call(this),this.g=new BP(f),this.l=u,this.h=f&&f.messageUrlParams||null,u=f&&f.messageHeaders||null,f&&f.clientProtocolHeaderRequired&&(u?u["X-Client-Protocol"]="webchannel":u={"X-Client-Protocol":"webchannel"}),this.g.o=u,u=f&&f.initMessageHeaders||null,f&&f.messageContentType&&(u?u["X-WebChannel-Content-Type"]=f.messageContentType:u={"X-WebChannel-Content-Type":f.messageContentType}),f&&f.sa&&(u?u["X-WebChannel-Client-Profile"]=f.sa:u={"X-WebChannel-Client-Profile":f.sa}),this.g.U=u,(u=f&&f.Qb)&&!ne(u)&&(this.g.u=u),this.A=f&&f.supportsCrossDomainXhr||!1,this.v=f&&f.sendRawJson||!1,(f=f&&f.httpSessionIdParam)&&!ne(f)&&(this.g.G=f,null!==(u=this.h)&&f in u&&f in(u=this.h)&&delete u[f]),this.j=new Ta(this)}function nk(u){gw.call(this),u.__headers__&&(this.headers=u.__headers__,this.statusCode=u.__status__,delete u.__headers__,delete u.__status__);var f=u.__sm__;if(f){e:{for(const b in f){u=b;break e}u=void 0}(this.i=u)&&(u=this.i,f=null!==f&&u in f?f[u]:void 0),this.data=f}else this.data=u}function rk(){_w.call(this),this.status=1}function Ta(u){this.g=u}(n=$n.prototype).Fa=function(u){this.H=u},n.ea=function(u,f,b,N){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+u);f=f?f.toUpperCase():"GET",this.D=u,this.l="",this.o=0,this.A=!1,this.h=!0,this.g=this.L?this.L.g():vP.g(),this.g.onreadystatechange=y(l(this.Ca,this));try{this.B=!0,this.g.open(f,String(u),!0),this.B=!1}catch(Se){return void FP(this,Se)}if(u=b||"",b=new Map(this.headers),N)if(Object.getPrototypeOf(N)===Object.prototype)for(var ve in N)b.set(ve,N[ve]);else{if("function"!=typeof N.keys||"function"!=typeof N.get)throw Error("Unknown input type for opt_headers: "+String(N));for(const Se of N.keys())b.set(Se,N.get(Se))}N=Array.from(b.keys()).find(Se=>"content-type"==Se.toLowerCase()),ve=i.FormData&&u instanceof i.FormData,!(Array.prototype.indexOf.call(G9,f,void 0)>=0)||N||ve||b.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[Se,et]of b)this.g.setRequestHeader(Se,et);this.F&&(this.g.responseType=this.F),"withCredentials"in this.g&&this.g.withCredentials!==this.H&&(this.g.withCredentials=this.H);try{this.m&&(clearTimeout(this.m),this.m=null),this.v=!0,this.g.send(u),this.v=!1}catch(Se){FP(this,Se)}},n.abort=function(u){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.o=u||7,Ar(this,"complete"),Ar(this,"abort"),nh(this))},n.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),nh(this,!0)),$n.Z.N.call(this)},n.Ca=function(){this.u||(this.B||this.v||this.j?zP(this):this.Xa())},n.Xa=function(){zP(this)},n.isActive=function(){return!!this.g},n.ca=function(){try{return Vs(this)>2?this.g.status:-1}catch{return-1}},n.la=function(){try{return this.g?this.g.responseText:""}catch{return""}},n.La=function(u){if(this.g){var f=this.g.responseText;return u&&0==f.indexOf(u)&&(f=f.substring(u.length)),A9(f)}},n.ya=function(){return this.o},n.Ha=function(){return"string"==typeof this.l?this.l:String(this.l)},(n=BP.prototype).ka=8,n.I=1,n.connect=function(u,f,b,N){Sr(0),this.W=u,this.H=f||{},b&&void 0!==N&&(this.H.OSID=b,this.H.OAID=N),this.F=this.X,this.J=YP(this,null,this.W),oh(this)},n.Ea=function(u){if(this.m)if(this.m=null,1==this.I){if(!u){this.V=Math.floor(1e5*Math.random()),u=this.V++;const ve=new $s(this,this.j,u);let Se=this.o;if(this.U&&(Se?(Se=nP(Se),oP(Se,this.U)):Se=this.U),null!==this.u||this.R||(ve.J=Se,Se=null),this.S)e:{for(var f=0,b=0;b<this.i.length;b++){var N=this.i[b];if(void 0===(N="__data__"in N.map&&"string"==typeof(N=N.map.__data__)?N.length:void 0))break;if((f+=N)>4096){f=b;break e}if(4096===f||b===this.i.length-1){f=b+1;break e}}f=1e3}else f=1e3;f=KP(this,ve,f),gn(b=Oo(this.J),"RID",u),gn(b,"CVER",22),this.G&&gn(b,"X-HTTP-Session-Id",this.G),xu(this,b),Se&&(this.R?f="headers="+bu(UP(Se))+"&"+f:this.u&&Sw(b,this.u,Se)),Tw(this.h,ve),this.Ra&&gn(b,"TYPE","init"),this.S?(gn(b,"$req",f),gn(b,"SID","null"),ve.U=!0,vw(ve,b,null)):vw(ve,b,f),this.I=2}}else 3==this.I&&(u?GP(this,u):0==this.i.length||RP(this.h)||GP(this))},n.Da=function(){if(this.v=null,ZP(this),this.aa&&!(this.P||null==this.g||this.T<=0)){var u=4*this.T;this.j.info("BP detection timer enabled: "+u),this.B=wu(l(this.Wa,this),u)}},n.Wa=function(){this.B&&(this.B=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.F=!1,this.P=!0,Sr(10),rh(this),ZP(this))},n.Va=function(){null!=this.C&&(this.C=null,rh(this),Pw(this),Sr(19))},n.bb=function(u){u?(this.j.info("Successfully pinged google.com"),Sr(2)):(this.j.info("Failed to ping google.com"),Sr(1))},n.isActive=function(){return!!this.l&&this.l.isActive(this)},(n=tk.prototype).ra=function(){},n.qa=function(){},n.pa=function(){},n.oa=function(){},n.isActive=function(){return!0},n.Ka=function(){},ih.prototype.g=function(u,f){return new Yr(u,f)},p(Yr,br),Yr.prototype.m=function(){this.g.l=this.j,this.A&&(this.g.L=!0),this.g.connect(this.l,this.h||void 0)},Yr.prototype.close=function(){Rw(this.g)},Yr.prototype.o=function(u){var f=this.g;if("string"==typeof u){var b={};b.__data__=u,u=b}else this.v&&((b={}).__data__=mw(u),u=b);f.i.push(new $9(f.Ya++,u)),3==f.I&&oh(f)},Yr.prototype.N=function(){this.g.l=null,delete this.j,Rw(this.g),delete this.g,Yr.Z.N.call(this)},p(nk,gw),p(rk,_w),p(Ta,tk),Ta.prototype.ra=function(){Ar(this.g,"a")},Ta.prototype.qa=function(u){Ar(this.g,new nk(u))},Ta.prototype.pa=function(u){Ar(this.g,new rk)},Ta.prototype.oa=function(){Ar(this.g,"b")},ih.prototype.createWebChannel=ih.prototype.g,Yr.prototype.send=Yr.prototype.o,Yr.prototype.open=Yr.prototype.m,Yr.prototype.close=Yr.prototype.close,wo=Yn.createWebChannelTransport=function(){return new ih},Fs=Yn.getStatEventTarget=function(){return Qd()},yo=Yn.Event=yi,kr=Yn.Stat={jb:0,mb:1,nb:2,Hb:3,Mb:4,Jb:5,Kb:6,Ib:7,Gb:8,Lb:9,PROXY:10,NOPROXY:11,Eb:12,Ab:13,Bb:14,zb:15,Cb:16,Db:17,fb:18,eb:19,gb:20},Jd.NO_ERROR=0,Jd.TIMEOUT=8,Jd.HTTP_ERROR=6,ns=Yn.ErrorCode=Jd,wP.COMPLETE="complete",eo=Yn.EventType=wP,fP.EventType=_u,_u.OPEN="a",_u.CLOSE="b",_u.ERROR="c",_u.MESSAGE="d",br.prototype.listen=br.prototype.J,Qt=Yn.WebChannel=fP,Yn.FetchXmlHttpFactory=eh,$n.prototype.listenOnce=$n.prototype.K,$n.prototype.getLastError=$n.prototype.Ha,$n.prototype.getLastErrorCode=$n.prototype.ya,$n.prototype.getStatus=$n.prototype.ca,$n.prototype.getResponseJson=$n.prototype.La,$n.prototype.getResponseText=$n.prototype.la,$n.prototype.send=$n.prototype.ea,$n.prototype.setWithCredentials=$n.prototype.Fa,Mo=Yn.XhrIo=$n}).apply(typeof Pr<"u"?Pr:typeof self<"u"?self:typeof window<"u"?window:{});class zt{constructor(e){this.uid=e}isAuthenticated(){return null!=this.uid}toKey(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"}isEqual(e){return e.uid===this.uid}}zt.UNAUTHENTICATED=new zt(null),zt.GOOGLE_CREDENTIALS=new zt("google-credentials-uid"),zt.FIRST_PARTY=new zt("first-party-uid"),zt.MOCK_USER=new zt("mock-user");let zn="12.8.0";const W=new rn.Vy("@firebase/firestore");function H(n,...e){if(W.logLevel<=rn.$b.DEBUG){const t=e.map(qt);W.debug(`Firestore (${zn}): ${n}`,...t)}}function Ze(n,...e){if(W.logLevel<=rn.$b.ERROR){const t=e.map(qt);W.error(`Firestore (${zn}): ${n}`,...t)}}function mt(n,...e){if(W.logLevel<=rn.$b.WARN){const t=e.map(qt);W.warn(`Firestore (${zn}): ${n}`,...t)}}function qt(n){if("string"==typeof n)return n;try{return JSON.stringify(n)}catch{return n}}function Be(n,e,t){let r="Unexpected state";"string"==typeof e?r=e:t=e,on(n,r,t)}function on(n,e,t){let r=`FIRESTORE (${zn}) INTERNAL ASSERTION FAILED: ${e} (ID: ${n.toString(16)})`;if(void 0!==t)try{r+=" CONTEXT: "+JSON.stringify(t)}catch{r+=" CONTEXT: "+t}throw Ze(r),new Error(r)}function Xe(n,e,t,r){let o="Unexpected state";"string"==typeof t?o=t:r=t,n||on(e,o,r)}const be={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"};class Ne extends ut.g{constructor(e,t){super(e,t),this.code=e,this.message=t,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}class Yt{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}class Tn{constructor(e,t){this.user=t,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${e}`)}}class Eo{getToken(){return Promise.resolve(null)}invalidateToken(){}start(e,t){e.enqueueRetryable(()=>t(zt.UNAUTHENTICATED))}shutdown(){}}class Cr{constructor(e){this.t=e,this.currentUser=zt.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(e,t){var r=this;Xe(void 0===this.o,42304);let o=this.i;const s=l=>this.i!==o?(o=this.i,t(l)):Promise.resolve();let i=new Yt;this.o=()=>{this.i++,this.currentUser=this.u(),i.resolve(),i=new Yt,e.enqueueRetryable(()=>s(this.currentUser))};const a=()=>{const l=i;e.enqueueRetryable((0,d.A)(function*(){yield l.promise,yield s(r.currentUser)}))},c=l=>{H("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=l,this.o&&(this.auth.addAuthTokenListener(this.o),a())};this.t.onInit(l=>c(l)),setTimeout(()=>{if(!this.auth){const l=this.t.getImmediate({optional:!0});l?c(l):(H("FirebaseAuthCredentialsProvider","Auth not yet detected"),i.resolve(),i=new Yt)}},0),a()}getToken(){const e=this.i,t=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(t).then(r=>this.i!==e?(H("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):r?(Xe("string"==typeof r.accessToken,31837,{l:r}),new Tn(r.accessToken,this.currentUser)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.auth&&this.o&&this.auth.removeAuthTokenListener(this.o),this.o=void 0}u(){const e=this.auth&&this.auth.getUid();return Xe(null===e||"string"==typeof e,2055,{h:e}),new zt(e)}}class is{constructor(e,t,r){this.P=e,this.T=t,this.I=r,this.type="FirstParty",this.user=zt.FIRST_PARTY,this.R=new Map}A(){return this.I?this.I():null}get headers(){this.R.set("X-Goog-AuthUser",this.P);const e=this.A();return e&&this.R.set("Authorization",e),this.T&&this.R.set("X-Goog-Iam-Authorization-Token",this.T),this.R}}class we{constructor(e,t,r){this.P=e,this.T=t,this.I=r}getToken(){return Promise.resolve(new is(this.P,this.T,this.I))}start(e,t){e.enqueueRetryable(()=>t(zt.FIRST_PARTY))}shutdown(){}invalidateToken(){}}class pe{constructor(e){this.value=e,this.type="AppCheck",this.headers=new Map,e&&e.length>0&&this.headers.set("x-firebase-appcheck",this.value)}}class ke{constructor(e,t){this.V=t,this.forceRefresh=!1,this.appCheck=null,this.m=null,this.p=null,(0,$.xZ)(e)&&e.settings.appCheckToken&&(this.p=e.settings.appCheckToken)}start(e,t){Xe(void 0===this.o,3512);const r=s=>{null!=s.error&&H("FirebaseAppCheckTokenProvider",`Error getting App Check token; using placeholder token instead. Error: ${s.error.message}`);const i=s.token!==this.m;return this.m=s.token,H("FirebaseAppCheckTokenProvider",`Received ${i?"new":"existing"} token.`),i?t(s.token):Promise.resolve()};this.o=s=>{e.enqueueRetryable(()=>r(s))};const o=s=>{H("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=s,this.o&&this.appCheck.addTokenListener(this.o)};this.V.onInit(s=>o(s)),setTimeout(()=>{if(!this.appCheck){const s=this.V.getImmediate({optional:!0});s?o(s):H("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}},0)}getToken(){if(this.p)return Promise.resolve(new pe(this.p));const e=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(e).then(t=>t?(Xe("string"==typeof t.token,44558,{tokenResult:t}),this.m=t.token,new pe(t.token)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.o&&this.appCheck.removeTokenListener(this.o),this.o=void 0}}function gt(n){const e=typeof self<"u"&&(self.crypto||self.msCrypto),t=new Uint8Array(n);if(e&&"function"==typeof e.getRandomValues)e.getRandomValues(t);else for(let r=0;r<n;r++)t[r]=Math.floor(256*Math.random());return t}class Et{static newId(){const t=62*Math.floor(4.129032258064516);let r="";for(;r.length<20;){const o=gt(40);for(let s=0;s<o.length;++s)r.length<20&&o[s]<t&&(r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(o[s]%62))}return r}}function Ke(n,e){return n<e?-1:n>e?1:0}function zr(n){const e=n.charCodeAt(0);return e>=55296&&e<=57343}const Sa="__name__";class qr{constructor(e,t,r){void 0===t?t=0:t>e.length&&Be(637,{offset:t,range:e.length}),void 0===r?r=e.length-t:r>e.length-t&&Be(1746,{length:r,range:e.length-t}),this.segments=e,this.offset=t,this.len=r}get length(){return this.len}isEqual(e){return 0===qr.comparator(this,e)}child(e){const t=this.segments.slice(this.offset,this.limit());return e instanceof qr?e.forEach(r=>{t.push(r)}):t.push(e),this.construct(t)}limit(){return this.offset+this.length}popFirst(e){return this.construct(this.segments,this.offset+(e=void 0===e?1:e),this.length-e)}popLast(){return this.construct(this.segments,this.offset,this.length-1)}firstSegment(){return this.segments[this.offset]}lastSegment(){return this.get(this.length-1)}get(e){return this.segments[this.offset+e]}isEmpty(){return 0===this.length}isPrefixOf(e){if(e.length<this.length)return!1;for(let t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0}isImmediateParentOf(e){if(this.length+1!==e.length)return!1;for(let t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0}forEach(e){for(let t=this.offset,r=this.limit();t<r;t++)e(this.segments[t])}toArray(){return this.segments.slice(this.offset,this.limit())}static comparator(e,t){const r=Math.min(e.length,t.length);for(let o=0;o<r;o++){const s=qr.compareSegments(e.get(o),t.get(o));if(0!==s)return s}return Ke(e.length,t.length)}static compareSegments(e,t){const r=qr.isNumericId(e),o=qr.isNumericId(t);return r&&!o?-1:!r&&o?1:r&&o?qr.extractNumericId(e).compare(qr.extractNumericId(t)):function Vn(n,e){const t=Math.min(n.length,e.length);for(let r=0;r<t;r++){const o=n.charAt(r),s=e.charAt(r);if(o!==s)return zr(o)===zr(s)?Ke(o,s):zr(o)?1:-1}return Ke(n.length,e.length)}(e,t)}static isNumericId(e){return e.startsWith("__id")&&e.endsWith("__")}static extractNumericId(e){return Jn.fromString(e.substring(4,e.length-2))}}class Tt extends qr{construct(e,t,r){return new Tt(e,t,r)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}toUriEncodedString(){return this.toArray().map(encodeURIComponent).join("/")}static fromString(...e){const t=[];for(const r of e){if(r.indexOf("//")>=0)throw new Ne(be.INVALID_ARGUMENT,`Invalid segment (${r}). Paths must not contain // in them.`);t.push(...r.split("/").filter(o=>o.length>0))}return new Tt(t)}static emptyPath(){return new Tt([])}}const $u=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class Jt extends qr{construct(e,t,r){return new Jt(e,t,r)}static isValidIdentifier(e){return $u.test(e)}canonicalString(){return this.toArray().map(e=>(e=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),Jt.isValidIdentifier(e)||(e="`"+e+"`"),e)).join(".")}toString(){return this.canonicalString()}isKeyField(){return 1===this.length&&this.get(0)===Sa}static keyField(){return new Jt([Sa])}static fromServerFormat(e){const t=[];let r="",o=0;const s=()=>{if(0===r.length)throw new Ne(be.INVALID_ARGUMENT,`Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`);t.push(r),r=""};let i=!1;for(;o<e.length;){const a=e[o];if("\\"===a){if(o+1===e.length)throw new Ne(be.INVALID_ARGUMENT,"Path has trailing escape character: "+e);const c=e[o+1];if("\\"!==c&&"."!==c&&"`"!==c)throw new Ne(be.INVALID_ARGUMENT,"Path has invalid escape sequence: "+e);r+=c,o+=2}else"`"===a?(i=!i,o++):"."!==a||i?(r+=a,o++):(s(),o++)}if(s(),i)throw new Ne(be.INVALID_ARGUMENT,"Unterminated ` in path: "+e);return new Jt(t)}static emptyPath(){return new Jt([])}}class Ye{constructor(e){this.path=e}static fromPath(e){return new Ye(Tt.fromString(e))}static fromName(e){return new Ye(Tt.fromString(e).popFirst(5))}static empty(){return new Ye(Tt.emptyPath())}get collectionGroup(){return this.path.popLast().lastSegment()}hasCollectionId(e){return this.path.length>=2&&this.path.get(this.path.length-2)===e}getCollectionGroup(){return this.path.get(this.path.length-2)}getCollectionPath(){return this.path.popLast()}isEqual(e){return null!==e&&0===Tt.comparator(this.path,e.path)}toString(){return this.path.toString()}static comparator(e,t){return Tt.comparator(e.path,t.path)}static isDocumentKey(e){return e.length%2==0}static fromSegments(e){return new Ye(new Tt(e.slice()))}}function Dn(n,e){const t={typeString:n};return e&&(t.value=e),t}function Vo(n,e){if(!function ka(n){return"object"==typeof n&&null!==n&&(Object.getPrototypeOf(n)===Object.prototype||null===Object.getPrototypeOf(n))}(n))throw new Ne(be.INVALID_ARGUMENT,"JSON must be an object");let t;for(const r in e)if(e[r]){const o=e[r].typeString,s="value"in e[r]?{value:e[r].value}:void 0;if(!(r in n)){t=`JSON missing required field: '${r}'`;break}const i=n[r];if(o&&typeof i!==o){t=`JSON field '${r}' must be a ${o}.`;break}if(void 0!==s&&i!==s.value){t=`Expected '${r}' field to equal '${s.value}'`;break}}if(t)throw new Ne(be.INVALID_ARGUMENT,t);return!0}const Ca=-62135596800;class Ut{static now(){return Ut.fromMillis(Date.now())}static fromDate(e){return Ut.fromMillis(e.getTime())}static fromMillis(e){const t=Math.floor(e/1e3),r=Math.floor(1e6*(e-1e3*t));return new Ut(t,r)}constructor(e,t){if(this.seconds=e,this.nanoseconds=t,t<0)throw new Ne(be.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(t>=1e9)throw new Ne(be.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(e<Ca)throw new Ne(be.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e);if(e>=253402300800)throw new Ne(be.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/1e6}_compareTo(e){return this.seconds===e.seconds?Ke(this.nanoseconds,e.nanoseconds):Ke(this.seconds,e.seconds)}isEqual(e){return e.seconds===this.seconds&&e.nanoseconds===this.nanoseconds}toString(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"}toJSON(){return{type:Ut._jsonSchemaVersion,seconds:this.seconds,nanoseconds:this.nanoseconds}}static fromJSON(e){if(Vo(e,Ut._jsonSchema))return new Ut(e.seconds,e.nanoseconds)}valueOf(){return String(this.seconds-Ca).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}}Ut._jsonSchemaVersion="firestore/timestamp/1.0",Ut._jsonSchema={type:Dn("string",Ut._jsonSchemaVersion),seconds:Dn("number"),nanoseconds:Dn("number")};const La="mutationQueues",lo="mutations",Ri="documentMutations",Ua="remoteDocumentGlobal",Pi="targets",ki="targetDocuments",Gs="targetGlobal",Fa="collectionParents",Ci="clientMetadata",qu="bundles",Bu="namedQueries";class cn{constructor(e,t){this.comparator=e,this.root=t||ir.EMPTY}insert(e,t){return new cn(this.comparator,this.root.insert(e,t,this.comparator).copy(null,null,ir.BLACK,null,null))}remove(e){return new cn(this.comparator,this.root.remove(e,this.comparator).copy(null,null,ir.BLACK,null,null))}get(e){let t=this.root;for(;!t.isEmpty();){const r=this.comparator(e,t.key);if(0===r)return t.value;r<0?t=t.left:r>0&&(t=t.right)}return null}indexOf(e){let t=0,r=this.root;for(;!r.isEmpty();){const o=this.comparator(e,r.key);if(0===o)return t+r.left.size;o<0?r=r.left:(t+=r.left.size+1,r=r.right)}return-1}isEmpty(){return this.root.isEmpty()}get size(){return this.root.size}minKey(){return this.root.minKey()}maxKey(){return this.root.maxKey()}inorderTraversal(e){return this.root.inorderTraversal(e)}forEach(e){this.inorderTraversal((t,r)=>(e(t,r),!1))}toString(){const e=[];return this.inorderTraversal((t,r)=>(e.push(`${t}:${r}`),!1)),`{${e.join(", ")}}`}reverseTraversal(e){return this.root.reverseTraversal(e)}getIterator(){return new Gu(this.root,null,this.comparator,!1)}getIteratorFrom(e){return new Gu(this.root,e,this.comparator,!1)}getReverseIterator(){return new Gu(this.root,null,this.comparator,!0)}getReverseIteratorFrom(e){return new Gu(this.root,e,this.comparator,!0)}}class Gu{constructor(e,t,r,o){this.isReverse=o,this.nodeStack=[];let s=1;for(;!e.isEmpty();)if(s=t?r(e.key,t):1,t&&o&&(s*=-1),s<0)e=this.isReverse?e.left:e.right;else{if(0===s){this.nodeStack.push(e);break}this.nodeStack.push(e),e=this.isReverse?e.right:e.left}}getNext(){let e=this.nodeStack.pop();const t={key:e.key,value:e.value};if(this.isReverse)for(e=e.left;!e.isEmpty();)this.nodeStack.push(e),e=e.right;else for(e=e.right;!e.isEmpty();)this.nodeStack.push(e),e=e.left;return t}hasNext(){return this.nodeStack.length>0}peek(){if(0===this.nodeStack.length)return null;const e=this.nodeStack[this.nodeStack.length-1];return{key:e.key,value:e.value}}}class ir{constructor(e,t,r,o,s){this.key=e,this.value=t,this.color=r??ir.RED,this.left=o??ir.EMPTY,this.right=s??ir.EMPTY,this.size=this.left.size+1+this.right.size}copy(e,t,r,o,s){return new ir(e??this.key,t??this.value,r??this.color,o??this.left,s??this.right)}isEmpty(){return!1}inorderTraversal(e){return this.left.inorderTraversal(e)||e(this.key,this.value)||this.right.inorderTraversal(e)}reverseTraversal(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)}min(){return this.left.isEmpty()?this:this.left.min()}minKey(){return this.min().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(e,t,r){let o=this;const s=r(e,o.key);return o=s<0?o.copy(null,null,null,o.left.insert(e,t,r),null):0===s?o.copy(null,t,null,null,null):o.copy(null,null,null,null,o.right.insert(e,t,r)),o.fixUp()}removeMin(){if(this.left.isEmpty())return ir.EMPTY;let e=this;return e.left.isRed()||e.left.left.isRed()||(e=e.moveRedLeft()),e=e.copy(null,null,null,e.left.removeMin(),null),e.fixUp()}remove(e,t){let r,o=this;if(t(e,o.key)<0)o.left.isEmpty()||o.left.isRed()||o.left.left.isRed()||(o=o.moveRedLeft()),o=o.copy(null,null,null,o.left.remove(e,t),null);else{if(o.left.isRed()&&(o=o.rotateRight()),o.right.isEmpty()||o.right.isRed()||o.right.left.isRed()||(o=o.moveRedRight()),0===t(e,o.key)){if(o.right.isEmpty())return ir.EMPTY;r=o.right.min(),o=o.copy(r.key,r.value,null,null,o.right.removeMin())}o=o.copy(null,null,null,null,o.right.remove(e,t))}return o.fixUp()}isRed(){return this.color}fixUp(){let e=this;return e.right.isRed()&&!e.left.isRed()&&(e=e.rotateLeft()),e.left.isRed()&&e.left.left.isRed()&&(e=e.rotateRight()),e.left.isRed()&&e.right.isRed()&&(e=e.colorFlip()),e}moveRedLeft(){let e=this.colorFlip();return e.right.left.isRed()&&(e=e.copy(null,null,null,null,e.right.rotateRight()),e=e.rotateLeft(),e=e.colorFlip()),e}moveRedRight(){let e=this.colorFlip();return e.left.left.isRed()&&(e=e.rotateRight(),e=e.colorFlip()),e}rotateLeft(){const e=this.copy(null,null,ir.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)}rotateRight(){const e=this.copy(null,null,ir.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,e)}colorFlip(){const e=this.left.copy(null,null,!this.left.color,null,null),t=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,t)}checkMaxDepth(){const e=this.check();return Math.pow(2,e)<=this.size+1}check(){if(this.isRed()&&this.left.isRed())throw Be(43730,{key:this.key,value:this.value});if(this.right.isRed())throw Be(14113,{key:this.key,value:this.value});const e=this.left.check();if(e!==this.right.check())throw Be(27949);return e+(this.isRed()?0:1)}}ir.EMPTY=null,ir.RED=!0,ir.BLACK=!1,ir.EMPTY=new class{constructor(){this.size=0}get key(){throw Be(57766)}get value(){throw Be(16141)}get color(){throw Be(16727)}get left(){throw Be(29726)}get right(){throw Be(36894)}copy(e,t,r,o,s){return this}insert(e,t,r){return new ir(e,t)}remove(e,t){return this}isEmpty(){return!0}inorderTraversal(e){return!1}reverseTraversal(e){return!1}minKey(){return null}maxKey(){return null}isRed(){return!1}checkMaxDepth(){return!0}check(){return 0}};class Kt{constructor(e){this.comparator=e,this.data=new cn(this.comparator)}has(e){return null!==this.data.get(e)}first(){return this.data.minKey()}last(){return this.data.maxKey()}get size(){return this.data.size}indexOf(e){return this.data.indexOf(e)}forEach(e){this.data.inorderTraversal((t,r)=>(e(t),!1))}forEachInRange(e,t){const r=this.data.getIteratorFrom(e[0]);for(;r.hasNext();){const o=r.getNext();if(this.comparator(o.key,e[1])>=0)return;t(o.key)}}forEachWhile(e,t){let r;for(r=void 0!==t?this.data.getIteratorFrom(t):this.data.getIterator();r.hasNext();)if(!e(r.getNext().key))return}firstAfterOrEqual(e){const t=this.data.getIteratorFrom(e);return t.hasNext()?t.getNext().key:null}getIterator(){return new Gw(this.data.getIterator())}getIteratorFrom(e){return new Gw(this.data.getIteratorFrom(e))}add(e){return this.copy(this.data.remove(e).insert(e,!0))}delete(e){return this.has(e)?this.copy(this.data.remove(e)):this}isEmpty(){return this.data.isEmpty()}unionWith(e){let t=this;return t.size<e.size&&(t=e,e=this),e.forEach(r=>{t=t.add(r)}),t}isEqual(e){if(!(e instanceof Kt)||this.size!==e.size)return!1;const t=this.data.getIterator(),r=e.data.getIterator();for(;t.hasNext();){const o=t.getNext().key,s=r.getNext().key;if(0!==this.comparator(o,s))return!1}return!0}toArray(){const e=[];return this.forEach(t=>{e.push(t)}),e}toString(){const e=[];return this.forEach(t=>e.push(t)),"SortedSet("+e.toString()+")"}copy(e){const t=new Kt(this.comparator);return t.data=e,t}}class Gw{constructor(e){this.iter=e}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}class Kw extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}class On{constructor(e){this.binaryString=e}static fromBase64String(e){const t=function(o){try{return atob(o)}catch(s){throw typeof DOMException<"u"&&s instanceof DOMException?new Kw("Invalid base64 string: "+s):s}}(e);return new On(t)}static fromUint8Array(e){const t=function(o){let s="";for(let i=0;i<o.length;++i)s+=String.fromCharCode(o[i]);return s}(e);return new On(t)}[Symbol.iterator](){let e=0;return{next:()=>e<this.binaryString.length?{value:this.binaryString.charCodeAt(e++),done:!1}:{value:void 0,done:!0}}}toBase64(){return btoa(this.binaryString)}toUint8Array(){return function(t){const r=new Uint8Array(t.length);for(let o=0;o<t.length;o++)r[o]=t.charCodeAt(o);return r}(this.binaryString)}approximateByteSize(){return 2*this.binaryString.length}compareTo(e){return Ke(this.binaryString,e.binaryString)}isEqual(e){return this.binaryString===e.binaryString}}On.EMPTY_BYTE_STRING=new On("");const kk=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function _n(n){return"number"==typeof n?n:"string"==typeof n?Number(n):0}const Ba="(default)";class Ks{constructor(e,t){this.projectId=e,this.database=t||Ba}static empty(){return new Ks("","")}get isDefaultDatabase(){return this.database===Ba}isEqual(e){return e instanceof Ks&&e.projectId===this.projectId&&e.database===this.database}}class jo{constructor(e,t=null,r=[],o=[],s=null,i="F",a=null,c=null){this.path=e,this.collectionGroup=t,this.explicitOrderBy=r,this.filters=o,this.limit=s,this.limitType=i,this.startAt=a,this.endAt=c,this.Ie=null,this.Ee=null,this.Re=null}}var Bn,Lt;new cn(Ye.comparator),new cn(Ye.comparator),new cn(Ye.comparator),new Kt(Ye.comparator),new Kt(Ke),(Lt=Bn||(Bn={}))[Lt.OK=0]="OK",Lt[Lt.CANCELLED=1]="CANCELLED",Lt[Lt.UNKNOWN=2]="UNKNOWN",Lt[Lt.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",Lt[Lt.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",Lt[Lt.NOT_FOUND=5]="NOT_FOUND",Lt[Lt.ALREADY_EXISTS=6]="ALREADY_EXISTS",Lt[Lt.PERMISSION_DENIED=7]="PERMISSION_DENIED",Lt[Lt.UNAUTHENTICATED=16]="UNAUTHENTICATED",Lt[Lt.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",Lt[Lt.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",Lt[Lt.ABORTED=10]="ABORTED",Lt[Lt.OUT_OF_RANGE=11]="OUT_OF_RANGE",Lt[Lt.UNIMPLEMENTED=12]="UNIMPLEMENTED",Lt[Lt.INTERNAL=13]="INTERNAL",Lt[Lt.UNAVAILABLE=14]="UNAVAILABLE",Lt[Lt.DATA_LOSS=15]="DATA_LOSS",new Jn([4294967295,4294967295],0),Error;class ti{constructor(){}Dt(e,t){this.Ct(e,t),t.vt()}Ct(e,t){if("nullValue"in e)this.Ft(t,5);else if("booleanValue"in e)this.Ft(t,10),t.Mt(e.booleanValue?1:0);else if("integerValue"in e)this.Ft(t,15),t.Mt(_n(e.integerValue));else if("doubleValue"in e){const r=_n(e.doubleValue);isNaN(r)?this.Ft(t,13):(this.Ft(t,15),function Ir(n){return 0===n&&1/n==-1/0}(r)?t.Mt(0):t.Mt(r))}else if("timestampValue"in e){let r=e.timestampValue;this.Ft(t,20),"string"==typeof r&&(r=function Uo(n){if(Xe(!!n,39018),"string"==typeof n){let e=0;const t=kk.exec(n);if(Xe(!!t,46558,{timestamp:n}),t[1]){let o=t[1];o=(o+"000000000").substr(0,9),e=Number(o)}const r=new Date(n);return{seconds:Math.floor(r.getTime()/1e3),nanos:e}}return{seconds:_n(n.seconds),nanos:_n(n.nanos)}}(r)),t.xt(`${r.seconds||""}`),t.Mt(r.nanos||0)}else if("stringValue"in e)this.Ot(e.stringValue,t),this.Nt(t);else if("bytesValue"in e)this.Ft(t,30),t.Bt(function Fo(n){return"string"==typeof n?On.fromBase64String(n):On.fromUint8Array(n)}(e.bytesValue)),this.Nt(t);else if("referenceValue"in e)this.Lt(e.referenceValue,t);else if("geoPointValue"in e){const r=e.geoPointValue;this.Ft(t,45),t.Mt(r.latitude||0),t.Mt(r.longitude||0)}else"mapValue"in e?function rv(n){return"__max__"===(((n.mapValue||{}).fields||{}).__type__||{}).stringValue}(e)?this.Ft(t,Number.MAX_SAFE_INTEGER):function Xu(n){return"__vector__"===(n?.mapValue?.fields||{}).__type__?.stringValue}(e)?this.kt(e.mapValue,t):(this.Kt(e.mapValue,t),this.Nt(t)):"arrayValue"in e?(this.qt(e.arrayValue,t),this.Nt(t)):Be(19022,{Ut:e})}Ot(e,t){this.Ft(t,25),this.$t(e,t)}$t(e,t){t.xt(e)}Kt(e,t){const r=e.fields||{};this.Ft(t,55);for(const o of Object.keys(r))this.Ot(o,t),this.Ct(r[o],t)}kt(e,t){const r=e.fields||{};this.Ft(t,53);const o="value",s=r[o].arrayValue?.values?.length||0;this.Ft(t,15),t.Mt(_n(s)),this.Ot(o,t),this.Ct(r[o],t)}qt(e,t){const r=e.values||[];this.Ft(t,50);for(const o of r)this.Ct(o,t)}Lt(e,t){this.Ft(t,37),Ye.fromName(e).path.forEach(r=>{this.Ft(t,60),this.$t(r,t)})}Ft(e,t){e.Mt(t)}Nt(e){e.Mt(2)}}ti.Wt=new ti,new Uint8Array(0);class _r{static withCacheSize(e){return new _r(e,_r.DEFAULT_COLLECTION_PERCENTILE,_r.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}constructor(e,t,r){this.cacheSizeCollectionThreshold=e,this.percentileToCollect=t,this.maximumSequenceNumbersToCollect=r}}_r.DEFAULT_COLLECTION_PERCENTILE=10,_r.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,_r.DEFAULT=new _r(41943040,_r.DEFAULT_COLLECTION_PERCENTILE,_r.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),_r.DISABLED=new _r(-1,0,0);let Il=null;function hp(){return null===Il?Il=268435456+Math.round(2147483648*Math.random()):Il++,"0x"+Il.toString(16)}const pp="RestConnection",eC={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregationQuery:"runAggregationQuery",ExecutePipeline:"executePipeline"};class tC{get Ko(){return!1}constructor(e){this.databaseInfo=e,this.databaseId=e.databaseId;const t=e.ssl?"https":"http",r=encodeURIComponent(this.databaseId.projectId),o=encodeURIComponent(this.databaseId.database);this.qo=t+"://"+e.host,this.Uo=`projects/${r}/databases/${o}`,this.$o=this.databaseId.database===Ba?`project_id=${r}`:`project_id=${r}&database_id=${o}`}Wo(e,t,r,o,s){const i=hp(),a=this.Qo(e,t.toUriEncodedString());H(pp,`Sending RPC '${e}' ${i}:`,a,r);const c={"google-cloud-resource-prefix":this.Uo,"x-goog-request-params":this.$o};this.Go(c,o,s);const{host:l}=new URL(a),h=(0,ut.zJ)(l);return this.zo(e,a,c,r,h).then(p=>(H(pp,`Received RPC '${e}' ${i}: `,p),p),p=>{throw mt(pp,`RPC '${e}' ${i} failed with error: `,p,"url: ",a,"request:",r),p})}jo(e,t,r,o,s,i){return this.Wo(e,t,r,o,s)}Go(e,t,r){e["X-Goog-Api-Client"]="gl-js/ fire/"+zn,e["Content-Type"]="text/plain",this.databaseInfo.appId&&(e["X-Firebase-GMPID"]=this.databaseInfo.appId),t&&t.headers.forEach((o,s)=>e[s]=o),r&&r.headers.forEach((o,s)=>e[s]=o)}Qo(e,t){let o=`${this.qo}/v1/${t}:${eC[e]}`;return this.databaseInfo.apiKey&&(o=`${o}?key=${encodeURIComponent(this.databaseInfo.apiKey)}`),o}terminate(){}}class nC{constructor(e){this.Ho=e.Ho,this.Jo=e.Jo}Zo(e){this.Xo=e}Yo(e){this.e_=e}t_(e){this.n_=e}onMessage(e){this.r_=e}close(){this.Jo()}send(e){this.Ho(e)}i_(){this.Xo()}s_(){this.e_()}o_(e){this.n_(e)}__(e){this.r_(e)}}const yr="WebChannelConnection",gc=(n,e,t)=>{n.listen(e,r=>{try{t(r)}catch(o){setTimeout(()=>{throw o},0)}})};class Zi extends tC{constructor(e){super(e),this.a_=[],this.forceLongPolling=e.forceLongPolling,this.autoDetectLongPolling=e.autoDetectLongPolling,this.useFetchStreams=e.useFetchStreams,this.longPollingOptions=e.longPollingOptions}static u_(){if(!Zi.c_){const e=Fs();gc(e,yo.STAT_EVENT,t=>{t.stat===kr.PROXY?H(yr,"STAT_EVENT: detected buffering proxy"):t.stat===kr.NOPROXY&&H(yr,"STAT_EVENT: detected no buffering proxy")}),Zi.c_=!0}}zo(e,t,r,o,s){const i=hp();return new Promise((a,c)=>{const l=new Mo;l.setWithCredentials(!0),l.listenOnce(eo.COMPLETE,()=>{try{switch(l.getLastErrorCode()){case ns.NO_ERROR:const p=l.getResponseJson();H(yr,`XHR for RPC '${e}' ${i} received:`,JSON.stringify(p)),a(p);break;case ns.TIMEOUT:H(yr,`RPC '${e}' ${i} timed out`),c(new Ne(be.DEADLINE_EXCEEDED,"Request time out"));break;case ns.HTTP_ERROR:const y=l.getStatus();if(H(yr,`RPC '${e}' ${i} failed with status:`,y,"response text:",l.getResponseText()),y>0){let P=l.getResponseJson();Array.isArray(P)&&(P=P[0]);const K=P?.error;if(K&&K.status&&K.message){const re=function(ce){const Ae=ce.toLowerCase().replace(/_/g,"-");return Object.values(be).indexOf(Ae)>=0?Ae:be.UNKNOWN}(K.status);c(new Ne(re,K.message))}else c(new Ne(be.UNKNOWN,"Server responded with status "+l.getStatus()))}else c(new Ne(be.UNAVAILABLE,"Connection failed."));break;default:Be(9055,{l_:e,streamId:i,h_:l.getLastErrorCode(),P_:l.getLastError()})}}finally{H(yr,`RPC '${e}' ${i} completed.`)}});const h=JSON.stringify(o);H(yr,`RPC '${e}' ${i} sending request:`,o),l.send(t,"POST",h,r,15)})}T_(e,t,r){const o=hp(),s=[this.qo,"/","google.firestore.v1.Firestore","/",e,"/channel"],i=this.createWebChannelTransport(),a={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:`projects/${this.databaseId.projectId}/databases/${this.databaseId.database}`},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling},c=this.longPollingOptions.timeoutSeconds;void 0!==c&&(a.longPollingTimeout=Math.round(1e3*c)),this.useFetchStreams&&(a.useFetchStreams=!0),this.Go(a.initMessageHeaders,t,r),a.encodeInitMessageHeaders=!0;const l=s.join("");H(yr,`Creating RPC '${e}' stream ${o}: ${l}`,a);const h=i.createWebChannel(l,a);this.I_(h);let p=!1,y=!1;const P=new nC({Ho:K=>{y?H(yr,`Not sending because RPC '${e}' stream ${o} is closed:`,K):(p||(H(yr,`Opening RPC '${e}' stream ${o} transport.`),h.open(),p=!0),H(yr,`RPC '${e}' stream ${o} sending:`,K),h.send(K))},Jo:()=>h.close()});return gc(h,Qt.EventType.OPEN,()=>{y||(H(yr,`RPC '${e}' stream ${o} transport opened.`),P.i_())}),gc(h,Qt.EventType.CLOSE,()=>{y||(y=!0,H(yr,`RPC '${e}' stream ${o} transport closed`),P.o_(),this.E_(h))}),gc(h,Qt.EventType.ERROR,K=>{y||(y=!0,mt(yr,`RPC '${e}' stream ${o} transport errored. Name:`,K.name,"Message:",K.message),P.o_(new Ne(be.UNAVAILABLE,"The operation could not be completed")))}),gc(h,Qt.EventType.MESSAGE,K=>{if(!y){const re=K.data[0];Xe(!!re,16349);const fe=re,ce=fe?.error||fe[0]?.error;if(ce){H(yr,`RPC '${e}' stream ${o} received error:`,ce);const Ae=ce.status;let $e=function(_t){const se=Bn[_t];if(void 0!==se)return function zv(n){if(void 0===n)return Ze("GRPC error has no .code"),be.UNKNOWN;switch(n){case Bn.OK:return be.OK;case Bn.CANCELLED:return be.CANCELLED;case Bn.UNKNOWN:return be.UNKNOWN;case Bn.DEADLINE_EXCEEDED:return be.DEADLINE_EXCEEDED;case Bn.RESOURCE_EXHAUSTED:return be.RESOURCE_EXHAUSTED;case Bn.INTERNAL:return be.INTERNAL;case Bn.UNAVAILABLE:return be.UNAVAILABLE;case Bn.UNAUTHENTICATED:return be.UNAUTHENTICATED;case Bn.INVALID_ARGUMENT:return be.INVALID_ARGUMENT;case Bn.NOT_FOUND:return be.NOT_FOUND;case Bn.ALREADY_EXISTS:return be.ALREADY_EXISTS;case Bn.PERMISSION_DENIED:return be.PERMISSION_DENIED;case Bn.FAILED_PRECONDITION:return be.FAILED_PRECONDITION;case Bn.ABORTED:return be.ABORTED;case Bn.OUT_OF_RANGE:return be.OUT_OF_RANGE;case Bn.UNIMPLEMENTED:return be.UNIMPLEMENTED;case Bn.DATA_LOSS:return be.DATA_LOSS;default:return Be(39323,{code:n})}}(se)}(Ae),Qe=ce.message;void 0===$e&&($e=be.INTERNAL,Qe="Unknown error status: "+Ae+" with message "+ce.message),y=!0,P.o_(new Ne($e,Qe)),h.close()}else H(yr,`RPC '${e}' stream ${o} received:`,re),P.__(re)}}),Zi.u_(),setTimeout(()=>{P.s_()},0),P}terminate(){this.a_.forEach(e=>e.close()),this.a_=[]}I_(e){this.a_.push(e)}E_(e){this.a_=this.a_.filter(t=>t===e)}Go(e,t,r){super.Go(e,t,r),this.databaseInfo.apiKey&&(e["x-goog-api-key"]=this.databaseInfo.apiKey)}createWebChannelTransport(){return wo()}}function Tl(){return typeof document<"u"?document:null}Zi.c_=!1;class fp{constructor(e,t,r=1e3,o=1.5,s=6e4){this.Ci=e,this.timerId=t,this.R_=r,this.A_=o,this.V_=s,this.d_=0,this.m_=null,this.f_=Date.now(),this.reset()}reset(){this.d_=0}g_(){this.d_=this.V_}p_(e){this.cancel();const t=Math.floor(this.d_+this.y_()),r=Math.max(0,Date.now()-this.f_),o=Math.max(0,t-r);o>0&&H("ExponentialBackoff",`Backing off for ${o} ms (base delay: ${this.d_} ms, delay with jitter: ${t} ms, last attempt: ${r} ms ago)`),this.m_=this.Ci.enqueueAfterDelay(this.timerId,o,()=>(this.f_=Date.now(),e())),this.d_*=this.A_,this.d_<this.R_&&(this.d_=this.R_),this.d_>this.V_&&(this.d_=this.V_)}w_(){null!==this.m_&&(this.m_.skipDelay(),this.m_=null)}cancel(){null!==this.m_&&(this.m_.cancel(),this.m_=null)}y_(){return(Math.random()-.5)*this.d_}}class Dp{constructor(e,t,r,o,s){this.asyncQueue=e,this.timerId=t,this.targetTimeMs=r,this.op=o,this.removalCallback=s,this.deferred=new Yt,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch(i=>{})}get promise(){return this.deferred.promise}static createAndSchedule(e,t,r,o,s){const i=Date.now()+r,a=new Dp(e,t,i,o,s);return a.start(r),a}start(e){this.timerHandle=setTimeout(()=>this.handleDelayElapsed(),e)}skipDelay(){return this.handleDelayElapsed()}cancel(e){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new Ne(be.CANCELLED,"Operation cancelled"+(e?": "+e:""))))}handleDelayElapsed(){this.asyncQueue.enqueueAndForget(()=>null!==this.timerHandle?(this.clearTimeout(),this.op().then(e=>this.deferred.resolve(e))):Promise.resolve())}clearTimeout(){null!==this.timerHandle&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}}var Lp,v0;(v0=Lp||(Lp={})).Ma="default",v0.Cache="cache";const vc=new Map;class z0{constructor(e){if(void 0===e.host){if(void 0!==e.ssl)throw new Ne(be.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else this.host=e.host,this.ssl=e.ssl??!0;if(this.isUsingEmulator=void 0!==e.emulatorOptions,this.credentials=e.credentials,this.ignoreUndefinedProperties=!!e.ignoreUndefinedProperties,this.localCache=e.localCache,void 0===e.cacheSizeBytes)this.cacheSizeBytes=41943040;else{if(-1!==e.cacheSizeBytes&&e.cacheSizeBytes<1048576)throw new Ne(be.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=e.cacheSizeBytes}(function ch(n,e,t,r){if(!0===e&&!0===r)throw new Ne(be.INVALID_ARGUMENT,`${n} and ${t} cannot be used together.`)})("experimentalForceLongPolling",e.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",e.experimentalAutoDetectLongPolling),this.experimentalForceLongPolling=!!e.experimentalForceLongPolling,this.experimentalAutoDetectLongPolling=!(this.experimentalForceLongPolling||void 0!==e.experimentalAutoDetectLongPolling&&!e.experimentalAutoDetectLongPolling),this.experimentalLongPollingOptions=function V0(n){const e={};return void 0!==n.timeoutSeconds&&(e.timeoutSeconds=n.timeoutSeconds),e}(e.experimentalLongPollingOptions??{}),function(r){if(void 0!==r.timeoutSeconds){if(isNaN(r.timeoutSeconds))throw new Ne(be.INVALID_ARGUMENT,`invalid long polling timeout: ${r.timeoutSeconds} (must not be NaN)`);if(r.timeoutSeconds<5)throw new Ne(be.INVALID_ARGUMENT,`invalid long polling timeout: ${r.timeoutSeconds} (minimum allowed value is 5)`);if(r.timeoutSeconds>30)throw new Ne(be.INVALID_ARGUMENT,`invalid long polling timeout: ${r.timeoutSeconds} (maximum allowed value is 30)`)}}(this.experimentalLongPollingOptions),this.useFetchStreams=!!e.useFetchStreams}isEqual(e){return this.host===e.host&&this.ssl===e.ssl&&this.credentials===e.credentials&&this.cacheSizeBytes===e.cacheSizeBytes&&this.experimentalForceLongPolling===e.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===e.experimentalAutoDetectLongPolling&&this.experimentalLongPollingOptions.timeoutSeconds===e.experimentalLongPollingOptions.timeoutSeconds&&this.ignoreUndefinedProperties===e.ignoreUndefinedProperties&&this.useFetchStreams===e.useFetchStreams}}class bc{constructor(e,t,r,o){this._authCredentials=e,this._appCheckCredentials=t,this._databaseId=r,this._app=o,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new z0({}),this._settingsFrozen=!1,this._emulatorOptions={},this._terminateTask="notTerminated"}get app(){if(!this._app)throw new Ne(be.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app}get _initialized(){return this._settingsFrozen}get _terminated(){return"notTerminated"!==this._terminateTask}_setSettings(e){if(this._settingsFrozen)throw new Ne(be.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");this._settings=new z0(e),this._emulatorOptions=e.emulatorOptions||{},void 0!==e.credentials&&(this._authCredentials=function(r){if(!r)return new Eo;switch(r.type){case"firstParty":return new we(r.sessionIndex||"0",r.iamToken||null,r.authTokenFactory||null);case"provider":return r.client;default:throw new Ne(be.INVALID_ARGUMENT,"makeAuthCredentialsProvider failed due to invalid credential type")}}(e.credentials))}_getSettings(){return this._settings}_getEmulatorOptions(){return this._emulatorOptions}_freezeSettings(){return this._settingsFrozen=!0,this._settings}_delete(){return"notTerminated"===this._terminateTask&&(this._terminateTask=this._terminate()),this._terminateTask}_restart(){var e=this;return(0,d.A)(function*(){"notTerminated"===e._terminateTask?yield e._terminate():e._terminateTask="notTerminated"})()}toJSON(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}}_terminate(){return function(t){const r=vc.get(t);r&&(H("ComponentProvider","Removing Datastore"),vc.delete(t),r.terminate())}(this),Promise.resolve()}}class Hr{constructor(e,t,r){this.converter=t,this._query=r,this.type="query",this.firestore=e}withConverter(e){return new Hr(this.firestore,e,this._query)}}class Un{constructor(e,t,r){this.converter=t,this._key=r,this.type="document",this.firestore=e}get _path(){return this._key.path}get id(){return this._key.path.lastSegment()}get path(){return this._key.path.canonicalString()}get parent(){return new po(this.firestore,this.converter,this._key.path.popLast())}withConverter(e){return new Un(this.firestore,e,this._key)}toJSON(){return{type:Un._jsonSchemaVersion,referencePath:this._key.toString()}}static fromJSON(e,t,r){if(Vo(t,Un._jsonSchema))return new Un(e,r||null,new Ye(Tt.fromString(t.referencePath)))}}Un._jsonSchemaVersion="firestore/documentReference/1.0",Un._jsonSchema={type:Dn("string",Un._jsonSchemaVersion),referencePath:Dn("string")};class po extends Hr{constructor(e,t,r){super(e,t,function Qa(n){return new jo(n)}(r)),this._path=r,this.type="collection"}get id(){return this._query.path.lastSegment()}get path(){return this._query.path.canonicalString()}get parent(){const e=this._path.popLast();return e.isEmpty()?null:new Un(this.firestore,null,new Ye(e))}withConverter(e){return new po(this.firestore,e,this._path)}}const q0="AsyncQueue";class B0{constructor(e=Promise.resolve()){this.Yu=[],this.ec=!1,this.tc=[],this.nc=null,this.rc=!1,this.sc=!1,this.oc=[],this.M_=new fp(this,"async_queue_retry"),this._c=()=>{const r=Tl();r&&H(q0,"Visibility state changed to "+r.visibilityState),this.M_.w_()},this.ac=e;const t=Tl();t&&"function"==typeof t.addEventListener&&t.addEventListener("visibilitychange",this._c)}get isShuttingDown(){return this.ec}enqueueAndForget(e){this.enqueue(e)}enqueueAndForgetEvenWhileRestricted(e){this.uc(),this.cc(e)}enterRestrictedMode(e){if(!this.ec){this.ec=!0,this.sc=e||!1;const t=Tl();t&&"function"==typeof t.removeEventListener&&t.removeEventListener("visibilitychange",this._c)}}enqueue(e){if(this.uc(),this.ec)return new Promise(()=>{});const t=new Yt;return this.cc(()=>this.ec&&this.sc?Promise.resolve():(e().then(t.resolve,t.reject),t.promise)).then(()=>t.promise)}enqueueRetryable(e){this.enqueueAndForget(()=>(this.Yu.push(e),this.lc()))}lc(){var e=this;return(0,d.A)(function*(){if(0!==e.Yu.length){try{yield e.Yu[0](),e.Yu.shift(),e.M_.reset()}catch(t){if(!function Ue(n){return"IndexedDbTransactionError"===n.name}(t))throw t;H(q0,"Operation failed with retryable error: "+t)}e.Yu.length>0&&e.M_.p_(()=>e.lc())}})()}cc(e){const t=this.ac.then(()=>(this.rc=!0,e().catch(r=>{throw this.nc=r,this.rc=!1,Ze("INTERNAL UNHANDLED ERROR: ",H0(r)),r}).then(r=>(this.rc=!1,r))));return this.ac=t,t}enqueueAfterDelay(e,t,r){this.uc(),this.oc.indexOf(e)>-1&&(t=0);const o=Dp.createAndSchedule(this,e,t,r,s=>this.hc(s));return this.tc.push(o),o}uc(){this.nc&&Be(47125,{Pc:H0(this.nc)})}verifyOperationInProgress(){}Tc(){var e=this;return(0,d.A)(function*(){let t;do{t=e.ac,yield t}while(t!==e.ac)})()}Ic(e){for(const t of this.tc)if(t.timerId===e)return!0;return!1}Ec(e){return this.Tc().then(()=>{this.tc.sort((t,r)=>t.targetTimeMs-r.targetTimeMs);for(const t of this.tc)if(t.skipDelay(),"all"!==e&&t.timerId===e)break;return this.Tc()})}Rc(e){this.oc.push(e)}hc(e){const t=this.tc.indexOf(e);this.tc.splice(t,1)}}function H0(n){let e=n.message||"";return n.stack&&(e=n.stack.includes(n.message)?n.stack:n.message+"\n"+n.stack),e}class Po extends bc{constructor(e,t,r,o){super(e,t,r,o),this.type="firestore",this._queue=new B0,this._persistenceKey=o?.name||"[DEFAULT]"}_terminate(){var e=this;return(0,d.A)(function*(){if(e._firestoreClient){const t=e._firestoreClient.terminate();e._queue=new B0(t),e._firestoreClient=void 0,yield t}})()}}class Gr{constructor(e){this._byteString=e}static fromBase64String(e){try{return new Gr(On.fromBase64String(e))}catch(t){throw new Ne(be.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+t)}}static fromUint8Array(e){return new Gr(On.fromUint8Array(e))}toBase64(){return this._byteString.toBase64()}toUint8Array(){return this._byteString.toUint8Array()}toString(){return"Bytes(base64: "+this.toBase64()+")"}isEqual(e){return this._byteString.isEqual(e._byteString)}toJSON(){return{type:Gr._jsonSchemaVersion,bytes:this.toBase64()}}static fromJSON(e){if(Vo(e,Gr._jsonSchema))return Gr.fromBase64String(e.bytes)}}Gr._jsonSchemaVersion="firestore/bytes/1.0",Gr._jsonSchema={type:Dn("string",Gr._jsonSchemaVersion),bytes:Dn("string")};class Cl{constructor(...e){for(let t=0;t<e.length;++t)if(0===e[t].length)throw new Ne(be.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new Jt(e)}isEqual(e){return this._internalPath.isEqual(e._internalPath)}}class ko{constructor(e,t){if(!isFinite(e)||e<-90||e>90)throw new Ne(be.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+e);if(!isFinite(t)||t<-180||t>180)throw new Ne(be.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+t);this._lat=e,this._long=t}get latitude(){return this._lat}get longitude(){return this._long}isEqual(e){return this._lat===e._lat&&this._long===e._long}_compareTo(e){return Ke(this._lat,e._lat)||Ke(this._long,e._long)}toJSON(){return{latitude:this._lat,longitude:this._long,type:ko._jsonSchemaVersion}}static fromJSON(e){if(Vo(e,ko._jsonSchema))return new ko(e.latitude,e.longitude)}}ko._jsonSchemaVersion="firestore/geoPoint/1.0",ko._jsonSchema={type:Dn("string",ko._jsonSchemaVersion),latitude:Dn("number"),longitude:Dn("number")};class to{constructor(e){this._values=(e||[]).map(t=>t)}toArray(){return this._values.map(e=>e)}isEqual(e){return function(r,o){if(r.length!==o.length)return!1;for(let s=0;s<r.length;++s)if(r[s]!==o[s])return!1;return!0}(this._values,e._values)}toJSON(){return{type:to._jsonSchemaVersion,vectorValues:this._values}}static fromJSON(e){if(Vo(e,to._jsonSchema)){if(Array.isArray(e.vectorValues)&&e.vectorValues.every(t=>"number"==typeof t))return new to(e.vectorValues);throw new Ne(be.INVALID_ARGUMENT,"Expected 'vectorValues' field to be a number array")}}}function Ic(n,e,t){if((e=(0,ut.Ku)(e))instanceof Cl)return e._internalPath;if("string"==typeof e)return function eE(n,e,t){if(e.search(lx)>=0)throw Dl(`Invalid field path (${e}). Paths must not contain '~', '*', '/', '[', or ']'`,n,!1,void 0,t);try{return new Cl(...e.split("."))._internalPath}catch{throw Dl(`Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,n,!1,void 0,t)}}(n,e);throw Dl("Field path arguments must be of type string or ",n,!1,void 0,t)}to._jsonSchemaVersion="firestore/vectorValue/1.0",to._jsonSchema={type:Dn("string",to._jsonSchemaVersion),vectorValues:Dn("object")};const lx=new RegExp("[~\\*/\\[\\]]");function Dl(n,e,t,r,o){const s=r&&!r.isEmpty(),i=void 0!==o;let a=`Function ${e}() called with invalid data`;t&&(a+=" (via `toFirestore()`)"),a+=". ";let c="";return(s||i)&&(c+=" (found",s&&(c+=` in field ${r}`),i&&(c+=` in document ${o}`),c+=")"),new Ne(be.INVALID_ARGUMENT,a+n+c)}const bE="@firebase/firestore";class Sc{constructor(e,t,r,o,s){this._firestore=e,this._userDataWriter=t,this._key=r,this._document=o,this._converter=s}get id(){return this._key.path.lastSegment()}get ref(){return new Un(this._firestore,this._converter,this._key)}exists(){return null!==this._document}data(){if(this._document){if(this._converter){const e=new qx(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(e)}return this._userDataWriter.convertValue(this._document.data.value)}}_fieldsProto(){return this._document?.data.clone().value.mapValue.fields??void 0}get(e){if(this._document){const t=this._document.data.field(Ic("DocumentSnapshot.get",e));if(null!==t)return this._userDataWriter.convertValue(t)}}}class qx extends Sc{data(){return super.data()}}class Is{constructor(e,t){this.hasPendingWrites=e,this.fromCache=t}isEqual(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache}}class Zr extends Sc{constructor(e,t,r,o,s,i){super(e,t,r,o,i),this._firestore=e,this._firestoreImpl=e,this.metadata=s}exists(){return super.exists()}data(e={}){if(this._document){if(this._converter){const t=new Fl(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(t,e)}return this._userDataWriter.convertValue(this._document.data.value,e.serverTimestamps)}}get(e,t={}){if(this._document){const r=this._document.data.field(Ic("DocumentSnapshot.get",e));if(null!==r)return this._userDataWriter.convertValue(r,t.serverTimestamps)}}toJSON(){if(this.metadata.hasPendingWrites)throw new Ne(be.FAILED_PRECONDITION,"DocumentSnapshot.toJSON() attempted to serialize a document with pending writes. Await waitForPendingWrites() before invoking toJSON().");const e=this._document,t={};return t.type=Zr._jsonSchemaVersion,t.bundle="",t.bundleSource="DocumentSnapshot",t.bundleName=this._key.toString(),e&&e.isValidDocument()&&e.isFoundDocument()?(this._userDataWriter.convertObjectMap(e.data.value.mapValue.fields,"previous"),t.bundle="NOT SUPPORTED",t):t}}Zr._jsonSchemaVersion="firestore/documentSnapshot/1.0",Zr._jsonSchema={type:Dn("string",Zr._jsonSchemaVersion),bundleSource:Dn("string","DocumentSnapshot"),bundleName:Dn("string"),bundle:Dn("string")};class Fl extends Zr{data(e={}){return super.data(e)}}class Qr{constructor(e,t,r,o){this._firestore=e,this._userDataWriter=t,this._snapshot=o,this.metadata=new Is(o.hasPendingWrites,o.fromCache),this.query=r}get docs(){const e=[];return this.forEach(t=>e.push(t)),e}get size(){return this._snapshot.docs.size}get empty(){return 0===this.size}forEach(e,t){this._snapshot.docs.forEach(r=>{e.call(t,new Fl(this._firestore,this._userDataWriter,r.key,r,new Is(this._snapshot.mutatedKeys.has(r.key),this._snapshot.fromCache),this.query.converter))})}docChanges(e={}){const t=!!e.includeMetadataChanges;if(t&&this._snapshot.excludesMetadataChanges)throw new Ne(be.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===t||(this._cachedChanges=function(o,s){if(o._snapshot.oldDocs.isEmpty()){let i=0;return o._snapshot.docChanges.map(a=>({type:"added",doc:new Fl(o._firestore,o._userDataWriter,a.doc.key,a.doc,new Is(o._snapshot.mutatedKeys.has(a.doc.key),o._snapshot.fromCache),o.query.converter),oldIndex:-1,newIndex:i++}))}{let i=o._snapshot.oldDocs;return o._snapshot.docChanges.filter(a=>s||3!==a.type).map(a=>{const c=new Fl(o._firestore,o._userDataWriter,a.doc.key,a.doc,new Is(o._snapshot.mutatedKeys.has(a.doc.key),o._snapshot.fromCache),o.query.converter);let l=-1,h=-1;return 0!==a.type&&(l=i.indexOf(a.doc.key),i=i.delete(a.doc.key)),1!==a.type&&(i=i.add(a.doc),h=i.indexOf(a.doc.key)),{type:Yx(a.type),doc:c,oldIndex:l,newIndex:h}})}}(this,t),this._cachedChangesIncludeMetadataChanges=t),this._cachedChanges}toJSON(){if(this.metadata.hasPendingWrites)throw new Ne(be.FAILED_PRECONDITION,"QuerySnapshot.toJSON() attempted to serialize a document with pending writes. Await waitForPendingWrites() before invoking toJSON().");const e={};e.type=Qr._jsonSchemaVersion,e.bundleSource="QuerySnapshot",e.bundleName=Et.newId();const t=[],r=[],o=[];return this.docs.forEach(s=>{null!==s._document&&(t.push(s._document),r.push(this._userDataWriter.convertObjectMap(s._document.data.value.mapValue.fields,"previous")),o.push(s.ref.path))}),e.bundle="NOT SUPPORTED",e}}function Yx(n){switch(n){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return Be(61501,{type:n})}}Qr._jsonSchemaVersion="firestore/querySnapshot/1.0",Qr._jsonSchema={type:Dn("string",Qr._jsonSchemaVersion),bundleSource:Dn("string","QuerySnapshot"),bundleName:Dn("string"),bundle:Dn("string")},function(e,t=!0){(function X(n){zn=n})($.MF),(0,$.om)(new Rr.uA("firestore",(r,{instanceIdentifier:o,options:s})=>{const i=r.getProvider("app").getImmediate(),a=new Po(new Cr(r.getProvider("auth-internal")),new ke(i,r.getProvider("app-check-internal")),function xk(n,e){if(!Object.prototype.hasOwnProperty.apply(n.options,["projectId"]))throw new Ne(be.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new Ks(n.options.projectId,e)}(i,o),i);return s={useFetchStreams:t,...s},a._setSettings(s),a},"PUBLIC").setMultipleInstances(!0)),(0,$.KO)(bE,"4.10.0",e),(0,$.KO)(bE,"4.10.0","esm2020")}();const pD=function ME(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}},VE=new ut.FA("auth","Firebase",{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}),zl=new rn.Vy("@firebase/auth");function ql(n,...e){zl.logLevel<=rn.$b.ERROR&&zl.error(`Auth (${$.MF}): ${n}`,...e)}function Nr(n,...e){throw Hf(n,...e)}function no(n,...e){return Hf(n,...e)}function Bf(n,e,t){const r={...pD(),[e]:t};return new ut.FA("auth","Firebase",r).create(e,{appName:n.name})}function rr(n){return Bf(n,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function Hf(n,...e){if("string"!=typeof n){const t=e[0],r=[...e.slice(1)];return r[0]&&(r[0].appName=n.name),n._errorFactory.create(t,...r)}return VE.create(n,...e)}function Ge(n,e,...t){if(!n)throw Hf(e,...t)}function Co(n){const e="INTERNAL ASSERTION FAILED: "+n;throw ql(e),new Error(e)}function As(n,e){n||Co(e)}function LE(){return typeof self<"u"&&self.location?.protocol||null}class $c{constructor(e,t){this.shortDelay=e,this.longDelay=t,As(t>e,"Short delay should be less than long delay!"),this.isMobile=(0,ut.jZ)()||(0,ut.lV)()}get(){return function mD(){return!(typeof navigator<"u"&&navigator&&"onLine"in navigator&&"boolean"==typeof navigator.onLine&&(function Gf(){return"http:"===LE()||"https:"===LE()}()||(0,ut.sr)()||"connection"in navigator))||navigator.onLine}()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}class UE{static initialize(e,t,r){this.fetchImpl=e,t&&(this.headersImpl=t),r&&(this.responseImpl=r)}static fetch(){return this.fetchImpl?this.fetchImpl:typeof self<"u"&&"fetch"in self?self.fetch:typeof globalThis<"u"&&globalThis.fetch?globalThis.fetch:typeof fetch<"u"?fetch:void Co("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){return this.headersImpl?this.headersImpl:typeof self<"u"&&"Headers"in self?self.Headers:typeof globalThis<"u"&&globalThis.Headers?globalThis.Headers:typeof Headers<"u"?Headers:void Co("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){return this.responseImpl?this.responseImpl:typeof self<"u"&&"Response"in self?self.Response:typeof globalThis<"u"&&globalThis.Response?globalThis.Response:typeof Response<"u"?Response:void Co("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}const _D={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"},yD=["/v1/accounts:signInWithCustomToken","/v1/accounts:signInWithEmailLink","/v1/accounts:signInWithIdp","/v1/accounts:signInWithPassword","/v1/accounts:signInWithPhoneNumber","/v1/token"],wD=new $c(3e4,6e4);function pn(n,e){return n.tenantId&&!e.tenantId?{...e,tenantId:n.tenantId}:e}function fn(n,e,t,r){return Wf.apply(this,arguments)}function Wf(){return(Wf=(0,d.A)(function*(n,e,t,r,o={}){return FE(n,o,(0,d.A)(function*(){let s={},i={};r&&("GET"===e?i=r:s={body:JSON.stringify(r)});const a=(0,ut.Am)({key:n.config.apiKey,...i}).slice(1),c=yield n._getAdditionalHeaders();c["Content-Type"]="application/json",n.languageCode&&(c["X-Firebase-Locale"]=n.languageCode);const l={method:e,headers:c,...s};return(0,ut.c1)()||(l.referrerPolicy="no-referrer"),n.emulatorConfig&&(0,ut.zJ)(n.emulatorConfig.host)&&(l.credentials="include"),UE.fetch()(yield jE(n,n.config.apiHost,t,a),l)}))})).apply(this,arguments)}function FE(n,e,t){return Zf.apply(this,arguments)}function Zf(){return(Zf=(0,d.A)(function*(n,e,t){n._canInitEmulator=!1;const r={..._D,...e};try{const o=new bD(n),s=yield Promise.race([t(),o.promise]);o.clearNetworkTimeout();const i=yield s.json();if("needConfirmation"in i)throw Nc(n,"account-exists-with-different-credential",i);if(s.ok&&!("errorMessage"in i))return i;{const a=s.ok?i.errorMessage:i.error.message,[c,l]=a.split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===c)throw Nc(n,"credential-already-in-use",i);if("EMAIL_EXISTS"===c)throw Nc(n,"email-already-in-use",i);if("USER_DISABLED"===c)throw Nc(n,"user-disabled",i);const h=r[c]||c.toLowerCase().replace(/[_\s]+/g,"-");if(l)throw Bf(n,h,l);Nr(n,h)}}catch(o){if(o instanceof ut.g)throw o;Nr(n,"network-request-failed",{message:String(o)})}})).apply(this,arguments)}function jE(n,e,t,r){return Jf.apply(this,arguments)}function Jf(){return(Jf=(0,d.A)(function*(n,e,t,r){const o=`${e}${t}?${r}`,s=n,i=s.config.emulator?function Kf(n,e){As(n.emulator,"Emulator should always be set here");const{url:t}=n.emulator;return e?`${t}${e.startsWith("/")?e.slice(1):e}`:t}(n.config,o):`${n.config.apiScheme}://${o}`;return yD.includes(t)&&(yield s._persistenceManagerAvailable,"COOKIE"===s._getPersistenceType())?s._getPersistence()._getFinalTarget(i).toString():i})).apply(this,arguments)}class bD{clearNetworkTimeout(){clearTimeout(this.timer)}constructor(e){this.auth=e,this.timer=null,this.promise=new Promise((t,r)=>{this.timer=setTimeout(()=>r(no(this.auth,"network-request-failed")),wD.get())})}}function Nc(n,e,t){const r={appName:n.name};t.email&&(r.email=t.email),t.phoneNumber&&(r.phoneNumber=t.phoneNumber);const o=no(n,e,r);return o.customData._tokenResponse=t,o}function em(){return(em=(0,d.A)(function*(n,e){return fn(n,"POST","/v1/accounts:delete",e)})).apply(this,arguments)}function Bl(n,e){return nm.apply(this,arguments)}function nm(){return(nm=(0,d.A)(function*(n,e){return fn(n,"POST","/v1/accounts:lookup",e)})).apply(this,arguments)}function Mc(n){if(n)try{const e=new Date(Number(n));if(!isNaN(e.getTime()))return e.toUTCString()}catch{}}function rm(){return(rm=(0,d.A)(function*(n,e=!1){const t=(0,ut.Ku)(n),r=yield t.getIdToken(e),o=Hl(r);Ge(o&&o.exp&&o.auth_time&&o.iat,t.auth,"internal-error");const s="object"==typeof o.firebase?o.firebase:void 0,i=s?.sign_in_provider;return{claims:o,token:r,authTime:Mc(om(o.auth_time)),issuedAtTime:Mc(om(o.iat)),expirationTime:Mc(om(o.exp)),signInProvider:i||null,signInSecondFactor:s?.sign_in_second_factor||null}})).apply(this,arguments)}function om(n){return 1e3*Number(n)}function Hl(n){const[e,t,r]=n.split(".");if(void 0===e||void 0===t||void 0===r)return ql("JWT malformed, contained fewer than 3 sections"),null;try{const o=(0,ut.u)(t);return o?JSON.parse(o):(ql("Failed to decode base64 JWT payload"),null)}catch(o){return ql("Caught error parsing JWT payload as JSON",o?.toString()),null}}function GE(n){const e=Hl(n);return Ge(e,"internal-error"),Ge(typeof e.exp<"u","internal-error"),Ge(typeof e.iat<"u","internal-error"),Number(e.exp)-Number(e.iat)}function Wo(n,e){return sm.apply(this,arguments)}function sm(){return(sm=(0,d.A)(function*(n,e,t=!1){if(t)return e;try{return yield e}catch(r){throw r instanceof ut.g&&function SD({code:n}){return"auth/user-disabled"===n||"auth/user-token-expired"===n}(r)&&n.auth.currentUser===n&&(yield n.auth.signOut()),r}})).apply(this,arguments)}class RD{constructor(e){this.user=e,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,null!==this.timerId&&clearTimeout(this.timerId))}getInterval(e){if(e){const t=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),t}{this.errorBackoff=3e4;const r=(this.user.stsTokenManager.expirationTime??0)-Date.now()-3e5;return Math.max(0,r)}}schedule(e=!1){var t=this;if(!this.isRunning)return;const r=this.getInterval(e);this.timerId=setTimeout((0,d.A)(function*(){yield t.iteration()}),r)}iteration(){var e=this;return(0,d.A)(function*(){try{yield e.user.getIdToken(!0)}catch(t){return void("auth/network-request-failed"===t?.code&&e.schedule(!0))}e.schedule()})()}}class im{constructor(e,t){this.createdAt=e,this.lastLoginAt=t,this._initializeTime()}_initializeTime(){this.lastSignInTime=Mc(this.lastLoginAt),this.creationTime=Mc(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}function Vc(n){return am.apply(this,arguments)}function am(){return(am=(0,d.A)(function*(n){const e=n.auth,t=yield n.getIdToken(),r=yield Wo(n,Bl(e,{idToken:t}));Ge(r?.users.length,e,"internal-error");const o=r.users[0];n._notifyReloadListener(o);const s=o.providerUserInfo?.length?KE(o.providerUserInfo):[],i=function kD(n,e){return[...n.filter(r=>!e.some(o=>o.providerId===r.providerId)),...e]}(n.providerData,s),l=!!n.isAnonymous&&!(n.email&&o.passwordHash||i?.length),h={uid:o.localId,displayName:o.displayName||null,photoURL:o.photoUrl||null,email:o.email||null,emailVerified:o.emailVerified||!1,phoneNumber:o.phoneNumber||null,tenantId:o.tenantId||null,providerData:i,metadata:new im(o.createdAt,o.lastLoginAt),isAnonymous:l};Object.assign(n,h)})).apply(this,arguments)}function cm(){return(cm=(0,d.A)(function*(n){const e=(0,ut.Ku)(n);yield Vc(e),yield e.auth._persistUserIfCurrent(e),e.auth._notifyListenersIfCurrent(e)})).apply(this,arguments)}function KE(n){return n.map(({providerId:e,...t})=>({providerId:e,uid:t.rawId||"",displayName:t.displayName||null,email:t.email||null,phoneNumber:t.phoneNumber||null,photoURL:t.photoUrl||null}))}function um(){return(um=(0,d.A)(function*(n,e){const t=yield FE(n,{},(0,d.A)(function*(){const r=(0,ut.Am)({grant_type:"refresh_token",refresh_token:e}).slice(1),{tokenApiHost:o,apiKey:s}=n.config,i=yield jE(n,o,"/v1/token",`key=${s}`),a=yield n._getAdditionalHeaders();a["Content-Type"]="application/x-www-form-urlencoded";const c={method:"POST",headers:a,body:r};return n.emulatorConfig&&(0,ut.zJ)(n.emulatorConfig.host)&&(c.credentials="include"),UE.fetch()(i,c)}));return{accessToken:t.access_token,expiresIn:t.expires_in,refreshToken:t.refresh_token}})).apply(this,arguments)}function lm(){return(lm=(0,d.A)(function*(n,e){return fn(n,"POST","/v2/accounts:revokeToken",pn(n,e))})).apply(this,arguments)}class la{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){Ge(e.idToken,"internal-error"),Ge(typeof e.idToken<"u","internal-error"),Ge(typeof e.refreshToken<"u","internal-error");const t="expiresIn"in e&&typeof e.expiresIn<"u"?Number(e.expiresIn):GE(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,t)}updateFromIdToken(e){Ge(0!==e.length,"internal-error");const t=GE(e);this.updateTokensAndExpiration(e,null,t)}getToken(e){var t=this;return(0,d.A)(function*(r,o=!1){return o||!t.accessToken||t.isExpired?(Ge(t.refreshToken,r,"user-token-expired"),t.refreshToken?(yield t.refresh(r,t.refreshToken),t.accessToken):null):t.accessToken}).apply(this,arguments)}clearRefreshToken(){this.refreshToken=null}refresh(e,t){var r=this;return(0,d.A)(function*(){const{accessToken:o,refreshToken:s,expiresIn:i}=yield function CD(n,e){return um.apply(this,arguments)}(e,t);r.updateTokensAndExpiration(o,s,Number(i))})()}updateTokensAndExpiration(e,t,r){this.refreshToken=t||null,this.accessToken=e||null,this.expirationTime=Date.now()+1e3*r}static fromJSON(e,t){const{refreshToken:r,accessToken:o,expirationTime:s}=t,i=new la;return r&&(Ge("string"==typeof r,"internal-error",{appName:e}),i.refreshToken=r),o&&(Ge("string"==typeof o,"internal-error",{appName:e}),i.accessToken=o),s&&(Ge("number"==typeof s,"internal-error",{appName:e}),i.expirationTime=s),i}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}_clone(){return Object.assign(new la,this.toJSON())}_performRefresh(){return Co("not implemented")}}function Ss(n,e){Ge("string"==typeof n||typeof n>"u","internal-error",{appName:e})}class fo{constructor({uid:e,auth:t,stsTokenManager:r,...o}){this.providerId="firebase",this.proactiveRefresh=new RD(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=e,this.auth=t,this.stsTokenManager=r,this.accessToken=r.accessToken,this.displayName=o.displayName||null,this.email=o.email||null,this.emailVerified=o.emailVerified||!1,this.phoneNumber=o.phoneNumber||null,this.photoURL=o.photoURL||null,this.isAnonymous=o.isAnonymous||!1,this.tenantId=o.tenantId||null,this.providerData=o.providerData?[...o.providerData]:[],this.metadata=new im(o.createdAt||void 0,o.lastLoginAt||void 0)}getIdToken(e){var t=this;return(0,d.A)(function*(){const r=yield Wo(t,t.stsTokenManager.getToken(t.auth,e));return Ge(r,t.auth,"internal-error"),t.accessToken!==r&&(t.accessToken=r,yield t.auth._persistUserIfCurrent(t),t.auth._notifyListenersIfCurrent(t)),r})()}getIdTokenResult(e){return function AD(n){return rm.apply(this,arguments)}(this,e)}reload(){return function PD(n){return cm.apply(this,arguments)}(this)}_assign(e){this!==e&&(Ge(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.photoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map(t=>({...t})),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(e){const t=new fo({...this,auth:e,stsTokenManager:this.stsTokenManager._clone()});return t.metadata._copy(this.metadata),t}_onReload(e){Ge(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}_updateTokensIfNecessary(e){var t=this;return(0,d.A)(function*(r,o=!1){let s=!1;r.idToken&&r.idToken!==t.stsTokenManager.accessToken&&(t.stsTokenManager.updateFromServerResponse(r),s=!0),o&&(yield Vc(t)),yield t.auth._persistUserIfCurrent(t),s&&t.auth._notifyListenersIfCurrent(t)}).apply(this,arguments)}delete(){var e=this;return(0,d.A)(function*(){if((0,$.xZ)(e.auth.app))return Promise.reject(rr(e.auth));const t=yield e.getIdToken();return yield Wo(e,function ID(n,e){return em.apply(this,arguments)}(e.auth,{idToken:t})),e.stsTokenManager.clearRefreshToken(),e.auth.signOut()})()}toJSON(){return{uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(e=>({...e})),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId,...this.metadata.toJSON(),apiKey:this.auth.config.apiKey,appName:this.auth.name}}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(e,t){const r=t.displayName??void 0,o=t.email??void 0,s=t.phoneNumber??void 0,i=t.photoURL??void 0,a=t.tenantId??void 0,c=t._redirectEventId??void 0,l=t.createdAt??void 0,h=t.lastLoginAt??void 0,{uid:p,emailVerified:y,isAnonymous:P,providerData:K,stsTokenManager:re}=t;Ge(p&&re,e,"internal-error");const fe=la.fromJSON(this.name,re);Ge("string"==typeof p,e,"internal-error"),Ss(r,e.name),Ss(o,e.name),Ge("boolean"==typeof y,e,"internal-error"),Ge("boolean"==typeof P,e,"internal-error"),Ss(s,e.name),Ss(i,e.name),Ss(a,e.name),Ss(c,e.name),Ss(l,e.name),Ss(h,e.name);const ce=new fo({uid:p,auth:e,email:o,emailVerified:y,displayName:r,isAnonymous:P,photoURL:i,phoneNumber:s,tenantId:a,stsTokenManager:fe,createdAt:l,lastLoginAt:h});return K&&Array.isArray(K)&&(ce.providerData=K.map(Ae=>({...Ae}))),c&&(ce._redirectEventId=c),ce}static _fromIdTokenResponse(e,t){return(0,d.A)(function*(r,o,s=!1){const i=new la;i.updateFromServerResponse(o);const a=new fo({uid:o.localId,auth:r,stsTokenManager:i,isAnonymous:s});return yield Vc(a),a}).apply(this,arguments)}static _fromGetAccountInfoResponse(e,t,r){return(0,d.A)(function*(){const o=t.users[0];Ge(void 0!==o.localId,"internal-error");const s=void 0!==o.providerUserInfo?KE(o.providerUserInfo):[],i=!(o.email&&o.passwordHash||s?.length),a=new la;a.updateFromIdToken(r);const c=new fo({uid:o.localId,auth:e,stsTokenManager:a,isAnonymous:i}),l={uid:o.localId,displayName:o.displayName||null,photoURL:o.photoUrl||null,email:o.email||null,emailVerified:o.emailVerified||!1,phoneNumber:o.phoneNumber||null,tenantId:o.tenantId||null,providerData:s,metadata:new im(o.createdAt,o.lastLoginAt),isAnonymous:!(o.email&&o.passwordHash||s?.length)};return Object.assign(c,l),c})()}}const WE=new Map;function Zo(n){As(n instanceof Function,"Expected a class definition");let e=WE.get(n);return e?(As(e instanceof n,"Instance stored in cache mismatched with class"),e):(e=new n,WE.set(n,e),e)}const ZE=(()=>{class n{constructor(){this.type="NONE",this.storage={}}_isAvailable(){return(0,d.A)(function*(){return!0})()}_set(t,r){var o=this;return(0,d.A)(function*(){o.storage[t]=r})()}_get(t){var r=this;return(0,d.A)(function*(){const o=r.storage[t];return void 0===o?null:o})()}_remove(t){var r=this;return(0,d.A)(function*(){delete r.storage[t]})()}_addListener(t,r){}_removeListener(t,r){}}return n.type="NONE",n})();function Gl(n,e,t){return`firebase:${n}:${e}:${t}`}class da{constructor(e,t,r){this.persistence=e,this.auth=t,this.userKey=r;const{config:o,name:s}=this.auth;this.fullUserKey=Gl(this.userKey,o.apiKey,s),this.fullPersistenceKey=Gl("persistence",o.apiKey,s),this.boundEventHandler=t._onStorageEvent.bind(t),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}getCurrentUser(){var e=this;return(0,d.A)(function*(){const t=yield e.persistence._get(e.fullUserKey);if(!t)return null;if("string"==typeof t){const r=yield Bl(e.auth,{idToken:t}).catch(()=>{});return r?fo._fromGetAccountInfoResponse(e.auth,r,t):null}return fo._fromJSON(e.auth,t)})()}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}setPersistence(e){var t=this;return(0,d.A)(function*(){if(t.persistence===e)return;const r=yield t.getCurrentUser();return yield t.removeCurrentUser(),t.persistence=e,r?t.setCurrentUser(r):void 0})()}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static create(e,t){return(0,d.A)(function*(r,o,s="authUser"){if(!o.length)return new da(Zo(ZE),r,s);const i=(yield Promise.all(o.map(function(){var p=(0,d.A)(function*(y){if(yield y._isAvailable())return y});return function(y){return p.apply(this,arguments)}}()))).filter(p=>p);let a=i[0]||Zo(ZE);const c=Gl(s,r.config.apiKey,r.name);let l=null;for(const p of o)try{const y=yield p._get(c);if(y){let P;if("string"==typeof y){const K=yield Bl(r,{idToken:y}).catch(()=>{});if(!K)break;P=yield fo._fromGetAccountInfoResponse(r,K,y)}else P=fo._fromJSON(r,y);p!==a&&(l=P),a=p;break}}catch{}const h=i.filter(p=>p._shouldAllowMigration);return a._shouldAllowMigration&&h.length?(a=h[0],l&&(yield a._set(c,l.toJSON())),yield Promise.all(o.map(function(){var p=(0,d.A)(function*(y){if(y!==a)try{yield y._remove(c)}catch{}});return function(y){return p.apply(this,arguments)}}())),new da(a,r,s)):new da(a,r,s)}).apply(this,arguments)}}function QE(n){const e=n.toLowerCase();if(e.includes("opera/")||e.includes("opr/")||e.includes("opios/"))return"Opera";if(function eI(n=(0,ut.ZQ)()){return/iemobile/i.test(n)}(e))return"IEMobile";if(e.includes("msie")||e.includes("trident/"))return"IE";if(e.includes("edge/"))return"Edge";if(function JE(n=(0,ut.ZQ)()){return/firefox\//i.test(n)}(e))return"Firefox";if(e.includes("silk/"))return"Silk";if(function nI(n=(0,ut.ZQ)()){return/blackberry/i.test(n)}(e))return"Blackberry";if(function rI(n=(0,ut.ZQ)()){return/webos/i.test(n)}(e))return"Webos";if(function XE(n=(0,ut.ZQ)()){const e=n.toLowerCase();return e.includes("safari/")&&!e.includes("chrome/")&&!e.includes("crios/")&&!e.includes("android")}(e))return"Safari";if((e.includes("chrome/")||function YE(n=(0,ut.ZQ)()){return/crios\//i.test(n)}(e))&&!e.includes("edge/"))return"Chrome";if(function tI(n=(0,ut.ZQ)()){return/android/i.test(n)}(e))return"Android";{const r=n.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/);if(2===r?.length)return r[1]}return"Other"}function oI(n,e=[]){let t;switch(n){case"Browser":t=QE((0,ut.ZQ)());break;case"Worker":t=`${QE((0,ut.ZQ)())}-${n}`;break;default:t=n}const r=e.length?e.join(","):"FirebaseCore-web";return`${t}/JsCore/${$.MF}/${r}`}class $D{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,t){const r=s=>new Promise((i,a)=>{try{i(e(s))}catch(c){a(c)}});r.onAbort=t,this.queue.push(r);const o=this.queue.length-1;return()=>{this.queue[o]=()=>Promise.resolve()}}runMiddleware(e){var t=this;return(0,d.A)(function*(){if(t.auth.currentUser===e)return;const r=[];try{for(const o of t.queue)yield o(e),o.onAbort&&r.push(o.onAbort)}catch(o){r.reverse();for(const s of r)try{s()}catch{}throw t.auth._errorFactory.create("login-blocked",{originalMessage:o?.message})}})()}}function hm(){return(hm=(0,d.A)(function*(n,e={}){return fn(n,"GET","/v2/passwordPolicy",pn(n,e))})).apply(this,arguments)}class VD{constructor(e){const t=e.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=t.minPasswordLength??6,t.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=t.maxPasswordLength),void 0!==t.containsLowercaseCharacter&&(this.customStrengthOptions.containsLowercaseLetter=t.containsLowercaseCharacter),void 0!==t.containsUppercaseCharacter&&(this.customStrengthOptions.containsUppercaseLetter=t.containsUppercaseCharacter),void 0!==t.containsNumericCharacter&&(this.customStrengthOptions.containsNumericCharacter=t.containsNumericCharacter),void 0!==t.containsNonAlphanumericCharacter&&(this.customStrengthOptions.containsNonAlphanumericCharacter=t.containsNonAlphanumericCharacter),this.enforcementState=e.enforcementState,"ENFORCEMENT_STATE_UNSPECIFIED"===this.enforcementState&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=e.allowedNonAlphanumericCharacters?.join("")??"",this.forceUpgradeOnSignin=e.forceUpgradeOnSignin??!1,this.schemaVersion=e.schemaVersion}validatePassword(e){const t={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(e,t),this.validatePasswordCharacterOptions(e,t),t.isValid&&(t.isValid=t.meetsMinPasswordLength??!0),t.isValid&&(t.isValid=t.meetsMaxPasswordLength??!0),t.isValid&&(t.isValid=t.containsLowercaseLetter??!0),t.isValid&&(t.isValid=t.containsUppercaseLetter??!0),t.isValid&&(t.isValid=t.containsNumericCharacter??!0),t.isValid&&(t.isValid=t.containsNonAlphanumericCharacter??!0),t}validatePasswordLengthOptions(e,t){const r=this.customStrengthOptions.minPasswordLength,o=this.customStrengthOptions.maxPasswordLength;r&&(t.meetsMinPasswordLength=e.length>=r),o&&(t.meetsMaxPasswordLength=e.length<=o)}validatePasswordCharacterOptions(e,t){let r;this.updatePasswordCharacterOptionsStatuses(t,!1,!1,!1,!1);for(let o=0;o<e.length;o++)r=e.charAt(o),this.updatePasswordCharacterOptionsStatuses(t,r>="a"&&r<="z",r>="A"&&r<="Z",r>="0"&&r<="9",this.allowedNonAlphanumericCharacters.includes(r))}updatePasswordCharacterOptionsStatuses(e,t,r,o,s){this.customStrengthOptions.containsLowercaseLetter&&(e.containsLowercaseLetter||(e.containsLowercaseLetter=t)),this.customStrengthOptions.containsUppercaseLetter&&(e.containsUppercaseLetter||(e.containsUppercaseLetter=r)),this.customStrengthOptions.containsNumericCharacter&&(e.containsNumericCharacter||(e.containsNumericCharacter=o)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(e.containsNonAlphanumericCharacter||(e.containsNonAlphanumericCharacter=s))}}class LD{constructor(e,t,r,o){this.app=e,this.heartbeatServiceProvider=t,this.appCheckServiceProvider=r,this.config=o,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new sI(this),this.idTokenSubscription=new sI(this),this.beforeStateQueue=new $D(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=VE,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this._resolvePersistenceManagerAvailable=void 0,this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=e.name,this.clientVersion=o.sdkClientVersion,this._persistenceManagerAvailable=new Promise(s=>this._resolvePersistenceManagerAvailable=s)}_initializeWithPersistence(e,t){var r=this;return t&&(this._popupRedirectResolver=Zo(t)),this._initializationPromise=this.queue((0,d.A)(function*(){if(!r._deleted&&(r.persistenceManager=yield da.create(r,e),r._resolvePersistenceManagerAvailable?.(),!r._deleted)){if(r._popupRedirectResolver?._shouldInitProactively)try{yield r._popupRedirectResolver._initialize(r)}catch{}yield r.initializeCurrentUser(t),r.lastNotifiedUid=r.currentUser?.uid||null,!r._deleted&&(r._isInitialized=!0)}})),this._initializationPromise}_onStorageEvent(){var e=this;return(0,d.A)(function*(){if(e._deleted)return;const t=yield e.assertedPersistence.getCurrentUser();if(e.currentUser||t){if(e.currentUser&&t&&e.currentUser.uid===t.uid)return e._currentUser._assign(t),void(yield e.currentUser.getIdToken());yield e._updateCurrentUser(t,!0)}})()}initializeCurrentUserFromIdToken(e){var t=this;return(0,d.A)(function*(){try{const r=yield Bl(t,{idToken:e}),o=yield fo._fromGetAccountInfoResponse(t,r,e);yield t.directlySetCurrentUser(o)}catch(r){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",r),yield t.directlySetCurrentUser(null)}})()}initializeCurrentUser(e){var t=this;return(0,d.A)(function*(){if((0,$.xZ)(t.app)){const i=t.app.settings.authIdToken;return i?new Promise(a=>{setTimeout(()=>t.initializeCurrentUserFromIdToken(i).then(a,a))}):t.directlySetCurrentUser(null)}const r=yield t.assertedPersistence.getCurrentUser();let o=r,s=!1;if(e&&t.config.authDomain){yield t.getOrInitRedirectPersistenceManager();const i=t.redirectUser?._redirectEventId,a=o?._redirectEventId,c=yield t.tryRedirectSignIn(e);(!i||i===a)&&c?.user&&(o=c.user,s=!0)}if(!o)return t.directlySetCurrentUser(null);if(!o._redirectEventId){if(s)try{yield t.beforeStateQueue.runMiddleware(o)}catch(i){o=r,t._popupRedirectResolver._overrideRedirectResult(t,()=>Promise.reject(i))}return o?t.reloadAndSetCurrentUserOrClear(o):t.directlySetCurrentUser(null)}return Ge(t._popupRedirectResolver,t,"argument-error"),yield t.getOrInitRedirectPersistenceManager(),t.redirectUser&&t.redirectUser._redirectEventId===o._redirectEventId?t.directlySetCurrentUser(o):t.reloadAndSetCurrentUserOrClear(o)})()}tryRedirectSignIn(e){var t=this;return(0,d.A)(function*(){let r=null;try{r=yield t._popupRedirectResolver._completeRedirectFn(t,e,!0)}catch{yield t._setRedirectUser(null)}return r})()}reloadAndSetCurrentUserOrClear(e){var t=this;return(0,d.A)(function*(){try{yield Vc(e)}catch(r){if("auth/network-request-failed"!==r?.code)return t.directlySetCurrentUser(null)}return t.directlySetCurrentUser(e)})()}useDeviceLanguage(){this.languageCode=function gD(){if(typeof navigator>"u")return null;const n=navigator;return n.languages&&n.languages[0]||n.language||null}()}_delete(){var e=this;return(0,d.A)(function*(){e._deleted=!0})()}updateCurrentUser(e){var t=this;return(0,d.A)(function*(){if((0,$.xZ)(t.app))return Promise.reject(rr(t));const r=e?(0,ut.Ku)(e):null;return r&&Ge(r.auth.config.apiKey===t.config.apiKey,t,"invalid-user-token"),t._updateCurrentUser(r&&r._clone(t))})()}_updateCurrentUser(e){var t=this;return(0,d.A)(function*(r,o=!1){if(!t._deleted)return r&&Ge(t.tenantId===r.tenantId,t,"tenant-id-mismatch"),o||(yield t.beforeStateQueue.runMiddleware(r)),t.queue((0,d.A)(function*(){yield t.directlySetCurrentUser(r),t.notifyAuthListeners()}))}).apply(this,arguments)}signOut(){var e=this;return(0,d.A)(function*(){return(0,$.xZ)(e.app)?Promise.reject(rr(e)):(yield e.beforeStateQueue.runMiddleware(null),(e.redirectPersistenceManager||e._popupRedirectResolver)&&(yield e._setRedirectUser(null)),e._updateCurrentUser(null,!0))})()}setPersistence(e){var t=this;return(0,$.xZ)(this.app)?Promise.reject(rr(this)):this.queue((0,d.A)(function*(){yield t.assertedPersistence.setPersistence(Zo(e))}))}_getRecaptchaConfig(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}validatePassword(e){var t=this;return(0,d.A)(function*(){t._getPasswordPolicyInternal()||(yield t._updatePasswordPolicy());const r=t._getPasswordPolicyInternal();return r.schemaVersion!==t.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(t._errorFactory.create("unsupported-password-policy-schema-version",{})):r.validatePassword(e)})()}_getPasswordPolicyInternal(){return null===this.tenantId?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}_updatePasswordPolicy(){var e=this;return(0,d.A)(function*(){const t=yield function ND(n){return hm.apply(this,arguments)}(e),r=new VD(t);null===e.tenantId?e._projectPasswordPolicy=r:e._tenantPasswordPolicies[e.tenantId]=r})()}_getPersistenceType(){return this.assertedPersistence.persistence.type}_getPersistence(){return this.assertedPersistence.persistence}_updateErrorMap(e){this._errorFactory=new ut.FA("auth","Firebase",e())}onAuthStateChanged(e,t,r){return this.registerStateListener(this.authStateSubscription,e,t,r)}beforeAuthStateChanged(e,t){return this.beforeStateQueue.pushCallback(e,t)}onIdTokenChanged(e,t,r){return this.registerStateListener(this.idTokenSubscription,e,t,r)}authStateReady(){return new Promise((e,t)=>{if(this.currentUser)e();else{const r=this.onAuthStateChanged(()=>{r(),e()},t)}})}revokeAccessToken(e){var t=this;return(0,d.A)(function*(){if(t.currentUser){const r=yield t.currentUser.getIdToken(),o={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:e,idToken:r};null!=t.tenantId&&(o.tenantId=t.tenantId),yield function xD(n,e){return lm.apply(this,arguments)}(t,o)}})()}toJSON(){return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:this._currentUser?.toJSON()}}_setRedirectUser(e,t){var r=this;return(0,d.A)(function*(){const o=yield r.getOrInitRedirectPersistenceManager(t);return null===e?o.removeCurrentUser():o.setCurrentUser(e)})()}getOrInitRedirectPersistenceManager(e){var t=this;return(0,d.A)(function*(){if(!t.redirectPersistenceManager){const r=e&&Zo(e)||t._popupRedirectResolver;Ge(r,t,"argument-error"),t.redirectPersistenceManager=yield da.create(t,[Zo(r._redirectPersistence)],"redirectUser"),t.redirectUser=yield t.redirectPersistenceManager.getCurrentUser()}return t.redirectPersistenceManager})()}_redirectUserForId(e){var t=this;return(0,d.A)(function*(){return t._isInitialized&&(yield t.queue((0,d.A)(function*(){}))),t._currentUser?._redirectEventId===e?t._currentUser:t.redirectUser?._redirectEventId===e?t.redirectUser:null})()}_persistUserIfCurrent(e){var t=this;return(0,d.A)(function*(){if(e===t.currentUser)return t.queue((0,d.A)(function*(){return t.directlySetCurrentUser(e)}))})()}_notifyListenersIfCurrent(e){e===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const e=this.currentUser?.uid??null;this.lastNotifiedUid!==e&&(this.lastNotifiedUid=e,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,t,r,o){if(this._deleted)return()=>{};const s="function"==typeof t?t:t.next.bind(t);let i=!1;const a=this._isInitialized?Promise.resolve():this._initializationPromise;if(Ge(a,this,"internal-error"),a.then(()=>{i||s(this.currentUser)}),"function"==typeof t){const c=e.addObserver(t,r,o);return()=>{i=!0,c()}}{const c=e.addObserver(t);return()=>{i=!0,c()}}}directlySetCurrentUser(e){var t=this;return(0,d.A)(function*(){t.currentUser&&t.currentUser!==e&&t._currentUser._stopProactiveRefresh(),e&&t.isProactiveRefreshEnabled&&e._startProactiveRefresh(),t.currentUser=e,e?yield t.assertedPersistence.setCurrentUser(e):yield t.assertedPersistence.removeCurrentUser()})()}queue(e){return this.operations=this.operations.then(e,e),this.operations}get assertedPersistence(){return Ge(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){!e||this.frameworks.includes(e)||(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=oI(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}_getAdditionalHeaders(){var e=this;return(0,d.A)(function*(){const t={"X-Client-Version":e.clientVersion};e.app.options.appId&&(t["X-Firebase-gmpid"]=e.app.options.appId);const r=yield e.heartbeatServiceProvider.getImmediate({optional:!0})?.getHeartbeatsHeader();r&&(t["X-Firebase-Client"]=r);const o=yield e._getAppCheckToken();return o&&(t["X-Firebase-AppCheck"]=o),t})()}_getAppCheckToken(){var e=this;return(0,d.A)(function*(){if((0,$.xZ)(e.app)&&e.app.settings.appCheckToken)return e.app.settings.appCheckToken;const t=yield e.appCheckServiceProvider.getImmediate({optional:!0})?.getToken();return t?.error&&function fD(n,...e){zl.logLevel<=rn.$b.WARN&&zl.warn(`Auth (${$.MF}): ${n}`,...e)}(`Error while retrieving App Check token: ${t.error}`),t?.token})()}}class sI{constructor(e){this.auth=e,this.observer=null,this.addObserver=(0,ut.tD)(t=>this.observer=t)}get next(){return Ge(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}let Lc={loadJS:()=>(0,d.A)(function*(){throw new Error("Unable to load external scripts")})(),recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};(function iI(n){return`__${n}${Math.floor(1e6*Math.random())}`})("rcb"),new $c(3e4,6e4),new $c(2e3,1e4),new $c(3e4,6e4),new $c(5e3,15e3),encodeURIComponent("fac");var jI="@firebase/auth";class U${constructor(e){this.auth=e,this.internalListeners=new Map}getUid(){return this.assertAuthConfigured(),this.auth.currentUser?.uid||null}getToken(e){var t=this;return(0,d.A)(function*(){return t.assertAuthConfigured(),yield t.auth._initializationPromise,t.auth.currentUser?{accessToken:yield t.auth.currentUser.getIdToken(e)}:null})()}addAuthTokenListener(e){if(this.assertAuthConfigured(),this.internalListeners.has(e))return;const t=this.auth.onIdTokenChanged(r=>{e(r?.stsTokenManager.accessToken||null)});this.internalListeners.set(e,t),this.updateProactiveRefresh()}removeAuthTokenListener(e){this.assertAuthConfigured();const t=this.internalListeners.get(e);t&&(this.internalListeners.delete(e),t(),this.updateProactiveRefresh())}assertAuthConfigured(){Ge(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}(0,ut.XA)("authIdTokenMaxAge"),function UD(n){Lc=n}({loadJS:n=>new Promise((e,t)=>{const r=document.createElement("script");r.setAttribute("src",n),r.onload=e,r.onerror=o=>{const s=no("internal-error");s.customData=o,t(s)},r.type="text/javascript",r.charset="UTF-8",function B$(){return document.getElementsByTagName("head")?.[0]??document}().appendChild(r)}),gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="}),function j$(n){(0,$.om)(new Rr.uA("auth",(e,{options:t})=>{const r=e.getProvider("app").getImmediate(),o=e.getProvider("heartbeat"),s=e.getProvider("app-check-internal"),{apiKey:i,authDomain:a}=r.options;Ge(i&&!i.includes(":"),"invalid-api-key",{appName:r.name});const c={apiKey:i,authDomain:a,clientPlatform:n,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:oI(n)},l=new LD(r,o,s,c);return function XD(n,e){const t=e?.persistence||[],r=(Array.isArray(t)?t:[t]).map(Zo);e?.errorMap&&n._updateErrorMap(e.errorMap),n._initializeWithPersistence(r,e?.popupRedirectResolver)}(l,t),l},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((e,t,r)=>{e.getProvider("auth-internal").initialize()})),(0,$.om)(new Rr.uA("auth-internal",e=>{const t=function Fn(n){return(0,ut.Ku)(n)}(e.getProvider("auth").getImmediate());return new U$(t)},"PRIVATE").setInstantiationMode("EXPLICIT")),(0,$.KO)(jI,"1.12.0",function F$(n){switch(n){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}(n)),(0,$.KO)(jI,"1.12.0","esm2020")}("Browser"),R(56218);const H$=Object.freeze({status:"aborted"});function De(n,e,t){function r(a,c){var l;Object.defineProperty(a,"_zod",{value:a._zod??{},enumerable:!1}),(l=a._zod).traits??(l.traits=new Set),a._zod.traits.add(n),e(a,c);for(const h in i.prototype)h in a||Object.defineProperty(a,h,{value:i.prototype[h].bind(a)});a._zod.constr=i,a._zod.def=c}const o=t?.Parent??Object;class s extends o{}function i(a){var c;const l=t?.Parent?new s:this;r(l,a),(c=l._zod).deferred??(c.deferred=[]);for(const h of l._zod.deferred)h();return l}return Object.defineProperty(s,"name",{value:n}),Object.defineProperty(i,"init",{value:r}),Object.defineProperty(i,Symbol.hasInstance,{value:a=>!!(t?.Parent&&a instanceof t.Parent)||a?._zod?.traits?.has(n)}),Object.defineProperty(i,"name",{value:n}),i}class Wc extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const n_={};function ks(n){return n&&Object.assign(n_,n),n_}function K$(n,e){return"bigint"==typeof e?e.toString():e}function r_(n){return{get value(){{const t=n();return Object.defineProperty(this,"value",{value:t}),t}}}}function o_(n){return null==n}function s_(n){const e=n.startsWith("^")?1:0,t=n.endsWith("$")?n.length-1:n.length;return n.slice(e,t)}function mn(n,e,t){Object.defineProperty(n,e,{get(){{const o=t();return n[e]=o,o}},set(o){Object.defineProperty(n,e,{value:o})},configurable:!0})}function od(n,e,t){Object.defineProperty(n,e,{value:t,writable:!0,enumerable:!0,configurable:!0})}function Zc(n){return JSON.stringify(n)}const BI=Error.captureStackTrace?Error.captureStackTrace:(...n)=>{};function sd(n){return"object"==typeof n&&null!==n&&!Array.isArray(n)}const Z$=r_(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch{return!1}});function id(n){if(!1===sd(n))return!1;const e=n.constructor;if(void 0===e)return!0;const t=e.prototype;return!(!1===sd(t)||!1===Object.prototype.hasOwnProperty.call(t,"isPrototypeOf"))}const Q$=new Set(["string","number","symbol"]);function Qc(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function di(n,e,t){const r=new n._zod.constr(e??n._zod.def);return(!e||t?.parent)&&(r._zod.parent=n),r}function ht(n){const e=n;if(!e)return{};if("string"==typeof e)return{error:()=>e};if(void 0!==e?.message){if(void 0!==e?.error)throw new Error("Cannot specify both `message` and `error` params");e.error=e.message}return delete e.message,"string"==typeof e.error?{...e,error:()=>e.error}:e}const Y$={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Jc(n,e=0){for(let t=e;t<n.issues.length;t++)if(!0!==n.issues[t]?.continue)return!0;return!1}function hi(n,e){return e.map(t=>{var r;return(r=t).path??(r.path=[]),t.path.unshift(n),t})}function ad(n){return"string"==typeof n?n:n?.message}function Cs(n,e,t){const r={...n,path:n.path??[]};if(!n.message){const o=ad(n.inst?._zod.def?.error?.(n))??ad(e?.error?.(n))??ad(t.customError?.(n))??ad(t.localeError?.(n))??"Invalid input";r.message=o}return delete r.inst,delete r.continue,e?.reportInput||delete r.input,r}function i_(n){return Array.isArray(n)?"array":"string"==typeof n?"string":"unknown"}function Xc(...n){const[e,t,r]=n;return"string"==typeof e?{message:e,code:"custom",input:t,inst:r}:{...e}}const HI=(n,e)=>{n.name="$ZodError",Object.defineProperty(n,"_zod",{value:n._zod,enumerable:!1}),Object.defineProperty(n,"issues",{value:e,enumerable:!1}),Object.defineProperty(n,"message",{get:()=>JSON.stringify(e,K$,2),enumerable:!0}),Object.defineProperty(n,"toString",{value:()=>n.message,enumerable:!1})},GI=De("$ZodError",HI),cd=De("$ZodError",HI,{Parent:Error}),KI=n=>(e,t,r,o)=>{const s=r?Object.assign(r,{async:!1}):{async:!1},i=e._zod.run({value:t,issues:[]},s);if(i instanceof Promise)throw new Wc;if(i.issues.length){const a=new(o?.Err??n)(i.issues.map(c=>Cs(c,s,ks())));throw BI(a,o?.callee),a}return i.value},WI=n=>function(){var e=(0,d.A)(function*(t,r,o,s){const i=o?Object.assign(o,{async:!0}):{async:!0};let a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise&&(a=yield a),a.issues.length){const c=new(s?.Err??n)(a.issues.map(l=>Cs(l,i,ks())));throw BI(c,s?.callee),c}return a.value});return function(t,r,o,s){return e.apply(this,arguments)}}(),ZI=n=>(e,t,r)=>{const o=r?{...r,async:!1}:{async:!1},s=e._zod.run({value:t,issues:[]},o);if(s instanceof Promise)throw new Wc;return s.issues.length?{success:!1,error:new(n??GI)(s.issues.map(i=>Cs(i,o,ks())))}:{success:!0,data:s.value}},QI=ZI(cd),JI=n=>function(){var e=(0,d.A)(function*(t,r,o){const s=o?Object.assign(o,{async:!0}):{async:!0};let i=t._zod.run({value:r,issues:[]},s);return i instanceof Promise&&(i=yield i),i.issues.length?{success:!1,error:new n(i.issues.map(a=>Cs(a,s,ks())))}:{success:!0,data:i.value}});return function(t,r,o){return e.apply(this,arguments)}}(),uN=JI(cd),fN=/^[cC][^\s-]{8,}$/,mN=/^[0-9a-z]+$/,gN=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,_N=/^[0-9a-vA-V]{20}$/,yN=/^[A-Za-z0-9]{27}$/,wN=/^[a-zA-Z0-9_-]{21}$/,vN=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,bN=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,YI=n=>n?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${n}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/,EN=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,AN=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,SN=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,RN=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,PN=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,kN=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,eT=/^[A-Za-z0-9_-]*$/,CN=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,xN=/^\+(?:[0-9]){6,14}[0-9]$/,tT="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",DN=new RegExp(`^${tT}$`);function nT(n){const e="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof n.precision?-1===n.precision?`${e}`:0===n.precision?`${e}:[0-5]\\d`:`${e}:[0-5]\\d\\.\\d{${n.precision}}`:`${e}(?::[0-5]\\d(?:\\.\\d+)?)?`}const MN=/^\d+$/,VN=/^-?\d+(?:\.\d+)?/i,LN=/true|false/i,UN=/null/i,FN=/^[^A-Z]*$/,jN=/^[^a-z]*$/,Mr=De("$ZodCheck",(n,e)=>{var t;n._zod??(n._zod={}),n._zod.def=e,(t=n._zod).onattach??(t.onattach=[])}),rT={number:"number",bigint:"bigint",object:"date"},oT=De("$ZodCheckLessThan",(n,e)=>{Mr.init(n,e);const t=rT[typeof e.value];n._zod.onattach.push(r=>{const o=r._zod.bag;e.value<((e.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY)&&(e.inclusive?o.maximum=e.value:o.exclusiveMaximum=e.value)}),n._zod.check=r=>{(e.inclusive?r.value<=e.value:r.value<e.value)||r.issues.push({origin:t,code:"too_big",maximum:e.value,input:r.value,inclusive:e.inclusive,inst:n,continue:!e.abort})}}),sT=De("$ZodCheckGreaterThan",(n,e)=>{Mr.init(n,e);const t=rT[typeof e.value];n._zod.onattach.push(r=>{const o=r._zod.bag;e.value>((e.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY)&&(e.inclusive?o.minimum=e.value:o.exclusiveMinimum=e.value)}),n._zod.check=r=>{(e.inclusive?r.value>=e.value:r.value>e.value)||r.issues.push({origin:t,code:"too_small",minimum:e.value,input:r.value,inclusive:e.inclusive,inst:n,continue:!e.abort})}}),qN=De("$ZodCheckMultipleOf",(n,e)=>{Mr.init(n,e),n._zod.onattach.push(t=>{var r;(r=t._zod.bag).multipleOf??(r.multipleOf=e.value)}),n._zod.check=t=>{if(typeof t.value!=typeof e.value)throw new Error("Cannot mix number and bigint in multiple_of check.");("bigint"==typeof t.value?t.value%e.value===BigInt(0):0===function W$(n,e){const t=(n.toString().split(".")[1]||"").length,r=(e.toString().split(".")[1]||"").length,o=t>r?t:r;return Number.parseInt(n.toFixed(o).replace(".",""))%Number.parseInt(e.toFixed(o).replace(".",""))/10**o}(t.value,e.value))||t.issues.push({origin:typeof t.value,code:"not_multiple_of",divisor:e.value,input:t.value,inst:n,continue:!e.abort})}}),BN=De("$ZodCheckNumberFormat",(n,e)=>{Mr.init(n,e),e.format=e.format||"float64";const t=e.format?.includes("int"),r=t?"int":"number",[o,s]=Y$[e.format];n._zod.onattach.push(i=>{const a=i._zod.bag;a.format=e.format,a.minimum=o,a.maximum=s,t&&(a.pattern=MN)}),n._zod.check=i=>{const a=i.value;if(t){if(!Number.isInteger(a))return void i.issues.push({expected:r,format:e.format,code:"invalid_type",input:a,inst:n});if(!Number.isSafeInteger(a))return void i.issues.push(a>0?{input:a,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:n,origin:r,continue:!e.abort}:{input:a,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:n,origin:r,continue:!e.abort})}a<o&&i.issues.push({origin:"number",input:a,code:"too_small",minimum:o,inclusive:!0,inst:n,continue:!e.abort}),a>s&&i.issues.push({origin:"number",input:a,code:"too_big",maximum:s,inst:n})}}),HN=De("$ZodCheckMaxLength",(n,e)=>{var t;Mr.init(n,e),(t=n._zod.def).when??(t.when=r=>{const o=r.value;return!o_(o)&&void 0!==o.length}),n._zod.onattach.push(r=>{e.maximum<(r._zod.bag.maximum??Number.POSITIVE_INFINITY)&&(r._zod.bag.maximum=e.maximum)}),n._zod.check=r=>{const o=r.value;if(o.length<=e.maximum)return;const i=i_(o);r.issues.push({origin:i,code:"too_big",maximum:e.maximum,inclusive:!0,input:o,inst:n,continue:!e.abort})}}),GN=De("$ZodCheckMinLength",(n,e)=>{var t;Mr.init(n,e),(t=n._zod.def).when??(t.when=r=>{const o=r.value;return!o_(o)&&void 0!==o.length}),n._zod.onattach.push(r=>{e.minimum>(r._zod.bag.minimum??Number.NEGATIVE_INFINITY)&&(r._zod.bag.minimum=e.minimum)}),n._zod.check=r=>{const o=r.value;if(o.length>=e.minimum)return;const i=i_(o);r.issues.push({origin:i,code:"too_small",minimum:e.minimum,inclusive:!0,input:o,inst:n,continue:!e.abort})}}),KN=De("$ZodCheckLengthEquals",(n,e)=>{var t;Mr.init(n,e),(t=n._zod.def).when??(t.when=r=>{const o=r.value;return!o_(o)&&void 0!==o.length}),n._zod.onattach.push(r=>{const o=r._zod.bag;o.minimum=e.length,o.maximum=e.length,o.length=e.length}),n._zod.check=r=>{const o=r.value,s=o.length;if(s===e.length)return;const i=i_(o);r.issues.push({origin:i,...s>e.length?{code:"too_big",maximum:e.length}:{code:"too_small",minimum:e.length},inclusive:!0,exact:!0,input:r.value,inst:n,continue:!e.abort})}}),ud=De("$ZodCheckStringFormat",(n,e)=>{var t,r;Mr.init(n,e),n._zod.onattach.push(o=>{const s=o._zod.bag;s.format=e.format,e.pattern&&(s.patterns??(s.patterns=new Set),s.patterns.add(e.pattern))}),e.pattern?(t=n._zod).check??(t.check=o=>{e.pattern.lastIndex=0,!e.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:e.format,input:o.value,...e.pattern?{pattern:e.pattern.toString()}:{},inst:n,continue:!e.abort})}):(r=n._zod).check??(r.check=()=>{})}),WN=De("$ZodCheckRegex",(n,e)=>{ud.init(n,e),n._zod.check=t=>{e.pattern.lastIndex=0,!e.pattern.test(t.value)&&t.issues.push({origin:"string",code:"invalid_format",format:"regex",input:t.value,pattern:e.pattern.toString(),inst:n,continue:!e.abort})}}),ZN=De("$ZodCheckLowerCase",(n,e)=>{e.pattern??(e.pattern=FN),ud.init(n,e)}),QN=De("$ZodCheckUpperCase",(n,e)=>{e.pattern??(e.pattern=jN),ud.init(n,e)}),JN=De("$ZodCheckIncludes",(n,e)=>{Mr.init(n,e);const t=Qc(e.includes),r=new RegExp("number"==typeof e.position?`^.{${e.position}}${t}`:t);e.pattern=r,n._zod.onattach.push(o=>{const s=o._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(r)}),n._zod.check=o=>{o.value.includes(e.includes,e.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:e.includes,input:o.value,inst:n,continue:!e.abort})}}),XN=De("$ZodCheckStartsWith",(n,e)=>{Mr.init(n,e);const t=new RegExp(`^${Qc(e.prefix)}.*`);e.pattern??(e.pattern=t),n._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(t)}),n._zod.check=r=>{r.value.startsWith(e.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:e.prefix,input:r.value,inst:n,continue:!e.abort})}}),YN=De("$ZodCheckEndsWith",(n,e)=>{Mr.init(n,e);const t=new RegExp(`.*${Qc(e.suffix)}$`);e.pattern??(e.pattern=t),n._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(t)}),n._zod.check=r=>{r.value.endsWith(e.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:e.suffix,input:r.value,inst:n,continue:!e.abort})}}),e2=De("$ZodCheckOverwrite",(n,e)=>{Mr.init(n,e),n._zod.check=t=>{t.value=e.tx(t.value)}});class t2{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if("function"==typeof e)return e(this,{execution:"sync"}),void e(this,{execution:"async"});const r=e.split("\n").filter(i=>i),o=Math.min(...r.map(i=>i.length-i.trimStart().length)),s=r.map(i=>i.slice(o)).map(i=>" ".repeat(2*this.indent)+i);for(const i of s)this.content.push(i)}compile(){const e=Function,t=this?.args;return new e(...t,[...(this?.content??[""]).map(s=>` ${s}`)].join("\n"))}}const n2={major:4,minor:0,patch:0},un=De("$ZodType",(n,e)=>{var t;n??(n={}),n._zod.def=e,n._zod.bag=n._zod.bag||{},n._zod.version=n2;const r=[...n._zod.def.checks??[]];n._zod.traits.has("$ZodCheck")&&r.unshift(n);for(const o of r)for(const s of o._zod.onattach)s(n);if(0===r.length)(t=n._zod).deferred??(t.deferred=[]),n._zod.deferred?.push(()=>{n._zod.run=n._zod.parse});else{const o=(s,i,a)=>{let l,c=Jc(s);for(const h of i){if(h._zod.def.when){if(!h._zod.def.when(s))continue}else if(c)continue;const p=s.issues.length,y=h._zod.check(s);if(y instanceof Promise&&!1===a?.async)throw new Wc;if(l||y instanceof Promise)l=(l??Promise.resolve()).then((0,d.A)(function*(){yield y,s.issues.length!==p&&(c||(c=Jc(s,p)))}));else{if(s.issues.length===p)continue;c||(c=Jc(s,p))}}return l?l.then(()=>s):s};n._zod.run=(s,i)=>{const a=n._zod.parse(s,i);if(a instanceof Promise){if(!1===i.async)throw new Wc;return a.then(c=>o(c,r,i))}return o(a,r,i)}}n["~standard"]={validate:o=>{try{const s=QI(n,o);return s.success?{value:s.data}:{issues:s.error?.issues}}catch{return uN(n,o).then(i=>i.success?{value:i.data}:{issues:i.error?.issues})}},vendor:"zod",version:1}}),u_=De("$ZodString",(n,e)=>{un.init(n,e),n._zod.pattern=[...n?._zod.bag?.patterns??[]].pop()??(n=>new RegExp(`^${n?`[\\s\\S]{${n?.minimum??0},${n?.maximum??""}}`:"[\\s\\S]*"}$`))(n._zod.bag),n._zod.parse=(t,r)=>{if(e.coerce)try{t.value=String(t.value)}catch{}return"string"==typeof t.value||t.issues.push({expected:"string",code:"invalid_type",input:t.value,inst:n}),t}}),wn=De("$ZodStringFormat",(n,e)=>{ud.init(n,e),u_.init(n,e)}),r2=De("$ZodGUID",(n,e)=>{e.pattern??(e.pattern=bN),wn.init(n,e)}),o2=De("$ZodUUID",(n,e)=>{if(e.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[e.version];if(void 0===r)throw new Error(`Invalid UUID version: "${e.version}"`);e.pattern??(e.pattern=YI(r))}else e.pattern??(e.pattern=YI());wn.init(n,e)}),s2=De("$ZodEmail",(n,e)=>{e.pattern??(e.pattern=EN),wn.init(n,e)}),i2=De("$ZodURL",(n,e)=>{wn.init(n,e),n._zod.check=t=>{try{const r=t.value,o=new URL(r),s=o.href;return e.hostname&&(e.hostname.lastIndex=0,e.hostname.test(o.hostname)||t.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:CN.source,input:t.value,inst:n,continue:!e.abort})),e.protocol&&(e.protocol.lastIndex=0,e.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||t.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:e.protocol.source,input:t.value,inst:n,continue:!e.abort})),void(t.value=!r.endsWith("/")&&s.endsWith("/")?s.slice(0,-1):s)}catch{t.issues.push({code:"invalid_format",format:"url",input:t.value,inst:n,continue:!e.abort})}}}),a2=De("$ZodEmoji",(n,e)=>{e.pattern??(e.pattern=function TN(){return new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")}()),wn.init(n,e)}),c2=De("$ZodNanoID",(n,e)=>{e.pattern??(e.pattern=wN),wn.init(n,e)}),u2=De("$ZodCUID",(n,e)=>{e.pattern??(e.pattern=fN),wn.init(n,e)}),l2=De("$ZodCUID2",(n,e)=>{e.pattern??(e.pattern=mN),wn.init(n,e)}),d2=De("$ZodULID",(n,e)=>{e.pattern??(e.pattern=gN),wn.init(n,e)}),h2=De("$ZodXID",(n,e)=>{e.pattern??(e.pattern=_N),wn.init(n,e)}),p2=De("$ZodKSUID",(n,e)=>{e.pattern??(e.pattern=yN),wn.init(n,e)}),f2=De("$ZodISODateTime",(n,e)=>{e.pattern??(e.pattern=function $N(n){const e=nT({precision:n.precision}),t=["Z"];n.local&&t.push(""),n.offset&&t.push("([+-]\\d{2}:\\d{2})");const r=`${e}(?:${t.join("|")})`;return new RegExp(`^${tT}T(?:${r})$`)}(e)),wn.init(n,e)}),m2=De("$ZodISODate",(n,e)=>{e.pattern??(e.pattern=DN),wn.init(n,e)}),g2=De("$ZodISOTime",(n,e)=>{e.pattern??(e.pattern=function ON(n){return new RegExp(`^${nT(n)}$`)}(e)),wn.init(n,e)}),_2=De("$ZodISODuration",(n,e)=>{e.pattern??(e.pattern=vN),wn.init(n,e)}),y2=De("$ZodIPv4",(n,e)=>{e.pattern??(e.pattern=AN),wn.init(n,e),n._zod.onattach.push(t=>{t._zod.bag.format="ipv4"})}),w2=De("$ZodIPv6",(n,e)=>{e.pattern??(e.pattern=SN),wn.init(n,e),n._zod.onattach.push(t=>{t._zod.bag.format="ipv6"}),n._zod.check=t=>{try{new URL(`http://[${t.value}]`)}catch{t.issues.push({code:"invalid_format",format:"ipv6",input:t.value,inst:n,continue:!e.abort})}}}),v2=De("$ZodCIDRv4",(n,e)=>{e.pattern??(e.pattern=RN),wn.init(n,e)}),b2=De("$ZodCIDRv6",(n,e)=>{e.pattern??(e.pattern=PN),wn.init(n,e),n._zod.check=t=>{const[r,o]=t.value.split("/");try{if(!o)throw new Error;const s=Number(o);if(`${s}`!==o)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${r}]`)}catch{t.issues.push({code:"invalid_format",format:"cidrv6",input:t.value,inst:n,continue:!e.abort})}}});function aT(n){if(""===n)return!0;if(n.length%4!=0)return!1;try{return atob(n),!0}catch{return!1}}const E2=De("$ZodBase64",(n,e)=>{e.pattern??(e.pattern=kN),wn.init(n,e),n._zod.onattach.push(t=>{t._zod.bag.contentEncoding="base64"}),n._zod.check=t=>{aT(t.value)||t.issues.push({code:"invalid_format",format:"base64",input:t.value,inst:n,continue:!e.abort})}}),T2=De("$ZodBase64URL",(n,e)=>{e.pattern??(e.pattern=eT),wn.init(n,e),n._zod.onattach.push(t=>{t._zod.bag.contentEncoding="base64url"}),n._zod.check=t=>{(function I2(n){if(!eT.test(n))return!1;const e=n.replace(/[-_]/g,r=>"-"===r?"+":"/");return aT(e.padEnd(4*Math.ceil(e.length/4),"="))})(t.value)||t.issues.push({code:"invalid_format",format:"base64url",input:t.value,inst:n,continue:!e.abort})}}),A2=De("$ZodE164",(n,e)=>{e.pattern??(e.pattern=xN),wn.init(n,e)}),R2=De("$ZodJWT",(n,e)=>{wn.init(n,e),n._zod.check=t=>{(function S2(n,e=null){try{const t=n.split(".");if(3!==t.length)return!1;const[r]=t;if(!r)return!1;const o=JSON.parse(atob(r));return!("typ"in o&&"JWT"!==o?.typ||!o.alg||e&&(!("alg"in o)||o.alg!==e))}catch{return!1}})(t.value,e.alg)||t.issues.push({code:"invalid_format",format:"jwt",input:t.value,inst:n,continue:!e.abort})}}),cT=De("$ZodNumber",(n,e)=>{un.init(n,e),n._zod.pattern=n._zod.bag.pattern??VN,n._zod.parse=(t,r)=>{if(e.coerce)try{t.value=Number(t.value)}catch{}const o=t.value;if("number"==typeof o&&!Number.isNaN(o)&&Number.isFinite(o))return t;const s="number"==typeof o?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return t.issues.push({expected:"number",code:"invalid_type",input:o,inst:n,...s?{received:s}:{}}),t}}),P2=De("$ZodNumber",(n,e)=>{BN.init(n,e),cT.init(n,e)}),k2=De("$ZodBoolean",(n,e)=>{un.init(n,e),n._zod.pattern=LN,n._zod.parse=(t,r)=>{if(e.coerce)try{t.value=!!t.value}catch{}const o=t.value;return"boolean"==typeof o||t.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:n}),t}}),C2=De("$ZodNull",(n,e)=>{un.init(n,e),n._zod.pattern=UN,n._zod.values=new Set([null]),n._zod.parse=(t,r)=>{const o=t.value;return null===o||t.issues.push({expected:"null",code:"invalid_type",input:o,inst:n}),t}}),x2=De("$ZodAny",(n,e)=>{un.init(n,e),n._zod.parse=t=>t}),D2=De("$ZodUnknown",(n,e)=>{un.init(n,e),n._zod.parse=t=>t}),O2=De("$ZodNever",(n,e)=>{un.init(n,e),n._zod.parse=(t,r)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:n}),t)});function uT(n,e,t){n.issues.length&&e.issues.push(...hi(t,n.issues)),e.value[t]=n.value}const $2=De("$ZodArray",(n,e)=>{un.init(n,e),n._zod.parse=(t,r)=>{const o=t.value;if(!Array.isArray(o))return t.issues.push({expected:"array",code:"invalid_type",input:o,inst:n}),t;t.value=Array(o.length);const s=[];for(let i=0;i<o.length;i++){const c=e.element._zod.run({value:o[i],issues:[]},r);c instanceof Promise?s.push(c.then(l=>uT(l,t,i))):uT(c,t,i)}return s.length?Promise.all(s).then(()=>t):t}});function ld(n,e,t){n.issues.length&&e.issues.push(...hi(t,n.issues)),e.value[t]=n.value}function lT(n,e,t,r){n.issues.length?void 0===r[t]?e.value[t]=t in r?void 0:n.value:e.issues.push(...hi(t,n.issues)):void 0===n.value?t in r&&(e.value[t]=void 0):e.value[t]=n.value}const N2=De("$ZodObject",(n,e)=>{un.init(n,e);const t=r_(()=>{const p=Object.keys(e.shape);for(const P of p)if(!(e.shape[P]instanceof un))throw new Error(`Invalid element at key "${P}": expected a Zod schema`);const y=function X$(n){return Object.keys(n).filter(e=>"optional"===n[e]._zod.optin&&"optional"===n[e]._zod.optout)}(e.shape);return{shape:e.shape,keys:p,keySet:new Set(p),numKeys:p.length,optionalKeys:new Set(y)}});let o;mn(n._zod,"propValues",()=>{const p=e.shape,y={};for(const P in p){const K=p[P]._zod;if(K.values){y[P]??(y[P]=new Set);for(const re of K.values)y[P].add(re)}}return y});const s=sd,i=!n_.jitless,c=i&&Z$.value,l=e.catchall;let h;n._zod.parse=(p,y)=>{h??(h=t.value);const P=p.value;if(!s(P))return p.issues.push({expected:"object",code:"invalid_type",input:P,inst:n}),p;const K=[];if(i&&c&&!1===y?.async&&!0!==y.jitless)o||(o=(p=>{const y=new t2(["shape","payload","ctx"]),P=t.value,K=Ae=>{const $e=Zc(Ae);return`shape[${$e}]._zod.run({ value: input[${$e}], issues: [] }, ctx)`};y.write("const input = payload.value;");const re=Object.create(null);let fe=0;for(const Ae of P.keys)re[Ae]="key_"+fe++;y.write("const newResult = {}");for(const Ae of P.keys)if(P.optionalKeys.has(Ae)){const $e=re[Ae];y.write(`const ${$e} = ${K(Ae)};`);const Qe=Zc(Ae);y.write(`\n if (${$e}.issues.length) {\n if (input[${Qe}] === undefined) {\n if (${Qe} in input) {\n newResult[${Qe}] = undefined;\n }\n } else {\n payload.issues = payload.issues.concat(\n ${$e}.issues.map((iss) => ({\n ...iss,\n path: iss.path ? [${Qe}, ...iss.path] : [${Qe}],\n }))\n );\n }\n } else if (${$e}.value === undefined) {\n if (${Qe} in input) newResult[${Qe}] = undefined;\n } else {\n newResult[${Qe}] = ${$e}.value;\n }\n `)}else{const $e=re[Ae];y.write(`const ${$e} = ${K(Ae)};`),y.write(`\n if (${$e}.issues.length) payload.issues = payload.issues.concat(${$e}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${Zc(Ae)}, ...iss.path] : [${Zc(Ae)}]\n })));`),y.write(`newResult[${Zc(Ae)}] = ${$e}.value`)}y.write("payload.value = newResult;"),y.write("return payload;");const ce=y.compile();return(Ae,$e)=>ce(p,Ae,$e)})(e.shape)),p=o(p,y);else{p.value={};const $e=h.shape;for(const Qe of h.keys){const pt=$e[Qe],_t=pt._zod.run({value:P[Qe],issues:[]},y),se="optional"===pt._zod.optin&&"optional"===pt._zod.optout;_t instanceof Promise?K.push(_t.then(B=>se?lT(B,p,Qe,P):ld(B,p,Qe))):se?lT(_t,p,Qe,P):ld(_t,p,Qe)}}if(!l)return K.length?Promise.all(K).then(()=>p):p;const re=[],fe=h.keySet,ce=l._zod,Ae=ce.def.type;for(const $e of Object.keys(P)){if(fe.has($e))continue;if("never"===Ae){re.push($e);continue}const Qe=ce.run({value:P[$e],issues:[]},y);Qe instanceof Promise?K.push(Qe.then(pt=>ld(pt,p,$e))):ld(Qe,p,$e)}return re.length&&p.issues.push({code:"unrecognized_keys",keys:re,input:P,inst:n}),K.length?Promise.all(K).then(()=>p):p}});function dT(n,e,t,r){for(const o of n)if(0===o.issues.length)return e.value=o.value,e;return e.issues.push({code:"invalid_union",input:e.value,inst:t,errors:n.map(o=>o.issues.map(s=>Cs(s,r,ks())))}),e}const hT=De("$ZodUnion",(n,e)=>{un.init(n,e),mn(n._zod,"optin",()=>e.options.some(t=>"optional"===t._zod.optin)?"optional":void 0),mn(n._zod,"optout",()=>e.options.some(t=>"optional"===t._zod.optout)?"optional":void 0),mn(n._zod,"values",()=>{if(e.options.every(t=>t._zod.values))return new Set(e.options.flatMap(t=>Array.from(t._zod.values)))}),mn(n._zod,"pattern",()=>{if(e.options.every(t=>t._zod.pattern)){const t=e.options.map(r=>r._zod.pattern);return new RegExp(`^(${t.map(r=>s_(r.source)).join("|")})$`)}}),n._zod.parse=(t,r)=>{let o=!1;const s=[];for(const i of e.options){const a=i._zod.run({value:t.value,issues:[]},r);if(a instanceof Promise)s.push(a),o=!0;else{if(0===a.issues.length)return a;s.push(a)}}return o?Promise.all(s).then(i=>dT(i,t,n,r)):dT(s,t,n,r)}}),M2=De("$ZodDiscriminatedUnion",(n,e)=>{hT.init(n,e);const t=n._zod.parse;mn(n._zod,"propValues",()=>{const o={};for(const s of e.options){const i=s._zod.propValues;if(!i||0===Object.keys(i).length)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(s)}"`);for(const[a,c]of Object.entries(i)){o[a]||(o[a]=new Set);for(const l of c)o[a].add(l)}}return o});const r=r_(()=>{const o=e.options,s=new Map;for(const i of o){const a=i._zod.propValues[e.discriminator];if(!a||0===a.size)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(i)}"`);for(const c of a){if(s.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);s.set(c,i)}}return s});n._zod.parse=(o,s)=>{const i=o.value;if(!sd(i))return o.issues.push({code:"invalid_type",expected:"object",input:i,inst:n}),o;const a=r.value.get(i?.[e.discriminator]);return a?a._zod.run(o,s):e.unionFallback?t(o,s):(o.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",input:i,path:[e.discriminator],inst:n}),o)}}),V2=De("$ZodIntersection",(n,e)=>{un.init(n,e),n._zod.parse=(t,r)=>{const o=t.value,s=e.left._zod.run({value:o,issues:[]},r),i=e.right._zod.run({value:o,issues:[]},r);return s instanceof Promise||i instanceof Promise?Promise.all([s,i]).then(([c,l])=>pT(t,c,l)):pT(t,s,i)}});function l_(n,e){if(n===e)return{valid:!0,data:n};if(n instanceof Date&&e instanceof Date&&+n==+e)return{valid:!0,data:n};if(id(n)&&id(e)){const t=Object.keys(e),r=Object.keys(n).filter(s=>-1!==t.indexOf(s)),o={...n,...e};for(const s of r){const i=l_(n[s],e[s]);if(!i.valid)return{valid:!1,mergeErrorPath:[s,...i.mergeErrorPath]};o[s]=i.data}return{valid:!0,data:o}}if(Array.isArray(n)&&Array.isArray(e)){if(n.length!==e.length)return{valid:!1,mergeErrorPath:[]};const t=[];for(let r=0;r<n.length;r++){const i=l_(n[r],e[r]);if(!i.valid)return{valid:!1,mergeErrorPath:[r,...i.mergeErrorPath]};t.push(i.data)}return{valid:!0,data:t}}return{valid:!1,mergeErrorPath:[]}}function pT(n,e,t){if(e.issues.length&&n.issues.push(...e.issues),t.issues.length&&n.issues.push(...t.issues),Jc(n))return n;const r=l_(e.value,t.value);if(!r.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return n.value=r.data,n}const L2=De("$ZodRecord",(n,e)=>{un.init(n,e),n._zod.parse=(t,r)=>{const o=t.value;if(!id(o))return t.issues.push({expected:"record",code:"invalid_type",input:o,inst:n}),t;const s=[];if(e.keyType._zod.values){const i=e.keyType._zod.values;t.value={};for(const c of i)if("string"==typeof c||"number"==typeof c||"symbol"==typeof c){const l=e.valueType._zod.run({value:o[c],issues:[]},r);l instanceof Promise?s.push(l.then(h=>{h.issues.length&&t.issues.push(...hi(c,h.issues)),t.value[c]=h.value})):(l.issues.length&&t.issues.push(...hi(c,l.issues)),t.value[c]=l.value)}let a;for(const c in o)i.has(c)||(a=a??[],a.push(c));a&&a.length>0&&t.issues.push({code:"unrecognized_keys",input:o,inst:n,keys:a})}else{t.value={};for(const i of Reflect.ownKeys(o)){if("__proto__"===i)continue;const a=e.keyType._zod.run({value:i,issues:[]},r);if(a instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(a.issues.length){t.issues.push({origin:"record",code:"invalid_key",issues:a.issues.map(l=>Cs(l,r,ks())),input:i,path:[i],inst:n}),t.value[a.value]=a.value;continue}const c=e.valueType._zod.run({value:o[i],issues:[]},r);c instanceof Promise?s.push(c.then(l=>{l.issues.length&&t.issues.push(...hi(i,l.issues)),t.value[a.value]=l.value})):(c.issues.length&&t.issues.push(...hi(i,c.issues)),t.value[a.value]=c.value)}}return s.length?Promise.all(s).then(()=>t):t}}),U2=De("$ZodEnum",(n,e)=>{un.init(n,e);const t=function G$(n){const e=Object.values(n).filter(r=>"number"==typeof r);return Object.entries(n).filter(([r,o])=>-1===e.indexOf(+r)).map(([r,o])=>o)}(e.entries);n._zod.values=new Set(t),n._zod.pattern=new RegExp(`^(${t.filter(r=>Q$.has(typeof r)).map(r=>"string"==typeof r?Qc(r):r.toString()).join("|")})$`),n._zod.parse=(r,o)=>{const s=r.value;return n._zod.values.has(s)||r.issues.push({code:"invalid_value",values:t,input:s,inst:n}),r}}),F2=De("$ZodLiteral",(n,e)=>{un.init(n,e),n._zod.values=new Set(e.values),n._zod.pattern=new RegExp(`^(${e.values.map(t=>"string"==typeof t?Qc(t):t?t.toString():String(t)).join("|")})$`),n._zod.parse=(t,r)=>{const o=t.value;return n._zod.values.has(o)||t.issues.push({code:"invalid_value",values:e.values,input:o,inst:n}),t}}),j2=De("$ZodTransform",(n,e)=>{un.init(n,e),n._zod.parse=(t,r)=>{const o=e.transform(t.value,t);if(r.async)return(o instanceof Promise?o:Promise.resolve(o)).then(i=>(t.value=i,t));if(o instanceof Promise)throw new Wc;return t.value=o,t}}),z2=De("$ZodOptional",(n,e)=>{un.init(n,e),n._zod.optin="optional",n._zod.optout="optional",mn(n._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,void 0]):void 0),mn(n._zod,"pattern",()=>{const t=e.innerType._zod.pattern;return t?new RegExp(`^(${s_(t.source)})?$`):void 0}),n._zod.parse=(t,r)=>"optional"===e.innerType._zod.optin?e.innerType._zod.run(t,r):void 0===t.value?t:e.innerType._zod.run(t,r)}),q2=De("$ZodNullable",(n,e)=>{un.init(n,e),mn(n._zod,"optin",()=>e.innerType._zod.optin),mn(n._zod,"optout",()=>e.innerType._zod.optout),mn(n._zod,"pattern",()=>{const t=e.innerType._zod.pattern;return t?new RegExp(`^(${s_(t.source)}|null)$`):void 0}),mn(n._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,null]):void 0),n._zod.parse=(t,r)=>null===t.value?t:e.innerType._zod.run(t,r)}),B2=De("$ZodDefault",(n,e)=>{un.init(n,e),n._zod.optin="optional",mn(n._zod,"values",()=>e.innerType._zod.values),n._zod.parse=(t,r)=>{if(void 0===t.value)return t.value=e.defaultValue,t;const o=e.innerType._zod.run(t,r);return o instanceof Promise?o.then(s=>fT(s,e)):fT(o,e)}});function fT(n,e){return void 0===n.value&&(n.value=e.defaultValue),n}const H2=De("$ZodPrefault",(n,e)=>{un.init(n,e),n._zod.optin="optional",mn(n._zod,"values",()=>e.innerType._zod.values),n._zod.parse=(t,r)=>(void 0===t.value&&(t.value=e.defaultValue),e.innerType._zod.run(t,r))}),G2=De("$ZodNonOptional",(n,e)=>{un.init(n,e),mn(n._zod,"values",()=>{const t=e.innerType._zod.values;return t?new Set([...t].filter(r=>void 0!==r)):void 0}),n._zod.parse=(t,r)=>{const o=e.innerType._zod.run(t,r);return o instanceof Promise?o.then(s=>mT(s,n)):mT(o,n)}});function mT(n,e){return!n.issues.length&&void 0===n.value&&n.issues.push({code:"invalid_type",expected:"nonoptional",input:n.value,inst:e}),n}const K2=De("$ZodCatch",(n,e)=>{un.init(n,e),n._zod.optin="optional",mn(n._zod,"optout",()=>e.innerType._zod.optout),mn(n._zod,"values",()=>e.innerType._zod.values),n._zod.parse=(t,r)=>{const o=e.innerType._zod.run(t,r);return o instanceof Promise?o.then(s=>(t.value=s.value,s.issues.length&&(t.value=e.catchValue({...t,error:{issues:s.issues.map(i=>Cs(i,r,ks()))},input:t.value}),t.issues=[]),t)):(t.value=o.value,o.issues.length&&(t.value=e.catchValue({...t,error:{issues:o.issues.map(s=>Cs(s,r,ks()))},input:t.value}),t.issues=[]),t)}}),W2=De("$ZodPipe",(n,e)=>{un.init(n,e),mn(n._zod,"values",()=>e.in._zod.values),mn(n._zod,"optin",()=>e.in._zod.optin),mn(n._zod,"optout",()=>e.out._zod.optout),n._zod.parse=(t,r)=>{const o=e.in._zod.run(t,r);return o instanceof Promise?o.then(s=>gT(s,e,r)):gT(o,e,r)}});function gT(n,e,t){return Jc(n)?n:e.out._zod.run({value:n.value,issues:n.issues},t)}const Z2=De("$ZodReadonly",(n,e)=>{un.init(n,e),mn(n._zod,"propValues",()=>e.innerType._zod.propValues),mn(n._zod,"values",()=>e.innerType._zod.values),mn(n._zod,"optin",()=>e.innerType._zod.optin),mn(n._zod,"optout",()=>e.innerType._zod.optout),n._zod.parse=(t,r)=>{const o=e.innerType._zod.run(t,r);return o instanceof Promise?o.then(_T):_T(o)}});function _T(n){return n.value=Object.freeze(n.value),n}const Q2=De("$ZodCustom",(n,e)=>{Mr.init(n,e),un.init(n,e),n._zod.parse=(t,r)=>t,n._zod.check=t=>{const r=t.value,o=e.fn(r);if(o instanceof Promise)return o.then(s=>yT(s,t,r,n));yT(o,t,r,n)}});function yT(n,e,t,r){if(!n){const o={code:"custom",input:t,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(o.params=r._zod.def.params),e.issues.push(Xc(o))}}class J2{constructor(){this._map=new Map,this._idmap=new Map}add(e,...t){const r=t[0];if(this._map.set(e,r),r&&"object"==typeof r&&"id"in r){if(this._idmap.has(r.id))throw new Error(`ID ${r.id} already exists in the registry`);this._idmap.set(r.id,e)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(e){const t=this._map.get(e);return t&&"object"==typeof t&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){const t=e._zod.parent;if(t){const r={...this.get(t)??{}};return delete r.id,{...r,...this._map.get(e)}}return this._map.get(e)}has(e){return this._map.has(e)}}function X2(){return new J2}const dd=X2();function wT(n,e){return new n({type:"string",format:"guid",check:"string_format",abort:!1,...ht(e)})}function vT(n,e){return new n({type:"string",format:"url",check:"string_format",abort:!1,...ht(e)})}function d_(n,e){return new oT({check:"less_than",...ht(e),value:n,inclusive:!1})}function hd(n,e){return new oT({check:"less_than",...ht(e),value:n,inclusive:!0})}function h_(n,e){return new sT({check:"greater_than",...ht(e),value:n,inclusive:!1})}function pd(n,e){return new sT({check:"greater_than",...ht(e),value:n,inclusive:!0})}function bT(n,e){return new qN({check:"multiple_of",...ht(e),value:n})}function ET(n,e){return new HN({check:"max_length",...ht(e),maximum:n})}function fd(n,e){return new GN({check:"min_length",...ht(e),minimum:n})}function IT(n,e){return new KN({check:"length_equals",...ht(e),length:n})}function tu(n){return new e2({check:"overwrite",tx:n})}const HM=De("ZodISODateTime",(n,e)=>{f2.init(n,e),Rn.init(n,e)});function TT(n){return function vM(n,e){return new n({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...ht(e)})}(HM,n)}const GM=De("ZodISODate",(n,e)=>{m2.init(n,e),Rn.init(n,e)});const WM=De("ZodISOTime",(n,e)=>{g2.init(n,e),Rn.init(n,e)});const QM=De("ZodISODuration",(n,e)=>{_2.init(n,e),Rn.init(n,e)});const AT=(n,e)=>{GI.init(n,e),n.name="ZodError",Object.defineProperties(n,{format:{value:t=>function aN(n,e){const t=e||function(s){return s.message},r={_errors:[]},o=s=>{for(const i of s.issues)if("invalid_union"===i.code&&i.errors.length)i.errors.map(a=>o({issues:a}));else if("invalid_key"===i.code)o({issues:i.issues});else if("invalid_element"===i.code)o({issues:i.issues});else if(0===i.path.length)r._errors.push(t(i));else{let a=r,c=0;for(;c<i.path.length;){const l=i.path[c];c===i.path.length-1?(a[l]=a[l]||{_errors:[]},a[l]._errors.push(t(i))):a[l]=a[l]||{_errors:[]},a=a[l],c++}}};return o(n),r}(n,t)},flatten:{value:t=>function iN(n,e=t=>t.message){const t={},r=[];for(const o of n.issues)o.path.length>0?(t[o.path[0]]=t[o.path[0]]||[],t[o.path[0]].push(e(o))):r.push(e(o));return{formErrors:r,fieldErrors:t}}(n,t)},addIssue:{value:t=>n.issues.push(t)},addIssues:{value:t=>n.issues.push(...t)},isEmpty:{get:()=>0===n.issues.length}})},md=(De("ZodError",AT),De("ZodError",AT,{Parent:Error})),XM=KI(md),YM=WI(md),eV=ZI(md),tV=JI(md),vn=De("ZodType",(n,e)=>(un.init(n,e),n.def=e,Object.defineProperty(n,"_def",{value:e}),n.check=(...t)=>n.clone({...e,checks:[...e.checks??[],...t.map(r=>"function"==typeof r?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),n.clone=(t,r)=>di(n,t,r),n.brand=()=>n,n.register=(t,r)=>(t.add(n,r),n),n.parse=(t,r)=>XM(n,t,r,{callee:n.parse}),n.safeParse=(t,r)=>eV(n,t,r),n.parseAsync=function(){var t=(0,d.A)(function*(r,o){return YM(n,r,o,{callee:n.parseAsync})});return function(r,o){return t.apply(this,arguments)}}(),n.safeParseAsync=function(){var t=(0,d.A)(function*(r,o){return tV(n,r,o)});return function(r,o){return t.apply(this,arguments)}}(),n.spa=n.safeParseAsync,n.refine=(t,r)=>n.check(function FV(n,e={}){return function BM(n,e,t){return new n({type:"custom",check:"custom",fn:e,...ht(t)})}(b_,n,e)}(t,r)),n.superRefine=t=>n.check(function jV(n){const e=function LV(n){const e=new Mr({check:"custom"});return e._zod.check=n,e}(t=>(t.addIssue=r=>{if("string"==typeof r)t.issues.push(Xc(r,t.value,e._zod.def));else{const o=r;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=t.value),o.inst??(o.inst=e),o.continue??(o.continue=!e._zod.def.abort),t.issues.push(Xc(o))}},n(t.value,t)));return e}(t)),n.overwrite=t=>n.check(tu(t)),n.optional=()=>kn(n),n.nullable=()=>w_(n),n.nullish=()=>kn(w_(n)),n.nonoptional=t=>function RV(n,e){return new eA({type:"nonoptional",innerType:n,...ht(e)})}(n,t),n.array=()=>nt(n),n.or=t=>tn([n,t]),n.and=t=>y_(n,t),n.transform=t=>v_(n,XT(t)),n.default=t=>function TV(n,e){return new IV({type:"default",innerType:n,get defaultValue(){return"function"==typeof e?e():e}})}(n,t),n.prefault=t=>function SV(n,e){return new AV({type:"prefault",innerType:n,get defaultValue(){return"function"==typeof e?e():e}})}(n,t),n.catch=t=>function CV(n,e){return new kV({type:"catch",innerType:n,catchValue:"function"==typeof e?e:()=>e})}(n,t),n.pipe=t=>v_(n,t),n.readonly=()=>function OV(n){return new DV({type:"readonly",innerType:n})}(n),n.describe=t=>{const r=n.clone();return dd.add(r,{description:t}),r},Object.defineProperty(n,"description",{get:()=>dd.get(n)?.description,configurable:!0}),n.meta=(...t)=>{if(0===t.length)return dd.get(n);const r=n.clone();return dd.add(r,t[0]),r},n.isOptional=()=>n.safeParse(void 0).success,n.isNullable=()=>n.safeParse(null).success,n)),ST=De("_ZodString",(n,e)=>{u_.init(n,e),vn.init(n,e);const t=n._zod.bag;n.format=t.format??null,n.minLength=t.minimum??null,n.maxLength=t.maximum??null,n.regex=(...r)=>n.check(function DM(n,e){return new WN({check:"string_format",format:"regex",...ht(e),pattern:n})}(...r)),n.includes=(...r)=>n.check(function NM(n,e){return new JN({check:"string_format",format:"includes",...ht(e),includes:n})}(...r)),n.startsWith=(...r)=>n.check(function MM(n,e){return new XN({check:"string_format",format:"starts_with",...ht(e),prefix:n})}(...r)),n.endsWith=(...r)=>n.check(function VM(n,e){return new YN({check:"string_format",format:"ends_with",...ht(e),suffix:n})}(...r)),n.min=(...r)=>n.check(fd(...r)),n.max=(...r)=>n.check(ET(...r)),n.length=(...r)=>n.check(IT(...r)),n.nonempty=(...r)=>n.check(fd(1,...r)),n.lowercase=r=>n.check(function OM(n){return new ZN({check:"string_format",format:"lowercase",...ht(n)})}(r)),n.uppercase=r=>n.check(function $M(n){return new QN({check:"string_format",format:"uppercase",...ht(n)})}(r)),n.trim=()=>n.check(function UM(){return tu(n=>n.trim())}()),n.normalize=(...r)=>n.check(function LM(n){return tu(e=>e.normalize(n))}(...r)),n.toLowerCase=()=>n.check(function FM(){return tu(n=>n.toLowerCase())}()),n.toUpperCase=()=>n.check(function jM(){return tu(n=>n.toUpperCase())}())}),RT=De("ZodString",(n,e)=>{u_.init(n,e),ST.init(n,e),n.email=t=>n.check(function eM(n,e){return new n({type:"string",format:"email",check:"string_format",abort:!1,...ht(e)})}(PT,t)),n.url=t=>n.check(vT(kT,t)),n.jwt=t=>n.check(function wM(n,e){return new n({type:"string",format:"jwt",check:"string_format",abort:!1,...ht(e)})}(BT,t)),n.emoji=t=>n.check(function sM(n,e){return new n({type:"string",format:"emoji",check:"string_format",abort:!1,...ht(e)})}(CT,t)),n.guid=t=>n.check(wT(p_,t)),n.uuid=t=>n.check(function tM(n,e){return new n({type:"string",format:"uuid",check:"string_format",abort:!1,...ht(e)})}(Ds,t)),n.uuidv4=t=>n.check(function nM(n,e){return new n({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...ht(e)})}(Ds,t)),n.uuidv6=t=>n.check(function rM(n,e){return new n({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...ht(e)})}(Ds,t)),n.uuidv7=t=>n.check(function oM(n,e){return new n({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...ht(e)})}(Ds,t)),n.nanoid=t=>n.check(function iM(n,e){return new n({type:"string",format:"nanoid",check:"string_format",abort:!1,...ht(e)})}(xT,t)),n.guid=t=>n.check(wT(p_,t)),n.cuid=t=>n.check(function aM(n,e){return new n({type:"string",format:"cuid",check:"string_format",abort:!1,...ht(e)})}(DT,t)),n.cuid2=t=>n.check(function cM(n,e){return new n({type:"string",format:"cuid2",check:"string_format",abort:!1,...ht(e)})}(OT,t)),n.ulid=t=>n.check(function uM(n,e){return new n({type:"string",format:"ulid",check:"string_format",abort:!1,...ht(e)})}($T,t)),n.base64=t=>n.check(function gM(n,e){return new n({type:"string",format:"base64",check:"string_format",abort:!1,...ht(e)})}(jT,t)),n.base64url=t=>n.check(function _M(n,e){return new n({type:"string",format:"base64url",check:"string_format",abort:!1,...ht(e)})}(zT,t)),n.xid=t=>n.check(function lM(n,e){return new n({type:"string",format:"xid",check:"string_format",abort:!1,...ht(e)})}(NT,t)),n.ksuid=t=>n.check(function dM(n,e){return new n({type:"string",format:"ksuid",check:"string_format",abort:!1,...ht(e)})}(MT,t)),n.ipv4=t=>n.check(function hM(n,e){return new n({type:"string",format:"ipv4",check:"string_format",abort:!1,...ht(e)})}(VT,t)),n.ipv6=t=>n.check(function pM(n,e){return new n({type:"string",format:"ipv6",check:"string_format",abort:!1,...ht(e)})}(LT,t)),n.cidrv4=t=>n.check(function fM(n,e){return new n({type:"string",format:"cidrv4",check:"string_format",abort:!1,...ht(e)})}(UT,t)),n.cidrv6=t=>n.check(function mM(n,e){return new n({type:"string",format:"cidrv6",check:"string_format",abort:!1,...ht(e)})}(FT,t)),n.e164=t=>n.check(function yM(n,e){return new n({type:"string",format:"e164",check:"string_format",abort:!1,...ht(e)})}(qT,t)),n.datetime=t=>n.check(TT(t)),n.date=t=>n.check(function KM(n){return function bM(n,e){return new n({type:"string",format:"date",check:"string_format",...ht(e)})}(GM,n)}(t)),n.time=t=>n.check(function ZM(n){return function EM(n,e){return new n({type:"string",format:"time",check:"string_format",precision:null,...ht(e)})}(WM,n)}(t)),n.duration=t=>n.check(function JM(n){return function IM(n,e){return new n({type:"string",format:"duration",check:"string_format",...ht(e)})}(QM,n)}(t))});function oe(n){return function Y2(n,e){return new n({type:"string",...ht(e)})}(RT,n)}const Rn=De("ZodStringFormat",(n,e)=>{wn.init(n,e),ST.init(n,e)}),PT=De("ZodEmail",(n,e)=>{s2.init(n,e),Rn.init(n,e)}),p_=De("ZodGUID",(n,e)=>{r2.init(n,e),Rn.init(n,e)}),Ds=De("ZodUUID",(n,e)=>{o2.init(n,e),Rn.init(n,e)}),kT=De("ZodURL",(n,e)=>{i2.init(n,e),Rn.init(n,e)}),CT=De("ZodEmoji",(n,e)=>{a2.init(n,e),Rn.init(n,e)}),xT=De("ZodNanoID",(n,e)=>{c2.init(n,e),Rn.init(n,e)}),DT=De("ZodCUID",(n,e)=>{u2.init(n,e),Rn.init(n,e)}),OT=De("ZodCUID2",(n,e)=>{l2.init(n,e),Rn.init(n,e)}),$T=De("ZodULID",(n,e)=>{d2.init(n,e),Rn.init(n,e)}),NT=De("ZodXID",(n,e)=>{h2.init(n,e),Rn.init(n,e)}),MT=De("ZodKSUID",(n,e)=>{p2.init(n,e),Rn.init(n,e)}),VT=De("ZodIPv4",(n,e)=>{y2.init(n,e),Rn.init(n,e)}),LT=De("ZodIPv6",(n,e)=>{w2.init(n,e),Rn.init(n,e)}),UT=De("ZodCIDRv4",(n,e)=>{v2.init(n,e),Rn.init(n,e)}),FT=De("ZodCIDRv6",(n,e)=>{b2.init(n,e),Rn.init(n,e)}),jT=De("ZodBase64",(n,e)=>{E2.init(n,e),Rn.init(n,e)}),zT=De("ZodBase64URL",(n,e)=>{T2.init(n,e),Rn.init(n,e)}),qT=De("ZodE164",(n,e)=>{A2.init(n,e),Rn.init(n,e)}),BT=De("ZodJWT",(n,e)=>{R2.init(n,e),Rn.init(n,e)}),f_=De("ZodNumber",(n,e)=>{cT.init(n,e),vn.init(n,e),n.gt=(r,o)=>n.check(h_(r,o)),n.gte=(r,o)=>n.check(pd(r,o)),n.min=(r,o)=>n.check(pd(r,o)),n.lt=(r,o)=>n.check(d_(r,o)),n.lte=(r,o)=>n.check(hd(r,o)),n.max=(r,o)=>n.check(hd(r,o)),n.int=r=>n.check(HT(r)),n.safe=r=>n.check(HT(r)),n.positive=r=>n.check(h_(0,r)),n.nonnegative=r=>n.check(pd(0,r)),n.negative=r=>n.check(d_(0,r)),n.nonpositive=r=>n.check(hd(0,r)),n.multipleOf=(r,o)=>n.check(bT(r,o)),n.step=(r,o)=>n.check(bT(r,o)),n.finite=()=>n;const t=n._zod.bag;n.minValue=Math.max(t.minimum??Number.NEGATIVE_INFINITY,t.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,n.maxValue=Math.min(t.maximum??Number.POSITIVE_INFINITY,t.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,n.isInt=(t.format??"").includes("int")||Number.isSafeInteger(t.multipleOf??.5),n.isFinite=!0,n.format=t.format??null});function Bt(n){return function TM(n,e){return new n({type:"number",checks:[],...ht(e)})}(f_,n)}const nu=De("ZodNumberFormat",(n,e)=>{P2.init(n,e),f_.init(n,e)});function HT(n){return function SM(n,e){return new n({type:"number",check:"number_format",abort:!1,format:"safeint",...ht(e)})}(nu,n)}const GT=De("ZodBoolean",(n,e)=>{k2.init(n,e),vn.init(n,e)});function ln(n){return function RM(n,e){return new n({type:"boolean",...ht(e)})}(GT,n)}const aV=De("ZodNull",(n,e)=>{C2.init(n,e),vn.init(n,e)});function m_(n){return function PM(n,e){return new n({type:"null",...ht(e)})}(aV,n)}const cV=De("ZodAny",(n,e)=>{x2.init(n,e),vn.init(n,e)}),lV=De("ZodUnknown",(n,e)=>{D2.init(n,e),vn.init(n,e)});function Pn(){return function CM(n){return new n({type:"unknown"})}(lV)}const dV=De("ZodNever",(n,e)=>{O2.init(n,e),vn.init(n,e)});function g_(n){return function xM(n,e){return new n({type:"never",...ht(e)})}(dV,n)}const fV=De("ZodArray",(n,e)=>{$2.init(n,e),vn.init(n,e),n.element=e.element,n.min=(t,r)=>n.check(fd(t,r)),n.nonempty=t=>n.check(fd(1,t)),n.max=(t,r)=>n.check(ET(t,r)),n.length=(t,r)=>n.check(IT(t,r)),n.unwrap=()=>n.element});function nt(n,e){return function zM(n,e,t){return new n({type:"array",element:e,...ht(t)})}(fV,n,e)}const __=De("ZodObject",(n,e)=>{N2.init(n,e),vn.init(n,e),mn(n,"shape",()=>e.shape),n.keyof=()=>Jr(Object.keys(n._zod.def.shape)),n.catchall=t=>n.clone({...n._zod.def,catchall:t}),n.passthrough=()=>n.clone({...n._zod.def,catchall:Pn()}),n.loose=()=>n.clone({...n._zod.def,catchall:Pn()}),n.strict=()=>n.clone({...n._zod.def,catchall:g_()}),n.strip=()=>n.clone({...n._zod.def,catchall:void 0}),n.extend=t=>function nN(n,e){if(!id(e))throw new Error("Invalid input to extend: expected a plain object");const t={...n._zod.def,get shape(){const r={...n._zod.def.shape,...e};return od(this,"shape",r),r},checks:[]};return di(n,t)}(n,t),n.merge=t=>function rN(n,e){return di(n,{...n._zod.def,get shape(){const t={...n._zod.def.shape,...e._zod.def.shape};return od(this,"shape",t),t},catchall:e._zod.def.catchall,checks:[]})}(n,t),n.pick=t=>function eN(n,e){const t={},r=n._zod.def;for(const o in e){if(!(o in r.shape))throw new Error(`Unrecognized key: "${o}"`);e[o]&&(t[o]=r.shape[o])}return di(n,{...n._zod.def,shape:t,checks:[]})}(n,t),n.omit=t=>function tN(n,e){const t={...n._zod.def.shape},r=n._zod.def;for(const o in e){if(!(o in r.shape))throw new Error(`Unrecognized key: "${o}"`);e[o]&&delete t[o]}return di(n,{...n._zod.def,shape:t,checks:[]})}(n,t),n.partial=(...t)=>function oN(n,e,t){const r=e._zod.def.shape,o={...r};if(t)for(const s in t){if(!(s in r))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(o[s]=n?new n({type:"optional",innerType:r[s]}):r[s])}else for(const s in r)o[s]=n?new n({type:"optional",innerType:r[s]}):r[s];return di(e,{...e._zod.def,shape:o,checks:[]})}(YT,n,t[0]),n.required=(...t)=>function sN(n,e,t){const r=e._zod.def.shape,o={...r};if(t)for(const s in t){if(!(s in o))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(o[s]=new n({type:"nonoptional",innerType:r[s]}))}else for(const s in r)o[s]=new n({type:"nonoptional",innerType:r[s]});return di(e,{...e._zod.def,shape:o,checks:[]})}(eA,n,t[0])});function ot(n,e){const t={type:"object",get shape(){return od(this,"shape",{...n}),this.shape},...ht(e)};return new __(t)}function cr(n,e){return new __({type:"object",get shape(){return od(this,"shape",{...n}),this.shape},catchall:Pn(),...ht(e)})}const WT=De("ZodUnion",(n,e)=>{hT.init(n,e),vn.init(n,e),n.options=e.options});function tn(n,e){return new WT({type:"union",options:n,...ht(e)})}const mV=De("ZodDiscriminatedUnion",(n,e)=>{WT.init(n,e),M2.init(n,e)});function ZT(n,e,t){return new mV({type:"union",options:e,discriminator:n,...ht(t)})}const gV=De("ZodIntersection",(n,e)=>{V2.init(n,e),vn.init(n,e)});function y_(n,e){return new gV({type:"intersection",left:n,right:e})}const QT=De("ZodRecord",(n,e)=>{L2.init(n,e),vn.init(n,e),n.keyType=e.keyType,n.valueType=e.valueType});function bn(n,e,t){return new QT({type:"record",keyType:n,valueType:e,...ht(t)})}const gd=De("ZodEnum",(n,e)=>{U2.init(n,e),vn.init(n,e),n.enum=e.entries,n.options=Object.values(e.entries);const t=new Set(Object.keys(e.entries));n.extract=(r,o)=>{const s={};for(const i of r){if(!t.has(i))throw new Error(`Key ${i} not found in enum`);s[i]=e.entries[i]}return new gd({...e,checks:[],...ht(o),entries:s})},n.exclude=(r,o)=>{const s={...e.entries};for(const i of r){if(!t.has(i))throw new Error(`Key ${i} not found in enum`);delete s[i]}return new gd({...e,checks:[],...ht(o),entries:s})}});function Jr(n,e){const t=Array.isArray(n)?Object.fromEntries(n.map(r=>[r,r])):n;return new gd({type:"enum",entries:t,...ht(e)})}const vV=De("ZodLiteral",(n,e)=>{F2.init(n,e),vn.init(n,e),n.values=new Set(e.values),Object.defineProperty(n,"value",{get(){if(e.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return e.values[0]}})});function ft(n,e){return new vV({type:"literal",values:Array.isArray(n)?n:[n],...ht(e)})}const JT=De("ZodTransform",(n,e)=>{j2.init(n,e),vn.init(n,e),n._zod.parse=(t,r)=>{t.addIssue=s=>{if("string"==typeof s)t.issues.push(Xc(s,t.value,e));else{const i=s;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=t.value),i.inst??(i.inst=n),i.continue??(i.continue=!0),t.issues.push(Xc(i))}};const o=e.transform(t.value,t);return o instanceof Promise?o.then(s=>(t.value=s,t)):(t.value=o,t)}});function XT(n){return new JT({type:"transform",transform:n})}const YT=De("ZodOptional",(n,e)=>{z2.init(n,e),vn.init(n,e),n.unwrap=()=>n._zod.def.innerType});function kn(n){return new YT({type:"optional",innerType:n})}const EV=De("ZodNullable",(n,e)=>{q2.init(n,e),vn.init(n,e),n.unwrap=()=>n._zod.def.innerType});function w_(n){return new EV({type:"nullable",innerType:n})}const IV=De("ZodDefault",(n,e)=>{B2.init(n,e),vn.init(n,e),n.unwrap=()=>n._zod.def.innerType,n.removeDefault=n.unwrap}),AV=De("ZodPrefault",(n,e)=>{H2.init(n,e),vn.init(n,e),n.unwrap=()=>n._zod.def.innerType}),eA=De("ZodNonOptional",(n,e)=>{G2.init(n,e),vn.init(n,e),n.unwrap=()=>n._zod.def.innerType}),kV=De("ZodCatch",(n,e)=>{K2.init(n,e),vn.init(n,e),n.unwrap=()=>n._zod.def.innerType,n.removeCatch=n.unwrap}),tA=De("ZodPipe",(n,e)=>{W2.init(n,e),vn.init(n,e),n.in=e.in,n.out=e.out});function v_(n,e){return new tA({type:"pipe",in:n,out:e})}const DV=De("ZodReadonly",(n,e)=>{Z2.init(n,e),vn.init(n,e)}),b_=De("ZodCustom",(n,e)=>{Q2.init(n,e),vn.init(n,e)});function nA(n,e){return v_(XT(n),e)}const fi="io.modelcontextprotocol/related-task",_d="2.0",ur=function UV(n,e){return function qM(n,e,t){const r=ht(t);return r.abort??(r.abort=!0),new n({type:"custom",check:"custom",fn:e,...r})}(b_,n??(()=>!0),e)}(n=>null!==n&&("object"==typeof n||"function"==typeof n)),oA=tn([oe(),Bt().int()]),sA=oe(),qV=(cr({ttl:tn([Bt(),m_()]).optional(),pollInterval:Bt().optional()}),ot({ttl:Bt().optional()})),BV=ot({taskId:oe()}),E_=cr({progressToken:oA.optional(),[fi]:BV.optional()}),Xr=ot({_meta:E_.optional()}),ru=Xr.extend({task:qV.optional()}),lr=ot({method:oe(),params:Xr.loose().optional()}),oo=ot({_meta:E_.optional()}),so=ot({method:oe(),params:oo.loose().optional()}),dr=cr({_meta:E_.optional()}),yd=tn([oe(),Bt().int()]),iA=ot({jsonrpc:ft(_d),id:yd,...lr.shape}).strict(),cA=ot({jsonrpc:ft(_d),...so.shape}).strict(),I_=ot({jsonrpc:ft(_d),id:yd,result:dr}).strict(),T_=ot({jsonrpc:ft(_d),id:yd.optional(),error:ot({code:Bt().int(),message:oe(),data:Pn().optional()})}).strict(),pa=(tn([iA,cA,I_,T_]),tn([I_,T_]),dr.strict()),WV=oo.extend({requestId:yd.optional(),reason:oe().optional()}),A_=so.extend({method:ft("notifications/cancelled"),params:WV}),ZV=ot({src:oe(),mimeType:oe().optional(),sizes:nt(oe()).optional(),theme:Jr(["light","dark"]).optional()}),ou=ot({icons:nt(ZV).optional()}),fa=ot({name:oe(),title:oe().optional()}),uA=fa.extend({...fa.shape,...ou.shape,version:oe(),websiteUrl:oe().optional(),description:oe().optional()}),QV=y_(ot({applyDefaults:ln().optional()}),bn(oe(),Pn())),JV=nA(n=>n&&"object"==typeof n&&!Array.isArray(n)&&0===Object.keys(n).length?{form:{}}:n,y_(ot({form:QV.optional(),url:ur.optional()}),bn(oe(),Pn()).optional())),XV=cr({list:ur.optional(),cancel:ur.optional(),requests:cr({sampling:cr({createMessage:ur.optional()}).optional(),elicitation:cr({create:ur.optional()}).optional()}).optional()}),YV=cr({list:ur.optional(),cancel:ur.optional(),requests:cr({tools:cr({call:ur.optional()}).optional()}).optional()}),eL=ot({experimental:bn(oe(),ur).optional(),sampling:ot({context:ur.optional(),tools:ur.optional()}).optional(),elicitation:JV.optional(),roots:ot({listChanged:ln().optional()}).optional(),tasks:XV.optional()}),tL=Xr.extend({protocolVersion:oe(),capabilities:eL,clientInfo:uA}),lA=lr.extend({method:ft("initialize"),params:tL}),nL=ot({experimental:bn(oe(),ur).optional(),logging:ur.optional(),completions:ur.optional(),prompts:ot({listChanged:ln().optional()}).optional(),resources:ot({subscribe:ln().optional(),listChanged:ln().optional()}).optional(),tools:ot({listChanged:ln().optional()}).optional(),tasks:YV.optional()}),dA=dr.extend({protocolVersion:oe(),capabilities:nL,serverInfo:uA,instructions:oe().optional()}),hA=so.extend({method:ft("notifications/initialized"),params:oo.optional()}),S_=lr.extend({method:ft("ping"),params:Xr.optional()}),rL=ot({progress:Bt(),total:kn(Bt()),message:kn(oe())}),oL=ot({...oo.shape,...rL.shape,progressToken:oA}),R_=so.extend({method:ft("notifications/progress"),params:oL}),sL=Xr.extend({cursor:sA.optional()}),su=lr.extend({params:sL.optional()}),iu=dr.extend({nextCursor:sA.optional()}),iL=Jr(["working","input_required","completed","failed","cancelled"]),au=ot({taskId:oe(),status:iL,ttl:tn([Bt(),m_()]),createdAt:oe(),lastUpdatedAt:oe(),pollInterval:kn(Bt()),statusMessage:kn(oe())}),cu=dr.extend({task:au}),aL=oo.merge(au),vd=so.extend({method:ft("notifications/tasks/status"),params:aL}),P_=lr.extend({method:ft("tasks/get"),params:Xr.extend({taskId:oe()})}),k_=dr.merge(au),C_=lr.extend({method:ft("tasks/result"),params:Xr.extend({taskId:oe()})}),x_=(dr.loose(),su.extend({method:ft("tasks/list")})),D_=iu.extend({tasks:nt(au)}),O_=lr.extend({method:ft("tasks/cancel"),params:Xr.extend({taskId:oe()})}),pA=(dr.merge(au),ot({uri:oe(),mimeType:kn(oe()),_meta:bn(oe(),Pn()).optional()})),fA=pA.extend({text:oe()}),$_=oe().refine(n=>{try{return atob(n),!0}catch{return!1}},{message:"Invalid Base64 string"}),mA=pA.extend({blob:$_}),uu=Jr(["user","assistant"]),ma=ot({audience:nt(uu).optional(),priority:Bt().min(0).max(1).optional(),lastModified:TT({offset:!0}).optional()}),gA=ot({...fa.shape,...ou.shape,uri:oe(),description:kn(oe()),mimeType:kn(oe()),annotations:ma.optional(),_meta:kn(cr({}))}),uL=ot({...fa.shape,...ou.shape,uriTemplate:oe(),description:kn(oe()),mimeType:kn(oe()),annotations:ma.optional(),_meta:kn(cr({}))}),lL=su.extend({method:ft("resources/list")}),_A=iu.extend({resources:nt(gA)}),dL=su.extend({method:ft("resources/templates/list")}),yA=iu.extend({resourceTemplates:nt(uL)}),N_=Xr.extend({uri:oe()}),hL=N_,pL=lr.extend({method:ft("resources/read"),params:hL}),wA=dr.extend({contents:nt(tn([fA,mA]))}),vA=so.extend({method:ft("notifications/resources/list_changed"),params:oo.optional()}),fL=N_,mL=lr.extend({method:ft("resources/subscribe"),params:fL}),gL=N_,_L=lr.extend({method:ft("resources/unsubscribe"),params:gL}),yL=oo.extend({uri:oe()}),wL=so.extend({method:ft("notifications/resources/updated"),params:yL}),vL=ot({name:oe(),description:kn(oe()),required:kn(ln())}),bL=ot({...fa.shape,...ou.shape,description:kn(oe()),arguments:kn(nt(vL)),_meta:kn(cr({}))}),EL=su.extend({method:ft("prompts/list")}),bA=iu.extend({prompts:nt(bL)}),IL=Xr.extend({name:oe(),arguments:bn(oe(),oe()).optional()}),TL=lr.extend({method:ft("prompts/get"),params:IL}),M_=ot({type:ft("text"),text:oe(),annotations:ma.optional(),_meta:bn(oe(),Pn()).optional()}),V_=ot({type:ft("image"),data:$_,mimeType:oe(),annotations:ma.optional(),_meta:bn(oe(),Pn()).optional()}),L_=ot({type:ft("audio"),data:$_,mimeType:oe(),annotations:ma.optional(),_meta:bn(oe(),Pn()).optional()}),AL=ot({type:ft("tool_use"),name:oe(),id:oe(),input:bn(oe(),Pn()),_meta:bn(oe(),Pn()).optional()}),SL=ot({type:ft("resource"),resource:tn([fA,mA]),annotations:ma.optional(),_meta:bn(oe(),Pn()).optional()}),U_=tn([M_,V_,L_,gA.extend({type:ft("resource_link")}),SL]),PL=ot({role:uu,content:U_}),EA=dr.extend({description:oe().optional(),messages:nt(PL)}),IA=so.extend({method:ft("notifications/prompts/list_changed"),params:oo.optional()}),kL=ot({title:oe().optional(),readOnlyHint:ln().optional(),destructiveHint:ln().optional(),idempotentHint:ln().optional(),openWorldHint:ln().optional()}),CL=ot({taskSupport:Jr(["required","optional","forbidden"]).optional()}),TA=ot({...fa.shape,...ou.shape,description:oe().optional(),inputSchema:ot({type:ft("object"),properties:bn(oe(),ur).optional(),required:nt(oe()).optional()}).catchall(Pn()),outputSchema:ot({type:ft("object"),properties:bn(oe(),ur).optional(),required:nt(oe()).optional()}).catchall(Pn()).optional(),annotations:kL.optional(),execution:CL.optional(),_meta:bn(oe(),Pn()).optional()}),xL=su.extend({method:ft("tools/list")}),AA=iu.extend({tools:nt(TA)}),bd=dr.extend({content:nt(U_).default([]),structuredContent:bn(oe(),Pn()).optional(),isError:ln().optional()}),DL=(bd.or(dr.extend({toolResult:Pn()})),ru.extend({name:oe(),arguments:bn(oe(),Pn()).optional()})),OL=lr.extend({method:ft("tools/call"),params:DL}),SA=so.extend({method:ft("notifications/tools/list_changed"),params:oo.optional()}),RA=(ot({autoRefresh:ln().default(!0),debounceMs:Bt().int().nonnegative().default(300)}),Jr(["debug","info","notice","warning","error","critical","alert","emergency"])),NL=Xr.extend({level:RA}),ML=lr.extend({method:ft("logging/setLevel"),params:NL}),VL=oo.extend({level:RA,logger:oe().optional(),data:Pn()}),LL=so.extend({method:ft("notifications/message"),params:VL}),UL=ot({name:oe().optional()}),FL=ot({hints:nt(UL).optional(),costPriority:Bt().min(0).max(1).optional(),speedPriority:Bt().min(0).max(1).optional(),intelligencePriority:Bt().min(0).max(1).optional()}),jL=ot({mode:Jr(["auto","required","none"]).optional()}),zL=ot({type:ft("tool_result"),toolUseId:oe().describe("The unique identifier for the corresponding tool call."),content:nt(U_).default([]),structuredContent:ot({}).loose().optional(),isError:ln().optional(),_meta:bn(oe(),Pn()).optional()}),qL=ZT("type",[M_,V_,L_]),Ed=ZT("type",[M_,V_,L_,AL,zL]),BL=ot({role:uu,content:tn([Ed,nt(Ed)]),_meta:bn(oe(),Pn()).optional()}),HL=ru.extend({messages:nt(BL),modelPreferences:FL.optional(),systemPrompt:oe().optional(),includeContext:Jr(["none","thisServer","allServers"]).optional(),temperature:Bt().optional(),maxTokens:Bt().int(),stopSequences:nt(oe()).optional(),metadata:ur.optional(),tools:nt(TA).optional(),toolChoice:jL.optional()}),PA=lr.extend({method:ft("sampling/createMessage"),params:HL}),kA=dr.extend({model:oe(),stopReason:kn(Jr(["endTurn","stopSequence","maxTokens"]).or(oe())),role:uu,content:qL}),CA=dr.extend({model:oe(),stopReason:kn(Jr(["endTurn","stopSequence","maxTokens","toolUse"]).or(oe())),role:uu,content:tn([Ed,nt(Ed)])}),GL=ot({type:ft("boolean"),title:oe().optional(),description:oe().optional(),default:ln().optional()}),KL=ot({type:ft("string"),title:oe().optional(),description:oe().optional(),minLength:Bt().optional(),maxLength:Bt().optional(),format:Jr(["email","uri","date","date-time"]).optional(),default:oe().optional()}),WL=ot({type:Jr(["number","integer"]),title:oe().optional(),description:oe().optional(),minimum:Bt().optional(),maximum:Bt().optional(),default:Bt().optional()}),ZL=ot({type:ft("string"),title:oe().optional(),description:oe().optional(),enum:nt(oe()),default:oe().optional()}),QL=ot({type:ft("string"),title:oe().optional(),description:oe().optional(),oneOf:nt(ot({const:oe(),title:oe()})),default:oe().optional()}),JL=ot({type:ft("string"),title:oe().optional(),description:oe().optional(),enum:nt(oe()),enumNames:nt(oe()).optional(),default:oe().optional()}),XL=tn([ZL,QL]),tU=tn([ot({type:ft("array"),title:oe().optional(),description:oe().optional(),minItems:Bt().optional(),maxItems:Bt().optional(),items:ot({type:ft("string"),enum:nt(oe())}),default:nt(oe()).optional()}),ot({type:ft("array"),title:oe().optional(),description:oe().optional(),minItems:Bt().optional(),maxItems:Bt().optional(),items:ot({anyOf:nt(ot({const:oe(),title:oe()}))}),default:nt(oe()).optional()})]),nU=tn([JL,XL,tU]),rU=tn([nU,GL,KL,WL]),iU=tn([ru.extend({mode:ft("form").optional(),message:oe(),requestedSchema:ot({type:ft("object"),properties:bn(oe(),rU),required:nt(oe()).optional()})}),ru.extend({mode:ft("url"),message:oe(),elicitationId:oe(),url:oe().url()})]),xA=lr.extend({method:ft("elicitation/create"),params:iU}),aU=oo.extend({elicitationId:oe()}),cU=so.extend({method:ft("notifications/elicitation/complete"),params:aU}),DA=dr.extend({action:Jr(["accept","decline","cancel"]),content:nA(n=>null===n?void 0:n,bn(oe(),tn([oe(),Bt(),ln(),nt(oe())])).optional())}),uU=ot({type:ft("ref/resource"),uri:oe()}),lU=ot({type:ft("ref/prompt"),name:oe()}),dU=Xr.extend({ref:tn([lU,uU]),argument:ot({name:oe(),value:oe()}),context:ot({arguments:bn(oe(),oe()).optional()}).optional()}),hU=lr.extend({method:ft("completion/complete"),params:dU}),OA=dr.extend({completion:cr({values:nt(oe()).max(100),total:kn(Bt().int()),hasMore:kn(ln())})}),pU=ot({uri:oe().startsWith("file://"),name:oe().optional(),_meta:bn(oe(),Pn()).optional()}),fU=lr.extend({method:ft("roots/list"),params:Xr.optional()}),mU=dr.extend({roots:nt(pU)}),gU=so.extend({method:ft("notifications/roots/list_changed"),params:oo.optional()});let q_;tn([S_,lA,hU,ML,TL,EL,lL,dL,pL,mL,_L,OL,xL,P_,C_,x_,O_]),tn([A_,R_,hA,gU,vd]),tn([pa,kA,CA,DA,mU,k_,D_,cu]),tn([S_,PA,xA,fU,P_,C_,x_,O_]),tn([A_,R_,LL,wL,vA,SA,IA,vd,cU]),tn([pa,dA,OA,EA,bA,_A,yA,wA,bd,AA,k_,D_,cu]),Error,new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789"),R(51435),R(71011),R(19495),q_=globalThis.crypto;const hr=function nV(n){return vT(kT,n)}().superRefine((n,e)=>{if(!URL.canParse(n))return e.addIssue({code:"custom",message:"URL must be parseable",fatal:!0}),H$}).refine(n=>{const e=new URL(n);return"javascript:"!==e.protocol&&"data:"!==e.protocol&&"vbscript:"!==e.protocol},{message:"URL cannot use javascript:, data:, or vbscript: scheme"}),qF=(cr({resource:oe().url(),authorization_servers:nt(hr).optional(),jwks_uri:oe().url().optional(),scopes_supported:nt(oe()).optional(),bearer_methods_supported:nt(oe()).optional(),resource_signing_alg_values_supported:nt(oe()).optional(),resource_name:oe().optional(),resource_documentation:oe().optional(),resource_policy_uri:oe().url().optional(),resource_tos_uri:oe().url().optional(),tls_client_certificate_bound_access_tokens:ln().optional(),authorization_details_types_supported:nt(oe()).optional(),dpop_signing_alg_values_supported:nt(oe()).optional(),dpop_bound_access_tokens_required:ln().optional()}),cr({issuer:oe(),authorization_endpoint:hr,token_endpoint:hr,registration_endpoint:hr.optional(),scopes_supported:nt(oe()).optional(),response_types_supported:nt(oe()),response_modes_supported:nt(oe()).optional(),grant_types_supported:nt(oe()).optional(),token_endpoint_auth_methods_supported:nt(oe()).optional(),token_endpoint_auth_signing_alg_values_supported:nt(oe()).optional(),service_documentation:hr.optional(),revocation_endpoint:hr.optional(),revocation_endpoint_auth_methods_supported:nt(oe()).optional(),revocation_endpoint_auth_signing_alg_values_supported:nt(oe()).optional(),introspection_endpoint:oe().optional(),introspection_endpoint_auth_methods_supported:nt(oe()).optional(),introspection_endpoint_auth_signing_alg_values_supported:nt(oe()).optional(),code_challenge_methods_supported:nt(oe()).optional(),client_id_metadata_document_supported:ln().optional()})),nS=(ot({...cr({issuer:oe(),authorization_endpoint:hr,token_endpoint:hr,userinfo_endpoint:hr.optional(),jwks_uri:hr,registration_endpoint:hr.optional(),scopes_supported:nt(oe()).optional(),response_types_supported:nt(oe()),response_modes_supported:nt(oe()).optional(),grant_types_supported:nt(oe()).optional(),acr_values_supported:nt(oe()).optional(),subject_types_supported:nt(oe()),id_token_signing_alg_values_supported:nt(oe()),id_token_encryption_alg_values_supported:nt(oe()).optional(),id_token_encryption_enc_values_supported:nt(oe()).optional(),userinfo_signing_alg_values_supported:nt(oe()).optional(),userinfo_encryption_alg_values_supported:nt(oe()).optional(),userinfo_encryption_enc_values_supported:nt(oe()).optional(),request_object_signing_alg_values_supported:nt(oe()).optional(),request_object_encryption_alg_values_supported:nt(oe()).optional(),request_object_encryption_enc_values_supported:nt(oe()).optional(),token_endpoint_auth_methods_supported:nt(oe()).optional(),token_endpoint_auth_signing_alg_values_supported:nt(oe()).optional(),display_values_supported:nt(oe()).optional(),claim_types_supported:nt(oe()).optional(),claims_supported:nt(oe()).optional(),service_documentation:oe().optional(),claims_locales_supported:nt(oe()).optional(),ui_locales_supported:nt(oe()).optional(),claims_parameter_supported:ln().optional(),request_parameter_supported:ln().optional(),request_uri_parameter_supported:ln().optional(),require_request_uri_registration:ln().optional(),op_policy_uri:hr.optional(),op_tos_uri:hr.optional(),client_id_metadata_document_supported:ln().optional()}).shape,...qF.pick({code_challenge_methods_supported:!0}).shape}),ot({access_token:oe(),id_token:oe().optional(),token_type:oe(),expires_in:function zF(n){return function AM(n,e){return new n({type:"number",coerce:!0,checks:[],...ht(e)})}(f_,n)}().optional(),scope:oe().optional(),refresh_token:oe().optional()}).strip(),ot({error:oe(),error_description:oe().optional(),error_uri:oe().optional()}),hr.optional().or(ft("").transform(()=>{}))),HF=ot({redirect_uris:nt(hr),token_endpoint_auth_method:oe().optional(),grant_types:nt(oe()).optional(),response_types:nt(oe()).optional(),client_name:oe().optional(),client_uri:hr.optional(),logo_uri:nS,scope:oe().optional(),contacts:nt(oe()).optional(),tos_uri:nS,policy_uri:oe().optional(),jwks_uri:hr.optional(),jwks:function uV(){return function kM(n){return new n({type:"any"})}(cV)}().optional(),software_id:oe().optional(),software_version:oe().optional(),software_statement:oe().optional()}).strip(),GF=ot({client_id:oe(),client_secret:oe().optional(),client_id_issued_at:Bt().optional(),client_secret_expires_at:Bt().optional()}).strip();HF.merge(GF),ot({error:oe(),error_description:oe().optional()}).strip(),ot({token:oe(),token_type_hint:oe().optional()}).strip(),Error,Error,Error;class U3{constructor(e,t,r,o){this.app=e,this.auth=null,this.messaging=null,this.appCheck=null,this.serverAppAppCheckToken=null,(0,$.xZ)(e)&&e.settings.appCheckToken&&(this.serverAppAppCheckToken=e.settings.appCheckToken),this.auth=t.getImmediate({optional:!0}),this.messaging=r.getImmediate({optional:!0}),this.auth||t.get().then(s=>this.auth=s,()=>{}),this.messaging||r.get().then(s=>this.messaging=s,()=>{}),this.appCheck||o?.get().then(s=>this.appCheck=s,()=>{})}getAuthToken(){var e=this;return(0,d.A)(function*(){if(e.auth)try{return(yield e.auth.getToken())?.accessToken}catch{return}})()}getMessagingToken(){var e=this;return(0,d.A)(function*(){if(e.messaging&&"Notification"in self&&"granted"===Notification.permission)try{return yield e.messaging.getToken()}catch{return}})()}getAppCheckToken(e){var t=this;return(0,d.A)(function*(){if(t.serverAppAppCheckToken)return t.serverAppAppCheckToken;if(t.appCheck){const r=e?yield t.appCheck.getLimitedUseToken():yield t.appCheck.getToken();return r.error?null:r.token}return null})()}getContext(e){var t=this;return(0,d.A)(function*(){return{authToken:yield t.getAuthToken(),messagingToken:yield t.getMessagingToken(),appCheckToken:yield t.getAppCheckToken(e)}})()}}const Ey="us-central1";class z3{constructor(e,t,r,o,s=Ey,i=(...a)=>fetch(...a)){this.app=e,this.fetchImpl=i,this.emulatorOrigin=null,this.contextProvider=new U3(e,t,r,o),this.cancelAllRequests=new Promise(a=>{this.deleteService=()=>Promise.resolve(a())});try{const a=new URL(s);this.customDomain=a.origin+("/"===a.pathname?"":a.pathname),this.region=Ey}catch{this.customDomain=null,this.region=s}}_delete(){return this.deleteService()}_url(e){const t=this.app.options.projectId;return null!==this.emulatorOrigin?`${this.emulatorOrigin}/${t}/${this.region}/${e}`:null!==this.customDomain?`${this.customDomain}/${e}`:`https://${this.region}-${t}.cloudfunctions.net/${e}`}}const OS="@firebase/functions";!function Y3(n){(0,$.om)(new Rr.uA("functions",(t,{instanceIdentifier:r})=>{const o=t.getProvider("app").getImmediate(),s=t.getProvider("auth-internal"),i=t.getProvider("messaging-internal"),a=t.getProvider("app-check-internal");return new z3(o,s,i,a,r)},"PUBLIC").setMultipleInstances(!0)),(0,$.KO)(OS,"0.13.1",n),(0,$.KO)(OS,"0.13.1","esm2020")}(),R(94556),Error,parseInt((typeof process<"u"?process.env.QLEVER_LOCKED_MAX_RETRIES:void 0)??"10",10),parseInt((typeof process<"u"?process.env.QLEVER_LOCKED_BASE_DELAY_MS:void 0)??"2000",10),parseInt((typeof process<"u"?process.env.QLEVER_LOCKED_MAX_DELAY_MS:void 0)??"30000",10);class Gn{_value;_listeners=new Set;constructor(e){this._value=e}get(){return this._value}set(e){this._value=e;for(const t of this._listeners)t()}subscribe(e){return this._listeners.add(e),()=>this._listeners.delete(e)}asReadonly(){return this}}const $y="https://cue.qaecy.com/r/";Error;const Zz={address:{category:"address",label:"Address",description:"Official addresses, streets, and addressable access points.",preferredColor:"#1d4ed8"},poi:{category:"poi",label:"Points of interest",description:"Places and amenities relevant to everyday operations and access.",preferredColor:"#059669"},railway:{category:"railway",label:"Railway",description:"Rail infrastructure, stations, and rail-adjacent transport context.",preferredColor:"#dc2626"},natural:{category:"natural",label:"Natural features",description:"Natural and hydrological features such as watercourses, forests, and land cover.",preferredColor:"#0ea5e9"},manmade:{category:"manmade",label:"Built features",description:"Structures and man-made elements not covered by more specific categories.",preferredColor:"#ca8a04"},cadastre:{category:"cadastre",label:"Cadastre",description:"Land parcels, legal boundaries, official surveying, and public-law land restrictions.",preferredColor:"#7c3aed"},building:{category:"building",label:"Buildings",description:"Building footprints and structures from official registry or cadastral data.",preferredColor:"#f97316"},greenspace:{category:"greenspace",label:"Green spaces",description:"Parks, gardens, playgrounds, sports facilities, and other vegetated open areas.",preferredColor:"#16a34a"},paved:{category:"paved",label:"Paved surfaces",description:"Courtyards, sidewalks, parking areas, and other sealed ground surfaces.",preferredColor:"#78716c"},zone:{category:"zone",label:"Planning zones",description:"Land-use zones, local plans, and public-law planning constraints (Nutzungsplanung / Lokalplan).",preferredColor:"#db2777"},custom:{category:"custom",label:"Custom",description:"Features uploaded to this project (GeoJSON, KML, or Shapefile).",preferredColor:"#0d9488"}};function es(n){return Zz[n]}const pR={110:"residential",120:"residential",121:"residential",122:"residential",130:"residential",131:"residential",132:"residential",140:"residential",150:"residential",160:"residential",190:"residential",210:"recreational",212:"recreational",220:"recreational",221:"recreational",230:"recreational",290:"residential",310:"agricultural",311:"agricultural",312:"agricultural",320:"agricultural",321:"agricultural",322:"agricultural",330:"agricultural",390:"agricultural",410:"commercial",411:"commercial",420:"commercial",421:"commercial",422:"commercial",430:"commercial",431:"commercial",432:"commercial",440:"commercial",490:"commercial",510:"industrial",511:"industrial",519:"industrial",520:"infrastructure",521:"infrastructure",522:"infrastructure",529:"infrastructure",530:"infrastructure",531:"infrastructure",532:"infrastructure",533:"infrastructure",534:"infrastructure",535:"infrastructure",540:"infrastructure",585:"infrastructure",590:"industrial",610:"public",620:"public",621:"public",622:"public",630:"public",640:"public",650:"recreational",660:"public",670:"public",680:"public",690:"public",910:"other",920:"other",930:"other",940:"other",950:"infrastructure",960:"agricultural",970:"agricultural",990:"other"},fR={1010:"residential",1020:"mixed",1030:"residential",1040:"other",1060:"recreational",1080:"residential",1110:"commercial",1120:"commercial",1130:"commercial",1140:"industrial",1150:"infrastructure",1160:"infrastructure",1210:"public",1220:"public",1230:"public",1240:"recreational",1241:"public",1242:"recreational",1251:"public",1261:"agricultural",1262:"agricultural",1263:"agricultural",1275:"other",1276:"other",1277:"infrastructure",1278:"infrastructure",1281:"infrastructure",1282:"infrastructure",9999:"other"},n6={1110:"residential",1121:"recreational",1122:"residential",1130:"mixed",1140:"mixed",1211:"commercial",1212:"commercial",1213:"mixed",1220:"commercial",1230:"commercial",1231:"commercial",1241:"infrastructure",1242:"recreational",1264:"recreational",1251:"industrial",1252:"industrial",1261:"public",1262:"public",1263:"public",1265:"public",1272:"public",1273:"public",1271:"agricultural",1274:"other",1281:"infrastructure",1282:"infrastructure"},r6=[[/^geb[\xe4a]ude$/i,"other"],[/wohn|resident|housing|bolig|enfamil|etagebolig|r\xe6kkehus|lejlighed/i,"residential"],[/b\xfcro|office|handel|commercial|butik|forretning|kontor|supermarked|lager|hotel|restaurant/i,"commercial"],[/industri|fabrik|industrial|gewerbe|produktion|fabrik|fremstill/i,"industrial"],[/landwirtschaft|agrar|agricultural|landbrug|skov|dyrk|stald|lade|drivhus/i,"agricultural"],[/schule|school|hospital|gesundheit|sundhed|kirche|church|offentlig|uddannelse|kultur|social|plejehjem/i,"public"],[/freizeit|recreation|sport|sommerhus|ferienhaus|fritid|kolonihave/i,"recreational"],[/infrastruktur|verkehr|transport|energy|energie|forsyning|teknik|teknisk/i,"infrastructure"],[/gemischt|mixed|blandet/i,"mixed"]];function hu(n){for(const[e,t]of r6)if(e.test(n))return t}function o6(n,e){if(null==n)return;const t=String(n).trim();return"swiss-gwr"===e?n6[t]??hu(t):"danish-matrikel"===e?pR[t]??hu(t):"zurich-wfs"===e||"swiss-av-wfs"===e?fR[t]??hu(t):fR[t]??pR[t]??hu(t)}function s6(n,e){if(null!=n)return hu(String(n).trim())}function mR(n){return n.trim().toLowerCase().replace(/[\s_\-]/g,"")}const i6={inkraft:"in-force",laufendeanderung:"amendment-pending",laufende\u00e4nderung:"amendment-pending",aenderungohnevorvirkung:"amendment-pending",aenderungohnevorwirkung:"amendment-pending",\u00e4nderungohnevorwirkung:"amendment-pending",aenderungmitvorwirkung:"amendment-in-effect",\u00e4nderungmitvorwirkung:"amendment-in-effect",\u00f6ffentlicheauflage:"proposed",offentlicheauflage:"proposed",aufgehoben:"repealed",vedtaget:"in-force",forslag:"proposed",aflyst:"repealed"};const _R={grundnutzungszonenplan:"land-use-plan",nutzungszonenplan:"land-use-plan",zonenplan:"land-use-plan",gestaltungsplan:"design-plan",bebauungsplan:"development-plan",sondernutzungsplan:"special-use-plan",quartiererhaltungszonenplan:"neighbourhood-conservation-plan",l\u00e4rmempfindlichkeitsstufenplan:"noise-sensitivity-plan",laermempfindlichkeitsstufenplan:"noise-sensitivity-plan",gew\u00e4sserschutzzonenplan:"water-protection-plan",gewasserschutzzonenplan:"water-protection-plan",grundwasserschutzzonenplan:"water-protection-plan",gew\u00e4sserschutzplan:"water-protection-plan",naturundlandschaftsschutzzonenplan:"nature-landscape-plan","natur-undlandschaftsschutzzonenplan":"nature-landscape-plan",landschaftsschutzzonenplan:"nature-landscape-plan",freihaltezone:"open-space-zone",kernzone:"land-use-plan",wald:"land-use-plan",gew\u00e4sser:"land-use-plan",gewasser:"land-use-plan",reservezone:"land-use-plan",bahnareal:"land-use-plan",erholungszone:"land-use-plan","strassen(weitere)":"land-use-plan",strassen:"land-use-plan",nichtzoniertfl\u00e4che:"unzoned",nichtzoniertefl\u00e4che:"unzoned",nichtzoniertflache:"unzoned",nichtzonierteflache:"unzoned",nichtzoniertgem\u00e4ssbzo2016:"unzoned",nichtzoniertgemassbzo2016:"unzoned",hochh\u00e4user:"overlay-regulation",hochhauser:"overlay-regulation",areal\u00fcberbauungenzul\u00e4ssig:"overlay-regulation",arealuberbauungenzulassig:"overlay-regulation",erh\u00f6hteausnutzung:"overlay-regulation",erhohteausnutzung:"overlay-regulation",erdgeschossnutzung:"overlay-regulation",freifl\u00e4chenzifferverlegungsgebiet:"overlay-regulation",freiflachenzifferverlegungsgebiet:"overlay-regulation",baumschutz:"overlay-regulation",sonderbauvorschriften:"overlay-regulation",lokalplan:"local-plan",kommuneplanramme:"municipal-plan-framework"},a6=[[/quartiererhalt/i,"neighbourhood-conservation-plan"],[/l\xe4rmempfindlich|laermempfindlich/i,"noise-sensitivity-plan"],[/gew\xe4sserschutz|grundwasserschutz/i,"water-protection-plan"],[/natur.*landschaft|landschaft.*schutz/i,"nature-landscape-plan"],[/gestaltungsplan/i,"design-plan"],[/bebauungsplan/i,"development-plan"],[/sondernutzung/i,"special-use-plan"],[/freihalt/i,"open-space-zone"],[/\xf6ffentliche.*bauten|zone.*\xf6ffentlich/i,"land-use-plan"],[/hochhaus/i,"overlay-regulation"],[/areal\xfcberbauung|arealuberbauung/i,"overlay-regulation"],[/erh\xf6hte.*ausnutzung|ausnutzung/i,"overlay-regulation"],[/erdgeschossnutzung/i,"overlay-regulation"],[/freifl\xe4chenzifferverlegung|freiflachenzifferverlegung/i,"overlay-regulation"],[/erhaltenswert/i,"overlay-regulation"],[/m[\u00e4a]ssig.*st[\u00f6o]rend|st[\u00f6o]rendes.*gewerbe/i,"overlay-regulation"],[/wohnzone/i,"land-use-plan"],[/kernzone|zentrumszone/i,"land-use-plan"],[/erholungszone|erholungs/i,"land-use-plan"],[/stra[s\xdf]en/i,"land-use-plan"],[/landwirtschaft/i,"land-use-plan"],[/\bwald\b/i,"land-use-plan"],[/\bgew[\u00e4a]sser\b/i,"land-use-plan"],[/nicht\s*zoniert/i,"unzoned"],[/baumschutz/i,"overlay-regulation"],[/sonderbauvorschrift/i,"overlay-regulation"],[/kommuneplan/i,"municipal-plan-framework"],[/lokalplan/i,"local-plan"],[/zonenplan|nutzungsplan|nutzungszone/i,"land-use-plan"],[/zone$|areal$/i,"land-use-plan"]];function Ld(n,e){const t=(3600*e-169028.66)/1e4,r=(3600*n-26782.5)/1e4,s=1200147.07+308807.95*t+3745.25*r**2+76.63*t**2-194.56*r**2*t+119.79*t**3;return[Math.round(2600072.37+211455.93*r-10938.51*r*t-.36*r*t**2-44.54*r**3),Math.round(s)]}function Fy(n,e){const t=(n-26e5)/1e6,r=(e-12e5)/1e6;return[100*(2.6779094+4.728982*t+.791484*t*r+.1306*t*r**2-.0436*t**3)/36,100*(16.9023892+3.238272*r-.270978*t**2-.002528*r**2-.0447*t**2*r-.014*r**3)/36]}function jy(n){return"string"==typeof n?n:n.typeName}function zy(n){return"string"==typeof n?void 0:n.cqlFilter}function wR(n,e){return Array.isArray(n)&&"number"==typeof n[0]?e(n[0],n[1]):n.map(t=>wR(t,e))}function g6(n,e,t){return t?`${n}:${e}[${t}]`:`${n}:${e}`}const _6=new Set(["building","cadastre","greenspace","paved","zone"]);function qy(n,e,t,r){const o=t.replace(/^ms:/,""),s=es(e),i=_6.has(e)?"priority":"raw";return{id:g6(n,t,r),sourceId:n,sourceLayerId:t,category:e,preferredColor:s.preferredColor,tier:i,label:o,description:`Z\xfcrich WFS layer ${o}`,labelKey:`gis.layer.${n}.${o}.label`,descriptionKey:`gis.layer.${n}.${o}.description`}}function vR(n,e){return`<fes:PropertyIsEqualTo><fes:ValueReference>${n}</fes:ValueReference><fes:Literal>${function T6(n){return n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}(e)}</fes:Literal></fes:PropertyIsEqualTo>`}class By{categoryMap;baseUrl;sourceId;outputFormat;nativeCrs;constructor(e){this.categoryMap=e.categoryMap,this.baseUrl=e.baseUrl??"https://maps.zh.ch/wfs/OGDZHWFS",this.sourceId=e.sourceId??"zurich-wfs",this.outputFormat=e.outputFormat??"application/json; subtype=geojson",this.nativeCrs=e.nativeCrs}listFeatureCategoryDescriptors(e){var t=this;return(0,d.A)(function*(){const r=yield t.listAvailableLayers(e);return[...new Map(r.map(o=>[o.category,es(o.category)])).values()]})()}listAvailableLayers(e){var t=this;return(0,d.A)(function*(){const r=Object.entries(t.categoryMap);return(yield Promise.allSettled(r.flatMap(([o,s])=>s.map(function(){var i=(0,d.A)(function*(a){const c=jy(a),l=zy(a),h=yield t._fetchFeatures(e,c,1,l);return{category:o,typeName:c,cqlFilter:l,hasResults:h.features.length>0}});return function(a){return i.apply(this,arguments)}}())))).filter(o=>"fulfilled"===o.status&&o.value.hasResults).map(o=>qy(t.sourceId,o.value.category,o.value.typeName,o.value.cqlFilter))})()}getFeaturesForLayer(e,t){var r=this;return(0,d.A)(function*(){const o=r._findLayerById(t);return o?r._fetchAndConvert(e,o.descriptor,o.cqlFilter):[]})()}_fetchAndConvert(e,t,r){var o=this;return(0,d.A)(function*(){const s=yield o._fetchFeatures(e,t.sourceLayerId,void 0,r),i=r?function I6(n){const e=n.match(/^(\w+)\s*=\s*'([^']+)'$/);if(e){const[,r,o]=e;return s=>String(s?.[r]??"")===o}const t=n.match(/^(\w+)\s+IN\s*\(([^)]+)\)$/i);if(t){const[,r,o]=t,s=new Set(o.split(",").map(i=>i.trim().replace(/^'|'$/g,"")));return i=>s.has(String(i?.[r]??""))}return()=>!0}(r):void 0;return(i?s.features.filter(a=>i(a.properties)):s.features).map((a,c)=>o.toGisFeature(a,t,c))})()}listFeatureCategories(e){var t=this;return(0,d.A)(function*(){const r=yield t.listAvailableLayers(e);return[...new Set(r.map(o=>o.category))]})()}getFeaturesOfCategory(e,t){var r=this;return(0,d.A)(function*(){const o=r.categoryMap[t]??[];return(yield Promise.allSettled(o.map(s=>{const i=jy(s),a=zy(s),c=qy(r.sourceId,t,i);return r._fetchAndConvert(e,c,a)}))).flatMap(s=>"fulfilled"===s.status?s.value:(console.warn(`[ZurichMapsAdapter] "${t}" layer failed (${r.sourceId}):`,s.reason),[]))})()}_findLayerById(e){const t=Object.entries(this.categoryMap);for(const[r,o]of t)for(const s of o){const i=jy(s),a=zy(s),c=qy(this.sourceId,r,i,a);if(c.id===e)return{descriptor:c,cqlFilter:a}}}_fetchFeatures(e,t,r,o){var s=this;return(0,d.A)(function*(){const i=new URLSearchParams({service:"WFS",version:"2.0.0",request:"GetFeature",typename:t,srsName:s.nativeCrs??"EPSG:4326",outputFormat:s.outputFormat});if(void 0!==r&&i.set("count",String(r)),void 0!==o)i.set("filter",function R6(n,e,t){const r=function S6(n,e){const[t,r,o,s]=n,[i,a,c]="EPSG:2056"===e?(()=>{const[l,h]=Ld(t,r),[p,y]=Ld(o,s);return["urn:ogc:def:crs:EPSG::2056",`${l} ${h}`,`${p} ${y}`]})():["urn:ogc:def:crs:EPSG::4326",`${r} ${t}`,`${s} ${o}`];return`<fes:BBOX><fes:ValueReference>geometry</fes:ValueReference><gml:Envelope srsName="${i}"><gml:lowerCorner>${a}</gml:lowerCorner><gml:upperCorner>${c}</gml:upperCorner></gml:Envelope></fes:BBOX>`}(n,e);return`<fes:Filter xmlns:fes="http://www.opengis.net/fes/2.0" xmlns:gml="http://www.opengis.net/gml/3.2">${t?`<fes:And>${function A6(n){const e=n.match(/^(\w+)\s*=\s*'([^']+)'$/);if(e){const[,r,o]=e;return vR(r,o)}const t=n.match(/^(\w+)\s+IN\s*\(([^)]+)\)$/i);if(t){const[,r,o]=t;return`<fes:Or>${o.split(",").map(s=>s.trim().replace(/^'|'$/g,"")).map(s=>vR(r,s)).join("")}</fes:Or>`}throw new Error(`Unsupported CQL filter pattern for FES translation: ${n}`)}(t)}${r}</fes:And>`:r}</fes:Filter>`}(e,s.nativeCrs,o));else{const[l,h,p,y]=e,P="EPSG:2056"===s.nativeCrs?(()=>{const[K,re]=Ld(l,h),[fe,ce]=Ld(p,y);return`${K},${re},${fe},${ce},urn:ogc:def:crs:EPSG::2056`})():`${h},${l},${y},${p},urn:ogc:def:crs:EPSG::4326`;i.set("bbox",P)}const a=`${s.baseUrl}?${i.toString()}`,c=yield fetch(a);if(!c.ok)throw new Error(`WFS request failed for ${t} (${s.sourceId}): ${c.status} ${c.statusText}`);return c.json()})()}toGisFeature(e,t,r){const o="EPSG:2056"===this.nativeCrs?function f6(n){return n&&{...n,coordinates:wR(n.coordinates,Fy)}}(e.geometry):e.geometry,[s,i]=function p6(n){if(!n)return[0,0];const e=n.coordinates;switch(n.type){case"Point":return e;case"MultiPoint":case"LineString":return e[0];case"MultiLineString":case"Polygon":return e[0][0];case"MultiPolygon":return e[0][0][0];default:return[0,0]}}(o),a=function m6(n,e){if(!n)return e;for(const t of["plannavn","bezeichnung","name","strassenname","objektname","title","label"])if("string"==typeof n[t]&&n[t])return n[t];return e}(e.properties,`${t.sourceLayerId}[${r}]`),c=e.bbox?"EPSG:2056"===this.nativeCrs?[...Fy(e.bbox[0],e.bbox[1]),...Fy(e.bbox[2],e.bbox[3])]:[e.bbox[0],e.bbox[1],e.bbox[2],e.bbox[3]]:void 0,l=t.tier,h="priority"===l?this._extractNormalisedProperties(e,t):void 0;return{id:e.id??`${t.sourceLayerId}/${r}`,preferredColor:t.preferredColor,sourceId:this.sourceId,sourceFeatureId:e.id??`${t.sourceLayerId}/${r}`,layerId:t.id,name:a,category:t.category,type:t.sourceLayerId.replace(/^ms:/,""),lat:i,lon:s,displayName:a,bbox:c,geometry:o??void 0,tier:l,properties:h,originalData:e.properties??{}}}_extractNormalisedProperties(e,t){return"building"===t.category?function y6(n,e){if(!n)return{featureType:"building"};const t=n.grundflaeche??n.gbf??n.gebaeudegrundrissflaeche??n.flaeche??void 0,r=n.vollgeschosse??n.geschossanzahl??n.anzahl_geschosse??void 0,o=n.gebaeudefunktion??n.gfkode??n.art??n.objektart??void 0,s=n.baujahr??n.bauperiode??void 0,i=String(n.egid??n.gwr_egid??n.egris_egid??"").trim()||void 0;return{featureType:"building",areaM2:"number"==typeof t?t:void 0,buildingUse:o?String(o):void 0,buildingUseGeneric:o6(o,e),floors:"number"==typeof r?r:void 0,yearBuilt:"number"==typeof s?s:void 0,registryId:i}}(e.properties,this.sourceId):"greenspace"===t.category?function v6(n){if(!n)return{featureType:"greenspace"};const e=n.flaeche??void 0,t=n.art??void 0;return{featureType:"greenspace",areaM2:"number"==typeof e?e:void 0,surfaceType:t?String(t):void 0}}(e.properties):"paved"===t.category?function b6(n){if(!n)return{featureType:"paved"};const e=n.flaeche??void 0,t=n.art??void 0;return{featureType:"paved",areaM2:"number"==typeof e?e:void 0,surfaceType:t?String(t):void 0}}(e.properties):"zone"===t.category?function E6(n){if(!n)return{featureType:"zone"};const e=n.plannavn??n.bezeichnung??n.typ_bezeichnung??n.art??void 0,t=n.planid??n.plannummer??void 0,r=n.artcode??n.typ_code??n.abkuerzung??t??void 0,s=function gR(n){if(n)return i6[mR(n)]}(n.rechtsstatus??n.status??void 0),a=function yR(n){if(!n)return;const e=mR(n);if(e in _R)return _R[e];for(const[t,r]of a6)if(t.test(n))return r;console.warn(`[cue-gis] Unknown zone plan type \u2014 add "${n}" to classifyZonePlanType: no ZonePlanType mapping found.`)}(n.typ_gde_bezeichnung??void 0),c=n.dagsordenpunkt_url??n.dokument_url??n.link??void 0,l=n.auflagedatum??void 0,h=n.festsetzungsdatum??void 0,p=n.genehmigungsdatum??void 0,y=n.inkraftsetzungsdatum??void 0,P=n.flaeche??n.flaeche_m2??void 0;return{featureType:"zone",zoneType:e?String(e):void 0,zoneCode:r?String(r):void 0,legalStatus:s,planType:a,planId:t?String(t):void 0,planDocumentLink:c?String(c):void 0,publicationDate:l??void 0,fixingDate:h??void 0,approvalDate:p??void 0,effectiveFrom:y??void 0,areaM2:"number"==typeof P?P:void 0}}(e.properties):function w6(n){if(!n)return{featureType:"plot"};const t=n.egris_egrid??n.egrid??void 0,r=n.nummer??void 0,o=n.nbident??void 0,s=r&&o?`${r}, ${o}`:r??void 0,i=n.flaechenmass??n.flaeche??void 0,a=n.art??n.nutzungsart??void 0;return{featureType:"plot",areaM2:"number"==typeof i?i:void 0,plotUse:a?String(a):void 0,plotUseGeneric:s6(a),plotId:s,registryId:t}}(e.properties)}}new By({categoryMap:{address:["ms:ogd-0406_arv_basis_avzh_hausnummer_pos_p","ms:ogd-0571_afv_gv_strat_strassennetz_l"],poi:["ms:ogd-0053_giszhpub_ogd_veloparkieranlagen_p","ms:ogd-0406_arv_basis_avzh_gebaeudeeingang_p"],railway:["ms:ogd-0529_afv_gv_seilbahn_skilift_l","ms:ogd-0529_afv_gv_seilbahn_skilift_p"],natural:["ms:ogd-0045_giszhpub_wb_fliessgewaesser_l","ms:ogd-0045_giszhpub_wb_stehgewaesser_f","ms:ogd-0111_giszhpub_wald_waldareal_f"],manmade:["ms:ogd-0248_giszhpub_en_gebaeude_volumen_ha_f",{typeName:"ms:ogd-0401_arv_basis_avzh_bodenbedeckung_f",cqlFilter:"art IN ('Bahngebiet', 'Strasse_Weg', 'Flugplatz', 'Bruecke')"}],building:[{typeName:"ms:ogd-0401_arv_basis_avzh_bodenbedeckung_f",cqlFilter:"art = 'Geb\xe4ude'"}],greenspace:[{typeName:"ms:ogd-0401_arv_basis_avzh_bodenbedeckung_f",cqlFilter:"art IN ('Gartenanlage', 'Parkanlage', 'Spielplatz', 'Sportanlage', 'Friedhof', 'Gehoelz', 'Feuchtgebiet')"}],paved:[{typeName:"ms:ogd-0401_arv_basis_avzh_bodenbedeckung_f",cqlFilter:"art IN ('befBoden', 'befestigte Fl\xe4che', 'Hof', 'Trottoir', 'Parkplatz')"}],cadastre:["ms:ogd-0404_arv_basis_avzh_liegenschaften_f","ms:ogd-0404_arv_basis_avzh_selbstrecht_f"],zone:["ms:ogd-0156_arv_basis_np_gn_zonenflaeche_f","ms:ogd-0155_arv_basis_np_ul_flaeche_f"]},nativeCrs:"EPSG:2056"}),new By({sourceId:"swiss-av-wfs",baseUrl:"https://wfs.geodienste.ch/av_0/deu",categoryMap:{cadastre:["ms:RESF","ms:DPRSF"]}}),new By({sourceId:"danish-plandata",baseUrl:"https://wfs.plandata.dk/geoserver/pdk/wfs",outputFormat:"application/json",categoryMap:{zone:["pdk:lokalplan_vedtaget","pdk:kommuneplanramme_vedtaget"]}});const kt={qcy:"https://dev.qaecy.com/ont#","qcy-e":"https://dev.qaecy.com/enum#","qcy-l":"https://dev.qaecy.com/logs#","qcy-t":"https://dev.qaecy.com/template#","qcy-f":"https://dev.qaecy.com/functions#",obc:"https://w3id.org/obc#",dicc:"https://w3id.org/digitalconstruction/0.5/Contexts#",dicv:"https://w3id.org/digitalconstruction/0.5/Variables#",dice:"https://w3id.org/digitalconstruction/0.5/Entities#",dicp:"https://w3id.org/digitalconstruction/0.5/Processes#",dica:"https://w3id.org/digitalconstruction/0.5/Agents#",dici:"https://w3id.org/digitalconstruction/0.5/Information#",dicbm:"https://w3id.org/digitalconstruction/0.5/Materials#",dicob:"https://w3id.org/digitalconstruction/0.5/Occupancy#",dicl:"https://w3id.org/digitalconstruction/0.5/Lifecycle#",dices:"https://w3id.org/digitalconstruction/0.5/Energy#",dicu:"https://w3id.org/digitalconstruction/0.5/Units#",diclvl:"https://w3id.org/digitalconstruction/0.5/Levels#",dicstg:"https://w3id.org/digitalconstruction/0.5/Stages#"},ts={madsrdf:"http://www.loc.gov/mads/rdf/v1#",bflc:"http://id.loc.gov/ontologies/bflc/",foaf:"http://xmlns.com/foaf/0.1/",rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",dbo:"http://dbpedia.org/ontology/",rdfs:"http://www.w3.org/2000/01/rdf-schema#",yago:"http://yago-knowledge.org/resource/",dc:"http://purl.org/dc/elements/1.1/",dbp:"http://dbpedia.org/property/",owl:"http://www.w3.org/2002/07/owl#",ex:"http://example.org/",gr:"http://purl.org/goodrelations/v1#",skos:"http://www.w3.org/2004/02/skos/core#",spacerel:"http://data.ordnancesurvey.co.uk/ontology/spatialrelations/",geo:"http://www.opengis.net/ont/geosparql#",xsd:"http://www.w3.org/2001/XMLSchema#",dcat:"http://www.w3.org/ns/dcat#",org:"http://www.w3.org/ns/org#",dct:"http://purl.org/dc/terms/",qb:"http://purl.org/linked-data/cube#",dcterms:"http://purl.org/dc/terms/",prov:"http://www.w3.org/ns/prov#",sioc:"http://rdfs.org/sioc/ns#",xtypes:"http://purl.org/xtypes/",dbpedia:"http://dbpedia.org/resource/",schema:"http://schema.org/",ont:"http://purl.org/net/ns/ontology-annot#",void:"http://rdfs.org/ns/void#",onto:"http://www.ontotext.com/",sio:"http://semanticscience.org/resource/",bf:"http://id.loc.gov/ontologies/bibframe/",search:"http://sindice.com/vocab/search#",obo:"http://purl.obolibrary.org/obo/",sd:"http://www.w3.org/ns/sparql-service-description#",dcterm:"http://purl.org/dc/terms/",frbr:"http://purl.org/vocab/frbr/core#",stat:"http://www.w3.org/ns/posix/stat#",vcard:"http://www.w3.org/2006/vcard/ns#",commerce:"http://search.yahoo.com/searchmonkey/commerce/",bibo:"http://purl.org/ontology/bibo/",rss:"http://purl.org/rss/1.0/",dbr:"http://dbpedia.org/resource/",gldp:"http://www.w3.org/ns/people#",pto:"http://www.productontology.org/id/",geonames:"http://www.geonames.org/ontology#",fb:"http://rdf.freebase.com/ns/",event:"http://purl.org/NET/c4dm/event.owl#",oo:"http://purl.org/openorg/",wd:"http://www.wikidata.org/entity/",dcmit:"http://purl.org/dc/dcmitype/",content:"http://purl.org/rss/1.0/modules/content/",cc:"http://creativecommons.org/ns#",gen:"http://purl.org/gen/0.1#",doap:"http://usefulinc.com/ns/doap#",http:"http://www.w3.org/2011/http#",dbpprop:"http://dbpedia.org/property/",vann:"http://purl.org/vocab/vann/",rr:"http://www.w3.org/ns/r2rml#",swrc:"http://swrc.ontoware.org/ontology#",drugbank:"http://www4.wiwiss.fu-berlin.de/drugbank/resource/drugbank/",md:"http://www.w3.org/ns/md#",sc:"http://purl.org/science/owl/sciencecommons/",nie:"http://www.semanticdesktop.org/ontologies/2007/01/19/nie#",prog:"http://purl.org/prog/",wot:"http://xmlns.com/wot/0.1/",ma:"http://www.w3.org/ns/ma-ont#",akt:"http://www.aktors.org/ontology/portal#",fn:"http://www.w3.org/2005/xpath-functions#",cv:"http://rdfs.org/resume-rdf/",aiiso:"http://purl.org/vocab/aiiso/schema#",tl:"http://purl.org/NET/c4dm/timeline.owl#",swc:"http://data.semanticweb.org/ns/swc/ontology#",ov:"http://open.vocab.org/terms/",as:"https://www.w3.org/ns/activitystreams#",crm:"http://www.cidoc-crm.org/cidoc-crm/",ical:"http://www.w3.org/2002/12/cal/ical#",daia:"http://purl.org/ontology/daia/",vs:"http://www.w3.org/2003/06/sw-vocab-status/ns#",xhtml:"http://www.w3.org/1999/xhtml#",earl:"http://www.w3.org/ns/earl#",rel:"http://purl.org/vocab/relationship/",bio:"http://purl.org/vocab/bio/0.1/",rdfg:"http://www.w3.org/2004/03/trix/rdfg-1/",marcrel:"http://id.loc.gov/vocabulary/relators/",mo:"http://purl.org/ontology/mo/",leaks:"https://cuzin.com/",dv:"http://rdf.data-vocabulary.org/#",cs:"http://purl.org/vocab/changeset/schema#",ad:"http://schemas.talis.com/2005/address/schema#",xhv:"http://www.w3.org/1999/xhtml/vocab#",co:"http://purl.org/ontology/co/core#",dc11:"http://purl.org/dc/elements/1.1/",prop:"http://dbpedia.org/property/",bill:"http://www.rdfabout.com/rdf/schema/usbill/",og:"http://opengraphprotocol.org/schema/",afn:"http://jena.apache.org/ARQ/function#",factbook:"http://wifo5-04.informatik.uni-mannheim.de/factbook/ns#",dbowl:"http://ontology.cybershare.utep.edu/dbowl/relational-to-ontology-mapping-primitive.owl#",air:"http://dig.csail.mit.edu/TAMI/2007/amord/air#",test2:"http://this.invalid/test2#",musim:"http://purl.org/ontology/similarity/",unit:"http://qudt.org/vocab/unit/",log:"http://www.w3.org/2000/10/swap/log#",book:"http://purl.org/NET/book/vocab#",xs:"http://www.w3.org/2001/XMLSchema#",mu:"http://mu.semte.ch/vocabularies/core/",ir:"http://www.ontologydesignpatterns.org/cp/owl/informationrealization.owl#",media:"http://search.yahoo.com/searchmonkey/media/",d2rq:"http://www.wiwiss.fu-berlin.de/suhl/bizer/D2RQ/0.1#",dcq:"http://purl.org/dc/qualifiers/1.0/",xfn:"http://gmpg.org/xfn/11#",biblio:"http://purl.org/net/biblio#",reco:"http://purl.org/reco#",xf:"http://www.w3.org/2002/xforms/",tag:"http://www.holygoat.co.uk/owl/redwood/0.1/tags/",cld:"http://purl.org/cld/terms/",cal:"http://www.w3.org/2002/12/cal/ical#",ome:"http://purl.org/ontomedia/core/expression#",ctag:"http://commontag.org/ns#",botany:"http://purl.org/NET/biol/botany#",dir:"http://schemas.talis.com/2005/dir/schema#",sism:"http://purl.oclc.org/NET/sism/0.1/",admin:"http://webns.net/mvcb/",days:"http://ontologi.es/days#",xmp:"http://ns.adobe.com/xap/1.0/",rif:"http://www.w3.org/2007/rif#",dcam:"http://purl.org/dc/dcam/",tzont:"http://www.w3.org/2006/timezone#",af:"http://purl.org/ontology/af/",osag:"http://www.ordnancesurvey.co.uk/ontology/AdministrativeGeography/v2.0/AdministrativeGeography.rdf#",rev:"http://purl.org/stuff/rev#",qudt:"http://qudt.org/schema/qudt/",sr:"http://www.openrdf.org/config/repository/sail#",time:"http://www.w3.org/2006/time#",pc:"http://purl.org/procurement/public-contracts#",myspace:"http://purl.org/ontology/myspace#",math:"http://www.w3.org/2000/10/swap/math#",cmp:"http://www.ontologydesignpatterns.org/cp/owl/componency.owl#",memo:"http://ontologies.smile.deri.ie/2009/02/27/memo#",ok:"http://okkam.org/terms#",lomvoc:"http://ltsc.ieee.org/rdf/lomv1p0/vocabulary#",giving:"http://ontologi.es/giving#",jdbc:"http://d2rq.org/terms/jdbc/",swanq:"http://purl.org/swan/1.2/qualifiers/",dcn:"http://www.w3.org/2007/uwa/context/deliverycontext.owl#",sdmx:"http://purl.org/linked-data/sdmx#",cfp:"http://sw.deri.org/2005/08/conf/cfp.owl#",swande:"http://purl.org/swan/1.2/discourse-elements/",omn:"http://open-multinet.info/ontology/omn#",owlim:"http://www.ontotext.com/trree/owlim#",cyc:"http://sw.opencyc.org/concept/",gn:"http://www.geonames.org/ontology#",con:"http://www.w3.org/2000/10/swap/pim/contact#",lyou:"http://purl.org/linkingyou/",skosxl:"http://www.w3.org/2008/05/skos-xl#",oa:"http://www.w3.org/ns/oa#",openlinks:"http://www.openlinksw.com/schemas/virtrdf#",cdm:"http://publications.europa.eu/ontology/cdm#",sdmxdim:"http://purl.org/linked-data/sdmx/2009/dimension#",adms:"http://www.w3.org/ns/adms#",type:"https://webiomed.ai/blog/obzor-rossiiskikh-sistem-podderzhki-priniatiia-vrachebnykh-reshenii/",om:"http://opendata.caceres.es/def/ontomunicipio#",nif:"http://persistence.uni-leipzig.org/nlp2rdf/ontologies/nif-core#",ontology:"http://dbpedia.org/ontology/",db:"http://dbpedia.org/",photoshop:"http://ns.adobe.com/photoshop/1.0/",wfs:"http://schemas.opengis.net/wfs/",lemon:"http://lemon-model.net/lemon#",exif:"http://www.w3.org/2003/12/exif/ns#",gvp:"http://vocab.getty.edu/ontology#",ac:"http://umbel.org/umbel/ac/",isbd:"http://iflastandards.info/ns/isbd/elements/",sdmxa:"http://purl.org/linked-data/sdmx/2009/attribute#",xsi:"http://www.w3.org/2001/XMLSchema-instance#",aat:"http://vocab.getty.edu/aat/",fabio:"http://purl.org/spar/fabio/",sh:"http://www.w3.org/ns/shacl#",cert:"http://www.w3.org/ns/auth/cert#",wdt:"http://www.wikidata.org/prop/direct/",dul:"http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#",prism:"http://prismstandard.org/namespaces/basic/2.0/",swrl:"http://www.w3.org/2003/11/swrl#",test:"https://test4.example.com/",cnt:"http://www.w3.org/2011/content#",eat:"http://www.eat.rl.ac.uk/#",tgn:"http://vocab.getty.edu/tgn/",ulan:"http://vocab.getty.edu/ulan/",edm:"http://www.europeana.eu/schemas/edm/",sf:"http://www.opengis.net/ont/sf#",ore:"http://www.openarchives.org/ore/terms/",swrcfe:"http://www.morelab.deusto.es/ontologies/swrcfe#",gtfs:"http://vocab.gtfs.org/terms#",voaf:"http://purl.org/vocommons/voaf#",uniprot:"http://purl.uniprot.org/uniprot/",core:"http://vivoweb.org/ontology/core#",swrlb:"http://www.w3.org/2003/11/swrlb#",eg:"http://www.example.org/",nfo:"http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#",room:"http://vocab.deri.ie/rooms#",ssn:"http://www.w3.org/ns/ssn/",dbc:"http://dbpedia.org/resource/Category:",go:"http://purl.obolibrary.org/obo/GO_",scovo:"http://purl.org/NET/scovo#",lv:"http://purl.org/lobid/lv#",ceo:"https://linkeddata.cultureelerfgoed.nl/def/ceo#",music:"http://musicontology.com/",dbprop:"http://dbpedia.org/property/",movie:"http://data.linkedmdb.org/resource/movie/",fise:"http://fise.iks-project.eu/ontology/",xml:"http://www.w3.org/XML/1998/namespace/",bif:"http://www.openlinksw.com/schemas/bif#",ldp:"http://www.w3.org/ns/ldp#",sioct:"http://rdfs.org/sioc/types#",wikidata:"http://www.wikidata.org/entity/",siocserv:"http://rdfs.org/sioc/services#",itsrdf:"http://www.w3.org/2005/11/its/rdf#",lexinfo:"http://www.lexinfo.net/ontology/3.0/lexinfo#",ro:"http://purl.org/wf4ever/ro#",geoes:"http://geo.linkeddata.es/ontology/",ping:"https://namso-gen.com/",am:"http://vocab.deri.ie/am#",gndo:"http://d-nb.info/standards/elementset/gnd#",coref:"http://www.rkbexplorer.com/ontologies/coref#",pat:"http://purl.org/hpi/patchr#",ptr:"http://www.w3.org/2009/pointers#",cco:"http://www.ontologyrepository.com/CommonCoreOntologies/",nmo:"http://www.semanticdesktop.org/ontologies/2007/03/22/nmo#",mods:"http://www.loc.gov/mods/v3#",loc:"http://purl.org/ontomedia/core/space#",dblp:"http://dblp.uni-trier.de/rdf/schema-2015-01-26#",nao:"http://www.semanticdesktop.org/ontologies/2007/08/15/nao#",acc:"http://purl.org/NET/acc#",nsogi:"http://prefix.cc/nsogi:",gnd:"http://d-nb.info/gnd/",pmlj:"http://inference-web.org/2.0/pml-justification.owl#",dce:"http://purl.org/dc/elements/1.1/",chebi:"http://purl.obolibrary.org/obo/CHEBI_",wp:"http://vocabularies.wikipathways.org/",product:"http://purl.org/commerce/product#",whois:"http://www.kanzaki.com/ns/whois#",bd:"http://www.bigdata.com/rdf#",imm:"http://schemas.microsoft.com/imm/",sparql:"http://www.w3.org/ns/sparql#",gold:"http://purl.org/linguistics/gold/",doc:"http://www.w3.org/2000/10/swap/pim/doc#",leak:"http://maco.com/",up:"http://purl.uniprot.org/core/",cerif:"http://spi-fm.uca.es/neologism/cerif#",rec:"http://purl.org/ontology/rec/core#",gd:"http://rdf.data-vocabulary.org/#",sdo:"https://schema.org/",list:"http://www.w3.org/2000/10/swap/list#",georss:"http://www.georss.org/georss/",sec:"https://w3id.org/security#",java:"http://www.w3.org/2007/uwa/context/java.owl#",meta:"https://krr.triply.cc/krr/sameas-meta/def/",rsa:"http://www.w3.org/ns/auth/rsa#",space:"http://purl.org/net/schemas/space/",ti:"http://www.ontologydesignpatterns.org/cp/owl/timeinterval.owl#",example:"http://www.example.org/rdf#",opm:"https://w3id.org/opm#",xlink:"https://es.scribd.com/doc/79794476/05-Ejercicios-Resueltos-Caja-Negra-y-Recapitulacion/",lgd:"http://linkedgeodata.org/triplify/",cube:"https://cube.link/",akts:"http://www.aktors.org/ontology/support#",geosparql:"http://www.opengis.net/ont/geosparql#",ms:"http://purl.org/obo/owl/MS#",wiki:"http://en.wikipedia.org/wiki/",penn:"http://purl.org/olia/penn.owl#",iot:"http://iotschema.org/",bp:"http://www.biopax.org/release/biopax-level3.owl#",mf:"http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#",acl:"http://www.w3.org/ns/auth/acl#",geof:"http://www.opengis.net/def/function/geosparql/",hg:"http://rdf.histograph.io/",pext:"http://www.ontotext.com/proton/protonext#",video:"http://purl.org/ontology/video#",rdfsharp:"https://rdfsharp.codeplex.com/",cro:"http://rhizomik.net/ontologies/copyrightonto.owl#",cito:"http://purl.org/spar/cito/",sim:"http://www.w3id.org/simulation/ontology/",vivo:"http://vivoweb.org/ontology/core#",st:"http://ns.inria.fr/sparql-template/",httph:"http://www.w3.org/2007/ont/httph#",kb:"http://deductions.sf.net/ontology/knowledge_base.owl#",api:"http://purl.org/linked-data/api/vocab#",dbpediaowl:"http://dbpedia.org/owl/",sp:"http://spinrdf.org/sp#",nt:"http://ns.inria.fr/nicetag/2010/09/09/voc#",wn:"http://xmlns.com/wordnet/1.6/",nco:"http://www.semanticdesktop.org/ontologies/2007/03/22/nco#",acm:"http://www.rkbexplorer.com/ontologies/acm#",xl:"http://langegger.at/xlwrap/vocab#",pim:"http://www.w3.org/ns/pim/space#",exterms:"http://www.example.org/terms/",web:"http://www.w3.org/2007/uwa/context/web.owl#",wgs:"http://www.w3.org/2003/01/geo/wgs84_pos#",dcatapit:"http://dati.gov.it/onto/dcatapit#",atom:"http://www.w3.org/2005/Atom/",olia:"http://purl.org/olia/olia.owl#",bag:"https://bag2.basisregistraties.overheid.nl/bag/def/",cgov:"http://reference.data.gov.uk/def/central-government/",overheid:"http://standaarden.overheid.nl/owms/",sider:"http://www4.wiwiss.fu-berlin.de/sider/resource/sider/",po:"http://purl.org/ontology/po/",lode:"http://linkedevents.org/ontology/",postcode:"http://data.ordnancesurvey.co.uk/id/postcodeunit/",ocd:"http://dati.camera.it/ocd/",sirext:"http://t.me/sirextt/247:",urn:"http://fliqz.com/",pgterms:"http://www.gutenberg.org/2009/pgterms/",dbnary:"http://kaiko.getalp.org/dbnary#",abc:"http://www.metadata.net/harmony/ABCSchemaV5Commented.rdf#",dbkwik:"http://dbkwik.webdatacommons.org/",cidoc:"http://www.cidoc-crm.org/cidoc-crm/",dco:"http://info.deepcarbon.net/schema#",seas:"https://w3id.org/seas/",pav:"http://purl.org/pav/",wdrs:"http://www.w3.org/2007/05/powder-s#",formats:"http://www.w3.org/ns/formats/",service:"http://purl.org/ontology/service#",ean:"http://openean.kaufkauf.net/id/",eu:"http://eulersharp.sourceforge.net/2003/03swap/log-rules#",zoology:"http://purl.org/NET/biol/zoology#",cpa:"http://www.ontologydesignpatterns.org/schemas/cpannotationschema.owl#",ass:"http://uptheasset.org/ontology#",purl:"http://www.purl.org/",lime:"http://www.w3.org/ns/lemon/lime#",admingeo:"http://data.ordnancesurvey.co.uk/ontology/admingeo/",wn20schema:"http://www.w3.org/2006/03/wn/wn20/schema/",smf:"http://topbraid.org/sparqlmotionfunctions#",ecs:"http://rdf.ecs.soton.ac.uk/ontology/ecs#",prv:"http://purl.org/net/provenance/ns#",gsp:"http://www.opengis.net/ont/geosparql#",daml:"http://www.daml.org/2001/03/daml+oil#",dcm:"http://purl.org/dc/dcmitype/",rdfdf:"http://www.openlinksw.com/virtrdf-data-formats#",pr:"http://purl.org/ontology/prv/core#",ontolex:"http://www.w3.org/ns/lemon/ontolex#",role:"https://w3id.org/role/",resource:"http://dbpedia.org/resource/",swid:"http://semanticweb.org/id/",edam:"http://edamontology.org/",ya:"http://blogs.yandex.ru/schema/foaf/",irw:"http://www.ontologydesignpatterns.org/ont/web/irw.owl#",name:"http://example.org/name#",greg:"http://kasei.us/about/foaf.xrdf#",hydra:"http://www.w3.org/ns/hydra/core#",spin:"http://spinrdf.org/spin#",ignf:"http://data.ign.fr/def/ignf#",scot:"http://rdfs.org/scot/ns#",ndl:"http://schemas.ogf.org/nml/2013/05/base#",wo:"http://purl.org/ontology/wo/",xkos:"http://rdf-vocabulary.ddialliance.org/xkos#",omt:"http://purl.org/ontomedia/ext/common/trait#",pmt:"http://tipsy.googlecode.com/svn/trunk/vocab/pmt#",user:"http://schemas.talis.com/2005/user/schema#",umbelrc:"http://umbel.org/umbel/rc/",wikipedia:"https://en.wikipedia.org/wiki/",myspo:"http://purl.org/ontology/myspace#",agg:"http://purl.org/twc/health/vocab/aggregate/",organism:"http://eulersharp.sourceforge.net/2003/03swap/organism#",site:"http://ns.ontowiki.net/SysOnt/Site/",res:"http://dbpedia.org/resource/",sdl:"http://purl.org/vocab/riro/sdl#",euvoc:"http://publications.europa.eu/ontology/euvoc#",bmo:"http://collection.britishmuseum.org/id/ontology/",faldo:"http://biohackathon.org/resource/faldo#",blt:"http://www.bl.uk/schemas/bibliographic/blterms#",sesame:"http://www.openrdf.org/schema/sesame#",resist:"http://www.rkbexplorer.com/ontologies/resist#",iao:"http://purl.obolibrary.org/obo/IAO_",inno:"http://purl.org/innovation/ns#",premis:"http://www.loc.gov/premis/rdf/v3/",bing:"http://bing.com/schema/media/",label:"http://purl.org/net/vocab/2004/03/label#",prj:"http://purl.org/stuff/project/",npg:"http://ns.nature.com/terms/",fresnel:"http://www.w3.org/2004/09/fresnel#",omb:"http://purl.org/ontomedia/ext/common/being#",rov:"http://www.w3.org/ns/regorg#",saref:"https://saref.etsi.org/core/",biol:"http://purl.org/NET/biol/ns#",iso:"http://purl.org/iso25964/skos-thes#",bibframe:"http://id.loc.gov/ontologies/bibframe/",won:"https://w3id.org/won/core#",link:"http://www.w3.org/2007/ont/link#",audio:"http://purl.org/media/audio#",tmo:"http://www.semanticdesktop.org/ontologies/2008/05/20/tmo#",sit:"http://www.ontologydesignpatterns.org/cp/owl/situation.owl#",fed:"http://www.openrdf.org/config/sail/federation#",swp:"http://www.w3.org/2004/03/trix/swp-2/",biocore:"http://bio2rdf.org/core#",mm:"http://linkedmultimedia.org/sparql-mm/ns/2.0.0/function#",umbel:"http://umbel.org/umbel#",phil:"http://philosurfical.open.ac.uk/ontology/philosurfical.owl#",uco:"http://purl.org/uco/ns#",wgs84:"http://www.w3.org/2003/01/geo/wgs84_pos#",food:"http://purl.org/foodontology#",cordis:"http://cordis.europa.eu/projects/",rdau:"http://rdaregistry.info/Elements/u/",gist:"http://ontologies.semanticarts.com/gist#",ero:"http://purl.obolibrary.org/obo/",wv:"http://vocab.org/waiver/terms/",ref:"http://purl.org/vocab/relationship/",sml:"https://w3id.org/sml/def#",oad:"http://lod.xdams.org/reload/oad/",spl:"http://spinrdf.org/spl#",lx:"http://purl.org/NET/lx#",es:"http://eulersharp.sourceforge.net/2003/03swap/log-rules#",conv:"http://purl.org/twc/vocab/conversion/",ps:"https://w3id.org/payswarm#",acco:"http://purl.org/acco/ns#",code:"http://telegraphis.net/ontology/measurement/code#",sco:"http://purl.org/ontology/sco#",rnews:"http://iptc.org/std/rNews/2011-10-07#",ub:"http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#",protege:"http://protege.stanford.edu/system#",lgdo:"http://linkedgeodata.org/ontology/",oc:"http://opencoinage.org/rdf/",doac:"http://ramonantonio.net/doac/0.1/#",taxo:"http://purl.org/rss/1.0/modules/taxonomy/",rail:"http://ontologi.es/rail/vocab#",ludo:"http://ns.inria.fr/ludo/v1#",cpm:"http://catalogus-professorum.org/cpm/2/",opensearch:"http://a9.com/-/spec/opensearch/1.1/",so:"http://schema.org/",efo:"http://www.ebi.ac.uk/efo/",linkedmdb:"http://data.linkedmdb.org/",airport:"http://www.daml.org/2001/10/html/airport-ont#",bio2rdf:"http://bio2rdf.org/",spc:"http://purl.org/ontomedia/core/space#",meteo:"http://purl.org/ns/meteo#",bne:"http://datos.bne.es/resource/",awol:"http://bblfish.net/work/atom-owl/2006-06-06/#",dctype:"http://purl.org/dc/dcmitype/",omp:"http://purl.org/ontomedia/ext/common/profession#",granatum:"http://chem.deri.ie/granatum/",dwc:"http://rs.tdwg.org/dwc/terms/",lom:"http://ltsc.ieee.org/rdf/lomv1p0/lom#",disco:"http://rdf-vocabulary.ddialliance.org/discovery#",act:"http://www.w3.org/2007/rif-builtin-action#",taxon:"http://purl.org/biodiversity/taxon/",net:"http://www.w3.org/2007/uwa/context/network.owl#",gpt:"http://purl.org/vocab/riro/gpt#",mit:"http://purl.org/ontology/mo/mit#",isothes:"http://purl.org/iso25964/skos-thes#",lu:"http://www.ontologydesignpatterns.org/ont/framenet/abox/lu/",ao:"http://purl.org/ontology/ao/core#",sport:"http://purl.org/ontology/sport/",hp:"http://purl.org/voc/hp/",gso:"http://www.w3.org/2006/gen/ont#",xhe:"http://buzzword.org.uk/rdf/xhtml-elements#",frir:"http://purl.org/twc/ontology/frir.owl#",powder:"http://www.w3.org/2007/05/powder#",omm:"http://purl.org/ontomedia/core/media#",bibtex:"http://purl.org/net/nknouf/ns/bibtex#",wordnet:"http://wordnet-rdf.princeton.edu/ontology#",fec:"http://www.rdfabout.com/rdf/schema/usfec/",asn:"http://purl.org/ASN/schema/core/",tdb:"http://jena.hpl.hp.com/2008/tdb#",atomix:"http://buzzword.org.uk/rdf/atomix#",pbo:"http://purl.org/ontology/pbo/core#",orges:"http://datos.gob.es/def/sector-publico/organizacion#",rep:"http://www.openrdf.org/config/repository#",obj:"http://www.openrdf.org/rdf/2009/object#",library:"http://purl.org/library/",compass:"http://purl.org/net/compass#",lfm:"http://purl.org/ontology/last-fm/",crypto:"http://www.w3.org/2000/10/swap/crypto#",rdrel:"http://rdvocab.info/RDARelationshipsWEMI/",doclist:"http://www.junkwork.net/xml/DocumentList#",rei:"http://www.w3.org/2004/06/rei#",os:"http://www.w3.org/2000/10/swap/os#",vra:"http://purl.org/vra/",cheminf:"http://www.semanticweb.org/ontologies/cheminf.owl#",fbgeo:"http://rdf.freebase.com/ns/location/geocode/",mime:"https://www.iana.org/assignments/media-types/",muto:"http://purl.org/muto/core#",lang:"http://ontologi.es/lang/core#",pom:"http://maven.apache.org/POM/4.0.0#",txn:"http://lod.taxonconcept.org/ontology/txn.owl#",oauth:"http://demiblog.org/vocab/oauth#",affy:"http://www.affymetrix.com/community/publications/affymetrix/tmsplice#",ire:"http://www.ontologydesignpatterns.org/cpont/ire.owl#",ngeo:"http://geovocab.org/geometry#",ddc:"http://purl.org/NET/decimalised#",money:"http://purl.org/net/rdf-money/",conversion:"http://purl.org/twc/vocab/conversion/",game:"http://data.totl.net/game/",eco:"http://www.ebusiness-unibw.org/ontologies/eclass/5.1.4/#",custom:"http://www.openrdf.org/config/sail/custom#",vocab:"http://rdf.ontology2.com/vocab#",swh:"http://plugin.org.uk/swh-plugins/",soft:"http://www.w3.org/2007/uwa/context/software.owl#",contact:"http://www.w3.org/2000/10/swap/pim/contact#",xen:"http://buzzword.org.uk/rdf/xen#",hard:"http://www.w3.org/2007/uwa/context/hardware.owl#",lfn:"http://www.dotnetrdf.org/leviathan#",nrl:"http://www.semanticdesktop.org/ontologies/2007/08/15/nrl#",politico:"http://www.rdfabout.com/rdf/schema/politico/",dailymed:"http://www4.wiwiss.fu-berlin.de/dailymed/resource/dailymed/",vsr:"http://purl.org/twc/vocab/vsr#",string:"http://www.w3.org/2000/10/swap/string#",bib:"http://zeitkunst.org/bibtex/0.1/bibtex.owl#",bfo:"http://purl.obolibrary.org/obo/",sede:"http://eventography.org/sede/0.1/",omc:"http://purl.org/ontomedia/ext/common/bestiary#",climb:"http://climb.dataincubator.org/vocabs/climb/",usgov:"http://www.rdfabout.com/rdf/schema/usgovt/",ct:"http://data.linkedct.org/resource/linkedct/",interval:"http://reference.data.gov.uk/def/intervals/",bbc:"http://www.bbc.co.uk/ontologies/news/",soc:"http://purl.org/net/hdlipcores/ontology/soc#",locn:"http://www.w3.org/ns/locn#",stanford:"http://purl.org/olia/stanford.owl#",cycann:"http://sw.cyc.com/CycAnnotations_v1#",aos:"http://rdf.muninn-project.org/ontologies/appearances#",apivc:"http://purl.org/linked-data/api/vocab#",aifb:"http://www.aifb.kit.edu/id/",person:"http://www.w3.org/ns/person#",ui:"http://www.w3.org/ns/ui#",scv:"http://purl.org/NET/scovo#",rdac:"http://rdaregistry.info/Elements/c/",deo:"http://purl.org/spar/deo/",isq:"http://purl.org/ontology/is/quality/",coo:"http://purl.org/coo/ns#",bsb:"http://opacplus.bsb-muenchen.de/title/",coin:"http://purl.org/court/def/2009/coin#",eli:"http://data.europa.eu/eli/ontology#",sv:"http://schemas.talis.com/2005/service/schema#",biopax:"http://www.biopax.org/release/biopax-level3.owl#",xro:"http://purl.org/xro/ns#",dnr:"http://www.dotnetrdf.org/configuration#",pro:"http://purl.org/hpi/patchr#",sosa:"http://www.w3.org/ns/sosa/",vso:"http://purl.org/vso/ns#",mysql:"http://web-semantics.org/ns/mysql/",courseware:"http://courseware.rkbexplorer.com/ontologies/courseware#",lvont:"http://lexvo.org/ontology#",is:"http://purl.org/ontology/is/core#",xds:"http://www.w3.org/2001/XMLSchema#",zem:"http://s.zemanta.com/ns#",rs:"http://rightsstatements.org/vocab/",arch:"http://purl.org/archival/vocab/arch#",cex:"http://purl.org/weso/ontology/computex#",com:"http://purl.org/commerce#",arg:"http://rdfs.org/sioc/argument#",push:"http://www.w3.org/2007/uwa/context/push.owl#",ic:"http://imi.go.jp/ns/core/rdf#",chord:"http://purl.org/ontology/chord/",pdo:"http://ontologies.smile.deri.ie/pdo#",yoda:"http://purl.org/NET/yoda#",dt:"http://w3id.org/dt#",isi:"http://purl.org/ontology/is/inst/",gob:"http://purl.org/ontology/last-fm/",gml:"http://www.opengis.net/ont/gml#",worldbank:"http://worldbank.270a.info/dataset/",states:"http://www.w3.org/2005/07/aaa#",prot:"http://www.proteinontology.info/po.owl#",moat:"http://moat-project.org/ns#",uri:"http://purl.org/NET/uri#",dbpp:"http://dbpedia.org/property/",dso:"http://purl.org/ontology/dso#",muo:"http://purl.oclc.org/NET/muo/muo#",ttl:"http://www.w3.org/2008/turtle#",cpv:"http://purl.org/weso/cpv/",city:"http://datos.localidata.com/def/City#",pmlr:"http://inference-web.org/2.0/pml-relation.owl#",dady:"http://purl.org/NET/dady#",ist:"http://purl.org/ontology/is/types/",conserv:"http://conserv.deri.ie/ontology#",pos:"http://www.w3.org/2003/01/geo/wgs84_pos#",wdr:"http://www.w3.org/2007/05/powder#",freebase:"http://rdf.freebase.com/ns/",cogs:"http://vocab.deri.ie/cogs#",swanco:"http://purl.org/swan/1.2/swan-commons/",resex:"http://resex.rkbexplorer.com/ontologies/resex#",fea:"http://vocab.data.gov/def/fea#",odrl:"http://www.w3.org/ns/odrl/2/",lex:"http://purl.org/lex#",article:"http://ogp.me/ns/article#",dcmitype:"http://purl.org/dc/dcmitype/",profiling:"http://ontologi.es/profiling#",payment:"http://reference.data.gov.uk/def/payment#",xforms:"http://www.w3.org/2002/xforms/",nexif:"http://www.semanticdesktop.org/ontologies/2007/05/10/nexif#",viaf:"http://viaf.org/viaf/",tio:"http://purl.org/tio/ns#",nsa:"http://multimedialab.elis.ugent.be/organon/ontologies/ninsuna#",hlisting:"http://sindice.com/hlisting/0.1/",voag:"http://voag.linkedmodel.org/schema/voag#",posh:"http://poshrdf.org/ns/posh/",address:"http://schemas.talis.com/2005/address/schema#",lotico:"http://www.lotico.com/resource/",swivt:"http://semantic-mediawiki.org/swivt/1.0#",opo:"http://online-presence.net/opo/ns#",toby:"http://tobyinkster.co.uk/#",evset:"http://dsnotify.org/vocab/eventset/0.1/",psys:"http://proton.semanticweb.org/protonsys#",rlog:"http://persistence.uni-leipzig.org/nlp2rdf/ontologies/rlog#",cos:"http://www.inria.fr/acacia/corese#",vote:"http://www.rdfabout.com/rdf/schema/vote/",meetup:"http://www.lotico.com/meetup/",rooms:"http://vocab.deri.ie/rooms#",pay:"http://reference.data.gov.uk/def/payment#",puc:"http://purl.org/NET/puc#",anca:"http://users.utcluj.ro/~raluca/rdf_ontologies_ralu/ralu_modified_ontology_pizzas2_0#",lifecycle:"http://purl.org/vocab/lifecycle/schema#",bsbm:"http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/",wlp:"http://weblab-project.org/core/model/property/processing/",datafaqs:"http://purl.org/twc/vocab/datafaqs#",sail:"http://www.openrdf.org/config/sail#",teach:"http://linkedscience.org/teach/ns#",common:"http://www.w3.org/2007/uwa/context/common.owl#",sysont:"http://ns.ontowiki.net/SysOnt/",ldap:"http://purl.org/net/ldap/",rda:"http://www.rdaregistry.info/",wi:"http://purl.org/ontology/wi/core#",lingvoj:"http://www.lingvoj.org/ontology#",p3p:"http://www.w3.org/2002/01/p3prdfv1#",tags:"http://www.holygoat.co.uk/owl/redwood/0.1/tags/",lp:"http://launchpad.net/rdf/launchpad#",rdfa:"http://www.w3.org/ns/rdfa#",dcr:"http://www.isocat.org/ns/dcr.rdf#",swanqs:"http://purl.org/swan/1.2/qualifiers/",fab:"http://purl.org/fab/ns#",eclap:"http://www.eclap.eu/schema/eclap/",ddl:"http://purl.org/vocab/riro/ddl#",nuts:"http://dd.eionet.europa.eu/vocabulary/common/nuts/",like:"http://ontologi.es/like#",sem:"http://semanticweb.cs.vu.nl/2009/11/sem/",psych:"http://purl.org/vocab/psychometric-profile/",oboinowl:"http://www.geneontology.org/formats/oboInOwl#",enc:"http://www.w3.org/2001/04/xmlenc#",ann:"http://www.w3.org/2000/10/annotation-ns#",wnschema:"http://www.cogsci.princeton.edu/~wn/schema/",bte:"http://purl.org/twc/vocab/between-the-edges/",wai:"http://purl.org/wai#",pobo:"http://purl.obolibrary.org/obo/",cdt:"https://w3id.org/cdt/",cmo:"http://purl.org/twc/ontologies/cmo.owl#",oslc:"http://open-services.net/ns/core#",kwijibo:"http://kwijibo.talis.com/",play:"http://uriplay.org/spec/ontology/#",br:"http://vocab.deri.ie/br#",algo:"http://securitytoolbox.appspot.com/securityAlgorithms#",eztag:"http://ontologies.ezweb.morfeo-project.org/eztag/ns#",drug:"http://www.agfa.com/w3c/2009/drugTherapy#",care:"http://eulersharp.sourceforge.net/2003/03swap/care#",vitro:"http://vitro.mannlib.cornell.edu/ns/vitro/public#",oboe:"http://ecoinformatics.org/oboe/oboe.1.0/oboe-core.owl#",bridge:"http://purl.org/vocommons/bridge#",irrl:"http://www.ontologydesignpatterns.org/cp/owl/informationobjectsandrepresentationlanguages.owl#",prissma:"http://ns.inria.fr/prissma/v1#",lastfm:"http://purl.org/ontology/last-fm/",sl:"http://www.semanlink.net/2001/00/semanlink-schema#",pol:"http://escience.rpi.edu/ontology/semanteco/2/0/pollution.owl#",mei:"http://www.music-encoding.org/ns/mei/",ogp:"http://ogp.me/ns#",mygrid:"http://www.mygrid.org.uk/ontology#",fo:"http://www.w3.org/1999/XSL/Format#",esd:"http://def.esd.org.uk/",r2rml:"http://www.w3.org/ns/r2rml#",grddl:"http://www.w3.org/2003/g/data-view#",phss:"http://ns.poundhill.com/phss/1.0/",oat:"http://openlinksw.com/schemas/oat/",fls:"http://lukasblaho.sk/football_league_schema#",olo:"http://purl.org/ontology/olo/core#",h5:"http://buzzword.org.uk/rdf/h5#",uni:"http://purl.org/weso/uni/uni.html#",wordmap:"http://purl.org/net/ns/wordmap#",tarot:"http://data.totl.net/tarot/card/",iswc:"http://annotation.semanticweb.org/2004/iswc#",sm:"http://topbraid.org/sparqlmotion#",b2bo:"http://purl.org/b2bo#",hospital:"http://www.agfa.com/w3c/2009/hospital#",swandr:"http://purl.org/swan/1.2/discourse-relationships/",remus:"http://www.semanticweb.org/ontologies/2010/6/Ontology1279614123500.owl#",osn:"http://spatial.ucd.ie/lod/osn/",ezcontext:"http://ontologies.ezweb.morfeo-project.org/ezcontext/ns#",lt:"http://diplomski.nelakolundzija.org/LTontology.rdf#",ne:"http://umbel.org/umbel/ne/",smiley:"http://www.smileyontology.com/ns#",calli:"http://callimachusproject.org/rdf/2009/framework#",places:"http://purl.org/ontology/places#",ibis:"http://purl.org/ibis#",sioca:"http://rdfs.org/sioc/actions#",geom:"http://data.ign.fr/def/geometrie#",hcterms:"http://purl.org/uF/hCard/terms/",human:"http://eulersharp.sourceforge.net/2003/03swap/human#",rulz:"http://purl.org/NET/rulz#",rdagr1:"http://rdvocab.info/Elements/",pimo:"http://www.semanticdesktop.org/ontologies/2007/11/01/pimo#",countries:"http://eulersharp.sourceforge.net/2003/03swap/countries#",recipe:"http://linkedrecipes.org/schema/",oac:"https://w3id.org/oac#",ppo:"http://vocab.deri.ie/ppo#",cdc:"https://w3id.org/cdc#",status:"http://www.w3.org/2003/06/sw-vocab-status/ns#",httpvoc:"http://www.w3.org/2006/http#",data:"http://data.odw.tw/",aapi:"http://rdf.alchemyapi.com/rdf/v1/s/aapi-schema#",session:"http://redfoot.net/2005/session#",np:"http://www.nanopub.org/nschema#",omv:"http://omv.ontoware.org/2005/05/ontology#",card:"http://www.ashutosh.com/test/",reve:"http://data.eurecom.fr/ontology/reve#",sql:"http://ns.inria.fr/ast/sql#",icaltzd:"http://www.w3.org/2002/12/cal/icaltzd#",dnb:"http://d-nb.info/gnd/",san:"http://www.irit.fr/recherches/MELODI/ontologies/SAN#",wbc:"http://worldbank.270a.info/classification/",pml:"http://provenanceweb.org/ns/pml#",rdaa:"http://rdaregistry.info/Elements/a/",wfm:"http://purl.org/net/wf-motifs#",osoc:"http://web-semantics.org/ns/opensocial#",webtlab:"http://webtlab.it.uc3m.es/",tr:"http://www.thomsonreuters.com/",ebucore:"http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#",cao:"http://purl.org/makolab/caont/",esdir:"http://vocab.linkeddata.es/datosabiertos/def/urbanismo-infraestructuras/direccion-postal#",xmls:"http://www.w3.org/2001/XMLSchema#",wgspos:"http://www.w3.org/2003/01/geo/wgs84_pos#",okkam:"http://models.okkam.org/ENS-core-vocabulary#",arpfo:"http://vocab.ouls.ox.ac.uk/projectfunding#",dbt:"http://dbpedia.org/resource/Template:",csvw:"http://www.w3.org/ns/csvw#",scsv:"http://purl.org/NET/schema-org-csv#",prf:"http://www.openmobilealliance.org/tech/profiles/UAPROF/ccppschema-20021212#",wisski:"http://wiss-ki.eu/",units:"http://eulersharp.sourceforge.net/2003/03swap/units#",wl:"http://www.wsmo.org/ns/wsmo-lite#",geospecies:"http://rdf.geospecies.org/ont/geospecies#",wsc:"http://www.openk.org/wscaim.owl#",opwn:"http://www.ontologyportal.org/WordNet.owl#",elog:"http://eulersharp.sourceforge.net/2003/03swap/log-rules#",ple:"http://pleiades.stoa.org/places/",zbwext:"http://zbw.eu/namespaces/zbw-extensions/",infosys:"http://www.infosys.com/",span:"http://www.ifomis.org/bfo/1.1/span#",derecho:"http://purl.org/derecho#",geofla:"http://data.ign.fr/ontologies/geofla#",mp:"http://jicamaro.info/mp#",agent:"http://eulersharp.sourceforge.net/2003/03swap/agent#",agents:"http://eulersharp.sourceforge.net/2003/03swap/agent#",imreg:"http://www.w3.org/2004/02/image-regions#",pmlt:"http://inference-web.org/2.0/pml-trust.owl#",pccz:"http://purl.org/procurement/public-contracts-czech#",wbp:"http://worldbank.270a.info/property/",agro:"http://purl.obolibrary.org/obo/agro.owl#",cb:"http://cbasewrap.ontologycentral.com/vocab#",gridworks:"http://purl.org/net/opmv/types/gridworks#",geographis:"http://telegraphis.net/ontology/geography/geography#",marl:"http://www.gsi.dit.upm.es/ontologies/marl/ns#",rdo:"http://purl.org/rdo/ns#",dita:"http://purl.org/dita/ns#",pmlp:"http://inference-web.org/2.0/pml-provenance.owl#",ncal:"http://www.semanticdesktop.org/ontologies/2007/04/02/ncal#",qdoslf:"http://foaf.qdos.com/lastfm/schema/",plink:"http://buzzword.org.uk/rdf/personal-link-types#",opus:"http://lsdis.cs.uga.edu/projects/semdis/opus#",osgb:"http://data.ordnancesurvey.co.uk/id/",html:"http://www.w3.org/1999/xhtml/",kontakt:"http://richard.cyganiak.de/",qa:"http://www.mit.jyu.fi/ai/TRUST_Ontologies/QA.owl#",sindice:"http://vocab.sindice.net/",prefix:"http://prefix.cc/",provenir:"http://knoesis.wright.edu/provenir/provenir.owl#",shv:"http://ns.aksw.org/spatialHierarchy/",dis:"http://stanbol.apache.org/ontology/disambiguation/disambiguation#",open:"http://open.vocab.org/terms/",r2r:"http://www4.wiwiss.fu-berlin.de/bizer/r2r/",c4n:"http://vocab.deri.ie/c4n#",dsp:"http://purl.org/metainfo/terms/dsp#",pns:"http://data.press.net/ontology/stuff/",visit:"http://purl.org/net/vocab/2004/07/visit#",timeline:"http://purl.org/NET/c4dm/timeline.owl#",ncbitaxon:"http://purl.obolibrary.org/obo/NCBITaxon_",nid3:"http://www.semanticdesktop.org/ontologies/2007/05/10/nid3#",hxl:"http://hxl.humanitarianresponse.info/ns/#",organiz:"http://eulersharp.sourceforge.net/2003/03swap/organization#",wairole:"http://www.w3.org/2005/01/wai-rdf/GUIRoleTaxonomy#",dgtwc:"http://data-gov.tw.rpi.edu/2009/data-gov-twc.rdf#",muni:"http://vocab.linkeddata.es/urbanismo-infraestructuras/territorio#",life:"http://life.deri.ie/schema/",swanpav:"http://purl.org/swan/1.2/pav/",dummy:"http://hello.com/",osr:"http://dati.senato.it/osr/",lr:"http://linkedrecipes.org/schema/",ens:"http://models.okkam.org/ENS-core-vocabulary.owl#",gv:"http://rdf.data-vocabulary.org/#",req:"http://purl.org/req/",agetec:"http://www.agetec.org/",frbre:"http://purl.org/vocab/frbr/extended#",prvtypes:"http://purl.org/net/provenance/types#",odp:"http://ontologydesignpatterns.org/",aair:"http://xmlns.notu.be/aair#",hemogram:"http://www.agfa.com/w3c/2009/hemogram#",out:"http://ontologies.hypios.com/out#",pubmed:"http://bio2rdf.org/pubmed_vocabulary:",meb:"http://rdf.myexperiment.org/ontologies/base/",vaem:"http://www.linkedmodel.org/schema/vaem#",xsl:"http://www.w3.org/1999/XSL/Transform#",nex:"http://www.nexml.org/2009/",set:"http://www.w3.org/2000/10/swap/set#",aims:"http://aims.fao.org/aos/common/",ecb:"http://ecb.270a.info/class/1.0/",xhtmlvocab:"http://www.w3.org/1999/xhtml/vocab/",copyright:"http://rhizomik.net/ontologies/copyrightonto.owl#",xt:"http://purl.org/twc/vocab/cross-topix#",un:"http://www.w3.org/2007/ont/unit#",parl:"https://id.parliament.uk/schema/",visko:"http://trust.utep.edu/visko/ontology/visko-operator-v3.owl#",fowl:"http://www.w3.org/TR/2003/PR-owl-guide-20031209/food#",rdapo:"http://rdaregistry.info/Elements/p/object/",eprints:"http://eprints.org/ontology/",trackback:"http://madskills.com/public/xml/rss/module/trackback/",wao:"http://webtlab.it.uc3m.es/2010/10/WebAppsOntology#",pna:"http://data.press.net/ontology/asset/",tripfs:"http://purl.org/tripfs/2010/02#",lark1:"http://users.utcluj.ro/~raluca/ontology/Ontology1279614123500.owl#",carfo:"http://purl.org/carfo#",geodata:"http://sws.geonames.org/",grel:"http://users.ugent.be/~bjdmeest/function/grel.ttl#",spatial:"http://geovocab.org/spatial#",skip:"http://skipforward.net/skipforward/resource/",wapp:"http://ns.rww.io/wapp#",swanci:"http://purl.org/swan/1.2/citations/",ops:"https://w3id.org/ops#",eye:"http://jena.hpl.hp.com/Eyeball#",sdm:"https://w3id.org/okn/o/sdm#",emotion:"http://ns.inria.fr/emoca#",emp:"http://purl.org/ctic/empleo/oferta#",admssw:"http://purl.org/adms/sw/",archdesc:"http://archdesc.info/archEvent#",aneo:"http://akonadi-project.org/ontologies/aneo#",rv:"https://data.elsevier.com/research/schema/rv/",oper:"http://sweet.jpl.nasa.gov/2.0/mathOperation.owl#",fl:"http://eulersharp.sourceforge.net/2003/03swap/fl-rules#",rdam:"http://rdaregistry.info/Elements/m/",kdo:"http://kdo.render-project.eu/kdo#",ospost:"http://data.ordnancesurvey.co.uk/ontology/postcode/",fd:"http://foodable.co/ns/",fno:"https://w3id.org/function/ontology#",pne:"http://data.press.net/ontology/event/",soap:"http://www.w3.org/2003/05/soap-envelope/",gelo:"http://krauthammerlab.med.yale.edu/ontologies/gelo#",doco:"http://purl.org/spar/doco/",evopat:"http://ns.aksw.org/Evolution/",xesam:"http://freedesktop.org/standards/xesam/1.0/core#",dayta:"http://dayta.me/resource#",commons:"http://commons.psi.enakting.org/def/",nsl:"http://purl.org/ontology/storyline/",prolog:"http://eulersharp.sourceforge.net/2003/03swap/prolog#",dtype:"http://www.linkedmodel.org/schema/dtype#",languages:"http://eulersharp.sourceforge.net/2003/03swap/languages#",sdgp:"http://stats.data-gov.ie/property/",metalex:"http://www.metalex.eu/schema/1.0#",hgnc:"http://bio2rdf.org/hgnc:",ipad:"http://www.padinthecity.com/",xfnv:"http://vocab.sindice.com/xfn#",dive:"http://scubadive.networld.to/dive.rdf#",pam:"http://prismstandard.org/namespaces/pam/2.0/",re:"http://www.w3.org/2000/10/swap/reason#",atomowl:"http://bblfish.net/work/atom-owl/2006-06-06/#",ccom:"http://purl.org/ontology/cco/mappings#",sawsdl:"http://www.w3.org/ns/sawsdl#",comm:"http://vocab.resc.info/communication#",bioskos:"http://eulersharp.sourceforge.net/2003/03swap/bioSKOSSchemes#",semtweet:"http://semantictweet.com/",tei:"http://www.tei-c.org/ns/1.0/",rad:"http://www.w3.org/ns/rad#",aigp:"http://swat.cse.lehigh.edu/resources/onto/aigp.owl#",ecpo:"http://purl.org/ontology/ecpo#",tcga:"http://purl.org/tcga/core#",psh:"http://ns.inria.fr/probabilistic-shacl/",gc:"http://www.oegov.org/core/owl/gc#",dgfoaf:"http://west.uni-koblenz.de/ontologies/2010/07/dgfoaf.owl#",sig:"http://purl.org/signature#",tvc:"http://www.essepuntato.it/2012/04/tvc/",oj:"http://ontojob.at/",decl:"http://www.linkedmodel.org/1.0/schema/decl#",func:"http://www.w3.org/2007/rif-builtin-function#",fc:"http://www.freeclass.eu/freeclass_v1#",dssn:"http://purl.org/net/dssn/",orca:"http://geni-orca.renci.org/owl/topology.owl#",oboro:"http://obofoundry.org/ro/ro.owl#",agrelon:"http://d-nb.info/standards/elementset/agrelon#",linkedct:"http://data.linkedct.org/vocab/",frame:"http://www.ontologydesignpatterns.org/ont/framenet/abox/frame/",nndsr:"http://semanticdiet.com/schema/usda/nndsr/",quak:"http://dev.w3.org/cvsweb/2000/quacken/vocab#",opmv:"http://purl.org/net/opmv/ns#",geop:"http://aims.fao.org/aos/geopolitical.owl#",xch:"http://oanda2rdf.appspot.com/xch/",fcm:"http://eulersharp.sourceforge.net/2006/02swap/fcm#",igeo:"http://rdf.insee.fr/def/geo#",swpo:"http://sw-portal.deri.org/ontologies/swportal#",theatre:"http://purl.org/theatre#",sad:"http://vocab.deri.ie/sad#",aersv:"http://aers.data2semantics.org/vocab/",nxp:"http://purl.org/nxp/schema/v1/",transit:"http://vocab.org/transit/terms/",spif:"http://spinrdf.org/spif#",bookmark:"http://www.w3.org/2002/01/bookmark#",tripfs2:"http://purl.org/tripfs/2010/06#",coeus:"http://bioinformatics.ua.pt/coeus/",enhancer:"http://stanbol.apache.org/ontology/enhancer/enhancer#",oboso:"http://purl.org/obo/owl/SO#",gxa:"http://www.ebi.ac.uk/gxa/",xbrli:"http://www.xbrl.org/2003/instance#",rso:"http://www.researchspace.org/ontology/",nyt:"http://data.nytimes.com/",eseduc:"http://www.purl.org/ontologia/eseduc#",td:"https://www.w3.org/2019/wot/td#",ling:"http://purl.org/voc/ling/",tp:"https://triplydb.com/Triply/tp/def/",mte:"http://nl.ijs.si/ME/owl/",iron:"http://purl.org/ontology/iron#",dbpo:"http://dbpedia.org/ontology/",rlno:"http://rdflivenews.aksw.org/ontology/",qu:"http://purl.oclc.org/NET/ssnx/qu/qu#",protons:"http://proton.semanticweb.org/2005/04/protons#",w3p:"http://prov4j.org/w3p/",events:"http://eulersharp.sourceforge.net/2003/03swap/event#",cidoccrm:"http://purl.org/NET/cidoc-crm/core#",dl:"http://ontology.ip.rm.cnr.it/ontologies/DOLCE-Lite#",httpm:"http://www.w3.org/2011/http-methods#",prvr:"http://purl.org/ontology/prv/rules#",json:"https://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf#",rich:"http://rdf.data-vocabulary.org/",myprefix:"http://myprefix.org/",telix:"http://purl.org/telix#",c4o:"http://purl.org/spar/c4o/",gazetteer:"http://data.ordnancesurvey.co.uk/ontology/50kGazetteer/",htir:"http://www.w3.org/2011/http#",estrn:"http://vocab.linkeddata.es/datosabiertos/def/urbanismo-infraestructuras/transporte#",sgv:"http://www.w3.org/TR/SVG/",owls:"http://www.daml.org/services/owl-s/1.2/Service.owl#",no:"http://km.aifb.kit.edu/projects/numbers/number#",frapo:"http://purl.org/cerif/frapo/",rpubl:"http://rinfo.lagrummet.se/ns/2008/11/rinfo/publ#",moby:"http://www.mygrid.org.uk/mygrid-moby-service#",ecc:"https://ns.eccenca.com/",oax:"http://www.w3.org/ns/openannotation/extensions/",kw:"http://kwantu.net/kw/",fct:"http://openlinksw.com/services/facets/1.0/",scowt:"http://purl.org/weso/ontologies/scowt#",coun:"http://www.daml.org/2001/09/countries/iso-3166-ont#",mesh:"http://id.nlm.nih.gov/mesh/",tmpl:"http://purl.org/restdesc/http-template#",frad:"http://iflastandards.info/ns/fr/frad/",artstor:"http://simile.mit.edu/2003/10/ontologies/artstor#",wf:"http://www.w3.org/2005/01/wf/flow#",humanbody:"http://eulersharp.sourceforge.net/2003/03swap/humanBody#",wm:"http://ns.inria.fr/webmarks#",arecipe:"http://purl.org/amicroformat/arecipe/",rdaw:"http://rdaregistry.info/Elements/w/",fingal:"http://vocab.deri.ie/fingal#",govtrackus:"http://www.rdfabout.com/rdf/usgov/geo/us/",gbv:"http://purl.org/ontology/gbv/",ext:"http://mu.semte.ch/vocabularies/ext/",jita:"http://aims.fao.org/aos/jita/",lgv:"http://linkedgeodata.org/ontology/",oecd:"http://oecd.270a.info/dataset/",ccard:"http://purl.org/commerce/creditcard#",swanag:"http://purl.org/swan/1.2/agents/",ru:"http://purl.org/imbi/ru-meta.owl#",pf:"http://jena.hpl.hp.com/ARQ/property#",owltime:"http://www.w3.org/TR/owl-time#",clineva:"http://www.agfa.com/w3c/2009/clinicalEvaluation#",ec:"http://eulergui.sourceforge.net/contacts.owl.n3#",goef:"http://purl.org/twc/vocab/goef#",bm:"http://bio2rdf.org/",intervals:"http://reference.data.gov.uk/def/intervals/",flow:"http://www.w3.org/2005/01/wf/flow#",grs:"http://www.georss.org/georss/",vcardx:"http://buzzword.org.uk/rdf/vcardx#",dbpedia2:"http://dbpedia.org/property/",ends:"http://labs.mondeca.com/vocab/endpointStatus#",quantity:"http://qudt.org/schema/quantity#",fe:"http://www.ontologydesignpatterns.org/ont/framenet/abox/fe/",rating:"http://www.tvblob.com/ratings/#",health:"http://purl.org/twc/health/vocab/",genab:"http://eulersharp.sourceforge.net/2003/03swap/genomeAbnormality#",italy:"http://data.kasabi.com/dataset/italy/schema/",dossier:"https://data.omgeving.vlaanderen.be/ns/dossier#",abs:"http://abs.270a.info/dataset/",luc:"http://www.ontotext.com/owlim/lucene#",identity:"http://purl.org/twc/ontologies/identity.owl#",vf:"https://w3id.org/valueflows/ont/vf#",sor:"http://purl.org/net/soron/",lod2:"http://lod2.eu/schema/",osp:"http://data.lirmm.fr/ontologies/osp#",penis:"http://penis.to/#",d2r:"http://sites.wiwiss.fu-berlin.de/suhl/bizer/d2r-server/config.rdf#",wfdesc:"http://purl.org/wf4ever/wfdesc#",kupkb:"http://www.e-lico.eu/data/kupkb/",nytimes:"http://data.nytimes.com/elements/",govwild:"http://govwild.org/0.6/GWOntology.rdf/",osmsemnet:"http://spatial.ucd.ie/2012/08/osmsemnet/",hcard:"http://purl.org/uF/hCard/terms/",frbrcore:"http://purl.org/vocab/frbr/core#",ql:"http://www.w3.org/2004/ql#",ecos:"http://purl.org/ecos#",crtv:"http://open-services.net/ns/crtv#",environ:"http://eulersharp.sourceforge.net/2003/03swap/environment#",p20:"http://zbw.eu/beta/p20/vocab/",cmd:"https://w3id.org/cmd#",s4ac:"http://ns.inria.fr/s4ac/v2#",sro:"http://salt.semanticauthoring.org/ontologies/sro#",npgd:"http://ns.nature.com/datasets/",loticoowl:"http://www.lotico.com/ontology/",shex:"http://www.w3.org/ns/shex#",cold:"http://purl.org/configurationontology#",transmed:"http://www.w3.org/2001/sw/hcls/ns/transmed/",wikibase:"http://wikiba.se/ontology#",daiaserv:"http://purl.org/ontology/daia/Service/",gfo:"http://www.onto-med.de/ontologies/gfo.owl#",cl:"http://advene.org/ns/cinelab/",itsmo:"http://ontology.it/itsmo/v1#",bl:"https://w3id.org/biolink/vocab/",ogorg:"http://opengraph.org/schema/",idemo:"http://rdf.insee.fr/def/demo#",ufmedia:"http://purl.org/microformat/hmedia/",crmdig:"http://www.ics.forth.gr/isl/CRMdig/",genea:"http://www.owl-ontologies.com/generations.owl#",poder:"http://poderopedia.com/vocab/",dpd:"http://www.kanzaki.com/ns/dpd#",nocal:"http://vocab.deri.ie/nocal#",skiresort:"http://www.openlinksw.com/ski_resorts/schema#",provone:"http://purl.org/provone#",lindt:"http://purl.org/NET/lindt#",rkd:"http://data.rkd.nl/def#",npgg:"http://ns.nature.com/graphs/",str:"http://nlp2rdf.lod2.eu/schema/string/",sw:"http://linkedwidgets.org/statisticalwidget/ontology/",hartigprov:"http://purl.org/net/provenance/ns#",va:"http://code-research.eu/ontology/visual-analytics#",bcncon:"http://datos.bcn.cl/ontologies/bcn-congress#",cf:"http://mmisw.org/ont/cf/parameter/",steel:"https://w3id.org/steel/ProcessOntology/",gesis:"http://lod.gesis.org/lodpilot/ALLBUS/vocab.rdf#",wscaim:"http://www.openk.org/wscaim.owl#",sci:"http://data.scientology.org/ns/",protegedc:"http://protege.stanford.edu/plugins/owl/dc/protege-dc.owl#",cdtype:"http://purl.org/cld/cdtype/",diseasome:"http://www4.wiwiss.fu-berlin.de/diseasome/resource/diseasome/",ls:"http://linkedspending.aksw.org/instance/",s2s:"http://escience.rpi.edu/ontology/sesf/s2s/4/0/",cis:"http://purl.org/NET/cloudisus#",healthcare:"http://www.agfa.com/w3c/2009/healthCare#",rankrage:"https://rankrage.de/",stac:"http://securitytoolbox.appspot.com/stac#",kbp:"http://tackbp.org/2013/ontology#",dctypes:"http://purl.org/dc/dcmitype/",atomrdf:"http://atomowl.org/ontologies/atomrdf#",mohammad:"http://manesht.ir/",atlas:"http://rdf.ebi.ac.uk/resource/atlas/",ngeoi:"http://vocab.lenka.no/geo-deling#",openskos:"http://openskos.org/xmlns#",centrifuge:"http://purl.org/twc/vocab/centrifuge#",paia:"http://purl.org/ontology/paia#",ipo:"http://purl.org/ipo/core#",occult:"http://data.totl.net/occult/",ianarel:"https://www.w3.org/ns/iana/link-relations/relation#",saxon:"http://saxon.sf.net/",solid:"http://www.w3.org/ns/solid/terms#",foo:"http://filmontology.org/ontology/1.0/",curr:"https://w3id.org/cc#",osukdt:"http://www.ordnancesurvey.co.uk/ontology/Datatypes.owl#",gs1:"https://gs1.org/voc/",marshall:"http://sites.google.com/site/xgmaitc/",l4a:"http://labels4all.info/ns/",skos08:"http://www.w3.org/2008/05/skos#",vsto:"http://escience.rpi.edu/ontology/vsto/2/0/vsto.owl#",rec54:"http://www.w3.org/2001/02pd/rec54.rdf#",l4lod:"http://ns.inria.fr/l4lod/v2/",lctr:"http://data.linkedct.org/vocab/resource/",mtecore:"http://purl.org/olia/mte/multext-east.owl#",harrisons:"http://harrisons.cc/",opmw:"http://www.opmw.org/ontology/",category:"http://dbpedia.org/resource/Category:",rml:"http://w3id.org/rml/",biordf:"http://purl.org/net/biordfmicroarray/ns#",wfprov:"http://purl.org/wf4ever/wfprov#",gov:"http://gov.genealogy.net/ontology.owl#",clinproc:"http://www.agfa.com/w3c/2009/clinicalProcedure#",pizza:"http://www.co-ode.org/ontologies/pizza/pizza.owl#",prism21:"http://prismstandard.org/namespaces/basic/2.1/",daq:"http://purl.org/eis/vocab/daq#",campsite:"http://www.openlinksw.com/campsites/schema#",aerols:"http://xmlns.com/aerols/0.1/",hasco:"http://hadatac.org/ont/hasco/",laposte:"http://data.lirmm.fr/ontologies/laposte#",mpeg7:"http://rhizomik.net/ontologies/2005/03/Mpeg7-2001.owl#",pronom:"http://reference.data.gov.uk/technical-registry/",dbyago:"http://dbpedia.org/class/yago/",b2rpubchem:"http://bio2rdf.org/ns/ns/ns/pubchem#",lh:"http://vocab.inf.ed.ac.uk/library/holdings#",refe:"http://orion.tw.rpi.edu/~xgmatwc/refe/",malignneo:"http://www.agfa.com/w3c/2009/malignantNeoplasm#",opl:"http://openlinksw.com/schema/attribution#",pkmn:"http://pokedex.dataincubator.org/pkm/",okg:"http://openknowledgegraph.org/ontology/",wno:"http://wordnet-rdf.princeton.edu/ontology#",ldr:"http://purl.oclc.org/NET/ldr/ns#",ifc:"http://ifcowl.openbimstandards.org/IFC2X3_Final#",odcs:"http://opendata.cz/infrastructure/odcleanstore/",camelot:"http://vocab.ox.ac.uk/camelot#",wkd:"http://schema.wolterskluwer.de/",dpl:"http://dbpedialite.org/things/",oslo:"http://purl.org/oslo/ns/localgov#",sam:"http://def.seegrid.csiro.au/isotc211/iso19156/2011/sampling#",verb:"https://w3id.org/verb/",te:"http://www.w3.org/2006/time-entry#",c4dm:"http://purl.org/NET/c4dm/event.owl#",bv:"http://purl.org/vocommons/bv#",pod:"https://project-open-data.cio.gov/v1.1/schema/#",dqv:"http://www.w3.org/ns/dqv#",geovocab:"http://geovocab.org/",crv:"http://purl.org/twc/vocab/datacarver#",germplasm:"http://purl.org/germplasm/terms#",doas:"http://deductions.github.io/doas.owl.ttl#",dannet:"http://www.wordnet.dk/owl/instance/2009/03/instances/",lio:"http://purl.org/net/lio#",ds:"http://purl.org/ctic/dcat#",scms:"http://ns.aksw.org/scms/annotations/",mads:"http://www.loc.gov/mads/rdf/v1#",lc:"http://semweb.mmlab.be/ns/linkedconnections#",cart:"http://purl.org/net/cartCoord#",date:"http://contextus.net/ontology/ontomedia/misc/date#",vgo:"http://purl.org/net/VideoGameOntology#",odo:"http://ocean-data.org/schema/",lso:"http://linkedspending.aksw.org/ontology/",ekaw:"http://data.semanticweb.org/conference/ekaw/2012/complete/",puelia:"http://kwijibo.talis.com/vocabs/puelia#",bcnnorms:"http://datos.bcn.cl/ontologies/bcn-norms#",of:"http://owlrep.eu01.aws.af.cm/fridge#",alchemy:"http://rdf.alchemyapi.com/rdf/v1/s/aapi-schema#",ebu:"http://semantic.eurobau.com/eurobau-utility.owl#",shoah:"http://dati.cdec.it/lod/shoah/",sso:"http://nlp2rdf.lod2.eu/schema/sso/",prvt:"http://purl.org/net/provenance/types#",omnlife:"http://open-multinet.info/ontology/omn-lifecycle#",plo:"http://purl.org/net/po#",mmo:"http://purl.org/momayo/mmo/",tac:"http://ns.bergnet.org/tac/0.1/triple-access-control#",hifm:"http://purl.org/net/hifm/data#",yo:"http://yovisto.com/",pattern:"http://www.essepuntato.it/2008/12/pattern#",dawgt:"http://www.w3.org/2001/sw/DataAccess/tests/test-dawg#",tisc:"http://observedchange.com/tisc/ns#",bdd:"https://api.bloomberg.com/eap/catalogs/bbg/fields/",namespaces:"https://vg.no/",ottr:"http://ns.ottr.xyz/templates#",shw:"http://paul.staroch.name/thesis/SmartHomeWeather.owl#",dvia:"http://data.eurecom.fr/ontology/dvia#",insdc:"http://ddbj.nig.ac.jp/ontologies/sequence#",strdf:"http://strdf.di.uoa.gr/ontology#",esco:"http://data.europa.eu/esco/model#",dcndl:"http://ndl.go.jp/dcndl/terms/",hints2005:"http://purl.org/twc/cabig/model/HINTS2005-1.owl#",rdacarrier:"http://rdvocab.info/termList/RDACarrierType/",opllic:"http://www.openlinksw.com/ontology/licenses#",daisy:"http://www.daisy.org/z3998/2012/vocab/",smg:"http://ns.cerise-project.nl/energy/def/cim-smartgrid#",adr:"http://kg.artsdata.ca/resource/",vin:"http://www.w3.org/TR/2003/PR-owl-guide-20031209/wine#",dn:"http://purl.org/datanode/ns/",antenne:"https://data.zendantennes.omgeving.vlaanderen.be/ns/zendantenne#",csm:"http://purl.org/csm/1.0#",sbench:"http://swat.cse.lehigh.edu/onto/univ-bench.owl#",cts2:"http://schema.omg.org/spec/CTS2/1.0/",part:"http://purl.org/vocab/participation/schema#",bn:"http://babelnet.org/rdf/",rssynd:"http://web.resource.org/rss/1.0/modules/syndication/",cpsv:"http://purl.org/vocab/cpsv#",wsl:"http://www.wsmo.org/ns/wsmo-lite#",quantities:"http://eulersharp.sourceforge.net/2003/03swap/quantitiesExtension#",iol:"http://www.ontologydesignpatterns.org/ont/dul/IOLite.owl#",latitude:"https://www.w3.org/2006/vcard/ns#",gastro:"http://www.ebsemantics.net/gastro#",dpc:"http://hospee.org/ontologies/dpc/",chembl:"http://rdf.ebi.ac.uk/terms/chembl#",ssso:"http://purl.org/ontology/ssso#",art:"http://w3id.org/art/terms/1.0/",clinic:"http://example.com/clinic#",wro:"http://purl.org/net/wf4ever/ro#",ptop:"http://www.ontotext.com/proton/protontop#",fos:"http://futurios.org/fos/spec/",rdamt:"http://rdaregistry.info/termList/RDAMediaType/",pso:"http://purl.org/spar/pso/",sioctypes:"http://rdfs.org/sioc/types#",scor:"http://purl.org/eis/vocab/scor#",turismo:"http://idi.fundacionctic.org/cruzar/turismo#",rdae:"http://rdaregistry.info/Elements/e/",semio:"http://www.lingvoj.org/semio#",goog:"http://schema.googleapis.com/",rmo:"http://eatld.et.tu-dresden.de/rmo#",qrl:"http://www.aifb.kit.edu/project/ld-retriever/qrl#",trait:"http://contextus.net/ontology/ontomedia/ext/common/trait#",bihap:"http://bihap.kb.gov.tr/ontology/",stream:"http://dbpedia.org/ontology/Stream/",ccrel:"http://creativecommons.org/ns#",cpant:"http://purl.org/NET/cpan-uri/terms#",decision:"https://decision-ontology.googlecode.com/svn/trunk/decision.owl#",mico:"http://www.mico-project.eu/ns/platform/1.0/schema#",bk:"http://www.provbook.org/ns/#",oan:"http://data.lirmm.fr/ontologies/oan/",property:"http://fr.dbpedia.org/property/",guo:"http://purl.org/hpi/guo#",ep:"http://eprints.org/ontology/",who:"http://www.who.int/vocab/ontology#",webbox:"http://webbox.ecs.soton.ac.uk/ns#",ost:"http://w3id.org/ost/ns#",emtr:"http://purl.org/NET/ssnext/electricmeters#",cosmo:"http://purl.org/ontology/cosmo#",xlime:"http://xlime-project.org/vocab/",obsm:"http://rdf.geospecies.org/methods/observationMethod#",omapi:"http://purl.org/omapi/0.2/#",thors:"http://resource.geosciml.org/ontology/timescale/thors#",opencyc:"http://sw.opencyc.org/concept/",shacl:"http://www.w3.org/ns/shacl#",lldr:"http://purl.oclc.org/NET/lldr/ns#",onc:"http://www.ics.forth.gr/isl/oncm/core#",gf:"http://def.seegrid.csiro.au/isotc211/iso19109/2005/feature#",conf:"http://richard.cyganiak.de/2007/pubby/config.rdf#",fma:"http://sig.uw.edu/fma#",op:"http://environment.data.gov.au/def/op#",vsso:"http://automotive.eurecom.fr/vsso#",zoomaterms:"http://rdf.ebi.ac.uk/vocabulary/zooma/",rdarel2:"http://metadataregistry.org/uri/schema/RDARelationshipsGR2/",kai:"http://kai.uni-kiel.de/",msr:"http://www.telegraphis.net/ontology/measurement/measurement#",sao:"http://salt.semanticauthoring.org/ontologies/sao#",wikterms:"http://wiktionary.dbpedia.org/terms/",bgcat:"http://bg.dbpedia.org/resource/\u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f:",rdafnm:"http://rdaregistry.info/termList/FormNoteMus/",ses:"http://lod.taxonconcept.org/ses/",faq:"http://www.openlinksw.com/ontology/faq#",mmd:"http://musicbrainz.org/ns/mmd-1.0#",ljkl:"http://teste.com/",oarj:"http://opendepot.org/reference/linked/1.0/",my:"http://www.mobile.com/model/",cvbase:"http://purl.org/captsolo/resume-rdf/0.2/base#",rdamedia:"http://rdvocab.info/termList/RDAMediaType/",place:"http://purl.org/ontology/places/",tblcard:"http://www.w3.org/People/Berners-Lee/card#",spt:"http://spitfire-project.eu/ontology/ns/",security:"http://securitytoolbox.appspot.com/securityMain#",ecrm:"http://erlangen-crm.org/current/",mged:"http://mged.sourceforge.net/ontologies/MGEDOntology.owl#",moac:"http://observedchange.com/moac/ns#",telmap:"http://purl.org/telmap/",dr:"http://purl.org/swan/2.0/discourse-relationships/",poste:"http://data.lirmm.fr/ontologies/poste#",rdafr:"http://rdaregistry.info/termList/frequency/",eumida:"http://data.kasabi.com/dataset/eumida/terms/",bgn:"http://bibliograph.net/schemas/",w3con:"http://www.w3.org/2000/10/swap/pim/contact#",bcnbio:"http://datos.bcn.cl/ontologies/bcn-biographies#",aers:"http://aers.data2semantics.org/resource/",qud:"http://qudt.org/1.1/schema/qudt#",jpo:"http://rdf.jpostdb.org/ontology/jpost.owl#",icane:"http://www.icane.es/opendata/vocab#",wlo:"http://purl.org/ontology/wo/",mil:"http://rdf.muninn-project.org/ontologies/military#",lodac:"http://lod.ac/ns/lodac#",sdmxd:"http://purl.org/linked-data/sdmx/2009/dimension#",rdasoi:"http://rdaregistry.info/termList/statIdentification/",seq:"http://www.ontologydesignpatterns.org/cp/owl/sequence.owl#",scoro:"http://purl.org/spar/scoro/",dqm:"http://purl.org/dqm-vocabulary/v1/dqm#",nerd:"http://nerd.eurecom.fr/ontology#",gl:"http://schema.geolink.org/",rdarel:"http://rdvocab.info/RDARelationshipsWEMI/",disease:"http://www.agfa.com/w3c/2009/humanDisorder#",qvoc:"http://mlode.nlp2rdf.org/quranvocab#",odrs:"http://schema.theodi.org/odrs#",finlaw:"http://purl.org/finlex/schema/laki/",exo:"https://w3id.org/example#",mv:"http://schema.mobivoc.org/",oss:"http://opendata.caceres.es/def/ontosemanasanta#",kbv:"https://id.kb.se/vocab/",dcs:"http://ontologi.es/doap-changeset#",delta:"http://www.w3.org/2004/delta#",xapi:"https://w3id.org/xapi/ontology#",tw:"http://tw.rpi.edu/schema/",holding:"http://purl.org/ontology/holding#",biro:"http://purl.org/spar/biro/",ctorg:"http://purl.org/ctic/infraestructuras/organizacion#",li:"http://def.seegrid.csiro.au/isotc211/iso19115/2003/lineage#",twaapi:"http://purl.org/twc/vocab/aapi-schema#",accom:"http://purl.org/acco/ns#",oplcert:"http://www.openlinksw.com/schemas/cert#",onyx:"http://www.gsi.dit.upm.es/ontologies/onyx/ns#",eui:"http://institutions.publicdata.eu/#",xcql:"http://docs.oasis-open.org/ns/search-ws/xcql#",lsc:"http://linkedscience.org/lsc/ns#",auto:"http://auto.schema.org/",infor:"http://www.ontologydesignpatterns.org/cp/owl/informationrealization.owl#",dbcat:"http://dbpedia.org/resource/Category:",osspr:"http://data.ordnancesurvey.co.uk/ontology/spatialrelations/",ll:"http://lodlaundromat.org/resource/",rdacontent:"http://rdvocab.info/termList/RDAContentType/",fam:"http://vocab.fusepool.info/fam#",swperson:"http://data.semanticweb.org/person/",esequip:"http://vocab.linkeddata.es/datosabiertos/def/urbanismo-infraestructuras/equipamiento#",od:"http://purl.org/twc/vocab/opendap#",affymetrix:"http://bio2rdf.org/affymetrix_vocabulary:",vsws:"http://verticalsearchworks.com/ontology/synset#",coll:"http://purl.org/co/",cbo:"http://comicmeta.org/cbo/",mrel:"http://id.loc.gov/vocabulary/relators/",mb:"http://dbtune.org/musicbrainz/resource/instrument/",raul:"http://vocab.deri.ie/raul#",onssprel:"http://www.ordnancesurvey.co.uk/ontology/SpatialRelations/v0.2/SpatialRelations.owl#",tsioc:"http://rdfs.org/sioc/types#",wb:"http://data.worldbank.org/",gawd:"http://gawd.atlantides.org/terms/",stats:"http://purl.org/rdfstats/stats#",pnc:"http://data.press.net/ontology/classification/",npgx:"http://ns.nature.com/extensions/",dash:"http://datashapes.org/dash#",osgeom:"http://data.ordnancesurvey.co.uk/ontology/geometry/",emoca:"http://ns.inria.fr/emoca#",ogc:"http://www.opengis.net/def/",fao:"http://fao.270a.info/dataset/",tao:"http://pubannotation.org/ontology/tao.owl#",dogont:"http://elite.polito.it/ontologies/dogont.owl#",drm:"http://vocab.data.gov/def/drm#",app:"http://jmvanel.free.fr/ontology/software_applications.n3#",call:"http://webofcode.org/wfn/call:",lsmap:"http://ontology.cybershare.utep.edu/ELSEWeb/elseweb-data.owl#",pnt:"http://data.press.net/ontology/tag/",mvco:"http://purl.oclc.org/NET/mvco.owl#",geocontext:"http://www.geocontext.org/publ/2013/vocab#",dbpr:"http://dbpedia.org/resource/",esaloj:"http://vocab.linkeddata.es/datosabiertos/def/turismo/alojamiento#",elec:"http://purl.org/ctic/sector-publico/elecciones#",lcy:"http://purl.org/vocab/lifecycle/schema#",water:"http://escience.rpi.edu/ontology/semanteco/2/0/water.owl#",nidm:"http://nidm.nidash.org/",vapour:"http://vapour.sourceforge.net/vocab.rdf#",xrd:"http://docs.oasis-open.org/ns/xri/xrd-1.0#",rdacct:"http://rdaregistry.info/termList/CollTitle/",wn31:"http://wordnet-rdf.princeton.edu/wn31/",llo:"http://lodlaundromat.org/ontology/",bgt:"https://bgt.basisregistraties.overheid.nl/bgt/def/",oml:"http://def.seegrid.csiro.au/ontology/om/om-lite#",stories:"http://purl.org/ontology/stories/",pni:"http://data.press.net/ontology/identifier/",gadm:"http://gadm.geovocab.org/ontology#",pois:"http://purl.oclc.org/POIS/vcblr#",bwb:"http://doc.metalex.eu/bwb/ontology/",dbtont:"http://dbtropes.org/ont/",sg:"http://name.scigraph.com/ontologies/core/",graffle:"http://purl.org/twc/vocab/vsr/graffle#",ox:"http://vocab.ox.ac.uk/projectfunding#",isocat:"http://www.isocat.org/datcat/",seokoeln:"http://rankrage.de/",particip:"http://purl.org/vocab/participation/schema#",allot:"https://w3id.org/akn/ontology/allot#",rdami:"http://rdaregistry.info/termList/modeIssue/",viskov:"http://trust.utep.edu/visko/ontology/visko-view-v3.owl#",dcite:"http://purl.org/spar/datacite/",pvcs:"http://purl.org/twc/vocab/pvcs#",evident:"http://purl.org/net/evident#",doi:"https://doi.org/",saif:"http://wwwiti.cs.uni-magdeburg.de/~srahman/",brick:"https://brickschema.org/schema/Brick#",odapp:"http://vocab.deri.ie/odapp#",snarm:"http://rdf.myexperiment.org/ontologies/snarm/",viso:"http://purl.org/viso/",pingback:"http://purl.org/net/pingback/",s3db:"http://www.s3db.org/core#",deps:"http://ontologi.es/doap-deps#",frb:"http://frb.270a.info/dataset/",mt:"http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#",cbase:"http://ontologycentral.com/2010/05/cb/vocab#",kees:"http://linkeddata.center/kees/v1#",pic:"http://www.ipaw.info/ns/picaso#",ramon:"http://rdfdata.eionet.europa.eu/ramon/ontology/",scip:"http://lod.taxonconcept.org/ontology/sci_people.owl#",ev:"http://www.w3.org/2001/xml-events/",swo:"http://www.ebi.ac.uk/swo/",fincaselaw:"http://purl.org/finlex/schema/oikeus/",biotop:"http://purl.org/biotop/biotop.owl#",oh:"http://semweb.mmlab.be/ns/oh#",ostop:"http://www.ordnancesurvey.co.uk/ontology/Topography/v0.1/Topography.owl#",ncit:"https://ncit.nci.nih.gov/ncitbrowser/ConceptReport.jsp?dictionary=NCI_Thesaurus&ns=ncit&code=",spfood:"http://kmi.open.ac.uk/projects/smartproducts/ontologies/food.owl#",voidp:"http://www.enakting.org/provenance/voidp/",quty:"http://www.telegraphis.net/ontology/measurement/quantity#",c9d:"http://purl.org/twc/vocab/conversion/",viskoo:"http://trust.utep.edu/visko/ontology/visko-operator-v3.owl#",eunis:"http://eunis.eea.europa.eu/rdf/species-schema.rdf#",fcp:"http://www.newmedialab.at/fcp/",dcoid:"http://dx.deepcarbon.net/",d2d:"http://rdfns.org/d2d/",vag:"http://www.essepuntato.it/2013/10/vagueness/",w3po:"http://purl.org/provenance/w3p/w3po#",rdatc:"http://rdaregistry.info/termList/trackConfig/",vvo:"http://purl.org/vvo/ns#",prviv:"http://purl.org/net/provenance/integrity#",rdl:"http://data.posccaesar.org/rdl/",bco:"http://purl.obolibrary.org/obo/bco.owl#",mmf:"http://linkedmultimedia.org/sparql-mm/ns/1.0.0/function#",rvdata:"http://data.rvdata.us/",bner:"http://datos.bne.es/resource/",lexcz:"http://purl.org/lex/cz#",rdagw:"http://rdaregistry.info/termList/grooveWidth/",olad:"http://openlad.org/vocab#",origins:"http://origins.link/",rdagd:"http://rdaregistry.info/termList/gender/",bgdbp:"http://bg.dbpedia.org/property/",geosp:"http://rdf.geospecies.org/ont/geospecies#",driver:"http://deductions.github.io/drivers.owl.ttl#",fcs:"http://clarin.eu/fcs/resource#",im:"http://imgpedia.dcc.uchile.cl/resource/",saws:"http://purl.org/saws/ontology#",tg:"https://triplydb.com/Triply/tg/def/",company:"http://intellimind.io/ns/company#",lden:"http://www.linklion.org/lden/",swpatho:"http://swpatho.ag-nbi.de/context/meta.owl#",cmdm:"http://infra.clarin.eu/cmd/",vdpp:"http://data.lirmm.fr/ontologies/vdpp#",vsw:"http://verticalsearchworks.com/ontology/",lingvo:"http://www.lingvoj.org/ontology#",waarde:"https://lod.milieuinfo.be/ns/waarde#",tis:"http://www.ontologydesignpatterns.org/cp/owl/timeindexedsituation.owl#",gnvc:"http://purl.org/gc/",odpart:"http://www.ontologydesignpatterns.org/cp/owl/participation.owl#",agr:"http://promsns.org/def/agr#",pkm:"http://www.ontotext.com/proton/protonkm#",radion:"http://www.w3.org/ns/radion#",ntag:"http://ns.inria.fr/nicetag/2010/09/09/voc#",gpml:"http://vocabularies.wikipathways.org/gpml#",agrd:"http://agrinepaldata.com/",vartrans:"http://www.w3.org/ns/lemon/vartrans#",rdarole:"http://rdvocab.info/roles/",vext:"http://ldf.fi/void-ext#",lexvo:"http://lexvo.org/ontology#",aws:"http://purl.oclc.org/NET/ssnx/meteo/aws#",agls:"http://www.agls.gov.au/agls/terms/",rdai:"http://rdaregistry.info/Elements/i/",dao:"http://purl.org/dao#",lsweb:"http://ontology.cybershare.utep.edu/ELSEWeb/elseweb-data.owl#",employee:"http://www.employee.com/data#",lw:"http://linkedwidgets.org/ontologies/",npdv:"http://sws.ifi.uio.no/vocab/npd#",dbptmpl:"http://dbpedia.org/resource/Template:",oae:"http://www.ics.forth.gr/isl/oae/core#",gcis:"http://data.globalchange.gov/gcis.owl#",friends:"http://www.openarchives.org/OAI/2.0/friends/",mtlo:"http://www.ics.forth.gr/isl/MarineTLO/v4/marinetlo.owl#",rdabm:"http://rdaregistry.info/termList/RDABaseMaterial/",cwrc:"http://sparql.cwrc.ca/ontology/cwrc#",ontopic:"http://www.ontologydesignpatterns.org/ont/dul/ontopic.owl#",fire:"http://tldp.org/HOWTO/XML-RPC-HOWTO/xmlrpc-howto-java.html#",situ:"http://www.ontologydesignpatterns.org/cp/owl/situation.owl#",frsad:"http://iflastandards.info/ns/fr/frsad/",activity:"https://www.w3.org/TR/activitystreams-vocabulary/",ordf:"http://purl.org/NET/ordf/",beth:"http://www.google.com/",roevo:"http://purl.org/wf4ever/roevo#",lmm1:"http://www.ontologydesignpatterns.org/ont/lmm/LMM_L1.owl#",vrank:"http://purl.org/voc/vrank#",orth:"http://purl.org/net/orth#",bot:"https://w3id.org/bot#",lmdb:"http://data.linkedmdb.org/",galaksiya:"http://ontoloji.galaksiya.com/vocab/",bioc:"http://deductions.github.io/biological-collections.owl.ttl#",csp:"http://vocab.deri.ie/csp#",gm:"http://def.seegrid.csiro.au/isotc211/iso19107/2003/geometry#",vmm:"http://spi-fm.uca.es/spdef/models/genericTools/vmm/1.0#",wikim:"http://spi-fm.uca.es/spdef/models/genericTools/wikim/1.0#",lpeu:"http://purl.org/linkedpolitics/vocabulary/eu/plenary/",bcngeo:"http://datos.bcn.cl/ontologies/bcn-geographics#",oplprod:"http://www.openlinksw.com/ontology/products#",salad:"https://w3id.org/cwl/salad#",scufl2:"http://ns.taverna.org.uk/2010/scufl2#",opengov:"http://www.w3.org/opengov#",ldvm:"http://linked.opendata.cz/ontology/ldvm/",uis:"http://uis.270a.info/dataset/",wf4ever:"http://purl.org/wf4ever/wf4ever#",ftcontent:"http://www.ft.com/ontology/content/",mammal:"http://lod.taxonconcept.org/ontology/p01/Mammalia/index.owl#",wfn:"http://webofcode.org/wfn/",opmo:"http://openprovenance.org/model/opmo#",being:"http://purl.org/ontomedia/ext/common/being#",bbcprov:"http://www.bbc.co.uk/ontologies/provenance/",ids:"https://w3id.org/idsa/core/",d0:"http://ontologydesignpatterns.org/ont/wikipedia/d0.owl#",mod:"http://www.isibang.ac.in/ns/mod#",pcdt:"http://purl.org/procurement/public-contracts-datatypes#",language:"http://id.loc.gov/vocabulary/iso639-1/",pproc:"http://contsem.unizar.es/def/sector-publico/pproc#",passim:"http://data.lirmm.fr/ontologies/passim#",rlnr:"http://rdflivenews.aksw.org/resource/",tddo:"http://databugger.aksw.org/ns/core#",bnf:"http://www.w3.org/2000/10/swap/grammar/bnf#",frbrer:"http://iflastandards.info/ns/fr/frbr/frbrer/",wn20:"http://www.w3.org/2006/03/wn/wn20/",lsd:"http://linkedwidgets.org/statisticaldata/ontology/",s4envi:"https://w3id.org/def/saref4envi#",crml:"http://semweb.mmlab.be/ns/rml/condition#",lmo:"http://linkedmultimedia.org/sparql-mm/ns/2.0.0/ontology#",ws:"http://www.w3.org/ns/pim/space#",samfl:"http://def.seegrid.csiro.au/ontology/om/sam-lite#",eurostat:"http://wifo5-04.informatik.uni-mannheim.de/eurostat/resource/eurostat/",foam:"https://www.koerperfettwaage-test.de/",ogbd:"http://www.ogbd.fr/2012/ontologie#",cjr:"http://vocab.linkeddata.es/datosabiertos/def/urbanismo-infraestructuras/callejero#",lsqv:"http://lsq.aksw.org/vocab#",graves:"http://rdf.muninn-project.org/ontologies/graves#",static:"http://vocab-ld.org/vocab/static-ld#",fog:"https://w3id.org/fog#",geos:"http://www.telegraphis.net/ontology/geography/geography#",limoo:"http://purl.org/LiMo/0.1/",contsem:"http://contsem.unizar.es/def/sector-publico/contratacion#",pwo:"http://purl.org/spar/pwo/",swpm:"http://spi-fm.uca.es/spdef/models/deployment/swpm/1.0#",edgar:"http://edgarwrap.ontologycentral.com/vocab/edgar#",pco:"http://purl.org/procurement/public-contracts#",sct:"http://snomed.info/id/",roterms:"http://purl.org/wf4ever/roterms#",imf:"http://imf.270a.info/dataset/",dq:"http://def.seegrid.csiro.au/isotc211/iso19115/2003/dataquality#",citof:"http://www.essepuntato.it/2013/03/cito-functions#",phdd:"http://rdf-vocabulary.ddialliance.org/phdd#",bgdbr:"http://bg.dbpedia.org/resource/",asgv:"http://aims.fao.org/aos/agrovoc/",lmm2:"http://www.ontologydesignpatterns.org/ont/lmm/LMM_L2.owl#",step:"http://purl.org/net/step#",locwd:"http://purl.org/locwd/schema#",babelnet:"http://babelnet.org/2.0/",qb4o:"http://purl.org/olap#",lda:"http://purl.org/linked-data/api/vocab#",hico:"http://purl.org/emmedi/hico/",rdact:"http://rdaregistry.info/termList/RDACarrierType/",r4ta:"http://ns.inria.fr/ratio4ta/v1#",trig:"http://www.w3.org/2004/03/trix/rdfg-1/",text:"http://jena.apache.org/text#",form:"http://deductions-software.com/ontologies/forms.owl.ttl#",rdafrbr:"http://rdvocab.info/uri/schema/FRBRentitiesRDA/",omdoc:"http://omdoc.org/ontology/",hto:"http://project-haystack.org/hto#",acrt:"http://privatealpha.com/ontology/certification/1#",olca:"http://www.lingvoj.org/olca#",rut:"http://rdfunit.aksw.org/ns/core#",amalgame:"http://purl.org/vocabularies/amalgame#",rdagrp:"http://rdaregistry.info/termList/groovePitch/",jolux:"http://data.legilux.public.lu/resource/ontology/jolux#",csv:"http://vocab.sindice.net/csv/",merge:"http://jazz.net/ns/lqe/merge/",condition:"http://www.kinjal.com/condition:",mds:"http://doc.metalex.eu/id/",pmd:"https://w3id.org/pmd/co/",lexicon:"http://www.example.org/lexicon#",hlygt:"http://www.holygoat.co.uk/owl/redwood/0.1/tags/",jjd:"http://www.joshuajeeson.com/",osadm:"http://data.ordnancesurvey.co.uk/ontology/admingeo/",rdf123:"http://rdf123.umbc.edu/ns/",gci:"http://ontology.eil.utoronto.ca/GCI/Foundation/GCI-Foundation.owl#",infection:"http://www.agfa.com/w3c/2009/infectiousDisorder#",laabs:"http://dbpedia.org/resource/",location:"http://sw.deri.org/2006/07/location/loc#",gaf:"http://groundedannotationframework.org/",pkgsrc:"http://pkgsrc.co/schema#",dbrc:"http://dbpedia.org/resource/Category:",bis:"http://bis.270a.info/dataset/",locah:"http://data.archiveshub.ac.uk/def/",prof:"http://www.w3.org/ns/dx/prof/",odv:"http://reference.data.gov.uk/def/organogram/",msm:"http://iserve.kmi.open.ac.uk/ns/msm#",lcdr:"http://ns.lucid-project.org/revision/",topo:"http://data.ign.fr/def/topo#",year:"http://www.w3.org/year/",mocanal:"http://www.semanticweb.org/asow/ontologies/2013/9/untitled-ontology-36#",oecc:"http://www.oegov.org/core/owl/cc#",dot:"https://w3id.org/dot#",limo:"http://www.purl.org/limo-ontology/limo#",owlse:"http://www.daml.org/services/owl-s/1.2/generic/Expression.owl#",tm:"http://def.seegrid.csiro.au/isotc211/iso19108/2002/temporal#",escom:"http://vocab.linkeddata.es/datosabiertos/def/comercio/tejidoComercial#",incident:"http://vocab.resc.info/incident#",gt:"https://vocab.eccenca.com/geniustex/",pair:"http://virtual-assembly.org/ontologies/pair#",sto:"https://w3id.org/i40/sto#",llm:"http://lodlaundromat.org/metrics/ontology/",gnm:"http://www.geonames.org/ontology/mappings/",obeu:"http://data.openbudgets.eu/ontology/",reegle:"http://reegle.info/schema#",regorg:"http://www.w3.org/ns/regorg#",aktivesa:"http://sa.aktivespace.org/ontologies/aktivesa#",pmc:"http://identifiers.org/pmc/",airs:"https://raw.githubusercontent.com/airs-linked-data/lov/latest/src/airs_vocabulary.ttl#",odbc:"http://www.openlinksw.com/ontology/odbc#",ceterms:"http://purl.org/ctdl/terms/",crowd:"http://purl.org/crowd/",nxs:"http://www.neclimateus.org/",dio:"https://w3id.org/dio#",rdarm:"http://registry.info/termList/recMedium/",rdafs:"http://rdaregistry.info/termList/fontSize/",sx:"http://shex.io/ns/shex#",zr:"http://explain.z3950.org/dtd/2.0/",rdarr:"http://rdaregistry.info/termList/RDAReductionRatio/",proms:"http://promsns.org/def/proms#",ecgl:"http://schema.geolink.org/",jp1:"http://rdf.muninn-project.org/ontologies/jp1/",uc:"http://ucuenca.edu.ec/ontology#",webservice:"http://www.openlinksw.com/ontology/webservices#",puml:"http://plantuml.com/ontology#",crsw:"http://courseware.rkbexplorer.com/ontologies/courseware#",genre:"http://sparql.cwrc.ca/ontologies/genre#",rdatr:"http://rdaregistry.info/termList/typeRec/",uta:"http://uptheasset.org/ontology#",sru:"http://www.loc.gov/zing/srw/",pv:"http://ns.inria.fr/provoc#",teamwork:"http://topbraid.org/teamwork#",geod:"http://vocab.lenka.no/geo-deling#",demlab:"http://www.demcare.eu/ontologies/demlab.owl#",bevon:"http://rdfs.co/bevon/",muldicat:"http://iflastandards.info/ns/muldicat#",ou:"http://opendata.unex.es/def/ontouniversidad#",olac:"http://www.language-archives.org/OLAC/1.0/",oplcb:"http://www.openlinksw.com/schemas/crunchbase#",ns1:"http://www.w3.org/1999/xhtml/vocab#",ontosec:"http://www.semanticweb.org/ontologies/2008/11/OntologySecurity.owl#",essglobal:"http://purl.org/essglobal/vocab/v1.0/",cpack:"http://cliopatria.swi-prolog.org/schema/cpack#",rdaco:"http://rdaregistry.info/termList/RDAContentType/",cd:"http://citydata.wu.ac.at/ns#",oprovo:"http://openprovenance.org/ontology#",defns:"http://www.openarchives.org/OAI/2.0/",voc:"http://voc.odw.tw/",rdaftn:"http://rdaregistry.info/termList/TacNotation/",mdi:"http://w3id.org/multidimensional-interface/ontology#",glview:"http://schema.geolink.org/dev/view/",omnfed:"http://open-multinet.info/ontology/omn-federation#",basic:"http://def.seegrid.csiro.au/isotc211/iso19103/2005/basic#",clirio:"http://clirio.kaerle.com/clirio.owl#",mml:"http://www.w3.org/1998/Math/MathML/",cmdi:"http://www.clarin.eu/cmd/",oplecrm:"http://www.openlinksw.com/ontology/ecrm#",ha:"http://sensormeasurement.appspot.com/ont/home/homeActivity#",keys:"http://purl.org/NET/c4dm/keys.owl#",lido:"http://www.lido-schema.org/",rdag2:"http://rdvocab.info/ElementsGr2/",eurlex:"http://eur-lex.publicdata.eu/ontology/",crime:"http://purl.org/vocab/reloc/",moo:"http://www.movieontology.org/2009/11/09/movieontology.owl#",soch:"http://kulturarvsdata.se/ksamsok#",maso:"http://securitytoolbox.appspot.com/MASO#",rdafmn:"http://rdaregistry.info/termList/MusNotation/",oplmkt:"http://www.openlinksw.com/ontology/market#",output:"http://volt-name.space/vocab/output#",erce:"http://xxefe.de/",ecglview:"http://schema.geolink.org/view/",roar:"https://w3id.org/roar#",lofv:"http://purl.org/legal_form/vocab#",plg:"http://parliament.uk/ontologies/legislation/",spdx:"http://spdx.org/rdf/terms#",mmt:"http://linkedmultimedia.org/sparql-mm/functions/temporal#",espresup:"http://vocab.linkeddata.es/datosabiertos/def/hacienda/presupuestos#",bsym:"http://bsym.bloomberg.com/sym/",sylld:"http://www.semanticweb.org/syllabus/data/",rdacc:"http://rdaregistry.info/termList/RDAColourContent/",caplibacl:"http://schemas.capita-libraries.co.uk/2015/acl/schema#",ppn:"http://parliament.uk/ontologies/person-name/",kegg:"http://bio2rdf.org/ns/kegg#",vstoi:"http://hadatac.org/ont/vstoi#",vcard2006:"http://www.w3.org/2006/vcard/ns#",gq:"http://genomequest.com/",owsom:"https://onlinesocialmeasures.wordpress.com/",ali:"http://www.niso.org/schemas/ali/1.0/",rdag1:"http://rdvocab.info/Elements/",rdaterm:"http://rdaregistry.info/termList/RDATerms/",gts:"http://resource.geosciml.org/ontology/timescale/gts#",rdasco:"http://rdaregistry.info/termList/soundCont/",fnabox:"http://www.ontologydesignpatterns.org/ont/framenet/abox/",ttp:"http://eample.com/test#",esadm:"http://vocab.linkeddata.es/datosabiertos/def/sector-publico/territorio#",dsn:"http://purl.org/dsnotify/vocab/eventset/",rofch:"http://rdaregistry.info/termList/rofch/",td5:"http://td5.org/#",organ:"http://www.univalle.edu.co/ontologies/Organ#",nlon:"http://lod.nl.go.kr/ontology/",tsn:"http://purl.org/net/tsn#",eem:"http://purl.org/eem#",rofem:"http://rdaregistry.info/termList/rofem/",eccauth:"https://vocab.eccenca.com/auth/",task:"http://deductions.github.io/task-management.owl.ttl#",iana:"http://www.iana.org/assignments/relation/",kml:"http://www.opengis.net/kml/2.2#",door:"http://kannel.open.ac.uk/ontology#",ruto:"http://rdfunit.aksw.org/ns/core#",hr:"http://iserve.kmi.open.ac.uk/ns/hrests#",jpost:"http://rdf.jpostdb.org/ontology/jpost.owl#",logies:"https://data.vlaanderen.be/ns/logies#",ubiq:"http://server.ubiqore.com/ubiq/core#",eccrev:"https://vocab.eccenca.com/revision/",oplweb:"http://www.openlinksw.com/schemas/oplweb#",dcx:"http://dublincore.org/dcx/",rofer:"http://rdaregistry.info/termList/rofer/",navm:"https://w3id.org/navigation_menu#",sakthi:"http://infotech.nitk.ac.in/research-scholars/sakthi-murugan-r/",ssno:"http://www.w3.org/ns/ssn/",rvz:"http://rdfvizler.dyreriket.xyz/vocabulary/core#",lslife:"http://ontology.cybershare.utep.edu/ELSEWeb/elseweb-lifemapper.owl#",diag:"http://www.loc.gov/zing/srw/diagnostic/",oxi:"http://omerxi.com/ontologies/core.owl.ttl#",datex:"http://vocab.datex.org/terms#",pato:"http://purl.obolibrary.org/obo/",lawd:"http://lawd.info/ontology/",newsevents:"http://www.aifb.uni-karlsruhe.de/WBS/uhe/ontologies#",agrovoc:"http://aims.fao.org/aos/agrovoc/",cdao:"http://purl.obolibrary.org/obo/",bb:"http://www.snik.eu/ontology/bb/",sdt:"http://statisticaldata.linkedwidgets.org/terms/",led:"http://led.kmi.open.ac.uk/term/",lmx:"http://www.w3.org/XML/1998/namespace/",mmoon:"http://mmoon.org/mmoon/",munc:"http://ns.inria.fr/munc#",fuseki:"http://jena.apache.org/fuseki#",studiop:"http://purl.org/resource/pilatesstudio/",fntbox:"http://www.ontologydesignpatterns.org/ont/framenet/tbox/",tix:"http://toptix.com/2010/esro/",geojson:"https://purl.org/geojson/vocab#",hva:"http://www.ebusiness-unibw.org/ontologies/hva/ontology#",lheo:"http://www.conjecto.com/ontology/2015/lheo#",fr:"https://w3id.org/fr/def/core#",mexv:"http://mex.aksw.org/mex-algo#",ldl:"https://w3id.org/ldpdl/ns#",ruian:"https://data.cssz.cz/ontology/ruian/",esapar:"http://vocab.linkeddata.es/datosabiertos/def/urbanismo-infraestructuras/aparcamiento#",rdapmt:"http://rdaregistry.info/termList/prodTactile/",csdbp:"http://cs.dbpedia.org/",onisep:"http://rdf.onisep.fr/resource/",efrbroo:"http://erlangen-crm.org/efrbroo/",literal:"http://www.essepuntato.it/2010/06/literalreification/",figigii:"http://www.omg.org/spec/FIGI/GlobalInstrumentIdentifiers/",tb:"https://w3id.org/timebank#",spcm:"http://spi-fm.uca.es/spdef/models/deployment/spcm/1.0#",vidont:"http://vidont.org/",oplres:"http://www.openlinksw.com/ontology/restrictions#",sirene:"https://sireneld.io/vocab/sirene#",rdaemm:"http://rdaregistry.info/termList/emulsionMicro/",fdbp:"http://fr.dbpedia.org/property/",cwl:"https://w3id.org/cwl/cwl#",voidext:"http://rdfs.org/ns/void-ext#",whisky:"http://vocab.org/whisky/terms/",rdag3:"http://rdvocab.info/ElementsGr3/",sgg:"http://www.springernature.com/scigraph/graphs/",planet:"http://dbpedia.org/",lswpm:"http://ontology.cybershare.utep.edu/ELSEWeb/elseweb-lifemapper-parameters.owl#",webac:"http://fedora.info/definitions/v4/webac#",bbccore:"http://www.bbc.co.uk/ontologies/coreconcepts/",orcid:"http://orcid.org/",oils:"http://lemon-model.net/oils#",hello:"https://www.youtube.com/user/SuperTellAFriend/featured/",ago:"http://awesemantic-geo.link/ontology/",pid:"http://permid.org/ontology/organization/",owl2xml:"http://www.w3.org/2006/12/owl2-xml#",traffic:"http://www.sensormeasurement.appspot.com/ont/transport/traffic#",lswmo:"http://ontology.cybershare.utep.edu/ELSEWeb/elseweb-modelling.owl#",dbug:"http://ontologi.es/doap-bugs#",roadmap:"http://mappings.roadmap.org/",umls:"http://bioportal.bioontology.org/ontologies/umls/",gdc:"https://portal.gdc.cancer.gov/cases/",ldt:"https://www.w3.org/ns/ldt#",faostat:"http://reference.eionet.europa.eu/faostat/schema/",open311:"http://ontology.eil.utoronto.ca/open311#",rdfdata:"http://rdf.data-vocabulary.org/rdf.xml#",dicom:"http://purl.org/healthcarevocab/v1#",videogame:"http://purl.org/net/vgo#",vogd:"http://ogd.ifs.tuwien.ac.at/vienna/geo/",bibrm:"http://vocab.ub.uni-leipzig.de/bibrm/",oliasystem:"http://purl.org/olia/system.owl#",physo:"http://merlin.phys.uni.lodz.pl/onto/physo/physo.owl#",radar:"http://www.radar-projekt.org/display/",tui:"http://data.ifs.tuwien.ac.at/study/resource/",apf:"http://jena.apache.org/ARQ/property#",customer:"http://www.valuelabs.com/",yd:"https://yodata.io/",conll:"http://ufal.mff.cuni.cz/conll2009-st/task-description.html#",si:"http://sisteminformasi.com/",mbgd:"http://mbgd.genome.ad.jp/owl/mbgd.owl#",meeting:"http://www.w3.org/2002/07/meeting#",aprov:"http://purl.org/a-proc#",rofrr:"http://rdaregistry.info/termList/rofrr/",pp:"http://peoplesplaces.de/ontology#",escjr:"http://vocab.linkeddata.es/datosabiertos/def/urbanismo-infraestructuras/callejero#",ndnp:"http://chroniclingamerica.loc.gov/terms#",ja:"http://jena.hpl.hp.com/2005/11/Assembler#",jerm:"http://jermontology.org/ontology/JERMOntology#",vocnet:"http://schema.vocnet.org/",iati:"http://purl.org/collections/iati/",bbccms:"http://www.bbc.co.uk/ontologies/cms/",url:"http://schema.org/",mls:"http://www.w3.org/ns/mls#",rdaz:"http://rdaregistry.info/Elements/z/",eccdi:"https://vocab.eccenca.com/di/",cpov:"http://data.europa.eu/m8g/",uom:"http://www.opengis.net/def/uom/OGC/1.0/",rdabf:"http://rdaregistry.info/termList/bookFormat/",bpo:"https://w3id.org/bpo#",memento:"http://mementoweb.org/ns#",doacc:"http://purl.org/net/bel-epa/doacc#",religion:"http://rdf.muninn-project.org/ontologies/religion#",itm:"http://spi-fm.uca.es/spdef/models/genericTools/itm/1.0#",hdo:"http://www.samos.gr/ontologies/helpdeskOnto.owl#",omg:"https://w3id.org/omg#",gg:"http://www.gemeentegeschiedenis.nl/gg-schema#",lemonuby:"http://lemon-model.net/lexica/uby/",afr:"http://purl.allotrope.org/ontologies/result#",glycan:"http://purl.jp/bio/12/glyco/glycan#",fred:"http://www.ontologydesignpatterns.org/ont/fred/domain.owl#",scco:"http://rdf.ebi.ac.uk/terms/surechembl#",nobel:"http://data.nobelprize.org/terms/",ensembl:"http://rdf.ebi.ac.uk/resource/ensembl/",cim:"http://iec.ch/TC57/2013/CIM-schema-cim16#",ln:"https://w3id.org/ln#",sfd:"http://semantic-forms.cc:9112/ldp/",numbers:"http://km.aifb.kit.edu/projects/numbers/",dicera:"http://semweb.mmlab.be/ns/dicera#",wimpo:"http://rdfex.org/withImports?uri=",reg:"http://purl.org/linked-data/registry#",lfov:"https://w3id.org/legal_form#",gns:"http://sws.geonames.org/",esair:"http://vocab.linkeddata.es/datosabiertos/def/medio-ambiente/calidad-aire#",cocoon:"https://w3id.org/cocoon/v1.0#",r3d:"http://www.re3data.org/schema/3-0#",pdf:"http://ns.adobe.com/pdf/1.3/",rpath:"https://w3id.org/lodsight/rdf-path#",ethc:"http://ethoinformatics.org/ethocore/",cbim:"http://www.coinsweb.nl/cbim-2.0.rdf#",amt:"http://academic-meta-tool.xyz/vocab#",dpn:"http://purl.org/dpn#",ofrd:"http://purl.org/opdm/refrigerator#",lgdm:"http://linkedgeodata.org/meta/",its:"http://www.w3.org/2005/11/its/rdf#",gont:"https://gont.ch/",frgeo:"http://rdf.insee.fr/geo/",volt:"http://volt-name.space/ontology/",ioto:"http://www.irit.fr/recherches/MELODI/ontologies/IoT-O#",rdalay:"http://rdaregistry.info/termList/layout/",yaco:"https://www.irit.fr/recherches/MELODI/ontologies/cinema#",lmf:"http://www.lexinfo.net/lmf#",rdaar:"http://rdaregistry.info/termList/AspectRatio/",pep:"https://w3id.org/pep/",dataid:"http://dataid.dbpedia.org/ns/core#",rdacarx:"http://rdaregistry.info/termList/RDACarrierEU/",fp3:"http://vocab.fusepool.info/fp3#",esservicio:"http://vocab.linkeddata.es/datosabiertos/def/sector-publico/servicio#",tx:"http://swtmp.gitlab.io/vocabulary/templates.owl#",datacite:"http://purl.org/spar/datacite/",markus:"http://www.markus.com/",cue:"http://www.clarin.eu/cmdi/cues/display/1.0#",odapps:"http://semweb.mmlab.be/ns/odapps#",llont:"http://www.linklion.org/ontology#",audit:"http://fedora.info/definitions/v4/audit#",biml:"http://schemas.varigence.com/biml.xsd#",seeds:"http://deductions.github.io/seeds.owl.ttl#",pmo:"http://premon.fbk.eu/ontology/core#",amsl:"http://vocab.ub.uni-leipzig.de/amsl/",provinsi:"http://provinsi.com/",ttla:"https://w3id.org/ttla/",mexcore:"http://mex.aksw.org/mex-core#",opa:"https://w3id.org/laas-iot/adream#",imo:"http://imgpedia.dcc.uchile.cl/ontology#",eame:"http://www.semanticweb.org/ontologia_EA#",opllog:"http://www.openlinksw.com/ontology/logging#",ver:"https://w3id.org/version/ontology#",add:"http://www.datatourisme.fr/ontology/core/1.0#",alethio:"http://aleth.io/",rofsm:"http://rdaregistry.info/termList/rofsm/",h2o:"http://def.seegrid.csiro.au/isotc211/iso19150/-2/2012/basic#",tree:"https://w3id.org/tree#",huto:"http://ns.inria.fr/huto/",svcs:"http://rdfs.org/sioc/services#",piero:"http://reactionontology.org/piero/",bdo:"http://purl.bdrc.io/ontology/core/",vir:"http://w3id.org/vir#",um:"http://intelleo.eu/ontologies/user-model/ns/",da:"https://www.wowman.org/index.php?id=1&type=get#",uby:"http://purl.org/olia/ubyCat.owl#",lyon:"http://dbpedia.org/resource/Lyon/",naval:"http://rdf.muninn-project.org/ontologies/naval#",system:"http://www.univalle.edu.co/ontologies/System#",vplan:"http://www.ifs.tuwien.ac.at/~miksa/ontologies/VPlan.owl#",az:"https://w3id.org/people/az/",dk:"http://www.data-knowledge.org/dk/schema/rdf/latest/",cwork:"http://www.bbc.co.uk/ontologies/creativework/",wde:"http://www.wikidata.org/entity/",lovc:"https://w3id.org/lovcube/ns/lovcube#",geovoid:"http://purl.org/geovocamp/ontology/geovoid/",composer:"http://dbpedia.org/ontology/composer/",tadirah:"http://tadirah.dariah.eu/vocab/",travel:"http://www.co-ode.org/roberts/travel.owl#",imind:"http://schema.intellimind.ns/symbology#",afm:"http://purl.allotrope.org/ontologies/material/",eepsa:"https://w3id.org/eepsa#",owms:"http://standaarden.overheid.nl/owms/terms/",bdc:"http://dbpedia.org/resource/Category:",minim:"http://purl.org/minim/minim#",frappe:"http://streamreasoning.org/ontologies/frappe#",rofid:"http://rdaregistry.info/termList/rofid/",rls:"https://w3id.org/lovcube/ns/relovstats#",b3kat:"http://lod.b3kat.de/title/",rdafnv:"http://rdaregistry.info/termList/noteForm/",uneskos:"http://purl.org/voc/uneskos#",sdshare:"http://www.sdshare.org/2012/extension/",vacseen1:"http://www.semanticweb.org/parthasb/ontologies/2014/6/vacseen1/",qms:"http://data.europa.eu/esco/qms#",koly:"http://www.ensias.ma/",l2sp:"http://www.linked2safety-project.eu/properties/",tgm:"http://id.loc.gov/vocabulary/graphicMaterials/",cwlprov:"https://w3id.org/cwl/prov#",rofin:"http://rdaregistry.info/termList/rofin/",rofit:"http://rdaregistry.info/termList/rofit/",eol:"http://purl.org/biodiversity/eol/",ecore:"http://www.eclipse.org/emf/2002/Ecore#",dpv:"http://www.w3.org/ns/dpv#",alice:"http://example.org/",rdapm:"http://rdaregistry.info/termList/RDAproductionMethod/",county:"http://myexample.org/county#",gbol:"http://gbol.life/0.1#",sdmxcode:"http://purl.org/linked-data/sdmx/2009/code#",ims:"http://www.imsglobal.org/xsd/imsmd_v1p2/",ecoll:"http://purl.org/ceu/eco/1.0#",pcit:"http://public-contracts.nexacenter.org/id/propertiesRole/",tarql:"http://tarql.github.io/tarql#",mydb:"http://mydb.org/",id:"http://identifiers.org/",scho:"http://www.scholarlydata.org/ontology/conference-ontology.owl#",duv:"http://www.w3.org/ns/duv#",oplacl:"http://www.openlinksw.com/ontology/acl#",mexalgo:"http://mex.aksw.org/mex-algo#",assoc:"https://w3id.org/associations/vocab#",fun:"http://w3id.org/sparql-generate/fn/",rofrt:"http://rdaregistry.info/termList/rofrt/",meshv:"http://id.nlm.nih.gov/mesh/vocab#",lgt:"http://linkedgadget.com/wiki/Property:",fhir:"http://hl7.org/fhir/",qkdv:"http://qudt.org/vocab/dimensionvector/",rgml:"http://purl.org/puninj/2001/05/rgml-schema#",hasneto:"http://hadatac.org/ont/hasneto#",vehma:"http://deductions.github.io/vehicule-management.owl.ttl#",rdaspc:"http://rdaregistry.info/termList/specPlayback/",conference:"https://w3id.org/scholarlydata/ontology/conference-ontology.owl#",swa:"http://topbraid.org/swa#",uri4uri:"http://uri4uri.net/vocab#",juso:"http://rdfs.co/juso/",bblfish:"http://bblfish.net/people/henry/card#",pmhb:"http://pmhb.org/",cpi:"http://www.ebusiness-unibw.org/ontologies/cpi/ns#",semiot:"http://w3id.org/semiot/ontologies/semiot#",dcosample:"http://info.deepcarbon.net/sample/schema#",mmm:"http://www.mico-project.eu/ns/mmm/2.0/schema#",irsteaont:"http://ontology.irstea.fr/weather/ontology#",yso:"http://www.yso.fi/onto/yso/",brk:"http://brk.basisregistraties.overheid.nl/def/brk#",rdaft:"http://rdaregistry.info/termList/fileType/",smxm:"http://smxm.ga/",mobivoc:"http://schema.mobivoc.org/",rdabs:"http://rdaregistry.info/termList/broadcastStand/",rvl:"http://purl.org/rvl/",ipsv:"http://id.esd.org.uk/list/",dsw:"http://purl.org/dsw/",iiif:"http://iiif.io/api/image/2#",odf:"http://docs.oasis-open.org/ns/office/1.2/meta/odf#",drk:"http://drakon.su/",itcat:"http://th-brandenburg.de/ns/itcat#",pmonb:"http://premon.fbk.eu/ontology/nb#",pmofn:"http://premon.fbk.eu/ontology/fn#",ilap:"http://data.posccaesar.org/ilap/",gvoith:"http://assemblee-virtuelle.github.io/grands-voisins-v2/thesaurus.ttl#",dead:"http://utpl.edu.ec/sbc/data/",adf:"http://purl.allotrope.org/ontologies/datapackage#",emergelm:"http://purl.org/emergel/modules#",mandaat:"http://data.vlaanderen.be/ns/mandaat#",sorg:"http://schema.org/",irstea:"http://ontology.irstea.fr/",dto:"http://www.datatourisme.fr/ontology/core/1.0#",maeco:"http://edg.topbraid.solutions/maeco/",rofrm:"http://rdaregistry.info/termList/rofrm/",dwciri:"http://rs.tdwg.org/dwc/iri/",alg:"http://drakon.su/ADF#",tosh:"http://topbraid.org/tosh#",shui:"https://vocab.eccenca.com/shui/",sdmxm:"http://purl.org/linked-data/sdmx/2009/measure#",neotec:"http://neotec.rc.unesp.br/resource/Neotectonics/",vam:"http://www.metmuseum.org/",lgdt:"http://linkedgeodata.org/triplify/",chear:"http://hadatac.org/ont/chear#",oplli:"http://www.openlinksw.com/schemas/linkedin#",besluit:"http://data.vlaanderen.be/ns/besluit#",srx:"http://www.w3.org/2005/sparql-results#",ondc:"http://www.semanticweb.org/ontologies/2012/1/Ontology1329913965202.owl#",tavprov:"http://ns.taverna.org.uk/2012/tavernaprov/",nkos:"http://w3id.org/nkos#",bds:"http://www.bigdata.com/rdf/search#",gobierno:"http://www.gobierno.es/gobierno/",persee:"http://data.persee.fr/ontology/persee_ontology/",dm2e:"http://onto.dm2e.eu/schemas/dm2e/",ctrl:"https://w3id.org/ibp/CTRLont#",sfn:"http://semweb.datasciencelab.be/ns/sfn#",or:"http://openresearch.org/vocab/",fluidops:"http://www.fluidops.com/",clapit:"http://dati.gov.it/onto/clapit/",nih:"http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl#",one:"https://bioportal.bioontology.org/ontologies/ONE/",pfeepsa:"https://w3id.org/pfeepsa#",nature:"http://deductions.github.io/nature_observation.owl.ttl#",pm:"http://premon.fbk.eu/resource/",rofhf:"http://rdaregistry.info/termList/rofhf/",timex:"http://data.wu.ac.at/ns/timex#",summa:"http://purl.org/voc/summa/",wdtn:"http://www.wikidata.org/prop/direct-normalized/",ppr:"http://purl.org/datanode/ppr/ns/",vsearch:"http://vocab.sti2.at/vsearch#",undata:"http://citydata.wu.ac.at/Linked-UNData/data/",oplwebsrv:"http://www.openlinksw.com/ontology/webservices#",dbfo:"http://dbpedia.org/facts/ontology#",ncicp:"http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl#",voidex:"http://www.swi-prolog.org/rdf/library/",esproc:"http://vocab.linkeddata.es/datosabiertos/def/sector-publico/procedimientos#",isbdu:"http://iflastandards.info/ns/isbd/unc/elements/",metadata:"http://purl.oreilly.com/ns/meta/",scholl:"http://menemeneml.com/school#",veo:"http://linkeddata.finki.ukim.mk/lod/ontology/veo#",olac11:"http://www.language-archives.org/OLAC/1.1/",mem:"http://mementoweb.org/ns#",pcdm:"http://pcdm.org/models#",rdfp:"https://w3id.org/rdfp/",edac:"http://ontology.cybershare.utep.edu/ELSEWeb/elseweb-edac.owl#",legal:"http://www.w3.org/ns/legal#",sgfn:"http://w3id.org/sparql-generate/fn/",rdax:"http://rdaregistry.info/Elements/x/",cubeont:"http://ontology.cube.global/",input:"http://volt-name.space/vocab/input#",ctxdesc:"http://www.demcare.eu/ontologies/contextdescriptor.owl#",brt:"http://brt.basisregistraties.overheid.nl/def/top10nl#",osd:"http://a9.com/-/spec/opensearch/1.1/",ldn:"https://www.w3.org/TR/ldn/#",iter:"http://w3id.org/sparql-generate/iter/",semsur:"http://purl.org/SemSur/",lsq:"http://lsq.aksw.org/vocab#",oplbenefit:"http://www.openlinksw.com/ontology/benefits#",pmovn:"http://premon.fbk.eu/ontology/vn#",lmu:"https://w3id.org/laas-iot/lmu#",ispra:"http://dati.isprambiente.it/ontology/core#",rdapf:"http://rdaregistry.info/termList/presFormat/",cog:"http://purl.org/ontology/cco/core#",remetca:"http://www.purl.org/net/remetca#",mwapi:"https://www.mediawiki.org/ontology#API/",vocals:"http://w3id.org/rsp/vocals#",ucum:"http://purl.oclc.org/NET/muo/ucum/",pand:"http://bag.basisregistraties.overheid.nl/bag/id/pand/",geoloc:"http://deductions.github.io/geoloc.owl.ttl#",beer:"http://beer.com/",edg:"http://edg.topbraid.solutions/model/",refexo:"http://purl.jp/bio/01/refexo#",it:"http://www.influencetracker.com/ontology#",physics:"http://www.astro.umd.edu/~eshaya/astro-onto/owl/physics.owl#",wdv:"http://www.wikidata.org/value/",km4c:"http://www.disit.org/km4city/schema#",neotecbib:"http://neotec.rc.unesp.br/resource/NeotectonicsBibliography/",spv:"http://completeness.inf.unibz.it/sp-vocab#",edgarcik:"http://edgarwrap.ontologycentral.com/cik/",wail:"http://www.eyrie.org/~zednenem/2002/wail/",aozora:"http://purl.org/net/aozora/",sdmxc:"http://purl.org/linked-data/sdmx/2009/concept#",dcodt:"http://info.deepcarbon.net/datatype/schema#",swrc2:"https://www.cs.vu.nl/~mcaklein/onto/swrc_ext/2005/05#",fnom:"https://w3id.org/function/vocabulary/mapping#",bkb:"https://budayakb.cs.ui.ac.id/ns#",cff:"http://purl.oclc.org/NET/ssnx/cf/cf-feature#",roc:"https://w3id.org/ro/curate#",gdpr:"https://vocab.eccenca.com/gdpr/",rami:"http://iais.fraunhofer.de/vocabs/rami#",elod:"http://linkedeconomy.org/ontology#",nosql:"http://purl.org/db/nosql#",oplstocks:"http://www.openlinksw.com/ontology/stocks#",sgiter:"http://w3id.org/sparql-generate/iter/",bioentity:"http://bioentity.io/vocab/",dsv:"https://w3id.org/dsv#",asawoo:"http://liris.cnrs.fr/asawoo/",mus:"http://data.doremus.org/ontology#",cska:"http://pfclitex.com/",s4syst:"https://saref.etsi.org/saref4syst/",ido:"http://purl.obolibrary.org/obo/ido.owl#",provoc:"http://ns.inria.fr/provoc/",dsfv:"http://sws.ifi.uio.no/vocab/dsf/henriwi/dsf#",docker:"http://www.w3.org/ns/bde/docker/",ldqm:"http://linkeddata.es/resource/ldqm/",lg:"https://purl.org/lg/",isidore:"http://www.rechercheisidore.fr/class/",seo:"http://sda.tech/SEOontology/SEO/",changeset:"http://purl.org/vocab/changeset/schema#",dcap:"http://purl.org/ws-mmi-dc/terms/",eccpubsub:"https://vocab.eccenca.com/pubsub/",aml:"https://w3id.org/i40/aml#",swcomp:"https://github.com/ali1k/ld-reactor/blob/master/vocabulary/index.ttl#",connard:"https://mail.google.com/mail/u/1/#",dcodata:"http://info.deepcarbon.net/data/schema#",wikimedia:"http://upload.wikimedia.org/wikipedia/commons/f/f6/",rdacpc:"http://rdaregistry.info/termList/configPlayback/",rdaill:"http://rdaregistry.info/termList/IllusContent/",globalcube:"http://kalmar32.fzi.de/triples/global-cube.ttl#",devuan:"https://devuan.net.br/",ns2:"http://ogp.me/ns#video:",sdterms:"http://statisticaldata.linkedwidgets.org/terms/",dbms:"http://www.openlinksw.com/ontology/dbms-app-ontology#",edr:"https://w3id.org/laas-iot/edr#",loted:"http://loted.eu/ontology#",nno:"https://w3id.org/nno/ontology#",rm:"http://jazz.net/ns/rm#",ca:"http://complyadvantage.com/",wab:"http://wab.uib.no/cost-a32_philospace/wittgenstein.owl#",xslopm:"http://purl.org/net/opmv/types/xslt#",master1:"http://idl.u-grenoble3.fr/",number:"http://km.aifb.kit.edu/projects/numbers/number#",bld:"http://biglinkeddata.com/",d3s:"http://vocbench.solidaridad.cloud/taxonomies#",psv:"http://www.wikidata.org/prop/statement/value/",wsdl:"http://www.w3.org/ns/wsdl-rdf#",vort:"http://rockets.topbraid.solutions/vort/",iso37120:"http://ontology.eil.utoronto.ca/ISO37120.owl#",bdr:"http://purl.bdrc.io/resource/",bob:"http://good.dad/meaning/bob#",ldq:"http://www.linkeddata.es/ontology/ldq#",ifcowl:"http://www.buildingsmart-tech.org/ifcOWL/IFC4_ADD2#",rdare:"http://rdaregistry.info/termList/RDARegionalEncoding/",aseonto:"http://requirement.ase.ru/requirements_ontology#",meat:"http://example.com/",qbe:"http://citydata.wu.ac.at/qb-equations#",maet:"http://edg.topbraid.solutions/taxonomy/macroeconomics/",dby:"http://dbpedia.org/class/yago/",s4ee:"https://w3id.org/saref4ee#",unspsc:"http://ontoview.org/schema/unspsc/1#",efd:"http://data.foodanddrinkeurope.eu/ontology#",trao:"http://linkeddata.finki.ukim.mk/lod/ontology/tao#",rdagen:"http://rdaregistry.info/termList/RDAGeneration/",pbody:"http://reference.data.gov.uk/def/public-body/",aksw:"http://aksw.org/",otl:"https://w3id.org/opentrafficlights#",ontop:"https://w3id.org/ontop/",wn30:"http://purl.org/vocabularies/princeton/wn30/",spvqa:"https://bmake.th-brandenburg.de/spv#",rofim:"http://rdaregistry.info/termList/rofim/",w3cgeo:"http://www.w3.org/2003/01/geo/wgs84_pos#",eustd:"http://eurostat.linked-statistics.org/data#",rdavf:"http://rdaregistry.info/termList/videoFormat/",noise:"http://vocab.linkeddata.es/datosabiertos/def/medio-ambiente/contaminacion-acustica#",datacron:"http://www.datacron-project.eu/datAcron#",pop:"http://wiki.dbpedia.org/",rofsf:"http://rdaregistry.info/termList/rofsf/",geo7:"https://www.geo7.ch/",marcrole:"http://id.loc.gov/vocabulary/relators/",ksam:"http://kulturarvsdata.se/ksamsok#",geor:"http://www.opengis.net/def/rule/geosparql/",rfd:"http://com.intrinsec//ontology#",rdacdt:"http://rdaregistry.info/termList/RDACartoDT/",foaffff:"http://gogl.com/",imas:"https://sparql.crssnky.xyz/imasrdf/URIs/imas-schema.ttl#",tissue:"http://www.univalle.edu.co/ontologies/Tissue#",sohukd:"http://sweetontology.net/humanKnowledgeDomain/",halyard:"http://merck.github.io/Halyard/ns#",ul:"http://underlay.mit.edu/ns/",idot:"http://identifiers.org/idot/",sciprov:"http://sweetontology.net/reprSciProvenance/",ncbigene:"http://identifiers.org/ncbigene/",emergel:"http://purl.org/emergel/core#",apb:"http://www.analysispartners.org/businessmodel/",bsh:"https://brickschema.org/schema/1.1.0/BrickShape#",powla:"http://purl.org/powla/powla.owl#",ods:"http://lod.xdams.org/ontologies/ods/",atlasterms:"http://rdf.ebi.ac.uk/terms/atlas/",dnbt:"http://d-nb.info/standards/elementset/dnb#",estatwrap:"http://ontologycentral.com/2009/01/eurostat/ns#",llr:"http://lodlaundromat.org/resource/",phy:"https://w3id.org/skgo/phy#",obws:"http://delicias.dia.fi.upm.es/ontologies/ObjectWithStates.owl#",llalg:"http://www.linklion.org/algorithm/",esagen:"http://vocab.ciudadesabiertas.es/def/sector-publico/agenda-municipal#",rsctx:"http://softeng.polito.it/rsctx#",rico:"https://www.ica.org/standards/RiC/ontology#",goaf:"http://goaf.fr/goaf#",soma:"http://sweetontology.net/matr/",dpla:"http://dp.la/info/developers/map/",pmopb:"http://premon.fbk.eu/ontology/pb#",kmgeo:"http://km.aifb.kit.edu/services/geo/ontology#",crmeh:"http://purl.org/crmeh#",dm:"http://datamusee.givingsense.eu/onto/",fnml:"http://semweb.mmlab.be/ns/fnml#",ermrk:"http://www.essepuntato.it/2008/12/earmark#",eproc:"http://10.0.3.120/download/eproc_FORN_v02.owl#",bci:"https://w3id.org/BCI-ontology#",dgfr:"http://colin.maudry.com/ontologies/dgfr#",valueflows:"https://w3id.org/valueflows/",oop:"http://w3id.org/oop#",manto:"http://com.vortic3.MANTO/",r4r:"http://guava.iis.sinica.edu.tw/r4r/",modsci:"https://w3id.org/skgo/modsci#",rdaad:"http://rdaregistry.info/Elements/a/datatype/",decprov:"http://promsns.org/def/decprov#",scra:"http://purl.org/net/schemarama#",dqc:"http://semwebquality.org/ontologies/dq-constraints#",gvoi:"http://assemblee-virtuelle.github.io/grands-voisins-v2/gv.owl.ttl#",dcatnl:"http://standaarden.overheid.nl/dcatnl/terms/",oplangel:"http://www.openlinksw.com/schemas/angel#",loci:"http://linked.data.gov.au/def/loci#",daap:"http://daap.dsi.universite-paris-saclay.fr/wiki/",literature:"http://purl.org/net/cnyt-literature#",estatgph:"http://estatwrap.ontologycentral.com/id/nama_aux_gph#",ocds:"http://purl.org/onto-ocds/ocds#",fssp:"http://linkeddata.fssprus.ru/resource/",s3n:"http://w3id.org/s3n/",orgesv2:"http://datos.gob.es/sites/default/files/OntologiaDIR3/orges.owl#",oup:"http://purl.org/ontology-use-patterns#",cbb:"https://data.cbb.omgeving.vlaanderen.be/ns/cbb#",theme:"http://voc.odw.tw/theme/",estrf:"http://vocab.linkeddata.es/datosabiertos/def/transporte/trafico#",vss:"http://automotive.eurecom.fr/vsso#",rofet:"http://rdaregistry.info/termList/rofet/",imjv:"https://data.imjv.omgeving.vlaanderen.be/ns/imjv#",voidwh:"http://www.ics.forth.gr/isl/VoIDWarehouse/VoID_Extension_Schema.owl#",occ:"http://w3id.org/occ#",gmo:"http://purl.jp/bio/10/gmo/",ideotalex:"http://www.ideotalex.eu/datos/recurso/",nas:"https://data.nasa.gov/ontologies/atmonto/NAS#",xbrll:"https://w3id.org/vocab/xbrll#",ii:"http://sparql.cwrc.ca/ontologies/ii#",iotlite:"http://purl.oclc.org/NET/UNIS/fiware/iot-lite#",dmp:"http://www.sysresearch.org/rda-common-dmp#",rimmf:"http://rimmf.com/vocab/",ogdl4m:"https://github.com/martynui/OGDL4M/",odw:"http://odw.tw/",tikag:"https://www.tikag.com/",qk:"http://qudt.org/vocab/quantitykind/",somaoc:"http://sweetontology.net/matrOrganicCompound/",tsnchange:"http://purl.org/net/tsnchange#",crminf:"http://www.cidoc-crm.org/cidoc-crm/CRMinf/",prohow:"https://w3id.org/prohow#",hosp:"http://health.data.gov/def/hospital/",gdprov:"https://w3id.org/GDPRov#",lcsh:"http://id.loc.gov/authorities/subjects/",ecowlim:"http://ecowlim.tfri.gov.tw/lode/resource/",pham:"https://w3id.org/skgo/pham#",nrv:"http://ns.inria.fr/nrv#",gdprtext:"https://w3id.org/GDPRtEXT#",geofabric:"http://linked.data.gov.au/def/geofabric#",gnaf:"http://linked.data.gov.au/def/gnaf#",soproptg:"http://sweetontology.net/propTemperatureGradient/",snac:"http://socialarchive.iath.virginia.edu/",linkrel:"https://www.w3.org/ns/iana/link-relations/relation#",smartapi:"http://smart-api.io/ontology/1.0/smartapi#",ccp:"http://cookingbigdata.com/linkeddata/ccpricing#",oplp:"http://www.openlinksw.com/ontology/purchases#",terms:"http://purl.org/dc/terms/",yandex:"http://yandex.ru/",soreaa:"http://sweetontology.net/realmAtmo/",mexperf:"http://mex.aksw.org/mex-perf#",omnlc:"http://open-multinet.info/ontology/omn-lifecycle#",sfl:"http://data.finlex.fi/schema/sfl/",eproc2:"http://10.0.3.120/download/eproc_FORN_v04.owl#",fel:"http://w3id.org/vcb/fel#",isaterms:"http://purl.org/isaterms/",cwlgit:"https://w3id.org/cwl/view/git/",esdbpr:"http://es.dbpedia.org/resource/",loupe:"http://ont-loupe.linkeddata.es/def/core/",bitl:"http://lib.bit.edu.cn/ontology/1.0/",iab:"https://www.iab.com/guidelines/taxonomy/",s4bldg:"https://w3id.org/def/saref4bldg#",shema:"http://schema.org/",isoadr:"http://reference.data.gov.au/def/ont/iso19160-1-address#",m3:"http://sensormeasurement.appspot.com/m3#",earth:"http://linked.earth/ontology#",ordo:"http://www.orpha.net/ORDO/",ontoneo:"http://purl.obolibrary.org/obo/ontoneo/",cwmo:"http://purl.org/cwmo/#",eqp:"https://data.nasa.gov/ontologies/atmonto/equipment#",lesa:"http://hadatac.org/ont/lesa#",gcon:"https://w3id.org/GConsent#",mdont:"http://ont.matchdeck.com/",wild:"http://purl.org/wild/vocab#",ddb:"http://www.deutsche-digitale-bibliothek.de/edm/",stx:"http://purl.org/cyber/stix#",pplan:"http://purl.org/net/p-plan#",jup:"http://w3id.org/charta77/jup/",sopropp:"http://sweetontology.net/propPressure/",pq:"http://www.wikidata.org/prop/qualifier/",m3lite:"http://purl.org/iot/vocab/m3-lite#",osys:"http://purl.org/olia/system.owl#",hctl:"https://www.w3.org/2019/wot/hypermedia#",stencila:"http://schema.stenci.la/",sopropsl:"http://sweetontology.net/propSpaceLocation/",biolink:"https://w3id.org/biolink/vocab/",lblodlg:"http://data.lblod.info/vocabularies/leidinggevenden/",capes:"http://vocab.capes.gov.br/def/vcav#",esgs:"https://w3id.org/edwin/ontology/",sostc:"http://sweetontology.net/stateChemical/",iaph:"http://www.juntadeandalucia.es/datosabiertos/portal/iaph/dataset/dataset/6c199ca2-8d2e-4c12-833c-f28",extech:"https://w3id.org/executionTechnique/ontology/",sostv:"http://sweetontology.net/stateVisibility/",soproptf:"http://sweetontology.net/propTimeFrequency/",frbroo:"http://iflastandards.info/ns/fr/frbr/frbroo/",sophatmowm:"https://sweetontology.net/phenAtmoWindMesoscale/",losp:"http://sparql.sstu.ru:3030/speciality/",medred:"http://w3id.org/medred/medred#",soprocsc:"http://sweetontology.net/procStateChange/",sopropsp:"http://sweetontology.net/propSpeed/",chemsci:"https://w3id.org/skgo/chemsci#",jsonschema:"https://www.w3.org/2019/wot/json-schema#",vehman:"http://deductions.github.io/vehicule-management.owl.ttl#",skoslex:"https://bp4mc2.org/def/skos-lex#",sorepsc:"http://sweetontology.net/reprSciComponent/",sopropsdis:"http://sweetontology.net/propSpaceDistance/",wotsec:"https://www.w3.org/2019/wot/security#",constant:"http://qudt.org/vocab/constant/",epplan:"https://w3id.org/ep-plan#",sorepsf:"http://sweetontology.net/reprSciFunction/",soreacz:"http://sweetontology.net/realmClimateZone/",sophsy:"http://sweetontology.net/phenSystem/",sorepmo:"http://sweetontology.net/reprMathOperation/",sweet:"http://sweetontology.net/",sosttf:"http://sweetontology.net/stateTimeFrequency/",sopropti:"http://sweetontology.net/propTime/",esagm:"http://vocab.ciudadesabiertas.es/def/sector-publico/agenda-municipal#",soprocp:"http://sweetontology.net/procPhysical/",eppl:"https://w3id.org/ep-plan#",sorelm:"http://sweetontology.net/relaMath/",sopropo:"http://sweetontology.net/propOrdinal/",eccf:"http://data.europa.eu/54i/",iospress:"http://ld.iospress.nl/rdf/ontology/",sorept:"http://sweetontology.net/reprTime/",dave:"http://theme-e.adaptcentre.ie/dave#",dentsci:"https://w3id.org/skgo/dentsci#",soproc:"http://sweetontology.net/proc/",soprops:"http://sweetontology.net/propSpace/",sorepsrs:"http://sweetontology.net/reprSpaceReferenceSystem/",sorepsl:"http://sweetontology.net/reprSciLaw/",soreaas:"http://sweetontology.net/realmAstroStar/",somamin:"http://sweetontology.net/matrMineral/",sophatmow:"http://sweetontology.net/phenAtmoWind/",sopropsdir:"http://sweetontology.net/propSpaceDirection/",sorelh:"http://sweetontology.net/relaHuman/",soreaofl:"http://sweetontology.net/realmOceanFloor/",sostth:"http://sweetontology.net/stateThermodynamic/",sorealc:"http://sweetontology.net/realmLandCoastal/",sorepscd:"http://sweetontology.net/reprSpaceCoordinate/",sopropi:"http://sweetontology.net/propIndex/",sohutr:"http://sweetontology.net/humanTechReadiness/",sostrr:"http://sweetontology.net/stateRoleRepresentative/",sohut:"http://sweetontology.net/humanTransportation/",sohur:"http://sweetontology.net/humanResearch/",pineapple:"http://hexananas.com/pineapple#",sophso:"http://sweetontology.net/phenSolid/",sorepmso:"http://sweetontology.net/reprMathSolution/",sophoc:"http://sweetontology.net/phenOceanCoastal/",sorepmg:"http://sweetontology.net/reprMathGraph/",sophfd:"http://sweetontology.net/phenFluidDynamics/",sopropr:"http://sweetontology.net/propRotation/",sorepmfo:"http://sweetontology.net/reprMathFunctionOrthogonal/",soprope:"http://sweetontology.net/propEnergy/",ldc:"https://tac.nist.gov/tracks/SM-KBP/2018/ontologies/SeedlingOntology#",sopropsh:"http://sweetontology.net/propSpaceHeight/",sorepsu:"http://sweetontology.net/reprSciUnits/",dprov:"http://promsns.org/def/do#",sorepdp:"http://sweetontology.net/reprDataProduct/",sorel:"http://sweetontology.net/rela/",sopropfr:"http://sweetontology.net/propFraction/",soreas:"http://sweetontology.net/realmSoil/",pcdmuse:"http://pcdm.org/use#",skosthes:"http://purl.org/iso25964/skos-thes#",asgs:"http://linked.data.gov.au/def/asgs#",foio:"https://w3id.org/seas/FeatureOfInterestOntology/",misp:"http://purl.org/cyber/misp#",somaae:"http://sweetontology.net/matrAerosol/",trek:"https://w3id.org/trek/",sostri:"http://sweetontology.net/stateRoleImpact/",sorear:"http://sweetontology.net/realmRegion/",sorelcl:"http://sweetontology.net/relaClimate/",inchikey:"https://identifiers.org/inchikey:",sophatmopc:"http://sweetontology.net/phenAtmoPrecipitation/",sohues:"http://sweetontology.net/humanEnvirStandards/",somanr:"http://sweetontology.net/matrNaturalResource/",sopropmf:"http://sweetontology.net/propMassFlux/",sorepm:"http://sweetontology.net/reprMath/",sopropcap:"http://sweetontology.net/propCapacity/",sorep:"http://sweetontology.net/repr/",sorelpr:"http://sweetontology.net/relaProvenance/",mccv:"http://purl.jp/bio/10/mccv#",probont:"http://www.probonto.org/ontology#",sopropfu:"http://sweetontology.net/propFunction/",sopropm:"http://sweetontology.net/propMass/",sopropb:"http://sweetontology.net/propBinary/",sostrt:"http://sweetontology.net/stateRoleTrust/",somarock:"http://sweetontology.net/matrRock/",sorepdsr:"http://sweetontology.net/reprDataServiceReduction/",sophel:"http://sweetontology.net/phenElecMag/",phto:"http://rhizomik.net/ontologies/PlantHealthThreats.owl.ttl#",sorelsp:"http://sweetontology.net/relaSpace/",sorelsc:"http://sweetontology.net/relaSci/",somais:"http://sweetontology.net/matrIsotope/",twitter:"http://stocktwits.com/",somaem:"http://sweetontology.net/matrElementalMolecule/",sostso:"http://sweetontology.net/stateSolid/",sopropef:"http://sweetontology.net/propEnergyFlux/",soreps:"http://sweetontology.net/reprSpace/",sost:"http://sweetontology.net/state/",sopropcat:"http://sweetontology.net/propCategorical/",d2s:"https://w3id.org/d2s/",proton:"http://www.ontotext.com/proton/",sosttg:"http://sweetontology.net/stateTimeGeologic/",sorealp:"http://sweetontology.net/realmLandProtected/",sorepsp:"http://sweetontology.net/reprSciProvenance/",somapl:"http://sweetontology.net/matrPlant/",sophatmos:"http://sweetontology.net/phenAtmoSky/",matvoc:"http://stream-ontology.com/matvoc/",sopropdifu:"http://sweetontology.net/propDiffusivity/",edupro:"http://ns.inria.fr/semed/eduprogression#",sorealo:"http://sweetontology.net/realmLandOrographic/",sophcr:"http://sweetontology.net/phenCryo/",sophec:"http://sweetontology.net/phenEcology/",sorepdf:"http://sweetontology.net/reprDataFormat/",sostsy:"http://sweetontology.net/stateSystem/",soph:"http://sweetontology.net/phen/",sorepsme:"http://sweetontology.net/reprSciMethodology/",sorepdsv:"http://sweetontology.net/reprDataServiceValidation/",sopropsm:"http://sweetontology.net/propSpaceMultidimensional/",soreahb:"http://sweetontology.net/realmHydroBody/",biogrid:"http://thebiogrid.org/",soprop:"http://sweetontology.net/prop/",sostb:"http://sweetontology.net/stateBiological/",sosto:"http://sweetontology.net/stateOrdinal/",sorelch:"http://sweetontology.net/relaChemical/",sopropcou:"http://sweetontology.net/propCount/",soreao:"http://sweetontology.net/realmOcean/",sorepmf:"http://sweetontology.net/reprMathFunction/",sorelph:"http://sweetontology.net/relaPhysical/",soreac:"http://sweetontology.net/realmCryo/",sophei:"http://sweetontology.net/phenEnvirImpact/",sophst:"http://sweetontology.net/phenStar/",sorelt:"http://sweetontology.net/relaTime/",sophcy:"http://sweetontology.net/phenCycle/",sorepdsg:"http://sweetontology.net/reprDataServiceGeospatial/",sorepmst:"http://sweetontology.net/reprMathStatistics/",soreabb:"http://sweetontology.net/realmBiolBiome/",somaind:"http://sweetontology.net/matrIndustrial/",sopropdife:"http://sweetontology.net/propDifference/",soreaaw:"http://sweetontology.net/realmAtmoWeather/",somac:"http://sweetontology.net/matrCompound/",somaw:"http://sweetontology.net/matrWater/",ciao:"http://ciao.it/",sohuj:"http://sweetontology.net/humanJurisdiction/",somains:"http://sweetontology.net/matrInstrument/",sophatmofo:"http://sweetontology.net/phenAtmoFog/",sopropq:"http://sweetontology.net/propQuantity/",sorepsd:"http://sweetontology.net/reprSpaceDirection/",atts:"https://data.nasa.gov/ontologies/atmonto/general#",sopropche:"http://sweetontology.net/propChemical/",sorepds:"http://sweetontology.net/reprDataService/",sorepts:"http://sweetontology.net/reprTimeSeason/",ingredient:"http://www.owl-ontologies.com/test.owl/ingredient/",sophft:"http://sweetontology.net/phenFluidTransport/",sophpc:"http://sweetontology.net/phenPlanetClimate/",sophatmoc:"http://sweetontology.net/phenAtmoCloud/",sophcm:"http://sweetontology.net/phenCycleMaterial/",sorepdsa:"http://sweetontology.net/reprDataServiceAnalysis/",sopropcon:"http://sweetontology.net/propConductivity/",osmm:"https://www.openstreetmap.org/meta/",sopropdr:"http://sweetontology.net/propDimensionlessRatio/",somael:"http://sweetontology.net/matrElement/",somarocki:"http://sweetontology.net/matrRockIgneous/",lprov:"http://id.learning-provider.data.ac.uk/terms#",donto:"http://reference.data.gov.au/def/ont/dataset#",sopropcha:"http://sweetontology.net/propCharge/",sophwn:"http://sweetontology.net/phenWaveNoise/",somaf:"http://sweetontology.net/matrFacility/",hdgi:"https://w3id.org/hdgi#",snomedct:"http://purl.bioontology.org/ontology/SNOMEDCT/",beo:"https://w3id.org/beo#",somab:"http://sweetontology.net/matrBiomass/",sophb:"http://sweetontology.net/phenBiol/",country:"http://eulersharp.sourceforge.net/2003/03swap/countries#",bldont:"http://ont.biglinkeddata.com/",sorepdm:"http://sweetontology.net/reprDataModel/",sostrg:"http://sweetontology.net/stateRoleGeographic/",somaeq:"http://sweetontology.net/matrEquipment/",sophod:"http://sweetontology.net/phenOceanDynamics/",somaen:"http://sweetontology.net/matrEnergy/",sohuecons:"http://sweetontology.net/humanEnvirConservation/",soreaabl:"http://sweetontology.net/realmAtmoBoundaryLayer/",sopropst:"http://sweetontology.net/propSpaceThickness/",soreal:"http://sweetontology.net/realmLandform/",gleio:"http://lei.info/gleio/",eupont:"http://elite.polito.it/ontologies/eupont.owl#",sophatmot:"http://sweetontology.net/phenAtmoTransport/",idsc:"https://w3id.org/idsa/code/",soman:"http://sweetontology.net/matrAnimal/",taxref:"http://taxref.mnhn.fr/lod/taxon/",somas:"http://sweetontology.net/matrSediment/",esbici:"http://vocab.ciudadesabiertas.es/def/transporte/bicicleta-publica#",sophatmol:"http://sweetontology.net/phenAtmoLightning/",istex:"https://data.istex.fr/ontology/istex#",sostf:"http://sweetontology.net/stateFluid/",mmms:"http://ldf.fi/schema/mmm/",sophatmofr:"http://sweetontology.net/phenAtmoFront/",sophsyc:"http://sweetontology.net/phenSystemComplexity/",soprocc:"http://sweetontology.net/procChemical/",sostre:"http://sweetontology.net/stateRealm/",sophw:"http://sweetontology.net/phenWave/",schoi:"https://w3id.org/scholarlydata/ontology/indicators-ontology.owl#",sosttc:"http://sweetontology.net/stateTimeCycle/",sostti:"http://sweetontology.net/stateTime/",soprocw:"http://sweetontology.net/procWave/",sophatmops:"http://sweetontology.net/phenAtmoPressure/",sostsb:"http://sweetontology.net/stateSpectralBand/",ocsw:"http://data.diekb.org/def/ocsw#",cci:"http://cookingbigdata.com/linkeddata/ccinstances#",sophr:"http://sweetontology.net/phenReaction/",atd:"https://data.nasa.gov/ontologies/atmonto/data#",dbm:"http://purl.org/net/dbm/ontology#",sostrc:"http://sweetontology.net/stateRoleChemical/",sophm:"http://sweetontology.net/phenMixing/",somaio:"http://sweetontology.net/matrIon/",osmt:"https://wiki.openstreetmap.org/wiki/Key:",sorepsg3:"http://sweetontology.net/reprSpaceGeometry3D/",sostsp:"http://sweetontology.net/stateSpace/",soreaah:"http://sweetontology.net/realmAstroHelio/",soreptd:"http://sweetontology.net/reprTimeDay/",cbs:"http://betalinkeddata.cbs.nl/def/cbs#",lv2:"http://lv2plug.in/ns/lv2core/",ggbn:"http://data.ggbn.org/schemas/ggbn/terms/",sohu:"http://sweetontology.net/human/",sophatmo:"http://sweetontology.net/phenAtmo/",sostrb:"http://sweetontology.net/stateRoleBiological/",sostdp:"http://sweetontology.net/stateDataProcessing/",sopropt:"http://sweetontology.net/propTemperature/",cfrl:"http://linkeddata.finki.ukim.mk/lod/ontology/cfrl#",sophfi:"http://sweetontology.net/phenFluidInstability/",mbkeys:"https://pastebin.com/ThBfphb8#",pnv:"https://w3id.org/pnv#",sophhe:"http://sweetontology.net/phenHelio/",ccomid:"http://www.ontologyrepository.com/CommonCoreOntologies/Mid/",sostp:"http://sweetontology.net/statePhysical/",omop:"http://api.ohdsi.org/WebAPI/vocabulary/concept/",rank:"http://www.ontotext.com/owlim/RDFRank#",sostef:"http://sweetontology.net/stateEnergyFlux/",sophen:"http://sweetontology.net/phenEnergy/",wds:"http://www.wikidata.org/entity/statement/",asio:"http://purl.org/hercules/asio/core#",sostss:"http://sweetontology.net/stateSpaceScale/",omim:"http://purl.bioontology.org/ontology/OMIM/",soreaer:"http://sweetontology.net/realmEarthReference/",soreaofe:"http://sweetontology.net/realmOceanFeature/",somapa:"http://sweetontology.net/matrParticle/",malaka:"http://george.gr/",sohueccont:"http://sweetontology.net/humanEnvirControl/",compub:"https://sireneld.io/vocab/compub#",sostst:"http://sweetontology.net/stateStorm/",she:"http://shacleditor.org/",sostro:"http://sweetontology.net/stateRole/",sophhy:"http://sweetontology.net/phenHydro/",sorepsmo:"http://sweetontology.net/reprSciModel/",sorealv:"http://sweetontology.net/realmLandVolcanic/",sophgt:"http://sweetontology.net/phenGeolTectonic/",ccsla:"http://cookingbigdata.com/linkeddata/ccsla#",oplsoft:"http://www.openlinksw.com/ontology/software#",mobiliteit:"https://data.vlaanderen.be/ns/mobiliteit#",s4city:"https://saref.etsi.org/saref4city/",io:"https://iaco.me/",sorealf:"http://sweetontology.net/realmLandFluvial/",sohuc:"http://sweetontology.net/humanCommerce/",sopho:"http://sweetontology.net/phenOcean/",somamic:"http://sweetontology.net/matrMicrobiota/",sohuea:"http://sweetontology.net/humanEnvirAssessment/",sorealg:"http://sweetontology.net/realmLandGlacial/",soreaab:"http://sweetontology.net/realmAstroBody/",sostsc:"http://sweetontology.net/stateSpaceConfiguration/",sophgs:"http://sweetontology.net/phenGeolSeismicity/",gx:"https://graphite.synaptica.net/extension/",gas:"http://www.bigdata.com/rdf/gas#",soall:"http://sweetontology.net/sweetAll/",sophgg:"http://sweetontology.net/phenGeolGeomorphology/",brot:"https://w3id.org/brot#",sorealt:"http://sweetontology.net/realmLandTectonic/",oco:"https://w3id.org/oc/ontology/",say:"http://example.org/say/",sohua:"http://sweetontology.net/humanAgriculture/",iaco:"https://iaco.me/",dfcb:"http://datafoodconsortium.org/ontologies/DFC_BusinessOntology.owl#",birthdate:"http://schema.org/birthDate/",atm:"https://data.nasa.gov/ontologies/atmonto/ATM#",docam:"https://www.docam.ca/glossaurus/",arp:"http://www.arpenteur.org/ontology/Arpenteur.owl#",dfc:"http://datafoodconsortium.org/ontologies/DFC_FullModel.owl#",sophg:"http://sweetontology.net/phenGeol/",taxrefprop:"http://taxref.mnhn.fr/lod/property/",ei2a:"http://opendata.aragon.es/def/ei2a#",sostsl:"http://sweetontology.net/stateSpectralLine/",sohud:"http://sweetontology.net/humanDecision/",wasa:"http://vocab.sti2.at/wasa/",sophgv:"http://sweetontology.net/phenGeolVolcano/",osmrel:"https://www.openstreetmap.org/relation/",soreala:"http://sweetontology.net/realmLandAeolian/",dd:"http://example.org/dummydata/",waa:"http://purl.oclc.org/NET/WebApiAuthentication#",ci:"https://privatealpha.com/ontology/content-inventory/1#",s4agri:"https://saref.etsi.org/saref4agri/",bs:"https://w3id.org/bs#",fibo:"https://spec.edmcouncil.org/fibo/ontology/master/latest/",fernanda:"http://fernanda.nl/",uimo:"http://vocab.sti2.at/uimo/",persoon:"http://data.vlaanderen.be/ns/persoon#",bperson:"http://data.vlaanderen.be/ns/persoon#",ld:"http://linkeddata.ru/",saref4envi:"https://saref.etsi.org/saref4envi/",trak:"https://trakmetamodel.sourceforge.io/vocab/rdf-schema.rdf#",s4ener:"https://saref.etsi.org/saref4ener/",wotc:"http://purl.org/wot-catalogue#",osmway:"https://www.openstreetmap.org/way/",sorea:"http://sweetontology.net/realm/",sophgf:"http://sweetontology.net/phenGeolFault/",osmnode:"https://www.openstreetmap.org/node/",oplfeat:"http://www.openlinksw.com/ontology/features#",mgv:"http://mangaview.fr/mgv#",ccr:"http://cookingbigdata.com/linkeddata/ccregions#",ogura:"https://sparql.crssnky.xyz/Ogura_Hyakunin_Isshu_LinkedRDF/URIs/Ogura_Hyakunin_Isshu_schema.ttl#",knows:"http://semantic.komc/usu/2020/knows#",ldes:"https://w3id.org/ldes#",movieo:"http://movie.com/ontology/",lexicog:"http://www.w3.org/ns/lemon/lexicog#",toaru:"https://metadata.moe/toaru-sparql/elements/",eppo:"https://gd.eppo.int/taxon/",gco:"http://purl.jp/bio/12/glyco/conjugate#",ebg:"http://data.businessgraph.io/ontology#",mpg123:"https://devuan.net.br/wiki/mpg123/",univ:"http://univ.io/",jur:"http://sweet.jpl.nasa.gov/2.3/humanJurisdiction.owl#",motogp:"http://www.motogp.com/",mr:"http://marineregions.org/ns/ontology#",dbonto:"http://dbepedia.org/ontology/",bao:"http://www.bioassayontology.org/bao#",quran:"http://khalidaloufi.sa/quran#",estraf:"http://vocab.ciudadesabiertas.es/def/transporte/trafico#",srv:"http://www.daml.org/services/owl-s/1.2/Service.owl#",cto:"https://w3id.org/cto#",maroc:"http://fr.dbpedia.org/page/Maroc/",mltd:"https://mltd.pikopikopla.net/mltd-schema#",cts:"http://rdf.cdisc.org/ct/schema#",esconv:"http://vocab.ciudadesabiertas.es/def/sector-publico/convenio#",prismdb:"https://prismdb.takanakahiko.me/prism-schema.ttl#",rl:"http://rl.com/resources/",hola:"https://moodle.insa-lyon.fr/course/view.php?id=",kko:"http://kbpedia.org/kko/rc/",pgxo:"http://pgxo.loria.fr/",melding:"http://lblod.data.gift/vocabularies/automatische-melding/",ble:"http://vocab.rapidthings.eu/ns/ble.ttl#",geodcat:"http://data.europa.eu/930/",ams:"http://data.amadeus.com/",cso:"http://cso.kmi.open.ac.uk/schema/cso/",marcgt:"https://id.loc.gov/vocabulary/marcgt/",accid:"http://pid.accurids.com/",ibeacon:"http://vocab.rapidthings.eu/ns/apple/ibeacon.ttl#",nsg:"https://neuroshapes.org/",rdasource:"http://rdaregistry.info/termList/RDARecordingSources/",i18n:"https://www.w3.org/ns/i18n#",contry:"http://dbpedia.org/resource/Lyon#",gom:"https://w3id.org/gom#",rdapol:"http://rdaregistry.info/termList/RDAPolarity/",la:"https://linked.art/ns/terms/",vlueprint:"https://vlueprint.org/schema/",fx:"http://sparql.xyz/facade-x/ns/",xyz:"http://sparql.xyz/facade-x/data/",mag:"https://makg.org/property/",mdcs:"https://mdcs.monumentenkennis.nl/damageatlas/ontology#",sty:"http://purl.bioontology.org/ontology/STY/",karstlink:"https://ontology.uis-speleo.org/ontology/#",rdaut:"http://rdaregistry.info/termList/RDAUnitOfTime/",tso:"https://w3id.org/tso#",contax:"https://w3id.org/con-tax#",rdat:"http://rdaregistry.info/Elements/t/",dom:"https://html.spec.whatwg.org/#",esautob:"http://vocab.ciudadesabiertas.es/def/transporte/autobus#",oeso:"http://www.opensilex.org/vocabularies/oeso#",w3id:"https://w3id.org/",ssnx:"http://purl.oclc.org/NET/ssnx/ssn#",bop:"https://w3id.org/bop#",vph:"http://purl.org/ozo/vph.owl#",rdaio:"http://rdaregistry.info/Elements/i/object/",hops:"https://rdf.ag/o/hops#",w3geo:"http://www.w3.org/2003/01/geo/wgs84_pos#",rdaep:"http://rdaregistry.info/termList/RDAExtensionPlan/",datagc:"https://data.grottocenter.org/ldp/",esempleo:"http://vocab.ciudadesabiertas.es/def/sector-publico/empleo#",rpg:"http://rpg.data.is4.site/",rofchrda:"http://rdaregistry.info/termList/rofchrda/",srr:"https://w3id.org/srr#",samian:"http://lod.archaeology.link/data/samian/",check:"http://pornhub.com/",rdaao:"http://rdaregistry.info/Elements/a/object/",matrycs:"http://matrycs.com/",kpd:"http://purl.org/kpd/",freq:"http://purl.org/cld/freq/",smithy:"https://awslabs.github.io/smithy/rdf-1.0#",itops:"https://vocab.eccenca.com/itops/",slm:"http://urn.fi/URN:NBN:fi:au:slm:",rdaxd:"http://rdaregistry.info/Elements/x/datatype/",mnx:"https://rdf.metanetx.org/schema/",rdatd:"http://rdaregistry.info/Elements/t/datatype/",mesh2021:"http://id.nlm.nih.gov/mesh/2021/",textgrid:"https://textgridrep.org/",rdamo:"http://rdaregistry.info/Elements/m/object/",rdato:"http://rdaregistry.info/Elements/t/object/",bdg:"http://data.bigdatagrapes.eu/resource/ontology/",rdaed:"http://rdaregistry.info/Elements/e/datatype/",rdaid:"http://rdaregistry.info/Elements/i/datatype/",seasd:"https://w3id.org/seas/",rdatb:"http://rdaregistry.info/termList/RDATypeOfBinding/",bleadapter:"http://vocab.rapidthings.eu/ns/ble/adapter.ttl#",vr:"https://www.w3.org/2018/credentials/v1/",epcis:"https://ns.gs1.org/epcis/",sou:"http://qudt.org/vocab/sou/",memorix:"http://memorix.io/ontology#",lado:"http://archaeology.link/ontology#",rdan:"http://rdaregistry.info/Elements/n/",oghamonto:"http://ontology.ogham.link/",signify:"http://purl.org/signify/ns#",comp:"http://semweb.mmlab.be/ns/rml-compression#",rdand:"http://rdaregistry.info/Elements/n/datatype/",rdamd:"http://rdaregistry.info/Elements/m/datatype/",m8g:"http://data.europa.eu/m8g/",rdaxo:"http://rdaregistry.info/Elements/x/object/",cerealstoo:"http://rdf.ag/o/cerealstoo#",faas:"http://semantic-faas.com/ontology#",rdano:"http://rdaregistry.info/Elements/n/object/",cinema:"http://www.semanticweb.org/julien/morgann/cinema#",idpo:"https://w3id.org/idpo#",kdsf:"https://kerndatensatz-forschung.de/version1/technisches_datenmodell/owl/kdsf.owl#",rdawd:"http://rdaregistry.info/Elements/w/datatype/",rdatask:"http://rdaregistry.info/termList/RDATasks/",bcom:"https://w3id.org/bcom#",spec:"http://www.w3.org/ns/spec#",arena:"https://solid.ti.rw.fau.de/public/ns/arena#",ch:"https://schema.ld.admin.ch/",hpont:"https://w3id.org/hpont#",rdap:"http://rdaregistry.info/Elements/p/",cbv:"https://ns.gs1.org/cbv/",rdamat:"http://rdaregistry.info/termList/RDAMaterial/",ogham:"http://lod.ogham.link/data/",oidc:"http://www.w3.org/ns/solid/oidc#",rdapath:"http://rdaregistry.info/termList/RDARecordingMethods/",rdasca:"http://rdaregistry.info/termList/scale/",eurio:"http://data.europa.eu/s66#",citedcat:"https://w3id.org/citedcat-ap/",mrk:"http://www.mydomain.org/Mrk-ns#",nprl:"http://data.nobelprize.org/resource/laureate/",folio:"http://IBCNServices.github.io/Folio-Ontology/Folio.owl#",rdawo:"http://rdaregistry.info/Elements/w/object/",rdapd:"http://rdaregistry.info/Elements/p/datatype/",biocrm:"http://ldf.fi/schema/bioc/",ofn:"http://www.ontotext.com/sparql/functions/",rofsfrda:"http://rdaregistry.info/termList/rofsfrda/",paf:"https://paf.link/",rofitrda:"http://rdaregistry.info/termList/rofitrda/",bcfowl:"http://lbd.arch.rwth-aachen.de/bcfOWL#",rdaim:"http://rdaregistry.info/termList/RDAInteractivityMode/",luigiusai:"https://www.luigiusai.it/wp#",nanopub:"http://www.nanopub.org/nschema#",roffgrda:"http://rdaregistry.info/termList/roffgrda/",encargado:"http://semRAT.edu/",poke:"https://pokemonkg.org/ontology#",aspect:"http://purl.org/aspect/",react:"https://w3id.org/react#",eep:"https://w3id.org/eep#",uberon:"http://purl.obolibrary.org/obo/UBERON_",cpc:"https://data.epo.org/linked-data/def/cpc/",cpg:"http://modellingdh.github.io/ont/odp/pgc/",bag2:"http://bag.basisregistraties.overheid.nl/def/bag#",rmlt:"http://semweb.mmlab.be/ns/rml-target#",ea:"http://eaontology.protect.linkeddata.es/def/",opltw:"http://www.openlinksw.com/schemas/twitter#",tci:"https://w3id.org/lbs/tci#",cgo:"https://www.tno.nl/agrifood/ontology/common-greenhouse-ontology#",s223:"http://data.ashrae.org/standard223#",aff:"https://w3id.org/affectedBy#",xmlns:"http://xmlns.com/foaf/0.1/",gax:"http://w3id.org/gaia-x/core#",setl:"http://purl.org/twc/vocab/setl/",lsqr:"http://lsq.aksw.org/",mrt:"http://marineregions.org/ns/placetypes#",djo:"http://purl.org/datajourneys/",srtun:"https://www.inf.bi.rub.de/srtun#",ghga:"http://w3id.org/ghga/",bau:"https://terminology.fraunhofer.de/voc/bau#",srmo:"https://w3id.org/srmo#",nsd:"https://w3id.org/nsd#",hqdmontol:"http://www.semanticweb.org/magma-core/ontologies/hqdm#",srt:"http://w3id.org/srt#",ewg:"http://ethoinformatics.org/",generiek:"https://data.vlaanderen.be/ns/generiek#",ontobras:"http://www.semanticweb.org/fefar/ontologies/ontobras#",m4i:"http://w3id.org/nfdi4ing/metadata4ing#",olias:"http://purl.org/olia/system.owl#",wfont:"https://w3id.org/wfont#",rc:"https://w3id.org/rc#",ldpsc:"https://solid.ti.rw.fau.de/public/ns/stream-containers#",interop:"http://www.w3.org/ns/solid/interop#",ppeer:"http://parliament.uk/ontologies/peerage/",esc:"https://solid.ti.rw.fau.de/public/ns/event-sourcing-containers#",walmart:"https://www.amazon.de/",quid:"https://w3id.org/quid/",wdno:"http://www.wikidata.org/prop/novalue/",rdaeo:"http://rdaregistry.info/Elements/e/object/",edu:"https://schema.edu.ee/",stix:"http://purl.org/cyber/stix#",paam:"https://lod.mediathek-tanz-theater.de/schema/paam/",eb:"https://w3id.org/eb#",hqdm:"http://www.semanticweb.org/hqdm#",gufo:"http://purl.org/nemo/gufo#",raum:"https://terminology.fraunhofer.de/voc/raum#",caso:"http://www.w3id.org/def/caso#",lds:"https://solid.ti.rw.fau.de/public/ns/linked-data-structures#",jsonld:"http://www.w3.org/ns/json-ld#",magmardl:"http://www.semanticweb.org/magma-core/rdl#",dsd:"https://w3id.org/dsd#",godaddy:"https://sso.godaddy.com/",asf:"https://www.stm-assoc.org/asf/",lrcommon:"http://landregistry.data.gov.uk/def/common/",kgi:"http://ns.inria.fr/kg/index#",marc:"http://www.loc.gov/MARC21/slim/",ofo:"https://w3id.org/ofo#",hni:"https://collectiedata.hetnieuweinstituut.nl/",feed:"https://www.feedipedia.org/",magmauser:"http://www.semanticweb.org/magma-core/user#",archivo:"https://archivo.dbpedia.org/onto#",rto:"https://w3id.org/rail/topo#",osdu:"https://w3id.org/OSDU#",diso:"https://purls.helmholtz-metadaten.de/diso#",lbdserver:"https://w3id.org/lbdserver#",bdsubj:"https://purl.org/fidbaudigital/subjects#",nomo:"https://nomenclature.info/nom/ontology/",rro:"http://semanticweb.org/patricia/ontologies/rro#",conllu:"https://universaldependencies.org/format.html#",value:"http://gfgfd.vs/",chameo:"https://w3id.org/emmo/domain/characterisation-methodology/chameo#",tern:"http://w3id.org/tern/ontologies/tern/",sds:"https://w3id.org/sds#",respond:"https://w3id.org/respond#",covido:"https://w3id.org/CovidO#",rsx:"http://rdf4j.org/shacl-extensions#",linkml:"https://w3id.org/linkml/",rdb:"http://www.dbs.cs.uni-duesseldorf.de/RDF/relational#",stirdata:"https://w3id.org/stirdata/vocabulary/",robotarm:"https://solid.ti.rw.fau.de/public/ns/robotArm#",nom:"https://nomenclature.info/nom/",nbo:"http://data.bioontology.org/ontologies/NBO/",fpr:"http://www.filmstandards.org/schemas/filmportal_relations#",weki:"https://en.wikipedia.org/wiki/",experts:"http://emmo.info/emmo/application/maeo/experts#",tro:"https://w3id.org/TRO/",oeo:"http://openenergy-platform.org/ontology/oeo/",lbds:"https://w3id.org/lbdserver#",itcrdf:"http://www.w3.org/2005/11/its/rdf#",perscido:"https://perscido.univ-grenoble-alpes.fr/",express:"https://w3id.org/express#",pgo:"http://ii.uwb.edu.pl/pgo#",rsp:"http://www.researchspace.org/resource/",dsi:"https://data.dsi.omgeving.vlaanderen.be/ns/dsi#",chemrof:"https://w3id.org/chemrof/",dmo:"https://w3id.org/dmo#",tempo:"http://purl.org/tempo/",cido:"http://purl.obolibrary.org/obo/cido.owl/",icon:"https://w3id.org/icon/ontology/",rnce:"https://data.cultureelerfgoed.nl/id/rnce#",linkedart:"https://linked.art/ns/terms/",osmo:"https://purl.org/vimmp/osmo#",rism:"http://rism.online/",veelana:"http://onlyfans.com/veelana/",ultragaz:"https://ultragaz24horas.com/",dbd:"http://dbpedia.org/datatype/",roh:"http://w3id.org/roh#",vntourism:"http://www.semanticweb.org/minhn/ontologies/2021/0/vntourism#",rtedurp:"http://purl.org/eduo/rtedurp/",chess:"http://purl.org/NET/rdfchess/ontology/",raad:"https://raadzaam.nl/schema/",dqvno:"https://data.norge.no/vocabulary/dqvno#",ttrpg:"https://w3id.org/TTRpg#",era:"http://data.europa.eu/949/",iddo:"https://w3id.org/iddo#",bp3:"http://www.biopax.org/release/biopax-level3.owl#",vl:"https://version.link/",fso:"https://w3id.org/fso#",consolid:"https://w3id.org/consolid#",gql:"http://www.openlinksw.com/schemas/graphql#",kokot:"http://www.koko.t/",besluitvor:"https://data.vlaanderen.be/ns/besluitvorming#",ammo:"http://ldf.fi/schema/ammo/",rcgs:"https://collection.rcgs.jp/terms/",pubchem:"https://pubchem.ncbi.nlm.nih.gov/",ufo:"http://ufo.com/#",mondo:"http://purl.obolibrary.org/obo/",cvb:"http://rdfs.org/resume-rdf/base.rdfs#",film:"http://semantics.id/ns/example/film/",iottta:"https://w3id.org/iot-tta#",grscicoll:"https://www.gbif.org/grscicoll/collection/",nen2660:"https://w3id.org/nen2660/def#",thub:"http://vocabularis.crai.ub.edu/thub/",dcb:"http://dbpedia.org/resource/Category:",apods:"http://activitypods.org/ns/core#",skosm:"http://www.w3.org/2004/02/skos/mapping#",nalt:"https://lod.nal.usda.gov/nalt/",version:"https://version.link/",koko:"https://seznam.cz/",bmp:"http://w3id.org/bmp#",coy:"https://schema.coypu.org/global#",dcatno:"https://data.norge.no/vocabulary/dcatno#",yanice:"http://yanice-boady.webflow.io/",fdp:"https://w3id.org/fdp/fdp-o#",vcs:"https://data.vlaanderen.be/ns/chemische_stof#",dick:"http://pornhub.com/",vhbieo:"https://w3id.org/vhbieo#",ntp:"https://schema.finto.fi/ntp#",ceox:"https://linkeddata.cultureelerfgoed.nl/def/ceox#",lis:"http://rds.posccaesar.org/ontology/lis14/rdl/",lib:"http://purl.org/library/",goavoc:"http://bio2rdf.org/goa_vocabulary:",crmsci:"http://cidoc-crm.org/crmsci/",hyr:"https://w3id.org/simulation/data/",hmas:"https://purl.org/hmas/",nutscode:"http://data.europa.eu/nuts/code/",dbpg:"http://dbpedia.org/page/",lcnaf:"http://id.loc.gov/authorities/names/",ncbi:"https://www.ncbi.nlm.nih.gov/",to:"http://purl.obolibrary.org/obo/TO_",coda:"http://art.uniroma2.it/coda/contracts/",epo:"http://data.europa.eu/a4g/ontology#",relation:"http://www.iana.org/assignments/relation/",plant:"http://example.org/plant/",peco:"https://w3id.org/peco#",ecfo:"https://w3id.org/ecfo#",acp:"http://www.w3.org/ns/solid/acp#",lol:"https://sbalot.github.io/lol/",tsso:"https://scch.org/technical_standards#",fs:"https://www.compliancequest.com/training-management-software-system-solutions/",ags:"https://id.agschemas.org/",dcatap:"http://data.europa.eu/r5r/",spatialf:"http://jena.apache.org/function/spatial#",coreo:"http://purl.org/coreo#",asb:"https://w3id.org/asbingowl/core#",atcc:"https://www.atcc.org/products/",rb:"https://w3id.org/riverbench/schema/metadata#",cur:"http://qudt.org/2.1/vocab/currency/",aec3po:"https://w3id.org/lbd/aec3po/",doce:"http://purl.org/nemo/doce#",sure:"http://ns.inria.fr/sure#",fdof:"https://w3id.org/fdof/ontology#",threat:"https://cve.mitre.org/",mindat:"https://www.mindat.org/",oav:"http://lod.openaire.eu/vocab/",quest:"https://rb.gy/ntg7l/",risk:"https://www.w3id.org/risk#",docbook:"http://docbook.org/ns/docbook/",databus:"https://dataid.dbpedia.org/databus#",egdo:"http://example.org/",ontouml:"https://w3id.org/ontouml#",coos:"http://id.unece.org/def/coos#",fisa:"https://ifitkau.github.io/fisa/",bacnet:"http://data.ashrae.org/bacnet/2020#",bsdd:"http://bsdd.buildingsmart.org/def#",iop:"https://w3id.org/iadopt/ont/",p2po:"https://purl.org/p2p-o#",ontologia:"http://ub.edu/dades/ontologia/Cinema#Cinemes#",hu:"https://mail.google.com/",oplben:"http://www.openlinksw.com/ontology/benefits#",baf:"https://w3id.org/baf#",pit:"http://data.elsevier.com/vocabulary/ElsevierPubItemTypes/",batmanont:"http://emmo.info/emmo/application/bmo#",ksamsok:"http://kulturarvsdata.se/ksamsok#",uio:"https://www.mitre.org/mparmelee/ontologies/2023/6/UserIntentOntology/",mi:"http://www.marineinfo.org/ns/ontology#",matmine:"http://materialsmine.org/ns/",notify:"http://www.w3.org/ns/solid/notifications#",ocmv:"https://w3id.org/ontouml-models/vocabulary#",wrroc:"https://w3id.org/ro/terms/workflow-run#",sense:"https://w3id.org/sense#",mibc:"http://marineinfo.org/ns/library/bibcodes#",cpsvno:"http://data.norge.no/vocabulary/cpsvno#",imbor:"https://data.crow.nl/imbor/def/",stax:"https://w3id.org/stax/ontology#",emmo:"https://w3id.org/emmo#",rbdoc:"https://w3id.org/riverbench/schema/documentation#",quit:"http://quit.aksw.org/vocab/",dde:"https://www.ddeworld.org/",doam:"http://emmo.info/doam#",keyon:"http://keyelements.ltd/ontologies/keyon/#",sssom:"https://w3id.org/sssom/",ogcf:"http://www.opengis.net/def/function/geosparql/",cercabib:"https://cercabib.ub.edu/",przecieki:"http://onlyfans.com/emiliaszymanska/",skosno:"http://data.norge.no/skosno#",bioschemas:"https://bioschemas.org/",bto:"http://w3id.org/emmo-bto/bto#",mibt:"https://marineinfo.org/ns/library/bibtypes#",maeo:"http://w3id.org/emmo-maeo/maeo#",ind:"https://w3id.org/inesdata#",olis:"http://olis.dev/",semapv:"https://w3id.org/semapv/vocab/",pbac:"https://w3id.org/pbac#",ies4:"http://ies.data.gov.uk/ontology/ies4#",mifesto:"https://w3id.org/mifesto#",exekg:"https://raw.githubusercontent.com/nsai-uio/ExeKGOntology/main/ds_exeKGOntology.ttl#",w3:"http://www.w3.org/",mir:"http://marineinfo.org/ns/person/roles#",cergy:"https://dbpedia.org/page/Cergy/",eurovoc:"http://eurovoc.europa.eu/",plasma:"https://w3id.org/plasma#",guez:"http://guez.fr/",iig:"https://w3id.org/iicongraph/data/",sri:"https://w3id.org/sri#",into:"https://app.korfin.de/ontology/into/",doid:"http://purl.obolibrary.org/obo/DOID_",ies:"http://ies.data.gov.uk/ontology/ies4#",hpo:"http://w3id.org/emmo-hpo/hpo#",miprog:"https://marineinfo.org/ns/progress#",hy:"https://api.hyprdia.com/",pcp:"https://pcp-on-web.de/ontology/0.2/index-en.html#",oio:"http://www.geneontology.org/formats/oboInOwl#",top:"http://w3id.org/topologicpy#",soa:"https://semopenalex.org/ontology/",uiot:"http://www.w3id.org/urban-iot/core#",deonta:"https://deonta.linkedmodel.org/deonta/",ceosp:"https://linkeddata.cultureelerfgoed.nl/def/ceosp/",lpwc:"https://linkedpaperswithcode.com/property/",cp:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties/",ioc:"http://w3id.org/ioc#",htv:"http://www.w3.org/2011/http#",occupation:"http://nikunj.org/ontology/occupatioin#",loinc:"https://loinc.org/",tdm:"http://www.w3.org/ns/tdmrep#",tsdcreq:"https://w3id.org/oseg/ont/tsdc/req#",okh:"https://w3id.org/oseg/ont/okh#",tsdc:"https://w3id.org/oseg/ont/tsdc/core#",pwkso:"http://ns.inria.fr/pwkso/",spa:"https://paul.ti.rw.fau.de/~jo00defe/voc/spa#",chpaf:"https://ch.paf.link/",spo:"https://w3id.org/steel/ProcessOntology/",osh:"https://w3id.org/oseg/ont/osh#",ontohgis:"https://onto.kul.pl/ontohgis/",otrl:"https://w3id.org/oseg/ont/otrl#",aao:"http://purl.obolibrary.org/obo/AAO_",firebim:"http://w3id.org/firebim#",oplmarket:"http://www.openlinksw.com/ontology/market#",cwo:"http://kcoyle.net/cwo/",clyh:"http://purl.obolibrary.org/obo/ZP_",imdb:"http://m.imdb.com/",obi:"http://purl.obolibrary.org/obo/OBI_",envo:"http://purl.obolibrary.org/obo/ZP_",dinto:"http://purl.obolibrary.org/obo/ZP_",lrm:"https://iflastandards.info/ns/lrm/lrmoo/",kbmarc:"https://id.kb.se/marc/",clo:"http://purl.obolibrary.org/obo/ZP_",ado:"http://purl.obolibrary.org/obo/ADO_",rxno:"http://purl.obolibrary.org/obo/ZP_",obom:"https://w3id.org/open-bom/ont/open-bom#",dcid:"https://datacommons.org/browser/",crcr:"https://credit.niso.org/contributor-roles/",sep:"http://purl.obolibrary.org/obo/ZP_",gecko:"http://purl.obolibrary.org/obo/ZP_",reloc:"https://w3id.org/reloc#",sibo:"http://purl.obolibrary.org/obo/ZP_",coswot:"https://w3id.org/coswot/",cacax:"http://cacax.fun/",bcgo:"http://purl.obolibrary.org/obo/ZP_",moont:"https://w3id.org/moont/",ohd:"http://purl.obolibrary.org/obo/ZP_",dpo:"http://purl.obolibrary.org/obo/FBcv_",lpto:"http://w3id.org/lpto#",oplgit:"http://www.openlinksw.com/schemas/github#",htn:"http://purl.obolibrary.org/obo/ZP_",ypc:"http://www.semanticweb.org/sunsr/ontologies/2024/ypc#",txpo:"http://purl.obolibrary.org/obo/ZP_",adw:"https://animaldiversity.org/accounts/",omit:"http://purl.obolibrary.org/obo/OMIT_",mpio:"http://purl.obolibrary.org/obo/ZP_",ckg:"http://example.org/ckg#",sbo:"http://purl.obolibrary.org/obo/SBO_",mfo:"http://purl.obolibrary.org/obo/ZP_",bspo:"http://purl.obolibrary.org/obo/BSPO_",vo:"http://purl.obolibrary.org/obo/VO_",mbl:"https://w3id.org/mbl#",aimaix:"https://w3id.org/aimaix#",oip:"http://www.exemple.org/ontologia/",aix:"https://w3id.org/aix#",trans:"http://purl.obolibrary.org/obo/TRANS_",mop:"http://purl.obolibrary.org/obo/MOP_",oix:"http://www.exemple.org/ontologia/",ogi:"http://purl.obolibrary.org/obo/OGI_",uo:"http://purl.obolibrary.org/obo/UO_",zp:"http://purl.obolibrary.org/obo/ZP_",zo:"https://linkeddata.cultureelerfgoed.nl/def/zo/",libeas:"https://w3id.org/libeas#",fro:"https://foundry.ai.mil/ontology/nas/fro/",ontoavida:"http://purl.obolibrary.org/obo/ONTOAVIDA_",sopharm:"http://purl.obolibrary.org/obo/SOPHARM_",duo:"http://purl.obolibrary.org/obo/DUO_",xlmod:"http://purl.obolibrary.org/obo/XLMOD_",pw:"http://purl.obolibrary.org/obo/PW_",omo:"http://purl.obolibrary.org/obo/OMO_",fovt:"http://purl.obolibrary.org/obo/FOVT_",phipo:"http://purl.obolibrary.org/obo/PHIPO_",gramene:"http://www.gramene.org/db/ontology/search?id=GRO:",spd:"http://purl.obolibrary.org/obo/SPD_",sepio:"http://purl.obolibrary.org/obo/SEPIO_",xco:"http://purl.obolibrary.org/obo/XCO_",meas:"https://graph.interoptx.org/meas/",nmr:"https://www.ebi.ac.uk/ols4/ontologies/nmrcv/terms?short_form=NMR:",imr:"http://www.inoh.org/ontology-viewer/cgi-bin/InohOVAttr.php?type=IMR&id=",fypo:"http://purl.obolibrary.org/obo/FYPO_",msl:"https://w3id.org/msl#",foodon:"http://purl.obolibrary.org/obo/FOODON_",isoprops:"https://w3id.org/isoprops#",zfs:"http://purl.obolibrary.org/obo/ZFS_",psm:"https://paul.ti.rw.fau.de/~jo00defe/ont/psm#",occo:"http://purl.obolibrary.org/obo/OCCO_",pao:"http://purl.obolibrary.org/obo/PAO_",fbcv:"http://purl.obolibrary.org/obo/FBcv_",symp:"http://purl.obolibrary.org/obo/SYMP_",cteno:"http://purl.obolibrary.org/obo/CTENO_",cams:"https://graph.interoptx.org/cams/schema/",ehdaa2:"http://purl.obolibrary.org/obo/EHDAA2_",fiaf:"https://ontology.fiafcore.org/",gallont:"http://purl.obolibrary.org/obo/GALLONT_",mco:"http://purl.obolibrary.org/obo/MCO_",ogsf:"http://purl.obolibrary.org/obo/OGSF_",credit:"https://credit.niso.org/",ypo:"http://purl.obolibrary.org/obo/YPO_",pgdso:"http://purl.obolibrary.org/obo/PGDSO_",loin:"http://w3id.org/loin#",ehda:"http://purl.obolibrary.org/obo/EHDA_",oba:"http://purl.obolibrary.org/obo/OBA_",t4fs:"http://purl.obolibrary.org/obo/T4FS_",eo:"http://purl.obolibrary.org/obo/EO_",zeco:"http://purl.obolibrary.org/obo/ZECO_",opmi:"http://purl.obolibrary.org/obo/OPMI_",ddanat:"http://purl.obolibrary.org/obo/DDANAT_",scdo:"http://purl.obolibrary.org/obo/SCDO_",xpo:"http://purl.obolibrary.org/obo/XPO_",dron:"http://purl.obolibrary.org/obo/DRON_",bila:"http://4dx.embl.de/4DXpress/reg/all/cview/gene.do?geneID=",gaz:"http://purl.obolibrary.org/obo/GAZ_",hancestro:"http://purl.obolibrary.org/obo/HANCESTRO_",geogeo:"http://purl.obolibrary.org/obo/GEO_",poro:"http://purl.obolibrary.org/obo/PORO_",fobi:"http://purl.obolibrary.org/obo/FOBI_",emapa:"http://purl.obolibrary.org/obo/EMAPA_",stato:"http://purl.obolibrary.org/obo/STATO_",ohmi:"http://purl.obolibrary.org/obo/OHMI_",cvdo:"http://purl.obolibrary.org/obo/CVDO_",caro:"http://purl.obolibrary.org/obo/CARO_",psdo:"http://purl.obolibrary.org/obo/PSDO_",obcs:"http://purl.obolibrary.org/obo/OBCS_",zfa:"http://purl.obolibrary.org/obo/ZFA_",fix:"http://purl.obolibrary.org/obo/FIX_",aism:"http://purl.obolibrary.org/obo/AISM_",nomen:"http://purl.obolibrary.org/obo/NOMEN_",edo:"http://semanticweb.org/edo#",cdno:"http://purl.obolibrary.org/obo/CDNO_",ceph:"http://purl.obolibrary.org/obo/CEPH_",micro:"http://purl.obolibrary.org/obo/MICRO_",wbbt:"http://purl.obolibrary.org/obo/WBbt_",colao:"http://purl.obolibrary.org/obo/COLAO_",ecto:"http://purl.obolibrary.org/obo/ECTO_",genepio:"http://purl.obolibrary.org/obo/GENEPIO_",gno:"http://purl.obolibrary.org/obo/GNO_",tahh:"http://purl.obolibrary.org/obo/TAHH_",loggerhead:"http://purl.obolibrary.org/obo/LOGGERHEAD_",iptc4xmpc:"http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/",mirnao:"http://purl.obolibrary.org/obo/MIRNAO_",pdro:"http://purl.obolibrary.org/obo/PDRO_",ncro:"http://purl.obolibrary.org/obo/NCRO_",bootstrep:"http://purl.obolibrary.org/obo/BOOTSTREP_",mao:"http://purl.obolibrary.org/obo/MAO_",mfmo:"http://purl.obolibrary.org/obo/MFMO_",multionto:"http://purl.org/net/multionto/",whyis:"http://vocab.rpi.edu/whyis/",ecocore:"http://purl.obolibrary.org/obo/ECOCORE_",aeo:"http://purl.obolibrary.org/obo/AEO_",ecao:"http://purl.obolibrary.org/obo/ECAO_",fbbi:"http://purl.obolibrary.org/obo/FBbi_",ato:"http://purl.obolibrary.org/obo/ATO_",lipro:"http://purl.obolibrary.org/obo/LIPRO_",tads:"http://purl.obolibrary.org/obo/TADS_",disdriv:"http://purl.obolibrary.org/obo/DISDRIV_",vto:"http://purl.obolibrary.org/obo/VTO_",miapa:"http://purl.obolibrary.org/obo/MIAPA_",cio:"http://purl.obolibrary.org/obo/CIO_",lepao:"http://purl.obolibrary.org/obo/LEPAO_",resid:"https://proteininformationresource.org/cgi-bin/resid?id=",interpro:"http://purl.obolibrary.org/obo/IPR_",ogg:"http://purl.obolibrary.org/obo/OGG_",miro:"http://purl.obolibrary.org/obo/MIRO_",zea:"http://purl.obolibrary.org/obo/ZEA_",mpbv:"http://meta-pfarrerbuch.evangelische-archive.de/vocabulary#",chiro:"http://purl.obolibrary.org/obo/CHIRO_",dgaterms:"https://w3id.org/dgaterms#",emobon:"http://www.embrc.eu/emobon/EmoBonOntology#",duodrl:"https://w3id.org/duodrl#",norse:"https://w3id.org/aksw/norse#",mcro:"https://www.ebi.ac.uk/ols4/ontologies/mcro/classes?obo_id=MCRO:",vario:"http://purl.obolibrary.org/obo/VariO_",aro:"http://purl.obolibrary.org/obo/ARO_",ngbo:"http://purl.obolibrary.org/obo/NGBO_",flopo:"http://purl.obolibrary.org/obo/FLOPO_",hso:"http://purl.obolibrary.org/obo/HSO_",upa:"http://www.grenoble.prabi.fr/obiwarehouse/unipathway/upa?upid=",amphx:"http://purl.obolibrary.org/obo/AMPHX_",fbsp:"http://purl.obolibrary.org/obo/FBSP_",rex:"http://purl.obolibrary.org/obo/REX_"};let Fd=(()=>{class n{static _instance;_nsMap;static getInstance(){return this._instance||(this._instance=new n),this._instance}compactIRI(t){let r=this._nsMap;void 0===r&&(r=this._buildNSMap());let o=t;if(t.includes("#"))o=`${t.split("#")[0]}#`;else{const i=t.split("/");i.pop(),o=i.join("/")+"/"}if(void 0===o)return t;const s=r[o];return void 0===s?t:t.replace(o,`${s}:`)}expandIRI(t){const r=t.split(":")[0];return t.replace(`${r}:`,ts[r]??kt[r])}_buildNSMap(){const t={};return Object.keys(ts).forEach(r=>t[ts[r]]=r),Object.keys(kt).forEach(r=>t[kt[r]]=r),this._nsMap=t,t}}return n})();const MR=`${kt.qcy}ContentCategory`,VR=`${kt.qcy}EntityCategory`,LR=`${kt.qcy}relatedEntity`;class UR{constructor(e,t,r,o,s){this._api=e,this._projectId=t,this._graphType=o,this._verbose=s??!1,this._currentLang=r,this._api.setLanguage(r),this._contentCategories=new Gn([]),this._entityCategories=new Gn([]),this._relationships=new Gn([]),this.availableContentCategories=this._contentCategories.asReadonly(),this.availableEntityCategories=this._entityCategories.asReadonly(),this.availableEntityRelationships=this._relationships.asReadonly(),this.ready=this._load().catch(i=>console.error("[CueProjectSchema] Initial load failed:",i))}_api;_projectId;_graphType;_snapshot;_inflight;_currentLang;_verbose;_contentCategories;_entityCategories;_relationships;availableContentCategories;availableEntityCategories;availableEntityRelationships;ready;get language(){return this._api.language}setLanguage(e){if(this._currentLang!==e){if(this._currentLang=e,this._api.setLanguage(e),this._snapshot)return void this._apply(this._snapshot);this._load().catch(t=>console.error("[CueProjectSchema] Language switch failed:",t))}}refresh(){var e=this;return(0,d.A)(function*(){e._snapshot=void 0,yield e._load()})()}createContentCategory(e){var t=this;return(0,d.A)(function*(){const r=yield t._api.semanticTemplate.createContentCategory(t._projectId,e);return t._appendCreated("contentCategories",t._contentCategories,MR,e,r)})()}createEntityCategory(e){var t=this;return(0,d.A)(function*(){const r=yield t._api.semanticTemplate.createEntityCategory(t._projectId,e);return t._appendCreated("entityCategories",t._entityCategories,VR,e,r)})()}createEntityRelationship(e){var t=this;return(0,d.A)(function*(){const r=yield t._api.semanticTemplate.createEntityRelationship(t._projectId,e);return t._appendCreated("relationships",t._relationships,LR,e,r)})()}_appendCreated(e,t,r,o,s){if(!s.success||!s.iri)return null;const i=o.label?{...o.label}:{};jd(i);const a=o.definition?{...o.definition}:o.description?{default:o.description}:{};jd(a);const c={iri:s.iri,type:r,labels:i,definitions:a,...o.parent?{parent:o.parent}:{}};this._snapshot?.[e]?.push(c);const l=this._toDef(c,this._currentLang);return t.set([...t.get(),l]),l}_load(){var e=this;return(0,d.A)(function*(){if(e._snapshot)return void e._apply(e._snapshot);if(e._inflight)return e._inflight;e._verbose&&console.log(`[CueProjectSchema] Fetching schema \u2014 project: ${e._projectId}, graphType: ${e._graphType??"default"}`);const t=e._fetchSnapshot().then(r=>{e._verbose&&console.log(`[CueProjectSchema] Applying fresh snapshot \u2014 contentCategories: ${r.contentCategories.length}, entityCategories: ${r.entityCategories.length}, relationships: ${r.relationships.length}`),e._snapshot=r,e._apply(r)}).finally(()=>{e._inflight=void 0});return e._inflight=t,t})()}_fetchSnapshot(){var e=this;return(0,d.A)(function*(){if("fuseki"!==e._graphType){const t=yield e._runSchemaQuery("PREFIX view: <https://qlever.cs.uni-freiburg.de/materializedView/>\nSELECT ?iri ?type ?parent ?deprecated ?label ?definition\nWHERE {\n SERVICE view:schemas {\n _:cfg view:column-iri ?iri ;\n view:column-type ?type ;\n view:column-parent ?parent ;\n view:column-deprecated ?deprecated ;\n view:column-label ?label ;\n view:column-definition ?definition .\n }\n}");if(t.contentCategories.length+t.entityCategories.length+t.relationships.length>0)return t;console.warn(`[CueProjectSchema] Materialized view "schemas" returned no rows for project ${e._projectId} \u2014 falling back to the live schema query.`)}return e._runSchemaQuery(e._buildSchemaQuery())})()}_apply(e){const t=this._currentLang;this._contentCategories.set(e.contentCategories.map(r=>this._toDef(r,t))),this._entityCategories.set(e.entityCategories.map(r=>this._toDef(r,t))),this._relationships.set(e.relationships.map(r=>this._toDef(r,t)))}_toDef(e,t){const r=jR(e.labels,t)??e.iri.split("#").at(-1)??e.iri,o=jR(e.definitions,t),s=Object.keys(e.definitions).length>0;return{iri:e.iri,label:r,labels:e.labels,...void 0!==o?{definition:o}:{},...s?{definitions:e.definitions}:{},...void 0!==e.parent?{parent:e.parent}:{},...void 0!==e.deprecated?{deprecated:e.deprecated}:{}}}_buildSchemaQuery(){return`PREFIX qcy: <${kt.qcy}>\nPREFIX skos: <${ts.skos}>\nPREFIX rdfs: <${ts.rdfs}>\nPREFIX owl: <${ts.owl}>\nSELECT ?iri ?type ?parent ?deprecated ?label ?definition\nWHERE {\n {\n VALUES ?type { qcy:ContentCategory qcy:EntityCategory }\n ?iri a ?type ;\n skos:prefLabel ?label .\n OPTIONAL { ?iri skos:definition ?definition }\n OPTIONAL { ?iri skos:broader ?parent }\n OPTIONAL { ?iri owl:deprecated ?deprecated }\n }\n UNION\n {\n ?iri rdfs:subPropertyOf+ qcy:relatedEntity .\n ?iri rdfs:label ?label .\n OPTIONAL { ?iri rdfs:comment ?definition }\n OPTIONAL { ?iri rdfs:subPropertyOf ?parent }\n OPTIONAL { ?iri owl:deprecated ?deprecated }\n BIND(qcy:relatedEntity AS ?type)\n }\n}`}_runSchemaQuery(e){var t=this;return(0,d.A)(function*(){const r=yield t._api.sparql(e,t._projectId,t._graphType),o=new Map;for(const i of r.results.bindings){const a=i.iri?.value,c=i.type?.value;if(!a||!c)continue;let l=o.get(a);l||(l={iri:a,type:c,labels:{},definitions:{}},o.set(a,l)),void 0===l.parent&&i.parent?.value&&(l.parent=i.parent.value);const h=i.deprecated?.value;void 0!==h&&(l.deprecated="true"===h||"1"===h),FR(l.labels,i.label),FR(l.definitions,i.definition)}const s={contentCategories:[],entityCategories:[],relationships:[]};for(const i of o.values())jd(i.labels),jd(i.definitions),i.type===MR?s.contentCategories.push(i):i.type===VR?s.entityCategories.push(i):i.type===LR&&s.relationships.push(i);return s})()}}function FR(n,e){if(!e||void 0===e.value)return;const t=e["xml:lang"],r=t&&t.length>0?t:"default";void 0===n[r]&&(n[r]=e.value)}function jd(n){if(void 0!==n.en)return void(n.default=n.en);if(void 0!==n.default)return;const e=Object.values(n)[0];void 0!==e&&(n.default=e)}function jR(n,e){return n[e]??n.default}class Wy{constructor(e,t,r=$y,o,s=!1){this._api=e,this._projectId=t,this._graphType=o,this._verbose=s,this.baseURL=`${r}${t}/`,this.entityInfoMap=this._entityInfoMapComputed,this.entityGraph=this._entityGraph.asReadonly(),this._entityOSMMap.subscribe(()=>this._checkPendingOSMFetches()),this._fetchEntityGraph().catch(i=>console.error("[CueProjectEntities] Entity graph fetch failed:",i))}_api;_projectId;_graphType;_verbose;baseURL;_entityDetails=new Gn({});_entityDocuments=new Gn({});_entityRelationships=new Gn({});_entityOSMMap=new Gn({});_osmWKTMap=new Gn({});_fetchingOSMIds=new Set;_seenIds=new Set;_entityGraph=new Gn(void 0);_summaryGraphCache=new Map;_categoryCountsCache;_entityInfoMapComputed=function Dy(n,e){const t=new Set;let r=e(),o=!1;const s=[],i=()=>{o=!0;for(const a of t)a()};for(const a of n)s.push(a.subscribe(i));return{get:()=>(o&&(r=e(),o=!1),r),subscribe:a=>(t.add(a),()=>t.delete(a)),destroy(){for(const a of s)a();t.clear()}}}([this._entityDetails,this._entityDocuments,this._entityRelationships,this._entityOSMMap,this._osmWKTMap],()=>this._computeEntityInfoMap());entityInfoMap;entityGraph;entityIri(e){return`${this.baseURL}${e}`}_resourceIri(e){return`${this.baseURL}${e}`}_log(e){this._verbose&&console.debug(`[CueProjectEntities pid=${this._projectId}] ${e}`)}reset(){this._entityDetails.set({}),this._entityDocuments.set({}),this._entityRelationships.set({}),this._entityOSMMap.set({}),this._osmWKTMap.set({}),this._entityGraph.set(void 0),this._fetchingOSMIds.clear(),this._seenIds.clear(),this._summaryGraphCache.clear(),this._categoryCountsCache=void 0,this._fetchEntityGraph().catch(e=>console.error("[CueProjectEntities] Entity graph fetch failed after reset:",e))}requestEntityData(e,t=!1){for(const i of e)this._seenIds.add(i);const r=e.filter(i=>void 0===this._entityDetails.get()[i]);if(0===r.length)return;this._log(`requestEntityData: ${r.length} new / ${e.length} requested | cumulative: ${this._seenIds.size} seen`);const o=r.map(i=>`r:${i}`).join(" ");this._api.sparql(`PREFIX qcy: <${kt.qcy}>\nPREFIX r: <${this.baseURL}>\nSELECT ?id (SAMPLE(?val) AS ?value) (GROUP_CONCAT(DISTINCT STR(?cat); SEPARATOR=";") AS ?categories) ?mentionCount\nWHERE {\n VALUES ?iri { ${o} }\n ?iri qcy:hasEntityCategory ?cat ;\n qcy:value ?val\n BIND(REPLACE(STR(?iri), "^.*/([^/]*)$", "$1") AS ?id)\n ${t?"{SELECT ?iri (COUNT(?mention) AS ?mentionCount)\n WHERE { ?mention qcy:resolvesTo ?iri } GROUP BY ?iri}":""}\n}\nGROUP BY ?id ?mentionCount`,this._projectId,this._graphType).then(i=>{const a=i,c={...this._entityDetails.get()};a.results.bindings.forEach(l=>{l.id&&(c[l.id.value]={value:l.value?.value??"",categories:l.categories?.value?.split(";").filter(Boolean)??[],mentionCount:l.mentionCount?parseInt(l.mentionCount.value,10):void 0})}),this._entityDetails.set(c),this._log(`entityDetails: ${Object.keys(c).length} with metadata / ${this._seenIds.size} seen (cumulative)`)}).catch(i=>console.error("[CueProjectEntities] requestEntityData failed:",i))}requestEntityLocations(e){var t=this;return(0,d.A)(function*(){const r=e.filter(l=>void 0===t._entityOSMMap.get()[l]);if(0===r.length)return;for(const l of e)t._seenIds.add(l);t._log(`requestEntityLocations: ${r.length} new / ${e.length} requested | cumulative: ${t._seenIds.size} seen`);const o={...t._entityOSMMap.get()};for(const l of r)o[l]={direct:[],indirect:[]};t._entityOSMMap.set(o);const s=r.map(l=>`r:${l}`).join(" "),i=`PREFIX qcy: <${kt.qcy}>\nPREFIX r: <${t.baseURL}>\nSELECT ?id ?osm ?direct ?rels ?entityUUID\nWHERE {\n VALUES ?iri { ${s} }\n {\n SELECT ?iri ?osm ?direct\n WHERE {\n ?iri qcy:similarTo ?osm .\n FILTER STRSTARTS(STR(?osm), "https://www.openstreetmap.org/")\n BIND(true AS ?direct)\n }\n }\n UNION\n {\n SELECT ?iri ?osm ?direct ?entityUUID (GROUP_CONCAT(STR(?rel); SEPARATOR=";") AS ?rels)\n WHERE {\n ?iri qcy:relatedEntity ?loc .\n ?iri ?rel ?loc .\n ?loc qcy:similarTo ?osm .\n FILTER STRSTARTS(STR(?osm), "https://www.openstreetmap.org/")\n FILTER(?rel != qcy:relatedEntity)\n BIND(false AS ?direct)\n BIND(REPLACE(STR(?loc), "^.*/([^/]*)$", "$1") AS ?entityUUID)\n } GROUP BY ?iri ?osm ?direct ?entityUUID\n }\n BIND(REPLACE(STR(?iri), "^.*/([^/]*)$", "$1") AS ?id)\n}`,a=yield t._api.sparql(i,t._projectId,t._graphType),c={...t._entityOSMMap.get()};a.results.bindings.forEach(l=>{if(!l.id||!l.osm)return;const h=l.id.value,p=l.osm.value,y="true"===l.direct?.value,P=l.rels?.value?.split(";").filter(Boolean)??[],K=l.entityUUID?.value,re=c[h]??{direct:[],indirect:[]};y?re.direct.push(p):K&&re.indirect.push({osm:p,viaRels:P,entityUUID:K}),c[h]=re}),t._entityOSMMap.set(c),t._log(`entityOSMMap: ${Object.keys(c).length} with OSM / ${t._seenIds.size} seen (cumulative)`)})()}fetchEntityRelationships(e){var t=this;return(0,d.A)(function*(){const r=e.replace(/^.*\/([^/]*)$/,"$1");t._entityRelationships.set({...t._entityRelationships.get(),[r]:{incoming:[],outgoing:[]}});const[o,s]=yield Promise.all([t._fetchOutgoingRelationships(e),t._fetchIncomingRelationships(e)]),i={outgoing:o,incoming:s};return t._entityRelationships.set({...t._entityRelationships.get(),[r]:i}),i})()}fetchEntityDocuments(e){var t=this;return(0,d.A)(function*(){const r=e.replace(/^.*\/([^/]*)$/,"$1");t._entityDocuments.set({...t._entityDocuments.get(),[r]:[]}),void 0===t._entityDetails.get()[r]&&t.requestEntityData([r]);const o=`PREFIX qcy: <${kt.qcy}>\nSELECT DISTINCT ?id\nWHERE {\n BIND(<${e}> AS ?iri)\n ?doc a qcy:FileContent ;\n qcy:about ?iri .\n BIND(REPLACE(STR(?doc), "^.*/([^/]*)$", "$1") AS ?id)\n}`,s=(yield t._api.sparql(o,t._projectId,t._graphType)).results.bindings.filter(i=>void 0!==i.id).map(i=>i.id.value);return t._entityDocuments.set({...t._entityDocuments.get(),[r]:s}),s})()}contentCategoriesInProject(){var e=this;return(0,d.A)(function*(t=!0){const o=`PREFIX qcy: <${kt.qcy}>\nPREFIX skos: <${ts.skos}>\nSELECT ?iri (SAMPLE(?l) AS ?label) ?count\nWHERE {\n ?iri a qcy:EntityCategory .\n OPTIONAL { ?iri skos:prefLabel ?lang_label FILTER(LANG(?lang_label) = "${e._api.language}") }\n OPTIONAL { ?iri skos:prefLabel ?no_lang_label }\n BIND(COALESCE(?lang_label, ?no_lang_label) AS ?l)\n ${t?"{ SELECT (COUNT(?x) AS ?count) ?iri where { ?x a qcy:CanonicalEntity ; qcy:hasEntityCategory ?iri } GROUP BY ?iri }":""}\n}\nGROUP BY ?iri ?count\nORDER BY ${t?"DESC(?count)":"ASC(?label)"}`;return(yield e._api.sparql(o,e._projectId,e._graphType)).results.bindings.filter(s=>void 0!==s.iri).map(s=>{const i=s.count?parseInt(s.count.value,10):0,a=s.label?.value??s.iri.value.split("#").at(-1);return{iri:s.iri.value,label:i>0?`${a} (${i})`:a??""}})}).apply(this,arguments)}entitiesByCategory(e){var t=this;return(0,d.A)(function*(r,o=!1){if(0===r.length)return[];const s=Fd.getInstance(),a=r.map(l=>`<${(l=>l.startsWith("http://")||l.startsWith("https://")?l:s.expandIRI(l))(l)}>`).join(" "),c=o?`PREFIX qcy: <${kt.qcy}>\nSELECT ?id (SAMPLE(?val) AS ?value) (GROUP_CONCAT(DISTINCT STR(?allCat); SEPARATOR=";") AS ?categories)\nWHERE {\n VALUES ?filterCat { ${a} }\n ?iri a qcy:CanonicalEntity ;\n qcy:hasEntityCategory ?filterCat ;\n qcy:value ?val ;\n qcy:hasEntityCategory ?allCat .\n BIND(REPLACE(STR(?iri), "^.*/", "") AS ?id)\n}\nGROUP BY ?id`:`PREFIX qcy: <${kt.qcy}>\nSELECT DISTINCT ?id\nWHERE {\n VALUES ?filterCat { ${a} }\n ?iri a qcy:CanonicalEntity ;\n qcy:hasEntityCategory ?filterCat .\n BIND(REPLACE(STR(?iri), "^.*/", "") AS ?id)\n}`;return(yield t._api.sparql(c,t._projectId,t._graphType)).results.bindings.filter(l=>l.id).map(l=>{const h=l.id.value,p={iri:t._resourceIri(h),uuid:h};return o?{...p,value:l.value?.value??"",categories:l.categories?.value?.split(";").filter(Boolean)??[]}:p})}).apply(this,arguments)}prototypeCategories(){var e=this;return(0,d.A)(function*(){const r=`PREFIX qcy: <${kt.qcy}>\nPREFIX skos: <${ts.skos}>\nSELECT ?iri ?count (SAMPLE(?l) AS ?label)\nWHERE {\n { SELECT ?iri (COUNT(DISTINCT ?prototype) AS ?count)\n WHERE {\n ?prototype a qcy:EntityPrototype ;\n qcy:hasEntityCategory ?iri .\n }\n GROUP BY ?iri }\n OPTIONAL { ?iri skos:prefLabel ?lang_label FILTER(LANG(?lang_label) = "${e._api.language}") }\n OPTIONAL { ?iri skos:prefLabel ?no_lang_label }\n BIND(COALESCE(?lang_label, ?no_lang_label) AS ?l)\n}\nGROUP BY ?iri ?count\nORDER BY DESC(?count)`;return(yield e._api.sparql(r,e._projectId,e._graphType)).results.bindings.filter(o=>void 0!==o.iri).map(o=>{const s=o.iri.value;return{iri:s,label:o.label?.value||s.split("#").at(-1)||s,count:o.count?parseInt(o.count.value,10):0}})})()}prototypesByCategory(e){var t=this;return(0,d.A)(function*(){const r=Fd.getInstance(),o=e.includes("://")?e:r.expandIRI(e),s=`PREFIX qcy: <${kt.qcy}>\nSELECT ?iri (SAMPLE(?val) AS ?value) (COUNT(DISTINCT ?occurrence) AS ?instanceCount)\nWHERE {\n ?iri a qcy:EntityPrototype ;\n qcy:hasEntityCategory <${o}> .\n OPTIONAL { ?iri qcy:value ?val }\n OPTIONAL { ?occurrence qcy:inheritsFrom ?iri }\n}\nGROUP BY ?iri\nORDER BY DESC(?instanceCount)`;return(yield t._api.sparql(s,t._projectId,t._graphType)).results.bindings.filter(i=>void 0!==i.iri).map(i=>{const a=i.iri.value;return{iri:a,uuid:a.split("/").at(-1)??a,value:i.value?.value??"",instanceCount:i.instanceCount?parseInt(i.instanceCount.value,10):0}})})()}prototypeProperties(e){var t=this;return(0,d.A)(function*(){const r=`PREFIX qcy: <${kt.qcy}>\nSELECT ?prop ?label ?value ?unit ?pset\nWHERE {\n <${e}> qcy:hasProperty ?prop .\n ?prop a qcy:Property .\n OPTIONAL { ?prop qcy:label ?label }\n OPTIONAL { ?prop qcy:value ?value }\n OPTIONAL { ?prop qcy:unit ?unit }\n OPTIONAL { ?prop qcy:ifcPSet ?pset }\n}\nORDER BY ?pset ?label`;return(yield t._api.sparql(r,t._projectId,t._graphType)).results.bindings.filter(o=>void 0!==o.prop).map(o=>({iri:o.prop.value,label:o.label?.value??"",value:o.value?.value??"",...o.unit?.value?{unit:o.unit.value}:{},...o.pset?.value?{pset:o.pset.value}:{}}))})()}prototypeInstances(e,t){var r=this;return(0,d.A)(function*(){const i=`PREFIX qcy: <${kt.qcy}>\nSELECT ?iri (SAMPLE(?val) AS ?value)\nWHERE {\n ?iri qcy:inheritsFrom <${e}> .\n OPTIONAL { ?iri qcy:value ?val }\n}\nGROUP BY ?iri\nORDER BY ?iri\nLIMIT ${t?.limit??50}\nOFFSET ${t?.offset??0}`;return(yield r._api.sparql(i,r._projectId,r._graphType)).results.bindings.filter(a=>void 0!==a.iri).map(a=>{const c=a.iri.value;return{iri:c,uuid:c.split("/").at(-1)??c,value:a.value?.value??""}})})()}entityExpressIds(e,t){var r=this;return(0,d.A)(function*(){if(0===e.length)return[];const o=t?.viaMentions??!0,s=e.map(c=>`<${c}>`).join(" "),a=`PREFIX qcy: <${kt.qcy}>\nSELECT DISTINCT ?requested ?entity ?model ?expressId\nWHERE {\n VALUES ?requested { ${s} }\n ${o?"?requested (^qcy:resolvesTo)? ?entity .":"BIND(?requested AS ?entity)"}\n ?selector a qcy:IFCExpressIDSelector ;\n qcy:selectorObject ?entity ;\n qcy:selectorSubject ?model ;\n qcy:value ?expressId .\n}`;return(yield r._api.sparql(a,r._projectId,r._graphType)).results.bindings.map(c=>r._toModelLocation(c)).filter(c=>void 0!==c)})()}prototypeExpressIds(e){var t=this;return(0,d.A)(function*(){const r=`PREFIX qcy: <${kt.qcy}>\nSELECT DISTINCT ?entity ?model ?expressId\nWHERE {\n ?entity qcy:inheritsFrom <${e}> .\n ?selector a qcy:IFCExpressIDSelector ;\n qcy:selectorObject ?entity ;\n qcy:selectorSubject ?model ;\n qcy:value ?expressId .\n}`,o=yield t._api.sparql(r,t._projectId,t._graphType),s=new Map;for(const i of o.results.bindings){const a=i.model?.value,c=t._parseExpressId(i.expressId?.value);if(void 0===a||void 0===c)continue;const l=s.get(a)??new Set;l.add(c),s.set(a,l)}return Array.from(s.entries()).map(([i,a])=>({modelIri:i,modelUuid:i.split("/").at(-1)??i,expressIds:Array.from(a).sort((c,l)=>c-l)})).sort((i,a)=>a.expressIds.length-i.expressIds.length)})()}entityAtExpressId(e,t){var r=this;return(0,d.A)(function*(){const o=`PREFIX qcy: <${kt.qcy}>\nSELECT ?entity (SAMPLE(?val) AS ?value) (SAMPLE(?proto) AS ?prototype) (SAMPLE(?cat) AS ?category)\nWHERE {\n ?selector a qcy:IFCExpressIDSelector ;\n qcy:selectorSubject <${e}> ;\n qcy:selectorObject ?entity ;\n qcy:value ?expressId .\n FILTER(STR(?expressId) = "${t}")\n OPTIONAL { ?entity qcy:value ?val }\n OPTIONAL {\n ?entity qcy:inheritsFrom ?proto .\n OPTIONAL { ?proto qcy:hasEntityCategory ?cat }\n }\n}\nGROUP BY ?entity\nLIMIT 1`,s=(yield r._api.sparql(o,r._projectId,r._graphType)).results.bindings[0],i=s?.entity?.value;if(void 0!==i)return{entityIri:i,value:s.value?.value??"",prototypeIri:s.prototype?.value,categoryIri:s.category?.value}})()}categoryExpressIds(e){var t=this;return(0,d.A)(function*(){const r=Fd.getInstance(),o=e.includes("://")?e:r.expandIRI(e),s=`PREFIX qcy: <${kt.qcy}>\nSELECT DISTINCT ?prototype ?entity ?model ?expressId\nWHERE {\n ?prototype a qcy:EntityPrototype ;\n qcy:hasEntityCategory <${o}> .\n ?entity qcy:inheritsFrom ?prototype .\n ?selector a qcy:IFCExpressIDSelector ;\n qcy:selectorObject ?entity ;\n qcy:selectorSubject ?model ;\n qcy:value ?expressId .\n}`,i=yield t._api.sparql(s,t._projectId,t._graphType),a=new Map;for(const c of i.results.bindings){const l=c.prototype?.value,h=c.model?.value,p=t._parseExpressId(c.expressId?.value);if(void 0===l||void 0===h||void 0===p)continue;const y=`${l}\t${h}`,P=a.get(y)??new Set;P.add(p),a.set(y,P)}return Array.from(a.entries()).map(([c,l])=>{const[h,p]=c.split("\t");return{prototypeIri:h,modelIri:p,modelUuid:p.split("/").at(-1)??p,expressIds:Array.from(l).sort((y,P)=>y-P)}}).sort((c,l)=>l.expressIds.length-c.expressIds.length)})()}buildSummaryGraph(e,t,r){var o=this;return(0,d.A)(function*(){const s=Fd.getInstance(),i=t?t.includes("://")?t:s.expandIRI(t):void 0,a=i?` FILTER(?sourceCat = <${i}> || ?targetCat = <${i}>)`:"",c=` ?s a qcy:CanonicalEntity ;\n qcy:hasEntityCategory ?sourceCat .\n ?o a qcy:CanonicalEntity ;\n qcy:hasEntityCategory ?targetCat .\n ?s ?predicate ?o .\n FILTER(isIRI(?s) && isIRI(?o))\n FILTER(?predicate != qcy:relatedEntity)\n${a}`,l=`PREFIX qcy: <${kt.qcy}>\nSELECT\n ?sourceCat\n ?predicate\n ?targetCat\n (COUNT(*) AS ?weight)\nWHERE {\n${r?` GRAPH <${r}> {\n${c}\n }`:c}\n}\nGROUP BY ?sourceCat ?predicate ?targetCat\nORDER BY DESC(?weight)`,h=`${i??""}|${r??""}`;let p=o._summaryGraphCache.get(h);p||(p=r?o._api.sparql(l,o._projectId,o._graphType):o._fetchSummaryData(l,a),o._summaryGraphCache.set(h,p),p.catch(()=>o._summaryGraphCache.delete(h)));const y=yield p,P=y.results.bindings.filter(K=>K.sourceCat&&K.predicate&&K.targetCat);if("graph"===e){const K=new Set,re=[];for(const ce of P){const Ae=ce.sourceCat.value,$e=ce.predicate.value,Qe=ce.targetCat.value,pt=parseInt(ce.weight.value,10);K.add(Ae),K.add(Qe),re.push({sourceID:Ae,predicate:$e,targetID:Qe,weight:pt})}let fe;if(!r)try{fe=yield o._fetchCategoryCounts()}catch(ce){console.warn("[CueProjectEntities] Failed to fetch entity category counts:",ce)}return{entities:Array.from(K).map(ce=>{const Ae=fe?.get(ce);return void 0!==Ae?{iri:ce,weight:Ae}:{iri:ce}}),relations:re}}if("md"===e){const K=P.map(Ae=>({src:s.compactIRI(Ae.sourceCat.value),pred:s.compactIRI(Ae.predicate.value),tgt:s.compactIRI(Ae.targetCat.value),weight:parseInt(Ae.weight.value,10)}));if(0===K.length)return"(no results)";const re=Math.max(...K.map(Ae=>Ae.src.length)),fe=Math.max(...K.map(Ae=>Ae.pred.length)),ce=Math.max(...K.map(Ae=>Ae.tgt.length));return K.map(Ae=>`${Ae.src.padEnd(re)} -> ${Ae.pred.padEnd(fe)} -> ${Ae.tgt.padEnd(ce)} (${Ae.weight})`).join("\n")}return y})()}_toModelLocation(e){const t=e.requested?.value,r=e.model?.value,o=this._parseExpressId(e.expressId?.value);if(void 0!==t&&void 0!==r&&void 0!==o)return{requestedIri:t,mentionIri:e.entity?.value??t,modelIri:r,modelUuid:r.split("/").at(-1)??r,expressId:o}}_parseExpressId(e){if(void 0===e)return;const t=Number(e);return Number.isInteger(t)?t:void 0}_fetchSummaryData(e,t){var r=this;return(0,d.A)(function*(){return r._fetchViewBacked(e,`PREFIX view: <https://qlever.cs.uni-freiburg.de/materializedView/>\nSELECT ?sourceCat ?predicate ?targetCat ?weight\nWHERE {\n SERVICE view:entity-summary {\n _:cfg view:column-sourceCat ?sourceCat ;\n view:column-predicate ?predicate ;\n view:column-targetCat ?targetCat ;\n view:column-weight ?weight .\n }\n${t}\n}\nORDER BY DESC(?weight)`,"entity-summary")})()}_fetchCategoryCounts(){var e=this;return(0,d.A)(function*(){return e._categoryCountsCache||(e._categoryCountsCache=e._fetchViewBacked(`PREFIX qcy: <${kt.qcy}>\nSELECT ?cat (COUNT(*) AS ?weight) WHERE {\n ?e a qcy:CanonicalEntity ;\n qcy:hasEntityCategory ?cat .\n}\nGROUP BY ?cat\nORDER BY DESC(?weight)`,"PREFIX view: <https://qlever.cs.uni-freiburg.de/materializedView/>\nSELECT ?cat ?weight\nWHERE {\n SERVICE view:entity-category-counts {\n _:cfg view:column-cat ?cat ;\n view:column-weight ?weight .\n }\n}\nORDER BY DESC(?weight)","entity-category-counts").then(o=>{const s=new Map;for(const i of o.results.bindings){const a=i.cat?.value,c=i.weight?.value;a&&void 0!==c&&s.set(a,parseInt(c,10))}return s}),e._categoryCountsCache.catch(()=>{e._categoryCountsCache=void 0})),e._categoryCountsCache})()}_fetchViewBacked(e,t,r){var o=this;return(0,d.A)(function*(){if("fuseki"!==o._graphType){const s=yield o._api.sparql(t,o._projectId,o._graphType);if(s?.results?.bindings?.length)return s;console.warn(`[CueProjectEntities] Materialized view "${r}" returned no rows \u2014 falling back to the live query.`)}return yield o._api.sparql(e,o._projectId,o._graphType)})()}_computeEntityInfoMap(){const e=this._entityDetails.get(),t=this._entityDocuments.get(),r=this._entityRelationships.get(),o=this._entityOSMMap.get(),s=this._osmWKTMap.get(),i=new Set([...Object.keys(e),...Object.keys(o).filter(c=>{const l=o[c];return l.direct.length>0||l.indirect.length>0})]),a={};for(const c of i){const l=e[c],h=o[c];let p,y;if(h){const P=new Set;p=h.direct.filter(re=>void 0!==s[re]&&!P.has(re)&&!!P.add(re)).map(re=>({osmIRI:re,wkt:s[re]}));const K=new Map;for(const{osm:re,viaRels:fe,entityUUID:ce}of h.indirect){const Ae=s[re];if(Ae)for(const $e of fe){const Qe=`${$e}:${ce}`,pt=K.get(Qe)??{geometries:[],entityUUID:ce};pt.geometries.some(_t=>_t.osmIRI===re)||(pt.geometries.push({osmIRI:re,wkt:Ae}),K.set(Qe,pt))}}K.size>0&&(y=Array.from(K.entries()).map(([re,{geometries:fe,entityUUID:ce}])=>({rel:re.split(":")[0],geometries:fe,entityUUID:ce})))}a[c]={value:l?.value??"",categories:l?.categories??[],mentionCount:l?.mentionCount,documentRefs:t[c],relationshipData:r[c],directMapGeometries:p,indirectMapGeometries:y}}return a}_fetchOutgoingRelationships(e){var t=this;return(0,d.A)(function*(){const r=`PREFIX qcy: <${kt.qcy}>\nSELECT ?rel ?related (SAMPLE(?val) AS ?nodeValue) (GROUP_CONCAT(STR(?cat); SEPARATOR=";") AS ?categories)\nWHERE {\n BIND(<${e}> AS ?s)\n ?s qcy:relatedEntity ?related ;\n ?rel ?related .\n ?related qcy:hasEntityCategory ?cat ;\n qcy:value ?val\n FILTER(?rel != qcy:relatedEntity)\n}\nGROUP BY ?rel ?related`,o=yield t._api.sparql(r,t._projectId,t._graphType),s=[],i={...t._entityDetails.get()};return o.results.bindings.forEach(a=>{if(!a.rel||!a.related)return;const c=a.categories?.value?.split(";").filter(Boolean)??[];s.push({relIRI:a.rel.value,nodeIRI:a.related.value,nodeValue:a.nodeValue?.value??"",nodeCategories:c});const l=a.related.value.replace(/^.*\/([^/]*)$/,"$1");i[l]={value:a.nodeValue?.value??"",categories:c}}),t._entityDetails.set(i),s})()}_fetchIncomingRelationships(e){var t=this;return(0,d.A)(function*(){const r=`PREFIX qcy: <${kt.qcy}>\nSELECT ?rel ?relating (SAMPLE(?val) AS ?nodeValue) (GROUP_CONCAT(STR(?cat); SEPARATOR=";") AS ?categories)\nWHERE {\n BIND(<${e}> AS ?s)\n ?relating qcy:relatedEntity ?s ;\n ?rel ?s .\n ?relating qcy:hasEntityCategory ?cat ;\n qcy:value ?val\n FILTER(?rel != qcy:relatedEntity)\n}\nGROUP BY ?rel ?relating`,o=yield t._api.sparql(r,t._projectId,t._graphType),s=[],i={...t._entityDetails.get()};return o.results.bindings.forEach(a=>{if(!a.rel||!a.relating)return;const c=a.categories?.value?.split(";").filter(Boolean)??[];s.push({relIRI:a.rel.value,nodeIRI:a.relating.value,nodeValue:a.nodeValue?.value??"",nodeCategories:c});const l=a.relating.value.replace(/^.*\/([^/]*)$/,"$1");i[l]={value:a.nodeValue?.value??"",categories:c}}),t._entityDetails.set(i),s})()}_fetchEntityGraph(){var e=this;return(0,d.A)(function*(){const t=`PREFIX qcy: <${kt.qcy}>\nSELECT ?e1Cat ?e2Cat (COUNT(?e1) AS ?e1Count) (COUNT(?e2) AS ?e2Count)\nWHERE {\n ?e1 a qcy:CanonicalEntity ;\n qcy:hasEntityCategory ?e1Cat ;\n qcy:relatedEntity ?e2 .\n ?e2 qcy:hasEntityCategory ?e2Cat\n}\nGROUP BY ?e1Cat ?e2Cat`,r=yield e._api.sparql(t,e._projectId,e._graphType),o=[],s=[];r.results.bindings.forEach(i=>{if(!i.e1Cat||!i.e2Cat)return;const a=i.e1Cat.value,c=i.e2Cat.value,l=i.e1Count&&parseInt(i.e1Count.value,10)||20,h=i.e2Count&&parseInt(i.e2Count.value,10)||20;o.some(p=>p.iri===a)||o.push({iri:a,size:l}),o.some(p=>p.iri===c)||o.push({iri:c,size:h}),s.push({sourceID:a,targetID:c})}),e._entityGraph.set({entities:o,relations:s})})()}_checkPendingOSMFetches(){const e=this._entityOSMMap.get(),t=this._osmWKTMap.get(),r=[];for(const o of Object.values(e)){for(const s of o.direct)!t[s]&&!this._fetchingOSMIds.has(s)&&r.push(s);for(const{osm:s}of o.indirect)!t[s]&&!this._fetchingOSMIds.has(s)&&r.push(s)}if(0!==r.length){for(const o of r)this._fetchingOSMIds.add(o);this._fetchOSMLocations(r).catch(o=>console.error("[CueProjectEntities] OSM WKT fetch failed:",o))}}_fetchOSMLocations(e){var t=this;return(0,d.A)(function*(){const r=e.filter(c=>!c.includes("/relation/"));if(0===r.length)return;const o=r.map(c=>`<${c}>`).join(" "),s=`PREFIX geo: <${ts.geo}>\nSELECT * WHERE {\n VALUES ?s { ${o} }\n SERVICE <https://qlever.dev/api/osm-planet> {\n ?s geo:hasGeometry/geo:asWKT ?wkt\n }\n}`,i=yield t._api.sparql(s,t._projectId,t._graphType),a={...t._osmWKTMap.get()};i.results.bindings.forEach(c=>{!c.s||!c.wkt||(a[c.s.value]=c.wkt.value,t._fetchingOSMIds.delete(c.s.value))}),t._osmWKTMap.set(a)})()}}var _e=(n=>(n.AUTOMATION="automation",n.ARCHIVE="archive",n.AUDIO="audio",n.BACKUP="backup",n.BINARY="binary",n.BIM="bim",n.CAD="cad",n.DATA="data",n.EMAIL="email",n.FONT="font",n.GEOSPATIAL="geospatial",n.IMAGE="image",n.INSTALLER="installer",n.MARKUP="markup",n.MULTIMEDIA="multimedia",n.PLANNING="planning",n.PRESENTATION="presentation",n.SCRIPT="script",n.SPREADSHEET="spreadsheet",n.TEXT="text",n.THREE_D="3d",n.UNKNOWN="unknown",n.VIDEO="video",n))(_e||{});const Zy={".aac":{type:_e.AUDIO,open:!0,suffix:".aac",mime:"audio/aac"},".abw":{type:_e.TEXT,open:!0,suffix:".abw",mime:"application/x-abiword"},".arc":{type:_e.ARCHIVE,open:!1,suffix:".arc",mime:"application/x-freearc"},".avif":{type:_e.IMAGE,open:!0,suffix:".avif",mime:"image/avif"},".avi":{type:_e.VIDEO,open:!0,suffix:".avi",mime:"video/x-msvideo"},".apng":{type:_e.IMAGE,open:!0,suffix:".apng",mime:"image/apng"},".bak":{type:_e.BACKUP,open:!1,suffix:".bak",mime:"application/octet-stream"},".bin":{type:_e.BINARY,open:!1,suffix:".bin",mime:"application/octet-stream"},".bmc":{type:_e.BIM,open:!1,suffix:".bmc",mime:"application/octet-stream"},".bmp":{type:_e.IMAGE,open:!0,suffix:".bmp",mime:"image/bmp"},".bz":{type:_e.ARCHIVE,open:!0,suffix:".bz",mime:"application/x-bzip"},".bz2":{type:_e.ARCHIVE,open:!0,suffix:".bz2",mime:"application/x-bzip2"},".c3d":{type:_e.THREE_D,open:!0,suffix:".c3d",mime:"application/octet-stream"},".cpg":{type:_e.GEOSPATIAL,open:!0,suffix:".cpg",mime:"text/plain"},".css":{type:_e.MARKUP,open:!0,suffix:".css",mime:"text/css"},".csv":{type:_e.DATA,open:!0,suffix:".csv",mime:"text/csv"},".dat":{type:_e.DATA,open:!1,suffix:".dat",mime:"application/octet-stream"},".dbf":{type:_e.DATA,open:!0,suffix:".dbf",mime:"application/x-dbf"},".doc":{type:_e.TEXT,open:!1,suffix:".doc",mime:"application/msword"},".docx":{type:_e.TEXT,open:!0,suffix:".docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"},".e57":{type:_e.THREE_D,open:!0,suffix:".e57",mime:"application/octet-stream"},".epub":{type:_e.TEXT,open:!0,suffix:".epub",mime:"application/epub+zip"},".exe":{type:_e.INSTALLER,open:!1,suffix:".exe",mime:"application/x-msdownload"},".ffs":{type:_e.AUTOMATION,open:!1,suffix:".ffs",mime:"application/octet-stream"},".fme":{type:_e.AUTOMATION,open:!1,suffix:".fme",mime:"application/octet-stream"},".fmw":{type:_e.AUTOMATION,open:!1,suffix:".fmw",mime:"application/octet-stream"},".gh":{type:_e.THREE_D,open:!1,suffix:".gh",mime:"application/octet-stream"},".gz":{type:_e.ARCHIVE,open:!0,suffix:".gz",mime:"application/gzip"},".gif":{type:_e.IMAGE,open:!0,suffix:".gif",mime:"image/gif"},".html":{type:_e.MARKUP,open:!0,suffix:".html",mime:"text/html"},".htm":{type:_e.MARKUP,open:!0,suffix:".htm",mime:"text/html"},".ico":{type:_e.IMAGE,open:!1,suffix:".ico",mime:"image/x-icon"},".ics":{type:_e.DATA,open:!0,suffix:".ics",mime:"text/calendar"},".jar":{type:_e.ARCHIVE,open:!0,suffix:".jar",mime:"application/java-archive"},".jpg":{type:_e.IMAGE,open:!0,suffix:".jpg",mime:"image/jpeg"},".jpeg":{type:_e.IMAGE,open:!0,suffix:".jpeg",mime:"image/jpeg"},".json":{type:_e.DATA,open:!0,suffix:".json",mime:"application/json"},".jsonld":{type:_e.DATA,open:!0,suffix:".jsonld",mime:"application/ld+json"},".js":{type:_e.SCRIPT,open:!0,suffix:".js",mime:"application/javascript"},".msi":{type:_e.INSTALLER,open:!1,suffix:".msi",mime:"application/x-msdownload"},".mov":{type:_e.VIDEO,open:!0,suffix:".mov",mime:"video/quicktime"},".mp3":{type:_e.AUDIO,open:!0,suffix:".mp3",mime:"audio/mpeg"},".mp4":{type:_e.VIDEO,open:!0,suffix:".mp4",mime:"video/mp4"},".mpeg":{type:_e.VIDEO,open:!0,suffix:".mpeg",mime:"video/mpeg"},".mtl":{type:_e.THREE_D,open:!0,suffix:".mtl",mime:"text/plain"},".odp":{type:_e.PRESENTATION,open:!0,suffix:".odp",mime:"application/vnd.oasis.opendocument.presentation"},".ods":{type:_e.SPREADSHEET,open:!0,suffix:".ods",mime:"application/vnd.oasis.opendocument.spreadsheet"},".odt":{type:_e.TEXT,open:!0,suffix:".odt",mime:"application/vnd.oasis.opendocument.text"},".oga":{type:_e.AUDIO,open:!0,suffix:".oga",mime:"audio/ogg"},".ogg":{type:_e.AUDIO,open:!0,suffix:".ogg",mime:"audio/ogg"},".ogv":{type:_e.VIDEO,open:!0,suffix:".ogv",mime:"video/ogg"},".ogx":{type:_e.VIDEO,open:!0,suffix:".ogx",mime:"application/octet-stream"},".otf":{type:_e.FONT,open:!0,suffix:".otf",mime:"font/otf"},".png":{type:_e.IMAGE,open:!0,suffix:".png",mime:"image/png"},".pdf":{type:_e.TEXT,open:!0,suffix:".pdf",mime:"application/pdf"},".php":{type:_e.SCRIPT,open:!0,suffix:".php",mime:"application/x-httpd-php"},".pkg":{type:_e.INSTALLER,open:!1,suffix:".pkg",mime:"application/octet-stream"},".ppt":{type:_e.PRESENTATION,open:!1,suffix:".ppt",mime:"application/vnd.ms-powerpoint"},".pptx":{type:_e.PRESENTATION,open:!0,suffix:".pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"},".ps":{type:_e.IMAGE,open:!1,suffix:".ps",mime:"application/postscript"},".rar":{type:_e.ARCHIVE,open:!1,suffix:".rar",mime:"application/vnd.rar"},".rcp":{type:_e.THREE_D,open:!1,suffix:".rcp",mime:"application/octet-stream"},".rtf":{type:_e.TEXT,open:!0,suffix:".rtf",mime:"application/rtf"},".sbn":{type:_e.GEOSPATIAL,open:!1,suffix:".sbn",mime:"application/octet-stream"},".sbx":{type:_e.GEOSPATIAL,open:!1,suffix:".sbx",mime:"application/octet-stream"},".shx":{type:_e.GEOSPATIAL,open:!0,suffix:".shx",mime:"application/octet-stream"},".sh":{type:_e.SCRIPT,open:!0,suffix:".sh",mime:"application/x-sh"},".slk":{type:_e.DATA,open:!0,suffix:".slk",mime:"application/vnd.ms-excel"},".svg":{type:_e.IMAGE,open:!0,suffix:".svg",mime:"image/svg+xml"},".tar":{type:_e.ARCHIVE,open:!0,suffix:".tar",mime:"application/x-tar"},".tiff":{type:_e.IMAGE,open:!0,suffix:".tiff",mime:"image/tiff"},".tif":{type:_e.IMAGE,open:!0,suffix:".tif",mime:"image/tiff"},".ttf":{type:_e.FONT,open:!0,suffix:".ttf",mime:"font/ttf"},".txt":{type:_e.TEXT,open:!0,suffix:".txt",mime:"text/plain"},".vgl":{type:_e.THREE_D,open:!1,suffix:".vgl",mime:"application/octet-stream"},".vwx":{type:_e.CAD,open:!1,suffix:".vwx",mime:"application/octet-stream"},".wav":{type:_e.AUDIO,open:!0,suffix:".wav",mime:"audio/wav"},".webm":{type:_e.VIDEO,open:!0,suffix:".webm",mime:"video/webm"},".webp":{type:_e.IMAGE,open:!0,suffix:".webp",mime:"image/webp"},".wmv":{type:_e.VIDEO,open:!0,suffix:".wmv",mime:"video/x-ms-wmv"},".woff":{type:_e.FONT,open:!0,suffix:".woff",mime:"font/woff"},".woff2":{type:_e.FONT,open:!0,suffix:".woff2",mime:"font/woff2"},".xls":{type:_e.SPREADSHEET,open:!1,suffix:".xls",mime:"application/vnd.ms-excel"},".xlsx":{type:_e.SPREADSHEET,open:!0,suffix:".xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},".xhtml":{type:_e.MARKUP,open:!0,suffix:".xhtml",mime:"application/xhtml+xml"},".xml":{type:_e.DATA,open:!0,suffix:".xml",mime:"application/xml"},".xyz":{type:_e.THREE_D,open:!0,suffix:".xyz",mime:"chemical/x-xyz"},".zip":{type:_e.ARCHIVE,open:!0,suffix:".zip",mime:"application/zip"},".7z":{type:_e.ARCHIVE,open:!0,suffix:".7z",mime:"application/x-7z-compressed"},".eml":{type:_e.EMAIL,open:!0,suffix:".eml",mime:"message/rfc822"},".emlx":{type:_e.EMAIL,open:!0,suffix:".emlx",mime:"application/octet-stream"},".mbx":{type:_e.EMAIL,open:!0,suffix:".mbx",mime:"application/mbox"},".md":{type:_e.TEXT,open:!0,suffix:".md",mime:"text/markdown"},".msg":{type:_e.EMAIL,open:!1,suffix:".msg",mime:"application/vnd.ms-outlook"},".rst":{type:_e.TEXT,open:!0,suffix:".rst",mime:"text/x-rst"},".heic":{type:_e.IMAGE,open:!1,suffix:".heic",mime:"image/heic"},".mpp":{type:_e.PLANNING,open:!1,suffix:".mpp",mime:"application/vnd.ms-project"},".tsv":{type:_e.DATA,open:!0,suffix:".tsv",mime:"text/tab-separated-values"},".b3dm":{type:_e.THREE_D,open:!0,suffix:".b3dm",mime:"application/octet-stream"},".i3dm":{type:_e.THREE_D,open:!0,suffix:".i3dm",mime:"application/octet-stream"},".pnts":{type:_e.THREE_D,open:!1,suffix:".pnts",mime:"application/octet-stream"},".cmpt":{type:_e.THREE_D,open:!1,suffix:".cmpt",mime:"application/octet-stream"},".gltf":{type:_e.THREE_D,open:!0,suffix:".gltf",mime:"model/gltf+json"},".glb":{type:_e.THREE_D,open:!0,suffix:".glb",mime:"model/gltf-binary"},".ifc":{type:_e.BIM,open:!0,suffix:".ifc",mime:"application/x-step"},".ifczip":{type:_e.BIM,open:!0,suffix:".ifczip",mime:"application/zip"},".ifcxml":{type:_e.BIM,open:!0,suffix:".ifcxml",mime:"application/xml"},".3dm":{type:_e.CAD,open:!1,suffix:".3dm",mime:"application/vnd.x-rhino3dm"},".3ds":{type:_e.THREE_D,open:!1,suffix:".3ds",mime:"image/x-3ds"},".ghp":{type:_e.CAD,open:!1,suffix:".ghp",mime:"application/octet-stream"},".rvt":{type:_e.BIM,open:!1,suffix:".rvt",mime:"application/octet-stream"},".rfa":{type:_e.BIM,open:!1,suffix:".rfa",mime:"application/octet-stream"},".rft":{type:_e.BIM,open:!1,suffix:".rft",mime:"application/octet-stream"},".rte":{type:_e.BIM,open:!1,suffix:".rte",mime:"application/octet-stream"},".pla":{type:_e.BIM,open:!1,suffix:".pla",mime:"application/octet-stream"},".pln":{type:_e.BIM,open:!1,suffix:".pln",mime:"application/octet-stream"},".gsm":{type:_e.BIM,open:!1,suffix:".gsm",mime:"application/octet-stream"},".smc":{type:_e.BIM,open:!1,suffix:".smc",mime:"application/octet-stream"},".bcf":{type:_e.BIM,open:!0,suffix:".bcf",mime:"application/octet-stream"},".dwg":{type:_e.CAD,open:!1,suffix:".dwg",mime:"application/acad"},".dwl":{type:_e.CAD,open:!1,suffix:".dwl",mime:"application/octet-stream"},".dxf":{type:_e.CAD,open:!0,suffix:".dxf",mime:"image/vnd.dxf"},".dgn":{type:_e.CAD,open:!1,suffix:".dgn",mime:"application/octet-stream"},".nwd":{type:_e.BIM,open:!1,suffix:".nwd",mime:"application/octet-stream"},".obj":{type:_e.THREE_D,open:!0,suffix:".obj",mime:"text/plain"},".c4d":{type:_e.THREE_D,open:!1,suffix:".c4d",mime:"application/octet-stream"},".teklastructures":{type:_e.BIM,open:!1,suffix:".teklastructures",mime:"application/octet-stream"},".pts":{type:_e.THREE_D,open:!1,suffix:".pts",mime:"application/octet-stream"},".las":{type:_e.THREE_D,open:!0,suffix:".las",mime:"application/octet-stream"},".laz":{type:_e.THREE_D,open:!0,suffix:".laz",mime:"application/octet-stream"},".usdz":{type:_e.THREE_D,open:!0,suffix:".usdz",mime:"model/vnd.usdz+zip"},".usda":{type:_e.THREE_D,open:!0,suffix:".usda",mime:"application/octet-stream"},".usdc":{type:_e.THREE_D,open:!0,suffix:".usdc",mime:"application/octet-stream"},".usd":{type:_e.THREE_D,open:!0,suffix:".usd",mime:"application/octet-stream"},".psd":{type:_e.IMAGE,open:!1,suffix:".psd",mime:"image/vnd.adobe.photoshop"},".psp":{type:_e.IMAGE,open:!1,suffix:".psp",mime:"image/x-paintshoppro"},".ai":{type:_e.IMAGE,open:!1,suffix:".ai",mime:"application/postscript"},".skp":{type:_e.THREE_D,open:!1,suffix:".skp",mime:"application/vnd.sketchup.skp"},".stl":{type:_e.THREE_D,open:!0,suffix:".stl",mime:"model/stl"},".fbx":{type:_e.THREE_D,open:!0,suffix:".fbx",mime:"application/octet-stream"},".kml":{type:_e.GEOSPATIAL,open:!0,suffix:".kml",mime:"application/vnd.google-earth.kml+xml"},".shp":{type:_e.GEOSPATIAL,open:!0,suffix:".shp",mime:"application/octet-stream"},".fragments":{type:_e.BIM,open:!0,suffix:".fragments",mime:"application/octet-stream"}};class zd{constructor(e,t,r,o=$y,s,i=!1){this._api=e,this._projectId=t,this._graphType=s,this._verbose=i,this.baseURL=`${o}${t}/`,this._currentLang=r??this._api.language,this.documentInfoMap=this._documentInfoMap.asReadonly(),this.projectDocumentsData=this._projectDocumentsData.asReadonly()}_api;_projectId;_graphType;_verbose;baseURL;_currentLang;_documentInfoMap=new Gn({});_seenIds=new Set;_projectDocumentsData=new Gn({duplicateCount:0,documentsBySuffix:{},documentsByContentCategory:{}});documentInfoMap;projectDocumentsData;reset(){this._documentInfoMap.set({}),this._seenIds.clear(),this._projectDocumentsData.set({duplicateCount:0,documentsBySuffix:{},documentsByContentCategory:{}})}setLanguage(e){this._currentLang!==e&&(this._currentLang=e,this._api.setLanguage(e),this._documentInfoMap.set({}))}fetchOverview(){var e=this;return(0,d.A)(function*(){e._projectDocumentsData.set({duplicateCount:0,documentsBySuffix:{},documentsByContentCategory:{}});const[t,r,o]=yield Promise.all([e._fetchDocumentsBySuffix(),e._fetchDocumentsByContentCategory(),e._fetchDuplicateCount()]);e._projectDocumentsData.set({duplicateCount:o,documentsBySuffix:t,documentsByContentCategory:r})})()}requestDocumentData(e){for(const r of e)this._seenIds.add(r);const t=e.filter(r=>void 0===this._documentInfoMap.get()[r]);0!==t.length&&(this._log(`requestDocumentData: ${t.length} new / ${e.length} requested | cumulative: ${this._seenIds.size} seen`),this._fetchDocumentInfoBatch(t).catch(r=>console.error("[CueProjectDocuments] requestDocumentData failed:",r)))}fetchDocumentData(e){var t=this;return(0,d.A)(function*(){const r=t._documentInfoMap.get(),o=e.filter(i=>void 0===r[i]);for(const i of e)t._seenIds.add(i);o.length>0&&(yield t._fetchDocumentInfoBatch(o));const s=t._documentInfoMap.get();return Object.fromEntries(e.filter(i=>void 0!==s[i]).map(i=>[i,s[i]]))})()}fetchDocumentDataSimple(e){var t=this;return(0,d.A)(function*(){const r=t._documentInfoMap.get(),o=e.filter(i=>void 0===r[i]);for(const i of e)t._seenIds.add(i);o.length>0&&(yield t._fetchSimpleDocumentInfoBatch(o));const s=t._documentInfoMap.get();return Object.fromEntries(e.filter(i=>void 0!==s[i]).map(i=>[i,s[i]]))})()}fetchAlternativeRepresentations(e){var t=this;return(0,d.A)(function*(){const r=`PREFIX qcy: <${kt.qcy}>\nPREFIX r: <${t.baseURL}>\nSELECT ?altId ?contentIRI ?suffix ?rrp\nWHERE {\n r:${e} qcy:alternativeRepresentation ?contentIRI .\n BIND(REPLACE(STR(?contentIRI), "^.*/([^/]*)$", "$1") AS ?altId)\n ?contentIRI qcy:hasFileLocation ?loc .\n ?loc qcy:suffix ?suffix .\n OPTIONAL { ?loc qcy:remoteRelativePath ?rrp }\n}`,o=yield t._api.sparql(r,t._projectId,t._graphType),s={...t._documentInfoMap.get()},i=[];return o.results.bindings.forEach(a=>{if(!a.altId||!a.contentIRI)return;const c=a.altId.value,l={id:c,contentIRI:a.contentIRI.value,path:"",suffix:a.suffix?.value??"",size:0,tags:[],categories:[],remoteRelativePath:a.rrp?.value};s[c]=l,i.push(l)}),t._documentInfoMap.set(s),i})()}randomFilePath(){var e=this;return(0,d.A)(function*(){const t=`PREFIX qcy: <${kt.qcy}>\nSELECT ?path\nWHERE {\n ?fl a qcy:FileLocation ;\n qcy:filePath ?path .\n}\nLIMIT 1`;return(yield e._api.sparql(t,e._projectId,e._graphType)).results.bindings[0]?.path?.value??null})()}documentsBySuffix(e){var t=this;return(0,d.A)(function*(r,o=!1){if(0===r.length)return[];const s=r.map(a=>(a.startsWith(".")?a:`.${a}`).toLowerCase()).map(a=>`"${a}"`).join(" "),i=o?`PREFIX qcy: <${kt.qcy}>\nSELECT ?id (SAMPLE(?fp) AS ?path) ?suffix (MAX(?sz) AS ?size)\nWHERE {\n VALUES ?suffix { ${s} }\n ?iri a qcy:FileContent ;\n qcy:sizeBytes ?sz ;\n qcy:hasFileLocation ?loc .\n ?loc qcy:suffix ?suffix ;\n qcy:filePath ?fp .\n FILTER NOT EXISTS { ?x qcy:alternativeRepresentation ?iri }\n BIND(REPLACE(STR(?iri), "^.*/", "") AS ?id)\n}\nGROUP BY ?id ?suffix`:`PREFIX qcy: <${kt.qcy}>\nSELECT DISTINCT ?id\nWHERE {\n VALUES ?suffix { ${s} }\n ?iri a qcy:FileContent ;\n qcy:hasFileLocation/qcy:suffix ?suffix .\n FILTER NOT EXISTS { ?x qcy:alternativeRepresentation ?iri }\n BIND(REPLACE(STR(?iri), "^.*/", "") AS ?id)\n}`;return(yield t._api.sparql(i,t._projectId,t._graphType)).results.bindings.filter(a=>a.id).map(a=>{const c=a.id.value,l={iri:t._resourceIri(c),uuid:c};return o?{...l,path:a.path?.value??"",suffix:a.suffix?.value??"",size:a.size?parseInt(a.size.value,10):0}:l})}).apply(this,arguments)}documentsByFileType(e,t=!1){const r=new Set(e),o=Object.values(Zy).filter(s=>r.has(s.type)).map(s=>s.suffix);return this.documentsBySuffix(o,t)}documentsByContentCategory(e){var t=this;return(0,d.A)(function*(r,o=!1){if(0===r.length)return[];const s=r.map(a=>`<${a}>`).join(" "),i=o?`PREFIX qcy: <${kt.qcy}>\nSELECT ?id (SAMPLE(?fp) AS ?path) ?suffix (MAX(?sz) AS ?size)\nWHERE {\n VALUES ?cat { ${s} }\n ?iri a qcy:FileContent ;\n qcy:hasContentCategory ?cat ;\n qcy:sizeBytes ?sz ;\n qcy:hasFileLocation ?loc .\n ?loc qcy:suffix ?suffix ;\n qcy:filePath ?fp .\n FILTER NOT EXISTS { ?x qcy:alternativeRepresentation ?iri }\n BIND(REPLACE(STR(?iri), "^.*/", "") AS ?id)\n}\nGROUP BY ?id ?suffix`:`PREFIX qcy: <${kt.qcy}>\nSELECT DISTINCT ?id\nWHERE {\n VALUES ?cat { ${s} }\n ?iri a qcy:FileContent ;\n qcy:hasContentCategory ?cat .\n FILTER NOT EXISTS { ?x qcy:alternativeRepresentation ?iri }\n BIND(REPLACE(STR(?iri), "^.*/", "") AS ?id)\n}`;return(yield t._api.sparql(i,t._projectId,t._graphType)).results.bindings.filter(a=>a.id).map(a=>{const c=a.id.value,l={iri:t._resourceIri(c),uuid:c};return o?{...l,path:a.path?.value??"",suffix:a.suffix?.value??"",size:a.size?parseInt(a.size.value,10):0}:l})}).apply(this,arguments)}documentsByMime(e,t=!1){const r=new Set(e),o=Object.values(Zy).filter(s=>r.has(s.mime)).map(s=>s.suffix);return this.documentsBySuffix(o,t)}_resourceIri(e){return`${this.baseURL}${e}`}_log(e){this._verbose&&console.debug(`[CueProjectDocuments pid=${this._projectId}] ${e}`)}_fetchDocumentInfoBatch(e){var t=this;return(0,d.A)(function*(){const r=e.map(l=>`r:${l}`).join(" "),o=t._api.language,s=`PREFIX qcy: <${kt.qcy}>\nPREFIX r: <${t.baseURL}>\nSELECT ?id ?suffix ?size ?subject ?summary\n (SAMPLE(?fp) AS ?path)\n (GROUP_CONCAT(DISTINCT ?tag; SEPARATOR=";") AS ?tags)\n (GROUP_CONCAT(DISTINCT STR(?cat); SEPARATOR=";") AS ?categories)\nWHERE {\n VALUES ?contentIRI { ${r} }\n ?contentIRI qcy:sizeBytes ?size ;\n qcy:hasFileLocation ?loc .\n ?loc qcy:filePath ?fp ;\n qcy:suffix ?suffix .\n OPTIONAL { ?contentIRI qcy:hasContentCategory ?cat }\n OPTIONAL { ?contentIRI qcy:tag ?tag }\n OPTIONAL { ?loc qcy:remoteProviderId ?pid }\n\n OPTIONAL { ?contentIRI qcy:subject ?lang_subj FILTER(LANG(?lang_subj) = "${o}") }\n OPTIONAL { ?contentIRI qcy:subject ?no_lang_subj }\n BIND(COALESCE(?lang_subj, ?no_lang_subj) AS ?subject)\n\n OPTIONAL { ?contentIRI qcy:textSummary ?lang_summary FILTER(LANG(?lang_summary) = "${o}") }\n OPTIONAL { ?contentIRI qcy:textSummary ?no_lang_summary }\n BIND(COALESCE(?lang_summary, ?no_lang_summary) AS ?summary)\n\n BIND(REPLACE(STR(?contentIRI), "^.*/", "") AS ?id)\n}\nGROUP BY ?id ?suffix ?size ?subject ?summary`,i=yield t._api.sparql(s,t._projectId),a={...t._documentInfoMap.get()},c={};return i.results.bindings.forEach(l=>{if(!l.id)return;const h=l.id.value,p={id:h,contentIRI:t._resourceIri(h),path:l.path?.value??"",suffix:l.suffix?.value??"",size:l.size?parseInt(l.size.value,10):0,tags:l.tags?.value?.split(";").filter(Boolean)??[],categories:l.categories?.value?.split(";").filter(Boolean)??[],subject:l.subject?.value,summary:l.summary?.value,providerId:l.pid?.value};a[h]=p,c[h]=p}),t._documentInfoMap.set(a),t._log(`fetchDocumentInfoBatch: ${Object.keys(c).length} fetched | cumulative: ${Object.keys(a).length} with metadata / ${t._seenIds.size} seen`),c})()}_fetchSimpleDocumentInfoBatch(e){var t=this;return(0,d.A)(function*(){const r=e.map(c=>`r:${c}`).join(" "),o=`PREFIX qcy: <${kt.qcy}>\nPREFIX r: <${t.baseURL}>\nSELECT ?id ?suffix ?size (SAMPLE(?fp) AS ?path)\nWHERE {\n VALUES ?contentIRI { ${r} }\n ?contentIRI qcy:sizeBytes ?size ;\n qcy:hasFileLocation ?loc .\n ?loc qcy:filePath ?fp ;\n qcy:suffix ?suffix .\n BIND(REPLACE(STR(?contentIRI), "^.*/", "") AS ?id)\n}\nGROUP BY ?id ?suffix ?size`,s=yield t._api.sparql(o,t._projectId,t._graphType),i={...t._documentInfoMap.get()},a={};return s.results.bindings.forEach(c=>{if(!c.id)return;const l=c.id.value,h=i[l],p={id:l,contentIRI:t._resourceIri(l),path:c.path?.value??h?.path??l,suffix:c.suffix?.value??h?.suffix??"",size:c.size?parseInt(c.size.value,10):h?.size??0,tags:h?.tags??[],categories:h?.categories??[],subject:h?.subject,summary:h?.summary,providerId:h?.providerId};i[l]=p,a[l]=p}),t._documentInfoMap.set(i),t._log(`fetchSimpleDocumentInfoBatch: ${Object.keys(a).length} fetched | cumulative: ${Object.keys(i).length} with metadata / ${t._seenIds.size} seen`),a})()}_fetchDocumentsBySuffix(){var e=this;return(0,d.A)(function*(){if("fuseki"!==e._graphType){const t=yield e._runDocumentsBySuffixQuery("PREFIX view: <https://qlever.cs.uni-freiburg.de/materializedView/>\nSELECT ?ext ?totalSize ?docCount\nWHERE {\n SERVICE view:docs-by-suffix {\n _:cfg view:column-ext ?ext ;\n view:column-totalSize ?totalSize ;\n view:column-docCount ?docCount .\n }\n}");if(Object.keys(t).length>0)return t;console.warn(`[CueProjectDocuments] Materialized view "docs-by-suffix" returned no rows for project ${e._projectId} \u2014 falling back to live query.`)}return e._runDocumentsBySuffixQuery(e._buildDocumentsBySuffixQuery())})()}_buildDocumentsBySuffixQuery(){return`PREFIX qcy: <${kt.qcy}>\nSELECT ?ext (SUM(?size) AS ?totalSize) (COUNT(*) AS ?docCount)\nWHERE {\n {\n SELECT DISTINCT ?fc ?ext ?size\n WHERE {\n ?fc a qcy:FileContent ;\n qcy:sizeBytes ?size ;\n qcy:hasFileLocation/qcy:suffix ?ext .\n FILTER NOT EXISTS { ?x qcy:alternativeRepresentation ?fc }\n }\n }\n}\nGROUP BY ?ext\nORDER BY DESC(?docCount)`}_runDocumentsBySuffixQuery(e){var t=this;return(0,d.A)(function*(){const r=yield t._api.sparql(e,t._projectId,t._graphType),o={};return r.results.bindings.forEach(s=>{s.ext&&(o[s.ext.value]={size:s.totalSize?parseInt(s.totalSize.value,10):0,count:s.docCount?parseInt(s.docCount.value,10):0})}),o})()}_fetchDocumentsByContentCategory(){var e=this;return(0,d.A)(function*(){if("fuseki"!==e._graphType){const t=yield e._runDocumentsByContentCategoryQuery("PREFIX view: <https://qlever.cs.uni-freiburg.de/materializedView/>\nSELECT ?cat ?totalSize ?docCount\nWHERE {\n SERVICE view:docs-by-category {\n _:cfg view:column-cat ?cat ;\n view:column-totalSize ?totalSize ;\n view:column-docCount ?docCount .\n }\n}");if(Object.keys(t).length>0)return t;console.warn(`[CueProjectDocuments] Materialized view "docs-by-category" returned no rows for project ${e._projectId} \u2014 falling back to live query.`)}return e._runDocumentsByContentCategoryQuery(e._buildDocumentsByContentCategoryQuery())})()}_buildDocumentsByContentCategoryQuery(){return`PREFIX qcy: <${kt.qcy}>\nSELECT ?cat (SUM(?size) AS ?totalSize) (COUNT(*) AS ?docCount)\nWHERE {\n {\n SELECT DISTINCT ?fc ?cat ?size\n WHERE {\n ?fc a qcy:FileContent ;\n qcy:hasContentCategory ?cat ;\n qcy:sizeBytes ?size .\n FILTER NOT EXISTS { ?x qcy:alternativeRepresentation ?fc }\n }\n }\n}\nGROUP BY ?cat\nORDER BY DESC(?docCount)`}_runDocumentsByContentCategoryQuery(e){var t=this;return(0,d.A)(function*(){const r=yield t._api.sparql(e,t._projectId,t._graphType),o={};return r.results.bindings.forEach(s=>{s.cat&&(o[s.cat.value]={size:s.totalSize?parseInt(s.totalSize.value,10):0,count:s.docCount?parseInt(s.docCount.value,10):0})}),o})()}_fetchDuplicateCount(){var e=this;return(0,d.A)(function*(){if("fuseki"!==e._graphType){const t=yield e._api.sparql("PREFIX view: <https://qlever.cs.uni-freiburg.de/materializedView/>\nSELECT ?count\nWHERE {\n SERVICE view:doc-duplicates {\n _:cfg view:column-count ?count .\n }\n}",e._projectId,e._graphType);if(t.results.bindings.length>0){const r=t.results.bindings[0];return r?.count?parseInt(r.count.value,10):0}console.warn(`[CueProjectDocuments] Materialized view "doc-duplicates" returned no rows for project ${e._projectId} \u2014 falling back to live query.`)}return e._runDuplicateCountQuery(e._buildDuplicateCountQuery())})()}_buildDuplicateCountQuery(){return`PREFIX qcy: <${kt.qcy}>\nSELECT (COUNT(*) AS ?count)\nWHERE {\n SELECT ?fc\n WHERE {\n ?fc a qcy:FileContent ;\n qcy:hasFileLocation ?fl .\n FILTER NOT EXISTS { ?x qcy:alternativeRepresentation ?fc }\n }\n GROUP BY ?fc\n HAVING (COUNT(?fl) > 1)\n}`}_runDuplicateCountQuery(e){var t=this;return(0,d.A)(function*(){const r=(yield t._api.sparql(e,t._projectId,t._graphType)).results.bindings[0];return r?.count?parseInt(r.count.value,10):0})()}}const iw="https://qlever.cs.uni-freiburg.de/materializedView/",mu=kt.qcy;class g9{constructor(e,t,r){this._api=e,this._projectId=t,this._graphType=r}_api;_projectId;_graphType;availableFilters(e){var t=this;return(0,d.A)(function*(){const r=e??{};if("fuseki"!==t._graphType)try{const[a,c,l]=yield Promise.all([t._api.sparql(t._buildViewDimQuery("mime",r),t._projectId,t._graphType),t._api.sparql(t._buildViewDimQuery("content",r),t._projectId,t._graphType),t._api.sparql(t._buildViewDimQuery("entity",r),t._projectId,t._graphType)]),h=tP(a,c,l);if(h.mimes.length+h.contents.length+h.entityCategories.length>0)return h;console.warn(`[CueDocumentFilter] Materialized view "document-categories" returned no rows for project ${t._projectId} \u2014 falling back to the live query.`)}catch{}const[o,s,i]=yield Promise.all([t._api.sparql(t._buildLiveDimQuery("mime",r),t._projectId,t._graphType),t._api.sparql(t._buildLiveDimQuery("content",r),t._projectId,t._graphType),t._api.sparql(t._buildLiveDimQuery("entity",r),t._projectId,t._graphType)]);return tP(o,s,i)})()}availableEntities(e,t){var r=this;return(0,d.A)(function*(){const o=YR(t??{}).join("\n "),s=`PREFIX qcy: <${mu}>\nSELECT DISTINCT ?entity ?val\nWHERE {\n {\n SELECT DISTINCT ?doc WHERE {\n ?doc a qcy:FileContent .\n FILTER NOT EXISTS { ?_alt qcy:alternativeRepresentation ?doc }\n ${o}\n }\n }\n ?doc qcy:about ?entity .\n ?entity qcy:hasEntityCategory <${e}> ;\n qcy:value ?val .\n}\nORDER BY ?val`,i=yield r._api.sparql(s,r._projectId,r._graphType),a=new Set,c=[];for(const l of i.results.bindings){const h=l.entity?.value;!h||a.has(h)||(a.add(h),c.push({iri:h,label:l.val?.value??eP(h)}))}return c})()}doLookup(e){var t=this;return(0,d.A)(function*(){if(0===e.length)return[];if("fuseki"!==t._graphType)try{const o=t._buildViewFilterQuery(e),s=(yield t._api.sparql(o,t._projectId,t._graphType)).results.bindings.map(i=>i.id?.value).filter(Boolean);if(s.length>0)return s}catch{}const r=t._buildFilterQuery(e);return(yield t._api.sparql(r,t._projectId,t._graphType)).results.bindings.map(o=>o.id?.value).filter(Boolean)})()}_buildViewDimQuery(e,t){const r="mime"===e?"doc-mime-cats":"content"===e?"doc-content-cats":"doc-entity-cats",o="mime"===e?"?mimeCat":"content"===e?"?contentCat":"?entityCat",s=function _9(n){const e=[];for(const t of n.entities??[])e.push(`?doc qcy:about <${t}> .`);if(n.mimes?.length){const t=n.mimes.map(o=>`<${o}>`).join(", "),r=1===n.mimes.length?`?aMimeCat = ${t}`:`?aMimeCat IN (${t})`;e.push("SERVICE view:doc-mime-cats { _:cfgM view:column-doc ?doc ; view:column-cat ?aMimeCat . }"),e.push(`FILTER(${r})`)}if(n.contents?.length){const t=n.contents.map(o=>`<${o}>`).join(", "),r=1===n.contents.length?`?aContentCat = ${t}`:`?aContentCat IN (${t})`;e.push("SERVICE view:doc-content-cats { _:cfgC view:column-doc ?doc ; view:column-cat ?aContentCat . }"),e.push(`FILTER(${r})`)}if(n.entityCategories?.length){const t=n.entityCategories.map(o=>`<${o}>`).join(", "),r=1===n.entityCategories.length?`?aEntityCat = ${t}`:`?aEntityCat IN (${t})`;e.push("SERVICE view:doc-entity-cats { _:cfgE view:column-doc ?doc ; view:column-cat ?aEntityCat . }"),e.push(`FILTER(${r})`)}return e}(t);return 0===s.length?`PREFIX view: <${iw}>\nSELECT DISTINCT ${o}\nWHERE {\n SERVICE view:${r} {\n _:cfg view:column-doc ?doc ;\n view:column-cat ${o} .\n }\n}`:`PREFIX view: <${iw}>\nPREFIX qcy: <${mu}>\nSELECT DISTINCT ${o}\nWHERE {\n {\n SELECT DISTINCT ?doc WHERE {\n ${s.join("\n ")}\n }\n }\n SERVICE view:${r} {\n _:cfgOut view:column-doc ?doc ;\n view:column-cat ${o} .\n }\n}`}_buildLiveDimQuery(e,t){const r=YR(t).join("\n ");return`PREFIX qcy: <${mu}>\nSELECT DISTINCT ${"mime"===e?"?mimeCat":"content"===e?"?contentCat":"?entityCat"}\nWHERE {\n {\n SELECT DISTINCT ?doc WHERE {\n ?doc a qcy:FileContent .\n FILTER NOT EXISTS { ?_alt qcy:alternativeRepresentation ?doc }\n ${r}\n }\n }\n ${"mime"===e?"?doc qcy:hasMimeCategory ?mimeCat .":"content"===e?"?doc qcy:hasContentCategory ?contentCat .":"?doc qcy:about ?e . ?e qcy:hasEntityCategory ?entityCat ."}\n}`}_buildViewFilterQuery(e){const t=[];for(const r of e){if("entityInstance"===r.type){if(1===r.included.length)t.push(`?doc qcy:about <${r.included[0]}> .`);else if(r.included.length>1){const i=r.included.map(a=>`<${a}>`).join(", ");t.push(`?doc qcy:about ?eiInc . FILTER(?eiInc IN (${i}))`)}for(const i of r.excluded)t.push(`FILTER NOT EXISTS { ?doc qcy:about <${i}> }`);continue}const o="entity"===r.type?"doc-entity-cats":"mime"===r.type?"doc-mime-cats":"doc-content-cats",s=`?${r.type}IncCat`;if(r.included.length>0){const i=r.included.map(c=>`<${c}>`).join(", "),a=1===r.included.length?`${s} = ${i}`:`${s} IN (${i})`;t.push(`SERVICE view:${o} { _:cfgI${r.type} view:column-doc ?doc ; view:column-cat ${s} . }`),t.push(`FILTER(${a})`)}for(const i of r.excluded)t.push("entity"===r.type?`FILTER NOT EXISTS { ?doc qcy:about ?excE . ?excE qcy:hasEntityCategory <${i}> }`:"mime"===r.type?`FILTER NOT EXISTS { ?doc qcy:hasMimeCategory <${i}> }`:`FILTER NOT EXISTS { ?doc qcy:hasContentCategory <${i}> }`)}if(0===t.length)throw new Error("no view filter clauses");return`PREFIX view: <${iw}>\nPREFIX qcy: <${mu}>\nSELECT DISTINCT ?id\nWHERE {\n ${t.join("\n ")}\n BIND(REPLACE(STR(?doc), "^.*/([^/]*)$", "$1") AS ?id)\n}`}_buildFilterQuery(e){const t=[];for(const r of e){if("entity"===r.type){if(1===r.included.length)t.push(`?doc qcy:about ?e_inc . ?e_inc qcy:hasEntityCategory <${r.included[0]}> .`);else if(r.included.length>1){const o=r.included.map(s=>`<${s}>`).join(", ");t.push(`?doc qcy:about ?e_inc . ?e_inc qcy:hasEntityCategory ?ec_inc . FILTER(?ec_inc IN (${o}))`)}for(const o of r.excluded)t.push(`FILTER NOT EXISTS { ?doc qcy:about ?e_exc . ?e_exc qcy:hasEntityCategory <${o}> }`)}if("entityInstance"===r.type){if(1===r.included.length)t.push(`?doc qcy:about <${r.included[0]}> .`);else if(r.included.length>1){const o=r.included.map(s=>`<${s}>`).join(", ");t.push(`?doc qcy:about ?ei_inc . FILTER(?ei_inc IN (${o}))`)}for(const o of r.excluded)t.push(`FILTER NOT EXISTS { ?doc qcy:about <${o}> }`)}if("mime"===r.type){if(1===r.included.length)t.push(`?doc qcy:hasMimeCategory <${r.included[0]}> .`);else if(r.included.length>1){const o=r.included.map(s=>`<${s}>`).join(", ");t.push(`?doc qcy:hasMimeCategory ?mc_inc . FILTER(?mc_inc IN (${o}))`)}for(const o of r.excluded)t.push(`FILTER NOT EXISTS { ?doc qcy:hasMimeCategory <${o}> }`)}if("content"===r.type){if(1===r.included.length)t.push(`?doc qcy:hasContentCategory <${r.included[0]}> .`);else if(r.included.length>1){const o=r.included.map(s=>`<${s}>`).join(", ");t.push(`?doc qcy:hasContentCategory ?cc_inc . FILTER(?cc_inc IN (${o}))`)}for(const o of r.excluded)t.push(`FILTER NOT EXISTS { ?doc qcy:hasContentCategory <${o}> }`)}}return`PREFIX qcy: <${mu}>\nSELECT DISTINCT ?id\nWHERE {\n ?doc a qcy:FileContent .\n FILTER NOT EXISTS { ?_alt qcy:alternativeRepresentation ?doc }\n ${t.join("\n ")}\n BIND(REPLACE(STR(?doc), "^.*/([^/]*)$", "$1") AS ?id)\n}`}}function YR(n){const e=[];for(const t of n.entities??[])e.push(`?doc qcy:about <${t}> .`);if(n.entityCategories?.length)if(1===n.entityCategories.length)e.push(`?doc qcy:about ?e_a . ?e_a qcy:hasEntityCategory <${n.entityCategories[0]}> .`);else{const t=n.entityCategories.map(r=>`<${r}>`).join(", ");e.push(`?doc qcy:about ?e_a . ?e_a qcy:hasEntityCategory ?ec_a . FILTER(?ec_a IN (${t}))`)}if(n.mimes?.length)if(1===n.mimes.length)e.push(`?doc qcy:hasMimeCategory <${n.mimes[0]}> .`);else{const t=n.mimes.map(r=>`<${r}>`).join(", ");e.push(`?doc qcy:hasMimeCategory ?mc_a . FILTER(?mc_a IN (${t}))`)}if(n.contents?.length)if(1===n.contents.length)e.push(`?doc qcy:hasContentCategory <${n.contents[0]}> .`);else{const t=n.contents.map(r=>`<${r}>`).join(", ");e.push(`?doc qcy:hasContentCategory ?cc_a . FILTER(?cc_a IN (${t}))`)}return e}function eP(n){return n.split("#").pop()?.split("/").pop()??n}function tP(n,e,t){const r=(o,s)=>{const i=new Set,a=[];for(const c of o){const l=c[s]?.value;l&&!i.has(l)&&(i.add(l),a.push({iri:l,label:eP(l)}))}return a};return{mimes:r(n.results.bindings,"mimeCat"),contents:r(e.results.bindings,"contentCat"),entityCategories:r(t.results.bindings,"entityCat")}}},53659(Le,g,R){"use strict";R.d(g,{MF:()=>ss,j6:()=>eo,xZ:()=>Fs,om:()=>Qt,Sx:()=>vo,KO:()=>zn});var d=R(10467),V=R(2040),$=R(81919),U=R(97814);let x,j;const C=new WeakMap,S=new WeakMap,M=new WeakMap,F=new WeakMap,Z=new WeakMap;let v={get(we,pe,ke){if(we instanceof IDBTransaction){if("done"===pe)return S.get(we);if("objectStoreNames"===pe)return we.objectStoreNames||M.get(we);if("store"===pe)return ke.objectStoreNames[1]?void 0:ke.objectStore(ke.objectStoreNames[0])}return T(we[pe])},set:(we,pe,ke)=>(we[pe]=ke,!0),has:(we,pe)=>we instanceof IDBTransaction&&("done"===pe||"store"===pe)||pe in we};function w(we){return"function"==typeof we?function m(we){return we!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function O(){return j||(j=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(we)?function(...pe){return we.apply(k(this),pe),T(C.get(this))}:function(...pe){return T(we.apply(k(this),pe))}:function(pe,...ke){const tt=we.call(k(this),pe,...ke);return M.set(tt,pe.sort?pe.sort():[pe]),T(tt)}}(we):(we instanceof IDBTransaction&&function A(we){if(S.has(we))return;const pe=new Promise((ke,tt)=>{const gt=()=>{we.removeEventListener("complete",Et),we.removeEventListener("error",Ke),we.removeEventListener("abort",Ke)},Et=()=>{ke(),gt()},Ke=()=>{tt(we.error||new DOMException("AbortError","AbortError")),gt()};we.addEventListener("complete",Et),we.addEventListener("error",Ke),we.addEventListener("abort",Ke)});S.set(we,pe)}(we),((we,pe)=>pe.some(ke=>we instanceof ke))(we,function D(){return x||(x=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(we,v):we)}function T(we){if(we instanceof IDBRequest)return function Y(we){const pe=new Promise((ke,tt)=>{const gt=()=>{we.removeEventListener("success",Et),we.removeEventListener("error",Ke)},Et=()=>{ke(T(we.result)),gt()},Ke=()=>{tt(we.error),gt()};we.addEventListener("success",Et),we.addEventListener("error",Ke)});return pe.then(ke=>{ke instanceof IDBCursor&&C.set(ke,we)}).catch(()=>{}),Z.set(pe,we),pe}(we);if(F.has(we))return F.get(we);const pe=w(we);return pe!==we&&(F.set(we,pe),Z.set(pe,we)),pe}const k=we=>Z.get(we),Pe=["get","getKey","getAll","getAllKeys","count"],Ve=["put","add","delete","clear"],Fe=new Map;function Je(we,pe){if(!(we instanceof IDBDatabase)||pe in we||"string"!=typeof pe)return;if(Fe.get(pe))return Fe.get(pe);const ke=pe.replace(/FromIndex$/,""),tt=pe!==ke,gt=Ve.includes(ke);if(!(ke in(tt?IDBIndex:IDBObjectStore).prototype)||!gt&&!Pe.includes(ke))return;const Et=function(){var Ke=(0,d.A)(function*(Vn,...Ht){const jr=this.transaction(Vn,gt?"readwrite":"readonly");let zr=jr.store;return tt&&(zr=zr.index(Ht.shift())),(yield Promise.all([zr[ke](...Ht),gt&&jr.done]))[0]});return function(Ht){return Ke.apply(this,arguments)}}();return Fe.set(pe,Et),Et}!function _(we){v=we(v)}(we=>({...we,get:(pe,ke,tt)=>Je(pe,ke)||we.get(pe,ke,tt),has:(pe,ke)=>!!Je(pe,ke)||we.has(pe,ke)}));class jn{constructor(pe){this.container=pe}getPlatformInfoString(){return this.container.getProviders().map(ke=>{if(function je(we){return"VERSION"===we.getComponent()?.type}(ke)){const tt=ke.getImmediate();return`${tt.library}/${tt.version}`}return null}).filter(ke=>ke).join(" ")}}const ye="@firebase/app",L=new $.Vy("@firebase/app"),Q="@firebase/app-compat",Te="@firebase/analytics-compat",He="@firebase/analytics",it="@firebase/app-check-compat",yt="@firebase/app-check",Xt="@firebase/auth",En="@firebase/auth-compat",ge="@firebase/database",Ee="@firebase/data-connect",Me="@firebase/database-compat",qe="@firebase/functions",ze="@firebase/functions-compat",ct="@firebase/installations",jt="@firebase/installations-compat",In="@firebase/messaging",xn="@firebase/messaging-compat",Zt="@firebase/performance",dn="@firebase/performance-compat",Gt="@firebase/remote-config",Nn="@firebase/remote-config-compat",pr="@firebase/storage",io="@firebase/storage-compat",Fr="@firebase/firestore",Rr="@firebase/ai",ut="@firebase/firestore-compat",_o="firebase",Jn="[DEFAULT]",Xn={[ye]:"fire-core",[Q]:"fire-core-compat",[He]:"fire-analytics",[Te]:"fire-analytics-compat",[yt]:"fire-app-check",[it]:"fire-app-check-compat",[Xt]:"fire-auth",[En]:"fire-auth-compat",[ge]:"fire-rtdb",[Ee]:"fire-data-connect",[Me]:"fire-rtdb-compat",[qe]:"fire-fn",[ze]:"fire-fn-compat",[ct]:"fire-iid",[jt]:"fire-iid-compat",[In]:"fire-fcm",[xn]:"fire-fcm-compat",[Zt]:"fire-perf",[dn]:"fire-perf-compat",[Gt]:"fire-rc",[Nn]:"fire-rc-compat",[pr]:"fire-gcs",[io]:"fire-gcs-compat",[Fr]:"fire-fst",[ut]:"fire-fst-compat",[Rr]:"fire-vertex","fire-js":"fire-js",[_o]:"fire-js-all"},rn=new Map,Pr=new Map,Yn=new Map;function Mo(we,pe){try{we.container.addComponent(pe)}catch(ke){L.debug(`Component ${pe.name} failed to register with FirebaseApp ${we.name}`,ke)}}function Qt(we){const pe=we.name;if(Yn.has(pe))return L.debug(`There were multiple attempts to register component ${pe}.`),!1;Yn.set(pe,we);for(const ke of rn.values())Mo(ke,we);for(const ke of Pr.values())Mo(ke,we);return!0}function eo(we,pe){const ke=we.container.getProvider("heartbeat").getImmediate({optional:!0});return ke&&ke.triggerHeartbeat(),we.container.getProvider(pe)}function Fs(we){return null!=we&&void 0!==we.settings}const Mn=new U.FA("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."});class rs{constructor(pe,ke,tt){this._isDeleted=!1,this._options={...pe},this._config={...ke},this._name=ke.name,this._automaticDataCollectionEnabled=ke.automaticDataCollectionEnabled,this._container=tt,this.container.addComponent(new V.uA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(pe){this.checkDestroyed(),this._automaticDataCollectionEnabled=pe}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(pe){this._isDeleted=pe}checkDestroyed(){if(this.isDeleted)throw Mn.create("app-deleted",{appName:this._name})}}const ss="12.8.0";function vo(we=Jn){const pe=rn.get(we);if(!pe&&we===Jn&&(0,U.T9)())return function fr(we,pe={}){let ke=we;"object"!=typeof pe&&(pe={name:pe});const tt={name:Jn,automaticDataCollectionEnabled:!0,...pe},gt=tt.name;if("string"!=typeof gt||!gt)throw Mn.create("bad-app-name",{appName:String(gt)});if(ke||(ke=(0,U.T9)()),!ke)throw Mn.create("no-options");const Et=rn.get(gt);if(Et){if((0,U.bD)(ke,Et.options)&&(0,U.bD)(tt,Et.config))return Et;throw Mn.create("duplicate-app",{appName:gt})}const Ke=new V.h1(gt);for(const Ht of Yn.values())Ke.addComponent(Ht);const Vn=new rs(ke,tt,Ke);return rn.set(gt,Vn),Vn}();if(!pe)throw Mn.create("no-app",{appName:we});return pe}function zn(we,pe,ke){let tt=Xn[we]??we;ke&&(tt+=`-${ke}`);const gt=tt.match(/\s|\//),Et=pe.match(/\s|\//);if(gt||Et){const Ke=[`Unable to register library "${tt}" with version "${pe}":`];return gt&&Ke.push(`library name "${tt}" contains illegal characters (whitespace or "/")`),gt&&Et&&Ke.push("and"),Et&&Ke.push(`version name "${pe}" contains illegal characters (whitespace or "/")`),void L.warn(Ke.join(" "))}Qt(new V.uA(`${tt}-version`,()=>({library:tt,version:pe}),"VERSION"))}const H="firebase-heartbeat-store";let Ze=null;function mt(){return Ze||(Ze=function J(we,pe,{blocked:ke,upgrade:tt,blocking:gt,terminated:Et}={}){const Ke=indexedDB.open(we,pe),Vn=T(Ke);return tt&&Ke.addEventListener("upgradeneeded",Ht=>{tt(T(Ke.result),Ht.oldVersion,Ht.newVersion,T(Ke.transaction),Ht)}),ke&&Ke.addEventListener("blocked",Ht=>ke(Ht.oldVersion,Ht.newVersion,Ht)),Vn.then(Ht=>{Et&&Ht.addEventListener("close",()=>Et()),gt&&Ht.addEventListener("versionchange",jr=>gt(jr.oldVersion,jr.newVersion,jr))}).catch(()=>{}),Vn}("firebase-heartbeat-database",1,{upgrade:(we,pe)=>{if(0===pe)try{we.createObjectStore(H)}catch(ke){console.warn(ke)}}}).catch(we=>{throw Mn.create("idb-open",{originalErrorMessage:we.message})})),Ze}function Be(){return(Be=(0,d.A)(function*(we){try{const ke=(yield mt()).transaction(H),tt=yield ke.objectStore(H).get(xt(we));return yield ke.done,tt}catch(pe){if(pe instanceof U.g)L.warn(pe.message);else{const ke=Mn.create("idb-get",{originalErrorMessage:pe?.message});L.warn(ke.message)}}})).apply(this,arguments)}function on(we,pe){return Xe.apply(this,arguments)}function Xe(){return(Xe=(0,d.A)(function*(we,pe){try{const tt=(yield mt()).transaction(H,"readwrite");yield tt.objectStore(H).put(pe,xt(we)),yield tt.done}catch(ke){if(ke instanceof U.g)L.warn(ke.message);else{const tt=Mn.create("idb-set",{originalErrorMessage:ke?.message});L.warn(tt.message)}}})).apply(this,arguments)}function xt(we){return`${we.name}!${we.options.appId}`}class Ne{constructor(pe){this.container=pe,this._heartbeatsCache=null;const ke=this.container.getProvider("app").getImmediate();this._storage=new Eo(ke),this._heartbeatsCachePromise=this._storage.read().then(tt=>(this._heartbeatsCache=tt,tt))}triggerHeartbeat(){var pe=this;return(0,d.A)(function*(){try{const tt=pe.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),gt=Yt();if(null==pe._heartbeatsCache?.heartbeats&&(pe._heartbeatsCache=yield pe._heartbeatsCachePromise,null==pe._heartbeatsCache?.heartbeats)||pe._heartbeatsCache.lastSentHeartbeatDate===gt||pe._heartbeatsCache.heartbeats.some(Et=>Et.date===gt))return;if(pe._heartbeatsCache.heartbeats.push({date:gt,agent:tt}),pe._heartbeatsCache.heartbeats.length>30){const Et=function Cr(we){if(0===we.length)return-1;let pe=0,ke=we[0].date;for(let tt=1;tt<we.length;tt++)we[tt].date<ke&&(ke=we[tt].date,pe=tt);return pe}(pe._heartbeatsCache.heartbeats);pe._heartbeatsCache.heartbeats.splice(Et,1)}return pe._storage.overwrite(pe._heartbeatsCache)}catch(ke){L.warn(ke)}})()}getHeartbeatsHeader(){var pe=this;return(0,d.A)(function*(){try{if(null===pe._heartbeatsCache&&(yield pe._heartbeatsCachePromise),null==pe._heartbeatsCache?.heartbeats||0===pe._heartbeatsCache.heartbeats.length)return"";const ke=Yt(),{heartbeatsToSend:tt,unsentEntries:gt}=function Tn(we,pe=1024){const ke=[];let tt=we.slice();for(const gt of we){const Et=ke.find(Ke=>Ke.agent===gt.agent);if(Et){if(Et.dates.push(gt.date),ao(ke)>pe){Et.dates.pop();break}}else if(ke.push({agent:gt.agent,dates:[gt.date]}),ao(ke)>pe){ke.pop();break}tt=tt.slice(1)}return{heartbeatsToSend:ke,unsentEntries:tt}}(pe._heartbeatsCache.heartbeats),Et=(0,U.Uj)(JSON.stringify({version:2,heartbeats:tt}));return pe._heartbeatsCache.lastSentHeartbeatDate=ke,gt.length>0?(pe._heartbeatsCache.heartbeats=gt,yield pe._storage.overwrite(pe._heartbeatsCache)):(pe._heartbeatsCache.heartbeats=[],pe._storage.overwrite(pe._heartbeatsCache)),Et}catch(ke){return L.warn(ke),""}})()}}function Yt(){return(new Date).toISOString().substring(0,10)}class Eo{constructor(pe){this.app=pe,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return(0,d.A)(function*(){return!!(0,U.zW)()&&(0,U.eX)().then(()=>!0).catch(()=>!1)})()}read(){var pe=this;return(0,d.A)(function*(){if(yield pe._canUseIndexedDBPromise){const tt=yield function qt(we){return Be.apply(this,arguments)}(pe.app);return tt?.heartbeats?tt:{heartbeats:[]}}return{heartbeats:[]}})()}overwrite(pe){var ke=this;return(0,d.A)(function*(){if(yield ke._canUseIndexedDBPromise){const gt=yield ke.read();return on(ke.app,{lastSentHeartbeatDate:pe.lastSentHeartbeatDate??gt.lastSentHeartbeatDate,heartbeats:pe.heartbeats})}})()}add(pe){var ke=this;return(0,d.A)(function*(){if(yield ke._canUseIndexedDBPromise){const gt=yield ke.read();return on(ke.app,{lastSentHeartbeatDate:pe.lastSentHeartbeatDate??gt.lastSentHeartbeatDate,heartbeats:[...gt.heartbeats,...pe.heartbeats]})}})()}}function ao(we){return(0,U.Uj)(JSON.stringify({version:2,heartbeats:we})).length}!function is(we){Qt(new V.uA("platform-logger",pe=>new jn(pe),"PRIVATE")),Qt(new V.uA("heartbeat",pe=>new Ne(pe),"PRIVATE")),zn(ye,"0.14.7",we),zn(ye,"0.14.7","esm2020"),zn("fire-js","")}("")},2040(Le,g,R){"use strict";R.d(g,{h1:()=>D,uA:()=>$});var d=R(10467),V=R(97814);class ${constructor(C,S,M){this.name=C,this.instanceFactory=S,this.type=M,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(C){return this.instantiationMode=C,this}setMultipleInstances(C){return this.multipleInstances=C,this}setServiceProps(C){return this.serviceProps=C,this}setInstanceCreatedCallback(C){return this.onInstanceCreated=C,this}}const U="[DEFAULT]";class G{constructor(C,S){this.name=C,this.container=S,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(C){const S=this.normalizeInstanceIdentifier(C);if(!this.instancesDeferred.has(S)){const M=new V.cY;if(this.instancesDeferred.set(S,M),this.isInitialized(S)||this.shouldAutoInitialize())try{const F=this.getOrInitializeService({instanceIdentifier:S});F&&M.resolve(F)}catch{}}return this.instancesDeferred.get(S).promise}getImmediate(C){const S=this.normalizeInstanceIdentifier(C?.identifier),M=C?.optional??!1;if(!this.isInitialized(S)&&!this.shouldAutoInitialize()){if(M)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:S})}catch(F){if(M)return null;throw F}}getComponent(){return this.component}setComponent(C){if(C.name!==this.name)throw Error(`Mismatching Component ${C.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=C,this.shouldAutoInitialize()){if(function j(O){return"EAGER"===O.instantiationMode}(C))try{this.getOrInitializeService({instanceIdentifier:U})}catch{}for(const[S,M]of this.instancesDeferred.entries()){const F=this.normalizeInstanceIdentifier(S);try{const Z=this.getOrInitializeService({instanceIdentifier:F});M.resolve(Z)}catch{}}}}clearInstance(C=U){this.instancesDeferred.delete(C),this.instancesOptions.delete(C),this.instances.delete(C)}delete(){var C=this;return(0,d.A)(function*(){const S=Array.from(C.instances.values());yield Promise.all([...S.filter(M=>"INTERNAL"in M).map(M=>M.INTERNAL.delete()),...S.filter(M=>"_delete"in M).map(M=>M._delete())])})()}isComponentSet(){return null!=this.component}isInitialized(C=U){return this.instances.has(C)}getOptions(C=U){return this.instancesOptions.get(C)||{}}initialize(C={}){const{options:S={}}=C,M=this.normalizeInstanceIdentifier(C.instanceIdentifier);if(this.isInitialized(M))throw Error(`${this.name}(${M}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const F=this.getOrInitializeService({instanceIdentifier:M,options:S});for(const[Z,Y]of this.instancesDeferred.entries())M===this.normalizeInstanceIdentifier(Z)&&Y.resolve(F);return F}onInit(C,S){const M=this.normalizeInstanceIdentifier(S),F=this.onInitCallbacks.get(M)??new Set;F.add(C),this.onInitCallbacks.set(M,F);const Z=this.instances.get(M);return Z&&C(Z,M),()=>{F.delete(C)}}invokeOnInitCallbacks(C,S){const M=this.onInitCallbacks.get(S);if(M)for(const F of M)try{F(C,S)}catch{}}getOrInitializeService({instanceIdentifier:C,options:S={}}){let M=this.instances.get(C);if(!M&&this.component&&(M=this.component.instanceFactory(this.container,{instanceIdentifier:(O=C,O===U?void 0:O),options:S}),this.instances.set(C,M),this.instancesOptions.set(C,S),this.invokeOnInitCallbacks(M,C),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,C,M)}catch{}var O;return M||null}normalizeInstanceIdentifier(C=U){return this.component?this.component.multipleInstances?C:U:C}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class D{constructor(C){this.name=C,this.providers=new Map}addComponent(C){const S=this.getProvider(C.name);if(S.isComponentSet())throw new Error(`Component ${C.name} has already been registered with ${this.name}`);S.setComponent(C)}addOrOverwriteComponent(C){this.getProvider(C.name).isComponentSet()&&this.providers.delete(C.name),this.addComponent(C)}getProvider(C){if(this.providers.has(C))return this.providers.get(C);const S=new G(C,this);return this.providers.set(C,S),S}getProviders(){return Array.from(this.providers.values())}}},81919(Le,g,R){"use strict";R.d(g,{$b:()=>V,Vy:()=>j});const d=[];var V=function(C){return C[C.DEBUG=0]="DEBUG",C[C.VERBOSE=1]="VERBOSE",C[C.INFO=2]="INFO",C[C.WARN=3]="WARN",C[C.ERROR=4]="ERROR",C[C.SILENT=5]="SILENT",C}(V||{});const $={debug:V.DEBUG,verbose:V.VERBOSE,info:V.INFO,warn:V.WARN,error:V.ERROR,silent:V.SILENT},U=V.INFO,G={[V.DEBUG]:"log",[V.VERBOSE]:"log",[V.INFO]:"info",[V.WARN]:"warn",[V.ERROR]:"error"},x=(C,S,...M)=>{if(S<C.logLevel)return;const F=(new Date).toISOString(),Z=G[S];if(!Z)throw new Error(`Attempted to log a message with an invalid logType (value: ${S})`);console[Z](`[${F}] ${C.name}:`,...M)};class j{constructor(S){this.name=S,this._logLevel=U,this._logHandler=x,this._userLogHandler=null,d.push(this)}get logLevel(){return this._logLevel}set logLevel(S){if(!(S in V))throw new TypeError(`Invalid value "${S}" assigned to \`logLevel\``);this._logLevel=S}setLogLevel(S){this._logLevel="string"==typeof S?$[S]:S}get logHandler(){return this._logHandler}set logHandler(S){if("function"!=typeof S)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=S}get userLogHandler(){return this._userLogHandler}set userLogHandler(S){this._userLogHandler=S}debug(...S){this._userLogHandler&&this._userLogHandler(this,V.DEBUG,...S),this._logHandler(this,V.DEBUG,...S)}log(...S){this._userLogHandler&&this._userLogHandler(this,V.VERBOSE,...S),this._logHandler(this,V.VERBOSE,...S)}info(...S){this._userLogHandler&&this._userLogHandler(this,V.INFO,...S),this._logHandler(this,V.INFO,...S)}warn(...S){this._userLogHandler&&this._userLogHandler(this,V.WARN,...S),this._logHandler(this,V.WARN,...S)}error(...S){this._userLogHandler&&this._userLogHandler(this,V.ERROR,...S),this._logHandler(this,V.ERROR,...S)}}},26702(Le,g,R){"use strict";R.r(g),R.d(g,{StorageError:()=>C,StorageErrorCode:()=>S,StringFormat:()=>Gt,_FbsBlob:()=>Xn,_Location:()=>Vt,_TaskEvent:()=>Yt,_TaskState:()=>Tn,_UploadTask:()=>Vn,_dataFromString:()=>pr,_getChild:()=>Er,_invalidArgument:()=>Fe,_invalidRootOperation:()=>rt,connectStorageEmulator:()=>$a,deleteObject:()=>Mu,getBlob:()=>Lu,getBytes:()=>lt,getDownloadURL:()=>qs,getMetadata:()=>Lo,getStorage:()=>Oa,getStream:()=>Io,list:()=>Ai,listAll:()=>dh,ref:()=>Vu,updateMetadata:()=>lh,uploadBytes:()=>as,uploadBytesResumable:()=>Da,uploadString:()=>Ti});var d=R(10467),V=R(53659),$=R(97814),U=R(2040);const G="firebasestorage.googleapis.com",x="storageBucket";class C extends $.g{constructor(I,q,ee=0){super(M(I),`Firebase Storage: ${q} (${M(I)})`),this.status_=ee,this.customData={serverResponse:null},this._baseMessage=this.message,Object.setPrototypeOf(this,C.prototype)}get status(){return this.status_}set status(I){this.status_=I}_codeEquals(I){return M(I)===this.code}get serverResponse(){return this.customData.serverResponse}set serverResponse(I){this.customData.serverResponse=I,this.message=this.customData.serverResponse?`${this._baseMessage}\n${this.customData.serverResponse}`:this._baseMessage}}var S=function(E){return E.UNKNOWN="unknown",E.OBJECT_NOT_FOUND="object-not-found",E.BUCKET_NOT_FOUND="bucket-not-found",E.PROJECT_NOT_FOUND="project-not-found",E.QUOTA_EXCEEDED="quota-exceeded",E.UNAUTHENTICATED="unauthenticated",E.UNAUTHORIZED="unauthorized",E.UNAUTHORIZED_APP="unauthorized-app",E.RETRY_LIMIT_EXCEEDED="retry-limit-exceeded",E.INVALID_CHECKSUM="invalid-checksum",E.CANCELED="canceled",E.INVALID_EVENT_NAME="invalid-event-name",E.INVALID_URL="invalid-url",E.INVALID_DEFAULT_BUCKET="invalid-default-bucket",E.NO_DEFAULT_BUCKET="no-default-bucket",E.CANNOT_SLICE_BLOB="cannot-slice-blob",E.SERVER_FILE_WRONG_SIZE="server-file-wrong-size",E.NO_DOWNLOAD_URL="no-download-url",E.INVALID_ARGUMENT="invalid-argument",E.INVALID_ARGUMENT_COUNT="invalid-argument-count",E.APP_DELETED="app-deleted",E.INVALID_ROOT_OPERATION="invalid-root-operation",E.INVALID_FORMAT="invalid-format",E.INTERNAL_ERROR="internal-error",E.UNSUPPORTED_ENVIRONMENT="unsupported-environment",E}(S||{});function M(E){return"storage/"+E}function F(){return new C(S.UNKNOWN,"An unknown error occurred, please check the error payload for server response.")}function m(){return new C(S.RETRY_LIMIT_EXCEEDED,"Max retry time for operation exceeded, please try again.")}function w(){return new C(S.CANCELED,"User canceled the upload/download.")}function J(){return new C(S.CANNOT_SLICE_BLOB,"Cannot slice blob for upload. Please retry the upload.")}function Fe(E){return new C(S.INVALID_ARGUMENT,E)}function Je(){return new C(S.APP_DELETED,"The Firebase app was deleted.")}function rt(E){return new C(S.INVALID_ROOT_OPERATION,"The operation '"+E+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}function vt(E,I){return new C(S.INVALID_FORMAT,"String does not match format '"+E+"': "+I)}function Ct(E){throw new C(S.INTERNAL_ERROR,"Internal error: "+E)}class Vt{constructor(I,q){this.bucket=I,this.path_=q}get path(){return this.path_}get isRoot(){return 0===this.path.length}fullServerUrl(){const I=encodeURIComponent;return"/b/"+I(this.bucket)+"/o/"+I(this.path)}bucketOnlyServerUrl(){return"/b/"+encodeURIComponent(this.bucket)+"/o"}static makeFromBucketSpec(I,q){let ee;try{ee=Vt.makeFromUrl(I,q)}catch{return new Vt(I,"")}if(""===ee.path)return ee;throw function k(E){return new C(S.INVALID_DEFAULT_BUCKET,"Invalid default bucket '"+E+"'.")}(I)}static makeFromUrl(I,q){let ee=null;const he="([A-Za-z0-9.\\-_]+)",dt=new RegExp("^gs://"+he+"(/(.*))?$","i");function Pt(er){er.path_=decodeURIComponent(er.path)}const sn=q.replace(/[.]/g,"\\."),Kn=[{regex:dt,indices:{bucket:1,path:3},postModify:function Ce(er){"/"===er.path.charAt(er.path.length-1)&&(er.path_=er.path_.slice(0,-1))}},{regex:new RegExp(`^https?://${sn}/v[A-Za-z0-9_]+/b/${he}/o(/([^?#]*).*)?$`,"i"),indices:{bucket:1,path:3},postModify:Pt},{regex:new RegExp(`^https?://${q===G?"(?:storage.googleapis.com|storage.cloud.google.com)":q}/${he}/([^?#]*)`,"i"),indices:{bucket:1,path:2},postModify:Pt}];for(let er=0;er<Kn.length;er++){const uo=Kn[er],Sn=uo.regex.exec(I);if(Sn){let cs=Sn[uo.indices.path];cs||(cs=""),ee=new Vt(Sn[uo.indices.bucket],cs),uo.postModify(ee);break}}if(null==ee)throw function T(E){return new C(S.INVALID_URL,"Invalid URL '"+E+"'.")}(I);return ee}}class Cn{constructor(I){this.promise_=Promise.reject(I)}getPromise(){return this.promise_}cancel(I=!1){}}function L(E){return"string"==typeof E||E instanceof String}function Q(E){return Te()&&E instanceof Blob}function Te(){return typeof Blob<"u"}function He(E,I,q,ee){if(ee<I)throw Fe(`Invalid value for '${E}'. Expected ${I} or greater.`);if(ee>q)throw Fe(`Invalid value for '${E}'. Expected ${q} or less.`)}function it(E,I,q){let ee=I;return null==q&&(ee=`https://${I}`),`${q}://${ee}/v0${E}`}function yt(E){const I=encodeURIComponent;let q="?";for(const ee in E)E.hasOwnProperty(ee)&&(q=q+(I(ee)+"=")+I(E[ee])+"&");return q=q.slice(0,-1),q}var Xt=function(E){return E[E.NO_ERROR=0]="NO_ERROR",E[E.NETWORK_ERROR=1]="NETWORK_ERROR",E[E.ABORT=2]="ABORT",E}(Xt||{});function En(E,I){const q=E>=500&&E<600,he=-1!==[408,429].indexOf(E),Ce=-1!==I.indexOf(E);return q||he||Ce}class ge{constructor(I,q,ee,he,Ce,Ue,dt,at,Pt,At,sn,Ln=!0,qn=!1){this.url_=I,this.method_=q,this.headers_=ee,this.body_=he,this.successCodes_=Ce,this.additionalRetryCodes_=Ue,this.callback_=dt,this.errorCallback_=at,this.timeout_=Pt,this.progressCallback_=At,this.connectionFactory_=sn,this.retry=Ln,this.isUsingEmulator=qn,this.pendingConnection_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.promise_=new Promise((Ft,An)=>{this.resolve_=Ft,this.reject_=An,this.start_()})}start_(){const q=(ee,he)=>{const Ce=this.resolve_,Ue=this.reject_,dt=he.connection;if(he.wasSuccessCode)try{const at=this.callback_(dt,dt.getResponse());!function je(E){return void 0!==E}(at)?Ce():Ce(at)}catch(at){Ue(at)}else if(null!==dt){const at=F();at.serverResponse=dt.getErrorText(),Ue(this.errorCallback_?this.errorCallback_(dt,at):at)}else Ue(he.canceled?this.appDelete_?Je():w():m())};this.canceled_?q(0,new Ee(!1,null,!0)):this.backoffId_=function bt(E,I,q){let ee=1,he=null,Ce=null,Ue=!1,dt=0;function at(){return 2===dt}let Pt=!1;function At(...an){Pt||(Pt=!0,I.apply(null,an))}function sn(an){he=setTimeout(()=>{he=null,E(qn,at())},an)}function Ln(){Ce&&clearTimeout(Ce)}function qn(an,...Ir){if(Pt)return void Ln();if(an)return Ln(),void At.call(null,an,...Ir);if(at()||Ue)return Ln(),void At.call(null,an,...Ir);let Kn;ee<64&&(ee*=2),1===dt?(dt=2,Kn=0):Kn=1e3*(ee+Math.random()),sn(Kn)}let Ft=!1;function An(an){Ft||(Ft=!0,Ln(),!Pt&&(null!==he?(an||(dt=2),clearTimeout(he),sn(0)):an||(dt=1)))}return sn(0),Ce=setTimeout(()=>{Ue=!0,An(!0)},q),An}((ee,he)=>{if(he)return void ee(!1,new Ee(!1,null,!0));const Ce=this.connectionFactory_();this.pendingConnection_=Ce;const Ue=dt=>{null!==this.progressCallback_&&this.progressCallback_(dt.loaded,dt.lengthComputable?dt.total:-1)};null!==this.progressCallback_&&Ce.addUploadProgressListener(Ue),Ce.send(this.url_,this.method_,this.isUsingEmulator,this.body_,this.headers_).then(()=>{null!==this.progressCallback_&&Ce.removeUploadProgressListener(Ue),this.pendingConnection_=null;const dt=Ce.getErrorCode()===Xt.NO_ERROR,at=Ce.getStatus();if(!dt||En(at,this.additionalRetryCodes_)&&this.retry){const At=Ce.getErrorCode()===Xt.ABORT;return void ee(!1,new Ee(!1,null,At))}const Pt=-1!==this.successCodes_.indexOf(at);ee(!0,new Ee(Pt,Ce))})},q,this.timeout_)}getPromise(){return this.promise_}cancel(I){this.canceled_=!0,this.appDelete_=I||!1,null!==this.backoffId_&&function jn(E){E(!1)}(this.backoffId_),null!==this.pendingConnection_&&this.pendingConnection_.abort()}}class Ee{constructor(I,q,ee){this.wasSuccessCode=I,this.connection=q,this.canceled=!!ee}}function xn(...E){const I=function In(){return typeof BlobBuilder<"u"?BlobBuilder:typeof WebKitBlobBuilder<"u"?WebKitBlobBuilder:void 0}();if(void 0!==I){const q=new I;for(let ee=0;ee<E.length;ee++)q.append(E[ee]);return q.getBlob()}if(Te())return new Blob(E);throw new C(S.UNSUPPORTED_ENVIRONMENT,"This browser doesn't seem to support creating Blobs")}const Gt={RAW:"raw",BASE64:"base64",BASE64URL:"base64url",DATA_URL:"data_url"};class Nn{constructor(I,q){this.data=I,this.contentType=q||null}}function pr(E,I){switch(E){case Gt.RAW:return new Nn(io(I));case Gt.BASE64:case Gt.BASE64URL:return new Nn(Rr(E,I));case Gt.DATA_URL:return new Nn(function _o(E){const I=new ut(E);return I.base64?Rr(Gt.BASE64,I.rest):function Fr(E){let I;try{I=decodeURIComponent(E)}catch{throw vt(Gt.DATA_URL,"Malformed data URL.")}return io(I)}(I.rest)}(I),function No(E){return new ut(E).contentType}(I))}throw F()}function io(E){const I=[];for(let q=0;q<E.length;q++){let ee=E.charCodeAt(q);ee<=127?I.push(ee):ee<=2047?I.push(192|ee>>6,128|63&ee):55296==(64512&ee)?q<E.length-1&&56320==(64512&E.charCodeAt(q+1))?(ee=65536|(1023&ee)<<10|1023&E.charCodeAt(++q),I.push(240|ee>>18,128|ee>>12&63,128|ee>>6&63,128|63&ee)):I.push(239,191,189):56320==(64512&ee)?I.push(239,191,189):I.push(224|ee>>12,128|ee>>6&63,128|63&ee)}return new Uint8Array(I)}function Rr(E,I){switch(E){case Gt.BASE64:{const he=-1!==I.indexOf("-"),Ce=-1!==I.indexOf("_");if(he||Ce)throw vt(E,"Invalid character '"+(he?"-":"_")+"' found: is it base64url encoded?");break}case Gt.BASE64URL:{const he=-1!==I.indexOf("+"),Ce=-1!==I.indexOf("/");if(he||Ce)throw vt(E,"Invalid character '"+(he?"+":"/")+"' found: is it base64 encoded?");I=I.replace(/-/g,"+").replace(/_/g,"/");break}}let q;try{q=function dn(E){if(typeof atob>"u")throw function Ve(E){return new C(S.UNSUPPORTED_ENVIRONMENT,`${E} is missing. Make sure to install the required polyfills. See https://firebase.google.com/docs/web/environments-js-sdk#polyfills for more information.`)}("base-64");return atob(E)}(I)}catch(he){throw he.message.includes("polyfill")?he:vt(E,"Invalid character found")}const ee=new Uint8Array(q.length);for(let he=0;he<q.length;he++)ee[he]=q.charCodeAt(he);return ee}class ut{constructor(I){this.base64=!1,this.contentType=null;const q=I.match(/^data:([^,]+)?,/);if(null===q)throw vt(Gt.DATA_URL,"Must be formatted 'data:[<mediatype>][;base64],<data>");const ee=q[1]||null;null!=ee&&(this.base64=function Jn(E,I){return E.length>=I.length&&E.substring(E.length-I.length)===I}(ee,";base64"),this.contentType=this.base64?ee.substring(0,ee.length-7):ee),this.rest=I.substring(I.indexOf(",")+1)}}class Xn{constructor(I,q){let ee=0,he="";Q(I)?(this.data_=I,ee=I.size,he=I.type):I instanceof ArrayBuffer?(q?this.data_=new Uint8Array(I):(this.data_=new Uint8Array(I.byteLength),this.data_.set(new Uint8Array(I))),ee=this.data_.length):I instanceof Uint8Array&&(q?this.data_=I:(this.data_=new Uint8Array(I.length),this.data_.set(I)),ee=I.length),this.size_=ee,this.type_=he}size(){return this.size_}type(){return this.type_}slice(I,q){if(Q(this.data_)){const he=function Zt(E,I,q){return E.webkitSlice?E.webkitSlice(I,q):E.mozSlice?E.mozSlice(I,q):E.slice?E.slice(I,q):null}(this.data_,I,q);return null===he?null:new Xn(he)}{const ee=new Uint8Array(this.data_.buffer,I,q-I);return new Xn(ee,!0)}}static getBlob(...I){if(Te()){const q=I.map(ee=>ee instanceof Xn?ee.data_:ee);return new Xn(xn.apply(null,q))}{const q=I.map(Ue=>L(Ue)?pr(Gt.RAW,Ue).data:Ue.data_);let ee=0;q.forEach(Ue=>{ee+=Ue.byteLength});const he=new Uint8Array(ee);let Ce=0;return q.forEach(Ue=>{for(let dt=0;dt<Ue.length;dt++)he[Ce++]=Ue[dt]}),new Xn(he,!0)}}uploadData(){return this.data_}}function rn(E){let I;try{I=JSON.parse(E)}catch{return null}return function de(E){return"object"==typeof E&&!Array.isArray(E)}(I)?I:null}function Mo(E){const I=E.lastIndexOf("/",E.length-2);return-1===I?E:E.slice(I+1)}function Aa(E,I){return I}class Qt{constructor(I,q,ee,he){this.server=I,this.local=q||I,this.writable=!!ee,this.xform=he||Aa}}let eo=null;function kr(){if(eo)return eo;const E=[];E.push(new Qt("bucket")),E.push(new Qt("generation")),E.push(new Qt("metageneration")),E.push(new Qt("name","fullPath",!0));const q=new Qt("name");q.xform=function I(Ce,Ue){return function ns(E){return!L(E)||E.length<2?E:Mo(E)}(Ue)},E.push(q);const he=new Qt("size");return he.xform=function ee(Ce,Ue){return void 0!==Ue?Number(Ue):Ue},E.push(he),E.push(new Qt("timeCreated")),E.push(new Qt("updated")),E.push(new Qt("md5Hash",null,!0)),E.push(new Qt("cacheControl",null,!0)),E.push(new Qt("contentDisposition",null,!0)),E.push(new Qt("contentEncoding",null,!0)),E.push(new Qt("contentLanguage",null,!0)),E.push(new Qt("contentType",null,!0)),E.push(new Qt("metadata","customMetadata",!0)),eo=E,eo}function wo(E,I,q){const ee=rn(I);return null===ee?null:function Fs(E,I,q){const ee={type:"file"},he=q.length;for(let Ce=0;Ce<he;Ce++){const Ue=q[Ce];ee[Ue.local]=Ue.xform(ee,I[Ue.server])}return function yo(E,I){Object.defineProperty(E,"ref",{get:function q(){const Ce=new Vt(E.bucket,E.fullPath);return I._makeStorageReference(Ce)}})}(ee,E),ee}(E,ee,q)}function Mn(E,I){const q={},ee=I.length;for(let he=0;he<ee;he++){const Ce=I[he];Ce.writable&&(q[Ce.server]=E[Ce.local])}return JSON.stringify(q)}const rs="prefixes";class fr{constructor(I,q,ee,he){this.url=I,this.method=q,this.handler=ee,this.timeout=he,this.urlParams={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]}}function mr(E){if(!E)throw F()}function vo(E,I){return function q(ee,he){const Ce=wo(E,he,I);return mr(null!==Ce),Ce}}function zt(E){return function I(q,ee){let he;return he=401===q.getStatus()?q.getErrorText().includes("Firebase App Check token is invalid")?function v(){return new C(S.UNAUTHORIZED_APP,"This app does not have permission to access Firebase Storage on this project.")}():function A(){return new C(S.UNAUTHENTICATED,"User is not authenticated, please authenticate using Firebase Authentication and try again.")}():402===q.getStatus()?function Y(E){return new C(S.QUOTA_EXCEEDED,"Quota for bucket '"+E+"' exceeded, please view quota on https://firebase.google.com/pricing/.")}(E.bucket):403===q.getStatus()?function _(E){return new C(S.UNAUTHORIZED,"User does not have permission to access '"+E+"'.")}(E.path):ee,he.status=q.getStatus(),he.serverResponse=ee.serverResponse,he}}function zn(E){const I=zt(E);return function q(ee,he){let Ce=I(ee,he);return 404===ee.getStatus()&&(Ce=function Z(E){return new C(S.OBJECT_NOT_FOUND,"Object '"+E+"' does not exist.")}(E.path)),Ce.serverResponse=he.serverResponse,Ce}}function X(E,I,q){const he=it(I.fullServerUrl(),E.host,E._protocol),Ue=E.maxOperationRetryTime,dt=new fr(he,"GET",vo(E,q),Ue);return dt.errorHandler=zn(I),dt}function W(E,I,q,ee,he){const Ce={};Ce.prefix=I.isRoot?"":I.path+"/",q&&q.length>0&&(Ce.delimiter=q),ee&&(Ce.pageToken=ee),he&&(Ce.maxResults=he);const dt=it(I.bucketOnlyServerUrl(),E.host,E._protocol),Pt=E.maxOperationRetryTime,At=new fr(dt,"GET",function bo(E,I){return function q(ee,he){const Ce=function ss(E,I,q){const ee=rn(q);return null===ee?null:function js(E,I,q){const ee={prefixes:[],items:[],nextPageToken:q.nextPageToken};if(q[rs])for(const he of q[rs]){const Ce=he.replace(/\/$/,""),Ue=E._makeStorageReference(new Vt(I,Ce));ee.prefixes.push(Ue)}if(q.items)for(const he of q.items){const Ce=E._makeStorageReference(new Vt(I,he.name));ee.items.push(Ce)}return ee}(E,I,ee)}(E,I,he);return mr(null!==Ce),Ce}}(E,I.bucket),Pt);return At.urlParams=Ce,At.errorHandler=zt(I),At}function ae(E,I,q){const he=it(I.fullServerUrl(),E.host,E._protocol)+"?alt=media",dt=new fr(he,"GET",(at,Pt)=>Pt,E.maxOperationRetryTime);return dt.errorHandler=zn(I),void 0!==q&&(dt.headers.Range=`bytes=0-${q}`,dt.successCodes=[200,206]),dt}function qt(E,I,q){const ee=Object.assign({},q);return ee.fullPath=E.path,ee.size=I.size(),ee.contentType||(ee.contentType=function mt(E,I){return E&&E.contentType||I&&I.type()||"application/octet-stream"}(null,I)),ee}function Be(E,I,q,ee,he){const Ce=I.bucketOnlyServerUrl(),Ue={"X-Goog-Upload-Protocol":"multipart"},at=function dt(){let Kn="";for(let er=0;er<2;er++)Kn+=Math.random().toString().slice(2);return Kn}();Ue["Content-Type"]="multipart/related; boundary="+at;const Pt=qt(I,ee,he),At=Mn(Pt,q),qn=Xn.getBlob("--"+at+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+At+"\r\n--"+at+"\r\nContent-Type: "+Pt.contentType+"\r\n\r\n",ee,"\r\n--"+at+"--");if(null===qn)throw J();const Ft={name:Pt.fullPath},An=it(Ce,E.host,E._protocol),Ir=E.maxUploadRetryTime,To=new fr(An,"POST",vo(E,q),Ir);return To.urlParams=Ft,To.headers=Ue,To.body=qn.uploadData(),To.errorHandler=zt(I),To}class on{constructor(I,q,ee,he){this.current=I,this.total=q,this.finalized=!!ee,this.metadata=he||null}}function Xe(E,I){let q=null;try{q=E.getResponseHeader("X-Goog-Upload-Status")}catch{mr(!1)}return mr(!!q&&-1!==(I||["active"]).indexOf(q)),q}const Yt={STATE_CHANGED:"state_changed"},Tn={RUNNING:"running",PAUSED:"paused",SUCCESS:"success",CANCELED:"canceled",ERROR:"error"};function Eo(E){switch(E){case"running":case"pausing":case"canceling":return Tn.RUNNING;case"paused":return Tn.PAUSED;case"success":return Tn.SUCCESS;case"canceled":return Tn.CANCELED;default:return Tn.ERROR}}class ao{constructor(I,q,ee){if(function ye(E){return"function"==typeof E}(I)||null!=q||null!=ee)this.next=I,this.error=q??void 0,this.complete=ee??void 0;else{const Ce=I;this.next=Ce.next,this.error=Ce.error,this.complete=Ce.complete}}}function Cr(E){return(...I)=>{Promise.resolve().then(()=>E(...I))}}class we{constructor(){this.sent_=!1,this.xhr_=new XMLHttpRequest,this.initXhr(),this.errorCode_=Xt.NO_ERROR,this.sendPromise_=new Promise(I=>{this.xhr_.addEventListener("abort",()=>{this.errorCode_=Xt.ABORT,I()}),this.xhr_.addEventListener("error",()=>{this.errorCode_=Xt.NETWORK_ERROR,I()}),this.xhr_.addEventListener("load",()=>{I()})})}send(I,q,ee,he,Ce){if(this.sent_)throw Ct("cannot .send() more than once");if((0,$.zJ)(I)&&ee&&(this.xhr_.withCredentials=!0),this.sent_=!0,this.xhr_.open(q,I,!0),void 0!==Ce)for(const Ue in Ce)Ce.hasOwnProperty(Ue)&&this.xhr_.setRequestHeader(Ue,Ce[Ue].toString());return void 0!==he?this.xhr_.send(he):this.xhr_.send(),this.sendPromise_}getErrorCode(){if(!this.sent_)throw Ct("cannot .getErrorCode() before sending");return this.errorCode_}getStatus(){if(!this.sent_)throw Ct("cannot .getStatus() before sending");try{return this.xhr_.status}catch{return-1}}getResponse(){if(!this.sent_)throw Ct("cannot .getResponse() before sending");return this.xhr_.response}getErrorText(){if(!this.sent_)throw Ct("cannot .getErrorText() before sending");return this.xhr_.statusText}abort(){this.xhr_.abort()}getResponseHeader(I){return this.xhr_.getResponseHeader(I)}addUploadProgressListener(I){null!=this.xhr_.upload&&this.xhr_.upload.addEventListener("progress",I)}removeUploadProgressListener(I){null!=this.xhr_.upload&&this.xhr_.upload.removeEventListener("progress",I)}}class pe extends we{initXhr(){this.xhr_.responseType="text"}}function ke(){return new pe}class tt extends we{initXhr(){this.xhr_.responseType="arraybuffer"}}function gt(){return new tt}class Et extends we{initXhr(){this.xhr_.responseType="blob"}}function Ke(){return new Et}class Vn{isExponentialBackoffExpired(){return this.sleepTime>this.maxSleepTime}constructor(I,q,ee=null){this._transferred=0,this._needToFetchStatus=!1,this._needToFetchMetadata=!1,this._observers=[],this._error=void 0,this._uploadUrl=void 0,this._request=void 0,this._chunkMultiplier=1,this._resolve=void 0,this._reject=void 0,this._ref=I,this._blob=q,this._metadata=ee,this._mappings=kr(),this._resumable=this._shouldDoResumable(this._blob),this._state="running",this._errorHandler=he=>{if(this._request=void 0,this._chunkMultiplier=1,he._codeEquals(S.CANCELED))this._needToFetchStatus=!0,this.completeTransitions_();else{const Ce=this.isExponentialBackoffExpired();if(En(he.status,[])){if(!Ce)return this.sleepTime=Math.max(2*this.sleepTime,1e3),this._needToFetchStatus=!0,void this.completeTransitions_();he=m()}this._error=he,this._transition("error")}},this._metadataErrorHandler=he=>{this._request=void 0,he._codeEquals(S.CANCELED)?this.completeTransitions_():(this._error=he,this._transition("error"))},this.sleepTime=0,this.maxSleepTime=this._ref.storage.maxUploadRetryTime,this._promise=new Promise((he,Ce)=>{this._resolve=he,this._reject=Ce,this._start()}),this._promise.then(null,()=>{})}_makeProgressCallback(){const I=this._transferred;return q=>this._updateProgress(I+q)}_shouldDoResumable(I){return I.size()>262144}_start(){"running"===this._state&&void 0===this._request&&(this._resumable?void 0===this._uploadUrl?this._createResumable():this._needToFetchStatus?this._fetchStatus():this._needToFetchMetadata?this._fetchMetadata():this.pendingTimeout=setTimeout(()=>{this.pendingTimeout=void 0,this._continueUpload()},this.sleepTime):this._oneShotUpload())}_resolveToken(I){Promise.all([this._ref.storage._getAuthToken(),this._ref.storage._getAppCheckToken()]).then(([q,ee])=>{switch(this._state){case"running":I(q,ee);break;case"canceling":this._transition("canceled");break;case"pausing":this._transition("paused")}})}_createResumable(){this._resolveToken((I,q)=>{const ee=function xt(E,I,q,ee,he){const Ce=I.bucketOnlyServerUrl(),Ue=qt(I,ee,he),dt={name:Ue.fullPath},at=it(Ce,E.host,E._protocol),At={"X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":`${ee.size()}`,"X-Goog-Upload-Header-Content-Type":Ue.contentType,"Content-Type":"application/json; charset=utf-8"},sn=Mn(Ue,q),Ft=new fr(at,"POST",function qn(An){let an;Xe(An);try{an=An.getResponseHeader("X-Goog-Upload-URL")}catch{mr(!1)}return mr(L(an)),an},E.maxUploadRetryTime);return Ft.urlParams=dt,Ft.headers=At,Ft.body=sn,Ft.errorHandler=zt(I),Ft}(this._ref.storage,this._ref._location,this._mappings,this._blob,this._metadata),he=this._ref.storage._makeRequest(ee,ke,I,q);this._request=he,he.getPromise().then(Ce=>{this._request=void 0,this._uploadUrl=Ce,this._needToFetchStatus=!1,this.completeTransitions_()},this._errorHandler)})}_fetchStatus(){const I=this._uploadUrl;this._resolveToken((q,ee)=>{const he=function xe(E,I,q,ee){const at=new fr(q,"POST",function Ce(Pt){const At=Xe(Pt,["active","final"]);let sn=null;try{sn=Pt.getResponseHeader("X-Goog-Upload-Size-Received")}catch{mr(!1)}sn||mr(!1);const Ln=Number(sn);return mr(!isNaN(Ln)),new on(Ln,ee.size(),"final"===At)},E.maxUploadRetryTime);return at.headers={"X-Goog-Upload-Command":"query"},at.errorHandler=zt(I),at}(this._ref.storage,this._ref._location,I,this._blob),Ce=this._ref.storage._makeRequest(he,ke,q,ee);this._request=Ce,Ce.getPromise().then(Ue=>{this._request=void 0,this._updateProgress(Ue.current),this._needToFetchStatus=!1,Ue.finalized&&(this._needToFetchMetadata=!0),this.completeTransitions_()},this._errorHandler)})}_continueUpload(){const I=262144*this._chunkMultiplier,q=new on(this._transferred,this._blob.size()),ee=this._uploadUrl;this._resolveToken((he,Ce)=>{let Ue;try{Ue=function Ne(E,I,q,ee,he,Ce,Ue,dt){const at=new on(0,0);if(Ue?(at.current=Ue.current,at.total=Ue.total):(at.current=0,at.total=ee.size()),ee.size()!==at.total)throw function Re(){return new C(S.SERVER_FILE_WRONG_SIZE,"Server recorded incorrect upload file size, please retry the upload.")}();const Pt=at.total-at.current;let At=Pt;he>0&&(At=Math.min(At,he));const sn=at.current;let qn="";qn=0===At?"finalize":Pt===At?"upload, finalize":"upload";const Ft={"X-Goog-Upload-Command":qn,"X-Goog-Upload-Offset":`${at.current}`},An=ee.slice(sn,sn+At);if(null===An)throw J();const Kn=new fr(q,"POST",function an(er,uo){const Sn=Xe(er,["active","final"]),Ma=at.current+At,cs=ee.size();let xr;return xr="final"===Sn?vo(I,Ce)(er,uo):null,new on(Ma,cs,"final"===Sn,xr)},I.maxUploadRetryTime);return Kn.headers=Ft,Kn.body=An.uploadData(),Kn.progressCallback=dt||null,Kn.errorHandler=zt(E),Kn}(this._ref._location,this._ref.storage,ee,this._blob,I,this._mappings,q,this._makeProgressCallback())}catch(at){return this._error=at,void this._transition("error")}const dt=this._ref.storage._makeRequest(Ue,ke,he,Ce,!1);this._request=dt,dt.getPromise().then(at=>{this._increaseMultiplier(),this._request=void 0,this._updateProgress(at.current),at.finalized?(this._metadata=at.metadata,this._transition("success")):this.completeTransitions_()},this._errorHandler)})}_increaseMultiplier(){262144*this._chunkMultiplier*2<33554432&&(this._chunkMultiplier*=2)}_fetchMetadata(){this._resolveToken((I,q)=>{const ee=X(this._ref.storage,this._ref._location,this._mappings),he=this._ref.storage._makeRequest(ee,ke,I,q);this._request=he,he.getPromise().then(Ce=>{this._request=void 0,this._metadata=Ce,this._transition("success")},this._metadataErrorHandler)})}_oneShotUpload(){this._resolveToken((I,q)=>{const ee=Be(this._ref.storage,this._ref._location,this._mappings,this._blob,this._metadata),he=this._ref.storage._makeRequest(ee,ke,I,q);this._request=he,he.getPromise().then(Ce=>{this._request=void 0,this._metadata=Ce,this._updateProgress(this._blob.size()),this._transition("success")},this._errorHandler)})}_updateProgress(I){const q=this._transferred;this._transferred=I,this._transferred!==q&&this._notifyObservers()}_transition(I){if(this._state!==I)switch(I){case"canceling":case"pausing":this._state=I,void 0!==this._request?this._request.cancel():this.pendingTimeout&&(clearTimeout(this.pendingTimeout),this.pendingTimeout=void 0,this.completeTransitions_());break;case"running":const q="paused"===this._state;this._state=I,q&&(this._notifyObservers(),this._start());break;case"paused":case"error":case"success":this._state=I,this._notifyObservers();break;case"canceled":this._error=w(),this._state=I,this._notifyObservers()}}completeTransitions_(){switch(this._state){case"pausing":this._transition("paused");break;case"canceling":this._transition("canceled");break;case"running":this._start()}}get snapshot(){const I=Eo(this._state);return{bytesTransferred:this._transferred,totalBytes:this._blob.size(),state:I,metadata:this._metadata,task:this,ref:this._ref}}on(I,q,ee,he){const Ce=new ao(q||void 0,ee||void 0,he||void 0);return this._addObserver(Ce),()=>{this._removeObserver(Ce)}}then(I,q){return this._promise.then(I,q)}catch(I){return this.then(null,I)}_addObserver(I){this._observers.push(I),this._notifyObserver(I)}_removeObserver(I){const q=this._observers.indexOf(I);-1!==q&&this._observers.splice(q,1)}_notifyObservers(){this._finishPromise(),this._observers.slice().forEach(q=>{this._notifyObserver(q)})}_finishPromise(){if(void 0!==this._resolve){let I=!0;switch(Eo(this._state)){case Tn.SUCCESS:Cr(this._resolve.bind(null,this.snapshot))();break;case Tn.CANCELED:case Tn.ERROR:Cr(this._reject.bind(null,this._error))();break;default:I=!1}I&&(this._resolve=void 0,this._reject=void 0)}}_notifyObserver(I){switch(Eo(this._state)){case Tn.RUNNING:case Tn.PAUSED:I.next&&Cr(I.next.bind(I,this.snapshot))();break;case Tn.SUCCESS:I.complete&&Cr(I.complete.bind(I))();break;default:I.error&&Cr(I.error.bind(I,this._error))()}}resume(){const I="paused"===this._state||"pausing"===this._state;return I&&this._transition("running"),I}pause(){const I="running"===this._state;return I&&this._transition("pausing"),I}cancel(){const I="running"===this._state||"pausing"===this._state;return I&&this._transition("canceling"),I}}class Ht{constructor(I,q){this._service=I,this._location=q instanceof Vt?q:Vt.makeFromUrl(q,I.host)}toString(){return"gs://"+this._location.bucket+"/"+this._location.path}_newRef(I,q){return new Ht(I,q)}get root(){const I=new Vt(this._location.bucket,"");return this._newRef(this._service,I)}get bucket(){return this._location.bucket}get fullPath(){return this._location.path}get name(){return Mo(this._location.path)}get storage(){return this._service}get parent(){const I=function Pr(E){if(0===E.length)return null;const I=E.lastIndexOf("/");return-1===I?"":E.slice(0,I)}(this._location.path);if(null===I)return null;const q=new Vt(this._location.bucket,I);return new Ht(this._service,q)}_throwIfRoot(I){if(""===this._location.path)throw rt(I)}}function co(E,I,q){E._throwIfRoot("uploadBytes");const ee=Be(E.storage,E._location,kr(),new Xn(I,!0),q);return E.storage.makeRequestWithTokens(ee,ke).then(he=>({metadata:he,ref:E}))}function qr(E,I,q){return Tt.apply(this,arguments)}function Tt(){return(Tt=(0,d.A)(function*(E,I,q){const he=yield $u(E,{pageToken:q});I.prefixes.push(...he.prefixes),I.items.push(...he.items),null!=he.nextPageToken&&(yield qr(E,I,he.nextPageToken))})).apply(this,arguments)}function $u(E,I){null!=I&&"number"==typeof I.maxResults&&He("options.maxResults",1,1e3,I.maxResults);const q=I||{},ee=W(E.storage,E._location,"/",q.pageToken,q.maxResults);return E.storage.makeRequestWithTokens(ee,ke)}function Ra(E){E._throwIfRoot("getDownloadURL");const I=function Oe(E,I,q){const he=it(I.fullServerUrl(),E.host,E._protocol),Ue=E.maxOperationRetryTime,dt=new fr(he,"GET",function Ii(E,I){return function q(ee,he){const Ce=wo(E,he,I);return mr(null!==Ce),function st(E,I,q,ee){const he=rn(I);if(null===he||!L(he.downloadTokens))return null;const Ce=he.downloadTokens;if(0===Ce.length)return null;const Ue=encodeURIComponent;return Ce.split(",").map(Pt=>{const sn=E.fullPath;return it("/b/"+Ue(E.bucket)+"/o/"+Ue(sn),q,ee)+yt({alt:"media",token:Pt})})[0]}(Ce,he,E.host,E._protocol)}}(E,q),Ue);return dt.errorHandler=zn(I),dt}(E.storage,E._location,kr());return E.storage.makeRequestWithTokens(I,ke).then(q=>{if(null===q)throw function Pe(){return new C(S.NO_DOWNLOAD_URL,"The given file does not have any download URLs.")}();return q})}function Pa(E,I){const q=function Yn(E,I){const q=I.split("/").filter(ee=>ee.length>0).join("/");return 0===E.length?q:E+"/"+q}(E._location.path,I),ee=new Vt(E._location.bucket,q);return new Ht(E.storage,ee)}function zs(E,I){if(E instanceof Vo){const q=E;if(null==q._bucket)throw function z(){return new C(S.NO_DEFAULT_BUCKET,"No default bucket found. Did you set the '"+x+"' property when initializing the app?")}();const ee=new Ht(q,q._bucket);return null!=I?zs(ee,I):ee}return void 0!==I?Pa(E,I):E}function Br(E,I){if(I&&function Nu(E){return/^[A-Za-z]+:\/\//.test(E)}(I)){if(E instanceof Vo)return function ka(E,I){return new Ht(E,I)}(E,I);throw Fe("To use ref(service, url), the first argument must be a Storage instance.")}return zs(E,I)}function uh(E,I){const q=I?.[x];return null==q?null:Vt.makeFromBucketSpec(q,E)}class Vo{constructor(I,q,ee,he,Ce,Ue=!1){this.app=I,this._authProvider=q,this._appCheckProvider=ee,this._url=he,this._firebaseVersion=Ce,this._isUsingEmulator=Ue,this._bucket=null,this._host=G,this._protocol="https",this._appId=null,this._deleted=!1,this._maxOperationRetryTime=12e4,this._maxUploadRetryTime=6e5,this._requests=new Set,this._bucket=null!=he?Vt.makeFromBucketSpec(he,this._host):uh(this._host,this.app.options)}get host(){return this._host}set host(I){this._host=I,this._bucket=null!=this._url?Vt.makeFromBucketSpec(this._url,I):uh(I,this.app.options)}get maxUploadRetryTime(){return this._maxUploadRetryTime}set maxUploadRetryTime(I){He("time",0,Number.POSITIVE_INFINITY,I),this._maxUploadRetryTime=I}get maxOperationRetryTime(){return this._maxOperationRetryTime}set maxOperationRetryTime(I){He("time",0,Number.POSITIVE_INFINITY,I),this._maxOperationRetryTime=I}_getAuthToken(){var I=this;return(0,d.A)(function*(){if(I._overrideAuthToken)return I._overrideAuthToken;const q=I._authProvider.getImmediate({optional:!0});if(q){const ee=yield q.getToken();if(null!==ee)return ee.accessToken}return null})()}_getAppCheckToken(){var I=this;return(0,d.A)(function*(){if((0,V.xZ)(I.app)&&I.app.settings.appCheckToken)return I.app.settings.appCheckToken;const q=I._appCheckProvider.getImmediate({optional:!0});return q?(yield q.getToken()).token:null})()}_delete(){return this._deleted||(this._deleted=!0,this._requests.forEach(I=>I.cancel()),this._requests.clear()),Promise.resolve()}_makeStorageReference(I){return new Ht(this,I)}_makeRequest(I,q,ee,he,Ce=!0){if(this._deleted)return new Cn(Je());{const Ue=function jt(E,I,q,ee,he,Ce,Ue=!0,dt=!1){const at=yt(E.urlParams),Pt=E.url+at,At=Object.assign({},E.headers);return function ze(E,I){I&&(E["X-Firebase-GMPID"]=I)}(At,I),function Me(E,I){null!==I&&I.length>0&&(E.Authorization="Firebase "+I)}(At,q),function qe(E,I){E["X-Firebase-Storage-Version"]="webjs/"+(I??"AppManager")}(At,Ce),function ct(E,I){null!==I&&(E["X-Firebase-AppCheck"]=I)}(At,ee),new ge(Pt,E.method,At,E.body,E.successCodes,E.additionalRetryCodes,E.handler,E.errorHandler,E.timeout,E.progressCallback,he,Ue,dt)}(I,this._appId,ee,he,q,this._firebaseVersion,Ce,this._isUsingEmulator);return this._requests.add(Ue),Ue.getPromise().then(()=>this._requests.delete(Ue),()=>this._requests.delete(Ue)),Ue}}makeRequestWithTokens(I,q){var ee=this;return(0,d.A)(function*(){const[he,Ce]=yield Promise.all([ee._getAuthToken(),ee._getAppCheckToken()]);return ee._makeRequest(I,q,he,Ce).getPromise()})()}}const Ca="@firebase/storage",Ut="storage";function lt(E,I){return function jr(E,I){E._throwIfRoot("getBytes");const q=ae(E.storage,E._location,I);return E.storage.makeRequestWithTokens(q,gt).then(ee=>void 0!==I?ee.slice(0,I):ee)}(E=(0,$.Ku)(E),I)}function as(E,I,q){return co(E=(0,$.Ku)(E),I,q)}function Ti(E,I,q,ee){return function Ou(E,I,q=Gt.RAW,ee){E._throwIfRoot("uploadString");const he=pr(q,I),Ce={...ee};return null==Ce.contentType&&null!=he.contentType&&(Ce.contentType=he.contentType),co(E,he.data,Ce)}(E=(0,$.Ku)(E),I,q,ee)}function Da(E,I,q){return function Du(E,I,q){return E._throwIfRoot("uploadBytesResumable"),new Vn(E,new Xn(I),q)}(E=(0,$.Ku)(E),I,q)}function Lo(E){return function Jt(E){E._throwIfRoot("getMetadata");const I=X(E.storage,E._location,kr());return E.storage.makeRequestWithTokens(I,ke)}(E=(0,$.Ku)(E))}function lh(E,I){return function Ye(E,I){E._throwIfRoot("updateMetadata");const q=function H(E,I,q,ee){const Ce=it(I.fullServerUrl(),E.host,E._protocol),dt=Mn(q,ee),Pt=E.maxOperationRetryTime,At=new fr(Ce,"PATCH",vo(E,ee),Pt);return At.headers={"Content-Type":"application/json; charset=utf-8"},At.body=dt,At.errorHandler=zn(I),At}(E.storage,E._location,I,kr());return E.storage.makeRequestWithTokens(q,ke)}(E=(0,$.Ku)(E),I)}function Ai(E,I){return $u(E=(0,$.Ku)(E),I)}function dh(E){return function Sa(E){const I={prefixes:[],items:[]};return qr(E,I).then(()=>I)}(E=(0,$.Ku)(E))}function qs(E){return Ra(E=(0,$.Ku)(E))}function Mu(E){return function ch(E){E._throwIfRoot("deleteObject");const I=function Ze(E,I){const ee=it(I.fullServerUrl(),E.host,E._protocol),dt=new fr(ee,"DELETE",function Ue(at,Pt){},E.maxOperationRetryTime);return dt.successCodes=[200,204],dt.errorHandler=zn(I),dt}(E.storage,E._location);return E.storage.makeRequestWithTokens(I,ke)}(E=(0,$.Ku)(E))}function Vu(E,I){return Br(E=(0,$.Ku)(E),I)}function Er(E,I){return Pa(E,I)}function Oa(E=(0,V.Sx)(),I){E=(0,$.Ku)(E);const ee=(0,V.j6)(E,Ut).getImmediate({identifier:I}),he=(0,$.yU)("storage");return he&&$a(ee,...he),ee}function $a(E,I,q,ee={}){!function Dn(E,I,q,ee={}){E.host=`${I}:${q}`;const he=(0,$.zJ)(I);he&&((0,$.gE)(`https://${E.host}/b`),(0,$.P1)("Storage",!0)),E._isUsingEmulator=!0,E._protocol=he?"https":"http";const{mockUserToken:Ce}=ee;Ce&&(E._overrideAuthToken="string"==typeof Ce?Ce:(0,$.Fy)(Ce,E.app.options.projectId))}(E,I,q,ee)}function Lu(E,I){return function zr(E,I){E._throwIfRoot("getBlob");const q=ae(E.storage,E._location,I);return E.storage.makeRequestWithTokens(q,Ke).then(ee=>void 0!==I?ee.slice(0,I):ee)}(E=(0,$.Ku)(E),I)}function Io(E,I){throw new Error("getStream() is only supported by NodeJS builds")}function Na(E,{instanceIdentifier:I}){const q=E.getProvider("app").getImmediate(),ee=E.getProvider("auth-internal"),he=E.getProvider("app-check-internal");return new Vo(q,ee,he,I,V.MF)}!function me(){(0,V.om)(new U.uA(Ut,Na,"PUBLIC").setMultipleInstances(!0)),(0,V.KO)(Ca,"0.14.0",""),(0,V.KO)(Ca,"0.14.0","esm2020")}()},27106(Le,g,R){"use strict";function d(V,$){this.v=V,this.k=$}R.d(g,{A:()=>d})},19495(Le,g,R){"use strict";function d($){var U,G,x,j=2;for(typeof Symbol<"u"&&(G=Symbol.asyncIterator,x=Symbol.iterator);j--;){if(G&&null!=(U=$[G]))return U.call($);if(x&&null!=(U=$[x]))return new V(U.call($));G="@@asyncIterator",x="@@iterator"}throw new TypeError("Object is not async iterable")}function V($){function U(G){if(Object(G)!==G)return Promise.reject(new TypeError(G+" is not an object."));var x=G.done;return Promise.resolve(G.value).then(function(j){return{value:j,done:x}})}return(V=function(x){this.s=x,this.n=x.next}).prototype={s:null,n:null,next:function(){return U(this.n.apply(this.s,arguments))},return:function(x){var j=this.s.return;return void 0===j?Promise.resolve({value:x,done:!0}):U(j.apply(this.s,arguments))},throw:function(x){var j=this.s.return;return void 0===j?Promise.reject(x):U(j.apply(this.s,arguments))}},new V($)}R.d(g,{A:()=>d})},56218(Le,g,R){"use strict";R.d(g,{A:()=>V});var d=R(27106);function V($){return new d.A($,0)}},10600(Le,g,R){"use strict";R.d(g,{A:()=>V});var d=R(27106);function V(U){return function(){return new $(U.apply(this,arguments))}}function $(U){var G,x;function j(O,C){try{var S=U[O](C),M=S.value,F=M instanceof d.A;Promise.resolve(F?M.v:M).then(function(Z){if(F){var Y="return"===O&&M.k?O:"next";if(!M.k||Z.done)return j(Y,Z);Z=U[Y](Z).value}D(!!S.done,Z)},function(Z){j("throw",Z)})}catch(Z){D(2,Z)}}function D(O,C){2===O?G.reject(C):G.resolve({value:C,done:O}),(G=G.next)?j(G.key,G.arg):x=null}this._invoke=function(O,C){return new Promise(function(S,M){var F={key:O,arg:C,resolve:S,reject:M,next:null};x?x=x.next=F:(G=x=F,j(O,C))})},"function"!=typeof U.return&&(this.return=void 0)}$.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},$.prototype.next=function(U){return this._invoke("next",U)},$.prototype.throw=function(U){return this._invoke("throw",U)},$.prototype.return=function(U){return this._invoke("return",U)}},70545(Le){"use strict";Le.exports=JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},7595(Le){"use strict";Le.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')}}]);