solid-ui 3.0.6 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +128 -2
- package/dist/acl/access-groups.js +1 -1
- package/dist/components/footer/index.d.ts +1 -0
- package/dist/components/footer/index.esm.js +24364 -0
- package/dist/components/footer/index.esm.js.map +1 -0
- package/dist/components/footer/index.esm.min.js +137 -0
- package/dist/components/footer/index.esm.min.js.map +1 -0
- package/dist/components/footer/index.js +23252 -0
- package/dist/components/footer/index.js.map +1 -0
- package/dist/components/footer/index.min.js +125 -0
- package/dist/components/footer/index.min.js.map +1 -0
- package/dist/components/header/index.d.ts +1 -0
- package/dist/components/header/index.esm.js +1894 -0
- package/dist/components/header/index.esm.js.map +1 -0
- package/dist/components/header/index.esm.min.js +1083 -0
- package/dist/components/header/index.esm.min.js.map +1 -0
- package/dist/components/header/index.js +1855 -0
- package/dist/components/header/index.js.map +1 -0
- package/dist/components/header/index.min.js +1084 -0
- package/dist/components/header/index.min.js.map +1 -0
- package/dist/components/loginButton/index.d.ts +1 -0
- package/dist/components/loginButton/index.esm.js +719 -0
- package/dist/components/loginButton/index.esm.js.map +1 -0
- package/dist/components/loginButton/index.esm.min.js +402 -0
- package/dist/components/loginButton/index.esm.min.js.map +1 -0
- package/dist/components/loginButton/index.js +701 -0
- package/dist/components/loginButton/index.js.map +1 -0
- package/dist/components/loginButton/index.min.js +402 -0
- package/dist/components/loginButton/index.min.js.map +1 -0
- package/dist/components/signupButton/index.d.ts +1 -0
- package/dist/components/signupButton/index.esm.js +270 -0
- package/dist/components/signupButton/index.esm.js.map +1 -0
- package/dist/components/signupButton/index.esm.min.js +82 -0
- package/dist/components/signupButton/index.esm.min.js.map +1 -0
- package/dist/components/signupButton/index.js +264 -0
- package/dist/components/signupButton/index.js.map +1 -0
- package/dist/components/signupButton/index.min.js +82 -0
- package/dist/components/signupButton/index.min.js.map +1 -0
- package/dist/footer/index.d.ts.map +1 -1
- package/dist/footer/index.js +8 -4
- package/dist/footer/index.js.map +1 -1
- package/dist/icons/v2/icons-svg/contactIcons.d.ts +3 -0
- package/dist/icons/v2/icons-svg/contactIcons.d.ts.map +1 -0
- package/dist/icons/v2/icons-svg/contactIcons.js +27 -0
- package/dist/icons/v2/icons-svg/contactIcons.js.map +1 -0
- package/dist/icons/v2/icons-svg/headerIcons.d.ts +18 -0
- package/dist/icons/v2/icons-svg/headerIcons.d.ts.map +1 -0
- package/dist/icons/v2/icons-svg/headerIcons.js +245 -0
- package/dist/icons/v2/icons-svg/headerIcons.js.map +1 -0
- package/dist/icons/v2/icons-svg/pngIcons.d.ts +3 -0
- package/dist/icons/v2/icons-svg/pngIcons.d.ts.map +1 -0
- package/dist/icons/v2/icons-svg/pngIcons.js +4 -0
- package/dist/icons/v2/icons-svg/pngIcons.js.map +1 -0
- package/dist/icons/v2/icons-svg/profileIcons.d.ts +23 -0
- package/dist/icons/v2/icons-svg/profileIcons.d.ts.map +1 -0
- package/dist/icons/v2/icons-svg/profileIcons.js +317 -0
- package/dist/icons/v2/icons-svg/profileIcons.js.map +1 -0
- package/dist/pad.d.ts.map +1 -1
- package/dist/pad.js +13 -13
- package/dist/pad.js.map +1 -1
- package/dist/solid-ui.esm.js +9560 -12181
- package/dist/solid-ui.esm.js.map +1 -1
- package/dist/solid-ui.esm.min.js +15 -14
- package/dist/solid-ui.esm.min.js.map +1 -1
- package/dist/solid-ui.js +12531 -14794
- package/dist/solid-ui.js.map +1 -1
- package/dist/solid-ui.min.js +23 -22
- package/dist/solid-ui.min.js.map +1 -1
- package/dist/utils/headerFooterHelpers.d.ts.map +1 -1
- package/dist/utils/headerFooterHelpers.js +11 -2
- package/dist/utils/headerFooterHelpers.js.map +1 -1
- package/dist/v2/components/footer/Footer.d.ts +60 -0
- package/dist/v2/components/footer/Footer.d.ts.map +1 -0
- package/dist/v2/components/footer/Footer.js +148 -0
- package/dist/v2/components/footer/Footer.js.map +1 -0
- package/dist/v2/components/footer/Footer.test.d.ts +2 -0
- package/dist/v2/components/footer/Footer.test.d.ts.map +1 -0
- package/dist/v2/components/footer/Footer.test.js +53 -0
- package/dist/v2/components/footer/Footer.test.js.map +1 -0
- package/dist/v2/components/footer/index.d.ts +3 -0
- package/dist/v2/components/footer/index.d.ts.map +1 -0
- package/dist/v2/components/footer/index.js +7 -0
- package/dist/v2/components/footer/index.js.map +1 -0
- package/dist/v2/components/header/Header.d.ts +155 -0
- package/dist/v2/components/header/Header.d.ts.map +1 -0
- package/dist/v2/components/header/Header.js +845 -0
- package/dist/v2/components/header/Header.js.map +1 -0
- package/dist/v2/components/header/header.test.d.ts +2 -0
- package/dist/v2/components/header/header.test.d.ts.map +1 -0
- package/dist/v2/components/header/header.test.js +242 -0
- package/dist/v2/components/header/header.test.js.map +1 -0
- package/dist/v2/components/header/index.d.ts +4 -0
- package/dist/v2/components/header/index.d.ts.map +1 -0
- package/dist/v2/components/header/index.js +7 -0
- package/dist/v2/components/header/index.js.map +1 -0
- package/dist/v2/components/loginButton/LoginButton.d.ts +62 -0
- package/dist/v2/components/loginButton/LoginButton.d.ts.map +1 -0
- package/dist/v2/components/loginButton/LoginButton.js +497 -0
- package/dist/v2/components/loginButton/LoginButton.js.map +1 -0
- package/dist/v2/components/loginButton/LoginButton.test.d.ts +2 -0
- package/dist/v2/components/loginButton/LoginButton.test.d.ts.map +1 -0
- package/dist/v2/components/loginButton/LoginButton.test.js +53 -0
- package/dist/v2/components/loginButton/LoginButton.test.js.map +1 -0
- package/dist/v2/components/loginButton/downArrow.d.ts +2 -0
- package/dist/v2/components/loginButton/downArrow.d.ts.map +1 -0
- package/dist/v2/components/loginButton/downArrow.js +10 -0
- package/dist/v2/components/loginButton/downArrow.js.map +1 -0
- package/dist/v2/components/loginButton/index.d.ts +3 -0
- package/dist/v2/components/loginButton/index.d.ts.map +1 -0
- package/dist/v2/components/loginButton/index.js +7 -0
- package/dist/v2/components/loginButton/index.js.map +1 -0
- package/dist/v2/components/signupButton/SignupButton.d.ts +36 -0
- package/dist/v2/components/signupButton/SignupButton.d.ts.map +1 -0
- package/dist/v2/components/signupButton/SignupButton.js +84 -0
- package/dist/v2/components/signupButton/SignupButton.js.map +1 -0
- package/dist/v2/components/signupButton/SignupButton.test.d.ts +2 -0
- package/dist/v2/components/signupButton/SignupButton.test.d.ts.map +1 -0
- package/dist/v2/components/signupButton/SignupButton.test.js +49 -0
- package/dist/v2/components/signupButton/SignupButton.test.js.map +1 -0
- package/dist/v2/components/signupButton/index.d.ts +3 -0
- package/dist/v2/components/signupButton/index.d.ts.map +1 -0
- package/dist/v2/components/signupButton/index.js +7 -0
- package/dist/v2/components/signupButton/index.js.map +1 -0
- package/dist/versionInfo.js +7 -7
- package/dist/widgets/buttons.d.ts +9 -3
- package/dist/widgets/buttons.d.ts.map +1 -1
- package/dist/widgets/buttons.js +68 -7
- package/dist/widgets/buttons.js.map +1 -1
- package/package.json +34 -7
package/dist/solid-ui.esm.min.js
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
import*as e from"rdflib";import*as t from"solid-logic";var n={6466(e,t,n){n.d(t,{v:()=>h});var a=n(467),i=n(3029),r=n(2901),o=n(4756),s=n.n(o),c=n(5619),l=n(4961),u=n(1214),p=n(7367),d=n(9612),m=n(7423),f=n(675),h=function(){return(0,r.A)(function e(t,n,a,r,o,s,l,p,d,m,h,v){if((0,i.A)(this,e),this.subject=t,this.noun=n,this.context=a,this.statusElement=r,this.targetIsProtected=o,this.targetDoc=s,this.targetACLDoc=l,this.defaultHolder=p,this.defaultACLDoc=d,this.prospectiveDefaultHolder=m,this.store=h,this.dom=v,this.rootElement=v.createElement("div"),this.rootElement.setAttribute("style",f.i.aclGroupContent),this.isContainer="/"===s.uri.slice(-1),p&&d){this.isUsingDefaults=!0;var x=(0,c._E)(this.targetDoc,l,p,d);this.mainCombo=new u.h(s,l,this,x,{defaults:this.isContainer}),this.defaultsCombo=null,this.defaultsDiffer=!1}else this.isUsingDefaults=!1,this.mainCombo=new u.h(s,l,this,h),this.defaultsCombo=new u.h(s,l,this,h,{defaults:this.isContainer}),this.defaultsDiffer=!(0,c.P3)(this.mainCombo.aclMap,this.defaultsCombo.aclMap)},[{key:"isEditable",get:function(){return!this.isUsingDefaults}},{key:"render",value:function(){if(this.rootElement.innerHTML="",this.isUsingDefaults){if(this.renderStatus("The sharing for this ".concat(this.noun," is the default for folder ")),this.defaultHolder){var e=this.statusElement.appendChild(this.dom.createElement("a"));e.href=this.defaultHolder.uri,e.innerText=(0,p.DR)(this.defaultHolder)}}else!this.defaultsDiffer&&this.isContainer?this.renderStatus("This is also the default for things in this folder."):this.renderStatus("");return this.rootElement.appendChild(this.mainCombo.render()),this.defaultsCombo&&this.defaultsDiffer?(this.rootElement.appendChild(this.renderRemoveDefaultsController()),this.rootElement.appendChild(this.defaultsCombo.render())):this.isEditable&&this.isContainer&&this.rootElement.appendChild(this.renderAddDefaultsController()),!this.targetIsProtected&&this.isUsingDefaults?this.rootElement.appendChild(this.renderAddAclsController()):this.targetIsProtected||this.rootElement.appendChild(this.renderRemoveAclsController()),this.rootElement}},{key:"renderRemoveAclsController",value:function(){var e=this,t=this.dom.createElement("button");return t.innerText="Remove custom sharing settings for this ".concat(this.noun," -- just use default").concat(this.prospectiveDefaultHolder?" for ".concat(d.P(this.prospectiveDefaultHolder)):""),t.setAttribute("style",f.i.bigButton),t.addEventListener("click",function(){return e.removeAcls().then(function(){return e.render()}).catch(function(t){return e.renderStatus(t)})}),t}},{key:"renderAddAclsController",value:function(){var e=this,t=this.dom.createElement("button");return t.innerText="Set specific sharing for this ".concat(this.noun),t.setAttribute("style",f.i.bigButton),t.addEventListener("click",function(){return e.addAcls().then(function(){return e.render()}).catch(function(t){return e.renderStatus(t)})}),t}},{key:"renderAddDefaultsController",value:function(){var e=this,t=this.dom.createElement("div");t.setAttribute("style",f.i.defaultsController);var n=t.appendChild(this.dom.createElement("div"));n.innerText="Sharing for things within the folder currently tracks sharing for the folder.",n.setAttribute("style",f.i.defaultsControllerNotice);var a=t.appendChild(this.dom.createElement("button"));return a.innerText="Set the sharing of folder contents separately from the sharing for the folder",a.setAttribute("style",f.i.bigButton),a.addEventListener("click",function(){return e.addDefaults().then(function(){return e.render()})}),t}},{key:"renderRemoveDefaultsController",value:function(){var e=this,t=this.dom.createElement("div");t.setAttribute("style",f.i.defaultsController);var n=t.appendChild(this.dom.createElement("div"));n.innerText="Access to things within this folder:",n.setAttribute("style",f.i.defaultsControllerNotice);var a=t.appendChild(this.dom.createElement("button"));return a.innerText="Set default for folder contents to just track the sharing for the folder",a.setAttribute("style",f.i.bigButton),a.addEventListener("click",function(){return e.removeDefaults().then(function(){return e.render()}).catch(function(t){return e.renderStatus(t)})}),t}},{key:"renderTemporaryStatus",value:function(e){var t=this;this.statusElement.setAttribute("style",f.i.aclControlBoxStatusRevealed),this.statusElement.innerText=e,this.statusElement.setAttribute("style",f.i.temporaryStatusInit),setTimeout(function(){t.statusElement.setAttribute("style",f.i.temporaryStatusEnd)}),setTimeout(function(){t.statusElement.innerText=""},5e3)}},{key:"renderStatus",value:function(e){e||this.statusElement.setAttribute("style",f.i.aclControlBoxStatusRevealed),this.statusElement.innerText=e}},{key:"addAcls",value:(o=(0,a.A)(s().mark(function e(){var t,n,a,i=this;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.defaultHolder&&this.defaultACLDoc){e.next=1;break}return t="Unable to find defaults to copy",m.z3(t),e.abrupt("return",Promise.reject(t));case 1:return(0,c._E)(this.targetDoc,this.targetACLDoc,this.defaultHolder,this.defaultACLDoc).statements.forEach(function(e){return i.store.add(e.subject,e.predicate,e.object,i.targetACLDoc)}),e.prev=2,e.next=3,this.store.fetcher.putBack(this.targetACLDoc);case 3:return this.isUsingDefaults=!1,e.abrupt("return",Promise.resolve());case 4:return e.prev=4,a=e.catch(2),n=" Error writing back access control file! ".concat(a),m.z3(n),e.abrupt("return",Promise.reject(n));case 5:case"end":return e.stop()}},e,this,[[2,4]])})),function(){return o.apply(this,arguments)})},{key:"addDefaults",value:(n=(0,a.A)(s().mark(function e(){return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.defaultsCombo=new u.h(this.targetDoc,this.targetACLDoc,this,this.store,{defaults:!0}),this.defaultsDiffer=!0;case 1:case"end":return e.stop()}},e,this)})),function(){return n.apply(this,arguments)})},{key:"removeAcls",value:(t=(0,a.A)(s().mark(function e(){var t,n,a;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,this.store.fetcher.delete(this.targetACLDoc.uri,{});case 1:return this.isUsingDefaults=!0,e.prev=2,e.next=3,(0,c.L$)(this.targetDoc.uri);case 3:this.prospectiveDefaultHolder=e.sent,e.next=5;break;case 4:e.prev=4,n=e.catch(2),m.R8(n);case 5:e.next=7;break;case 6:return e.prev=6,a=e.catch(0),t="Error deleting access control file: ".concat(this.targetACLDoc,": ").concat(a),m.z3(t),e.abrupt("return",Promise.reject(t));case 7:case"end":return e.stop()}},e,this,[[0,6],[2,4]])})),function(){return t.apply(this,arguments)})},{key:"removeDefaults",value:(e=(0,a.A)(s().mark(function e(){var t,n;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.defaultsCombo,e.prev=1,this.defaultsCombo=null,this.defaultsDiffer=!1,e.next=2,this.save();case 2:e.next=4;break;case 3:return e.prev=3,n=e.catch(1),this.defaultsCombo=t,this.defaultsDiffer=!0,m.z3(n),e.abrupt("return",Promise.reject(n));case 4:case"end":return e.stop()}},e,this,[[1,3]])})),function(){return e.apply(this,arguments)})},{key:"save",value:function(){var e=this,t=(0,l.graph)();this.isContainer?this.defaultsCombo&&this.defaultsDiffer?((0,c.cl)(t,this.targetDoc,this.mainCombo.byCombo,this.targetACLDoc,!0),(0,c.cl)(t,this.targetDoc,this.defaultsCombo.byCombo,this.targetACLDoc,!1,!0)):(0,c.cl)(t,this.targetDoc,this.mainCombo.byCombo,this.targetACLDoc,!0,!0):(0,c.cl)(t,this.targetDoc,this.mainCombo.byCombo,this.targetACLDoc,!0),t.fetcher=(0,l.fetcher)(t,{fetch:this.store.fetcher._fetch});var n=t.updater||new l.UpdateManager(t);return new Promise(function(a,i){n.put(e.targetACLDoc,t.statementsMatching(void 0,void 0,void 0,e.targetACLDoc),"text/turtle",function(n,r,o){if(!r)return i(new Error("ACL file save failed: ".concat(o)));e.store.fetcher.unload(e.targetACLDoc),e.store.add(t.statements),e.store.fetcher.requested[e.targetACLDoc.uri]="done",e.mainCombo.store=e.store,e.defaultsCombo&&(e.defaultsCombo.store=e.store),e.defaultsDiffer=!!e.defaultsCombo&&!(0,c.P3)(e.mainCombo.aclMap,e.defaultsCombo.aclMap),m.Rm("ACL modification: success!"),a()})})}}]);var e,t,n,o}()},1214(e,t,n){n.d(t,{h:()=>w});var a=n(467),i=n(3453),r=n(3029),o=n(2901),s=n(4756),c=n.n(s),l=n(4961),u=n(5619),p=n(386),d=n(3291),m=n(1795),f=n(1928),h=n(7423),v=n(675),x=m.A.acl,b={13:"Owners",9:"Owners (write locked)",5:"Editors",3:"Posters",2:"Submitters",1:"Viewers"},g={13:!0,5:!0,3:!0,2:!0,1:!0},y={13:"can read, write, and control sharing.",9:"can read and control sharing, currently write-locked.",5:"can read and change information",3:"can add new information, and read but not change existing information",2:"can add new information but not read any",1:"can read but not change information"},w=function(){return(0,o.A)(function e(t,n,a,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};(0,r.A)(this,e),this.doc=t,this.aclDoc=n,this.controller=a,this._options=o,this.defaults=this._options.defaults||!1,this._store=i,this.aclMap=(0,u.fg)(t,n,i,this.defaults),this.byCombo=(0,u.xw)(this.aclMap),this.addAgentButton=new f.g(this),this.rootElement=this.controller.dom.createElement("div"),this.rootElement.setAttribute("style",v.i.accessGroupList)},[{key:"store",get:function(){return this._store},set:function(e){this._store=e,this.aclMap=(0,u.fg)(this.doc,this.aclDoc,e,this.defaults),this.byCombo=(0,u.xw)(this.aclMap)}},{key:"render",value:function(){var e=this;return this.rootElement.innerHTML="",this.renderGroups().forEach(function(t){return e.rootElement.appendChild(t)}),this.controller.isEditable&&this.rootElement.appendChild(this.addAgentButton.render()),this.rootElement}},{key:"renderGroups",value:function(){for(var e=[],t=15;t>0;t--){var n=A(t);(this.controller.isEditable&&g[t]||this.byCombo[n])&&e.push(this.renderGroup(t,n))}return e}},{key:"renderGroup",value:function(e,t){var n=this,a=this.controller.dom.createElement("div");return a.setAttribute("style",v.i.accessGroupListItem),p.DK(a,function(e){return n.handleDroppedUris(e,t).then(function(){return n.controller.render()}).catch(function(e){return n.controller.renderStatus(e)})}),this.renderGroupElements(e,t).forEach(function(e){return a.appendChild(e)}),a}},{key:"renderGroupElements",value:function(e,t){var n=this,a=this.controller.dom.createElement("div");if(a.setAttribute("style",v.i.group),this.controller.isEditable)switch(e){case 1:a.setAttribute("style",v.i.group1);break;case 2:a.setAttribute("style",v.i.group2);break;case 3:a.setAttribute("style",v.i.group3);break;case 5:a.setAttribute("style",v.i.group5);break;case 9:a.setAttribute("style",v.i.group9);break;case 13:a.setAttribute("style",v.i.group13);break;default:a.setAttribute("style",v.i.group)}a.innerText=b[e]||function(e){for(var t="",n=["Read","Append","Write","Control"],a=0;a<4;a++)e&1<<a&&(t+=n[a]);return t}(e);var r=this.controller.dom.createElement("div");if(r.setAttribute("style",v.i.group),this.controller.isEditable)switch(e){case 1:r.setAttribute("style",v.i.group1);break;case 2:r.setAttribute("style",v.i.group2);break;case 3:r.setAttribute("style",v.i.group3);break;case 5:r.setAttribute("style",v.i.group5);break;case 9:r.setAttribute("style",v.i.group9);break;case 13:r.setAttribute("style",v.i.group13);break;default:r.setAttribute("style",v.i.group)}var o=r.appendChild(this.controller.dom.createElement("table"));(this.byCombo[t]||[]).map(function(e){var a=(0,i.A)(e,2),r=a[0],s=a[1];return n.renderAgent(o,t,r,s)}).forEach(function(e){return o.appendChild(e)});var s=this.controller.dom.createElement("div");if(s.setAttribute("style",v.i.group),this.controller.isEditable)switch(e){case 1:s.setAttribute("style",v.i.group1);break;case 2:s.setAttribute("style",v.i.group2);break;case 3:s.setAttribute("style",v.i.group3);break;case 5:s.setAttribute("style",v.i.group5);break;case 9:s.setAttribute("style",v.i.group9);break;case 13:s.setAttribute("style",v.i.group13);break;default:s.setAttribute("style",v.i.group)}return s.innerText=y[e]||"Unusual combination",[a,r,s]}},{key:"renderAgent",value:function(e,t,n,a){var i=this,r=d.Cl(this.controller.dom,x(n),(0,l.sym)(a),this.controller.isEditable?{deleteFunction:function(){return i.deleteAgent(t,n,a).then(function(){return e.removeChild(r)}).catch(function(e){return i.controller.renderStatus(e)})}}:{});return r}},{key:"deleteAgent",value:(s=(0,a.A)(c().mark(function e(t,n,a){var r,o;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.byCombo[t]||[],(o=r.find(function(e){var t=(0,i.A)(e,2),r=t[0],o=t[1];return r===n&&o===a}))&&r.splice(r.indexOf(o),1),e.next=1,this.controller.save();case 1:case"end":return e.stop()}},e,this)})),function(e,t,n){return s.apply(this,arguments)})},{key:"addNewURI",value:(n=(0,a.A)(c().mark(function e(t){return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,this.handleDroppedUri(t,A(1));case 1:return e.next=2,this.controller.save();case 2:case"end":return e.stop()}},e,this)})),function(e){return n.apply(this,arguments)})},{key:"handleDroppedUris",value:(t=(0,a.A)(c().mark(function e(t,n){var a,i=this;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,Promise.all(t.map(function(e){return i.handleDroppedUri(e,n)}));case 1:return e.next=2,this.controller.save();case 2:e.next=4;break;case 3:return e.prev=3,a=e.catch(0),e.abrupt("return",Promise.reject(a));case 4:case"end":return e.stop()}},e,this,[[0,3]])})),function(e,n){return t.apply(this,arguments)})},{key:"handleDroppedUri",value:(e=(0,a.A)(c().mark(function e(t,n){var a,i,r,o,s,u,p,d,m,f=arguments;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a=f.length>2&&void 0!==f[2]&&f[2],i=k(t,this.store),r=(0,l.sym)(t),i||a){e.next=5;break}return h.Rm(" Not obvious: looking up dropped thing ".concat(r)),e.prev=1,e.next=2,null===(o=this._store)||void 0===o||null===(o=o.fetcher)||void 0===o?void 0:o.load(r.doc());case 2:e.next=4;break;case 3:return e.prev=3,m=e.catch(1),s="Ignore error looking up dropped thing: ".concat(m),h.z3(s),e.abrupt("return",Promise.reject(new Error(s)));case 4:return e.abrupt("return",this.handleDroppedUri(t,n,!0));case 5:if(i){e.next=6;break}return u=Object.keys(this.store.findTypeURIs(r)),p=u.length>0?"Detected RDF types: ".concat(u.join(", ")):"No RDF type was detected for this URI.",d="Error: Failed to add access target: ".concat(t," is not a recognized ACL target type.")+" Expected one of: vcard:WebID, vcard:Group, foaf:Person, foaf:Agent, solid:AppProvider, solid:AppProviderClass, or recognized ACL classes. Hint: try dropping a WebID profile URI, a vcard:Group URI, or a web app origin."+p,h.z3(d),e.abrupt("return",Promise.reject(new Error(d)));case 6:this.setACLCombo(n,t,i,this.controller.subject);case 7:case"end":return e.stop()}},e,this,[[1,3]])})),function(t,n){return e.apply(this,arguments)})},{key:"setACLCombo",value:function(e,t,n,a){e in this.byCombo||(this.byCombo[e]=[]),this.removeAgentFromCombos(t),this.byCombo[e].push([n.pred,n.obj.uri]),h.Rm("ACL: setting access to ".concat(a," by ").concat(n.pred,": ").concat(n.obj))}},{key:"removeAgentFromCombos",value:function(e){for(var t=0;t<16;t++){var n=this.byCombo[A(t)];if(n)for(var a=0;a<n.length;a++)for(;a<n.length&&n[a][1]===e;)n.splice(a,1)}}}]);var e,t,n,s}();function A(e){for(var t=["Read","Append","Write","Control"],n=[],a=0;a<4;a++)e&1<<a&&n.push("http://www.w3.org/ns/auth/acl#"+t[a]);return n.sort(),n.join("\n")}function k(e,t){var n=(0,l.sym)(e),a=t.findTypeURIs(n);for(var i in a)h.Rm(" drop object type includes: "+i);if(e.startsWith("http")&&3===e.split("/").length)return{pred:"origin",obj:n};if(e.startsWith("http")&&4===e.split("/").length&&e.endsWith("/"))return h.Rm("Assuming final slash on dragged origin URI was unintended!"),{pred:"origin",obj:(0,l.sym)(e.slice(0,-1))};if(m.A.vcard("WebID").uri in a)return{pred:"agent",obj:n};if(m.A.vcard("Group").uri in a)return{pred:"agentGroup",obj:n};if(n.sameTerm(m.A.foaf("Agent"))||n.sameTerm(m.A.acl("AuthenticatedAgent"))||n.sameTerm(m.A.rdf("Resource"))||n.sameTerm(m.A.owl("Thing")))return{pred:"agentClass",obj:n};if(m.A.vcard("Individual").uri in a||m.A.foaf("Person").uri in a||m.A.foaf("Agent").uri in a){var r=t.any(n,m.A.foaf("preferredURI"));return r?{pred:"agent",obj:(0,l.sym)(r)}:{pred:"agent",obj:n}}return m.A.solid("AppProvider").uri in a?{pred:"origin",obj:n}:m.A.solid("AppProviderClass").uri in a?{pred:"originClass",obj:n}:(h.Rm(" Triage fails for "+e),null)}},7367(e,t,n){n.d(t,{DR:()=>x,Fp:()=>f,wR:()=>b});var a=n(467),i=n(4756),r=n.n(i),o=n(1795),s=n(9612),c=n(5619),l=n(6466),u=n(675),p=n(7423),d=window,m=Symbol("prevent double triggering of drop event");function f(e){if((0,p.Rm)("preventBrowserDropEvents called."),void 0!==d){if(d[m])return;d[m]=!0}e.addEventListener("drop",v,!1),e.addEventListener("dragenter",h,!1),e.addEventListener("dragover",h,!1)}function h(e){e.stopPropagation(),e.preventDefault()}function v(e){e.dataTransfer.files.length>0&&(d.confirm("Are you sure you want to drop this file here? (Cancel opens it in a new tab)")||(e.stopPropagation(),e.preventDefault(),(0,p.Rm)("@@@@ document-level DROP suppressed: "+e.dataTransfer.dropEffect)))}function x(e){var t=e.uri;"/"===t.slice(-1)&&(t=t.slice(0,-1));var n=t.lastIndexOf("/");return n>=0&&(t=t.slice(n+1)),t||"/"}function b(e,t,n,a){var i=t.dom,r=e.doc(),o=i.createElement("div");o.setAttribute("style",u.i.aclControlBoxContainer);var c=o.appendChild(i.createElement("h1"));c.textContent="Sharing for ".concat(n," ").concat(s.P(e)),c.setAttribute("style",u.i.aclControlBoxHeader);var l=o.appendChild(i.createElement("div"));l.setAttribute("style",u.i.aclControlBoxStatus);try{(function(e,t,n,a,i,r,o){return g.apply(this,arguments)})(r,a,e,n,t,i,l).then(function(e){return o.appendChild(e.render())})}catch(e){l.innerText=e}return o}function g(){return g=(0,a.A)(r().mark(function e(t,n,i,o,s,u,d){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e,m){return(0,c.VM)(t,function(){var t=(0,a.A)(r().mark(function t(a,f,h,v,x,b){var g,k,C,E,_;return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(E=function(e){return new l.v(i,o,s,d,k,h,v,x,b,e,n,u)},a){t.next=1;break}return t.abrupt("return",m(new Error("Error reading ".concat(f?"":" default ","ACL. status ").concat(h,": ").concat(v))));case 1:if(g=y(h),(k=w(h,v,n)||A(h))||!g){t.next=5;break}return t.prev=2,t.next=3,(0,c.L$)(g);case 3:return C=t.sent,t.abrupt("return",e(E(C)));case 4:t.prev=4,_=t.catch(2),(0,p.R8)(_);case 5:return t.abrupt("return",e(E()));case 6:case"end":return t.stop()}},t,null,[[2,4]])}));return function(e,n,a,i,r,o){return t.apply(this,arguments)}}())}));case 1:case"end":return e.stop()}},e)})),g.apply(this,arguments)}function y(e){var t=e.uri.split("#")[0],n=t.slice(0,-1).lastIndexOf("/"),a=t.indexOf("//");return a>=0&&n<a+2||n<0?null:t.slice(0,n+1)}function w(e,t,n){return n.holds(e,o.A.rdf("type"),o.A.space("Storage"),t)}function A(e){return e.uri===e.site().uri}},5619(e,t,n){n.d(t,{D9:()=>w,H0:()=>C,L$:()=>L,Lu:()=>y,P3:()=>f,Tm:()=>b,Uf:()=>v,VM:()=>j,_7:()=>h,_E:()=>d,cH:()=>A,cl:()=>g,fb:()=>T,fg:()=>m,n1:()=>_,pe:()=>S,pp:()=>E,xo:()=>k,xw:()=>x});var a=n(467),i=n(4756),r=n.n(i),o=n(1795),s=n(3138),c=n(9612),l=n(7423),u=n(4961),p=s.solidLogicSingleton.store;function d(e,t,n,a){var i=o.A.acl,r="/"===e.uri.slice(-1),s=p.each(void 0,i("default"),n,a).concat(p.each(void 0,i("defaultForNew"),n,a)).reduce(function(t,n){return t.concat(p.statementsMatching(n,o.A.rdf("type"),i("Authorization"),a)).concat(p.statementsMatching(n,i("agent"),void 0,a)).concat(p.statementsMatching(n,i("agentClass"),void 0,a)).concat(p.statementsMatching(n,i("agentGroup"),void 0,a)).concat(p.statementsMatching(n,i("origin"),void 0,a)).concat(p.statementsMatching(n,i("originClass"),void 0,a)).concat(p.statementsMatching(n,i("mode"),void 0,a)).concat((0,u.st)(n,i("accessTo"),e,a)).concat(r?(0,u.st)(n,i("default"),e,a):[])},[]),c=(0,u.graph)();return s.forEach(function(e){return c.add(l(e.subject),l(e.predicate),l(e.object),(0,u.sym)(t.uri))}),c;function l(e){var n=a.uri.length;return(0,u.sym)(e.uri.slice(0,n)===a.uri?t.uri+e.uri.slice(n):e.uri)}}function m(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3]?function(t,n){return t.each(void 0,n.acl("default"),e).concat(t.each(void 0,n.acl("defaultForNew"),e))}(n,o.A):n.each(void 0,o.A.acl("accessTo"),e),i=o.A.acl,r={agent:{},agentClass:{},agentGroup:{},origin:{},originClass:{}};return Object.keys(r).forEach(function(e){a.forEach(function(t){n.each(t,i("mode")).forEach(function(a){n.each(t,i(e)).forEach(function(n){r[e][n.uri]=r[e][n.uri]||{},r[e][n.uri][a.uri]=t})})})}),r}function f(e,t){var n=function(e,t){for(var n in{agent:!0,agentClass:!0,agentGroup:!0,origin:!0,originClass:!0})if(e[n])for(var a in e[n])for(var i in e[n][a])if(!t[n][a]||!t[n][a][i])return!1;return!0};return n(e,t)&&n(t,e)}function h(e){for(var t,n,a=e[0],i=function(i){["agent","agentClass","agentGroup","origin","originClass"].forEach(function(r){if((t=e[i])[r])for(n in t[r])for(var o in t[r][n])a[r][n]||(a[r][n]=[]),a[r][n][o]=!0})},r=1;r<e.length;r++)i(r);return a}function v(e,t){var n=[],a=function(e){e.length?j(e.shift().doc(),function(i,r,o,s,c,l){var u=!r;if(!i||!c||!l)return t(i,s);var p=u?m(c,l):m(o,s);n.push(p),a(e.slice(1))}):t(!0,h(n))};a(e)}function x(e){var t={};return["agent","agentClass","agentGroup","origin","originClass"].forEach(function(n){for(var a in e[n]){var i=[];for(var r in e[n][a])i.push(r);i.sort();var o=i.join("\n");t[o]||(t[o]=[]),t[o].push([n,a])}}),t}function b(e,t,n,a){return g(e,t,x(n),a)}function g(e,t,n,a,i,r){var s=o.A.acl;for(var c in n){var l=n[c];if(l.length){var u=c.split("\n"),p=u.map(function(e){return e.split("#")[1]}).join("");r&&!i&&(p+="Default");var d=e.sym(a.uri+"#"+p);e.add(d,o.A.rdf("type"),s("Authorization"),a),i&&e.add(d,s("accessTo"),t,a),r&&e.add(d,s("default"),t,a);for(var m=0;m<u.length;m++)e.add(d,s("mode"),e.sym(u[m]),a);for(var f=0;f<l.length;f++){var h=l[f][0],v=l[f][1];e.add(d,s(h),e.sym(v),a)}}}}function y(e){return w(x(e))}function w(e){var t="";for(var n in e){t+=n.split("\n").map(function(e){return e.split("#")[1][0]}).join("")+":";for(var a=e[n],i=0;i<a.length;i++){var r=a[i][0],s=(0,u.sym)(a[i][1]);t+="agent"===r?"@":"",t+=s.sameTerm(o.A.foaf("Agent"))?"*":c.P(s),i<a.length-1&&(t+=",")}t+=";"}return"{"+t.slice(0,-1)+"}"}function A(e,t,n){var a=(0,u.graph)();return b(a,e,t,n),(0,u.serialize)(n,a,n.uri,"text/turtle")||""}function k(e,t,n,a,i){return C(e,t,x(n),a,i)}function C(e,t,n,a,i){var r,o=(0,u.graph)();g(o,t,n,a,!0),null===(r=e.updater)||void 0===r||r.put(a,o.statementsMatching(void 0,void 0,void 0,a),"text/turtle",function(r,o,s){var c;o?(null===(c=e.fetcher)||void 0===c||c.unload(a),g(e,t,n,a,!0),e.fetcher.requested[a.uri]="done",i(o)):i(o,s)})}function E(e,t,n){var a=p.each(void 0,o.A.vcard("hasMember"),e);a?_(e,a,t,n):(t("This card is in no groups"),n(!0))}function _(e,t,n,a){n=n||l.Rm;var i=e.doc();j(i,function(r,o,s,l,u,d){if(!r||!u||!d)return a(!1,l);var h=o?m(s,l):m(u,d);v(t,function(t,r){if(!t)return a(!1,r);f(r,h)?n("Nice - same ACL. no change "+c.P(e)+" "+i):(n("Group ACLs differ for "+c.P(e)+" "+i),k(p,s,r,l,a))})})}function T(e,t,n){var a=p.any(e,s.ACL_LINK);if(!p.fetcher)throw new Error("Store has no fetcher");a?p.fetcher.webOperation("PUT",a.value,{data:t,contentType:"text/turtle"}).then(function(e){n(e.ok,e.error||"")}):p.fetcher.nowOrWhenFetched(e,void 0,function(a,i){if(!a)return n(a,"Gettting headers for ACL: "+i);var r=p.any(e,s.ACL_LINK);if(r){if(!p.fetcher)throw new Error("Store has no fetcher");p.fetcher.webOperation("PUT",r.value,{data:t,contentType:"text/turtle"}).then(function(e){n(e.ok,e.error||"")})}else n(!1,"No Link rel=ACL header for "+e)})}function j(e,t){S(e,function(n,a,i,r){var s=o.A.acl;if(!n)return t(!1,!1,a,r);var c=function(n){"/"===n.slice(-1)&&(n=n.slice(0,-1));var a=n.lastIndexOf("/");if(n.indexOf("/",n.indexOf("//")+2)>a)return t(!1,!0,404,"Found no ACL resource");n=n.slice(0,a+1);var r=(0,u.sym)(n);S(r,function(a,o,l){if(!a)return t(!1,!0,o,"( No ACL pointer ".concat(n," ").concat(o,")").concat(l));if(403===o)return t(!1,!0,o,"( default ACL file FORBIDDEN. Stop.".concat(n,")"));if(404===o)return c(n);if(200!==o)return t(!1,!0,o,"Error status '".concat(o,"' searching for default for ").concat(r));if(!p.each(void 0,s("default"),p.sym(n),l).concat(p.each(void 0,s("defaultForNew"),p.sym(n),l)).length)return c(n);var u=p.sym(n);return t(!0,!1,e,i,u,l)})};return n?404!==a?403===a?t(!1,!1,a,"(Sharing not available to you)".concat(r)):200!==a?t(!1,!1,a,"Error ".concat(a," accessing Access Control information for ").concat(e,": ").concat(r)):t(!0,!0,e,i):void c(e.uri):t(!1,!1,a,"Error accessing Access Control information for ".concat(e,") ").concat(r))})}function S(e,t){if(!p.fetcher)throw new Error("kb has no fetcher");p.fetcher.nowOrWhenFetched(e,void 0,function(n,a){if(!n)return t(n,"Can't get headers to find ACL for ".concat(e,": ").concat(a));var i=p.any(e,s.ACL_LINK);if(i){if(!p.fetcher)throw new Error("kb has no fetcher");if(p.fetcher.nonexistent[i.value])return t(!0,404,i,"ACL file ".concat(i," does not exist."));p.fetcher.nowOrWhenFetched(i,void 0,function(e,n,a){e?t(!0,200,i):t(!0,a.status,i,"Can't read Access Control File ".concat(i,": ").concat(n))})}else t(!1,900,"No Link rel=ACL header for ".concat(e))})}function L(e){return R.apply(this,arguments)}function R(){return(R=(0,a.A)(r().mark(function e(t){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e,n){return j((0,u.sym)(t),function(a,i,r,o,s){return a?e(i?r:s):n(new Error("Error loading ".concat(t)))})}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}},1928(e,t,n){n.d(t,{g:()=>v});var a=n(467),i=n(3029),r=n(2901),o=n(4467),s=n(4756),c=n.n(s),l=n(7423),u=n(3378),p=n(967),d=n(1795),m=n(9612),f=n(3291),h=n(675),v=function(){return(0,r.A)(function e(t){(0,i.A)(this,e),(0,o.A)(this,"isExpanded",!1),this.groupList=t,this.rootElement=t.controller.dom.createElement("div"),this.barElement=t.controller.dom.createElement("div")},[{key:"render",value:function(){return this.rootElement.innerHTML="",this.rootElement.appendChild(this.renderAddButton()),this.rootElement.appendChild(this.barElement),this.rootElement}},{key:"renderAddButton",value:function(){var e=this;return f.x6(this.groupList.controller.dom,"".concat(u.Pt.iconBase,"noun_34653_green.svg"),"Add ...",function(){e.toggleBar(),e.renderBar()})}},{key:"renderBar",value:function(){this.barElement.innerHTML="",this.isExpanded&&(this.barElement.appendChild(this.renderPersonButton()),this.barElement.appendChild(this.renderGroupButton()),this.barElement.appendChild(this.renderPublicButton()),this.barElement.appendChild(this.renderAuthenticatedAgentButton()),this.barElement.appendChild(this.renderBotButton()),this.barElement.appendChild(this.renderAppsButton()))}},{key:"renderSimplifiedBar",value:function(e){var t=this;Array.from(this.barElement.children).filter(function(t){return t!==e}).forEach(function(e){return t.barElement.removeChild(e)})}},{key:"renderPersonButton",value:function(){var e=this;return f.x6(this.groupList.controller.dom,u.Pt.iconBase+f.p_["vcard:Individual"],"Add Person",function(t){e.renderSimplifiedBar(t.target),e.renderNameForm(d.A.vcard("Individual"),"person").then(function(t){return e.addPerson(t)}).then(function(){return e.renderCleanup()}).catch(function(t){return e.groupList.controller.renderStatus(t)})})}},{key:"renderGroupButton",value:function(){var e=this;return f.x6(this.groupList.controller.dom,u.Pt.iconBase+f.p_["vcard:Group"],"Add Group",function(t){e.renderSimplifiedBar(t.target),e.renderNameForm(d.A.vcard("Group"),"group").then(function(t){return e.addGroup(t)}).then(function(){return e.renderCleanup()}).catch(function(t){return e.groupList.controller.renderStatus(t)})})}},{key:"renderNameForm",value:function(e,t){return f.RG(this.groupList.controller.dom,this.groupList.store,this.barElement,d.A.vcard("URI"),e,t)}},{key:"renderPublicButton",value:function(){var e=this;return f.x6(this.groupList.controller.dom,u.Pt.iconBase+f.p_["foaf:Agent"],"Add Everyone",function(){return e.addAgent(d.A.foaf("Agent").uri).then(function(){return e.groupList.controller.renderTemporaryStatus("Adding the general public to those who can read. Drag the globe to a different level to give them more access.")}).then(function(){return e.renderCleanup()})})}},{key:"renderAuthenticatedAgentButton",value:function(){var e=this;return f.x6(this.groupList.controller.dom,"".concat(u.Pt.iconBase,"noun_99101.svg"),"Anyone logged In",function(){return e.addAgent(d.A.acl("AuthenticatedAgent").uri).then(function(){return e.groupList.controller.renderTemporaryStatus("Adding anyone logged in to those who can read. Drag the ID icon to a different level to give them more access.")}).then(function(){return e.renderCleanup()})})}},{key:"renderBotButton",value:function(){var e=this;return f.x6(this.groupList.controller.dom,u.Pt.iconBase+"noun_Robot_849764.svg","A Software Agent (bot)",function(t){e.renderSimplifiedBar(t.target),e.renderNameForm(d.A.schema("Application"),"bot").then(function(t){return e.addBot(t)}).then(function(){return e.renderCleanup()})})}},{key:"renderAppsButton",value:function(){var e=this;return f.x6(this.groupList.controller.dom,"".concat(u.Pt.iconBase,"noun_15177.svg"),"A Web App (origin)",function(t){e.renderSimplifiedBar(t.target);var n={div:e.barElement,dom:e.groupList.controller.dom},a=e.renderAppsTable(n).catch(function(t){return e.groupList.controller.renderStatus(t)});e.renderAppsView();var i=e.renderNameForm(d.A.schema("WebApplication"),"webapp domain").then(function(t){return e.getOriginFromName(t)});Promise.race([a,i]).then(function(t){t&&e.groupList.addNewURI(t)}).then(function(){return e.renderCleanup()})})}},{key:"renderAppsView",value:function(){var e=this,t=this.groupList.controller.context.session.paneRegistry.byName("trustedApplications");if(t){var n=t.render(null,this.groupList.controller.context);n.setAttribute("style",h.i.trustedAppController);var a=f.x7(this.groupList.controller.dom,function(){return e.renderCleanup()});a.setAttribute("style",h.i.trustedAppCancelButton),n.insertBefore(a,n.firstChild),this.barElement.appendChild(n)}}},{key:"renderAppsTable",value:(x=(0,a.A)(c().mark(function e(t){var n,a,i=this;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,p.ensureLoadedProfile)(t);case 1:return n=this.groupList.store.each(t.me,d.A.acl("trustedApp")),a=n.flatMap(function(e){return i.groupList.store.each(e,d.A.acl("origin"))}),this.barElement.appendChild(this.groupList.controller.dom.createElement("p")).textContent="You have ".concat(a.length," selected web apps."),e.abrupt("return",new Promise(function(e,t){var a=i.barElement.appendChild(i.groupList.controller.dom.createElement("table"));a.setAttribute("style",h.i.trustedAppAddApplicationsTable),n.forEach(function(n){var r=i.groupList.store.any(n,d.A.acl("origin"));r||t(new Error("Unable to pick app: ".concat(n.value)));var o=f.Cl(i.groupList.controller.dom,d.A.acl("origin"),r,{}),s=i.groupList.controller.dom.createElement("table"),c=s.appendChild(i.groupList.controller.dom.createElement("tr"));c.appendChild(i.groupList.controller.dom.createElement("td")).appendChild(o),c.appendChild(i.groupList.controller.dom.createElement("td")).textContent="Give access to ".concat(i.groupList.controller.noun," ").concat(m.P(i.groupList.controller.subject),"?"),c.appendChild(i.groupList.controller.dom.createElement("td")).appendChild(f.kz(i.groupList.controller.dom,function(){return e(r.value)})),a.appendChild(s)})}));case 2:case"end":return e.stop()}},e,this)})),function(e){return x.apply(this,arguments)})},{key:"renderCleanup",value:function(){this.renderBar(),this.groupList.render()}},{key:"addPerson",value:(v=(0,a.A)(c().mark(function e(t){var n;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=1;break}return e.abrupt("return",this.toggleBar());case 1:if(n=/^https?:/i,t.match(n)){e.next=2;break}return e.abrupt("return",Promise.reject(new Error("Not a http URI")));case 2:return l.Rm("Adding to ACL person: ".concat(t)),e.next=3,this.groupList.addNewURI(t);case 3:this.toggleBar();case 4:case"end":return e.stop()}},e,this)})),function(e){return v.apply(this,arguments)})},{key:"addGroup",value:(s=(0,a.A)(c().mark(function e(t){var n;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=1;break}return e.abrupt("return",this.toggleBar());case 1:if(n=/^https?:/i,t.match(n)){e.next=2;break}return e.abrupt("return",Promise.reject(new Error("Not a http URI")));case 2:return l.Rm("Adding to ACL group: "+t),e.next=3,this.groupList.addNewURI(t);case 3:this.toggleBar();case 4:case"end":return e.stop()}},e,this)})),function(e){return s.apply(this,arguments)})},{key:"addAgent",value:(n=(0,a.A)(c().mark(function e(t){return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,this.groupList.addNewURI(t);case 1:this.toggleBar();case 2:case"end":return e.stop()}},e,this)})),function(e){return n.apply(this,arguments)})},{key:"addBot",value:(t=(0,a.A)(c().mark(function e(t){var n;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=1;break}return e.abrupt("return",this.toggleBar());case 1:if(n=/^https?:/i,t.match(n)){e.next=2;break}return e.abrupt("return",Promise.reject(new Error("Not a http URI")));case 2:return l.Rm("Adding to ACL bot: "+t),e.next=3,this.groupList.addNewURI(t);case 3:this.toggleBar();case 4:case"end":return e.stop()}},e,this)})),function(e){return t.apply(this,arguments)})},{key:"getOriginFromName",value:(e=(0,a.A)(c().mark(function e(t){var n,a;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=1;break}return e.abrupt("return",Promise.resolve());case 1:if(n=/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i,t.match(n)){e.next=2;break}return e.abrupt("return",Promise.reject(new Error("Not a domain name")));case 2:return a="https://"+t,l.Rm("Adding to ACL origin: "+a),this.toggleBar(),e.abrupt("return",a);case 3:case"end":return e.stop()}},e,this)})),function(t){return e.apply(this,arguments)})},{key:"toggleBar",value:function(){this.isExpanded=!this.isExpanded}}]);var e,t,n,s,v,x}()},5923(e,t,n){n.d(t,{B:()=>r,u:()=>o});var a=n(5619),i=n(7367),r={adoptACLDefault:a._E,readACL:a.fg,sameACL:a.P3,ACLunion:a._7,loadUnionACL:a.Uf,ACLbyCombination:a.xw,makeACLGraph:a.Tm,makeACLGraphbyCombo:a.cl,ACLToString:a.Lu,comboToString:a.D9,makeACLString:a.cH,putACLObject:a.xo,putACLbyCombo:a.H0,fixIndividualCardACL:a.pp,fixIndividualACL:a.n1,setACL:a.fb,getACLorDefault:a.VM,getACL:a.pe},o={preventBrowserDropEvents:i.Fp,shortNameForFolder:i.DR,ACLControlBox5:i.wR}},7236(e,t,n){n.d(t,{eD:()=>S,z6:()=>k});var a=n(467),i=n(4756),r=n.n(i),o=n(7423),s=n(3378),c=n(6127),l=n(1795),u=n(8153),p=n(4961),d=n(675),m=n(52),f=n(9612),h=n(4608),v=n(3138),x=n(967),b={icons:s.Pt,ns:l.A,media:c.$,pad:u,style:d.i,utils:m,widgets:h},g=p.Namespace("http://www.w3.org/2002/01/bookmark#"),y=f.P,w=window.document||null;function A(e,t){return new Promise(function(n,a){v.store.updater.update(e,t,function(e,t,i){t?n():a(new Error(i))})})}function k(e){return C.apply(this,arguments)}function C(){return(C=(0,a.A)(r().mark(function e(t){var n,a,i,s;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=g("Bookmark"),a="bookmarks.ttl",e.next=1,(0,x.findAppInstances)(t,n,true);case 1:if(!(t.instances&&t.instances.length>0)){e.next=2;break}t.bookmarkDocument=t.instances[0],t.instances.length>1&&o.R8("More than one bookmark file! "+t.instances),e.next=9;break;case 2:if(!t.publicProfile){e.next=8;break}return i=p.sym(t.publicProfile.dir().uri+a),e.prev=3,o.Rm("Creating new bookmark file "+i),e.next=4,v.store.fetcher.createIfNotExists(i);case 4:e.next=6;break;case 5:return e.prev=5,s=e.catch(3),o.R8("Can't make fresh bookmark file:"+s),e.abrupt("return",t);case 6:return e.next=7,v.createTypeIndexLogic.registerInTypeIndex(i,t.index,n);case 7:t.bookmarkDocument=i,e.next=9;break;case 8:o.R8("You seem to have no bookmark file, nor even a profile file!");case 9:return e.abrupt("return",t);case 10:case"end":return e.stop()}},e,null,[[3,5]])}))).apply(this,arguments)}function E(e,t){return _.apply(this,arguments)}function _(){return(_=(0,a.A)(r().mark(function e(t,n){var a,i,s,c,u,d,m,f;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a="",i=v.authn.currentUser()){e.next=1;break}throw new Error("Must be logged on to add Bookmark");case 1:return s=v.store.any(n,l.A.foaf("maker")),a=y(s)+": "+v.store.anyValue(n,l.A.sioc("content")).slice(0,80),c=t.bookmarkDocument,u=b.widgets.newThing(c,a),d=[p.st(c,b.ns.dct("references"),u,c),p.st(u,b.ns.rdf("type"),g("Bookmark"),c),p.st(u,b.ns.dct("created"),new Date,c),p.st(u,g("recalls"),n,c),p.st(u,b.ns.foaf("maker"),i,c),p.st(u,b.ns.dct("title"),a,c)],e.prev=2,e.next=3,A([],d);case 3:e.next=5;break;case 4:return e.prev=4,f=e.catch(2),m="Making bookmark: "+f,o.R8(m),e.abrupt("return",null);case 5:return e.abrupt("return",u);case 6:case"end":return e.stop()}},e,null,[[2,4]])}))).apply(this,arguments)}function T(e,t,n){return j.apply(this,arguments)}function j(){return(j=(0,a.A)(r().mark(function e(t,n,a){var i,s,c,l;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,v.store.fetcher.load(t.bookmarkDocument);case 1:if(!(i=v.store.each(null,g("recalls"),n,t.bookmarkDocument)).length){e.next=9;break}if(confirm("Delete bookmark on this?"+i.length)){e.next=2;break}return e.abrupt("return");case 2:s=0;case 3:if(!(s<i.length)){e.next=8;break}return e.prev=4,e.next=5,A(v.store.connectedStatements(i[s]),[]);case 5:a.style.backgroundColor="white",o.Rm("Bookmark deleted: "+i[s]),e.next=7;break;case 6:e.prev=6,l=e.catch(4),o.z3("Cant delete bookmark:"+l),o.R8("Cannot delete bookmark:"+l);case 7:s++,e.next=3;break;case 8:e.next=11;break;case 9:return e.next=10,E(t,n);case 10:c=e.sent,a.style.backgroundColor="yellow",o.Rm("Bookmark added: "+c);case 11:case"end":return e.stop()}},e,null,[[4,6]])}))).apply(this,arguments)}function S(e,t){return L.apply(this,arguments)}function L(){return L=(0,a.A)(r().mark(function e(t,n){var i,o,s;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(o=function(){return o=(0,a.A)(r().mark(function e(n){var a;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,v.store.fetcher.load(t.bookmarkDocument);case 1:a=v.store.any(null,g("recalls"),n.target,t.bookmarkDocument),n.style=b.style.buttonStyle,a&&(n.style.backgroundColor="yellow");case 2:case"end":return e.stop()}},e)})),o.apply(this,arguments)},i=function(e){return o.apply(this,arguments)},!t.bookmarkDocument){e.next=2;break}return(s=b.widgets.button(w,b.icons.iconBase+"noun_45961.svg",y(g("Bookmark")),function(){T(t,n,s)})).target=n,e.next=1,i(s);case 1:return e.abrupt("return",s);case 2:case"end":return e.stop()}},e)})),L.apply(this,arguments)}},2465(e,t,n){n.d(t,{YM:()=>h,n6:()=>y,oQ:()=>b,oy:()=>A,x6:()=>v});var a=n(467),i=n(3029),r=n(2901),o=n(4756),s=n.n(o),c=n(7423),l=n(2893),u=n(3138),p=n(1795),d=n(4961),m=n(630),f=n(6855),h=function(){return(0,r.A)(function e(t,n){(0,i.A)(this,e),this.channel=t,this.channelRoot=t.doc(),this.options=n,this.dateFolder=new l.J(this.channelRoot,"chat.ttl"),this.div=null},[{key:"createMessage",value:(o=(0,a.A)(s().mark(function e(t){return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.updateMessage(t));case 1:case"end":return e.stop()}},e,this)})),function(e){return o.apply(this,arguments)})},{key:"updateMessage",value:(n=(0,a.A)(s().mark(function e(t){var n,a,i,r,o,l,h,v,x,b,g,w,A,k,C,E,_,T,j,S=arguments;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=S.length>1&&void 0!==S[1]?S[1]:null,a=S.length>2?S[2]:void 0,i=S.length>3&&void 0!==S[3]?S[3]:null,r=[],o=new Date,l=""+o.getTime(),h=d.term(o),v=n?n.doc():this.dateFolder.leafDocumentFromDate(o),x=u.store.sym(v.uri+"#Msg"+l),b=u.authn.currentUser(),(g=(0,m.YJ)()).id=x.uri,!n){e.next=4;break}if((w=u.store.any(n,p.A.foaf("maker"))).uri!==b.uri){e.next=2;break}return e.next=1,y(n);case 1:A=e.sent,r.push(d.st(A,p.A.dct("isReplacedBy"),x,v)),(k=u.store.any(A,p.A.sioc("has_reply")))&&r.push(d.st(x,p.A.sioc("has_reply"),k,v)),a&&r.push(d.st(x,p.A.schema("dateDeleted"),h,v)),e.next=3;break;case 2:throw C="Error you cannot delete/edit a message from someone else : \n"+w.uri,c.R8(C),alert(C),new Error(C);case 3:e.next=5;break;case 4:r.push(d.st(this.channel,p.A.wf("message"),x,v));case 5:if(r.push(d.st(x,p.A.sioc("content"),u.store.literal(t),v)),g.content=t,r.push(d.st(x,p.A.dct("created"),h,v)),g.created=h.value,!b){e.next=7;break}return r.push(d.st(x,p.A.foaf("maker"),b,v)),g.maker=b.uri,e.next=6,(0,f.Tn)(b);case 6:E=e.sent,_=(0,m.vt)(g,E),r.push(d.st(x,d.sym("".concat(m.yv,"proofValue")),d.lit(_),v));case 7:return i&&(r.push(d.st(i,p.A.sioc("has_member"),x,v)),i.doc().sameTerm(x.doc())||r.push(d.st(i,p.A.sioc("has_member"),x,i.doc()))),e.prev=8,e.next=9,u.store.updater.updateMany([],r);case 9:e.next=11;break;case 10:throw e.prev=10,j=e.catch(8),T="Error saving chat message: "+j,c.R8(T),alert(T),new Error(T);case 11:return e.abrupt("return",x);case 12:case"end":return e.stop()}},e,this,[[8,10]])})),function(e){return n.apply(this,arguments)})},{key:"deleteMessage",value:(t=(0,a.A)(s().mark(function e(t){return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.updateMessage("(message deleted)",t,!0));case 1:case"end":return e.stop()}},e,this)})),function(e){return t.apply(this,arguments)})},{key:"createThread",value:(e=(0,a.A)(s().mark(function e(t){var n,a,i;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=u.store.each(t,p.A.sioc("has_reply"),null,t.doc()).filter(function(e){return u.store.holds(e,p.A.rdf("type"),p.A.sioc("Thread"),e.doc())}),!(n.length>0)){e.next=1;break}return e.abrupt("return",n[0]);case 1:return a=d.sym(t.uri+"-thread"),i=[d.st(a,p.A.rdf("type"),p.A.sioc("Thread"),a.doc()),d.st(t,p.A.sioc("has_reply"),a,a.doc())],e.next=2,u.store.updater.update([],i);case 2:return e.abrupt("return",a);case 3:case"end":return e.stop()}},e)})),function(t){return e.apply(this,arguments)})}]);var e,t,n,o}();function v(e){return x.apply(this,arguments)}function x(){return(x=(0,a.A)(s().mark(function e(t){var n,a,i,r,o;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=[t],(a={})[t.uri]=!0,i=t;case 1:if((r=u.store.any(null,p.A.dct("isReplacedBy"),i,i.doc()))&&!a[r.uri]){e.next=2;break}return e.abrupt("continue",4);case 2:return e.next=3,u.store.fetcher.load(r);case 3:n.unshift(r),a[r.uri]=!0,i=r,e.next=1;break;case 4:i=t;case 5:if((o=u.store.any(i,p.A.dct("isReplacedBy"),null,i.doc()))&&!a[o.uri]){e.next=6;break}return e.abrupt("continue",7);case 6:n.push(o),a[o.uri]=!0,i=o,e.next=5;break;case 7:return e.abrupt("return",n);case 8:case"end":return e.stop()}},e)}))).apply(this,arguments)}function b(e){return g.apply(this,arguments)}function g(){return(g=(0,a.A)(s().mark(function e(t){var n,a;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=t,a={};case 1:if(!n){e.next=4;break}if(!a[n.uri]){e.next=2;break}return c.z3("originalVersion: verion loop"+t),e.abrupt("return",t);case 2:return a[n.uri]=!0,t=n,e.next=3,u.store.fetcher.load(t);case 3:n=u.store.any(null,p.A.dct("isReplacedBy"),t,t.doc()),e.next=1;break;case 4:return e.abrupt("return",t);case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}function y(e){return w.apply(this,arguments)}function w(){return(w=(0,a.A)(s().mark(function e(t){var n,a;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=t,a={};case 1:if(!n){e.next=4;break}if(!a[n.uri]){e.next=2;break}return c.z3("mostRecentVersion: verion loop"+t),e.abrupt("return",t);case 2:return a[n.uri]=!0,t=n,e.next=3,u.store.fetcher.load(t);case 3:n=u.store.any(t,p.A.dct("isReplacedBy"),null,t.doc()),e.next=1;break;case 4:return e.abrupt("return",t);case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}function A(e){return u.store.holds(e,p.A.schema("dateDeleted"),null,e.doc())}},2893(e,t,n){n.d(t,{J:()=>f});var a=n(3029),i=n(2901),r=n(467),o=n(4756),s=n.n(o),c=n(7423),l=n(3138),u=n(1795),p=n(4961);function d(e){return m.apply(this,arguments)}function m(){return(m=(0,r.A)(s().mark(function e(t){return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,l.store.fetcher.load(t);case 1:return e.abrupt("return",!(l.store.statementsMatching(null,u.A.dct("created"),null,t).length>0));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}var f=function(){return(0,i.A)(function e(t,n,i){(0,a.A)(this,e),this.root=t,this.rootFolder=t.dir(),this.leafFileName=n||"index.ttl",this.membershipProperty=i||u.A.wf("leafObject")},[{key:"leafDocumentFromDate",value:function(e){var t=e.toISOString().split("T")[0].replace(/-/g,"/");return t=this.root.dir().uri+t+"/"+this.leafFileName,l.store.sym(t)}},{key:"dateFromLeafDocument",value:function(e){var t=this.rootFolder.uri.length,n=e.uri.slice(t,t+10).replace(/\//g,"-");return new Date(n)}},{key:"loadPrevious",value:(t=(0,r.A)(s().mark(function e(t,n){var a,i,o,p,m,f;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:i=function(){return(i=(0,r.A)(s().mark(function e(t,i){var r,o,p,d,m,f,h,v,x,b;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return p=function(e){return(e=e.filter(o)).sort(),n||e.reverse(),e.pop()},o=function(e){var t=e.uri.slice(0,-1).split("/").slice(-1)[0];return!!"0123456789".includes(t[0])},r=function(e){return!(n?e.uri>=t.uri:e.uri<=t.uri)},d=t.dir(),e.prev=1,e.next=2,l.store.fetcher.load(d);case 2:if(m=(m=l.store.each(d,u.A.ldp("contains"))).filter(r),!(f=p(m))){e.next=3;break}return e.abrupt("return",f);case 3:e.next=6;break;case 4:if(e.prev=4,!(b=e.catch(1)).response||!b.response.status||404!==b.response.status){e.next=5;break}c.Rm("Error 404 for chat parent file "+d),e.next=6;break;case 5:throw c.Rm("*** Error NON 404 for chat parent file "+d),new Error("*** ".concat(b.message," for chat folder ").concat(d));case 6:if(0!==i){e.next=7;break}return e.abrupt("return",null);case 7:return e.next=8,a(d,i-1);case 8:if(h=e.sent){e.next=9;break}return e.abrupt("return",null);case 9:return e.next=10,l.store.fetcher.load(h);case 10:return v=l.store.each(h,u.A.ldp("contains")),x=p(v),e.abrupt("return",x);case 11:case"end":return e.stop()}},e,null,[[1,4]])}))).apply(this,arguments)},a=function(e,t){return i.apply(this,arguments)},o=this.leafDocumentFromDate(t).dir();case 1:return e.next=2,a(o,3);case 2:if(!(p=e.sent)){e.next=6;break}return m=l.store.sym(p.uri+this.leafFileName),f=this.dateFromLeafDocument(m),e.next=3,d(m);case 3:if(e.sent){e.next=4;break}return e.abrupt("return",f);case 4:t=f,o=this.leafDocumentFromDate(t).dir();case 5:e.next=7;break;case 6:return e.abrupt("return",null);case 7:e.next=1;break;case 8:case"end":return e.stop()}},e,this)})),function(e,n){return t.apply(this,arguments)})},{key:"firstLeaf",value:(e=(0,r.A)(s().mark(function e(t){var n,a,i,o,l,d,m,f,h,v,x;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=function(){return(o=(0,r.A)(s().mark(function e(i){var r,o;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=function(e){var t=e.uri.slice(0,-1).split("/").slice(-1)[0];return!!"0123456789".includes(t[0])},delete a.requested[i.uri],e.next=1,a.load(i,{force:!0});case 1:if(0!==(o=(o=n.each(i,u.A.ldp("contains"))).filter(r)).length){e.next=2;break}throw new Error(" @@@ No children to parent2 "+i);case 2:return o.sort(),t&&o.reverse(),e.abrupt("return",o[0]);case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)},i=function(e){return o.apply(this,arguments)},n=p.graph(),a=new p.Fetcher(n),e.next=1,i(this.root.dir());case 1:return l=e.sent,e.next=2,i(l);case 2:return d=e.sent,e.next=3,i(d);case 3:return m=e.sent,f=p.sym(m.uri+"chat.ttl"),e.next=4,a.load(f);case 4:if(0!==(h=n.each(this.root,this.membershipProperty,null,f)).length){e.next=5;break}throw v=" INCONSISTENCY -- no chat leafObject in file "+f,c.uP(v),new Error(v);case 5:return(x=h.map(function(e){return[n.any(e,u.A.dct("created")),e]})).sort(),t&&x.reverse(),e.abrupt("return",x[0][1]);case 6:case"end":return e.stop()}},e,this)})),function(t){return e.apply(this,arguments)})}]);var e,t}()},9509(e,t,n){n.d(t,{r5:()=>y,rg:()=>b});var a=n(467),i=n(4756),r=n.n(i),o=n(4961),s=n(3138),c=n(7423),l=n(3378),u=n(1795),p=n(3291),d=n(3468),m=n(2465),f=n(3262);function h(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return v(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,i=function(){};return{s:i,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw r}}}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function x(e){"Notification"in window?"granted"===Notification.permission?new Notification(e):"denied"!==Notification.permission&&Notification.requestPermission().then(function(t){"granted"===t&&new Notification(e)}):c.R8("This browser does no t support desktop notification")}function b(e,t,n,a,i,r){return g.apply(this,arguments)}function g(){return(g=(0,a.A)(r().mark(function e(t,n,a,i,o,s){var c,l,u,p,d;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,f.Uh)(t,a,i,o,s);case 1:c=e.sent,o.selectedMessage&&o.selectedMessage.sameTerm(a)&&(c.style.backgroundColor="yellow",o.selectedElement=c,n.selectedElement=c),l=!1,u=n.firstChild;case 2:if(u){e.next=3;break}return e.abrupt("continue",5);case 3:if(p=!0===o.newestfirst,!((d=c.AJAR_date)>u.AJAR_date&&p||d<u.AJAR_date&&!p)){e.next=4;break}return n.insertBefore(c,u),l=!0,e.abrupt("continue",5);case 4:u=u.nextSibling,e.next=2;break;case 5:l||n.appendChild(c);case 6:case"end":return e.stop()}},e)}))).apply(this,arguments)}function y(e,t,n,a){return w.apply(this,arguments)}function w(){return w=(0,a.A)(r().mark(function e(t,n,i,v){var g,y,w,A,k,C,E,_,T,j,S,L,R,N,B,I,O,F,P,D,U,M,z,q,H,V,G,Z,W,J,$,Q;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return P=function(){return(P=(0,a.A)(r().mark(function e(){var t,n,a,i,o,s,c,l,u,p;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=function(){v.selectedElement?v.selectedElement.scrollIntoView({block:"center"}):V.inputRow.scrollIntoView&&V.inputRow.scrollIntoView(D)},t=function(){u&&u.selectedElement&&u.selectedElement.scrollIntoView({block:"center"})},v.selectedMessage&&(i=v.selectedMessage.doc()),G&&(o=G.doc()),(s=i||o)&&(c=new Date,l=M.leafDocumentFromDate(c),a=l.sameTerm(s)),!s||a){e.next=2;break}return p=M.dateFromLeafDocument(s),e.next=1,_(p,a);case 1:u=e.sent,z.appendChild(u),Z.messageTable=u,W.messageTable=u,t(),setTimeout(t,1e3),e.next=4;break;case 2:return e.next=3,N();case 3:Z.messageTable=V,W.messageTable=V;case 4:return e.next=5,I(null,n);case 5:z.addEventListener("scroll",I),v.solo&&document.body.addEventListener("scroll",I);case 6:case"end":return e.stop()}},e)}))).apply(this,arguments)},F=function(){return P.apply(this,arguments)},O=function(){return(O=(0,a.A)(r().mark(function e(t,n){var a,i,o,s,c;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!Q){e.next=1;break}return e.abrupt("return");case 1:Q=!0,a=!n,i=150;case 2:if(!(z.scrollTop<i&&Z.messageTable&&!Z.messageTable.initial&&Z.messageTable.extendBackwards)){e.next=6;break}if(0!==z.scrollHeight){e.next=3;break}return setTimeout(I,2e3),Q=!1,e.abrupt("return");case 3:return s=z.scrollHeight-z.scrollTop,e.next=4,Z.messageTable.extendBackwards();case 4:if(o=e.sent,a&&(z.scrollTop=z.scrollHeight-s),n&&n(),!o){e.next=5;break}return e.abrupt("continue",6);case 5:e.next=2;break;case 6:if(!(v.selectedMessage&&z.scrollHeight-z.scrollTop-z.clientHeight<i&&W.messageTable&&!W.messageTable.final&&W.messageTable.extendForwards)){e.next=9;break}return c=z.scrollTop,e.next=7,W.messageTable.extendForwards();case 7:if(o=e.sent,a&&(z.scrollTop=c),n&&n(),!o){e.next=8;break}return e.abrupt("continue",9);case 8:e.next=6;break;case 9:Q=!1;case 10:case"end":return e.stop()}},e)}))).apply(this,arguments)},I=function(e,t){return O.apply(this,arguments)},B=function(){return(B=(0,a.A)(r().mark(function e(){var t,n,o;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=new Date,n=M.leafDocumentFromDate(t),e.next=1,_(t,!0);case 1:return o=e.sent,z.appendChild(o),z.refresh=(0,a.A)(r().mark(function e(){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,L(new Date);case 1:return e.next=2,g(i,o);case 2:x(i);case 3:case"end":return e.stop()}},e)})),s.store.updater.addDownstreamChangeListener(n,z.refresh),V=o,W.messageTable=V,e.abrupt("return",o);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)},N=function(){return B.apply(this,arguments)},R=function(){return(R=(0,a.A)(r().mark(function e(){var t,n,a;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((t=M.leafDocumentFromDate(new Date)).sameTerm(W.messageTable.chatDocument)){e.next=2;break}return V.inputRow&&(V.removeChild(V.inputRow),delete V.inputRow),n=W.messageTable.chatDocument,e.next=1,N();case 1:if(!s.store.holds(n,u.A.rdfs("seeAlso"),t,n)){a=[o.st(n,u.A.rdfs("seeAlso"),t,n)];try{s.store.updater.update([],a)}catch(e){alert("Unable to link old chat file to new one:"+e)}}case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)},L=function(){return R.apply(this,arguments)},S=function(){return S=(0,a.A)(r().mark(function e(n,i){var o,c,d,m,x,b,g,y,A,C,_,T,j,S,L,R,N,B,I,O;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:A=function(){return(A=(0,a.A)(r().mark(function e(t){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!C.extendedForwards){e.next=1;break}E(!1,C),C.extendedForwards=!1,y(),e.next=3;break;case 1:return e.next=2,b();case 2:W.messageTable.scrollIntoView(D);case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)},y=function(){if(c){var e=C.extendedForwards?!D:D,t=C.final?"noun_T-Block_1114657_000000.svg":function(e){return e?"noun_1369237.svg":"noun_1369241.svg"}(e);c.firstChild.setAttribute("src",l.Pt.iconBase+t)}},g=function(){return(g=(0,a.A)(r().mark(function e(){var t;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,k(!1);case 1:return t=e.sent,e.abrupt("return",t);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)},b=function(){return g.apply(this,arguments)},x=function(){if(o){var e=C.extendedBack?!D:D,t=C.initial?"noun_T-Block_1114655_000000.svg":function(e){return e?"noun_1369241.svg":"noun_1369237.svg"}(e);o.firstChild.setAttribute("src",l.Pt.iconBase+t)}},m=function(){return(m=(0,a.A)(r().mark(function e(){var t;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,k(!0);case 1:return(t=e.sent)?(o&&(o.firstChild.setAttribute("src",l.Pt.iconBase+"noun_T-Block_1114655_000000.svg"),o.disabled=!0),C.initial=!0):C.extendedBack=!0,x(),e.abrupt("return",t);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)},d=function(){return m.apply(this,arguments)},o=null,c=null,(C=t.createElement("table")).style.width="100%",C.extendBackwards=d,C.extendForwards=b,C.date=n,_=M.leafDocumentFromDate(n),C.chatDocument=_,C.fresh=!1,C.setAttribute("style","width: 100%;"),i&&(C.final=!0,V=C,W.messageTable=C,T=(0,f.LV)(U,C,H,v),D?C.insertBefore(T,C.firstChild):C.appendChild(T),C.inputRow=T),j=t.createElement("tr"),(S=j.appendChild(t.createElement("td"))).style="text-align: center; vertical-align: middle; color: #888; font-style: italic;",S.textContent=p.XV(n.toISOString(),!0),L=j.appendChild(t.createElement("td")),v.includeRemoveButton&&L.appendChild(p.x7(t,function(e){z.parentNode.removeChild(z)})),C.extendedForwards=!1,D?C.appendChild(j):C.insertBefore(j,C.firstChild),R=s.store.statementsMatching(null,u.A.wf("message"),null,_),!i&&R.length,N=h(R),e.prev=1,N.s();case 2:if((B=N.n()).done){e.next=4;break}return I=B.value,e.next=3,w(I.object,C);case 3:e.next=2;break;case 4:e.next=6;break;case 5:e.prev=5,O=e.catch(1),N.e(O);case 6:return e.prev=6,N.f(),e.finish(6);case 7:return C.fresh=!0,e.abrupt("return",C);case 8:case"end":return e.stop()}},e,null,[[1,5,6,7]])})),S.apply(this,arguments)},j=function(e,t){return S.apply(this,arguments)},T=function(){return(T=(0,a.A)(r().mark(function e(n,a){var i,o,l,u;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=M.leafDocumentFromDate(n),e.prev=1,e.next=2,s.store.fetcher.createIfNotExists(i);case 2:e.next=7;break;case 3:if(e.prev=3,u=e.catch(1),o=t.createElement("table"),l=o.appendChild(t.createElement("tr")),!u.response||!u.response.status||404!==u.response.status){e.next=5;break}return e.next=4,j(n,a);case 4:return e.abrupt("return",e.sent);case 5:c.Rm("*** Error NON 404 for chat file "+i),l.appendChild(d.F(t,u,"pink"));case 6:return e.abrupt("return",l);case 7:return e.next=8,j(n,a);case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}},e,null,[[1,3]])}))).apply(this,arguments)},_=function(e,t){return T.apply(this,arguments)},E=function(e,t){if(e?D:!D)for(;t.nextSibling;)z.removeChild(t.nextSibling);else for(;t.previousSibling;)z.removeChild(t.previousSibling);(e?Z:W).messageTable=t},C=function(){return(C=(0,a.A)(r().mark(function e(t){var n,a,i,o,s,c;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a=(n=t?Z:W).messageTable.date,!(t&&Z.limit&&a<=Z.limit)){e.next=2;break}if(V){e.next=1;break}return e.next=1,N();case 1:return e.abrupt("return",!0);case 2:return e.next=3,M.loadPrevious(a,t);case 3:if((a=e.sent)||t||V){e.next=4;break}return e.next=4,N();case 4:if(a){e.next=5;break}return e.abrupt("return",!0);case 5:return i=!1,t||(o=M.leafDocumentFromDate(new Date),s=M.leafDocumentFromDate(a),i=s.sameTerm(o)),e.next=6,_(a,i);case 6:return c=e.sent,n.messageTable=c,(t?D:!D)?z.appendChild(c):z.insertBefore(c,z.firstChild),e.abrupt("return",i);case 7:case"end":return e.stop()}},e)}))).apply(this,arguments)},k=function(e){return C.apply(this,arguments)},A=function(){return A=(0,a.A)(r().mark(function e(t,n){var a,i;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(0,m.oy)(t)||v.showDeletedMessages){e.next=1;break}return e.abrupt("return");case 1:if(a=s.store.any(null,u.A.sioc("has_member"),t,t.doc()),(i=s.store.any(t,u.A.sioc("id"),null,t.doc()))&&!a&&(a=s.store.any(null,u.A.sioc("has_member"),i,t.doc())),!v.thread){e.next=5;break}if(!s.store.holds(t,u.A.sioc("has_reply"),v.thread)){e.next=2;break}e.next=4;break;case 2:if(!a||!a.sameTerm(v.thread)){e.next=3;break}e.next=4;break;case 3:return e.abrupt("return");case 4:e.next=6;break;case 5:if(!a){e.next=6;break}return e.abrupt("return");case 6:if(n.fresh){e.next=7;break}return e.next=7,b(U,n,t,n.fresh,v,H);case 7:case"end":return e.stop()}},e)})),A.apply(this,arguments)},w=function(e,t){return A.apply(this,arguments)},y=function(){return y=(0,a.A)(r().mark(function e(t,n){var a,i,o,c,l,d,m,f,v;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(a={},i=n.firstChild;i;i=i.nextSibling)i.AJAR_subject&&(a[i.AJAR_subject.uri]=!0);c=s.store.each(t,u.A.wf("message"),null,n.chatDocument),l={},d=h(c),e.prev=1,d.s();case 2:if((m=d.n()).done){e.next=4;break}if(f=m.value,l[f.uri]=!0,a[f.uri]){e.next=3;break}return e.next=3,w(f,n);case 3:e.next=2;break;case 4:e.next=6;break;case 5:e.prev=5,v=e.catch(1),d.e(v);case 6:return e.prev=6,d.f(),e.finish(6);case 7:for(i=n.firstChild;i;)o=i.nextSibling,i.AJAR_subject&&!l[i.AJAR_subject.uri]&&n.removeChild(i),i=o;for(i=n.firstChild;i;i=i.nextSibling)i.AJAR_subject&&p.uS(i);case 8:case"end":return e.stop()}},e,null,[[1,5,6,7]])})),y.apply(this,arguments)},g=function(e,t){return y.apply(this,arguments)},(v=v||{}).authorDateOnLeft=!1,D="1"===v.newestFirst||!0===v.newestFirst,U=new m.YM(i,v),M=U.dateFolder,z=t.createElement("div"),U.div=z,q=z.appendChild(t.createElement("div")),H={dom:t,statusArea:q,div:q},Z={messageTable:null},W={messageTable:null},v.thread&&(J=v.thread,(G=s.store.any(null,u.A.sioc("has_reply"),J,J.doc()))&&($=s.store.any(G,u.A.dct("created"),null,G.doc()))&&(Z.limit=new Date($.value))),Q=!1,e.next=1,F();case 1:return e.abrupt("return",z);case 2:case"end":return e.stop()}},e)})),w.apply(this,arguments)}},6855(e,t,n){n.d(t,{Tn:()=>b,lG:()=>v});var a=n(467),i=n(4756),r=n.n(i),o=n(7423),s=n(6885),c=n(508),l=n(1795),u=n(3138),p=n(4961),d=n(8425),m=n(3907);function f(){return(0,c.My)(s.ko.utils.randomSecretKey())}function h(e){return(0,c.My)(s.ko.getPublicKey((0,c.aT)(e)))}function v(e){return x.apply(this,arguments)}function x(){return(x=(0,a.A)(r().mark(function e(t){var n,a;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,u.store.fetcher.load(t);case 1:return e.next=2,(0,d.AB)(t);case 2:return n=e.sent,e.prev=3,e.next=4,u.store.fetcher.load(n);case 4:return a=u.store.any(t,l.A.solid("publicKey")),e.abrupt("return",null==a?void 0:a.value);case 5:return e.prev=5,e.catch(3),e.abrupt("return",void 0);case 6:case"end":return e.stop()}},e,null,[[3,5]])}))).apply(this,arguments)}function b(e){return g.apply(this,arguments)}function g(){return(g=(0,a.A)(r().mark(function e(t){var n,a,i,s,c,v,x,b,g;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,u.store.fetcher.load(t);case 1:return e.next=2,(0,d.AB)(t);case 2:return n=e.sent,e.next=3,(0,d.ED)(t);case 3:return a=e.sent,e.next=4,(0,d.S3)(t,n);case 4:return i=e.sent,e.next=5,(0,d.cX)(t,a);case 5:if(s=e.sent,c=!0,s&&i!==h(s)&&confirm("This is strange the publicKey is not valid for\n"+(null==t?void 0:t.uri)+"'shall we repair keeping the private key ?")&&(c=!1),s&&i&&c){e.next=8;break}if(v=[],x=[],s){e.next=6;break}return s=f(),x=[p.st(t,l.A.solid("privateKey"),p.literal(s),u.store.sym(a))],e.next=6,w(a,[],x,t.uri);case 6:if(i&&c){e.next=7;break}return v=[],i&&(v=[p.st(t,l.A.solid("publicKey"),p.lit(i),u.store.sym(n))],o.Rm("delete invalid publicKey "+v)),b=h(s),x=[p.st(t,l.A.solid("publicKey"),p.literal(b),u.store.sym(n))],e.next=7,w(n,v,x);case 7:return g=a.substring(0,a.lastIndexOf("/")+1),e.next=8,(0,m.lO)(g,(0,m.vb)(t.uri));case 8:return e.abrupt("return",s);case 9:case"end":return e.stop()}},e)}))).apply(this,arguments)}var y=function(){var e=(0,a.A)(r().mark(function e(t){var n,a,i;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,u.store.fetcher.load(t);case 1:if(!(n=u.store.any(u.store.sym(t),u.store.sym("http://www.iana.org/assignments/link-relations/acl")))){e.next=6;break}return e.prev=2,e.next=3,u.store.fetcher.webOperation("DELETE",n.value);case 3:a=e.sent,o.Rm("delete keyAcl"+n.value+" "+a.status),e.next=6;break;case 4:if(e.prev=4,404===(i=e.catch(2)).response.status){e.next=5;break}throw new Error(i);case 5:o.Rm("delete keyAcl"+n.value+" "+i.response.status);case 6:case"end":return e.stop()}},e,null,[[2,4]])}));return function(t){return e.apply(this,arguments)}}();function w(e,t,n){return A.apply(this,arguments)}function A(){return A=(0,a.A)(r().mark(function e(t,n,a){var i,o,s=arguments;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=s.length>3&&void 0!==s[3]?s[3]:"",e.next=1,y(t);case 1:return e.next=2,u.store.updater.updateMany(n,a);case 2:return o=(0,m.G2)(t,i),e.next=3,(0,m.lO)(t,o);case 3:case"end":return e.stop()}},e)})),A.apply(this,arguments)}},3262(e,t,n){n.d(t,{LV:()=>q,Uh:()=>D,zt:()=>M});var a=n(4467),i=n(467),r=n(4756),o=n.n(r),s=n(9509),c=n(5187),l=n(7236),u=n(2465),p=n(7423),d=n(3378),m=n(3138),f=n(967),h=n(6127),v=n(1795),x=n(8153),b=n(3605),g=n(675),y=n(9612),w=n(386),A=n(3291),k=n(3468),C=n(630),E=n(6855);function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach(function(t){(0,a.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function j(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return S(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,i=function(){};return{s:i,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw r}}}}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var L=window.document,R=g.i.messageBodyStyle,N=y.P;function B(e,t){var n=L.createElement("img"),a="10";t.inlineImageHeightEms&&(a=(""+t.inlineImageHeightEms).trim()),n.setAttribute("style","max-height: "+a+"em; border-radius: 1em; margin: 0.7em;"),e&&n.setAttribute("src",e);var i=L.createElement("a");return i.setAttribute("href",e),i.setAttribute("target","images"),i.appendChild(n),w.eB(n,$rdf.sym(e)),i}var I=function(e,t){var n=L.createElement("a");return t&&t.uri&&(n.setAttribute("href",t.uri),n.addEventListener("click",A.ol,!0),n.setAttribute("style","color: #3B5998; text-decoration: none; ")),n.textContent=e,n};function O(e){var t=m.store.any(e,v.A.foaf("nick"));return t?""+t.value:""+N(e)}function F(e,t,n,a){var i=e.appendChild(I(O(t),t));t.uri&&m.store.fetcher.nowOrWhenFetched(t.doc(),void 0,function(e,n){i.textContent=O(t)}),e.appendChild(L.createElement("br")),e.appendChild(I(n,a))}function P(e,t,n,a){var i=e.appendChild(I(N(t),t));t.uri&&m.store.fetcher.nowOrWhenFetched(t.doc(),void 0,function(e,n){i.textContent=O(t)});var r=e.appendChild(I(n,a));r.style.fontSize="80%",r.style.marginLeft="1em",e.appendChild(L.createElement("br"))}function D(e,t,n,a,i){return U.apply(this,arguments)}function U(){return U=(0,i.A)(o().mark(function e(t,n,a,r,s){var l,f,h,b,g,y,w,k,_,S,N,I,O,D,U,M,z,q,H,V,G,Z,W,J,$,Q,K,Y,X,ee,te,ne,ae,ie,re;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return ne=function(e){return e?"#e8ffe8":"white"},l=!1,f="1"===r.colorizeByAuthor||!0===r.colorizeByAuthor,h=m.store.any(n,v.A.foaf("maker")),b=m.store.any(n,v.A.dct("created")),e.next=1,(0,u.n6)(n);case 1:return g=e.sent,y=m.store.any(g,v.A.foaf("maker")),w=h.uri===(null==y?void 0:y.uri)?g:n,k=m.store.any(w,v.A.sioc("content")),e.next=2,(0,u.x6)(w);case 2:(_=e.sent).length>1&&p.Rm("renderMessageRow versions: ",_.join(", ")),S=_.map(function(e){return m.store.each(e,v.A.sioc("has_reply"))}).flat(),N=null,I=[],O=j(S);try{for(O.s();!(D=O.n()).done;)U=D.value,m.store.holds(U,v.A.rdf("type"),v.A.sioc("Thread"))?(N=U,p.Rm("renderMessageRow: found thread: "+N)):I.push(U)}catch(e){O.e(e)}finally{O.f()}return I.length>1&&p.Rm("renderMessageRow: found normal replies: ",I),N||(N=m.store.any(null,v.A.sioc("has_member"),n)),M=m.store.any(w,$rdf.sym("".concat(C.yv,"proofValue"))),(z=(0,C.YJ)()).id=w.uri,z.created=m.store.any(w,v.A.dct("created")).value,z.content=k.value,z.maker=h.uri,null!=M&&M.value?(0,E.lG)(h).then(function(e){e||p.R8("message is signed but "+h.uri+" is missing publicKey");null!=e&&e.match(/[0-9A-Fa-f]{6}/g)?null!=M&&M.value&&!(0,C.Od)(null==M?void 0:M.value,z,e)&&p.R8("invalid signature\n"+z.id):p.R8("invalid publicKey hex string\n"+h.uri+"\n"+e)}):(l=!0,p.R8(w.uri+" is unsigned")),e.next=3,(0,u.oQ)(n);case 3:return q=e.sent,H=!n.sameTerm(q),V=m.store.the(q,v.A.dct("created"),null,q.doc())||m.store.the(n,v.A.dct("created"),null,n.doc()),G=L.createElement("tr"),l&&G.setAttribute("style","background-color: red"),G.AJAR_date=V.value,G.AJAR_subject=n,Z=L.createElement("td"),G.appendChild(Z),r.authorDateOnLeft?F(Z,h,A.XV(V.value),n):((W=L.createElement("img")).setAttribute("style","max-height: 2.5em; max-width: 2.5em; border-radius: 0.5em; margin: auto;"),A.g7(W,h),Z.appendChild(W)),J=A.XV(V.value),H&&(J+=" ... "+A.XV(b.value)),$=G.appendChild(L.createElement("td")),r.authorDateOnLeft||P($,h,J,n),Q=k?k.value.trim():"??? no content?",K=/^https?:\/[^ <>]*$/i.test(Q),Y=null,K?/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(Q)&&r.expandImagesInline?(X=B(Q,r),$.appendChild(X)):(ee=$.appendChild(L.createElement("a")),Y=ee.appendChild(L.createElement("p")),ee.href=Q,Y.textContent=Q,$.appendChild(ee)):(Y=L.createElement("p"),$.appendChild(Y),Y.textContent=Q),Y&&(te=f?x.lightColorHash(h):ne(a),Y.setAttribute("style",R+"background-color: "+te+";")),e.next=4,(0,c.lk)(n,n.doc());case 4:return(ae=e.sent).children.length&&($.appendChild(L.createElement("br")),$.appendChild(ae)),ie=L.createElement("td"),G.appendChild(ie),re=A.x6(L,d.Pt.iconBase+"noun_243787.svg","..."),ie.appendChild(re),re.addEventListener("click",function(){var e=(0,i.A)(o().mark(function e(a){var i,l,u;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!G.toolTR){e.next=1;break}return G.parentNode.removeChild(G.toolTR),delete G.toolTR,e.abrupt("return");case 1:return i=L.createElement("tr"),e.next=2,(0,c.tJ)(n,G,T(T({},s),{},{chatOptions:r}),t);case 2:(l=e.sent).style="border: 0.05em solid #888; border-radius: 0 0 0.7em 0.7em; border-top: 0; height:3.5em; background-color: #fff;",G.nextSibling?G.parentElement.insertBefore(i,G.nextSibling):G.parentElement.appendChild(i),G.toolTR=i,i.appendChild(L.createElement("td")),u=i.appendChild(L.createElement("td")),i.appendChild(L.createElement("td")),u.appendChild(l);case 3:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()),N&&r.showThread&&ie.appendChild(A.x6(L,d.Pt.iconBase+"noun_1180164.svg","see thread",function(e){r.showThread(N,r)})),e.abrupt("return",G);case 5:case"end":return e.stop()}},e)})),U.apply(this,arguments)}function M(e,t,n,a){return z.apply(this,arguments)}function z(){return(z=(0,i.A)(o().mark(function e(t,n,a,i){var r,s,c,l,p,d,m;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.parentNode,c=q,l=a,p=r,d=i,m=a.options,e.next=1,(0,u.n6)(n);case 1:s=c(l,p,d,m,e.sent),r.insertBefore(s,t),s.originalRow=t,t.style.visibility="hidden";case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function q(e,t,n,a,r){function c(e){return u.apply(this,arguments)}function u(){return(u=(0,i.A)(o().mark(function e(t){return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,x(S.value,!0);case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function x(e,t){return y.apply(this,arguments)}function y(){return y=(0,i.A)(o().mark(function c(l,u){var d,m,f,h;return o().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return m=function(){return m=(0,i.A)(o().mark(function i(c,l){var d;return o().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=1,(0,s.rg)(e,t,c,!1,a,n);case 1:r?((d=B.originalRow).parentNode?d.parentNode.removeChild(d):(p.R8("No parentNode on old message "+d.textContent),d.style.backgroundColor="#fee",d.style.visibility="hidden"),B.parentNode.removeChild(B)):u&&(S.value="",S.setAttribute("style",R),S.disabled=!1,S.scrollIntoView(a.newestFirst),S.focus(),S.select());case 2:case"end":return i.stop()}},i)})),m.apply(this,arguments)},d=function(e,t){return m.apply(this,arguments)},u&&(S.setAttribute("style",R+"color: #bbb;"),S.disabled=!0),c.prev=1,c.next=2,e.updateMessage(l,r,null,a.thread);case 2:f=c.sent,c.next=4;break;case 3:return c.prev=3,h=c.catch(1),(n.statusArea||B).appendChild(k.F(L,"Error writing message: "+h)),c.abrupt("return");case 4:return c.next=5,d(f,l);case 5:case"end":return c.stop()}},c,null,[[1,3]])})),y.apply(this,arguments)}function C(e){var n=t.chatDocument.dir().uri;w.Zn(m.store.fetcher,e,n+"Files",n+"Pictures",function(){var e=(0,i.A)(o().mark(function e(t,n){return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,x(n);case 1:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}())}var E,_,T=function(){var e=(0,i.A)(o().mark(function e(t){var n,a,i,r;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=j(t),e.prev=1,n.s();case 2:if((a=n.n()).done){e.next=4;break}return i=a.value,e.next=3,x(i);case 3:e.next=2;break;case 4:e.next=6;break;case 5:e.prev=5,r=e.catch(1),n.e(r);case 6:return e.prev=6,n.f(),e.finish(6);case 7:case"end":return e.stop()}},e,null,[[1,5,6,7]])}));return function(t){return e.apply(this,arguments)}}();r?(E=m.store.anyValue(r,v.A.dct("created"),null,r.doc()),_=d.Pt.iconBase+"noun_1180158.svg"):(_=d.Pt.iconBase+"noun_383448.svg",E="9999-01-01T00:00:00Z");var S,N,B=L.createElement("tr"),I=L.createElement("td"),O=L.createElement("td"),P=L.createElement("td");B.appendChild(I),B.appendChild(O),B.appendChild(P),B.AJAR_date=E;var D={div:O,dom:L};return(0,f.ensureLoggedIn)(D).then(function(t){!function(){function t(){return(t=(0,i.A)(o().mark(function e(t){return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=1;break}return e.next=1,x(t.uri);case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}if(a.menuHandler){var n=A.x6(L,d.Pt.iconBase+"noun_243787.svg","More");n.setAttribute("style",g.i.buttonStyle+"float: right;"),P.appendChild(n)}a.menuHandler;var s=m.authn.currentUser();if(F(I,s,"",null),S=L.createElement("textarea"),O.innerHTML="",O.appendChild(S),S.rows=3,r&&(S.value=m.store.anyValue(r,v.A.sioc("content"),null,r.doc())),S.setAttribute("style",R+"background-color: #eef;"),S.addEventListener("keydown",function(){var e=(0,i.A)(o().mark(function e(t){return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("Enter"!==t.code){e.next=1;break}if(!(!t.shiftKey&&!a.shiftEnterSendsMessage||t.shiftKey&&a.shiftEnterSendsMessage)){e.next=1;break}return e.next=1,c(t);case 1:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),!1),w.DK(S,T,C),P.innerHTML="",(N=A.x6(L,_,"Send")).style.float="right",N.addEventListener("click",function(e){return c()},!1),P.appendChild(N),r){var l=P.appendChild(A.x7(L));l.style.float="left",l.addEventListener("click",function(e){return function(e){e.originalRow.style.visibility="visible",e.parentNode.removeChild(e)}(B)},!1),P.appendChild(l)}var u=e.dateFolder.leafDocumentFromDate(new Date);O.appendChild(h.$.cameraButton(L,m.store,function(){return $rdf.sym(u.dir().uri+"Image_"+Date.now()+".png")},function(e){return t.apply(this,arguments)})),b.recordParticipation(e.channel,e.channel.doc())}(),Object.assign(t,n),(0,l.z6)(t).then(function(e){})}),B}},5187(e,t,n){n.d(t,{lk:()=>w,tJ:()=>k});var a=n(3453),i=n(467),r=n(4756),o=n.n(r),s=n(7423),c=n(3378),l=n(1795),u=n(4961),p=n(9612),d=n(3291),m=n(3468),f=n(1763),h=n(7236),v=n(3138),x=n(2465),b=n(3262),g=window.document,y={};function w(e,t){return A.apply(this,arguments)}function A(){return A=(0,i.A)(o().mark(function e(t,n){var r,c,u;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return u=function(){return(u=(0,i.A)(o().mark(function e(){var i,s,c;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r.innerHTML="",!(0,x.oy)(t)){e.next=1;break}return e.abrupt("return",r);case 1:return e.next=2,(0,x.x6)(t);case 2:if(i=e.sent,0!==(s=i.map(function(e){return v.store.each(null,l.A.schema("target"),e,n)}).flat()).length){e.next=3;break}return e.abrupt("return",r);case 3:(c=s.map(function(e){return[v.store.any(e,l.A.rdf("type"),null,n),v.store.any(e,l.A.sioc("content"),null,n),v.store.any(e,l.A.schema("agent"),null,n)]})).sort(),c.forEach(function(e){var t,n=(0,a.A)(e,3),i=n[0],o=n[1],s=n[2];s?(t=g.createElement("a")).setAttribute("href",s.uri):t=g.createTextNode(""),t.textContent=o||y[i]||"⬜️",r.appendChild(t)});case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)},c=function(){return u.apply(this,arguments)},r=g.createElement("span"),c().then(s.Rm("sentimentStripLinked: sentimentStripLinked async refreshed")),r.refresh=c,e.abrupt("return",r);case 1:case"end":return e.stop()}},e)})),A.apply(this,arguments)}function k(e,t,n,a){return C.apply(this,arguments)}function C(){return C=(0,i.A)(o().mark(function e(t,n,a,r){var y,w,A,k,C,E,_,T,j,S,L,R,N,B,I,O,F,P,D;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return R=function(e,t,a,r,s,c){function m(){x.style.backgroundColor=h?"yellow":"white"}var h,x=d.x6(g,a,p.P(r),function(){var a=(0,i.A)(o().mark(function a(i){var p,x,g,y;return o().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(!h){a.next=2;break}return a.next=1,j(h);case 1:h=null,m(),a.next=8;break;case 2:return h=f.xV(s),p=[u.st(h,l.A.schema("agent"),e.me,s),u.st(h,l.A.rdf("type"),r,s),u.st(h,l.A.schema("target"),t,s)],a.next=3,v.store.updater.update([],p);case 3:if(m(),!c){a.next=8;break}x=!1,g=0;case 4:if(!(g<c.length)){a.next=7;break}if(!(y=b(c[g]))){a.next=6;break}return a.next=5,j(y);case 5:x=!0;case 6:g++,a.next=4;break;case 7:x&&d.uS(n);case 8:case"end":return a.stop()}},a)}));return function(e){return a.apply(this,arguments)}}());function b(n){var a=v.store.each(null,l.A.schema("agent"),e.me,s).filter(function(e){return v.store.holds(e,l.A.rdf("type"),n,s)}).filter(function(e){return v.store.holds(e,l.A.schema("target"),t,s)});return a.length?a[0]:null}function y(){h=b(r),m()}return x.refresh=y,y(),x},S=function(){return(S=(0,i.A)(o().mark(function e(t){return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,v.store.updater.update(v.store.connectedStatements(t),[]);case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)},j=function(e){return S.apply(this,arguments)},T=function(){_.parentElement.parentElement.removeChild(_.parentElement)},E=function(){return(E=(0,i.A)(o().mark(function e(){var n,i;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,r.createThread(t);case 1:if(n=e.sent,i=a.chatOptions){e.next=2;break}throw new Error("replyInThread: missing options");case 2:i.showThread(n,i),T();case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)},C=function(){return E.apply(this,arguments)},k=function(){return k=(0,i.A)(o().mark(function e(n){return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(L.value!==v.store.any(t,l.A.foaf("maker")).value){e.next=1;break}return T(),e.next=1,(0,b.zt)(n,t,r,a);case 1:case"end":return e.stop()}},e)})),k.apply(this,arguments)},A=function(e){return k.apply(this,arguments)},w=function(){return(w=(0,i.A)(o().mark(function e(){var i,c,u;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(i=v.store.any(t,l.A.foaf("maker")),L){e.next=1;break}alert("You can't delete the message, you are not logged in."),e.next=7;break;case 1:if(!L.sameTerm(i)){e.next=6;break}return e.prev=2,e.next=3,r.deleteMessage(t);case 3:e.next=5;break;case 4:e.prev=4,u=e.catch(2),c="Error deleting messaage "+u,s.R8(c),alert(c),(a.statusArea||n.parentNode).appendChild(m.F(g,c));case 5:n.parentNode.removeChild(n),e.next=7;break;case 6:alert("You can't delete the message, you are not logged in as the author, "+i);case 7:T();case 8:case"end":return e.stop()}},e,null,[[2,4]])}))).apply(this,arguments)},y=function(){return w.apply(this,arguments)},_=g.createElement("div"),e.next=1,(0,x.n6)(t).value;case 1:if(I=e.sent,O=l.A.schema("dateDeleted").value,I!==O){e.next=2;break}return e.abrupt("return",_);case 2:if((L=v.authn.currentUser())&&v.store.holds(t,l.A.foaf("maker"),L)&&(_.appendChild(d.Qy(g,_,"message",y)),_.appendChild(d.x6(g,c.Pt.iconBase+"noun_253504.svg","edit",function(){return A(n)}))),(0,h.eD)(a).then(function(e){e&&_.appendChild(e)}),L=v.authn.currentUser(),!(F=L)){e.next=4;break}return e.next=3,(0,x.n6)(t).value;case 3:P=e.sent,D=l.A.schema("dateDeleted").value,F=P!==D;case 4:if(!F){e.next=5;break}N={me:L,dom:g,div:_},_.appendChild(R(N,t,c.Pt.iconBase+"noun_1384132.svg",l.A.schema("AgreeAction"),t.doc(),[l.A.schema("DisagreeAction")])),_.appendChild(R(N,t,c.Pt.iconBase+"noun_1384135.svg",l.A.schema("DisagreeAction"),t.doc(),[l.A.schema("AgreeAction")]));case 5:return v.store.any(t,l.A.dct("created"))&&_.appendChild(d.x6(g,c.Pt.iconBase+"noun-reply-5506924.svg","Reply in thread",(0,i.A)(o().mark(function e(){return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,C();case 1:case"end":return e.stop()}},e)})))),(B=_.appendChild(d.x7(g))).style.float="right",B.firstChild.style.opacity="0.3",B.addEventListener("click",T),e.abrupt("return",_);case 6:case"end":return e.stop()}},e)})),C.apply(this,arguments)}y[l.A.schema("AgreeAction")]="👍",y[l.A.schema("DisagreeAction")]="👎",y[l.A.schema("EndorseAction")]="⭐️",y[l.A.schema("LikeAction")]="❤️"},630(e,t,n){n.d(t,{Od:()=>u,YJ:()=>c,vt:()=>p,yv:()=>s});var a=n(6885),i=n(508),r=n(4721),o=(new TextDecoder("utf-8"),new TextEncoder),s="https://w3id.org/security#";function c(){return{id:"",created:"",dateDeleted:"",content:"",maker:"",sig:""}}function l(e){var t,n=(0,r.sc)(o.encode((t=e,JSON.stringify(t))));return(0,i.My)(n)}function u(e,t,n){return a.ko.verify((0,i.aT)(e),(0,i.aT)(l(t)),(0,i.aT)(n))}function p(e,t){return(0,i.My)(a.ko.sign((0,i.aT)(l(e)),(0,i.aT)(t)))}},8613(e,t,n){n.d(t,{T:()=>p});var a=n(3138),i=n(7423),r=n(3378),o=n(967),s=n(1795),c=n(9612),l=n(3291),u=a.solidLogicSingleton.store;function p(e,t,n){var a=e.dom,p=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;",m=p.appendChild(a.createElement("img")),f=!1;m.setAttribute("src",r.Pt.iconBase+"noun_34653_green.svg"),m.setAttribute("style",d),m.setAttribute("title","Add another tool");var h=function(e){var t=p.appendChild(a.createElement("pre"));t.setAttribute("style","background-color: pink"),t.appendChild(a.createTextNode(e))};function v(e){for(var t=0;t<b.length;t++){var n=d+e;b[t].disabled&&(n+="opacity: 0.3;"),b[t].setAttribute("style",n)}}function x(e){f=!f,m.setAttribute("style",d+(f?"background-color: yellow;":"")),v(f?"":"display: none;")}m.addEventListener("click",x);var b=[],g=Object.values(n).filter(function(e){return e.mintNew}),y=g.reduce(function(e,t){return t.mintClass&&(e[t.mintClass.uri]=(e[t.mintClass.uri]||0)+1),e},{});g.forEach(function(n){var r=e.div.appendChild(a.createElement("img"));r.setAttribute("src",n.icon);var p=n.mintClass?y[n.mintClass.uri]>1?"".concat(c.P(n.mintClass)," (using ").concat(n.name," pane)"):c.P(n.mintClass):n.name+" @@";r.setAttribute("title","Make new "+p),r.setAttribute("style",d+"display: none;"),b.push(r),r.disabled||r.addEventListener("click",function(m){var f;!function(e){v("display: none;"),e.setAttribute("style",d+"background-color: yellow;")}(r),f={event:m,folder:e.folder||null,iconEle:r,pane:n,noun:p,noIndexHTML:!0,div:e.div,me:e.me,dom:e.dom,refreshTarget:e.refreshTarget},new Promise(function(n,r){var p;function d(n,c){(0,o.ensureLoadedProfile)(e).then(function(e){var o=Object.assign({newBase:c,folder:f.folder||void 0,workspace:n},f);for(var l in f)o[l]=f[l];i.Rm("newThingUI: Minting new ".concat(o.pane.name," at ").concat(o.newBase)),f.pane.mintNew(t,o).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("/");i.Rm(" new thing is packge? "+t),t?u.add(e.folder,s.A.ldp("contains"),u.sym(e.newBase),e.folder.doc()):u.add(e.folder,s.A.ldp("contains"),e.newInstance,e.folder.doc()),e.refreshTarget&&e.refreshTarget.refresh&&e.refreshTarget.refresh()}else{var n=f.div.appendChild(a.createElement("p"));n.setAttribute("style","font-size: 120%;"),n.innerHTML="Your <a target='_blank' href='"+e.newInstance.uri+"'><b>new "+f.noun+"</b></a> is ready to be set up. <br/><br/><a target='_blank' href='"+e.newInstance.uri+"'>Go to your new "+f.noun+".</a>"}x()}).catch(function(e){h(e),r(e)})},function(e){h("Error logging on: "+e)})}var m=f.pane;f.noun=m.mintClass?c.P(m.mintClass):m.name,f.appPathSegment=f.noun.slice(0,1).toUpperCase()+f.noun.slice(1),f.folder?l.RG(a,u,f.div,s.A.foaf("name"),null,f.noun).then(function(e){if(e){var t=f.folder.uri;t.endsWith("/")||(t+="/"),d(null,t=t+encodeURIComponent(e)+"/")}else x()}):(p=(0,o.selectWorkspace)(a,{noun:f.noun,appPathSegment:f.appPathSegment},d),f.div.appendChild(p))})})})}},6589(e,t,n){n.d(t,{v:()=>a});var a={newThingUI:n(8613).T}},5912(e,t,n){n.r(t)},7423(e,t,n){function a(){var e;(e=console).log.apply(e,arguments)}function i(){var e;(e=console).warn.apply(e,arguments)}function r(){var e;(e=console).error.apply(e,arguments)}function o(){var e;(e=console).trace.apply(e,arguments)}n.d(t,{R8:()=>i,Rm:()=>a,uP:()=>o,z3:()=>r})},7134(e,t,n){n.d(t,{Ux:()=>l});var a=n(467),i=n(4756),r=n.n(i),o=n(3138),s=n(675),c=n(8565);function l(e,t){return u.apply(this,arguments)}function u(){return(u=(0,a.A)(r().mark(function e(t,n){var a,i,s;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a=document.getElementById("PageFooter")){e.next=1;break}return e.abrupt("return");case 1:return i=(0,c.E6)(),e.next=2,(0,c.bB)(i,t);case 2:s=e.sent,p(a,t,i,s,n)(),o.authSession.events.on("login",p(a,t,i,s,n)),o.authSession.events.on("logout",p(a,t,i,s,n));case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}function p(e,t,n,i,s){return(0,a.A)(r().mark(function a(){var c,l;return r().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return c=o.authn.currentUser(),e.innerHTML="",l=e,a.next=1,d(t,c,n,i,s);case 1:l.appendChild.call(l,a.sent);case 2:case"end":return a.stop()}},a)}))}function d(e,t,n,a,i){var r=document.createElement("div");if(!n||!a||t&&t.equals(a))return r;r.setAttribute("style",s.i.footer);var o=document.createElement("span");o.innerText="You're visiting ";var l=document.createElement("a");l.href=n.uri,l.innerText="the Pod";var u=document.createElement("span");u.innerText=" controlled by ";var p=document.createElement("a");p.href=a.uri,p.innerText=(0,c.mG)(e,a);var d=document.createElement("span");d.innerText=". For more info, check out ";var m=document.createElement("a");m.href=i&&i.solidProjectUrl?i.solidProjectUrl:"https://solidproject.org",m.innerText=i&&i.solidProjectName?i.solidProjectName:"solidproject.org";var f=document.createElement("span");return f.innerText=".",r.appendChild(o),r.appendChild(l),r.appendChild(u),r.appendChild(p),r.appendChild(d),r.appendChild(m),r.appendChild(f),r}},2825(e,t,n){n.d(t,{j:()=>a});var a='\n<svg xmlns="http://www.w3.org/2000/svg" width="26" height="26" viewBox="0 0 26 26" fill="none">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M13 25C19.6274 25 25 19.6274 25 13C25 6.37258 19.6274 1 13 1C6.37258 1 1 6.37258 1 13C1 19.6274 6.37258 25 13 25Z" fill="#D8D8D8" stroke="#8B8B8B"/>\n <mask id="mask0" mask-type="alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="26" height="26">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M13 25C19.6274 25 25 19.6274 25 13C25 6.37258 19.6274 1 13 1C6.37258 1 1 6.37258 1 13C1 19.6274 6.37258 25 13 25Z" fill="white" stroke="white"/>\n </mask>\n <g mask="url(#mask0)">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M17.0468 10.4586C17.0468 14.4979 15.4281 16.9214 12.9999 16.9214C10.5718 16.9214 8.95298 14.4979 8.95298 10.4586C8.95298 6.41931 12.9999 6.41931 12.9999 6.41931C12.9999 6.41931 17.0468 6.41931 17.0468 10.4586ZM4.09668 23.3842C6.52483 17.7293 12.9999 17.7293 12.9999 17.7293C12.9999 17.7293 19.475 17.7293 21.9031 23.3842C21.9031 23.3842 17.8481 25 12.9999 25C8.15169 25 4.09668 23.3842 4.09668 23.3842Z" fill="#8B8B8B"/>\n </g>\n</svg>'},1648(e,t,n){n.d(t,{Of:()=>f});var a=n(467),i=n(4756),r=n.n(i),o=n(3378),s=n(3138),c=n(967),l=n(3291),u=n(675),p=n(2825),d=n(8565),m=o.Pt.iconBase+"noun_help.svg";function f(e,t,n){return h.apply(this,arguments)}function h(){return(h=(0,a.A)(r().mark(function e(t,n,a){var i,o;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(i=document.getElementById("PageHeader")){e.next=1;break}return e.abrupt("return");case 1:o=(0,d.E6)(),v(i,t,o,n,a)(),s.authSession.events.on("logout",v(i,t,o,n,a)),s.authSession.events.on("login",v(i,t,o,n,a));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function v(e,t,n,i,o){return(0,a.A)(r().mark(function a(){var c,l;return r().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return c=s.authn.currentUser(),e.innerHTML="",l=e,a.next=1,x(t,n,c,i,o);case 1:l.appendChild.call(l,a.sent);case 2:case"end":return a.stop()}},a)}))}function x(e,t,n,a,i){return b.apply(this,arguments)}function b(){return(b=(0,a.A)(r().mark(function e(t,n,a,i,o){var s,c,l,p,d,m,f;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((s=document.createElement("a")).href=n.uri,s.setAttribute("style",u.i.headerBannerLink),c=document.createElement("img"),o&&(c.src=o.logo?o.logo:"https://solidproject.org/assets/img/solid-emblem.svg"),c.setAttribute("style",u.i.headerBannerIcon),s.appendChild(c),!a){e.next=2;break}return e.next=1,k(t,a,i);case 1:f=e.sent,e.next=3;break;case 2:f=y();case 3:return l=f,(p=document.createElement("div")).setAttribute("style",u.i.headerBanner),p.appendChild(s),(d=document.createElement("div")).setAttribute("style",u.i.headerBannerRightMenu),d.appendChild(l),o&&o.helpMenuList&&(m=g(o,o.helpMenuList),d.appendChild(m)),p.appendChild(d),e.abrupt("return",p);case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function g(e,t){if(t){var n=document.createElement("ul");n.setAttribute("style",u.i.headerUserMenuList),t.forEach(function(e){"url"===(e.url?"url":"onclick")?n.appendChild(E(A(e.label,e.url,e.target))):n.appendChild(E(w(e.label,e.onclick)))});var a=document.createElement("nav");a.setAttribute("style",u.i.headerUserMenuNavigationMenuNotDisplayed),a.setAttribute("aria-hidden","true"),a.setAttribute("id","helperNav"),a.appendChild(n);var i=document.createElement("div");i.setAttribute("style",u.i.headerBannerUserMenu),i.appendChild(a);var r=document.createElement("button");r.setAttribute("style",u.i.headerUserMenuTrigger),r.type="button";var s=document.createElement("img");s.src=e&&e.helpIcon?e.helpIcon:o.Pt.iconBase+m,s.setAttribute("style",u.i.headerUserMenuTriggerImg),i.appendChild(r),r.appendChild(s);var c=(0,d.nF)(function(e){return T(e,r,a)},50);r.addEventListener("click",c);var l=setTimeout(function(){return null},0);return i.addEventListener("mouseover",function(e){clearTimeout(l),c(e);var t=document.getElementById("helperNav");null==t||t.setAttribute("style",u.i.headerUserMenuNavigationMenu)}),i.addEventListener("mouseout",function(e){l=setTimeout(function(){return c(e)},200);var t=document.getElementById("helperNav");null==t||t.setAttribute("style",u.i.headerUserMenuNavigationMenuNotDisplayed)}),i}}function y(){var e=document.createElement("div");return e.setAttribute("style",u.i.headerBannerLogin),e.appendChild((0,c.loginStatusBox)(document,null,{})),e}function w(e,t){var n=document.createElement("button");return n.setAttribute("style",u.i.headerUserMenuButton),n.onmouseover=function(){n.setAttribute("style",u.i.headerUserMenuButtonHover)},n.onmouseout=function(){n.setAttribute("style",u.i.headerUserMenuButton)},n.addEventListener("click",t),n.innerText=e,n}function A(e,t,n){var a=document.createElement("a");return a.setAttribute("style",u.i.headerUserMenuLink),a.onmouseover=function(){a.setAttribute("style",u.i.headerUserMenuLinkHover)},a.onmouseout=function(){a.setAttribute("style",u.i.headerUserMenuLink)},a.href=t,a.innerText=e,n&&(a.target=n),a}function k(e,t,n){return C.apply(this,arguments)}function C(){return(C=(0,a.A)(r().mark(function e(t,n,a){var i,o,s,c,l,p,m,f;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(i=t.fetcher)){e.next=1;break}return e.next=1,i.load(n);case 1:return(o=document.createElement("ul")).setAttribute("style",u.i.headerUserMenuList),a&&a.forEach(function(e){"url"===(e.url?"url":"onclick")?o.appendChild(E(A(e.label,e.url,e.target))):o.appendChild(E(w(e.label,e.onclick)))}),(s=document.createElement("nav")).setAttribute("style",u.i.headerUserMenuNavigationMenuNotDisplayed),s.setAttribute("aria-hidden","true"),s.setAttribute("id","loggedInNav"),s.appendChild(o),(c=document.createElement("button")).setAttribute("style",u.i.headerUserMenuTrigger),c.type="button","string"==typeof(l=_(t,n))?c.innerHTML=l:c.appendChild(l),(p=document.createElement("div")).setAttribute("style",u.i.headerBannerUserMenuNotDisplayed),p.appendChild(c),p.appendChild(s),m=(0,d.nF)(function(e){return T(e,c,s)},50),c.addEventListener("click",m),f=setTimeout(function(){return null},0),p.addEventListener("mouseover",function(e){clearTimeout(f),m(e);var t=document.getElementById("loggedInNav");null==t||t.setAttribute("style",u.i.headerUserMenuNavigationMenu)}),p.addEventListener("mouseout",function(e){f=setTimeout(function(){return m(e)},200);var t=document.getElementById("loggedInNav");null==t||t.setAttribute("style",u.i.headerUserMenuNavigationMenuNotDisplayed)}),e.abrupt("return",p);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function E(e){var t=document.createElement("li");return t.setAttribute("style",u.i.headerUserMenuListItem),t.appendChild(e),t}function _(e,t){var n=null;try{if(!(n=l.F1(t)))return p.j}catch(e){return p.j}var a=document.createElement("div");return a.setAttribute("style",u.i.headerUserMenuPhoto),a.style.backgroundImage="url(".concat(n,")"),a}function T(e,t,n){var a="true"===t.getAttribute("aria-expanded"),i="mouseover"===e.type,r="mouseout"===e.type;a&&i||!a&&r||(t.setAttribute("aria-expanded",(!a).toString()),n.setAttribute("aria-hidden",a.toString()))}},3378(e,t,n){n.d(t,{LN:()=>o,Pt:()=>r,i1:()=>s});var a=n(7423),i="https://solidos.github.io/solid-ui/src",r=(e=n.hmd(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,a.Rm)(" icons.iconBase is set to : "+r.iconBase);var o=r.iconBase,s=r.originalIconBase},4158(e,t,n){n.r(t),n.d(t,{LogLevel:()=>a,alert:()=>h,clear:()=>v,debug:()=>p,dumpHTML:()=>b,error:()=>m,escapeForXML:()=>w,info:()=>d,logAscending:()=>g,logDescending:()=>y,msg:()=>l,setInternals:()=>A,setLevel:()=>x,success:()=>f,warn:()=>u});var a=function(e){return e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Message=4]="Message",e[e.Success=8]="Success",e[e.Info=16]="Info",e[e.Debug=32]="Debug",e[e.All=63]="All",e}({}),i=7,r=!1,o=document,s=window;function c(e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mesg";if(i&(arguments.length>1&&void 0!==arguments[1]?arguments[1]:4))if(void 0!==o){var n=o.getElementById("status");if(!n)return;var a=o.createElement("span");a.setAttribute("class",t);var s=new Date;a.innerHTML="".concat(s.getHours(),":").concat(s.getMinutes(),":").concat(s.getSeconds()," [").concat(t,"] ").concat(w(e),"<br/>"),r?n.insertBefore(a,n.firstChild):n.appendChild(a)}else"undefined"!=typeof console&&console.log(e)}function l(e){c(e)}function u(e){c(e,2,"warn")}function p(e){c(e,32,"dbug")}function d(e){c(e,16,"info")}function m(e){c(e,1,"eror")}function f(e){c(e,8,"good")}function h(e){s&&void 0!==s.alert?s.alert(e):u(e)}function v(){var e,t=null===(e=o)||void 0===e?void 0:e.getElementById("status");t&&(t.innerHTML="")}function x(e){i=63,p("Log level is now "+e),i=e}function b(){var e;if(o){var t=i;i=63,p((null===(e=o)||void 0===e||null===(e=e.body)||void 0===e?void 0:e.innerHTML)||""),i=t}}function g(){r=!0}function y(){r=!1}function w(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function A(e,t){s=e,o=t}},967(e,t,n){n.r(t),n.d(t,{ensureLoadedPreferences:()=>S,ensureLoadedProfile:()=>R,ensureLoggedIn:()=>j,filterAvailablePanes:()=>W,findAppInstances:()=>B,getUserRoles:()=>G,loginStatusBox:()=>q,newAppInstance:()=>V,registrationControl:()=>F,registrationList:()=>U,renderScopeHeadingRow:()=>D,renderSignInPopup:()=>z,scopeLabel:()=>O,selectWorkspace:()=>H});var a=n(467),i=n(4756),r=n.n(i),o=n(4961),s=n(3138),c=n(7423),l=n(675),u=n(4158),p=n(1795),d=n(6247),m=n(9612),f=n(3291),h=n(3468),v=n(1763);function x(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return b(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,i=function(){};return{s:i,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw r}}}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}s.solidLogicSingleton.store;var g=s.solidLogicSingleton.profile,y=g.loadPreferences,w=g.loadProfile,A=s.solidLogicSingleton.typeIndex,k=A.getScopedAppInstances,C=A.getRegistrations,E=A.loadAllTypeIndexes,_=A.getScopedAppsFromIndex,T=A.deleteTypeIndexRegistration;function j(e){var t=s.authn.currentUser();return t?(s.authn.saveUser(t,e),Promise.resolve(e)):new Promise(function(t){s.authn.checkUser().then(function(n){if(n)return c.Rm("logIn: Already logged in as ".concat(n)),t(e);if(!e.div||!e.dom)return t(e);var a=q(e.dom,function(n){s.authn.saveUser(n,e),t(e)});e.div.appendChild(a)})})}function S(e){return L.apply(this,arguments)}function L(){return(L=(0,a.A)(r().mark(function e(t){var n,a,i;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.preferencesFile){e.next=1;break}return e.abrupt("return",Promise.resolve(t));case 1:return e.prev=1,e.next=2,R(t);case 2:return t=e.sent,e.next=3,y(t.me);case 3:n=e.sent,t.preferencesFile=n,e.next=11;break;case 4:if(e.prev=4,!((i=e.catch(1))instanceof s.UnauthorizedError)){e.next=5;break}a="Oops — you are not authenticated (properly logged in), so SolidOS cannot read your preferences file. Try logging out and then logging back in.",(0,u.alert)(a),e.next=11;break;case 5:if(!(i instanceof s.CrossOriginForbiddenError)){e.next=6;break}return a="Unauthorized: Assuming preference file blocked for origin ".concat(window.location.origin),t.preferencesFileError=a,e.abrupt("return",t);case 6:if(!(i instanceof s.SameOriginForbiddenError)){e.next=7;break}return a="You are not authorized to read your preference file. This may be because you are using an untrusted web app.",c.R8(a),e.abrupt("return",t);case 7:if(!(i instanceof s.NotEditableError)){e.next=8;break}return a="You are not authorized to edit your preference file. This may be because you are using an untrusted web app.",c.R8(a),e.abrupt("return",t);case 8:if(!(i instanceof s.WebOperationError)){e.next=9;break}a="You are not authorized to edit your preference file. This may be because you are using an untrusted web app.",c.R8(a),e.next=11;break;case 9:if(!(i instanceof s.FetchError)){e.next=10;break}a="Strange: Error ".concat(i.status," trying to read your preference file.").concat(i.message),(0,u.alert)(a),e.next=11;break;case 10:throw new Error("(via loadPrefs) ".concat(i));case 11:return e.abrupt("return",t);case 12:case"end":return e.stop()}},e,null,[[1,4]])}))).apply(this,arguments)}function R(e){return N.apply(this,arguments)}function N(){return(N=(0,a.A)(r().mark(function e(t){var n,a;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.publicProfile){e.next=1;break}return e.abrupt("return",t);case 1:return e.prev=1,e.next=2,j(t);case 2:if((n=e.sent).me){e.next=3;break}throw new Error("Could not log in");case 3:return e.next=4,w(n.me);case 4:t.publicProfile=e.sent,e.next=6;break;case 5:throw e.prev=5,a=e.catch(1),t.div&&t.dom&&t.div.appendChild(h.F(t.dom,a.message)),new Error("Can't log in: ".concat(a));case 6:return e.abrupt("return",t);case 7:case"end":return e.stop()}},e,null,[[1,5]])}))).apply(this,arguments)}function B(e,t,n){return I.apply(this,arguments)}function I(){return(I=(0,a.A)(r().mark(function e(t,n,a){var i,o;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.me){e.next=2;break}return e.next=1,k(n,t.me);case 1:o=e.sent,e.next=3;break;case 2:o=[];case 3:return i=o,!0===a?i=i.filter(function(e){return"public"===e.scope.label}):!1===a&&(i=i.filter(function(e){return"private"===e.scope.label})),t.instances=i.map(function(e){return e.instance}),e.abrupt("return",t);case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function O(e,t){var n=e.me&&e.me.sameTerm(t.agent)?"":m.P(t.agent)+" ";return"".concat(n).concat(t.label)}function F(e,t,n){return P.apply(this,arguments)}function P(){return P=(0,a.A)(r().mark(function e(t,n,a){var i,l,u,d,m,f,b,g,y,w,A,k,_;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(l=function(e){var n=i(e.index),a=O(t,e),r="".concat(a," link to this ").concat(t.noun);return v.WY(t.dom,s.solidLogicSingleton.store,r,null,n,y,e.index)},i=function(e){var t=C(n,a),i=t.length?t[0]:v.xV(e);return[(0,o.st)(i,p.A.solid("instance"),n,e),(0,o.st)(i,p.A.solid("forClass"),a,e)]},(u=t.dom)&&t.div){e.next=1;break}throw new Error("registrationControl: need dom and div");case 1:if(d=u.createElement("div"),t.div.appendChild(d),t.me=s.authn.currentUser(),m=t.me){e.next=2;break}return d.innerHTML='<p style="margin:2em;">(Log in to save a link to this)</p>',e.abrupt("return",t);case 2:return e.prev=2,e.next=3,E(m);case 3:f=e.sent,e.next=5;break;case 4:return e.prev=4,_=e.catch(2),t.div&&t.preferencesFileError?(b="(Lists of stuff not available)",t.div.appendChild(u.createElement("p")).textContent=b):t.div&&(b="registrationControl: Type indexes not available: ".concat(_),t.div.appendChild(h.F(t.dom,_))),c.Rm(b),e.abrupt("return",t);case 5:d.innerHTML="<table><tbody></tbody></table>",d.setAttribute("style","font-size: 120%; text-align: right; padding: 1em; border: solid gray 0.05em;"),g=d.children[0].children[0],y=new o.BlankNode,w=x(f);try{for(w.s();!(A=w.n()).done;)k=A.value,g.appendChild(u.createElement("tr")).appendChild(l(k))}catch(e){w.e(e)}finally{w.f()}return e.abrupt("return",t);case 6:case"end":return e.stop()}},e,null,[[2,4]])})),P.apply(this,arguments)}function D(e,t,n){var a=e.dom,i=O(e,n),r=a.createElement("tr"),o=r.appendChild(a.createElement("td"));o.setAttribute("colspan","3"),o.style.backgoundColor={private:"#fee",public:"#efe"}[n.label]||"white";var s=o.appendChild(a.createElement("h3"));return s.textContent=i+" links",s.style.textAlign="left",r}function U(e,t){return M.apply(this,arguments)}function M(){return M=(0,a.A)(r().mark(function e(t,n){var i,o,c,l,u,d,m,h,v,b,g,y,w,A,k,C;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(i=t.dom,o=t.div,c=i.createElement("div"),o.appendChild(c),t.me=s.authn.currentUser(),t.me){e.next=1;break}return c.innerHTML='<p style="margin:2em;">(Log in list your stuff)</p>',e.abrupt("return",t);case 1:return e.next=2,E(t.me);case 2:l=e.sent,c.innerHTML="<table><tbody></tbody></table>",c.setAttribute("style","font-size: 120%; text-align: right; padding: 1em; border: solid #eee 0.5em;"),u=c.firstChild,d=u.firstChild,m=x(l),e.prev=3,m.s();case 4:if((h=m.n()).done){e.next=13;break}return v=h.value,b=D(t,0,v),d.appendChild(b),e.next=5,_(v,n.type||null);case 5:0===(g=e.sent).length&&(b.style.display="none"),y=x(g),e.prev=6,A=r().mark(function e(){var t,n;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t=w.value,n=f.Cl(i,p.A.solid("instance"),t.instance,{deleteFunction:function(){var e=(0,a.A)(r().mark(function e(){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,T(t);case 1:d.removeChild(n);case 2:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}()}),n.children[0].style.paddingLeft="3em",d.appendChild(n);case 1:case"end":return e.stop()}},e)}),y.s();case 7:if((w=y.n()).done){e.next=9;break}return e.delegateYield(A(),"t0",8);case 8:e.next=7;break;case 9:e.next=11;break;case 10:e.prev=10,k=e.catch(6),y.e(k);case 11:return e.prev=11,y.f(),e.finish(11);case 12:e.next=4;break;case 13:e.next=15;break;case 14:e.prev=14,C=e.catch(3),m.e(C);case 15:return e.prev=15,m.f(),e.finish(15);case 16:return e.abrupt("return",t);case 17:case"end":return e.stop()}},e,null,[[3,14,15,16],[6,10,11,12]])})),M.apply(this,arguments)}function z(e){var t=e.createElement("div");t.setAttribute("style","position: fixed; top: 0; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; align-items: center;"),e.body.appendChild(t);var n=e.createElement("div");n.setAttribute("style","\n background-color: white;\n box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.2);\n -webkit-box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.2);\n -moz-box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.2);\n -o-box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.2);\n border-radius: 4px;\n min-width: 400px;\n padding: 10px;\n z-index : 10;\n "),t.appendChild(n);var i=e.createElement("div");i.setAttribute("style","\n border-bottom: 1px solid #DDD;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n "),n.appendChild(i);var o=e.createElement("label");o.setAttribute("style","margin-right: 5px; font-weight: 800"),o.innerText="Select an identity provider";var c=e.createElement("button");c.innerHTML='<img src="https://solidos.github.io/solid-ui/src/icons/noun_1180156.svg" style="width: 2em; height: 2em;" title="Cancel">',c.setAttribute("style","background-color: transparent; border: none;"),c.addEventListener("click",function(){t.remove()}),i.appendChild(o),i.appendChild(c);var l=function(){var e=(0,a.A)(r().mark(function e(t){var n,a,i;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,s.solidLogicSingleton.store.updater.flagAuthorizationMetadata(),(n=new URL(window.location.href).hash)&&window.localStorage.setItem("preLoginRedirectHash",n),window.localStorage.setItem("loginIssuer",t),(a=new URL(window.location.href)).hash="",e.next=1,s.authSession.login({redirectUrl:a.href,oidcIssuer:t});case 1:e.next=3;break;case 2:e.prev=2,i=e.catch(0),(0,u.alert)(i.message);case 3:case"end":return e.stop()}},e,null,[[0,2]])}));return function(t){return e.apply(this,arguments)}}(),p=e.createElement("div");p.setAttribute("style","\n border-bottom: 1px solid #DDD;\n display: flex;\n flex-direction: column;\n padding-top: 10px;\n ");var d=e.createElement("div");d.setAttribute("style","\n display: flex;\n flex-direction: row;\n ");var m=e.createElement("label");m.innerText="Enter the URL of your identity provider:",m.setAttribute("style","color: #888");var f=e.createElement("input");f.setAttribute("type","text"),f.setAttribute("style","margin-left: 0 !important; flex: 1; margin-right: 5px !important"),f.setAttribute("placeholder","https://example.com"),f.value=localStorage.getItem("loginIssuer")||"";var h=e.createElement("button");h.innerText="Go",h.setAttribute("style","margin-top: 12px; margin-bottom: 12px;"),h.addEventListener("click",function(){l(f.value)}),p.appendChild(m),d.appendChild(f),d.appendChild(h),p.appendChild(d),n.appendChild(p);var v=e.createElement("div");v.setAttribute("style","\n display: flex;\n flex-direction: column;\n padding-top: 10px;\n ");var x=e.createElement("label");x.innerText="Or pick an identity provider from the list below:",x.setAttribute("style","color: #888"),v.appendChild(x),(0,s.getSuggestedIssuers)().forEach(function(t){var n=e.createElement("button");n.innerText=t.name,n.setAttribute("style","height: 38px; margin-top: 10px"),n.addEventListener("click",function(){l(t.uri)}),v.appendChild(n)}),n.appendChild(v)}function q(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=(0,s.offlineTestID)(),i=e.createElement("div");function r(e){e&&(a=s.authn.saveUser(e),i.refresh(),t&&t(a.uri))}function o(e){var n=a;s.authSession.logout().then(function(){var e="Your WebID was ".concat(n,". It has been forgotten.");a=null;try{(0,u.alert)(e)}catch(t){window.alert(e)}i.refresh(),t&&t(null)},function(e){(0,u.alert)("Fail to log out:"+e)})}function m(){a=s.authn.currentUser(),i.refresh()}return i.refresh=function(){var t=s.authSession.info;((a=t&&t.webId&&t.isLoggedIn?s.solidLogicSingleton.store.sym(t.webId):null)&&i.me!==a.uri||!a&&i.me)&&(f.EW(i),a?i.appendChild(function(t,n){var a=n.buttonStyle||l.i.signInAndUpButtonStyle,i="WebID logout";if(t){var r=s.solidLogicSingleton.store.any(t,p.A.foaf("nick"))||s.solidLogicSingleton.store.any(t,p.A.foaf("name"));r&&(i="Logout "+r.value)}var c=e.createElement("input");return c.setAttribute("type","button"),c.setAttribute("value",i),c.setAttribute("style","".concat(a)),c.addEventListener("click",o,!1),c}(a,n)):i.appendChild(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=(n=n||{}).buttonStyle||l.i.signInAndUpButtonStyle,i=e.createElement("div"),r="SolidSignInOrSignUpBox";c.Rm("widgets.signInOrSignUpBox"),i.setUserCallback=t,i.setAttribute("class",r),i.setAttribute("style","display:flex;");var o=e.createElement("input");i.appendChild(o),o.setAttribute("type","button"),o.setAttribute("value","Log in"),o.setAttribute("style","".concat(a).concat(l.i.headerBannerLoginInput)+l.i.signUpBackground),s.authSession.events.on("login",function(){var t=s.authn.currentUser();if(t){var n=t.uri,a=e.getElementsByClassName(r);c.Rm("Logged in, ".concat(a.length," panels to be serviced"));for(var i=0;i<a.length;i++){var o=a[i];if(o.setUserCallback)try{o.setUserCallback(n);var l=o.parentNode;l&&l.removeChild(o)}catch(t){c.Rm("## Error satisfying login box: ".concat(t)),o.appendChild(h.F(e,t))}}}}),o.addEventListener("click",function(){var n=(0,s.offlineTestID)();if(n)return t(n.uri);z(e)},!1);var u=e.createElement("input");return i.appendChild(u),u.setAttribute("type","button"),u.setAttribute("value","Sign Up for Solid"),u.setAttribute("style","".concat(a).concat(l.i.headerBannerLoginInput)+l.i.signInBackground),u.addEventListener("click",function(e){(new d.l).signup().then(function(e){c.Rm("signInOrSignUpBox signed up "+e),t(e)})},!1),i}(e,r,n))),i.me=a?a.uri:null},i.refresh(),m(),s.authSession.events.on("login",m),s.authSession.events.on("logout",m),i.me="99999",i.refresh(),i}function H(e,t,n){var i=t.noun,u=t.appPathSegment,d=(0,s.offlineTestID)(),m=e.createElement("div"),x={me:d,dom:e,div:m};function b(t,n){m.appendChild(h.F(e,t,n))}function g(e){var t,n=s.solidLogicSingleton.store.any(e,p.A.space("uriPrefix"));"/"!==(t=n?n.value:e.uri.split("#")[0]).slice(-1)&&(c.Rm("".concat(u,": No / at end of uriPrefix ").concat(t)),t="".concat(t,"/"));var a=new Date;return t+="".concat(u,"/id").concat(a.getTime(),"/")}return S(x).then(function(t){function c(){return c=(0,a.A)(r().mark(function n(a){var i,c,l,u,d,m;return r().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return i=w.appendChild(e.createElement("tr")),(c=i.appendChild(e.createElement("td"))).setAttribute("colspan","3"),c.style.padding="0.5em",m=encodeURI,n.next=1,f.RG(e,s.solidLogicSingleton.store,c,p.A.solid("URL"),p.A.space("Workspace"),"Workspace");case 1:if(l=m(n.sent),u=v.xV(t.preferencesFile),d=[(0,o.st)(t.me,p.A.space("workspace"),u,t.preferencesFile),(0,o.st)(u,p.A.space("uriPrefix"),l,t.preferencesFile)],s.solidLogicSingleton.store.updater){n.next=2;break}throw new Error("store has no updater");case 2:return n.next=3,s.solidLogicSingleton.store.updater.update([],d);case 3:case"end":return n.stop()}},n)})),c.apply(this,arguments)}var u=t.me,d=t.preferencesFile,h=null,x=s.solidLogicSingleton.store.each(u,p.A.space("workspace"),void 0,d),y=s.solidLogicSingleton.store.each(u,p.A.space("storage"));0===x.length&&y&&(b("You don't seem to have any workspaces. You have ".concat(y.length," storage spaces."),"white"),y.map(function(e){return x=x.concat(s.solidLogicSingleton.store.each(e,p.A.ldp("contains")))}).filter(function(e){return e.id?["public","private"].includes(e.id().toLowerCase()):""})),1===x.length&&(b("Workspace used: ".concat(x[0].uri),"white"),h=g(x[0]));var w=e.createElement("table");w.setAttribute("style","border-collapse:separate; border-spacing: 0.5em;"),m.appendChild(w),m.appendChild(e.createElement("hr"));var A=m.appendChild(e.createElement("p"));A.setAttribute("style",l.i.commentStyle),A.textContent="Where would you like to store the data for the ".concat(i,"?\n Give the URL of the folder where you would like the data stored.\n It can be anywhere in solid world - this URI is just an idea.");var k=m.appendChild(e.createElement("input"));k.setAttribute("type","text"),k.setAttribute("style",l.i.textInputStyle),k.size=80,k.label="base URL",k.autocomplete="on",h&&(k.value=h),t.baseField=k,m.appendChild(e.createElement("br"));var C,E,_,T,j,S,L,R=m.appendChild(e.createElement("button"));R.setAttribute("style",l.i.buttonStyle),R.textContent="Start new ".concat(i," at this URI"),R.addEventListener("click",function(e){var t=k.value.replace(" ","%20");"/"!==t.slice(-1)&&(t+="/"),n(null,t)}),x=x.filter(function(e){return!s.solidLogicSingleton.store.holds(e,p.A.rdf("type"),p.A.space("MasterWorkspace"))});for(var N="height: 3em; margin: 1em; padding: 1em white; border-radius: 0.3em;",B="".concat(N,"border: 0px;"),I=0;I<x.length;I++){if(j=x[I],T=e.createElement("tr"),0===I&&((C=e.createElement("td")).setAttribute("rowspan","".concat(x.length)),C.textContent="Choose a workspace for this:",C.setAttribute("style","vertical-align:middle;"),T.appendChild(C)),E=e.createElement("td"),!(S=s.solidLogicSingleton.store.anyValue(j,p.A.ui("style")))){var O="#".concat((16777215&function(e){return e.split("").reduce(function(e,t){return(e=(e<<5)-e+t.charCodeAt(0))&e},0)}(j.uri)|12632256).toString(16));S="color: black ; background-color: ".concat(O,";")}E.setAttribute("style",B+S),T.target=j.uri;var F=s.solidLogicSingleton.store.any(j,p.A.rdfs("label"));F||(F=j.uri.split("/").slice(-1)[0]||j.uri.split("/").slice(-2)[0]),E.textContent=F||"???",T.appendChild(E),0===I&&((_=e.createElement("td")).setAttribute("rowspan","".concat(x.length,"1")),_.setAttribute("style","width:50%;"),T.appendChild(_)),w.appendChild(T),L=(L=s.solidLogicSingleton.store.any(j,p.A.rdfs("comment")))?L.value:"Use this workspace",E.addEventListener("click",function(t){_.textContent=L?L.value:"",_.setAttribute("style",B+S);var a=e.createElement("button");a.textContent="Continue";var i=g(j);k.value=i,a.addEventListener("click",function(e){a.disabled=!0,n(j,i),a.textContent="----\x3e"},!0),_.appendChild(a)},!0)}var P=e.createElement("tr");(E=e.createElement("td")).setAttribute("style",N),E.textContent="+ Make a new workspace",E.addEventListener("click",function(e){return c.apply(this,arguments)}),P.appendChild(E),w.appendChild(P)}).catch(function(e){m.appendChild(h.F(x.dom,e))}),m}function V(e,t,n){var a=function(e,t){n(e,t)},i=e.createElement("div"),r=e.createElement("button");return r.setAttribute("type","button"),i.appendChild(r),r.innerHTML="Make new ".concat(t.noun),r.addEventListener("click",function(n){i.appendChild(H(e,t,a))},!1),i.appendChild(r),i}function G(){return Z.apply(this,arguments)}function Z(){return(Z=(0,a.A)(r().mark(function e(){var t,n,a,i,o;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,S({});case 1:if(t=e.sent,n=t.me,a=t.preferencesFile,i=t.preferencesFileError,a&&!i){e.next=2;break}throw new Error(i);case 2:return e.abrupt("return",s.solidLogicSingleton.store.each(n,p.A.rdf("type"),null,a.doc()));case 3:return e.prev=3,o=e.catch(0),c.R8("Unable to fetch your preferences - this was the error: ",o),e.abrupt("return",[]);case 4:case"end":return e.stop()}},e,null,[[0,3]])}))).apply(this,arguments)}function W(e){return J.apply(this,arguments)}function J(){return(J=(0,a.A)(r().mark(function e(t){var n;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,G();case 1:return n=e.sent,e.abrupt("return",t.filter(function(e){return $(e,n)}));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function $(e,t){return(e.audience||[]).reduce(function(e,n){return e&&!!t.find(function(e){return e.equals(n)})},!0)}s.authSession.events.on("logout",(0,a.A)(r().mark(function e(){var t,n,a,i;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=window.localStorage.getItem("loginIssuer"))){e.next=6;break}return e.prev=1,s.solidLogicSingleton.store.updater.flagAuthorizationMetadata(),(n=new URL(t)).pathname="/.well-known/openid-configuration",e.next=2,fetch(n.toString());case 2:if(200!==(a=e.sent).status){e.next=4;break}return e.next=3,a.json();case 3:if(!(i=e.sent)||!i.end_session_endpoint){e.next=4;break}return e.next=4,fetch(i.end_session_endpoint,{credentials:"include"});case 4:e.next=6;break;case 5:e.prev=5,e.catch(1);case 6:window.location.reload();case 7:case"end":return e.stop()}},e,null,[[1,5]])})))},7580(e,t,n){n.d(t,{U:()=>a});var a={matrixForQuery:n(7659).p}},7659(e,t,n){n.d(t,{p:()=>o});var a=n(9612),i=n(4961),r=n(3138).solidLogicSingleton.store;function o(e,t,n,o,s,c,l){var u=e.createElement("table"),p=e.createElement("tr");p.appendChild(e.createElement("td")).setAttribute("class","MatrixCorner"),u.appendChild(p),u.lastHeader=p;var d=[],m=[],f=function(e,t,n,i){for(;e.firstChild;)e.removeChild(e.firstChild);e.setAttribute("style",""),e.style.textAlign="center",c.cellFunction?c.cellFunction(e,t,n,i):(e.textContent=a.P(i),e.setAttribute("style","padding: 0.3em")),delete e.old},h=function(t){var n=t.toNT();if(m[n])return m[n];var o=e.createElement("tr"),s=o.appendChild(e.createElement("td"));s.setAttribute("style","padding: 0.3em;"),s.textContent=a.P(t),"NamedNode"===t.termType&&r.fetcher.nowOrWhenFetched(t.uri.split("#")[0],void 0,function(e,n,i){e&&(s.textContent=a.P(t))});for(var l=0;l<d.length;l++)f(o.appendChild(e.createElement("td")),i.fromNT(d[l]),t,null);o.dataValueNT=n,m[n]=o;for(var p=u.lastHeader.nextSibling;p;p=p.nextSibling)if(n>p.dataValueNT&&c&&c.yDecreasing||n<p.dataValueNT&&(!c||!c.yDecreasing))return u.insertBefore(o,p);return u.appendChild(o)},v=function(t){for(var n=t.toNT(),r=null,o=0;o<d.length;o++){if(d[o]===n)return o;if(n>d[o]&&c.xDecreasing||n<d[o]&&!c.xDecreasing){d=d.slice(0,o).concat([n]).concat(d.slice(o)),r=o;break}}null===r&&(r=d.length,d.push(n));for(var s=u.firstChild;s;s=s.nextSibling){var l=s.dataValueNT,p=e.createElement("td");if(p.style.textAlign="center",s===u.firstChild?p.textContent=a.P(t):f(p,t,i.fromNT(l),null),r===d.length-1)s.appendChild(p);else{for(var m=s.firstChild,h=0;h<r+1;h++)m=m.nextSibling;s.insertBefore(p,m)}}return r},x=function(){var e,t,n=[],a=[];if(c.set_y)for(var r=0;r<c.set_y.length;r++)a[c.set_y[r]]=!0;if(c.set_x)for(var o=0;o<c.set_x.length;o++)n[v(c.set_x[o])+1]=!0;for(var s=1;s<u.children.length;s++){e=u.children[s];for(var l=1;l<e.children.length;l++)if((t=e.children[l]).old){var p=i.fromNT(e.dataValueNT),h=i.fromNT(d[l-1]);f(t,h,p,null)}else a[e.dataValueNT]=!0,n[l]=!0}for(var x=0;x<u.children.length;x++)if(e=u.children[x],x>0&&!a[e.dataValueNT])delete m[e.dataValueNT],u.removeChild(e);else for(var b=e.children.length-1;b>0;b--){var g=e.children[b];n[b]||e.removeChild(g)}for(var y=[],w=0;w<d.length;w++)n[w+1]&&y.push(d[w]);d=y};u.refresh=function(){!function(){for(var e=1;e<u.children.length;e++)for(var t=u.children[e],n=1;n<t.children.length;n++)t.children[n].old=!0}(),r.query(t,b,void 0,x)};var b=function(e){var t=e[n.toString()],a=e[o.toString()],i=e[s.toString()],r=h(a),c=v(t),l=r.children[c+1];f(l,t,a,i)};if(c.set_y)for(var g=0;g<c.set_y.length;g++)h(c.set_y[g]);if(c.set_x)for(var y=0;y<c.set_x.length;y++)v(c.set_x[y]);return r.query(t,b,void 0,l),u}},6127(e,t,n){n.d(t,{$:()=>i});var a=n(7008),i={cameraCaptureControl:a.V,cameraButton:a.Y}},7008(e,t,n){n.d(t,{V:()=>d,Y:()=>m});var a=n(467),i=n(4756),r=n.n(i),o=n(7423),s=n(3378),c=n(675),l=n(3291),u=s.Pt.iconBase+"noun_Camera_1618446_000000.svg",p=s.Pt.iconBase+"noun_479395.svg";function d(e,t,n,a){var i,r,u,d,m=e.createElement("div"),f=m.appendChild(e.createElement("table")),h=f.appendChild(e.createElement("tr")).appendChild(e.createElement("td"));h.setAttribute("colspan","4");var v=f.appendChild(e.createElement("tr"));v.appendChild(e.createElement("td")).appendChild(l.x7(e)).addEventListener("click",function(e){A(),a(null)});var x=v.appendChild(e.createElement("td")).appendChild(l.x6(e,p,"Retake"));x.addEventListener("click",function(e){h.removeChild(d),y()}),x.style.visibility="collapse";var b=v.appendChild(e.createElement("td")).appendChild(l.x6(e,s.Pt.iconBase+"noun_10636.svg","Snap"));b.addEventListener("click",function(){(d=e.createElement("canvas")).setAttribute("width",c.i.canvasWidth),d.setAttribute("height",c.i.canvasHeight),d.setAttribute("style",c.i.controlStyle),h.appendChild(d),d.getContext("2d").drawImage(u,0,0,d.width,d.height),u.parentNode.removeChild(u),d.toBlob(function(e){var t="got blob type ".concat(e.type," size ").concat(e.size);o.Rm(t),i=n(),r=e,g.style.visibility="visible",x.style.visibility="visible",b.style.visibility="collapse"},"image/png")}),b.style.visibility="collapse";var g=v.appendChild(e.createElement("td")).appendChild(l.kz(e));function y(){if((u=h.appendChild(e.createElement("video"))).setAttribute("controls","1"),u.setAttribute("autoplay","1"),u.setAttribute("style",c.i.controlStyle),!navigator.mediaDevices)throw new Error("navigator.mediaDevices not available");navigator.mediaDevices.getUserMedia(w).then(function(e){u.srcObject=e,b.style.visibility="visible",g.style.visibility="collapse",x.style.visibility="collapse"})}g.addEventListener("click",function(e){!function(e,n){var i=e.type;o.Rm("Putting "+e.size+" bytes of "+i+" to "+n),t.fetcher.webOperation("PUT",n.uri,{data:e,contentType:i}).then(function(e){o.Rm("ok saved "+n),A(),a(n)},function(e){A(),alert(e)})}(r,i)}),g.style.visibility="collapse";var w={video:!0};function A(){u&&u.srcObject&&u.srcObject.getVideoTracks().forEach(function(e){return e.stop()})}return y(),m}function m(e,t,n,i){var o,s=e.createElement("div"),c=l.x6(e,u,"Take picture");function p(e){return m.apply(this,arguments)}function m(){return(m=(0,a.A)(r().mark(function e(t){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:s.removeChild(o),s.appendChild(c),i(t);case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}return s.appendChild(c),c.addEventListener("click",function(a){s.removeChild(c),o=d(e,t,n,p),s.appendChild(o)}),s}},8516(e,t,n){n.d(t,{v:()=>d});var a=n(3378),i=n(967),r=n(3138),o=n(1795),s=n(4961),c=n(675),l=n(9612),u=n(4608),p={icons:a.Pt,ns:o.A,rdf:s,style:c.i,widgets:u};function d(e,t,n,a,o){t=t||r.solidLogicSingleton.store,a=a.doc();var c,u,d=p.ns,m=s.Namespace("http://www.w3.org/2005/01/wf/flow#"),f=s.Namespace("http://purl.org/dc/terms/"),h=!!(o=o||{}).newestFirst,v="white-space: pre-wrap; width: 90%; font-size:100%; border: 0.07em solid #eee; padding: .2em 0.5em; margin: 0.1em 1em 0.1em 1em;",x=e.createElement("div"),b=r.solidLogicSingleton.store.updater,g=function(t,n){var a=e.createElement("a");return n&&n.uri&&(a.setAttribute("href",n.uri),a.addEventListener("click",p.widgets.openHrefInOutlineMode,!0),a.setAttribute("style","color: #3B5998; text-decoration: none; ")),a.textContent=t,a},y=function(t,n){var a=e.createElement("pre");return a.setAttribute("style",n||"color: grey"),x.appendChild(a),a.appendChild(e.createTextNode(t)),a},w=function(e){y(e,"color: #800;")};function A(e){var t=r.solidLogicSingleton.store.any(e,p.ns.foaf("nick"));return t?""+t.value:""+l.P(e)}function k(t,n,a,i){var o=t.appendChild(g(A(n),n));n.uri&&r.solidLogicSingleton.store.fetcher.nowOrWhenFetched(n.doc(),void 0,function(e,t){o.textContent=A(n)}),t.appendChild(e.createElement("br")),t.appendChild(g(a,i))}function C(e,n){var a,i,r={};for(a=n.firstChild;a;a=a.nextSibling)a.AJAR_subject&&(r[a.AJAR_subject.uri]=!0);var o=t.each(e,d.wf("message")),s={};for(o.forEach(function(e){s[e.uri]=!0,r[e.uri]||E(e)}),a=n.firstChild;a;)i=a.nextSibling,a.AJAR_subject&&!s[a.AJAR_subject.uri]&&n.removeChild(a),a=i}var E=function(e){var n={"?msg":e,"?creator":t.any(e,d.foaf("maker")),"?date":t.any(e,f("created")),"?content":t.any(e,d.sioc("content"))};_(n,!0)},_=function(a,i){var r=a["?creator"],o=a["?msg"],s=a["?date"],l=a["?content"],u=s.value,d=e.createElement("tr");d.AJAR_date=u,d.AJAR_subject=o;for(var m=!1,f=c.firstChild;f;f=f.nextSibling)if(u>f.AJAR_date&&h||u<f.AJAR_date&&!h){c.insertBefore(d,f),m=!0;break}m||c.appendChild(d);var x=e.createElement("td");d.appendChild(x),k(x,r,p.widgets.shortDate(u),o);var g=e.createElement("td");d.appendChild(g);var y=e.createElement("p");y.setAttribute("style",v+(i?"background-color: #e8ffe8;":"background-color: #white;")),g.appendChild(y),y.textContent=l.value;var A=e.createElement("td");d.appendChild(A);var E=e.createElement("button");A.appendChild(E),E.textContent="-",d.setAttribute("class","hoverControl"),E.setAttribute("class","hoverControlHide"),E.setAttribute("style","color: red;"),E.addEventListener("click",function(a){A.removeChild(E);var i=e.createElement("button");i.textContent="cancel",A.appendChild(i).addEventListener("click",function(e){A.removeChild(r),A.removeChild(i),A.appendChild(E)},!1);var r=e.createElement("button");r.textContent="Delete message",A.appendChild(r).addEventListener("click",function(e){A.removeChild(r),A.removeChild(i),function(e){var a=t.statementsMatching(e).concat(t.statementsMatching(void 0,void 0,e));b.update(a,[],function(e,t,a){t?C(n,c):w("Cant delete messages:"+a)})}(o)},!1)},!1)};(c=e.createElement("table")).fresh=!1,x.appendChild(c),c.setAttribute("style","width: 100%;");var T,j=function(){var r=e.createElement("tr"),o=e.createElement("td"),c=e.createElement("td"),l=e.createElement("td");r.appendChild(o),r.appendChild(c),r.appendChild(l),r.AJAR_date="9999-01-01T00:00:00Z";var m,h,x=function(){m.setAttribute("class","pendingedit"),m.disabled=!0;var i=[],o=new Date,c=""+o.getTime(),l=s.term(o),h=t.sym(a.uri+"#Msg"+c);i.push(new s.Statement(n,d.wf("message"),h,a)),i.push(new s.Statement(h,d.sioc("content"),t.literal(m.value),a)),i.push(new s.Statement(h,f("created"),l,a)),u&&i.push(new s.Statement(h,d.foaf("maker"),u,a));b.update([],i,function(n,a,i){if(a){var o={"?msg":h,"?content":t.literal(m.value),"?date":l,"?creator":u};_(o,!1),m.value="",m.setAttribute("class",""),m.disabled=!1}else r.appendChild(p.widgets.errorMessageBlock(e,"Error writing message: "+i))})};r.appendChild(e.createElement("br"));var g={div:c,dom:e};return i.ensureLoggedIn(g).then(function(t){u=t.me,k(o,u,"",null),m=e.createElement("textarea"),c.innerHTML="",c.appendChild(m),m.rows=3,m.setAttribute("style",v+"background-color: #eef;"),m.addEventListener("keyup",function(e){13===e.keyCode&&(e.altKey||x())},!1),l.innerHTML="",(h=p.widgets.button(e,p.icons.iconBase+"noun_383448.svg","Send")).setAttribute("style",p.style.buttonStyle+"float: right;"),h.addEventListener("click",x,!1),l.appendChild(h)}),r}();if(h?c.insertBefore(j,c.firstChild):c.appendChild(j),o.query)T=o.query;else{T=new s.Query("Messages");var S={};["msg","date","creator","content"].forEach(function(e){T.vars.push(S[e]=s.variable(e))}),T.pat.add(n,m("message"),S.msg),T.pat.add(S.msg,d.dct("created"),S.date),T.pat.add(S.msg,d.foaf("maker"),S.creator),T.pat.add(S.msg,d.sioc("content"),S.content)}return t.query(T,_,void 0,function(){c.fresh=!0}),x.refresh=function(){C(n,c)},x}},1795(e,t,n){n.d(t,{A:()=>o});var a=n(5386),i=n.n(a),r=n(4961);const o=i()(r)},8153(e,t,n){n.r(t),n.d(t,{getChunks:()=>v,lightColorHash:()=>f,manageParticipation:()=>p.manageParticipation,notepad:()=>h,notepadToHTML:()=>b,participationObject:()=>p.participationObject,recordParticipation:()=>p.recordParticipation,renderParticipants:()=>p.renderParticipants,xmlEncode:()=>x});var a=n(1795),i=n(4961),r=n(3468),o=n(1763),s=n(52),c=n(7423),l=n(3138),u=n(675),p=n(3605);var d=l.solidLogicSingleton.store,m=(0,i.Namespace)("http://www.w3.org/ns/pim/pad#");function f(e){var t;return e&&e.uri?"#"+(16777215&(t=e.uri,t.split("").reduce(function(e,t){return(e=(e<<5)-e+t.charCodeAt(0))&e},0))|12632256).toString(16):"#ffffff"}function h(e,t,n,l,p){var m=(p=p||{}).exists,h=e.createElement("table"),v=d;if(l&&!l.uri)throw new Error("UI.pad.notepad: Invalid userid");var x=d.updater,b=(0,i.Namespace)("http://www.w3.org/ns/pim/pad#");h.setAttribute("style",u.i.notepadStyle);var g=null,y=null;if(p.statusArea){var w=p.statusArea.appendChild(e.createElement("table")).appendChild(e.createElement("tr"));g=w.appendChild(e.createElement("td")),y=w.appendChild(e.createElement("td")),g&&g.setAttribute("style",u.i.upstreamStatus),y&&y.setAttribute("style",u.i.downstreamStatus)}var A=function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,c.Rm)(t),p.statusArea&&(n?g:y).appendChild((0,r.F)(e,t,"pink"))},k=function(e){p.statusArea&&(p.statusArea.innerHTML="")},C=function(e,t,n){var i=e.subject;t=t||"";var r=u.i.baseStyle,o=u.i.headingCore,s=u.i.headingStyle,c=v.any(i,a.A.dc("author"));!t&&c&&(t="color: "+(n?"#888":"black")+"; background-color: "+f(c)+";");var l=v.any(i,b("indent")),p=(l=l?l.value:0)>=0?r+"text-indent: "+3*l+"em;":o+s[-1-l];e.setAttribute("style",p+t)},E=function(e){var a=e.subject;if(!a)throw new Error("No chunk for line to be deleted!");var r=v.any(void 0,b("next"),a),o=v.any(a,b("next"));if(r.sameTerm(n)&&o.sameTerm(n))(0,c.Rm)("You can't delete the only line.");else{var l=v.statementsMatching(a,void 0,void 0,t).concat(v.statementsMatching(void 0,void 0,a,t)),u=[(0,i.st)(r,b("next"),o,t)];if(a instanceof i.NamedNode){var p=a.uri.slice(-4);(0,c.Rm)("Deleting line "+p)}if(!x)throw new Error("have no updater");x.update(l,u,function(t,n,i,r){if(n){var o=e.parentNode;if(o){var u=o.previousSibling;o.parentNode&&o.parentNode.removeChild(o),u&&u.firstChild&&u.firstChild.focus()}}else if(r&&409===r.status)C(e,"color: black; background-color: #ffd;"),e.state=0,(0,s.beep)(.5,512),setTimeout(function(){B()},1e3);else{(0,c.Rm)(" removePart FAILED "+a+": "+i),(0,c.Rm)(" removePart was deleting :'"+l),C(e,"color: black; background-color: #fdd;");var p=r?r.status:" [no response field] ";A("Error "+p+" saving changes: "+String(i))}})}},_=function(e,n){var r=null;e.addEventListener("keydown",function(a){if(!x)throw new Error("no updater");var r,o;switch(a.keyCode){case 13:var s=a.shiftKey;if((0,c.Rm)("enter"),s?(o=v.any(void 0,b("next"),n),r="newlinesAfter"):(o=v.any(n,b("next")),r="newlinesBefore"),o[r]=o[r]||0,o[r]+=1,o[r]>1)return void(0,c.Rm)(" queueing newline queue = "+o[r]);(0,c.Rm)(" go ahead line before "+o[r]),j(e,s);break;case 8:if(0===e.value.length)switch((0,c.Rm)("Delete key line "+n.uri.slice(-4)+" state "+e.state),e.state){case 1:case 2:return void(e.state=4);case 3:case 4:return;case void 0:case 0:e.state=3,E(e),a.preventDefault();break;default:throw new Error("pad: Unexpected state "+e)}break;case 9:var l=a.shiftKey?-1:1;!function(e,n,a){var r=v.statementsMatching(n,b("indent")),o=r.length?Number(r[0].object.value):0;if(!(o+a<-3)){var s=o+a,l=(0,i.st)(n,b("indent"),s,t);if(!x)throw new Error("no updater");x.update(r,l,function(n,a,i){a?C(e):((0,c.Rm)("Indent change FAILED '"+s+"' for "+t+": "+i),C(e,"color: black; background-color: #fdd;"),x.requestDownstreamAction(t,B))})}}(e,n,l),a.preventDefault();break;case 27:(0,c.Rm)("escape"),x.requestDownstreamAction(t,B),a.preventDefault();break;case 38:e.parentNode.previousSibling&&(e.parentNode.previousSibling.firstChild.focus(),a.preventDefault());break;case 40:e.parentNode.nextSibling&&(e.parentNode.nextSibling.firstChild.focus(),a.preventDefault())}});var o=function(e){var n=e.subject;C(e,void 0,!0);var r,l=v.any(n,a.A.sioc("content")).value,u=[(0,i.st)(n,a.A.sioc("content"),l,t)];e.value&&(r=[(0,i.st)(n,a.A.sioc("content"),e.value,t)]);var p=e.value;if(e.lastSent&&l!==e.lastSent&&console.warn("Out of order, last sent expected '"+l+"' but found '"+e.lastSent+"'"),e.lastSent=p,!x)throw new Error("no updater");x.update(u,r,function(n,a,i,r){if(a)k(),C(e),(0,c.Rm)(" Patch ok '"+l+"' -> '"+p+"' "),4===e.state?(e.state=3,E(e)):3===e.state||(2===e.state?(e.state=1,o(e)):e.state=0);else if((0,c.Rm)(" patch FAILED "+r.status+" for '"+l+"' -> '"+p+"': "+i),409===r.status)C(e,"color: black; background-color: #fdd;"),e.state=0,(0,s.beep)(.5,512),setTimeout(function(){x.requestDownstreamAction(t,B)},1e3);else{C(e,"color: black; background-color: #fdd;");var u=null==r?void 0:r.status;u&&502!==u&&503!==u?(e.state=0,A(" Error "+u+" sending data: "+i,!0),(0,s.beep)(1,128)):(e.lastSent=void 0,e.state=0,setTimeout(function(){0!==e.state&&void 0!==e.state||(e.state=1,o(e))},2e3))}})};e.addEventListener("input",function(t){switch(C(e,void 0,!0),(0,c.Rm)("Input event state "+e.state+" value '"+e.value+"'"),e.state){case 3:case 4:case 2:return;case 1:return void(e.state=2);case 0:case void 0:null!==r&&clearTimeout(r),r=setTimeout(function(){r=null,0!==e.state&&void 0!==e.state||(e.state=1,o(e))},400)}})},T=function(t,n,i){var r=v.any(n,a.A.sioc("content"));r=r?r.value:"";var o=e.createElement("tr");i?h.insertBefore(o,t):t&&t.nextSibling?h.insertBefore(o,t.nextSibling):h.appendChild(o);var s=o.appendChild(e.createElement("input"));return s.subject=n,s.setAttribute("type","text"),s.value=r,l?(C(s,""),_(s,n)):(C(s,"color: #222; background-color: #fff"),(0,c.Rm)("Note can't add listeners - not logged in")),s},j=function(e,r){var s,u,p,m,f,h=d,v=0,g=null;e?("input"!==e.tagName.toLowerCase()&&(0,c.Rm)("return pressed when current document is: "+e.tagName),s=e.subject,v=(v=h.any(s,b("indent")))?Number(v.value):0,r?(u=h.any(void 0,b("next"),s),p=s,m=u,g="newlinesAfter"):(u=s,p=h.any(s,b("next")),m=p,g="newlinesBefore"),f=e.parentNode):(u=n,p=n,f=void 0);var y=(0,o.xV)(t),w=y.uri.slice(-4),A=[(0,i.st)(u,b("next"),p,t)],k=[(0,i.st)(u,b("next"),y,t),(0,i.st)(y,b("next"),p,t),(0,i.st)(y,a.A.dc("author"),l,t),(0,i.st)(y,a.A.sioc("content"),"",t)];if(v>0&&k.push((0,i.st)(y,b("indent"),v,t)),(0,c.Rm)(" Fresh chunk "+w+" proposed"),!x)throw new Error("no updater");x.update(A,k,function(e,t,n,a){if(t){var i=T(f,y,r);C(i),i.focus(),g&&((0,c.Rm)(" Fresh chunk "+w+" updated, queue = "+m[g]),m[g]-=1,m[g]>0&&((0,c.Rm)(" Implementing queued newlines = "+p.newLinesBefore),j(i,r)))}else(0,c.Rm)(" ERROR writing new line "+w+": "+n)})},S=function(){var e={},t=0;function i(e){A(e),t++}if(!v.the(n,b("next")))return i("No initial next pointer"),!1;for(var r,o=n;(r=v.the(o,b("next")))||i("No next pointer from "+o),!r.sameTerm(n);){o=r;var s=r.uri.split("#")[1];if(e[r.uri])return i("Loop!"),!1;e[r.uri]=!0;var c=v.each(r,b("next")).length;1!==c&&i("Should be 1 not "+c+" next pointer for "+s),(c=v.each(r,b("indent")).length)>1&&i("Should be 0 or 1 not "+c+" indent for "+s),1!==(c=v.each(r,a.A.sioc("content")).length)&&i("Should be 1 not "+c+" contents for "+s),1!==(c=v.each(r,a.A.dc("author")).length)&&i("Should be 1 not "+c+" author for "+s),v.statementsMatching(void 0,a.A.sioc("contents")).forEach(function(t){e[t.subject.value]||i("Loose chunk! "+t.subject.value)})}return!t},L=function(){if(1!==v.each(n,b("next")).length){var e="Pad: Inconsistent data - NEXT pointers: "+v.each(n,b("next")).length;return(0,c.Rm)(e),void(p.statusArea&&(p.statusArea.textContent+=e))}for(var t,i=[],r=v.the(n,b("next"));!r.sameTerm(n);r=v.the(r,b("next")))for(var o=0;o<h.children.length;o++){var s=h.children[o];s.firstChild&&s.firstChild.subject.sameTerm(r)&&(i[r.uri]=s.firstChild)}for(var l=h.children.length-1;l>=0;l--)i[(t=h.children[l]).firstChild.subject.uri]||h.removeChild(t);t=h.firstChild;for(var u=v.the(n,b("next"));!u.sameTerm(n);u=v.the(u,b("next"))){var d=v.any(u,a.A.sioc("content")).value;if(t&&i[u.uri]){var m=t.firstChild;d!==m.value&&(m.value=d),C(m),m.state=0,delete m.lastSent,t=t.nextSibling}else T(t,u,!0)}},R=function(e){if(e.refresh)e.refresh();else for(var t=0;t<e.children.length;t++)R(e.children[t])},N=!1,B=function(){if(N)(0,c.Rm)(" Already reloading - stop");else{N=!0;var e=1e3,n=function(){if((0,c.Rm)("try reload - timeout = "+e),!x)throw new Error("no updater");x.reload(x.store,t,function(a,i,r){N=!1,a?((0,c.Rm)(" reloaded OK"),k(),S()?R(h):A("CONSISTENCY CHECK FAILED")):0===r.status?(A("Network error refreshing the pad. Retrying in "+e/1e3),N=!0,e*=2,setTimeout(n,e)):A("Error "+r.status+"refreshing the pad:"+i+". Stopped. "+t)})};n()}};if(h.refresh=L,h.reloadAndSync=B,l||(0,c.Rm)("Warning: must be logged in for pad to be edited"),m)(0,c.Rm)("Existing pad."),S()?(L(),v.holds(n,b("next"),n)&&j()):(0,c.Rm)(h.textContent="Inconsistent data. Abort");else{(0,c.Rm)("No pad exists - making new one.");var I=[(0,i.st)(n,a.A.rdf("type"),b("Notepad"),t),(0,i.st)(n,a.A.dc("author"),l,t),(0,i.st)(n,a.A.dc("created"),new Date,t),(0,i.st)(n,b("next"),n,t)];if(!x)throw new Error("no updater");x.update([],I,function(e,t,n){t?((0,c.Rm)("Initial pad created"),j()):A(n||"")})}return h}function v(e,t){for(var n=[],a=t.the(e,m("next"));!a.sameTerm(e);a=t.the(a,m("next")))n.push(a);return n}function x(e){return e.replace("&","&").replace("<","<").replace(">",">")}function b(e,t){var n=v(e,t),i="<html>\n <head>\n",r=t.anyValue(e,a.A.dct("title"));r&&(i+=" <title>".concat(x(r),"</title>\n")),i+=" </head>\n <body>\n";var o=0;function s(e){for(;o>e;o--)i+="</ul>\n"}return n.forEach(function(e){var n=t.anyJS(e,m("indent")),r=t.anyJS(e,a.A.sioc("content"));if(r){var c=x(r);if(n<0){s(0);var l=n>=-3?4+n:1;i+="\n<h".concat(l,">").concat(c,"</h").concat(l,">\n")}else n>0?(s(n),function(e){for(;o<e;o++)i+="<ul>\n"}(n),i+="<li>".concat(c,"</li>\n")):(s(n),i+="<p>".concat(c,"</p>\n"))}}),s(0),i+=" </body>\n</html>\n"}},3605(e,t,n){n.r(t),n.d(t,{manageParticipation:()=>y,participationObject:()=>b,recordParticipation:()=>g,renderParticipants:()=>x});var a=n(7423),i=n(4961),r=n(1795),o=n(3291),s=n(3468),c=n(1763),l=n(52),u=n(8153),p=n(675),d=n(4762),m=n(3138);function f(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return h(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,i=function(){};return{s:i,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw r}}}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var v=m.solidLogicSingleton.store;function x(e,t,n,i,s,c){t.setAttribute("style",p.i.participantsStyle);var u=function(n){var a,i=v.any(n,r.A.wf("participant"));if(!i)return(a=e.createElement("tr")).textContent="???",a;var s=v.anyValue(n,r.A.ui("backgroundColor"))||d.A.participationDefaultBackground,l=e.createElement("div");l.setAttribute("style",p.i.participantsBlock),l.style.backgroundColor=s,a=(0,o.Cl)(e,null,i,c),t.appendChild(a);var u=e.createElement("td");return u.setAttribute("style",p.i.personTableTD),u.appendChild(l),a.insertBefore(u,a.firstChild),a},m=function(){var e=v.each(i,r.A.wf("participation")).map(function(e){return(0,a.Rm)("in participants"),[v.anyValue(e,r.A.cal("dtstart"))||"9999-12-31",e]});e.sort();var n=e.map(function(e){return e[1]});(0,l.syncTableToArray)(t,n,u)};return t.refresh=m,m(),t}function b(e,t,n){return new Promise(function(o,s){if(!n)throw new Error("No user id");var l=v.each(e,r.A.wf("participation")).filter(function(e){return v.holds(e,r.A.wf("participant"),n)});if(l.length>1){var p,d=[],m=f(l);try{for(m.s();!(p=m.n()).done;){var h=p.value,x=v.anyValue(h,r.A.cal("dtstart"));x&&d.push([x,h])}}catch(e){m.e(e)}finally{m.f()}d.sort(),a.R8("Multiple participation objects, picking earliest, in "+t),o(d[0][1])}if(l.length)o(l[0]);else{var b=(0,c.xV)(t),g=[(0,i.st)(e,r.A.wf("participation"),b,t),(0,i.st)(b,r.A.wf("participant"),n,t),(0,i.st)(b,r.A.cal("dtstart"),new Date,t),(0,i.st)(b,r.A.ui("backgroundColor"),(0,u.lightColorHash)(n),t)];v.updater.update([],g,function(e,t,n){t?o(b):s(new Error("Error recording your participation: "+n))}),o(b)}})}function g(e,t,n){var o=m.authn.currentUser();if(o){var s=v.each(e,r.A.wf("participation")).filter(function(e){return v.holds(e,r.A.wf("participant"),o)});if(s.length>1)throw new Error("Multiple records of your participation");if(s.length)return s[0];if(!v.updater.editable(t))return a.Rm("Not recording participation, as no write access as "+o+" to "+t),null;var l=(0,c.xV)(t),p=[(0,i.st)(e,r.A.wf("participation"),l,t),(0,i.st)(l,r.A.wf("participant"),o,t),(0,i.st)(l,r.A.cal("dtstart"),new Date,t),(0,i.st)(l,r.A.ui("backgroundColor"),(0,u.lightColorHash)(o),t)];return v.updater.update([],p,function(e,t,a){if(!t)throw new Error("Error recording your participation: "+a);n&&n.refresh&&n.refresh()}),l}}function y(e,t,n,a,i,r){var o=e.createElement("table");t.appendChild(o),x(e,o,0,a,0,r);try{g(a,n,o)}catch(n){t.appendChild((0,s.F)(e,"Error recording your participation: "+n))}return o}},5148(e,t,n){n.r(t),n.d(t,{get:()=>f,getPreferencesForClass:()=>y,recordPersonalDefaults:()=>x,recordSharedPreferences:()=>v,renderPreferencesForm:()=>b,set:()=>h,value:()=>m});var a=n(4961),i=n(3138),r=n(7423),o=n(967),s=n(1795),c=n(3605),l=n(3291),u=n(3468),p=n(1763),d=i.store,m=[];function f(e){return m[e]}function h(e,t){if("string"!=typeof t)throw r.Rm("Non-string value of preference "+e+": "+t),new Error("Non-string value of preference "+e+": "+t);this.value[e]=t}function v(e,t){return new Promise(function(n,i){var o=d.any(e,s.A.ui("sharedPreferences"));if(o)t.sharedPreferences=o,n(t);else{d.updater.editable(e.doc())||(r.Rm(" Cant make shared preferences, may not change ".concat(e.doc)),n(t));var c=a.sym(e.doc().uri+"#SharedPreferences"),l=[a.st(e,s.A.ui("sharedPreferences"),c,e.doc())];r.Rm("Creating shared preferences "+c),d.updater.update([],l,function(e,a,r){a?(t.sharedPreferences=c,n(t)):i(new Error("Error creating shared prefs: "+r))})}})}function x(e,t){return new Promise(function(n,i){(0,o.ensureLoadedPreferences)(t).then(function(t){if(t.preferencesFile){var o,c,l=d.each(null,s.A.solid("forClass"),e,t.preferencesFile),u=[];if(l.length){if(l.forEach(function(e){o=o||d.any(e,s.A.solid("personalDefaults"))}),o)return t.personalDefaults=o,void n(t);o=p.xV(t.preferencesFile),c=l[0]}else c=p.xV(t.preferencesFile),u=[a.st(c,s.A.rdf("type"),s.A.solid("TypeRegistration"),t.preferencesFile),a.st(c,s.A.solid("forClass"),e,t.preferencesFile)];o=p.xV(t.preferencesFile),u.push(a.st(c,s.A.solid("personalDefaults"),o,t.preferencesFile)),d.updater.update([],u,function(a,r,s){r?(t.personalDefaults=o,n(t)):i(new Error("Setting preferences for "+e+": "+s))})}else r.Rm("Not doing private class preferences as no access to preferences file. "+t.preferencesFileError)},function(e){i(e)})})}function b(e,t,n,a){var i=a.dom.createElement("div");return c.participationObject(e,e.doc(),a.me).then(function(r){var o=a.dom;function s(e){i.appendChild(o.createElement("h5")).textContent=e}s("My view of this "+a.noun),p.f6(o,i,{},r,n,e.doc(),function(e,t){e||l.cc(a,t)}),s("Everyone's view of this "+a.noun),v(e,a).then(function(a){var r=a.sharedPreferences;p.f6(o,i,{},r,n,e.doc(),function(e,t){e||l.cc(a,t)}),s("My default view of any "+a.noun),x(t,a).then(function(e){p.f6(o,i,{},e.personalDefaults,n,e.preferencesFile,function(t,n){t||l.cc(e,n)})},function(e){l.cc(a,e)})})},function(e){i.appendChild(u.F(a.dom,e))}),i}function g(e){return e.datatype?e.datatype.equals(s.A.xsd("boolean"))?"1"===e.value:e.datatype.equals(s.A.xsd("dateTime"))||e.datatype.equals(s.A.xsd("date"))?new Date(e.value):e.datatype.equals(s.A.xsd("integer"))||e.datatype.equals(s.A.xsd("float"))||e.datatype.equals(s.A.xsd("decimal"))?Number(e.value):e.value:e}function y(e,t,n,a){return new Promise(function(i,r){v(e,a).then(function(a){var o=a.sharedPreferences;if(a.me)c.participationObject(e,e.doc(),a.me).then(function(e){x(t,a).then(function(t){var a=[],r=t.personalDefaults;n.forEach(function(t){var n=d.any(e,t)||d.any(o,t)||d.any(r,t);n&&(a[t.uri]=g(n))}),i(a)},r)},r);else{var s=[];n.forEach(function(e){var t=d.any(o,e);t&&(s[e.uri]=g(t))}),i(s)}})})}},9417(e,t,n){n.d(t,{A:()=>a});const a={authEndpoint:"",fallbackAuthEndpoint:"https://databox.me/",signupEndpoint:"https://solidproject.org/get_a_pod",signupWindowHeight:600,signupWindowWidth:1024,key:"",cert:""}},6247(e,t,n){n.d(t,{l:()=>i});var a=n(9417);function i(e){this.config=e||a.A}i.prototype.listen=function(){return new Promise(function(e,t){var n=window.addEventListener?"addEventListener":"attachEvent";(0,window[n])("attachEvent"===n?"onmessage":"message",function(n){var a=n.data;if("User:"===a.slice(0,5)){var i=a.slice(5,a.length);return i&&i.length>0&&"http"===i.slice(0,4)?e(i):t(i)}},!0)})},i.prototype.signup=function(e){e=e||this.config.signupEndpoint;var t=this.config.signupWindowWidth,n=this.config.signupWindowHeight,a=window.screen.width/2-(t/2+10),i=window.screen.height/2-(n/2+50),r=e+"?origin="+encodeURIComponent(window.location.origin),o="resizable,scrollbars,status,width="+t+",height="+n+",left="+a+",top="+i;window.open(r,"Solid signup",o);var s=this;return new Promise(function(e){s.listen().then(function(t){return e(t)})})}},675(e,t,n){n.d(t,{i:()=>i});var a=n(4762),i={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(a.A.formBorderColor,"; border-radius: 0.2em;"),"padding-left: 2em; border: 0.05em solid ".concat(a.A.formBorderColor,"; border-radius: 0.2em;"),"padding-left: 2em; border: 0.1em solid ".concat(a.A.formBorderColor,"; border-radius: 0.2em;"),"padding-left: 2em; border: 0.2em solid ".concat(a.A.formBorderColor,"; border-radius: 0.2em;")],formFieldLabelStyle:"color: ".concat(a.A.lowProfileLinkColor,"; text-decoration: none;"),formFieldNameBoxStyle:"padding: 0.3em; vertical-align: middle; width:".concat(a.A.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, 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;",primaryButtonNoBorderHover:"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; transition: 0.25s all ease-in-out;",secondaryButton:"background-color: #01c9ea; color: #ffffff; font-family: Raleway, Roboto, sans-serif;border-radius: 0.25em; border-color: #01c9ea; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none;",secondaryButtonHover:"background-color: #37cde6; 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;",secondaryButtonNoBorder:"background-color: #ffffff; color: #01c9ea; font-family: Raleway, Roboto, sans-serif; border-radius: 0.25em; border-color: #01c9ea; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none;",secondaryButtonNoBorderHover:"background-color: #01c9ea; color: #ffffff; font-family: Raleway, Roboto, sans-serif; border-radius: 0.25em; border-color: #01c9ea; 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;",controlStyle:"border-radius: 0.5em; margin: 0.8em; width:".concat(a.A.mediaModuleCanvasWidth,"; height:").concat(a.A.mediaModuleCanvasHeight,";"),dragEvent:"background-color: #ccc; border: 0.25em dashed black; border-radius: 0.3em;",dropEvent:"background-color: white; border: 0em solid black;",restoreStyle:"background-color: white;",errorCancelButton:"width: 2em; height: 2em; align: right;",errorMessageBlockStyle:"margin: 0.1em; padding: 0.5em; border: 0.05em solid gray; color:black;",notepadStyle:"padding: 1em; overflow: auto; resize: horizontal; min-width: 40em;",upstreamStatus:"width: 50%;",downstreamStatus:"width: 50%;",baseStyle:"font-size: 100%; font-family: monospace; width: 100%; border: none; white-space: pre-wrap;",headingCore:"font-family: sans-serif; font-weight: bold; border: none;",headingStyle:["font-size: 110%; padding-top: 0.5em; padding-bottom: 0.5em; width: 100%;","font-size: 120%; padding-top: 1em; padding-bottom: 1em; width: 100%;","font-size: 150%; padding-top: 1em; padding-bottom: 1em; width: 100%;"],participantsStyle:"margin: 0.8em;",participantsBlock:"height: 1.5em; width: 1.5em; margin: 0.3em; border 0.01em solid #888;",personTableTD:"vertical-align: middle;",tabsNavElement:"margin: 0;",tabsRootElement:"display: flex; height: 100%; width: 100%;",tabsMainElement:"margin: 0; width:100%; height: 100%;",tabContainer:"list-style-type: none; display: flex; height: 100%; width: 100%; margin: 0; padding: 0;",makeNewSlot:"background: none; border: none; font: inherit; cursor: pointer;",ellipsis:"position: absolute; right: 0; bottom: 0; width: 20%; background: none; color: inherit; border: none; padding: 0; font: inherit; cursor: pointer; outline: inherit;",setStyle:function(e,t){e.style=i[t]}}},4762(e,t,n){n.d(t,{A:()=>a});const a={highlightColor:"#7C4DFF",formBorderColor:"#888888",formHeadingColor:"#888888",lowProfileLinkColor:"#3B5998",formFieldNameBoxWidth:"8em",mediaModuleCanvasWidth:"640",mediaModuleCanvasHeight:"480",textInputSize:20,tabBorderRadius:"0.2em",textInputBackgroundColor:"#eef",textInputBackgroundColorUneditable:"#fff",textInputColor:"#000",textInputColorPending:"#888",defaultErrorBackgroundColor:"#fee",participationDefaultBackground:"white",basicMaxLength:"4096"}},5561(e,t,n){n.d(t,{i:()=>a});
|
|
1
|
+
import*as e from"rdflib";import*as t from"solid-logic";var n={6466(e,t,n){n.d(t,{v:()=>p});var i=n(5619),a=n(4961),o=n(1214),s=n(7367),r=n(52),c=n(7423),l=n(675);class p{mainCombo;defaultsCombo;isContainer;defaultsDiffer;rootElement;isUsingDefaults;constructor(e,t,n,a,s,r,c,p,u,d,m,f){if(this.subject=e,this.noun=t,this.context=n,this.statusElement=a,this.targetIsProtected=s,this.targetDoc=r,this.targetACLDoc=c,this.defaultHolder=p,this.defaultACLDoc=u,this.prospectiveDefaultHolder=d,this.store=m,this.dom=f,this.rootElement=f.createElement("div"),this.rootElement.setAttribute("style",l.i.aclGroupContent),this.isContainer="/"===r.uri.slice(-1),p&&u){this.isUsingDefaults=!0;const e=(0,i._E)(this.targetDoc,c,p,u);this.mainCombo=new o.h(r,c,this,e,{defaults:this.isContainer}),this.defaultsCombo=null,this.defaultsDiffer=!1}else this.isUsingDefaults=!1,this.mainCombo=new o.h(r,c,this,m),this.defaultsCombo=new o.h(r,c,this,m,{defaults:this.isContainer}),this.defaultsDiffer=!(0,i.P3)(this.mainCombo.aclMap,this.defaultsCombo.aclMap)}get isEditable(){return!this.isUsingDefaults}render(){if(this.rootElement.innerHTML="",this.isUsingDefaults){if(this.renderStatus(`The sharing for this ${this.noun} is the default for folder `),this.defaultHolder){const e=this.statusElement.appendChild(this.dom.createElement("a"));e.href=this.defaultHolder.uri,e.innerText=(0,s.DR)(this.defaultHolder)}}else!this.defaultsDiffer&&this.isContainer?this.renderStatus("This is also the default for things in this folder."):this.renderStatus("");return this.rootElement.appendChild(this.mainCombo.render()),this.defaultsCombo&&this.defaultsDiffer?(this.rootElement.appendChild(this.renderRemoveDefaultsController()),this.rootElement.appendChild(this.defaultsCombo.render())):this.isEditable&&this.isContainer&&this.rootElement.appendChild(this.renderAddDefaultsController()),!this.targetIsProtected&&this.isUsingDefaults?this.rootElement.appendChild(this.renderAddAclsController()):this.targetIsProtected||this.rootElement.appendChild(this.renderRemoveAclsController()),this.rootElement}renderRemoveAclsController(){const e=this.dom.createElement("button");return e.innerText=`Remove custom sharing settings for this ${this.noun} -- just use default${this.prospectiveDefaultHolder?` for ${r.label(this.prospectiveDefaultHolder)}`:""}`,e.setAttribute("style",l.i.bigButton),e.addEventListener("click",()=>this.removeAcls().then(()=>this.render()).catch(e=>this.renderStatus(e))),e}renderAddAclsController(){const e=this.dom.createElement("button");return e.innerText=`Set specific sharing for this ${this.noun}`,e.setAttribute("style",l.i.bigButton),e.addEventListener("click",()=>this.addAcls().then(()=>this.render()).catch(e=>this.renderStatus(e))),e}renderAddDefaultsController(){const e=this.dom.createElement("div");e.setAttribute("style",l.i.defaultsController);const t=e.appendChild(this.dom.createElement("div"));t.innerText="Sharing for things within the folder currently tracks sharing for the folder.",t.setAttribute("style",l.i.defaultsControllerNotice);const n=e.appendChild(this.dom.createElement("button"));return n.innerText="Set the sharing of folder contents separately from the sharing for the folder",n.setAttribute("style",l.i.bigButton),n.addEventListener("click",()=>this.addDefaults().then(()=>this.render())),e}renderRemoveDefaultsController(){const e=this.dom.createElement("div");e.setAttribute("style",l.i.defaultsController);const t=e.appendChild(this.dom.createElement("div"));t.innerText="Access to things within this folder:",t.setAttribute("style",l.i.defaultsControllerNotice);const n=e.appendChild(this.dom.createElement("button"));return n.innerText="Set default for folder contents to just track the sharing for the folder",n.setAttribute("style",l.i.bigButton),n.addEventListener("click",()=>this.removeDefaults().then(()=>this.render()).catch(e=>this.renderStatus(e))),e}renderTemporaryStatus(e){this.statusElement.setAttribute("style",l.i.aclControlBoxStatusRevealed),this.statusElement.innerText=e,this.statusElement.setAttribute("style",l.i.temporaryStatusInit),setTimeout(()=>{this.statusElement.setAttribute("style",l.i.temporaryStatusEnd)}),setTimeout(()=>{this.statusElement.innerText=""},5e3)}renderStatus(e){e||this.statusElement.setAttribute("style",l.i.aclControlBoxStatusRevealed),this.statusElement.innerText=e}async addAcls(){if(!this.defaultHolder||!this.defaultACLDoc){const e="Unable to find defaults to copy";return c.z3(e),Promise.reject(e)}(0,i._E)(this.targetDoc,this.targetACLDoc,this.defaultHolder,this.defaultACLDoc).statements.forEach(e=>this.store.add(e.subject,e.predicate,e.object,this.targetACLDoc));try{return await this.store.fetcher.putBack(this.targetACLDoc),this.isUsingDefaults=!1,Promise.resolve()}catch(e){const t=` Error writing back access control file! ${e}`;return c.z3(t),Promise.reject(t)}}async addDefaults(){this.defaultsCombo=new o.h(this.targetDoc,this.targetACLDoc,this,this.store,{defaults:!0}),this.defaultsDiffer=!0}async removeAcls(){try{await this.store.fetcher.delete(this.targetACLDoc.uri,{}),this.isUsingDefaults=!0;try{this.prospectiveDefaultHolder=await(0,i.L$)(this.targetDoc.uri)}catch(e){c.R8(e)}}catch(e){const t=`Error deleting access control file: ${this.targetACLDoc}: ${e}`;return c.z3(t),Promise.reject(t)}}async removeDefaults(){const e=this.defaultsCombo;try{this.defaultsCombo=null,this.defaultsDiffer=!1,await this.save()}catch(t){return this.defaultsCombo=e,this.defaultsDiffer=!0,c.z3(t),Promise.reject(t)}}save(){const e=(0,a.graph)();this.isContainer?this.defaultsCombo&&this.defaultsDiffer?((0,i.cl)(e,this.targetDoc,this.mainCombo.byCombo,this.targetACLDoc,!0),(0,i.cl)(e,this.targetDoc,this.defaultsCombo.byCombo,this.targetACLDoc,!1,!0)):(0,i.cl)(e,this.targetDoc,this.mainCombo.byCombo,this.targetACLDoc,!0,!0):(0,i.cl)(e,this.targetDoc,this.mainCombo.byCombo,this.targetACLDoc,!0),e.fetcher=(0,a.fetcher)(e,{fetch:this.store.fetcher._fetch});const t=e.updater||new a.UpdateManager(e);return new Promise((n,a)=>{t.put(this.targetACLDoc,e.statementsMatching(void 0,void 0,void 0,this.targetACLDoc),"text/turtle",(t,o,s)=>{if(!o)return a(new Error(`ACL file save failed: ${s}`));this.store.fetcher.unload(this.targetACLDoc),this.store.add(e.statements),this.store.fetcher.requested[this.targetACLDoc.uri]="done",this.mainCombo.store=this.store,this.defaultsCombo&&(this.defaultsCombo.store=this.store),this.defaultsDiffer=!!this.defaultsCombo&&!(0,i.P3)(this.mainCombo.aclMap,this.defaultsCombo.aclMap),c.Rm("ACL modification: success!"),n()})})}}},1214(e,t,n){n.d(t,{h:()=>f});var i=n(4961),a=n(5619),o=n(4608),s=n(1795),r=n(1928),c=n(7423),l=n(675);const p=s.A.acl,u={13:"Owners",9:"Owners (write locked)",5:"Editors",3:"Posters",2:"Submitters",1:"Viewers"},d={13:!0,5:!0,3:!0,2:!0,1:!0},m={13:"can read, write, and control sharing.",9:"can read and control sharing, currently write-locked.",5:"can read and change information",3:"can add new information, and read but not change existing information",2:"can add new information but not read any",1:"can read but not change information"};class f{defaults;byCombo;aclMap;addAgentButton;rootElement;_store;constructor(e,t,n,i,o={}){this.doc=e,this.aclDoc=t,this.controller=n,this._options=o,this.defaults=this._options.defaults||!1,this._store=i,this.aclMap=(0,a.fg)(e,t,i,this.defaults),this.byCombo=(0,a.xw)(this.aclMap),this.addAgentButton=new r.g(this),this.rootElement=this.controller.dom.createElement("div"),this.rootElement.setAttribute("style",l.i.accessGroupList)}get store(){return this._store}set store(e){this._store=e,this.aclMap=(0,a.fg)(this.doc,this.aclDoc,e,this.defaults),this.byCombo=(0,a.xw)(this.aclMap)}render(){return this.rootElement.innerHTML="",this.renderGroups().forEach(e=>this.rootElement.appendChild(e)),this.controller.isEditable&&this.rootElement.appendChild(this.addAgentButton.render()),this.rootElement}renderGroups(){const e=[];for(let t=15;t>0;t--){const n=h(t);(this.controller.isEditable&&d[t]||this.byCombo[n])&&e.push(this.renderGroup(t,n))}return e}renderGroup(e,t){const n=this.controller.dom.createElement("div");n.setAttribute("style",l.i.accessGroupListItem),o.makeDropTarget(n,e=>this.handleDroppedUris(e,t).then(()=>this.controller.render()).catch(e=>this.controller.renderStatus(e)));return this.renderGroupElements(e,t).forEach(e=>n.appendChild(e)),n}renderGroupElements(e,t){const n=this.controller.dom.createElement("div");if(n.setAttribute("style",l.i.group),this.controller.isEditable)switch(e){case 1:n.setAttribute("style",l.i.group1);break;case 2:n.setAttribute("style",l.i.group2);break;case 3:n.setAttribute("style",l.i.group3);break;case 5:n.setAttribute("style",l.i.group5);break;case 9:n.setAttribute("style",l.i.group9);break;case 13:n.setAttribute("style",l.i.group13);break;default:n.setAttribute("style",l.i.group)}n.innerText=u[e]||function(e){let t="";const n=["Read","Append","Write","Control"];for(let i=0;i<4;i++)e&1<<i&&(t+=n[i]);return t}(e);const i=this.controller.dom.createElement("div");if(i.setAttribute("style",l.i.group),this.controller.isEditable)switch(e){case 1:i.setAttribute("style",l.i.group1);break;case 2:i.setAttribute("style",l.i.group2);break;case 3:i.setAttribute("style",l.i.group3);break;case 5:i.setAttribute("style",l.i.group5);break;case 9:i.setAttribute("style",l.i.group9);break;case 13:i.setAttribute("style",l.i.group13);break;default:i.setAttribute("style",l.i.group)}const a=i.appendChild(this.controller.dom.createElement("table"));(this.byCombo[t]||[]).map(([e,n])=>this.renderAgent(a,t,e,n)).forEach(e=>a.appendChild(e));const o=this.controller.dom.createElement("div");if(o.setAttribute("style",l.i.group),this.controller.isEditable)switch(e){case 1:o.setAttribute("style",l.i.group1);break;case 2:o.setAttribute("style",l.i.group2);break;case 3:o.setAttribute("style",l.i.group3);break;case 5:o.setAttribute("style",l.i.group5);break;case 9:o.setAttribute("style",l.i.group9);break;case 13:o.setAttribute("style",l.i.group13);break;default:o.setAttribute("style",l.i.group)}return o.innerText=m[e]||"Unusual combination",[n,i,o]}renderAgent(e,t,n,a){const s=o.personTR(this.controller.dom,p(n),(0,i.sym)(a),this.controller.isEditable?{deleteFunction:()=>this.deleteAgent(t,n,a).then(()=>e.removeChild(s)).catch(e=>this.controller.renderStatus(e))}:{});return s}async deleteAgent(e,t,n){const i=this.byCombo[e]||[],a=i.find(([e,i])=>e===t&&i===n);a&&i.splice(i.indexOf(a),1),await this.controller.save()}async addNewURI(e){await this.handleDroppedUri(e,h(1)),await this.controller.save()}async handleDroppedUris(e,t){try{await Promise.all(e.map(e=>this.handleDroppedUri(e,t))),await this.controller.save()}catch(e){return Promise.reject(e)}}async handleDroppedUri(e,t,n=!1){const a=function(e,t){const n=(0,i.sym)(e),a=t.findTypeURIs(n);for(const e in a)c.Rm(" drop object type includes: "+e);if(e.startsWith("http")&&3===e.split("/").length)return{pred:"origin",obj:n};if(e.startsWith("http")&&4===e.split("/").length&&e.endsWith("/"))return c.Rm("Assuming final slash on dragged origin URI was unintended!"),{pred:"origin",obj:(0,i.sym)(e.slice(0,-1))};if(s.A.vcard("WebID").uri in a)return{pred:"agent",obj:n};if(s.A.vcard("Group").uri in a)return{pred:"agentGroup",obj:n};if(n.sameTerm(s.A.foaf("Agent"))||n.sameTerm(s.A.acl("AuthenticatedAgent"))||n.sameTerm(s.A.rdf("Resource"))||n.sameTerm(s.A.owl("Thing")))return{pred:"agentClass",obj:n};if(s.A.vcard("Individual").uri in a||s.A.foaf("Person").uri in a||s.A.foaf("Agent").uri in a){const e=t.any(n,s.A.foaf("preferredURI"));return e?{pred:"agent",obj:(0,i.sym)(e)}:{pred:"agent",obj:n}}if(s.A.solid("AppProvider").uri in a)return{pred:"origin",obj:n};if(s.A.solid("AppProviderClass").uri in a)return{pred:"originClass",obj:n};return c.Rm(" Triage fails for "+e),null}(e,this.store),o=(0,i.sym)(e);if(!a&&!n){c.Rm(` Not obvious: looking up dropped thing ${o}`);try{await(this._store?.fetcher?.load(o.doc()))}catch(e){const t=`Ignore error looking up dropped thing: ${e}`;return c.z3(t),Promise.reject(new Error(t))}return this.handleDroppedUri(e,t,!0)}if(!a){const t=Object.keys(this.store.findTypeURIs(o)),n=`Error: Failed to add access target: ${e} is not a recognized ACL target type. Expected one of: vcard:WebID, vcard:Group, foaf:Person, foaf:Agent, solid:AppProvider, solid:AppProviderClass, or recognized ACL classes. Hint: try dropping a WebID profile URI, a vcard:Group URI, or a web app origin.`+(t.length>0?`Detected RDF types: ${t.join(", ")}`:"No RDF type was detected for this URI.");return c.z3(n),Promise.reject(new Error(n))}this.setACLCombo(t,e,a,this.controller.subject)}setACLCombo(e,t,n,i){e in this.byCombo||(this.byCombo[e]=[]),this.removeAgentFromCombos(t),this.byCombo[e].push([n.pred,n.obj.uri]),c.Rm(`ACL: setting access to ${i} by ${n.pred}: ${n.obj}`)}removeAgentFromCombos(e){for(let t=0;t<16;t++){const n=this.byCombo[h(t)];if(n)for(let t=0;t<n.length;t++)for(;t<n.length&&n[t][1]===e;)n.splice(t,1)}}}function h(e){const t=["Read","Append","Write","Control"],n=[];for(let i=0;i<4;i++)e&1<<i&&n.push("http://www.w3.org/ns/auth/acl#"+t[i]);return n.sort(),n.join("\n")}},7367(e,t,n){n.d(t,{DR:()=>f,Fp:()=>u,wR:()=>h});var i=n(1795),a=n(52),o=n(5619),s=n(6466),r=n(675),c=n(7423);let l=window;const p=Symbol("prevent double triggering of drop event");function u(e){if((0,c.Rm)("preventBrowserDropEvents called."),void 0!==l){if(l[p])return;l[p]=!0}e.addEventListener("drop",m,!1),e.addEventListener("dragenter",d,!1),e.addEventListener("dragover",d,!1)}function d(e){e.stopPropagation(),e.preventDefault()}function m(e){e.dataTransfer.files.length>0&&(l.confirm("Are you sure you want to drop this file here? (Cancel opens it in a new tab)")||(e.stopPropagation(),e.preventDefault(),(0,c.Rm)("@@@@ document-level DROP suppressed: "+e.dataTransfer.dropEffect)))}function f(e){let t=e.uri;"/"===t.slice(-1)&&(t=t.slice(0,-1));const n=t.lastIndexOf("/");return n>=0&&(t=t.slice(n+1)),t||"/"}function h(e,t,n,l){const p=t.dom,u=e.doc(),d=p.createElement("div");d.setAttribute("style",r.i.aclControlBoxContainer);const m=d.appendChild(p.createElement("h1"));m.textContent=`Sharing for ${n} ${a.label(e)}`,m.setAttribute("style",r.i.aclControlBoxHeader);const f=d.appendChild(p.createElement("div"));f.setAttribute("style",r.i.aclControlBoxStatus);try{(async function(e,t,n,a,r,l,p){return new Promise((u,d)=>(0,o.VM)(e,async(e,m,f,h,g,b)=>{if(!e)return d(new Error(`Error reading ${m?"":" default "}ACL. status ${f}: ${h}`));const x=function(e){const t=e.uri.split("#")[0],n=t.slice(0,-1).lastIndexOf("/"),i=t.indexOf("//");return i>=0&&n<i+2||n<0?null:t.slice(0,n+1)}(f),v=function(e,t,n){return n.holds(e,i.A.rdf("type"),i.A.space("Storage"),t)}(f,h,t)||function(e){return e.uri===e.site().uri}(f);if(!v&&x)try{const e=await(0,o.L$)(x);return u(y(e))}catch(e){(0,c.R8)(e)}return u(y());function y(e){return new s.v(n,a,r,p,v,f,h,g,b,e,t,l)}}))})(u,l,e,n,t,p,f).then(e=>d.appendChild(e.render()))}catch(e){f.innerText=e}return d}},5619(e,t,n){n.d(t,{D9:()=>x,H0:()=>w,L$:()=>L,Lu:()=>b,P3:()=>u,Tm:()=>h,Uf:()=>m,VM:()=>k,_7:()=>d,_E:()=>l,cH:()=>v,cl:()=>g,fb:()=>E,fg:()=>p,n1:()=>A,pe:()=>T,pp:()=>C,xo:()=>y,xw:()=>f});var i=n(1795),a=n(3138),o=n(52),s=n(7423),r=n(4961);const c=a.solidLogicSingleton.store;function l(e,t,n,a){const o=i.A.acl,s="/"===e.uri.slice(-1),l=c.each(void 0,o("default"),n,a).concat(c.each(void 0,o("defaultForNew"),n,a)).reduce((t,n)=>t.concat(c.statementsMatching(n,i.A.rdf("type"),o("Authorization"),a)).concat(c.statementsMatching(n,o("agent"),void 0,a)).concat(c.statementsMatching(n,o("agentClass"),void 0,a)).concat(c.statementsMatching(n,o("agentGroup"),void 0,a)).concat(c.statementsMatching(n,o("origin"),void 0,a)).concat(c.statementsMatching(n,o("originClass"),void 0,a)).concat(c.statementsMatching(n,o("mode"),void 0,a)).concat((0,r.st)(n,o("accessTo"),e,a)).concat(s?(0,r.st)(n,o("default"),e,a):[]),[]),p=(0,r.graph)();return l.forEach(e=>p.add(u(e.subject),u(e.predicate),u(e.object),(0,r.sym)(t.uri))),p;function u(e){const n=a.uri.length;return(0,r.sym)(e.uri.slice(0,n)===a.uri?t.uri+e.uri.slice(n):e.uri)}}function p(e,t,n=c,a=!1){const o=a?function(t,n){return t.each(void 0,n.acl("default"),e).concat(t.each(void 0,n.acl("defaultForNew"),e))}(n,i.A):n.each(void 0,i.A.acl("accessTo"),e),s=i.A.acl,r={agent:{},agentClass:{},agentGroup:{},origin:{},originClass:{}};return Object.keys(r).forEach(e=>{o.forEach(function(t){n.each(t,s("mode")).forEach(function(i){n.each(t,s(e)).forEach(function(n){r[e][n.uri]=r[e][n.uri]||{},r[e][n.uri][i.uri]=t})})})}),r}function u(e,t){const n=function(e,t){for(const n in{agent:!0,agentClass:!0,agentGroup:!0,origin:!0,originClass:!0})if(e[n])for(const i in e[n])for(const a in e[n][i])if(!t[n][i]||!t[n][i][a])return!1;return!0};return n(e,t)&&n(t,e)}function d(e){const t=e[0];let n,i;for(let a=1;a<e.length;a++)["agent","agentClass","agentGroup","origin","originClass"].forEach(function(o){if(n=e[a],n[o])for(i in n[o])for(const e in n[o][i])t[o][i]||(t[o][i]=[]),t[o][i][e]=!0});return t}function m(e,t){const n=[],i=function(e){if(e.length){k(e.shift().doc(),function(a,o,s,r,c,l){const u=!o;if(!a||!c||!l)return t(a,r);const d=p(u?c:s);n.push(d),i(e.slice(1))})}else t(!0,d(n))};i(e)}function f(e){const t={};return["agent","agentClass","agentGroup","origin","originClass"].forEach(function(n){for(const i in e[n]){const a=[];for(const t in e[n][i])a.push(t);a.sort();const o=a.join("\n");t[o]||(t[o]=[]),t[o].push([n,i])}}),t}function h(e,t,n,i){return g(e,t,f(n),i)}function g(e,t,n,a,o,s){const r=i.A.acl;for(const c in n){const l=n[c];if(!l.length)continue;const p=c.split("\n");let u=p.map(function(e){return e.split("#")[1]}).join("");s&&!o&&(u+="Default");const d=e.sym(a.uri+"#"+u);e.add(d,i.A.rdf("type"),r("Authorization"),a),o&&e.add(d,r("accessTo"),t,a),s&&e.add(d,r("default"),t,a);for(let t=0;t<p.length;t++)e.add(d,r("mode"),e.sym(p[t]),a);for(let t=0;t<l.length;t++){const n=l[t][0],i=l[t][1];e.add(d,r(n),e.sym(i),a)}}}function b(e){return x(f(e))}function x(e){let t="";for(const n in e){t+=n.split("\n").map(function(e){return e.split("#")[1][0]}).join("")+":";const a=e[n];for(let e=0;e<a.length;e++){const n=a[e][0],s=(0,r.sym)(a[e][1]);t+="agent"===n?"@":"",t+=s.sameTerm(i.A.foaf("Agent"))?"*":o.label(s),e<a.length-1&&(t+=",")}t+=";"}return"{"+t.slice(0,-1)+"}"}function v(e,t,n){const i=(0,r.graph)();return h(i,e,t,n),(0,r.serialize)(n,i,n.uri,"text/turtle")||""}function y(e,t,n,i,a){return w(e,t,f(n),i,a)}function w(e,t,n,i,a){const o=(0,r.graph)();g(o,t,n,i,!0),e.updater?.put(i,o.statementsMatching(void 0,void 0,void 0,i),"text/turtle",function(o,s,r){s?(e.fetcher?.unload(i),g(e,t,n,i,!0),e.fetcher.requested[i.uri]="done",a(s)):a(s,r)})}function C(e,t,n){const a=c.each(void 0,i.A.vcard("hasMember"),e);a?A(e,a,t,n):(t("This card is in no groups"),n(!0))}function A(e,t,n,i){n=n||s.Rm;const a=e.doc();k(a,function(s,r,l,d,f,h){if(!s||!f||!h)return i(!1,d);const g=p(r?l:f);m(t,function(t,s){if(!t)return i(!1,s);u(s,g)?n("Nice - same ACL. no change "+o.label(e)+" "+a):(n("Group ACLs differ for "+o.label(e)+" "+a),y(c,l,s,d,i))})})}function E(e,t,n){const i=c.any(e,a.ACL_LINK);if(!c.fetcher)throw new Error("Store has no fetcher");i?c.fetcher.webOperation("PUT",i.value,{data:t,contentType:"text/turtle"}).then(e=>{n(e.ok,e.error||"")}):c.fetcher.nowOrWhenFetched(e,void 0,function(i,o){if(!i)return n(i,"Gettting headers for ACL: "+o);const s=c.any(e,a.ACL_LINK);if(s){if(!c.fetcher)throw new Error("Store has no fetcher");c.fetcher.webOperation("PUT",s.value,{data:t,contentType:"text/turtle"}).then(e=>{n(e.ok,e.error||"")})}else n(!1,"No Link rel=ACL header for "+e)})}function k(e,t){T(e,function(n,a,o,s){const l=i.A.acl;if(!n)return t(!1,!1,a,s);const p=function(n){"/"===n.slice(-1)&&(n=n.slice(0,-1));const i=n.lastIndexOf("/");if(n.indexOf("/",n.indexOf("//")+2)>i)return t(!1,!0,404,"Found no ACL resource");n=n.slice(0,i+1);const a=(0,r.sym)(n);T(a,function(i,s,r){if(!i)return t(!1,!0,s,`( No ACL pointer ${n} ${s})${r}`);if(403===s)return t(!1,!0,s,`( default ACL file FORBIDDEN. Stop.${n})`);if(404===s)return p(n);if(200!==s)return t(!1,!0,s,`Error status '${s}' searching for default for ${a}`);if(!c.each(void 0,l("default"),c.sym(n),r).concat(c.each(void 0,l("defaultForNew"),c.sym(n),r)).length)return p(n);const u=c.sym(n);return t(!0,!1,e,o,u,r)})};return n?404!==a?403===a?t(!1,!1,a,`(Sharing not available to you)${s}`):200!==a?t(!1,!1,a,`Error ${a} accessing Access Control information for ${e}: ${s}`):t(!0,!0,e,o):void p(e.uri):t(!1,!1,a,`Error accessing Access Control information for ${e}) ${s}`)})}function T(e,t){if(!c.fetcher)throw new Error("kb has no fetcher");c.fetcher.nowOrWhenFetched(e,void 0,function(n,i){if(!n)return t(n,`Can't get headers to find ACL for ${e}: ${i}`);const o=c.any(e,a.ACL_LINK);if(o){if(!c.fetcher)throw new Error("kb has no fetcher");if(c.fetcher.nonexistent[o.value])return t(!0,404,o,`ACL file ${o} does not exist.`);c.fetcher.nowOrWhenFetched(o,void 0,function(e,n,i){e?t(!0,200,o):t(!0,i.status,o,`Can't read Access Control File ${o}: ${n}`)})}else t(!1,900,`No Link rel=ACL header for ${e}`)})}async function L(e){return new Promise((t,n)=>k((0,r.sym)(e),(i,a,o,s,r)=>i?t(a?o:r):n(new Error(`Error loading ${e}`))))}},1928(e,t,n){n.d(t,{g:()=>p});var i=n(7423),a=n(3378),o=n(967),s=n(1795),r=n(52),c=n(4608),l=n(675);class p{rootElement;barElement;isExpanded=!1;constructor(e){this.groupList=e,this.rootElement=e.controller.dom.createElement("div"),this.barElement=e.controller.dom.createElement("div")}render(){return this.rootElement.innerHTML="",this.rootElement.appendChild(this.renderAddButton()),this.rootElement.appendChild(this.barElement),this.rootElement}renderAddButton(){return c.button(this.groupList.controller.dom,`${a.Pt.iconBase}noun_34653_green.svg`,"Add ...",()=>{this.toggleBar(),this.renderBar()})}renderBar(){this.barElement.innerHTML="",this.isExpanded&&(this.barElement.appendChild(this.renderPersonButton()),this.barElement.appendChild(this.renderGroupButton()),this.barElement.appendChild(this.renderPublicButton()),this.barElement.appendChild(this.renderAuthenticatedAgentButton()),this.barElement.appendChild(this.renderBotButton()),this.barElement.appendChild(this.renderAppsButton()))}renderSimplifiedBar(e){Array.from(this.barElement.children).filter(t=>t!==e).forEach(e=>this.barElement.removeChild(e))}renderPersonButton(){return c.button(this.groupList.controller.dom,a.Pt.iconBase+c.iconForClass["vcard:Individual"],"Add Person",e=>{this.renderSimplifiedBar(e.target),this.renderNameForm(s.A.vcard("Individual"),"person").then(e=>this.addPerson(e)).then(()=>this.renderCleanup()).catch(e=>this.groupList.controller.renderStatus(e))})}renderGroupButton(){return c.button(this.groupList.controller.dom,a.Pt.iconBase+c.iconForClass["vcard:Group"],"Add Group",e=>{this.renderSimplifiedBar(e.target),this.renderNameForm(s.A.vcard("Group"),"group").then(e=>this.addGroup(e)).then(()=>this.renderCleanup()).catch(e=>this.groupList.controller.renderStatus(e))})}renderNameForm(e,t){return c.askName(this.groupList.controller.dom,this.groupList.store,this.barElement,s.A.vcard("URI"),e,t)}renderPublicButton(){return c.button(this.groupList.controller.dom,a.Pt.iconBase+c.iconForClass["foaf:Agent"],"Add Everyone",()=>this.addAgent(s.A.foaf("Agent").uri).then(()=>this.groupList.controller.renderTemporaryStatus("Adding the general public to those who can read. Drag the globe to a different level to give them more access.")).then(()=>this.renderCleanup()))}renderAuthenticatedAgentButton(){return c.button(this.groupList.controller.dom,`${a.Pt.iconBase}noun_99101.svg`,"Anyone logged In",()=>this.addAgent(s.A.acl("AuthenticatedAgent").uri).then(()=>this.groupList.controller.renderTemporaryStatus("Adding anyone logged in to those who can read. Drag the ID icon to a different level to give them more access.")).then(()=>this.renderCleanup()))}renderBotButton(){return c.button(this.groupList.controller.dom,a.Pt.iconBase+"noun_Robot_849764.svg","A Software Agent (bot)",e=>{this.renderSimplifiedBar(e.target),this.renderNameForm(s.A.schema("Application"),"bot").then(e=>this.addBot(e)).then(()=>this.renderCleanup())})}renderAppsButton(){return c.button(this.groupList.controller.dom,`${a.Pt.iconBase}noun_15177.svg`,"A Web App (origin)",e=>{this.renderSimplifiedBar(e.target);const t={div:this.barElement,dom:this.groupList.controller.dom},n=this.renderAppsTable(t).catch(e=>this.groupList.controller.renderStatus(e));this.renderAppsView();const i=this.renderNameForm(s.A.schema("WebApplication"),"webapp domain").then(e=>this.getOriginFromName(e));Promise.race([n,i]).then(e=>{e&&this.groupList.addNewURI(e)}).then(()=>this.renderCleanup())})}renderAppsView(){const e=this.groupList.controller.context.session.paneRegistry.byName("trustedApplications");if(e){const t=e.render(null,this.groupList.controller.context);t.setAttribute("style",l.i.trustedAppController);const n=c.cancelButton(this.groupList.controller.dom,()=>this.renderCleanup());n.setAttribute("style",l.i.trustedAppCancelButton),t.insertBefore(n,t.firstChild),this.barElement.appendChild(t)}}async renderAppsTable(e){await(0,o.ensureLoadedProfile)(e);const t=this.groupList.store.each(e.me,s.A.acl("trustedApp")),n=t.flatMap(e=>this.groupList.store.each(e,s.A.acl("origin")));return this.barElement.appendChild(this.groupList.controller.dom.createElement("p")).textContent=`You have ${n.length} selected web apps.`,new Promise((e,n)=>{const i=this.barElement.appendChild(this.groupList.controller.dom.createElement("table"));i.setAttribute("style",l.i.trustedAppAddApplicationsTable),t.forEach(t=>{const a=this.groupList.store.any(t,s.A.acl("origin"));a||n(new Error(`Unable to pick app: ${t.value}`));const o=c.personTR(this.groupList.controller.dom,s.A.acl("origin"),a,{}),l=this.groupList.controller.dom.createElement("table"),p=l.appendChild(this.groupList.controller.dom.createElement("tr"));p.appendChild(this.groupList.controller.dom.createElement("td")).appendChild(o);p.appendChild(this.groupList.controller.dom.createElement("td")).textContent=`Give access to ${this.groupList.controller.noun} ${r.label(this.groupList.controller.subject)}?`;p.appendChild(this.groupList.controller.dom.createElement("td")).appendChild(c.continueButton(this.groupList.controller.dom,()=>e(a.value))),i.appendChild(l)})})}renderCleanup(){this.renderBar(),this.groupList.render()}async addPerson(e){if(!e)return this.toggleBar();if(!e.match(/^https?:/i))return Promise.reject(new Error("Not a http URI"));i.Rm(`Adding to ACL person: ${e}`),await this.groupList.addNewURI(e),this.toggleBar()}async addGroup(e){if(!e)return this.toggleBar();if(!e.match(/^https?:/i))return Promise.reject(new Error("Not a http URI"));i.Rm("Adding to ACL group: "+e),await this.groupList.addNewURI(e),this.toggleBar()}async addAgent(e){await this.groupList.addNewURI(e),this.toggleBar()}async addBot(e){if(!e)return this.toggleBar();if(!e.match(/^https?:/i))return Promise.reject(new Error("Not a http URI"));i.Rm("Adding to ACL bot: "+e),await this.groupList.addNewURI(e),this.toggleBar()}async getOriginFromName(e){if(!e)return Promise.resolve();if(!e.match(/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i))return Promise.reject(new Error("Not a domain name"));const t="https://"+e;return i.Rm("Adding to ACL origin: "+t),this.toggleBar(),t}toggleBar(){this.isExpanded=!this.isExpanded}}},5923(e,t,n){n.d(t,{B:()=>o,u:()=>s});var i=n(5619),a=n(7367);const o={adoptACLDefault:i._E,readACL:i.fg,sameACL:i.P3,ACLunion:i._7,loadUnionACL:i.Uf,ACLbyCombination:i.xw,makeACLGraph:i.Tm,makeACLGraphbyCombo:i.cl,ACLToString:i.Lu,comboToString:i.D9,makeACLString:i.cH,putACLObject:i.xo,putACLbyCombo:i.H0,fixIndividualCardACL:i.pp,fixIndividualACL:i.n1,setACL:i.fb,getACLorDefault:i.VM,getACL:i.pe},s={preventBrowserDropEvents:a.Fp,shortNameForFolder:a.DR,ACLControlBox5:a.wR}},7236(e,t,n){n.d(t,{eD:()=>w,z6:()=>v});var i=n(7423),a=n(3378),o=n(6127),s=n(1795),r=n(8153),c=n(4961),l=n(675),p=n(52),u=n(4608),d=n(3138),m=n(967);const f={icons:a.Pt,ns:s.A,media:o.$,pad:r,style:l.i,utils:p,widgets:u},h=c.Namespace("http://www.w3.org/2002/01/bookmark#"),g=p.label,b=window.document||null;function x(e,t){return new Promise(function(n,i){d.store.updater.update(e,t,function(e,t,a){t?n():i(new Error(a))})})}async function v(e){const t=h("Bookmark");if(await(0,m.findAppInstances)(e,t,!0),e.instances&&e.instances.length>0)e.bookmarkDocument=e.instances[0],e.instances.length>1&&i.R8("More than one bookmark file! "+e.instances);else if(e.publicProfile){const n=c.sym(e.publicProfile.dir().uri+"bookmarks.ttl");try{i.Rm("Creating new bookmark file "+n),await d.store.fetcher.createIfNotExists(n)}catch(t){return i.R8("Can't make fresh bookmark file:"+t),e}await d.createTypeIndexLogic.registerInTypeIndex(n,e.index,t),e.bookmarkDocument=n}else i.R8("You seem to have no bookmark file, nor even a profile file!");return e}async function y(e,t,n){await d.store.fetcher.load(e.bookmarkDocument);const a=d.store.each(null,h("recalls"),t,e.bookmarkDocument);if(a.length){if(!confirm("Delete bookmark on this?"+a.length))return;for(let e=0;e<a.length;e++)try{await x(d.store.connectedStatements(a[e]),[]),n.style.backgroundColor="white",i.Rm("Bookmark deleted: "+a[e])}catch(e){i.z3("Cant delete bookmark:"+e),i.R8("Cannot delete bookmark:"+e)}}else{const a=await async function(e,t){let n="";const a=d.authn.currentUser();if(!a)throw new Error("Must be logged on to add Bookmark");const o=d.store.any(t,s.A.foaf("maker"));n=g(o)+": "+d.store.anyValue(t,s.A.sioc("content")).slice(0,80);const r=e.bookmarkDocument,l=f.widgets.newThing(r,n),p=[c.st(r,f.ns.dct("references"),l,r),c.st(l,f.ns.rdf("type"),h("Bookmark"),r),c.st(l,f.ns.dct("created"),new Date,r),c.st(l,h("recalls"),t,r),c.st(l,f.ns.foaf("maker"),a,r),c.st(l,f.ns.dct("title"),n,r)];try{await x([],p)}catch(e){const t="Making bookmark: "+e;return i.R8(t),null}return l}(e,t);n.style.backgroundColor="yellow",i.Rm("Bookmark added: "+a)}}async function w(e,t){let n;if(e.bookmarkDocument)return n=f.widgets.button(b,f.icons.iconBase+"noun_45961.svg",g(h("Bookmark")),()=>{y(e,t,n)}),n.target=t,await async function(t){await d.store.fetcher.load(e.bookmarkDocument);const n=d.store.any(null,h("recalls"),t.target,e.bookmarkDocument);t.style=f.style.buttonStyle,n&&(t.style.backgroundColor="yellow")}(n),n}},2465(e,t,n){n.d(t,{YM:()=>p,n6:()=>m,oQ:()=>d,oy:()=>f,x6:()=>u});var i=n(7423),a=n(2893),o=n(3138),s=n(1795),r=n(4961),c=(n(52),n(630)),l=n(6855);class p{constructor(e,t){this.channel=e,this.channelRoot=e.doc(),this.options=t,this.dateFolder=new a.J(this.channelRoot,"chat.ttl"),this.div=null}async createMessage(e){return this.updateMessage(e)}async updateMessage(e,t=null,n,a=null){const p=[],u=new Date,d=""+u.getTime(),f=r.term(u),h=t?t.doc():this.dateFolder.leafDocumentFromDate(u),g=o.store.sym(h.uri+"#Msg"+d),b=o.authn.currentUser(),x=(0,c.YJ)();if(x.id=g.uri,t){const e=o.store.any(t,s.A.foaf("maker"));if(e.uri!==b.uri){const t="Error you cannot delete/edit a message from someone else : \n"+e.uri;throw i.R8(t),alert(t),new Error(t)}{const e=await m(t);p.push(r.st(e,s.A.dct("isReplacedBy"),g,h));const i=o.store.any(e,s.A.sioc("has_reply"));i&&p.push(r.st(g,s.A.sioc("has_reply"),i,h)),n&&p.push(r.st(g,s.A.schema("dateDeleted"),f,h))}}else p.push(r.st(this.channel,s.A.wf("message"),g,h));if(p.push(r.st(g,s.A.sioc("content"),o.store.literal(e),h)),x.content=e,p.push(r.st(g,s.A.dct("created"),f,h)),x.created=f.value,b){p.push(r.st(g,s.A.foaf("maker"),b,h)),x.maker=b.uri;const e=await(0,l.Tn)(b),t=(0,c.vt)(x,e);p.push(r.st(g,r.sym(`${c.yv}proofValue`),r.lit(t),h))}a&&(p.push(r.st(a,s.A.sioc("has_member"),g,h)),a.doc().sameTerm(g.doc())||p.push(r.st(a,s.A.sioc("has_member"),g,a.doc())));try{await o.store.updater.updateMany([],p)}catch(e){const t="Error saving chat message: "+e;throw i.R8(t),alert(t),new Error(t)}return g}async deleteMessage(e){return this.updateMessage("(message deleted)",e,!0)}async createThread(e){const t=o.store.each(e,s.A.sioc("has_reply"),null,e.doc()).filter(e=>o.store.holds(e,s.A.rdf("type"),s.A.sioc("Thread"),e.doc()));if(t.length>0)return t[0];const n=r.sym(e.uri+"-thread"),i=[r.st(n,s.A.rdf("type"),s.A.sioc("Thread"),n.doc()),r.st(e,s.A.sioc("has_reply"),n,n.doc())];return await o.store.updater.update([],i),n}}async function u(e){const t=[e],n={};n[e.uri]=!0;let i=e;for(;;){const e=o.store.any(null,s.A.dct("isReplacedBy"),i,i.doc());if(!e||n[e.uri])break;await o.store.fetcher.load(e),t.unshift(e),n[e.uri]=!0,i=e}for(i=e;;){const e=o.store.any(i,s.A.dct("isReplacedBy"),null,i.doc());if(!e||n[e.uri])break;t.push(e),n[e.uri]=!0,i=e}return t}async function d(e){let t=e;const n={};for(;t;){if(n[t.uri])return i.z3("originalVersion: verion loop"+e),e;n[t.uri]=!0,e=t,await o.store.fetcher.load(e),t=o.store.any(null,s.A.dct("isReplacedBy"),e,e.doc())}return e}async function m(e){let t=e;const n={};for(;t;){if(n[t.uri])return i.z3("mostRecentVersion: verion loop"+e),e;n[t.uri]=!0,e=t,await o.store.fetcher.load(e),t=o.store.any(e,s.A.dct("isReplacedBy"),null,e.doc())}return e}function f(e){return o.store.holds(e,s.A.schema("dateDeleted"),null,e.doc())}},2893(e,t,n){n.d(t,{J:()=>c});var i=n(7423),a=n(3138),o=n(1795),s=n(4961);async function r(e){return await a.store.fetcher.load(e),!(a.store.statementsMatching(null,o.A.dct("created"),null,e).length>0)}class c{constructor(e,t,n){this.root=e,this.rootFolder=e.dir(),this.leafFileName=t||"index.ttl",this.membershipProperty=n||o.A.wf("leafObject")}leafDocumentFromDate(e){let t=e.toISOString().split("T")[0].replace(/-/g,"/");return t=this.root.dir().uri+t+"/"+this.leafFileName,a.store.sym(t)}dateFromLeafDocument(e){const t=this.rootFolder.uri.length,n=e.uri.slice(t,t+10).replace(/\//g,"-");return new Date(n)}async loadPrevious(e,t){async function n(e,s){function r(e){const t=e.uri.slice(0,-1).split("/").slice(-1)[0];return!!"0123456789".includes(t[0])}function c(e){return(e=e.filter(r)).sort(),t||e.reverse(),e.pop()}const l=e.dir();try{await a.store.fetcher.load(l);let n=a.store.each(l,o.A.ldp("contains"));n=n.filter(function(n){return!(t?n.uri>=e.uri:n.uri<=e.uri)});const i=c(n);if(i)return i}catch(e){if(!e.response||!e.response.status||404!==e.response.status)throw i.Rm("*** Error NON 404 for chat parent file "+l),new Error(`*** ${e.message} for chat folder ${l}`);i.Rm("Error 404 for chat parent file "+l)}if(0===s)return null;const p=await n(l,s-1);if(!p)return null;await a.store.fetcher.load(p);return c(a.store.each(p,o.A.ldp("contains")))}let s=this.leafDocumentFromDate(e).dir();for(;;){const t=await n(s,3);if(!t)return null;{const n=a.store.sym(t.uri+this.leafFileName),i=this.dateFromLeafDocument(n);if(!await r(n))return i;e=i,s=this.leafDocumentFromDate(e).dir()}}}async firstLeaf(e){const t=s.graph(),n=new s.Fetcher(t);async function a(i){delete n.requested[i.uri],await n.load(i,{force:!0});let a=t.each(i,o.A.ldp("contains"));if(a=a.filter(function(e){const t=e.uri.slice(0,-1).split("/").slice(-1)[0];return!!"0123456789".includes(t[0])}),0===a.length)throw new Error(" @@@ No children to parent2 "+i);return a.sort(),e&&a.reverse(),a[0]}const r=await a(this.root.dir()),c=await a(r),l=await a(c),p=s.sym(l.uri+"chat.ttl");await n.load(p);const u=t.each(this.root,this.membershipProperty,null,p);if(0===u.length){const e=" INCONSISTENCY -- no chat leafObject in file "+p;throw i.uP(e),new Error(e)}const d=u.map(e=>[t.any(e,o.A.dct("created")),e]);return d.sort(),e&&d.reverse(),d[0][1]}}},9509(e,t,n){n.d(t,{r5:()=>u,rg:()=>p});var i=n(4961),a=n(3138),o=n(7423),s=(n(3378),n(1795)),r=n(4608),c=n(2465),l=n(3262);async function p(e,t,n,i,a,o){const s=await(0,l.Uh)(e,n,i,a,o);a.selectedMessage&&a.selectedMessage.sameTerm(n)&&(s.style.backgroundColor="yellow",a.selectedElement=s,t.selectedElement=s);let r=!1;for(let e=t.firstChild;e;e=e.nextSibling){const n=!0===a.newestfirst,i=s.AJAR_date;if(i>e.AJAR_date&&n||i<e.AJAR_date&&!n){t.insertBefore(s,e),r=!0;break}}r||t.appendChild(s)}async function u(e,t,n,u){async function d(e,t){if((0,c.oy)(e)&&!u.showDeletedMessages)return;let n=a.store.any(null,s.A.sioc("has_member"),e,e.doc());const i=a.store.any(e,s.A.sioc("id"),null,e.doc());if(i&&!n&&(n=a.store.any(null,s.A.sioc("has_member"),i,e.doc())),u.thread){if(a.store.holds(e,s.A.sioc("has_reply"),u.thread));else if(!n||!n.sameTerm(u.thread))return}else if(n)return;t.fresh||await p(v,t,e,t.fresh,u,A)}async function m(e){const t=e?T:L;let n=t.messageTable.date;if(e&&T.limit&&n<=T.limit)return E||await g(),!0;if(n=await y.loadPrevious(n,e),n||e||E||await g(),!n)return!0;let i=!1;if(!e){const e=y.leafDocumentFromDate(new Date);i=y.leafDocumentFromDate(n).sameTerm(e)}const a=await f(n,i);return t.messageTable=a,(e?x:!x)?w.appendChild(a):w.insertBefore(a,w.firstChild),i}async function f(t,n){const i=y.leafDocumentFromDate(t);try{await a.store.fetcher.createIfNotExists(i)}catch(a){const s=e.createElement("table").appendChild(e.createElement("tr"));return a.response&&a.response.status&&404===a.response.status?await h(t,n):(o.Rm("*** Error NON 404 for chat file "+i),s.appendChild(r.errorMessageBlock(e,a,"pink")),s)}return await h(t,n)}async function h(t,n){async function i(){return await m(!1)}const o=e.createElement("table");o.style.width="100%",o.extendBackwards=async function(){const e=await m(!0);return e?o.initial=!0:o.extendedBack=!0,e},o.extendForwards=i,o.date=t;const c=y.leafDocumentFromDate(t);if(o.chatDocument=c,o.fresh=!1,o.setAttribute("style","width: 100%;"),n){o.final=!0,E=o,L.messageTable=o;const e=(0,l.LV)(v,o,A,u);x?o.insertBefore(e,o.firstChild):o.appendChild(e),o.inputRow=e}{const n=e.createElement("tr"),i=n.appendChild(e.createElement("td"));i.style="text-align: center; vertical-align: middle; color: #888; font-style: italic;",i.textContent=r.shortDate(t.toISOString(),!0);const a=n.appendChild(e.createElement("td"));u.includeRemoveButton&&a.appendChild(r.cancelButton(e,e=>{w.parentNode.removeChild(w)})),o.extendedForwards=!1,x?o.appendChild(n):o.insertBefore(n,o.firstChild)}const p=a.store.statementsMatching(null,s.A.wf("message"),null,c);!n&&p.length;for(const e of p)await d(e.object,o);return o.fresh=!0,o}async function g(){const e=new Date,t=y.leafDocumentFromDate(e),c=await f(e,!0);return w.appendChild(c),w.refresh=async function(){var e;await async function(){const e=y.leafDocumentFromDate(new Date);if(!e.sameTerm(L.messageTable.chatDocument)){E.inputRow&&(E.removeChild(E.inputRow),delete E.inputRow);const t=L.messageTable.chatDocument;if(await g(),!a.store.holds(t,s.A.rdfs("seeAlso"),e,t)){const n=[i.st(t,s.A.rdfs("seeAlso"),e,t)];try{a.store.updater.update([],n)}catch(e){alert("Unable to link old chat file to new one:"+e)}}}}(new Date),await async function(e,t){const n={};let i,o;for(i=t.firstChild;i;i=i.nextSibling)i.AJAR_subject&&(n[i.AJAR_subject.uri]=!0);const c=a.store.each(e,s.A.wf("message"),null,t.chatDocument),l={};for(const e of c)l[e.uri]=!0,n[e.uri]||await d(e,t);for(i=t.firstChild;i;)o=i.nextSibling,i.AJAR_subject&&!l[i.AJAR_subject.uri]&&t.removeChild(i),i=o;for(i=t.firstChild;i;i=i.nextSibling)i.AJAR_subject&&r.refreshTree(i)}(n,c),e=n,"Notification"in window?"granted"===Notification.permission?new Notification(e):"denied"!==Notification.permission&&Notification.requestPermission().then(function(t){"granted"===t&&new Notification(e)}):o.R8("This browser does no t support desktop notification")},a.store.updater.addDownstreamChangeListener(t,w.refresh),E=c,L.messageTable=E,c}async function b(e,t){if(j)return;j=!0;const n=!t;let i;for(;w.scrollTop<150&&T.messageTable&&!T.messageTable.initial&&T.messageTable.extendBackwards;){if(0===w.scrollHeight)return setTimeout(b,2e3),void(j=!1);const e=w.scrollHeight-w.scrollTop;if(i=await T.messageTable.extendBackwards(),n&&(w.scrollTop=w.scrollHeight-e),t&&t(),i)break}for(;u.selectedMessage&&w.scrollHeight-w.scrollTop-w.clientHeight<150&&L.messageTable&&!L.messageTable.final&&L.messageTable.extendForwards;){const e=w.scrollTop;if(i=await L.messageTable.extendForwards(),n&&(w.scrollTop=e),t&&t(),i)break}j=!1}(u=u||{}).authorDateOnLeft=!1;const x="1"===u.newestFirst||!0===u.newestFirst,v=new c.YM(n,u),y=v.dateFolder,w=e.createElement("div");v.div=w;const C=w.appendChild(e.createElement("div")),A={dom:e,statusArea:C,div:C};let E,k;const T={messageTable:null},L={messageTable:null};if(u.thread){const e=u.thread;if(k=a.store.any(null,s.A.sioc("has_reply"),e,e.doc()),k){const e=a.store.any(k,s.A.dct("created"),null,k.doc());e&&(T.limit=new Date(e.value))}}let j=!1;return await async function(){function e(){o&&o.selectedElement&&o.selectedElement.scrollIntoView({block:"center"})}let t,n,i;u.selectedMessage&&(n=u.selectedMessage.doc()),k&&(i=k.doc());const a=n||i;if(a){const e=new Date;t=y.leafDocumentFromDate(e).sameTerm(a)}let o;if(a&&!t){const n=y.dateFromLeafDocument(a);o=await f(n,t),w.appendChild(o),T.messageTable=o,L.messageTable=o,e(),setTimeout(e,1e3)}else await g(),T.messageTable=E,L.messageTable=E;await b(0,function(){u.selectedElement?u.selectedElement.scrollIntoView({block:"center"}):E.inputRow.scrollIntoView&&E.inputRow.scrollIntoView(x)}),w.addEventListener("scroll",b),u.solo&&document.body.addEventListener("scroll",b)}(),w}},6855(e,t,n){n.d(t,{Tn:()=>m,lG:()=>d});var i=n(7423),a=n(6885),o=n(508),s=n(1795),r=n(3138),c=n(4961),l=n(8425),p=n(3907);function u(e){return(0,o.My)(a.ko.getPublicKey((0,o.aT)(e)))}async function d(e){await r.store.fetcher.load(e);const t=await(0,l.AB)(e);try{await r.store.fetcher.load(t);const n=r.store.any(e,s.A.solid("publicKey"));return n?.value}catch(e){return}}async function m(e){await r.store.fetcher.load(e);const t=await(0,l.AB)(e),n=await(0,l.ED)(e),d=await(0,l.S3)(e,t);let m=await(0,l.cX)(e,n),h=!0;if(m&&d!==u(m)&&confirm("This is strange the publicKey is not valid for\n"+e?.uri+"'shall we repair keeping the private key ?")&&(h=!1),!m||!d||!h){let l=[],g=[];if(m||(m=(0,o.My)(a.ko.utils.randomSecretKey()),g=[c.st(e,s.A.solid("privateKey"),c.literal(m),r.store.sym(n))],await f(n,[],g,e.uri)),!d||!h){l=[],d&&(l=[c.st(e,s.A.solid("publicKey"),c.lit(d),r.store.sym(t))],i.Rm("delete invalid publicKey "+l));const n=u(m);g=[c.st(e,s.A.solid("publicKey"),c.literal(n),r.store.sym(t))],await f(t,l,g)}const b=n.substring(0,n.lastIndexOf("/")+1);await(0,p.lO)(b,(0,p.vb)(e.uri))}return m}async function f(e,t,n,a=""){await(async e=>{await r.store.fetcher.load(e);const t=r.store.any(r.store.sym(e),r.store.sym("http://www.iana.org/assignments/link-relations/acl"));if(t)try{const e=await r.store.fetcher.webOperation("DELETE",t.value);i.Rm("delete keyAcl"+t.value+" "+e.status)}catch(e){if(404!==e.response.status)throw new Error(e);i.Rm("delete keyAcl"+t.value+" "+e.response.status)}})(e),await r.store.updater.updateMany(t,n);const o=(0,p.G2)(e,a);await(0,p.lO)(e,o)}},3262(e,t,n){n.d(t,{LV:()=>L,Uh:()=>k,zt:()=>T});var i=n(9509),a=n(5187),o=n(7236),s=n(2465),r=n(7423),c=n(3378),l=n(3138),p=n(967),u=n(6127),d=n(1795),m=n(8153),f=n(675),h=n(52),g=n(4608),b=n(630),x=n(6855);const v=window.document,y=f.i.messageBodyStyle,w=h.label;const C=function(e,t){const n=v.createElement("a");return t&&t.uri&&(n.setAttribute("href",t.uri),n.addEventListener("click",g.openHrefInOutlineMode,!0),n.setAttribute("style","color: #3B5998; text-decoration: none; ")),n.textContent=e,n};function A(e){const t=l.store.any(e,d.A.foaf("nick"));return t?""+t.value:""+w(e)}function E(e,t,n,i){const a=e.appendChild(C(A(t),t));t.uri&&l.store.fetcher.nowOrWhenFetched(t.doc(),void 0,function(e,n){a.textContent=A(t)}),e.appendChild(v.createElement("br")),e.appendChild(C(n,i))}async function k(e,t,n,i,o){let p=!1;const u="1"===i.colorizeByAuthor||!0===i.colorizeByAuthor,f=l.store.any(t,d.A.foaf("maker")),h=l.store.any(t,d.A.dct("created")),k=await(0,s.n6)(t),T=l.store.any(k,d.A.foaf("maker")),L=f.uri===T?.uri?k:t,j=l.store.any(L,d.A.sioc("content")),_=await(0,s.x6)(L);_.length>1&&r.Rm("renderMessageRow versions: ",_.join(", "));const S=_.map(e=>l.store.each(e,d.A.sioc("has_reply"))).flat();let R=null;const N=[];for(const e of S)l.store.holds(e,d.A.rdf("type"),d.A.sioc("Thread"))?(R=e,r.Rm("renderMessageRow: found thread: "+R)):N.push(e);N.length>1&&r.Rm("renderMessageRow: found normal replies: ",N),R||(R=l.store.any(null,d.A.sioc("has_member"),t));const B=l.store.any(L,$rdf.sym(`${b.yv}proofValue`)),I=(0,b.YJ)();I.id=L.uri,I.created=l.store.any(L,d.A.dct("created")).value,I.content=j.value,I.maker=f.uri,B?.value?(0,x.lG)(f).then(e=>{e||r.R8("message is signed but "+f.uri+" is missing publicKey");e?.match(/[0-9A-Fa-f]{6}/g)?B?.value&&!(0,b.Od)(B?.value,I,e)&&r.R8("invalid signature\n"+I.id):r.R8("invalid publicKey hex string\n"+f.uri+"\n"+e)}):(p=!0,r.R8(L.uri+" is unsigned"));const D=await(0,s.oQ)(t),O=!t.sameTerm(D),M=l.store.the(D,d.A.dct("created"),null,D.doc())||l.store.the(t,d.A.dct("created"),null,t.doc()),F=v.createElement("tr");p&&F.setAttribute("style","background-color: red"),F.AJAR_date=M.value,F.AJAR_subject=t;const P=v.createElement("td");if(F.appendChild(P),i.authorDateOnLeft)E(P,f,g.shortDate(M.value),t);else{const e=v.createElement("img");e.setAttribute("style","max-height: 2.5em; max-width: 2.5em; border-radius: 0.5em; margin: auto;"),g.setImage(e,f),P.appendChild(e)}let z=g.shortDate(M.value);O&&(z+=" ... "+g.shortDate(h.value));const U=F.appendChild(v.createElement("td"));i.authorDateOnLeft||function(e,t,n,i){const a=e.appendChild(C(w(t),t));t.uri&&l.store.fetcher.nowOrWhenFetched(t.doc(),void 0,function(e,n){a.textContent=A(t)});const o=e.appendChild(C(n,i));o.style.fontSize="80%",o.style.marginLeft="1em",e.appendChild(v.createElement("br"))}(U,f,z,t);const $=j?j.value.trim():"??? no content?";let q=null;if(/^https?:\/[^ <>]*$/i.test($)){if(/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test($)&&i.expandImagesInline){const e=function(e,t){const n=v.createElement("img");let i="10";t.inlineImageHeightEms&&(i=(""+t.inlineImageHeightEms).trim()),n.setAttribute("style","max-height: "+i+"em; border-radius: 1em; margin: 0.7em;"),e&&n.setAttribute("src",e);const a=v.createElement("a");return a.setAttribute("href",e),a.setAttribute("target","images"),a.appendChild(n),g.makeDraggable(n,$rdf.sym(e)),a}($,i);U.appendChild(e)}else{const e=U.appendChild(v.createElement("a"));q=e.appendChild(v.createElement("p")),e.href=$,q.textContent=$,U.appendChild(e)}}else q=v.createElement("p"),U.appendChild(q),q.textContent=$;if(q){const e=u?m.lightColorHash(f):function(e){return e?"#e8ffe8":"white"}(n);q.setAttribute("style",y+"background-color: "+e+";")}const H=await(0,a.lk)(t,t.doc());H.children.length&&(U.appendChild(v.createElement("br")),U.appendChild(H));const V=v.createElement("td");F.appendChild(V);const Z=g.button(v,c.Pt.iconBase+"noun_243787.svg","...");return V.appendChild(Z),Z.addEventListener("click",async function(n){if(F.toolTR)return F.parentNode.removeChild(F.toolTR),void delete F.toolTR;const s=v.createElement("tr"),r=await(0,a.tJ)(t,F,{...o,chatOptions:i},e);r.style="border: 0.05em solid #888; border-radius: 0 0 0.7em 0.7em; border-top: 0; height:3.5em; background-color: #fff;",F.nextSibling?F.parentElement.insertBefore(s,F.nextSibling):F.parentElement.appendChild(s),F.toolTR=s,s.appendChild(v.createElement("td"));const c=s.appendChild(v.createElement("td"));s.appendChild(v.createElement("td")),c.appendChild(r)}),R&&i.showThread&&V.appendChild(g.button(v,c.Pt.iconBase+"noun_1180164.svg","see thread",e=>{i.showThread(R,i)})),F}async function T(e,t,n,i){const a=e.parentNode,o=L(n,a,i,n.options,await(0,s.n6)(t));a.insertBefore(o,e),o.originalRow=e,e.style.visibility="hidden"}function L(e,t,n,a,s){async function h(e){await b(_.value,!0)}async function b(o,c){let l;c&&(_.setAttribute("style",y+"color: #bbb;"),_.disabled=!0);try{l=await e.updateMessage(o,s,null,a.thread)}catch(e){return void(n.statusArea||k).appendChild(g.errorMessageBlock(v,"Error writing message: "+e))}await async function(o){if(await(0,i.rg)(e,t,o,!1,a,n),s){const e=k.originalRow;e.parentNode?e.parentNode.removeChild(e):(r.R8("No parentNode on old message "+e.textContent),e.style.backgroundColor="#fee",e.style.visibility="hidden"),k.parentNode.removeChild(k)}else c&&(_.value="",_.setAttribute("style",y),_.disabled=!1,_.scrollIntoView(a.newestFirst),_.focus(),_.select())}(l)}function x(e){const n=t.chatDocument.dir().uri;g.uploadFiles(l.store.fetcher,e,n+"Files",n+"Pictures",async function(e,t){await b(t)})}const w=async function(e){for(const t of e)await b(t)};let C,A;s?(C=l.store.anyValue(s,d.A.dct("created"),null,s.doc()),A=c.Pt.iconBase+"noun_1180158.svg"):(A=c.Pt.iconBase+"noun_383448.svg",C="9999-01-01T00:00:00Z");const k=v.createElement("tr"),T=v.createElement("td"),L=v.createElement("td"),j=v.createElement("td");let _,S;k.appendChild(T),k.appendChild(L),k.appendChild(j),k.AJAR_date=C;const R={div:L,dom:v};return(0,p.ensureLoggedIn)(R).then(t=>{!function(){if(a.menuHandler){const e=g.button(v,c.Pt.iconBase+"noun_243787.svg","More");e.setAttribute("style",f.i.buttonStyle+"float: right;"),j.appendChild(e)}a.menuHandler;const t=l.authn.currentUser();if(E(T,t,"",null),_=v.createElement("textarea"),L.innerHTML="",L.appendChild(_),_.rows=3,s&&(_.value=l.store.anyValue(s,d.A.sioc("content"),null,s.doc())),_.setAttribute("style",y+"background-color: #eef;"),_.addEventListener("keydown",async function(e){"Enter"===e.code&&(!e.shiftKey&&!a.shiftEnterSendsMessage||e.shiftKey&&a.shiftEnterSendsMessage)&&await h()},!1),g.makeDropTarget(_,w,x),j.innerHTML="",S=g.button(v,A,"Send"),S.style.float="right",S.addEventListener("click",e=>h(),!1),j.appendChild(S),s){const e=j.appendChild(g.cancelButton(v));e.style.float="left",e.addEventListener("click",e=>function(e){e.originalRow.style.visibility="visible",e.parentNode.removeChild(e)}(k),!1),j.appendChild(e)}const n=e.dateFolder.leafDocumentFromDate(new Date);let i;L.appendChild(u.$.cameraButton(v,l.store,function(){return i=$rdf.sym(n.dir().uri+"Image_"+Date.now()+".png"),i},async function(e){e&&await b(e.uri)})),m.recordParticipation(e.channel,e.channel.doc())}(),Object.assign(t,n),(0,o.z6)(t).then(e=>{})}),k}},5187(e,t,n){n.d(t,{lk:()=>h,tJ:()=>g});var i=n(7423),a=n(3378),o=n(1795),s=n(4961),r=n(52),c=n(4608),l=n(7236),p=n(3138),u=n(2465),d=n(3262);const m=window.document,f={};async function h(e,t){const n=m.createElement("span");async function a(){if(n.innerHTML="",(0,u.oy)(e))return n;const i=(await(0,u.x6)(e)).map(e=>p.store.each(null,o.A.schema("target"),e,t)).flat();if(0===i.length)return n;const a=i.map(e=>[p.store.any(e,o.A.rdf("type"),null,t),p.store.any(e,o.A.sioc("content"),null,t),p.store.any(e,o.A.schema("agent"),null,t)]);a.sort(),a.forEach(e=>{const[t,i,a]=e;let o;a?(o=m.createElement("a"),o.setAttribute("href",a.uri)):o=m.createTextNode(""),o.textContent=i||f[t]||"⬜️",n.appendChild(o)})}return a().then(i.Rm("sentimentStripLinked: sentimentStripLinked async refreshed")),n.refresh=a,n}async function g(e,t,n,f){const h=m.createElement("div");if(await(0,u.n6)(e).value===o.A.schema("dateDeleted").value)return h;function g(){h.parentElement.parentElement.removeChild(h.parentElement)}async function b(e){await p.store.updater.update(p.store.connectedStatements(e),[])}let x=p.authn.currentUser();function v(e,n,i,a,l,u){function d(){f.style.backgroundColor=x?"yellow":"white"}const f=c.button(m,i,r.label(a),async function(i){if(x)await b(x),x=null,d();else{x=c.newThing(l);const i=[s.st(x,o.A.schema("agent"),e.me,l),s.st(x,o.A.rdf("type"),a,l),s.st(x,o.A.schema("target"),n,l)];if(await p.store.updater.update([],i),d(),u){let e=!1;for(let t=0;t<u.length;t++){const n=h(u[t]);n&&(await b(n),e=!0)}e&&c.refreshTree(t)}}});function h(t){const i=p.store.each(null,o.A.schema("agent"),e.me,l).filter(e=>p.store.holds(e,o.A.rdf("type"),t,l)).filter(e=>p.store.holds(e,o.A.schema("target"),n,l));return i.length?i[0]:null}function g(){x=h(a),d()}let x;return f.refresh=g,g(),f}if(x&&p.store.holds(e,o.A.foaf("maker"),x)&&(h.appendChild(c.deleteButtonWithCheck(m,h,"message",async function(){const a=p.store.any(e,o.A.foaf("maker"));if(x)if(x.sameTerm(a)){try{await f.deleteMessage(e)}catch(e){const a="Error deleting messaage "+e;i.R8(a),alert(a),(n.statusArea||t.parentNode).appendChild(c.errorMessageBlock(m,a))}t.parentNode.removeChild(t)}else alert("You can't delete the message, you are not logged in as the author, "+a);else alert("You can't delete the message, you are not logged in.");g()})),h.appendChild(c.button(m,a.Pt.iconBase+"noun_253504.svg","edit",()=>async function(t){x.value===p.store.any(e,o.A.foaf("maker")).value&&(g(),await(0,d.zt)(t,e,f,n))}(t)))),(0,l.eD)(n).then(e=>{e&&h.appendChild(e)}),x=p.authn.currentUser(),x&&await(0,u.n6)(e).value!==o.A.schema("dateDeleted").value){const t={me:x,dom:m,div:h};h.appendChild(v(t,e,a.Pt.iconBase+"noun_1384132.svg",o.A.schema("AgreeAction"),e.doc(),[o.A.schema("DisagreeAction")])),h.appendChild(v(t,e,a.Pt.iconBase+"noun_1384135.svg",o.A.schema("DisagreeAction"),e.doc(),[o.A.schema("AgreeAction")]))}p.store.any(e,o.A.dct("created"))&&h.appendChild(c.button(m,a.Pt.iconBase+"noun-reply-5506924.svg","Reply in thread",async()=>{await async function(){const t=await f.createThread(e),i=n.chatOptions;if(!i)throw new Error("replyInThread: missing options");i.showThread(t,i),g()}()}));const y=h.appendChild(c.cancelButton(m));return y.style.float="right",y.firstChild.style.opacity="0.3",y.addEventListener("click",g),h}f[o.A.schema("AgreeAction")]="👍",f[o.A.schema("DisagreeAction")]="👎",f[o.A.schema("EndorseAction")]="⭐️",f[o.A.schema("LikeAction")]="❤️"},630(e,t,n){n.d(t,{Od:()=>p,YJ:()=>c,vt:()=>u,yv:()=>r});var i=n(6885),a=n(508),o=n(4721);new TextDecoder("utf-8");const s=new TextEncoder,r="https://w3id.org/security#";function c(){return{id:"",created:"",dateDeleted:"",content:"",maker:"",sig:""}}function l(e){const t=(0,o.sc)(s.encode((n=e,JSON.stringify(n))));var n;return(0,a.My)(t)}function p(e,t,n){return i.ko.verify((0,a.aT)(e),(0,a.aT)(l(t)),(0,a.aT)(n))}function u(e,t){return(0,a.My)(i.ko.sign((0,a.aT)(l(e)),(0,a.aT)(t)))}},8613(e,t,n){n.d(t,{T:()=>u});var i=n(3138),a=n(7423),o=n(3378),s=n(967),r=n(1795),c=n(52),l=n(4608);const p=i.solidLogicSingleton.store;function u(e,t,n){const i=e.dom,u=e.div;if(e.me&&!e.me.uri)throw new Error("newThingUI: Invalid userid: "+e.me);const d="padding: 0.7em; width: 2em; height: 2em;",m=u.appendChild(i.createElement("img"));let f=!1;m.setAttribute("src",o.Pt.iconBase+"noun_34653_green.svg"),m.setAttribute("style",d),m.setAttribute("title","Add another tool");const h=function(e){const t=u.appendChild(i.createElement("pre"));t.setAttribute("style","background-color: pink"),t.appendChild(i.createTextNode(e))};function g(e){for(let t=0;t<x.length;t++){let n=d+e;x[t].disabled&&(n+="opacity: 0.3;"),x[t].setAttribute("style",n)}}function b(e){f=!f,m.setAttribute("style",d+(f?"background-color: yellow;":"")),g(f?"":"display: none;")}m.addEventListener("click",b);const x=[],v=Object.values(n).filter(e=>e.mintNew),y=v.reduce((e,t)=>(t.mintClass&&(e[t.mintClass.uri]=(e[t.mintClass.uri]||0)+1),e),{});v.forEach(n=>{const o=e.div.appendChild(i.createElement("img"));o.setAttribute("src",n.icon);const u=n.mintClass?y[n.mintClass.uri]>1?`${c.label(n.mintClass)} (using ${n.name} pane)`:c.label(n.mintClass):n.name+" @@";o.setAttribute("title","Make new "+u),o.setAttribute("style",d+"display: none;"),x.push(o),o.disabled||o.addEventListener("click",function(m){var f;!function(e){g("display: none;"),e.setAttribute("style",d+"background-color: yellow;")}(o),f={event:m,folder:e.folder||null,iconEle:o,pane:n,noun:u,noIndexHTML:!0,div:e.div,me:e.me,dom:e.dom,refreshTarget:e.refreshTarget},new Promise(function(n,o){let u;function d(n,c){(0,s.ensureLoadedProfile)(e).then(e=>{const s=Object.assign({newBase:c,folder:f.folder||void 0,workspace:n},f);for(const e in f)s[e]=f[e];a.Rm(`newThingUI: Minting new ${s.pane.name} at ${s.newBase}`),f.pane.mintNew(t,s).then(function(e){if(!e||!e.newInstance)throw new Error("Cannot mint new - missing newInstance");if(e.folder){const t=e.newInstance.uri.slice(e.folder.uri.length).includes("/");a.Rm(" new thing is packge? "+t),t?p.add(e.folder,r.A.ldp("contains"),p.sym(e.newBase),e.folder.doc()):p.add(e.folder,r.A.ldp("contains"),e.newInstance,e.folder.doc()),e.refreshTarget&&e.refreshTarget.refresh&&e.refreshTarget.refresh()}else{const t=f.div.appendChild(i.createElement("p"));t.setAttribute("style","font-size: 120%;"),t.innerHTML="Your <a target='_blank' href='"+e.newInstance.uri+"'><b>new "+f.noun+"</b></a> is ready to be set up. <br/><br/><a target='_blank' href='"+e.newInstance.uri+"'>Go to your new "+f.noun+".</a>"}b()}).catch(function(e){h(e),o(e)})},e=>{h("Error logging on: "+e)})}const m=f.pane;if(f.noun=m.mintClass?c.label(m.mintClass):m.name,f.appPathSegment=f.noun.slice(0,1).toUpperCase()+f.noun.slice(1),f.folder){const e=function(e){if(e){let t=f.folder.uri;t.endsWith("/")||(t+="/"),t=t+encodeURIComponent(e)+"/",d(null,t)}else b()};l.askName(i,p,f.div,r.A.foaf("name"),null,f.noun).then(e)}else u=(0,s.selectWorkspace)(i,{noun:f.noun,appPathSegment:f.appPathSegment},d),f.div.appendChild(u)})})})}},6589(e,t,n){n.d(t,{v:()=>i});const i={newThingUI:n(8613).T}},5912(e,t,n){n.r(t)},7423(e,t,n){function i(...e){console.log(...e)}function a(...e){console.warn(...e)}function o(...e){console.error(...e)}function s(...e){console.trace(...e)}n.d(t,{R8:()=>a,Rm:()=>i,uP:()=>s,z3:()=>o})},7134(e,t,n){n.d(t,{Ux:()=>c});var i=n(3138),a=n(675),o=n(8565);const s="https://solidproject.org",r="solidproject.org";async function c(e,t){const n=document.getElementById("PageFooter");if(!n)return;const a=(0,o.E6)(),s=await(0,o.bB)(a,e);l(n,e,a,s,t)(),i.authSession.events.on("login",l(n,e,a,s,t)),i.authSession.events.on("logout",l(n,e,a,s,t))}function l(e,t,n,c,l){return async()=>{const p=i.authn.currentUser();e.innerHTML="",e.appendChild(await function(e,t,n,i,c){const l=document.createElement("div");l.setAttribute("style",a.i.footer);const p=document.createElement("a");if(p.href=c&&c.solidProjectUrl?c.solidProjectUrl:s,p.innerText=c&&c.solidProjectName?c.solidProjectName:r,!n||!i||t&&t.equals(i)){const e=document.createElement("span");return e.innerText="Powered by ",l.appendChild(e),l.appendChild(p),l}const u=document.createElement("span");u.innerText="You're visiting ";const d=document.createElement("a");d.href=n.uri,d.innerText="the Pod";const m=document.createElement("span");m.innerText=" controlled by ";const f=document.createElement("a");f.href=i.uri,f.innerText=(0,o.mG)(e,i);const h=document.createElement("span");h.innerText=". For more info, check out ";const g=document.createElement("span");return g.innerText=".",l.appendChild(u),l.appendChild(d),l.appendChild(m),l.appendChild(f),l.appendChild(h),l.appendChild(p),l.appendChild(g),l}(t,p,n,c,l))}}},2825(e,t,n){n.d(t,{j:()=>i});const i='\n<svg xmlns="http://www.w3.org/2000/svg" width="26" height="26" viewBox="0 0 26 26" fill="none">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M13 25C19.6274 25 25 19.6274 25 13C25 6.37258 19.6274 1 13 1C6.37258 1 1 6.37258 1 13C1 19.6274 6.37258 25 13 25Z" fill="#D8D8D8" stroke="#8B8B8B"/>\n <mask id="mask0" mask-type="alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="26" height="26">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M13 25C19.6274 25 25 19.6274 25 13C25 6.37258 19.6274 1 13 1C6.37258 1 1 6.37258 1 13C1 19.6274 6.37258 25 13 25Z" fill="white" stroke="white"/>\n </mask>\n <g mask="url(#mask0)">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M17.0468 10.4586C17.0468 14.4979 15.4281 16.9214 12.9999 16.9214C10.5718 16.9214 8.95298 14.4979 8.95298 10.4586C8.95298 6.41931 12.9999 6.41931 12.9999 6.41931C12.9999 6.41931 17.0468 6.41931 17.0468 10.4586ZM4.09668 23.3842C6.52483 17.7293 12.9999 17.7293 12.9999 17.7293C12.9999 17.7293 19.475 17.7293 21.9031 23.3842C21.9031 23.3842 17.8481 25 12.9999 25C8.15169 25 4.09668 23.3842 4.09668 23.3842Z" fill="#8B8B8B"/>\n </g>\n</svg>'},1648(e,t,n){n.d(t,{Of:()=>d});var i=n(4356),a=n(3138),o=n(967),s=n(4608),r=n(675),c=n(2825),l=n(8565);const p=i.Pt.iconBase+"noun_help.svg",u="https://solidproject.org/assets/img/solid-emblem.svg";async function d(e,t,n){const i=document.getElementById("PageHeader");if(!i)return;const o=(0,l.E6)();m(i,e,o,t,n)(),a.authSession.events.on("logout",m(i,e,o,t,n)),a.authSession.events.on("login",m(i,e,o,t,n))}function m(e,t,n,d,m){return async()=>{const x=a.authn.currentUser();e.innerHTML="",e.appendChild(await async function(e,t,n,a,d){const m=document.createElement("a");m.href=t.uri,m.setAttribute("style",r.i.headerBannerLink);const x=document.createElement("img");d&&(x.src=d.logo?d.logo:u);x.setAttribute("style",r.i.headerBannerIcon),m.appendChild(x);const v=n?await async function(e,t,n){const i=e.fetcher;i&&await i.load(t);const a=document.createElement("ul");a.setAttribute("style",r.i.headerUserMenuList),n&&n.forEach(function(e){"url"===(e.url?"url":"onclick")?a.appendChild(g(h(e.label,e.url,e.target))):a.appendChild(g(f(e.label,e.onclick)))});const o=document.createElement("nav");o.setAttribute("style",r.i.headerUserMenuNavigationMenuNotDisplayed),o.setAttribute("aria-hidden","true"),o.setAttribute("id","loggedInNav"),o.appendChild(a);const p=document.createElement("button");p.setAttribute("style",r.i.headerUserMenuTrigger),p.type="button";const u=function(e,t){let n=null;try{if(n=s.findImage(t),!n)return c.j}catch{return c.j}const i=document.createElement("div");return i.setAttribute("style",r.i.headerUserMenuPhoto),i.style.backgroundImage=`url(${n})`,i}(0,t);"string"==typeof u?p.innerHTML=u:p.appendChild(u);const d=document.createElement("div");d.setAttribute("style",r.i.headerBannerUserMenuNotDisplayed),d.appendChild(p),d.appendChild(o);const m=(0,l.nF)(e=>b(e,p,o),50);p.addEventListener("click",m);let x=setTimeout(()=>null,0);return d.addEventListener("mouseover",e=>{clearTimeout(x),m(e);const t=document.getElementById("loggedInNav");t?.setAttribute("style",r.i.headerUserMenuNavigationMenu)}),d.addEventListener("mouseout",e=>{x=setTimeout(()=>m(e),200);const t=document.getElementById("loggedInNav");t?.setAttribute("style",r.i.headerUserMenuNavigationMenuNotDisplayed)}),d}(e,n,a):function(){const e=document.createElement("div");return e.setAttribute("style",r.i.headerBannerLogin),e.appendChild((0,o.loginStatusBox)(document,null,{})),e}(),y=document.createElement("div");y.setAttribute("style",r.i.headerBanner),y.appendChild(m);const w=document.createElement("div");if(w.setAttribute("style",r.i.headerBannerRightMenu),w.appendChild(v),d&&d.helpMenuList){const e=function(e,t){if(!t)return;const n=document.createElement("ul");n.setAttribute("style",r.i.headerUserMenuList),t.forEach(function(e){"url"===(e.url?"url":"onclick")?n.appendChild(g(h(e.label,e.url,e.target))):n.appendChild(g(f(e.label,e.onclick)))});const a=document.createElement("nav");a.setAttribute("style",r.i.headerUserMenuNavigationMenuNotDisplayed),a.setAttribute("aria-hidden","true"),a.setAttribute("id","helperNav"),a.appendChild(n);const o=document.createElement("div");o.setAttribute("style",r.i.headerBannerUserMenu),o.appendChild(a);const s=document.createElement("button");s.setAttribute("style",r.i.headerUserMenuTrigger),s.type="button";const c=document.createElement("img");c.src=e&&e.helpIcon?e.helpIcon:i.Pt.iconBase+p,c.setAttribute("style",r.i.headerUserMenuTriggerImg),o.appendChild(s),s.appendChild(c);const u=(0,l.nF)(e=>b(e,s,a),50);s.addEventListener("click",u);let d=setTimeout(()=>null,0);return o.addEventListener("mouseover",e=>{clearTimeout(d),u(e);const t=document.getElementById("helperNav");t?.setAttribute("style",r.i.headerUserMenuNavigationMenu)}),o.addEventListener("mouseout",e=>{d=setTimeout(()=>u(e),200);const t=document.getElementById("helperNav");t?.setAttribute("style",r.i.headerUserMenuNavigationMenuNotDisplayed)}),o}(d,d.helpMenuList);w.appendChild(e)}return y.appendChild(w),y}(t,n,x,d,m))}}function f(e,t){const n=document.createElement("button");return n.setAttribute("style",r.i.headerUserMenuButton),n.onmouseover=function(){n.setAttribute("style",r.i.headerUserMenuButtonHover)},n.onmouseout=function(){n.setAttribute("style",r.i.headerUserMenuButton)},n.addEventListener("click",t),n.innerText=e,n}function h(e,t,n){const i=document.createElement("a");return i.setAttribute("style",r.i.headerUserMenuLink),i.onmouseover=function(){i.setAttribute("style",r.i.headerUserMenuLinkHover)},i.onmouseout=function(){i.setAttribute("style",r.i.headerUserMenuLink)},i.href=t,i.innerText=e,n&&(i.target=n),i}function g(e){const t=document.createElement("li");return t.setAttribute("style",r.i.headerUserMenuListItem),t.appendChild(e),t}function b(e,t,n){const i="true"===t.getAttribute("aria-expanded"),a="mouseover"===e.type,o="mouseout"===e.type;i&&a||!i&&o||(t.setAttribute("aria-expanded",(!i).toString()),n.setAttribute("aria-hidden",i.toString()))}},3378(e,t,n){n.d(t,{LN:()=>s,Pt:()=>o,i1:()=>r});var i=n(7423);const a="https://solidos.github.io/solid-ui/src",o=(e=n.hmd(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:a+"/icons/",originalIconBase:a+"/originalIcons/"};(0,i.Rm)(" icons.iconBase is set to : "+o.iconBase);const s=o.iconBase,r=o.originalIconBase},4356(e,t,n){n.d(t,{$_:()=>p.$,BH:()=>r,BL:()=>a.B,Iw:()=>E,Of:()=>C.Of,Pt:()=>s.Pt,Qs:()=>w,Rm:()=>c,UP:()=>l.U,Ux:()=>A.Ux,Wp:()=>v,_f:()=>f,eV:()=>m,iD:()=>y,iF:()=>g.i,ns:()=>i.A,r5:()=>d.r5,tT:()=>k,tp:()=>b.I,um:()=>a.u,vJ:()=>h,vR:()=>x,vV:()=>u.v,vt:()=>o.v});var i=n(1795),a=n(5923),o=n(6589),s=n(3378),r=n(8677),c=n(4158),l=n(7580),p=n(6127),u=n(8516),d=n(9509),m=n(8153),f=n(3605),h=n(5148),g=n(675),b=n(2174),x=n(6670),v=n(52),y=n(967),w=n(4608),C=n(1648),A=n(7134),E=n(5912);const k=window?window.document:null;"undefined"!=typeof window&&(window.UI={ns:i.A,acl:a.B,aclControl:a.u,create:o.v,createTypes:E,dom:k,icons:s.Pt,language:r,log:c,login:y,matrix:l.U,media:p.$,messageArea:u.v,infiniteMessageArea:d.r5,pad:m,participation:f,preferences:h,style:g.i,table:b.I,tabs:x,utils:v,widgets:w,initHeader:C.Of,initFooter:A.Ux})},4158(e,t,n){n.r(t),n.d(t,{LogLevel:()=>i,alert:()=>h,clear:()=>g,debug:()=>u,dumpHTML:()=>x,error:()=>m,escapeForXML:()=>w,info:()=>d,logAscending:()=>v,logDescending:()=>y,msg:()=>l,setInternals:()=>C,setLevel:()=>b,success:()=>f,warn:()=>p});let i=function(e){return e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Message=4]="Message",e[e.Success=8]="Success",e[e.Info=16]="Info",e[e.Debug=32]="Debug",e[e.All=63]="All",e}({}),a=7,o=!1,s=document,r=window;function c(e,t=4,n="mesg"){if(a&t)if(void 0!==s){const t=s.getElementById("status");if(!t)return;const i=s.createElement("span");i.setAttribute("class",n);const a=new Date;i.innerHTML=`${a.getHours()}:${a.getMinutes()}:${a.getSeconds()} [${n}] ${w(e)}<br/>`,o?t.insertBefore(i,t.firstChild):t.appendChild(i)}else"undefined"!=typeof console&&console.log(e)}function l(e){c(e)}function p(e){c(e,2,"warn")}function u(e){c(e,32,"dbug")}function d(e){c(e,16,"info")}function m(e){c(e,1,"eror")}function f(e){c(e,8,"good")}function h(e){r&&void 0!==r.alert?r.alert(e):p(e)}function g(){const e=s?.getElementById("status");e&&(e.innerHTML="")}function b(e){a=63,u("Log level is now "+e),a=e}function x(){if(!s)return;const e=a;a=63,u(s?.body?.innerHTML||""),a=e}function v(){o=!0}function y(){o=!1}function w(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function C(e,t){r=e,s=t}},967(e,t,n){n.r(t),n.d(t,{ensureLoadedPreferences:()=>y,ensureLoadedProfile:()=>w,ensureLoggedIn:()=>v,filterAvailablePanes:()=>N,findAppInstances:()=>C,getUserRoles:()=>R,loginStatusBox:()=>j,newAppInstance:()=>S,registrationControl:()=>E,registrationList:()=>T,renderScopeHeadingRow:()=>k,renderSignInPopup:()=>L,scopeLabel:()=>A,selectWorkspace:()=>_});var i=n(4961),a=n(3138),o=n(7423),s=n(675),r=n(4158),c=n(1795),l=n(6247),p=n(52),u=n(4608);a.solidLogicSingleton.store;const{loadPreferences:d,loadProfile:m}=a.solidLogicSingleton.profile,{getScopedAppInstances:f,getRegistrations:h,loadAllTypeIndexes:g,getScopedAppsFromIndex:b,deleteTypeIndexRegistration:x}=a.solidLogicSingleton.typeIndex;function v(e){const t=a.authn.currentUser();return t?(a.authn.saveUser(t,e),Promise.resolve(e)):new Promise(t=>{a.authn.checkUser().then(n=>{if(n)return o.Rm(`logIn: Already logged in as ${n}`),t(e);if(!e.div||!e.dom)return t(e);const i=j(e.dom,n=>{a.authn.saveUser(n,e),t(e)});e.div.appendChild(i)})})}async function y(e){if(e.preferencesFile)return Promise.resolve(e);let t;try{e=await w(e);const n=await d(e.me);t,e.preferencesFile=n}catch(t){let n;if(t instanceof a.UnauthorizedError)n="Oops — you are not authenticated (properly logged in), so SolidOS cannot read your preferences file. Try logging out and then logging back in.",(0,r.alert)(n);else{if(t instanceof a.CrossOriginForbiddenError)return n=`Unauthorized: Assuming preference file blocked for origin ${window.location.origin}`,e.preferencesFileError=n,e;if(t instanceof a.SameOriginForbiddenError)return n="You are not authorized to read your preference file. This may be because you are using an untrusted web app.",o.R8(n),e;if(t instanceof a.NotEditableError)return n="You are not authorized to edit your preference file. This may be because you are using an untrusted web app.",o.R8(n),e;if(t instanceof a.WebOperationError)n="You are not authorized to edit your preference file. This may be because you are using an untrusted web app.",o.R8(n);else{if(!(t instanceof a.FetchError))throw new Error(`(via loadPrefs) ${t}`);n=`Strange: Error ${t.status} trying to read your preference file.${t.message}`,(0,r.alert)(n)}}}return e}async function w(e){if(e.publicProfile)return e;try{const t=await v(e);if(!t.me)throw new Error("Could not log in");e.publicProfile=await m(t.me)}catch(t){throw e.div&&e.dom&&e.div.appendChild(u.errorMessageBlock(e.dom,t.message)),new Error(`Can't log in: ${t}`)}return e}async function C(e,t,n){let i=e.me?await f(t,e.me):[];return!0===n?i=i.filter(e=>"public"===e.scope.label):!1===n&&(i=i.filter(e=>"private"===e.scope.label)),e.instances=i.map(e=>e.instance),e}function A(e,t){return`${e.me&&e.me.sameTerm(t.agent)?"":p.label(t.agent)+" "}${t.label}`}async function E(e,t,n){function s(o){const s=function(e){const a=h(t,n),o=a.length?a[0]:u.newThing(e);return[(0,i.st)(o,c.A.solid("instance"),t,e),(0,i.st)(o,c.A.solid("forClass"),n,e)]}(o.index),r=`${A(e,o)} link to this ${e.noun}`;return u.buildCheckboxForm(e.dom,a.solidLogicSingleton.store,r,null,s,f,o.index)}const r=e.dom;if(!r||!e.div)throw new Error("registrationControl: need dom and div");const l=r.createElement("div");e.div.appendChild(l),e.me=a.authn.currentUser();const p=e.me;if(!p)return l.innerHTML='<p style="margin:2em;">(Log in to save a link to this)</p>',e;let d;try{d=await g(p)}catch(t){let n;return e.div&&e.preferencesFileError?(n="(Lists of stuff not available)",e.div.appendChild(r.createElement("p")).textContent=n):e.div&&(n=`registrationControl: Type indexes not available: ${t}`,e.div.appendChild(u.errorMessageBlock(e.dom,t))),o.Rm(n),e}l.innerHTML="<table><tbody></tbody></table>",l.setAttribute("style","font-size: 120%; text-align: right; padding: 1em; border: solid gray 0.05em;");const m=l.children[0].children[0],f=new i.BlankNode;for(const e of d){m.appendChild(r.createElement("tr")).appendChild(s(e))}return e}function k(e,t,n){const{dom:i}=e,a=A(e,n),o=i.createElement("tr"),s=o.appendChild(i.createElement("td"));s.setAttribute("colspan","3"),s.style.backgoundColor={private:"#fee",public:"#efe"}[n.label]||"white";const r=s.appendChild(i.createElement("h3"));return r.textContent=a+" links",r.style.textAlign="left",o}async function T(e,t){const n=e.dom,i=e.div,o=n.createElement("div");if(i.appendChild(o),e.me=a.authn.currentUser(),!e.me)return o.innerHTML='<p style="margin:2em;">(Log in list your stuff)</p>',e;const s=await g(e.me);o.innerHTML="<table><tbody></tbody></table>",o.setAttribute("style","font-size: 120%; text-align: right; padding: 1em; border: solid #eee 0.5em;");const r=o.firstChild.firstChild;for(const i of s){const a=k(e,0,i);r.appendChild(a);const o=await b(i,t.type||null);0===o.length&&(a.style.display="none");for(const e of o){const t=u.personTR(n,c.A.solid("instance"),e.instance,{deleteFunction:async()=>{await x(e),r.removeChild(t)}});t.children[0].style.paddingLeft="3em",r.appendChild(t)}}return e}function L(e){const t=e.createElement("div");t.setAttribute("style","position: fixed; top: 0; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; align-items: center;"),e.body.appendChild(t);const n=e.createElement("div");n.setAttribute("style","\n background-color: white;\n box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.2);\n -webkit-box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.2);\n -moz-box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.2);\n -o-box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.2);\n border-radius: 4px;\n min-width: 400px;\n padding: 10px;\n z-index : 10;\n "),t.appendChild(n);const i=e.createElement("div");i.setAttribute("style","\n border-bottom: 1px solid #DDD;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n "),n.appendChild(i);const o=e.createElement("label");o.setAttribute("style","margin-right: 5px; font-weight: 800"),o.innerText="Select an identity provider";const s=e.createElement("button");s.innerHTML='<img src="https://solidos.github.io/solid-ui/src/icons/noun_1180156.svg" style="width: 2em; height: 2em;" title="Cancel">',s.setAttribute("style","background-color: transparent; border: none;"),s.addEventListener("click",()=>{t.remove()}),i.appendChild(o),i.appendChild(s);const c=async e=>{try{a.solidLogicSingleton.store.updater.flagAuthorizationMetadata();const t=new URL(window.location.href).hash;t&&window.localStorage.setItem("preLoginRedirectHash",t),window.localStorage.setItem("loginIssuer",e);const n=new URL(window.location.href);n.hash="",await a.authSession.login({redirectUrl:n.href,oidcIssuer:e})}catch(e){(0,r.alert)(e.message)}},l=e.createElement("div");l.setAttribute("style","\n border-bottom: 1px solid #DDD;\n display: flex;\n flex-direction: column;\n padding-top: 10px;\n ");const p=e.createElement("div");p.setAttribute("style","\n display: flex;\n flex-direction: row;\n ");const u=e.createElement("label");u.innerText="Enter the URL of your identity provider:",u.setAttribute("style","color: #888");const d=e.createElement("input");d.setAttribute("type","text"),d.setAttribute("style","margin-left: 0 !important; flex: 1; margin-right: 5px !important"),d.setAttribute("placeholder","https://example.com"),d.value=localStorage.getItem("loginIssuer")||"";const m=e.createElement("button");m.innerText="Go",m.setAttribute("style","margin-top: 12px; margin-bottom: 12px;"),m.addEventListener("click",()=>{c(d.value)}),l.appendChild(u),p.appendChild(d),p.appendChild(m),l.appendChild(p),n.appendChild(l);const f=e.createElement("div");f.setAttribute("style","\n display: flex;\n flex-direction: column;\n padding-top: 10px;\n ");const h=e.createElement("label");h.innerText="Or pick an identity provider from the list below:",h.setAttribute("style","color: #888"),f.appendChild(h),(0,a.getSuggestedIssuers)().forEach(t=>{const n=e.createElement("button");n.innerText=t.name,n.setAttribute("style","height: 38px; margin-top: 10px"),n.addEventListener("click",()=>{c(t.uri)}),f.appendChild(n)}),n.appendChild(f)}function j(e,t=null,n={}){let i=(0,a.offlineTestID)();const p=e.createElement("div");function d(e){e&&(i=a.authn.saveUser(e),p.refresh(),t&&t(i.uri))}function m(e){const n=i;a.authSession.logout().then(function(){const e=`Your WebID was ${n}. It has been forgotten.`;i=null;try{(0,r.alert)(e)}catch(t){window.alert(e)}p.refresh(),t&&t(null)},e=>{(0,r.alert)("Fail to log out:"+e)})}function f(){i=a.authn.currentUser(),p.refresh()}return p.refresh=function(){const t=a.authSession.info;i=t&&t.webId&&t.isLoggedIn?a.solidLogicSingleton.store.sym(t.webId):null,(i&&p.me!==i.uri||!i&&p.me)&&(u.clearElement(p),i?p.appendChild(function(t,n){const i=n.buttonStyle||s.i.signInAndUpButtonStyle;let o="WebID logout";if(t){const e=a.solidLogicSingleton.store.any(t,c.A.foaf("nick"))||a.solidLogicSingleton.store.any(t,c.A.foaf("name"));e&&(o="Logout "+e.value)}const r=e.createElement("input");return r.setAttribute("type","button"),r.setAttribute("value",o),r.setAttribute("style",`${i}`),r.addEventListener("click",m,!1),r}(i,n)):p.appendChild(function(e,t,n={}){const i=(n=n||{}).buttonStyle||s.i.signInAndUpButtonStyle,r=e.createElement("div"),c="SolidSignInOrSignUpBox";o.Rm("widgets.signInOrSignUpBox"),r.setUserCallback=t,r.setAttribute("class",c),r.setAttribute("style","display:flex;");const p=e.createElement("input");r.appendChild(p),p.setAttribute("type","button"),p.setAttribute("value","Log in"),p.setAttribute("style",`${i}${s.i.headerBannerLoginInput}`+s.i.signUpBackground),a.authSession.events.on("login",()=>{const t=a.authn.currentUser();if(t){const n=t.uri,i=e.getElementsByClassName(c);o.Rm(`Logged in, ${i.length} panels to be serviced`);for(let t=0;t<i.length;t++){const a=i[t];if(a.setUserCallback)try{a.setUserCallback(n);const e=a.parentNode;e&&e.removeChild(a)}catch(t){o.Rm(`## Error satisfying login box: ${t}`),a.appendChild(u.errorMessageBlock(e,t))}}}}),p.addEventListener("click",()=>{const n=(0,a.offlineTestID)();if(n)return t(n.uri);L(e)},!1);const d=e.createElement("input");return r.appendChild(d),d.setAttribute("type","button"),d.setAttribute("value","Sign Up for Solid"),d.setAttribute("style",`${i}${s.i.headerBannerLoginInput}`+s.i.signInBackground),d.addEventListener("click",function(e){(new l.l).signup().then(function(e){o.Rm("signInOrSignUpBox signed up "+e),t(e)})},!1),r}(e,d,n))),p.me=i?i.uri:null},p.refresh(),f(),a.authSession.events.on("login",f),a.authSession.events.on("logout",f),p.me="99999",p.refresh(),p}function _(e,t,n){const r=t.noun,l=t.appPathSegment,p=(0,a.offlineTestID)(),d=e.createElement("div"),m={me:p,dom:e,div:d};function f(t,n){d.appendChild(u.errorMessageBlock(e,t,n))}function h(e){const t=a.solidLogicSingleton.store.any(e,c.A.space("uriPrefix"));let n;n=t?t.value:e.uri.split("#")[0],"/"!==n.slice(-1)&&(o.Rm(`${l}: No / at end of uriPrefix ${n}`),n=`${n}/`);const i=new Date;return n+=`${l}/id${i.getTime()}/`,n}return y(m).then(function(t){const o=t.me,l=t.preferencesFile;let p=null,m=a.solidLogicSingleton.store.each(o,c.A.space("workspace"),void 0,l);const g=a.solidLogicSingleton.store.each(o,c.A.space("storage"));0===m.length&&g&&(f(`You don't seem to have any workspaces. You have ${g.length} storage spaces.`,"white"),g.map(function(e){return m=m.concat(a.solidLogicSingleton.store.each(e,c.A.ldp("contains"))),m}).filter(e=>e.id?["public","private"].includes(e.id().toLowerCase()):"")),1===m.length&&(f(`Workspace used: ${m[0].uri}`,"white"),p=h(m[0]));const b=e.createElement("table");b.setAttribute("style","border-collapse:separate; border-spacing: 0.5em;"),d.appendChild(b),d.appendChild(e.createElement("hr"));const x=d.appendChild(e.createElement("p"));x.setAttribute("style",s.i.commentStyle),x.textContent=`Where would you like to store the data for the ${r}?\n Give the URL of the folder where you would like the data stored.\n It can be anywhere in solid world - this URI is just an idea.`;const v=d.appendChild(e.createElement("input"));v.setAttribute("type","text"),v.setAttribute("style",s.i.textInputStyle),v.size=80,v.label="base URL",v.autocomplete="on",p&&(v.value=p),t.baseField=v,d.appendChild(e.createElement("br"));const y=d.appendChild(e.createElement("button"));let w,C,A,E,k,T,L;y.setAttribute("style",s.i.buttonStyle),y.textContent=`Start new ${r} at this URI`,y.addEventListener("click",function(e){let t=v.value.replace(" ","%20");"/"!==t.slice(-1)&&(t+="/"),n(null,t)}),m=m.filter(function(e){return!a.solidLogicSingleton.store.holds(e,c.A.rdf("type"),c.A.space("MasterWorkspace"))});const j="height: 3em; margin: 1em; padding: 1em white; border-radius: 0.3em;",_=`${j}border: 0px;`;for(let t=0;t<m.length;t++){if(k=m[t],E=e.createElement("tr"),0===t&&(w=e.createElement("td"),w.setAttribute("rowspan",`${m.length}`),w.textContent="Choose a workspace for this:",w.setAttribute("style","vertical-align:middle;"),E.appendChild(w)),C=e.createElement("td"),T=a.solidLogicSingleton.store.anyValue(k,c.A.ui("style")),!T){const e=`#${(16777215&function(e){return e.split("").reduce(function(e,t){return(e=(e<<5)-e+t.charCodeAt(0))&e},0)}(k.uri)|12632256).toString(16)}`;T=`color: black ; background-color: ${e};`}C.setAttribute("style",_+T),E.target=k.uri;let i=a.solidLogicSingleton.store.any(k,c.A.rdfs("label"));i||(i=k.uri.split("/").slice(-1)[0]||k.uri.split("/").slice(-2)[0]),C.textContent=i||"???",E.appendChild(C),0===t&&(A=e.createElement("td"),A.setAttribute("rowspan",`${m.length}1`),A.setAttribute("style","width:50%;"),E.appendChild(A)),b.appendChild(E),L=a.solidLogicSingleton.store.any(k,c.A.rdfs("comment")),L=L?L.value:"Use this workspace",C.addEventListener("click",function(t){A.textContent=L?L.value:"",A.setAttribute("style",_+T);const i=e.createElement("button");i.textContent="Continue";const a=h(k);v.value=a,i.addEventListener("click",function(e){i.disabled=!0,n(k,a),i.textContent="----\x3e"},!0),A.appendChild(i)},!0)}const S=e.createElement("tr");C=e.createElement("td"),C.setAttribute("style",j),C.textContent="+ Make a new workspace",C.addEventListener("click",async function(n){const o=b.appendChild(e.createElement("tr")).appendChild(e.createElement("td"));o.setAttribute("colspan","3"),o.style.padding="0.5em";const s=encodeURI(await u.askName(e,a.solidLogicSingleton.store,o,c.A.solid("URL"),c.A.space("Workspace"),"Workspace")),r=u.newThing(t.preferencesFile),l=[(0,i.st)(t.me,c.A.space("workspace"),r,t.preferencesFile),(0,i.st)(r,c.A.space("uriPrefix"),s,t.preferencesFile)];if(!a.solidLogicSingleton.store.updater)throw new Error("store has no updater");await a.solidLogicSingleton.store.updater.update([],l)}),S.appendChild(C),b.appendChild(S)}).catch(e=>{d.appendChild(u.errorMessageBlock(m.dom,e))}),d}function S(e,t,n){const i=function(e,t){n(e,t)},a=e.createElement("div"),o=e.createElement("button");return o.setAttribute("type","button"),a.appendChild(o),o.innerHTML=`Make new ${t.noun}`,o.addEventListener("click",n=>{a.appendChild(_(e,t,i))},!1),a.appendChild(o),a}async function R(){try{const{me:e,preferencesFile:t,preferencesFileError:n}=await y({});if(!t||n)throw new Error(n);return a.solidLogicSingleton.store.each(e,c.A.rdf("type"),null,t.doc())}catch(e){o.R8("Unable to fetch your preferences - this was the error: ",e)}return[]}async function N(e){const t=await R();return e.filter(e=>function(e,t){const n=e.audience||[];return n.reduce((e,n)=>e&&!!t.find(e=>e.equals(n)),!0)}(e,t))}a.authSession.events.on("logout",async()=>{const e=window.localStorage.getItem("loginIssuer");if(e)try{a.solidLogicSingleton.store.updater.flagAuthorizationMetadata();const t=new URL(e);t.pathname="/.well-known/openid-configuration";const n=await fetch(t.toString());if(200===n.status){const e=await n.json();e&&e.end_session_endpoint&&await fetch(e.end_session_endpoint,{credentials:"include"})}}catch(e){}window.location.reload()})},7580(e,t,n){n.d(t,{U:()=>i});const i={matrixForQuery:n(7659).p}},7659(e,t,n){n.d(t,{p:()=>s});var i=n(52),a=n(4961);const o=n(3138).solidLogicSingleton.store;function s(e,t,n,s,r,c,l){const p=e.createElement("table"),u=e.createElement("tr");u.appendChild(e.createElement("td")).setAttribute("class","MatrixCorner"),p.appendChild(u),p.lastHeader=u;let d=[];const m=[],f=function(e,t,n,a){for(;e.firstChild;)e.removeChild(e.firstChild);e.setAttribute("style",""),e.style.textAlign="center",c.cellFunction?c.cellFunction(e,t,n,a):(e.textContent=i.label(a),e.setAttribute("style","padding: 0.3em")),delete e.old},h=function(t){const n=t.toNT();if(m[n])return m[n];const s=e.createElement("tr"),r=s.appendChild(e.createElement("td"));r.setAttribute("style","padding: 0.3em;"),r.textContent=i.label(t),"NamedNode"===t.termType&&o.fetcher.nowOrWhenFetched(t.uri.split("#")[0],void 0,function(e,n,a){e&&(r.textContent=i.label(t))});for(let n=0;n<d.length;n++)f(s.appendChild(e.createElement("td")),a.fromNT(d[n]),t,null);s.dataValueNT=n,m[n]=s;for(let e=p.lastHeader.nextSibling;e;e=e.nextSibling)if(n>e.dataValueNT&&c&&c.yDecreasing||n<e.dataValueNT&&(!c||!c.yDecreasing))return p.insertBefore(s,e);return p.appendChild(s)},g=function(t){const n=t.toNT();let o=null;for(let e=0;e<d.length;e++){if(d[e]===n)return e;if(n>d[e]&&c.xDecreasing||n<d[e]&&!c.xDecreasing){d=d.slice(0,e).concat([n]).concat(d.slice(e)),o=e;break}}null===o&&(o=d.length,d.push(n));for(let n=p.firstChild;n;n=n.nextSibling){const s=n.dataValueNT,r=e.createElement("td");if(r.style.textAlign="center",n===p.firstChild?r.textContent=i.label(t):f(r,t,a.fromNT(s),null),o===d.length-1)n.appendChild(r);else{let e=n.firstChild;for(let t=0;t<o+1;t++)e=e.nextSibling;n.insertBefore(r,e)}}return o},b=function(){let e,t;const n=[],i=[];if(c.set_y)for(let e=0;e<c.set_y.length;e++)i[c.set_y[e]]=!0;if(c.set_x)for(let e=0;e<c.set_x.length;e++)n[g(c.set_x[e])+1]=!0;for(let o=1;o<p.children.length;o++){e=p.children[o];for(let o=1;o<e.children.length;o++)if(t=e.children[o],t.old){const n=a.fromNT(e.dataValueNT),i=a.fromNT(d[o-1]);f(t,i,n,null)}else i[e.dataValueNT]=!0,n[o]=!0}for(let t=0;t<p.children.length;t++)if(e=p.children[t],t>0&&!i[e.dataValueNT])delete m[e.dataValueNT],p.removeChild(e);else for(let t=e.children.length-1;t>0;t--){const i=e.children[t];n[t]||e.removeChild(i)}const o=[];for(let e=0;e<d.length;e++)n[e+1]&&o.push(d[e]);d=o};p.refresh=function(){!function(){for(let e=1;e<p.children.length;e++){const t=p.children[e];for(let e=1;e<t.children.length;e++)t.children[e].old=!0}}(),o.query(t,x,void 0,b)};const x=function(e){const t=e[n.toString()],i=e[s.toString()],a=e[r.toString()],o=h(i),c=g(t),l=o.children[c+1];f(l,t,i,a)};if(c.set_y)for(let e=0;e<c.set_y.length;e++)h(c.set_y[e]);if(c.set_x)for(let e=0;e<c.set_x.length;e++)g(c.set_x[e]);return o.query(t,x,void 0,l),p}},6127(e,t,n){n.d(t,{$:()=>a});var i=n(7008);const a={cameraCaptureControl:i.V,cameraButton:i.Y}},7008(e,t,n){n.d(t,{V:()=>l,Y:()=>p});var i=n(7423),a=n(3378),o=n(675),s=n(4608);const r=a.Pt.iconBase+"noun_Camera_1618446_000000.svg",c=a.Pt.iconBase+"noun_479395.svg";function l(e,t,n,r){const l=e.createElement("div");let p,u,d,m;const f=l.appendChild(e.createElement("table")),h=f.appendChild(e.createElement("tr")).appendChild(e.createElement("td"));h.setAttribute("colspan","4");const g=f.appendChild(e.createElement("tr"));g.appendChild(e.createElement("td")).appendChild(s.cancelButton(e)).addEventListener("click",e=>{C(),r(null)});const b=g.appendChild(e.createElement("td")).appendChild(s.button(e,c,"Retake"));b.addEventListener("click",e=>{h.removeChild(m),y()}),b.style.visibility="collapse";const x=g.appendChild(e.createElement("td")).appendChild(s.button(e,a.Pt.iconBase+"noun_10636.svg","Snap"));x.addEventListener("click",function(){m=e.createElement("canvas"),m.setAttribute("width",o.i.canvasWidth),m.setAttribute("height",o.i.canvasHeight),m.setAttribute("style",o.i.controlStyle),h.appendChild(m);m.getContext("2d").drawImage(d,0,0,m.width,m.height),d.parentNode.removeChild(d),m.toBlob(e=>{const t=`got blob type ${e.type} size ${e.size}`;i.Rm(t),p=n(),u=e,v.style.visibility="visible",b.style.visibility="visible",x.style.visibility="collapse"},"image/png")}),x.style.visibility="collapse";const v=g.appendChild(e.createElement("td")).appendChild(s.continueButton(e));function y(){if(d=h.appendChild(e.createElement("video")),d.setAttribute("controls","1"),d.setAttribute("autoplay","1"),d.setAttribute("style",o.i.controlStyle),!navigator.mediaDevices)throw new Error("navigator.mediaDevices not available");navigator.mediaDevices.getUserMedia(w).then(e=>{d.srcObject=e,x.style.visibility="visible",v.style.visibility="collapse",b.style.visibility="collapse"})}v.addEventListener("click",e=>{!function(e,n){const a=e.type;i.Rm("Putting "+e.size+" bytes of "+a+" to "+n),t.fetcher.webOperation("PUT",n.uri,{data:e,contentType:a}).then(e=>{i.Rm("ok saved "+n),C(),r(n)},e=>{C(),alert(e)})}(u,p)}),v.style.visibility="collapse";const w={video:!0};function C(){d&&d.srcObject&&d.srcObject.getVideoTracks().forEach(e=>e.stop())}return y(),l}function p(e,t,n,i){const a=e.createElement("div"),o=s.button(e,r,"Take picture");let c;async function p(e){a.removeChild(c),a.appendChild(o),i(e)}return a.appendChild(o),o.addEventListener("click",i=>{a.removeChild(o),c=l(e,t,n,p),a.appendChild(c)}),a}},8516(e,t,n){n.d(t,{v:()=>d});var i=n(3378),a=n(967),o=n(3138),s=n(1795),r=n(4961),c=n(675),l=n(52),p=n(4608);const u={icons:i.Pt,ns:s.A,rdf:r,style:c.i,widgets:p};function d(e,t,n,i,s){t=t||o.solidLogicSingleton.store,i=i.doc();const c=u.ns,p=r.Namespace("http://www.w3.org/2005/01/wf/flow#"),d=r.Namespace("http://purl.org/dc/terms/"),m=!!(s=s||{}).newestFirst,f="white-space: pre-wrap; width: 90%; font-size:100%; border: 0.07em solid #eee; padding: .2em 0.5em; margin: 0.1em 1em 0.1em 1em;",h=e.createElement("div");let g,b;const x=o.solidLogicSingleton.store.updater,v=function(t,n){const i=e.createElement("a");return n&&n.uri&&(i.setAttribute("href",n.uri),i.addEventListener("click",u.widgets.openHrefInOutlineMode,!0),i.setAttribute("style","color: #3B5998; text-decoration: none; ")),i.textContent=t,i},y=function(t,n){const i=e.createElement("pre");return i.setAttribute("style",n||"color: grey"),h.appendChild(i),i.appendChild(e.createTextNode(t)),i},w=function(e){y(e,"color: #800;")};function C(e){const t=o.solidLogicSingleton.store.any(e,u.ns.foaf("nick"));return t?""+t.value:""+l.label(e)}function A(t,n,i,a){const s=t.appendChild(v(C(n),n));n.uri&&o.solidLogicSingleton.store.fetcher.nowOrWhenFetched(n.doc(),void 0,function(e,t){s.textContent=C(n)}),t.appendChild(e.createElement("br")),t.appendChild(v(i,a))}function E(e,n){const i={};let a,o;for(a=n.firstChild;a;a=a.nextSibling)a.AJAR_subject&&(i[a.AJAR_subject.uri]=!0);const s=t.each(e,c.wf("message")),r={};for(s.forEach(function(e){r[e.uri]=!0,i[e.uri]||k(e)}),a=n.firstChild;a;)o=a.nextSibling,a.AJAR_subject&&!r[a.AJAR_subject.uri]&&n.removeChild(a),a=o}const k=function(e){const n={"?msg":e,"?creator":t.any(e,c.foaf("maker")),"?date":t.any(e,d("created")),"?content":t.any(e,c.sioc("content"))};T(n,!0)},T=function(i,a){const o=i["?creator"],s=i["?msg"],r=i["?date"],c=i["?content"],l=r.value,p=e.createElement("tr");p.AJAR_date=l,p.AJAR_subject=s;let d=!1;for(let e=g.firstChild;e;e=e.nextSibling)if(l>e.AJAR_date&&m||l<e.AJAR_date&&!m){g.insertBefore(p,e),d=!0;break}d||g.appendChild(p);const h=e.createElement("td");p.appendChild(h),A(h,o,u.widgets.shortDate(l),s);const b=e.createElement("td");p.appendChild(b);const v=e.createElement("p");v.setAttribute("style",f+(a?"background-color: #e8ffe8;":"background-color: #white;")),b.appendChild(v),v.textContent=c.value;const y=e.createElement("td");p.appendChild(y);const C=e.createElement("button");y.appendChild(C),C.textContent="-",p.setAttribute("class","hoverControl"),C.setAttribute("class","hoverControlHide"),C.setAttribute("style","color: red;"),C.addEventListener("click",function(i){y.removeChild(C);const a=e.createElement("button");a.textContent="cancel",y.appendChild(a).addEventListener("click",function(e){y.removeChild(o),y.removeChild(a),y.appendChild(C)},!1);const o=e.createElement("button");o.textContent="Delete message",y.appendChild(o).addEventListener("click",function(e){y.removeChild(o),y.removeChild(a),function(e){const i=t.statementsMatching(e).concat(t.statementsMatching(void 0,void 0,e));x.update(i,[],function(e,t,i){t?E(n,g):w("Cant delete messages:"+i)})}(s)},!1)},!1)};g=e.createElement("table"),g.fresh=!1,h.appendChild(g),g.setAttribute("style","width: 100%;");const L=function(){const o=e.createElement("tr"),s=e.createElement("td"),l=e.createElement("td"),p=e.createElement("td");o.appendChild(s),o.appendChild(l),o.appendChild(p),o.AJAR_date="9999-01-01T00:00:00Z";const m=function(){h.setAttribute("class","pendingedit"),h.disabled=!0;const a=[],s=new Date,l=""+s.getTime(),p=r.term(s),m=t.sym(i.uri+"#Msg"+l);a.push(new r.Statement(n,c.wf("message"),m,i)),a.push(new r.Statement(m,c.sioc("content"),t.literal(h.value),i)),a.push(new r.Statement(m,d("created"),p,i)),b&&a.push(new r.Statement(m,c.foaf("maker"),b,i));x.update([],a,function(n,i,a){if(i){const e={"?msg":m,"?content":t.literal(h.value),"?date":p,"?creator":b};T(e,!1),h.value="",h.setAttribute("class",""),h.disabled=!1}else o.appendChild(u.widgets.errorMessageBlock(e,"Error writing message: "+a))})};let h,g;o.appendChild(e.createElement("br"));const v={div:l,dom:e};return a.ensureLoggedIn(v).then(t=>{b=t.me,A(s,b,"",null),h=e.createElement("textarea"),l.innerHTML="",l.appendChild(h),h.rows=3,h.setAttribute("style",f+"background-color: #eef;"),h.addEventListener("keyup",function(e){13===e.keyCode&&(e.altKey||m())},!1),p.innerHTML="",g=u.widgets.button(e,u.icons.iconBase+"noun_383448.svg","Send"),g.setAttribute("style",u.style.buttonStyle+"float: right;"),g.addEventListener("click",m,!1),p.appendChild(g)}),o}();let j;if(m?g.insertBefore(L,g.firstChild):g.appendChild(L),s.query)j=s.query;else{j=new r.Query("Messages");const e={};["msg","date","creator","content"].forEach(function(t){j.vars.push(e[t]=r.variable(t))}),j.pat.add(n,p("message"),e.msg),j.pat.add(e.msg,c.dct("created"),e.date),j.pat.add(e.msg,c.foaf("maker"),e.creator),j.pat.add(e.msg,c.sioc("content"),e.content)}return t.query(j,T,void 0,function(){g.fresh=!0}),h.refresh=function(){E(n,g)},h}},6105(e,t,n){n.d(t,{A:()=>i});const i="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjAxNTcgOS4yNzM2M0MxNC4yOTU0IDguMzQwMzEgMTUuMTI4OCA2LjgyOTg0IDE1LjEyODggNS4xMjgyQzE1LjEyODggMi4zMDA1MSAxMi44MjgzIDAgMTAuMDAwNiAwQzcuMTcyODkgMCA0Ljg3MjM4IDIuMzAwNTEgNC44NzIzOCA1LjEyODJDNC44NzIzOCA2LjgyOTg0IDUuNzA1NyA4LjM0MDMxIDYuOTg1NDcgOS4yNzM2M0MzLjgwNDIyIDEwLjQ5MSAxLjUzOTA2IDEzLjU3NTQgMS41MzkwNiAxNy4xNzk1QzEuNTM5MDYgMTguNzM0NyAyLjgwNDM0IDIwIDQuMzU5NTcgMjBIMTUuNjQxNkMxNy4xOTY4IDIwIDE4LjQ2MjEgMTguNzM0NyAxOC40NjIxIDE3LjE3OTVDMTguNDYyMSAxMy41NzU0IDE2LjE5NyAxMC40OTEgMTMuMDE1NyA5LjI3MzYzWk02LjQxMDg2IDUuMTI4MkM2LjQxMDg2IDMuMTQ4ODMgOC4wMjEyMSAxLjUzODQ4IDEwLjAwMDYgMS41Mzg0OEMxMS45OCAxLjUzODQ4IDEzLjU5MDMgMy4xNDg4MyAxMy41OTAzIDUuMTI4MkMxMy41OTAzIDcuMTA3NTggMTEuOTggOC43MTc5NyAxMC4wMDA2IDguNzE3OTdDOC4wMjEyMSA4LjcxNzk3IDYuNDEwODYgNy4xMDc1OCA2LjQxMDg2IDUuMTI4MlpNMTUuNjQxNiAxOC40NjE1SDQuMzU5NTdDMy42NTI2NiAxOC40NjE1IDMuMDc3NTQgMTcuODg2NCAzLjA3NzU0IDE3LjE3OTVDMy4wNzc1NCAxMy4zNjIgNi4xODMxNiAxMC4yNTY0IDEwLjAwMDYgMTAuMjU2NEMxMy44MTgxIDEwLjI1NjQgMTYuOTIzNyAxMy4zNjIgMTYuOTIzNyAxNy4xNzk1QzE2LjkyMzcgMTcuODg2NCAxNi4zNDg2IDE4LjQ2MTUgMTUuNjQxNiAxOC40NjE1WiIgZmlsbD0iIzMxNDE1OCIvPgo8L3N2Zz4K"},1795(e,t,n){n.d(t,{A:()=>s});var i=n(5386),a=n.n(i),o=n(4961);const s=a()(o)},8153(e,t,n){n.r(t),n.d(t,{getChunks:()=>h,lightColorHash:()=>m,manageParticipation:()=>p.manageParticipation,notepad:()=>f,notepadToHTML:()=>b,participationObject:()=>p.participationObject,recordParticipation:()=>p.recordParticipation,renderParticipants:()=>p.renderParticipants,xmlEncode:()=>g});var i=n(1795),a=n(4961),o=n(4608),s=n(52),r=n(7423),c=n(3138),l=n(675),p=n(3605);const u=c.solidLogicSingleton.store,d=(0,a.Namespace)("http://www.w3.org/ns/pim/pad#");function m(e){return e&&e.uri?"#"+(16777215&(t=e.uri,t.split("").reduce(function(e,t){return(e=(e<<5)-e+t.charCodeAt(0))&e},0))|12632256).toString(16):"#ffffff";var t}function f(e,t,n,c,p){const d=(p=p||{}).exists,f=e.createElement("table"),h=u;if(c&&!c.uri)throw new Error("UI.pad.notepad: Invalid userid");const g=u.updater,b=(0,a.Namespace)("http://www.w3.org/ns/pim/pad#");f.setAttribute("style",l.i.notepadStyle);let x=null,v=null;if(p.statusArea){const t=p.statusArea.appendChild(e.createElement("table")).appendChild(e.createElement("tr"));x=t.appendChild(e.createElement("td")),v=t.appendChild(e.createElement("td")),x&&x.setAttribute("style",l.i.upstreamStatus),v&&v.setAttribute("style",l.i.downstreamStatus)}const y=function(t,n=!1){(0,r.Rm)(t),p.statusArea&&(n?x:v).appendChild((0,o.errorMessageBlock)(e,t,"pink"))},w=function(e){p.statusArea&&(p.statusArea.innerHTML="")},C=function(e,t,n){const a=e.subject;t=t||"";const o=l.i.baseStyle,s=l.i.headingCore,r=l.i.headingStyle,c=h.any(a,i.A.dc("author"));if(!t&&c){t="color: "+(n?"#888":"black")+"; background-color: "+m(c)+";"}let p=h.any(a,b("indent"));p=p?p.value:0;const u=p>=0?o+"text-indent: "+3*p+"em;":s+r[-1-p];e.setAttribute("style",u+t)},A=function(e){const i=e.subject;if(!i)throw new Error("No chunk for line to be deleted!");const o=h.any(void 0,b("next"),i),c=h.any(i,b("next"));if(o.sameTerm(n)&&c.sameTerm(n))return void(0,r.Rm)("You can't delete the only line.");const l=h.statementsMatching(i,void 0,void 0,t).concat(h.statementsMatching(void 0,void 0,i,t)),p=[(0,a.st)(o,b("next"),c,t)];if(i instanceof a.NamedNode){const e=i.uri.slice(-4);(0,r.Rm)("Deleting line "+e)}if(!g)throw new Error("have no updater");g.update(l,p,function(t,n,a,o){if(n){const t=e.parentNode;if(t){const e=t.previousSibling;t.parentNode&&t.parentNode.removeChild(t),e&&e.firstChild&&e.firstChild.focus()}}else if(o&&409===o.status)C(e,"color: black; background-color: #ffd;"),e.state=0,(0,s.beep)(.5,512),setTimeout(function(){R()},1e3);else{(0,r.Rm)(" removePart FAILED "+i+": "+a),(0,r.Rm)(" removePart was deleting :'"+l),C(e,"color: black; background-color: #fdd;");const t=o?o.status:" [no response field] ";y("Error "+t+" saving changes: "+String(a))}})},E=function(e,n){let o=null;e.addEventListener("keydown",function(i){if(!g)throw new Error("no updater");let o,s;switch(i.keyCode){case 13:{const t=i.shiftKey;if((0,r.Rm)("enter"),t?(s=h.any(void 0,b("next"),n),o="newlinesAfter"):(s=h.any(n,b("next")),o="newlinesBefore"),s[o]=s[o]||0,s[o]+=1,s[o]>1)return void(0,r.Rm)(" queueing newline queue = "+s[o]);(0,r.Rm)(" go ahead line before "+s[o]),T(e,t);break}case 8:if(0===e.value.length)switch((0,r.Rm)("Delete key line "+n.uri.slice(-4)+" state "+e.state),e.state){case 1:case 2:return void(e.state=4);case 3:case 4:return;case void 0:case 0:e.state=3,A(e),i.preventDefault();break;default:throw new Error("pad: Unexpected state "+e)}break;case 9:{const o=i.shiftKey?-1:1;!function(e,n,i){const o=h.statementsMatching(n,b("indent")),s=o.length?Number(o[0].object.value):0;if(s+i<-3)return;const c=s+i,l=(0,a.st)(n,b("indent"),c,t);if(!g)throw new Error("no updater");g.update(o,l,function(n,i,a){i?C(e):((0,r.Rm)("Indent change FAILED '"+c+"' for "+t+": "+a),C(e,"color: black; background-color: #fdd;"),g.requestDownstreamAction(t,R))})}(e,n,o),i.preventDefault();break}case 27:(0,r.Rm)("escape"),g.requestDownstreamAction(t,R),i.preventDefault();break;case 38:e.parentNode.previousSibling&&(e.parentNode.previousSibling.firstChild.focus(),i.preventDefault());break;case 40:e.parentNode.nextSibling&&(e.parentNode.nextSibling.firstChild.focus(),i.preventDefault())}});const c=function(e){const n=e.subject;C(e,void 0,!0);const o=h.any(n,i.A.sioc("content")).value,l=[(0,a.st)(n,i.A.sioc("content"),o,t)];let p;e.value&&(p=[(0,a.st)(n,i.A.sioc("content"),e.value,t)]);const u=e.value;if(e.lastSent&&o!==e.lastSent&&console.warn("Out of order, last sent expected '"+o+"' but found '"+e.lastSent+"'"),e.lastSent=u,!g)throw new Error("no updater");g.update(l,p,function(n,i,a,l){if(i)w(),C(e),(0,r.Rm)(" Patch ok '"+o+"' -> '"+u+"' "),4===e.state?(e.state=3,A(e)):3===e.state||(2===e.state?(e.state=1,c(e)):e.state=0);else if((0,r.Rm)(" patch FAILED "+l.status+" for '"+o+"' -> '"+u+"': "+a),409===l.status)C(e,"color: black; background-color: #fdd;"),e.state=0,(0,s.beep)(.5,512),setTimeout(function(){g.requestDownstreamAction(t,R)},1e3);else{C(e,"color: black; background-color: #fdd;");const t=l?.status;t&&502!==t&&503!==t?(e.state=0,y(" Error "+t+" sending data: "+a,!0),(0,s.beep)(1,128)):(e.lastSent=void 0,e.state=0,setTimeout(()=>{0!==e.state&&void 0!==e.state||(e.state=1,c(e))},2e3))}})};e.addEventListener("input",function(t){switch(C(e,void 0,!0),(0,r.Rm)("Input event state "+e.state+" value '"+e.value+"'"),e.state){case 3:case 4:case 2:return;case 1:return void(e.state=2);case 0:case void 0:null!==o&&clearTimeout(o),o=setTimeout(()=>{o=null,0!==e.state&&void 0!==e.state||(e.state=1,c(e))},400)}})},k=function(t,n,a){let o=h.any(n,i.A.sioc("content"));o=o?o.value:"";const s=e.createElement("tr");a?f.insertBefore(s,t):t&&t.nextSibling?f.insertBefore(s,t.nextSibling):f.appendChild(s);const l=s.appendChild(e.createElement("input"));return l.subject=n,l.setAttribute("type","text"),l.value=o,c?(C(l,""),E(l,n)):(C(l,"color: #222; background-color: #fff"),(0,r.Rm)("Note can't add listeners - not logged in")),l},T=function(e,s){const l=u;let p,d,m,f,h,x=0,v=null;e?("input"!==e.tagName.toLowerCase()&&(0,r.Rm)("return pressed when current document is: "+e.tagName),p=e.subject,x=l.any(p,b("indent")),x=x?Number(x.value):0,s?(d=l.any(void 0,b("next"),p),m=p,f=d,v="newlinesAfter"):(d=p,m=l.any(p,b("next")),f=m,v="newlinesBefore"),h=e.parentNode):(d=n,m=n,h=void 0);const y=(0,o.newThing)(t),w=y.uri.slice(-4),A=[(0,a.st)(d,b("next"),m,t)],E=[(0,a.st)(d,b("next"),y,t),(0,a.st)(y,b("next"),m,t),(0,a.st)(y,i.A.dc("author"),c,t),(0,a.st)(y,i.A.sioc("content"),"",t)];if(x>0&&E.push((0,a.st)(y,b("indent"),x,t)),(0,r.Rm)(" Fresh chunk "+w+" proposed"),!g)throw new Error("no updater");g.update(A,E,function(e,t,n,i){if(t){const e=k(h,y,s);C(e),e.focus(),v&&((0,r.Rm)(" Fresh chunk "+w+" updated, queue = "+f[v]),f[v]-=1,f[v]>0&&((0,r.Rm)(" Implementing queued newlines = "+m.newLinesBefore),T(e,s)))}else(0,r.Rm)(" ERROR writing new line "+w+": "+n)})},L=function(){const e={};let t=0;function a(e){y(e),t++}if(!h.the(n,b("next")))return a("No initial next pointer"),!1;let o,s=n;for(;o=h.the(s,b("next")),o||a("No next pointer from "+s),!o.sameTerm(n);){s=o;const t=o.uri.split("#")[1];if(e[o.uri])return a("Loop!"),!1;e[o.uri]=!0;let n=h.each(o,b("next")).length;1!==n&&a("Should be 1 not "+n+" next pointer for "+t),n=h.each(o,b("indent")).length,n>1&&a("Should be 0 or 1 not "+n+" indent for "+t),n=h.each(o,i.A.sioc("content")).length,1!==n&&a("Should be 1 not "+n+" contents for "+t),n=h.each(o,i.A.dc("author")).length,1!==n&&a("Should be 1 not "+n+" author for "+t);h.statementsMatching(void 0,i.A.sioc("contents")).forEach(function(t){e[t.subject.value]||a("Loose chunk! "+t.subject.value)})}return!t},j=function(){if(1!==h.each(n,b("next")).length){const e="Pad: Inconsistent data - NEXT pointers: "+h.each(n,b("next")).length;return(0,r.Rm)(e),void(p.statusArea&&(p.statusArea.textContent+=e))}let e;const t=[];for(let e=h.the(n,b("next"));!e.sameTerm(n);e=h.the(e,b("next")))for(let n=0;n<f.children.length;n++){const i=f.children[n];i.firstChild&&i.firstChild.subject.sameTerm(e)&&(t[e.uri]=i.firstChild)}for(let n=f.children.length-1;n>=0;n--)e=f.children[n],t[e.firstChild.subject.uri]||f.removeChild(e);e=f.firstChild;for(let a=h.the(n,b("next"));!a.sameTerm(n);a=h.the(a,b("next"))){const n=h.any(a,i.A.sioc("content")).value;if(e&&t[a.uri]){const t=e.firstChild;n!==t.value&&(t.value=n),C(t),t.state=0,delete t.lastSent,e=e.nextSibling}else k(e,a,!0)}},_=function(e){if(e.refresh)e.refresh();else for(let t=0;t<e.children.length;t++)_(e.children[t])};let S=!1;const R=function(){if(S)return void(0,r.Rm)(" Already reloading - stop");S=!0;let e=1e3;const n=function(){if((0,r.Rm)("try reload - timeout = "+e),!g)throw new Error("no updater");g.reload(g.store,t,function(i,a,o){S=!1,i?((0,r.Rm)(" reloaded OK"),w(),L()?_(f):y("CONSISTENCY CHECK FAILED")):0===o.status?(y("Network error refreshing the pad. Retrying in "+e/1e3),S=!0,e*=2,setTimeout(n,e)):y("Error "+o.status+"refreshing the pad:"+a+". Stopped. "+t)})};n()};if(f.refresh=j,f.reloadAndSync=R,c||(0,r.Rm)("Warning: must be logged in for pad to be edited"),d)(0,r.Rm)("Existing pad."),L()?(j(),h.holds(n,b("next"),n)&&T()):(0,r.Rm)(f.textContent="Inconsistent data. Abort");else{(0,r.Rm)("No pad exists - making new one.");const e=[(0,a.st)(n,i.A.rdf("type"),b("Notepad"),t),(0,a.st)(n,i.A.dc("author"),c,t),(0,a.st)(n,i.A.dc("created"),new Date,t),(0,a.st)(n,b("next"),n,t)];if(!g)throw new Error("no updater");g.update([],e,function(e,t,n){t?((0,r.Rm)("Initial pad created"),T()):y(n||"")})}return f}function h(e,t){const n=[];for(let i=t.the(e,d("next"));!i.sameTerm(e);i=t.the(i,d("next")))n.push(i);return n}function g(e){return e.replace("&","&").replace("<","<").replace(">",">")}function b(e,t){const n=h(e,t);let a="<html>\n <head>\n";const o=t.anyValue(e,i.A.dct("title"));o&&(a+=` <title>${g(o)}</title>\n`),a+=" </head>\n <body>\n";let s=0;function r(e){for(;s>e;s--)a+="</ul>\n"}return n.forEach(e=>{const n=t.anyJS(e,d("indent")),o=t.anyJS(e,i.A.sioc("content"));if(!o)return;const c=g(o);if(n<0){r(0);const e=n>=-3?4+n:1;a+=`\n<h${e}>${c}</h${e}>\n`}else n>0?(r(n),function(e){for(;s<e;s++)a+="<ul>\n"}(n),a+=`<li>${c}</li>\n`):(r(n),a+=`<p>${c}</p>\n`)}),r(0),a+=" </body>\n</html>\n",a}},3605(e,t,n){n.r(t),n.d(t,{manageParticipation:()=>g,participationObject:()=>f,recordParticipation:()=>h,renderParticipants:()=>m});var i=n(7423),a=n(4961),o=n(1795),s=n(4608),r=n(52),c=n(8153),l=n(675),p=n(4762),u=n(3138);const d=u.solidLogicSingleton.store;function m(e,t,n,a,c,u){t.setAttribute("style",l.i.participantsStyle);const m=function(n){const i=d.any(n,o.A.wf("participant"));let a;if(!i)return a=e.createElement("tr"),a.textContent="???",a;const r=d.anyValue(n,o.A.ui("backgroundColor"))||p.A.participationDefaultBackground,c=e.createElement("div");c.setAttribute("style",l.i.participantsBlock),c.style.backgroundColor=r,a=(0,s.personTR)(e,null,i,u),t.appendChild(a);const m=e.createElement("td");return m.setAttribute("style",l.i.personTableTD),m.appendChild(c),a.insertBefore(m,a.firstChild),a},f=function(){const e=d.each(a,o.A.wf("participation")).map(function(e){return(0,i.Rm)("in participants"),[d.anyValue(e,o.A.cal("dtstart"))||"9999-12-31",e]});e.sort();const n=e.map(function(e){return e[1]});(0,r.syncTableToArray)(t,n,m)};return t.refresh=f,f(),t}function f(e,t,n){return new Promise(function(r,l){if(!n)throw new Error("No user id");const p=d.each(e,o.A.wf("participation")).filter(function(e){return d.holds(e,o.A.wf("participant"),n)});if(p.length>1){const e=[];for(const t of p){const n=d.anyValue(t,o.A.cal("dtstart"));n&&e.push([n,t])}e.sort(),i.R8("Multiple participation objects, picking earliest, in "+t),r(e[0][1])}if(p.length)r(p[0]);else{const i=(0,s.newThing)(t),p=[(0,a.st)(e,o.A.wf("participation"),i,t),(0,a.st)(i,o.A.wf("participant"),n,t),(0,a.st)(i,o.A.cal("dtstart"),new Date,t),(0,a.st)(i,o.A.ui("backgroundColor"),(0,c.lightColorHash)(n),t)];d.updater.update([],p,function(e,t,n){t?r(i):l(new Error("Error recording your participation: "+n))}),r(i)}})}function h(e,t,n){const r=u.authn.currentUser();if(!r)return;const l=d.each(e,o.A.wf("participation")).filter(function(e){return d.holds(e,o.A.wf("participant"),r)});if(l.length>1)throw new Error("Multiple records of your participation");if(l.length)return l[0];{if(!d.updater.editable(t))return i.Rm("Not recording participation, as no write access as "+r+" to "+t),null;const l=(0,s.newThing)(t),p=[(0,a.st)(e,o.A.wf("participation"),l,t),(0,a.st)(l,o.A.wf("participant"),r,t),(0,a.st)(l,o.A.cal("dtstart"),new Date,t),(0,a.st)(l,o.A.ui("backgroundColor"),(0,c.lightColorHash)(r),t)];return d.updater.update([],p,function(e,t,i){if(!t)throw new Error("Error recording your participation: "+i);n&&n.refresh&&n.refresh()}),l}}function g(e,t,n,i,a,o){const r=e.createElement("table");t.appendChild(r),m(e,r,0,i,0,o);try{h(i,n,r)}catch(n){t.appendChild((0,s.errorMessageBlock)(e,"Error recording your participation: "+n))}return r}},5148(e,t,n){n.r(t),n.d(t,{get:()=>d,getPreferencesForClass:()=>x,recordPersonalDefaults:()=>h,recordSharedPreferences:()=>f,renderPreferencesForm:()=>g,set:()=>m,value:()=>u});var i=n(4961),a=n(3138),o=n(7423),s=n(967),r=n(1795),c=n(3605),l=n(4608);const p=a.store,u=[];function d(e){return u[e]}function m(e,t){if("string"!=typeof t)throw o.Rm("Non-string value of preference "+e+": "+t),new Error("Non-string value of preference "+e+": "+t);this.value[e]=t}function f(e,t){return new Promise(function(n,a){const s=p.any(e,r.A.ui("sharedPreferences"));if(s)t.sharedPreferences=s,n(t);else{p.updater.editable(e.doc())||(o.Rm(` Cant make shared preferences, may not change ${e.doc}`),n(t));const s=i.sym(e.doc().uri+"#SharedPreferences"),c=[i.st(e,r.A.ui("sharedPreferences"),s,e.doc())];o.Rm("Creating shared preferences "+s),p.updater.update([],c,function(e,i,o){i?(t.sharedPreferences=s,n(t)):a(new Error("Error creating shared prefs: "+o))})}})}function h(e,t){return new Promise(function(n,a){(0,s.ensureLoadedPreferences)(t).then(t=>{if(!t.preferencesFile)return void o.Rm("Not doing private class preferences as no access to preferences file. "+t.preferencesFileError);const s=p.each(null,r.A.solid("forClass"),e,t.preferencesFile);let c,u,d=[];if(s.length){if(s.forEach(e=>{c=c||p.any(e,r.A.solid("personalDefaults"))}),c)return t.personalDefaults=c,void n(t);c=l.newThing(t.preferencesFile),u=s[0]}else u=l.newThing(t.preferencesFile),d=[i.st(u,r.A.rdf("type"),r.A.solid("TypeRegistration"),t.preferencesFile),i.st(u,r.A.solid("forClass"),e,t.preferencesFile)];c=l.newThing(t.preferencesFile),d.push(i.st(u,r.A.solid("personalDefaults"),c,t.preferencesFile)),p.updater.update([],d,function(i,o,s){o?(t.personalDefaults=c,n(t)):a(new Error("Setting preferences for "+e+": "+s))})},e=>{a(e)})})}function g(e,t,n,i){const a=i.dom.createElement("div");return c.participationObject(e,e.doc(),i.me).then(o=>{const s=i.dom;function r(e){a.appendChild(s.createElement("h5")).textContent=e}r("My view of this "+i.noun),l.appendForm(s,a,{},o,n,e.doc(),(e,t)=>{e||l.complain(i,t)}),r("Everyone's view of this "+i.noun),f(e,i).then(i=>{const o=i.sharedPreferences;l.appendForm(s,a,{},o,n,e.doc(),(e,t)=>{e||l.complain(i,t)}),r("My default view of any "+i.noun),h(t,i).then(e=>{l.appendForm(s,a,{},e.personalDefaults,n,e.preferencesFile,(t,n)=>{t||l.complain(e,n)})},e=>{l.complain(i,e)})})},e=>{a.appendChild(l.errorMessageBlock(i.dom,e))}),a}function b(e){return e.datatype?e.datatype.equals(r.A.xsd("boolean"))?"1"===e.value:e.datatype.equals(r.A.xsd("dateTime"))||e.datatype.equals(r.A.xsd("date"))?new Date(e.value):e.datatype.equals(r.A.xsd("integer"))||e.datatype.equals(r.A.xsd("float"))||e.datatype.equals(r.A.xsd("decimal"))?Number(e.value):e.value:e}function x(e,t,n,i){return new Promise(function(a,o){f(e,i).then(i=>{const s=i.sharedPreferences;if(i.me)c.participationObject(e,e.doc(),i.me).then(e=>{h(t,i).then(t=>{const i=[],o=t.personalDefaults;n.forEach(t=>{const n=p.any(e,t)||p.any(s,t)||p.any(o,t);n&&(i[t.uri]=b(n))}),a(i)},o)},o);else{const e=[];n.forEach(t=>{const n=p.any(s,t);n&&(e[t.uri]=b(n))}),a(e)}})})}},9417(e,t,n){n.d(t,{A:()=>i});const i={authEndpoint:"",fallbackAuthEndpoint:"https://databox.me/",signupEndpoint:"https://solidproject.org/get_a_pod",signupWindowHeight:600,signupWindowWidth:1024,key:"",cert:""}},6247(e,t,n){n.d(t,{l:()=>a});var i=n(9417);function a(e){this.config=e||i.A}a.prototype.listen=function(){return new Promise(function(e,t){const n=window.addEventListener?"addEventListener":"attachEvent";(0,window[n])("attachEvent"===n?"onmessage":"message",function(n){const i=n.data;if("User:"===i.slice(0,5)){const n=i.slice(5,i.length);return n&&n.length>0&&"http"===n.slice(0,4)?e(n):t(n)}},!0)})},a.prototype.signup=function(e){e=e||this.config.signupEndpoint;const t=this.config.signupWindowWidth,n=this.config.signupWindowHeight,i=window.screen.width/2-(t/2+10),a=window.screen.height/2-(n/2+50),o=e+"?origin="+encodeURIComponent(window.location.origin),s="resizable,scrollbars,status,width="+t+",height="+n+",left="+i+",top="+a;window.open(o,"Solid signup",s);const r=this;return new Promise(function(e){r.listen().then(function(t){return e(t)})})}},675(e,t,n){n.d(t,{i:()=>a});var i=n(4762);const a={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 ${i.A.formBorderColor}; border-radius: 0.2em;`,`padding-left: 2em; border: 0.05em solid ${i.A.formBorderColor}; border-radius: 0.2em;`,`padding-left: 2em; border: 0.1em solid ${i.A.formBorderColor}; border-radius: 0.2em;`,`padding-left: 2em; border: 0.2em solid ${i.A.formBorderColor}; border-radius: 0.2em;`],formFieldLabelStyle:`color: ${i.A.lowProfileLinkColor}; text-decoration: none;`,formFieldNameBoxStyle:`padding: 0.3em; vertical-align: middle; width:${i.A.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, 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;",primaryButtonNoBorderHover:"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; transition: 0.25s all ease-in-out;",secondaryButton:"background-color: #01c9ea; color: #ffffff; font-family: Raleway, Roboto, sans-serif;border-radius: 0.25em; border-color: #01c9ea; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none;",secondaryButtonHover:"background-color: #37cde6; 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;",secondaryButtonNoBorder:"background-color: #ffffff; color: #01c9ea; font-family: Raleway, Roboto, sans-serif; border-radius: 0.25em; border-color: #01c9ea; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none;",secondaryButtonNoBorderHover:"background-color: #01c9ea; color: #ffffff; font-family: Raleway, Roboto, sans-serif; border-radius: 0.25em; border-color: #01c9ea; 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;",controlStyle:`border-radius: 0.5em; margin: 0.8em; width:${i.A.mediaModuleCanvasWidth}; height:${i.A.mediaModuleCanvasHeight};`,dragEvent:"background-color: #ccc; border: 0.25em dashed black; border-radius: 0.3em;",dropEvent:"background-color: white; border: 0em solid black;",restoreStyle:"background-color: white;",errorCancelButton:"width: 2em; height: 2em; align: right;",errorMessageBlockStyle:"margin: 0.1em; padding: 0.5em; border: 0.05em solid gray; color:black;",notepadStyle:"padding: 1em; overflow: auto; resize: horizontal; min-width: 40em;",upstreamStatus:"width: 50%;",downstreamStatus:"width: 50%;",baseStyle:"font-size: 100%; font-family: monospace; width: 100%; border: none; white-space: pre-wrap;",headingCore:"font-family: sans-serif; font-weight: bold; border: none;",headingStyle:["font-size: 110%; padding-top: 0.5em; padding-bottom: 0.5em; width: 100%;","font-size: 120%; padding-top: 1em; padding-bottom: 1em; width: 100%;","font-size: 150%; padding-top: 1em; padding-bottom: 1em; width: 100%;"],participantsStyle:"margin: 0.8em;",participantsBlock:"height: 1.5em; width: 1.5em; margin: 0.3em; border 0.01em solid #888;",personTableTD:"vertical-align: middle;",tabsNavElement:"margin: 0;",tabsRootElement:"display: flex; height: 100%; width: 100%;",tabsMainElement:"margin: 0; width:100%; height: 100%;",tabContainer:"list-style-type: none; display: flex; height: 100%; width: 100%; margin: 0; padding: 0;",makeNewSlot:"background: none; border: none; font: inherit; cursor: pointer;",ellipsis:"position: absolute; right: 0; bottom: 0; width: 20%; background: none; color: inherit; border: none; padding: 0; font: inherit; cursor: pointer; outline: inherit;",setStyle:function(e,t){e.style=a[t]}}},4762(e,t,n){n.d(t,{A:()=>i});const i={highlightColor:"#7C4DFF",formBorderColor:"#888888",formHeadingColor:"#888888",lowProfileLinkColor:"#3B5998",formFieldNameBoxWidth:"8em",mediaModuleCanvasWidth:"640",mediaModuleCanvasHeight:"480",textInputSize:20,tabBorderRadius:"0.2em",textInputBackgroundColor:"#eef",textInputBackgroundColorUneditable:"#fff",textInputColor:"#000",textInputColorPending:"#888",defaultErrorBackgroundColor:"#fee",participationDefaultBackground:"white",basicMaxLength:"4096"}},5561(e,t,n){n.d(t,{i:()=>i});
|
|
2
2
|
/**
|
|
3
3
|
* @version IconicMultiSelect v0.7.0
|
|
4
4
|
* @licence MIT
|
|
5
5
|
*/
|
|
6
|
-
var a={multiselect__container:"\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n background-color: #fff;\n border-radius: 2px;\n -webkit-box-shadow: 0 1px 3px 0 #d1d1d2, 0 0 0 1px #d1d1d2;\n box-shadow: 0 1px 3px 0 #d1d1d2, 0 0 0 1px #d1d1d2;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n min-height: 36px;\n padding: 4px 8px 0 8px;\n position: relative;\n width: 354px;\n margin-bottom: 5px;\n font-size: 100%\n ",multiselect__wrapper:"\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n height: 100%;\n width: 100%;\n ",multiselect__clear_btn:"\n cursor: pointer;\n align-items: center;\n margin-bottom: 4px;\n margin-left: 4px;\n ",multiselect__options:"\n background-color: #f6f6f6;\n border-radius: 2px;\n left: 0;\n max-height: 0;\n overflow: hidden;\n position: absolute;\n top: calc(100% + 3px);\n z-index: 9999;\n width: 100%;\n opacity: 0;\n transition: max-height 0.1s ease;\n ",multiselect__options_visible:"\n background-color: #f6f6f6;\n border-radius: 2px;\n left: 0;\n max-height: 0;\n overflow: hidden;\n position: absolute;\n top: calc(100% + 3px);\n z-index: 9999;\n width: 100%;\n opacity: 0;\n transition: max-height 0.1s ease;\n max-height: 200px;\n -webkit-box-shadow: 0 1px 3px 0 #d1d1d2, 0 0 0 1px #d1d1d2;\n box-shadow: 0 1px 3px 0 #d1d1d2, 0 0 0 1px #d1d1d2;\n opacity: 1;\n transition: max-height 0.2s ease;\n ",multiselect__options_ul:"\n list-style: none;\n margin: 0;\n padding: 2px 0;\n max-height: 200px;\n overflow: auto;\n ",multiselect__options_ul_li:"\n cursor: pointer;\n padding: 4px 8px;\n ",multiselect__options_ul_li_hover:"\n background-color: #dedede;\n ",multiselect__options_ul_p_multiselect__options_no_results:"\n margin: 0;\n padding: 8px;\n text-align: center;\n ",multiselect__options_ul_p_multiselect__options_no_data:"\n margin: 0;\n padding: 8px;\n text-align: center;\n ",multiselect__options_ul_li_multiselect__options_selected:"\n background-color: #656565;\n color: #fff;\n ",multiselect__options_ul_li_multiselect__options_selected_hover:"\n background-color: #656565;\n ",multiselect__options_ul_li_arrow_selected:"\n border: 2px solid rgba(101, 101, 101, 0.5);\n ",multiselect__selected:"\n background-color: #656565;\n border-radius: 2px;\n color: #fff;\n margin-bottom: 4px;\n margin-right: 4px;\n padding: 4px 8px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n ",multiselect__selected_multiselect__remove_btn:"\n cursor: pointer;\n display: flex;\n margin-left: 6px;\n ",multiselect__input:"\n border: none;\n -ms-flex-preferred-size: 40%;\n flex-basis: 40%;\n -webkit-box-flex: 1;\n -ms-flex-positive: 1;\n flex-grow: 1;\n height: 5px; \n margin-bottom: 4px;\n min-width: 40%;\n outline: none; \n ",setStyle:function(e,t){e.style=a[t]}}},2174(e,t,n){n.d(t,{I:()=>m});var a=n(7423),i=n(3378),r=n(3138),o=n(4158),s=n(1795),c=n(4961),l=n(52),u=n(9612),p=n(4608),d={icons:i.Pt,log:o,ns:s.A,utils:l,widgets:p};function m(e,t){var n,i,o,s,p=t.sourceDocument,m=t.tableClass,f=t.query,h=d.ns,v=r.store,x={},b={"http://www.w3.org/2002/07/owl#sameAs":!0,"http://www.w3.org/1999/02/22-rdf-syntax-ns#type":!0},g={"http://www.w3.org/2001/XMLSchema#decimal":!0,"http://www.w3.org/2001/XMLSchema#float":!0,"http://www.w3.org/2001/XMLSchema#double":!0,"http://www.w3.org/2001/XMLSchema#integer":!0,"http://www.w3.org/2001/XMLSchema#nonNegativeInteger":!0,"http://www.w3.org/2001/XMLSchema#positiveInteger":!0,"http://www.w3.org/2001/XMLSchema#nonPositiveInteger":!0,"http://www.w3.org/2001/XMLSchema#negativeInteger":!0,"http://www.w3.org/2001/XMLSchema#long":!0,"http://www.w3.org/2001/XMLSchema#int":!0,"http://www.w3.org/2001/XMLSchema#short":!0,"http://www.w3.org/2001/XMLSchema#byte":!0,"http://www.w3.org/2001/XMLSchema#unsignedLong":!0,"http://www.w3.org/2001/XMLSchema#unsignedInt":!0,"http://www.w3.org/2001/XMLSchema#unsignedShort":!0,"http://www.w3.org/2001/XMLSchema#unsignedByte":!0},y={"http://www.w3.org/2001/XMLSchema#dateTime":!0,"http://www.w3.org/2001/XMLSchema#date":!0},w={"http://xmlns.com/foaf/0.1/Image":!0,"http://purl.org/dc/terms/Image":!0},A=t.keyVariable||"?_row",k=0,C=null,E=null,_=e.createElement("div");_.className="tableViewPane",_.appendChild(function(){var t=e.createElement("table");t.setAttribute("class","toolbar");var n=e.createElement("tr");return o=e.createElement("td"),n.appendChild(o),s=e.createElement("td"),n.appendChild(s),t.appendChild(n),t}());var T,j=e.createElement("div");if(_.appendChild(j),_.refresh=function(){te(T.query,T.logicalRows,T.columns,T)},f)T=ie(f),j.appendChild(T);else{var S=function(){var e,t,n=function(){for(var e={},t=v.statementsMatching(void 0,d.ns.rdf("type"),m,p),n={},a=0;a<t.length;++a){var i=t[a].object;if("NamedNode"===i.termType){var r=D(e,i);i.uri in n||(n[i.uri]=[]),n[i.uri].push(t[a].subject),r.addUse()}}return[n,e]}();for(var a in e=n[0],t=n[1],e){var i=e[a];M(t[a],i)}var r=new B(null);return[r,O(t)]}();n=S[0],i=S[1],m||o.appendChild(function(t,n){var a=e.createElement("div");a.appendChild(e.createTextNode("Select type: "));var i=e.createElement("select");for(var r in i.appendChild(F("All types","null")),n)i.appendChild(F(n[r].getLabel(),r));return i.addEventListener("click",function(){var e;e="null"===i.value?t:n[i.value],R(e)},!1),a.appendChild(i),a}(n,i)),E=function(e){var t,n=-1,a=null;for(t in e){var i=e[t];i.useCount>n&&(a=i,n=i.useCount)}return a}(i),R(E||n)}return _;function L(e){var t=new c.Query,n=v.variable(A.slice(1));return function(e,t){for(var n=t.getColumns(),a=0;a<n.length;++a){var i=v.variable("_col"+a);e.vars.push(i),n[a].setVariable(i)}}(t,e),function(e,t,n){var a=n.type;a||(a=v.variable("_any")),e.pat.add(t,d.ns.rdf("type"),a)}(t,n,e),function(e,t,n){for(var a=n.getColumns(),i=0;i<a.length;++i){var r=a[i],o=v.formula();o.add(t,r.predicate,r.getVariable()),e.pat.optional.push(o)}}(t,n,e),t}function R(t){N(s),s.appendChild(function(t){var n=e.createElement("div"),a=t.getUnusedColumns();if(a.sort(function(e,t){var n=e.sortKey(),a=t.sortKey();return(n>a)-(n<a)}),a.length>0){n.appendChild(e.createTextNode("Add column: "));var i=e.createElement("select");i.appendChild(F("","-1"));for(var r=0;r<a.length;++r){var o=a[r];i.appendChild(F(o.getLabel(),""+r))}n.appendChild(i),i.addEventListener("click",function(){var e=Number(i.value);e>=0&&(t.addColumn(a[e]),R(t))},!1)}return n}(t)),function(e,t){C&&(C.running=!1);var n=ie(e,t);N(j),j.appendChild(n),C=e}(L(t),t)}function N(e){for(;e.childNodes.length>0;)e.removeChild(e.childNodes[0])}function B(e){this.type=e,this.columns=null,this.allColumns=[],this.useCount=0,this.getAllColumns=function(){return this.allColumns},this.getColumns=function(){if(!this.columns){var e=this.getAllColumns();this.columns=e.slice(0,7)}return this.columns},this.getUnusedColumns=function(){for(var e=this.getAllColumns(),t=this.getColumns(),n=[],a=0;a<e.length;++a)-1===t.indexOf(e[a])&&n.push(e[a]);return n},this.addColumn=function(e){this.columns.push(e)},this.removeColumn=function(e){this.columns=this.columns.filter(function(t){return t!==e})},this.getLabel=function(){return u.P(this.type)},this.addUse=function(){this.useCount+=1}}function I(){this.useCount=0,this.checkedAnyValues=!1,this.possiblyLiteral=!0,this.possiblyNumber=!0,this.constraints=[],this.checkValue=function(e){var t=e.termType;if(this.possiblyLiteral&&"Literal"!==t&&"NamedNode"!==t)this.possiblyNumber=!1,this.possiblyLiteral=!1;else if(this.possiblyNumber){if("Literal"!==t)this.possiblyNumber=!1;else e.value.match(/^-?\d+(\.\d*)?$/)||(this.possiblyNumber=!1)}this.checkedAnyValues=!0},this.getVariable=function(){return this.variable},this.setVariable=function(e){this.variable=e},this.getKey=function(){return this.variable.toString()},this.addUse=function(){this.useCount+=1},this.getHints=function(){return t&&t.hints&&this.variable&&t.hints[this.variable.toNT()]?t.hints[this.variable.toNT()]:{}},this.getLabel=function(){return this.getHints().label?this.getHints().label:this.predicate?this.predicate.sameTerm(h.rdf("type"))&&this.superClass?u.P(this.superClass,!0):u.P(this.predicate):this.variable?this.variable.toString():"unlabeled column?"},this.setPredicate=function(e,t,n){t?(this.inverse=e,this.constraints=this.constraints.concat(v.each(e,d.ns.rdfs("domain"))),e.sameTerm(h.rdfs("subClassOf"))&&"NamedNode"===n.termType&&(this.superClass=n,this.alternatives=v.each(void 0,h.rdfs("subClassOf"),n))):(this.predicate=e,this.constraints=this.constraints.concat(v.each(e,d.ns.rdfs("range"))))},this.getConstraints=function(){return this.constraints},this.filterFunction=function(){return!0},this.sortKey=function(){return this.getLabel().toLowerCase()},this.isImageColumn=function(){for(var e=0;e<this.constraints.length;e++)if(this.constraints[e].uri in w)return!0;return!1}}function O(e,t){var n=[];for(var a in e){var i=e[a];t&&!t(a,i)||n.push(i)}return n}function F(t,n){var a=e.createElement("option");return a.setAttribute("value",n),a.appendChild(e.createTextNode(t)),a}function P(e,t){var n;return t.uri in e?n=e[t.uri]:((n=new I).setPredicate(t),e[t.uri]=n),n}function D(e,t){var n;return t.uri in e?n=e[t.uri]:(n=new B(t),e[t.uri]=n),n}function U(e,t){for(var n=v.statementsMatching(e,void 0,void 0,p),a={},i=0;i<n.length;++i){var r=n[i].predicate;if(!(r.uri in b)){var o=P(t,r);o.checkValue(n[i].object),a[r.uri]=o}}return a}function M(e,t){for(var n={},a=0;a<t.length;++a){var i=U(t[a],n);for(var r in i){i[r].addUse()}}var o=O(n);!function(e){function t(e,t){return(e.useCount<t.useCount)-(e.useCount>t.useCount)}e.sort(t)}(o),e.allColumns=o}function z(t,n){var a=e.createElement("a");return a.appendChild(e.createTextNode("[x]")),a.addEventListener("click",function(){t.removeColumn(n),R(t)},!1),a}function q(e,t){for(var n=!0,a=0;a<t.length;++a){var i=t[a],r=i.getKey(),o=null;if(r in e.values&&(o=e.values[r][0]),!i.filterFunction(o)){n=!1;break}}var s=e._htmlRow;s.style.display=n?"":"none"}function H(e,t){for(var n=0;n<e.length;++n){q(e[n],t)}}function V(e,t,n){function a(e){return e?"Literal"===e.termType?e.value.toLowerCase():"NamedNode"===e.termType?u.P(e).toLowerCase():e.value.toLowerCase():""}!function(e,t,n,a){var i=t.getKey();if(e.sort(function(e,t){var r=null,o=null;i in e.values&&(r=e.values[i][0]),i in t.values&&(o=t.values[i][0]);var s=n(r,o);return a?-s:s}),e.length){for(var r=e[0]._htmlRow.parentNode,o=0;o<e.length;++o)r.removeChild(e[o]._htmlRow);for(var s=0;s<e.length;++s)r.appendChild(e[s]._htmlRow)}}(e,t,function(e,t){var n=a(e),i=a(t);return n<i?-1:n>i?1:0},n)}function G(t,n,a){var i=e.createElement("div"),r=e.createElement("input");r.setAttribute("type","text"),r.style.width="70%",i.appendChild(r);var o=e.createElement("span");o.appendChild(e.createTextNode("▼")),o.addEventListener("click",function(){V(t,a,!1)},!1),i.appendChild(o);var s=e.createElement("span");s.appendChild(e.createTextNode("▲")),s.addEventListener("click",function(){V(t,a,!0)},!1),i.appendChild(s);var c=null;return a.filterFunction=function(e){return!c||!!e&&("Literal"===e.termType?e.value:"NamedNode"===e.termType?u.P(e):"").toLowerCase().indexOf(c)>=0},r.addEventListener("keyup",function(){c=""!==r.value?r.value.toLowerCase():null,H(t,n)},!1),i}function Z(t,n,a,i){for(var r=e.createElement("div"),o=e.createElement("select"),s={},c=0;c<i.length;++c){var l=i[c];s[l.uri]=!0}var p=Q(a).initialSelection;p&&(s=p),o.setAttribute("multiple","true");for(var d=0;d<i.length;++d){var m=i[d],f=F(u.P(m),d);s[m.uri]&&(f.selected=!0),o.appendChild(f)}return r.appendChild(o),a.filterFunction=function(e){return!s||e&&s[e.uri]},o.addEventListener("click",function(){s={};for(var e=o.options,a=0;a<e.length;a++){var r=e[a],c=Number(r.value);e[a].selected&&(s[i[c].uri]=!0)}H(t,n)},!0),r}function W(t,n,a){var i=e.createElement("div"),r=e.createElement("input");r.setAttribute("type","text"),r.style.width="40px",i.appendChild(r);var o=e.createElement("input");o.setAttribute("type","text"),o.style.width="40px",i.appendChild(o);var s=null,c=null;function l(){s=""===r.value?null:Number(r.value),c=""===o.value?null:Number(o.value),H(t,n)}return a.filterFunction=function(e){return e&&(e=Number(e)),!(s&&(!e||e<s))&&!(c&&(!e||e>c))},r.addEventListener("keyup",l,!1),o.addEventListener("keyup",l,!1),i}function J(e,t,n){if(n.superClass&&n.alternatives.length>0)return Z(e,t,n,n.alternatives);for(var a,i=n.getConstraints(),r=0;r<i.length;r++){if(a=i[r],n.checkedAnyValues&&n.possiblyNumber||a.uri in g)return W(e,t,n);if("http://www.w3.org/2000/01/rdf-schema#Literal"===a.uri)return G(e,t,n);var o=v.each(a,d.ns.owl("oneOf"));if(o.length>0)return Z(e,t,n,o.elements)}return function(e,t,n){return n.checkedAnyValues&&n.possiblyNumber?W(e,t,n):n.possiblyLiteral?G(e,t,n):null}(e,t,n)}function $(t,n,i){i=i||{};var r=e.createElement("a"),o=i.linkFunction;return r.setAttribute("href",t),r.appendChild(e.createTextNode(n)),o?r.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation();var t=l.getTarget(e).getAttribute("href");t||a.Rm("No href found \n"),o(t)},!0):r.addEventListener("click",d.widgets.openHrefInOutlineMode,!0),r}function Q(e){return t&&t.hints&&e.variable&&t.hints[e.variable.toNT()]?t.hints[e.variable.toNT()]:{}}function K(t,n){var a=Q(n),i=a.cellFormat;if(!i){if("Literal"===t.termType){if(t.datatype){if(y[t.datatype.uri])return e.createTextNode(d.widgets.shortDate(t.value));if(g[t.datatype.uri]){var r=e.createElement("span");return r.textContent=t.value,r.setAttribute("style","text-align: right"),r}}return e.createTextNode(t.value)}if("NamedNode"===t.termType&&n.isImageColumn())return function(t){var n=e.createElement("img");return n.setAttribute("src",t.uri),n.style.height="40px",n}(t);if("NamedNode"===t.termType||"BlankNode"===t.termType)return function(e,t){var n=!1;return e.uri&&(n=e.uri.match(/^mailto:(.*)/)),$(e.uri,n?n[1]:u.P(e),t)}(t,a);if("Collection"===t.termType){var o=e.createElement("span");return o.appendChild(e.createTextNode("[")),t.elements.forEach(function(t){o.appendChild(K(t,n)),o.appendChild(e.createTextNode(", "))}),o.removeChild(o.lastChild),o.appendChild(e.createTextNode("]")),o}return e.createTextNode("unknown termtype '"+t.termType+"'!")}if("shortDate"===i)return e.createTextNode(d.widgets.shortDate(t.value))}function Y(e,t){var n,a=null;if("Literal"===e.termType)a="value";else{if("NamedNode"!==e.termType)return t.indexOf(e)>=0;a="uri"}for(n=0;n<t.length;++n)if(t[n].termType===e.termType&&t[n][a]===e[a])return!0;return!1}function X(t,n,a){var i,r=!1;for(i in a){var o=a[i];i in t.values||(t.values[i]=[]),Y(o,t.values[i])||(t.values[i].push(o),r=!0)}r&&(N(t._htmlRow),function(t,n,a){var i=e.createElement("td");n._subject&&"uri"in n._subject&&i.appendChild($(n._subject.uri,"→")),t.appendChild(i);for(var r=0;r<a.length;++r){var o=a[r],s=e.createElement("td"),c=void 0,l=o.getKey();if(l in n.values){var u=n.values[l],p=!1;n.originalValues&&n.originalValues[l]&&u.length!==n.originalValues[l].length&&(p=!0);for(var d=0;d<u.length;++d){var m=u[d];n.originalValues&&n.originalValues[l]&&n.originalValues[l].length>d&&(c=n.originalValues[l][d],m.toString()!==c.toString()&&(p=!0)),s.appendChild(K(m,o)),d!==u.length-1&&s.appendChild(e.createTextNode(",\n")),p&&(s.style.background="#efe")}}t.appendChild(s)}n._htmlRow=t}(t._htmlRow,t,n)),q(t,n)}function ee(e){if("uri"in e)return e.uri;if("_subject_id"in e)return e._subject_id;var t=""+k;return e._subject_id=t,++k,t}function te(n,i,r,o){n.running=!0;var s=Date.now(),c=e.createElement("tr");o.appendChild(c),c.textContent="Loading ...";for(var l=0;l<i.length;l++)i[l].original=!0,i[l].originalValues||(i[l].originalValues=i[l].values),i[l].values={};v.query(n,function(t){if(n.running){c.textContent+=".";var a,s=null,l=null;if(A in t&&(a=ee(l=t[A]))in x&&(s=x[a]),!s){var u=e.createElement("tr");o.appendChild(u),s={_htmlRow:u,_subject:l,values:{}},i.push(s),l&&(x[a]=s)}delete s.original,X(s,r,t)}},void 0,function(){c&&c.parentNode&&c.parentNode.removeChild&&(c.parentNode.removeChild(c),c=null);var e=Date.now()-s;a.Rm("Query done: "+i.length+" rows, "+e+"ms");for(var n=i.length-1;n>=0;n--)if(i[n].original){a.Rm(" deleting row "+i[n]._subject);var o=i[n]._htmlRow;o.parentNode.removeChild(o),delete x[ee(i[n]._subject)],i.splice(n,1)}if(t.sortBy){var l=function(e,t){for(var n in e){var a=e[n];if(a.variable.toNT()===t)return a}throw new Error("getColumnForVariable: no column for variable ".concat(t))}(r,t.sortBy);V(i,l,t.sortReverse)}t.onDone&&t.onDone(_)})}function ne(e,t){d.log.debug(">> processing formula");for(var n=0;n<t.statements.length;++n){var a=t.statements[n];if("NamedNode"===a.predicate.termType&&"Variable"===a.object.termType){var i=a.object.toString();if(i in e)e[i].setPredicate(a.predicate,!1,a.subject)}if("NamedNode"===a.predicate.termType&&"Variable"===a.subject.termType){var r=a.subject.toString();if(r in e)e[r].setPredicate(a.predicate,!0,a.object)}}for(var o=0;o<t.optional.length;++o)d.log.debug("recurse to optional subformula "+o),ne(e,t.optional[o]);d.log.debug("<< finished processing formula")}function ae(e){for(var t=[],n={},a=0;a<e.vars.length;++a){var i=new I,r=e.vars[a];d.log.debug("column "+a+" : "+r),i.setVariable(r),n[r]=i,t.push(i)}return ne(n,e.pat),t}function ie(t,n){var a;a=f?ae(t):n.getColumns();var i=[],r=e.createElement("table");return r.appendChild(function(t,n){var a=e.createElement("tr"),i=e.createElement("th");a.appendChild(i);for(var r=0;r<t.length;++r){var o=e.createElement("th"),s=t[r];o.appendChild(e.createTextNode(s.getLabel())),n&&o.appendChild(z(n,s)),a.appendChild(o)}return a}(a,n)),r.appendChild(function(t,n){var a=e.createElement("tr");a.className="selectors",a.appendChild(e.createElement("td"));for(var i=0;i<n.length;++i){var r=e.createElement("td"),o=J(t,n,n[i]);o&&r.appendChild(o),a.appendChild(r)}return a}(i,a)),r.logicalRows=i,r.columns=a,r.query=t,te(t,i,a,r),r}}},6670(e,t,n){n.r(t),n.d(t,{TabWidgetElement:()=>v,tabWidget:()=>x});var a=n(3453),i=n(2901),r=n(3029),o=n(6822),s=n(3954),c=n(5501),l=n(5579),u=n(3291),p=n(9612),d=n(675),m=n(3138);function f(e,t,n){return t=(0,s.A)(t),(0,o.A)(e,h()?Reflect.construct(t,n||[],(0,s.A)(e).constructor):t.apply(e,n))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(h=function(){return!!e})()}var v=function(e){function t(){return(0,r.A)(this,t),f(this,t,arguments)}return(0,c.A)(t,e),(0,i.A)(t)}((0,l.A)(HTMLElement));function x(e){var t=e.subject,n=e.dom||document,i=parseInt(e.orientation||"0"),r=e.backgroundColor||"#ddddcc",o=2&i,s=1&i,c=e.onClose,l=function(e){return function(e){for(var t=0,n=0;n<3;n++)t+=parseInt(e.slice(2*n+1,2*n+3),16);return t>384}(e)?[b(e,"#ffffff",.3),"#000000"]:[b(e,"#000000",.3),"#ffffff"]}(r),f=(0,a.A)(l,2),h=f[0],v=f[1],x="display: grid; width: auto; height: 100%; border: 0.1em; border-style: solid; border-color: ".concat(h,"; padding: 1em;"),g=n.createElement("div");g.setAttribute("style",d.i.tabsRootElement),g.style.flexDirection=(s?"row":"column")+(o?"-reverse":"");var y=g.appendChild(n.createElement("nav"));y.setAttribute("style",d.i.tabsNavElement);var w=g.appendChild(n.createElement("main"));w.setAttribute("style",d.i.tabsMainElement);var A=y.appendChild(n.createElement("ul"));A.setAttribute("style",d.i.tabContainer),A.style.flexDirection="".concat(s?"column":"row");var k=w;g.tabContainer=A,g.bodyContainer=k;var C=["0.2em","0.2em","0","0"],E=C.concat(C).slice(i,i+4),_="border-radius: ".concat(E.join(" "),";"),T=["0.3em","0.3em","0","0.3em"],j=T.concat(T).slice(i,i+4),S="margin: ".concat(j.join(" "),";"),L="padding: ".concat(j.join(" "),";"),R=_+"position: relative; padding: 0.7em; max-width: 20em; color: ".concat(v,";"),N="".concat(R+S," opacity: 50%; background-color: ").concat(r,";"),B="".concat(R+S," background-color: ").concat(h,";"),I="height: 100%; width: 100%;",O=I+"display: none;";if(g.refresh=V,V(),!e.startEmpty&&A.children.length&&e.selectedTab){var F=Array.from(A.children).map(function(e){return e.firstChild}).find(function(t){return t.dataset.name===e.selectedTab}),P=e.selectedTab.uri,D=Array.from(A.children).find(function(e){return e.subject&&e.subject.uri&&e.subject.uri===P}),U=D||F||A.children[0],M=U.firstChild;null!=M&&M.click?M.click():U instanceof HTMLElement&&U.click()}else if(!e.startEmpty){var z=A.children[0],q=null==z?void 0:z.firstChild;null!=q&&q.click?q.click():z instanceof HTMLElement&&z.click()}return g;function H(t){var a=n.createElement("li");a.setAttribute("style",N),a.subject=t;var i=a.appendChild(n.createElement("button"));if(i.setAttribute("style",d.i.makeNewSlot),i.onclick=function(){if(G(),Z(),a.setAttribute("style",B),a.bodyTR){a.bodyTR.setAttribute("style",I);var n=o(a);e.renderMain&&a.subject&&!1!==n.asSettings&&(n.innerHTML="loading item ..."+t,e.renderMain(n,a.subject),n.asSettings=!1)}},e.renderTabSettings&&a.subject){var r=n.createElement("button");r.textContent="...",r.setAttribute("style",d.i.ellipsis),r.onclick=function(){if(G(),Z(),a.setAttribute("style",B),a.bodyTR){a.bodyTR.setAttribute("style",I);var n=o(a);e.renderTabSettings&&a.subject&&!0!==n.asSettings&&(n.innerHTML="loading settings ..."+t,e.renderTabSettings(n,a.subject),n.asSettings=!0)}},a.appendChild(r)}return e.renderTab?e.renderTab(i,t):i.innerHTML=(0,p.P)(t),a;function o(e){var t,a=null===(t=e.bodyTR)||void 0===t?void 0:t.children[0];if(a)return a;var i=e.bodyTR.appendChild(n.createElement("main"));return i.setAttribute("style",x),i}}function V(){var a,i,r,o,s,l=e.items?e.items:!1!==e.ordered?m.store.the(t,e.predicate).elements:m.store.each(t,e.predicate),p=!1;for(o=0;o<A.children.length;o++)if(a=A.children[o],o>=l.length||a.subject&&!a.subject.sameTerm(l[o])){p=!0;break}if(p||l.length!==A.children.length){for(s=A.children.length-1;s>=0&&(a=A.children[s],r=s-A.children.length+l.length,!a.subject||a.subject.sameTerm(l[r]));s--);for(var d=l.slice(o,s-A.children.length+l.length+1);s>=o;)A.removeChild(A.children[o]),k.removeChild(k.children[o]),s-=1;for(i=0;i<d.length;i++){var f=H(d[i]),h=n.createElement("div");f.bodyTR=h,o===A.children.length?(A.appendChild(f),k.appendChild(h)):(A.insertBefore(f,A.children[o+i]),k.insertBefore(h,k.children[o+i]))}c&&function(e){if(e.dataset.onCloseSet){var t=e.querySelector(".unstyled");e.removeChild(t)}var a=n.createElement("li");a.classList.add("unstyled");var i=(0,u.x7)(n,c);i.setAttribute("style",i.getAttribute("style")+L),a.appendChild(i),e.appendChild(a),e.dataset.onCloseSet="true"}(A)}}function G(){for(var e=0;e<A.children.length;e++){var t=A.children[e];t.classList.contains("unstyled")||t.setAttribute("style",N)}}function Z(){for(var e=0;e<k.children.length;e++)k.children[e].setAttribute("style",O)}}function b(e,t,n){for(var a,i,r="#",o="0123456789abcdef",s=0;s<3;s++){a=parseInt(e.slice(2*s+1,2*s+3),16),i=parseInt(t.slice(2*s+1,2*s+3),16);var c=parseInt((""+(a*(1-n)+i*n)).split(".")[0]),l=parseInt((""+c/16).split(".")[0]),u=parseInt((""+c%16).split(".")[0]);r+=o[l]+o[u]}return r}},8565(e,t,n){n.d(t,{E6:()=>c,bB:()=>l,mG:()=>p,nF:()=>d});var a=n(467),i=n(4756),r=n.n(i),o=n(4961),s=n(1795);function c(){return(0,o.sym)(document.location.origin).site()}function l(e,t){return u.apply(this,arguments)}function u(){return(u=(0,a.A)(r().mark(function e(t,n){var a,i,c,l,u;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,n.any(t,null,s.A.ldp("Container"),t)){e.next=2;break}return e.next=1,n.fetcher.webOperation("GET",t.uri,n.fetcher.initFetchOptions(t.uri,{headers:{accept:"text/turtle"}}));case 1:a=e.sent,i=a.responseText,(0,o.parse)(i,n,t.uri,"text/turtle");case 2:e.next=4;break;case 3:return e.prev=3,u=e.catch(0),console.error("Error loading pod "+t+": "+u),e.abrupt("return",null);case 4:if(n.holds(t,s.A.rdf("type"),s.A.space("Storage"),t)){e.next=5;break}return console.warn("Pod "+t+" does not declare itself as a space:Storage"),e.abrupt("return",null);case 5:if(!(c=n.any(t,s.A.solid("owner"),null,t)||n.any(null,s.A.space("storage"),t,t))){e.next=10;break}return e.prev=6,e.next=7,n.fetcher.load(c.doc());case 7:e.next=9;break;case 8:return e.prev=8,e.catch(6),console.warn("Unable to load profile of pod owner "+c),e.abrupt("return",null);case 9:return n.holds(c,s.A.space("storage"),t,c.doc())||console.warn("Pod owner ".concat(c," does NOT list pod ").concat(t," as their storage")),e.abrupt("return",c);case 10:return l=(0,o.sym)("".concat(t.uri,"profile/card#me")),e.prev=11,e.next=12,n.fetcher.load(l);case 12:e.next=14;break;case 13:return e.prev=13,e.catch(11),console.error("Ooops. Guessed wrong pod owner webid {$guess} : can't load it."),e.abrupt("return",null);case 14:if(!n.holds(l,s.A.space("storage"),t,l.doc())){e.next=15;break}return console.warn("Using guessed pod owner webid but it links back."),e.abrupt("return",l);case 15:return e.abrupt("return",null);case 16:case"end":return e.stop()}},e,null,[[0,3],[6,8],[11,13]])}))).apply(this,arguments)}function p(e,t){return e.anyValue(t,s.A.vcard("fn"),null,t.doc())||e.anyValue(t,s.A.foaf("name"),null,t.doc())||t.uri}function d(e,t){var n,a,i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=null,s=0,c=function(){s=r.leading?Date.now():0,o=null,i=e.apply(n,a),o||(n=a=null)};return function(){var l=Date.now();s||r.leading||(s=l);var u=t-(l-s);return n=this,a=arguments,u<=0||u>t?(o&&(clearTimeout(o),o=null),s=l,i=e.apply(n,a),o||(n=a=null)):o||!1===r.trailing||(o=setTimeout(c,u)),i}}},52(e,t,n){n.r(t),n.d(t,{AJARImage:()=>j,RDFComparePredicateObject:()=>F,RDFComparePredicateSubject:()=>P,addLoadEvent:()=>E,ancestor:()=>w,beep:()=>m,clearVariableNames:()=>d,emptyNode:()=>g,escapeForXML:()=>N,findPos:()=>_,genUuid:()=>h,getAbout:()=>A,getEyeFocus:()=>T,getTarget:()=>y,getTerm:()=>k,hashColor:()=>f,include:()=>C,label:()=>c.P,labelForXML:()=>B,labelWithOntology:()=>R,newVariableName:()=>p,ontologyLabel:()=>L,predParentOf:()=>D,predicateLabel:()=>O,predicateLabelForXML:()=>I,shortName:()=>S,stackString:()=>b,syncTableToArray:()=>v,syncTableToArrayReOrdered:()=>x});var a,i=n(4158),r=n(3138),o=n(1795),s=n(4961),c=n(9612),l={log:i,ns:o.A,rdf:s},u=0;function p(){return"v"+u++}function d(){u=0}function m(){if(a){var e=new a;return function(t,n,a,i){t=+(t||.3),a=a||"sine","function"!=typeof i&&(i=function(){});var r=e.createOscillator();r.type=a,r.frequency.value=n||256,r.connect(e.destination),r.start(0),r.stop(t)}}}function f(e){e=e.uri||e;var t;return"#"+(16777215&(t=e,t.split("").reduce(function(e,t){return(e=(e<<5)-e+t.charCodeAt(0))&e},0))|12632256).toString(16)}function h(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}function v(e,t,n){var a,i,r;for(r=0;r<e.children.length;r++)(i=e.children[r]).trashMe=!0;for(var o=0;o<t.length;o++){var s=t[o];for(a=!1,r=0;r<e.children.length;r++)if((i=e.children[r]).subject&&i.subject.sameTerm(s)){i.trashMe=!1,a=!0;break}if(!a){var c=n(s);if(o>=e.children.length)e.appendChild(c);else{var l=e.children[o];e.insertBefore(c,l)}c.subject=s}}for(r=0;r<e.children.length;r++)(i=e.children[r]).trashMe&&e.removeChild(i)}function x(e,t,n){for(var a={},i=0;i<e.children.length;i++){var r=e.children[i];a[r.subject.toNT()]=r}for(var o=0;o<t.length;o++){var s=t[o];if(o>=e.children.length){var c=n(s);c.subject=s,e.appendChild(c)}else{var l=e.children[o];if(l.subject.sameTerm(s));else{var u=a[s.toNT()];if(u)e.removeChild(u),e.insertBefore(u,l);else{var p=n(s);l.before(p),p.subject=s}}}}for(;e.children.length>t.length;)e.removeChild(e.children[e.children.length-1])}function b(e){var t,n=e+"\n";if(!e.stack)return n+"No stack available.\n";var a=e.stack.toString().split("\n"),i=[];for(t=0;t<a.length;t++){var r=a[t];if(r.indexOf("ecmaunit.js")>-1)break;"("===r.charAt(0)&&(r="function"+r);var o=r.split("@");i.push(o)}for(t=0;t<i.length;t++)n+=" "+i[t][1]+"\n "+i[t][0];return n}function g(e){for(var t=e.childNodes,n=t.length-1;n>=0;n--)e.removeChild(t[n]);return e}function y(e){var t;return(e=e||window.event).target?t=e.target:e.srcElement&&(t=e.srcElement),3===t.nodeType&&(t=t.parentNode),t}function w(e,t){var n;for(n=e;n;n=n.parentNode)try{if(n.tagName===t)return n}catch(e){return}}function A(e,t){var n,a;for(n=t;n&&1===n.nodeType;n=n.parentNode)if(a=n.getAttribute("about"))return e.fromNT(a);l.log.debug("getAbout: No about found")}function k(e){var t=e.parentNode,n=t?t.AJAR_statement:void 0;switch(n?e.className:""){case"pred":case"pred selected":return n.predicate;case"obj":case"obj selected":return t.AJAR_inverse?n.subject:n.object;case"":case"selected":return A(r.store,e);case"undetermined selected":return e.nextSibling?n.predicate:t.AJAR_inverse?n.subject:n.object}}function C(e,t){var n=e.createElement("script");return n.setAttribute("type","text/javascript"),n.setAttribute("src",t),n}function E(e){var t=window.onload;"function"!=typeof window.onload?window.onload=e:window.onload=function(){t(),e()}}function _(e){var t=e.ownerDocument.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return[n.left-t.left,n.top-t.top]}function T(e,t,n,a){a||(a=window);var i=_(e)[1],r=window.SolidAppContext||{},o=i-(r&&r.scroll||52)-a.scrollY;if(t)return n?void a.scrollBy(0,i+e.clientHeight-(a.scrollY+a.innerHeight)):void a.scrollBy(0,o);var s=a.setInterval(function(){a.scrollBy(0,o/10),10===++c&&a.clearInterval(s)},50),c=0}function j(e,t,n,a){a||(a=document);var i=a.createElement("img");return i.setAttribute("src",e),i.addEventListener("copy",function(e){e.clipboardData.setData("text/plain",""),e.clipboardData.setData("text/html",""),e.preventDefault()}),void 0!==n&&i.setAttribute("title",n),i}function S(e){var t=e;"#/".indexOf(t[t.length-1])>=0&&(t=t.slice(0,-1));var n,a=[];for(var i in this.prefixes)a[this.prefixes[i]]=i;var r,o=function(e){return"ns"!==e&&(n=e,!0)},s=t.lastIndexOf("#");for(s>=0&&(t=t.slice(s-1));;){var c=t.lastIndexOf("/");for(c>=0&&(t=t.slice(c+1)),r=0;r<t.length&&this.prefixchars.indexOf(t[r]);)r++;if((t=t.slice(0,r)).length<6&&o(t))return n;if(o(t.slice(0,3)))return n;if(o(t.slice(0,2)))return n;if(o(t.slice(0,4)))return n;if(o(t.slice(0,1)))return n;if(o(t.slice(0,5)))return n;for(r=0;;r++)if(o(t.slice(0,3)+r))return n}}function L(e){if(void 0===e.uri)return"??";var t,n=e.uri,a=[],i=n.lastIndexOf("#");if(i>=0)n=n.slice(0,i+1);else{if(!((i=n.lastIndexOf("/"))>=0))return e.uri+"?!";n=n.slice(0,i+1)}for(var r in l.ns)a[l.ns[r]]=r;try{return a[n]}catch(e){}for(n=n.slice(0,-1);n;){if(!((i=n.lastIndexOf("/"))>=0))return e.uri+"!?";if(t=n.slice(i+1),n=n.slice(0,i),"ns"!==t&&"0123456789".indexOf(t[0])<0)return t}}function R(e,t){var n=r.store.findTypeURIs(e);return n[l.ns.rdf("Predicate").uri]||n[l.ns.rdfs("Class").uri]?(0,c.P)(e,t)+" ("+L(e)+")":(0,c.P)(e,t)}function N(e){return e.replace(/&/g,"&").replace(/</g,"<")}function B(e){return N((0,c.P)(e))}function I(e,t){return N(O(e,t))}function O(e,t){var n=(0,c.P)(e);if(t){var a=r.store.any(e,l.ns.owl("inverseOf"))||r.store.any(void 0,l.ns.owl("inverseOf"),e);return a?(0,c.P)(a):"type"===n?"...":"is "+n+" of"}return n}function F(e,t){var n=e.predicate.compareTerm(t.predicate);return 0!==n?n:e.object.compareTerm(t.object)}function P(e,t){var n=e.predicate.compareTerm(t.predicate);return 0!==n?n:e.subject.compareTerm(t.subject)}function D(e){for(var t=e;;){if(t.getAttribute("predTR"))return t;if(!t.previousSibling||"TR"!==t.previousSibling.nodeName)return l.log.error("Could not find predParent"),e;t=t.previousSibling}}"undefined"!=typeof AudioContext?a=AudioContext:"undefined"!=typeof window&&(a=window.AudioContext||window.webkitAudioContext)},8425(e,t,n){n.d(t,{AB:()=>u,ED:()=>p,S3:()=>d,cX:()=>f});var a=n(467),i=n(4756),r=n.n(i),o=n(7423),s=n(3138),c=n(1795),l=n(8852),u=function(e){var t;try{var n=(0,l.X)(e);t="".concat(n,"/profile/keys/publicKey.ttl")}catch(e){o.z3(e)}return t},p=function(e){var t;try{var n=(0,l.X)(e);t="".concat(n,"/settings/keys/privateKey.ttl")}catch(e){o.z3(e)}return t};function d(e,t){return m.apply(this,arguments)}function m(){return(m=(0,a.A)(r().mark(function e(t,n){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,v(t,n,"publicKey");case 1:return e.abrupt("return",e.sent);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function f(e,t){return h.apply(this,arguments)}function h(){return(h=(0,a.A)(r().mark(function e(t,n){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,v(t,n,"privateKey");case 1:return e.abrupt("return",e.sent);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function v(e,t,n){return x.apply(this,arguments)}function x(){return(x=(0,a.A)(r().mark(function e(t,n,a){var i,l,u;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,s.store.fetcher.load(n);case 1:return i=s.store.any(t,c.A.solid(a)),e.abrupt("return",null==i?void 0:i.value);case 2:if(e.prev=2,404!==(l=e.catch(0)).response.status){e.next=7;break}return o.Rm("createIfNotExists: doc does NOT exist, will create... "+n),e.prev=3,e.next=4,s.store.fetcher.webOperation("PUT",n,{data:"",contentType:"text/turtle"});case 4:e.next=6;break;case 5:throw e.prev=5,u=e.catch(3),o.Rm("createIfNotExists doc FAILED: "+n+": "+u),u;case 6:return delete s.store.fetcher.requested[n],e.abrupt("return",void 0);case 7:throw o.Rm("createIfNotExists doc FAILED: "+n+": "+l),l;case 8:case"end":return e.stop()}},e,null,[[0,2],[3,5]])}))).apply(this,arguments)}},3907(e,t,n){n.d(t,{G2:()=>p,lO:()=>c,vb:()=>u});var a=n(467),i=n(4756),r=n.n(i),o=n(7423),s=n(3138);function c(e,t){return l.apply(this,arguments)}function l(){return(l=(0,a.A)(r().mark(function e(t,n){var a,i,c;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,s.store.fetcher.load(t);case 1:if(a=s.store.any(s.store.sym(t),s.store.sym("http://www.iana.org/assignments/link-relations/acl"))){e.next=2;break}throw new Error("Key ACL doc not found!");case 2:return e.prev=2,e.next=3,s.store.fetcher.webOperation("PUT",a.value,{data:n,contentType:"text/turtle"});case 3:e.next=6;break;case 4:if(e.prev=4,404===(null==(c=e.catch(2))||null===(i=c.response)||void 0===i?void 0:i.status)){e.next=5;break}throw new Error(c);case 5:o.Rm("delete "+a.value+" "+c.response.status);case 6:case"end":return e.stop()}},e,null,[[2,4]])}))).apply(this,arguments)}var u=function(e){return"\n@prefix : <#>.\n@prefix acl: <http://www.w3.org/ns/auth/acl#>.\n@prefix foaf: <http://xmlns.com/foaf/0.1/>.\n@prefix key: <./>.\n\n:ReadWrite\n a acl:Authorization;\n acl:accessTo key:;\n acl:default key:;\n acl:agent <".concat(e,">;\n acl:mode acl:Read, acl:Write.\n")},p=function(e,t){var n="acl:agentClass foaf:Agent";return null!=t&&t.length&&(n="acl:agent <".concat(t,">")),"\n@prefix foaf: <http://xmlns.com/foaf/0.1/>.\n@prefix acl: <http://www.w3.org/ns/auth/acl#>.\n<#Read>\n a acl:Authorization;\n ".concat(n,";\n acl:accessTo <").concat(e.split("/").pop(),">;\n acl:mode acl:Read.\n")}},8852(e,t,n){n.d(t,{X:()=>r});var a=n(3138),i=n(1795),r=function(e){var t,n,r=null===(t=a.store.any(e,i.A.space("preferencesFile"),null,e.doc()))||void 0===t?void 0:t.value;if(!(r=null===(n=r)||void 0===n?void 0:n.split("/").slice(0,-2).join("/")))throw new Error("prefererencesFile is expected to exist in ".concat(e));return r}},9612(e,t,n){n.d(t,{P:()=>c});var a=n(4158),i=n(3138),r=n(1795),o=n(4961),s={log:a,ns:r.A,rdf:o};function c(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function n(e){return t?e.slice(0,1).toUpperCase()+e.slice(1):e}function a(e){var t="";"/"===e.slice(-1)&&(e=e.slice(0,-1));for(var a=0;a<e.length;a++)"_"!==e[a]&&"-"!==e[a]?(t+=e[a],a+1<e.length&&e[a].toUpperCase()!==e[a]&&e[a+1].toLowerCase()!==e[a+1]&&(t+=" ")):t+=" ";return"has "===t.slice(0,4)&&(t=t.slice(4)),n(t)}var r=function(e){return i.store.any(e,s.ns.ui("label"))||i.store.any(e,s.ns.link("message"))||i.store.any(e,s.ns.vcard("fn"))||i.store.any(e,s.ns.foaf("name"))||i.store.any(e,s.ns.dct("title"))||i.store.any(e,s.ns.dc("title"))||i.store.any(e,s.ns.rss("title"))||i.store.any(e,s.ns.contact("fullName"))||i.store.any(e,i.store.sym("http://www.w3.org/2001/04/roadmap/org#name"))||i.store.any(e,s.ns.cal("summary"))||i.store.any(e,s.ns.foaf("nick"))||i.store.any(e,s.ns.as("name"))||i.store.any(e,s.ns.schema("name"))||i.store.any(e,s.ns.rdfs("label"))||i.store.any(e,i.store.sym("http://www.w3.org/2004/02/skos/core#prefLabel"))}(e);if(r)return n(r.value);if("BlankNode"===e.termType)return"...";if("Collection"===e.termType)return"("+e.elements.length+")";var o=e.uri;if(void 0===o)return e.toString();try{o=o.split("/").map(decodeURIComponent).join("/")}catch(e){for(var c=o.length-3;c>0;c--)for(var u="0123456789abcefABCDEF";"%"===o[c]&&u.indexOf(o[c+1])>=0&&u.indexOf(o[c+2])>=0;)o=o.slice(0,c)+String.fromCharCode(parseInt(o.slice(c+1,c+3),16))+o.slice(c+3)}o=l(o,"/profile/card#me"),o=l(o,"#this");var p=(o=l(o,"#me")).indexOf("#");if(p>=0)return a(o.slice(p+1));var d=o.lastIndexOf("/",o.length-2);return d>=0&&d<e.uri.length?a(o.slice(d+1)):n(decodeURIComponent(e.uri))}function l(e,t){var n=-1*t.length;return e.slice(n)===t?e.slice(0,n):e}},3291(e,t,n){n.d(t,{$J:()=>K,Ag:()=>X,CS:()=>ne,Cl:()=>M,DT:()=>Y,EW:()=>y,F1:()=>R,IC:()=>T,JK:()=>ae,Mj:()=>E,PO:()=>I,Pe:()=>te,Pg:()=>$,Qf:()=>J,Qy:()=>O,RG:()=>U,RS:()=>ee,Ss:()=>V,UH:()=>H,XV:()=>A,ZT:()=>L,cZ:()=>ie,cc:()=>g,er:()=>w,fT:()=>oe,g7:()=>B,i:()=>_,kz:()=>D,ly:()=>q,ol:()=>W,p_:()=>j,r6:()=>k,ri:()=>z,sf:()=>Z,uA:()=>Q,uS:()=>G,vE:()=>C,wu:()=>re,x6:()=>F,x7:()=>P});var a=n(4961),i=n(3378),r=n(1795),o=n(675),s=n(7423),c=n(4158),l=n(386),u=n(3138),p=n(52),d=n(9612),m=n(3468),f=n(9287),h=n(9326),v=i.Pt.iconBase,x=v+"noun_1180156.svg",b=v+"noun_1180158.svg";function g(e,t){if(t){var n=function(e){var t=e&&e.statusArea||e&&e.div||null;if(t)return t;var n=e&&e.dom;if(n||"undefined"==typeof document||(n=document),n){var a=n.getElementsByTagName("body")[0];return t=n.createElement("div"),a.insertBefore(t,a.firstElementChild),e&&(e.statusArea=t),t}return null}(e);s.Rm("Complaint: "+t),n?n.appendChild((0,m.F)(e&&e.dom||document,t)):alert(t)}}function y(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function w(e){var t=e.search(/logFile=/),n=e.search(/&rulesFile=/);return e.substring(t+8,n)}function A(e,t){if(!e)return"???";try{var n=(new Date).toISOString();return e.slice(0,10)!==n.slice(0,10)||t?e.slice(0,4)===n.slice(0,4)?["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][parseInt(e.slice(5,7),10)-1]+" "+parseInt(e.slice(8,10),10):e.slice(0,10):e.slice(11,16)}catch(e){return"shortdate:"+e}}function k(e,t){return t.split("{").map(function(t){var n=t.split("}")[0];return t?("000"+(e["get"+n]()+({Month:1}[n]||0))).slice(-({Milliseconds:3,FullYear:4}[n]||2))+t.split("}")[1]:""}).join("")}function C(){return k(new Date,"{FullYear}-{Month}-{Date}T{Hours}:{Minutes}:{Seconds}.{Milliseconds}")}function E(){return k(new Date,"{Hours}:{Minutes}:{Seconds}.{Milliseconds}")}function _(e,t){var n=u.store,a=function(e){var t=n.any(e,r.A.vcard("fn"))||n.any(e,r.A.foaf("name"))||n.any(e,r.A.vcard("organization-name"));return t?t.value:null},i=t.sameTerm(r.A.foaf("Agent"))?"Everyone":a(t);if(e.textContent=i||d.P(t),!i&&t.uri){if(!n.fetcher)throw new Error("kb has no fetcher");n.fetcher.nowOrWhenFetched(t.doc(),void 0,function(n){e.textContent=a(t)||d.P(t)})}}function T(e,t){return t.each(e,r.A.sioc("avatar")).concat(t.each(e,r.A.foaf("img"))).concat(t.each(e,r.A.vcard("logo"))).concat(t.each(e,r.A.vcard("hasPhoto"))).concat(t.each(e,r.A.vcard("photo"))).concat(t.each(e,r.A.foaf("depiction")))}var j={"solid:AppProviderClass":"noun_144.svg","solid:AppProvider":"noun_15177.svg","solid:Pod":"noun_Cabinet_1434380.svg","vcard:Group":"noun_339237.svg","vcard:Organization":"noun_143899.svg","vcard:Individual":"noun_15059.svg","schema:Person":"noun_15059.svg","foaf:Person":"noun_15059.svg","foaf:Agent":"noun_98053.svg","acl:AuthenticatedAgent":"noun_99101.svg","prov:SoftwareAgent":"noun_Robot_849764.svg","vcard:AddressBook":"noun_15695.svg","trip:Trip":"noun_581629.svg","meeting:LongChat":"noun_1689339.svg","meeting:Meeting":"noun_66617.svg","meeting:Project":"noun_1036577.svg","ui:Form":"noun_122196.svg","rdfs:Class":"class-rectangle.svg","rdf:Property":"property-diamond.svg","owl:Ontology":"noun_classification_1479198.svg","wf:Tracker":"noun_122196.svg","wf:Task":"noun_17020_gray-tick.svg","wf:Open":"noun_17020_sans-tick.svg","wf:Closed":"noun_17020.svg"};function S(e){var t=e.uri.split("#")[0],n=t.indexOf("//");if(n<0)throw new Error("This URI does not have a web site part (origin)");var a=t.indexOf("/",n+2);return a<0?t.slice(0)+"/":t.slice(0,a+1)}function L(e){var t=v;return"string"!=typeof e&&e.uri?4!==e.uri.split("/").length||e.uri.split("/")[1]||e.uri.split("/")[3]?e.uri.startsWith("message:")||e.uri.startsWith("mid:")?t+"noun_480183.svg":e.uri.startsWith("mailto:")?t+"noun_567486.svg":e.uri.startsWith("https:")&&e.uri.indexOf("#")<0?S(e)+"favicon.ico":null:t+"noun_15177.svg":t+"noun_10636_grey.svg"}function R(e){var t=u.store,n=v;if(e.sameTerm(r.A.foaf("Agent"))||e.sameTerm(r.A.rdf("Resource")))return n+"noun_98053.svg";var a=t.any(e,r.A.sioc("avatar"))||t.any(e,r.A.foaf("img"))||t.any(e,r.A.vcard("logo"))||t.any(e,r.A.vcard("hasPhoto"))||t.any(e,r.A.vcard("photo"))||t.any(e,r.A.foaf("depiction"));return a?a.uri:null}function N(e,t,n){var a=u.store,i=R(t);if(i)return e.setAttribute("src",i),!0;var r=n[t.uri];if(r)return e.setAttribute("src",r),e.style=o.i.classIconStyle,!0;var s=L(t);if(s)return e.setAttribute("src",s),!0;var c=a.findTypeURIs(t);for(var l in c)if(n[l])return e.setAttribute("src",n[l]),!1;return e.setAttribute("src",v+"noun_10636_grey.svg"),!1}function B(e,t){var n=u.store,i={};for(var o in j){var s=o.split(":")[0],c=o.split(":")[1],l=r.A[s](c);i[l.uri]=a.uri.join(j[o],v)}if(!N(e,t,i)&&t.uri){if(!n.fetcher)throw new Error("kb has no fetcher");n.fetcher.nowOrWhenFetched(t.doc(),void 0,function(n){n&&N(e,t,i)})}}function I(e,t){var n=e.createElement("img");n.style=o.i.iconStyle;if(n.setAttribute("src",v+(function(e){if(!e.uri)return!1;var t=e.uri.split("/");return 3===t.length||4===t.length&&""===t[3]}(t)?"noun_15177.svg":"noun_681601.svg")),t.uri&&t.uri.startsWith("https:")&&t.uri.indexOf("#")<0){var a=e.createElement("object");return a.setAttribute("data",S(t)+"favicon.ico"),a.setAttribute("type","image/x-icon"),a.appendChild(n),a}return B(n,t),n}function O(e,t,n,a){var r=v+"noun_2188_red.svg",s=e.createElement("img");s.setAttribute("src",r),s.setAttribute("style",o.i.smallButtonStyle),s.style.float="right";var c="Remove this "+n;return s.title=c,s.classList.add("hoverControlHide"),s.addEventListener("click",function(){var n=e.createElement("div");t.insertBefore(n,s),n.style.position="relative",n.appendChild(function(e,t,n,a){function r(){t.parentElement.removeChild(t)}function s(){r(),a()}var c=e.createElement("div");c.style=o.i.confirmPopupStyle,c.style.position="absolute",c.style.top="-1em",c.style.display="grid",c.style.gridTemplateColumns="auto auto";var l=e.createElement("div");l.style.gridColumn="1/2",l.style.gridRow="1";var u=e.createElement("div");u.style.gridColumn="1/2",u.style.gridRow="2";var p=P(e,r);c.appendChild(p),p.style.gridColumn="1",p.style.gridRow="2";var d=c.appendChild(e.createElement("button"));d.style=o.i.buttonStyle,d.style.gridRow="2",d.style.gridColumn="2",d.textContent="Cancel";var m=F(e,i.Pt.iconBase+"noun_925021.svg","Delete it");c.appendChild(m),m.style.gridRow="1",m.style.gridColumn="1";var f=c.appendChild(e.createElement("button"));return f.style=o.i.buttonStyle,f.style.gridRow="1",f.style.gridColumn="2",f.textContent=n,c.appendChild(f),m.addEventListener("click",s),f.addEventListener("click",s),d.addEventListener("click",r),c}(e,n,c,a))}),t.classList.add("hoverControl"),t.appendChild(s),s.setAttribute("data-testid","deleteButtonWithCheck"),s}function F(e,t,n,a){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{buttonColor:"Primary",needsBorder:!1},r=e.createElement("button");if(r.setAttribute("type","button"),t){var s=r.appendChild(e.createElement("img"));s.setAttribute("src",t),s.setAttribute("style","width: 2em; height: 2em;"),s.title=n,r.setAttribute("style",o.i.buttonStyle)}else r.textContent=n.toLocaleUpperCase(),r.onmouseover=function(){"Secondary"===i.buttonColor?i.needsBorder?r.setAttribute("style",o.i.secondaryButtonNoBorderHover):r.setAttribute("style",o.i.secondaryButtonHover):i.needsBorder?r.setAttribute("style",o.i.primaryButtonNoBorderHover):r.setAttribute("style",o.i.primaryButtonHover)},r.onmouseout=function(){"Secondary"===i.buttonColor?i.needsBorder?r.setAttribute("style",o.i.secondaryButtonNoBorder):r.setAttribute("style",o.i.secondaryButton):i.needsBorder?r.setAttribute("style",o.i.primaryButtonNoBorder):r.setAttribute("style",o.i.primaryButton)},"Secondary"===i.buttonColor?i.needsBorder?r.setAttribute("style",o.i.secondaryButtonNoBorder):r.setAttribute("style",o.i.secondaryButton):i.needsBorder?r.setAttribute("style",o.i.primaryButtonNoBorder):r.setAttribute("style",o.i.primaryButton);return a&&r.addEventListener("click",a,!1),r}function P(e,t){var n=F(e,x,"Cancel",t);return n.firstChild&&(n.firstChild.style.opacity="0.3"),n}function D(e,t){return F(e,b,"Continue",t)}function U(e,t,n,a,i,s){return new Promise(function(t,c){var l=e.createElement("div");a=a||r.A.foaf("name");var u=(s=s||(i?d.P(i):" "))+" "+d.P(a)+": ";l.appendChild(e.createElement("p")).textContent=u;var p=e.createElement("input");function m(){l.parentNode.removeChild(l),t(p.value.trim())}p.setAttribute("type","text"),p.setAttribute("size","100"),p.setAttribute("maxLength","2048"),p.setAttribute("style",o.i.textInputStyle),p.select(),l.appendChild(p),n.appendChild(l),p.addEventListener("keyup",function(e){13===e.keyCode&&m()},!1),l.appendChild(e.createElement("br")),l.appendChild(P(e,function(e){l.parentNode.removeChild(l),t(null)})),l.appendChild(D(e,function(e){m()})),p.focus()})}var M=z;function z(e,t,n,a){var i=e.createElement("tr");a=a||{};var r=i.appendChild(e.createElement("td")),o=i.appendChild(e.createElement("td")),s=i.appendChild(e.createElement("td")),c=a.image||I(e,n);if(r.setAttribute("style","vertical-align: middle; width:2.5em; padding:0.5em; height: 2.5em;"),o.setAttribute("style","vertical-align: middle; text-align:left;"),s.setAttribute("style","vertical-align: middle; width:2em; padding:0.5em; height: 4em;"),r.appendChild(c),a.title?o.textContent=a.title:_(o,n),a.deleteFunction&&O(e,s,a.noun||"one",a.deleteFunction),n.uri){if(!1!==a.link)s.appendChild((0,h.w)(e,n)).classList.add("HoverControlHide"),s.appendChild(e.createElement("br"));!1!==a.draggable&&(c.setAttribute("draggable","false"),(0,l.eB)(i,n))}return i.subject=n,i}function q(e,t,n,a){var i=t.appendChild(e.createElement("div"));n?i.textContent=n:_(i,a)}function H(e,t,n,a){var i=t.appendChild(e.createElement("div"));i.setAttribute("style",o.i.linkDivStyle),a.deleteFunction&&O(e,i,a.noun||"one",a.deleteFunction),n.uri&&(!1!==a.link&&(0,h.O)(e,i,n),(0,l.eB)(t,n))}function V(e,t,n){var a=e.createElement("div");a.setAttribute("style",o.i.renderAsDivStyle);var i=(n=n||{}).image||I(e,t);return(0,f.ts)(e,a,i),q(e,a,n.title,t),H(e,a,t,n),n.clickable&&n.onClickFunction&&(0,f.lx)(a,n.onClickFunction),n.wrapInATR?(0,f.I1)(e,a,t):a}function G(e){if(e.refresh)e.refresh();else for(var t=0;t<e.children.length;t++)G(e.children[t])}function Z(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};function o(n){var i=n,r={noun:y};return h&&(r.deleteFunction=function(){!function(e){if(!w.updater)throw new Error("kb has no updater");w.updater.update((0,a.st)(t,b,e,f),[],function(e,t,n,a){t?c():g(void 0,"Error deleting one: "+n)})}(i)}),M(e,b,n,r)}var c=function(){var e=w.each(t,b);e.sort(),p.syncTableToArray(E,e,o)};function d(e){var n=[];if(e.forEach(function(e){var i=(0,a.sym)(e);s.Rm("Dropped on attachemnt "+e),n.push((0,a.st)(t,b,i,f))}),!w.updater)throw new Error("kb has no updater");w.updater.update([],n,function(e,t,n,a){t?c():g(void 0,"Error adding one: "+n)})}function m(e){var n,r;(0,l.Zn)(w.fetcher,e,null===(n=i.uploadFolder)||void 0===n?void 0:n.uri,null===(r=i.uploadFolder)||void 0===r?void 0:r.uri,function(e,n){var i=[(0,a.st)(t,b,w.sym(n),f)];if(!w.updater)throw new Error("kb has no updater");w.updater.update([],i,function(e,t,n,a){t?c():g(void 0,"Error adding link to uploaded file: "+n)})})}var f=i.doc||t.doc();void 0===i.modify&&(i.modify=!0);var h=i.modify,x=i.promptIcon||v+"noun_748003.svg",b=i.predicate||r.A.wf("attachment"),y=i.noun||"attachment",w=u.store,A=n.appendChild(e.createElement("table"));A.setAttribute("style","margin-top: 1em; margin-bottom: 1em;");var k=A.appendChild(e.createElement("tr")),C=k.appendChild(e.createElement("td")),E=k.appendChild(e.createElement("td")).appendChild(e.createElement("table"));if(E.appendChild(e.createElement("tr")),A.refresh=c,c(),h){var _=F(e,x,"Drop attachments here");C.appendChild(_);var T=i.uploadFolder?m:null;if((0,l.DK)(_,d,T),(0,l.DK)(C,d,T),i.uploadFolder){var j=oe(e,m);C.appendChild(j)}}return A}function W(e){e.preventDefault(),e.stopPropagation();var t=p.getTarget(e).getAttribute("href");if(!t)return s.Rm("openHrefInOutlineMode: No href found!\n");var n=window.document;n.outlineManager?n.outlineManager.GotoSubject(u.store.sym(t),!0,void 0,!0,void 0):window&&window.panes&&window.panes.getOutliner?window.panes.getOutliner().GotoSubject(u.store.sym(t),!0,void 0,!0,void 0):s.Rm("ERROR: Can't access outline manager in this config")}function J(e){if(void 0!==e.uri){var t=e.uri;if("http://"===t.slice(0,7)){var n=(t=t.slice(7)).indexOf("#");if(n>=0)t=t.slice(0,n);else{var a=t.lastIndexOf("/");if(a<0)return;t=t.slice(0,a)}return u.store.sym("http://tabulator.org/wiki/annnotation/"+t)}}}function $(){var e={};return u.store.statementsMatching(void 0,r.A.rdf("type"),void 0).forEach(function(t){t.object.value&&(e[t.object.value]=!0)}),u.store.statementsMatching(void 0,r.A.rdfs("subClassOf"),void 0).forEach(function(t){t.object.value&&(e[t.object.value]=!0),t.subject.value&&(e[t.subject.value]=!0)}),u.store.each(void 0,r.A.rdf("type"),r.A.rdfs("Class")).forEach(function(t){t.value&&(e[t.value]=!0)}),e}function Q(e){var t={},n={},a={},i=0,o=0,s=0,l=e.predicateIndex;for(var u in l){"Literal"===l[u][0].object.termType?(n[u]=!0,o++):(a[u]=!0,i++)}for(var p=e.each(void 0,r.A.rdf("type"),r.A.rdf("Property")),d=0;d<p.length;d++){var m=p[d].toNT();a[m]||n[m]||(n[m]=!0,a[m]=!0,s++)}return t.op=a,t.dp=n,(0,c.info)("propertyTriage: ".concat(i," non-lit, ").concat(o," literal. ").concat(s," unknown.")),t}function K(e,t){var n=e.createElement("button");return n.setAttribute("type","button"),n.textContent="Goto "+d.P(t),n.addEventListener("click",function(n){e.outlineManager.GotoSubject(t,!0,void 0,!0,void 0)},!0),n}function Y(e,t){var n=e.createElement("button");return n.setAttribute("type","button"),n.textContent="✕",n.addEventListener("click",function(e){t.parentNode.removeChild(t)},!0),n}function X(e,t,n,a,i,r,o,s,c){return ee(e.createElement("div"),e,t,n,a,i,r,o,s,c)}function ee(e,t,n,a,i,r,o,s,c,l){var u="border: 0.1em solid #ddd; border-bottom: none; width: 95%; height: 2em; padding: 0.5em;",p=null;e.innerHTML="";for(var d=function(e,o){var d,m,f=function(){var e=r?n.each(void 0,i,o):n.each(o,i);g.setAttribute("class",0===e.length?"hideTillHover":""),m.setAttribute("src",s.connectIcon||v+"noun_25830.svg"),m.setAttribute("title",e.length?e.length:"attach")},h=te.twoLine.widgetForClass(a);(d=h(t,o)).setAttribute("style",u);var x=t.createElement("div");x.setAttribute("class","hideTillHover"),x.setAttribute("style","float:right; width:10%");var b=t.createElement("a");b.setAttribute("href",o.uri),b.setAttribute("style","float:right"),x.appendChild(b).textContent=">",e.appendChild(x);var g=t.createElement("div");return g.setAttribute("style",(r?"float:left;":"float:right;")+" width:30px;"),m=t.createElement("img"),f(),g.appendChild(m),e.appendChild(g),d.addEventListener("click",function(e){p===d?(d.setAttribute("style",u),p=null):(p&&p.setAttribute("style",u),d.setAttribute("style",u+"background-color: #ccc; color:black;"),p=d),c(o,e,p===d),f()},!1),m.addEventListener("click",function(e){l(o,e,r,f)},!1),e.appendChild(d),e},m=0;m<o.length;m++){var f=t.createElement("div");e.appendChild(f),d(f,o[m])}return e}var te={};function ne(e,t){for(var n=e.querySelectorAll("link"),a=0;a<n.length;a++)if("stylesheet"===(n[a].getAttribute("rel")||"")&&(n[a].getAttribute("href")||"")===t)return;var i=e.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("type","text/css"),i.setAttribute("href",t),e.getElementsByTagName("head")[0].appendChild(i)}function ae(e){return re(e,"audio")}function ie(e){return re(e,"video")}function re(e,t){var n=t||"image",i=u.store.findTypeURIs(e),r=a.Util.mediaTypeClass(n+"/*").uri.split("*")[0];for(var o in i)if(o.startsWith(r))return!0;return{audio:"http://purl.org/dc/dcmitype/Sound",image:"http://purl.org/dc/dcmitype/Image",video:"http://purl.org/dc/dcmitype/MovingImage"}[n]in i}function oe(e,t){var n=e.createElement("div"),a=n.appendChild(e.createElement("input"));a.setAttribute("type","file"),a.setAttribute("multiple","true"),a.addEventListener("change",function(e){s.Rm("File drop event: ",e),e.files?t(e.files):e.target&&e.target.files?t(e.target.files):alert("Sorry no files .. internal error?")},!1),a.style="display:none";var i=n.appendChild(F(e,v+"noun_Upload_76574_000000.svg","Upload files",function(e){a.click()}));return(0,l.DK)(i,null,t),n}te={line:{},twoLine:{"":function(e,t){var n=e.createElement("div");return n.textContent=d.P(t),n},"http://www.w3.org/2000/10/swap/pim/qif#Transaction":function(e,t){var n="",a=function(e){var a=u.store.any(t,r.A.qu(e));return a||(n+="@@ No value for "+e+"! "),a?p.escapeForXML(a.value):"?"},i=e.createElement("table");return i.innerHTML='\n <tr>\n <td colspan="2"> '.concat(a("payee"),"</td>\n < /tr>\n < tr >\n <td>").concat(a("date").slice(0,10),'</td>\n <td style = "text-align: right;">').concat(a("amount"),"</td>\n </tr>"),n&&(i.innerHTML='\n <tr>\n <td><a href="'.concat(p.escapeForXML(t.uri),'">').concat(p.escapeForXML(n),"</a></td>\n </tr>")),i},"http://www.w3.org/ns/pim/trip#Trip":function(e,t){var n=function(e){var n=u.store.any(t,e);return n?p.escapeForXML(n.value):"?"},a=e.createElement("table");return a.innerHTML='\n <tr>\n <td colspan="2">'.concat(n(r.A.dc("title")),'</td>\n </tr>\n <tr style="color: #777">\n <td>').concat(n(r.A.cal("dtstart")),"</td>\n <td>").concat(n(r.A.cal("dtend")),"</td>\n </tr>"),a},widgetForClass:function(e){var t=te.twoLine[e.uri],n=u.store;if(t)return t;var a=n.findSuperClassesNT(e);for(var i in a)if(t=te.twoLine[n.fromNT(i).uri])return t;return te.twoLine[""]}}}},9326(e,t,n){n.d(t,{O:()=>r,w:()=>i});var a=n(3378);function i(e,t,n){var i=e.createElement("a");i.setAttribute("href",t.uri),t.uri.startsWith("http")&&i.setAttribute("target","_blank");var r=i.appendChild(e.createElement("img"));return r.setAttribute("src",n||a.i1+"go-to-this.png"),r.setAttribute("style","margin: 0.3em;"),i}var r=function(e,t,n){var a=i(e,n);t.appendChild(a).classList.add("HoverControlHide"),t.appendChild(e.createElement("br"))}},386(e,t,n){n.d(t,{DK:()=>o,Zn:()=>c,eB:()=>s});var a=n(7423),i=n(6049),r=n(675);function o(e,t,n){var i=function(e){e.preventDefault(),e.dataTransfer.dropEffect="copy"},o=function(e){a.Rm("dragenter event dropEffect: "+e.dataTransfer.dropEffect),this.localStyle&&(this.savedStyle||(this.savedStyle=r.i.dragEvent)),e.dataTransfer.dropEffect="link",a.Rm("dragenter event dropEffect 2: "+e.dataTransfer.dropEffect)},s=function(e){a.Rm("dragleave event dropEffect: "+e.dataTransfer.dropEffect),this.savedStyle?this.localStyle=this.savedStyle:this.localStyle=r.i.dropEvent},c=function(e){e.preventDefault&&e.preventDefault(),a.Rm("Drop event. dropEffect: "+e.dataTransfer.dropEffect),a.Rm("Drop event. types: "+(e.dataTransfer.types?e.dataTransfer.types.join(", "):"NOPE"));var i,o=null;if(e.dataTransfer.types){for(var s=0;s<e.dataTransfer.types.length;s++){var c=e.dataTransfer.types[s];if("text/uri-list"===c)o=e.dataTransfer.getData(c).split("\n"),a.Rm("Dropped text/uri-list: "+o);else if("text/plain"===c)i=e.dataTransfer.getData(c);else if("Files"===c&&n){for(var l=e.dataTransfer.files,u=0;l[u];u++){var p=l[u];a.Rm("Filename: "+p.name+", type: "+(p.type||"n/a")+" size: "+p.size+" bytes, last modified: "+(p.lastModifiedDate?p.lastModifiedDate.toLocaleDateString():"n/a"))}n(l)}}null===o&&i&&"http"===i.slice(0,4)&&(o=i,a.Rm("Waring: Poor man's drop: using text for URI"))}else o=[e.dataTransfer.getData("Text")],a.Rm("WARNING non-standard drop event: "+o[0]);return a.Rm("Dropped URI list (2): "+o),o&&t(o),this.localStyle=r.i.restoreStyle,!1};!function(e){e||a.Rm("@@@ addTargetListeners: ele "+e),e.addEventListener("dragover",i),e.addEventListener("dragenter",o),e.addEventListener("dragleave",s),e.addEventListener("drop",c)}(e)}function s(e,t){e.setAttribute("draggable","true"),e.addEventListener("dragstart",function(n){e.style.fontWeight="bold",n.dataTransfer.setData("text/uri-list",t.uri),n.dataTransfer.setData("text/plain",t.uri),n.dataTransfer.setData("text/html",e.outerHTML),a.Rm("Dragstart: "+e+" -> "+t+"de: "+n.dataTransfer.dropEffect)},!1),e.addEventListener("drag",function(e){e.preventDefault(),e.stopPropagation()},!1),e.addEventListener("dragend",function(n){e.style.fontWeight="normal",a.Rm("Dragend dropeffect: "+n.dataTransfer.dropEffect),a.Rm("Dragend: "+e+" -> "+t)},!1)}function c(e,t,n,r,o){for(var s=0;t[s];s++){var c=t[s];a.Rm(" dropped: Filename: "+c.name+", type: "+(c.type||"n/a")+" size: "+c.size+" bytes, last modified: "+(c.lastModifiedDate?c.lastModifiedDate.toLocaleDateString():"n/a"));var l=new FileReader;l.onload=function(t){return function(s){var c=s.target.result,l="";a.Rm(" File read byteLength : "+c.byteLength);var u=t.type;if(t.type&&""!==t.type){var p=i.extension(t.type);p&&"false"!==p&&!t.name.endsWith("."+p)&&t.type!==i.lookup(t.name)&&(l="_."+p)}else if(!(u=i.lookup(t.name))){var d="Filename needs to have an extension which gives a type we know: "+t.name;throw a.Rm(d),alert(d),new Error(d)}var m=t.type.startsWith("image/")&&r||n,f=m+(m.endsWith("/")?"":"/")+encodeURIComponent(t.name)+l;e.webOperation("PUT",f,{data:c,contentType:u}).then(function(e){a.Rm(" Upload: put OK: "+f),o(t,f)},function(e){var t=" Upload: FAIL "+f+", Error: "+e;throw a.Rm(t),alert(t),new Error(t)})}}(c),l.readAsArrayBuffer(c)}}},3468(e,t,n){n.d(t,{F:()=>o});var a=n(3291),i=n(675),r=n(4762);function o(e,t,n,o){var s=e.createElement("div"),c=o||t instanceof Error?t:null;return c?(console.error("errorMessageBlock: ".concat(c," at: ").concat(c.stack||"??"),c),s.textContent=c.message):s.textContent=t,s.appendChild((0,a.x7)(e,function(){s.parentNode&&s.parentNode.removeChild(s)})).style=i.i.errorCancelButton,s.setAttribute("style",i.i.errorMessageBlockStyle),s.style.backgroundColor=n||r.A.defaultErrorBackgroundColor,s}},1763(e,t,n){n.d(t,{Dk:()=>I,K:()=>c.K,L1:()=>H,LC:()=>M,LX:()=>Z,Nr:()=>d.Nr,Nt:()=>L,PM:()=>d.PM,Ru:()=>B,WG:()=>d.WG,WY:()=>V,ZA:()=>N,ZZ:()=>c.ZZ,bk:()=>d.bk,e2:()=>D,eR:()=>U,eb:()=>F,f6:()=>R,iU:()=>z,rg:()=>c.rg,s2:()=>q,tE:()=>O,tk:()=>s.t,vx:()=>P,xV:()=>G});var a=n(467),i=n(4756),r=n.n(i),o=n(3291),s=n(588),c=n(9086),l=n(7673),u=n(7423),p=n(3468),d=n(6564),m=n(8251),f=n(675),h=n(4762),v=n(3378),x=n(4158),b=n(1795),g=n(4961),y=n(3138),w=n(52),A=n(9612),k=n(4101);function C(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return E(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,i=function(){};return{s:i,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw r}}}}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var _=y.store;function T(e,t,n,a,i,r,o){for(var s=r.children,l=0;l<o.length;l++){var p=o[l];if((0,c.K)(p)===b.A.ui("Options").uri){var d=(0,c.rg)(e,p)(e,null,t,n,p,a,i);u.Rm("Refreshing Options field by replacing it."),r.insertBefore(d,s[l]),r.removeChild(s[l+1])}}}function j(e,t,n,a,i,r,o,s){var c=b.A.ui,l=y.store,u=l.any(i,c("property"));if(!u){var m=(0,p.F)(e,"No property to boolean field: "+i);return t&&t.appendChild(m),m}var f=l.any(i,c("label"));f||(f=A.P(u,!0)),r=(0,d.WG)(a,u,r);var h=l.any(a,u);void 0===h&&(h=!1);var v=g.st(a,u,!0,r),x=V(e,l,f,g.st(a,u,!1,r),v,i,r,s);return t&&t.appendChild(x),x}function S(e,t,n,a,i,r,o){(0,c.rg)(e,i)(e,t,n,a,i,r,o)}function L(e,t,n,a,i){var r=e.createElement("button");return r.setAttribute("type","button"),r.innerHTML="Edit "+A.P(b.A.ui("Form")),r.addEventListener("click",function(o){R(e,t,{},n,b.A.ui("FormForm"),a,i).setAttribute("style",b.A.ui("FormForm").sameTerm(n)?"background-color: #fee;":"background-color: #ffffe7;"),r.parentNode.removeChild(r)},!0),r}function R(e,t,n,a,i,r,o){return(0,c.rg)(e,i)(e,t,n,a,i,r,o)}function N(e,t){var n=e.each(void 0,b.A.rdf("range"),t);[b.A.rdfs("comment"),b.A.dc("title"),b.A.foaf("name"),b.A.foaf("homepage")].forEach(function(e){n.push(e)});var a=e.each(void 0,b.A.rdf("type"),t);a.length>60&&(a=a.slice(0,60));for(var i={},r=0;r<(a.length>60?60:a.length);r++)e.statementsMatching(a[r],void 0,void 0).forEach(function(e){i[e.predicate.uri]=!0});n.forEach(function(e){i[e.uri]=!0});var o=[];for(var s in i)o.push(e.sym(s));return o}function B(e,t,n){for(var a=[e.sym(t)];a.length>0;){var i=a.shift(),r=e.each(i,n);if(x.debug("Lists for "+i+", "+n+": "+r.length),0!==r.length)return r;for(var o=e.each(i,b.A.rdfs("subClassOf")),s=0;s<o.length;s++)a.push(o[s]),x.debug("findClosest: add super: "+o[s])}return[]}function I(e){var t=y.store;x.debug("formsFor: subject="+e);var n,a=t.findTypeURIs(e);for(n in a)x.debug(" type: "+n);var i=t.bottomTypeURIs(a),r=[];for(var o in i)x.debug("candidatesFor: trying bottom type ="+o),r=(r=r.concat(B(t,o,b.A.ui("creationForm")))).concat(B(t,o,b.A.ui("annotationForm")));return r}function O(e){var t=e.map(function(e){return[_.any(e,b.A.ui("sequence"))||9999,e]});return t.sort(function(e,t){return e[0]-t[0]}),t.map(function(e){return e[1]})}function F(e){var t=e.map(function(e){return[A.P(e).toLowerCase(),e]});return t.sort(),t.map(function(e){return e[1]})}function P(e,t,n,a,i,r,o,s){var c=e.createElement("button");return c.setAttribute("type","button"),c.innerHTML="New "+A.P(i),c.addEventListener("click",function(l){c.parentNode.appendChild(D(e,t,n,a,i,r,o,s))},!1),c}function D(e,t,n,a,i,r,s,l){var u=e.createElement("form");if(!r){var p=B(t,i.uri,b.A.ui("creationForm"));if(0===p.length){u.appendChild(e.createElement("p")).textContent="I am sorry, you need to provide information about a "+A.P(i)+" but I don't know enough information about those to ask you.";var d=u.appendChild(e.createElement("button"));return d.setAttribute("type","button"),d.setAttribute("style","float: right;"),d.innerHTML="Goto "+A.P(i),d.addEventListener("click",function(t){e.outlineManager.GotoSubject(i,!0,void 0,!0,void 0)},!1),u}x.debug("lists[0] is "+p[0]),r=p[0]}x.debug("form is "+r),u.setAttribute("style","border: 0.05em solid ".concat(h.A.formBorderColor,"; color: ").concat(h.A.formBorderColor)),u.innerHTML="<h3>New "+A.P(i)+"</h3>";var m=(0,c.rg)(e,r),f=G(s),v=!1;function y(e,t,n){return l(t,n)}x.info("paneUtils Object is "+f);var w=m(e,u,{},f,r,s,function(r,c){if(!r)return l(r,c);var p=[];n&&!t.holds(n,a,f,s)&&p.push(g.st(n,a,f,s)),n&&!t.holds(f,b.A.rdf("type"),i,s)&&p.push(g.st(f,b.A.rdf("type"),i,s)),p.length?t.updater.update([],p,y):l(!0,c),v||(v=u.appendChild(o.$J(e,f)))});return o.DT(e,w).setAttribute("style","float: right;"),u.AJAR_subject=f,u}function U(e,t,n,a,i,r){var s,c=e.createElement("div"),l=t.anyJS(n,a,null,i)||"",u=e.createElement("textarea");function d(o){s.disabled=!0,s.setAttribute("style","visibility: hidden; float: right;"),u.disabled=!0,u.style.color=h.A.textInputColorPending;var l=t.statementsMatching(n,a,null,i),d=g.st(n,a,u.value,i);t.updater.update(l,d,function(t,n,a){n?(u.style.color=h.A.textInputColor,u.disabled=!1):c.appendChild((0,p.F)(e,"Error (while saving change to "+i.uri+"): "+a)),r&&r(n,a)})}return c.appendChild(u),u.rows=l?l.split("\n").length+2:2,u.cols=80,u.setAttribute("style",f.i.multilineTextInputStyle),null!==l?u.value=l:u.select(),c.refresh=function(){var e=t.any(n,a,null,i);e&&e.value!==u.value&&(u.value=e.value)},t.updater.editable(i.uri)?((s=o.kz(e,d)).disabled=!0,s.style.visibility="hidden",s.style.float="right",c.appendChild(s),u.addEventListener("keyup",function(e){u.style.color="green",s&&(s.disabled=!1,s.style.visibility="")},!0),u.addEventListener("change",d,!0)):(u.disabled=!0,u.style.backgroundColor=h.A.textInputBackgroundColorUneditable),c}function M(e,t,n,a,i,r,o,s){x.debug("Select list length now "+i.length);for(var l,d=0,m={},h=t.updater.editable(o.uri),v=0;v<i.length;v++){var y=i[v];y.uri||u.R8("makeSelectForClassifierOptions: option does not have an uri: ".concat(y,", with predicate: ").concat(a)),y.uri&&!(y.uri in m)&&(m[y.uri]=!0,d++)}if(0===d&&!r.mint)return(0,p.F)(e,"Can't do selector with no options, subject= "+n+" property = "+a+".");x.debug("makeSelectForClassifierOptions: dataDoc="+o);var k=function(){return l={},a.sameTerm(b.A.rdf("type"))?l=t.findTypeURIs(n):t.each(n,a,null,o).forEach(function(e){l[e.uri]=!0}),l};l=k();var C=e.createElement("select");for(var E in C.setAttribute("style",f.i.formSelectStyle),r.multiple&&C.setAttribute("multiple","true"),C.currentURI=null,C.refresh=function(){l=k();for(var e=0;e<C.children.length;e++){var t=C.children[e];t.AJAR_uri&&(t.selected=t.AJAR_uri in l)}C.disabled=!1},m){var _=t.sym(E),T=e.createElement("option");r.disambiguate?T.appendChild(e.createTextNode(w.labelWithOntology(_,!0))):T.appendChild(e.createTextNode(A.P(_,!0)));var j=t.any(_,t.sym("http://www.w3.org/ns/ui#backgroundColor"));j&&T.setAttribute("style","background-color: "+j.value+"; "),T.AJAR_uri=E,E in l&&(T.setAttribute("selected","true"),C.currentURI=E),C.appendChild(T)}if(h&&r.mint){var S=e.createElement("option");S.appendChild(e.createTextNode(r.mint)),S.AJAR_mint=!0,C.insertBefore(S,C.firstChild)}if(null==C.currentURI&&!r.multiple){var L=e.createElement("option");L.appendChild(e.createTextNode(r.nullLabel)),C.insertBefore(L,C.firstChild),L.selected=!0}return h&&C.addEventListener("change",function(i){C.disabled=!0;for(var u,d=[],m=[],f=function(e){t.holds(n,a,e,o)&&d.push(g.st(n,a,e,o))},h=0;h<C.options.length;h++){var v=C.options[h];if(v.selected&&v.AJAR_mint){if(r.mintClass){var b=D(e,t,n,a,r.mintClass,null,o,function(e,t){e||s(e,t,{change:"new"})});C.parentNode.appendChild(b),u=b.AJAR_subject}else u=G(o);m.push(g.st(n,a,u,o)),r.mintStatementsFun&&(m=m.concat(r.mintStatementsFun(u)))}v.AJAR_uri&&(v.selected&&!(v.AJAR_uri in l)&&m.push(g.st(n,a,t.sym(v.AJAR_uri),o)),!v.selected&&v.AJAR_uri in l&&f(t.sym(v.AJAR_uri)),v.selected&&(C.currentURI=v.AJAR_uri))}for(var y=C.subSelect;y&&y.currentURI;)f(t.sym(y.currentURI)),y=y.subSelect;for(y=C.superSelect;y&&y.currentURI;)f(t.sym(y.currentURI)),y=y.superSelect;function w(e,t){s(e,{widget:"select",event:"new"})}x.info("makeSelectForClassifierOptions: data doc = "+o),t.updater.update(d,m,function(t,n,a){if(l=k(),!n)return C.parentNode.appendChild((0,p.F)(e,"Error updating data in select: "+a));C.disabled=!1,u&&(0,c.rg)(e,r.subForm)(e,C.parentNode,{},u,r.subForm,o,w),s&&s(n,{widget:"select",event:"change"})})},!1),C}function z(e,t,n,a,i,r,o,s){x.debug("Select list length now "+i.length);for(var c,l=0,d={},m=t.updater.editable(o.uri),h=0;h<i.length;h++){var v=i[h];v.uri||u.R8("makeSelectForOptions: option does not have an uri: ".concat(v,", with predicate: ").concat(a)),v.uri&&!(v.uri in d)&&(d[v.uri]=!0,l++)}if(0===l)return(0,p.F)(e,"Can't do selector with no options, subject= "+n+" property = "+a+".");x.debug("makeSelectForOptions: dataDoc="+o);var y=function(){return c={},a.sameTerm(b.A.rdf("type"))?c=t.findTypeURIs(n):t.each(n,a,null,o).forEach(function(e){e.uri&&(c[e.uri]=!0)}),c};c=y();var k=e.createElement("select");for(var C in k.setAttribute("style",f.i.formSelectStyle),k.currentURI=null,k.refresh=function(){c=y();for(var e=0;e<k.children.length;e++){var t=k.children[e];t.AJAR_uri&&(t.selected=t.AJAR_uri in c)}k.disabled=!1},d){var E=t.sym(C),_=e.createElement("option");r.disambiguate?_.appendChild(e.createTextNode(w.labelWithOntology(E,!0))):_.appendChild(e.createTextNode(A.P(E,!0)));var T=t.any(E,t.sym("http://www.w3.org/ns/ui#backgroundColor"));T&&_.setAttribute("style","background-color: "+T.value+"; "),_.AJAR_uri=C,C in c&&(_.setAttribute("selected","true"),k.currentURI=C),k.appendChild(_)}if(!k.currentURI){var j=e.createElement("option");j.appendChild(e.createTextNode(r.nullLabel)),k.insertBefore(j,k.firstChild),j.selected=!0}return m&&k.addEventListener("change",function(i){k.disabled=!0;for(var r=[],l=[],u=function(e){t.holds(n,a,e,o)&&r.push(g.st(n,a,e,o))},d=0;d<k.options.length;d++){var m=k.options[d];m.AJAR_uri&&(m.selected&&!(m.AJAR_uri in c)&&l.push(g.st(n,a,t.sym(m.AJAR_uri),o)),!m.selected&&m.AJAR_uri in c&&u(t.sym(m.AJAR_uri)),m.selected&&(k.currentURI=m.AJAR_uri))}for(var f=k.subSelect;f&&f.currentURI;)u(t.sym(f.currentURI)),f=f.subSelect;for(f=k.superSelect;f&&f.currentURI;)u(t.sym(f.currentURI)),f=f.superSelect;x.info("selectForOptions: data doc = "+o),t.updater.update(r,l,function(t,n,a){if(c=y(),!n)return k.parentNode.appendChild((0,p.F)(e,"Error updating data in select: "+a));k.disabled=!1,s&&s(n,{widget:"select",event:"change"})})},!1),k}function q(e,t,n,a,i,r){var o,s=t.any(a,b.A.owl("disjointUnionOf")),c=!1;return s?o=s.elements:(o=t.each(void 0,b.A.rdfs("subClassOf"),a),c=!0),x.debug("Select list length "+o.length),0===o.length?(0,p.F)(e,"Can't do "+(c?"multiple ":"")+"selector with no subclasses of category: "+a):1===o.length?(0,p.F)(e,"Can't do "+(c?"multiple ":"")+"selector with only 1 subclass of category: "+a+":"+o[1]):M(e,t,n,b.A.rdf("type"),o,{multiple:c,nullLabel:"* Select type *"},i,r)}function H(e,t,n,a,i,r){function o(){c&&(s.removeChild(c),c=null),l.currentURI&&t.any(t.sym(l.currentURI),b.A.owl("disjointUnionOf"))&&(c=H(e,t,n,t.sym(l.currentURI),i,r),l.subSelect=c.firstChild,l.subSelect.superSelect=l,s.appendChild(c))}var s=e.createElement("span"),c=null;var l=q(e,t,n,a,i,function(e,t){e&&o(),r(e,t)});return s.appendChild(l),o(),s}function V(e,t,n,a,i,r,o,s){var c=e.createElement("div"),l=(0,d.Nr)(e,t,c,r,n),m=t.updater.editable(o.uri),h=e.createElement("button"),v=h;function x(e){if(!e)return[];if(e.object)return e.why||(e.why=o),[e];if(e instanceof Array)return e;throw new Error("buildCheckboxForm: bad param "+e)}function g(e){return 0===e.filter(function(e){return!t.holds(e.subject,e.predicate,e.object,e.why)}).length}if(h.style=f.i.checkboxInputStyle,l.appendChild(h),i=x(i),a=x(a),function(){var n=g(i),o=n;if(a.length){var l=g(a);if(n&&l)return c.appendChild(p.F(e,"Inconsistent data in dataDoc!\n"+i+" and\n"+a)),c;if(!n&&!l){n=null;var u=t.any(r,b.A.ui("default"));o=u?"1"===u.value:!!s&&null}}h.state=n,h.textContent={true:"✓",false:s?"✕":" ",null:"-"}[o]}(),!m)return c;return h.addEventListener("click",function(n){v.style.color="#bbb";var r=!0===h.state?i:!1===h.state?a:[];h.newState=null===h.state||!0!==h.state&&(!s||null);var o=!0===h.newState?i:!1===h.newState?a:[];u.Rm(" Deleting ".concat(r)),u.Rm(" Inserting ".concat(o)),t.updater.update(r,o,function(n,a,i){if(a)v.style.color="#000",h.state=h.newState,h.textContent={true:"✓",false:"✕",null:"-"}[h.state];else{if(r.why)t.holds(r.subject,r.predicate,r.object,r.why)&&u.Rm(" @@@@@ weird if 409 - does hold statement");v.style.color="#000",v.style.backgroundColor="#fee",c.appendChild((0,p.F)(e,"Checkbox: Error updating dataDoc from ".concat(h.state," to ").concat(h.newState,":\n\n").concat(i)))}})},!1),c}function G(e){var t=new Date;return g.sym(e.uri+"#id"+t.getTime())}function Z(e,t,n,a,i,r,o,s,c,l,u){for(var d={},m=n.updater.editable(l.uri),h=0;h<r.length;h++){var v=r[h];v.uri&&!(v.uri in d)&&(d[v.uri]=!0)}if(0===Object.keys(d).length&&!c.mint)return(0,p.F)(e,"Can't do selector with no options, subject= "+a+" property = "+i+".");x.debug("makeSelectForChoice: dataDoc="+l);var y,k,E=e.createElement("select");for(var _ in E.setAttribute("style",f.i.formSelectStyle),E.setAttribute("id","formSelect"),E.currentURI=null,d)E.appendChild(j(_));if(m&&c.mint){var T=e.createElement("option");T.appendChild(e.createTextNode(c.mint)),T.AJAR_mint=!0,E.insertBefore(T,E.firstChild)}function j(t){var a,i=e.createElement("option"),r=n.sym(t);a=c.disambiguate?w.labelWithOntology(r,!0):A.P(r,!0),i.appendChild(e.createTextNode(a)),i.setAttribute("value",t);var s=n.any(r,n.sym("http://www.w3.org/ns/ui#backgroundColor"));return s&&i.setAttribute("style","background-color: "+s.value+"; "),i.AJAR_uri=t,W(r.value,o)&&i.setAttribute("selected","true"),i}return 0===E.children.length&&E.insertBefore(((k=e.createElement("option")).appendChild(e.createTextNode((y="--- choice ---",i&&"BlankNode"!==i.termType&&(y="* Select for property: "+A.P(i)+" *"),a&&"BlankNode"!==a.termType&&(y="* Select for "+A.P(a,!0)+" *"),y))),k.disabled=!0,k.value=!0,k.hidden=!0,k.selected=!0,k),E.firstChild),E.update=function(t){o=t;var r,c=[],d=[],m=function(e){n.holds(a,i,e,l)&&c.push(g.st(a,i,e,l))},f=function(e){n.holds(a,i,e,l)||d.push(g.st(a,i,e,l)),s&&!n.holds(e,b.A.rdf("type"),n.sym(s),l)&&d.push(g.st(e,b.A.rdf("type"),n.sym(s),l))},h=n.each(a,i,null,l).map(function(e){return e.value}),v=C(h);try{for(v.s();!(r=v.n()).done;){var x=r.value;W(x,o)||m(g.sym(x))}}catch(e){v.e(e)}finally{v.f()}var y,w=C(o);try{for(w.s();!(y=w.n()).done;){var A=y.value;A in h||f(g.sym(A))}}catch(e){w.e(e)}finally{w.f()}n.updater.update(c,d,function(t,n,a){if(!n)return E.parentNode.appendChild((0,p.F)(e,"Error updating data in select: "+a));E.refresh(),u&&u(n,{widget:"select",event:"change"})})},E.refresh=function(){E.disabled=!0;for(var r,d=[],m=0;m<E.options.length;m++){var f=E.options[m];if(f.selected&&f.AJAR_mint){if(c.mintClass){var h=D(e,n,a,i,s,c.subForm,l,function(e,t){e||u(e,t,{change:"new"})});E.parentNode.appendChild(h),r=h.AJAR_subject}else r=G(l);d.push(g.st(a,i,n.sym(r),l)),s&&d.push(g.st(r,b.A.rdf("type"),n.sym(s),l)),c.mintStatementsFun&&(d=d.concat(c.mintStatementsFun(r))),E.currentURI=r}f.AJAR_uri&&(f.selected&&W(f.AJAR_uri,o)&&(E.currentURI=f.AJAR_uri),W(f.AJAR_uri,o)||f.removeAttribute("selected"),W(f.AJAR_uri,o)&&f.setAttribute("selected","true"))}x.info("selectForOptions: data doc = "+l),E.currentURI&&c.subForm&&!c.multiSelect&&S(e,t,{},g.sym(E.currentURI),c.subForm,l,function(a,i){a?(n.updater.update([],d,function(n,a,i){a||t.appendChild((0,p.F)(e,"Error updating select: "+i))}),u&&u(a,{widget:"select",event:"new"})):t.appendChild((0,p.F)(e,"Error updating data in field of select: "+i))}),E.disabled=!1},m&&E.addEventListener("change",function(e){t.removeChild(t.lastChild),E.refresh()},!1),E}function W(e,t){var n;for(n=0;n<t.length;n++)if(t[n]===e)return!0;return!1}c.ZZ[b.A.ui("AutocompleteField").uri]=m.l,c.ZZ[b.A.ui("Form").uri]=c.ZZ[b.A.ui("Group").uri]=function(e,t,n,a,i,r,o){var s=e.createElement("div"),l=b.A.ui;if(t&&t.appendChild(s),i){var u=a.toNT()+"|"+i.toNT();if(n[u])return s.appendChild(e.createTextNode("Group: see above "+u)),s;var d={};for(var m in n)d[m]=1;d[u]=1;var h=i.doc?i.doc():null,v=_.any(i,l("weight"),null,h),x=v?Number(v.value):1;if(x>3||x<0)return s.appendChild((0,p.F)(e,"Form Group weight ".concat(x," should be 0-3")));s.setAttribute("style",f.i.formGroupStyle[x]),s.style.display="flex",s.style.flexDirection="column",s.class="form-weight-"+x;var g,y=_.any(i,l("parts"),null,h);if(y?g=y.elements:(y=_.each(i,l("part"),null,h),g=O(y)),!y)return s.appendChild((0,p.F)(e,"No parts to form! "));for(var w=0;w<g.length;w++){var A=g[w],k=(0,c.rg)(e,A),C=function(t,i){t&&i&&i.widget&&"select"===i.widget&&T(e,n,a,r,o,s,g),o(t,{widget:"group",change:i})};s.appendChild(k(e,null,d,a,A,r,C))}return s}},c.ZZ[b.A.ui("Options").uri]=function(e,t,n,a,i,r,o){var s=y.store,c=e.createElement("div"),l=i.doc?i.doc():null,u=b.A.ui;t&&t.appendChild(c);var d=s.any(i,u("dependingOn"));d||(d=b.A.rdf("type"));var m,f=s.each(i,u("case"),null,l);f||c.appendChild((0,p.F)(e,"No cases to Options form. ")),m=d.sameTerm(b.A.rdf("type"))?Object.keys(s.findTypeURIs(a)).map(function(e){return g.sym(e)}):s.each(a,d);for(var h=0;h<f.length;h++){for(var v=f[h],x=s.each(v,u("for"),null,l),w=!1,A=0;A<x.length;A++){var k,E=C(m);try{for(E.s();!(k=E.n()).done;){var _=k.value,T=x[A];(_.sameTerm(x)||_.termType===T.termType&&_.value===T.value)&&(w=!0)}}catch(e){E.e(e)}finally{E.f()}}if(w){var j=s.the(v,u("use"));if(!j)return c.appendChild((0,p.F)(e,'No "use" part for case in form '+i)),c;R(e,c,n,a,j,r,o);break}}return c},c.ZZ[b.A.ui("Multiple").uri]=function(e,t,n,i,s,l,d){function m(e){return e.map(function(e){return e.toString().slice(-7)}).join(", ")}function f(){return h.apply(this,arguments)}function h(){return(h=(0,a.A)(r().mark(function t(){var n,a,o,s;return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=G(l),!R){t.next=2;break}return H(),P.elements.push(n),t.next=1,V();case 1:t.next=7;break;case 2:return a=B?[g.st(n,N,i,l)]:[g.st(i,N,n,l)],t.prev=3,t.next=4,E.updater.update([],a);case 4:t.next=6;break;case 5:t.prev=5,s=t.catch(3),o="Error adding to unordered multiple: "+s,T.appendChild((0,p.F)(e,o)),u.z3(o);case 6:W();case 7:case"end":return t.stop()}},t,null,[[3,5]])}))).apply(this,arguments)}function k(t){function s(){return(s=(0,a.A)(r().mark(function n(){var a,o;return r().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(!R){n.next=5;break}u.Rm("pre delete: "+m(P.elements)),a=0;case 1:if(!(a<P.elements.length)){n.next=4;break}if(!P.elements[a].sameTerm(t)){n.next=3;break}return P.elements.splice(a,1),n.next=2,V();case 2:return n.abrupt("return");case 3:a++,n.next=1;break;case 4:n.next=6;break;case 5:E.holds(i,N,t,l)&&(o=[g.st(i,N,t,l)],E.updater.update(o,[],function(t,n,a){n?U.removeChild(b):U.appendChild((0,p.F)(e,"Multiple: delete failed: "+a))}));case 6:case"end":return n.stop()}},n)}))).apply(this,arguments)}function f(e,t){return h.apply(this,arguments)}function h(){return(h=(0,a.A)(r().mark(function e(n,a){var i;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:u.Rm("pre move: "+m(P.elements)),i=0;case 1:if(!(i<P.elements.length)){e.next=3;break}if(!P.elements[i].sameTerm(t)){e.next=2;break}return e.abrupt("continue",3);case 2:i++,e.next=1;break;case 3:if(i===P.elements.length&&alert("list move: not found element for "+t),!a){e.next=5;break}if(0!==i){e.next=4;break}return alert("@@ boop - already at top -temp message"),e.abrupt("return");case 4:P.elements.splice(i-1,2,P.elements[i],P.elements[i-1]),e.next=7;break;case 5:if(i!==P.elements.length-1){e.next=6;break}return alert("@@ boop - already at bottom -temp message"),e.abrupt("return");case 6:P.elements.splice(i,2,P.elements[i+1],P.elements[i]);case 7:return e.next=8,V();case 8:case"end":return e.stop()}},e)}))).apply(this,arguments)}x.debug("Multiple: render object: "+t);var b=(0,c.rg)(e,F)(e,null,n,t,F,l,function(e,n){u.Rm("Item done callback for item ".concat(t.toString())),e||u.z3(" Item done callback: Error: "+n),d(e,n)});if(b.subject=t,E.updater.editable(l.uri)&&(o.Qy(e,b,I,function(){return s.apply(this,arguments)}),R)){var y=e.createElement("div");y.style.display="grid",y.style.gridTemplateColumns="auto 3em",y.style.gridTemplateRows="50% 50%";var w=o.x6(e,v.Pt.iconBase+"noun_1369237.svg","Move Up",function(){var e=(0,a.A)(r().mark(function e(t){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",f(t,!0));case 1:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()),A=o.x6(e,v.Pt.iconBase+"noun_1369241.svg","Move Down",function(){var e=(0,a.A)(r().mark(function e(t){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",f(t,!1));case 1:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()),k=e.createElement("div");return k.appendChild(b),y.appendChild(k),y.appendChild(w),y.appendChild(A),w.style.gridColumn=2,A.style.gridColumn=2,w.style.gridRow=1,A.style.padding="0em",w.style.padding="0em",A.style.gridRow=2,k.style.gridColumn=1,k.style.gridRowStart="span 2",y}return b}var C=v.Pt.iconBase+"noun_19460_green.svg",E=y.store,_=s.doc?s.doc():null,T=e.createElement("div"),j=T,S=b.A.ui;t&&t.appendChild(T);var L=E.any(s,S("ordered")),R=!!L&&g.Node.toJS(L),N=E.any(s,S("property")),B=E.anyJS(s,S("reverse"),null,_);if(!N)return T.appendChild((0,p.F)(e,"No property to multiple: "+s)),j;var I=E.any(s,S("label"));I||(I=A.P(N));var O=E.any(s,S("min"));O=O?0+O.value:0;var F=E.any(s,S("part"));if(!F)return T.appendChild((0,p.F)(e,"No part to multiple: "+s)),j;var P,D,U=T.appendChild(e.createElement("div"));if(U.style.display="flex",U.style.flexDirection="column",D=B?E.any(null,N,i,l):E.any(i,N,null,l),R?(P=B?E.any(null,N,i,l):E.any(i,N,null,l),D=P?P.elements:[]):(D=B?E.each(null,N,i,l):E.each(i,N,null,l),P=null),E.updater.editable(l.uri)){var M=T.appendChild(e.createElement("div"));M.style.padding="0.5em";var z=M.appendChild(e.createElement("img"));z.setAttribute("src",C),z.setAttribute("style","margin: 0.2em; width: 1.5em; height:1.5em"),z.title="Click to add another "+I;var q=e.createElement("span");q.textContent=(0===D.length?"Add another ":"Add ")+I,M.addEventListener("click",function(){var e=(0,a.A)(r().mark(function e(t){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,f();case 1:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),!0),M.appendChild(q)}function H(){P||(P=new g.Collection,B?E.add(P,N,i,l):E.add(i,N,P,l))}function V(){return Z.apply(this,arguments)}function Z(){return(Z=(0,a.A)(r().mark(function t(){var n;return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return u.Rm("save list: "+m(P.elements)),H(),t.prev=1,t.next=2,E.fetcher.putBack(l);case 2:t.next=4;break;case 3:return t.prev=3,n=t.catch(1),T.appendChild((0,p.F)(e,"Error trying to put back a list: "+n)),t.abrupt("return");case 4:W();case 5:case"end":return t.stop()}},t,null,[[1,3]])}))).apply(this,arguments)}function W(){var e;if(R){var t=B?E.the(null,N,i,l):E.the(i,N,null,l);e=t?t.elements:[]}else(e=B?E.each(null,N,i,l):E.each(i,N,null,l)).sort();w.syncTableToArrayReOrdered(U,e,k)}function J(){return(J=(0,a.A)(r().mark(function e(){var t,n;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!((t=O-D.length)>0)){e.next=4;break}n=0;case 1:if(!(n<t)){e.next=3;break}return u.Rm("Adding extra: min "+O),e.next=2,f();case 2:n++,e.next=1;break;case 3:return e.next=4,V();case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}return U.refresh=W,W(),function(){return J.apply(this,arguments)}().then(function(){u.Rm(" Multiple render: async stuff ok")},function(e){u.z3(" Multiple render: async stuff fails. #### ",e)}),j},c.ZZ[b.A.ui("PhoneField").uri]=d.PM,c.ZZ[b.A.ui("EmailField").uri]=d.PM,c.ZZ[b.A.ui("ColorField").uri]=d.PM,c.ZZ[b.A.ui("DateField").uri]=d.PM,c.ZZ[b.A.ui("DateTimeField").uri]=d.PM,c.ZZ[b.A.ui("TimeField").uri]=d.PM,c.ZZ[b.A.ui("NumericField").uri]=d.PM,c.ZZ[b.A.ui("IntegerField").uri]=d.PM,c.ZZ[b.A.ui("DecimalField").uri]=d.PM,c.ZZ[b.A.ui("FloatField").uri]=d.PM,c.ZZ[b.A.ui("TextField").uri]=d.PM,c.ZZ[b.A.ui("SingleLineTextField").uri]=d.PM,c.ZZ[b.A.ui("NamedNodeURIField").uri]=d.PM,c.ZZ[b.A.ui("MultiLineTextField").uri]=function(e,t,n,a,i,r,o){var s=b.A.ui,c=y.store,l=i.doc?i.doc():null,u=c.any(i,s("property"));if(!u)return(0,p.F)(e,"No property to text field: "+i);var m=e.createElement("div");m.style.display="flex",m.style.flexDirection="row";var f=m.appendChild(e.createElement("div"));f.style.width=h.A.formFieldNameBoxWidth;var v=m.appendChild(e.createElement("div"));f.appendChild((0,d.bk)(e,u,i)),r=(0,d.WG)(a,u,r);var x=c.anyJS(a,u,null,r)||"",g=c.updater.editable(r.uri),w=i&&c.anyJS(i,b.A.ui("suppressEmptyUneditable"),null,l);!g&&w&&""===x&&(m.style.display="none");var A=U(e,c,a,u,r,o);return v.appendChild(A),t&&t.appendChild(m),m},c.ZZ[b.A.ui("BooleanField").uri]=function(e,t,n,a,i,r,o){return j(e,t,0,a,i,r,0,!1)},c.ZZ[b.A.ui("TristateField").uri]=function(e,t,n,a,i,r,o){return j(e,t,0,a,i,r,0,!0)},c.ZZ[b.A.ui("Classifier").uri]=function(e,t,n,a,i,r,o){var s=y.store,c=b.A.ui,l=s.any(i,c("category"));if(!l)return(0,p.F)(e,"No category for classifier: "+i);x.debug("Classifier: dataDoc="+r);var u=e.createElement("div");u.setAttribute("class","classifierBox");var m=e.createElement("div");m.setAttribute("class","formFieldName classifierBox-label"),m.appendChild((0,d.bk)(e,l,i)),u.appendChild(m);var h=e.createElement("div");h.setAttribute("class","formFieldValue classifierBox-selectBox");var v=H(e,s,a,l,r,function(e,t){return o(e,t)});if(v&&v.querySelectorAll){var g=v.querySelectorAll("select");g.length&&!s.updater.editable(r.uri)&&g.forEach(function(e){e.readOnly=!0,e.style=f.i.textInputStyleUneditable})}return h.appendChild(v),u.appendChild(h),t&&t.appendChild(u),u},c.ZZ[b.A.ui("Choice").uri]=function(e,t,n,a,i,r,s){var c,l=b.A.ui,u=y.store,m=i.doc?i.doc():null,f=e.createElement("div");f.setAttribute("class","choiceBox"),t&&t.appendChild(f);var h=e.createElement("div");h.setAttribute("class","formFieldName choiceBox-label"),f.appendChild(h);var v=e.createElement("div");v.setAttribute("class","formFieldValue choiceBox-selectBox"),f.appendChild(v);var x=u.any(i,l("property"));if(!x)return f.appendChild((0,p.F)(e,"No property for Choice: "+i));h.appendChild((0,d.bk)(e,x,i));var w=u.any(i,l("from"));if(!w)return(0,p.F)(e,"No 'from' for Choice: "+i);var A=u.any(i,l("use")),C={form:i,subForm:A,disambiguate:!1};u.any(i,l("canMintNew"))&&(C.mint="* Create new *");var E=u.any(i,l("multiselect"));E&&(C.multiSelect=!0);var _,T=u.each(i,l("search-full-store")).length?null:r;return v.refresh=function(){var t=u.each(a,x,null,r).map(function(e){return e.value}),n=function(e){var t,n=[];for(var a in n=u.each(void 0,b.A.rdf("type"),w,m),function(e,t,n){var a,i,r,o,s,c,l,u,p,d,m,f={};f[t.toNT()]=!0;var h={},v=e.transitiveClosure(f,e.rdfFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#subClassOf"),!0);for(var x in v){for(var b=0,g=(s=e.statementsMatching(null,e.rdfFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"),e.fromNT(x),n)).length;b<g;b++)h[(d=s[b]).subject.toNT()]=d;for(var y=0,w=(c=e.each(null,e.rdfFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#domain"),e.fromNT(x),n)).length;y<w;y++)for(o=c[y],r=0,a=(l=e.statementsMatching(null,o,null,n)).length;r<a;r++)h[(d=l[r]).subject.toNT()]=d;for(var A=0,k=(u=e.each(null,e.rdfFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#range"),e.fromNT(x),n)).length;A<k;A++)for(o=u[A],m=0,i=(p=e.statementsMatching(null,o,null,n)).length;m<i;m++)h[(d=p[m]).object.toNT()]=d}return h}(u,w,e))n.push(u.fromNT(a));if(w.sameTerm(b.A.rdfs("Class")))for(c in o.Pg())n.push(u.sym(c));else if(w.sameTerm(b.A.rdf("Property"))){for(c in(t=o.uA(u)).op)n.push(u.fromNT(c));for(c in t.dp)n.push(u.fromNT(c));C.disambiguate=!0}else if(w.sameTerm(b.A.owl("ObjectProperty"))){for(c in(t=o.uA(u)).op)n.push(u.fromNT(c));C.disambiguate=!0}else if(w.sameTerm(b.A.owl("DatatypeProperty"))){for(c in(t=o.uA(u)).dp)n.push(u.fromNT(c));C.disambiguate=!0}return n}(T);if(n.push(t),n=F(n),_=Z(e,v,u,a,x,n,t,w,C,r,s),v.innerHTML="",v.appendChild(_),E){var i=new k.N({placeholder:_.selected,select:_,container:v,textField:"textField",valueField:"valueField"});i.init(),i.subscribe(function(n){if("REMOVE_OPTION"===n.action&&(t=t.filter(function(e){return e!==n.value})),"CLEAR_ALL_OPTIONS"===n.action&&(t=[]),"ADD_OPTION"===n.action)if((n.value+"").includes("Create new")){var i=G(r),o=[];o.push(g.st(a,x,u.sym(i),r)),w&&o.push(g.st(i,b.A.rdf("type"),u.sym(w),r)),A&&S(e,v,{},g.sym(i),A,r,function(n,a){n?(u.updater.update([],o,function(t,n,a){n||v.appendChild((0,p.F)(e,"Error updating select: "+a))}),t.push(i),s&&s(n,{widget:"select",event:"new"})):v.appendChild((0,p.F)(e,"Error updating data in field of select: "+a))})}else t.push(n.value);_.update(t)})}},v.refresh(),_&&_.refresh&&_.refresh(),f},c.ZZ[b.A.ui("Comment").uri]=c.ZZ[b.A.ui("Heading").uri]=function(e,t,n,a,i,r,o){var u=b.A.ui,p=y.store,d=p.any(i,u("contents"));d||(d="Error: No contents in comment field.");var m=i.doc?i.doc():null,f=(0,c.K)(i),h=s.t[f]||{},v=e.createElement("div");t&&t.appendChild(v);var x=v.appendChild(e.createElement(h.element));x.textContent=d,(0,l.c)(x,i);var g=p.anyJS(i,b.A.ui("suppressIfUneditable"),null,m),w=p.updater.editable(r.uri);return g&&!w&&(v.style.display="none"),v}},9238(e,t,n){n.d(t,{A:()=>b});var a=n(467),i=n(4756),r=n.n(i),o=n(1795),s=n(3378),c=n(3138),l=n(386),u=n(3291),p=n(9612),d=n(3693);function m(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,i=function(){};return{s:i,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw r}}}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var h=s.Pt.iconBase+"noun_34653_green.svg",v=s.Pt.iconBase+"noun_Search_875351.svg",x=s.Pt.iconBase+"noun_253504.svg";function b(e,t,n,a,i,r){return g.apply(this,arguments)}function g(){return g=(0,a.A)(r().mark(function e(t,n,i,s,f,b){var g,y,w,A,k,C,E,_,T,j,S,L,R,N,B,I,O,F,P,D,U,M,z;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(P=function(){F?((0,d.L)(O,!1),(0,d.L)(L,!1),(0,d.L)(R,!1)):((0,d.L)(O,!0),(0,d.L)(L,!1),(0,d.L)(R,!1))},S=function(){return(S=(0,a.A)(r().mark(function e(t){var a,i,o,s;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a=m(t),e.prev=1,a.s();case 2:if((i=a.n()).done){e.next=4;break}return o=i.value,e.next=3,f(n,o);case 3:e.next=2;break;case 4:e.next=6;break;case 5:e.prev=5,s=e.catch(1),a.e(s);case 6:return e.prev=6,a.f(),e.finish(6);case 7:case"end":return e.stop()}},e,null,[[1,5,6,7]])}))).apply(this,arguments)},j=function(e){return S.apply(this,arguments)},T=function(){return(T=(0,a.A)(r().mark(function e(t){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!U){e.next=1;break}M.removeChild(U),U=void 0,e.next=2;break;case 1:return e.next=2,C();case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)},_=function(e){return T.apply(this,arguments)},E=function(){return(E=(0,a.A)(r().mark(function e(){var n;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(U=t.createElement("div")).setAttribute("style","display: flex; flex-flow: wrap;"),n=U,e.next=1,(0,d.r)(t,s,D,g);case 1:n.appendChild.call(n,e.sent),U.appendChild(L),U.appendChild(R),U.appendChild(O),U.appendChild(N),M.appendChild(U);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)},C=function(){return E.apply(this,arguments)},k=function(){U&&(M.removeChild(U),U=void 0)},A=function(){return(A=(0,a.A)(r().mark(function e(a){var i;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,u.RG(t,c.store,M,o.A.vcard("url"),void 0,"Solid ID");case 1:if(i=e.sent){e.next=2;break}return e.abrupt("return");case 2:return e.abrupt("return",f(n,i));case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)},w=function(e){return A.apply(this,arguments)},y=function(){return(y=(0,a.A)(r().mark(function e(t,n){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s.permanent?((0,d.L)(O,!0),(0,d.L)(L,!1),(0,d.L)(R,!1)):k(),e.abrupt("return",f(t,n));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)},g=function(e,t){return y.apply(this,arguments)},(L=u.kz(t)).setAttribute("data-testid","accept-button"),(R=u.x7(t)).setAttribute("data-testid","cancel-button"),N=t.createElement("div"),B=s.targetClass?p.P(s.targetClass):"item",(I=u.Qy(t,N,B,b)).setAttribute("data-testid","delete-button"),(O=u.x6(t,x,"Edit",function(e){F=!F,P()})).setAttribute("data-testid","edit-button"),F=!0,D={acceptButton:L,cancelButton:R,editButton:O,deleteButton:I},U=void 0,(M=t.createElement("div")).style.display="flex",M.style.flexDirection="row",!s.permanent&&!s.currentObject){e.next=1;break}return e.next=1,C();case 1:return i.editable&&(M.style.width="100%",i.manualURIEntry&&(z=M.appendChild(u.x6(t,h,i.idNoun,w)),l.DK(z,j,void 0)),!i.dbLookup||s.currentObject||s.permanent||M.appendChild(u.x6(t,v,i.idNoun,_))),P(),e.abrupt("return",M);case 2:case"end":return e.stop()}},e)})),g.apply(this,arguments)}},8251(e,t,n){n.d(t,{l:()=>m});var a=n(467),i=n(4756),r=n.n(i),o=n(1795),s=n(3138),c=n(3468),l=n(6564),u=n(675),p=n(9238),d=n(4961);function m(e,t,n,i,m,f,h){var v;function x(){return(x=(0,a.A)(r().mark(function t(n,a){var o,s,l,u,p,m;return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(a){t.next=1;break}throw new Error("autocompleteField: No name set.");case 1:if(!(o=g.the(i,C,null,f))){t.next=2;break}if(s=g.any(o,E,null,f),!(o.equals(n)&&s&&s.sameTerm(a))){t.next=2;break}return t.abrupt("return");case 2:return l=o?g.statementsMatching(i,C,o,f).concat(g.statementsMatching(o,E,null,f)):[],u=[(0,d.st)(i,C,n,f),(0,d.st)(n,E,a,f)],t.prev=3,t.next=4,null===(p=g.updater)||void 0===p?void 0:p.updateMany(l,u);case 4:t.next=6;break;case 5:return t.prev=5,m=t.catch(3),h(!1,m),w.appendChild(c.F(e,"Autocomplete form data update error:"+m,null,m)),t.abrupt("return");case 6:h(!0,"");case 7:case"end":return t.stop()}},t,null,[[3,5]])}))).apply(this,arguments)}function b(){return(b=(0,a.A)(r().mark(function t(n,a){var o,s,l,u,p,d;return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(o=g.the(i,C,null,f)){t.next=1;break}return h(!1,"NO data to elete"),w.appendChild(c.F(e,"Autocomplete delete: no old data!")),t.abrupt("return");case 1:return s=g.statementsMatching(i,C,o,f).concat(g.statementsMatching(o,E,null,f)),l=[],t.prev=2,t.next=3,null===(u=g.updater)||void 0===u?void 0:u.updateMany(s,l);case 3:t.next=5;break;case 4:return t.prev=4,d=t.catch(2),p=new Error("Autocomplete form data delete error:"+d),h(!1,d),w.appendChild(c.F(e,p,null,d)),t.abrupt("return");case 5:h(!0,"");case 6:case"end":return t.stop()}},t,null,[[2,4]])}))).apply(this,arguments)}if("NamedNode"!==i.termType)throw new Error("Sorry this field only works on NamedNode subjects (for editable)");var g=s.store,y=m.doc?m.doc():null,w=e.createElement("div");t&&t.appendChild(w);var A=e.createElement("div");A.setAttribute("class","formFieldName"),A.setAttribute("style",u.i.formFieldNameBoxStyle),w.appendChild(A);var k=e.createElement("div");k.setAttribute("class","formFieldValue"),w.appendChild(k);var C=g.any(m,o.A.ui("property"));if(!C)return w.appendChild(c.F(e,"Error: No property given for autocomplete field: "+m));var E=g.any(m,o.A.ui("labelProperty"))||o.A.schema("name"),_=g.any(m,o.A.ui("dataSource"));if(!_)return w.appendChild(c.F(e,"Error: No data source given for autocomplete field: "+m));var T={label:g.anyJS(_,o.A.schema("name"),null,_.doc()),logo:g.any(_,o.A.schema("logo"),null,_.doc())},j=g.any(m,o.A.ui("targetClass"),null,m.doc())||g.any(_,o.A.ui("targetClass"),null,_.doc());j&&(T.targetClass=j),T.objectURIBase=g.any(_,o.A.ui("objectURIBase"),null,_.doc())||void 0;var S=g.anyJS(_,o.A.ui("endpoint"),null,_.doc());if(S){if(T.endpoint=S,T.searchByNameQuery=g.anyJS(_,o.A.ui("searchByNameQuery"),null,_.doc()),!T.searchByNameQuery)return w.appendChild(c.F(e,"Error: No searchByNameQuery given for endpoint data Source: "+m));T.insitituteDetailsQuery=g.anyJS(_,o.A.ui("insitituteDetailsQuery"),null,_.doc())}else{var L=g.anyJS(_,o.A.ui("searchByNameURI"));if(!L)return w.appendChild(c.F(e,"Error: No searchByNameURI OR sparql endpoint given for dataSource: "+_));T.searchByNameURI=L}var R=g.anyJS(m,o.A.ui("suppressEmptyUneditable"),null,y),N=null===(v=g.updater)||void 0===v?void 0:v.editable(f.uri),B={permanent:!0,targetClass:T.targetClass,queryParams:T};B.size=g.anyJS(m,o.A.ui("size"),null,y)||void 0;var I=g.any(i,C,void 0,f);if(I)B.currentObject=I,B.currentName=g.any(B.currentObject,E,null,f);else if(I=g.any(m,o.A.ui("default")))B.currentObject=I,B.currentName=g.any(B.currentObject,E,null,f);else if(R&&!N)return w.style.display="none",w;A.appendChild(l.bk(e,C,m));var O={editable:N,dbLookup:!0};return(0,p.A)(e,i,O,B,function(e,t){return x.apply(this,arguments)},function(e,t){return b.apply(this,arguments)}).then(function(e){k.appendChild(e)},function(t){k.appendChild(c.F(e,"Error rendering autocomplete ".concat(m,": ").concat(t),"#fee",t))}),w}},3693(e,t,n){n.d(t,{L:()=>h,r:()=>v});var a=n(467),i=n(4756),r=n.n(i),o=n(7423),s=n(675),c=n(4762),l=n(3468),u=n(3138),p=n(8702),d=n(8677);function m(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,i=function(){};return{s:i,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw r}}}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function h(e,t){e.style.display=t?"":"none"}function v(e,t,n,a){return x.apply(this,arguments)}function x(){return x=(0,a.A)(r().mark(function e(t,n,i,f){var v,x,b,g,y,w,A,k,C,E,_,T,j,S,L,R,N,B,I,O,F,P,D,U,M,z,q,H,V,G,Z,W,J,$;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(B=function(){n.currentObject?(W.value=n.currentName?n.currentName.value:"??? wot no name for "+n.currentObject,q=n.currentName,U=n.currentName?n.currentName.value:void 0,H=n.currentObject):(W.value="",U=void 0,H=void 0),i.deleteButton&&h(i.deleteButton,!!n.currentObject),i.acceptButton&&h(i.acceptButton,!1),i.editButton&&h(i.editButton,!0),i.cancelButton&&h(i.cancelButton,!1),P=!1,E()},N=function(){return N=(0,a.A)(r().mark(function e(){var n,i,c,l,u,f,h,v,x;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(i=function(e,t){return t.name.value>e.name.value?1:t.name.name<e.name.value?-1:0},n=function(e){var n=t.createElement("tr");s.i.setStyle(n,"autocompleteRowStyle"),n.setAttribute("style","padding: 0.3em;"),n.style.color=D?"#080":"#088",n.textContent=e.name.value;var i=(0,p.bindingToTerm)(e.subject),c=(0,p.bindingToTerm)(e.name);return n.addEventListener("click",function(){var e=(0,a.A)(r().mark(function e(t){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o.Rm(" click row textContent: "+n.textContent),o.Rm(" click name: "+c.value),i&&c&&b(i,c);case 1:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()),n},!P){e.next=1;break}return o.Rm('Ignoring "'.concat(W.value,'" because of lock ')),e.abrupt("return");case 1:return o.Rm('Setting lock at "'.concat(W.value,'"')),P=!0,e.next=2,(0,d.getPreferredLanguages)();case 2:if(c=e.sent,!((l=W.value.trim().toLowerCase()).length<4)){e.next=3;break}E(),M=20,e.next=6;break;case 3:if(D&&U&&l.startsWith(U)){e.next=5;break}return o.Rm(' Querying database at "'.concat(l,'" cf last "').concat(U,'".')),e.next=4,j(l,c);case 4:O=e.sent;case 5:u=L(l,O),F&&u.length<=40&&(M=u.length),D=F&&u.length<=M,o.Rm(' Filter:"'.concat(l,'" lastBindings: ').concat(O.length,", slimmed to ").concat(u.length,"; rows: ").concat(M,", Enough? ").concat(F,", All displayed? ").concat(D)),(f=u.slice(0,M)).sort(i),E(),h=m(f);try{for(h.s();!(v=h.n()).done;)x=v.value,V.appendChild(n(x))}catch(e){h.e(e)}finally{h.f()}1===u.length&&b((0,p.bindingToTerm)(u[0].subject),(0,p.bindingToTerm)(u[0].name));case 6:P=!1;case 7:case"end":return e.stop()}},e)})),N.apply(this,arguments)},R=function(){return N.apply(this,arguments)},L=function(e,t){return t.filter(function(t){return C(e,t.name.value)})},S=function(){return(S=(0,a.A)(r().mark(function e(t,a){var i,o,s;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,(0,p.queryPublicDataByName)(t,I,a||d.defaultPreferredLanguages,n.queryParams);case 1:i=e.sent,e.next=3;break;case 2:return e.prev=2,s=e.catch(0),v("Error querying db of organizations: "+s),P=!1,e.abrupt("return");case 3:return F=i.length<p.AUTOCOMPLETE_LIMIT,U=F?t:void 0,E(),o=(0,d.filterByLanguage)(i,a),e.abrupt("return",o);case 4:case"end":return e.stop()}},e,null,[[0,2]])}))).apply(this,arguments)},j=function(e,t){return S.apply(this,arguments)},T=function(){return(T=(0,a.A)(r().mark(function e(t){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:h(i.cancelButton,!0),R();case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)},_=function(e){return T.apply(this,arguments)},E=function(){for(;V.children.length>1;)V.removeChild(V.lastChild)},C=function(e,t){for(var n=e.split(" "),a=0;a<n.length;a++){var i=n[a];if(t.toLowerCase().indexOf(i)<0)return!1}return!0},k=function(){return(k=(0,a.A)(r().mark(function e(t){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o.Rm("Auto complete: Canceled by user! "),n.permanent?B():z.parentNode&&z.parentNode.removeChild(z);case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)},A=function(e){return k.apply(this,arguments)},w=function(){return(w=(0,a.A)(r().mark(function e(t){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:q&&W.value===q.value&&x(H,q);case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)},y=function(e){return w.apply(this,arguments)},g=function(){return(g=(0,a.A)(r().mark(function e(t,n){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!i.acceptButton){e.next=1;break}return i.acceptButton.disbaled=!1,h(i.acceptButton,!0),W.value=n.value,q=n,H=t,o.Rm("Auto complete: name: "+n),o.Rm("Auto complete: waiting for accept "+t),E(),e.abrupt("return");case 1:h(i.cancelButton,!0),x(t,n);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)},b=function(e,t){return g.apply(this,arguments)},x=function(e,t){o.Rm("Auto complete: finish! "+e),"Literal"===e.termType&&n.queryParams.objectURIBase&&(e=u.store.sym(n.queryParams.objectURIBase.value+e.value)),E(),f(e,t)},v=function(e){var n=V.appendChild(t.createElement("tr"));o.Rm(e);var a=new Error(e);n.appendChild(l.F(t,a,"pink")),s.i.setStyle(n,"autocompleteRowStyle"),n.style.padding="1em"},I=n.targetClass){e.next=1;break}throw new Error("renderAutoComplete: missing targetClass");case 1:return i.acceptButton&&i.acceptButton.addEventListener("click",y,!1),i.cancelButton&&i.cancelButton.addEventListener("click",A,!1),F=!1,P=!1,D=!1,U=void 0,M=20,z=t.createElement("div"),q=void 0,H=void 0,(V=z.appendChild(t.createElement("table"))).setAttribute("data-testid","autocomplete-table"),V.setAttribute("style","max-width: 30em; margin: 0.5em;"),G=V.appendChild(t.createElement("tr")),s.i.setStyle(G,"autocompleteRowStyle"),Z=G.appendChild(t.createElement("td")),(W=Z.appendChild(t.createElement("input"))).setAttribute("type","text"),B(),J=n.size||c.A.textInputSize||20,W.setAttribute("size",J),W.setAttribute("data-testid","autocomplete-input"),$=s.i.textInputStyle||"border: 0.1em solid #444; border-radius: 0.5em; width: 100%; font-size: 100%; padding: 0.1em 0.6em",W.setAttribute("style",$),W.addEventListener("keyup",function(e){13===e.keyCode&&y(e)},!1),W.addEventListener("input",_),e.abrupt("return",z);case 2:case"end":return e.stop()}},e)})),x.apply(this,arguments)}},8677(e,t,n){n.r(t),n.d(t,{addDefaults:()=>p,defaultPreferredLanguages:()=>u,filterByLanguage:()=>v,getPreferredLanguages:()=>f,getPreferredLanguagesFor:()=>d,languageCodeURIBase:()=>l});var a=n(467),i=n(4756),r=n.n(i),o=n(7423),s=n(3138),c=n(1795),l="https://www.w3.org/ns/iana/language-code/",u=["en","fr","de","it","ar"];function p(e){return e||(e=[]),e.concat(u.filter(function(t){return!e.includes(t)}))}function d(e){return m.apply(this,arguments)}function m(){return(m=(0,a.A)(r().mark(function e(t){var n,a,i,o;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.doc(),e.next=1,null===(n=s.store.fetcher)||void 0===n?void 0:n.load(a);case 1:if(i=s.store.any(t,c.A.schema("knowsLanguage"),null,a)){e.next=2;break}return e.abrupt("return",u);case 2:if(o=[],i.elements.forEach(function(e){var t=s.store.any(e,c.A.solid("publicId"),null,a);if(t)if(t.value.startsWith(l)){var n=t.value.slice(l.length);o.push(n)}else console.error("What should be a language code ".concat(t.value," does not start with ").concat(l));else console.warn("getPreferredLanguages: No publiID of language.")}),!(o.length>0)){e.next=3;break}return console.log(' User knows languages with codes: "'.concat(o.join(","),'"')),e.abrupt("return",p(o));case 3:return e.abrupt("return",null);case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function f(){return h.apply(this,arguments)}function h(){return(h=(0,a.A)(r().mark(function e(){var t,n;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,s.authn.currentUser();case 1:if(!(t=e.sent)){e.next=3;break}return e.next=2,d(t);case 2:if(!(n=e.sent)){e.next=3;break}return e.abrupt("return",n);case 3:if("undefined"==typeof navigator){e.next=5;break}if(!navigator.languages){e.next=4;break}return e.abrupt("return",p(navigator.languages.map(function(e){return e.split("-")[0]})));case 4:if(!navigator.language){e.next=5;break}return e.abrupt("return",p([navigator.language.split("-")[0]]));case 5:return e.abrupt("return",u);case 6:case"end":return e.stop()}},e)}))).apply(this,arguments)}function v(e,t){var n={};e.forEach(function(e){var t=e.subject.value;n[t]=n[t]||[],n[t].push(e)});var a=t||u;a.reverse();var i=[];for(var r in n){var s=n[r].map(function(e){var t=e.name["xml:lang"];return[a.indexOf(t),e]});s.sort(),s.reverse(),i.push(s[0][1])}return o.Rm(" Filter by language: ".concat(e.length," -> ").concat(i.length)),i}},8702(e,t,n){n.r(t),n.d(t,{AUTOCOMPLETE_LIMIT:()=>p,ESCOResultToBindings:()=>E,bindingToTerm:()=>k,dbPediaTypeMap:()=>b,dbpediaParameters:()=>x,escoParameters:()=>v,fetcherOptionsJsonPublicData:()=>h,getDbpediaDetails:()=>H,getWikidataDetails:()=>P,getWikidataDetailsOld:()=>U,getWikidataLocation:()=>z,instituteDetailsWikidataQuery:()=>f,loadFromBindings:()=>C,loadPublicDataThing:()=>O,queryESCODataByName:()=>_,queryPublicDataByName:()=>S,queryPublicDataConstruct:()=>B,queryPublicDataSelect:()=>R,variableNameToPredicateMap:()=>A,wikidataClasses:()=>m,wikidataIncomingClassMap:()=>w,wikidataOutgoingClassMap:()=>g,wikidataParameters:()=>y});var a=n(467),i=n(4756),r=n.n(i),o=n(4961),s=n(3138),c=n(7423),l=n(1795),u=n(8677),p=200,d=/\$\(subject\)/g,m={Corporation:"http://www.wikidata.org/entity/Q6881511",EducationalOrganization:"http://www.wikidata.org/entity/Q178706",GovernmentOrganization:"http://www.wikidata.org/entity/Q327333",MedicalOrganization:"http://www.wikidata.org/entity/Q4287745",MusicGroup:"http://www.wikidata.org/entity/Q32178211",NGO:"http://www.wikidata.org/entity/Q163740",Occupation:"http://www.wikidata.org/entity/Q28640",Project:"http://www.wikidata.org/entity/Q170584",ResearchOrganization:"http://www.wikidata.org/entity/Q31855",SportsOrganization:"http://www.wikidata.org/entity/Q4438121"},f='prefix vcard: <http://www.w3.org/2006/vcard/ns#>\nCONSTRUCT\n{ wd:Q49108 vcard:fn ?itemLabel.\nwd:Q49108 rdf:type ?klass. ?klass rdfs:label ?klassLabel; rdfs:comment ?klassDescription .\nwd:Q49108 schema:logo ?logo;\n schema:image ?image;\n schema:logo ?sealImage;\n schema:subOrganization ?subsidiary .\n ?subsidiary rdfs:label ?subsidiaryLabel .\n ?supersidiary schema:subOrganization wd:Q49108 .\n ?supersidiary rdfs:label ?supersidiaryLabel .\n wd:Q49108 schema:location ?location .\n ?location schema:elevation ?elevation .\n ?location wdt:P131 ?region . ?region rdfs:label ?regionLabel .\n ?location wdt:P625 ?coordinates .\n ?location schema:country ?country . ?country rdfs:label ?countryLabel .\n}\nWHERE\n{ optional {wd:Q49108 rdfs:label ?itemLabel} .\n optional {wd:Q49108 wdt:P154 ?logo .}\n optional {wd:Q49108 wdt:P31 ?klass .}\n optional {wd:Q49108 wdt:P158 ?sealImage .}\n optional {wd:Q49108 wdt:P18 ?image .}\n\n optional { wd:Q49108 wdt:P355 ?subsidiary . }\n optional { ?supersidiary wdt:P355 wd:Q49108. }\n\n optional { wd:Q49108 wdt:P276 ?location .\n\n optional { ?location schema:eleveation ?elevation }\n optional { ?location wdt:P131 ?region }\n optional { ?location wdt:P625 ?coordinates }\n optional { ?location wdt:P17 ?country }\n }\n SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en,de,it". }\n}',h={credentials:"omit",headers:new Headers({Accept:"application/json"})},v={label:"ESCO",logo:s.store.sym("https://ec.europa.eu/esco/portal/static_resource2/images/logo/logo_en.gif"),searchByNameURI:"https://ec.europa.eu/esco/api/search?language=$(language)&type=occupation&text=$(name)"},x={label:"DBPedia",logo:s.store.sym("https://upload.wikimedia.org/wikipedia/commons/thumb/7/73/DBpediaLogo.svg/263px-DBpediaLogo.svg.png"),searchByNameQuery:'select distinct ?subject, ?name where {\n ?subject a $(targetClass); rdfs:label ?name\n FILTER regex(?name, "$(name)", "i")\n } LIMIT $(limit)',endpoint:"https://dbpedia.org/sparql/"},b={AcademicInsitution:"http://umbel.org/umbel/rc/EducationalOrganization"},g={AcademicInsitution:"http://www.wikidata.org/entity/Q4671277",Enterprise:"http://www.wikidata.org/entity/Q6881511",Business:"http://www.wikidata.org/entity/Q4830453",NGO:"http://www.wikidata.org/entity/Q79913",CharitableOrganization:"http://www.wikidata.org/entity/Q708676",Insitute:"http://www.wikidata.org/entity/Q1664720"},y={label:"WikiData",limit:3e3,logo:s.store.sym("https://www.wikimedia.org/static/images/project-logos/wikidatawiki.png"),endpoint:"https://query.wikidata.org/sparql",searchByNameQuery:'SELECT ?subject ?name\n WHERE {\n ?klass wdt:P279* $(targetClass) .\n ?subject wdt:P31 ?klass .\n ?subject rdfs:label ?name.\n FILTER regex(?name, "$(name)", "i")\n } LIMIT $(limit) ',insitituteDetailsQuery:'CONSTRUCT\n{ wd:Q49108 schema:name ?itemLabel;\n schema:logo ?logo;\n schema:logo ?sealImage;\n schema:subOrganization ?subsidiary .\n ?subsidiary schema:name ?subsidiaryLabel .\n}\nWHERE\n{\n wd:Q49108 # rdfs:label ?itemLabel ;\n wdt:P154 ?logo;\n wdt:P158 ?sealImage ;\n wdt:P355 ?subsidiary .\n # ?subsidiary rdfs:label ?subsidiaryLabel .\n\n SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE], fr". }\n}'},w={"http://www.wikidata.org/entity/Q15936437":l.A.schema("CollegeOrUniversity"),"http://www.wikidata.org/entity/Q1664720":l.A.schema("EducationalOrganization"),"http://www.wikidata.org/entity/Q43229":l.A.schema("Organization"),"http://www.wikidata.org/entity/Q3918":l.A.schema("CollegeOrUniversity"),"http://www.wikidata.org/entity/Q170584":l.A.schema("Project"),"http://www.wikidata.org/entity/Q327333":l.A.schema("GovernmentOrganization"),"http://www.wikidata.org/entity/Q2221906":l.A.schema("Place"),"http://www.wikidata.org/entity/Q167037":l.A.schema("Corporation")},A={targetClass:l.A.rdf("type"),sealImage:l.A.schema("logo"),shortName:l.A.foaf("nick"),subsidiary:l.A.schema("subOrganization"),city:l.A.vcard("locality"),state:l.A.vcard("region"),country:l.A.vcard("country-name"),homepage:l.A.foaf("homepage"),lat:l.A.schema("latitude"),long:l.A.schema("longitude")};function k(e){var t=e.type.toLowerCase();if("uri"===t||"iri"===t)return s.store.sym(e.value);if("literal"===t)return e["xml:lang"]?new o.Literal(e.value,e["xml:lang"]):new o.Literal(e.value);throw new Error('bindingToTerm: Unexpected type "'.concat(e.type,'" in sparql binding}'))}function C(e,t,n,a){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:A,r={};c.Rm("loadFromBindings: subject: ".concat(t)),c.Rm(" doc: ".concat(a)),n.forEach(function(e){for(var t in e){var n=e[t],a=JSON.stringify(n);r[t]=r[t]||new Set,r[t].add(a)}});var s=function(n){var s=r[n];c.Rm(" results ".concat(n," -> ").concat(s)),s.forEach(function(r){var s,u=JSON.parse(r),p=u.type,d=u.value;if("uri"===p)s=e.sym(d);else{if("literal"!==p)throw new Error("loadFromBindings: unexpected type: ".concat(p));s=new o.Literal(d,u.language,u.datatype)}if("type"===n)w[d]?s=w[d]:c.R8("Unmapped Wikidata Class: "+d);else if("coordinates"===n){c.Rm(" @@@ hey a point: "+d);var m=/.*\(([-0-9.-]*) ([-0-9.-]*)\)/.exec(d);if(m){var f=l.A.xsd("float"),h=new o.Literal(m[1],null,f),v=new o.Literal(m[2],null,f);e.add(t,l.A.schema("longitude"),v,a),e.add(t,l.A.schema("latitude"),h,a)}else c.Rm("Bad coordinates syntax: "+d)}else{var x=i[n]||l.A.schema(n);e.add(t,x,s,a),c.Rm(" public data ".concat(x," ").concat(s,"."))}})};for(var u in r)s(u)}function E(e){return e._embedded.results.map(function(e){return{name:{value:e.title,type:"literal"},subject:{type:"IRI",value:e.uri}}})}function _(e,t,n){return T.apply(this,arguments)}function T(){return(T=(0,a.A)(r().mark(function e(t,n,a){var i,o,l,u,d,m;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a.searchByNameURI){e.next=1;break}throw new Error("Missing queryTarget.searchByNameURI on queryESCODataByName");case 1:return o=a.limit||p,l=a.searchByNameURI.replace("$(name)",t).replace("$(limit)",""+o).replace("$(targetClass)",n.toNT()),c.Rm("Querying ESCO data - uri: "+l),e.next=2,null===(i=s.store.fetcher)||void 0===i?void 0:i.webOperation("GET",l,h);case 2:if(u=e.sent,d=(null==u?void 0:u.responseText)||"",c.Rm(" Query result text"+d.slice(0,500)+"..."),0!==d.length){e.next=3;break}throw new Error("Wot no text back from ESCO query "+l);case 3:return m=JSON.parse(d),c.Rm(" ESCO Query result JSON"+JSON.stringify(m,null,4).slice(0,500)+"..."),e.abrupt("return",E(m));case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function j(e){var t=e.indexOf("SPARQL-QUERY");if(t<0)return e;c.R8(" ### Fixing JSON with wikidata error code injection "+e.slice(t,t+200));var n=e.lastIndexOf("}, {");return e.slice(0,n)+" } ] } } "}function S(e,t,n,a){return L.apply(this,arguments)}function L(){return(L=(0,a.A)(r().mark(function e(t,n,a,i){var o,l,d,m,f,v,x,b,g,y,w,A;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(o=function(e){var a=i.limit||p;return e.replace("$(name)",t).replace("$(limit)",""+a).replace("$(language)",l).replace("$(targetClass)",n.toNT())},n){e.next=1;break}throw new Error("queryPublicDataByName: No class provided");case 1:return e.next=2,(0,u.getPreferredLanguages)();case 2:if(w=e.sent){e.next=3;break}w=u.defaultPreferredLanguages;case 3:if(l=w[0]||"en",!i.searchByNameQuery){e.next=4;break}return d=o(i.searchByNameQuery),c.Rm("Querying public data - sparql: "+d),e.abrupt("return",R(d,i));case 4:if(!i.searchByNameURI){e.next=13;break}return m=o(i.searchByNameURI),e.prev=5,e.next=6,null===(v=s.store.fetcher)||void 0===v?void 0:v.webOperation("GET",m,h);case 6:f=e.sent,e.next=8;break;case 7:throw e.prev=7,A=e.catch(5),new Error("Exception when trying to fetch ".concat(m," \n ").concat(A));case 8:if(x=f.responseText||"",200===f.status){e.next=9;break}throw new Error("HTTP error status ".concat(f.status," trying to fetch ").concat(m," "));case 9:if(c.Rm(" Query result text"+x.slice(0,500)+"..."),0!==x.length){e.next=10;break}throw new Error("queryPublicDataByName: No text back from public data query "+m);case 10:if(b=j(x),g=JSON.parse(b),c.Rm(" API Query result JSON"+JSON.stringify(g,null,4).slice(0,500)+"..."),!g._embedded){e.next=11;break}return c.Rm(" Looks like ESCO"),y=E(g),e.abrupt("return",y);case 11:throw alert("Code me: unrecognized API return format"),new Error("*** Need to add code to parse unrecognized API JSON return\n".concat(JSON.stringify(g,null,4)));case 12:e.next=14;break;case 13:throw new Error("Query source must have either rest API or SPARQL endpoint.");case 14:case"end":return e.stop()}},e,null,[[5,7]])}))).apply(this,arguments)}function R(e,t){return N.apply(this,arguments)}function N(){return(N=(0,a.A)(r().mark(function e(t,n){var a,i,o,l,u,p,d,m,f,h;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n.endpoint){e.next=1;break}throw new Error("Missing queryTarget.endpoint required for queryPublicDataSelect");case 1:return(i=new URL(n.endpoint)).searchParams.append("query",t),o=i.href,c.Rm(" queryPublicDataSelect uri: "+o),(l=new Headers).append("Accept","application/json"),u={credentials:"omit",headers:l},e.next=2,null===(a=s.store.fetcher)||void 0===a?void 0:a.webOperation("GET",o,u);case 2:if(p=e.sent,0!==(d=(null==p?void 0:p.responseText)||"").length){e.next=3;break}throw new Error("No text back from query "+o);case 3:return m=j(d),f=JSON.parse(m),c.Rm(" Query result JSON"+JSON.stringify(f,null,4).slice(0,100)+"..."),h=f.results.bindings,e.abrupt("return",h);case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function B(e,t,n){return I.apply(this,arguments)}function I(){return(I=(0,a.A)(r().mark(function e(t,n,a){var i,l,u,p,d,m,f,h;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(c.Rm("queryPublicDataConstruct: sparql:",t),a.endpoint){e.next=1;break}throw new Error("Missing queryTarget.endpoint required for queryPublicDataConstruct");case 1:return(l=new URL(a.endpoint)).searchParams.append("query",t),u=l.href,c.Rm(" queryPublicDataConstruct uri: "+u),(p=new Headers).append("Accept","text/turtle"),d={credentials:"omit",headers:p},e.next=2,null===(i=s.store.fetcher)||void 0===i?void 0:i.webOperation("GET",u,d);case 2:if(m=e.sent,f=(null==m?void 0:m.responseText)||"No response text?",h=f.length>500?f.slice(0,200)+" ... "+f.slice(-200):f,c.Rm(" queryPublicDataConstruct result text:"+h),0!==f.length){e.next=3;break}throw new Error("queryPublicDataConstruct: No text back from construct query:"+u);case 3:(0,o.parse)(f,s.store,n.uri,"text/turtle");case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function O(e,t,n){return F.apply(this,arguments)}function F(){return(F=(0,a.A)(r().mark(function e(t,n,a){var i,o;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!a.uri.startsWith("https://dbpedia.org/resource/")){e.next=1;break}return e.abrupt("return",H(t,n,a));case 1:if(!a.uri.match(/^https?:\/\/www\.wikidata\.org\/entity\/.*/)){e.next=3;break}return e.next=2,P(t,n,a);case 2:e.next=4;break;case 3:return i=a.uri.startsWith("http:")?t.sym("https:"+a.uri.slice(5)):a,(o=new Headers).append("Accept","text/turtle"),e.abrupt("return",t.fetcher.load(i,{credentials:"omit",headers:o}));case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function P(e,t,n){return D.apply(this,arguments)}function D(){return(D=(0,a.A)(r().mark(function e(t,n,a){var i,o;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=/wd:Q49108/g,o=f.replace(i,a.toNT()),e.next=1,B(o,a,y);case 1:c.Rm("getWikidataDetails: loaded.",a);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function U(e,t,n){return M.apply(this,arguments)}function M(){return(M=(0,a.A)(r().mark(function e(t,n,a){var i,o;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i='select distinct * where {\n optional { $(subject) wdt:P31 ?targetClass } # instance of\n optional { $(subject) wdt:P154 ?logo }\n optional { $(subject) wdt:P158 ?sealImage }\n# optional { $(subject) wdt:P159 ?headquartersLocation }\n\noptional { $(subject) wdt:P17 ?country }\noptional { $(subject) wdt:P18 ?image }\noptional { $(subject) wdt:P1813 ?shortName }\n\noptional { $(subject) wdt:P355 ?subsidiary }\n# SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en,de,it" }\n}'.replace(d,a.toNT()),e.next=1,R(i,y);case 1:o=e.sent,C(t,a,o,a.doc());case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function z(e,t,n){return q.apply(this,arguments)}function q(){return(q=(0,a.A)(r().mark(function e(t,n,a){var i,o;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i='select distinct * where {\n\n $(subject) wdt:P276 ?location .\n\n optional { ?location wdt:P2044 ?elevation }\n optional { ?location wdt:P131 ?region }\n optional { ?location wdt:P625 ?coordinates }\noptional { ?location wdt:P17 ?country }\n\n# SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en,de,it" }\n}'.replace(d,a.toNT()),c.Rm(" location query sparql:"+i),e.next=1,R(i,y);case 1:o=e.sent,c.Rm(" location query bindings:",o),C(t,a,o,a.doc());case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function H(e,t,n){return V.apply(this,arguments)}function V(){return(V=(0,a.A)(r().mark(function e(t,n,a){var i,o;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i="select distinct ?city, ?state, ?country, ?homepage, ?logo, ?lat, ?long, WHERE {\n OPTIONAL { <".concat(a,"> <http://dbpedia.org/ontology/city> ?city }\n OPTIONAL { ").concat(a," <http://dbpedia.org/ontology/state> ?state }\n OPTIONAL { ").concat(a," <http://dbpedia.org/ontology/country> ?country }\n OPTIONAL { ").concat(a," foaf:homepage ?homepage }\n OPTIONAL { ").concat(a," foaf:lat ?lat; foaf:long ?long }\n OPTIONAL { ").concat(a," <http://dbpedia.org/ontology/country> ?country }\n }"),e.next=1,R(i,x);case 1:o=e.sent,C(t,a,o,a.doc()),c.Rm("Finished getDbpediaDetails.");case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}},6564(e,t,n){n.d(t,{Nr:()=>m,PM:()=>v,WG:()=>h,bk:()=>f});var a=n(4961),i=n(3138),r=n(1795),o=n(675),s=n(4762),c=n(9612),l=n(3468),u=n(9086),p=n(588),d=i.solidLogicSingleton.store;function m(e,t,n,a,i){n.style.display="flex",n.style.flexDirection="row";var c=n.appendChild(e.createElement("div"));c.style.width=s.A.formFieldNameBoxWidth;var u=n.appendChild(e.createElement("div"));return c.setAttribute("class","formFieldName"),c.setAttribute("style",o.i.formFieldNameBoxStyle),u.setAttribute("class","formFieldValue"),i?c.appendChild(e.createTextNode(i)):t.any(a,r.A.ui("property"))?c.appendChild(f(e,t.any(a,r.A.ui("property")),a)):(u.appendChild((0,l.F)(e,"No property or label given for form field: "+a)),c.appendChild(e.createTextNode("???"))),u}function f(e,t,n){var a=d.any(n,r.A.ui("label"));if(a||(a=(0,c.P)(t,!0)),void 0===t)return e.createTextNode("@@Internal error: undefined property");var i=e.createElement("a");return t.uri&&i.setAttribute("href",t.uri),i.setAttribute("style","color: #3B5998; text-decoration: none;"),i.textContent=a,i}function h(e,t,n){var a=d.statementsMatching(e,t);if(0===a.length)return n;if(!d.updater)throw new Error("Store has no updater");return a.length>0&&a[0].why.value&&d.updater.editable(a[0].why.value,d)?d.sym(a[0].why.value):n}function v(e,t,n,i,c,f,v){var x=d,b=c.doc?c.doc():null,g=e.createElement("div"),y=x.any(c,r.A.ui("property"));if(t&&t.appendChild(g),!y)return g.appendChild((0,l.F)(e,"Error: No property given for text field: "+c));var w=m(e,x,g,c),A=x.anyJS(c,r.A.ui("suppressEmptyUneditable"),null,b),k=(0,u.K)(c),C=p.t[k];void 0===C&&(C={style:""});var E=C.style||"",_=o.i.textInputStyle+E,T=e.createElement("input");T.style=_,w.appendChild(T),T.setAttribute("type",C.type?C.type:"text");var j=(T.getAttribute("type")||"").toLowerCase(),S="date"===j||"datetime-local"===j,L=x.anyJS(c,r.A.ui("size"))||s.A.textInputSize||20;T.setAttribute("size",L);var R=x.any(c,r.A.ui("maxLength"));T.setAttribute("maxLength",R?""+R:s.A.basicMaxLength),f=f||h(i,y,f);var N=x.any(i,y,void 0,f);if(N||(N=x.any(c,r.A.ui("default"))),N&&N.value&&C.uriPrefix?T.value=decodeURIComponent(N.value.replace(C.uriPrefix,"")).replace(/ /g,""):N&&(T.value=N.value||N.value||""),T.setAttribute("style",_),!x.updater)throw new Error("kb has no updater");return x.updater.editable(f.uri)?(T.addEventListener("keyup",function(e){C.pattern&&T.setAttribute("style",_+(T.value.match(C.pattern)?"color: green;":"color: red;"))},!0),T.addEventListener("change",function(t){if(S&&e.activeElement===T)T.dataset&&(T.dataset.deferredChange="true");else if(!C.pattern||T.value.match(C.pattern)){var n=!S;n&&(T.disabled=!0),T.setAttribute("style",_+"color: gray;");var o,s=x.statementsMatching(i,y);C.namedNode?o=x.sym(T.value):C.uriPrefix?(o=encodeURIComponent(T.value.replace(/ /g,"")),o=x.sym(C.uriPrefix+T.value)):o=C.dt?new a.Literal(T.value.trim(),void 0,r.A.xsd(C.dt)):new a.Literal(T.value);var c=s.map(function(e){return(0,a.st)(e.subject,e.predicate,o,e.why)});0===c.length&&(c=[(0,a.st)(i,y,o,f)]),function e(t,n,a){var i=[];if(n.forEach(function(e){i.includes(e.why.uri)||i.push(e.why.uri)}),t.forEach(function(e){i.includes(e.why.uri)||i.push(e.why.uri)}),0===i.length)throw new Error("updateMany has no docs to patch");if(!x.updater)throw new Error("kb has no updater");if(1===i.length)return x.updater.update(t,n,a);var r=i.pop(),o=n.filter(function(e){return e.why.uri===r}),s=n.filter(function(e){return e.why.uri!==r}),c=t.filter(function(e){return e.why.uri===r}),l=t.filter(function(e){return e.why.uri!==r});x.updater.update(c,o,function(t,n,i){n?e(l,s,a):a(t,n,i)})}(s,c,function(t,a,i){a?(n&&(T.disabled=!1),T.setAttribute("style",_)):g.appendChild((0,l.F)(e,i)),v(a,i)})}},!0),T.addEventListener("blur",function(e){if(S&&T.dataset&&"true"===T.dataset.deferredChange){delete T.dataset.deferredChange;var t=new Event("change",{bubbles:!0});T.dispatchEvent(t)}},!0),g):(T.readOnly=!0,T.style=o.i.textInputStyleUneditable+E,A&&""===T.value&&(g.style.display="none"),g)}},9086(e,t,n){n.d(t,{K:()=>c,ZZ:()=>s,rg:()=>l});var a=n(3138),i=n(4158),r=n(3468),o=a.solidLogicSingleton.store,s={};function c(e){var t=o,n=t.findTypeURIs(e),a=t.bottomTypeURIs(n),i=[];for(var r in a)i.push(r);return i[0]}function l(e,t){var n=c(t),a=s[n];return(0,i.debug)("paneUtils: Going to implement field "+t+" of type "+n),a||function(e,a){var i=(0,r.F)(e,"No handler for field "+t+" of type "+n);return a&&a.appendChild(i),i}}},588(e,t,n){n.d(t,{t:()=>s});var a,i=n(4467),r=n(1795),o=n(675),s=(a={},(0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)(a,r.A.ui("ColorField").uri,{size:9,type:"color",style:"height: 3em;",dt:"color",pattern:/^\s*#[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]([0-9a-f][0-9a-f])?\s*$/}),r.A.ui("DateField").uri,{size:20,type:"date",dt:"date",pattern:/^\s*[0-9][0-9][0-9][0-9](-[0-1]?[0-9]-[0-3]?[0-9])?Z?\s*$/}),r.A.ui("DateTimeField").uri,{size:20,type:"datetime-local",dt:"dateTime",pattern:/^\s*[0-9][0-9][0-9][0-9](-[0-1]?[0-9]-[0-3]?[0-9])?(T[0-2][0-9]:[0-5][0-9](:[0-5][0-9])?)?Z?\s*$/}),r.A.ui("TimeField").uri,{size:10,type:"time",dt:"time",pattern:/^\s*([0-2]?[0-9]:[0-5][0-9](:[0-5][0-9])?)\s*$/}),r.A.ui("IntegerField").uri,{size:12,style:"text-align: right;",dt:"integer",pattern:/^\s*-?[0-9]+\s*$/}),r.A.ui("DecimalField").uri,{size:12,style:"text-align: right;",dt:"decimal",pattern:/^\s*-?[0-9]*(\.[0-9]*)?\s*$/}),r.A.ui("FloatField").uri,{size:12,style:"text-align: right;",dt:"float",pattern:/^\s*-?[0-9]*(\.[0-9]*)?((e|E)-?[0-9]*)?\s*$/}),r.A.ui("SingleLineTextField").uri,{}),r.A.ui("NamedNodeURIField").uri,{namedNode:!0}),r.A.ui("TextField").uri,{}),(0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)(a,r.A.ui("PhoneField").uri,{size:20,uriPrefix:"tel:",pattern:/^\+?[\d-]+[\d]*$/}),r.A.ui("EmailField").uri,{size:30,uriPrefix:"mailto:",pattern:/^\s*.*@.*\..*\s*$/}),r.A.ui("Group").uri,{style:o.i.formGroupStyle}),r.A.ui("Comment").uri,{element:"p",style:o.i.commentStyle}),r.A.ui("Heading").uri,{element:"h3",style:o.i.formHeadingStyle}))},7673(e,t,n){n.d(t,{c:()=>c});var a=n(1795),i=n(3138),r=n(588),o=n(9086),s="https://www.w3.org/ns/css#";function c(e,t){var n=(0,o.K)(t),c=r.t[n]||{},l=i.store.any(t,a.A.ui("style"));l?"Literal"===l.termType?l&&e.setAttribute("style",l.value):i.store.statementsMatching(l,null,null,t.doc()).forEach(function(t){if(t.predicate.uri&&t.predicate.uri.startsWith(s)){var n=t.predicate.uri.slice(26);try{e.style[n]=t.object.value}catch(a){console.warn("setFieldStyle: Error setting element style ".concat(n,' to "').concat(t.object.value,'"')),console.warn('setFieldStyle: ... Element tagName was "'.concat(e.tagName||"???",'"'))}}}):c.style&&e.setAttribute("style",c.style)}},4608(e,t,n){n.r(t),n.d(t,{Group:()=>a.YJ,GroupBuilder:()=>a.ZT,GroupPicker:()=>a.Kf,PeoplePicker:()=>a.OU,Person:()=>a._A,addStyleSheet:()=>r.CS,allClassURIs:()=>r.Pg,appendForm:()=>c.f6,askName:()=>r.RG,attachmentList:()=>r.sf,basicField:()=>c.PM,buildCheckboxForm:()=>c.WY,button:()=>r.x6,cancelButton:()=>r.x7,clearElement:()=>r.EW,complain:()=>r.cc,continueButton:()=>r.kz,createLinkDiv:()=>r.UH,createLinkForURI:()=>o.O,createNameDiv:()=>r.ly,defaultAnnotationStore:()=>r.Qf,deleteButtonWithCheck:()=>r.Qy,editFormButton:()=>c.Nt,errorMessageBlock:()=>s.F,extractLogURI:()=>r.er,faviconOrDefault:()=>r.PO,field:()=>c.ZZ,fieldFunction:()=>c.rg,fieldLabel:()=>c.bk,fieldParams:()=>c.tk,fieldStore:()=>c.WG,fileUploadButtonDiv:()=>r.fT,findClosest:()=>c.Ru,findImage:()=>r.F1,findImageFromURI:()=>r.ZT,formatDateTime:()=>r.r6,formsFor:()=>c.Dk,iconForClass:()=>r.p_,imagesOf:()=>r.IC,index:()=>r.Pe,isAudio:()=>r.JK,isImage:()=>r.wu,isVideo:()=>r.cZ,linkButton:()=>r.$J,linkIcon:()=>o.w,makeDescription:()=>c.eR,makeDraggable:()=>i.eB,makeDropTarget:()=>i.DK,makeSelectForCategory:()=>c.s2,makeSelectForChoice:()=>c.LX,makeSelectForClassifierOptions:()=>c.LC,makeSelectForNestedCategory:()=>c.L1,makeSelectForOptions:()=>c.iU,mostSpecificClassURI:()=>c.K,newButton:()=>c.vx,newThing:()=>c.xV,openHrefInOutlineMode:()=>r.ol,personTR:()=>r.Cl,promptForNew:()=>c.e2,propertiesForClass:()=>c.ZA,propertyTriage:()=>r.uA,publicData:()=>p,refreshTree:()=>r.uS,removeButton:()=>r.DT,renderAsDiv:()=>r.Ss,renderAsRow:()=>r.ri,renderAutoComplete:()=>u.r,renderAutocompleteControl:()=>l.A,renderNameValuePair:()=>c.Nr,selectorPanel:()=>r.Ag,selectorPanelRefresh:()=>r.RS,setImage:()=>r.g7,setName:()=>r.i,setVisible:()=>u.L,shortDate:()=>r.XV,shortTime:()=>r.Mj,sortByLabel:()=>c.eb,sortBySequence:()=>c.tE,timestamp:()=>r.vE,uploadFiles:()=>i.Zn});var a=n(5747),i=n(386),r=n(3291),o=n(9326),s=n(3468),c=n(1763),l=n(9238),u=n(3693),p=n(8702)},4101(e,t,n){n.d(t,{N:()=>c});var a=n(9394),i=n(3029),r=n(2901),o=n(4467),s=n(5561),c=function(){return(0,r.A)(function e(t){var n=t.data,a=t.itemTemplate,r=t.noData,s=t.noResults,c=t.placeholder,l=t.select,u=t.container,p=t.tagTemplate,d=t.textField,m=t.valueField;(0,i.A)(this,e),(0,o.A)(this,"_data",void 0),(0,o.A)(this,"_domElements",void 0),(0,o.A)(this,"_event",function(){}),(0,o.A)(this,"_itemTemplate",void 0),(0,o.A)(this,"_multiselect",void 0),(0,o.A)(this,"_noData",void 0),(0,o.A)(this,"_noResults",void 0),(0,o.A)(this,"_options",[]),(0,o.A)(this,"_placeholder",void 0),(0,o.A)(this,"_select",void 0),(0,o.A)(this,"_selectContainer",void 0),(0,o.A)(this,"_selectedOptions",[]),(0,o.A)(this,"_tagTemplate",void 0),(0,o.A)(this,"_textField",void 0),(0,o.A)(this,"_valueField",void 0),(0,o.A)(this,"_cross",'\n <svg\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n d="M6.2253 4.81108C5.83477 4.42056 5.20161 4.42056 4.81108 4.81108C4.42056 5.20161 4.42056 5.83477 4.81108 6.2253L10.5858 12L4.81114 17.7747C4.42062 18.1652 4.42062 18.7984 4.81114 19.1889C5.20167 19.5794 5.83483 19.5794 6.22535 19.1889L12 13.4142L17.7747 19.1889C18.1652 19.5794 18.7984 19.5794 19.1889 19.1889C19.5794 18.7984 19.5794 18.1652 19.1889 17.7747L13.4142 12L19.189 6.2253C19.5795 5.83477 19.5795 5.20161 19.189 4.81108C18.7985 4.42056 18.1653 4.42056 17.7748 4.81108L12 10.5858L6.2253 4.81108Z"\n fill="currentColor"\n />\n </svg>\n '),this._data=null!=n?n:[],this._itemTemplate=null!=a?a:null,this._noData=null!=r?r:"No data found.",this._noResults=null!=s?s:"No results found.",this._placeholder=null!=c?c:"Select...",this._select=l,this._selectContainer=u,this._tagTemplate=null!=p?p:null,this._textField=null!=d?d:null,this._valueField=null!=m?m:null},[{key:"init",value:function(){if(!this._select||"SELECT"!==this._select.nodeName)throw new Error("The selector '".concat(this._select,"' did not select any valid select tag."));if(this._itemTemplate&&0===this._data.length)throw new Error("itemTemplate must be initialized with data from the component settings");if(this._tagTemplate&&0===this._data.length)throw new Error("tagTemplate must be initialized with data from the component settings");this._options=this._data.length>0?this._getDataFromSettings():this._getDataFromSelectTag(),this._renderMultiselect(),this._renderOptionsList(),this._domElements={clear:this._multiselect.querySelector(".multiselect__clear-btn"),input:this._multiselect.querySelector(".multiselect__input"),optionsContainer:this._multiselect.querySelector(".multiselect__options"),optionsContainerList:this._multiselect.querySelector(".multiselect__options > ul"),options:{list:this._multiselect.querySelectorAll(".multiselect__options > ul > li"),find:function(e){for(var t=0;t<this.list.length;t++){var n=this.list[t];if(e(n))return n}},some:function(e){for(var t=0;t<this.list.length;t++){if(e(this.list[t],t))return!0}return!1}}},this._enableEventListenners(),this._initSelectedList()}},{key:"subscribe",value:function(e){if("function"!=typeof e)throw new Error("parameter in the subscribe method is not a function");this._event=e}},{key:"_addOptionToList",value:function(e,t){var n=this,a='<span class="multiselect__selected" style="'.concat(s.i.multiselect__selected,'" data-value="').concat(e.value,'">').concat(this._tagTemplate?this._processTemplate(this._tagTemplate,t):e.text,'<span class="multiselect__remove-btn" style="').concat(s.i.multiselect__remove_btn,'">').concat(this._cross,"</span></span>");this._domElements.input.insertAdjacentHTML("beforebegin",a),this._multiselect.querySelector('span[data-value="'.concat(e.value,'"]')).lastElementChild.addEventListener("click",function(){var t=n._domElements.options.find(function(t){return t.dataset.value===e.value});n._handleOption(t)})}},{key:"_clearSelection",value:function(){for(var e=this,t=function(){var t=e._selectedOptions[n],a=e._domElements.options.find(function(e){return e.dataset.value===t.value});a.classList.remove("multiselect__options--selected"),a.setAttribute("style",s.i.multiselect__options),e._removeOptionFromList(a.dataset.value)},n=0;n<this._selectedOptions.length;n++)t();this._selectedOptions=[],this._handleClearSelectionBtn(),this._handlePlaceholder(),this._dispatchEvent({action:"CLEAR_ALL_OPTIONS",selection:this._selectedOptions})}},{key:"_closeList",value:function(){this._domElements.input.value="",this._domElements.optionsContainer.classList.remove("visible"),this._domElements.optionsContainer.setAttribute("style",s.i.multiselect__options),this._filterOptions(""),this._removeAllArrowSelected()}},{key:"_dispatchEvent",value:function(e){this._event(e)}},{key:"_enableEventListenners",value:function(){var e=this;document.addEventListener("mouseup",function(t){var n=t.target;e._multiselect.contains(n)||(e._filterOptions(""),e._closeList(),e._handlePlaceholder())}),this._domElements.clear.addEventListener("click",function(){e._clearSelection()});for(var t=0;t<this._domElements.options.list.length;t++){this._domElements.options.list[t].addEventListener("click",function(t){var n=t.target;e._handleOption(n),e._closeList()})}this._domElements.input.addEventListener("focus",function(){e._domElements.optionsContainer.classList.add("visible"),e._domElements.optionsContainer.setAttribute("style",s.i.multiselect__options_visible)}),this._domElements.input.addEventListener("input",function(t){var n=t.target.value;e._domElements.options.list.length>0&&e._filterOptions(n)}),this._domElements.input.addEventListener("keydown",function(t){e._handleArrows(t),e._handleBackspace(t),e._handleEnter(t)})}},{key:"_filterOptions",value:function(e){var t=this,n=this._domElements.optionsContainer.classList.contains("visible"),a=e.toLowerCase();if(!n&&e.length>0&&(this._domElements.optionsContainer.classList.add("visible"),this._domElements.optionsContainer.setAttribute("style",s.i.multiselect__options_visible)),this._domElements.options.list.length>0){for(var i=0;i<this._domElements.options.list.length;i++){var r=this._domElements.options.list[i];(this._itemTemplate?this._data[i][this._textField]:r.textContent).toLowerCase().substring(0,a.length)===a?this._domElements.optionsContainerList.appendChild(r):r.parentNode&&r.parentNode.removeChild(r)}var o=this._domElements.options.some(function(e,n){return(t._itemTemplate?t._data[n][t._textField]:e.textContent).toLowerCase().substring(0,a.length)===a});this._showNoResults(!o)}}},{key:"_generateId",value:function(e){for(var t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=0;a<e;a++)t+=n.charAt(Math.floor(62*Math.random()));return t}},{key:"_getDataFromSelectTag",value:function(){for(var e=[],t=this._select.options,n=0;n<t.length;n++){var a=t[n];e.push({text:a.text,value:a.value,selected:a.hasAttribute("selected")})}return e}},{key:"_getDataFromSettings",value:function(){if(this._data.length>0&&this._valueField&&this._textField){var e="string"==typeof this._valueField,t="string"==typeof this._textField,n=[];if(!e||!t)throw new Error("textField and valueField must be of type string");for(var a=0;a<this._data.length;a++){var i=this._data[a];n.push({value:i[this._valueField],text:i[this._textField],selected:"boolean"==typeof i.selected&&i.selected})}return n}return null}},{key:"_handleArrows",value:function(e){if(40===e.keyCode||38===e.keyCode){e.preventDefault();var t=this._domElements.optionsContainer.classList.contains("visible"),n=this._multiselect.querySelector(".multiselect__options > ul");if(t){var a=this._multiselect.querySelector(".multiselect__options ul li.arrow-selected"),i={ArrowUp:"previous",Up:"previous",ArrowDown:"next",Down:"next"};if(!a)return n.firstElementChild.classList.add("arrow-selected"),n.firstElementChild.setAttribute("style",s.i.multiselect__options_ul_li_arrow_selected),void n.firstElementChild.scrollIntoView(!1);if(a.classList.remove("arrow-selected"),a.setAttribute("style",s.i.multiselect__options_ul_li),!(a=a[i[e.key]+"ElementSibling"]))return(a=n.children["next"===i[e.key]?0:n.children.length-1]).classList.add("arrow-selected"),a.setAttribute("style",s.i.multiselect__options_ul_li_arrow_selected),void this._scrollIntoView(n,a);a.classList.add("arrow-selected"),a.setAttribute("style",s.i.multiselect__options_ul_li_arrow_selected),this._scrollIntoView(n,a)}else this._domElements.optionsContainer.classList.add("visible"),this._domElements.optionsContainer.setAttribute("style",s.i.multiselect__options_visible),n.firstElementChild.classList.add("arrow-selected"),n.firstElementChild.setAttribute("style",s.i.multiselect__options_ul_li_arrow_selected),n.firstElementChild.scrollIntoView(!1)}}},{key:"_handleBackspace",value:function(e){if(8===e.keyCode&&""===e.target.value){var t=this._selectedOptions.length>0?this._selectedOptions[this._selectedOptions.length-1]:null;if(t){var n=this._multiselect.querySelector('li[data-value="'.concat(t.value,'"]'));this._handleOption(n),0===this._selectedOptions.length&&(this._domElements.optionsContainer.classList.remove("visible"),this._domElements.optionsContainer.setAttribute("style",s.i.multiselect__options))}}}},{key:"_handleClearSelectionBtn",value:function(){this._selectedOptions.length>0?this._domElements.clear.style.display="flex":this._domElements.clear.style.display="none"}},{key:"_handleEnter",value:function(e){if(13===e.keyCode){var t=this._multiselect.querySelector(".multiselect__options ul li.arrow-selected");t&&(this._handleOption(t),this._closeList())}}},{key:"_handleOption",value:function(e){for(var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=0;n<this._selectedOptions.length;n++){if(this._selectedOptions[n].value===e.dataset.value)return e.classList.remove("multiselect__options--selected"),e.setAttribute("style",s.i.multiselect__options),this._selectedOptions.splice(n,1),this._removeOptionFromList(e.dataset.value),this._handleClearSelectionBtn(),this._handlePlaceholder(),t&&this._dispatchEvent({action:"REMOVE_OPTION",value:e.dataset.value,selection:this._selectedOptions})}for(var i=0;i<this._options.length;i++){var r=this._options[i];if(r.value===e.dataset.value)return e.classList.add("multiselect__options--selected"),e.setAttribute("style",s.i.multiselect__options_selected),this._selectedOptions=[].concat((0,a.A)(this._selectedOptions),[r]),this._addOptionToList(r,i),this._handleClearSelectionBtn(),this._handlePlaceholder(),t&&this._dispatchEvent({action:"ADD_OPTION",value:e.dataset.value,selection:this._selectedOptions})}}},{key:"_handlePlaceholder",value:function(){this._domElements.input.placeholder=this._placeholder}},{key:"_initSelectedList",value:function(){for(var e=this,t=!1,n=function(){var n=e._options[i];if(n.selected){t=!0;var r=e._domElements.options.find(function(e){return e.dataset.value===n.value});r.classList.add("multiselect__options--selected"),r.setAttribute("style",s.i.multiselect__options_selected),e._selectedOptions=[].concat((0,a.A)(e._selectedOptions),[n]),e._addOptionToList(n,i)}},i=0;i<this._options.length;i++)n();t&&this._handleClearSelectionBtn(),this._handlePlaceholder()}},{key:"_processTemplate",value:function(e,t){for(var n=e,a=e.match(/\$\{(\w+)\}/g).map(function(e){return e.replace(/\$\{|\}/g,"")}),i=0;i<a.length;i++){var r,o=a[i];n=n.replace("${".concat(o,"}"),null!==(r=this._data[t][o])&&void 0!==r?r:"")}return n}},{key:"_removeAllArrowSelected",value:function(){var e="arrow-selected",t=this._domElements.options.find(function(t){return t.classList.contains(e)});t&&t.classList.remove(e)&&t.setAttribute("style",s.i.multiselect__options_ul_li)}},{key:"_removeOptionFromList",value:function(e){var t=this._multiselect.querySelector('span[data-value="'.concat(e,'"]'));t&&t.parentNode&&t.parentNode.removeChild(t)}},{key:"_renderOptionsList",value:function(){var e=this,t='\n <div class="multiselect__options" style="'.concat(s.i.multiselect__options,'">\n <ul style="').concat(s.i.multiselect__options_ul,'">\n ').concat(this._options.length>0&&!this._itemTemplate?this._options.map(function(e){return'\n <li data-value="'.concat(e.value,'" style="').concat(s.i.multiselect__options_ul_li,'">').concat(e.text,"</li>\n ")}).join(""):"","\n\n ").concat(this._options.length>0&&this._itemTemplate?this._options.map(function(t,n){return'\n <li data-value="'.concat(t.value,'" style="').concat(s.i.multiselect__options_ul_li,'">').concat(e._processTemplate(e._itemTemplate,n),"</li>\n ")}).join(""):"","\n ").concat(this._showNoData(0===this._options.length),"\n </ul>\n </div>\n ");this._multiselect.insertAdjacentHTML("beforeend",t)}},{key:"_renderMultiselect",value:function(){this._select.style.display="none";var e="iconic-"+this._generateId(20);this._multiselect=document.createElement("div"),this._multiselect.setAttribute("id",e),this._multiselect.setAttribute("class","multiselect__container"),this._multiselect.setAttribute("style",s.i.multiselect__container);var t='\n <div class="multiselect__wrapper" style="'.concat(s.i.multiselect__wrapper,'">\n <input class="multiselect__input" style="').concat(s.i.multiselect__input,'" placeholder="').concat(this._placeholder,'" />\n </div>\n <span style="display: none;" class="multiselect__clear-btn" style="').concat(s.i.multiselect__clear_btn,'">').concat(this._cross,"</span>\n ");this._multiselect.innerHTML=t,this._selectContainer.appendChild(this._multiselect)}},{key:"_scrollIntoView",value:function(e,t){var n=e.getBoundingClientRect(),a=t.getBoundingClientRect();n.top<a.bottom-t.offsetHeight||(e.scrollTop=t.clientHeight+(t.offsetTop-t.offsetHeight)),n.bottom>a.top+t.offsetHeight||(e.scrollTop=t.clientHeight+(t.offsetTop-t.offsetHeight)-(e.offsetHeight-(t.offsetHeight+(t.offsetHeight-t.clientHeight))))}},{key:"_showNoData",value:function(e){return e?'<p class="multiselect__options--no-data" style="'.concat(s.i.multiselect__options_ul_p_multiselect__options_no_data,'">').concat(this._noData,"</p>"):""}},{key:"_showNoResults",value:function(e){var t=this._multiselect.querySelector(".multiselect__options--no-results");if(e){var n='<p class="multiselect__options--no-results" style="'.concat(s.i.multiselect__options_ul_p_multiselect__options_no_results,'">').concat(this._noResults,"</p>");!t&&this._domElements.optionsContainerList.insertAdjacentHTML("beforeend",n)}else t&&t.parentNode&&t.parentNode.removeChild(t)}}])}()},5747(e,t,n){n.d(t,{Kf:()=>b,OU:()=>x,YJ:()=>g,ZT:()=>y,_A:()=>w});var a,i=n(7528),r=n(3029),o=n(2901),s=n(580),c=n.n(s),l=n(4296),u=n(4961),p=n(7423),d=n(386),m=n(3468),f=n(3378),h=n(1795),v=n(3138).solidLogicSingleton.store,x=function(){return(0,o.A)(function e(t,n,a,i){(0,r.A)(this,e),this.options=i||{},this.element=t,this.typeIndex=n,this.groupPickedCb=a,this.selectedgroup=this.options.selectedgroup,this.onSelectGroup=this.onSelectGroup.bind(this)},[{key:"render",value:function(){var e=this,t=document.createElement("div");if(t.style.maxWidth="350px",t.style.minHeight="200px",t.style.outline="1px solid black",t.style.display="flex",this.selectedgroup){t.style.flexDirection="column";var n=document.createElement("div");new g(n,this.selectedgroup).render();var a=document.createElement("button");a.textContent=c()("Change group"),a.addEventListener("click",function(t){e.selectedgroup=null,e.render()}),t.appendChild(n),t.appendChild(a)}else this.findAddressBook(this.typeIndex).then(function(n){var a=n.book,i=document.createElement("button");i.textContent=c()("Pick an existing group"),i.style.margin="auto",i.addEventListener("click",function(n){new b(t,a,e.onSelectGroup).render()});var r=document.createElement("button");r.textContent=c()("Create a new group"),r.style.margin="auto",r.addEventListener("click",function(t){e.createNewGroup(a,e.options.defaultNewGroupName).then(function(t){var n=t.group;new y(e.element,a,n,e.onSelectGroup).render()}).catch(function(t){e.element.appendChild((0,m.F)(document,c()("Error creating a new group. (".concat(t,")"))))})}),t.appendChild(i),t.appendChild(r),e.element.innerHTML="",e.element.appendChild(t)}).catch(function(t){e.element.appendChild((0,m.F)(document,c()("Could find your groups. (".concat(t,")"))))});return this.element.innerHTML="",this.element.appendChild(t),this}},{key:"findAddressBook",value:function(e){return new Promise(function(t,n){v.fetcher.nowOrWhenFetched(e,function(a,i){if(!a)return n(i);var r=v.any(null,h.A.solid("forClass"),h.A.vcard("AddressBook"));if(!r)return n(new Error("no address book registered in the solid type index "+e));var o=v.any(r,h.A.solid("instance"));if(!o)return n(new Error("incomplete address book registration"));v.fetcher.load(o).then(function(e){return t({book:o})}).catch(function(e){return n(new Error("Could not load address book "+e))})})})}},{key:"createNewGroup",value:function(e,t){var n=C(e),a=n.groupIndex,i=n.groupContainer,r=u.sym("".concat(i.uri).concat((0,l.A)().slice(0,8),".ttl#this")),o=t||"Untitled Group",s=[r.doc(),a].map(function(t){var n=u.st(r,h.A.rdf("type"),h.A.vcard("Group"),t),i=u.st(r,h.A.vcard("fn"),o,r.doc(),t),s=u.st(e,h.A.vcard("includesGroup"),r,t),c=t.equals(a)?[n,i,s]:[n,i];return k(t.uri,{toIns:c}).then(function(){c.forEach(function(e){v.add(e)})})});return Promise.all(s).then(function(){return{group:r}}).catch(function(e){throw p.Rm("Could not create new group. PATCH failed "+e),new Error("Couldn't create new group. PATCH failed for (".concat(e.xhr?e.xhr.responseURL:""," )"))})}},{key:"onSelectGroup",value:function(e){this.selectedgroup=e,this.groupPickedCb(e),this.render()}}])}(),b=function(){return(0,o.A)(function e(t,n,a){(0,r.A)(this,e),this.element=t,this.book=n,this.onSelectGroup=a},[{key:"render",value:function(){var e=this;return this.loadGroups().then(function(t){var n=document.createElement("div");n.style.display="flex",n.style.flexDirection="column",t.forEach(function(t){var a=document.createElement("button");a.addEventListener("click",e.handleClickGroup(t)),new g(a,t).render(),n.appendChild(a)}),e.element.innerHTML="",e.element.appendChild(n)}).catch(function(t){e.element.appendChild((0,m.F)(document,c()("There was an error loading your groups. (".concat(t,")"))))}),this}},{key:"loadGroups",value:function(){var e=this;return new Promise(function(t,n){var a=C(e.book).groupIndex;v.fetcher.nowOrWhenFetched(a,function(a,i){if(!a)return n(i);var r=v.each(e.book,h.A.vcard("includesGroup"));return t(r)})})}},{key:"handleClickGroup",value:function(e){var t=this;return function(n){t.onSelectGroup(e)}}}])}(),g=function(){return(0,o.A)(function e(t,n){(0,r.A)(this,e),this.element=t,this.group=n},[{key:"render",value:function(){var e=document.createElement("div");return e.textContent=c()(A(this.group,h.A.vcard("fn"),"[".concat(this.group.value,"]"))),this.element.innerHTML="",this.element.appendChild(e),this}}])}(),y=function(){return(0,o.A)(function e(t,n,a,i,o){(0,r.A)(this,e),this.element=t,this.book=n,this.group=a,this.onGroupChanged=function(e,t,n){o&&o(e,t,n)},this.groupChangedCb=o,this.doneBuildingCb=i},[{key:"refresh",value:function(){}},{key:"render",value:function(){var e=this,t=document.createElement("div");t.style.maxWidth="350px",t.style.minHeight="200px",t.style.outline="1px solid black",t.style.display="flex",t.style.flexDirection="column",(0,d.DK)(t,function(t){t.forEach(function(t){e.add(t).catch(function(t){e.element.appendChild((0,m.F)(document,c()("Could not add the given WebId. (".concat(t,")"))))})})});var n=document.createElement("input");n.type="text",n.value=A(this.group,h.A.vcard("fn"),"Untitled Group"),n.addEventListener("change",function(t){e.setGroupName(t.target.value).catch(function(t){e.element.appendChild((0,m.F)(document,"Error changing group name. (".concat(t,")")))})});var r=document.createElement("label");if(r.textContent=c()("Group Name:"),r.appendChild(n),t.appendChild(r),v.any(this.group,h.A.vcard("hasMember")))v.match(this.group,h.A.vcard("hasMember")).forEach(function(n){var a=n.object,i=document.createElement("div");new w(i,a,e.handleRemove(a)).render(),t.appendChild(i)});else{var o=document.createElement("p");o.textContent=c()(a||(a=(0,i.A)(["\n To add someone to this group, drag and drop their WebID URL onto the box.\n "]))),t.appendChild(o)}var s=document.createElement("button");return s.textContent=c()("Done"),s.addEventListener("click",function(t){e.doneBuildingCb(e.group)}),t.appendChild(s),this.element.innerHTML="",this.element.appendChild(t),this}},{key:"add",value:function(e){var t=this;return new Promise(function(n,a){v.fetcher.nowOrWhenFetched(e,function(i,r){if(!i)return t.onGroupChanged(r),a(r);var o=u.namedNode(e),s=v.any(o,h.A.rdf("type"));return s&&s.equals(h.A.foaf("Person"))?n(o):a(new Error("Only people supported right now. (tried to add something of type ".concat(s.value,")")))})}).then(function(e){var n=u.st(t.group,h.A.vcard("hasMember"),e);return v.holdsStatement(n)?e:k(t.group.doc().uri,{toIns:[n]}).then(function(){n.why=t.group.doc(),v.add(n),t.onGroupChanged(null,"added",e),t.render()})})}},{key:"handleRemove",value:function(e){var t=this;return function(n){var a=u.st(t.group,h.A.vcard("hasMember"),e);return k(t.group.doc().uri,{toDel:[a]}).then(function(){return v.remove(a),t.onGroupChanged(null,"removed",e),t.render(),!0}).catch(function(t){var n=v.any(e,h.A.foaf("name")),a=n&&n.value?"Could not remove ".concat(n.value,". (").concat(t,")"):"Could not remove ".concat(e.value,". (").concat(t,")");throw new Error(a)})}}},{key:"setGroupName",value:function(e){var t=this,n=C(this.book).groupIndex,a=[this.group.doc(),n].map(function(n){var a=v.match(t.group,h.A.vcard("fn"),null,n),i=u.st(t.group,h.A.vcard("fn"),u.literal(e));return k(n.value,{toDel:a,toIns:[i]}).then(function(e){v.removeStatements(a),i.why=n,v.add(i)})});return Promise.all(a)}}])}(),w=function(){return(0,o.A)(function e(t,n,a){(0,r.A)(this,e),this.webIdNode=n,this.element=t,this.handleRemove=a},[{key:"render",value:function(){var e=this,t=document.createElement("div");t.style.display="flex";var n=A(this.webIdNode,h.A.foaf("img"),f.LN+"noun_15059.svg"),a=document.createElement("img");a.src=c()(n),a.width="50",a.height="50",a.style.margin="5px";var i=A(this.webIdNode,h.A.foaf("name"),"[".concat(this.webIdNode,"]")),r=document.createElement("span");r.innerHTML=c()(i),r.style.flexGrow="1",r.style.margin="auto 0";var o=document.createElement("button");return o.textContent="Remove",o.addEventListener("click",function(t){return e.handleRemove().catch(function(t){e.element.appendChild((0,m.F)(document,c()("".concat(t))))})}),o.style.margin="5px",t.appendChild(a),t.appendChild(r),t.appendChild(o),this.element.innerHTML="",this.element.appendChild(t),this}}])}();function A(e,t,n){var a=v.any(e,t);return a?a.value:n}function k(e,t){var n=t.toDel,a=t.toIns;return new Promise(function(e,t){v.updater.update(n,a,function(n,a,i){if(!a)return t(new Error("PATCH failed for resource <".concat(n,">: ").concat(i)));e()})})}function C(e){return{groupIndex:v.any(e,h.A.vcard("groupIndex")),groupContainer:v.sym(e.dir().uri+"Group/")}}},9287(e,t,n){n.d(t,{I1:()=>i,lx:()=>r,ts:()=>o});var a=n(675),i=function(e,t,n){var a=e.createElement("tr");return a.appendChild(e.createElement("td")).appendChild(t),a.subject=n,a},r=function(e,t){e.addEventListener("click",t)},o=function(e,t,n){var i=t.appendChild(e.createElement("div"));i.setAttribute("style",a.i.imageDivStyle),i.appendChild(n),n.setAttribute("draggable","false")}},580(e){
|
|
6
|
+
const i={multiselect__container:"\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n background-color: #fff;\n border-radius: 2px;\n -webkit-box-shadow: 0 1px 3px 0 #d1d1d2, 0 0 0 1px #d1d1d2;\n box-shadow: 0 1px 3px 0 #d1d1d2, 0 0 0 1px #d1d1d2;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n min-height: 36px;\n padding: 4px 8px 0 8px;\n position: relative;\n width: 354px;\n margin-bottom: 5px;\n font-size: 100%\n ",multiselect__wrapper:"\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n height: 100%;\n width: 100%;\n ",multiselect__clear_btn:"\n cursor: pointer;\n align-items: center;\n margin-bottom: 4px;\n margin-left: 4px;\n ",multiselect__options:"\n background-color: #f6f6f6;\n border-radius: 2px;\n left: 0;\n max-height: 0;\n overflow: hidden;\n position: absolute;\n top: calc(100% + 3px);\n z-index: 9999;\n width: 100%;\n opacity: 0;\n transition: max-height 0.1s ease;\n ",multiselect__options_visible:"\n background-color: #f6f6f6;\n border-radius: 2px;\n left: 0;\n max-height: 0;\n overflow: hidden;\n position: absolute;\n top: calc(100% + 3px);\n z-index: 9999;\n width: 100%;\n opacity: 0;\n transition: max-height 0.1s ease;\n max-height: 200px;\n -webkit-box-shadow: 0 1px 3px 0 #d1d1d2, 0 0 0 1px #d1d1d2;\n box-shadow: 0 1px 3px 0 #d1d1d2, 0 0 0 1px #d1d1d2;\n opacity: 1;\n transition: max-height 0.2s ease;\n ",multiselect__options_ul:"\n list-style: none;\n margin: 0;\n padding: 2px 0;\n max-height: 200px;\n overflow: auto;\n ",multiselect__options_ul_li:"\n cursor: pointer;\n padding: 4px 8px;\n ",multiselect__options_ul_li_hover:"\n background-color: #dedede;\n ",multiselect__options_ul_p_multiselect__options_no_results:"\n margin: 0;\n padding: 8px;\n text-align: center;\n ",multiselect__options_ul_p_multiselect__options_no_data:"\n margin: 0;\n padding: 8px;\n text-align: center;\n ",multiselect__options_ul_li_multiselect__options_selected:"\n background-color: #656565;\n color: #fff;\n ",multiselect__options_ul_li_multiselect__options_selected_hover:"\n background-color: #656565;\n ",multiselect__options_ul_li_arrow_selected:"\n border: 2px solid rgba(101, 101, 101, 0.5);\n ",multiselect__selected:"\n background-color: #656565;\n border-radius: 2px;\n color: #fff;\n margin-bottom: 4px;\n margin-right: 4px;\n padding: 4px 8px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n ",multiselect__selected_multiselect__remove_btn:"\n cursor: pointer;\n display: flex;\n margin-left: 6px;\n ",multiselect__input:"\n border: none;\n -ms-flex-preferred-size: 40%;\n flex-basis: 40%;\n -webkit-box-flex: 1;\n -ms-flex-positive: 1;\n flex-grow: 1;\n height: 5px; \n margin-bottom: 4px;\n min-width: 40%;\n outline: none; \n ",setStyle:function(e,t){e.style=i[t]}}},2174(e,t,n){n.d(t,{I:()=>d});var i=n(7423),a=n(3378),o=n(3138),s=n(4158),r=n(1795),c=n(4961),l=n(52),p=n(4608);const u={icons:a.Pt,log:s,ns:r.A,utils:l,widgets:p};function d(e,t){const n=t.sourceDocument,a=t.tableClass,s=t.query,r=u.ns,p=o.store,d={},m={"http://www.w3.org/2002/07/owl#sameAs":!0,"http://www.w3.org/1999/02/22-rdf-syntax-ns#type":!0},f={"http://www.w3.org/2001/XMLSchema#decimal":!0,"http://www.w3.org/2001/XMLSchema#float":!0,"http://www.w3.org/2001/XMLSchema#double":!0,"http://www.w3.org/2001/XMLSchema#integer":!0,"http://www.w3.org/2001/XMLSchema#nonNegativeInteger":!0,"http://www.w3.org/2001/XMLSchema#positiveInteger":!0,"http://www.w3.org/2001/XMLSchema#nonPositiveInteger":!0,"http://www.w3.org/2001/XMLSchema#negativeInteger":!0,"http://www.w3.org/2001/XMLSchema#long":!0,"http://www.w3.org/2001/XMLSchema#int":!0,"http://www.w3.org/2001/XMLSchema#short":!0,"http://www.w3.org/2001/XMLSchema#byte":!0,"http://www.w3.org/2001/XMLSchema#unsignedLong":!0,"http://www.w3.org/2001/XMLSchema#unsignedInt":!0,"http://www.w3.org/2001/XMLSchema#unsignedShort":!0,"http://www.w3.org/2001/XMLSchema#unsignedByte":!0},h={"http://www.w3.org/2001/XMLSchema#dateTime":!0,"http://www.w3.org/2001/XMLSchema#date":!0},g={"http://xmlns.com/foaf/0.1/Image":!0,"http://purl.org/dc/terms/Image":!0},b=t.keyVariable||"?_row";let x,v,y,w,C=0,A=null,E=null;const k=e.createElement("div");k.className="tableViewPane",k.appendChild(function(){const t=e.createElement("table");t.setAttribute("class","toolbar");const n=e.createElement("tr");return y=e.createElement("td"),n.appendChild(y),w=e.createElement("td"),n.appendChild(w),t.appendChild(n),t}());const T=e.createElement("div");let L;if(k.appendChild(T),k.refresh=function(){X(L.query,L.logicalRows,L.columns,L)},s)L=ne(s),T.appendChild(L);else{const t=function(){let e,t;const i=function(){const e={},t=p.statementsMatching(void 0,u.ns.rdf("type"),a,n),i={};for(let n=0;n<t.length;++n){const a=t[n].object;if("NamedNode"!==a.termType)continue;const o=O(e,a);a.uri in i||(i[a.uri]=[]),i[a.uri].push(t[n].subject),o.addUse()}return[i,e]}();e=i[0],t=i[1];for(const n in e){const i=e[n];F(t[n],i)}const o=new R(null);return[o,B(t)]}();x=t[0],v=t[1],a||y.appendChild(function(t,n){const i=e.createElement("div");i.appendChild(e.createTextNode("Select type: "));const a=e.createElement("select");a.appendChild(I("All types","null"));for(const e in n)a.appendChild(I(n[e].getLabel(),e));return a.addEventListener("click",function(){let e;e="null"===a.value?t:n[a.value],_(e)},!1),i.appendChild(a),i}(x,v)),E=function(e){let t,n=-1,i=null;for(t in e){const a=e[t];a.useCount>n&&(i=a,n=a.useCount)}return i}(v),_(E||x)}return k;function j(e){const t=new c.Query,n=p.variable(b.slice(1));return function(e,t){const n=t.getColumns();for(let t=0;t<n.length;++t){const i=p.variable("_col"+t);e.vars.push(i),n[t].setVariable(i)}}(t,e),function(e,t,n){let i=n.type;i||(i=p.variable("_any")),e.pat.add(t,u.ns.rdf("type"),i)}(t,n,e),function(e,t,n){const i=n.getColumns();for(let n=0;n<i.length;++n){const a=i[n],o=p.formula();o.add(t,a.predicate,a.getVariable()),e.pat.optional.push(o)}}(t,n,e),t}function _(t){S(w),w.appendChild(function(t){const n=e.createElement("div"),i=t.getUnusedColumns();if(i.sort(function(e,t){const n=e.sortKey(),i=t.sortKey();return(n>i)-(n<i)}),i.length>0){n.appendChild(e.createTextNode("Add column: "));const a=e.createElement("select");a.appendChild(I("","-1"));for(let e=0;e<i.length;++e){const t=i[e];a.appendChild(I(t.getLabel(),""+e))}n.appendChild(a),a.addEventListener("click",function(){const e=Number(a.value);e>=0&&(t.addColumn(i[e]),_(t))},!1)}return n}(t));!function(e,t){A&&(A.running=!1);const n=ne(e,t);S(T),T.appendChild(n),A=e}(j(t),t)}function S(e){for(;e.childNodes.length>0;)e.removeChild(e.childNodes[0])}function R(e){this.type=e,this.columns=null,this.allColumns=[],this.useCount=0,this.getAllColumns=function(){return this.allColumns},this.getColumns=function(){if(!this.columns){const e=this.getAllColumns();this.columns=e.slice(0,7)}return this.columns},this.getUnusedColumns=function(){const e=this.getAllColumns(),t=this.getColumns(),n=[];for(let i=0;i<e.length;++i)-1===t.indexOf(e[i])&&n.push(e[i]);return n},this.addColumn=function(e){this.columns.push(e)},this.removeColumn=function(e){this.columns=this.columns.filter(function(t){return t!==e})},this.getLabel=function(){return l.label(this.type)},this.addUse=function(){this.useCount+=1}}function N(){this.useCount=0,this.checkedAnyValues=!1,this.possiblyLiteral=!0,this.possiblyNumber=!0,this.constraints=[],this.checkValue=function(e){const t=e.termType;if(this.possiblyLiteral&&"Literal"!==t&&"NamedNode"!==t)this.possiblyNumber=!1,this.possiblyLiteral=!1;else if(this.possiblyNumber)if("Literal"!==t)this.possiblyNumber=!1;else{e.value.match(/^-?\d+(\.\d*)?$/)||(this.possiblyNumber=!1)}this.checkedAnyValues=!0},this.getVariable=function(){return this.variable},this.setVariable=function(e){this.variable=e},this.getKey=function(){return this.variable.toString()},this.addUse=function(){this.useCount+=1},this.getHints=function(){return t&&t.hints&&this.variable&&t.hints[this.variable.toNT()]?t.hints[this.variable.toNT()]:{}},this.getLabel=function(){return this.getHints().label?this.getHints().label:this.predicate?this.predicate.sameTerm(r.rdf("type"))&&this.superClass?l.label(this.superClass,!0):l.label(this.predicate):this.variable?this.variable.toString():"unlabeled column?"},this.setPredicate=function(e,t,n){t?(this.inverse=e,this.constraints=this.constraints.concat(p.each(e,u.ns.rdfs("domain"))),e.sameTerm(r.rdfs("subClassOf"))&&"NamedNode"===n.termType&&(this.superClass=n,this.alternatives=p.each(void 0,r.rdfs("subClassOf"),n))):(this.predicate=e,this.constraints=this.constraints.concat(p.each(e,u.ns.rdfs("range"))))},this.getConstraints=function(){return this.constraints},this.filterFunction=function(){return!0},this.sortKey=function(){return this.getLabel().toLowerCase()},this.isImageColumn=function(){for(let e=0;e<this.constraints.length;e++)if(this.constraints[e].uri in g)return!0;return!1}}function B(e,t){const n=[];for(const i in e){const a=e[i];t&&!t(i,a)||n.push(a)}return n}function I(t,n){const i=e.createElement("option");return i.setAttribute("value",n),i.appendChild(e.createTextNode(t)),i}function D(e,t){let n;return t.uri in e?n=e[t.uri]:(n=new N,n.setPredicate(t),e[t.uri]=n),n}function O(e,t){let n;return t.uri in e?n=e[t.uri]:(n=new R(t),e[t.uri]=n),n}function M(e,t){const i=p.statementsMatching(e,void 0,void 0,n),a={};for(let e=0;e<i.length;++e){const n=i[e].predicate;if(n.uri in m)continue;const o=D(t,n);o.checkValue(i[e].object),a[n.uri]=o}return a}function F(e,t){const n={};for(let e=0;e<t.length;++e){const i=M(t[e],n);for(const e in i){i[e].addUse()}}const i=B(n);!function(e){function t(e,t){return(e.useCount<t.useCount)-(e.useCount>t.useCount)}e.sort(t)}(i),e.allColumns=i}function P(t,n){const i=e.createElement("a");return i.appendChild(e.createTextNode("[x]")),i.addEventListener("click",function(){t.removeColumn(n),_(t)},!1),i}function z(e,t){let n=!0;for(let i=0;i<t.length;++i){const a=t[i],o=a.getKey();let s=null;if(o in e.values&&(s=e.values[o][0]),!a.filterFunction(s)){n=!1;break}}const i=e._htmlRow;i.style.display=n?"":"none"}function U(e,t){for(let n=0;n<e.length;++n){z(e[n],t)}}function $(e,t,n){function i(e){return e?"Literal"===e.termType?e.value.toLowerCase():"NamedNode"===e.termType?l.label(e).toLowerCase():e.value.toLowerCase():""}!function(e,t,n,i){const a=t.getKey();if(e.sort(function(e,t){let o=null,s=null;a in e.values&&(o=e.values[a][0]),a in t.values&&(s=t.values[a][0]);const r=n(o,s);return i?-r:r}),e.length){const t=e[0]._htmlRow.parentNode;for(let n=0;n<e.length;++n)t.removeChild(e[n]._htmlRow);for(let n=0;n<e.length;++n)t.appendChild(e[n]._htmlRow)}}(e,t,function(e,t){const n=i(e),a=i(t);return n<a?-1:n>a?1:0},n)}function q(t,n,i){const a=e.createElement("div"),o=e.createElement("input");o.setAttribute("type","text"),o.style.width="70%",a.appendChild(o);const s=e.createElement("span");s.appendChild(e.createTextNode("▼")),s.addEventListener("click",function(){$(t,i,!1)},!1),a.appendChild(s);const r=e.createElement("span");r.appendChild(e.createTextNode("▲")),r.addEventListener("click",function(){$(t,i,!0)},!1),a.appendChild(r);let c=null;return i.filterFunction=function(e){if(c){if(e){let t;return t="Literal"===e.termType?e.value:"NamedNode"===e.termType?l.label(e):"",t.toLowerCase().indexOf(c)>=0}return!1}return!0},o.addEventListener("keyup",function(){c=""!==o.value?o.value.toLowerCase():null,U(t,n)},!1),a}function H(t,n,i,a){const o=e.createElement("div"),s=e.createElement("select");let r={};for(let e=0;e<a.length;++e){const t=a[e];r[t.uri]=!0}const c=W(i).initialSelection;c&&(r=c),s.setAttribute("multiple","true");for(let e=0;e<a.length;++e){const t=a[e],n=I(l.label(t),e);r[t.uri]&&(n.selected=!0),s.appendChild(n)}return o.appendChild(s),i.filterFunction=function(e){return!r||e&&r[e.uri]},s.addEventListener("click",function(){{r={};const e=s.options;for(let t=0;t<e.length;t++){const n=e[t],i=Number(n.value);e[t].selected&&(r[a[i].uri]=!0)}}U(t,n)},!0),o}function V(t,n,i){const a=e.createElement("div"),o=e.createElement("input");o.setAttribute("type","text"),o.style.width="40px",a.appendChild(o);const s=e.createElement("input");s.setAttribute("type","text"),s.style.width="40px",a.appendChild(s);let r=null,c=null;function l(){r=""===o.value?null:Number(o.value),c=""===s.value?null:Number(s.value),U(t,n)}return i.filterFunction=function(e){return e&&(e=Number(e)),!(r&&(!e||e<r))&&!(c&&(!e||e>c))},o.addEventListener("keyup",l,!1),s.addEventListener("keyup",l,!1),a}function Z(e,t,n){if(n.superClass&&n.alternatives.length>0)return H(e,t,n,n.alternatives);const i=n.getConstraints();let a;for(let o=0;o<i.length;o++){if(a=i[o],n.checkedAnyValues&&n.possiblyNumber||a.uri in f)return V(e,t,n);if("http://www.w3.org/2000/01/rdf-schema#Literal"===a.uri)return q(e,t,n);const s=p.each(a,u.ns.owl("oneOf"));if(s.length>0)return H(e,t,n,s.elements)}return function(e,t,n){return n.checkedAnyValues&&n.possiblyNumber?V(e,t,n):n.possiblyLiteral?q(e,t,n):null}(e,t,n)}function G(t,n,a){a=a||{};const o=e.createElement("a"),s=a.linkFunction;return o.setAttribute("href",t),o.appendChild(e.createTextNode(n)),s?o.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation();const t=l.getTarget(e).getAttribute("href");t||i.Rm("No href found \n"),s(t)},!0):o.addEventListener("click",u.widgets.openHrefInOutlineMode,!0),o}function W(e){return t&&t.hints&&e.variable&&t.hints[e.variable.toNT()]?t.hints[e.variable.toNT()]:{}}function J(t,n){const i=W(n),a=i.cellFormat;if(!a){if("Literal"===t.termType){if(t.datatype){if(h[t.datatype.uri])return e.createTextNode(u.widgets.shortDate(t.value));if(f[t.datatype.uri]){const n=e.createElement("span");return n.textContent=t.value,n.setAttribute("style","text-align: right"),n}}return e.createTextNode(t.value)}if("NamedNode"===t.termType&&n.isImageColumn())return function(t){const n=e.createElement("img");return n.setAttribute("src",t.uri),n.style.height="40px",n}(t);if("NamedNode"===t.termType||"BlankNode"===t.termType)return function(e,t){let n=!1;return e.uri&&(n=e.uri.match(/^mailto:(.*)/)),G(e.uri,n?n[1]:l.label(e),t)}(t,i);if("Collection"===t.termType){const i=e.createElement("span");return i.appendChild(e.createTextNode("[")),t.elements.forEach(function(t){i.appendChild(J(t,n)),i.appendChild(e.createTextNode(", "))}),i.removeChild(i.lastChild),i.appendChild(e.createTextNode("]")),i}return e.createTextNode("unknown termtype '"+t.termType+"'!")}if("shortDate"===a)return e.createTextNode(u.widgets.shortDate(t.value))}function Q(e,t){let n,i=null;if("Literal"===e.termType)i="value";else{if("NamedNode"!==e.termType)return t.indexOf(e)>=0;i="uri"}for(n=0;n<t.length;++n)if(t[n].termType===e.termType&&t[n][i]===e[i])return!0;return!1}function Y(t,n,i){let a,o=!1;for(a in i){const e=i[a];a in t.values||(t.values[a]=[]),Q(e,t.values[a])||(t.values[a].push(e),o=!0)}o&&(S(t._htmlRow),function(t,n,i){const a=e.createElement("td");n._subject&&"uri"in n._subject&&a.appendChild(G(n._subject.uri,"→")),t.appendChild(a);for(let a=0;a<i.length;++a){const o=i[a],s=e.createElement("td");let r;const c=o.getKey();if(c in n.values){const t=n.values[c];let i=!1;n.originalValues&&n.originalValues[c]&&t.length!==n.originalValues[c].length&&(i=!0);for(let a=0;a<t.length;++a){const l=t[a];n.originalValues&&n.originalValues[c]&&n.originalValues[c].length>a&&(r=n.originalValues[c][a],l.toString()!==r.toString()&&(i=!0)),s.appendChild(J(l,o)),a!==t.length-1&&s.appendChild(e.createTextNode(",\n")),i&&(s.style.background="#efe")}}t.appendChild(s)}n._htmlRow=t}(t._htmlRow,t,n)),z(t,n)}function K(e){if("uri"in e)return e.uri;if("_subject_id"in e)return e._subject_id;{const t=""+C;return e._subject_id=t,++C,t}}function X(n,a,o,s){n.running=!0;const r=Date.now();let c=e.createElement("tr");s.appendChild(c),c.textContent="Loading ...";for(let e=0;e<a.length;e++)a[e].original=!0,a[e].originalValues||(a[e].originalValues=a[e].values),a[e].values={};p.query(n,function(t){if(!n.running)return;c.textContent+=".";let i,r=null,l=null;if(b in t&&(l=t[b],i=K(l),i in d&&(r=d[i])),!r){const t=e.createElement("tr");s.appendChild(t),r={_htmlRow:t,_subject:l,values:{}},a.push(r),l&&(d[i]=r)}delete r.original,Y(r,o,t)},void 0,function(){c&&c.parentNode&&c.parentNode.removeChild&&(c.parentNode.removeChild(c),c=null);const e=Date.now()-r;i.Rm("Query done: "+a.length+" rows, "+e+"ms");for(let e=a.length-1;e>=0;e--)if(a[e].original){i.Rm(" deleting row "+a[e]._subject);const t=a[e]._htmlRow;t.parentNode.removeChild(t),delete d[K(a[e]._subject)],a.splice(e,1)}if(t.sortBy){const e=function(e,t){for(const n in e){const i=e[n];if(i.variable.toNT()===t)return i}throw new Error(`getColumnForVariable: no column for variable ${t}`)}(o,t.sortBy);$(a,e,t.sortReverse)}t.onDone&&t.onDone(k)})}function ee(e,t){u.log.debug(">> processing formula");for(let n=0;n<t.statements.length;++n){const i=t.statements[n];if("NamedNode"===i.predicate.termType&&"Variable"===i.object.termType){const t=i.object.toString();if(t in e){e[t].setPredicate(i.predicate,!1,i.subject)}}if("NamedNode"===i.predicate.termType&&"Variable"===i.subject.termType){const t=i.subject.toString();if(t in e){e[t].setPredicate(i.predicate,!0,i.object)}}}for(let n=0;n<t.optional.length;++n)u.log.debug("recurse to optional subformula "+n),ee(e,t.optional[n]);u.log.debug("<< finished processing formula")}function te(e){const t=[],n={};for(let i=0;i<e.vars.length;++i){const a=new N,o=e.vars[i];u.log.debug("column "+i+" : "+o),a.setVariable(o),n[o]=a,t.push(a)}return ee(n,e.pat),t}function ne(t,n){let i;i=s?te(t):n.getColumns();const a=[],o=e.createElement("table");return o.appendChild(function(t,n){const i=e.createElement("tr"),a=e.createElement("th");i.appendChild(a);for(let a=0;a<t.length;++a){const o=e.createElement("th"),s=t[a];o.appendChild(e.createTextNode(s.getLabel())),n&&o.appendChild(P(n,s)),i.appendChild(o)}return i}(i,n)),o.appendChild(function(t,n){const i=e.createElement("tr");i.className="selectors",i.appendChild(e.createElement("td"));for(let a=0;a<n.length;++a){const o=e.createElement("td"),s=Z(t,n,n[a]);s&&o.appendChild(s),i.appendChild(o)}return i}(a,i)),o.logicalRows=a,o.columns=i,o.query=t,X(t,a,i,o),o}}},6670(e,t,n){n.r(t),n.d(t,{TabWidgetElement:()=>r,tabWidget:()=>c});var i=n(4608),a=n(52),o=n(675),s=n(3138);class r extends HTMLElement{bodyContainer;refresh;tabContainer}function c(e){const t=e.subject,n=e.dom||document,r=parseInt(e.orientation||"0"),c=e.backgroundColor||"#ddddcc",p=2&r,u=1&r,d=e.onClose,[m,f]=function(e){return function(e){let t=0;for(let n=0;n<3;n++)t+=parseInt(e.slice(2*n+1,2*n+3),16);return t>384}(e)?[l(e,"#ffffff",.3),"#000000"]:[l(e,"#000000",.3),"#ffffff"]}(c),h=`display: grid; width: auto; height: 100%; border: 0.1em; border-style: solid; border-color: ${m}; padding: 1em;`,g=n.createElement("div");g.setAttribute("style",o.i.tabsRootElement),g.style.flexDirection=(u?"row":"column")+(p?"-reverse":"");const b=g.appendChild(n.createElement("nav"));b.setAttribute("style",o.i.tabsNavElement);const x=g.appendChild(n.createElement("main"));x.setAttribute("style",o.i.tabsMainElement);const v=b.appendChild(n.createElement("ul"));v.setAttribute("style",o.i.tabContainer),v.style.flexDirection=""+(u?"column":"row");const y=x;g.tabContainer=v,g.bodyContainer=y;const w=["0.2em","0.2em","0","0"],C=`border-radius: ${w.concat(w).slice(r,r+4).join(" ")};`,A=["0.3em","0.3em","0","0.3em"],E=A.concat(A).slice(r,r+4),k=`margin: ${E.join(" ")};`,T=`padding: ${E.join(" ")};`,L=C+`position: relative; padding: 0.7em; max-width: 20em; color: ${f};`,j=`${L+k} opacity: 50%; background-color: ${c};`,_=`${L+k} background-color: ${m};`,S="height: 100%; width: 100%;",R=S+"display: none;";if(g.refresh=B,B(),!e.startEmpty&&v.children.length&&e.selectedTab){const t=Array.from(v.children).map(e=>e.firstChild).find(t=>t.dataset.name===e.selectedTab),n=e.selectedTab.uri,i=Array.from(v.children).find(e=>e.subject&&e.subject.uri&&e.subject.uri===n),a=i||t||v.children[0],o=a.firstChild;o?.click?o.click():a instanceof HTMLElement&&a.click()}else if(!e.startEmpty){const e=v.children[0],t=e?.firstChild;t?.click?t.click():e instanceof HTMLElement&&e.click()}return g;function N(t){const i=n.createElement("li");i.setAttribute("style",j),i.subject=t;const s=i.appendChild(n.createElement("button"));if(s.setAttribute("style",o.i.makeNewSlot),s.onclick=function(){if(I(),D(),i.setAttribute("style",_),!i.bodyTR)return;i.bodyTR.setAttribute("style",S);const n=r(i);e.renderMain&&i.subject&&!1!==n.asSettings&&(n.innerHTML="loading item ..."+t,e.renderMain(n,i.subject),n.asSettings=!1)},e.renderTabSettings&&i.subject){const a=n.createElement("button");a.textContent="...",a.setAttribute("style",o.i.ellipsis),a.onclick=function(){if(I(),D(),i.setAttribute("style",_),!i.bodyTR)return;i.bodyTR.setAttribute("style",S);const n=r(i);e.renderTabSettings&&i.subject&&!0!==n.asSettings&&(n.innerHTML="loading settings ..."+t,e.renderTabSettings(n,i.subject),n.asSettings=!0)},i.appendChild(a)}return e.renderTab?e.renderTab(s,t):s.innerHTML=(0,a.label)(t),i;function r(e){const t=e.bodyTR?.children[0];if(t)return t;const i=e.bodyTR.appendChild(n.createElement("main"));return i.setAttribute("style",h),i}}function B(){const a=e.items?e.items:!1!==e.ordered?s.store.the(t,e.predicate).elements:s.store.each(t,e.predicate);let o,r,c,l,p,u=!1;for(l=0;l<v.children.length;l++)if(o=v.children[l],l>=a.length||o.subject&&!o.subject.sameTerm(a[l])){u=!0;break}if(!u&&a.length===v.children.length)return;for(p=v.children.length-1;p>=0&&(o=v.children[p],c=p-v.children.length+a.length,!o.subject||o.subject.sameTerm(a[c]));p--);const m=a.slice(l,p-v.children.length+a.length+1);for(;p>=l;)v.removeChild(v.children[l]),y.removeChild(y.children[l]),p-=1;for(r=0;r<m.length;r++){const e=N(m[r]),t=n.createElement("div");e.bodyTR=t,l===v.children.length?(v.appendChild(e),y.appendChild(t)):(v.insertBefore(e,v.children[l+r]),y.insertBefore(t,y.children[l+r]))}d&&function(e){if(e.dataset.onCloseSet){const t=e.querySelector(".unstyled");e.removeChild(t)}const t=n.createElement("li");t.classList.add("unstyled");const a=(0,i.cancelButton)(n,d);a.setAttribute("style",a.getAttribute("style")+T),t.appendChild(a),e.appendChild(t),e.dataset.onCloseSet="true"}(v)}function I(){for(let e=0;e<v.children.length;e++){const t=v.children[e];t.classList.contains("unstyled")||t.setAttribute("style",j)}}function D(){for(let e=0;e<y.children.length;e++)y.children[e].setAttribute("style",R)}}function l(e,t,n){let i,a,o,s="#";const r="0123456789abcdef";for(let c=0;c<3;c++){i=parseInt(e.slice(2*c+1,2*c+3),16),a=parseInt(t.slice(2*c+1,2*c+3),16),o=i*(1-n)+a*n;const l=parseInt((""+o).split(".")[0]),p=parseInt((""+l/16).split(".")[0]),u=parseInt((""+l%16).split(".")[0]);s+=r[p]+r[u]}return s}},8565(e,t,n){n.d(t,{E6:()=>o,bB:()=>s,mG:()=>r,nF:()=>c});var i=n(4961),a=n(4356);function o(){const{origin:e,pathname:t}=document.location,n="databrowser"===document.body?.dataset?.appShell,a=t.split("/").filter(Boolean),o=a[a.length-1]||"",s=/\.[^/]+$/.test(o);return n&&a.length>0&&!s?(0,i.sym)(`${e}/${a[0]}/`):(0,i.sym)(e).site()}async function s(e,t){try{if(!t.any(e,null,a.ns.ldp("Container"),e)){const n=(await t.fetcher.webOperation("GET",e.uri,t.fetcher.initFetchOptions(e.uri,{headers:{accept:"text/turtle"}}))).responseText;(0,i.parse)(n,t,e.uri,"text/turtle")}}catch(t){return console.error("Error loading pod "+e+": "+t),null}if(!t.holds(e,a.ns.rdf("type"),a.ns.space("Storage"),e))return console.warn("Pod "+e+" does not declare itself as a space:Storage"),null;const n=t.any(e,a.ns.solid("owner"),null,e)||t.any(null,a.ns.space("storage"),e,e);if(n){try{await t.fetcher.load(n.doc())}catch(e){return console.warn("Unable to load profile of pod owner "+n),null}return t.holds(n,a.ns.space("storage"),e,n.doc())||console.warn(`Pod owner ${n} does NOT list pod ${e} as their storage`),n}{const n=(0,i.sym)(`${e.uri}profile/card#me`);try{await t.fetcher.load(n)}catch(e){return console.error("Ooops. Guessed wrong pod owner webid {$guess} : can't load it."),null}return t.holds(n,a.ns.space("storage"),e,n.doc())?(console.warn("Using guessed pod owner webid but it links back."),n):null}}function r(e,t){return e.anyValue(t,a.ns.vcard("fn"),null,t.doc())||e.anyValue(t,a.ns.foaf("name"),null,t.doc())||t.uri}function c(e,t,n={}){let i,a,o,s=null,r=0;const c=function(){r=n.leading?Date.now():0,s=null,o=e.apply(i,a),s||(i=a=null)};return function(){const l=Date.now();r||n.leading||(r=l);const p=t-(l-r);return i=this,a=arguments,p<=0||p>t?(s&&(clearTimeout(s),s=null),r=l,o=e.apply(i,a),s||(i=a=null)):s||!1===n.trailing||(s=setTimeout(c,p)),o}}},52(e,t,n){n.r(t),n.d(t,{AJARImage:()=>j,RDFComparePredicateObject:()=>O,RDFComparePredicateSubject:()=>M,addLoadEvent:()=>k,ancestor:()=>w,beep:()=>m,clearVariableNames:()=>d,emptyNode:()=>v,escapeForXML:()=>N,findPos:()=>T,genUuid:()=>h,getAbout:()=>C,getEyeFocus:()=>L,getTarget:()=>y,getTerm:()=>A,hashColor:()=>f,include:()=>E,label:()=>r.P,labelForXML:()=>B,labelWithOntology:()=>R,newVariableName:()=>u,ontologyLabel:()=>S,predParentOf:()=>F,predicateLabel:()=>D,predicateLabelForXML:()=>I,shortName:()=>_,stackString:()=>x,syncTableToArray:()=>g,syncTableToArrayReOrdered:()=>b});var i=n(4158),a=n(3138),o=n(1795),s=n(4961),r=n(9612);const c={log:i,ns:o.A,rdf:s};let l,p=0;function u(){return"v"+p++}function d(){p=0}function m(){if(!l)return;const e=new l;return function(t,n,i,a){t=+(t||.3),i=i||"sine","function"!=typeof a&&(a=function(){});const o=e.createOscillator();o.type=i,o.frequency.value=n||256,o.connect(e.destination),o.start(0),o.stop(t)}}function f(e){e=e.uri||e;return"#"+(16777215&(t=e,t.split("").reduce(function(e,t){return(e=(e<<5)-e+t.charCodeAt(0))&e},0))|12632256).toString(16);var t}function h(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}function g(e,t,n,i){let a,o,s;for(s=0;s<e.children.length;s++)o=e.children[s],o.trashMe=!0;for(let r=0;r<t.length;r++){const c=t[r];for(a=!1,s=0;s<e.children.length;s++)if(o=e.children[s],o.subject&&o.subject.sameTerm(c)){if(i){const e=i(o,c);e&&e!==o&&(o.parentNode.replaceChild(e,o),e.subject=c,o=e)}o.trashMe=!1,a=!0;break}if(!a){const t=n(c);if(r>=e.children.length)e.appendChild(t);else{const n=e.children[r];e.insertBefore(t,n)}t.subject=c}}for(s=0;s<e.children.length;s++)o=e.children[s],o.trashMe&&e.removeChild(o)}function b(e,t,n){const i={};for(let t=0;t<e.children.length;t++){const n=e.children[t];i[n.subject.toNT()]=n}for(let a=0;a<t.length;a++){const o=t[a];if(a>=e.children.length){const t=n(o);t.subject=o,e.appendChild(t)}else{const t=e.children[a];if(t.subject.sameTerm(o));else{const a=i[o.toNT()];if(a)e.removeChild(a),e.insertBefore(a,t);else{const e=n(o);t.before(e),e.subject=o}}}}for(;e.children.length>t.length;)e.removeChild(e.children[e.children.length-1])}function x(e){let t,n=e+"\n";if(!e.stack)return n+"No stack available.\n";const i=e.stack.toString().split("\n"),a=[];for(t=0;t<i.length;t++){let e=i[t];if(e.indexOf("ecmaunit.js")>-1)break;"("===e.charAt(0)&&(e="function"+e);const n=e.split("@");a.push(n)}for(t=0;t<a.length;t++)n+=" "+a[t][1]+"\n "+a[t][0];return n}function v(e){const t=e.childNodes;for(let n=t.length-1;n>=0;n--)e.removeChild(t[n]);return e}function y(e){let t;return(e=e||window.event).target?t=e.target:e.srcElement&&(t=e.srcElement),3===t.nodeType&&(t=t.parentNode),t}function w(e,t){let n;for(n=e;n;n=n.parentNode)try{if(n.tagName===t)return n}catch(e){return}}function C(e,t){let n,i;for(n=t;n&&1===n.nodeType;n=n.parentNode)if(i=n.getAttribute("about"),i)return e.fromNT(i);c.log.debug("getAbout: No about found")}function A(e){const t=e.parentNode,n=t?t.AJAR_statement:void 0;switch(n?e.className:""){case"pred":case"pred selected":return n.predicate;case"obj":case"obj selected":return t.AJAR_inverse?n.subject:n.object;case"":case"selected":return C(a.store,e);case"undetermined selected":return e.nextSibling?n.predicate:t.AJAR_inverse?n.subject:n.object}}function E(e,t){const n=e.createElement("script");return n.setAttribute("type","text/javascript"),n.setAttribute("src",t),n}function k(e){const t=window.onload;"function"!=typeof window.onload?window.onload=e:window.onload=function(){t(),e()}}function T(e){const t=e.ownerDocument.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return[n.left-t.left,n.top-t.top]}function L(e,t,n,i){i||(i=window);const a=T(e)[1],o=window.SolidAppContext||{},s=a-(o&&o.scroll||52)-i.scrollY;if(t)return n?void i.scrollBy(0,a+e.clientHeight-(i.scrollY+i.innerHeight)):void i.scrollBy(0,s);const r=i.setInterval(function(){i.scrollBy(0,s/10),c++,10===c&&i.clearInterval(r)},50);let c=0}function j(e,t,n,i){i||(i=document);const a=i.createElement("img");return a.setAttribute("src",e),a.addEventListener("copy",function(e){e.clipboardData.setData("text/plain",""),e.clipboardData.setData("text/html",""),e.preventDefault()}),void 0!==n&&a.setAttribute("title",n),a}function _(e){let t=e;"#/".indexOf(t[t.length-1])>=0&&(t=t.slice(0,-1));const n=[];for(const e in this.prefixes)n[this.prefixes[e]]=e;let i;const a=function(e){return"ns"!==e&&(i=e,!0)};let o;const s=t.lastIndexOf("#");for(s>=0&&(t=t.slice(s-1));;){const e=t.lastIndexOf("/");for(e>=0&&(t=t.slice(e+1)),o=0;o<t.length&&this.prefixchars.indexOf(t[o]);)o++;if(t=t.slice(0,o),t.length<6&&a(t))return i;if(a(t.slice(0,3)))return i;if(a(t.slice(0,2)))return i;if(a(t.slice(0,4)))return i;if(a(t.slice(0,1)))return i;if(a(t.slice(0,5)))return i;for(o=0;;o++)if(a(t.slice(0,3)+o))return i}}function S(e){if(void 0===e.uri)return"??";let t=e.uri;const n=[];let i,a=t.lastIndexOf("#");if(a>=0)t=t.slice(0,a+1);else{if(a=t.lastIndexOf("/"),!(a>=0))return e.uri+"?!";t=t.slice(0,a+1)}for(const e in c.ns)n[c.ns[e]]=e;try{return n[t]}catch(e){}for(t=t.slice(0,-1);t;){if(a=t.lastIndexOf("/"),!(a>=0))return e.uri+"!?";if(i=t.slice(a+1),t=t.slice(0,a),"ns"!==i&&"0123456789".indexOf(i[0])<0)return i}}function R(e,t){const n=a.store.findTypeURIs(e);return n[c.ns.rdf("Predicate").uri]||n[c.ns.rdfs("Class").uri]?(0,r.P)(e,t)+" ("+S(e)+")":(0,r.P)(e,t)}function N(e){return e.replace(/&/g,"&").replace(/</g,"<")}function B(e){return N((0,r.P)(e))}function I(e,t){return N(D(e,t))}function D(e,t){const n=(0,r.P)(e);if(t){const t=a.store.any(e,c.ns.owl("inverseOf"))||a.store.any(void 0,c.ns.owl("inverseOf"),e);return t?(0,r.P)(t):"type"===n?"...":"is "+n+" of"}return n}function O(e,t){const n=e.predicate.compareTerm(t.predicate);return 0!==n?n:e.object.compareTerm(t.object)}function M(e,t){const n=e.predicate.compareTerm(t.predicate);return 0!==n?n:e.subject.compareTerm(t.subject)}function F(e){let t=e;for(;;){if(t.getAttribute("predTR"))return t;if(!t.previousSibling||"TR"!==t.previousSibling.nodeName)return c.log.error("Could not find predParent"),e;t=t.previousSibling}}"undefined"!=typeof AudioContext?l=AudioContext:"undefined"!=typeof window&&(l=window.AudioContext||window.webkitAudioContext)},8425(e,t,n){n.d(t,{AB:()=>r,ED:()=>c,S3:()=>l,cX:()=>p});var i=n(7423),a=n(3138),o=n(1795),s=n(8852);const r=e=>{let t;try{t=`${(0,s.X)(e)}/profile/keys/publicKey.ttl`}catch(e){i.z3(e)}return t},c=e=>{let t;try{t=`${(0,s.X)(e)}/settings/keys/privateKey.ttl`}catch(e){i.z3(e)}return t};async function l(e,t){return await u(e,t,"publicKey")}async function p(e,t){return await u(e,t,"privateKey")}async function u(e,t,n){try{await a.store.fetcher.load(t);const i=a.store.any(e,o.A.solid(n));return i?.value}catch(e){if(404===e.response.status){i.Rm("createIfNotExists: doc does NOT exist, will create... "+t);try{await a.store.fetcher.webOperation("PUT",t,{data:"",contentType:"text/turtle"})}catch(e){throw i.Rm("createIfNotExists doc FAILED: "+t+": "+e),e}return void delete a.store.fetcher.requested[t]}throw i.Rm("createIfNotExists doc FAILED: "+t+": "+e),e}}},3907(e,t,n){n.d(t,{G2:()=>r,lO:()=>o,vb:()=>s});var i=n(7423),a=n(3138);async function o(e,t){await a.store.fetcher.load(e);const n=a.store.any(a.store.sym(e),a.store.sym("http://www.iana.org/assignments/link-relations/acl"));if(!n)throw new Error("Key ACL doc not found!");try{await a.store.fetcher.webOperation("PUT",n.value,{data:t,contentType:"text/turtle"})}catch(e){if(404!==e?.response?.status)throw new Error(e);i.Rm("delete "+n.value+" "+e.response.status)}}const s=e=>`\n@prefix : <#>.\n@prefix acl: <http://www.w3.org/ns/auth/acl#>.\n@prefix foaf: <http://xmlns.com/foaf/0.1/>.\n@prefix key: <./>.\n\n:ReadWrite\n a acl:Authorization;\n acl:accessTo key:;\n acl:default key:;\n acl:agent <${e}>;\n acl:mode acl:Read, acl:Write.\n`,r=(e,t)=>{let n="acl:agentClass foaf:Agent";t?.length&&(n=`acl:agent <${t}>`);return`\n@prefix foaf: <http://xmlns.com/foaf/0.1/>.\n@prefix acl: <http://www.w3.org/ns/auth/acl#>.\n<#Read>\n a acl:Authorization;\n ${n};\n acl:accessTo <${e.split("/").pop()}>;\n acl:mode acl:Read.\n`}},8852(e,t,n){n.d(t,{X:()=>o});var i=n(3138),a=n(1795);const o=e=>{let t=i.store.any(e,a.A.space("preferencesFile"),null,e.doc())?.value;if(t=t?.split("/").slice(0,-2).join("/"),!t)throw new Error(`prefererencesFile is expected to exist in ${e}`);return t}},9612(e,t,n){n.d(t,{P:()=>c});var i=n(4158),a=n(3138),o=n(1795),s=n(4961);const r={log:i,ns:o.A,rdf:s};function c(e,t=!1){function n(e){return t?e.slice(0,1).toUpperCase()+e.slice(1):e}function i(e){let t="";"/"===e.slice(-1)&&(e=e.slice(0,-1));for(let n=0;n<e.length;n++)"_"!==e[n]&&"-"!==e[n]?(t+=e[n],n+1<e.length&&e[n].toUpperCase()!==e[n]&&e[n+1].toLowerCase()!==e[n+1]&&(t+=" ")):t+=" ";return"has "===t.slice(0,4)&&(t=t.slice(4)),n(t)}const o=function(e){return a.store.any(e,r.ns.ui("label"))||a.store.any(e,r.ns.link("message"))||a.store.any(e,r.ns.vcard("fn"))||a.store.any(e,r.ns.foaf("name"))||a.store.any(e,r.ns.dct("title"))||a.store.any(e,r.ns.dc("title"))||a.store.any(e,r.ns.rss("title"))||a.store.any(e,r.ns.contact("fullName"))||a.store.any(e,a.store.sym("http://www.w3.org/2001/04/roadmap/org#name"))||a.store.any(e,r.ns.cal("summary"))||a.store.any(e,r.ns.foaf("nick"))||a.store.any(e,r.ns.as("name"))||a.store.any(e,r.ns.schema("name"))||a.store.any(e,r.ns.rdfs("label"))||a.store.any(e,a.store.sym("http://www.w3.org/2004/02/skos/core#prefLabel"))}(e);if(o)return n(o.value);if("BlankNode"===e.termType)return"...";if("Collection"===e.termType)return"("+e.elements.length+")";let s=e.uri;if(void 0===s)return e.toString();try{s=s.split("/").map(decodeURIComponent).join("/")}catch(e){for(let e=s.length-3;e>0;e--){const t="0123456789abcefABCDEF";for(;"%"===s[e]&&t.indexOf(s[e+1])>=0&&t.indexOf(s[e+2])>=0;)s=s.slice(0,e)+String.fromCharCode(parseInt(s.slice(e+1,e+3),16))+s.slice(e+3)}}s=l(s,"/profile/card#me"),s=l(s,"#this"),s=l(s,"#me");const c=s.indexOf("#");if(c>=0)return i(s.slice(c+1));const p=s.lastIndexOf("/",s.length-2);return p>=0&&p<e.uri.length?i(s.slice(p+1)):n(decodeURIComponent(e.uri))}function l(e,t){const n=-1*t.length;return e.slice(n)===t?e.slice(0,n):e}},3291(e,t,n){n.d(t,{$J:()=>Y,Ag:()=>X,CS:()=>ne,Cl:()=>z,DT:()=>K,EW:()=>y,F1:()=>R,IC:()=>L,JK:()=>ie,Mj:()=>k,PO:()=>I,Pe:()=>te,Pg:()=>J,Qf:()=>W,Qy:()=>D,RG:()=>P,RS:()=>ee,Ss:()=>H,UH:()=>q,XV:()=>C,ZT:()=>S,cZ:()=>ae,cc:()=>v,er:()=>w,fT:()=>se,g7:()=>B,i:()=>T,kz:()=>F,ly:()=>$,ol:()=>G,p_:()=>j,r6:()=>A,ri:()=>U,sf:()=>Z,uA:()=>Q,uS:()=>V,vE:()=>E,wu:()=>oe,x6:()=>O,x7:()=>M});var i=n(4961),a=n(3378),o=n(1795),s=n(675),r=n(7423),c=n(4158),l=n(386),p=n(3138),u=n(52),d=n(6105),m=n(3468),f=n(9287),h=n(9326);const{iconBase:g}=a.Pt,b=g+"noun_1180156.svg",x=g+"noun_1180158.svg";function v(e,t){if(!t)return;const n=function(e){let t=e&&e.statusArea||e&&e.div||null;if(t)return t;let n=e&&e.dom;if(n||"undefined"==typeof document||(n=document),n){const i=n.getElementsByTagName("body")[0];return t=n.createElement("div"),i.insertBefore(t,i.firstElementChild),e&&(e.statusArea=t),t}return null}(e);r.Rm("Complaint: "+t),n?n.appendChild((0,m.F)(e&&e.dom||document,t)):alert(t)}function y(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function w(e){const t=e.search(/logFile=/),n=e.search(/&rulesFile=/);return e.substring(t+8,n)}function C(e,t){if(!e)return"???";const n=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];try{const i=(new Date).toISOString();return e.slice(0,10)!==i.slice(0,10)||t?e.slice(0,4)===i.slice(0,4)?n[parseInt(e.slice(5,7),10)-1]+" "+parseInt(e.slice(8,10),10):e.slice(0,10):e.slice(11,16)}catch(e){return"shortdate:"+e}}function A(e,t){return t.split("{").map(function(t){const n=t.split("}")[0];return t?("000"+(e["get"+n]()+({Month:1}[n]||0))).slice(-({Milliseconds:3,FullYear:4}[n]||2))+t.split("}")[1]:""}).join("")}function E(){return A(new Date,"{FullYear}-{Month}-{Date}T{Hours}:{Minutes}:{Seconds}.{Milliseconds}")}function k(){return A(new Date,"{Hours}:{Minutes}:{Seconds}.{Milliseconds}")}function T(e,t){const n=p.store,i=function(e){const t=n.any(e,o.A.vcard("fn"))||n.any(e,o.A.foaf("name"))||n.any(e,o.A.vcard("organization-name"));return t?t.value:null},a=t.sameTerm(o.A.foaf("Agent"))?"Everyone":i(t);if(e.textContent=a||u.label(t),!a&&t.uri){if(!n.fetcher)throw new Error("kb has no fetcher");n.fetcher.nowOrWhenFetched(t.doc(),void 0,function(n){e.textContent=i(t)||u.label(t)})}}function L(e,t){return t.each(e,o.A.sioc("avatar")).concat(t.each(e,o.A.foaf("img"))).concat(t.each(e,o.A.vcard("logo"))).concat(t.each(e,o.A.vcard("hasPhoto"))).concat(t.each(e,o.A.vcard("photo"))).concat(t.each(e,o.A.foaf("depiction")))}const j={"solid:AppProviderClass":"noun_144.svg","solid:AppProvider":"noun_15177.svg","solid:Pod":"noun_Cabinet_1434380.svg","vcard:Group":"noun_339237.svg","vcard:Organization":"noun_143899.svg","vcard:Individual":d.A,"schema:Person":d.A,"foaf:Person":d.A,"foaf:Agent":"noun_98053.svg","acl:AuthenticatedAgent":"noun_99101.svg","prov:SoftwareAgent":"noun_Robot_849764.svg","vcard:AddressBook":"noun_15695.svg","trip:Trip":"noun_581629.svg","meeting:LongChat":"noun_1689339.svg","meeting:Meeting":"noun_66617.svg","meeting:Project":"noun_1036577.svg","ui:Form":"noun_122196.svg","rdfs:Class":"class-rectangle.svg","rdf:Property":"property-diamond.svg","owl:Ontology":"noun_classification_1479198.svg","wf:Tracker":"noun_122196.svg","wf:Task":"noun_17020_gray-tick.svg","wf:Open":"noun_17020_sans-tick.svg","wf:Closed":"noun_17020.svg"};function _(e){const t=e.uri.split("#")[0],n=t.indexOf("//");if(n<0)throw new Error("This URI does not have a web site part (origin)");const i=t.indexOf("/",n+2);return i<0?t.slice(0)+"/":t.slice(0,i+1)}function S(e){const t=g;return"string"!=typeof e&&e.uri?4!==e.uri.split("/").length||e.uri.split("/")[1]||e.uri.split("/")[3]?e.uri.startsWith("message:")||e.uri.startsWith("mid:")?t+"noun_480183.svg":e.uri.startsWith("mailto:")?t+"noun_567486.svg":e.uri.startsWith("https:")&&e.uri.indexOf("#")<0?_(e)+"favicon.ico":null:t+"noun_15177.svg":t+"noun_10636_grey.svg"}function R(e){const t=p.store,n=g;if(e.sameTerm(o.A.foaf("Agent"))||e.sameTerm(o.A.rdf("Resource")))return n+"noun_98053.svg";const i=t.any(e,o.A.sioc("avatar"))||t.any(e,o.A.foaf("img"))||t.any(e,o.A.vcard("logo"))||t.any(e,o.A.vcard("hasPhoto"))||t.any(e,o.A.vcard("photo"))||t.any(e,o.A.foaf("depiction"));return i?i.uri:null}function N(e,t,n){const i=p.store,a=R(t);if(a)return e.setAttribute("src",a),!0;const o=n[t.uri];if(o)return e.setAttribute("src",o),e.style=s.i.classIconStyle,!0;const r=S(t);if(r)return e.setAttribute("src",r),!0;const c=i.findTypeURIs(t);for(const t in c)if(n[t])return e.setAttribute("src",n[t]),!1;return e.setAttribute("src",g+"noun_10636_grey.svg"),!1}function B(e,t){const n=p.store,a={};for(const e in j){const t=e.split(":")[0],n=e.split(":")[1],s=o.A[t](n),r=j[e];r.startsWith("data:")?a[s.uri]=r:a[s.uri]=i.uri.join(r,g)}if(!N(e,t,a)&&t.uri){if(!n.fetcher)throw new Error("kb has no fetcher");n.fetcher.nowOrWhenFetched(t.doc(),void 0,n=>{n&&N(e,t,a)})}}function I(e,t){const n=e.createElement("img");n.style=s.i.iconStyle;if(n.setAttribute("src",g+(function(e){if(!e.uri)return!1;const t=e.uri.split("/");return 3===t.length||4===t.length&&""===t[3]}(t)?"noun_15177.svg":"noun_681601.svg")),t.uri&&t.uri.startsWith("https:")&&t.uri.indexOf("#")<0){const i=e.createElement("object");return i.setAttribute("data",_(t)+"favicon.ico"),i.setAttribute("type","image/x-icon"),i.appendChild(n),i}return B(n,t),n}function D(e,t,n,i){const o=g+"noun_2188_red.svg",r=e.createElement("img");r.setAttribute("src",o),r.setAttribute("style",s.i.smallButtonStyle),r.style.float="right";const c="Remove this "+n;return r.title=c,r.classList.add("hoverControlHide"),r.addEventListener("click",function(){const n=e.createElement("div");t.insertBefore(n,r),n.style.position="relative",n.appendChild(function(e,t,n,i){function o(){t.parentElement.removeChild(t)}function r(){o(),i()}const c=e.createElement("div");c.style=s.i.confirmPopupStyle,c.style.position="absolute",c.style.top="-1em",c.style.display="grid",c.style.gridTemplateColumns="auto auto";const l=e.createElement("div");l.style.gridColumn="1/2",l.style.gridRow="1";const p=e.createElement("div");p.style.gridColumn="1/2",p.style.gridRow="2";const u=M(e,o);c.appendChild(u),u.style.gridColumn="1",u.style.gridRow="2";const d=c.appendChild(e.createElement("button"));d.style=s.i.buttonStyle,d.style.gridRow="2",d.style.gridColumn="2",d.textContent="Cancel";const m=O(e,a.Pt.iconBase+"noun_925021.svg","Delete it");c.appendChild(m),m.style.gridRow="1",m.style.gridColumn="1";const f=c.appendChild(e.createElement("button"));return f.style=s.i.buttonStyle,f.style.gridRow="1",f.style.gridColumn="2",f.textContent=n,c.appendChild(f),m.addEventListener("click",r),f.addEventListener("click",r),d.addEventListener("click",o),c}(e,n,c,i))}),t.classList.add("hoverControl"),t.appendChild(r),r.setAttribute("data-testid","deleteButtonWithCheck"),r}function O(e,t,n,i,a={buttonColor:"Primary",needsBorder:!1}){const o=e.createElement("button");if(o.setAttribute("type","button"),t){const i=o.appendChild(e.createElement("img"));i.setAttribute("src",t),i.setAttribute("style","width: 2em; height: 2em;"),i.title=n,o.setAttribute("style",s.i.buttonStyle)}else o.textContent=n.toLocaleUpperCase(),o.onmouseover=function(){"Secondary"===a.buttonColor?a.needsBorder?o.setAttribute("style",s.i.secondaryButtonNoBorderHover):o.setAttribute("style",s.i.secondaryButtonHover):a.needsBorder?o.setAttribute("style",s.i.primaryButtonNoBorderHover):o.setAttribute("style",s.i.primaryButtonHover)},o.onmouseout=function(){"Secondary"===a.buttonColor?a.needsBorder?o.setAttribute("style",s.i.secondaryButtonNoBorder):o.setAttribute("style",s.i.secondaryButton):a.needsBorder?o.setAttribute("style",s.i.primaryButtonNoBorder):o.setAttribute("style",s.i.primaryButton)},"Secondary"===a.buttonColor?a.needsBorder?o.setAttribute("style",s.i.secondaryButtonNoBorder):o.setAttribute("style",s.i.secondaryButton):a.needsBorder?o.setAttribute("style",s.i.primaryButtonNoBorder):o.setAttribute("style",s.i.primaryButton);return i&&o.addEventListener("click",i,!1),o}function M(e,t){const n=O(e,b,"Cancel",t);return n.firstChild&&(n.firstChild.style.opacity="0.3"),n}function F(e,t){return O(e,x,"Continue",t)}function P(e,t,n,i,a,r){return new Promise(function(t,c){const l=e.createElement("div");i=i||o.A.foaf("name");const p=(r=r||(a?u.label(a):" "))+" "+u.label(i)+": ";l.appendChild(e.createElement("p")).textContent=p;const d=e.createElement("input");function m(){l.parentNode.removeChild(l),t(d.value.trim())}d.setAttribute("type","text"),d.setAttribute("size","100"),d.setAttribute("maxLength","2048"),d.setAttribute("style",s.i.textInputStyle),d.select(),l.appendChild(d),n.appendChild(l),d.addEventListener("keyup",function(e){13===e.keyCode&&m()},!1),l.appendChild(e.createElement("br")),l.appendChild(M(e,function(e){l.parentNode.removeChild(l),t(null)})),l.appendChild(F(e,function(e){m()})),d.focus()})}const z=U;function U(e,t,n,i){const a=e.createElement("tr");i=i||{};const o=a.appendChild(e.createElement("td")),s=a.appendChild(e.createElement("td")),r=a.appendChild(e.createElement("td")),c=i.image||I(e,n);o.setAttribute("style","vertical-align: middle; width:2.5em; padding:0.5em; height: 2.5em;"),s.setAttribute("style","vertical-align: middle; text-align:left;"),r.setAttribute("style","vertical-align: middle; width:2em; padding:0.5em; height: 4em;"),o.appendChild(c);const p=s.appendChild(e.createElement("div")),u=p.appendChild(e.createElement("span"));if(i.title?u.textContent=i.title:T(u,n),"function"==typeof i.renderNameSuffix){const t=i.renderNameSuffix(n,e);if(t){const n=p.appendChild(e.createElement("span"));n.setAttribute("style","margin-left: 0.4em; opacity: 0.8;"),"string"==typeof t?n.textContent=t:n.appendChild(t)}}if("function"==typeof i.renderSupportingInfo){const t=i.renderSupportingInfo(n,e);if(t){const n=s.appendChild(e.createElement("div"));n.setAttribute("style","font-size: 90%; opacity: 0.8;"),"string"==typeof t?n.textContent=t:n.appendChild(t)}}if(i.deleteFunction&&D(e,r,i.noun||"one",i.deleteFunction),n.uri){if(!1!==i.link){r.appendChild((0,h.w)(e,n)).classList.add("HoverControlHide"),r.appendChild(e.createElement("br"))}!1!==i.draggable&&(c.setAttribute("draggable","false"),(0,l.eB)(a,n))}return a.subject=n,a}function $(e,t,n,i){const a=t.appendChild(e.createElement("div"));n?a.textContent=n:T(a,i)}function q(e,t,n,i){const a=t.appendChild(e.createElement("div"));a.setAttribute("style",s.i.linkDivStyle),i.deleteFunction&&D(e,a,i.noun||"one",i.deleteFunction),n.uri&&(!1!==i.link&&(0,h.O)(e,a,n),(0,l.eB)(t,n))}function H(e,t,n){const i=e.createElement("div");i.setAttribute("style",s.i.renderAsDivStyle);const a=(n=n||{}).image||I(e,t);if((0,f.ts)(e,i,a),$(e,i,n.title,t),q(e,i,t,n),n.clickable&&n.onClickFunction&&(0,f.lx)(i,n.onClickFunction),n.wrapInATR){return(0,f.I1)(e,i,t)}return i}function V(e){if(e.refresh)e.refresh();else for(let t=0;t<e.children.length;t++)V(e.children[t])}function Z(e,t,n,a={}){const s=new Set,c=!(!a.renderSupportingInfo&&!a.renderNameSuffix);function d(n){const o=n,r={noun:C};if(r.renderSupportingInfo=a.renderSupportingInfo,r.renderNameSuffix=a.renderNameSuffix,c&&n?.uri&&A.fetcher){const e=n.doc(),t=e?.uri?A.fetcher.requested?.[e.uri]:void 0,i="done"!==t&&"failed"!==t;e?.uri&&i&&!s.has(e.uri)&&(s.add(e.uri),A.fetcher.nowOrWhenFetched(e,void 0,()=>{s.delete(e.uri),m()}))}return x&&(r.deleteFunction=function(){!function(e){if(!A.updater)throw new Error("kb has no updater");A.updater.update((0,i.st)(t,w,e,b),[],function(e,t,n,i){t?m():v(void 0,"Error deleting one: "+n)})}(o)}),z(e,w,n,r)}const m=function(){const e=A.each(t,w);e.sort(),u.syncTableToArray(L,e,d,c?function(e,t){return d(t)}:void 0)};function f(e){const n=[];if(e.forEach(function(e){const a=(0,i.sym)(e);r.Rm("Dropped on attachemnt "+e),n.push((0,i.st)(t,w,a,b))}),!A.updater)throw new Error("kb has no updater");A.updater.update([],n,function(e,t,n,i){t?m():v(void 0,"Error adding one: "+n)})}function h(e){(0,l.Zn)(A.fetcher,e,a.uploadFolder?.uri,a.uploadFolder?.uri,function(e,n){const a=[(0,i.st)(t,w,A.sym(n),b)];if(!A.updater)throw new Error("kb has no updater");A.updater.update([],a,function(e,t,n,i){t?m():v(void 0,"Error adding link to uploaded file: "+n)})})}const b=a.doc||t.doc();void 0===a.modify&&(a.modify=!0);const x=a.modify,y=a.promptIcon||g+"noun_748003.svg",w=a.predicate||o.A.wf("attachment"),C=a.noun||"attachment",A=p.store,E=n.appendChild(e.createElement("table"));E.setAttribute("style","margin-top: 1em; margin-bottom: 1em;");const k=E.appendChild(e.createElement("tr")),T=k.appendChild(e.createElement("td")),L=k.appendChild(e.createElement("td")).appendChild(e.createElement("table"));if(L.appendChild(e.createElement("tr")),E.refresh=m,m(),x){const t=O(e,y,"Drop attachments here");T.appendChild(t);const n=a.uploadFolder?h:null;if((0,l.DK)(t,f,n),(0,l.DK)(T,f,n),a.uploadFolder){const t=se(e,h);T.appendChild(t)}}return E}function G(e){e.preventDefault(),e.stopPropagation();const t=u.getTarget(e).getAttribute("href");if(!t)return r.Rm("openHrefInOutlineMode: No href found!\n");const n=window.document;n.outlineManager?n.outlineManager.GotoSubject(p.store.sym(t),!0,void 0,!0,void 0):window&&window.panes&&window.panes.getOutliner?window.panes.getOutliner().GotoSubject(p.store.sym(t),!0,void 0,!0,void 0):r.Rm("ERROR: Can't access outline manager in this config")}function W(e){if(void 0===e.uri)return;let t=e.uri;if("http://"!==t.slice(0,7))return;t=t.slice(7);const n=t.indexOf("#");if(n>=0)t=t.slice(0,n);else{const e=t.lastIndexOf("/");if(e<0)return;t=t.slice(0,e)}return p.store.sym("http://tabulator.org/wiki/annnotation/"+t)}function J(){const e={};return p.store.statementsMatching(void 0,o.A.rdf("type"),void 0).forEach(function(t){t.object.value&&(e[t.object.value]=!0)}),p.store.statementsMatching(void 0,o.A.rdfs("subClassOf"),void 0).forEach(function(t){t.object.value&&(e[t.object.value]=!0),t.subject.value&&(e[t.subject.value]=!0)}),p.store.each(void 0,o.A.rdf("type"),o.A.rdfs("Class")).forEach(function(t){t.value&&(e[t.value]=!0)}),e}function Q(e){const t={},n={},i={};let a=0,s=0,r=0;const l=e.predicateIndex;for(const e in l){"Literal"===l[e][0].object.termType?(n[e]=!0,s++):(i[e]=!0,a++)}const p=e.each(void 0,o.A.rdf("type"),o.A.rdf("Property"));for(let e=0;e<p.length;e++){const t=p[e].toNT();i[t]||n[t]||(n[t]=!0,i[t]=!0,r++)}return t.op=i,t.dp=n,(0,c.info)(`propertyTriage: ${a} non-lit, ${s} literal. ${r} unknown.`),t}function Y(e,t){const n=e.createElement("button");return n.setAttribute("type","button"),n.textContent="Goto "+u.label(t),n.addEventListener("click",function(n){e.outlineManager.GotoSubject(t,!0,void 0,!0,void 0)},!0),n}function K(e,t){const n=e.createElement("button");return n.setAttribute("type","button"),n.textContent="✕",n.addEventListener("click",function(e){t.parentNode.removeChild(t)},!0),n}function X(e,t,n,i,a,o,s,r,c){return ee(e.createElement("div"),e,t,n,i,a,o,s,r,c)}function ee(e,t,n,i,a,o,s,r,c,l){const p="border: 0.1em solid #ddd; border-bottom: none; width: 95%; height: 2em; padding: 0.5em;";let u=null;e.innerHTML="";const d=function(e,s){let d,m;const f=function(){const e=o?n.each(void 0,a,s):n.each(s,a);v.setAttribute("class",0===e.length?"hideTillHover":""),m.setAttribute("src",r.connectIcon||g+"noun_25830.svg"),m.setAttribute("title",e.length?e.length:"attach")},h=te.twoLine.widgetForClass(i);d=h(t,s),d.setAttribute("style",p);const b=t.createElement("div");b.setAttribute("class","hideTillHover"),b.setAttribute("style","float:right; width:10%");const x=t.createElement("a");x.setAttribute("href",s.uri),x.setAttribute("style","float:right"),b.appendChild(x).textContent=">",e.appendChild(b);const v=t.createElement("div");return v.setAttribute("style",(o?"float:left;":"float:right;")+" width:30px;"),m=t.createElement("img"),f(),v.appendChild(m),e.appendChild(v),d.addEventListener("click",function(e){u===d?(d.setAttribute("style",p),u=null):(u&&u.setAttribute("style",p),d.setAttribute("style",p+"background-color: #ccc; color:black;"),u=d),c(s,e,u===d),f()},!1),m.addEventListener("click",function(e){l(s,e,o,f)},!1),e.appendChild(d),e};for(let n=0;n<s.length;n++){const i=t.createElement("div");e.appendChild(i),d(i,s[n])}return e}let te={};function ne(e,t){const n=e.querySelectorAll("link");for(let e=0;e<n.length;e++)if("stylesheet"===(n[e].getAttribute("rel")||"")&&(n[e].getAttribute("href")||"")===t)return;const i=e.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("type","text/css"),i.setAttribute("href",t),e.getElementsByTagName("head")[0].appendChild(i)}function ie(e){return oe(e,"audio")}function ae(e){return oe(e,"video")}function oe(e,t){const n=t||"image",a=p.store.findTypeURIs(e),o=i.Util.mediaTypeClass(n+"/*").uri.split("*")[0];for(const e in a)if(e.startsWith(o))return!0;return{audio:"http://purl.org/dc/dcmitype/Sound",image:"http://purl.org/dc/dcmitype/Image",video:"http://purl.org/dc/dcmitype/MovingImage"}[n]in a}function se(e,t){const n=e.createElement("div"),i=n.appendChild(e.createElement("input"));i.setAttribute("type","file"),i.setAttribute("multiple","true"),i.addEventListener("change",e=>{r.Rm("File drop event: ",e),e.files?t(e.files):e.target&&e.target.files?t(e.target.files):alert("Sorry no files .. internal error?")},!1),i.style="display:none";const a=n.appendChild(O(e,g+"noun_Upload_76574_000000.svg","Upload files",e=>{i.click()}));return(0,l.DK)(a,null,t),n}te={line:{},twoLine:{"":function(e,t){const n=e.createElement("div");return n.textContent=u.label(t),n},"http://www.w3.org/2000/10/swap/pim/qif#Transaction":function(e,t){let n="";const i=function(e){const i=p.store.any(t,o.A.qu(e));return i||(n+="@@ No value for "+e+"! "),i?u.escapeForXML(i.value):"?"},a=e.createElement("table");return a.innerHTML=`\n <tr>\n <td colspan="2"> ${i("payee")}</td>\n < /tr>\n < tr >\n <td>${i("date").slice(0,10)}</td>\n <td style = "text-align: right;">${i("amount")}</td>\n </tr>`,n&&(a.innerHTML=`\n <tr>\n <td><a href="${u.escapeForXML(t.uri)}">${u.escapeForXML(n)}</a></td>\n </tr>`),a},"http://www.w3.org/ns/pim/trip#Trip":function(e,t){const n=function(e){const n=p.store.any(t,e);return n?u.escapeForXML(n.value):"?"},i=e.createElement("table");return i.innerHTML=`\n <tr>\n <td colspan="2">${n(o.A.dc("title"))}</td>\n </tr>\n <tr style="color: #777">\n <td>${n(o.A.cal("dtstart"))}</td>\n <td>${n(o.A.cal("dtend"))}</td>\n </tr>`,i},widgetForClass:function(e){let t=te.twoLine[e.uri];const n=p.store;if(t)return t;const i=n.findSuperClassesNT(e);for(const e in i)if(t=te.twoLine[n.fromNT(e).uri],t)return t;return te.twoLine[""]}}}},9326(e,t,n){n.d(t,{O:()=>o,w:()=>a});var i=n(3378);function a(e,t,n){const a=e.createElement("a");a.setAttribute("href",t.uri),t.uri.startsWith("http")&&a.setAttribute("target","_blank");const o=a.appendChild(e.createElement("img"));return o.setAttribute("src",n||i.i1+"go-to-this.png"),o.setAttribute("style","margin: 0.3em;"),a}const o=(e,t,n)=>{const i=a(e,n);t.appendChild(i).classList.add("HoverControlHide"),t.appendChild(e.createElement("br"))}},386(e,t,n){n.d(t,{DK:()=>s,Zn:()=>c,eB:()=>r});var i=n(7423),a=n(6049),o=n(675);function s(e,t,n){const a=function(e){e.preventDefault(),e.dataTransfer.dropEffect="copy"},s=function(e){i.Rm("dragenter event dropEffect: "+e.dataTransfer.dropEffect),this.localStyle&&(this.savedStyle||(this.savedStyle=o.i.dragEvent)),e.dataTransfer.dropEffect="link",i.Rm("dragenter event dropEffect 2: "+e.dataTransfer.dropEffect)},r=function(e){i.Rm("dragleave event dropEffect: "+e.dataTransfer.dropEffect),this.savedStyle?this.localStyle=this.savedStyle:this.localStyle=o.i.dropEvent},c=function(e){e.preventDefault&&e.preventDefault(),i.Rm("Drop event. dropEffect: "+e.dataTransfer.dropEffect),i.Rm("Drop event. types: "+(e.dataTransfer.types?e.dataTransfer.types.join(", "):"NOPE"));let a,s=null;if(e.dataTransfer.types){for(let t=0;t<e.dataTransfer.types.length;t++){const o=e.dataTransfer.types[t];if("text/uri-list"===o)s=e.dataTransfer.getData(o).split("\n"),i.Rm("Dropped text/uri-list: "+s);else if("text/plain"===o)a=e.dataTransfer.getData(o);else if("Files"===o&&n){const t=e.dataTransfer.files;for(let e=0;t[e];e++){const n=t[e];i.Rm("Filename: "+n.name+", type: "+(n.type||"n/a")+" size: "+n.size+" bytes, last modified: "+(n.lastModifiedDate?n.lastModifiedDate.toLocaleDateString():"n/a"))}n(t)}}null===s&&a&&"http"===a.slice(0,4)&&(s=a,i.Rm("Waring: Poor man's drop: using text for URI"))}else s=[e.dataTransfer.getData("Text")],i.Rm("WARNING non-standard drop event: "+s[0]);return i.Rm("Dropped URI list (2): "+s),s&&t(s),this.localStyle=o.i.restoreStyle,!1};!function(e){e||i.Rm("@@@ addTargetListeners: ele "+e),e.addEventListener("dragover",a),e.addEventListener("dragenter",s),e.addEventListener("dragleave",r),e.addEventListener("drop",c)}(e)}function r(e,t){e.setAttribute("draggable","true"),e.addEventListener("dragstart",function(n){e.style.fontWeight="bold",n.dataTransfer.setData("text/uri-list",t.uri),n.dataTransfer.setData("text/plain",t.uri),n.dataTransfer.setData("text/html",e.outerHTML),i.Rm("Dragstart: "+e+" -> "+t+"de: "+n.dataTransfer.dropEffect)},!1),e.addEventListener("drag",function(e){e.preventDefault(),e.stopPropagation()},!1),e.addEventListener("dragend",function(n){e.style.fontWeight="normal",i.Rm("Dragend dropeffect: "+n.dataTransfer.dropEffect),i.Rm("Dragend: "+e+" -> "+t)},!1)}function c(e,t,n,o,s){for(let r=0;t[r];r++){const c=t[r];i.Rm(" dropped: Filename: "+c.name+", type: "+(c.type||"n/a")+" size: "+c.size+" bytes, last modified: "+(c.lastModifiedDate?c.lastModifiedDate.toLocaleDateString():"n/a"));const l=new FileReader;l.onload=function(t){return function(r){const c=r.target.result;let l="";i.Rm(" File read byteLength : "+c.byteLength);let p=t.type;if(t.type&&""!==t.type){const e=a.extension(t.type);e&&"false"!==e&&!t.name.endsWith("."+e)&&t.type!==a.lookup(t.name)&&(l="_."+e)}else if(p=a.lookup(t.name),!p){const e="Filename needs to have an extension which gives a type we know: "+t.name;throw i.Rm(e),alert(e),new Error(e)}const u=t.type.startsWith("image/")&&o||n,d=u+(u.endsWith("/")?"":"/")+encodeURIComponent(t.name)+l;e.webOperation("PUT",d,{data:c,contentType:p}).then(e=>{i.Rm(" Upload: put OK: "+d),s(t,d)},e=>{const t=" Upload: FAIL "+d+", Error: "+e;throw i.Rm(t),alert(t),new Error(t)})}}(c),l.readAsArrayBuffer(c)}}},3468(e,t,n){n.d(t,{F:()=>s});var i=n(4608),a=n(675),o=n(4762);function s(e,t,n,s){const r=e.createElement("div"),c=s||t instanceof Error?t:null;return c?(console.error(`errorMessageBlock: ${c} at: ${c.stack||"??"}`,c),r.textContent=c.message):r.textContent=t,r.appendChild((0,i.cancelButton)(e,()=>{r.parentNode&&r.parentNode.removeChild(r)})).style=a.i.errorCancelButton,r.setAttribute("style",a.i.errorMessageBlockStyle),r.style.backgroundColor=n||o.A.defaultErrorBackgroundColor,r}},1763(e,t,n){n.d(t,{Dk:()=>_,K:()=>o.K,L1:()=>F,LC:()=>D,LX:()=>U,Nr:()=>l.Nr,Nt:()=>k,PM:()=>l.PM,Ru:()=>j,WG:()=>l.WG,WY:()=>P,ZA:()=>L,ZZ:()=>o.ZZ,bk:()=>l.bk,e2:()=>B,eR:()=>I,eb:()=>R,f6:()=>T,iU:()=>O,rg:()=>o.rg,s2:()=>M,tE:()=>S,tk:()=>a.t,vx:()=>N,xV:()=>z});var i=n(3291),a=n(588),o=n(9086),s=n(7673),r=n(7423),c=n(3468),l=n(6564),p=n(8251),u=n(675),d=n(4762),m=n(3378),f=n(4158),h=n(1795),g=n(4961),b=n(3138),x=n(52),v=n(4101),y=n(4608);const w=b.store;function C(e,t,n,i,a,s,c){const l=s.children;for(let p=0;p<c.length;p++){const u=c[p];if((0,o.K)(u)===h.A.ui("Options").uri){const c=(0,o.rg)(e,u)(e,null,t,n,u,i,a);r.Rm("Refreshing Options field by replacing it."),s.insertBefore(c,l[p]),s.removeChild(l[p+1])}}}function A(e,t,n,i,a,o,s,r){const p=h.A.ui,u=b.store,d=u.any(a,p("property"));if(!d){const n=(0,c.F)(e,"No property to boolean field: "+a);return t&&t.appendChild(n),n}let m=u.any(a,p("label"));m||(m=x.label(d,!0)),o=(0,l.WG)(i,d,o);let f=u.any(i,d);void 0===f&&(f=!1);const v=g.st(i,d,!0,o),y=P(e,u,m,g.st(i,d,!1,o),v,a,o,r);return t&&t.appendChild(y),y}function E(e,t,n,i,a,s,r){(0,o.rg)(e,a)(e,t,n,i,a,s,r)}function k(e,t,n,i,a){const o=e.createElement("button");return o.setAttribute("type","button"),o.innerHTML="Edit "+x.label(h.A.ui("Form")),o.addEventListener("click",function(s){T(e,t,{},n,h.A.ui("FormForm"),i,a).setAttribute("style",h.A.ui("FormForm").sameTerm(n)?"background-color: #fee;":"background-color: #ffffe7;"),o.parentNode.removeChild(o)},!0),o}function T(e,t,n,i,a,s,r){return(0,o.rg)(e,a)(e,t,n,i,a,s,r)}function L(e,t){const n=e.each(void 0,h.A.rdf("range"),t);[h.A.rdfs("comment"),h.A.dc("title"),h.A.foaf("name"),h.A.foaf("homepage")].forEach(function(e){n.push(e)});let i=e.each(void 0,h.A.rdf("type"),t);i.length>60&&(i=i.slice(0,60));const a={};for(let t=0;t<(i.length>60?60:i.length);t++)e.statementsMatching(i[t],void 0,void 0).forEach(function(e){a[e.predicate.uri]=!0});n.forEach(function(e){a[e.uri]=!0});const o=[];for(const t in a)o.push(e.sym(t));return o}function j(e,t,n){const i=[e.sym(t)];for(;i.length>0;){const t=i.shift(),a=e.each(t,n);if(f.debug("Lists for "+t+", "+n+": "+a.length),0!==a.length)return a;const o=e.each(t,h.A.rdfs("subClassOf"));for(let e=0;e<o.length;e++)i.push(o[e]),f.debug("findClosest: add super: "+o[e])}return[]}function _(e){const t=b.store;f.debug("formsFor: subject="+e);const n=t.findTypeURIs(e);let i;for(i in n)f.debug(" type: "+i);const a=t.bottomTypeURIs(n);let o=[];for(const e in a)f.debug("candidatesFor: trying bottom type ="+e),o=o.concat(j(t,e,h.A.ui("creationForm"))),o=o.concat(j(t,e,h.A.ui("annotationForm")));return o}function S(e){const t=e.map(function(e){return[w.any(e,h.A.ui("sequence"))||9999,e]});return t.sort(function(e,t){return e[0]-t[0]}),t.map(function(e){return e[1]})}function R(e){const t=e.map(function(e){return[x.label(e).toLowerCase(),e]});return t.sort(),t.map(function(e){return e[1]})}function N(e,t,n,i,a,o,s,r){const c=e.createElement("button");return c.setAttribute("type","button"),c.innerHTML="New "+x.label(a),c.addEventListener("click",function(l){c.parentNode.appendChild(B(e,t,n,i,a,o,s,r))},!1),c}function B(e,t,n,a,s,r,c,l){const p=e.createElement("form");if(!r){const n=j(t,s.uri,h.A.ui("creationForm"));if(0===n.length){p.appendChild(e.createElement("p")).textContent="I am sorry, you need to provide information about a "+x.label(s)+" but I don't know enough information about those to ask you.";const t=p.appendChild(e.createElement("button"));return t.setAttribute("type","button"),t.setAttribute("style","float: right;"),t.innerHTML="Goto "+x.label(s),t.addEventListener("click",function(t){e.outlineManager.GotoSubject(s,!0,void 0,!0,void 0)},!1),p}f.debug("lists[0] is "+n[0]),r=n[0]}f.debug("form is "+r),p.setAttribute("style",`border: 0.05em solid ${d.A.formBorderColor}; color: ${d.A.formBorderColor}`),p.innerHTML="<h3>New "+x.label(s)+"</h3>";const u=(0,o.rg)(e,r),m=z(c);let b=!1;function v(e,t,n){return l(t,n)}f.info("paneUtils Object is "+m);const y=u(e,p,{},m,r,c,function(o,r){if(!o)return l(o,r);const u=[];n&&!t.holds(n,a,m,c)&&u.push(g.st(n,a,m,c)),n&&!t.holds(m,h.A.rdf("type"),s,c)&&u.push(g.st(m,h.A.rdf("type"),s,c)),u.length?t.updater.update([],u,v):l(!0,r),b||(b=p.appendChild(i.$J(e,m)))});return i.DT(e,y).setAttribute("style","float: right;"),p.AJAR_subject=m,p}function I(e,t,n,i,a,o){const s=e.createElement("div"),r=t.anyJS(n,i,null,a)||"",l=e.createElement("textarea");function p(r){m.disabled=!0,m.setAttribute("style","visibility: hidden; float: right;"),l.disabled=!0,l.style.color=d.A.textInputColorPending;const p=t.statementsMatching(n,i,null,a),u=g.st(n,i,l.value,a);t.updater.update(p,u,function(t,n,i){n?(l.style.color=d.A.textInputColor,l.disabled=!1):s.appendChild((0,c.F)(e,"Error (while saving change to "+a.uri+"): "+i)),o&&o(n,i)})}s.appendChild(l),l.rows=r?r.split("\n").length+2:2,l.cols=80,l.setAttribute("style",u.i.multilineTextInputStyle),null!==r?l.value=r:l.select(),s.refresh=function(){const e=t.any(n,i,null,a);e&&e.value!==l.value&&(l.value=e.value)};let m;return t.updater.editable(a.uri)?(m=y.continueButton(e,p),m.disabled=!0,m.style.visibility="hidden",m.style.float="right",s.appendChild(m),l.addEventListener("keyup",function(e){l.style.color="green",m&&(m.disabled=!1,m.style.visibility="")},!0),l.addEventListener("change",p,!0)):(l.disabled=!0,l.style.backgroundColor=d.A.textInputBackgroundColorUneditable),s}function D(e,t,n,i,a,s,l,p){f.debug("Select list length now "+a.length);let d=0;const m={},b=t.updater.editable(l.uri);for(let e=0;e<a.length;e++){const t=a[e];t.uri||r.R8(`makeSelectForClassifierOptions: option does not have an uri: ${t}, with predicate: ${i}`),t.uri&&!(t.uri in m)&&(m[t.uri]=!0,d++)}if(0===d&&!s.mint)return(0,c.F)(e,"Can't do selector with no options, subject= "+n+" property = "+i+".");let v;f.debug("makeSelectForClassifierOptions: dataDoc="+l);const y=function(){return v={},i.sameTerm(h.A.rdf("type"))?v=t.findTypeURIs(n):t.each(n,i,null,l).forEach(function(e){v[e.uri]=!0}),v};v=y();const w=function(a){C.disabled=!0;const r=[];let u=[];const d=function(e){t.holds(n,i,e,l)&&r.push(g.st(n,i,e,l))};let m;for(let a=0;a<C.options.length;a++){const o=C.options[a];if(o.selected&&o.AJAR_mint){if(s.mintClass){const a=B(e,t,n,i,s.mintClass,null,l,function(e,t){e||p(e,t,{change:"new"})});C.parentNode.appendChild(a),m=a.AJAR_subject}else m=z(l);u.push(g.st(n,i,m,l)),s.mintStatementsFun&&(u=u.concat(s.mintStatementsFun(m)))}o.AJAR_uri&&(o.selected&&!(o.AJAR_uri in v)&&u.push(g.st(n,i,t.sym(o.AJAR_uri),l)),!o.selected&&o.AJAR_uri in v&&d(t.sym(o.AJAR_uri)),o.selected&&(C.currentURI=o.AJAR_uri))}let h=C.subSelect;for(;h&&h.currentURI;)d(t.sym(h.currentURI)),h=h.subSelect;for(h=C.superSelect;h&&h.currentURI;)d(t.sym(h.currentURI)),h=h.superSelect;function b(e,t){p(e,{widget:"select",event:"new"})}f.info("makeSelectForClassifierOptions: data doc = "+l),t.updater.update(r,u,function(t,n,i){if(v=y(),!n)return C.parentNode.appendChild((0,c.F)(e,"Error updating data in select: "+i));if(C.disabled=!1,m){(0,o.rg)(e,s.subForm)(e,C.parentNode,{},m,s.subForm,l,b)}p&&p(n,{widget:"select",event:"change"})})},C=e.createElement("select");C.setAttribute("style",u.i.formSelectStyle),s.multiple&&C.setAttribute("multiple","true"),C.currentURI=null,C.refresh=function(){v=y();for(let e=0;e<C.children.length;e++){const t=C.children[e];t.AJAR_uri&&(t.selected=t.AJAR_uri in v)}C.disabled=!1};for(const n in m){const i=t.sym(n),a=e.createElement("option");s.disambiguate?a.appendChild(e.createTextNode(x.labelWithOntology(i,!0))):a.appendChild(e.createTextNode(x.label(i,!0)));const o=t.any(i,t.sym("http://www.w3.org/ns/ui#backgroundColor"));o&&a.setAttribute("style","background-color: "+o.value+"; "),a.AJAR_uri=n,n in v&&(a.setAttribute("selected","true"),C.currentURI=n),C.appendChild(a)}if(b&&s.mint){const t=e.createElement("option");t.appendChild(e.createTextNode(s.mint)),t.AJAR_mint=!0,C.insertBefore(t,C.firstChild)}if(null==C.currentURI&&!s.multiple){const t=e.createElement("option");t.appendChild(e.createTextNode(s.nullLabel)),C.insertBefore(t,C.firstChild),t.selected=!0}return b&&C.addEventListener("change",w,!1),C}function O(e,t,n,i,a,o,s,l){f.debug("Select list length now "+a.length);let p=0;const d={},m=t.updater.editable(s.uri);for(let e=0;e<a.length;e++){const t=a[e];t.uri||r.R8(`makeSelectForOptions: option does not have an uri: ${t}, with predicate: ${i}`),t.uri&&!(t.uri in d)&&(d[t.uri]=!0,p++)}if(0===p)return(0,c.F)(e,"Can't do selector with no options, subject= "+n+" property = "+i+".");let b;f.debug("makeSelectForOptions: dataDoc="+s);const v=function(){return b={},i.sameTerm(h.A.rdf("type"))?b=t.findTypeURIs(n):t.each(n,i,null,s).forEach(function(e){e.uri&&(b[e.uri]=!0)}),b};b=v();const y=function(a){w.disabled=!0;const o=[],r=[],p=function(e){t.holds(n,i,e,s)&&o.push(g.st(n,i,e,s))};for(let e=0;e<w.options.length;e++){const a=w.options[e];a.AJAR_uri&&(a.selected&&!(a.AJAR_uri in b)&&r.push(g.st(n,i,t.sym(a.AJAR_uri),s)),!a.selected&&a.AJAR_uri in b&&p(t.sym(a.AJAR_uri)),a.selected&&(w.currentURI=a.AJAR_uri))}let u=w.subSelect;for(;u&&u.currentURI;)p(t.sym(u.currentURI)),u=u.subSelect;for(u=w.superSelect;u&&u.currentURI;)p(t.sym(u.currentURI)),u=u.superSelect;f.info("selectForOptions: data doc = "+s),t.updater.update(o,r,function(t,n,i){if(b=v(),!n)return w.parentNode.appendChild((0,c.F)(e,"Error updating data in select: "+i));w.disabled=!1,l&&l(n,{widget:"select",event:"change"})})},w=e.createElement("select");w.setAttribute("style",u.i.formSelectStyle),w.currentURI=null,w.refresh=function(){b=v();for(let e=0;e<w.children.length;e++){const t=w.children[e];t.AJAR_uri&&(t.selected=t.AJAR_uri in b)}w.disabled=!1};for(const n in d){const i=t.sym(n),a=e.createElement("option");o.disambiguate?a.appendChild(e.createTextNode(x.labelWithOntology(i,!0))):a.appendChild(e.createTextNode(x.label(i,!0)));const s=t.any(i,t.sym("http://www.w3.org/ns/ui#backgroundColor"));s&&a.setAttribute("style","background-color: "+s.value+"; "),a.AJAR_uri=n,n in b&&(a.setAttribute("selected","true"),w.currentURI=n),w.appendChild(a)}if(!w.currentURI){const t=e.createElement("option");t.appendChild(e.createTextNode(o.nullLabel)),w.insertBefore(t,w.firstChild),t.selected=!0}return m&&w.addEventListener("change",y,!1),w}function M(e,t,n,i,a,o){const s=t.any(i,h.A.owl("disjointUnionOf"));let r,l=!1;return s?r=s.elements:(r=t.each(void 0,h.A.rdfs("subClassOf"),i),l=!0),f.debug("Select list length "+r.length),0===r.length?(0,c.F)(e,"Can't do "+(l?"multiple ":"")+"selector with no subclasses of category: "+i):1===r.length?(0,c.F)(e,"Can't do "+(l?"multiple ":"")+"selector with only 1 subclass of category: "+i+":"+r[1]):D(e,t,n,h.A.rdf("type"),r,{multiple:l,nullLabel:"* Select type *"},a,o)}function F(e,t,n,i,a,o){function s(){c&&(r.removeChild(c),c=null),l.currentURI&&t.any(t.sym(l.currentURI),h.A.owl("disjointUnionOf"))&&(c=F(e,t,n,t.sym(l.currentURI),a,o),l.subSelect=c.firstChild,l.subSelect.superSelect=l,r.appendChild(c))}const r=e.createElement("span");let c=null;const l=M(e,t,n,i,a,function(e,t){e&&s(),o(e,t)});return r.appendChild(l),s(),r}function P(e,t,n,i,a,o,s,p){const d=e.createElement("div"),m=(0,l.Nr)(e,t,d,o,n),f=t.updater.editable(s.uri),g=e.createElement("button"),b=g;function x(e){if(!e)return[];if(e.object)return e.why||(e.why=s),[e];if(e instanceof Array)return e;throw new Error("buildCheckboxForm: bad param "+e)}function v(e){return 0===e.filter(e=>!t.holds(e.subject,e.predicate,e.object,e.why)).length}if(g.style=u.i.checkboxInputStyle,m.appendChild(g),a=x(a),i=x(i),function(){let n=v(a),s=n;if(i.length){const r=v(i);if(n&&r)return d.appendChild(y.errorMessageBlock(e,"Inconsistent data in dataDoc!\n"+a+" and\n"+i)),d;if(!n&&!r){n=null;const e=t.any(o,h.A.ui("default"));s=e?"1"===e.value:!!p&&null}}g.state=n,g.textContent={true:"✓",false:p?"✕":" ",null:"-"}[s]}(),!f)return d;return g.addEventListener("click",function(n){b.style.color="#bbb";const o=!0===g.state?a:!1===g.state?i:[];g.newState=null===g.state||!0!==g.state&&(!p||null);const s=!0===g.newState?a:!1===g.newState?i:[];r.Rm(` Deleting ${o}`),r.Rm(` Inserting ${s}`),t.updater.update(o,s,function(n,i,a){if(i)b.style.color="#000",g.state=g.newState,g.textContent={true:"✓",false:"✕",null:"-"}[g.state];else{if(o.why){t.holds(o.subject,o.predicate,o.object,o.why)&&r.Rm(" @@@@@ weird if 409 - does hold statement")}b.style.color="#000",b.style.backgroundColor="#fee",d.appendChild((0,c.F)(e,`Checkbox: Error updating dataDoc from ${g.state} to ${g.newState}:\n\n${a}`))}})},!1),d}function z(e){const t=new Date;return g.sym(e.uri+"#id"+t.getTime())}function U(e,t,n,i,a,o,s,r,l,p,d){const m={},b=n.updater.editable(p.uri);for(let e=0;e<o.length;e++){const t=o[e];t.uri&&!(t.uri in m)&&(m[t.uri]=!0)}if(0===Object.keys(m).length&&!l.mint)return(0,c.F)(e,"Can't do selector with no options, subject= "+i+" property = "+a+".");f.debug("makeSelectForChoice: dataDoc="+p);const v=function(e){t.removeChild(t.lastChild),y.refresh()},y=e.createElement("select");y.setAttribute("style",u.i.formSelectStyle),y.setAttribute("id","formSelect"),y.currentURI=null;for(const e in m)y.appendChild(w(e));if(b&&l.mint){const t=e.createElement("option");t.appendChild(e.createTextNode(l.mint)),t.AJAR_mint=!0,y.insertBefore(t,y.firstChild)}function w(t){const i=e.createElement("option"),a=n.sym(t);let o;o=l.disambiguate?x.labelWithOntology(a,!0):x.label(a,!0),i.appendChild(e.createTextNode(o)),i.setAttribute("value",t);const r=n.any(a,n.sym("http://www.w3.org/ns/ui#backgroundColor"));return r&&i.setAttribute("style","background-color: "+r.value+"; "),i.AJAR_uri=t,$(a.value,s)&&i.setAttribute("selected","true"),i}return 0===y.children.length&&y.insertBefore(function(){const t=e.createElement("option");return t.appendChild(e.createTextNode(function(){let e="--- choice ---";return a&&"BlankNode"!==a.termType&&(e="* Select for property: "+x.label(a)+" *"),i&&"BlankNode"!==i.termType&&(e="* Select for "+x.label(i,!0)+" *"),e}())),t.disabled=!0,t.value=!0,t.hidden=!0,t.selected=!0,t}(),y.firstChild),y.update=function(t){s=t;const o=[],l=[],u=function(e){n.holds(i,a,e,p)&&o.push(g.st(i,a,e,p))},m=function(e){n.holds(i,a,e,p)||l.push(g.st(i,a,e,p)),r&&!n.holds(e,h.A.rdf("type"),n.sym(r),p)&&l.push(g.st(e,h.A.rdf("type"),n.sym(r),p))},f=n.each(i,a,null,p).map(e=>e.value);for(const e of f)$(e,s)||u(g.sym(e));for(const e of s)e in f||m(g.sym(e));n.updater.update(o,l,function(t,n,i){if(!n)return y.parentNode.appendChild((0,c.F)(e,"Error updating data in select: "+i));y.refresh(),d&&d(n,{widget:"select",event:"change"})})},y.refresh=function(){y.disabled=!0;let o,u=[];for(let t=0;t<y.options.length;t++){const c=y.options[t];if(c.selected&&c.AJAR_mint){if(l.mintClass){const t=B(e,n,i,a,r,l.subForm,p,function(e,t){e||d(e,t,{change:"new"})});y.parentNode.appendChild(t),o=t.AJAR_subject}else o=z(p);u.push(g.st(i,a,n.sym(o),p)),r&&u.push(g.st(o,h.A.rdf("type"),n.sym(r),p)),l.mintStatementsFun&&(u=u.concat(l.mintStatementsFun(o))),y.currentURI=o}c.AJAR_uri&&(c.selected&&$(c.AJAR_uri,s)&&(y.currentURI=c.AJAR_uri),$(c.AJAR_uri,s)||c.removeAttribute("selected"),$(c.AJAR_uri,s)&&c.setAttribute("selected","true"))}f.info("selectForOptions: data doc = "+p),y.currentURI&&l.subForm&&!l.multiSelect&&E(e,t,{},g.sym(y.currentURI),l.subForm,p,function(i,a){i?(n.updater.update([],u,function(n,i,a){i||t.appendChild((0,c.F)(e,"Error updating select: "+a))}),d&&d(i,{widget:"select",event:"new"})):t.appendChild((0,c.F)(e,"Error updating data in field of select: "+a))}),y.disabled=!1},b&&y.addEventListener("change",v,!1),y}function $(e,t){let n;for(n=0;n<t.length;n++)if(t[n]===e)return!0;return!1}o.ZZ[h.A.ui("AutocompleteField").uri]=p.l,o.ZZ[h.A.ui("Form").uri]=o.ZZ[h.A.ui("Group").uri]=function(e,t,n,i,a,s,r){const l=e.createElement("div"),p=h.A.ui;if(t&&t.appendChild(l),!a)return;const d=i.toNT()+"|"+a.toNT();if(n[d])return l.appendChild(e.createTextNode("Group: see above "+d)),l;const m={};for(const e in n)m[e]=1;m[d]=1;const f=a.doc?a.doc():null,g=w.any(a,p("weight"),null,f),b=g?Number(g.value):1;if(b>3||b<0)return l.appendChild((0,c.F)(e,`Form Group weight ${b} should be 0-3`));l.setAttribute("style",u.i.formGroupStyle[b]),l.style.display="flex",l.style.flexDirection="column",l.class="form-weight-"+b;let x,v=w.any(a,p("parts"),null,f);if(v?x=v.elements:(v=w.each(a,p("part"),null,f),x=S(v)),!v)return l.appendChild((0,c.F)(e,"No parts to form! "));for(let t=0;t<x.length;t++){const a=x[t],c=(0,o.rg)(e,a),p=function(t,a){t&&a&&a.widget&&"select"===a.widget&&C(e,n,i,s,r,l,x),r(t,{widget:"group",change:a})};l.appendChild(c(e,null,m,i,a,s,p))}return l},o.ZZ[h.A.ui("Options").uri]=function(e,t,n,i,a,o,s){const r=b.store,l=e.createElement("div"),p=a.doc?a.doc():null,u=h.A.ui;t&&t.appendChild(l);let d=r.any(a,u("dependingOn"));d||(d=h.A.rdf("type"));const m=r.each(a,u("case"),null,p);let f;m||l.appendChild((0,c.F)(e,"No cases to Options form. ")),f=d.sameTerm(h.A.rdf("type"))?Object.keys(r.findTypeURIs(i)).map(e=>g.sym(e)):r.each(i,d);for(let t=0;t<m.length;t++){const d=m[t],h=r.each(d,u("for"),null,p);let g=!1;for(let e=0;e<h.length;e++)for(const t of f){const n=h[e];(t.sameTerm(h)||t.termType===n.termType&&t.value===n.value)&&(g=!0)}if(g){const t=r.the(d,u("use"));if(!t)return l.appendChild((0,c.F)(e,'No "use" part for case in form '+a)),l;T(e,l,n,i,t,o,s);break}}return l},o.ZZ[h.A.ui("Multiple").uri]=function(e,t,n,a,s,l,p){function u(e){return e.map(e=>e.toString().slice(-7)).join(", ")}async function d(){const t=z(l);if(L)O(),I.elements.push(t),await M();else{const n=_?[g.st(t,j,a,l)]:[g.st(a,j,t,l)];try{await w.updater.update([],n)}catch(t){const n="Error adding to unordered multiple: "+t;A.appendChild((0,c.F)(e,n)),r.z3(n)}F()}}function v(t){async function s(e,n){let i;for(r.Rm("pre move: "+u(I.elements)),i=0;i<I.elements.length&&!I.elements[i].sameTerm(t);i++);if(i===I.elements.length&&alert("list move: not found element for "+t),n){if(0===i)return void alert("@@ boop - already at top -temp message");I.elements.splice(i-1,2,I.elements[i],I.elements[i-1])}else{if(i===I.elements.length-1)return void alert("@@ boop - already at bottom -temp message");I.elements.splice(i,2,I.elements[i+1],I.elements[i])}await M()}f.debug("Multiple: render object: "+t);const d=(0,o.rg)(e,N)(e,null,n,t,N,l,function(e,n){r.Rm(`Item done callback for item ${t.toString()}`),e||r.z3(" Item done callback: Error: "+n),p(e,n)});if(d.subject=t,w.updater.editable(l.uri)&&(i.Qy(e,d,S,async function(){if(L){r.Rm("pre delete: "+u(I.elements));for(let e=0;e<I.elements.length;e++)if(I.elements[e].sameTerm(t))return I.elements.splice(e,1),void await M()}else if(w.holds(a,j,t,l)){const n=[g.st(a,j,t,l)];w.updater.update(n,[],function(t,n,i){n?B.removeChild(d):B.appendChild((0,c.F)(e,"Multiple: delete failed: "+i))})}}),L)){const t=e.createElement("div");t.style.display="grid",t.style.gridTemplateColumns="auto 3em",t.style.gridTemplateRows="50% 50%";const n=i.x6(e,m.Pt.iconBase+"noun_1369237.svg","Move Up",async e=>s(0,!0)),a=i.x6(e,m.Pt.iconBase+"noun_1369241.svg","Move Down",async e=>s(0,!1)),o=e.createElement("div");return o.appendChild(d),t.appendChild(o),t.appendChild(n),t.appendChild(a),n.style.gridColumn=2,a.style.gridColumn=2,n.style.gridRow=1,a.style.padding="0em",n.style.padding="0em",a.style.gridRow=2,o.style.gridColumn=1,o.style.gridRowStart="span 2",t}return d}const y=m.Pt.iconBase+"noun_19460_green.svg",w=b.store,C=s.doc?s.doc():null,A=e.createElement("div"),E=A,k=h.A.ui;t&&t.appendChild(A);const T=w.any(s,k("ordered")),L=!!T&&g.Node.toJS(T),j=w.any(s,k("property")),_=w.anyJS(s,k("reverse"),null,C);if(!j)return A.appendChild((0,c.F)(e,"No property to multiple: "+s)),E;let S=w.any(s,k("label"));S||(S=x.label(j));let R=w.any(s,k("min"));R=R?0+R.value:0;const N=w.any(s,k("part"));if(!N)return A.appendChild((0,c.F)(e,"No part to multiple: "+s)),E;const B=A.appendChild(e.createElement("div"));let I,D;if(B.style.display="flex",B.style.flexDirection="column",D=_?w.any(null,j,a,l):w.any(a,j,null,l),L?(I=_?w.any(null,j,a,l):w.any(a,j,null,l),D=I?I.elements:[]):(D=_?w.each(null,j,a,l):w.each(a,j,null,l),I=null),w.updater.editable(l.uri)){const t=A.appendChild(e.createElement("div"));t.style.padding="0.5em";const n=t.appendChild(e.createElement("img"));n.setAttribute("src",y),n.setAttribute("style","margin: 0.2em; width: 1.5em; height:1.5em"),n.title="Click to add another "+S;const i=e.createElement("span");i.textContent=(0===D.length?"Add another ":"Add ")+S,t.addEventListener("click",async e=>{await d()},!0),t.appendChild(i)}function O(){I||(I=new g.Collection,_?w.add(I,j,a,l):w.add(a,j,I,l))}async function M(){r.Rm("save list: "+u(I.elements)),O();try{await w.fetcher.putBack(l)}catch(t){return void A.appendChild((0,c.F)(e,"Error trying to put back a list: "+t))}F()}function F(){let e;if(L){const t=_?w.the(null,j,a,l):w.the(a,j,null,l);e=t?t.elements:[]}else e=_?w.each(null,j,a,l):w.each(a,j,null,l),e.sort();x.syncTableToArrayReOrdered(B,e,v)}return B.refresh=F,F(),async function(){const e=R-D.length;if(e>0){for(let t=0;t<e;t++)r.Rm("Adding extra: min "+R),await d();await M()}}().then(()=>{r.Rm(" Multiple render: async stuff ok")},e=>{r.z3(" Multiple render: async stuff fails. #### ",e)}),E},o.ZZ[h.A.ui("PhoneField").uri]=l.PM,o.ZZ[h.A.ui("EmailField").uri]=l.PM,o.ZZ[h.A.ui("ColorField").uri]=l.PM,o.ZZ[h.A.ui("DateField").uri]=l.PM,o.ZZ[h.A.ui("DateTimeField").uri]=l.PM,o.ZZ[h.A.ui("TimeField").uri]=l.PM,o.ZZ[h.A.ui("NumericField").uri]=l.PM,o.ZZ[h.A.ui("IntegerField").uri]=l.PM,o.ZZ[h.A.ui("DecimalField").uri]=l.PM,o.ZZ[h.A.ui("FloatField").uri]=l.PM,o.ZZ[h.A.ui("TextField").uri]=l.PM,o.ZZ[h.A.ui("SingleLineTextField").uri]=l.PM,o.ZZ[h.A.ui("NamedNodeURIField").uri]=l.PM,o.ZZ[h.A.ui("MultiLineTextField").uri]=function(e,t,n,i,a,o,s){const r=h.A.ui,p=b.store,u=a.doc?a.doc():null,m=p.any(a,r("property"));if(!m)return(0,c.F)(e,"No property to text field: "+a);const f=e.createElement("div");f.style.display="flex",f.style.flexDirection="row";const g=f.appendChild(e.createElement("div"));g.style.width=d.A.formFieldNameBoxWidth;const x=f.appendChild(e.createElement("div"));g.appendChild((0,l.bk)(e,m,a)),o=(0,l.WG)(i,m,o);const v=p.anyJS(i,m,null,o)||"",y=p.updater.editable(o.uri),w=a&&p.anyJS(a,h.A.ui("suppressEmptyUneditable"),null,u);!y&&w&&""===v&&(f.style.display="none");const C=I(e,p,i,m,o,s);return x.appendChild(C),t&&t.appendChild(f),f},o.ZZ[h.A.ui("BooleanField").uri]=function(e,t,n,i,a,o,s){return A(e,t,0,i,a,o,0,!1)},o.ZZ[h.A.ui("TristateField").uri]=function(e,t,n,i,a,o,s){return A(e,t,0,i,a,o,0,!0)},o.ZZ[h.A.ui("Classifier").uri]=function(e,t,n,i,a,o,s){const r=b.store,p=h.A.ui,d=r.any(a,p("category"));if(!d)return(0,c.F)(e,"No category for classifier: "+a);f.debug("Classifier: dataDoc="+o);const m=e.createElement("div");m.setAttribute("class","classifierBox");const g=e.createElement("div");g.setAttribute("class","formFieldName classifierBox-label"),g.appendChild((0,l.bk)(e,d,a)),m.appendChild(g);const x=e.createElement("div");x.setAttribute("class","formFieldValue classifierBox-selectBox");const v=F(e,r,i,d,o,function(e,t){return s(e,t)});if(v&&v.querySelectorAll){const e=v.querySelectorAll("select");e.length&&!r.updater.editable(o.uri)&&e.forEach(e=>{e.readOnly=!0,e.style=u.i.textInputStyleUneditable})}return x.appendChild(v),m.appendChild(x),t&&t.appendChild(m),m},o.ZZ[h.A.ui("Choice").uri]=function(e,t,n,a,o,s,r){const p=h.A.ui,u=b.store,d=o.doc?o.doc():null;let m;const f=e.createElement("div");f.setAttribute("class","choiceBox"),t&&t.appendChild(f);const x=e.createElement("div");x.setAttribute("class","formFieldName choiceBox-label"),f.appendChild(x);const y=e.createElement("div");y.setAttribute("class","formFieldValue choiceBox-selectBox"),f.appendChild(y);const w=u.any(o,p("property"));if(!w)return f.appendChild((0,c.F)(e,"No property for Choice: "+o));x.appendChild((0,l.bk)(e,w,o));const C=u.any(o,p("from"));if(!C)return(0,c.F)(e,"No 'from' for Choice: "+o);const A=u.any(o,p("use")),k={form:o,subForm:A,disambiguate:!1};u.any(o,p("canMintNew"))&&(k.mint="* Create new *");const T=u.any(o,p("multiselect"));T&&(k.multiSelect=!0);const L=u.each(o,p("search-full-store")).length?null:s;let j;return y.refresh=function(){let t=u.each(a,w,null,s).map(e=>e.value),n=function(e){let t,n=[];n=u.each(void 0,h.A.rdf("type"),C,d);for(const t in function(e,t,n){let i,a,o,s,r,c,l,p,u,d,m;const f={};f[t.toNT()]=!0;const h={},g=e.transitiveClosure(f,e.rdfFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#subClassOf"),!0);for(const t in g){r=e.statementsMatching(null,e.rdfFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"),e.fromNT(t),n);for(let e=0,t=r.length;e<t;e++)d=r[e],h[d.subject.toNT()]=d;c=e.each(null,e.rdfFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#domain"),e.fromNT(t),n);for(let t=0,a=c.length;t<a;t++)for(s=c[t],l=e.statementsMatching(null,s,null,n),o=0,i=l.length;o<i;o++)d=l[o],h[d.subject.toNT()]=d;p=e.each(null,e.rdfFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#range"),e.fromNT(t),n);for(let t=0,i=p.length;t<i;t++)for(s=p[t],u=e.statementsMatching(null,s,null,n),m=0,a=u.length;m<a;m++)d=u[m],h[d.object.toNT()]=d}return h}(u,C,e))n.push(u.fromNT(t));if(C.sameTerm(h.A.rdfs("Class")))for(m in i.Pg())n.push(u.sym(m));else if(C.sameTerm(h.A.rdf("Property"))){for(m in t=i.uA(u),t.op)n.push(u.fromNT(m));for(m in t.dp)n.push(u.fromNT(m));k.disambiguate=!0}else if(C.sameTerm(h.A.owl("ObjectProperty"))){for(m in t=i.uA(u),t.op)n.push(u.fromNT(m));k.disambiguate=!0}else if(C.sameTerm(h.A.owl("DatatypeProperty"))){for(m in t=i.uA(u),t.dp)n.push(u.fromNT(m));k.disambiguate=!0}return n}(L);if(n.push(t),n=R(n),j=U(e,y,u,a,w,n,t,C,k,s,r),y.innerHTML="",y.appendChild(j),T){const n=new v.N({placeholder:j.selected,select:j,container:y,textField:"textField",valueField:"valueField"});n.init(),n.subscribe(function(n){if("REMOVE_OPTION"===n.action&&(t=t.filter(function(e){return e!==n.value})),"CLEAR_ALL_OPTIONS"===n.action&&(t=[]),"ADD_OPTION"===n.action){if((n.value+"").includes("Create new")){const n=z(s),i=[];i.push(g.st(a,w,u.sym(n),s)),C&&i.push(g.st(n,h.A.rdf("type"),u.sym(C),s)),A&&E(e,y,{},g.sym(n),A,s,function(a,o){a?(u.updater.update([],i,function(t,n,i){n||y.appendChild((0,c.F)(e,"Error updating select: "+i))}),t.push(n),r&&r(a,{widget:"select",event:"new"})):y.appendChild((0,c.F)(e,"Error updating data in field of select: "+o))})}else t.push(n.value)}j.update(t)})}},y.refresh(),j&&j.refresh&&j.refresh(),f},o.ZZ[h.A.ui("Comment").uri]=o.ZZ[h.A.ui("Heading").uri]=function(e,t,n,i,r,c,l){const p=h.A.ui,u=b.store;let d=u.any(r,p("contents"));d||(d="Error: No contents in comment field.");const m=r.doc?r.doc():null,f=(0,o.K)(r),g=a.t[f]||{},x=e.createElement("div");t&&t.appendChild(x);const v=x.appendChild(e.createElement(g.element));v.textContent=d,(0,s.c)(v,r);const y=u.anyJS(r,h.A.ui("suppressIfUneditable"),null,m),w=u.updater.editable(c.uri);return y&&!w&&(x.style.display="none"),x}},9238(e,t,n){n.d(t,{A:()=>d});var i=n(1795),a=n(3378),o=n(3138),s=n(4608),r=n(52),c=n(3693);const l=a.Pt.iconBase+"noun_34653_green.svg",p=a.Pt.iconBase+"noun_Search_875351.svg",u=a.Pt.iconBase+"noun_253504.svg";async function d(e,t,n,a,d,m){async function f(e,t){return a.permanent?((0,c.L)(w,!0),(0,c.L)(g,!1),(0,c.L)(b,!1)):k&&(T.removeChild(k),k=void 0),d(e,t)}async function h(){k=e.createElement("div"),k.setAttribute("style","display: flex; flex-flow: wrap;"),k.appendChild(await(0,c.r)(e,a,E,f)),k.appendChild(g),k.appendChild(b),k.appendChild(w),k.appendChild(x),T.appendChild(k)}const g=s.continueButton(e);g.setAttribute("data-testid","accept-button");const b=s.cancelButton(e);b.setAttribute("data-testid","cancel-button");const x=e.createElement("div"),v=a.targetClass?r.label(a.targetClass):"item",y=s.deleteButtonWithCheck(e,x,v,m);y.setAttribute("data-testid","delete-button");const w=s.button(e,u,"Edit",e=>{C=!C,A()});w.setAttribute("data-testid","edit-button");let C=!0;function A(){C?((0,c.L)(w,!1),(0,c.L)(g,!1),(0,c.L)(b,!1)):((0,c.L)(w,!0),(0,c.L)(g,!1),(0,c.L)(b,!1))}const E={acceptButton:g,cancelButton:b,editButton:w,deleteButton:y};let k;const T=e.createElement("div");if(T.style.display="flex",T.style.flexDirection="row",(a.permanent||a.currentObject)&&await h(),n.editable){if(T.style.width="100%",n.manualURIEntry){const a=T.appendChild(s.button(e,l,n.idNoun,async function(n){const a=await s.askName(e,o.store,T,i.A.vcard("url"),void 0,"Solid ID");if(a)return d(t,a)}));s.makeDropTarget(a,async function(e){for(const n of e)await d(t,n)},void 0)}!n.dbLookup||a.currentObject||a.permanent||T.appendChild(s.button(e,p,n.idNoun,async function(e){k?(T.removeChild(k),k=void 0):await h()}))}return A(),T}},8251(e,t,n){n.d(t,{l:()=>l});var i=n(1795),a=n(3138),o=n(4608),s=n(675),r=n(9238),c=n(4961);function l(e,t,n,l,p,u,d){if("NamedNode"!==l.termType)throw new Error("Sorry this field only works on NamedNode subjects (for editable)");const m=a.store,f=p.doc?p.doc():null,h=e.createElement("div");t&&t.appendChild(h);const g=e.createElement("div");g.setAttribute("class","formFieldName"),g.setAttribute("style",s.i.formFieldNameBoxStyle),h.appendChild(g);const b=e.createElement("div");b.setAttribute("class","formFieldValue"),h.appendChild(b);const x=m.any(p,i.A.ui("property"));if(!x)return h.appendChild(o.errorMessageBlock(e,"Error: No property given for autocomplete field: "+p));const v=m.any(p,i.A.ui("labelProperty"))||i.A.schema("name"),y=m.any(p,i.A.ui("dataSource"));if(!y)return h.appendChild(o.errorMessageBlock(e,"Error: No data source given for autocomplete field: "+p));const w={label:m.anyJS(y,i.A.schema("name"),null,y.doc()),logo:m.any(y,i.A.schema("logo"),null,y.doc())},C=m.any(p,i.A.ui("targetClass"),null,p.doc())||m.any(y,i.A.ui("targetClass"),null,y.doc());C&&(w.targetClass=C),w.objectURIBase=m.any(y,i.A.ui("objectURIBase"),null,y.doc())||void 0;const A=m.anyJS(y,i.A.ui("endpoint"),null,y.doc());if(A){if(w.endpoint=A,w.searchByNameQuery=m.anyJS(y,i.A.ui("searchByNameQuery"),null,y.doc()),!w.searchByNameQuery)return h.appendChild(o.errorMessageBlock(e,"Error: No searchByNameQuery given for endpoint data Source: "+p));w.insitituteDetailsQuery=m.anyJS(y,i.A.ui("insitituteDetailsQuery"),null,y.doc())}else{const t=m.anyJS(y,i.A.ui("searchByNameURI"));if(!t)return h.appendChild(o.errorMessageBlock(e,"Error: No searchByNameURI OR sparql endpoint given for dataSource: "+y));w.searchByNameURI=t}const E=m.anyJS(p,i.A.ui("suppressEmptyUneditable"),null,f),k=m.updater?.editable(u.uri),T={permanent:!0,targetClass:w.targetClass,queryParams:w};T.size=m.anyJS(p,i.A.ui("size"),null,f)||void 0;let L=m.any(l,x,void 0,u);if(L)T.currentObject=L,T.currentName=m.any(T.currentObject,v,null,u);else if(L=m.any(p,i.A.ui("default")),L)T.currentObject=L,T.currentName=m.any(T.currentObject,v,null,u);else if(E&&!k)return h.style.display="none",h;g.appendChild(o.fieldLabel(e,x,p));const j={editable:k,dbLookup:!0};return(0,r.A)(e,l,j,T,async function(t,n){if(!n)throw new Error("autocompleteField: No name set.");const i=m.the(l,x,null,u);if(i){const e=m.any(i,v,null,u);if(i.equals(t)&&e&&e.sameTerm(n))return}const a=i?m.statementsMatching(l,x,i,u).concat(m.statementsMatching(i,v,null,u)):[],s=[(0,c.st)(l,x,t,u),(0,c.st)(t,v,n,u)];try{await(m.updater?.updateMany(a,s))}catch(t){return d(!1,t),void h.appendChild(o.errorMessageBlock(e,"Autocomplete form data update error:"+t,null,t))}d(!0,"")},async function(t,n){const i=m.the(l,x,null,u);if(!i)return d(!1,"NO data to elete"),void h.appendChild(o.errorMessageBlock(e,"Autocomplete delete: no old data!"));const a=m.statementsMatching(l,x,i,u).concat(m.statementsMatching(i,v,null,u)),s=[];try{await(m.updater?.updateMany(a,s))}catch(t){const n=new Error("Autocomplete form data delete error:"+t);return d(!1,t),void h.appendChild(o.errorMessageBlock(e,n,null,t))}d(!0,"")}).then(e=>{b.appendChild(e)},t=>{b.appendChild(o.errorMessageBlock(e,`Error rendering autocomplete ${p}: ${t}`,"#fee",t))}),h}},3693(e,t,n){n.d(t,{L:()=>p,r:()=>u});var i=n(7423),a=n(675),o=n(4762),s=n(4608),r=n(3138),c=n(8702),l=n(8677);function p(e,t){e.style.display=t?"":"none"}async function u(e,t,n,u){function d(e,n){i.Rm("Auto complete: finish! "+e),"Literal"===e.termType&&t.queryParams.objectURIBase&&(e=r.store.sym(t.queryParams.objectURIBase.value+e.value)),h(),u(e,n)}async function m(e,t){if(n.acceptButton)return n.acceptButton.disbaled=!1,p(n.acceptButton,!0),_.value=t.value,k=t,T=e,i.Rm("Auto complete: name: "+t),i.Rm("Auto complete: waiting for accept "+e),void h();p(n.cancelButton,!0),d(e,t)}async function f(e){k&&_.value===k.value&&d(T,k)}function h(){for(;L.children.length>1;)L.removeChild(L.lastChild)}function g(){t.currentObject?(_.value=t.currentName?t.currentName.value:"??? wot no name for "+t.currentObject,k=t.currentName,v=t.currentName?t.currentName.value:void 0,T=t.currentObject):(_.value="",v=void 0,T=void 0),n.deleteButton&&p(n.deleteButton,!!t.currentObject),n.acceptButton&&p(n.acceptButton,!1),n.editButton&&p(n.editButton,!0),n.cancelButton&&p(n.cancelButton,!1),w=!1,h()}const b=t.targetClass;if(!b)throw new Error("renderAutoComplete: missing targetClass");let x;n.acceptButton&&n.acceptButton.addEventListener("click",f,!1),n.cancelButton&&n.cancelButton.addEventListener("click",async function(e){i.Rm("Auto complete: Canceled by user! "),t.permanent?g():E.parentNode&&E.parentNode.removeChild(E)},!1);let v,y=!1,w=!1,C=!1,A=20;const E=e.createElement("div");let k,T;const L=E.appendChild(e.createElement("table"));L.setAttribute("data-testid","autocomplete-table"),L.setAttribute("style","max-width: 30em; margin: 0.5em;");const j=L.appendChild(e.createElement("tr"));a.i.setStyle(j,"autocompleteRowStyle");const _=j.appendChild(e.createElement("td")).appendChild(e.createElement("input"));_.setAttribute("type","text"),g();const S=t.size||o.A.textInputSize||20;_.setAttribute("size",S),_.setAttribute("data-testid","autocomplete-input");const R=a.i.textInputStyle||"border: 0.1em solid #444; border-radius: 0.5em; width: 100%; font-size: 100%; padding: 0.1em 0.6em";return _.setAttribute("style",R),_.addEventListener("keyup",function(e){13===e.keyCode&&f()},!1),_.addEventListener("input",async function(o){p(n.cancelButton,!0),async function(){function n(t){const n=e.createElement("tr");a.i.setStyle(n,"autocompleteRowStyle"),n.setAttribute("style","padding: 0.3em;"),n.style.color=C?"#080":"#088",n.textContent=t.name.value;const o=(0,c.bindingToTerm)(t.subject),s=(0,c.bindingToTerm)(t.name);return n.addEventListener("click",async e=>{i.Rm(" click row textContent: "+n.textContent),i.Rm(" click name: "+s.value),o&&s&&m(o,s)}),n}function o(e,t){return t.name.value>e.name.value?1:t.name.name<e.name.value?-1:0}if(w)return void i.Rm(`Ignoring "${_.value}" because of lock `);i.Rm(`Setting lock at "${_.value}"`),w=!0;const r=await(0,l.getPreferredLanguages)(),p=_.value.trim().toLowerCase();if(p.length<4)h(),A=20;else{C&&v&&p.startsWith(v)||(i.Rm(` Querying database at "${p}" cf last "${v}".`),x=await async function(n,o){let r;try{r=await(0,c.queryPublicDataByName)(n,b,o||l.defaultPreferredLanguages,t.queryParams)}catch(t){return function(t){const n=L.appendChild(e.createElement("tr"));i.Rm(t);const o=new Error(t);n.appendChild(s.errorMessageBlock(e,o,"pink")),a.i.setStyle(n,"autocompleteRowStyle"),n.style.padding="1em"}("Error querying db of organizations: "+t),void(w=!1)}y=r.length<c.AUTOCOMPLETE_LIMIT,v=y?n:void 0;h();const p=(0,l.filterByLanguage)(r,o);return p}(p,r));const u=function(e,t){return t.filter(t=>function(e,t){const n=e.split(" ");for(let e=0;e<n.length;e++){const i=n[e];if(t.toLowerCase().indexOf(i)<0)return!1}return!0}(e,t.name.value))}(p,x);y&&u.length<=40&&(A=u.length),C=y&&u.length<=A,i.Rm(` Filter:"${p}" lastBindings: ${x.length}, slimmed to ${u.length}; rows: ${A}, Enough? ${y}, All displayed? ${C}`);const d=u.slice(0,A);d.sort(o),h();for(const e of d)L.appendChild(n(e));1===u.length&&m((0,c.bindingToTerm)(u[0].subject),(0,c.bindingToTerm)(u[0].name))}w=!1}()}),E}},8677(e,t,n){n.r(t),n.d(t,{addDefaults:()=>c,defaultPreferredLanguages:()=>r,filterByLanguage:()=>u,getPreferredLanguages:()=>p,getPreferredLanguagesFor:()=>l,languageCodeURIBase:()=>s});var i=n(7423),a=n(3138),o=n(1795);const s="https://www.w3.org/ns/iana/language-code/",r=["en","fr","de","it","ar"];function c(e){return e||(e=[]),e.concat(r.filter(t=>!e.includes(t)))}async function l(e){const t=e.doc();await(a.store.fetcher?.load(t));const n=a.store.any(e,o.A.schema("knowsLanguage"),null,t);if(!n)return r;const i=[];return n.elements.forEach(e=>{const n=a.store.any(e,o.A.solid("publicId"),null,t);if(!n)return void console.warn("getPreferredLanguages: No publiID of language.");if(!n.value.startsWith(s))return void console.error(`What should be a language code ${n.value} does not start with ${s}`);const r=n.value.slice(s.length);i.push(r)}),i.length>0?(console.log(` User knows languages with codes: "${i.join(",")}"`),c(i)):null}async function p(){const e=await a.authn.currentUser();if(e){const t=await l(e);if(t)return t}if("undefined"!=typeof navigator){if(navigator.languages)return c(navigator.languages.map(e=>e.split("-")[0]));if(navigator.language)return c([navigator.language.split("-")[0]])}return r}function u(e,t){const n={};e.forEach(e=>{const t=e.subject.value;n[t]=n[t]||[],n[t].push(e)});const a=t||r;a.reverse();const o=[];for(const e in n){const t=n[e].map(e=>{const t=e.name["xml:lang"];return[a.indexOf(t),e]});t.sort(),t.reverse(),o.push(t[0][1])}return i.Rm(` Filter by language: ${e.length} -> ${o.length}`),o}},8702(e,t,n){n.r(t),n.d(t,{AUTOCOMPLETE_LIMIT:()=>c,ESCOResultToBindings:()=>C,bindingToTerm:()=>y,dbPediaTypeMap:()=>h,dbpediaParameters:()=>f,escoParameters:()=>m,fetcherOptionsJsonPublicData:()=>d,getDbpediaDetails:()=>N,getWikidataDetails:()=>_,getWikidataDetailsOld:()=>S,getWikidataLocation:()=>R,instituteDetailsWikidataQuery:()=>u,loadFromBindings:()=>w,loadPublicDataThing:()=>j,queryESCODataByName:()=>A,queryPublicDataByName:()=>k,queryPublicDataConstruct:()=>L,queryPublicDataSelect:()=>T,variableNameToPredicateMap:()=>v,wikidataClasses:()=>p,wikidataIncomingClassMap:()=>x,wikidataOutgoingClassMap:()=>g,wikidataParameters:()=>b});var i=n(4961),a=n(3138),o=n(7423),s=n(1795),r=n(8677);const c=200,l=/\$\(subject\)/g,p={Corporation:"http://www.wikidata.org/entity/Q6881511",EducationalOrganization:"http://www.wikidata.org/entity/Q178706",GovernmentOrganization:"http://www.wikidata.org/entity/Q327333",MedicalOrganization:"http://www.wikidata.org/entity/Q4287745",MusicGroup:"http://www.wikidata.org/entity/Q32178211",NGO:"http://www.wikidata.org/entity/Q163740",Occupation:"http://www.wikidata.org/entity/Q28640",Project:"http://www.wikidata.org/entity/Q170584",ResearchOrganization:"http://www.wikidata.org/entity/Q31855",SportsOrganization:"http://www.wikidata.org/entity/Q4438121"},u='prefix vcard: <http://www.w3.org/2006/vcard/ns#>\nCONSTRUCT\n{ wd:Q49108 vcard:fn ?itemLabel.\nwd:Q49108 rdf:type ?klass. ?klass rdfs:label ?klassLabel; rdfs:comment ?klassDescription .\nwd:Q49108 schema:logo ?logo;\n schema:image ?image;\n schema:logo ?sealImage;\n schema:subOrganization ?subsidiary .\n ?subsidiary rdfs:label ?subsidiaryLabel .\n ?supersidiary schema:subOrganization wd:Q49108 .\n ?supersidiary rdfs:label ?supersidiaryLabel .\n wd:Q49108 schema:location ?location .\n ?location schema:elevation ?elevation .\n ?location wdt:P131 ?region . ?region rdfs:label ?regionLabel .\n ?location wdt:P625 ?coordinates .\n ?location schema:country ?country . ?country rdfs:label ?countryLabel .\n}\nWHERE\n{ optional {wd:Q49108 rdfs:label ?itemLabel} .\n optional {wd:Q49108 wdt:P154 ?logo .}\n optional {wd:Q49108 wdt:P31 ?klass .}\n optional {wd:Q49108 wdt:P158 ?sealImage .}\n optional {wd:Q49108 wdt:P18 ?image .}\n\n optional { wd:Q49108 wdt:P355 ?subsidiary . }\n optional { ?supersidiary wdt:P355 wd:Q49108. }\n\n optional { wd:Q49108 wdt:P276 ?location .\n\n optional { ?location schema:eleveation ?elevation }\n optional { ?location wdt:P131 ?region }\n optional { ?location wdt:P625 ?coordinates }\n optional { ?location wdt:P17 ?country }\n }\n SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en,de,it". }\n}',d={credentials:"omit",headers:new Headers({Accept:"application/json"})},m={label:"ESCO",logo:a.store.sym("https://ec.europa.eu/esco/portal/static_resource2/images/logo/logo_en.gif"),searchByNameURI:"https://ec.europa.eu/esco/api/search?language=$(language)&type=occupation&text=$(name)"},f={label:"DBPedia",logo:a.store.sym("https://upload.wikimedia.org/wikipedia/commons/thumb/7/73/DBpediaLogo.svg/263px-DBpediaLogo.svg.png"),searchByNameQuery:'select distinct ?subject, ?name where {\n ?subject a $(targetClass); rdfs:label ?name\n FILTER regex(?name, "$(name)", "i")\n } LIMIT $(limit)',endpoint:"https://dbpedia.org/sparql/"},h={AcademicInsitution:"http://umbel.org/umbel/rc/EducationalOrganization"},g={AcademicInsitution:"http://www.wikidata.org/entity/Q4671277",Enterprise:"http://www.wikidata.org/entity/Q6881511",Business:"http://www.wikidata.org/entity/Q4830453",NGO:"http://www.wikidata.org/entity/Q79913",CharitableOrganization:"http://www.wikidata.org/entity/Q708676",Insitute:"http://www.wikidata.org/entity/Q1664720"},b={label:"WikiData",limit:3e3,logo:a.store.sym("https://www.wikimedia.org/static/images/project-logos/wikidatawiki.png"),endpoint:"https://query.wikidata.org/sparql",searchByNameQuery:'SELECT ?subject ?name\n WHERE {\n ?klass wdt:P279* $(targetClass) .\n ?subject wdt:P31 ?klass .\n ?subject rdfs:label ?name.\n FILTER regex(?name, "$(name)", "i")\n } LIMIT $(limit) ',insitituteDetailsQuery:'CONSTRUCT\n{ wd:Q49108 schema:name ?itemLabel;\n schema:logo ?logo;\n schema:logo ?sealImage;\n schema:subOrganization ?subsidiary .\n ?subsidiary schema:name ?subsidiaryLabel .\n}\nWHERE\n{\n wd:Q49108 # rdfs:label ?itemLabel ;\n wdt:P154 ?logo;\n wdt:P158 ?sealImage ;\n wdt:P355 ?subsidiary .\n # ?subsidiary rdfs:label ?subsidiaryLabel .\n\n SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE], fr". }\n}'},x={"http://www.wikidata.org/entity/Q15936437":s.A.schema("CollegeOrUniversity"),"http://www.wikidata.org/entity/Q1664720":s.A.schema("EducationalOrganization"),"http://www.wikidata.org/entity/Q43229":s.A.schema("Organization"),"http://www.wikidata.org/entity/Q3918":s.A.schema("CollegeOrUniversity"),"http://www.wikidata.org/entity/Q170584":s.A.schema("Project"),"http://www.wikidata.org/entity/Q327333":s.A.schema("GovernmentOrganization"),"http://www.wikidata.org/entity/Q2221906":s.A.schema("Place"),"http://www.wikidata.org/entity/Q167037":s.A.schema("Corporation")},v={targetClass:s.A.rdf("type"),sealImage:s.A.schema("logo"),shortName:s.A.foaf("nick"),subsidiary:s.A.schema("subOrganization"),city:s.A.vcard("locality"),state:s.A.vcard("region"),country:s.A.vcard("country-name"),homepage:s.A.foaf("homepage"),lat:s.A.schema("latitude"),long:s.A.schema("longitude")};function y(e){const t=e.type.toLowerCase();if("uri"===t||"iri"===t)return a.store.sym(e.value);if("literal"===t)return e["xml:lang"]?new i.Literal(e.value,e["xml:lang"]):new i.Literal(e.value);throw new Error(`bindingToTerm: Unexpected type "${e.type}" in sparql binding}`)}function w(e,t,n,a,r=v){const c={};o.Rm(`loadFromBindings: subject: ${t}`),o.Rm(` doc: ${a}`),n.forEach(e=>{for(const t in e){const n=e[t],i=JSON.stringify(n);c[t]=c[t]||new Set,c[t].add(i)}});for(const n in c){const l=c[n];o.Rm(` results ${n} -> ${l}`),l.forEach(c=>{const l=JSON.parse(c),{type:p,value:u}=l;let d;if("uri"===p)d=e.sym(u);else{if("literal"!==p)throw new Error(`loadFromBindings: unexpected type: ${p}`);d=new i.Literal(u,l.language,l.datatype)}if("type"===n)x[u]?d=x[u]:o.R8("Unmapped Wikidata Class: "+u);else if("coordinates"===n){o.Rm(" @@@ hey a point: "+u);const n=/.*\(([-0-9.-]*) ([-0-9.-]*)\)/.exec(u);if(n){const o=s.A.xsd("float"),r=new i.Literal(n[1],null,o),c=new i.Literal(n[2],null,o);e.add(t,s.A.schema("longitude"),c,a),e.add(t,s.A.schema("latitude"),r,a)}else o.Rm("Bad coordinates syntax: "+u)}else{const i=r[n]||s.A.schema(n);e.add(t,i,d,a),o.Rm(` public data ${i} ${d}.`)}})}}function C(e){return e._embedded.results.map(e=>({name:{value:e.title,type:"literal"},subject:{type:"IRI",value:e.uri}}))}async function A(e,t,n){if(!n.searchByNameURI)throw new Error("Missing queryTarget.searchByNameURI on queryESCODataByName");const i=n.limit||c,s=n.searchByNameURI.replace("$(name)",e).replace("$(limit)",""+i).replace("$(targetClass)",t.toNT());o.Rm("Querying ESCO data - uri: "+s);const r=await(a.store.fetcher?.webOperation("GET",s,d)),l=r?.responseText||"";if(o.Rm(" Query result text"+l.slice(0,500)+"..."),0===l.length)throw new Error("Wot no text back from ESCO query "+s);const p=JSON.parse(l);return o.Rm(" ESCO Query result JSON"+JSON.stringify(p,null,4).slice(0,500)+"..."),C(p)}function E(e){const t=e.indexOf("SPARQL-QUERY");if(t<0)return e;o.R8(" ### Fixing JSON with wikidata error code injection "+e.slice(t,t+200));const n=e.lastIndexOf("}, {");return e.slice(0,n)+" } ] } } "}async function k(e,t,n,i){function s(n){const a=i.limit||c;return n.replace("$(name)",e).replace("$(limit)",""+a).replace("$(language)",l).replace("$(targetClass)",t.toNT())}if(!t)throw new Error("queryPublicDataByName: No class provided");const l=(await(0,r.getPreferredLanguages)()||r.defaultPreferredLanguages)[0]||"en";if(i.searchByNameQuery){const e=s(i.searchByNameQuery);return o.Rm("Querying public data - sparql: "+e),T(e,i)}if(i.searchByNameURI){const e=s(i.searchByNameURI);let t;try{t=await(a.store.fetcher?.webOperation("GET",e,d))}catch(t){throw new Error(`Exception when trying to fetch ${e} \n ${t}`)}const n=t.responseText||"";if(200!==t.status)throw new Error(`HTTP error status ${t.status} trying to fetch ${e} `);if(o.Rm(" Query result text"+n.slice(0,500)+"..."),0===n.length)throw new Error("queryPublicDataByName: No text back from public data query "+e);const r=E(n),c=JSON.parse(r);if(o.Rm(" API Query result JSON"+JSON.stringify(c,null,4).slice(0,500)+"..."),c._embedded){o.Rm(" Looks like ESCO");return C(c)}throw alert("Code me: unrecognized API return format"),new Error(`*** Need to add code to parse unrecognized API JSON return\n${JSON.stringify(c,null,4)}`)}throw new Error("Query source must have either rest API or SPARQL endpoint.")}async function T(e,t){if(!t.endpoint)throw new Error("Missing queryTarget.endpoint required for queryPublicDataSelect");const n=new URL(t.endpoint);n.searchParams.append("query",e);const i=n.href;o.Rm(" queryPublicDataSelect uri: "+i);const s=new Headers;s.append("Accept","application/json");const r={credentials:"omit",headers:s},c=await(a.store.fetcher?.webOperation("GET",i,r)),l=c?.responseText||"";if(0===l.length)throw new Error("No text back from query "+i);const p=E(l),u=JSON.parse(p);o.Rm(" Query result JSON"+JSON.stringify(u,null,4).slice(0,100)+"...");return u.results.bindings}async function L(e,t,n){if(o.Rm("queryPublicDataConstruct: sparql:",e),!n.endpoint)throw new Error("Missing queryTarget.endpoint required for queryPublicDataConstruct");const s=new URL(n.endpoint);s.searchParams.append("query",e);const r=s.href;o.Rm(" queryPublicDataConstruct uri: "+r);const c=new Headers;c.append("Accept","text/turtle");const l={credentials:"omit",headers:c},p=await(a.store.fetcher?.webOperation("GET",r,l)),u=p?.responseText||"No response text?",d=u.length>500?u.slice(0,200)+" ... "+u.slice(-200):u;if(o.Rm(" queryPublicDataConstruct result text:"+d),0===u.length)throw new Error("queryPublicDataConstruct: No text back from construct query:"+r);(0,i.parse)(u,a.store,t.uri,"text/turtle")}async function j(e,t,n){if(n.uri.startsWith("https://dbpedia.org/resource/"))return N(e,t,n);if(!n.uri.match(/^https?:\/\/www\.wikidata\.org\/entity\/.*/)){const t=n.uri.startsWith("http:")?e.sym("https:"+n.uri.slice(5)):n,i=new Headers;return i.append("Accept","text/turtle"),e.fetcher.load(t,{credentials:"omit",headers:i})}await _(e,t,n)}async function _(e,t,n){const i=u.replace(/wd:Q49108/g,n.toNT());await L(i,n,b),o.Rm("getWikidataDetails: loaded.",n)}async function S(e,t,n){const i='select distinct * where {\n optional { $(subject) wdt:P31 ?targetClass } # instance of\n optional { $(subject) wdt:P154 ?logo }\n optional { $(subject) wdt:P158 ?sealImage }\n# optional { $(subject) wdt:P159 ?headquartersLocation }\n\noptional { $(subject) wdt:P17 ?country }\noptional { $(subject) wdt:P18 ?image }\noptional { $(subject) wdt:P1813 ?shortName }\n\noptional { $(subject) wdt:P355 ?subsidiary }\n# SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en,de,it" }\n}'.replace(l,n.toNT());w(e,n,await T(i,b),n.doc())}async function R(e,t,n){const i='select distinct * where {\n\n $(subject) wdt:P276 ?location .\n\n optional { ?location wdt:P2044 ?elevation }\n optional { ?location wdt:P131 ?region }\n optional { ?location wdt:P625 ?coordinates }\noptional { ?location wdt:P17 ?country }\n\n# SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en,de,it" }\n}'.replace(l,n.toNT());o.Rm(" location query sparql:"+i);const a=await T(i,b);o.Rm(" location query bindings:",a),w(e,n,a,n.doc())}async function N(e,t,n){const i=`select distinct ?city, ?state, ?country, ?homepage, ?logo, ?lat, ?long, WHERE {\n OPTIONAL { <${n}> <http://dbpedia.org/ontology/city> ?city }\n OPTIONAL { ${n} <http://dbpedia.org/ontology/state> ?state }\n OPTIONAL { ${n} <http://dbpedia.org/ontology/country> ?country }\n OPTIONAL { ${n} foaf:homepage ?homepage }\n OPTIONAL { ${n} foaf:lat ?lat; foaf:long ?long }\n OPTIONAL { ${n} <http://dbpedia.org/ontology/country> ?country }\n }`;w(e,n,await T(i,f),n.doc()),o.Rm("Finished getDbpediaDetails.")}},6564(e,t,n){n.d(t,{Nr:()=>m,PM:()=>g,WG:()=>h,bk:()=>f});var i=n(4961),a=n(3138),o=n(1795),s=n(675),r=n(4762),c=n(52),l=n(3468),p=n(9086),u=n(588);const d=a.solidLogicSingleton.store;function m(e,t,n,i,a){n.style.display="flex",n.style.flexDirection="row";const c=n.appendChild(e.createElement("div"));c.style.width=r.A.formFieldNameBoxWidth;const p=n.appendChild(e.createElement("div"));return c.setAttribute("class","formFieldName"),c.setAttribute("style",s.i.formFieldNameBoxStyle),p.setAttribute("class","formFieldValue"),a?c.appendChild(e.createTextNode(a)):t.any(i,o.A.ui("property"))?c.appendChild(f(e,t.any(i,o.A.ui("property")),i)):(p.appendChild((0,l.F)(e,"No property or label given for form field: "+i)),c.appendChild(e.createTextNode("???"))),p}function f(e,t,n){let i=d.any(n,o.A.ui("label"));if(i||(i=(0,c.label)(t,!0)),void 0===t)return e.createTextNode("@@Internal error: undefined property");const a=e.createElement("a");return t.uri&&a.setAttribute("href",t.uri),a.setAttribute("style","color: #3B5998; text-decoration: none;"),a.textContent=i,a}function h(e,t,n){const i=d.statementsMatching(e,t);if(0===i.length)return n;if(!d.updater)throw new Error("Store has no updater");return i.length>0&&i[0].why.value&&d.updater.editable(i[0].why.value,d)?d.sym(i[0].why.value):n}function g(e,t,n,a,c,f,g){const b=d,x=c.doc?c.doc():null,v=e.createElement("div"),y=b.any(c,o.A.ui("property"));if(t&&t.appendChild(v),!y)return v.appendChild((0,l.F)(e,"Error: No property given for text field: "+c));const w=m(e,b,v,c),C=b.anyJS(c,o.A.ui("suppressEmptyUneditable"),null,x),A=(0,p.K)(c);let E=u.t[A];void 0===E&&(E={style:""});const k=E.style||"",T=s.i.textInputStyle+k,L=e.createElement("input");L.style=T,w.appendChild(L),L.setAttribute("type",E.type?E.type:"text");const j=(L.getAttribute("type")||"").toLowerCase(),_="date"===j||"datetime-local"===j,S=b.anyJS(c,o.A.ui("size"))||r.A.textInputSize||20;L.setAttribute("size",S);const R=b.any(c,o.A.ui("maxLength"));L.setAttribute("maxLength",R?""+R:r.A.basicMaxLength),f=f||h(a,y,f);let N=b.any(a,y,void 0,f);if(N||(N=b.any(c,o.A.ui("default"))),N&&N.value&&E.uriPrefix?L.value=decodeURIComponent(N.value.replace(E.uriPrefix,"")).replace(/ /g,""):N&&(L.value=N.value||N.value||""),L.setAttribute("style",T),!b.updater)throw new Error("kb has no updater");return b.updater.editable(f.uri)?(L.addEventListener("keyup",function(e){E.pattern&&L.setAttribute("style",T+(L.value.match(E.pattern)?"color: green;":"color: red;"))},!0),L.addEventListener("change",function(t){if(_&&e.activeElement===L)return void(L.dataset&&(L.dataset.deferredChange="true"));if(E.pattern&&!L.value.match(E.pattern))return;const n=!_;n&&(L.disabled=!0),L.setAttribute("style",T+"color: gray;");const s=b.statementsMatching(a,y);let r;E.namedNode?r=b.sym(L.value):E.uriPrefix?(r=encodeURIComponent(L.value.replace(/ /g,"")),r=b.sym(E.uriPrefix+L.value)):r=E.dt?new i.Literal(L.value.trim(),void 0,o.A.xsd(E.dt)):new i.Literal(L.value);let c=s.map(e=>(0,i.st)(e.subject,e.predicate,r,e.why));0===c.length&&(c=[(0,i.st)(a,y,r,f)]),function e(t,n,i){const a=[];if(n.forEach(e=>{a.includes(e.why.uri)||a.push(e.why.uri)}),t.forEach(e=>{a.includes(e.why.uri)||a.push(e.why.uri)}),0===a.length)throw new Error("updateMany has no docs to patch");if(!b.updater)throw new Error("kb has no updater");if(1===a.length)return b.updater.update(t,n,i);const o=a.pop(),s=n.filter(e=>e.why.uri===o),r=n.filter(e=>e.why.uri!==o),c=t.filter(e=>e.why.uri===o),l=t.filter(e=>e.why.uri!==o);b.updater.update(c,s,function(t,n,a){n?e(l,r,i):i(t,n,a)})}(s,c,function(t,i,a){i?(n&&(L.disabled=!1),L.setAttribute("style",T)):v.appendChild((0,l.F)(e,a)),g(i,a)})},!0),L.addEventListener("blur",function(e){if(_&&L.dataset&&"true"===L.dataset.deferredChange){delete L.dataset.deferredChange;const e=new Event("change",{bubbles:!0});L.dispatchEvent(e)}},!0),v):(L.readOnly=!0,L.style=s.i.textInputStyleUneditable+k,C&&""===L.value&&(v.style.display="none"),v)}},9086(e,t,n){n.d(t,{K:()=>c,ZZ:()=>r,rg:()=>l});var i=n(3138),a=n(4158),o=n(3468);const s=i.solidLogicSingleton.store,r={};function c(e){const t=s,n=t.findTypeURIs(e),i=t.bottomTypeURIs(n),a=[];for(const e in i)a.push(e);return a[0]}function l(e,t){const n=c(t),i=r[n];return(0,a.debug)("paneUtils: Going to implement field "+t+" of type "+n),i||function(e,i){const a=(0,o.F)(e,"No handler for field "+t+" of type "+n);return i&&i.appendChild(a),a}}},588(e,t,n){n.d(t,{t:()=>o});var i=n(1795),a=n(675);const o={[i.A.ui("ColorField").uri]:{size:9,type:"color",style:"height: 3em;",dt:"color",pattern:/^\s*#[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]([0-9a-f][0-9a-f])?\s*$/},[i.A.ui("DateField").uri]:{size:20,type:"date",dt:"date",pattern:/^\s*[0-9][0-9][0-9][0-9](-[0-1]?[0-9]-[0-3]?[0-9])?Z?\s*$/},[i.A.ui("DateTimeField").uri]:{size:20,type:"datetime-local",dt:"dateTime",pattern:/^\s*[0-9][0-9][0-9][0-9](-[0-1]?[0-9]-[0-3]?[0-9])?(T[0-2][0-9]:[0-5][0-9](:[0-5][0-9])?)?Z?\s*$/},[i.A.ui("TimeField").uri]:{size:10,type:"time",dt:"time",pattern:/^\s*([0-2]?[0-9]:[0-5][0-9](:[0-5][0-9])?)\s*$/},[i.A.ui("IntegerField").uri]:{size:12,style:"text-align: right;",dt:"integer",pattern:/^\s*-?[0-9]+\s*$/},[i.A.ui("DecimalField").uri]:{size:12,style:"text-align: right;",dt:"decimal",pattern:/^\s*-?[0-9]*(\.[0-9]*)?\s*$/},[i.A.ui("FloatField").uri]:{size:12,style:"text-align: right;",dt:"float",pattern:/^\s*-?[0-9]*(\.[0-9]*)?((e|E)-?[0-9]*)?\s*$/},[i.A.ui("SingleLineTextField").uri]:{},[i.A.ui("NamedNodeURIField").uri]:{namedNode:!0},[i.A.ui("TextField").uri]:{},[i.A.ui("PhoneField").uri]:{size:20,uriPrefix:"tel:",pattern:/^\+?[\d-]+[\d]*$/},[i.A.ui("EmailField").uri]:{size:30,uriPrefix:"mailto:",pattern:/^\s*.*@.*\..*\s*$/},[i.A.ui("Group").uri]:{style:a.i.formGroupStyle},[i.A.ui("Comment").uri]:{element:"p",style:a.i.commentStyle},[i.A.ui("Heading").uri]:{element:"h3",style:a.i.formHeadingStyle}}},7673(e,t,n){n.d(t,{c:()=>c});var i=n(1795),a=n(3138),o=n(588),s=n(9086);const r="https://www.w3.org/ns/css#";function c(e,t){const n=(0,s.K)(t),c=o.t[n]||{},l=a.store.any(t,i.A.ui("style"));if(l)if("Literal"===l.termType)l&&e.setAttribute("style",l.value);else{a.store.statementsMatching(l,null,null,t.doc()).forEach(t=>{if(t.predicate.uri&&t.predicate.uri.startsWith(r)){const n=t.predicate.uri.slice(26);try{e.style[n]=t.object.value}catch(i){console.warn(`setFieldStyle: Error setting element style ${n} to "${t.object.value}"`),console.warn(`setFieldStyle: ... Element tagName was "${e.tagName||"???"}"`)}}})}else c.style&&e.setAttribute("style",c.style)}},4608(e,t,n){n.r(t),n.d(t,{Group:()=>i.YJ,GroupBuilder:()=>i.ZT,GroupPicker:()=>i.Kf,PeoplePicker:()=>i.OU,Person:()=>i._A,addStyleSheet:()=>o.CS,allClassURIs:()=>o.Pg,appendForm:()=>c.f6,askName:()=>o.RG,attachmentList:()=>o.sf,basicField:()=>c.PM,buildCheckboxForm:()=>c.WY,button:()=>o.x6,cancelButton:()=>o.x7,clearElement:()=>o.EW,complain:()=>o.cc,continueButton:()=>o.kz,createLinkDiv:()=>o.UH,createLinkForURI:()=>s.O,createNameDiv:()=>o.ly,defaultAnnotationStore:()=>o.Qf,deleteButtonWithCheck:()=>o.Qy,editFormButton:()=>c.Nt,errorMessageBlock:()=>r.F,extractLogURI:()=>o.er,faviconOrDefault:()=>o.PO,field:()=>c.ZZ,fieldFunction:()=>c.rg,fieldLabel:()=>c.bk,fieldParams:()=>c.tk,fieldStore:()=>c.WG,fileUploadButtonDiv:()=>o.fT,findClosest:()=>c.Ru,findImage:()=>o.F1,findImageFromURI:()=>o.ZT,formatDateTime:()=>o.r6,formsFor:()=>c.Dk,iconForClass:()=>o.p_,imagesOf:()=>o.IC,index:()=>o.Pe,isAudio:()=>o.JK,isImage:()=>o.wu,isVideo:()=>o.cZ,linkButton:()=>o.$J,linkIcon:()=>s.w,makeDescription:()=>c.eR,makeDraggable:()=>a.eB,makeDropTarget:()=>a.DK,makeSelectForCategory:()=>c.s2,makeSelectForChoice:()=>c.LX,makeSelectForClassifierOptions:()=>c.LC,makeSelectForNestedCategory:()=>c.L1,makeSelectForOptions:()=>c.iU,mostSpecificClassURI:()=>c.K,newButton:()=>c.vx,newThing:()=>c.xV,openHrefInOutlineMode:()=>o.ol,personTR:()=>o.Cl,promptForNew:()=>c.e2,propertiesForClass:()=>c.ZA,propertyTriage:()=>o.uA,publicData:()=>u,refreshTree:()=>o.uS,removeButton:()=>o.DT,renderAsDiv:()=>o.Ss,renderAsRow:()=>o.ri,renderAutoComplete:()=>p.r,renderAutocompleteControl:()=>l.A,renderNameValuePair:()=>c.Nr,selectorPanel:()=>o.Ag,selectorPanelRefresh:()=>o.RS,setImage:()=>o.g7,setName:()=>o.i,setVisible:()=>p.L,shortDate:()=>o.XV,shortTime:()=>o.Mj,sortByLabel:()=>c.eb,sortBySequence:()=>c.tE,timestamp:()=>o.vE,uploadFiles:()=>a.Zn});var i=n(5747),a=n(386),o=n(3291),s=n(9326),r=n(3468),c=n(1763),l=n(9238),p=n(3693),u=n(8702)},4101(e,t,n){n.d(t,{N:()=>a});var i=n(5561);
|
|
7
|
+
/**
|
|
8
|
+
* @version IconicMultiSelect v0.7.0
|
|
9
|
+
* @licence MIT
|
|
10
|
+
*/class a{_data;_domElements;_event=()=>{};_itemTemplate;_multiselect;_noData;_noResults;_options=[];_placeholder;_select;_selectContainer;_selectedOptions=[];_tagTemplate;_textField;_valueField;_cross='\n <svg\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n d="M6.2253 4.81108C5.83477 4.42056 5.20161 4.42056 4.81108 4.81108C4.42056 5.20161 4.42056 5.83477 4.81108 6.2253L10.5858 12L4.81114 17.7747C4.42062 18.1652 4.42062 18.7984 4.81114 19.1889C5.20167 19.5794 5.83483 19.5794 6.22535 19.1889L12 13.4142L17.7747 19.1889C18.1652 19.5794 18.7984 19.5794 19.1889 19.1889C19.5794 18.7984 19.5794 18.1652 19.1889 17.7747L13.4142 12L19.189 6.2253C19.5795 5.83477 19.5795 5.20161 19.189 4.81108C18.7985 4.42056 18.1653 4.42056 17.7748 4.81108L12 10.5858L6.2253 4.81108Z"\n fill="currentColor"\n />\n </svg>\n ';constructor({data:e,itemTemplate:t,noData:n,noResults:i,placeholder:a,select:o,container:s,tagTemplate:r,textField:c,valueField:l}){this._data=e??[],this._itemTemplate=t??null,this._noData=n??"No data found.",this._noResults=i??"No results found.",this._placeholder=a??"Select...",this._select=o,this._selectContainer=s,this._tagTemplate=r??null,this._textField=c??null,this._valueField=l??null}init(){if(!this._select||"SELECT"!==this._select.nodeName)throw new Error(`The selector '${this._select}' did not select any valid select tag.`);if(this._itemTemplate&&0===this._data.length)throw new Error("itemTemplate must be initialized with data from the component settings");if(this._tagTemplate&&0===this._data.length)throw new Error("tagTemplate must be initialized with data from the component settings");this._options=this._data.length>0?this._getDataFromSettings():this._getDataFromSelectTag(),this._renderMultiselect(),this._renderOptionsList(),this._domElements={clear:this._multiselect.querySelector(".multiselect__clear-btn"),input:this._multiselect.querySelector(".multiselect__input"),optionsContainer:this._multiselect.querySelector(".multiselect__options"),optionsContainerList:this._multiselect.querySelector(".multiselect__options > ul"),options:{list:this._multiselect.querySelectorAll(".multiselect__options > ul > li"),find:function(e){for(let t=0;t<this.list.length;t++){const n=this.list[t];if(e(n))return n}},some:function(e){for(let t=0;t<this.list.length;t++){if(e(this.list[t],t))return!0}return!1}}},this._enableEventListenners(),this._initSelectedList()}subscribe(e){if("function"!=typeof e)throw new Error("parameter in the subscribe method is not a function");this._event=e}_addOptionToList(e,t){const n=`<span class="multiselect__selected" style="${i.i.multiselect__selected}" data-value="${e.value}">${this._tagTemplate?this._processTemplate(this._tagTemplate,t):e.text}<span class="multiselect__remove-btn" style="${i.i.multiselect__remove_btn}">${this._cross}</span></span>`;this._domElements.input.insertAdjacentHTML("beforebegin",n);const{lastElementChild:a}=this._multiselect.querySelector(`span[data-value="${e.value}"]`);a.addEventListener("click",()=>{const t=this._domElements.options.find(t=>t.dataset.value===e.value);this._handleOption(t)})}_clearSelection(){for(let e=0;e<this._selectedOptions.length;e++){const t=this._selectedOptions[e],n=this._domElements.options.find(e=>e.dataset.value===t.value);n.classList.remove("multiselect__options--selected"),n.setAttribute("style",i.i.multiselect__options),this._removeOptionFromList(n.dataset.value)}this._selectedOptions=[],this._handleClearSelectionBtn(),this._handlePlaceholder(),this._dispatchEvent({action:"CLEAR_ALL_OPTIONS",selection:this._selectedOptions})}_closeList(){this._domElements.input.value="",this._domElements.optionsContainer.classList.remove("visible"),this._domElements.optionsContainer.setAttribute("style",i.i.multiselect__options),this._filterOptions(""),this._removeAllArrowSelected()}_dispatchEvent(e){this._event(e)}_enableEventListenners(){document.addEventListener("mouseup",({target:e})=>{this._multiselect.contains(e)||(this._filterOptions(""),this._closeList(),this._handlePlaceholder())}),this._domElements.clear.addEventListener("click",()=>{this._clearSelection()});for(let e=0;e<this._domElements.options.list.length;e++){this._domElements.options.list[e].addEventListener("click",({target:e})=>{this._handleOption(e),this._closeList()})}this._domElements.input.addEventListener("focus",()=>{this._domElements.optionsContainer.classList.add("visible"),this._domElements.optionsContainer.setAttribute("style",i.i.multiselect__options_visible)}),this._domElements.input.addEventListener("input",({target:{value:e}})=>{this._domElements.options.list.length>0&&this._filterOptions(e)}),this._domElements.input.addEventListener("keydown",e=>{this._handleArrows(e),this._handleBackspace(e),this._handleEnter(e)})}_filterOptions(e){const t=this._domElements.optionsContainer.classList.contains("visible"),n=e.toLowerCase();if(!t&&e.length>0&&(this._domElements.optionsContainer.classList.add("visible"),this._domElements.optionsContainer.setAttribute("style",i.i.multiselect__options_visible)),this._domElements.options.list.length>0){for(let e=0;e<this._domElements.options.list.length;e++){const t=this._domElements.options.list[e];(this._itemTemplate?this._data[e][this._textField]:t.textContent).toLowerCase().substring(0,n.length)===n?this._domElements.optionsContainerList.appendChild(t):t.parentNode&&t.parentNode.removeChild(t)}const e=this._domElements.options.some((e,t)=>(this._itemTemplate?this._data[t][this._textField]:e.textContent).toLowerCase().substring(0,n.length)===n);this._showNoResults(!e)}}_generateId(e){let t="";const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(let i=0;i<e;i++)t+=n.charAt(Math.floor(62*Math.random()));return t}_getDataFromSelectTag(){const e=[],{options:t}=this._select;for(let n=0;n<t.length;n++){const i=t[n];e.push({text:i.text,value:i.value,selected:i.hasAttribute("selected")})}return e}_getDataFromSettings(){if(this._data.length>0&&this._valueField&&this._textField){const e="string"==typeof this._valueField,t="string"==typeof this._textField,n=[];if(!e||!t)throw new Error("textField and valueField must be of type string");for(let e=0;e<this._data.length;e++){const t=this._data[e];n.push({value:t[this._valueField],text:t[this._textField],selected:"boolean"==typeof t.selected&&t.selected})}return n}return null}_handleArrows(e){if(40===e.keyCode||38===e.keyCode){e.preventDefault();const t=this._domElements.optionsContainer.classList.contains("visible"),n=this._multiselect.querySelector(".multiselect__options > ul");if(t){let t=this._multiselect.querySelector(".multiselect__options ul li.arrow-selected");const a={ArrowUp:"previous",Up:"previous",ArrowDown:"next",Down:"next"};if(!t)return n.firstElementChild.classList.add("arrow-selected"),n.firstElementChild.setAttribute("style",i.i.multiselect__options_ul_li_arrow_selected),void n.firstElementChild.scrollIntoView(!1);if(t.classList.remove("arrow-selected"),t.setAttribute("style",i.i.multiselect__options_ul_li),t=t[a[e.key]+"ElementSibling"],!t)return t=n.children["next"===a[e.key]?0:n.children.length-1],t.classList.add("arrow-selected"),t.setAttribute("style",i.i.multiselect__options_ul_li_arrow_selected),void this._scrollIntoView(n,t);t.classList.add("arrow-selected"),t.setAttribute("style",i.i.multiselect__options_ul_li_arrow_selected),this._scrollIntoView(n,t)}else this._domElements.optionsContainer.classList.add("visible"),this._domElements.optionsContainer.setAttribute("style",i.i.multiselect__options_visible),n.firstElementChild.classList.add("arrow-selected"),n.firstElementChild.setAttribute("style",i.i.multiselect__options_ul_li_arrow_selected),n.firstElementChild.scrollIntoView(!1)}}_handleBackspace(e){if(8===e.keyCode&&""===e.target.value){const e=this._selectedOptions.length>0?this._selectedOptions[this._selectedOptions.length-1]:null;if(e){const t=this._multiselect.querySelector(`li[data-value="${e.value}"]`);this._handleOption(t),0===this._selectedOptions.length&&(this._domElements.optionsContainer.classList.remove("visible"),this._domElements.optionsContainer.setAttribute("style",i.i.multiselect__options))}}}_handleClearSelectionBtn(){this._selectedOptions.length>0?this._domElements.clear.style.display="flex":this._domElements.clear.style.display="none"}_handleEnter(e){if(13===e.keyCode){const e=this._multiselect.querySelector(".multiselect__options ul li.arrow-selected");e&&(this._handleOption(e),this._closeList())}}_handleOption(e,t=!0){for(let n=0;n<this._selectedOptions.length;n++){if(this._selectedOptions[n].value===e.dataset.value)return e.classList.remove("multiselect__options--selected"),e.setAttribute("style",i.i.multiselect__options),this._selectedOptions.splice(n,1),this._removeOptionFromList(e.dataset.value),this._handleClearSelectionBtn(),this._handlePlaceholder(),t&&this._dispatchEvent({action:"REMOVE_OPTION",value:e.dataset.value,selection:this._selectedOptions})}for(let n=0;n<this._options.length;n++){const a=this._options[n];if(a.value===e.dataset.value)return e.classList.add("multiselect__options--selected"),e.setAttribute("style",i.i.multiselect__options_selected),this._selectedOptions=[...this._selectedOptions,a],this._addOptionToList(a,n),this._handleClearSelectionBtn(),this._handlePlaceholder(),t&&this._dispatchEvent({action:"ADD_OPTION",value:e.dataset.value,selection:this._selectedOptions})}}_handlePlaceholder(){this._domElements.input.placeholder=this._placeholder}_initSelectedList(){let e=!1;for(let t=0;t<this._options.length;t++){const n=this._options[t];if(n.selected){e=!0;const a=this._domElements.options.find(e=>e.dataset.value===n.value);a.classList.add("multiselect__options--selected"),a.setAttribute("style",i.i.multiselect__options_selected),this._selectedOptions=[...this._selectedOptions,n],this._addOptionToList(n,t)}}e&&this._handleClearSelectionBtn(),this._handlePlaceholder()}_processTemplate(e,t){let n=e;const i=e.match(/\$\{(\w+)\}/g).map(e=>e.replace(/\$\{|\}/g,""));for(let e=0;e<i.length;e++){const a=i[e];n=n.replace(`\${${a}}`,this._data[t][a]??"")}return n}_removeAllArrowSelected(){const e="arrow-selected",t=this._domElements.options.find(t=>t.classList.contains(e));t&&t.classList.remove(e)&&t.setAttribute("style",i.i.multiselect__options_ul_li)}_removeOptionFromList(e){const t=this._multiselect.querySelector(`span[data-value="${e}"]`);t&&t.parentNode&&t.parentNode.removeChild(t)}_renderOptionsList(){const e=`\n <div class="multiselect__options" style="${i.i.multiselect__options}">\n <ul style="${i.i.multiselect__options_ul}">\n ${this._options.length>0&&!this._itemTemplate?this._options.map(e=>`\n <li data-value="${e.value}" style="${i.i.multiselect__options_ul_li}">${e.text}</li>\n `).join(""):""}\n\n ${this._options.length>0&&this._itemTemplate?this._options.map((e,t)=>`\n <li data-value="${e.value}" style="${i.i.multiselect__options_ul_li}">${this._processTemplate(this._itemTemplate,t)}</li>\n `).join(""):""}\n ${this._showNoData(0===this._options.length)}\n </ul>\n </div>\n `;this._multiselect.insertAdjacentHTML("beforeend",e)}_renderMultiselect(){this._select.style.display="none";const e="iconic-"+this._generateId(20);this._multiselect=document.createElement("div"),this._multiselect.setAttribute("id",e),this._multiselect.setAttribute("class","multiselect__container"),this._multiselect.setAttribute("style",i.i.multiselect__container);const t=`\n <div class="multiselect__wrapper" style="${i.i.multiselect__wrapper}">\n <input class="multiselect__input" style="${i.i.multiselect__input}" placeholder="${this._placeholder}" />\n </div>\n <span style="display: none;" class="multiselect__clear-btn" style="${i.i.multiselect__clear_btn}">${this._cross}</span>\n `;this._multiselect.innerHTML=t,this._selectContainer.appendChild(this._multiselect)}_scrollIntoView(e,t){const n=e.getBoundingClientRect(),i=t.getBoundingClientRect();n.top<i.bottom-t.offsetHeight||(e.scrollTop=t.clientHeight+(t.offsetTop-t.offsetHeight)),n.bottom>i.top+t.offsetHeight||(e.scrollTop=t.clientHeight+(t.offsetTop-t.offsetHeight)-(e.offsetHeight-(t.offsetHeight+(t.offsetHeight-t.clientHeight))))}_showNoData(e){return e?`<p class="multiselect__options--no-data" style="${i.i.multiselect__options_ul_p_multiselect__options_no_data}">${this._noData}</p>`:""}_showNoResults(e){const t=this._multiselect.querySelector(".multiselect__options--no-results");if(e){const e=`<p class="multiselect__options--no-results" style="${i.i.multiselect__options_ul_p_multiselect__options_no_results}">${this._noResults}</p>`;!t&&this._domElements.optionsContainerList.insertAdjacentHTML("beforeend",e)}else t&&t.parentNode&&t.parentNode.removeChild(t)}}},5747(e,t,n){n.d(t,{Kf:()=>f,OU:()=>m,YJ:()=>h,ZT:()=>g,_A:()=>b});var i=n(580),a=n.n(i),o=n(4296),s=n(4961),r=n(7423),c=n(386),l=n(3468),p=n(3378),u=n(1795);const d=n(3138).solidLogicSingleton.store;class m{constructor(e,t,n,i){this.options=i||{},this.element=e,this.typeIndex=t,this.groupPickedCb=n,this.selectedgroup=this.options.selectedgroup,this.onSelectGroup=this.onSelectGroup.bind(this)}render(){const e=document.createElement("div");if(e.style.maxWidth="350px",e.style.minHeight="200px",e.style.outline="1px solid black",e.style.display="flex",this.selectedgroup){e.style.flexDirection="column";const t=document.createElement("div");new h(t,this.selectedgroup).render();const n=document.createElement("button");n.textContent=a()("Change group"),n.addEventListener("click",e=>{this.selectedgroup=null,this.render()}),e.appendChild(t),e.appendChild(n)}else this.findAddressBook(this.typeIndex).then(({book:t})=>{const n=document.createElement("button");n.textContent=a()("Pick an existing group"),n.style.margin="auto",n.addEventListener("click",n=>{new f(e,t,this.onSelectGroup).render()});const i=document.createElement("button");i.textContent=a()("Create a new group"),i.style.margin="auto",i.addEventListener("click",e=>{this.createNewGroup(t,this.options.defaultNewGroupName).then(({group:e})=>{new g(this.element,t,e,this.onSelectGroup).render()}).catch(e=>{this.element.appendChild((0,l.F)(document,a()(`Error creating a new group. (${e})`)))})}),e.appendChild(n),e.appendChild(i),this.element.innerHTML="",this.element.appendChild(e)}).catch(e=>{this.element.appendChild((0,l.F)(document,a()(`Could find your groups. (${e})`)))});return this.element.innerHTML="",this.element.appendChild(e),this}findAddressBook(e){return new Promise((t,n)=>{d.fetcher.nowOrWhenFetched(e,(i,a)=>{if(!i)return n(a);const o=d.any(null,u.A.solid("forClass"),u.A.vcard("AddressBook"));if(!o)return n(new Error("no address book registered in the solid type index "+e));const s=d.any(o,u.A.solid("instance"));if(!s)return n(new Error("incomplete address book registration"));d.fetcher.load(s).then(function(e){return t({book:s})}).catch(function(e){return n(new Error("Could not load address book "+e))})})})}createNewGroup(e,t){const{groupIndex:n,groupContainer:i}=y(e),a=s.sym(`${i.uri}${(0,o.A)().slice(0,8)}.ttl#this`),c=t||"Untitled Group",l=[a.doc(),n].map(t=>{const i=s.st(a,u.A.rdf("type"),u.A.vcard("Group"),t),o=s.st(a,u.A.vcard("fn"),c,a.doc(),t),r=s.st(e,u.A.vcard("includesGroup"),a,t),l=t.equals(n)?[i,o,r]:[i,o];return v(t.uri,{toIns:l}).then(()=>{l.forEach(e=>{d.add(e)})})});return Promise.all(l).then(()=>({group:a})).catch(e=>{throw r.Rm("Could not create new group. PATCH failed "+e),new Error(`Couldn't create new group. PATCH failed for (${e.xhr?e.xhr.responseURL:""} )`)})}onSelectGroup(e){this.selectedgroup=e,this.groupPickedCb(e),this.render()}}class f{constructor(e,t,n){this.element=e,this.book=t,this.onSelectGroup=n}render(){return this.loadGroups().then(e=>{const t=document.createElement("div");t.style.display="flex",t.style.flexDirection="column",e.forEach(e=>{const n=document.createElement("button");n.addEventListener("click",this.handleClickGroup(e)),new h(n,e).render(),t.appendChild(n)}),this.element.innerHTML="",this.element.appendChild(t)}).catch(e=>{this.element.appendChild((0,l.F)(document,a()(`There was an error loading your groups. (${e})`)))}),this}loadGroups(){return new Promise((e,t)=>{const{groupIndex:n}=y(this.book);d.fetcher.nowOrWhenFetched(n,(n,i)=>{if(!n)return t(i);const a=d.each(this.book,u.A.vcard("includesGroup"));return e(a)})})}handleClickGroup(e){return t=>{this.onSelectGroup(e)}}}class h{constructor(e,t){this.element=e,this.group=t}render(){const e=document.createElement("div");return e.textContent=a()(x(this.group,u.A.vcard("fn"),`[${this.group.value}]`)),this.element.innerHTML="",this.element.appendChild(e),this}}class g{constructor(e,t,n,i,a){this.element=e,this.book=t,this.group=n,this.onGroupChanged=(e,t,n)=>{a&&a(e,t,n)},this.groupChangedCb=a,this.doneBuildingCb=i}refresh(){}render(){const e=document.createElement("div");e.style.maxWidth="350px",e.style.minHeight="200px",e.style.outline="1px solid black",e.style.display="flex",e.style.flexDirection="column",(0,c.DK)(e,e=>{e.forEach(e=>{this.add(e).catch(e=>{this.element.appendChild((0,l.F)(document,a()(`Could not add the given WebId. (${e})`)))})})});const t=document.createElement("input");t.type="text",t.value=x(this.group,u.A.vcard("fn"),"Untitled Group"),t.addEventListener("change",e=>{this.setGroupName(e.target.value).catch(e=>{this.element.appendChild((0,l.F)(document,`Error changing group name. (${e})`))})});const n=document.createElement("label");if(n.textContent=a()("Group Name:"),n.appendChild(t),e.appendChild(n),d.any(this.group,u.A.vcard("hasMember")))d.match(this.group,u.A.vcard("hasMember")).forEach(t=>{const n=t.object,i=document.createElement("div");new b(i,n,this.handleRemove(n)).render(),e.appendChild(i)});else{const t=document.createElement("p");t.textContent=a()`
|
|
11
|
+
To add someone to this group, drag and drop their WebID URL onto the box.
|
|
12
|
+
`,e.appendChild(t)}const i=document.createElement("button");return i.textContent=a()("Done"),i.addEventListener("click",e=>{this.doneBuildingCb(this.group)}),e.appendChild(i),this.element.innerHTML="",this.element.appendChild(e),this}add(e){return new Promise((t,n)=>{d.fetcher.nowOrWhenFetched(e,(i,a)=>{if(!i)return this.onGroupChanged(a),n(a);const o=s.namedNode(e),r=d.any(o,u.A.rdf("type"));return r&&r.equals(u.A.foaf("Person"))?t(o):n(new Error(`Only people supported right now. (tried to add something of type ${r.value})`))})}).then(e=>{const t=s.st(this.group,u.A.vcard("hasMember"),e);return d.holdsStatement(t)?e:v(this.group.doc().uri,{toIns:[t]}).then(()=>{t.why=this.group.doc(),d.add(t),this.onGroupChanged(null,"added",e),this.render()})})}handleRemove(e){return t=>{const n=s.st(this.group,u.A.vcard("hasMember"),e);return v(this.group.doc().uri,{toDel:[n]}).then(()=>(d.remove(n),this.onGroupChanged(null,"removed",e),this.render(),!0)).catch(t=>{const n=d.any(e,u.A.foaf("name")),i=n&&n.value?`Could not remove ${n.value}. (${t})`:`Could not remove ${e.value}. (${t})`;throw new Error(i)})}}setGroupName(e){const{groupIndex:t}=y(this.book),n=[this.group.doc(),t].map(t=>{const n=d.match(this.group,u.A.vcard("fn"),null,t),i=s.st(this.group,u.A.vcard("fn"),s.literal(e));return v(t.value,{toDel:n,toIns:[i]}).then(e=>{d.removeStatements(n),i.why=t,d.add(i)})});return Promise.all(n)}}class b{constructor(e,t,n){this.webIdNode=t,this.element=e,this.handleRemove=n}render(){const e=document.createElement("div");e.style.display="flex";const t=x(this.webIdNode,u.A.foaf("img"),p.LN+"noun_15059.svg"),n=document.createElement("img");n.src=a()(t),n.width="50",n.height="50",n.style.margin="5px";const i=x(this.webIdNode,u.A.foaf("name"),`[${this.webIdNode}]`),o=document.createElement("span");o.innerHTML=a()(i),o.style.flexGrow="1",o.style.margin="auto 0";const s=document.createElement("button");return s.textContent="Remove",s.addEventListener("click",e=>this.handleRemove().catch(e=>{this.element.appendChild((0,l.F)(document,a()(`${e}`)))})),s.style.margin="5px",e.appendChild(n),e.appendChild(o),e.appendChild(s),this.element.innerHTML="",this.element.appendChild(e),this}}function x(e,t,n){const i=d.any(e,t);return i?i.value:n}function v(e,{toDel:t,toIns:n}){return new Promise((e,i)=>{d.updater.update(t,n,(t,n,a)=>{if(!n)return i(new Error(`PATCH failed for resource <${t}>: ${a}`));e()})})}function y(e){return{groupIndex:d.any(e,u.A.vcard("groupIndex")),groupContainer:d.sym(e.dir().uri+"Group/")}}},9287(e,t,n){n.d(t,{I1:()=>a,lx:()=>o,ts:()=>s});var i=n(675);const a=(e,t,n)=>{const i=e.createElement("tr");return i.appendChild(e.createElement("td")).appendChild(t),i.subject=n,i},o=(e,t)=>{e.addEventListener("click",t)},s=(e,t,n)=>{const a=t.appendChild(e.createElement("div"));a.setAttribute("style",i.i.imageDivStyle),a.appendChild(n),n.setAttribute("draggable","false")}},580(e){
|
|
7
13
|
/*!
|
|
8
14
|
* escape-html
|
|
9
15
|
* Copyright(c) 2012-2013 TJ Holowaychuk
|
|
@@ -11,7 +17,7 @@ var a={multiselect__container:"\n -webkit-box-align: center;\n -ms
|
|
|
11
17
|
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
|
12
18
|
* MIT Licensed
|
|
13
19
|
*/
|
|
14
|
-
var t=/["'&<>]/;e.exports=function(e){var n,
|
|
20
|
+
var t=/["'&<>]/;e.exports=function(e){var n,i=""+e,a=t.exec(i);if(!a)return i;var o="",s=0,r=0;for(s=a.index;s<i.length;s++){switch(i.charCodeAt(s)){case 34:n=""";break;case 38:n="&";break;case 39:n="'";break;case 60:n="<";break;case 62:n=">";break;default:continue}r!==s&&(o+=i.substring(r,s)),r=s+1,o+=n}return r!==s?o+i.substring(r,s):o}},7598(e,t,n){
|
|
15
21
|
/*!
|
|
16
22
|
* mime-db
|
|
17
23
|
* Copyright(c) 2014 Jonathan Ong
|
|
@@ -25,18 +31,13 @@ e.exports=n(1813)},6049(e,t,n){
|
|
|
25
31
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
26
32
|
* MIT Licensed
|
|
27
33
|
*/
|
|
28
|
-
var a,
|
|
29
|
-
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
30
|
-
var t,n,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",s=r.toStringTag||"@@toStringTag";function c(e,i,r,o){var s=i&&i.prototype instanceof u?i:u,c=Object.create(s.prototype);return a(c,"_invoke",function(e,a,i){var r,o,s,c=0,u=i||[],p=!1,d={p:0,n:0,v:t,a:m,f:m.bind(t,4),d:function(e,n){return r=e,o=0,s=t,d.n=n,l}};function m(e,a){for(o=e,s=a,n=0;!p&&c&&!i&&n<u.length;n++){var i,r=u[n],m=d.p,f=r[2];e>3?(i=f===a)&&(s=r[(o=r[4])?5:(o=3,3)],r[4]=r[5]=t):r[0]<=m&&((i=e<2&&m<r[1])?(o=0,d.v=a,d.n=r[1]):m<f&&(i=e<3||r[0]>a||a>f)&&(r[4]=e,r[5]=a,d.n=f,o=0))}if(i||e>1)return l;throw p=!0,a}return function(i,u,f){if(c>1)throw TypeError("Generator is already running");for(p&&1===u&&m(u,f),o=u,s=f;(n=o<2?t:s)||!p;){r||(o?o<3?(o>1&&(d.n=-1),m(o,s)):d.n=s:d.v=s);try{if(c=2,r){if(o||(i="next"),n=r[i]){if(!(n=n.call(r,s)))throw TypeError("iterator result is not an object");if(!n.done)return n;s=n.value,o<2&&(o=0)}else 1===o&&(n=r.return)&&n.call(r),o<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),o=1);r=t}else if((n=(p=d.n<0)?s:e.call(a,d))!==l)break}catch(e){r=t,o=1,s=e}finally{c=1}}return{value:n,done:p}}}(e,r,o),!0),c}var l={};function u(){}function p(){}function d(){}n=Object.getPrototypeOf;var m=[][o]?n(n([][o]())):(a(n={},o,function(){return this}),n),f=d.prototype=u.prototype=Object.create(m);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,a(e,s,"GeneratorFunction")),e.prototype=Object.create(f),e}return p.prototype=d,a(f,"constructor",d),a(d,"constructor",p),p.displayName="GeneratorFunction",a(d,s,"GeneratorFunction"),a(f),a(f,s,"Generator"),a(f,o,function(){return this}),a(f,"toString",function(){return"[object Generator]"}),(e.exports=i=function(){return{w:c,m:h}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},5869(e,t,n){var a=n(887);e.exports=function(e,t,n,i,r){var o=a(e,t,n,i,r);return o.next().then(function(e){return e.done?e.value:o.next()})},e.exports.__esModule=!0,e.exports.default=e.exports},887(e,t,n){var a=n(6993),i=n(1791);e.exports=function(e,t,n,r,o){return new i(a().w(e,t,n,r),o||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports},1791(e,t,n){var a=n(5172),i=n(5546);e.exports=function e(t,n){function r(e,i,o,s){try{var c=t[e](i),l=c.value;return l instanceof a?n.resolve(l.v).then(function(e){r("next",e,o,s)},function(e){r("throw",e,o,s)}):n.resolve(l).then(function(e){c.value=e,o(c)},function(e){return r("throw",e,o,s)})}catch(e){s(e)}}var o;this.next||(i(e.prototype),i(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),i(this,"_invoke",function(e,t,a){function i(){return new n(function(t,n){r(e,a,t,n)})}return o=o?o.then(i,i):i()},!0)},e.exports.__esModule=!0,e.exports.default=e.exports},5546(e){function t(n,a,i,r){var o=Object.defineProperty;try{o({},"",{})}catch(n){o=0}e.exports=t=function(e,n,a,i){function r(n,a){t(e,n,function(e){return this._invoke(n,a,e)})}n?o?o(e,n,{value:a,enumerable:!i,configurable:!i,writable:!i}):e[n]=a:(r("next",0),r("throw",1),r("return",2))},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,a,i,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4373(e){e.exports=function(e){var t=Object(e),n=[];for(var a in t)n.unshift(a);return function e(){for(;n.length;)if((a=n.pop())in t)return e.value=a,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports},4633(e,t,n){var a=n(5172),i=n(6993),r=n(5869),o=n(887),s=n(1791),c=n(4373),l=n(579);function u(){var t=i(),n=t.m(u),p=(Object.getPrototypeOf?Object.getPrototypeOf(n):n.__proto__).constructor;function d(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))}var m={throw:1,return:2,break:3,continue:3};function f(e){var t,n;return function(a){t||(t={stop:function(){return n(a.a,2)},catch:function(){return a.v},abrupt:function(e,t){return n(a.a,m[e],t)},delegateYield:function(e,i,r){return t.resultName=i,n(a.d,l(e),r)},finish:function(e){return n(a.f,e)}},n=function(e,n,i){a.p=t.prev,a.n=t.next;try{return e(n,i)}finally{t.next=a.n}}),t.resultName&&(t[t.resultName]=a.v,t.resultName=void 0),t.sent=a.v,t.next=a.n;try{return e.call(this,t)}finally{a.p=t.prev,a.n=t.next}}}return(e.exports=u=function(){return{wrap:function(e,n,a,i){return t.w(f(e),n,a,i&&i.reverse())},isGeneratorFunction:d,mark:t.m,awrap:function(e,t){return new a(e,t)},AsyncIterator:s,async:function(e,t,n,a,i){return(d(t)?o:r)(f(e),t,n,a,i)},keys:c,values:l}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=u,e.exports.__esModule=!0,e.exports.default=e.exports},579(e,t,n){var a=n(3738).default;e.exports=function(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(a(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports},3738(e){function t(n){return e.exports=t="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},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4756(e,t,n){var a=n(4633)();e.exports=a;try{regeneratorRuntime=a}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=a:Function("r","regeneratorRuntime = r")(a)}},3145(e,t,n){function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}n.d(t,{A:()=>a})},6369(e,t,n){function a(e){if(Array.isArray(e))return e}n.d(t,{A:()=>a})},4243(e,t,n){n.d(t,{A:()=>i});var a=n(3145);function i(e){if(Array.isArray(e))return(0,a.A)(e)}},1798(e,t,n){function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>a})},467(e,t,n){function a(e,t,n,a,i,r,o){try{var s=e[r](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,i)}function i(e){return function(){var t=this,n=arguments;return new Promise(function(i,r){var o=e.apply(t,n);function s(e){a(o,i,r,s,c,"next",e)}function c(e){a(o,i,r,s,c,"throw",e)}s(void 0)})}}n.d(t,{A:()=>i})},3029(e,t,n){function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:()=>a})},6324(e,t,n){n.d(t,{A:()=>r});var a=n(2176),i=n(3662);function r(e,t,n){if((0,a.A)())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&(0,i.A)(o,n.prototype),o}},2901(e,t,n){n.d(t,{A:()=>r});var a=n(9922);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(0,a.A)(i.key),i)}}function r(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},4467(e,t,n){n.d(t,{A:()=>i});var a=n(9922);function i(e,t,n){return(t=(0,a.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},3954(e,t,n){function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}n.d(t,{A:()=>a})},5501(e,t,n){n.d(t,{A:()=>i});var a=n(3662);function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,a.A)(e,t)}},202(e,t,n){function a(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}n.d(t,{A:()=>a})},2176(e,t,n){function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}n.d(t,{A:()=>a})},3893(e,t,n){function a(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{A:()=>a})},6986(e,t,n){function a(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,s=[],c=!0,l=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(s.push(a.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}n.d(t,{A:()=>a})},6562(e,t,n){function a(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>a})},519(e,t,n){function a(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>a})},6822(e,t,n){n.d(t,{A:()=>r});var a=n(2284),i=n(1798);function r(e,t){if(t&&("object"==(0,a.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.A)(e)}},3662(e,t,n){function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}n.d(t,{A:()=>a})},3453(e,t,n){n.d(t,{A:()=>s});var a=n(6369),i=n(6986),r=n(7800),o=n(6562);function s(e,t){return(0,a.A)(e)||(0,i.A)(e,t)||(0,r.A)(e,t)||(0,o.A)()}},7528(e,t,n){function a(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{A:()=>a})},9394(e,t,n){n.d(t,{A:()=>s});var a=n(4243),i=n(3893),r=n(7800),o=n(519);function s(e){return(0,a.A)(e)||(0,i.A)(e)||(0,r.A)(e)||(0,o.A)()}},2327(e,t,n){n.d(t,{A:()=>i});var a=n(2284);function i(e,t){if("object"!=(0,a.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=(0,a.A)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},9922(e,t,n){n.d(t,{A:()=>r});var a=n(2284),i=n(2327);function r(e){var t=(0,i.A)(e,"string");return"symbol"==(0,a.A)(t)?t:t+""}},2284(e,t,n){function a(e){return a="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},a(e)}n.d(t,{A:()=>a})},7800(e,t,n){n.d(t,{A:()=>i});var a=n(3145);function i(e,t){if(e){if("string"==typeof e)return(0,a.A)(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,a.A)(e,t):void 0}}},5579(e,t,n){n.d(t,{A:()=>s});var a=n(3954),i=n(3662),r=n(202),o=n(6324);function s(e){var t="function"==typeof Map?new Map:void 0;return s=function(e){if(null===e||!(0,r.A)(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return(0,o.A)(e,arguments,(0,a.A)(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),(0,i.A)(n,e)},s(e)}},7315(e,t,n){n.d(t,{Ak:()=>c,GV:()=>y,Pl:()=>g,fH:()=>x,hT:()=>v,u0:()=>s});var a=n(6724),i=n(2186);
|
|
31
|
-
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
32
|
-
const r=BigInt(0),o=BigInt(1);function s(e,t){const n=t.negate();return e?n:t}function c(e,t){const n=(0,i.pS)(e.Fp,t.map(e=>e.Z));return t.map((t,a)=>e.fromAffine(t.toAffine(n[a])))}function l(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function u(e,t){l(e,t);const n=2**e;return{windows:Math.ceil(t/e)+1,windowSize:2**(e-1),mask:(0,a.OG)(e),maxNumber:n,shiftBy:BigInt(e)}}function p(e,t,n){const{windowSize:a,mask:i,maxNumber:r,shiftBy:s}=n;let c=Number(e&i),l=e>>s;c>a&&(c-=r,l+=o);const u=t*a;return{nextN:l,offset:u+Math.abs(c)-1,isZero:0===c,isNeg:c<0,isNegF:t%2!=0,offsetF:u}}const d=new WeakMap,m=new WeakMap;function f(e){return m.get(e)||1}function h(e){if(e!==r)throw new Error("invalid wNAF")}class v{BASE;ZERO;Fn;bits;constructor(e,t){this.BASE=e.BASE,this.ZERO=e.ZERO,this.Fn=e.Fn,this.bits=t}_unsafeLadder(e,t,n=this.ZERO){let a=e;for(;t>r;)t&o&&(n=n.add(a)),a=a.double(),t>>=o;return n}precomputeWindow(e,t){const{windows:n,windowSize:a}=u(t,this.bits),i=[];let r=e,o=r;for(let e=0;e<n;e++){o=r,i.push(o);for(let e=1;e<a;e++)o=o.add(r),i.push(o);r=o.double()}return i}wNAF(e,t,n){if(!this.Fn.isValid(n))throw new Error("invalid scalar");let a=this.ZERO,i=this.BASE;const r=u(e,this.bits);for(let e=0;e<r.windows;e++){const{nextN:o,offset:c,isZero:l,isNeg:u,isNegF:d,offsetF:m}=p(n,e,r);n=o,l?i=i.add(s(d,t[m])):a=a.add(s(u,t[c]))}return h(n),{p:a,f:i}}wNAFUnsafe(e,t,n,a=this.ZERO){const i=u(e,this.bits);for(let e=0;e<i.windows&&n!==r;e++){const{nextN:r,offset:o,isZero:s,isNeg:c}=p(n,e,i);if(n=r,!s){const e=t[o];a=a.add(c?e.negate():e)}}return h(n),a}getPrecomputes(e,t,n){let a=d.get(t);return a||(a=this.precomputeWindow(t,e),1!==e&&("function"==typeof n&&(a=n(a)),d.set(t,a))),a}cached(e,t,n){const a=f(e);return this.wNAF(a,this.getPrecomputes(a,e,n),t)}unsafe(e,t,n,a){const i=f(e);return 1===i?this._unsafeLadder(e,t,a):this.wNAFUnsafe(i,this.getPrecomputes(i,e,n),t,a)}createCache(e,t){l(t,this.bits),m.set(e,t),d.delete(e)}hasCache(e){return 1!==f(e)}}function x(e,t,n,a){let i=t,s=e.ZERO,c=e.ZERO;for(;n>r||a>r;)n&o&&(s=s.add(i)),a&o&&(c=c.add(i)),i=i.double(),n>>=o,a>>=o;return{p1:s,p2:c}}function b(e,t,n){if(t){if(t.ORDER!==e)throw new Error("Field.ORDER must match order: Fp == p, Fn == n");return(0,i.jr)(t),t}return(0,i.D0)(e,{isLE:n})}function g(e,t,n={},a){if(void 0===a&&(a="edwards"===e),!t||"object"!=typeof t)throw new Error(`expected valid ${e} CURVE object`);for(const e of["p","n","h"]){const n=t[e];if(!("bigint"==typeof n&&n>r))throw new Error(`CURVE.${e} must be positive bigint`)}const i=b(t.p,n.Fp,a),o=b(t.n,n.Fn,a),s=["Gx","Gy","a","weierstrass"===e?"b":"d"];for(const e of s)if(!i.isValid(t[e]))throw new Error(`CURVE.${e} must be valid field element of CURVE.Fp`);return{CURVE:t=Object.freeze(Object.assign({},t)),Fp:i,Fn:o}}function y(e,t){return function(n){const a=e(n);return{secretKey:a,publicKey:t(a)}}}},2186(e,t,n){n.d(t,{D0:()=>S,jr:()=>C,pS:()=>_,qy:()=>R,zH:()=>v});var a=n(6724),i=n(508);
|
|
34
|
+
var i,a,o=n(7598),s=n(8466).extname,r=n(983),c=/^\s*([^;\s]*)(?:;|\s|$)/,l=/^text\//i;function p(e){if(!e||"string"!=typeof e)return!1;var t=c.exec(e),n=t&&o[t[1].toLowerCase()];return n&&n.charset?n.charset:!(!t||!l.test(t[1]))&&"UTF-8"}function u(e){if(!e||"string"!=typeof e)return!1;var n=c.exec(e),i=n&&t.extensions[n[1].toLowerCase()];return!(!i||!i.length)&&i[0]}function d(e,t,n){return(t?r(t,o[t].source):0)>(n?r(n,o[n].source):0)?t:n}function m(e,n,i){var a=["nginx","apache",void 0,"iana"],s=n?a.indexOf(o[n].source):0,r=i?a.indexOf(o[i].source):0;return"application/octet-stream"!==t.types[u]&&(s>r||s===r&&"application/"===t.types[u]?.slice(0,12))||s>r?n:i}t.charset=p,t.charsets={lookup:p},t.contentType=function(e){if(!e||"string"!=typeof e)return!1;var n=-1===e.indexOf("/")?t.lookup(e):e;if(!n)return!1;if(-1===n.indexOf("charset")){var i=t.charset(n);i&&(n+="; charset="+i.toLowerCase())}return n},t.extension=u,t.extensions=Object.create(null),t.lookup=function(e){if(!e||"string"!=typeof e)return!1;var n=s("x."+e).toLowerCase().slice(1);if(!n)return!1;return t.types[n]||!1},t.types=Object.create(null),t._extensionConflicts=[],i=t.extensions,a=t.types,Object.keys(o).forEach(function(e){var n=o[e].extensions;if(n&&n.length){i[e]=n;for(var s=0;s<n.length;s++){var r=n[s];a[r]=d(r,a[r],e);const i=m(r,a[r],e);i!==a[r]&&t._extensionConflicts.push([r,i,a[r]])}}})},983(e){var t={"prs.":100,"x-":200,"x.":300,"vnd.":400,default:900},n={nginx:10,apache:20,iana:40,default:30},i={application:1,font:2,audio:2,video:3,default:0};e.exports=function(e,a="default"){if("application/octet-stream"===e)return 0;const[o,s]=e.split("/"),r=s.replace(/(\.|x-).*/,"$1");return(t[r]||t.default)+(n[a]||n.default)+(i[o]||i.default)+(1-e.length/100)}},5386(e){const t={acl:"http://www.w3.org/ns/auth/acl#",arg:"http://www.w3.org/ns/pim/arg#",as:"https://www.w3.org/ns/activitystreams#",bookmark:"http://www.w3.org/2002/01/bookmark#",cal:"http://www.w3.org/2002/12/cal/ical#",cco:"http://www.ontologyrepository.com/CommonCoreOntologies/",cert:"http://www.w3.org/ns/auth/cert#",contact:"http://www.w3.org/2000/10/swap/pim/contact#",dc:"http://purl.org/dc/elements/1.1/",dct:"http://purl.org/dc/terms/",doap:"http://usefulinc.com/ns/doap#",foaf:"http://xmlns.com/foaf/0.1/",geo:"http://www.w3.org/2003/01/geo/wgs84_pos#",gpx:"http://www.w3.org/ns/pim/gpx#",gr:"http://purl.org/goodrelations/v1#",http:"http://www.w3.org/2007/ont/http#",httph:"http://www.w3.org/2007/ont/httph#",icalTZ:"http://www.w3.org/2002/12/cal/icaltzd#",ldp:"http://www.w3.org/ns/ldp#",link:"http://www.w3.org/2007/ont/link#",log:"http://www.w3.org/2000/10/swap/log#",meeting:"http://www.w3.org/ns/pim/meeting#",mo:"http://purl.org/ontology/mo/",org:"http://www.w3.org/ns/org#",owl:"http://www.w3.org/2002/07/owl#",pad:"http://www.w3.org/ns/pim/pad#",patch:"http://www.w3.org/ns/pim/patch#",prov:"http://www.w3.org/ns/prov#",pto:"http://www.productontology.org/id/",qu:"http://www.w3.org/2000/10/swap/pim/qif#",trip:"http://www.w3.org/ns/pim/trip#",rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",rss:"http://purl.org/rss/1.0/",sched:"http://www.w3.org/ns/pim/schedule#",schema:"http://schema.org/",sioc:"http://rdfs.org/sioc/ns#",skos:"http://www.w3.org/2004/02/skos/core#",solid:"http://www.w3.org/ns/solid/terms#",space:"http://www.w3.org/ns/pim/space#",stat:"http://www.w3.org/ns/posix/stat#",tab:"http://www.w3.org/2007/ont/link#",tabont:"http://www.w3.org/2007/ont/link#",ui:"http://www.w3.org/ns/ui#",vann:"http://purl.org/vocab/vann/",vcard:"http://www.w3.org/2006/vcard/ns#",wf:"http://www.w3.org/2005/01/wf/flow#",xsd:"http://www.w3.org/2001/XMLSchema#"};e.exports=function(e={namedNode:e=>e}){const n={};for(const i in t){const a=t[i];n[i]=function(t=""){return e.namedNode(a+t)}}return n}},4961(t){t.exports=e},3138(e,n,i){e.exports=(e=>{var t={};return i.d(t,e),t})({ACL_LINK:()=>t.ACL_LINK,CrossOriginForbiddenError:()=>t.CrossOriginForbiddenError,FetchError:()=>t.FetchError,NotEditableError:()=>t.NotEditableError,SameOriginForbiddenError:()=>t.SameOriginForbiddenError,UnauthorizedError:()=>t.UnauthorizedError,WebOperationError:()=>t.WebOperationError,authSession:()=>t.authSession,authn:()=>t.authn,createTypeIndexLogic:()=>t.createTypeIndexLogic,getSuggestedIssuers:()=>t.getSuggestedIssuers,offlineTestID:()=>t.offlineTestID,solidLogicSingleton:()=>t.solidLogicSingleton,store:()=>t.store})},8466(){},7315(e,t,n){n.d(t,{Ak:()=>c,GV:()=>y,Pl:()=>v,fH:()=>b,hT:()=>g,u0:()=>r});var i=n(6724),a=n(2186);
|
|
33
35
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
34
|
-
const
|
|
36
|
+
const o=BigInt(0),s=BigInt(1);function r(e,t){const n=t.negate();return e?n:t}function c(e,t){const n=(0,a.pS)(e.Fp,t.map(e=>e.Z));return t.map((t,i)=>e.fromAffine(t.toAffine(n[i])))}function l(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function p(e,t){l(e,t);const n=2**e;return{windows:Math.ceil(t/e)+1,windowSize:2**(e-1),mask:(0,i.OG)(e),maxNumber:n,shiftBy:BigInt(e)}}function u(e,t,n){const{windowSize:i,mask:a,maxNumber:o,shiftBy:r}=n;let c=Number(e&a),l=e>>r;c>i&&(c-=o,l+=s);const p=t*i;return{nextN:l,offset:p+Math.abs(c)-1,isZero:0===c,isNeg:c<0,isNegF:t%2!=0,offsetF:p}}const d=new WeakMap,m=new WeakMap;function f(e){return m.get(e)||1}function h(e){if(e!==o)throw new Error("invalid wNAF")}class g{BASE;ZERO;Fn;bits;constructor(e,t){this.BASE=e.BASE,this.ZERO=e.ZERO,this.Fn=e.Fn,this.bits=t}_unsafeLadder(e,t,n=this.ZERO){let i=e;for(;t>o;)t&s&&(n=n.add(i)),i=i.double(),t>>=s;return n}precomputeWindow(e,t){const{windows:n,windowSize:i}=p(t,this.bits),a=[];let o=e,s=o;for(let e=0;e<n;e++){s=o,a.push(s);for(let e=1;e<i;e++)s=s.add(o),a.push(s);o=s.double()}return a}wNAF(e,t,n){if(!this.Fn.isValid(n))throw new Error("invalid scalar");let i=this.ZERO,a=this.BASE;const o=p(e,this.bits);for(let e=0;e<o.windows;e++){const{nextN:s,offset:c,isZero:l,isNeg:p,isNegF:d,offsetF:m}=u(n,e,o);n=s,l?a=a.add(r(d,t[m])):i=i.add(r(p,t[c]))}return h(n),{p:i,f:a}}wNAFUnsafe(e,t,n,i=this.ZERO){const a=p(e,this.bits);for(let e=0;e<a.windows&&n!==o;e++){const{nextN:o,offset:s,isZero:r,isNeg:c}=u(n,e,a);if(n=o,!r){const e=t[s];i=i.add(c?e.negate():e)}}return h(n),i}getPrecomputes(e,t,n){let i=d.get(t);return i||(i=this.precomputeWindow(t,e),1!==e&&("function"==typeof n&&(i=n(i)),d.set(t,i))),i}cached(e,t,n){const i=f(e);return this.wNAF(i,this.getPrecomputes(i,e,n),t)}unsafe(e,t,n,i){const a=f(e);return 1===a?this._unsafeLadder(e,t,i):this.wNAFUnsafe(a,this.getPrecomputes(a,e,n),t,i)}createCache(e,t){l(t,this.bits),m.set(e,t),d.delete(e)}hasCache(e){return 1!==f(e)}}function b(e,t,n,i){let a=t,r=e.ZERO,c=e.ZERO;for(;n>o||i>o;)n&s&&(r=r.add(a)),i&s&&(c=c.add(a)),a=a.double(),n>>=s,i>>=s;return{p1:r,p2:c}}function x(e,t,n){if(t){if(t.ORDER!==e)throw new Error("Field.ORDER must match order: Fp == p, Fn == n");return(0,a.jr)(t),t}return(0,a.D0)(e,{isLE:n})}function v(e,t,n={},i){if(void 0===i&&(i="edwards"===e),!t||"object"!=typeof t)throw new Error(`expected valid ${e} CURVE object`);for(const e of["p","n","h"]){const n=t[e];if(!("bigint"==typeof n&&n>o))throw new Error(`CURVE.${e} must be positive bigint`)}const a=x(t.p,n.Fp,i),s=x(t.n,n.Fn,i),r=["Gx","Gy","a","weierstrass"===e?"b":"d"];for(const e of r)if(!a.isValid(t[e]))throw new Error(`CURVE.${e} must be valid field element of CURVE.Fp`);return{CURVE:t=Object.freeze(Object.assign({},t)),Fp:a,Fn:s}}function y(e,t){return function(n){const i=e(n);return{secretKey:i,publicKey:t(i)}}}},2186(e,t,n){n.d(t,{D0:()=>_,jr:()=>A,pS:()=>k,qy:()=>R,zH:()=>h});var i=n(6724);
|
|
37
|
+
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const a=BigInt(0),o=BigInt(1),s=BigInt(2),r=BigInt(3),c=BigInt(4),l=BigInt(5),p=BigInt(7),u=BigInt(8),d=BigInt(9),m=BigInt(16);function f(e,t){if(t<=a)throw new Error("mod: expected positive modulus, got "+t);const n=e%t;return n>=a?n:t+n}function h(e,t,n){if(t<a)throw new Error("pow2: expected non-negative exponent, got "+t);let i=e;for(;t-- >a;)i*=i,i%=n;return i}function g(e,t){if(e===a)throw new Error("invert: expected non-zero number");if(t<=a)throw new Error("invert: expected positive modulus, got "+t);let n=f(e,t),i=t,s=a,r=o,c=o,l=a;for(;n!==a;){const e=i/n,t=i-n*e,a=s-c*e,o=r-l*e;i=n,n=t,s=c,r=l,c=a,l=o}if(i!==o)throw new Error("invert: does not exist");return f(s,t)}function b(e,t,n){const i=e;if(!i.eql(i.sqr(t),n))throw new Error("Cannot find square root")}function x(e,t){const n=e,i=(n.ORDER+o)/c,a=n.pow(t,i);return b(n,a,t),a}function v(e,t){const n=e,i=(n.ORDER-l)/u,a=n.mul(t,s),o=n.pow(a,i),r=n.mul(t,o),c=n.mul(n.mul(r,s),o),p=n.mul(r,n.sub(c,n.ONE));return b(n,p,t),p}function y(e){if(e<r)throw new Error("sqrt is not defined for small field");let t=e-o,n=0;for(;t%s===a;)t/=s,n++;let i=s;const c=_(e);for(;1===T(c,i);)if(i++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(1===n)return x;let l=c.pow(i,t);const p=(t+o)/s;return function(e,i){const a=e;if(a.is0(i))return i;if(1!==T(a,i))throw new Error("Cannot find square root");let s=n,r=a.mul(a.ONE,l),c=a.pow(i,t),u=a.pow(i,p);for(;!a.eql(c,a.ONE);){if(a.is0(c))return a.ZERO;let e=1,t=a.sqr(c);for(;!a.eql(t,a.ONE);)if(e++,t=a.sqr(t),e===s)throw new Error("Cannot find square root");const n=o<<BigInt(s-e-1),i=a.pow(r,n);s=e,r=a.sqr(i),c=a.mul(c,r),u=a.mul(u,i)}return u}}function w(e){return e%c===r?x:e%u===l?v:e%m===d?function(e){const t=_(e),n=y(e),i=n(t,t.neg(t.ONE)),a=n(t,i),o=n(t,t.neg(i)),s=(e+p)/m;return(e,t)=>{const n=e;let r=n.pow(t,s),c=n.mul(r,i);const l=n.mul(r,a),p=n.mul(r,o),u=n.eql(n.sqr(c),t),d=n.eql(n.sqr(l),t);r=n.cmov(r,c,u),c=n.cmov(p,l,d);const m=n.eql(n.sqr(c),t),f=n.cmov(r,c,m);return b(n,f,t),f}}(e):y(e)}const C=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function A(e){const t=C.reduce((e,t)=>(e[t]="function",e),{ORDER:"bigint",BYTES:"number",BITS:"number"});if((0,i.Q5)(e,t),(0,i.gr)(e.BYTES,"BYTES"),(0,i.gr)(e.BITS,"BITS"),e.BYTES<1||e.BITS<1)throw new Error("invalid field: expected BYTES/BITS > 0");if(e.ORDER<=o)throw new Error("invalid field: expected ORDER > 1, got "+e.ORDER);return e}function E(e,t,n){const i=e;if(n<a)throw new Error("invalid exponent, negatives unsupported");if(n===a)return i.ONE;if(n===o)return t;let s=i.ONE,r=t;for(;n>a;)n&o&&(s=i.mul(s,r)),r=i.sqr(r),n>>=o;return s}function k(e,t,n=!1){const i=e,a=new Array(t.length).fill(n?i.ZERO:void 0),o=t.reduce((e,t,n)=>i.is0(t)?e:(a[n]=e,i.mul(e,t)),i.ONE),s=i.inv(o);return t.reduceRight((e,t,n)=>i.is0(t)?e:(a[n]=i.mul(e,a[n]),i.mul(e,t)),s),a}function T(e,t){const n=e,i=(n.ORDER-o)/s,a=n.pow(t,i),r=n.eql(a,n.ONE),c=n.eql(a,n.ZERO),l=n.eql(a,n.neg(n.ONE));if(!r&&!c&&!l)throw new Error("invalid Legendre symbol result");return r?1:c?0:-1}const L=new WeakMap;class j{ORDER;BITS;BYTES;isLE;ZERO=a;ONE=o;_lengths;_mod;constructor(e,t={}){if(e<=o)throw new Error("invalid field: expected ORDER > 1, got "+e);let n;this.isLE=!1,null!=t&&"object"==typeof t&&("number"==typeof t.BITS&&(n=t.BITS),"function"==typeof t.sqrt&&Object.defineProperty(this,"sqrt",{value:t.sqrt,enumerable:!0}),"boolean"==typeof t.isLE&&(this.isLE=t.isLE),t.allowedLengths&&(this._lengths=Object.freeze(t.allowedLengths.slice())),"boolean"==typeof t.modFromBytes&&(this._mod=t.modFromBytes));const{nBitLength:s,nByteLength:r}=function(e,t){if(void 0!==t&&(0,i.Fe)(t),e<=a)throw new Error("invalid n length: expected positive n, got "+e);if(void 0!==t&&t<1)throw new Error("invalid n length: expected positive bit length, got "+t);const n=(0,i.dJ)(e);if(void 0!==t&&t<n)throw new Error(`invalid n length: expected bit length (${n}) >= n.length (${t})`);const o=void 0!==t?t:n;return{nBitLength:o,nByteLength:Math.ceil(o/8)}}(e,n);if(r>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");this.ORDER=e,this.BITS=s,this.BYTES=r,Object.freeze(this)}create(e){return f(e,this.ORDER)}isValid(e){if("bigint"!=typeof e)throw new TypeError("invalid field element: expected bigint, got "+typeof e);return a<=e&&e<this.ORDER}is0(e){return e===a}isValidNot0(e){return!this.is0(e)&&this.isValid(e)}isOdd(e){return(e&o)===o}neg(e){return f(-e,this.ORDER)}eql(e,t){return e===t}sqr(e){return f(e*e,this.ORDER)}add(e,t){return f(e+t,this.ORDER)}sub(e,t){return f(e-t,this.ORDER)}mul(e,t){return f(e*t,this.ORDER)}pow(e,t){return E(this,e,t)}div(e,t){return f(e*g(t,this.ORDER),this.ORDER)}sqrN(e){return e*e}addN(e,t){return e+t}subN(e,t){return e-t}mulN(e,t){return e*t}inv(e){return g(e,this.ORDER)}sqrt(e){let t=L.get(this);return t||L.set(this,t=w(this.ORDER)),t(this,e)}toBytes(e){return this.isLE?(0,i.z)(e,this.BYTES):(0,i.lq)(e,this.BYTES)}fromBytes(e,t=!1){(0,i.DO)(e);const{_lengths:n,BYTES:a,isLE:o,ORDER:s,_mod:r}=this;if(n){if(e.length<1||!n.includes(e.length)||e.length>a)throw new Error("Field.fromBytes: expected "+n+" bytes, got "+e.length);const t=new Uint8Array(a);t.set(e,o?0:t.length-e.length),e=t}if(e.length!==a)throw new Error("Field.fromBytes: expected "+a+" bytes, got "+e.length);let c=o?(0,i.lX)(e):(0,i.Ph)(e);if(r&&(c=f(c,s)),!t&&!this.isValid(c))throw new Error("invalid field element: outside of range 0..ORDER");return c}invertBatch(e){return k(this,e)}cmov(e,t,n){return(0,i.e8)(n,"condition"),n?t:e}}function _(e,t={}){return new j(e,t)}function S(e){if("bigint"!=typeof e)throw new Error("field order must be bigint");if(e<=o)throw new Error("field order must be greater than 1");const t=(0,i.dJ)(e-o);return Math.ceil(t/8)}function R(e,t,n=!1){(0,i.DO)(e);const a=e.length,s=S(t),r=Math.max(function(e){const t=S(e);return t+Math.ceil(t/2)}(t),16);if(a<r||a>1024)throw new Error("expected "+r+"-1024 bytes of input, got "+a);const c=f(n?(0,i.lX)(e):(0,i.Ph)(e),t-o)+o;return n?(0,i.z)(c,s):(0,i.lq)(c,s)}Object.freeze(j.prototype)},4032(e,t,n){n.d(t,{x3:()=>m});var i=n(6724),a=n(7315);
|
|
35
38
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
36
|
-
const o=(e,t)=>(e+(e>=0?t:-t)/
|
|
39
|
+
const o=(e,t)=>(e+(e>=0?t:-t)/p)/t;class s extends Error{constructor(e=""){super(e)}}const r={Err:s,_tlv:{encode:(e,t)=>{const{Err:n}=r;if((0,i.gr)(e,"tag"),e<0||e>255)throw new n("tlv.encode: wrong tag");if("string"!=typeof t)throw new TypeError('"data" expected string, got type='+typeof t);if(1&t.length)throw new n("tlv.encode: unpadded data");const a=t.length/2,o=(0,i.zW)(a);if(o.length/2&128)throw new n("tlv.encode: long form length too big");const s=a>127?(0,i.zW)(o.length/2|128):"";return(0,i.zW)(e)+s+o+t},decode(e,t){const{Err:n}=r;t=(0,i.DO)(t,void 0,"DER data");let a=0;if(e<0||e>255)throw new n("tlv.encode: wrong tag");if(t.length<2||t[a++]!==e)throw new n("tlv.decode: wrong tlv");const o=t[a++];let s=0;if(!!(128&o)){const e=127&o;if(!e)throw new n("tlv.decode(long): indefinite length not supported");if(e>4)throw new n("tlv.decode(long): byte length is too big");const i=t.subarray(a,a+e);if(i.length!==e)throw new n("tlv.decode: length bytes not complete");if(0===i[0])throw new n("tlv.decode(long): zero leftmost byte");for(const e of i)s=s<<8|e;if(a+=e,s<128)throw new n("tlv.decode(long): not minimal encoding")}else s=o;const c=t.subarray(a,a+s);if(c.length!==s)throw new n("tlv.decode: wrong value length");return{v:c,l:t.subarray(a+s)}}},_int:{encode(e){const{Err:t}=r;if((0,i.Nf)(e),e<c)throw new t("integer: negative integers are not allowed");let n=(0,i.zW)(e);if(8&Number.parseInt(n[0],16)&&(n="00"+n),1&n.length)throw new t("unexpected DER parsing assertion: unpadded hex");return n},decode(e){const{Err:t}=r;if(e.length<1)throw new t("invalid signature integer: empty");if(128&e[0])throw new t("invalid signature integer: negative");if(e.length>1&&0===e[0]&&!(128&e[1]))throw new t("invalid signature integer: unnecessary leading zero");return(0,i.Ph)(e)}},toSig(e){const{Err:t,_int:n,_tlv:a}=r,o=(0,i.DO)(e,void 0,"signature"),{v:s,l:c}=a.decode(48,o);if(c.length)throw new t("invalid signature: left bytes after parsing");const{v:l,l:p}=a.decode(2,s),{v:u,l:d}=a.decode(2,p);if(d.length)throw new t("invalid signature: left bytes after parsing");return{r:n.decode(l),s:n.decode(u)}},hexFromSig(e){const{_tlv:t,_int:n}=r,i=t.encode(2,n.encode(e.r))+t.encode(2,n.encode(e.s));return t.encode(48,i)}};Object.freeze(r._tlv),Object.freeze(r._int),Object.freeze(r);const c=BigInt(0),l=BigInt(1),p=BigInt(2),u=BigInt(3),d=BigInt(4);function m(e,t={}){const n=(0,a.Pl)("weierstrass",e,t),s=n.Fp,r=n.Fn;let p=n.CURVE;const{h:m,n:g}=p;(0,i.Q5)(t,{},{allowInfinityPoint:"boolean",clearCofactor:"function",isTorsionFree:"function",fromBytes:"function",toBytes:"function",endo:"object"});const{endo:b,allowInfinityPoint:x}=t;if(b&&(!s.is0(p.a)||"bigint"!=typeof b.beta||!Array.isArray(b.basises)))throw new Error('invalid endo: expected "beta": bigint and "basises": array');const v=h(s,r);function y(){if(!s.isOdd)throw new Error("compression is not supported: Field does not have .isOdd()")}const w=void 0===t.toBytes?function(e,t,n){if(x&&t.is0())return Uint8Array.of(0);const{x:a,y:o}=t.toAffine(),r=s.toBytes(a);if((0,i.e8)(n,"isCompressed"),n){y();const e=!s.isOdd(o);return(0,i.Id)(f(e),r)}return(0,i.Id)(Uint8Array.of(4),r,s.toBytes(o))}:t.toBytes,C=void 0===t.fromBytes?function(e){(0,i.DO)(e,void 0,"Point");const{publicKey:t,publicKeyUncompressed:n}=v,a=e.length,o=e[0],r=e.subarray(1);if(x&&1===a&&0===o)return{x:s.ZERO,y:s.ZERO};if(a!==t||2!==o&&3!==o){if(a===n&&4===o){const e=s.BYTES,t=s.fromBytes(r.subarray(0,e)),n=s.fromBytes(r.subarray(e,2*e));if(!E(t,n))throw new Error("bad point: is not on curve");return{x:t,y:n}}throw new Error(`bad point: got length ${a}, expected compressed=${t} or uncompressed=${n}`)}{const e=s.fromBytes(r);if(!s.isValid(e))throw new Error("bad point: is not on curve, wrong x");const t=A(e);let n;try{n=s.sqrt(t)}catch(e){const t=e instanceof Error?": "+e.message:"";throw new Error("bad point: is not on curve, sqrt error"+t)}y();return!(1&~o)!==s.isOdd(n)&&(n=s.neg(n)),{x:e,y:n}}}:t.fromBytes;function A(e){const t=s.sqr(e),n=s.mul(t,e);return s.add(s.add(n,s.mul(e,p.a)),p.b)}function E(e,t){const n=s.sqr(t),i=A(e);return s.eql(n,i)}if(!E(p.Gx,p.Gy))throw new Error("bad curve params: generator point");const k=s.mul(s.pow(p.a,u),d),T=s.mul(s.sqr(p.b),BigInt(27));if(s.is0(s.add(k,T)))throw new Error("bad curve params: a or b");function L(e,t,n=!1){if(!s.isValid(t)||n&&s.is0(t))throw new Error(`bad point coordinate ${e}`);return t}function j(e){if(!(e instanceof R))throw new Error("Weierstrass Point expected")}function _(e){if(!b||!b.basises)throw new Error("no endo");return function(e,t,n){(0,i.aK)("scalar",e,c,n);const[[a,s],[r,p]]=t,u=o(p*e,n),d=o(-s*e,n);let m=e-u*a-d*r,f=-u*s-d*p;const h=m<c,g=f<c;h&&(m=-m),g&&(f=-f);const b=(0,i.OG)(Math.ceil((0,i.dJ)(n)/2))+l;if(m<c||m>=b||f<c||f>=b)throw new Error("splitScalar (endomorphism): failed for k");return{k1neg:h,k1:m,k2neg:g,k2:f}}(e,b.basises,r.ORDER)}function S(e,t,n,i,o){return n=new R(s.mul(n.X,e),n.Y,n.Z),t=(0,a.u0)(i,t),n=(0,a.u0)(o,n),t.add(n)}class R{static BASE=new R(p.Gx,p.Gy,s.ONE);static ZERO=new R(s.ZERO,s.ONE,s.ZERO);static Fp=s;static Fn=r;X;Y;Z;constructor(e,t,n){this.X=L("x",e),this.Y=L("y",t,!0),this.Z=L("z",n),Object.freeze(this)}static CURVE(){return p}static fromAffine(e){const{x:t,y:n}=e||{};if(!e||!s.isValid(t)||!s.isValid(n))throw new Error("invalid affine point");if(e instanceof R)throw new Error("projective point not allowed");return s.is0(t)&&s.is0(n)?R.ZERO:new R(t,n,s.ONE)}static fromBytes(e){const t=R.fromAffine(C((0,i.DO)(e,void 0,"point")));return t.assertValidity(),t}static fromHex(e){return R.fromBytes((0,i.aT)(e))}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(e=8,t=!0){return B.createCache(this,e),t||this.multiply(u),this}assertValidity(){const e=this;if(e.is0()){if(t.allowInfinityPoint&&s.is0(e.X)&&s.eql(e.Y,s.ONE)&&s.is0(e.Z))return;throw new Error("bad point: ZERO")}const{x:n,y:i}=e.toAffine();if(!s.isValid(n)||!s.isValid(i))throw new Error("bad point: x or y not field elements");if(!E(n,i))throw new Error("bad point: equation left != right");if(!e.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:e}=this.toAffine();if(!s.isOdd)throw new Error("Field doesn't support isOdd");return!s.isOdd(e)}equals(e){j(e);const{X:t,Y:n,Z:i}=this,{X:a,Y:o,Z:r}=e,c=s.eql(s.mul(t,r),s.mul(a,i)),l=s.eql(s.mul(n,r),s.mul(o,i));return c&&l}negate(){return new R(this.X,s.neg(this.Y),this.Z)}double(){const{a:e,b:t}=p,n=s.mul(t,u),{X:i,Y:a,Z:o}=this;let r=s.ZERO,c=s.ZERO,l=s.ZERO,d=s.mul(i,i),m=s.mul(a,a),f=s.mul(o,o),h=s.mul(i,a);return h=s.add(h,h),l=s.mul(i,o),l=s.add(l,l),r=s.mul(e,l),c=s.mul(n,f),c=s.add(r,c),r=s.sub(m,c),c=s.add(m,c),c=s.mul(r,c),r=s.mul(h,r),l=s.mul(n,l),f=s.mul(e,f),h=s.sub(d,f),h=s.mul(e,h),h=s.add(h,l),l=s.add(d,d),d=s.add(l,d),d=s.add(d,f),d=s.mul(d,h),c=s.add(c,d),f=s.mul(a,o),f=s.add(f,f),d=s.mul(f,h),r=s.sub(r,d),l=s.mul(f,m),l=s.add(l,l),l=s.add(l,l),new R(r,c,l)}add(e){j(e);const{X:t,Y:n,Z:i}=this,{X:a,Y:o,Z:r}=e;let c=s.ZERO,l=s.ZERO,d=s.ZERO;const m=p.a,f=s.mul(p.b,u);let h=s.mul(t,a),g=s.mul(n,o),b=s.mul(i,r),x=s.add(t,n),v=s.add(a,o);x=s.mul(x,v),v=s.add(h,g),x=s.sub(x,v),v=s.add(t,i);let y=s.add(a,r);return v=s.mul(v,y),y=s.add(h,b),v=s.sub(v,y),y=s.add(n,i),c=s.add(o,r),y=s.mul(y,c),c=s.add(g,b),y=s.sub(y,c),d=s.mul(m,v),c=s.mul(f,b),d=s.add(c,d),c=s.sub(g,d),d=s.add(g,d),l=s.mul(c,d),g=s.add(h,h),g=s.add(g,h),b=s.mul(m,b),v=s.mul(f,v),g=s.add(g,b),b=s.sub(h,b),b=s.mul(m,b),v=s.add(v,b),h=s.mul(g,v),l=s.add(l,h),h=s.mul(y,v),c=s.mul(x,c),c=s.sub(c,h),h=s.mul(x,g),d=s.mul(y,d),d=s.add(d,h),new R(c,l,d)}subtract(e){return j(e),this.add(e.negate())}is0(){return this.equals(R.ZERO)}multiply(e){const{endo:n}=t;if(!r.isValidNot0(e))throw new RangeError("invalid scalar: out of range");let i,o;const s=e=>B.cached(this,e,e=>(0,a.Ak)(R,e));if(n){const{k1neg:t,k1:a,k2neg:r,k2:c}=_(e),{p:l,f:p}=s(a),{p:u,f:d}=s(c);o=p.add(d),i=S(n.beta,l,u,t,r)}else{const{p:t,f:n}=s(e);i=t,o=n}return(0,a.Ak)(R,[i,o])[0]}multiplyUnsafe(e){const{endo:n}=t,i=this,o=e;if(!r.isValid(o))throw new RangeError("invalid scalar: out of range");if(o===c||i.is0())return R.ZERO;if(o===l)return i;if(B.hasCache(this))return this.multiply(o);if(n){const{k1neg:e,k1:t,k2neg:s,k2:r}=_(o),{p1:c,p2:l}=(0,a.fH)(R,i,t,r);return S(n.beta,c,l,e,s)}return B.unsafe(i,o)}toAffine(e){let t=e;const{X:n,Y:i,Z:a}=this;if(s.eql(a,s.ONE))return{x:n,y:i};const o=this.is0();null==t&&(t=o?s.ONE:s.inv(a));const r=s.mul(n,t),c=s.mul(i,t),l=s.mul(a,t);if(o)return{x:s.ZERO,y:s.ZERO};if(!s.eql(l,s.ONE))throw new Error("invZ was invalid");return{x:r,y:c}}isTorsionFree(){const{isTorsionFree:e}=t;return m===l||(e?e(R,this):B.unsafe(this,g).is0())}clearCofactor(){const{clearCofactor:e}=t;return m===l?this:e?e(R,this):this.multiplyUnsafe(m)}isSmallOrder(){return m===l?this.is0():this.clearCofactor().is0()}toBytes(e=!0){return(0,i.e8)(e,"isCompressed"),this.assertValidity(),w(R,this,e)}toHex(e=!0){return(0,i.My)(this.toBytes(e))}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}}const N=r.BITS,B=new a.hT(R,t.endo?Math.ceil(N/2):N);return N>=8&&R.BASE.precompute(8),Object.freeze(R.prototype),Object.freeze(R),R}function f(e){return Uint8Array.of(e?2:3)}function h(e,t){return{secretKey:t.BYTES,publicKey:1+e.BYTES,publicKeyUncompressed:1+2*e.BYTES,publicKeyHasPrefix:!0,signature:2*t.BYTES}}},6885(e,t,n){n.d(t,{ko:()=>T});var i=n(4721),a=n(508),o=n(7315),s=n(2186),r=n(4032),c=n(6724);
|
|
37
40
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
38
|
-
const l={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},
|
|
39
|
-
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const i=BigInt(0),r=BigInt(1);function o(e,t=""){if("boolean"!=typeof e){throw new Error((t&&`"${t}" `)+"expected boolean, got type="+typeof e)}return e}function s(e){if("bigint"==typeof e){if(!h(e))throw new Error("positive bigint expected, got "+e)}else(0,a.Fe)(e);return e}function c(e){const t=s(e).toString(16);return 1&t.length?"0"+t:t}function l(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);return""===e?i:BigInt("0x"+e)}function u(e){return l((0,a.My)(e))}function p(e){return l((0,a.My)(function(e){return Uint8Array.from(e)}((0,a.DO)(e)).reverse()))}function d(e,t){(0,a.Fe)(t),e=s(e);const n=(0,a.aT)(e.toString(16).padStart(2*t,"0"));if(n.length!==t)throw new Error("number too large");return n}function m(e,t){return d(e,t).reverse()}function f(e){return Uint8Array.from(e,(t,n)=>{const a=t.charCodeAt(0);if(1!==t.length||a>127)throw new Error(`string contains non-ASCII character "${e[n]}" with code ${a} at position ${n}`);return a})}const h=e=>"bigint"==typeof e&&i<=e;function v(e){let t;for(t=0;e>i;e>>=r,t+=1);return t}const x=e=>(r<<BigInt(e))-r;function b(e,t={},n={}){if(!e||"object"!=typeof e)throw new Error("expected valid options object");const a=(t,n)=>Object.entries(t).forEach(([t,a])=>function(t,n,a){const i=e[t];if(a&&void 0===i)return;const r=typeof i;if(r!==n||null===i)throw new Error(`param "${t}" is invalid: expected ${n}, got ${r}`)}(t,a,n));a(t,!1),a(n,!0)}function g(e){const t=new WeakMap;return(n,...a)=>{const i=t.get(n);if(void 0!==i)return i;const r=e(n,...a);return t.set(n,r),r}}},6793(e,t,n){n.d(t,{Az:()=>l,DM:()=>c,TQ:()=>r,ol:()=>o,r9:()=>i,tT:()=>u,yc:()=>s});var a=n(508);function i(e,t,n){return e&t^~e&n}function r(e,t,n){return e&t^e&n^t&n}class o{blockLen;outputLen;padOffset;isLE;buffer;view;finished=!1;length=0;pos=0;destroyed=!1;constructor(e,t,n,i){this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=i,this.buffer=new Uint8Array(e),this.view=(0,a.O8)(this.buffer)}update(e){(0,a.CC)(this),(0,a.DO)(e);const{view:t,buffer:n,blockLen:i}=this,r=e.length;for(let o=0;o<r;){const s=Math.min(i-this.pos,r-o);if(s===i){const t=(0,a.O8)(e);for(;i<=r-o;o+=i)this.process(t,o);continue}n.set(e.subarray(o,o+s),this.pos),this.pos+=s,o+=s,this.pos===i&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,a.CC)(this),(0,a.Ht)(e,this),this.finished=!0;const{buffer:t,view:n,blockLen:i,isLE:r}=this;let{pos:o}=this;t[o++]=128,(0,a.uH)(this.buffer.subarray(o)),this.padOffset>i-o&&(this.process(n,0),o=0);for(let e=o;e<i;e++)t[e]=0;n.setBigUint64(i-8,BigInt(8*this.length),r),this.process(n,0);const s=(0,a.O8)(e),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen must be aligned to 32bit");const l=c/4,u=this.get();if(l>u.length)throw new Error("_sha2: outputLen bigger than state");for(let e=0;e<l;e++)s.setUint32(4*e,u[e],r)}digest(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const n=e.slice(0,t);return this.destroy(),n}_cloneInto(e){e||=new this.constructor,e.set(...this.get());const{blockLen:t,buffer:n,length:a,finished:i,destroyed:r,pos:o}=this;return e.destroyed=r,e.finished=i,e.length=a,e.pos=o,a%t&&e.buffer.set(n),e}clone(){return this._cloneInto()}}const s=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),c=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),l=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),u=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209])},6211(e,t,n){n.d(t,{CQ:()=>x,CW:()=>v,Ei:()=>d,F8:()=>b,TH:()=>g,Vl:()=>f,Vr:()=>h,WQ:()=>m,jm:()=>c,lD:()=>o,qh:()=>p,rE:()=>l,ry:()=>u,xn:()=>s});const a=BigInt(2**32-1),i=BigInt(32);function r(e,t=!1){return t?{h:Number(e&a),l:Number(e>>i&a)}:{h:0|Number(e>>i&a),l:0|Number(e&a)}}function o(e,t=!1){const n=e.length;let a=new Uint32Array(n),i=new Uint32Array(n);for(let o=0;o<n;o++){const{h:n,l:s}=r(e[o],t);[a[o],i[o]]=[n,s]}return[a,i]}const s=(e,t,n)=>e>>>n,c=(e,t,n)=>e<<32-n|t>>>n,l=(e,t,n)=>e>>>n|t<<32-n,u=(e,t,n)=>e<<32-n|t>>>n,p=(e,t,n)=>e<<64-n|t>>>n-32,d=(e,t,n)=>e>>>n-32|t<<64-n;function m(e,t,n,a){const i=(t>>>0)+(a>>>0);return{h:e+n+(i/2**32|0)|0,l:0|i}}const f=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0),h=(e,t,n,a)=>t+n+a+(e/2**32|0)|0,v=(e,t,n,a)=>(e>>>0)+(t>>>0)+(n>>>0)+(a>>>0),x=(e,t,n,a,i)=>t+n+a+i+(e/2**32|0)|0,b=(e,t,n,a,i)=>(e>>>0)+(t>>>0)+(n>>>0)+(a>>>0)+(i>>>0),g=(e,t,n,a,i,r)=>t+n+a+i+r+(e/2**32|0)|0},4721(e,t,n){n.d(t,{sc:()=>l});var a=n(6793),i=(n(6211),n(508));const r=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),o=new Uint32Array(64);class s extends a.ol{constructor(e){super(64,e,8,!1)}get(){const{A:e,B:t,C:n,D:a,E:i,F:r,G:o,H:s}=this;return[e,t,n,a,i,r,o,s]}set(e,t,n,a,i,r,o,s){this.A=0|e,this.B=0|t,this.C=0|n,this.D=0|a,this.E=0|i,this.F=0|r,this.G=0|o,this.H=0|s}process(e,t){for(let n=0;n<16;n++,t+=4)o[n]=e.getUint32(t,!1);for(let e=16;e<64;e++){const t=o[e-15],n=o[e-2],a=(0,i.Ow)(t,7)^(0,i.Ow)(t,18)^t>>>3,r=(0,i.Ow)(n,17)^(0,i.Ow)(n,19)^n>>>10;o[e]=r+o[e-7]+a+o[e-16]|0}let{A:n,B:s,C:c,D:l,E:u,F:p,G:d,H:m}=this;for(let e=0;e<64;e++){const t=m+((0,i.Ow)(u,6)^(0,i.Ow)(u,11)^(0,i.Ow)(u,25))+(0,a.r9)(u,p,d)+r[e]+o[e]|0,f=((0,i.Ow)(n,2)^(0,i.Ow)(n,13)^(0,i.Ow)(n,22))+(0,a.TQ)(n,s,c)|0;m=d,d=p,p=u,u=l+t|0,l=c,c=s,s=n,n=t+f|0}n=n+this.A|0,s=s+this.B|0,c=c+this.C|0,l=l+this.D|0,u=u+this.E|0,p=p+this.F|0,d=d+this.G|0,m=m+this.H|0,this.set(n,s,c,l,u,p,d,m)}roundClean(){(0,i.uH)(o)}destroy(){this.set(0,0,0,0,0,0,0,0),(0,i.uH)(this.buffer)}}class c extends s{A=0|a.yc[0];B=0|a.yc[1];C=0|a.yc[2];D=0|a.yc[3];E=0|a.yc[4];F=0|a.yc[5];G=0|a.yc[6];H=0|a.yc[7];constructor(){super(32)}}a.ol;const l=(0,i.qj)(()=>new c,(0,i.nx)(1))},508(e,t,n){function a(e,t=""){if(!Number.isSafeInteger(e)||e<0){throw new Error(`${t&&`"${t}" `}expected integer >= 0, got ${e}`)}}function i(e,t,n=""){const a=(i=e)instanceof Uint8Array||ArrayBuffer.isView(i)&&"Uint8Array"===i.constructor.name;
|
|
40
|
-
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
41
|
-
var i;const r=e?.length,o=void 0!==t;if(!a||o&&r!==t){throw new Error((n&&`"${n}" `)+"expected Uint8Array"+(o?` of length ${t}`:"")+", got "+(a?`length=${r}`:"type="+typeof e))}return e}function r(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function o(e,t){i(e,void 0,"digestInto() output");const n=t.outputLen;if(e.length<n)throw new Error('"digestInto() output" expected to be of length >='+n)}function s(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function c(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function l(e,t){return e<<32-t|e>>>t}n.d(t,{CC:()=>r,DO:()=>i,Fe:()=>a,Ht:()=>o,Id:()=>w,My:()=>d,O8:()=>c,Ow:()=>l,aT:()=>y,nx:()=>C,po:()=>k,qj:()=>A,uH:()=>s});const u=(()=>"function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex)(),p=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function d(e){if(i(e),u)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=p[e[n]];return t}const m=48,f=57,h=65,v=70,x=97,b=102;function g(e){return e>=m&&e<=f?e-m:e>=h&&e<=v?e-(h-10):e>=x&&e<=b?e-(x-10):void 0}function y(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);if(u)return Uint8Array.fromHex(e);const t=e.length,n=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const a=new Uint8Array(n);for(let t=0,i=0;t<n;t++,i+=2){const n=g(e.charCodeAt(i)),r=g(e.charCodeAt(i+1));if(void 0===n||void 0===r){const t=e[i]+e[i+1];throw new Error('hex string expected, got non-hex character "'+t+'" at index '+i)}a[t]=16*n+r}return a}function w(...e){let t=0;for(let n=0;n<e.length;n++){const a=e[n];i(a),t+=a.length}const n=new Uint8Array(t);for(let t=0,a=0;t<e.length;t++){const i=e[t];n.set(i,a),a+=i.length}return n}function A(e,t={}){const n=(t,n)=>e(n).update(t).digest(),a=e(void 0);return n.outputLen=a.outputLen,n.blockLen=a.blockLen,n.create=t=>e(t),Object.assign(n,t),Object.freeze(n)}function k(e=32){const t="object"==typeof globalThis?globalThis.crypto:null;if("function"!=typeof t?.getRandomValues)throw new Error("crypto.getRandomValues must be defined");return t.getRandomValues(new Uint8Array(e))}const C=e=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,e])})},7697(e,t,n){n.d(t,{A:()=>a});const a={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)}},3689(e,t,n){let a;n.d(t,{A:()=>r});const i=new Uint8Array(16);function r(){if(!a){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");a=crypto.getRandomValues.bind(crypto)}return a(i)}},8249(e,t,n){n.d(t,{k:()=>i});const a=[];for(let e=0;e<256;++e)a.push((e+256).toString(16).slice(1));function i(e,t=0){return(a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]).toLowerCase()}},4296(e,t,n){n.d(t,{A:()=>o});var a=n(7697),i=n(3689),r=n(8249);const o=function(e,t,n){return!a.A.randomUUID||t||e?function(e,t,n){const a=(e=e||{}).random??e.rng?.()??(0,i.A)();if(a.length<16)throw new Error("Random bytes length must be >= 16");if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){if((n=n||0)<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=a[e];return t}return(0,r.k)(a)}(e,t,n):a.A.randomUUID()}},1813(e){e.exports=JSON.parse('{"application/1d-interleaved-parityfec":{"source":"iana"},"application/3gpdash-qoe-report+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/3gpp-ims+xml":{"source":"iana","compressible":true},"application/3gpphal+json":{"source":"iana","compressible":true},"application/3gpphalforms+json":{"source":"iana","compressible":true},"application/a2l":{"source":"iana"},"application/ace+cbor":{"source":"iana"},"application/ace+json":{"source":"iana","compressible":true},"application/ace-groupcomm+cbor":{"source":"iana"},"application/ace-trl+cbor":{"source":"iana"},"application/activemessage":{"source":"iana"},"application/activity+json":{"source":"iana","compressible":true},"application/aif+cbor":{"source":"iana"},"application/aif+json":{"source":"iana","compressible":true},"application/alto-cdni+json":{"source":"iana","compressible":true},"application/alto-cdnifilter+json":{"source":"iana","compressible":true},"application/alto-costmap+json":{"source":"iana","compressible":true},"application/alto-costmapfilter+json":{"source":"iana","compressible":true},"application/alto-directory+json":{"source":"iana","compressible":true},"application/alto-endpointcost+json":{"source":"iana","compressible":true},"application/alto-endpointcostparams+json":{"source":"iana","compressible":true},"application/alto-endpointprop+json":{"source":"iana","compressible":true},"application/alto-endpointpropparams+json":{"source":"iana","compressible":true},"application/alto-error+json":{"source":"iana","compressible":true},"application/alto-networkmap+json":{"source":"iana","compressible":true},"application/alto-networkmapfilter+json":{"source":"iana","compressible":true},"application/alto-propmap+json":{"source":"iana","compressible":true},"application/alto-propmapparams+json":{"source":"iana","compressible":true},"application/alto-tips+json":{"source":"iana","compressible":true},"application/alto-tipsparams+json":{"source":"iana","compressible":true},"application/alto-updatestreamcontrol+json":{"source":"iana","compressible":true},"application/alto-updatestreamparams+json":{"source":"iana","compressible":true},"application/aml":{"source":"iana"},"application/andrew-inset":{"source":"iana","extensions":["ez"]},"application/appinstaller":{"compressible":false,"extensions":["appinstaller"]},"application/applefile":{"source":"iana"},"application/applixware":{"source":"apache","extensions":["aw"]},"application/appx":{"compressible":false,"extensions":["appx"]},"application/appxbundle":{"compressible":false,"extensions":["appxbundle"]},"application/at+jwt":{"source":"iana"},"application/atf":{"source":"iana"},"application/atfx":{"source":"iana"},"application/atom+xml":{"source":"iana","compressible":true,"extensions":["atom"]},"application/atomcat+xml":{"source":"iana","compressible":true,"extensions":["atomcat"]},"application/atomdeleted+xml":{"source":"iana","compressible":true,"extensions":["atomdeleted"]},"application/atomicmail":{"source":"iana"},"application/atomsvc+xml":{"source":"iana","compressible":true,"extensions":["atomsvc"]},"application/atsc-dwd+xml":{"source":"iana","compressible":true,"extensions":["dwd"]},"application/atsc-dynamic-event-message":{"source":"iana"},"application/atsc-held+xml":{"source":"iana","compressible":true,"extensions":["held"]},"application/atsc-rdt+json":{"source":"iana","compressible":true},"application/atsc-rsat+xml":{"source":"iana","compressible":true,"extensions":["rsat"]},"application/atxml":{"source":"iana"},"application/auth-policy+xml":{"source":"iana","compressible":true},"application/automationml-aml+xml":{"source":"iana","compressible":true,"extensions":["aml"]},"application/automationml-amlx+zip":{"source":"iana","compressible":false,"extensions":["amlx"]},"application/bacnet-xdd+zip":{"source":"iana","compressible":false},"application/batch-smtp":{"source":"iana"},"application/bdoc":{"compressible":false,"extensions":["bdoc"]},"application/beep+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/bufr":{"source":"iana"},"application/c2pa":{"source":"iana"},"application/calendar+json":{"source":"iana","compressible":true},"application/calendar+xml":{"source":"iana","compressible":true,"extensions":["xcs"]},"application/call-completion":{"source":"iana"},"application/cals-1840":{"source":"iana"},"application/captive+json":{"source":"iana","compressible":true},"application/cbor":{"source":"iana"},"application/cbor-seq":{"source":"iana"},"application/cccex":{"source":"iana"},"application/ccmp+xml":{"source":"iana","compressible":true},"application/ccxml+xml":{"source":"iana","compressible":true,"extensions":["ccxml"]},"application/cda+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/cdfx+xml":{"source":"iana","compressible":true,"extensions":["cdfx"]},"application/cdmi-capability":{"source":"iana","extensions":["cdmia"]},"application/cdmi-container":{"source":"iana","extensions":["cdmic"]},"application/cdmi-domain":{"source":"iana","extensions":["cdmid"]},"application/cdmi-object":{"source":"iana","extensions":["cdmio"]},"application/cdmi-queue":{"source":"iana","extensions":["cdmiq"]},"application/cdni":{"source":"iana"},"application/ce+cbor":{"source":"iana"},"application/cea":{"source":"iana"},"application/cea-2018+xml":{"source":"iana","compressible":true},"application/cellml+xml":{"source":"iana","compressible":true},"application/cfw":{"source":"iana"},"application/cid-edhoc+cbor-seq":{"source":"iana"},"application/city+json":{"source":"iana","compressible":true},"application/city+json-seq":{"source":"iana"},"application/clr":{"source":"iana"},"application/clue+xml":{"source":"iana","compressible":true},"application/clue_info+xml":{"source":"iana","compressible":true},"application/cms":{"source":"iana"},"application/cnrp+xml":{"source":"iana","compressible":true},"application/coap-eap":{"source":"iana"},"application/coap-group+json":{"source":"iana","compressible":true},"application/coap-payload":{"source":"iana"},"application/commonground":{"source":"iana"},"application/concise-problem-details+cbor":{"source":"iana"},"application/conference-info+xml":{"source":"iana","compressible":true},"application/cose":{"source":"iana"},"application/cose-key":{"source":"iana"},"application/cose-key-set":{"source":"iana"},"application/cose-x509":{"source":"iana"},"application/cpl+xml":{"source":"iana","compressible":true,"extensions":["cpl"]},"application/csrattrs":{"source":"iana"},"application/csta+xml":{"source":"iana","compressible":true},"application/cstadata+xml":{"source":"iana","compressible":true},"application/csvm+json":{"source":"iana","compressible":true},"application/cu-seeme":{"source":"apache","extensions":["cu"]},"application/cwl":{"source":"iana","extensions":["cwl"]},"application/cwl+json":{"source":"iana","compressible":true},"application/cwl+yaml":{"source":"iana"},"application/cwt":{"source":"iana"},"application/cybercash":{"source":"iana"},"application/dart":{"compressible":true},"application/dash+xml":{"source":"iana","compressible":true,"extensions":["mpd"]},"application/dash-patch+xml":{"source":"iana","compressible":true,"extensions":["mpp"]},"application/dashdelta":{"source":"iana"},"application/davmount+xml":{"source":"iana","compressible":true,"extensions":["davmount"]},"application/dca-rft":{"source":"iana"},"application/dcd":{"source":"iana"},"application/dec-dx":{"source":"iana"},"application/dialog-info+xml":{"source":"iana","compressible":true},"application/dicom":{"source":"iana","extensions":["dcm"]},"application/dicom+json":{"source":"iana","compressible":true},"application/dicom+xml":{"source":"iana","compressible":true},"application/dii":{"source":"iana"},"application/dit":{"source":"iana"},"application/dns":{"source":"iana"},"application/dns+json":{"source":"iana","compressible":true},"application/dns-message":{"source":"iana"},"application/docbook+xml":{"source":"apache","compressible":true,"extensions":["dbk"]},"application/dots+cbor":{"source":"iana"},"application/dpop+jwt":{"source":"iana"},"application/dskpp+xml":{"source":"iana","compressible":true},"application/dssc+der":{"source":"iana","extensions":["dssc"]},"application/dssc+xml":{"source":"iana","compressible":true,"extensions":["xdssc"]},"application/dvcs":{"source":"iana"},"application/eat+cwt":{"source":"iana"},"application/eat+jwt":{"source":"iana"},"application/eat-bun+cbor":{"source":"iana"},"application/eat-bun+json":{"source":"iana","compressible":true},"application/eat-ucs+cbor":{"source":"iana"},"application/eat-ucs+json":{"source":"iana","compressible":true},"application/ecmascript":{"source":"apache","compressible":true,"extensions":["ecma"]},"application/edhoc+cbor-seq":{"source":"iana"},"application/edi-consent":{"source":"iana"},"application/edi-x12":{"source":"iana","compressible":false},"application/edifact":{"source":"iana","compressible":false},"application/efi":{"source":"iana"},"application/elm+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/elm+xml":{"source":"iana","compressible":true},"application/emergencycalldata.cap+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/emergencycalldata.comment+xml":{"source":"iana","compressible":true},"application/emergencycalldata.control+xml":{"source":"iana","compressible":true},"application/emergencycalldata.deviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.ecall.msd":{"source":"iana"},"application/emergencycalldata.legacyesn+json":{"source":"iana","compressible":true},"application/emergencycalldata.providerinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.serviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.subscriberinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.veds+xml":{"source":"iana","compressible":true},"application/emma+xml":{"source":"iana","compressible":true,"extensions":["emma"]},"application/emotionml+xml":{"source":"iana","compressible":true,"extensions":["emotionml"]},"application/encaprtp":{"source":"iana"},"application/entity-statement+jwt":{"source":"iana"},"application/epp+xml":{"source":"iana","compressible":true},"application/epub+zip":{"source":"iana","compressible":false,"extensions":["epub"]},"application/eshop":{"source":"iana"},"application/exi":{"source":"iana","extensions":["exi"]},"application/expect-ct-report+json":{"source":"iana","compressible":true},"application/express":{"source":"iana","extensions":["exp"]},"application/fastinfoset":{"source":"iana"},"application/fastsoap":{"source":"iana"},"application/fdf":{"source":"iana","extensions":["fdf"]},"application/fdt+xml":{"source":"iana","compressible":true,"extensions":["fdt"]},"application/fhir+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/fhir+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/fido.trusted-apps+json":{"compressible":true},"application/fits":{"source":"iana"},"application/flexfec":{"source":"iana"},"application/font-sfnt":{"source":"iana"},"application/font-tdpfr":{"source":"iana","extensions":["pfr"]},"application/font-woff":{"source":"iana","compressible":false},"application/framework-attributes+xml":{"source":"iana","compressible":true},"application/geo+json":{"source":"iana","compressible":true,"extensions":["geojson"]},"application/geo+json-seq":{"source":"iana"},"application/geopackage+sqlite3":{"source":"iana"},"application/geopose+json":{"source":"iana","compressible":true},"application/geoxacml+json":{"source":"iana","compressible":true},"application/geoxacml+xml":{"source":"iana","compressible":true},"application/gltf-buffer":{"source":"iana"},"application/gml+xml":{"source":"iana","compressible":true,"extensions":["gml"]},"application/gnap-binding-jws":{"source":"iana"},"application/gnap-binding-jwsd":{"source":"iana"},"application/gnap-binding-rotation-jws":{"source":"iana"},"application/gnap-binding-rotation-jwsd":{"source":"iana"},"application/gpx+xml":{"source":"apache","compressible":true,"extensions":["gpx"]},"application/grib":{"source":"iana"},"application/gxf":{"source":"apache","extensions":["gxf"]},"application/gzip":{"source":"iana","compressible":false,"extensions":["gz"]},"application/h224":{"source":"iana"},"application/held+xml":{"source":"iana","compressible":true},"application/hjson":{"extensions":["hjson"]},"application/hl7v2+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/http":{"source":"iana"},"application/hyperstudio":{"source":"iana","extensions":["stk"]},"application/ibe-key-request+xml":{"source":"iana","compressible":true},"application/ibe-pkg-reply+xml":{"source":"iana","compressible":true},"application/ibe-pp-data":{"source":"iana"},"application/iges":{"source":"iana"},"application/im-iscomposing+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/index":{"source":"iana"},"application/index.cmd":{"source":"iana"},"application/index.obj":{"source":"iana"},"application/index.response":{"source":"iana"},"application/index.vnd":{"source":"iana"},"application/inkml+xml":{"source":"iana","compressible":true,"extensions":["ink","inkml"]},"application/iotp":{"source":"iana"},"application/ipfix":{"source":"iana","extensions":["ipfix"]},"application/ipp":{"source":"iana"},"application/isup":{"source":"iana"},"application/its+xml":{"source":"iana","compressible":true,"extensions":["its"]},"application/java-archive":{"source":"iana","compressible":false,"extensions":["jar","war","ear"]},"application/java-serialized-object":{"source":"apache","compressible":false,"extensions":["ser"]},"application/java-vm":{"source":"apache","compressible":false,"extensions":["class"]},"application/javascript":{"source":"apache","charset":"UTF-8","compressible":true,"extensions":["js"]},"application/jf2feed+json":{"source":"iana","compressible":true},"application/jose":{"source":"iana"},"application/jose+json":{"source":"iana","compressible":true},"application/jrd+json":{"source":"iana","compressible":true},"application/jscalendar+json":{"source":"iana","compressible":true},"application/jscontact+json":{"source":"iana","compressible":true},"application/json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["json","map"]},"application/json-patch+json":{"source":"iana","compressible":true},"application/json-seq":{"source":"iana"},"application/json5":{"extensions":["json5"]},"application/jsonml+json":{"source":"apache","compressible":true,"extensions":["jsonml"]},"application/jsonpath":{"source":"iana"},"application/jwk+json":{"source":"iana","compressible":true},"application/jwk-set+json":{"source":"iana","compressible":true},"application/jwk-set+jwt":{"source":"iana"},"application/jwt":{"source":"iana"},"application/kpml-request+xml":{"source":"iana","compressible":true},"application/kpml-response+xml":{"source":"iana","compressible":true},"application/ld+json":{"source":"iana","compressible":true,"extensions":["jsonld"]},"application/lgr+xml":{"source":"iana","compressible":true,"extensions":["lgr"]},"application/link-format":{"source":"iana"},"application/linkset":{"source":"iana"},"application/linkset+json":{"source":"iana","compressible":true},"application/load-control+xml":{"source":"iana","compressible":true},"application/logout+jwt":{"source":"iana"},"application/lost+xml":{"source":"iana","compressible":true,"extensions":["lostxml"]},"application/lostsync+xml":{"source":"iana","compressible":true},"application/lpf+zip":{"source":"iana","compressible":false},"application/lxf":{"source":"iana"},"application/mac-binhex40":{"source":"iana","extensions":["hqx"]},"application/mac-compactpro":{"source":"apache","extensions":["cpt"]},"application/macwriteii":{"source":"iana"},"application/mads+xml":{"source":"iana","compressible":true,"extensions":["mads"]},"application/manifest+json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["webmanifest"]},"application/marc":{"source":"iana","extensions":["mrc"]},"application/marcxml+xml":{"source":"iana","compressible":true,"extensions":["mrcx"]},"application/mathematica":{"source":"iana","extensions":["ma","nb","mb"]},"application/mathml+xml":{"source":"iana","compressible":true,"extensions":["mathml"]},"application/mathml-content+xml":{"source":"iana","compressible":true},"application/mathml-presentation+xml":{"source":"iana","compressible":true},"application/mbms-associated-procedure-description+xml":{"source":"iana","compressible":true},"application/mbms-deregister+xml":{"source":"iana","compressible":true},"application/mbms-envelope+xml":{"source":"iana","compressible":true},"application/mbms-msk+xml":{"source":"iana","compressible":true},"application/mbms-msk-response+xml":{"source":"iana","compressible":true},"application/mbms-protection-description+xml":{"source":"iana","compressible":true},"application/mbms-reception-report+xml":{"source":"iana","compressible":true},"application/mbms-register+xml":{"source":"iana","compressible":true},"application/mbms-register-response+xml":{"source":"iana","compressible":true},"application/mbms-schedule+xml":{"source":"iana","compressible":true},"application/mbms-user-service-description+xml":{"source":"iana","compressible":true},"application/mbox":{"source":"iana","extensions":["mbox"]},"application/media-policy-dataset+xml":{"source":"iana","compressible":true,"extensions":["mpf"]},"application/media_control+xml":{"source":"iana","compressible":true},"application/mediaservercontrol+xml":{"source":"iana","compressible":true,"extensions":["mscml"]},"application/merge-patch+json":{"source":"iana","compressible":true},"application/metalink+xml":{"source":"apache","compressible":true,"extensions":["metalink"]},"application/metalink4+xml":{"source":"iana","compressible":true,"extensions":["meta4"]},"application/mets+xml":{"source":"iana","compressible":true,"extensions":["mets"]},"application/mf4":{"source":"iana"},"application/mikey":{"source":"iana"},"application/mipc":{"source":"iana"},"application/missing-blocks+cbor-seq":{"source":"iana"},"application/mmt-aei+xml":{"source":"iana","compressible":true,"extensions":["maei"]},"application/mmt-usd+xml":{"source":"iana","compressible":true,"extensions":["musd"]},"application/mods+xml":{"source":"iana","compressible":true,"extensions":["mods"]},"application/moss-keys":{"source":"iana"},"application/moss-signature":{"source":"iana"},"application/mosskey-data":{"source":"iana"},"application/mosskey-request":{"source":"iana"},"application/mp21":{"source":"iana","extensions":["m21","mp21"]},"application/mp4":{"source":"iana","extensions":["mp4","mpg4","mp4s","m4p"]},"application/mpeg4-generic":{"source":"iana"},"application/mpeg4-iod":{"source":"iana"},"application/mpeg4-iod-xmt":{"source":"iana"},"application/mrb-consumer+xml":{"source":"iana","compressible":true},"application/mrb-publish+xml":{"source":"iana","compressible":true},"application/msc-ivr+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msc-mixer+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msix":{"compressible":false,"extensions":["msix"]},"application/msixbundle":{"compressible":false,"extensions":["msixbundle"]},"application/msword":{"source":"iana","compressible":false,"extensions":["doc","dot"]},"application/mud+json":{"source":"iana","compressible":true},"application/multipart-core":{"source":"iana"},"application/mxf":{"source":"iana","extensions":["mxf"]},"application/n-quads":{"source":"iana","extensions":["nq"]},"application/n-triples":{"source":"iana","extensions":["nt"]},"application/nasdata":{"source":"iana"},"application/news-checkgroups":{"source":"iana","charset":"US-ASCII"},"application/news-groupinfo":{"source":"iana","charset":"US-ASCII"},"application/news-transmission":{"source":"iana"},"application/nlsml+xml":{"source":"iana","compressible":true},"application/node":{"source":"iana","extensions":["cjs"]},"application/nss":{"source":"iana"},"application/oauth-authz-req+jwt":{"source":"iana"},"application/oblivious-dns-message":{"source":"iana"},"application/ocsp-request":{"source":"iana"},"application/ocsp-response":{"source":"iana"},"application/octet-stream":{"source":"iana","compressible":true,"extensions":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{"source":"iana","extensions":["oda"]},"application/odm+xml":{"source":"iana","compressible":true},"application/odx":{"source":"iana"},"application/oebps-package+xml":{"source":"iana","compressible":true,"extensions":["opf"]},"application/ogg":{"source":"iana","compressible":false,"extensions":["ogx"]},"application/ohttp-keys":{"source":"iana"},"application/omdoc+xml":{"source":"apache","compressible":true,"extensions":["omdoc"]},"application/onenote":{"source":"apache","extensions":["onetoc","onetoc2","onetmp","onepkg","one","onea"]},"application/opc-nodeset+xml":{"source":"iana","compressible":true},"application/oscore":{"source":"iana"},"application/oxps":{"source":"iana","extensions":["oxps"]},"application/p21":{"source":"iana"},"application/p21+zip":{"source":"iana","compressible":false},"application/p2p-overlay+xml":{"source":"iana","compressible":true,"extensions":["relo"]},"application/parityfec":{"source":"iana"},"application/passport":{"source":"iana"},"application/patch-ops-error+xml":{"source":"iana","compressible":true,"extensions":["xer"]},"application/pdf":{"source":"iana","compressible":false,"extensions":["pdf"]},"application/pdx":{"source":"iana"},"application/pem-certificate-chain":{"source":"iana"},"application/pgp-encrypted":{"source":"iana","compressible":false,"extensions":["pgp"]},"application/pgp-keys":{"source":"iana","extensions":["asc"]},"application/pgp-signature":{"source":"iana","extensions":["sig","asc"]},"application/pics-rules":{"source":"apache","extensions":["prf"]},"application/pidf+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pidf-diff+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pkcs10":{"source":"iana","extensions":["p10"]},"application/pkcs12":{"source":"iana"},"application/pkcs7-mime":{"source":"iana","extensions":["p7m","p7c"]},"application/pkcs7-signature":{"source":"iana","extensions":["p7s"]},"application/pkcs8":{"source":"iana","extensions":["p8"]},"application/pkcs8-encrypted":{"source":"iana"},"application/pkix-attr-cert":{"source":"iana","extensions":["ac"]},"application/pkix-cert":{"source":"iana","extensions":["cer"]},"application/pkix-crl":{"source":"iana","extensions":["crl"]},"application/pkix-pkipath":{"source":"iana","extensions":["pkipath"]},"application/pkixcmp":{"source":"iana","extensions":["pki"]},"application/pls+xml":{"source":"iana","compressible":true,"extensions":["pls"]},"application/poc-settings+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/postscript":{"source":"iana","compressible":true,"extensions":["ai","eps","ps"]},"application/ppsp-tracker+json":{"source":"iana","compressible":true},"application/private-token-issuer-directory":{"source":"iana"},"application/private-token-request":{"source":"iana"},"application/private-token-response":{"source":"iana"},"application/problem+json":{"source":"iana","compressible":true},"application/problem+xml":{"source":"iana","compressible":true},"application/provenance+xml":{"source":"iana","compressible":true,"extensions":["provx"]},"application/provided-claims+jwt":{"source":"iana"},"application/prs.alvestrand.titrax-sheet":{"source":"iana"},"application/prs.cww":{"source":"iana","extensions":["cww"]},"application/prs.cyn":{"source":"iana","charset":"7-BIT"},"application/prs.hpub+zip":{"source":"iana","compressible":false},"application/prs.implied-document+xml":{"source":"iana","compressible":true},"application/prs.implied-executable":{"source":"iana"},"application/prs.implied-object+json":{"source":"iana","compressible":true},"application/prs.implied-object+json-seq":{"source":"iana"},"application/prs.implied-object+yaml":{"source":"iana"},"application/prs.implied-structure":{"source":"iana"},"application/prs.mayfile":{"source":"iana"},"application/prs.nprend":{"source":"iana"},"application/prs.plucker":{"source":"iana"},"application/prs.rdf-xml-crypt":{"source":"iana"},"application/prs.vcfbzip2":{"source":"iana"},"application/prs.xsf+xml":{"source":"iana","compressible":true,"extensions":["xsf"]},"application/pskc+xml":{"source":"iana","compressible":true,"extensions":["pskcxml"]},"application/pvd+json":{"source":"iana","compressible":true},"application/qsig":{"source":"iana"},"application/raml+yaml":{"compressible":true,"extensions":["raml"]},"application/raptorfec":{"source":"iana"},"application/rdap+json":{"source":"iana","compressible":true},"application/rdf+xml":{"source":"iana","compressible":true,"extensions":["rdf","owl"]},"application/reginfo+xml":{"source":"iana","compressible":true,"extensions":["rif"]},"application/relax-ng-compact-syntax":{"source":"iana","extensions":["rnc"]},"application/remote-printing":{"source":"apache"},"application/reputon+json":{"source":"iana","compressible":true},"application/resolve-response+jwt":{"source":"iana"},"application/resource-lists+xml":{"source":"iana","compressible":true,"extensions":["rl"]},"application/resource-lists-diff+xml":{"source":"iana","compressible":true,"extensions":["rld"]},"application/rfc+xml":{"source":"iana","compressible":true},"application/riscos":{"source":"iana"},"application/rlmi+xml":{"source":"iana","compressible":true},"application/rls-services+xml":{"source":"iana","compressible":true,"extensions":["rs"]},"application/route-apd+xml":{"source":"iana","compressible":true,"extensions":["rapd"]},"application/route-s-tsid+xml":{"source":"iana","compressible":true,"extensions":["sls"]},"application/route-usd+xml":{"source":"iana","compressible":true,"extensions":["rusd"]},"application/rpki-checklist":{"source":"iana"},"application/rpki-ghostbusters":{"source":"iana","extensions":["gbr"]},"application/rpki-manifest":{"source":"iana","extensions":["mft"]},"application/rpki-publication":{"source":"iana"},"application/rpki-roa":{"source":"iana","extensions":["roa"]},"application/rpki-signed-tal":{"source":"iana"},"application/rpki-updown":{"source":"iana"},"application/rsd+xml":{"source":"apache","compressible":true,"extensions":["rsd"]},"application/rss+xml":{"source":"apache","compressible":true,"extensions":["rss"]},"application/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"application/rtploopback":{"source":"iana"},"application/rtx":{"source":"iana"},"application/samlassertion+xml":{"source":"iana","compressible":true},"application/samlmetadata+xml":{"source":"iana","compressible":true},"application/sarif+json":{"source":"iana","compressible":true},"application/sarif-external-properties+json":{"source":"iana","compressible":true},"application/sbe":{"source":"iana"},"application/sbml+xml":{"source":"iana","compressible":true,"extensions":["sbml"]},"application/scaip+xml":{"source":"iana","compressible":true},"application/scim+json":{"source":"iana","compressible":true},"application/scvp-cv-request":{"source":"iana","extensions":["scq"]},"application/scvp-cv-response":{"source":"iana","extensions":["scs"]},"application/scvp-vp-request":{"source":"iana","extensions":["spq"]},"application/scvp-vp-response":{"source":"iana","extensions":["spp"]},"application/sdp":{"source":"iana","extensions":["sdp"]},"application/secevent+jwt":{"source":"iana"},"application/senml+cbor":{"source":"iana"},"application/senml+json":{"source":"iana","compressible":true},"application/senml+xml":{"source":"iana","compressible":true,"extensions":["senmlx"]},"application/senml-etch+cbor":{"source":"iana"},"application/senml-etch+json":{"source":"iana","compressible":true},"application/senml-exi":{"source":"iana"},"application/sensml+cbor":{"source":"iana"},"application/sensml+json":{"source":"iana","compressible":true},"application/sensml+xml":{"source":"iana","compressible":true,"extensions":["sensmlx"]},"application/sensml-exi":{"source":"iana"},"application/sep+xml":{"source":"iana","compressible":true},"application/sep-exi":{"source":"iana"},"application/session-info":{"source":"iana"},"application/set-payment":{"source":"iana"},"application/set-payment-initiation":{"source":"iana","extensions":["setpay"]},"application/set-registration":{"source":"iana"},"application/set-registration-initiation":{"source":"iana","extensions":["setreg"]},"application/sgml":{"source":"iana"},"application/sgml-open-catalog":{"source":"iana"},"application/shf+xml":{"source":"iana","compressible":true,"extensions":["shf"]},"application/sieve":{"source":"iana","extensions":["siv","sieve"]},"application/simple-filter+xml":{"source":"iana","compressible":true},"application/simple-message-summary":{"source":"iana"},"application/simplesymbolcontainer":{"source":"iana"},"application/sipc":{"source":"iana"},"application/slate":{"source":"iana"},"application/smil":{"source":"apache"},"application/smil+xml":{"source":"iana","compressible":true,"extensions":["smi","smil"]},"application/smpte336m":{"source":"iana"},"application/soap+fastinfoset":{"source":"iana"},"application/soap+xml":{"source":"iana","compressible":true},"application/sparql-query":{"source":"iana","extensions":["rq"]},"application/sparql-results+xml":{"source":"iana","compressible":true,"extensions":["srx"]},"application/spdx+json":{"source":"iana","compressible":true},"application/spirits-event+xml":{"source":"iana","compressible":true},"application/sql":{"source":"iana","extensions":["sql"]},"application/srgs":{"source":"iana","extensions":["gram"]},"application/srgs+xml":{"source":"iana","compressible":true,"extensions":["grxml"]},"application/sru+xml":{"source":"iana","compressible":true,"extensions":["sru"]},"application/ssdl+xml":{"source":"apache","compressible":true,"extensions":["ssdl"]},"application/sslkeylogfile":{"source":"iana"},"application/ssml+xml":{"source":"iana","compressible":true,"extensions":["ssml"]},"application/st2110-41":{"source":"iana"},"application/stix+json":{"source":"iana","compressible":true},"application/stratum":{"source":"iana"},"application/swid+cbor":{"source":"iana"},"application/swid+xml":{"source":"iana","compressible":true,"extensions":["swidtag"]},"application/tamp-apex-update":{"source":"iana"},"application/tamp-apex-update-confirm":{"source":"iana"},"application/tamp-community-update":{"source":"iana"},"application/tamp-community-update-confirm":{"source":"iana"},"application/tamp-error":{"source":"iana"},"application/tamp-sequence-adjust":{"source":"iana"},"application/tamp-sequence-adjust-confirm":{"source":"iana"},"application/tamp-status-query":{"source":"iana"},"application/tamp-status-response":{"source":"iana"},"application/tamp-update":{"source":"iana"},"application/tamp-update-confirm":{"source":"iana"},"application/tar":{"compressible":true},"application/taxii+json":{"source":"iana","compressible":true},"application/td+json":{"source":"iana","compressible":true},"application/tei+xml":{"source":"iana","compressible":true,"extensions":["tei","teicorpus"]},"application/tetra_isi":{"source":"iana"},"application/thraud+xml":{"source":"iana","compressible":true,"extensions":["tfi"]},"application/timestamp-query":{"source":"iana"},"application/timestamp-reply":{"source":"iana"},"application/timestamped-data":{"source":"iana","extensions":["tsd"]},"application/tlsrpt+gzip":{"source":"iana"},"application/tlsrpt+json":{"source":"iana","compressible":true},"application/tm+json":{"source":"iana","compressible":true},"application/tnauthlist":{"source":"iana"},"application/toc+cbor":{"source":"iana"},"application/token-introspection+jwt":{"source":"iana"},"application/toml":{"source":"iana","compressible":true,"extensions":["toml"]},"application/trickle-ice-sdpfrag":{"source":"iana"},"application/trig":{"source":"iana","extensions":["trig"]},"application/trust-chain+json":{"source":"iana","compressible":true},"application/trust-mark+jwt":{"source":"iana"},"application/trust-mark-delegation+jwt":{"source":"iana"},"application/ttml+xml":{"source":"iana","compressible":true,"extensions":["ttml"]},"application/tve-trigger":{"source":"iana"},"application/tzif":{"source":"iana"},"application/tzif-leap":{"source":"iana"},"application/ubjson":{"compressible":false,"extensions":["ubj"]},"application/uccs+cbor":{"source":"iana"},"application/ujcs+json":{"source":"iana","compressible":true},"application/ulpfec":{"source":"iana"},"application/urc-grpsheet+xml":{"source":"iana","compressible":true},"application/urc-ressheet+xml":{"source":"iana","compressible":true,"extensions":["rsheet"]},"application/urc-targetdesc+xml":{"source":"iana","compressible":true,"extensions":["td"]},"application/urc-uisocketdesc+xml":{"source":"iana","compressible":true},"application/vc":{"source":"iana"},"application/vc+cose":{"source":"iana"},"application/vc+jwt":{"source":"iana"},"application/vcard+json":{"source":"iana","compressible":true},"application/vcard+xml":{"source":"iana","compressible":true},"application/vemmi":{"source":"iana"},"application/vividence.scriptfile":{"source":"apache"},"application/vnd.1000minds.decision-model+xml":{"source":"iana","compressible":true,"extensions":["1km"]},"application/vnd.1ob":{"source":"iana"},"application/vnd.3gpp-prose+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3a+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3ach+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3ch+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc8+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-v2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.5gnas":{"source":"iana"},"application/vnd.3gpp.5gsa2x":{"source":"iana"},"application/vnd.3gpp.5gsa2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.5gsv2x":{"source":"iana"},"application/vnd.3gpp.5gsv2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.access-transfer-events+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.bsf+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.crs+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.current-location-discovery+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gmop+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gtpc":{"source":"iana"},"application/vnd.3gpp.interworking-data":{"source":"iana"},"application/vnd.3gpp.lpp":{"source":"iana"},"application/vnd.3gpp.mc-signalling-ear":{"source":"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-msgstore-ctrl-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-payload":{"source":"iana"},"application/vnd.3gpp.mcdata-regroup+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-signalling":{"source":"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-floor-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-regroup+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-signed+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-init-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-regroup+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-transmission-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mid-call+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ngap":{"source":"iana"},"application/vnd.3gpp.pfcp":{"source":"iana"},"application/vnd.3gpp.pic-bw-large":{"source":"iana","extensions":["plb"]},"application/vnd.3gpp.pic-bw-small":{"source":"iana","extensions":["psb"]},"application/vnd.3gpp.pic-bw-var":{"source":"iana","extensions":["pvb"]},"application/vnd.3gpp.pinapp-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.s1ap":{"source":"iana"},"application/vnd.3gpp.seal-group-doc+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-network-qos-management-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-ue-config-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-unicast-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-user-profile-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.sms":{"source":"iana"},"application/vnd.3gpp.sms+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-ext+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.state-and-event-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ussd+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.v2x":{"source":"iana"},"application/vnd.3gpp.vae-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.bcmcsinfo+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.sms":{"source":"iana"},"application/vnd.3gpp2.tcap":{"source":"iana","extensions":["tcap"]},"application/vnd.3lightssoftware.imagescal":{"source":"iana"},"application/vnd.3m.post-it-notes":{"source":"iana","extensions":["pwn"]},"application/vnd.accpac.simply.aso":{"source":"iana","extensions":["aso"]},"application/vnd.accpac.simply.imp":{"source":"iana","extensions":["imp"]},"application/vnd.acm.addressxfer+json":{"source":"iana","compressible":true},"application/vnd.acm.chatbot+json":{"source":"iana","compressible":true},"application/vnd.acucobol":{"source":"iana","extensions":["acu"]},"application/vnd.acucorp":{"source":"iana","extensions":["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{"source":"apache","compressible":false,"extensions":["air"]},"application/vnd.adobe.flash.movie":{"source":"iana"},"application/vnd.adobe.formscentral.fcdt":{"source":"iana","extensions":["fcdt"]},"application/vnd.adobe.fxp":{"source":"iana","extensions":["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{"source":"iana"},"application/vnd.adobe.xdp+xml":{"source":"iana","compressible":true,"extensions":["xdp"]},"application/vnd.adobe.xfdf":{"source":"apache","extensions":["xfdf"]},"application/vnd.aether.imp":{"source":"iana"},"application/vnd.afpc.afplinedata":{"source":"iana"},"application/vnd.afpc.afplinedata-pagedef":{"source":"iana"},"application/vnd.afpc.cmoca-cmresource":{"source":"iana"},"application/vnd.afpc.foca-charset":{"source":"iana"},"application/vnd.afpc.foca-codedfont":{"source":"iana"},"application/vnd.afpc.foca-codepage":{"source":"iana"},"application/vnd.afpc.modca":{"source":"iana"},"application/vnd.afpc.modca-cmtable":{"source":"iana"},"application/vnd.afpc.modca-formdef":{"source":"iana"},"application/vnd.afpc.modca-mediummap":{"source":"iana"},"application/vnd.afpc.modca-objectcontainer":{"source":"iana"},"application/vnd.afpc.modca-overlay":{"source":"iana"},"application/vnd.afpc.modca-pagesegment":{"source":"iana"},"application/vnd.age":{"source":"iana","extensions":["age"]},"application/vnd.ah-barcode":{"source":"apache"},"application/vnd.ahead.space":{"source":"iana","extensions":["ahead"]},"application/vnd.airzip.filesecure.azf":{"source":"iana","extensions":["azf"]},"application/vnd.airzip.filesecure.azs":{"source":"iana","extensions":["azs"]},"application/vnd.amadeus+json":{"source":"iana","compressible":true},"application/vnd.amazon.ebook":{"source":"apache","extensions":["azw"]},"application/vnd.amazon.mobi8-ebook":{"source":"iana"},"application/vnd.americandynamics.acc":{"source":"iana","extensions":["acc"]},"application/vnd.amiga.ami":{"source":"iana","extensions":["ami"]},"application/vnd.amundsen.maze+xml":{"source":"iana","compressible":true},"application/vnd.android.ota":{"source":"iana"},"application/vnd.android.package-archive":{"source":"apache","compressible":false,"extensions":["apk"]},"application/vnd.anki":{"source":"iana"},"application/vnd.anser-web-certificate-issue-initiation":{"source":"iana","extensions":["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{"source":"apache","extensions":["fti"]},"application/vnd.antix.game-component":{"source":"iana","extensions":["atx"]},"application/vnd.apache.arrow.file":{"source":"iana"},"application/vnd.apache.arrow.stream":{"source":"iana"},"application/vnd.apache.parquet":{"source":"iana"},"application/vnd.apache.thrift.binary":{"source":"iana"},"application/vnd.apache.thrift.compact":{"source":"iana"},"application/vnd.apache.thrift.json":{"source":"iana"},"application/vnd.apexlang":{"source":"iana"},"application/vnd.api+json":{"source":"iana","compressible":true},"application/vnd.aplextor.warrp+json":{"source":"iana","compressible":true},"application/vnd.apothekende.reservation+json":{"source":"iana","compressible":true},"application/vnd.apple.installer+xml":{"source":"iana","compressible":true,"extensions":["mpkg"]},"application/vnd.apple.keynote":{"source":"iana","extensions":["key"]},"application/vnd.apple.mpegurl":{"source":"iana","extensions":["m3u8"]},"application/vnd.apple.numbers":{"source":"iana","extensions":["numbers"]},"application/vnd.apple.pages":{"source":"iana","extensions":["pages"]},"application/vnd.apple.pkpass":{"compressible":false,"extensions":["pkpass"]},"application/vnd.arastra.swi":{"source":"apache"},"application/vnd.aristanetworks.swi":{"source":"iana","extensions":["swi"]},"application/vnd.artisan+json":{"source":"iana","compressible":true},"application/vnd.artsquare":{"source":"iana"},"application/vnd.astraea-software.iota":{"source":"iana","extensions":["iota"]},"application/vnd.audiograph":{"source":"iana","extensions":["aep"]},"application/vnd.autodesk.fbx":{"extensions":["fbx"]},"application/vnd.autopackage":{"source":"iana"},"application/vnd.avalon+json":{"source":"iana","compressible":true},"application/vnd.avistar+xml":{"source":"iana","compressible":true},"application/vnd.balsamiq.bmml+xml":{"source":"iana","compressible":true,"extensions":["bmml"]},"application/vnd.balsamiq.bmpr":{"source":"iana"},"application/vnd.banana-accounting":{"source":"iana"},"application/vnd.bbf.usp.error":{"source":"iana"},"application/vnd.bbf.usp.msg":{"source":"iana"},"application/vnd.bbf.usp.msg+json":{"source":"iana","compressible":true},"application/vnd.bekitzur-stech+json":{"source":"iana","compressible":true},"application/vnd.belightsoft.lhzd+zip":{"source":"iana","compressible":false},"application/vnd.belightsoft.lhzl+zip":{"source":"iana","compressible":false},"application/vnd.bint.med-content":{"source":"iana"},"application/vnd.biopax.rdf+xml":{"source":"iana","compressible":true},"application/vnd.blink-idb-value-wrapper":{"source":"iana"},"application/vnd.blueice.multipass":{"source":"iana","extensions":["mpm"]},"application/vnd.bluetooth.ep.oob":{"source":"iana"},"application/vnd.bluetooth.le.oob":{"source":"iana"},"application/vnd.bmi":{"source":"iana","extensions":["bmi"]},"application/vnd.bpf":{"source":"iana"},"application/vnd.bpf3":{"source":"iana"},"application/vnd.businessobjects":{"source":"iana","extensions":["rep"]},"application/vnd.byu.uapi+json":{"source":"iana","compressible":true},"application/vnd.bzip3":{"source":"iana"},"application/vnd.c3voc.schedule+xml":{"source":"iana","compressible":true},"application/vnd.cab-jscript":{"source":"iana"},"application/vnd.canon-cpdl":{"source":"iana"},"application/vnd.canon-lips":{"source":"iana"},"application/vnd.capasystems-pg+json":{"source":"iana","compressible":true},"application/vnd.cendio.thinlinc.clientconf":{"source":"iana"},"application/vnd.century-systems.tcp_stream":{"source":"iana"},"application/vnd.chemdraw+xml":{"source":"iana","compressible":true,"extensions":["cdxml"]},"application/vnd.chess-pgn":{"source":"iana"},"application/vnd.chipnuts.karaoke-mmd":{"source":"iana","extensions":["mmd"]},"application/vnd.ciedi":{"source":"iana"},"application/vnd.cinderella":{"source":"iana","extensions":["cdy"]},"application/vnd.cirpack.isdn-ext":{"source":"iana"},"application/vnd.citationstyles.style+xml":{"source":"iana","compressible":true,"extensions":["csl"]},"application/vnd.claymore":{"source":"iana","extensions":["cla"]},"application/vnd.cloanto.rp9":{"source":"iana","extensions":["rp9"]},"application/vnd.clonk.c4group":{"source":"iana","extensions":["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{"source":"iana","extensions":["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{"source":"iana","extensions":["c11amz"]},"application/vnd.cncf.helm.chart.content.v1.tar+gzip":{"source":"iana"},"application/vnd.cncf.helm.chart.provenance.v1.prov":{"source":"iana"},"application/vnd.cncf.helm.config.v1+json":{"source":"iana","compressible":true},"application/vnd.coffeescript":{"source":"iana"},"application/vnd.collabio.xodocuments.document":{"source":"iana"},"application/vnd.collabio.xodocuments.document-template":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation-template":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{"source":"iana"},"application/vnd.collection+json":{"source":"iana","compressible":true},"application/vnd.collection.doc+json":{"source":"iana","compressible":true},"application/vnd.collection.next+json":{"source":"iana","compressible":true},"application/vnd.comicbook+zip":{"source":"iana","compressible":false},"application/vnd.comicbook-rar":{"source":"iana"},"application/vnd.commerce-battelle":{"source":"iana"},"application/vnd.commonspace":{"source":"iana","extensions":["csp"]},"application/vnd.contact.cmsg":{"source":"iana","extensions":["cdbcmsg"]},"application/vnd.coreos.ignition+json":{"source":"iana","compressible":true},"application/vnd.cosmocaller":{"source":"iana","extensions":["cmc"]},"application/vnd.crick.clicker":{"source":"iana","extensions":["clkx"]},"application/vnd.crick.clicker.keyboard":{"source":"iana","extensions":["clkk"]},"application/vnd.crick.clicker.palette":{"source":"iana","extensions":["clkp"]},"application/vnd.crick.clicker.template":{"source":"iana","extensions":["clkt"]},"application/vnd.crick.clicker.wordbank":{"source":"iana","extensions":["clkw"]},"application/vnd.criticaltools.wbs+xml":{"source":"iana","compressible":true,"extensions":["wbs"]},"application/vnd.cryptii.pipe+json":{"source":"iana","compressible":true},"application/vnd.crypto-shade-file":{"source":"iana"},"application/vnd.cryptomator.encrypted":{"source":"iana"},"application/vnd.cryptomator.vault":{"source":"iana"},"application/vnd.ctc-posml":{"source":"iana","extensions":["pml"]},"application/vnd.ctct.ws+xml":{"source":"iana","compressible":true},"application/vnd.cups-pdf":{"source":"iana"},"application/vnd.cups-postscript":{"source":"iana"},"application/vnd.cups-ppd":{"source":"iana","extensions":["ppd"]},"application/vnd.cups-raster":{"source":"iana"},"application/vnd.cups-raw":{"source":"iana"},"application/vnd.curl":{"source":"iana"},"application/vnd.curl.car":{"source":"apache","extensions":["car"]},"application/vnd.curl.pcurl":{"source":"apache","extensions":["pcurl"]},"application/vnd.cyan.dean.root+xml":{"source":"iana","compressible":true},"application/vnd.cybank":{"source":"iana"},"application/vnd.cyclonedx+json":{"source":"iana","compressible":true},"application/vnd.cyclonedx+xml":{"source":"iana","compressible":true},"application/vnd.d2l.coursepackage1p0+zip":{"source":"iana","compressible":false},"application/vnd.d3m-dataset":{"source":"iana"},"application/vnd.d3m-problem":{"source":"iana"},"application/vnd.dart":{"source":"iana","compressible":true,"extensions":["dart"]},"application/vnd.data-vision.rdz":{"source":"iana","extensions":["rdz"]},"application/vnd.datalog":{"source":"iana"},"application/vnd.datapackage+json":{"source":"iana","compressible":true},"application/vnd.dataresource+json":{"source":"iana","compressible":true},"application/vnd.dbf":{"source":"iana","extensions":["dbf"]},"application/vnd.dcmp+xml":{"source":"iana","compressible":true,"extensions":["dcmp"]},"application/vnd.debian.binary-package":{"source":"iana"},"application/vnd.dece.data":{"source":"iana","extensions":["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{"source":"iana","compressible":true,"extensions":["uvt","uvvt"]},"application/vnd.dece.unspecified":{"source":"iana","extensions":["uvx","uvvx"]},"application/vnd.dece.zip":{"source":"iana","extensions":["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{"source":"iana","extensions":["fe_launch"]},"application/vnd.desmume.movie":{"source":"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{"source":"iana"},"application/vnd.dm.delegation+xml":{"source":"iana","compressible":true},"application/vnd.dna":{"source":"iana","extensions":["dna"]},"application/vnd.document+json":{"source":"iana","compressible":true},"application/vnd.dolby.mlp":{"source":"apache","extensions":["mlp"]},"application/vnd.dolby.mobile.1":{"source":"iana"},"application/vnd.dolby.mobile.2":{"source":"iana"},"application/vnd.doremir.scorecloud-binary-document":{"source":"iana"},"application/vnd.dpgraph":{"source":"iana","extensions":["dpg"]},"application/vnd.dreamfactory":{"source":"iana","extensions":["dfac"]},"application/vnd.drive+json":{"source":"iana","compressible":true},"application/vnd.ds-keypoint":{"source":"apache","extensions":["kpxx"]},"application/vnd.dtg.local":{"source":"iana"},"application/vnd.dtg.local.flash":{"source":"iana"},"application/vnd.dtg.local.html":{"source":"iana"},"application/vnd.dvb.ait":{"source":"iana","extensions":["ait"]},"application/vnd.dvb.dvbisl+xml":{"source":"iana","compressible":true},"application/vnd.dvb.dvbj":{"source":"iana"},"application/vnd.dvb.esgcontainer":{"source":"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess2":{"source":"iana"},"application/vnd.dvb.ipdcesgpdd":{"source":"iana"},"application/vnd.dvb.ipdcroaming":{"source":"iana"},"application/vnd.dvb.iptv.alfec-base":{"source":"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{"source":"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-container+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-generic+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-msglist+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-request+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-response+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-init+xml":{"source":"iana","compressible":true},"application/vnd.dvb.pfr":{"source":"iana"},"application/vnd.dvb.service":{"source":"iana","extensions":["svc"]},"application/vnd.dxr":{"source":"iana"},"application/vnd.dynageo":{"source":"iana","extensions":["geo"]},"application/vnd.dzr":{"source":"iana"},"application/vnd.easykaraoke.cdgdownload":{"source":"iana"},"application/vnd.ecdis-update":{"source":"iana"},"application/vnd.ecip.rlp":{"source":"iana"},"application/vnd.eclipse.ditto+json":{"source":"iana","compressible":true},"application/vnd.ecowin.chart":{"source":"iana","extensions":["mag"]},"application/vnd.ecowin.filerequest":{"source":"iana"},"application/vnd.ecowin.fileupdate":{"source":"iana"},"application/vnd.ecowin.series":{"source":"iana"},"application/vnd.ecowin.seriesrequest":{"source":"iana"},"application/vnd.ecowin.seriesupdate":{"source":"iana"},"application/vnd.efi.img":{"source":"iana"},"application/vnd.efi.iso":{"source":"iana"},"application/vnd.eln+zip":{"source":"iana","compressible":false},"application/vnd.emclient.accessrequest+xml":{"source":"iana","compressible":true},"application/vnd.enliven":{"source":"iana","extensions":["nml"]},"application/vnd.enphase.envoy":{"source":"iana"},"application/vnd.eprints.data+xml":{"source":"iana","compressible":true},"application/vnd.epson.esf":{"source":"iana","extensions":["esf"]},"application/vnd.epson.msf":{"source":"iana","extensions":["msf"]},"application/vnd.epson.quickanime":{"source":"iana","extensions":["qam"]},"application/vnd.epson.salt":{"source":"iana","extensions":["slt"]},"application/vnd.epson.ssf":{"source":"iana","extensions":["ssf"]},"application/vnd.ericsson.quickcall":{"source":"iana"},"application/vnd.erofs":{"source":"iana"},"application/vnd.espass-espass+zip":{"source":"iana","compressible":false},"application/vnd.eszigno3+xml":{"source":"iana","compressible":true,"extensions":["es3","et3"]},"application/vnd.etsi.aoc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.asic-e+zip":{"source":"iana","compressible":false},"application/vnd.etsi.asic-s+zip":{"source":"iana","compressible":false},"application/vnd.etsi.cug+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvcommand+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-bc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-cod+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-npvr+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvservice+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsync+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvueprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mcid+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mheg5":{"source":"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{"source":"iana","compressible":true},"application/vnd.etsi.pstn+xml":{"source":"iana","compressible":true},"application/vnd.etsi.sci+xml":{"source":"iana","compressible":true},"application/vnd.etsi.simservs+xml":{"source":"iana","compressible":true},"application/vnd.etsi.timestamp-token":{"source":"iana"},"application/vnd.etsi.tsl+xml":{"source":"iana","compressible":true},"application/vnd.etsi.tsl.der":{"source":"iana"},"application/vnd.eu.kasparian.car+json":{"source":"iana","compressible":true},"application/vnd.eudora.data":{"source":"iana"},"application/vnd.evolv.ecig.profile":{"source":"iana"},"application/vnd.evolv.ecig.settings":{"source":"iana"},"application/vnd.evolv.ecig.theme":{"source":"iana"},"application/vnd.exstream-empower+zip":{"source":"iana","compressible":false},"application/vnd.exstream-package":{"source":"iana"},"application/vnd.ezpix-album":{"source":"iana","extensions":["ez2"]},"application/vnd.ezpix-package":{"source":"iana","extensions":["ez3"]},"application/vnd.f-secure.mobile":{"source":"iana"},"application/vnd.familysearch.gedcom+zip":{"source":"iana","compressible":false},"application/vnd.fastcopy-disk-image":{"source":"iana"},"application/vnd.fdf":{"source":"apache","extensions":["fdf"]},"application/vnd.fdsn.mseed":{"source":"iana","extensions":["mseed"]},"application/vnd.fdsn.seed":{"source":"iana","extensions":["seed","dataless"]},"application/vnd.fdsn.stationxml+xml":{"source":"iana","charset":"XML-BASED","compressible":true},"application/vnd.ffsns":{"source":"iana"},"application/vnd.ficlab.flb+zip":{"source":"iana","compressible":false},"application/vnd.filmit.zfc":{"source":"iana"},"application/vnd.fints":{"source":"iana"},"application/vnd.firemonkeys.cloudcell":{"source":"iana"},"application/vnd.flographit":{"source":"iana","extensions":["gph"]},"application/vnd.fluxtime.clip":{"source":"iana","extensions":["ftc"]},"application/vnd.font-fontforge-sfd":{"source":"iana"},"application/vnd.framemaker":{"source":"iana","extensions":["fm","frame","maker","book"]},"application/vnd.freelog.comic":{"source":"iana"},"application/vnd.frogans.fnc":{"source":"apache","extensions":["fnc"]},"application/vnd.frogans.ltf":{"source":"apache","extensions":["ltf"]},"application/vnd.fsc.weblaunch":{"source":"iana","extensions":["fsc"]},"application/vnd.fujifilm.fb.docuworks":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.container":{"source":"iana"},"application/vnd.fujifilm.fb.jfi+xml":{"source":"iana","compressible":true},"application/vnd.fujitsu.oasys":{"source":"iana","extensions":["oas"]},"application/vnd.fujitsu.oasys2":{"source":"iana","extensions":["oa2"]},"application/vnd.fujitsu.oasys3":{"source":"iana","extensions":["oa3"]},"application/vnd.fujitsu.oasysgp":{"source":"iana","extensions":["fg5"]},"application/vnd.fujitsu.oasysprs":{"source":"iana","extensions":["bh2"]},"application/vnd.fujixerox.art-ex":{"source":"iana"},"application/vnd.fujixerox.art4":{"source":"iana"},"application/vnd.fujixerox.ddd":{"source":"iana","extensions":["ddd"]},"application/vnd.fujixerox.docuworks":{"source":"iana","extensions":["xdw"]},"application/vnd.fujixerox.docuworks.binder":{"source":"iana","extensions":["xbd"]},"application/vnd.fujixerox.docuworks.container":{"source":"iana"},"application/vnd.fujixerox.hbpl":{"source":"iana"},"application/vnd.fut-misnet":{"source":"iana"},"application/vnd.futoin+cbor":{"source":"iana"},"application/vnd.futoin+json":{"source":"iana","compressible":true},"application/vnd.fuzzysheet":{"source":"iana","extensions":["fzs"]},"application/vnd.ga4gh.passport+jwt":{"source":"iana"},"application/vnd.genomatix.tuxedo":{"source":"iana","extensions":["txd"]},"application/vnd.genozip":{"source":"iana"},"application/vnd.gentics.grd+json":{"source":"iana","compressible":true},"application/vnd.gentoo.catmetadata+xml":{"source":"iana","compressible":true},"application/vnd.gentoo.ebuild":{"source":"iana"},"application/vnd.gentoo.eclass":{"source":"iana"},"application/vnd.gentoo.gpkg":{"source":"iana"},"application/vnd.gentoo.manifest":{"source":"iana"},"application/vnd.gentoo.pkgmetadata+xml":{"source":"iana","compressible":true},"application/vnd.gentoo.xpak":{"source":"iana"},"application/vnd.geo+json":{"source":"apache","compressible":true},"application/vnd.geocube+xml":{"source":"apache","compressible":true},"application/vnd.geogebra.file":{"source":"iana","extensions":["ggb"]},"application/vnd.geogebra.pinboard":{"source":"iana"},"application/vnd.geogebra.slides":{"source":"iana","extensions":["ggs"]},"application/vnd.geogebra.tool":{"source":"iana","extensions":["ggt"]},"application/vnd.geometry-explorer":{"source":"iana","extensions":["gex","gre"]},"application/vnd.geonext":{"source":"iana","extensions":["gxt"]},"application/vnd.geoplan":{"source":"iana","extensions":["g2w"]},"application/vnd.geospace":{"source":"iana","extensions":["g3w"]},"application/vnd.gerber":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt-response":{"source":"iana"},"application/vnd.gmx":{"source":"iana","extensions":["gmx"]},"application/vnd.gnu.taler.exchange+json":{"source":"iana","compressible":true},"application/vnd.gnu.taler.merchant+json":{"source":"iana","compressible":true},"application/vnd.google-apps.audio":{},"application/vnd.google-apps.document":{"compressible":false,"extensions":["gdoc"]},"application/vnd.google-apps.drawing":{"compressible":false,"extensions":["gdraw"]},"application/vnd.google-apps.drive-sdk":{"compressible":false},"application/vnd.google-apps.file":{},"application/vnd.google-apps.folder":{"compressible":false},"application/vnd.google-apps.form":{"compressible":false,"extensions":["gform"]},"application/vnd.google-apps.fusiontable":{},"application/vnd.google-apps.jam":{"compressible":false,"extensions":["gjam"]},"application/vnd.google-apps.mail-layout":{},"application/vnd.google-apps.map":{"compressible":false,"extensions":["gmap"]},"application/vnd.google-apps.photo":{},"application/vnd.google-apps.presentation":{"compressible":false,"extensions":["gslides"]},"application/vnd.google-apps.script":{"compressible":false,"extensions":["gscript"]},"application/vnd.google-apps.shortcut":{},"application/vnd.google-apps.site":{"compressible":false,"extensions":["gsite"]},"application/vnd.google-apps.spreadsheet":{"compressible":false,"extensions":["gsheet"]},"application/vnd.google-apps.unknown":{},"application/vnd.google-apps.video":{},"application/vnd.google-earth.kml+xml":{"source":"iana","compressible":true,"extensions":["kml"]},"application/vnd.google-earth.kmz":{"source":"iana","compressible":false,"extensions":["kmz"]},"application/vnd.gov.sk.e-form+xml":{"source":"apache","compressible":true},"application/vnd.gov.sk.e-form+zip":{"source":"iana","compressible":false},"application/vnd.gov.sk.xmldatacontainer+xml":{"source":"iana","compressible":true,"extensions":["xdcf"]},"application/vnd.gpxsee.map+xml":{"source":"iana","compressible":true},"application/vnd.grafeq":{"source":"iana","extensions":["gqf","gqs"]},"application/vnd.gridmp":{"source":"iana"},"application/vnd.groove-account":{"source":"iana","extensions":["gac"]},"application/vnd.groove-help":{"source":"iana","extensions":["ghf"]},"application/vnd.groove-identity-message":{"source":"iana","extensions":["gim"]},"application/vnd.groove-injector":{"source":"iana","extensions":["grv"]},"application/vnd.groove-tool-message":{"source":"iana","extensions":["gtm"]},"application/vnd.groove-tool-template":{"source":"iana","extensions":["tpl"]},"application/vnd.groove-vcard":{"source":"iana","extensions":["vcg"]},"application/vnd.hal+json":{"source":"iana","compressible":true},"application/vnd.hal+xml":{"source":"iana","compressible":true,"extensions":["hal"]},"application/vnd.handheld-entertainment+xml":{"source":"iana","compressible":true,"extensions":["zmm"]},"application/vnd.hbci":{"source":"iana","extensions":["hbci"]},"application/vnd.hc+json":{"source":"iana","compressible":true},"application/vnd.hcl-bireports":{"source":"iana"},"application/vnd.hdt":{"source":"iana"},"application/vnd.heroku+json":{"source":"iana","compressible":true},"application/vnd.hhe.lesson-player":{"source":"iana","extensions":["les"]},"application/vnd.hp-hpgl":{"source":"iana","extensions":["hpgl"]},"application/vnd.hp-hpid":{"source":"iana","extensions":["hpid"]},"application/vnd.hp-hps":{"source":"iana","extensions":["hps"]},"application/vnd.hp-jlyt":{"source":"iana","extensions":["jlt"]},"application/vnd.hp-pcl":{"source":"iana","extensions":["pcl"]},"application/vnd.hp-pclxl":{"source":"iana","extensions":["pclxl"]},"application/vnd.hsl":{"source":"iana"},"application/vnd.httphone":{"source":"iana"},"application/vnd.hydrostatix.sof-data":{"source":"iana","extensions":["sfd-hdstx"]},"application/vnd.hyper+json":{"source":"iana","compressible":true},"application/vnd.hyper-item+json":{"source":"iana","compressible":true},"application/vnd.hyperdrive+json":{"source":"iana","compressible":true},"application/vnd.hzn-3d-crossword":{"source":"iana"},"application/vnd.ibm.afplinedata":{"source":"apache"},"application/vnd.ibm.electronic-media":{"source":"iana"},"application/vnd.ibm.minipay":{"source":"iana","extensions":["mpy"]},"application/vnd.ibm.modcap":{"source":"apache","extensions":["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{"source":"iana","extensions":["irm"]},"application/vnd.ibm.secure-container":{"source":"iana","extensions":["sc"]},"application/vnd.iccprofile":{"source":"iana","extensions":["icc","icm"]},"application/vnd.ieee.1905":{"source":"iana"},"application/vnd.igloader":{"source":"iana","extensions":["igl"]},"application/vnd.imagemeter.folder+zip":{"source":"iana","compressible":false},"application/vnd.imagemeter.image+zip":{"source":"iana","compressible":false},"application/vnd.immervision-ivp":{"source":"iana","extensions":["ivp"]},"application/vnd.immervision-ivu":{"source":"iana","extensions":["ivu"]},"application/vnd.ims.imsccv1p1":{"source":"iana"},"application/vnd.ims.imsccv1p2":{"source":"iana"},"application/vnd.ims.imsccv1p3":{"source":"iana"},"application/vnd.ims.lis.v2.result+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy.id+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings.simple+json":{"source":"iana","compressible":true},"application/vnd.informedcontrol.rms+xml":{"source":"iana","compressible":true},"application/vnd.informix-visionary":{"source":"apache"},"application/vnd.infotech.project":{"source":"iana"},"application/vnd.infotech.project+xml":{"source":"iana","compressible":true},"application/vnd.innopath.wamp.notification":{"source":"iana"},"application/vnd.insors.igm":{"source":"iana","extensions":["igm"]},"application/vnd.intercon.formnet":{"source":"iana","extensions":["xpw","xpx"]},"application/vnd.intergeo":{"source":"iana","extensions":["i2g"]},"application/vnd.intertrust.digibox":{"source":"iana"},"application/vnd.intertrust.nncp":{"source":"iana"},"application/vnd.intu.qbo":{"source":"iana","extensions":["qbo"]},"application/vnd.intu.qfx":{"source":"iana","extensions":["qfx"]},"application/vnd.ipfs.ipns-record":{"source":"iana"},"application/vnd.ipld.car":{"source":"iana"},"application/vnd.ipld.dag-cbor":{"source":"iana"},"application/vnd.ipld.dag-json":{"source":"iana"},"application/vnd.ipld.raw":{"source":"iana"},"application/vnd.iptc.g2.catalogitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.conceptitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.knowledgeitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsmessage+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.packageitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.planningitem+xml":{"source":"iana","compressible":true},"application/vnd.ipunplugged.rcprofile":{"source":"iana","extensions":["rcprofile"]},"application/vnd.irepository.package+xml":{"source":"iana","compressible":true,"extensions":["irp"]},"application/vnd.is-xpr":{"source":"iana","extensions":["xpr"]},"application/vnd.isac.fcs":{"source":"iana","extensions":["fcs"]},"application/vnd.iso11783-10+zip":{"source":"iana","compressible":false},"application/vnd.jam":{"source":"iana","extensions":["jam"]},"application/vnd.japannet-directory-service":{"source":"iana"},"application/vnd.japannet-jpnstore-wakeup":{"source":"iana"},"application/vnd.japannet-payment-wakeup":{"source":"iana"},"application/vnd.japannet-registration":{"source":"iana"},"application/vnd.japannet-registration-wakeup":{"source":"iana"},"application/vnd.japannet-setstore-wakeup":{"source":"iana"},"application/vnd.japannet-verification":{"source":"iana"},"application/vnd.japannet-verification-wakeup":{"source":"iana"},"application/vnd.jcp.javame.midlet-rms":{"source":"iana","extensions":["rms"]},"application/vnd.jisp":{"source":"iana","extensions":["jisp"]},"application/vnd.joost.joda-archive":{"source":"iana","extensions":["joda"]},"application/vnd.jsk.isdn-ngn":{"source":"iana"},"application/vnd.kahootz":{"source":"iana","extensions":["ktz","ktr"]},"application/vnd.kde.karbon":{"source":"iana","extensions":["karbon"]},"application/vnd.kde.kchart":{"source":"iana","extensions":["chrt"]},"application/vnd.kde.kformula":{"source":"iana","extensions":["kfo"]},"application/vnd.kde.kivio":{"source":"iana","extensions":["flw"]},"application/vnd.kde.kontour":{"source":"iana","extensions":["kon"]},"application/vnd.kde.kpresenter":{"source":"iana","extensions":["kpr","kpt"]},"application/vnd.kde.kspread":{"source":"iana","extensions":["ksp"]},"application/vnd.kde.kword":{"source":"iana","extensions":["kwd","kwt"]},"application/vnd.kdl":{"source":"iana"},"application/vnd.kenameaapp":{"source":"iana","extensions":["htke"]},"application/vnd.keyman.kmp+zip":{"source":"iana","compressible":false},"application/vnd.keyman.kmx":{"source":"iana"},"application/vnd.kidspiration":{"source":"iana","extensions":["kia"]},"application/vnd.kinar":{"source":"iana","extensions":["kne","knp"]},"application/vnd.koan":{"source":"iana","extensions":["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{"source":"iana","extensions":["sse"]},"application/vnd.las":{"source":"iana"},"application/vnd.las.las+json":{"source":"iana","compressible":true},"application/vnd.las.las+xml":{"source":"iana","compressible":true,"extensions":["lasxml"]},"application/vnd.laszip":{"source":"iana"},"application/vnd.ldev.productlicensing":{"source":"iana"},"application/vnd.leap+json":{"source":"iana","compressible":true},"application/vnd.liberty-request+xml":{"source":"iana","compressible":true},"application/vnd.llamagraphics.life-balance.desktop":{"source":"iana","extensions":["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{"source":"iana","compressible":true,"extensions":["lbe"]},"application/vnd.logipipe.circuit+zip":{"source":"iana","compressible":false},"application/vnd.loom":{"source":"iana"},"application/vnd.lotus-1-2-3":{"source":"iana","extensions":["123"]},"application/vnd.lotus-approach":{"source":"iana","extensions":["apr"]},"application/vnd.lotus-freelance":{"source":"iana","extensions":["pre"]},"application/vnd.lotus-notes":{"source":"iana","extensions":["nsf"]},"application/vnd.lotus-organizer":{"source":"iana","extensions":["org"]},"application/vnd.lotus-screencam":{"source":"iana","extensions":["scm"]},"application/vnd.lotus-wordpro":{"source":"iana","extensions":["lwp"]},"application/vnd.macports.portpkg":{"source":"iana","extensions":["portpkg"]},"application/vnd.mapbox-vector-tile":{"source":"iana","extensions":["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.conftoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.license+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.mdcf":{"source":"iana"},"application/vnd.mason+json":{"source":"iana","compressible":true},"application/vnd.maxar.archive.3tz+zip":{"source":"iana","compressible":false},"application/vnd.maxmind.maxmind-db":{"source":"iana"},"application/vnd.mcd":{"source":"iana","extensions":["mcd"]},"application/vnd.mdl":{"source":"iana"},"application/vnd.mdl-mbsdf":{"source":"iana"},"application/vnd.medcalcdata":{"source":"iana","extensions":["mc1"]},"application/vnd.mediastation.cdkey":{"source":"iana","extensions":["cdkey"]},"application/vnd.medicalholodeck.recordxr":{"source":"iana"},"application/vnd.meridian-slingshot":{"source":"iana"},"application/vnd.mermaid":{"source":"iana"},"application/vnd.mfer":{"source":"iana","extensions":["mwf"]},"application/vnd.mfmp":{"source":"iana","extensions":["mfm"]},"application/vnd.micro+json":{"source":"iana","compressible":true},"application/vnd.micrografx.flo":{"source":"iana","extensions":["flo"]},"application/vnd.micrografx.igx":{"source":"iana","extensions":["igx"]},"application/vnd.microsoft.portable-executable":{"source":"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{"source":"iana"},"application/vnd.miele+json":{"source":"iana","compressible":true},"application/vnd.mif":{"source":"iana","extensions":["mif"]},"application/vnd.minisoft-hp3000-save":{"source":"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{"source":"iana"},"application/vnd.mobius.daf":{"source":"iana","extensions":["daf"]},"application/vnd.mobius.dis":{"source":"iana","extensions":["dis"]},"application/vnd.mobius.mbk":{"source":"iana","extensions":["mbk"]},"application/vnd.mobius.mqy":{"source":"iana","extensions":["mqy"]},"application/vnd.mobius.msl":{"source":"iana","extensions":["msl"]},"application/vnd.mobius.plc":{"source":"iana","extensions":["plc"]},"application/vnd.mobius.txf":{"source":"iana","extensions":["txf"]},"application/vnd.modl":{"source":"iana"},"application/vnd.mophun.application":{"source":"iana","extensions":["mpn"]},"application/vnd.mophun.certificate":{"source":"iana","extensions":["mpc"]},"application/vnd.motorola.flexsuite":{"source":"iana"},"application/vnd.motorola.flexsuite.adsi":{"source":"iana"},"application/vnd.motorola.flexsuite.fis":{"source":"iana"},"application/vnd.motorola.flexsuite.gotap":{"source":"iana"},"application/vnd.motorola.flexsuite.kmr":{"source":"iana"},"application/vnd.motorola.flexsuite.ttc":{"source":"iana"},"application/vnd.motorola.flexsuite.wem":{"source":"iana"},"application/vnd.motorola.iprm":{"source":"iana"},"application/vnd.mozilla.xul+xml":{"source":"iana","compressible":true,"extensions":["xul"]},"application/vnd.ms-3mfdocument":{"source":"iana"},"application/vnd.ms-artgalry":{"source":"iana","extensions":["cil"]},"application/vnd.ms-asf":{"source":"iana"},"application/vnd.ms-cab-compressed":{"source":"iana","extensions":["cab"]},"application/vnd.ms-color.iccprofile":{"source":"apache"},"application/vnd.ms-excel":{"source":"iana","compressible":false,"extensions":["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{"source":"iana","extensions":["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{"source":"iana","extensions":["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{"source":"iana","extensions":["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{"source":"iana","extensions":["xltm"]},"application/vnd.ms-fontobject":{"source":"iana","compressible":true,"extensions":["eot"]},"application/vnd.ms-htmlhelp":{"source":"iana","extensions":["chm"]},"application/vnd.ms-ims":{"source":"iana","extensions":["ims"]},"application/vnd.ms-lrm":{"source":"iana","extensions":["lrm"]},"application/vnd.ms-office.activex+xml":{"source":"iana","compressible":true},"application/vnd.ms-officetheme":{"source":"iana","extensions":["thmx"]},"application/vnd.ms-opentype":{"source":"apache","compressible":true},"application/vnd.ms-outlook":{"compressible":false,"extensions":["msg"]},"application/vnd.ms-package.obfuscated-opentype":{"source":"apache"},"application/vnd.ms-pki.seccat":{"source":"apache","extensions":["cat"]},"application/vnd.ms-pki.stl":{"source":"apache","extensions":["stl"]},"application/vnd.ms-playready.initiator+xml":{"source":"iana","compressible":true},"application/vnd.ms-powerpoint":{"source":"iana","compressible":false,"extensions":["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{"source":"iana","extensions":["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{"source":"iana","extensions":["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{"source":"iana","extensions":["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{"source":"iana","extensions":["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{"source":"iana","extensions":["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{"source":"iana","compressible":true},"application/vnd.ms-printing.printticket+xml":{"source":"apache","compressible":true},"application/vnd.ms-printschematicket+xml":{"source":"iana","compressible":true},"application/vnd.ms-project":{"source":"iana","extensions":["mpp","mpt"]},"application/vnd.ms-tnef":{"source":"iana"},"application/vnd.ms-visio.viewer":{"extensions":["vdx"]},"application/vnd.ms-windows.devicepairing":{"source":"iana"},"application/vnd.ms-windows.nwprinting.oob":{"source":"iana"},"application/vnd.ms-windows.printerpairing":{"source":"iana"},"application/vnd.ms-windows.wsd.oob":{"source":"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.lic-resp":{"source":"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.meter-resp":{"source":"iana"},"application/vnd.ms-word.document.macroenabled.12":{"source":"iana","extensions":["docm"]},"application/vnd.ms-word.template.macroenabled.12":{"source":"iana","extensions":["dotm"]},"application/vnd.ms-works":{"source":"iana","extensions":["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{"source":"iana","extensions":["wpl"]},"application/vnd.ms-xpsdocument":{"source":"iana","compressible":false,"extensions":["xps"]},"application/vnd.msa-disk-image":{"source":"iana"},"application/vnd.mseq":{"source":"iana","extensions":["mseq"]},"application/vnd.msgpack":{"source":"iana"},"application/vnd.msign":{"source":"iana"},"application/vnd.multiad.creator":{"source":"iana"},"application/vnd.multiad.creator.cif":{"source":"iana"},"application/vnd.music-niff":{"source":"iana"},"application/vnd.musician":{"source":"iana","extensions":["mus"]},"application/vnd.muvee.style":{"source":"iana","extensions":["msty"]},"application/vnd.mynfc":{"source":"iana","extensions":["taglet"]},"application/vnd.nacamar.ybrid+json":{"source":"iana","compressible":true},"application/vnd.nato.bindingdataobject+cbor":{"source":"iana"},"application/vnd.nato.bindingdataobject+json":{"source":"iana","compressible":true},"application/vnd.nato.bindingdataobject+xml":{"source":"iana","compressible":true,"extensions":["bdo"]},"application/vnd.nato.openxmlformats-package.iepd+zip":{"source":"iana","compressible":false},"application/vnd.ncd.control":{"source":"iana"},"application/vnd.ncd.reference":{"source":"iana"},"application/vnd.nearst.inv+json":{"source":"iana","compressible":true},"application/vnd.nebumind.line":{"source":"iana"},"application/vnd.nervana":{"source":"iana"},"application/vnd.netfpx":{"source":"iana"},"application/vnd.neurolanguage.nlu":{"source":"iana","extensions":["nlu"]},"application/vnd.nimn":{"source":"iana"},"application/vnd.nintendo.nitro.rom":{"source":"iana"},"application/vnd.nintendo.snes.rom":{"source":"iana"},"application/vnd.nitf":{"source":"iana","extensions":["ntf","nitf"]},"application/vnd.noblenet-directory":{"source":"iana","extensions":["nnd"]},"application/vnd.noblenet-sealer":{"source":"iana","extensions":["nns"]},"application/vnd.noblenet-web":{"source":"iana","extensions":["nnw"]},"application/vnd.nokia.catalogs":{"source":"iana"},"application/vnd.nokia.conml+wbxml":{"source":"iana"},"application/vnd.nokia.conml+xml":{"source":"iana","compressible":true},"application/vnd.nokia.iptv.config+xml":{"source":"iana","compressible":true},"application/vnd.nokia.isds-radio-presets":{"source":"iana"},"application/vnd.nokia.landmark+wbxml":{"source":"iana"},"application/vnd.nokia.landmark+xml":{"source":"iana","compressible":true},"application/vnd.nokia.landmarkcollection+xml":{"source":"iana","compressible":true},"application/vnd.nokia.n-gage.ac+xml":{"source":"iana","compressible":true,"extensions":["ac"]},"application/vnd.nokia.n-gage.data":{"source":"iana","extensions":["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{"source":"apache","extensions":["n-gage"]},"application/vnd.nokia.ncd":{"source":"iana"},"application/vnd.nokia.pcd+wbxml":{"source":"iana"},"application/vnd.nokia.pcd+xml":{"source":"iana","compressible":true},"application/vnd.nokia.radio-preset":{"source":"iana","extensions":["rpst"]},"application/vnd.nokia.radio-presets":{"source":"iana","extensions":["rpss"]},"application/vnd.novadigm.edm":{"source":"iana","extensions":["edm"]},"application/vnd.novadigm.edx":{"source":"iana","extensions":["edx"]},"application/vnd.novadigm.ext":{"source":"iana","extensions":["ext"]},"application/vnd.ntt-local.content-share":{"source":"iana"},"application/vnd.ntt-local.file-transfer":{"source":"iana"},"application/vnd.ntt-local.ogw_remote-access":{"source":"iana"},"application/vnd.ntt-local.sip-ta_remote":{"source":"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{"source":"iana"},"application/vnd.oai.workflows":{"source":"iana"},"application/vnd.oai.workflows+json":{"source":"iana","compressible":true},"application/vnd.oai.workflows+yaml":{"source":"iana"},"application/vnd.oasis.opendocument.base":{"source":"iana"},"application/vnd.oasis.opendocument.chart":{"source":"iana","extensions":["odc"]},"application/vnd.oasis.opendocument.chart-template":{"source":"iana","extensions":["otc"]},"application/vnd.oasis.opendocument.database":{"source":"apache","extensions":["odb"]},"application/vnd.oasis.opendocument.formula":{"source":"iana","extensions":["odf"]},"application/vnd.oasis.opendocument.formula-template":{"source":"iana","extensions":["odft"]},"application/vnd.oasis.opendocument.graphics":{"source":"iana","compressible":false,"extensions":["odg"]},"application/vnd.oasis.opendocument.graphics-template":{"source":"iana","extensions":["otg"]},"application/vnd.oasis.opendocument.image":{"source":"iana","extensions":["odi"]},"application/vnd.oasis.opendocument.image-template":{"source":"iana","extensions":["oti"]},"application/vnd.oasis.opendocument.presentation":{"source":"iana","compressible":false,"extensions":["odp"]},"application/vnd.oasis.opendocument.presentation-template":{"source":"iana","extensions":["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{"source":"iana","compressible":false,"extensions":["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{"source":"iana","extensions":["ots"]},"application/vnd.oasis.opendocument.text":{"source":"iana","compressible":false,"extensions":["odt"]},"application/vnd.oasis.opendocument.text-master":{"source":"iana","extensions":["odm"]},"application/vnd.oasis.opendocument.text-master-template":{"source":"iana"},"application/vnd.oasis.opendocument.text-template":{"source":"iana","extensions":["ott"]},"application/vnd.oasis.opendocument.text-web":{"source":"iana","extensions":["oth"]},"application/vnd.obn":{"source":"iana"},"application/vnd.ocf+cbor":{"source":"iana"},"application/vnd.oci.image.manifest.v1+json":{"source":"iana","compressible":true},"application/vnd.oftn.l10n+json":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessdownload+xml":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessstreaming+xml":{"source":"iana","compressible":true},"application/vnd.oipf.cspg-hexbinary":{"source":"iana"},"application/vnd.oipf.dae.svg+xml":{"source":"iana","compressible":true},"application/vnd.oipf.dae.xhtml+xml":{"source":"iana","compressible":true},"application/vnd.oipf.mippvcontrolmessage+xml":{"source":"iana","compressible":true},"application/vnd.oipf.pae.gem":{"source":"iana"},"application/vnd.oipf.spdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.oipf.spdlist+xml":{"source":"iana","compressible":true},"application/vnd.oipf.ueprofile+xml":{"source":"iana","compressible":true},"application/vnd.oipf.userprofile+xml":{"source":"iana","compressible":true},"application/vnd.olpc-sugar":{"source":"iana","extensions":["xo"]},"application/vnd.oma-scws-config":{"source":"iana"},"application/vnd.oma-scws-http-request":{"source":"iana"},"application/vnd.oma-scws-http-response":{"source":"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.drm-trigger+xml":{"source":"apache","compressible":true},"application/vnd.oma.bcast.imd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.ltkm":{"source":"iana"},"application/vnd.oma.bcast.notification+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.provisioningtrigger":{"source":"iana"},"application/vnd.oma.bcast.sgboot":{"source":"iana"},"application/vnd.oma.bcast.sgdd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sgdu":{"source":"iana"},"application/vnd.oma.bcast.simple-symbol-container":{"source":"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{"source":"apache","compressible":true},"application/vnd.oma.bcast.sprov+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.stkm":{"source":"iana"},"application/vnd.oma.cab-address-book+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-feature-handler+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-pcc+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-subs-invite+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-user-prefs+xml":{"source":"iana","compressible":true},"application/vnd.oma.dcd":{"source":"iana"},"application/vnd.oma.dcdc":{"source":"iana"},"application/vnd.oma.dd2+xml":{"source":"iana","compressible":true,"extensions":["dd2"]},"application/vnd.oma.drm.risd+xml":{"source":"iana","compressible":true},"application/vnd.oma.group-usage-list+xml":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+cbor":{"source":"iana"},"application/vnd.oma.lwm2m+json":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+tlv":{"source":"iana"},"application/vnd.oma.pal+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.detailed-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.final-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.groups+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.invocation-descriptor+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.optimized-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.push":{"source":"iana"},"application/vnd.oma.scidm.messages+xml":{"source":"iana","compressible":true},"application/vnd.oma.xcap-directory+xml":{"source":"iana","compressible":true},"application/vnd.omads-email+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-file+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-folder+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omaloc-supl-init":{"source":"iana"},"application/vnd.onepager":{"source":"iana"},"application/vnd.onepagertamp":{"source":"iana"},"application/vnd.onepagertamx":{"source":"iana"},"application/vnd.onepagertat":{"source":"iana"},"application/vnd.onepagertatp":{"source":"iana"},"application/vnd.onepagertatx":{"source":"iana"},"application/vnd.onvif.metadata":{"source":"iana"},"application/vnd.openblox.game+xml":{"source":"iana","compressible":true,"extensions":["obgx"]},"application/vnd.openblox.game-binary":{"source":"iana"},"application/vnd.openeye.oeb":{"source":"iana"},"application/vnd.openofficeorg.extension":{"source":"apache","extensions":["oxt"]},"application/vnd.openstreetmap.data+xml":{"source":"iana","compressible":true,"extensions":["osm"]},"application/vnd.opentimestamps.ots":{"source":"iana"},"application/vnd.openvpi.dspx+json":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawing+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{"source":"iana","compressible":false,"extensions":["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slide":{"source":"iana","extensions":["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{"source":"iana","extensions":["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.template":{"source":"iana","extensions":["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"source":"iana","compressible":false,"extensions":["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{"source":"iana","extensions":["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.theme+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.vmldrawing":{"source":"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"source":"iana","compressible":false,"extensions":["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{"source":"iana","extensions":["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.core-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.relationships+xml":{"source":"iana","compressible":true},"application/vnd.oracle.resource+json":{"source":"iana","compressible":true},"application/vnd.orange.indata":{"source":"iana"},"application/vnd.osa.netdeploy":{"source":"iana"},"application/vnd.osgeo.mapguide.package":{"source":"iana","extensions":["mgp"]},"application/vnd.osgi.bundle":{"source":"iana"},"application/vnd.osgi.dp":{"source":"iana","extensions":["dp"]},"application/vnd.osgi.subsystem":{"source":"iana","extensions":["esa"]},"application/vnd.otps.ct-kip+xml":{"source":"iana","compressible":true},"application/vnd.oxli.countgraph":{"source":"iana"},"application/vnd.pagerduty+json":{"source":"iana","compressible":true},"application/vnd.palm":{"source":"iana","extensions":["pdb","pqa","oprc"]},"application/vnd.panoply":{"source":"iana"},"application/vnd.paos.xml":{"source":"iana"},"application/vnd.patentdive":{"source":"iana"},"application/vnd.patientecommsdoc":{"source":"iana"},"application/vnd.pawaafile":{"source":"iana","extensions":["paw"]},"application/vnd.pcos":{"source":"iana"},"application/vnd.pg.format":{"source":"iana","extensions":["str"]},"application/vnd.pg.osasli":{"source":"iana","extensions":["ei6"]},"application/vnd.piaccess.application-licence":{"source":"iana"},"application/vnd.picsel":{"source":"iana","extensions":["efif"]},"application/vnd.pmi.widget":{"source":"iana","extensions":["wg"]},"application/vnd.poc.group-advertisement+xml":{"source":"iana","compressible":true},"application/vnd.pocketlearn":{"source":"iana","extensions":["plf"]},"application/vnd.powerbuilder6":{"source":"iana","extensions":["pbd"]},"application/vnd.powerbuilder6-s":{"source":"iana"},"application/vnd.powerbuilder7":{"source":"iana"},"application/vnd.powerbuilder7-s":{"source":"iana"},"application/vnd.powerbuilder75":{"source":"iana"},"application/vnd.powerbuilder75-s":{"source":"iana"},"application/vnd.preminet":{"source":"iana"},"application/vnd.previewsystems.box":{"source":"iana","extensions":["box"]},"application/vnd.procrate.brushset":{"extensions":["brushset"]},"application/vnd.procreate.brush":{"extensions":["brush"]},"application/vnd.procreate.dream":{"extensions":["drm"]},"application/vnd.proteus.magazine":{"source":"iana","extensions":["mgz"]},"application/vnd.psfs":{"source":"iana"},"application/vnd.pt.mundusmundi":{"source":"iana"},"application/vnd.publishare-delta-tree":{"source":"iana","extensions":["qps"]},"application/vnd.pvi.ptid1":{"source":"iana","extensions":["ptid"]},"application/vnd.pwg-multiplexed":{"source":"iana"},"application/vnd.pwg-xhtml-print+xml":{"source":"iana","compressible":true,"extensions":["xhtm"]},"application/vnd.qualcomm.brew-app-res":{"source":"iana"},"application/vnd.quarantainenet":{"source":"iana"},"application/vnd.quark.quarkxpress":{"source":"iana","extensions":["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{"source":"iana"},"application/vnd.radisys.moml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conn+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-stream+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-base+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-detect+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-group+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-speech+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-transform+xml":{"source":"iana","compressible":true},"application/vnd.rainstor.data":{"source":"iana"},"application/vnd.rapid":{"source":"iana"},"application/vnd.rar":{"source":"iana","extensions":["rar"]},"application/vnd.realvnc.bed":{"source":"iana","extensions":["bed"]},"application/vnd.recordare.musicxml":{"source":"iana","extensions":["mxl"]},"application/vnd.recordare.musicxml+xml":{"source":"iana","compressible":true,"extensions":["musicxml"]},"application/vnd.relpipe":{"source":"iana"},"application/vnd.renlearn.rlprint":{"source":"iana"},"application/vnd.resilient.logic":{"source":"iana"},"application/vnd.restful+json":{"source":"iana","compressible":true},"application/vnd.rig.cryptonote":{"source":"iana","extensions":["cryptonote"]},"application/vnd.rim.cod":{"source":"apache","extensions":["cod"]},"application/vnd.rn-realmedia":{"source":"apache","extensions":["rm"]},"application/vnd.rn-realmedia-vbr":{"source":"apache","extensions":["rmvb"]},"application/vnd.route66.link66+xml":{"source":"iana","compressible":true,"extensions":["link66"]},"application/vnd.rs-274x":{"source":"iana"},"application/vnd.ruckus.download":{"source":"iana"},"application/vnd.s3sms":{"source":"iana"},"application/vnd.sailingtracker.track":{"source":"iana","extensions":["st"]},"application/vnd.sar":{"source":"iana"},"application/vnd.sbm.cid":{"source":"iana"},"application/vnd.sbm.mid2":{"source":"iana"},"application/vnd.scribus":{"source":"iana"},"application/vnd.sealed.3df":{"source":"iana"},"application/vnd.sealed.csf":{"source":"iana"},"application/vnd.sealed.doc":{"source":"iana"},"application/vnd.sealed.eml":{"source":"iana"},"application/vnd.sealed.mht":{"source":"iana"},"application/vnd.sealed.net":{"source":"iana"},"application/vnd.sealed.ppt":{"source":"iana"},"application/vnd.sealed.tiff":{"source":"iana"},"application/vnd.sealed.xls":{"source":"iana"},"application/vnd.sealedmedia.softseal.html":{"source":"iana"},"application/vnd.sealedmedia.softseal.pdf":{"source":"iana"},"application/vnd.seemail":{"source":"iana","extensions":["see"]},"application/vnd.seis+json":{"source":"iana","compressible":true},"application/vnd.sema":{"source":"iana","extensions":["sema"]},"application/vnd.semd":{"source":"iana","extensions":["semd"]},"application/vnd.semf":{"source":"iana","extensions":["semf"]},"application/vnd.shade-save-file":{"source":"iana"},"application/vnd.shana.informed.formdata":{"source":"iana","extensions":["ifm"]},"application/vnd.shana.informed.formtemplate":{"source":"iana","extensions":["itp"]},"application/vnd.shana.informed.interchange":{"source":"iana","extensions":["iif"]},"application/vnd.shana.informed.package":{"source":"iana","extensions":["ipk"]},"application/vnd.shootproof+json":{"source":"iana","compressible":true},"application/vnd.shopkick+json":{"source":"iana","compressible":true},"application/vnd.shp":{"source":"iana"},"application/vnd.shx":{"source":"iana"},"application/vnd.sigrok.session":{"source":"iana"},"application/vnd.simtech-mindmapper":{"source":"iana","extensions":["twd","twds"]},"application/vnd.siren+json":{"source":"iana","compressible":true},"application/vnd.sketchometry":{"source":"iana"},"application/vnd.smaf":{"source":"iana","extensions":["mmf"]},"application/vnd.smart.notebook":{"source":"iana"},"application/vnd.smart.teacher":{"source":"iana","extensions":["teacher"]},"application/vnd.smintio.portals.archive":{"source":"iana"},"application/vnd.snesdev-page-table":{"source":"iana"},"application/vnd.software602.filler.form+xml":{"source":"iana","compressible":true,"extensions":["fo"]},"application/vnd.software602.filler.form-xml-zip":{"source":"iana"},"application/vnd.solent.sdkm+xml":{"source":"iana","compressible":true,"extensions":["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{"source":"iana","extensions":["dxp"]},"application/vnd.spotfire.sfs":{"source":"iana","extensions":["sfs"]},"application/vnd.sqlite3":{"source":"iana"},"application/vnd.sss-cod":{"source":"iana"},"application/vnd.sss-dtf":{"source":"iana"},"application/vnd.sss-ntf":{"source":"iana"},"application/vnd.stardivision.calc":{"source":"apache","extensions":["sdc"]},"application/vnd.stardivision.draw":{"source":"apache","extensions":["sda"]},"application/vnd.stardivision.impress":{"source":"apache","extensions":["sdd"]},"application/vnd.stardivision.math":{"source":"apache","extensions":["smf"]},"application/vnd.stardivision.writer":{"source":"apache","extensions":["sdw","vor"]},"application/vnd.stardivision.writer-global":{"source":"apache","extensions":["sgl"]},"application/vnd.stepmania.package":{"source":"iana","extensions":["smzip"]},"application/vnd.stepmania.stepchart":{"source":"iana","extensions":["sm"]},"application/vnd.street-stream":{"source":"iana"},"application/vnd.sun.wadl+xml":{"source":"iana","compressible":true,"extensions":["wadl"]},"application/vnd.sun.xml.calc":{"source":"apache","extensions":["sxc"]},"application/vnd.sun.xml.calc.template":{"source":"apache","extensions":["stc"]},"application/vnd.sun.xml.draw":{"source":"apache","extensions":["sxd"]},"application/vnd.sun.xml.draw.template":{"source":"apache","extensions":["std"]},"application/vnd.sun.xml.impress":{"source":"apache","extensions":["sxi"]},"application/vnd.sun.xml.impress.template":{"source":"apache","extensions":["sti"]},"application/vnd.sun.xml.math":{"source":"apache","extensions":["sxm"]},"application/vnd.sun.xml.writer":{"source":"apache","extensions":["sxw"]},"application/vnd.sun.xml.writer.global":{"source":"apache","extensions":["sxg"]},"application/vnd.sun.xml.writer.template":{"source":"apache","extensions":["stw"]},"application/vnd.sus-calendar":{"source":"iana","extensions":["sus","susp"]},"application/vnd.svd":{"source":"iana","extensions":["svd"]},"application/vnd.swiftview-ics":{"source":"iana"},"application/vnd.sybyl.mol2":{"source":"iana"},"application/vnd.sycle+xml":{"source":"iana","compressible":true},"application/vnd.syft+json":{"source":"iana","compressible":true},"application/vnd.symbian.install":{"source":"apache","extensions":["sis","sisx"]},"application/vnd.syncml+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xsm"]},"application/vnd.syncml.dm+wbxml":{"source":"iana","charset":"UTF-8","extensions":["bdm"]},"application/vnd.syncml.dm+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xdm"]},"application/vnd.syncml.dm.notification":{"source":"iana"},"application/vnd.syncml.dmddf+wbxml":{"source":"iana"},"application/vnd.syncml.dmddf+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{"source":"iana"},"application/vnd.syncml.dmtnds+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.syncml.ds.notification":{"source":"iana"},"application/vnd.tableschema+json":{"source":"iana","compressible":true},"application/vnd.tao.intent-module-archive":{"source":"iana","extensions":["tao"]},"application/vnd.tcpdump.pcap":{"source":"iana","extensions":["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{"source":"iana","compressible":true},"application/vnd.tmd.mediaflex.api+xml":{"source":"iana","compressible":true},"application/vnd.tml":{"source":"iana"},"application/vnd.tmobile-livetv":{"source":"iana","extensions":["tmo"]},"application/vnd.tri.onesource":{"source":"iana"},"application/vnd.trid.tpt":{"source":"iana","extensions":["tpt"]},"application/vnd.triscape.mxs":{"source":"iana","extensions":["mxs"]},"application/vnd.trueapp":{"source":"iana","extensions":["tra"]},"application/vnd.truedoc":{"source":"iana"},"application/vnd.ubisoft.webplayer":{"source":"iana"},"application/vnd.ufdl":{"source":"iana","extensions":["ufd","ufdl"]},"application/vnd.uic.osdm+json":{"source":"iana","compressible":true},"application/vnd.uiq.theme":{"source":"iana","extensions":["utz"]},"application/vnd.umajin":{"source":"iana","extensions":["umj"]},"application/vnd.unity":{"source":"iana","extensions":["unityweb"]},"application/vnd.uoml+xml":{"source":"iana","compressible":true,"extensions":["uoml","uo"]},"application/vnd.uplanet.alert":{"source":"iana"},"application/vnd.uplanet.alert-wbxml":{"source":"iana"},"application/vnd.uplanet.bearer-choice":{"source":"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{"source":"iana"},"application/vnd.uplanet.cacheop":{"source":"iana"},"application/vnd.uplanet.cacheop-wbxml":{"source":"iana"},"application/vnd.uplanet.channel":{"source":"iana"},"application/vnd.uplanet.channel-wbxml":{"source":"iana"},"application/vnd.uplanet.list":{"source":"iana"},"application/vnd.uplanet.list-wbxml":{"source":"iana"},"application/vnd.uplanet.listcmd":{"source":"iana"},"application/vnd.uplanet.listcmd-wbxml":{"source":"iana"},"application/vnd.uplanet.signal":{"source":"iana"},"application/vnd.uri-map":{"source":"iana"},"application/vnd.valve.source.material":{"source":"iana"},"application/vnd.vcx":{"source":"iana","extensions":["vcx"]},"application/vnd.vd-study":{"source":"iana"},"application/vnd.vectorworks":{"source":"iana"},"application/vnd.vel+json":{"source":"iana","compressible":true},"application/vnd.veraison.tsm-report+cbor":{"source":"iana"},"application/vnd.veraison.tsm-report+json":{"source":"iana","compressible":true},"application/vnd.verimatrix.vcas":{"source":"iana"},"application/vnd.veritone.aion+json":{"source":"iana","compressible":true},"application/vnd.veryant.thin":{"source":"iana"},"application/vnd.ves.encrypted":{"source":"iana"},"application/vnd.vidsoft.vidconference":{"source":"iana"},"application/vnd.visio":{"source":"iana","extensions":["vsd","vst","vss","vsw","vsdx","vtx"]},"application/vnd.visionary":{"source":"iana","extensions":["vis"]},"application/vnd.vividence.scriptfile":{"source":"iana"},"application/vnd.vocalshaper.vsp4":{"source":"iana"},"application/vnd.vsf":{"source":"iana","extensions":["vsf"]},"application/vnd.wap.sic":{"source":"iana"},"application/vnd.wap.slc":{"source":"iana"},"application/vnd.wap.wbxml":{"source":"iana","charset":"UTF-8","extensions":["wbxml"]},"application/vnd.wap.wmlc":{"source":"iana","extensions":["wmlc"]},"application/vnd.wap.wmlscriptc":{"source":"iana","extensions":["wmlsc"]},"application/vnd.wasmflow.wafl":{"source":"iana"},"application/vnd.webturbo":{"source":"iana","extensions":["wtb"]},"application/vnd.wfa.dpp":{"source":"iana"},"application/vnd.wfa.p2p":{"source":"iana"},"application/vnd.wfa.wsc":{"source":"iana"},"application/vnd.windows.devicepairing":{"source":"iana"},"application/vnd.wmc":{"source":"iana"},"application/vnd.wmf.bootstrap":{"source":"iana"},"application/vnd.wolfram.mathematica":{"source":"iana"},"application/vnd.wolfram.mathematica.package":{"source":"iana"},"application/vnd.wolfram.player":{"source":"iana","extensions":["nbp"]},"application/vnd.wordlift":{"source":"iana"},"application/vnd.wordperfect":{"source":"iana","extensions":["wpd"]},"application/vnd.wqd":{"source":"iana","extensions":["wqd"]},"application/vnd.wrq-hp3000-labelled":{"source":"iana"},"application/vnd.wt.stf":{"source":"iana","extensions":["stf"]},"application/vnd.wv.csp+wbxml":{"source":"iana"},"application/vnd.wv.csp+xml":{"source":"iana","compressible":true},"application/vnd.wv.ssp+xml":{"source":"iana","compressible":true},"application/vnd.xacml+json":{"source":"iana","compressible":true},"application/vnd.xara":{"source":"iana","extensions":["xar"]},"application/vnd.xarin.cpj":{"source":"iana"},"application/vnd.xecrets-encrypted":{"source":"iana"},"application/vnd.xfdl":{"source":"iana","extensions":["xfdl"]},"application/vnd.xfdl.webform":{"source":"iana"},"application/vnd.xmi+xml":{"source":"iana","compressible":true},"application/vnd.xmpie.cpkg":{"source":"iana"},"application/vnd.xmpie.dpkg":{"source":"iana"},"application/vnd.xmpie.plan":{"source":"iana"},"application/vnd.xmpie.ppkg":{"source":"iana"},"application/vnd.xmpie.xlim":{"source":"iana"},"application/vnd.yamaha.hv-dic":{"source":"iana","extensions":["hvd"]},"application/vnd.yamaha.hv-script":{"source":"iana","extensions":["hvs"]},"application/vnd.yamaha.hv-voice":{"source":"iana","extensions":["hvp"]},"application/vnd.yamaha.openscoreformat":{"source":"iana","extensions":["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{"source":"iana","compressible":true,"extensions":["osfpvg"]},"application/vnd.yamaha.remote-setup":{"source":"iana"},"application/vnd.yamaha.smaf-audio":{"source":"iana","extensions":["saf"]},"application/vnd.yamaha.smaf-phrase":{"source":"iana","extensions":["spf"]},"application/vnd.yamaha.through-ngn":{"source":"iana"},"application/vnd.yamaha.tunnel-udpencap":{"source":"iana"},"application/vnd.yaoweme":{"source":"iana"},"application/vnd.yellowriver-custom-menu":{"source":"iana","extensions":["cmp"]},"application/vnd.zul":{"source":"iana","extensions":["zir","zirz"]},"application/vnd.zzazz.deck+xml":{"source":"iana","compressible":true,"extensions":["zaz"]},"application/voicexml+xml":{"source":"iana","compressible":true,"extensions":["vxml"]},"application/voucher-cms+json":{"source":"iana","compressible":true},"application/voucher-jws+json":{"source":"iana","compressible":true},"application/vp":{"source":"iana"},"application/vp+cose":{"source":"iana"},"application/vp+jwt":{"source":"iana"},"application/vq-rtcpxr":{"source":"iana"},"application/wasm":{"source":"iana","compressible":true,"extensions":["wasm"]},"application/watcherinfo+xml":{"source":"iana","compressible":true,"extensions":["wif"]},"application/webpush-options+json":{"source":"iana","compressible":true},"application/whoispp-query":{"source":"iana"},"application/whoispp-response":{"source":"iana"},"application/widget":{"source":"iana","extensions":["wgt"]},"application/winhlp":{"source":"apache","extensions":["hlp"]},"application/wita":{"source":"iana"},"application/wordperfect5.1":{"source":"iana"},"application/wsdl+xml":{"source":"iana","compressible":true,"extensions":["wsdl"]},"application/wspolicy+xml":{"source":"iana","compressible":true,"extensions":["wspolicy"]},"application/x-7z-compressed":{"source":"apache","compressible":false,"extensions":["7z"]},"application/x-abiword":{"source":"apache","extensions":["abw"]},"application/x-ace-compressed":{"source":"apache","extensions":["ace"]},"application/x-amf":{"source":"apache"},"application/x-apple-diskimage":{"source":"apache","extensions":["dmg"]},"application/x-arj":{"compressible":false,"extensions":["arj"]},"application/x-authorware-bin":{"source":"apache","extensions":["aab","x32","u32","vox"]},"application/x-authorware-map":{"source":"apache","extensions":["aam"]},"application/x-authorware-seg":{"source":"apache","extensions":["aas"]},"application/x-bcpio":{"source":"apache","extensions":["bcpio"]},"application/x-bdoc":{"compressible":false,"extensions":["bdoc"]},"application/x-bittorrent":{"source":"apache","extensions":["torrent"]},"application/x-blender":{"extensions":["blend"]},"application/x-blorb":{"source":"apache","extensions":["blb","blorb"]},"application/x-bzip":{"source":"apache","compressible":false,"extensions":["bz"]},"application/x-bzip2":{"source":"apache","compressible":false,"extensions":["bz2","boz"]},"application/x-cbr":{"source":"apache","extensions":["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{"source":"apache","extensions":["vcd"]},"application/x-cfs-compressed":{"source":"apache","extensions":["cfs"]},"application/x-chat":{"source":"apache","extensions":["chat"]},"application/x-chess-pgn":{"source":"apache","extensions":["pgn"]},"application/x-chrome-extension":{"extensions":["crx"]},"application/x-cocoa":{"source":"nginx","extensions":["cco"]},"application/x-compress":{"source":"apache"},"application/x-compressed":{"extensions":["rar"]},"application/x-conference":{"source":"apache","extensions":["nsc"]},"application/x-cpio":{"source":"apache","extensions":["cpio"]},"application/x-csh":{"source":"apache","extensions":["csh"]},"application/x-deb":{"compressible":false},"application/x-debian-package":{"source":"apache","extensions":["deb","udeb"]},"application/x-dgc-compressed":{"source":"apache","extensions":["dgc"]},"application/x-director":{"source":"apache","extensions":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{"source":"apache","extensions":["wad"]},"application/x-dtbncx+xml":{"source":"apache","compressible":true,"extensions":["ncx"]},"application/x-dtbook+xml":{"source":"apache","compressible":true,"extensions":["dtb"]},"application/x-dtbresource+xml":{"source":"apache","compressible":true,"extensions":["res"]},"application/x-dvi":{"source":"apache","compressible":false,"extensions":["dvi"]},"application/x-envoy":{"source":"apache","extensions":["evy"]},"application/x-eva":{"source":"apache","extensions":["eva"]},"application/x-font-bdf":{"source":"apache","extensions":["bdf"]},"application/x-font-dos":{"source":"apache"},"application/x-font-framemaker":{"source":"apache"},"application/x-font-ghostscript":{"source":"apache","extensions":["gsf"]},"application/x-font-libgrx":{"source":"apache"},"application/x-font-linux-psf":{"source":"apache","extensions":["psf"]},"application/x-font-pcf":{"source":"apache","extensions":["pcf"]},"application/x-font-snf":{"source":"apache","extensions":["snf"]},"application/x-font-speedo":{"source":"apache"},"application/x-font-sunos-news":{"source":"apache"},"application/x-font-type1":{"source":"apache","extensions":["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{"source":"apache"},"application/x-freearc":{"source":"apache","extensions":["arc"]},"application/x-futuresplash":{"source":"apache","extensions":["spl"]},"application/x-gca-compressed":{"source":"apache","extensions":["gca"]},"application/x-glulx":{"source":"apache","extensions":["ulx"]},"application/x-gnumeric":{"source":"apache","extensions":["gnumeric"]},"application/x-gramps-xml":{"source":"apache","extensions":["gramps"]},"application/x-gtar":{"source":"apache","extensions":["gtar"]},"application/x-gzip":{"source":"apache"},"application/x-hdf":{"source":"apache","extensions":["hdf"]},"application/x-httpd-php":{"compressible":true,"extensions":["php"]},"application/x-install-instructions":{"source":"apache","extensions":["install"]},"application/x-ipynb+json":{"compressible":true,"extensions":["ipynb"]},"application/x-iso9660-image":{"source":"apache","extensions":["iso"]},"application/x-iwork-keynote-sffkey":{"extensions":["key"]},"application/x-iwork-numbers-sffnumbers":{"extensions":["numbers"]},"application/x-iwork-pages-sffpages":{"extensions":["pages"]},"application/x-java-archive-diff":{"source":"nginx","extensions":["jardiff"]},"application/x-java-jnlp-file":{"source":"apache","compressible":false,"extensions":["jnlp"]},"application/x-javascript":{"compressible":true},"application/x-keepass2":{"extensions":["kdbx"]},"application/x-latex":{"source":"apache","compressible":false,"extensions":["latex"]},"application/x-lua-bytecode":{"extensions":["luac"]},"application/x-lzh-compressed":{"source":"apache","extensions":["lzh","lha"]},"application/x-makeself":{"source":"nginx","extensions":["run"]},"application/x-mie":{"source":"apache","extensions":["mie"]},"application/x-mobipocket-ebook":{"source":"apache","extensions":["prc","mobi"]},"application/x-mpegurl":{"compressible":false},"application/x-ms-application":{"source":"apache","extensions":["application"]},"application/x-ms-shortcut":{"source":"apache","extensions":["lnk"]},"application/x-ms-wmd":{"source":"apache","extensions":["wmd"]},"application/x-ms-wmz":{"source":"apache","extensions":["wmz"]},"application/x-ms-xbap":{"source":"apache","extensions":["xbap"]},"application/x-msaccess":{"source":"apache","extensions":["mdb"]},"application/x-msbinder":{"source":"apache","extensions":["obd"]},"application/x-mscardfile":{"source":"apache","extensions":["crd"]},"application/x-msclip":{"source":"apache","extensions":["clp"]},"application/x-msdos-program":{"extensions":["exe"]},"application/x-msdownload":{"source":"apache","extensions":["exe","dll","com","bat","msi"]},"application/x-msmediaview":{"source":"apache","extensions":["mvb","m13","m14"]},"application/x-msmetafile":{"source":"apache","extensions":["wmf","wmz","emf","emz"]},"application/x-msmoney":{"source":"apache","extensions":["mny"]},"application/x-mspublisher":{"source":"apache","extensions":["pub"]},"application/x-msschedule":{"source":"apache","extensions":["scd"]},"application/x-msterminal":{"source":"apache","extensions":["trm"]},"application/x-mswrite":{"source":"apache","extensions":["wri"]},"application/x-netcdf":{"source":"apache","extensions":["nc","cdf"]},"application/x-ns-proxy-autoconfig":{"compressible":true,"extensions":["pac"]},"application/x-nzb":{"source":"apache","extensions":["nzb"]},"application/x-perl":{"source":"nginx","extensions":["pl","pm"]},"application/x-pilot":{"source":"nginx","extensions":["prc","pdb"]},"application/x-pkcs12":{"source":"apache","compressible":false,"extensions":["p12","pfx"]},"application/x-pkcs7-certificates":{"source":"apache","extensions":["p7b","spc"]},"application/x-pkcs7-certreqresp":{"source":"apache","extensions":["p7r"]},"application/x-pki-message":{"source":"iana"},"application/x-rar-compressed":{"source":"apache","compressible":false,"extensions":["rar"]},"application/x-redhat-package-manager":{"source":"nginx","extensions":["rpm"]},"application/x-research-info-systems":{"source":"apache","extensions":["ris"]},"application/x-sea":{"source":"nginx","extensions":["sea"]},"application/x-sh":{"source":"apache","compressible":true,"extensions":["sh"]},"application/x-shar":{"source":"apache","extensions":["shar"]},"application/x-shockwave-flash":{"source":"apache","compressible":false,"extensions":["swf"]},"application/x-silverlight-app":{"source":"apache","extensions":["xap"]},"application/x-sql":{"source":"apache","extensions":["sql"]},"application/x-stuffit":{"source":"apache","compressible":false,"extensions":["sit"]},"application/x-stuffitx":{"source":"apache","extensions":["sitx"]},"application/x-subrip":{"source":"apache","extensions":["srt"]},"application/x-sv4cpio":{"source":"apache","extensions":["sv4cpio"]},"application/x-sv4crc":{"source":"apache","extensions":["sv4crc"]},"application/x-t3vm-image":{"source":"apache","extensions":["t3"]},"application/x-tads":{"source":"apache","extensions":["gam"]},"application/x-tar":{"source":"apache","compressible":true,"extensions":["tar"]},"application/x-tcl":{"source":"apache","extensions":["tcl","tk"]},"application/x-tex":{"source":"apache","extensions":["tex"]},"application/x-tex-tfm":{"source":"apache","extensions":["tfm"]},"application/x-texinfo":{"source":"apache","extensions":["texinfo","texi"]},"application/x-tgif":{"source":"apache","extensions":["obj"]},"application/x-ustar":{"source":"apache","extensions":["ustar"]},"application/x-virtualbox-hdd":{"compressible":true,"extensions":["hdd"]},"application/x-virtualbox-ova":{"compressible":true,"extensions":["ova"]},"application/x-virtualbox-ovf":{"compressible":true,"extensions":["ovf"]},"application/x-virtualbox-vbox":{"compressible":true,"extensions":["vbox"]},"application/x-virtualbox-vbox-extpack":{"compressible":false,"extensions":["vbox-extpack"]},"application/x-virtualbox-vdi":{"compressible":true,"extensions":["vdi"]},"application/x-virtualbox-vhd":{"compressible":true,"extensions":["vhd"]},"application/x-virtualbox-vmdk":{"compressible":true,"extensions":["vmdk"]},"application/x-wais-source":{"source":"apache","extensions":["src"]},"application/x-web-app-manifest+json":{"compressible":true,"extensions":["webapp"]},"application/x-www-form-urlencoded":{"source":"iana","compressible":true},"application/x-x509-ca-cert":{"source":"iana","extensions":["der","crt","pem"]},"application/x-x509-ca-ra-cert":{"source":"iana"},"application/x-x509-next-ca-cert":{"source":"iana"},"application/x-xfig":{"source":"apache","extensions":["fig"]},"application/x-xliff+xml":{"source":"apache","compressible":true,"extensions":["xlf"]},"application/x-xpinstall":{"source":"apache","compressible":false,"extensions":["xpi"]},"application/x-xz":{"source":"apache","extensions":["xz"]},"application/x-zip-compressed":{"extensions":["zip"]},"application/x-zmachine":{"source":"apache","extensions":["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{"source":"iana"},"application/xacml+xml":{"source":"iana","compressible":true},"application/xaml+xml":{"source":"apache","compressible":true,"extensions":["xaml"]},"application/xcap-att+xml":{"source":"iana","compressible":true,"extensions":["xav"]},"application/xcap-caps+xml":{"source":"iana","compressible":true,"extensions":["xca"]},"application/xcap-diff+xml":{"source":"iana","compressible":true,"extensions":["xdf"]},"application/xcap-el+xml":{"source":"iana","compressible":true,"extensions":["xel"]},"application/xcap-error+xml":{"source":"iana","compressible":true},"application/xcap-ns+xml":{"source":"iana","compressible":true,"extensions":["xns"]},"application/xcon-conference-info+xml":{"source":"iana","compressible":true},"application/xcon-conference-info-diff+xml":{"source":"iana","compressible":true},"application/xenc+xml":{"source":"iana","compressible":true,"extensions":["xenc"]},"application/xfdf":{"source":"iana","extensions":["xfdf"]},"application/xhtml+xml":{"source":"iana","compressible":true,"extensions":["xhtml","xht"]},"application/xhtml-voice+xml":{"source":"apache","compressible":true},"application/xliff+xml":{"source":"iana","compressible":true,"extensions":["xlf"]},"application/xml":{"source":"iana","compressible":true,"extensions":["xml","xsl","xsd","rng"]},"application/xml-dtd":{"source":"iana","compressible":true,"extensions":["dtd"]},"application/xml-external-parsed-entity":{"source":"iana"},"application/xml-patch+xml":{"source":"iana","compressible":true},"application/xmpp+xml":{"source":"iana","compressible":true},"application/xop+xml":{"source":"iana","compressible":true,"extensions":["xop"]},"application/xproc+xml":{"source":"apache","compressible":true,"extensions":["xpl"]},"application/xslt+xml":{"source":"iana","compressible":true,"extensions":["xsl","xslt"]},"application/xspf+xml":{"source":"apache","compressible":true,"extensions":["xspf"]},"application/xv+xml":{"source":"iana","compressible":true,"extensions":["mxml","xhvml","xvml","xvm"]},"application/yaml":{"source":"iana"},"application/yang":{"source":"iana","extensions":["yang"]},"application/yang-data+cbor":{"source":"iana"},"application/yang-data+json":{"source":"iana","compressible":true},"application/yang-data+xml":{"source":"iana","compressible":true},"application/yang-patch+json":{"source":"iana","compressible":true},"application/yang-patch+xml":{"source":"iana","compressible":true},"application/yang-sid+json":{"source":"iana","compressible":true},"application/yin+xml":{"source":"iana","compressible":true,"extensions":["yin"]},"application/zip":{"source":"iana","compressible":false,"extensions":["zip"]},"application/zip+dotlottie":{"extensions":["lottie"]},"application/zlib":{"source":"iana"},"application/zstd":{"source":"iana"},"audio/1d-interleaved-parityfec":{"source":"iana"},"audio/32kadpcm":{"source":"iana"},"audio/3gpp":{"source":"iana","compressible":false,"extensions":["3gpp"]},"audio/3gpp2":{"source":"iana"},"audio/aac":{"source":"iana","extensions":["adts","aac"]},"audio/ac3":{"source":"iana"},"audio/adpcm":{"source":"apache","extensions":["adp"]},"audio/amr":{"source":"iana","extensions":["amr"]},"audio/amr-wb":{"source":"iana"},"audio/amr-wb+":{"source":"iana"},"audio/aptx":{"source":"iana"},"audio/asc":{"source":"iana"},"audio/atrac-advanced-lossless":{"source":"iana"},"audio/atrac-x":{"source":"iana"},"audio/atrac3":{"source":"iana"},"audio/basic":{"source":"iana","compressible":false,"extensions":["au","snd"]},"audio/bv16":{"source":"iana"},"audio/bv32":{"source":"iana"},"audio/clearmode":{"source":"iana"},"audio/cn":{"source":"iana"},"audio/dat12":{"source":"iana"},"audio/dls":{"source":"iana"},"audio/dsr-es201108":{"source":"iana"},"audio/dsr-es202050":{"source":"iana"},"audio/dsr-es202211":{"source":"iana"},"audio/dsr-es202212":{"source":"iana"},"audio/dv":{"source":"iana"},"audio/dvi4":{"source":"iana"},"audio/eac3":{"source":"iana"},"audio/encaprtp":{"source":"iana"},"audio/evrc":{"source":"iana"},"audio/evrc-qcp":{"source":"iana"},"audio/evrc0":{"source":"iana"},"audio/evrc1":{"source":"iana"},"audio/evrcb":{"source":"iana"},"audio/evrcb0":{"source":"iana"},"audio/evrcb1":{"source":"iana"},"audio/evrcnw":{"source":"iana"},"audio/evrcnw0":{"source":"iana"},"audio/evrcnw1":{"source":"iana"},"audio/evrcwb":{"source":"iana"},"audio/evrcwb0":{"source":"iana"},"audio/evrcwb1":{"source":"iana"},"audio/evs":{"source":"iana"},"audio/flac":{"source":"iana"},"audio/flexfec":{"source":"iana"},"audio/fwdred":{"source":"iana"},"audio/g711-0":{"source":"iana"},"audio/g719":{"source":"iana"},"audio/g722":{"source":"iana"},"audio/g7221":{"source":"iana"},"audio/g723":{"source":"iana"},"audio/g726-16":{"source":"iana"},"audio/g726-24":{"source":"iana"},"audio/g726-32":{"source":"iana"},"audio/g726-40":{"source":"iana"},"audio/g728":{"source":"iana"},"audio/g729":{"source":"iana"},"audio/g7291":{"source":"iana"},"audio/g729d":{"source":"iana"},"audio/g729e":{"source":"iana"},"audio/gsm":{"source":"iana"},"audio/gsm-efr":{"source":"iana"},"audio/gsm-hr-08":{"source":"iana"},"audio/ilbc":{"source":"iana"},"audio/ip-mr_v2.5":{"source":"iana"},"audio/isac":{"source":"apache"},"audio/l16":{"source":"iana"},"audio/l20":{"source":"iana"},"audio/l24":{"source":"iana","compressible":false},"audio/l8":{"source":"iana"},"audio/lpc":{"source":"iana"},"audio/matroska":{"source":"iana"},"audio/melp":{"source":"iana"},"audio/melp1200":{"source":"iana"},"audio/melp2400":{"source":"iana"},"audio/melp600":{"source":"iana"},"audio/mhas":{"source":"iana"},"audio/midi":{"source":"apache","extensions":["mid","midi","kar","rmi"]},"audio/midi-clip":{"source":"iana"},"audio/mobile-xmf":{"source":"iana","extensions":["mxmf"]},"audio/mp3":{"compressible":false,"extensions":["mp3"]},"audio/mp4":{"source":"iana","compressible":false,"extensions":["m4a","mp4a","m4b"]},"audio/mp4a-latm":{"source":"iana"},"audio/mpa":{"source":"iana"},"audio/mpa-robust":{"source":"iana"},"audio/mpeg":{"source":"iana","compressible":false,"extensions":["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{"source":"iana"},"audio/musepack":{"source":"apache"},"audio/ogg":{"source":"iana","compressible":false,"extensions":["oga","ogg","spx","opus"]},"audio/opus":{"source":"iana"},"audio/parityfec":{"source":"iana"},"audio/pcma":{"source":"iana"},"audio/pcma-wb":{"source":"iana"},"audio/pcmu":{"source":"iana"},"audio/pcmu-wb":{"source":"iana"},"audio/prs.sid":{"source":"iana"},"audio/qcelp":{"source":"iana"},"audio/raptorfec":{"source":"iana"},"audio/red":{"source":"iana"},"audio/rtp-enc-aescm128":{"source":"iana"},"audio/rtp-midi":{"source":"iana"},"audio/rtploopback":{"source":"iana"},"audio/rtx":{"source":"iana"},"audio/s3m":{"source":"apache","extensions":["s3m"]},"audio/scip":{"source":"iana"},"audio/silk":{"source":"apache","extensions":["sil"]},"audio/smv":{"source":"iana"},"audio/smv-qcp":{"source":"iana"},"audio/smv0":{"source":"iana"},"audio/sofa":{"source":"iana"},"audio/sp-midi":{"source":"iana"},"audio/speex":{"source":"iana"},"audio/t140c":{"source":"iana"},"audio/t38":{"source":"iana"},"audio/telephone-event":{"source":"iana"},"audio/tetra_acelp":{"source":"iana"},"audio/tetra_acelp_bb":{"source":"iana"},"audio/tone":{"source":"iana"},"audio/tsvcis":{"source":"iana"},"audio/uemclip":{"source":"iana"},"audio/ulpfec":{"source":"iana"},"audio/usac":{"source":"iana"},"audio/vdvi":{"source":"iana"},"audio/vmr-wb":{"source":"iana"},"audio/vnd.3gpp.iufp":{"source":"iana"},"audio/vnd.4sb":{"source":"iana"},"audio/vnd.audiokoz":{"source":"iana"},"audio/vnd.celp":{"source":"iana"},"audio/vnd.cisco.nse":{"source":"iana"},"audio/vnd.cmles.radio-events":{"source":"iana"},"audio/vnd.cns.anp1":{"source":"iana"},"audio/vnd.cns.inf1":{"source":"iana"},"audio/vnd.dece.audio":{"source":"iana","extensions":["uva","uvva"]},"audio/vnd.digital-winds":{"source":"iana","extensions":["eol"]},"audio/vnd.dlna.adts":{"source":"iana"},"audio/vnd.dolby.heaac.1":{"source":"iana"},"audio/vnd.dolby.heaac.2":{"source":"iana"},"audio/vnd.dolby.mlp":{"source":"iana"},"audio/vnd.dolby.mps":{"source":"iana"},"audio/vnd.dolby.pl2":{"source":"iana"},"audio/vnd.dolby.pl2x":{"source":"iana"},"audio/vnd.dolby.pl2z":{"source":"iana"},"audio/vnd.dolby.pulse.1":{"source":"iana"},"audio/vnd.dra":{"source":"iana","extensions":["dra"]},"audio/vnd.dts":{"source":"iana","extensions":["dts"]},"audio/vnd.dts.hd":{"source":"iana","extensions":["dtshd"]},"audio/vnd.dts.uhd":{"source":"iana"},"audio/vnd.dvb.file":{"source":"iana"},"audio/vnd.everad.plj":{"source":"iana"},"audio/vnd.hns.audio":{"source":"iana"},"audio/vnd.lucent.voice":{"source":"iana","extensions":["lvp"]},"audio/vnd.ms-playready.media.pya":{"source":"iana","extensions":["pya"]},"audio/vnd.nokia.mobile-xmf":{"source":"iana"},"audio/vnd.nortel.vbk":{"source":"iana"},"audio/vnd.nuera.ecelp4800":{"source":"iana","extensions":["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{"source":"iana","extensions":["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{"source":"iana","extensions":["ecelp9600"]},"audio/vnd.octel.sbc":{"source":"iana"},"audio/vnd.presonus.multitrack":{"source":"iana"},"audio/vnd.qcelp":{"source":"apache"},"audio/vnd.rhetorex.32kadpcm":{"source":"iana"},"audio/vnd.rip":{"source":"iana","extensions":["rip"]},"audio/vnd.rn-realaudio":{"compressible":false},"audio/vnd.sealedmedia.softseal.mpeg":{"source":"iana"},"audio/vnd.vmx.cvsd":{"source":"iana"},"audio/vnd.wave":{"compressible":false},"audio/vorbis":{"source":"iana","compressible":false},"audio/vorbis-config":{"source":"iana"},"audio/wav":{"compressible":false,"extensions":["wav"]},"audio/wave":{"compressible":false,"extensions":["wav"]},"audio/webm":{"source":"apache","compressible":false,"extensions":["weba"]},"audio/x-aac":{"source":"apache","compressible":false,"extensions":["aac"]},"audio/x-aiff":{"source":"apache","extensions":["aif","aiff","aifc"]},"audio/x-caf":{"source":"apache","compressible":false,"extensions":["caf"]},"audio/x-flac":{"source":"apache","extensions":["flac"]},"audio/x-m4a":{"source":"nginx","extensions":["m4a"]},"audio/x-matroska":{"source":"apache","extensions":["mka"]},"audio/x-mpegurl":{"source":"apache","extensions":["m3u"]},"audio/x-ms-wax":{"source":"apache","extensions":["wax"]},"audio/x-ms-wma":{"source":"apache","extensions":["wma"]},"audio/x-pn-realaudio":{"source":"apache","extensions":["ram","ra"]},"audio/x-pn-realaudio-plugin":{"source":"apache","extensions":["rmp"]},"audio/x-realaudio":{"source":"nginx","extensions":["ra"]},"audio/x-tta":{"source":"apache"},"audio/x-wav":{"source":"apache","extensions":["wav"]},"audio/xm":{"source":"apache","extensions":["xm"]},"chemical/x-cdx":{"source":"apache","extensions":["cdx"]},"chemical/x-cif":{"source":"apache","extensions":["cif"]},"chemical/x-cmdf":{"source":"apache","extensions":["cmdf"]},"chemical/x-cml":{"source":"apache","extensions":["cml"]},"chemical/x-csml":{"source":"apache","extensions":["csml"]},"chemical/x-pdb":{"source":"apache"},"chemical/x-xyz":{"source":"apache","extensions":["xyz"]},"font/collection":{"source":"iana","extensions":["ttc"]},"font/otf":{"source":"iana","compressible":true,"extensions":["otf"]},"font/sfnt":{"source":"iana"},"font/ttf":{"source":"iana","compressible":true,"extensions":["ttf"]},"font/woff":{"source":"iana","extensions":["woff"]},"font/woff2":{"source":"iana","extensions":["woff2"]},"image/aces":{"source":"iana","extensions":["exr"]},"image/apng":{"source":"iana","compressible":false,"extensions":["apng"]},"image/avci":{"source":"iana","extensions":["avci"]},"image/avcs":{"source":"iana","extensions":["avcs"]},"image/avif":{"source":"iana","compressible":false,"extensions":["avif"]},"image/bmp":{"source":"iana","compressible":true,"extensions":["bmp","dib"]},"image/cgm":{"source":"iana","extensions":["cgm"]},"image/dicom-rle":{"source":"iana","extensions":["drle"]},"image/dpx":{"source":"iana","extensions":["dpx"]},"image/emf":{"source":"iana","extensions":["emf"]},"image/fits":{"source":"iana","extensions":["fits"]},"image/g3fax":{"source":"iana","extensions":["g3"]},"image/gif":{"source":"iana","compressible":false,"extensions":["gif"]},"image/heic":{"source":"iana","extensions":["heic"]},"image/heic-sequence":{"source":"iana","extensions":["heics"]},"image/heif":{"source":"iana","extensions":["heif"]},"image/heif-sequence":{"source":"iana","extensions":["heifs"]},"image/hej2k":{"source":"iana","extensions":["hej2"]},"image/ief":{"source":"iana","extensions":["ief"]},"image/j2c":{"source":"iana"},"image/jaii":{"source":"iana","extensions":["jaii"]},"image/jais":{"source":"iana","extensions":["jais"]},"image/jls":{"source":"iana","extensions":["jls"]},"image/jp2":{"source":"iana","compressible":false,"extensions":["jp2","jpg2"]},"image/jpeg":{"source":"iana","compressible":false,"extensions":["jpg","jpeg","jpe"]},"image/jph":{"source":"iana","extensions":["jph"]},"image/jphc":{"source":"iana","extensions":["jhc"]},"image/jpm":{"source":"iana","compressible":false,"extensions":["jpm","jpgm"]},"image/jpx":{"source":"iana","compressible":false,"extensions":["jpx","jpf"]},"image/jxl":{"source":"iana","extensions":["jxl"]},"image/jxr":{"source":"iana","extensions":["jxr"]},"image/jxra":{"source":"iana","extensions":["jxra"]},"image/jxrs":{"source":"iana","extensions":["jxrs"]},"image/jxs":{"source":"iana","extensions":["jxs"]},"image/jxsc":{"source":"iana","extensions":["jxsc"]},"image/jxsi":{"source":"iana","extensions":["jxsi"]},"image/jxss":{"source":"iana","extensions":["jxss"]},"image/ktx":{"source":"iana","extensions":["ktx"]},"image/ktx2":{"source":"iana","extensions":["ktx2"]},"image/naplps":{"source":"iana"},"image/pjpeg":{"compressible":false,"extensions":["jfif"]},"image/png":{"source":"iana","compressible":false,"extensions":["png"]},"image/prs.btif":{"source":"iana","extensions":["btif","btf"]},"image/prs.pti":{"source":"iana","extensions":["pti"]},"image/pwg-raster":{"source":"iana"},"image/sgi":{"source":"apache","extensions":["sgi"]},"image/svg+xml":{"source":"iana","compressible":true,"extensions":["svg","svgz"]},"image/t38":{"source":"iana","extensions":["t38"]},"image/tiff":{"source":"iana","compressible":false,"extensions":["tif","tiff"]},"image/tiff-fx":{"source":"iana","extensions":["tfx"]},"image/vnd.adobe.photoshop":{"source":"iana","compressible":true,"extensions":["psd"]},"image/vnd.airzip.accelerator.azv":{"source":"iana","extensions":["azv"]},"image/vnd.clip":{"source":"iana"},"image/vnd.cns.inf2":{"source":"iana"},"image/vnd.dece.graphic":{"source":"iana","extensions":["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{"source":"iana","extensions":["djvu","djv"]},"image/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"image/vnd.dwg":{"source":"iana","extensions":["dwg"]},"image/vnd.dxf":{"source":"iana","extensions":["dxf"]},"image/vnd.fastbidsheet":{"source":"iana","extensions":["fbs"]},"image/vnd.fpx":{"source":"iana","extensions":["fpx"]},"image/vnd.fst":{"source":"iana","extensions":["fst"]},"image/vnd.fujixerox.edmics-mmr":{"source":"iana","extensions":["mmr"]},"image/vnd.fujixerox.edmics-rlc":{"source":"iana","extensions":["rlc"]},"image/vnd.globalgraphics.pgb":{"source":"iana"},"image/vnd.microsoft.icon":{"source":"iana","compressible":true,"extensions":["ico"]},"image/vnd.mix":{"source":"iana"},"image/vnd.mozilla.apng":{"source":"iana"},"image/vnd.ms-dds":{"compressible":true,"extensions":["dds"]},"image/vnd.ms-modi":{"source":"iana","extensions":["mdi"]},"image/vnd.ms-photo":{"source":"apache","extensions":["wdp"]},"image/vnd.net-fpx":{"source":"iana","extensions":["npx"]},"image/vnd.pco.b16":{"source":"iana","extensions":["b16"]},"image/vnd.radiance":{"source":"iana"},"image/vnd.sealed.png":{"source":"iana"},"image/vnd.sealedmedia.softseal.gif":{"source":"iana"},"image/vnd.sealedmedia.softseal.jpg":{"source":"iana"},"image/vnd.svf":{"source":"iana"},"image/vnd.tencent.tap":{"source":"iana","extensions":["tap"]},"image/vnd.valve.source.texture":{"source":"iana","extensions":["vtf"]},"image/vnd.wap.wbmp":{"source":"iana","extensions":["wbmp"]},"image/vnd.xiff":{"source":"iana","extensions":["xif"]},"image/vnd.zbrush.pcx":{"source":"iana","extensions":["pcx"]},"image/webp":{"source":"iana","extensions":["webp"]},"image/wmf":{"source":"iana","extensions":["wmf"]},"image/x-3ds":{"source":"apache","extensions":["3ds"]},"image/x-adobe-dng":{"extensions":["dng"]},"image/x-cmu-raster":{"source":"apache","extensions":["ras"]},"image/x-cmx":{"source":"apache","extensions":["cmx"]},"image/x-emf":{"source":"iana"},"image/x-freehand":{"source":"apache","extensions":["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{"source":"apache","compressible":true,"extensions":["ico"]},"image/x-jng":{"source":"nginx","extensions":["jng"]},"image/x-mrsid-image":{"source":"apache","extensions":["sid"]},"image/x-ms-bmp":{"source":"nginx","compressible":true,"extensions":["bmp"]},"image/x-pcx":{"source":"apache","extensions":["pcx"]},"image/x-pict":{"source":"apache","extensions":["pic","pct"]},"image/x-portable-anymap":{"source":"apache","extensions":["pnm"]},"image/x-portable-bitmap":{"source":"apache","extensions":["pbm"]},"image/x-portable-graymap":{"source":"apache","extensions":["pgm"]},"image/x-portable-pixmap":{"source":"apache","extensions":["ppm"]},"image/x-rgb":{"source":"apache","extensions":["rgb"]},"image/x-tga":{"source":"apache","extensions":["tga"]},"image/x-wmf":{"source":"iana"},"image/x-xbitmap":{"source":"apache","extensions":["xbm"]},"image/x-xcf":{"compressible":false},"image/x-xpixmap":{"source":"apache","extensions":["xpm"]},"image/x-xwindowdump":{"source":"apache","extensions":["xwd"]},"message/bhttp":{"source":"iana"},"message/cpim":{"source":"iana"},"message/delivery-status":{"source":"iana"},"message/disposition-notification":{"source":"iana","extensions":["disposition-notification"]},"message/external-body":{"source":"iana"},"message/feedback-report":{"source":"iana"},"message/global":{"source":"iana","extensions":["u8msg"]},"message/global-delivery-status":{"source":"iana","extensions":["u8dsn"]},"message/global-disposition-notification":{"source":"iana","extensions":["u8mdn"]},"message/global-headers":{"source":"iana","extensions":["u8hdr"]},"message/http":{"source":"iana","compressible":false},"message/imdn+xml":{"source":"iana","compressible":true},"message/mls":{"source":"iana"},"message/news":{"source":"apache"},"message/ohttp-req":{"source":"iana"},"message/ohttp-res":{"source":"iana"},"message/partial":{"source":"iana","compressible":false},"message/rfc822":{"source":"iana","compressible":true,"extensions":["eml","mime","mht","mhtml"]},"message/s-http":{"source":"apache"},"message/sip":{"source":"iana"},"message/sipfrag":{"source":"iana"},"message/tracking-status":{"source":"iana"},"message/vnd.si.simp":{"source":"apache"},"message/vnd.wfa.wsc":{"source":"iana","extensions":["wsc"]},"model/3mf":{"source":"iana","extensions":["3mf"]},"model/e57":{"source":"iana"},"model/gltf+json":{"source":"iana","compressible":true,"extensions":["gltf"]},"model/gltf-binary":{"source":"iana","compressible":true,"extensions":["glb"]},"model/iges":{"source":"iana","compressible":false,"extensions":["igs","iges"]},"model/jt":{"source":"iana","extensions":["jt"]},"model/mesh":{"source":"iana","compressible":false,"extensions":["msh","mesh","silo"]},"model/mtl":{"source":"iana","extensions":["mtl"]},"model/obj":{"source":"iana","extensions":["obj"]},"model/prc":{"source":"iana","extensions":["prc"]},"model/step":{"source":"iana","extensions":["step","stp","stpnc","p21","210"]},"model/step+xml":{"source":"iana","compressible":true,"extensions":["stpx"]},"model/step+zip":{"source":"iana","compressible":false,"extensions":["stpz"]},"model/step-xml+zip":{"source":"iana","compressible":false,"extensions":["stpxz"]},"model/stl":{"source":"iana","extensions":["stl"]},"model/u3d":{"source":"iana","extensions":["u3d"]},"model/vnd.bary":{"source":"iana","extensions":["bary"]},"model/vnd.cld":{"source":"iana","extensions":["cld"]},"model/vnd.collada+xml":{"source":"iana","compressible":true,"extensions":["dae"]},"model/vnd.dwf":{"source":"iana","extensions":["dwf"]},"model/vnd.flatland.3dml":{"source":"iana"},"model/vnd.gdl":{"source":"iana","extensions":["gdl"]},"model/vnd.gs-gdl":{"source":"apache"},"model/vnd.gs.gdl":{"source":"iana"},"model/vnd.gtw":{"source":"iana","extensions":["gtw"]},"model/vnd.moml+xml":{"source":"iana","compressible":true},"model/vnd.mts":{"source":"iana","extensions":["mts"]},"model/vnd.opengex":{"source":"iana","extensions":["ogex"]},"model/vnd.parasolid.transmit.binary":{"source":"iana","extensions":["x_b"]},"model/vnd.parasolid.transmit.text":{"source":"iana","extensions":["x_t"]},"model/vnd.pytha.pyox":{"source":"iana","extensions":["pyo","pyox"]},"model/vnd.rosette.annotated-data-model":{"source":"iana"},"model/vnd.sap.vds":{"source":"iana","extensions":["vds"]},"model/vnd.usda":{"source":"iana","extensions":["usda"]},"model/vnd.usdz+zip":{"source":"iana","compressible":false,"extensions":["usdz"]},"model/vnd.valve.source.compiled-map":{"source":"iana","extensions":["bsp"]},"model/vnd.vtu":{"source":"iana","extensions":["vtu"]},"model/vrml":{"source":"iana","compressible":false,"extensions":["wrl","vrml"]},"model/x3d+binary":{"source":"apache","compressible":false,"extensions":["x3db","x3dbz"]},"model/x3d+fastinfoset":{"source":"iana","extensions":["x3db"]},"model/x3d+vrml":{"source":"apache","compressible":false,"extensions":["x3dv","x3dvz"]},"model/x3d+xml":{"source":"iana","compressible":true,"extensions":["x3d","x3dz"]},"model/x3d-vrml":{"source":"iana","extensions":["x3dv"]},"multipart/alternative":{"source":"iana","compressible":false},"multipart/appledouble":{"source":"iana"},"multipart/byteranges":{"source":"iana"},"multipart/digest":{"source":"iana"},"multipart/encrypted":{"source":"iana","compressible":false},"multipart/form-data":{"source":"iana","compressible":false},"multipart/header-set":{"source":"iana"},"multipart/mixed":{"source":"iana"},"multipart/multilingual":{"source":"iana"},"multipart/parallel":{"source":"iana"},"multipart/related":{"source":"iana","compressible":false},"multipart/report":{"source":"iana"},"multipart/signed":{"source":"iana","compressible":false},"multipart/vnd.bint.med-plus":{"source":"iana"},"multipart/voice-message":{"source":"iana"},"multipart/x-mixed-replace":{"source":"iana"},"text/1d-interleaved-parityfec":{"source":"iana"},"text/cache-manifest":{"source":"iana","compressible":true,"extensions":["appcache","manifest"]},"text/calendar":{"source":"iana","extensions":["ics","ifb"]},"text/calender":{"compressible":true},"text/cmd":{"compressible":true},"text/coffeescript":{"extensions":["coffee","litcoffee"]},"text/cql":{"source":"iana"},"text/cql-expression":{"source":"iana"},"text/cql-identifier":{"source":"iana"},"text/css":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["css"]},"text/csv":{"source":"iana","compressible":true,"extensions":["csv"]},"text/csv-schema":{"source":"iana"},"text/directory":{"source":"iana"},"text/dns":{"source":"iana"},"text/ecmascript":{"source":"apache"},"text/encaprtp":{"source":"iana"},"text/enriched":{"source":"iana"},"text/fhirpath":{"source":"iana"},"text/flexfec":{"source":"iana"},"text/fwdred":{"source":"iana"},"text/gff3":{"source":"iana"},"text/grammar-ref-list":{"source":"iana"},"text/hl7v2":{"source":"iana"},"text/html":{"source":"iana","compressible":true,"extensions":["html","htm","shtml"]},"text/jade":{"extensions":["jade"]},"text/javascript":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["js","mjs"]},"text/jcr-cnd":{"source":"iana"},"text/jsx":{"compressible":true,"extensions":["jsx"]},"text/less":{"compressible":true,"extensions":["less"]},"text/markdown":{"source":"iana","compressible":true,"extensions":["md","markdown"]},"text/mathml":{"source":"nginx","extensions":["mml"]},"text/mdx":{"compressible":true,"extensions":["mdx"]},"text/mizar":{"source":"iana"},"text/n3":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["n3"]},"text/parameters":{"source":"iana","charset":"UTF-8"},"text/parityfec":{"source":"iana"},"text/plain":{"source":"iana","compressible":true,"extensions":["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{"source":"iana","charset":"UTF-8"},"text/prs.fallenstein.rst":{"source":"iana"},"text/prs.lines.tag":{"source":"iana","extensions":["dsc"]},"text/prs.prop.logic":{"source":"iana"},"text/prs.texi":{"source":"iana"},"text/raptorfec":{"source":"iana"},"text/red":{"source":"iana"},"text/rfc822-headers":{"source":"iana"},"text/richtext":{"source":"iana","compressible":true,"extensions":["rtx"]},"text/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"text/rtp-enc-aescm128":{"source":"iana"},"text/rtploopback":{"source":"iana"},"text/rtx":{"source":"iana"},"text/sgml":{"source":"iana","extensions":["sgml","sgm"]},"text/shaclc":{"source":"iana"},"text/shex":{"source":"iana","extensions":["shex"]},"text/slim":{"extensions":["slim","slm"]},"text/spdx":{"source":"iana","extensions":["spdx"]},"text/strings":{"source":"iana"},"text/stylus":{"extensions":["stylus","styl"]},"text/t140":{"source":"iana"},"text/tab-separated-values":{"source":"iana","compressible":true,"extensions":["tsv"]},"text/troff":{"source":"iana","extensions":["t","tr","roff","man","me","ms"]},"text/turtle":{"source":"iana","charset":"UTF-8","extensions":["ttl"]},"text/ulpfec":{"source":"iana"},"text/uri-list":{"source":"iana","compressible":true,"extensions":["uri","uris","urls"]},"text/vcard":{"source":"iana","compressible":true,"extensions":["vcard"]},"text/vnd.a":{"source":"iana"},"text/vnd.abc":{"source":"iana"},"text/vnd.ascii-art":{"source":"iana"},"text/vnd.curl":{"source":"iana","extensions":["curl"]},"text/vnd.curl.dcurl":{"source":"apache","extensions":["dcurl"]},"text/vnd.curl.mcurl":{"source":"apache","extensions":["mcurl"]},"text/vnd.curl.scurl":{"source":"apache","extensions":["scurl"]},"text/vnd.debian.copyright":{"source":"iana","charset":"UTF-8"},"text/vnd.dmclientscript":{"source":"iana"},"text/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"text/vnd.esmertec.theme-descriptor":{"source":"iana","charset":"UTF-8"},"text/vnd.exchangeable":{"source":"iana"},"text/vnd.familysearch.gedcom":{"source":"iana","extensions":["ged"]},"text/vnd.ficlab.flt":{"source":"iana"},"text/vnd.fly":{"source":"iana","extensions":["fly"]},"text/vnd.fmi.flexstor":{"source":"iana","extensions":["flx"]},"text/vnd.gml":{"source":"iana"},"text/vnd.graphviz":{"source":"iana","extensions":["gv"]},"text/vnd.hans":{"source":"iana"},"text/vnd.hgl":{"source":"iana"},"text/vnd.in3d.3dml":{"source":"iana","extensions":["3dml"]},"text/vnd.in3d.spot":{"source":"iana","extensions":["spot"]},"text/vnd.iptc.newsml":{"source":"iana"},"text/vnd.iptc.nitf":{"source":"iana"},"text/vnd.latex-z":{"source":"iana"},"text/vnd.motorola.reflex":{"source":"iana"},"text/vnd.ms-mediapackage":{"source":"iana"},"text/vnd.net2phone.commcenter.command":{"source":"iana"},"text/vnd.radisys.msml-basic-layout":{"source":"iana"},"text/vnd.senx.warpscript":{"source":"iana"},"text/vnd.si.uricatalogue":{"source":"apache"},"text/vnd.sosi":{"source":"iana"},"text/vnd.sun.j2me.app-descriptor":{"source":"iana","charset":"UTF-8","extensions":["jad"]},"text/vnd.trolltech.linguist":{"source":"iana","charset":"UTF-8"},"text/vnd.vcf":{"source":"iana"},"text/vnd.wap.si":{"source":"iana"},"text/vnd.wap.sl":{"source":"iana"},"text/vnd.wap.wml":{"source":"iana","extensions":["wml"]},"text/vnd.wap.wmlscript":{"source":"iana","extensions":["wmls"]},"text/vnd.zoo.kcl":{"source":"iana"},"text/vtt":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["vtt"]},"text/wgsl":{"source":"iana","extensions":["wgsl"]},"text/x-asm":{"source":"apache","extensions":["s","asm"]},"text/x-c":{"source":"apache","extensions":["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{"source":"nginx","extensions":["htc"]},"text/x-fortran":{"source":"apache","extensions":["f","for","f77","f90"]},"text/x-gwt-rpc":{"compressible":true},"text/x-handlebars-template":{"extensions":["hbs"]},"text/x-java-source":{"source":"apache","extensions":["java"]},"text/x-jquery-tmpl":{"compressible":true},"text/x-lua":{"extensions":["lua"]},"text/x-markdown":{"compressible":true,"extensions":["mkd"]},"text/x-nfo":{"source":"apache","extensions":["nfo"]},"text/x-opml":{"source":"apache","extensions":["opml"]},"text/x-org":{"compressible":true,"extensions":["org"]},"text/x-pascal":{"source":"apache","extensions":["p","pas"]},"text/x-processing":{"compressible":true,"extensions":["pde"]},"text/x-sass":{"extensions":["sass"]},"text/x-scss":{"extensions":["scss"]},"text/x-setext":{"source":"apache","extensions":["etx"]},"text/x-sfv":{"source":"apache","extensions":["sfv"]},"text/x-suse-ymp":{"compressible":true,"extensions":["ymp"]},"text/x-uuencode":{"source":"apache","extensions":["uu"]},"text/x-vcalendar":{"source":"apache","extensions":["vcs"]},"text/x-vcard":{"source":"apache","extensions":["vcf"]},"text/xml":{"source":"iana","compressible":true,"extensions":["xml"]},"text/xml-external-parsed-entity":{"source":"iana"},"text/yaml":{"compressible":true,"extensions":["yaml","yml"]},"video/1d-interleaved-parityfec":{"source":"iana"},"video/3gpp":{"source":"iana","extensions":["3gp","3gpp"]},"video/3gpp-tt":{"source":"iana"},"video/3gpp2":{"source":"iana","extensions":["3g2"]},"video/av1":{"source":"iana"},"video/bmpeg":{"source":"iana"},"video/bt656":{"source":"iana"},"video/celb":{"source":"iana"},"video/dv":{"source":"iana"},"video/encaprtp":{"source":"iana"},"video/evc":{"source":"iana"},"video/ffv1":{"source":"iana"},"video/flexfec":{"source":"iana"},"video/h261":{"source":"iana","extensions":["h261"]},"video/h263":{"source":"iana","extensions":["h263"]},"video/h263-1998":{"source":"iana"},"video/h263-2000":{"source":"iana"},"video/h264":{"source":"iana","extensions":["h264"]},"video/h264-rcdo":{"source":"iana"},"video/h264-svc":{"source":"iana"},"video/h265":{"source":"iana"},"video/h266":{"source":"iana"},"video/iso.segment":{"source":"iana","extensions":["m4s"]},"video/jpeg":{"source":"iana","extensions":["jpgv"]},"video/jpeg2000":{"source":"iana"},"video/jpm":{"source":"apache","extensions":["jpm","jpgm"]},"video/jxsv":{"source":"iana"},"video/lottie+json":{"source":"iana","compressible":true},"video/matroska":{"source":"iana"},"video/matroska-3d":{"source":"iana"},"video/mj2":{"source":"iana","extensions":["mj2","mjp2"]},"video/mp1s":{"source":"iana"},"video/mp2p":{"source":"iana"},"video/mp2t":{"source":"iana","extensions":["ts","m2t","m2ts","mts"]},"video/mp4":{"source":"iana","compressible":false,"extensions":["mp4","mp4v","mpg4"]},"video/mp4v-es":{"source":"iana"},"video/mpeg":{"source":"iana","compressible":false,"extensions":["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{"source":"iana"},"video/mpv":{"source":"iana"},"video/nv":{"source":"iana"},"video/ogg":{"source":"iana","compressible":false,"extensions":["ogv"]},"video/parityfec":{"source":"iana"},"video/pointer":{"source":"iana"},"video/quicktime":{"source":"iana","compressible":false,"extensions":["qt","mov"]},"video/raptorfec":{"source":"iana"},"video/raw":{"source":"iana"},"video/rtp-enc-aescm128":{"source":"iana"},"video/rtploopback":{"source":"iana"},"video/rtx":{"source":"iana"},"video/scip":{"source":"iana"},"video/smpte291":{"source":"iana"},"video/smpte292m":{"source":"iana"},"video/ulpfec":{"source":"iana"},"video/vc1":{"source":"iana"},"video/vc2":{"source":"iana"},"video/vnd.cctv":{"source":"iana"},"video/vnd.dece.hd":{"source":"iana","extensions":["uvh","uvvh"]},"video/vnd.dece.mobile":{"source":"iana","extensions":["uvm","uvvm"]},"video/vnd.dece.mp4":{"source":"iana"},"video/vnd.dece.pd":{"source":"iana","extensions":["uvp","uvvp"]},"video/vnd.dece.sd":{"source":"iana","extensions":["uvs","uvvs"]},"video/vnd.dece.video":{"source":"iana","extensions":["uvv","uvvv"]},"video/vnd.directv.mpeg":{"source":"iana"},"video/vnd.directv.mpeg-tts":{"source":"iana"},"video/vnd.dlna.mpeg-tts":{"source":"iana"},"video/vnd.dvb.file":{"source":"iana","extensions":["dvb"]},"video/vnd.fvt":{"source":"iana","extensions":["fvt"]},"video/vnd.hns.video":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.ttsavc":{"source":"iana"},"video/vnd.iptvforum.ttsmpeg2":{"source":"iana"},"video/vnd.motorola.video":{"source":"iana"},"video/vnd.motorola.videop":{"source":"iana"},"video/vnd.mpegurl":{"source":"iana","extensions":["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{"source":"iana","extensions":["pyv"]},"video/vnd.nokia.interleaved-multimedia":{"source":"iana"},"video/vnd.nokia.mp4vr":{"source":"iana"},"video/vnd.nokia.videovoip":{"source":"iana"},"video/vnd.objectvideo":{"source":"iana"},"video/vnd.planar":{"source":"iana"},"video/vnd.radgamettools.bink":{"source":"iana"},"video/vnd.radgamettools.smacker":{"source":"apache"},"video/vnd.sealed.mpeg1":{"source":"iana"},"video/vnd.sealed.mpeg4":{"source":"iana"},"video/vnd.sealed.swf":{"source":"iana"},"video/vnd.sealedmedia.softseal.mov":{"source":"iana"},"video/vnd.uvvu.mp4":{"source":"iana","extensions":["uvu","uvvu"]},"video/vnd.vivo":{"source":"iana","extensions":["viv"]},"video/vnd.youtube.yt":{"source":"iana"},"video/vp8":{"source":"iana"},"video/vp9":{"source":"iana"},"video/webm":{"source":"apache","compressible":false,"extensions":["webm"]},"video/x-f4v":{"source":"apache","extensions":["f4v"]},"video/x-fli":{"source":"apache","extensions":["fli"]},"video/x-flv":{"source":"apache","compressible":false,"extensions":["flv"]},"video/x-m4v":{"source":"apache","extensions":["m4v"]},"video/x-matroska":{"source":"apache","compressible":false,"extensions":["mkv","mk3d","mks"]},"video/x-mng":{"source":"apache","extensions":["mng"]},"video/x-ms-asf":{"source":"apache","extensions":["asf","asx"]},"video/x-ms-vob":{"source":"apache","extensions":["vob"]},"video/x-ms-wm":{"source":"apache","extensions":["wm"]},"video/x-ms-wmv":{"source":"apache","compressible":false,"extensions":["wmv"]},"video/x-ms-wmx":{"source":"apache","extensions":["wmx"]},"video/x-ms-wvx":{"source":"apache","extensions":["wvx"]},"video/x-msvideo":{"source":"apache","extensions":["avi"]},"video/x-sgi-movie":{"source":"apache","extensions":["movie"]},"video/x-smv":{"source":"apache","extensions":["smv"]},"x-conference/x-cooltalk":{"source":"apache","extensions":["ice"]},"x-shader/x-fragment":{"compressible":true},"x-shader/x-vertex":{"compressible":true}}')}},a={};function i(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={id:e,loaded:!1,exports:{}};return n[e](r,r.exports,i),r.loaded=!0,r.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};i.d(r,{$_:()=>m.$,BH:()=>u,BL:()=>s.B,Iw:()=>T,Of:()=>E.Of,Pt:()=>l.Pt,Qs:()=>C,Rm:()=>p,UP:()=>d.U,Ux:()=>_.Ux,Wp:()=>A,_f:()=>x,eV:()=>v,iD:()=>k,iF:()=>g.i,ns:()=>o.A,r5:()=>h.r5,tT:()=>j,tp:()=>y.I,um:()=>s.u,vJ:()=>b,vR:()=>w,vV:()=>f.v,vt:()=>c.v});var o=i(1795),s=i(5923),c=i(6589),l=i(3378),u=i(8677),p=i(4158),d=i(7580),m=i(6127),f=i(8516),h=i(9509),v=i(8153),x=i(3605),b=i(5148),g=i(675),y=i(2174),w=i(6670),A=i(52),k=i(967),C=i(4608),E=i(1648),_=i(7134),T=i(5912),j=window?window.document:null;"undefined"!=typeof window&&(window.UI={ns:o.A,acl:s.B,aclControl:s.u,create:c.v,createTypes:T,dom:j,icons:l.Pt,language:u,log:p,login:k,matrix:d.U,media:m.$,messageArea:f.v,infiniteMessageArea:h.r5,pad:v,participation:x,preferences:b,style:g.i,table:y.I,tabs:w,utils:A,widgets:C,initHeader:E.Of,initFooter:_.Ux});const S=r.BL,L=r.um,R=r.vt,N=r.Iw,B=r.tT,I=r.Pt,O=r.r5,F=r.Ux,P=r.Of,D=r.BH,U=r.Rm,M=r.iD,z=r.UP,q=r.$_,H=r.vV,V=r.ns,G=r.eV,Z=r._f,W=r.vJ,J=r.iF,$=r.tp,Q=r.vR,K=r.Wp,Y=r.Qs;export{S as acl,L as aclControl,R as create,N as createTypes,B as dom,I as icons,O as infiniteMessageArea,F as initFooter,P as initHeader,D as language,U as log,M as login,z as matrix,q as media,H as messageArea,V as ns,G as pad,Z as participation,W as preferences,J as style,$ as table,Q as tabs,K as utils,Y as widgets};
|
|
41
|
+
const l={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},p={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),basises:[[BigInt("0x3086d221a7d46bcde86c90e49284eb15"),-BigInt("0xe4437ed6010e88286f547fa90abfe4c3")],[BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),BigInt("0x3086d221a7d46bcde86c90e49284eb15")]]},u=BigInt(0),d=BigInt(2);const m=(0,s.D0)(l.p,{sqrt:function(e){const t=l.p,n=BigInt(3),i=BigInt(6),a=BigInt(11),o=BigInt(22),r=BigInt(23),c=BigInt(44),p=BigInt(88),u=e*e*e%t,f=u*u*e%t,h=(0,s.zH)(f,n,t)*f%t,g=(0,s.zH)(h,n,t)*f%t,b=(0,s.zH)(g,d,t)*u%t,x=(0,s.zH)(b,a,t)*b%t,v=(0,s.zH)(x,o,t)*x%t,y=(0,s.zH)(v,c,t)*v%t,w=(0,s.zH)(y,p,t)*y%t,C=(0,s.zH)(w,c,t)*v%t,A=(0,s.zH)(C,n,t)*f%t,E=(0,s.zH)(A,r,t)*x%t,k=(0,s.zH)(E,i,t)*u%t,T=(0,s.zH)(k,d,t);if(!m.eql(m.sqr(T),e))throw new Error("Cannot find square root");return T}}),f=(0,r.x3)(l,{Fp:m,endo:p}),h={};function g(e,...t){let n=h[e];if(void 0===n){const t=(0,i.sc)((0,c.Mh)(e));n=(0,c.Id)(t,t),h[e]=n}return(0,i.sc)((0,c.Id)(n,...t))}const b=e=>e.toBytes(!0).slice(1),x=e=>e%d===u;function v(e){const{Fn:t,BASE:n}=f,i=t.fromBytes(e),a=n.multiply(i);return{scalar:x(a.y)?i:t.neg(i),bytes:b(a)}}function y(e){const t=m;if(!t.isValidNot0(e))throw new Error("invalid x: Fail if x ≥ p");const n=t.create(e*e),i=t.create(n*e+BigInt(7));let a=t.sqrt(i);x(a)||(a=t.neg(a));const o=f.fromAffine({x:e,y:a});return o.assertValidity(),o}const w=c.Ph;function C(...e){return f.Fn.create(w(g("BIP0340/challenge",...e)))}function A(e){return v(e).bytes}function E(e,t,n=(0,a.po)(32)){const{Fn:i,BASE:o}=f,s=(0,c.DO)(e,void 0,"message"),{bytes:r,scalar:l}=v(t),p=(0,c.DO)(n,32,"auxRand"),u=i.toBytes(l^w(g("BIP0340/aux",p))),d=g("BIP0340/nonce",u,r,s),m=i.create(w(d));if(0n===m)throw new Error("sign failed: k is zero");const h=o.multiply(m),y=x(h.y)?m:i.neg(m),A=b(h),E=C(A,r,s),T=new Uint8Array(64);if(T.set(A,0),T.set(i.toBytes(i.create(y+E*l)),32),!k(T,s,r))throw new Error("sign: Invalid signature produced");return T}function k(e,t,n){const{Fp:i,Fn:a,BASE:o}=f,s=(0,c.DO)(e,64,"signature"),r=(0,c.DO)(t,void 0,"message"),l=(0,c.DO)(n,32,"publicKey");try{const e=y(w(l)),t=w(s.subarray(0,32));if(!i.isValidNot0(t))return!1;const n=w(s.subarray(32,64));if(!a.isValidNot0(n))return!1;const c=C(a.toBytes(t),b(e),r),p=o.multiplyUnsafe(n).add(e.multiplyUnsafe(a.neg(c))),{x:u,y:d}=p.toAffine();return!(p.is0()||!x(d)||u!==t)}catch(e){return!1}}const T=(()=>{const e=e=>(e=void 0===e?(0,a.po)(48):e,(0,s.qy)(e,l.n));return Object.freeze({keygen:(0,o.GV)(e,A),getPublicKey:A,sign:E,verify:k,Point:f,utils:Object.freeze({randomSecretKey:e,taggedHash:g,lift_x:y,pointToBytes:b}),lengths:Object.freeze({secretKey:32,publicKey:32,publicKeyHasPrefix:!1,signature:64,seed:48})})})()},6724(e,t,n){n.d(t,{DO:()=>a,Fe:()=>o,Id:()=>r,Mh:()=>y,My:()=>s,Nf:()=>d,OG:()=>E,Ph:()=>g,Q5:()=>k,aK:()=>C,aT:()=>c,dJ:()=>A,e8:()=>u,gr:()=>m,lX:()=>b,lq:()=>x,z:()=>v,zW:()=>f});var i=n(508);
|
|
42
|
+
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const a=(e,t,n)=>(0,i.DO)(e,t,n),o=i.Fe,s=i.My,r=(...e)=>(0,i.Id)(...e),c=e=>(0,i.aT)(e),l=BigInt(0),p=BigInt(1);function u(e,t=""){if("boolean"!=typeof e){throw new TypeError((t&&`"${t}" `)+"expected boolean, got type="+typeof e)}return e}function d(e){if("bigint"==typeof e){if(!w(e))throw new RangeError("positive bigint expected, got "+e)}else o(e);return e}function m(e,t=""){if("number"!=typeof e){throw new TypeError((t&&`"${t}" `)+"expected number, got type="+typeof e)}if(!Number.isSafeInteger(e)){throw new RangeError((t&&`"${t}" `)+"expected safe integer, got "+e)}}function f(e){const t=d(e).toString(16);return 1&t.length?"0"+t:t}function h(e){if("string"!=typeof e)throw new TypeError("hex string expected, got "+typeof e);return""===e?l:BigInt("0x"+e)}function g(e){return h((0,i.My)(e))}function b(e){return h((0,i.My)(function(e){return Uint8Array.from(a(e))}((0,i.DO)(e)).reverse()))}function x(e,t){if((0,i.Fe)(t),0===t)throw new RangeError("zero length");const n=(e=d(e)).toString(16);if(n.length>2*t)throw new RangeError("number too large");return(0,i.aT)(n.padStart(2*t,"0"))}function v(e,t){return x(e,t).reverse()}function y(e){if("string"!=typeof e)throw new TypeError("ascii string expected, got "+typeof e);return Uint8Array.from(e,(t,n)=>{const i=t.charCodeAt(0);if(1!==t.length||i>127)throw new RangeError(`string contains non-ASCII character "${e[n]}" with code ${i} at position ${n}`);return i})}const w=e=>"bigint"==typeof e&&l<=e;function C(e,t,n,i){if(!function(e,t,n){return w(e)&&w(t)&&w(n)&&t<=e&&e<n}(t,n,i))throw new RangeError("expected valid "+e+": "+n+" <= n < "+i+", got "+t)}function A(e){if(e<l)throw new Error("expected non-negative bigint, got "+e);let t;for(t=0;e>l;e>>=p,t+=1);return t}const E=e=>(p<<BigInt(e))-p;function k(e,t={},n={}){if("[object Object]"!==Object.prototype.toString.call(e))throw new TypeError("expected valid options object");const i=(t,n)=>Object.entries(t).forEach(([t,i])=>function(t,n,i){if(!i&&"function"!==n&&!Object.hasOwn(e,t))throw new TypeError(`param "${t}" is invalid: expected own property`);const a=e[t];if(i&&void 0===a)return;const o=typeof a;if(o!==n||null===a)throw new TypeError(`param "${t}" is invalid: expected ${n}, got ${o}`)}(t,i,n));i(t,!1),i(n,!0)}},6793(e,t,n){n.d(t,{Az:()=>l,DM:()=>c,TQ:()=>o,ol:()=>s,r9:()=>a,tT:()=>p,yc:()=>r});var i=n(508);function a(e,t,n){return e&t^~e&n}function o(e,t,n){return e&t^e&n^t&n}class s{blockLen;outputLen;canXOF=!1;padOffset;isLE;buffer;view;finished=!1;length=0;pos=0;destroyed=!1;constructor(e,t,n,a){this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=a,this.buffer=new Uint8Array(e),this.view=(0,i.O8)(this.buffer)}update(e){(0,i.CC)(this),(0,i.DO)(e);const{view:t,buffer:n,blockLen:a}=this,o=e.length;for(let s=0;s<o;){const r=Math.min(a-this.pos,o-s);if(r===a){const t=(0,i.O8)(e);for(;a<=o-s;s+=a)this.process(t,s);continue}n.set(e.subarray(s,s+r),this.pos),this.pos+=r,s+=r,this.pos===a&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,i.CC)(this),(0,i.Ht)(e,this),this.finished=!0;const{buffer:t,view:n,blockLen:a,isLE:o}=this;let{pos:s}=this;t[s++]=128,(0,i.uH)(this.buffer.subarray(s)),this.padOffset>a-s&&(this.process(n,0),s=0);for(let e=s;e<a;e++)t[e]=0;n.setBigUint64(a-8,BigInt(8*this.length),o),this.process(n,0);const r=(0,i.O8)(e),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen must be aligned to 32bit");const l=c/4,p=this.get();if(l>p.length)throw new Error("_sha2: outputLen bigger than state");for(let e=0;e<l;e++)r.setUint32(4*e,p[e],o)}digest(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const n=e.slice(0,t);return this.destroy(),n}_cloneInto(e){e||=new this.constructor,e.set(...this.get());const{blockLen:t,buffer:n,length:i,finished:a,destroyed:o,pos:s}=this;return e.destroyed=o,e.finished=a,e.length=i,e.pos=s,i%t&&e.buffer.set(n),e}clone(){return this._cloneInto()}}const r=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),c=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),l=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),p=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209])},6211(e,t,n){n.d(t,{CQ:()=>b,CW:()=>g,Ei:()=>d,F8:()=>x,TH:()=>v,Vl:()=>f,Vr:()=>h,WQ:()=>m,jm:()=>c,lD:()=>s,qh:()=>u,rE:()=>l,ry:()=>p,xn:()=>r});const i=BigInt(2**32-1),a=BigInt(32);function o(e,t=!1){return t?{h:Number(e&i),l:Number(e>>a&i)}:{h:0|Number(e>>a&i),l:0|Number(e&i)}}function s(e,t=!1){const n=e.length;let i=new Uint32Array(n),a=new Uint32Array(n);for(let s=0;s<n;s++){const{h:n,l:r}=o(e[s],t);[i[s],a[s]]=[n,r]}return[i,a]}const r=(e,t,n)=>e>>>n,c=(e,t,n)=>e<<32-n|t>>>n,l=(e,t,n)=>e>>>n|t<<32-n,p=(e,t,n)=>e<<32-n|t>>>n,u=(e,t,n)=>e<<64-n|t>>>n-32,d=(e,t,n)=>e>>>n-32|t<<64-n;function m(e,t,n,i){const a=(t>>>0)+(i>>>0);return{h:e+n+(a/2**32|0)|0,l:0|a}}const f=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0),h=(e,t,n,i)=>t+n+i+(e/2**32|0)|0,g=(e,t,n,i)=>(e>>>0)+(t>>>0)+(n>>>0)+(i>>>0),b=(e,t,n,i,a)=>t+n+i+a+(e/2**32|0)|0,x=(e,t,n,i,a)=>(e>>>0)+(t>>>0)+(n>>>0)+(i>>>0)+(a>>>0),v=(e,t,n,i,a,o)=>t+n+i+a+o+(e/2**32|0)|0},4721(e,t,n){n.d(t,{sc:()=>l});var i=n(6793),a=(n(6211),n(508));const o=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),s=new Uint32Array(64);class r extends i.ol{constructor(e){super(64,e,8,!1)}get(){const{A:e,B:t,C:n,D:i,E:a,F:o,G:s,H:r}=this;return[e,t,n,i,a,o,s,r]}set(e,t,n,i,a,o,s,r){this.A=0|e,this.B=0|t,this.C=0|n,this.D=0|i,this.E=0|a,this.F=0|o,this.G=0|s,this.H=0|r}process(e,t){for(let n=0;n<16;n++,t+=4)s[n]=e.getUint32(t,!1);for(let e=16;e<64;e++){const t=s[e-15],n=s[e-2],i=(0,a.Ow)(t,7)^(0,a.Ow)(t,18)^t>>>3,o=(0,a.Ow)(n,17)^(0,a.Ow)(n,19)^n>>>10;s[e]=o+s[e-7]+i+s[e-16]|0}let{A:n,B:r,C:c,D:l,E:p,F:u,G:d,H:m}=this;for(let e=0;e<64;e++){const t=m+((0,a.Ow)(p,6)^(0,a.Ow)(p,11)^(0,a.Ow)(p,25))+(0,i.r9)(p,u,d)+o[e]+s[e]|0,f=((0,a.Ow)(n,2)^(0,a.Ow)(n,13)^(0,a.Ow)(n,22))+(0,i.TQ)(n,r,c)|0;m=d,d=u,u=p,p=l+t|0,l=c,c=r,r=n,n=t+f|0}n=n+this.A|0,r=r+this.B|0,c=c+this.C|0,l=l+this.D|0,p=p+this.E|0,u=u+this.F|0,d=d+this.G|0,m=m+this.H|0,this.set(n,r,c,l,p,u,d,m)}roundClean(){(0,a.uH)(s)}destroy(){this.destroyed=!0,this.set(0,0,0,0,0,0,0,0),(0,a.uH)(this.buffer)}}class c extends r{A=0|i.yc[0];B=0|i.yc[1];C=0|i.yc[2];D=0|i.yc[3];E=0|i.yc[4];F=0|i.yc[5];G=0|i.yc[6];H=0|i.yc[7];constructor(){super(32)}}i.ol;const l=(0,a.qj)(()=>new c,(0,a.nx)(1))},508(e,t,n){function i(e,t=""){if("number"!=typeof e){throw new TypeError(`${t&&`"${t}" `}expected number, got ${typeof e}`)}if(!Number.isSafeInteger(e)||e<0){throw new RangeError(`${t&&`"${t}" `}expected integer >= 0, got ${e}`)}}function a(e,t,n=""){const i=(a=e)instanceof Uint8Array||ArrayBuffer.isView(a)&&"Uint8Array"===a.constructor.name&&"BYTES_PER_ELEMENT"in a&&1===a.BYTES_PER_ELEMENT;var a;const o=e?.length,s=void 0!==t;if(!i||s&&o!==t){const a=(n&&`"${n}" `)+"expected Uint8Array"+(s?` of length ${t}`:"")+", got "+(i?`length=${o}`:"type="+typeof e);if(!i)throw new TypeError(a);throw new RangeError(a)}return e}function o(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function s(e,t){a(e,void 0,"digestInto() output");const n=t.outputLen;if(e.length<n)throw new RangeError('"digestInto() output" expected to be of length >='+n)}function r(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function c(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function l(e,t){return e<<32-t|e>>>t}n.d(t,{CC:()=>o,DO:()=>a,Fe:()=>i,Ht:()=>s,Id:()=>w,My:()=>d,O8:()=>c,Ow:()=>l,aT:()=>y,nx:()=>E,po:()=>A,qj:()=>C,uH:()=>r});const p=(()=>"function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex)(),u=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function d(e){if(a(e),p)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=u[e[n]];return t}const m=48,f=57,h=65,g=70,b=97,x=102;function v(e){return e>=m&&e<=f?e-m:e>=h&&e<=g?e-(h-10):e>=b&&e<=x?e-(b-10):void 0}function y(e){if("string"!=typeof e)throw new TypeError("hex string expected, got "+typeof e);if(p)try{return Uint8Array.fromHex(e)}catch(e){if(e instanceof SyntaxError)throw new RangeError(e.message);throw e}const t=e.length,n=t/2;if(t%2)throw new RangeError("hex string expected, got unpadded hex of length "+t);const i=new Uint8Array(n);for(let t=0,a=0;t<n;t++,a+=2){const n=v(e.charCodeAt(a)),o=v(e.charCodeAt(a+1));if(void 0===n||void 0===o){const t=e[a]+e[a+1];throw new RangeError('hex string expected, got non-hex character "'+t+'" at index '+a)}i[t]=16*n+o}return i}function w(...e){let t=0;for(let n=0;n<e.length;n++){const i=e[n];a(i),t+=i.length}const n=new Uint8Array(t);for(let t=0,i=0;t<e.length;t++){const a=e[t];n.set(a,i),i+=a.length}return n}function C(e,t={}){const n=(t,n)=>e(n).update(t).digest(),i=e(void 0);return n.outputLen=i.outputLen,n.blockLen=i.blockLen,n.canXOF=i.canXOF,n.create=t=>e(t),Object.assign(n,t),Object.freeze(n)}function A(e=32){i(e,"bytesLength");const t="object"==typeof globalThis?globalThis.crypto:null;if("function"!=typeof t?.getRandomValues)throw new Error("crypto.getRandomValues must be defined");if(e>65536)throw new RangeError(`"bytesLength" expected <= 65536, got ${e}`);return t.getRandomValues(new Uint8Array(e))}const E=e=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,e])})},7697(e,t,n){n.d(t,{A:()=>i});const i={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)}},3689(e,t,n){let i;n.d(t,{A:()=>o});const a=new Uint8Array(16);function o(){if(!i){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");i=crypto.getRandomValues.bind(crypto)}return i(a)}},8249(e,t,n){n.d(t,{k:()=>a});const i=[];for(let e=0;e<256;++e)i.push((e+256).toString(16).slice(1));function a(e,t=0){return(i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]).toLowerCase()}},4296(e,t,n){n.d(t,{A:()=>s});var i=n(7697),a=n(3689),o=n(8249);const s=function(e,t,n){return!i.A.randomUUID||t||e?function(e,t,n){const i=(e=e||{}).random??e.rng?.()??(0,a.A)();if(i.length<16)throw new Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){if((n=n||0)<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=i[e];return t}return(0,o.k)(i)}(e,t,n):i.A.randomUUID()}},1813(e){e.exports=JSON.parse('{"application/1d-interleaved-parityfec":{"source":"iana"},"application/3gpdash-qoe-report+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/3gpp-ims+xml":{"source":"iana","compressible":true},"application/3gpphal+json":{"source":"iana","compressible":true},"application/3gpphalforms+json":{"source":"iana","compressible":true},"application/a2l":{"source":"iana"},"application/ace+cbor":{"source":"iana"},"application/ace+json":{"source":"iana","compressible":true},"application/ace-groupcomm+cbor":{"source":"iana"},"application/ace-trl+cbor":{"source":"iana"},"application/activemessage":{"source":"iana"},"application/activity+json":{"source":"iana","compressible":true},"application/aif+cbor":{"source":"iana"},"application/aif+json":{"source":"iana","compressible":true},"application/alto-cdni+json":{"source":"iana","compressible":true},"application/alto-cdnifilter+json":{"source":"iana","compressible":true},"application/alto-costmap+json":{"source":"iana","compressible":true},"application/alto-costmapfilter+json":{"source":"iana","compressible":true},"application/alto-directory+json":{"source":"iana","compressible":true},"application/alto-endpointcost+json":{"source":"iana","compressible":true},"application/alto-endpointcostparams+json":{"source":"iana","compressible":true},"application/alto-endpointprop+json":{"source":"iana","compressible":true},"application/alto-endpointpropparams+json":{"source":"iana","compressible":true},"application/alto-error+json":{"source":"iana","compressible":true},"application/alto-networkmap+json":{"source":"iana","compressible":true},"application/alto-networkmapfilter+json":{"source":"iana","compressible":true},"application/alto-propmap+json":{"source":"iana","compressible":true},"application/alto-propmapparams+json":{"source":"iana","compressible":true},"application/alto-tips+json":{"source":"iana","compressible":true},"application/alto-tipsparams+json":{"source":"iana","compressible":true},"application/alto-updatestreamcontrol+json":{"source":"iana","compressible":true},"application/alto-updatestreamparams+json":{"source":"iana","compressible":true},"application/aml":{"source":"iana"},"application/andrew-inset":{"source":"iana","extensions":["ez"]},"application/appinstaller":{"compressible":false,"extensions":["appinstaller"]},"application/applefile":{"source":"iana"},"application/applixware":{"source":"apache","extensions":["aw"]},"application/appx":{"compressible":false,"extensions":["appx"]},"application/appxbundle":{"compressible":false,"extensions":["appxbundle"]},"application/at+jwt":{"source":"iana"},"application/atf":{"source":"iana"},"application/atfx":{"source":"iana"},"application/atom+xml":{"source":"iana","compressible":true,"extensions":["atom"]},"application/atomcat+xml":{"source":"iana","compressible":true,"extensions":["atomcat"]},"application/atomdeleted+xml":{"source":"iana","compressible":true,"extensions":["atomdeleted"]},"application/atomicmail":{"source":"iana"},"application/atomsvc+xml":{"source":"iana","compressible":true,"extensions":["atomsvc"]},"application/atsc-dwd+xml":{"source":"iana","compressible":true,"extensions":["dwd"]},"application/atsc-dynamic-event-message":{"source":"iana"},"application/atsc-held+xml":{"source":"iana","compressible":true,"extensions":["held"]},"application/atsc-rdt+json":{"source":"iana","compressible":true},"application/atsc-rsat+xml":{"source":"iana","compressible":true,"extensions":["rsat"]},"application/atxml":{"source":"iana"},"application/auth-policy+xml":{"source":"iana","compressible":true},"application/automationml-aml+xml":{"source":"iana","compressible":true,"extensions":["aml"]},"application/automationml-amlx+zip":{"source":"iana","compressible":false,"extensions":["amlx"]},"application/bacnet-xdd+zip":{"source":"iana","compressible":false},"application/batch-smtp":{"source":"iana"},"application/bdoc":{"compressible":false,"extensions":["bdoc"]},"application/beep+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/bufr":{"source":"iana"},"application/c2pa":{"source":"iana"},"application/calendar+json":{"source":"iana","compressible":true},"application/calendar+xml":{"source":"iana","compressible":true,"extensions":["xcs"]},"application/call-completion":{"source":"iana"},"application/cals-1840":{"source":"iana"},"application/captive+json":{"source":"iana","compressible":true},"application/cbor":{"source":"iana"},"application/cbor-seq":{"source":"iana"},"application/cccex":{"source":"iana"},"application/ccmp+xml":{"source":"iana","compressible":true},"application/ccxml+xml":{"source":"iana","compressible":true,"extensions":["ccxml"]},"application/cda+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/cdfx+xml":{"source":"iana","compressible":true,"extensions":["cdfx"]},"application/cdmi-capability":{"source":"iana","extensions":["cdmia"]},"application/cdmi-container":{"source":"iana","extensions":["cdmic"]},"application/cdmi-domain":{"source":"iana","extensions":["cdmid"]},"application/cdmi-object":{"source":"iana","extensions":["cdmio"]},"application/cdmi-queue":{"source":"iana","extensions":["cdmiq"]},"application/cdni":{"source":"iana"},"application/ce+cbor":{"source":"iana"},"application/cea":{"source":"iana"},"application/cea-2018+xml":{"source":"iana","compressible":true},"application/cellml+xml":{"source":"iana","compressible":true},"application/cfw":{"source":"iana"},"application/cid-edhoc+cbor-seq":{"source":"iana"},"application/city+json":{"source":"iana","compressible":true},"application/city+json-seq":{"source":"iana"},"application/clr":{"source":"iana"},"application/clue+xml":{"source":"iana","compressible":true},"application/clue_info+xml":{"source":"iana","compressible":true},"application/cms":{"source":"iana"},"application/cnrp+xml":{"source":"iana","compressible":true},"application/coap-eap":{"source":"iana"},"application/coap-group+json":{"source":"iana","compressible":true},"application/coap-payload":{"source":"iana"},"application/commonground":{"source":"iana"},"application/concise-problem-details+cbor":{"source":"iana"},"application/conference-info+xml":{"source":"iana","compressible":true},"application/cose":{"source":"iana"},"application/cose-key":{"source":"iana"},"application/cose-key-set":{"source":"iana"},"application/cose-x509":{"source":"iana"},"application/cpl+xml":{"source":"iana","compressible":true,"extensions":["cpl"]},"application/csrattrs":{"source":"iana"},"application/csta+xml":{"source":"iana","compressible":true},"application/cstadata+xml":{"source":"iana","compressible":true},"application/csvm+json":{"source":"iana","compressible":true},"application/cu-seeme":{"source":"apache","extensions":["cu"]},"application/cwl":{"source":"iana","extensions":["cwl"]},"application/cwl+json":{"source":"iana","compressible":true},"application/cwl+yaml":{"source":"iana"},"application/cwt":{"source":"iana"},"application/cybercash":{"source":"iana"},"application/dart":{"compressible":true},"application/dash+xml":{"source":"iana","compressible":true,"extensions":["mpd"]},"application/dash-patch+xml":{"source":"iana","compressible":true,"extensions":["mpp"]},"application/dashdelta":{"source":"iana"},"application/davmount+xml":{"source":"iana","compressible":true,"extensions":["davmount"]},"application/dca-rft":{"source":"iana"},"application/dcd":{"source":"iana"},"application/dec-dx":{"source":"iana"},"application/dialog-info+xml":{"source":"iana","compressible":true},"application/dicom":{"source":"iana","extensions":["dcm"]},"application/dicom+json":{"source":"iana","compressible":true},"application/dicom+xml":{"source":"iana","compressible":true},"application/dii":{"source":"iana"},"application/dit":{"source":"iana"},"application/dns":{"source":"iana"},"application/dns+json":{"source":"iana","compressible":true},"application/dns-message":{"source":"iana"},"application/docbook+xml":{"source":"apache","compressible":true,"extensions":["dbk"]},"application/dots+cbor":{"source":"iana"},"application/dpop+jwt":{"source":"iana"},"application/dskpp+xml":{"source":"iana","compressible":true},"application/dssc+der":{"source":"iana","extensions":["dssc"]},"application/dssc+xml":{"source":"iana","compressible":true,"extensions":["xdssc"]},"application/dvcs":{"source":"iana"},"application/eat+cwt":{"source":"iana"},"application/eat+jwt":{"source":"iana"},"application/eat-bun+cbor":{"source":"iana"},"application/eat-bun+json":{"source":"iana","compressible":true},"application/eat-ucs+cbor":{"source":"iana"},"application/eat-ucs+json":{"source":"iana","compressible":true},"application/ecmascript":{"source":"apache","compressible":true,"extensions":["ecma"]},"application/edhoc+cbor-seq":{"source":"iana"},"application/edi-consent":{"source":"iana"},"application/edi-x12":{"source":"iana","compressible":false},"application/edifact":{"source":"iana","compressible":false},"application/efi":{"source":"iana"},"application/elm+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/elm+xml":{"source":"iana","compressible":true},"application/emergencycalldata.cap+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/emergencycalldata.comment+xml":{"source":"iana","compressible":true},"application/emergencycalldata.control+xml":{"source":"iana","compressible":true},"application/emergencycalldata.deviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.ecall.msd":{"source":"iana"},"application/emergencycalldata.legacyesn+json":{"source":"iana","compressible":true},"application/emergencycalldata.providerinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.serviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.subscriberinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.veds+xml":{"source":"iana","compressible":true},"application/emma+xml":{"source":"iana","compressible":true,"extensions":["emma"]},"application/emotionml+xml":{"source":"iana","compressible":true,"extensions":["emotionml"]},"application/encaprtp":{"source":"iana"},"application/entity-statement+jwt":{"source":"iana"},"application/epp+xml":{"source":"iana","compressible":true},"application/epub+zip":{"source":"iana","compressible":false,"extensions":["epub"]},"application/eshop":{"source":"iana"},"application/exi":{"source":"iana","extensions":["exi"]},"application/expect-ct-report+json":{"source":"iana","compressible":true},"application/express":{"source":"iana","extensions":["exp"]},"application/fastinfoset":{"source":"iana"},"application/fastsoap":{"source":"iana"},"application/fdf":{"source":"iana","extensions":["fdf"]},"application/fdt+xml":{"source":"iana","compressible":true,"extensions":["fdt"]},"application/fhir+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/fhir+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/fido.trusted-apps+json":{"compressible":true},"application/fits":{"source":"iana"},"application/flexfec":{"source":"iana"},"application/font-sfnt":{"source":"iana"},"application/font-tdpfr":{"source":"iana","extensions":["pfr"]},"application/font-woff":{"source":"iana","compressible":false},"application/framework-attributes+xml":{"source":"iana","compressible":true},"application/geo+json":{"source":"iana","compressible":true,"extensions":["geojson"]},"application/geo+json-seq":{"source":"iana"},"application/geopackage+sqlite3":{"source":"iana"},"application/geopose+json":{"source":"iana","compressible":true},"application/geoxacml+json":{"source":"iana","compressible":true},"application/geoxacml+xml":{"source":"iana","compressible":true},"application/gltf-buffer":{"source":"iana"},"application/gml+xml":{"source":"iana","compressible":true,"extensions":["gml"]},"application/gnap-binding-jws":{"source":"iana"},"application/gnap-binding-jwsd":{"source":"iana"},"application/gnap-binding-rotation-jws":{"source":"iana"},"application/gnap-binding-rotation-jwsd":{"source":"iana"},"application/gpx+xml":{"source":"apache","compressible":true,"extensions":["gpx"]},"application/grib":{"source":"iana"},"application/gxf":{"source":"apache","extensions":["gxf"]},"application/gzip":{"source":"iana","compressible":false,"extensions":["gz"]},"application/h224":{"source":"iana"},"application/held+xml":{"source":"iana","compressible":true},"application/hjson":{"extensions":["hjson"]},"application/hl7v2+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/http":{"source":"iana"},"application/hyperstudio":{"source":"iana","extensions":["stk"]},"application/ibe-key-request+xml":{"source":"iana","compressible":true},"application/ibe-pkg-reply+xml":{"source":"iana","compressible":true},"application/ibe-pp-data":{"source":"iana"},"application/iges":{"source":"iana"},"application/im-iscomposing+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/index":{"source":"iana"},"application/index.cmd":{"source":"iana"},"application/index.obj":{"source":"iana"},"application/index.response":{"source":"iana"},"application/index.vnd":{"source":"iana"},"application/inkml+xml":{"source":"iana","compressible":true,"extensions":["ink","inkml"]},"application/iotp":{"source":"iana"},"application/ipfix":{"source":"iana","extensions":["ipfix"]},"application/ipp":{"source":"iana"},"application/isup":{"source":"iana"},"application/its+xml":{"source":"iana","compressible":true,"extensions":["its"]},"application/java-archive":{"source":"iana","compressible":false,"extensions":["jar","war","ear"]},"application/java-serialized-object":{"source":"apache","compressible":false,"extensions":["ser"]},"application/java-vm":{"source":"apache","compressible":false,"extensions":["class"]},"application/javascript":{"source":"apache","charset":"UTF-8","compressible":true,"extensions":["js"]},"application/jf2feed+json":{"source":"iana","compressible":true},"application/jose":{"source":"iana"},"application/jose+json":{"source":"iana","compressible":true},"application/jrd+json":{"source":"iana","compressible":true},"application/jscalendar+json":{"source":"iana","compressible":true},"application/jscontact+json":{"source":"iana","compressible":true},"application/json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["json","map"]},"application/json-patch+json":{"source":"iana","compressible":true},"application/json-seq":{"source":"iana"},"application/json5":{"extensions":["json5"]},"application/jsonml+json":{"source":"apache","compressible":true,"extensions":["jsonml"]},"application/jsonpath":{"source":"iana"},"application/jwk+json":{"source":"iana","compressible":true},"application/jwk-set+json":{"source":"iana","compressible":true},"application/jwk-set+jwt":{"source":"iana"},"application/jwt":{"source":"iana"},"application/kpml-request+xml":{"source":"iana","compressible":true},"application/kpml-response+xml":{"source":"iana","compressible":true},"application/ld+json":{"source":"iana","compressible":true,"extensions":["jsonld"]},"application/lgr+xml":{"source":"iana","compressible":true,"extensions":["lgr"]},"application/link-format":{"source":"iana"},"application/linkset":{"source":"iana"},"application/linkset+json":{"source":"iana","compressible":true},"application/load-control+xml":{"source":"iana","compressible":true},"application/logout+jwt":{"source":"iana"},"application/lost+xml":{"source":"iana","compressible":true,"extensions":["lostxml"]},"application/lostsync+xml":{"source":"iana","compressible":true},"application/lpf+zip":{"source":"iana","compressible":false},"application/lxf":{"source":"iana"},"application/mac-binhex40":{"source":"iana","extensions":["hqx"]},"application/mac-compactpro":{"source":"apache","extensions":["cpt"]},"application/macwriteii":{"source":"iana"},"application/mads+xml":{"source":"iana","compressible":true,"extensions":["mads"]},"application/manifest+json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["webmanifest"]},"application/marc":{"source":"iana","extensions":["mrc"]},"application/marcxml+xml":{"source":"iana","compressible":true,"extensions":["mrcx"]},"application/mathematica":{"source":"iana","extensions":["ma","nb","mb"]},"application/mathml+xml":{"source":"iana","compressible":true,"extensions":["mathml"]},"application/mathml-content+xml":{"source":"iana","compressible":true},"application/mathml-presentation+xml":{"source":"iana","compressible":true},"application/mbms-associated-procedure-description+xml":{"source":"iana","compressible":true},"application/mbms-deregister+xml":{"source":"iana","compressible":true},"application/mbms-envelope+xml":{"source":"iana","compressible":true},"application/mbms-msk+xml":{"source":"iana","compressible":true},"application/mbms-msk-response+xml":{"source":"iana","compressible":true},"application/mbms-protection-description+xml":{"source":"iana","compressible":true},"application/mbms-reception-report+xml":{"source":"iana","compressible":true},"application/mbms-register+xml":{"source":"iana","compressible":true},"application/mbms-register-response+xml":{"source":"iana","compressible":true},"application/mbms-schedule+xml":{"source":"iana","compressible":true},"application/mbms-user-service-description+xml":{"source":"iana","compressible":true},"application/mbox":{"source":"iana","extensions":["mbox"]},"application/media-policy-dataset+xml":{"source":"iana","compressible":true,"extensions":["mpf"]},"application/media_control+xml":{"source":"iana","compressible":true},"application/mediaservercontrol+xml":{"source":"iana","compressible":true,"extensions":["mscml"]},"application/merge-patch+json":{"source":"iana","compressible":true},"application/metalink+xml":{"source":"apache","compressible":true,"extensions":["metalink"]},"application/metalink4+xml":{"source":"iana","compressible":true,"extensions":["meta4"]},"application/mets+xml":{"source":"iana","compressible":true,"extensions":["mets"]},"application/mf4":{"source":"iana"},"application/mikey":{"source":"iana"},"application/mipc":{"source":"iana"},"application/missing-blocks+cbor-seq":{"source":"iana"},"application/mmt-aei+xml":{"source":"iana","compressible":true,"extensions":["maei"]},"application/mmt-usd+xml":{"source":"iana","compressible":true,"extensions":["musd"]},"application/mods+xml":{"source":"iana","compressible":true,"extensions":["mods"]},"application/moss-keys":{"source":"iana"},"application/moss-signature":{"source":"iana"},"application/mosskey-data":{"source":"iana"},"application/mosskey-request":{"source":"iana"},"application/mp21":{"source":"iana","extensions":["m21","mp21"]},"application/mp4":{"source":"iana","extensions":["mp4","mpg4","mp4s","m4p"]},"application/mpeg4-generic":{"source":"iana"},"application/mpeg4-iod":{"source":"iana"},"application/mpeg4-iod-xmt":{"source":"iana"},"application/mrb-consumer+xml":{"source":"iana","compressible":true},"application/mrb-publish+xml":{"source":"iana","compressible":true},"application/msc-ivr+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msc-mixer+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msix":{"compressible":false,"extensions":["msix"]},"application/msixbundle":{"compressible":false,"extensions":["msixbundle"]},"application/msword":{"source":"iana","compressible":false,"extensions":["doc","dot"]},"application/mud+json":{"source":"iana","compressible":true},"application/multipart-core":{"source":"iana"},"application/mxf":{"source":"iana","extensions":["mxf"]},"application/n-quads":{"source":"iana","extensions":["nq"]},"application/n-triples":{"source":"iana","extensions":["nt"]},"application/nasdata":{"source":"iana"},"application/news-checkgroups":{"source":"iana","charset":"US-ASCII"},"application/news-groupinfo":{"source":"iana","charset":"US-ASCII"},"application/news-transmission":{"source":"iana"},"application/nlsml+xml":{"source":"iana","compressible":true},"application/node":{"source":"iana","extensions":["cjs"]},"application/nss":{"source":"iana"},"application/oauth-authz-req+jwt":{"source":"iana"},"application/oblivious-dns-message":{"source":"iana"},"application/ocsp-request":{"source":"iana"},"application/ocsp-response":{"source":"iana"},"application/octet-stream":{"source":"iana","compressible":true,"extensions":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{"source":"iana","extensions":["oda"]},"application/odm+xml":{"source":"iana","compressible":true},"application/odx":{"source":"iana"},"application/oebps-package+xml":{"source":"iana","compressible":true,"extensions":["opf"]},"application/ogg":{"source":"iana","compressible":false,"extensions":["ogx"]},"application/ohttp-keys":{"source":"iana"},"application/omdoc+xml":{"source":"apache","compressible":true,"extensions":["omdoc"]},"application/onenote":{"source":"apache","extensions":["onetoc","onetoc2","onetmp","onepkg","one","onea"]},"application/opc-nodeset+xml":{"source":"iana","compressible":true},"application/oscore":{"source":"iana"},"application/oxps":{"source":"iana","extensions":["oxps"]},"application/p21":{"source":"iana"},"application/p21+zip":{"source":"iana","compressible":false},"application/p2p-overlay+xml":{"source":"iana","compressible":true,"extensions":["relo"]},"application/parityfec":{"source":"iana"},"application/passport":{"source":"iana"},"application/patch-ops-error+xml":{"source":"iana","compressible":true,"extensions":["xer"]},"application/pdf":{"source":"iana","compressible":false,"extensions":["pdf"]},"application/pdx":{"source":"iana"},"application/pem-certificate-chain":{"source":"iana"},"application/pgp-encrypted":{"source":"iana","compressible":false,"extensions":["pgp"]},"application/pgp-keys":{"source":"iana","extensions":["asc"]},"application/pgp-signature":{"source":"iana","extensions":["sig","asc"]},"application/pics-rules":{"source":"apache","extensions":["prf"]},"application/pidf+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pidf-diff+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pkcs10":{"source":"iana","extensions":["p10"]},"application/pkcs12":{"source":"iana"},"application/pkcs7-mime":{"source":"iana","extensions":["p7m","p7c"]},"application/pkcs7-signature":{"source":"iana","extensions":["p7s"]},"application/pkcs8":{"source":"iana","extensions":["p8"]},"application/pkcs8-encrypted":{"source":"iana"},"application/pkix-attr-cert":{"source":"iana","extensions":["ac"]},"application/pkix-cert":{"source":"iana","extensions":["cer"]},"application/pkix-crl":{"source":"iana","extensions":["crl"]},"application/pkix-pkipath":{"source":"iana","extensions":["pkipath"]},"application/pkixcmp":{"source":"iana","extensions":["pki"]},"application/pls+xml":{"source":"iana","compressible":true,"extensions":["pls"]},"application/poc-settings+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/postscript":{"source":"iana","compressible":true,"extensions":["ai","eps","ps"]},"application/ppsp-tracker+json":{"source":"iana","compressible":true},"application/private-token-issuer-directory":{"source":"iana"},"application/private-token-request":{"source":"iana"},"application/private-token-response":{"source":"iana"},"application/problem+json":{"source":"iana","compressible":true},"application/problem+xml":{"source":"iana","compressible":true},"application/provenance+xml":{"source":"iana","compressible":true,"extensions":["provx"]},"application/provided-claims+jwt":{"source":"iana"},"application/prs.alvestrand.titrax-sheet":{"source":"iana"},"application/prs.cww":{"source":"iana","extensions":["cww"]},"application/prs.cyn":{"source":"iana","charset":"7-BIT"},"application/prs.hpub+zip":{"source":"iana","compressible":false},"application/prs.implied-document+xml":{"source":"iana","compressible":true},"application/prs.implied-executable":{"source":"iana"},"application/prs.implied-object+json":{"source":"iana","compressible":true},"application/prs.implied-object+json-seq":{"source":"iana"},"application/prs.implied-object+yaml":{"source":"iana"},"application/prs.implied-structure":{"source":"iana"},"application/prs.mayfile":{"source":"iana"},"application/prs.nprend":{"source":"iana"},"application/prs.plucker":{"source":"iana"},"application/prs.rdf-xml-crypt":{"source":"iana"},"application/prs.vcfbzip2":{"source":"iana"},"application/prs.xsf+xml":{"source":"iana","compressible":true,"extensions":["xsf"]},"application/pskc+xml":{"source":"iana","compressible":true,"extensions":["pskcxml"]},"application/pvd+json":{"source":"iana","compressible":true},"application/qsig":{"source":"iana"},"application/raml+yaml":{"compressible":true,"extensions":["raml"]},"application/raptorfec":{"source":"iana"},"application/rdap+json":{"source":"iana","compressible":true},"application/rdf+xml":{"source":"iana","compressible":true,"extensions":["rdf","owl"]},"application/reginfo+xml":{"source":"iana","compressible":true,"extensions":["rif"]},"application/relax-ng-compact-syntax":{"source":"iana","extensions":["rnc"]},"application/remote-printing":{"source":"apache"},"application/reputon+json":{"source":"iana","compressible":true},"application/resolve-response+jwt":{"source":"iana"},"application/resource-lists+xml":{"source":"iana","compressible":true,"extensions":["rl"]},"application/resource-lists-diff+xml":{"source":"iana","compressible":true,"extensions":["rld"]},"application/rfc+xml":{"source":"iana","compressible":true},"application/riscos":{"source":"iana"},"application/rlmi+xml":{"source":"iana","compressible":true},"application/rls-services+xml":{"source":"iana","compressible":true,"extensions":["rs"]},"application/route-apd+xml":{"source":"iana","compressible":true,"extensions":["rapd"]},"application/route-s-tsid+xml":{"source":"iana","compressible":true,"extensions":["sls"]},"application/route-usd+xml":{"source":"iana","compressible":true,"extensions":["rusd"]},"application/rpki-checklist":{"source":"iana"},"application/rpki-ghostbusters":{"source":"iana","extensions":["gbr"]},"application/rpki-manifest":{"source":"iana","extensions":["mft"]},"application/rpki-publication":{"source":"iana"},"application/rpki-roa":{"source":"iana","extensions":["roa"]},"application/rpki-signed-tal":{"source":"iana"},"application/rpki-updown":{"source":"iana"},"application/rsd+xml":{"source":"apache","compressible":true,"extensions":["rsd"]},"application/rss+xml":{"source":"apache","compressible":true,"extensions":["rss"]},"application/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"application/rtploopback":{"source":"iana"},"application/rtx":{"source":"iana"},"application/samlassertion+xml":{"source":"iana","compressible":true},"application/samlmetadata+xml":{"source":"iana","compressible":true},"application/sarif+json":{"source":"iana","compressible":true},"application/sarif-external-properties+json":{"source":"iana","compressible":true},"application/sbe":{"source":"iana"},"application/sbml+xml":{"source":"iana","compressible":true,"extensions":["sbml"]},"application/scaip+xml":{"source":"iana","compressible":true},"application/scim+json":{"source":"iana","compressible":true},"application/scvp-cv-request":{"source":"iana","extensions":["scq"]},"application/scvp-cv-response":{"source":"iana","extensions":["scs"]},"application/scvp-vp-request":{"source":"iana","extensions":["spq"]},"application/scvp-vp-response":{"source":"iana","extensions":["spp"]},"application/sdp":{"source":"iana","extensions":["sdp"]},"application/secevent+jwt":{"source":"iana"},"application/senml+cbor":{"source":"iana"},"application/senml+json":{"source":"iana","compressible":true},"application/senml+xml":{"source":"iana","compressible":true,"extensions":["senmlx"]},"application/senml-etch+cbor":{"source":"iana"},"application/senml-etch+json":{"source":"iana","compressible":true},"application/senml-exi":{"source":"iana"},"application/sensml+cbor":{"source":"iana"},"application/sensml+json":{"source":"iana","compressible":true},"application/sensml+xml":{"source":"iana","compressible":true,"extensions":["sensmlx"]},"application/sensml-exi":{"source":"iana"},"application/sep+xml":{"source":"iana","compressible":true},"application/sep-exi":{"source":"iana"},"application/session-info":{"source":"iana"},"application/set-payment":{"source":"iana"},"application/set-payment-initiation":{"source":"iana","extensions":["setpay"]},"application/set-registration":{"source":"iana"},"application/set-registration-initiation":{"source":"iana","extensions":["setreg"]},"application/sgml":{"source":"iana"},"application/sgml-open-catalog":{"source":"iana"},"application/shf+xml":{"source":"iana","compressible":true,"extensions":["shf"]},"application/sieve":{"source":"iana","extensions":["siv","sieve"]},"application/simple-filter+xml":{"source":"iana","compressible":true},"application/simple-message-summary":{"source":"iana"},"application/simplesymbolcontainer":{"source":"iana"},"application/sipc":{"source":"iana"},"application/slate":{"source":"iana"},"application/smil":{"source":"apache"},"application/smil+xml":{"source":"iana","compressible":true,"extensions":["smi","smil"]},"application/smpte336m":{"source":"iana"},"application/soap+fastinfoset":{"source":"iana"},"application/soap+xml":{"source":"iana","compressible":true},"application/sparql-query":{"source":"iana","extensions":["rq"]},"application/sparql-results+xml":{"source":"iana","compressible":true,"extensions":["srx"]},"application/spdx+json":{"source":"iana","compressible":true},"application/spirits-event+xml":{"source":"iana","compressible":true},"application/sql":{"source":"iana","extensions":["sql"]},"application/srgs":{"source":"iana","extensions":["gram"]},"application/srgs+xml":{"source":"iana","compressible":true,"extensions":["grxml"]},"application/sru+xml":{"source":"iana","compressible":true,"extensions":["sru"]},"application/ssdl+xml":{"source":"apache","compressible":true,"extensions":["ssdl"]},"application/sslkeylogfile":{"source":"iana"},"application/ssml+xml":{"source":"iana","compressible":true,"extensions":["ssml"]},"application/st2110-41":{"source":"iana"},"application/stix+json":{"source":"iana","compressible":true},"application/stratum":{"source":"iana"},"application/swid+cbor":{"source":"iana"},"application/swid+xml":{"source":"iana","compressible":true,"extensions":["swidtag"]},"application/tamp-apex-update":{"source":"iana"},"application/tamp-apex-update-confirm":{"source":"iana"},"application/tamp-community-update":{"source":"iana"},"application/tamp-community-update-confirm":{"source":"iana"},"application/tamp-error":{"source":"iana"},"application/tamp-sequence-adjust":{"source":"iana"},"application/tamp-sequence-adjust-confirm":{"source":"iana"},"application/tamp-status-query":{"source":"iana"},"application/tamp-status-response":{"source":"iana"},"application/tamp-update":{"source":"iana"},"application/tamp-update-confirm":{"source":"iana"},"application/tar":{"compressible":true},"application/taxii+json":{"source":"iana","compressible":true},"application/td+json":{"source":"iana","compressible":true},"application/tei+xml":{"source":"iana","compressible":true,"extensions":["tei","teicorpus"]},"application/tetra_isi":{"source":"iana"},"application/thraud+xml":{"source":"iana","compressible":true,"extensions":["tfi"]},"application/timestamp-query":{"source":"iana"},"application/timestamp-reply":{"source":"iana"},"application/timestamped-data":{"source":"iana","extensions":["tsd"]},"application/tlsrpt+gzip":{"source":"iana"},"application/tlsrpt+json":{"source":"iana","compressible":true},"application/tm+json":{"source":"iana","compressible":true},"application/tnauthlist":{"source":"iana"},"application/toc+cbor":{"source":"iana"},"application/token-introspection+jwt":{"source":"iana"},"application/toml":{"source":"iana","compressible":true,"extensions":["toml"]},"application/trickle-ice-sdpfrag":{"source":"iana"},"application/trig":{"source":"iana","extensions":["trig"]},"application/trust-chain+json":{"source":"iana","compressible":true},"application/trust-mark+jwt":{"source":"iana"},"application/trust-mark-delegation+jwt":{"source":"iana"},"application/ttml+xml":{"source":"iana","compressible":true,"extensions":["ttml"]},"application/tve-trigger":{"source":"iana"},"application/tzif":{"source":"iana"},"application/tzif-leap":{"source":"iana"},"application/ubjson":{"compressible":false,"extensions":["ubj"]},"application/uccs+cbor":{"source":"iana"},"application/ujcs+json":{"source":"iana","compressible":true},"application/ulpfec":{"source":"iana"},"application/urc-grpsheet+xml":{"source":"iana","compressible":true},"application/urc-ressheet+xml":{"source":"iana","compressible":true,"extensions":["rsheet"]},"application/urc-targetdesc+xml":{"source":"iana","compressible":true,"extensions":["td"]},"application/urc-uisocketdesc+xml":{"source":"iana","compressible":true},"application/vc":{"source":"iana"},"application/vc+cose":{"source":"iana"},"application/vc+jwt":{"source":"iana"},"application/vcard+json":{"source":"iana","compressible":true},"application/vcard+xml":{"source":"iana","compressible":true},"application/vemmi":{"source":"iana"},"application/vividence.scriptfile":{"source":"apache"},"application/vnd.1000minds.decision-model+xml":{"source":"iana","compressible":true,"extensions":["1km"]},"application/vnd.1ob":{"source":"iana"},"application/vnd.3gpp-prose+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3a+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3ach+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3ch+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc8+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-v2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.5gnas":{"source":"iana"},"application/vnd.3gpp.5gsa2x":{"source":"iana"},"application/vnd.3gpp.5gsa2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.5gsv2x":{"source":"iana"},"application/vnd.3gpp.5gsv2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.access-transfer-events+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.bsf+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.crs+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.current-location-discovery+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gmop+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gtpc":{"source":"iana"},"application/vnd.3gpp.interworking-data":{"source":"iana"},"application/vnd.3gpp.lpp":{"source":"iana"},"application/vnd.3gpp.mc-signalling-ear":{"source":"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-msgstore-ctrl-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-payload":{"source":"iana"},"application/vnd.3gpp.mcdata-regroup+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-signalling":{"source":"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-floor-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-regroup+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-signed+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-init-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-regroup+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-transmission-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mid-call+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ngap":{"source":"iana"},"application/vnd.3gpp.pfcp":{"source":"iana"},"application/vnd.3gpp.pic-bw-large":{"source":"iana","extensions":["plb"]},"application/vnd.3gpp.pic-bw-small":{"source":"iana","extensions":["psb"]},"application/vnd.3gpp.pic-bw-var":{"source":"iana","extensions":["pvb"]},"application/vnd.3gpp.pinapp-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.s1ap":{"source":"iana"},"application/vnd.3gpp.seal-group-doc+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-network-qos-management-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-ue-config-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-unicast-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-user-profile-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.sms":{"source":"iana"},"application/vnd.3gpp.sms+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-ext+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.state-and-event-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ussd+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.v2x":{"source":"iana"},"application/vnd.3gpp.vae-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.bcmcsinfo+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.sms":{"source":"iana"},"application/vnd.3gpp2.tcap":{"source":"iana","extensions":["tcap"]},"application/vnd.3lightssoftware.imagescal":{"source":"iana"},"application/vnd.3m.post-it-notes":{"source":"iana","extensions":["pwn"]},"application/vnd.accpac.simply.aso":{"source":"iana","extensions":["aso"]},"application/vnd.accpac.simply.imp":{"source":"iana","extensions":["imp"]},"application/vnd.acm.addressxfer+json":{"source":"iana","compressible":true},"application/vnd.acm.chatbot+json":{"source":"iana","compressible":true},"application/vnd.acucobol":{"source":"iana","extensions":["acu"]},"application/vnd.acucorp":{"source":"iana","extensions":["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{"source":"apache","compressible":false,"extensions":["air"]},"application/vnd.adobe.flash.movie":{"source":"iana"},"application/vnd.adobe.formscentral.fcdt":{"source":"iana","extensions":["fcdt"]},"application/vnd.adobe.fxp":{"source":"iana","extensions":["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{"source":"iana"},"application/vnd.adobe.xdp+xml":{"source":"iana","compressible":true,"extensions":["xdp"]},"application/vnd.adobe.xfdf":{"source":"apache","extensions":["xfdf"]},"application/vnd.aether.imp":{"source":"iana"},"application/vnd.afpc.afplinedata":{"source":"iana"},"application/vnd.afpc.afplinedata-pagedef":{"source":"iana"},"application/vnd.afpc.cmoca-cmresource":{"source":"iana"},"application/vnd.afpc.foca-charset":{"source":"iana"},"application/vnd.afpc.foca-codedfont":{"source":"iana"},"application/vnd.afpc.foca-codepage":{"source":"iana"},"application/vnd.afpc.modca":{"source":"iana"},"application/vnd.afpc.modca-cmtable":{"source":"iana"},"application/vnd.afpc.modca-formdef":{"source":"iana"},"application/vnd.afpc.modca-mediummap":{"source":"iana"},"application/vnd.afpc.modca-objectcontainer":{"source":"iana"},"application/vnd.afpc.modca-overlay":{"source":"iana"},"application/vnd.afpc.modca-pagesegment":{"source":"iana"},"application/vnd.age":{"source":"iana","extensions":["age"]},"application/vnd.ah-barcode":{"source":"apache"},"application/vnd.ahead.space":{"source":"iana","extensions":["ahead"]},"application/vnd.airzip.filesecure.azf":{"source":"iana","extensions":["azf"]},"application/vnd.airzip.filesecure.azs":{"source":"iana","extensions":["azs"]},"application/vnd.amadeus+json":{"source":"iana","compressible":true},"application/vnd.amazon.ebook":{"source":"apache","extensions":["azw"]},"application/vnd.amazon.mobi8-ebook":{"source":"iana"},"application/vnd.americandynamics.acc":{"source":"iana","extensions":["acc"]},"application/vnd.amiga.ami":{"source":"iana","extensions":["ami"]},"application/vnd.amundsen.maze+xml":{"source":"iana","compressible":true},"application/vnd.android.ota":{"source":"iana"},"application/vnd.android.package-archive":{"source":"apache","compressible":false,"extensions":["apk"]},"application/vnd.anki":{"source":"iana"},"application/vnd.anser-web-certificate-issue-initiation":{"source":"iana","extensions":["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{"source":"apache","extensions":["fti"]},"application/vnd.antix.game-component":{"source":"iana","extensions":["atx"]},"application/vnd.apache.arrow.file":{"source":"iana"},"application/vnd.apache.arrow.stream":{"source":"iana"},"application/vnd.apache.parquet":{"source":"iana"},"application/vnd.apache.thrift.binary":{"source":"iana"},"application/vnd.apache.thrift.compact":{"source":"iana"},"application/vnd.apache.thrift.json":{"source":"iana"},"application/vnd.apexlang":{"source":"iana"},"application/vnd.api+json":{"source":"iana","compressible":true},"application/vnd.aplextor.warrp+json":{"source":"iana","compressible":true},"application/vnd.apothekende.reservation+json":{"source":"iana","compressible":true},"application/vnd.apple.installer+xml":{"source":"iana","compressible":true,"extensions":["mpkg"]},"application/vnd.apple.keynote":{"source":"iana","extensions":["key"]},"application/vnd.apple.mpegurl":{"source":"iana","extensions":["m3u8"]},"application/vnd.apple.numbers":{"source":"iana","extensions":["numbers"]},"application/vnd.apple.pages":{"source":"iana","extensions":["pages"]},"application/vnd.apple.pkpass":{"compressible":false,"extensions":["pkpass"]},"application/vnd.arastra.swi":{"source":"apache"},"application/vnd.aristanetworks.swi":{"source":"iana","extensions":["swi"]},"application/vnd.artisan+json":{"source":"iana","compressible":true},"application/vnd.artsquare":{"source":"iana"},"application/vnd.astraea-software.iota":{"source":"iana","extensions":["iota"]},"application/vnd.audiograph":{"source":"iana","extensions":["aep"]},"application/vnd.autodesk.fbx":{"extensions":["fbx"]},"application/vnd.autopackage":{"source":"iana"},"application/vnd.avalon+json":{"source":"iana","compressible":true},"application/vnd.avistar+xml":{"source":"iana","compressible":true},"application/vnd.balsamiq.bmml+xml":{"source":"iana","compressible":true,"extensions":["bmml"]},"application/vnd.balsamiq.bmpr":{"source":"iana"},"application/vnd.banana-accounting":{"source":"iana"},"application/vnd.bbf.usp.error":{"source":"iana"},"application/vnd.bbf.usp.msg":{"source":"iana"},"application/vnd.bbf.usp.msg+json":{"source":"iana","compressible":true},"application/vnd.bekitzur-stech+json":{"source":"iana","compressible":true},"application/vnd.belightsoft.lhzd+zip":{"source":"iana","compressible":false},"application/vnd.belightsoft.lhzl+zip":{"source":"iana","compressible":false},"application/vnd.bint.med-content":{"source":"iana"},"application/vnd.biopax.rdf+xml":{"source":"iana","compressible":true},"application/vnd.blink-idb-value-wrapper":{"source":"iana"},"application/vnd.blueice.multipass":{"source":"iana","extensions":["mpm"]},"application/vnd.bluetooth.ep.oob":{"source":"iana"},"application/vnd.bluetooth.le.oob":{"source":"iana"},"application/vnd.bmi":{"source":"iana","extensions":["bmi"]},"application/vnd.bpf":{"source":"iana"},"application/vnd.bpf3":{"source":"iana"},"application/vnd.businessobjects":{"source":"iana","extensions":["rep"]},"application/vnd.byu.uapi+json":{"source":"iana","compressible":true},"application/vnd.bzip3":{"source":"iana"},"application/vnd.c3voc.schedule+xml":{"source":"iana","compressible":true},"application/vnd.cab-jscript":{"source":"iana"},"application/vnd.canon-cpdl":{"source":"iana"},"application/vnd.canon-lips":{"source":"iana"},"application/vnd.capasystems-pg+json":{"source":"iana","compressible":true},"application/vnd.cendio.thinlinc.clientconf":{"source":"iana"},"application/vnd.century-systems.tcp_stream":{"source":"iana"},"application/vnd.chemdraw+xml":{"source":"iana","compressible":true,"extensions":["cdxml"]},"application/vnd.chess-pgn":{"source":"iana"},"application/vnd.chipnuts.karaoke-mmd":{"source":"iana","extensions":["mmd"]},"application/vnd.ciedi":{"source":"iana"},"application/vnd.cinderella":{"source":"iana","extensions":["cdy"]},"application/vnd.cirpack.isdn-ext":{"source":"iana"},"application/vnd.citationstyles.style+xml":{"source":"iana","compressible":true,"extensions":["csl"]},"application/vnd.claymore":{"source":"iana","extensions":["cla"]},"application/vnd.cloanto.rp9":{"source":"iana","extensions":["rp9"]},"application/vnd.clonk.c4group":{"source":"iana","extensions":["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{"source":"iana","extensions":["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{"source":"iana","extensions":["c11amz"]},"application/vnd.cncf.helm.chart.content.v1.tar+gzip":{"source":"iana"},"application/vnd.cncf.helm.chart.provenance.v1.prov":{"source":"iana"},"application/vnd.cncf.helm.config.v1+json":{"source":"iana","compressible":true},"application/vnd.coffeescript":{"source":"iana"},"application/vnd.collabio.xodocuments.document":{"source":"iana"},"application/vnd.collabio.xodocuments.document-template":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation-template":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{"source":"iana"},"application/vnd.collection+json":{"source":"iana","compressible":true},"application/vnd.collection.doc+json":{"source":"iana","compressible":true},"application/vnd.collection.next+json":{"source":"iana","compressible":true},"application/vnd.comicbook+zip":{"source":"iana","compressible":false},"application/vnd.comicbook-rar":{"source":"iana"},"application/vnd.commerce-battelle":{"source":"iana"},"application/vnd.commonspace":{"source":"iana","extensions":["csp"]},"application/vnd.contact.cmsg":{"source":"iana","extensions":["cdbcmsg"]},"application/vnd.coreos.ignition+json":{"source":"iana","compressible":true},"application/vnd.cosmocaller":{"source":"iana","extensions":["cmc"]},"application/vnd.crick.clicker":{"source":"iana","extensions":["clkx"]},"application/vnd.crick.clicker.keyboard":{"source":"iana","extensions":["clkk"]},"application/vnd.crick.clicker.palette":{"source":"iana","extensions":["clkp"]},"application/vnd.crick.clicker.template":{"source":"iana","extensions":["clkt"]},"application/vnd.crick.clicker.wordbank":{"source":"iana","extensions":["clkw"]},"application/vnd.criticaltools.wbs+xml":{"source":"iana","compressible":true,"extensions":["wbs"]},"application/vnd.cryptii.pipe+json":{"source":"iana","compressible":true},"application/vnd.crypto-shade-file":{"source":"iana"},"application/vnd.cryptomator.encrypted":{"source":"iana"},"application/vnd.cryptomator.vault":{"source":"iana"},"application/vnd.ctc-posml":{"source":"iana","extensions":["pml"]},"application/vnd.ctct.ws+xml":{"source":"iana","compressible":true},"application/vnd.cups-pdf":{"source":"iana"},"application/vnd.cups-postscript":{"source":"iana"},"application/vnd.cups-ppd":{"source":"iana","extensions":["ppd"]},"application/vnd.cups-raster":{"source":"iana"},"application/vnd.cups-raw":{"source":"iana"},"application/vnd.curl":{"source":"iana"},"application/vnd.curl.car":{"source":"apache","extensions":["car"]},"application/vnd.curl.pcurl":{"source":"apache","extensions":["pcurl"]},"application/vnd.cyan.dean.root+xml":{"source":"iana","compressible":true},"application/vnd.cybank":{"source":"iana"},"application/vnd.cyclonedx+json":{"source":"iana","compressible":true},"application/vnd.cyclonedx+xml":{"source":"iana","compressible":true},"application/vnd.d2l.coursepackage1p0+zip":{"source":"iana","compressible":false},"application/vnd.d3m-dataset":{"source":"iana"},"application/vnd.d3m-problem":{"source":"iana"},"application/vnd.dart":{"source":"iana","compressible":true,"extensions":["dart"]},"application/vnd.data-vision.rdz":{"source":"iana","extensions":["rdz"]},"application/vnd.datalog":{"source":"iana"},"application/vnd.datapackage+json":{"source":"iana","compressible":true},"application/vnd.dataresource+json":{"source":"iana","compressible":true},"application/vnd.dbf":{"source":"iana","extensions":["dbf"]},"application/vnd.dcmp+xml":{"source":"iana","compressible":true,"extensions":["dcmp"]},"application/vnd.debian.binary-package":{"source":"iana"},"application/vnd.dece.data":{"source":"iana","extensions":["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{"source":"iana","compressible":true,"extensions":["uvt","uvvt"]},"application/vnd.dece.unspecified":{"source":"iana","extensions":["uvx","uvvx"]},"application/vnd.dece.zip":{"source":"iana","extensions":["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{"source":"iana","extensions":["fe_launch"]},"application/vnd.desmume.movie":{"source":"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{"source":"iana"},"application/vnd.dm.delegation+xml":{"source":"iana","compressible":true},"application/vnd.dna":{"source":"iana","extensions":["dna"]},"application/vnd.document+json":{"source":"iana","compressible":true},"application/vnd.dolby.mlp":{"source":"apache","extensions":["mlp"]},"application/vnd.dolby.mobile.1":{"source":"iana"},"application/vnd.dolby.mobile.2":{"source":"iana"},"application/vnd.doremir.scorecloud-binary-document":{"source":"iana"},"application/vnd.dpgraph":{"source":"iana","extensions":["dpg"]},"application/vnd.dreamfactory":{"source":"iana","extensions":["dfac"]},"application/vnd.drive+json":{"source":"iana","compressible":true},"application/vnd.ds-keypoint":{"source":"apache","extensions":["kpxx"]},"application/vnd.dtg.local":{"source":"iana"},"application/vnd.dtg.local.flash":{"source":"iana"},"application/vnd.dtg.local.html":{"source":"iana"},"application/vnd.dvb.ait":{"source":"iana","extensions":["ait"]},"application/vnd.dvb.dvbisl+xml":{"source":"iana","compressible":true},"application/vnd.dvb.dvbj":{"source":"iana"},"application/vnd.dvb.esgcontainer":{"source":"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess2":{"source":"iana"},"application/vnd.dvb.ipdcesgpdd":{"source":"iana"},"application/vnd.dvb.ipdcroaming":{"source":"iana"},"application/vnd.dvb.iptv.alfec-base":{"source":"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{"source":"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-container+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-generic+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-msglist+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-request+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-response+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-init+xml":{"source":"iana","compressible":true},"application/vnd.dvb.pfr":{"source":"iana"},"application/vnd.dvb.service":{"source":"iana","extensions":["svc"]},"application/vnd.dxr":{"source":"iana"},"application/vnd.dynageo":{"source":"iana","extensions":["geo"]},"application/vnd.dzr":{"source":"iana"},"application/vnd.easykaraoke.cdgdownload":{"source":"iana"},"application/vnd.ecdis-update":{"source":"iana"},"application/vnd.ecip.rlp":{"source":"iana"},"application/vnd.eclipse.ditto+json":{"source":"iana","compressible":true},"application/vnd.ecowin.chart":{"source":"iana","extensions":["mag"]},"application/vnd.ecowin.filerequest":{"source":"iana"},"application/vnd.ecowin.fileupdate":{"source":"iana"},"application/vnd.ecowin.series":{"source":"iana"},"application/vnd.ecowin.seriesrequest":{"source":"iana"},"application/vnd.ecowin.seriesupdate":{"source":"iana"},"application/vnd.efi.img":{"source":"iana"},"application/vnd.efi.iso":{"source":"iana"},"application/vnd.eln+zip":{"source":"iana","compressible":false},"application/vnd.emclient.accessrequest+xml":{"source":"iana","compressible":true},"application/vnd.enliven":{"source":"iana","extensions":["nml"]},"application/vnd.enphase.envoy":{"source":"iana"},"application/vnd.eprints.data+xml":{"source":"iana","compressible":true},"application/vnd.epson.esf":{"source":"iana","extensions":["esf"]},"application/vnd.epson.msf":{"source":"iana","extensions":["msf"]},"application/vnd.epson.quickanime":{"source":"iana","extensions":["qam"]},"application/vnd.epson.salt":{"source":"iana","extensions":["slt"]},"application/vnd.epson.ssf":{"source":"iana","extensions":["ssf"]},"application/vnd.ericsson.quickcall":{"source":"iana"},"application/vnd.erofs":{"source":"iana"},"application/vnd.espass-espass+zip":{"source":"iana","compressible":false},"application/vnd.eszigno3+xml":{"source":"iana","compressible":true,"extensions":["es3","et3"]},"application/vnd.etsi.aoc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.asic-e+zip":{"source":"iana","compressible":false},"application/vnd.etsi.asic-s+zip":{"source":"iana","compressible":false},"application/vnd.etsi.cug+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvcommand+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-bc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-cod+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-npvr+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvservice+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsync+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvueprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mcid+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mheg5":{"source":"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{"source":"iana","compressible":true},"application/vnd.etsi.pstn+xml":{"source":"iana","compressible":true},"application/vnd.etsi.sci+xml":{"source":"iana","compressible":true},"application/vnd.etsi.simservs+xml":{"source":"iana","compressible":true},"application/vnd.etsi.timestamp-token":{"source":"iana"},"application/vnd.etsi.tsl+xml":{"source":"iana","compressible":true},"application/vnd.etsi.tsl.der":{"source":"iana"},"application/vnd.eu.kasparian.car+json":{"source":"iana","compressible":true},"application/vnd.eudora.data":{"source":"iana"},"application/vnd.evolv.ecig.profile":{"source":"iana"},"application/vnd.evolv.ecig.settings":{"source":"iana"},"application/vnd.evolv.ecig.theme":{"source":"iana"},"application/vnd.exstream-empower+zip":{"source":"iana","compressible":false},"application/vnd.exstream-package":{"source":"iana"},"application/vnd.ezpix-album":{"source":"iana","extensions":["ez2"]},"application/vnd.ezpix-package":{"source":"iana","extensions":["ez3"]},"application/vnd.f-secure.mobile":{"source":"iana"},"application/vnd.familysearch.gedcom+zip":{"source":"iana","compressible":false},"application/vnd.fastcopy-disk-image":{"source":"iana"},"application/vnd.fdf":{"source":"apache","extensions":["fdf"]},"application/vnd.fdsn.mseed":{"source":"iana","extensions":["mseed"]},"application/vnd.fdsn.seed":{"source":"iana","extensions":["seed","dataless"]},"application/vnd.fdsn.stationxml+xml":{"source":"iana","charset":"XML-BASED","compressible":true},"application/vnd.ffsns":{"source":"iana"},"application/vnd.ficlab.flb+zip":{"source":"iana","compressible":false},"application/vnd.filmit.zfc":{"source":"iana"},"application/vnd.fints":{"source":"iana"},"application/vnd.firemonkeys.cloudcell":{"source":"iana"},"application/vnd.flographit":{"source":"iana","extensions":["gph"]},"application/vnd.fluxtime.clip":{"source":"iana","extensions":["ftc"]},"application/vnd.font-fontforge-sfd":{"source":"iana"},"application/vnd.framemaker":{"source":"iana","extensions":["fm","frame","maker","book"]},"application/vnd.freelog.comic":{"source":"iana"},"application/vnd.frogans.fnc":{"source":"apache","extensions":["fnc"]},"application/vnd.frogans.ltf":{"source":"apache","extensions":["ltf"]},"application/vnd.fsc.weblaunch":{"source":"iana","extensions":["fsc"]},"application/vnd.fujifilm.fb.docuworks":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.container":{"source":"iana"},"application/vnd.fujifilm.fb.jfi+xml":{"source":"iana","compressible":true},"application/vnd.fujitsu.oasys":{"source":"iana","extensions":["oas"]},"application/vnd.fujitsu.oasys2":{"source":"iana","extensions":["oa2"]},"application/vnd.fujitsu.oasys3":{"source":"iana","extensions":["oa3"]},"application/vnd.fujitsu.oasysgp":{"source":"iana","extensions":["fg5"]},"application/vnd.fujitsu.oasysprs":{"source":"iana","extensions":["bh2"]},"application/vnd.fujixerox.art-ex":{"source":"iana"},"application/vnd.fujixerox.art4":{"source":"iana"},"application/vnd.fujixerox.ddd":{"source":"iana","extensions":["ddd"]},"application/vnd.fujixerox.docuworks":{"source":"iana","extensions":["xdw"]},"application/vnd.fujixerox.docuworks.binder":{"source":"iana","extensions":["xbd"]},"application/vnd.fujixerox.docuworks.container":{"source":"iana"},"application/vnd.fujixerox.hbpl":{"source":"iana"},"application/vnd.fut-misnet":{"source":"iana"},"application/vnd.futoin+cbor":{"source":"iana"},"application/vnd.futoin+json":{"source":"iana","compressible":true},"application/vnd.fuzzysheet":{"source":"iana","extensions":["fzs"]},"application/vnd.ga4gh.passport+jwt":{"source":"iana"},"application/vnd.genomatix.tuxedo":{"source":"iana","extensions":["txd"]},"application/vnd.genozip":{"source":"iana"},"application/vnd.gentics.grd+json":{"source":"iana","compressible":true},"application/vnd.gentoo.catmetadata+xml":{"source":"iana","compressible":true},"application/vnd.gentoo.ebuild":{"source":"iana"},"application/vnd.gentoo.eclass":{"source":"iana"},"application/vnd.gentoo.gpkg":{"source":"iana"},"application/vnd.gentoo.manifest":{"source":"iana"},"application/vnd.gentoo.pkgmetadata+xml":{"source":"iana","compressible":true},"application/vnd.gentoo.xpak":{"source":"iana"},"application/vnd.geo+json":{"source":"apache","compressible":true},"application/vnd.geocube+xml":{"source":"apache","compressible":true},"application/vnd.geogebra.file":{"source":"iana","extensions":["ggb"]},"application/vnd.geogebra.pinboard":{"source":"iana"},"application/vnd.geogebra.slides":{"source":"iana","extensions":["ggs"]},"application/vnd.geogebra.tool":{"source":"iana","extensions":["ggt"]},"application/vnd.geometry-explorer":{"source":"iana","extensions":["gex","gre"]},"application/vnd.geonext":{"source":"iana","extensions":["gxt"]},"application/vnd.geoplan":{"source":"iana","extensions":["g2w"]},"application/vnd.geospace":{"source":"iana","extensions":["g3w"]},"application/vnd.gerber":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt-response":{"source":"iana"},"application/vnd.gmx":{"source":"iana","extensions":["gmx"]},"application/vnd.gnu.taler.exchange+json":{"source":"iana","compressible":true},"application/vnd.gnu.taler.merchant+json":{"source":"iana","compressible":true},"application/vnd.google-apps.audio":{},"application/vnd.google-apps.document":{"compressible":false,"extensions":["gdoc"]},"application/vnd.google-apps.drawing":{"compressible":false,"extensions":["gdraw"]},"application/vnd.google-apps.drive-sdk":{"compressible":false},"application/vnd.google-apps.file":{},"application/vnd.google-apps.folder":{"compressible":false},"application/vnd.google-apps.form":{"compressible":false,"extensions":["gform"]},"application/vnd.google-apps.fusiontable":{},"application/vnd.google-apps.jam":{"compressible":false,"extensions":["gjam"]},"application/vnd.google-apps.mail-layout":{},"application/vnd.google-apps.map":{"compressible":false,"extensions":["gmap"]},"application/vnd.google-apps.photo":{},"application/vnd.google-apps.presentation":{"compressible":false,"extensions":["gslides"]},"application/vnd.google-apps.script":{"compressible":false,"extensions":["gscript"]},"application/vnd.google-apps.shortcut":{},"application/vnd.google-apps.site":{"compressible":false,"extensions":["gsite"]},"application/vnd.google-apps.spreadsheet":{"compressible":false,"extensions":["gsheet"]},"application/vnd.google-apps.unknown":{},"application/vnd.google-apps.video":{},"application/vnd.google-earth.kml+xml":{"source":"iana","compressible":true,"extensions":["kml"]},"application/vnd.google-earth.kmz":{"source":"iana","compressible":false,"extensions":["kmz"]},"application/vnd.gov.sk.e-form+xml":{"source":"apache","compressible":true},"application/vnd.gov.sk.e-form+zip":{"source":"iana","compressible":false},"application/vnd.gov.sk.xmldatacontainer+xml":{"source":"iana","compressible":true,"extensions":["xdcf"]},"application/vnd.gpxsee.map+xml":{"source":"iana","compressible":true},"application/vnd.grafeq":{"source":"iana","extensions":["gqf","gqs"]},"application/vnd.gridmp":{"source":"iana"},"application/vnd.groove-account":{"source":"iana","extensions":["gac"]},"application/vnd.groove-help":{"source":"iana","extensions":["ghf"]},"application/vnd.groove-identity-message":{"source":"iana","extensions":["gim"]},"application/vnd.groove-injector":{"source":"iana","extensions":["grv"]},"application/vnd.groove-tool-message":{"source":"iana","extensions":["gtm"]},"application/vnd.groove-tool-template":{"source":"iana","extensions":["tpl"]},"application/vnd.groove-vcard":{"source":"iana","extensions":["vcg"]},"application/vnd.hal+json":{"source":"iana","compressible":true},"application/vnd.hal+xml":{"source":"iana","compressible":true,"extensions":["hal"]},"application/vnd.handheld-entertainment+xml":{"source":"iana","compressible":true,"extensions":["zmm"]},"application/vnd.hbci":{"source":"iana","extensions":["hbci"]},"application/vnd.hc+json":{"source":"iana","compressible":true},"application/vnd.hcl-bireports":{"source":"iana"},"application/vnd.hdt":{"source":"iana"},"application/vnd.heroku+json":{"source":"iana","compressible":true},"application/vnd.hhe.lesson-player":{"source":"iana","extensions":["les"]},"application/vnd.hp-hpgl":{"source":"iana","extensions":["hpgl"]},"application/vnd.hp-hpid":{"source":"iana","extensions":["hpid"]},"application/vnd.hp-hps":{"source":"iana","extensions":["hps"]},"application/vnd.hp-jlyt":{"source":"iana","extensions":["jlt"]},"application/vnd.hp-pcl":{"source":"iana","extensions":["pcl"]},"application/vnd.hp-pclxl":{"source":"iana","extensions":["pclxl"]},"application/vnd.hsl":{"source":"iana"},"application/vnd.httphone":{"source":"iana"},"application/vnd.hydrostatix.sof-data":{"source":"iana","extensions":["sfd-hdstx"]},"application/vnd.hyper+json":{"source":"iana","compressible":true},"application/vnd.hyper-item+json":{"source":"iana","compressible":true},"application/vnd.hyperdrive+json":{"source":"iana","compressible":true},"application/vnd.hzn-3d-crossword":{"source":"iana"},"application/vnd.ibm.afplinedata":{"source":"apache"},"application/vnd.ibm.electronic-media":{"source":"iana"},"application/vnd.ibm.minipay":{"source":"iana","extensions":["mpy"]},"application/vnd.ibm.modcap":{"source":"apache","extensions":["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{"source":"iana","extensions":["irm"]},"application/vnd.ibm.secure-container":{"source":"iana","extensions":["sc"]},"application/vnd.iccprofile":{"source":"iana","extensions":["icc","icm"]},"application/vnd.ieee.1905":{"source":"iana"},"application/vnd.igloader":{"source":"iana","extensions":["igl"]},"application/vnd.imagemeter.folder+zip":{"source":"iana","compressible":false},"application/vnd.imagemeter.image+zip":{"source":"iana","compressible":false},"application/vnd.immervision-ivp":{"source":"iana","extensions":["ivp"]},"application/vnd.immervision-ivu":{"source":"iana","extensions":["ivu"]},"application/vnd.ims.imsccv1p1":{"source":"iana"},"application/vnd.ims.imsccv1p2":{"source":"iana"},"application/vnd.ims.imsccv1p3":{"source":"iana"},"application/vnd.ims.lis.v2.result+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy.id+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings.simple+json":{"source":"iana","compressible":true},"application/vnd.informedcontrol.rms+xml":{"source":"iana","compressible":true},"application/vnd.informix-visionary":{"source":"apache"},"application/vnd.infotech.project":{"source":"iana"},"application/vnd.infotech.project+xml":{"source":"iana","compressible":true},"application/vnd.innopath.wamp.notification":{"source":"iana"},"application/vnd.insors.igm":{"source":"iana","extensions":["igm"]},"application/vnd.intercon.formnet":{"source":"iana","extensions":["xpw","xpx"]},"application/vnd.intergeo":{"source":"iana","extensions":["i2g"]},"application/vnd.intertrust.digibox":{"source":"iana"},"application/vnd.intertrust.nncp":{"source":"iana"},"application/vnd.intu.qbo":{"source":"iana","extensions":["qbo"]},"application/vnd.intu.qfx":{"source":"iana","extensions":["qfx"]},"application/vnd.ipfs.ipns-record":{"source":"iana"},"application/vnd.ipld.car":{"source":"iana"},"application/vnd.ipld.dag-cbor":{"source":"iana"},"application/vnd.ipld.dag-json":{"source":"iana"},"application/vnd.ipld.raw":{"source":"iana"},"application/vnd.iptc.g2.catalogitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.conceptitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.knowledgeitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsmessage+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.packageitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.planningitem+xml":{"source":"iana","compressible":true},"application/vnd.ipunplugged.rcprofile":{"source":"iana","extensions":["rcprofile"]},"application/vnd.irepository.package+xml":{"source":"iana","compressible":true,"extensions":["irp"]},"application/vnd.is-xpr":{"source":"iana","extensions":["xpr"]},"application/vnd.isac.fcs":{"source":"iana","extensions":["fcs"]},"application/vnd.iso11783-10+zip":{"source":"iana","compressible":false},"application/vnd.jam":{"source":"iana","extensions":["jam"]},"application/vnd.japannet-directory-service":{"source":"iana"},"application/vnd.japannet-jpnstore-wakeup":{"source":"iana"},"application/vnd.japannet-payment-wakeup":{"source":"iana"},"application/vnd.japannet-registration":{"source":"iana"},"application/vnd.japannet-registration-wakeup":{"source":"iana"},"application/vnd.japannet-setstore-wakeup":{"source":"iana"},"application/vnd.japannet-verification":{"source":"iana"},"application/vnd.japannet-verification-wakeup":{"source":"iana"},"application/vnd.jcp.javame.midlet-rms":{"source":"iana","extensions":["rms"]},"application/vnd.jisp":{"source":"iana","extensions":["jisp"]},"application/vnd.joost.joda-archive":{"source":"iana","extensions":["joda"]},"application/vnd.jsk.isdn-ngn":{"source":"iana"},"application/vnd.kahootz":{"source":"iana","extensions":["ktz","ktr"]},"application/vnd.kde.karbon":{"source":"iana","extensions":["karbon"]},"application/vnd.kde.kchart":{"source":"iana","extensions":["chrt"]},"application/vnd.kde.kformula":{"source":"iana","extensions":["kfo"]},"application/vnd.kde.kivio":{"source":"iana","extensions":["flw"]},"application/vnd.kde.kontour":{"source":"iana","extensions":["kon"]},"application/vnd.kde.kpresenter":{"source":"iana","extensions":["kpr","kpt"]},"application/vnd.kde.kspread":{"source":"iana","extensions":["ksp"]},"application/vnd.kde.kword":{"source":"iana","extensions":["kwd","kwt"]},"application/vnd.kdl":{"source":"iana"},"application/vnd.kenameaapp":{"source":"iana","extensions":["htke"]},"application/vnd.keyman.kmp+zip":{"source":"iana","compressible":false},"application/vnd.keyman.kmx":{"source":"iana"},"application/vnd.kidspiration":{"source":"iana","extensions":["kia"]},"application/vnd.kinar":{"source":"iana","extensions":["kne","knp"]},"application/vnd.koan":{"source":"iana","extensions":["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{"source":"iana","extensions":["sse"]},"application/vnd.las":{"source":"iana"},"application/vnd.las.las+json":{"source":"iana","compressible":true},"application/vnd.las.las+xml":{"source":"iana","compressible":true,"extensions":["lasxml"]},"application/vnd.laszip":{"source":"iana"},"application/vnd.ldev.productlicensing":{"source":"iana"},"application/vnd.leap+json":{"source":"iana","compressible":true},"application/vnd.liberty-request+xml":{"source":"iana","compressible":true},"application/vnd.llamagraphics.life-balance.desktop":{"source":"iana","extensions":["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{"source":"iana","compressible":true,"extensions":["lbe"]},"application/vnd.logipipe.circuit+zip":{"source":"iana","compressible":false},"application/vnd.loom":{"source":"iana"},"application/vnd.lotus-1-2-3":{"source":"iana","extensions":["123"]},"application/vnd.lotus-approach":{"source":"iana","extensions":["apr"]},"application/vnd.lotus-freelance":{"source":"iana","extensions":["pre"]},"application/vnd.lotus-notes":{"source":"iana","extensions":["nsf"]},"application/vnd.lotus-organizer":{"source":"iana","extensions":["org"]},"application/vnd.lotus-screencam":{"source":"iana","extensions":["scm"]},"application/vnd.lotus-wordpro":{"source":"iana","extensions":["lwp"]},"application/vnd.macports.portpkg":{"source":"iana","extensions":["portpkg"]},"application/vnd.mapbox-vector-tile":{"source":"iana","extensions":["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.conftoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.license+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.mdcf":{"source":"iana"},"application/vnd.mason+json":{"source":"iana","compressible":true},"application/vnd.maxar.archive.3tz+zip":{"source":"iana","compressible":false},"application/vnd.maxmind.maxmind-db":{"source":"iana"},"application/vnd.mcd":{"source":"iana","extensions":["mcd"]},"application/vnd.mdl":{"source":"iana"},"application/vnd.mdl-mbsdf":{"source":"iana"},"application/vnd.medcalcdata":{"source":"iana","extensions":["mc1"]},"application/vnd.mediastation.cdkey":{"source":"iana","extensions":["cdkey"]},"application/vnd.medicalholodeck.recordxr":{"source":"iana"},"application/vnd.meridian-slingshot":{"source":"iana"},"application/vnd.mermaid":{"source":"iana"},"application/vnd.mfer":{"source":"iana","extensions":["mwf"]},"application/vnd.mfmp":{"source":"iana","extensions":["mfm"]},"application/vnd.micro+json":{"source":"iana","compressible":true},"application/vnd.micrografx.flo":{"source":"iana","extensions":["flo"]},"application/vnd.micrografx.igx":{"source":"iana","extensions":["igx"]},"application/vnd.microsoft.portable-executable":{"source":"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{"source":"iana"},"application/vnd.miele+json":{"source":"iana","compressible":true},"application/vnd.mif":{"source":"iana","extensions":["mif"]},"application/vnd.minisoft-hp3000-save":{"source":"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{"source":"iana"},"application/vnd.mobius.daf":{"source":"iana","extensions":["daf"]},"application/vnd.mobius.dis":{"source":"iana","extensions":["dis"]},"application/vnd.mobius.mbk":{"source":"iana","extensions":["mbk"]},"application/vnd.mobius.mqy":{"source":"iana","extensions":["mqy"]},"application/vnd.mobius.msl":{"source":"iana","extensions":["msl"]},"application/vnd.mobius.plc":{"source":"iana","extensions":["plc"]},"application/vnd.mobius.txf":{"source":"iana","extensions":["txf"]},"application/vnd.modl":{"source":"iana"},"application/vnd.mophun.application":{"source":"iana","extensions":["mpn"]},"application/vnd.mophun.certificate":{"source":"iana","extensions":["mpc"]},"application/vnd.motorola.flexsuite":{"source":"iana"},"application/vnd.motorola.flexsuite.adsi":{"source":"iana"},"application/vnd.motorola.flexsuite.fis":{"source":"iana"},"application/vnd.motorola.flexsuite.gotap":{"source":"iana"},"application/vnd.motorola.flexsuite.kmr":{"source":"iana"},"application/vnd.motorola.flexsuite.ttc":{"source":"iana"},"application/vnd.motorola.flexsuite.wem":{"source":"iana"},"application/vnd.motorola.iprm":{"source":"iana"},"application/vnd.mozilla.xul+xml":{"source":"iana","compressible":true,"extensions":["xul"]},"application/vnd.ms-3mfdocument":{"source":"iana"},"application/vnd.ms-artgalry":{"source":"iana","extensions":["cil"]},"application/vnd.ms-asf":{"source":"iana"},"application/vnd.ms-cab-compressed":{"source":"iana","extensions":["cab"]},"application/vnd.ms-color.iccprofile":{"source":"apache"},"application/vnd.ms-excel":{"source":"iana","compressible":false,"extensions":["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{"source":"iana","extensions":["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{"source":"iana","extensions":["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{"source":"iana","extensions":["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{"source":"iana","extensions":["xltm"]},"application/vnd.ms-fontobject":{"source":"iana","compressible":true,"extensions":["eot"]},"application/vnd.ms-htmlhelp":{"source":"iana","extensions":["chm"]},"application/vnd.ms-ims":{"source":"iana","extensions":["ims"]},"application/vnd.ms-lrm":{"source":"iana","extensions":["lrm"]},"application/vnd.ms-office.activex+xml":{"source":"iana","compressible":true},"application/vnd.ms-officetheme":{"source":"iana","extensions":["thmx"]},"application/vnd.ms-opentype":{"source":"apache","compressible":true},"application/vnd.ms-outlook":{"compressible":false,"extensions":["msg"]},"application/vnd.ms-package.obfuscated-opentype":{"source":"apache"},"application/vnd.ms-pki.seccat":{"source":"apache","extensions":["cat"]},"application/vnd.ms-pki.stl":{"source":"apache","extensions":["stl"]},"application/vnd.ms-playready.initiator+xml":{"source":"iana","compressible":true},"application/vnd.ms-powerpoint":{"source":"iana","compressible":false,"extensions":["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{"source":"iana","extensions":["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{"source":"iana","extensions":["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{"source":"iana","extensions":["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{"source":"iana","extensions":["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{"source":"iana","extensions":["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{"source":"iana","compressible":true},"application/vnd.ms-printing.printticket+xml":{"source":"apache","compressible":true},"application/vnd.ms-printschematicket+xml":{"source":"iana","compressible":true},"application/vnd.ms-project":{"source":"iana","extensions":["mpp","mpt"]},"application/vnd.ms-tnef":{"source":"iana"},"application/vnd.ms-visio.viewer":{"extensions":["vdx"]},"application/vnd.ms-windows.devicepairing":{"source":"iana"},"application/vnd.ms-windows.nwprinting.oob":{"source":"iana"},"application/vnd.ms-windows.printerpairing":{"source":"iana"},"application/vnd.ms-windows.wsd.oob":{"source":"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.lic-resp":{"source":"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.meter-resp":{"source":"iana"},"application/vnd.ms-word.document.macroenabled.12":{"source":"iana","extensions":["docm"]},"application/vnd.ms-word.template.macroenabled.12":{"source":"iana","extensions":["dotm"]},"application/vnd.ms-works":{"source":"iana","extensions":["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{"source":"iana","extensions":["wpl"]},"application/vnd.ms-xpsdocument":{"source":"iana","compressible":false,"extensions":["xps"]},"application/vnd.msa-disk-image":{"source":"iana"},"application/vnd.mseq":{"source":"iana","extensions":["mseq"]},"application/vnd.msgpack":{"source":"iana"},"application/vnd.msign":{"source":"iana"},"application/vnd.multiad.creator":{"source":"iana"},"application/vnd.multiad.creator.cif":{"source":"iana"},"application/vnd.music-niff":{"source":"iana"},"application/vnd.musician":{"source":"iana","extensions":["mus"]},"application/vnd.muvee.style":{"source":"iana","extensions":["msty"]},"application/vnd.mynfc":{"source":"iana","extensions":["taglet"]},"application/vnd.nacamar.ybrid+json":{"source":"iana","compressible":true},"application/vnd.nato.bindingdataobject+cbor":{"source":"iana"},"application/vnd.nato.bindingdataobject+json":{"source":"iana","compressible":true},"application/vnd.nato.bindingdataobject+xml":{"source":"iana","compressible":true,"extensions":["bdo"]},"application/vnd.nato.openxmlformats-package.iepd+zip":{"source":"iana","compressible":false},"application/vnd.ncd.control":{"source":"iana"},"application/vnd.ncd.reference":{"source":"iana"},"application/vnd.nearst.inv+json":{"source":"iana","compressible":true},"application/vnd.nebumind.line":{"source":"iana"},"application/vnd.nervana":{"source":"iana"},"application/vnd.netfpx":{"source":"iana"},"application/vnd.neurolanguage.nlu":{"source":"iana","extensions":["nlu"]},"application/vnd.nimn":{"source":"iana"},"application/vnd.nintendo.nitro.rom":{"source":"iana"},"application/vnd.nintendo.snes.rom":{"source":"iana"},"application/vnd.nitf":{"source":"iana","extensions":["ntf","nitf"]},"application/vnd.noblenet-directory":{"source":"iana","extensions":["nnd"]},"application/vnd.noblenet-sealer":{"source":"iana","extensions":["nns"]},"application/vnd.noblenet-web":{"source":"iana","extensions":["nnw"]},"application/vnd.nokia.catalogs":{"source":"iana"},"application/vnd.nokia.conml+wbxml":{"source":"iana"},"application/vnd.nokia.conml+xml":{"source":"iana","compressible":true},"application/vnd.nokia.iptv.config+xml":{"source":"iana","compressible":true},"application/vnd.nokia.isds-radio-presets":{"source":"iana"},"application/vnd.nokia.landmark+wbxml":{"source":"iana"},"application/vnd.nokia.landmark+xml":{"source":"iana","compressible":true},"application/vnd.nokia.landmarkcollection+xml":{"source":"iana","compressible":true},"application/vnd.nokia.n-gage.ac+xml":{"source":"iana","compressible":true,"extensions":["ac"]},"application/vnd.nokia.n-gage.data":{"source":"iana","extensions":["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{"source":"apache","extensions":["n-gage"]},"application/vnd.nokia.ncd":{"source":"iana"},"application/vnd.nokia.pcd+wbxml":{"source":"iana"},"application/vnd.nokia.pcd+xml":{"source":"iana","compressible":true},"application/vnd.nokia.radio-preset":{"source":"iana","extensions":["rpst"]},"application/vnd.nokia.radio-presets":{"source":"iana","extensions":["rpss"]},"application/vnd.novadigm.edm":{"source":"iana","extensions":["edm"]},"application/vnd.novadigm.edx":{"source":"iana","extensions":["edx"]},"application/vnd.novadigm.ext":{"source":"iana","extensions":["ext"]},"application/vnd.ntt-local.content-share":{"source":"iana"},"application/vnd.ntt-local.file-transfer":{"source":"iana"},"application/vnd.ntt-local.ogw_remote-access":{"source":"iana"},"application/vnd.ntt-local.sip-ta_remote":{"source":"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{"source":"iana"},"application/vnd.oai.workflows":{"source":"iana"},"application/vnd.oai.workflows+json":{"source":"iana","compressible":true},"application/vnd.oai.workflows+yaml":{"source":"iana"},"application/vnd.oasis.opendocument.base":{"source":"iana"},"application/vnd.oasis.opendocument.chart":{"source":"iana","extensions":["odc"]},"application/vnd.oasis.opendocument.chart-template":{"source":"iana","extensions":["otc"]},"application/vnd.oasis.opendocument.database":{"source":"apache","extensions":["odb"]},"application/vnd.oasis.opendocument.formula":{"source":"iana","extensions":["odf"]},"application/vnd.oasis.opendocument.formula-template":{"source":"iana","extensions":["odft"]},"application/vnd.oasis.opendocument.graphics":{"source":"iana","compressible":false,"extensions":["odg"]},"application/vnd.oasis.opendocument.graphics-template":{"source":"iana","extensions":["otg"]},"application/vnd.oasis.opendocument.image":{"source":"iana","extensions":["odi"]},"application/vnd.oasis.opendocument.image-template":{"source":"iana","extensions":["oti"]},"application/vnd.oasis.opendocument.presentation":{"source":"iana","compressible":false,"extensions":["odp"]},"application/vnd.oasis.opendocument.presentation-template":{"source":"iana","extensions":["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{"source":"iana","compressible":false,"extensions":["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{"source":"iana","extensions":["ots"]},"application/vnd.oasis.opendocument.text":{"source":"iana","compressible":false,"extensions":["odt"]},"application/vnd.oasis.opendocument.text-master":{"source":"iana","extensions":["odm"]},"application/vnd.oasis.opendocument.text-master-template":{"source":"iana"},"application/vnd.oasis.opendocument.text-template":{"source":"iana","extensions":["ott"]},"application/vnd.oasis.opendocument.text-web":{"source":"iana","extensions":["oth"]},"application/vnd.obn":{"source":"iana"},"application/vnd.ocf+cbor":{"source":"iana"},"application/vnd.oci.image.manifest.v1+json":{"source":"iana","compressible":true},"application/vnd.oftn.l10n+json":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessdownload+xml":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessstreaming+xml":{"source":"iana","compressible":true},"application/vnd.oipf.cspg-hexbinary":{"source":"iana"},"application/vnd.oipf.dae.svg+xml":{"source":"iana","compressible":true},"application/vnd.oipf.dae.xhtml+xml":{"source":"iana","compressible":true},"application/vnd.oipf.mippvcontrolmessage+xml":{"source":"iana","compressible":true},"application/vnd.oipf.pae.gem":{"source":"iana"},"application/vnd.oipf.spdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.oipf.spdlist+xml":{"source":"iana","compressible":true},"application/vnd.oipf.ueprofile+xml":{"source":"iana","compressible":true},"application/vnd.oipf.userprofile+xml":{"source":"iana","compressible":true},"application/vnd.olpc-sugar":{"source":"iana","extensions":["xo"]},"application/vnd.oma-scws-config":{"source":"iana"},"application/vnd.oma-scws-http-request":{"source":"iana"},"application/vnd.oma-scws-http-response":{"source":"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.drm-trigger+xml":{"source":"apache","compressible":true},"application/vnd.oma.bcast.imd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.ltkm":{"source":"iana"},"application/vnd.oma.bcast.notification+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.provisioningtrigger":{"source":"iana"},"application/vnd.oma.bcast.sgboot":{"source":"iana"},"application/vnd.oma.bcast.sgdd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sgdu":{"source":"iana"},"application/vnd.oma.bcast.simple-symbol-container":{"source":"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{"source":"apache","compressible":true},"application/vnd.oma.bcast.sprov+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.stkm":{"source":"iana"},"application/vnd.oma.cab-address-book+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-feature-handler+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-pcc+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-subs-invite+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-user-prefs+xml":{"source":"iana","compressible":true},"application/vnd.oma.dcd":{"source":"iana"},"application/vnd.oma.dcdc":{"source":"iana"},"application/vnd.oma.dd2+xml":{"source":"iana","compressible":true,"extensions":["dd2"]},"application/vnd.oma.drm.risd+xml":{"source":"iana","compressible":true},"application/vnd.oma.group-usage-list+xml":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+cbor":{"source":"iana"},"application/vnd.oma.lwm2m+json":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+tlv":{"source":"iana"},"application/vnd.oma.pal+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.detailed-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.final-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.groups+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.invocation-descriptor+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.optimized-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.push":{"source":"iana"},"application/vnd.oma.scidm.messages+xml":{"source":"iana","compressible":true},"application/vnd.oma.xcap-directory+xml":{"source":"iana","compressible":true},"application/vnd.omads-email+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-file+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-folder+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omaloc-supl-init":{"source":"iana"},"application/vnd.onepager":{"source":"iana"},"application/vnd.onepagertamp":{"source":"iana"},"application/vnd.onepagertamx":{"source":"iana"},"application/vnd.onepagertat":{"source":"iana"},"application/vnd.onepagertatp":{"source":"iana"},"application/vnd.onepagertatx":{"source":"iana"},"application/vnd.onvif.metadata":{"source":"iana"},"application/vnd.openblox.game+xml":{"source":"iana","compressible":true,"extensions":["obgx"]},"application/vnd.openblox.game-binary":{"source":"iana"},"application/vnd.openeye.oeb":{"source":"iana"},"application/vnd.openofficeorg.extension":{"source":"apache","extensions":["oxt"]},"application/vnd.openstreetmap.data+xml":{"source":"iana","compressible":true,"extensions":["osm"]},"application/vnd.opentimestamps.ots":{"source":"iana"},"application/vnd.openvpi.dspx+json":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawing+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{"source":"iana","compressible":false,"extensions":["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slide":{"source":"iana","extensions":["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{"source":"iana","extensions":["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.template":{"source":"iana","extensions":["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"source":"iana","compressible":false,"extensions":["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{"source":"iana","extensions":["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.theme+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.vmldrawing":{"source":"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"source":"iana","compressible":false,"extensions":["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{"source":"iana","extensions":["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.core-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.relationships+xml":{"source":"iana","compressible":true},"application/vnd.oracle.resource+json":{"source":"iana","compressible":true},"application/vnd.orange.indata":{"source":"iana"},"application/vnd.osa.netdeploy":{"source":"iana"},"application/vnd.osgeo.mapguide.package":{"source":"iana","extensions":["mgp"]},"application/vnd.osgi.bundle":{"source":"iana"},"application/vnd.osgi.dp":{"source":"iana","extensions":["dp"]},"application/vnd.osgi.subsystem":{"source":"iana","extensions":["esa"]},"application/vnd.otps.ct-kip+xml":{"source":"iana","compressible":true},"application/vnd.oxli.countgraph":{"source":"iana"},"application/vnd.pagerduty+json":{"source":"iana","compressible":true},"application/vnd.palm":{"source":"iana","extensions":["pdb","pqa","oprc"]},"application/vnd.panoply":{"source":"iana"},"application/vnd.paos.xml":{"source":"iana"},"application/vnd.patentdive":{"source":"iana"},"application/vnd.patientecommsdoc":{"source":"iana"},"application/vnd.pawaafile":{"source":"iana","extensions":["paw"]},"application/vnd.pcos":{"source":"iana"},"application/vnd.pg.format":{"source":"iana","extensions":["str"]},"application/vnd.pg.osasli":{"source":"iana","extensions":["ei6"]},"application/vnd.piaccess.application-licence":{"source":"iana"},"application/vnd.picsel":{"source":"iana","extensions":["efif"]},"application/vnd.pmi.widget":{"source":"iana","extensions":["wg"]},"application/vnd.poc.group-advertisement+xml":{"source":"iana","compressible":true},"application/vnd.pocketlearn":{"source":"iana","extensions":["plf"]},"application/vnd.powerbuilder6":{"source":"iana","extensions":["pbd"]},"application/vnd.powerbuilder6-s":{"source":"iana"},"application/vnd.powerbuilder7":{"source":"iana"},"application/vnd.powerbuilder7-s":{"source":"iana"},"application/vnd.powerbuilder75":{"source":"iana"},"application/vnd.powerbuilder75-s":{"source":"iana"},"application/vnd.preminet":{"source":"iana"},"application/vnd.previewsystems.box":{"source":"iana","extensions":["box"]},"application/vnd.procrate.brushset":{"extensions":["brushset"]},"application/vnd.procreate.brush":{"extensions":["brush"]},"application/vnd.procreate.dream":{"extensions":["drm"]},"application/vnd.proteus.magazine":{"source":"iana","extensions":["mgz"]},"application/vnd.psfs":{"source":"iana"},"application/vnd.pt.mundusmundi":{"source":"iana"},"application/vnd.publishare-delta-tree":{"source":"iana","extensions":["qps"]},"application/vnd.pvi.ptid1":{"source":"iana","extensions":["ptid"]},"application/vnd.pwg-multiplexed":{"source":"iana"},"application/vnd.pwg-xhtml-print+xml":{"source":"iana","compressible":true,"extensions":["xhtm"]},"application/vnd.qualcomm.brew-app-res":{"source":"iana"},"application/vnd.quarantainenet":{"source":"iana"},"application/vnd.quark.quarkxpress":{"source":"iana","extensions":["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{"source":"iana"},"application/vnd.radisys.moml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conn+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-stream+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-base+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-detect+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-group+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-speech+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-transform+xml":{"source":"iana","compressible":true},"application/vnd.rainstor.data":{"source":"iana"},"application/vnd.rapid":{"source":"iana"},"application/vnd.rar":{"source":"iana","extensions":["rar"]},"application/vnd.realvnc.bed":{"source":"iana","extensions":["bed"]},"application/vnd.recordare.musicxml":{"source":"iana","extensions":["mxl"]},"application/vnd.recordare.musicxml+xml":{"source":"iana","compressible":true,"extensions":["musicxml"]},"application/vnd.relpipe":{"source":"iana"},"application/vnd.renlearn.rlprint":{"source":"iana"},"application/vnd.resilient.logic":{"source":"iana"},"application/vnd.restful+json":{"source":"iana","compressible":true},"application/vnd.rig.cryptonote":{"source":"iana","extensions":["cryptonote"]},"application/vnd.rim.cod":{"source":"apache","extensions":["cod"]},"application/vnd.rn-realmedia":{"source":"apache","extensions":["rm"]},"application/vnd.rn-realmedia-vbr":{"source":"apache","extensions":["rmvb"]},"application/vnd.route66.link66+xml":{"source":"iana","compressible":true,"extensions":["link66"]},"application/vnd.rs-274x":{"source":"iana"},"application/vnd.ruckus.download":{"source":"iana"},"application/vnd.s3sms":{"source":"iana"},"application/vnd.sailingtracker.track":{"source":"iana","extensions":["st"]},"application/vnd.sar":{"source":"iana"},"application/vnd.sbm.cid":{"source":"iana"},"application/vnd.sbm.mid2":{"source":"iana"},"application/vnd.scribus":{"source":"iana"},"application/vnd.sealed.3df":{"source":"iana"},"application/vnd.sealed.csf":{"source":"iana"},"application/vnd.sealed.doc":{"source":"iana"},"application/vnd.sealed.eml":{"source":"iana"},"application/vnd.sealed.mht":{"source":"iana"},"application/vnd.sealed.net":{"source":"iana"},"application/vnd.sealed.ppt":{"source":"iana"},"application/vnd.sealed.tiff":{"source":"iana"},"application/vnd.sealed.xls":{"source":"iana"},"application/vnd.sealedmedia.softseal.html":{"source":"iana"},"application/vnd.sealedmedia.softseal.pdf":{"source":"iana"},"application/vnd.seemail":{"source":"iana","extensions":["see"]},"application/vnd.seis+json":{"source":"iana","compressible":true},"application/vnd.sema":{"source":"iana","extensions":["sema"]},"application/vnd.semd":{"source":"iana","extensions":["semd"]},"application/vnd.semf":{"source":"iana","extensions":["semf"]},"application/vnd.shade-save-file":{"source":"iana"},"application/vnd.shana.informed.formdata":{"source":"iana","extensions":["ifm"]},"application/vnd.shana.informed.formtemplate":{"source":"iana","extensions":["itp"]},"application/vnd.shana.informed.interchange":{"source":"iana","extensions":["iif"]},"application/vnd.shana.informed.package":{"source":"iana","extensions":["ipk"]},"application/vnd.shootproof+json":{"source":"iana","compressible":true},"application/vnd.shopkick+json":{"source":"iana","compressible":true},"application/vnd.shp":{"source":"iana"},"application/vnd.shx":{"source":"iana"},"application/vnd.sigrok.session":{"source":"iana"},"application/vnd.simtech-mindmapper":{"source":"iana","extensions":["twd","twds"]},"application/vnd.siren+json":{"source":"iana","compressible":true},"application/vnd.sketchometry":{"source":"iana"},"application/vnd.smaf":{"source":"iana","extensions":["mmf"]},"application/vnd.smart.notebook":{"source":"iana"},"application/vnd.smart.teacher":{"source":"iana","extensions":["teacher"]},"application/vnd.smintio.portals.archive":{"source":"iana"},"application/vnd.snesdev-page-table":{"source":"iana"},"application/vnd.software602.filler.form+xml":{"source":"iana","compressible":true,"extensions":["fo"]},"application/vnd.software602.filler.form-xml-zip":{"source":"iana"},"application/vnd.solent.sdkm+xml":{"source":"iana","compressible":true,"extensions":["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{"source":"iana","extensions":["dxp"]},"application/vnd.spotfire.sfs":{"source":"iana","extensions":["sfs"]},"application/vnd.sqlite3":{"source":"iana"},"application/vnd.sss-cod":{"source":"iana"},"application/vnd.sss-dtf":{"source":"iana"},"application/vnd.sss-ntf":{"source":"iana"},"application/vnd.stardivision.calc":{"source":"apache","extensions":["sdc"]},"application/vnd.stardivision.draw":{"source":"apache","extensions":["sda"]},"application/vnd.stardivision.impress":{"source":"apache","extensions":["sdd"]},"application/vnd.stardivision.math":{"source":"apache","extensions":["smf"]},"application/vnd.stardivision.writer":{"source":"apache","extensions":["sdw","vor"]},"application/vnd.stardivision.writer-global":{"source":"apache","extensions":["sgl"]},"application/vnd.stepmania.package":{"source":"iana","extensions":["smzip"]},"application/vnd.stepmania.stepchart":{"source":"iana","extensions":["sm"]},"application/vnd.street-stream":{"source":"iana"},"application/vnd.sun.wadl+xml":{"source":"iana","compressible":true,"extensions":["wadl"]},"application/vnd.sun.xml.calc":{"source":"apache","extensions":["sxc"]},"application/vnd.sun.xml.calc.template":{"source":"apache","extensions":["stc"]},"application/vnd.sun.xml.draw":{"source":"apache","extensions":["sxd"]},"application/vnd.sun.xml.draw.template":{"source":"apache","extensions":["std"]},"application/vnd.sun.xml.impress":{"source":"apache","extensions":["sxi"]},"application/vnd.sun.xml.impress.template":{"source":"apache","extensions":["sti"]},"application/vnd.sun.xml.math":{"source":"apache","extensions":["sxm"]},"application/vnd.sun.xml.writer":{"source":"apache","extensions":["sxw"]},"application/vnd.sun.xml.writer.global":{"source":"apache","extensions":["sxg"]},"application/vnd.sun.xml.writer.template":{"source":"apache","extensions":["stw"]},"application/vnd.sus-calendar":{"source":"iana","extensions":["sus","susp"]},"application/vnd.svd":{"source":"iana","extensions":["svd"]},"application/vnd.swiftview-ics":{"source":"iana"},"application/vnd.sybyl.mol2":{"source":"iana"},"application/vnd.sycle+xml":{"source":"iana","compressible":true},"application/vnd.syft+json":{"source":"iana","compressible":true},"application/vnd.symbian.install":{"source":"apache","extensions":["sis","sisx"]},"application/vnd.syncml+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xsm"]},"application/vnd.syncml.dm+wbxml":{"source":"iana","charset":"UTF-8","extensions":["bdm"]},"application/vnd.syncml.dm+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xdm"]},"application/vnd.syncml.dm.notification":{"source":"iana"},"application/vnd.syncml.dmddf+wbxml":{"source":"iana"},"application/vnd.syncml.dmddf+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{"source":"iana"},"application/vnd.syncml.dmtnds+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.syncml.ds.notification":{"source":"iana"},"application/vnd.tableschema+json":{"source":"iana","compressible":true},"application/vnd.tao.intent-module-archive":{"source":"iana","extensions":["tao"]},"application/vnd.tcpdump.pcap":{"source":"iana","extensions":["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{"source":"iana","compressible":true},"application/vnd.tmd.mediaflex.api+xml":{"source":"iana","compressible":true},"application/vnd.tml":{"source":"iana"},"application/vnd.tmobile-livetv":{"source":"iana","extensions":["tmo"]},"application/vnd.tri.onesource":{"source":"iana"},"application/vnd.trid.tpt":{"source":"iana","extensions":["tpt"]},"application/vnd.triscape.mxs":{"source":"iana","extensions":["mxs"]},"application/vnd.trueapp":{"source":"iana","extensions":["tra"]},"application/vnd.truedoc":{"source":"iana"},"application/vnd.ubisoft.webplayer":{"source":"iana"},"application/vnd.ufdl":{"source":"iana","extensions":["ufd","ufdl"]},"application/vnd.uic.osdm+json":{"source":"iana","compressible":true},"application/vnd.uiq.theme":{"source":"iana","extensions":["utz"]},"application/vnd.umajin":{"source":"iana","extensions":["umj"]},"application/vnd.unity":{"source":"iana","extensions":["unityweb"]},"application/vnd.uoml+xml":{"source":"iana","compressible":true,"extensions":["uoml","uo"]},"application/vnd.uplanet.alert":{"source":"iana"},"application/vnd.uplanet.alert-wbxml":{"source":"iana"},"application/vnd.uplanet.bearer-choice":{"source":"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{"source":"iana"},"application/vnd.uplanet.cacheop":{"source":"iana"},"application/vnd.uplanet.cacheop-wbxml":{"source":"iana"},"application/vnd.uplanet.channel":{"source":"iana"},"application/vnd.uplanet.channel-wbxml":{"source":"iana"},"application/vnd.uplanet.list":{"source":"iana"},"application/vnd.uplanet.list-wbxml":{"source":"iana"},"application/vnd.uplanet.listcmd":{"source":"iana"},"application/vnd.uplanet.listcmd-wbxml":{"source":"iana"},"application/vnd.uplanet.signal":{"source":"iana"},"application/vnd.uri-map":{"source":"iana"},"application/vnd.valve.source.material":{"source":"iana"},"application/vnd.vcx":{"source":"iana","extensions":["vcx"]},"application/vnd.vd-study":{"source":"iana"},"application/vnd.vectorworks":{"source":"iana"},"application/vnd.vel+json":{"source":"iana","compressible":true},"application/vnd.veraison.tsm-report+cbor":{"source":"iana"},"application/vnd.veraison.tsm-report+json":{"source":"iana","compressible":true},"application/vnd.verimatrix.vcas":{"source":"iana"},"application/vnd.veritone.aion+json":{"source":"iana","compressible":true},"application/vnd.veryant.thin":{"source":"iana"},"application/vnd.ves.encrypted":{"source":"iana"},"application/vnd.vidsoft.vidconference":{"source":"iana"},"application/vnd.visio":{"source":"iana","extensions":["vsd","vst","vss","vsw","vsdx","vtx"]},"application/vnd.visionary":{"source":"iana","extensions":["vis"]},"application/vnd.vividence.scriptfile":{"source":"iana"},"application/vnd.vocalshaper.vsp4":{"source":"iana"},"application/vnd.vsf":{"source":"iana","extensions":["vsf"]},"application/vnd.wap.sic":{"source":"iana"},"application/vnd.wap.slc":{"source":"iana"},"application/vnd.wap.wbxml":{"source":"iana","charset":"UTF-8","extensions":["wbxml"]},"application/vnd.wap.wmlc":{"source":"iana","extensions":["wmlc"]},"application/vnd.wap.wmlscriptc":{"source":"iana","extensions":["wmlsc"]},"application/vnd.wasmflow.wafl":{"source":"iana"},"application/vnd.webturbo":{"source":"iana","extensions":["wtb"]},"application/vnd.wfa.dpp":{"source":"iana"},"application/vnd.wfa.p2p":{"source":"iana"},"application/vnd.wfa.wsc":{"source":"iana"},"application/vnd.windows.devicepairing":{"source":"iana"},"application/vnd.wmc":{"source":"iana"},"application/vnd.wmf.bootstrap":{"source":"iana"},"application/vnd.wolfram.mathematica":{"source":"iana"},"application/vnd.wolfram.mathematica.package":{"source":"iana"},"application/vnd.wolfram.player":{"source":"iana","extensions":["nbp"]},"application/vnd.wordlift":{"source":"iana"},"application/vnd.wordperfect":{"source":"iana","extensions":["wpd"]},"application/vnd.wqd":{"source":"iana","extensions":["wqd"]},"application/vnd.wrq-hp3000-labelled":{"source":"iana"},"application/vnd.wt.stf":{"source":"iana","extensions":["stf"]},"application/vnd.wv.csp+wbxml":{"source":"iana"},"application/vnd.wv.csp+xml":{"source":"iana","compressible":true},"application/vnd.wv.ssp+xml":{"source":"iana","compressible":true},"application/vnd.xacml+json":{"source":"iana","compressible":true},"application/vnd.xara":{"source":"iana","extensions":["xar"]},"application/vnd.xarin.cpj":{"source":"iana"},"application/vnd.xecrets-encrypted":{"source":"iana"},"application/vnd.xfdl":{"source":"iana","extensions":["xfdl"]},"application/vnd.xfdl.webform":{"source":"iana"},"application/vnd.xmi+xml":{"source":"iana","compressible":true},"application/vnd.xmpie.cpkg":{"source":"iana"},"application/vnd.xmpie.dpkg":{"source":"iana"},"application/vnd.xmpie.plan":{"source":"iana"},"application/vnd.xmpie.ppkg":{"source":"iana"},"application/vnd.xmpie.xlim":{"source":"iana"},"application/vnd.yamaha.hv-dic":{"source":"iana","extensions":["hvd"]},"application/vnd.yamaha.hv-script":{"source":"iana","extensions":["hvs"]},"application/vnd.yamaha.hv-voice":{"source":"iana","extensions":["hvp"]},"application/vnd.yamaha.openscoreformat":{"source":"iana","extensions":["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{"source":"iana","compressible":true,"extensions":["osfpvg"]},"application/vnd.yamaha.remote-setup":{"source":"iana"},"application/vnd.yamaha.smaf-audio":{"source":"iana","extensions":["saf"]},"application/vnd.yamaha.smaf-phrase":{"source":"iana","extensions":["spf"]},"application/vnd.yamaha.through-ngn":{"source":"iana"},"application/vnd.yamaha.tunnel-udpencap":{"source":"iana"},"application/vnd.yaoweme":{"source":"iana"},"application/vnd.yellowriver-custom-menu":{"source":"iana","extensions":["cmp"]},"application/vnd.zul":{"source":"iana","extensions":["zir","zirz"]},"application/vnd.zzazz.deck+xml":{"source":"iana","compressible":true,"extensions":["zaz"]},"application/voicexml+xml":{"source":"iana","compressible":true,"extensions":["vxml"]},"application/voucher-cms+json":{"source":"iana","compressible":true},"application/voucher-jws+json":{"source":"iana","compressible":true},"application/vp":{"source":"iana"},"application/vp+cose":{"source":"iana"},"application/vp+jwt":{"source":"iana"},"application/vq-rtcpxr":{"source":"iana"},"application/wasm":{"source":"iana","compressible":true,"extensions":["wasm"]},"application/watcherinfo+xml":{"source":"iana","compressible":true,"extensions":["wif"]},"application/webpush-options+json":{"source":"iana","compressible":true},"application/whoispp-query":{"source":"iana"},"application/whoispp-response":{"source":"iana"},"application/widget":{"source":"iana","extensions":["wgt"]},"application/winhlp":{"source":"apache","extensions":["hlp"]},"application/wita":{"source":"iana"},"application/wordperfect5.1":{"source":"iana"},"application/wsdl+xml":{"source":"iana","compressible":true,"extensions":["wsdl"]},"application/wspolicy+xml":{"source":"iana","compressible":true,"extensions":["wspolicy"]},"application/x-7z-compressed":{"source":"apache","compressible":false,"extensions":["7z"]},"application/x-abiword":{"source":"apache","extensions":["abw"]},"application/x-ace-compressed":{"source":"apache","extensions":["ace"]},"application/x-amf":{"source":"apache"},"application/x-apple-diskimage":{"source":"apache","extensions":["dmg"]},"application/x-arj":{"compressible":false,"extensions":["arj"]},"application/x-authorware-bin":{"source":"apache","extensions":["aab","x32","u32","vox"]},"application/x-authorware-map":{"source":"apache","extensions":["aam"]},"application/x-authorware-seg":{"source":"apache","extensions":["aas"]},"application/x-bcpio":{"source":"apache","extensions":["bcpio"]},"application/x-bdoc":{"compressible":false,"extensions":["bdoc"]},"application/x-bittorrent":{"source":"apache","extensions":["torrent"]},"application/x-blender":{"extensions":["blend"]},"application/x-blorb":{"source":"apache","extensions":["blb","blorb"]},"application/x-bzip":{"source":"apache","compressible":false,"extensions":["bz"]},"application/x-bzip2":{"source":"apache","compressible":false,"extensions":["bz2","boz"]},"application/x-cbr":{"source":"apache","extensions":["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{"source":"apache","extensions":["vcd"]},"application/x-cfs-compressed":{"source":"apache","extensions":["cfs"]},"application/x-chat":{"source":"apache","extensions":["chat"]},"application/x-chess-pgn":{"source":"apache","extensions":["pgn"]},"application/x-chrome-extension":{"extensions":["crx"]},"application/x-cocoa":{"source":"nginx","extensions":["cco"]},"application/x-compress":{"source":"apache"},"application/x-compressed":{"extensions":["rar"]},"application/x-conference":{"source":"apache","extensions":["nsc"]},"application/x-cpio":{"source":"apache","extensions":["cpio"]},"application/x-csh":{"source":"apache","extensions":["csh"]},"application/x-deb":{"compressible":false},"application/x-debian-package":{"source":"apache","extensions":["deb","udeb"]},"application/x-dgc-compressed":{"source":"apache","extensions":["dgc"]},"application/x-director":{"source":"apache","extensions":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{"source":"apache","extensions":["wad"]},"application/x-dtbncx+xml":{"source":"apache","compressible":true,"extensions":["ncx"]},"application/x-dtbook+xml":{"source":"apache","compressible":true,"extensions":["dtb"]},"application/x-dtbresource+xml":{"source":"apache","compressible":true,"extensions":["res"]},"application/x-dvi":{"source":"apache","compressible":false,"extensions":["dvi"]},"application/x-envoy":{"source":"apache","extensions":["evy"]},"application/x-eva":{"source":"apache","extensions":["eva"]},"application/x-font-bdf":{"source":"apache","extensions":["bdf"]},"application/x-font-dos":{"source":"apache"},"application/x-font-framemaker":{"source":"apache"},"application/x-font-ghostscript":{"source":"apache","extensions":["gsf"]},"application/x-font-libgrx":{"source":"apache"},"application/x-font-linux-psf":{"source":"apache","extensions":["psf"]},"application/x-font-pcf":{"source":"apache","extensions":["pcf"]},"application/x-font-snf":{"source":"apache","extensions":["snf"]},"application/x-font-speedo":{"source":"apache"},"application/x-font-sunos-news":{"source":"apache"},"application/x-font-type1":{"source":"apache","extensions":["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{"source":"apache"},"application/x-freearc":{"source":"apache","extensions":["arc"]},"application/x-futuresplash":{"source":"apache","extensions":["spl"]},"application/x-gca-compressed":{"source":"apache","extensions":["gca"]},"application/x-glulx":{"source":"apache","extensions":["ulx"]},"application/x-gnumeric":{"source":"apache","extensions":["gnumeric"]},"application/x-gramps-xml":{"source":"apache","extensions":["gramps"]},"application/x-gtar":{"source":"apache","extensions":["gtar"]},"application/x-gzip":{"source":"apache"},"application/x-hdf":{"source":"apache","extensions":["hdf"]},"application/x-httpd-php":{"compressible":true,"extensions":["php"]},"application/x-install-instructions":{"source":"apache","extensions":["install"]},"application/x-ipynb+json":{"compressible":true,"extensions":["ipynb"]},"application/x-iso9660-image":{"source":"apache","extensions":["iso"]},"application/x-iwork-keynote-sffkey":{"extensions":["key"]},"application/x-iwork-numbers-sffnumbers":{"extensions":["numbers"]},"application/x-iwork-pages-sffpages":{"extensions":["pages"]},"application/x-java-archive-diff":{"source":"nginx","extensions":["jardiff"]},"application/x-java-jnlp-file":{"source":"apache","compressible":false,"extensions":["jnlp"]},"application/x-javascript":{"compressible":true},"application/x-keepass2":{"extensions":["kdbx"]},"application/x-latex":{"source":"apache","compressible":false,"extensions":["latex"]},"application/x-lua-bytecode":{"extensions":["luac"]},"application/x-lzh-compressed":{"source":"apache","extensions":["lzh","lha"]},"application/x-makeself":{"source":"nginx","extensions":["run"]},"application/x-mie":{"source":"apache","extensions":["mie"]},"application/x-mobipocket-ebook":{"source":"apache","extensions":["prc","mobi"]},"application/x-mpegurl":{"compressible":false},"application/x-ms-application":{"source":"apache","extensions":["application"]},"application/x-ms-shortcut":{"source":"apache","extensions":["lnk"]},"application/x-ms-wmd":{"source":"apache","extensions":["wmd"]},"application/x-ms-wmz":{"source":"apache","extensions":["wmz"]},"application/x-ms-xbap":{"source":"apache","extensions":["xbap"]},"application/x-msaccess":{"source":"apache","extensions":["mdb"]},"application/x-msbinder":{"source":"apache","extensions":["obd"]},"application/x-mscardfile":{"source":"apache","extensions":["crd"]},"application/x-msclip":{"source":"apache","extensions":["clp"]},"application/x-msdos-program":{"extensions":["exe"]},"application/x-msdownload":{"source":"apache","extensions":["exe","dll","com","bat","msi"]},"application/x-msmediaview":{"source":"apache","extensions":["mvb","m13","m14"]},"application/x-msmetafile":{"source":"apache","extensions":["wmf","wmz","emf","emz"]},"application/x-msmoney":{"source":"apache","extensions":["mny"]},"application/x-mspublisher":{"source":"apache","extensions":["pub"]},"application/x-msschedule":{"source":"apache","extensions":["scd"]},"application/x-msterminal":{"source":"apache","extensions":["trm"]},"application/x-mswrite":{"source":"apache","extensions":["wri"]},"application/x-netcdf":{"source":"apache","extensions":["nc","cdf"]},"application/x-ns-proxy-autoconfig":{"compressible":true,"extensions":["pac"]},"application/x-nzb":{"source":"apache","extensions":["nzb"]},"application/x-perl":{"source":"nginx","extensions":["pl","pm"]},"application/x-pilot":{"source":"nginx","extensions":["prc","pdb"]},"application/x-pkcs12":{"source":"apache","compressible":false,"extensions":["p12","pfx"]},"application/x-pkcs7-certificates":{"source":"apache","extensions":["p7b","spc"]},"application/x-pkcs7-certreqresp":{"source":"apache","extensions":["p7r"]},"application/x-pki-message":{"source":"iana"},"application/x-rar-compressed":{"source":"apache","compressible":false,"extensions":["rar"]},"application/x-redhat-package-manager":{"source":"nginx","extensions":["rpm"]},"application/x-research-info-systems":{"source":"apache","extensions":["ris"]},"application/x-sea":{"source":"nginx","extensions":["sea"]},"application/x-sh":{"source":"apache","compressible":true,"extensions":["sh"]},"application/x-shar":{"source":"apache","extensions":["shar"]},"application/x-shockwave-flash":{"source":"apache","compressible":false,"extensions":["swf"]},"application/x-silverlight-app":{"source":"apache","extensions":["xap"]},"application/x-sql":{"source":"apache","extensions":["sql"]},"application/x-stuffit":{"source":"apache","compressible":false,"extensions":["sit"]},"application/x-stuffitx":{"source":"apache","extensions":["sitx"]},"application/x-subrip":{"source":"apache","extensions":["srt"]},"application/x-sv4cpio":{"source":"apache","extensions":["sv4cpio"]},"application/x-sv4crc":{"source":"apache","extensions":["sv4crc"]},"application/x-t3vm-image":{"source":"apache","extensions":["t3"]},"application/x-tads":{"source":"apache","extensions":["gam"]},"application/x-tar":{"source":"apache","compressible":true,"extensions":["tar"]},"application/x-tcl":{"source":"apache","extensions":["tcl","tk"]},"application/x-tex":{"source":"apache","extensions":["tex"]},"application/x-tex-tfm":{"source":"apache","extensions":["tfm"]},"application/x-texinfo":{"source":"apache","extensions":["texinfo","texi"]},"application/x-tgif":{"source":"apache","extensions":["obj"]},"application/x-ustar":{"source":"apache","extensions":["ustar"]},"application/x-virtualbox-hdd":{"compressible":true,"extensions":["hdd"]},"application/x-virtualbox-ova":{"compressible":true,"extensions":["ova"]},"application/x-virtualbox-ovf":{"compressible":true,"extensions":["ovf"]},"application/x-virtualbox-vbox":{"compressible":true,"extensions":["vbox"]},"application/x-virtualbox-vbox-extpack":{"compressible":false,"extensions":["vbox-extpack"]},"application/x-virtualbox-vdi":{"compressible":true,"extensions":["vdi"]},"application/x-virtualbox-vhd":{"compressible":true,"extensions":["vhd"]},"application/x-virtualbox-vmdk":{"compressible":true,"extensions":["vmdk"]},"application/x-wais-source":{"source":"apache","extensions":["src"]},"application/x-web-app-manifest+json":{"compressible":true,"extensions":["webapp"]},"application/x-www-form-urlencoded":{"source":"iana","compressible":true},"application/x-x509-ca-cert":{"source":"iana","extensions":["der","crt","pem"]},"application/x-x509-ca-ra-cert":{"source":"iana"},"application/x-x509-next-ca-cert":{"source":"iana"},"application/x-xfig":{"source":"apache","extensions":["fig"]},"application/x-xliff+xml":{"source":"apache","compressible":true,"extensions":["xlf"]},"application/x-xpinstall":{"source":"apache","compressible":false,"extensions":["xpi"]},"application/x-xz":{"source":"apache","extensions":["xz"]},"application/x-zip-compressed":{"extensions":["zip"]},"application/x-zmachine":{"source":"apache","extensions":["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{"source":"iana"},"application/xacml+xml":{"source":"iana","compressible":true},"application/xaml+xml":{"source":"apache","compressible":true,"extensions":["xaml"]},"application/xcap-att+xml":{"source":"iana","compressible":true,"extensions":["xav"]},"application/xcap-caps+xml":{"source":"iana","compressible":true,"extensions":["xca"]},"application/xcap-diff+xml":{"source":"iana","compressible":true,"extensions":["xdf"]},"application/xcap-el+xml":{"source":"iana","compressible":true,"extensions":["xel"]},"application/xcap-error+xml":{"source":"iana","compressible":true},"application/xcap-ns+xml":{"source":"iana","compressible":true,"extensions":["xns"]},"application/xcon-conference-info+xml":{"source":"iana","compressible":true},"application/xcon-conference-info-diff+xml":{"source":"iana","compressible":true},"application/xenc+xml":{"source":"iana","compressible":true,"extensions":["xenc"]},"application/xfdf":{"source":"iana","extensions":["xfdf"]},"application/xhtml+xml":{"source":"iana","compressible":true,"extensions":["xhtml","xht"]},"application/xhtml-voice+xml":{"source":"apache","compressible":true},"application/xliff+xml":{"source":"iana","compressible":true,"extensions":["xlf"]},"application/xml":{"source":"iana","compressible":true,"extensions":["xml","xsl","xsd","rng"]},"application/xml-dtd":{"source":"iana","compressible":true,"extensions":["dtd"]},"application/xml-external-parsed-entity":{"source":"iana"},"application/xml-patch+xml":{"source":"iana","compressible":true},"application/xmpp+xml":{"source":"iana","compressible":true},"application/xop+xml":{"source":"iana","compressible":true,"extensions":["xop"]},"application/xproc+xml":{"source":"apache","compressible":true,"extensions":["xpl"]},"application/xslt+xml":{"source":"iana","compressible":true,"extensions":["xsl","xslt"]},"application/xspf+xml":{"source":"apache","compressible":true,"extensions":["xspf"]},"application/xv+xml":{"source":"iana","compressible":true,"extensions":["mxml","xhvml","xvml","xvm"]},"application/yaml":{"source":"iana"},"application/yang":{"source":"iana","extensions":["yang"]},"application/yang-data+cbor":{"source":"iana"},"application/yang-data+json":{"source":"iana","compressible":true},"application/yang-data+xml":{"source":"iana","compressible":true},"application/yang-patch+json":{"source":"iana","compressible":true},"application/yang-patch+xml":{"source":"iana","compressible":true},"application/yang-sid+json":{"source":"iana","compressible":true},"application/yin+xml":{"source":"iana","compressible":true,"extensions":["yin"]},"application/zip":{"source":"iana","compressible":false,"extensions":["zip"]},"application/zip+dotlottie":{"extensions":["lottie"]},"application/zlib":{"source":"iana"},"application/zstd":{"source":"iana"},"audio/1d-interleaved-parityfec":{"source":"iana"},"audio/32kadpcm":{"source":"iana"},"audio/3gpp":{"source":"iana","compressible":false,"extensions":["3gpp"]},"audio/3gpp2":{"source":"iana"},"audio/aac":{"source":"iana","extensions":["adts","aac"]},"audio/ac3":{"source":"iana"},"audio/adpcm":{"source":"apache","extensions":["adp"]},"audio/amr":{"source":"iana","extensions":["amr"]},"audio/amr-wb":{"source":"iana"},"audio/amr-wb+":{"source":"iana"},"audio/aptx":{"source":"iana"},"audio/asc":{"source":"iana"},"audio/atrac-advanced-lossless":{"source":"iana"},"audio/atrac-x":{"source":"iana"},"audio/atrac3":{"source":"iana"},"audio/basic":{"source":"iana","compressible":false,"extensions":["au","snd"]},"audio/bv16":{"source":"iana"},"audio/bv32":{"source":"iana"},"audio/clearmode":{"source":"iana"},"audio/cn":{"source":"iana"},"audio/dat12":{"source":"iana"},"audio/dls":{"source":"iana"},"audio/dsr-es201108":{"source":"iana"},"audio/dsr-es202050":{"source":"iana"},"audio/dsr-es202211":{"source":"iana"},"audio/dsr-es202212":{"source":"iana"},"audio/dv":{"source":"iana"},"audio/dvi4":{"source":"iana"},"audio/eac3":{"source":"iana"},"audio/encaprtp":{"source":"iana"},"audio/evrc":{"source":"iana"},"audio/evrc-qcp":{"source":"iana"},"audio/evrc0":{"source":"iana"},"audio/evrc1":{"source":"iana"},"audio/evrcb":{"source":"iana"},"audio/evrcb0":{"source":"iana"},"audio/evrcb1":{"source":"iana"},"audio/evrcnw":{"source":"iana"},"audio/evrcnw0":{"source":"iana"},"audio/evrcnw1":{"source":"iana"},"audio/evrcwb":{"source":"iana"},"audio/evrcwb0":{"source":"iana"},"audio/evrcwb1":{"source":"iana"},"audio/evs":{"source":"iana"},"audio/flac":{"source":"iana"},"audio/flexfec":{"source":"iana"},"audio/fwdred":{"source":"iana"},"audio/g711-0":{"source":"iana"},"audio/g719":{"source":"iana"},"audio/g722":{"source":"iana"},"audio/g7221":{"source":"iana"},"audio/g723":{"source":"iana"},"audio/g726-16":{"source":"iana"},"audio/g726-24":{"source":"iana"},"audio/g726-32":{"source":"iana"},"audio/g726-40":{"source":"iana"},"audio/g728":{"source":"iana"},"audio/g729":{"source":"iana"},"audio/g7291":{"source":"iana"},"audio/g729d":{"source":"iana"},"audio/g729e":{"source":"iana"},"audio/gsm":{"source":"iana"},"audio/gsm-efr":{"source":"iana"},"audio/gsm-hr-08":{"source":"iana"},"audio/ilbc":{"source":"iana"},"audio/ip-mr_v2.5":{"source":"iana"},"audio/isac":{"source":"apache"},"audio/l16":{"source":"iana"},"audio/l20":{"source":"iana"},"audio/l24":{"source":"iana","compressible":false},"audio/l8":{"source":"iana"},"audio/lpc":{"source":"iana"},"audio/matroska":{"source":"iana"},"audio/melp":{"source":"iana"},"audio/melp1200":{"source":"iana"},"audio/melp2400":{"source":"iana"},"audio/melp600":{"source":"iana"},"audio/mhas":{"source":"iana"},"audio/midi":{"source":"apache","extensions":["mid","midi","kar","rmi"]},"audio/midi-clip":{"source":"iana"},"audio/mobile-xmf":{"source":"iana","extensions":["mxmf"]},"audio/mp3":{"compressible":false,"extensions":["mp3"]},"audio/mp4":{"source":"iana","compressible":false,"extensions":["m4a","mp4a","m4b"]},"audio/mp4a-latm":{"source":"iana"},"audio/mpa":{"source":"iana"},"audio/mpa-robust":{"source":"iana"},"audio/mpeg":{"source":"iana","compressible":false,"extensions":["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{"source":"iana"},"audio/musepack":{"source":"apache"},"audio/ogg":{"source":"iana","compressible":false,"extensions":["oga","ogg","spx","opus"]},"audio/opus":{"source":"iana"},"audio/parityfec":{"source":"iana"},"audio/pcma":{"source":"iana"},"audio/pcma-wb":{"source":"iana"},"audio/pcmu":{"source":"iana"},"audio/pcmu-wb":{"source":"iana"},"audio/prs.sid":{"source":"iana"},"audio/qcelp":{"source":"iana"},"audio/raptorfec":{"source":"iana"},"audio/red":{"source":"iana"},"audio/rtp-enc-aescm128":{"source":"iana"},"audio/rtp-midi":{"source":"iana"},"audio/rtploopback":{"source":"iana"},"audio/rtx":{"source":"iana"},"audio/s3m":{"source":"apache","extensions":["s3m"]},"audio/scip":{"source":"iana"},"audio/silk":{"source":"apache","extensions":["sil"]},"audio/smv":{"source":"iana"},"audio/smv-qcp":{"source":"iana"},"audio/smv0":{"source":"iana"},"audio/sofa":{"source":"iana"},"audio/sp-midi":{"source":"iana"},"audio/speex":{"source":"iana"},"audio/t140c":{"source":"iana"},"audio/t38":{"source":"iana"},"audio/telephone-event":{"source":"iana"},"audio/tetra_acelp":{"source":"iana"},"audio/tetra_acelp_bb":{"source":"iana"},"audio/tone":{"source":"iana"},"audio/tsvcis":{"source":"iana"},"audio/uemclip":{"source":"iana"},"audio/ulpfec":{"source":"iana"},"audio/usac":{"source":"iana"},"audio/vdvi":{"source":"iana"},"audio/vmr-wb":{"source":"iana"},"audio/vnd.3gpp.iufp":{"source":"iana"},"audio/vnd.4sb":{"source":"iana"},"audio/vnd.audiokoz":{"source":"iana"},"audio/vnd.celp":{"source":"iana"},"audio/vnd.cisco.nse":{"source":"iana"},"audio/vnd.cmles.radio-events":{"source":"iana"},"audio/vnd.cns.anp1":{"source":"iana"},"audio/vnd.cns.inf1":{"source":"iana"},"audio/vnd.dece.audio":{"source":"iana","extensions":["uva","uvva"]},"audio/vnd.digital-winds":{"source":"iana","extensions":["eol"]},"audio/vnd.dlna.adts":{"source":"iana"},"audio/vnd.dolby.heaac.1":{"source":"iana"},"audio/vnd.dolby.heaac.2":{"source":"iana"},"audio/vnd.dolby.mlp":{"source":"iana"},"audio/vnd.dolby.mps":{"source":"iana"},"audio/vnd.dolby.pl2":{"source":"iana"},"audio/vnd.dolby.pl2x":{"source":"iana"},"audio/vnd.dolby.pl2z":{"source":"iana"},"audio/vnd.dolby.pulse.1":{"source":"iana"},"audio/vnd.dra":{"source":"iana","extensions":["dra"]},"audio/vnd.dts":{"source":"iana","extensions":["dts"]},"audio/vnd.dts.hd":{"source":"iana","extensions":["dtshd"]},"audio/vnd.dts.uhd":{"source":"iana"},"audio/vnd.dvb.file":{"source":"iana"},"audio/vnd.everad.plj":{"source":"iana"},"audio/vnd.hns.audio":{"source":"iana"},"audio/vnd.lucent.voice":{"source":"iana","extensions":["lvp"]},"audio/vnd.ms-playready.media.pya":{"source":"iana","extensions":["pya"]},"audio/vnd.nokia.mobile-xmf":{"source":"iana"},"audio/vnd.nortel.vbk":{"source":"iana"},"audio/vnd.nuera.ecelp4800":{"source":"iana","extensions":["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{"source":"iana","extensions":["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{"source":"iana","extensions":["ecelp9600"]},"audio/vnd.octel.sbc":{"source":"iana"},"audio/vnd.presonus.multitrack":{"source":"iana"},"audio/vnd.qcelp":{"source":"apache"},"audio/vnd.rhetorex.32kadpcm":{"source":"iana"},"audio/vnd.rip":{"source":"iana","extensions":["rip"]},"audio/vnd.rn-realaudio":{"compressible":false},"audio/vnd.sealedmedia.softseal.mpeg":{"source":"iana"},"audio/vnd.vmx.cvsd":{"source":"iana"},"audio/vnd.wave":{"compressible":false},"audio/vorbis":{"source":"iana","compressible":false},"audio/vorbis-config":{"source":"iana"},"audio/wav":{"compressible":false,"extensions":["wav"]},"audio/wave":{"compressible":false,"extensions":["wav"]},"audio/webm":{"source":"apache","compressible":false,"extensions":["weba"]},"audio/x-aac":{"source":"apache","compressible":false,"extensions":["aac"]},"audio/x-aiff":{"source":"apache","extensions":["aif","aiff","aifc"]},"audio/x-caf":{"source":"apache","compressible":false,"extensions":["caf"]},"audio/x-flac":{"source":"apache","extensions":["flac"]},"audio/x-m4a":{"source":"nginx","extensions":["m4a"]},"audio/x-matroska":{"source":"apache","extensions":["mka"]},"audio/x-mpegurl":{"source":"apache","extensions":["m3u"]},"audio/x-ms-wax":{"source":"apache","extensions":["wax"]},"audio/x-ms-wma":{"source":"apache","extensions":["wma"]},"audio/x-pn-realaudio":{"source":"apache","extensions":["ram","ra"]},"audio/x-pn-realaudio-plugin":{"source":"apache","extensions":["rmp"]},"audio/x-realaudio":{"source":"nginx","extensions":["ra"]},"audio/x-tta":{"source":"apache"},"audio/x-wav":{"source":"apache","extensions":["wav"]},"audio/xm":{"source":"apache","extensions":["xm"]},"chemical/x-cdx":{"source":"apache","extensions":["cdx"]},"chemical/x-cif":{"source":"apache","extensions":["cif"]},"chemical/x-cmdf":{"source":"apache","extensions":["cmdf"]},"chemical/x-cml":{"source":"apache","extensions":["cml"]},"chemical/x-csml":{"source":"apache","extensions":["csml"]},"chemical/x-pdb":{"source":"apache"},"chemical/x-xyz":{"source":"apache","extensions":["xyz"]},"font/collection":{"source":"iana","extensions":["ttc"]},"font/otf":{"source":"iana","compressible":true,"extensions":["otf"]},"font/sfnt":{"source":"iana"},"font/ttf":{"source":"iana","compressible":true,"extensions":["ttf"]},"font/woff":{"source":"iana","extensions":["woff"]},"font/woff2":{"source":"iana","extensions":["woff2"]},"image/aces":{"source":"iana","extensions":["exr"]},"image/apng":{"source":"iana","compressible":false,"extensions":["apng"]},"image/avci":{"source":"iana","extensions":["avci"]},"image/avcs":{"source":"iana","extensions":["avcs"]},"image/avif":{"source":"iana","compressible":false,"extensions":["avif"]},"image/bmp":{"source":"iana","compressible":true,"extensions":["bmp","dib"]},"image/cgm":{"source":"iana","extensions":["cgm"]},"image/dicom-rle":{"source":"iana","extensions":["drle"]},"image/dpx":{"source":"iana","extensions":["dpx"]},"image/emf":{"source":"iana","extensions":["emf"]},"image/fits":{"source":"iana","extensions":["fits"]},"image/g3fax":{"source":"iana","extensions":["g3"]},"image/gif":{"source":"iana","compressible":false,"extensions":["gif"]},"image/heic":{"source":"iana","extensions":["heic"]},"image/heic-sequence":{"source":"iana","extensions":["heics"]},"image/heif":{"source":"iana","extensions":["heif"]},"image/heif-sequence":{"source":"iana","extensions":["heifs"]},"image/hej2k":{"source":"iana","extensions":["hej2"]},"image/ief":{"source":"iana","extensions":["ief"]},"image/j2c":{"source":"iana"},"image/jaii":{"source":"iana","extensions":["jaii"]},"image/jais":{"source":"iana","extensions":["jais"]},"image/jls":{"source":"iana","extensions":["jls"]},"image/jp2":{"source":"iana","compressible":false,"extensions":["jp2","jpg2"]},"image/jpeg":{"source":"iana","compressible":false,"extensions":["jpg","jpeg","jpe"]},"image/jph":{"source":"iana","extensions":["jph"]},"image/jphc":{"source":"iana","extensions":["jhc"]},"image/jpm":{"source":"iana","compressible":false,"extensions":["jpm","jpgm"]},"image/jpx":{"source":"iana","compressible":false,"extensions":["jpx","jpf"]},"image/jxl":{"source":"iana","extensions":["jxl"]},"image/jxr":{"source":"iana","extensions":["jxr"]},"image/jxra":{"source":"iana","extensions":["jxra"]},"image/jxrs":{"source":"iana","extensions":["jxrs"]},"image/jxs":{"source":"iana","extensions":["jxs"]},"image/jxsc":{"source":"iana","extensions":["jxsc"]},"image/jxsi":{"source":"iana","extensions":["jxsi"]},"image/jxss":{"source":"iana","extensions":["jxss"]},"image/ktx":{"source":"iana","extensions":["ktx"]},"image/ktx2":{"source":"iana","extensions":["ktx2"]},"image/naplps":{"source":"iana"},"image/pjpeg":{"compressible":false,"extensions":["jfif"]},"image/png":{"source":"iana","compressible":false,"extensions":["png"]},"image/prs.btif":{"source":"iana","extensions":["btif","btf"]},"image/prs.pti":{"source":"iana","extensions":["pti"]},"image/pwg-raster":{"source":"iana"},"image/sgi":{"source":"apache","extensions":["sgi"]},"image/svg+xml":{"source":"iana","compressible":true,"extensions":["svg","svgz"]},"image/t38":{"source":"iana","extensions":["t38"]},"image/tiff":{"source":"iana","compressible":false,"extensions":["tif","tiff"]},"image/tiff-fx":{"source":"iana","extensions":["tfx"]},"image/vnd.adobe.photoshop":{"source":"iana","compressible":true,"extensions":["psd"]},"image/vnd.airzip.accelerator.azv":{"source":"iana","extensions":["azv"]},"image/vnd.clip":{"source":"iana"},"image/vnd.cns.inf2":{"source":"iana"},"image/vnd.dece.graphic":{"source":"iana","extensions":["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{"source":"iana","extensions":["djvu","djv"]},"image/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"image/vnd.dwg":{"source":"iana","extensions":["dwg"]},"image/vnd.dxf":{"source":"iana","extensions":["dxf"]},"image/vnd.fastbidsheet":{"source":"iana","extensions":["fbs"]},"image/vnd.fpx":{"source":"iana","extensions":["fpx"]},"image/vnd.fst":{"source":"iana","extensions":["fst"]},"image/vnd.fujixerox.edmics-mmr":{"source":"iana","extensions":["mmr"]},"image/vnd.fujixerox.edmics-rlc":{"source":"iana","extensions":["rlc"]},"image/vnd.globalgraphics.pgb":{"source":"iana"},"image/vnd.microsoft.icon":{"source":"iana","compressible":true,"extensions":["ico"]},"image/vnd.mix":{"source":"iana"},"image/vnd.mozilla.apng":{"source":"iana"},"image/vnd.ms-dds":{"compressible":true,"extensions":["dds"]},"image/vnd.ms-modi":{"source":"iana","extensions":["mdi"]},"image/vnd.ms-photo":{"source":"apache","extensions":["wdp"]},"image/vnd.net-fpx":{"source":"iana","extensions":["npx"]},"image/vnd.pco.b16":{"source":"iana","extensions":["b16"]},"image/vnd.radiance":{"source":"iana"},"image/vnd.sealed.png":{"source":"iana"},"image/vnd.sealedmedia.softseal.gif":{"source":"iana"},"image/vnd.sealedmedia.softseal.jpg":{"source":"iana"},"image/vnd.svf":{"source":"iana"},"image/vnd.tencent.tap":{"source":"iana","extensions":["tap"]},"image/vnd.valve.source.texture":{"source":"iana","extensions":["vtf"]},"image/vnd.wap.wbmp":{"source":"iana","extensions":["wbmp"]},"image/vnd.xiff":{"source":"iana","extensions":["xif"]},"image/vnd.zbrush.pcx":{"source":"iana","extensions":["pcx"]},"image/webp":{"source":"iana","extensions":["webp"]},"image/wmf":{"source":"iana","extensions":["wmf"]},"image/x-3ds":{"source":"apache","extensions":["3ds"]},"image/x-adobe-dng":{"extensions":["dng"]},"image/x-cmu-raster":{"source":"apache","extensions":["ras"]},"image/x-cmx":{"source":"apache","extensions":["cmx"]},"image/x-emf":{"source":"iana"},"image/x-freehand":{"source":"apache","extensions":["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{"source":"apache","compressible":true,"extensions":["ico"]},"image/x-jng":{"source":"nginx","extensions":["jng"]},"image/x-mrsid-image":{"source":"apache","extensions":["sid"]},"image/x-ms-bmp":{"source":"nginx","compressible":true,"extensions":["bmp"]},"image/x-pcx":{"source":"apache","extensions":["pcx"]},"image/x-pict":{"source":"apache","extensions":["pic","pct"]},"image/x-portable-anymap":{"source":"apache","extensions":["pnm"]},"image/x-portable-bitmap":{"source":"apache","extensions":["pbm"]},"image/x-portable-graymap":{"source":"apache","extensions":["pgm"]},"image/x-portable-pixmap":{"source":"apache","extensions":["ppm"]},"image/x-rgb":{"source":"apache","extensions":["rgb"]},"image/x-tga":{"source":"apache","extensions":["tga"]},"image/x-wmf":{"source":"iana"},"image/x-xbitmap":{"source":"apache","extensions":["xbm"]},"image/x-xcf":{"compressible":false},"image/x-xpixmap":{"source":"apache","extensions":["xpm"]},"image/x-xwindowdump":{"source":"apache","extensions":["xwd"]},"message/bhttp":{"source":"iana"},"message/cpim":{"source":"iana"},"message/delivery-status":{"source":"iana"},"message/disposition-notification":{"source":"iana","extensions":["disposition-notification"]},"message/external-body":{"source":"iana"},"message/feedback-report":{"source":"iana"},"message/global":{"source":"iana","extensions":["u8msg"]},"message/global-delivery-status":{"source":"iana","extensions":["u8dsn"]},"message/global-disposition-notification":{"source":"iana","extensions":["u8mdn"]},"message/global-headers":{"source":"iana","extensions":["u8hdr"]},"message/http":{"source":"iana","compressible":false},"message/imdn+xml":{"source":"iana","compressible":true},"message/mls":{"source":"iana"},"message/news":{"source":"apache"},"message/ohttp-req":{"source":"iana"},"message/ohttp-res":{"source":"iana"},"message/partial":{"source":"iana","compressible":false},"message/rfc822":{"source":"iana","compressible":true,"extensions":["eml","mime","mht","mhtml"]},"message/s-http":{"source":"apache"},"message/sip":{"source":"iana"},"message/sipfrag":{"source":"iana"},"message/tracking-status":{"source":"iana"},"message/vnd.si.simp":{"source":"apache"},"message/vnd.wfa.wsc":{"source":"iana","extensions":["wsc"]},"model/3mf":{"source":"iana","extensions":["3mf"]},"model/e57":{"source":"iana"},"model/gltf+json":{"source":"iana","compressible":true,"extensions":["gltf"]},"model/gltf-binary":{"source":"iana","compressible":true,"extensions":["glb"]},"model/iges":{"source":"iana","compressible":false,"extensions":["igs","iges"]},"model/jt":{"source":"iana","extensions":["jt"]},"model/mesh":{"source":"iana","compressible":false,"extensions":["msh","mesh","silo"]},"model/mtl":{"source":"iana","extensions":["mtl"]},"model/obj":{"source":"iana","extensions":["obj"]},"model/prc":{"source":"iana","extensions":["prc"]},"model/step":{"source":"iana","extensions":["step","stp","stpnc","p21","210"]},"model/step+xml":{"source":"iana","compressible":true,"extensions":["stpx"]},"model/step+zip":{"source":"iana","compressible":false,"extensions":["stpz"]},"model/step-xml+zip":{"source":"iana","compressible":false,"extensions":["stpxz"]},"model/stl":{"source":"iana","extensions":["stl"]},"model/u3d":{"source":"iana","extensions":["u3d"]},"model/vnd.bary":{"source":"iana","extensions":["bary"]},"model/vnd.cld":{"source":"iana","extensions":["cld"]},"model/vnd.collada+xml":{"source":"iana","compressible":true,"extensions":["dae"]},"model/vnd.dwf":{"source":"iana","extensions":["dwf"]},"model/vnd.flatland.3dml":{"source":"iana"},"model/vnd.gdl":{"source":"iana","extensions":["gdl"]},"model/vnd.gs-gdl":{"source":"apache"},"model/vnd.gs.gdl":{"source":"iana"},"model/vnd.gtw":{"source":"iana","extensions":["gtw"]},"model/vnd.moml+xml":{"source":"iana","compressible":true},"model/vnd.mts":{"source":"iana","extensions":["mts"]},"model/vnd.opengex":{"source":"iana","extensions":["ogex"]},"model/vnd.parasolid.transmit.binary":{"source":"iana","extensions":["x_b"]},"model/vnd.parasolid.transmit.text":{"source":"iana","extensions":["x_t"]},"model/vnd.pytha.pyox":{"source":"iana","extensions":["pyo","pyox"]},"model/vnd.rosette.annotated-data-model":{"source":"iana"},"model/vnd.sap.vds":{"source":"iana","extensions":["vds"]},"model/vnd.usda":{"source":"iana","extensions":["usda"]},"model/vnd.usdz+zip":{"source":"iana","compressible":false,"extensions":["usdz"]},"model/vnd.valve.source.compiled-map":{"source":"iana","extensions":["bsp"]},"model/vnd.vtu":{"source":"iana","extensions":["vtu"]},"model/vrml":{"source":"iana","compressible":false,"extensions":["wrl","vrml"]},"model/x3d+binary":{"source":"apache","compressible":false,"extensions":["x3db","x3dbz"]},"model/x3d+fastinfoset":{"source":"iana","extensions":["x3db"]},"model/x3d+vrml":{"source":"apache","compressible":false,"extensions":["x3dv","x3dvz"]},"model/x3d+xml":{"source":"iana","compressible":true,"extensions":["x3d","x3dz"]},"model/x3d-vrml":{"source":"iana","extensions":["x3dv"]},"multipart/alternative":{"source":"iana","compressible":false},"multipart/appledouble":{"source":"iana"},"multipart/byteranges":{"source":"iana"},"multipart/digest":{"source":"iana"},"multipart/encrypted":{"source":"iana","compressible":false},"multipart/form-data":{"source":"iana","compressible":false},"multipart/header-set":{"source":"iana"},"multipart/mixed":{"source":"iana"},"multipart/multilingual":{"source":"iana"},"multipart/parallel":{"source":"iana"},"multipart/related":{"source":"iana","compressible":false},"multipart/report":{"source":"iana"},"multipart/signed":{"source":"iana","compressible":false},"multipart/vnd.bint.med-plus":{"source":"iana"},"multipart/voice-message":{"source":"iana"},"multipart/x-mixed-replace":{"source":"iana"},"text/1d-interleaved-parityfec":{"source":"iana"},"text/cache-manifest":{"source":"iana","compressible":true,"extensions":["appcache","manifest"]},"text/calendar":{"source":"iana","extensions":["ics","ifb"]},"text/calender":{"compressible":true},"text/cmd":{"compressible":true},"text/coffeescript":{"extensions":["coffee","litcoffee"]},"text/cql":{"source":"iana"},"text/cql-expression":{"source":"iana"},"text/cql-identifier":{"source":"iana"},"text/css":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["css"]},"text/csv":{"source":"iana","compressible":true,"extensions":["csv"]},"text/csv-schema":{"source":"iana"},"text/directory":{"source":"iana"},"text/dns":{"source":"iana"},"text/ecmascript":{"source":"apache"},"text/encaprtp":{"source":"iana"},"text/enriched":{"source":"iana"},"text/fhirpath":{"source":"iana"},"text/flexfec":{"source":"iana"},"text/fwdred":{"source":"iana"},"text/gff3":{"source":"iana"},"text/grammar-ref-list":{"source":"iana"},"text/hl7v2":{"source":"iana"},"text/html":{"source":"iana","compressible":true,"extensions":["html","htm","shtml"]},"text/jade":{"extensions":["jade"]},"text/javascript":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["js","mjs"]},"text/jcr-cnd":{"source":"iana"},"text/jsx":{"compressible":true,"extensions":["jsx"]},"text/less":{"compressible":true,"extensions":["less"]},"text/markdown":{"source":"iana","compressible":true,"extensions":["md","markdown"]},"text/mathml":{"source":"nginx","extensions":["mml"]},"text/mdx":{"compressible":true,"extensions":["mdx"]},"text/mizar":{"source":"iana"},"text/n3":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["n3"]},"text/parameters":{"source":"iana","charset":"UTF-8"},"text/parityfec":{"source":"iana"},"text/plain":{"source":"iana","compressible":true,"extensions":["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{"source":"iana","charset":"UTF-8"},"text/prs.fallenstein.rst":{"source":"iana"},"text/prs.lines.tag":{"source":"iana","extensions":["dsc"]},"text/prs.prop.logic":{"source":"iana"},"text/prs.texi":{"source":"iana"},"text/raptorfec":{"source":"iana"},"text/red":{"source":"iana"},"text/rfc822-headers":{"source":"iana"},"text/richtext":{"source":"iana","compressible":true,"extensions":["rtx"]},"text/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"text/rtp-enc-aescm128":{"source":"iana"},"text/rtploopback":{"source":"iana"},"text/rtx":{"source":"iana"},"text/sgml":{"source":"iana","extensions":["sgml","sgm"]},"text/shaclc":{"source":"iana"},"text/shex":{"source":"iana","extensions":["shex"]},"text/slim":{"extensions":["slim","slm"]},"text/spdx":{"source":"iana","extensions":["spdx"]},"text/strings":{"source":"iana"},"text/stylus":{"extensions":["stylus","styl"]},"text/t140":{"source":"iana"},"text/tab-separated-values":{"source":"iana","compressible":true,"extensions":["tsv"]},"text/troff":{"source":"iana","extensions":["t","tr","roff","man","me","ms"]},"text/turtle":{"source":"iana","charset":"UTF-8","extensions":["ttl"]},"text/ulpfec":{"source":"iana"},"text/uri-list":{"source":"iana","compressible":true,"extensions":["uri","uris","urls"]},"text/vcard":{"source":"iana","compressible":true,"extensions":["vcard"]},"text/vnd.a":{"source":"iana"},"text/vnd.abc":{"source":"iana"},"text/vnd.ascii-art":{"source":"iana"},"text/vnd.curl":{"source":"iana","extensions":["curl"]},"text/vnd.curl.dcurl":{"source":"apache","extensions":["dcurl"]},"text/vnd.curl.mcurl":{"source":"apache","extensions":["mcurl"]},"text/vnd.curl.scurl":{"source":"apache","extensions":["scurl"]},"text/vnd.debian.copyright":{"source":"iana","charset":"UTF-8"},"text/vnd.dmclientscript":{"source":"iana"},"text/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"text/vnd.esmertec.theme-descriptor":{"source":"iana","charset":"UTF-8"},"text/vnd.exchangeable":{"source":"iana"},"text/vnd.familysearch.gedcom":{"source":"iana","extensions":["ged"]},"text/vnd.ficlab.flt":{"source":"iana"},"text/vnd.fly":{"source":"iana","extensions":["fly"]},"text/vnd.fmi.flexstor":{"source":"iana","extensions":["flx"]},"text/vnd.gml":{"source":"iana"},"text/vnd.graphviz":{"source":"iana","extensions":["gv"]},"text/vnd.hans":{"source":"iana"},"text/vnd.hgl":{"source":"iana"},"text/vnd.in3d.3dml":{"source":"iana","extensions":["3dml"]},"text/vnd.in3d.spot":{"source":"iana","extensions":["spot"]},"text/vnd.iptc.newsml":{"source":"iana"},"text/vnd.iptc.nitf":{"source":"iana"},"text/vnd.latex-z":{"source":"iana"},"text/vnd.motorola.reflex":{"source":"iana"},"text/vnd.ms-mediapackage":{"source":"iana"},"text/vnd.net2phone.commcenter.command":{"source":"iana"},"text/vnd.radisys.msml-basic-layout":{"source":"iana"},"text/vnd.senx.warpscript":{"source":"iana"},"text/vnd.si.uricatalogue":{"source":"apache"},"text/vnd.sosi":{"source":"iana"},"text/vnd.sun.j2me.app-descriptor":{"source":"iana","charset":"UTF-8","extensions":["jad"]},"text/vnd.trolltech.linguist":{"source":"iana","charset":"UTF-8"},"text/vnd.vcf":{"source":"iana"},"text/vnd.wap.si":{"source":"iana"},"text/vnd.wap.sl":{"source":"iana"},"text/vnd.wap.wml":{"source":"iana","extensions":["wml"]},"text/vnd.wap.wmlscript":{"source":"iana","extensions":["wmls"]},"text/vnd.zoo.kcl":{"source":"iana"},"text/vtt":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["vtt"]},"text/wgsl":{"source":"iana","extensions":["wgsl"]},"text/x-asm":{"source":"apache","extensions":["s","asm"]},"text/x-c":{"source":"apache","extensions":["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{"source":"nginx","extensions":["htc"]},"text/x-fortran":{"source":"apache","extensions":["f","for","f77","f90"]},"text/x-gwt-rpc":{"compressible":true},"text/x-handlebars-template":{"extensions":["hbs"]},"text/x-java-source":{"source":"apache","extensions":["java"]},"text/x-jquery-tmpl":{"compressible":true},"text/x-lua":{"extensions":["lua"]},"text/x-markdown":{"compressible":true,"extensions":["mkd"]},"text/x-nfo":{"source":"apache","extensions":["nfo"]},"text/x-opml":{"source":"apache","extensions":["opml"]},"text/x-org":{"compressible":true,"extensions":["org"]},"text/x-pascal":{"source":"apache","extensions":["p","pas"]},"text/x-processing":{"compressible":true,"extensions":["pde"]},"text/x-sass":{"extensions":["sass"]},"text/x-scss":{"extensions":["scss"]},"text/x-setext":{"source":"apache","extensions":["etx"]},"text/x-sfv":{"source":"apache","extensions":["sfv"]},"text/x-suse-ymp":{"compressible":true,"extensions":["ymp"]},"text/x-uuencode":{"source":"apache","extensions":["uu"]},"text/x-vcalendar":{"source":"apache","extensions":["vcs"]},"text/x-vcard":{"source":"apache","extensions":["vcf"]},"text/xml":{"source":"iana","compressible":true,"extensions":["xml"]},"text/xml-external-parsed-entity":{"source":"iana"},"text/yaml":{"compressible":true,"extensions":["yaml","yml"]},"video/1d-interleaved-parityfec":{"source":"iana"},"video/3gpp":{"source":"iana","extensions":["3gp","3gpp"]},"video/3gpp-tt":{"source":"iana"},"video/3gpp2":{"source":"iana","extensions":["3g2"]},"video/av1":{"source":"iana"},"video/bmpeg":{"source":"iana"},"video/bt656":{"source":"iana"},"video/celb":{"source":"iana"},"video/dv":{"source":"iana"},"video/encaprtp":{"source":"iana"},"video/evc":{"source":"iana"},"video/ffv1":{"source":"iana"},"video/flexfec":{"source":"iana"},"video/h261":{"source":"iana","extensions":["h261"]},"video/h263":{"source":"iana","extensions":["h263"]},"video/h263-1998":{"source":"iana"},"video/h263-2000":{"source":"iana"},"video/h264":{"source":"iana","extensions":["h264"]},"video/h264-rcdo":{"source":"iana"},"video/h264-svc":{"source":"iana"},"video/h265":{"source":"iana"},"video/h266":{"source":"iana"},"video/iso.segment":{"source":"iana","extensions":["m4s"]},"video/jpeg":{"source":"iana","extensions":["jpgv"]},"video/jpeg2000":{"source":"iana"},"video/jpm":{"source":"apache","extensions":["jpm","jpgm"]},"video/jxsv":{"source":"iana"},"video/lottie+json":{"source":"iana","compressible":true},"video/matroska":{"source":"iana"},"video/matroska-3d":{"source":"iana"},"video/mj2":{"source":"iana","extensions":["mj2","mjp2"]},"video/mp1s":{"source":"iana"},"video/mp2p":{"source":"iana"},"video/mp2t":{"source":"iana","extensions":["ts","m2t","m2ts","mts"]},"video/mp4":{"source":"iana","compressible":false,"extensions":["mp4","mp4v","mpg4"]},"video/mp4v-es":{"source":"iana"},"video/mpeg":{"source":"iana","compressible":false,"extensions":["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{"source":"iana"},"video/mpv":{"source":"iana"},"video/nv":{"source":"iana"},"video/ogg":{"source":"iana","compressible":false,"extensions":["ogv"]},"video/parityfec":{"source":"iana"},"video/pointer":{"source":"iana"},"video/quicktime":{"source":"iana","compressible":false,"extensions":["qt","mov"]},"video/raptorfec":{"source":"iana"},"video/raw":{"source":"iana"},"video/rtp-enc-aescm128":{"source":"iana"},"video/rtploopback":{"source":"iana"},"video/rtx":{"source":"iana"},"video/scip":{"source":"iana"},"video/smpte291":{"source":"iana"},"video/smpte292m":{"source":"iana"},"video/ulpfec":{"source":"iana"},"video/vc1":{"source":"iana"},"video/vc2":{"source":"iana"},"video/vnd.cctv":{"source":"iana"},"video/vnd.dece.hd":{"source":"iana","extensions":["uvh","uvvh"]},"video/vnd.dece.mobile":{"source":"iana","extensions":["uvm","uvvm"]},"video/vnd.dece.mp4":{"source":"iana"},"video/vnd.dece.pd":{"source":"iana","extensions":["uvp","uvvp"]},"video/vnd.dece.sd":{"source":"iana","extensions":["uvs","uvvs"]},"video/vnd.dece.video":{"source":"iana","extensions":["uvv","uvvv"]},"video/vnd.directv.mpeg":{"source":"iana"},"video/vnd.directv.mpeg-tts":{"source":"iana"},"video/vnd.dlna.mpeg-tts":{"source":"iana"},"video/vnd.dvb.file":{"source":"iana","extensions":["dvb"]},"video/vnd.fvt":{"source":"iana","extensions":["fvt"]},"video/vnd.hns.video":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.ttsavc":{"source":"iana"},"video/vnd.iptvforum.ttsmpeg2":{"source":"iana"},"video/vnd.motorola.video":{"source":"iana"},"video/vnd.motorola.videop":{"source":"iana"},"video/vnd.mpegurl":{"source":"iana","extensions":["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{"source":"iana","extensions":["pyv"]},"video/vnd.nokia.interleaved-multimedia":{"source":"iana"},"video/vnd.nokia.mp4vr":{"source":"iana"},"video/vnd.nokia.videovoip":{"source":"iana"},"video/vnd.objectvideo":{"source":"iana"},"video/vnd.planar":{"source":"iana"},"video/vnd.radgamettools.bink":{"source":"iana"},"video/vnd.radgamettools.smacker":{"source":"apache"},"video/vnd.sealed.mpeg1":{"source":"iana"},"video/vnd.sealed.mpeg4":{"source":"iana"},"video/vnd.sealed.swf":{"source":"iana"},"video/vnd.sealedmedia.softseal.mov":{"source":"iana"},"video/vnd.uvvu.mp4":{"source":"iana","extensions":["uvu","uvvu"]},"video/vnd.vivo":{"source":"iana","extensions":["viv"]},"video/vnd.youtube.yt":{"source":"iana"},"video/vp8":{"source":"iana"},"video/vp9":{"source":"iana"},"video/webm":{"source":"apache","compressible":false,"extensions":["webm"]},"video/x-f4v":{"source":"apache","extensions":["f4v"]},"video/x-fli":{"source":"apache","extensions":["fli"]},"video/x-flv":{"source":"apache","compressible":false,"extensions":["flv"]},"video/x-m4v":{"source":"apache","extensions":["m4v"]},"video/x-matroska":{"source":"apache","compressible":false,"extensions":["mkv","mk3d","mks"]},"video/x-mng":{"source":"apache","extensions":["mng"]},"video/x-ms-asf":{"source":"apache","extensions":["asf","asx"]},"video/x-ms-vob":{"source":"apache","extensions":["vob"]},"video/x-ms-wm":{"source":"apache","extensions":["wm"]},"video/x-ms-wmv":{"source":"apache","compressible":false,"extensions":["wmv"]},"video/x-ms-wmx":{"source":"apache","extensions":["wmx"]},"video/x-ms-wvx":{"source":"apache","extensions":["wvx"]},"video/x-msvideo":{"source":"apache","extensions":["avi"]},"video/x-sgi-movie":{"source":"apache","extensions":["movie"]},"video/x-smv":{"source":"apache","extensions":["smv"]},"x-conference/x-cooltalk":{"source":"apache","extensions":["ice"]},"x-shader/x-fragment":{"compressible":true},"x-shader/x-vertex":{"compressible":true}}')}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var o=i[e]={id:e,loaded:!1,exports:{}};return n[e](o,o.exports,a),o.loaded=!0,o.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o=a(4356);const s=o.BL,r=o.um,c=o.vt,l=o.Iw,p=o.tT,u=o.Pt,d=o.r5,m=o.Ux,f=o.Of,h=o.BH,g=o.Rm,b=o.iD,x=o.UP,v=o.$_,y=o.vV,w=o.ns,C=o.eV,A=o._f,E=o.vJ,k=o.iF,T=o.tp,L=o.vR,j=o.Wp,_=o.Qs;export{s as acl,r as aclControl,c as create,l as createTypes,p as dom,u as icons,d as infiniteMessageArea,m as initFooter,f as initHeader,h as language,g as log,b as login,x as matrix,v as media,y as messageArea,w as ns,C as pad,A as participation,E as preferences,k as style,T as table,L as tabs,j as utils,_ as widgets};
|
|
42
43
|
//# sourceMappingURL=solid-ui.esm.min.js.map
|