solid-ui 3.0.1-e8256eb → 3.0.1-eac9a32
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 +1 -1
- package/dist/chat/keys.js +4 -4
- package/dist/chat/keys.js.map +1 -1
- package/dist/chat/signature.js +5 -5
- package/dist/chat/signature.js.map +1 -1
- package/dist/solid-ui.esm.js +11769 -12239
- package/dist/solid-ui.esm.js.map +1 -1
- package/dist/solid-ui.esm.min.js +14 -14
- package/dist/solid-ui.esm.min.js.map +1 -1
- package/dist/solid-ui.js +691 -1107
- package/dist/solid-ui.js.map +1 -1
- package/dist/solid-ui.min.js +11 -13
- package/dist/solid-ui.min.js.map +1 -1
- package/dist/versionInfo.js +5 -5
- package/package.json +22 -20
package/dist/solid-ui.min.js
CHANGED
|
@@ -1,41 +1,39 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("$rdf"),require("SolidLogic")):"function"==typeof define&&define.amd?define(["$rdf","SolidLogic"],t):"object"==typeof exports?exports.UI=t(require("$rdf"),require("SolidLogic")):e.UI=t(e.$rdf,e.SolidLogic)}(this,(e,t)=>(()=>{var n={49
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("$rdf"),require("SolidLogic")):"function"==typeof define&&define.amd?define(["$rdf","SolidLogic"],t):"object"==typeof exports?exports.UI=t(require("$rdf"),require("SolidLogic")):e.UI=t(e.$rdf,e.SolidLogic)}(this,(e,t)=>(()=>{var n={49(e,t,n){"use strict";
|
|
2
2
|
/*!
|
|
3
3
|
* mime-types
|
|
4
4
|
* Copyright(c) 2014 Jonathan Ong
|
|
5
5
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
6
6
|
* MIT Licensed
|
|
7
|
-
*/var a,i,r=n(598),o=n(466).extname,s=n(983),c=/^\s*([^;\s]*)(?:;|\s|$)/,l=/^text\//i;function u(e){if(!e||"string"!=typeof e)return!1;var t=c.exec(e),n=t&&r[t[1].toLowerCase()];return n&&n.charset?n.charset:!(!t||!l.test(t[1]))&&"UTF-8"}function p(e){if(!e||"string"!=typeof e)return!1;var n=c.exec(e),a=n&&t.extensions[n[1].toLowerCase()];return!(!a||!a.length)&&a[0]}function d(e,t,n){return(t?s(t,r[t].source):0)>(n?s(n,r[n].source):0)?t:n}function m(e,n,a){var i=["nginx","apache",void 0,"iana"],o=n?i.indexOf(r[n].source):0,s=a?i.indexOf(r[a].source):0;return"application/octet-stream"!==t.types[p]&&(o>s||o===s&&"application/"===t.types[p]?.slice(0,12))||o>s?n:a}t.charset=u,t.charsets={lookup:u},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 a=t.charset(n);a&&(n+="; charset="+a.toLowerCase())}return n},t.extension=p,t.extensions=Object.create(null),t.lookup=function(e){if(!e||"string"!=typeof e)return!1;var n=o("x."+e).toLowerCase().slice(1);if(!n)return!1;return t.types[n]||!1},t.types=Object.create(null),t._extensionConflicts=[],a=t.extensions,i=t.types,Object.keys(r).forEach(function(e){var n=r[e].extensions;if(n&&n.length){a[e]=n;for(var o=0;o<n.length;o++){var s=n[o];i[s]=d(s,i[s],e);const a=m(s,i[s],e);a!==i[s]&&t._extensionConflicts.push([s,a,i[s]])}}})},172
|
|
7
|
+
*/var a,i,r=n(598),o=n(466).extname,s=n(983),c=/^\s*([^;\s]*)(?:;|\s|$)/,l=/^text\//i;function u(e){if(!e||"string"!=typeof e)return!1;var t=c.exec(e),n=t&&r[t[1].toLowerCase()];return n&&n.charset?n.charset:!(!t||!l.test(t[1]))&&"UTF-8"}function p(e){if(!e||"string"!=typeof e)return!1;var n=c.exec(e),a=n&&t.extensions[n[1].toLowerCase()];return!(!a||!a.length)&&a[0]}function d(e,t,n){return(t?s(t,r[t].source):0)>(n?s(n,r[n].source):0)?t:n}function m(e,n,a){var i=["nginx","apache",void 0,"iana"],o=n?i.indexOf(r[n].source):0,s=a?i.indexOf(r[a].source):0;return"application/octet-stream"!==t.types[p]&&(o>s||o===s&&"application/"===t.types[p]?.slice(0,12))||o>s?n:a}t.charset=u,t.charsets={lookup:u},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 a=t.charset(n);a&&(n+="; charset="+a.toLowerCase())}return n},t.extension=p,t.extensions=Object.create(null),t.lookup=function(e){if(!e||"string"!=typeof e)return!1;var n=o("x."+e).toLowerCase().slice(1);if(!n)return!1;return t.types[n]||!1},t.types=Object.create(null),t._extensionConflicts=[],a=t.extensions,i=t.types,Object.keys(r).forEach(function(e){var n=r[e].extensions;if(n&&n.length){a[e]=n;for(var o=0;o<n.length;o++){var s=n[o];i[s]=d(s,i[s],e);const a=m(s,i[s],e);a!==i[s]&&t._extensionConflicts.push([s,a,i[s]])}}})},172(e){e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports},264(t){"use strict";t.exports=e},373(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},378(e,t,n){"use strict";n.d(t,{LN:()=>o,Pt:()=>r,i1:()=>s});var a=n(423),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},386(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 a in t){const i=t[a];n[a]=function(t=""){return e.namedNode(i+t)}}return n}},423(e,t,n){"use strict";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})},466(){},546(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},579(e,t,n){var a=n(738).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},580(e){"use strict";
|
|
8
8
|
/*!
|
|
9
9
|
* escape-html
|
|
10
10
|
* Copyright(c) 2012-2013 TJ Holowaychuk
|
|
11
11
|
* Copyright(c) 2015 Andreas Lubbe
|
|
12
12
|
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
|
13
13
|
* MIT Licensed
|
|
14
|
-
*/var t=/["'&<>]/;e.exports=function(e){var n,a=""+e,i=t.exec(a);if(!i)return a;var r="",o=0,s=0;for(o=i.index;o<a.length;o++){switch(a.charCodeAt(o)){case 34:n=""";break;case 38:n="&";break;case 39:n="'";break;case 60:n="<";break;case 62:n=">";break;default:continue}s!==o&&(r+=a.substring(s,o)),s=o+1,r+=n}return s!==o?r+a.substring(s,o):r}},598
|
|
14
|
+
*/var t=/["'&<>]/;e.exports=function(e){var n,a=""+e,i=t.exec(a);if(!i)return a;var r="",o=0,s=0;for(o=i.index;o<a.length;o++){switch(a.charCodeAt(o)){case 34:n=""";break;case 38:n="&";break;case 39:n="'";break;case 60:n="<";break;case 62:n=">";break;default:continue}s!==o&&(r+=a.substring(s,o)),s=o+1,r+=n}return s!==o?r+a.substring(s,o):r}},598(e,t,n){
|
|
15
15
|
/*!
|
|
16
16
|
* mime-db
|
|
17
17
|
* Copyright(c) 2014 Jonathan Ong
|
|
18
18
|
* Copyright(c) 2015-2022 Douglas Christopher Wilson
|
|
19
19
|
* MIT Licensed
|
|
20
20
|
*/
|
|
21
|
-
e.exports=n(813)},633:(e,t,n)=>{var a=n(172),i=n(993),r=n(869),o=n(887),s=n(791),c=n(373),l=n(579);function u(){"use strict";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},663:e=>{"use strict";e.exports=t},738: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},756:(e,t,n)=>{var a=n(633)();e.exports=a;try{regeneratorRuntime=a}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=a:Function("r","regeneratorRuntime = r")(a)}},791:(e,t,n)=>{var a=n(172),i=n(546);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},813:e=>{"use strict";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}}')},869:(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(993),i=n(791);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},983:e=>{var t={"prs.":100,"x-":200,"x.":300,"vnd.":400,default:900},n={nginx:10,apache:20,iana:40,default:30},a={application:1,font:2,audio:2,video:3,default:0};e.exports=function(e,i="default"){if("application/octet-stream"===e)return 0;const[r,o]=e.split("/"),s=o.replace(/(\.|x-).*/,"$1");return(t[s]||t.default)+(n[i]||n.default)+(a[r]||a.default)+(1-e.length/100)}},993:(e,t,n)=>{var a=n(546);function i(){
|
|
21
|
+
e.exports=n(813)},633(e,t,n){var a=n(172),i=n(993),r=n(869),o=n(887),s=n(791),c=n(373),l=n(579);function u(){"use strict";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},663(e){"use strict";e.exports=t},738(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},756(e,t,n){var a=n(633)();e.exports=a;try{regeneratorRuntime=a}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=a:Function("r","regeneratorRuntime = r")(a)}},791(e,t,n){var a=n(172),i=n(546);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},813(e){"use strict";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}}')},869(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(993),i=n(791);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},983(e){var t={"prs.":100,"x-":200,"x.":300,"vnd.":400,default:900},n={nginx:10,apache:20,iana:40,default:30},a={application:1,font:2,audio:2,video:3,default:0};e.exports=function(e,i="default"){if("application/octet-stream"===e)return 0;const[r,o]=e.split("/"),s=o.replace(/(\.|x-).*/,"$1");return(t[s]||t.default)+(n[i]||n.default)+(a[r]||a.default)+(1-e.length/100)}},993(e,t,n){var a=n(546);function i(){
|
|
22
22
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
23
|
-
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}},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={};return(()=>{"use strict";i.r(r),i.d(r,{acl:()=>$i,aclControl:()=>Ki,create:()=>Zi,createTypes:()=>d,dom:()=>Tu,icons:()=>Re.Pt,infiniteMessageArea:()=>Ol,initFooter:()=>Au,initHeader:()=>pu,language:()=>n,log:()=>e,login:()=>o,matrix:()=>Xi,media:()=>ar,messageArea:()=>Cr,ns:()=>v,pad:()=>l,participation:()=>c,preferences:()=>u,style:()=>_e,table:()=>Jl,tabs:()=>p,utils:()=>t,widgets:()=>s});var e={};i.r(e),i.d(e,{LogLevel:()=>T,alert:()=>z,clear:()=>q,debug:()=>D,dumpHTML:()=>V,error:()=>U,escapeForXML:()=>J,info:()=>P,logAscending:()=>G,logDescending:()=>W,msg:()=>O,setInternals:()=>$,setLevel:()=>H,success:()=>M,warn:()=>F});var t={};i.r(t),i.d(t,{AJARImage:()=>Ze,RDFComparePredicateObject:()=>rt,RDFComparePredicateSubject:()=>ot,addLoadEvent:()=>$e,ancestor:()=>Ve,beep:()=>Fe,clearVariableNames:()=>Oe,emptyNode:()=>qe,escapeForXML:()=>tt,findPos:()=>Ke,genUuid:()=>Pe,getAbout:()=>Ge,getEyeFocus:()=>Qe,getTarget:()=>He,getTerm:()=>We,hashColor:()=>De,include:()=>Je,label:()=>Q,labelForXML:()=>nt,labelWithOntology:()=>et,newVariableName:()=>Ie,ontologyLabel:()=>Xe,predParentOf:()=>st,predicateLabel:()=>it,predicateLabelForXML:()=>at,shortName:()=>Ye,stackString:()=>ze,syncTableToArray:()=>Ue,syncTableToArrayReOrdered:()=>Me});var n={};i.r(n),i.d(n,{addDefaults:()=>Cn,defaultPreferredLanguages:()=>kn,filterByLanguage:()=>Sn,getPreferredLanguages:()=>_n,getPreferredLanguagesFor:()=>En,languageCodeURIBase:()=>wn});var a={};i.r(a),i.d(a,{AUTOCOMPLETE_LIMIT:()=>Tn,ESCOResultToBindings:()=>Hn,bindingToTerm:()=>zn,dbPediaTypeMap:()=>Fn,dbpediaParameters:()=>On,escoParameters:()=>In,fetcherOptionsJsonPublicData:()=>Nn,getDbpediaDetails:()=>sa,getWikidataDetails:()=>ta,getWikidataDetailsOld:()=>aa,getWikidataLocation:()=>ra,instituteDetailsWikidataQuery:()=>Bn,loadFromBindings:()=>qn,loadPublicDataThing:()=>Xn,queryESCODataByName:()=>Vn,queryPublicDataByName:()=>Jn,queryPublicDataConstruct:()=>Zn,queryPublicDataSelect:()=>Kn,variableNameToPredicateMap:()=>Mn,wikidataClasses:()=>Rn,wikidataIncomingClassMap:()=>Un,wikidataOutgoingClassMap:()=>Dn,wikidataParameters:()=>Pn});var o={};i.r(o),i.d(o,{ensureLoadedPreferences:()=>li,ensureLoadedProfile:()=>pi,ensureLoggedIn:()=>ci,filterAvailablePanes:()=>ji,findAppInstances:()=>mi,getUserRoles:()=>Ai,loginStatusBox:()=>ki,newAppInstance:()=>Ei,registrationControl:()=>vi,registrationList:()=>gi,renderScopeHeadingRow:()=>xi,renderSignInPopup:()=>wi,scopeLabel:()=>hi,selectWorkspace:()=>Ci});var s={};i.r(s),i.d(s,{Group:()=>vr,GroupBuilder:()=>br,GroupPicker:()=>hr,PeoplePicker:()=>fr,Person:()=>xr,addStyleSheet:()=>en,allClassURIs:()=>Jt,appendForm:()=>Ia,askName:()=>Dt,attachmentList:()=>Vt,basicField:()=>yn,buildCheckboxForm:()=>Ja,button:()=>It,cancelButton:()=>Ot,clearElement:()=>xt,complain:()=>bt,continueButton:()=>Ft,createLinkDiv:()=>zt,createLinkForURI:()=>mt,createNameDiv:()=>Mt,defaultAnnotationStore:()=>Wt,deleteButtonWithCheck:()=>Nt,editFormButton:()=>Na,errorMessageBlock:()=>ct,extractLogURI:()=>gt,faviconOrDefault:()=>Bt,field:()=>dn,fieldFunction:()=>fn,fieldLabel:()=>xn,fieldParams:()=>un,fieldStore:()=>gn,fileUploadButtonDiv:()=>rn,findClosest:()=>Fa,findImage:()=>Tt,findImageFromURI:()=>St,formatDateTime:()=>wt,formsFor:()=>Da,iconForClass:()=>_t,imagesOf:()=>At,index:()=>Xt,isAudio:()=>tn,isImage:()=>an,isVideo:()=>nn,linkButton:()=>Kt,linkIcon:()=>dt,makeDescription:()=>qa,makeDraggable:()=>Se,makeDropTarget:()=>je,makeSelectForCategory:()=>Ga,makeSelectForChoice:()=>Ka,makeSelectForClassifierOptions:()=>Ha,makeSelectForNestedCategory:()=>Wa,makeSelectForOptions:()=>Va,mostSpecificClassURI:()=>mn,newButton:()=>Ma,newThing:()=>$a,openHrefInOutlineMode:()=>Gt,personTR:()=>Pt,promptForNew:()=>za,propertiesForClass:()=>Oa,propertyTriage:()=>$t,publicData:()=>a,refreshTree:()=>Ht,removeButton:()=>Qt,renderAsDiv:()=>qt,renderAsRow:()=>Ut,renderAutoComplete:()=>da,renderAutocompleteControl:()=>ga,renderNameValuePair:()=>bn,selectorPanel:()=>Zt,selectorPanelRefresh:()=>Yt,setImage:()=>Rt,setName:()=>Et,setVisible:()=>pa,shortDate:()=>yt,shortTime:()=>Ct,sortByLabel:()=>Ua,sortBySequence:()=>Pa,timestamp:()=>kt,uploadFiles:()=>Te});var c={};i.r(c),i.d(c,{manageParticipation:()=>zc,participationObject:()=>Uc,recordParticipation:()=>Mc,renderParticipants:()=>Pc});var l={};i.r(l),i.d(l,{getChunks:()=>Wc,lightColorHash:()=>Vc,manageParticipation:()=>zc,notepad:()=>Gc,notepadToHTML:()=>$c,participationObject:()=>Uc,recordParticipation:()=>Mc,renderParticipants:()=>Pc,xmlEncode:()=>Jc});var u={};i.r(u),i.d(u,{get:()=>Ul,getPreferencesForClass:()=>Gl,recordPersonalDefaults:()=>ql,recordSharedPreferences:()=>zl,renderPreferencesForm:()=>Hl,set:()=>Ml,value:()=>Pl});var p={};i.r(p),i.d(p,{TabWidgetElement:()=>tu,tabWidget:()=>au});var d={};i.r(d);var m=i(386),f=i.n(m),h=i(264);const v=f()(h);function b(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 x(e){return function(){var t=this,n=arguments;return new Promise(function(a,i){var r=e.apply(t,n);function o(e){b(r,a,i,o,s,"next",e)}function s(e){b(r,a,i,o,s,"throw",e)}o(void 0)})}}var g=i(756),y=i.n(g),w=i(663),k=1,C=2,E=4,A=8,_=16,j=32,S=63,T=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}({}),L=k+C+E,R=!1,B=document,N=window;function I(e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mesg";if(L&(arguments.length>1&&void 0!==arguments[1]?arguments[1]:E))if(void 0!==B){var n=B.getElementById("status");if(!n)return;var a=B.createElement("span");a.setAttribute("class",t);var i=new Date;a.innerHTML="".concat(i.getHours(),":").concat(i.getMinutes(),":").concat(i.getSeconds()," [").concat(t,"] ").concat(J(e),"<br/>"),R?n.insertBefore(a,n.firstChild):n.appendChild(a)}else"undefined"!=typeof console&&console.log(e)}function O(e){I(e)}function F(e){I(e,C,"warn")}function D(e){I(e,j,"dbug")}function P(e){I(e,_,"info")}function U(e){I(e,k,"eror")}function M(e){I(e,A,"good")}function z(e){N&&void 0!==N.alert?N.alert(e):F(e)}function q(){var e,t=null===(e=B)||void 0===e?void 0:e.getElementById("status");t&&(t.innerHTML="")}function H(e){L=S,D("Log level is now "+e),L=e}function V(){var e;if(B){var t=L;L=S,D((null===(e=B)||void 0===e||null===(e=e.body)||void 0===e?void 0:e.innerHTML)||""),L=t}}function G(){R=!0}function W(){R=!1}function J(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function $(e,t){N=e,B=t}var K={log:e,ns:v,rdf:h};function Q(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 i=function(e){return w.store.any(e,K.ns.ui("label"))||w.store.any(e,K.ns.link("message"))||w.store.any(e,K.ns.vcard("fn"))||w.store.any(e,K.ns.foaf("name"))||w.store.any(e,K.ns.dct("title"))||w.store.any(e,K.ns.dc("title"))||w.store.any(e,K.ns.rss("title"))||w.store.any(e,K.ns.contact("fullName"))||w.store.any(e,w.store.sym("http://www.w3.org/2001/04/roadmap/org#name"))||w.store.any(e,K.ns.cal("summary"))||w.store.any(e,K.ns.foaf("nick"))||w.store.any(e,K.ns.as("name"))||w.store.any(e,K.ns.schema("name"))||w.store.any(e,K.ns.rdfs("label"))||w.store.any(e,w.store.sym("http://www.w3.org/2004/02/skos/core#prefLabel"))}(e);if(i)return n(i.value);if("BlankNode"===e.termType)return"...";if("Collection"===e.termType)return"("+e.elements.length+")";var r=e.uri;if(void 0===r)return e.toString();try{r=r.split("/").map(decodeURIComponent).join("/")}catch(e){for(var o=r.length-3;o>0;o--)for(var s="0123456789abcefABCDEF";"%"===r[o]&&s.indexOf(r[o+1])>=0&&s.indexOf(r[o+2])>=0;)r=r.slice(0,o)+String.fromCharCode(parseInt(r.slice(o+1,o+3),16))+r.slice(o+3)}r=Z(r,"/profile/card#me"),r=Z(r,"#this");var c=(r=Z(r,"#me")).indexOf("#");if(c>=0)return a(r.slice(c+1));var l=r.lastIndexOf("/",r.length-2);return l>=0&&l<e.uri.length?a(r.slice(l+1)):n(decodeURIComponent(e.uri))}function Z(e,t){var n=-1*t.length;return e.slice(n)===t?e.slice(0,n):e}var Y=i(423),X=w.solidLogicSingleton.store;function ee(e,t,n,a){var i=v.acl,r="/"===e.uri.slice(-1),o=X.each(void 0,i("default"),n,a).concat(X.each(void 0,i("defaultForNew"),n,a)).reduce(function(t,n){return t.concat(X.statementsMatching(n,v.rdf("type"),i("Authorization"),a)).concat(X.statementsMatching(n,i("agent"),void 0,a)).concat(X.statementsMatching(n,i("agentClass"),void 0,a)).concat(X.statementsMatching(n,i("agentGroup"),void 0,a)).concat(X.statementsMatching(n,i("origin"),void 0,a)).concat(X.statementsMatching(n,i("originClass"),void 0,a)).concat(X.statementsMatching(n,i("mode"),void 0,a)).concat((0,h.st)(n,i("accessTo"),e,a)).concat(r?(0,h.st)(n,i("default"),e,a):[])},[]),s=(0,h.graph)();return o.forEach(function(e){return s.add(c(e.subject),c(e.predicate),c(e.object),(0,h.sym)(t.uri))}),s;function c(e){var n=a.uri.length;return(0,h.sym)(e.uri.slice(0,n)===a.uri?t.uri+e.uri.slice(n):e.uri)}}function te(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:X,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,v):n.each(void 0,v.acl("accessTo"),e),i=v.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 ne(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 ae(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 ie(e,t){var n=[],a=function(e){e.length?de(e.shift().doc(),function(i,r,o,s,c,l){var u=!r;if(!i||!c||!l)return t(i,s);var p=u?te(c,l):te(o,s);n.push(p),a(e.slice(1))}):t(!0,ae(n))};a(e)}function re(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 oe(e,t,n,a){return se(e,t,re(n),a)}function se(e,t,n,a,i,r){var o=v.acl;for(var s in n){var c=n[s];if(c.length){var l=s.split("\n"),u=l.map(function(e){return e.split("#")[1]}).join("");r&&!i&&(u+="Default");var p=e.sym(a.uri+"#"+u);e.add(p,v.rdf("type"),o("Authorization"),a),i&&e.add(p,o("accessTo"),t,a),r&&e.add(p,o("default"),t,a);for(var d=0;d<l.length;d++)e.add(p,o("mode"),e.sym(l[d]),a);for(var m=0;m<c.length;m++){var f=c[m][0],h=c[m][1];e.add(p,o(f),e.sym(h),a)}}}}function ce(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],o=(0,h.sym)(a[i][1]);t+="agent"===r?"@":"",t+=o.sameTerm(v.foaf("Agent"))?"*":Q(o),i<a.length-1&&(t+=",")}t+=";"}return"{"+t.slice(0,-1)+"}"}function le(e,t,n,a,i){return ue(e,t,re(n),a,i)}function ue(e,t,n,a,i){var r,o=(0,h.graph)();se(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),se(e,t,n,a,!0),e.fetcher.requested[a.uri]="done",i(o)):i(o,s)})}function pe(e,t,n,a){n=n||Y.Rm;var i=e.doc();de(i,function(r,o,s,c,l,u){if(!r||!l||!u)return a(!1,c);var p=o?te(s,c):te(l,u);ie(t,function(t,r){if(!t)return a(!1,r);ne(r,p)?n("Nice - same ACL. no change "+Q(e)+" "+i):(n("Group ACLs differ for "+Q(e)+" "+i),le(X,s,r,c,a))})})}function de(e,t){me(e,function(n,a,i,r){var o=v.acl;if(!n)return t(!1,!1,a,r);var s=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,h.sym)(n);me(r,function(a,c,l){if(!a)return t(!1,!0,c,"( No ACL pointer ".concat(n," ").concat(c,")").concat(l));if(403===c)return t(!1,!0,c,"( default ACL file FORBIDDEN. Stop.".concat(n,")"));if(404===c)return s(n);if(200!==c)return t(!1,!0,c,"Error status '".concat(c,"' searching for default for ").concat(r));if(!X.each(void 0,o("default"),X.sym(n),l).concat(X.each(void 0,o("defaultForNew"),X.sym(n),l)).length)return s(n);var u=X.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 s(e.uri):t(!1,!1,a,"Error accessing Access Control information for ".concat(e,") ").concat(r))})}function me(e,t){if(!X.fetcher)throw new Error("kb has no fetcher");X.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=X.any(e,w.ACL_LINK);if(i){if(!X.fetcher)throw new Error("kb has no fetcher");if(X.fetcher.nonexistent[i.value])return t(!0,404,i,"ACL file ".concat(i," does not exist."));X.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 fe(e){return he.apply(this,arguments)}function he(){return(he=x(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e,n){return de((0,h.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)}function ve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function be(e){return be="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},be(e)}function xe(e){var t=function(e,t){if("object"!=be(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=be(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==be(t)?t:t+""}function ge(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,xe(a.key),a)}}function ye(e,t,n){return t&&ge(e.prototype,t),n&&ge(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function we(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 ke(e,t){if(e){if("string"==typeof e)return we(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)?we(e,t):void 0}}function Ce(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var 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}}(e,t)||ke(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Ee=i(49);const Ae={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"};var _e={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(Ae.formBorderColor,"; border-radius: 0.2em;"),"padding-left: 2em; border: 0.05em solid ".concat(Ae.formBorderColor,"; border-radius: 0.2em;"),"padding-left: 2em; border: 0.1em solid ".concat(Ae.formBorderColor,"; border-radius: 0.2em;"),"padding-left: 2em; border: 0.2em solid ".concat(Ae.formBorderColor,"; border-radius: 0.2em;")],formFieldLabelStyle:"color: ".concat(Ae.lowProfileLinkColor,"; text-decoration: none;"),formFieldNameBoxStyle:"padding: 0.3em; vertical-align: middle; width:".concat(Ae.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(Ae.mediaModuleCanvasWidth,"; height:").concat(Ae.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;"};function je(e,t,n){var a=function(e){e.preventDefault(),e.dataTransfer.dropEffect="copy"},i=function(e){Y.Rm("dragenter event dropEffect: "+e.dataTransfer.dropEffect),this.localStyle&&(this.savedStyle||(this.savedStyle=_e.dragEvent)),e.dataTransfer.dropEffect="link",Y.Rm("dragenter event dropEffect 2: "+e.dataTransfer.dropEffect)},r=function(e){Y.Rm("dragleave event dropEffect: "+e.dataTransfer.dropEffect),this.savedStyle?this.localStyle=this.savedStyle:this.localStyle=_e.dropEvent},o=function(e){e.preventDefault&&e.preventDefault(),Y.Rm("Drop event. dropEffect: "+e.dataTransfer.dropEffect),Y.Rm("Drop event. types: "+(e.dataTransfer.types?e.dataTransfer.types.join(", "):"NOPE"));var a,i=null;if(e.dataTransfer.types){for(var r=0;r<e.dataTransfer.types.length;r++){var o=e.dataTransfer.types[r];if("text/uri-list"===o)i=e.dataTransfer.getData(o).split("\n"),Y.Rm("Dropped text/uri-list: "+i);else if("text/plain"===o)a=e.dataTransfer.getData(o);else if("Files"===o&&n){for(var s=e.dataTransfer.files,c=0;s[c];c++){var l=s[c];Y.Rm("Filename: "+l.name+", type: "+(l.type||"n/a")+" size: "+l.size+" bytes, last modified: "+(l.lastModifiedDate?l.lastModifiedDate.toLocaleDateString():"n/a"))}n(s)}}null===i&&a&&"http"===a.slice(0,4)&&(i=a,Y.Rm("Waring: Poor man's drop: using text for URI"))}else i=[e.dataTransfer.getData("Text")],Y.Rm("WARNING non-standard drop event: "+i[0]);return Y.Rm("Dropped URI list (2): "+i),i&&t(i),this.localStyle=_e.restoreStyle,!1};!function(e){e||Y.Rm("@@@ addTargetListeners: ele "+e),e.addEventListener("dragover",a),e.addEventListener("dragenter",i),e.addEventListener("dragleave",r),e.addEventListener("drop",o)}(e)}function Se(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),Y.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",Y.Rm("Dragend dropeffect: "+n.dataTransfer.dropEffect),Y.Rm("Dragend: "+e+" -> "+t)},!1)}function Te(e,t,n,a,i){for(var r=0;t[r];r++){var o=t[r];Y.Rm(" dropped: Filename: "+o.name+", type: "+(o.type||"n/a")+" size: "+o.size+" bytes, last modified: "+(o.lastModifiedDate?o.lastModifiedDate.toLocaleDateString():"n/a"));var s=new FileReader;s.onload=function(t){return function(r){var o=r.target.result,s="";Y.Rm(" File read byteLength : "+o.byteLength);var c=t.type;if(t.type&&""!==t.type){var l=Ee.extension(t.type);l&&"false"!==l&&!t.name.endsWith("."+l)&&t.type!==Ee.lookup(t.name)&&(s="_."+l)}else if(!(c=Ee.lookup(t.name))){var u="Filename needs to have an extension which gives a type we know: "+t.name;throw Y.Rm(u),alert(u),new Error(u)}var p=t.type.startsWith("image/")&&a||n,d=p+(p.endsWith("/")?"":"/")+encodeURIComponent(t.name)+s;e.webOperation("PUT",d,{data:o,contentType:c}).then(function(e){Y.Rm(" Upload: put OK: "+d),i(t,d)},function(e){var t=" Upload: FAIL "+d+", Error: "+e;throw Y.Rm(t),alert(t),new Error(t)})}}(o),s.readAsArrayBuffer(o)}}_e.setStyle=function(e,t){e.style=_e[t]};var Le,Re=i(378),Be={log:e,ns:v,rdf:h},Ne=0;function Ie(){return"v"+Ne++}function Oe(){Ne=0}function Fe(){if(Le){var e=new Le;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 De(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 Pe(){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 Ue(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 Me(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 ze(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 qe(e){for(var t=e.childNodes,n=t.length-1;n>=0;n--)e.removeChild(t[n]);return e}function He(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 Ve(e,t){var n;for(n=e;n;n=n.parentNode)try{if(n.tagName===t)return n}catch(e){return}}function Ge(e,t){var n,a;for(n=t;n&&1===n.nodeType;n=n.parentNode)if(a=n.getAttribute("about"))return e.fromNT(a);Be.log.debug("getAbout: No about found")}function We(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 Ge(w.store,e);case"undetermined selected":return e.nextSibling?n.predicate:t.AJAR_inverse?n.subject:n.object}}function Je(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 Ke(e){var t=e.ownerDocument.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return[n.left-t.left,n.top-t.top]}function Qe(e,t,n,a){a||(a=window);var i=Ke(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 Ze(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 Ye(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 Xe(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 Be.ns)a[Be.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 et(e,t){var n=w.store.findTypeURIs(e);return n[Be.ns.rdf("Predicate").uri]||n[Be.ns.rdfs("Class").uri]?Q(e,t)+" ("+Xe(e)+")":Q(e,t)}function tt(e){return e.replace(/&/g,"&").replace(/</g,"<")}function nt(e){return tt(Q(e))}function at(e,t){return tt(it(e,t))}function it(e,t){var n=Q(e);if(t){var a=w.store.any(e,Be.ns.owl("inverseOf"))||w.store.any(void 0,Be.ns.owl("inverseOf"),e);return a?Q(a):"type"===n?"...":"is "+n+" of"}return n}function rt(e,t){var n=e.predicate.compareTerm(t.predicate);return 0!==n?n:e.object.compareTerm(t.object)}function ot(e,t){var n=e.predicate.compareTerm(t.predicate);return 0!==n?n:e.subject.compareTerm(t.subject)}function st(e){for(var t=e;;){if(t.getAttribute("predTR"))return t;if(!t.previousSibling||"TR"!==t.previousSibling.nodeName)return Be.log.error("Could not find predParent"),e;t=t.previousSibling}}function ct(e,t,n,a){var i=e.createElement("div"),r=a||t instanceof Error?t:null;return r?(console.error("errorMessageBlock: ".concat(r," at: ").concat(r.stack||"??"),r),i.textContent=r.message):i.textContent=t,i.appendChild(Ot(e,function(){i.parentNode&&i.parentNode.removeChild(i)})).style=_e.errorCancelButton,i.setAttribute("style",_e.errorMessageBlockStyle),i.style.backgroundColor=n||Ae.defaultErrorBackgroundColor,i}"undefined"!=typeof AudioContext?Le=AudioContext:"undefined"!=typeof window&&(Le=window.AudioContext||window.webkitAudioContext);var lt=function(e,t,n){var a=e.createElement("tr");return a.appendChild(e.createElement("td")).appendChild(t),a.subject=n,a},ut=function(e,t){e.addEventListener("click",t)},pt=function(e,t,n){var a=t.appendChild(e.createElement("div"));a.setAttribute("style",_e.imageDivStyle),a.appendChild(n),n.setAttribute("draggable","false")};function dt(e,t,n){var a=e.createElement("a");a.setAttribute("href",t.uri),t.uri.startsWith("http")&&a.setAttribute("target","_blank");var i=a.appendChild(e.createElement("img"));return i.setAttribute("src",n||Re.i1+"go-to-this.png"),i.setAttribute("style","margin: 0.3em;"),a}var mt=function(e,t,n){var a=dt(e,n);t.appendChild(a).classList.add("HoverControlHide"),t.appendChild(e.createElement("br"))},ft=Re.Pt.iconBase,ht=ft+"noun_1180156.svg",vt=ft+"noun_1180158.svg";function bt(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);Y.Rm("Complaint: "+t),n?n.appendChild(ct(e&&e.dom||document,t)):alert(t)}}function xt(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function gt(e){var t=e.search(/logFile=/),n=e.search(/&rulesFile=/);return e.substring(t+8,n)}function yt(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 wt(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 kt(){return wt(new Date,"{FullYear}-{Month}-{Date}T{Hours}:{Minutes}:{Seconds}.{Milliseconds}")}function Ct(){return wt(new Date,"{Hours}:{Minutes}:{Seconds}.{Milliseconds}")}function Et(e,t){var n=w.store,a=function(e){var t=n.any(e,v.vcard("fn"))||n.any(e,v.foaf("name"))||n.any(e,v.vcard("organization-name"));return t?t.value:null},i=t.sameTerm(v.foaf("Agent"))?"Everyone":a(t);if(e.textContent=i||Q(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)||Q(t)})}}function At(e,t){return t.each(e,v.sioc("avatar")).concat(t.each(e,v.foaf("img"))).concat(t.each(e,v.vcard("logo"))).concat(t.each(e,v.vcard("hasPhoto"))).concat(t.each(e,v.vcard("photo"))).concat(t.each(e,v.foaf("depiction")))}var _t={"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 jt(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 St(e){var t=ft;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?jt(e)+"favicon.ico":null:t+"noun_15177.svg":t+"noun_10636_grey.svg"}function Tt(e){var t=w.store,n=ft;if(e.sameTerm(v.foaf("Agent"))||e.sameTerm(v.rdf("Resource")))return n+"noun_98053.svg";var a=t.any(e,v.sioc("avatar"))||t.any(e,v.foaf("img"))||t.any(e,v.vcard("logo"))||t.any(e,v.vcard("hasPhoto"))||t.any(e,v.vcard("photo"))||t.any(e,v.foaf("depiction"));return a?a.uri:null}function Lt(e,t,n){var a=w.store,i=Tt(t);if(i)return e.setAttribute("src",i),!0;var r=n[t.uri];if(r)return e.setAttribute("src",r),e.style=_e.classIconStyle,!0;var o=St(t);if(o)return e.setAttribute("src",o),!0;var s=a.findTypeURIs(t);for(var c in s)if(n[c])return e.setAttribute("src",n[c]),!1;return e.setAttribute("src",ft+"noun_10636_grey.svg"),!1}function Rt(e,t){var n=w.store,a={};for(var i in _t){var r=i.split(":")[0],o=i.split(":")[1],s=v[r](o);a[s.uri]=h.uri.join(_t[i],ft)}if(!Lt(e,t,a)&&t.uri){if(!n.fetcher)throw new Error("kb has no fetcher");n.fetcher.nowOrWhenFetched(t.doc(),void 0,function(n){n&&Lt(e,t,a)})}}function Bt(e,t){var n=e.createElement("img");n.style=_e.iconStyle;if(n.setAttribute("src",ft+(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",jt(t)+"favicon.ico"),a.setAttribute("type","image/x-icon"),a.appendChild(n),a}return Rt(n,t),n}function Nt(e,t,n,a){var i=ft+"noun_2188_red.svg",r=e.createElement("img");r.setAttribute("src",i),r.setAttribute("style",_e.smallButtonStyle),r.style.float="right";var o="Remove this "+n;return r.title=o,r.classList.add("hoverControlHide"),r.addEventListener("click",function(){var n=e.createElement("div");t.insertBefore(n,r),n.style.position="relative",n.appendChild(function(e,t,n,a){function i(){t.parentElement.removeChild(t)}function r(){i(),a()}var o=e.createElement("div");o.style=_e.confirmPopupStyle,o.style.position="absolute",o.style.top="-1em",o.style.display="grid",o.style.gridTemplateColumns="auto auto";var s=e.createElement("div");s.style.gridColumn="1/2",s.style.gridRow="1";var c=e.createElement("div");c.style.gridColumn="1/2",c.style.gridRow="2";var l=Ot(e,i);o.appendChild(l),l.style.gridColumn="1",l.style.gridRow="2";var u=o.appendChild(e.createElement("button"));u.style=_e.buttonStyle,u.style.gridRow="2",u.style.gridColumn="2",u.textContent="Cancel";var p=It(e,Re.Pt.iconBase+"noun_925021.svg","Delete it");o.appendChild(p),p.style.gridRow="1",p.style.gridColumn="1";var d=o.appendChild(e.createElement("button"));return d.style=_e.buttonStyle,d.style.gridRow="1",d.style.gridColumn="2",d.textContent=n,o.appendChild(d),p.addEventListener("click",r),d.addEventListener("click",r),u.addEventListener("click",i),o}(e,n,o,a))}),t.classList.add("hoverControl"),t.appendChild(r),r.setAttribute("data-testid","deleteButtonWithCheck"),r}function It(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 o=r.appendChild(e.createElement("img"));o.setAttribute("src",t),o.setAttribute("style","width: 2em; height: 2em;"),o.title=n,r.setAttribute("style",_e.buttonStyle)}else r.textContent=n.toLocaleUpperCase(),r.onmouseover=function(){"Secondary"===i.buttonColor?i.needsBorder?r.setAttribute("style",_e.secondaryButtonNoBorderHover):r.setAttribute("style",_e.secondaryButtonHover):i.needsBorder?r.setAttribute("style",_e.primaryButtonNoBorderHover):r.setAttribute("style",_e.primaryButtonHover)},r.onmouseout=function(){"Secondary"===i.buttonColor?i.needsBorder?r.setAttribute("style",_e.secondaryButtonNoBorder):r.setAttribute("style",_e.secondaryButton):i.needsBorder?r.setAttribute("style",_e.primaryButtonNoBorder):r.setAttribute("style",_e.primaryButton)},"Secondary"===i.buttonColor?i.needsBorder?r.setAttribute("style",_e.secondaryButtonNoBorder):r.setAttribute("style",_e.secondaryButton):i.needsBorder?r.setAttribute("style",_e.primaryButtonNoBorder):r.setAttribute("style",_e.primaryButton);return a&&r.addEventListener("click",a,!1),r}function Ot(e,t){var n=It(e,ht,"Cancel",t);return n.firstChild&&(n.firstChild.style.opacity="0.3"),n}function Ft(e,t){return It(e,vt,"Continue",t)}function Dt(e,t,n,a,i,r){return new Promise(function(t,o){var s=e.createElement("div");a=a||v.foaf("name");var c=(r=r||(i?Q(i):" "))+" "+Q(a)+": ";s.appendChild(e.createElement("p")).textContent=c;var l=e.createElement("input");function u(){s.parentNode.removeChild(s),t(l.value.trim())}l.setAttribute("type","text"),l.setAttribute("size","100"),l.setAttribute("maxLength","2048"),l.setAttribute("style",_e.textInputStyle),l.select(),s.appendChild(l),n.appendChild(s),l.addEventListener("keyup",function(e){13===e.keyCode&&u()},!1),s.appendChild(e.createElement("br")),s.appendChild(Ot(e,function(e){s.parentNode.removeChild(s),t(null)})),s.appendChild(Ft(e,function(e){u()})),l.focus()})}var Pt=Ut;function Ut(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||Bt(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:Et(o,n),a.deleteFunction&&Nt(e,s,a.noun||"one",a.deleteFunction),n.uri){if(!1!==a.link)s.appendChild(dt(e,n)).classList.add("HoverControlHide"),s.appendChild(e.createElement("br"));!1!==a.draggable&&(c.setAttribute("draggable","false"),Se(i,n))}return i.subject=n,i}function Mt(e,t,n,a){var i=t.appendChild(e.createElement("div"));n?i.textContent=n:Et(i,a)}function zt(e,t,n,a){var i=t.appendChild(e.createElement("div"));i.setAttribute("style",_e.linkDivStyle),a.deleteFunction&&Nt(e,i,a.noun||"one",a.deleteFunction),n.uri&&(!1!==a.link&&mt(e,i,n),Se(t,n))}function qt(e,t,n){var a=e.createElement("div");a.setAttribute("style",_e.renderAsDivStyle);var i=(n=n||{}).image||Bt(e,t);return pt(e,a,i),Mt(e,a,n.title,t),zt(e,a,t,n),n.clickable&&n.onClickFunction&&ut(a,n.onClickFunction),n.wrapInATR?lt(e,a,t):a}function Ht(e){if(e.refresh)e.refresh();else for(var t=0;t<e.children.length;t++)Ht(e.children[t])}function Vt(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};function i(n){var a=n,i={noun:d};return l&&(i.deleteFunction=function(){!function(e){if(!m.updater)throw new Error("kb has no updater");m.updater.update((0,h.st)(t,p,e,c),[],function(e,t,n,a){t?r():bt(void 0,"Error deleting one: "+n)})}(a)}),Pt(e,p,n,i)}var r=function(){var e=m.each(t,p);e.sort(),Ue(g,e,i)};function o(e){var n=[];if(e.forEach(function(e){var a=(0,h.sym)(e);Y.Rm("Dropped on attachemnt "+e),n.push((0,h.st)(t,p,a,c))}),!m.updater)throw new Error("kb has no updater");m.updater.update([],n,function(e,t,n,a){t?r():bt(void 0,"Error adding one: "+n)})}function s(e){var n,i;Te(m.fetcher,e,null===(n=a.uploadFolder)||void 0===n?void 0:n.uri,null===(i=a.uploadFolder)||void 0===i?void 0:i.uri,function(e,n){var a=[(0,h.st)(t,p,m.sym(n),c)];if(!m.updater)throw new Error("kb has no updater");m.updater.update([],a,function(e,t,n,a){t?r():bt(void 0,"Error adding link to uploaded file: "+n)})})}var c=a.doc||t.doc();void 0===a.modify&&(a.modify=!0);var l=a.modify,u=a.promptIcon||ft+"noun_748003.svg",p=a.predicate||v.wf("attachment"),d=a.noun||"attachment",m=w.store,f=n.appendChild(e.createElement("table"));f.setAttribute("style","margin-top: 1em; margin-bottom: 1em;");var b=f.appendChild(e.createElement("tr")),x=b.appendChild(e.createElement("td")),g=b.appendChild(e.createElement("td")).appendChild(e.createElement("table"));if(g.appendChild(e.createElement("tr")),f.refresh=r,r(),l){var y=It(e,u,"Drop attachments here");x.appendChild(y);var k=a.uploadFolder?s:null;if(je(y,o,k),je(x,o,k),a.uploadFolder){var C=rn(e,s);x.appendChild(C)}}return f}function Gt(e){e.preventDefault(),e.stopPropagation();var t=He(e).getAttribute("href");if(!t)return Y.Rm("openHrefInOutlineMode: No href found!\n");var n=window.document;n.outlineManager?n.outlineManager.GotoSubject(w.store.sym(t),!0,void 0,!0,void 0):window&&window.panes&&window.panes.getOutliner?window.panes.getOutliner().GotoSubject(w.store.sym(t),!0,void 0,!0,void 0):Y.Rm("ERROR: Can't access outline manager in this config")}function Wt(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 w.store.sym("http://tabulator.org/wiki/annnotation/"+t)}}}function Jt(){var e={};return w.store.statementsMatching(void 0,v.rdf("type"),void 0).forEach(function(t){t.object.value&&(e[t.object.value]=!0)}),w.store.statementsMatching(void 0,v.rdfs("subClassOf"),void 0).forEach(function(t){t.object.value&&(e[t.object.value]=!0),t.subject.value&&(e[t.subject.value]=!0)}),w.store.each(void 0,v.rdf("type"),v.rdfs("Class")).forEach(function(t){t.value&&(e[t.value]=!0)}),e}function $t(e){var t={},n={},a={},i=0,r=0,o=0,s=e.predicateIndex;for(var c in s){"Literal"===s[c][0].object.termType?(n[c]=!0,r++):(a[c]=!0,i++)}for(var l=e.each(void 0,v.rdf("type"),v.rdf("Property")),u=0;u<l.length;u++){var p=l[u].toNT();a[p]||n[p]||(n[p]=!0,a[p]=!0,o++)}return t.op=a,t.dp=n,P("propertyTriage: ".concat(i," non-lit, ").concat(r," literal. ").concat(o," unknown.")),t}function Kt(e,t){var n=e.createElement("button");return n.setAttribute("type","button"),n.textContent="Goto "+Q(t),n.addEventListener("click",function(n){e.outlineManager.GotoSubject(t,!0,void 0,!0,void 0)},!0),n}function Qt(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 Zt(e,t,n,a,i,r,o,s,c){return Yt(e.createElement("div"),e,t,n,a,i,r,o,s,c)}function Yt(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);x.setAttribute("class",0===e.length?"hideTillHover":""),m.setAttribute("src",s.connectIcon||ft+"noun_25830.svg"),m.setAttribute("title",e.length?e.length:"attach")},h=Xt.twoLine.widgetForClass(a);(d=h(t,o)).setAttribute("style",u);var v=t.createElement("div");v.setAttribute("class","hideTillHover"),v.setAttribute("style","float:right; width:10%");var b=t.createElement("a");b.setAttribute("href",o.uri),b.setAttribute("style","float:right"),v.appendChild(b).textContent=">",e.appendChild(v);var x=t.createElement("div");return x.setAttribute("style",(r?"float:left;":"float:right;")+" width:30px;"),m=t.createElement("img"),f(),x.appendChild(m),e.appendChild(x),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 Xt={};function en(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 tn(e){return an(e,"audio")}function nn(e){return an(e,"video")}function an(e,t){var n=t||"image",a=w.store.findTypeURIs(e),i=h.Util.mediaTypeClass(n+"/*").uri.split("*")[0];for(var r in a)if(r.startsWith(i))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 rn(e,t){var n=e.createElement("div"),a=n.appendChild(e.createElement("input"));return a.setAttribute("type","file"),a.setAttribute("multiple","true"),a.addEventListener("change",function(e){Y.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",je(n.appendChild(It(e,ft+"noun_Upload_76574_000000.svg","Upload files",function(e){a.click()})),null,t),n}function on(e,t,n){return(t=xe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Xt={line:{},twoLine:{"":function(e,t){var n=e.createElement("div");return n.textContent=Q(t),n},"http://www.w3.org/2000/10/swap/pim/qif#Transaction":function(e,t){var n="",a=function(e){var a=w.store.any(t,v.qu(e));return a||(n+="@@ No value for "+e+"! "),a?tt(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(tt(t.uri),'">').concat(tt(n),"</a></td>\n </tr>")),i},"http://www.w3.org/ns/pim/trip#Trip":function(e,t){var n=function(e){var n=w.store.any(t,e);return n?tt(n.value):"?"},a=e.createElement("table");return a.innerHTML='\n <tr>\n <td colspan="2">'.concat(n(v.dc("title")),'</td>\n </tr>\n <tr style="color: #777">\n <td>').concat(n(v.cal("dtstart")),"</td>\n <td>").concat(n(v.cal("dtend")),"</td>\n </tr>"),a},widgetForClass:function(e){var t=Xt.twoLine[e.uri],n=w.store;if(t)return t;var a=n.findSuperClassesNT(e);for(var i in a)if(t=Xt.twoLine[n.fromNT(i).uri])return t;return Xt.twoLine[""]}}};const sn={authEndpoint:"",fallbackAuthEndpoint:"https://databox.me/",signupEndpoint:"https://solidproject.org/use-solid/",signupWindowHeight:600,signupWindowWidth:1024,key:"",cert:""};function cn(e){this.config=e||sn}var ln;cn.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)})},cn.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)})})};var un=(on(on(on(on(on(on(on(on(on(on(ln={},v.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*$/}),v.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*$/}),v.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*$/}),v.ui("TimeField").uri,{size:10,type:"time",dt:"time",pattern:/^\s*([0-2]?[0-9]:[0-5][0-9](:[0-5][0-9])?)\s*$/}),v.ui("IntegerField").uri,{size:12,style:"text-align: right;",dt:"integer",pattern:/^\s*-?[0-9]+\s*$/}),v.ui("DecimalField").uri,{size:12,style:"text-align: right;",dt:"decimal",pattern:/^\s*-?[0-9]*(\.[0-9]*)?\s*$/}),v.ui("FloatField").uri,{size:12,style:"text-align: right;",dt:"float",pattern:/^\s*-?[0-9]*(\.[0-9]*)?((e|E)-?[0-9]*)?\s*$/}),v.ui("SingleLineTextField").uri,{}),v.ui("NamedNodeURIField").uri,{namedNode:!0}),v.ui("TextField").uri,{}),on(on(on(on(on(ln,v.ui("PhoneField").uri,{size:20,uriPrefix:"tel:",pattern:/^\+?[\d-]+[\d]*$/}),v.ui("EmailField").uri,{size:30,uriPrefix:"mailto:",pattern:/^\s*.*@.*\..*\s*$/}),v.ui("Group").uri,{style:_e.formGroupStyle}),v.ui("Comment").uri,{element:"p",style:_e.commentStyle}),v.ui("Heading").uri,{element:"h3",style:_e.formHeadingStyle})),pn=w.solidLogicSingleton.store,dn={};function mn(e){var t=pn,n=t.findTypeURIs(e),a=t.bottomTypeURIs(n),i=[];for(var r in a)i.push(r);return i[0]}function fn(e,t){var n=mn(t),a=dn[n];return D("paneUtils: Going to implement field "+t+" of type "+n),a||function(e,a){var i=ct(e,"No handler for field "+t+" of type "+n);return a&&a.appendChild(i),i}}var hn="https://www.w3.org/ns/css#";var vn=w.solidLogicSingleton.store;function bn(e,t,n,a,i){n.style.display="flex",n.style.flexDirection="row";var r=n.appendChild(e.createElement("div"));r.style.width=Ae.formFieldNameBoxWidth;var o=n.appendChild(e.createElement("div"));return r.setAttribute("class","formFieldName"),r.setAttribute("style",_e.formFieldNameBoxStyle),o.setAttribute("class","formFieldValue"),i?r.appendChild(e.createTextNode(i)):t.any(a,v.ui("property"))?r.appendChild(xn(e,t.any(a,v.ui("property")),a)):(o.appendChild(ct(e,"No property or label given for form field: "+a)),r.appendChild(e.createTextNode("???"))),o}function xn(e,t,n){var a=vn.any(n,v.ui("label"));if(a||(a=Q(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 gn(e,t,n){var a=vn.statementsMatching(e,t);if(0===a.length)return n;if(!vn.updater)throw new Error("Store has no updater");return a.length>0&&a[0].why.value&&vn.updater.editable(a[0].why.value,vn)?vn.sym(a[0].why.value):n}function yn(e,t,n,a,i,r,o){var s=vn,c=i.doc?i.doc():null,l=e.createElement("div"),u=s.any(i,v.ui("property"));if(t&&t.appendChild(l),!u)return l.appendChild(ct(e,"Error: No property given for text field: "+i));var p=bn(e,s,l,i),d=s.anyJS(i,v.ui("suppressEmptyUneditable"),null,c),m=mn(i),f=un[m];void 0===f&&(f={style:""});var b=f.style||"",x=_e.textInputStyle+b,g=e.createElement("input");g.style=x,p.appendChild(g),g.setAttribute("type",f.type?f.type:"text");var y=s.anyJS(i,v.ui("size"))||Ae.textInputSize||20;g.setAttribute("size",y);var w=s.any(i,v.ui("maxLength"));g.setAttribute("maxLength",w?""+w:Ae.basicMaxLength),r=r||gn(a,u,r);var k=s.any(a,u,void 0,r);if(k||(k=s.any(i,v.ui("default"))),k&&k.value&&f.uriPrefix?g.value=decodeURIComponent(k.value.replace(f.uriPrefix,"")).replace(/ /g,""):k&&(g.value=k.value||k.value||""),g.setAttribute("style",x),!s.updater)throw new Error("kb has no updater");return s.updater.editable(r.uri)?(g.addEventListener("keyup",function(e){f.pattern&&g.setAttribute("style",x+(g.value.match(f.pattern)?"color: green;":"color: red;"))},!0),g.addEventListener("change",function(t){if(!f.pattern||g.value.match(f.pattern)){g.disabled=!0,g.setAttribute("style",x+"color: gray;");var n,i=s.statementsMatching(a,u);f.namedNode?n=s.sym(g.value):f.uriPrefix?(n=encodeURIComponent(g.value.replace(/ /g,"")),n=s.sym(f.uriPrefix+g.value)):n=f.dt?new h.Literal(g.value.trim(),void 0,v.xsd(f.dt)):new h.Literal(g.value);var c=i.map(function(e){return(0,h.st)(e.subject,e.predicate,n,e.why)});0===c.length&&(c=[(0,h.st)(a,u,n,r)]),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(!s.updater)throw new Error("kb has no updater");if(1===i.length)return s.updater.update(t,n,a);var r=i.pop(),o=n.filter(function(e){return e.why.uri===r}),c=n.filter(function(e){return e.why.uri!==r}),l=t.filter(function(e){return e.why.uri===r}),u=t.filter(function(e){return e.why.uri!==r});s.updater.update(l,o,function(t,n,i){n?e(u,c,a):a(t,n,i)})}(i,c,function(t,n,a){n?(g.disabled=!1,g.setAttribute("style",x)):l.appendChild(ct(e,a)),o(n,a)})}},!0),l):(g.readOnly=!0,g.style=_e.textInputStyleUneditable+b,d&&""===g.value&&(l.style.display="none"),l)}var wn="https://www.w3.org/ns/iana/language-code/",kn=["en","fr","de","it","ar"];function Cn(e){return e||(e=[]),e.concat(kn.filter(function(t){return!e.includes(t)}))}function En(e){return An.apply(this,arguments)}function An(){return(An=x(y().mark(function e(t){var n,a,i,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.doc(),e.next=1,null===(n=w.store.fetcher)||void 0===n?void 0:n.load(a);case 1:if(i=w.store.any(t,v.schema("knowsLanguage"),null,a)){e.next=2;break}return e.abrupt("return",kn);case 2:if(r=[],i.elements.forEach(function(e){var t=w.store.any(e,v.solid("publicId"),null,a);if(t)if(t.value.startsWith(wn)){var n=t.value.slice(wn.length);r.push(n)}else console.error("What should be a language code ".concat(t.value," does not start with ").concat(wn));else console.warn("getPreferredLanguages: No publiID of language.")}),!(r.length>0)){e.next=3;break}return console.log(' User knows languages with codes: "'.concat(r.join(","),'"')),e.abrupt("return",Cn(r));case 3:return e.abrupt("return",null);case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function _n(){return jn.apply(this,arguments)}function jn(){return(jn=x(y().mark(function e(){var t,n;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,w.authn.currentUser();case 1:if(!(t=e.sent)){e.next=3;break}return e.next=2,En(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",Cn(navigator.languages.map(function(e){return e.split("-")[0]})));case 4:if(!navigator.language){e.next=5;break}return e.abrupt("return",Cn([navigator.language.split("-")[0]]));case 5:return e.abrupt("return",kn);case 6:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Sn(e,t){var n={};e.forEach(function(e){var t=e.subject.value;n[t]=n[t]||[],n[t].push(e)});var a=t||kn;a.reverse();var i=[];for(var r in n){var o=n[r].map(function(e){var t=e.name["xml:lang"];return[a.indexOf(t),e]});o.sort(),o.reverse(),i.push(o[0][1])}return Y.Rm(" Filter by language: ".concat(e.length," -> ").concat(i.length)),i}var Tn=200,Ln=/\$\(subject\)/g,Rn={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"},Bn='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}',Nn={credentials:"omit",headers:new Headers({Accept:"application/json"})},In={label:"ESCO",logo:w.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)"},On={label:"DBPedia",logo:w.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/"},Fn={AcademicInsitution:"http://umbel.org/umbel/rc/EducationalOrganization"},Dn={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"},Pn={label:"WikiData",limit:3e3,logo:w.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}'},Un={"http://www.wikidata.org/entity/Q15936437":v.schema("CollegeOrUniversity"),"http://www.wikidata.org/entity/Q1664720":v.schema("EducationalOrganization"),"http://www.wikidata.org/entity/Q43229":v.schema("Organization"),"http://www.wikidata.org/entity/Q3918":v.schema("CollegeOrUniversity"),"http://www.wikidata.org/entity/Q170584":v.schema("Project"),"http://www.wikidata.org/entity/Q327333":v.schema("GovernmentOrganization"),"http://www.wikidata.org/entity/Q2221906":v.schema("Place"),"http://www.wikidata.org/entity/Q167037":v.schema("Corporation")},Mn={targetClass:v.rdf("type"),sealImage:v.schema("logo"),shortName:v.foaf("nick"),subsidiary:v.schema("subOrganization"),city:v.vcard("locality"),state:v.vcard("region"),country:v.vcard("country-name"),homepage:v.foaf("homepage"),lat:v.schema("latitude"),long:v.schema("longitude")};function zn(e){var t=e.type.toLowerCase();if("uri"===t||"iri"===t)return w.store.sym(e.value);if("literal"===t)return e["xml:lang"]?new h.Literal(e.value,e["xml:lang"]):new h.Literal(e.value);throw new Error('bindingToTerm: Unexpected type "'.concat(e.type,'" in sparql binding}'))}function qn(e,t,n,a){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Mn,r={};Y.Rm("loadFromBindings: subject: ".concat(t)),Y.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 o=function(n){var o=r[n];Y.Rm(" results ".concat(n," -> ").concat(o)),o.forEach(function(r){var o,s=JSON.parse(r),c=s.type,l=s.value;if("uri"===c)o=e.sym(l);else{if("literal"!==c)throw new Error("loadFromBindings: unexpected type: ".concat(c));o=new h.Literal(l,s.language,s.datatype)}if("type"===n)Un[l]?o=Un[l]:Y.R8("Unmapped Wikidata Class: "+l);else if("coordinates"===n){Y.Rm(" @@@ hey a point: "+l);var u=/.*\(([-0-9.-]*) ([-0-9.-]*)\)/.exec(l);if(u){var p=v.xsd("float"),d=new h.Literal(u[1],null,p),m=new h.Literal(u[2],null,p);e.add(t,v.schema("longitude"),m,a),e.add(t,v.schema("latitude"),d,a)}else Y.Rm("Bad coordinates syntax: "+l)}else{var f=i[n]||v.schema(n);e.add(t,f,o,a),Y.Rm(" public data ".concat(f," ").concat(o,"."))}})};for(var s in r)o(s)}function Hn(e){return e._embedded.results.map(function(e){return{name:{value:e.title,type:"literal"},subject:{type:"IRI",value:e.uri}}})}function Vn(e,t,n){return Gn.apply(this,arguments)}function Gn(){return(Gn=x(y().mark(function e(t,n,a){var i,r,o,s,c,l;return y().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 r=a.limit||Tn,o=a.searchByNameURI.replace("$(name)",t).replace("$(limit)",""+r).replace("$(targetClass)",n.toNT()),Y.Rm("Querying ESCO data - uri: "+o),e.next=2,null===(i=w.store.fetcher)||void 0===i?void 0:i.webOperation("GET",o,Nn);case 2:if(s=e.sent,c=(null==s?void 0:s.responseText)||"",Y.Rm(" Query result text"+c.slice(0,500)+"..."),0!==c.length){e.next=3;break}throw new Error("Wot no text back from ESCO query "+o);case 3:return l=JSON.parse(c),Y.Rm(" ESCO Query result JSON"+JSON.stringify(l,null,4).slice(0,500)+"..."),e.abrupt("return",Hn(l));case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Wn(e){var t=e.indexOf("SPARQL-QUERY");if(t<0)return e;Y.R8(" ### Fixing JSON with wikidata error code injection "+e.slice(t,t+200));var n=e.lastIndexOf("}, {");return e.slice(0,n)+" } ] } } "}function Jn(e,t,n,a){return $n.apply(this,arguments)}function $n(){return($n=x(y().mark(function e(t,n,a,i){var r,o,s,c,l,u,p,d,m,f,h,v;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=function(e){var a=i.limit||Tn;return e.replace("$(name)",t).replace("$(limit)",""+a).replace("$(language)",o).replace("$(targetClass)",n.toNT())},n){e.next=1;break}throw new Error("queryPublicDataByName: No class provided");case 1:return e.next=2,_n();case 2:if(h=e.sent){e.next=3;break}h=kn;case 3:if(o=h[0]||"en",!i.searchByNameQuery){e.next=4;break}return s=r(i.searchByNameQuery),Y.Rm("Querying public data - sparql: "+s),e.abrupt("return",Kn(s,i));case 4:if(!i.searchByNameURI){e.next=13;break}return c=r(i.searchByNameURI),e.prev=5,e.next=6,null===(u=w.store.fetcher)||void 0===u?void 0:u.webOperation("GET",c,Nn);case 6:l=e.sent,e.next=8;break;case 7:throw e.prev=7,v=e.catch(5),new Error("Exception when trying to fetch ".concat(c," \n ").concat(v));case 8:if(p=l.responseText||"",200===l.status){e.next=9;break}throw new Error("HTTP error status ".concat(l.status," trying to fetch ").concat(c," "));case 9:if(Y.Rm(" Query result text"+p.slice(0,500)+"..."),0!==p.length){e.next=10;break}throw new Error("queryPublicDataByName: No text back from public data query "+c);case 10:if(d=Wn(p),m=JSON.parse(d),Y.Rm(" API Query result JSON"+JSON.stringify(m,null,4).slice(0,500)+"..."),!m._embedded){e.next=11;break}return Y.Rm(" Looks like ESCO"),f=Hn(m),e.abrupt("return",f);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(m,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 Kn(e,t){return Qn.apply(this,arguments)}function Qn(){return(Qn=x(y().mark(function e(t,n){var a,i,r,o,s,c,l,u,p,d;return y().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),r=i.href,Y.Rm(" queryPublicDataSelect uri: "+r),(o=new Headers).append("Accept","application/json"),s={credentials:"omit",headers:o},e.next=2,null===(a=w.store.fetcher)||void 0===a?void 0:a.webOperation("GET",r,s);case 2:if(c=e.sent,0!==(l=(null==c?void 0:c.responseText)||"").length){e.next=3;break}throw new Error("No text back from query "+r);case 3:return u=Wn(l),p=JSON.parse(u),Y.Rm(" Query result JSON"+JSON.stringify(p,null,4).slice(0,100)+"..."),d=p.results.bindings,e.abrupt("return",d);case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Zn(e,t,n){return Yn.apply(this,arguments)}function Yn(){return(Yn=x(y().mark(function e(t,n,a){var i,r,o,s,c,l,u,p;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(Y.Rm("queryPublicDataConstruct: sparql:",t),a.endpoint){e.next=1;break}throw new Error("Missing queryTarget.endpoint required for queryPublicDataConstruct");case 1:return(r=new URL(a.endpoint)).searchParams.append("query",t),o=r.href,Y.Rm(" queryPublicDataConstruct uri: "+o),(s=new Headers).append("Accept","text/turtle"),c={credentials:"omit",headers:s},e.next=2,null===(i=w.store.fetcher)||void 0===i?void 0:i.webOperation("GET",o,c);case 2:if(l=e.sent,u=(null==l?void 0:l.responseText)||"No response text?",p=u.length>500?u.slice(0,200)+" ... "+u.slice(-200):u,Y.Rm(" queryPublicDataConstruct result text:"+p),0!==u.length){e.next=3;break}throw new Error("queryPublicDataConstruct: No text back from construct query:"+o);case 3:(0,h.parse)(u,w.store,n.uri,"text/turtle");case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Xn(e,t,n){return ea.apply(this,arguments)}function ea(){return ea=x(y().mark(function e(t,n,a){var i,r;return y().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",sa(t,n,a));case 1:if(!a.uri.match(/^https?:\/\/www\.wikidata\.org\/entity\/.*/)){e.next=3;break}return e.next=2,ta(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,(r=new Headers).append("Accept","text/turtle"),e.abrupt("return",t.fetcher.load(i,{credentials:"omit",headers:r}));case 4:case"end":return e.stop()}},e)})),ea.apply(this,arguments)}function ta(e,t,n){return na.apply(this,arguments)}function na(){return(na=x(y().mark(function e(t,n,a){var i,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=/wd:Q49108/g,r=Bn.replace(i,a.toNT()),e.next=1,Zn(r,a,Pn);case 1:Y.Rm("getWikidataDetails: loaded.",a);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function aa(e,t,n){return ia.apply(this,arguments)}function ia(){return ia=x(y().mark(function e(t,n,a){var i,r;return y().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(Ln,a.toNT()),e.next=1,Kn(i,Pn);case 1:r=e.sent,qn(t,a,r,a.doc());case 2:case"end":return e.stop()}},e)})),ia.apply(this,arguments)}function ra(e,t,n){return oa.apply(this,arguments)}function oa(){return oa=x(y().mark(function e(t,n,a){var i,r;return y().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(Ln,a.toNT()),Y.Rm(" location query sparql:"+i),e.next=1,Kn(i,Pn);case 1:r=e.sent,Y.Rm(" location query bindings:",r),qn(t,a,r,a.doc());case 2:case"end":return e.stop()}},e)})),oa.apply(this,arguments)}function sa(e,t,n){return ca.apply(this,arguments)}function ca(){return ca=x(y().mark(function e(t,n,a){var i,r;return y().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,Kn(i,On);case 1:r=e.sent,qn(t,a,r,a.doc()),Y.Rm("Finished getDbpediaDetails.");case 2:case"end":return e.stop()}},e)})),ca.apply(this,arguments)}function la(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 ua(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)?ua(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 ua(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 pa(e,t){e.style.display=t?"":"none"}function da(e,t,n,a){return ma.apply(this,arguments)}function ma(){return ma=x(y().mark(function e(t,n,a,i){var r,o,s,c,l,u,p,d,m,f,h,v,b,g,k,C,E,A,_,j,S,T,L,R,B,N,I,O,F,D,P,U,M,z;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(A=function(){n.currentObject?(U.value=n.currentName?n.currentName.value:"??? wot no name for "+n.currentObject,I=n.currentName,R=n.currentName?n.currentName.value:void 0,O=n.currentObject):(U.value="",R=void 0,O=void 0),a.deleteButton&&pa(a.deleteButton,!!n.currentObject),a.acceptButton&&pa(a.acceptButton,!1),a.editButton&&pa(a.editButton,!0),a.cancelButton&&pa(a.cancelButton,!1),T=!1,f()},E=function(){return E=x(y().mark(function e(){var n,a,i,r,o,c,l,u,p;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a=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");_e.setStyle(n,"autocompleteRowStyle"),n.setAttribute("style","padding: 0.3em;"),n.style.color=L?"#080":"#088",n.textContent=e.name.value;var a=zn(e.subject),i=zn(e.name);return n.addEventListener("click",function(){var e=x(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:Y.Rm(" click row textContent: "+n.textContent),Y.Rm(" click name: "+i.value),a&&i&&s(a,i);case 1:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()),n},!T){e.next=1;break}return Y.Rm('Ignoring "'.concat(U.value,'" because of lock ')),e.abrupt("return");case 1:return Y.Rm('Setting lock at "'.concat(U.value,'"')),T=!0,e.next=2,_n();case 2:if(i=e.sent,!((r=U.value.trim().toLowerCase()).length<4)){e.next=3;break}f(),B=20,e.next=6;break;case 3:if(L&&R&&r.startsWith(R)){e.next=5;break}return Y.Rm(' Querying database at "'.concat(r,'" cf last "').concat(R,'".')),e.next=4,b(r,i);case 4:j=e.sent;case 5:o=k(r,j),S&&o.length<=40&&(B=o.length),L=S&&o.length<=B,Y.Rm(' Filter:"'.concat(r,'" lastBindings: ').concat(j.length,", slimmed to ").concat(o.length,"; rows: ").concat(B,", Enough? ").concat(S,", All displayed? ").concat(L)),(c=o.slice(0,B)).sort(a),f(),l=la(c);try{for(l.s();!(u=l.n()).done;)p=u.value,F.appendChild(n(p))}catch(e){l.e(e)}finally{l.f()}1===o.length&&s(zn(o[0].subject),zn(o[0].name));case 6:T=!1;case 7:case"end":return e.stop()}},e)})),E.apply(this,arguments)},C=function(){return E.apply(this,arguments)},k=function(e,t){return t.filter(function(t){return m(e,t.name.value)})},g=function(){return(g=x(y().mark(function e(t,a){var i,o,s;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,Jn(t,_,a||kn,n.queryParams);case 1:i=e.sent,e.next=3;break;case 2:return e.prev=2,s=e.catch(0),r("Error querying db of organizations: "+s),T=!1,e.abrupt("return");case 3:return S=i.length<Tn,R=S?t:void 0,f(),o=Sn(i,a),e.abrupt("return",o);case 4:case"end":return e.stop()}},e,null,[[0,2]])}))).apply(this,arguments)},b=function(e,t){return g.apply(this,arguments)},v=function(){return(v=x(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:pa(a.cancelButton,!0),C();case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)},h=function(e){return v.apply(this,arguments)},f=function(){for(;F.children.length>1;)F.removeChild(F.lastChild)},m=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},d=function(){return(d=x(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:Y.Rm("Auto complete: Canceled by user! "),n.permanent?A():N.parentNode&&N.parentNode.removeChild(N);case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)},p=function(e){return d.apply(this,arguments)},u=function(){return(u=x(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:I&&U.value===I.value&&o(O,I);case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)},l=function(e){return u.apply(this,arguments)},c=function(){return(c=x(y().mark(function e(t,n){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!a.acceptButton){e.next=1;break}return a.acceptButton.disbaled=!1,pa(a.acceptButton,!0),U.value=n.value,I=n,O=t,Y.Rm("Auto complete: name: "+n),Y.Rm("Auto complete: waiting for accept "+t),f(),e.abrupt("return");case 1:pa(a.cancelButton,!0),o(t,n);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)},s=function(e,t){return c.apply(this,arguments)},o=function(e,t){Y.Rm("Auto complete: finish! "+e),"Literal"===e.termType&&n.queryParams.objectURIBase&&(e=w.store.sym(n.queryParams.objectURIBase.value+e.value)),f(),i(e,t)},r=function(e){var n=F.appendChild(t.createElement("tr"));Y.Rm(e);var a=new Error(e);n.appendChild(ct(t,a,"pink")),_e.setStyle(n,"autocompleteRowStyle"),n.style.padding="1em"},_=n.targetClass){e.next=1;break}throw new Error("renderAutoComplete: missing targetClass");case 1:return a.acceptButton&&a.acceptButton.addEventListener("click",l,!1),a.cancelButton&&a.cancelButton.addEventListener("click",p,!1),S=!1,T=!1,L=!1,R=void 0,B=20,N=t.createElement("div"),I=void 0,O=void 0,(F=N.appendChild(t.createElement("table"))).setAttribute("data-testid","autocomplete-table"),F.setAttribute("style","max-width: 30em; margin: 0.5em;"),D=F.appendChild(t.createElement("tr")),_e.setStyle(D,"autocompleteRowStyle"),P=D.appendChild(t.createElement("td")),(U=P.appendChild(t.createElement("input"))).setAttribute("type","text"),A(),M=n.size||Ae.textInputSize||20,U.setAttribute("size",M),U.setAttribute("data-testid","autocomplete-input"),z=_e.textInputStyle||"border: 0.1em solid #444; border-radius: 0.5em; width: 100%; font-size: 100%; padding: 0.1em 0.6em",U.setAttribute("style",z),U.addEventListener("keyup",function(e){13===e.keyCode&&l(e)},!1),U.addEventListener("input",h),e.abrupt("return",N);case 2:case"end":return e.stop()}},e)})),ma.apply(this,arguments)}function fa(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 ha(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)?ha(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 ha(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 va=Re.Pt.iconBase+"noun_34653_green.svg",ba=Re.Pt.iconBase+"noun_Search_875351.svg",xa=Re.Pt.iconBase+"noun_253504.svg";function ga(e,t,n,a,i,r){return ya.apply(this,arguments)}function ya(){return ya=x(y().mark(function e(t,n,a,i,r,o){var s,c,l,u,p,d,m,f,h,b,g,k,C,E,A,_,j,S,T,L,R,B;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(T=function(){S?(pa(j,!1),pa(k,!1),pa(C,!1)):(pa(j,!0),pa(k,!1),pa(C,!1))},g=function(){return(g=x(y().mark(function e(t){var a,i,o,s;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a=fa(t),e.prev=1,a.s();case 2:if((i=a.n()).done){e.next=4;break}return o=i.value,e.next=3,r(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)},b=function(e){return g.apply(this,arguments)},h=function(){return(h=x(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!R){e.next=1;break}B.removeChild(R),R=void 0,e.next=2;break;case 1:return e.next=2,d();case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)},f=function(e){return h.apply(this,arguments)},m=function(){return(m=x(y().mark(function e(){var n;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(R=t.createElement("div")).setAttribute("style","display: flex; flex-flow: wrap;"),n=R,e.next=1,da(t,i,L,s);case 1:n.appendChild.call(n,e.sent),R.appendChild(k),R.appendChild(C),R.appendChild(j),R.appendChild(E),B.appendChild(R);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)},d=function(){return m.apply(this,arguments)},p=function(){R&&(B.removeChild(R),R=void 0)},u=function(){return(u=x(y().mark(function e(a){var i;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Dt(t,w.store,B,v.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",r(n,i));case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)},l=function(e){return u.apply(this,arguments)},c=function(){return(c=x(y().mark(function e(t,n){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i.permanent?(pa(j,!0),pa(k,!1),pa(C,!1)):p(),e.abrupt("return",r(t,n));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)},s=function(e,t){return c.apply(this,arguments)},(k=Ft(t)).setAttribute("data-testid","accept-button"),(C=Ot(t)).setAttribute("data-testid","cancel-button"),E=t.createElement("div"),A=i.targetClass?Q(i.targetClass):"item",(_=Nt(t,E,A,o)).setAttribute("data-testid","delete-button"),(j=It(t,xa,"Edit",function(e){S=!S,T()})).setAttribute("data-testid","edit-button"),S=!0,L={acceptButton:k,cancelButton:C,editButton:j,deleteButton:_},R=void 0,(B=t.createElement("div")).style.display="flex",B.style.flexDirection="row",!i.permanent&&!i.currentObject){e.next=1;break}return e.next=1,d();case 1:return a.editable&&(B.style.width="100%",a.manualURIEntry&&je(B.appendChild(It(t,va,a.idNoun,l)),b,void 0),!a.dbLookup||i.currentObject||i.permanent||B.appendChild(It(t,ba,a.idNoun,f))),T(),e.abrupt("return",B);case 2:case"end":return e.stop()}},e)})),ya.apply(this,arguments)}function wa(e){return function(e){if(Array.isArray(e))return we(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ke(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}
|
|
23
|
+
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}},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={};return(()=>{"use strict";i.r(r),i.d(r,{acl:()=>$i,aclControl:()=>Qi,create:()=>Ki,createTypes:()=>d,dom:()=>cu,icons:()=>Re.Pt,infiniteMessageArea:()=>fl,initFooter:()=>iu,initHeader:()=>Gl,language:()=>n,log:()=>e,login:()=>o,matrix:()=>Xi,media:()=>ar,messageArea:()=>Er,ns:()=>v,pad:()=>l,participation:()=>c,preferences:()=>u,style:()=>_e,table:()=>_l,tabs:()=>p,utils:()=>t,widgets:()=>s});var e={};i.r(e),i.d(e,{LogLevel:()=>T,alert:()=>z,clear:()=>q,debug:()=>F,dumpHTML:()=>G,error:()=>U,escapeForXML:()=>J,info:()=>P,logAscending:()=>V,logDescending:()=>W,msg:()=>O,setInternals:()=>$,setLevel:()=>H,success:()=>M,warn:()=>D});var t={};i.r(t),i.d(t,{AJARImage:()=>Ke,RDFComparePredicateObject:()=>rt,RDFComparePredicateSubject:()=>ot,addLoadEvent:()=>$e,ancestor:()=>Ge,beep:()=>De,clearVariableNames:()=>Oe,emptyNode:()=>qe,escapeForXML:()=>tt,findPos:()=>Qe,genUuid:()=>Pe,getAbout:()=>Ve,getEyeFocus:()=>Ze,getTarget:()=>He,getTerm:()=>We,hashColor:()=>Fe,include:()=>Je,label:()=>Z,labelForXML:()=>nt,labelWithOntology:()=>et,newVariableName:()=>Ie,ontologyLabel:()=>Xe,predParentOf:()=>st,predicateLabel:()=>it,predicateLabelForXML:()=>at,shortName:()=>Ye,stackString:()=>ze,syncTableToArray:()=>Ue,syncTableToArrayReOrdered:()=>Me});var n={};i.r(n),i.d(n,{addDefaults:()=>Cn,defaultPreferredLanguages:()=>kn,filterByLanguage:()=>Sn,getPreferredLanguages:()=>_n,getPreferredLanguagesFor:()=>En,languageCodeURIBase:()=>wn});var a={};i.r(a),i.d(a,{AUTOCOMPLETE_LIMIT:()=>Tn,ESCOResultToBindings:()=>Hn,bindingToTerm:()=>zn,dbPediaTypeMap:()=>Dn,dbpediaParameters:()=>On,escoParameters:()=>In,fetcherOptionsJsonPublicData:()=>Bn,getDbpediaDetails:()=>sa,getWikidataDetails:()=>ta,getWikidataDetailsOld:()=>aa,getWikidataLocation:()=>ra,instituteDetailsWikidataQuery:()=>Nn,loadFromBindings:()=>qn,loadPublicDataThing:()=>Xn,queryESCODataByName:()=>Gn,queryPublicDataByName:()=>Jn,queryPublicDataConstruct:()=>Kn,queryPublicDataSelect:()=>Qn,variableNameToPredicateMap:()=>Mn,wikidataClasses:()=>Rn,wikidataIncomingClassMap:()=>Un,wikidataOutgoingClassMap:()=>Fn,wikidataParameters:()=>Pn});var o={};i.r(o),i.d(o,{ensureLoadedPreferences:()=>li,ensureLoadedProfile:()=>pi,ensureLoggedIn:()=>ci,filterAvailablePanes:()=>ji,findAppInstances:()=>mi,getUserRoles:()=>Ai,loginStatusBox:()=>ki,newAppInstance:()=>Ei,registrationControl:()=>vi,registrationList:()=>gi,renderScopeHeadingRow:()=>bi,renderSignInPopup:()=>wi,scopeLabel:()=>hi,selectWorkspace:()=>Ci});var s={};i.r(s),i.d(s,{Group:()=>xr,GroupBuilder:()=>br,GroupPicker:()=>vr,PeoplePicker:()=>hr,Person:()=>gr,addStyleSheet:()=>en,allClassURIs:()=>Jt,appendForm:()=>Ia,askName:()=>Ft,attachmentList:()=>Gt,basicField:()=>yn,buildCheckboxForm:()=>Ja,button:()=>It,cancelButton:()=>Ot,clearElement:()=>bt,complain:()=>xt,continueButton:()=>Dt,createLinkDiv:()=>zt,createLinkForURI:()=>mt,createNameDiv:()=>Mt,defaultAnnotationStore:()=>Wt,deleteButtonWithCheck:()=>Bt,editFormButton:()=>Ba,errorMessageBlock:()=>ct,extractLogURI:()=>gt,faviconOrDefault:()=>Nt,field:()=>dn,fieldFunction:()=>fn,fieldLabel:()=>bn,fieldParams:()=>un,fieldStore:()=>gn,fileUploadButtonDiv:()=>rn,findClosest:()=>Da,findImage:()=>Tt,findImageFromURI:()=>St,formatDateTime:()=>wt,formsFor:()=>Fa,iconForClass:()=>_t,imagesOf:()=>At,index:()=>Xt,isAudio:()=>tn,isImage:()=>an,isVideo:()=>nn,linkButton:()=>Qt,linkIcon:()=>dt,makeDescription:()=>qa,makeDraggable:()=>Se,makeDropTarget:()=>je,makeSelectForCategory:()=>Va,makeSelectForChoice:()=>Qa,makeSelectForClassifierOptions:()=>Ha,makeSelectForNestedCategory:()=>Wa,makeSelectForOptions:()=>Ga,mostSpecificClassURI:()=>mn,newButton:()=>Ma,newThing:()=>$a,openHrefInOutlineMode:()=>Vt,personTR:()=>Pt,promptForNew:()=>za,propertiesForClass:()=>Oa,propertyTriage:()=>$t,publicData:()=>a,refreshTree:()=>Ht,removeButton:()=>Zt,renderAsDiv:()=>qt,renderAsRow:()=>Ut,renderAutoComplete:()=>da,renderAutocompleteControl:()=>ga,renderNameValuePair:()=>xn,selectorPanel:()=>Kt,selectorPanelRefresh:()=>Yt,setImage:()=>Rt,setName:()=>Et,setVisible:()=>pa,shortDate:()=>yt,shortTime:()=>Ct,sortByLabel:()=>Ua,sortBySequence:()=>Pa,timestamp:()=>kt,uploadFiles:()=>Te});var c={};i.r(c),i.d(c,{manageParticipation:()=>yc,participationObject:()=>bc,recordParticipation:()=>gc,renderParticipants:()=>xc});var l={};i.r(l),i.d(l,{getChunks:()=>Ac,lightColorHash:()=>Cc,manageParticipation:()=>yc,notepad:()=>Ec,notepadToHTML:()=>jc,participationObject:()=>bc,recordParticipation:()=>gc,renderParticipants:()=>xc,xmlEncode:()=>_c});var u={};i.r(u),i.d(u,{get:()=>bl,getPreferencesForClass:()=>El,recordPersonalDefaults:()=>wl,recordSharedPreferences:()=>yl,renderPreferencesForm:()=>kl,set:()=>gl,value:()=>xl});var p={};i.r(p),i.d(p,{TabWidgetElement:()=>Il,tabWidget:()=>Dl});var d={};i.r(d);var m=i(386),f=i.n(m),h=i(264);const v=f()(h);function x(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 b(e){return function(){var t=this,n=arguments;return new Promise(function(a,i){var r=e.apply(t,n);function o(e){x(r,a,i,o,s,"next",e)}function s(e){x(r,a,i,o,s,"throw",e)}o(void 0)})}}var g=i(756),y=i.n(g),w=i(663),k=1,C=2,E=4,A=8,_=16,j=32,S=63,T=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}({}),L=k+C+E,R=!1,N=document,B=window;function I(e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mesg";if(L&(arguments.length>1&&void 0!==arguments[1]?arguments[1]:E))if(void 0!==N){var n=N.getElementById("status");if(!n)return;var a=N.createElement("span");a.setAttribute("class",t);var i=new Date;a.innerHTML="".concat(i.getHours(),":").concat(i.getMinutes(),":").concat(i.getSeconds()," [").concat(t,"] ").concat(J(e),"<br/>"),R?n.insertBefore(a,n.firstChild):n.appendChild(a)}else"undefined"!=typeof console&&console.log(e)}function O(e){I(e)}function D(e){I(e,C,"warn")}function F(e){I(e,j,"dbug")}function P(e){I(e,_,"info")}function U(e){I(e,k,"eror")}function M(e){I(e,A,"good")}function z(e){B&&void 0!==B.alert?B.alert(e):D(e)}function q(){var e,t=null===(e=N)||void 0===e?void 0:e.getElementById("status");t&&(t.innerHTML="")}function H(e){L=S,F("Log level is now "+e),L=e}function G(){var e;if(N){var t=L;L=S,F((null===(e=N)||void 0===e||null===(e=e.body)||void 0===e?void 0:e.innerHTML)||""),L=t}}function V(){R=!0}function W(){R=!1}function J(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function $(e,t){B=e,N=t}var Q={log:e,ns:v,rdf:h};function Z(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 i=function(e){return w.store.any(e,Q.ns.ui("label"))||w.store.any(e,Q.ns.link("message"))||w.store.any(e,Q.ns.vcard("fn"))||w.store.any(e,Q.ns.foaf("name"))||w.store.any(e,Q.ns.dct("title"))||w.store.any(e,Q.ns.dc("title"))||w.store.any(e,Q.ns.rss("title"))||w.store.any(e,Q.ns.contact("fullName"))||w.store.any(e,w.store.sym("http://www.w3.org/2001/04/roadmap/org#name"))||w.store.any(e,Q.ns.cal("summary"))||w.store.any(e,Q.ns.foaf("nick"))||w.store.any(e,Q.ns.as("name"))||w.store.any(e,Q.ns.schema("name"))||w.store.any(e,Q.ns.rdfs("label"))||w.store.any(e,w.store.sym("http://www.w3.org/2004/02/skos/core#prefLabel"))}(e);if(i)return n(i.value);if("BlankNode"===e.termType)return"...";if("Collection"===e.termType)return"("+e.elements.length+")";var r=e.uri;if(void 0===r)return e.toString();try{r=r.split("/").map(decodeURIComponent).join("/")}catch(e){for(var o=r.length-3;o>0;o--)for(var s="0123456789abcefABCDEF";"%"===r[o]&&s.indexOf(r[o+1])>=0&&s.indexOf(r[o+2])>=0;)r=r.slice(0,o)+String.fromCharCode(parseInt(r.slice(o+1,o+3),16))+r.slice(o+3)}r=K(r,"/profile/card#me"),r=K(r,"#this");var c=(r=K(r,"#me")).indexOf("#");if(c>=0)return a(r.slice(c+1));var l=r.lastIndexOf("/",r.length-2);return l>=0&&l<e.uri.length?a(r.slice(l+1)):n(decodeURIComponent(e.uri))}function K(e,t){var n=-1*t.length;return e.slice(n)===t?e.slice(0,n):e}var Y=i(423),X=w.solidLogicSingleton.store;function ee(e,t,n,a){var i=v.acl,r="/"===e.uri.slice(-1),o=X.each(void 0,i("default"),n,a).concat(X.each(void 0,i("defaultForNew"),n,a)).reduce(function(t,n){return t.concat(X.statementsMatching(n,v.rdf("type"),i("Authorization"),a)).concat(X.statementsMatching(n,i("agent"),void 0,a)).concat(X.statementsMatching(n,i("agentClass"),void 0,a)).concat(X.statementsMatching(n,i("agentGroup"),void 0,a)).concat(X.statementsMatching(n,i("origin"),void 0,a)).concat(X.statementsMatching(n,i("originClass"),void 0,a)).concat(X.statementsMatching(n,i("mode"),void 0,a)).concat((0,h.st)(n,i("accessTo"),e,a)).concat(r?(0,h.st)(n,i("default"),e,a):[])},[]),s=(0,h.graph)();return o.forEach(function(e){return s.add(c(e.subject),c(e.predicate),c(e.object),(0,h.sym)(t.uri))}),s;function c(e){var n=a.uri.length;return(0,h.sym)(e.uri.slice(0,n)===a.uri?t.uri+e.uri.slice(n):e.uri)}}function te(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:X,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,v):n.each(void 0,v.acl("accessTo"),e),i=v.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 ne(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 ae(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 ie(e,t){var n=[],a=function(e){e.length?de(e.shift().doc(),function(i,r,o,s,c,l){var u=!r;if(!i||!c||!l)return t(i,s);var p=u?te(c,l):te(o,s);n.push(p),a(e.slice(1))}):t(!0,ae(n))};a(e)}function re(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 oe(e,t,n,a){return se(e,t,re(n),a)}function se(e,t,n,a,i,r){var o=v.acl;for(var s in n){var c=n[s];if(c.length){var l=s.split("\n"),u=l.map(function(e){return e.split("#")[1]}).join("");r&&!i&&(u+="Default");var p=e.sym(a.uri+"#"+u);e.add(p,v.rdf("type"),o("Authorization"),a),i&&e.add(p,o("accessTo"),t,a),r&&e.add(p,o("default"),t,a);for(var d=0;d<l.length;d++)e.add(p,o("mode"),e.sym(l[d]),a);for(var m=0;m<c.length;m++){var f=c[m][0],h=c[m][1];e.add(p,o(f),e.sym(h),a)}}}}function ce(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],o=(0,h.sym)(a[i][1]);t+="agent"===r?"@":"",t+=o.sameTerm(v.foaf("Agent"))?"*":Z(o),i<a.length-1&&(t+=",")}t+=";"}return"{"+t.slice(0,-1)+"}"}function le(e,t,n,a,i){return ue(e,t,re(n),a,i)}function ue(e,t,n,a,i){var r,o=(0,h.graph)();se(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),se(e,t,n,a,!0),e.fetcher.requested[a.uri]="done",i(o)):i(o,s)})}function pe(e,t,n,a){n=n||Y.Rm;var i=e.doc();de(i,function(r,o,s,c,l,u){if(!r||!l||!u)return a(!1,c);var p=o?te(s,c):te(l,u);ie(t,function(t,r){if(!t)return a(!1,r);ne(r,p)?n("Nice - same ACL. no change "+Z(e)+" "+i):(n("Group ACLs differ for "+Z(e)+" "+i),le(X,s,r,c,a))})})}function de(e,t){me(e,function(n,a,i,r){var o=v.acl;if(!n)return t(!1,!1,a,r);var s=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,h.sym)(n);me(r,function(a,c,l){if(!a)return t(!1,!0,c,"( No ACL pointer ".concat(n," ").concat(c,")").concat(l));if(403===c)return t(!1,!0,c,"( default ACL file FORBIDDEN. Stop.".concat(n,")"));if(404===c)return s(n);if(200!==c)return t(!1,!0,c,"Error status '".concat(c,"' searching for default for ").concat(r));if(!X.each(void 0,o("default"),X.sym(n),l).concat(X.each(void 0,o("defaultForNew"),X.sym(n),l)).length)return s(n);var u=X.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 s(e.uri):t(!1,!1,a,"Error accessing Access Control information for ".concat(e,") ").concat(r))})}function me(e,t){if(!X.fetcher)throw new Error("kb has no fetcher");X.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=X.any(e,w.ACL_LINK);if(i){if(!X.fetcher)throw new Error("kb has no fetcher");if(X.fetcher.nonexistent[i.value])return t(!0,404,i,"ACL file ".concat(i," does not exist."));X.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 fe(e){return he.apply(this,arguments)}function he(){return(he=b(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e,n){return de((0,h.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)}function ve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xe(e){return xe="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},xe(e)}function be(e){var t=function(e,t){if("object"!=xe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=xe(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==xe(t)?t:t+""}function ge(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,be(a.key),a)}}function ye(e,t,n){return t&&ge(e.prototype,t),n&&ge(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function we(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 ke(e,t){if(e){if("string"==typeof e)return we(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)?we(e,t):void 0}}function Ce(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var 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}}(e,t)||ke(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Ee=i(49);const Ae={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"};var _e={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(Ae.formBorderColor,"; border-radius: 0.2em;"),"padding-left: 2em; border: 0.05em solid ".concat(Ae.formBorderColor,"; border-radius: 0.2em;"),"padding-left: 2em; border: 0.1em solid ".concat(Ae.formBorderColor,"; border-radius: 0.2em;"),"padding-left: 2em; border: 0.2em solid ".concat(Ae.formBorderColor,"; border-radius: 0.2em;")],formFieldLabelStyle:"color: ".concat(Ae.lowProfileLinkColor,"; text-decoration: none;"),formFieldNameBoxStyle:"padding: 0.3em; vertical-align: middle; width:".concat(Ae.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(Ae.mediaModuleCanvasWidth,"; height:").concat(Ae.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;"};function je(e,t,n){var a=function(e){e.preventDefault(),e.dataTransfer.dropEffect="copy"},i=function(e){Y.Rm("dragenter event dropEffect: "+e.dataTransfer.dropEffect),this.localStyle&&(this.savedStyle||(this.savedStyle=_e.dragEvent)),e.dataTransfer.dropEffect="link",Y.Rm("dragenter event dropEffect 2: "+e.dataTransfer.dropEffect)},r=function(e){Y.Rm("dragleave event dropEffect: "+e.dataTransfer.dropEffect),this.savedStyle?this.localStyle=this.savedStyle:this.localStyle=_e.dropEvent},o=function(e){e.preventDefault&&e.preventDefault(),Y.Rm("Drop event. dropEffect: "+e.dataTransfer.dropEffect),Y.Rm("Drop event. types: "+(e.dataTransfer.types?e.dataTransfer.types.join(", "):"NOPE"));var a,i=null;if(e.dataTransfer.types){for(var r=0;r<e.dataTransfer.types.length;r++){var o=e.dataTransfer.types[r];if("text/uri-list"===o)i=e.dataTransfer.getData(o).split("\n"),Y.Rm("Dropped text/uri-list: "+i);else if("text/plain"===o)a=e.dataTransfer.getData(o);else if("Files"===o&&n){for(var s=e.dataTransfer.files,c=0;s[c];c++){var l=s[c];Y.Rm("Filename: "+l.name+", type: "+(l.type||"n/a")+" size: "+l.size+" bytes, last modified: "+(l.lastModifiedDate?l.lastModifiedDate.toLocaleDateString():"n/a"))}n(s)}}null===i&&a&&"http"===a.slice(0,4)&&(i=a,Y.Rm("Waring: Poor man's drop: using text for URI"))}else i=[e.dataTransfer.getData("Text")],Y.Rm("WARNING non-standard drop event: "+i[0]);return Y.Rm("Dropped URI list (2): "+i),i&&t(i),this.localStyle=_e.restoreStyle,!1};!function(e){e||Y.Rm("@@@ addTargetListeners: ele "+e),e.addEventListener("dragover",a),e.addEventListener("dragenter",i),e.addEventListener("dragleave",r),e.addEventListener("drop",o)}(e)}function Se(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),Y.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",Y.Rm("Dragend dropeffect: "+n.dataTransfer.dropEffect),Y.Rm("Dragend: "+e+" -> "+t)},!1)}function Te(e,t,n,a,i){for(var r=0;t[r];r++){var o=t[r];Y.Rm(" dropped: Filename: "+o.name+", type: "+(o.type||"n/a")+" size: "+o.size+" bytes, last modified: "+(o.lastModifiedDate?o.lastModifiedDate.toLocaleDateString():"n/a"));var s=new FileReader;s.onload=function(t){return function(r){var o=r.target.result,s="";Y.Rm(" File read byteLength : "+o.byteLength);var c=t.type;if(t.type&&""!==t.type){var l=Ee.extension(t.type);l&&"false"!==l&&!t.name.endsWith("."+l)&&t.type!==Ee.lookup(t.name)&&(s="_."+l)}else if(!(c=Ee.lookup(t.name))){var u="Filename needs to have an extension which gives a type we know: "+t.name;throw Y.Rm(u),alert(u),new Error(u)}var p=t.type.startsWith("image/")&&a||n,d=p+(p.endsWith("/")?"":"/")+encodeURIComponent(t.name)+s;e.webOperation("PUT",d,{data:o,contentType:c}).then(function(e){Y.Rm(" Upload: put OK: "+d),i(t,d)},function(e){var t=" Upload: FAIL "+d+", Error: "+e;throw Y.Rm(t),alert(t),new Error(t)})}}(o),s.readAsArrayBuffer(o)}}_e.setStyle=function(e,t){e.style=_e[t]};var Le,Re=i(378),Ne={log:e,ns:v,rdf:h},Be=0;function Ie(){return"v"+Be++}function Oe(){Be=0}function De(){if(Le){var e=new Le;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 Fe(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 Pe(){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 Ue(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 Me(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 ze(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 qe(e){for(var t=e.childNodes,n=t.length-1;n>=0;n--)e.removeChild(t[n]);return e}function He(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 Ge(e,t){var n;for(n=e;n;n=n.parentNode)try{if(n.tagName===t)return n}catch(e){return}}function Ve(e,t){var n,a;for(n=t;n&&1===n.nodeType;n=n.parentNode)if(a=n.getAttribute("about"))return e.fromNT(a);Ne.log.debug("getAbout: No about found")}function We(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 Ve(w.store,e);case"undetermined selected":return e.nextSibling?n.predicate:t.AJAR_inverse?n.subject:n.object}}function Je(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 Qe(e){var t=e.ownerDocument.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return[n.left-t.left,n.top-t.top]}function Ze(e,t,n,a){a||(a=window);var i=Qe(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 Ke(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 Ye(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 Xe(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 Ne.ns)a[Ne.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 et(e,t){var n=w.store.findTypeURIs(e);return n[Ne.ns.rdf("Predicate").uri]||n[Ne.ns.rdfs("Class").uri]?Z(e,t)+" ("+Xe(e)+")":Z(e,t)}function tt(e){return e.replace(/&/g,"&").replace(/</g,"<")}function nt(e){return tt(Z(e))}function at(e,t){return tt(it(e,t))}function it(e,t){var n=Z(e);if(t){var a=w.store.any(e,Ne.ns.owl("inverseOf"))||w.store.any(void 0,Ne.ns.owl("inverseOf"),e);return a?Z(a):"type"===n?"...":"is "+n+" of"}return n}function rt(e,t){var n=e.predicate.compareTerm(t.predicate);return 0!==n?n:e.object.compareTerm(t.object)}function ot(e,t){var n=e.predicate.compareTerm(t.predicate);return 0!==n?n:e.subject.compareTerm(t.subject)}function st(e){for(var t=e;;){if(t.getAttribute("predTR"))return t;if(!t.previousSibling||"TR"!==t.previousSibling.nodeName)return Ne.log.error("Could not find predParent"),e;t=t.previousSibling}}function ct(e,t,n,a){var i=e.createElement("div"),r=a||t instanceof Error?t:null;return r?(console.error("errorMessageBlock: ".concat(r," at: ").concat(r.stack||"??"),r),i.textContent=r.message):i.textContent=t,i.appendChild(Ot(e,function(){i.parentNode&&i.parentNode.removeChild(i)})).style=_e.errorCancelButton,i.setAttribute("style",_e.errorMessageBlockStyle),i.style.backgroundColor=n||Ae.defaultErrorBackgroundColor,i}"undefined"!=typeof AudioContext?Le=AudioContext:"undefined"!=typeof window&&(Le=window.AudioContext||window.webkitAudioContext);var lt=function(e,t,n){var a=e.createElement("tr");return a.appendChild(e.createElement("td")).appendChild(t),a.subject=n,a},ut=function(e,t){e.addEventListener("click",t)},pt=function(e,t,n){var a=t.appendChild(e.createElement("div"));a.setAttribute("style",_e.imageDivStyle),a.appendChild(n),n.setAttribute("draggable","false")};function dt(e,t,n){var a=e.createElement("a");a.setAttribute("href",t.uri),t.uri.startsWith("http")&&a.setAttribute("target","_blank");var i=a.appendChild(e.createElement("img"));return i.setAttribute("src",n||Re.i1+"go-to-this.png"),i.setAttribute("style","margin: 0.3em;"),a}var mt=function(e,t,n){var a=dt(e,n);t.appendChild(a).classList.add("HoverControlHide"),t.appendChild(e.createElement("br"))},ft=Re.Pt.iconBase,ht=ft+"noun_1180156.svg",vt=ft+"noun_1180158.svg";function xt(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);Y.Rm("Complaint: "+t),n?n.appendChild(ct(e&&e.dom||document,t)):alert(t)}}function bt(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function gt(e){var t=e.search(/logFile=/),n=e.search(/&rulesFile=/);return e.substring(t+8,n)}function yt(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 wt(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 kt(){return wt(new Date,"{FullYear}-{Month}-{Date}T{Hours}:{Minutes}:{Seconds}.{Milliseconds}")}function Ct(){return wt(new Date,"{Hours}:{Minutes}:{Seconds}.{Milliseconds}")}function Et(e,t){var n=w.store,a=function(e){var t=n.any(e,v.vcard("fn"))||n.any(e,v.foaf("name"))||n.any(e,v.vcard("organization-name"));return t?t.value:null},i=t.sameTerm(v.foaf("Agent"))?"Everyone":a(t);if(e.textContent=i||Z(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)||Z(t)})}}function At(e,t){return t.each(e,v.sioc("avatar")).concat(t.each(e,v.foaf("img"))).concat(t.each(e,v.vcard("logo"))).concat(t.each(e,v.vcard("hasPhoto"))).concat(t.each(e,v.vcard("photo"))).concat(t.each(e,v.foaf("depiction")))}var _t={"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 jt(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 St(e){var t=ft;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?jt(e)+"favicon.ico":null:t+"noun_15177.svg":t+"noun_10636_grey.svg"}function Tt(e){var t=w.store,n=ft;if(e.sameTerm(v.foaf("Agent"))||e.sameTerm(v.rdf("Resource")))return n+"noun_98053.svg";var a=t.any(e,v.sioc("avatar"))||t.any(e,v.foaf("img"))||t.any(e,v.vcard("logo"))||t.any(e,v.vcard("hasPhoto"))||t.any(e,v.vcard("photo"))||t.any(e,v.foaf("depiction"));return a?a.uri:null}function Lt(e,t,n){var a=w.store,i=Tt(t);if(i)return e.setAttribute("src",i),!0;var r=n[t.uri];if(r)return e.setAttribute("src",r),e.style=_e.classIconStyle,!0;var o=St(t);if(o)return e.setAttribute("src",o),!0;var s=a.findTypeURIs(t);for(var c in s)if(n[c])return e.setAttribute("src",n[c]),!1;return e.setAttribute("src",ft+"noun_10636_grey.svg"),!1}function Rt(e,t){var n=w.store,a={};for(var i in _t){var r=i.split(":")[0],o=i.split(":")[1],s=v[r](o);a[s.uri]=h.uri.join(_t[i],ft)}if(!Lt(e,t,a)&&t.uri){if(!n.fetcher)throw new Error("kb has no fetcher");n.fetcher.nowOrWhenFetched(t.doc(),void 0,function(n){n&&Lt(e,t,a)})}}function Nt(e,t){var n=e.createElement("img");n.style=_e.iconStyle;if(n.setAttribute("src",ft+(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",jt(t)+"favicon.ico"),a.setAttribute("type","image/x-icon"),a.appendChild(n),a}return Rt(n,t),n}function Bt(e,t,n,a){var i=ft+"noun_2188_red.svg",r=e.createElement("img");r.setAttribute("src",i),r.setAttribute("style",_e.smallButtonStyle),r.style.float="right";var o="Remove this "+n;return r.title=o,r.classList.add("hoverControlHide"),r.addEventListener("click",function(){var n=e.createElement("div");t.insertBefore(n,r),n.style.position="relative",n.appendChild(function(e,t,n,a){function i(){t.parentElement.removeChild(t)}function r(){i(),a()}var o=e.createElement("div");o.style=_e.confirmPopupStyle,o.style.position="absolute",o.style.top="-1em",o.style.display="grid",o.style.gridTemplateColumns="auto auto";var s=e.createElement("div");s.style.gridColumn="1/2",s.style.gridRow="1";var c=e.createElement("div");c.style.gridColumn="1/2",c.style.gridRow="2";var l=Ot(e,i);o.appendChild(l),l.style.gridColumn="1",l.style.gridRow="2";var u=o.appendChild(e.createElement("button"));u.style=_e.buttonStyle,u.style.gridRow="2",u.style.gridColumn="2",u.textContent="Cancel";var p=It(e,Re.Pt.iconBase+"noun_925021.svg","Delete it");o.appendChild(p),p.style.gridRow="1",p.style.gridColumn="1";var d=o.appendChild(e.createElement("button"));return d.style=_e.buttonStyle,d.style.gridRow="1",d.style.gridColumn="2",d.textContent=n,o.appendChild(d),p.addEventListener("click",r),d.addEventListener("click",r),u.addEventListener("click",i),o}(e,n,o,a))}),t.classList.add("hoverControl"),t.appendChild(r),r.setAttribute("data-testid","deleteButtonWithCheck"),r}function It(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 o=r.appendChild(e.createElement("img"));o.setAttribute("src",t),o.setAttribute("style","width: 2em; height: 2em;"),o.title=n,r.setAttribute("style",_e.buttonStyle)}else r.textContent=n.toLocaleUpperCase(),r.onmouseover=function(){"Secondary"===i.buttonColor?i.needsBorder?r.setAttribute("style",_e.secondaryButtonNoBorderHover):r.setAttribute("style",_e.secondaryButtonHover):i.needsBorder?r.setAttribute("style",_e.primaryButtonNoBorderHover):r.setAttribute("style",_e.primaryButtonHover)},r.onmouseout=function(){"Secondary"===i.buttonColor?i.needsBorder?r.setAttribute("style",_e.secondaryButtonNoBorder):r.setAttribute("style",_e.secondaryButton):i.needsBorder?r.setAttribute("style",_e.primaryButtonNoBorder):r.setAttribute("style",_e.primaryButton)},"Secondary"===i.buttonColor?i.needsBorder?r.setAttribute("style",_e.secondaryButtonNoBorder):r.setAttribute("style",_e.secondaryButton):i.needsBorder?r.setAttribute("style",_e.primaryButtonNoBorder):r.setAttribute("style",_e.primaryButton);return a&&r.addEventListener("click",a,!1),r}function Ot(e,t){var n=It(e,ht,"Cancel",t);return n.firstChild&&(n.firstChild.style.opacity="0.3"),n}function Dt(e,t){return It(e,vt,"Continue",t)}function Ft(e,t,n,a,i,r){return new Promise(function(t,o){var s=e.createElement("div");a=a||v.foaf("name");var c=(r=r||(i?Z(i):" "))+" "+Z(a)+": ";s.appendChild(e.createElement("p")).textContent=c;var l=e.createElement("input");function u(){s.parentNode.removeChild(s),t(l.value.trim())}l.setAttribute("type","text"),l.setAttribute("size","100"),l.setAttribute("maxLength","2048"),l.setAttribute("style",_e.textInputStyle),l.select(),s.appendChild(l),n.appendChild(s),l.addEventListener("keyup",function(e){13===e.keyCode&&u()},!1),s.appendChild(e.createElement("br")),s.appendChild(Ot(e,function(e){s.parentNode.removeChild(s),t(null)})),s.appendChild(Dt(e,function(e){u()})),l.focus()})}var Pt=Ut;function Ut(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||Nt(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:Et(o,n),a.deleteFunction&&Bt(e,s,a.noun||"one",a.deleteFunction),n.uri){if(!1!==a.link)s.appendChild(dt(e,n)).classList.add("HoverControlHide"),s.appendChild(e.createElement("br"));!1!==a.draggable&&(c.setAttribute("draggable","false"),Se(i,n))}return i.subject=n,i}function Mt(e,t,n,a){var i=t.appendChild(e.createElement("div"));n?i.textContent=n:Et(i,a)}function zt(e,t,n,a){var i=t.appendChild(e.createElement("div"));i.setAttribute("style",_e.linkDivStyle),a.deleteFunction&&Bt(e,i,a.noun||"one",a.deleteFunction),n.uri&&(!1!==a.link&&mt(e,i,n),Se(t,n))}function qt(e,t,n){var a=e.createElement("div");a.setAttribute("style",_e.renderAsDivStyle);var i=(n=n||{}).image||Nt(e,t);return pt(e,a,i),Mt(e,a,n.title,t),zt(e,a,t,n),n.clickable&&n.onClickFunction&&ut(a,n.onClickFunction),n.wrapInATR?lt(e,a,t):a}function Ht(e){if(e.refresh)e.refresh();else for(var t=0;t<e.children.length;t++)Ht(e.children[t])}function Gt(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};function i(n){var a=n,i={noun:d};return l&&(i.deleteFunction=function(){!function(e){if(!m.updater)throw new Error("kb has no updater");m.updater.update((0,h.st)(t,p,e,c),[],function(e,t,n,a){t?r():xt(void 0,"Error deleting one: "+n)})}(a)}),Pt(e,p,n,i)}var r=function(){var e=m.each(t,p);e.sort(),Ue(g,e,i)};function o(e){var n=[];if(e.forEach(function(e){var a=(0,h.sym)(e);Y.Rm("Dropped on attachemnt "+e),n.push((0,h.st)(t,p,a,c))}),!m.updater)throw new Error("kb has no updater");m.updater.update([],n,function(e,t,n,a){t?r():xt(void 0,"Error adding one: "+n)})}function s(e){var n,i;Te(m.fetcher,e,null===(n=a.uploadFolder)||void 0===n?void 0:n.uri,null===(i=a.uploadFolder)||void 0===i?void 0:i.uri,function(e,n){var a=[(0,h.st)(t,p,m.sym(n),c)];if(!m.updater)throw new Error("kb has no updater");m.updater.update([],a,function(e,t,n,a){t?r():xt(void 0,"Error adding link to uploaded file: "+n)})})}var c=a.doc||t.doc();void 0===a.modify&&(a.modify=!0);var l=a.modify,u=a.promptIcon||ft+"noun_748003.svg",p=a.predicate||v.wf("attachment"),d=a.noun||"attachment",m=w.store,f=n.appendChild(e.createElement("table"));f.setAttribute("style","margin-top: 1em; margin-bottom: 1em;");var x=f.appendChild(e.createElement("tr")),b=x.appendChild(e.createElement("td")),g=x.appendChild(e.createElement("td")).appendChild(e.createElement("table"));if(g.appendChild(e.createElement("tr")),f.refresh=r,r(),l){var y=It(e,u,"Drop attachments here");b.appendChild(y);var k=a.uploadFolder?s:null;if(je(y,o,k),je(b,o,k),a.uploadFolder){var C=rn(e,s);b.appendChild(C)}}return f}function Vt(e){e.preventDefault(),e.stopPropagation();var t=He(e).getAttribute("href");if(!t)return Y.Rm("openHrefInOutlineMode: No href found!\n");var n=window.document;n.outlineManager?n.outlineManager.GotoSubject(w.store.sym(t),!0,void 0,!0,void 0):window&&window.panes&&window.panes.getOutliner?window.panes.getOutliner().GotoSubject(w.store.sym(t),!0,void 0,!0,void 0):Y.Rm("ERROR: Can't access outline manager in this config")}function Wt(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 w.store.sym("http://tabulator.org/wiki/annnotation/"+t)}}}function Jt(){var e={};return w.store.statementsMatching(void 0,v.rdf("type"),void 0).forEach(function(t){t.object.value&&(e[t.object.value]=!0)}),w.store.statementsMatching(void 0,v.rdfs("subClassOf"),void 0).forEach(function(t){t.object.value&&(e[t.object.value]=!0),t.subject.value&&(e[t.subject.value]=!0)}),w.store.each(void 0,v.rdf("type"),v.rdfs("Class")).forEach(function(t){t.value&&(e[t.value]=!0)}),e}function $t(e){var t={},n={},a={},i=0,r=0,o=0,s=e.predicateIndex;for(var c in s){"Literal"===s[c][0].object.termType?(n[c]=!0,r++):(a[c]=!0,i++)}for(var l=e.each(void 0,v.rdf("type"),v.rdf("Property")),u=0;u<l.length;u++){var p=l[u].toNT();a[p]||n[p]||(n[p]=!0,a[p]=!0,o++)}return t.op=a,t.dp=n,P("propertyTriage: ".concat(i," non-lit, ").concat(r," literal. ").concat(o," unknown.")),t}function Qt(e,t){var n=e.createElement("button");return n.setAttribute("type","button"),n.textContent="Goto "+Z(t),n.addEventListener("click",function(n){e.outlineManager.GotoSubject(t,!0,void 0,!0,void 0)},!0),n}function Zt(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 Kt(e,t,n,a,i,r,o,s,c){return Yt(e.createElement("div"),e,t,n,a,i,r,o,s,c)}function Yt(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);b.setAttribute("class",0===e.length?"hideTillHover":""),m.setAttribute("src",s.connectIcon||ft+"noun_25830.svg"),m.setAttribute("title",e.length?e.length:"attach")},h=Xt.twoLine.widgetForClass(a);(d=h(t,o)).setAttribute("style",u);var v=t.createElement("div");v.setAttribute("class","hideTillHover"),v.setAttribute("style","float:right; width:10%");var x=t.createElement("a");x.setAttribute("href",o.uri),x.setAttribute("style","float:right"),v.appendChild(x).textContent=">",e.appendChild(v);var b=t.createElement("div");return b.setAttribute("style",(r?"float:left;":"float:right;")+" width:30px;"),m=t.createElement("img"),f(),b.appendChild(m),e.appendChild(b),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 Xt={};function en(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 tn(e){return an(e,"audio")}function nn(e){return an(e,"video")}function an(e,t){var n=t||"image",a=w.store.findTypeURIs(e),i=h.Util.mediaTypeClass(n+"/*").uri.split("*")[0];for(var r in a)if(r.startsWith(i))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 rn(e,t){var n=e.createElement("div"),a=n.appendChild(e.createElement("input"));return a.setAttribute("type","file"),a.setAttribute("multiple","true"),a.addEventListener("change",function(e){Y.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",je(n.appendChild(It(e,ft+"noun_Upload_76574_000000.svg","Upload files",function(e){a.click()})),null,t),n}function on(e,t,n){return(t=be(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Xt={line:{},twoLine:{"":function(e,t){var n=e.createElement("div");return n.textContent=Z(t),n},"http://www.w3.org/2000/10/swap/pim/qif#Transaction":function(e,t){var n="",a=function(e){var a=w.store.any(t,v.qu(e));return a||(n+="@@ No value for "+e+"! "),a?tt(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(tt(t.uri),'">').concat(tt(n),"</a></td>\n </tr>")),i},"http://www.w3.org/ns/pim/trip#Trip":function(e,t){var n=function(e){var n=w.store.any(t,e);return n?tt(n.value):"?"},a=e.createElement("table");return a.innerHTML='\n <tr>\n <td colspan="2">'.concat(n(v.dc("title")),'</td>\n </tr>\n <tr style="color: #777">\n <td>').concat(n(v.cal("dtstart")),"</td>\n <td>").concat(n(v.cal("dtend")),"</td>\n </tr>"),a},widgetForClass:function(e){var t=Xt.twoLine[e.uri],n=w.store;if(t)return t;var a=n.findSuperClassesNT(e);for(var i in a)if(t=Xt.twoLine[n.fromNT(i).uri])return t;return Xt.twoLine[""]}}};const sn={authEndpoint:"",fallbackAuthEndpoint:"https://databox.me/",signupEndpoint:"https://solidproject.org/use-solid/",signupWindowHeight:600,signupWindowWidth:1024,key:"",cert:""};function cn(e){this.config=e||sn}var ln;cn.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)})},cn.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)})})};var un=(on(on(on(on(on(on(on(on(on(on(ln={},v.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*$/}),v.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*$/}),v.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*$/}),v.ui("TimeField").uri,{size:10,type:"time",dt:"time",pattern:/^\s*([0-2]?[0-9]:[0-5][0-9](:[0-5][0-9])?)\s*$/}),v.ui("IntegerField").uri,{size:12,style:"text-align: right;",dt:"integer",pattern:/^\s*-?[0-9]+\s*$/}),v.ui("DecimalField").uri,{size:12,style:"text-align: right;",dt:"decimal",pattern:/^\s*-?[0-9]*(\.[0-9]*)?\s*$/}),v.ui("FloatField").uri,{size:12,style:"text-align: right;",dt:"float",pattern:/^\s*-?[0-9]*(\.[0-9]*)?((e|E)-?[0-9]*)?\s*$/}),v.ui("SingleLineTextField").uri,{}),v.ui("NamedNodeURIField").uri,{namedNode:!0}),v.ui("TextField").uri,{}),on(on(on(on(on(ln,v.ui("PhoneField").uri,{size:20,uriPrefix:"tel:",pattern:/^\+?[\d-]+[\d]*$/}),v.ui("EmailField").uri,{size:30,uriPrefix:"mailto:",pattern:/^\s*.*@.*\..*\s*$/}),v.ui("Group").uri,{style:_e.formGroupStyle}),v.ui("Comment").uri,{element:"p",style:_e.commentStyle}),v.ui("Heading").uri,{element:"h3",style:_e.formHeadingStyle})),pn=w.solidLogicSingleton.store,dn={};function mn(e){var t=pn,n=t.findTypeURIs(e),a=t.bottomTypeURIs(n),i=[];for(var r in a)i.push(r);return i[0]}function fn(e,t){var n=mn(t),a=dn[n];return F("paneUtils: Going to implement field "+t+" of type "+n),a||function(e,a){var i=ct(e,"No handler for field "+t+" of type "+n);return a&&a.appendChild(i),i}}var hn="https://www.w3.org/ns/css#";var vn=w.solidLogicSingleton.store;function xn(e,t,n,a,i){n.style.display="flex",n.style.flexDirection="row";var r=n.appendChild(e.createElement("div"));r.style.width=Ae.formFieldNameBoxWidth;var o=n.appendChild(e.createElement("div"));return r.setAttribute("class","formFieldName"),r.setAttribute("style",_e.formFieldNameBoxStyle),o.setAttribute("class","formFieldValue"),i?r.appendChild(e.createTextNode(i)):t.any(a,v.ui("property"))?r.appendChild(bn(e,t.any(a,v.ui("property")),a)):(o.appendChild(ct(e,"No property or label given for form field: "+a)),r.appendChild(e.createTextNode("???"))),o}function bn(e,t,n){var a=vn.any(n,v.ui("label"));if(a||(a=Z(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 gn(e,t,n){var a=vn.statementsMatching(e,t);if(0===a.length)return n;if(!vn.updater)throw new Error("Store has no updater");return a.length>0&&a[0].why.value&&vn.updater.editable(a[0].why.value,vn)?vn.sym(a[0].why.value):n}function yn(e,t,n,a,i,r,o){var s=vn,c=i.doc?i.doc():null,l=e.createElement("div"),u=s.any(i,v.ui("property"));if(t&&t.appendChild(l),!u)return l.appendChild(ct(e,"Error: No property given for text field: "+i));var p=xn(e,s,l,i),d=s.anyJS(i,v.ui("suppressEmptyUneditable"),null,c),m=mn(i),f=un[m];void 0===f&&(f={style:""});var x=f.style||"",b=_e.textInputStyle+x,g=e.createElement("input");g.style=b,p.appendChild(g),g.setAttribute("type",f.type?f.type:"text");var y=s.anyJS(i,v.ui("size"))||Ae.textInputSize||20;g.setAttribute("size",y);var w=s.any(i,v.ui("maxLength"));g.setAttribute("maxLength",w?""+w:Ae.basicMaxLength),r=r||gn(a,u,r);var k=s.any(a,u,void 0,r);if(k||(k=s.any(i,v.ui("default"))),k&&k.value&&f.uriPrefix?g.value=decodeURIComponent(k.value.replace(f.uriPrefix,"")).replace(/ /g,""):k&&(g.value=k.value||k.value||""),g.setAttribute("style",b),!s.updater)throw new Error("kb has no updater");return s.updater.editable(r.uri)?(g.addEventListener("keyup",function(e){f.pattern&&g.setAttribute("style",b+(g.value.match(f.pattern)?"color: green;":"color: red;"))},!0),g.addEventListener("change",function(t){if(!f.pattern||g.value.match(f.pattern)){g.disabled=!0,g.setAttribute("style",b+"color: gray;");var n,i=s.statementsMatching(a,u);f.namedNode?n=s.sym(g.value):f.uriPrefix?(n=encodeURIComponent(g.value.replace(/ /g,"")),n=s.sym(f.uriPrefix+g.value)):n=f.dt?new h.Literal(g.value.trim(),void 0,v.xsd(f.dt)):new h.Literal(g.value);var c=i.map(function(e){return(0,h.st)(e.subject,e.predicate,n,e.why)});0===c.length&&(c=[(0,h.st)(a,u,n,r)]),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(!s.updater)throw new Error("kb has no updater");if(1===i.length)return s.updater.update(t,n,a);var r=i.pop(),o=n.filter(function(e){return e.why.uri===r}),c=n.filter(function(e){return e.why.uri!==r}),l=t.filter(function(e){return e.why.uri===r}),u=t.filter(function(e){return e.why.uri!==r});s.updater.update(l,o,function(t,n,i){n?e(u,c,a):a(t,n,i)})}(i,c,function(t,n,a){n?(g.disabled=!1,g.setAttribute("style",b)):l.appendChild(ct(e,a)),o(n,a)})}},!0),l):(g.readOnly=!0,g.style=_e.textInputStyleUneditable+x,d&&""===g.value&&(l.style.display="none"),l)}var wn="https://www.w3.org/ns/iana/language-code/",kn=["en","fr","de","it","ar"];function Cn(e){return e||(e=[]),e.concat(kn.filter(function(t){return!e.includes(t)}))}function En(e){return An.apply(this,arguments)}function An(){return(An=b(y().mark(function e(t){var n,a,i,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.doc(),e.next=1,null===(n=w.store.fetcher)||void 0===n?void 0:n.load(a);case 1:if(i=w.store.any(t,v.schema("knowsLanguage"),null,a)){e.next=2;break}return e.abrupt("return",kn);case 2:if(r=[],i.elements.forEach(function(e){var t=w.store.any(e,v.solid("publicId"),null,a);if(t)if(t.value.startsWith(wn)){var n=t.value.slice(wn.length);r.push(n)}else console.error("What should be a language code ".concat(t.value," does not start with ").concat(wn));else console.warn("getPreferredLanguages: No publiID of language.")}),!(r.length>0)){e.next=3;break}return console.log(' User knows languages with codes: "'.concat(r.join(","),'"')),e.abrupt("return",Cn(r));case 3:return e.abrupt("return",null);case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function _n(){return jn.apply(this,arguments)}function jn(){return(jn=b(y().mark(function e(){var t,n;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,w.authn.currentUser();case 1:if(!(t=e.sent)){e.next=3;break}return e.next=2,En(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",Cn(navigator.languages.map(function(e){return e.split("-")[0]})));case 4:if(!navigator.language){e.next=5;break}return e.abrupt("return",Cn([navigator.language.split("-")[0]]));case 5:return e.abrupt("return",kn);case 6:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Sn(e,t){var n={};e.forEach(function(e){var t=e.subject.value;n[t]=n[t]||[],n[t].push(e)});var a=t||kn;a.reverse();var i=[];for(var r in n){var o=n[r].map(function(e){var t=e.name["xml:lang"];return[a.indexOf(t),e]});o.sort(),o.reverse(),i.push(o[0][1])}return Y.Rm(" Filter by language: ".concat(e.length," -> ").concat(i.length)),i}var Tn=200,Ln=/\$\(subject\)/g,Rn={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"},Nn='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}',Bn={credentials:"omit",headers:new Headers({Accept:"application/json"})},In={label:"ESCO",logo:w.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)"},On={label:"DBPedia",logo:w.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/"},Dn={AcademicInsitution:"http://umbel.org/umbel/rc/EducationalOrganization"},Fn={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"},Pn={label:"WikiData",limit:3e3,logo:w.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}'},Un={"http://www.wikidata.org/entity/Q15936437":v.schema("CollegeOrUniversity"),"http://www.wikidata.org/entity/Q1664720":v.schema("EducationalOrganization"),"http://www.wikidata.org/entity/Q43229":v.schema("Organization"),"http://www.wikidata.org/entity/Q3918":v.schema("CollegeOrUniversity"),"http://www.wikidata.org/entity/Q170584":v.schema("Project"),"http://www.wikidata.org/entity/Q327333":v.schema("GovernmentOrganization"),"http://www.wikidata.org/entity/Q2221906":v.schema("Place"),"http://www.wikidata.org/entity/Q167037":v.schema("Corporation")},Mn={targetClass:v.rdf("type"),sealImage:v.schema("logo"),shortName:v.foaf("nick"),subsidiary:v.schema("subOrganization"),city:v.vcard("locality"),state:v.vcard("region"),country:v.vcard("country-name"),homepage:v.foaf("homepage"),lat:v.schema("latitude"),long:v.schema("longitude")};function zn(e){var t=e.type.toLowerCase();if("uri"===t||"iri"===t)return w.store.sym(e.value);if("literal"===t)return e["xml:lang"]?new h.Literal(e.value,e["xml:lang"]):new h.Literal(e.value);throw new Error('bindingToTerm: Unexpected type "'.concat(e.type,'" in sparql binding}'))}function qn(e,t,n,a){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Mn,r={};Y.Rm("loadFromBindings: subject: ".concat(t)),Y.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 o=function(n){var o=r[n];Y.Rm(" results ".concat(n," -> ").concat(o)),o.forEach(function(r){var o,s=JSON.parse(r),c=s.type,l=s.value;if("uri"===c)o=e.sym(l);else{if("literal"!==c)throw new Error("loadFromBindings: unexpected type: ".concat(c));o=new h.Literal(l,s.language,s.datatype)}if("type"===n)Un[l]?o=Un[l]:Y.R8("Unmapped Wikidata Class: "+l);else if("coordinates"===n){Y.Rm(" @@@ hey a point: "+l);var u=/.*\(([-0-9.-]*) ([-0-9.-]*)\)/.exec(l);if(u){var p=v.xsd("float"),d=new h.Literal(u[1],null,p),m=new h.Literal(u[2],null,p);e.add(t,v.schema("longitude"),m,a),e.add(t,v.schema("latitude"),d,a)}else Y.Rm("Bad coordinates syntax: "+l)}else{var f=i[n]||v.schema(n);e.add(t,f,o,a),Y.Rm(" public data ".concat(f," ").concat(o,"."))}})};for(var s in r)o(s)}function Hn(e){return e._embedded.results.map(function(e){return{name:{value:e.title,type:"literal"},subject:{type:"IRI",value:e.uri}}})}function Gn(e,t,n){return Vn.apply(this,arguments)}function Vn(){return(Vn=b(y().mark(function e(t,n,a){var i,r,o,s,c,l;return y().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 r=a.limit||Tn,o=a.searchByNameURI.replace("$(name)",t).replace("$(limit)",""+r).replace("$(targetClass)",n.toNT()),Y.Rm("Querying ESCO data - uri: "+o),e.next=2,null===(i=w.store.fetcher)||void 0===i?void 0:i.webOperation("GET",o,Bn);case 2:if(s=e.sent,c=(null==s?void 0:s.responseText)||"",Y.Rm(" Query result text"+c.slice(0,500)+"..."),0!==c.length){e.next=3;break}throw new Error("Wot no text back from ESCO query "+o);case 3:return l=JSON.parse(c),Y.Rm(" ESCO Query result JSON"+JSON.stringify(l,null,4).slice(0,500)+"..."),e.abrupt("return",Hn(l));case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Wn(e){var t=e.indexOf("SPARQL-QUERY");if(t<0)return e;Y.R8(" ### Fixing JSON with wikidata error code injection "+e.slice(t,t+200));var n=e.lastIndexOf("}, {");return e.slice(0,n)+" } ] } } "}function Jn(e,t,n,a){return $n.apply(this,arguments)}function $n(){return($n=b(y().mark(function e(t,n,a,i){var r,o,s,c,l,u,p,d,m,f,h,v;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=function(e){var a=i.limit||Tn;return e.replace("$(name)",t).replace("$(limit)",""+a).replace("$(language)",o).replace("$(targetClass)",n.toNT())},n){e.next=1;break}throw new Error("queryPublicDataByName: No class provided");case 1:return e.next=2,_n();case 2:if(h=e.sent){e.next=3;break}h=kn;case 3:if(o=h[0]||"en",!i.searchByNameQuery){e.next=4;break}return s=r(i.searchByNameQuery),Y.Rm("Querying public data - sparql: "+s),e.abrupt("return",Qn(s,i));case 4:if(!i.searchByNameURI){e.next=13;break}return c=r(i.searchByNameURI),e.prev=5,e.next=6,null===(u=w.store.fetcher)||void 0===u?void 0:u.webOperation("GET",c,Bn);case 6:l=e.sent,e.next=8;break;case 7:throw e.prev=7,v=e.catch(5),new Error("Exception when trying to fetch ".concat(c," \n ").concat(v));case 8:if(p=l.responseText||"",200===l.status){e.next=9;break}throw new Error("HTTP error status ".concat(l.status," trying to fetch ").concat(c," "));case 9:if(Y.Rm(" Query result text"+p.slice(0,500)+"..."),0!==p.length){e.next=10;break}throw new Error("queryPublicDataByName: No text back from public data query "+c);case 10:if(d=Wn(p),m=JSON.parse(d),Y.Rm(" API Query result JSON"+JSON.stringify(m,null,4).slice(0,500)+"..."),!m._embedded){e.next=11;break}return Y.Rm(" Looks like ESCO"),f=Hn(m),e.abrupt("return",f);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(m,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 Qn(e,t){return Zn.apply(this,arguments)}function Zn(){return(Zn=b(y().mark(function e(t,n){var a,i,r,o,s,c,l,u,p,d;return y().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),r=i.href,Y.Rm(" queryPublicDataSelect uri: "+r),(o=new Headers).append("Accept","application/json"),s={credentials:"omit",headers:o},e.next=2,null===(a=w.store.fetcher)||void 0===a?void 0:a.webOperation("GET",r,s);case 2:if(c=e.sent,0!==(l=(null==c?void 0:c.responseText)||"").length){e.next=3;break}throw new Error("No text back from query "+r);case 3:return u=Wn(l),p=JSON.parse(u),Y.Rm(" Query result JSON"+JSON.stringify(p,null,4).slice(0,100)+"..."),d=p.results.bindings,e.abrupt("return",d);case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Kn(e,t,n){return Yn.apply(this,arguments)}function Yn(){return(Yn=b(y().mark(function e(t,n,a){var i,r,o,s,c,l,u,p;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(Y.Rm("queryPublicDataConstruct: sparql:",t),a.endpoint){e.next=1;break}throw new Error("Missing queryTarget.endpoint required for queryPublicDataConstruct");case 1:return(r=new URL(a.endpoint)).searchParams.append("query",t),o=r.href,Y.Rm(" queryPublicDataConstruct uri: "+o),(s=new Headers).append("Accept","text/turtle"),c={credentials:"omit",headers:s},e.next=2,null===(i=w.store.fetcher)||void 0===i?void 0:i.webOperation("GET",o,c);case 2:if(l=e.sent,u=(null==l?void 0:l.responseText)||"No response text?",p=u.length>500?u.slice(0,200)+" ... "+u.slice(-200):u,Y.Rm(" queryPublicDataConstruct result text:"+p),0!==u.length){e.next=3;break}throw new Error("queryPublicDataConstruct: No text back from construct query:"+o);case 3:(0,h.parse)(u,w.store,n.uri,"text/turtle");case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Xn(e,t,n){return ea.apply(this,arguments)}function ea(){return ea=b(y().mark(function e(t,n,a){var i,r;return y().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",sa(t,n,a));case 1:if(!a.uri.match(/^https?:\/\/www\.wikidata\.org\/entity\/.*/)){e.next=3;break}return e.next=2,ta(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,(r=new Headers).append("Accept","text/turtle"),e.abrupt("return",t.fetcher.load(i,{credentials:"omit",headers:r}));case 4:case"end":return e.stop()}},e)})),ea.apply(this,arguments)}function ta(e,t,n){return na.apply(this,arguments)}function na(){return(na=b(y().mark(function e(t,n,a){var i,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=/wd:Q49108/g,r=Nn.replace(i,a.toNT()),e.next=1,Kn(r,a,Pn);case 1:Y.Rm("getWikidataDetails: loaded.",a);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function aa(e,t,n){return ia.apply(this,arguments)}function ia(){return ia=b(y().mark(function e(t,n,a){var i,r;return y().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(Ln,a.toNT()),e.next=1,Qn(i,Pn);case 1:r=e.sent,qn(t,a,r,a.doc());case 2:case"end":return e.stop()}},e)})),ia.apply(this,arguments)}function ra(e,t,n){return oa.apply(this,arguments)}function oa(){return oa=b(y().mark(function e(t,n,a){var i,r;return y().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(Ln,a.toNT()),Y.Rm(" location query sparql:"+i),e.next=1,Qn(i,Pn);case 1:r=e.sent,Y.Rm(" location query bindings:",r),qn(t,a,r,a.doc());case 2:case"end":return e.stop()}},e)})),oa.apply(this,arguments)}function sa(e,t,n){return ca.apply(this,arguments)}function ca(){return ca=b(y().mark(function e(t,n,a){var i,r;return y().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,Qn(i,On);case 1:r=e.sent,qn(t,a,r,a.doc()),Y.Rm("Finished getDbpediaDetails.");case 2:case"end":return e.stop()}},e)})),ca.apply(this,arguments)}function la(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 ua(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)?ua(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 ua(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 pa(e,t){e.style.display=t?"":"none"}function da(e,t,n,a){return ma.apply(this,arguments)}function ma(){return ma=b(y().mark(function e(t,n,a,i){var r,o,s,c,l,u,p,d,m,f,h,v,x,g,k,C,E,A,_,j,S,T,L,R,N,B,I,O,D,F,P,U,M,z;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(A=function(){n.currentObject?(U.value=n.currentName?n.currentName.value:"??? wot no name for "+n.currentObject,I=n.currentName,R=n.currentName?n.currentName.value:void 0,O=n.currentObject):(U.value="",R=void 0,O=void 0),a.deleteButton&&pa(a.deleteButton,!!n.currentObject),a.acceptButton&&pa(a.acceptButton,!1),a.editButton&&pa(a.editButton,!0),a.cancelButton&&pa(a.cancelButton,!1),T=!1,f()},E=function(){return E=b(y().mark(function e(){var n,a,i,r,o,c,l,u,p;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a=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");_e.setStyle(n,"autocompleteRowStyle"),n.setAttribute("style","padding: 0.3em;"),n.style.color=L?"#080":"#088",n.textContent=e.name.value;var a=zn(e.subject),i=zn(e.name);return n.addEventListener("click",function(){var e=b(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:Y.Rm(" click row textContent: "+n.textContent),Y.Rm(" click name: "+i.value),a&&i&&s(a,i);case 1:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()),n},!T){e.next=1;break}return Y.Rm('Ignoring "'.concat(U.value,'" because of lock ')),e.abrupt("return");case 1:return Y.Rm('Setting lock at "'.concat(U.value,'"')),T=!0,e.next=2,_n();case 2:if(i=e.sent,!((r=U.value.trim().toLowerCase()).length<4)){e.next=3;break}f(),N=20,e.next=6;break;case 3:if(L&&R&&r.startsWith(R)){e.next=5;break}return Y.Rm(' Querying database at "'.concat(r,'" cf last "').concat(R,'".')),e.next=4,x(r,i);case 4:j=e.sent;case 5:o=k(r,j),S&&o.length<=40&&(N=o.length),L=S&&o.length<=N,Y.Rm(' Filter:"'.concat(r,'" lastBindings: ').concat(j.length,", slimmed to ").concat(o.length,"; rows: ").concat(N,", Enough? ").concat(S,", All displayed? ").concat(L)),(c=o.slice(0,N)).sort(a),f(),l=la(c);try{for(l.s();!(u=l.n()).done;)p=u.value,D.appendChild(n(p))}catch(e){l.e(e)}finally{l.f()}1===o.length&&s(zn(o[0].subject),zn(o[0].name));case 6:T=!1;case 7:case"end":return e.stop()}},e)})),E.apply(this,arguments)},C=function(){return E.apply(this,arguments)},k=function(e,t){return t.filter(function(t){return m(e,t.name.value)})},g=function(){return(g=b(y().mark(function e(t,a){var i,o,s;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,Jn(t,_,a||kn,n.queryParams);case 1:i=e.sent,e.next=3;break;case 2:return e.prev=2,s=e.catch(0),r("Error querying db of organizations: "+s),T=!1,e.abrupt("return");case 3:return S=i.length<Tn,R=S?t:void 0,f(),o=Sn(i,a),e.abrupt("return",o);case 4:case"end":return e.stop()}},e,null,[[0,2]])}))).apply(this,arguments)},x=function(e,t){return g.apply(this,arguments)},v=function(){return(v=b(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:pa(a.cancelButton,!0),C();case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)},h=function(e){return v.apply(this,arguments)},f=function(){for(;D.children.length>1;)D.removeChild(D.lastChild)},m=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},d=function(){return(d=b(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:Y.Rm("Auto complete: Canceled by user! "),n.permanent?A():B.parentNode&&B.parentNode.removeChild(B);case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)},p=function(e){return d.apply(this,arguments)},u=function(){return(u=b(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:I&&U.value===I.value&&o(O,I);case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)},l=function(e){return u.apply(this,arguments)},c=function(){return(c=b(y().mark(function e(t,n){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!a.acceptButton){e.next=1;break}return a.acceptButton.disbaled=!1,pa(a.acceptButton,!0),U.value=n.value,I=n,O=t,Y.Rm("Auto complete: name: "+n),Y.Rm("Auto complete: waiting for accept "+t),f(),e.abrupt("return");case 1:pa(a.cancelButton,!0),o(t,n);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)},s=function(e,t){return c.apply(this,arguments)},o=function(e,t){Y.Rm("Auto complete: finish! "+e),"Literal"===e.termType&&n.queryParams.objectURIBase&&(e=w.store.sym(n.queryParams.objectURIBase.value+e.value)),f(),i(e,t)},r=function(e){var n=D.appendChild(t.createElement("tr"));Y.Rm(e);var a=new Error(e);n.appendChild(ct(t,a,"pink")),_e.setStyle(n,"autocompleteRowStyle"),n.style.padding="1em"},_=n.targetClass){e.next=1;break}throw new Error("renderAutoComplete: missing targetClass");case 1:return a.acceptButton&&a.acceptButton.addEventListener("click",l,!1),a.cancelButton&&a.cancelButton.addEventListener("click",p,!1),S=!1,T=!1,L=!1,R=void 0,N=20,B=t.createElement("div"),I=void 0,O=void 0,(D=B.appendChild(t.createElement("table"))).setAttribute("data-testid","autocomplete-table"),D.setAttribute("style","max-width: 30em; margin: 0.5em;"),F=D.appendChild(t.createElement("tr")),_e.setStyle(F,"autocompleteRowStyle"),P=F.appendChild(t.createElement("td")),(U=P.appendChild(t.createElement("input"))).setAttribute("type","text"),A(),M=n.size||Ae.textInputSize||20,U.setAttribute("size",M),U.setAttribute("data-testid","autocomplete-input"),z=_e.textInputStyle||"border: 0.1em solid #444; border-radius: 0.5em; width: 100%; font-size: 100%; padding: 0.1em 0.6em",U.setAttribute("style",z),U.addEventListener("keyup",function(e){13===e.keyCode&&l(e)},!1),U.addEventListener("input",h),e.abrupt("return",B);case 2:case"end":return e.stop()}},e)})),ma.apply(this,arguments)}function fa(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 ha(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)?ha(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 ha(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 va=Re.Pt.iconBase+"noun_34653_green.svg",xa=Re.Pt.iconBase+"noun_Search_875351.svg",ba=Re.Pt.iconBase+"noun_253504.svg";function ga(e,t,n,a,i,r){return ya.apply(this,arguments)}function ya(){return ya=b(y().mark(function e(t,n,a,i,r,o){var s,c,l,u,p,d,m,f,h,x,g,k,C,E,A,_,j,S,T,L,R,N;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(T=function(){S?(pa(j,!1),pa(k,!1),pa(C,!1)):(pa(j,!0),pa(k,!1),pa(C,!1))},g=function(){return(g=b(y().mark(function e(t){var a,i,o,s;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a=fa(t),e.prev=1,a.s();case 2:if((i=a.n()).done){e.next=4;break}return o=i.value,e.next=3,r(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)},x=function(e){return g.apply(this,arguments)},h=function(){return(h=b(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!R){e.next=1;break}N.removeChild(R),R=void 0,e.next=2;break;case 1:return e.next=2,d();case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)},f=function(e){return h.apply(this,arguments)},m=function(){return(m=b(y().mark(function e(){var n;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(R=t.createElement("div")).setAttribute("style","display: flex; flex-flow: wrap;"),n=R,e.next=1,da(t,i,L,s);case 1:n.appendChild.call(n,e.sent),R.appendChild(k),R.appendChild(C),R.appendChild(j),R.appendChild(E),N.appendChild(R);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)},d=function(){return m.apply(this,arguments)},p=function(){R&&(N.removeChild(R),R=void 0)},u=function(){return(u=b(y().mark(function e(a){var i;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Ft(t,w.store,N,v.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",r(n,i));case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)},l=function(e){return u.apply(this,arguments)},c=function(){return(c=b(y().mark(function e(t,n){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i.permanent?(pa(j,!0),pa(k,!1),pa(C,!1)):p(),e.abrupt("return",r(t,n));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)},s=function(e,t){return c.apply(this,arguments)},(k=Dt(t)).setAttribute("data-testid","accept-button"),(C=Ot(t)).setAttribute("data-testid","cancel-button"),E=t.createElement("div"),A=i.targetClass?Z(i.targetClass):"item",(_=Bt(t,E,A,o)).setAttribute("data-testid","delete-button"),(j=It(t,ba,"Edit",function(e){S=!S,T()})).setAttribute("data-testid","edit-button"),S=!0,L={acceptButton:k,cancelButton:C,editButton:j,deleteButton:_},R=void 0,(N=t.createElement("div")).style.display="flex",N.style.flexDirection="row",!i.permanent&&!i.currentObject){e.next=1;break}return e.next=1,d();case 1:return a.editable&&(N.style.width="100%",a.manualURIEntry&&je(N.appendChild(It(t,va,a.idNoun,l)),x,void 0),!a.dbLookup||i.currentObject||i.permanent||N.appendChild(It(t,xa,a.idNoun,f))),T(),e.abrupt("return",N);case 2:case"end":return e.stop()}},e)})),ya.apply(this,arguments)}function wa(e){return function(e){if(Array.isArray(e))return we(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ke(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}
|
|
24
24
|
/**
|
|
25
25
|
* @version IconicMultiSelect v0.7.0
|
|
26
26
|
* @licence MIT
|
|
27
27
|
*/
|
|
28
|
-
var ka={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=ka[t]}},Ca=function(){return ye(function e(t){var n=t.data,a=t.itemTemplate,i=t.noData,r=t.noResults,o=t.placeholder,s=t.select,c=t.container,l=t.tagTemplate,u=t.textField,p=t.valueField;ve(this,e),on(this,"_data",void 0),on(this,"_domElements",void 0),on(this,"_event",function(){}),on(this,"_itemTemplate",void 0),on(this,"_multiselect",void 0),on(this,"_noData",void 0),on(this,"_noResults",void 0),on(this,"_options",[]),on(this,"_placeholder",void 0),on(this,"_select",void 0),on(this,"_selectContainer",void 0),on(this,"_selectedOptions",[]),on(this,"_tagTemplate",void 0),on(this,"_textField",void 0),on(this,"_valueField",void 0),on(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!=i?i:"No data found.",this._noResults=null!=r?r:"No results found.",this._placeholder=null!=o?o:"Select...",this._select=s,this._selectContainer=c,this._tagTemplate=null!=l?l:null,this._textField=null!=u?u:null,this._valueField=null!=p?p: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(ka.multiselect__selected,'" data-value="').concat(e.value,'">').concat(this._tagTemplate?this._processTemplate(this._tagTemplate,t):e.text,'<span class="multiselect__remove-btn" style="').concat(ka.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",ka.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",ka.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",ka.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",ka.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",ka.multiselect__options_ul_li_arrow_selected),void n.firstElementChild.scrollIntoView(!1);if(a.classList.remove("arrow-selected"),a.setAttribute("style",ka.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",ka.multiselect__options_ul_li_arrow_selected),void this._scrollIntoView(n,a);a.classList.add("arrow-selected"),a.setAttribute("style",ka.multiselect__options_ul_li_arrow_selected),this._scrollIntoView(n,a)}else this._domElements.optionsContainer.classList.add("visible"),this._domElements.optionsContainer.setAttribute("style",ka.multiselect__options_visible),n.firstElementChild.classList.add("arrow-selected"),n.firstElementChild.setAttribute("style",ka.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",ka.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",ka.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 a=0;a<this._options.length;a++){var i=this._options[a];if(i.value===e.dataset.value)return e.classList.add("multiselect__options--selected"),e.setAttribute("style",ka.multiselect__options_selected),this._selectedOptions=[].concat(wa(this._selectedOptions),[i]),this._addOptionToList(i,a),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[a];if(n.selected){t=!0;var i=e._domElements.options.find(function(e){return e.dataset.value===n.value});i.classList.add("multiselect__options--selected"),i.setAttribute("style",ka.multiselect__options_selected),e._selectedOptions=[].concat(wa(e._selectedOptions),[n]),e._addOptionToList(n,a)}},a=0;a<this._options.length;a++)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",ka.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(ka.multiselect__options,'">\n <ul style="').concat(ka.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(ka.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(ka.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",ka.multiselect__container);var t='\n <div class="multiselect__wrapper" style="'.concat(ka.multiselect__wrapper,'">\n <input class="multiselect__input" style="').concat(ka.multiselect__input,'" placeholder="').concat(this._placeholder,'" />\n </div>\n <span style="display: none;" class="multiselect__clear-btn" style="').concat(ka.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(ka.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(ka.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)}}])}();function Ea(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 Aa(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)?Aa(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 Aa(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 _a="✓",ja="✕",Sa="-",Ta=w.store;function La(e,t,n,a,i,r,o){for(var s=r.children,c=0;c<o.length;c++){var l=o[c];if(mn(l)===v.ui("Options").uri){var u=fn(0,l)(e,null,t,n,l,a,i);Y.Rm("Refreshing Options field by replacing it."),r.insertBefore(u,s[c]),r.removeChild(s[c+1])}}}function Ra(e,t,n,a,i,r,o,s){var c=v.ui,l=w.store,u=l.any(i,c("property"));if(!u){var p=ct(e,"No property to boolean field: "+i);return t&&t.appendChild(p),p}var d=l.any(i,c("label"));d||(d=Q(u,!0)),r=gn(a,u,r);var m=l.any(a,u);void 0===m&&(m=!1);var f=h.st(a,u,!0,r),b=Ja(e,l,d,h.st(a,u,!1,r),f,i,r,s);return t&&t.appendChild(b),b}function Ba(e,t,n,a,i,r,o){fn(0,i)(e,t,n,a,i,r,o)}function Na(e,t,n,a,i){var r=e.createElement("button");return r.setAttribute("type","button"),r.innerHTML="Edit "+Q(v.ui("Form")),r.addEventListener("click",function(o){Ia(e,t,{},n,v.ui("FormForm"),a,i).setAttribute("style",v.ui("FormForm").sameTerm(n)?"background-color: #fee;":"background-color: #ffffe7;"),r.parentNode.removeChild(r)},!0),r}function Ia(e,t,n,a,i,r,o){return fn(0,i)(e,t,n,a,i,r,o)}function Oa(e,t){var n=e.each(void 0,v.rdf("range"),t);[v.rdfs("comment"),v.dc("title"),v.foaf("name"),v.foaf("homepage")].forEach(function(e){n.push(e)});var a=e.each(void 0,v.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 Fa(e,t,n){for(var a=[e.sym(t)];a.length>0;){var i=a.shift(),r=e.each(i,n);if(D("Lists for "+i+", "+n+": "+r.length),0!==r.length)return r;for(var o=e.each(i,v.rdfs("subClassOf")),s=0;s<o.length;s++)a.push(o[s]),D("findClosest: add super: "+o[s])}return[]}function Da(e){var t=w.store;D("formsFor: subject="+e);var n,a=t.findTypeURIs(e);for(n in a)D(" type: "+n);var i=t.bottomTypeURIs(a),r=[];for(var o in i)D("candidatesFor: trying bottom type ="+o),r=(r=r.concat(Fa(t,o,v.ui("creationForm")))).concat(Fa(t,o,v.ui("annotationForm")));return r}function Pa(e){var t=e.map(function(e){return[Ta.any(e,v.ui("sequence"))||9999,e]});return t.sort(function(e,t){return e[0]-t[0]}),t.map(function(e){return e[1]})}function Ua(e){var t=e.map(function(e){return[Q(e).toLowerCase(),e]});return t.sort(),t.map(function(e){return e[1]})}function Ma(e,t,n,a,i,r,o,s){var c=e.createElement("button");return c.setAttribute("type","button"),c.innerHTML="New "+Q(i),c.addEventListener("click",function(l){c.parentNode.appendChild(za(e,t,n,a,i,r,o,s))},!1),c}function za(e,t,n,a,i,r,o,s){var c=e.createElement("form");if(!r){var l=Fa(t,i.uri,v.ui("creationForm"));if(0===l.length){c.appendChild(e.createElement("p")).textContent="I am sorry, you need to provide information about a "+Q(i)+" but I don't know enough information about those to ask you.";var u=c.appendChild(e.createElement("button"));return u.setAttribute("type","button"),u.setAttribute("style","float: right;"),u.innerHTML="Goto "+Q(i),u.addEventListener("click",function(t){e.outlineManager.GotoSubject(i,!0,void 0,!0,void 0)},!1),c}D("lists[0] is "+l[0]),r=l[0]}D("form is "+r),c.setAttribute("style","border: 0.05em solid ".concat(Ae.formBorderColor,"; color: ").concat(Ae.formBorderColor)),c.innerHTML="<h3>New "+Q(i)+"</h3>";var p=fn(0,r),d=$a(o),m=!1;function f(e,t,n){return s(t,n)}P("paneUtils Object is "+d);var b=p(e,c,{},d,r,o,function(r,l){if(!r)return s(r,l);var u=[];n&&!t.holds(n,a,d,o)&&u.push(h.st(n,a,d,o)),n&&!t.holds(d,v.rdf("type"),i,o)&&u.push(h.st(d,v.rdf("type"),i,o)),u.length?t.updater.update([],u,f):s(!0,l),m||(m=c.appendChild(Kt(e,d)))});return Qt(e,b).setAttribute("style","float: right;"),c.AJAR_subject=d,c}function qa(e,t,n,a,i,r){var o,s=e.createElement("div"),c=t.anyJS(n,a,null,i)||"",l=e.createElement("textarea");function u(c){o.disabled=!0,o.setAttribute("style","visibility: hidden; float: right;"),l.disabled=!0,l.style.color=Ae.textInputColorPending;var u=t.statementsMatching(n,a,null,i),p=h.st(n,a,l.value,i);t.updater.update(u,p,function(t,n,a){n?(l.style.color=Ae.textInputColor,l.disabled=!1):s.appendChild(ct(e,"Error (while saving change to "+i.uri+"): "+a)),r&&r(n,a)})}return s.appendChild(l),l.rows=c?c.split("\n").length+2:2,l.cols=80,l.setAttribute("style",_e.multilineTextInputStyle),null!==c?l.value=c:l.select(),s.refresh=function(){var e=t.any(n,a,null,i);e&&e.value!==l.value&&(l.value=e.value)},t.updater.editable(i.uri)?((o=Ft(e,u)).disabled=!0,o.style.visibility="hidden",o.style.float="right",s.appendChild(o),l.addEventListener("keyup",function(e){l.style.color="green",o&&(o.disabled=!1,o.style.visibility="")},!0),l.addEventListener("change",u,!0)):(l.disabled=!0,l.style.backgroundColor=Ae.textInputBackgroundColorUneditable),s}function Ha(e,t,n,a,i,r,o,s){D("Select list length now "+i.length);for(var c,l=0,u={},p=t.updater.editable(o.uri),d=0;d<i.length;d++){var m=i[d];m.uri||Y.R8("makeSelectForClassifierOptions: option does not have an uri: ".concat(m,", with predicate: ").concat(a)),m.uri&&!(m.uri in u)&&(u[m.uri]=!0,l++)}if(0===l&&!r.mint)return ct(e,"Can't do selector with no options, subject= "+n+" property = "+a+".");D("makeSelectForClassifierOptions: dataDoc="+o);var f=function(){return c={},a.sameTerm(v.rdf("type"))?c=t.findTypeURIs(n):t.each(n,a,null,o).forEach(function(e){c[e.uri]=!0}),c};c=f();var b=e.createElement("select");for(var x in b.setAttribute("style",_e.formSelectStyle),r.multiple&&b.setAttribute("multiple","true"),b.currentURI=null,b.refresh=function(){c=f();for(var e=0;e<b.children.length;e++){var t=b.children[e];t.AJAR_uri&&(t.selected=t.AJAR_uri in c)}b.disabled=!1},u){var g=t.sym(x),y=e.createElement("option");r.disambiguate?y.appendChild(e.createTextNode(et(g,!0))):y.appendChild(e.createTextNode(Q(g,!0)));var w=t.any(g,t.sym("http://www.w3.org/ns/ui#backgroundColor"));w&&y.setAttribute("style","background-color: "+w.value+"; "),y.AJAR_uri=x,x in c&&(y.setAttribute("selected","true"),b.currentURI=x),b.appendChild(y)}if(p&&r.mint){var k=e.createElement("option");k.appendChild(e.createTextNode(r.mint)),k.AJAR_mint=!0,b.insertBefore(k,b.firstChild)}if(null==b.currentURI&&!r.multiple){var C=e.createElement("option");C.appendChild(e.createTextNode(r.nullLabel)),b.insertBefore(C,b.firstChild),C.selected=!0}return p&&b.addEventListener("change",function(i){b.disabled=!0;for(var l,u=[],p=[],d=function(e){t.holds(n,a,e,o)&&u.push(h.st(n,a,e,o))},m=0;m<b.options.length;m++){var v=b.options[m];if(v.selected&&v.AJAR_mint){if(r.mintClass){var x=za(e,t,n,a,r.mintClass,null,o,function(e,t){e||s(e,t,{change:"new"})});b.parentNode.appendChild(x),l=x.AJAR_subject}else l=$a(o);p.push(h.st(n,a,l,o)),r.mintStatementsFun&&(p=p.concat(r.mintStatementsFun(l)))}v.AJAR_uri&&(v.selected&&!(v.AJAR_uri in c)&&p.push(h.st(n,a,t.sym(v.AJAR_uri),o)),!v.selected&&v.AJAR_uri in c&&d(t.sym(v.AJAR_uri)),v.selected&&(b.currentURI=v.AJAR_uri))}for(var g=b.subSelect;g&&g.currentURI;)d(t.sym(g.currentURI)),g=g.subSelect;for(g=b.superSelect;g&&g.currentURI;)d(t.sym(g.currentURI)),g=g.superSelect;function y(e,t){s(e,{widget:"select",event:"new"})}P("makeSelectForClassifierOptions: data doc = "+o),t.updater.update(u,p,function(t,n,a){if(c=f(),!n)return b.parentNode.appendChild(ct(e,"Error updating data in select: "+a));b.disabled=!1,l&&fn(0,r.subForm)(e,b.parentNode,{},l,r.subForm,o,y),s&&s(n,{widget:"select",event:"change"})})},!1),b}function Va(e,t,n,a,i,r,o,s){D("Select list length now "+i.length);for(var c,l=0,u={},p=t.updater.editable(o.uri),d=0;d<i.length;d++){var m=i[d];m.uri||Y.R8("makeSelectForOptions: option does not have an uri: ".concat(m,", with predicate: ").concat(a)),m.uri&&!(m.uri in u)&&(u[m.uri]=!0,l++)}if(0===l)return ct(e,"Can't do selector with no options, subject= "+n+" property = "+a+".");D("makeSelectForOptions: dataDoc="+o);var f=function(){return c={},a.sameTerm(v.rdf("type"))?c=t.findTypeURIs(n):t.each(n,a,null,o).forEach(function(e){e.uri&&(c[e.uri]=!0)}),c};c=f();var b=e.createElement("select");for(var x in b.setAttribute("style",_e.formSelectStyle),b.currentURI=null,b.refresh=function(){c=f();for(var e=0;e<b.children.length;e++){var t=b.children[e];t.AJAR_uri&&(t.selected=t.AJAR_uri in c)}b.disabled=!1},u){var g=t.sym(x),y=e.createElement("option");r.disambiguate?y.appendChild(e.createTextNode(et(g,!0))):y.appendChild(e.createTextNode(Q(g,!0)));var w=t.any(g,t.sym("http://www.w3.org/ns/ui#backgroundColor"));w&&y.setAttribute("style","background-color: "+w.value+"; "),y.AJAR_uri=x,x in c&&(y.setAttribute("selected","true"),b.currentURI=x),b.appendChild(y)}if(!b.currentURI){var k=e.createElement("option");k.appendChild(e.createTextNode(r.nullLabel)),b.insertBefore(k,b.firstChild),k.selected=!0}return p&&b.addEventListener("change",function(i){b.disabled=!0;for(var r=[],l=[],u=function(e){t.holds(n,a,e,o)&&r.push(h.st(n,a,e,o))},p=0;p<b.options.length;p++){var d=b.options[p];d.AJAR_uri&&(d.selected&&!(d.AJAR_uri in c)&&l.push(h.st(n,a,t.sym(d.AJAR_uri),o)),!d.selected&&d.AJAR_uri in c&&u(t.sym(d.AJAR_uri)),d.selected&&(b.currentURI=d.AJAR_uri))}for(var m=b.subSelect;m&&m.currentURI;)u(t.sym(m.currentURI)),m=m.subSelect;for(m=b.superSelect;m&&m.currentURI;)u(t.sym(m.currentURI)),m=m.superSelect;P("selectForOptions: data doc = "+o),t.updater.update(r,l,function(t,n,a){if(c=f(),!n)return b.parentNode.appendChild(ct(e,"Error updating data in select: "+a));b.disabled=!1,s&&s(n,{widget:"select",event:"change"})})},!1),b}function Ga(e,t,n,a,i,r){var o,s=t.any(a,v.owl("disjointUnionOf")),c=!1;return s?o=s.elements:(o=t.each(void 0,v.rdfs("subClassOf"),a),c=!0),D("Select list length "+o.length),0===o.length?ct(e,"Can't do "+(c?"multiple ":"")+"selector with no subclasses of category: "+a):1===o.length?ct(e,"Can't do "+(c?"multiple ":"")+"selector with only 1 subclass of category: "+a+":"+o[1]):Ha(e,t,n,v.rdf("type"),o,{multiple:c,nullLabel:"* Select type *"},i,r)}function Wa(e,t,n,a,i,r){function o(){c&&(s.removeChild(c),c=null),l.currentURI&&t.any(t.sym(l.currentURI),v.owl("disjointUnionOf"))&&(c=Wa(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=Ga(e,t,n,a,i,function(e,t){e&&o(),r(e,t)});return s.appendChild(l),o(),s}function Ja(e,t,n,a,i,r,o,s){var c=e.createElement("div"),l=bn(e,t,c,r,n),u=t.updater.editable(o.uri),p=e.createElement("button"),d=p;function m(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 f(e){return 0===e.filter(function(e){return!t.holds(e.subject,e.predicate,e.object,e.why)}).length}if(p.style=_e.checkboxInputStyle,l.appendChild(p),i=m(i),a=m(a),function(){var n=f(i),o=n;if(a.length){var l=f(a);if(n&&l)return c.appendChild(ct(e,"Inconsistent data in dataDoc!\n"+i+" and\n"+a)),c;if(!n&&!l){n=null;var u=t.any(r,v.ui("default"));o=u?"1"===u.value:!!s&&null}}p.state=n,p.textContent={true:_a,false:s?ja:" ",null:Sa}[o]}(),!u)return c;return p.addEventListener("click",function(n){d.style.color="#bbb";var r=!0===p.state?i:!1===p.state?a:[];p.newState=null===p.state||!0!==p.state&&(!s||null);var o=!0===p.newState?i:!1===p.newState?a:[];Y.Rm(" Deleting ".concat(r)),Y.Rm(" Inserting ".concat(o)),t.updater.update(r,o,function(n,a,i){if(a)d.style.color="#000",p.state=p.newState,p.textContent={true:_a,false:ja,null:Sa}[p.state];else{if(r.why)t.holds(r.subject,r.predicate,r.object,r.why)&&Y.Rm(" @@@@@ weird if 409 - does hold statement");d.style.color="#000",d.style.backgroundColor="#fee",c.appendChild(ct(e,"Checkbox: Error updating dataDoc from ".concat(p.state," to ").concat(p.newState,":\n\n").concat(i)))}})},!1),c}function $a(e){var t=new Date;return h.sym(e.uri+"#id"+t.getTime())}function Ka(e,t,n,a,i,r,o,s,c,l,u){for(var p={},d=n.updater.editable(l.uri),m=0;m<r.length;m++){var f=r[m];f.uri&&!(f.uri in p)&&(p[f.uri]=!0)}if(0===Object.keys(p).length&&!c.mint)return ct(e,"Can't do selector with no options, subject= "+a+" property = "+i+".");D("makeSelectForChoice: dataDoc="+l);var b,x,g=e.createElement("select");for(var y in g.setAttribute("style",_e.formSelectStyle),g.setAttribute("id","formSelect"),g.currentURI=null,p)g.appendChild(k(y));if(d&&c.mint){var w=e.createElement("option");w.appendChild(e.createTextNode(c.mint)),w.AJAR_mint=!0,g.insertBefore(w,g.firstChild)}function k(t){var a,i=e.createElement("option"),r=n.sym(t);a=c.disambiguate?et(r,!0):Q(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,Qa(r.value,o)&&i.setAttribute("selected","true"),i}return 0===g.children.length&&g.insertBefore(((x=e.createElement("option")).appendChild(e.createTextNode((b="--- choice ---",i&&"BlankNode"!==i.termType&&(b="* Select for property: "+Q(i)+" *"),a&&"BlankNode"!==a.termType&&(b="* Select for "+Q(a,!0)+" *"),b))),x.disabled=!0,x.value=!0,x.hidden=!0,x.selected=!0,x),g.firstChild),g.update=function(t){o=t;var r,c=[],p=[],d=function(e){n.holds(a,i,e,l)&&c.push(h.st(a,i,e,l))},m=function(e){n.holds(a,i,e,l)||p.push(h.st(a,i,e,l)),s&&!n.holds(e,v.rdf("type"),n.sym(s),l)&&p.push(h.st(e,v.rdf("type"),n.sym(s),l))},f=n.each(a,i,null,l).map(function(e){return e.value}),b=Ea(f);try{for(b.s();!(r=b.n()).done;){var x=r.value;Qa(x,o)||d(h.sym(x))}}catch(e){b.e(e)}finally{b.f()}var y,w=Ea(o);try{for(w.s();!(y=w.n()).done;){var k=y.value;k in f||m(h.sym(k))}}catch(e){w.e(e)}finally{w.f()}n.updater.update(c,p,function(t,n,a){if(!n)return g.parentNode.appendChild(ct(e,"Error updating data in select: "+a));g.refresh(),u&&u(n,{widget:"select",event:"change"})})},g.refresh=function(){g.disabled=!0;for(var r,p=[],d=0;d<g.options.length;d++){var m=g.options[d];if(m.selected&&m.AJAR_mint){if(c.mintClass){var f=za(e,n,a,i,s,c.subForm,l,function(e,t){e||u(e,t,{change:"new"})});g.parentNode.appendChild(f),r=f.AJAR_subject}else r=$a(l);p.push(h.st(a,i,n.sym(r),l)),s&&p.push(h.st(r,v.rdf("type"),n.sym(s),l)),c.mintStatementsFun&&(p=p.concat(c.mintStatementsFun(r))),g.currentURI=r}m.AJAR_uri&&(m.selected&&Qa(m.AJAR_uri,o)&&(g.currentURI=m.AJAR_uri),Qa(m.AJAR_uri,o)||m.removeAttribute("selected"),Qa(m.AJAR_uri,o)&&m.setAttribute("selected","true"))}P("selectForOptions: data doc = "+l),g.currentURI&&c.subForm&&!c.multiSelect&&Ba(e,t,{},h.sym(g.currentURI),c.subForm,l,function(a,i){a?(n.updater.update([],p,function(n,a,i){a||t.appendChild(ct(e,"Error updating select: "+i))}),u&&u(a,{widget:"select",event:"new"})):t.appendChild(ct(e,"Error updating data in field of select: "+i))}),g.disabled=!1},d&&g.addEventListener("change",function(e){t.removeChild(t.lastChild),g.refresh()},!1),g}function Qa(e,t){var n;for(n=0;n<t.length;n++)if(t[n]===e)return!0;return!1}function Za(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 Ya(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)?Ya(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 Ya(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}dn[v.ui("AutocompleteField").uri]=function(e,t,n,a,i,r,o){var s;function c(){return(c=x(y().mark(function t(n,i){var s,c,l,p,m,f;return y().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(i){t.next=1;break}throw new Error("autocompleteField: No name set.");case 1:if(!(s=u.the(a,b,null,r))){t.next=2;break}if(c=u.any(s,g,null,r),!(s.equals(n)&&c&&c.sameTerm(i))){t.next=2;break}return t.abrupt("return");case 2:return l=s?u.statementsMatching(a,b,s,r).concat(u.statementsMatching(s,g,null,r)):[],p=[(0,h.st)(a,b,n,r),(0,h.st)(n,g,i,r)],t.prev=3,t.next=4,null===(m=u.updater)||void 0===m?void 0:m.updateMany(l,p);case 4:t.next=6;break;case 5:return t.prev=5,f=t.catch(3),o(!1,f),d.appendChild(ct(e,"Autocomplete form data update error:"+f,null,f)),t.abrupt("return");case 6:o(!0,"");case 7:case"end":return t.stop()}},t,null,[[3,5]])}))).apply(this,arguments)}function l(){return(l=x(y().mark(function t(n,i){var s,c,l,p,m,f;return y().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(s=u.the(a,b,null,r)){t.next=1;break}return o(!1,"NO data to elete"),d.appendChild(ct(e,"Autocomplete delete: no old data!")),t.abrupt("return");case 1:return c=u.statementsMatching(a,b,s,r).concat(u.statementsMatching(s,g,null,r)),l=[],t.prev=2,t.next=3,null===(p=u.updater)||void 0===p?void 0:p.updateMany(c,l);case 3:t.next=5;break;case 4:return t.prev=4,f=t.catch(2),m=new Error("Autocomplete form data delete error:"+f),o(!1,f),d.appendChild(ct(e,m,null,f)),t.abrupt("return");case 5:o(!0,"");case 6:case"end":return t.stop()}},t,null,[[2,4]])}))).apply(this,arguments)}if("NamedNode"!==a.termType)throw new Error("Sorry this field only works on NamedNode subjects (for editable)");var u=w.store,p=i.doc?i.doc():null,d=e.createElement("div");t&&t.appendChild(d);var m=e.createElement("div");m.setAttribute("class","formFieldName"),m.setAttribute("style",_e.formFieldNameBoxStyle),d.appendChild(m);var f=e.createElement("div");f.setAttribute("class","formFieldValue"),d.appendChild(f);var b=u.any(i,v.ui("property"));if(!b)return d.appendChild(ct(e,"Error: No property given for autocomplete field: "+i));var g=u.any(i,v.ui("labelProperty"))||v.schema("name"),k=u.any(i,v.ui("dataSource"));if(!k)return d.appendChild(ct(e,"Error: No data source given for autocomplete field: "+i));var C={label:u.anyJS(k,v.schema("name"),null,k.doc()),logo:u.any(k,v.schema("logo"),null,k.doc())},E=u.any(i,v.ui("targetClass"),null,i.doc())||u.any(k,v.ui("targetClass"),null,k.doc());E&&(C.targetClass=E),C.objectURIBase=u.any(k,v.ui("objectURIBase"),null,k.doc())||void 0;var A=u.anyJS(k,v.ui("endpoint"),null,k.doc());if(A){if(C.endpoint=A,C.searchByNameQuery=u.anyJS(k,v.ui("searchByNameQuery"),null,k.doc()),!C.searchByNameQuery)return d.appendChild(ct(e,"Error: No searchByNameQuery given for endpoint data Source: "+i));C.insitituteDetailsQuery=u.anyJS(k,v.ui("insitituteDetailsQuery"),null,k.doc())}else{var _=u.anyJS(k,v.ui("searchByNameURI"));if(!_)return d.appendChild(ct(e,"Error: No searchByNameURI OR sparql endpoint given for dataSource: "+k));C.searchByNameURI=_}var j=u.anyJS(i,v.ui("suppressEmptyUneditable"),null,p),S=null===(s=u.updater)||void 0===s?void 0:s.editable(r.uri),T={permanent:!0,targetClass:C.targetClass,queryParams:C};T.size=u.anyJS(i,v.ui("size"),null,p)||void 0;var L=u.any(a,b,void 0,r);if(L)T.currentObject=L,T.currentName=u.any(T.currentObject,g,null,r);else if(L=u.any(i,v.ui("default")))T.currentObject=L,T.currentName=u.any(T.currentObject,g,null,r);else if(j&&!S)return d.style.display="none",d;return m.appendChild(xn(e,b,i)),ga(e,a,{editable:S,dbLookup:!0},T,function(e,t){return c.apply(this,arguments)},function(e,t){return l.apply(this,arguments)}).then(function(e){f.appendChild(e)},function(t){f.appendChild(ct(e,"Error rendering autocomplete ".concat(i,": ").concat(t),"#fee",t))}),d},dn[v.ui("Form").uri]=dn[v.ui("Group").uri]=function(e,t,n,a,i,r,o){var s=e.createElement("div"),c=v.ui;if(t&&t.appendChild(s),i){var l=a.toNT()+"|"+i.toNT();if(n[l])return s.appendChild(e.createTextNode("Group: see above "+l)),s;var u={};for(var p in n)u[p]=1;u[l]=1;var d=i.doc?i.doc():null,m=Ta.any(i,c("weight"),null,d),f=m?Number(m.value):1;if(f>3||f<0)return s.appendChild(ct(e,"Form Group weight ".concat(f," should be 0-3")));s.setAttribute("style",_e.formGroupStyle[f]),s.style.display="flex",s.style.flexDirection="column",s.class="form-weight-"+f;var h,b=Ta.any(i,c("parts"),null,d);if(b?h=b.elements:(b=Ta.each(i,c("part"),null,d),h=Pa(b)),!b)return s.appendChild(ct(e,"No parts to form! "));for(var x=0;x<h.length;x++){var g=h[x],y=fn(0,g),w=function(t,i){t&&i&&i.widget&&"select"===i.widget&&La(e,n,a,r,o,s,h),o(t,{widget:"group",change:i})};s.appendChild(y(e,null,u,a,g,r,w))}return s}},dn[v.ui("Options").uri]=function(e,t,n,a,i,r,o){var s=w.store,c=e.createElement("div"),l=i.doc?i.doc():null,u=v.ui;t&&t.appendChild(c);var p=s.any(i,u("dependingOn"));p||(p=v.rdf("type"));var d,m=s.each(i,u("case"),null,l);m||c.appendChild(ct(e,"No cases to Options form. ")),d=p.sameTerm(v.rdf("type"))?Object.keys(s.findTypeURIs(a)).map(function(e){return h.sym(e)}):s.each(a,p);for(var f=0;f<m.length;f++){for(var b=m[f],x=s.each(b,u("for"),null,l),g=!1,y=0;y<x.length;y++){var k,C=Ea(d);try{for(C.s();!(k=C.n()).done;){var E=k.value,A=x[y];(E.sameTerm(x)||E.termType===A.termType&&E.value===A.value)&&(g=!0)}}catch(e){C.e(e)}finally{C.f()}}if(g){var _=s.the(b,u("use"));if(!_)return c.appendChild(ct(e,'No "use" part for case in form '+i)),c;Ia(e,c,n,a,_,r,o);break}}return c},dn[v.ui("Multiple").uri]=function(e,t,n,a,i,r,o){function s(e){return e.map(function(e){return e.toString().slice(-7)}).join(", ")}function c(){return l.apply(this,arguments)}function l(){return l=x(y().mark(function t(){var n,i,o,s;return y().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=$a(r),!C){t.next=2;break}return O(),T.elements.push(n),t.next=1,F();case 1:t.next=7;break;case 2:return i=A?[h.st(n,E,a,r)]:[h.st(a,E,n,r)],t.prev=3,t.next=4,d.updater.update([],i);case 4:t.next=6;break;case 5:t.prev=5,s=t.catch(3),o="Error adding to unordered multiple: "+s,f.appendChild(ct(e,o)),Y.z3(o);case 6:U();case 7:case"end":return t.stop()}},t,null,[[3,5]])})),l.apply(this,arguments)}function u(t){function i(){return(i=x(y().mark(function n(){var i,o;return y().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(!C){n.next=5;break}Y.Rm("pre delete: "+s(T.elements)),i=0;case 1:if(!(i<T.elements.length)){n.next=4;break}if(!T.elements[i].sameTerm(t)){n.next=3;break}return T.elements.splice(i,1),n.next=2,F();case 2:return n.abrupt("return");case 3:i++,n.next=1;break;case 4:n.next=6;break;case 5:d.holds(a,E,t,r)&&(o=[h.st(a,E,t,r)],d.updater.update(o,[],function(t,n,a){n?R.removeChild(u):R.appendChild(ct(e,"Multiple: delete failed: "+a))}));case 6:case"end":return n.stop()}},n)}))).apply(this,arguments)}function c(e,t){return l.apply(this,arguments)}function l(){return(l=x(y().mark(function e(n,a){var i;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:Y.Rm("pre move: "+s(T.elements)),i=0;case 1:if(!(i<T.elements.length)){e.next=3;break}if(!T.elements[i].sameTerm(t)){e.next=2;break}return e.abrupt("continue",3);case 2:i++,e.next=1;break;case 3:if(i===T.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:T.elements.splice(i-1,2,T.elements[i],T.elements[i-1]),e.next=7;break;case 5:if(i!==T.elements.length-1){e.next=6;break}return alert("@@ boop - already at bottom -temp message"),e.abrupt("return");case 6:T.elements.splice(i,2,T.elements[i+1],T.elements[i]);case 7:return e.next=8,F();case 8:case"end":return e.stop()}},e)}))).apply(this,arguments)}D("Multiple: render object: "+t);var u=fn(0,S)(e,null,n,t,S,r,function(e,n){Y.Rm("Item done callback for item ".concat(t.toString())),e||Y.z3(" Item done callback: Error: "+n),o(e,n)});if(u.subject=t,d.updater.editable(r.uri)&&(Nt(e,u,_,function(){return i.apply(this,arguments)}),C)){var p=e.createElement("div");p.style.display="grid",p.style.gridTemplateColumns="auto 3em",p.style.gridTemplateRows="50% 50%";var m=It(e,Re.Pt.iconBase+"noun_1369237.svg","Move Up",function(){var e=x(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",c(t,!0));case 1:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()),f=It(e,Re.Pt.iconBase+"noun_1369241.svg","Move Down",function(){var e=x(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",c(t,!1));case 1:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()),v=e.createElement("div");return v.appendChild(u),p.appendChild(v),p.appendChild(m),p.appendChild(f),m.style.gridColumn=2,f.style.gridColumn=2,m.style.gridRow=1,f.style.padding="0em",m.style.padding="0em",f.style.gridRow=2,v.style.gridColumn=1,v.style.gridRowStart="span 2",p}return u}var p=Re.Pt.iconBase+"noun_19460_green.svg",d=w.store,m=i.doc?i.doc():null,f=e.createElement("div"),b=f,g=v.ui;t&&t.appendChild(f);var k=d.any(i,g("ordered")),C=!!k&&h.Node.toJS(k),E=d.any(i,g("property")),A=d.anyJS(i,g("reverse"),null,m);if(!E)return f.appendChild(ct(e,"No property to multiple: "+i)),b;var _=d.any(i,g("label"));_||(_=Q(E));var j=d.any(i,g("min"));j=j?0+j.value:0;var S=d.any(i,g("part"));if(!S)return f.appendChild(ct(e,"No part to multiple: "+i)),b;var T,L,R=f.appendChild(e.createElement("div"));if(R.style.display="flex",R.style.flexDirection="column",L=A?d.any(null,E,a,r):d.any(a,E,null,r),C?(T=A?d.any(null,E,a,r):d.any(a,E,null,r),L=T?T.elements:[]):(L=A?d.each(null,E,a,r):d.each(a,E,null,r),T=null),d.updater.editable(r.uri)){var B=f.appendChild(e.createElement("div"));B.style.padding="0.5em";var N=B.appendChild(e.createElement("img"));N.setAttribute("src",p),N.setAttribute("style","margin: 0.2em; width: 1.5em; height:1.5em"),N.title="Click to add another "+_;var I=e.createElement("span");I.textContent=(0===L.length?"Add another ":"Add ")+_,B.addEventListener("click",function(){var e=x(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,c();case 1:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),!0),B.appendChild(I)}function O(){T||(T=new h.Collection,A?d.add(T,E,a,r):d.add(a,E,T,r))}function F(){return P.apply(this,arguments)}function P(){return(P=x(y().mark(function t(){var n;return y().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return Y.Rm("save list: "+s(T.elements)),O(),t.prev=1,t.next=2,d.fetcher.putBack(r);case 2:t.next=4;break;case 3:return t.prev=3,n=t.catch(1),f.appendChild(ct(e,"Error trying to put back a list: "+n)),t.abrupt("return");case 4:U();case 5:case"end":return t.stop()}},t,null,[[1,3]])}))).apply(this,arguments)}function U(){var e;if(C){var t=A?d.the(null,E,a,r):d.the(a,E,null,r);e=t?t.elements:[]}else(e=A?d.each(null,E,a,r):d.each(a,E,null,r)).sort();Me(R,e,u)}function M(){return(M=x(y().mark(function e(){var t,n;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!((t=j-L.length)>0)){e.next=4;break}n=0;case 1:if(!(n<t)){e.next=3;break}return Y.Rm("Adding extra: min "+j),e.next=2,c();case 2:n++,e.next=1;break;case 3:return e.next=4,F();case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}return R.refresh=U,U(),function(){return M.apply(this,arguments)}().then(function(){Y.Rm(" Multiple render: async stuff ok")},function(e){Y.z3(" Multiple render: async stuff fails. #### ",e)}),b},dn[v.ui("PhoneField").uri]=yn,dn[v.ui("EmailField").uri]=yn,dn[v.ui("ColorField").uri]=yn,dn[v.ui("DateField").uri]=yn,dn[v.ui("DateTimeField").uri]=yn,dn[v.ui("TimeField").uri]=yn,dn[v.ui("NumericField").uri]=yn,dn[v.ui("IntegerField").uri]=yn,dn[v.ui("DecimalField").uri]=yn,dn[v.ui("FloatField").uri]=yn,dn[v.ui("TextField").uri]=yn,dn[v.ui("SingleLineTextField").uri]=yn,dn[v.ui("NamedNodeURIField").uri]=yn,dn[v.ui("MultiLineTextField").uri]=function(e,t,n,a,i,r,o){var s=v.ui,c=w.store,l=i.doc?i.doc():null,u=c.any(i,s("property"));if(!u)return ct(e,"No property to text field: "+i);var p=e.createElement("div");p.style.display="flex",p.style.flexDirection="row";var d=p.appendChild(e.createElement("div"));d.style.width=Ae.formFieldNameBoxWidth;var m=p.appendChild(e.createElement("div"));d.appendChild(xn(e,u,i)),r=gn(a,u,r);var f=c.anyJS(a,u,null,r)||"",h=c.updater.editable(r.uri),b=i&&c.anyJS(i,v.ui("suppressEmptyUneditable"),null,l);!h&&b&&""===f&&(p.style.display="none");var x=qa(e,c,a,u,r,o);return m.appendChild(x),t&&t.appendChild(p),p},dn[v.ui("BooleanField").uri]=function(e,t,n,a,i,r,o){return Ra(e,t,0,a,i,r,0,!1)},dn[v.ui("TristateField").uri]=function(e,t,n,a,i,r,o){return Ra(e,t,0,a,i,r,0,!0)},dn[v.ui("Classifier").uri]=function(e,t,n,a,i,r,o){var s=w.store,c=v.ui,l=s.any(i,c("category"));if(!l)return ct(e,"No category for classifier: "+i);D("Classifier: dataDoc="+r);var u=Wa(e,s,a,l,r,function(e,t){return o(e,t)});return t&&t.appendChild(u),u},dn[v.ui("Choice").uri]=function(e,t,n,a,i,r,o){var s,c=v.ui,l=w.store,u=i.doc?i.doc():null,p=e.createElement("div");p.setAttribute("class","choiceBox"),t&&t.appendChild(p);var d=e.createElement("div");d.setAttribute("class","formFieldName choiceBox-label"),p.appendChild(d);var m=e.createElement("div");m.setAttribute("class","formFieldValue choiceBox-selectBox"),p.appendChild(m);var f=l.any(i,c("property"));if(!f)return p.appendChild(ct(e,"No property for Choice: "+i));d.appendChild(xn(e,f,i));var b=l.any(i,c("from"));if(!b)return ct(e,"No 'from' for Choice: "+i);var x=l.any(i,c("use")),g={form:i,subForm:x,disambiguate:!1};l.any(i,c("canMintNew"))&&(g.mint="* Create new *");var y=l.any(i,c("multiselect"));y&&(g.multiSelect=!0);var k,C=l.each(i,c("search-full-store")).length?null:r;return m.refresh=function(){var t=l.each(a,f,null,r).map(function(e){return e.value}),n=function(e){var t,n=[];for(var a in n=l.each(void 0,v.rdf("type"),b,u),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 b in v){for(var x=0,g=(s=e.statementsMatching(null,e.rdfFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"),e.fromNT(b),n)).length;x<g;x++)h[(d=s[x]).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(b),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 k=0,C=(u=e.each(null,e.rdfFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#range"),e.fromNT(b),n)).length;k<C;k++)for(o=u[k],m=0,i=(p=e.statementsMatching(null,o,null,n)).length;m<i;m++)h[(d=p[m]).object.toNT()]=d}return h}(l,b,e))n.push(l.fromNT(a));if(b.sameTerm(v.rdfs("Class")))for(s in Jt())n.push(l.sym(s));else if(b.sameTerm(v.rdf("Property"))){for(s in(t=$t(l)).op)n.push(l.fromNT(s));for(s in t.dp)n.push(l.fromNT(s));g.disambiguate=!0}else if(b.sameTerm(v.owl("ObjectProperty"))){for(s in(t=$t(l)).op)n.push(l.fromNT(s));g.disambiguate=!0}else if(b.sameTerm(v.owl("DatatypeProperty"))){for(s in(t=$t(l)).dp)n.push(l.fromNT(s));g.disambiguate=!0}return n}(C);if(n.push(t),n=Ua(n),k=Ka(e,m,l,a,f,n,t,b,g,r,o),m.innerHTML="",m.appendChild(k),y){var i=new Ca({placeholder:k.selected,select:k,container:m,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=$a(r),s=[];s.push(h.st(a,f,l.sym(i),r)),b&&s.push(h.st(i,v.rdf("type"),l.sym(b),r)),x&&Ba(e,m,{},h.sym(i),x,r,function(n,a){n?(l.updater.update([],s,function(t,n,a){n||m.appendChild(ct(e,"Error updating select: "+a))}),t.push(i),o&&o(n,{widget:"select",event:"new"})):m.appendChild(ct(e,"Error updating data in field of select: "+a))})}else t.push(n.value);k.update(t)})}},m.refresh(),k&&k.refresh&&k.refresh(),p},dn[v.ui("Comment").uri]=dn[v.ui("Heading").uri]=function(e,t,n,a,i,r,o){var s=v.ui,c=w.store,l=c.any(i,s("contents"));l||(l="Error: No contents in comment field.");var u=i.doc?i.doc():null,p=mn(i),d=un[p]||{},m=e.createElement("div");t&&t.appendChild(m);var f=m.appendChild(e.createElement(d.element));f.textContent=l,function(e,t){var n=mn(t),a=un[n]||{},i=w.store.any(t,v.ui("style"));i?"Literal"===i.termType?i&&e.setAttribute("style",i.value):w.store.statementsMatching(i,null,null,t.doc()).forEach(function(t){if(t.predicate.uri&&t.predicate.uri.startsWith(hn)){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||"???",'"'))}}}):a.style&&e.setAttribute("style",a.style)}(f,i);var h=c.anyJS(i,v.ui("suppressIfUneditable"),null,u),b=c.updater.editable(r.uri);return h&&!b&&(m.style.display="none"),m};w.solidLogicSingleton.store;var Xa=w.solidLogicSingleton.profile,ei=Xa.loadPreferences,ti=Xa.loadProfile,ni=w.solidLogicSingleton.typeIndex,ai=ni.getScopedAppInstances,ii=ni.getRegistrations,ri=ni.loadAllTypeIndexes,oi=ni.getScopedAppsFromIndex,si=ni.deleteTypeIndexRegistration;function ci(e){var t=w.authn.currentUser();return t?(w.authn.saveUser(t,e),Promise.resolve(e)):new Promise(function(t){w.authn.checkUser().then(function(n){if(n)return Y.Rm("logIn: Already logged in as ".concat(n)),t(e);if(!e.div||!e.dom)return t(e);var a=ki(e.dom,function(n){w.authn.saveUser(n,e),t(e)});e.div.appendChild(a)})})}function li(e){return ui.apply(this,arguments)}function ui(){return(ui=x(y().mark(function e(t){var n,a,i;return y().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,pi(t);case 2:return t=e.sent,e.next=3,ei(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 w.UnauthorizedError)){e.next=5;break}z(a="Oops — you are not authenticated (properly logged in), so SolidOS cannot read your preferences file. Try logging out and then logging back in."),e.next=11;break;case 5:if(!(i instanceof w.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 w.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.",Y.R8(a),e.abrupt("return",t);case 7:if(!(i instanceof w.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.",Y.R8(a),e.abrupt("return",t);case 8:if(!(i instanceof w.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.",Y.R8(a),e.next=11;break;case 9:if(!(i instanceof w.FetchError)){e.next=10;break}z(a="Strange: Error ".concat(i.status," trying to read your preference file.").concat(i.message)),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 pi(e){return di.apply(this,arguments)}function di(){return(di=x(y().mark(function e(t){var n,a;return y().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,ci(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,ti(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(ct(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 mi(e,t,n){return fi.apply(this,arguments)}function fi(){return(fi=x(y().mark(function e(t,n,a){var i,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.me){e.next=2;break}return e.next=1,ai(n,t.me);case 1:r=e.sent,e.next=3;break;case 2:r=[];case 3:return i=r,!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 hi(e,t){var n=e.me&&e.me.sameTerm(t.agent)?"":Q(t.agent)+" ";return"".concat(n).concat(t.label)}function vi(e,t,n){return bi.apply(this,arguments)}function bi(){return bi=x(y().mark(function e(t,n,a){var i,r,o,s,c,l,u,p,d,m,f,b,x;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=function(e){var n=i(e.index),a=hi(t,e),r="".concat(a," link to this ").concat(t.noun);return Ja(t.dom,w.solidLogicSingleton.store,r,null,n,d,e.index)},i=function(e){var t=ii(n,a),i=t.length?t[0]:$a(e);return[(0,h.st)(i,v.solid("instance"),n,e),(0,h.st)(i,v.solid("forClass"),a,e)]},(o=t.dom)&&t.div){e.next=1;break}throw new Error("registrationControl: need dom and div");case 1:if(s=o.createElement("div"),t.div.appendChild(s),t.me=w.authn.currentUser(),c=t.me){e.next=2;break}return s.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,ri(c);case 3:l=e.sent,e.next=5;break;case 4:return e.prev=4,x=e.catch(2),t.div&&t.preferencesFileError?(u="(Lists of stuff not available)",t.div.appendChild(o.createElement("p")).textContent=u):t.div&&(u="registrationControl: Type indexes not available: ".concat(x),t.div.appendChild(ct(t.dom,x))),Y.Rm(u),e.abrupt("return",t);case 5:s.innerHTML="<table><tbody></tbody></table>",s.setAttribute("style","font-size: 120%; text-align: right; padding: 1em; border: solid gray 0.05em;"),p=s.children[0].children[0],d=new h.BlankNode,m=Za(l);try{for(m.s();!(f=m.n()).done;)b=f.value,p.appendChild(o.createElement("tr")).appendChild(r(b))}catch(e){m.e(e)}finally{m.f()}return e.abrupt("return",t);case 6:case"end":return e.stop()}},e,null,[[2,4]])})),bi.apply(this,arguments)}function xi(e,t,n){var a=e.dom,i=hi(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 gi(e,t){return yi.apply(this,arguments)}function yi(){return yi=x(y().mark(function e(t,n){var a,i,r,o,s,c,l,u,p,d,m,f,h,b,g,k;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t.dom,i=t.div,r=a.createElement("div"),i.appendChild(r),t.me=w.authn.currentUser(),t.me){e.next=1;break}return r.innerHTML='<p style="margin:2em;">(Log in list your stuff)</p>',e.abrupt("return",t);case 1:return e.next=2,ri(t.me);case 2:o=e.sent,r.innerHTML="<table><tbody></tbody></table>",r.setAttribute("style","font-size: 120%; text-align: right; padding: 1em; border: solid #eee 0.5em;"),s=r.firstChild,c=s.firstChild,l=Za(o),e.prev=3,l.s();case 4:if((u=l.n()).done){e.next=13;break}return p=u.value,d=xi(t,0,p),c.appendChild(d),e.next=5,oi(p,n.type||null);case 5:0===(m=e.sent).length&&(d.style.display="none"),f=Za(m),e.prev=6,b=y().mark(function e(){var t,n;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t=h.value,n=Pt(a,v.solid("instance"),t.instance,{deleteFunction:function(){var e=x(y().mark(function e(){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,si(t);case 1:c.removeChild(n);case 2:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}()}),n.children[0].style.paddingLeft="3em",c.appendChild(n);case 1:case"end":return e.stop()}},e)}),f.s();case 7:if((h=f.n()).done){e.next=9;break}return e.delegateYield(b(),"t0",8);case 8:e.next=7;break;case 9:e.next=11;break;case 10:e.prev=10,g=e.catch(6),f.e(g);case 11:return e.prev=11,f.f(),e.finish(11);case 12:e.next=4;break;case 13:e.next=15;break;case 14:e.prev=14,k=e.catch(3),l.e(k);case 15:return e.prev=15,l.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]])})),yi.apply(this,arguments)}function wi(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 a=e.createElement("div");a.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(a);var i=e.createElement("label");i.setAttribute("style","margin-right: 5px; font-weight: 800"),i.innerText="Select an identity provider";var r=e.createElement("button");r.innerHTML='<img src="https://solidos.github.io/solid-ui/src/icons/noun_1180156.svg" style="width: 2em; height: 2em;" title="Cancel">',r.setAttribute("style","background-color: transparent; border: none;"),r.addEventListener("click",function(){t.remove()}),a.appendChild(i),a.appendChild(r);var o=function(){var e=x(y().mark(function e(t){var n,a;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,w.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,w.authSession.login({redirectUrl:a.href,oidcIssuer:t});case 1:e.next=3;break;case 2:e.prev=2,z(e.catch(0).message);case 3:case"end":return e.stop()}},e,null,[[0,2]])}));return function(t){return e.apply(this,arguments)}}(),s=e.createElement("div");s.setAttribute("style","\n border-bottom: 1px solid #DDD;\n display: flex;\n flex-direction: column;\n padding-top: 10px;\n ");var c=e.createElement("div");c.setAttribute("style","\n display: flex;\n flex-direction: row;\n ");var l=e.createElement("label");l.innerText="Enter the URL of your identity provider:",l.setAttribute("style","color: #888");var u=e.createElement("input");u.setAttribute("type","text"),u.setAttribute("style","margin-left: 0 !important; flex: 1; margin-right: 5px !important"),u.setAttribute("placeholder","https://example.com"),u.value=localStorage.getItem("loginIssuer")||"";var p=e.createElement("button");p.innerText="Go",p.setAttribute("style","margin-top: 12px; margin-bottom: 12px;"),p.addEventListener("click",function(){o(u.value)}),s.appendChild(l),c.appendChild(u),c.appendChild(p),s.appendChild(c),n.appendChild(s);var d=e.createElement("div");d.setAttribute("style","\n display: flex;\n flex-direction: column;\n padding-top: 10px;\n ");var m=e.createElement("label");m.innerText="Or pick an identity provider from the list below:",m.setAttribute("style","color: #888"),d.appendChild(m),(0,w.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(){o(t.uri)}),d.appendChild(n)}),n.appendChild(d)}function ki(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,w.offlineTestID)(),i=e.createElement("div");function r(e){e&&(a=w.authn.saveUser(e),i.refresh(),t&&t(a.uri))}function o(e){var n=a;w.authSession.logout().then(function(){var e="Your WebID was ".concat(n,". It has been forgotten.");a=null;try{z(e)}catch(t){window.alert(e)}i.refresh(),t&&t(null)},function(e){z("Fail to log out:"+e)})}function s(){a=w.authn.currentUser(),i.refresh()}return i.refresh=function(){var t=w.authSession.info;((a=t&&t.webId&&t.isLoggedIn?w.solidLogicSingleton.store.sym(t.webId):null)&&i.me!==a.uri||!a&&i.me)&&(xt(i),a?i.appendChild(function(t,n){var a=n.buttonStyle||_e.signInAndUpButtonStyle,i="WebID logout";if(t){var r=w.solidLogicSingleton.store.any(t,v.foaf("nick"))||w.solidLogicSingleton.store.any(t,v.foaf("name"));r&&(i="Logout "+r.value)}var s=e.createElement("input");return s.setAttribute("type","button"),s.setAttribute("value",i),s.setAttribute("style","".concat(a)),s.addEventListener("click",o,!1),s}(a,n)):i.appendChild(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=(n=n||{}).buttonStyle||_e.signInAndUpButtonStyle,i=e.createElement("div"),r="SolidSignInOrSignUpBox";Y.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(_e.headerBannerLoginInput)+_e.signUpBackground),w.authSession.events.on("login",function(){var t=w.authn.currentUser();if(t){var n=t.uri,a=e.getElementsByClassName(r);Y.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 s=o.parentNode;s&&s.removeChild(o)}catch(t){Y.Rm("## Error satisfying login box: ".concat(t)),o.appendChild(ct(e,t))}}}}),o.addEventListener("click",function(){var n=(0,w.offlineTestID)();if(n)return t(n.uri);wi(e)},!1);var s=e.createElement("input");return i.appendChild(s),s.setAttribute("type","button"),s.setAttribute("value","Sign Up for Solid"),s.setAttribute("style","".concat(a).concat(_e.headerBannerLoginInput)+_e.signInBackground),s.addEventListener("click",function(e){(new cn).signup().then(function(e){Y.Rm("signInOrSignUpBox signed up "+e),t(e)})},!1),i}(e,r,n))),i.me=a?a.uri:null},i.refresh(),s(),w.authSession.events.on("login",s),w.authSession.events.on("logout",s),i.me="99999",i.refresh(),i}function Ci(e,t,n){var a=t.noun,i=t.appPathSegment,r=(0,w.offlineTestID)(),o=e.createElement("div"),s={me:r,dom:e,div:o};function c(t,n){o.appendChild(ct(e,t,n))}function l(e){var t,n=w.solidLogicSingleton.store.any(e,v.space("uriPrefix"));"/"!==(t=n?n.value:e.uri.split("#")[0]).slice(-1)&&(Y.Rm("".concat(i,": No / at end of uriPrefix ").concat(t)),t="".concat(t,"/"));var a=new Date;return t+="".concat(i,"/id").concat(a.getTime(),"/")}return li(s).then(function(t){function i(){return i=x(y().mark(function n(a){var i,r,o,s,c,l;return y().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return i=m.appendChild(e.createElement("tr")),(r=i.appendChild(e.createElement("td"))).setAttribute("colspan","3"),r.style.padding="0.5em",l=encodeURI,n.next=1,Dt(e,w.solidLogicSingleton.store,r,v.solid("URL"),v.space("Workspace"),"Workspace");case 1:if(o=l(n.sent),s=$a(t.preferencesFile),c=[(0,h.st)(t.me,v.space("workspace"),s,t.preferencesFile),(0,h.st)(s,v.space("uriPrefix"),o,t.preferencesFile)],w.solidLogicSingleton.store.updater){n.next=2;break}throw new Error("store has no updater");case 2:return n.next=3,w.solidLogicSingleton.store.updater.update([],c);case 3:case"end":return n.stop()}},n)})),i.apply(this,arguments)}var r=t.me,s=t.preferencesFile,u=null,p=w.solidLogicSingleton.store.each(r,v.space("workspace"),void 0,s),d=w.solidLogicSingleton.store.each(r,v.space("storage"));0===p.length&&d&&(c("You don't seem to have any workspaces. You have ".concat(d.length," storage spaces."),"white"),d.map(function(e){return p=p.concat(w.solidLogicSingleton.store.each(e,v.ldp("contains")))}).filter(function(e){return e.id?["public","private"].includes(e.id().toLowerCase()):""})),1===p.length&&(c("Workspace used: ".concat(p[0].uri),"white"),u=l(p[0]));var m=e.createElement("table");m.setAttribute("style","border-collapse:separate; border-spacing: 0.5em;"),o.appendChild(m),o.appendChild(e.createElement("hr"));var f=o.appendChild(e.createElement("p"));f.setAttribute("style",_e.commentStyle),f.textContent="Where would you like to store the data for the ".concat(a,"?\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 b=o.appendChild(e.createElement("input"));b.setAttribute("type","text"),b.setAttribute("style",_e.textInputStyle),b.size=80,b.label="base URL",b.autocomplete="on",u&&(b.value=u),t.baseField=b,o.appendChild(e.createElement("br"));var g,k,C,E,A,_,j,S=o.appendChild(e.createElement("button"));S.setAttribute("style",_e.buttonStyle),S.textContent="Start new ".concat(a," at this URI"),S.addEventListener("click",function(e){var t=b.value.replace(" ","%20");"/"!==t.slice(-1)&&(t+="/"),n(null,t)}),p=p.filter(function(e){return!w.solidLogicSingleton.store.holds(e,v.rdf("type"),v.space("MasterWorkspace"))});for(var T="height: 3em; margin: 1em; padding: 1em white; border-radius: 0.3em;",L="".concat(T,"border: 0px;"),R=0;R<p.length;R++){if(A=p[R],E=e.createElement("tr"),0===R&&((g=e.createElement("td")).setAttribute("rowspan","".concat(p.length)),g.textContent="Choose a workspace for this:",g.setAttribute("style","vertical-align:middle;"),E.appendChild(g)),k=e.createElement("td"),!(_=w.solidLogicSingleton.store.anyValue(A,v.ui("style")))){var B="#".concat((16777215&function(e){return e.split("").reduce(function(e,t){return(e=(e<<5)-e+t.charCodeAt(0))&e},0)}(A.uri)|12632256).toString(16));_="color: black ; background-color: ".concat(B,";")}k.setAttribute("style",L+_),E.target=A.uri;var N=w.solidLogicSingleton.store.any(A,v.rdfs("label"));N||(N=A.uri.split("/").slice(-1)[0]||A.uri.split("/").slice(-2)[0]),k.textContent=N||"???",E.appendChild(k),0===R&&((C=e.createElement("td")).setAttribute("rowspan","".concat(p.length,"1")),C.setAttribute("style","width:50%;"),E.appendChild(C)),m.appendChild(E),j=(j=w.solidLogicSingleton.store.any(A,v.rdfs("comment")))?j.value:"Use this workspace",k.addEventListener("click",function(t){C.textContent=j?j.value:"",C.setAttribute("style",L+_);var a=e.createElement("button");a.textContent="Continue";var i=l(A);b.value=i,a.addEventListener("click",function(e){a.disabled=!0,n(A,i),a.textContent="----\x3e"},!0),C.appendChild(a)},!0)}var I=e.createElement("tr");(k=e.createElement("td")).setAttribute("style",T),k.textContent="+ Make a new workspace",k.addEventListener("click",function(e){return i.apply(this,arguments)}),I.appendChild(k),m.appendChild(I)}).catch(function(e){o.appendChild(ct(s.dom,e))}),o}function Ei(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(Ci(e,t,a))},!1),i.appendChild(r),i}function Ai(){return _i.apply(this,arguments)}function _i(){return(_i=x(y().mark(function e(){var t,n,a,i,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,li({});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",w.solidLogicSingleton.store.each(n,v.rdf("type"),null,a.doc()));case 3:return e.prev=3,r=e.catch(0),Y.R8("Unable to fetch your preferences - this was the error: ",r),e.abrupt("return",[]);case 4:case"end":return e.stop()}},e,null,[[0,3]])}))).apply(this,arguments)}function ji(e){return Si.apply(this,arguments)}function Si(){return(Si=x(y().mark(function e(t){var n;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Ai();case 1:return n=e.sent,e.abrupt("return",t.filter(function(e){return Ti(e,n)}));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Ti(e,t){return(e.audience||[]).reduce(function(e,n){return e&&!!t.find(function(e){return e.equals(n)})},!0)}w.authSession.events.on("logout",x(y().mark(function e(){var t,n,a,i;return y().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,w.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]])})));var Li=function(){return ye(function e(t){ve(this,e),on(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 It(this.groupList.controller.dom,"".concat(Re.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 It(this.groupList.controller.dom,Re.Pt.iconBase+_t["vcard:Individual"],"Add Person",function(t){e.renderSimplifiedBar(t.target),e.renderNameForm(v.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 It(this.groupList.controller.dom,Re.Pt.iconBase+_t["vcard:Group"],"Add Group",function(t){e.renderSimplifiedBar(t.target),e.renderNameForm(v.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 Dt(this.groupList.controller.dom,this.groupList.store,this.barElement,v.vcard("URI"),e,t)}},{key:"renderPublicButton",value:function(){var e=this;return It(this.groupList.controller.dom,Re.Pt.iconBase+_t["foaf:Agent"],"Add Everyone",function(){return e.addAgent(v.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 It(this.groupList.controller.dom,"".concat(Re.Pt.iconBase,"noun_99101.svg"),"Anyone logged In",function(){return e.addAgent(v.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 It(this.groupList.controller.dom,Re.Pt.iconBase+"noun_Robot_849764.svg","A Software Agent (bot)",function(t){e.renderSimplifiedBar(t.target),e.renderNameForm(v.schema("Application"),"bot").then(function(t){return e.addBot(t)}).then(function(){return e.renderCleanup()})})}},{key:"renderAppsButton",value:function(){var e=this;return It(this.groupList.controller.dom,"".concat(Re.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(v.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",_e.trustedAppController);var a=Ot(this.groupList.controller.dom,function(){return e.renderCleanup()});a.setAttribute("style",_e.trustedAppCancelButton),n.insertBefore(a,n.firstChild),this.barElement.appendChild(n)}}},{key:"renderAppsTable",value:(r=x(y().mark(function e(t){var n,a,i=this;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,pi(t);case 1:return n=this.groupList.store.each(t.me,v.acl("trustedApp")),a=n.flatMap(function(e){return i.groupList.store.each(e,v.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",_e.trustedAppAddApplicationsTable),n.forEach(function(n){var r=i.groupList.store.any(n,v.acl("origin"));r||t(new Error("Unable to pick app: ".concat(n.value)));var o=Pt(i.groupList.controller.dom,v.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(Q(i.groupList.controller.subject),"?"),c.appendChild(i.groupList.controller.dom.createElement("td")).appendChild(Ft(i.groupList.controller.dom,function(){return e(r.value)})),a.appendChild(s)})}));case 2:case"end":return e.stop()}},e,this)})),function(e){return r.apply(this,arguments)})},{key:"renderCleanup",value:function(){this.renderBar(),this.groupList.render()}},{key:"addPerson",value:(i=x(y().mark(function e(t){var n;return y().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 Y.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 i.apply(this,arguments)})},{key:"addGroup",value:(a=x(y().mark(function e(t){var n;return y().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 Y.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 a.apply(this,arguments)})},{key:"addAgent",value:(n=x(y().mark(function e(t){return y().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=x(y().mark(function e(t){var n;return y().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 Y.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=x(y().mark(function e(t){var n,a;return y().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,Y.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,a,i,r}(),Ri=v.acl,Bi={13:"Owners",9:"Owners (write locked)",5:"Editors",3:"Posters",2:"Submitters",1:"Viewers"},Ni={13:!0,5:!0,3:!0,2:!0,1:!0},Ii={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"},Oi=function(){return ye(function e(t,n,a,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};ve(this,e),this.doc=t,this.aclDoc=n,this.controller=a,this._options=r,this.defaults=this._options.defaults||!1,this._store=i,this.aclMap=te(t,n,i,this.defaults),this.byCombo=re(this.aclMap),this.addAgentButton=new Li(this),this.rootElement=this.controller.dom.createElement("div"),this.rootElement.setAttribute("style",_e.accessGroupList)},[{key:"store",get:function(){return this._store},set:function(e){this._store=e,this.aclMap=te(this.doc,this.aclDoc,e,this.defaults),this.byCombo=re(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=Fi(t);(this.controller.isEditable&&Ni[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",_e.accessGroupListItem),je(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",_e.group),this.controller.isEditable)switch(e){case 1:a.setAttribute("style",_e.group1);break;case 2:a.setAttribute("style",_e.group2);break;case 3:a.setAttribute("style",_e.group3);break;case 5:a.setAttribute("style",_e.group5);break;case 9:a.setAttribute("style",_e.group9);break;case 13:a.setAttribute("style",_e.group13);break;default:a.setAttribute("style",_e.group)}a.innerText=Bi[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 i=this.controller.dom.createElement("div");if(i.setAttribute("style",_e.group),this.controller.isEditable)switch(e){case 1:i.setAttribute("style",_e.group1);break;case 2:i.setAttribute("style",_e.group2);break;case 3:i.setAttribute("style",_e.group3);break;case 5:i.setAttribute("style",_e.group5);break;case 9:i.setAttribute("style",_e.group9);break;case 13:i.setAttribute("style",_e.group13);break;default:i.setAttribute("style",_e.group)}var r=i.appendChild(this.controller.dom.createElement("table"));(this.byCombo[t]||[]).map(function(e){var a=Ce(e,2),i=a[0],o=a[1];return n.renderAgent(r,t,i,o)}).forEach(function(e){return r.appendChild(e)});var o=this.controller.dom.createElement("div");if(o.setAttribute("style",_e.group),this.controller.isEditable)switch(e){case 1:o.setAttribute("style",_e.group1);break;case 2:o.setAttribute("style",_e.group2);break;case 3:o.setAttribute("style",_e.group3);break;case 5:o.setAttribute("style",_e.group5);break;case 9:o.setAttribute("style",_e.group9);break;case 13:o.setAttribute("style",_e.group13);break;default:o.setAttribute("style",_e.group)}return o.innerText=Ii[e]||"Unusual combination",[a,i,o]}},{key:"renderAgent",value:function(e,t,n,a){var i=this,r=Pt(this.controller.dom,Ri(n),(0,h.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:(a=x(y().mark(function e(t,n,a){var i,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=this.byCombo[t]||[],(r=i.find(function(e){var t=Ce(e,2),i=t[0],r=t[1];return i===n&&r===a}))&&i.splice(i.indexOf(r),1),e.next=1,this.controller.save();case 1:case"end":return e.stop()}},e,this)})),function(e,t,n){return a.apply(this,arguments)})},{key:"addNewURI",value:(n=x(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,this.handleDroppedUri(t,Fi(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=x(y().mark(function e(t,n){var a,i=this;return y().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=x(y().mark(function e(t,n){var a,i,r,o,s,c,l,u=arguments;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a=u.length>2&&void 0!==u[2]&&u[2],i=Di(t,this.store),r=(0,h.sym)(t),i||a){e.next=5;break}return Y.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,l=e.catch(1),s="Ignore error looking up dropped thing: ".concat(l),Y.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 c=" Error: Drop fails to drop appropriate thing! ".concat(t),Y.z3(c),e.abrupt("return",Promise.reject(new Error(c)));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]),Y.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[Fi(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,a}();function Fi(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 Di(e,t){var n=(0,h.sym)(e),a=t.findTypeURIs(n);for(var i in a)Y.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 Y.Rm("Assuming final slash on dragged origin URI was unintended!"),{pred:"origin",obj:(0,h.sym)(e.slice(0,-1))};if(v.vcard("WebID").uri in a)return{pred:"agent",obj:n};if(v.vcard("Group").uri in a)return{pred:"agentGroup",obj:n};if(n.sameTerm(v.foaf("Agent"))||n.sameTerm(v.acl("AuthenticatedAgent"))||n.sameTerm(v.rdf("Resource"))||n.sameTerm(v.owl("Thing")))return{pred:"agentClass",obj:n};if(v.vcard("Individual").uri in a||v.foaf("Person").uri in a||v.foaf("Agent").uri in a){var r=t.any(n,v.foaf("preferredURI"));return r?{pred:"agent",obj:(0,h.sym)(r)}:{pred:"agent",obj:n}}return v.solid("AppProvider").uri in a?{pred:"origin",obj:n}:v.solid("AppProviderClass").uri in a?{pred:"originClass",obj:n}:(Y.Rm(" Triage fails for "+e),null)}var Pi=function(){return ye(function e(t,n,a,i,r,o,s,c,l,u,p,d){if(ve(this,e),this.subject=t,this.noun=n,this.context=a,this.statusElement=i,this.targetIsProtected=r,this.targetDoc=o,this.targetACLDoc=s,this.defaultHolder=c,this.defaultACLDoc=l,this.prospectiveDefaultHolder=u,this.store=p,this.dom=d,this.rootElement=d.createElement("div"),this.rootElement.setAttribute("style",_e.aclGroupContent),this.isContainer="/"===o.uri.slice(-1),c&&l){this.isUsingDefaults=!0;var m=ee(this.targetDoc,s,c,l);this.mainCombo=new Oi(o,s,this,m,{defaults:this.isContainer}),this.defaultsCombo=null,this.defaultsDiffer=!1}else this.isUsingDefaults=!1,this.mainCombo=new Oi(o,s,this,p),this.defaultsCombo=new Oi(o,s,this,p,{defaults:this.isContainer}),this.defaultsDiffer=!ne(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=Hi(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(Q(this.prospectiveDefaultHolder)):""),t.setAttribute("style",_e.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",_e.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",_e.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",_e.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",_e.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",_e.defaultsController);var n=t.appendChild(this.dom.createElement("div"));n.innerText="Access to things within this folder:",n.setAttribute("style",_e.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",_e.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",_e.aclControlBoxStatusRevealed),this.statusElement.innerText=e,this.statusElement.setAttribute("style",_e.temporaryStatusInit),setTimeout(function(){t.statusElement.setAttribute("style",_e.temporaryStatusEnd)}),setTimeout(function(){t.statusElement.innerText=""},5e3)}},{key:"renderStatus",value:function(e){e||this.statusElement.setAttribute("style",_e.aclControlBoxStatusRevealed),this.statusElement.innerText=e}},{key:"addAcls",value:(a=x(y().mark(function e(){var t,n,a,i=this;return y().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",Y.z3(t),e.abrupt("return",Promise.reject(t));case 1:return ee(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),Y.z3(n),e.abrupt("return",Promise.reject(n));case 5:case"end":return e.stop()}},e,this,[[2,4]])})),function(){return a.apply(this,arguments)})},{key:"addDefaults",value:(n=x(y().mark(function e(){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.defaultsCombo=new Oi(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=x(y().mark(function e(){var t,n,a;return y().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,fe(this.targetDoc.uri);case 3:this.prospectiveDefaultHolder=e.sent,e.next=5;break;case 4:e.prev=4,n=e.catch(2),Y.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),Y.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=x(y().mark(function e(){var t,n;return y().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,Y.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,h.graph)();this.isContainer?this.defaultsCombo&&this.defaultsDiffer?(se(t,this.targetDoc,this.mainCombo.byCombo,this.targetACLDoc,!0),se(t,this.targetDoc,this.defaultsCombo.byCombo,this.targetACLDoc,!1,!0)):se(t,this.targetDoc,this.mainCombo.byCombo,this.targetACLDoc,!0,!0):se(t,this.targetDoc,this.mainCombo.byCombo,this.targetACLDoc,!0),t.fetcher=(0,h.fetcher)(t,{fetch:this.store.fetcher._fetch});var n=t.updater||new h.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&&!ne(e.mainCombo.aclMap,e.defaultsCombo.aclMap),Y.Rm("ACL modification: success!"),a()})})}}]);var e,t,n,a}(),Ui=window,Mi=Symbol("prevent double triggering of drop event");function zi(e){e.stopPropagation(),e.preventDefault()}function qi(e){e.dataTransfer.files.length>0&&(Ui.confirm("Are you sure you want to drop this file here? (Cancel opens it in a new tab)")||(e.stopPropagation(),e.preventDefault(),(0,Y.Rm)("@@@@ document-level DROP suppressed: "+e.dataTransfer.dropEffect)))}function Hi(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 Vi(){return Vi=x(y().mark(function e(t,n,a,i,r,o,s){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e,c){return de(t,function(){var t=x(y().mark(function t(l,u,p,d,m,f){var h,v,b,x,g;return y().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(x=function(e){return new Pi(a,i,r,s,v,p,d,m,f,e,n,o)},l){t.next=1;break}return t.abrupt("return",c(new Error("Error reading ".concat(u?"":" default ","ACL. status ").concat(p,": ").concat(d))));case 1:if(h=Gi(p),(v=Wi(p,d,n)||Ji(p))||!h){t.next=5;break}return t.prev=2,t.next=3,fe(h);case 3:return b=t.sent,t.abrupt("return",e(x(b)));case 4:t.prev=4,g=t.catch(2),(0,Y.R8)(g);case 5:return t.abrupt("return",e(x()));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)})),Vi.apply(this,arguments)}function Gi(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 Wi(e,t,n){return n.holds(e,v.rdf("type"),v.space("Storage"),t)}function Ji(e){return e.uri===e.site().uri}var $i={adoptACLDefault:ee,readACL:te,sameACL:ne,ACLunion:ae,loadUnionACL:ie,ACLbyCombination:re,makeACLGraph:oe,makeACLGraphbyCombo:se,ACLToString:function(e){return ce(re(e))},comboToString:ce,makeACLString:function(e,t,n){var a=(0,h.graph)();return oe(a,e,t,n),(0,h.serialize)(n,a,n.uri,"text/turtle")||""},putACLObject:le,putACLbyCombo:ue,fixIndividualCardACL:function(e,t,n){var a=X.each(void 0,v.vcard("hasMember"),e);a?pe(e,a,t,n):(t("This card is in no groups"),n(!0))},fixIndividualACL:pe,setACL:function(e,t,n){var a=X.any(e,w.ACL_LINK);if(!X.fetcher)throw new Error("Store has no fetcher");a?X.fetcher.webOperation("PUT",a.value,{data:t,contentType:"text/turtle"}).then(function(e){n(e.ok,e.error||"")}):X.fetcher.nowOrWhenFetched(e,void 0,function(a,i){if(!a)return n(a,"Gettting headers for ACL: "+i);var r=X.any(e,w.ACL_LINK);if(r){if(!X.fetcher)throw new Error("Store has no fetcher");X.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)})},getACLorDefault:de,getACL:me},Ki={preventBrowserDropEvents:function(e){if((0,Y.Rm)("preventBrowserDropEvents called."),void 0!==Ui){if(Ui[Mi])return;Ui[Mi]=!0}e.addEventListener("drop",qi,!1),e.addEventListener("dragenter",zi,!1),e.addEventListener("dragover",zi,!1)},shortNameForFolder:Hi,ACLControlBox5:function(e,t,n,a){var i=t.dom,r=e.doc(),o=i.createElement("div");o.setAttribute("style",_e.aclControlBoxContainer);var s=o.appendChild(i.createElement("h1"));s.textContent="Sharing for ".concat(n," ").concat(Q(e)),s.setAttribute("style",_e.aclControlBoxHeader);var c=o.appendChild(i.createElement("div"));c.setAttribute("style",_e.aclControlBoxStatus);try{(function(e,t,n,a,i,r,o){return Vi.apply(this,arguments)})(r,a,e,n,t,i,c).then(function(e){return o.appendChild(e.render())})}catch(e){c.innerText=e}return o}},Qi=w.solidLogicSingleton.store;var Zi={newThingUI:function(e,t,n){var a=e.dom,i=e.div;if(e.me&&!e.me.uri)throw new Error("newThingUI: Invalid userid: "+e.me);var r="padding: 0.7em; width: 2em; height: 2em;",o=i.appendChild(a.createElement("img")),s=!1;o.setAttribute("src",Re.Pt.iconBase+"noun_34653_green.svg"),o.setAttribute("style",r),o.setAttribute("title","Add another tool");var c=function(e){var t=i.appendChild(a.createElement("pre"));t.setAttribute("style","background-color: pink"),t.appendChild(a.createTextNode(e))};function l(e){for(var t=0;t<p.length;t++){var n=r+e;p[t].disabled&&(n+="opacity: 0.3;"),p[t].setAttribute("style",n)}}function u(e){s=!s,o.setAttribute("style",r+(s?"background-color: yellow;":"")),l(s?"":"display: none;")}o.addEventListener("click",u);var p=[],d=Object.values(n).filter(function(e){return e.mintNew}),m=d.reduce(function(e,t){return t.mintClass&&(e[t.mintClass.uri]=(e[t.mintClass.uri]||0)+1),e},{});d.forEach(function(n){var i=e.div.appendChild(a.createElement("img"));i.setAttribute("src",n.icon);var o=n.mintClass?m[n.mintClass.uri]>1?"".concat(Q(n.mintClass)," (using ").concat(n.name," pane)"):Q(n.mintClass):n.name+" @@";i.setAttribute("title","Make new "+o),i.setAttribute("style",r+"display: none;"),p.push(i),i.disabled||i.addEventListener("click",function(s){var p;!function(e){l("display: none;"),e.setAttribute("style",r+"background-color: yellow;")}(i),p={event:s,folder:e.folder||null,iconEle:i,pane:n,noun:o,noIndexHTML:!0,div:e.div,me:e.me,dom:e.dom,refreshTarget:e.refreshTarget},new Promise(function(n,i){var r;function o(n,r){pi(e).then(function(e){var o=Object.assign({newBase:r,folder:p.folder||void 0,workspace:n},p);for(var s in p)o[s]=p[s];Y.Rm("newThingUI: Minting new ".concat(o.pane.name," at ").concat(o.newBase)),p.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("/");Y.Rm(" new thing is packge? "+t),t?Qi.add(e.folder,v.ldp("contains"),Qi.sym(e.newBase),e.folder.doc()):Qi.add(e.folder,v.ldp("contains"),e.newInstance,e.folder.doc()),e.refreshTarget&&e.refreshTarget.refresh&&e.refreshTarget.refresh()}else{var n=p.div.appendChild(a.createElement("p"));n.setAttribute("style","font-size: 120%;"),n.innerHTML="Your <a target='_blank' href='"+e.newInstance.uri+"'><b>new "+p.noun+"</b></a> is ready to be set up. <br/><br/><a target='_blank' href='"+e.newInstance.uri+"'>Go to your new "+p.noun+".</a>"}u()}).catch(function(e){c(e),i(e)})},function(e){c("Error logging on: "+e)})}var s=p.pane;p.noun=s.mintClass?Q(s.mintClass):s.name,p.appPathSegment=p.noun.slice(0,1).toUpperCase()+p.noun.slice(1),p.folder?Dt(a,0,p.div,v.foaf("name"),null,p.noun).then(function(e){if(e){var t=p.folder.uri;t.endsWith("/")||(t+="/"),o(null,t=t+encodeURIComponent(e)+"/")}else u()}):(r=Ci(a,{noun:p.noun,appPathSegment:p.appPathSegment},o),p.div.appendChild(r))})})})}},Yi=w.solidLogicSingleton.store;var Xi={matrixForQuery:function(e,t,n,a,i,r,o){var s=e.createElement("table"),c=e.createElement("tr");c.appendChild(e.createElement("td")).setAttribute("class","MatrixCorner"),s.appendChild(c),s.lastHeader=c;var l=[],u=[],p=function(e,t,n,a){for(;e.firstChild;)e.removeChild(e.firstChild);e.setAttribute("style",""),e.style.textAlign="center",r.cellFunction?r.cellFunction(e,t,n,a):(e.textContent=Q(a),e.setAttribute("style","padding: 0.3em")),delete e.old},d=function(t){var n=t.toNT();if(u[n])return u[n];var a=e.createElement("tr"),i=a.appendChild(e.createElement("td"));i.setAttribute("style","padding: 0.3em;"),i.textContent=Q(t),"NamedNode"===t.termType&&Yi.fetcher.nowOrWhenFetched(t.uri.split("#")[0],void 0,function(e,n,a){e&&(i.textContent=Q(t))});for(var o=0;o<l.length;o++)p(a.appendChild(e.createElement("td")),h.fromNT(l[o]),t,null);a.dataValueNT=n,u[n]=a;for(var c=s.lastHeader.nextSibling;c;c=c.nextSibling)if(n>c.dataValueNT&&r&&r.yDecreasing||n<c.dataValueNT&&(!r||!r.yDecreasing))return s.insertBefore(a,c);return s.appendChild(a)},m=function(t){for(var n=t.toNT(),a=null,i=0;i<l.length;i++){if(l[i]===n)return i;if(n>l[i]&&r.xDecreasing||n<l[i]&&!r.xDecreasing){l=l.slice(0,i).concat([n]).concat(l.slice(i)),a=i;break}}null===a&&(a=l.length,l.push(n));for(var o=s.firstChild;o;o=o.nextSibling){var c=o.dataValueNT,u=e.createElement("td");if(u.style.textAlign="center",o===s.firstChild?u.textContent=Q(t):p(u,t,h.fromNT(c),null),a===l.length-1)o.appendChild(u);else{for(var d=o.firstChild,m=0;m<a+1;m++)d=d.nextSibling;o.insertBefore(u,d)}}return a},f=function(){var e,t,n=[],a=[];if(r.set_y)for(var i=0;i<r.set_y.length;i++)a[r.set_y[i]]=!0;if(r.set_x)for(var o=0;o<r.set_x.length;o++)n[m(r.set_x[o])+1]=!0;for(var c=1;c<s.children.length;c++){e=s.children[c];for(var d=1;d<e.children.length;d++)if((t=e.children[d]).old){var f=h.fromNT(e.dataValueNT),v=h.fromNT(l[d-1]);p(t,v,f,null)}else a[e.dataValueNT]=!0,n[d]=!0}for(var b=0;b<s.children.length;b++)if(e=s.children[b],b>0&&!a[e.dataValueNT])delete u[e.dataValueNT],s.removeChild(e);else for(var x=e.children.length-1;x>0;x--){var g=e.children[x];n[x]||e.removeChild(g)}for(var y=[],w=0;w<l.length;w++)n[w+1]&&y.push(l[w]);l=y};s.refresh=function(){!function(){for(var e=1;e<s.children.length;e++)for(var t=s.children[e],n=1;n<t.children.length;n++)t.children[n].old=!0}(),Yi.query(t,v,void 0,f)};var v=function(e){var t=e[n.toString()],r=e[a.toString()],o=e[i.toString()],s=d(r),c=m(t),l=s.children[c+1];p(l,t,r,o)};if(r.set_y)for(var b=0;b<r.set_y.length;b++)d(r.set_y[b]);if(r.set_x)for(var x=0;x<r.set_x.length;x++)m(r.set_x[x]);return Yi.query(t,v,void 0,o),s}},er=Re.Pt.iconBase+"noun_Camera_1618446_000000.svg",tr=Re.Pt.iconBase+"noun_479395.svg";function nr(e,t,n,a){var i,r,o,s,c=e.createElement("div"),l=c.appendChild(e.createElement("table")),u=l.appendChild(e.createElement("tr")).appendChild(e.createElement("td"));u.setAttribute("colspan","4");var p=l.appendChild(e.createElement("tr"));p.appendChild(e.createElement("td")).appendChild(Ot(e)).addEventListener("click",function(e){b(),a(null)});var d=p.appendChild(e.createElement("td")).appendChild(It(e,tr,"Retake"));d.addEventListener("click",function(e){u.removeChild(s),h()}),d.style.visibility="collapse";var m=p.appendChild(e.createElement("td")).appendChild(It(e,Re.Pt.iconBase+"noun_10636.svg","Snap"));m.addEventListener("click",function(){(s=e.createElement("canvas")).setAttribute("width",_e.canvasWidth),s.setAttribute("height",_e.canvasHeight),s.setAttribute("style",_e.controlStyle),u.appendChild(s),s.getContext("2d").drawImage(o,0,0,s.width,s.height),o.parentNode.removeChild(o),s.toBlob(function(e){var t="got blob type ".concat(e.type," size ").concat(e.size);Y.Rm(t),i=n(),r=e,f.style.visibility="visible",d.style.visibility="visible",m.style.visibility="collapse"},"image/png")}),m.style.visibility="collapse";var f=p.appendChild(e.createElement("td")).appendChild(Ft(e));function h(){if((o=u.appendChild(e.createElement("video"))).setAttribute("controls","1"),o.setAttribute("autoplay","1"),o.setAttribute("style",_e.controlStyle),!navigator.mediaDevices)throw new Error("navigator.mediaDevices not available");navigator.mediaDevices.getUserMedia(v).then(function(e){o.srcObject=e,m.style.visibility="visible",f.style.visibility="collapse",d.style.visibility="collapse"})}f.addEventListener("click",function(e){!function(e,n){var i=e.type;Y.Rm("Putting "+e.size+" bytes of "+i+" to "+n),t.fetcher.webOperation("PUT",n.uri,{data:e,contentType:i}).then(function(e){Y.Rm("ok saved "+n),b(),a(n)},function(e){b(),alert(e)})}(r,i)}),f.style.visibility="collapse";var v={video:!0};function b(){o&&o.srcObject&&o.srcObject.getVideoTracks().forEach(function(e){return e.stop()})}return h(),c}var ar={cameraCaptureControl:nr,cameraButton:function(e,t,n,a){var i,r=e.createElement("div"),o=It(e,er,"Take picture");function s(e){return c.apply(this,arguments)}function c(){return(c=x(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r.removeChild(i),r.appendChild(o),a(t);case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}return r.appendChild(o),o.addEventListener("click",function(a){r.removeChild(o),i=nr(e,t,n,s),r.appendChild(i)}),r}};var ir=i(580),rr=i.n(ir);const or={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let sr;const cr=new Uint8Array(16);const lr=[];for(let e=0;e<256;++e)lr.push((e+256).toString(16).slice(1));function ur(e,t=0){return(lr[e[t+0]]+lr[e[t+1]]+lr[e[t+2]]+lr[e[t+3]]+"-"+lr[e[t+4]]+lr[e[t+5]]+"-"+lr[e[t+6]]+lr[e[t+7]]+"-"+lr[e[t+8]]+lr[e[t+9]]+"-"+lr[e[t+10]]+lr[e[t+11]]+lr[e[t+12]]+lr[e[t+13]]+lr[e[t+14]]+lr[e[t+15]]).toLowerCase()}const pr=function(e,t,n){if(or.randomUUID&&!t&&!e)return or.randomUUID();const a=(e=e||{}).random??e.rng?.()??function(){if(!sr){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");sr=crypto.getRandomValues.bind(crypto)}return sr(cr)}();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 ur(a)};var dr,mr=w.solidLogicSingleton.store,fr=function(){return ye(function e(t,n,a,i){ve(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 vr(n,this.selectedgroup).render();var a=document.createElement("button");a.textContent=rr()("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=rr()("Pick an existing group"),i.style.margin="auto",i.addEventListener("click",function(n){new hr(t,a,e.onSelectGroup).render()});var r=document.createElement("button");r.textContent=rr()("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 br(e.element,a,n,e.onSelectGroup).render()}).catch(function(t){e.element.appendChild(ct(document,rr()("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(ct(document,rr()("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){mr.fetcher.nowOrWhenFetched(e,function(a,i){if(!a)return n(i);var r=mr.any(null,v.solid("forClass"),v.vcard("AddressBook"));if(!r)return n(new Error("no address book registered in the solid type index "+e));var o=mr.any(r,v.solid("instance"));if(!o)return n(new Error("incomplete address book registration"));mr.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=wr(e),a=n.groupIndex,i=n.groupContainer,r=h.sym("".concat(i.uri).concat(pr().slice(0,8),".ttl#this")),o=t||"Untitled Group",s=[r.doc(),a].map(function(t){var n=h.st(r,v.rdf("type"),v.vcard("Group"),t),i=h.st(r,v.vcard("fn"),o,r.doc(),t),s=h.st(e,v.vcard("includesGroup"),r,t),c=t.equals(a)?[n,i,s]:[n,i];return yr(t.uri,{toIns:c}).then(function(){c.forEach(function(e){mr.add(e)})})});return Promise.all(s).then(function(){return{group:r}}).catch(function(e){throw Y.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()}}])}(),hr=function(){return ye(function e(t,n,a){ve(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 vr(a,t).render(),n.appendChild(a)}),e.element.innerHTML="",e.element.appendChild(n)}).catch(function(t){e.element.appendChild(ct(document,rr()("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=wr(e.book).groupIndex;mr.fetcher.nowOrWhenFetched(a,function(a,i){if(!a)return n(i);var r=mr.each(e.book,v.vcard("includesGroup"));return t(r)})})}},{key:"handleClickGroup",value:function(e){var t=this;return function(n){t.onSelectGroup(e)}}}])}(),vr=function(){return ye(function e(t,n){ve(this,e),this.element=t,this.group=n},[{key:"render",value:function(){var e=document.createElement("div");return e.textContent=rr()(gr(this.group,v.vcard("fn"),"[".concat(this.group.value,"]"))),this.element.innerHTML="",this.element.appendChild(e),this}}])}(),br=function(){return ye(function e(t,n,a,i,r){ve(this,e),this.element=t,this.book=n,this.group=a,this.onGroupChanged=function(e,t,n){r&&r(e,t,n)},this.groupChangedCb=r,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",je(t,function(t){t.forEach(function(t){e.add(t).catch(function(t){e.element.appendChild(ct(document,rr()("Could not add the given WebId. (".concat(t,")"))))})})});var n=document.createElement("input");n.type="text",n.value=gr(this.group,v.vcard("fn"),"Untitled Group"),n.addEventListener("change",function(t){e.setGroupName(t.target.value).catch(function(t){e.element.appendChild(ct(document,"Error changing group name. (".concat(t,")")))})});var a,i,r=document.createElement("label");if(r.textContent=rr()("Group Name:"),r.appendChild(n),t.appendChild(r),mr.any(this.group,v.vcard("hasMember")))mr.match(this.group,v.vcard("hasMember")).forEach(function(n){var a=n.object,i=document.createElement("div");new xr(i,a,e.handleRemove(a)).render(),t.appendChild(i)});else{var o=document.createElement("p");o.textContent=rr()(dr||(a=["\n To add someone to this group, drag and drop their WebID URL onto the box.\n "],i||(i=a.slice(0)),dr=Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(i)}})))),t.appendChild(o)}var s=document.createElement("button");return s.textContent=rr()("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){mr.fetcher.nowOrWhenFetched(e,function(i,r){if(!i)return t.onGroupChanged(r),a(r);var o=h.namedNode(e),s=mr.any(o,v.rdf("type"));return s&&s.equals(v.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=h.st(t.group,v.vcard("hasMember"),e);return mr.holdsStatement(n)?e:yr(t.group.doc().uri,{toIns:[n]}).then(function(){n.why=t.group.doc(),mr.add(n),t.onGroupChanged(null,"added",e),t.render()})})}},{key:"handleRemove",value:function(e){var t=this;return function(n){var a=h.st(t.group,v.vcard("hasMember"),e);return yr(t.group.doc().uri,{toDel:[a]}).then(function(){return mr.remove(a),t.onGroupChanged(null,"removed",e),t.render(),!0}).catch(function(t){var n=mr.any(e,v.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=wr(this.book).groupIndex,a=[this.group.doc(),n].map(function(n){var a=mr.match(t.group,v.vcard("fn"),null,n),i=h.st(t.group,v.vcard("fn"),h.literal(e));return yr(n.value,{toDel:a,toIns:[i]}).then(function(e){mr.removeStatements(a),i.why=n,mr.add(i)})});return Promise.all(a)}}])}(),xr=function(){return ye(function e(t,n,a){ve(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=gr(this.webIdNode,v.foaf("img"),Re.LN+"noun_15059.svg"),a=document.createElement("img");a.src=rr()(n),a.width="50",a.height="50",a.style.margin="5px";var i=gr(this.webIdNode,v.foaf("name"),"[".concat(this.webIdNode,"]")),r=document.createElement("span");r.innerHTML=rr()(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(ct(document,rr()("".concat(t))))})}),o.style.margin="5px",t.appendChild(a),t.appendChild(r),t.appendChild(o),this.element.innerHTML="",this.element.appendChild(t),this}}])}();function gr(e,t,n){var a=mr.any(e,t);return a?a.value:n}function yr(e,t){var n=t.toDel,a=t.toIns;return new Promise(function(e,t){mr.updater.update(n,a,function(n,a,i){if(!a)return t(new Error("PATCH failed for resource <".concat(n,">: ").concat(i)));e()})})}function wr(e){return{groupIndex:mr.any(e,v.vcard("groupIndex")),groupContainer:mr.sym(e.dir().uri+"Group/")}}var kr={icons:Re.Pt,ns:v,rdf:h,style:_e,widgets:s};function Cr(e,t,n,a,i){t=t||w.solidLogicSingleton.store,a=a.doc();var r,o,s=kr.ns,c=h.Namespace("http://www.w3.org/2005/01/wf/flow#"),l=h.Namespace("http://purl.org/dc/terms/"),u=!!(i=i||{}).newestFirst,p="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;",d=e.createElement("div"),m=w.solidLogicSingleton.store.updater,f=function(t,n){var a=e.createElement("a");return n&&n.uri&&(a.setAttribute("href",n.uri),a.addEventListener("click",kr.widgets.openHrefInOutlineMode,!0),a.setAttribute("style","color: #3B5998; text-decoration: none; ")),a.textContent=t,a},v=function(t,n){var a=e.createElement("pre");return a.setAttribute("style",n||"color: grey"),d.appendChild(a),a.appendChild(e.createTextNode(t)),a},b=function(e){v(e,"color: #800;")};function x(e){var t=w.solidLogicSingleton.store.any(e,kr.ns.foaf("nick"));return t?""+t.value:""+Q(e)}function g(t,n,a,i){var r=t.appendChild(f(x(n),n));n.uri&&w.solidLogicSingleton.store.fetcher.nowOrWhenFetched(n.doc(),void 0,function(e,t){r.textContent=x(n)}),t.appendChild(e.createElement("br")),t.appendChild(f(a,i))}function y(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,s.wf("message")),c={};for(o.forEach(function(e){c[e.uri]=!0,r[e.uri]||k(e)}),a=n.firstChild;a;)i=a.nextSibling,a.AJAR_subject&&!c[a.AJAR_subject.uri]&&n.removeChild(a),a=i}var k=function(e){var n={"?msg":e,"?creator":t.any(e,s.foaf("maker")),"?date":t.any(e,l("created")),"?content":t.any(e,s.sioc("content"))};C(n,!0)},C=function(a,i){var o=a["?creator"],s=a["?msg"],c=a["?date"],l=a["?content"],d=c.value,f=e.createElement("tr");f.AJAR_date=d,f.AJAR_subject=s;for(var h=!1,v=r.firstChild;v;v=v.nextSibling)if(d>v.AJAR_date&&u||d<v.AJAR_date&&!u){r.insertBefore(f,v),h=!0;break}h||r.appendChild(f);var x=e.createElement("td");f.appendChild(x),g(x,o,kr.widgets.shortDate(d),s);var w=e.createElement("td");f.appendChild(w);var k=e.createElement("p");k.setAttribute("style",p+(i?"background-color: #e8ffe8;":"background-color: #white;")),w.appendChild(k),k.textContent=l.value;var C=e.createElement("td");f.appendChild(C);var E=e.createElement("button");C.appendChild(E),E.textContent="-",f.setAttribute("class","hoverControl"),E.setAttribute("class","hoverControlHide"),E.setAttribute("style","color: red;"),E.addEventListener("click",function(a){C.removeChild(E);var i=e.createElement("button");i.textContent="cancel",C.appendChild(i).addEventListener("click",function(e){C.removeChild(o),C.removeChild(i),C.appendChild(E)},!1);var o=e.createElement("button");o.textContent="Delete message",C.appendChild(o).addEventListener("click",function(e){C.removeChild(o),C.removeChild(i),function(e){var a=t.statementsMatching(e).concat(t.statementsMatching(void 0,void 0,e));m.update(a,[],function(e,t,a){t?y(n,r):b("Cant delete messages:"+a)})}(s)},!1)},!1)};(r=e.createElement("table")).fresh=!1,d.appendChild(r),r.setAttribute("style","width: 100%;");var E,A=function(){var i=e.createElement("tr"),r=e.createElement("td"),c=e.createElement("td"),u=e.createElement("td");i.appendChild(r),i.appendChild(c),i.appendChild(u),i.AJAR_date="9999-01-01T00:00:00Z";var d,f,v=function(){d.setAttribute("class","pendingedit"),d.disabled=!0;var r=[],c=new Date,u=""+c.getTime(),p=h.term(c),f=t.sym(a.uri+"#Msg"+u);r.push(new h.Statement(n,s.wf("message"),f,a)),r.push(new h.Statement(f,s.sioc("content"),t.literal(d.value),a)),r.push(new h.Statement(f,l("created"),p,a)),o&&r.push(new h.Statement(f,s.foaf("maker"),o,a));m.update([],r,function(n,a,r){if(a){var s={"?msg":f,"?content":t.literal(d.value),"?date":p,"?creator":o};C(s,!1),d.value="",d.setAttribute("class",""),d.disabled=!1}else i.appendChild(kr.widgets.errorMessageBlock(e,"Error writing message: "+r))})};i.appendChild(e.createElement("br"));return ci({div:c,dom:e}).then(function(t){o=t.me,g(r,o,"",null),d=e.createElement("textarea"),c.innerHTML="",c.appendChild(d),d.rows=3,d.setAttribute("style",p+"background-color: #eef;"),d.addEventListener("keyup",function(e){13===e.keyCode&&(e.altKey||v())},!1),u.innerHTML="",(f=kr.widgets.button(e,kr.icons.iconBase+"noun_383448.svg","Send")).setAttribute("style",kr.style.buttonStyle+"float: right;"),f.addEventListener("click",v,!1),u.appendChild(f)}),i}();if(u?r.insertBefore(A,r.firstChild):r.appendChild(A),i.query)E=i.query;else{E=new h.Query("Messages");var _={};["msg","date","creator","content"].forEach(function(e){E.vars.push(_[e]=h.variable(e))}),E.pat.add(n,c("message"),_.msg),E.pat.add(_.msg,s.dct("created"),_.date),E.pat.add(_.msg,s.foaf("maker"),_.creator),E.pat.add(_.msg,s.sioc("content"),_.content)}return t.query(E,C,void 0,function(){r.fresh=!0}),d.refresh=function(){y(n,r)},d}function Er(e){return Ar.apply(this,arguments)}function Ar(){return(Ar=x(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,w.store.fetcher.load(t);case 1:return e.abrupt("return",!(w.store.statementsMatching(null,v.dct("created"),null,t).length>0));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}var _r=function(){return ye(function e(t,n,a){ve(this,e),this.root=t,this.rootFolder=t.dir(),this.leafFileName=n||"index.ttl",this.membershipProperty=a||v.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,w.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=x(y().mark(function e(t,n){var a,i,r,o,s,c;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:i=function(){return(i=x(y().mark(function e(t,i){var r,o,s,c,l,u,p,d,m,f;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s=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)},c=t.dir(),e.prev=1,e.next=2,w.store.fetcher.load(c);case 2:if(l=(l=w.store.each(c,v.ldp("contains"))).filter(r),!(u=s(l))){e.next=3;break}return e.abrupt("return",u);case 3:e.next=6;break;case 4:if(e.prev=4,!(f=e.catch(1)).response||!f.response.status||404!==f.response.status){e.next=5;break}Y.Rm("Error 404 for chat parent file "+c),e.next=6;break;case 5:throw Y.Rm("*** Error NON 404 for chat parent file "+c),new Error("*** ".concat(f.message," for chat folder ").concat(c));case 6:if(0!==i){e.next=7;break}return e.abrupt("return",null);case 7:return e.next=8,a(c,i-1);case 8:if(p=e.sent){e.next=9;break}return e.abrupt("return",null);case 9:return e.next=10,w.store.fetcher.load(p);case 10:return d=w.store.each(p,v.ldp("contains")),m=s(d),e.abrupt("return",m);case 11:case"end":return e.stop()}},e,null,[[1,4]])}))).apply(this,arguments)},a=function(e,t){return i.apply(this,arguments)},r=this.leafDocumentFromDate(t).dir();case 1:return e.next=2,a(r,3);case 2:if(!(o=e.sent)){e.next=6;break}return s=w.store.sym(o.uri+this.leafFileName),c=this.dateFromLeafDocument(s),e.next=3,Er(s);case 3:if(e.sent){e.next=4;break}return e.abrupt("return",c);case 4:t=c,r=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=x(y().mark(function e(t){var n,a,i,r,o,s,c,l,u,p,d;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=function(){return(r=x(y().mark(function e(i){var r,o;return y().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,v.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 r.apply(this,arguments)},n=h.graph(),a=new h.Fetcher(n),e.next=1,i(this.root.dir());case 1:return o=e.sent,e.next=2,i(o);case 2:return s=e.sent,e.next=3,i(s);case 3:return c=e.sent,l=h.sym(c.uri+"chat.ttl"),e.next=4,a.load(l);case 4:if(0!==(u=n.each(this.root,this.membershipProperty,null,l)).length){e.next=5;break}throw p=" INCONSISTENCY -- no chat leafObject in file "+l,Y.uP(p),new Error(p);case 5:return(d=u.map(function(e){return[n.any(e,v.dct("created")),e]})).sort(),t&&d.reverse(),e.abrupt("return",d[0][1]);case 6:case"end":return e.stop()}},e,this)})),function(t){return e.apply(this,arguments)})}]);var e,t}();const jr="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0;
|
|
28
|
+
var ka={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=ka[t]}},Ca=function(){return ye(function e(t){var n=t.data,a=t.itemTemplate,i=t.noData,r=t.noResults,o=t.placeholder,s=t.select,c=t.container,l=t.tagTemplate,u=t.textField,p=t.valueField;ve(this,e),on(this,"_data",void 0),on(this,"_domElements",void 0),on(this,"_event",function(){}),on(this,"_itemTemplate",void 0),on(this,"_multiselect",void 0),on(this,"_noData",void 0),on(this,"_noResults",void 0),on(this,"_options",[]),on(this,"_placeholder",void 0),on(this,"_select",void 0),on(this,"_selectContainer",void 0),on(this,"_selectedOptions",[]),on(this,"_tagTemplate",void 0),on(this,"_textField",void 0),on(this,"_valueField",void 0),on(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!=i?i:"No data found.",this._noResults=null!=r?r:"No results found.",this._placeholder=null!=o?o:"Select...",this._select=s,this._selectContainer=c,this._tagTemplate=null!=l?l:null,this._textField=null!=u?u:null,this._valueField=null!=p?p: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(ka.multiselect__selected,'" data-value="').concat(e.value,'">').concat(this._tagTemplate?this._processTemplate(this._tagTemplate,t):e.text,'<span class="multiselect__remove-btn" style="').concat(ka.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",ka.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",ka.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",ka.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",ka.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",ka.multiselect__options_ul_li_arrow_selected),void n.firstElementChild.scrollIntoView(!1);if(a.classList.remove("arrow-selected"),a.setAttribute("style",ka.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",ka.multiselect__options_ul_li_arrow_selected),void this._scrollIntoView(n,a);a.classList.add("arrow-selected"),a.setAttribute("style",ka.multiselect__options_ul_li_arrow_selected),this._scrollIntoView(n,a)}else this._domElements.optionsContainer.classList.add("visible"),this._domElements.optionsContainer.setAttribute("style",ka.multiselect__options_visible),n.firstElementChild.classList.add("arrow-selected"),n.firstElementChild.setAttribute("style",ka.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",ka.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",ka.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 a=0;a<this._options.length;a++){var i=this._options[a];if(i.value===e.dataset.value)return e.classList.add("multiselect__options--selected"),e.setAttribute("style",ka.multiselect__options_selected),this._selectedOptions=[].concat(wa(this._selectedOptions),[i]),this._addOptionToList(i,a),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[a];if(n.selected){t=!0;var i=e._domElements.options.find(function(e){return e.dataset.value===n.value});i.classList.add("multiselect__options--selected"),i.setAttribute("style",ka.multiselect__options_selected),e._selectedOptions=[].concat(wa(e._selectedOptions),[n]),e._addOptionToList(n,a)}},a=0;a<this._options.length;a++)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",ka.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(ka.multiselect__options,'">\n <ul style="').concat(ka.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(ka.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(ka.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",ka.multiselect__container);var t='\n <div class="multiselect__wrapper" style="'.concat(ka.multiselect__wrapper,'">\n <input class="multiselect__input" style="').concat(ka.multiselect__input,'" placeholder="').concat(this._placeholder,'" />\n </div>\n <span style="display: none;" class="multiselect__clear-btn" style="').concat(ka.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(ka.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(ka.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)}}])}();function Ea(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 Aa(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)?Aa(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 Aa(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 _a="✓",ja="✕",Sa="-",Ta=w.store;function La(e,t,n,a,i,r,o){for(var s=r.children,c=0;c<o.length;c++){var l=o[c];if(mn(l)===v.ui("Options").uri){var u=fn(0,l)(e,null,t,n,l,a,i);Y.Rm("Refreshing Options field by replacing it."),r.insertBefore(u,s[c]),r.removeChild(s[c+1])}}}function Ra(e,t,n,a,i,r,o,s){var c=v.ui,l=w.store,u=l.any(i,c("property"));if(!u){var p=ct(e,"No property to boolean field: "+i);return t&&t.appendChild(p),p}var d=l.any(i,c("label"));d||(d=Z(u,!0)),r=gn(a,u,r);var m=l.any(a,u);void 0===m&&(m=!1);var f=h.st(a,u,!0,r),x=Ja(e,l,d,h.st(a,u,!1,r),f,i,r,s);return t&&t.appendChild(x),x}function Na(e,t,n,a,i,r,o){fn(0,i)(e,t,n,a,i,r,o)}function Ba(e,t,n,a,i){var r=e.createElement("button");return r.setAttribute("type","button"),r.innerHTML="Edit "+Z(v.ui("Form")),r.addEventListener("click",function(o){Ia(e,t,{},n,v.ui("FormForm"),a,i).setAttribute("style",v.ui("FormForm").sameTerm(n)?"background-color: #fee;":"background-color: #ffffe7;"),r.parentNode.removeChild(r)},!0),r}function Ia(e,t,n,a,i,r,o){return fn(0,i)(e,t,n,a,i,r,o)}function Oa(e,t){var n=e.each(void 0,v.rdf("range"),t);[v.rdfs("comment"),v.dc("title"),v.foaf("name"),v.foaf("homepage")].forEach(function(e){n.push(e)});var a=e.each(void 0,v.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 Da(e,t,n){for(var a=[e.sym(t)];a.length>0;){var i=a.shift(),r=e.each(i,n);if(F("Lists for "+i+", "+n+": "+r.length),0!==r.length)return r;for(var o=e.each(i,v.rdfs("subClassOf")),s=0;s<o.length;s++)a.push(o[s]),F("findClosest: add super: "+o[s])}return[]}function Fa(e){var t=w.store;F("formsFor: subject="+e);var n,a=t.findTypeURIs(e);for(n in a)F(" type: "+n);var i=t.bottomTypeURIs(a),r=[];for(var o in i)F("candidatesFor: trying bottom type ="+o),r=(r=r.concat(Da(t,o,v.ui("creationForm")))).concat(Da(t,o,v.ui("annotationForm")));return r}function Pa(e){var t=e.map(function(e){return[Ta.any(e,v.ui("sequence"))||9999,e]});return t.sort(function(e,t){return e[0]-t[0]}),t.map(function(e){return e[1]})}function Ua(e){var t=e.map(function(e){return[Z(e).toLowerCase(),e]});return t.sort(),t.map(function(e){return e[1]})}function Ma(e,t,n,a,i,r,o,s){var c=e.createElement("button");return c.setAttribute("type","button"),c.innerHTML="New "+Z(i),c.addEventListener("click",function(l){c.parentNode.appendChild(za(e,t,n,a,i,r,o,s))},!1),c}function za(e,t,n,a,i,r,o,s){var c=e.createElement("form");if(!r){var l=Da(t,i.uri,v.ui("creationForm"));if(0===l.length){c.appendChild(e.createElement("p")).textContent="I am sorry, you need to provide information about a "+Z(i)+" but I don't know enough information about those to ask you.";var u=c.appendChild(e.createElement("button"));return u.setAttribute("type","button"),u.setAttribute("style","float: right;"),u.innerHTML="Goto "+Z(i),u.addEventListener("click",function(t){e.outlineManager.GotoSubject(i,!0,void 0,!0,void 0)},!1),c}F("lists[0] is "+l[0]),r=l[0]}F("form is "+r),c.setAttribute("style","border: 0.05em solid ".concat(Ae.formBorderColor,"; color: ").concat(Ae.formBorderColor)),c.innerHTML="<h3>New "+Z(i)+"</h3>";var p=fn(0,r),d=$a(o),m=!1;function f(e,t,n){return s(t,n)}P("paneUtils Object is "+d);var x=p(e,c,{},d,r,o,function(r,l){if(!r)return s(r,l);var u=[];n&&!t.holds(n,a,d,o)&&u.push(h.st(n,a,d,o)),n&&!t.holds(d,v.rdf("type"),i,o)&&u.push(h.st(d,v.rdf("type"),i,o)),u.length?t.updater.update([],u,f):s(!0,l),m||(m=c.appendChild(Qt(e,d)))});return Zt(e,x).setAttribute("style","float: right;"),c.AJAR_subject=d,c}function qa(e,t,n,a,i,r){var o,s=e.createElement("div"),c=t.anyJS(n,a,null,i)||"",l=e.createElement("textarea");function u(c){o.disabled=!0,o.setAttribute("style","visibility: hidden; float: right;"),l.disabled=!0,l.style.color=Ae.textInputColorPending;var u=t.statementsMatching(n,a,null,i),p=h.st(n,a,l.value,i);t.updater.update(u,p,function(t,n,a){n?(l.style.color=Ae.textInputColor,l.disabled=!1):s.appendChild(ct(e,"Error (while saving change to "+i.uri+"): "+a)),r&&r(n,a)})}return s.appendChild(l),l.rows=c?c.split("\n").length+2:2,l.cols=80,l.setAttribute("style",_e.multilineTextInputStyle),null!==c?l.value=c:l.select(),s.refresh=function(){var e=t.any(n,a,null,i);e&&e.value!==l.value&&(l.value=e.value)},t.updater.editable(i.uri)?((o=Dt(e,u)).disabled=!0,o.style.visibility="hidden",o.style.float="right",s.appendChild(o),l.addEventListener("keyup",function(e){l.style.color="green",o&&(o.disabled=!1,o.style.visibility="")},!0),l.addEventListener("change",u,!0)):(l.disabled=!0,l.style.backgroundColor=Ae.textInputBackgroundColorUneditable),s}function Ha(e,t,n,a,i,r,o,s){F("Select list length now "+i.length);for(var c,l=0,u={},p=t.updater.editable(o.uri),d=0;d<i.length;d++){var m=i[d];m.uri||Y.R8("makeSelectForClassifierOptions: option does not have an uri: ".concat(m,", with predicate: ").concat(a)),m.uri&&!(m.uri in u)&&(u[m.uri]=!0,l++)}if(0===l&&!r.mint)return ct(e,"Can't do selector with no options, subject= "+n+" property = "+a+".");F("makeSelectForClassifierOptions: dataDoc="+o);var f=function(){return c={},a.sameTerm(v.rdf("type"))?c=t.findTypeURIs(n):t.each(n,a,null,o).forEach(function(e){c[e.uri]=!0}),c};c=f();var x=e.createElement("select");for(var b in x.setAttribute("style",_e.formSelectStyle),r.multiple&&x.setAttribute("multiple","true"),x.currentURI=null,x.refresh=function(){c=f();for(var e=0;e<x.children.length;e++){var t=x.children[e];t.AJAR_uri&&(t.selected=t.AJAR_uri in c)}x.disabled=!1},u){var g=t.sym(b),y=e.createElement("option");r.disambiguate?y.appendChild(e.createTextNode(et(g,!0))):y.appendChild(e.createTextNode(Z(g,!0)));var w=t.any(g,t.sym("http://www.w3.org/ns/ui#backgroundColor"));w&&y.setAttribute("style","background-color: "+w.value+"; "),y.AJAR_uri=b,b in c&&(y.setAttribute("selected","true"),x.currentURI=b),x.appendChild(y)}if(p&&r.mint){var k=e.createElement("option");k.appendChild(e.createTextNode(r.mint)),k.AJAR_mint=!0,x.insertBefore(k,x.firstChild)}if(null==x.currentURI&&!r.multiple){var C=e.createElement("option");C.appendChild(e.createTextNode(r.nullLabel)),x.insertBefore(C,x.firstChild),C.selected=!0}return p&&x.addEventListener("change",function(i){x.disabled=!0;for(var l,u=[],p=[],d=function(e){t.holds(n,a,e,o)&&u.push(h.st(n,a,e,o))},m=0;m<x.options.length;m++){var v=x.options[m];if(v.selected&&v.AJAR_mint){if(r.mintClass){var b=za(e,t,n,a,r.mintClass,null,o,function(e,t){e||s(e,t,{change:"new"})});x.parentNode.appendChild(b),l=b.AJAR_subject}else l=$a(o);p.push(h.st(n,a,l,o)),r.mintStatementsFun&&(p=p.concat(r.mintStatementsFun(l)))}v.AJAR_uri&&(v.selected&&!(v.AJAR_uri in c)&&p.push(h.st(n,a,t.sym(v.AJAR_uri),o)),!v.selected&&v.AJAR_uri in c&&d(t.sym(v.AJAR_uri)),v.selected&&(x.currentURI=v.AJAR_uri))}for(var g=x.subSelect;g&&g.currentURI;)d(t.sym(g.currentURI)),g=g.subSelect;for(g=x.superSelect;g&&g.currentURI;)d(t.sym(g.currentURI)),g=g.superSelect;function y(e,t){s(e,{widget:"select",event:"new"})}P("makeSelectForClassifierOptions: data doc = "+o),t.updater.update(u,p,function(t,n,a){if(c=f(),!n)return x.parentNode.appendChild(ct(e,"Error updating data in select: "+a));x.disabled=!1,l&&fn(0,r.subForm)(e,x.parentNode,{},l,r.subForm,o,y),s&&s(n,{widget:"select",event:"change"})})},!1),x}function Ga(e,t,n,a,i,r,o,s){F("Select list length now "+i.length);for(var c,l=0,u={},p=t.updater.editable(o.uri),d=0;d<i.length;d++){var m=i[d];m.uri||Y.R8("makeSelectForOptions: option does not have an uri: ".concat(m,", with predicate: ").concat(a)),m.uri&&!(m.uri in u)&&(u[m.uri]=!0,l++)}if(0===l)return ct(e,"Can't do selector with no options, subject= "+n+" property = "+a+".");F("makeSelectForOptions: dataDoc="+o);var f=function(){return c={},a.sameTerm(v.rdf("type"))?c=t.findTypeURIs(n):t.each(n,a,null,o).forEach(function(e){e.uri&&(c[e.uri]=!0)}),c};c=f();var x=e.createElement("select");for(var b in x.setAttribute("style",_e.formSelectStyle),x.currentURI=null,x.refresh=function(){c=f();for(var e=0;e<x.children.length;e++){var t=x.children[e];t.AJAR_uri&&(t.selected=t.AJAR_uri in c)}x.disabled=!1},u){var g=t.sym(b),y=e.createElement("option");r.disambiguate?y.appendChild(e.createTextNode(et(g,!0))):y.appendChild(e.createTextNode(Z(g,!0)));var w=t.any(g,t.sym("http://www.w3.org/ns/ui#backgroundColor"));w&&y.setAttribute("style","background-color: "+w.value+"; "),y.AJAR_uri=b,b in c&&(y.setAttribute("selected","true"),x.currentURI=b),x.appendChild(y)}if(!x.currentURI){var k=e.createElement("option");k.appendChild(e.createTextNode(r.nullLabel)),x.insertBefore(k,x.firstChild),k.selected=!0}return p&&x.addEventListener("change",function(i){x.disabled=!0;for(var r=[],l=[],u=function(e){t.holds(n,a,e,o)&&r.push(h.st(n,a,e,o))},p=0;p<x.options.length;p++){var d=x.options[p];d.AJAR_uri&&(d.selected&&!(d.AJAR_uri in c)&&l.push(h.st(n,a,t.sym(d.AJAR_uri),o)),!d.selected&&d.AJAR_uri in c&&u(t.sym(d.AJAR_uri)),d.selected&&(x.currentURI=d.AJAR_uri))}for(var m=x.subSelect;m&&m.currentURI;)u(t.sym(m.currentURI)),m=m.subSelect;for(m=x.superSelect;m&&m.currentURI;)u(t.sym(m.currentURI)),m=m.superSelect;P("selectForOptions: data doc = "+o),t.updater.update(r,l,function(t,n,a){if(c=f(),!n)return x.parentNode.appendChild(ct(e,"Error updating data in select: "+a));x.disabled=!1,s&&s(n,{widget:"select",event:"change"})})},!1),x}function Va(e,t,n,a,i,r){var o,s=t.any(a,v.owl("disjointUnionOf")),c=!1;return s?o=s.elements:(o=t.each(void 0,v.rdfs("subClassOf"),a),c=!0),F("Select list length "+o.length),0===o.length?ct(e,"Can't do "+(c?"multiple ":"")+"selector with no subclasses of category: "+a):1===o.length?ct(e,"Can't do "+(c?"multiple ":"")+"selector with only 1 subclass of category: "+a+":"+o[1]):Ha(e,t,n,v.rdf("type"),o,{multiple:c,nullLabel:"* Select type *"},i,r)}function Wa(e,t,n,a,i,r){function o(){c&&(s.removeChild(c),c=null),l.currentURI&&t.any(t.sym(l.currentURI),v.owl("disjointUnionOf"))&&(c=Wa(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=Va(e,t,n,a,i,function(e,t){e&&o(),r(e,t)});return s.appendChild(l),o(),s}function Ja(e,t,n,a,i,r,o,s){var c=e.createElement("div"),l=xn(e,t,c,r,n),u=t.updater.editable(o.uri),p=e.createElement("button"),d=p;function m(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 f(e){return 0===e.filter(function(e){return!t.holds(e.subject,e.predicate,e.object,e.why)}).length}if(p.style=_e.checkboxInputStyle,l.appendChild(p),i=m(i),a=m(a),function(){var n=f(i),o=n;if(a.length){var l=f(a);if(n&&l)return c.appendChild(ct(e,"Inconsistent data in dataDoc!\n"+i+" and\n"+a)),c;if(!n&&!l){n=null;var u=t.any(r,v.ui("default"));o=u?"1"===u.value:!!s&&null}}p.state=n,p.textContent={true:_a,false:s?ja:" ",null:Sa}[o]}(),!u)return c;return p.addEventListener("click",function(n){d.style.color="#bbb";var r=!0===p.state?i:!1===p.state?a:[];p.newState=null===p.state||!0!==p.state&&(!s||null);var o=!0===p.newState?i:!1===p.newState?a:[];Y.Rm(" Deleting ".concat(r)),Y.Rm(" Inserting ".concat(o)),t.updater.update(r,o,function(n,a,i){if(a)d.style.color="#000",p.state=p.newState,p.textContent={true:_a,false:ja,null:Sa}[p.state];else{if(r.why)t.holds(r.subject,r.predicate,r.object,r.why)&&Y.Rm(" @@@@@ weird if 409 - does hold statement");d.style.color="#000",d.style.backgroundColor="#fee",c.appendChild(ct(e,"Checkbox: Error updating dataDoc from ".concat(p.state," to ").concat(p.newState,":\n\n").concat(i)))}})},!1),c}function $a(e){var t=new Date;return h.sym(e.uri+"#id"+t.getTime())}function Qa(e,t,n,a,i,r,o,s,c,l,u){for(var p={},d=n.updater.editable(l.uri),m=0;m<r.length;m++){var f=r[m];f.uri&&!(f.uri in p)&&(p[f.uri]=!0)}if(0===Object.keys(p).length&&!c.mint)return ct(e,"Can't do selector with no options, subject= "+a+" property = "+i+".");F("makeSelectForChoice: dataDoc="+l);var x,b,g=e.createElement("select");for(var y in g.setAttribute("style",_e.formSelectStyle),g.setAttribute("id","formSelect"),g.currentURI=null,p)g.appendChild(k(y));if(d&&c.mint){var w=e.createElement("option");w.appendChild(e.createTextNode(c.mint)),w.AJAR_mint=!0,g.insertBefore(w,g.firstChild)}function k(t){var a,i=e.createElement("option"),r=n.sym(t);a=c.disambiguate?et(r,!0):Z(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,Za(r.value,o)&&i.setAttribute("selected","true"),i}return 0===g.children.length&&g.insertBefore(((b=e.createElement("option")).appendChild(e.createTextNode((x="--- choice ---",i&&"BlankNode"!==i.termType&&(x="* Select for property: "+Z(i)+" *"),a&&"BlankNode"!==a.termType&&(x="* Select for "+Z(a,!0)+" *"),x))),b.disabled=!0,b.value=!0,b.hidden=!0,b.selected=!0,b),g.firstChild),g.update=function(t){o=t;var r,c=[],p=[],d=function(e){n.holds(a,i,e,l)&&c.push(h.st(a,i,e,l))},m=function(e){n.holds(a,i,e,l)||p.push(h.st(a,i,e,l)),s&&!n.holds(e,v.rdf("type"),n.sym(s),l)&&p.push(h.st(e,v.rdf("type"),n.sym(s),l))},f=n.each(a,i,null,l).map(function(e){return e.value}),x=Ea(f);try{for(x.s();!(r=x.n()).done;){var b=r.value;Za(b,o)||d(h.sym(b))}}catch(e){x.e(e)}finally{x.f()}var y,w=Ea(o);try{for(w.s();!(y=w.n()).done;){var k=y.value;k in f||m(h.sym(k))}}catch(e){w.e(e)}finally{w.f()}n.updater.update(c,p,function(t,n,a){if(!n)return g.parentNode.appendChild(ct(e,"Error updating data in select: "+a));g.refresh(),u&&u(n,{widget:"select",event:"change"})})},g.refresh=function(){g.disabled=!0;for(var r,p=[],d=0;d<g.options.length;d++){var m=g.options[d];if(m.selected&&m.AJAR_mint){if(c.mintClass){var f=za(e,n,a,i,s,c.subForm,l,function(e,t){e||u(e,t,{change:"new"})});g.parentNode.appendChild(f),r=f.AJAR_subject}else r=$a(l);p.push(h.st(a,i,n.sym(r),l)),s&&p.push(h.st(r,v.rdf("type"),n.sym(s),l)),c.mintStatementsFun&&(p=p.concat(c.mintStatementsFun(r))),g.currentURI=r}m.AJAR_uri&&(m.selected&&Za(m.AJAR_uri,o)&&(g.currentURI=m.AJAR_uri),Za(m.AJAR_uri,o)||m.removeAttribute("selected"),Za(m.AJAR_uri,o)&&m.setAttribute("selected","true"))}P("selectForOptions: data doc = "+l),g.currentURI&&c.subForm&&!c.multiSelect&&Na(e,t,{},h.sym(g.currentURI),c.subForm,l,function(a,i){a?(n.updater.update([],p,function(n,a,i){a||t.appendChild(ct(e,"Error updating select: "+i))}),u&&u(a,{widget:"select",event:"new"})):t.appendChild(ct(e,"Error updating data in field of select: "+i))}),g.disabled=!1},d&&g.addEventListener("change",function(e){t.removeChild(t.lastChild),g.refresh()},!1),g}function Za(e,t){var n;for(n=0;n<t.length;n++)if(t[n]===e)return!0;return!1}function Ka(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 Ya(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)?Ya(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 Ya(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}dn[v.ui("AutocompleteField").uri]=function(e,t,n,a,i,r,o){var s;function c(){return(c=b(y().mark(function t(n,i){var s,c,l,p,m,f;return y().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(i){t.next=1;break}throw new Error("autocompleteField: No name set.");case 1:if(!(s=u.the(a,x,null,r))){t.next=2;break}if(c=u.any(s,g,null,r),!(s.equals(n)&&c&&c.sameTerm(i))){t.next=2;break}return t.abrupt("return");case 2:return l=s?u.statementsMatching(a,x,s,r).concat(u.statementsMatching(s,g,null,r)):[],p=[(0,h.st)(a,x,n,r),(0,h.st)(n,g,i,r)],t.prev=3,t.next=4,null===(m=u.updater)||void 0===m?void 0:m.updateMany(l,p);case 4:t.next=6;break;case 5:return t.prev=5,f=t.catch(3),o(!1,f),d.appendChild(ct(e,"Autocomplete form data update error:"+f,null,f)),t.abrupt("return");case 6:o(!0,"");case 7:case"end":return t.stop()}},t,null,[[3,5]])}))).apply(this,arguments)}function l(){return(l=b(y().mark(function t(n,i){var s,c,l,p,m,f;return y().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(s=u.the(a,x,null,r)){t.next=1;break}return o(!1,"NO data to elete"),d.appendChild(ct(e,"Autocomplete delete: no old data!")),t.abrupt("return");case 1:return c=u.statementsMatching(a,x,s,r).concat(u.statementsMatching(s,g,null,r)),l=[],t.prev=2,t.next=3,null===(p=u.updater)||void 0===p?void 0:p.updateMany(c,l);case 3:t.next=5;break;case 4:return t.prev=4,f=t.catch(2),m=new Error("Autocomplete form data delete error:"+f),o(!1,f),d.appendChild(ct(e,m,null,f)),t.abrupt("return");case 5:o(!0,"");case 6:case"end":return t.stop()}},t,null,[[2,4]])}))).apply(this,arguments)}if("NamedNode"!==a.termType)throw new Error("Sorry this field only works on NamedNode subjects (for editable)");var u=w.store,p=i.doc?i.doc():null,d=e.createElement("div");t&&t.appendChild(d);var m=e.createElement("div");m.setAttribute("class","formFieldName"),m.setAttribute("style",_e.formFieldNameBoxStyle),d.appendChild(m);var f=e.createElement("div");f.setAttribute("class","formFieldValue"),d.appendChild(f);var x=u.any(i,v.ui("property"));if(!x)return d.appendChild(ct(e,"Error: No property given for autocomplete field: "+i));var g=u.any(i,v.ui("labelProperty"))||v.schema("name"),k=u.any(i,v.ui("dataSource"));if(!k)return d.appendChild(ct(e,"Error: No data source given for autocomplete field: "+i));var C={label:u.anyJS(k,v.schema("name"),null,k.doc()),logo:u.any(k,v.schema("logo"),null,k.doc())},E=u.any(i,v.ui("targetClass"),null,i.doc())||u.any(k,v.ui("targetClass"),null,k.doc());E&&(C.targetClass=E),C.objectURIBase=u.any(k,v.ui("objectURIBase"),null,k.doc())||void 0;var A=u.anyJS(k,v.ui("endpoint"),null,k.doc());if(A){if(C.endpoint=A,C.searchByNameQuery=u.anyJS(k,v.ui("searchByNameQuery"),null,k.doc()),!C.searchByNameQuery)return d.appendChild(ct(e,"Error: No searchByNameQuery given for endpoint data Source: "+i));C.insitituteDetailsQuery=u.anyJS(k,v.ui("insitituteDetailsQuery"),null,k.doc())}else{var _=u.anyJS(k,v.ui("searchByNameURI"));if(!_)return d.appendChild(ct(e,"Error: No searchByNameURI OR sparql endpoint given for dataSource: "+k));C.searchByNameURI=_}var j=u.anyJS(i,v.ui("suppressEmptyUneditable"),null,p),S=null===(s=u.updater)||void 0===s?void 0:s.editable(r.uri),T={permanent:!0,targetClass:C.targetClass,queryParams:C};T.size=u.anyJS(i,v.ui("size"),null,p)||void 0;var L=u.any(a,x,void 0,r);if(L)T.currentObject=L,T.currentName=u.any(T.currentObject,g,null,r);else if(L=u.any(i,v.ui("default")))T.currentObject=L,T.currentName=u.any(T.currentObject,g,null,r);else if(j&&!S)return d.style.display="none",d;return m.appendChild(bn(e,x,i)),ga(e,a,{editable:S,dbLookup:!0},T,function(e,t){return c.apply(this,arguments)},function(e,t){return l.apply(this,arguments)}).then(function(e){f.appendChild(e)},function(t){f.appendChild(ct(e,"Error rendering autocomplete ".concat(i,": ").concat(t),"#fee",t))}),d},dn[v.ui("Form").uri]=dn[v.ui("Group").uri]=function(e,t,n,a,i,r,o){var s=e.createElement("div"),c=v.ui;if(t&&t.appendChild(s),i){var l=a.toNT()+"|"+i.toNT();if(n[l])return s.appendChild(e.createTextNode("Group: see above "+l)),s;var u={};for(var p in n)u[p]=1;u[l]=1;var d=i.doc?i.doc():null,m=Ta.any(i,c("weight"),null,d),f=m?Number(m.value):1;if(f>3||f<0)return s.appendChild(ct(e,"Form Group weight ".concat(f," should be 0-3")));s.setAttribute("style",_e.formGroupStyle[f]),s.style.display="flex",s.style.flexDirection="column",s.class="form-weight-"+f;var h,x=Ta.any(i,c("parts"),null,d);if(x?h=x.elements:(x=Ta.each(i,c("part"),null,d),h=Pa(x)),!x)return s.appendChild(ct(e,"No parts to form! "));for(var b=0;b<h.length;b++){var g=h[b],y=fn(0,g),w=function(t,i){t&&i&&i.widget&&"select"===i.widget&&La(e,n,a,r,o,s,h),o(t,{widget:"group",change:i})};s.appendChild(y(e,null,u,a,g,r,w))}return s}},dn[v.ui("Options").uri]=function(e,t,n,a,i,r,o){var s=w.store,c=e.createElement("div"),l=i.doc?i.doc():null,u=v.ui;t&&t.appendChild(c);var p=s.any(i,u("dependingOn"));p||(p=v.rdf("type"));var d,m=s.each(i,u("case"),null,l);m||c.appendChild(ct(e,"No cases to Options form. ")),d=p.sameTerm(v.rdf("type"))?Object.keys(s.findTypeURIs(a)).map(function(e){return h.sym(e)}):s.each(a,p);for(var f=0;f<m.length;f++){for(var x=m[f],b=s.each(x,u("for"),null,l),g=!1,y=0;y<b.length;y++){var k,C=Ea(d);try{for(C.s();!(k=C.n()).done;){var E=k.value,A=b[y];(E.sameTerm(b)||E.termType===A.termType&&E.value===A.value)&&(g=!0)}}catch(e){C.e(e)}finally{C.f()}}if(g){var _=s.the(x,u("use"));if(!_)return c.appendChild(ct(e,'No "use" part for case in form '+i)),c;Ia(e,c,n,a,_,r,o);break}}return c},dn[v.ui("Multiple").uri]=function(e,t,n,a,i,r,o){function s(e){return e.map(function(e){return e.toString().slice(-7)}).join(", ")}function c(){return l.apply(this,arguments)}function l(){return l=b(y().mark(function t(){var n,i,o,s;return y().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=$a(r),!C){t.next=2;break}return O(),T.elements.push(n),t.next=1,D();case 1:t.next=7;break;case 2:return i=A?[h.st(n,E,a,r)]:[h.st(a,E,n,r)],t.prev=3,t.next=4,d.updater.update([],i);case 4:t.next=6;break;case 5:t.prev=5,s=t.catch(3),o="Error adding to unordered multiple: "+s,f.appendChild(ct(e,o)),Y.z3(o);case 6:U();case 7:case"end":return t.stop()}},t,null,[[3,5]])})),l.apply(this,arguments)}function u(t){function i(){return(i=b(y().mark(function n(){var i,o;return y().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(!C){n.next=5;break}Y.Rm("pre delete: "+s(T.elements)),i=0;case 1:if(!(i<T.elements.length)){n.next=4;break}if(!T.elements[i].sameTerm(t)){n.next=3;break}return T.elements.splice(i,1),n.next=2,D();case 2:return n.abrupt("return");case 3:i++,n.next=1;break;case 4:n.next=6;break;case 5:d.holds(a,E,t,r)&&(o=[h.st(a,E,t,r)],d.updater.update(o,[],function(t,n,a){n?R.removeChild(u):R.appendChild(ct(e,"Multiple: delete failed: "+a))}));case 6:case"end":return n.stop()}},n)}))).apply(this,arguments)}function c(e,t){return l.apply(this,arguments)}function l(){return(l=b(y().mark(function e(n,a){var i;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:Y.Rm("pre move: "+s(T.elements)),i=0;case 1:if(!(i<T.elements.length)){e.next=3;break}if(!T.elements[i].sameTerm(t)){e.next=2;break}return e.abrupt("continue",3);case 2:i++,e.next=1;break;case 3:if(i===T.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:T.elements.splice(i-1,2,T.elements[i],T.elements[i-1]),e.next=7;break;case 5:if(i!==T.elements.length-1){e.next=6;break}return alert("@@ boop - already at bottom -temp message"),e.abrupt("return");case 6:T.elements.splice(i,2,T.elements[i+1],T.elements[i]);case 7:return e.next=8,D();case 8:case"end":return e.stop()}},e)}))).apply(this,arguments)}F("Multiple: render object: "+t);var u=fn(0,S)(e,null,n,t,S,r,function(e,n){Y.Rm("Item done callback for item ".concat(t.toString())),e||Y.z3(" Item done callback: Error: "+n),o(e,n)});if(u.subject=t,d.updater.editable(r.uri)&&(Bt(e,u,_,function(){return i.apply(this,arguments)}),C)){var p=e.createElement("div");p.style.display="grid",p.style.gridTemplateColumns="auto 3em",p.style.gridTemplateRows="50% 50%";var m=It(e,Re.Pt.iconBase+"noun_1369237.svg","Move Up",function(){var e=b(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",c(t,!0));case 1:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()),f=It(e,Re.Pt.iconBase+"noun_1369241.svg","Move Down",function(){var e=b(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",c(t,!1));case 1:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()),v=e.createElement("div");return v.appendChild(u),p.appendChild(v),p.appendChild(m),p.appendChild(f),m.style.gridColumn=2,f.style.gridColumn=2,m.style.gridRow=1,f.style.padding="0em",m.style.padding="0em",f.style.gridRow=2,v.style.gridColumn=1,v.style.gridRowStart="span 2",p}return u}var p=Re.Pt.iconBase+"noun_19460_green.svg",d=w.store,m=i.doc?i.doc():null,f=e.createElement("div"),x=f,g=v.ui;t&&t.appendChild(f);var k=d.any(i,g("ordered")),C=!!k&&h.Node.toJS(k),E=d.any(i,g("property")),A=d.anyJS(i,g("reverse"),null,m);if(!E)return f.appendChild(ct(e,"No property to multiple: "+i)),x;var _=d.any(i,g("label"));_||(_=Z(E));var j=d.any(i,g("min"));j=j?0+j.value:0;var S=d.any(i,g("part"));if(!S)return f.appendChild(ct(e,"No part to multiple: "+i)),x;var T,L,R=f.appendChild(e.createElement("div"));if(R.style.display="flex",R.style.flexDirection="column",L=A?d.any(null,E,a,r):d.any(a,E,null,r),C?(T=A?d.any(null,E,a,r):d.any(a,E,null,r),L=T?T.elements:[]):(L=A?d.each(null,E,a,r):d.each(a,E,null,r),T=null),d.updater.editable(r.uri)){var N=f.appendChild(e.createElement("div"));N.style.padding="0.5em";var B=N.appendChild(e.createElement("img"));B.setAttribute("src",p),B.setAttribute("style","margin: 0.2em; width: 1.5em; height:1.5em"),B.title="Click to add another "+_;var I=e.createElement("span");I.textContent=(0===L.length?"Add another ":"Add ")+_,N.addEventListener("click",function(){var e=b(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,c();case 1:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),!0),N.appendChild(I)}function O(){T||(T=new h.Collection,A?d.add(T,E,a,r):d.add(a,E,T,r))}function D(){return P.apply(this,arguments)}function P(){return(P=b(y().mark(function t(){var n;return y().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return Y.Rm("save list: "+s(T.elements)),O(),t.prev=1,t.next=2,d.fetcher.putBack(r);case 2:t.next=4;break;case 3:return t.prev=3,n=t.catch(1),f.appendChild(ct(e,"Error trying to put back a list: "+n)),t.abrupt("return");case 4:U();case 5:case"end":return t.stop()}},t,null,[[1,3]])}))).apply(this,arguments)}function U(){var e;if(C){var t=A?d.the(null,E,a,r):d.the(a,E,null,r);e=t?t.elements:[]}else(e=A?d.each(null,E,a,r):d.each(a,E,null,r)).sort();Me(R,e,u)}function M(){return(M=b(y().mark(function e(){var t,n;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!((t=j-L.length)>0)){e.next=4;break}n=0;case 1:if(!(n<t)){e.next=3;break}return Y.Rm("Adding extra: min "+j),e.next=2,c();case 2:n++,e.next=1;break;case 3:return e.next=4,D();case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}return R.refresh=U,U(),function(){return M.apply(this,arguments)}().then(function(){Y.Rm(" Multiple render: async stuff ok")},function(e){Y.z3(" Multiple render: async stuff fails. #### ",e)}),x},dn[v.ui("PhoneField").uri]=yn,dn[v.ui("EmailField").uri]=yn,dn[v.ui("ColorField").uri]=yn,dn[v.ui("DateField").uri]=yn,dn[v.ui("DateTimeField").uri]=yn,dn[v.ui("TimeField").uri]=yn,dn[v.ui("NumericField").uri]=yn,dn[v.ui("IntegerField").uri]=yn,dn[v.ui("DecimalField").uri]=yn,dn[v.ui("FloatField").uri]=yn,dn[v.ui("TextField").uri]=yn,dn[v.ui("SingleLineTextField").uri]=yn,dn[v.ui("NamedNodeURIField").uri]=yn,dn[v.ui("MultiLineTextField").uri]=function(e,t,n,a,i,r,o){var s=v.ui,c=w.store,l=i.doc?i.doc():null,u=c.any(i,s("property"));if(!u)return ct(e,"No property to text field: "+i);var p=e.createElement("div");p.style.display="flex",p.style.flexDirection="row";var d=p.appendChild(e.createElement("div"));d.style.width=Ae.formFieldNameBoxWidth;var m=p.appendChild(e.createElement("div"));d.appendChild(bn(e,u,i)),r=gn(a,u,r);var f=c.anyJS(a,u,null,r)||"",h=c.updater.editable(r.uri),x=i&&c.anyJS(i,v.ui("suppressEmptyUneditable"),null,l);!h&&x&&""===f&&(p.style.display="none");var b=qa(e,c,a,u,r,o);return m.appendChild(b),t&&t.appendChild(p),p},dn[v.ui("BooleanField").uri]=function(e,t,n,a,i,r,o){return Ra(e,t,0,a,i,r,0,!1)},dn[v.ui("TristateField").uri]=function(e,t,n,a,i,r,o){return Ra(e,t,0,a,i,r,0,!0)},dn[v.ui("Classifier").uri]=function(e,t,n,a,i,r,o){var s=w.store,c=v.ui,l=s.any(i,c("category"));if(!l)return ct(e,"No category for classifier: "+i);F("Classifier: dataDoc="+r);var u=Wa(e,s,a,l,r,function(e,t){return o(e,t)});return t&&t.appendChild(u),u},dn[v.ui("Choice").uri]=function(e,t,n,a,i,r,o){var s,c=v.ui,l=w.store,u=i.doc?i.doc():null,p=e.createElement("div");p.setAttribute("class","choiceBox"),t&&t.appendChild(p);var d=e.createElement("div");d.setAttribute("class","formFieldName choiceBox-label"),p.appendChild(d);var m=e.createElement("div");m.setAttribute("class","formFieldValue choiceBox-selectBox"),p.appendChild(m);var f=l.any(i,c("property"));if(!f)return p.appendChild(ct(e,"No property for Choice: "+i));d.appendChild(bn(e,f,i));var x=l.any(i,c("from"));if(!x)return ct(e,"No 'from' for Choice: "+i);var b=l.any(i,c("use")),g={form:i,subForm:b,disambiguate:!1};l.any(i,c("canMintNew"))&&(g.mint="* Create new *");var y=l.any(i,c("multiselect"));y&&(g.multiSelect=!0);var k,C=l.each(i,c("search-full-store")).length?null:r;return m.refresh=function(){var t=l.each(a,f,null,r).map(function(e){return e.value}),n=function(e){var t,n=[];for(var a in n=l.each(void 0,v.rdf("type"),x,u),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 k=0,C=(u=e.each(null,e.rdfFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#range"),e.fromNT(x),n)).length;k<C;k++)for(o=u[k],m=0,i=(p=e.statementsMatching(null,o,null,n)).length;m<i;m++)h[(d=p[m]).object.toNT()]=d}return h}(l,x,e))n.push(l.fromNT(a));if(x.sameTerm(v.rdfs("Class")))for(s in Jt())n.push(l.sym(s));else if(x.sameTerm(v.rdf("Property"))){for(s in(t=$t(l)).op)n.push(l.fromNT(s));for(s in t.dp)n.push(l.fromNT(s));g.disambiguate=!0}else if(x.sameTerm(v.owl("ObjectProperty"))){for(s in(t=$t(l)).op)n.push(l.fromNT(s));g.disambiguate=!0}else if(x.sameTerm(v.owl("DatatypeProperty"))){for(s in(t=$t(l)).dp)n.push(l.fromNT(s));g.disambiguate=!0}return n}(C);if(n.push(t),n=Ua(n),k=Qa(e,m,l,a,f,n,t,x,g,r,o),m.innerHTML="",m.appendChild(k),y){var i=new Ca({placeholder:k.selected,select:k,container:m,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=$a(r),s=[];s.push(h.st(a,f,l.sym(i),r)),x&&s.push(h.st(i,v.rdf("type"),l.sym(x),r)),b&&Na(e,m,{},h.sym(i),b,r,function(n,a){n?(l.updater.update([],s,function(t,n,a){n||m.appendChild(ct(e,"Error updating select: "+a))}),t.push(i),o&&o(n,{widget:"select",event:"new"})):m.appendChild(ct(e,"Error updating data in field of select: "+a))})}else t.push(n.value);k.update(t)})}},m.refresh(),k&&k.refresh&&k.refresh(),p},dn[v.ui("Comment").uri]=dn[v.ui("Heading").uri]=function(e,t,n,a,i,r,o){var s=v.ui,c=w.store,l=c.any(i,s("contents"));l||(l="Error: No contents in comment field.");var u=i.doc?i.doc():null,p=mn(i),d=un[p]||{},m=e.createElement("div");t&&t.appendChild(m);var f=m.appendChild(e.createElement(d.element));f.textContent=l,function(e,t){var n=mn(t),a=un[n]||{},i=w.store.any(t,v.ui("style"));i?"Literal"===i.termType?i&&e.setAttribute("style",i.value):w.store.statementsMatching(i,null,null,t.doc()).forEach(function(t){if(t.predicate.uri&&t.predicate.uri.startsWith(hn)){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||"???",'"'))}}}):a.style&&e.setAttribute("style",a.style)}(f,i);var h=c.anyJS(i,v.ui("suppressIfUneditable"),null,u),x=c.updater.editable(r.uri);return h&&!x&&(m.style.display="none"),m};w.solidLogicSingleton.store;var Xa=w.solidLogicSingleton.profile,ei=Xa.loadPreferences,ti=Xa.loadProfile,ni=w.solidLogicSingleton.typeIndex,ai=ni.getScopedAppInstances,ii=ni.getRegistrations,ri=ni.loadAllTypeIndexes,oi=ni.getScopedAppsFromIndex,si=ni.deleteTypeIndexRegistration;function ci(e){var t=w.authn.currentUser();return t?(w.authn.saveUser(t,e),Promise.resolve(e)):new Promise(function(t){w.authn.checkUser().then(function(n){if(n)return Y.Rm("logIn: Already logged in as ".concat(n)),t(e);if(!e.div||!e.dom)return t(e);var a=ki(e.dom,function(n){w.authn.saveUser(n,e),t(e)});e.div.appendChild(a)})})}function li(e){return ui.apply(this,arguments)}function ui(){return(ui=b(y().mark(function e(t){var n,a,i;return y().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,pi(t);case 2:return t=e.sent,e.next=3,ei(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 w.UnauthorizedError)){e.next=5;break}z(a="Oops — you are not authenticated (properly logged in), so SolidOS cannot read your preferences file. Try logging out and then logging back in."),e.next=11;break;case 5:if(!(i instanceof w.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 w.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.",Y.R8(a),e.abrupt("return",t);case 7:if(!(i instanceof w.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.",Y.R8(a),e.abrupt("return",t);case 8:if(!(i instanceof w.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.",Y.R8(a),e.next=11;break;case 9:if(!(i instanceof w.FetchError)){e.next=10;break}z(a="Strange: Error ".concat(i.status," trying to read your preference file.").concat(i.message)),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 pi(e){return di.apply(this,arguments)}function di(){return(di=b(y().mark(function e(t){var n,a;return y().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,ci(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,ti(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(ct(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 mi(e,t,n){return fi.apply(this,arguments)}function fi(){return(fi=b(y().mark(function e(t,n,a){var i,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.me){e.next=2;break}return e.next=1,ai(n,t.me);case 1:r=e.sent,e.next=3;break;case 2:r=[];case 3:return i=r,!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 hi(e,t){var n=e.me&&e.me.sameTerm(t.agent)?"":Z(t.agent)+" ";return"".concat(n).concat(t.label)}function vi(e,t,n){return xi.apply(this,arguments)}function xi(){return xi=b(y().mark(function e(t,n,a){var i,r,o,s,c,l,u,p,d,m,f,x,b;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=function(e){var n=i(e.index),a=hi(t,e),r="".concat(a," link to this ").concat(t.noun);return Ja(t.dom,w.solidLogicSingleton.store,r,null,n,d,e.index)},i=function(e){var t=ii(n,a),i=t.length?t[0]:$a(e);return[(0,h.st)(i,v.solid("instance"),n,e),(0,h.st)(i,v.solid("forClass"),a,e)]},(o=t.dom)&&t.div){e.next=1;break}throw new Error("registrationControl: need dom and div");case 1:if(s=o.createElement("div"),t.div.appendChild(s),t.me=w.authn.currentUser(),c=t.me){e.next=2;break}return s.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,ri(c);case 3:l=e.sent,e.next=5;break;case 4:return e.prev=4,b=e.catch(2),t.div&&t.preferencesFileError?(u="(Lists of stuff not available)",t.div.appendChild(o.createElement("p")).textContent=u):t.div&&(u="registrationControl: Type indexes not available: ".concat(b),t.div.appendChild(ct(t.dom,b))),Y.Rm(u),e.abrupt("return",t);case 5:s.innerHTML="<table><tbody></tbody></table>",s.setAttribute("style","font-size: 120%; text-align: right; padding: 1em; border: solid gray 0.05em;"),p=s.children[0].children[0],d=new h.BlankNode,m=Ka(l);try{for(m.s();!(f=m.n()).done;)x=f.value,p.appendChild(o.createElement("tr")).appendChild(r(x))}catch(e){m.e(e)}finally{m.f()}return e.abrupt("return",t);case 6:case"end":return e.stop()}},e,null,[[2,4]])})),xi.apply(this,arguments)}function bi(e,t,n){var a=e.dom,i=hi(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 gi(e,t){return yi.apply(this,arguments)}function yi(){return yi=b(y().mark(function e(t,n){var a,i,r,o,s,c,l,u,p,d,m,f,h,x,g,k;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t.dom,i=t.div,r=a.createElement("div"),i.appendChild(r),t.me=w.authn.currentUser(),t.me){e.next=1;break}return r.innerHTML='<p style="margin:2em;">(Log in list your stuff)</p>',e.abrupt("return",t);case 1:return e.next=2,ri(t.me);case 2:o=e.sent,r.innerHTML="<table><tbody></tbody></table>",r.setAttribute("style","font-size: 120%; text-align: right; padding: 1em; border: solid #eee 0.5em;"),s=r.firstChild,c=s.firstChild,l=Ka(o),e.prev=3,l.s();case 4:if((u=l.n()).done){e.next=13;break}return p=u.value,d=bi(t,0,p),c.appendChild(d),e.next=5,oi(p,n.type||null);case 5:0===(m=e.sent).length&&(d.style.display="none"),f=Ka(m),e.prev=6,x=y().mark(function e(){var t,n;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t=h.value,n=Pt(a,v.solid("instance"),t.instance,{deleteFunction:function(){var e=b(y().mark(function e(){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,si(t);case 1:c.removeChild(n);case 2:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}()}),n.children[0].style.paddingLeft="3em",c.appendChild(n);case 1:case"end":return e.stop()}},e)}),f.s();case 7:if((h=f.n()).done){e.next=9;break}return e.delegateYield(x(),"t0",8);case 8:e.next=7;break;case 9:e.next=11;break;case 10:e.prev=10,g=e.catch(6),f.e(g);case 11:return e.prev=11,f.f(),e.finish(11);case 12:e.next=4;break;case 13:e.next=15;break;case 14:e.prev=14,k=e.catch(3),l.e(k);case 15:return e.prev=15,l.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]])})),yi.apply(this,arguments)}function wi(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 a=e.createElement("div");a.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(a);var i=e.createElement("label");i.setAttribute("style","margin-right: 5px; font-weight: 800"),i.innerText="Select an identity provider";var r=e.createElement("button");r.innerHTML='<img src="https://solidos.github.io/solid-ui/src/icons/noun_1180156.svg" style="width: 2em; height: 2em;" title="Cancel">',r.setAttribute("style","background-color: transparent; border: none;"),r.addEventListener("click",function(){t.remove()}),a.appendChild(i),a.appendChild(r);var o=function(){var e=b(y().mark(function e(t){var n,a;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,w.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,w.authSession.login({redirectUrl:a.href,oidcIssuer:t});case 1:e.next=3;break;case 2:e.prev=2,z(e.catch(0).message);case 3:case"end":return e.stop()}},e,null,[[0,2]])}));return function(t){return e.apply(this,arguments)}}(),s=e.createElement("div");s.setAttribute("style","\n border-bottom: 1px solid #DDD;\n display: flex;\n flex-direction: column;\n padding-top: 10px;\n ");var c=e.createElement("div");c.setAttribute("style","\n display: flex;\n flex-direction: row;\n ");var l=e.createElement("label");l.innerText="Enter the URL of your identity provider:",l.setAttribute("style","color: #888");var u=e.createElement("input");u.setAttribute("type","text"),u.setAttribute("style","margin-left: 0 !important; flex: 1; margin-right: 5px !important"),u.setAttribute("placeholder","https://example.com"),u.value=localStorage.getItem("loginIssuer")||"";var p=e.createElement("button");p.innerText="Go",p.setAttribute("style","margin-top: 12px; margin-bottom: 12px;"),p.addEventListener("click",function(){o(u.value)}),s.appendChild(l),c.appendChild(u),c.appendChild(p),s.appendChild(c),n.appendChild(s);var d=e.createElement("div");d.setAttribute("style","\n display: flex;\n flex-direction: column;\n padding-top: 10px;\n ");var m=e.createElement("label");m.innerText="Or pick an identity provider from the list below:",m.setAttribute("style","color: #888"),d.appendChild(m),(0,w.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(){o(t.uri)}),d.appendChild(n)}),n.appendChild(d)}function ki(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,w.offlineTestID)(),i=e.createElement("div");function r(e){e&&(a=w.authn.saveUser(e),i.refresh(),t&&t(a.uri))}function o(e){var n=a;w.authSession.logout().then(function(){var e="Your WebID was ".concat(n,". It has been forgotten.");a=null;try{z(e)}catch(t){window.alert(e)}i.refresh(),t&&t(null)},function(e){z("Fail to log out:"+e)})}function s(){a=w.authn.currentUser(),i.refresh()}return i.refresh=function(){var t=w.authSession.info;((a=t&&t.webId&&t.isLoggedIn?w.solidLogicSingleton.store.sym(t.webId):null)&&i.me!==a.uri||!a&&i.me)&&(bt(i),a?i.appendChild(function(t,n){var a=n.buttonStyle||_e.signInAndUpButtonStyle,i="WebID logout";if(t){var r=w.solidLogicSingleton.store.any(t,v.foaf("nick"))||w.solidLogicSingleton.store.any(t,v.foaf("name"));r&&(i="Logout "+r.value)}var s=e.createElement("input");return s.setAttribute("type","button"),s.setAttribute("value",i),s.setAttribute("style","".concat(a)),s.addEventListener("click",o,!1),s}(a,n)):i.appendChild(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=(n=n||{}).buttonStyle||_e.signInAndUpButtonStyle,i=e.createElement("div"),r="SolidSignInOrSignUpBox";Y.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(_e.headerBannerLoginInput)+_e.signUpBackground),w.authSession.events.on("login",function(){var t=w.authn.currentUser();if(t){var n=t.uri,a=e.getElementsByClassName(r);Y.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 s=o.parentNode;s&&s.removeChild(o)}catch(t){Y.Rm("## Error satisfying login box: ".concat(t)),o.appendChild(ct(e,t))}}}}),o.addEventListener("click",function(){var n=(0,w.offlineTestID)();if(n)return t(n.uri);wi(e)},!1);var s=e.createElement("input");return i.appendChild(s),s.setAttribute("type","button"),s.setAttribute("value","Sign Up for Solid"),s.setAttribute("style","".concat(a).concat(_e.headerBannerLoginInput)+_e.signInBackground),s.addEventListener("click",function(e){(new cn).signup().then(function(e){Y.Rm("signInOrSignUpBox signed up "+e),t(e)})},!1),i}(e,r,n))),i.me=a?a.uri:null},i.refresh(),s(),w.authSession.events.on("login",s),w.authSession.events.on("logout",s),i.me="99999",i.refresh(),i}function Ci(e,t,n){var a=t.noun,i=t.appPathSegment,r=(0,w.offlineTestID)(),o=e.createElement("div"),s={me:r,dom:e,div:o};function c(t,n){o.appendChild(ct(e,t,n))}function l(e){var t,n=w.solidLogicSingleton.store.any(e,v.space("uriPrefix"));"/"!==(t=n?n.value:e.uri.split("#")[0]).slice(-1)&&(Y.Rm("".concat(i,": No / at end of uriPrefix ").concat(t)),t="".concat(t,"/"));var a=new Date;return t+="".concat(i,"/id").concat(a.getTime(),"/")}return li(s).then(function(t){function i(){return i=b(y().mark(function n(a){var i,r,o,s,c,l;return y().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return i=m.appendChild(e.createElement("tr")),(r=i.appendChild(e.createElement("td"))).setAttribute("colspan","3"),r.style.padding="0.5em",l=encodeURI,n.next=1,Ft(e,w.solidLogicSingleton.store,r,v.solid("URL"),v.space("Workspace"),"Workspace");case 1:if(o=l(n.sent),s=$a(t.preferencesFile),c=[(0,h.st)(t.me,v.space("workspace"),s,t.preferencesFile),(0,h.st)(s,v.space("uriPrefix"),o,t.preferencesFile)],w.solidLogicSingleton.store.updater){n.next=2;break}throw new Error("store has no updater");case 2:return n.next=3,w.solidLogicSingleton.store.updater.update([],c);case 3:case"end":return n.stop()}},n)})),i.apply(this,arguments)}var r=t.me,s=t.preferencesFile,u=null,p=w.solidLogicSingleton.store.each(r,v.space("workspace"),void 0,s),d=w.solidLogicSingleton.store.each(r,v.space("storage"));0===p.length&&d&&(c("You don't seem to have any workspaces. You have ".concat(d.length," storage spaces."),"white"),d.map(function(e){return p=p.concat(w.solidLogicSingleton.store.each(e,v.ldp("contains")))}).filter(function(e){return e.id?["public","private"].includes(e.id().toLowerCase()):""})),1===p.length&&(c("Workspace used: ".concat(p[0].uri),"white"),u=l(p[0]));var m=e.createElement("table");m.setAttribute("style","border-collapse:separate; border-spacing: 0.5em;"),o.appendChild(m),o.appendChild(e.createElement("hr"));var f=o.appendChild(e.createElement("p"));f.setAttribute("style",_e.commentStyle),f.textContent="Where would you like to store the data for the ".concat(a,"?\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 x=o.appendChild(e.createElement("input"));x.setAttribute("type","text"),x.setAttribute("style",_e.textInputStyle),x.size=80,x.label="base URL",x.autocomplete="on",u&&(x.value=u),t.baseField=x,o.appendChild(e.createElement("br"));var g,k,C,E,A,_,j,S=o.appendChild(e.createElement("button"));S.setAttribute("style",_e.buttonStyle),S.textContent="Start new ".concat(a," at this URI"),S.addEventListener("click",function(e){var t=x.value.replace(" ","%20");"/"!==t.slice(-1)&&(t+="/"),n(null,t)}),p=p.filter(function(e){return!w.solidLogicSingleton.store.holds(e,v.rdf("type"),v.space("MasterWorkspace"))});for(var T="height: 3em; margin: 1em; padding: 1em white; border-radius: 0.3em;",L="".concat(T,"border: 0px;"),R=0;R<p.length;R++){if(A=p[R],E=e.createElement("tr"),0===R&&((g=e.createElement("td")).setAttribute("rowspan","".concat(p.length)),g.textContent="Choose a workspace for this:",g.setAttribute("style","vertical-align:middle;"),E.appendChild(g)),k=e.createElement("td"),!(_=w.solidLogicSingleton.store.anyValue(A,v.ui("style")))){var N="#".concat((16777215&function(e){return e.split("").reduce(function(e,t){return(e=(e<<5)-e+t.charCodeAt(0))&e},0)}(A.uri)|12632256).toString(16));_="color: black ; background-color: ".concat(N,";")}k.setAttribute("style",L+_),E.target=A.uri;var B=w.solidLogicSingleton.store.any(A,v.rdfs("label"));B||(B=A.uri.split("/").slice(-1)[0]||A.uri.split("/").slice(-2)[0]),k.textContent=B||"???",E.appendChild(k),0===R&&((C=e.createElement("td")).setAttribute("rowspan","".concat(p.length,"1")),C.setAttribute("style","width:50%;"),E.appendChild(C)),m.appendChild(E),j=(j=w.solidLogicSingleton.store.any(A,v.rdfs("comment")))?j.value:"Use this workspace",k.addEventListener("click",function(t){C.textContent=j?j.value:"",C.setAttribute("style",L+_);var a=e.createElement("button");a.textContent="Continue";var i=l(A);x.value=i,a.addEventListener("click",function(e){a.disabled=!0,n(A,i),a.textContent="----\x3e"},!0),C.appendChild(a)},!0)}var I=e.createElement("tr");(k=e.createElement("td")).setAttribute("style",T),k.textContent="+ Make a new workspace",k.addEventListener("click",function(e){return i.apply(this,arguments)}),I.appendChild(k),m.appendChild(I)}).catch(function(e){o.appendChild(ct(s.dom,e))}),o}function Ei(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(Ci(e,t,a))},!1),i.appendChild(r),i}function Ai(){return _i.apply(this,arguments)}function _i(){return(_i=b(y().mark(function e(){var t,n,a,i,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,li({});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",w.solidLogicSingleton.store.each(n,v.rdf("type"),null,a.doc()));case 3:return e.prev=3,r=e.catch(0),Y.R8("Unable to fetch your preferences - this was the error: ",r),e.abrupt("return",[]);case 4:case"end":return e.stop()}},e,null,[[0,3]])}))).apply(this,arguments)}function ji(e){return Si.apply(this,arguments)}function Si(){return(Si=b(y().mark(function e(t){var n;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Ai();case 1:return n=e.sent,e.abrupt("return",t.filter(function(e){return Ti(e,n)}));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Ti(e,t){return(e.audience||[]).reduce(function(e,n){return e&&!!t.find(function(e){return e.equals(n)})},!0)}w.authSession.events.on("logout",b(y().mark(function e(){var t,n,a,i;return y().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,w.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]])})));var Li=function(){return ye(function e(t){ve(this,e),on(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 It(this.groupList.controller.dom,"".concat(Re.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 It(this.groupList.controller.dom,Re.Pt.iconBase+_t["vcard:Individual"],"Add Person",function(t){e.renderSimplifiedBar(t.target),e.renderNameForm(v.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 It(this.groupList.controller.dom,Re.Pt.iconBase+_t["vcard:Group"],"Add Group",function(t){e.renderSimplifiedBar(t.target),e.renderNameForm(v.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 Ft(this.groupList.controller.dom,this.groupList.store,this.barElement,v.vcard("URI"),e,t)}},{key:"renderPublicButton",value:function(){var e=this;return It(this.groupList.controller.dom,Re.Pt.iconBase+_t["foaf:Agent"],"Add Everyone",function(){return e.addAgent(v.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 It(this.groupList.controller.dom,"".concat(Re.Pt.iconBase,"noun_99101.svg"),"Anyone logged In",function(){return e.addAgent(v.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 It(this.groupList.controller.dom,Re.Pt.iconBase+"noun_Robot_849764.svg","A Software Agent (bot)",function(t){e.renderSimplifiedBar(t.target),e.renderNameForm(v.schema("Application"),"bot").then(function(t){return e.addBot(t)}).then(function(){return e.renderCleanup()})})}},{key:"renderAppsButton",value:function(){var e=this;return It(this.groupList.controller.dom,"".concat(Re.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(v.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",_e.trustedAppController);var a=Ot(this.groupList.controller.dom,function(){return e.renderCleanup()});a.setAttribute("style",_e.trustedAppCancelButton),n.insertBefore(a,n.firstChild),this.barElement.appendChild(n)}}},{key:"renderAppsTable",value:(r=b(y().mark(function e(t){var n,a,i=this;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,pi(t);case 1:return n=this.groupList.store.each(t.me,v.acl("trustedApp")),a=n.flatMap(function(e){return i.groupList.store.each(e,v.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",_e.trustedAppAddApplicationsTable),n.forEach(function(n){var r=i.groupList.store.any(n,v.acl("origin"));r||t(new Error("Unable to pick app: ".concat(n.value)));var o=Pt(i.groupList.controller.dom,v.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(Z(i.groupList.controller.subject),"?"),c.appendChild(i.groupList.controller.dom.createElement("td")).appendChild(Dt(i.groupList.controller.dom,function(){return e(r.value)})),a.appendChild(s)})}));case 2:case"end":return e.stop()}},e,this)})),function(e){return r.apply(this,arguments)})},{key:"renderCleanup",value:function(){this.renderBar(),this.groupList.render()}},{key:"addPerson",value:(i=b(y().mark(function e(t){var n;return y().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 Y.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 i.apply(this,arguments)})},{key:"addGroup",value:(a=b(y().mark(function e(t){var n;return y().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 Y.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 a.apply(this,arguments)})},{key:"addAgent",value:(n=b(y().mark(function e(t){return y().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=b(y().mark(function e(t){var n;return y().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 Y.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=b(y().mark(function e(t){var n,a;return y().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,Y.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,a,i,r}(),Ri=v.acl,Ni={13:"Owners",9:"Owners (write locked)",5:"Editors",3:"Posters",2:"Submitters",1:"Viewers"},Bi={13:!0,5:!0,3:!0,2:!0,1:!0},Ii={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"},Oi=function(){return ye(function e(t,n,a,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};ve(this,e),this.doc=t,this.aclDoc=n,this.controller=a,this._options=r,this.defaults=this._options.defaults||!1,this._store=i,this.aclMap=te(t,n,i,this.defaults),this.byCombo=re(this.aclMap),this.addAgentButton=new Li(this),this.rootElement=this.controller.dom.createElement("div"),this.rootElement.setAttribute("style",_e.accessGroupList)},[{key:"store",get:function(){return this._store},set:function(e){this._store=e,this.aclMap=te(this.doc,this.aclDoc,e,this.defaults),this.byCombo=re(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=Di(t);(this.controller.isEditable&&Bi[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",_e.accessGroupListItem),je(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",_e.group),this.controller.isEditable)switch(e){case 1:a.setAttribute("style",_e.group1);break;case 2:a.setAttribute("style",_e.group2);break;case 3:a.setAttribute("style",_e.group3);break;case 5:a.setAttribute("style",_e.group5);break;case 9:a.setAttribute("style",_e.group9);break;case 13:a.setAttribute("style",_e.group13);break;default:a.setAttribute("style",_e.group)}a.innerText=Ni[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 i=this.controller.dom.createElement("div");if(i.setAttribute("style",_e.group),this.controller.isEditable)switch(e){case 1:i.setAttribute("style",_e.group1);break;case 2:i.setAttribute("style",_e.group2);break;case 3:i.setAttribute("style",_e.group3);break;case 5:i.setAttribute("style",_e.group5);break;case 9:i.setAttribute("style",_e.group9);break;case 13:i.setAttribute("style",_e.group13);break;default:i.setAttribute("style",_e.group)}var r=i.appendChild(this.controller.dom.createElement("table"));(this.byCombo[t]||[]).map(function(e){var a=Ce(e,2),i=a[0],o=a[1];return n.renderAgent(r,t,i,o)}).forEach(function(e){return r.appendChild(e)});var o=this.controller.dom.createElement("div");if(o.setAttribute("style",_e.group),this.controller.isEditable)switch(e){case 1:o.setAttribute("style",_e.group1);break;case 2:o.setAttribute("style",_e.group2);break;case 3:o.setAttribute("style",_e.group3);break;case 5:o.setAttribute("style",_e.group5);break;case 9:o.setAttribute("style",_e.group9);break;case 13:o.setAttribute("style",_e.group13);break;default:o.setAttribute("style",_e.group)}return o.innerText=Ii[e]||"Unusual combination",[a,i,o]}},{key:"renderAgent",value:function(e,t,n,a){var i=this,r=Pt(this.controller.dom,Ri(n),(0,h.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:(a=b(y().mark(function e(t,n,a){var i,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=this.byCombo[t]||[],(r=i.find(function(e){var t=Ce(e,2),i=t[0],r=t[1];return i===n&&r===a}))&&i.splice(i.indexOf(r),1),e.next=1,this.controller.save();case 1:case"end":return e.stop()}},e,this)})),function(e,t,n){return a.apply(this,arguments)})},{key:"addNewURI",value:(n=b(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,this.handleDroppedUri(t,Di(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=b(y().mark(function e(t,n){var a,i=this;return y().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=b(y().mark(function e(t,n){var a,i,r,o,s,c,l,u=arguments;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a=u.length>2&&void 0!==u[2]&&u[2],i=Fi(t,this.store),r=(0,h.sym)(t),i||a){e.next=5;break}return Y.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,l=e.catch(1),s="Ignore error looking up dropped thing: ".concat(l),Y.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 c=" Error: Drop fails to drop appropriate thing! ".concat(t),Y.z3(c),e.abrupt("return",Promise.reject(new Error(c)));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]),Y.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[Di(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,a}();function Di(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 Fi(e,t){var n=(0,h.sym)(e),a=t.findTypeURIs(n);for(var i in a)Y.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 Y.Rm("Assuming final slash on dragged origin URI was unintended!"),{pred:"origin",obj:(0,h.sym)(e.slice(0,-1))};if(v.vcard("WebID").uri in a)return{pred:"agent",obj:n};if(v.vcard("Group").uri in a)return{pred:"agentGroup",obj:n};if(n.sameTerm(v.foaf("Agent"))||n.sameTerm(v.acl("AuthenticatedAgent"))||n.sameTerm(v.rdf("Resource"))||n.sameTerm(v.owl("Thing")))return{pred:"agentClass",obj:n};if(v.vcard("Individual").uri in a||v.foaf("Person").uri in a||v.foaf("Agent").uri in a){var r=t.any(n,v.foaf("preferredURI"));return r?{pred:"agent",obj:(0,h.sym)(r)}:{pred:"agent",obj:n}}return v.solid("AppProvider").uri in a?{pred:"origin",obj:n}:v.solid("AppProviderClass").uri in a?{pred:"originClass",obj:n}:(Y.Rm(" Triage fails for "+e),null)}var Pi=function(){return ye(function e(t,n,a,i,r,o,s,c,l,u,p,d){if(ve(this,e),this.subject=t,this.noun=n,this.context=a,this.statusElement=i,this.targetIsProtected=r,this.targetDoc=o,this.targetACLDoc=s,this.defaultHolder=c,this.defaultACLDoc=l,this.prospectiveDefaultHolder=u,this.store=p,this.dom=d,this.rootElement=d.createElement("div"),this.rootElement.setAttribute("style",_e.aclGroupContent),this.isContainer="/"===o.uri.slice(-1),c&&l){this.isUsingDefaults=!0;var m=ee(this.targetDoc,s,c,l);this.mainCombo=new Oi(o,s,this,m,{defaults:this.isContainer}),this.defaultsCombo=null,this.defaultsDiffer=!1}else this.isUsingDefaults=!1,this.mainCombo=new Oi(o,s,this,p),this.defaultsCombo=new Oi(o,s,this,p,{defaults:this.isContainer}),this.defaultsDiffer=!ne(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=Hi(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(Z(this.prospectiveDefaultHolder)):""),t.setAttribute("style",_e.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",_e.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",_e.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",_e.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",_e.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",_e.defaultsController);var n=t.appendChild(this.dom.createElement("div"));n.innerText="Access to things within this folder:",n.setAttribute("style",_e.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",_e.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",_e.aclControlBoxStatusRevealed),this.statusElement.innerText=e,this.statusElement.setAttribute("style",_e.temporaryStatusInit),setTimeout(function(){t.statusElement.setAttribute("style",_e.temporaryStatusEnd)}),setTimeout(function(){t.statusElement.innerText=""},5e3)}},{key:"renderStatus",value:function(e){e||this.statusElement.setAttribute("style",_e.aclControlBoxStatusRevealed),this.statusElement.innerText=e}},{key:"addAcls",value:(a=b(y().mark(function e(){var t,n,a,i=this;return y().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",Y.z3(t),e.abrupt("return",Promise.reject(t));case 1:return ee(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),Y.z3(n),e.abrupt("return",Promise.reject(n));case 5:case"end":return e.stop()}},e,this,[[2,4]])})),function(){return a.apply(this,arguments)})},{key:"addDefaults",value:(n=b(y().mark(function e(){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.defaultsCombo=new Oi(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=b(y().mark(function e(){var t,n,a;return y().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,fe(this.targetDoc.uri);case 3:this.prospectiveDefaultHolder=e.sent,e.next=5;break;case 4:e.prev=4,n=e.catch(2),Y.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),Y.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=b(y().mark(function e(){var t,n;return y().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,Y.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,h.graph)();this.isContainer?this.defaultsCombo&&this.defaultsDiffer?(se(t,this.targetDoc,this.mainCombo.byCombo,this.targetACLDoc,!0),se(t,this.targetDoc,this.defaultsCombo.byCombo,this.targetACLDoc,!1,!0)):se(t,this.targetDoc,this.mainCombo.byCombo,this.targetACLDoc,!0,!0):se(t,this.targetDoc,this.mainCombo.byCombo,this.targetACLDoc,!0),t.fetcher=(0,h.fetcher)(t,{fetch:this.store.fetcher._fetch});var n=t.updater||new h.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&&!ne(e.mainCombo.aclMap,e.defaultsCombo.aclMap),Y.Rm("ACL modification: success!"),a()})})}}]);var e,t,n,a}(),Ui=window,Mi=Symbol("prevent double triggering of drop event");function zi(e){e.stopPropagation(),e.preventDefault()}function qi(e){e.dataTransfer.files.length>0&&(Ui.confirm("Are you sure you want to drop this file here? (Cancel opens it in a new tab)")||(e.stopPropagation(),e.preventDefault(),(0,Y.Rm)("@@@@ document-level DROP suppressed: "+e.dataTransfer.dropEffect)))}function Hi(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 Gi(){return Gi=b(y().mark(function e(t,n,a,i,r,o,s){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e,c){return de(t,function(){var t=b(y().mark(function t(l,u,p,d,m,f){var h,v,x,b,g;return y().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(b=function(e){return new Pi(a,i,r,s,v,p,d,m,f,e,n,o)},l){t.next=1;break}return t.abrupt("return",c(new Error("Error reading ".concat(u?"":" default ","ACL. status ").concat(p,": ").concat(d))));case 1:if(h=Vi(p),(v=Wi(p,d,n)||Ji(p))||!h){t.next=5;break}return t.prev=2,t.next=3,fe(h);case 3:return x=t.sent,t.abrupt("return",e(b(x)));case 4:t.prev=4,g=t.catch(2),(0,Y.R8)(g);case 5:return t.abrupt("return",e(b()));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)})),Gi.apply(this,arguments)}function Vi(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 Wi(e,t,n){return n.holds(e,v.rdf("type"),v.space("Storage"),t)}function Ji(e){return e.uri===e.site().uri}var $i={adoptACLDefault:ee,readACL:te,sameACL:ne,ACLunion:ae,loadUnionACL:ie,ACLbyCombination:re,makeACLGraph:oe,makeACLGraphbyCombo:se,ACLToString:function(e){return ce(re(e))},comboToString:ce,makeACLString:function(e,t,n){var a=(0,h.graph)();return oe(a,e,t,n),(0,h.serialize)(n,a,n.uri,"text/turtle")||""},putACLObject:le,putACLbyCombo:ue,fixIndividualCardACL:function(e,t,n){var a=X.each(void 0,v.vcard("hasMember"),e);a?pe(e,a,t,n):(t("This card is in no groups"),n(!0))},fixIndividualACL:pe,setACL:function(e,t,n){var a=X.any(e,w.ACL_LINK);if(!X.fetcher)throw new Error("Store has no fetcher");a?X.fetcher.webOperation("PUT",a.value,{data:t,contentType:"text/turtle"}).then(function(e){n(e.ok,e.error||"")}):X.fetcher.nowOrWhenFetched(e,void 0,function(a,i){if(!a)return n(a,"Gettting headers for ACL: "+i);var r=X.any(e,w.ACL_LINK);if(r){if(!X.fetcher)throw new Error("Store has no fetcher");X.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)})},getACLorDefault:de,getACL:me},Qi={preventBrowserDropEvents:function(e){if((0,Y.Rm)("preventBrowserDropEvents called."),void 0!==Ui){if(Ui[Mi])return;Ui[Mi]=!0}e.addEventListener("drop",qi,!1),e.addEventListener("dragenter",zi,!1),e.addEventListener("dragover",zi,!1)},shortNameForFolder:Hi,ACLControlBox5:function(e,t,n,a){var i=t.dom,r=e.doc(),o=i.createElement("div");o.setAttribute("style",_e.aclControlBoxContainer);var s=o.appendChild(i.createElement("h1"));s.textContent="Sharing for ".concat(n," ").concat(Z(e)),s.setAttribute("style",_e.aclControlBoxHeader);var c=o.appendChild(i.createElement("div"));c.setAttribute("style",_e.aclControlBoxStatus);try{(function(e,t,n,a,i,r,o){return Gi.apply(this,arguments)})(r,a,e,n,t,i,c).then(function(e){return o.appendChild(e.render())})}catch(e){c.innerText=e}return o}},Zi=w.solidLogicSingleton.store;var Ki={newThingUI:function(e,t,n){var a=e.dom,i=e.div;if(e.me&&!e.me.uri)throw new Error("newThingUI: Invalid userid: "+e.me);var r="padding: 0.7em; width: 2em; height: 2em;",o=i.appendChild(a.createElement("img")),s=!1;o.setAttribute("src",Re.Pt.iconBase+"noun_34653_green.svg"),o.setAttribute("style",r),o.setAttribute("title","Add another tool");var c=function(e){var t=i.appendChild(a.createElement("pre"));t.setAttribute("style","background-color: pink"),t.appendChild(a.createTextNode(e))};function l(e){for(var t=0;t<p.length;t++){var n=r+e;p[t].disabled&&(n+="opacity: 0.3;"),p[t].setAttribute("style",n)}}function u(e){s=!s,o.setAttribute("style",r+(s?"background-color: yellow;":"")),l(s?"":"display: none;")}o.addEventListener("click",u);var p=[],d=Object.values(n).filter(function(e){return e.mintNew}),m=d.reduce(function(e,t){return t.mintClass&&(e[t.mintClass.uri]=(e[t.mintClass.uri]||0)+1),e},{});d.forEach(function(n){var i=e.div.appendChild(a.createElement("img"));i.setAttribute("src",n.icon);var o=n.mintClass?m[n.mintClass.uri]>1?"".concat(Z(n.mintClass)," (using ").concat(n.name," pane)"):Z(n.mintClass):n.name+" @@";i.setAttribute("title","Make new "+o),i.setAttribute("style",r+"display: none;"),p.push(i),i.disabled||i.addEventListener("click",function(s){var p;!function(e){l("display: none;"),e.setAttribute("style",r+"background-color: yellow;")}(i),p={event:s,folder:e.folder||null,iconEle:i,pane:n,noun:o,noIndexHTML:!0,div:e.div,me:e.me,dom:e.dom,refreshTarget:e.refreshTarget},new Promise(function(n,i){var r;function o(n,r){pi(e).then(function(e){var o=Object.assign({newBase:r,folder:p.folder||void 0,workspace:n},p);for(var s in p)o[s]=p[s];Y.Rm("newThingUI: Minting new ".concat(o.pane.name," at ").concat(o.newBase)),p.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("/");Y.Rm(" new thing is packge? "+t),t?Zi.add(e.folder,v.ldp("contains"),Zi.sym(e.newBase),e.folder.doc()):Zi.add(e.folder,v.ldp("contains"),e.newInstance,e.folder.doc()),e.refreshTarget&&e.refreshTarget.refresh&&e.refreshTarget.refresh()}else{var n=p.div.appendChild(a.createElement("p"));n.setAttribute("style","font-size: 120%;"),n.innerHTML="Your <a target='_blank' href='"+e.newInstance.uri+"'><b>new "+p.noun+"</b></a> is ready to be set up. <br/><br/><a target='_blank' href='"+e.newInstance.uri+"'>Go to your new "+p.noun+".</a>"}u()}).catch(function(e){c(e),i(e)})},function(e){c("Error logging on: "+e)})}var s=p.pane;p.noun=s.mintClass?Z(s.mintClass):s.name,p.appPathSegment=p.noun.slice(0,1).toUpperCase()+p.noun.slice(1),p.folder?Ft(a,0,p.div,v.foaf("name"),null,p.noun).then(function(e){if(e){var t=p.folder.uri;t.endsWith("/")||(t+="/"),o(null,t=t+encodeURIComponent(e)+"/")}else u()}):(r=Ci(a,{noun:p.noun,appPathSegment:p.appPathSegment},o),p.div.appendChild(r))})})})}},Yi=w.solidLogicSingleton.store;var Xi={matrixForQuery:function(e,t,n,a,i,r,o){var s=e.createElement("table"),c=e.createElement("tr");c.appendChild(e.createElement("td")).setAttribute("class","MatrixCorner"),s.appendChild(c),s.lastHeader=c;var l=[],u=[],p=function(e,t,n,a){for(;e.firstChild;)e.removeChild(e.firstChild);e.setAttribute("style",""),e.style.textAlign="center",r.cellFunction?r.cellFunction(e,t,n,a):(e.textContent=Z(a),e.setAttribute("style","padding: 0.3em")),delete e.old},d=function(t){var n=t.toNT();if(u[n])return u[n];var a=e.createElement("tr"),i=a.appendChild(e.createElement("td"));i.setAttribute("style","padding: 0.3em;"),i.textContent=Z(t),"NamedNode"===t.termType&&Yi.fetcher.nowOrWhenFetched(t.uri.split("#")[0],void 0,function(e,n,a){e&&(i.textContent=Z(t))});for(var o=0;o<l.length;o++)p(a.appendChild(e.createElement("td")),h.fromNT(l[o]),t,null);a.dataValueNT=n,u[n]=a;for(var c=s.lastHeader.nextSibling;c;c=c.nextSibling)if(n>c.dataValueNT&&r&&r.yDecreasing||n<c.dataValueNT&&(!r||!r.yDecreasing))return s.insertBefore(a,c);return s.appendChild(a)},m=function(t){for(var n=t.toNT(),a=null,i=0;i<l.length;i++){if(l[i]===n)return i;if(n>l[i]&&r.xDecreasing||n<l[i]&&!r.xDecreasing){l=l.slice(0,i).concat([n]).concat(l.slice(i)),a=i;break}}null===a&&(a=l.length,l.push(n));for(var o=s.firstChild;o;o=o.nextSibling){var c=o.dataValueNT,u=e.createElement("td");if(u.style.textAlign="center",o===s.firstChild?u.textContent=Z(t):p(u,t,h.fromNT(c),null),a===l.length-1)o.appendChild(u);else{for(var d=o.firstChild,m=0;m<a+1;m++)d=d.nextSibling;o.insertBefore(u,d)}}return a},f=function(){var e,t,n=[],a=[];if(r.set_y)for(var i=0;i<r.set_y.length;i++)a[r.set_y[i]]=!0;if(r.set_x)for(var o=0;o<r.set_x.length;o++)n[m(r.set_x[o])+1]=!0;for(var c=1;c<s.children.length;c++){e=s.children[c];for(var d=1;d<e.children.length;d++)if((t=e.children[d]).old){var f=h.fromNT(e.dataValueNT),v=h.fromNT(l[d-1]);p(t,v,f,null)}else a[e.dataValueNT]=!0,n[d]=!0}for(var x=0;x<s.children.length;x++)if(e=s.children[x],x>0&&!a[e.dataValueNT])delete u[e.dataValueNT],s.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<l.length;w++)n[w+1]&&y.push(l[w]);l=y};s.refresh=function(){!function(){for(var e=1;e<s.children.length;e++)for(var t=s.children[e],n=1;n<t.children.length;n++)t.children[n].old=!0}(),Yi.query(t,v,void 0,f)};var v=function(e){var t=e[n.toString()],r=e[a.toString()],o=e[i.toString()],s=d(r),c=m(t),l=s.children[c+1];p(l,t,r,o)};if(r.set_y)for(var x=0;x<r.set_y.length;x++)d(r.set_y[x]);if(r.set_x)for(var b=0;b<r.set_x.length;b++)m(r.set_x[b]);return Yi.query(t,v,void 0,o),s}},er=Re.Pt.iconBase+"noun_Camera_1618446_000000.svg",tr=Re.Pt.iconBase+"noun_479395.svg";function nr(e,t,n,a){var i,r,o,s,c=e.createElement("div"),l=c.appendChild(e.createElement("table")),u=l.appendChild(e.createElement("tr")).appendChild(e.createElement("td"));u.setAttribute("colspan","4");var p=l.appendChild(e.createElement("tr"));p.appendChild(e.createElement("td")).appendChild(Ot(e)).addEventListener("click",function(e){x(),a(null)});var d=p.appendChild(e.createElement("td")).appendChild(It(e,tr,"Retake"));d.addEventListener("click",function(e){u.removeChild(s),h()}),d.style.visibility="collapse";var m=p.appendChild(e.createElement("td")).appendChild(It(e,Re.Pt.iconBase+"noun_10636.svg","Snap"));m.addEventListener("click",function(){(s=e.createElement("canvas")).setAttribute("width",_e.canvasWidth),s.setAttribute("height",_e.canvasHeight),s.setAttribute("style",_e.controlStyle),u.appendChild(s),s.getContext("2d").drawImage(o,0,0,s.width,s.height),o.parentNode.removeChild(o),s.toBlob(function(e){var t="got blob type ".concat(e.type," size ").concat(e.size);Y.Rm(t),i=n(),r=e,f.style.visibility="visible",d.style.visibility="visible",m.style.visibility="collapse"},"image/png")}),m.style.visibility="collapse";var f=p.appendChild(e.createElement("td")).appendChild(Dt(e));function h(){if((o=u.appendChild(e.createElement("video"))).setAttribute("controls","1"),o.setAttribute("autoplay","1"),o.setAttribute("style",_e.controlStyle),!navigator.mediaDevices)throw new Error("navigator.mediaDevices not available");navigator.mediaDevices.getUserMedia(v).then(function(e){o.srcObject=e,m.style.visibility="visible",f.style.visibility="collapse",d.style.visibility="collapse"})}f.addEventListener("click",function(e){!function(e,n){var i=e.type;Y.Rm("Putting "+e.size+" bytes of "+i+" to "+n),t.fetcher.webOperation("PUT",n.uri,{data:e,contentType:i}).then(function(e){Y.Rm("ok saved "+n),x(),a(n)},function(e){x(),alert(e)})}(r,i)}),f.style.visibility="collapse";var v={video:!0};function x(){o&&o.srcObject&&o.srcObject.getVideoTracks().forEach(function(e){return e.stop()})}return h(),c}var ar={cameraCaptureControl:nr,cameraButton:function(e,t,n,a){var i,r=e.createElement("div"),o=It(e,er,"Take picture");function s(e){return c.apply(this,arguments)}function c(){return(c=b(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r.removeChild(i),r.appendChild(o),a(t);case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}return r.appendChild(o),o.addEventListener("click",function(a){r.removeChild(o),i=nr(e,t,n,s),r.appendChild(i)}),r}};var ir=i(580),rr=i.n(ir);const or={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let sr;const cr=new Uint8Array(16);const lr=[];for(let e=0;e<256;++e)lr.push((e+256).toString(16).slice(1));function ur(e,t=0){return(lr[e[t+0]]+lr[e[t+1]]+lr[e[t+2]]+lr[e[t+3]]+"-"+lr[e[t+4]]+lr[e[t+5]]+"-"+lr[e[t+6]]+lr[e[t+7]]+"-"+lr[e[t+8]]+lr[e[t+9]]+"-"+lr[e[t+10]]+lr[e[t+11]]+lr[e[t+12]]+lr[e[t+13]]+lr[e[t+14]]+lr[e[t+15]]).toLowerCase()}function pr(e,t,n){const a=(e=e||{}).random??e.rng?.()??function(){if(!sr){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");sr=crypto.getRandomValues.bind(crypto)}return sr(cr)}();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 ur(a)}const dr=function(e,t,n){return!or.randomUUID||t||e?pr(e,t,n):or.randomUUID()};var mr,fr=w.solidLogicSingleton.store,hr=function(){return ye(function e(t,n,a,i){ve(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 xr(n,this.selectedgroup).render();var a=document.createElement("button");a.textContent=rr()("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=rr()("Pick an existing group"),i.style.margin="auto",i.addEventListener("click",function(n){new vr(t,a,e.onSelectGroup).render()});var r=document.createElement("button");r.textContent=rr()("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 br(e.element,a,n,e.onSelectGroup).render()}).catch(function(t){e.element.appendChild(ct(document,rr()("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(ct(document,rr()("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){fr.fetcher.nowOrWhenFetched(e,function(a,i){if(!a)return n(i);var r=fr.any(null,v.solid("forClass"),v.vcard("AddressBook"));if(!r)return n(new Error("no address book registered in the solid type index "+e));var o=fr.any(r,v.solid("instance"));if(!o)return n(new Error("incomplete address book registration"));fr.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=kr(e),a=n.groupIndex,i=n.groupContainer,r=h.sym("".concat(i.uri).concat(dr().slice(0,8),".ttl#this")),o=t||"Untitled Group",s=[r.doc(),a].map(function(t){var n=h.st(r,v.rdf("type"),v.vcard("Group"),t),i=h.st(r,v.vcard("fn"),o,r.doc(),t),s=h.st(e,v.vcard("includesGroup"),r,t),c=t.equals(a)?[n,i,s]:[n,i];return wr(t.uri,{toIns:c}).then(function(){c.forEach(function(e){fr.add(e)})})});return Promise.all(s).then(function(){return{group:r}}).catch(function(e){throw Y.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()}}])}(),vr=function(){return ye(function e(t,n,a){ve(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 xr(a,t).render(),n.appendChild(a)}),e.element.innerHTML="",e.element.appendChild(n)}).catch(function(t){e.element.appendChild(ct(document,rr()("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=kr(e.book).groupIndex;fr.fetcher.nowOrWhenFetched(a,function(a,i){if(!a)return n(i);var r=fr.each(e.book,v.vcard("includesGroup"));return t(r)})})}},{key:"handleClickGroup",value:function(e){var t=this;return function(n){t.onSelectGroup(e)}}}])}(),xr=function(){return ye(function e(t,n){ve(this,e),this.element=t,this.group=n},[{key:"render",value:function(){var e=document.createElement("div");return e.textContent=rr()(yr(this.group,v.vcard("fn"),"[".concat(this.group.value,"]"))),this.element.innerHTML="",this.element.appendChild(e),this}}])}(),br=function(){return ye(function e(t,n,a,i,r){ve(this,e),this.element=t,this.book=n,this.group=a,this.onGroupChanged=function(e,t,n){r&&r(e,t,n)},this.groupChangedCb=r,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",je(t,function(t){t.forEach(function(t){e.add(t).catch(function(t){e.element.appendChild(ct(document,rr()("Could not add the given WebId. (".concat(t,")"))))})})});var n=document.createElement("input");n.type="text",n.value=yr(this.group,v.vcard("fn"),"Untitled Group"),n.addEventListener("change",function(t){e.setGroupName(t.target.value).catch(function(t){e.element.appendChild(ct(document,"Error changing group name. (".concat(t,")")))})});var a,i,r=document.createElement("label");if(r.textContent=rr()("Group Name:"),r.appendChild(n),t.appendChild(r),fr.any(this.group,v.vcard("hasMember")))fr.match(this.group,v.vcard("hasMember")).forEach(function(n){var a=n.object,i=document.createElement("div");new gr(i,a,e.handleRemove(a)).render(),t.appendChild(i)});else{var o=document.createElement("p");o.textContent=rr()(mr||(a=["\n To add someone to this group, drag and drop their WebID URL onto the box.\n "],i||(i=a.slice(0)),mr=Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(i)}})))),t.appendChild(o)}var s=document.createElement("button");return s.textContent=rr()("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){fr.fetcher.nowOrWhenFetched(e,function(i,r){if(!i)return t.onGroupChanged(r),a(r);var o=h.namedNode(e),s=fr.any(o,v.rdf("type"));return s&&s.equals(v.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=h.st(t.group,v.vcard("hasMember"),e);return fr.holdsStatement(n)?e:wr(t.group.doc().uri,{toIns:[n]}).then(function(){n.why=t.group.doc(),fr.add(n),t.onGroupChanged(null,"added",e),t.render()})})}},{key:"handleRemove",value:function(e){var t=this;return function(n){var a=h.st(t.group,v.vcard("hasMember"),e);return wr(t.group.doc().uri,{toDel:[a]}).then(function(){return fr.remove(a),t.onGroupChanged(null,"removed",e),t.render(),!0}).catch(function(t){var n=fr.any(e,v.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=kr(this.book).groupIndex,a=[this.group.doc(),n].map(function(n){var a=fr.match(t.group,v.vcard("fn"),null,n),i=h.st(t.group,v.vcard("fn"),h.literal(e));return wr(n.value,{toDel:a,toIns:[i]}).then(function(e){fr.removeStatements(a),i.why=n,fr.add(i)})});return Promise.all(a)}}])}(),gr=function(){return ye(function e(t,n,a){ve(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=yr(this.webIdNode,v.foaf("img"),Re.LN+"noun_15059.svg"),a=document.createElement("img");a.src=rr()(n),a.width="50",a.height="50",a.style.margin="5px";var i=yr(this.webIdNode,v.foaf("name"),"[".concat(this.webIdNode,"]")),r=document.createElement("span");r.innerHTML=rr()(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(ct(document,rr()("".concat(t))))})}),o.style.margin="5px",t.appendChild(a),t.appendChild(r),t.appendChild(o),this.element.innerHTML="",this.element.appendChild(t),this}}])}();function yr(e,t,n){var a=fr.any(e,t);return a?a.value:n}function wr(e,t){var n=t.toDel,a=t.toIns;return new Promise(function(e,t){fr.updater.update(n,a,function(n,a,i){if(!a)return t(new Error("PATCH failed for resource <".concat(n,">: ").concat(i)));e()})})}function kr(e){return{groupIndex:fr.any(e,v.vcard("groupIndex")),groupContainer:fr.sym(e.dir().uri+"Group/")}}var Cr={icons:Re.Pt,ns:v,rdf:h,style:_e,widgets:s};function Er(e,t,n,a,i){t=t||w.solidLogicSingleton.store,a=a.doc();var r,o,s=Cr.ns,c=h.Namespace("http://www.w3.org/2005/01/wf/flow#"),l=h.Namespace("http://purl.org/dc/terms/"),u=!!(i=i||{}).newestFirst,p="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;",d=e.createElement("div"),m=w.solidLogicSingleton.store.updater,f=function(t,n){var a=e.createElement("a");return n&&n.uri&&(a.setAttribute("href",n.uri),a.addEventListener("click",Cr.widgets.openHrefInOutlineMode,!0),a.setAttribute("style","color: #3B5998; text-decoration: none; ")),a.textContent=t,a},v=function(t,n){var a=e.createElement("pre");return a.setAttribute("style",n||"color: grey"),d.appendChild(a),a.appendChild(e.createTextNode(t)),a},x=function(e){v(e,"color: #800;")};function b(e){var t=w.solidLogicSingleton.store.any(e,Cr.ns.foaf("nick"));return t?""+t.value:""+Z(e)}function g(t,n,a,i){var r=t.appendChild(f(b(n),n));n.uri&&w.solidLogicSingleton.store.fetcher.nowOrWhenFetched(n.doc(),void 0,function(e,t){r.textContent=b(n)}),t.appendChild(e.createElement("br")),t.appendChild(f(a,i))}function y(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,s.wf("message")),c={};for(o.forEach(function(e){c[e.uri]=!0,r[e.uri]||k(e)}),a=n.firstChild;a;)i=a.nextSibling,a.AJAR_subject&&!c[a.AJAR_subject.uri]&&n.removeChild(a),a=i}var k=function(e){var n={"?msg":e,"?creator":t.any(e,s.foaf("maker")),"?date":t.any(e,l("created")),"?content":t.any(e,s.sioc("content"))};C(n,!0)},C=function(a,i){var o=a["?creator"],s=a["?msg"],c=a["?date"],l=a["?content"],d=c.value,f=e.createElement("tr");f.AJAR_date=d,f.AJAR_subject=s;for(var h=!1,v=r.firstChild;v;v=v.nextSibling)if(d>v.AJAR_date&&u||d<v.AJAR_date&&!u){r.insertBefore(f,v),h=!0;break}h||r.appendChild(f);var b=e.createElement("td");f.appendChild(b),g(b,o,Cr.widgets.shortDate(d),s);var w=e.createElement("td");f.appendChild(w);var k=e.createElement("p");k.setAttribute("style",p+(i?"background-color: #e8ffe8;":"background-color: #white;")),w.appendChild(k),k.textContent=l.value;var C=e.createElement("td");f.appendChild(C);var E=e.createElement("button");C.appendChild(E),E.textContent="-",f.setAttribute("class","hoverControl"),E.setAttribute("class","hoverControlHide"),E.setAttribute("style","color: red;"),E.addEventListener("click",function(a){C.removeChild(E);var i=e.createElement("button");i.textContent="cancel",C.appendChild(i).addEventListener("click",function(e){C.removeChild(o),C.removeChild(i),C.appendChild(E)},!1);var o=e.createElement("button");o.textContent="Delete message",C.appendChild(o).addEventListener("click",function(e){C.removeChild(o),C.removeChild(i),function(e){var a=t.statementsMatching(e).concat(t.statementsMatching(void 0,void 0,e));m.update(a,[],function(e,t,a){t?y(n,r):x("Cant delete messages:"+a)})}(s)},!1)},!1)};(r=e.createElement("table")).fresh=!1,d.appendChild(r),r.setAttribute("style","width: 100%;");var E,A=function(){var i=e.createElement("tr"),r=e.createElement("td"),c=e.createElement("td"),u=e.createElement("td");i.appendChild(r),i.appendChild(c),i.appendChild(u),i.AJAR_date="9999-01-01T00:00:00Z";var d,f,v=function(){d.setAttribute("class","pendingedit"),d.disabled=!0;var r=[],c=new Date,u=""+c.getTime(),p=h.term(c),f=t.sym(a.uri+"#Msg"+u);r.push(new h.Statement(n,s.wf("message"),f,a)),r.push(new h.Statement(f,s.sioc("content"),t.literal(d.value),a)),r.push(new h.Statement(f,l("created"),p,a)),o&&r.push(new h.Statement(f,s.foaf("maker"),o,a));m.update([],r,function(n,a,r){if(a){var s={"?msg":f,"?content":t.literal(d.value),"?date":p,"?creator":o};C(s,!1),d.value="",d.setAttribute("class",""),d.disabled=!1}else i.appendChild(Cr.widgets.errorMessageBlock(e,"Error writing message: "+r))})};i.appendChild(e.createElement("br"));return ci({div:c,dom:e}).then(function(t){o=t.me,g(r,o,"",null),d=e.createElement("textarea"),c.innerHTML="",c.appendChild(d),d.rows=3,d.setAttribute("style",p+"background-color: #eef;"),d.addEventListener("keyup",function(e){13===e.keyCode&&(e.altKey||v())},!1),u.innerHTML="",(f=Cr.widgets.button(e,Cr.icons.iconBase+"noun_383448.svg","Send")).setAttribute("style",Cr.style.buttonStyle+"float: right;"),f.addEventListener("click",v,!1),u.appendChild(f)}),i}();if(u?r.insertBefore(A,r.firstChild):r.appendChild(A),i.query)E=i.query;else{E=new h.Query("Messages");var _={};["msg","date","creator","content"].forEach(function(e){E.vars.push(_[e]=h.variable(e))}),E.pat.add(n,c("message"),_.msg),E.pat.add(_.msg,s.dct("created"),_.date),E.pat.add(_.msg,s.foaf("maker"),_.creator),E.pat.add(_.msg,s.sioc("content"),_.content)}return t.query(E,C,void 0,function(){r.fresh=!0}),d.refresh=function(){y(n,r)},d}function Ar(e){return _r.apply(this,arguments)}function _r(){return(_r=b(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,w.store.fetcher.load(t);case 1:return e.abrupt("return",!(w.store.statementsMatching(null,v.dct("created"),null,t).length>0));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}var jr=function(){return ye(function e(t,n,a){ve(this,e),this.root=t,this.rootFolder=t.dir(),this.leafFileName=n||"index.ttl",this.membershipProperty=a||v.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,w.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=b(y().mark(function e(t,n){var a,i,r,o,s,c;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:i=function(){return(i=b(y().mark(function e(t,i){var r,o,s,c,l,u,p,d,m,f;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s=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)},c=t.dir(),e.prev=1,e.next=2,w.store.fetcher.load(c);case 2:if(l=(l=w.store.each(c,v.ldp("contains"))).filter(r),!(u=s(l))){e.next=3;break}return e.abrupt("return",u);case 3:e.next=6;break;case 4:if(e.prev=4,!(f=e.catch(1)).response||!f.response.status||404!==f.response.status){e.next=5;break}Y.Rm("Error 404 for chat parent file "+c),e.next=6;break;case 5:throw Y.Rm("*** Error NON 404 for chat parent file "+c),new Error("*** ".concat(f.message," for chat folder ").concat(c));case 6:if(0!==i){e.next=7;break}return e.abrupt("return",null);case 7:return e.next=8,a(c,i-1);case 8:if(p=e.sent){e.next=9;break}return e.abrupt("return",null);case 9:return e.next=10,w.store.fetcher.load(p);case 10:return d=w.store.each(p,v.ldp("contains")),m=s(d),e.abrupt("return",m);case 11:case"end":return e.stop()}},e,null,[[1,4]])}))).apply(this,arguments)},a=function(e,t){return i.apply(this,arguments)},r=this.leafDocumentFromDate(t).dir();case 1:return e.next=2,a(r,3);case 2:if(!(o=e.sent)){e.next=6;break}return s=w.store.sym(o.uri+this.leafFileName),c=this.dateFromLeafDocument(s),e.next=3,Ar(s);case 3:if(e.sent){e.next=4;break}return e.abrupt("return",c);case 4:t=c,r=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=b(y().mark(function e(t){var n,a,i,r,o,s,c,l,u,p,d;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=function(){return(r=b(y().mark(function e(i){var r,o;return y().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,v.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 r.apply(this,arguments)},n=h.graph(),a=new h.Fetcher(n),e.next=1,i(this.root.dir());case 1:return o=e.sent,e.next=2,i(o);case 2:return s=e.sent,e.next=3,i(s);case 3:return c=e.sent,l=h.sym(c.uri+"chat.ttl"),e.next=4,a.load(l);case 4:if(0!==(u=n.each(this.root,this.membershipProperty,null,l)).length){e.next=5;break}throw p=" INCONSISTENCY -- no chat leafObject in file "+l,Y.uP(p),new Error(p);case 5:return(d=u.map(function(e){return[n.any(e,v.dct("created")),e]})).sort(),t&&d.reverse(),e.abrupt("return",d[0][1]);case 6:case"end":return e.stop()}},e,this)})),function(t){return e.apply(this,arguments)})}]);var e,t}();function Sr(e,t=""){if(!Number.isSafeInteger(e)||e<0){throw new Error(`${t&&`"${t}" `}expected integer >= 0, got ${e}`)}}function Tr(e,t,n=""){const a=(i=e)instanceof Uint8Array||ArrayBuffer.isView(i)&&"Uint8Array"===i.constructor.name;
|
|
29
29
|
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
30
|
-
|
|
30
|
+
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 Lr(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 Rr(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function Nr(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Br(e,t){return e<<32-t|e>>>t}const Ir=(()=>"function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex)(),Or=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Dr(e){if(Tr(e),Ir)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=Or[e[n]];return t}const Fr=48,Pr=57,Ur=65,Mr=70,zr=97,qr=102;function Hr(e){return e>=Fr&&e<=Pr?e-Fr:e>=Ur&&e<=Mr?e-(Ur-10):e>=zr&&e<=qr?e-(zr-10):void 0}function Gr(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);if(Ir)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=Hr(e.charCodeAt(i)),r=Hr(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 Vr(...e){let t=0;for(let n=0;n<e.length;n++){const a=e[n];Tr(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 Wr(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 Jr(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 $r=e=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,e])});function Qr(e,t,n){return e&t^~e&n}function Zr(e,t,n){return e&t^e&n^t&n}class Kr{blockLen;outputLen;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=Nr(this.buffer)}update(e){Lr(this),Tr(e);const{view:t,buffer:n,blockLen:a}=this,i=e.length;for(let r=0;r<i;){const o=Math.min(a-this.pos,i-r);if(o===a){const t=Nr(e);for(;a<=i-r;r+=a)this.process(t,r);continue}n.set(e.subarray(r,r+o),this.pos),this.pos+=o,r+=o,this.pos===a&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){Lr(this),function(e,t){Tr(e,void 0,"digestInto() output");const n=t.outputLen;if(e.length<n)throw new Error('"digestInto() output" expected to be of length >='+n)}(e,this),this.finished=!0;const{buffer:t,view:n,blockLen:a,isLE:i}=this;let{pos:r}=this;t[r++]=128,Rr(this.buffer.subarray(r)),this.padOffset>a-r&&(this.process(n,0),r=0);for(let e=r;e<a;e++)t[e]=0;n.setBigUint64(a-8,BigInt(8*this.length),i),this.process(n,0);const o=Nr(e),s=this.outputLen;if(s%4)throw new Error("_sha2: outputLen must be aligned to 32bit");const c=s/4,l=this.get();if(c>l.length)throw new Error("_sha2: outputLen bigger than state");for(let e=0;e<c;e++)o.setUint32(4*e,l[e],i)}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 Yr=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]);const Xr=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]),eo=new Uint32Array(64);class to extends Kr{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)eo[n]=e.getUint32(t,!1);for(let e=16;e<64;e++){const t=eo[e-15],n=eo[e-2],a=Br(t,7)^Br(t,18)^t>>>3,i=Br(n,17)^Br(n,19)^n>>>10;eo[e]=i+eo[e-7]+a+eo[e-16]|0}let{A:n,B:a,C:i,D:r,E:o,F:s,G:c,H:l}=this;for(let e=0;e<64;e++){const t=l+(Br(o,6)^Br(o,11)^Br(o,25))+Qr(o,s,c)+Xr[e]+eo[e]|0,u=(Br(n,2)^Br(n,13)^Br(n,22))+Zr(n,a,i)|0;l=c,c=s,s=o,o=r+t|0,r=i,i=a,a=n,n=t+u|0}n=n+this.A|0,a=a+this.B|0,i=i+this.C|0,r=r+this.D|0,o=o+this.E|0,s=s+this.F|0,c=c+this.G|0,l=l+this.H|0,this.set(n,a,i,r,o,s,c,l)}roundClean(){Rr(eo)}destroy(){this.set(0,0,0,0,0,0,0,0),Rr(this.buffer)}}class no extends to{A=0|Yr[0];B=0|Yr[1];C=0|Yr[2];D=0|Yr[3];E=0|Yr[4];F=0|Yr[5];G=0|Yr[6];H=0|Yr[7];constructor(){super(32)}}const ao=Wr(()=>new no,$r(1)),io=BigInt(0),ro=BigInt(1);function oo(e,t=""){if("boolean"!=typeof e){throw new Error((t&&`"${t}" `)+"expected boolean, got type="+typeof e)}return e}function so(e){if("bigint"==typeof e){if(!fo(e))throw new Error("positive bigint expected, got "+e)}else Sr(e);return e}function co(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);return""===e?io:BigInt("0x"+e)}function lo(e){return co(Dr(e))}function uo(e){return co(Dr(function(e){return Uint8Array.from(e)}(Tr(e)).reverse()))}function po(e,t){Sr(t);const n=Gr((e=so(e)).toString(16).padStart(2*t,"0"));if(n.length!==t)throw new Error("number too large");return n}function mo(e,t){return po(e,t).reverse()}const fo=e=>"bigint"==typeof e&&io<=e;const ho=e=>(ro<<BigInt(e))-ro;function vo(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 xo(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}}
|
|
31
31
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
32
|
-
const
|
|
32
|
+
const bo=BigInt(0),go=BigInt(1),yo=BigInt(2),wo=BigInt(3),ko=BigInt(4),Co=BigInt(5),Eo=BigInt(7),Ao=BigInt(8),_o=BigInt(9),jo=BigInt(16);function So(e,t){const n=e%t;return n>=bo?n:t+n}function To(e,t,n){let a=e;for(;t-- >bo;)a*=a,a%=n;return a}function Lo(e,t){if(e===bo)throw new Error("invert: expected non-zero number");if(t<=bo)throw new Error("invert: expected positive modulus, got "+t);let n=So(e,t),a=t,i=bo,r=go,o=go,s=bo;for(;n!==bo;){const e=a/n,t=a%n,c=i-o*e,l=r-s*e;a=n,n=t,i=o,r=s,o=c,s=l}if(a!==go)throw new Error("invert: does not exist");return So(i,t)}function Ro(e,t,n){if(!e.eql(e.sqr(t),n))throw new Error("Cannot find square root")}function No(e,t){const n=(e.ORDER+go)/ko,a=e.pow(t,n);return Ro(e,a,t),a}function Bo(e,t){const n=(e.ORDER-Co)/Ao,a=e.mul(t,yo),i=e.pow(a,n),r=e.mul(t,i),o=e.mul(e.mul(r,yo),i),s=e.mul(r,e.sub(o,e.ONE));return Ro(e,s,t),s}function Io(e){if(e<wo)throw new Error("sqrt is not defined for small field");let t=e-go,n=0;for(;t%yo===bo;)t/=yo,n++;let a=yo;const i=zo(e);for(;1===Uo(i,a);)if(a++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(1===n)return No;let r=i.pow(a,t);const o=(t+go)/yo;return function(e,a){if(e.is0(a))return a;if(1!==Uo(e,a))throw new Error("Cannot find square root");let i=n,s=e.mul(e.ONE,r),c=e.pow(a,t),l=e.pow(a,o);for(;!e.eql(c,e.ONE);){if(e.is0(c))return e.ZERO;let t=1,n=e.sqr(c);for(;!e.eql(n,e.ONE);)if(t++,n=e.sqr(n),t===i)throw new Error("Cannot find square root");const a=go<<BigInt(i-t-1),r=e.pow(s,a);i=t,s=e.sqr(r),c=e.mul(c,s),l=e.mul(l,r)}return l}}function Oo(e){return e%ko===wo?No:e%Ao===Co?Bo:e%jo===_o?function(e){const t=zo(e),n=Io(e),a=n(t,t.neg(t.ONE)),i=n(t,a),r=n(t,t.neg(a)),o=(e+Eo)/jo;return(e,t)=>{let n=e.pow(t,o),s=e.mul(n,a);const c=e.mul(n,i),l=e.mul(n,r),u=e.eql(e.sqr(s),t),p=e.eql(e.sqr(c),t);n=e.cmov(n,s,u),s=e.cmov(l,c,p);const d=e.eql(e.sqr(s),t),m=e.cmov(n,s,d);return Ro(e,m,t),m}}(e):Io(e)}const Do=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function Fo(e,t,n){if(n<bo)throw new Error("invalid exponent, negatives unsupported");if(n===bo)return e.ONE;if(n===go)return t;let a=e.ONE,i=t;for(;n>bo;)n&go&&(a=e.mul(a,i)),i=e.sqr(i),n>>=go;return a}function Po(e,t,n=!1){const a=new Array(t.length).fill(n?e.ZERO:void 0),i=t.reduce((t,n,i)=>e.is0(n)?t:(a[i]=t,e.mul(t,n)),e.ONE),r=e.inv(i);return t.reduceRight((t,n,i)=>e.is0(n)?t:(a[i]=e.mul(t,a[i]),e.mul(t,n)),r),a}function Uo(e,t){const n=(e.ORDER-go)/yo,a=e.pow(t,n),i=e.eql(a,e.ONE),r=e.eql(a,e.ZERO),o=e.eql(a,e.neg(e.ONE));if(!i&&!r&&!o)throw new Error("invalid Legendre symbol result");return i?1:r?0:-1}class Mo{ORDER;BITS;BYTES;isLE;ZERO=bo;ONE=go;_lengths;_sqrt;_mod;constructor(e,t={}){if(e<=bo)throw new Error("invalid field: expected ORDER > 0, got "+e);let n;this.isLE=!1,null!=t&&"object"==typeof t&&("number"==typeof t.BITS&&(n=t.BITS),"function"==typeof t.sqrt&&(this.sqrt=t.sqrt),"boolean"==typeof t.isLE&&(this.isLE=t.isLE),t.allowedLengths&&(this._lengths=t.allowedLengths?.slice()),"boolean"==typeof t.modFromBytes&&(this._mod=t.modFromBytes));const{nBitLength:a,nByteLength:i}=function(e,t){void 0!==t&&Sr(t);const n=void 0!==t?t:e.toString(2).length;return{nBitLength:n,nByteLength:Math.ceil(n/8)}}(e,n);if(i>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");this.ORDER=e,this.BITS=a,this.BYTES=i,this._sqrt=void 0,Object.preventExtensions(this)}create(e){return So(e,this.ORDER)}isValid(e){if("bigint"!=typeof e)throw new Error("invalid field element: expected bigint, got "+typeof e);return bo<=e&&e<this.ORDER}is0(e){return e===bo}isValidNot0(e){return!this.is0(e)&&this.isValid(e)}isOdd(e){return(e&go)===go}neg(e){return So(-e,this.ORDER)}eql(e,t){return e===t}sqr(e){return So(e*e,this.ORDER)}add(e,t){return So(e+t,this.ORDER)}sub(e,t){return So(e-t,this.ORDER)}mul(e,t){return So(e*t,this.ORDER)}pow(e,t){return Fo(this,e,t)}div(e,t){return So(e*Lo(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 Lo(e,this.ORDER)}sqrt(e){return this._sqrt||(this._sqrt=Oo(this.ORDER)),this._sqrt(this,e)}toBytes(e){return this.isLE?mo(e,this.BYTES):po(e,this.BYTES)}fromBytes(e,t=!1){Tr(e);const{_lengths:n,BYTES:a,isLE:i,ORDER:r,_mod:o}=this;if(n){if(!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,i?0:t.length-e.length),e=t}if(e.length!==a)throw new Error("Field.fromBytes: expected "+a+" bytes, got "+e.length);let s=i?uo(e):lo(e);if(o&&(s=So(s,r)),!t&&!this.isValid(s))throw new Error("invalid field element: outside of range 0..ORDER");return s}invertBatch(e){return Po(this,e)}cmov(e,t,n){return n?t:e}}function zo(e,t={}){return new Mo(e,t)}function qo(e){if("bigint"!=typeof e)throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function Ho(e,t,n=!1){Tr(e);const a=e.length,i=qo(t),r=function(e){const t=qo(e);return t+Math.ceil(t/2)}(t);if(a<16||a<r||a>1024)throw new Error("expected "+r+"-1024 bytes of input, got "+a);const o=So(n?uo(e):lo(e),t-go)+go;return n?mo(o,i):po(o,i)}
|
|
33
33
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
34
|
-
const
|
|
34
|
+
const Go=BigInt(0),Vo=BigInt(1);function Wo(e,t){const n=t.negate();return e?n:t}function Jo(e,t){const n=Po(e.Fp,t.map(e=>e.Z));return t.map((t,a)=>e.fromAffine(t.toAffine(n[a])))}function $o(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function Qo(e,t){$o(e,t);const n=2**e;return{windows:Math.ceil(t/e)+1,windowSize:2**(e-1),mask:ho(e),maxNumber:n,shiftBy:BigInt(e)}}function Zo(e,t,n){const{windowSize:a,mask:i,maxNumber:r,shiftBy:o}=n;let s=Number(e&i),c=e>>o;s>a&&(s-=r,c+=Vo);const l=t*a;return{nextN:c,offset:l+Math.abs(s)-1,isZero:0===s,isNeg:s<0,isNegF:t%2!=0,offsetF:l}}const Ko=new WeakMap,Yo=new WeakMap;function Xo(e){return Yo.get(e)||1}function es(e){if(e!==Go)throw new Error("invalid wNAF")}class ts{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>Go;)t&Vo&&(n=n.add(a)),a=a.double(),t>>=Vo;return n}precomputeWindow(e,t){const{windows:n,windowSize:a}=Qo(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=Qo(e,this.bits);for(let e=0;e<r.windows;e++){const{nextN:o,offset:s,isZero:c,isNeg:l,isNegF:u,offsetF:p}=Zo(n,e,r);n=o,c?i=i.add(Wo(u,t[p])):a=a.add(Wo(l,t[s]))}return es(n),{p:a,f:i}}wNAFUnsafe(e,t,n,a=this.ZERO){const i=Qo(e,this.bits);for(let e=0;e<i.windows&&n!==Go;e++){const{nextN:r,offset:o,isZero:s,isNeg:c}=Zo(n,e,i);if(n=r,!s){const e=t[o];a=a.add(c?e.negate():e)}}return es(n),a}getPrecomputes(e,t,n){let a=Ko.get(t);return a||(a=this.precomputeWindow(t,e),1!==e&&("function"==typeof n&&(a=n(a)),Ko.set(t,a))),a}cached(e,t,n){const a=Xo(e);return this.wNAF(a,this.getPrecomputes(a,e,n),t)}unsafe(e,t,n,a){const i=Xo(e);return 1===i?this._unsafeLadder(e,t,a):this.wNAFUnsafe(i,this.getPrecomputes(i,e,n),t,a)}createCache(e,t){$o(t,this.bits),Yo.set(e,t),Ko.delete(e)}hasCache(e){return 1!==Xo(e)}}function ns(e,t,n){if(t){if(t.ORDER!==e)throw new Error("Field.ORDER must match order: Fp == p, Fn == n");return function(e){vo(e,Do.reduce((e,t)=>(e[t]="function",e),{ORDER:"bigint",BYTES:"number",BITS:"number"}))}(t),t}return zo(e,{isLE:n})}function as(e,t){return function(n){const a=e(n);return{secretKey:a,publicKey:t(a)}}}
|
|
35
35
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
36
|
-
const
|
|
36
|
+
const is=(e,t)=>(e+(e>=0?t:-t)/cs)/t;function rs(e,t,n){const[[a,i],[r,o]]=t,s=is(o*e,n),c=is(-i*e,n);let l=e-s*a-c*r,u=-s*i-c*o;const p=l<os,d=u<os;p&&(l=-l),d&&(u=-u);const m=ho(Math.ceil(function(e){let t;for(t=0;e>io;e>>=ro,t+=1);return t}(n)/2))+ss;if(l<os||l>=m||u<os||u>=m)throw new Error("splitScalar (endomorphism): failed, k="+e);return{k1neg:p,k1:l,k2neg:d,k2:u}}Error;const os=BigInt(0),ss=BigInt(1),cs=BigInt(2),ls=BigInt(3),us=BigInt(4);function ps(e,t={}){const n=function(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>Go))throw new Error(`CURVE.${e} must be positive bigint`)}const i=ns(t.p,n.Fp,a),r=ns(t.n,n.Fn,a),o=["Gx","Gy","a","weierstrass"===e?"b":"d"];for(const e of o)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:r}}("weierstrass",e,t),{Fp:a,Fn:i}=n;let r=n.CURVE;const{h:o,n:s}=r;vo(t,{},{allowInfinityPoint:"boolean",clearCofactor:"function",isTorsionFree:"function",fromBytes:"function",toBytes:"function",endo:"object"});const{endo:c}=t;if(c&&(!a.is0(r.a)||"bigint"!=typeof c.beta||!Array.isArray(c.basises)))throw new Error('invalid endo: expected "beta": bigint and "basises": array');const l=ms(a,i);function u(){if(!a.isOdd)throw new Error("compression is not supported: Field does not have .isOdd()")}const p=t.toBytes||function(e,t,n){const{x:i,y:r}=t.toAffine(),o=a.toBytes(i);if(oo(n,"isCompressed"),n){u();return Vr(ds(!a.isOdd(r)),o)}return Vr(Uint8Array.of(4),o,a.toBytes(r))},d=t.fromBytes||function(e){Tr(e,void 0,"Point");const{publicKey:t,publicKeyUncompressed:n}=l,i=e.length,r=e[0],o=e.subarray(1);if(i!==t||2!==r&&3!==r){if(i===n&&4===r){const e=a.BYTES,t=a.fromBytes(o.subarray(0,e)),n=a.fromBytes(o.subarray(e,2*e));if(!f(t,n))throw new Error("bad point: is not on curve");return{x:t,y:n}}throw new Error(`bad point: got length ${i}, expected compressed=${t} or uncompressed=${n}`)}{const e=a.fromBytes(o);if(!a.isValid(e))throw new Error("bad point: is not on curve, wrong x");const t=m(e);let n;try{n=a.sqrt(t)}catch(e){const t=e instanceof Error?": "+e.message:"";throw new Error("bad point: is not on curve, sqrt error"+t)}u();return!(1&~r)!==a.isOdd(n)&&(n=a.neg(n)),{x:e,y:n}}};function m(e){const t=a.sqr(e),n=a.mul(t,e);return a.add(a.add(n,a.mul(e,r.a)),r.b)}function f(e,t){const n=a.sqr(t),i=m(e);return a.eql(n,i)}if(!f(r.Gx,r.Gy))throw new Error("bad curve params: generator point");const h=a.mul(a.pow(r.a,ls),us),v=a.mul(a.sqr(r.b),BigInt(27));if(a.is0(a.add(h,v)))throw new Error("bad curve params: a or b");function x(e,t,n=!1){if(!a.isValid(t)||n&&a.is0(t))throw new Error(`bad point coordinate ${e}`);return t}function b(e){if(!(e instanceof C))throw new Error("Weierstrass Point expected")}function g(e){if(!c||!c.basises)throw new Error("no endo");return rs(e,c.basises,i.ORDER)}const y=xo((e,t)=>{const{X:n,Y:i,Z:r}=e;if(a.eql(r,a.ONE))return{x:n,y:i};const o=e.is0();null==t&&(t=o?a.ONE:a.inv(r));const s=a.mul(n,t),c=a.mul(i,t),l=a.mul(r,t);if(o)return{x:a.ZERO,y:a.ZERO};if(!a.eql(l,a.ONE))throw new Error("invZ was invalid");return{x:s,y:c}}),w=xo(e=>{if(e.is0()){if(t.allowInfinityPoint&&!a.is0(e.Y))return;throw new Error("bad point: ZERO")}const{x:n,y:i}=e.toAffine();if(!a.isValid(n)||!a.isValid(i))throw new Error("bad point: x or y not field elements");if(!f(n,i))throw new Error("bad point: equation left != right");if(!e.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});function k(e,t,n,i,r){return n=new C(a.mul(n.X,e),n.Y,n.Z),t=Wo(i,t),n=Wo(r,n),t.add(n)}class C{static BASE=new C(r.Gx,r.Gy,a.ONE);static ZERO=new C(a.ZERO,a.ONE,a.ZERO);static Fp=a;static Fn=i;X;Y;Z;constructor(e,t,n){this.X=x("x",e),this.Y=x("y",t,!0),this.Z=x("z",n),Object.freeze(this)}static CURVE(){return r}static fromAffine(e){const{x:t,y:n}=e||{};if(!e||!a.isValid(t)||!a.isValid(n))throw new Error("invalid affine point");if(e instanceof C)throw new Error("projective point not allowed");return a.is0(t)&&a.is0(n)?C.ZERO:new C(t,n,a.ONE)}static fromBytes(e){const t=C.fromAffine(d(Tr(e,void 0,"point")));return t.assertValidity(),t}static fromHex(e){return C.fromBytes(Gr(e))}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(e=8,t=!0){return A.createCache(this,e),t||this.multiply(ls),this}assertValidity(){w(this)}hasEvenY(){const{y:e}=this.toAffine();if(!a.isOdd)throw new Error("Field doesn't support isOdd");return!a.isOdd(e)}equals(e){b(e);const{X:t,Y:n,Z:i}=this,{X:r,Y:o,Z:s}=e,c=a.eql(a.mul(t,s),a.mul(r,i)),l=a.eql(a.mul(n,s),a.mul(o,i));return c&&l}negate(){return new C(this.X,a.neg(this.Y),this.Z)}double(){const{a:e,b:t}=r,n=a.mul(t,ls),{X:i,Y:o,Z:s}=this;let c=a.ZERO,l=a.ZERO,u=a.ZERO,p=a.mul(i,i),d=a.mul(o,o),m=a.mul(s,s),f=a.mul(i,o);return f=a.add(f,f),u=a.mul(i,s),u=a.add(u,u),c=a.mul(e,u),l=a.mul(n,m),l=a.add(c,l),c=a.sub(d,l),l=a.add(d,l),l=a.mul(c,l),c=a.mul(f,c),u=a.mul(n,u),m=a.mul(e,m),f=a.sub(p,m),f=a.mul(e,f),f=a.add(f,u),u=a.add(p,p),p=a.add(u,p),p=a.add(p,m),p=a.mul(p,f),l=a.add(l,p),m=a.mul(o,s),m=a.add(m,m),p=a.mul(m,f),c=a.sub(c,p),u=a.mul(m,d),u=a.add(u,u),u=a.add(u,u),new C(c,l,u)}add(e){b(e);const{X:t,Y:n,Z:i}=this,{X:o,Y:s,Z:c}=e;let l=a.ZERO,u=a.ZERO,p=a.ZERO;const d=r.a,m=a.mul(r.b,ls);let f=a.mul(t,o),h=a.mul(n,s),v=a.mul(i,c),x=a.add(t,n),g=a.add(o,s);x=a.mul(x,g),g=a.add(f,h),x=a.sub(x,g),g=a.add(t,i);let y=a.add(o,c);return g=a.mul(g,y),y=a.add(f,v),g=a.sub(g,y),y=a.add(n,i),l=a.add(s,c),y=a.mul(y,l),l=a.add(h,v),y=a.sub(y,l),p=a.mul(d,g),l=a.mul(m,v),p=a.add(l,p),l=a.sub(h,p),p=a.add(h,p),u=a.mul(l,p),h=a.add(f,f),h=a.add(h,f),v=a.mul(d,v),g=a.mul(m,g),h=a.add(h,v),v=a.sub(f,v),v=a.mul(d,v),g=a.add(g,v),f=a.mul(h,g),u=a.add(u,f),f=a.mul(y,g),l=a.mul(x,l),l=a.sub(l,f),f=a.mul(x,h),p=a.mul(y,p),p=a.add(p,f),new C(l,u,p)}subtract(e){return this.add(e.negate())}is0(){return this.equals(C.ZERO)}multiply(e){const{endo:n}=t;if(!i.isValidNot0(e))throw new Error("invalid scalar: out of range");let a,r;const o=e=>A.cached(this,e,e=>Jo(C,e));if(n){const{k1neg:t,k1:i,k2neg:s,k2:c}=g(e),{p:l,f:u}=o(i),{p,f:d}=o(c);r=u.add(d),a=k(n.beta,l,p,t,s)}else{const{p:t,f:n}=o(e);a=t,r=n}return Jo(C,[a,r])[0]}multiplyUnsafe(e){const{endo:n}=t,a=this;if(!i.isValid(e))throw new Error("invalid scalar: out of range");if(e===os||a.is0())return C.ZERO;if(e===ss)return a;if(A.hasCache(this))return this.multiply(e);if(n){const{k1neg:t,k1:i,k2neg:r,k2:o}=g(e),{p1:s,p2:c}=function(e,t,n,a){let i=t,r=e.ZERO,o=e.ZERO;for(;n>Go||a>Go;)n&Vo&&(r=r.add(i)),a&Vo&&(o=o.add(i)),i=i.double(),n>>=Vo,a>>=Vo;return{p1:r,p2:o}}(C,a,i,o);return k(n.beta,s,c,t,r)}return A.unsafe(a,e)}toAffine(e){return y(this,e)}isTorsionFree(){const{isTorsionFree:e}=t;return o===ss||(e?e(C,this):A.unsafe(this,s).is0())}clearCofactor(){const{clearCofactor:e}=t;return o===ss?this:e?e(C,this):this.multiplyUnsafe(o)}isSmallOrder(){return this.multiplyUnsafe(o).is0()}toBytes(e=!0){return oo(e,"isCompressed"),this.assertValidity(),p(C,this,e)}toHex(e=!0){return Dr(this.toBytes(e))}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}}const E=i.BITS,A=new ts(C,t.endo?Math.ceil(E/2):E);return C.BASE.precompute(8),C}function ds(e){return Uint8Array.of(e?2:3)}function ms(e,t){return{secretKey:t.BYTES,publicKey:1+e.BYTES,publicKeyUncompressed:1+2*e.BYTES,publicKeyHasPrefix:!0,signature:2*t.BYTES}}
|
|
37
37
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
38
|
-
const hs=(e,t)=>(e+(e>=0?t:-t)/ks)/t;function vs(e){if(!["compact","recovered","der"].includes(e))throw new Error('Signature format must be "compact", "recovered", or "der"');return e}function bs(e,t){const n={};for(let a of Object.keys(t))n[a]=void 0===e[a]?t[a]:e[a];return po(n.lowS,"lowS"),po(n.prehash,"prehash"),void 0!==n.format&&vs(n.format),n}class xs extends Error{constructor(e=""){super(e)}}const gs={Err:xs,_tlv:{encode:(e,t)=>{const{Err:n}=gs;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(1&t.length)throw new n("tlv.encode: unpadded data");const a=t.length/2,i=fo(a);if(i.length/2&128)throw new n("tlv.encode: long form length too big");const r=a>127?fo(i.length/2|128):"";return fo(e)+r+i+t},decode(e,t){const{Err:n}=gs;let a=0;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(t.length<2||t[a++]!==e)throw new n("tlv.decode: wrong tlv");const i=t[a++];let r=0;if(!!(128&i)){const e=127&i;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 o=t.subarray(a,a+e);if(o.length!==e)throw new n("tlv.decode: length bytes not complete");if(0===o[0])throw new n("tlv.decode(long): zero leftmost byte");for(const e of o)r=r<<8|e;if(a+=e,r<128)throw new n("tlv.decode(long): not minimal encoding")}else r=i;const o=t.subarray(a,a+r);if(o.length!==r)throw new n("tlv.decode: wrong value length");return{v:o,l:t.subarray(a+r)}}},_int:{encode(e){const{Err:t}=gs;if(e<ys)throw new t("integer: negative integers are not allowed");let n=fo(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}=gs;if(128&e[0])throw new t("invalid signature integer: negative");if(0===e[0]&&!(128&e[1]))throw new t("invalid signature integer: unnecessary leading zero");return vo(e)}},toSig(e){const{Err:t,_int:n,_tlv:a}=gs,i=yo("signature",e),{v:r,l:o}=a.decode(48,i);if(o.length)throw new t("invalid signature: left bytes after parsing");const{v:s,l:c}=a.decode(2,r),{v:l,l:u}=a.decode(2,c);if(u.length)throw new t("invalid signature: left bytes after parsing");return{r:n.decode(s),s:n.decode(l)}},hexFromSig(e){const{_tlv:t,_int:n}=gs,a=t.encode(2,n.encode(e.r))+t.encode(2,n.encode(e.s));return t.encode(48,a)}},ys=BigInt(0),ws=BigInt(1),ks=BigInt(2),Cs=BigInt(3),Es=BigInt(4);function As(e,t){const{BYTES:n}=e;let a;if("bigint"==typeof t)a=t;else{let i=yo("private key",t);try{a=e.fromBytes(i)}catch(e){throw new Error(`invalid private key: expected ui8a of size ${n}, got ${typeof t}`)}}if(!e.isValidNot0(a))throw new Error("invalid private key: out of range [1..N-1]");return a}function _s(e,t={}){const n=function(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>es))throw new Error(`CURVE.${e} must be positive bigint`)}const i=fs(t.p,n.Fp,a),r=fs(t.n,n.Fn,a),o=["Gx","Gy","a","weierstrass"===e?"b":"d"];for(const e of o)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:r}}("weierstrass",e,t),{Fp:a,Fn:i}=n;let r=n.CURVE;const{h:o,n:s}=r;Ao(t,{},{allowInfinityPoint:"boolean",clearCofactor:"function",isTorsionFree:"function",fromBytes:"function",toBytes:"function",endo:"object",wrapPrivateKey:"boolean"});const{endo:c}=t;if(c&&(!a.is0(r.a)||"bigint"!=typeof c.beta||!Array.isArray(c.basises)))throw new Error('invalid endo: expected "beta": bigint and "basises": array');const l=Ss(a,i);function u(){if(!a.isOdd)throw new Error("compression is not supported: Field does not have .isOdd()")}const p=t.toBytes||function(e,t,n){const{x:i,y:r}=t.toAffine(),o=a.toBytes(i);if(po(n,"isCompressed"),n){u();return Kr(js(!a.isOdd(r)),o)}return Kr(Uint8Array.of(4),o,a.toBytes(r))},d=t.fromBytes||function(e){mo(e,void 0,"Point");const{publicKey:t,publicKeyUncompressed:n}=l,i=e.length,r=e[0],o=e.subarray(1);if(i!==t||2!==r&&3!==r){if(i===n&&4===r){const e=a.BYTES,t=a.fromBytes(o.subarray(0,e)),n=a.fromBytes(o.subarray(e,2*e));if(!f(t,n))throw new Error("bad point: is not on curve");return{x:t,y:n}}throw new Error(`bad point: got length ${i}, expected compressed=${t} or uncompressed=${n}`)}{const e=a.fromBytes(o);if(!a.isValid(e))throw new Error("bad point: is not on curve, wrong x");const t=m(e);let n;try{n=a.sqrt(t)}catch(e){const t=e instanceof Error?": "+e.message:"";throw new Error("bad point: is not on curve, sqrt error"+t)}u();return!(1&~r)!==a.isOdd(n)&&(n=a.neg(n)),{x:e,y:n}}};function m(e){const t=a.sqr(e),n=a.mul(t,e);return a.add(a.add(n,a.mul(e,r.a)),r.b)}function f(e,t){const n=a.sqr(t),i=m(e);return a.eql(n,i)}if(!f(r.Gx,r.Gy))throw new Error("bad curve params: generator point");const h=a.mul(a.pow(r.a,Cs),Es),v=a.mul(a.sqr(r.b),BigInt(27));if(a.is0(a.add(h,v)))throw new Error("bad curve params: a or b");function b(e,t,n=!1){if(!a.isValid(t)||n&&a.is0(t))throw new Error(`bad point coordinate ${e}`);return t}function x(e){if(!(e instanceof C))throw new Error("ProjectivePoint expected")}function g(e){if(!c||!c.basises)throw new Error("no endo");return function(e,t,n){const[[a,i],[r,o]]=t,s=hs(o*e,n),c=hs(-i*e,n);let l=e-s*a-c*r,u=-s*i-c*o;const p=l<ys,d=u<ys;p&&(l=-l),d&&(u=-u);const m=Eo(Math.ceil(Co(n)/2))+ws;if(l<ys||l>=m||u<ys||u>=m)throw new Error("splitScalar (endomorphism): failed, k="+e);return{k1neg:p,k1:l,k2neg:d,k2:u}}(e,c.basises,i.ORDER)}const y=_o((e,t)=>{const{X:n,Y:i,Z:r}=e;if(a.eql(r,a.ONE))return{x:n,y:i};const o=e.is0();null==t&&(t=o?a.ONE:a.inv(r));const s=a.mul(n,t),c=a.mul(i,t),l=a.mul(r,t);if(o)return{x:a.ZERO,y:a.ZERO};if(!a.eql(l,a.ONE))throw new Error("invZ was invalid");return{x:s,y:c}}),w=_o(e=>{if(e.is0()){if(t.allowInfinityPoint&&!a.is0(e.Y))return;throw new Error("bad point: ZERO")}const{x:n,y:i}=e.toAffine();if(!a.isValid(n)||!a.isValid(i))throw new Error("bad point: x or y not field elements");if(!f(n,i))throw new Error("bad point: equation left != right");if(!e.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});function k(e,t,n,i,r){return n=new C(a.mul(n.X,e),n.Y,n.Z),t=ns(i,t),n=ns(r,n),t.add(n)}class C{constructor(e,t,n){this.X=b("x",e),this.Y=b("y",t,!0),this.Z=b("z",n),Object.freeze(this)}static CURVE(){return r}static fromAffine(e){const{x:t,y:n}=e||{};if(!e||!a.isValid(t)||!a.isValid(n))throw new Error("invalid affine point");if(e instanceof C)throw new Error("projective point not allowed");return a.is0(t)&&a.is0(n)?C.ZERO:new C(t,n,a.ONE)}static fromBytes(e){const t=C.fromAffine(d(mo(e,void 0,"point")));return t.assertValidity(),t}static fromHex(e){return C.fromBytes(yo("pointHex",e))}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(e=8,t=!0){return A.createCache(this,e),t||this.multiply(Cs),this}assertValidity(){w(this)}hasEvenY(){const{y:e}=this.toAffine();if(!a.isOdd)throw new Error("Field doesn't support isOdd");return!a.isOdd(e)}equals(e){x(e);const{X:t,Y:n,Z:i}=this,{X:r,Y:o,Z:s}=e,c=a.eql(a.mul(t,s),a.mul(r,i)),l=a.eql(a.mul(n,s),a.mul(o,i));return c&&l}negate(){return new C(this.X,a.neg(this.Y),this.Z)}double(){const{a:e,b:t}=r,n=a.mul(t,Cs),{X:i,Y:o,Z:s}=this;let c=a.ZERO,l=a.ZERO,u=a.ZERO,p=a.mul(i,i),d=a.mul(o,o),m=a.mul(s,s),f=a.mul(i,o);return f=a.add(f,f),u=a.mul(i,s),u=a.add(u,u),c=a.mul(e,u),l=a.mul(n,m),l=a.add(c,l),c=a.sub(d,l),l=a.add(d,l),l=a.mul(c,l),c=a.mul(f,c),u=a.mul(n,u),m=a.mul(e,m),f=a.sub(p,m),f=a.mul(e,f),f=a.add(f,u),u=a.add(p,p),p=a.add(u,p),p=a.add(p,m),p=a.mul(p,f),l=a.add(l,p),m=a.mul(o,s),m=a.add(m,m),p=a.mul(m,f),c=a.sub(c,p),u=a.mul(m,d),u=a.add(u,u),u=a.add(u,u),new C(c,l,u)}add(e){x(e);const{X:t,Y:n,Z:i}=this,{X:o,Y:s,Z:c}=e;let l=a.ZERO,u=a.ZERO,p=a.ZERO;const d=r.a,m=a.mul(r.b,Cs);let f=a.mul(t,o),h=a.mul(n,s),v=a.mul(i,c),b=a.add(t,n),g=a.add(o,s);b=a.mul(b,g),g=a.add(f,h),b=a.sub(b,g),g=a.add(t,i);let y=a.add(o,c);return g=a.mul(g,y),y=a.add(f,v),g=a.sub(g,y),y=a.add(n,i),l=a.add(s,c),y=a.mul(y,l),l=a.add(h,v),y=a.sub(y,l),p=a.mul(d,g),l=a.mul(m,v),p=a.add(l,p),l=a.sub(h,p),p=a.add(h,p),u=a.mul(l,p),h=a.add(f,f),h=a.add(h,f),v=a.mul(d,v),g=a.mul(m,g),h=a.add(h,v),v=a.sub(f,v),v=a.mul(d,v),g=a.add(g,v),f=a.mul(h,g),u=a.add(u,f),f=a.mul(y,g),l=a.mul(b,l),l=a.sub(l,f),f=a.mul(b,h),p=a.mul(y,p),p=a.add(p,f),new C(l,u,p)}subtract(e){return this.add(e.negate())}is0(){return this.equals(C.ZERO)}multiply(e){const{endo:n}=t;if(!i.isValidNot0(e))throw new Error("invalid scalar: out of range");let a,r;const o=e=>A.cached(this,e,e=>as(C,e));if(n){const{k1neg:t,k1:i,k2neg:s,k2:c}=g(e),{p:l,f:u}=o(i),{p,f:d}=o(c);r=u.add(d),a=k(n.beta,l,p,t,s)}else{const{p:t,f:n}=o(e);a=t,r=n}return as(C,[a,r])[0]}multiplyUnsafe(e){const{endo:n}=t,a=this;if(!i.isValid(e))throw new Error("invalid scalar: out of range");if(e===ys||a.is0())return C.ZERO;if(e===ws)return a;if(A.hasCache(this))return this.multiply(e);if(n){const{k1neg:t,k1:i,k2neg:r,k2:o}=g(e),{p1:s,p2:c}=function(e,t,n,a){let i=t,r=e.ZERO,o=e.ZERO;for(;n>es||a>es;)n&ts&&(r=r.add(i)),a&ts&&(o=o.add(i)),i=i.double(),n>>=ts,a>>=ts;return{p1:r,p2:o}}(C,a,i,o);return k(n.beta,s,c,t,r)}return A.unsafe(a,e)}multiplyAndAddUnsafe(e,t,n){const a=this.multiplyUnsafe(t).add(e.multiplyUnsafe(n));return a.is0()?void 0:a}toAffine(e){return y(this,e)}isTorsionFree(){const{isTorsionFree:e}=t;return o===ws||(e?e(C,this):A.unsafe(this,s).is0())}clearCofactor(){const{clearCofactor:e}=t;return o===ws?this:e?e(C,this):this.multiplyUnsafe(o)}isSmallOrder(){return this.multiplyUnsafe(o).is0()}toBytes(e=!0){return po(e,"isCompressed"),this.assertValidity(),p(C,this,e)}toHex(e=!0){return Pr(this.toBytes(e))}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}get px(){return this.X}get py(){return this.X}get pz(){return this.Z}toRawBytes(e=!0){return this.toBytes(e)}_setWindowSize(e){this.precompute(e)}static normalizeZ(e){return as(C,e)}static msm(e,t){return function(e,t,n,a){ss(n,e),cs(a,t);const i=n.length,r=a.length;if(i!==r)throw new Error("arrays of points and scalars must have equal length");const o=e.ZERO,s=Co(BigInt(i));let c=1;s>12?c=s-3:s>4?c=s-2:s>0&&(c=2);const l=Eo(c),u=new Array(Number(l)+1).fill(o);let p=o;for(let e=Math.floor((t.BITS-1)/c)*c;e>=0;e-=c){u.fill(o);for(let t=0;t<r;t++){const i=a[t],r=Number(i>>BigInt(e)&l);u[r]=u[r].add(n[t])}let t=o;for(let e=u.length-1,n=o;e>0;e--)n=n.add(u[e]),t=t.add(n);if(p=p.add(t),0!==e)for(let e=0;e<c;e++)p=p.double()}return p}(C,i,e,t)}static fromPrivateKey(e){return C.BASE.multiply(As(i,e))}}C.BASE=new C(r.Gx,r.Gy,a.ONE),C.ZERO=new C(a.ZERO,a.ONE,a.ZERO),C.Fp=a,C.Fn=i;const E=i.BITS,A=new ms(C,t.endo?Math.ceil(E/2):E);return C.BASE.precompute(8),C}function js(e){return Uint8Array.of(e?2:3)}function Ss(e,t){return{secretKey:t.BYTES,publicKey:1+e.BYTES,publicKeyUncompressed:1+2*e.BYTES,publicKeyHasPrefix:!0,signature:2*t.BYTES}}function Ts(e,t,n={}){Rr(t),Ao(n,{},{hmac:"function",lowS:"boolean",randomBytes:"function",bits2int:"function",bits2int_modN:"function"});const a=n.randomBytes||Yr,i=n.hmac||((e,...n)=>co(t,e,Kr(...n))),{Fp:r,Fn:o}=e,{ORDER:s,BITS:c}=o,{keygen:l,getPublicKey:u,getSharedSecret:p,utils:d,lengths:m}=function(e,t={}){const{Fn:n}=e,a=t.randomBytes||Yr,i=Object.assign(Ss(e.Fp,n),{seed:Yo(n.ORDER)});function r(e){try{return!!As(n,e)}catch(e){return!1}}function o(e=a(i.seed)){return Xo(mo(e,i.seed,"seed"),n.ORDER)}function s(t,a=!0){return e.BASE.multiply(As(n,t)).toBytes(a)}function c(t){if("bigint"==typeof t)return!1;if(t instanceof e)return!0;const{secretKey:a,publicKey:r,publicKeyUncompressed:o}=i;if(n.allowedLengths||a===r)return;const s=yo("key",t).length;return s===r||s===o}const l={isValidSecretKey:r,isValidPublicKey:function(t,n){const{publicKey:a,publicKeyUncompressed:r}=i;try{const i=t.length;return!(!0===n&&i!==a||!1===n&&i!==r||!e.fromBytes(t))}catch(e){return!1}},randomSecretKey:o,isValidPrivateKey:r,randomPrivateKey:o,normPrivateKeyToScalar:e=>As(n,e),precompute:(t=8,n=e.BASE)=>n.precompute(t,!1)};return Object.freeze({getPublicKey:s,getSharedSecret:function(t,a,i=!0){if(!0===c(t))throw new Error("first arg must be private key");if(!1===c(a))throw new Error("second arg must be public key");const r=As(n,t);return e.fromHex(a).multiply(r).toBytes(i)},keygen:function(e){const t=o(e);return{secretKey:t,publicKey:s(t)}},Point:e,utils:l,lengths:i})}(e,n),f={prehash:!1,lowS:"boolean"==typeof n.lowS&&n.lowS,format:void 0,extraEntropy:!1},h="compact";function v(e){return e>s>>ws}function b(e,t){if(!o.isValidNot0(t))throw new Error(`invalid signature ${e}: out of range 1..Point.Fn.ORDER`);return t}class x{constructor(e,t,n){this.r=b("r",e),this.s=b("s",t),null!=n&&(this.recovery=n),Object.freeze(this)}static fromBytes(e,t=h){let n;if(function(e,t){vs(t);const n=m.signature;mo(e,"compact"===t?n:"recovered"===t?n+1:void 0,`${t} signature`)}(e,t),"der"===t){const{r:t,s:n}=gs.toSig(mo(e));return new x(t,n)}"recovered"===t&&(n=e[0],t="compact",e=e.subarray(1));const a=o.BYTES,i=e.subarray(0,a),r=e.subarray(a,2*a);return new x(o.fromBytes(i),o.fromBytes(r),n)}static fromHex(e,t){return this.fromBytes(Wr(e),t)}addRecoveryBit(e){return new x(this.r,this.s,e)}recoverPublicKey(t){const n=r.ORDER,{r:a,s:i,recovery:c}=this;if(null==c||![0,1,2,3].includes(c))throw new Error("recovery id invalid");if(s*ks<n&&c>1)throw new Error("recovery id is ambiguous for h>1 curve");const l=2===c||3===c?a+s:a;if(!r.isValid(l))throw new Error("recovery id 2 or 3 invalid");const u=r.toBytes(l),p=e.fromBytes(Kr(js(!(1&c)),u)),d=o.inv(l),m=y(yo("msgHash",t)),f=o.create(-m*d),h=o.create(i*d),v=e.BASE.multiplyUnsafe(f).add(p.multiplyUnsafe(h));if(v.is0())throw new Error("point at infinify");return v.assertValidity(),v}hasHighS(){return v(this.s)}toBytes(e=h){if(vs(e),"der"===e)return Wr(gs.hexFromSig(this));const t=o.toBytes(this.r),n=o.toBytes(this.s);if("recovered"===e){if(null==this.recovery)throw new Error("recovery bit must be present");return Kr(Uint8Array.of(this.recovery),t,n)}return Kr(t,n)}toHex(e){return Pr(this.toBytes(e))}assertValidity(){}static fromCompact(e){return x.fromBytes(yo("sig",e),"compact")}static fromDER(e){return x.fromBytes(yo("sig",e),"der")}normalizeS(){return this.hasHighS()?new x(this.r,o.neg(this.s),this.recovery):this}toDERRawBytes(){return this.toBytes("der")}toDERHex(){return Pr(this.toBytes("der"))}toCompactRawBytes(){return this.toBytes("compact")}toCompactHex(){return Pr(this.toBytes("compact"))}}const g=n.bits2int||function(e){if(e.length>8192)throw new Error("input is too large");const t=vo(e),n=8*e.length-c;return n>0?t>>BigInt(n):t},y=n.bits2int_modN||function(e){return o.create(g(e))},w=Eo(c);function k(e){return function(e,t,n,a){if(!ko(t,n,a))throw new Error("expected valid "+e+": "+n+" <= n < "+a+", got "+t)}("num < 2^"+c,e,ys,w),o.toBytes(e)}function C(e,n){return mo(e,void 0,"message"),n?mo(t(e),void 0,"prehashed message"):e}return Object.freeze({keygen:l,getPublicKey:u,getSharedSecret:p,utils:d,lengths:m,Point:e,sign:function(n,r,s={}){n=yo("message",n);const{seed:c,k2sig:l}=function(t,n,i){if(["recovered","canonical"].some(e=>e in i))throw new Error("sign() legacy options not supported");const{lowS:r,prehash:s,extraEntropy:c}=bs(i,f);t=C(t,s);const l=y(t),u=As(o,n),p=[k(u),k(l)];if(null!=c&&!1!==c){const e=!0===c?a(m.secretKey):c;p.push(yo("extraEntropy",e))}const d=Kr(...p),h=l;return{seed:d,k2sig:function(t){const n=g(t);if(!o.isValidNot0(n))return;const a=o.inv(n),i=e.BASE.multiply(n).toAffine(),s=o.create(i.x);if(s===ys)return;const c=o.create(a*o.create(h+s*u));if(c===ys)return;let l=(i.x===s?0:2)|Number(i.y&ws),p=c;return r&&v(c)&&(p=o.neg(c),l^=1),new x(s,p,l)}}}(n,r,s);return function(e,t,n){if("number"!=typeof e||e<2)throw new Error("hashLen must be a number");if("number"!=typeof t||t<2)throw new Error("qByteLen must be a number");if("function"!=typeof n)throw new Error("hmacFn must be a function");const a=e=>new Uint8Array(e),i=e=>Uint8Array.of(e);let r=a(e),o=a(e),s=0;const c=()=>{r.fill(1),o.fill(0),s=0},l=(...e)=>n(o,r,...e),u=(e=a(0))=>{o=l(i(0),e),r=l(),0!==e.length&&(o=l(i(1),e),r=l())},p=()=>{if(s++>=1e3)throw new Error("drbg: tried 1000 values");let e=0;const n=[];for(;e<t;){r=l();const t=r.slice();n.push(t),e+=r.length}return Kr(...n)};return(e,t)=>{let n;for(c(),u(e);!(n=t(p()));)u();return c(),n}}(t.outputLen,o.BYTES,i)(c,l)},verify:function(t,n,a,i={}){const{lowS:r,prehash:s,format:c}=bs(i,f);if(a=yo("publicKey",a),n=C(yo("message",n),s),"strict"in i)throw new Error("options.strict was renamed to lowS");const l=void 0===c?function(e){let t;const n="string"==typeof e||Sr(e),a=!n&&null!==e&&"object"==typeof e&&"bigint"==typeof e.r&&"bigint"==typeof e.s;if(!n&&!a)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");if(a)t=new x(e.r,e.s);else if(n){try{t=x.fromBytes(yo("sig",e),"der")}catch(e){if(!(e instanceof gs.Err))throw e}if(!t)try{t=x.fromBytes(yo("sig",e),"compact")}catch(e){return!1}}return t||!1}(t):x.fromBytes(yo("sig",t),c);if(!1===l)return!1;try{const t=e.fromBytes(a);if(r&&l.hasHighS())return!1;const{r:i,s}=l,c=y(n),u=o.inv(s),p=o.create(c*u),d=o.create(i*u),m=e.BASE.multiplyUnsafe(p).add(t.multiplyUnsafe(d));if(m.is0())return!1;return o.create(m.x)===i}catch(e){return!1}},recoverPublicKey:function(e,t,n={}){const{prehash:a}=bs(n,f);return t=C(t,a),x.fromBytes(e,"recovered").recoverPublicKey(t).toBytes()},Signature:x,hash:t})}function Ls(e){const t={a:e.a,b:e.b,p:e.Fp.ORDER,n:e.n,h:e.h,Gx:e.Gx,Gy:e.Gy},n=e.Fp;let a=e.allowedPrivateKeyLengths?Array.from(new Set(e.allowedPrivateKeyLengths.map(e=>Math.ceil(e/2)))):void 0;return{CURVE:t,curveOpts:{Fp:n,Fn:Qo(t.n,{BITS:e.nBitLength,allowedLengths:a,modFromBytes:e.wrapPrivateKey}),allowInfinityPoint:e.allowInfinityPoint,endo:e.endo,isTorsionFree:e.isTorsionFree,clearCofactor:e.clearCofactor,fromBytes:e.fromBytes,toBytes:e.toBytes}}}function Rs(e){const{CURVE:t,curveOpts:n,hash:a,ecdsaOpts:i}=function(e){const{CURVE:t,curveOpts:n}=Ls(e),a={hmac:e.hmac,randomBytes:e.randomBytes,lowS:e.lowS,bits2int:e.bits2int,bits2int_modN:e.bits2int_modN};return{CURVE:t,curveOpts:n,hash:e.hash,ecdsaOpts:a}}(e);return function(e,t){const n=t.Point;return Object.assign({},t,{ProjectivePoint:n,CURVE:Object.assign({},e,Ko(n.Fn.ORDER,n.Fn.BITS))})}(e,Ts(_s(t,n),a,i))}
|
|
39
|
-
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
40
|
-
const Bs={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},Ns={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),basises:[[BigInt("0x3086d221a7d46bcde86c90e49284eb15"),-BigInt("0xe4437ed6010e88286f547fa90abfe4c3")],[BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),BigInt("0x3086d221a7d46bcde86c90e49284eb15")]]},Is=BigInt(0),Os=BigInt(1),Fs=BigInt(2);const Ds=Qo(Bs.p,{sqrt:function(e){const t=Bs.p,n=BigInt(3),a=BigInt(6),i=BigInt(11),r=BigInt(22),o=BigInt(23),s=BigInt(44),c=BigInt(88),l=e*e*e%t,u=l*l*e%t,p=Po(u,n,t)*u%t,d=Po(p,n,t)*u%t,m=Po(d,Fs,t)*l%t,f=Po(m,i,t)*m%t,h=Po(f,r,t)*f%t,v=Po(h,s,t)*h%t,b=Po(v,c,t)*v%t,x=Po(b,s,t)*h%t,g=Po(x,n,t)*u%t,y=Po(g,o,t)*f%t,w=Po(y,a,t)*l%t,k=Po(w,Fs,t);if(!Ds.eql(Ds.sqr(k),e))throw new Error("Cannot find square root");return k}}),Ps=function(e,t){const n=t=>Rs({...e,hash:t});return{...n(t),create:n}}({...Bs,Fp:Ds,lowS:!0,endo:Ns},oo),Us={};function Ms(e,...t){let n=Us[e];if(void 0===n){const t=oo(Jr(e));n=Kr(t,t),Us[e]=n}return oo(Kr(n,...t))}const zs=e=>e.toBytes(!0).slice(1),qs=(()=>Ps.Point)(),Hs=e=>e%Fs===Is;function Vs(e){const{Fn:t,BASE:n}=qs,a=As(t,e),i=n.multiply(a);return{scalar:Hs(i.y)?a:t.neg(a),bytes:zs(i)}}function Gs(e){const t=Ds;if(!t.isValidNot0(e))throw new Error("invalid x: Fail if x ≥ p");const n=t.create(e*e),a=t.create(n*e+BigInt(7));let i=t.sqrt(a);Hs(i)||(i=t.neg(i));const r=qs.fromAffine({x:e,y:i});return r.assertValidity(),r}const Ws=vo;function Js(...e){return qs.Fn.create(Ws(Ms("BIP0340/challenge",...e)))}function $s(e){return Vs(e).bytes}function Ks(e,t,n=Yr(32)){const{Fn:a}=qs,i=yo("message",e),{bytes:r,scalar:o}=Vs(t),s=yo("auxRand",n,32),c=a.toBytes(o^Ws(Ms("BIP0340/aux",s))),l=Ms("BIP0340/nonce",c,r,i),{bytes:u,scalar:p}=Vs(l),d=Js(u,r,i),m=new Uint8Array(64);if(m.set(u,0),m.set(a.toBytes(a.create(p+d*o)),32),!Qs(m,i,r))throw new Error("sign: Invalid signature produced");return m}function Qs(e,t,n){const{Fn:a,BASE:i}=qs,r=yo("signature",e,64),o=yo("message",t),s=yo("publicKey",n,32);try{const e=Gs(Ws(s)),t=Ws(r.subarray(0,32));if(!ko(t,Os,Bs.p))return!1;const n=Ws(r.subarray(32,64));if(!ko(n,Os,Bs.n))return!1;const c=Js(a.toBytes(t),zs(e),o),l=i.multiplyUnsafe(n).add(e.multiplyUnsafe(a.neg(c))),{x:u,y:p}=l.toAffine();return!(l.is0()||!Hs(p)||u!==t)}catch(e){return!1}}const Zs=(()=>{const e=(e=Yr(48))=>Xo(e,Bs.n);return Ps.utils.randomSecretKey,{keygen:function(t){const n=e(t);return{secretKey:n,publicKey:$s(n)}},getPublicKey:$s,sign:Ks,verify:Qs,Point:qs,utils:{randomSecretKey:e,randomPrivateKey:e,taggedHash:Ms,lift_x:Gs,pointToBytes:zs,numberToBytesBE:xo,bytesToNumberBE:vo,mod:Do},lengths:{secretKey:32,publicKey:32,publicKeyHasPrefix:!1,signature:64,seed:48}}})(),Ys=oo;new TextDecoder("utf-8");var Xs=new TextEncoder,ec="https://w3id.org/security#";function tc(){return{id:"",created:"",dateDeleted:"",content:"",maker:"",sig:""}}function nc(e){var t=Ys(Xs.encode(function(e){return JSON.stringify(e)}(e)));return Pr(t)}function ac(e,t,n){return Zs.verify(e,nc(t),n)}function ic(e,t){return Pr(Zs.sign(nc(e),t))}var rc=function(e){var t,n,a=null===(t=w.store.any(e,v.space("preferencesFile"),null,e.doc()))||void 0===t?void 0:t.value;if(!(a=null===(n=a)||void 0===n?void 0:n.split("/").slice(0,-2).join("/")))throw new Error("prefererencesFile is expected to exist in ".concat(e));return a},oc=function(e){var t;try{var n=rc(e);t="".concat(n,"/profile/keys/publicKey.ttl")}catch(e){Y.z3(e)}return t},sc=function(e){var t;try{var n=rc(e);t="".concat(n,"/settings/keys/privateKey.ttl")}catch(e){Y.z3(e)}return t};function cc(e,t){return lc.apply(this,arguments)}function lc(){return(lc=x(y().mark(function e(t,n){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,dc(t,n,"publicKey");case 1:return e.abrupt("return",e.sent);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function uc(e,t){return pc.apply(this,arguments)}function pc(){return(pc=x(y().mark(function e(t,n){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,dc(t,n,"privateKey");case 1:return e.abrupt("return",e.sent);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function dc(e,t,n){return mc.apply(this,arguments)}function mc(){return(mc=x(y().mark(function e(t,n,a){var i,r,o;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,w.store.fetcher.load(n);case 1:return i=w.store.any(t,v.solid(a)),e.abrupt("return",null==i?void 0:i.value);case 2:if(e.prev=2,404!==(r=e.catch(0)).response.status){e.next=7;break}return Y.Rm("createIfNotExists: doc does NOT exist, will create... "+n),e.prev=3,e.next=4,w.store.fetcher.webOperation("PUT",n,{data:"",contentType:"text/turtle"});case 4:e.next=6;break;case 5:throw e.prev=5,o=e.catch(3),Y.Rm("createIfNotExists doc FAILED: "+n+": "+o),o;case 6:return delete w.store.fetcher.requested[n],e.abrupt("return",void 0);case 7:throw Y.Rm("createIfNotExists doc FAILED: "+n+": "+r),r;case 8:case"end":return e.stop()}},e,null,[[0,2],[3,5]])}))).apply(this,arguments)}function fc(e,t){return hc.apply(this,arguments)}function hc(){return(hc=x(y().mark(function e(t,n){var a,i,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,w.store.fetcher.load(t);case 1:if(a=w.store.any(w.store.sym(t),w.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,w.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==(r=e.catch(2))||null===(i=r.response)||void 0===i?void 0:i.status)){e.next=5;break}throw new Error(r);case 5:Y.Rm("delete "+a.value+" "+r.response.status);case 6:case"end":return e.stop()}},e,null,[[2,4]])}))).apply(this,arguments)}var vc=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")},bc=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")};function xc(){return Pr(Zs.utils.randomPrivateKey())}function gc(e){return Pr(Zs.getPublicKey(e))}function yc(e){return wc.apply(this,arguments)}function wc(){return(wc=x(y().mark(function e(t){var n,a;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,w.store.fetcher.load(t);case 1:return e.next=2,oc(t);case 2:return n=e.sent,e.prev=3,e.next=4,w.store.fetcher.load(n);case 4:return a=w.store.any(t,v.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 kc(e){return Cc.apply(this,arguments)}function Cc(){return Cc=x(y().mark(function e(t){var n,a,i,r,o,s,c,l,u;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,w.store.fetcher.load(t);case 1:return e.next=2,oc(t);case 2:return n=e.sent,e.next=3,sc(t);case 3:return a=e.sent,e.next=4,cc(t,n);case 4:return i=e.sent,e.next=5,uc(t,a);case 5:if(r=e.sent,o=!0,r&&i!==gc(r)&&confirm("This is strange the publicKey is not valid for\n"+(null==t?void 0:t.uri)+"'shall we repair keeping the private key ?")&&(o=!1),r&&i&&o){e.next=8;break}if(s=[],c=[],r){e.next=6;break}return r=xc(),c=[h.st(t,v.solid("privateKey"),h.literal(r),w.store.sym(a))],e.next=6,Ac(a,[],c,t.uri);case 6:if(i&&o){e.next=7;break}return s=[],i&&(s=[h.st(t,v.solid("publicKey"),h.lit(i),w.store.sym(n))],Y.Rm("delete invalid publicKey "+s)),l=gc(r),c=[h.st(t,v.solid("publicKey"),h.literal(l),w.store.sym(n))],e.next=7,Ac(n,s,c);case 7:return u=a.substring(0,a.lastIndexOf("/")+1),e.next=8,fc(u,vc(t.uri));case 8:return e.abrupt("return",r);case 9:case"end":return e.stop()}},e)})),Cc.apply(this,arguments)}var Ec=function(){var e=x(y().mark(function e(t){var n,a,i;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,w.store.fetcher.load(t);case 1:if(!(n=w.store.any(w.store.sym(t),w.store.sym("http://www.iana.org/assignments/link-relations/acl")))){e.next=6;break}return e.prev=2,e.next=3,w.store.fetcher.webOperation("DELETE",n.value);case 3:a=e.sent,Y.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:Y.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 Ac(e,t,n){return _c.apply(this,arguments)}function _c(){return _c=x(y().mark(function e(t,n,a){var i,r,o=arguments;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=o.length>3&&void 0!==o[3]?o[3]:"",e.next=1,Ec(t);case 1:return e.next=2,w.store.updater.updateMany(n,a);case 2:return r=bc(t,i),e.next=3,fc(t,r);case 3:case"end":return e.stop()}},e)})),_c.apply(this,arguments)}var jc=function(){return ye(function e(t,n){ve(this,e),this.channel=t,this.channelRoot=t.doc(),this.options=n,this.dateFolder=new _r(this.channelRoot,"chat.ttl"),this.div=null},[{key:"createMessage",value:(a=x(y().mark(function e(t){return y().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 a.apply(this,arguments)})},{key:"updateMessage",value:(n=x(y().mark(function e(t){var n,a,i,r,o,s,c,l,u,p,d,m,f,b,x,g,k,C,E,A=arguments;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=A.length>1&&void 0!==A[1]?A[1]:null,a=A.length>2?A[2]:void 0,i=A.length>3&&void 0!==A[3]?A[3]:null,r=[],o=new Date,s=""+o.getTime(),c=h.term(o),l=n?n.doc():this.dateFolder.leafDocumentFromDate(o),u=w.store.sym(l.uri+"#Msg"+s),p=w.authn.currentUser(),(d=tc()).id=u.uri,!n){e.next=4;break}if((m=w.store.any(n,v.foaf("maker"))).uri!==p.uri){e.next=2;break}return e.next=1,Bc(n);case 1:f=e.sent,r.push(h.st(f,v.dct("isReplacedBy"),u,l)),(b=w.store.any(f,v.sioc("has_reply")))&&r.push(h.st(u,v.sioc("has_reply"),b,l)),a&&r.push(h.st(u,v.schema("dateDeleted"),c,l)),e.next=3;break;case 2:throw x="Error you cannot delete/edit a message from someone else : \n"+m.uri,Y.R8(x),alert(x),new Error(x);case 3:e.next=5;break;case 4:r.push(h.st(this.channel,v.wf("message"),u,l));case 5:if(r.push(h.st(u,v.sioc("content"),w.store.literal(t),l)),d.content=t,r.push(h.st(u,v.dct("created"),c,l)),d.created=c.value,!p){e.next=7;break}return r.push(h.st(u,v.foaf("maker"),p,l)),d.maker=p.uri,e.next=6,kc(p);case 6:g=e.sent,k=ic(d,g),r.push(h.st(u,h.sym("".concat(ec,"proofValue")),h.lit(k),l));case 7:return i&&(r.push(h.st(i,v.sioc("has_member"),u,l)),i.doc().sameTerm(u.doc())||r.push(h.st(i,v.sioc("has_member"),u,i.doc()))),e.prev=8,e.next=9,w.store.updater.updateMany([],r);case 9:e.next=11;break;case 10:throw e.prev=10,E=e.catch(8),C="Error saving chat message: "+E,Y.R8(C),alert(C),new Error(C);case 11:return e.abrupt("return",u);case 12:case"end":return e.stop()}},e,this,[[8,10]])})),function(e){return n.apply(this,arguments)})},{key:"deleteMessage",value:(t=x(y().mark(function e(t){return y().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=x(y().mark(function e(t){var n,a,i;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=w.store.each(t,v.sioc("has_reply"),null,t.doc()).filter(function(e){return w.store.holds(e,v.rdf("type"),v.sioc("Thread"),e.doc())}),!(n.length>0)){e.next=1;break}return e.abrupt("return",n[0]);case 1:return a=h.sym(t.uri+"-thread"),i=[h.st(a,v.rdf("type"),v.sioc("Thread"),a.doc()),h.st(t,v.sioc("has_reply"),a,a.doc())],e.next=2,w.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,a}();function Sc(e){return Tc.apply(this,arguments)}function Tc(){return(Tc=x(y().mark(function e(t){var n,a,i,r,o;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=[t],(a={})[t.uri]=!0,i=t;case 1:if((r=w.store.any(null,v.dct("isReplacedBy"),i,i.doc()))&&!a[r.uri]){e.next=2;break}return e.abrupt("continue",4);case 2:return e.next=3,w.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=w.store.any(i,v.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 Lc(e){return Rc.apply(this,arguments)}function Rc(){return Rc=x(y().mark(function e(t){var n,a;return y().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 Y.z3("originalVersion: verion loop"+t),e.abrupt("return",t);case 2:return a[n.uri]=!0,t=n,e.next=3,w.store.fetcher.load(t);case 3:n=w.store.any(null,v.dct("isReplacedBy"),t,t.doc()),e.next=1;break;case 4:return e.abrupt("return",t);case 5:case"end":return e.stop()}},e)})),Rc.apply(this,arguments)}function Bc(e){return Nc.apply(this,arguments)}function Nc(){return Nc=x(y().mark(function e(t){var n,a;return y().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 Y.z3("mostRecentVersion: verion loop"+t),e.abrupt("return",t);case 2:return a[n.uri]=!0,t=n,e.next=3,w.store.fetcher.load(t);case 3:n=w.store.any(t,v.dct("isReplacedBy"),null,t.doc()),e.next=1;break;case 4:return e.abrupt("return",t);case 5:case"end":return e.stop()}},e)})),Nc.apply(this,arguments)}function Ic(e){return w.store.holds(e,v.schema("dateDeleted"),null,e.doc())}function Oc(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 Fc(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)?Fc(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 Fc(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 Dc=w.solidLogicSingleton.store;function Pc(e,t,n,a,i,r){t.setAttribute("style",_e.participantsStyle);var o=function(n){var a,i=Dc.any(n,v.wf("participant"));if(!i)return(a=e.createElement("tr")).textContent="???",a;var o=Dc.anyValue(n,v.ui("backgroundColor"))||Ae.participationDefaultBackground,s=e.createElement("div");s.setAttribute("style",_e.participantsBlock),s.style.backgroundColor=o,a=Pt(e,null,i,r),t.appendChild(a);var c=e.createElement("td");return c.setAttribute("style",_e.personTableTD),c.appendChild(s),a.insertBefore(c,a.firstChild),a},s=function(){var e=Dc.each(a,v.wf("participation")).map(function(e){return(0,Y.Rm)("in participants"),[Dc.anyValue(e,v.cal("dtstart"))||"9999-12-31",e]});e.sort();var n=e.map(function(e){return e[1]});Ue(t,n,o)};return t.refresh=s,s(),t}function Uc(e,t,n){return new Promise(function(a,i){if(!n)throw new Error("No user id");var r=Dc.each(e,v.wf("participation")).filter(function(e){return Dc.holds(e,v.wf("participant"),n)});if(r.length>1){var o,s=[],c=Oc(r);try{for(c.s();!(o=c.n()).done;){var l=o.value,u=Dc.anyValue(l,v.cal("dtstart"));u&&s.push([u,l])}}catch(e){c.e(e)}finally{c.f()}s.sort(),Y.R8("Multiple participation objects, picking earliest, in "+t),a(s[0][1])}if(r.length)a(r[0]);else{var p=$a(t),d=[(0,h.st)(e,v.wf("participation"),p,t),(0,h.st)(p,v.wf("participant"),n,t),(0,h.st)(p,v.cal("dtstart"),new Date,t),(0,h.st)(p,v.ui("backgroundColor"),Vc(n),t)];Dc.updater.update([],d,function(e,t,n){t?a(p):i(new Error("Error recording your participation: "+n))}),a(p)}})}function Mc(e,t,n){var a=w.authn.currentUser();if(a){var i=Dc.each(e,v.wf("participation")).filter(function(e){return Dc.holds(e,v.wf("participant"),a)});if(i.length>1)throw new Error("Multiple records of your participation");if(i.length)return i[0];if(!Dc.updater.editable(t))return Y.Rm("Not recording participation, as no write access as "+a+" to "+t),null;var r=$a(t),o=[(0,h.st)(e,v.wf("participation"),r,t),(0,h.st)(r,v.wf("participant"),a,t),(0,h.st)(r,v.cal("dtstart"),new Date,t),(0,h.st)(r,v.ui("backgroundColor"),Vc(a),t)];return Dc.updater.update([],o,function(e,t,a){if(!t)throw new Error("Error recording your participation: "+a);n&&n.refresh&&n.refresh()}),r}}function zc(e,t,n,a,i,r){var o=e.createElement("table");t.appendChild(o),Pc(e,o,0,a,0,r);try{Mc(a,n,o)}catch(n){t.appendChild(ct(e,"Error recording your participation: "+n))}return o}var qc=w.solidLogicSingleton.store,Hc=(0,h.Namespace)("http://www.w3.org/ns/pim/pad#");function Vc(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 Gc(e,t,n,a,i){var r=(i=i||{}).exists,o=e.createElement("table"),s=qc;if(a&&!a.uri)throw new Error("UI.pad.notepad: Invalid userid");var c=qc.updater,l=(0,h.Namespace)("http://www.w3.org/ns/pim/pad#");o.setAttribute("style",_e.notepadStyle);var u=null,p=null;if(i.statusArea){var d=i.statusArea.appendChild(e.createElement("table")).appendChild(e.createElement("tr"));u=d.appendChild(e.createElement("td")),p=d.appendChild(e.createElement("td")),u&&u.setAttribute("style",_e.upstreamStatus),p&&p.setAttribute("style",_e.downstreamStatus)}var m=function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,Y.Rm)(t),i.statusArea&&(n?u:p).appendChild(ct(e,t,"pink"))},f=function(e){i.statusArea&&(i.statusArea.innerHTML="")},b=function(e,t,n){var a=e.subject;t=t||"";var i=_e.baseStyle,r=_e.headingCore,o=_e.headingStyle,c=s.any(a,v.dc("author"));!t&&c&&(t="color: "+(n?"#888":"black")+"; background-color: "+Vc(c)+";");var u=s.any(a,l("indent")),p=(u=u?u.value:0)>=0?i+"text-indent: "+3*u+"em;":r+o[-1-u];e.setAttribute("style",p+t)},x=function(e){var a=e.subject;if(!a)throw new Error("No chunk for line to be deleted!");var i=s.any(void 0,l("next"),a),r=s.any(a,l("next"));if(i.sameTerm(n)&&r.sameTerm(n))(0,Y.Rm)("You can't delete the only line.");else{var o=s.statementsMatching(a,void 0,void 0,t).concat(s.statementsMatching(void 0,void 0,a,t)),u=[(0,h.st)(i,l("next"),r,t)];if(a instanceof h.NamedNode){var p=a.uri.slice(-4);(0,Y.Rm)("Deleting line "+p)}if(!c)throw new Error("have no updater");c.update(o,u,function(t,n,i,r){if(n){var s=e.parentNode;if(s){var c=s.previousSibling;s.parentNode&&s.parentNode.removeChild(s),c&&c.firstChild&&c.firstChild.focus()}}else if(r&&409===r.status)b(e,"color: black; background-color: #ffd;"),e.state=0,Fe(),setTimeout(function(){_()},1e3);else{(0,Y.Rm)(" removePart FAILED "+a+": "+i),(0,Y.Rm)(" removePart was deleteing :'"+o),b(e,"color: black; background-color: #fdd;");var l=r?r.status:" [no response field] ";m("Error "+l+" saving changes: "+i.true)}})}},g=function(e,n){e.addEventListener("keydown",function(a){if(!c)throw new Error("no updater");var i,r;switch(a.keyCode){case 13:var o=a.shiftKey;if((0,Y.Rm)("enter"),o?(r=s.any(void 0,l("next"),n),i="newlinesAfter"):(r=s.any(n,l("next")),i="newlinesBefore"),r[i]=r[i]||0,r[i]+=1,r[i]>1)return void(0,Y.Rm)(" queueing newline queue = "+r[i]);(0,Y.Rm)(" go ahead line before "+r[i]),w(e,o);break;case 8:if(0===e.value.length)switch((0,Y.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,x(e),a.preventDefault();break;default:throw new Error("pad: Unexpected state "+e)}break;case 9:var u=a.shiftKey?-1:1;!function(e,n,a){var i=s.statementsMatching(n,l("indent")),r=i.length?Number(i[0].object.value):0;if(!(r+a<-3)){var o=r+a,u=(0,h.st)(n,l("indent"),o,t);if(!c)throw new Error("no updater");c.update(i,u,function(n,a,i){a?b(e):((0,Y.Rm)("Indent change FAILED '"+o+"' for "+t+": "+i),b(e,"color: black; background-color: #fdd;"),c.requestDownstreamAction(t,_))})}}(e,n,u),a.preventDefault();break;case 27:(0,Y.Rm)("escape"),c.requestDownstreamAction(t,_),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 a=function(e){var n=e.subject;b(e,void 0,!0);var i,r=s.any(n,v.sioc("content")).value,o=[(0,h.st)(n,v.sioc("content"),r,t)];e.value&&(i=[(0,h.st)(n,v.sioc("content"),e.value,t)]);var l=e.value;if(e.lastSent&&r!==e.lastSent)throw new Error("Out of order, last sent expected '"+r+"' but found '"+e.lastSent+"'");if(e.lastSent=l,!c)throw new Error("no updater");c.update(o,i,function(n,i,o,s){i?(f(),b(e),(0,Y.Rm)(" Patch ok '"+r+"' -> '"+l+"' "),4===e.state?(e.state=3,x(e)):3===e.state||(2===e.state?(e.state=1,a(e)):e.state=0)):((0,Y.Rm)(" patch FAILED "+s.status+" for '"+r+"' -> '"+l+"': "+o),409===s.status?(b(e,"color: black; background-color: #fdd;"),e.state=0,Fe(),setTimeout(function(){c.requestDownstreamAction(t,_)},1e3)):(b(e,"color: black; background-color: #fdd;"),e.state=0,m(" Error "+s.status+" sending data: "+o,!0),Fe()))})};e.addEventListener("input",function(t){switch(b(e,void 0,!0),(0,Y.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:e.state=1,a(e)}})},y=function(t,n,i){var r=s.any(n,v.sioc("content"));r=r?r.value:"";var c=e.createElement("tr");i?o.insertBefore(c,t):t&&t.nextSibling?o.insertBefore(c,t.nextSibling):o.appendChild(c);var l=c.appendChild(e.createElement("input"));return l.subject=n,l.setAttribute("type","text"),l.value=r,a?(b(l,""),g(l,n)):(b(l,"color: #222; background-color: #fff"),(0,Y.Rm)("Note can't add listeners - not logged in")),l},w=function(e,i){var r,o,s,u,p,d=qc,m=0,f=null;e?("input"!==e.tagName.toLowerCase()&&(0,Y.Rm)("return pressed when current document is: "+e.tagName),r=e.subject,m=(m=d.any(r,l("indent")))?Number(m.value):0,i?(o=d.any(void 0,l("next"),r),s=r,u=o,f="newlinesAfter"):(o=r,s=d.any(r,l("next")),u=s,f="newlinesBefore"),p=e.parentNode):(o=n,s=n,p=void 0);var x=$a(t),g=x.uri.slice(-4),k=[(0,h.st)(o,l("next"),s,t)],C=[(0,h.st)(o,l("next"),x,t),(0,h.st)(x,l("next"),s,t),(0,h.st)(x,v.dc("author"),a,t),(0,h.st)(x,v.sioc("content"),"",t)];if(m>0&&C.push((0,h.st)(x,l("indent"),m,t)),(0,Y.Rm)(" Fresh chunk "+g+" proposed"),!c)throw new Error("no updater");c.update(k,C,function(e,t,n,a){if(t){var r=y(p,x,i);b(r),r.focus(),f&&((0,Y.Rm)(" Fresh chunk "+g+" updated, queue = "+u[f]),u[f]-=1,u[f]>0&&((0,Y.Rm)(" Implementing queued newlines = "+s.newLinesBefore),w(r,i)))}else(0,Y.Rm)(" ERROR writing new line "+g+": "+n)})},k=function(){var e={},t=0;function a(e){m(e),t++}if(!s.the(n,l("next")))return a("No initial next pointer"),!1;for(var i,r=n;(i=s.the(r,l("next")))||a("No next pointer from "+r),!i.sameTerm(n);){r=i;var o=i.uri.split("#")[1];if(e[i.uri])return a("Loop!"),!1;e[i.uri]=!0;var c=s.each(i,l("next")).length;1!==c&&a("Should be 1 not "+c+" next pointer for "+o),(c=s.each(i,l("indent")).length)>1&&a("Should be 0 or 1 not "+c+" indent for "+o),1!==(c=s.each(i,v.sioc("content")).length)&&a("Should be 1 not "+c+" contents for "+o),1!==(c=s.each(i,v.dc("author")).length)&&a("Should be 1 not "+c+" author for "+o),s.statementsMatching(void 0,v.sioc("contents")).forEach(function(t){e[t.subject.value]||a("Loose chunk! "+t.subject.value)})}return!t},C=function(){if(1!==s.each(n,l("next")).length){var e="Pad: Inconsistent data - NEXT pointers: "+s.each(n,l("next")).length;return(0,Y.Rm)(e),void(i.statusArea&&(i.statusArea.textContent+=e))}for(var t,a=[],r=s.the(n,l("next"));!r.sameTerm(n);r=s.the(r,l("next")))for(var c=0;c<o.children.length;c++){var u=o.children[c];u.firstChild&&u.firstChild.subject.sameTerm(r)&&(a[r.uri]=u.firstChild)}for(var p=o.children.length-1;p>=0;p--)a[(t=o.children[p]).firstChild.subject.uri]||o.removeChild(t);t=o.firstChild;for(var d=s.the(n,l("next"));!d.sameTerm(n);d=s.the(d,l("next"))){var m=s.any(d,v.sioc("content")).value;if(t&&a[d.uri]){var f=t.firstChild;m!==f.value&&(f.value=m),b(f),f.state=0,delete f.lastSent,t=t.nextSibling}else y(t,d,!0)}},E=function(e){if(e.refresh)e.refresh();else for(var t=0;t<e.children.length;t++)E(e.children[t])},A=!1,_=function(){if(A)(0,Y.Rm)(" Already reloading - stop");else{A=!0;var e=1e3,n=function(){if((0,Y.Rm)("try reload - timeout = "+e),!c)throw new Error("no updater");c.reload(c.store,t,function(a,i,r){A=!1,a?((0,Y.Rm)(" reloaded OK"),f(),k()?E(o):m("CONSISTENCY CHECK FAILED")):0===r.status?(m("Network error refreshing the pad. Retrying in "+e/1e3),A=!0,e*=2,setTimeout(n,e)):m("Error "+r.status+"refreshing the pad:"+i+". Stopped. "+t)})};n()}};if(o.refresh=C,o.reloadAndSync=_,a||(0,Y.Rm)("Warning: must be logged in for pad to be edited"),r)(0,Y.Rm)("Existing pad."),k()?(C(),s.holds(n,l("next"),n)&&w()):(0,Y.Rm)(o.textContent="Inconsistent data. Abort");else{(0,Y.Rm)("No pad exists - making new one.");var j=[(0,h.st)(n,v.rdf("type"),l("Notepad"),t),(0,h.st)(n,v.dc("author"),a,t),(0,h.st)(n,v.dc("created"),new Date,t),(0,h.st)(n,l("next"),n,t)];if(!c)throw new Error("no updater");c.update([],j,function(e,t,n){t?((0,Y.Rm)("Initial pad created"),w()):m(n||"")})}return o}function Wc(e,t){for(var n=[],a=t.the(e,Hc("next"));!a.sameTerm(e);a=t.the(a,Hc("next")))n.push(a);return n}function Jc(e){return e.replace("&","&").replace("<","<").replace(">",">")}function $c(e,t){var n=Wc(e,t),a="<html>\n <head>\n",i=t.anyValue(e,v.dct("title"));i&&(a+=" <title>".concat(Jc(i),"</title>\n")),a+=" </head>\n <body>\n";var r=0;function o(e){for(;r>e;r--)a+="</ul>\n"}return n.forEach(function(e){var n=t.anyJS(e,Hc("indent")),i=t.anyJS(e,v.sioc("content"));if(i){var s=Jc(i);if(n<0){o(0);var c=n>=-3?4+n:1;a+="\n<h".concat(c,">").concat(s,"</h").concat(c,">\n")}else n>0?(o(n),function(e){for(;r<e;r++)a+="<ul>\n"}(n),a+="<li>".concat(s,"</li>\n")):(o(n),a+="<p>".concat(s,"</p>\n"))}}),o(0),a+=" </body>\n</html>\n"}var Kc={icons:Re.Pt,ns:v,media:ar,pad:l,style:_e,utils:t,widgets:s},Qc=h.Namespace("http://www.w3.org/2002/01/bookmark#"),Zc=Q,Yc=window.document||null;function Xc(e,t){return new Promise(function(n,a){w.store.updater.update(e,t,function(e,t,i){t?n():a(new Error(i))})})}function el(){return(el=x(y().mark(function e(t){var n,a,i,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=Qc("Bookmark"),a="bookmarks.ttl",e.next=1,mi(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&&Y.R8("More than one bookmark file! "+t.instances),e.next=9;break;case 2:if(!t.publicProfile){e.next=8;break}return i=h.sym(t.publicProfile.dir().uri+a),e.prev=3,Y.Rm("Creating new bookmark file "+i),e.next=4,w.store.fetcher.createIfNotExists(i);case 4:e.next=6;break;case 5:return e.prev=5,r=e.catch(3),Y.R8("Can't make fresh bookmark file:"+r),e.abrupt("return",t);case 6:return e.next=7,w.createTypeIndexLogic.registerInTypeIndex(i,t.index,n);case 7:t.bookmarkDocument=i,e.next=9;break;case 8:Y.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 tl(e,t){return nl.apply(this,arguments)}function nl(){return nl=x(y().mark(function e(t,n){var a,i,r,o,s,c,l,u;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a="",i=w.authn.currentUser()){e.next=1;break}throw new Error("Must be logged on to add Bookmark");case 1:return r=w.store.any(n,v.foaf("maker")),a=Zc(r)+": "+w.store.anyValue(n,v.sioc("content")).slice(0,80),o=t.bookmarkDocument,s=Kc.widgets.newThing(o,a),c=[h.st(o,Kc.ns.dct("references"),s,o),h.st(s,Kc.ns.rdf("type"),Qc("Bookmark"),o),h.st(s,Kc.ns.dct("created"),new Date,o),h.st(s,Qc("recalls"),n,o),h.st(s,Kc.ns.foaf("maker"),i,o),h.st(s,Kc.ns.dct("title"),a,o)],e.prev=2,e.next=3,Xc([],c);case 3:e.next=5;break;case 4:return e.prev=4,u=e.catch(2),l="Making bookmark: "+u,Y.R8(l),e.abrupt("return",null);case 5:return e.abrupt("return",s);case 6:case"end":return e.stop()}},e,null,[[2,4]])})),nl.apply(this,arguments)}function al(e,t,n){return il.apply(this,arguments)}function il(){return(il=x(y().mark(function e(t,n,a){var i,r,o,s;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,w.store.fetcher.load(t.bookmarkDocument);case 1:if(!(i=w.store.each(null,Qc("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:r=0;case 3:if(!(r<i.length)){e.next=8;break}return e.prev=4,e.next=5,Xc(w.store.connectedStatements(i[r]),[]);case 5:a.style.backgroundColor="white",Y.Rm("Bookmark deleted: "+i[r]),e.next=7;break;case 6:e.prev=6,s=e.catch(4),Y.z3("Cant delete bookmark:"+s),Y.R8("Cannot delete bookmark:"+s);case 7:r++,e.next=3;break;case 8:e.next=11;break;case 9:return e.next=10,tl(t,n);case 10:o=e.sent,a.style.backgroundColor="yellow",Y.Rm("Bookmark added: "+o);case 11:case"end":return e.stop()}},e,null,[[4,6]])}))).apply(this,arguments)}function rl(e,t){return ol.apply(this,arguments)}function ol(){return ol=x(y().mark(function e(t,n){var a,i,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(i=function(){return i=x(y().mark(function e(n){var a;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,w.store.fetcher.load(t.bookmarkDocument);case 1:a=w.store.any(null,Qc("recalls"),n.target,t.bookmarkDocument),n.style=Kc.style.buttonStyle,a&&(n.style.backgroundColor="yellow");case 2:case"end":return e.stop()}},e)})),i.apply(this,arguments)},a=function(e){return i.apply(this,arguments)},!t.bookmarkDocument){e.next=2;break}return(r=Kc.widgets.button(Yc,Kc.icons.iconBase+"noun_45961.svg",Zc(Qc("Bookmark")),function(){al(t,n,r)})).target=n,e.next=1,a(r);case 1:return e.abrupt("return",r);case 2:case"end":return e.stop()}},e)})),ol.apply(this,arguments)}var sl=window.document,cl={};function ll(e,t){return ul.apply(this,arguments)}function ul(){return ul=x(y().mark(function e(t,n){var a,i,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=function(){return(r=x(y().mark(function e(){var i,r,o;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a.innerHTML="",!Ic(t)){e.next=1;break}return e.abrupt("return",a);case 1:return e.next=2,Sc(t);case 2:if(i=e.sent,0!==(r=i.map(function(e){return w.store.each(null,v.schema("target"),e,n)}).flat()).length){e.next=3;break}return e.abrupt("return",a);case 3:(o=r.map(function(e){return[w.store.any(e,v.rdf("type"),null,n),w.store.any(e,v.sioc("content"),null,n),w.store.any(e,v.schema("agent"),null,n)]})).sort(),o.forEach(function(e){var t,n=Ce(e,3),i=n[0],r=n[1],o=n[2];o?(t=sl.createElement("a")).setAttribute("href",o.uri):t=sl.createTextNode(""),t.textContent=r||cl[i]||"⬜️",a.appendChild(t)});case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)},i=function(){return r.apply(this,arguments)},a=sl.createElement("span"),i().then(Y.Rm("sentimentStripLinked: sentimentStripLinked async refreshed")),a.refresh=i,e.abrupt("return",a);case 1:case"end":return e.stop()}},e)})),ul.apply(this,arguments)}function pl(e,t,n,a){return dl.apply(this,arguments)}function dl(){return dl=x(y().mark(function e(t,n,a,i){var r,o,s,c,l,u,p,d,m,f,b,g,k,C,E,A,_,j,S;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return g=function(e,t,a,i,r,o){function s(){l.style.backgroundColor=c?"yellow":"white"}var c,l=It(sl,a,Q(i),function(){var a=x(y().mark(function a(l){var p,d,f,b;return y().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(!c){a.next=2;break}return a.next=1,m(c);case 1:c=null,s(),a.next=8;break;case 2:return c=$a(r),p=[h.st(c,v.schema("agent"),e.me,r),h.st(c,v.rdf("type"),i,r),h.st(c,v.schema("target"),t,r)],a.next=3,w.store.updater.update([],p);case 3:if(s(),!o){a.next=8;break}d=!1,f=0;case 4:if(!(f<o.length)){a.next=7;break}if(!(b=u(o[f]))){a.next=6;break}return a.next=5,m(b);case 5:d=!0;case 6:f++,a.next=4;break;case 7:d&&Ht(n);case 8:case"end":return a.stop()}},a)}));return function(e){return a.apply(this,arguments)}}());function u(n){var a=w.store.each(null,v.schema("agent"),e.me,r).filter(function(e){return w.store.holds(e,v.rdf("type"),n,r)}).filter(function(e){return w.store.holds(e,v.schema("target"),t,r)});return a.length?a[0]:null}function p(){c=u(i),s()}return l.refresh=p,p(),l},f=function(){return(f=x(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,w.store.updater.update(w.store.connectedStatements(t),[]);case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)},m=function(e){return f.apply(this,arguments)},d=function(){p.parentElement.parentElement.removeChild(p.parentElement)},u=function(){return(u=x(y().mark(function e(){var n,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,i.createThread(t);case 1:if(n=e.sent,r=a.chatOptions){e.next=2;break}throw new Error("replyInThread: missing options");case 2:r.showThread(n,r),d();case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)},l=function(){return u.apply(this,arguments)},c=function(){return c=x(y().mark(function e(n){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(b.value!==w.store.any(t,v.foaf("maker")).value){e.next=1;break}return d(),e.next=1,jl(n,t,i,a);case 1:case"end":return e.stop()}},e)})),c.apply(this,arguments)},s=function(e){return c.apply(this,arguments)},o=function(){return o=x(y().mark(function e(){var r,o,s;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=w.store.any(t,v.foaf("maker")),b){e.next=1;break}alert("You can't delete the message, you are not logged in."),e.next=7;break;case 1:if(!b.sameTerm(r)){e.next=6;break}return e.prev=2,e.next=3,i.deleteMessage(t);case 3:e.next=5;break;case 4:e.prev=4,s=e.catch(2),o="Error deleting messaage "+s,Y.R8(o),alert(o),(a.statusArea||n.parentNode).appendChild(ct(sl,o));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, "+r);case 7:d();case 8:case"end":return e.stop()}},e,null,[[2,4]])})),o.apply(this,arguments)},r=function(){return o.apply(this,arguments)},p=sl.createElement("div"),e.next=1,Bc(t).value;case 1:if(E=e.sent,A=v.schema("dateDeleted").value,E!==A){e.next=2;break}return e.abrupt("return",p);case 2:if((b=w.authn.currentUser())&&w.store.holds(t,v.foaf("maker"),b)&&(p.appendChild(Nt(sl,p,"message",r)),p.appendChild(It(sl,Re.Pt.iconBase+"noun_253504.svg","edit",function(){return s(n)}))),rl(a).then(function(e){e&&p.appendChild(e)}),b=w.authn.currentUser(),!(_=b)){e.next=4;break}return e.next=3,Bc(t).value;case 3:j=e.sent,S=v.schema("dateDeleted").value,_=j!==S;case 4:if(!_){e.next=5;break}k={me:b,dom:sl,div:p},p.appendChild(g(k,t,Re.Pt.iconBase+"noun_1384132.svg",v.schema("AgreeAction"),t.doc(),[v.schema("DisagreeAction")])),p.appendChild(g(k,t,Re.Pt.iconBase+"noun_1384135.svg",v.schema("DisagreeAction"),t.doc(),[v.schema("AgreeAction")]));case 5:return w.store.any(t,v.dct("created"))&&p.appendChild(It(sl,Re.Pt.iconBase+"noun-reply-5506924.svg","Reply in thread",x(y().mark(function e(){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,l();case 1:case"end":return e.stop()}},e)})))),(C=p.appendChild(Ot(sl))).style.float="right",C.firstChild.style.opacity="0.3",C.addEventListener("click",d),e.abrupt("return",p);case 6:case"end":return e.stop()}},e)})),dl.apply(this,arguments)}function ml(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 fl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ml(Object(n),!0).forEach(function(t){on(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ml(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hl(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 vl(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)?vl(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 vl(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}cl[v.schema("AgreeAction")]="👍",cl[v.schema("DisagreeAction")]="👎",cl[v.schema("EndorseAction")]="⭐️",cl[v.schema("LikeAction")]="❤️";var bl=window.document,xl=_e.messageBodyStyle,gl=Q;function yl(e,t){var n=bl.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=bl.createElement("a");return i.setAttribute("href",e),i.setAttribute("target","images"),i.appendChild(n),Se(n,$rdf.sym(e)),i}var wl=function(e,t){var n=bl.createElement("a");return t&&t.uri&&(n.setAttribute("href",t.uri),n.addEventListener("click",Gt,!0),n.setAttribute("style","color: #3B5998; text-decoration: none; ")),n.textContent=e,n};function kl(e){var t=w.store.any(e,v.foaf("nick"));return t?""+t.value:""+gl(e)}function Cl(e,t,n,a){var i=e.appendChild(wl(kl(t),t));t.uri&&w.store.fetcher.nowOrWhenFetched(t.doc(),void 0,function(e,n){i.textContent=kl(t)}),e.appendChild(bl.createElement("br")),e.appendChild(wl(n,a))}function El(e,t,n,a){var i=e.appendChild(wl(gl(t),t));t.uri&&w.store.fetcher.nowOrWhenFetched(t.doc(),void 0,function(e,n){i.textContent=kl(t)});var r=e.appendChild(wl(n,a));r.style.fontSize="80%",r.style.marginLeft="1em",e.appendChild(bl.createElement("br"))}function Al(e,t,n,a,i){return _l.apply(this,arguments)}function _l(){return _l=x(y().mark(function e(t,n,a,i,r){var o,s,c,l,u,p,d,m,f,h,b,g,k,C,E,A,_,j,S,T,L,R,B,N,I,O,F,D,P,U,M,z,q,H,V;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return z=function(e){return e?"#e8ffe8":"white"},o=!1,s="1"===i.colorizeByAuthor||!0===i.colorizeByAuthor,c=w.store.any(n,v.foaf("maker")),l=w.store.any(n,v.dct("created")),e.next=1,Bc(n);case 1:return u=e.sent,p=w.store.any(u,v.foaf("maker")),d=c.uri===(null==p?void 0:p.uri)?u:n,m=w.store.any(d,v.sioc("content")),e.next=2,Sc(d);case 2:(f=e.sent).length>1&&Y.Rm("renderMessageRow versions: ",f.join(", ")),h=f.map(function(e){return w.store.each(e,v.sioc("has_reply"))}).flat(),b=null,g=[],k=hl(h);try{for(k.s();!(C=k.n()).done;)E=C.value,w.store.holds(E,v.rdf("type"),v.sioc("Thread"))?(b=E,Y.Rm("renderMessageRow: found thread: "+b)):g.push(E)}catch(e){k.e(e)}finally{k.f()}return g.length>1&&Y.Rm("renderMessageRow: found normal replies: ",g),b||(b=w.store.any(null,v.sioc("has_member"),n)),A=w.store.any(d,$rdf.sym("".concat(ec,"proofValue"))),(_=tc()).id=d.uri,_.created=w.store.any(d,v.dct("created")).value,_.content=m.value,_.maker=c.uri,null!=A&&A.value?yc(c).then(function(e){e||Y.R8("message is signed but "+c.uri+" is missing publicKey");null!=e&&e.match(/[0-9A-Fa-f]{6}/g)?null!=A&&A.value&&!ac(null==A?void 0:A.value,_,e)&&Y.R8("invalid signature\n"+_.id):Y.R8("invalid publicKey hex string\n"+c.uri+"\n"+e)}):(o=!0,Y.R8(d.uri+" is unsigned")),e.next=3,Lc(n);case 3:return j=e.sent,S=!n.sameTerm(j),T=w.store.the(j,v.dct("created"),null,j.doc())||w.store.the(n,v.dct("created"),null,n.doc()),L=bl.createElement("tr"),o&&L.setAttribute("style","background-color: red"),L.AJAR_date=T.value,L.AJAR_subject=n,R=bl.createElement("td"),L.appendChild(R),i.authorDateOnLeft?Cl(R,c,yt(T.value),n):((B=bl.createElement("img")).setAttribute("style","max-height: 2.5em; max-width: 2.5em; border-radius: 0.5em; margin: auto;"),Rt(B,c),R.appendChild(B)),N=yt(T.value),S&&(N+=" ... "+yt(l.value)),I=L.appendChild(bl.createElement("td")),i.authorDateOnLeft||El(I,c,N,n),O=m?m.value.trim():"??? no content?",F=/^https?:\/[^ <>]*$/i.test(O),D=null,F?/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(O)&&i.expandImagesInline?(P=yl(O,i),I.appendChild(P)):(U=I.appendChild(bl.createElement("a")),D=U.appendChild(bl.createElement("p")),U.href=O,D.textContent=O,I.appendChild(U)):(D=bl.createElement("p"),I.appendChild(D),D.textContent=O),D&&(M=s?Vc(c):z(a),D.setAttribute("style",xl+"background-color: "+M+";")),e.next=4,ll(n,n.doc());case 4:return(q=e.sent).children.length&&(I.appendChild(bl.createElement("br")),I.appendChild(q)),H=bl.createElement("td"),L.appendChild(H),V=It(bl,Re.Pt.iconBase+"noun_243787.svg","..."),H.appendChild(V),V.addEventListener("click",function(){var e=x(y().mark(function e(a){var o,s,c;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!L.toolTR){e.next=1;break}return L.parentNode.removeChild(L.toolTR),delete L.toolTR,e.abrupt("return");case 1:return o=bl.createElement("tr"),e.next=2,pl(n,L,fl(fl({},r),{},{chatOptions:i}),t);case 2:(s=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;",L.nextSibling?L.parentElement.insertBefore(o,L.nextSibling):L.parentElement.appendChild(o),L.toolTR=o,o.appendChild(bl.createElement("td")),c=o.appendChild(bl.createElement("td")),o.appendChild(bl.createElement("td")),c.appendChild(s);case 3:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()),b&&i.showThread&&H.appendChild(It(bl,Re.Pt.iconBase+"noun_1180164.svg","see thread",function(e){i.showThread(b,i)})),e.abrupt("return",L);case 5:case"end":return e.stop()}},e)})),_l.apply(this,arguments)}function jl(e,t,n,a){return Sl.apply(this,arguments)}function Sl(){return(Sl=x(y().mark(function e(t,n,a,i){var r,o,s,c,l,u,p;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.parentNode,s=Tl,c=a,l=r,u=i,p=a.options,e.next=1,Bc(n);case 1:o=s(c,l,u,p,e.sent),r.insertBefore(o,t),o.originalRow=t,t.style.visibility="hidden";case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Tl(e,t,n,a,i){function r(e){return o.apply(this,arguments)}function o(){return(o=x(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,s(m.value,!0);case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function s(e,t){return c.apply(this,arguments)}function c(){return c=x(y().mark(function r(o,s){var c,l,u,p;return y().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return l=function(){return l=x(y().mark(function r(o,c){var l;return y().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=1,Nl(e,t,o,!1,a,n);case 1:i?((l=h.originalRow).parentNode?l.parentNode.removeChild(l):(Y.R8("No parentNode on old message "+l.textContent),l.style.backgroundColor="#fee",l.style.visibility="hidden"),h.parentNode.removeChild(h)):s&&(m.value="",m.setAttribute("style",xl),m.disabled=!1,m.scrollIntoView(a.newestFirst),m.focus(),m.select());case 2:case"end":return r.stop()}},r)})),l.apply(this,arguments)},c=function(e,t){return l.apply(this,arguments)},s&&(m.setAttribute("style",xl+"color: #bbb;"),m.disabled=!0),r.prev=1,r.next=2,e.updateMessage(o,i,null,a.thread);case 2:u=r.sent,r.next=4;break;case 3:return r.prev=3,p=r.catch(1),(n.statusArea||h).appendChild(ct(bl,"Error writing message: "+p)),r.abrupt("return");case 4:return r.next=5,c(u,o);case 5:case"end":return r.stop()}},r,null,[[1,3]])})),c.apply(this,arguments)}function l(e){var n=t.chatDocument.dir().uri;Te(w.store.fetcher,e,n+"Files",n+"Pictures",function(){var e=x(y().mark(function e(t,n){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,s(n);case 1:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}())}var u,p,d=function(){var e=x(y().mark(function e(t){var n,a,i,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=hl(t),e.prev=1,n.s();case 2:if((a=n.n()).done){e.next=4;break}return i=a.value,e.next=3,s(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)}}();i?(u=w.store.anyValue(i,v.dct("created"),null,i.doc()),p=Re.Pt.iconBase+"noun_1180158.svg"):(p=Re.Pt.iconBase+"noun_383448.svg",u="9999-01-01T00:00:00Z");var m,f,h=bl.createElement("tr"),b=bl.createElement("td"),g=bl.createElement("td"),k=bl.createElement("td");return h.appendChild(b),h.appendChild(g),h.appendChild(k),h.AJAR_date=u,ci({div:g,dom:bl}).then(function(t){!function(){function t(){return(t=x(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=1;break}return e.next=1,s(t.uri);case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}if(a.menuHandler){var n=It(bl,Re.Pt.iconBase+"noun_243787.svg","More");n.setAttribute("style",_e.buttonStyle+"float: right;"),k.appendChild(n)}a.menuHandler;var o=w.authn.currentUser();if(Cl(b,o,"",null),m=bl.createElement("textarea"),g.innerHTML="",g.appendChild(m),m.rows=3,i&&(m.value=w.store.anyValue(i,v.sioc("content"),null,i.doc())),m.setAttribute("style",xl+"background-color: #eef;"),m.addEventListener("keydown",function(){var e=x(y().mark(function e(t){return y().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,r(t);case 1:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),!1),je(m,d,l),k.innerHTML="",(f=It(bl,p,"Send")).style.float="right",f.addEventListener("click",function(e){return r()},!1),k.appendChild(f),i){var c=k.appendChild(Ot(bl));c.style.float="left",c.addEventListener("click",function(e){return function(e){e.originalRow.style.visibility="visible",e.parentNode.removeChild(e)}(h)},!1),k.appendChild(c)}var u=e.dateFolder.leafDocumentFromDate(new Date);g.appendChild(ar.cameraButton(bl,w.store,function(){return $rdf.sym(u.dir().uri+"Image_"+Date.now()+".png")},function(e){return t.apply(this,arguments)})),Mc(e.channel,e.channel.doc())}(),Object.assign(t,n),function(e){return el.apply(this,arguments)}(t).then(function(e){})}),h}function Ll(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 Rl(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)?Rl(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 Rl(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 Bl(e){"Notification"in window?"granted"===Notification.permission?new Notification(e):"denied"!==Notification.permission&&Notification.requestPermission().then(function(t){"granted"===t&&new Notification(e)}):Y.R8("This browser does no t support desktop notification")}function Nl(e,t,n,a,i,r){return Il.apply(this,arguments)}function Il(){return(Il=x(y().mark(function e(t,n,a,i,r,o){var s,c,l,u,p;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Al(t,a,i,r,o);case 1:s=e.sent,r.selectedMessage&&r.selectedMessage.sameTerm(a)&&(s.style.backgroundColor="yellow",r.selectedElement=s,n.selectedElement=s),c=!1,l=n.firstChild;case 2:if(l){e.next=3;break}return e.abrupt("continue",5);case 3:if(u=!0===r.newestfirst,!((p=s.AJAR_date)>l.AJAR_date&&u||p<l.AJAR_date&&!u)){e.next=4;break}return n.insertBefore(s,l),c=!0,e.abrupt("continue",5);case 4:l=l.nextSibling,e.next=2;break;case 5:c||n.appendChild(s);case 6:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Ol(e,t,n,a){return Fl.apply(this,arguments)}function Fl(){return Fl=x(y().mark(function e(t,n,a,i){var r,o,s,c,l,u,p,d,m,f,b,g,k,C,E,A,_,j,S,T,L,R,B,N,I,O,F,D,P,U,M,z;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return S=function(){return(S=x(y().mark(function e(){var t,n,a,r,o,s,c,l,u,p;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=function(){i.selectedElement?i.selectedElement.scrollIntoView({block:"center"}):O.inputRow.scrollIntoView&&O.inputRow.scrollIntoView(T)},t=function(){u&&u.selectedElement&&u.selectedElement.scrollIntoView({block:"center"})},i.selectedMessage&&(r=i.selectedMessage.doc()),F&&(o=F.doc()),(s=r||o)&&(c=new Date,l=R.leafDocumentFromDate(c),a=l.sameTerm(s)),!s||a){e.next=2;break}return p=R.dateFromLeafDocument(s),e.next=1,d(p,a);case 1:u=e.sent,B.appendChild(u),D.messageTable=u,P.messageTable=u,t(),setTimeout(t,1e3),e.next=4;break;case 2:return e.next=3,C();case 3:D.messageTable=O,P.messageTable=O;case 4:return e.next=5,A(null,n);case 5:B.addEventListener("scroll",A),i.solo&&document.body.addEventListener("scroll",A);case 6:case"end":return e.stop()}},e)}))).apply(this,arguments)},j=function(){return S.apply(this,arguments)},_=function(){return(_=x(y().mark(function e(t,n){var a,r,o,s,c;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!z){e.next=1;break}return e.abrupt("return");case 1:z=!0,a=!n,r=150;case 2:if(!(B.scrollTop<r&&D.messageTable&&!D.messageTable.initial&&D.messageTable.extendBackwards)){e.next=6;break}if(0!==B.scrollHeight){e.next=3;break}return setTimeout(A,2e3),z=!1,e.abrupt("return");case 3:return s=B.scrollHeight-B.scrollTop,e.next=4,D.messageTable.extendBackwards();case 4:if(o=e.sent,a&&(B.scrollTop=B.scrollHeight-s),n&&n(),!o){e.next=5;break}return e.abrupt("continue",6);case 5:e.next=2;break;case 6:if(!(i.selectedMessage&&B.scrollHeight-B.scrollTop-B.clientHeight<r&&P.messageTable&&!P.messageTable.final&&P.messageTable.extendForwards)){e.next=9;break}return c=B.scrollTop,e.next=7,P.messageTable.extendForwards();case 7:if(o=e.sent,a&&(B.scrollTop=c),n&&n(),!o){e.next=8;break}return e.abrupt("continue",9);case 8:e.next=6;break;case 9:z=!1;case 10:case"end":return e.stop()}},e)}))).apply(this,arguments)},A=function(e,t){return _.apply(this,arguments)},E=function(){return(E=x(y().mark(function e(){var t,n,i;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=new Date,n=R.leafDocumentFromDate(t),e.next=1,d(t,!0);case 1:return i=e.sent,B.appendChild(i),B.refresh=x(y().mark(function e(){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,g(new Date);case 1:return e.next=2,r(a,i);case 2:Bl(a);case 3:case"end":return e.stop()}},e)})),w.store.updater.addDownstreamChangeListener(n,B.refresh),O=i,P.messageTable=O,e.abrupt("return",i);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)},C=function(){return E.apply(this,arguments)},k=function(){return(k=x(y().mark(function e(){var t,n,a;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((t=R.leafDocumentFromDate(new Date)).sameTerm(P.messageTable.chatDocument)){e.next=2;break}return O.inputRow&&(O.removeChild(O.inputRow),delete O.inputRow),n=P.messageTable.chatDocument,e.next=1,C();case 1:if(!w.store.holds(n,v.rdfs("seeAlso"),t,n)){a=[h.st(n,v.rdfs("seeAlso"),t,n)];try{w.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)},g=function(){return k.apply(this,arguments)},b=function(){return b=x(y().mark(function e(n,a){var r,o,c,u,d,m,f,h,b,g,k,C,E,A,_,j,S,N,F,D;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:b=function(){return(b=x(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!g.extendedForwards){e.next=1;break}p(!1,g),g.extendedForwards=!1,h(),e.next=3;break;case 1:return e.next=2,m();case 2:P.messageTable.scrollIntoView(T);case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)},h=function(){if(o){var e=g.extendedForwards?!T:T,t=g.final?"noun_T-Block_1114657_000000.svg":function(e){return e?"noun_1369237.svg":"noun_1369241.svg"}(e);o.firstChild.setAttribute("src",Re.Pt.iconBase+t)}},f=function(){return(f=x(y().mark(function e(){var t;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,l(!1);case 1:return t=e.sent,e.abrupt("return",t);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)},m=function(){return f.apply(this,arguments)},d=function(){if(r){var e=g.extendedBack?!T:T,t=g.initial?"noun_T-Block_1114655_000000.svg":function(e){return e?"noun_1369241.svg":"noun_1369237.svg"}(e);r.firstChild.setAttribute("src",Re.Pt.iconBase+t)}},u=function(){return(u=x(y().mark(function e(){var t;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,l(!0);case 1:return(t=e.sent)?(r&&(r.firstChild.setAttribute("src",Re.Pt.iconBase+"noun_T-Block_1114655_000000.svg"),r.disabled=!0),g.initial=!0):g.extendedBack=!0,d(),e.abrupt("return",t);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)},c=function(){return u.apply(this,arguments)},r=null,o=null,(g=t.createElement("table")).style.width="100%",g.extendBackwards=c,g.extendForwards=m,g.date=n,k=R.leafDocumentFromDate(n),g.chatDocument=k,g.fresh=!1,g.setAttribute("style","width: 100%;"),a&&(g.final=!0,O=g,P.messageTable=g,C=Tl(L,g,I,i),T?g.insertBefore(C,g.firstChild):g.appendChild(C),g.inputRow=C),E=t.createElement("tr"),(A=E.appendChild(t.createElement("td"))).style="text-align: center; vertical-align: middle; color: #888; font-style: italic;",A.textContent=yt(n.toISOString(),!0),_=E.appendChild(t.createElement("td")),i.includeRemoveButton&&_.appendChild(Ot(t,function(e){B.parentNode.removeChild(B)})),g.extendedForwards=!1,T?g.appendChild(E):g.insertBefore(E,g.firstChild),j=w.store.statementsMatching(null,v.wf("message"),null,k),!a&&j.length,S=Ll(j),e.prev=1,S.s();case 2:if((N=S.n()).done){e.next=4;break}return F=N.value,e.next=3,s(F.object,g);case 3:e.next=2;break;case 4:e.next=6;break;case 5:e.prev=5,D=e.catch(1),S.e(D);case 6:return e.prev=6,S.f(),e.finish(6);case 7:return g.fresh=!0,e.abrupt("return",g);case 8:case"end":return e.stop()}},e,null,[[1,5,6,7]])})),b.apply(this,arguments)},f=function(e,t){return b.apply(this,arguments)},m=function(){return(m=x(y().mark(function e(n,a){var i,r,o,s;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=R.leafDocumentFromDate(n),e.prev=1,e.next=2,w.store.fetcher.createIfNotExists(i);case 2:e.next=7;break;case 3:if(e.prev=3,s=e.catch(1),r=t.createElement("table"),o=r.appendChild(t.createElement("tr")),!s.response||!s.response.status||404!==s.response.status){e.next=5;break}return e.next=4,f(n,a);case 4:return e.abrupt("return",e.sent);case 5:Y.Rm("*** Error NON 404 for chat file "+i),o.appendChild(ct(t,s,"pink"));case 6:return e.abrupt("return",o);case 7:return e.next=8,f(n,a);case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}},e,null,[[1,3]])}))).apply(this,arguments)},d=function(e,t){return m.apply(this,arguments)},p=function(e,t){if(e?T:!T)for(;t.nextSibling;)B.removeChild(t.nextSibling);else for(;t.previousSibling;)B.removeChild(t.previousSibling);(e?D:P).messageTable=t},u=function(){return(u=x(y().mark(function e(t){var n,a,i,r,o,s;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a=(n=t?D:P).messageTable.date,!(t&&D.limit&&a<=D.limit)){e.next=2;break}if(O){e.next=1;break}return e.next=1,C();case 1:return e.abrupt("return",!0);case 2:return e.next=3,R.loadPrevious(a,t);case 3:if((a=e.sent)||t||O){e.next=4;break}return e.next=4,C();case 4:if(a){e.next=5;break}return e.abrupt("return",!0);case 5:return i=!1,t||(r=R.leafDocumentFromDate(new Date),o=R.leafDocumentFromDate(a),i=o.sameTerm(r)),e.next=6,d(a,i);case 6:return s=e.sent,n.messageTable=s,(t?T:!T)?B.appendChild(s):B.insertBefore(s,B.firstChild),e.abrupt("return",i);case 7:case"end":return e.stop()}},e)}))).apply(this,arguments)},l=function(e){return u.apply(this,arguments)},c=function(){return c=x(y().mark(function e(t,n){var a,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!Ic(t)||i.showDeletedMessages){e.next=1;break}return e.abrupt("return");case 1:if(a=w.store.any(null,v.sioc("has_member"),t,t.doc()),(r=w.store.any(t,v.sioc("id"),null,t.doc()))&&!a&&(a=w.store.any(null,v.sioc("has_member"),r,t.doc())),!i.thread){e.next=5;break}if(!w.store.holds(t,v.sioc("has_reply"),i.thread)){e.next=2;break}e.next=4;break;case 2:if(!a||!a.sameTerm(i.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,Nl(L,n,t,n.fresh,i,I);case 7:case"end":return e.stop()}},e)})),c.apply(this,arguments)},s=function(e,t){return c.apply(this,arguments)},o=function(){return o=x(y().mark(function e(t,n){var a,i,r,o,c,l,u,p,d;return y().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);o=w.store.each(t,v.wf("message"),null,n.chatDocument),c={},l=Ll(o),e.prev=1,l.s();case 2:if((u=l.n()).done){e.next=4;break}if(p=u.value,c[p.uri]=!0,a[p.uri]){e.next=3;break}return e.next=3,s(p,n);case 3:e.next=2;break;case 4:e.next=6;break;case 5:e.prev=5,d=e.catch(1),l.e(d);case 6:return e.prev=6,l.f(),e.finish(6);case 7:for(i=n.firstChild;i;)r=i.nextSibling,i.AJAR_subject&&!c[i.AJAR_subject.uri]&&n.removeChild(i),i=r;for(i=n.firstChild;i;i=i.nextSibling)i.AJAR_subject&&Ht(i);case 8:case"end":return e.stop()}},e,null,[[1,5,6,7]])})),o.apply(this,arguments)},r=function(e,t){return o.apply(this,arguments)},(i=i||{}).authorDateOnLeft=!1,T="1"===i.newestFirst||!0===i.newestFirst,L=new jc(a,i),R=L.dateFolder,B=t.createElement("div"),L.div=B,N=B.appendChild(t.createElement("div")),I={dom:t,statusArea:N,div:N},D={messageTable:null},P={messageTable:null},i.thread&&(U=i.thread,(F=w.store.any(null,v.sioc("has_reply"),U,U.doc()))&&(M=w.store.any(F,v.dct("created"),null,F.doc()))&&(D.limit=new Date(M.value))),z=!1,e.next=1,j();case 1:return e.abrupt("return",B);case 2:case"end":return e.stop()}},e)})),Fl.apply(this,arguments)}var Dl=w.store,Pl=[];function Ul(e){return Pl[e]}function Ml(e,t){if("string"!=typeof t)throw Y.Rm("Non-string value of preference "+e+": "+t),new Error("Non-string value of preference "+e+": "+t);this.value[e]=t}function zl(e,t){return new Promise(function(n,a){var i=Dl.any(e,v.ui("sharedPreferences"));if(i)t.sharedPreferences=i,n(t);else{Dl.updater.editable(e.doc())||(Y.Rm(" Cant make shared preferences, may not change ".concat(e.doc)),n(t));var r=h.sym(e.doc().uri+"#SharedPreferences"),o=[h.st(e,v.ui("sharedPreferences"),r,e.doc())];Y.Rm("Creating shared preferences "+r),Dl.updater.update([],o,function(e,i,o){i?(t.sharedPreferences=r,n(t)):a(new Error("Error creating shared prefs: "+o))})}})}function ql(e,t){return new Promise(function(n,a){li(t).then(function(t){if(t.preferencesFile){var i,r,o=Dl.each(null,v.solid("forClass"),e,t.preferencesFile),s=[];if(o.length){if(o.forEach(function(e){i=i||Dl.any(e,v.solid("personalDefaults"))}),i)return t.personalDefaults=i,void n(t);i=$a(t.preferencesFile),r=o[0]}else r=$a(t.preferencesFile),s=[h.st(r,v.rdf("type"),v.solid("TypeRegistration"),t.preferencesFile),h.st(r,v.solid("forClass"),e,t.preferencesFile)];i=$a(t.preferencesFile),s.push(h.st(r,v.solid("personalDefaults"),i,t.preferencesFile)),Dl.updater.update([],s,function(r,o,s){o?(t.personalDefaults=i,n(t)):a(new Error("Setting preferences for "+e+": "+s))})}else Y.Rm("Not doing private class preferences as no access to preferences file. "+t.preferencesFileError)},function(e){a(e)})})}function Hl(e,t,n,a){var i=a.dom.createElement("div");return Uc(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),Ia(o,i,{},r,n,e.doc(),function(e,t){e||bt(a,t)}),s("Everyone's view of this "+a.noun),zl(e,a).then(function(a){var r=a.sharedPreferences;Ia(o,i,{},r,n,e.doc(),function(e,t){e||bt(a,t)}),s("My default view of any "+a.noun),ql(t,a).then(function(e){Ia(o,i,{},e.personalDefaults,n,e.preferencesFile,function(t,n){t||bt(e,n)})},function(e){bt(a,e)})})},function(e){i.appendChild(ct(a.dom,e))}),i}function Vl(e){return e.datatype?e.datatype.equals(v.xsd("boolean"))?"1"===e.value:e.datatype.equals(v.xsd("dateTime"))||e.datatype.equals(v.xsd("date"))?new Date(e.value):e.datatype.equals(v.xsd("integer"))||e.datatype.equals(v.xsd("float"))||e.datatype.equals(v.xsd("decimal"))?Number(e.value):e.value:e}function Gl(e,t,n,a){return new Promise(function(i,r){zl(e,a).then(function(a){var o=a.sharedPreferences;if(a.me)Uc(e,e.doc(),a.me).then(function(e){ql(t,a).then(function(t){var a=[],r=t.personalDefaults;n.forEach(function(t){var n=Dl.any(e,t)||Dl.any(o,t)||Dl.any(r,t);n&&(a[t.uri]=Vl(n))}),i(a)},r)},r);else{var s=[];n.forEach(function(e){var t=Dl.any(o,e);t&&(s[e.uri]=Vl(t))}),i(s)}})})}var Wl={icons:Re.Pt,log:e,ns:v,utils:t,widgets:s};function Jl(e,t){var n,a,i,r,o=t.sourceDocument,s=t.tableClass,c=t.query,l=Wl.ns,u=w.store,p={},d={"http://www.w3.org/2002/07/owl#sameAs":!0,"http://www.w3.org/1999/02/22-rdf-syntax-ns#type":!0},m={"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},f={"http://www.w3.org/2001/XMLSchema#dateTime":!0,"http://www.w3.org/2001/XMLSchema#date":!0},v={"http://xmlns.com/foaf/0.1/Image":!0,"http://purl.org/dc/terms/Image":!0},b=t.keyVariable||"?_row",x=0,g=null,y=null,k=e.createElement("div");k.className="tableViewPane",k.appendChild(function(){var t=e.createElement("table");t.setAttribute("class","toolbar");var n=e.createElement("tr");return i=e.createElement("td"),n.appendChild(i),r=e.createElement("td"),n.appendChild(r),t.appendChild(n),t}());var C,E=e.createElement("div");if(k.appendChild(E),k.refresh=function(){X(C.query,C.logicalRows,C.columns,C)},c)C=ne(c),E.appendChild(C);else{var A=function(){var e,t,n=function(){for(var e={},t=u.statementsMatching(void 0,Wl.ns.rdf("type"),s,o),n={},a=0;a<t.length;++a){var i=t[a].object;if("NamedNode"===i.termType){var r=I(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];F(t[a],i)}var r=new T(null);return[r,R(t)]}();n=A[0],a=A[1],s||i.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(B("All types","null")),n)i.appendChild(B(n[r].getLabel(),r));return i.addEventListener("click",function(){var e;e="null"===i.value?t:n[i.value],j(e)},!1),a.appendChild(i),a}(n,a)),y=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}(a),j(y||n)}return k;function _(e){var t=new h.Query,n=u.variable(b.slice(1));return function(e,t){for(var n=t.getColumns(),a=0;a<n.length;++a){var i=u.variable("_col"+a);e.vars.push(i),n[a].setVariable(i)}}(t,e),function(e,t,n){var a=n.type;a||(a=u.variable("_any")),e.pat.add(t,Wl.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=u.formula();o.add(t,r.predicate,r.getVariable()),e.pat.optional.push(o)}}(t,n,e),t}function j(t){S(r),r.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(B("","-1"));for(var r=0;r<a.length;++r){var o=a[r];i.appendChild(B(o.getLabel(),""+r))}n.appendChild(i),i.addEventListener("click",function(){var e=Number(i.value);e>=0&&(t.addColumn(a[e]),j(t))},!1)}return n}(t)),function(e,t){g&&(g.running=!1);var n=ne(e,t);S(E),E.appendChild(n),g=e}(_(t),t)}function S(e){for(;e.childNodes.length>0;)e.removeChild(e.childNodes[0])}function T(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 Q(this.type)},this.addUse=function(){this.useCount+=1}}function L(){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(l.rdf("type"))&&this.superClass?Q(this.superClass,!0):Q(this.predicate):this.variable?this.variable.toString():"unlabeled column?"},this.setPredicate=function(e,t,n){t?(this.inverse=e,this.constraints=this.constraints.concat(u.each(e,Wl.ns.rdfs("domain"))),e.sameTerm(l.rdfs("subClassOf"))&&"NamedNode"===n.termType&&(this.superClass=n,this.alternatives=u.each(void 0,l.rdfs("subClassOf"),n))):(this.predicate=e,this.constraints=this.constraints.concat(u.each(e,Wl.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 v)return!0;return!1}}function R(e,t){var n=[];for(var a in e){var i=e[a];t&&!t(a,i)||n.push(i)}return n}function B(t,n){var a=e.createElement("option");return a.setAttribute("value",n),a.appendChild(e.createTextNode(t)),a}function N(e,t){var n;return t.uri in e?n=e[t.uri]:((n=new L).setPredicate(t),e[t.uri]=n),n}function I(e,t){var n;return t.uri in e?n=e[t.uri]:(n=new T(t),e[t.uri]=n),n}function O(e,t){for(var n=u.statementsMatching(e,void 0,void 0,o),a={},i=0;i<n.length;++i){var r=n[i].predicate;if(!(r.uri in d)){var s=N(t,r);s.checkValue(n[i].object),a[r.uri]=s}}return a}function F(e,t){for(var n={},a=0;a<t.length;++a){var i=O(t[a],n);for(var r in i){i[r].addUse()}}var o=R(n);!function(e){function t(e,t){return(e.useCount<t.useCount)-(e.useCount>t.useCount)}e.sort(t)}(o),e.allColumns=o}function D(t,n){var a=e.createElement("a");return a.appendChild(e.createTextNode("[x]")),a.addEventListener("click",function(){t.removeColumn(n),j(t)},!1),a}function P(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 U(e,t){for(var n=0;n<e.length;++n){P(e[n],t)}}function M(e,t,n){function a(e){return e?"Literal"===e.termType?e.value.toLowerCase():"NamedNode"===e.termType?Q(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 z(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(){M(t,a,!1)},!1),i.appendChild(o);var s=e.createElement("span");s.appendChild(e.createTextNode("▲")),s.addEventListener("click",function(){M(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?Q(e):"").toLowerCase().indexOf(c)>=0},r.addEventListener("keyup",function(){c=""!==r.value?r.value.toLowerCase():null,U(t,n)},!1),i}function q(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 u=W(a).initialSelection;u&&(s=u),o.setAttribute("multiple","true");for(var p=0;p<i.length;++p){var d=i[p],m=B(Q(d),p);s[d.uri]&&(m.selected=!0),o.appendChild(m)}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)}U(t,n)},!0),r}function H(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),U(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 V(e,t,n){if(n.superClass&&n.alternatives.length>0)return q(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 m)return H(e,t,n);if("http://www.w3.org/2000/01/rdf-schema#Literal"===a.uri)return z(e,t,n);var o=u.each(a,Wl.ns.owl("oneOf"));if(o.length>0)return q(e,t,n,o.elements)}return function(e,t,n){return n.checkedAnyValues&&n.possiblyNumber?H(e,t,n):n.possiblyLiteral?z(e,t,n):null}(e,t,n)}function G(t,n,a){a=a||{};var i=e.createElement("a"),r=a.linkFunction;return i.setAttribute("href",t),i.appendChild(e.createTextNode(n)),r?i.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation();var t=He(e).getAttribute("href");t||Y.Rm("No href found \n"),r(t)},!0):i.addEventListener("click",Wl.widgets.openHrefInOutlineMode,!0),i}function W(e){return t&&t.hints&&e.variable&&t.hints[e.variable.toNT()]?t.hints[e.variable.toNT()]:{}}function J(t,n){var a=W(n),i=a.cellFormat;if(!i){if("Literal"===t.termType){if(t.datatype){if(f[t.datatype.uri])return e.createTextNode(Wl.widgets.shortDate(t.value));if(m[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:(.*)/)),G(e.uri,n?n[1]:Q(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(J(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(Wl.widgets.shortDate(t.value))}function $(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 K(t,n,a){var i,r=!1;for(i in a){var o=a[i];i in t.values||(t.values[i]=[]),$(o,t.values[i])||(t.values[i].push(o),r=!0)}r&&(S(t._htmlRow),function(t,n,a){var i=e.createElement("td");n._subject&&"uri"in n._subject&&i.appendChild(G(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(J(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)),P(t,n)}function Z(e){if("uri"in e)return e.uri;if("_subject_id"in e)return e._subject_id;var t=""+x;return e._subject_id=t,++x,t}function X(n,a,i,r){n.running=!0;var o=Date.now(),s=e.createElement("tr");r.appendChild(s),s.textContent="Loading ...";for(var c=0;c<a.length;c++)a[c].original=!0,a[c].originalValues||(a[c].originalValues=a[c].values),a[c].values={};u.query(n,function(t){if(n.running){s.textContent+=".";var o,c=null,l=null;if(b in t&&(o=Z(l=t[b]))in p&&(c=p[o]),!c){var u=e.createElement("tr");r.appendChild(u),c={_htmlRow:u,_subject:l,values:{}},a.push(c),l&&(p[o]=c)}delete c.original,K(c,i,t)}},void 0,function(){s&&s.parentNode&&s.parentNode.removeChild&&(s.parentNode.removeChild(s),s=null);var e=Date.now()-o;Y.Rm("Query done: "+a.length+" rows, "+e+"ms");for(var n=a.length-1;n>=0;n--)if(a[n].original){Y.Rm(" deleting row "+a[n]._subject);var r=a[n]._htmlRow;r.parentNode.removeChild(r),delete p[Z(a[n]._subject)],a.splice(n,1)}if(t.sortBy){var c=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))}(i,t.sortBy);M(a,c,t.sortReverse)}t.onDone&&t.onDone(k)})}function ee(e,t){Wl.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)Wl.log.debug("recurse to optional subformula "+o),ee(e,t.optional[o]);Wl.log.debug("<< finished processing formula")}function te(e){for(var t=[],n={},a=0;a<e.vars.length;++a){var i=new L,r=e.vars[a];Wl.log.debug("column "+a+" : "+r),i.setVariable(r),n[r]=i,t.push(i)}return ee(n,e.pat),t}function ne(t,n){var a;a=c?te(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(D(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=V(t,n,n[i]);o&&r.appendChild(o),a.appendChild(r)}return a}(i,a)),r.logicalRows=i,r.columns=a,r.query=t,X(t,i,a,r),r}}function $l(e,t){if(t&&("object"==be(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Kl(e){return Kl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Kl(e)}function Ql(e,t){return Ql=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ql(e,t)}function Zl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Zl=function(){return!!e})()}function Yl(e){var t="function"==typeof Map?new Map:void 0;return Yl=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(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 function(e,t,n){if(Zl())return Reflect.construct.apply(null,arguments);var a=[null];a.push.apply(a,t);var i=new(e.bind.apply(e,a));return n&&Ql(i,n.prototype),i}(e,arguments,Kl(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Ql(n,e)},Yl(e)}function Xl(e,t,n){return t=Kl(t),$l(e,eu()?Reflect.construct(t,n||[],Kl(e).constructor):t.apply(e,n))}function eu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(eu=function(){return!!e})()}var tu=function(e){function t(){return ve(this,t),Xl(this,t,arguments)}return function(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&&Ql(e,t)}(t,e),ye(t)}(Yl(HTMLElement)),nu="#ddddcc";function au(e){var t=e.subject,n=e.dom||document,a=parseInt(e.orientation||"0"),i=e.backgroundColor||nu,r=2&a,o=1&a,s=e.onClose,c=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)?[iu(e,"#ffffff",.3),"#000000"]:[iu(e,"#000000",.3),"#ffffff"]}(i),l=Ce(c,2),u=l[0],p=l[1],d="flex: 2; width: auto; height: 100%; border: 0.1em; border-style: solid; border-color: ".concat(u,"; padding: 1em;"),m=n.createElement("div");m.setAttribute("style",_e.tabsRootElement),m.style.flexDirection=(o?"row":"column")+(r?"-reverse":"");var f=m.appendChild(n.createElement("nav"));f.setAttribute("style",_e.tabsNavElement);var h=m.appendChild(n.createElement("main"));h.setAttribute("style",_e.tabsMainElement);var v=f.appendChild(n.createElement("ul"));v.setAttribute("style",_e.tabContainer),v.style.flexDirection="".concat(o?"column":"row");var b=h;m.tabContainer=v,m.bodyContainer=b;var x=["0.2em","0.2em","0","0"],g=x.concat(x).slice(a,a+4),y="border-radius: ".concat(g.join(" "),";"),k=["0.3em","0.3em","0","0.3em"],C=k.concat(k).slice(a,a+4),E="margin: ".concat(C.join(" "),";"),A="padding: ".concat(C.join(" "),";"),_=y+"position: relative; padding: 0.7em; max-width: 20em; color: ".concat(p,";"),j="".concat(_+E," opacity: 50%; background-color: ").concat(i,";"),S="".concat(_+E," background-color: ").concat(u,";"),T="height: 100%; width: 100%;",L=T+"display: none;";if(m.refresh=F,F(),!e.startEmpty&&v.children.length&&e.selectedTab){var R=Array.from(v.children).map(function(e){return e.firstChild}).find(function(t){return t.dataset.name===e.selectedTab}),B=e.selectedTab.uri,N=Array.from(v.children).find(function(e){return e.subject&&e.subject.uri&&e.subject.uri===B}),I=(N||R||v.children[0]).firstChild;I&&I.click()}else e.startEmpty||v.children[0].firstChild.click();return m;function O(t){var a=n.createElement("li");a.setAttribute("style",j),a.subject=t;var i=a.appendChild(n.createElement("button"));if(i.setAttribute("style",_e.makeNewSlot),i.onclick=function(){if(D(),P(),a.setAttribute("style",S),a.bodyTR){a.bodyTR.setAttribute("style",T);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",_e.ellipsis),r.onclick=function(){if(D(),P(),a.setAttribute("style",S),a.bodyTR){a.bodyTR.setAttribute("style",T);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=Q(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",d),i}}function F(){var a,i,r,o,c,l=e.items?e.items:!1!==e.ordered?w.store.the(t,e.predicate).elements:w.store.each(t,e.predicate),u=!1;for(o=0;o<v.children.length;o++)if(a=v.children[o],o>=l.length||a.subject&&!a.subject.sameTerm(l[o])){u=!0;break}if(u||l.length!==v.children.length){for(c=v.children.length-1;c>=0&&(a=v.children[c],r=c-v.children.length+l.length,!a.subject||a.subject.sameTerm(l[r]));c--);for(var p=l.slice(o,c-v.children.length+l.length+1);c>=o;)v.removeChild(v.children[o]),b.removeChild(b.children[o]),c-=1;for(i=0;i<p.length;i++){var d=O(p[i]),m=n.createElement("div");d.bodyTR=m,o===v.children.length?(v.appendChild(d),b.appendChild(m)):(v.insertBefore(d,v.children[o+i]),b.insertBefore(m,b.children[o+i]))}s&&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=Ot(n,s);i.setAttribute("style",i.getAttribute("style")+A),a.appendChild(i),e.appendChild(a),e.dataset.onCloseSet="true"}(v)}}function D(){for(var e=0;e<v.children.length;e++){var t=v.children[e];t.classList.contains("unstyled")||t.setAttribute("style",j)}}function P(){for(var e=0;e<b.children.length;e++)b.children[e].setAttribute("style",L)}}function iu(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}var ru='\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>';function ou(){return(0,h.sym)(document.location.origin).site()}function su(e,t){return cu.apply(this,arguments)}function cu(){return(cu=x(y().mark(function e(t,n){var a,i,r,o,s;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,n.any(t,null,v.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,h.parse)(i,n,t.uri,"text/turtle");case 2:e.next=4;break;case 3:return e.prev=3,s=e.catch(0),console.error("Error loading pod "+t+": "+s),e.abrupt("return",null);case 4:if(n.holds(t,v.rdf("type"),v.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(!(r=n.any(t,v.solid("owner"),null,t)||n.any(null,v.space("storage"),t,t))){e.next=10;break}return e.prev=6,e.next=7,n.fetcher.load(r.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 "+r),e.abrupt("return",null);case 9:return n.holds(r,v.space("storage"),t,r.doc())||console.warn("Pod owner ".concat(r," does NOT list pod ").concat(t," as their storage")),e.abrupt("return",r);case 10:return o=(0,h.sym)("".concat(t.uri,"profile/card#me")),e.prev=11,e.next=12,n.fetcher.load(o);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(o,v.space("storage"),t,o.doc())){e.next=15;break}return console.warn("Using guessed pod owner webid but it links back."),e.abrupt("return",o);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 lu(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}}var uu=Re.Pt.iconBase+"noun_help.svg";function pu(e,t,n){return du.apply(this,arguments)}function du(){return(du=x(y().mark(function e(t,n,a){var i,r;return y().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:r=ou(),mu(i,t,r,n,a)(),w.authSession.events.on("logout",mu(i,t,r,n,a)),w.authSession.events.on("login",mu(i,t,r,n,a));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function mu(e,t,n,a,i){return x(y().mark(function r(){var o,s;return y().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return o=w.authn.currentUser(),e.innerHTML="",s=e,r.next=1,fu(t,n,o,a,i);case 1:s.appendChild.call(s,r.sent);case 2:case"end":return r.stop()}},r)}))}function fu(e,t,n,a,i){return hu.apply(this,arguments)}function hu(){return(hu=x(y().mark(function e(t,n,a,i,r){var o,s,c,l,u,p,d;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((o=document.createElement("a")).href=n.uri,o.setAttribute("style",_e.headerBannerLink),s=document.createElement("img"),r&&(s.src=r.logo?r.logo:"https://solidproject.org/assets/img/solid-emblem.svg"),s.setAttribute("style",_e.headerBannerIcon),o.appendChild(s),!a){e.next=2;break}return e.next=1,yu(t,a,i);case 1:d=e.sent,e.next=3;break;case 2:d=bu();case 3:return c=d,(l=document.createElement("div")).setAttribute("style",_e.headerBanner),l.appendChild(o),(u=document.createElement("div")).setAttribute("style",_e.headerBannerRightMenu),u.appendChild(c),r&&r.helpMenuList&&(p=vu(r,r.helpMenuList),u.appendChild(p)),l.appendChild(u),e.abrupt("return",l);case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function vu(e,t){if(t){var n=document.createElement("ul");n.setAttribute("style",_e.headerUserMenuList),t.forEach(function(e){"url"===(e.url?"url":"onclick")?n.appendChild(ku(gu(e.label,e.url,e.target))):n.appendChild(ku(xu(e.label,e.onclick)))});var a=document.createElement("nav");a.setAttribute("style",_e.headerUserMenuNavigationMenuNotDisplayed),a.setAttribute("aria-hidden","true"),a.setAttribute("id","helperNav"),a.appendChild(n);var i=document.createElement("div");i.setAttribute("style",_e.headerBannerUserMenu),i.appendChild(a);var r=document.createElement("button");r.setAttribute("style",_e.headerUserMenuTrigger),r.type="button";var o=document.createElement("img");o.src=e&&e.helpIcon?e.helpIcon:Re.Pt.iconBase+uu,o.setAttribute("style",_e.headerUserMenuTriggerImg),i.appendChild(r),r.appendChild(o);var s=lu(function(e){return Eu(e,r,a)},50);r.addEventListener("click",s);var c=setTimeout(function(){return null},0);return i.addEventListener("mouseover",function(e){clearTimeout(c),s(e);var t=document.getElementById("helperNav");null==t||t.setAttribute("style",_e.headerUserMenuNavigationMenu)}),i.addEventListener("mouseout",function(e){c=setTimeout(function(){return s(e)},200);var t=document.getElementById("helperNav");null==t||t.setAttribute("style",_e.headerUserMenuNavigationMenuNotDisplayed)}),i}}function bu(){var e=document.createElement("div");return e.setAttribute("style",_e.headerBannerLogin),e.appendChild(ki(document,null,{})),e}function xu(e,t){var n=document.createElement("button");return n.setAttribute("style",_e.headerUserMenuButton),n.onmouseover=function(){n.setAttribute("style",_e.headerUserMenuButtonHover)},n.onmouseout=function(){n.setAttribute("style",_e.headerUserMenuButton)},n.addEventListener("click",t),n.innerText=e,n}function gu(e,t,n){var a=document.createElement("a");return a.setAttribute("style",_e.headerUserMenuLink),a.onmouseover=function(){a.setAttribute("style",_e.headerUserMenuLinkHover)},a.onmouseout=function(){a.setAttribute("style",_e.headerUserMenuLink)},a.href=t,a.innerText=e,n&&(a.target=n),a}function yu(e,t,n){return wu.apply(this,arguments)}function wu(){return(wu=x(y().mark(function e(t,n,a){var i,r,o,s,c,l,u,p;return y().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(r=document.createElement("ul")).setAttribute("style",_e.headerUserMenuList),a&&a.forEach(function(e){"url"===(e.url?"url":"onclick")?r.appendChild(ku(gu(e.label,e.url,e.target))):r.appendChild(ku(xu(e.label,e.onclick)))}),(o=document.createElement("nav")).setAttribute("style",_e.headerUserMenuNavigationMenuNotDisplayed),o.setAttribute("aria-hidden","true"),o.setAttribute("id","loggedInNav"),o.appendChild(r),(s=document.createElement("button")).setAttribute("style",_e.headerUserMenuTrigger),s.type="button","string"==typeof(c=Cu(t,n))?s.innerHTML=c:s.appendChild(c),(l=document.createElement("div")).setAttribute("style",_e.headerBannerUserMenuNotDisplayed),l.appendChild(s),l.appendChild(o),u=lu(function(e){return Eu(e,s,o)},50),s.addEventListener("click",u),p=setTimeout(function(){return null},0),l.addEventListener("mouseover",function(e){clearTimeout(p),u(e);var t=document.getElementById("loggedInNav");null==t||t.setAttribute("style",_e.headerUserMenuNavigationMenu)}),l.addEventListener("mouseout",function(e){p=setTimeout(function(){return u(e)},200);var t=document.getElementById("loggedInNav");null==t||t.setAttribute("style",_e.headerUserMenuNavigationMenuNotDisplayed)}),e.abrupt("return",l);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function ku(e){var t=document.createElement("li");return t.setAttribute("style",_e.headerUserMenuListItem),t.appendChild(e),t}function Cu(e,t){var n=null;try{if(!(n=Tt(t)))return ru}catch(e){return ru}var a=document.createElement("div");return a.setAttribute("style",_e.headerUserMenuPhoto),a.style.backgroundImage="url(".concat(n,")"),a}function Eu(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()))}function Au(e,t){return _u.apply(this,arguments)}function _u(){return(_u=x(y().mark(function e(t,n){var a,i,r;return y().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=ou(),e.next=2,su(i,t);case 2:r=e.sent,ju(a,t,i,r,n)(),w.authSession.events.on("login",ju(a,t,i,r,n)),w.authSession.events.on("logout",ju(a,t,i,r,n));case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}function ju(e,t,n,a,i){return x(y().mark(function r(){var o,s;return y().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return o=w.authn.currentUser(),e.innerHTML="",s=e,r.next=1,Su(t,o,n,a,i);case 1:s.appendChild.call(s,r.sent);case 2:case"end":return r.stop()}},r)}))}function Su(e,t,n,a,i){var r=document.createElement("div");if(!n||!a||t&&t.equals(a))return r;r.setAttribute("style",_e.footer);var o=document.createElement("span");o.innerText="You're visiting ";var s=document.createElement("a");s.href=n.uri,s.innerText="the Pod";var c=document.createElement("span");c.innerText=" controlled by ";var l=document.createElement("a");l.href=a.uri,l.innerText=function(e,t){return e.anyValue(t,v.vcard("fn"),null,t.doc())||e.anyValue(t,v.foaf("name"),null,t.doc())||t.uri}(e,a);var u=document.createElement("span");u.innerText=". For more info, check out ";var p=document.createElement("a");p.href=i&&i.solidProjectUrl?i.solidProjectUrl:"https://solidproject.org",p.innerText=i&&i.solidProjectName?i.solidProjectName:"solidproject.org";var d=document.createElement("span");return d.innerText=".",r.appendChild(o),r.appendChild(s),r.appendChild(c),r.appendChild(l),r.appendChild(u),r.appendChild(p),r.appendChild(d),r}var Tu=window?window.document:null;"undefined"!=typeof window&&(window.UI={ns:v,acl:$i,aclControl:Ki,create:Zi,createTypes:d,dom:Tu,icons:Re.Pt,language:n,log:e,login:o,matrix:Xi,media:ar,messageArea:Cr,infiniteMessageArea:Ol,pad:l,participation:c,preferences:u,style:_e,table:Jl,tabs:p,utils:t,widgets:s,initHeader:pu,initFooter:Au})})(),r})());
|
|
38
|
+
const fs={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},hs={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),basises:[[BigInt("0x3086d221a7d46bcde86c90e49284eb15"),-BigInt("0xe4437ed6010e88286f547fa90abfe4c3")],[BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),BigInt("0x3086d221a7d46bcde86c90e49284eb15")]]},vs=BigInt(0),xs=BigInt(2);const bs=zo(fs.p,{sqrt:function(e){const t=fs.p,n=BigInt(3),a=BigInt(6),i=BigInt(11),r=BigInt(22),o=BigInt(23),s=BigInt(44),c=BigInt(88),l=e*e*e%t,u=l*l*e%t,p=To(u,n,t)*u%t,d=To(p,n,t)*u%t,m=To(d,xs,t)*l%t,f=To(m,i,t)*m%t,h=To(f,r,t)*f%t,v=To(h,s,t)*h%t,x=To(v,c,t)*v%t,b=To(x,s,t)*h%t,g=To(b,n,t)*u%t,y=To(g,o,t)*f%t,w=To(y,a,t)*l%t,k=To(w,xs,t);if(!bs.eql(bs.sqr(k),e))throw new Error("Cannot find square root");return k}}),gs=ps(fs,{Fp:bs,endo:hs}),ys={};function ws(e,...t){let n=ys[e];if(void 0===n){const t=ao((a=e,Uint8Array.from(a,(e,t)=>{const n=e.charCodeAt(0);if(1!==e.length||n>127)throw new Error(`string contains non-ASCII character "${a[t]}" with code ${n} at position ${t}`);return n})));n=Vr(t,t),ys[e]=n}var a;return ao(Vr(n,...t))}const ks=e=>e.toBytes(!0).slice(1),Cs=e=>e%xs===vs;function Es(e){const{Fn:t,BASE:n}=gs,a=t.fromBytes(e),i=n.multiply(a);return{scalar:Cs(i.y)?a:t.neg(a),bytes:ks(i)}}function As(e){const t=bs;if(!t.isValidNot0(e))throw new Error("invalid x: Fail if x ≥ p");const n=t.create(e*e),a=t.create(n*e+BigInt(7));let i=t.sqrt(a);Cs(i)||(i=t.neg(i));const r=gs.fromAffine({x:e,y:i});return r.assertValidity(),r}const _s=lo;function js(...e){return gs.Fn.create(_s(ws("BIP0340/challenge",...e)))}function Ss(e){return Es(e).bytes}function Ts(e,t,n=Jr(32)){const{Fn:a}=gs,i=Tr(e,void 0,"message"),{bytes:r,scalar:o}=Es(t),s=Tr(n,32,"auxRand"),c=a.toBytes(o^_s(ws("BIP0340/aux",s))),l=ws("BIP0340/nonce",c,r,i),{bytes:u,scalar:p}=Es(l),d=js(u,r,i),m=new Uint8Array(64);if(m.set(u,0),m.set(a.toBytes(a.create(p+d*o)),32),!Ls(m,i,r))throw new Error("sign: Invalid signature produced");return m}function Ls(e,t,n){const{Fp:a,Fn:i,BASE:r}=gs,o=Tr(e,64,"signature"),s=Tr(t,void 0,"message"),c=Tr(n,32,"publicKey");try{const e=As(_s(c)),t=_s(o.subarray(0,32));if(!a.isValidNot0(t))return!1;const n=_s(o.subarray(32,64));if(!i.isValidNot0(n))return!1;const l=js(i.toBytes(t),ks(e),s),u=r.multiplyUnsafe(n).add(e.multiplyUnsafe(i.neg(l))),{x:p,y:d}=u.toAffine();return!(u.is0()||!Cs(d)||p!==t)}catch(e){return!1}}const Rs=(()=>{const e=(e=Jr(48))=>Ho(e,fs.n);return{keygen:as(e,Ss),getPublicKey:Ss,sign:Ts,verify:Ls,Point:gs,utils:{randomSecretKey:e,taggedHash:ws,lift_x:As,pointToBytes:ks},lengths:{secretKey:32,publicKey:32,publicKeyHasPrefix:!1,signature:64,seed:48}}})();new TextDecoder("utf-8");var Ns=new TextEncoder,Bs="https://w3id.org/security#";function Is(){return{id:"",created:"",dateDeleted:"",content:"",maker:"",sig:""}}function Os(e){var t=ao(Ns.encode(function(e){return JSON.stringify(e)}(e)));return Dr(t)}function Ds(e,t,n){return Rs.verify(Gr(e),Gr(Os(t)),Gr(n))}function Fs(e,t){return Dr(Rs.sign(Gr(Os(e)),Gr(t)))}var Ps=function(e){var t,n,a=null===(t=w.store.any(e,v.space("preferencesFile"),null,e.doc()))||void 0===t?void 0:t.value;if(!(a=null===(n=a)||void 0===n?void 0:n.split("/").slice(0,-2).join("/")))throw new Error("prefererencesFile is expected to exist in ".concat(e));return a},Us=function(e){var t;try{var n=Ps(e);t="".concat(n,"/profile/keys/publicKey.ttl")}catch(e){Y.z3(e)}return t},Ms=function(e){var t;try{var n=Ps(e);t="".concat(n,"/settings/keys/privateKey.ttl")}catch(e){Y.z3(e)}return t};function zs(e,t){return qs.apply(this,arguments)}function qs(){return(qs=b(y().mark(function e(t,n){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Vs(t,n,"publicKey");case 1:return e.abrupt("return",e.sent);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Hs(e,t){return Gs.apply(this,arguments)}function Gs(){return(Gs=b(y().mark(function e(t,n){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Vs(t,n,"privateKey");case 1:return e.abrupt("return",e.sent);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Vs(e,t,n){return Ws.apply(this,arguments)}function Ws(){return(Ws=b(y().mark(function e(t,n,a){var i,r,o;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,w.store.fetcher.load(n);case 1:return i=w.store.any(t,v.solid(a)),e.abrupt("return",null==i?void 0:i.value);case 2:if(e.prev=2,404!==(r=e.catch(0)).response.status){e.next=7;break}return Y.Rm("createIfNotExists: doc does NOT exist, will create... "+n),e.prev=3,e.next=4,w.store.fetcher.webOperation("PUT",n,{data:"",contentType:"text/turtle"});case 4:e.next=6;break;case 5:throw e.prev=5,o=e.catch(3),Y.Rm("createIfNotExists doc FAILED: "+n+": "+o),o;case 6:return delete w.store.fetcher.requested[n],e.abrupt("return",void 0);case 7:throw Y.Rm("createIfNotExists doc FAILED: "+n+": "+r),r;case 8:case"end":return e.stop()}},e,null,[[0,2],[3,5]])}))).apply(this,arguments)}function Js(e,t){return $s.apply(this,arguments)}function $s(){return($s=b(y().mark(function e(t,n){var a,i,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,w.store.fetcher.load(t);case 1:if(a=w.store.any(w.store.sym(t),w.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,w.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==(r=e.catch(2))||null===(i=r.response)||void 0===i?void 0:i.status)){e.next=5;break}throw new Error(r);case 5:Y.Rm("delete "+a.value+" "+r.response.status);case 6:case"end":return e.stop()}},e,null,[[2,4]])}))).apply(this,arguments)}var Qs=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")},Zs=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")};function Ks(){return Dr(Rs.utils.randomSecretKey())}function Ys(e){return Dr(Rs.getPublicKey(Gr(e)))}function Xs(e){return ec.apply(this,arguments)}function ec(){return(ec=b(y().mark(function e(t){var n,a;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,w.store.fetcher.load(t);case 1:return e.next=2,Us(t);case 2:return n=e.sent,e.prev=3,e.next=4,w.store.fetcher.load(n);case 4:return a=w.store.any(t,v.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 tc(e){return nc.apply(this,arguments)}function nc(){return nc=b(y().mark(function e(t){var n,a,i,r,o,s,c,l,u;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,w.store.fetcher.load(t);case 1:return e.next=2,Us(t);case 2:return n=e.sent,e.next=3,Ms(t);case 3:return a=e.sent,e.next=4,zs(t,n);case 4:return i=e.sent,e.next=5,Hs(t,a);case 5:if(r=e.sent,o=!0,r&&i!==Ys(r)&&confirm("This is strange the publicKey is not valid for\n"+(null==t?void 0:t.uri)+"'shall we repair keeping the private key ?")&&(o=!1),r&&i&&o){e.next=8;break}if(s=[],c=[],r){e.next=6;break}return r=Ks(),c=[h.st(t,v.solid("privateKey"),h.literal(r),w.store.sym(a))],e.next=6,ic(a,[],c,t.uri);case 6:if(i&&o){e.next=7;break}return s=[],i&&(s=[h.st(t,v.solid("publicKey"),h.lit(i),w.store.sym(n))],Y.Rm("delete invalid publicKey "+s)),l=Ys(r),c=[h.st(t,v.solid("publicKey"),h.literal(l),w.store.sym(n))],e.next=7,ic(n,s,c);case 7:return u=a.substring(0,a.lastIndexOf("/")+1),e.next=8,Js(u,Qs(t.uri));case 8:return e.abrupt("return",r);case 9:case"end":return e.stop()}},e)})),nc.apply(this,arguments)}var ac=function(){var e=b(y().mark(function e(t){var n,a,i;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,w.store.fetcher.load(t);case 1:if(!(n=w.store.any(w.store.sym(t),w.store.sym("http://www.iana.org/assignments/link-relations/acl")))){e.next=6;break}return e.prev=2,e.next=3,w.store.fetcher.webOperation("DELETE",n.value);case 3:a=e.sent,Y.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:Y.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 ic(e,t,n){return rc.apply(this,arguments)}function rc(){return rc=b(y().mark(function e(t,n,a){var i,r,o=arguments;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=o.length>3&&void 0!==o[3]?o[3]:"",e.next=1,ac(t);case 1:return e.next=2,w.store.updater.updateMany(n,a);case 2:return r=Zs(t,i),e.next=3,Js(t,r);case 3:case"end":return e.stop()}},e)})),rc.apply(this,arguments)}var oc=function(){return ye(function e(t,n){ve(this,e),this.channel=t,this.channelRoot=t.doc(),this.options=n,this.dateFolder=new jr(this.channelRoot,"chat.ttl"),this.div=null},[{key:"createMessage",value:(a=b(y().mark(function e(t){return y().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 a.apply(this,arguments)})},{key:"updateMessage",value:(n=b(y().mark(function e(t){var n,a,i,r,o,s,c,l,u,p,d,m,f,x,b,g,k,C,E,A=arguments;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=A.length>1&&void 0!==A[1]?A[1]:null,a=A.length>2?A[2]:void 0,i=A.length>3&&void 0!==A[3]?A[3]:null,r=[],o=new Date,s=""+o.getTime(),c=h.term(o),l=n?n.doc():this.dateFolder.leafDocumentFromDate(o),u=w.store.sym(l.uri+"#Msg"+s),p=w.authn.currentUser(),(d=Is()).id=u.uri,!n){e.next=4;break}if((m=w.store.any(n,v.foaf("maker"))).uri!==p.uri){e.next=2;break}return e.next=1,pc(n);case 1:f=e.sent,r.push(h.st(f,v.dct("isReplacedBy"),u,l)),(x=w.store.any(f,v.sioc("has_reply")))&&r.push(h.st(u,v.sioc("has_reply"),x,l)),a&&r.push(h.st(u,v.schema("dateDeleted"),c,l)),e.next=3;break;case 2:throw b="Error you cannot delete/edit a message from someone else : \n"+m.uri,Y.R8(b),alert(b),new Error(b);case 3:e.next=5;break;case 4:r.push(h.st(this.channel,v.wf("message"),u,l));case 5:if(r.push(h.st(u,v.sioc("content"),w.store.literal(t),l)),d.content=t,r.push(h.st(u,v.dct("created"),c,l)),d.created=c.value,!p){e.next=7;break}return r.push(h.st(u,v.foaf("maker"),p,l)),d.maker=p.uri,e.next=6,tc(p);case 6:g=e.sent,k=Fs(d,g),r.push(h.st(u,h.sym("".concat(Bs,"proofValue")),h.lit(k),l));case 7:return i&&(r.push(h.st(i,v.sioc("has_member"),u,l)),i.doc().sameTerm(u.doc())||r.push(h.st(i,v.sioc("has_member"),u,i.doc()))),e.prev=8,e.next=9,w.store.updater.updateMany([],r);case 9:e.next=11;break;case 10:throw e.prev=10,E=e.catch(8),C="Error saving chat message: "+E,Y.R8(C),alert(C),new Error(C);case 11:return e.abrupt("return",u);case 12:case"end":return e.stop()}},e,this,[[8,10]])})),function(e){return n.apply(this,arguments)})},{key:"deleteMessage",value:(t=b(y().mark(function e(t){return y().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=b(y().mark(function e(t){var n,a,i;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=w.store.each(t,v.sioc("has_reply"),null,t.doc()).filter(function(e){return w.store.holds(e,v.rdf("type"),v.sioc("Thread"),e.doc())}),!(n.length>0)){e.next=1;break}return e.abrupt("return",n[0]);case 1:return a=h.sym(t.uri+"-thread"),i=[h.st(a,v.rdf("type"),v.sioc("Thread"),a.doc()),h.st(t,v.sioc("has_reply"),a,a.doc())],e.next=2,w.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,a}();function sc(e){return cc.apply(this,arguments)}function cc(){return(cc=b(y().mark(function e(t){var n,a,i,r,o;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=[t],(a={})[t.uri]=!0,i=t;case 1:if((r=w.store.any(null,v.dct("isReplacedBy"),i,i.doc()))&&!a[r.uri]){e.next=2;break}return e.abrupt("continue",4);case 2:return e.next=3,w.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=w.store.any(i,v.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 lc(e){return uc.apply(this,arguments)}function uc(){return uc=b(y().mark(function e(t){var n,a;return y().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 Y.z3("originalVersion: verion loop"+t),e.abrupt("return",t);case 2:return a[n.uri]=!0,t=n,e.next=3,w.store.fetcher.load(t);case 3:n=w.store.any(null,v.dct("isReplacedBy"),t,t.doc()),e.next=1;break;case 4:return e.abrupt("return",t);case 5:case"end":return e.stop()}},e)})),uc.apply(this,arguments)}function pc(e){return dc.apply(this,arguments)}function dc(){return dc=b(y().mark(function e(t){var n,a;return y().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 Y.z3("mostRecentVersion: verion loop"+t),e.abrupt("return",t);case 2:return a[n.uri]=!0,t=n,e.next=3,w.store.fetcher.load(t);case 3:n=w.store.any(t,v.dct("isReplacedBy"),null,t.doc()),e.next=1;break;case 4:return e.abrupt("return",t);case 5:case"end":return e.stop()}},e)})),dc.apply(this,arguments)}function mc(e){return w.store.holds(e,v.schema("dateDeleted"),null,e.doc())}function fc(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 hc(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)?hc(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 hc(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 vc=w.solidLogicSingleton.store;function xc(e,t,n,a,i,r){t.setAttribute("style",_e.participantsStyle);var o=function(n){var a,i=vc.any(n,v.wf("participant"));if(!i)return(a=e.createElement("tr")).textContent="???",a;var o=vc.anyValue(n,v.ui("backgroundColor"))||Ae.participationDefaultBackground,s=e.createElement("div");s.setAttribute("style",_e.participantsBlock),s.style.backgroundColor=o,a=Pt(e,null,i,r),t.appendChild(a);var c=e.createElement("td");return c.setAttribute("style",_e.personTableTD),c.appendChild(s),a.insertBefore(c,a.firstChild),a},s=function(){var e=vc.each(a,v.wf("participation")).map(function(e){return(0,Y.Rm)("in participants"),[vc.anyValue(e,v.cal("dtstart"))||"9999-12-31",e]});e.sort();var n=e.map(function(e){return e[1]});Ue(t,n,o)};return t.refresh=s,s(),t}function bc(e,t,n){return new Promise(function(a,i){if(!n)throw new Error("No user id");var r=vc.each(e,v.wf("participation")).filter(function(e){return vc.holds(e,v.wf("participant"),n)});if(r.length>1){var o,s=[],c=fc(r);try{for(c.s();!(o=c.n()).done;){var l=o.value,u=vc.anyValue(l,v.cal("dtstart"));u&&s.push([u,l])}}catch(e){c.e(e)}finally{c.f()}s.sort(),Y.R8("Multiple participation objects, picking earliest, in "+t),a(s[0][1])}if(r.length)a(r[0]);else{var p=$a(t),d=[(0,h.st)(e,v.wf("participation"),p,t),(0,h.st)(p,v.wf("participant"),n,t),(0,h.st)(p,v.cal("dtstart"),new Date,t),(0,h.st)(p,v.ui("backgroundColor"),Cc(n),t)];vc.updater.update([],d,function(e,t,n){t?a(p):i(new Error("Error recording your participation: "+n))}),a(p)}})}function gc(e,t,n){var a=w.authn.currentUser();if(a){var i=vc.each(e,v.wf("participation")).filter(function(e){return vc.holds(e,v.wf("participant"),a)});if(i.length>1)throw new Error("Multiple records of your participation");if(i.length)return i[0];if(!vc.updater.editable(t))return Y.Rm("Not recording participation, as no write access as "+a+" to "+t),null;var r=$a(t),o=[(0,h.st)(e,v.wf("participation"),r,t),(0,h.st)(r,v.wf("participant"),a,t),(0,h.st)(r,v.cal("dtstart"),new Date,t),(0,h.st)(r,v.ui("backgroundColor"),Cc(a),t)];return vc.updater.update([],o,function(e,t,a){if(!t)throw new Error("Error recording your participation: "+a);n&&n.refresh&&n.refresh()}),r}}function yc(e,t,n,a,i,r){var o=e.createElement("table");t.appendChild(o),xc(e,o,0,a,0,r);try{gc(a,n,o)}catch(n){t.appendChild(ct(e,"Error recording your participation: "+n))}return o}var wc=w.solidLogicSingleton.store,kc=(0,h.Namespace)("http://www.w3.org/ns/pim/pad#");function Cc(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 Ec(e,t,n,a,i){var r=(i=i||{}).exists,o=e.createElement("table"),s=wc;if(a&&!a.uri)throw new Error("UI.pad.notepad: Invalid userid");var c=wc.updater,l=(0,h.Namespace)("http://www.w3.org/ns/pim/pad#");o.setAttribute("style",_e.notepadStyle);var u=null,p=null;if(i.statusArea){var d=i.statusArea.appendChild(e.createElement("table")).appendChild(e.createElement("tr"));u=d.appendChild(e.createElement("td")),p=d.appendChild(e.createElement("td")),u&&u.setAttribute("style",_e.upstreamStatus),p&&p.setAttribute("style",_e.downstreamStatus)}var m=function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,Y.Rm)(t),i.statusArea&&(n?u:p).appendChild(ct(e,t,"pink"))},f=function(e){i.statusArea&&(i.statusArea.innerHTML="")},x=function(e,t,n){var a=e.subject;t=t||"";var i=_e.baseStyle,r=_e.headingCore,o=_e.headingStyle,c=s.any(a,v.dc("author"));!t&&c&&(t="color: "+(n?"#888":"black")+"; background-color: "+Cc(c)+";");var u=s.any(a,l("indent")),p=(u=u?u.value:0)>=0?i+"text-indent: "+3*u+"em;":r+o[-1-u];e.setAttribute("style",p+t)},b=function(e){var a=e.subject;if(!a)throw new Error("No chunk for line to be deleted!");var i=s.any(void 0,l("next"),a),r=s.any(a,l("next"));if(i.sameTerm(n)&&r.sameTerm(n))(0,Y.Rm)("You can't delete the only line.");else{var o=s.statementsMatching(a,void 0,void 0,t).concat(s.statementsMatching(void 0,void 0,a,t)),u=[(0,h.st)(i,l("next"),r,t)];if(a instanceof h.NamedNode){var p=a.uri.slice(-4);(0,Y.Rm)("Deleting line "+p)}if(!c)throw new Error("have no updater");c.update(o,u,function(t,n,i,r){if(n){var s=e.parentNode;if(s){var c=s.previousSibling;s.parentNode&&s.parentNode.removeChild(s),c&&c.firstChild&&c.firstChild.focus()}}else if(r&&409===r.status)x(e,"color: black; background-color: #ffd;"),e.state=0,De(),setTimeout(function(){_()},1e3);else{(0,Y.Rm)(" removePart FAILED "+a+": "+i),(0,Y.Rm)(" removePart was deleteing :'"+o),x(e,"color: black; background-color: #fdd;");var l=r?r.status:" [no response field] ";m("Error "+l+" saving changes: "+i.true)}})}},g=function(e,n){e.addEventListener("keydown",function(a){if(!c)throw new Error("no updater");var i,r;switch(a.keyCode){case 13:var o=a.shiftKey;if((0,Y.Rm)("enter"),o?(r=s.any(void 0,l("next"),n),i="newlinesAfter"):(r=s.any(n,l("next")),i="newlinesBefore"),r[i]=r[i]||0,r[i]+=1,r[i]>1)return void(0,Y.Rm)(" queueing newline queue = "+r[i]);(0,Y.Rm)(" go ahead line before "+r[i]),w(e,o);break;case 8:if(0===e.value.length)switch((0,Y.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,b(e),a.preventDefault();break;default:throw new Error("pad: Unexpected state "+e)}break;case 9:var u=a.shiftKey?-1:1;!function(e,n,a){var i=s.statementsMatching(n,l("indent")),r=i.length?Number(i[0].object.value):0;if(!(r+a<-3)){var o=r+a,u=(0,h.st)(n,l("indent"),o,t);if(!c)throw new Error("no updater");c.update(i,u,function(n,a,i){a?x(e):((0,Y.Rm)("Indent change FAILED '"+o+"' for "+t+": "+i),x(e,"color: black; background-color: #fdd;"),c.requestDownstreamAction(t,_))})}}(e,n,u),a.preventDefault();break;case 27:(0,Y.Rm)("escape"),c.requestDownstreamAction(t,_),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 a=function(e){var n=e.subject;x(e,void 0,!0);var i,r=s.any(n,v.sioc("content")).value,o=[(0,h.st)(n,v.sioc("content"),r,t)];e.value&&(i=[(0,h.st)(n,v.sioc("content"),e.value,t)]);var l=e.value;if(e.lastSent&&r!==e.lastSent)throw new Error("Out of order, last sent expected '"+r+"' but found '"+e.lastSent+"'");if(e.lastSent=l,!c)throw new Error("no updater");c.update(o,i,function(n,i,o,s){i?(f(),x(e),(0,Y.Rm)(" Patch ok '"+r+"' -> '"+l+"' "),4===e.state?(e.state=3,b(e)):3===e.state||(2===e.state?(e.state=1,a(e)):e.state=0)):((0,Y.Rm)(" patch FAILED "+s.status+" for '"+r+"' -> '"+l+"': "+o),409===s.status?(x(e,"color: black; background-color: #fdd;"),e.state=0,De(),setTimeout(function(){c.requestDownstreamAction(t,_)},1e3)):(x(e,"color: black; background-color: #fdd;"),e.state=0,m(" Error "+s.status+" sending data: "+o,!0),De()))})};e.addEventListener("input",function(t){switch(x(e,void 0,!0),(0,Y.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:e.state=1,a(e)}})},y=function(t,n,i){var r=s.any(n,v.sioc("content"));r=r?r.value:"";var c=e.createElement("tr");i?o.insertBefore(c,t):t&&t.nextSibling?o.insertBefore(c,t.nextSibling):o.appendChild(c);var l=c.appendChild(e.createElement("input"));return l.subject=n,l.setAttribute("type","text"),l.value=r,a?(x(l,""),g(l,n)):(x(l,"color: #222; background-color: #fff"),(0,Y.Rm)("Note can't add listeners - not logged in")),l},w=function(e,i){var r,o,s,u,p,d=wc,m=0,f=null;e?("input"!==e.tagName.toLowerCase()&&(0,Y.Rm)("return pressed when current document is: "+e.tagName),r=e.subject,m=(m=d.any(r,l("indent")))?Number(m.value):0,i?(o=d.any(void 0,l("next"),r),s=r,u=o,f="newlinesAfter"):(o=r,s=d.any(r,l("next")),u=s,f="newlinesBefore"),p=e.parentNode):(o=n,s=n,p=void 0);var b=$a(t),g=b.uri.slice(-4),k=[(0,h.st)(o,l("next"),s,t)],C=[(0,h.st)(o,l("next"),b,t),(0,h.st)(b,l("next"),s,t),(0,h.st)(b,v.dc("author"),a,t),(0,h.st)(b,v.sioc("content"),"",t)];if(m>0&&C.push((0,h.st)(b,l("indent"),m,t)),(0,Y.Rm)(" Fresh chunk "+g+" proposed"),!c)throw new Error("no updater");c.update(k,C,function(e,t,n,a){if(t){var r=y(p,b,i);x(r),r.focus(),f&&((0,Y.Rm)(" Fresh chunk "+g+" updated, queue = "+u[f]),u[f]-=1,u[f]>0&&((0,Y.Rm)(" Implementing queued newlines = "+s.newLinesBefore),w(r,i)))}else(0,Y.Rm)(" ERROR writing new line "+g+": "+n)})},k=function(){var e={},t=0;function a(e){m(e),t++}if(!s.the(n,l("next")))return a("No initial next pointer"),!1;for(var i,r=n;(i=s.the(r,l("next")))||a("No next pointer from "+r),!i.sameTerm(n);){r=i;var o=i.uri.split("#")[1];if(e[i.uri])return a("Loop!"),!1;e[i.uri]=!0;var c=s.each(i,l("next")).length;1!==c&&a("Should be 1 not "+c+" next pointer for "+o),(c=s.each(i,l("indent")).length)>1&&a("Should be 0 or 1 not "+c+" indent for "+o),1!==(c=s.each(i,v.sioc("content")).length)&&a("Should be 1 not "+c+" contents for "+o),1!==(c=s.each(i,v.dc("author")).length)&&a("Should be 1 not "+c+" author for "+o),s.statementsMatching(void 0,v.sioc("contents")).forEach(function(t){e[t.subject.value]||a("Loose chunk! "+t.subject.value)})}return!t},C=function(){if(1!==s.each(n,l("next")).length){var e="Pad: Inconsistent data - NEXT pointers: "+s.each(n,l("next")).length;return(0,Y.Rm)(e),void(i.statusArea&&(i.statusArea.textContent+=e))}for(var t,a=[],r=s.the(n,l("next"));!r.sameTerm(n);r=s.the(r,l("next")))for(var c=0;c<o.children.length;c++){var u=o.children[c];u.firstChild&&u.firstChild.subject.sameTerm(r)&&(a[r.uri]=u.firstChild)}for(var p=o.children.length-1;p>=0;p--)a[(t=o.children[p]).firstChild.subject.uri]||o.removeChild(t);t=o.firstChild;for(var d=s.the(n,l("next"));!d.sameTerm(n);d=s.the(d,l("next"))){var m=s.any(d,v.sioc("content")).value;if(t&&a[d.uri]){var f=t.firstChild;m!==f.value&&(f.value=m),x(f),f.state=0,delete f.lastSent,t=t.nextSibling}else y(t,d,!0)}},E=function(e){if(e.refresh)e.refresh();else for(var t=0;t<e.children.length;t++)E(e.children[t])},A=!1,_=function(){if(A)(0,Y.Rm)(" Already reloading - stop");else{A=!0;var e=1e3,n=function(){if((0,Y.Rm)("try reload - timeout = "+e),!c)throw new Error("no updater");c.reload(c.store,t,function(a,i,r){A=!1,a?((0,Y.Rm)(" reloaded OK"),f(),k()?E(o):m("CONSISTENCY CHECK FAILED")):0===r.status?(m("Network error refreshing the pad. Retrying in "+e/1e3),A=!0,e*=2,setTimeout(n,e)):m("Error "+r.status+"refreshing the pad:"+i+". Stopped. "+t)})};n()}};if(o.refresh=C,o.reloadAndSync=_,a||(0,Y.Rm)("Warning: must be logged in for pad to be edited"),r)(0,Y.Rm)("Existing pad."),k()?(C(),s.holds(n,l("next"),n)&&w()):(0,Y.Rm)(o.textContent="Inconsistent data. Abort");else{(0,Y.Rm)("No pad exists - making new one.");var j=[(0,h.st)(n,v.rdf("type"),l("Notepad"),t),(0,h.st)(n,v.dc("author"),a,t),(0,h.st)(n,v.dc("created"),new Date,t),(0,h.st)(n,l("next"),n,t)];if(!c)throw new Error("no updater");c.update([],j,function(e,t,n){t?((0,Y.Rm)("Initial pad created"),w()):m(n||"")})}return o}function Ac(e,t){for(var n=[],a=t.the(e,kc("next"));!a.sameTerm(e);a=t.the(a,kc("next")))n.push(a);return n}function _c(e){return e.replace("&","&").replace("<","<").replace(">",">")}function jc(e,t){var n=Ac(e,t),a="<html>\n <head>\n",i=t.anyValue(e,v.dct("title"));i&&(a+=" <title>".concat(_c(i),"</title>\n")),a+=" </head>\n <body>\n";var r=0;function o(e){for(;r>e;r--)a+="</ul>\n"}return n.forEach(function(e){var n=t.anyJS(e,kc("indent")),i=t.anyJS(e,v.sioc("content"));if(i){var s=_c(i);if(n<0){o(0);var c=n>=-3?4+n:1;a+="\n<h".concat(c,">").concat(s,"</h").concat(c,">\n")}else n>0?(o(n),function(e){for(;r<e;r++)a+="<ul>\n"}(n),a+="<li>".concat(s,"</li>\n")):(o(n),a+="<p>".concat(s,"</p>\n"))}}),o(0),a+=" </body>\n</html>\n"}var Sc={icons:Re.Pt,ns:v,media:ar,pad:l,style:_e,utils:t,widgets:s},Tc=h.Namespace("http://www.w3.org/2002/01/bookmark#"),Lc=Z,Rc=window.document||null;function Nc(e,t){return new Promise(function(n,a){w.store.updater.update(e,t,function(e,t,i){t?n():a(new Error(i))})})}function Bc(){return(Bc=b(y().mark(function e(t){var n,a,i,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=Tc("Bookmark"),a="bookmarks.ttl",e.next=1,mi(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&&Y.R8("More than one bookmark file! "+t.instances),e.next=9;break;case 2:if(!t.publicProfile){e.next=8;break}return i=h.sym(t.publicProfile.dir().uri+a),e.prev=3,Y.Rm("Creating new bookmark file "+i),e.next=4,w.store.fetcher.createIfNotExists(i);case 4:e.next=6;break;case 5:return e.prev=5,r=e.catch(3),Y.R8("Can't make fresh bookmark file:"+r),e.abrupt("return",t);case 6:return e.next=7,w.createTypeIndexLogic.registerInTypeIndex(i,t.index,n);case 7:t.bookmarkDocument=i,e.next=9;break;case 8:Y.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 Ic(e,t){return Oc.apply(this,arguments)}function Oc(){return Oc=b(y().mark(function e(t,n){var a,i,r,o,s,c,l,u;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a="",i=w.authn.currentUser()){e.next=1;break}throw new Error("Must be logged on to add Bookmark");case 1:return r=w.store.any(n,v.foaf("maker")),a=Lc(r)+": "+w.store.anyValue(n,v.sioc("content")).slice(0,80),o=t.bookmarkDocument,s=Sc.widgets.newThing(o,a),c=[h.st(o,Sc.ns.dct("references"),s,o),h.st(s,Sc.ns.rdf("type"),Tc("Bookmark"),o),h.st(s,Sc.ns.dct("created"),new Date,o),h.st(s,Tc("recalls"),n,o),h.st(s,Sc.ns.foaf("maker"),i,o),h.st(s,Sc.ns.dct("title"),a,o)],e.prev=2,e.next=3,Nc([],c);case 3:e.next=5;break;case 4:return e.prev=4,u=e.catch(2),l="Making bookmark: "+u,Y.R8(l),e.abrupt("return",null);case 5:return e.abrupt("return",s);case 6:case"end":return e.stop()}},e,null,[[2,4]])})),Oc.apply(this,arguments)}function Dc(e,t,n){return Fc.apply(this,arguments)}function Fc(){return(Fc=b(y().mark(function e(t,n,a){var i,r,o,s;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,w.store.fetcher.load(t.bookmarkDocument);case 1:if(!(i=w.store.each(null,Tc("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:r=0;case 3:if(!(r<i.length)){e.next=8;break}return e.prev=4,e.next=5,Nc(w.store.connectedStatements(i[r]),[]);case 5:a.style.backgroundColor="white",Y.Rm("Bookmark deleted: "+i[r]),e.next=7;break;case 6:e.prev=6,s=e.catch(4),Y.z3("Cant delete bookmark:"+s),Y.R8("Cannot delete bookmark:"+s);case 7:r++,e.next=3;break;case 8:e.next=11;break;case 9:return e.next=10,Ic(t,n);case 10:o=e.sent,a.style.backgroundColor="yellow",Y.Rm("Bookmark added: "+o);case 11:case"end":return e.stop()}},e,null,[[4,6]])}))).apply(this,arguments)}function Pc(e,t){return Uc.apply(this,arguments)}function Uc(){return Uc=b(y().mark(function e(t,n){var a,i,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(i=function(){return i=b(y().mark(function e(n){var a;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,w.store.fetcher.load(t.bookmarkDocument);case 1:a=w.store.any(null,Tc("recalls"),n.target,t.bookmarkDocument),n.style=Sc.style.buttonStyle,a&&(n.style.backgroundColor="yellow");case 2:case"end":return e.stop()}},e)})),i.apply(this,arguments)},a=function(e){return i.apply(this,arguments)},!t.bookmarkDocument){e.next=2;break}return(r=Sc.widgets.button(Rc,Sc.icons.iconBase+"noun_45961.svg",Lc(Tc("Bookmark")),function(){Dc(t,n,r)})).target=n,e.next=1,a(r);case 1:return e.abrupt("return",r);case 2:case"end":return e.stop()}},e)})),Uc.apply(this,arguments)}var Mc=window.document,zc={};function qc(e,t){return Hc.apply(this,arguments)}function Hc(){return Hc=b(y().mark(function e(t,n){var a,i,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=function(){return(r=b(y().mark(function e(){var i,r,o;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a.innerHTML="",!mc(t)){e.next=1;break}return e.abrupt("return",a);case 1:return e.next=2,sc(t);case 2:if(i=e.sent,0!==(r=i.map(function(e){return w.store.each(null,v.schema("target"),e,n)}).flat()).length){e.next=3;break}return e.abrupt("return",a);case 3:(o=r.map(function(e){return[w.store.any(e,v.rdf("type"),null,n),w.store.any(e,v.sioc("content"),null,n),w.store.any(e,v.schema("agent"),null,n)]})).sort(),o.forEach(function(e){var t,n=Ce(e,3),i=n[0],r=n[1],o=n[2];o?(t=Mc.createElement("a")).setAttribute("href",o.uri):t=Mc.createTextNode(""),t.textContent=r||zc[i]||"⬜️",a.appendChild(t)});case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)},i=function(){return r.apply(this,arguments)},a=Mc.createElement("span"),i().then(Y.Rm("sentimentStripLinked: sentimentStripLinked async refreshed")),a.refresh=i,e.abrupt("return",a);case 1:case"end":return e.stop()}},e)})),Hc.apply(this,arguments)}function Gc(e,t,n,a){return Vc.apply(this,arguments)}function Vc(){return Vc=b(y().mark(function e(t,n,a,i){var r,o,s,c,l,u,p,d,m,f,x,g,k,C,E,A,_,j,S;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return g=function(e,t,a,i,r,o){function s(){l.style.backgroundColor=c?"yellow":"white"}var c,l=It(Mc,a,Z(i),function(){var a=b(y().mark(function a(l){var p,d,f,x;return y().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(!c){a.next=2;break}return a.next=1,m(c);case 1:c=null,s(),a.next=8;break;case 2:return c=$a(r),p=[h.st(c,v.schema("agent"),e.me,r),h.st(c,v.rdf("type"),i,r),h.st(c,v.schema("target"),t,r)],a.next=3,w.store.updater.update([],p);case 3:if(s(),!o){a.next=8;break}d=!1,f=0;case 4:if(!(f<o.length)){a.next=7;break}if(!(x=u(o[f]))){a.next=6;break}return a.next=5,m(x);case 5:d=!0;case 6:f++,a.next=4;break;case 7:d&&Ht(n);case 8:case"end":return a.stop()}},a)}));return function(e){return a.apply(this,arguments)}}());function u(n){var a=w.store.each(null,v.schema("agent"),e.me,r).filter(function(e){return w.store.holds(e,v.rdf("type"),n,r)}).filter(function(e){return w.store.holds(e,v.schema("target"),t,r)});return a.length?a[0]:null}function p(){c=u(i),s()}return l.refresh=p,p(),l},f=function(){return(f=b(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,w.store.updater.update(w.store.connectedStatements(t),[]);case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)},m=function(e){return f.apply(this,arguments)},d=function(){p.parentElement.parentElement.removeChild(p.parentElement)},u=function(){return(u=b(y().mark(function e(){var n,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,i.createThread(t);case 1:if(n=e.sent,r=a.chatOptions){e.next=2;break}throw new Error("replyInThread: missing options");case 2:r.showThread(n,r),d();case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)},l=function(){return u.apply(this,arguments)},c=function(){return c=b(y().mark(function e(n){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(x.value!==w.store.any(t,v.foaf("maker")).value){e.next=1;break}return d(),e.next=1,ol(n,t,i,a);case 1:case"end":return e.stop()}},e)})),c.apply(this,arguments)},s=function(e){return c.apply(this,arguments)},o=function(){return o=b(y().mark(function e(){var r,o,s;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=w.store.any(t,v.foaf("maker")),x){e.next=1;break}alert("You can't delete the message, you are not logged in."),e.next=7;break;case 1:if(!x.sameTerm(r)){e.next=6;break}return e.prev=2,e.next=3,i.deleteMessage(t);case 3:e.next=5;break;case 4:e.prev=4,s=e.catch(2),o="Error deleting messaage "+s,Y.R8(o),alert(o),(a.statusArea||n.parentNode).appendChild(ct(Mc,o));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, "+r);case 7:d();case 8:case"end":return e.stop()}},e,null,[[2,4]])})),o.apply(this,arguments)},r=function(){return o.apply(this,arguments)},p=Mc.createElement("div"),e.next=1,pc(t).value;case 1:if(E=e.sent,A=v.schema("dateDeleted").value,E!==A){e.next=2;break}return e.abrupt("return",p);case 2:if((x=w.authn.currentUser())&&w.store.holds(t,v.foaf("maker"),x)&&(p.appendChild(Bt(Mc,p,"message",r)),p.appendChild(It(Mc,Re.Pt.iconBase+"noun_253504.svg","edit",function(){return s(n)}))),Pc(a).then(function(e){e&&p.appendChild(e)}),x=w.authn.currentUser(),!(_=x)){e.next=4;break}return e.next=3,pc(t).value;case 3:j=e.sent,S=v.schema("dateDeleted").value,_=j!==S;case 4:if(!_){e.next=5;break}k={me:x,dom:Mc,div:p},p.appendChild(g(k,t,Re.Pt.iconBase+"noun_1384132.svg",v.schema("AgreeAction"),t.doc(),[v.schema("DisagreeAction")])),p.appendChild(g(k,t,Re.Pt.iconBase+"noun_1384135.svg",v.schema("DisagreeAction"),t.doc(),[v.schema("AgreeAction")]));case 5:return w.store.any(t,v.dct("created"))&&p.appendChild(It(Mc,Re.Pt.iconBase+"noun-reply-5506924.svg","Reply in thread",b(y().mark(function e(){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,l();case 1:case"end":return e.stop()}},e)})))),(C=p.appendChild(Ot(Mc))).style.float="right",C.firstChild.style.opacity="0.3",C.addEventListener("click",d),e.abrupt("return",p);case 6:case"end":return e.stop()}},e)})),Vc.apply(this,arguments)}function Wc(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 Jc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wc(Object(n),!0).forEach(function(t){on(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}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 Qc(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)?Qc(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 Qc(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}zc[v.schema("AgreeAction")]="👍",zc[v.schema("DisagreeAction")]="👎",zc[v.schema("EndorseAction")]="⭐️",zc[v.schema("LikeAction")]="❤️";var Zc=window.document,Kc=_e.messageBodyStyle,Yc=Z;function Xc(e,t){var n=Zc.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=Zc.createElement("a");return i.setAttribute("href",e),i.setAttribute("target","images"),i.appendChild(n),Se(n,$rdf.sym(e)),i}var el=function(e,t){var n=Zc.createElement("a");return t&&t.uri&&(n.setAttribute("href",t.uri),n.addEventListener("click",Vt,!0),n.setAttribute("style","color: #3B5998; text-decoration: none; ")),n.textContent=e,n};function tl(e){var t=w.store.any(e,v.foaf("nick"));return t?""+t.value:""+Yc(e)}function nl(e,t,n,a){var i=e.appendChild(el(tl(t),t));t.uri&&w.store.fetcher.nowOrWhenFetched(t.doc(),void 0,function(e,n){i.textContent=tl(t)}),e.appendChild(Zc.createElement("br")),e.appendChild(el(n,a))}function al(e,t,n,a){var i=e.appendChild(el(Yc(t),t));t.uri&&w.store.fetcher.nowOrWhenFetched(t.doc(),void 0,function(e,n){i.textContent=tl(t)});var r=e.appendChild(el(n,a));r.style.fontSize="80%",r.style.marginLeft="1em",e.appendChild(Zc.createElement("br"))}function il(e,t,n,a,i){return rl.apply(this,arguments)}function rl(){return rl=b(y().mark(function e(t,n,a,i,r){var o,s,c,l,u,p,d,m,f,h,x,g,k,C,E,A,_,j,S,T,L,R,N,B,I,O,D,F,P,U,M,z,q,H,G;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return z=function(e){return e?"#e8ffe8":"white"},o=!1,s="1"===i.colorizeByAuthor||!0===i.colorizeByAuthor,c=w.store.any(n,v.foaf("maker")),l=w.store.any(n,v.dct("created")),e.next=1,pc(n);case 1:return u=e.sent,p=w.store.any(u,v.foaf("maker")),d=c.uri===(null==p?void 0:p.uri)?u:n,m=w.store.any(d,v.sioc("content")),e.next=2,sc(d);case 2:(f=e.sent).length>1&&Y.Rm("renderMessageRow versions: ",f.join(", ")),h=f.map(function(e){return w.store.each(e,v.sioc("has_reply"))}).flat(),x=null,g=[],k=$c(h);try{for(k.s();!(C=k.n()).done;)E=C.value,w.store.holds(E,v.rdf("type"),v.sioc("Thread"))?(x=E,Y.Rm("renderMessageRow: found thread: "+x)):g.push(E)}catch(e){k.e(e)}finally{k.f()}return g.length>1&&Y.Rm("renderMessageRow: found normal replies: ",g),x||(x=w.store.any(null,v.sioc("has_member"),n)),A=w.store.any(d,$rdf.sym("".concat(Bs,"proofValue"))),(_=Is()).id=d.uri,_.created=w.store.any(d,v.dct("created")).value,_.content=m.value,_.maker=c.uri,null!=A&&A.value?Xs(c).then(function(e){e||Y.R8("message is signed but "+c.uri+" is missing publicKey");null!=e&&e.match(/[0-9A-Fa-f]{6}/g)?null!=A&&A.value&&!Ds(null==A?void 0:A.value,_,e)&&Y.R8("invalid signature\n"+_.id):Y.R8("invalid publicKey hex string\n"+c.uri+"\n"+e)}):(o=!0,Y.R8(d.uri+" is unsigned")),e.next=3,lc(n);case 3:return j=e.sent,S=!n.sameTerm(j),T=w.store.the(j,v.dct("created"),null,j.doc())||w.store.the(n,v.dct("created"),null,n.doc()),L=Zc.createElement("tr"),o&&L.setAttribute("style","background-color: red"),L.AJAR_date=T.value,L.AJAR_subject=n,R=Zc.createElement("td"),L.appendChild(R),i.authorDateOnLeft?nl(R,c,yt(T.value),n):((N=Zc.createElement("img")).setAttribute("style","max-height: 2.5em; max-width: 2.5em; border-radius: 0.5em; margin: auto;"),Rt(N,c),R.appendChild(N)),B=yt(T.value),S&&(B+=" ... "+yt(l.value)),I=L.appendChild(Zc.createElement("td")),i.authorDateOnLeft||al(I,c,B,n),O=m?m.value.trim():"??? no content?",D=/^https?:\/[^ <>]*$/i.test(O),F=null,D?/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(O)&&i.expandImagesInline?(P=Xc(O,i),I.appendChild(P)):(U=I.appendChild(Zc.createElement("a")),F=U.appendChild(Zc.createElement("p")),U.href=O,F.textContent=O,I.appendChild(U)):(F=Zc.createElement("p"),I.appendChild(F),F.textContent=O),F&&(M=s?Cc(c):z(a),F.setAttribute("style",Kc+"background-color: "+M+";")),e.next=4,qc(n,n.doc());case 4:return(q=e.sent).children.length&&(I.appendChild(Zc.createElement("br")),I.appendChild(q)),H=Zc.createElement("td"),L.appendChild(H),G=It(Zc,Re.Pt.iconBase+"noun_243787.svg","..."),H.appendChild(G),G.addEventListener("click",function(){var e=b(y().mark(function e(a){var o,s,c;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!L.toolTR){e.next=1;break}return L.parentNode.removeChild(L.toolTR),delete L.toolTR,e.abrupt("return");case 1:return o=Zc.createElement("tr"),e.next=2,Gc(n,L,Jc(Jc({},r),{},{chatOptions:i}),t);case 2:(s=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;",L.nextSibling?L.parentElement.insertBefore(o,L.nextSibling):L.parentElement.appendChild(o),L.toolTR=o,o.appendChild(Zc.createElement("td")),c=o.appendChild(Zc.createElement("td")),o.appendChild(Zc.createElement("td")),c.appendChild(s);case 3:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()),x&&i.showThread&&H.appendChild(It(Zc,Re.Pt.iconBase+"noun_1180164.svg","see thread",function(e){i.showThread(x,i)})),e.abrupt("return",L);case 5:case"end":return e.stop()}},e)})),rl.apply(this,arguments)}function ol(e,t,n,a){return sl.apply(this,arguments)}function sl(){return(sl=b(y().mark(function e(t,n,a,i){var r,o,s,c,l,u,p;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.parentNode,s=cl,c=a,l=r,u=i,p=a.options,e.next=1,pc(n);case 1:o=s(c,l,u,p,e.sent),r.insertBefore(o,t),o.originalRow=t,t.style.visibility="hidden";case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function cl(e,t,n,a,i){function r(e){return o.apply(this,arguments)}function o(){return(o=b(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,s(m.value,!0);case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function s(e,t){return c.apply(this,arguments)}function c(){return c=b(y().mark(function r(o,s){var c,l,u,p;return y().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return l=function(){return l=b(y().mark(function r(o,c){var l;return y().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=1,dl(e,t,o,!1,a,n);case 1:i?((l=h.originalRow).parentNode?l.parentNode.removeChild(l):(Y.R8("No parentNode on old message "+l.textContent),l.style.backgroundColor="#fee",l.style.visibility="hidden"),h.parentNode.removeChild(h)):s&&(m.value="",m.setAttribute("style",Kc),m.disabled=!1,m.scrollIntoView(a.newestFirst),m.focus(),m.select());case 2:case"end":return r.stop()}},r)})),l.apply(this,arguments)},c=function(e,t){return l.apply(this,arguments)},s&&(m.setAttribute("style",Kc+"color: #bbb;"),m.disabled=!0),r.prev=1,r.next=2,e.updateMessage(o,i,null,a.thread);case 2:u=r.sent,r.next=4;break;case 3:return r.prev=3,p=r.catch(1),(n.statusArea||h).appendChild(ct(Zc,"Error writing message: "+p)),r.abrupt("return");case 4:return r.next=5,c(u,o);case 5:case"end":return r.stop()}},r,null,[[1,3]])})),c.apply(this,arguments)}function l(e){var n=t.chatDocument.dir().uri;Te(w.store.fetcher,e,n+"Files",n+"Pictures",function(){var e=b(y().mark(function e(t,n){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,s(n);case 1:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}())}var u,p,d=function(){var e=b(y().mark(function e(t){var n,a,i,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=$c(t),e.prev=1,n.s();case 2:if((a=n.n()).done){e.next=4;break}return i=a.value,e.next=3,s(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)}}();i?(u=w.store.anyValue(i,v.dct("created"),null,i.doc()),p=Re.Pt.iconBase+"noun_1180158.svg"):(p=Re.Pt.iconBase+"noun_383448.svg",u="9999-01-01T00:00:00Z");var m,f,h=Zc.createElement("tr"),x=Zc.createElement("td"),g=Zc.createElement("td"),k=Zc.createElement("td");return h.appendChild(x),h.appendChild(g),h.appendChild(k),h.AJAR_date=u,ci({div:g,dom:Zc}).then(function(t){!function(){function t(){return(t=b(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=1;break}return e.next=1,s(t.uri);case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}if(a.menuHandler){var n=It(Zc,Re.Pt.iconBase+"noun_243787.svg","More");n.setAttribute("style",_e.buttonStyle+"float: right;"),k.appendChild(n)}a.menuHandler;var o=w.authn.currentUser();if(nl(x,o,"",null),m=Zc.createElement("textarea"),g.innerHTML="",g.appendChild(m),m.rows=3,i&&(m.value=w.store.anyValue(i,v.sioc("content"),null,i.doc())),m.setAttribute("style",Kc+"background-color: #eef;"),m.addEventListener("keydown",function(){var e=b(y().mark(function e(t){return y().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,r(t);case 1:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),!1),je(m,d,l),k.innerHTML="",(f=It(Zc,p,"Send")).style.float="right",f.addEventListener("click",function(e){return r()},!1),k.appendChild(f),i){var c=k.appendChild(Ot(Zc));c.style.float="left",c.addEventListener("click",function(e){return function(e){e.originalRow.style.visibility="visible",e.parentNode.removeChild(e)}(h)},!1),k.appendChild(c)}var u=e.dateFolder.leafDocumentFromDate(new Date);g.appendChild(ar.cameraButton(Zc,w.store,function(){return $rdf.sym(u.dir().uri+"Image_"+Date.now()+".png")},function(e){return t.apply(this,arguments)})),gc(e.channel,e.channel.doc())}(),Object.assign(t,n),function(e){return Bc.apply(this,arguments)}(t).then(function(e){})}),h}function ll(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 ul(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)?ul(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 ul(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 pl(e){"Notification"in window?"granted"===Notification.permission?new Notification(e):"denied"!==Notification.permission&&Notification.requestPermission().then(function(t){"granted"===t&&new Notification(e)}):Y.R8("This browser does no t support desktop notification")}function dl(e,t,n,a,i,r){return ml.apply(this,arguments)}function ml(){return(ml=b(y().mark(function e(t,n,a,i,r,o){var s,c,l,u,p;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,il(t,a,i,r,o);case 1:s=e.sent,r.selectedMessage&&r.selectedMessage.sameTerm(a)&&(s.style.backgroundColor="yellow",r.selectedElement=s,n.selectedElement=s),c=!1,l=n.firstChild;case 2:if(l){e.next=3;break}return e.abrupt("continue",5);case 3:if(u=!0===r.newestfirst,!((p=s.AJAR_date)>l.AJAR_date&&u||p<l.AJAR_date&&!u)){e.next=4;break}return n.insertBefore(s,l),c=!0,e.abrupt("continue",5);case 4:l=l.nextSibling,e.next=2;break;case 5:c||n.appendChild(s);case 6:case"end":return e.stop()}},e)}))).apply(this,arguments)}function fl(e,t,n,a){return hl.apply(this,arguments)}function hl(){return hl=b(y().mark(function e(t,n,a,i){var r,o,s,c,l,u,p,d,m,f,x,g,k,C,E,A,_,j,S,T,L,R,N,B,I,O,D,F,P,U,M,z;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return S=function(){return(S=b(y().mark(function e(){var t,n,a,r,o,s,c,l,u,p;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=function(){i.selectedElement?i.selectedElement.scrollIntoView({block:"center"}):O.inputRow.scrollIntoView&&O.inputRow.scrollIntoView(T)},t=function(){u&&u.selectedElement&&u.selectedElement.scrollIntoView({block:"center"})},i.selectedMessage&&(r=i.selectedMessage.doc()),D&&(o=D.doc()),(s=r||o)&&(c=new Date,l=R.leafDocumentFromDate(c),a=l.sameTerm(s)),!s||a){e.next=2;break}return p=R.dateFromLeafDocument(s),e.next=1,d(p,a);case 1:u=e.sent,N.appendChild(u),F.messageTable=u,P.messageTable=u,t(),setTimeout(t,1e3),e.next=4;break;case 2:return e.next=3,C();case 3:F.messageTable=O,P.messageTable=O;case 4:return e.next=5,A(null,n);case 5:N.addEventListener("scroll",A),i.solo&&document.body.addEventListener("scroll",A);case 6:case"end":return e.stop()}},e)}))).apply(this,arguments)},j=function(){return S.apply(this,arguments)},_=function(){return(_=b(y().mark(function e(t,n){var a,r,o,s,c;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!z){e.next=1;break}return e.abrupt("return");case 1:z=!0,a=!n,r=150;case 2:if(!(N.scrollTop<r&&F.messageTable&&!F.messageTable.initial&&F.messageTable.extendBackwards)){e.next=6;break}if(0!==N.scrollHeight){e.next=3;break}return setTimeout(A,2e3),z=!1,e.abrupt("return");case 3:return s=N.scrollHeight-N.scrollTop,e.next=4,F.messageTable.extendBackwards();case 4:if(o=e.sent,a&&(N.scrollTop=N.scrollHeight-s),n&&n(),!o){e.next=5;break}return e.abrupt("continue",6);case 5:e.next=2;break;case 6:if(!(i.selectedMessage&&N.scrollHeight-N.scrollTop-N.clientHeight<r&&P.messageTable&&!P.messageTable.final&&P.messageTable.extendForwards)){e.next=9;break}return c=N.scrollTop,e.next=7,P.messageTable.extendForwards();case 7:if(o=e.sent,a&&(N.scrollTop=c),n&&n(),!o){e.next=8;break}return e.abrupt("continue",9);case 8:e.next=6;break;case 9:z=!1;case 10:case"end":return e.stop()}},e)}))).apply(this,arguments)},A=function(e,t){return _.apply(this,arguments)},E=function(){return(E=b(y().mark(function e(){var t,n,i;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=new Date,n=R.leafDocumentFromDate(t),e.next=1,d(t,!0);case 1:return i=e.sent,N.appendChild(i),N.refresh=b(y().mark(function e(){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,g(new Date);case 1:return e.next=2,r(a,i);case 2:pl(a);case 3:case"end":return e.stop()}},e)})),w.store.updater.addDownstreamChangeListener(n,N.refresh),O=i,P.messageTable=O,e.abrupt("return",i);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)},C=function(){return E.apply(this,arguments)},k=function(){return(k=b(y().mark(function e(){var t,n,a;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((t=R.leafDocumentFromDate(new Date)).sameTerm(P.messageTable.chatDocument)){e.next=2;break}return O.inputRow&&(O.removeChild(O.inputRow),delete O.inputRow),n=P.messageTable.chatDocument,e.next=1,C();case 1:if(!w.store.holds(n,v.rdfs("seeAlso"),t,n)){a=[h.st(n,v.rdfs("seeAlso"),t,n)];try{w.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)},g=function(){return k.apply(this,arguments)},x=function(){return x=b(y().mark(function e(n,a){var r,o,c,u,d,m,f,h,x,g,k,C,E,A,_,j,S,B,D,F;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:x=function(){return(x=b(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!g.extendedForwards){e.next=1;break}p(!1,g),g.extendedForwards=!1,h(),e.next=3;break;case 1:return e.next=2,m();case 2:P.messageTable.scrollIntoView(T);case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)},h=function(){if(o){var e=g.extendedForwards?!T:T,t=g.final?"noun_T-Block_1114657_000000.svg":function(e){return e?"noun_1369237.svg":"noun_1369241.svg"}(e);o.firstChild.setAttribute("src",Re.Pt.iconBase+t)}},f=function(){return(f=b(y().mark(function e(){var t;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,l(!1);case 1:return t=e.sent,e.abrupt("return",t);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)},m=function(){return f.apply(this,arguments)},d=function(){if(r){var e=g.extendedBack?!T:T,t=g.initial?"noun_T-Block_1114655_000000.svg":function(e){return e?"noun_1369241.svg":"noun_1369237.svg"}(e);r.firstChild.setAttribute("src",Re.Pt.iconBase+t)}},u=function(){return(u=b(y().mark(function e(){var t;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,l(!0);case 1:return(t=e.sent)?(r&&(r.firstChild.setAttribute("src",Re.Pt.iconBase+"noun_T-Block_1114655_000000.svg"),r.disabled=!0),g.initial=!0):g.extendedBack=!0,d(),e.abrupt("return",t);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)},c=function(){return u.apply(this,arguments)},r=null,o=null,(g=t.createElement("table")).style.width="100%",g.extendBackwards=c,g.extendForwards=m,g.date=n,k=R.leafDocumentFromDate(n),g.chatDocument=k,g.fresh=!1,g.setAttribute("style","width: 100%;"),a&&(g.final=!0,O=g,P.messageTable=g,C=cl(L,g,I,i),T?g.insertBefore(C,g.firstChild):g.appendChild(C),g.inputRow=C),E=t.createElement("tr"),(A=E.appendChild(t.createElement("td"))).style="text-align: center; vertical-align: middle; color: #888; font-style: italic;",A.textContent=yt(n.toISOString(),!0),_=E.appendChild(t.createElement("td")),i.includeRemoveButton&&_.appendChild(Ot(t,function(e){N.parentNode.removeChild(N)})),g.extendedForwards=!1,T?g.appendChild(E):g.insertBefore(E,g.firstChild),j=w.store.statementsMatching(null,v.wf("message"),null,k),!a&&j.length,S=ll(j),e.prev=1,S.s();case 2:if((B=S.n()).done){e.next=4;break}return D=B.value,e.next=3,s(D.object,g);case 3:e.next=2;break;case 4:e.next=6;break;case 5:e.prev=5,F=e.catch(1),S.e(F);case 6:return e.prev=6,S.f(),e.finish(6);case 7:return g.fresh=!0,e.abrupt("return",g);case 8:case"end":return e.stop()}},e,null,[[1,5,6,7]])})),x.apply(this,arguments)},f=function(e,t){return x.apply(this,arguments)},m=function(){return(m=b(y().mark(function e(n,a){var i,r,o,s;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=R.leafDocumentFromDate(n),e.prev=1,e.next=2,w.store.fetcher.createIfNotExists(i);case 2:e.next=7;break;case 3:if(e.prev=3,s=e.catch(1),r=t.createElement("table"),o=r.appendChild(t.createElement("tr")),!s.response||!s.response.status||404!==s.response.status){e.next=5;break}return e.next=4,f(n,a);case 4:return e.abrupt("return",e.sent);case 5:Y.Rm("*** Error NON 404 for chat file "+i),o.appendChild(ct(t,s,"pink"));case 6:return e.abrupt("return",o);case 7:return e.next=8,f(n,a);case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}},e,null,[[1,3]])}))).apply(this,arguments)},d=function(e,t){return m.apply(this,arguments)},p=function(e,t){if(e?T:!T)for(;t.nextSibling;)N.removeChild(t.nextSibling);else for(;t.previousSibling;)N.removeChild(t.previousSibling);(e?F:P).messageTable=t},u=function(){return(u=b(y().mark(function e(t){var n,a,i,r,o,s;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a=(n=t?F:P).messageTable.date,!(t&&F.limit&&a<=F.limit)){e.next=2;break}if(O){e.next=1;break}return e.next=1,C();case 1:return e.abrupt("return",!0);case 2:return e.next=3,R.loadPrevious(a,t);case 3:if((a=e.sent)||t||O){e.next=4;break}return e.next=4,C();case 4:if(a){e.next=5;break}return e.abrupt("return",!0);case 5:return i=!1,t||(r=R.leafDocumentFromDate(new Date),o=R.leafDocumentFromDate(a),i=o.sameTerm(r)),e.next=6,d(a,i);case 6:return s=e.sent,n.messageTable=s,(t?T:!T)?N.appendChild(s):N.insertBefore(s,N.firstChild),e.abrupt("return",i);case 7:case"end":return e.stop()}},e)}))).apply(this,arguments)},l=function(e){return u.apply(this,arguments)},c=function(){return c=b(y().mark(function e(t,n){var a,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!mc(t)||i.showDeletedMessages){e.next=1;break}return e.abrupt("return");case 1:if(a=w.store.any(null,v.sioc("has_member"),t,t.doc()),(r=w.store.any(t,v.sioc("id"),null,t.doc()))&&!a&&(a=w.store.any(null,v.sioc("has_member"),r,t.doc())),!i.thread){e.next=5;break}if(!w.store.holds(t,v.sioc("has_reply"),i.thread)){e.next=2;break}e.next=4;break;case 2:if(!a||!a.sameTerm(i.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,dl(L,n,t,n.fresh,i,I);case 7:case"end":return e.stop()}},e)})),c.apply(this,arguments)},s=function(e,t){return c.apply(this,arguments)},o=function(){return o=b(y().mark(function e(t,n){var a,i,r,o,c,l,u,p,d;return y().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);o=w.store.each(t,v.wf("message"),null,n.chatDocument),c={},l=ll(o),e.prev=1,l.s();case 2:if((u=l.n()).done){e.next=4;break}if(p=u.value,c[p.uri]=!0,a[p.uri]){e.next=3;break}return e.next=3,s(p,n);case 3:e.next=2;break;case 4:e.next=6;break;case 5:e.prev=5,d=e.catch(1),l.e(d);case 6:return e.prev=6,l.f(),e.finish(6);case 7:for(i=n.firstChild;i;)r=i.nextSibling,i.AJAR_subject&&!c[i.AJAR_subject.uri]&&n.removeChild(i),i=r;for(i=n.firstChild;i;i=i.nextSibling)i.AJAR_subject&&Ht(i);case 8:case"end":return e.stop()}},e,null,[[1,5,6,7]])})),o.apply(this,arguments)},r=function(e,t){return o.apply(this,arguments)},(i=i||{}).authorDateOnLeft=!1,T="1"===i.newestFirst||!0===i.newestFirst,L=new oc(a,i),R=L.dateFolder,N=t.createElement("div"),L.div=N,B=N.appendChild(t.createElement("div")),I={dom:t,statusArea:B,div:B},F={messageTable:null},P={messageTable:null},i.thread&&(U=i.thread,(D=w.store.any(null,v.sioc("has_reply"),U,U.doc()))&&(M=w.store.any(D,v.dct("created"),null,D.doc()))&&(F.limit=new Date(M.value))),z=!1,e.next=1,j();case 1:return e.abrupt("return",N);case 2:case"end":return e.stop()}},e)})),hl.apply(this,arguments)}var vl=w.store,xl=[];function bl(e){return xl[e]}function gl(e,t){if("string"!=typeof t)throw Y.Rm("Non-string value of preference "+e+": "+t),new Error("Non-string value of preference "+e+": "+t);this.value[e]=t}function yl(e,t){return new Promise(function(n,a){var i=vl.any(e,v.ui("sharedPreferences"));if(i)t.sharedPreferences=i,n(t);else{vl.updater.editable(e.doc())||(Y.Rm(" Cant make shared preferences, may not change ".concat(e.doc)),n(t));var r=h.sym(e.doc().uri+"#SharedPreferences"),o=[h.st(e,v.ui("sharedPreferences"),r,e.doc())];Y.Rm("Creating shared preferences "+r),vl.updater.update([],o,function(e,i,o){i?(t.sharedPreferences=r,n(t)):a(new Error("Error creating shared prefs: "+o))})}})}function wl(e,t){return new Promise(function(n,a){li(t).then(function(t){if(t.preferencesFile){var i,r,o=vl.each(null,v.solid("forClass"),e,t.preferencesFile),s=[];if(o.length){if(o.forEach(function(e){i=i||vl.any(e,v.solid("personalDefaults"))}),i)return t.personalDefaults=i,void n(t);i=$a(t.preferencesFile),r=o[0]}else r=$a(t.preferencesFile),s=[h.st(r,v.rdf("type"),v.solid("TypeRegistration"),t.preferencesFile),h.st(r,v.solid("forClass"),e,t.preferencesFile)];i=$a(t.preferencesFile),s.push(h.st(r,v.solid("personalDefaults"),i,t.preferencesFile)),vl.updater.update([],s,function(r,o,s){o?(t.personalDefaults=i,n(t)):a(new Error("Setting preferences for "+e+": "+s))})}else Y.Rm("Not doing private class preferences as no access to preferences file. "+t.preferencesFileError)},function(e){a(e)})})}function kl(e,t,n,a){var i=a.dom.createElement("div");return bc(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),Ia(o,i,{},r,n,e.doc(),function(e,t){e||xt(a,t)}),s("Everyone's view of this "+a.noun),yl(e,a).then(function(a){var r=a.sharedPreferences;Ia(o,i,{},r,n,e.doc(),function(e,t){e||xt(a,t)}),s("My default view of any "+a.noun),wl(t,a).then(function(e){Ia(o,i,{},e.personalDefaults,n,e.preferencesFile,function(t,n){t||xt(e,n)})},function(e){xt(a,e)})})},function(e){i.appendChild(ct(a.dom,e))}),i}function Cl(e){return e.datatype?e.datatype.equals(v.xsd("boolean"))?"1"===e.value:e.datatype.equals(v.xsd("dateTime"))||e.datatype.equals(v.xsd("date"))?new Date(e.value):e.datatype.equals(v.xsd("integer"))||e.datatype.equals(v.xsd("float"))||e.datatype.equals(v.xsd("decimal"))?Number(e.value):e.value:e}function El(e,t,n,a){return new Promise(function(i,r){yl(e,a).then(function(a){var o=a.sharedPreferences;if(a.me)bc(e,e.doc(),a.me).then(function(e){wl(t,a).then(function(t){var a=[],r=t.personalDefaults;n.forEach(function(t){var n=vl.any(e,t)||vl.any(o,t)||vl.any(r,t);n&&(a[t.uri]=Cl(n))}),i(a)},r)},r);else{var s=[];n.forEach(function(e){var t=vl.any(o,e);t&&(s[e.uri]=Cl(t))}),i(s)}})})}var Al={icons:Re.Pt,log:e,ns:v,utils:t,widgets:s};function _l(e,t){var n,a,i,r,o=t.sourceDocument,s=t.tableClass,c=t.query,l=Al.ns,u=w.store,p={},d={"http://www.w3.org/2002/07/owl#sameAs":!0,"http://www.w3.org/1999/02/22-rdf-syntax-ns#type":!0},m={"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},f={"http://www.w3.org/2001/XMLSchema#dateTime":!0,"http://www.w3.org/2001/XMLSchema#date":!0},v={"http://xmlns.com/foaf/0.1/Image":!0,"http://purl.org/dc/terms/Image":!0},x=t.keyVariable||"?_row",b=0,g=null,y=null,k=e.createElement("div");k.className="tableViewPane",k.appendChild(function(){var t=e.createElement("table");t.setAttribute("class","toolbar");var n=e.createElement("tr");return i=e.createElement("td"),n.appendChild(i),r=e.createElement("td"),n.appendChild(r),t.appendChild(n),t}());var C,E=e.createElement("div");if(k.appendChild(E),k.refresh=function(){X(C.query,C.logicalRows,C.columns,C)},c)C=ne(c),E.appendChild(C);else{var A=function(){var e,t,n=function(){for(var e={},t=u.statementsMatching(void 0,Al.ns.rdf("type"),s,o),n={},a=0;a<t.length;++a){var i=t[a].object;if("NamedNode"===i.termType){var r=I(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];D(t[a],i)}var r=new T(null);return[r,R(t)]}();n=A[0],a=A[1],s||i.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(N("All types","null")),n)i.appendChild(N(n[r].getLabel(),r));return i.addEventListener("click",function(){var e;e="null"===i.value?t:n[i.value],j(e)},!1),a.appendChild(i),a}(n,a)),y=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}(a),j(y||n)}return k;function _(e){var t=new h.Query,n=u.variable(x.slice(1));return function(e,t){for(var n=t.getColumns(),a=0;a<n.length;++a){var i=u.variable("_col"+a);e.vars.push(i),n[a].setVariable(i)}}(t,e),function(e,t,n){var a=n.type;a||(a=u.variable("_any")),e.pat.add(t,Al.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=u.formula();o.add(t,r.predicate,r.getVariable()),e.pat.optional.push(o)}}(t,n,e),t}function j(t){S(r),r.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(N("","-1"));for(var r=0;r<a.length;++r){var o=a[r];i.appendChild(N(o.getLabel(),""+r))}n.appendChild(i),i.addEventListener("click",function(){var e=Number(i.value);e>=0&&(t.addColumn(a[e]),j(t))},!1)}return n}(t)),function(e,t){g&&(g.running=!1);var n=ne(e,t);S(E),E.appendChild(n),g=e}(_(t),t)}function S(e){for(;e.childNodes.length>0;)e.removeChild(e.childNodes[0])}function T(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 Z(this.type)},this.addUse=function(){this.useCount+=1}}function L(){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(l.rdf("type"))&&this.superClass?Z(this.superClass,!0):Z(this.predicate):this.variable?this.variable.toString():"unlabeled column?"},this.setPredicate=function(e,t,n){t?(this.inverse=e,this.constraints=this.constraints.concat(u.each(e,Al.ns.rdfs("domain"))),e.sameTerm(l.rdfs("subClassOf"))&&"NamedNode"===n.termType&&(this.superClass=n,this.alternatives=u.each(void 0,l.rdfs("subClassOf"),n))):(this.predicate=e,this.constraints=this.constraints.concat(u.each(e,Al.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 v)return!0;return!1}}function R(e,t){var n=[];for(var a in e){var i=e[a];t&&!t(a,i)||n.push(i)}return n}function N(t,n){var a=e.createElement("option");return a.setAttribute("value",n),a.appendChild(e.createTextNode(t)),a}function B(e,t){var n;return t.uri in e?n=e[t.uri]:((n=new L).setPredicate(t),e[t.uri]=n),n}function I(e,t){var n;return t.uri in e?n=e[t.uri]:(n=new T(t),e[t.uri]=n),n}function O(e,t){for(var n=u.statementsMatching(e,void 0,void 0,o),a={},i=0;i<n.length;++i){var r=n[i].predicate;if(!(r.uri in d)){var s=B(t,r);s.checkValue(n[i].object),a[r.uri]=s}}return a}function D(e,t){for(var n={},a=0;a<t.length;++a){var i=O(t[a],n);for(var r in i){i[r].addUse()}}var o=R(n);!function(e){function t(e,t){return(e.useCount<t.useCount)-(e.useCount>t.useCount)}e.sort(t)}(o),e.allColumns=o}function F(t,n){var a=e.createElement("a");return a.appendChild(e.createTextNode("[x]")),a.addEventListener("click",function(){t.removeColumn(n),j(t)},!1),a}function P(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 U(e,t){for(var n=0;n<e.length;++n){P(e[n],t)}}function M(e,t,n){function a(e){return e?"Literal"===e.termType?e.value.toLowerCase():"NamedNode"===e.termType?Z(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 z(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(){M(t,a,!1)},!1),i.appendChild(o);var s=e.createElement("span");s.appendChild(e.createTextNode("▲")),s.addEventListener("click",function(){M(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?Z(e):"").toLowerCase().indexOf(c)>=0},r.addEventListener("keyup",function(){c=""!==r.value?r.value.toLowerCase():null,U(t,n)},!1),i}function q(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 u=W(a).initialSelection;u&&(s=u),o.setAttribute("multiple","true");for(var p=0;p<i.length;++p){var d=i[p],m=N(Z(d),p);s[d.uri]&&(m.selected=!0),o.appendChild(m)}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)}U(t,n)},!0),r}function H(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),U(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 G(e,t,n){if(n.superClass&&n.alternatives.length>0)return q(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 m)return H(e,t,n);if("http://www.w3.org/2000/01/rdf-schema#Literal"===a.uri)return z(e,t,n);var o=u.each(a,Al.ns.owl("oneOf"));if(o.length>0)return q(e,t,n,o.elements)}return function(e,t,n){return n.checkedAnyValues&&n.possiblyNumber?H(e,t,n):n.possiblyLiteral?z(e,t,n):null}(e,t,n)}function V(t,n,a){a=a||{};var i=e.createElement("a"),r=a.linkFunction;return i.setAttribute("href",t),i.appendChild(e.createTextNode(n)),r?i.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation();var t=He(e).getAttribute("href");t||Y.Rm("No href found \n"),r(t)},!0):i.addEventListener("click",Al.widgets.openHrefInOutlineMode,!0),i}function W(e){return t&&t.hints&&e.variable&&t.hints[e.variable.toNT()]?t.hints[e.variable.toNT()]:{}}function J(t,n){var a=W(n),i=a.cellFormat;if(!i){if("Literal"===t.termType){if(t.datatype){if(f[t.datatype.uri])return e.createTextNode(Al.widgets.shortDate(t.value));if(m[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:(.*)/)),V(e.uri,n?n[1]:Z(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(J(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(Al.widgets.shortDate(t.value))}function $(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 Q(t,n,a){var i,r=!1;for(i in a){var o=a[i];i in t.values||(t.values[i]=[]),$(o,t.values[i])||(t.values[i].push(o),r=!0)}r&&(S(t._htmlRow),function(t,n,a){var i=e.createElement("td");n._subject&&"uri"in n._subject&&i.appendChild(V(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(J(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)),P(t,n)}function K(e){if("uri"in e)return e.uri;if("_subject_id"in e)return e._subject_id;var t=""+b;return e._subject_id=t,++b,t}function X(n,a,i,r){n.running=!0;var o=Date.now(),s=e.createElement("tr");r.appendChild(s),s.textContent="Loading ...";for(var c=0;c<a.length;c++)a[c].original=!0,a[c].originalValues||(a[c].originalValues=a[c].values),a[c].values={};u.query(n,function(t){if(n.running){s.textContent+=".";var o,c=null,l=null;if(x in t&&(o=K(l=t[x]))in p&&(c=p[o]),!c){var u=e.createElement("tr");r.appendChild(u),c={_htmlRow:u,_subject:l,values:{}},a.push(c),l&&(p[o]=c)}delete c.original,Q(c,i,t)}},void 0,function(){s&&s.parentNode&&s.parentNode.removeChild&&(s.parentNode.removeChild(s),s=null);var e=Date.now()-o;Y.Rm("Query done: "+a.length+" rows, "+e+"ms");for(var n=a.length-1;n>=0;n--)if(a[n].original){Y.Rm(" deleting row "+a[n]._subject);var r=a[n]._htmlRow;r.parentNode.removeChild(r),delete p[K(a[n]._subject)],a.splice(n,1)}if(t.sortBy){var c=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))}(i,t.sortBy);M(a,c,t.sortReverse)}t.onDone&&t.onDone(k)})}function ee(e,t){Al.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)Al.log.debug("recurse to optional subformula "+o),ee(e,t.optional[o]);Al.log.debug("<< finished processing formula")}function te(e){for(var t=[],n={},a=0;a<e.vars.length;++a){var i=new L,r=e.vars[a];Al.log.debug("column "+a+" : "+r),i.setVariable(r),n[r]=i,t.push(i)}return ee(n,e.pat),t}function ne(t,n){var a;a=c?te(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(F(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=G(t,n,n[i]);o&&r.appendChild(o),a.appendChild(r)}return a}(i,a)),r.logicalRows=i,r.columns=a,r.query=t,X(t,i,a,r),r}}function jl(e,t){if(t&&("object"==xe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Sl(e){return Sl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Sl(e)}function Tl(e,t){return Tl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Tl(e,t)}function Ll(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ll=function(){return!!e})()}function Rl(e){var t="function"==typeof Map?new Map:void 0;return Rl=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(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 function(e,t,n){if(Ll())return Reflect.construct.apply(null,arguments);var a=[null];a.push.apply(a,t);var i=new(e.bind.apply(e,a));return n&&Tl(i,n.prototype),i}(e,arguments,Sl(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Tl(n,e)},Rl(e)}function Nl(e,t,n){return t=Sl(t),jl(e,Bl()?Reflect.construct(t,n||[],Sl(e).constructor):t.apply(e,n))}function Bl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Bl=function(){return!!e})()}var Il=function(e){function t(){return ve(this,t),Nl(this,t,arguments)}return function(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&&Tl(e,t)}(t,e),ye(t)}(Rl(HTMLElement)),Ol="#ddddcc";function Dl(e){var t=e.subject,n=e.dom||document,a=parseInt(e.orientation||"0"),i=e.backgroundColor||Ol,r=2&a,o=1&a,s=e.onClose,c=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)?[Fl(e,"#ffffff",.3),"#000000"]:[Fl(e,"#000000",.3),"#ffffff"]}(i),l=Ce(c,2),u=l[0],p=l[1],d="flex: 2; width: auto; height: 100%; border: 0.1em; border-style: solid; border-color: ".concat(u,"; padding: 1em;"),m=n.createElement("div");m.setAttribute("style",_e.tabsRootElement),m.style.flexDirection=(o?"row":"column")+(r?"-reverse":"");var f=m.appendChild(n.createElement("nav"));f.setAttribute("style",_e.tabsNavElement);var h=m.appendChild(n.createElement("main"));h.setAttribute("style",_e.tabsMainElement);var v=f.appendChild(n.createElement("ul"));v.setAttribute("style",_e.tabContainer),v.style.flexDirection="".concat(o?"column":"row");var x=h;m.tabContainer=v,m.bodyContainer=x;var b=["0.2em","0.2em","0","0"],g=b.concat(b).slice(a,a+4),y="border-radius: ".concat(g.join(" "),";"),k=["0.3em","0.3em","0","0.3em"],C=k.concat(k).slice(a,a+4),E="margin: ".concat(C.join(" "),";"),A="padding: ".concat(C.join(" "),";"),_=y+"position: relative; padding: 0.7em; max-width: 20em; color: ".concat(p,";"),j="".concat(_+E," opacity: 50%; background-color: ").concat(i,";"),S="".concat(_+E," background-color: ").concat(u,";"),T="height: 100%; width: 100%;",L=T+"display: none;";if(m.refresh=D,D(),!e.startEmpty&&v.children.length&&e.selectedTab){var R=Array.from(v.children).map(function(e){return e.firstChild}).find(function(t){return t.dataset.name===e.selectedTab}),N=e.selectedTab.uri,B=Array.from(v.children).find(function(e){return e.subject&&e.subject.uri&&e.subject.uri===N}),I=(B||R||v.children[0]).firstChild;I&&I.click()}else e.startEmpty||v.children[0].firstChild.click();return m;function O(t){var a=n.createElement("li");a.setAttribute("style",j),a.subject=t;var i=a.appendChild(n.createElement("button"));if(i.setAttribute("style",_e.makeNewSlot),i.onclick=function(){if(F(),P(),a.setAttribute("style",S),a.bodyTR){a.bodyTR.setAttribute("style",T);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",_e.ellipsis),r.onclick=function(){if(F(),P(),a.setAttribute("style",S),a.bodyTR){a.bodyTR.setAttribute("style",T);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=Z(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",d),i}}function D(){var a,i,r,o,c,l=e.items?e.items:!1!==e.ordered?w.store.the(t,e.predicate).elements:w.store.each(t,e.predicate),u=!1;for(o=0;o<v.children.length;o++)if(a=v.children[o],o>=l.length||a.subject&&!a.subject.sameTerm(l[o])){u=!0;break}if(u||l.length!==v.children.length){for(c=v.children.length-1;c>=0&&(a=v.children[c],r=c-v.children.length+l.length,!a.subject||a.subject.sameTerm(l[r]));c--);for(var p=l.slice(o,c-v.children.length+l.length+1);c>=o;)v.removeChild(v.children[o]),x.removeChild(x.children[o]),c-=1;for(i=0;i<p.length;i++){var d=O(p[i]),m=n.createElement("div");d.bodyTR=m,o===v.children.length?(v.appendChild(d),x.appendChild(m)):(v.insertBefore(d,v.children[o+i]),x.insertBefore(m,x.children[o+i]))}s&&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=Ot(n,s);i.setAttribute("style",i.getAttribute("style")+A),a.appendChild(i),e.appendChild(a),e.dataset.onCloseSet="true"}(v)}}function F(){for(var e=0;e<v.children.length;e++){var t=v.children[e];t.classList.contains("unstyled")||t.setAttribute("style",j)}}function P(){for(var e=0;e<x.children.length;e++)x.children[e].setAttribute("style",L)}}function Fl(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}var Pl='\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>';function Ul(){return(0,h.sym)(document.location.origin).site()}function Ml(e,t){return zl.apply(this,arguments)}function zl(){return(zl=b(y().mark(function e(t,n){var a,i,r,o,s;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,n.any(t,null,v.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,h.parse)(i,n,t.uri,"text/turtle");case 2:e.next=4;break;case 3:return e.prev=3,s=e.catch(0),console.error("Error loading pod "+t+": "+s),e.abrupt("return",null);case 4:if(n.holds(t,v.rdf("type"),v.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(!(r=n.any(t,v.solid("owner"),null,t)||n.any(null,v.space("storage"),t,t))){e.next=10;break}return e.prev=6,e.next=7,n.fetcher.load(r.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 "+r),e.abrupt("return",null);case 9:return n.holds(r,v.space("storage"),t,r.doc())||console.warn("Pod owner ".concat(r," does NOT list pod ").concat(t," as their storage")),e.abrupt("return",r);case 10:return o=(0,h.sym)("".concat(t.uri,"profile/card#me")),e.prev=11,e.next=12,n.fetcher.load(o);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(o,v.space("storage"),t,o.doc())){e.next=15;break}return console.warn("Using guessed pod owner webid but it links back."),e.abrupt("return",o);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 ql(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}}var Hl=Re.Pt.iconBase+"noun_help.svg";function Gl(e,t,n){return Vl.apply(this,arguments)}function Vl(){return(Vl=b(y().mark(function e(t,n,a){var i,r;return y().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:r=Ul(),Wl(i,t,r,n,a)(),w.authSession.events.on("logout",Wl(i,t,r,n,a)),w.authSession.events.on("login",Wl(i,t,r,n,a));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Wl(e,t,n,a,i){return b(y().mark(function r(){var o,s;return y().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return o=w.authn.currentUser(),e.innerHTML="",s=e,r.next=1,Jl(t,n,o,a,i);case 1:s.appendChild.call(s,r.sent);case 2:case"end":return r.stop()}},r)}))}function Jl(e,t,n,a,i){return $l.apply(this,arguments)}function $l(){return($l=b(y().mark(function e(t,n,a,i,r){var o,s,c,l,u,p,d;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((o=document.createElement("a")).href=n.uri,o.setAttribute("style",_e.headerBannerLink),s=document.createElement("img"),r&&(s.src=r.logo?r.logo:"https://solidproject.org/assets/img/solid-emblem.svg"),s.setAttribute("style",_e.headerBannerIcon),o.appendChild(s),!a){e.next=2;break}return e.next=1,Xl(t,a,i);case 1:d=e.sent,e.next=3;break;case 2:d=Zl();case 3:return c=d,(l=document.createElement("div")).setAttribute("style",_e.headerBanner),l.appendChild(o),(u=document.createElement("div")).setAttribute("style",_e.headerBannerRightMenu),u.appendChild(c),r&&r.helpMenuList&&(p=Ql(r,r.helpMenuList),u.appendChild(p)),l.appendChild(u),e.abrupt("return",l);case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Ql(e,t){if(t){var n=document.createElement("ul");n.setAttribute("style",_e.headerUserMenuList),t.forEach(function(e){"url"===(e.url?"url":"onclick")?n.appendChild(tu(Yl(e.label,e.url,e.target))):n.appendChild(tu(Kl(e.label,e.onclick)))});var a=document.createElement("nav");a.setAttribute("style",_e.headerUserMenuNavigationMenuNotDisplayed),a.setAttribute("aria-hidden","true"),a.setAttribute("id","helperNav"),a.appendChild(n);var i=document.createElement("div");i.setAttribute("style",_e.headerBannerUserMenu),i.appendChild(a);var r=document.createElement("button");r.setAttribute("style",_e.headerUserMenuTrigger),r.type="button";var o=document.createElement("img");o.src=e&&e.helpIcon?e.helpIcon:Re.Pt.iconBase+Hl,o.setAttribute("style",_e.headerUserMenuTriggerImg),i.appendChild(r),r.appendChild(o);var s=ql(function(e){return au(e,r,a)},50);r.addEventListener("click",s);var c=setTimeout(function(){return null},0);return i.addEventListener("mouseover",function(e){clearTimeout(c),s(e);var t=document.getElementById("helperNav");null==t||t.setAttribute("style",_e.headerUserMenuNavigationMenu)}),i.addEventListener("mouseout",function(e){c=setTimeout(function(){return s(e)},200);var t=document.getElementById("helperNav");null==t||t.setAttribute("style",_e.headerUserMenuNavigationMenuNotDisplayed)}),i}}function Zl(){var e=document.createElement("div");return e.setAttribute("style",_e.headerBannerLogin),e.appendChild(ki(document,null,{})),e}function Kl(e,t){var n=document.createElement("button");return n.setAttribute("style",_e.headerUserMenuButton),n.onmouseover=function(){n.setAttribute("style",_e.headerUserMenuButtonHover)},n.onmouseout=function(){n.setAttribute("style",_e.headerUserMenuButton)},n.addEventListener("click",t),n.innerText=e,n}function Yl(e,t,n){var a=document.createElement("a");return a.setAttribute("style",_e.headerUserMenuLink),a.onmouseover=function(){a.setAttribute("style",_e.headerUserMenuLinkHover)},a.onmouseout=function(){a.setAttribute("style",_e.headerUserMenuLink)},a.href=t,a.innerText=e,n&&(a.target=n),a}function Xl(e,t,n){return eu.apply(this,arguments)}function eu(){return(eu=b(y().mark(function e(t,n,a){var i,r,o,s,c,l,u,p;return y().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(r=document.createElement("ul")).setAttribute("style",_e.headerUserMenuList),a&&a.forEach(function(e){"url"===(e.url?"url":"onclick")?r.appendChild(tu(Yl(e.label,e.url,e.target))):r.appendChild(tu(Kl(e.label,e.onclick)))}),(o=document.createElement("nav")).setAttribute("style",_e.headerUserMenuNavigationMenuNotDisplayed),o.setAttribute("aria-hidden","true"),o.setAttribute("id","loggedInNav"),o.appendChild(r),(s=document.createElement("button")).setAttribute("style",_e.headerUserMenuTrigger),s.type="button","string"==typeof(c=nu(t,n))?s.innerHTML=c:s.appendChild(c),(l=document.createElement("div")).setAttribute("style",_e.headerBannerUserMenuNotDisplayed),l.appendChild(s),l.appendChild(o),u=ql(function(e){return au(e,s,o)},50),s.addEventListener("click",u),p=setTimeout(function(){return null},0),l.addEventListener("mouseover",function(e){clearTimeout(p),u(e);var t=document.getElementById("loggedInNav");null==t||t.setAttribute("style",_e.headerUserMenuNavigationMenu)}),l.addEventListener("mouseout",function(e){p=setTimeout(function(){return u(e)},200);var t=document.getElementById("loggedInNav");null==t||t.setAttribute("style",_e.headerUserMenuNavigationMenuNotDisplayed)}),e.abrupt("return",l);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function tu(e){var t=document.createElement("li");return t.setAttribute("style",_e.headerUserMenuListItem),t.appendChild(e),t}function nu(e,t){var n=null;try{if(!(n=Tt(t)))return Pl}catch(e){return Pl}var a=document.createElement("div");return a.setAttribute("style",_e.headerUserMenuPhoto),a.style.backgroundImage="url(".concat(n,")"),a}function au(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()))}function iu(e,t){return ru.apply(this,arguments)}function ru(){return(ru=b(y().mark(function e(t,n){var a,i,r;return y().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=Ul(),e.next=2,Ml(i,t);case 2:r=e.sent,ou(a,t,i,r,n)(),w.authSession.events.on("login",ou(a,t,i,r,n)),w.authSession.events.on("logout",ou(a,t,i,r,n));case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}function ou(e,t,n,a,i){return b(y().mark(function r(){var o,s;return y().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return o=w.authn.currentUser(),e.innerHTML="",s=e,r.next=1,su(t,o,n,a,i);case 1:s.appendChild.call(s,r.sent);case 2:case"end":return r.stop()}},r)}))}function su(e,t,n,a,i){var r=document.createElement("div");if(!n||!a||t&&t.equals(a))return r;r.setAttribute("style",_e.footer);var o=document.createElement("span");o.innerText="You're visiting ";var s=document.createElement("a");s.href=n.uri,s.innerText="the Pod";var c=document.createElement("span");c.innerText=" controlled by ";var l=document.createElement("a");l.href=a.uri,l.innerText=function(e,t){return e.anyValue(t,v.vcard("fn"),null,t.doc())||e.anyValue(t,v.foaf("name"),null,t.doc())||t.uri}(e,a);var u=document.createElement("span");u.innerText=". For more info, check out ";var p=document.createElement("a");p.href=i&&i.solidProjectUrl?i.solidProjectUrl:"https://solidproject.org",p.innerText=i&&i.solidProjectName?i.solidProjectName:"solidproject.org";var d=document.createElement("span");return d.innerText=".",r.appendChild(o),r.appendChild(s),r.appendChild(c),r.appendChild(l),r.appendChild(u),r.appendChild(p),r.appendChild(d),r}var cu=window?window.document:null;"undefined"!=typeof window&&(window.UI={ns:v,acl:$i,aclControl:Qi,create:Ki,createTypes:d,dom:cu,icons:Re.Pt,language:n,log:e,login:o,matrix:Xi,media:ar,messageArea:Er,infiniteMessageArea:fl,pad:l,participation:c,preferences:u,style:_e,table:_l,tabs:p,utils:t,widgets:s,initHeader:Gl,initFooter:iu})})(),r})());
|
|
41
39
|
//# sourceMappingURL=solid-ui.min.js.map
|