UNPKG

mashlib

Version:
2 lines 2.29 MB
/*! For license information please see mashlib.min.js.LICENSE.txt */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Mashlib=t():e.Mashlib=t()}(self,(()=>(()=>{var e,t,n,r,i={46:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),a=0;a<n.length;a++)"default"!==n[a]&&i(t,e,n[a]);return o(t,e),t}),s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},l=this&&this.__generator||function(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.solidLogicSingleton=void 0;var c=a(n(68339)),u=n(84208),d=(0,n(77939).createSolidLogic)({fetch:function(e,t){return s(void 0,void 0,void 0,(function(){var n;return l(this,(function(r){return n=t&&t.credentials&&"omit"==t.credentials,u.authSession.info.webId&&!n?[2,u.authSession.fetch(e,t)]:[2,window.fetch(e,t)]}))}))}},u.authSession);t.solidLogicSingleton=d,c.log("Unique quadstore initialized.")},251:(e,t)=>{t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?i-1:0,p=n?-1:1,f=e[t+d];for(d+=p,o=f&(1<<-u)-1,f>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=p,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=p,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,r),o-=c}return(f?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,c=8*o-i-1,u=(1<<c)-1,d=u>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?p/l:p*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+f]=255&s,f+=h,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[n+f]=255&a,f+=h,a/=256,c-=8);e[n+f-h]|=128*m}},437:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(68921),i=n(88616),o=n(75108),a=n(89755),s=n(46320),l=n(39403),c=n(3078),u=n(47037),d=n(92915);const p=new c.A,f={supports:{[u.X.collections]:!1,[u.X.defaultGraphType]:!1,[u.X.equalsMethod]:!0,[u.X.identity]:!1,[u.X.id]:!0,[u.X.reversibleId]:!1,[u.X.variableType]:!0},blankNode:e=>new r.A(e),defaultGraph:()=>p,equals(e,t){return e===t||!e||!t||((0,d.aF)(e)||(0,d.aF)(t)?!(!(0,d.aF)(e)||!(0,d.aF)(t))&&this.equals(e.subject,t.subject)&&this.equals(e.predicate,t.predicate)&&this.equals(e.object,t.object)&&this.equals(e.graph,t.graph):!(!(0,d.D0)(e)||!(0,d.D0)(t))&&this.id(e)===this.id(t))},id(e){if(!e)return"undefined";if((0,d.aF)(e))return this.quadToNQ(e);switch(e.termType){case l.ic:return"defaultGraph";case l.P2:return s.A.toString(e);default:const t=this.termToNQ(e);if(t)return t;throw new Error(`Can't id term with type '${e.termType}'`)}},isQuad:e=>e instanceof a.A,literal(e,t){if("string"!=typeof e&&!t)return i.A.fromValue(e);const n="string"==typeof e?e:""+e;return"string"==typeof t?-1===t.indexOf(":")?new i.A(n,t):new i.A(n,null,this.namedNode(t)):new i.A(n,null,t)},namedNode:e=>new o.A(e),quad:(e,t,n,r)=>new a.A(e,t,n,r||p),triple(e,t,n,r){return this.quad(e,t,n,r)},quadToNQ(e){return`${this.termToNQ(e.subject)} ${this.termToNQ(e.predicate)} ${this.termToNQ(e.object)} ${this.termToNQ(e.graph)} .`},termToNQ(e){switch(e.termType){case l.$Q:return"_:"+e.value;case l.ic:return"";case l.S:return"<http://www.w3.org/1999/02/22-rdf-syntax-ns#nil>";case l.QW:return i.A.toNT(e);case l.bD:case l.Kk:return"<"+e.value+">";case l.r0:return"("+e.elements.map((e=>this.termToNQ(e))).join(" ")+")";default:throw new Error(`Can't serialize nonstandard term type (was '${e.termType}')`)}},toNQ(e){return this.isQuad(e)?this.quadToNQ(e):this.termToNQ(e)},variable:e=>new s.A(e)}},676:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(37991),i=n(52698),o=n(21575),a=n(25994);function s(e,t,n){if((0,r.R)(t))return(0,i.Y)(t,e,n),t;if(t instanceof Uint8Array){if(!e.startsWith("HS"))throw new TypeError((0,o.A)(t,...a.g));return r.A.subtle.importKey("raw",t,{hash:`SHA-${e.slice(-3)}`,name:"HMAC"},!1,[n])}throw new TypeError((0,o.A)(t,...a.g,"Uint8Array"))}},755:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(60134))&&r.__esModule?r:{default:r};t.default=function(e){return"string"==typeof e&&i.default.test(e)}},764:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AsyncReplaceDirective:()=>m,asyncReplace:()=>g});var r=n(36752);const{I:i}=r._$LH;var o=n(7804);const a=(e,t)=>{const n=e._$AN;if(void 0===n)return!1;for(const e of n)e._$AO?.(t,!1),a(e,t);return!0},s=e=>{let t,n;do{if(void 0===(t=e._$AM))break;n=t._$AN,n.delete(e),e=t}while(0===n?.size)},l=e=>{for(let t;t=e._$AM;e=t){let n=t._$AN;if(void 0===n)t._$AN=n=new Set;else if(n.has(e))break;n.add(e),d(t)}};function c(e){void 0!==this._$AN?(s(this),this._$AM=e,l(this)):this._$AM=e}function u(e,t=!1,n=0){const r=this._$AH,i=this._$AN;if(void 0!==i&&0!==i.size)if(t)if(Array.isArray(r))for(let e=n;e<r.length;e++)a(r[e],!1),s(r[e]);else null!=r&&(a(r,!1),s(r));else a(this,e)}const d=e=>{e.type==o.OA.CHILD&&(e._$AP??=u,e._$AQ??=c)};class p extends o.WL{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,n){super._$AT(e,t,n),l(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(a(this,e),s(this))}setValue(e){if((()=>void 0===this._$Ct.strings)())this._$Ct._$AI(e,this);else{const t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}class f{constructor(e){this.Y=e}disconnect(){this.Y=void 0}reconnect(e){this.Y=e}deref(){return this.Y}}class h{constructor(){this.Z=void 0,this.q=void 0}get(){return this.Z}pause(){this.Z??=new Promise((e=>this.q=e))}resume(){this.q?.(),this.Z=this.q=void 0}}class m extends p{constructor(){super(...arguments),this._$CK=new f(this),this._$CX=new h}render(e,t){return r.noChange}update(e,[t,n]){if(this.isConnected||this.disconnected(),t===this._$CJ)return r.noChange;this._$CJ=t;let i=0;const{_$CK:o,_$CX:a}=this;return(async(e,t)=>{for await(const n of e)if(!1===await t(n))return})(t,(async e=>{for(;a.get();)await a.get();const r=o.deref();if(void 0!==r){if(r._$CJ!==t)return!1;void 0!==n&&(e=n(e,i)),r.commitValue(e,i),i++}return!0})),r.noChange}commitValue(e,t){this.setValue(e)}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}}const g=(0,o.u$)(m)},920:(e,t,n)=>{"use strict";var r=n(69675),i=n(58859),o=n(14803),a=n(80507),s=n(72271)||a||o;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r("Side channel does not contain "+i(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||(e=s()),e.set(t,n)}};return t}},1033:function(e,t){"use strict";var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.FetchError=t.WebOperationError=t.NotEditableError=t.NotFoundError=t.SameOriginForbiddenError=t.CrossOriginForbiddenError=t.UnauthorizedError=void 0;var i=function(e){function t(t){var n=this.constructor,r=e.call(this,t)||this;return Object.setPrototypeOf(r,n.prototype),r.name=n.name,r}return r(t,e),t}(Error),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(i);t.UnauthorizedError=o;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(i);t.CrossOriginForbiddenError=a;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(i);t.SameOriginForbiddenError=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(i);t.NotFoundError=l;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(i);t.NotEditableError=c;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(i);t.WebOperationError=u;var d=function(e){function t(t,n){var r=e.call(this,n)||this;return r.status=t,r}return r(t,e),t}(i);t.FetchError=d},2609:(e,t,n)=>{"use strict";n.d(t,{T:()=>i});var r=n(85550);class i{constructor(e){this._flattened=new r.n(e)}setProtectedHeader(e){return this._flattened.setProtectedHeader(e),this}async sign(e,t){const n=await this._flattened.sign(e,t);if(void 0===n.payload)throw new TypeError("use the flattened module for creating JWS with b64: false");return`${n.protected}.${n.payload}.${n.signature}`}}},2687:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(67364),i=n(92361),o=n(24596),a=n(71935),s=i.style.highlightColor||"#7C4DFF",l={global:!0,icon:i.icons.iconBase+"noun_492246.svg",name:"editProfile",label:function(){return null},render:function(e,t){console.log("@@@ render edit profile pane: subject, context",e,t);var n=t.dom,l=t.session.store;function c(e,t){e||d.appendChild(i.widgets.errorMessageBlock(n,t,"#fee"))}var u,d=n.createElement("div");d.setAttribute("data-testid","profile-editor"),d.setAttribute("style","border: 0.3em solid ".concat(s,"; border-radius: 0.5em; padding: 0.7em; margin-top:0.7em;"));var p=d.appendChild(n.createElement("table")),f=p.appendChild(n.createElement("tr")),h=p.appendChild(n.createElement("tr")).appendChild(n.createElement("div"));function m(e){var t=f.appendChild(n.createElement("p"));return t.setAttribute("style","padding: 1em;"),t.textContent=e,t}function g(e){var t=f.appendChild(n.createElement("h3"));return t.setAttribute("style","color:"+s+";"),t.textContent=e,t}h.setAttribute("style","padding: 0.7em;");var v={dom:n,div:f,statusArea:h,me:null};return i.login.ensureLoadedProfile(v).then((function(e){var s=e.me;g("Edit your public profile");var d=s.doc();if(!l.updater)throw new Error("Store has no updater");if(l.any(s,i.ns.solid("editableProfile")))u=l.any(s,i.ns.solid("editableProfile"));else{if(!l.updater.editable(d.uri,l))return void h.appendChild(i.widgets.errorMessageBlock(n,"⚠️ Your profile ".concat(d," is not editable, so we cannot do much here."),"straw"));u=d}m("Everything you put here will be public.\n There will be other places to record private things."),g("Your contact information"),f.appendChild((0,o.paneDiv)(t,s,"contact")),g("People you know who have WebIDs"),m("This is your public social network.\n Only put people here to whom you are happy to be publicly connected.\n (You can always keep private track of friends and family in your contacts.)"),u&&m("Drag people onto the target below to add people."),i.widgets.attachmentList(n,s,f,{doc:d,modify:!!u,predicate:i.ns.foaf("knows"),noun:"friend"}),g("Communities you participate in"),m("These are organizations and projects (etc) whose stuff you share"),u&&m("Drag organizations onto the target below to add organizations."),i.widgets.attachmentList(n,s,f,{doc:d,modify:!!u,predicate:i.ns.solid("community"),noun:"community"}),function(e,t){var o=(0,r.sym)("https://solidos.github.io/profile-pane/src/ontology/profileForm.ttl#this"),s=o.doc();l.holds(void 0,void 0,void 0,s)||(0,r.parse)(a.profileForm,l,s.uri,"text/turtle",(function(){return null})),e.setAttribute("data-testid","profile-editor"),i.widgets.appendForm(n,e,{},t,o,u,c)}(f,s),g("Thank you for filling your profile.")})).catch((function(e){h.appendChild(i.widgets.errorMessageBlock(n,e,"#fee"))})),d}};t.default=l},2731:(e,t)=>{const n=new Uint8Array(512),r=new Uint8Array(256);!function(){let e=1;for(let t=0;t<255;t++)n[t]=e,r[e]=t,e<<=1,256&e&&(e^=285);for(let e=255;e<512;e++)n[e]=n[e-255]}(),t.log=function(e){if(e<1)throw new Error("log("+e+")");return r[e]},t.exp=function(e){return n[e]},t.mul=function(e,t){return 0===e||0===t?0:n[r[e]+r[t]]}},2865:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.iconForClassMap=void 0,t.getIconForClass=h,t.presentStuff=function(e){return r(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,c(null,e)];case 1:return[2,{stuff:t.sent().map((function(e){var t=h(e.type||a.ns.rdf("Resource"));return{href:e.instance.uri,name:a.utils.label(e.instance),icon:t,instance:e.instance}}))}]}}))}))};var o=n(67364),a=n(92361),s=n(23451),l=a.widgets.iconForClass,c=s.solidLogicSingleton.typeIndex.getScopedAppInstances;for(var u in t.iconForClassMap={},l){var d=u.split(":")[0],p=u.split(":")[1],f=a.ns[d](p);t.iconForClassMap[f.uri]=o.uri.join(l[u],a.icons.iconBase)}function h(e){return t.iconForClassMap[e.uri]||a.icons.iconBase+"noun_10636.svg"}},2931:(e,t,n)=>{"use strict";function r(e){return"string"==typeof e?e:e.value}n.d(t,{E:()=>r})},3071:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getChat",{enumerable:!0,get:function(){return o.getChat}}),Object.defineProperty(t,"longChatPane",{enumerable:!0,get:function(){return i.longChatPane}}),Object.defineProperty(t,"shortChatPane",{enumerable:!0,get:function(){return r.shortChatPane}});var r=n(74694),i=n(62440),o=n(88782)},3072:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case o:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case m:case l:return e;default:return t}}case i:return t}}}function E(e){return x(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return E(e)||x(e)===u},t.isConcurrentMode=E,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===p},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===a||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=x},3078:(e,t,n)=>{"use strict";n.d(t,{A:()=>s,U:()=>l});var r=n(64467),i=n(8936),o=n(39403),a=n(14275);class s extends i.A{constructor(){super(""),(0,r.A)(this,"value",""),(0,r.A)(this,"termType",o.ic),(0,r.A)(this,"uri",a.U)}toCanonical(){return this.value}toString(){return"DefaultGraph"}}function l(e){return!!e&&e.termType===o.ic}},3479:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n(92361)),o=s(n(67364));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}function s(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var i={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var l=o?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(i,s,l):i[s]=e[s]}return i.default=e,n&&n.set(e,i),i}var l=i.ns;t.default={icon:i.icons.iconBase+"noun_62007.svg",name:"travel expenses",audience:[l.solid("PowerUser")],label:function(e,t){var n=t.session.store,r=n.findTypeURIs(e);return i.ns.qu("Transaction")in n.findSuperClassesNT(e)?"by Trip":r["http://www.w3.org/ns/pim/trip#Trip"]?"Trip $":null},render:function(e,t){var n=t.dom,r=t.store,a=i.ns,s=o.Namespace("http://www.w3.org/2002/12/cal/ical#"),l=o.Namespace("http://www.w3.org/ns/pim/trip#"),c=n.createElement("div");c.setAttribute("class","transactionPane"),c.innerHTML="<h2>Trip transactions</h2>";var u=function(e,t){void 0===t&&(t="color: grey");var r=n.createElement("pre");r.setAttribute("style",t),c.appendChild(r),r.appendChild(n.createTextNode(e))},d=r.findTypeURIs(e),p=function(e,t){var s=new o.Query(i.utils.label(e)),c={};["date","transaction","comment","type","in_USD"].forEach((function(e){s.vars.push(c[e]=o.variable(e))})),s.pat.add(c.transaction,l("trip"),e);var d=r.formula();d.add(c.transaction,a.rdf("type"),c.type),s.pat.optional.push(d),s.pat.add(c.transaction,i.ns.qu("date"),c.date),d.add(c.transaction,a.rdfs("comment"),c.comment),s.pat.optional.push(d),s.pat.add(c.transaction,i.ns.qu("in_USD"),c.in_USD);var p=i.table(n,{query:s,onDone:function(){var t={},n=r.each(void 0,l("trip"),e);n.forEach((function(e){var n=r.the(e,a.rdf("type"));if(n||(n=i.ns.qu("ErrorNoType")),n&&n.uri){var o=n.uri;t[o]||(t[o]=0);var s=r.any(e,i.ns.qu("in_USD"));s||u(" @@ No amount in USD: "+s+" for "+e),s&&(t[o]=t[o]+parseFloat(s.value))}}));var o="",s=0,c=0;for(var d in t)o+=i.utils.label(r.sym(d))+": "+t[d]+"; ",s++,c+=t[d];u("Totals of "+n.length+" transactions: "+o,""),s>1&&u("Overall net: "+c,"text-treatment: bold;")}});t.appendChild(p)};if(i.ns.qu("Transaction")in r.findSuperClassesNT(e)){for(var f=r.each(void 0,a.rdf("type"),e),h=[],m=[],g=0;g<f.length;g++){var v=f[g],y=r.any(v,l("trip"));if(y){v in m||(m[y]={total:0,transactions:[]});var b=r.any(v,i.ns.qu("in_USD"));b&&(m[y].total+=b);var w=r.any(v,i.ns.qu("date"));m[y.toNT()].transactions.push([w,v])}else h.push(v)}var x=[];for(var E in m){var _=r.fromNT(E);x.push([r.any(_,s("dtstart")),_])}x.sort();for(var k=0;k<x.length;k++)p(x[k][1],c)}else d["http://www.w3.org/ns/pim/trip#Trip"]&&p(e,c);return c}}},3532:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(22931),i=n(62361),o=n(84768);t.default=function(e,t,n){e??={},n??=0;let a=(0,i.default)({...e,_v6:!0},new Uint8Array(16));if(a=(0,o.default)(a),t){for(let e=0;e<16;e++)t[n+e]=a[e];return t}return(0,r.unsafeStringify)(a)}},3672:(e,t,n)=>{"use strict";var r=n(73738);Object.defineProperty(t,"__esModule",{value:!0}),t.newThingUI=function(e,t,n){var r=e.dom,i=e.div;if(e.me&&!e.me.uri)throw new Error("newThingUI: Invalid userid: "+e.me);var d="padding: 0.7em; width: 2em; height: 2em;",p=i.appendChild(r.createElement("img")),h=!1;p.setAttribute("src",a.icons.iconBase+"noun_34653_green.svg"),p.setAttribute("style",d),p.setAttribute("title","Add another tool");var m=function(e){var t=i.appendChild(r.createElement("pre"));t.setAttribute("style","background-color: pink"),t.appendChild(r.createTextNode(e))};function g(e){for(var t=0;t<y.length;t++){var n=d+e;y[t].disabled&&(n+="opacity: 0.3;"),y[t].setAttribute("style",n)}}function v(e){h=!h,p.setAttribute("style",d+(h?"background-color: yellow;":"")),g(h?"":"display: none;")}p.addEventListener("click",v);var y=[],b=Object.values(n).filter((function(e){return e.mintNew})),w=b.reduce((function(e,t){return t.mintClass&&(e[t.mintClass.uri]=(e[t.mintClass.uri]||0)+1),e}),{});b.forEach((function(n){var i=e.div.appendChild(r.createElement("img"));i.setAttribute("src",n.icon);var a=n.mintClass?w[n.mintClass.uri]>1?"".concat(c.label(n.mintClass)," (using ").concat(n.name," pane)"):c.label(n.mintClass):n.name+" @@";i.setAttribute("title","Make new "+a),i.setAttribute("style",d+"display: none;"),y.push(i),i.disabled||i.addEventListener("click",(function(p){var h;!function(e){g("display: none;"),e.setAttribute("style",d+"background-color: yellow;")}(i),h={event:p,folder:e.folder||null,iconEle:i,pane:n,noun:a,noIndexHTML:!0,div:e.div,me:e.me,dom:e.dom,refreshTarget:e.refreshTarget},new Promise((function(n,i){var a;function d(n,a){(0,s.ensureLoadedProfile)(e).then((function(e){var s=Object.assign({newBase:a,folder:h.folder||void 0,workspace:n},h);for(var c in h)s[c]=h[c];o.log("newThingUI: Minting new ".concat(s.pane.name," at ").concat(s.newBase)),h.pane.mintNew(t,s).then((function(e){if(!e||!e.newInstance)throw new Error("Cannot mint new - missing newInstance");if(e.folder){var t=e.newInstance.uri.slice(e.folder.uri.length).includes("/");o.log(" new thing is packge? "+t),t?f.add(e.folder,l.ldp("contains"),f.sym(e.newBase),e.folder.doc()):f.add(e.folder,l.ldp("contains"),e.newInstance,e.folder.doc()),e.refreshTarget&&e.refreshTarget.refresh&&e.refreshTarget.refresh()}else{var n=h.div.appendChild(r.createElement("p"));n.setAttribute("style","font-size: 120%;"),n.innerHTML="Your <a target='_blank' href='"+e.newInstance.uri+"'><b>new "+h.noun+"</b></a> is ready to be set up. <br/><br/><a target='_blank' href='"+e.newInstance.uri+"'>Go to your new "+h.noun+".</a>"}v()})).catch((function(e){m(e),i(e)}))}),(function(e){m("Error logging on: "+e)}))}var p=h.pane;h.noun=p.mintClass?c.label(p.mintClass):p.name,h.appPathSegment=h.noun.slice(0,1).toUpperCase()+h.noun.slice(1),h.folder?u.askName(r,f,h.div,l.foaf("name"),null,h.noun).then((function(e){if(e){var t=h.folder.uri;t.endsWith("/")||(t+="/"),d(null,t=t+encodeURIComponent(e)+"/")}else v()})):(a=(0,s.selectWorkspace)(r,{noun:h.noun,appPathSegment:h.appPathSegment},d),h.div.appendChild(a))}))}))}))};var i=n(23451),o=p(n(82902)),a=n(4901),s=n(47822),l=p(n(62054)),c=p(n(37499)),u=p(n(81939));function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}function p(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var i={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(i,a,s):i[a]=e[a]}return i.default=e,n&&n.set(e,i),i}var f=i.solidLogicSingleton.store},4e3:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.AttributionTag=void 0;var i=n(96540),o=n(32290);t.AttributionTag=function(e){var t=e.to;return(0,o.isLinkAttribution)(t)?i.createElement("a",{href:t.uri},t.uri):(0,o.isPersonAttribution)(t)?i.createElement(a,r({},t)):null};var a=function(e){var t=e.webId,n=e.name,r=e.imageSrc;return i.createElement(i.Fragment,null,r&&i.createElement("img",{height:"47",width:"47",alt:n,src:r}),i.createElement("a",{href:t},n))}},4146:(e,t,n)=>{"use strict";var r=n(73404),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var i=f(n);i&&i!==h&&e(t,i,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<a.length;++g){var v=a[g];if(!(o[v]||r&&r[v]||m&&m[v]||s&&s[v])){var y=p(n,v);try{c(t,v,y)}catch(e){}}}}return t}},4495:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(e,t)=>{if(e.startsWith("RS")||e.startsWith("PS")){const{modulusLength:n}=t.algorithm;if("number"!=typeof n||n<2048)throw new TypeError(`${e} requires key modulusLength to be 2048 bits or larger`)}}},4633:(e,t,n)=>{var r=n(73738).default;function i(){"use strict";e.exports=i=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var t,n={},o=Object.prototype,a=o.hasOwnProperty,s=Object.defineProperty||function(e,t,n){e[t]=n.value},l="function"==typeof Symbol?Symbol:{},c=l.iterator||"@@iterator",u=l.asyncIterator||"@@asyncIterator",d=l.toStringTag||"@@toStringTag";function p(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{p({},"")}catch(t){p=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var i=t&&t.prototype instanceof w?t:w,o=Object.create(i.prototype),a=new F(r||[]);return s(o,"_invoke",{value:P(e,n,a)}),o}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=f;var m="suspendedStart",g="suspendedYield",v="executing",y="completed",b={};function w(){}function x(){}function E(){}var _={};p(_,c,(function(){return this}));var k=Object.getPrototypeOf,C=k&&k(k(L([])));C&&C!==o&&a.call(C,c)&&(_=C);var S=E.prototype=w.prototype=Object.create(_);function A(e){["next","throw","return"].forEach((function(t){p(e,t,(function(e){return this._invoke(t,e)}))}))}function T(e,t){function n(i,o,s,l){var c=h(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==r(d)&&a.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,l)}),(function(e){n("throw",e,s,l)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return n("throw",e,s,l)}))}l(c.arg)}var i;s(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}})}function P(e,n,r){var i=m;return function(o,a){if(i===v)throw Error("Generator is already running");if(i===y){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var l=O(s,r);if(l){if(l===b)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===m)throw i=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=v;var c=h(e,n,r);if("normal"===c.type){if(i=r.done?y:g,c.arg===b)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=y,r.method="throw",r.arg=c.arg)}}}function O(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),b;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,b;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,b):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,b)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function L(e){if(e||""===e){var n=e[c];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(a.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(r(e)+" is not iterable")}return x.prototype=E,s(S,"constructor",{value:E,configurable:!0}),s(E,"constructor",{value:x,configurable:!0}),x.displayName=p(E,d,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===x||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,p(e,d,"GeneratorFunction")),e.prototype=Object.create(S),e},n.awrap=function(e){return{__await:e}},A(T.prototype),p(T.prototype,u,(function(){return this})),n.AsyncIterator=T,n.async=function(e,t,r,i,o){void 0===o&&(o=Promise);var a=new T(f(e,t,r,i),o);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},A(S),p(S,d,"Generator"),p(S,c,(function(){return this})),p(S,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=L,F.prototype={constructor:F,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(N),!e)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=a.call(o,"catchLoc"),c=a.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),N(n),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;N(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:L(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),b}},n}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},4799:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},a=this&&this.__await||function(e){return this instanceof a?(this.v=e,this):new a(e)},s=this&&this.__asyncGenerator||function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",(function(e){return function(t){return Promise.resolve(t).then(e,u)}})),r[Symbol.asyncIterator]=function(){return this},r;function s(e,t){i[e]&&(r[e]=function(t){return new Promise((function(n,r){o.push([e,t,n,r])>1||l(e,t)}))},t&&(r[e]=t(r[e])))}function l(e,t){try{(n=i[e](t)).value instanceof a?Promise.resolve(n.value.v).then(c,u):d(o[0][2],n)}catch(e){d(o[0][3],e)}var n}function c(e){l("next",e)}function u(e){l("throw",e)}function d(e,t){e(t),o.shift(),o.length&&l(o[0][0],o[0][1])}};Object.defineProperty(t,"__esModule",{value:!0}),t.ChatWithMe=void 0;var l,c=n(36752),u=n(92361),d=n(764),p=n(21363);t.ChatWithMe=function(e,t){var n=t.session.logic,f=t.session.paneRegistry.byName("long chat");return(0,c.html)(l||(l=r([" "," "],[" "," "])),(0,d.asyncReplace)(function(){return s(this,arguments,(function(){var r,s,l,c=this;return o(this,(function(d){switch(d.label){case 0:r=t.dom.createElement("div"),d.label=1;case 1:return d.trys.push([1,5,,6]),[4,a(p.loadingMessage)];case 2:return[4,d.sent()];case 3:return d.sent(),[4,a(n.chat.getChat(e,!1))];case 4:return s=d.sent(),[3,6];case 5:return d.sent(),s=!1,[3,6];case 6:return s?(r.appendChild(f.render(s,t,{})),[4,a(r)]):[3,9];case 7:return[4,d.sent()];case 8:return d.sent(),[3,12];case 9:return l=u.widgets.button(t.dom,void 0,p.chatWithMeButtonText,(function(){return i(c,void 0,void 0,(function(){var i,a;return o(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,n.chat.getChat(e,!0)];case 1:return i=o.sent(),r.innerHTML="",r.appendChild(f.render(i,t,{})),[3,3];case 2:return a=o.sent(),r.appendChild(u.widgets.errorMessageBlock(t.dom,a.message)),[3,3];case 3:return[2]}}))}))}),{needsBorder:!0}),r.appendChild(l),[4,a(r)];case 10:return[4,d.sent()];case 11:d.sent(),d.label=12;case 12:return[2]}}))}))}()))}},4901:(e,t,n)=>{"use strict";e=n.nmd(e),Object.defineProperty(t,"__esModule",{value:!0}),t.originalIconBase=t.icons=t.iconBase=void 0;var r=n(82902),i="https://solidos.github.io/solid-ui/src",o=t.icons=e.scriptURI?{iconBase:e.scriptURI.slice(0,e.scriptURI.lastIndexOf("/"))+"/icons/",originalIconBase:e.scriptURI.slice(0,e.scriptURI.lastIndexOf("/"))+"/originalIcons/"}:"undefined"!=typeof $SolidTestEnvironment&&$SolidTestEnvironment.iconBase?{iconBase:$SolidTestEnvironment.iconBase,originalIconBase:$SolidTestEnvironment.originalIconBase}:{iconBase:i+"/icons/",originalIconBase:i+"/originalIcons/"};(0,r.log)(" icons.iconBase is set to : "+o.iconBase),t.iconBase=o.iconBase,t.originalIconBase=o.originalIconBase},4940:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={debug(e){},warn(e){},info(e){},error(e){},success(e){},msg(e){}}},5108:(e,t,n)=>{"use strict";n.r(t),n.d(t,{docpart:()=>o,document:()=>a,hostpart:()=>s,join:()=>l,protocol:()=>c,refTo:()=>u});var r=n(75108),i=i||console.log;function o(e){var t;return(t=e.indexOf("#"))<0?e:e.slice(0,t)}function a(e){return new r.A(o(e))}function s(e){var t=/[^\/]*\/\/([^\/]*)\//.exec(e);return t?t[1]:""}function l(e,t){var n,r,o,a,s,l=t.indexOf("#");if(l>0&&(t=t.slice(0,l)),0===e.length)return t;if(0===e.indexOf("#"))return t+e;if(e.indexOf(":")>=0)return e;if(n=t.indexOf(":"),0===t.length)return e;if(n<0)return i("Invalid base: "+t+" in join with given: "+e),e;if(r=t.slice(0,+n+1||9e9),0===e.indexOf("//"))return r+e;if(t.indexOf("//",n)===n+1){if((o=t.indexOf("/",n+3))<0)return t.length-n-3>0?t+"/"+e:r+e}else if((o=t.indexOf("/",n+1))<0)return t.length-n-1>0?t+"/"+e:r+e;if(0===e.indexOf("/"))return t.slice(0,o)+e;if((a=(s=t.slice(o)).lastIndexOf("/"))<0)return r+e;for(a>=0&&a<s.length-1&&(s=s.slice(0,+a+1||9e9)),s+=e;s.match(/[^\/]*\/\.\.\//);)s=s.replace(/[^\/]*\/\.\.\//,"");return s=(s=s.replace(/\.\//g,"")).replace(/\/\.$/,"/"),t.slice(0,o)+s}function c(e){const t=e.indexOf(":");return t<0?null:e.slice(0,t)}function u(e,t){var n,r,i,o,a,s,l,c,u,d,p,f,h=new RegExp("^[-_a-zA-Z0-9.]+:(//[^/]*)?/[^/]*$");if(!e)return t;if(e===t)return"";for(n=l=0,o=t.length;l<o&&t[n]===e[n];n=++l);if(e.slice(0,n).match(h)&&((r=t.indexOf("//"))<0&&(r=-2),i=t.indexOf("/",r+2),"/"!==t[i+1]&&"/"!==e[i+1]&&t.slice(0,i)===e.slice(0,i)))return t.slice(i);if("#"===t[n]&&e.length===n)return t.slice(n);for(;n>0&&"/"!==t[n-1];)n--;if(n<3)return t;if(e.indexOf("//",n-2)>0||t.indexOf("//",n-2)>0)return t;if(e.indexOf(":",n)>0)return t;for(s=0,c=0,a=(d=e.slice(n)).length;c<a;c++)"/"===d[c]&&s++;if(0===s&&n<t.length&&"#"===t[n])return"./"+t.slice(n);if(0===s&&n===t.length)return"./";if(f="",s>0)for(u=1,p=s;p>=1?u<=p:u>=p;p>=1?++u:--u)f+="../";return f+t.slice(n)}},5148:(e,t,n)=>{"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.style=void 0;var i=r(n(90471)),o=t.style={checkboxStyle:"color: black; font-size: 100%; padding-left: 0.5 em; padding-right: 0.5 em;",checkboxInputStyle:"font-size: 150%; height: 1.2em; width: 1.2em; background-color: #eef; border-radius:0.2em; margin: 0.1em;",fieldLabelStyle:"color: #3B5998; text-decoration: none;",formSelectStyle:"background-color: #eef; padding: 0.5em; border: .05em solid #88c; border-radius:0.2em; font-size: 100%; margin:0.4em;",textInputStyle:"background-color: #eef; padding: 0.5em; border: .05em solid #88c; border-radius:0.2em; font-size: 100%; margin:0.4em;",textInputStyleUneditable:"background-color: white; padding: 0.5em; border: .05em solid white; border-radius:0.2em; font-size: 100%; margin:0.4em;",buttonStyle:"background-color: #fff; padding: 0.7em; border: .01em solid white; border-radius:0.2em; font-size: 100%; margin: 0.3em;",commentStyle:"padding: 0.7em; border: none; font-size: 100%; white-space: pre-wrap;",iconStyle:"width: 3em; height: 3em; margin: 0.1em; border-radius: 1em;",smallButtonStyle:"margin: 0.2em; width: 1em; height:1em;",classIconStyle:"width: 3em; height: 3em; margin: 0.1em; border-radius: 0.2em; border: 0.1em solid green; padding: 0.2em; background-color: #efe;",confirmPopupStyle:"padding: 0.7em; border-radius: 0.2em; border: 0.1em solid orange; background-color: white; box-shadow: 0.5em 0.9em #888;",messageBodyStyle:"white-space: pre-wrap; width: 99%; font-size:100%; border: 0.07em solid #eee; border-radius:0.2em; padding: .3em 0.5em; margin: 0.1em;",pendingeditModifier:"color: #bbb;",personaBarStyle:"width: 100%; height: 4em; background-color: #eee; vertical-align: middle;",searchInputStyle:"border: 0.1em solid #444; border-radius: 0.2em; width: 100%; font-size: 100%; padding: 0.1em 0.6em; margin 0.2em;",autocompleteRowStyle:"border: 0.2em solid straw;",signInAndUpButtonStyle:"padding: 1em; border-radius:0.2em; font-size: 100%;",headerBannerLoginInput:"margin: 0.75em 0 0.75em 0.5em !important; padding: 0.5em !important;",signUpBackground:"background-color: #eef;",signInBackground:"background-color: #efe;",heading1Style:"font-size: 180%; font-weight: bold; color: #888888; padding: 0.5em; margin: 0.7em 0.0m;",heading2Style:"font-size: 130%; font-weight: bold; color: #888888; padding: 0.4em; margin: 0.7em 0.0em;",heading3Style:"font-size: 120%; font-weight: bold; color: #888888; padding: 0.3em; margin: 0.7em 0.0em;",heading4Style:"font-size: 110%; font-weight: bold; color: #888888; padding: 0.2em; margin: 0.7em 0.0em;",formHeadingStyle:"font-size: 110%; font-weight: bold; color: #888888; padding: 0.2em; margin: 0.7em 0.0em;",formTextInput:"font-size: 100%; margin: 0.1em; padding: 0.1em;",formGroupStyle:["padding-left: 0em; border: 0.0em solid ".concat(i.default.formBorderColor,"; border-radius: 0.2em;"),"padding-left: 2em; border: 0.05em solid ".concat(i.default.formBorderColor,"; border-radius: 0.2em;"),"padding-left: 2em; border: 0.1em solid ".concat(i.default.formBorderColor,"; border-radius: 0.2em;"),"padding-left: 2em; border: 0.2em solid ".concat(i.default.formBorderColor,"; border-radius: 0.2em;")],formFieldLabelStyle:"color: ".concat(i.default.lowProfileLinkColor,"; text-decoration: none;"),formFieldNameBoxStyle:"padding: 0.3em; vertical-align: middle; width:".concat(i.default.formFieldNameBoxWidth,";"),multilineTextInputStyle:"font-size:100%; white-space: pre-wrap; background-color: #eef; border: 0.07em solid gray; padding: 1em 0.5em; margin: 1em 1em;",renderAsDivStyle:"display: flex; align-items: center; justify-content: space-between; height: 2.5em; padding: 1em;",imageDivStyle:"width:2.5em; padding:0.5em; height: 2.5em;",linkDivStyle:"width:2em; padding:0.5em; height: 4em;",aclControlBoxContainer:"margin: 1em;",aclControlBoxHeader:"font-size: 120%; margin: 0 0 1rem;",aclControlBoxStatus:"display: none; margin: 1rem 0;",aclControlBoxStatusRevealed:"display: block;",aclGroupContent:"maxWidth: 650;",accessGroupList:"display: grid; grid-template-columns: 1fr; margin: 1em; width: 100%;",accessGroupListItem:"display: grid; grid-template-columns: 100px auto 30%;",defaultsController:"display: flex;",defaultsControllerNotice:"color: #888; flexGrow: 1; fontSize: 80%;",bigButton:"background-color: white; border: 0.1em solid #888; border-radius: 0.3em; max-width: 50%; padding-bottom: 1em; padding-top: 1em;",group:"color: #888;",group1:"color: green;",group2:"color: #cc0;",group3:"color: orange;",group5:"color: red;",group9:"color: blue;",group13:"color: purple;",trustedAppAddApplicationsTable:"background-color: #eee;",trustedAppCancelButton:"float: right;",trustedAppControllerI:"border-color: orange; border-radius: 1em; border-width: 0.1em;",temporaryStatusInit:"background: green;",temporaryStatusEnd:"background: transparent; transition: background 5s linear;",headerUserMenuLink:"background: none; border: 0; color: black; cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: 1em; width: 100%; text-decoration: none;",headerUserMenuLinkHover:"background: none; border: 0; color: black; cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: 1em; width: 100%; text-decoration: none; background-image: linear-gradient(to right, #7C4DFF 0%, #18A9E6 50%, #01C9EA 100%);",headerUserMenuTrigger:"background: none; border: 0; cursor: pointer; width: 60px; height: 60px;",headerUserMenuTriggerImg:"border-radius: 50%; height: 56px; width: 28px !important;",headerUserMenuButton:"background: none; border: 0; color: black; cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: 1em; width: 100%;",headerUserMenuButtonHover:"background: none; border: 0; color: black; cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: 1em; width: 100%; background-image: linear-gradient(to right, #7C4DFF 0%, #18A9E6 50%, #01C9EA 100%);",headerUserMenuList:"list-style: none; margin: 0; padding: 0;",headerUserMenuListDisplay:"list-style: none; margin: 0; padding: 0; display:true;",headerUserMenuNavigationMenu:"background: white; border: solid 1px #000000; border-right: 0; position: absolute; right: 0; top: 60px; width: 200px; z-index: 1; display: true;",headerUserMenuNavigationMenuNotDisplayed:"background: white; border: solid 1px #000000; border-right: 0; position: absolute; right: 0; top: 60px; width: 200px; z-index: 1; display: none;",headerUserMenuListItem:"border-bottom: solid 1px #000000;",headerUserMenuPhoto:"border-radius: 50%; background-position: center; background-repeat: no-repeat; background-size: cover; height: 50px; width: 50px;",headerBanner:"box-shadow: 0px 1px 4px #000000; display: flex; justify-content: space-between; padding: 0 1.5em; margin-bottom: 4px;",headerBannerLink:"display: block;",headerBannerRightMenu:"display: flex;",headerBannerLogin:"margin-left: auto;",allChildrenVisible:"display:true;",headerBannerUserMenu:"border-left: solid 1px #000000; margin-left: auto;",headerBannerHelpMenu:"border-left: solid 1px #000000; margin-left: auto;",headerBannerIcon:"background-size: 65px 60px !important; height: 60px !important; width: 65px !important;",footer:"border-top: solid 1px $divider-color; font-size: 0.9em; padding: 0.5em 1.5em;",primaryButton:"background-color: #7c4dff; color: #ffffff; font-family: Raleway, Roboto, sans-serif; border-radius: 0.25em; border-color: #7c4dff; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none;",primaryButtonHover:"background-color: #9f7dff; color: #ffffff; font-family: Raleway, Roboto, sans-serif;border-radius: 0.25em; border-color: #7c4dff; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none; transition: 0.25s all ease-in-out;",primaryButtonNoBorder:"background-color: #ffffff; color: #7c4dff; font-family: Raleway