fable 3.1.72 → 3.1.74

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.
Files changed (40) hide show
  1. package/docs/README.md +30 -6
  2. package/docs/_brand.json +18 -0
  3. package/docs/_playground.json +10 -0
  4. package/docs/_sidebar.md +2 -0
  5. package/docs/_version.json +3 -3
  6. package/docs/architecture.md +201 -39
  7. package/docs/index.html +6 -7
  8. package/docs/pict-docuserve.min.js +91 -0
  9. package/docs/pict-docuserve.min.js.map +1 -0
  10. package/docs/playground.md +38 -0
  11. package/docs/retold-catalog.json +1 -1
  12. package/docs/retold-keyword-index.json +8721 -8105
  13. package/docs/services/README.md +26 -9
  14. package/docs/services/anticipate.md +104 -40
  15. package/docs/services/csv-parser.md +63 -35
  16. package/docs/services/data-format.md +154 -49
  17. package/docs/services/data-generation.md +77 -16
  18. package/docs/services/dates.md +103 -36
  19. package/docs/services/environment-data.md +13 -2
  20. package/docs/services/expression-parser.md +280 -68
  21. package/docs/services/file-persistence.md +142 -150
  22. package/docs/services/logging.md +93 -37
  23. package/docs/services/logic.md +70 -22
  24. package/docs/services/manifest.md +114 -26
  25. package/docs/services/math.md +168 -63
  26. package/docs/services/meta-template.md +312 -158
  27. package/docs/services/object-cache.md +94 -11
  28. package/docs/services/operation.md +68 -6
  29. package/docs/services/progress-time.md +74 -13
  30. package/docs/services/progress-tracker-set.md +101 -3
  31. package/docs/services/rest-client.md +136 -104
  32. package/docs/services/settings-manager.md +133 -40
  33. package/docs/services/template.md +71 -22
  34. package/docs/services/utility.md +121 -29
  35. package/docs/services/uuid.md +58 -10
  36. package/package.json +2 -2
  37. package/source/services/Fable-Service-MetaTemplate/MetaTemplate-StringParser.js +6 -0
  38. package/test/MetaTemplating_tests.js +77 -0
  39. package/.claude/settings.local.json +0 -8
  40. package/docs/css/docuserve.css +0 -327
@@ -0,0 +1,91 @@
1
+ "use strict";function _defineProperty(t,e,o){return(e=_toPropertyKey(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function _toPropertyKey(t){var e=_toPrimitive(t,"string");return"symbol"==typeof e?e:e+""}function _toPrimitive(t,e){if("object"!=typeof t||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).PictDocuserve=t()}}(function(){return function t(e,o,n){function r(a,s){if(!o[a]){if(!e[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var d=o[a]={exports:{}};e[a][0].call(d.exports,function(t){return r(e[a][1][t]||t)},d,d.exports,t,e,o,n)}return o[a].exports}for(var i="function"==typeof require&&require,a=0;a<n.length;a++)r(n[a]);return r}({1:[function(t,e,o){e.exports={name:"fable-serviceproviderbase",version:"3.0.19",description:"Simple base classes for fable services.",main:"source/Fable-ServiceProviderBase.js",scripts:{start:"node source/Fable-ServiceProviderBase.js",test:"npx quack test",tests:"npx quack test -g",coverage:"npx quack coverage",build:"npx quack build",types:"tsc -p ./tsconfig.build.json",check:"tsc -p . --noEmit"},types:"types/source/Fable-ServiceProviderBase.d.ts",mocha:{diff:!0,extension:["js"],package:"./package.json",reporter:"spec",slow:"75",timeout:"5000",ui:"tdd","watch-files":["source/**/*.js","test/**/*.js"],"watch-ignore":["lib/vendor"]},repository:{type:"git",url:"https://github.com/stevenvelozo/fable-serviceproviderbase.git"},keywords:["entity","behavior"],author:"Steven Velozo <steven@velozo.com> (http://velozo.com/)",license:"MIT",bugs:{url:"https://github.com/stevenvelozo/fable-serviceproviderbase/issues"},homepage:"https://github.com/stevenvelozo/fable-serviceproviderbase",devDependencies:{"@types/mocha":"^10.0.10",fable:"^3.1.62",quackage:"^1.0.58",typescript:"^5.9.3"}}},{}],2:[function(t,e,o){const n=t("../package.json");class r{constructor(t,e,o){this.fable,this.UUID,this.options,this.services,this.servicesMap,"object"==typeof t&&t.isFable?this.connectFable(t):this.fable=!1,this._PackageFableServiceProvider=n,this.fable?(this.UUID=t.getUUID(),this.options="object"==typeof e?e:{}):(this.options="object"!=typeof t||t.isFable?"object"==typeof e?e:{}:t,this.UUID="CORE-SVC-".concat(Math.floor(89999*Math.random()+1e4))),this.serviceType="Unknown-".concat(this.UUID),this.Hash="string"==typeof o?o:this.fable||"string"!=typeof e?"".concat(this.UUID):e}connectFable(t){if("object"!=typeof t||!t.isFable){let e="Fable Service Provider Base: Cannot connect to Fable, invalid Fable object passed in. The pFable parameter was a [".concat(typeof t,"].}");return console.log(e),new Error(e)}return this.fable||(this.fable=t),this.log||(this.log=this.fable.Logging),this.services||(this.services=this.fable.services),this.servicesMap||(this.servicesMap=this.fable.servicesMap),!0}}_defineProperty(r,"isFableService",!0),e.exports=r,e.exports.CoreServiceProviderBase=r},{"../package.json":1}],3:[function(t,e,o){!function(){var t,n,r,i,a,s,l,c,d,p,h,u,m,g,f,b,v,y,w,D,x,C,S,T,A,k,P,F,L,_,B,M=function(t){var e=new M.Builder;return e.pipeline.add(M.trimmer,M.stopWordFilter,M.stemmer),e.searchPipeline.add(M.stemmer),t.call(e,e),e.build()};M.version="2.3.9",
2
+ /*!
3
+ * lunr.utils
4
+ * Copyright (C) 2020 Oliver Nightingale
5
+ */
6
+ M.utils={},M.utils.warn=function(t){return function(e){t.console&&console.warn&&console.warn(e)}}(this),M.utils.asString=function(t){return null==t?"":t.toString()},M.utils.clone=function(t){if(null==t)return t;for(var e=Object.create(null),o=Object.keys(t),n=0;n<o.length;n++){var r=o[n],i=t[r];if(Array.isArray(i))e[r]=i.slice();else{if("string"!=typeof i&&"number"!=typeof i&&"boolean"!=typeof i)throw new TypeError("clone is not deep and does not support nested objects");e[r]=i}}return e},M.FieldRef=function(t,e,o){this.docRef=t,this.fieldName=e,this._stringValue=o},M.FieldRef.joiner="/",M.FieldRef.fromString=function(t){var e=t.indexOf(M.FieldRef.joiner);if(-1===e)throw"malformed field ref string";var o=t.slice(0,e),n=t.slice(e+1);return new M.FieldRef(n,o,t)},M.FieldRef.prototype.toString=function(){return null==this._stringValue&&(this._stringValue=this.fieldName+M.FieldRef.joiner+this.docRef),this._stringValue},
7
+ /*!
8
+ * lunr.Set
9
+ * Copyright (C) 2020 Oliver Nightingale
10
+ */
11
+ M.Set=function(t){if(this.elements=Object.create(null),t){this.length=t.length;for(var e=0;e<this.length;e++)this.elements[t[e]]=!0}else this.length=0},M.Set.complete={intersect:function(t){return t},union:function(){return this},contains:function(){return!0}},M.Set.empty={intersect:function(){return this},union:function(t){return t},contains:function(){return!1}},M.Set.prototype.contains=function(t){return!!this.elements[t]},M.Set.prototype.intersect=function(t){var e,o,n,r=[];if(t===M.Set.complete)return this;if(t===M.Set.empty)return t;this.length<t.length?(e=this,o=t):(e=t,o=this),n=Object.keys(e.elements);for(var i=0;i<n.length;i++){var a=n[i];a in o.elements&&r.push(a)}return new M.Set(r)},M.Set.prototype.union=function(t){return t===M.Set.complete?M.Set.complete:t===M.Set.empty?this:new M.Set(Object.keys(this.elements).concat(Object.keys(t.elements)))},M.idf=function(t,e){var o=0;for(var n in t)"_index"!=n&&(o+=Object.keys(t[n]).length);var r=(e-o+.5)/(o+.5);return Math.log(1+Math.abs(r))},M.Token=function(t,e){this.str=t||"",this.metadata=e||{}},M.Token.prototype.toString=function(){return this.str},M.Token.prototype.update=function(t){return this.str=t(this.str,this.metadata),this},M.Token.prototype.clone=function(t){return t=t||function(t){return t},new M.Token(t(this.str,this.metadata),this.metadata)},
12
+ /*!
13
+ * lunr.tokenizer
14
+ * Copyright (C) 2020 Oliver Nightingale
15
+ */
16
+ M.tokenizer=function(t,e){if(null==t||null==t)return[];if(Array.isArray(t))return t.map(function(t){return new M.Token(M.utils.asString(t).toLowerCase(),M.utils.clone(e))});for(var o=t.toString().toLowerCase(),n=o.length,r=[],i=0,a=0;i<=n;i++){var s=i-a;if(o.charAt(i).match(M.tokenizer.separator)||i==n){if(s>0){var l=M.utils.clone(e)||{};l.position=[a,s],l.index=r.length,r.push(new M.Token(o.slice(a,i),l))}a=i+1}}return r},M.tokenizer.separator=/[\s\-]+/,
17
+ /*!
18
+ * lunr.Pipeline
19
+ * Copyright (C) 2020 Oliver Nightingale
20
+ */
21
+ M.Pipeline=function(){this._stack=[]},M.Pipeline.registeredFunctions=Object.create(null),M.Pipeline.registerFunction=function(t,e){e in this.registeredFunctions&&M.utils.warn("Overwriting existing registered function: "+e),t.label=e,M.Pipeline.registeredFunctions[t.label]=t},M.Pipeline.warnIfFunctionNotRegistered=function(t){t.label&&t.label in this.registeredFunctions||M.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",t)},M.Pipeline.load=function(t){var e=new M.Pipeline;return t.forEach(function(t){var o=M.Pipeline.registeredFunctions[t];if(!o)throw new Error("Cannot load unregistered function: "+t);e.add(o)}),e},M.Pipeline.prototype.add=function(){Array.prototype.slice.call(arguments).forEach(function(t){M.Pipeline.warnIfFunctionNotRegistered(t),this._stack.push(t)},this)},M.Pipeline.prototype.after=function(t,e){M.Pipeline.warnIfFunctionNotRegistered(e);var o=this._stack.indexOf(t);if(-1==o)throw new Error("Cannot find existingFn");o+=1,this._stack.splice(o,0,e)},M.Pipeline.prototype.before=function(t,e){M.Pipeline.warnIfFunctionNotRegistered(e);var o=this._stack.indexOf(t);if(-1==o)throw new Error("Cannot find existingFn");this._stack.splice(o,0,e)},M.Pipeline.prototype.remove=function(t){var e=this._stack.indexOf(t);-1!=e&&this._stack.splice(e,1)},M.Pipeline.prototype.run=function(t){for(var e=this._stack.length,o=0;o<e;o++){for(var n=this._stack[o],r=[],i=0;i<t.length;i++){var a=n(t[i],i,t);if(null!=a&&""!==a)if(Array.isArray(a))for(var s=0;s<a.length;s++)r.push(a[s]);else r.push(a)}t=r}return t},M.Pipeline.prototype.runString=function(t,e){var o=new M.Token(t,e);return this.run([o]).map(function(t){return t.toString()})},M.Pipeline.prototype.reset=function(){this._stack=[]},M.Pipeline.prototype.toJSON=function(){return this._stack.map(function(t){return M.Pipeline.warnIfFunctionNotRegistered(t),t.label})},
22
+ /*!
23
+ * lunr.Vector
24
+ * Copyright (C) 2020 Oliver Nightingale
25
+ */
26
+ M.Vector=function(t){this._magnitude=0,this.elements=t||[]},M.Vector.prototype.positionForIndex=function(t){if(0==this.elements.length)return 0;for(var e=0,o=this.elements.length/2,n=o-e,r=Math.floor(n/2),i=this.elements[2*r];n>1&&(i<t&&(e=r),i>t&&(o=r),i!=t);)n=o-e,r=e+Math.floor(n/2),i=this.elements[2*r];return i==t||i>t?2*r:i<t?2*(r+1):void 0},M.Vector.prototype.insert=function(t,e){this.upsert(t,e,function(){throw"duplicate index"})},M.Vector.prototype.upsert=function(t,e,o){this._magnitude=0;var n=this.positionForIndex(t);this.elements[n]==t?this.elements[n+1]=o(this.elements[n+1],e):this.elements.splice(n,0,t,e)},M.Vector.prototype.magnitude=function(){if(this._magnitude)return this._magnitude;for(var t=0,e=this.elements.length,o=1;o<e;o+=2){var n=this.elements[o];t+=n*n}return this._magnitude=Math.sqrt(t)},M.Vector.prototype.dot=function(t){for(var e=0,o=this.elements,n=t.elements,r=o.length,i=n.length,a=0,s=0,l=0,c=0;l<r&&c<i;)(a=o[l])<(s=n[c])?l+=2:a>s?c+=2:a==s&&(e+=o[l+1]*n[c+1],l+=2,c+=2);return e},M.Vector.prototype.similarity=function(t){return this.dot(t)/this.magnitude()||0},M.Vector.prototype.toArray=function(){for(var t=new Array(this.elements.length/2),e=1,o=0;e<this.elements.length;e+=2,o++)t[o]=this.elements[e];return t},M.Vector.prototype.toJSON=function(){return this.elements},
27
+ /*!
28
+ * lunr.stemmer
29
+ * Copyright (C) 2020 Oliver Nightingale
30
+ * Includes code from - http://tartarus.org/~martin/PorterStemmer/js.txt
31
+ */
32
+ M.stemmer=(t={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},n={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},s="^("+(i="[^aeiou][^aeiouy]*")+")?"+(a=(r="[aeiouy]")+"[aeiou]*")+i+"("+a+")?$",l="^("+i+")?"+a+i+a+i,c="^("+i+")?"+r,d=new RegExp("^("+i+")?"+a+i),p=new RegExp(l),h=new RegExp(s),u=new RegExp(c),m=/^(.+?)(ss|i)es$/,g=/^(.+?)([^s])s$/,f=/^(.+?)eed$/,b=/^(.+?)(ed|ing)$/,v=/.$/,y=/(at|bl|iz)$/,w=new RegExp("([^aeiouylsz])\\1$"),D=new RegExp("^"+i+r+"[^aeiouwxy]$"),x=/^(.+?[^aeiou])y$/,C=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,S=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,T=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,A=/^(.+?)(s|t)(ion)$/,k=/^(.+?)e$/,P=/ll$/,F=new RegExp("^"+i+r+"[^aeiouwxy]$"),L=function(e){var o,r,i,a,s,l,c;if(e.length<3)return e;if("y"==(i=e.substr(0,1))&&(e=i.toUpperCase()+e.substr(1)),s=g,(a=m).test(e)?e=e.replace(a,"$1$2"):s.test(e)&&(e=e.replace(s,"$1$2")),s=b,(a=f).test(e)){var L=a.exec(e);(a=d).test(L[1])&&(a=v,e=e.replace(a,""))}else s.test(e)&&(o=(L=s.exec(e))[1],(s=u).test(o)&&(l=w,c=D,(s=y).test(e=o)?e+="e":l.test(e)?(a=v,e=e.replace(a,"")):c.test(e)&&(e+="e")));return(a=x).test(e)&&(e=(o=(L=a.exec(e))[1])+"i"),(a=C).test(e)&&(o=(L=a.exec(e))[1],r=L[2],(a=d).test(o)&&(e=o+t[r])),(a=S).test(e)&&(o=(L=a.exec(e))[1],r=L[2],(a=d).test(o)&&(e=o+n[r])),s=A,(a=T).test(e)?(o=(L=a.exec(e))[1],(a=p).test(o)&&(e=o)):s.test(e)&&(o=(L=s.exec(e))[1]+L[2],(s=p).test(o)&&(e=o)),(a=k).test(e)&&(o=(L=a.exec(e))[1],s=h,l=F,((a=p).test(o)||s.test(o)&&!l.test(o))&&(e=o)),s=p,(a=P).test(e)&&s.test(e)&&(a=v,e=e.replace(a,"")),"y"==i&&(e=i.toLowerCase()+e.substr(1)),e},function(t){return t.update(L)}),M.Pipeline.registerFunction(M.stemmer,"stemmer"),
33
+ /*!
34
+ * lunr.stopWordFilter
35
+ * Copyright (C) 2020 Oliver Nightingale
36
+ */
37
+ M.generateStopWordFilter=function(t){var e=t.reduce(function(t,e){return t[e]=e,t},{});return function(t){if(t&&e[t.toString()]!==t.toString())return t}},M.stopWordFilter=M.generateStopWordFilter(["a","able","about","across","after","all","almost","also","am","among","an","and","any","are","as","at","be","because","been","but","by","can","cannot","could","dear","did","do","does","either","else","ever","every","for","from","get","got","had","has","have","he","her","hers","him","his","how","however","i","if","in","into","is","it","its","just","least","let","like","likely","may","me","might","most","must","my","neither","no","nor","not","of","off","often","on","only","or","other","our","own","rather","said","say","says","she","should","since","so","some","than","that","the","their","them","then","there","these","they","this","tis","to","too","twas","us","wants","was","we","were","what","when","where","which","while","who","whom","why","will","with","would","yet","you","your"]),M.Pipeline.registerFunction(M.stopWordFilter,"stopWordFilter"),
38
+ /*!
39
+ * lunr.trimmer
40
+ * Copyright (C) 2020 Oliver Nightingale
41
+ */
42
+ M.trimmer=function(t){return t.update(function(t){return t.replace(/^\W+/,"").replace(/\W+$/,"")})},M.Pipeline.registerFunction(M.trimmer,"trimmer"),
43
+ /*!
44
+ * lunr.TokenSet
45
+ * Copyright (C) 2020 Oliver Nightingale
46
+ */
47
+ M.TokenSet=function(){this.final=!1,this.edges={},this.id=M.TokenSet._nextId,M.TokenSet._nextId+=1},M.TokenSet._nextId=1,M.TokenSet.fromArray=function(t){for(var e=new M.TokenSet.Builder,o=0,n=t.length;o<n;o++)e.insert(t[o]);return e.finish(),e.root},M.TokenSet.fromClause=function(t){return"editDistance"in t?M.TokenSet.fromFuzzyString(t.term,t.editDistance):M.TokenSet.fromString(t.term)},M.TokenSet.fromFuzzyString=function(t,e){for(var o=new M.TokenSet,n=[{node:o,editsRemaining:e,str:t}];n.length;){var r=n.pop();if(r.str.length>0){var i,a=r.str.charAt(0);a in r.node.edges?i=r.node.edges[a]:(i=new M.TokenSet,r.node.edges[a]=i),1==r.str.length&&(i.final=!0),n.push({node:i,editsRemaining:r.editsRemaining,str:r.str.slice(1)})}if(0!=r.editsRemaining){if("*"in r.node.edges)var s=r.node.edges["*"];else{s=new M.TokenSet;r.node.edges["*"]=s}if(0==r.str.length&&(s.final=!0),n.push({node:s,editsRemaining:r.editsRemaining-1,str:r.str}),r.str.length>1&&n.push({node:r.node,editsRemaining:r.editsRemaining-1,str:r.str.slice(1)}),1==r.str.length&&(r.node.final=!0),r.str.length>=1){if("*"in r.node.edges)var l=r.node.edges["*"];else{l=new M.TokenSet;r.node.edges["*"]=l}1==r.str.length&&(l.final=!0),n.push({node:l,editsRemaining:r.editsRemaining-1,str:r.str.slice(1)})}if(r.str.length>1){var c,d=r.str.charAt(0),p=r.str.charAt(1);p in r.node.edges?c=r.node.edges[p]:(c=new M.TokenSet,r.node.edges[p]=c),1==r.str.length&&(c.final=!0),n.push({node:c,editsRemaining:r.editsRemaining-1,str:d+r.str.slice(2)})}}}return o},M.TokenSet.fromString=function(t){for(var e=new M.TokenSet,o=e,n=0,r=t.length;n<r;n++){var i=t[n],a=n==r-1;if("*"==i)e.edges[i]=e,e.final=a;else{var s=new M.TokenSet;s.final=a,e.edges[i]=s,e=s}}return o},M.TokenSet.prototype.toArray=function(){for(var t=[],e=[{prefix:"",node:this}];e.length;){var o=e.pop(),n=Object.keys(o.node.edges),r=n.length;o.node.final&&(o.prefix.charAt(0),t.push(o.prefix));for(var i=0;i<r;i++){var a=n[i];e.push({prefix:o.prefix.concat(a),node:o.node.edges[a]})}}return t},M.TokenSet.prototype.toString=function(){if(this._str)return this._str;for(var t=this.final?"1":"0",e=Object.keys(this.edges).sort(),o=e.length,n=0;n<o;n++){var r=e[n];t=t+r+this.edges[r].id}return t},M.TokenSet.prototype.intersect=function(t){for(var e=new M.TokenSet,o=void 0,n=[{qNode:t,output:e,node:this}];n.length;){o=n.pop();for(var r=Object.keys(o.qNode.edges),i=r.length,a=Object.keys(o.node.edges),s=a.length,l=0;l<i;l++)for(var c=r[l],d=0;d<s;d++){var p=a[d];if(p==c||"*"==c){var h=o.node.edges[p],u=o.qNode.edges[c],m=h.final&&u.final,g=void 0;p in o.output.edges?(g=o.output.edges[p]).final=g.final||m:((g=new M.TokenSet).final=m,o.output.edges[p]=g),n.push({qNode:u,output:g,node:h})}}}return e},M.TokenSet.Builder=function(){this.previousWord="",this.root=new M.TokenSet,this.uncheckedNodes=[],this.minimizedNodes={}},M.TokenSet.Builder.prototype.insert=function(t){var e,o=0;if(t<this.previousWord)throw new Error("Out of order word insertion");for(var n=0;n<t.length&&n<this.previousWord.length&&t[n]==this.previousWord[n];n++)o++;this.minimize(o),e=0==this.uncheckedNodes.length?this.root:this.uncheckedNodes[this.uncheckedNodes.length-1].child;for(n=o;n<t.length;n++){var r=new M.TokenSet,i=t[n];e.edges[i]=r,this.uncheckedNodes.push({parent:e,char:i,child:r}),e=r}e.final=!0,this.previousWord=t},M.TokenSet.Builder.prototype.finish=function(){this.minimize(0)},M.TokenSet.Builder.prototype.minimize=function(t){for(var e=this.uncheckedNodes.length-1;e>=t;e--){var o=this.uncheckedNodes[e],n=o.child.toString();n in this.minimizedNodes?o.parent.edges[o.char]=this.minimizedNodes[n]:(o.child._str=n,this.minimizedNodes[n]=o.child),this.uncheckedNodes.pop()}},
48
+ /*!
49
+ * lunr.Index
50
+ * Copyright (C) 2020 Oliver Nightingale
51
+ */
52
+ M.Index=function(t){this.invertedIndex=t.invertedIndex,this.fieldVectors=t.fieldVectors,this.tokenSet=t.tokenSet,this.fields=t.fields,this.pipeline=t.pipeline},M.Index.prototype.search=function(t){return this.query(function(e){new M.QueryParser(t,e).parse()})},M.Index.prototype.query=function(t){for(var e=new M.Query(this.fields),o=Object.create(null),n=Object.create(null),r=Object.create(null),i=Object.create(null),a=Object.create(null),s=0;s<this.fields.length;s++)n[this.fields[s]]=new M.Vector;t.call(e,e);for(s=0;s<e.clauses.length;s++){var l=e.clauses[s],c=null,d=M.Set.empty;c=l.usePipeline?this.pipeline.runString(l.term,{fields:l.fields}):[l.term];for(var p=0;p<c.length;p++){var h=c[p];l.term=h;var u=M.TokenSet.fromClause(l),m=this.tokenSet.intersect(u).toArray();if(0===m.length&&l.presence===M.Query.presence.REQUIRED){for(var g=0;g<l.fields.length;g++){i[_=l.fields[g]]=M.Set.empty}break}for(var f=0;f<m.length;f++){var b=m[f],v=this.invertedIndex[b],y=v._index;for(g=0;g<l.fields.length;g++){var w=v[_=l.fields[g]],D=Object.keys(w),x=b+"/"+_,C=new M.Set(D);if(l.presence==M.Query.presence.REQUIRED&&(d=d.union(C),void 0===i[_]&&(i[_]=M.Set.complete)),l.presence!=M.Query.presence.PROHIBITED){if(n[_].upsert(y,l.boost,function(t,e){return t+e}),!r[x]){for(var S=0;S<D.length;S++){var T,A=D[S],k=new M.FieldRef(A,_),P=w[A];void 0===(T=o[k])?o[k]=new M.MatchData(b,_,P):T.add(b,_,P)}r[x]=!0}}else void 0===a[_]&&(a[_]=M.Set.empty),a[_]=a[_].union(C)}}}if(l.presence===M.Query.presence.REQUIRED)for(g=0;g<l.fields.length;g++){i[_=l.fields[g]]=i[_].intersect(d)}}var F=M.Set.complete,L=M.Set.empty;for(s=0;s<this.fields.length;s++){var _;i[_=this.fields[s]]&&(F=F.intersect(i[_])),a[_]&&(L=L.union(a[_]))}var B=Object.keys(o),E=[],H=Object.create(null);if(e.isNegated()){B=Object.keys(this.fieldVectors);for(s=0;s<B.length;s++){k=B[s];var I=M.FieldRef.fromString(k);o[k]=new M.MatchData}}for(s=0;s<B.length;s++){var R=(I=M.FieldRef.fromString(B[s])).docRef;if(F.contains(R)&&!L.contains(R)){var V,N=this.fieldVectors[I],z=n[I.fieldName].similarity(N);if(void 0!==(V=H[R]))V.score+=z,V.matchData.combine(o[I]);else{var j={ref:R,score:z,matchData:o[I]};H[R]=j,E.push(j)}}}return E.sort(function(t,e){return e.score-t.score})},M.Index.prototype.toJSON=function(){var t=Object.keys(this.invertedIndex).sort().map(function(t){return[t,this.invertedIndex[t]]},this),e=Object.keys(this.fieldVectors).map(function(t){return[t,this.fieldVectors[t].toJSON()]},this);return{version:M.version,fields:this.fields,fieldVectors:e,invertedIndex:t,pipeline:this.pipeline.toJSON()}},M.Index.load=function(t){var e={},o={},n=t.fieldVectors,r=Object.create(null),i=t.invertedIndex,a=new M.TokenSet.Builder,s=M.Pipeline.load(t.pipeline);t.version!=M.version&&M.utils.warn("Version mismatch when loading serialised index. Current version of lunr '"+M.version+"' does not match serialized index '"+t.version+"'");for(var l=0;l<n.length;l++){var c=(p=n[l])[0],d=p[1];o[c]=new M.Vector(d)}for(l=0;l<i.length;l++){var p,h=(p=i[l])[0],u=p[1];a.insert(h),r[h]=u}return a.finish(),e.fields=t.fields,e.fieldVectors=o,e.invertedIndex=r,e.tokenSet=a.root,e.pipeline=s,new M.Index(e)},
53
+ /*!
54
+ * lunr.Builder
55
+ * Copyright (C) 2020 Oliver Nightingale
56
+ */
57
+ M.Builder=function(){this._ref="id",this._fields=Object.create(null),this._documents=Object.create(null),this.invertedIndex=Object.create(null),this.fieldTermFrequencies={},this.fieldLengths={},this.tokenizer=M.tokenizer,this.pipeline=new M.Pipeline,this.searchPipeline=new M.Pipeline,this.documentCount=0,this._b=.75,this._k1=1.2,this.termIndex=0,this.metadataWhitelist=[]},M.Builder.prototype.ref=function(t){this._ref=t},M.Builder.prototype.field=function(t,e){if(/\//.test(t))throw new RangeError("Field '"+t+"' contains illegal character '/'");this._fields[t]=e||{}},M.Builder.prototype.b=function(t){this._b=t<0?0:t>1?1:t},M.Builder.prototype.k1=function(t){this._k1=t},M.Builder.prototype.add=function(t,e){var o=t[this._ref],n=Object.keys(this._fields);this._documents[o]=e||{},this.documentCount+=1;for(var r=0;r<n.length;r++){var i=n[r],a=this._fields[i].extractor,s=a?a(t):t[i],l=this.tokenizer(s,{fields:[i]}),c=this.pipeline.run(l),d=new M.FieldRef(o,i),p=Object.create(null);this.fieldTermFrequencies[d]=p,this.fieldLengths[d]=0,this.fieldLengths[d]+=c.length;for(var h=0;h<c.length;h++){var u=c[h];if(null==p[u]&&(p[u]=0),p[u]+=1,null==this.invertedIndex[u]){var m=Object.create(null);m._index=this.termIndex,this.termIndex+=1;for(var g=0;g<n.length;g++)m[n[g]]=Object.create(null);this.invertedIndex[u]=m}null==this.invertedIndex[u][i][o]&&(this.invertedIndex[u][i][o]=Object.create(null));for(var f=0;f<this.metadataWhitelist.length;f++){var b=this.metadataWhitelist[f],v=u.metadata[b];null==this.invertedIndex[u][i][o][b]&&(this.invertedIndex[u][i][o][b]=[]),this.invertedIndex[u][i][o][b].push(v)}}}},M.Builder.prototype.calculateAverageFieldLengths=function(){for(var t=Object.keys(this.fieldLengths),e=t.length,o={},n={},r=0;r<e;r++){var i=M.FieldRef.fromString(t[r]),a=i.fieldName;n[a]||(n[a]=0),n[a]+=1,o[a]||(o[a]=0),o[a]+=this.fieldLengths[i]}var s=Object.keys(this._fields);for(r=0;r<s.length;r++){var l=s[r];o[l]=o[l]/n[l]}this.averageFieldLength=o},M.Builder.prototype.createFieldVectors=function(){for(var t={},e=Object.keys(this.fieldTermFrequencies),o=e.length,n=Object.create(null),r=0;r<o;r++){for(var i=M.FieldRef.fromString(e[r]),a=i.fieldName,s=this.fieldLengths[i],l=new M.Vector,c=this.fieldTermFrequencies[i],d=Object.keys(c),p=d.length,h=this._fields[a].boost||1,u=this._documents[i.docRef].boost||1,m=0;m<p;m++){var g,f,b,v=d[m],y=c[v],w=this.invertedIndex[v]._index;void 0===n[v]?(g=M.idf(this.invertedIndex[v],this.documentCount),n[v]=g):g=n[v],f=g*((this._k1+1)*y)/(this._k1*(1-this._b+this._b*(s/this.averageFieldLength[a]))+y),f*=h,f*=u,b=Math.round(1e3*f)/1e3,l.insert(w,b)}t[i]=l}this.fieldVectors=t},M.Builder.prototype.createTokenSet=function(){this.tokenSet=M.TokenSet.fromArray(Object.keys(this.invertedIndex).sort())},M.Builder.prototype.build=function(){return this.calculateAverageFieldLengths(),this.createFieldVectors(),this.createTokenSet(),new M.Index({invertedIndex:this.invertedIndex,fieldVectors:this.fieldVectors,tokenSet:this.tokenSet,fields:Object.keys(this._fields),pipeline:this.searchPipeline})},M.Builder.prototype.use=function(t){var e=Array.prototype.slice.call(arguments,1);e.unshift(this),t.apply(this,e)},M.MatchData=function(t,e,o){for(var n=Object.create(null),r=Object.keys(o||{}),i=0;i<r.length;i++){var a=r[i];n[a]=o[a].slice()}this.metadata=Object.create(null),void 0!==t&&(this.metadata[t]=Object.create(null),this.metadata[t][e]=n)},M.MatchData.prototype.combine=function(t){for(var e=Object.keys(t.metadata),o=0;o<e.length;o++){var n=e[o],r=Object.keys(t.metadata[n]);null==this.metadata[n]&&(this.metadata[n]=Object.create(null));for(var i=0;i<r.length;i++){var a=r[i],s=Object.keys(t.metadata[n][a]);null==this.metadata[n][a]&&(this.metadata[n][a]=Object.create(null));for(var l=0;l<s.length;l++){var c=s[l];null==this.metadata[n][a][c]?this.metadata[n][a][c]=t.metadata[n][a][c]:this.metadata[n][a][c]=this.metadata[n][a][c].concat(t.metadata[n][a][c])}}}},M.MatchData.prototype.add=function(t,e,o){if(!(t in this.metadata))return this.metadata[t]=Object.create(null),void(this.metadata[t][e]=o);if(e in this.metadata[t])for(var n=Object.keys(o),r=0;r<n.length;r++){var i=n[r];i in this.metadata[t][e]?this.metadata[t][e][i]=this.metadata[t][e][i].concat(o[i]):this.metadata[t][e][i]=o[i]}else this.metadata[t][e]=o},M.Query=function(t){this.clauses=[],this.allFields=t},M.Query.wildcard=new String("*"),M.Query.wildcard.NONE=0,M.Query.wildcard.LEADING=1,M.Query.wildcard.TRAILING=2,M.Query.presence={OPTIONAL:1,REQUIRED:2,PROHIBITED:3},M.Query.prototype.clause=function(t){return"fields"in t||(t.fields=this.allFields),"boost"in t||(t.boost=1),"usePipeline"in t||(t.usePipeline=!0),"wildcard"in t||(t.wildcard=M.Query.wildcard.NONE),t.wildcard&M.Query.wildcard.LEADING&&t.term.charAt(0)!=M.Query.wildcard&&(t.term="*"+t.term),t.wildcard&M.Query.wildcard.TRAILING&&t.term.slice(-1)!=M.Query.wildcard&&(t.term=t.term+"*"),"presence"in t||(t.presence=M.Query.presence.OPTIONAL),this.clauses.push(t),this},M.Query.prototype.isNegated=function(){for(var t=0;t<this.clauses.length;t++)if(this.clauses[t].presence!=M.Query.presence.PROHIBITED)return!1;return!0},M.Query.prototype.term=function(t,e){if(Array.isArray(t))return t.forEach(function(t){this.term(t,M.utils.clone(e))},this),this;var o=e||{};return o.term=t.toString(),this.clause(o),this},M.QueryParseError=function(t,e,o){this.name="QueryParseError",this.message=t,this.start=e,this.end=o},M.QueryParseError.prototype=new Error,M.QueryLexer=function(t){this.lexemes=[],this.str=t,this.length=t.length,this.pos=0,this.start=0,this.escapeCharPositions=[]},M.QueryLexer.prototype.run=function(){for(var t=M.QueryLexer.lexText;t;)t=t(this)},M.QueryLexer.prototype.sliceString=function(){for(var t=[],e=this.start,o=this.pos,n=0;n<this.escapeCharPositions.length;n++)o=this.escapeCharPositions[n],t.push(this.str.slice(e,o)),e=o+1;return t.push(this.str.slice(e,this.pos)),this.escapeCharPositions.length=0,t.join("")},M.QueryLexer.prototype.emit=function(t){this.lexemes.push({type:t,str:this.sliceString(),start:this.start,end:this.pos}),this.start=this.pos},M.QueryLexer.prototype.escapeCharacter=function(){this.escapeCharPositions.push(this.pos-1),this.pos+=1},M.QueryLexer.prototype.next=function(){if(this.pos>=this.length)return M.QueryLexer.EOS;var t=this.str.charAt(this.pos);return this.pos+=1,t},M.QueryLexer.prototype.width=function(){return this.pos-this.start},M.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},M.QueryLexer.prototype.backup=function(){this.pos-=1},M.QueryLexer.prototype.acceptDigitRun=function(){var t,e;do{e=(t=this.next()).charCodeAt(0)}while(e>47&&e<58);t!=M.QueryLexer.EOS&&this.backup()},M.QueryLexer.prototype.more=function(){return this.pos<this.length},M.QueryLexer.EOS="EOS",M.QueryLexer.FIELD="FIELD",M.QueryLexer.TERM="TERM",M.QueryLexer.EDIT_DISTANCE="EDIT_DISTANCE",M.QueryLexer.BOOST="BOOST",M.QueryLexer.PRESENCE="PRESENCE",M.QueryLexer.lexField=function(t){return t.backup(),t.emit(M.QueryLexer.FIELD),t.ignore(),M.QueryLexer.lexText},M.QueryLexer.lexTerm=function(t){if(t.width()>1&&(t.backup(),t.emit(M.QueryLexer.TERM)),t.ignore(),t.more())return M.QueryLexer.lexText},M.QueryLexer.lexEditDistance=function(t){return t.ignore(),t.acceptDigitRun(),t.emit(M.QueryLexer.EDIT_DISTANCE),M.QueryLexer.lexText},M.QueryLexer.lexBoost=function(t){return t.ignore(),t.acceptDigitRun(),t.emit(M.QueryLexer.BOOST),M.QueryLexer.lexText},M.QueryLexer.lexEOS=function(t){t.width()>0&&t.emit(M.QueryLexer.TERM)},M.QueryLexer.termSeparator=M.tokenizer.separator,M.QueryLexer.lexText=function(t){for(;;){var e=t.next();if(e==M.QueryLexer.EOS)return M.QueryLexer.lexEOS;if(92!=e.charCodeAt(0)){if(":"==e)return M.QueryLexer.lexField;if("~"==e)return t.backup(),t.width()>0&&t.emit(M.QueryLexer.TERM),M.QueryLexer.lexEditDistance;if("^"==e)return t.backup(),t.width()>0&&t.emit(M.QueryLexer.TERM),M.QueryLexer.lexBoost;if("+"==e&&1===t.width())return t.emit(M.QueryLexer.PRESENCE),M.QueryLexer.lexText;if("-"==e&&1===t.width())return t.emit(M.QueryLexer.PRESENCE),M.QueryLexer.lexText;if(e.match(M.QueryLexer.termSeparator))return M.QueryLexer.lexTerm}else t.escapeCharacter()}},M.QueryParser=function(t,e){this.lexer=new M.QueryLexer(t),this.query=e,this.currentClause={},this.lexemeIdx=0},M.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var t=M.QueryParser.parseClause;t;)t=t(this);return this.query},M.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},M.QueryParser.prototype.consumeLexeme=function(){var t=this.peekLexeme();return this.lexemeIdx+=1,t},M.QueryParser.prototype.nextClause=function(){var t=this.currentClause;this.query.clause(t),this.currentClause={}},M.QueryParser.parseClause=function(t){var e=t.peekLexeme();if(null!=e)switch(e.type){case M.QueryLexer.PRESENCE:return M.QueryParser.parsePresence;case M.QueryLexer.FIELD:return M.QueryParser.parseField;case M.QueryLexer.TERM:return M.QueryParser.parseTerm;default:var o="expected either a field or a term, found "+e.type;throw e.str.length>=1&&(o+=" with value '"+e.str+"'"),new M.QueryParseError(o,e.start,e.end)}},M.QueryParser.parsePresence=function(t){var e=t.consumeLexeme();if(null!=e){switch(e.str){case"-":t.currentClause.presence=M.Query.presence.PROHIBITED;break;case"+":t.currentClause.presence=M.Query.presence.REQUIRED;break;default:var o="unrecognised presence operator'"+e.str+"'";throw new M.QueryParseError(o,e.start,e.end)}var n=t.peekLexeme();if(null==n){o="expecting term or field, found nothing";throw new M.QueryParseError(o,e.start,e.end)}switch(n.type){case M.QueryLexer.FIELD:return M.QueryParser.parseField;case M.QueryLexer.TERM:return M.QueryParser.parseTerm;default:o="expecting term or field, found '"+n.type+"'";throw new M.QueryParseError(o,n.start,n.end)}}},M.QueryParser.parseField=function(t){var e=t.consumeLexeme();if(null!=e){if(-1==t.query.allFields.indexOf(e.str)){var o=t.query.allFields.map(function(t){return"'"+t+"'"}).join(", "),n="unrecognised field '"+e.str+"', possible fields: "+o;throw new M.QueryParseError(n,e.start,e.end)}t.currentClause.fields=[e.str];var r=t.peekLexeme();if(null==r){n="expecting term, found nothing";throw new M.QueryParseError(n,e.start,e.end)}if(r.type===M.QueryLexer.TERM)return M.QueryParser.parseTerm;n="expecting term, found '"+r.type+"'";throw new M.QueryParseError(n,r.start,r.end)}},M.QueryParser.parseTerm=function(t){var e=t.consumeLexeme();if(null!=e){t.currentClause.term=e.str.toLowerCase(),-1!=e.str.indexOf("*")&&(t.currentClause.usePipeline=!1);var o=t.peekLexeme();if(null!=o)switch(o.type){case M.QueryLexer.TERM:return t.nextClause(),M.QueryParser.parseTerm;case M.QueryLexer.FIELD:return t.nextClause(),M.QueryParser.parseField;case M.QueryLexer.EDIT_DISTANCE:return M.QueryParser.parseEditDistance;case M.QueryLexer.BOOST:return M.QueryParser.parseBoost;case M.QueryLexer.PRESENCE:return t.nextClause(),M.QueryParser.parsePresence;default:var n="Unexpected lexeme type '"+o.type+"'";throw new M.QueryParseError(n,o.start,o.end)}else t.nextClause()}},M.QueryParser.parseEditDistance=function(t){var e=t.consumeLexeme();if(null!=e){var o=parseInt(e.str,10);if(isNaN(o)){var n="edit distance must be numeric";throw new M.QueryParseError(n,e.start,e.end)}t.currentClause.editDistance=o;var r=t.peekLexeme();if(null!=r)switch(r.type){case M.QueryLexer.TERM:return t.nextClause(),M.QueryParser.parseTerm;case M.QueryLexer.FIELD:return t.nextClause(),M.QueryParser.parseField;case M.QueryLexer.EDIT_DISTANCE:return M.QueryParser.parseEditDistance;case M.QueryLexer.BOOST:return M.QueryParser.parseBoost;case M.QueryLexer.PRESENCE:return t.nextClause(),M.QueryParser.parsePresence;default:n="Unexpected lexeme type '"+r.type+"'";throw new M.QueryParseError(n,r.start,r.end)}else t.nextClause()}},M.QueryParser.parseBoost=function(t){var e=t.consumeLexeme();if(null!=e){var o=parseInt(e.str,10);if(isNaN(o)){var n="boost must be numeric";throw new M.QueryParseError(n,e.start,e.end)}t.currentClause.boost=o;var r=t.peekLexeme();if(null!=r)switch(r.type){case M.QueryLexer.TERM:return t.nextClause(),M.QueryParser.parseTerm;case M.QueryLexer.FIELD:return t.nextClause(),M.QueryParser.parseField;case M.QueryLexer.EDIT_DISTANCE:return M.QueryParser.parseEditDistance;case M.QueryLexer.BOOST:return M.QueryParser.parseBoost;case M.QueryLexer.PRESENCE:return t.nextClause(),M.QueryParser.parsePresence;default:n="Unexpected lexeme type '"+r.type+"'";throw new M.QueryParseError(n,r.start,r.end)}else t.nextClause()}},_=this,B=function(){return M},"object"==typeof o?e.exports=B():_.lunr=B()}()},{}],4:[function(t,e,o){e.exports={name:"pict-application",version:"1.0.34",description:"Application base class for a pict view-based application",main:"source/Pict-Application.js",scripts:{test:"npx quack test",start:"node source/Pict-Application.js",coverage:"npx quack coverage",build:"npx quack build","docker-dev-build":"docker build ./ -f Dockerfile_LUXURYCode -t pict-application-image:local","docker-dev-run":'docker run -it -d --name pict-application-dev -p 30001:8080 -p 38086:8086 -v "$PWD/.config:/home/coder/.config" -v "$PWD:/home/coder/pict-application" -u "$(id -u):$(id -g)" -e "DOCKER_USER=$USER" pict-application-image:local',"docker-dev-shell":"docker exec -it pict-application-dev /bin/bash",tests:"npx quack test -g",lint:"eslint source/**",types:"tsc -p ."},types:"types/source/Pict-Application.d.ts",repository:{type:"git",url:"git+https://github.com/stevenvelozo/pict-application.git"},author:"steven velozo <steven@velozo.com>",license:"MIT",bugs:{url:"https://github.com/stevenvelozo/pict-application/issues"},homepage:"https://github.com/stevenvelozo/pict-application#readme",devDependencies:{"@eslint/js":"^9.28.0","browser-env":"^3.3.0",eslint:"^9.28.0",pict:"^1.0.348","pict-docuserve":"^0.1.5","pict-provider":"^1.0.10","pict-view":"^1.0.66",quackage:"^1.1.0",typescript:"^5.9.3"},mocha:{diff:!0,extension:["js"],package:"./package.json",reporter:"spec",slow:"75",timeout:"5000",ui:"tdd","watch-files":["source/**/*.js","test/**/*.js"],"watch-ignore":["lib/vendor"]},dependencies:{"fable-serviceproviderbase":"^3.0.19"}}},{}],5:[function(t,e,o){const n=t("fable-serviceproviderbase"),r=t("../package.json"),i={Name:"DefaultPictApplication",MainViewportViewIdentifier:"Default-View",MainViewportRenderableHash:!1,MainViewportDestinationAddress:!1,MainViewportDefaultDataAddress:!1,AutoSolveAfterInitialize:!0,AutoRenderMainViewportViewAfterInitialize:!0,AutoRenderViewsAfterInitialize:!1,AutoLoginAfterInitialize:!1,AutoLoadDataAfterLogin:!1,ConfigurationOnlyViews:[],Manifests:{},IdentifierAddressPrefix:"PICT-"};e.exports=class extends n{constructor(t,e,o){let n="object"==typeof t.settings.PictApplicationConfiguration?t.settings.PictApplicationConfiguration:{};super(t,Object.assign({},JSON.parse(JSON.stringify(i)),n,e),o),this.options,this.log,this.fable,this.UUID,this.Hash,this.servicesMap,this.serviceType="PictApplication",this._Package=r,this.pict=this.fable,this.AppData=this.fable.AppData,this.Bundle=this.fable.Bundle,this.initializeTimestamp,this.lastSolvedTimestamp,this.lastLoginTimestamp,this.lastMarshalFromViewsTimestamp,this.lastMarshalToViewsTimestamp,this.lastAutoRenderTimestamp,this.lastLoadDataTimestamp;let a=Object.keys(this.options.Manifests);if(a.length>0)for(let t=0;t<a.length;t++){let e=a[t];this.fable.instantiateServiceProvider("Manifest",this.options.Manifests[e],e)}}onPreSolve(){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onPreSolve:")),!0}onPreSolveAsync(t){return this.onPreSolve(),t()}onBeforeSolve(){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onBeforeSolve:")),!0}onBeforeSolveAsync(t){return this.onBeforeSolve(),t()}onSolve(){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onSolve:")),!0}onSolveAsync(t){return this.onSolve(),t()}solve(){this.pict.LogNoisiness>2&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," executing solve() function..."));let t=Object.keys(this.pict.providers),e=[];for(let o=0;o<t.length;o++){let n=this.pict.providers[t[o]];n.options.AutoSolveWithApp&&e.push(n)}e.sort((t,e)=>t.options.AutoSolveOrdinal-e.options.AutoSolveOrdinal);for(let t=0;t<e.length;t++)e[t].solve(e[t]);this.onBeforeSolve();let o=Object.keys(this.pict.views),n=[];for(let t=0;t<o.length;t++){let e=this.pict.views[o[t]];e.options.AutoInitialize&&n.push(e)}n.sort((t,e)=>t.options.AutoInitializeOrdinal-e.options.AutoInitializeOrdinal);for(let t=0;t<n.length;t++)n[t].solve();return this.onSolve(),this.onAfterSolve(),this.lastSolvedTimestamp=this.fable.log.getTimeStamp(),!0}solveAsync(t){let e=this.fable.instantiateServiceProviderWithoutRegistration("Anticipate");e.anticipate(this.onBeforeSolveAsync.bind(this));let o="function"==typeof t&&t;o||(this.log.warn("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," solveAsync was called without a valid callback. A callback will be generated but this could lead to race conditions.")),o=t=>{t&&this.log.error("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," solveAsync Auto Callback Error: ").concat(t),t)});let n=Object.keys(this.pict.providers),r=[];for(let t=0;t<n.length;t++){let e=this.pict.providers[n[t]];e.options.AutoSolveWithApp&&r.push(e)}r.sort((t,e)=>t.options.AutoSolveOrdinal-e.options.AutoSolveOrdinal);for(let t=0;t<r.length;t++)e.anticipate(r[t].solveAsync.bind(r[t]));let i=Object.keys(this.pict.views),a=[];for(let t=0;t<i.length;t++){let e=this.pict.views[i[t]];e.options.AutoSolveWithApp&&a.push(e)}a.sort((t,e)=>t.options.AutoSolveOrdinal-e.options.AutoSolveOrdinal);for(let t=0;t<a.length;t++)e.anticipate(a[t].solveAsync.bind(a[t]));e.anticipate(this.onSolveAsync.bind(this)),e.anticipate(this.onAfterSolveAsync.bind(this)),e.wait(t=>(this.pict.LogNoisiness>2&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," solveAsync() complete.")),this.lastSolvedTimestamp=this.fable.log.getTimeStamp(),o(t)))}onAfterSolve(){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onAfterSolve:")),!0}onAfterSolveAsync(t){return this.onAfterSolve(),t()}onBeforeLoginAsync(t){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onBeforeLoginAsync:")),t()}onLoginAsync(t){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onLoginAsync:")),t()}loginAsync(t){const e=this.fable.instantiateServiceProviderWithoutRegistration("Anticipate");let o=t;"function"!=typeof o&&(this.log.warn("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," loginAsync was called without a valid callback. A callback will be generated but this could lead to race conditions.")),o=t=>{t&&this.log.error("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," loginAsync Auto Callback Error: ").concat(t),t)}),e.anticipate(this.onBeforeLoginAsync.bind(this)),e.anticipate(this.onLoginAsync.bind(this)),e.anticipate(this.onAfterLoginAsync.bind(this)),this.options.AutoLoadDataAfterLogin&&e.anticipate(t=>{if(!this.isLoggedIn())return t();this.pict.LogNoisiness>1&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," auto loading data after login...")),this.loadDataAsync(e=>{t(e)})}),e.wait(t=>(this.pict.LogNoisiness>2&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," loginAsync() complete.")),this.lastLoginTimestamp=this.fable.log.getTimeStamp(),o(t)))}isLoggedIn(){return!0}onAfterLoginAsync(t){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onAfterLoginAsync:")),t()}onBeforeLoadDataAsync(t){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onBeforeLoadDataAsync:")),t()}onLoadDataAsync(t){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onLoadDataAsync:")),t()}loadDataAsync(t){const e=this.fable.instantiateServiceProviderWithoutRegistration("Anticipate");let o=t;"function"!=typeof o&&(this.log.warn("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," loadDataAsync was called without a valid callback. A callback will be generated but this could lead to race conditions.")),o=t=>{t&&this.log.error("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," loadDataAsync Auto Callback Error: ").concat(t),t)}),e.anticipate(this.onBeforeLoadDataAsync.bind(this));let n=Object.keys(this.pict.providers),r=[];for(let t=0;t<n.length;t++){let e=this.pict.providers[n[t]];e.options.AutoLoadDataWithApp&&r.push(e)}r.sort((t,e)=>t.options.AutoLoadDataOrdinal-e.options.AutoLoadDataOrdinal);for(const t of r)e.anticipate(t.onBeforeLoadDataAsync.bind(t));e.anticipate(this.onLoadDataAsync.bind(this));for(const t of r)e.anticipate(t.onLoadDataAsync.bind(t));e.anticipate(this.onAfterLoadDataAsync.bind(this));for(const t of r)e.anticipate(t.onAfterLoadDataAsync.bind(t));e.wait(t=>(this.pict.LogNoisiness>2&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," loadDataAsync() complete.")),this.lastLoadDataTimestamp=this.fable.log.getTimeStamp(),o(t)))}onAfterLoadDataAsync(t){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onAfterLoadDataAsync:")),t()}onBeforeSaveDataAsync(t){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onBeforeSaveDataAsync:")),t()}onSaveDataAsync(t){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onSaveDataAsync:")),t()}saveDataAsync(t){const e=this.fable.instantiateServiceProviderWithoutRegistration("Anticipate");let o=t;"function"!=typeof o&&(this.log.warn("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," saveDataAsync was called without a valid callback. A callback will be generated but this could lead to race conditions.")),o=t=>{t&&this.log.error("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," saveDataAsync Auto Callback Error: ").concat(t),t)}),e.anticipate(this.onBeforeSaveDataAsync.bind(this));let n=Object.keys(this.pict.providers),r=[];for(let t=0;t<n.length;t++){let e=this.pict.providers[n[t]];e.options.AutoSaveDataWithApp&&r.push(e)}r.sort((t,e)=>t.options.AutoSaveDataOrdinal-e.options.AutoSaveDataOrdinal);for(const t of r)e.anticipate(t.onBeforeSaveDataAsync.bind(t));e.anticipate(this.onSaveDataAsync.bind(this));for(const t of r)e.anticipate(t.onSaveDataAsync.bind(t));e.anticipate(this.onAfterSaveDataAsync.bind(this));for(const t of r)e.anticipate(t.onAfterSaveDataAsync.bind(t));e.wait(t=>(this.pict.LogNoisiness>2&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," saveDataAsync() complete.")),this.lastSaveDataTimestamp=this.fable.log.getTimeStamp(),o(t)))}onAfterSaveDataAsync(t){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onAfterSaveDataAsync:")),t()}onBeforeInitialize(){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onBeforeInitialize:")),!0}onBeforeInitializeAsync(t){return this.onBeforeInitialize(),t()}onInitialize(){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onInitialize:")),!0}onInitializeAsync(t){return this.onInitialize(),t()}initialize(){if(this.pict.LogControlFlow&&this.log.trace("PICT-ControlFlow APPLICATION [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," initialize:")),this.initializeTimestamp)return this.log.warn("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," initialize called but initialization is already completed. Aborting.")),!1;{if(this.onBeforeInitialize(),"ConfigurationOnlyViews"in this.options)for(let t=0;t<this.options.ConfigurationOnlyViews.length;t++){let e=void 0===this.options.ConfigurationOnlyViews[t].ViewIdentifier?"AutoView-".concat(this.fable.getUUID()):this.options.ConfigurationOnlyViews[t].ViewIdentifier;this.log.info("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," adding configuration only view: ").concat(e)),this.pict.addView(e,this.options.ConfigurationOnlyViews[t])}this.onInitialize();let t=Object.keys(this.pict.providers),e=[];for(let o=0;o<t.length;o++){let n=this.pict.providers[t[o]];n.options.AutoInitialize&&e.push(n)}e.sort((t,e)=>t.options.AutoInitializeOrdinal-e.options.AutoInitializeOrdinal);for(let t=0;t<e.length;t++)e[t].initialize();let o=Object.keys(this.pict.views),n=[];for(let t=0;t<o.length;t++){let e=this.pict.views[o[t]];e.options.AutoInitialize&&n.push(e)}n.sort((t,e)=>t.options.AutoInitializeOrdinal-e.options.AutoInitializeOrdinal);for(let t=0;t<n.length;t++)n[t].initialize();return this.onAfterInitialize(),this.options.AutoSolveAfterInitialize&&(this.pict.LogNoisiness>1&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," auto solving after initialization...")),this.solve()),this.options.AutoRenderMainViewportViewAfterInitialize&&(this.pict.LogNoisiness>1&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," auto rendering after initialization...")),this.render()),this.initializeTimestamp=this.fable.log.getTimeStamp(),this.onCompletionOfInitialize(),!0}}initializeAsync(t){this.pict.LogControlFlow&&this.log.trace("PICT-ControlFlow APPLICATION [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," initializeAsync:"));let e="function"==typeof t&&t;if(e||(this.log.warn("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," initializeAsync was called without a valid callback. A callback will be generated but this could lead to race conditions.")),e=t=>{t&&this.log.error("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," initializeAsync Auto Callback Error: ").concat(t),t)}),this.initializeTimestamp)return this.log.warn("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," async initialize called but initialization is already completed. Aborting.")),this.onCompletionOfInitializeAsync(e);{let t=this.fable.instantiateServiceProviderWithoutRegistration("Anticipate");if(this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," beginning initialization...")),"ConfigurationOnlyViews"in this.options)for(let t=0;t<this.options.ConfigurationOnlyViews.length;t++){let e=void 0===this.options.ConfigurationOnlyViews[t].ViewIdentifier?"AutoView-".concat(this.fable.getUUID()):this.options.ConfigurationOnlyViews[t].ViewIdentifier;this.log.info("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," adding configuration only view: ").concat(e)),this.pict.addView(e,this.options.ConfigurationOnlyViews[t])}t.anticipate(this.onBeforeInitializeAsync.bind(this)),t.anticipate(this.onInitializeAsync.bind(this));let o=Object.keys(this.pict.providers),n=[];for(let t=0;t<o.length;t++){let e=this.pict.providers[o[t]];e.options.AutoInitialize&&n.push(e)}n.sort((t,e)=>t.options.AutoInitializeOrdinal-e.options.AutoInitializeOrdinal);for(let e=0;e<n.length;e++)t.anticipate(n[e].initializeAsync.bind(n[e]));let r=Object.keys(this.pict.views),i=[];for(let t=0;t<r.length;t++){let e=this.pict.views[r[t]];e.options.AutoInitialize&&i.push(e)}i.sort((t,e)=>t.options.AutoInitializeOrdinal-e.options.AutoInitializeOrdinal);for(let e=0;e<i.length;e++){let o=i[e];t.anticipate(o.initializeAsync.bind(o))}t.anticipate(this.onAfterInitializeAsync.bind(this)),this.options.AutoLoginAfterInitialize&&(this.pict.LogNoisiness>1&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," auto login (asynchronously) after initialization...")),t.anticipate(this.loginAsync.bind(this))),this.options.AutoSolveAfterInitialize&&(this.pict.LogNoisiness>1&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," auto solving (asynchronously) after initialization...")),t.anticipate(this.solveAsync.bind(this))),this.options.AutoRenderMainViewportViewAfterInitialize&&(this.pict.LogNoisiness>1&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," auto rendering (asynchronously) after initialization...")),t.anticipate(this.renderMainViewportAsync.bind(this))),t.wait(t=>(t&&this.log.error("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," initializeAsync Error: ").concat(t.message||t),{stack:t.stack}),this.initializeTimestamp=this.fable.log.getTimeStamp(),this.pict.LogNoisiness>2&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," initialization complete.")),e()))}}onAfterInitialize(){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onAfterInitialize:")),!0}onAfterInitializeAsync(t){return this.onAfterInitialize(),t()}onCompletionOfInitialize(){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onCompletionOfInitialize:")),!0}onCompletionOfInitializeAsync(t){return this.onCompletionOfInitialize(),t()}onBeforeMarshalFromViews(){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onBeforeMarshalFromViews:")),!0}onBeforeMarshalFromViewsAsync(t){return this.onBeforeMarshalFromViews(),t()}onMarshalFromViews(){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onMarshalFromViews:")),!0}onMarshalFromViewsAsync(t){return this.onMarshalFromViews(),t()}marshalFromViews(){this.pict.LogNoisiness>2&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," executing marshalFromViews() function...")),this.onBeforeMarshalFromViews();let t=Object.keys(this.pict.views),e=[];for(let o=0;o<t.length;o++){let n=this.pict.views[t[o]];e.push(n)}for(let t=0;t<e.length;t++)e[t].marshalFromView();return this.onMarshalFromViews(),this.onAfterMarshalFromViews(),this.lastMarshalFromViewsTimestamp=this.fable.log.getTimeStamp(),!0}marshalFromViewsAsync(t){let e=this.fable.instantiateServiceProviderWithoutRegistration("Anticipate"),o="function"==typeof t&&t;o||(this.log.warn("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," marshalFromViewsAsync was called without a valid callback. A callback will be generated but this could lead to race conditions.")),o=t=>{t&&this.log.error("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," marshalFromViewsAsync Auto Callback Error: ").concat(t),t)}),e.anticipate(this.onBeforeMarshalFromViewsAsync.bind(this));let n=Object.keys(this.pict.views),r=[];for(let t=0;t<n.length;t++){let e=this.pict.views[n[t]];r.push(e)}for(let t=0;t<r.length;t++)e.anticipate(r[t].marshalFromViewAsync.bind(r[t]));e.anticipate(this.onMarshalFromViewsAsync.bind(this)),e.anticipate(this.onAfterMarshalFromViewsAsync.bind(this)),e.wait(t=>(this.pict.LogNoisiness>2&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," marshalFromViewsAsync() complete.")),this.lastMarshalFromViewsTimestamp=this.fable.log.getTimeStamp(),o(t)))}onAfterMarshalFromViews(){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onAfterMarshalFromViews:")),!0}onAfterMarshalFromViewsAsync(t){return this.onAfterMarshalFromViews(),t()}onBeforeMarshalToViews(){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onBeforeMarshalToViews:")),!0}onBeforeMarshalToViewsAsync(t){return this.onBeforeMarshalToViews(),t()}onMarshalToViews(){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onMarshalToViews:")),!0}onMarshalToViewsAsync(t){return this.onMarshalToViews(),t()}marshalToViews(){this.pict.LogNoisiness>2&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," executing marshalToViews() function...")),this.onBeforeMarshalToViews();let t=Object.keys(this.pict.views),e=[];for(let o=0;o<t.length;o++){let n=this.pict.views[t[o]];e.push(n)}for(let t=0;t<e.length;t++)e[t].marshalToView();return this.onMarshalToViews(),this.onAfterMarshalToViews(),this.lastMarshalToViewsTimestamp=this.fable.log.getTimeStamp(),!0}marshalToViewsAsync(t){let e=this.fable.instantiateServiceProviderWithoutRegistration("Anticipate"),o="function"==typeof t&&t;o||(this.log.warn("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," marshalToViewsAsync was called without a valid callback. A callback will be generated but this could lead to race conditions.")),o=t=>{t&&this.log.error("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," marshalToViewsAsync Auto Callback Error: ").concat(t),t)}),e.anticipate(this.onBeforeMarshalToViewsAsync.bind(this));let n=Object.keys(this.pict.views),r=[];for(let t=0;t<n.length;t++){let e=this.pict.views[n[t]];r.push(e)}for(let t=0;t<r.length;t++)e.anticipate(r[t].marshalToViewAsync.bind(r[t]));e.anticipate(this.onMarshalToViewsAsync.bind(this)),e.anticipate(this.onAfterMarshalToViewsAsync.bind(this)),e.wait(t=>(this.pict.LogNoisiness>2&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," marshalToViewsAsync() complete.")),this.lastMarshalToViewsTimestamp=this.fable.log.getTimeStamp(),o(t)))}onAfterMarshalToViews(){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onAfterMarshalToViews:")),!0}onAfterMarshalToViewsAsync(t){return this.onAfterMarshalToViews(),t()}onBeforeRender(){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onBeforeRender:")),!0}onBeforeRenderAsync(t){return this.onBeforeRender(),t()}render(t,e,o,n){let r="string"!=typeof t?this.options.MainViewportViewIdentifier:t,i="string"!=typeof e?this.options.MainViewportRenderableHash:e,a="string"!=typeof o?this.options.MainViewportDestinationAddress:o,s="string"!=typeof n?this.options.MainViewportDefaultDataAddress:n;this.pict.LogControlFlow&&this.log.trace("PICT-ControlFlow APPLICATION [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," VIEW Renderable[").concat(i,"] Destination[").concat(a,"] TemplateDataAddress[").concat(s,"] render:")),this.onBeforeRender();let l="string"==typeof r&&this.servicesMap.PictView[r];return l?(this.onRender(),l.render(i,a,s),this.onAfterRender(),!0):(this.log.error("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," could not render from View ").concat(r," because it is not a valid view.")),!1)}onRender(){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onRender:")),!0}onRenderAsync(t){return this.onRender(),t()}renderAsync(t,e,o,n,r){let i="string"!=typeof t?this.options.MainViewportViewIdentifier:t,a="string"!=typeof e?this.options.MainViewportRenderableHash:e,s="string"!=typeof o?this.options.MainViewportDestinationAddress:o,l="string"!=typeof n?this.options.MainViewportDefaultDataAddress:n,c="function"==typeof r?r:"function"==typeof n?n:"function"==typeof o?o:"function"==typeof e?e:"function"==typeof t&&t;c||(this.log.warn("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," renderAsync was called without a valid callback. A callback will be generated but this could lead to race conditions.")),c=t=>{t&&this.log.error("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," renderAsync Auto Callback Error: ").concat(t),t)}),this.pict.LogControlFlow&&this.log.trace("PICT-ControlFlow APPLICATION [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," VIEW Renderable[").concat(a,"] Destination[").concat(s,"] TemplateDataAddress[").concat(l,"] renderAsync:"));let d=this.fable.newAnticipate();d.anticipate(this.onBeforeRenderAsync.bind(this));let p="string"==typeof i&&this.servicesMap.PictView[i];if(!p){let t="PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," could not asynchronously render from View ").concat(i," because it is not a valid view.");return this.pict.LogNoisiness>3&&this.log.error(t),c(new Error(t))}return d.anticipate(this.onRenderAsync.bind(this)),d.anticipate(t=>{p.renderAsync.call(p,a,s,l,t)}),d.anticipate(this.onAfterRenderAsync.bind(this)),d.wait(c)}onAfterRender(){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onAfterRender:")),!0}onAfterRenderAsync(t){return this.onAfterRender(),t()}renderMainViewport(){return this.pict.LogControlFlow&&this.log.trace("PICT-ControlFlow APPLICATION [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," renderMainViewport:")),this.render()}renderMainViewportAsync(t){return this.pict.LogControlFlow&&this.log.trace("PICT-ControlFlow APPLICATION [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," renderMainViewportAsync:")),this.renderAsync(t)}renderAutoViews(){this.pict.LogNoisiness>0&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," beginning renderAutoViews..."));let t=Object.keys(this.pict.views);t.sort((t,e)=>this.pict.views[t].options.AutoRenderOrdinal-this.pict.views[e].options.AutoRenderOrdinal);for(let e=0;e<t.length;e++){let o=this.pict.views[t[e]];o.options.AutoRender&&o.render()}this.pict.LogNoisiness>0&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," renderAutoViewsAsync complete."))}renderAutoViewsAsync(t){let e=this.fable.instantiateServiceProviderWithoutRegistration("Anticipate"),o="function"==typeof t&&t;o||(this.log.warn("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," renderAutoViewsAsync was called without a valid callback. A callback will be generated but this could lead to race conditions.")),o=t=>{t&&this.log.error("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," renderAutoViewsAsync Auto Callback Error: ").concat(t),t)}),this.pict.LogNoisiness>0&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," beginning renderAutoViewsAsync..."));let n=Object.keys(this.pict.views);n.sort((t,e)=>this.pict.views[t].options.AutoRenderOrdinal-this.pict.views[e].options.AutoRenderOrdinal);for(let t=0;t<n.length;t++){let o=this.pict.views[n[t]];o.options.AutoRender&&e.anticipate(o.renderAsync.bind(o))}e.wait(t=>(this.lastAutoRenderTimestamp=this.fable.log.getTimeStamp(),this.pict.LogNoisiness>0&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," renderAutoViewsAsync complete.")),o(t)))}get isPictApplication(){return!0}}},{"../package.json":4,"fable-serviceproviderbase":2}],6:[function(t,e,o){e.exports={name:"pict-provider",version:"1.0.13",description:"Pict Provider Base Class",main:"source/Pict-Provider.js",scripts:{start:"node source/Pict-Provider.js",test:"npx quack test",tests:"npx quack test -g",coverage:"npx quack coverage",build:"npx quack build","docker-dev-build":"docker build ./ -f Dockerfile_LUXURYCode -t pict-provider-image:local","docker-dev-run":'docker run -it -d --name pict-provider-dev -p 24125:8080 -p 30027:8086 -v "$PWD/.config:/home/coder/.config" -v "$PWD:/home/coder/pict-provider" -u "$(id -u):$(id -g)" -e "DOCKER_USER=$USER" pict-provider-image:local',"docker-dev-shell":"docker exec -it pict-provider-dev /bin/bash",lint:"eslint source/**",types:"tsc -p ."},types:"types/source/Pict-Provider.d.ts",repository:{type:"git",url:"git+https://github.com/stevenvelozo/pict-provider.git"},author:"steven velozo <steven@velozo.com>",license:"MIT",bugs:{url:"https://github.com/stevenvelozo/pict-provider/issues"},homepage:"https://github.com/stevenvelozo/pict-provider#readme",devDependencies:{"@eslint/js":"^9.39.1",eslint:"^9.39.1",pict:"^1.0.351","pict-docuserve":"^0.1.5",quackage:"^1.1.0",typescript:"^5.9.3"},dependencies:{"fable-serviceproviderbase":"^3.0.19"},mocha:{diff:!0,extension:["js"],package:"./package.json",reporter:"spec",slow:"75",timeout:"5000",ui:"tdd","watch-files":["source/**/*.js","test/**/*.js"],"watch-ignore":["lib/vendor"]}}},{}],7:[function(t,e,o){const n=t("fable-serviceproviderbase"),r=t("../package.json"),i={ProviderIdentifier:!1,AutoInitialize:!0,AutoInitializeOrdinal:0,AutoLoadDataWithApp:!0,AutoLoadDataOrdinal:0,AutoSolveWithApp:!0,AutoSolveOrdinal:0,Manifests:{},Templates:[]};e.exports=class extends n{constructor(t,e,o){super(t,Object.assign({},JSON.parse(JSON.stringify(i)),e),o),this.fable,this.pict,this.log,this.options,this.UUID,this.Hash,this.options.ProviderIdentifier||(this.options.ProviderIdentifier="AutoProviderID-".concat(this.fable.getUUID())),this.serviceType="PictProvider",this._Package=r,this.pict=this.fable,this.AppData=this.pict.AppData,this.Bundle=this.pict.Bundle,this.initializeTimestamp=!1,this.lastSolvedTimestamp=!1;for(let t=0;t<this.options.Templates.length;t++){let e=this.options.Templates[t];e.hasOwnProperty("Postfix")&&e.hasOwnProperty("Template")?(e.Source||(e.Source="PictProvider [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ProviderIdentifier," options object.")),this.pict.TemplateProvider.addDefaultTemplate(e.Prefix,e.Postfix,e.Template,e.Source)):this.log.error("PictProvider [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ProviderIdentifier," could not load Default Template ").concat(t," in the options array."),e)}}onBeforeInitialize(){return this.pict.LogNoisiness>3&&this.log.trace("PictProvider [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ProviderIdentifier," onBeforeInitialize:")),!0}onBeforeInitializeAsync(t){return this.onBeforeInitialize(),t()}onInitialize(){return this.pict.LogNoisiness>3&&this.log.trace("PictProvider [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ProviderIdentifier," onInitialize:")),!0}onInitializeAsync(t){return this.onInitialize(),t()}initialize(){return this.pict.LogControlFlow&&this.log.trace("PICT-ControlFlow PROVIDER [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ProviderIdentifier," initialize:")),this.initializeTimestamp?(this.log.warn("PictProvider [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ProviderIdentifier," initialize called but initialization is already completed. Aborting.")),!1):(this.onBeforeInitialize(),this.onInitialize(),this.onAfterInitialize(),this.initializeTimestamp=this.pict.log.getTimeStamp(),!0)}initializeAsync(t){if(this.pict.LogControlFlow&&this.log.trace("PICT-ControlFlow PROVIDER [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ProviderIdentifier," initializeAsync:")),this.initializeTimestamp)return this.log.warn("PictProvider [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ProviderIdentifier," async initialize called but initialization is already completed. Aborting.")),t();{let e=this.pict.instantiateServiceProviderWithoutRegistration("Anticipate");this.pict.LogNoisiness>0&&this.log.info("PictProvider [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ProviderIdentifier," beginning initialization...")),e.anticipate(this.onBeforeInitializeAsync.bind(this)),e.anticipate(this.onInitializeAsync.bind(this)),e.anticipate(this.onAfterInitializeAsync.bind(this)),e.wait(e=>(this.initializeTimestamp=this.pict.log.getTimeStamp(),e?this.log.error("PictProvider [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ProviderIdentifier," initialization failed: ").concat(e.message||e),{Stack:e.stack}):this.pict.LogNoisiness>0&&this.log.info("PictProvider [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ProviderIdentifier," initialization complete.")),t()))}}onAfterInitialize(){return this.pict.LogNoisiness>3&&this.log.trace("PictProvider [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ProviderIdentifier," onAfterInitialize:")),!0}onAfterInitializeAsync(t){return this.onAfterInitialize(),t()}onPreRender(){return this.pict.LogNoisiness>3&&this.log.trace("PictProvider [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ProviderIdentifier," onPreRender:")),!0}onPreRenderAsync(t){return this.onPreRender(),t()}render(){return this.onPreRender()}renderAsync(t){return this.onPreRender(),t()}onPreSolve(){return this.pict.LogNoisiness>3&&this.log.trace("PictProvider [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ProviderIdentifier," onPreSolve:")),!0}onPreSolveAsync(t){return this.onPreSolve(),t()}solve(){return this.onPreSolve()}solveAsync(t){return this.onPreSolve(),t()}onBeforeLoadDataAsync(t){return t()}onLoadDataAsync(t){return this.pict.LogNoisiness>3&&this.log.trace("PictProvider [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ProviderIdentifier," onLoadDataAsync:")),t()}onAfterLoadDataAsync(t){return t()}onBeforeSaveDataAsync(t){return t()}onSaveDataAsync(t){return this.pict.LogNoisiness>3&&this.log.trace("PictProvider [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ProviderIdentifier," onSaveDataAsync:")),t()}onAfterSaveDataAsync(t){return t()}}},{"../package.json":6,"fable-serviceproviderbase":2}],8:[function(t,e,o){const n={javascript:{tokenizer:/(\/\/[^\n]*|\/\*[\s\S]*?\*\/)|(["'])(?:(?!\2|\\).|\\.)*?\2|(`(?:[^`\\]|\\.)*?`)|(\/(?![/*])(?:\\.|\[(?:\\.|[^\]])*\]|[^/\\\n])+\/[gimsuvy]*)/g,keywords:/\b(async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|export|extends|finally|for|from|function|get|if|import|in|instanceof|let|new|of|return|set|static|super|switch|this|throw|try|typeof|var|void|while|with|yield)\b/g,builtins:/\b(true|false|null|undefined|NaN|Infinity|console|window|document|Math|JSON|Array|Object|String|Number|Boolean|Date|RegExp|Map|Set|Promise|Error|Symbol|parseInt|parseFloat|require|module|exports)\b/g,numbers:/\b(\d+\.?\d*(?:e[+-]?\d+)?|0x[0-9a-fA-F]+|0b[01]+|0o[0-7]+)\b/g},json:{tokenizer:/(\/\/[^\n]*|\/\*[\s\S]*?\*\/)|("(?:[^"\\]|\\.)*")/g,keywords:/\b(true|false|null)\b/g,numbers:/-?\b\d+\.?\d*(?:e[+-]?\d+)?\b/g},html:{tokenizer:/(<!--[\s\S]*?-->)|(["'])(?:(?!\2|\\).|\\.)*?\2|(<\/?[a-zA-Z][a-zA-Z0-9-]*(?:\s+[a-zA-Z-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]*))?)*\s*\/?>)/g,tagGroupIndex:3},css:{tokenizer:/(\/\*[\s\S]*?\*\/)|(["'])(?:(?!\2|\\).|\\.)*?\2/g,selectors:/([.#]?[a-zA-Z_][\w-]*(?:\s*[>+~]\s*[.#]?[a-zA-Z_][\w-]*)*)\s*\{/g,properties:/\b([a-zA-Z-]+)\s*:/g,numbers:/\b(\d+\.?\d*)(px|em|rem|%|vh|vw|s|ms|deg|fr)?\b/g,keywords:/\b(important|inherit|initial|unset|none|auto|block|inline|flex|grid)\b/g},sql:{tokenizer:/(--[^\n]*|\/\*[\s\S]*?\*\/)|(["'])(?:(?!\2|\\).|\\.)*?\2/g,keywords:/\b(SELECT|FROM|WHERE|AND|OR|INSERT|INTO|VALUES|UPDATE|SET|DELETE|CREATE|TABLE|DROP|ALTER|ADD|COLUMN|INDEX|JOIN|LEFT|RIGHT|INNER|OUTER|ON|AS|ORDER|BY|GROUP|HAVING|LIMIT|OFFSET|UNION|ALL|DISTINCT|COUNT|SUM|AVG|MIN|MAX|NOT|NULL|IS|IN|BETWEEN|LIKE|EXISTS|CASE|WHEN|THEN|ELSE|END|PRIMARY|KEY|FOREIGN|REFERENCES|CONSTRAINT|DEFAULT|CHECK|UNIQUE|CASCADE|GRANT|REVOKE|COMMIT|ROLLBACK|BEGIN|TRANSACTION|INT|VARCHAR|DATETIME|AUTO_INCREMENT|CURRENT_TIMESTAMP)\b/gi,numbers:/\b\d+\.?\d*\b/g}};function r(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function i(t,e){let o=t;return e.selectors&&(e.selectors.lastIndex=0,o=o.replace(e.selectors,'<span class="function-name">$1</span>{')),e.properties&&(e.properties.lastIndex=0,o=o.replace(e.properties,'<span class="property">$1</span>:')),e.keywords&&(e.keywords.lastIndex=0,o=o.replace(e.keywords,'<span class="keyword">$1</span>')),e.builtins&&(e.builtins.lastIndex=0,o=o.replace(e.builtins,'<span class="keyword">$1</span>')),e.numbers&&(e.numbers.lastIndex=0,o=o.replace(e.numbers,t=>'<span class="number">'.concat(t,"</span>"))),o}function a(t){let e="",o=t,n=o.match(/^(<\/?)([a-zA-Z][a-zA-Z0-9-]*)/);if(!n)return r(t);e+=r(n[1]),e+='<span class="tag">'+r(n[2])+"</span>",o=o.substring(n[0].length);let i,a=/^(\s+)([a-zA-Z-]+)(?:(\s*=\s*)(["'])([^"']*?)\4)?/;for(;null!==(i=o.match(a));)e+=i[1],e+='<span class="attr-name">'+r(i[2])+"</span>",i[3]&&(e+=r(i[3]),e+='<span class="attr-value">'+r(i[4])+r(i[5])+r(i[4])+"</span>"),o=o.substring(i[0].length);return e+=r(o),e}n.js=n.javascript,n.htm=n.html,e.exports=function(t){return function(e){let o=e.textContent,s="string"==typeof t?t.toLowerCase():"javascript",l=n[s];if(!l)return void(e.innerHTML=r(o));if(!l.tokenizer)return void(e.innerHTML=i(r(o),l));let c,d="",p=0,h=l.tagGroupIndex||0;for(l.tokenizer.lastIndex=0;null!==(c=l.tokenizer.exec(o));){if(c.index>p){d+=i(r(o.substring(p,c.index)),l)}let t=c[0];c[1]?d+='<span class="comment">'.concat(r(t),"</span>"):h>0&&c[h]?d+=a(t):d+='<span class="string">'.concat(r(t),"</span>"),p=l.tokenizer.lastIndex}if(p<o.length){d+=i(r(o.substring(p)),l)}e.innerHTML=d}},e.exports.LanguageDefinitions=n},{}],9:[function(t,e,o){e.exports={RenderOnLoad:!0,DefaultRenderable:"CodeEditor-Wrap",DefaultDestinationAddress:"#CodeEditor-Container-Div",Templates:[{Hash:"CodeEditor-Container",Template:"\x3c!-- CodeEditor-Container Rendering Soon --\x3e"}],Renderables:[{RenderableHash:"CodeEditor-Wrap",TemplateHash:"CodeEditor-Container",DestinationAddress:"#CodeEditor-Container-Div"}],TargetElementAddress:"#CodeEditor-Container-Div",CodeDataAddress:!1,Language:"javascript",ReadOnly:!1,Tab:"\t",IndentOn:/[({[]$/,MoveToNewLine:/^[)}\]]/,AddClosing:!0,CatchTab:!0,LineNumbers:!0,DefaultCode:"// Enter your code here\n",CSS:".pict-code-editor-wrap\n{\n\tdisplay: flex;\n\tfont-family: var(--theme-typography-family-mono, 'SFMono-Regular', 'SF Mono', 'Menlo', 'Consolas', 'Liberation Mono', 'Courier New', monospace);\n\tfont-size: 14px;\n\tline-height: 1.5;\n\tborder: 1px solid var(--theme-color-border-default, #D0D0D0);\n\tborder-radius: 4px;\n\toverflow: hidden;\n}\n.pict-code-editor-wrap .pict-code-line-numbers\n{\n\twidth: 40px;\n\tmin-width: 40px;\n\t/* padding-top/bottom are stamped at runtime from the editor's\n\t computed padding so row 1 of the gutter aligns with row 1 of\n\t the code; only horizontal padding is stylesheet-owned. */\n\tpadding: 0;\n\ttext-align: right;\n\tbackground: var(--theme-color-editor-linenumber-background, var(--theme-color-background-secondary, #F5F5F5));\n\tborder-right: 1px solid var(--theme-color-editor-gutter-border, var(--theme-color-border-default, #D0D0D0));\n\tcolor: var(--theme-color-editor-linenumber-text, var(--theme-color-text-muted, #999));\n\tfont-size: 13px;\n\t/* line-height, padding-top, padding-bottom, and font-family are\n\t intentionally NOT declared here. PictSectionCode._syncGutterMetrics()\n\t copies them from the editor's computed styles at init and on every\n\t editor resize, so the gutter is guaranteed to track the editor.\n\t Declaring them in CSS would either be redundant (when matching) or\n\t actively wrong (when the editor's metrics diverge — e.g. theme scale\n\t changes the editor's font-size). See codejar-linenumbers for the\n\t canonical version of this pattern. */\n\tuser-select: none;\n\tpointer-events: none;\n\tbox-sizing: border-box;\n}\n.pict-code-editor-wrap .pict-code-line-numbers span\n{\n\tdisplay: block;\n\tpadding: 0 8px 0 0;\n}\n.pict-code-editor-wrap .pict-code-editor\n{\n\tmargin: 0;\n\tpadding: 10px 10px 10px 8px;\n\tmin-height: 100px;\n\tflex: 1;\n\tmin-width: 0;\n\toutline: none;\n\ttab-size: 4;\n\twhite-space: pre;\n\toverflow-wrap: normal;\n\tcolor: var(--theme-color-text-primary, #383A42);\n\tbackground: var(--theme-color-background-panel, #FAFAFA);\n\tcaret-color: var(--theme-color-brand-primary, #526FFF);\n\tborder-radius: 0 4px 4px 0;\n}\n.pict-code-editor-wrap .pict-code-editor.pict-code-no-line-numbers\n{\n\tpadding-left: 10px;\n\tborder-radius: 4px;\n}\n.pict-code-editor-wrap .pict-code-editor::selection,\n.pict-code-editor-wrap .pict-code-editor *::selection\n{\n\tbackground: var(--theme-color-editor-selection-background, var(--theme-color-selection-background, #B3D4FC));\n}\n/* Syntax token colors — each class binds to a Color.Syntax.* token from\n pict-provider-theme. Fallback hexes match the One Light palette so apps\n that don't install the theme provider look the same as before. */\n.pict-code-editor-wrap .pict-code-editor .keyword { color: var(--theme-color-syntax-keyword, #A626A4); }\n.pict-code-editor-wrap .pict-code-editor .string { color: var(--theme-color-syntax-string, #50A14F); }\n.pict-code-editor-wrap .pict-code-editor .number { color: var(--theme-color-syntax-number, #986801); }\n.pict-code-editor-wrap .pict-code-editor .comment { color: var(--theme-color-syntax-comment, #A0A1A7); font-style: italic; }\n.pict-code-editor-wrap .pict-code-editor .operator { color: var(--theme-color-syntax-operator, #0184BC); }\n.pict-code-editor-wrap .pict-code-editor .punctuation { color: var(--theme-color-syntax-punctuation, #383A42); }\n.pict-code-editor-wrap .pict-code-editor .function-name { color: var(--theme-color-syntax-function, #4078F2); }\n.pict-code-editor-wrap .pict-code-editor .property { color: var(--theme-color-syntax-property, #E45649); }\n.pict-code-editor-wrap .pict-code-editor .tag { color: var(--theme-color-syntax-tag, #E45649); }\n.pict-code-editor-wrap .pict-code-editor .attr-name { color: var(--theme-color-syntax-attrname, #986801); }\n.pict-code-editor-wrap .pict-code-editor .attr-value { color: var(--theme-color-syntax-attrvalue, #50A14F); }\n.pict-code-editor-wrap .pict-code-editor .builtin { color: var(--theme-color-syntax-builtin, #986801); }\n.pict-code-editor-wrap .pict-code-editor .type { color: var(--theme-color-syntax-type, #C18401); }\n.pict-code-editor-wrap .pict-code-editor .variable { color: var(--theme-color-syntax-variable, #383A42); }\n\n/* highlight.js class aliases — when host apps render code blocks with\n highlight.js (e.g. markdown previews via CodeJar's hljs integration),\n the output uses .hljs / .hljs-* classes rather than the bare token\n classes pict-section-code emits. Mapping them here lets one stylesheet\n theme both editor surfaces (bare classes) and hljs-rendered surfaces\n without the host needing a separate per-app github.css. Rules are\n intentionally unscoped (no .pict-code-editor-wrap parent) so they\n apply globally wherever hljs paints. */\n.hljs { color: var(--theme-color-text-primary, #383A42); background: transparent; }\n.hljs-keyword,\n.hljs-keyword.hljs-typeof,\n.hljs-selector-tag,\n.hljs-literal { color: var(--theme-color-syntax-keyword, #A626A4); }\n.hljs-string,\n.hljs-regexp,\n.hljs-template-tag,\n.hljs-template-variable { color: var(--theme-color-syntax-string, #50A14F); }\n.hljs-number,\n.hljs-meta { color: var(--theme-color-syntax-number, #986801); }\n.hljs-comment,\n.hljs-quote { color: var(--theme-color-syntax-comment, #A0A1A7); font-style: italic; }\n.hljs-operator,\n.hljs-link { color: var(--theme-color-syntax-operator, #0184BC); }\n.hljs-punctuation { color: var(--theme-color-syntax-punctuation, #383A42); }\n.hljs-function .hljs-title,\n.hljs-title.function_,\n.hljs-title.class_ { color: var(--theme-color-syntax-function, #4078F2); }\n.hljs-variable,\n.hljs-variable.language_,\n.hljs-params { color: var(--theme-color-syntax-variable, #383A42); }\n.hljs-type,\n.hljs-class .hljs-title { color: var(--theme-color-syntax-type, #C18401); }\n.hljs-built_in,\n.hljs-builtin-name { color: var(--theme-color-syntax-builtin, #986801); }\n.hljs-attr,\n.hljs-property { color: var(--theme-color-syntax-property, #E45649); }\n.hljs-tag,\n.hljs-name { color: var(--theme-color-syntax-tag, #E45649); }\n.hljs-attribute { color: var(--theme-color-syntax-attrname, #986801); }\n.hljs-symbol { color: var(--theme-color-syntax-attrvalue, #50A14F); }\n.hljs-emphasis { font-style: italic; }\n.hljs-strong { font-weight: bold; }\n.hljs-deletion { color: var(--theme-color-status-error, #B62828); background: rgba(220, 50, 47, 0.08); }\n.hljs-addition { color: var(--theme-color-status-success, #2E7A3A); background: rgba(80, 161, 79, 0.10); }\n"}},{}],10:[function(t,e,o){const n=t("pict-view"),r=t("./Pict-Code-Highlighter.js"),i=t("./Pict-Section-Code-DefaultConfiguration.js");e.exports=class extends n{constructor(t,e,o){super(t,Object.assign({},i,e),o),this.initialRenderComplete=!1,this.codeJar=null,this._highlightFunction=null,this._language=this.options.Language||"javascript"}onBeforeInitialize(){return super.onBeforeInitialize(),this._codeJarPrototype=null,this.targetElement=!1,this._highlightFunction=r(this._language),super.onBeforeInitialize()}connectCodeJarPrototype(t){if("function"!=typeof t)return"undefined"!=typeof window&&"function"==typeof window.CodeJar?(this.log.trace("PICT-Code Found CodeJar in window.CodeJar."),void(this._codeJarPrototype=window.CodeJar)):(this.log.error("PICT-Code No CodeJar prototype found. Include codejar via script tag or call connectCodeJarPrototype(CodeJar) explicitly."),!1);this._codeJarPrototype=t}onAfterRender(t){return this.pict.CSSMap.injectCSS(),this.initialRenderComplete||(this.onAfterInitialRender(),this.initialRenderComplete=!0),super.onAfterRender(t)}onAfterInitialRender(){if(this._codeJarPrototype||this.connectCodeJarPrototype(),!this._codeJarPrototype)return this.log.error("PICT-Code Cannot initialize editor; no CodeJar prototype available."),!1;if(this.codeJar)return this.log.error("PICT-Code editor is already initialized!"),!1;let t=this.services.ContentAssignment.getElement(this.options.TargetElementAddress);if(!t||t.length<1)return this.log.error("PICT-Code Could not find target element [".concat(this.options.TargetElementAddress,"]!")),this.targetElement=!1,!1;this.targetElement=t[0],this._buildEditorDOM();let e=this._resolveCodeContent(),o={};this.options.Tab&&(o.tab=this.options.Tab),this.options.IndentOn&&(o.indentOn=this.options.IndentOn),this.options.MoveToNewLine&&(o.moveToNewLine=this.options.MoveToNewLine),void 0!==this.options.AddClosing&&(o.addClosing=this.options.AddClosing),void 0!==this.options.CatchTab&&(o.catchTab=this.options.CatchTab),this.customConfigureEditorOptions(o);let n=this._editorElement;if(this.codeJar=this._codeJarPrototype(n,this._highlightFunction,o),this._resetEditorWrapStyles(),e&&this.codeJar.updateCode(e),this.codeJar.onUpdate(t=>{this._updateLineNumbers(),this.onCodeChange(t)}),this._updateLineNumbers(),this._lineNumbersElement){let t=this._lineNumbersElement;n.addEventListener("scroll",function(){t.style.transform="translateY(-"+n.scrollTop+"px)"},{passive:!0})}if(this._syncGutterMetrics(),this._lineNumbersElement&&"function"==typeof ResizeObserver){let t=this;this._editorResizeObserver=new ResizeObserver(function(){t._syncGutterMetrics()}),this._editorResizeObserver.observe(n)}if(this._lineNumbersElement&&"function"==typeof MutationObserver){let t=this;this._editorStyleObserver=new MutationObserver(function(){t._syncGutterMetrics()}),this._editorStyleObserver.observe(n,{attributes:!0,attributeFilter:["style","class"]})}this.options.ReadOnly&&n.setAttribute("contenteditable","false")}_buildEditorDOM(){this.targetElement.innerHTML="";let t=document.createElement("div");if(t.className="pict-code-editor-wrap",this.options.LineNumbers){let e=document.createElement("div");e.className="pict-code-line-numbers",t.appendChild(e),this._lineNumbersElement=e}let e=document.createElement("div");e.className="pict-code-editor language-"+this._language,this.options.LineNumbers||(e.className+=" pict-code-no-line-numbers"),t.appendChild(e),this.targetElement.appendChild(t),this._editorElement=e,this._wrapElement=t}_updateLineNumbers(){if(!this.options.LineNumbers||!this._lineNumbersElement||!this._editorElement)return;let t=(this._editorElement.textContent||"").split("\n").length,e="";for(let o=1;o<=t;o++)e+="<span>".concat(o,"</span>");this._lineNumbersElement.innerHTML=e,this._syncGutterMetrics()}_syncGutterMetrics(){if(!this._lineNumbersElement||!this._editorElement)return;if("undefined"==typeof window||"function"!=typeof window.getComputedStyle)return;let t=window.getComputedStyle(this._editorElement),e=t.lineHeight;if(e&&"normal"!==e&&(this._lineNumbersElement.style.lineHeight=e),t.paddingTop&&(this._lineNumbersElement.style.paddingTop=t.paddingTop),t.paddingBottom&&(this._lineNumbersElement.style.paddingBottom=t.paddingBottom),t.fontFamily&&(this._lineNumbersElement.style.fontFamily=t.fontFamily),"undefined"!=typeof console&&console.warn){let t=this._lineNumbersElement.querySelector("span");if(t){let o=t.getBoundingClientRect().height,n=parseFloat(e);o&&n&&Math.abs(o-n)>.5&&console.warn("[pict-section-code] gutter/editor row-height mismatch: gutter "+o+"px vs editor "+n+"px — line numbers will drift. Check for CSS overriding .pict-code-line-numbers line-height.")}}}syncMetrics(){this._syncGutterMetrics()}_resetEditorWrapStyles(){this._editorElement&&(this._editorElement.style.whiteSpace="pre",this._editorElement.style.overflowWrap="normal")}_resolveCodeContent(){if(this.options.CodeDataAddress){const t={Fable:this.fable,Pict:this.fable,AppData:this.AppData,Bundle:this.Bundle,Options:this.options};let e=this.fable.manifest.getValueByHash(t,this.options.CodeDataAddress);if("string"==typeof e)return e;this.log.warn("PICT-Code Address [".concat(this.options.CodeDataAddress,"] did not return a string; it was ").concat(typeof e,"."))}return this.options.DefaultCode||""}customConfigureEditorOptions(t){}onCodeChange(t){if(this.options.CodeDataAddress){const e={Fable:this.fable,Pict:this.fable,AppData:this.AppData,Bundle:this.Bundle,Options:this.options};this.fable.manifest.setValueByHash(e,this.options.CodeDataAddress,t)}}getCode(){return this.codeJar?this.codeJar.toString():(this.log.warn("PICT-Code getCode called before editor initialized."),"")}setCode(t){this.codeJar?(this.codeJar.updateCode(t),this._updateLineNumbers()):this.log.warn("PICT-Code setCode called before editor initialized.")}setLanguage(t){if(this._language=t,this._highlightFunction=r(t),this._editorElement&&(this._editorElement.className="pict-code-editor language-"+t,this.options.LineNumbers||(this._editorElement.className+=" pict-code-no-line-numbers")),this.codeJar){let t=this.codeJar.toString();this.codeJar.destroy(),this.codeJar=this._codeJarPrototype(this._editorElement,this._highlightFunction,{tab:this.options.Tab,catchTab:this.options.CatchTab,addClosing:this.options.AddClosing}),this._resetEditorWrapStyles(),this.codeJar.updateCode(t),this.codeJar.onUpdate(t=>{this._updateLineNumbers(),this.onCodeChange(t)})}}setHighlightFunction(t){if("function"==typeof t){if(this._highlightFunction=t,this.codeJar){let t=this.codeJar.toString();this.codeJar.destroy(),this.codeJar=this._codeJarPrototype(this._editorElement,this._highlightFunction,{tab:this.options.Tab,catchTab:this.options.CatchTab,addClosing:this.options.AddClosing}),this._resetEditorWrapStyles(),this.codeJar.updateCode(t),this.codeJar.onUpdate(t=>{this._updateLineNumbers(),this.onCodeChange(t)})}}else this.log.error("PICT-Code setHighlightFunction requires a function.")}setReadOnly(t){this.options.ReadOnly=t,this._editorElement&&this._editorElement.setAttribute("contenteditable",t?"false":"true")}destroy(){this._editorResizeObserver&&(this._editorResizeObserver.disconnect(),this._editorResizeObserver=null),this._editorStyleObserver&&(this._editorStyleObserver.disconnect(),this._editorStyleObserver=null),this.codeJar&&(this.codeJar.destroy(),this.codeJar=null)}marshalToView(){if(super.marshalToView(),this.codeJar&&this.options.CodeDataAddress){let t=this._resolveCodeContent();"string"==typeof t&&(this.codeJar.updateCode(t),this._updateLineNumbers())}}marshalFromView(){super.marshalFromView(),this.codeJar&&this.options.CodeDataAddress&&this.onCodeChange(this.codeJar.toString())}},e.exports.default_configuration=i,e.exports.createHighlighter=r;const a=t("./demos");e.exports.demos=a.demos,e.exports.registerWithDocuserve=a.registerWithDocuserve},{"./Pict-Code-Highlighter.js":8,"./Pict-Section-Code-DefaultConfiguration.js":9,"./demos":11,"pict-view":75}],11:[function(t,e,o){const n=t("../Pict-Section-Code.js");function r(t,e,o){let r="demo-code-"+(o.Hash||"unnamed")+"-"+Date.now();e.innerHTML='<div id="'+r+'"></div>';let i={ViewIdentifier:"Demo-Code-"+r,DefaultDestinationAddress:"#"+r,Templates:[{Hash:"CodeEditor-Container",Template:"\x3c!-- demo code editor renders here --\x3e"}],Renderables:[{RenderableHash:"CodeEditor-Wrap",TemplateHash:"CodeEditor-Container",DestinationAddress:"#"+r}],TargetElementAddress:"#"+r,Language:o.Language||"javascript",ReadOnly:!!o.ReadOnly,LineNumbers:!1!==o.LineNumbers,Tab:o.Tab||"\t",AddClosing:!1!==o.AddClosing,CatchTab:!1!==o.CatchTab,DefaultCode:o.Code||"// example code\n",AutoRender:!1,RenderOnLoad:!1},a=t.addView(i.ViewIdentifier,i,n);if(!a)return null;if("undefined"!=typeof window&&(window.CodeJarModules&&"function"==typeof window.CodeJarModules.CodeJar?a.connectCodeJarPrototype(window.CodeJarModules.CodeJar):"function"==typeof window.CodeJar&&a.connectCodeJarPrototype(window.CodeJar),window.CodeJarModules&&window.CodeJarModules.hljs)){let t=window.CodeJarModules.hljs,e=i.Language;a._highlightFunction=function(o){o.removeAttribute("data-highlighted"),delete o.dataset.highlighted,o.className=o.className.replace(/\bhljs\b/g,"").replace(/\blanguage-\S+/g,"").trim(),o.classList.add("language-"+e);try{t.highlightElement(o)}catch(t){}}}try{a.render()}catch(t){}return a}const i=[{DemoSchemaVersion:1,Hash:"javascript-editor",Group:"pict",Module:"pict-section-code",Name:"JavaScript editor",Description:"Default pict-section-code configuration — line numbers on, highlight.js for JavaScript, two-space tab.",Spec:{Hash:"javascript-editor",Language:"javascript",LineNumbers:!0,Tab:" ",Code:"// A small example — try editing me.\nfunction fibonacci(n) {\n if (n <= 1) return n;\n return fibonacci(n - 1) + fibonacci(n - 2);\n}\n\nfor (let i = 0; i < 10; i++) {\n console.log(`fib(${i}) =`, fibonacci(i));\n}\n"},Mount:r,Sources:[{Name:"spec.json",Language:"json",Content:'{\n "Language": "javascript",\n "LineNumbers": true,\n "Tab": " ",\n "Code": "function fibonacci(n) { … }"\n}'}]},{DemoSchemaVersion:1,Hash:"json-readonly",Group:"pict",Module:"pict-section-code",Name:"JSON viewer (read-only)",Description:'Read-only mode with line numbers off — useful for embedded "show me the payload" surfaces in dashboards.',Spec:{Hash:"json-readonly",Language:"json",ReadOnly:!0,LineNumbers:!1,Code:'{\n "version": "1.0.7",\n "syntax": {\n "keyword": "#A626A4",\n "string": "#50A14F",\n "number": "#986801",\n "function": "#4078F2"\n },\n "features": ["highlighting", "line-numbers", "readonly", "themed"]\n}\n'},Mount:r,Sources:[{Name:"spec.json",Language:"json",Content:'{\n "Language": "json",\n "ReadOnly": true,\n "LineNumbers": false\n}'}]},{DemoSchemaVersion:1,Hash:"css-editor",Group:"pict",Module:"pict-section-code",Name:"CSS editor (4-space tab)",Description:"CSS-flavoured highlighting with a 4-space tab and bracket auto-close turned off — leaner editing for stylesheet snippets.",Spec:{Hash:"css-editor",Language:"css",LineNumbers:!0,Tab:" ",AddClosing:!1,Code:"/* Theme-aware token usage */\n.docuserve-demo-title {\n color: var(--theme-color-text-primary, #3D3229);\n font-size: 1.5em;\n font-weight: 600;\n}\n\n.docuserve-demo-description {\n color: var(--theme-color-text-secondary, #5E5549);\n line-height: 1.55;\n}\n"},Mount:r,Sources:[{Name:"spec.json",Language:"json",Content:'{\n "Language": "css",\n "LineNumbers": true,\n "Tab": " ",\n "AddClosing": false\n}'}]}];e.exports=i,e.exports.demos=i,e.exports.registerWithDocuserve=function(t){return t&&t.providers&&t.providers["Docuserve-Demos"]?t.providers["Docuserve-Demos"].registerAll(i):0}},{"../Pict-Section-Code.js":10}],12:[function(t,e,o){e.exports=t("./views/Pict-View-Content.js"),e.exports.PictContentProvider=t("./providers/Pict-Provider-Content.js")},{"./providers/Pict-Provider-Content.js":13,"./views/Pict-View-Content.js":14}],13:[function(t,e,o){const n=t("pict-provider"),r=t("pict-section-code").createHighlighter;e.exports=class extends n{constructor(t,e,o){super(t,e,o)}highlightCode(t,e){if(!t)return"";let o={textContent:t,innerHTML:""};return r(e)(o),o.innerHTML}generateLineNumbers(t){if(!t)return"<span>1</span>";let e=t.split("\n").length,o="";for(let t=1;t<=e;t++)o+="<span>"+t+"</span>";return o}parseMarkdown(t,e,o,n){if(!t)return"";let r=t.split("\n"),i=[],a=!1,s=0,l="",c=[],d=!1,p="",h=!1,u=[],m=!1,g=[],f=[],b=()=>{f.length>0&&(i.push("<p>"+f.map(t=>this.parseInline(t,e,o,n)).join(" ")+"</p>"),f=[])};for(let t=0;t<r.length;t++){let v=r[t];if(!a&&v.trim().match(/^\$\$/)){m?(i.push('<div class="pict-content-katex-display">'+g.join("\n")+"</div>"),m=!1,g=[]):(b(),d&&(i.push("ul"===p?"</ul>":"</ol>"),d=!1),h&&(i.push("<blockquote>"+this.parseMarkdown(u.join("\n"),e,o,n)+"</blockquote>"),h=!1,u=[]),m=!0);continue}if(m){g.push(v);continue}let y=v.match(/^(`{3,})/);if(y){let t=y[1].length;if(a){if(t>=s&&v.trim()===y[1]){if("mermaid"===l)i.push('<pre class="mermaid">'+c.join("\n")+"</pre>");else{let t=c.join("\n"),e=this.highlightCode(t,l),o=this.generateLineNumbers(t);i.push('<div class="pict-content-code-wrap"><div class="pict-content-code-line-numbers">'+o+'</div><pre><code class="language-'+this.escapeHTML(l)+'">'+e+"</code></pre></div>")}a=!1,s=0,l="",c=[];continue}c.push(v);continue}b(),d&&(i.push("ul"===p?"</ul>":"</ol>"),d=!1),h&&(i.push("<blockquote>"+this.parseMarkdown(u.join("\n"),e,o,n)+"</blockquote>"),h=!1,u=[]),s=t,l=v.replace(/^`{3,}/,"").trim(),a=!0;continue}if(a){c.push(v);continue}if(v.match(/^>\s?/)){h||(b(),d&&(i.push("ul"===p?"</ul>":"</ol>"),d=!1),h=!0,u=[]),u.push(v.replace(/^>\s?/,""));continue}if(h&&(i.push("<blockquote>"+this.parseMarkdown(u.join("\n"),e,o,n)+"</blockquote>"),h=!1,u=[]),v.match(/^(-{3,}|\*{3,}|_{3,})\s*$/)){b(),d&&(i.push("ul"===p?"</ul>":"</ol>"),d=!1),i.push("<hr>");continue}let w=v.match(/^(#{1,6})\s+(.+)/);if(w){b(),d&&(i.push("ul"===p?"</ul>":"</ol>"),d=!1);let t=w[1].length,r=this.parseInline(w[2],e,o,n),a=w[2].toLowerCase().replace(/[^\w\s-]/g,"").replace(/\s+/g,"-");i.push("<h"+t+' id="'+a+'">'+r+"</h"+t+">");continue}let D=v.match(/^(\s*)[-*+]\s+(.*)/);if(D){b(),d&&"ul"===p||(d&&i.push("ul"===p?"</ul>":"</ol>"),i.push("<ul>"),d=!0,p="ul"),i.push("<li>"+this.parseInline(D[2],e,o,n)+"</li>");continue}let x=v.match(/^(\s*)\d+\.\s+(.*)/);if(x)b(),d&&"ol"===p||(d&&i.push("ul"===p?"</ul>":"</ol>"),i.push("<ol>"),d=!0,p="ol"),i.push("<li>"+this.parseInline(x[2],e,o,n)+"</li>");else if(d&&""!==v.trim()&&(i.push("ul"===p?"</ul>":"</ol>"),d=!1),""!==v.trim()){if(v.match(/^\|/)&&t+1<r.length&&r[t+1].match(/^\|[\s-:|]+\|/)){b(),d&&(i.push("ul"===p?"</ul>":"</ol>"),d=!1);let a="<table>",s=v.split("|").filter(t=>""!==t.trim());a+="<thead><tr>";for(let t=0;t<s.length;t++)a+="<th>"+this.parseInline(s[t].trim(),e,o,n)+"</th>";for(a+="</tr></thead>",t++,a+="<tbody>";t+1<r.length&&r[t+1].match(/^\|/);){t++;let i=r[t].split("|").filter(t=>""!==t.trim());a+="<tr>";for(let t=0;t<i.length;t++)a+="<td>"+this.parseInline(i[t].trim(),e,o,n)+"</td>";a+="</tr>"}a+="</tbody></table>",i.push(a);continue}f.push(v)}else b()}if(b(),d&&i.push("ul"===p?"</ul>":"</ol>"),h&&i.push("<blockquote>"+this.parseMarkdown(u.join("\n"),e,o,n)+"</blockquote>"),a){let t=c.join("\n"),e=this.highlightCode(t,l),o=this.generateLineNumbers(t);i.push('<div class="pict-content-code-wrap"><div class="pict-content-code-line-numbers">'+o+"</div><pre><code>"+e+"</code></pre></div>")}return i.join("\n")}parseInline(t,e,o,n){if(!t)return"";let r=t,i=[];return r=r.replace(/`([^`]+)`/g,(t,e)=>{let o=i.length;return i.push("<code>"+e+"</code>"),"\0CODEINLINE"+o+"\0"}),r=r.replace(/\$([^\$\s][^\$]*?[^\$\s])\$/g,'<span class="pict-content-katex-inline">$1</span>'),r=r.replace(/\$([^\$\s])\$/g,'<span class="pict-content-katex-inline">$1</span>'),r=r.replace(/!\[([^\]]*)\]\(([^)]+)\)/g,(t,e,n)=>{let r=n;if("function"==typeof o){let t=o(n,e);t&&(r=t)}return'<img src="'+r+'" alt="'+e+'">'}),r=r.replace(/\[([^\]]+)\]\(([^)]+)\)/g,(t,o,n)=>{if("function"==typeof e){let t=e(n,o);if(t){let e=t.target?' target="'+t.target+'"':"",n=t.rel?' rel="'+t.rel+'"':"";return'<a href="'+t.href+'"'+e+n+">"+o+"</a>"}}return n.match(/^https?:\/\//)?'<a href="'+n+'" target="_blank" rel="noopener">'+o+"</a>":'<a href="'+n+'">'+o+"</a>"}),r=r.replace(/\*\*([^*]+)\*\*/g,"<strong>$1</strong>"),r=r.replace(/__([^_]+)__/g,"<strong>$1</strong>"),r=r.replace(/\*([^*]+)\*/g,"<em>$1</em>"),r=r.replace(/_([^_]+)_/g,"<em>$1</em>"),r=r.replace(/\x00CODEINLINE(\d+)\x00/g,(t,e)=>i[parseInt(e)]),"function"==typeof n&&(r=this._applyVocabularyLinks(r,n)),r}_applyVocabularyLinks(t,e){if(!t||"function"!=typeof e)return t;let o={},n=t.split(/(<[^>]+>)/g),r=0,i=["code","a","pre","span"];for(let t=0;t<n.length;t++){let a=n[t];if("<"===a.charAt(0)){let t=a.match(/^<(\w+)/);t&&-1!==i.indexOf(t[1].toLowerCase())&&r++;let e=a.match(/^<\/(\w+)/);e&&-1!==i.indexOf(e[1].toLowerCase())&&(r=Math.max(0,r-1));continue}r>0||(n[t]=a.replace(/\b([A-Za-z][A-Za-z0-9_-]{1,30})\b/g,(t,n)=>{if(n.length<3)return t;let r=n.toLowerCase();if(o[r])return t;let i=e(r);if(!i)return t;o[r]=!0;let a=(i.short||"").replace(/"/g,"&quot;");return'<span class="pict-vocab-term" data-vocab-slug="'+i.slug+'" data-vocab-title="'+(i.title||"").replace(/"/g,"&quot;")+'" data-vocab-short="'+a+'">'+t+"</span>"}))}return n.join("")}escapeHTML(t){return t?t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;"):""}},e.exports.default_configuration={ProviderIdentifier:"Pict-Content",AutoInitialize:!0,AutoInitializeOrdinal:0}},{"pict-provider":7,"pict-section-code":10}],14:[function(t,e,o){const n=t("pict-view");class r extends n{constructor(t,e,o){super(t,e,o)}displayContent(t,e){let o=e||"Pict-Content-Body";this.pict.ContentAssignment.assignContent("#"+o,t);let n=document.getElementById(o);n&&n.parentElement&&(n.parentElement.scrollTop=0),n&&!n.classList.contains("pict-content")&&n.classList.add("pict-content"),this.enableFullscreenViewers(o,{skipMermaid:!0}),this.renderMermaidDiagrams(o),this.renderKaTeXEquations(o)}_initializeMermaidTheme(){if("undefined"==typeof mermaid||"undefined"==typeof window)return;let t=getComputedStyle(document.documentElement),e=(e,o)=>(t.getPropertyValue(e)||"").trim()||o;try{mermaid.initialize({startOnLoad:!1,theme:"base",securityLevel:"loose",themeVariables:{primaryColor:e("--theme-color-background-panel","#FAF8F4"),primaryTextColor:e("--theme-color-text-primary","#3D3229"),primaryBorderColor:e("--theme-color-brand-primary","#2E7D74"),secondaryColor:e("--theme-color-background-secondary","#F0EDE8"),secondaryTextColor:e("--theme-color-text-secondary","#5E5549"),secondaryBorderColor:e("--theme-color-border-default","#DDD6CA"),tertiaryColor:e("--theme-color-background-tertiary","#EDE9E3"),tertiaryTextColor:e("--theme-color-text-secondary","#5E5549"),tertiaryBorderColor:e("--theme-color-border-light","#E8E2D7"),background:e("--theme-color-background-panel","#FAF8F4"),mainBkg:e("--theme-color-background-panel","#FAF8F4"),secondBkg:e("--theme-color-background-secondary","#F0EDE8"),lineColor:e("--theme-color-text-secondary","#5E5549"),textColor:e("--theme-color-text-primary","#3D3229"),noteBkgColor:e("--theme-color-background-tertiary","#EDE9E3"),noteTextColor:e("--theme-color-text-primary","#3D3229"),noteBorderColor:e("--theme-color-border-default","#DDD6CA"),errorBkgColor:e("--theme-color-status-error","#D9534F"),errorTextColor:e("--theme-color-text-on-brand","#FFFFFF"),fontFamily:e("--theme-typography-family-sans","inherit")}})}catch(t){this.log&&this.log.warn&&this.log.warn("Mermaid theme init failed: "+t.message)}}_subscribeToThemeChanges(){if(this._mermaidThemeSubscribed)return;let t=this.pict&&this.pict.providers&&this.pict.providers.Theme;if(!t||"function"!=typeof t.onApply)return;let e=this;t.onApply(function(){e._initializeMermaidTheme(),e._refreshMermaidDiagrams()}),this._mermaidThemeSubscribed=!0}_refreshMermaidDiagrams(){if("undefined"==typeof mermaid||"undefined"==typeof document)return;let t=document.querySelectorAll("pre.mermaid[data-mermaid-source]");if(!(t.length<1)){for(let e=0;e<t.length;e++){let o=t[e];o.textContent=o.getAttribute("data-mermaid-source"),o.removeAttribute("data-processed"),o.classList.remove("mermaid-rendered")}try{let e=mermaid.run({nodes:t});e&&"function"==typeof e.catch&&e.catch(t=>{this.log&&this.log.warn&&this.log.warn("Mermaid re-render failed: "+(t&&t.message?t.message:t))})}catch(t){this.log&&this.log.warn&&this.log.warn("Mermaid re-render failed: "+t.message)}}}renderMermaidDiagrams(t){if("undefined"==typeof mermaid)return;let e=t||"Pict-Content-Body",o=document.getElementById(e);if(!o)return;let n=o.querySelectorAll("pre.mermaid");if(!(n.length<1)){this._initializeMermaidTheme(),this._subscribeToThemeChanges();for(let t=0;t<n.length;t++){let e=n[t];e.hasAttribute("data-mermaid-source")||e.setAttribute("data-mermaid-source",e.textContent)}try{let t=mermaid.run({nodes:n});t&&"function"==typeof t.then?t.then(()=>{this.enableFullscreenViewers(e,{onlyMermaid:!0})}).catch(t=>{this.log.error("Mermaid rendering error: "+(t&&t.message?t.message:t))}):this.enableFullscreenViewers(e,{onlyMermaid:!0})}catch(t){this.log.error("Mermaid rendering error: "+t.message)}}}renderKaTeXEquations(t){if("undefined"==typeof katex)return;let e=t||"Pict-Content-Body",o=document.getElementById(e);if(!o)return;let n=o.querySelectorAll(".pict-content-katex-inline");for(let t=0;t<n.length;t++)try{katex.render(n[t].textContent,n[t],{throwOnError:!1,displayMode:!1})}catch(t){this.log.warn("KaTeX inline error: "+t.message)}let r=o.querySelectorAll(".pict-content-katex-display");for(let t=0;t<r.length;t++)try{katex.render(r[t].textContent,r[t],{throwOnError:!1,displayMode:!0})}catch(t){this.log.warn("KaTeX display error: "+t.message)}}enableFullscreenViewers(t,e){let o=t||"Pict-Content-Body",n=document.getElementById(o);if(!n)return;let r=e||{};if(!r.onlyMermaid){let t=n.querySelectorAll("img:not([data-fullscreen-source])");for(let e=0;e<t.length;e++){let o=t[e];o.setAttribute("data-fullscreen-source","image");let n=o.getAttribute("alt");if(!n){n=(o.getAttribute("src")||"").split("/").pop().split("?")[0]||"Image"}o.setAttribute("data-fullscreen-title",n)}let e=n.querySelectorAll(".pict-content-code-wrap:not([data-code-actions-wired])");for(let t=0;t<e.length;t++)this._wireCodeActions(e[t])}if(!r.skipMermaid){let t=n.querySelectorAll("pre.mermaid:not([data-fullscreen-source])");for(let e=0;e<t.length;e++){let o=t[e];o.querySelector("svg")&&(o.setAttribute("data-fullscreen-source","mermaid"),o.setAttribute("data-fullscreen-title","Mermaid Diagram"))}}n.__pictFullscreenWired||(n.__pictFullscreenWired=!0,n.addEventListener("click",t=>{let e=t.target;for(;e&&e!==n&&!e.hasAttribute("data-fullscreen-source");)e=e.parentElement;e&&e!==n&&e.hasAttribute("data-fullscreen-source")&&(t.preventDefault(),this._openFullscreen(e))}))}_wireCodeActions(t){if(!t||t.hasAttribute("data-code-actions-wired"))return;t.setAttribute("data-code-actions-wired","true");let e=t.querySelector('code[class*="language-"]'),o="Code";if(e){let t=(e.getAttribute("class")||"").match(/language-(\S+)/);t&&(o=t[1]+" code")}t.setAttribute("data-code-language",o);let n=document.createElement("div");n.className="pict-content-code-container";let r=document.createElement("div");r.className="pict-content-code-actions",r.setAttribute("aria-hidden","false");let i=document.createElement("button");i.type="button",i.className="pict-content-code-action-btn",i.setAttribute("aria-label","Open code in fullscreen"),i.setAttribute("title","Open in fullscreen"),i.innerHTML='<svg viewBox="0 0 16 16" aria-hidden="true"><polyline points="3 6 3 3 6 3"></polyline><polyline points="13 6 13 3 10 3"></polyline><polyline points="3 10 3 13 6 13"></polyline><polyline points="13 10 13 13 10 13"></polyline></svg>';let a=document.createElement("button");a.type="button",a.className="pict-content-code-action-btn",a.setAttribute("aria-label","Copy code to clipboard"),a.setAttribute("title","Copy code"),a.innerHTML='<svg viewBox="0 0 16 16" aria-hidden="true"><rect x="5" y="5" width="9" height="9" rx="1.25"></rect><path d="M11 5V3.25A1.25 1.25 0 0 0 9.75 2H3.25A1.25 1.25 0 0 0 2 3.25v6.5A1.25 1.25 0 0 0 3.25 11H5"></path></svg>',r.appendChild(i),r.appendChild(a),t.parentNode.insertBefore(n,t),n.appendChild(t),n.appendChild(r),i.addEventListener("click",e=>{e.preventDefault(),e.stopPropagation(),this._openCodeFullscreen(t)}),a.addEventListener("click",e=>{e.preventDefault(),e.stopPropagation(),this._copyCodeToClipboard(t,a)})}_openCodeFullscreen(t){let e=this._buildFullscreenOverlay();t.setAttribute("data-fullscreen-source","code"),t.setAttribute("data-fullscreen-title",t.getAttribute("data-code-language")||"Code"),e.open(t)}_copyCodeToClipboard(t,e){let o=t.querySelector("code"),n=o?o.textContent:t.textContent,r=()=>{e.classList.add("is-copied"),e.setAttribute("title","Copied!"),setTimeout(()=>{e.classList.remove("is-copied"),e.setAttribute("title","Copy code")},1400)},i=()=>{e.classList.add("is-copy-failed"),e.setAttribute("title","Copy failed"),setTimeout(()=>{e.classList.remove("is-copy-failed"),e.setAttribute("title","Copy code")},1400)};try{if(navigator&&navigator.clipboard&&"function"==typeof navigator.clipboard.writeText)return void navigator.clipboard.writeText(n).then(r).catch(i)}catch(t){}try{let t=document.createElement("textarea");t.value=n,t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select();let e=document.execCommand("copy");document.body.removeChild(t),e?r():i()}catch(t){i()}}_buildFullscreenOverlay(){if(r._FullscreenOverlay)return r._FullscreenOverlay;let t=document.createElement("div");t.className="pict-fullscreen-overlay",t.setAttribute("role","dialog"),t.setAttribute("aria-modal","true"),t.setAttribute("aria-labelledby","pict-fullscreen-title"),t.setAttribute("hidden",""),t.innerHTML='<div class="pict-fullscreen-titlebar"><span class="pict-fullscreen-title" id="pict-fullscreen-title"></span><div class="pict-fullscreen-controls"><button type="button" class="pict-fullscreen-btn" data-action="zoom-out" aria-label="Zoom out" title="Zoom out"><svg viewBox="0 0 16 16" aria-hidden="true"><line x1="3" y1="8" x2="13" y2="8"></line></svg></button><button type="button" class="pict-fullscreen-btn" data-action="zoom-reset" aria-label="Reset zoom" title="Reset zoom"><svg viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="5"></circle><line x1="8" y1="5" x2="8" y2="11"></line><line x1="5" y1="8" x2="11" y2="8"></line></svg></button><button type="button" class="pict-fullscreen-btn" data-action="zoom-in" aria-label="Zoom in" title="Zoom in"><svg viewBox="0 0 16 16" aria-hidden="true"><line x1="3" y1="8" x2="13" y2="8"></line><line x1="8" y1="3" x2="8" y2="13"></line></svg></button><button type="button" class="pict-fullscreen-btn pict-fullscreen-close" data-action="close" aria-label="Close" title="Close (Esc)"><svg viewBox="0 0 16 16" aria-hidden="true"><line x1="4" y1="4" x2="12" y2="12"></line><line x1="12" y1="4" x2="4" y2="12"></line></svg></button></div></div><div class="pict-fullscreen-stage"><div class="pict-fullscreen-content"></div></div>',document.body.appendChild(t);let e={scale:1,translateX:0,translateY:0,isPanning:!1,didPan:!1,currentKind:"",panStartX:0,panStartY:0,panOrigX:0,panOrigY:0,pinchInitialDistance:0,pinchInitialScale:1},o=t.querySelector(".pict-fullscreen-stage"),n=t.querySelector(".pict-fullscreen-content"),i=t.querySelector(".pict-fullscreen-title"),a=()=>{n.style.transform="translate("+e.translateX+"px, "+e.translateY+"px) scale("+e.scale+")",o.classList.toggle("is-zoomed",e.scale>1.001)},s=(t,n,r)=>{let i=(s=t)<.5?.5:s>8?8:s;var s;let l=o.getBoundingClientRect(),c=void 0!==n?n:l.left+l.width/2,d=void 0!==r?r:l.top+l.height/2,p=c-(l.left+l.width/2),h=d-(l.top+l.height/2),u=i/e.scale;e.translateX=p-u*(p-e.translateX),e.translateY=h-u*(h-e.translateY),e.scale=i,a()},l=()=>{e.scale=1,e.translateX=0,e.translateY=0,a()},c=()=>{t.setAttribute("hidden",""),n.innerHTML="",l(),document.documentElement.style.removeProperty("overflow"),document.removeEventListener("keydown",d)},d=t=>{"Escape"===t.key?(t.preventDefault(),c()):"+"===t.key||"="===t.key?(t.preventDefault(),s(e.scale+.25)):"-"===t.key||"_"===t.key?(t.preventDefault(),s(e.scale-.25)):"0"===t.key&&(t.preventDefault(),l())};t.addEventListener("click",n=>{e.didPan?e.didPan=!1:n.target!==t&&n.target!==o||c()}),t.querySelectorAll("[data-action]").forEach(t=>{t.addEventListener("click",o=>{o.stopPropagation();let n=t.getAttribute("data-action");"close"===n?c():"zoom-in"===n?s(e.scale+.25):"zoom-out"===n?s(e.scale-.25):"zoom-reset"===n&&l()})}),o.addEventListener("wheel",t=>{if("code"===e.currentKind)return;t.preventDefault();let o=.15*(-t.deltaY>0?1:-1);s(e.scale+o,t.clientX,t.clientY)},{passive:!1}),o.addEventListener("pointerdown",t=>{"code"!==e.currentKind&&(e.scale<=1.001||t.target.closest(".pict-fullscreen-controls")||(e.isPanning=!0,e.panStartX=t.clientX,e.panStartY=t.clientY,e.panOrigX=e.translateX,e.panOrigY=e.translateY,o.setPointerCapture(t.pointerId),o.classList.add("is-panning")))}),o.addEventListener("pointermove",t=>{e.isPanning&&(e.translateX=e.panOrigX+(t.clientX-e.panStartX),e.translateY=e.panOrigY+(t.clientY-e.panStartY),a())});let p=t=>{if(e.isPanning){e.isPanning=!1,e.didPan=!0,o.classList.remove("is-panning");try{o.releasePointerCapture(t.pointerId)}catch(t){}}};o.addEventListener("pointerup",p),o.addEventListener("pointercancel",p);let h={};return o.addEventListener("touchstart",t=>{for(let e=0;e<t.touches.length;e++){let o=t.touches[e];h[o.identifier]={x:o.clientX,y:o.clientY}}if(2===t.touches.length){let o=t.touches[0],n=t.touches[1],r=n.clientX-o.clientX,i=n.clientY-o.clientY;e.pinchInitialDistance=Math.sqrt(r*r+i*i),e.pinchInitialScale=e.scale}},{passive:!0}),o.addEventListener("touchmove",t=>{if(2===t.touches.length&&e.pinchInitialDistance>0){t.preventDefault();let o=t.touches[0],n=t.touches[1],r=n.clientX-o.clientX,i=n.clientY-o.clientY,a=Math.sqrt(r*r+i*i)/e.pinchInitialDistance,l=(o.clientX+n.clientX)/2,c=(o.clientY+n.clientY)/2;s(e.pinchInitialScale*a,l,c)}},{passive:!1}),o.addEventListener("touchend",()=>{h={},e.pinchInitialDistance=0}),r._FullscreenOverlay={element:t,content:n,titleEl:i,state:e,open:o=>{let r=o.getAttribute("data-fullscreen-title")||"";i.textContent=r,n.innerHTML="";let a,s=o.getAttribute("data-fullscreen-source");if(e.currentKind=s||"","mermaid"===s){let t=o.querySelector("svg");t?(a=t.cloneNode(!0),a.classList.add("pict-fullscreen-mermaid-svg"),a.removeAttribute("style"),a.removeAttribute("width"),a.removeAttribute("height")):a=o.cloneNode(!0)}else"image"===s?(a=o.cloneNode(!0),a.classList.add("pict-fullscreen-img")):(a=o.cloneNode(!0),a.classList.add("pict-fullscreen-codewrap"));n.appendChild(a);let c=t.querySelectorAll('[data-action="zoom-in"], [data-action="zoom-out"], [data-action="zoom-reset"]');for(let t=0;t<c.length;t++)c[t].style.display="code"===s?"none":"";l(),t.removeAttribute("hidden"),document.documentElement.style.overflow="hidden",document.addEventListener("keydown",d)},close:c},r._FullscreenOverlay}_openFullscreen(t){this._buildFullscreenOverlay().open(t)}showLoading(t,e){let o=e||"Pict-Content-Body",n=t||"Loading content...";this.pict.ContentAssignment.assignContent("#"+o,'<div class="pict-content-loading">'+n+"</div>")}}e.exports=r,e.exports.default_configuration={ViewIdentifier:"Pict-Content",DefaultRenderable:"Pict-Content-Display",DefaultDestinationAddress:"#Pict-Content-Container",AutoRender:!1,CSS:"\n\t\t.pict-content {\n\t\t\tpadding: 2em 3em;\n\t\t\tmax-width: 900px;\n\t\t\tmargin: 0 auto;\n\t\t}\n\t\t.pict-content-loading {\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\tjustify-content: center;\n\t\t\tmin-height: 200px;\n\t\t\tcolor: var(--theme-color-text-muted, #8A7F72);\n\t\t\tfont-size: 1em;\n\t\t}\n\t\t.pict-content h1 {\n\t\t\tfont-size: 2em;\n\t\t\tcolor: var(--theme-color-text-primary, #3D3229);\n\t\t\tborder-bottom: 1px solid var(--theme-color-border-default, #DDD6CA);\n\t\t\tpadding-bottom: 0.3em;\n\t\t\tmargin-top: 0;\n\t\t}\n\t\t.pict-content h2 {\n\t\t\tfont-size: 1.5em;\n\t\t\tcolor: var(--theme-color-text-primary, #3D3229);\n\t\t\tborder-bottom: 1px solid var(--theme-color-border-light, #EAE3D8);\n\t\t\tpadding-bottom: 0.25em;\n\t\t\tmargin-top: 1.5em;\n\t\t}\n\t\t.pict-content h3 {\n\t\t\tfont-size: 1.25em;\n\t\t\tcolor: var(--theme-color-text-primary, #3D3229);\n\t\t\tmargin-top: 1.25em;\n\t\t}\n\t\t.pict-content h4, .pict-content h5, .pict-content h6 {\n\t\t\tcolor: var(--theme-color-text-secondary, #5E5549);\n\t\t\tmargin-top: 1em;\n\t\t}\n\t\t.pict-content p {\n\t\t\tline-height: 1.7;\n\t\t\tcolor: var(--theme-color-text-primary, #423D37);\n\t\t\tmargin: 0.75em 0;\n\t\t}\n\t\t.pict-content a {\n\t\t\tcolor: var(--theme-color-brand-primary, #2E7D74);\n\t\t\ttext-decoration: none;\n\t\t}\n\t\t.pict-content a:hover {\n\t\t\ttext-decoration: underline;\n\t\t}\n\t\t/* ─── Code blocks ─────────────────────────────────────\n\t\t Background, text color, line-number gutter, and every\n\t\t syntax token route through pict-provider-theme tokens —\n\t\t the same set pict-section-code (the live editor) uses.\n\t\t This way the rendered-preview code blocks look identical\n\t\t to the live editor and re-skin together when the theme\n\t\t switches. Previous version used the text-primary token\n\t\t as the code background (a TEXT token used as BACKGROUND),\n\t\t which broke in dark mode and any palette where text and\n\t\t background-tertiary diverge.\n\t\t*/\n\t\t.pict-content pre {\n\t\t\tbackground: var(--theme-color-background-tertiary, #F0ECE4);\n\t\t\tcolor: var(--theme-color-text-primary, #3D3229);\n\t\t\tborder: 1px solid var(--theme-color-border-default, #DDD6CA);\n\t\t\tpadding: 1.25em;\n\t\t\tborder-radius: 6px;\n\t\t\toverflow-x: auto;\n\t\t\tline-height: 1.5;\n\t\t\tfont-size: 0.9em;\n\t\t\tfont-family: var(--theme-typography-family-mono, 'SFMono-Regular', 'SF Mono', 'Menlo', 'Consolas', 'Liberation Mono', 'Courier New', monospace);\n\t\t}\n\t\t/* Inline code (single backtick) — slightly differentiated\n\t\t from block code so it doesn't disappear into prose. */\n\t\t.pict-content code {\n\t\t\tbackground: var(--theme-color-background-secondary, #FAF8F4);\n\t\t\tcolor: var(--theme-color-text-primary, #3D3229);\n\t\t\tpadding: 0.15em 0.4em;\n\t\t\tborder-radius: 3px;\n\t\t\tfont-size: 0.9em;\n\t\t\tfont-family: var(--theme-typography-family-mono, 'SFMono-Regular', 'SF Mono', 'Menlo', monospace);\n\t\t}\n\t\t.pict-content-code-wrap {\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: row;\n\t\t\tfont-family: var(--theme-typography-family-mono, 'SFMono-Regular', 'SF Mono', 'Menlo', 'Consolas', 'Liberation Mono', 'Courier New', monospace);\n\t\t\tfont-size: 14px;\n\t\t\tline-height: 1.5;\n\t\t\tborder: 1px solid var(--theme-color-border-default, #DDD6CA);\n\t\t\tborder-radius: 6px;\n\t\t\toverflow: hidden;\n\t\t\tmargin: 1em 0;\n\t\t\tbackground: var(--theme-color-background-tertiary, #F0ECE4);\n\t\t}\n\t\t.pict-content-code-wrap .pict-content-code-line-numbers {\n\t\t\twidth: 40px;\n\t\t\tmin-width: 40px;\n\t\t\tpadding: 1.25em 0;\n\t\t\ttext-align: right;\n\t\t\tbackground: var(--theme-color-background-secondary, #FAF8F4);\n\t\t\tborder-right: 1px solid var(--theme-color-border-default, #DDD6CA);\n\t\t\tcolor: var(--theme-color-text-muted, #8A7F72);\n\t\t\tfont-family: inherit;\n\t\t\tfont-size: inherit;\n\t\t\tline-height: inherit;\n\t\t\tuser-select: none;\n\t\t\tpointer-events: none;\n\t\t\tbox-sizing: border-box;\n\t\t}\n\t\t.pict-content-code-wrap .pict-content-code-line-numbers span {\n\t\t\tdisplay: block;\n\t\t\tpadding: 0 8px 0 0;\n\t\t}\n\t\t.pict-content-code-wrap pre {\n\t\t\tmargin: 0;\n\t\t\tbackground: var(--theme-color-background-tertiary, #F0ECE4);\n\t\t\tcolor: var(--theme-color-text-primary, #3D3229);\n\t\t\tborder: none;\n\t\t\tpadding: 1.25em 1.25em 1.25em 8px;\n\t\t\tborder-radius: 0 6px 6px 0;\n\t\t\toverflow-x: auto;\n\t\t\tline-height: 1.5;\n\t\t\tfont-size: inherit;\n\t\t\tflex: 1;\n\t\t\tmin-width: 0;\n\t\t}\n\t\t.pict-content-code-wrap pre code {\n\t\t\tbackground: none;\n\t\t\tpadding: 0;\n\t\t\tcolor: inherit;\n\t\t\tfont-size: inherit;\n\t\t\tfont-family: inherit;\n\t\t}\n\t\t/* Syntax token colors — every class binds to a --theme-color-syntax-*\n\t\t variable, the same tokens pict-section-code (the live editor) uses.\n\t\t Each var() carries an Atom One Light hex as fallback for hosts\n\t\t without a theme provider; themes that DO ship syntax tokens\n\t\t (retold-default, retold-content-system, etc.) drive everything\n\t\t coherently. */\n\t\t.pict-content-code-wrap .keyword { color: var(--theme-color-syntax-keyword, #A626A4); }\n\t\t.pict-content-code-wrap .string { color: var(--theme-color-syntax-string, #50A14F); }\n\t\t.pict-content-code-wrap .number { color: var(--theme-color-syntax-number, #986801); }\n\t\t.pict-content-code-wrap .comment { color: var(--theme-color-syntax-comment, #A0A1A7); font-style: italic; }\n\t\t.pict-content-code-wrap .operator { color: var(--theme-color-syntax-operator, #0184BC); }\n\t\t.pict-content-code-wrap .punctuation { color: var(--theme-color-syntax-punctuation, #383A42); }\n\t\t.pict-content-code-wrap .function-name { color: var(--theme-color-syntax-function, #4078F2); }\n\t\t.pict-content-code-wrap .property { color: var(--theme-color-syntax-property, #E45649); }\n\t\t.pict-content-code-wrap .tag { color: var(--theme-color-syntax-tag, #E45649); }\n\t\t.pict-content-code-wrap .attr-name { color: var(--theme-color-syntax-attrname, #986801); }\n\t\t.pict-content-code-wrap .attr-value { color: var(--theme-color-syntax-attrvalue, #50A14F); }\n\t\t.pict-content-code-wrap .builtin { color: var(--theme-color-syntax-builtin, #986801); }\n\t\t.pict-content-code-wrap .type { color: var(--theme-color-syntax-type, #C18401); }\n\t\t.pict-content-code-wrap .variable { color: var(--theme-color-syntax-variable, #383A42); }\n\t\t.pict-content pre code {\n\t\t\tbackground: none;\n\t\t\tpadding: 0;\n\t\t\tcolor: inherit;\n\t\t\tfont-size: inherit;\n\t\t}\n\t\t.pict-content blockquote {\n\t\t\tborder-left: 4px solid var(--theme-color-brand-primary, #2E7D74);\n\t\t\tmargin: 1em 0;\n\t\t\tpadding: 0.5em 1em;\n\t\t\tbackground: var(--theme-color-background-secondary, #F7F5F0);\n\t\t\tcolor: var(--theme-color-text-secondary, #5E5549);\n\t\t}\n\t\t.pict-content blockquote p {\n\t\t\tmargin: 0.25em 0;\n\t\t}\n\t\t.pict-content ul, .pict-content ol {\n\t\t\tpadding-left: 2em;\n\t\t\tline-height: 1.8;\n\t\t}\n\t\t.pict-content li {\n\t\t\tmargin: 0.25em 0;\n\t\t\tcolor: var(--theme-color-text-primary, #423D37);\n\t\t}\n\t\t.pict-content hr {\n\t\t\tborder: none;\n\t\t\tborder-top: 1px solid var(--theme-color-border-default, #DDD6CA);\n\t\t\tmargin: 2em 0;\n\t\t}\n\t\t.pict-content table {\n\t\t\twidth: 100%;\n\t\t\tborder-collapse: collapse;\n\t\t\tmargin: 1em 0;\n\t\t}\n\t\t.pict-content table th {\n\t\t\tbackground: var(--theme-color-background-secondary, #F5F0E8);\n\t\t\tborder: 1px solid var(--theme-color-border-default, #DDD6CA);\n\t\t\tpadding: 0.6em 0.8em;\n\t\t\ttext-align: left;\n\t\t\tfont-weight: 600;\n\t\t\tcolor: var(--theme-color-text-primary, #3D3229);\n\t\t}\n\t\t.pict-content table td {\n\t\t\tborder: 1px solid var(--theme-color-border-default, #DDD6CA);\n\t\t\tpadding: 0.5em 0.8em;\n\t\t\tcolor: var(--theme-color-text-primary, #423D37);\n\t\t}\n\t\t.pict-content table tr:nth-child(even) {\n\t\t\tbackground: var(--theme-color-background-secondary, #F7F5F0);\n\t\t}\n\t\t.pict-content img {\n\t\t\tmax-width: 100%;\n\t\t\theight: auto;\n\t\t}\n\t\t.pict-content pre.mermaid {\n\t\t\tbackground: var(--theme-color-background-panel, #fff);\n\t\t\tcolor: var(--theme-color-text-primary, #2A241E);\n\t\t\ttext-align: center;\n\t\t\tpadding: 1em;\n\t\t}\n\t\t.pict-content pre.mermaid text,\n\t\t.pict-content pre.mermaid .nodeLabel,\n\t\t.pict-content pre.mermaid .edgeLabel,\n\t\t.pict-content pre.mermaid .label,\n\t\t.pict-content pre.mermaid .cluster-label,\n\t\t.pict-content pre.mermaid span,\n\t\t.pict-content pre.mermaid foreignObject p,\n\t\t.pict-content pre.mermaid foreignObject div,\n\t\t.pict-content pre.mermaid foreignObject span {\n\t\t\tcolor: var(--theme-color-text-primary, #2A241E) !important;\n\t\t\tfill: var(--theme-color-text-primary, #2A241E) !important;\n\t\t}\n\t\t.pict-content pre.mermaid .edgePath .path {\n\t\t\tstroke: var(--theme-color-text-secondary, #5E5549) !important;\n\t\t}\n\t\t.pict-content pre.mermaid .arrowheadPath {\n\t\t\tfill: var(--theme-color-text-secondary, #5E5549) !important;\n\t\t}\n\t\t.pict-content .pict-content-katex-display {\n\t\t\ttext-align: center;\n\t\t\tmargin: 1em 0;\n\t\t\tpadding: 0.5em;\n\t\t\toverflow-x: auto;\n\t\t}\n\t\t.pict-content .pict-content-katex-inline {\n\t\t\tdisplay: inline;\n\t\t}\n\n\t\t/* Fullscreen viewer for images and mermaid diagrams (click-to-zoom) */\n\t\t.pict-content [data-fullscreen-source] {\n\t\t\tcursor: zoom-in;\n\t\t\toutline: 1px solid transparent;\n\t\t\toutline-offset: 3px;\n\t\t\tborder-radius: 4px;\n\t\t\ttransition: outline-color 0.15s ease;\n\t\t}\n\t\t.pict-content [data-fullscreen-source]:hover {\n\t\t\toutline-color: var(--theme-color-brand-primary, #2E7D74);\n\t\t}\n\t\t/* Code block container with hover-revealed action buttons */\n\t\t.pict-content-code-container {\n\t\t\tposition: relative;\n\t\t\tdisplay: flex;\n\t\t\talign-items: flex-start;\n\t\t\tgap: 8px;\n\t\t\tmargin: 1em 0;\n\t\t}\n\t\t.pict-content-code-container > .pict-content-code-wrap {\n\t\t\tmargin: 0;\n\t\t\tflex: 1 1 auto;\n\t\t\tmin-width: 0;\n\t\t}\n\t\t.pict-content-code-actions {\n\t\t\tposition: sticky;\n\t\t\ttop: 64px;\n\t\t\talign-self: flex-start;\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t\tgap: 6px;\n\t\t\tflex: 0 0 auto;\n\t\t\tpadding-top: 6px;\n\t\t\topacity: 0;\n\t\t\ttransform: translateX(-4px);\n\t\t\ttransition: opacity 0.15s ease, transform 0.15s ease;\n\t\t\tpointer-events: none;\n\t\t}\n\t\t.pict-content-code-container:hover .pict-content-code-actions,\n\t\t.pict-content-code-container:focus-within .pict-content-code-actions {\n\t\t\topacity: 1;\n\t\t\ttransform: translateX(0);\n\t\t\tpointer-events: auto;\n\t\t}\n\t\t.pict-content-code-action-btn {\n\t\t\tdisplay: inline-flex;\n\t\t\talign-items: center;\n\t\t\tjustify-content: center;\n\t\t\twidth: 28px;\n\t\t\theight: 28px;\n\t\t\tpadding: 0;\n\t\t\tbackground: var(--theme-color-background-panel, #FFFFFF);\n\t\t\tcolor: var(--theme-color-text-muted, #5E5549);\n\t\t\tborder: 1px solid var(--theme-color-border-default, #DDD6CA);\n\t\t\tborder-radius: 6px;\n\t\t\tcursor: pointer;\n\t\t\tbox-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);\n\t\t\ttransition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;\n\t\t}\n\t\t.pict-content-code-action-btn svg {\n\t\t\tdisplay: block;\n\t\t\twidth: 14px;\n\t\t\theight: 14px;\n\t\t\tstroke: currentColor;\n\t\t\tfill: none;\n\t\t\tstroke-width: 1.6;\n\t\t\tstroke-linecap: round;\n\t\t\tstroke-linejoin: round;\n\t\t}\n\t\t.pict-content-code-action-btn:hover {\n\t\t\tbackground: var(--theme-color-brand-primary, #2E7D74);\n\t\t\tcolor: var(--theme-color-text-on-brand, #FFFFFF);\n\t\t\tborder-color: var(--theme-color-brand-primary, #2E7D74);\n\t\t\tbox-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);\n\t\t}\n\t\t.pict-content-code-action-btn:focus-visible {\n\t\t\toutline: 2px solid var(--theme-color-brand-primary, #2E7D74);\n\t\t\toutline-offset: 2px;\n\t\t}\n\t\t.pict-content-code-action-btn.is-copied {\n\t\t\tbackground: var(--theme-color-brand-primary, #2E7D74);\n\t\t\tcolor: var(--theme-color-text-on-brand, #FFFFFF);\n\t\t\tborder-color: var(--theme-color-brand-primary, #2E7D74);\n\t\t}\n\t\t.pict-content-code-action-btn.is-copy-failed {\n\t\t\tbackground: var(--theme-color-status-error, #B23A3A);\n\t\t\tcolor: var(--theme-color-text-on-brand, #FFFFFF);\n\t\t\tborder-color: var(--theme-color-status-error, #B23A3A);\n\t\t}\n\t\t.pict-fullscreen-overlay {\n\t\t\tposition: fixed;\n\t\t\tinset: 0;\n\t\t\tz-index: 9999;\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t\tbackground: rgba(0, 0, 0, 0.62);\n\t\t\tbackdrop-filter: blur(6px);\n\t\t\t-webkit-backdrop-filter: blur(6px);\n\t\t\tcolor: var(--theme-color-text-primary, #2A241E);\n\t\t}\n\t\t.pict-fullscreen-overlay[hidden] {\n\t\t\tdisplay: none;\n\t\t}\n\t\t.pict-fullscreen-titlebar {\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\tjustify-content: space-between;\n\t\t\tgap: 1em;\n\t\t\theight: 48px;\n\t\t\tpadding: 0 1em;\n\t\t\tbackground: var(--theme-color-background-panel, #FFFFFF);\n\t\t\tcolor: var(--theme-color-text-primary, #1A1612);\n\t\t\tborder-bottom: 1px solid var(--theme-color-border-default, #DDD6CA);\n\t\t\tbox-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);\n\t\t\tflex: 0 0 auto;\n\t\t}\n\t\t.pict-fullscreen-title {\n\t\t\tfont-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif;\n\t\t\tfont-size: 0.95em;\n\t\t\tfont-weight: 600;\n\t\t\tletter-spacing: 0.01em;\n\t\t\twhite-space: nowrap;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t\tcolor: var(--theme-color-text-primary, #1A1612);\n\t\t}\n\t\t.pict-fullscreen-controls {\n\t\t\tdisplay: inline-flex;\n\t\t\talign-items: center;\n\t\t\tgap: 4px;\n\t\t}\n\t\t.pict-fullscreen-btn {\n\t\t\tdisplay: inline-flex;\n\t\t\talign-items: center;\n\t\t\tjustify-content: center;\n\t\t\twidth: 32px;\n\t\t\theight: 32px;\n\t\t\tpadding: 0;\n\t\t\tbackground: transparent;\n\t\t\tborder: 1px solid transparent;\n\t\t\tborder-radius: 6px;\n\t\t\tcolor: var(--theme-color-text-muted, #5E5549);\n\t\t\tcursor: pointer;\n\t\t\ttransition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;\n\t\t}\n\t\t.pict-fullscreen-btn svg {\n\t\t\tdisplay: block;\n\t\t\twidth: 16px;\n\t\t\theight: 16px;\n\t\t\tstroke: currentColor;\n\t\t\tfill: none;\n\t\t\tstroke-width: 1.75;\n\t\t\tstroke-linecap: round;\n\t\t\tstroke-linejoin: round;\n\t\t}\n\t\t.pict-fullscreen-btn:hover {\n\t\t\tbackground: var(--theme-color-border-light, #EAE3D8);\n\t\t\tcolor: var(--theme-color-text-primary, #1A1612);\n\t\t}\n\t\t.pict-fullscreen-btn:focus-visible {\n\t\t\toutline: 2px solid var(--theme-color-brand-primary, #2E7D74);\n\t\t\toutline-offset: 2px;\n\t\t}\n\t\t.pict-fullscreen-close:hover {\n\t\t\tbackground: var(--theme-color-brand-primary, #2E7D74);\n\t\t\tcolor: var(--theme-color-text-on-brand, #FFFFFF);\n\t\t}\n\t\t.pict-fullscreen-stage {\n\t\t\tflex: 1 1 auto;\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\tjustify-content: center;\n\t\t\toverflow: hidden;\n\t\t\tpadding: 1.5em;\n\t\t\tcursor: zoom-in;\n\t\t\ttouch-action: none;\n\t\t}\n\t\t.pict-fullscreen-stage.is-zoomed {\n\t\t\tcursor: grab;\n\t\t}\n\t\t.pict-fullscreen-stage.is-panning {\n\t\t\tcursor: grabbing;\n\t\t}\n\t\t.pict-fullscreen-content {\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\tjustify-content: center;\n\t\t\tmax-width: 100%;\n\t\t\tmax-height: 100%;\n\t\t\ttransform-origin: center center;\n\t\t\ttransition: transform 0.05s linear;\n\t\t\twill-change: transform;\n\t\t}\n\t\t.pict-fullscreen-content > * {\n\t\t\tbox-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);\n\t\t}\n\t\t.pict-fullscreen-content .pict-fullscreen-img {\n\t\t\tmax-width: 90vw;\n\t\t\tmax-height: calc(100vh - 96px);\n\t\t\twidth: auto;\n\t\t\theight: auto;\n\t\t\tobject-fit: contain;\n\t\t\tbackground: var(--theme-color-background-panel, #FFFFFF);\n\t\t\tpadding: 12px;\n\t\t\tborder-radius: 6px;\n\t\t}\n\t\t.pict-fullscreen-content .pict-fullscreen-mermaid-svg {\n\t\t\twidth: min(90vw, 1400px);\n\t\t\theight: auto;\n\t\t\tmax-height: calc(100vh - 96px);\n\t\t\tbackground: var(--theme-color-background-panel, #FFFFFF);\n\t\t\tpadding: 16px;\n\t\t\tborder-radius: 6px;\n\t\t}\n\t\t.pict-fullscreen-content .pict-fullscreen-codewrap {\n\t\t\tmax-width: 90vw;\n\t\t\tmax-height: calc(100vh - 96px);\n\t\t\tmargin: 0;\n\t\t\toverflow: auto;\n\t\t\tbox-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);\n\t\t}\n\t",Templates:[{Hash:"Pict-Content-Template",Template:'\n<div class="pict-content" id="Pict-Content-Body">\n\t<div class="pict-content-loading">Loading content...</div>\n</div>\n'}],Renderables:[{RenderableHash:"Pict-Content-Display",TemplateHash:"Pict-Content-Template",DestinationAddress:"#Pict-Content-Container",RenderMethod:"replace"}]}},{"pict-view":75}],15:[function(t,e,o){e.exports=class{constructor(t){this._modal=t}confirm(t,e){let o=Object.assign({},this._modal.options.DefaultConfirmOptions,e);return new Promise(e=>{let n=this._buildDialog(o.title,t,e,o);this._showDialog(n,e)})}doubleConfirm(t,e){let o=Object.assign({},this._modal.options.DefaultDoubleConfirmOptions,e);return new Promise(e=>{let n=this._buildDoubleConfirmDialog(o.title,t,e,o);this._showDialog(n,e)})}_buildDialog(t,e,o,n){let r=this._modal._nextId(),i=n.dangerous?"danger":"primary",a=document.createElement("div");a.className="pict-modal-dialog",n.unbounded&&(a.className+=" pict-modal-dialog--unbounded"),a.id="pict-modal-"+r,a.setAttribute("role","dialog"),a.setAttribute("aria-modal","true"),a.style.width="420px",a.innerHTML='<div class="pict-modal-dialog-header"><span class="pict-modal-dialog-title">'+this._escapeHTML(t)+'</span><button class="pict-modal-dialog-close" aria-label="Close">&times;</button></div><div class="pict-modal-dialog-body"><p>'+this._escapeHTML(e)+'</p></div><div class="pict-modal-dialog-footer"><button class="pict-modal-btn" data-action="cancel">'+this._escapeHTML(n.cancelLabel)+'</button><button class="pict-modal-btn pict-modal-btn--'+i+'" data-action="confirm">'+this._escapeHTML(n.confirmLabel)+"</button></div>";let s=a.querySelector(".pict-modal-dialog-close"),l=a.querySelector('[data-action="cancel"]'),c=a.querySelector('[data-action="confirm"]'),d=t=>{this._dismissDialog(a,t,o)};return s.addEventListener("click",()=>{d(!1)}),l.addEventListener("click",()=>{d(!1)}),c.addEventListener("click",()=>{d(!0)}),a._dismiss=d,a._focusTarget=l,a}_buildDoubleConfirmDialog(t,e,o,n){let r=this._modal._nextId(),i="string"==typeof n.confirmPhrase&&n.confirmPhrase.length>0,a=document.createElement("div");a.className="pict-modal-dialog",n.unbounded&&(a.className+=" pict-modal-dialog--unbounded"),a.id="pict-modal-"+r,a.setAttribute("role","dialog"),a.setAttribute("aria-modal","true"),a.style.width="420px";let s="<p>"+this._escapeHTML(e)+"</p>";if(i){let t=n.phrasePrompt.replace("{phrase}",n.confirmPhrase);s+='<div class="pict-modal-confirm-prompt">'+this._escapeHTML(t)+'</div><input type="text" class="pict-modal-confirm-input" autocomplete="off" spellcheck="false" />'}a.innerHTML='<div class="pict-modal-dialog-header"><span class="pict-modal-dialog-title">'+this._escapeHTML(t)+'</span><button class="pict-modal-dialog-close" aria-label="Close">&times;</button></div><div class="pict-modal-dialog-body">'+s+'</div><div class="pict-modal-dialog-footer"><button class="pict-modal-btn" data-action="cancel">'+this._escapeHTML(n.cancelLabel)+'</button><button class="pict-modal-btn pict-modal-btn--danger" data-action="confirm" disabled>'+this._escapeHTML(n.confirmLabel)+"</button></div>";let l=a.querySelector(".pict-modal-dialog-close"),c=a.querySelector('[data-action="cancel"]'),d=a.querySelector('[data-action="confirm"]'),p=t=>{this._dismissDialog(a,t,o)};if(l.addEventListener("click",()=>{p(!1)}),c.addEventListener("click",()=>{p(!1)}),i){let t=a.querySelector(".pict-modal-confirm-input");t.addEventListener("input",()=>{d.disabled=t.value!==n.confirmPhrase}),d.addEventListener("click",()=>{d.disabled||p(!0)}),a._focusTarget=t}else{let t=0;n.confirmLabel;d.disabled=!1,d.addEventListener("click",()=>{t++,1===t?d.textContent="Click again to confirm":p(!0)}),a._focusTarget=c}return a._dismiss=p,a}_showDialog(t,e){let o={element:t,dismiss:t._dismiss,type:"confirm"},n=null;this._modal.options.OverlayClickDismisses&&(n=()=>{t._dismiss(!1)}),this._modal._overlay.show(n),document.body.appendChild(t),this._modal._activeModals.push(o),t.offsetHeight,t.classList.add("pict-modal-visible"),t._focusTarget&&t._focusTarget.focus(),t._keyHandler=e=>{"Escape"===e.key&&t._dismiss(!1)},document.addEventListener("keydown",t._keyHandler)}_dismissDialog(t,e,o){if(!t._dismissed){if(t._dismissed=!0,t._keyHandler&&document.removeEventListener("keydown",t._keyHandler),t.classList.remove("pict-modal-visible"),this._modal._activeModals=this._modal._activeModals.filter(e=>e.element!==t),this._modal._activeModals.length>0){let t=this._modal._activeModals[this._modal._activeModals.length-1];this._modal._overlay.updateClickHandler(this._modal.options.OverlayClickDismisses?t.dismiss:null)}this._modal._overlay.hide(),setTimeout(()=>{t.parentNode&&t.parentNode.removeChild(t)},220),o(e)}}_escapeHTML(t){return"string"!=typeof t?"":t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}}},{}],16:[function(t,e,o){e.exports=class{constructor(t){this._modal=t,this._activeMenu=null}dropdown(t,e){let o=Object.assign({align:"left",position:"auto",maxHeight:"60vh",closeOnSelect:!0},e||{}),n=this._resolveAnchor(t),r=this._anchorRect(t,n);if(!r)return Promise.resolve(null);if(this._activeMenu&&this._activeMenu.anchor===n)return this._activeMenu.promise;this.dismissAll();let i,a=Array.isArray(o.items)?o.items:[],s=new Promise(t=>{i=t}),l=this._buildMenu(a,o);document.body.appendChild(l),this._positionMenu(l,r,o),l.offsetHeight,l.classList.add("pict-modal-visible");let c=t=>{l._dismissed||(l._dismissed=!0,document.removeEventListener("mousedown",p,!0),document.removeEventListener("keydown",h,!0),window.removeEventListener("resize",u),window.removeEventListener("scroll",u,!0),l.classList.remove("pict-modal-visible"),setTimeout(()=>{l.parentNode&&l.parentNode.removeChild(l)},180),this._activeMenu&&this._activeMenu.element===l&&(this._activeMenu=null),"function"==typeof o.onClose&&o.onClose(t),i(t))},d=l.querySelectorAll("[data-pict-modal-dropdown-item]");for(let t=0;t<d.length;t++){let e=d[t];e.addEventListener("click",t=>{if(e.hasAttribute("data-disabled"))return;t.stopPropagation();let n=parseInt(e.getAttribute("data-index"),10),r=a[n],i=e.getAttribute("data-hash");"function"==typeof o.onSelect&&o.onSelect(i,r),!1!==o.closeOnSelect&&c({Hash:i,Item:r})})}let p=t=>{l.contains(t.target)||n&&n.contains&&n.contains(t.target)||c(null)};document.addEventListener("mousedown",p,!0);let h=t=>{if("Escape"===t.key)return t.stopPropagation(),void c(null);if("ArrowDown"===t.key||"ArrowUp"===t.key)t.preventDefault(),this._focusNeighbor(l,"ArrowDown"===t.key?1:-1);else if("Enter"===t.key||" "===t.key){let e=document.activeElement;e&&l.contains(e)&&e.hasAttribute("data-pict-modal-dropdown-item")&&(t.preventDefault(),e.click())}};document.addEventListener("keydown",h,!0);let u=()=>{let e=this._anchorRect(t,n);e&&this._positionMenu(l,e,o)};return window.addEventListener("resize",u),window.addEventListener("scroll",u,!0),setTimeout(()=>{this._focusFirstEnabled(l)},0),this._activeMenu={element:l,anchor:n,promise:s,dismiss:c},s}dismissAll(){if(this._activeMenu){let t=this._activeMenu.dismiss;this._activeMenu=null,t(null)}}_resolveAnchor(t){return t?"string"==typeof t?document.querySelector(t):1===t.nodeType?t:null:null}_anchorRect(t,e){return e&&"function"==typeof e.getBoundingClientRect?e.getBoundingClientRect():t&&"object"==typeof t&&"number"==typeof t.left&&"number"==typeof t.top?{left:t.left,top:t.top,width:t.width||0,height:t.height||0,right:t.left+(t.width||0),bottom:t.top+(t.height||0)}:null}_buildMenu(t,e){let o=this._modal._nextId(),n=document.createElement("div");n.className="pict-modal-dropdown",e.className&&(n.className+=" "+e.className),n.id="pict-modal-dropdown-"+o,n.setAttribute("role","menu"),n.style.maxHeight=e.maxHeight;let r="";for(let e=0;e<t.length;e++){let o=t[e];if(o.Separator){r+='<div class="pict-modal-dropdown-separator" role="separator"></div>';continue}if(o.Header){r+='<div class="pict-modal-dropdown-header">'+this._escapeHTML(o.Header)+"</div>";continue}let n="pict-modal-dropdown-item";o.Style&&(n+=" pict-modal-dropdown-item--"+o.Style),o.Disabled&&(n+=" pict-modal-dropdown-item--disabled");let i=' data-pict-modal-dropdown-item data-index="'+e+'" data-hash="'+this._escapeHTML(o.Hash||"")+'" role="menuitem" tabindex="-1"';o.Disabled&&(i+=' aria-disabled="true" data-disabled'),o.Tooltip&&(i+=' title="'+this._escapeHTML(o.Tooltip)+'"');let a=o.Icon?'<span class="pict-modal-dropdown-item-icon">'+o.Icon+"</span>":"",s=o.Hint?'<span class="pict-modal-dropdown-item-hint">'+this._escapeHTML(o.Hint)+"</span>":"";r+='<div class="'+n+'"'+i+">"+a+'<span class="pict-modal-dropdown-item-label">'+this._escapeHTML(o.Label||"")+"</span>"+s+"</div>"}return n.innerHTML=r,n}_positionMenu(t,e,o){let n=o.minWidth||(e.width>=80?Math.ceil(e.width)+"px":"160px");t.style.minWidth=n;let r,i=t.getBoundingClientRect(),a=window.innerWidth||document.documentElement.clientWidth,s=(window.innerHeight||document.documentElement.clientHeight)-e.bottom-4,l=e.top-4;r="above"===o.position||"below"!==o.position&&(i.height>s&&l>s);let c,d,p=Math.max(80,(r?l:s)-8);t.style.maxHeight=p+"px",c="right"===o.align?e.right-i.width:"center"===o.align?e.left+(e.width-i.width)/2:e.left,c=Math.min(c,a-i.width-4),c=Math.max(4,c),r?(d=Math.max(4,e.top-i.height-4),t.classList.add("pict-modal-dropdown--above")):(d=e.bottom+4,t.classList.remove("pict-modal-dropdown--above")),t.style.left=Math.round(c)+"px",t.style.top=Math.round(d)+"px"}_focusFirstEnabled(t){let e=t.querySelectorAll("[data-pict-modal-dropdown-item]:not([data-disabled])");e.length&&e[0].focus()}_focusNeighbor(t,e){let o=Array.prototype.slice.call(t.querySelectorAll("[data-pict-modal-dropdown-item]:not([data-disabled])"));if(!o.length)return;let n=document.activeElement,r=o.indexOf(n);o[-1===r?e>0?0:o.length-1:(r+e+o.length)%o.length].focus()}_escapeHTML(t){return"string"!=typeof t?"":t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}}},{}],17:[function(t,e,o){e.exports=class{constructor(t){this._modal=t,this._element=null,this._refCount=0}show(t){this._refCount++,this._element||(this._element=document.createElement("div"),this._element.className="pict-modal-overlay",document.body.appendChild(this._element),this._element.offsetHeight,this._element.classList.add("pict-modal-visible")),t&&(this._currentClickHandler=t,this._element.onclick=t=>{t.target===this._element&&this._currentClickHandler&&this._currentClickHandler()})}updateClickHandler(t){this._currentClickHandler=t||null}hide(){if(this._refCount--,this._refCount<=0&&(this._refCount=0,this._element)){this._element.classList.remove("pict-modal-visible");let t=this._element;setTimeout(()=>{t.parentNode&&t.parentNode.removeChild(t)},220),this._element=null,this._currentClickHandler=null}}destroy(){this._refCount=0,this._element&&this._element.parentNode&&this._element.parentNode.removeChild(this._element),this._element=null,this._currentClickHandler=null}}},{}],18:[function(t,e,o){e.exports=class{constructor(t){this._modal=t,this._panels=[]}create(t,e){let o=this._modal&&this._modal.options&&this._modal.options.DefaultPanelOptions||{},n=Object.assign({},{position:"right",width:340,minWidth:200,maxWidth:600,collapsible:!0,collapsed:!1,persist:!1,persistKey:"",onResize:null,onToggle:null},o,e);if("undefined"==typeof document)return this._nullHandle();let r=document.querySelector(t);if(!r)return this._nullHandle();let i=this._modal._nextId(),a="right"===n.position,s=!1,l=n.width,c=!1;if(n.persist&&n.persistKey)try{let t=localStorage.getItem("pict-panel-"+n.persistKey);if(t){let e=JSON.parse(t);"number"==typeof e.width&&(l=e.width),"boolean"==typeof e.collapsed&&(n.collapsed=e.collapsed)}}catch(t){}r.classList.add("pict-panel"),r.classList.add(a?"pict-panel-right":"pict-panel-left"),r.style.width=l+"px","none"===r.style.display&&(r.style.display="");let d=document.createElement("div");d.className="pict-panel-edge "+(a?"pict-panel-edge-right":"pict-panel-edge-left");let p=document.createElement("div");p.className="pict-panel-resize",d.appendChild(p);let h=null;n.collapsible&&(h=document.createElement("div"),h.className="pict-panel-tab",h.title="Toggle panel",d.appendChild(h)),r.parentNode?a?r.parentNode.insertBefore(d,r):r.parentNode.insertBefore(d,r.nextSibling):r.insertBefore(d,r.firstChild);let u="undefined"!=typeof window&&window.pict?window.pict:null,m=t=>u&&"function"==typeof u.icon?u.icon(t):"",g=()=>{if(!h)return;let t=m("ChevronRight"),e=m("ChevronLeft");h.innerHTML=a?s?e:t:s?t:e},f=()=>{if(n.persist&&n.persistKey)try{localStorage.setItem("pict-panel-"+n.persistKey,JSON.stringify({width:l,collapsed:s}))}catch(t){}},b=()=>{s||c||(s=!0,r.classList.add("pict-panel-collapsed"),d.classList.add("pict-panel-edge-collapsed"),g(),f(),"function"==typeof n.onToggle&&n.onToggle(!0))},v=()=>{s&&!c&&(s=!1,d.classList.remove("pict-panel-edge-collapsed"),r.classList.remove("pict-panel-collapsed"),r.style.width=l+"px",g(),f(),"function"==typeof n.onToggle&&n.onToggle(!1))},y=()=>{s?v():b()};h&&h.addEventListener("click",t=>{t.stopPropagation(),y()});let w=t=>{if(s)return;t.preventDefault();let e=t.clientX,o=r.offsetWidth;p.classList.add("dragging"),r.style.transition="none",document.body.style.userSelect="none",document.body.style.cursor="col-resize";let i=t=>{let i=a?e-t.clientX:t.clientX-e,s=Math.max(n.minWidth,Math.min(n.maxWidth,o+i));r.style.width=s+"px"},c=t=>{document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",c),p.classList.remove("dragging"),r.style.transition="",document.body.style.userSelect="",document.body.style.cursor="",l=r.offsetWidth,f(),"function"==typeof n.onResize&&n.onResize(l)};document.addEventListener("mousemove",i),document.addEventListener("mouseup",c)};p.addEventListener("mousedown",w),g(),n.collapsed&&(s=!0,r.classList.add("pict-panel-collapsed"),d.classList.add("pict-panel-edge-collapsed"),g());let D={id:i,collapse:b,expand:v,toggle:y,setWidth:t=>{if(c)return;let e=Math.max(n.minWidth,Math.min(n.maxWidth,t));l=e,s||(r.style.width=e+"px"),f(),"function"==typeof n.onResize&&n.onResize(e)},destroy:()=>{if(c)return;c=!0,p.removeEventListener("mousedown",w),d.parentNode&&d.remove(),r.classList.remove("pict-panel","pict-panel-right","pict-panel-left","pict-panel-collapsed"),r.style.width="",r.style.transition="";let t=this._panels.indexOf(D);t>=0&&this._panels.splice(t,1)}};return this._panels.push(D),D}_nullHandle(){return{id:0,collapse:()=>{},expand:()=>{},toggle:()=>{},setWidth:()=>{},destroy:()=>{}}}destroyAll(){let t=this._panels.slice();for(let e=0;e<t.length;e++)t[e].destroy()}}},{}],19:[function(t,e,o){const n="pict-modal-shell:";class r{constructor(t,e,o){_defineProperty(this,"_onDragMove",t=>{if(!this._activeDrag)return;let e=this._activeDrag,o=(("x"===e.Axis?t.clientX:t.clientY)-e.StartCoord)*e.Direction;if(e.PendingSize=e.StartSize+o,!e.RAFId){let t=this;e.RAFId="undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame(function(){t._flushDrag()}):setTimeout(function(){t._flushDrag()},16)}}),_defineProperty(this,"_onDragEnd",()=>{if(!this._activeDrag)return;let t=this._activeDrag;null!==t.PendingSize&&this._flushDrag(),t.RAFId&&"undefined"!=typeof window&&window.cancelAnimationFrame&&window.cancelAnimationFrame(t.RAFId),document.body.classList.remove("pict-modal-shell-dragging-x"),document.body.classList.remove("pict-modal-shell-dragging-y"),t.Panel.El.classList.remove("pict-modal-shell-panel-resizing"),document.removeEventListener("pointermove",this._onDragMove),document.removeEventListener("pointerup",this._onDragEnd),t.Panel._persist(),this._activeDrag=null}),this._modal=t,this._viewport=e,this._options=o||{},this._panels=[],this._panelsByHash={},this._centerDestinationEl=null,this._idCounter=0,this._activeDrag=null,this._persistenceEnabled=!1!==this._options.Persistence,this._persistenceKey=this._persistenceEnabled?this._resolvePersistenceKey(this._options.PersistenceKey):null,this._buildSkeleton()}addPanel(t){let e=new i(this,t||{});return this._panels.push(e),this._panelsByHash[e.Hash]=e,this._mountPanel(e),e._renderContentView(),e}getPanel(t){return this._panelsByHash[t]||null}getPanels(){return this._panels.slice()}openPanel(t){let e=this._panelsByHash[t];return e&&e.popup(),e||null}center(t){if((t=t||{}).ContentDestinationId){this._centerDestinationEl&&this._centerDestinationEl.parentNode===this._centerEl&&this._centerEl.removeChild(this._centerDestinationEl);let e=document.createElement("div");e.id=t.ContentDestinationId,e.className="pict-modal-shell-center-content";let o=null,n=this._centerEl.children;for(let t=0;t<n.length;t++){let e=n[t];if(e.classList&&e.classList.contains("pict-modal-shell-panel-bottom")){o=e;break}}o?this._centerEl.insertBefore(e,o):this._centerEl.appendChild(e),this._centerDestinationEl=e}return this._centerEl}getCenterEl(){return this._centerEl}destroy(){for(let t=0;t<this._panels.length;t++)this._panels[t].destroy(!0);this._panels=[],this._panelsByHash={},this._wrapperEl&&this._wrapperEl.parentNode&&this._wrapperEl.parentNode.removeChild(this._wrapperEl),this._detachDragHandlers()}_resolvePersistenceKey(t){if("string"==typeof t&&t.length>0)return n+t;try{if("undefined"!=typeof window&&window.location&&window.location.hostname)return n+window.location.hostname}catch(t){}return n+"default"}_loadState(){if(!this._persistenceKey)return null;try{let t="undefined"!=typeof window?window.localStorage:null;if(!t)return null;let e=t.getItem(this._persistenceKey);if(!e)return null;let o=JSON.parse(e);return o&&1===o.Version?o.Panels&&"object"==typeof o.Panels?o.Panels:{}:null}catch(t){return null}}_loadPanelState(t){let e=this._loadState();return e&&e[t]||null}_savePanelState(t,e){if(this._persistenceKey)try{let o="undefined"!=typeof window?window.localStorage:null;if(!o)return;let n=this._loadState()||{};n[t]=e,o.setItem(this._persistenceKey,JSON.stringify({Version:1,Panels:n,SavedAt:(new Date).toISOString()}))}catch(t){}}_buildSkeleton(){this._viewport.innerHTML="",this._viewport.classList.add("pict-modal-shell-host"),this._wrapperEl=document.createElement("div"),this._wrapperEl.className="pict-modal-shell",this._topRow=document.createElement("div"),this._topRow.className="pict-modal-shell-row pict-modal-shell-row-top",this._wrapperEl.appendChild(this._topRow),this._middleRow=document.createElement("div"),this._middleRow.className="pict-modal-shell-row pict-modal-shell-row-middle",this._wrapperEl.appendChild(this._middleRow),this._leftStack=document.createElement("div"),this._leftStack.className="pict-modal-shell-side pict-modal-shell-side-left",this._middleRow.appendChild(this._leftStack),this._centerEl=document.createElement("div"),this._centerEl.className="pict-modal-shell-center",this._middleRow.appendChild(this._centerEl),this._rightStack=document.createElement("div"),this._rightStack.className="pict-modal-shell-side pict-modal-shell-side-right",this._middleRow.appendChild(this._rightStack),this._bottomRow=document.createElement("div"),this._bottomRow.className="pict-modal-shell-row pict-modal-shell-row-bottom",this._wrapperEl.appendChild(this._bottomRow),this._overlayLayer=document.createElement("div"),this._overlayLayer.className="pict-modal-shell-overlay-layer",this._middleRow.appendChild(this._overlayLayer),this._viewport.appendChild(this._wrapperEl)}_mountPanel(t){if("overlay"===t.Position)return void this._overlayLayer.appendChild(t.El);if("center"===t.Scope)return this._centerEl.classList.add("pict-modal-shell-center-with-inner-panel"),void("top"===t.Side?this._centerEl.insertBefore(t.El,this._centerEl.firstChild):this._centerEl.appendChild(t.El));let e;e="top"===t.Side?this._topRow:"bottom"===t.Side?this._bottomRow:"left"===t.Side?this._leftStack:"right"===t.Side?this._rightStack:this._wrapperEl,e.appendChild(t.El)}_attachDragStart(t,e){e.preventDefault();let o="top"===t.Side||"bottom"===t.Side?"y":"x";this._activeDrag={Panel:t,Axis:o,StartCoord:"x"===o?e.clientX:e.clientY,StartSize:t.Size,Direction:"left"===t.Side||"top"===t.Side?1:-1,PendingSize:null,RAFId:0},document.body.classList.add("x"===o?"pict-modal-shell-dragging-x":"pict-modal-shell-dragging-y"),t.El.classList.add("pict-modal-shell-panel-resizing");try{e.target.setPointerCapture&&e.target.setPointerCapture(e.pointerId)}catch(t){}document.addEventListener("pointermove",this._onDragMove),document.addEventListener("pointerup",this._onDragEnd)}_flushDrag(){let t=this._activeDrag;t&&(t.RAFId=0,null!==t.PendingSize&&(t.Panel.setSize(t.PendingSize),t.PendingSize=null))}_detachDragHandlers(){document.removeEventListener("pointermove",this._onDragMove),document.removeEventListener("pointerup",this._onDragEnd)}}class i{constructor(t,e){this._shell=t,this._config=e,this.Hash=e.Hash||"panel-"+ ++t._idCounter,this.Side="right"===e.Side||"bottom"===e.Side||"left"===e.Side?e.Side:"top",this.Mode="collapsible"===e.Mode||"resizable"===e.Mode?e.Mode:"fixed",this.Position="overlay"===e.Position?"overlay":"pinned",this.Scope="center"!==e.Scope||"top"!==this.Side&&"bottom"!==this.Side?"shell":"center",this.Title=e.Title||"",this.Icon=e.Icon||"",this.MinSize="number"==typeof e.MinSize?e.MinSize:40,this.MaxSize="number"==typeof e.MaxSize?e.MaxSize:1200,this.Hidden=!!e.Hidden,this.CollapsedSize="number"==typeof e.CollapsedSize?e.CollapsedSize:this.Hidden?0:24,this.PersistEnabled=t._persistenceEnabled&&!1!==e.Persist;let o="left"===this.Side||"right"===this.Side?240:60;if(this.Size="number"==typeof e.Size?e.Size:o,this.Collapsed=!!e.Collapsed,this.PersistEnabled){let e=t._loadPanelState(this.Hash);e&&("number"==typeof e.Size&&(this.Size=e.Size),"boolean"==typeof e.Collapsed&&(this.Collapsed=e.Collapsed))}this._clampSize(),this._buildEl(e),this._applySize(),this._applyCollapsedClass(),this.ResponsiveDrawer="number"==typeof e.ResponsiveDrawer&&e.ResponsiveDrawer>0?e.ResponsiveDrawer:0,this.DrawerHeight="string"==typeof e.DrawerHeight&&e.DrawerHeight?e.DrawerHeight:"33vh",this._mediaQuery=null,this._mediaQueryHandler=null,this.ResponsiveDrawer>0&&this._wireResponsiveDrawer()}getContentEl(){return this._contentEl}getContentView(){if(!this._config.ContentView)return null;let t=this._shell._modal&&this._shell._modal.pict;return t&&t.views&&t.views[this._config.ContentView]||null}collapse(){this._setCollapsed(!0)}expand(){this._setCollapsed(!1)}toggle(){this._setCollapsed(!this.Collapsed)}popup(){this.Collapsed?this._setCollapsed(!1):(this._renderContentView(),this._flash())}setSize(t){"number"==typeof t&&isFinite(t)&&(this.Size=t,this._clampSize(),this._applySize())}destroy(t){if(this._unwireResponsiveDrawer(),this.El&&this.El.parentNode&&this.El.parentNode.removeChild(this.El),!t){let t=this._shell._panels.indexOf(this);t>=0&&this._shell._panels.splice(t,1),delete this._shell._panelsByHash[this.Hash]}}_clampSize(){this.Size<this.MinSize&&(this.Size=this.MinSize),this.Size>this.MaxSize&&(this.Size=this.MaxSize)}_wireResponsiveDrawer(){if("undefined"==typeof window||!window.matchMedia)return;this._mediaQuery=window.matchMedia("(max-width: "+this.ResponsiveDrawer+"px)"),this.El&&this.El.style.setProperty("--pict-modal-drawer-height",this.DrawerHeight);let t=this;this._mediaQueryHandler=function(e){let o=e&&"boolean"==typeof e.matches?e.matches:t._mediaQuery.matches;t._setDrawerMode(o)},this._mediaQuery.addEventListener?this._mediaQuery.addEventListener("change",this._mediaQueryHandler):this._mediaQuery.addListener&&this._mediaQuery.addListener(this._mediaQueryHandler),this._mediaQueryHandler({matches:this._mediaQuery.matches}),this._resizeHandler=function(){t._setDrawerMode(t._mediaQuery.matches)},window.addEventListener("resize",this._resizeHandler)}_unwireResponsiveDrawer(){this._resizeHandler&&"undefined"!=typeof window&&(window.removeEventListener("resize",this._resizeHandler),this._resizeHandler=null),this._mediaQuery&&this._mediaQueryHandler&&(this._mediaQuery.removeEventListener?this._mediaQuery.removeEventListener("change",this._mediaQueryHandler):this._mediaQuery.removeListener&&this._mediaQuery.removeListener(this._mediaQueryHandler),this._mediaQuery=null,this._mediaQueryHandler=null)}_setDrawerMode(t){if(!this._shell||!this._shell._middleRow)return;if(!(!this.El||!this.El.classList.contains("pict-modal-shell-panel-drawer"))!==!!t){if(t)this._shell._middleRow.classList.add("pict-modal-shell-drawer-active"),this.El&&this.El.classList.add("pict-modal-shell-panel-drawer");else{let t=!1,e=this._shell._panels||[];for(let o=0;o<e.length;o++){let n=e[o];if(n!==this&&n._mediaQuery&&n._mediaQuery.matches&&n.ResponsiveDrawer>0){t=!0;break}}t||this._shell._middleRow.classList.remove("pict-modal-shell-drawer-active"),this.El&&this.El.classList.remove("pict-modal-shell-panel-drawer")}this._applySize()}}_buildEl(t){let e=document.createElement("div");e.className="pict-modal-shell-panel pict-modal-shell-panel-"+this.Side+" pict-modal-shell-panel-mode-"+this.Mode+("overlay"===this.Position?" pict-modal-shell-panel-overlay":"")+(this.Hidden?" pict-modal-shell-panel-hidden":""),e.setAttribute("data-shell-panel-hash",this.Hash),e.setAttribute("data-shell-panel-side",this.Side),e.setAttribute("data-shell-panel-mode",this.Mode);let o=document.createElement("div");if(o.className="pict-modal-shell-panel-content",this._contentEl=document.createElement("div"),t.ContentDestinationId&&(this._contentEl.id=t.ContentDestinationId),this._contentEl.className="pict-modal-shell-panel-content-inner",o.appendChild(this._contentEl),e.appendChild(o),("collapsible"===this.Mode||"resizable"===this.Mode)&&!this.Hidden){this._collapseTab=document.createElement("button"),this._collapseTab.type="button",this._collapseTab.className="pict-modal-shell-panel-collapse-tab",this._collapseTab.setAttribute("aria-label",this.Title?"Toggle "+this.Title:"Toggle panel"),this._collapseTab.title=this.Title||"Toggle",this._collapseTab.innerHTML=(this.Icon?'<span class="pict-modal-shell-panel-collapse-tab-icon">'+this.Icon+"</span>":"")+(this.Title?'<span class="pict-modal-shell-panel-collapse-tab-title">'+this._escape(this.Title)+"</span>":"");let t=this;this._collapseTab.addEventListener("click",function(){t.toggle()}),e.appendChild(this._collapseTab)}if("resizable"===this.Mode){this._resizeHandle=document.createElement("div"),this._resizeHandle.className="pict-modal-shell-panel-resize-handle",this._resizeHandle.setAttribute("aria-hidden","true");let t=this;this._resizeHandle.addEventListener("pointerdown",function(e){t.Collapsed||t._shell._attachDragStart(t,e)}),e.appendChild(this._resizeHandle)}this.El=e}_applySize(){let t=this.Collapsed?this.CollapsedSize:this.Size;"left"===this.Side||"right"===this.Side?(this.El.style.width=t+"px",this.El.style.height=""):(this.El.style.height=t+"px",this.El.style.width="")}_applyCollapsedClass(){this.Collapsed?this.El.classList.add("pict-modal-shell-panel-collapsed"):this.El.classList.remove("pict-modal-shell-panel-collapsed")}_setCollapsed(t){if(this.Collapsed===!!t)return;let e=this.Collapsed;this.Collapsed=!!t,this._applyCollapsedClass(),this._applySize(),this._persist(),e&&!this.Collapsed?(this._renderContentView(),this._fireHook("OnExpand")):!e&&this.Collapsed&&this._fireHook("OnCollapse"),this._fireHook("OnToggle",this.Collapsed)}_fireHook(t,e){let o=this._config[t];if("function"==typeof o)try{void 0!==e?o(e,this):o(this)}catch(t){}}_renderContentView(){let t=this.getContentView();if(t&&"function"==typeof t.render)try{t.render()}catch(t){}}_flash(){if(!this.El)return;this.El.classList.add("pict-modal-shell-panel-flash");let t=this;clearTimeout(this._flashTimer),this._flashTimer=setTimeout(function(){t.El&&t.El.classList.remove("pict-modal-shell-panel-flash")},700)}_persist(){this.PersistEnabled&&this._shell._savePanelState(this.Hash,{Collapsed:this.Collapsed,Size:this.Size})}_escape(t){return String(t||"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}}e.exports=class{constructor(t){this._modal=t,this._shellsByViewport=new WeakMap}shell(t,e){let o="string"==typeof t?document.querySelector(t):t;if(!o)throw new Error("Pict-Modal-Shell.shell: viewport not found for "+t);let n=this._shellsByViewport.get(o);if(n)return n;let i=new r(this._modal,o,e);return this._shellsByViewport.set(o,i),i}},e.exports.PictModalShell=r,e.exports.ShellPanel=i,e.exports.STORAGE_PREFIX=n,e.exports.SCHEMA_VERSION=1},{}],20:[function(t,e,o){e.exports=class{constructor(t){this._modal=t,this._containers={}}toast(t,e){let o=Object.assign({},this._modal.options.DefaultToastOptions,e),n=this._getContainer(o.position),r=this._modal._nextId(),i=document.createElement("div");i.className="pict-modal-toast pict-modal-toast--"+o.type,i.id="pict-modal-toast-"+r;let a='<span class="pict-modal-toast-message">'+this._escapeHTML(t)+"</span>";o.dismissible&&(a+='<button class="pict-modal-toast-dismiss" aria-label="Dismiss">&times;</button>'),i.innerHTML=a;let s=!1,l=null,c=()=>{s||(s=!0,l&&clearTimeout(l),i.classList.remove("pict-modal-visible"),i.classList.add("pict-modal-toast-exit"),this._modal._activeToasts=this._modal._activeToasts.filter(t=>t.element!==i),setTimeout(()=>{i.parentNode&&i.parentNode.removeChild(i),this._cleanupContainer(o.position)},220))},d={dismiss:c};if(o.dismissible){let t=i.querySelector(".pict-modal-toast-dismiss");t&&t.addEventListener("click",c)}n.appendChild(i);let p={element:i,dismiss:c,handle:d};return this._modal._activeToasts.push(p),i.offsetHeight,i.classList.add("pict-modal-visible"),o.duration>0&&(l=setTimeout(c,o.duration)),d}_getContainer(t){if(this._containers[t])return this._containers[t];let e=document.createElement("div");return e.className="pict-modal-toast-container pict-modal-toast-container--"+t,document.body.appendChild(e),this._containers[t]=e,e}_cleanupContainer(t){let e=this._containers[t];e&&0===e.children.length&&(e.parentNode&&e.parentNode.removeChild(e),delete this._containers[t])}dismissAll(){let t=this._modal._activeToasts.slice();for(let e=0;e<t.length;e++)t[e].dismiss()}destroy(){this.dismissAll();let t=Object.keys(this._containers);for(let e=0;e<t.length;e++){let o=this._containers[t[e]];o&&o.parentNode&&o.parentNode.removeChild(o)}this._containers={}}_escapeHTML(t){return"string"!=typeof t?"":t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}}},{}],21:[function(t,e,o){e.exports=class{constructor(t){this._modal=t}tooltip(t,e,o){let n=Object.assign({},this._modal.options.DefaultTooltipOptions,o);return this._attachTooltip(t,e,!1,n)}richTooltip(t,e,o){let n=Object.assign({},this._modal.options.DefaultTooltipOptions,o);return this._attachTooltip(t,e,!0,n)}_attachTooltip(t,e,o,n){let r=null,i=null,a=null,s=!1,l=this._modal._nextId(),c=()=>{if(s||r)return;r=document.createElement("div"),r.className="pict-modal-tooltip pict-modal-tooltip--"+n.position,r.id="pict-modal-tooltip-"+l,r.setAttribute("role","tooltip"),r.style.maxWidth=n.maxWidth,n.interactive&&r.classList.add("pict-modal-tooltip-interactive");let i=document.createElement("div");i.className="pict-modal-tooltip-arrow";let c=document.createElement("div");o?c.innerHTML=e:c.textContent=e,r.appendChild(i),r.appendChild(c),document.body.appendChild(r),t.setAttribute("aria-describedby",r.id),this._positionTooltip(r,t,n.position),r.offsetHeight,r.classList.add("pict-modal-visible"),this._modal._activeTooltips.push({element:r,targetElement:t,destroy:g}),n.interactive&&r&&(r.addEventListener("mouseenter",()=>{a&&(clearTimeout(a),a=null)}),r.addEventListener("mouseleave",()=>{d()}))},d=()=>{if(!r)return;r.classList.remove("pict-modal-visible");let e=r;r=null,t.removeAttribute("aria-describedby"),this._modal._activeTooltips=this._modal._activeTooltips.filter(t=>t.element!==e),setTimeout(()=>{e.parentNode&&e.parentNode.removeChild(e)},220)},p=()=>{a&&(clearTimeout(a),a=null),i=setTimeout(c,n.delay)},h=()=>{i&&(clearTimeout(i),i=null),n.interactive?a=setTimeout(d,100):d()},u=()=>{i=setTimeout(c,n.delay)},m=()=>{i&&(clearTimeout(i),i=null),d()};t.addEventListener("mouseenter",p),t.addEventListener("mouseleave",h),t.addEventListener("focusin",u),t.addEventListener("focusout",m);let g=()=>{s||(s=!0,i&&clearTimeout(i),a&&clearTimeout(a),d(),t.removeEventListener("mouseenter",p),t.removeEventListener("mouseleave",h),t.removeEventListener("focusin",u),t.removeEventListener("focusout",m))};return{destroy:g}}_positionTooltip(t,e,o){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=o;"top"===i&&n.top<r.height+8?i="bottom":"bottom"===i&&window.innerHeight-n.bottom<r.height+8?i="top":"left"===i&&n.left<r.width+8?i="right":"right"===i&&window.innerWidth-n.right<r.width+8&&(i="left"),t.className=t.className.replace(/pict-modal-tooltip--\w+/,"pict-modal-tooltip--"+i);let a=0,s=0;switch(i){case"top":a=n.top-r.height-8,s=n.left+n.width/2-r.width/2;break;case"bottom":a=n.bottom+8,s=n.left+n.width/2-r.width/2;break;case"left":a=n.top+n.height/2-r.height/2,s=n.left-r.width-8;break;case"right":a=n.top+n.height/2-r.height/2,s=n.right+8}s=Math.max(4,Math.min(s,window.innerWidth-r.width-4)),a=Math.max(4,Math.min(a,window.innerHeight-r.height-4)),t.style.top=a+"px",t.style.left=s+"px"}dismissAll(){let t=this._modal._activeTooltips.slice();for(let e=0;e<t.length;e++)t[e].destroy()}}},{}],22:[function(t,e,o){e.exports=class{constructor(t){this._modal=t}show(t){let e=Object.assign({},this._modal.options.DefaultModalOptions,t);return new Promise(t=>{let o=this._buildDialog(e,t);this._showDialog(o,e,t)})}_buildDialog(t,e){let o=this._modal._nextId(),n=document.createElement("div");n.className="pict-modal-dialog",t.unbounded&&(n.className+=" pict-modal-dialog--unbounded"),n.id="pict-modal-"+o,n.setAttribute("role","dialog"),n.setAttribute("aria-modal","true"),n.style.width=t.width;let r="";(t.title||t.closeable)&&(r='<div class="pict-modal-dialog-header">',r+='<span class="pict-modal-dialog-title">'+this._escapeHTML(t.title)+"</span>",t.closeable&&(r+='<button class="pict-modal-dialog-close" aria-label="Close">&times;</button>'),r+="</div>");let i='<div class="pict-modal-dialog-body">'+(t.content||"")+"</div>",a="";if(t.buttons&&t.buttons.length>0){a='<div class="pict-modal-dialog-footer">';for(let e=0;e<t.buttons.length;e++){let o=t.buttons[e],n="pict-modal-btn";o.Style&&(n+=" pict-modal-btn--"+o.Style),a+='<button class="'+n+'" data-hash="'+this._escapeHTML(o.Hash)+'">'+this._escapeHTML(o.Label)+"</button>"}a+="</div>"}n.innerHTML=r+i+a;let s=o=>{this._dismissDialog(n,o,e,t)};if(t.closeable){let t=n.querySelector(".pict-modal-dialog-close");t&&t.addEventListener("click",()=>{s(null)})}let l=n.querySelectorAll("[data-hash]");for(let t=0;t<l.length;t++){let e=l[t];e.addEventListener("click",()=>{s(e.getAttribute("data-hash"))})}return n._dismiss=s,n}_showDialog(t,e,o){let n={element:t,dismiss:t._dismiss,type:"window"},r=null;this._modal.options.OverlayClickDismisses&&e.closeable&&(r=()=>{t._dismiss(null)}),this._modal._overlay.show(r),document.body.appendChild(t),this._modal._activeModals.push(n),t.offsetHeight,t.classList.add("pict-modal-visible");let i=t.querySelector(".pict-modal-btn")||t.querySelector(".pict-modal-dialog-close");i&&i.focus(),t._keyHandler=o=>{"Escape"===o.key&&e.closeable&&t._dismiss(null)},document.addEventListener("keydown",t._keyHandler),"function"==typeof e.onOpen&&e.onOpen(t)}_dismissDialog(t,e,o,n){if(!t._dismissed){if(t._dismissed=!0,t._keyHandler&&document.removeEventListener("keydown",t._keyHandler),t.classList.remove("pict-modal-visible"),this._modal._activeModals=this._modal._activeModals.filter(e=>e.element!==t),this._modal._activeModals.length>0){let t=this._modal._activeModals[this._modal._activeModals.length-1];this._modal._overlay.updateClickHandler(this._modal.options.OverlayClickDismisses?t.dismiss:null)}this._modal._overlay.hide(),setTimeout(()=>{t.parentNode&&t.parentNode.removeChild(t)},220),"function"==typeof n.onClose&&n.onClose(e),o(e)}}_escapeHTML(t){return"string"!=typeof t?"":t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}}},{}],23:[function(t,e,o){e.exports={AutoInitialize:!0,AutoRender:!1,AutoSolveWithApp:!1,ViewIdentifier:"Pict-Section-Modal",OverlayClickDismisses:!0,DefaultConfirmOptions:{title:"Confirm",confirmLabel:"OK",cancelLabel:"Cancel",dangerous:!1,unbounded:!1},DefaultDoubleConfirmOptions:{title:"Are you sure?",confirmLabel:"Confirm",cancelLabel:"Cancel",phrasePrompt:'Type "{phrase}" to confirm:',confirmPhrase:"",unbounded:!1},DefaultModalOptions:{title:"",content:"",buttons:[],closeable:!0,width:"480px",unbounded:!1},DefaultTooltipOptions:{position:"top",delay:200,maxWidth:"300px",interactive:!1},DefaultToastOptions:{type:"info",duration:3e3,position:"top-right",dismissible:!0},DefaultPanelOptions:{position:"right",width:340,minWidth:200,maxWidth:600,collapsible:!0,collapsed:!1,persist:!1,persistKey:""},Templates:[],Renderables:[],CSS:"\n/* pict-section-modal */\n.pict-modal-root\n{\n\t/* Defaults are routed through pict-provider-theme tokens so apps\n\t using the theme provider get themed modals automatically. Each\n\t var() carries its original hex as the fallback so apps that don't\n\t install pict-provider-theme look exactly as before. Apps may\n\t still override any --pict-modal-* var directly to layer over the\n\t theme-driven defaults. */\n\n\t/* Overlay */\n\t--pict-modal-overlay-bg: rgba(0, 0, 0, 0.5);\n\n\t/* Dialog */\n\t--pict-modal-bg: var(--theme-color-background-panel, #ffffff);\n\t--pict-modal-fg: var(--theme-color-text-primary, #1a1a1a);\n\t--pict-modal-border: var(--theme-color-border-default, #e0e0e0);\n\t--pict-modal-border-radius: 8px;\n\t--pict-modal-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);\n\t--pict-modal-header-bg: var(--theme-color-background-secondary, #f5f5f5);\n\t--pict-modal-header-fg: var(--theme-color-text-primary, #1a1a1a);\n\t--pict-modal-header-border: var(--theme-color-border-default, #e0e0e0);\n\n\t/* Buttons */\n\t--pict-modal-btn-bg: var(--theme-color-background-secondary, #e0e0e0);\n\t--pict-modal-btn-fg: var(--theme-color-text-primary, #1a1a1a);\n\t--pict-modal-btn-hover-bg: var(--theme-color-background-hover, #d0d0d0);\n\t--pict-modal-btn-primary-bg: var(--theme-color-brand-primary, #2563eb);\n\t--pict-modal-btn-primary-fg: var(--theme-color-text-on-brand, #ffffff);\n\t--pict-modal-btn-primary-hover-bg:var(--theme-color-brand-primary-hover,#1d4ed8);\n\t--pict-modal-btn-danger-bg: var(--theme-color-status-error, #dc2626);\n\t--pict-modal-btn-danger-fg: var(--theme-color-text-on-brand, #ffffff);\n\t--pict-modal-btn-danger-hover-bg: var(--theme-color-status-error, #b91c1c);\n\t--pict-modal-btn-border-radius: 4px;\n\n\t/* Toast */\n\t--pict-modal-toast-bg: var(--theme-color-background-panel, #333333);\n\t--pict-modal-toast-fg: var(--theme-color-text-primary, #ffffff);\n\t--pict-modal-toast-success-bg: var(--theme-color-status-success, #16a34a);\n\t--pict-modal-toast-warning-bg: var(--theme-color-status-warning, #d97706);\n\t--pict-modal-toast-error-bg: var(--theme-color-status-error, #dc2626);\n\t--pict-modal-toast-info-bg: var(--theme-color-status-info, #2563eb);\n\t--pict-modal-toast-border-radius: 6px;\n\t--pict-modal-toast-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);\n\n\t/* Tooltip */\n\t--pict-modal-tooltip-bg: var(--theme-color-background-tertiary,#1a1a1a);\n\t--pict-modal-tooltip-fg: var(--theme-color-text-primary, #ffffff);\n\t--pict-modal-tooltip-border-radius:4px;\n\t--pict-modal-tooltip-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n\n\t/* Dropdown */\n\t--pict-modal-dropdown-bg: var(--theme-color-background-panel, #ffffff);\n\t--pict-modal-dropdown-fg: var(--theme-color-text-primary, #1a1a1a);\n\t--pict-modal-dropdown-border: var(--theme-color-border-default, #e0e0e0);\n\t--pict-modal-dropdown-border-radius: 6px;\n\t--pict-modal-dropdown-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);\n\t--pict-modal-dropdown-item-hover-bg: var(--theme-color-background-hover, rgba(37, 99, 235, 0.10));\n\t--pict-modal-dropdown-item-hover-fg: var(--theme-color-text-primary, #1a1a1a);\n\t--pict-modal-dropdown-item-disabled-fg: var(--theme-color-text-muted, #9aa0a6);\n\t--pict-modal-dropdown-separator: var(--theme-color-border-light, #e8e8e8);\n\t--pict-modal-dropdown-header-fg: var(--theme-color-text-secondary, #6b7280);\n\t--pict-modal-dropdown-danger-fg: var(--theme-color-status-error, #dc2626);\n\t--pict-modal-dropdown-primary-fg: var(--theme-color-brand-primary, #2563eb);\n\n\t/* Typography */\n\t--pict-modal-font-family: var(--theme-typography-family-sans, system-ui, -apple-system, sans-serif);\n\t--pict-modal-font-size: 14px;\n\t--pict-modal-title-font-size: 16px;\n\n\t/* Animation */\n\t--pict-modal-transition-duration: 200ms;\n}\n\n/* Overlay */\n.pict-modal-overlay\n{\n\tposition: fixed;\n\ttop: 0;\n\tleft: 0;\n\twidth: 100%;\n\theight: 100%;\n\tz-index: 1000;\n\tbackground: var(--pict-modal-overlay-bg);\n\topacity: 0;\n\ttransition: opacity var(--pict-modal-transition-duration) ease;\n}\n\n.pict-modal-overlay.pict-modal-visible\n{\n\topacity: 1;\n}\n\n/* Dialog */\n.pict-modal-dialog\n{\n\tposition: fixed;\n\tz-index: 1010;\n\ttop: 50%;\n\tleft: 50%;\n\ttransform: translate(-50%, -50%) translateY(-20px);\n\topacity: 0;\n\ttransition: opacity var(--pict-modal-transition-duration) ease,\n\t transform var(--pict-modal-transition-duration) ease;\n\n\tmax-width: 90vw;\n\tmax-height: 90vh;\n\tdisplay: flex;\n\tflex-direction: column;\n\n\tbackground: var(--pict-modal-bg);\n\tcolor: var(--pict-modal-fg);\n\tborder: 1px solid var(--pict-modal-border);\n\tborder-radius: var(--pict-modal-border-radius);\n\tbox-shadow: var(--pict-modal-shadow);\n\tfont-family: var(--pict-modal-font-family);\n\tfont-size: var(--pict-modal-font-size);\n}\n\n.pict-modal-dialog.pict-modal-visible\n{\n\topacity: 1;\n\ttransform: translate(-50%, -50%) translateY(0);\n}\n\n/* Unbounded modifier — lets callers opt out of the 90vh/90vw viewport cap.\n Use with caution: content taller than the viewport will push buttons\n below the fold. */\n.pict-modal-dialog.pict-modal-dialog--unbounded\n{\n\tmax-height: none;\n\tmax-width: none;\n}\n\n.pict-modal-dialog-header\n{\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tpadding: 12px 16px;\n\tbackground: var(--pict-modal-header-bg);\n\tcolor: var(--pict-modal-header-fg);\n\tborder-bottom: 1px solid var(--pict-modal-header-border);\n\tborder-radius: var(--pict-modal-border-radius) var(--pict-modal-border-radius) 0 0;\n}\n\n.pict-modal-dialog-title\n{\n\tfont-size: var(--pict-modal-title-font-size);\n\tfont-weight: 600;\n}\n\n.pict-modal-dialog-close\n{\n\tbackground: none;\n\tborder: none;\n\tfont-size: 20px;\n\tcursor: pointer;\n\tcolor: var(--pict-modal-fg);\n\tpadding: 0 4px;\n\tline-height: 1;\n\topacity: 0.6;\n}\n\n.pict-modal-dialog-close:hover\n{\n\topacity: 1;\n}\n\n.pict-modal-dialog-body\n{\n\tpadding: 16px;\n\toverflow-y: auto;\n\tflex: 1;\n}\n\n.pict-modal-dialog-footer\n{\n\tdisplay: flex;\n\tjustify-content: flex-end;\n\tgap: 8px;\n\tpadding: 12px 16px;\n\tborder-top: 1px solid var(--pict-modal-border);\n}\n\n/* Buttons */\n.pict-modal-btn\n{\n\tpadding: 8px 16px;\n\tborder: none;\n\tborder-radius: var(--pict-modal-btn-border-radius);\n\tfont-family: var(--pict-modal-font-family);\n\tfont-size: var(--pict-modal-font-size);\n\tcursor: pointer;\n\tbackground: var(--pict-modal-btn-bg);\n\tcolor: var(--pict-modal-btn-fg);\n\ttransition: background var(--pict-modal-transition-duration) ease;\n}\n\n.pict-modal-btn:hover\n{\n\tbackground: var(--pict-modal-btn-hover-bg);\n}\n\n.pict-modal-btn:disabled\n{\n\topacity: 0.5;\n\tcursor: not-allowed;\n}\n\n.pict-modal-btn--primary\n{\n\tbackground: var(--pict-modal-btn-primary-bg);\n\tcolor: var(--pict-modal-btn-primary-fg);\n}\n\n.pict-modal-btn--primary:hover\n{\n\tbackground: var(--pict-modal-btn-primary-hover-bg);\n}\n\n.pict-modal-btn--danger\n{\n\tbackground: var(--pict-modal-btn-danger-bg);\n\tcolor: var(--pict-modal-btn-danger-fg);\n}\n\n.pict-modal-btn--danger:hover\n{\n\tbackground: var(--pict-modal-btn-danger-hover-bg);\n}\n\n/* Double confirm input */\n.pict-modal-confirm-input\n{\n\twidth: 100%;\n\tpadding: 8px 12px;\n\tmargin-top: 12px;\n\tborder: 1px solid var(--pict-modal-border);\n\tborder-radius: var(--pict-modal-btn-border-radius);\n\tfont-family: var(--pict-modal-font-family);\n\tfont-size: var(--pict-modal-font-size);\n\tbox-sizing: border-box;\n}\n\n.pict-modal-confirm-input:focus\n{\n\toutline: 2px solid var(--pict-modal-btn-primary-bg);\n\toutline-offset: -1px;\n}\n\n.pict-modal-confirm-prompt\n{\n\tmargin-top: 12px;\n\tfont-size: 13px;\n\tcolor: var(--pict-modal-fg);\n\topacity: 0.7;\n}\n\n/* Toast container */\n.pict-modal-toast-container\n{\n\tposition: fixed;\n\tz-index: 1030;\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 8px;\n\tpointer-events: none;\n\tmax-width: 400px;\n}\n\n.pict-modal-toast-container--top-right\n{\n\ttop: 16px;\n\tright: 16px;\n}\n\n.pict-modal-toast-container--top-left\n{\n\ttop: 16px;\n\tleft: 16px;\n}\n\n.pict-modal-toast-container--bottom-right\n{\n\tbottom: 16px;\n\tright: 16px;\n}\n\n.pict-modal-toast-container--bottom-left\n{\n\tbottom: 16px;\n\tleft: 16px;\n}\n\n.pict-modal-toast-container--top-center\n{\n\ttop: 16px;\n\tleft: 50%;\n\ttransform: translateX(-50%);\n}\n\n.pict-modal-toast-container--bottom-center\n{\n\tbottom: 16px;\n\tleft: 50%;\n\ttransform: translateX(-50%);\n}\n\n/* Toast */\n.pict-modal-toast\n{\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 10px;\n\tpadding: 12px 16px;\n\tborder-radius: var(--pict-modal-toast-border-radius);\n\tbox-shadow: var(--pict-modal-toast-shadow);\n\tfont-family: var(--pict-modal-font-family);\n\tfont-size: var(--pict-modal-font-size);\n\tbackground: var(--pict-modal-toast-bg);\n\tcolor: var(--pict-modal-toast-fg);\n\tpointer-events: auto;\n\topacity: 0;\n\ttransform: translateX(100%);\n\ttransition: opacity var(--pict-modal-transition-duration) ease,\n\t transform var(--pict-modal-transition-duration) ease;\n}\n\n.pict-modal-toast.pict-modal-visible\n{\n\topacity: 1;\n\ttransform: translateX(0);\n}\n\n.pict-modal-toast.pict-modal-toast-exit\n{\n\topacity: 0;\n\ttransform: translateX(100%);\n}\n\n.pict-modal-toast--info\n{\n\tbackground: var(--pict-modal-toast-info-bg);\n}\n\n.pict-modal-toast--success\n{\n\tbackground: var(--pict-modal-toast-success-bg);\n}\n\n.pict-modal-toast--warning\n{\n\tbackground: var(--pict-modal-toast-warning-bg);\n}\n\n.pict-modal-toast--error\n{\n\tbackground: var(--pict-modal-toast-error-bg);\n}\n\n.pict-modal-toast-message\n{\n\tflex: 1;\n}\n\n.pict-modal-toast-dismiss\n{\n\tbackground: none;\n\tborder: none;\n\tcolor: inherit;\n\tfont-size: 18px;\n\tcursor: pointer;\n\tpadding: 0 2px;\n\tline-height: 1;\n\topacity: 0.7;\n}\n\n.pict-modal-toast-dismiss:hover\n{\n\topacity: 1;\n}\n\n/* Tooltip */\n.pict-modal-tooltip\n{\n\tposition: fixed;\n\tz-index: 1020;\n\tpadding: 6px 10px;\n\tborder-radius: var(--pict-modal-tooltip-border-radius);\n\tbox-shadow: var(--pict-modal-tooltip-shadow);\n\tbackground: var(--pict-modal-tooltip-bg);\n\tcolor: var(--pict-modal-tooltip-fg);\n\tfont-family: var(--pict-modal-font-family);\n\tfont-size: 13px;\n\tpointer-events: none;\n\topacity: 0;\n\ttransition: opacity var(--pict-modal-transition-duration) ease;\n\twhite-space: normal;\n\tword-wrap: break-word;\n}\n\n.pict-modal-tooltip.pict-modal-tooltip-interactive\n{\n\tpointer-events: auto;\n}\n\n.pict-modal-tooltip.pict-modal-visible\n{\n\topacity: 1;\n}\n\n.pict-modal-tooltip-arrow\n{\n\tposition: absolute;\n\twidth: 8px;\n\theight: 8px;\n\tbackground: var(--pict-modal-tooltip-bg);\n\ttransform: rotate(45deg);\n}\n\n.pict-modal-tooltip--top .pict-modal-tooltip-arrow\n{\n\tbottom: -4px;\n\tleft: 50%;\n\tmargin-left: -4px;\n}\n\n.pict-modal-tooltip--bottom .pict-modal-tooltip-arrow\n{\n\ttop: -4px;\n\tleft: 50%;\n\tmargin-left: -4px;\n}\n\n.pict-modal-tooltip--left .pict-modal-tooltip-arrow\n{\n\tright: -4px;\n\ttop: 50%;\n\tmargin-top: -4px;\n}\n\n.pict-modal-tooltip--right .pict-modal-tooltip-arrow\n{\n\tleft: -4px;\n\ttop: 50%;\n\tmargin-top: -4px;\n}\n\n/* ── Dropdown ─────────────────────────────────────────────────────────\n Anchor-positioned menu (no overlay). Used for nav menus and\n \"split button\" addenda — see Pict-Modal-Dropdown.js.\n*/\n.pict-modal-dropdown\n{\n\tposition: fixed;\n\tz-index: 1025;\n\tmin-width: 160px;\n\tmax-width: 360px;\n\tmax-height: 60vh;\n\toverflow-y: auto;\n\tbackground: var(--pict-modal-dropdown-bg);\n\tcolor: var(--pict-modal-dropdown-fg);\n\tborder: 1px solid var(--pict-modal-dropdown-border);\n\tborder-radius: var(--pict-modal-dropdown-border-radius);\n\tbox-shadow: var(--pict-modal-dropdown-shadow);\n\tfont-family: var(--pict-modal-font-family);\n\tfont-size: var(--pict-modal-font-size);\n\tpadding: 4px 0;\n\topacity: 0;\n\ttransform: translateY(-4px);\n\ttransition: opacity var(--pict-modal-transition-duration) ease,\n\t transform var(--pict-modal-transition-duration) ease;\n}\n\n.pict-modal-dropdown.pict-modal-dropdown--above { transform: translateY(4px); }\n\n.pict-modal-dropdown.pict-modal-visible\n{\n\topacity: 1;\n\ttransform: translateY(0);\n}\n\n.pict-modal-dropdown-item\n{\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 8px;\n\tpadding: 7px 14px;\n\tcursor: pointer;\n\tuser-select: none;\n\tcolor: inherit;\n\toutline: none;\n}\n\n.pict-modal-dropdown-item:hover,\n.pict-modal-dropdown-item:focus\n{\n\tbackground: var(--pict-modal-dropdown-item-hover-bg);\n\tcolor: var(--pict-modal-dropdown-item-hover-fg);\n}\n\n.pict-modal-dropdown-item--disabled\n{\n\tcursor: not-allowed;\n\tcolor: var(--pict-modal-dropdown-item-disabled-fg);\n}\n\n.pict-modal-dropdown-item--disabled:hover,\n.pict-modal-dropdown-item--disabled:focus\n{\n\tbackground: transparent;\n\tcolor: var(--pict-modal-dropdown-item-disabled-fg);\n}\n\n.pict-modal-dropdown-item--primary { color: var(--pict-modal-dropdown-primary-fg); }\n.pict-modal-dropdown-item--danger { color: var(--pict-modal-dropdown-danger-fg); }\n\n.pict-modal-dropdown-item-icon\n{\n\tflex: 0 0 auto;\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 16px;\n\theight: 16px;\n}\n\n.pict-modal-dropdown-item-icon svg { width: 100%; height: 100%; display: block; }\n\n.pict-modal-dropdown-item-label { flex: 1 1 auto; min-width: 0; }\n\n.pict-modal-dropdown-item-hint\n{\n\tflex: 0 0 auto;\n\tfont-size: 11px;\n\topacity: 0.6;\n\tmargin-left: 12px;\n}\n\n.pict-modal-dropdown-separator\n{\n\theight: 1px;\n\tbackground: var(--pict-modal-dropdown-separator);\n\tmargin: 4px 0;\n}\n\n.pict-modal-dropdown-header\n{\n\tpadding: 6px 14px 2px;\n\tfont-size: 11px;\n\tfont-weight: 600;\n\ttext-transform: uppercase;\n\tletter-spacing: 0.04em;\n\tcolor: var(--pict-modal-dropdown-header-fg);\n}\n\n/* ── Resizable / Collapsible Panels ──────────────── */\n.pict-panel\n{\n\tposition: relative;\n\ttransition: width 0.2s ease;\n\tflex-shrink: 0;\n\toverflow: visible;\n}\n.pict-panel-collapsed\n{\n\twidth: 0 !important;\n\tmin-width: 0 !important;\n\toverflow: visible;\n}\n.pict-panel-collapsed > *:not(.pict-panel-edge)\n{\n\tdisplay: none;\n}\n\n/* Edge container — zero-width flex sibling of the panel.\n Sits next to the panel in the flex layout; children\n use absolute positioning to overlap the panel boundary. */\n.pict-panel-edge\n{\n\tposition: relative;\n\twidth: 0;\n\tflex-shrink: 0;\n\tz-index: 50;\n\toverflow: visible;\n}\n\n/* Resize handle — thin strip on the panel boundary */\n.pict-panel-resize\n{\n\tposition: absolute;\n\ttop: 0;\n\tbottom: 0;\n\twidth: 4px;\n\tcursor: col-resize;\n\tbackground: transparent;\n\ttransition: background 0.15s, width 0.15s;\n}\n.pict-panel-edge-right .pict-panel-resize\n{\n\tright: 0;\n\tborder-right: 1px solid var(--pict-panel-border, #DDD6CA);\n}\n.pict-panel-edge-left .pict-panel-resize\n{\n\tleft: 0;\n\tborder-left: 1px solid var(--pict-panel-border, #DDD6CA);\n}\n.pict-panel-resize:hover,\n.pict-panel-edge:hover .pict-panel-resize\n{\n\twidth: 5px;\n\tbackground: var(--pict-panel-accent, #2E7D74);\n\topacity: 0.5;\n}\n.pict-panel-resize.dragging\n{\n\twidth: 5px;\n\tbackground: var(--pict-panel-accent, #2E7D74);\n\topacity: 1;\n\ttransition: none;\n}\n.pict-panel-edge-collapsed .pict-panel-resize\n{\n\tdisplay: none;\n}\n\n/* Collapse tab — tucked sliver at rest, slides out on hover */\n.pict-panel-tab\n{\n\tposition: absolute;\n\ttop: 8px;\n\twidth: 8px;\n\theight: 24px;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\toverflow: hidden;\n\tbackground: var(--pict-panel-border, #DDD6CA);\n\tborder: 1px solid var(--pict-panel-border, #DDD6CA);\n\tcursor: pointer;\n\tcolor: var(--pict-panel-fg, #8A7F72);\n\tfont-size: 10px;\n\tline-height: 1;\n\topacity: 0.5;\n\ttransition: opacity 0.25s, width 0.2s ease, height 0.2s ease, left 0.2s ease, right 0.2s ease, background 0.2s;\n\tz-index: 51;\n}\n.pict-panel-edge:hover .pict-panel-tab,\n.pict-panel-tab:hover\n{\n\twidth: 20px;\n\theight: 32px;\n\topacity: 1;\n\toverflow: visible;\n\tbackground: var(--pict-panel-bg, #FAF8F4);\n}\n/* Right panel: tab to the left of the edge */\n.pict-panel-edge-right .pict-panel-tab\n{\n\tright: 0;\n\tborder-right: none;\n\tborder-radius: 4px 0 0 4px;\n}\n.pict-panel-edge-right:hover .pict-panel-tab,\n.pict-panel-edge-right .pict-panel-tab:hover\n{\n\tright: 0;\n}\n/* Left panel: tab to the right of the edge */\n.pict-panel-edge-left .pict-panel-tab\n{\n\tleft: 0;\n\tborder-left: none;\n\tborder-radius: 0 4px 4px 0;\n}\n.pict-panel-edge-left:hover .pict-panel-tab,\n.pict-panel-edge-left .pict-panel-tab:hover\n{\n\tleft: 0;\n}\n/* When collapsed — more visible */\n.pict-panel-edge-collapsed .pict-panel-tab\n{\n\twidth: 10px;\n\theight: 28px;\n\topacity: 0.6;\n}\n.pict-panel-edge-collapsed .pict-panel-tab:hover,\n.pict-panel-edge-collapsed:hover .pict-panel-tab\n{\n\twidth: 20px;\n\theight: 32px;\n\topacity: 1;\n\toverflow: visible;\n\tbackground: var(--pict-panel-bg, #FAF8F4);\n}\n\n/* ───────────────────────────────────────────────────────────────────\n * Pict-Modal-Shell — viewport-managing layout for top / right /\n * bottom / left panels around a center.\n * ───────────────────────────────────────────────────────────────── */\n\n.pict-modal-shell-host { display: block; height: 100%; min-height: 0; }\n.pict-modal-shell\n{\n\tdisplay: flex;\n\tflex-direction: column;\n\twidth: 100%;\n\theight: 100%;\n\tmin-height: 0;\n\tposition: relative;\n\tcolor: var(--pict-modal-fg, var(--theme-color-text-primary, #1a1a1a));\n\tbackground: var(--theme-color-background-primary, transparent);\n}\n.pict-modal-shell-row { display: flex; min-width: 0; min-height: 0; }\n/* \"First added = at the edge\" convention is held by reversing the\n flex-direction on the bottom row + right side. That way, for ALL\n four sides, calling addPanel() N times stacks panel #1 against\n the viewport edge, panel #2 just inside it, panel #3 further in,\n and so on. Without these reverses, top + left worked that way but\n bottom + right inverted (first-added at content side, last-added\n at edge), which surprised callers. */\n.pict-modal-shell-row-top { flex: 0 0 auto; flex-direction: column; }\n.pict-modal-shell-row-bottom { flex: 0 0 auto; flex-direction: column-reverse; }\n.pict-modal-shell-row-middle\n{\n\tflex: 1 1 0;\n\tflex-direction: row;\n\tmin-height: 0;\n\tposition: relative;\n}\n.pict-modal-shell-side\n{\n\tdisplay: flex;\n\tflex: 0 0 auto;\n\tmin-height: 0;\n}\n.pict-modal-shell-side-left { flex-direction: row; }\n.pict-modal-shell-side-right { flex-direction: row-reverse; }\n.pict-modal-shell-center\n{\n\tflex: 1 1 0;\n\tmin-width: 0;\n\tmin-height: 0;\n\toverflow: auto;\n\tposition: relative;\n}\n.pict-modal-shell-center-content\n{\n\tmin-height: 100%;\n}\n/* Center column gains this class when at least one Scope:'center'\n panel is added. The center stops scrolling internally — that job\n moves to the content destination — and switches to a vertical flex\n so the destination and any inner panels stack cleanly. */\n.pict-modal-shell-center.pict-modal-shell-center-with-inner-panel\n{\n\tdisplay: flex;\n\tflex-direction: column;\n\toverflow: hidden;\n}\n.pict-modal-shell-center.pict-modal-shell-center-with-inner-panel > .pict-modal-shell-center-content\n{\n\tflex: 1 1 0;\n\tmin-height: 0;\n\toverflow: auto;\n}\n.pict-modal-shell-center.pict-modal-shell-center-with-inner-panel > .pict-modal-shell-panel\n{\n\tflex: 0 0 auto;\n\twidth: 100%;\n}\n\n/* Panels — base */\n.pict-modal-shell-panel\n{\n\t/* How far the collapse-tab's panel-bg \"merge bar\" extends INTO\n\t the panel past the tab's geometric edge. Painted via box-shadow\n\t on the tab (no DOM impact), it masks any 1px theme border on an\n\t inner element, content padding offset, or resize-handle hover\n\t bleed in the strip between the tab's panel-facing edge and the\n\t first real pixel of panel content. Consumers can bump this for\n\t themes with thicker (2+px) inner borders. */\n\t--pict-modal-collapse-tab-merge: 2px;\n\tposition: relative;\n\tdisplay: flex;\n\tflex-direction: column;\n\tbox-sizing: border-box;\n\tbackground: var(--pict-modal-bg, var(--theme-color-background-panel, #ffffff));\n\tcolor: inherit;\n\tmin-width: 0;\n\tmin-height: 0;\n\ttransition: width 140ms ease, height 140ms ease;\n}\n.pict-modal-shell-panel-content\n{\n\tflex: 1 1 auto;\n\tmin-width: 0;\n\tmin-height: 0;\n\toverflow: auto;\n}\n.pict-modal-shell-panel-content-inner\n{\n\tmin-height: 100%;\n}\n/* Panel boundary — fixed-mode panels get a hairline border for explicit\n demarcation. Collapsible / resizable panels DROP the boundary border\n (background contrast separates them from the center anyway) so the\n collapse tab can pull out cleanly without a hairline cutting across\n it. The host stylesheet still gets full control via the panel's own\n background. */\n.pict-modal-shell-panel-mode-fixed.pict-modal-shell-panel-top { border-bottom: 1px solid var(--pict-modal-border, var(--theme-color-border-default, #e0e0e0)); }\n.pict-modal-shell-panel-mode-fixed.pict-modal-shell-panel-bottom { border-top: 1px solid var(--pict-modal-border, var(--theme-color-border-default, #e0e0e0)); }\n.pict-modal-shell-panel-mode-fixed.pict-modal-shell-panel-left { border-right: 1px solid var(--pict-modal-border, var(--theme-color-border-default, #e0e0e0)); }\n.pict-modal-shell-panel-mode-fixed.pict-modal-shell-panel-right { border-left: 1px solid var(--pict-modal-border, var(--theme-color-border-default, #e0e0e0)); }\n\n/* Resize handle — absolute on the inner edge of each panel. */\n.pict-modal-shell-panel-resize-handle\n{\n\tposition: absolute;\n\tbackground: transparent;\n\tz-index: 5;\n\ttransition: background-color 120ms ease;\n}\n/* Resize handle hover — use the active brand's mode-aware primary\n color (set by pict-section-theme's Brand provider as\n --brand-color-primary-mode) so the resize affordance picks up the\n app's wordmark color. Falls back to the theme's brand-primary\n token if no brand is registered. */\n.pict-modal-shell-panel-resize-handle:hover\n{\n\tbackground: var(--brand-color-primary-mode, var(--theme-color-brand-primary, #2563eb));\n\topacity: 0.4;\n}\n.pict-modal-shell-panel-left .pict-modal-shell-panel-resize-handle { right: -3px; top: 0; bottom: 0; width: 6px; cursor: col-resize; }\n.pict-modal-shell-panel-right .pict-modal-shell-panel-resize-handle { left: -3px; top: 0; bottom: 0; width: 6px; cursor: col-resize; }\n.pict-modal-shell-panel-top .pict-modal-shell-panel-resize-handle { bottom:-3px; left: 0; right: 0; height: 6px; cursor: row-resize; }\n.pict-modal-shell-panel-bottom .pict-modal-shell-panel-resize-handle { top: -3px; left: 0; right: 0; height: 6px; cursor: row-resize; }\n\n/* Collapse tab — slim sliver flush on the panel's OUTER boundary\n (where the resize handle sits), modelled on retold-content-system's\n sidebar tab. At rest it's a 6×28 px sliver; hover expands to\n 18×36 px without overlapping the panel's own content. The tab is\n positioned with its center on the boundary so half pokes into the\n adjacent area — the only place we can safely take over without\n stepping on app UI inside the panel. Title text only renders in the\n collapsed state where there's room for it. */\n.pict-modal-shell-panel-collapse-tab\n{\n\tposition: absolute;\n\tdisplay: flex; /* not inline-flex — avoids baseline alignment quirks */\n\talign-items: center;\n\tjustify-content: center;\n\toverflow: hidden;\n\tborder: 1px solid var(--pict-modal-border, var(--theme-color-border-default, #d0d7de));\n\tbackground: var(--pict-modal-bg, var(--theme-color-background-panel, #ffffff));\n\tcolor: var(--theme-color-text-muted, #6b7280);\n\tfont: inherit;\n\tfont-size: 10px;\n\tletter-spacing: 0.4px;\n\ttext-transform: uppercase;\n\tcursor: pointer;\n\tz-index: 50;\n\topacity: 0.55;\n\tpadding: 0;\n\tbox-sizing: border-box;\n\tline-height: 0; /* keep child boxes from inflating around the rotated chevron */\n\t/* Geometry (width/height/right/left) is intentionally NOT animated.\n\t Sliding the tab's outer edge inward on hover-out makes it look like\n\t the tab is \"sliding into\" the panel content — weird visual.\n\t Snapping the size change instead, and animating only the appearance\n\t (opacity/color/shadow), gives a clean fade-in/out with no boundary\n\t weirdness. */\n\ttransition: opacity 160ms ease,\n\t background-color 160ms ease, color 160ms ease,\n\t border-color 160ms ease, box-shadow 160ms ease;\n}\n/* Hover state pulls accent color from the active brand (mode-aware,\n so it's legible in both light + dark) with theme brand-primary as\n fallback. The whole point of brand colors is that they show up\n across the app's chrome. */\n.pict-modal-shell-panel-collapse-tab:hover,\n.pict-modal-shell-panel:hover > .pict-modal-shell-panel-collapse-tab\n{\n\topacity: 1;\n\tcolor: var(--brand-color-primary-mode, var(--theme-color-brand-primary, #2563eb));\n\tborder-color: var(--brand-color-primary-mode, var(--theme-color-brand-primary, #2563eb));\n}\n/* Drop shadow casts AWAY from the panel so the tab feels pulled out\n (extension of the panel) rather than floating across the boundary.\n The first shadow value is the merge-bar (panel-bg colored, offset\n INTO the panel) which has to be repeated here so the hover override\n doesn't drop it. */\n.pict-modal-shell-panel-left:hover > .pict-modal-shell-panel-collapse-tab,\n.pict-modal-shell-panel-left > .pict-modal-shell-panel-collapse-tab:hover\n{\n\tbox-shadow:\n\t\tcalc(-1 * var(--pict-modal-collapse-tab-merge)) 0 0 0 var(--pict-modal-bg, var(--theme-color-background-panel, #ffffff)),\n\t\t3px 0 6px -2px rgba(0, 0, 0, 0.18);\n}\n.pict-modal-shell-panel-right:hover > .pict-modal-shell-panel-collapse-tab,\n.pict-modal-shell-panel-right > .pict-modal-shell-panel-collapse-tab:hover\n{\n\tbox-shadow:\n\t\tvar(--pict-modal-collapse-tab-merge) 0 0 0 var(--pict-modal-bg, var(--theme-color-background-panel, #ffffff)),\n\t\t-3px 0 6px -2px rgba(0, 0, 0, 0.18);\n}\n.pict-modal-shell-panel-top:hover > .pict-modal-shell-panel-collapse-tab,\n.pict-modal-shell-panel-top > .pict-modal-shell-panel-collapse-tab:hover\n{\n\tbox-shadow:\n\t\t0 calc(-1 * var(--pict-modal-collapse-tab-merge)) 0 0 var(--pict-modal-bg, var(--theme-color-background-panel, #ffffff)),\n\t\t0 3px 6px -2px rgba(0, 0, 0, 0.18);\n}\n.pict-modal-shell-panel-bottom:hover > .pict-modal-shell-panel-collapse-tab,\n.pict-modal-shell-panel-bottom > .pict-modal-shell-panel-collapse-tab:hover\n{\n\tbox-shadow:\n\t\t0 var(--pict-modal-collapse-tab-merge) 0 0 var(--pict-modal-bg, var(--theme-color-background-panel, #ffffff)),\n\t\t0 -3px 6px -2px rgba(0, 0, 0, 0.18);\n}\n\n/* Side panels: slim VERTICAL sliver pulled OUT of the panel's outer\n boundary like a drawer tab. The geometric inner edge sits 1px\n INSIDE the panel boundary, and the merge-bar box-shadow paints\n another --pict-modal-collapse-tab-merge px of panel-bg color past\n it INTO the panel — together they mask any 1px theme border on an\n inner element, content padding offset, or resize-handle hover bleed\n that would otherwise leak between the tab and the panel content.\n The tab grows OUTWARD only on hover; the inner edge stays put so\n the tab always looks like an extension of the panel rather than a\n floating button. Border-left is removed for left panels (and\n border-right for right panels) so the panel-facing edge is open. */\n.pict-modal-shell-panel-left > .pict-modal-shell-panel-collapse-tab\n{\n\tright: -5px; top: 14px; width: 6px; height: 28px;\n\tborder-radius: 0 4px 4px 0;\n\tborder-left: 0;\n\tbox-shadow: calc(-1 * var(--pict-modal-collapse-tab-merge)) 0 0 0 var(--pict-modal-bg, var(--theme-color-background-panel, #ffffff));\n}\n.pict-modal-shell-panel-right > .pict-modal-shell-panel-collapse-tab\n{\n\tleft: -5px; top: 14px; width: 6px; height: 28px;\n\tborder-radius: 4px 0 0 4px;\n\tborder-right: 0;\n\tbox-shadow: var(--pict-modal-collapse-tab-merge) 0 0 0 var(--pict-modal-bg, var(--theme-color-background-panel, #ffffff));\n}\n/* Hover: same inner anchor (panelRight - 1), tab grows outward to\n width 18 → right: -17px. Top + height grow downward only (top\n stays, height extends so the tab visually 'drops' the chevron\n into view). */\n.pict-modal-shell-panel-left:hover > .pict-modal-shell-panel-collapse-tab,\n.pict-modal-shell-panel-left > .pict-modal-shell-panel-collapse-tab:hover\n{\n\twidth: 18px; height: 36px; right: -17px;\n}\n.pict-modal-shell-panel-right:hover > .pict-modal-shell-panel-collapse-tab,\n.pict-modal-shell-panel-right > .pict-modal-shell-panel-collapse-tab:hover\n{\n\twidth: 18px; height: 36px; left: -17px;\n}\n\n/* Top / bottom panels: slim HORIZONTAL sliver pulled OUT of the\n horizontal boundary, anchored 14 px in from the right. Same\n inner-edge-anchored + merge-bar pattern as the side panels — the\n merge-bar offsets vertically instead of horizontally. */\n.pict-modal-shell-panel-top > .pict-modal-shell-panel-collapse-tab\n{\n\tbottom: -5px; right: 14px; width: 28px; height: 6px;\n\tborder-radius: 0 0 4px 4px;\n\tborder-top: 0;\n\tbox-shadow: 0 calc(-1 * var(--pict-modal-collapse-tab-merge)) 0 0 var(--pict-modal-bg, var(--theme-color-background-panel, #ffffff));\n}\n.pict-modal-shell-panel-bottom > .pict-modal-shell-panel-collapse-tab\n{\n\ttop: -5px; right: 14px; width: 28px; height: 6px;\n\tborder-radius: 4px 4px 0 0;\n\tborder-bottom: 0;\n\tbox-shadow: 0 var(--pict-modal-collapse-tab-merge) 0 0 var(--pict-modal-bg, var(--theme-color-background-panel, #ffffff));\n}\n.pict-modal-shell-panel-top:hover > .pict-modal-shell-panel-collapse-tab,\n.pict-modal-shell-panel-top > .pict-modal-shell-panel-collapse-tab:hover\n{\n\twidth: 36px; height: 18px; bottom: -17px;\n}\n.pict-modal-shell-panel-bottom:hover > .pict-modal-shell-panel-collapse-tab,\n.pict-modal-shell-panel-bottom > .pict-modal-shell-panel-collapse-tab:hover\n{\n\twidth: 36px; height: 18px; top: -17px;\n}\n\n.pict-modal-shell-panel-collapse-tab-title { display: none; white-space: nowrap; }\n\n/* Auto-generated chevron glyph inside the tab — only visible once the\n tab is wide / tall enough to show it (i.e. hover state, or when the\n panel is collapsed). Direction follows side + state.\n Sized 5×5 (down from 6) so even with rotation the visual stays\n well clear of the tab's overflow:hidden bounds at 18×36 hover and\n the 24px collapsed tab strip width. flex-shrink:0 ensures the\n pseudo never collapses to zero in tight tab dimensions. */\n.pict-modal-shell-panel-collapse-tab::before\n{\n\tcontent: '';\n\tdisplay: block;\n\twidth: 5px; height: 5px;\n\tflex-shrink: 0;\n\topacity: 0;\n\tborder-right: 1.5px solid currentColor;\n\tborder-bottom: 1.5px solid currentColor;\n\ttransform: rotate(135deg);\n\ttransform-origin: center center;\n\ttransition: opacity 160ms ease, transform 160ms ease;\n}\n.pict-modal-shell-panel:hover > .pict-modal-shell-panel-collapse-tab::before,\n.pict-modal-shell-panel-collapse-tab:hover::before,\n.pict-modal-shell-panel-collapsed > .pict-modal-shell-panel-collapse-tab::before\n{\n\topacity: 1;\n}\n.pict-modal-shell-panel-right > .pict-modal-shell-panel-collapse-tab::before { transform: rotate(-45deg); }\n.pict-modal-shell-panel-top > .pict-modal-shell-panel-collapse-tab::before { transform: rotate(-135deg); }\n.pict-modal-shell-panel-bottom > .pict-modal-shell-panel-collapse-tab::before { transform: rotate(45deg); }\n.pict-modal-shell-panel-left.pict-modal-shell-panel-collapsed > .pict-modal-shell-panel-collapse-tab::before { transform: rotate(-45deg); }\n.pict-modal-shell-panel-right.pict-modal-shell-panel-collapsed > .pict-modal-shell-panel-collapse-tab::before { transform: rotate(135deg); }\n.pict-modal-shell-panel-top.pict-modal-shell-panel-collapsed > .pict-modal-shell-panel-collapse-tab::before { transform: rotate(45deg); }\n.pict-modal-shell-panel-bottom.pict-modal-shell-panel-collapsed > .pict-modal-shell-panel-collapse-tab::before { transform: rotate(-135deg); }\n\n/* Collapsed state — content disappears, only the collapse tab remains. */\n.pict-modal-shell-panel-collapsed > .pict-modal-shell-panel-content\n{\n\tdisplay: none;\n}\n.pict-modal-shell-panel-collapsed > .pict-modal-shell-panel-resize-handle\n{\n\tdisplay: none;\n}\n.pict-modal-shell-panel-left.pict-modal-shell-panel-collapsed,\n.pict-modal-shell-panel-right.pict-modal-shell-panel-collapsed\n{\n\t/* When collapsed, side panels rotate the title for vertical reading. */\n\toverflow: hidden;\n}\n/* When collapsed: the entire panel becomes the tab strip — full width\n for sides, full height for top/bottom — with the title visible\n vertically (sides) or horizontally (top/bottom). The little sliver\n tab on the boundary disappears (we don't need it anymore — clicking\n anywhere on the panel toggles it back open). */\n.pict-modal-shell-panel-left.pict-modal-shell-panel-collapsed,\n.pict-modal-shell-panel-right.pict-modal-shell-panel-collapsed,\n.pict-modal-shell-panel-top.pict-modal-shell-panel-collapsed,\n.pict-modal-shell-panel-bottom.pict-modal-shell-panel-collapsed\n{\n\toverflow: hidden;\n}\n.pict-modal-shell-panel-collapsed > .pict-modal-shell-panel-collapse-tab\n{\n\t/* Promote the tab to FILL the collapsed panel (not just hug its\n\t content) so the centered chevron + title group sits in the middle\n\t of the panel. Without explicit width/height: 100%, the position:\n\t absolute element shrinks to its natural content size and the\n\t group ends up flush at the top of the panel — where the chevron\n\t gets clipped by the topbar. */\n\tposition: absolute !important;\n\ttop: 0 !important; right: 0 !important; bottom: 0 !important; left: 0 !important;\n\twidth: 100% !important;\n\theight: 100% !important;\n\tborder: 0;\n\tborder-radius: 0;\n\tbackground: transparent;\n\topacity: 0.85;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tgap: 8px;\n\tpadding: 12px 4px; /* keeps chevron + title clear of edges */\n\tbox-shadow: none;\n\tcolor: var(--theme-color-text-muted, #6b7280);\n\tbox-sizing: border-box;\n\toverflow: hidden;\n}\n.pict-modal-shell-panel-collapsed > .pict-modal-shell-panel-collapse-tab:hover\n{\n\tbackground: var(--theme-color-background-hover, var(--pict-modal-bg, #fff));\n\tcolor: var(--brand-color-primary-mode, var(--theme-color-brand-primary, #2563eb));\n\tbox-shadow: none;\n}\n/* Side panels (collapsed): rotate the title for vertical reading. */\n.pict-modal-shell-panel-left.pict-modal-shell-panel-collapsed > .pict-modal-shell-panel-collapse-tab,\n.pict-modal-shell-panel-right.pict-modal-shell-panel-collapsed > .pict-modal-shell-panel-collapse-tab\n{\n\twriting-mode: vertical-rl;\n\ttext-orientation: mixed;\n}\n.pict-modal-shell-panel-collapsed .pict-modal-shell-panel-collapse-tab-title\n{\n\tdisplay: inline;\n}\n\n/* Hidden panels — when Hidden:true is passed to addPanel, the collapsed\n state has zero footprint: no collapse tab (the tab is never built),\n the panel root is display:none, and the resize handle vanishes. The\n only path to the open state is a programmatic expand()/toggle() from\n somewhere else in the app (e.g. a topbar gear button). When expanded,\n the panel renders normally — so resize/drag handles continue to work\n while the panel is open. */\n.pict-modal-shell-panel-hidden.pict-modal-shell-panel-collapsed\n{\n\tdisplay: none !important;\n}\n\n/* Overlay panels — float over the middle row instead of taking layout\n space. The overlay layer is positioned absolutely inside the middle\n row; individual overlay panels stack with positive z-index. */\n.pict-modal-shell-overlay-layer\n{\n\tposition: absolute;\n\tinset: 0;\n\tpointer-events: none;\n\tz-index: 10;\n}\n.pict-modal-shell-overlay-layer .pict-modal-shell-panel\n{\n\tpointer-events: auto;\n\tposition: absolute;\n\tbox-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);\n}\n.pict-modal-shell-overlay-layer .pict-modal-shell-panel-left { left: 0; top: 0; bottom: 0; }\n.pict-modal-shell-overlay-layer .pict-modal-shell-panel-right { right: 0; top: 0; bottom: 0; }\n.pict-modal-shell-overlay-layer .pict-modal-shell-panel-top { top: 0; left: 0; right: 0; }\n.pict-modal-shell-overlay-layer .pict-modal-shell-panel-bottom { bottom: 0; left: 0; right: 0; }\n\n/* ─────────────────────────────────────────────────────────────────\n Responsive drawer mode — .pict-modal-shell-drawer-active toggles\n onto the middle row when any panel with ResponsiveDrawer crosses\n below its breakpoint. Flips the row's flex-direction from row to\n column, stacking side panels above the center and stretching them\n to full width. Each opted-in panel itself gets the\n .pict-modal-shell-panel-drawer class so per-panel rules below\n target only the drawer-mode panels (right + non-drawer panels in\n the same row are unaffected). The drawer height is read from a\n per-panel --pict-modal-drawer-height CSS variable (default\n 33vh, set in JS from the DrawerHeight option).\n ───────────────────────────────────────────────────────────────── */\n.pict-modal-shell-row-middle.pict-modal-shell-drawer-active\n{\n\tflex-direction: column;\n\t/* The drawer tab lives outside the drawer's bottom edge — ancestor\n\t chain MUST allow it to escape clip. */\n\toverflow: visible;\n}\n.pict-modal-shell-row-middle.pict-modal-shell-drawer-active .pict-modal-shell-side\n{\n\t/* Side stacks stretch full-width and lay out their panels as a\n\t horizontal row of stacked drawers (so two drawers from the same\n\t side don't end up overlapping). overflow: visible so the\n\t per-panel tab can extend below the side stack into the workspace. */\n\twidth: 100% !important;\n\tflex-direction: column;\n\toverflow: visible;\n}\n/* The drawer-tagged panel itself: kill the inline width set by\n _applySize (we override with !important since the inline style has\n higher specificity than a class selector), then size by height\n from the CSS variable. Resize handle is hidden in drawer mode\n because horizontal dragging doesn't translate to vertical sizing\n and the user already has the collapse tab to dismiss / restore.\n\n padding-bottom reserves an 18px strip at the bottom of the panel\n for the tab. The tab sits INSIDE the drawer's footprint — never\n below it — so the workspace header below the drawer is never in\n the same vertical band as the tab. (Previously the tab hung\n below the drawer's bottom edge into the workspace's top padding;\n that made the tab visually compete with the workspace header,\n even when the tab box-model bounds technically cleared the\n header.) box-sizing: border-box so the padding eats from the\n 33vh, not adding to it. */\n.pict-modal-shell-panel-drawer\n{\n\twidth: 100% !important;\n\tmax-width: 100% !important;\n\theight: var(--pict-modal-drawer-height, 33vh);\n\ttransition: height 140ms ease;\n\tpadding-bottom: 18px;\n\tbox-sizing: border-box;\n\toverflow: visible !important;\n\t/* Clip the panel bg to its CONTENT area only — the 18px\n\t padding-bottom reserve (where the tab lives) becomes\n\t transparent, so the middle row's primary background shows\n\t through. Without this the reserve would render with the\n\t panel's chrome bg, creating a visible \"strip\" between the\n\t drawer content above and the workspace below — the tab would\n\t look like it's sitting on its own miscoloured band rather\n\t than at the seam between drawer and workspace. */\n\tbackground-clip: content-box;\n}\n.pict-modal-shell-panel-drawer.pict-modal-shell-panel-collapsed\n{\n\t/* Collapsed = \"just the tab strip is visible\". 18px matches the\n\t panel's tab reserve so the height is consistent across states.\n\t When this is 0 the tab would have nowhere to render and the\n\t user couldn't reopen the drawer. */\n\theight: 18px !important;\n\tpadding-bottom: 0 !important;\n\t/* Drop the panel's bg in collapsed state — without this the 18px\n\t strip shows the --pict-modal-bg (panel chrome) which doesn't\n\t match the workspace --theme-color-background-primary below it,\n\t creating a visible \"drawer band\" around the tab that breaks the\n\t illusion of the tab belonging to the workspace area. With\n\t transparent bg the middle row's primary background shows\n\t through, the strip blends with the workspace, and the tab pill\n\t reads as a free-floating handle. */\n\tbackground: transparent !important;\n}\n.pict-modal-shell-panel-drawer > .pict-modal-shell-panel-resize-handle\n{\n\tdisplay: none;\n}\n/* The drawer's collapse tab is a horizontal pill protruding from the\n bottom of the drawer (rather than the inner edge of a side panel).\n Override the side-panel positioning rules from above so the tab\n always sits at the drawer's bottom-center seam, in both expanded\n and collapsed states. The expand-from-zero affordance: when\n collapsed (height: 0), the tab still hangs below \"where the\n drawer would be\" — a small handle the user can click to pull\n the drawer back down. */\n.pict-modal-shell-panel-drawer > .pict-modal-shell-panel-collapse-tab,\n.pict-modal-shell-panel-drawer.pict-modal-shell-panel-collapsed > .pict-modal-shell-panel-collapse-tab\n{\n\tposition: absolute !important;\n\t/* Anchored to the panel's BOTTOM edge — the tab lives INSIDE the\n\t drawer's footprint (in the 18px reserve at the bottom), never\n\t below it into the workspace. This means the workspace below\n\t the drawer is never sharing a vertical band with the tab, so\n\t the workspace header doesn't optically compete with it.\n\t bottom: 4px aligns the tab's top edge exactly with the panel's\n\t CONTENT-AREA bottom (panel.height − padding-bottom 18px). With\n\t border-top: 0 on the tab, the seam between the drawer content\n\t above and the tab body is invisible — they share --pict-modal-bg\n\t and merge into one shape, the tab reading as a labelled\n\t extension of the drawer hanging downward. Collapsed state\n\t keeps the smaller offset (overridden below) because its panel\n\t has no padding-bottom, so the math doesn't apply. */\n\ttop: auto !important;\n\tbottom: 4px !important;\n\tleft: 50% !important;\n\tright: auto !important;\n\ttransform: translate(-50%, 0) !important;\n\twidth: 64px !important;\n\theight: 14px !important;\n\t/* CRITICAL: border-box + padding: 0 — the collapsed-state base\n\t rule inherits \"padding: 12px 4px\" (so the chevron clears the\n\t edges of a tab that fills a 24px-wide side strip). In drawer\n\t mode the tab is a 14px tall pill, NOT a strip-fill, so that\n\t 12px vertical padding would balloon the tab's outer height to\n\t ~38px and crash into the workspace header text. The chevron\n\t is centered via flex anyway. */\n\tbox-sizing: border-box !important;\n\tpadding: 0 !important;\n\t/* Rounded BOTTOM corners + no top border — the tab looks like a\n\t traditional drawer-handle/tab hanging from above. Its rounded\n\t bottom curves face the workspace (the \"open downward\" affordance\n\t for a top drawer). border-top: 0 lets the tab visually merge\n\t with whatever's directly above it inside the panel (sidebar\n\t content when expanded, the panel background when collapsed). */\n\tborder-radius: 0 0 8px 8px;\n\tborder: 1px solid var(--pict-modal-border, var(--theme-color-border-default, #cfd5dd));\n\tborder-top: 0;\n\tbackground: var(--pict-modal-bg, var(--theme-color-background-panel, #fff));\n\topacity: 0.95;\n\tz-index: 20;\n\t/* The default side-panel hover-grow values would yank the tab off\n\t to the wrong spot in drawer mode — neutralise. */\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n.pict-modal-shell-panel-drawer > .pict-modal-shell-panel-collapse-tab:hover,\n.pict-modal-shell-panel-drawer.pict-modal-shell-panel-collapsed > .pict-modal-shell-panel-collapse-tab:hover\n{\n\topacity: 1;\n\twidth: 96px !important;\n\t/* height stays at 14px — the tab is anchored with bottom, so any\n\t height growth would push the tab's TOP edge UPWARD past the\n\t space available above it. In EXPANDED state that crashes into\n\t the drawer content above; in COLLAPSED state it crashes into\n\t the topbar's brand stripes. Width-only growth (64 to 96, +50%)\n\t still gives the \"tab is reaching toward me\" affordance without\n\t the encroachment. */\n\tcolor: var(--brand-color-primary-mode, var(--theme-color-brand-primary, #2563eb));\n\tborder-color: var(--brand-color-primary-mode, var(--theme-color-brand-primary, #2563eb));\n\tbox-shadow: 0 3px 6px -2px rgba(0, 0, 0, 0.18);\n}\n/* Collapsed-state bottom-offset override. Expanded panels have an\n 18px padding-bottom reserve, and \"bottom: 4px\" anchors the tab's\n top edge exactly at the content-area boundary (so it merges\n visually with the drawer above). Collapsed panels have\n padding-bottom: 0 and a total height of 18px — \"bottom: 4px\"\n there would put the tab's top at the panel's actual top edge,\n crashing the (border-top: 0) tab into the topbar. The smaller\n \"bottom: 2px\" keeps the 14px tab vertically centered in the 18px\n strip with 2px margins on either side. */\n.pict-modal-shell-panel-drawer.pict-modal-shell-panel-collapsed > .pict-modal-shell-panel-collapse-tab\n{\n\tbottom: 2px !important;\n}\n/* Chevron inside the tab: point UP when expanded (the drawer\n collapses UP / out of view, so the arrow indicates \"click me to\n send the drawer up\"), DOWN when collapsed (the drawer expands DOWN\n into view). Rotations come from the existing top-panel chevron\n table: rotate(-135deg) → UP arrow, rotate(45deg) → DOWN arrow. */\n.pict-modal-shell-panel-drawer > .pict-modal-shell-panel-collapse-tab::before\n{\n\ttransform: rotate(-135deg) !important;\n}\n.pict-modal-shell-panel-drawer.pict-modal-shell-panel-collapsed > .pict-modal-shell-panel-collapse-tab::before\n{\n\ttransform: rotate(45deg) !important;\n}\n/* The collapse tab's existing title-text span is hidden when reduced\n to a pill — there's no horizontal room. The chevron alone reads\n correctly. */\n.pict-modal-shell-panel-drawer > .pict-modal-shell-panel-collapse-tab .pict-modal-shell-panel-collapse-tab-title,\n.pict-modal-shell-panel-drawer > .pict-modal-shell-panel-collapse-tab .pict-modal-shell-panel-collapse-tab-icon\n{\n\tdisplay: none;\n}\n\n/* Drag-active state — disable text selection + change cursor globally\n so resize feels solid even when the cursor briefly leaves the handle. */\n.pict-modal-shell-dragging-x, .pict-modal-shell-dragging-y { user-select: none; }\n.pict-modal-shell-dragging-x * { cursor: col-resize !important; }\n.pict-modal-shell-dragging-y * { cursor: row-resize !important; }\n\n/* Per-panel resize-active state — kills the panel's collapse/expand\n width/height transition for the duration of a drag. Without this,\n every pointermove starts a fresh 140 ms transition and the resize\n visibly lags behind the cursor (\"choppy\"). With it disabled the\n panel snaps to the new size on the same frame as the pointer, which\n feels native. */\n.pict-modal-shell-panel-resizing { transition: none !important; }\n.pict-modal-shell-panel-resizing > .pict-modal-shell-panel-resize-handle\n{\n\tbackground: var(--brand-color-primary-mode, var(--theme-color-brand-primary, #2563eb));\n\topacity: 0.5;\n}\n\n/* Panel popup-attention flash — fires when popup() is called on an\n already-open panel. Brief brand-colored inset glow so the user sees\n that their click landed even though the panel didn't change shape.\n Class is added by the shell, auto-removed after ~700 ms. */\n@keyframes pict-modal-shell-panel-flash\n{\n\t0% { box-shadow: inset 0 0 0 0 transparent; }\n\t30% { box-shadow: inset 0 0 0 3px var(--brand-color-primary-mode, var(--theme-color-brand-primary, #2563eb)); }\n\t100% { box-shadow: inset 0 0 0 0 transparent; }\n}\n.pict-modal-shell-panel-flash\n{\n\tanimation: pict-modal-shell-panel-flash 600ms ease-out;\n}\n"}},{}],24:[function(t,e,o){const n=t("pict-view"),r=t("./Pict-Modal-Overlay.js"),i=t("./Pict-Modal-Confirm.js"),a=t("./Pict-Modal-Window.js"),s=t("./Pict-Modal-Toast.js"),l=t("./Pict-Modal-Tooltip.js"),c=t("./Pict-Modal-Panel.js"),d=t("./Pict-Modal-Dropdown.js"),p=t("./Pict-Modal-Shell.js"),h=t("./Pict-Section-Modal-DefaultConfiguration.js");e.exports=class extends n{constructor(t,e,o){super(t,Object.assign({},h,e),o),this._activeModals=[],this._activeTooltips=[],this._activeToasts=[],this._idCounter=0,this._overlay=new r(this),this._confirm=new i(this),this._window=new a(this),this._toast=new s(this),this._tooltip=new l(this),this._panel=new c(this),this._dropdown=new d(this),this._shell=new p(this)}onBeforeInitialize(){return super.onBeforeInitialize(),"undefined"!=typeof document&&document.body&&(document.body.classList.contains("pict-modal-root")||document.body.classList.add("pict-modal-root")),super.onBeforeInitialize()}_nextId(){return this._idCounter++,this._idCounter}confirm(t,e){return this._confirm.confirm(t,e)}doubleConfirm(t,e){return this._confirm.doubleConfirm(t,e)}show(t){return this._window.show(t)}tooltip(t,e,o){return this._tooltip.tooltip(t,e,o)}richTooltip(t,e,o){return this._tooltip.richTooltip(t,e,o)}toast(t,e){return this._toast.toast(t,e)}dropdown(t,e){return this._dropdown.dropdown(t,e)}dismissDropdowns(){this._dropdown.dismissAll()}panel(t,e){return this._panel.create(t,e)}shell(t,e){return this._shell.shell(t,e)}dismissModals(){let t=this._activeModals.slice();for(let e=t.length-1;e>=0;e--)t[e].dismiss(null)}dismissTooltips(){this._tooltip.dismissAll()}dismissToasts(){this._toast.dismissAll()}dismissAll(){this.dismissModals(),this.dismissTooltips(),this.dismissToasts(),this.dismissDropdowns()}destroyPanels(){this._panel.destroyAll()}destroy(){if(this.dismissAll(),this.destroyPanels(),this._overlay.destroy(),this._toast.destroy(),"function"==typeof super.destroy)return super.destroy()}},e.exports.default_configuration=h},{"./Pict-Modal-Confirm.js":15,"./Pict-Modal-Dropdown.js":16,"./Pict-Modal-Overlay.js":17,"./Pict-Modal-Panel.js":18,"./Pict-Modal-Shell.js":19,"./Pict-Modal-Toast.js":20,"./Pict-Modal-Tooltip.js":21,"./Pict-Modal-Window.js":22,"./Pict-Section-Modal-DefaultConfiguration.js":23,"pict-view":75}],25:[function(t,e,o){
58
+ /**
59
+ * Pict Provider: Theme
60
+ *
61
+ * Runtime theme manager for Pict applications. Registers theme bundles
62
+ * (token maps + CSS + SVG + image assets) and applies them by injecting
63
+ * CSS custom properties into a single <style id="pict-theme"> element.
64
+ *
65
+ * Themes can be:
66
+ * - Single-mode (Modes.Strategy = "single")
67
+ * - Paired light/dark (Modes.Strategy = "paired")
68
+ * - System-aware (Modes.Strategy = "system" — paired + auto-pick)
69
+ *
70
+ * Mode is reflected as `theme-light` / `theme-dark` class on <html>.
71
+ *
72
+ * Token resolution path examples:
73
+ * provider.token('Tokens.Color.Background.Primary') -> raw current value
74
+ * provider.cssVar('Color.Background.Primary') -> 'var(--theme-color-background-primary)'
75
+ * provider.asset('SVG', 'Logo') -> SVG string
76
+ * provider.image('Hero') -> image URL / data URL
77
+ *
78
+ * Template expressions registered (when pict has addTemplate):
79
+ * {~Theme:Tokens.Color.Background.Primary~} raw value
80
+ * {~ThemeVar:Color.Background.Primary~} var(--theme-...) reference
81
+ * {~ThemeAsset:SVG.Logo~} asset content
82
+ * {~ThemeImage:Hero~} image URL
83
+ *
84
+ * Stateless: this provider does not persist anything. Host applications
85
+ * decide what to apply at boot (from localStorage, server config, etc.).
86
+ *
87
+ * @author Steven Velozo <steven@velozo.com>
88
+ * @license MIT
89
+ */
90
+ const n=t("pict-provider"),r="pict-theme",i="theme-light",a="theme-dark",s="--theme-";class l extends n{constructor(e,o,n){if(super(e,o,n),this.serviceType="PictProviderTheme",this._themes={},this._themeOrder=[],this._activeHash=null,this._activeMode=null,this._resolvedMode=null,this._systemMediaQuery=null,this._systemListener=null,this._registeredCSSHashes=[],this._applyListeners=[],this.pict&&"function"==typeof this.pict.addTemplate)try{this.pict.addTemplate(t("./templates/Pict-Template-Theme.js")),this.pict.addTemplate(t("./templates/Pict-Template-ThemeVar.js")),this.pict.addTemplate(t("./templates/Pict-Template-ThemeAsset.js")),this.pict.addTemplate(t("./templates/Pict-Template-ThemeImage.js"))}catch(t){this.log&&this.log.warn("PictProviderTheme: template registration skipped: "+t.message)}}registerTheme(t){return t&&"object"==typeof t?t.Hash&&"string"==typeof t.Hash?(this._themes[t.Hash]||this._themeOrder.push(t.Hash),this._themes[t.Hash]=t,!0):(this.log&&this.log.warn("PictProviderTheme.registerTheme: bundle missing required string Hash"),!1):(this.log&&this.log.warn("PictProviderTheme.registerTheme: bundle is not an object"),!1)}listThemes(){let t=[];for(let e=0;e<this._themeOrder.length;e++){let o=this._themeOrder[e],n=this._themes[o],r=n.Modes||{};t.push({Hash:n.Hash,Name:n.Name||n.Hash,Version:n.Version||null,Strategy:r.Strategy||"single",DefaultMode:r.Default||"light",Comprehensive:!1!==n.Comprehensive})}return t}getTheme(t){return this._themes[t]||null}applyTheme(t,e){let o=this._themes[t];if(!o)return this.log&&this.log.warn("PictProviderTheme.applyTheme: unknown theme hash [".concat(t,"]")),!1;let n=this._resolveBundle(o),r=n.Modes&&n.Modes.Strategy||"single",i=n.Modes&&n.Modes.Default||"light",a=e||i;"single"===r&&(a=i),this._activeHash=t,this._activeMode=a;let s=this._buildThemeCSS(n);return this._injectStyleElement(s),this._registerAuxiliaryCSS(n),this._applyMode(a,r),this._fireApplyListeners(n),!0}setMode(t){if(!this._activeHash)return!1;let e=this._resolveBundle(this._themes[this._activeHash]),o=e.Modes&&e.Modes.Strategy||"single";return"single"!==o&&(this._activeMode=t,this._applyMode(t,o),this._fireApplyListeners(e),!0)}onApply(t){if("function"!=typeof t)return function(){};this._applyListeners.push(t);let e=this;return function(){e.offApply(t)}}offApply(t){let e=this._applyListeners.indexOf(t);e>=0&&this._applyListeners.splice(e,1)}_fireApplyListeners(t){if(0===this._applyListeners.length)return;let e={Hash:this._activeHash,Mode:this._activeMode,ResolvedMode:this._resolvedMode};for(let o=0;o<this._applyListeners.length;o++)try{this._applyListeners[o](t,e)}catch(t){this.log&&this.log.warn("PictProviderTheme: onApply listener threw: "+t.message)}}unapplyTheme(){if(this._detachSystemListener(),"undefined"!=typeof document){let t=document.getElementById(r);t&&t.parentNode&&t.parentNode.removeChild(t),document.documentElement&&document.documentElement.classList&&(document.documentElement.classList.remove(i),document.documentElement.classList.remove(a))}if(this.pict&&this.pict.CSSMap&&"function"==typeof this.pict.CSSMap.removeCSS)for(let t=0;t<this._registeredCSSHashes.length;t++)this.pict.CSSMap.removeCSS(this._registeredCSSHashes[t]);return this._registeredCSSHashes=[],this._activeHash=null,this._activeMode=null,this._resolvedMode=null,!0}getActiveTheme(){return{Hash:this._activeHash,Mode:this._activeMode,ResolvedMode:this._resolvedMode}}token(t){if(!this._activeHash)return null;let e=this._resolveBundle(this._themes[this._activeHash]),o=this._walkPath(e,t);return this._resolveModedValue(o)}cssVar(t){return"var("+this._cssVarName(t)+")"}asset(t,e){if(!this._activeHash)return null;let o=this._resolveBundle(this._themes[this._activeHash])[t];return o?this._walkPath(o,e):null}image(t){return this.asset("Image",t)}svg(t){return this.asset("SVG",t)}_resolveBundle(t){let e=[],o=t,n={};for(;o&&!n[o.Hash];){n[o.Hash]=!0,e.unshift(o);let t=o.BasedOn;o=t?this._themes[t]:null}if(1===e.length)return e[0];let r={};for(let t=0;t<e.length;t++)r=this._deepMerge(r,e[t]);return r}_deepMerge(t,e){let o=Object.assign({},t),n=Object.keys(e);for(let t=0;t<n.length;t++){let r=n[t],i=e[r];null===i||"object"!=typeof i||Array.isArray(i)||null===o[r]||"object"!=typeof o[r]||Array.isArray(o[r])?o[r]=i:o[r]=this._deepMerge(o[r],i)}return o}_walkPath(t,e){if(!t||!e)return null;let o=e.split("."),n=t;for(let t=0;t<o.length;t++){if(null===n||"object"!=typeof n)return null;if(n=n[o[t]],void 0===n)return null}return n}_resolveModedValue(t){if(this._isPairedValue(t)){return t["dark"===(this._resolvedMode||"light")?"Dark":"Light"]}return t}_isPairedValue(t){return null!==t&&"object"==typeof t&&!Array.isArray(t)&&Object.keys(t).length>0&&Object.keys(t).every(t=>"Light"===t||"Dark"===t)}_buildThemeCSS(t){let e=t.Tokens||{},o=this._flattenTokens(e,""),n=t.Modes&&t.Modes.Strategy||"single",r=o.some(t=>this._isPairedValue(t.Value)),i=this._buildAliasLines(t.Aliases);if("single"===n||!r){let t=":root {\n";for(let e=0;e<o.length;e++){let n=o[e],r=this._isPairedValue(n.Value)?n.Value.Light:n.Value;t+="\t"+this._cssVarName(n.Path)+": "+this._formatCSSValue(r)+";\n"}return t+=i,t+="}\n",t}let s=":root {\n",l="."+a+" {\n";for(let t=0;t<o.length;t++){let e=o[t],n=this._cssVarName(e.Path);this._isPairedValue(e.Value)?(void 0!==e.Value.Light&&(s+="\t"+n+": "+this._formatCSSValue(e.Value.Light)+";\n"),void 0!==e.Value.Dark&&(l+="\t"+n+": "+this._formatCSSValue(e.Value.Dark)+";\n")):s+="\t"+n+": "+this._formatCSSValue(e.Value)+";\n"}return s+=i,s+="}\n",l+="}\n",s+l}_buildAliasLines(t){if(!t||"object"!=typeof t)return"";let e=Object.keys(t),o="";for(let n=0;n<e.length;n++){let r=e[n],i=t[r];"string"==typeof i&&0!==i.length&&(o+="\t"+r+": var("+this._cssVarName(i)+");\n")}return o}_flattenTokens(t,e){let o=[];if(null===t||"object"!=typeof t||Array.isArray(t))return e&&o.push({Path:e,Value:t}),o;if(this._isPairedValue(t))return o.push({Path:e,Value:t}),o;let n=Object.keys(t);for(let r=0;r<n.length;r++){let i=n[r],a=e?e+"."+i:i,s=t[i];o=o.concat(this._flattenTokens(s,a))}return o}_cssVarName(t){return s+t.toLowerCase().replace(/\./g,"-")}_formatCSSValue(t){return null==t?"":String(t)}_injectStyleElement(t){if("undefined"==typeof document)return;let e=document.getElementById(r);e||(e=document.createElement("style"),e.id=r,document.head.appendChild(e)),e.textContent=t}_registerAuxiliaryCSS(t){if(this.pict&&this.pict.CSSMap&&"function"==typeof this.pict.CSSMap.removeCSS)for(let t=0;t<this._registeredCSSHashes.length;t++)this.pict.CSSMap.removeCSS(this._registeredCSSHashes[t]);if(this._registeredCSSHashes=[],Array.isArray(t.CSS)&&this.pict&&this.pict.CSSMap&&"function"==typeof this.pict.CSSMap.addCSS)for(let e=0;e<t.CSS.length;e++){let o=t.CSS[e];if(!o||!o.Hash||"string"!=typeof o.Content)continue;let n="number"==typeof o.Priority?o.Priority:500;this.pict.CSSMap.addCSS(o.Hash,o.Content,n),this._registeredCSSHashes.push(o.Hash)}}_applyMode(t,e){this._detachSystemListener();let o=t;"system"===t&&(o=this._readSystemPreference(),this._attachSystemListener(e)),this._resolvedMode="dark"===o?"dark":"light",this._writeHTMLClass(this._resolvedMode)}_writeHTMLClass(t){if("undefined"==typeof document||!document.documentElement||!document.documentElement.classList)return;let e=document.documentElement.classList;"dark"===t?(e.remove(i),e.add(a)):(e.remove(a),e.add(i))}_readSystemPreference(){if("undefined"==typeof window||"function"!=typeof window.matchMedia)return"light";try{return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}catch(t){return"light"}}_attachSystemListener(t){if("undefined"!=typeof window&&"function"==typeof window.matchMedia)try{let t=this,e=window.matchMedia("(prefers-color-scheme: dark)"),o=function(){let o=e.matches?"dark":"light";t._resolvedMode=o,t._writeHTMLClass(o)};"function"==typeof e.addEventListener?e.addEventListener("change",o):"function"==typeof e.addListener&&e.addListener(o),this._systemMediaQuery=e,this._systemListener=o}catch(t){}}_detachSystemListener(){if(this._systemMediaQuery&&this._systemListener){try{"function"==typeof this._systemMediaQuery.removeEventListener?this._systemMediaQuery.removeEventListener("change",this._systemListener):"function"==typeof this._systemMediaQuery.removeListener&&this._systemMediaQuery.removeListener(this._systemListener)}catch(t){}this._systemMediaQuery=null,this._systemListener=null}}}l.default_configuration={ProviderIdentifier:"Theme",AutoInitialize:!0,AutoInitializeOrdinal:0},e.exports=l,e.exports.STYLE_ELEMENT_ID=r,e.exports.HTML_CLASS_LIGHT=i,e.exports.HTML_CLASS_DARK=a,e.exports.CSS_VAR_PREFIX=s},{"./templates/Pict-Template-Theme.js":26,"./templates/Pict-Template-ThemeAsset.js":27,"./templates/Pict-Template-ThemeImage.js":28,"./templates/Pict-Template-ThemeVar.js":29,"pict-provider":7}],26:[function(t,e,o){const n=t("pict-template");e.exports=class extends n{constructor(t,e,o){super(t,e,o),this.addPattern("{~Theme:","~}")}render(t){let e=(t||"").trim();if(!e)return"";let o=this._findThemeProvider();if(!o)return"";let n=o.token(e);return null==n?"":String(n)}_findThemeProvider(){return this.pict&&this.pict.providers&&this.pict.providers.Theme||null}}},{"pict-template":73}],27:[function(t,e,o){const n=t("pict-template");e.exports=class extends n{constructor(t,e,o){super(t,e,o),this.addPattern("{~ThemeAsset:","~}")}render(t){let e=(t||"").trim();if(!e)return"";let o=e.indexOf(".");if(o<0)return"";let n=e.substring(0,o),r=e.substring(o+1),i=this._findThemeProvider();if(!i)return"";let a=i.asset(n,r);return null==a?"":String(a)}_findThemeProvider(){return this.pict&&this.pict.providers&&this.pict.providers.Theme||null}}},{"pict-template":73}],28:[function(t,e,o){const n=t("pict-template");e.exports=class extends n{constructor(t,e,o){super(t,e,o),this.addPattern("{~ThemeImage:","~}")}render(t){let e=(t||"").trim();if(!e)return"";let o=this._findThemeProvider();if(!o)return"";let n=o.image(e);return null==n?"":String(n)}_findThemeProvider(){return this.pict&&this.pict.providers&&this.pict.providers.Theme||null}}},{"pict-template":73}],29:[function(t,e,o){const n=t("pict-template");e.exports=class extends n{constructor(t,e,o){super(t,e,o),this.addPattern("{~ThemeVar:","~}")}render(t){let e=(t||"").trim();if(!e)return"";let o=this._findThemeProvider();return o?o.cssVar(e):""}_findThemeProvider(){return this.pict&&this.pict.providers&&this.pict.providers.Theme||null}}},{"pict-template":73}],30:[function(t,e,o){const n=t("pict-provider"),r=t("pict-provider-theme"),i=t("./views/PictView-Theme-Picker.js"),a=t("./views/PictView-Theme-ModeToggle.js"),s=t("./views/PictView-Theme-ScaleSelect.js"),l=t("./views/PictView-Theme-Button.js"),c=t("./views/PictView-Theme-BrandStrip.js"),d=t("./views/PictView-Theme-Brand-Mark.js"),p=t("./views/PictView-Theme-TopBar.js"),h=t("./views/PictView-Theme-BottomBar.js"),u=t("./Theme-Persistence.js"),m=t("./Theme-Scale.js"),g=t("./Theme-Brand.js"),f=t("./themes/_catalog.js"),b={Picker:{lib:i,hash:"Theme-Picker"},ModeToggle:{lib:a,hash:"Theme-ModeToggle"},ScaleSelect:{lib:s,hash:"Theme-ScaleSelect"},Button:{lib:l,hash:"Theme-Button"},BrandStrip:{lib:c,hash:"Theme-BrandStrip"},BrandMark:{lib:d,hash:"Theme-Brand-Mark"},TopBar:{lib:p,hash:"Theme-TopBar"},BottomBar:{lib:h,hash:"Theme-BottomBar"}};function v(t){if(!t||!t.providers||!t.providers.Theme)return t&&t.log&&t.log.warn&&t.log.warn("pict-section-theme.registerCatalog: pict.providers.Theme not found — register the runtime first"),0;let e=t.providers.Theme,o=f.list(),n=0;for(let t=0;t<o.length;t++)e.registerTheme(o[t].Bundle)&&n++;return n}function y(t,e){if(!t||"function"!=typeof t.addProvider)throw new Error("pict-section-theme: requires a Pict instance");let o=e||{};if(!t.providers||!t.providers.Theme){let e=Object.assign({},r.default_configuration,o.ProviderOptions||{});t.addProvider("Theme",e,r)}!1!==o.RegisterCatalog&&v(t);let n=Array.isArray(o.Views)?o.Views:Object.keys(b);for(let e=0;e<n.length;e++){let r=b[n[e]];if(!r){t.log&&t.log.warn&&t.log.warn('pict-section-theme: unknown view name "'+n[e]+'" — skipped');continue}if(t.views&&t.views[r.hash])continue;let i=Object.assign({},r.lib.default_configuration,o.ViewOptions&&o.ViewOptions[n[e]]||{});t.addView(r.hash,i,r.lib)}let i=t.providers.Theme,a=!1!==o.Persistence,s=null,l=o.ApplyDefault||null,c=o.DefaultMode||null,d="number"==typeof o.DefaultScale?o.DefaultScale:null;if(a&&i){s=u.resolveKey(o.PersistenceKey);let t=u.load(s);t&&t.ThemeHash&&"function"==typeof i.getTheme&&i.getTheme(t.ThemeHash)?(l=t.ThemeHash,t.Mode&&(c=t.Mode),t.Scale&&(d=t.Scale)):t&&t.Scale&&(d=t.Scale);let e=function(){let t="function"==typeof i.getActiveTheme?i.getActiveTheme():{Hash:null,Mode:null};u.save(s,{ThemeHash:t.Hash,Mode:t.Mode,Scale:m.getActive()})};i.onApply(e),m.onChange(e)}return l&&i&&i.applyTheme(l,c),null!==d&&m.applyScale(d),o.Brand&&g.applyBrand(o.Brand),i&&s&&(i._persistenceKey=s),i}class w extends n{constructor(t,e,o){super(t,e,o),this.serviceType="PictSectionTheme",y(this.pict,this.options)}mount(t){let e=t||{},o=e.Container;if(!o)return null;let n="string"==typeof o?this.pict&&this.pict.ContentAssignment?this.pict.ContentAssignment.getElement(o):document.querySelector(o):o;if(n&&n.length&&!n.tagName&&(n=n[0]),!n)return this.pict&&this.pict.log&&this.pict.log.warn&&this.pict.log.warn("pict-section-theme.mount: container not found for "+o),null;let r=Array.isArray(e.Views)&&e.Views.length?e.Views:["Picker","ModeToggle","ScaleSelect"],i=[],a=[];for(let t=0;t<r.length;t++){let e=b[r[t]];if(!e)continue;let o=(e.lib.default_configuration.DefaultDestinationAddress||"").replace(/^#/,"");o&&(i.push('<div class="pict-theme-mount-row pict-theme-mount-row-'+e.hash.toLowerCase()+'"><div id="'+o+'"></div></div>'),a.push(e.hash))}let s="pict-theme-mount"+(e.WrapperClass?" "+e.WrapperClass:"");n.innerHTML='<div class="'+s+'">'+i.join("")+"</div>";for(let t=0;t<a.length;t++){let e=this.pict.views[a[t]];if(e&&"function"==typeof e.render)try{e.render()}catch(t){}}return{container:n,viewsRendered:a}}}e.exports=w,e.exports.default_configuration={ProviderIdentifier:"Theme-Section",AutoInitialize:!1,ApplyDefault:null,DefaultMode:null,DefaultScale:null,Persistence:!0,PersistenceKey:null,RegisterCatalog:!0,Views:null,ViewOptions:null,Brand:null,ProviderOptions:null},e.exports.Provider=r,e.exports.PictSectionThemeProvider=w,e.exports.PickerView=i,e.exports.ModeToggleView=a,e.exports.ButtonView=l,e.exports.ScaleSelectView=s,e.exports.BrandStripView=c,e.exports.BrandMarkView=d,e.exports.TopBarView=p,e.exports.BottomBarView=h,e.exports.Catalog=f,e.exports.Brand=g,e.exports.Scale=m,e.exports.Persistence=u,e.exports.registerCatalog=v,e.exports.listCatalog=function(){let t=f.list(),e=[];for(let o=0;o<t.length;o++){let n=t[o],r=n.Bundle||{},i=r.Modes||{};e.push({Hash:n.Hash,Name:r.Name||n.Hash,Category:n.Category||"Other",Strategy:i.Strategy||"single",DefaultMode:i.Default||"light",IsDefault:!!n.IsDefault})}return e},e.exports.install=function(t,e){if(!t||"function"!=typeof t.addProvider)throw new Error("pict-section-theme.install: first arg must be a Pict instance");return y(t,e||{})},e.exports.clearPersistence=function(t){let e=t&&t.providers&&t.providers.Theme&&t.providers.Theme._persistenceKey||u.resolveKey(null);return u.clear(e)}},{"./Theme-Brand.js":31,"./Theme-Persistence.js":33,"./Theme-Scale.js":34,"./themes/_catalog.js":38,"./views/PictView-Theme-BottomBar.js":64,"./views/PictView-Theme-Brand-Mark.js":65,"./views/PictView-Theme-BrandStrip.js":66,"./views/PictView-Theme-Button.js":67,"./views/PictView-Theme-ModeToggle.js":68,"./views/PictView-Theme-Picker.js":69,"./views/PictView-Theme-ScaleSelect.js":70,"./views/PictView-Theme-TopBar.js":71,"pict-provider":7,"pict-provider-theme":25}],31:[function(t,e,o){const n="pict-brand",r="pict-brand-favicon",i="pict-brand-favicon-dark";let a=null,s=[];function l(t){return"string"==typeof t&&/^\s*<svg[\s>]/i.test(t)}function c(t){return"string"==typeof t&&/^(data:|https?:|\/|\.\.?\/)/.test(t)}function d(t){return t&&"string"==typeof t.IconType?t.IconType:t&&t.Icon?l(t.Icon)?"svg":c(t.Icon)?"image":null:null}function p(t){if("string"==typeof t&&t.length>0)return{Light:t,Dark:t,Base:t};if(t&&"object"==typeof t){let e="string"==typeof t.Light&&t.Light.length>0?t.Light:null,o="string"==typeof t.Dark&&t.Dark.length>0?t.Dark:null;return e||o?(e=e||o,o=o||e,{Light:e,Dark:o,Base:"string"==typeof t.Base&&t.Base.length>0?t.Base:e}):null}return null}function h(t){if(!t||"string"!=typeof t)return null;if(l(t)){return"data:image/svg+xml;charset=utf-8,"+encodeURIComponent(t).replace(/'/g,"%27").replace(/"/g,"%22")}return c(t)?t:null}function u(){"undefined"!=typeof document&&[r,i].forEach(t=>{let e=document.getElementById(t);e&&e.parentNode&&e.parentNode.removeChild(e)})}function m(t){let e=t.Colors;var o;return":root {\n\t--brand-color-primary: "+e.Primary+";\n\t--brand-color-secondary: "+e.Secondary+";\n\t--brand-color-primary-light: "+e.PrimaryLight+";\n\t--brand-color-primary-dark: "+e.PrimaryDark+";\n\t--brand-color-secondary-light: "+e.SecondaryLight+";\n\t--brand-color-secondary-dark: "+e.SecondaryDark+";\n\t--brand-color-primary-mode: "+e.PrimaryLight+";\n\t--brand-color-secondary-mode: "+e.SecondaryLight+";\n\t--brand-name: "+(o=t.Name,'"'+String(o||"").replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'";\n}\n')+(".theme-dark {\n\t--brand-color-primary-mode: "+e.PrimaryDark+";\n\t--brand-color-secondary-mode: "+e.SecondaryDark+";\n}\n")}function g(t){let e=a;if(null===t){if(a=null,"undefined"!=typeof document){let t=document.getElementById(n);t&&t.parentNode&&t.parentNode.removeChild(t)}return u(),b(null,e),null}let o=function(t){if(!t||"object"!=typeof t)return null;let e=t.Colors||{},o=p(e.Primary),n=p(e.Secondary);if(!o||!n)return null;let r=e.PrimaryLight||o.Light,i=e.PrimaryDark||o.Dark,a=e.SecondaryLight||n.Light,s=e.SecondaryDark||n.Dark;return{Hash:t.Hash||"brand",Name:t.Name||t.Hash||"Brand",Icon:t.Icon||null,IconType:d(t),Tagline:"string"==typeof t.Tagline?t.Tagline:null,Favicon:t.Favicon||null,FaviconDark:t.FaviconDark||null,Colors:{Primary:o.Base,Secondary:n.Base,PrimaryLight:r,PrimaryDark:i,SecondaryLight:a,SecondaryDark:s}}}(t);return o?(a=o,function(t){if("undefined"==typeof document)return;let e=document.getElementById(n);e||(e=document.createElement("style"),e.id=n,document.head.appendChild(e)),e.textContent=t}(m(o)),function(t){if("undefined"==typeof document)return;u();let e=h(t.Favicon),o=h(t.FaviconDark);if(!e&&!o)return;let n=!(!e||!o);if(e){let t=document.createElement("link");t.id=r,t.rel="icon",t.href=e,/^data:image\/svg\+xml/.test(e)&&(t.type="image/svg+xml"),n&&(t.media="(prefers-color-scheme: light)"),document.head.appendChild(t)}if(o){let t=document.createElement("link");t.id=i,t.rel="icon",t.href=o,/^data:image\/svg\+xml/.test(o)&&(t.type="image/svg+xml"),n&&(t.media="(prefers-color-scheme: dark)"),document.head.appendChild(t)}}(o),b(o,e),o):("undefined"!=typeof console&&console.warn&&console.warn("Theme-Brand.applyBrand: bad brand object — needs Colors.Primary + Colors.Secondary as strings."),a)}function f(t){let e=s.indexOf(t);e>=0&&s.splice(e,1)}function b(t,e){for(let o=0;o<s.length;o++)try{s[o](t,e)}catch(t){}}e.exports={applyBrand:g,getActive:function(){return a},onChange:function(t){return"function"!=typeof t?function(){}:(s.push(t),function(){f(t)})},offChange:f,reset:function(){g(null),s=[]},STYLE_ELEMENT_ID:n,FAVICON_LINK_ID:r,FAVICON_DARK_LINK_ID:i}},{}],32:[function(t,e,o){function n(t,e){let o="number"==typeof t&&t>0?t:14;return'<svg class="pict-theme-icon" width="'+o+'" height="'+o+'" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">'+e+"</svg>"}function r(t){return n(t,'<circle cx="12" cy="12" r="4"/><path d="M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41"/>')}function i(t){return n(t,'<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/>')}function a(t){let e="number"==typeof t&&t>0?t:14;return'<svg class="pict-theme-icon pict-theme-icon-paired" width="'+1.6*e+'" height="'+e+'" viewBox="0 0 38 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="8" cy="12" r="3"/><path d="M8 4v1.5M8 18.5V20M2.5 12H4M12 12h1.5M4.1 7.1l1 1M11.1 7.1l-1 1M4.1 16.9l1-1M11.1 16.9l-1-1"/><path d="M33 13.5A6.5 6.5 0 1 1 26 6a5 5 0 0 0 7 7.5z"/></svg>'}e.exports={iconSun:r,iconMoon:i,iconSystem:function(t){return n(t,'<rect x="2" y="4" width="20" height="14" rx="2"/><path d="M8 21h8M12 18v3"/>')},iconPaired:a,iconChevronDown:function(t){let e="number"==typeof t&&t>0?t:10;return'<svg class="pict-theme-icon pict-theme-icon-chevron" width="'+e+'" height="'+e+'" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5l3 3 3-3"/></svg>'},iconForTheme:function(t,e,o){return"single"===t?"dark"===e?i(o):r(o):a(o)},DEFAULT_SIZE_PX:14}},{}],33:[function(t,e,o){const n="pict-section-theme:";function r(){try{if("undefined"!=typeof window&&window.localStorage)return window.localStorage}catch(t){}return null}e.exports={resolveKey:function(t){let e="string"==typeof t&&t.length>0?t:function(){try{if("undefined"!=typeof window&&window.location&&window.location.hostname)return window.location.hostname}catch(t){}return"default"}();return n+e},load:function(t){let e,o,n=r();if(!n)return null;try{e=n.getItem(t)}catch(t){return null}if(!e)return null;try{o=JSON.parse(e)}catch(t){return null}if(!o||"object"!=typeof o)return null;if(1!==o.Version)return null;if("string"!=typeof o.ThemeHash||0===o.ThemeHash.length)return null;let i=null;return"number"==typeof o.Scale&&isFinite(o.Scale)&&o.Scale>0&&(i=o.Scale),{ThemeHash:o.ThemeHash,Mode:"string"==typeof o.Mode&&o.Mode.length>0?o.Mode:null,Scale:i}},save:function(t,e){let o=r();if(!o)return!1;if(!e||"string"!=typeof e.ThemeHash||0===e.ThemeHash.length)return!1;let n={Version:1,ThemeHash:e.ThemeHash,Mode:"string"==typeof e.Mode&&e.Mode.length>0?e.Mode:null,Scale:"number"==typeof e.Scale&&isFinite(e.Scale)&&e.Scale>0?e.Scale:null,SavedAt:(new Date).toISOString()};try{return o.setItem(t,JSON.stringify(n)),!0}catch(t){return!1}},clear:function(t){let e=r();if(!e)return!1;try{return e.removeItem(t),!0}catch(t){return!1}},STORAGE_PREFIX:n,SCHEMA_VERSION:1}},{}],34:[function(t,e,o){const n="pict-theme-scale",r="--theme-scale";let i=1,a=[];function s(t){let e=a.indexOf(t);e>=0&&a.splice(e,1)}e.exports={applyScale:function(t){let e=i,o=function(t){let e=Number(t);return!isFinite(e)||e<=0?1:e<.5?.5:e>3?3:e}(t);return i=o,function(t){if("undefined"==typeof document)return;let e=document.getElementById(n);e||(e=document.createElement("style"),e.id=n,document.head.appendChild(e)),e.textContent=t}(function(t){return":root {\n\t"+r+": "+t+";\n}\nhtml {\n\tzoom: "+t+";\n}\n"}(o)),e!==o&&function(t,e){for(let o=0;o<a.length;o++)try{a[o](t,e)}catch(t){}}(o,e),o},getActive:function(){return i},onChange:function(t){return"function"!=typeof t?function(){}:(a.push(t),function(){s(t)})},offChange:s,reset:function(){if(i=1,"undefined"!=typeof document){let t=document.getElementById(n);t&&t.parentNode&&t.parentNode.removeChild(t)}a=[]},PRESETS:[{Value:.75,Label:"Tiny (75%)"},{Value:.85,Label:"Small (85%)"},{Value:1,Label:"Default (100%)"},{Value:1.15,Label:"Comfortable (115%)"},{Value:1.25,Label:"Large (125%)"},{Value:1.5,Label:"Huge (150%)"},{Value:1.75,Label:"Extra Huge (175%)"},{Value:2,Label:"Massive (200%)"}],DEFAULT_SCALE:1,MIN_SCALE:.5,MAX_SCALE:3,STYLE_ELEMENT_ID:n,CSS_VAR_NAME:r}},{}],35:[function(t,e,o){e.exports={Hash:"1970s-console",Name:"1970s Console",Category:"Fun",Version:"0.0.1",Description:"Amber phosphor on brown-black Ported from RetoldRemote-ThemeDefinitions.js to the pict-provider-theme manifest format.",Comprehensive:!0,Modes:{Strategy:"single",Default:"dark"},Tokens:{Color:{Background:{Primary:"#1A1000",Secondary:"#140C00",Tertiary:"#1E1400",Panel:"#1C1200",Viewer:"#100A00",Hover:"#2A1C00",Selected:"#3A2800",Thumb:"#140C00"},Text:{Primary:"#FFAA00",Secondary:"#DD8800",Muted:"#AA6600",Dim:"#884400",Placeholder:"#663300"},Brand:{Accent:"#FFCC00",AccentHover:"#FFDD44"},Border:{Default:"#2A1800",Light:"#3A2200"},Status:{Danger:"#FF4400",DangerMuted:"#AA3300"},Scrollbar:{Track:"#2A1800",Hover:"#3A2800"},Selection:{Background:"rgba(255, 204, 0, 0.2)"},Focus:{Outline:"#FFCC00"},Syntax:{Keyword:"#FFB000",String:"#FFD080",Number:"#FFB000",Comment:"#806020",Operator:"#FFB000",Punctuation:"#FFD080",Function:"#FFB000",Variable:"#FFE090",Type:"#FFB000",Builtin:"#FFB000",Property:"#FF6E40",Tag:"#FF6E40",AttrName:"#FFB000",AttrValue:"#FFD080"}},Typography:{Family:{Sans:"'Courier New', 'Lucida Console', monospace",Mono:"'Courier New', 'Lucida Console', monospace"}}},Aliases:{"--retold-bg-primary":"Color.Background.Primary","--retold-bg-secondary":"Color.Background.Secondary","--retold-bg-tertiary":"Color.Background.Tertiary","--retold-bg-panel":"Color.Background.Panel","--retold-bg-viewer":"Color.Background.Viewer","--retold-bg-hover":"Color.Background.Hover","--retold-bg-selected":"Color.Background.Selected","--retold-bg-thumb":"Color.Background.Thumb","--retold-text-primary":"Color.Text.Primary","--retold-text-secondary":"Color.Text.Secondary","--retold-text-muted":"Color.Text.Muted","--retold-text-dim":"Color.Text.Dim","--retold-text-placeholder":"Color.Text.Placeholder","--retold-accent":"Color.Brand.Accent","--retold-accent-hover":"Color.Brand.AccentHover","--retold-border":"Color.Border.Default","--retold-border-light":"Color.Border.Light","--retold-danger":"Color.Status.Danger","--retold-danger-muted":"Color.Status.DangerMuted","--retold-scrollbar":"Color.Scrollbar.Track","--retold-scrollbar-hover":"Color.Scrollbar.Hover","--retold-selection-bg":"Color.Selection.Background","--retold-focus-outline":"Color.Focus.Outline","--retold-font-family":"Typography.Family.Sans","--retold-font-mono":"Typography.Family.Mono"},IconColors:{Primary:"#DD8800",Accent:"#FFCC00",Muted:"#884400",Light:"#1E1400",WarmBeige:"#201800",TealTint:"#1A1000",Lavender:"#1C1200",AmberTint:"#221800",PdfFill:"#201000",PdfText:"#FF4400"},CSS:[],SVG:{},Image:{},CompiledAt:"2026-05-03T18:12:53.405Z",CompilerVersion:1}},{}],36:[function(t,e,o){e.exports={Hash:"1980s-console",Name:"1980s Console",Category:"Fun",Version:"0.0.1",Description:"Green phosphor on black Ported from RetoldRemote-ThemeDefinitions.js to the pict-provider-theme manifest format.",Comprehensive:!0,Modes:{Strategy:"single",Default:"dark"},Tokens:{Color:{Background:{Primary:"#001200",Secondary:"#000E00",Tertiary:"#001600",Panel:"#001400",Viewer:"#000A00",Hover:"#002200",Selected:"#003800",Thumb:"#000E00"},Text:{Primary:"#00FF00",Secondary:"#00CC00",Muted:"#009900",Dim:"#006600",Placeholder:"#004400"},Brand:{Accent:"#00FF66",AccentHover:"#44FF88"},Border:{Default:"#002A00",Light:"#003A00"},Status:{Danger:"#FF0000",DangerMuted:"#AA0000"},Scrollbar:{Track:"#002A00",Hover:"#004400"},Selection:{Background:"rgba(0, 255, 102, 0.2)"},Focus:{Outline:"#00FF66"},Syntax:{Keyword:"#00FF00",String:"#90FF90",Number:"#FFFF00",Comment:"#208020",Operator:"#00FF00",Punctuation:"#90FF90",Function:"#00FF00",Variable:"#C0FFC0",Type:"#FFFF00",Builtin:"#FFFF00",Property:"#FF4040",Tag:"#FF4040",AttrName:"#FFFF00",AttrValue:"#90FF90"}},Typography:{Family:{Sans:"'Courier New', monospace",Mono:"'Courier New', monospace"}}},Aliases:{"--retold-bg-primary":"Color.Background.Primary","--retold-bg-secondary":"Color.Background.Secondary","--retold-bg-tertiary":"Color.Background.Tertiary","--retold-bg-panel":"Color.Background.Panel","--retold-bg-viewer":"Color.Background.Viewer","--retold-bg-hover":"Color.Background.Hover","--retold-bg-selected":"Color.Background.Selected","--retold-bg-thumb":"Color.Background.Thumb","--retold-text-primary":"Color.Text.Primary","--retold-text-secondary":"Color.Text.Secondary","--retold-text-muted":"Color.Text.Muted","--retold-text-dim":"Color.Text.Dim","--retold-text-placeholder":"Color.Text.Placeholder","--retold-accent":"Color.Brand.Accent","--retold-accent-hover":"Color.Brand.AccentHover","--retold-border":"Color.Border.Default","--retold-border-light":"Color.Border.Light","--retold-danger":"Color.Status.Danger","--retold-danger-muted":"Color.Status.DangerMuted","--retold-scrollbar":"Color.Scrollbar.Track","--retold-scrollbar-hover":"Color.Scrollbar.Hover","--retold-selection-bg":"Color.Selection.Background","--retold-focus-outline":"Color.Focus.Outline","--retold-font-family":"Typography.Family.Sans","--retold-font-mono":"Typography.Family.Mono"},IconColors:{Primary:"#00CC00",Accent:"#00FF66",Muted:"#006600",Light:"#001600",WarmBeige:"#001A00",TealTint:"#001200",Lavender:"#001400",AmberTint:"#001800",PdfFill:"#140000",PdfText:"#FF0000"},CSS:[],SVG:{},Image:{},CompiledAt:"2026-05-03T18:12:53.406Z",CompilerVersion:1}},{}],37:[function(t,e,o){e.exports={Hash:"1990s-website",Name:"1990s Web Site",Category:"Fun",Version:"0.0.1",Description:"Blue links on grey, beveled Ported from RetoldRemote-ThemeDefinitions.js to the pict-provider-theme manifest format.",Comprehensive:!0,Modes:{Strategy:"single",Default:"light"},Tokens:{Color:{Background:{Primary:"#C0C0C0",Secondary:"#B0B0B0",Tertiary:"#A8A8A8",Panel:"#B8B8B8",Viewer:"#D0D0D0",Hover:"#B8B8D0",Selected:"#000080",Thumb:"#B0B0B0"},Text:{Primary:"#000000",Secondary:"#000080",Muted:"#404040",Dim:"#606060",Placeholder:"#808080"},Brand:{Accent:"#0000FF",AccentHover:"#0000CC"},Border:{Default:"#808080",Light:"#A0A0A0"},Status:{Danger:"#FF0000",DangerMuted:"#990000"},Scrollbar:{Track:"#808080",Hover:"#606060"},Selection:{Background:"rgba(0, 0, 128, 0.3)"},Focus:{Outline:"#0000FF"},Syntax:{Keyword:"#0000FF",String:"#008000",Number:"#A52A2A",Comment:"#808080",Operator:"#000080",Punctuation:"#000000",Function:"#0000A0",Variable:"#000000",Type:"#A52A2A",Builtin:"#A52A2A",Property:"#800080",Tag:"#800080",AttrName:"#A52A2A",AttrValue:"#008000"}},Typography:{Family:{Sans:"'Times New Roman', Times, serif",Mono:"'Courier New', Courier, monospace"}}},Aliases:{"--retold-bg-primary":"Color.Background.Primary","--retold-bg-secondary":"Color.Background.Secondary","--retold-bg-tertiary":"Color.Background.Tertiary","--retold-bg-panel":"Color.Background.Panel","--retold-bg-viewer":"Color.Background.Viewer","--retold-bg-hover":"Color.Background.Hover","--retold-bg-selected":"Color.Background.Selected","--retold-bg-thumb":"Color.Background.Thumb","--retold-text-primary":"Color.Text.Primary","--retold-text-secondary":"Color.Text.Secondary","--retold-text-muted":"Color.Text.Muted","--retold-text-dim":"Color.Text.Dim","--retold-text-placeholder":"Color.Text.Placeholder","--retold-accent":"Color.Brand.Accent","--retold-accent-hover":"Color.Brand.AccentHover","--retold-border":"Color.Border.Default","--retold-border-light":"Color.Border.Light","--retold-danger":"Color.Status.Danger","--retold-danger-muted":"Color.Status.DangerMuted","--retold-scrollbar":"Color.Scrollbar.Track","--retold-scrollbar-hover":"Color.Scrollbar.Hover","--retold-selection-bg":"Color.Selection.Background","--retold-focus-outline":"Color.Focus.Outline","--retold-font-family":"Typography.Family.Sans","--retold-font-mono":"Typography.Family.Mono"},IconColors:{Primary:"#000080",Accent:"#0000FF",Muted:"#606060",Light:"#A8A8A8",WarmBeige:"#B0B0B0",TealTint:"#A0A0A0",Lavender:"#ABABD0",AmberTint:"#B8B0A0",PdfFill:"#C0A0A0",PdfText:"#FF0000"},CSS:[],SVG:{},Image:{},CompiledAt:"2026-05-03T18:12:53.406Z",CompilerVersion:1}},{}],38:[function(t,e,o){class n{constructor(){this._themes=new Map,this._loadStarterSet()}_loadStarterSet(){const e=[{Hash:"retold-default",Category:"Default",IsDefault:!0,Bundle:t("./retold-default.json")},{Hash:"retold-mono",Category:"Default",Bundle:t("./retold-mono.json")},{Hash:"retold-manager",Category:"App",Bundle:t("./retold-manager.json")},{Hash:"retold-content-system",Category:"App",Bundle:t("./retold-content-system.json")},{Hash:"ultravisor-desert-dusk",Category:"App",Bundle:t("./ultravisor-desert-dusk.json")},{Hash:"ultravisor-desert-day",Category:"App",Bundle:t("./ultravisor-desert-day.json")},{Hash:"ultravisor-desert-sunset",Category:"App",Bundle:t("./ultravisor-desert-sunset.json")},{Hash:"ultravisor-professional-light",Category:"App",Bundle:t("./ultravisor-professional-light.json")},{Hash:"ultravisor-professional-dark",Category:"App",Bundle:t("./ultravisor-professional-dark.json")},{Hash:"ultravisor-desert-canyon",Category:"App",Bundle:t("./ultravisor-desert-canyon.json")},{Hash:"playground-corp",Category:"Paired",Bundle:t("./playground-corp.json")},{Hash:"playground-starter",Category:"Paired",Bundle:t("./playground-starter.json")},{Hash:"twilight",Category:"Grey",Bundle:t("./twilight.json")},{Hash:"night",Category:"Grey",Bundle:t("./night.json")},{Hash:"evening",Category:"Grey",Bundle:t("./evening.json")},{Hash:"afternoon",Category:"Grey",Bundle:t("./afternoon.json")},{Hash:"daylight",Category:"Grey",Bundle:t("./daylight.json")},{Hash:"cyberpunk",Category:"Fun",Bundle:t("./cyberpunk.json")},{Hash:"synthwave",Category:"Fun",Bundle:t("./synthwave.json")},{Hash:"neo-tokyo",Category:"Fun",Bundle:t("./neo-tokyo.json")},{Hash:"solarized-dark",Category:"Fun",Bundle:t("./solarized-dark.json")},{Hash:"forest",Category:"Fun",Bundle:t("./forest.json")},{Hash:"hotdog",Category:"Fun",Bundle:t("./hotdog.json")},{Hash:"1970s-console",Category:"Fun",Bundle:t("./1970s-console.json")},{Hash:"1980s-console",Category:"Fun",Bundle:t("./1980s-console.json")},{Hash:"1990s-website",Category:"Fun",Bundle:t("./1990s-website.json")},{Hash:"early-2000s",Category:"Fun",Bundle:t("./early-2000s.json")},{Hash:"mobile-debug",Category:"Debug",Bundle:t("./mobile-debug.json")}];for(let t=0;t<e.length;t++){let o=Object.assign({},e[t],{Source:e[t].Source||"starter"});this._themes.set(o.Hash,o)}}register(t){if(!t||"object"!=typeof t)throw new Error("ThemeRegistry.register: entry must be an object");if("string"!=typeof t.Hash||0===t.Hash.length)throw new Error("ThemeRegistry.register: entry.Hash is required");if(!t.Bundle||"object"!=typeof t.Bundle)throw new Error("ThemeRegistry.register: entry.Bundle is required");let e=Object.assign({Source:"host"},t);return this._themes.set(t.Hash,e),e}unregister(t){return this._themes.delete(t)}get(t){return this._themes.get(t)}has(t){return this._themes.has(t)}list(){return Array.from(this._themes.values())}clear(){this._themes.clear()}loadStarterSet(){this._loadStarterSet()}get count(){return this._themes.size}async registerFromURL(t,e){if("function"!=typeof fetch)throw new Error("ThemeRegistry.registerFromURL: fetch is not available in this environment");let o=await fetch(t);if(!o.ok)throw new Error("ThemeRegistry.registerFromURL: HTTP "+o.status+" for "+t);let n=await o.json();if(!n||"object"!=typeof n||"string"!=typeof n.Hash)throw new Error("ThemeRegistry.registerFromURL: payload missing Hash");let r=e||{};return this.register({Hash:r.Hash||n.Hash,Bundle:n,Category:r.Category||"Garden",IsDefault:!!r.IsDefault,Source:t})}get length(){return this._themes.size}[Symbol.iterator](){return this._themes.values()}}const r=new n,i=new Proxy(r,{get(t,e,o){if("string"==typeof e&&/^\d+$/.test(e)){let o=parseInt(e,10);return t.list()[o]}return Reflect.get(t,e,o)},has:(t,e)=>"string"==typeof e&&/^\d+$/.test(e)?parseInt(e,10)<t.length:Reflect.has(t,e)});e.exports=i,e.exports.ThemeRegistry=n},{"./1970s-console.json":35,"./1980s-console.json":36,"./1990s-website.json":37,"./afternoon.json":39,"./cyberpunk.json":40,"./daylight.json":41,"./early-2000s.json":42,"./evening.json":43,"./forest.json":44,"./hotdog.json":45,"./mobile-debug.json":46,"./neo-tokyo.json":47,"./night.json":48,"./playground-corp.json":49,"./playground-starter.json":50,"./retold-content-system.json":51,"./retold-default.json":52,"./retold-manager.json":53,"./retold-mono.json":54,"./solarized-dark.json":55,"./synthwave.json":56,"./twilight.json":57,"./ultravisor-desert-canyon.json":58,"./ultravisor-desert-day.json":59,"./ultravisor-desert-dusk.json":60,"./ultravisor-desert-sunset.json":61,"./ultravisor-professional-dark.json":62,"./ultravisor-professional-light.json":63}],39:[function(t,e,o){e.exports={Hash:"afternoon",Name:"Afternoon",Category:"Grey",Version:"0.0.1",Description:"Warm light grey, softer contrast Ported from RetoldRemote-ThemeDefinitions.js to the pict-provider-theme manifest format.",Comprehensive:!0,Modes:{Strategy:"single",Default:"light"},Tokens:{Color:{Background:{Primary:"#E8E4E0",Secondary:"#DAD6D2",Tertiary:"#D0CCC8",Panel:"#DDD9D5",Viewer:"#F0ECE8",Hover:"#CCC8C4",Selected:"#B8B4B0",Thumb:"#DAD6D2"},Text:{Primary:"#2A2A2A",Secondary:"#404040",Muted:"#707070",Dim:"#909090",Placeholder:"#B0B0B0"},Brand:{Accent:"#555555",AccentHover:"#333333"},Border:{Default:"#C0BCB8",Light:"#D0CCC8"},Status:{Danger:"#AA3333",DangerMuted:"#886655"},Scrollbar:{Track:"#B8B4B0",Hover:"#A0A09C"},Selection:{Background:"rgba(85, 85, 85, 0.2)"},Focus:{Outline:"#555555"},Syntax:{Keyword:"#7038A0",String:"#2E7A3A",Number:"#A86B00",Comment:"#888888",Operator:"#1F6FB5",Punctuation:"#666666",Function:"#3357C7",Variable:"#222222",Type:"#A86B00",Builtin:"#A86B00",Property:"#B62828",Tag:"#B62828",AttrName:"#A86B00",AttrValue:"#2E7A3A"}},Typography:{Family:{Sans:"Georgia, 'Times New Roman', serif",Mono:"'Courier New', Courier, monospace"}}},Aliases:{"--retold-bg-primary":"Color.Background.Primary","--retold-bg-secondary":"Color.Background.Secondary","--retold-bg-tertiary":"Color.Background.Tertiary","--retold-bg-panel":"Color.Background.Panel","--retold-bg-viewer":"Color.Background.Viewer","--retold-bg-hover":"Color.Background.Hover","--retold-bg-selected":"Color.Background.Selected","--retold-bg-thumb":"Color.Background.Thumb","--retold-text-primary":"Color.Text.Primary","--retold-text-secondary":"Color.Text.Secondary","--retold-text-muted":"Color.Text.Muted","--retold-text-dim":"Color.Text.Dim","--retold-text-placeholder":"Color.Text.Placeholder","--retold-accent":"Color.Brand.Accent","--retold-accent-hover":"Color.Brand.AccentHover","--retold-border":"Color.Border.Default","--retold-border-light":"Color.Border.Light","--retold-danger":"Color.Status.Danger","--retold-danger-muted":"Color.Status.DangerMuted","--retold-scrollbar":"Color.Scrollbar.Track","--retold-scrollbar-hover":"Color.Scrollbar.Hover","--retold-selection-bg":"Color.Selection.Background","--retold-focus-outline":"Color.Focus.Outline","--retold-font-family":"Typography.Family.Sans","--retold-font-mono":"Typography.Family.Mono"},IconColors:{Primary:"#404040",Accent:"#555555",Muted:"#909090",Light:"#D0CCC8",WarmBeige:"#DAD6D2",TealTint:"#CCC8C4",Lavender:"#D2D0CE",AmberTint:"#D8D2C8",PdfFill:"#D8C8C0",PdfText:"#AA3333"},CSS:[],SVG:{},Image:{},CompiledAt:"2026-05-03T18:12:53.406Z",CompilerVersion:1}},{}],40:[function(t,e,o){e.exports={Hash:"cyberpunk",Name:"Cyberpunk",Category:"Fun",Version:"0.0.1",Description:"Electric green on black Ported from RetoldRemote-ThemeDefinitions.js to the pict-provider-theme manifest format.",Comprehensive:!0,Modes:{Strategy:"single",Default:"dark"},Tokens:{Color:{Background:{Primary:"#0A0E0A",Secondary:"#060806",Tertiary:"#0E120E",Panel:"#0C100C",Viewer:"#040604",Hover:"#142014",Selected:"#1A3A1A",Thumb:"#060806"},Text:{Primary:"#C8FFC8",Secondary:"#A0D8A0",Muted:"#608860",Dim:"#406040",Placeholder:"#305030"},Brand:{Accent:"#00FF41",AccentHover:"#44FF77"},Border:{Default:"#1A2A1A",Light:"#224022"},Status:{Danger:"#FF3333",DangerMuted:"#AA2222"},Scrollbar:{Track:"#1A2A1A",Hover:"#2A4A2A"},Selection:{Background:"rgba(0, 255, 65, 0.2)"},Focus:{Outline:"#00FF41"},Syntax:{Keyword:"#FF00FF",String:"#00FF41",Number:"#FFFF00",Comment:"#406040",Operator:"#00FFFF",Punctuation:"#A0D8A0",Function:"#FF00FF",Variable:"#C8FFC8",Type:"#FFFF00",Builtin:"#FFFF00",Property:"#FF3333",Tag:"#FF3333",AttrName:"#FFFF00",AttrValue:"#00FF41"}},Typography:{Family:{Sans:"'Lucida Console', 'Courier New', monospace",Mono:"'Lucida Console', 'Courier New', monospace"}}},Aliases:{"--retold-bg-primary":"Color.Background.Primary","--retold-bg-secondary":"Color.Background.Secondary","--retold-bg-tertiary":"Color.Background.Tertiary","--retold-bg-panel":"Color.Background.Panel","--retold-bg-viewer":"Color.Background.Viewer","--retold-bg-hover":"Color.Background.Hover","--retold-bg-selected":"Color.Background.Selected","--retold-bg-thumb":"Color.Background.Thumb","--retold-text-primary":"Color.Text.Primary","--retold-text-secondary":"Color.Text.Secondary","--retold-text-muted":"Color.Text.Muted","--retold-text-dim":"Color.Text.Dim","--retold-text-placeholder":"Color.Text.Placeholder","--retold-accent":"Color.Brand.Accent","--retold-accent-hover":"Color.Brand.AccentHover","--retold-border":"Color.Border.Default","--retold-border-light":"Color.Border.Light","--retold-danger":"Color.Status.Danger","--retold-danger-muted":"Color.Status.DangerMuted","--retold-scrollbar":"Color.Scrollbar.Track","--retold-scrollbar-hover":"Color.Scrollbar.Hover","--retold-selection-bg":"Color.Selection.Background","--retold-focus-outline":"Color.Focus.Outline","--retold-font-family":"Typography.Family.Sans","--retold-font-mono":"Typography.Family.Mono"},IconColors:{Primary:"#A0D8A0",Accent:"#00FF41",Muted:"#406040",Light:"#0E120E",WarmBeige:"#101610",TealTint:"#0C140C",Lavender:"#0E120E",AmberTint:"#141810",PdfFill:"#181010",PdfText:"#FF3333"},CSS:[],SVG:{},Image:{},CompiledAt:"2026-05-03T18:12:53.406Z",CompilerVersion:1}},{}],41:[function(t,e,o){e.exports={Hash:"daylight",Name:"Daylight",Category:"Grey",Version:"0.0.1",Description:"Bright white, dark text Ported from RetoldRemote-ThemeDefinitions.js to the pict-provider-theme manifest format.",Comprehensive:!0,Modes:{Strategy:"single",Default:"light"},Tokens:{Color:{Background:{Primary:"#FFFFFF",Secondary:"#F0F0F0",Tertiary:"#E8E8E8",Panel:"#F5F5F5",Viewer:"#FAFAFA",Hover:"#E0E0E0",Selected:"#C8C8C8",Thumb:"#F0F0F0"},Text:{Primary:"#1A1A1A",Secondary:"#333333",Muted:"#666666",Dim:"#888888",Placeholder:"#AAAAAA"},Brand:{Accent:"#444444",AccentHover:"#222222"},Border:{Default:"#D0D0D0",Light:"#E0E0E0"},Status:{Danger:"#CC0000",DangerMuted:"#884444"},Scrollbar:{Track:"#C0C0C0",Hover:"#A0A0A0"},Selection:{Background:"rgba(68, 68, 68, 0.2)"},Focus:{Outline:"#444444"},Syntax:{Keyword:"#7038A0",String:"#2E7A3A",Number:"#A86B00",Comment:"#888888",Operator:"#1F6FB5",Punctuation:"#444444",Function:"#3357C7",Variable:"#222222",Type:"#A86B00",Builtin:"#A86B00",Property:"#B62828",Tag:"#B62828",AttrName:"#A86B00",AttrValue:"#2E7A3A"}},Typography:{Family:{Sans:"'Segoe UI', system-ui, -apple-system, sans-serif",Mono:"'SF Mono', 'Fira Code', 'Consolas', monospace"}}},Aliases:{"--retold-bg-primary":"Color.Background.Primary","--retold-bg-secondary":"Color.Background.Secondary","--retold-bg-tertiary":"Color.Background.Tertiary","--retold-bg-panel":"Color.Background.Panel","--retold-bg-viewer":"Color.Background.Viewer","--retold-bg-hover":"Color.Background.Hover","--retold-bg-selected":"Color.Background.Selected","--retold-bg-thumb":"Color.Background.Thumb","--retold-text-primary":"Color.Text.Primary","--retold-text-secondary":"Color.Text.Secondary","--retold-text-muted":"Color.Text.Muted","--retold-text-dim":"Color.Text.Dim","--retold-text-placeholder":"Color.Text.Placeholder","--retold-accent":"Color.Brand.Accent","--retold-accent-hover":"Color.Brand.AccentHover","--retold-border":"Color.Border.Default","--retold-border-light":"Color.Border.Light","--retold-danger":"Color.Status.Danger","--retold-danger-muted":"Color.Status.DangerMuted","--retold-scrollbar":"Color.Scrollbar.Track","--retold-scrollbar-hover":"Color.Scrollbar.Hover","--retold-selection-bg":"Color.Selection.Background","--retold-focus-outline":"Color.Focus.Outline","--retold-font-family":"Typography.Family.Sans","--retold-font-mono":"Typography.Family.Mono"},IconColors:{Primary:"#333333",Accent:"#444444",Muted:"#888888",Light:"#E8E8E8",WarmBeige:"#F0F0F0",TealTint:"#E0E0E0",Lavender:"#EBEBEB",AmberTint:"#F0EDE8",PdfFill:"#F0E0E0",PdfText:"#CC0000"},CSS:[],SVG:{},Image:{},CompiledAt:"2026-05-03T18:12:53.407Z",CompilerVersion:1}},{}],42:[function(t,e,o){e.exports={Hash:"early-2000s",Name:"Early 2000s Web",Category:"Fun",Version:"0.0.1",Description:"Teal and silver, Web 2.0 Ported from RetoldRemote-ThemeDefinitions.js to the pict-provider-theme manifest format.",Comprehensive:!0,Modes:{Strategy:"single",Default:"light"},Tokens:{Color:{Background:{Primary:"#E8F4F8",Secondary:"#D0E8EE",Tertiary:"#C0DDE6",Panel:"#D8EEF2",Viewer:"#F0F8FA",Hover:"#B0D4E0",Selected:"#88C4D8",Thumb:"#D0E8EE"},Text:{Primary:"#1A3A4A",Secondary:"#2A4A5A",Muted:"#5A7A8A",Dim:"#7A9AAA",Placeholder:"#9ABACA"},Brand:{Accent:"#0099CC",AccentHover:"#00AADD"},Border:{Default:"#A0C8D8",Light:"#B8D8E4"},Status:{Danger:"#CC3300",DangerMuted:"#994422"},Scrollbar:{Track:"#A0C8D8",Hover:"#88B8CC"},Selection:{Background:"rgba(0, 153, 204, 0.2)"},Focus:{Outline:"#0099CC"},Syntax:{Keyword:"#1A4080",String:"#2E7A3A",Number:"#A86B00",Comment:"#888888",Operator:"#1F6FB5",Punctuation:"#333333",Function:"#3357C7",Variable:"#222222",Type:"#A86B00",Builtin:"#A86B00",Property:"#B62828",Tag:"#B62828",AttrName:"#A86B00",AttrValue:"#2E7A3A"}},Typography:{Family:{Sans:"Verdana, Geneva, Tahoma, sans-serif",Mono:"'Lucida Console', Monaco, monospace"}}},Aliases:{"--retold-bg-primary":"Color.Background.Primary","--retold-bg-secondary":"Color.Background.Secondary","--retold-bg-tertiary":"Color.Background.Tertiary","--retold-bg-panel":"Color.Background.Panel","--retold-bg-viewer":"Color.Background.Viewer","--retold-bg-hover":"Color.Background.Hover","--retold-bg-selected":"Color.Background.Selected","--retold-bg-thumb":"Color.Background.Thumb","--retold-text-primary":"Color.Text.Primary","--retold-text-secondary":"Color.Text.Secondary","--retold-text-muted":"Color.Text.Muted","--retold-text-dim":"Color.Text.Dim","--retold-text-placeholder":"Color.Text.Placeholder","--retold-accent":"Color.Brand.Accent","--retold-accent-hover":"Color.Brand.AccentHover","--retold-border":"Color.Border.Default","--retold-border-light":"Color.Border.Light","--retold-danger":"Color.Status.Danger","--retold-danger-muted":"Color.Status.DangerMuted","--retold-scrollbar":"Color.Scrollbar.Track","--retold-scrollbar-hover":"Color.Scrollbar.Hover","--retold-selection-bg":"Color.Selection.Background","--retold-focus-outline":"Color.Focus.Outline","--retold-font-family":"Typography.Family.Sans","--retold-font-mono":"Typography.Family.Mono"},IconColors:{Primary:"#2A4A5A",Accent:"#0099CC",Muted:"#7A9AAA",Light:"#C0DDE6",WarmBeige:"#D0E8EE",TealTint:"#B0D8E4",Lavender:"#C8DCE6",AmberTint:"#D8E0D0",PdfFill:"#E0C8C0",PdfText:"#CC3300"},CSS:[],SVG:{},Image:{},CompiledAt:"2026-05-03T18:12:53.407Z",CompilerVersion:1}},{}],43:[function(t,e,o){e.exports={Hash:"evening",Name:"Evening",Category:"Grey",Version:"0.0.1",Description:"Medium grey, transitional Ported from RetoldRemote-ThemeDefinitions.js to the pict-provider-theme manifest format.",Comprehensive:!0,Modes:{Strategy:"single",Default:"dark"},Tokens:{Color:{Background:{Primary:"#484848",Secondary:"#3C3C3C",Tertiary:"#424242",Panel:"#454545",Viewer:"#363636",Hover:"#525252",Selected:"#606060",Thumb:"#3C3C3C"},Text:{Primary:"#E0E0E0",Secondary:"#D0D0D0",Muted:"#A0A0A0",Dim:"#888888",Placeholder:"#707070"},Brand:{Accent:"#C0C0C0",AccentHover:"#E0E0E0"},Border:{Default:"#585858",Light:"#606060"},Status:{Danger:"#FF6666",DangerMuted:"#AA6666"},Scrollbar:{Track:"#585858",Hover:"#686868"},Selection:{Background:"rgba(192, 192, 192, 0.25)"},Focus:{Outline:"#C0C0C0"},Syntax:{Keyword:"#B894FF",String:"#A8D8B0",Number:"#FFB880",Comment:"#8A8A8A",Operator:"#7EC0FF",Punctuation:"#BBBBBB",Function:"#FFCC80",Variable:"#DDDDDD",Type:"#FFB880",Builtin:"#FFB880",Property:"#FF9494",Tag:"#FF9494",AttrName:"#FFB880",AttrValue:"#A8D8B0"}},Typography:{Family:{Sans:"system-ui, -apple-system, sans-serif",Mono:"'SF Mono', 'Fira Code', 'Consolas', monospace"}}},Aliases:{"--retold-bg-primary":"Color.Background.Primary","--retold-bg-secondary":"Color.Background.Secondary","--retold-bg-tertiary":"Color.Background.Tertiary","--retold-bg-panel":"Color.Background.Panel","--retold-bg-viewer":"Color.Background.Viewer","--retold-bg-hover":"Color.Background.Hover","--retold-bg-selected":"Color.Background.Selected","--retold-bg-thumb":"Color.Background.Thumb","--retold-text-primary":"Color.Text.Primary","--retold-text-secondary":"Color.Text.Secondary","--retold-text-muted":"Color.Text.Muted","--retold-text-dim":"Color.Text.Dim","--retold-text-placeholder":"Color.Text.Placeholder","--retold-accent":"Color.Brand.Accent","--retold-accent-hover":"Color.Brand.AccentHover","--retold-border":"Color.Border.Default","--retold-border-light":"Color.Border.Light","--retold-danger":"Color.Status.Danger","--retold-danger-muted":"Color.Status.DangerMuted","--retold-scrollbar":"Color.Scrollbar.Track","--retold-scrollbar-hover":"Color.Scrollbar.Hover","--retold-selection-bg":"Color.Selection.Background","--retold-focus-outline":"Color.Focus.Outline","--retold-font-family":"Typography.Family.Sans","--retold-font-mono":"Typography.Family.Mono"},IconColors:{Primary:"#D0D0D0",Accent:"#C0C0C0",Muted:"#888888",Light:"#424242",WarmBeige:"#484848",TealTint:"#3E3E3E",Lavender:"#444444",AmberTint:"#4A4640",PdfFill:"#4A3C3C",PdfText:"#FF6666"},CSS:[],SVG:{},Image:{},CompiledAt:"2026-05-03T18:12:53.407Z",CompilerVersion:1}},{}],44:[function(t,e,o){e.exports={Hash:"forest",Name:"Forest",Category:"Fun",Version:"0.0.1",Description:"Deep greens and earth browns Ported from RetoldRemote-ThemeDefinitions.js to the pict-provider-theme manifest format.",Comprehensive:!0,Modes:{Strategy:"single",Default:"dark"},Tokens:{Color:{Background:{Primary:"#1A2018",Secondary:"#141A12",Tertiary:"#1E2620",Panel:"#1C221A",Viewer:"#101410",Hover:"#283828",Selected:"#344834",Thumb:"#141A12"},Text:{Primary:"#D0DCC8",Secondary:"#B0C4A8",Muted:"#809878",Dim:"#607858",Placeholder:"#486040"},Brand:{Accent:"#6AAF5C",AccentHover:"#88CC78"},Border:{Default:"#2A3A28",Light:"#3A4A38"},Status:{Danger:"#CC4422",DangerMuted:"#884422"},Scrollbar:{Track:"#2A3A28",Hover:"#3A4A38"},Selection:{Background:"rgba(106, 175, 92, 0.25)"},Focus:{Outline:"#6AAF5C"},Syntax:{Keyword:"#D4E157",String:"#A5D6A7",Number:"#FFB74D",Comment:"#5D6F58",Operator:"#80CBC4",Punctuation:"#A8C8A0",Function:"#FFCC80",Variable:"#C8E6C9",Type:"#FFB74D",Builtin:"#FFB74D",Property:"#FF8A65",Tag:"#FF8A65",AttrName:"#FFB74D",AttrValue:"#A5D6A7"}},Typography:{Family:{Sans:"'Palatino Linotype', 'Book Antiqua', Palatino, serif",Mono:"'Courier New', monospace"}}},Aliases:{"--retold-bg-primary":"Color.Background.Primary","--retold-bg-secondary":"Color.Background.Secondary","--retold-bg-tertiary":"Color.Background.Tertiary","--retold-bg-panel":"Color.Background.Panel","--retold-bg-viewer":"Color.Background.Viewer","--retold-bg-hover":"Color.Background.Hover","--retold-bg-selected":"Color.Background.Selected","--retold-bg-thumb":"Color.Background.Thumb","--retold-text-primary":"Color.Text.Primary","--retold-text-secondary":"Color.Text.Secondary","--retold-text-muted":"Color.Text.Muted","--retold-text-dim":"Color.Text.Dim","--retold-text-placeholder":"Color.Text.Placeholder","--retold-accent":"Color.Brand.Accent","--retold-accent-hover":"Color.Brand.AccentHover","--retold-border":"Color.Border.Default","--retold-border-light":"Color.Border.Light","--retold-danger":"Color.Status.Danger","--retold-danger-muted":"Color.Status.DangerMuted","--retold-scrollbar":"Color.Scrollbar.Track","--retold-scrollbar-hover":"Color.Scrollbar.Hover","--retold-selection-bg":"Color.Selection.Background","--retold-focus-outline":"Color.Focus.Outline","--retold-font-family":"Typography.Family.Sans","--retold-font-mono":"Typography.Family.Mono"},IconColors:{Primary:"#B0C4A8",Accent:"#6AAF5C",Muted:"#607858",Light:"#1E2620",WarmBeige:"#22281E",TealTint:"#1A221A",Lavender:"#1E2420",AmberTint:"#262218",PdfFill:"#261A18",PdfText:"#CC4422"},CSS:[],SVG:{},Image:{},CompiledAt:"2026-05-03T18:12:53.407Z",CompilerVersion:1}},{}],45:[function(t,e,o){e.exports={Hash:"hotdog",Name:"Hotdog",Category:"Fun",Version:"0.0.1",Description:"Red and mustard yellow, garish Ported from RetoldRemote-ThemeDefinitions.js to the pict-provider-theme manifest format.",Comprehensive:!0,Modes:{Strategy:"single",Default:"dark"},Tokens:{Color:{Background:{Primary:"#8B0000",Secondary:"#6B0000",Tertiary:"#7B0000",Panel:"#750000",Viewer:"#550000",Hover:"#AA1111",Selected:"#BB3300",Thumb:"#6B0000"},Text:{Primary:"#FFD700",Secondary:"#FFC000",Muted:"#CC9900",Dim:"#AA7700",Placeholder:"#886600"},Brand:{Accent:"#FFD700",AccentHover:"#FFEE44"},Border:{Default:"#AA2222",Light:"#BB3333"},Status:{Danger:"#FFFF00",DangerMuted:"#CCCC00"},Scrollbar:{Track:"#AA2222",Hover:"#CC3333"},Selection:{Background:"rgba(255, 215, 0, 0.3)"},Focus:{Outline:"#FFD700"},Syntax:{Keyword:"#FFD800",String:"#FFFFFF",Number:"#FFD800",Comment:"#9C2828",Operator:"#FFD800",Punctuation:"#FFFFFF",Function:"#FFD800",Variable:"#FFFFFF",Type:"#FFD800",Builtin:"#FFD800",Property:"#FFD800",Tag:"#FFD800",AttrName:"#FFD800",AttrValue:"#FFFFFF"}},Typography:{Family:{Sans:"Impact, 'Arial Black', sans-serif",Mono:"'Courier New', monospace"}}},Aliases:{"--retold-bg-primary":"Color.Background.Primary","--retold-bg-secondary":"Color.Background.Secondary","--retold-bg-tertiary":"Color.Background.Tertiary","--retold-bg-panel":"Color.Background.Panel","--retold-bg-viewer":"Color.Background.Viewer","--retold-bg-hover":"Color.Background.Hover","--retold-bg-selected":"Color.Background.Selected","--retold-bg-thumb":"Color.Background.Thumb","--retold-text-primary":"Color.Text.Primary","--retold-text-secondary":"Color.Text.Secondary","--retold-text-muted":"Color.Text.Muted","--retold-text-dim":"Color.Text.Dim","--retold-text-placeholder":"Color.Text.Placeholder","--retold-accent":"Color.Brand.Accent","--retold-accent-hover":"Color.Brand.AccentHover","--retold-border":"Color.Border.Default","--retold-border-light":"Color.Border.Light","--retold-danger":"Color.Status.Danger","--retold-danger-muted":"Color.Status.DangerMuted","--retold-scrollbar":"Color.Scrollbar.Track","--retold-scrollbar-hover":"Color.Scrollbar.Hover","--retold-selection-bg":"Color.Selection.Background","--retold-focus-outline":"Color.Focus.Outline","--retold-font-family":"Typography.Family.Sans","--retold-font-mono":"Typography.Family.Mono"},IconColors:{Primary:"#FFC000",Accent:"#FFD700",Muted:"#AA7700",Light:"#7B0000",WarmBeige:"#800000",TealTint:"#6B0000",Lavender:"#780000",AmberTint:"#7A1000",PdfFill:"#6B0000",PdfText:"#FFFF00"},CSS:[],SVG:{},Image:{},CompiledAt:"2026-05-03T18:12:53.407Z",CompilerVersion:1}},{}],46:[function(t,e,o){e.exports={Hash:"mobile-debug",Name:"Mobile Container Debug",Category:"Debug",Version:"0.0.1",Description:"Unique color per container for layout debugging Ported from RetoldRemote-ThemeDefinitions.js to the pict-provider-theme manifest format.",Comprehensive:!0,Modes:{Strategy:"single",Default:"light"},Tokens:{Color:{Background:{Primary:"#FF0000",Secondary:"#00CCCC",Tertiary:"#00AA00",Panel:"#FFAA00",Viewer:"#333333",Hover:"rgba(255, 255, 255, 0.2)",Selected:"rgba(255, 255, 255, 0.3)",Thumb:"#AA00AA"},Text:{Primary:"#FFFFFF",Secondary:"#EEEEEE",Muted:"#CCCCCC",Dim:"#AAAAAA",Placeholder:"#888888"},Brand:{Accent:"#FFFF00",AccentHover:"#FFFF88"},Border:{Default:"#FFFFFF",Light:"#CCCCCC"},Status:{Danger:"#FF0000",DangerMuted:"#CC4444"},Scrollbar:{Track:"#888888",Hover:"#AAAAAA"},Selection:{Background:"rgba(255, 255, 0, 0.3)"},Focus:{Outline:"#FFFF00"},Syntax:{Keyword:"#A626A4",String:"#50A14F",Number:"#986801",Comment:"#A0A1A7",Operator:"#0184BC",Punctuation:"#383A42",Function:"#4078F2",Variable:"#383A42",Type:"#C18401",Builtin:"#986801",Property:"#E45649",Tag:"#E45649",AttrName:"#986801",AttrValue:"#50A14F"}},Typography:{Family:{Sans:"system-ui, -apple-system, sans-serif",Mono:"'SF Mono', 'Consolas', monospace"}}},Aliases:{"--retold-bg-primary":"Color.Background.Primary","--retold-bg-secondary":"Color.Background.Secondary","--retold-bg-tertiary":"Color.Background.Tertiary","--retold-bg-panel":"Color.Background.Panel","--retold-bg-viewer":"Color.Background.Viewer","--retold-bg-hover":"Color.Background.Hover","--retold-bg-selected":"Color.Background.Selected","--retold-bg-thumb":"Color.Background.Thumb","--retold-text-primary":"Color.Text.Primary","--retold-text-secondary":"Color.Text.Secondary","--retold-text-muted":"Color.Text.Muted","--retold-text-dim":"Color.Text.Dim","--retold-text-placeholder":"Color.Text.Placeholder","--retold-accent":"Color.Brand.Accent","--retold-accent-hover":"Color.Brand.AccentHover","--retold-border":"Color.Border.Default","--retold-border-light":"Color.Border.Light","--retold-danger":"Color.Status.Danger","--retold-danger-muted":"Color.Status.DangerMuted","--retold-scrollbar":"Color.Scrollbar.Track","--retold-scrollbar-hover":"Color.Scrollbar.Hover","--retold-selection-bg":"Color.Selection.Background","--retold-focus-outline":"Color.Focus.Outline","--retold-font-family":"Typography.Family.Sans","--retold-font-mono":"Typography.Family.Mono"},IconColors:{Primary:"#FFFFFF",Accent:"#FFFF00",Muted:"#CCCCCC",Light:"#333333",WarmBeige:"#FFAA00",TealTint:"#00CCCC",Lavender:"#AA00AA",AmberTint:"#FFAA00",PdfFill:"#FF4444",PdfText:"#FFFFFF"},CSS:[],SVG:{},Image:{},CompiledAt:"2026-05-03T18:12:53.408Z",CompilerVersion:1}},{}],47:[function(t,e,o){e.exports={Hash:"neo-tokyo",Name:"Neo-Tokyo",Category:"Fun",Version:"0.0.1",Description:"Neon pink on dark navy Ported from RetoldRemote-ThemeDefinitions.js to the pict-provider-theme manifest format.",Comprehensive:!0,Modes:{Strategy:"single",Default:"dark"},Tokens:{Color:{Background:{Primary:"#0D0D2B",Secondary:"#080820",Tertiary:"#121235",Panel:"#0F0F28",Viewer:"#060615",Hover:"#1A1A42",Selected:"#2A1845",Thumb:"#080820"},Text:{Primary:"#E8E0F0",Secondary:"#D0C8E0",Muted:"#9088A8",Dim:"#6860A0",Placeholder:"#504888"},Brand:{Accent:"#FF2D8A",AccentHover:"#FF5AA0"},Border:{Default:"#2A2050",Light:"#382868"},Status:{Danger:"#FF4466",DangerMuted:"#AA3355"},Scrollbar:{Track:"#2A2050",Hover:"#3A3068"},Selection:{Background:"rgba(255, 45, 138, 0.25)"},Focus:{Outline:"#FF2D8A"},Syntax:{Keyword:"#FF4E9F",String:"#A1FFCE",Number:"#FFD93D",Comment:"#807A9E",Operator:"#7DF9FF",Punctuation:"#C0BCEB",Function:"#FFCC80",Variable:"#E0D8FF",Type:"#FFD93D",Builtin:"#FFD93D",Property:"#FF6E6E",Tag:"#FF6E6E",AttrName:"#FFD93D",AttrValue:"#A1FFCE"}},Typography:{Family:{Sans:"'Courier New', monospace",Mono:"'Courier New', monospace"}}},Aliases:{"--retold-bg-primary":"Color.Background.Primary","--retold-bg-secondary":"Color.Background.Secondary","--retold-bg-tertiary":"Color.Background.Tertiary","--retold-bg-panel":"Color.Background.Panel","--retold-bg-viewer":"Color.Background.Viewer","--retold-bg-hover":"Color.Background.Hover","--retold-bg-selected":"Color.Background.Selected","--retold-bg-thumb":"Color.Background.Thumb","--retold-text-primary":"Color.Text.Primary","--retold-text-secondary":"Color.Text.Secondary","--retold-text-muted":"Color.Text.Muted","--retold-text-dim":"Color.Text.Dim","--retold-text-placeholder":"Color.Text.Placeholder","--retold-accent":"Color.Brand.Accent","--retold-accent-hover":"Color.Brand.AccentHover","--retold-border":"Color.Border.Default","--retold-border-light":"Color.Border.Light","--retold-danger":"Color.Status.Danger","--retold-danger-muted":"Color.Status.DangerMuted","--retold-scrollbar":"Color.Scrollbar.Track","--retold-scrollbar-hover":"Color.Scrollbar.Hover","--retold-selection-bg":"Color.Selection.Background","--retold-focus-outline":"Color.Focus.Outline","--retold-font-family":"Typography.Family.Sans","--retold-font-mono":"Typography.Family.Mono"},IconColors:{Primary:"#D0C8E0",Accent:"#FF2D8A",Muted:"#6860A0",Light:"#121235",WarmBeige:"#141438",TealTint:"#100E30",Lavender:"#141232",AmberTint:"#1A1228",PdfFill:"#1A1028",PdfText:"#FF4466"},CSS:[],SVG:{},Image:{},CompiledAt:"2026-05-03T18:12:53.408Z",CompilerVersion:1}},{}],48:[function(t,e,o){e.exports={Hash:"night",Name:"Night",Category:"Grey",Version:"0.0.1",Description:"Near-black, minimal contrast Ported from RetoldRemote-ThemeDefinitions.js to the pict-provider-theme manifest format.",Comprehensive:!0,Modes:{Strategy:"single",Default:"dark"},Tokens:{Color:{Background:{Primary:"#0A0A0A",Secondary:"#060606",Tertiary:"#0E0E0E",Panel:"#0C0C0C",Viewer:"#040404",Hover:"#161616",Selected:"#252525",Thumb:"#060606"},Text:{Primary:"#888888",Secondary:"#707070",Muted:"#555555",Dim:"#444444",Placeholder:"#333333"},Brand:{Accent:"#666666",AccentHover:"#808080"},Border:{Default:"#1A1A1A",Light:"#222222"},Status:{Danger:"#AA4444",DangerMuted:"#663333"},Scrollbar:{Track:"#1A1A1A",Hover:"#2A2A2A"},Selection:{Background:"rgba(102, 102, 102, 0.2)"},Focus:{Outline:"#666666"},Syntax:{Keyword:"#C28FFF",String:"#B0E0B0",Number:"#FFA070",Comment:"#888888",Operator:"#80C8FF",Punctuation:"#BBBBBB",Function:"#FFD080",Variable:"#DDDDDD",Type:"#FFB870",Builtin:"#FFB870",Property:"#FF9090",Tag:"#FF9090",AttrName:"#FFB870",AttrValue:"#B0E0B0"}},Typography:{Family:{Sans:"system-ui, -apple-system, sans-serif",Mono:"'SF Mono', 'Fira Code', 'Consolas', monospace"}}},Aliases:{"--retold-bg-primary":"Color.Background.Primary","--retold-bg-secondary":"Color.Background.Secondary","--retold-bg-tertiary":"Color.Background.Tertiary","--retold-bg-panel":"Color.Background.Panel","--retold-bg-viewer":"Color.Background.Viewer","--retold-bg-hover":"Color.Background.Hover","--retold-bg-selected":"Color.Background.Selected","--retold-bg-thumb":"Color.Background.Thumb","--retold-text-primary":"Color.Text.Primary","--retold-text-secondary":"Color.Text.Secondary","--retold-text-muted":"Color.Text.Muted","--retold-text-dim":"Color.Text.Dim","--retold-text-placeholder":"Color.Text.Placeholder","--retold-accent":"Color.Brand.Accent","--retold-accent-hover":"Color.Brand.AccentHover","--retold-border":"Color.Border.Default","--retold-border-light":"Color.Border.Light","--retold-danger":"Color.Status.Danger","--retold-danger-muted":"Color.Status.DangerMuted","--retold-scrollbar":"Color.Scrollbar.Track","--retold-scrollbar-hover":"Color.Scrollbar.Hover","--retold-selection-bg":"Color.Selection.Background","--retold-focus-outline":"Color.Focus.Outline","--retold-font-family":"Typography.Family.Sans","--retold-font-mono":"Typography.Family.Mono"},IconColors:{Primary:"#707070",Accent:"#666666",Muted:"#444444",Light:"#0E0E0E",WarmBeige:"#121212",TealTint:"#0C0C0C",Lavender:"#101010",AmberTint:"#141210",PdfFill:"#141010",PdfText:"#AA4444"},CSS:[],SVG:{},Image:{},CompiledAt:"2026-05-03T18:12:53.408Z",CompilerVersion:1}},{}],49:[function(t,e,o){e.exports={Hash:"playground-corp",Name:"Playground Corp",Version:"0.0.1",Description:"A different paired starter — corporate teal palette, rounder corners.",Comprehensive:!0,Modes:{Strategy:"system",Default:"light"},Tokens:{Color:{Background:{Primary:{Light:"#fbfbfd",Dark:"#0e1416"},Secondary:{Light:"#eef3f6",Dark:"#152024"},Tertiary:{Light:"#dde7ec",Dark:"#1e2c30"},Panel:{Light:"#ffffff",Dark:"#162126"},Hover:{Light:"#e5edf1",Dark:"#1d292e"}},Text:{Primary:{Light:"#0a1d22",Dark:"#e3edf0"},Secondary:{Light:"#3a5b65",Dark:"#a8c0c8"},Muted:{Light:"#647e87",Dark:"#7a929a"},OnBrand:{Light:"#ffffff",Dark:"#ffffff"}},Brand:{Primary:{Light:"#117a8b",Dark:"#3ec0d4"},PrimaryHover:{Light:"#0e6271",Dark:"#5fd0e0"},Accent:{Light:"#d97706",Dark:"#fb923c"}},Border:{Default:{Light:"#cfdce1",Dark:"#2c3a3f"},Strong:{Light:"#86a3ac",Dark:"#4d5e64"}},Status:{Success:{Light:"#0f7a52",Dark:"#34d399"},Warning:{Light:"#b45309",Dark:"#fbbf24"},Error:{Light:"#9f1239",Dark:"#fb7185"},Info:{Light:"#1e6fbe",Dark:"#60a5fa"}},Syntax:{Keyword:{Light:"#a626a4",Dark:"#c678dd"},String:{Light:"#50a14f",Dark:"#98c379"},Number:{Light:"#986801",Dark:"#d19a66"},Comment:{Light:"#a0a1a7",Dark:"#7f848e"},Operator:{Light:"#0184bc",Dark:"#56b6c2"},Punctuation:{Light:"#383a42",Dark:"#abb2bf"},Function:{Light:"#4078f2",Dark:"#61afef"},Variable:{Light:"#383a42",Dark:"#e06c75"},Type:{Light:"#c18401",Dark:"#e5c07b"},Builtin:{Light:"#986801",Dark:"#d19a66"},Property:{Light:"#e45649",Dark:"#e06c75"},Tag:{Light:"#e45649",Dark:"#e06c75"},AttrName:{Light:"#986801",Dark:"#d19a66"},AttrValue:{Light:"#50a14f",Dark:"#98c379"}}},Typography:{Family:{Sans:"Inter, system-ui, sans-serif",Mono:"ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"},Size:{SM:"0.875rem",MD:"1rem",LG:"1.25rem"},Weight:{Regular:"400",Bold:"700"}},Spacing:{XS:"4px",SM:"8px",MD:"14px",LG:"20px",XL:"28px"},Radius:{SM:"4px",MD:"10px",LG:"16px"}},Brand:{Name:"Corp"},Aliases:{"--pict-modal-overlay-bg":"Color.Background.Tertiary","--pict-modal-bg":"Color.Background.Panel","--pict-modal-fg":"Color.Text.Primary","--pict-modal-border":"Color.Border.Default","--pict-modal-shadow":"Color.Border.Strong","--pict-modal-header-bg":"Color.Background.Secondary","--pict-modal-header-fg":"Color.Text.Primary","--pict-modal-header-border":"Color.Border.Default","--pict-modal-btn-bg":"Color.Background.Secondary","--pict-modal-btn-fg":"Color.Text.Primary","--pict-modal-btn-hover-bg":"Color.Background.Hover","--pict-modal-btn-primary-bg":"Color.Brand.Primary","--pict-modal-btn-primary-fg":"Color.Text.OnBrand","--pict-modal-btn-primary-hover-bg":"Color.Brand.PrimaryHover","--pict-modal-btn-danger-bg":"Color.Status.Error","--pict-modal-btn-danger-fg":"Color.Text.OnBrand","--pict-modal-btn-danger-hover-bg":"Color.Status.Error","--pict-modal-toast-bg":"Color.Background.Panel","--pict-modal-toast-fg":"Color.Text.Primary","--pict-modal-toast-shadow":"Color.Border.Strong","--pict-modal-toast-success-bg":"Color.Status.Success","--pict-modal-toast-error-bg":"Color.Status.Error","--pict-modal-toast-warning-bg":"Color.Status.Warning","--pict-modal-toast-info-bg":"Color.Status.Info","--pict-modal-tooltip-bg":"Color.Background.Tertiary","--pict-modal-tooltip-fg":"Color.Text.Primary","--pict-modal-font-family":"Typography.Family.Sans","--pict-um-bg":"Color.Background.Panel","--pict-um-fg":"Color.Text.Primary","--pict-um-muted":"Color.Text.Muted","--pict-um-accent":"Color.Brand.Primary","--pict-um-border":"Color.Border.Default","--pict-um-border-soft":"Color.Border.Light","--pict-um-input-bg":"Color.Background.Primary","--pict-um-pill-bg":"Color.Background.Tertiary","--pict-um-font":"Typography.Family.Sans"}}},{}],50:[function(t,e,o){e.exports={Hash:"playground-starter",Name:"Playground Starter",Version:"0.0.1",Description:"A complete paired light/dark starter theme. Edit any token and watch the gallery reflow.",Comprehensive:!0,Modes:{Strategy:"system",Default:"light"},Tokens:{Color:{Background:{Primary:{Light:"#ffffff",Dark:"#1a1a1a"},Secondary:{Light:"#f5f5f5",Dark:"#242424"},Tertiary:{Light:"#ebebeb",Dark:"#2e2e2e"},Panel:{Light:"#ffffff",Dark:"#222222"},Hover:{Light:"#f0f0f0",Dark:"#2a2a2a"}},Text:{Primary:{Light:"#1a1a1a",Dark:"#ededed"},Secondary:{Light:"#454545",Dark:"#bdbdbd"},Muted:{Light:"#6b6b6b",Dark:"#888888"},OnBrand:{Light:"#ffffff",Dark:"#ffffff"}},Brand:{Primary:{Light:"#3357c7",Dark:"#6b8eff"},PrimaryHover:{Light:"#2848b3",Dark:"#88a4ff"},Accent:{Light:"#c75033",Dark:"#ff8a6b"}},Border:{Default:{Light:"#d6d6d6",Dark:"#3a3a3a"},Strong:{Light:"#a0a0a0",Dark:"#5a5a5a"}},Status:{Success:{Light:"#2e7a3a",Dark:"#5fc377"},Warning:{Light:"#a86b00",Dark:"#f0b84a"},Error:{Light:"#b62828",Dark:"#ff7373"},Info:{Light:"#1f6fb5",Dark:"#5fb4ff"}},Syntax:{Keyword:{Light:"#a626a4",Dark:"#c678dd"},String:{Light:"#50a14f",Dark:"#98c379"},Number:{Light:"#986801",Dark:"#d19a66"},Comment:{Light:"#a0a1a7",Dark:"#7f848e"},Operator:{Light:"#0184bc",Dark:"#56b6c2"},Punctuation:{Light:"#383a42",Dark:"#abb2bf"},Function:{Light:"#4078f2",Dark:"#61afef"},Variable:{Light:"#383a42",Dark:"#e06c75"},Type:{Light:"#c18401",Dark:"#e5c07b"},Builtin:{Light:"#986801",Dark:"#d19a66"},Property:{Light:"#e45649",Dark:"#e06c75"},Tag:{Light:"#e45649",Dark:"#e06c75"},AttrName:{Light:"#986801",Dark:"#d19a66"},AttrValue:{Light:"#50a14f",Dark:"#98c379"}}},Typography:{Family:{Sans:"system-ui, -apple-system, Segoe UI, Roboto, sans-serif",Mono:"ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"},Size:{SM:"0.875rem",MD:"1rem",LG:"1.25rem"},Weight:{Regular:"400",Bold:"700"}},Spacing:{XS:"4px",SM:"8px",MD:"12px",LG:"16px",XL:"24px"},Radius:{SM:"2px",MD:"6px",LG:"10px"}},Brand:{Name:"Playground"},Aliases:{"--pict-modal-overlay-bg":"Color.Background.Tertiary","--pict-modal-bg":"Color.Background.Panel","--pict-modal-fg":"Color.Text.Primary","--pict-modal-border":"Color.Border.Default","--pict-modal-shadow":"Color.Border.Strong","--pict-modal-header-bg":"Color.Background.Secondary","--pict-modal-header-fg":"Color.Text.Primary","--pict-modal-header-border":"Color.Border.Default","--pict-modal-btn-bg":"Color.Background.Secondary","--pict-modal-btn-fg":"Color.Text.Primary","--pict-modal-btn-hover-bg":"Color.Background.Hover","--pict-modal-btn-primary-bg":"Color.Brand.Primary","--pict-modal-btn-primary-fg":"Color.Text.OnBrand","--pict-modal-btn-primary-hover-bg":"Color.Brand.PrimaryHover","--pict-modal-btn-danger-bg":"Color.Status.Error","--pict-modal-btn-danger-fg":"Color.Text.OnBrand","--pict-modal-btn-danger-hover-bg":"Color.Status.Error","--pict-modal-toast-bg":"Color.Background.Panel","--pict-modal-toast-fg":"Color.Text.Primary","--pict-modal-toast-shadow":"Color.Border.Strong","--pict-modal-toast-success-bg":"Color.Status.Success","--pict-modal-toast-error-bg":"Color.Status.Error","--pict-modal-toast-warning-bg":"Color.Status.Warning","--pict-modal-toast-info-bg":"Color.Status.Info","--pict-modal-tooltip-bg":"Color.Background.Tertiary","--pict-modal-tooltip-fg":"Color.Text.Primary","--pict-modal-font-family":"Typography.Family.Sans","--pict-um-bg":"Color.Background.Panel","--pict-um-fg":"Color.Text.Primary","--pict-um-muted":"Color.Text.Muted","--pict-um-accent":"Color.Brand.Primary","--pict-um-border":"Color.Border.Default","--pict-um-border-soft":"Color.Border.Light","--pict-um-input-bg":"Color.Background.Primary","--pict-um-pill-bg":"Color.Background.Tertiary","--pict-um-font":"Typography.Family.Sans"}}},{}],51:[function(t,e,o){e.exports={Hash:"retold-content-system",Name:"Retold Content System",Version:"0.0.1",Description:"Default palette for the Retold Content System editor — warm beige with teal accents. Light side preserves the original retold-content-system.css palette verbatim; dark side keeps the teal accent and warms the backgrounds into a deep walnut/charcoal range so dark mode reads as the same family of values rather than a generic dark theme.",Comprehensive:!0,Modes:{Strategy:"system",Default:"system"},Tokens:{Color:{Background:{Primary:{Light:"#F5F3EE",Dark:"#1F1B17"},Secondary:{Light:"#FAF8F4",Dark:"#2A251F"},Tertiary:{Light:"#F0EDE8",Dark:"#332D26"},Panel:{Light:"#FFFFFF",Dark:"#26221C"},Hover:{Light:"#EDE9E3",Dark:"#383028"},Selected:{Light:"#DCE9E7",Dark:"#1E3833"}},Text:{Primary:{Light:"#3D3229",Dark:"#E8DCC8"},Secondary:{Light:"#5E5549",Dark:"#C0B5A4"},Muted:{Light:"#8A7F72",Dark:"#8E8478"},Placeholder:{Light:"#A89E91",Dark:"#6E6457"},OnBrand:{Light:"#FFFFFF",Dark:"#1F1B17"}},Brand:{Primary:{Light:"#2E7D74",Dark:"#4FB3A6"},PrimaryHover:{Light:"#3A9E92",Dark:"#65CBBE"},Accent:{Light:"#2E7D74",Dark:"#4FB3A6"},AccentHover:{Light:"#3A9E92",Dark:"#65CBBE"}},Border:{Default:{Light:"#DDD6CA",Dark:"#3F362C"},Light:{Light:"#E8E2D7",Dark:"#33291F"},Strong:{Light:"#C4BDB0",Dark:"#5A4F40"}},Status:{Success:{Light:"#7BC47F",Dark:"#8FD493"},Warning:{Light:"#E8A94D",Dark:"#F0BE6E"},Error:{Light:"#D9534F",Dark:"#E87B78"},Info:{Light:"#5DA6C7",Dark:"#7FBDD8"}},Scrollbar:{Track:{Light:"#F5F0E8",Dark:"#26221C"},Thumb:{Light:"#C4BDB0",Dark:"#4A4036"},Hover:{Light:"#8A7F72",Dark:"#6A5F50"}},Selection:{Background:{Light:"#CDE3E0",Dark:"#2E5B55"},Text:{Light:"#3D3229",Dark:"#E8DCC8"}},Focus:{Outline:{Light:"#2E7D74",Dark:"#4FB3A6"}},Shadow:{Color:{Light:"rgba(61, 50, 41, 0.12)",Dark:"rgba(0, 0, 0, 0.55)"}},Syntax:{Keyword:{Light:"#A0532E",Dark:"#E89A6E"},String:{Light:"#3F8A52",Dark:"#8FD493"},Number:{Light:"#A86B00",Dark:"#E8A94D"},Comment:{Light:"#8A7F72",Dark:"#8E8478"},Operator:{Light:"#2E7D74",Dark:"#4FB3A6"},Punctuation:{Light:"#5E5549",Dark:"#C0B5A4"},Function:{Light:"#2E5E96",Dark:"#7FBDD8"},Variable:{Light:"#3D3229",Dark:"#E8DCC8"},Type:{Light:"#A86B00",Dark:"#E8A94D"},Builtin:{Light:"#A86B00",Dark:"#E8A94D"},Property:{Light:"#A0532E",Dark:"#E89A6E"},Tag:{Light:"#A0532E",Dark:"#E89A6E"},AttrName:{Light:"#A86B00",Dark:"#E8A94D"},AttrValue:{Light:"#3F8A52",Dark:"#8FD493"}}},Typography:{Family:{Sans:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",Serif:"Georgia, Cambria, 'Times New Roman', Times, serif",Mono:"'SFMono-Regular', 'SF Mono', 'Menlo', 'Consolas', 'Liberation Mono', 'Courier New', monospace"},Size:{XS:"0.75rem",SM:"0.875rem",MD:"1rem",LG:"1.125rem",XL:"1.375rem",XXL:"1.75rem"},Weight:{Regular:"400",Medium:"500",Bold:"700"},LineHeight:{Tight:"1.2",Normal:"1.5",Loose:"1.7"}},Spacing:{XS:"4px",SM:"8px",MD:"12px",LG:"16px",XL:"24px",XXL:"32px"},Radius:{None:"0",SM:"2px",MD:"4px",LG:"8px",XL:"12px",Pill:"999px"},Layout:{SidebarWidth:"250px",TopbarHeight:"48px",StatusbarHeight:"28px"}},Brand:{Name:"Retold Content",Tagline:"Author content for the Retold ecosystem."}}},{}],52:[function(t,e,o){e.exports={Hash:"retold-default",Name:"Retold Default",Version:"0.0.1",Description:"The reference paired light/dark theme for the Retold ecosystem. Neutral palette suitable for any app; dark mode is mid-grey rather than pure black to reduce eye strain.",Comprehensive:!0,Modes:{Strategy:"system",Default:"light"},Tokens:{Color:{Background:{Primary:{Light:"#ffffff",Dark:"#1a1a1a"},Secondary:{Light:"#f5f5f5",Dark:"#242424"},Tertiary:{Light:"#ebebeb",Dark:"#2e2e2e"},Panel:{Light:"#ffffff",Dark:"#222222"},Hover:{Light:"#f0f0f0",Dark:"#2a2a2a"},Selected:{Light:"#e0eaff",Dark:"#2a3550"}},Text:{Primary:{Light:"#1a1a1a",Dark:"#ededed"},Secondary:{Light:"#454545",Dark:"#bdbdbd"},Muted:{Light:"#6b6b6b",Dark:"#888888"},Placeholder:{Light:"#9a9a9a",Dark:"#6a6a6a"}},Brand:{Primary:{Light:"#3357c7",Dark:"#6b8eff"},PrimaryHover:{Light:"#2848b3",Dark:"#88a4ff"},Accent:{Light:"#c75033",Dark:"#ff8a6b"}},Border:{Default:{Light:"#d6d6d6",Dark:"#3a3a3a"},Light:{Light:"#e9e9e9",Dark:"#2c2c2c"},Strong:{Light:"#a0a0a0",Dark:"#5a5a5a"}},Status:{Success:{Light:"#2e7a3a",Dark:"#5fc377"},Warning:{Light:"#a86b00",Dark:"#f0b84a"},Error:{Light:"#b62828",Dark:"#ff7373"},Info:{Light:"#1f6fb5",Dark:"#5fb4ff"}},Scrollbar:{Track:{Light:"#ebebeb",Dark:"#1f1f1f"},Thumb:{Light:"#c2c2c2",Dark:"#3f3f3f"},Hover:{Light:"#a0a0a0",Dark:"#5a5a5a"}},Selection:{Background:{Light:"#bcd2ff",Dark:"#3a4f7a"},Text:{Light:"#1a1a1a",Dark:"#ededed"}},Focus:{Outline:{Light:"#3357c7",Dark:"#6b8eff"}},Shadow:{Color:{Light:"rgba(0, 0, 0, 0.12)",Dark:"rgba(0, 0, 0, 0.55)"}},Syntax:{Keyword:{Light:"#a626a4",Dark:"#c678dd"},String:{Light:"#50a14f",Dark:"#98c379"},Number:{Light:"#986801",Dark:"#d19a66"},Comment:{Light:"#a0a1a7",Dark:"#7f848e"},Operator:{Light:"#0184bc",Dark:"#56b6c2"},Punctuation:{Light:"#383a42",Dark:"#abb2bf"},Function:{Light:"#4078f2",Dark:"#61afef"},Variable:{Light:"#383a42",Dark:"#e06c75"},Type:{Light:"#c18401",Dark:"#e5c07b"},Builtin:{Light:"#986801",Dark:"#d19a66"},Property:{Light:"#e45649",Dark:"#e06c75"},Tag:{Light:"#e45649",Dark:"#e06c75"},AttrName:{Light:"#986801",Dark:"#d19a66"},AttrValue:{Light:"#50a14f",Dark:"#98c379"}},Editor:{LineNumberBackground:{Light:"#f5f5f5",Dark:"#1f1f1f"},LineNumberText:{Light:"#9a9a9a",Dark:"#6a6a6a"},CurrentLineHighlight:{Light:"#f0f0f0",Dark:"#2a2a2a"},SelectionBackground:{Light:"#bcd2ff",Dark:"#3a4f7a"},GutterBorder:{Light:"#e9e9e9",Dark:"#2c2c2c"}}},Typography:{Family:{Sans:"system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif",Serif:"Georgia, Cambria, Times New Roman, Times, serif",Mono:"ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"},Size:{XS:"0.75rem",SM:"0.875rem",MD:"1rem",LG:"1.125rem",XL:"1.375rem",XXL:"1.75rem"},Weight:{Regular:"400",Medium:"500",Bold:"700"},LineHeight:{Tight:"1.2",Normal:"1.45",Loose:"1.7"}},Spacing:{XS:"4px",SM:"8px",MD:"12px",LG:"16px",XL:"24px",XXL:"32px"},Radius:{None:"0",SM:"2px",MD:"4px",LG:"8px",XL:"12px",Pill:"999px"},Shadow:{SM:"0 1px 2px var(--theme-color-shadow-color)",MD:"0 2px 6px var(--theme-color-shadow-color)",LG:"0 6px 18px var(--theme-color-shadow-color)"},ZIndex:{Base:"0",Dropdown:"100",Sticky:"200",Overlay:"900",Modal:"1000",Toast:"2000",Tooltip:"3000"},Duration:{Fast:"100ms",Normal:"200ms",Slow:"400ms"}},Brand:{Name:"Retold",Tagline:"A suite of JavaScript modules for building web applications and APIs."},CSS:[{Hash:"retold-default-brand-accents",Priority:600,Content:"/* retold-default — subtle brand-aware accents.\n Falls back gracefully to theme-color tokens when no brand is registered,\n so non-branded apps still look right. */\na { text-decoration-color: var(--brand-color-primary-mode, var(--theme-color-brand-primary, currentColor)); text-decoration-thickness: 2px; text-underline-offset: 3px; }\nh1 { border-bottom: 2px solid var(--brand-color-primary-mode, var(--theme-color-border-default, transparent)); padding-bottom: 6px; }\nh2 { border-bottom: 1px solid var(--brand-color-secondary-mode, var(--theme-color-border-light, transparent)); padding-bottom: 4px; }"}]}},{}],53:[function(t,e,o){e.exports={Hash:"retold-manager",Name:"Retold Manager",Description:"Default palette for the Retold Manager application — GitHub-style dark on slate with a parallel light variant. Dark side mirrors retold-manager.css's original colors verbatim; light side is a sympathetic translation tuned for daytime use. The retold-manager.css :root block proxies its --color-* names through these --theme-color-* tokens (with the original hexes as fallbacks), so this theme drives the whole app cleanly and other catalog themes still skin most of it.",Comprehensive:!0,Modes:{Strategy:"system",Default:"system"},Tokens:{Color:{Background:{Primary:{Light:"#f6f8fa",Dark:"#0e1116"},Secondary:{Light:"#eef1f4",Dark:"#161b22"},Tertiary:{Light:"#e4e8ec",Dark:"#1c2128"},Panel:{Light:"#ffffff",Dark:"#161b22"},PanelAlt:{Light:"#f0f3f6",Dark:"#1c2128"},Hover:{Light:"#eaeef2",Dark:"#1c2128"},Selected:{Light:"#dbe7ff",Dark:"#243454"}},Border:{Default:{Light:"#d0d7de",Dark:"#30363d"},Light:{Light:"#e1e4e8",Dark:"#21262d"},Strong:{Light:"#a8b1bb",Dark:"#484f58"}},Brand:{Primary:{Light:"#0969da",Dark:"#2f81f7"},PrimaryHover:{Light:"#0550ae",Dark:"#1f6feb"},Accent:{Light:"#0969da",Dark:"#2f81f7"},AccentHover:{Light:"#0550ae",Dark:"#1f6feb"}},Text:{Primary:{Light:"#1f2328",Dark:"#e6edf3"},Secondary:{Light:"#3b424a",Dark:"#c9d1d9"},Muted:{Light:"#656d76",Dark:"#8b949e"},Placeholder:{Light:"#8c959f",Dark:"#6e7681"},OnBrand:{Light:"#ffffff",Dark:"#ffffff"}},Status:{Success:{Light:"#1a7f37",Dark:"#3fb950"},Danger:{Light:"#cf222e",Dark:"#f85149"},Warning:{Light:"#9a6700",Dark:"#d29922"},Error:{Light:"#cf222e",Dark:"#f85149"},Info:{Light:"#0969da",Dark:"#2f81f7"}},Scrollbar:{Track:{Light:"#eef1f4",Dark:"#161b22"},Thumb:{Light:"#c1c8cf",Dark:"#30363d"},Hover:{Light:"#a8b1bb",Dark:"#484f58"}},Selection:{Background:{Light:"#cfe6ff",Dark:"#243454"},Text:{Light:"#1f2328",Dark:"#e6edf3"}},Focus:{Outline:{Light:"#0969da",Dark:"#2f81f7"}},Syntax:{Keyword:{Light:"#cf222e",Dark:"#ff7b72"},String:{Light:"#0a3069",Dark:"#a5d6ff"},Number:{Light:"#0550ae",Dark:"#79c0ff"},Comment:{Light:"#6e7781",Dark:"#8b949e"},Operator:{Light:"#cf222e",Dark:"#ff7b72"},Punctuation:{Light:"#24292f",Dark:"#c9d1d9"},Function:{Light:"#8250df",Dark:"#d2a8ff"},Variable:{Light:"#24292f",Dark:"#c9d1d9"},Type:{Light:"#953800",Dark:"#ffa657"},Builtin:{Light:"#0550ae",Dark:"#79c0ff"},Property:{Light:"#0550ae",Dark:"#79c0ff"},Tag:{Light:"#116329",Dark:"#7ee787"},AttrName:{Light:"#8250df",Dark:"#d2a8ff"},AttrValue:{Light:"#0a3069",Dark:"#a5d6ff"}}},Typography:{Family:{Sans:'-apple-system, BlinkMacSystemFont, "SF Pro", "Segoe UI", sans-serif',Mono:'ui-monospace, "SF Mono", Menlo, Monaco, "Courier New", monospace'}},Layout:{SidebarWidth:"280px",TopbarHeight:"44px",StatusbarHeight:"28px"}}}},{}],54:[function(t,e,o){e.exports={Hash:"retold-mono",Name:"Retold Mono",Version:"0.0.2",Description:"High-contrast monochrome theme — black on white in light mode, white on black in dark mode. Useful for print, simple admin tooling, and as a paired-mode reference theme that proves the toggle works on something visually unmistakable.",Comprehensive:!0,Modes:{Strategy:"system",Default:"system"},Tokens:{Color:{Background:{Primary:{Light:"#ffffff",Dark:"#000000"},Secondary:{Light:"#f0f0f0",Dark:"#101010"},Tertiary:{Light:"#e2e2e2",Dark:"#1c1c1c"},Panel:{Light:"#ffffff",Dark:"#000000"},Hover:{Light:"#ebebeb",Dark:"#1a1a1a"},Selected:{Light:"#d6d6d6",Dark:"#2a2a2a"}},Text:{Primary:{Light:"#000000",Dark:"#ffffff"},Secondary:{Light:"#222222",Dark:"#dddddd"},Muted:{Light:"#555555",Dark:"#aaaaaa"},Placeholder:{Light:"#888888",Dark:"#777777"}},Brand:{Primary:{Light:"#000000",Dark:"#ffffff"},PrimaryHover:{Light:"#222222",Dark:"#dddddd"},Accent:{Light:"#444444",Dark:"#bbbbbb"}},Border:{Default:{Light:"#888888",Dark:"#666666"},Light:{Light:"#cccccc",Dark:"#333333"},Strong:{Light:"#000000",Dark:"#ffffff"}},Status:{Success:{Light:"#000000",Dark:"#ffffff"},Warning:{Light:"#000000",Dark:"#ffffff"},Error:{Light:"#000000",Dark:"#ffffff"},Info:{Light:"#000000",Dark:"#ffffff"}},Scrollbar:{Track:{Light:"#e0e0e0",Dark:"#101010"},Thumb:{Light:"#888888",Dark:"#666666"},Hover:{Light:"#444444",Dark:"#bbbbbb"}},Selection:{Background:{Light:"#000000",Dark:"#ffffff"},Text:{Light:"#ffffff",Dark:"#000000"}},Focus:{Outline:{Light:"#000000",Dark:"#ffffff"}},Shadow:{Color:{Light:"rgba(0, 0, 0, 0.18)",Dark:"rgba(255, 255, 255, 0.18)"}},Syntax:{Keyword:{Light:"#000000",Dark:"#ffffff"},String:{Light:"#555555",Dark:"#cccccc"},Number:{Light:"#000000",Dark:"#ffffff"},Comment:{Light:"#888888",Dark:"#888888"},Operator:{Light:"#000000",Dark:"#ffffff"},Punctuation:{Light:"#444444",Dark:"#bbbbbb"},Function:{Light:"#000000",Dark:"#ffffff"},Variable:{Light:"#000000",Dark:"#ffffff"},Type:{Light:"#222222",Dark:"#dddddd"},Builtin:{Light:"#222222",Dark:"#dddddd"},Property:{Light:"#444444",Dark:"#bbbbbb"},Tag:{Light:"#000000",Dark:"#ffffff"},AttrName:{Light:"#444444",Dark:"#bbbbbb"},AttrValue:{Light:"#555555",Dark:"#cccccc"}}},Typography:{Family:{Sans:"Helvetica, Arial, sans-serif",Serif:"Georgia, Times New Roman, serif",Mono:"ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"},Size:{XS:"0.75rem",SM:"0.875rem",MD:"1rem",LG:"1.125rem",XL:"1.375rem",XXL:"1.75rem"},Weight:{Regular:"400",Medium:"600",Bold:"700"},LineHeight:{Tight:"1.15",Normal:"1.4",Loose:"1.65"}},Spacing:{XS:"4px",SM:"8px",MD:"12px",LG:"16px",XL:"24px",XXL:"32px"},Radius:{None:"0",SM:"0",MD:"0",LG:"0",XL:"0",Pill:"999px"},Shadow:{SM:"0 1px 0 var(--theme-color-shadow-color)",MD:"0 2px 0 var(--theme-color-shadow-color)",LG:"0 4px 0 var(--theme-color-shadow-color)"},ZIndex:{Base:"0",Dropdown:"100",Sticky:"200",Overlay:"900",Modal:"1000",Toast:"2000",Tooltip:"3000"},Duration:{Fast:"0ms",Normal:"0ms",Slow:"0ms"}},Brand:{Name:"Retold Mono",Tagline:"Black on white. White on black. Nothing else."},CSS:[{Hash:"retold-mono-brand-accents",Priority:600,Content:"/* retold-mono — keeps the all-monochrome aesthetic but lets brand colors\n in for narrow accent moments. The thick rule under H1 is brand primary;\n the hair rule under H2 is brand secondary. Without a brand registered\n they fall back to mono black/grey. */\na { text-decoration-color: var(--brand-color-primary-mode, currentColor); text-decoration-thickness: 2px; text-underline-offset: 3px; }\nh1 { border-bottom: 3px solid var(--brand-color-primary-mode, var(--theme-color-text-primary, #000)); padding-bottom: 6px; }\nh2 { border-bottom: 1px solid var(--brand-color-secondary-mode, var(--theme-color-border-default, #888)); padding-bottom: 4px; }"}]}},{}],55:[function(t,e,o){e.exports={Hash:"solarized-dark",Name:"Solarized Dark",Category:"Fun",Version:"0.0.1",Description:"Schoonover's classic palette Ported from RetoldRemote-ThemeDefinitions.js to the pict-provider-theme manifest format.",Comprehensive:!0,Modes:{Strategy:"single",Default:"dark"},Tokens:{Color:{Background:{Primary:"#002B36",Secondary:"#073642",Tertiary:"#003B4A",Panel:"#00303C",Viewer:"#001E28",Hover:"#0A4858",Selected:"#155868",Thumb:"#073642"},Text:{Primary:"#FDF6E3",Secondary:"#EEE8D5",Muted:"#93A1A1",Dim:"#839496",Placeholder:"#657B83"},Brand:{Accent:"#268BD2",AccentHover:"#45A0E0"},Border:{Default:"#0A4050",Light:"#125868"},Status:{Danger:"#DC322F",DangerMuted:"#AA2A28"},Scrollbar:{Track:"#0A4050",Hover:"#125868"},Selection:{Background:"rgba(38, 139, 210, 0.25)"},Focus:{Outline:"#268BD2"},Syntax:{Keyword:"#859900",String:"#2AA198",Number:"#D33682",Comment:"#586E75",Operator:"#268BD2",Punctuation:"#93A1A1",Function:"#B58900",Variable:"#FDF6E3",Type:"#B58900",Builtin:"#CB4B16",Property:"#268BD2",Tag:"#268BD2",AttrName:"#B58900",AttrValue:"#2AA198"}},Typography:{Family:{Sans:"'Source Code Pro', 'Fira Code', monospace",Mono:"'Source Code Pro', 'Fira Code', monospace"}}},Aliases:{"--retold-bg-primary":"Color.Background.Primary","--retold-bg-secondary":"Color.Background.Secondary","--retold-bg-tertiary":"Color.Background.Tertiary","--retold-bg-panel":"Color.Background.Panel","--retold-bg-viewer":"Color.Background.Viewer","--retold-bg-hover":"Color.Background.Hover","--retold-bg-selected":"Color.Background.Selected","--retold-bg-thumb":"Color.Background.Thumb","--retold-text-primary":"Color.Text.Primary","--retold-text-secondary":"Color.Text.Secondary","--retold-text-muted":"Color.Text.Muted","--retold-text-dim":"Color.Text.Dim","--retold-text-placeholder":"Color.Text.Placeholder","--retold-accent":"Color.Brand.Accent","--retold-accent-hover":"Color.Brand.AccentHover","--retold-border":"Color.Border.Default","--retold-border-light":"Color.Border.Light","--retold-danger":"Color.Status.Danger","--retold-danger-muted":"Color.Status.DangerMuted","--retold-scrollbar":"Color.Scrollbar.Track","--retold-scrollbar-hover":"Color.Scrollbar.Hover","--retold-selection-bg":"Color.Selection.Background","--retold-focus-outline":"Color.Focus.Outline","--retold-font-family":"Typography.Family.Sans","--retold-font-mono":"Typography.Family.Mono"},IconColors:{Primary:"#EEE8D5",Accent:"#268BD2",Muted:"#839496",Light:"#003B4A",WarmBeige:"#073642",TealTint:"#004050",Lavender:"#003848",AmberTint:"#0A3A30",PdfFill:"#0A3028",PdfText:"#DC322F"},CSS:[],SVG:{},Image:{},CompiledAt:"2026-05-03T18:12:53.408Z",CompilerVersion:1}},{}],56:[function(t,e,o){e.exports={Hash:"synthwave",Name:"Synthwave",Category:"Fun",Version:"0.0.1",Description:"Purple and pink neon Ported from RetoldRemote-ThemeDefinitions.js to the pict-provider-theme manifest format.",Comprehensive:!0,Modes:{Strategy:"single",Default:"dark"},Tokens:{Color:{Background:{Primary:"#1A0A2E",Secondary:"#140824",Tertiary:"#200E38",Panel:"#1C0C32",Viewer:"#100620",Hover:"#2A1848",Selected:"#3A2060",Thumb:"#140824"},Text:{Primary:"#E8C0F8",Secondary:"#D0A8E8",Muted:"#9878B8",Dim:"#7858A8",Placeholder:"#584088"},Brand:{Accent:"#FF71CE",AccentHover:"#FF99DD"},Border:{Default:"#302050",Light:"#402868"},Status:{Danger:"#FF4488",DangerMuted:"#AA3366"},Scrollbar:{Track:"#302050",Hover:"#402868"},Selection:{Background:"rgba(255, 113, 206, 0.25)"},Focus:{Outline:"#FF71CE"},Syntax:{Keyword:"#FF6AD5",String:"#FFE066",Number:"#FF6AD5",Comment:"#9C8AC1",Operator:"#26F0F1",Punctuation:"#C8B6E2",Function:"#26F0F1",Variable:"#FFE0FF",Type:"#FFD93D",Builtin:"#FFD93D",Property:"#FF477E",Tag:"#FF477E",AttrName:"#FFD93D",AttrValue:"#FFE066"}},Typography:{Family:{Sans:"'Trebuchet MS', sans-serif",Mono:"'Courier New', monospace"}}},Aliases:{"--retold-bg-primary":"Color.Background.Primary","--retold-bg-secondary":"Color.Background.Secondary","--retold-bg-tertiary":"Color.Background.Tertiary","--retold-bg-panel":"Color.Background.Panel","--retold-bg-viewer":"Color.Background.Viewer","--retold-bg-hover":"Color.Background.Hover","--retold-bg-selected":"Color.Background.Selected","--retold-bg-thumb":"Color.Background.Thumb","--retold-text-primary":"Color.Text.Primary","--retold-text-secondary":"Color.Text.Secondary","--retold-text-muted":"Color.Text.Muted","--retold-text-dim":"Color.Text.Dim","--retold-text-placeholder":"Color.Text.Placeholder","--retold-accent":"Color.Brand.Accent","--retold-accent-hover":"Color.Brand.AccentHover","--retold-border":"Color.Border.Default","--retold-border-light":"Color.Border.Light","--retold-danger":"Color.Status.Danger","--retold-danger-muted":"Color.Status.DangerMuted","--retold-scrollbar":"Color.Scrollbar.Track","--retold-scrollbar-hover":"Color.Scrollbar.Hover","--retold-selection-bg":"Color.Selection.Background","--retold-focus-outline":"Color.Focus.Outline","--retold-font-family":"Typography.Family.Sans","--retold-font-mono":"Typography.Family.Mono"},IconColors:{Primary:"#D0A8E8",Accent:"#FF71CE",Muted:"#7858A8",Light:"#200E38",WarmBeige:"#221040",TealTint:"#1A0C30",Lavender:"#1E0E36",AmberTint:"#241028",PdfFill:"#241020",PdfText:"#FF4488"},CSS:[],SVG:{},Image:{},CompiledAt:"2026-05-03T18:12:53.408Z",CompilerVersion:1}},{}],57:[function(t,e,o){e.exports={Hash:"twilight",Name:"Twilight",Category:"Grey",Version:"0.0.1",Description:"Dark grey, low light. Ported from RetoldRemote-ThemeDefinitions.js to the pict-provider-theme manifest format. Single-mode (no light/dark bifurcation). Aliases preserve the legacy `--retold-*` variable names so existing CSS keeps working through the migration.",Comprehensive:!0,Modes:{Strategy:"single",Default:"dark"},Tokens:{Color:{Background:{Primary:"#1E1E1E",Secondary:"#181818",Tertiary:"#252525",Panel:"#202020",Viewer:"#141414",Hover:"#2E2E2E",Selected:"#404040",Thumb:"#181818"},Text:{Primary:"#E0E0E0",Secondary:"#C8C8C8",Muted:"#909090",Dim:"#707070",Placeholder:"#585858"},Brand:{Accent:"#A0A0A0",AccentHover:"#C0C0C0"},Border:{Default:"#333333",Light:"#404040"},Status:{Danger:"#FF6666",DangerMuted:"#AA6666"},Scrollbar:{Track:"#404040",Hover:"#505050"},Selection:{Background:"rgba(160, 160, 160, 0.25)"},Focus:{Outline:"#A0A0A0"},Syntax:{Keyword:"#B58FFF",String:"#9CDFB0",Number:"#FFB870",Comment:"#6E6E6E",Operator:"#7CC5FF",Punctuation:"#C0C0C0",Function:"#FFD080",Variable:"#E0E0E0",Type:"#FFB870",Builtin:"#FFB870",Property:"#FF8B8B",Tag:"#FF8B8B",AttrName:"#FFB870",AttrValue:"#9CDFB0"}},Typography:{Family:{Sans:"system-ui, -apple-system, sans-serif",Mono:"'SF Mono', 'Fira Code', 'Consolas', monospace"}}},Aliases:{"--retold-bg-primary":"Color.Background.Primary","--retold-bg-secondary":"Color.Background.Secondary","--retold-bg-tertiary":"Color.Background.Tertiary","--retold-bg-panel":"Color.Background.Panel","--retold-bg-viewer":"Color.Background.Viewer","--retold-bg-hover":"Color.Background.Hover","--retold-bg-selected":"Color.Background.Selected","--retold-bg-thumb":"Color.Background.Thumb","--retold-text-primary":"Color.Text.Primary","--retold-text-secondary":"Color.Text.Secondary","--retold-text-muted":"Color.Text.Muted","--retold-text-dim":"Color.Text.Dim","--retold-text-placeholder":"Color.Text.Placeholder","--retold-accent":"Color.Brand.Accent","--retold-accent-hover":"Color.Brand.AccentHover","--retold-border":"Color.Border.Default","--retold-border-light":"Color.Border.Light","--retold-danger":"Color.Status.Danger","--retold-danger-muted":"Color.Status.DangerMuted","--retold-scrollbar":"Color.Scrollbar.Track","--retold-scrollbar-hover":"Color.Scrollbar.Hover","--retold-selection-bg":"Color.Selection.Background","--retold-focus-outline":"Color.Focus.Outline","--retold-font-family":"Typography.Family.Sans","--retold-font-mono":"Typography.Family.Mono"},IconColors:{Primary:"#C8C8C8",Accent:"#A0A0A0",Muted:"#707070",Light:"#252525",WarmBeige:"#2A2A2A",TealTint:"#222222",Lavender:"#282828",AmberTint:"#2E2A24",PdfFill:"#2E2224",PdfText:"#E06060"},CSS:[],SVG:{},Image:{},CompiledAt:"2026-05-03T18:12:53.408Z",CompilerVersion:1}},{}],58:[function(t,e,o){e.exports={Hash:"ultravisor-desert-canyon",Name:"Ultravisor — Desert Canyon",Version:"0.0.1",Description:"Vibrant desert palette — orange brand and teal accents on deep canyon-brown backgrounds. Single-mode dark.",Comprehensive:!0,Modes:{Strategy:"single",Default:"dark"},Tokens:{Color:{Background:{Primary:"#18120e",Secondary:"#221a14",Tertiary:"#2e2018",Panel:"#221a14",Hover:"#3a2a1e",Selected:"#3a2a1e"},Text:{Primary:"#d8c8b0",Secondary:"#e8d8c0",Muted:"#a09080",Placeholder:"#685040",OnBrand:"#18120e"},Brand:{Primary:"#e8943a",PrimaryHover:"#f0a44a",Accent:"#18a0a0",AccentHover:"#30b0b0"},Border:{Default:"#3a2a1e",Light:"#2e2018",Strong:"#4a3a2e"},Status:{Success:"#18a0a0",Warning:"#e0c870",Error:"#e05830",Info:"#18a0a0"},Scrollbar:{Track:"#221a14",Thumb:"#3a2a1e",Hover:"#4a3a2e"},Selection:{Background:"#3a2a1e",Text:"#e8d8c0"},Focus:{Outline:"#e8943a"},Shadow:{Color:"rgba(0, 0, 0, 0.30)"},Syntax:{Keyword:"#E89A6E",String:"#8FD493",Number:"#E8A94D",Comment:"#8E8478",Operator:"#4FB3A6",Punctuation:"#C0B5A4",Function:"#7FBDD8",Variable:"#E8DCC8",Type:"#E8A94D",Builtin:"#E8A94D",Property:"#E89A6E",Tag:"#E89A6E",AttrName:"#E8A94D",AttrValue:"#8FD493"},Editor:{LineNumberBackground:"#221a14",LineNumberText:"#685040",CurrentLineHighlight:"#2e2018",SelectionBackground:"#3a2a1e",GutterBorder:"#2e2018"}},Typography:{Family:{Sans:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",Serif:"Georgia, Cambria, 'Times New Roman', Times, serif",Mono:"'SFMono-Regular', 'SF Mono', 'Menlo', 'Consolas', 'Liberation Mono', 'Courier New', monospace"}},Layout:{SidebarWidth:"260px",TopbarHeight:"56px",StatusbarHeight:"28px"}},Brand:{Name:"Ultravisor",Tagline:"Process supervision and workflow automation"}}},{}],59:[function(t,e,o){e.exports={Hash:"ultravisor-desert-day",Name:"Ultravisor — Desert Day",Version:"0.0.1",Description:"Ultravisor's warm light palette — cream backgrounds, deep walnut text, teal accents. Single-mode light.",Comprehensive:!0,Modes:{Strategy:"single",Default:"light"},Tokens:{Color:{Background:{Primary:"#faf6f0",Secondary:"#f0e6d6",Tertiary:"#e8ddd0",Panel:"#ffffff",Hover:"#f0e6d6",Selected:"#e8ddd0"},Text:{Primary:"#3d2b1f",Secondary:"#2e1e14",Muted:"#8a7560",Placeholder:"#a09080",OnBrand:"#ffffff"},Brand:{Primary:"#5c3d2e",PrimaryHover:"#7a5040",Accent:"#3a8a8c",AccentHover:"#2a7070"},Border:{Default:"#e0d0b8",Light:"#e8ddd0",Strong:"#c8b8a0"},Status:{Success:"#5a7a30",Warning:"#b08020",Error:"#a03040",Info:"#3a8a8c"},Scrollbar:{Track:"#f0e6d6",Thumb:"#d0c0a8",Hover:"#c0b098"},Selection:{Background:"#e8ddd0",Text:"#2e1e14"},Focus:{Outline:"#c2703e"},Shadow:{Color:"rgba(92, 61, 46, 0.10)"},Syntax:{Keyword:"#A0532E",String:"#3F8A52",Number:"#A86B00",Comment:"#8A7F72",Operator:"#2E7D74",Punctuation:"#5E5549",Function:"#2E5E96",Variable:"#3D3229",Type:"#A86B00",Builtin:"#A86B00",Property:"#A0532E",Tag:"#A0532E",AttrName:"#A86B00",AttrValue:"#3F8A52"},Editor:{LineNumberBackground:"#f0e6d6",LineNumberText:"#a09080",CurrentLineHighlight:"#f5ede0",SelectionBackground:"#e8ddd0",GutterBorder:"#e0d0b8"}},Typography:{Family:{Sans:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",Serif:"Georgia, Cambria, 'Times New Roman', Times, serif",Mono:"'SFMono-Regular', 'SF Mono', 'Menlo', 'Consolas', 'Liberation Mono', 'Courier New', monospace"}},Layout:{SidebarWidth:"260px",TopbarHeight:"56px",StatusbarHeight:"28px"}},Brand:{Name:"Ultravisor",Tagline:"Process supervision and workflow automation"}}},{}],60:[function(t,e,o){e.exports={Hash:"ultravisor-desert-dusk",Name:"Ultravisor — Desert Dusk",Version:"0.0.1",Description:"Ultravisor's original default — warm tan brand on muted dark desert backgrounds. Single-mode dark.",Comprehensive:!0,Modes:{Strategy:"single",Default:"dark"},Tokens:{Color:{Background:{Primary:"#1a1714",Secondary:"#252018",Tertiary:"#302818",Panel:"#252018",Hover:"#3a3028",Selected:"#3a3028"},Text:{Primary:"#c8b8a0",Secondary:"#d8c8a8",Muted:"#907860",Placeholder:"#706050",OnBrand:"#FFFFFF"},Brand:{Primary:"#c4956a",PrimaryHover:"#d4a57a",Accent:"#4a9090",AccentHover:"#5aacac"},Border:{Default:"#3a3028",Light:"#302818",Strong:"#4a4038"},Status:{Success:"#8a9a5a",Warning:"#c0a050",Error:"#b04050",Info:"#4a9090"},Scrollbar:{Track:"#252018",Thumb:"#3a3028",Hover:"#4a4038"},Selection:{Background:"#3a3028",Text:"#d8c8a8"},Focus:{Outline:"#c4956a"},Shadow:{Color:"rgba(0, 0, 0, 0.30)"},Syntax:{Keyword:"#E89A6E",String:"#8FD493",Number:"#E8A94D",Comment:"#8E8478",Operator:"#4FB3A6",Punctuation:"#C0B5A4",Function:"#7FBDD8",Variable:"#E8DCC8",Type:"#E8A94D",Builtin:"#E8A94D",Property:"#E89A6E",Tag:"#E89A6E",AttrName:"#E8A94D",AttrValue:"#8FD493"},Editor:{LineNumberBackground:"#252018",LineNumberText:"#706050",CurrentLineHighlight:"#302818",SelectionBackground:"#3a3028",GutterBorder:"#302818"}},Typography:{Family:{Sans:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",Serif:"Georgia, Cambria, 'Times New Roman', Times, serif",Mono:"'SFMono-Regular', 'SF Mono', 'Menlo', 'Consolas', 'Liberation Mono', 'Courier New', monospace"}},Layout:{SidebarWidth:"260px",TopbarHeight:"56px",StatusbarHeight:"28px"}},Brand:{Name:"Ultravisor",Tagline:"Process supervision and workflow automation"}}},{}],61:[function(t,e,o){e.exports={Hash:"ultravisor-desert-sunset",Name:"Ultravisor — Desert Sunset",Version:"0.0.1",Description:"Ultravisor's golden-hour palette — orange brand on rust-warmed dark backgrounds. Single-mode dark.",Comprehensive:!0,Modes:{Strategy:"single",Default:"dark"},Tokens:{Color:{Background:{Primary:"#1e1610",Secondary:"#2a2018",Tertiary:"#342818",Panel:"#2a2018",Hover:"#3a2e22",Selected:"#3a2e22"},Text:{Primary:"#d4c4aa",Secondary:"#e0d0b8",Muted:"#8a7560",Placeholder:"#6a5840",OnBrand:"#1e1610"},Brand:{Primary:"#e8943a",PrimaryHover:"#f0a44a",Accent:"#2a8a8a",AccentHover:"#3a9a9a"},Border:{Default:"#3a2e22",Light:"#342818",Strong:"#4a3e32"},Status:{Success:"#6a9a3a",Warning:"#d4a46a",Error:"#c44e2a",Info:"#2a8a8a"},Scrollbar:{Track:"#2a2018",Thumb:"#3a2e22",Hover:"#4a3e32"},Selection:{Background:"#3a2e22",Text:"#e0d0b8"},Focus:{Outline:"#e8943a"},Shadow:{Color:"rgba(0, 0, 0, 0.30)"},Syntax:{Keyword:"#E89A6E",String:"#8FD493",Number:"#E8A94D",Comment:"#8E8478",Operator:"#4FB3A6",Punctuation:"#C0B5A4",Function:"#7FBDD8",Variable:"#E8DCC8",Type:"#E8A94D",Builtin:"#E8A94D",Property:"#E89A6E",Tag:"#E89A6E",AttrName:"#E8A94D",AttrValue:"#8FD493"},Editor:{LineNumberBackground:"#2a2018",LineNumberText:"#6a5840",CurrentLineHighlight:"#342818",SelectionBackground:"#3a2e22",GutterBorder:"#342818"}},Typography:{Family:{Sans:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",Serif:"Georgia, Cambria, 'Times New Roman', Times, serif",Mono:"'SFMono-Regular', 'SF Mono', 'Menlo', 'Consolas', 'Liberation Mono', 'Courier New', monospace"}},Layout:{SidebarWidth:"260px",TopbarHeight:"56px",StatusbarHeight:"28px"}},Brand:{Name:"Ultravisor",Tagline:"Process supervision and workflow automation"}}},{}],62:[function(t,e,o){e.exports={Hash:"ultravisor-professional-dark",Name:"Ultravisor — Professional Dark",Version:"0.0.1",Description:"Dark modern palette — slate-blue text on inky surfaces, sky-blue brand. Single-mode dark.",Comprehensive:!0,Modes:{Strategy:"single",Default:"dark"},Tokens:{Color:{Background:{Primary:"#111318",Secondary:"#1a1d24",Tertiary:"#22252e",Panel:"#1a1d24",Hover:"#282c34",Selected:"#282c34"},Text:{Primary:"#c8cdd5",Secondary:"#e0e4ea",Muted:"#8b92a0",Placeholder:"#5a6070",OnBrand:"#ffffff"},Brand:{Primary:"#60a5fa",PrimaryHover:"#93c5fd",Accent:"#60a5fa",AccentHover:"#93c5fd"},Border:{Default:"#282c34",Light:"#22252e",Strong:"#3a3f4a"},Status:{Success:"#34d399",Warning:"#fbbf24",Error:"#f87171",Info:"#60a5fa"},Scrollbar:{Track:"#1a1d24",Thumb:"#282c34",Hover:"#3a3f4a"},Selection:{Background:"#1e2230",Text:"#e0e4ea"},Focus:{Outline:"#60a5fa"},Shadow:{Color:"rgba(0, 0, 0, 0.30)"},Syntax:{Keyword:"#E89A6E",String:"#8FD493",Number:"#E8A94D",Comment:"#8E8478",Operator:"#4FB3A6",Punctuation:"#C0B5A4",Function:"#7FBDD8",Variable:"#E8DCC8",Type:"#E8A94D",Builtin:"#E8A94D",Property:"#E89A6E",Tag:"#E89A6E",AttrName:"#E8A94D",AttrValue:"#8FD493"},Editor:{LineNumberBackground:"#1a1d24",LineNumberText:"#5a6070",CurrentLineHighlight:"#22252e",SelectionBackground:"#1e2230",GutterBorder:"#22252e"}},Typography:{Family:{Sans:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",Serif:"Georgia, Cambria, 'Times New Roman', Times, serif",Mono:"'SFMono-Regular', 'SF Mono', 'Menlo', 'Consolas', 'Liberation Mono', 'Courier New', monospace"}},Layout:{SidebarWidth:"260px",TopbarHeight:"56px",StatusbarHeight:"28px"}},Brand:{Name:"Ultravisor",Tagline:"Process supervision and workflow automation"}}},{}],63:[function(t,e,o){e.exports={Hash:"ultravisor-professional-light",Name:"Ultravisor — Professional Light",Version:"0.0.1",Description:"Bright modern palette — slate text on near-white backgrounds, royal-blue brand. Single-mode light.",Comprehensive:!0,Modes:{Strategy:"single",Default:"light"},Tokens:{Color:{Background:{Primary:"#f5f6f8",Secondary:"#ffffff",Tertiary:"#e4e7ec",Panel:"#ffffff",Hover:"#f0f1f4",Selected:"#e4e7ec"},Text:{Primary:"#2d3748",Secondary:"#1a202c",Muted:"#6b7280",Placeholder:"#9ca3af",OnBrand:"#ffffff"},Brand:{Primary:"#3b82f6",PrimaryHover:"#2563eb",Accent:"#3b82f6",AccentHover:"#2563eb"},Border:{Default:"#e2e5ea",Light:"#eceef2",Strong:"#c8cdd5"},Status:{Success:"#10b981",Warning:"#f59e0b",Error:"#ef4444",Info:"#3b82f6"},Scrollbar:{Track:"#f0f1f4",Thumb:"#d1d5db",Hover:"#b0b5bd"},Selection:{Background:"#dbeafe",Text:"#1a202c"},Focus:{Outline:"#3b82f6"},Shadow:{Color:"rgba(0, 0, 0, 0.06)"},Syntax:{Keyword:"#A0532E",String:"#3F8A52",Number:"#A86B00",Comment:"#8A7F72",Operator:"#2E7D74",Punctuation:"#5E5549",Function:"#2E5E96",Variable:"#3D3229",Type:"#A86B00",Builtin:"#A86B00",Property:"#A0532E",Tag:"#A0532E",AttrName:"#A86B00",AttrValue:"#3F8A52"},Editor:{LineNumberBackground:"#f5f6f8",LineNumberText:"#9ca3af",CurrentLineHighlight:"#f0f1f4",SelectionBackground:"#dbeafe",GutterBorder:"#e2e5ea"}},Typography:{Family:{Sans:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",Serif:"Georgia, Cambria, 'Times New Roman', Times, serif",Mono:"'SFMono-Regular', 'SF Mono', 'Menlo', 'Consolas', 'Liberation Mono', 'Courier New', monospace"}},Layout:{SidebarWidth:"260px",TopbarHeight:"56px",StatusbarHeight:"28px"}},Brand:{Name:"Ultravisor",Tagline:"Process supervision and workflow automation"}}},{}],64:[function(t,e,o){const n=t("pict-view");e.exports=class extends n{constructor(t,e,o){super(t,e,o)}onAfterRender(t,e,o,n){if(this.pict.CSSMap.injectCSS(),"undefined"!=typeof document&&this.options.Height){let t=document.querySelector(".pict-theme-bottombar");t&&(t.style.minHeight=this.options.Height+"px")}let r=t=>{if(!t)return;let e=this.pict.views[t];e?e.render():this.log&&this.log.warn&&this.log.warn('Theme-BottomBar: slot view "'+t+'" not registered')};return r(this.options.StatusView),r(this.options.InfoView),r(this.options.ActionsView),super.onAfterRender?super.onAfterRender(t,e,o,n):void 0}setStatusView(t){this._setSlotView("StatusView","#Theme-BottomBar-Status",t)}setInfoView(t){this._setSlotView("InfoView","#Theme-BottomBar-Info",t)}setActionsView(t){this._setSlotView("ActionsView","#Theme-BottomBar-Actions",t)}_setSlotView(t,e,o){if(this.options[t]=o||null,"undefined"!=typeof document){let t=document.querySelector(e);t&&(t.innerHTML="")}if(!o)return;let n=this.pict.views[o];n?n.render():this.log&&this.log.warn&&this.log.warn('Theme-BottomBar: view "'+o+'" not registered')}},e.exports.default_configuration={ViewIdentifier:"Theme-BottomBar",AutoInitialize:!0,AutoRender:!1,DefaultDestinationAddress:"#Theme-BottomBar",DefaultRenderable:"Theme-BottomBar-Renderable",StatusView:null,InfoView:null,ActionsView:null,Height:32,Templates:[{Hash:"Theme-BottomBar-Template",Template:'\n<div class="pict-theme-bottombar">\n\t<div class="pict-theme-bottombar-status" id="Theme-BottomBar-Status"></div>\n\t<div class="pict-theme-bottombar-info" id="Theme-BottomBar-Info"></div>\n\t<div class="pict-theme-bottombar-actions" id="Theme-BottomBar-Actions"></div>\n</div>'}],Renderables:[{RenderableHash:"Theme-BottomBar-Renderable",TemplateHash:"Theme-BottomBar-Template",ContentDestinationAddress:"#Theme-BottomBar",RenderMethod:"replace"}],CSS:"\n.pict-theme-bottombar {\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 14px;\n\t/* The min-height is rewritten per-instance in onAfterRender from the\n\t Height option (default 32). A fixed px value avoids the\n\t percent-height resolution trap the pict-section-modal shell sets\n\t up — see the comment on Theme-TopBar's CSS for the full story. */\n\tmin-height: 32px;\n\tpadding: 0 14px;\n\tbox-sizing: border-box;\n\tbackground: var(--theme-color-background-secondary, transparent);\n\tfont-size: var(--theme-typography-size-xs, 12px);\n\tcolor: var(--theme-color-text-secondary, #4a5568);\n\t/* Single medium brand-primary stripe at the top of the bottombar.\n\t The topbar carries the full two-stripe identifier; on the\n\t bottombar (which is only 32px tall) a single 2px primary line is\n\t enough to seat the brand colour at the bottom of the page\n\t without competing for visual weight against the content row. */\n\tborder-top: 2px solid var(--brand-color-primary-mode, var(--theme-color-brand-primary, #2563eb));\n}\n.pict-theme-bottombar-status {\n\tflex: 0 0 auto;\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 6px;\n\twhite-space: nowrap;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\tmax-width: 50%;\n}\n.pict-theme-bottombar-info {\n\tflex: 1 1 auto;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tgap: 12px;\n\tmin-width: 0;\n\toverflow: hidden;\n}\n.pict-theme-bottombar-actions {\n\tflex: 0 0 auto;\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 6px;\n}",CSSPriority:500}},{"pict-view":75}],65:[function(t,e,o){const n=t("pict-view"),r=t("../Theme-Brand.js");e.exports=class extends n{constructor(t,e,o){super(t,e,o),this._unsubscribeFromBrand=null}onAfterInitialize(){return this._subscribeToBrand(),super.onAfterInitialize?super.onAfterInitialize():void 0}onBeforeRender(t){return this._refreshAppData(),super.onBeforeRender?super.onBeforeRender(t):void 0}onAfterRender(t,e,o,n){return this.pict.CSSMap.injectCSS(),super.onAfterRender?super.onAfterRender(t,e,o,n):void 0}_subscribeToBrand(){if(this._unsubscribeFromBrand)return;let t=this;this._unsubscribeFromBrand=r.onChange(function(){t.render()})}_refreshAppData(){let t=r.getActive();if(this.pict.AppData.PictSectionTheme=this.pict.AppData.PictSectionTheme||{},!t)return void(this.pict.AppData.PictSectionTheme.BrandMark={BodySlot:[]});let e=!1!==this.options.ShowIcon,o=!1!==this.options.ShowName,n=e&&"svg"===t.IconType&&t.Icon?[{IconHTML:t.Icon}]:[],i=e&&"image"===t.IconType&&t.Icon?[{IconURL:t.Icon}]:[],a=o&&t.Name?[{Name:t.Name}]:[];this.pict.AppData.PictSectionTheme.BrandMark={BodySlot:[{Tooltip:t.Tagline||t.Name||"",IconSVGSlot:n,IconImgSlot:i,NameSlot:a}]}}},e.exports.default_configuration={ViewIdentifier:"Theme-Brand-Mark",AutoInitialize:!0,AutoRender:!1,DefaultDestinationAddress:"#Theme-Brand-Mark",DefaultRenderable:"Theme-Brand-Mark-Renderable",ShowIcon:!0,ShowName:!0,Templates:[{Hash:"Theme-Brand-Mark-Template",Template:"{~TS:Theme-Brand-Mark-Body-Template:AppData.PictSectionTheme.BrandMark.BodySlot~}"},{Hash:"Theme-Brand-Mark-Body-Template",Template:'\n<span class="pict-theme-brand-mark" title="{~D:Record.Tooltip~}">\n\t{~TS:Theme-Brand-Mark-IconSVG-Template:Record.IconSVGSlot~}\n\t{~TS:Theme-Brand-Mark-IconImg-Template:Record.IconImgSlot~}\n\t{~TS:Theme-Brand-Mark-Name-Template:Record.NameSlot~}\n</span>'},{Hash:"Theme-Brand-Mark-IconSVG-Template",Template:'<span class="pict-theme-brand-mark-icon">{~D:Record.IconHTML~}</span>'},{Hash:"Theme-Brand-Mark-IconImg-Template",Template:'<span class="pict-theme-brand-mark-icon"><img src="{~D:Record.IconURL~}" alt=""></span>'},{Hash:"Theme-Brand-Mark-Name-Template",Template:'<span class="pict-theme-brand-mark-name">{~D:Record.Name~}</span>'}],Renderables:[{RenderableHash:"Theme-Brand-Mark-Renderable",TemplateHash:"Theme-Brand-Mark-Template",ContentDestinationAddress:"#Theme-Brand-Mark",RenderMethod:"replace"}],CSS:"\n.pict-theme-brand-mark {\n\tdisplay: inline-flex;\n\talign-items: center;\n\tgap: 8px;\n\t/* line-height: 1 collapses the inherited ~1.2 line-box around the\n\t name glyphs. Without this the inline-flex container is taller\n\t than its visible content, the line-box adds asymmetric space\n\t above the caps, and the whole mark looks pushed up vs.\n\t neighbouring buttons that sit on standard 12px-text baselines. */\n\tline-height: 1;\n\tcolor: var(--brand-color-primary-mode, var(--theme-color-text-primary, #1a1a1a));\n\tuser-select: none;\n}\n.pict-theme-brand-mark-icon {\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 22px;\n\theight: 22px;\n\tcolor: currentColor;\n}\n.pict-theme-brand-mark-icon img,\n.pict-theme-brand-mark-icon svg {\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: block;\n}\n.pict-theme-brand-mark-name {\n\t/* Font size dropped from 15 → 14 so the brand name reads closer\n\t to the typical 12px action-button text height; bigger glyphs\n\t reaching higher into the row are why the mark looked optically\n\t high. The 2px brand-secondary underline keeps the mark feeling\n\t distinctly branded; padding-bottom: 1px was an asymmetric nudge\n\t that shifted the visual center up — removed. */\n\tfont-size: 14px;\n\tfont-weight: 600;\n\tletter-spacing: 0.4px;\n\tborder-bottom: 2px solid var(--brand-color-secondary-mode, transparent);\n\twhite-space: nowrap;\n}\n/* Compact form — at narrow viewports the brand mark collapses to\n icon-only. The icon alone still reads as the brand (the deterministic\n logo is designed to be recognisable without the wordmark) and freeing\n up the wordmark's width keeps the nav buttons reachable on tablet /\n small-laptop widths. The threshold matches the topbar's compact\n breakpoint in Theme-TopBar. */\n@media (max-width: 720px) {\n\t.pict-theme-brand-mark-name {\n\t\tdisplay: none;\n\t}\n}",CSSPriority:500}},{"../Theme-Brand.js":31,"pict-view":75}],66:[function(t,e,o){const n=t("pict-view"),r=t("../Theme-Brand.js");class i extends n{constructor(t,e,o){super(t,e,o),this._unsubscribeFromBrand=null}onAfterInitialize(){return this._subscribeToBrand(),super.onAfterInitialize?super.onAfterInitialize():void 0}onBeforeRender(t){return this._refreshAppData(),super.onBeforeRender?super.onBeforeRender(t):void 0}onAfterRender(t,e,o,n){return this.pict.CSSMap.injectCSS(),super.onAfterRender?super.onAfterRender(t,e,o,n):void 0}_subscribeToBrand(){if(this._unsubscribeFromBrand)return;let t=this;this._unsubscribeFromBrand=r.onChange(function(){t.render()})}_refreshAppData(){let t=r.getActive();if(this.pict.AppData.PictSectionTheme=this.pict.AppData.PictSectionTheme||{},!t)return void(this.pict.AppData.PictSectionTheme.BrandStrip={BodySlot:[]});let e=!1!==this.options.ShowName,o=[],n=[];"svg"===t.IconType&&t.Icon?o=[{IconHTML:t.Icon}]:"image"===t.IconType&&t.Icon&&(n=[{IconURL:t.Icon}]);let i=e?[{Name:t.Name,IconSVGSlot:o,IconImgSlot:n}]:[],a=t.Name+(t.Tagline?" — "+t.Tagline:"");this.pict.AppData.PictSectionTheme.BrandStrip={BodySlot:[{Tooltip:a,NameRowSlot:i,PrimaryHeight:this.options.PrimaryStripeHeight||3,SecondaryHeight:this.options.SecondaryStripeHeight||1}]}}}i.default_configuration={ViewIdentifier:"Theme-BrandStrip",AutoInitialize:!0,AutoRender:!1,DefaultDestinationAddress:"#Theme-BrandStrip",DefaultRenderable:"Theme-BrandStrip-Renderable",PrimaryStripeHeight:3,SecondaryStripeHeight:1,ShowName:!0,Templates:[{Hash:"Theme-BrandStrip-Template",Template:"\n{~TS:Theme-BrandStrip-Body-Template:AppData.PictSectionTheme.BrandStrip.BodySlot~}"},{Hash:"Theme-BrandStrip-Body-Template",Template:'\n<div class="pict-theme-brandstrip" title="{~D:Record.Tooltip~}">\n\t{~TS:Theme-BrandStrip-NameRow-Template:Record.NameRowSlot~}\n\t<div class="pict-theme-brandstrip-stripes">\n\t\t<div class="pict-theme-brandstrip-stripe pict-theme-brandstrip-stripe-primary"\n\t\t style="height: {~D:Record.PrimaryHeight~}px;"></div>\n\t\t<div class="pict-theme-brandstrip-stripe pict-theme-brandstrip-stripe-secondary"\n\t\t style="height: {~D:Record.SecondaryHeight~}px;"></div>\n\t</div>\n</div>'},{Hash:"Theme-BrandStrip-NameRow-Template",Template:'\n<div class="pict-theme-brandstrip-row">\n\t{~TS:Theme-BrandStrip-IconSVG-Template:Record.IconSVGSlot~}\n\t{~TS:Theme-BrandStrip-IconImg-Template:Record.IconImgSlot~}\n\t<span class="pict-theme-brandstrip-name">{~D:Record.Name~}</span>\n</div>'},{Hash:"Theme-BrandStrip-IconSVG-Template",Template:'<span class="pict-theme-brandstrip-icon">{~D:Record.IconHTML~}</span>'},{Hash:"Theme-BrandStrip-IconImg-Template",Template:'<span class="pict-theme-brandstrip-icon"><img src="{~D:Record.IconURL~}" alt=""></span>'}],Renderables:[{RenderableHash:"Theme-BrandStrip-Renderable",TemplateHash:"Theme-BrandStrip-Template",ContentDestinationAddress:"#Theme-BrandStrip",RenderMethod:"replace"}],CSS:"\n.pict-theme-brandstrip {\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 4px;\n\tuser-select: none;\n}\n.pict-theme-brandstrip-row {\n\tdisplay: inline-flex;\n\talign-items: center;\n\tgap: 8px;\n\tpadding: 6px 12px 4px;\n\tfont-size: 12px;\n\tfont-weight: 600;\n\tletter-spacing: 0.4px;\n\ttext-transform: uppercase;\n\tcolor: var(--brand-color-primary, var(--theme-color-text-muted, #6b6b6b));\n}\n.pict-theme-brandstrip-name {\n\tborder-bottom: 2px solid var(--brand-color-secondary, transparent);\n\tpadding-bottom: 1px;\n}\n.pict-theme-brandstrip-icon {\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 16px; height: 16px;\n\tcolor: var(--brand-color-primary, currentColor);\n}\n.pict-theme-brandstrip-icon img,\n.pict-theme-brandstrip-icon svg {\n\twidth: 100%; height: 100%;\n\tdisplay: block;\n}\n.pict-theme-brandstrip-stripes {\n\tdisplay: flex;\n\tflex-direction: column;\n\twidth: 100%;\n}\n.pict-theme-brandstrip-stripe {\n\twidth: 100%;\n}\n.pict-theme-brandstrip-stripe-primary {\n\tbackground: var(--brand-color-primary, transparent);\n}\n.pict-theme-brandstrip-stripe-secondary {\n\tbackground: var(--brand-color-secondary, transparent);\n}",CSSPriority:500},e.exports=i},{"../Theme-Brand.js":31,"pict-view":75}],67:[function(t,e,o){const n=t("pict-view"),r=t("../Theme-Icons.js"),i={ViewIdentifier:"Theme-Button",AutoInitialize:!0,AutoRender:!1,DefaultDestinationAddress:"#Theme-Button",DefaultRenderable:"Theme-Button-Renderable",ProviderHash:"Theme",ModalViewHash:"Pict-Section-Modal",PickerViewHash:"Theme-Picker",ModeToggleViewHash:"Theme-ModeToggle",ScaleSelectViewHash:"Theme-ScaleSelect",Title:"Theme",AriaLabel:"Open theme menu",ModalTitle:"Theme",ModalWidth:"320px",Templates:[{Hash:"Theme-Button-Template",Template:'\n<button type="button"\n class="pict-theme-button"\n aria-label="{~D:AppData.PictSectionTheme.Button.AriaLabel~}"\n title="{~D:AppData.PictSectionTheme.Button.Title~}"\n onclick="_Pict.views[\'Theme-Button\'].openMenu();">\n\t'.concat(r.iconSun(16),"\n</button>")},{Hash:"Theme-Button-Modal-Template",Template:'\n<div class="pict-theme-button-menu">\n\t<div class="pict-theme-button-menu-row">\n\t\t<label class="pict-theme-button-menu-label">Theme</label>\n\t\t<div id="Theme-Picker"></div>\n\t</div>\n\t<div class="pict-theme-button-menu-row">\n\t\t<label class="pict-theme-button-menu-label">Mode</label>\n\t\t<div id="Theme-ModeToggle"></div>\n\t</div>\n\t<div class="pict-theme-button-menu-row">\n\t\t<label class="pict-theme-button-menu-label">Scale</label>\n\t\t<div id="Theme-ScaleSelect"></div>\n\t</div>\n</div>'}],Renderables:[{RenderableHash:"Theme-Button-Renderable",TemplateHash:"Theme-Button-Template",ContentDestinationAddress:"#Theme-Button",RenderMethod:"replace"}],CSS:"\n.pict-theme-button {\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\t/* Sized to match a typical 12px-font / 6px-12px-padding text button\n\t (~28px tall) so this drops cleanly into a topbar row alongside\n\t action buttons without standing taller and crashing the row's\n\t visual rhythm. Squareish — width matches height for the icon. */\n\twidth: 28px;\n\theight: 28px;\n\tpadding: 0;\n\tborder-radius: 6px;\n\tborder: 1px solid var(--theme-color-border-default, #cfd5dd);\n\tbackground: var(--theme-color-background-secondary, #fbfbfc);\n\tcolor: var(--theme-color-text-secondary, #4a5568);\n\tcursor: pointer;\n\ttransition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;\n}\n.pict-theme-button:hover {\n\tbackground: var(--theme-color-background-hover, #f0f0f0);\n\tcolor: var(--theme-color-brand-primary, #2563eb);\n\tborder-color: var(--theme-color-brand-primary, #2563eb);\n}\n.pict-theme-button-icon { width: 16px; height: 16px; }\n.pict-theme-button-menu { display: flex; flex-direction: column; gap: 14px; }\n.pict-theme-button-menu-row { display: flex; flex-direction: column; gap: 6px; }\n.pict-theme-button-menu-label {\n\tfont-size: 11px;\n\tfont-weight: 600;\n\tletter-spacing: 0.4px;\n\ttext-transform: uppercase;\n\tcolor: var(--theme-color-text-muted, #6b6b6b);\n}",CSSPriority:500};class a extends n{onBeforeRender(t){return this._refreshAppData(),super.onBeforeRender?super.onBeforeRender(t):void 0}onAfterRender(t,e,o,n){return this.pict.CSSMap.injectCSS(),super.onAfterRender?super.onAfterRender(t,e,o,n):void 0}openMenu(){let t=this._modal();if(!t)return"undefined"!=typeof console&&console.warn('Theme-Button: pict-section-modal view not found at "'+(this.options.ModalViewHash||"Pict-Section-Modal")+'" — cannot open theme menu.'),null;let e=this.pict.parseTemplateByHash("Theme-Button-Modal-Template",{}),o=this;return t.show({title:this.options.ModalTitle||"Theme",content:e,width:this.options.ModalWidth||"320px",closeable:!0,buttons:[],onOpen:function(){o._mountSubViews()}})}_modal(){let t=this.options.ModalViewHash||"Pict-Section-Modal";return this.pict&&this.pict.views&&this.pict.views[t]}_mountSubViews(){let t=this.pict.views[this.options.PickerViewHash||"Theme-Picker"];t&&t.render();let e=this.pict.views[this.options.ModeToggleViewHash||"Theme-ModeToggle"];e&&e.render();let o=this.pict.views[this.options.ScaleSelectViewHash||"Theme-ScaleSelect"];o&&o.render()}_refreshAppData(){this.pict.AppData.PictSectionTheme=this.pict.AppData.PictSectionTheme||{},this.pict.AppData.PictSectionTheme.Button={Title:this.options.Title||"Theme",AriaLabel:this.options.AriaLabel||"Open theme menu"}}}a.default_configuration=i,e.exports=a},{"../Theme-Icons.js":32,"pict-view":75}],68:[function(t,e,o){const n=t("pict-view"),r=t("../Theme-Icons.js"),i={ViewIdentifier:"Theme-ModeToggle",AutoInitialize:!0,AutoRender:!1,DefaultDestinationAddress:"#Theme-ModeToggle",DefaultRenderable:"Theme-ModeToggle-Renderable",ProviderHash:"Theme",Labels:{Light:"Light",Dark:"Dark",System:"System"},ShowIcons:!0,Templates:[{Hash:"Theme-ModeToggle-Template",Template:'\n<div class="pict-theme-modetoggle-wrap">\n\t<div class="pict-theme-modetoggle{~NE:AppData.PictSectionTheme.ModeToggle.Disabled^ pict-theme-modetoggle-disabled~}"\n\t role="group" aria-label="Color mode"\n\t title="{~D:AppData.PictSectionTheme.ModeToggle.WrapTitle~}">\n\t\t{~TS:Theme-ModeToggle-Button-Template:AppData.PictSectionTheme.ModeToggle.Buttons~}\n\t</div>\n\t{~TS:Theme-ModeToggle-LockedNote-Template:AppData.PictSectionTheme.ModeToggle.LockedNoteSlot~}\n</div>'},{Hash:"Theme-ModeToggle-Button-Template",Template:'\n<button type="button"\n class="pict-theme-modetoggle-btn{~NE:Record.Active^ pict-theme-modetoggle-btn-active~}{~NE:Record.LockedOut^ pict-theme-modetoggle-btn-lockedout~}"\n title="{~D:Record.Title~}"\n aria-pressed="{~D:Record.Active~}"\n aria-disabled="{~D:Record.LockedOut~}"\n onclick="_Pict.views[\'Theme-ModeToggle\'].pickMode(\'{~D:Record.Mode~}\');">\n\t{~TS:Theme-ModeToggle-Icon-Light:Record.IconLight~}{~TS:Theme-ModeToggle-Icon-Dark:Record.IconDark~}{~TS:Theme-ModeToggle-Icon-System:Record.IconSystem~}<span class="pict-theme-modetoggle-label">{~D:Record.Label~}</span>\n</button>'},{Hash:"Theme-ModeToggle-LockedNote-Template",Template:'\n<div class="pict-theme-modetoggle-locked-note" role="note">\n\t<svg class="pict-theme-modetoggle-locked-icon" viewBox="0 0 24 24" fill="none"\n\t stroke="currentColor" stroke-width="2" stroke-linecap="round"\n\t stroke-linejoin="round" aria-hidden="true">\n\t\t<rect x="4" y="11" width="16" height="9" rx="2"/>\n\t\t<path d="M8 11V7a4 4 0 0 1 8 0v4"/>\n\t</svg>\n\t<span>{~D:Record.Message~}</span>\n</div>'},{Hash:"Theme-ModeToggle-Icon-Light",Template:r.iconSun()},{Hash:"Theme-ModeToggle-Icon-Dark",Template:r.iconMoon()},{Hash:"Theme-ModeToggle-Icon-System",Template:r.iconSystem()}],Renderables:[{RenderableHash:"Theme-ModeToggle-Renderable",TemplateHash:"Theme-ModeToggle-Template",ContentDestinationAddress:"#Theme-ModeToggle",RenderMethod:"replace"}],CSS:"\n.pict-theme-modetoggle-wrap { display: inline-flex; flex-direction: column; gap: 6px; }\n.pict-theme-modetoggle {\n\tdisplay: inline-flex;\n\tborder: 1px solid var(--theme-color-border-default, #cfd5dd);\n\tborder-radius: 6px;\n\toverflow: hidden;\n\tbackground: var(--theme-color-background-secondary, #fbfbfc);\n\tfont-size: 12px;\n}\n.pict-theme-modetoggle-btn {\n\tdisplay: inline-flex;\n\talign-items: center;\n\tgap: 4px;\n\tpadding: 4px 10px;\n\tborder: 0;\n\tbackground: transparent;\n\tcolor: var(--theme-color-text-secondary, #4a5568);\n\tcursor: pointer;\n\tborder-right: 1px solid var(--theme-color-border-default, #cfd5dd);\n\ttransition: background-color 120ms ease, color 120ms ease;\n}\n.pict-theme-modetoggle-btn:last-child { border-right: 0; }\n.pict-theme-modetoggle-btn:hover {\n\tbackground: var(--theme-color-background-hover, #f0f0f0);\n\tcolor: var(--theme-color-text-primary, #1f2933);\n}\n.pict-theme-modetoggle-btn-active {\n\tbackground: var(--theme-color-brand-primary, #2563eb);\n\tcolor: var(--theme-color-text-on-brand, #ffffff);\n}\n.pict-theme-modetoggle-btn-active:hover {\n\tbackground: var(--theme-color-brand-primary-hover, #1e54cc);\n\tcolor: var(--theme-color-text-on-brand, #ffffff);\n}\n/* When the active theme is single-mode the entire group becomes\n non-interactive. The locked-out buttons (the ones the theme cannot\n switch to) get a strikethrough so the cause is unmistakable; the\n active button stays styled normally so users can still see which\n mode the theme IS using. */\n.pict-theme-modetoggle-disabled .pict-theme-modetoggle-btn {\n\tpointer-events: none;\n\tcursor: not-allowed;\n}\n.pict-theme-modetoggle-disabled .pict-theme-modetoggle-btn-lockedout {\n\topacity: 0.45;\n\ttext-decoration: line-through;\n\ttext-decoration-thickness: 1.5px;\n}\n/* Icons come from Theme-Icons.js with explicit width/height baked into\n the <svg>. We only need to nudge their vertical alignment with the\n button label. */\n.pict-theme-modetoggle .pict-theme-icon {\n\tdisplay: inline-block; vertical-align: -2px;\n}\n.pict-theme-modetoggle-label { line-height: 1; }\n.pict-theme-modetoggle-locked-note {\n\tdisplay: inline-flex;\n\talign-items: center;\n\tgap: 6px;\n\tfont-size: 11px;\n\tline-height: 1.3;\n\tcolor: var(--theme-color-text-muted, #6b6b6b);\n\tpadding: 0 2px;\n}\n.pict-theme-modetoggle-locked-icon {\n\twidth: 12px; height: 12px;\n\tflex: 0 0 12px;\n\tcolor: var(--theme-color-text-muted, #6b6b6b);\n}",CSSPriority:500};class a extends n{constructor(t,e,o){super(t,e,o),this._unsubscribeFromProvider=null}onAfterInitialize(){return this._subscribeToProvider(),super.onAfterInitialize?super.onAfterInitialize():void 0}onBeforeRender(t){return this._refreshAppData(),super.onBeforeRender?super.onBeforeRender(t):void 0}onAfterRender(t,e,o,n){return this.pict.CSSMap.injectCSS(),super.onAfterRender?super.onAfterRender(t,e,o,n):void 0}pickMode(t){let e=this._provider();if(!e)return!1;let o=e.setMode(t);if(o&&"function"==typeof this.options.OnModeChange)try{this.options.OnModeChange(t)}catch(t){}return o||this.render(),o}_subscribeToProvider(){if(this._unsubscribeFromProvider)return;let t=this._provider();if(!t||"function"!=typeof t.onApply)return;let e=this;this._unsubscribeFromProvider=t.onApply(function(){e.render()})}_provider(){let t=this.options.ProviderHash||"Theme";return this.pict&&this.pict.providers&&this.pict.providers[t]}_refreshAppData(){let t=this._provider(),e=t?t.getActiveTheme():null,o=e&&e.Mode||"light",n=!1,r=null,a=null;if(e&&e.Hash&&t&&"function"==typeof t.getTheme){let i=t.getTheme(e.Hash);n="single"===(i&&i.Modes&&i.Modes.Strategy||"single"),n&&(r=i.Modes&&i.Modes.Default||o||"light",a=i.Name||i.Hash||"this theme")}let s=this.options.Labels||i.Labels,l=!1!==this.options.ShowIcons,c=[{Mode:"light",Label:s.Light||"Light"},{Mode:"dark",Label:s.Dark||"Dark"},{Mode:"system",Label:s.System||"System"}],d=[];for(let t=0;t<c.length;t++){let e,i=c[t],s=o===i.Mode,p=n&&i.Mode!==r;if(p){e=a+" is fixed to "+(r.charAt(0).toUpperCase()+r.slice(1))+" mode — pick a different theme to switch."}else e=i.Label+" mode";d.push({Mode:i.Mode,Label:i.Label,Title:e,Active:s,LockedOut:p,IconLight:l&&"light"===i.Mode?[{}]:[],IconDark:l&&"dark"===i.Mode?[{}]:[],IconSystem:l&&"system"===i.Mode?[{}]:[]})}let p=[],h="";if(n){let t=a+" is fixed to "+(r.charAt(0).toUpperCase()+r.slice(1))+" mode";p=[{Message:t}],h=t+" — pick a different theme to switch modes."}this.pict.AppData.PictSectionTheme=this.pict.AppData.PictSectionTheme||{},this.pict.AppData.PictSectionTheme.ModeToggle={ActiveMode:o,Disabled:n,LockedToMode:r,ThemeName:a,Buttons:d,LockedNoteSlot:p,WrapTitle:h}}}a.default_configuration=i,e.exports=a},{"../Theme-Icons.js":32,"pict-view":75}],69:[function(t,e,o){const n=t("pict-view"),r=t("../Theme-Icons.js");class i extends n{constructor(t,e,o){super(t,e,o),this._unsubscribeFromProvider=null}onAfterInitialize(){return this._subscribeToProvider(),super.onAfterInitialize?super.onAfterInitialize():void 0}onBeforeRender(t){return this._refreshAppData(),super.onBeforeRender?super.onBeforeRender(t):void 0}onAfterRender(t,e,o,n){return this.pict.CSSMap.injectCSS(),super.onAfterRender?super.onAfterRender(t,e,o,n):void 0}openMenu(t){let e=this._modal();if(!e)return"undefined"!=typeof console&&console.warn&&console.warn("Theme-Picker: pict-section-modal not registered — cannot open menu."),null;let o=this._buildMenuItems(),n=this;return e.dropdown(t,{items:o,align:"left",minWidth:"260px",maxHeight:"60vh",className:"pict-theme-picker-menu",closeOnSelect:!0,onSelect:function(t){n.pick(t)}})}pick(t){let e=this._provider();if(!e)return!1;let o=e.getActiveTheme(),n=o?o.Mode:null,r=e.applyTheme(t,n);if(r&&"function"==typeof this.options.OnPick)try{this.options.OnPick(t)}catch(t){}return r}_subscribeToProvider(){if(this._unsubscribeFromProvider)return;let t=this._provider();if(!t||"function"!=typeof t.onApply)return;let e=this;this._unsubscribeFromProvider=t.onApply(function(){e.render()})}_provider(){let t=this.options.ProviderHash||"Theme";return this.pict&&this.pict.providers&&this.pict.providers[t]}_modal(){let t=this.options.ModalViewHash||"Pict-Section-Modal";return this.pict&&this.pict.views&&this.pict.views[t]}_buildMenuItems(){let t=this._provider(),e=t?t.listThemes():[],o=t?t.getActiveTheme():{Hash:null},n=o&&o.Hash||null,i=this._loadCatalog(),a={},s=[];Array.isArray(this.options.Categories)&&(s=this.options.Categories.slice());for(let t=0;t<i.length;t++){let e=i[t],o=e.Category||"Other";a[e.Hash]=o,s.indexOf(o)<0&&s.push(o)}let l={};for(let t=0;t<e.length;t++){let o=e[t],n=a[o.Hash]||"Other";l[n]||(l[n]=[],s.indexOf(n)<0&&s.push(n)),l[n].push(o)}let c=!1!==this.options.ShowModeIcons,d=[];for(let t=0;t<s.length;t++){let e=s[t];if(l[e]&&0!==l[e].length){d.push({Header:e});for(let t=0;t<l[e].length;t++){let o=l[e][t],i=c?r.iconForTheme(o.Strategy,o.DefaultMode,14):"";d.push({Hash:o.Hash,Label:o.Name||o.Hash,Icon:i,Style:o.Hash===n?"active":null,Tooltip:this._capabilityLabel(o)})}}}return d}_capabilityLabel(t){if("single"===(t.Strategy||"single")){let e=t.DefaultMode||"light";return(t.Name||t.Hash)+" — "+("dark"===e?"dark only":"light only")}return(t.Name||t.Hash)+" — light + dark"}_refreshAppData(){let t=this._provider(),e=t?t.listThemes():[],o=t?t.getActiveTheme():{Hash:null},n=o&&o.Hash||null,i=null;for(let t=0;t<e.length;t++)if(e[t].Hash===n){i=e[t];break}let a=[];!1!==this.options.ShowModeIcons&&i&&(a=[{IconHTML:r.iconForTheme(i.Strategy,i.DefaultMode,14)}]),this.pict.AppData.PictSectionTheme=this.pict.AppData.PictSectionTheme||{},this.pict.AppData.PictSectionTheme.Picker={ActiveHash:n,ActiveLabel:i?i.Name||i.Hash:"Choose a theme",TriggerTooltip:i?this._capabilityLabel(i)+" — click to change":"Choose a theme",TriggerGlyphSlot:a,ChevronHTML:r.iconChevronDown(10)},this.pict.AppData.PictSectionTheme.AllThemes=e}_loadCatalog(){try{return t("../themes/_catalog.js")}catch(t){return[]}}}i.default_configuration={ViewIdentifier:"Theme-Picker",AutoInitialize:!0,AutoRender:!1,DefaultDestinationAddress:"#Theme-Picker",DefaultRenderable:"Theme-Picker-Renderable",ProviderHash:"Theme",ModalViewHash:"Pict-Section-Modal",Categories:null,ShowModeIcons:!0,Templates:[{Hash:"Theme-Picker-Template",Template:'\n<button type="button" class="pict-theme-picker"\n title="{~D:AppData.PictSectionTheme.Picker.TriggerTooltip~}"\n onclick="_Pict.views[\'Theme-Picker\'].openMenu(this);">\n\t{~TS:Theme-Picker-Trigger-Glyph:AppData.PictSectionTheme.Picker.TriggerGlyphSlot~}\n\t<span class="pict-theme-picker-name">{~D:AppData.PictSectionTheme.Picker.ActiveLabel~}</span>\n\t<span class="pict-theme-picker-chevron">{~D:AppData.PictSectionTheme.Picker.ChevronHTML~}</span>\n</button>'},{Hash:"Theme-Picker-Trigger-Glyph",Template:'<span class="pict-theme-picker-trigger-glyph">{~D:Record.IconHTML~}</span>'}],Renderables:[{RenderableHash:"Theme-Picker-Renderable",TemplateHash:"Theme-Picker-Template",ContentDestinationAddress:"#Theme-Picker",RenderMethod:"replace"}],CSS:"\n.pict-theme-picker {\n\tdisplay: inline-flex;\n\talign-items: center;\n\tgap: 8px;\n\tmin-width: 200px;\n\tmax-width: 100%;\n\tpadding: 6px 10px;\n\tborder-radius: 6px;\n\tfont: inherit;\n\tfont-size: 13px;\n\tbackground: var(--theme-color-background-secondary, #fbfbfc);\n\tcolor: var(--theme-color-text-primary, #1f2933);\n\tborder: 1px solid var(--theme-color-border-default, #cfd5dd);\n\tcursor: pointer;\n\ttext-align: left;\n\ttransition: border-color 120ms ease, box-shadow 120ms ease;\n}\n.pict-theme-picker:hover { border-color: var(--theme-color-text-muted, #6b6b6b); }\n.pict-theme-picker:focus, .pict-theme-picker:focus-visible {\n\toutline: none;\n\tborder-color: var(--theme-color-brand-primary, #2563eb);\n\tbox-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);\n}\n.pict-theme-picker .pict-theme-picker-name {\n\tflex: 1;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n}\n.pict-theme-picker .pict-theme-picker-chevron {\n\tcolor: var(--theme-color-text-muted, #6b6b6b);\n\tdisplay: inline-flex;\n\talign-items: center;\n}\n.pict-theme-picker-trigger-glyph {\n\tdisplay: inline-flex; align-items: center;\n\tcolor: var(--theme-color-text-muted, #6b6b6b);\n}\n\n/* Skin the modal-dropdown items with cleaner spacing for our glyphs. */\n.pict-theme-picker-menu .pict-modal-dropdown-item-icon {\n\twidth: 28px;\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: flex-start;\n\tcolor: var(--theme-color-text-muted, #6b6b6b);\n}\n.pict-theme-picker-menu .pict-modal-dropdown-item--active {\n\tbackground: var(--theme-color-background-selected, #e0eaff);\n\tcolor: var(--theme-color-brand-primary, #2563eb);\n}\n.pict-theme-picker-menu .pict-modal-dropdown-item--active .pict-modal-dropdown-item-icon {\n\tcolor: var(--theme-color-brand-primary, #2563eb);\n}",CSSPriority:500},i.APPDATA_ADDRESS="PictSectionTheme.Picker",e.exports=i},{"../Theme-Icons.js":32,"../themes/_catalog.js":38,"pict-view":75}],70:[function(t,e,o){const n=t("pict-view"),r=t("../Theme-Scale.js");class i extends n{constructor(t,e,o){super(t,e,o),this._unsubscribeFromScale=null}onAfterInitialize(){return this._subscribeToScale(),super.onAfterInitialize?super.onAfterInitialize():void 0}onBeforeRender(t){return this._refreshAppData(),super.onBeforeRender?super.onBeforeRender(t):void 0}onAfterRender(t,e,o,n){return this.pict.CSSMap.injectCSS(),super.onAfterRender?super.onAfterRender(t,e,o,n):void 0}pickScale(t){let e=r.applyScale(t);if("function"==typeof this.options.OnScaleChange)try{this.options.OnScaleChange(e)}catch(t){}return e}_subscribeToScale(){if(this._unsubscribeFromScale)return;let t=this;this._unsubscribeFromScale=r.onChange(function(){t.render()})}_refreshAppData(){let t=Array.isArray(this.options.Presets)?this.options.Presets:r.PRESETS,e=r.getActive(),o=0,n=1/0;for(let r=0;r<t.length;r++){let i=Math.abs(t[r].Value-e);i<n&&(n=i,o=r)}let i=[];for(let e=0;e<t.length;e++){let n=t[e];i.push({Value:n.Value,Label:n.Label,Selected:e===o})}let a="Viewport scale — currently "+Math.round(100*e)+"%";this.pict.AppData.PictSectionTheme=this.pict.AppData.PictSectionTheme||{},this.pict.AppData.PictSectionTheme.ScaleSelect={ActiveScale:e,Tooltip:a,Options:i}}}i.default_configuration={ViewIdentifier:"Theme-ScaleSelect",AutoInitialize:!0,AutoRender:!1,DefaultDestinationAddress:"#Theme-ScaleSelect",DefaultRenderable:"Theme-ScaleSelect-Renderable",Presets:null,Templates:[{Hash:"Theme-ScaleSelect-Template",Template:'\n<select class="pict-theme-scaleselect"\n title="{~D:AppData.PictSectionTheme.ScaleSelect.Tooltip~}"\n onchange="_Pict.views[\'Theme-ScaleSelect\'].pickScale(parseFloat(this.value));">\n\t{~TS:Theme-ScaleSelect-Option-Template:AppData.PictSectionTheme.ScaleSelect.Options~}\n</select>'},{Hash:"Theme-ScaleSelect-Option-Template",Template:'\n<option value="{~D:Record.Value~}"{~NE:Record.Selected^ selected~}>{~D:Record.Label~}</option>'}],Renderables:[{RenderableHash:"Theme-ScaleSelect-Renderable",TemplateHash:"Theme-ScaleSelect-Template",ContentDestinationAddress:"#Theme-ScaleSelect",RenderMethod:"replace"}],CSS:"\n.pict-theme-scaleselect {\n\tmin-width: 180px;\n\tpadding: 6px 10px;\n\tborder-radius: 6px;\n\tfont: inherit;\n\tfont-size: 13px;\n\tbackground: var(--theme-color-background-secondary, #fbfbfc);\n\tcolor: var(--theme-color-text-primary, #1f2933);\n\tborder: 1px solid var(--theme-color-border-default, #cfd5dd);\n\tcursor: pointer;\n}\n.pict-theme-scaleselect:focus {\n\toutline: none;\n\tborder-color: var(--theme-color-brand-primary, #2563eb);\n\tbox-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);\n}",CSSPriority:500},e.exports=i},{"../Theme-Scale.js":34,"pict-view":75}],71:[function(t,e,o){const n=t("pict-view");e.exports=class extends n{constructor(t,e,o){super(t,e,o)}onAfterRender(t,e,o,n){if(this.pict.CSSMap.injectCSS(),"undefined"!=typeof document&&this.options.Height){let t=document.querySelector(".pict-theme-topbar");t&&(t.style.minHeight=this.options.Height+"px")}if(this._applyCompactBreakpoint(),"undefined"!=typeof document&&this.options.NavAlign){let t={left:"flex-start",right:"flex-end",center:"center"}[this.options.NavAlign];if(t){let e=document.querySelector(".pict-theme-topbar-nav");e&&(e.style.justifyContent=t)}}if(!1!==this.options.MountBrandMark){let t=this.pict.views["Theme-Brand-Mark"];t&&t.render()}if(this.options.NavView){let t=this.pict.views[this.options.NavView];t?t.render():this.log&&this.log.warn&&this.log.warn('Theme-TopBar: NavView "'+this.options.NavView+'" not registered')}if(this.options.UserView){let t=this.pict.views[this.options.UserView];t?t.render():this.log&&this.log.warn&&this.log.warn('Theme-TopBar: UserView "'+this.options.UserView+'" not registered')}if(!1!==this.options.MountThemeButton){let t=this.pict.views["Theme-Button"];t&&t.render()}return super.onAfterRender?super.onAfterRender(t,e,o,n):void 0}setNavView(t){this.options.NavView=t||null,this._mountSlot("#Theme-TopBar-Nav",this.options.NavView)}setUserView(t){this.options.UserView=t||null,this._mountSlot("#Theme-TopBar-User",this.options.UserView)}_mountSlot(t,e){if("undefined"!=typeof document){let e=document.querySelector(t);e&&(e.innerHTML="")}if(!e)return;let o=this.pict.views[e];o?o.render():this.log&&this.log.warn&&this.log.warn('Theme-TopBar: view "'+e+'" not registered')}_applyCompactBreakpoint(){if("undefined"==typeof document)return;let t=this.options.CompactBreakpoint;if(null==t)return;if(900===t)return;let e="pict-theme-topbar-compact-"+this.UUID,o=document.getElementById(e);o||(o=document.createElement("style"),o.id=e,document.head.appendChild(o)),o.textContent="number"!=typeof t||t<=0?".pict-theme-topbar-nav { display: flex !important; }\n.pict-theme-topbar-user-slot { display: flex !important; }\n.pict-theme-topbar-burger { display: none !important; }\n.pict-theme-topbar-user { margin-left: 0 !important; }\n":"@media (max-width: "+t+"px) {\n\t.pict-theme-topbar-nav { display: none !important; }\n\t.pict-theme-topbar-user-slot { display: none !important; }\n\t.pict-theme-topbar-burger { display: inline-flex !important; }\n\t.pict-theme-topbar-user { margin-left: auto !important; }\n}\n@media (min-width: "+(t+1)+"px) {\n\t.pict-theme-topbar-nav { display: flex !important; }\n\t.pict-theme-topbar-user-slot { display: flex !important; }\n\t.pict-theme-topbar-burger { display: none !important; }\n\t.pict-theme-topbar-user { margin-left: 0 !important; }\n}\n"}openBurgerMenu(){if("undefined"==typeof document)return null;let t=this.pict.views["Pict-Section-Modal"];if(!t||"function"!=typeof t.show)return"undefined"!=typeof console&&console.warn&&console.warn("Theme-TopBar: pict-section-modal not registered — burger menu unavailable."),null;let e=[],o=document.querySelector("#Theme-TopBar-Nav"),n=document.querySelector("#Theme-TopBar-User");o&&o.innerHTML.trim()&&e.push('<div class="pict-theme-burger-menu-section">'+o.innerHTML+"</div>"),n&&n.innerHTML.trim()&&e.push('<div class="pict-theme-burger-menu-section">'+n.innerHTML+"</div>"),0===e.length&&e.push('<div class="pict-theme-burger-menu-empty">No menu items configured.</div>');let r='<div class="pict-theme-burger-menu">'+e.join("")+"</div>";return t.show({title:"Menu",content:r,width:"280px",closeable:!0,buttons:[]})}},e.exports.default_configuration={ViewIdentifier:"Theme-TopBar",AutoInitialize:!0,AutoRender:!1,DefaultDestinationAddress:"#Theme-TopBar",DefaultRenderable:"Theme-TopBar-Renderable",MountBrandMark:!0,MountThemeButton:!0,NavView:null,UserView:null,Height:56,NavAlign:"right",CompactBreakpoint:900,Templates:[{Hash:"Theme-TopBar-Template",Template:'\n<div class="pict-theme-topbar">\n\t<div class="pict-theme-topbar-mark"><div id="Theme-Brand-Mark"></div></div>\n\t<div class="pict-theme-topbar-nav" id="Theme-TopBar-Nav"></div>\n\t<div class="pict-theme-topbar-user">\n\t\t<div class="pict-theme-topbar-user-slot" id="Theme-TopBar-User"></div>\n\t\t<div class="pict-theme-topbar-user-button"><div id="Theme-Button"></div></div>\n\t\t<button type="button" class="pict-theme-topbar-burger"\n\t\t\taria-label="More navigation"\n\t\t\ttitle="Menu"\n\t\t\tonclick="_Pict.views[\'Theme-TopBar\'].openBurgerMenu();">\n\t\t\t<svg width="20" height="20" viewBox="0 0 24 24" fill="none"\n\t\t\t\tstroke="currentColor" stroke-width="2"\n\t\t\t\tstroke-linecap="round" stroke-linejoin="round"\n\t\t\t\taria-hidden="true">\n\t\t\t\t<path d="M3 6h18M3 12h18M3 18h18"/>\n\t\t\t</svg>\n\t\t</button>\n\t</div>\n</div>'}],Renderables:[{RenderableHash:"Theme-TopBar-Renderable",TemplateHash:"Theme-TopBar-Template",ContentDestinationAddress:"#Theme-TopBar",RenderMethod:"replace"}],CSS:'\n.pict-theme-topbar {\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 14px;\n\t/* The min-height is rewritten per-instance in onAfterRender from the\n\t Height option (default 56). Avoids the percent-height resolution\n\t trap: pict-section-modal\'s panel destination uses min-height: 100%\n\t on its inner div, which means a child\'s height: 100% / min-height:\n\t 100% resolves against the parent\'s *property* (auto), not its\n\t resolved size — and collapses the row to its content. A fixed px\n\t value gives align-items: center real space to centre into. */\n\tmin-height: 56px;\n\tpadding: 0 14px;\n\tbox-sizing: border-box;\n\tbackground: var(--theme-color-background-panel, transparent);\n\t/* Brand stripes are drawn by .pict-theme-topbar::after as an absolute\n\t element overlaying the bottom 5px of the row. Using ::after rather\n\t than border-bottom + box-shadow lets us put a transparent gap\n\t between the two stripes (border / box-shadow can\'t draw gaps).\n\t Position relative so the ::after positions to this row. */\n\tposition: relative;\n}\n/* Two-stripe brand identifier at the bottom of the topbar:\n 4px brand-primary (thicker — the dominant identifier)\n 2px transparent gap (clearly readable separation)\n 3px brand-secondary (thinner than primary but still substantial)\n Earlier iterations used 1–2px stripes; both read clearly at light\n mode but dark-mode secondary colors are often desaturated (lifted)\n so the eye can miss a thin band against a dark background. The\n current sizes push the secondary above the perception threshold\n regardless of palette. Stripes overlay the bottom 9px of the row;\n content (which centres in the full row via align-items: center)\n keeps its visual position. */\n.pict-theme-topbar::after {\n\tcontent: \'\';\n\tposition: absolute;\n\tleft: 0;\n\tright: 0;\n\tbottom: 0;\n\theight: 9px;\n\tpointer-events: none;\n\tbackground: linear-gradient(\n\t\tto bottom,\n\t\tvar(--brand-color-primary-mode, var(--theme-color-brand-primary, #2563eb)) 0,\n\t\tvar(--brand-color-primary-mode, var(--theme-color-brand-primary, #2563eb)) 4px,\n\t\ttransparent 4px,\n\t\ttransparent 6px,\n\t\tvar(--brand-color-secondary-mode, var(--theme-color-brand-secondary, transparent)) 6px,\n\t\tvar(--brand-color-secondary-mode, var(--theme-color-brand-secondary, transparent)) 9px\n\t);\n}\n.pict-theme-topbar-mark {\n\tflex: 0 0 auto;\n\tdisplay: flex;\n\talign-items: center;\n}\n.pict-theme-topbar-nav {\n\tflex: 1 1 auto;\n\tdisplay: flex;\n\talign-items: center;\n\t/* Default to right-aligning nav items inside the stretched slot —\n\t the convention retold-* apps converged on. Overridden per-instance\n\t from the NavAlign option in onAfterRender. */\n\tjustify-content: flex-end;\n\tgap: 8px;\n\tmin-width: 0;\n\t/* Horizontally scrollable when the nav overflows (narrow viewports\n\t with many buttons) — better than overflow:hidden which would\n\t silently clip buttons offscreen. The vertical axis stays clipped\n\t so a tall accidental child doesn\'t blow up the row height. A\n\t proper overflow menu is a future enhancement; this gets us safe\n\t degradation today. */\n\toverflow-x: auto;\n\toverflow-y: hidden;\n\t/* Hide the scrollbar by default; modern browsers pick up the\n\t trackpad scroll without it. Apps wanting a visible scrollbar\n\t can override at higher specificity. */\n\tscrollbar-width: none;\n}\n.pict-theme-topbar-nav::-webkit-scrollbar { display: none; }\n/* Active-route indicator. The convention every host app should follow:\n put aria-current="page" on the button (or anchor) representing the\n current route. The W3C-standard attribute reads correctly to screen\n readers and gets a brand-tinted highlight here. Apps that already\n ship their own active styling can override these rules — they\'re\n keyed off attribute selectors so no class collision is possible. */\n.pict-theme-topbar-nav [aria-current="page"],\n.pict-theme-topbar-user [aria-current="page"] {\n\tcolor: var(--brand-color-primary-mode, var(--theme-color-brand-primary, #2563eb));\n\tborder-color: var(--brand-color-primary-mode, var(--theme-color-brand-primary, #2563eb));\n\tbackground: var(--theme-color-background-hover, rgba(37, 99, 235, 0.08));\n}\n.pict-theme-topbar-user {\n\tflex: 0 0 auto;\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 8px;\n}\n.pict-theme-topbar-user-slot {\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 8px;\n}\n.pict-theme-topbar-user-button {\n\tdisplay: flex;\n\talign-items: center;\n}\n/* Burger button — hidden by default; the media query (or the inline\n per-instance JS that swaps it via CompactBreakpoint) shows it once\n the viewport drops below the host\'s compact threshold. Sized to\n match Theme-Button (28×28) so the row\'s rhythm is preserved. */\n.pict-theme-topbar-burger {\n\tdisplay: none;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 28px;\n\theight: 28px;\n\tpadding: 0;\n\tborder-radius: 6px;\n\tborder: 1px solid var(--theme-color-border-default, #cfd5dd);\n\tbackground: var(--theme-color-background-secondary, #fbfbfc);\n\tcolor: var(--theme-color-text-secondary, #4a5568);\n\tcursor: pointer;\n\ttransition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;\n}\n.pict-theme-topbar-burger:hover {\n\tbackground: var(--theme-color-background-hover, #f0f0f0);\n\tcolor: var(--brand-color-primary-mode, var(--theme-color-brand-primary, #2563eb));\n\tborder-color: var(--brand-color-primary-mode, var(--theme-color-brand-primary, #2563eb));\n}\n/* Burger menu popup — applied to the cloned nav + user DOM inside\n pict-section-modal. The cloned children inherit their original\n styling (action buttons, badges, etc.) so the popup looks visually\n consistent with what was on the topbar. */\n.pict-theme-burger-menu {\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 6px;\n}\n.pict-theme-burger-menu-section {\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 6px;\n}\n/* Cloned children render as a vertical stack inside the popup — flip\n the horizontal flex layouts to column so each button takes a full\n row instead of cramming side-by-side at narrow width. */\n.pict-theme-burger-menu .rm-topbar-nav,\n.pict-theme-burger-menu .rm-topbar-user,\n.pict-theme-burger-menu [class*="-topbar-nav"],\n.pict-theme-burger-menu [class*="-topbar-user"] {\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: stretch;\n\tgap: 6px;\n}\n.pict-theme-burger-menu button { width: 100%; text-align: left; }\n.pict-theme-burger-menu .rm-topbar-nav-divider,\n.pict-theme-burger-menu [class*="divider"] { display: none; }\n/* Compact mode — defaults to a 900px breakpoint. The onAfterRender\n handler injects a per-instance <style> rule when the host passes a\n different CompactBreakpoint, so this @media block is the fallback\n for hosts that accept the default. */\n@media (max-width: 900px) {\n\t.pict-theme-topbar-nav { display: none !important; }\n\t.pict-theme-topbar-user-slot { display: none !important; }\n\t.pict-theme-topbar-burger { display: inline-flex; }\n\t/* In wide mode the flex-1 nav slot pushes the user-area to the\n\t right edge. With the nav hidden the user-area would collapse\n\t left of the now-empty middle; the auto-margin re-creates the\n\t "push right" effect so the theme button + burger stay flush\n\t against the right edge of the topbar. */\n\t.pict-theme-topbar-user { margin-left: auto; }\n}',CSSPriority:500}},{"pict-view":75}],72:[function(t,e,o){e.exports={name:"pict-template",version:"1.0.15",description:"Pict Template Base Class",main:"source/Pict-Template.js",scripts:{start:"node source/Pict-Template.js",test:"npx quack test",tests:"npx quack test -g",coverage:"npx quack coverage",build:"npx quack build",types:"tsc -p ."},types:"types/source/Pict-Template.d.ts",repository:{type:"git",url:"git+https://github.com/stevenvelozo/pict-view.git"},author:"steven velozo <steven@velozo.com>",license:"MIT",bugs:{url:"https://github.com/stevenvelozo/pict-view/issues"},homepage:"https://github.com/stevenvelozo/pict-view#readme",devDependencies:{pict:"^1.0.348",quackage:"^1.0.58",typescript:"^5.9.3"},mocha:{diff:!0,extension:["js"],package:"./package.json",reporter:"spec",slow:"75",timeout:"5000",ui:"tdd","watch-files":["source/**/*.js","test/**/*.js"],"watch-ignore":["lib/vendor"]},dependencies:{"fable-serviceproviderbase":"^3.0.19"}}},{}],73:[function(t,e,o){const n=t("fable-serviceproviderbase"),r=t("../package.json");e.exports=class extends n{constructor(t,e,o){super(t,e,o),this.fable,this.pict=this.fable,this.serviceType="PictTemplate",this._Package=r}render(t,e,o,n,r){return""}renderAsync(t,e,o,n,r,i){return o(null,this.render(t,e,n,r,i))}addPattern(t,e){return this.pict.MetaTemplate.addPatternBoth(t,e,this.render,this.renderAsync,this)}resolveStateFromAddress(t,e,o,n,r,i){return this.pict.resolveStateFromAddress(t,e,o,n,r,i)}},e.exports.template_hash="Default"},{"../package.json":72,"fable-serviceproviderbase":2}],74:[function(t,e,o){e.exports={name:"pict-view",version:"1.0.68",description:"Pict View Base Class",main:"source/Pict-View.js",scripts:{test:"npx quack test",tests:"npx quack test -g",start:"node source/Pict-View.js",coverage:"npx quack coverage",build:"npx quack build","docker-dev-build":"docker build ./ -f Dockerfile_LUXURYCode -t pict-view-image:local","docker-dev-run":'docker run -it -d --name pict-view-dev -p 30001:8080 -p 38086:8086 -v "$PWD/.config:/home/coder/.config" -v "$PWD:/home/coder/pict-view" -u "$(id -u):$(id -g)" -e "DOCKER_USER=$USER" pict-view-image:local',"docker-dev-shell":"docker exec -it pict-view-dev /bin/bash",types:"tsc -p .",lint:"eslint source/**"},types:"types/source/Pict-View.d.ts",repository:{type:"git",url:"git+https://github.com/stevenvelozo/pict-view.git"},author:"steven velozo <steven@velozo.com>",license:"MIT",bugs:{url:"https://github.com/stevenvelozo/pict-view/issues"},homepage:"https://github.com/stevenvelozo/pict-view#readme",devDependencies:{"@eslint/js":"^9.39.1","browser-env":"^3.3.0",eslint:"^9.39.1",pict:"^1.0.363",quackage:"^1.0.65",typescript:"^5.9.3"},mocha:{diff:!0,extension:["js"],package:"./package.json",reporter:"spec",slow:"75",timeout:"5000",ui:"tdd","watch-files":["source/**/*.js","test/**/*.js"],"watch-ignore":["lib/vendor"]},dependencies:{fable:"^3.1.67","fable-serviceproviderbase":"^3.0.19"}}},{}],75:[function(t,e,o){const n=t("fable-serviceproviderbase"),r=t("../package.json"),i={DefaultRenderable:!1,DefaultDestinationAddress:!1,DefaultTemplateRecordAddress:!1,ViewIdentifier:!1,AutoInitialize:!0,AutoInitializeOrdinal:0,AutoRender:!0,AutoRenderOrdinal:0,AutoSolveWithApp:!0,AutoSolveOrdinal:0,CSSHash:!1,CSS:!1,CSSProvider:!1,CSSPriority:500,Templates:[],DefaultTemplates:[],Renderables:[],Manifests:{}};e.exports=class extends n{constructor(t,e,o){super(t,Object.assign({},JSON.parse(JSON.stringify(i)),e),o),this.fable,this.options,this.UUID,this.Hash,this.log;const n=this.Hash===this.UUID;this.UUID="V-".concat(this.UUID),n&&(this.Hash=this.UUID),this.options.ViewIdentifier||(this.options.ViewIdentifier="AutoViewID-".concat(this.fable.getUUID())),this.serviceType="PictView",this._Package=r,this.pict=this.fable,this.AppData=this.pict.AppData,this.Bundle=this.pict.Bundle,this.initializeTimestamp=!1,this.lastSolvedTimestamp=!1,this.lastRenderedTimestamp=!1,this.lastMarshalFromViewTimestamp=!1,this.lastMarshalToViewTimestamp=!1,this.pict.instantiateServiceProviderIfNotExists("TransactionTracking");for(let t=0;t<this.options.Templates.length;t++){let e=this.options.Templates[t];"Hash"in e&&"Template"in e?(e.Source||(e.Source="PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," options object.")),this.pict.TemplateProvider.addTemplate(e.Hash,e.Template,e.Source)):this.log.error("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," could not load Template ").concat(t," in the options array."),e)}for(let t=0;t<this.options.DefaultTemplates.length;t++){let e=this.options.DefaultTemplates[t];"Postfix"in e&&"Template"in e?(e.Source||(e.Source="PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," options object.")),this.pict.TemplateProvider.addDefaultTemplate(e.Prefix,e.Postfix,e.Template,e.Source)):this.log.error("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," could not load Default Template ").concat(t," in the options array."),e)}if(this.options.CSS){let t=this.options.CSSHash?this.options.CSSHash:"View-".concat(this.options.ViewIdentifier),e=this.options.CSSProvider?this.options.CSSProvider:t;this.pict.CSSMap.addCSS(t,this.options.CSS,e,this.options.CSSPriority)}this.renderables={};for(let t=0;t<this.options.Renderables.length;t++){let e=this.options.Renderables[t];this.addRenderable(e)}}addRenderable(t,e,o,n,r){let i;if("object"==typeof t)i=t;else{i={RenderableHash:t,TemplateHash:e,DefaultTemplateRecordAddress:o,ContentDestinationAddress:n,RenderMethod:"string"!=typeof r?r:"replace"}}"string"!=typeof i.RenderableHash||"string"!=typeof i.TemplateHash?this.log.error("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," could not load Renderable; RenderableHash or TemplateHash are invalid."),i):(this.pict.LogNoisiness>0&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," adding renderable [").concat(i.RenderableHash,"] pointed to template ").concat(i.TemplateHash,".")),this.renderables[i.RenderableHash]=i)}onBeforeInitialize(){return this.pict.LogNoisiness>3&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," onBeforeInitialize:")),!0}onBeforeInitializeAsync(t){return this.onBeforeInitialize(),t()}onInitialize(){return this.pict.LogNoisiness>3&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," onInitialize:")),!0}onInitializeAsync(t){return this.onInitialize(),t()}initialize(){return this.pict.LogControlFlow&&this.log.trace("PICT-ControlFlow VIEW [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," initialize:")),this.initializeTimestamp?(this.log.warn("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," initialize called but initialization is already completed. Aborting.")),!1):(this.onBeforeInitialize(),this.onInitialize(),this.onAfterInitialize(),this.initializeTimestamp=this.pict.log.getTimeStamp(),!0)}initializeAsync(t){if(this.pict.LogControlFlow&&this.log.trace("PICT-ControlFlow VIEW [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," initializeAsync:")),this.initializeTimestamp)return this.log.warn("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," async initialize called but initialization is already completed. Aborting.")),t();{let e=this.pict.instantiateServiceProviderWithoutRegistration("Anticipate");this.pict.LogNoisiness>0&&this.log.info("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," beginning initialization...")),e.anticipate(this.onBeforeInitializeAsync.bind(this)),e.anticipate(this.onInitializeAsync.bind(this)),e.anticipate(this.onAfterInitializeAsync.bind(this)),e.wait(e=>(e&&this.log.error("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," initialization failed: ").concat(e.message||e),{stack:e.stack}),this.initializeTimestamp=this.pict.log.getTimeStamp(),this.pict.LogNoisiness>0&&this.log.info("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," initialization complete.")),t()))}}onAfterInitialize(){return this.pict.LogNoisiness>3&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," onAfterInitialize:")),!0}onAfterInitializeAsync(t){return this.onAfterInitialize(),t()}onBeforeRender(t){return this.pict.LogNoisiness>3&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," onBeforeRender:")),!0}onBeforeRenderAsync(t,e){return this.onBeforeRender(e),t()}onBeforeProject(t){return this.pict.LogNoisiness>3&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," onBeforeProject:")),!0}onBeforeProjectAsync(t,e){return this.onBeforeProject(e),t()}buildRenderOptions(t,e,o){let n={Valid:!0};return n.RenderableHash="string"==typeof t?t:"string"==typeof this.options.DefaultRenderable&&this.options.DefaultRenderable,n.RenderableHash||(this.log.error("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," could not find a suitable RenderableHash ").concat(n.RenderableHash," (param ").concat(t,"because it is not a valid renderable.")),n.Valid=!1),n.Renderable=this.renderables[n.RenderableHash],n.Renderable||(this.log.error("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," could not render ").concat(n.RenderableHash," (param ").concat(t,") because it does not exist.")),n.Valid=!1),n.DestinationAddress="string"==typeof e?e:"string"==typeof n.Renderable.ContentDestinationAddress?n.Renderable.ContentDestinationAddress:"string"==typeof this.options.DefaultDestinationAddress&&this.options.DefaultDestinationAddress,n.DestinationAddress||(this.log.error("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," could not render ").concat(n.RenderableHash," (param ").concat(t,") because it does not have a valid destination address (param ").concat(e,").")),n.Valid=!1),"object"==typeof o?(n.RecordAddress="Passed in as object",n.Record=o):(n.RecordAddress="string"==typeof o?o:"string"==typeof n.Renderable.DefaultTemplateRecordAddress?n.Renderable.DefaultTemplateRecordAddress:"string"==typeof this.options.DefaultTemplateRecordAddress&&this.options.DefaultTemplateRecordAddress,n.Record="string"==typeof n.RecordAddress?this.pict.DataProvider.getDataByAddress(n.RecordAddress):void 0),n}assignRenderContent(t,e,o){return this.pict.ContentAssignment.projectContent(t.RenderMethod,e,o,t.TestAddress)}render(t,e,o,n){return this.renderWithScope(this,t,e,o,n)}renderWithScope(t,e,o,n,r){let i,a,s,l="string"==typeof e?e:"string"==typeof this.options.DefaultRenderable&&this.options.DefaultRenderable;return l?("__Virtual"==l?i={RenderableHash:"__Virtual",TemplateHash:this.renderables[this.options.DefaultRenderable].TemplateHash,ContentDestinationAddress:"string"==typeof o?o:"string"==typeof i.ContentDestinationAddress?i.ContentDestinationAddress:"string"==typeof this.options.DefaultDestinationAddress?this.options.DefaultDestinationAddress:null,RenderMethod:"virtual-assignment",TransactionHash:r&&r.TransactionHash,RootRenderableViewHash:r&&r.RootRenderableViewHash}:(i=Object.assign({},this.renderables[l]),i.ContentDestinationAddress="string"==typeof o?o:"string"==typeof i.ContentDestinationAddress?i.ContentDestinationAddress:"string"==typeof this.options.DefaultDestinationAddress?this.options.DefaultDestinationAddress:null),i.TransactionHash||(i.TransactionHash="ViewRender-V-".concat(this.options.ViewIdentifier,"-R-").concat(l,"-U-").concat(this.pict.getUUID()),i.RootRenderableViewHash=this.Hash,this.pict.TransactionTracking.registerTransaction(i.TransactionHash)),i?i.ContentDestinationAddress?("object"==typeof n?(s=n,a="Passed in as object"):(a="string"==typeof n?n:"string"==typeof i.DefaultTemplateRecordAddress?i.DefaultTemplateRecordAddress:"string"==typeof this.options.DefaultTemplateRecordAddress&&this.options.DefaultTemplateRecordAddress,s="string"==typeof a?this.pict.DataProvider.getDataByAddress(a):void 0),this.onBeforeRender(i),this.pict.LogControlFlow&&this.log.trace("PICT-ControlFlow VIEW [".concat(this.UUID,"]::[").concat(this.Hash,"] Renderable[").concat(l,"] Destination[").concat(i.ContentDestinationAddress,"] TemplateRecordAddress[").concat(a,"] render:")),this.pict.LogNoisiness>0&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," Beginning Render of Renderable[").concat(l,"] to Destination [").concat(i.ContentDestinationAddress,"]...")),i.Content=this.pict.parseTemplateByHash(i.TemplateHash,s,null,[this],t,{RootRenderable:"object"==typeof r?r:i}),this.pict.LogNoisiness>0&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," Assigning Renderable[").concat(l,"] content length ").concat(i.Content.length," to Destination [").concat(i.ContentDestinationAddress,"] using render method [").concat(i.RenderMethod,"].")),this.onBeforeProject(i),this.onProject(i),"virtual-assignment"!==i.RenderMethod&&(this.onAfterProject(i),this.onAfterRender(i)),!0):(this.log.error("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," could not render ").concat(l," (param ").concat(e,") because it does not have a valid destination address.")),!1):(this.log.error("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," could not render ").concat(l," (param ").concat(e,") because it does not exist.")),!1)):(this.log.error("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," could not render ").concat(l," (param ").concat(e,") because it is not a valid renderable.")),!1)}renderAsync(t,e,o,n,r){return this.renderWithScopeAsync(this,t,e,o,n,r)}renderWithScopeAsync(t,e,o,n,r,i){let a,s,l,c="string"==typeof e?e:"string"==typeof this.options.DefaultRenderable&&this.options.DefaultRenderable,d="function"==typeof i?i:"function"==typeof n?n:"function"==typeof o?o:"function"==typeof e?e:"function"==typeof r?r:null;if(d||(this.log.warn("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," renderAsync was called without a valid callback. A callback will be generated but this could lead to race conditions.")),d=t=>{t&&this.log.error("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," renderAsync Auto Callback Error: ").concat(t),t)}),!c)return this.log.error("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," could not asynchronously render ").concat(c," (param ").concat(e,"because it is not a valid renderable.")),d(new Error("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," could not asynchronously render ").concat(c," (param ").concat(e,"because it is not a valid renderable.")));if("__Virtual"==c?a={RenderableHash:"__Virtual",TemplateHash:this.renderables[this.options.DefaultRenderable].TemplateHash,ContentDestinationAddress:"string"==typeof o?o:"string"==typeof this.options.DefaultDestinationAddress?this.options.DefaultDestinationAddress:null,RenderMethod:"virtual-assignment",TransactionHash:r&&"function"!=typeof r&&r.TransactionHash,RootRenderableViewHash:r&&"function"!=typeof r&&r.RootRenderableViewHash}:(a=Object.assign({},this.renderables[c]),a.ContentDestinationAddress="string"==typeof o?o:"string"==typeof a.ContentDestinationAddress?a.ContentDestinationAddress:"string"==typeof this.options.DefaultDestinationAddress?this.options.DefaultDestinationAddress:null),a.TransactionHash||(a.TransactionHash="ViewRender-V-".concat(this.options.ViewIdentifier,"-R-").concat(c,"-U-").concat(this.pict.getUUID()),a.RootRenderableViewHash=this.Hash,this.pict.TransactionTracking.registerTransaction(a.TransactionHash)),!a)return this.log.error("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," could not render ").concat(c," (param ").concat(e,") because it does not exist.")),d(new Error("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," could not render ").concat(c," (param ").concat(e,") because it does not exist.")));if(!a.ContentDestinationAddress)return this.log.error("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," could not render ").concat(c," (param ").concat(e,") because it does not have a valid destination address.")),d(new Error("Could not render ".concat(c)));"object"==typeof n?(l=n,s="Passed in as object"):(s="string"==typeof n?n:"string"==typeof a.DefaultTemplateRecordAddress?a.DefaultTemplateRecordAddress:"string"==typeof this.options.DefaultTemplateRecordAddress&&this.options.DefaultTemplateRecordAddress,l="string"==typeof s?this.pict.DataProvider.getDataByAddress(s):void 0),this.pict.LogControlFlow&&this.log.trace("PICT-ControlFlow VIEW [".concat(this.UUID,"]::[").concat(this.Hash,"] Renderable[").concat(c,"] Destination[").concat(a.ContentDestinationAddress,"] TemplateRecordAddress[").concat(s,"] renderAsync:")),this.pict.LogNoisiness>2&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," Beginning Asynchronous Render (callback-style)..."));let p=this.fable.newAnticipate();p.anticipate(t=>{this.onBeforeRenderAsync(t,a)}),p.anticipate(o=>{this.pict.parseTemplateByHash(a.TemplateHash,l,(t,n)=>t?(this.log.error("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," could not render (asynchronously) ").concat(c," (param ").concat(e,") because it did not parse the template."),t),o(t)):(a.Content=n,o()),[this],t,{RootRenderable:"object"==typeof r?r:a})}),p.anticipate(t=>{this.onBeforeProjectAsync(t,a)}),p.anticipate(t=>{this.onProjectAsync(t,a)}),"virtual-assignment"!==a.RenderMethod&&(p.anticipate(t=>{this.onAfterProjectAsync(t,a)}),p.anticipate(t=>{this.onAfterRenderAsync(t,a)})),p.wait(d)}renderDefaultAsync(t){this.renderAsync(t)}basicRender(t,e,o){return this.basicRenderWithScope(this,t,e,o)}basicRenderWithScope(t,e,o,n){let r=this.buildRenderOptions(e,o,n);return r.Valid?(this.assignRenderContent(r.Renderable,r.DestinationAddress,this.pict.parseTemplateByHash(r.Renderable.TemplateHash,r.Record,null,[this],t,{RootRenderable:r.Renderable})),!0):(this.log.error("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," could not perform a basic render of ").concat(r.RenderableHash," because it is not valid.")),!1)}basicRenderAsync(t,e,o,n){return this.basicRenderWithScopeAsync(this,t,e,o,n)}basicRenderWithScopeAsync(t,e,o,n,r){let i="function"==typeof r?r:"function"==typeof n?n:"function"==typeof o?o:"function"==typeof e?e:null;i||(this.log.warn("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," basicRenderAsync was called without a valid callback. A callback will be generated but this could lead to race conditions.")),i=t=>{t&&this.log.error("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," basicRenderAsync Auto Callback Error: ").concat(t),t)});const a=this.buildRenderOptions(e,o,n);if(!a.Valid){let t="PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," could not perform a basic render of ").concat(a.RenderableHash," because it is not valid.");return this.log.error(t),i(new Error(t))}this.pict.parseTemplateByHash(a.Renderable.TemplateHash,a.Record,(t,e)=>t?(this.log.error("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," could not render (asynchronously) ").concat(a.RenderableHash," because it did not parse the template."),t),i(t)):(this.assignRenderContent(a.Renderable,a.DestinationAddress,e),i()),[this],t,{RootRenderable:a.Renderable})}onProject(t){this.pict.LogNoisiness>3&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," onProject:")),"virtual-assignment"===t.RenderMethod&&this.pict.TransactionTracking.pushToTransactionQueue(t.TransactionHash,{ViewHash:this.Hash,Renderable:t},"Deferred-Post-Content-Assignment"),this.pict.LogNoisiness>0&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," Assigning Renderable[").concat(t.RenderableHash,"] content length ").concat(t.Content.length," to Destination [").concat(t.ContentDestinationAddress,"] using Async render method ").concat(t.RenderMethod,".")),this.pict.ContentAssignment.projectContent(t.RenderMethod,t.ContentDestinationAddress,t.Content,t.TestAddress),this.lastRenderedTimestamp=this.pict.log.getTimeStamp()}onProjectAsync(t,e){return this.onProject(e),t()}onAfterRender(t){if(this.pict.LogNoisiness>3&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," onAfterRender:")),t&&t.RootRenderableViewHash===this.Hash){const e=this.pict.TransactionTracking.clearTransactionQueue(t.TransactionHash)||[];for(const o of e){const e=this.pict.views[o.Data.ViewHash];e?(e.onAfterProject(),e.onAfterRender(o.Data.Renderable)):this.log.error("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," onAfterRender: Could not find view for transaction hash ").concat(t.TransactionHash," and ViewHash ").concat(o.Data.ViewHash,"."))}this.pict.TransactionTracking.unregisterTransaction(t.TransactionHash)}return!0}onAfterRenderAsync(t,e){this.onAfterRender(e);const o=this.fable.newAnticipate(),n=e&&e.RootRenderableViewHash===this.Hash;if(n){const t=this.pict.TransactionTracking.clearTransactionQueue(e.TransactionHash)||[];for(const n of t){const t=this.pict.views[n.Data.ViewHash];t?(o.anticipate(t.onAfterProjectAsync.bind(t)),o.anticipate(e=>{t.onAfterRenderAsync(e,n.Data.Renderable)})):this.log.error("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," onAfterRenderAsync: Could not find view for transaction hash ").concat(e.TransactionHash," and ViewHash ").concat(n.Data.ViewHash,"."))}}return o.wait(o=>(n&&e&&e.TransactionHash&&this.pict.TransactionTracking.unregisterTransaction(e.TransactionHash),t(o)))}onAfterProject(t){return this.pict.LogNoisiness>3&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," onAfterProject:")),!0}onAfterProjectAsync(t,e){return t()}onBeforeSolve(){return this.pict.LogNoisiness>3&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," onBeforeSolve:")),!0}onBeforeSolveAsync(t){return this.onBeforeSolve(),t()}onSolve(){return this.pict.LogNoisiness>3&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," onSolve:")),!0}onSolveAsync(t){return this.onSolve(),t()}solve(){return this.pict.LogNoisiness>2&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," executing solve() function...")),this.onBeforeSolve(),this.onSolve(),this.onAfterSolve(),this.lastSolvedTimestamp=this.pict.log.getTimeStamp(),!0}solveAsync(t){let e=this.pict.instantiateServiceProviderWithoutRegistration("Anticipate"),o="function"==typeof t?t:null;o||(this.log.warn("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," solveAsync was called without a valid callback. A callback will be generated but this could lead to race conditions.")),o=t=>{t&&this.log.error("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," solveAsync Auto Callback Error: ").concat(t),t)}),e.anticipate(this.onBeforeSolveAsync.bind(this)),e.anticipate(this.onSolveAsync.bind(this)),e.anticipate(this.onAfterSolveAsync.bind(this)),e.wait(t=>(this.pict.LogNoisiness>2&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," solveAsync() complete.")),this.lastSolvedTimestamp=this.pict.log.getTimeStamp(),o(t)))}onAfterSolve(){return this.pict.LogNoisiness>3&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," onAfterSolve:")),!0}onAfterSolveAsync(t){return this.onAfterSolve(),t()}onBeforeMarshalFromView(){return this.pict.LogNoisiness>3&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," onBeforeMarshalFromView:")),!0}onBeforeMarshalFromViewAsync(t){return this.onBeforeMarshalFromView(),t()}onMarshalFromView(){return this.pict.LogNoisiness>3&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," onMarshalFromView:")),!0}onMarshalFromViewAsync(t){return this.onMarshalFromView(),t()}marshalFromView(){return this.pict.LogNoisiness>2&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," executing solve() function...")),this.onBeforeMarshalFromView(),this.onMarshalFromView(),this.onAfterMarshalFromView(),this.lastMarshalFromViewTimestamp=this.pict.log.getTimeStamp(),!0}marshalFromViewAsync(t){let e=this.pict.instantiateServiceProviderWithoutRegistration("Anticipate"),o="function"==typeof t?t:null;o||(this.log.warn("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," marshalFromViewAsync was called without a valid callback. A callback will be generated but this could lead to race conditions.")),o=t=>{t&&this.log.error("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," marshalFromViewAsync Auto Callback Error: ").concat(t),t)}),e.anticipate(this.onBeforeMarshalFromViewAsync.bind(this)),e.anticipate(this.onMarshalFromViewAsync.bind(this)),e.anticipate(this.onAfterMarshalFromViewAsync.bind(this)),e.wait(t=>(this.pict.LogNoisiness>2&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," marshalFromViewAsync() complete.")),this.lastMarshalFromViewTimestamp=this.pict.log.getTimeStamp(),o(t)))}onAfterMarshalFromView(){return this.pict.LogNoisiness>3&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," onAfterMarshalFromView:")),!0}onAfterMarshalFromViewAsync(t){return this.onAfterMarshalFromView(),t()}onBeforeMarshalToView(){return this.pict.LogNoisiness>3&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," onBeforeMarshalToView:")),!0}onBeforeMarshalToViewAsync(t){return this.onBeforeMarshalToView(),t()}onMarshalToView(){return this.pict.LogNoisiness>3&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," onMarshalToView:")),!0}onMarshalToViewAsync(t){return this.onMarshalToView(),t()}marshalToView(){return this.pict.LogNoisiness>2&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," executing solve() function...")),this.onBeforeMarshalToView(),this.onMarshalToView(),this.onAfterMarshalToView(),this.lastMarshalToViewTimestamp=this.pict.log.getTimeStamp(),!0}marshalToViewAsync(t){let e=this.pict.instantiateServiceProviderWithoutRegistration("Anticipate"),o="function"==typeof t?t:null;o||(this.log.warn("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," marshalToViewAsync was called without a valid callback. A callback will be generated but this could lead to race conditions.")),o=t=>{t&&this.log.error("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," marshalToViewAsync Auto Callback Error: ").concat(t),t)}),e.anticipate(this.onBeforeMarshalToViewAsync.bind(this)),e.anticipate(this.onMarshalToViewAsync.bind(this)),e.anticipate(this.onAfterMarshalToViewAsync.bind(this)),e.wait(t=>(this.pict.LogNoisiness>2&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," marshalToViewAsync() complete.")),this.lastMarshalToViewTimestamp=this.pict.log.getTimeStamp(),o(t)))}onAfterMarshalToView(){return this.pict.LogNoisiness>3&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," onAfterMarshalToView:")),!0}onAfterMarshalToViewAsync(t){return this.onAfterMarshalToView(),t()}get isPictView(){return!0}}},{"../package.json":74,"fable-serviceproviderbase":2}],76:[function(t,e,o){e.exports={name:"pict-docuserve",version:"1.3.0",description:"Pict Documentation Server - A single-page documentation viewer built on Pict",main:"source/Pict-Application-Docuserve.js",bin:{"pict-docuserve":"source/cli/Docuserve-CLI-Run.js"},files:["source/","dist/","html/"],scripts:{start:"node source/cli/Docuserve-CLI-Run.js serve",brand:"node node_modules/pict-section-theme/bin/pict-section-theme-brand.js --manifest ../../../Retold-Modules-Manifest.json --module pict-docuserve",prebuild:"npm run brand",build:"npx quack build && npx quack copy","prebuild-docs":"npm run brand","build-docs":"npx quack build && npx quack copy && node source/cli/Docuserve-CLI-Run.js inject ./docs && node example_applications/build-examples.js stage-docs","serve-docs":"node source/cli/Docuserve-CLI-Run.js serve ./docs","serve-examples":"node example_applications/build-examples.js",test:"npx quack test",tests:"npx quack test -g",coverage:"npx quack coverage",prepublishOnly:"npm run build"},author:"steven velozo <steven@velozo.com>",license:"MIT",dependencies:{"fable-serviceproviderbase":"^3.0.19",lunr:"^2.3.9",pict:"^1.0.368","pict-application":"^1.0.34","pict-provider":"^1.0.13","pict-section-code":"^1.0.11","pict-section-content":"^1.0.2","pict-section-modal":"^1.1.1","pict-section-theme":"^1.0.2","pict-service-commandlineutility":"^1.0.19","pict-view":"^1.0.68"},devDependencies:{"pict-docuserve":"^1.2.0",quackage:"^1.2.3"},copyFilesSettings:{whenFileExists:"overwrite"},copyFiles:[{from:"./html/*",to:"./dist/"}],mocha:{diff:!0,extension:["js"],package:"./package.json",reporter:"spec",slow:"75",timeout:"5000",ui:"tdd","watch-files":["source/**/*.js","test/**/*.js"],"watch-ignore":["lib/vendor"]},retold:{brand:{Hash:"pict-docuserve",Name:"Pict Docuserve",Tagline:"A documentation viewer built on Pict",Palette:"default",Icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 96 96" width="96" height="96">\n\t\t<defs>\n\t\t\t<clipPath id="frame-pict-docuserve-filled-light">\n\t\t\t\t<path d="M 2 48\n\t\t\tC 2 18.0222416, 18.0222416 2, 48 2\n\t\t\tC 77.9777584 2, 94 18.0222416, 94 48\n\t\t\tC 94 77.9777584, 77.9777584 94, 48 94\n\t\t\tC 18.0222416 94, 2 77.9777584, 2 48 Z"/>\n\t\t\t</clipPath>\n\t\t</defs>\n\t\t<path d="M 2 48\n\t\t\tC 2 18.0222416, 18.0222416 2, 48 2\n\t\t\tC 77.9777584 2, 94 18.0222416, 94 48\n\t\t\tC 94 77.9777584, 77.9777584 94, 48 94\n\t\t\tC 18.0222416 94, 2 77.9777584, 2 48 Z" fill="#692bbf"/>\n\t\t<g clip-path="url(#frame-pict-docuserve-filled-light)"><rect x="18" y="30" width="48" height="48" rx="8" fill="#c13ccd" opacity="0.9"/>\n\t\t\t\t\t<rect x="30" y="18" width="48" height="48" rx="8" fill="rgba(255,255,255,0.18)"/></g>\n\t\t<text x="48" y="50" text-anchor="middle" dominant-baseline="central"\n\t\t\tfont-family="-apple-system, BlinkMacSystemFont, \'Segoe UI\', Roboto, sans-serif"\n\t\t\tfont-size="38" font-weight="600"\n\t\t\tfill="#ffffff" letter-spacing="-1">PD</text>\n\t</svg>',IconType:"svg",Favicon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 96 96" width="96" height="96">\n\t\t<defs>\n\t\t\t<clipPath id="fav-pict-docuserve-light">\n\t\t\t\t<path d="M 2 48\n\t\t\tC 2 18.0222416, 18.0222416 2, 48 2\n\t\t\tC 77.9777584 2, 94 18.0222416, 94 48\n\t\t\tC 94 77.9777584, 77.9777584 94, 48 94\n\t\t\tC 18.0222416 94, 2 77.9777584, 2 48 Z"/>\n\t\t\t</clipPath>\n\t\t</defs>\n\t\t<path d="M 2 48\n\t\t\tC 2 18.0222416, 18.0222416 2, 48 2\n\t\t\tC 77.9777584 2, 94 18.0222416, 94 48\n\t\t\tC 94 77.9777584, 77.9777584 94, 48 94\n\t\t\tC 18.0222416 94, 2 77.9777584, 2 48 Z" fill="#692bbf"/>\n\t\t<g clip-path="url(#fav-pict-docuserve-light)"><rect x="28" y="16" width="52" height="52" rx="9" fill="rgba(255,255,255,0.22)"/></g>\n\t\t<text x="48" y="50" text-anchor="middle" dominant-baseline="central"\n\t\t\tfont-family="-apple-system, BlinkMacSystemFont, \'Segoe UI\', Roboto, sans-serif"\n\t\t\tfont-size="60" font-weight="800"\n\t\t\tfill="#ffffff" letter-spacing="-1">P</text>\n\t</svg>',FaviconDark:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 96 96" width="96" height="96">\n\t\t<defs>\n\t\t\t<clipPath id="fav-pict-docuserve-dark">\n\t\t\t\t<path d="M 2 48\n\t\t\tC 2 18.0222416, 18.0222416 2, 48 2\n\t\t\tC 77.9777584 2, 94 18.0222416, 94 48\n\t\t\tC 94 77.9777584, 77.9777584 94, 48 94\n\t\t\tC 18.0222416 94, 2 77.9777584, 2 48 Z"/>\n\t\t\t</clipPath>\n\t\t</defs>\n\t\t<path d="M 2 48\n\t\t\tC 2 18.0222416, 18.0222416 2, 48 2\n\t\t\tC 77.9777584 2, 94 18.0222416, 94 48\n\t\t\tC 94 77.9777584, 77.9777584 94, 48 94\n\t\t\tC 18.0222416 94, 2 77.9777584, 2 48 Z" fill="#9a6fd8"/>\n\t\t<g clip-path="url(#fav-pict-docuserve-dark)"><rect x="28" y="16" width="52" height="52" rx="9" fill="rgba(255,255,255,0.22)"/></g>\n\t\t<text x="48" y="50" text-anchor="middle" dominant-baseline="central"\n\t\t\tfont-family="-apple-system, BlinkMacSystemFont, \'Segoe UI\', Roboto, sans-serif"\n\t\t\tfont-size="60" font-weight="800"\n\t\t\tfill="#101418" letter-spacing="-1">P</text>\n\t</svg>',Colors:{Primary:"#692bbf",Secondary:"#c13ccd",PrimaryLight:"#692bbf",PrimaryDark:"#9a6fd8",SecondaryLight:"#c13ccd",SecondaryDark:"#d48adb"}}}}},{}],77:[function(t,e,o){const n=t("../package.json");if(!n.retold||!n.retold.brand)throw new Error("pict-docuserve: package.json is missing retold.brand — run `npm run brand` (which calls pict-section-theme-brand) before building");e.exports=n.retold.brand},{"../package.json":76}],78:[function(t,e,o){e.exports={Name:"Pict Docuserve",Hash:"Docuserve",MainViewportViewIdentifier:"Docuserve-Layout",AutoSolveAfterInitialize:!0,AutoRenderMainViewportViewAfterInitialize:!1,AutoRenderViewsAfterInitialize:!1,pict_configuration:{Product:"Docuserve-Pict-Application"}}},{}],79:[function(t,e,o){const n=t("pict-application"),r=t("./providers/Pict-Provider-Docuserve-Documentation.js"),i=t("./providers/Pict-Provider-Docuserve-Demos.js"),a=t("pict-section-modal"),s=t("pict-section-theme"),l=t("./Docuserve-Brand.js"),c=t("./views/PictView-Docuserve-Layout.js"),d=t("./views/PictView-Docuserve-TopBar-Nav.js"),p=t("./views/PictView-Docuserve-TopBar-User.js"),h=t("./views/PictView-Docuserve-Sidebar.js"),u=t("./views/PictView-Docuserve-Splash.js"),m=t("./views/PictView-Docuserve-Content.js"),g=t("./views/PictView-Docuserve-Search.js"),f=t("./views/PictView-Docuserve-Demo.js"),b=t("./views/PictView-Docuserve-Fable-Playground.js");e.exports=class extends n{constructor(t,e,o){super(t,e,o),this.pict.addProvider("Docuserve-Documentation",r.default_configuration,r),this.pict.addProvider("Docuserve-Demos",i.default_configuration,i),this.pict.addView("Pict-Section-Modal",a.default_configuration,a),this.pict.addView("Docuserve-Layout",c.default_configuration,c),this.pict.addView("Docuserve-TopBar-Nav",d.default_configuration,d),this.pict.addView("Docuserve-TopBar-User",p.default_configuration,p),this.pict.addView("Docuserve-Sidebar",h.default_configuration,h),this.pict.addView("Docuserve-Splash",u.default_configuration,u),this.pict.addView("Docuserve-Content",m.default_configuration,m),this.pict.addView("Docuserve-Search",g.default_configuration,g),this.pict.addView("Docuserve-Demo",f.default_configuration,f),this.pict.addView("Docuserve-Fable-Playground",b.default_configuration,b),this._docuserveBrandOverride=e&&e.Brand?e.Brand:null}_resolveBrand(t){return this._docuserveBrandOverride?t(this._docuserveBrandOverride):"function"!=typeof fetch?t(l):void fetch("_brand.json").then(t=>t&&t.ok?t.json():null).then(e=>{if(e&&(e.Name||e.Hash||e.Colors))return t(e);t(l)}).catch(()=>{t(l)})}_addThemeSection(t){this.pict.addProvider("Theme-Section",{ApplyDefault:"retold-default",DefaultMode:"system",DefaultScale:1,Brand:t,Views:["Picker","ModeToggle","ScaleSelect","Button","BrandMark","TopBar"],ViewOptions:{TopBar:{NavView:"Docuserve-TopBar-Nav",UserView:"Docuserve-TopBar-User",Height:56}}},s)}onAfterInitializeAsync(t){this.pict.AppData.Docuserve={CatalogLoaded:!1,Catalog:null,CoverLoaded:!1,Cover:null,SidebarLoaded:!1,SidebarGroups:[],TopBarLoaded:!1,TopBar:null,VersionLoaded:!1,Version:null,ErrorPageLoaded:!1,ErrorPageHTML:null,KeywordIndexLoaded:!1,KeywordDocumentCount:0,CurrentGroup:"",CurrentModule:"",CurrentPath:"",SidebarVisible:!0,DocsBaseURL:"",CatalogURL:"retold-catalog.json",SidebarGroupRecords:[],SidebarSearchSlot:[],SidebarSearchResults:[],SidebarSearchOverflow:[],SidebarSearchEmpty:[],ModuleNavSections:[],FooterSlot:[],SearchResults:[],SearchStatus:""},this._resolveBrand(e=>{this._addThemeSection(e),this._loadCatalogAndRender(t)})}_loadCatalogAndRender(t){this.pict.providers["Docuserve-Documentation"].loadCatalog(()=>{let e=this.pict.AppData.Docuserve,o="";return e.CoverLoaded&&e.Cover&&e.Cover.Title?o=e.Cover.Title.replace(/<[^>]*>/g,"").trim():e.TopBarLoaded&&e.TopBar&&e.TopBar.Brand&&(o=e.TopBar.Brand.replace(/<[^>]*>/g,"").trim()),o&&(e.VersionLoaded&&e.Version&&e.Version.Version?document.title="".concat(o," v").concat(e.Version.Version," Documentation"):document.title=o),this.pict.views["Docuserve-Layout"].render(),super.onAfterInitializeAsync(t)})}resolveHash(){let t=(window.location.hash||"").replace(/^#\/?/,"");if(!t||"Home"===t)return void this.showView("Docuserve-Splash");let e=t.split("/");if("search"===e[0]){let t=decodeURIComponent(e.slice(1).join("/"));return void this.navigateToSearch(t)}if("page"===e[0]&&e.length>=2){let t=e.slice(1).join("/");return void this.navigateToPage(t)}if("doc"===e[0]&&e.length>=3){let t=e[1],o=e[2];if(e.length>=4){let n=e.slice(3).join("/");this.navigateToModulePath(t,o,n)}else this.navigateToModule(t,o);return}if("demo"===e[0]&&e.length>=4){let t=e[1],o=e[2],n=e.slice(3).join("/");return void this.navigateToDemo(t,o,n)}"playground"===e[0]&&e.length>=2?this.navigateToPlayground(e[1]):this.navigateToPage(t)}navigateToDemo(t,e,o){let n=this.pict.views["Docuserve-Demo"],r=this.pict.views["Docuserve-Sidebar"];this.pict.AppData.Docuserve.CurrentGroup=t,this.pict.AppData.Docuserve.CurrentModule=e,this.pict.AppData.Docuserve.CurrentDemo=o,this.pict.AppData.Docuserve.CurrentPath="",n&&"function"==typeof n.showDemo&&n.showDemo(t,e,o),r&&(r.renderSidebarGroups(),"function"==typeof r.renderModuleNav&&r.renderModuleNav(t,e)),this._syncPlaygroundVisibility()}navigateToPlayground(t){let e=this.pict.views["Docuserve-Layout"];if("fable"===t)return this.navigateToPage("fable-playground"),e&&"function"==typeof e.setPlaygroundEnabled&&e.setPlaygroundEnabled(!0),void(e&&"function"==typeof e.expandPlayground&&e.expandPlayground());let o=this.pict.views["Docuserve-Content"];o&&"function"==typeof o.displayContent&&(o.render(),o.displayContent("<h1>Playground not available</h1><p>No playground is registered for <code>"+t+"</code>.</p>"))}navigateTo(t){window.location.hash=t}showView(t){t in this.pict.views&&(this.pict.AppData.Docuserve.CurrentGroup="",this.pict.AppData.Docuserve.CurrentModule="",this.pict.AppData.Docuserve.CurrentPath="",this.pict.views[t].render(),this.pict.views["Docuserve-Sidebar"].clearModuleNav(),this.pict.views["Docuserve-Sidebar"].renderSidebarGroups()),this._syncPlaygroundVisibility()}_syncPlaygroundVisibility(){let t=this.pict.views["Docuserve-Layout"],e=this.pict.providers["Docuserve-Documentation"];if(!t||"function"!=typeof t.setPlaygroundEnabled)return;let o=this.pict.AppData.Docuserve.CurrentGroup,n=this.pict.AppData.Docuserve.CurrentModule,r=!(!e||"function"!=typeof e.isPlaygroundEnabled)&&e.isPlaygroundEnabled(o,n);t.setPlaygroundEnabled(r),"function"==typeof t.setPlaygroundTitle&&t.setPlaygroundTitle(n?"JS Playground: "+n:"JS Playground"),r&&e&&"function"==typeof e.loadPlaygroundConfig?e.loadPlaygroundConfig(o,n).then(t=>{this.pict.AppData.Docuserve.Playground||(this.pict.AppData.Docuserve.Playground={}),this.pict.AppData.Docuserve.Playground.Config=t||null}):this.pict.AppData.Docuserve.Playground&&(this.pict.AppData.Docuserve.Playground.Config=null)}navigateToModule(t,e){this.navigateToModulePath(t,e,"README.md")}navigateToModulePath(t,e,o){let n=this.pict.providers["Docuserve-Documentation"],r=this.pict.views["Docuserve-Content"],i=this.pict.views["Docuserve-Sidebar"];this.pict.AppData.Docuserve.CurrentGroup=t,this.pict.AppData.Docuserve.CurrentModule=e,this.pict.AppData.Docuserve.CurrentPath=o,r.render(),r.showLoading(),i.renderSidebarGroups(),i.renderModuleNav(t,e),this._syncPlaygroundVisibility();let a=n.resolveDocumentURL(t,e,o||"README.md");if(!a)return void r.displayContent(n.getErrorPageHTML(t+"/"+e));let s=o||"README.md";n.fetchDocument(a,(o,i)=>{if(!o)return void r.displayContent(i);let a=t+"/"+e+"/"+s;n.fetchLocalDocument(a,(t,e)=>{r.displayContent(e)},t,e,s)},t,e,s)}navigateToPage(t){let e=this.pict.providers["Docuserve-Documentation"],o=this.pict.views["Docuserve-Content"],n=this.pict.views["Docuserve-Sidebar"];this.pict.AppData.Docuserve.CurrentGroup="",this.pict.AppData.Docuserve.CurrentModule="",this.pict.AppData.Docuserve.CurrentPath=t,o.render(),o.showLoading(),n.clearModuleNav(),n.renderSidebarGroups(),this._syncPlaygroundVisibility();let r=t;r.match(/\.md$/)||(r+=".md"),e.fetchLocalDocument(r,(t,e)=>{o.displayContent(e)})}navigateToSearch(t){let e=this.pict.views["Docuserve-Sidebar"],o=this.pict.views["Docuserve-Search"];this.pict.AppData.Docuserve.CurrentGroup="",this.pict.AppData.Docuserve.CurrentModule="",this.pict.AppData.Docuserve.CurrentPath="",e.clearModuleNav(),e.renderSidebarGroups(),o.render(),o.showSearch(t||""),this._syncPlaygroundVisibility()}},e.exports.default_configuration=t("./Pict-Application-Docuserve-Configuration.json")},{"./Docuserve-Brand.js":77,"./Pict-Application-Docuserve-Configuration.json":78,"./providers/Pict-Provider-Docuserve-Demos.js":80,"./providers/Pict-Provider-Docuserve-Documentation.js":81,"./views/PictView-Docuserve-Content.js":82,"./views/PictView-Docuserve-Demo.js":83,"./views/PictView-Docuserve-Fable-Playground.js":84,"./views/PictView-Docuserve-Layout.js":85,"./views/PictView-Docuserve-Search.js":86,"./views/PictView-Docuserve-Sidebar.js":87,"./views/PictView-Docuserve-Splash.js":88,"./views/PictView-Docuserve-TopBar-Nav.js":89,"./views/PictView-Docuserve-TopBar-User.js":90,"pict-application":5,"pict-section-modal":24,"pict-section-theme":30}],80:[function(t,e,o){const n=t("pict-provider");e.exports=class extends n{constructor(t,e,o){super(t,e,o),this._byKey={},this._byModule={},this._all=[]}get maxSchemaVersion(){return 1}register(t){if(!t||"object"!=typeof t)return this.log.warn("Docuserve-Demos.register: entry must be an object"),null;let e="number"==typeof t.DemoSchemaVersion?t.DemoSchemaVersion:1;if(e>1)return this.log.warn("Docuserve-Demos.register: entry schema v"+e+" exceeds this provider's max v1 — skipping "+(t.Group||"?")+"/"+(t.Module||"?")+"/"+(t.Hash||"?")+". Upgrade pict-docuserve to register newer-schema demos."),null;if("string"!=typeof t.Hash||t.Hash.length<1)return this.log.warn("Docuserve-Demos.register: entry.Hash is required"),null;if("string"!=typeof t.Group||t.Group.length<1)return this.log.warn('Docuserve-Demos.register: entry.Group is required (e.g. "pict")'),null;if("string"!=typeof t.Module||t.Module.length<1)return this.log.warn('Docuserve-Demos.register: entry.Module is required (e.g. "pict-section-form")'),null;if("function"!=typeof t.Mount)return this.log.warn("Docuserve-Demos.register: entry.Mount must be a function (pict, container, spec)"),null;let o=t.Group+"/"+t.Module+"/"+t.Hash,n=t.Group+"/"+t.Module,r=this._byKey[o];if(r){let e=this._all.indexOf(r);e>=0&&(this._all[e]=t);let i=this._byModule[n]||[],a=i.indexOf(r);return a>=0&&(i[a]=t),this._byKey[o]=t,t}return this._byKey[o]=t,this._all.push(t),this._byModule[n]||(this._byModule[n]=[]),this._byModule[n].push(t),t}registerAll(t){if(!Array.isArray(t))return 0;let e=0;for(let o=0;o<t.length;o++)this.register(t[o])&&e++;return e}get(t,e,o){return this._byKey[t+"/"+e+"/"+o]||null}listAll(){return this._all.slice()}listByModule(t,e){let o=this._byModule[t+"/"+e];return o?o.slice():[]}hasDemos(t,e){let o=this._byModule[t+"/"+e];return!!(o&&o.length>0)}},e.exports.default_configuration={ProviderIdentifier:"Docuserve-Demos"},e.exports.MAX_DEMO_SCHEMA_VERSION=1},{"pict-provider":7}],81:[function(t,e,o){const n=t("pict-provider"),r=t("lunr"),i=t("pict-section-content").PictContentProvider;e.exports=class extends n{constructor(t,e,o){super(t,e,o),this._Catalog=null,this._ContentCache={},this._PlaygroundConfigCache={},this._ContentProvider=this.pict.addProvider("Pict-Content",i.default_configuration,i)}_createLinkResolver(t,e,o){return(n,r)=>{if(n.match(/^\//)||n.match(/^[^:]+\.md/)){return{href:this.convertDocLink(n,t,e,o)}}let i=this.resolveGitHubURLToRoute(n);return i?{href:i}:null}}_createImageResolver(t){let e="";if(t){let o=t.lastIndexOf("/");o>=0&&(e=t.substring(0,o+1))}return(t,o)=>t.match(/^https?:\/\//)||t.match(/^data:/)||t.match(/^\//)?t:e+t}loadCatalog(t){let e="function"==typeof t?t:()=>{},o=this.pict.AppData.Docuserve.CatalogURL||"retold-catalog.json",n=()=>{let t=6,o=()=>{if(t--,t<=0){if(this.pict.AppData.Docuserve.SidebarGroups&&!(this.pict.AppData.Docuserve.SidebarGroups.length<1))return e();this.autoDiscoverSidebar(e)}};this.loadCover(o),this.loadSidebar(o),this.loadTopbar(o),this.loadErrorPage(o),this.loadKeywordIndex(o),this.loadVersion(o)};fetch(o).then(t=>t.ok?t.json():(this.log.info("Docuserve: No catalog at [".concat(o,"]; running in standalone mode.")),null)).then(t=>{t&&(this._Catalog=t,this.pict.AppData.Docuserve.Catalog=t,this.pict.AppData.Docuserve.CatalogLoaded=!0,this.buildSidebarData(t)),n()}).catch(t=>{this.log.info("Docuserve: Catalog load error (".concat(t,"); continuing in standalone mode.")),n()})}autoDiscoverSidebar(t){let e="function"==typeof t?t:()=>{},o=this.pict.AppData.Docuserve.DocsBaseURL||"";fetch(o+"README.md").then(t=>t.ok?t.text():null).then(t=>{if(t){let e=t.match(/^#+\s+(.+)/m),o=e?e[1].trim():"Docs";this.pict.AppData.Docuserve.SidebarGroups=[{Name:o,Key:"docs",Route:"#/page/README",Modules:[]}],this.pict.AppData.Docuserve.CoverLoaded||(this.pict.AppData.Docuserve.Cover={Title:o,Tagline:"",Description:"",Highlights:[],Actions:[{Text:"Read the Docs",Href:"README.md"}]},this.pict.AppData.Docuserve.CoverLoaded=!0)}else this.log.info("Docuserve: No README.md found; sidebar will be empty.");return e()}).catch(t=>(this.log.info("Docuserve: README.md discovery failed (".concat(t,").")),e()))}loadCover(t){let e="function"==typeof t?t:()=>{},o=this.pict.AppData.Docuserve.DocsBaseURL||"";fetch(o+"_cover.md").then(t=>t.ok?t.text():null).then(t=>t?(this.pict.AppData.Docuserve.Cover=this.parseCover(t),this.pict.AppData.Docuserve.CoverLoaded=!0,e()):(this.log.info("Docuserve: No _cover.md found; splash will use catalog data."),e())).catch(t=>(this.log.warn("Docuserve: Error loading _cover.md: ".concat(t)),e()))}parseCover(t){let e={Title:"",Tagline:"",Description:"",Highlights:[],Actions:[]},o=t.split("\n");for(let t=0;t<o.length;t++){let n=o[t].trim();if(!n)continue;let r=n.match(/^#+\s+(.+)/);if(r){e.Title=r[1].trim();continue}let i=n.match(/^>\s*(.*)/);if(i){e.Tagline=i[1].trim();continue}let a=n.match(/^[-*+]\s+(.*)/);if(a){let t=a[1],o=t.match(/^\*\*([^*]+)\*\*\s*[-—:]\s*(.*)/);o?e.Highlights.push({Label:o[1].trim(),Text:o[2].trim()}):e.Highlights.push({Label:"",Text:t.trim()});continue}let s=n.match(/^\[([^\]]+)\]\(([^)]+)\)\s*$/);s?e.Actions.push({Text:s[1].trim(),Href:s[2].trim()}):e.Description?e.Description+=" "+n:e.Description=n}return e}loadSidebar(t){let e="function"==typeof t?t:()=>{},o=this.pict.AppData.Docuserve.DocsBaseURL||"";fetch(o+"_sidebar.md").then(t=>t.ok?t.text():null).then(t=>{if(!t)return this.log.info("Docuserve: No _sidebar.md found; sidebar will use catalog data."),e();let o=this.parseSidebarMarkdown(t);return o&&o.length>0&&(this.pict.AppData.Docuserve.SidebarGroups=o,this.pict.AppData.Docuserve.SidebarLoaded=!0),e()}).catch(t=>(this.log.warn("Docuserve: Error loading _sidebar.md: ".concat(t)),e()))}loadTopbar(t){let e="function"==typeof t?t:()=>{},o=this.pict.AppData.Docuserve.DocsBaseURL||"";fetch(o+"_topbar.md").then(t=>t.ok?t.text():null).then(t=>t?(this.pict.AppData.Docuserve.TopBar=this.parseTopbar(t),this.pict.AppData.Docuserve.TopBarLoaded=!0,e()):(this.log.info("Docuserve: No _topbar.md found; top bar will use defaults."),e())).catch(t=>(this.log.warn("Docuserve: Error loading _topbar.md: ".concat(t)),e()))}parseTopbar(t){let e={Brand:"",NavLinks:[],ExternalLinks:[]},o=t.split("\n");for(let t=0;t<o.length;t++){let n=o[t].trim();if(!n)continue;let r=n.match(/^#+\s+(.+)/);if(r){e.Brand=r[1].trim();continue}let i=n.match(/^[-*+]\s+(.*)/);if(i){let t=i[1].trim().match(/^\[([^\]]+)\]\(([^)]+)\)/);if(t){let o=t[1].trim(),n=t[2].trim();if(n.match(/^https?:\/\//))e.ExternalLinks.push({Text:o,Href:n});else{let t=this.convertSidebarLink(n);e.NavLinks.push({Text:o,Href:t})}}continue}}return e}loadVersion(t){let e="function"==typeof t?t:()=>{},o=this.pict.AppData.Docuserve.DocsBaseURL||"";fetch(o+"_version.json").then(t=>t.ok?t.json():null).then(t=>t?(this.pict.AppData.Docuserve.Version=t,this.pict.AppData.Docuserve.VersionLoaded=!0,e()):(this.log.info("Docuserve: No _version.json found; version placard disabled."),e())).catch(t=>(this.log.warn("Docuserve: Error loading _version.json: ".concat(t)),e()))}loadPlaygroundConfig(t,e){let o,n=(t||"")+"/"+(e||"");if(Object.prototype.hasOwnProperty.call(this._PlaygroundConfigCache,n))return Promise.resolve(this._PlaygroundConfigCache[n]);if(t&&e&&this._Catalog&&(o=this.resolveDocumentURL(t,e,"_playground.json")),!o){let t=this.pict.AppData.Docuserve.DocsBaseURL||"";o=t+"_playground.json"}return fetch(o).then(t=>t.ok?t.json():null).then(t=>(this._PlaygroundConfigCache[n]=t||null,this._PlaygroundConfigCache[n])).catch(t=>(this.log.warn("Docuserve: Error loading _playground.json ["+o+"]: "+t),this._PlaygroundConfigCache[n]=null,null))}loadErrorPage(t){let e="function"==typeof t?t:()=>{},o=this.pict.AppData.Docuserve.DocsBaseURL||"";fetch(o+"errorpage.md").then(t=>t.ok?t.text():null).then(t=>t?(this.pict.AppData.Docuserve.ErrorPageHTML=this._ContentProvider.parseMarkdown(t),this.pict.AppData.Docuserve.ErrorPageLoaded=!0,e()):(this.log.info("Docuserve: No errorpage.md found; errors will use default page."),e())).catch(t=>(this.log.warn("Docuserve: Error loading errorpage.md: ".concat(t)),e()))}loadKeywordIndex(t){let e="function"==typeof t?t:()=>{},o=this.pict.AppData.Docuserve.DocsBaseURL||"";fetch(o+"retold-keyword-index.json").then(t=>t.ok?t.json():null).then(t=>{if(!t||!t.LunrIndex||!t.Documents)return this.log.info("Docuserve: No keyword index found; search will be unavailable."),e();try{this._LunrIndex=r.Index.load(t.LunrIndex),this._KeywordDocuments=t.Documents,this.pict.AppData.Docuserve.KeywordIndexLoaded=!0,this.pict.AppData.Docuserve.KeywordDocumentCount=t.DocumentCount||0,this.log.info("Docuserve: Keyword index loaded (".concat(t.DocumentCount||0," documents)."))}catch(t){this.log.warn("Docuserve: Error hydrating lunr index: ".concat(t))}return e()}).catch(t=>(this.log.warn("Docuserve: Error loading keyword index: ".concat(t)),e()))}isModuleInCatalog(t,e){if(!this._Catalog||!this._Catalog.Groups)return!1;for(let o=0;o<this._Catalog.Groups.length;o++){let n=this._Catalog.Groups[o];if(n.Key===t)for(let t=0;t<n.Modules.length;t++){if(n.Modules[t].Name===e)return!0}}return!1}findModuleGroupKey(t){if(!this._Catalog||!this._Catalog.Groups)return null;for(let e=0;e<this._Catalog.Groups.length;e++){let o=this._Catalog.Groups[e];for(let e=0;e<o.Modules.length;e++)if(o.Modules[e].Name===t)return o.Key}return null}isGroupInCatalog(t){if(!this._Catalog||!this._Catalog.Groups)return!1;for(let e=0;e<this._Catalog.Groups.length;e++)if(this._Catalog.Groups[e].Key===t)return!0;return!1}search(t){if(!(this._LunrIndex&&this._KeywordDocuments&&t&&t.trim()))return[];let e=[];try{let o=this._LunrIndex.search(t);for(let t=0;t<o.length;t++){let n=o[t].ref,r=o[t].score,i=this._KeywordDocuments[n];if(!i)continue;let a=n.split("/"),s="";if(a.length>=2){let t=a[0],e=a[1];s=this.isModuleInCatalog(t,e)?"#/doc/"+n:"#/page/"+n}e.push({Key:n,Title:i.Title||n,Group:i.Group||"",Module:i.Module||"",DocPath:i.DocPath||"",Score:r,Route:s})}}catch(t){this.log.warn("Docuserve: Search error: ".concat(t))}return e}getErrorPageHTML(t){let e=t||"unknown";return this.pict.AppData.Docuserve.ErrorPageLoaded&&this.pict.AppData.Docuserve.ErrorPageHTML?this.pict.AppData.Docuserve.ErrorPageHTML.replace(/\{\{path\}\}/g,this._ContentProvider.escapeHTML(e)):'<div class="docuserve-not-found"><h2>Page Not Found</h2><p>The document <code>'+this._ContentProvider.escapeHTML(e)+'</code> could not be loaded.</p><p><a href="#/Home">Return to the home page</a></p></div>'}parseSidebarMarkdown(t){let e=[],o=null,n=t.split("\n");for(let t=0;t<n.length;t++){let r=n[t];if(!r.trim())continue;let i=r.match(/^(\s*)/),a=i?i[1].length:0,s=r.trim().match(/^[-*+]\s+(.*)/);if(!s)continue;let l=s[1].trim(),c=l.match(/^\[([^\]]+)\]\(([^)]+)\)/);if(a<2)if(c){let t=c[1].trim(),n=c[2].trim();o={Name:t,Key:this.deriveGroupKey(t,n),Route:this.convertSidebarLink(n),Modules:[]},e.push(o)}else{let t=l,n=t.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"");o={Name:t,Key:n,Route:"",Modules:[]},e.push(o)}else if(o)if(c){let t=c[1].trim(),e=c[2].trim(),n=this.convertSidebarLink(e);o.Modules.push({Name:t,HasDocs:!0,Group:o.Key,Route:n})}else o.Modules.push({Name:l,HasDocs:!1,Group:o.Key,Route:""})}return e}convertSidebarLink(t){if(!t)return"";if("/"===t)return"#/Home";if(t.match(/^#[^/]/)){let t=this.pict.AppData.Docuserve.SidebarGroups;if(t)for(let e=0;e<t.length;e++){let o=t[e].Modules;if(o)for(let t=0;t<o.length;t++)if(o[t].HasDocs&&o[t].Route&&"#/Home"!==o[t].Route)return o[t].Route;if(t[e].Route&&"#/Home"!==t[e].Route)return t[e].Route}return"#/Home"}let e=t.replace(/^\//,"").replace(/\/$/,"");if(!e)return"#/Home";let o=e.split("/");if(o.length>=2){if(this.isGroupInCatalog(o[0])&&this.isModuleInCatalog(o[0],o[1]))return"#/doc/"+e;let t=this.findModuleGroupKey(o[1]);if(t){let e=o.slice(2).join("/");return e?"#/doc/"+t+"/"+o[1]+"/"+e:"#/doc/"+t+"/"+o[1]}}return e.match(/\.md$/)?"#/page/"+e.replace(/\.md$/,""):"#/page/"+e}deriveGroupKey(t,e){if(e&&"/"!==e){let t=e.replace(/^\//,"").replace(/\.md$/,"").replace(/\/$/,"");if(t&&!t.includes("/"))return t.toLowerCase()}return t.split(/[\s—\-:]+/)[0].toLowerCase().replace(/[^a-z0-9]/g,"")}buildSidebarData(t){let e=[];for(let o=0;o<t.Groups.length;o++){let n=t.Groups[o],r={Name:n.Name,Key:n.Key,Description:n.Description,Modules:[]};for(let t=0;t<n.Modules.length;t++){let e=n.Modules[t];r.Modules.push({Name:e.Name,HasDocs:e.HasDocs,Group:n.Key,Route:"#/doc/"+n.Key+"/"+e.Name})}e.push(r)}this.pict.AppData.Docuserve.SidebarGroups=e}resolveDocumentURL(t,e,o){if(!this._Catalog)return null;let n=this._Catalog.GitHubOrg||"stevenvelozo",r=this._Catalog.DefaultBranch||"master";for(let i=0;i<this._Catalog.Groups.length;i++){let a=this._Catalog.Groups[i];if(a.Key===t)for(let t=0;t<a.Modules.length;t++){let i=a.Modules[t];if(i.Name!==e)continue;let s=i.Branch||r,l=o||"README.md";return"https://raw.githubusercontent.com/"+n+"/"+i.Repo+"/"+s+"/docs/"+l}}return null}resolveGitHubURLToRoute(t){if(!this._Catalog||!this._Catalog.Groups||!t)return null;let e=t.match(/^https?:\/\/github\.com\/([^/]+)\/([^/]+)/);if(!e)return null;let o=e[1],n=e[2];if(o!==this._Catalog.GitHubOrg)return null;for(let t=0;t<this._Catalog.Groups.length;t++){let e=this._Catalog.Groups[t];for(let t=0;t<e.Modules.length;t++){let o=e.Modules[t];if(o.Repo===n)return"#/doc/"+e.Key+"/"+o.Name}}return null}resolveGitHubPagesURL(t,e){if(!this._Catalog||!this._Catalog.Groups)return null;let o=this._Catalog.GitHubOrg||"stevenvelozo";for(let n=0;n<this._Catalog.Groups.length;n++){let r=this._Catalog.Groups[n];if(r.Key===t)for(let t=0;t<r.Modules.length;t++){let n=r.Modules[t];if(n.Name===e)return n.HasDocs?"https://"+o+".github.io/"+n.Repo+"/":null}}return null}getModuleSidebar(t,e){if(!this._Catalog)return null;for(let o=0;o<this._Catalog.Groups.length;o++){let n=this._Catalog.Groups[o];if(n.Key===t)for(let t=0;t<n.Modules.length;t++){let o=n.Modules[t];if(o.Name===e)return o.Sidebar||null}}return null}isPlaygroundEnabled(t,e){if(t&&e){let o=this.getModuleSidebar(t,e);if(Array.isArray(o)&&this._sidebarEntriesIncludePlayground(o))return!0}let o=this.pict.AppData.Docuserve.SidebarGroups;return!(!Array.isArray(o)||!this._sidebarGroupsIncludePlayground(o))}_sidebarEntriesIncludePlayground(t){for(let e=0;e<t.length;e++){let o=t[e];if("string"==typeof o.Path&&/(^|\/)playground\.md$/i.test(o.Path))return!0;if(Array.isArray(o.Children)&&this._sidebarEntriesIncludePlayground(o.Children))return!0}return!1}_sidebarGroupsIncludePlayground(t){let e=/(^|\/)playground(\.md|$)/i;for(let o=0;o<t.length;o++){let n=t[o];if("string"==typeof n.Route&&e.test(n.Route))return!0;if(Array.isArray(n.Modules))for(let t=0;t<n.Modules.length;t++){let o=n.Modules[t];if("string"==typeof o.Route&&e.test(o.Route))return!0}}return!1}fetchDocument(t,e,o,n,r){let i="function"==typeof e?e:()=>{};return t?this._ContentCache[t]?i(null,this._ContentCache[t]):void fetch(t).then(t=>t.ok?t.text():null).then(e=>{if(!e)return i("Document not found",this.getErrorPageHTML(t));let a=this._ContentProvider.parseMarkdown(e,this._createLinkResolver(o,n,r),this._createImageResolver(t));return this._ContentCache[t]=a,i(null,a)}).catch(e=>(this.log.warn("Docuserve: Error fetching document [".concat(t,"]: ").concat(e)),i(e,this.getErrorPageHTML(t)))):i("No URL provided","")}fetchLocalDocument(t,e,o,n,r){let i=(this.pict.AppData.Docuserve.DocsBaseURL||"")+t;this.fetchDocument(i,e,o,n,r)}convertDocLink(t,e,o,n){let r=t.replace(/^\.\//,"");r=r.replace(/^\//,"");let i=r.split("/");if(i.length>=2&&this.isGroupInCatalog(i[0])&&this.isModuleInCatalog(i[0],i[1]))return"#/doc/"+r;if(e&&o){let t="";if(n){let e=n.split("/");e.length>1&&(e.pop(),t=e.join("/")+"/")}return"#/doc/"+e+"/"+o+"/"+t+r}if(r.match(/\.md$/)){return"#/page/"+r.replace(/\.md$/,"")}return"#/page/"+r}},e.exports.default_configuration={ProviderIdentifier:"Docuserve-Documentation",AutoInitialize:!0,AutoInitializeOrdinal:0}},{lunr:3,"pict-provider":7,"pict-section-content":12}],82:[function(t,e,o){const n=t("pict-section-content");e.exports=class extends n{constructor(t,e,o){super(t,e,o)}displayContent(t){let e=t,o=this.pict.AppData.Docuserve.CurrentGroup,n=this.pict.AppData.Docuserve.CurrentModule;if(o&&n){let t=this.pict.providers["Docuserve-Documentation"];if(t){let r=t.resolveGitHubPagesURL(o,n);r&&(e='<div class="docuserve-module-external-link"><a href="'+r+'" target="_blank" rel="noopener">&#x2197; View '+n+" documentation site</a></div>"+e)}}super.displayContent(e,"Docuserve-Content-Body"),this._mountInlineWidgets()}_mountInlineWidgets(){let t=document.getElementById("Docuserve-Content-Body");if(!t)return;let e=t.querySelectorAll("[data-docuserve-playground]:not([data-docuserve-mounted])");for(let t=0;t<e.length;t++){let o=e[t],n=null;"fable"===o.getAttribute("data-docuserve-playground")&&(n=this.pict.views["Docuserve-Fable-Playground"]),n&&"function"==typeof n.mountInto&&(o.setAttribute("data-docuserve-mounted","1"),n.mountInto(o))}this._addPlaygroundButtonsToCodeBlocks()}_addPlaygroundButtonsToCodeBlocks(){let t=document.getElementById("Docuserve-Content-Body");if(!t)return;let e=this.pict.providers["Docuserve-Documentation"];if(e&&"function"==typeof e.isPlaygroundEnabled){let t=this.pict.AppData.Docuserve||{};if(!e.isPlaygroundEnabled(t.CurrentGroup,t.CurrentModule))return}let o=t.querySelectorAll(".pict-content-code-container:not([data-tryplay-wired])");for(let t=0;t<o.length;t++){let e=o[t];if(!e.querySelector("code.language-javascript, code.language-js"))continue;let n=e.querySelector(".pict-content-code-actions");if(!n)continue;let r=document.createElement("button");r.type="button",r.className="pict-content-code-action-btn docuserve-tryplay-btn",r.title="Try in Fable Playground",r.setAttribute("aria-label","Try this code in the Fable Playground"),r.setAttribute("onclick","_Pict.views['Docuserve-Content'].tryInPlayground(this)"),r.innerHTML='<svg viewBox="0 0 16 16" aria-hidden="true"><polygon points="5,3 13,8 5,13"></polygon></svg>',n.appendChild(r),e.setAttribute("data-tryplay-wired","true")}}tryInPlayground(t){if(!t)return;let e=t.closest(".pict-content-code-container");if(!e)return;let o=e.querySelector("code");if(!o)return;let n=this.pict.views["Docuserve-Fable-Playground"];n&&"function"==typeof n.loadCode&&n.loadCode(o.textContent)}showLoading(){super.showLoading("Loading documentation...","Docuserve-Content-Body")}},e.exports.default_configuration={ViewIdentifier:"Docuserve-Content",DefaultRenderable:"Docuserve-Content-Display",DefaultDestinationAddress:"#Docuserve-Content-Container",AutoRender:!1,CSS:"\n\t\t.pict-content {\n\t\t\tpadding: 2em 3em;\n\t\t\tmax-width: 900px;\n\t\t\tmargin: 0 auto;\n\t\t\tcolor: var(--theme-color-text-primary, #2A241E);\n\t\t}\n\t\t.pict-content-loading {\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\tjustify-content: center;\n\t\t\tmin-height: 200px;\n\t\t\tcolor: var(--theme-color-text-muted, #8A7F72);\n\t\t\tfont-size: 1em;\n\t\t}\n\t\t.pict-content h1 {\n\t\t\tfont-size: 2em;\n\t\t\tcolor: var(--theme-color-text-primary, #3D3229);\n\t\t\tborder-bottom: 1px solid var(--theme-color-border-default, #DDD6CA);\n\t\t\tpadding-bottom: 0.3em;\n\t\t\tmargin-top: 0;\n\t\t}\n\t\t.pict-content h2 {\n\t\t\tfont-size: 1.5em;\n\t\t\tcolor: var(--theme-color-text-primary, #3D3229);\n\t\t\tborder-bottom: 1px solid var(--theme-color-border-light, #EAE3D8);\n\t\t\tpadding-bottom: 0.25em;\n\t\t\tmargin-top: 1.5em;\n\t\t}\n\t\t.pict-content h3 {\n\t\t\tfont-size: 1.25em;\n\t\t\tcolor: var(--theme-color-text-primary, #3D3229);\n\t\t\tmargin-top: 1.25em;\n\t\t}\n\t\t.pict-content h4, .pict-content h5, .pict-content h6 {\n\t\t\tcolor: var(--theme-color-text-secondary, #5E5549);\n\t\t\tmargin-top: 1em;\n\t\t}\n\t\t.pict-content p {\n\t\t\tline-height: 1.7;\n\t\t\tcolor: var(--theme-color-text-primary, #2A241E);\n\t\t\tmargin: 0.75em 0;\n\t\t}\n\t\t.pict-content a {\n\t\t\tcolor: var(--theme-color-brand-primary, #2E7D74);\n\t\t\ttext-decoration: none;\n\t\t}\n\t\t.pict-content a:hover {\n\t\t\ttext-decoration: underline;\n\t\t}\n\t\t/* Plain <pre> (no wrap) - rare; keep for safety */\n\t\t.pict-content pre {\n\t\t\tbackground: var(--theme-color-background-secondary, #F6F3EE);\n\t\t\tcolor: var(--theme-color-text-primary, #2A241E);\n\t\t\tpadding: 1.25em;\n\t\t\tborder-radius: 6px;\n\t\t\tborder: 1px solid var(--theme-color-border-light, #E5DED1);\n\t\t\toverflow-x: auto;\n\t\t\tline-height: 1.5;\n\t\t\tfont-size: 0.9em;\n\t\t}\n\t\t/* Inline code */\n\t\t.pict-content code {\n\t\t\tbackground: var(--theme-color-background-tertiary, #F0ECE4);\n\t\t\tpadding: 0.15em 0.4em;\n\t\t\tborder-radius: 3px;\n\t\t\tfont-size: 0.9em;\n\t\t\tcolor: var(--theme-color-syntax-property, #9E3A50);\n\t\t\tfont-family: 'SFMono-Regular', 'SF Mono', 'Menlo', 'Consolas', 'Liberation Mono', 'Courier New', monospace;\n\t\t}\n\t\t.pict-content pre code {\n\t\t\tbackground: none;\n\t\t\tpadding: 0;\n\t\t\tcolor: inherit;\n\t\t\tfont-size: inherit;\n\t\t}\n\t\t/* Fenced code block wrapper emitted by pict-section-content */\n\t\t.pict-content-code-wrap {\n\t\t\tposition: relative;\n\t\t\tfont-family: 'SFMono-Regular', 'SF Mono', 'Menlo', 'Consolas', 'Liberation Mono', 'Courier New', monospace;\n\t\t\tfont-size: 14px;\n\t\t\tline-height: 1.5;\n\t\t\tborder-radius: 6px;\n\t\t\tborder: 1px solid var(--theme-color-border-light, #E5DED1);\n\t\t\toverflow: auto;\n\t\t\tmargin: 1em 0;\n\t\t\tbackground: var(--theme-color-background-secondary, #F6F3EE);\n\t\t}\n\t\t.pict-content-code-wrap .pict-content-code-line-numbers {\n\t\t\tposition: absolute;\n\t\t\ttop: 0;\n\t\t\tleft: 0;\n\t\t\twidth: 40px;\n\t\t\tpadding: 1.25em 0;\n\t\t\ttext-align: right;\n\t\t\tbackground: var(--theme-color-background-tertiary, #EFEAE0);\n\t\t\tborder-right: 1px solid var(--theme-color-border-default, #DDD6CA);\n\t\t\tcolor: var(--theme-color-text-muted, #A59986);\n\t\t\tfont-family: inherit;\n\t\t\tfont-size: inherit;\n\t\t\tline-height: inherit;\n\t\t\tuser-select: none;\n\t\t\tpointer-events: none;\n\t\t\tbox-sizing: border-box;\n\t\t}\n\t\t.pict-content-code-wrap .pict-content-code-line-numbers span {\n\t\t\tdisplay: block;\n\t\t\tpadding: 0 8px 0 0;\n\t\t}\n\t\t.pict-content-code-wrap pre {\n\t\t\tmargin: 0;\n\t\t\tbackground: var(--theme-color-background-secondary, #F6F3EE);\n\t\t\tcolor: var(--theme-color-text-primary, #2A241E);\n\t\t\tpadding: 1.25em 1.25em 1.25em 52px;\n\t\t\tborder: none;\n\t\t\tborder-radius: 0;\n\t\t\toverflow-x: auto;\n\t\t\tline-height: 1.5;\n\t\t\tfont-size: inherit;\n\t\t}\n\t\t.pict-content-code-wrap pre code {\n\t\t\tbackground: none;\n\t\t\tpadding: 0;\n\t\t\tcolor: inherit;\n\t\t\tfont-size: inherit;\n\t\t\tfont-family: inherit;\n\t\t}\n\t\t/* Syntax tokens — these rules must match the span classes emitted by\n\t\t pict-section-code's highlighter. Also apply without .pict-content-code-wrap\n\t\t as a belt-and-suspenders for any <pre><code> not emitted from a fence. */\n\t\t.pict-content-code-wrap .keyword,\n\t\t.pict-content pre code .keyword { color: var(--theme-color-syntax-keyword, #A03472); }\n\t\t.pict-content-code-wrap .string,\n\t\t.pict-content pre code .string { color: var(--theme-color-syntax-string, #1A6640); }\n\t\t.pict-content-code-wrap .number,\n\t\t.pict-content pre code .number { color: var(--theme-color-syntax-number, #B25A00); }\n\t\t.pict-content-code-wrap .comment,\n\t\t.pict-content pre code .comment { color: var(--theme-color-syntax-comment, #8A7F72); font-style: italic; }\n\t\t.pict-content-code-wrap .operator,\n\t\t.pict-content pre code .operator { color: var(--theme-color-syntax-operator, #2E7D74); }\n\t\t.pict-content-code-wrap .punctuation,\n\t\t.pict-content pre code .punctuation { color: var(--theme-color-syntax-punctuation, #2A241E); }\n\t\t.pict-content-code-wrap .function-name,\n\t\t.pict-content pre code .function-name { color: var(--theme-color-syntax-function, #2A5DB0); }\n\t\t.pict-content-code-wrap .property,\n\t\t.pict-content pre code .property { color: var(--theme-color-syntax-property, #9E3A50); }\n\t\t.pict-content-code-wrap .tag,\n\t\t.pict-content pre code .tag { color: var(--theme-color-syntax-tag, #9E3A50); }\n\t\t.pict-content-code-wrap .attr-name,\n\t\t.pict-content pre code .attr-name { color: var(--theme-color-syntax-attrname, #B25A00); }\n\t\t.pict-content-code-wrap .attr-value,\n\t\t.pict-content pre code .attr-value { color: var(--theme-color-syntax-attrvalue, #1A6640); }\n\t\t.pict-content blockquote {\n\t\t\tborder-left: 4px solid var(--theme-color-brand-primary, #2E7D74);\n\t\t\tmargin: 1em 0;\n\t\t\tpadding: 0.5em 1em;\n\t\t\tbackground: var(--theme-color-background-secondary, #F7F5F0);\n\t\t\tcolor: var(--theme-color-text-secondary, #5E5549);\n\t\t}\n\t\t.pict-content blockquote p {\n\t\t\tmargin: 0.25em 0;\n\t\t}\n\t\t.pict-content ul, .pict-content ol {\n\t\t\tpadding-left: 2em;\n\t\t\tline-height: 1.8;\n\t\t}\n\t\t.pict-content li {\n\t\t\tmargin: 0.25em 0;\n\t\t\tcolor: var(--theme-color-text-primary, #2A241E);\n\t\t}\n\t\t.pict-content hr {\n\t\t\tborder: none;\n\t\t\tborder-top: 1px solid var(--theme-color-border-default, #DDD6CA);\n\t\t\tmargin: 2em 0;\n\t\t}\n\t\t.pict-content table {\n\t\t\twidth: 100%;\n\t\t\tborder-collapse: collapse;\n\t\t\tmargin: 1em 0;\n\t\t}\n\t\t.pict-content table th {\n\t\t\tbackground: var(--theme-color-background-tertiary, #F5F0E8);\n\t\t\tborder: 1px solid var(--theme-color-border-default, #DDD6CA);\n\t\t\tpadding: 0.6em 0.8em;\n\t\t\ttext-align: left;\n\t\t\tfont-weight: 600;\n\t\t\tcolor: var(--theme-color-text-primary, #3D3229);\n\t\t}\n\t\t.pict-content table td {\n\t\t\tborder: 1px solid var(--theme-color-border-default, #DDD6CA);\n\t\t\tpadding: 0.5em 0.8em;\n\t\t\tcolor: var(--theme-color-text-primary, #2A241E);\n\t\t}\n\t\t.pict-content table tr:nth-child(even) {\n\t\t\tbackground: var(--theme-color-background-secondary, #F9F6F0);\n\t\t}\n\t\t.pict-content img {\n\t\t\tmax-width: 100%;\n\t\t\theight: auto;\n\t\t}\n\t\t.pict-content pre.mermaid {\n\t\t\tbackground: var(--theme-color-background-panel, #FFFFFF);\n\t\t\tcolor: var(--theme-color-text-primary, #2A241E);\n\t\t\ttext-align: center;\n\t\t\tpadding: 1em;\n\t\t\tborder: 1px solid var(--theme-color-border-light, #EAE3D8);\n\t\t}\n\t\t/* Force dark text inside mermaid SVGs so diagrams stay readable\n\t\t in dark mode (mermaid bg is always light). */\n\t\t.pict-content pre.mermaid text,\n\t\t.pict-content pre.mermaid .nodeLabel,\n\t\t.pict-content pre.mermaid .edgeLabel,\n\t\t.pict-content pre.mermaid .label,\n\t\t.pict-content pre.mermaid .cluster-label,\n\t\t.pict-content pre.mermaid span,\n\t\t.pict-content pre.mermaid foreignObject p,\n\t\t.pict-content pre.mermaid foreignObject div,\n\t\t.pict-content pre.mermaid foreignObject span {\n\t\t\tcolor: var(--theme-color-text-primary, #2A241E) !important;\n\t\t\tfill: var(--theme-color-text-primary, #2A241E) !important;\n\t\t}\n\t\t.pict-content pre.mermaid .edgePath .path {\n\t\t\tstroke: var(--theme-color-text-secondary, #5E5549) !important;\n\t\t}\n\t\t.pict-content pre.mermaid .arrowheadPath {\n\t\t\tfill: var(--theme-color-text-secondary, #5E5549) !important;\n\t\t}\n\t\t/* Mermaid 11's block-beta renderer ignores the themeVariables we\n\t\t pass to mermaid.initialize() — it bakes its own multi-color\n\t\t palette directly into each rect's inline SVG attributes. In\n\t\t light mode that palette is fine: Mermaid's pastel colors on a\n\t\t light page have good contrast and visual hierarchy. In dark\n\t\t mode those same light-pastel fills with dark text appear as a\n\t\t light-mode island stamped onto a dark page — poor contrast and\n\t\t visually jarring.\n\t\t Rather than collapsing the palette to a single theme color\n\t\t (which loses the per-cluster identity the diagram author chose),\n\t\t we invert the entire diagram with a CSS filter in dark mode.\n\t\t The 0.92 factor avoids a harsh pure-white→pure-black flip; the\n\t\t hue-rotate(180deg) compensates for the hue shift invert()\n\t\t introduces, so red stays reddish, green stays greenish, etc.\n\t\t Scoped via :has(g.block) so only block-beta diagrams get\n\t\t filtered — flowchart / sequence / state diagrams already honor\n\t\t themeVariables and render mode-correctly without inversion. */\n\t\t.theme-dark .pict-content pre.mermaid:has(g.block) {\n\t\t\tfilter: invert(0.92) hue-rotate(180deg);\n\t\t\tbackground: transparent !important;\n\t\t\tborder-color: transparent !important;\n\t\t}\n\t\t/* When the block-beta inversion is active, the global \"force\n\t\t text to theme-color-text-primary\" rule above would set text\n\t\t to the dark-mode text color (light cream), which the filter\n\t\t then inverts to dark — unreadable against the now-dark fills.\n\t\t Reverting lets Mermaid's natural light-mode text color (dark)\n\t\t pass through the inversion, becoming light text in dark mode. */\n\t\t.theme-dark .pict-content pre.mermaid:has(g.block) text,\n\t\t.theme-dark .pict-content pre.mermaid:has(g.block) .nodeLabel,\n\t\t.theme-dark .pict-content pre.mermaid:has(g.block) .edgeLabel,\n\t\t.theme-dark .pict-content pre.mermaid:has(g.block) .label,\n\t\t.theme-dark .pict-content pre.mermaid:has(g.block) .cluster-label,\n\t\t.theme-dark .pict-content pre.mermaid:has(g.block) span,\n\t\t.theme-dark .pict-content pre.mermaid:has(g.block) foreignObject p,\n\t\t.theme-dark .pict-content pre.mermaid:has(g.block) foreignObject div,\n\t\t.theme-dark .pict-content pre.mermaid:has(g.block) foreignObject span {\n\t\t\t/* Force text to render DARK pre-filter so the dark-mode filter\n\t\t\t inverts it to LIGHT on the now-dark inverted blocks. Using\n\t\t\t the theme's light-mode text-primary hex directly (not the\n\t\t\t var() chain) because the chain would resolve to light cream\n\t\t\t in dark mode, which the filter would then invert BACK to\n\t\t\t dark — unreadable on the inverted dark blocks. */\n\t\t\tcolor: #3D3229 !important;\n\t\t\tfill: #3D3229 !important;\n\t\t}\n\t\t/* Inner blocks (the .basic.label-container rects inside block-beta\n\t\t diagrams, NOT the cluster wrappers) pick up mainBkg from the\n\t\t themeVariables we pass to mermaid.initialize(). In dark mode\n\t\t that's a dark color — which the SVG filter then inverts to\n\t\t light gray, undoing the dark-mode-ification. Force the inner\n\t\t blocks to render with a fixed light fill so the inversion\n\t\t produces dark cards in dark mode. In light mode (no filter)\n\t\t the white fill is effectively the same as Mermaid's default\n\t\t light-theme block bg — so no visual change there. */\n\t\t.pict-content pre.mermaid:has(g.block) rect.basic.label-container:not(.cluster) {\n\t\t\tfill: #FFFFFF !important;\n\t\t\tstroke: #6E6E6E !important;\n\t\t}\n\t\t.pict-content .pict-content-katex-display {\n\t\t\ttext-align: center;\n\t\t\tmargin: 1em 0;\n\t\t\tpadding: 0.5em;\n\t\t\toverflow-x: auto;\n\t\t}\n\t\t.pict-content .pict-content-katex-inline {\n\t\t\tdisplay: inline;\n\t\t}\n\t\t.docuserve-module-external-link {\n\t\t\tpadding: 0.5em 0;\n\t\t\tmargin-bottom: 0.5em;\n\t\t\tborder-bottom: 1px solid var(--theme-color-border-light, #EAE3D8);\n\t\t\tfont-size: 0.85em;\n\t\t\ttext-align: right;\n\t\t}\n\t\t.docuserve-module-external-link a {\n\t\t\tcolor: var(--theme-color-brand-primary, #2E7D74);\n\t\t\ttext-decoration: none;\n\t\t}\n\t\t.docuserve-module-external-link a:hover {\n\t\t\ttext-decoration: underline;\n\t\t}\n\t\t.docuserve-not-found {\n\t\t\ttext-align: center;\n\t\t\tpadding: 3em 1em;\n\t\t\tcolor: var(--theme-color-text-secondary, #5E5549);\n\t\t}\n\t\t.docuserve-not-found h2 {\n\t\t\tcolor: var(--theme-color-text-muted, #8A7F72);\n\t\t\tfont-size: 1.5em;\n\t\t\tborder-bottom: none;\n\t\t}\n\t\t.docuserve-not-found code {\n\t\t\tbackground: var(--theme-color-background-tertiary, #F0ECE4);\n\t\t\tpadding: 0.15em 0.4em;\n\t\t\tborder-radius: 3px;\n\t\t\tfont-size: 0.9em;\n\t\t\tcolor: var(--theme-color-syntax-property, #9E3A50);\n\t\t}\n\n\t\t/* Fullscreen viewer for images and mermaid diagrams (click-to-zoom) */\n\t\t.pict-content [data-fullscreen-source] {\n\t\t\tcursor: zoom-in;\n\t\t\toutline: 1px solid transparent;\n\t\t\toutline-offset: 3px;\n\t\t\tborder-radius: 4px;\n\t\t\ttransition: outline-color 0.15s ease;\n\t\t}\n\t\t.pict-content [data-fullscreen-source]:hover {\n\t\t\toutline-color: var(--theme-color-brand-primary, #2E7D74);\n\t\t}\n\t\t/* Code block container with hover-revealed action buttons */\n\t\t.pict-content-code-container {\n\t\t\tposition: relative;\n\t\t\tdisplay: flex;\n\t\t\talign-items: flex-start;\n\t\t\tgap: 8px;\n\t\t\tmargin: 1em 0;\n\t\t}\n\t\t.pict-content-code-container > .pict-content-code-wrap {\n\t\t\tmargin: 0;\n\t\t\tflex: 1 1 auto;\n\t\t\tmin-width: 0;\n\t\t}\n\t\t.pict-content-code-actions {\n\t\t\tposition: sticky;\n\t\t\ttop: 64px;\n\t\t\talign-self: flex-start;\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t\tgap: 6px;\n\t\t\tflex: 0 0 auto;\n\t\t\tpadding-top: 6px;\n\t\t\topacity: 0;\n\t\t\ttransform: translateX(-4px);\n\t\t\ttransition: opacity 0.15s ease, transform 0.15s ease;\n\t\t\tpointer-events: none;\n\t\t}\n\t\t.pict-content-code-container:hover .pict-content-code-actions,\n\t\t.pict-content-code-container:focus-within .pict-content-code-actions {\n\t\t\topacity: 1;\n\t\t\ttransform: translateX(0);\n\t\t\tpointer-events: auto;\n\t\t}\n\t\t.pict-content-code-action-btn {\n\t\t\tdisplay: inline-flex;\n\t\t\talign-items: center;\n\t\t\tjustify-content: center;\n\t\t\twidth: 28px;\n\t\t\theight: 28px;\n\t\t\tpadding: 0;\n\t\t\tbackground: var(--theme-color-background-panel, #FFFFFF);\n\t\t\tcolor: var(--theme-color-text-secondary, #5E5549);\n\t\t\tborder: 1px solid var(--theme-color-border-default, #DDD6CA);\n\t\t\tborder-radius: 6px;\n\t\t\tcursor: pointer;\n\t\t\tbox-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);\n\t\t\ttransition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;\n\t\t}\n\t\t.pict-content-code-action-btn svg {\n\t\t\tdisplay: block;\n\t\t\twidth: 14px;\n\t\t\theight: 14px;\n\t\t\tstroke: currentColor;\n\t\t\tfill: none;\n\t\t\tstroke-width: 1.6;\n\t\t\tstroke-linecap: round;\n\t\t\tstroke-linejoin: round;\n\t\t}\n\t\t.pict-content-code-action-btn:hover {\n\t\t\tbackground: var(--theme-color-brand-primary, #2E7D74);\n\t\t\tcolor: var(--theme-color-background-panel, #FFFFFF);\n\t\t\tborder-color: var(--theme-color-brand-primary, #2E7D74);\n\t\t\tbox-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);\n\t\t}\n\t\t.pict-content-code-action-btn:focus-visible {\n\t\t\toutline: 2px solid var(--theme-color-brand-primary, #2E7D74);\n\t\t\toutline-offset: 2px;\n\t\t}\n\t\t.pict-content-code-action-btn.is-copied {\n\t\t\tbackground: var(--theme-color-brand-primary, #2E7D74);\n\t\t\tcolor: var(--theme-color-background-panel, #FFFFFF);\n\t\t\tborder-color: var(--theme-color-brand-primary, #2E7D74);\n\t\t}\n\t\t.pict-content-code-action-btn.is-copy-failed {\n\t\t\tbackground: #B23A3A;\n\t\t\tcolor: var(--theme-color-background-panel, #FFFFFF);\n\t\t\tborder-color: #B23A3A;\n\t\t}\n\t\t/* Try-in-playground button — appended to JS code blocks. The\n\t\t triangle is filled (vs. the other action icons which are\n\t\t stroke-only) to read as a \"play\" affordance. */\n\t\t.docuserve-tryplay-btn svg polygon {\n\t\t\tfill: currentColor;\n\t\t\tstroke: none;\n\t\t}\n\t\t.docuserve-tryplay-btn svg {\n\t\t\twidth: 12px;\n\t\t\theight: 12px;\n\t\t}\n\t\t.pict-fullscreen-overlay {\n\t\t\tposition: fixed;\n\t\t\tinset: 0;\n\t\t\tz-index: 9999;\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t\tbackground: rgba(0, 0, 0, 0.62);\n\t\t\tbackdrop-filter: blur(6px);\n\t\t\t-webkit-backdrop-filter: blur(6px);\n\t\t\tcolor: var(--theme-color-text-primary, #2A241E);\n\t\t}\n\t\t.pict-fullscreen-overlay[hidden] {\n\t\t\tdisplay: none;\n\t\t}\n\t\t.pict-fullscreen-titlebar {\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\tjustify-content: space-between;\n\t\t\tgap: 1em;\n\t\t\theight: 48px;\n\t\t\tpadding: 0 1em;\n\t\t\tbackground: var(--theme-color-background-panel, #FFFFFF);\n\t\t\tcolor: var(--theme-color-text-primary, #3D3229);\n\t\t\tborder-bottom: 1px solid var(--theme-color-border-default, #DDD6CA);\n\t\t\tbox-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);\n\t\t\tflex: 0 0 auto;\n\t\t}\n\t\t.pict-fullscreen-title {\n\t\t\tfont-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif;\n\t\t\tfont-size: 0.95em;\n\t\t\tfont-weight: 600;\n\t\t\tletter-spacing: 0.01em;\n\t\t\twhite-space: nowrap;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t\tcolor: var(--theme-color-text-primary, #3D3229);\n\t\t}\n\t\t.pict-fullscreen-controls {\n\t\t\tdisplay: inline-flex;\n\t\t\talign-items: center;\n\t\t\tgap: 4px;\n\t\t}\n\t\t.pict-fullscreen-btn {\n\t\t\tdisplay: inline-flex;\n\t\t\talign-items: center;\n\t\t\tjustify-content: center;\n\t\t\twidth: 32px;\n\t\t\theight: 32px;\n\t\t\tpadding: 0;\n\t\t\tbackground: transparent;\n\t\t\tborder: 1px solid transparent;\n\t\t\tborder-radius: 6px;\n\t\t\tcolor: var(--theme-color-text-secondary, #5E5549);\n\t\t\tcursor: pointer;\n\t\t\ttransition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;\n\t\t}\n\t\t.pict-fullscreen-btn svg {\n\t\t\tdisplay: block;\n\t\t\twidth: 16px;\n\t\t\theight: 16px;\n\t\t\tstroke: currentColor;\n\t\t\tfill: none;\n\t\t\tstroke-width: 1.75;\n\t\t\tstroke-linecap: round;\n\t\t\tstroke-linejoin: round;\n\t\t}\n\t\t.pict-fullscreen-btn:hover {\n\t\t\tbackground: var(--theme-color-border-light, #EAE3D8);\n\t\t\tcolor: var(--theme-color-text-primary, #3D3229);\n\t\t}\n\t\t.pict-fullscreen-btn:focus-visible {\n\t\t\toutline: 2px solid var(--theme-color-brand-primary, #2E7D74);\n\t\t\toutline-offset: 2px;\n\t\t}\n\t\t.pict-fullscreen-close:hover {\n\t\t\tbackground: var(--theme-color-brand-primary, #2E7D74);\n\t\t\tcolor: var(--theme-color-background-panel, #FFFFFF);\n\t\t}\n\t\t.pict-fullscreen-stage {\n\t\t\tflex: 1 1 auto;\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\tjustify-content: center;\n\t\t\toverflow: hidden;\n\t\t\tpadding: 1.5em;\n\t\t\tcursor: zoom-in;\n\t\t\ttouch-action: none;\n\t\t}\n\t\t.pict-fullscreen-stage.is-zoomed {\n\t\t\tcursor: grab;\n\t\t}\n\t\t.pict-fullscreen-stage.is-panning {\n\t\t\tcursor: grabbing;\n\t\t}\n\t\t.pict-fullscreen-content {\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\tjustify-content: center;\n\t\t\tmax-width: 100%;\n\t\t\tmax-height: 100%;\n\t\t\ttransform-origin: center center;\n\t\t\ttransition: transform 0.05s linear;\n\t\t\twill-change: transform;\n\t\t}\n\t\t.pict-fullscreen-content > * {\n\t\t\tbox-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);\n\t\t}\n\t\t.pict-fullscreen-content .pict-fullscreen-img {\n\t\t\tmax-width: 90vw;\n\t\t\tmax-height: calc(100vh - 96px);\n\t\t\twidth: auto;\n\t\t\theight: auto;\n\t\t\tobject-fit: contain;\n\t\t\tbackground: var(--theme-color-background-panel, #FFFFFF);\n\t\t\tpadding: 12px;\n\t\t\tborder-radius: 6px;\n\t\t}\n\t\t.pict-fullscreen-content .pict-fullscreen-mermaid-svg {\n\t\t\twidth: min(90vw, 1400px);\n\t\t\theight: auto;\n\t\t\tmax-height: calc(100vh - 96px);\n\t\t\tbackground: var(--theme-color-background-panel, #FFFFFF);\n\t\t\tcolor: var(--theme-color-text-primary, #2A241E);\n\t\t\tpadding: 16px;\n\t\t\tborder-radius: 6px;\n\t\t}\n\t\t.pict-fullscreen-content .pict-fullscreen-mermaid-svg text,\n\t\t.pict-fullscreen-content .pict-fullscreen-mermaid-svg .nodeLabel,\n\t\t.pict-fullscreen-content .pict-fullscreen-mermaid-svg .edgeLabel,\n\t\t.pict-fullscreen-content .pict-fullscreen-mermaid-svg .label,\n\t\t.pict-fullscreen-content .pict-fullscreen-mermaid-svg span,\n\t\t.pict-fullscreen-content .pict-fullscreen-mermaid-svg foreignObject p,\n\t\t.pict-fullscreen-content .pict-fullscreen-mermaid-svg foreignObject div,\n\t\t.pict-fullscreen-content .pict-fullscreen-mermaid-svg foreignObject span {\n\t\t\tcolor: var(--theme-color-text-primary, #2A241E) !important;\n\t\t\tfill: var(--theme-color-text-primary, #2A241E) !important;\n\t\t}\n\t\t.pict-fullscreen-content .pict-fullscreen-codewrap {\n\t\t\tmax-width: 90vw;\n\t\t\tmax-height: calc(100vh - 96px);\n\t\t\tmargin: 0;\n\t\t\toverflow: auto;\n\t\t\tbox-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);\n\t\t}\n\t",Templates:[{Hash:"Docuserve-Content-Template",Template:'\n<div class="pict-content" id="Docuserve-Content-Body">\n\t<div class="pict-content-loading">Loading documentation...</div>\n</div>\n'}],Renderables:[{RenderableHash:"Docuserve-Content-Display",TemplateHash:"Docuserve-Content-Template",DestinationAddress:"#Docuserve-Content-Container",RenderMethod:"replace"}]}},{"pict-section-content":12}],83:[function(t,e,o){const n=t("pict-view");e.exports=class extends n{constructor(t,e,o){super(t,e,o)}onAfterRender(t,e,o,n){return this.pict.CSSMap.injectCSS(),super.onAfterRender(t,e,o,n)}showEmpty(){let t=this.pict.parseTemplateByHash("Docuserve-Demo-Empty-Template",{});this.pict.ContentAssignment.assignContent("#Docuserve-Content-Container",t)}showDemo(t,e,o){let n=this.pict.providers["Docuserve-Demos"];if(!n)return this.log.warn("Docuserve-Demo: Docuserve-Demos provider not registered"),void this.showEmpty();let r=n.get(t,e,o);if(!r)return this.log.warn("Docuserve-Demo: no demo registered for "+t+"/"+e+"/"+o),void this.showEmpty();let i=this.pict.parseTemplateByHash("Docuserve-Demo-Template",{});this.pict.ContentAssignment.assignContent("#Docuserve-Content-Container",i),this.pict.CSSMap.injectCSS();let a=document.getElementById("Docuserve-Demo-Title"),s=document.getElementById("Docuserve-Demo-Meta"),l=document.getElementById("Docuserve-Demo-Description");a&&(a.textContent=r.Name||r.Hash),s&&(s.innerHTML=this._escapeHTML(r.Group)+' · <a href="#/doc/'+this._escapeHTML(r.Group)+"/"+this._escapeHTML(r.Module)+'">'+this._escapeHTML(r.Module)+"</a>"),l&&(l.textContent=r.Description||"");let c=document.getElementById("Docuserve-Demo-Live"),d=document.getElementById("Docuserve-Demo-Sources");if(c){let t=Array.isArray(r.Sources)&&r.Sources.length>0;d&&(d.style.display=t?"":"none",c.classList.toggle("full-width",!t));try{r.Mount(this.pict,c,r.Spec||{})}catch(t){this.log.warn("Docuserve-Demo: Mount() threw for "+o+": "+(t&&t.message?t.message:t)),c.innerHTML='<div class="docuserve-demo-empty">Demo failed to mount: '+this._escapeHTML(t&&t.message?t.message:String(t))+"</div>"}}Array.isArray(r.Sources)&&r.Sources.length>0&&this._renderSources(r.Sources)}_renderSources(t){let e=document.getElementById("Docuserve-Demo-Sources-Tabs"),o=document.getElementById("Docuserve-Demo-Sources-Body");if(!e||!o)return;let n="",r="";for(let e=0;e<t.length;e++){let o=t[e],i=0===e?" active":"";n+='<button type="button" class="docuserve-demo-sources-tab'+i+'" data-source-idx="'+e+"\" onclick=\"_Pict.views['Docuserve-Demo']._switchSourceTab("+e+')">'+this._escapeHTML(o.Name||"source-"+(e+1))+"</button>",r+='<div class="docuserve-demo-source-pane'+i+'" data-source-idx="'+e+'"><pre><code>'+this._escapeHTML(o.Content||"")+"</code></pre></div>"}e.innerHTML=n,o.innerHTML=r}_switchSourceTab(t){let e=document.querySelectorAll(".docuserve-demo-sources-tab"),o=document.querySelectorAll(".docuserve-demo-source-pane");for(let o=0;o<e.length;o++){let n=parseInt(e[o].getAttribute("data-source-idx"),10);e[o].classList.toggle("active",n===t)}for(let e=0;e<o.length;e++){let n=parseInt(o[e].getAttribute("data-source-idx"),10);o[e].classList.toggle("active",n===t)}}_escapeHTML(t){return null==t?"":String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}},e.exports.default_configuration={ViewIdentifier:"Docuserve-Demo",DefaultRenderable:"Docuserve-Demo-Display",DefaultDestinationAddress:"#Docuserve-Content-Container",AutoRender:!1,CSS:"\n\t\t.docuserve-demo\n\t\t{\n\t\t\tpadding: 1.5em 2em;\n\t\t\tmax-width: 1200px;\n\t\t\tmargin: 0 auto;\n\t\t\tcolor: var(--theme-color-text-primary, #2A241E);\n\t\t}\n\t\t.docuserve-demo-header\n\t\t{\n\t\t\tborder-bottom: 1px solid var(--theme-color-border-default, #DDD6CA);\n\t\t\tpadding-bottom: 0.75em;\n\t\t\tmargin-bottom: 1.25em;\n\t\t}\n\t\t.docuserve-demo-title\n\t\t{\n\t\t\tfont-size: 1.5em;\n\t\t\tfont-weight: 600;\n\t\t\tmargin: 0 0 0.3em;\n\t\t\tcolor: var(--theme-color-text-primary, #3D3229);\n\t\t}\n\t\t.docuserve-demo-meta\n\t\t{\n\t\t\tfont-size: 0.78em;\n\t\t\tcolor: var(--theme-color-text-muted, #8A7F72);\n\t\t\tletter-spacing: 0.04em;\n\t\t\ttext-transform: uppercase;\n\t\t\tmargin: 0 0 0.6em;\n\t\t}\n\t\t.docuserve-demo-meta a\n\t\t{\n\t\t\tcolor: inherit;\n\t\t\ttext-decoration: none;\n\t\t}\n\t\t.docuserve-demo-meta a:hover\n\t\t{\n\t\t\tcolor: var(--theme-color-brand-primary, #2E7D74);\n\t\t\ttext-decoration: underline;\n\t\t}\n\t\t.docuserve-demo-description\n\t\t{\n\t\t\tfont-size: 0.95em;\n\t\t\tline-height: 1.55;\n\t\t\tcolor: var(--theme-color-text-secondary, #5E5549);\n\t\t}\n\t\t.docuserve-demo-body\n\t\t{\n\t\t\tdisplay: flex;\n\t\t\tgap: 1.5em;\n\t\t\tmin-height: 320px;\n\t\t\talign-items: stretch;\n\t\t}\n\t\t.docuserve-demo-live\n\t\t{\n\t\t\tflex: 1 1 60%;\n\t\t\tmin-width: 0;\n\t\t\tbackground: var(--theme-color-background-panel, #FFFFFF);\n\t\t\tborder: 1px solid var(--theme-color-border-default, #DDD6CA);\n\t\t\tborder-radius: 6px;\n\t\t\tpadding: 1em;\n\t\t\toverflow: auto;\n\t\t}\n\t\t.docuserve-demo-live.full-width\n\t\t{\n\t\t\tflex: 1 1 100%;\n\t\t}\n\t\t.docuserve-demo-sources\n\t\t{\n\t\t\tflex: 1 1 40%;\n\t\t\tmin-width: 0;\n\t\t\tbackground: var(--theme-color-background-secondary, #FAF8F4);\n\t\t\tborder: 1px solid var(--theme-color-border-default, #DDD6CA);\n\t\t\tborder-radius: 6px;\n\t\t\toverflow: hidden;\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t}\n\t\t.docuserve-demo-sources-tabs\n\t\t{\n\t\t\tdisplay: flex;\n\t\t\talign-items: stretch;\n\t\t\tbackground: var(--theme-color-background-tertiary, #F0EDE8);\n\t\t\tborder-bottom: 1px solid var(--theme-color-border-default, #DDD6CA);\n\t\t}\n\t\t.docuserve-demo-sources-tab\n\t\t{\n\t\t\tpadding: 0.55em 0.9em;\n\t\t\tbackground: transparent;\n\t\t\tborder: none;\n\t\t\tborder-right: 1px solid var(--theme-color-border-light, #E8E2D7);\n\t\t\tcolor: var(--theme-color-text-secondary, #5E5549);\n\t\t\tfont-size: 0.8em;\n\t\t\tfont-weight: 500;\n\t\t\tcursor: pointer;\n\t\t\tfont-family: var(--theme-typography-family-mono, ui-monospace, monospace);\n\t\t}\n\t\t.docuserve-demo-sources-tab:hover\n\t\t{\n\t\t\tbackground: var(--theme-color-background-hover, #EDE9E3);\n\t\t}\n\t\t.docuserve-demo-sources-tab.active\n\t\t{\n\t\t\tbackground: var(--theme-color-background-panel, #FFFFFF);\n\t\t\tcolor: var(--theme-color-brand-primary, #2E7D74);\n\t\t\tbox-shadow: inset 0 -2px 0 0 var(--theme-color-brand-primary, #2E7D74);\n\t\t}\n\t\t.docuserve-demo-sources-body\n\t\t{\n\t\t\tflex: 1;\n\t\t\tmin-height: 0;\n\t\t\toverflow: auto;\n\t\t\tbackground: var(--theme-color-background-panel, #FFFFFF);\n\t\t}\n\t\t.docuserve-demo-source-pane\n\t\t{\n\t\t\tdisplay: none;\n\t\t\tpadding: 0.5em;\n\t\t}\n\t\t.docuserve-demo-source-pane.active\n\t\t{\n\t\t\tdisplay: block;\n\t\t}\n\t\t.docuserve-demo-source-pane pre\n\t\t{\n\t\t\tmargin: 0;\n\t\t\tpadding: 0.75em 1em;\n\t\t\tfont-family: var(--theme-typography-family-mono, ui-monospace, monospace);\n\t\t\tfont-size: 0.82em;\n\t\t\tline-height: 1.5;\n\t\t\tbackground: var(--theme-color-background-secondary, #F6F3EE);\n\t\t\tborder: 1px solid var(--theme-color-border-light, #E5DED1);\n\t\t\tborder-radius: 4px;\n\t\t\toverflow: auto;\n\t\t\twhite-space: pre;\n\t\t\tcolor: var(--theme-color-text-primary, #2A241E);\n\t\t}\n\t\t.docuserve-demo-empty\n\t\t{\n\t\t\tpadding: 2em;\n\t\t\ttext-align: center;\n\t\t\tcolor: var(--theme-color-text-muted, #8A7F72);\n\t\t\tfont-style: italic;\n\t\t}\n\n\t\t@media (max-width: 900px)\n\t\t{\n\t\t\t.docuserve-demo-body { flex-direction: column; }\n\t\t\t.docuserve-demo-live, .docuserve-demo-sources { flex: 1 1 auto; }\n\t\t}\n\t",Templates:[{Hash:"Docuserve-Demo-Template",Template:'\n<div class="docuserve-demo">\n\t<div class="docuserve-demo-header">\n\t\t<div class="docuserve-demo-meta" id="Docuserve-Demo-Meta"></div>\n\t\t<h1 class="docuserve-demo-title" id="Docuserve-Demo-Title">Demo</h1>\n\t\t<div class="docuserve-demo-description" id="Docuserve-Demo-Description"></div>\n\t</div>\n\t<div class="docuserve-demo-body" id="Docuserve-Demo-Body">\n\t\t<div class="docuserve-demo-live" id="Docuserve-Demo-Live"></div>\n\t\t<div class="docuserve-demo-sources" id="Docuserve-Demo-Sources" style="display:none">\n\t\t\t<div class="docuserve-demo-sources-tabs" id="Docuserve-Demo-Sources-Tabs"></div>\n\t\t\t<div class="docuserve-demo-sources-body" id="Docuserve-Demo-Sources-Body"></div>\n\t\t</div>\n\t</div>\n</div>'},{Hash:"Docuserve-Demo-Empty-Template",Template:'<div class="docuserve-demo"><div class="docuserve-demo-empty">No demo registered at this route.</div></div>'}],Renderables:[{RenderableHash:"Docuserve-Demo-Display",TemplateHash:"Docuserve-Demo-Template",DestinationAddress:"#Docuserve-Content-Container",RenderMethod:"replace"}]}},{"pict-view":75}],84:[function(t,e,o){const n=t("pict-view"),r=t("pict-section-code"),i=t("fable-serviceproviderbase"),a="docuserve-fable-playground-code",s="docuserve-fable-playground-auto-capture",l="Docuserve-Fable-Playground-CodeEditor",c="Docuserve-Fable-Playground-Editor-Mount";class d extends r{onCodeChange(t){super.onCodeChange(t),this._lsTimer&&clearTimeout(this._lsTimer),this._lsTimer=setTimeout(()=>{this._lsTimer=null;try{window.localStorage.setItem(a,t)}catch(t){}let e=this.fable.pict.views["Docuserve-Fable-Playground"];e&&"function"==typeof e._setStatus&&e._setStatus("saved")},500)}}const p={ViewIdentifier:"Docuserve-Fable-Playground",DefaultRenderable:"Docuserve-Fable-Playground-Content",DefaultDestinationAddress:"#Docuserve-Content-Container",AutoRender:!1,CSS:'\n\t\t/* The shell renders the panel content into a wrapper that has\n\t\t min-height: 100% but no explicit height — which means our\n\t\t percentage-height children would resolve to 0. Promote the\n\t\t destination to a flex column so the playground inside it\n\t\t can use flex: 1 to fill the drawer height. */\n\t\t#Docuserve-Playground-Drawer-Content {\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t\theight: 100%;\n\t\t\tmin-height: 0;\n\t\t}\n\t\t/* Playground fills the bottom drawer height-wise. The drawer\n\t\t itself owns the outer resize; everything inside flexes to\n\t\t whatever vertical space remains so a thin drawer is usable\n\t\t and a tall drawer just gives the editor more room. */\n\t\t.docuserve-playground {\n\t\t\tflex: 1 1 0;\n\t\t\tmin-height: 0;\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t\tpadding: 0;\n\t\t\tcolor: var(--theme-color-text-primary, #2A241E);\n\t\t}\n\t\t.docuserve-playground-body {\n\t\t\tflex: 1 1 0;\n\t\t\tmin-height: 0;\n\t\t\tdisplay: flex;\n\t\t\tgap: 0;\n\t\t}\n\t\t@media (max-width: 900px) {\n\t\t\t.docuserve-playground-body { flex-direction: column; gap: 0; }\n\t\t}\n\t\t.docuserve-playground-pane {\n\t\t\tflex: 1 1 0;\n\t\t\tmin-width: 0;\n\t\t\tmin-height: 0;\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t}\n\t\t.docuserve-playground-pane-code { border-right: 1px solid var(--theme-color-border-default, #DDD6CA); }\n\t\t.docuserve-playground-pane-log { background: var(--theme-color-background-secondary, #F6F3EE); }\n\n\t\t/* Per-pane header — small uppercase label on the left, controls\n\t\t on the right. Same row height as the doc page section\n\t\t labels so it slots in visually under the topbar. */\n\t\t.docuserve-playground-pane-header {\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\tjustify-content: space-between;\n\t\t\tgap: 0.5em;\n\t\t\tpadding: 0.45em 0.9em;\n\t\t\tborder-bottom: 1px solid var(--theme-color-border-default, #DDD6CA);\n\t\t\tbackground: var(--theme-color-background-panel, #FFFFFF);\n\t\t}\n\t\t.docuserve-playground-pane-log .docuserve-playground-pane-header {\n\t\t\tbackground: var(--theme-color-background-secondary, #F6F3EE);\n\t\t}\n\t\t.docuserve-playground-pane-title {\n\t\t\tfont-size: 0.72em;\n\t\t\tfont-weight: 600;\n\t\t\ttext-transform: uppercase;\n\t\t\tletter-spacing: 0.06em;\n\t\t\tcolor: var(--theme-color-text-muted, #8A7F72);\n\t\t}\n\t\t.docuserve-playground-pane-controls {\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\tgap: 0.15em;\n\t\t}\n\n\t\t/* Compact icon button — subtle by default, brand-primary on\n\t\t hover. Used for help, copy, copy-log, clear-log, and run.\n\t\t All glyphs are 14px @ 1em via SVG so they ride the font-size\n\t\t set on the parent. */\n\t\t.docuserve-playground-iconbtn {\n\t\t\tdisplay: inline-flex;\n\t\t\talign-items: center;\n\t\t\tjustify-content: center;\n\t\t\twidth: 1.6em;\n\t\t\theight: 1.6em;\n\t\t\tpadding: 0;\n\t\t\tbackground: transparent;\n\t\t\tcolor: var(--theme-color-text-muted, #8A7F72);\n\t\t\tborder: 1px solid transparent;\n\t\t\tborder-radius: 4px;\n\t\t\tcursor: pointer;\n\t\t\tfont-size: 14px;\n\t\t\ttransition: color 0.12s, background-color 0.12s, border-color 0.12s, opacity 0.12s;\n\t\t\topacity: 0.6;\n\t\t}\n\t\t.docuserve-playground-iconbtn svg {\n\t\t\twidth: 1em;\n\t\t\theight: 1em;\n\t\t\tdisplay: block;\n\t\t\tfill: none;\n\t\t\tstroke: currentColor;\n\t\t\tstroke-width: 2;\n\t\t\tstroke-linecap: round;\n\t\t\tstroke-linejoin: round;\n\t\t}\n\t\t.docuserve-playground-iconbtn:hover {\n\t\t\topacity: 1;\n\t\t\tcolor: var(--theme-color-brand-primary, #2E7D74);\n\t\t\tbackground: var(--theme-color-background-hover, #EAE3D8);\n\t\t\tborder-color: var(--theme-color-border-default, #DDD6CA);\n\t\t}\n\t\t.docuserve-playground-iconbtn:focus-visible {\n\t\t\topacity: 1;\n\t\t\toutline: 2px solid var(--theme-color-brand-primary, #2E7D74);\n\t\t\toutline-offset: 1px;\n\t\t}\n\t\t/* Run is the destination action — slightly brighter at rest so\n\t\t the user\'s eye lands on it, with a filled play triangle that\n\t\t uses fill instead of stroke. */\n\t\t.docuserve-playground-iconbtn-run {\n\t\t\tcolor: var(--theme-color-brand-primary, #2E7D74);\n\t\t\topacity: 0.7;\n\t\t}\n\t\t.docuserve-playground-iconbtn-run svg { fill: currentColor; stroke: none; }\n\t\t.docuserve-playground-iconbtn-run:hover {\n\t\t\topacity: 1;\n\t\t\tbackground: var(--theme-color-brand-primary, #2E7D74);\n\t\t\tcolor: var(--theme-color-background-panel, #FFFFFF);\n\t\t\tborder-color: var(--theme-color-brand-primary, #2E7D74);\n\t\t}\n\n\t\t/* The copy-log button only materializes on hover of the log\n\t\t pane — it\'s a "by the way" action, not something the user\n\t\t should be reaching for during normal exploration. */\n\t\t.docuserve-playground-iconbtn-copylog { opacity: 0; pointer-events: none; }\n\t\t.docuserve-playground-pane-log:hover .docuserve-playground-iconbtn-copylog,\n\t\t.docuserve-playground-pane-log:focus-within .docuserve-playground-iconbtn-copylog {\n\t\t\topacity: 0.6;\n\t\t\tpointer-events: auto;\n\t\t}\n\t\t.docuserve-playground-pane-log:hover .docuserve-playground-iconbtn-copylog:hover { opacity: 1; }\n\n\t\t/* Auto-attach toggle — compact inline checkbox + label sized\n\t\t to sit alongside the icon buttons without overpowering\n\t\t them. */\n\t\t.docuserve-playground-toggle {\n\t\t\tdisplay: inline-flex;\n\t\t\talign-items: center;\n\t\t\tgap: 0.35em;\n\t\t\tmargin-right: 0.25em;\n\t\t\tfont-size: 11px;\n\t\t\tcolor: var(--theme-color-text-muted, #8A7F72);\n\t\t\tcursor: pointer;\n\t\t\tuser-select: none;\n\t\t}\n\t\t.docuserve-playground-toggle input[type="checkbox"] {\n\t\t\taccent-color: var(--theme-color-brand-primary, #2E7D74);\n\t\t\tcursor: pointer;\n\t\t\tmargin: 0;\n\t\t\twidth: 0.95em;\n\t\t\theight: 0.95em;\n\t\t}\n\t\t.docuserve-playground-toggle:hover { color: var(--theme-color-text-secondary, #5E5549); }\n\n\t\t/* Editor mount fills the remaining pane height; pict-section-code\n\t\t styles the inner editor + gutter itself. */\n\t\t#'.concat(c," {\n\t\t\tflex: 1 1 0;\n\t\t\tmin-height: 0;\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t\toverflow: hidden;\n\t\t}\n\t\t#").concat(c," .pict-code-editor-wrap {\n\t\t\tflex: 1;\n\t\t\tmin-height: 0;\n\t\t\theight: 100%;\n\t\t}\n\t\t.docuserve-playground-log {\n\t\t\tflex: 1 1 0;\n\t\t\tmin-height: 0;\n\t\t\tfont-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;\n\t\t\tfont-size: 12.5px;\n\t\t\tline-height: 1.6;\n\t\t\tbackground: var(--theme-color-background-secondary, #F6F3EE);\n\t\t\tpadding: 0.8em 0.9em;\n\t\t\toverflow: auto;\n\t\t\tmargin: 0;\n\t\t\twhite-space: pre-wrap;\n\t\t\tword-break: break-word;\n\t\t\tcolor: var(--theme-color-text-primary, #2A241E);\n\t\t\tborder: 0;\n\t\t\tborder-radius: 0;\n\t\t}\n\t\t.docuserve-playground-log-line {\n\t\t\tdisplay: block;\n\t\t\tpadding: 0.05em 0;\n\t\t}\n\t\t.docuserve-playground-log-time {\n\t\t\tcolor: var(--theme-color-text-muted, #8A7F72);\n\t\t}\n\t\t.docuserve-playground-log-level {\n\t\t\tdisplay: inline-block;\n\t\t\tmin-width: 5.5ch;\n\t\t\ttext-align: right;\n\t\t\tfont-weight: 600;\n\t\t\tmargin: 0 0.4em 0 0.25em;\n\t\t}\n\t\t.docuserve-playground-log-level-trace { color: var(--theme-color-text-muted, #8A7F72); }\n\t\t.docuserve-playground-log-level-debug { color: var(--theme-color-text-secondary, #5E5549); }\n\t\t.docuserve-playground-log-level-info { color: var(--theme-color-brand-primary, #2E7D74); }\n\t\t.docuserve-playground-log-level-warn { color: var(--theme-color-status-warning, #B25A00); }\n\t\t.docuserve-playground-log-level-error { color: var(--theme-color-status-error, #B23A3A); }\n\t\t.docuserve-playground-log-level-fatal {\n\t\t\tcolor: var(--theme-color-background-panel, #FFFFFF);\n\t\t\tbackground: var(--theme-color-status-error, #B23A3A);\n\t\t\tpadding: 0 0.3em;\n\t\t\tborder-radius: 2px;\n\t\t}\n\t\t/* Banner records (start / finish) — span the full row width\n\t\t with no level chip or timestamp, since the message itself\n\t\t is the dash-bordered marker. font-size: 0 on the row\n\t\t collapses the literal whitespace text nodes the line\n\t\t template inserts between time/level/message (those are\n\t\t needed for copy-paste of regular rows but would otherwise\n\t\t leak 2 leading spaces onto every banner line); the message\n\t\t span re-asserts the inherited font size so it renders. */\n\t\t.docuserve-playground-log-line-banner\n\t\t{\n\t\t\tfont-size: 0;\n\t\t}\n\t\t.docuserve-playground-log-line-banner .docuserve-playground-log-time,\n\t\t.docuserve-playground-log-line-banner .docuserve-playground-log-level\n\t\t{\n\t\t\tdisplay: none;\n\t\t}\n\t\t.docuserve-playground-log-line-banner .docuserve-playground-log-message\n\t\t{\n\t\t\tfont-size: 12.5px;\n\t\t\tcolor: var(--theme-color-text-muted, #8A7F72);\n\t\t\tfont-weight: 600;\n\t\t\tletter-spacing: 0.02em;\n\t\t}\n\t\t.docuserve-playground-log-message { color: var(--theme-color-text-primary, #2A241E); }\n\t\t.docuserve-playground-log-datum {\n\t\t\tcolor: var(--theme-color-syntax-property, #9E3A50);\n\t\t}\n\t\t.docuserve-playground-log-empty {\n\t\t\tdisplay: block;\n\t\t\tcolor: var(--theme-color-text-muted, #8A7F72);\n\t\t\tfont-style: italic;\n\t\t}\n\t\t.docuserve-playground-log-meta {\n\t\t\tdisplay: block;\n\t\t\tpadding-top: 0.4em;\n\t\t\tmargin-top: 0.4em;\n\t\t\tborder-top: 1px dashed var(--theme-color-border-light, #E5DED1);\n\t\t\tcolor: var(--theme-color-text-muted, #8A7F72);\n\t\t\tfont-size: 0.85em;\n\t\t}\n\t"),Templates:[{Hash:"Docuserve-Fable-Playground-Template",Template:'\n<div class="docuserve-playground">\n\t<div class="docuserve-playground-body">\n\t\t<div class="docuserve-playground-pane docuserve-playground-pane-code">\n\t\t\t<div class="docuserve-playground-pane-header">\n\t\t\t\t<span class="docuserve-playground-pane-title">Code</span>\n\t\t\t\t<div class="docuserve-playground-pane-controls">\n\t\t\t\t\t<button type="button" class="docuserve-playground-iconbtn" id="Docuserve-Fable-Playground-HelpBtn" aria-label="What\'s the playground?">\n\t\t\t\t\t\t<svg viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="M9.5 9a2.5 2.5 0 0 1 5 0c0 1.5-2.5 2-2.5 3.5"/><circle cx="12" cy="17" r="0.5" fill="currentColor" stroke="none"/></svg>\n\t\t\t\t\t</button>\n\t\t\t\t\t<label class="docuserve-playground-toggle" title="When on, user code that does new Fable(...) via require(\'fable\') gets the playground\'s log capture pre-attached, so app.log.info(...) calls appear in the panel.">\n\t\t\t\t\t\t<input type="checkbox" id="Docuserve-Fable-Playground-AutoCapture-Toggle" onchange="{~P~}.views[\'Docuserve-Fable-Playground\'].setAutoCapture(this.checked)">\n\t\t\t\t\t\tauto-attach\n\t\t\t\t\t</label>\n\t\t\t\t\t<button type="button" class="docuserve-playground-iconbtn" title="Copy code" aria-label="Copy code" onclick="{~P~}.views[\'Docuserve-Fable-Playground\'].copyCode()">\n\t\t\t\t\t\t<svg viewBox="0 0 24 24" aria-hidden="true"><rect x="9" y="9" width="11" height="11" rx="2"/><path d="M5 15V5a2 2 0 0 1 2-2h10"/></svg>\n\t\t\t\t\t</button>\n\t\t\t\t\t<button type="button" class="docuserve-playground-iconbtn docuserve-playground-iconbtn-run" title="Run" aria-label="Run code" onclick="{~P~}.views[\'Docuserve-Fable-Playground\'].run()">\n\t\t\t\t\t\t<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M7 4l13 8-13 8z"/></svg>\n\t\t\t\t\t</button>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div id="'.concat(c,'"></div>\n\t\t</div>\n\t\t<div class="docuserve-playground-pane docuserve-playground-pane-log">\n\t\t\t<div class="docuserve-playground-pane-header">\n\t\t\t\t<span class="docuserve-playground-pane-title">Log output</span>\n\t\t\t\t<div class="docuserve-playground-pane-controls">\n\t\t\t\t\t<button type="button" class="docuserve-playground-iconbtn docuserve-playground-iconbtn-copylog" title="Copy log" aria-label="Copy log" onclick="{~P~}.views[\'Docuserve-Fable-Playground\'].copyLog()">\n\t\t\t\t\t\t<svg viewBox="0 0 24 24" aria-hidden="true"><rect x="9" y="9" width="11" height="11" rx="2"/><path d="M5 15V5a2 2 0 0 1 2-2h10"/></svg>\n\t\t\t\t\t</button>\n\t\t\t\t\t<button type="button" class="docuserve-playground-iconbtn" title="Clear log" aria-label="Clear log" onclick="{~P~}.views[\'Docuserve-Fable-Playground\'].clear()">\n\t\t\t\t\t\t<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M3 6h18"/><path d="M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/><path d="M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6"/><path d="M10 11v6M14 11v6"/></svg>\n\t\t\t\t\t</button>\n\t\t\t\t\t<button type="button" class="docuserve-playground-iconbtn" title="Close playground" aria-label="Close playground" onclick="{~P~}.views[\'Docuserve-Layout\'].collapsePlayground()">\n\t\t\t\t\t\t<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M6 6l12 12M18 6L6 18"/></svg>\n\t\t\t\t\t</button>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<pre class="docuserve-playground-log" id="Docuserve-Fable-Playground-Log">{~T:Docuserve-Fable-Playground-Log-Body-Template:AppData~}</pre>\n\t\t</div>\n\t</div>\n</div>\n')},{Hash:"Docuserve-Fable-Playground-Log-Body-Template",Template:"{~TS:Docuserve-Fable-Playground-Log-Line-Template:AppData.Docuserve.Playground.LogLines~}{~TS:Docuserve-Fable-Playground-Log-Empty-Template:AppData.Docuserve.Playground.LogEmptySlot~}{~TS:Docuserve-Fable-Playground-Log-Meta-Template:AppData.Docuserve.Playground.LogMetaSlot~}"},{Hash:"Docuserve-Fable-Playground-Log-Line-Template",Template:'<span class="docuserve-playground-log-line docuserve-playground-log-line-{~D:Record.Level~}"><span class="docuserve-playground-log-time">{~D:Record.Time~}</span> <span class="docuserve-playground-log-level docuserve-playground-log-level-{~D:Record.Level~}">{~D:Record.Level~}</span> <span class="docuserve-playground-log-message">{~D:Record.Message~}</span>{~TS:Docuserve-Fable-Playground-Log-Datum-Template:Record.DatumSlot~}</span>'},{Hash:"Docuserve-Fable-Playground-Log-Datum-Template",Template:' <span class="docuserve-playground-log-datum">{~D:Record.Datum~}</span>'},{Hash:"Docuserve-Fable-Playground-Log-Empty-Template",Template:'<span class="docuserve-playground-log-empty">(no log output yet — press Run)</span>'},{Hash:"Docuserve-Fable-Playground-Log-Meta-Template",Template:'<span class="docuserve-playground-log-meta">{~D:Record.Meta~}</span>'}],Renderables:[]};e.exports=class extends n{constructor(t,e,o){super(t,e,o),this._DefaultCode="// Fable Playground. 'fable' is a fresh Fable instance.\n// Anything you log lands in the panel to the right.\n\nfable.log.info('Hello from the playground!');\n\n// Each level has its own color:\nfable.log.trace('trace messages (most verbose)');\nfable.log.debug('debug messages');\nfable.log.info('info messages');\nfable.log.warn('warnings stand out');\nfable.log.error('errors are loud');\nfable.log.fatal('FATAL records flag in red');\n\n// Records can carry a data payload:\nfable.log.info('Action completed', { user: 'alice', ms: 42 });\n\n// Full service access:\nfable.log.info('Generated UUID', { id: fable.UUID.getUUID() });\nfable.log.info('Product setting', { product: fable.SettingsManager.settings.Product });\n\n// Async logs work too — the panel updates as records arrive:\nsetTimeout(() => fable.log.info('arrived 100ms later'), 100);\nsetTimeout(() => fable.log.warn('arrived 250ms later'), 250);\n\n// Bonus: require() works for a curated set of Retold modules:\nconst Fable = require('fable');\nlet mine = new Fable({ Product: 'BYO-Fable' });\nfable.log.info('Fable class via require()', { sameAsFableCtor: Fable === fable.constructor });\n",this._codeJarPromise=null,this._asyncRenderTimer=null,this._currentRunRecords=null,this._currentRunStart=0,this._statusClearTimer=null,this._mountedInDrawer=!1,this._registerCodeEditor()}mountIntoDrawer(){if(this._mountedInDrawer)return;let t=document.getElementById("Docuserve-Playground-Drawer-Content");t&&(this.mountInto(t),this._mountedInDrawer=!0)}mountInto(t){if(!t)return;this._setupPlaygroundState();let e=this.pict.parseTemplateByHash("Docuserve-Fable-Playground-Template",{});t.innerHTML=e;let o=document.getElementById("Docuserve-Fable-Playground-AutoCapture-Toggle");o&&(o.checked=!!this.pict.AppData.Docuserve.Playground.AutoCaptureUserFables),this._wireHelpTooltip(),this._mountCodeEditor()}_wireHelpTooltip(){let t=document.getElementById("Docuserve-Fable-Playground-HelpBtn"),e=this.pict.views["Pict-Section-Modal"];if(!t||!e||"function"!=typeof e.richTooltip)return;this._helpTooltip&&"function"==typeof this._helpTooltip.destroy&&this._helpTooltip.destroy();this._helpTooltip=e.richTooltip(t,'<div style="font-size:12px;line-height:1.5;"><strong>JS Playground</strong> &mdash; write JavaScript that receives a fresh <code>fable</code> instance. Every <code>fable.log.*</code> call is captured and shown in the Log Output panel. Toggle <em>auto-attach</em> off to get a raw Fable whose log streams you wire yourself. Press the play button to run; click the copy icon to grab the code or the output.</div>',{position:"bottom",interactive:!0,maxWidth:"340px",delay:80})}copyCode(){this._copyToClipboard(this._getCurrentCode(),"code")}copyLog(){let t=(this.pict.AppData.Docuserve.Playground&&this.pict.AppData.Docuserve.Playground.LogLines||[]).map(function(t){if("banner"===t.Level)return t.Message;let e=t.Time+" "+t.Level.toUpperCase()+" "+t.Message;return Array.isArray(t.DatumSlot)&&t.DatumSlot.length>0&&(e+=" "+t.DatumSlot[0].Datum),e}).join("\n");this._copyToClipboard(t,"log")}_copyToClipboard(t,e){let o=t=>{let o=this.pict.views["Pict-Section-Modal"];o&&"function"==typeof o.toast&&o.toast(t?"log"===e?"Log copied":"Code copied":"Copy failed",{type:t?"success":"error",duration:1500})};if(navigator.clipboard&&"function"==typeof navigator.clipboard.writeText)navigator.clipboard.writeText(t).then(()=>o(!0)).catch(()=>o(!1));else try{let e=document.createElement("textarea");e.value=t,e.style.position="fixed",e.style.opacity="0",document.body.appendChild(e),e.select();let n=document.execCommand("copy");document.body.removeChild(e),o(n)}catch(t){o(!1)}}setAutoCapture(t){this.pict.AppData.Docuserve.Playground.AutoCaptureUserFables=!!t;try{window.localStorage.setItem(s,t?"1":"0")}catch(t){}}loadCode(t){if("string"!=typeof t)return;let e=this.pict.AppData.Docuserve.Playground||{};e.Code=t,this.pict.AppData.Docuserve.Playground=e,this._saveCode(t);let o=this.pict.views[l];o&&o.codeJar&&"function"==typeof o.setCode&&o.setCode(t);let n=this.pict.views["Docuserve-Layout"];n&&"function"==typeof n.expandPlayground&&n.expandPlayground()}_setupPlaygroundState(){let t=this.pict.AppData.Docuserve.Playground||{};t.Title="Fable Playground",t.Description="Write JavaScript that receives a fresh `fable` instance. Every log call is captured and rendered in the panel on the right.";let e=t.Code,o=this._loadSavedCode();t.Code="string"==typeof e&&e.length>0?e:"string"==typeof o&&o.length>0?o:this._DefaultCode,t.LogLines=[],t.LogEmptySlot=[{}],t.LogMetaSlot=[];let n=null;try{n=window.localStorage.getItem(s)}catch(t){}t.AutoCaptureUserFables=null===n||"1"===n,this.pict.AppData.Docuserve.Playground=t}_mountCodeEditor(){this._loadCodeJar().then(t=>{let e=this.pict.views[l];e&&(e._codeJarPrototype||e.connectCodeJarPrototype(t),e.codeJar&&"function"==typeof e.destroy&&e.destroy(),e.render())}).catch(t=>{let e=document.getElementById(c);e&&(e.innerHTML='<div class="docuserve-playground-codejar-error">Editor failed to load: '+this._escapeHTML(t&&t.message?t.message:String(t))+"</div>")})}run(){this._cancelAsyncRender(),this._cancelFinishBanner();let t=this._getCurrentCode();this.pict.AppData.Docuserve.Playground.Code=t;let e,o=[],n=Date.now();this._currentRunRecords=o,this._currentRunStart=n,o.push({level:"banner",message:this._formatStartBanner(n),datum:null,ms:0});try{let t=this.fable&&this.fable.constructor;if("function"!=typeof t)throw new Error("Fable constructor unavailable on this.fable");e=new t({Product:"FablePlayground",LogStreams:[]}),e.log.addLogger(this._buildCaptureLogger(o,n),"trace")}catch(t){o.push({level:"error",message:"Fable instantiation failed: "+this._errorMessage(t),datum:null,ms:0})}let r=null;if(e)try{let r=this._buildRequireShim(e,o,n),i=this._buildCapturingConsole(o,n),a=new Function("fable","pict","require","console","return (async () => { "+t+"\n})();")(e,this.pict,r,i);if(a&&"function"==typeof a.then){let t=this;a.then(()=>{},e=>{o===t._currentRunRecords&&(o.push({level:"error",message:t._errorMessage(e),datum:null,ms:Date.now()-n}),t._scheduleAsyncLogRender())})}}catch(t){r=t,o.push({level:"error",message:this._errorMessage(t),datum:null,ms:Date.now()-n})}this._setLogRecords(o,Date.now()-n,r),this._renderLogOnly(),this._scheduleFinishBanner(o,n,r)}_scheduleFinishBanner(t,e,o){this._cancelFinishBanner();let n=this,r=t.length,i=(Date.now(),r=>{if(n._finishBannerTimer=null,n._finishBannerMaxTimer&&(clearTimeout(n._finishBannerMaxTimer),n._finishBannerMaxTimer=null),t!==n._currentRunRecords)return;let i=Date.now()-e;t.push({level:"banner",message:n._formatFinishBanner(i,o,r),datum:null,ms:i}),n._setLogRecords(t,i,o),n._renderLogOnly()}),a=()=>{t===n._currentRunRecords?t.length===r?i(!1):(r=t.length,n._finishBannerTimer=setTimeout(a,200)):n._cancelFinishBanner()};this._finishBannerTimer=setTimeout(a,200),this._finishBannerMaxTimer=setTimeout(()=>i(!0),1e4)}_cancelFinishBanner(){this._finishBannerTimer&&(clearTimeout(this._finishBannerTimer),this._finishBannerTimer=null),this._finishBannerMaxTimer&&(clearTimeout(this._finishBannerMaxTimer),this._finishBannerMaxTimer=null)}_buildCapturingConsole(t,e){let o=this,n="undefined"!=typeof console?console:null,r=t=>{if(!n)return function(){};let e=n[t]||n.log;return function(){try{e.apply(n,arguments)}catch(t){}}},i=n=>{let i=r(n);return function(){if(i.apply(null,arguments),t!==o._currentRunRecords)return;let r=Array.prototype.slice.call(arguments),a=[],s=null;for(let t=0;t<r.length;t++){let e=r[t];"string"==typeof e?a.push(e):null===s&&e&&"object"==typeof e?s=e:a.push(o._formatDatum(e))}t.push({level:n,message:"[console] "+a.join(" "),datum:s,ms:Date.now()-e}),o._scheduleAsyncLogRender()}};return{log:i("info"),info:i("info"),warn:i("warn"),error:i("error"),debug:i("debug"),trace:i("trace"),group:r("group"),groupEnd:r("groupEnd"),groupCollapsed:r("groupCollapsed"),table:r("table"),dir:r("dir"),time:r("time"),timeEnd:r("timeEnd"),count:r("count"),countReset:r("countReset"),assert:r("assert"),clear:r("clear")}}_formatStartBanner(t){return"─── run started · "+this._formatWallClock(t)+" "+this._padDashes(40)}_formatFinishBanner(t,e,o){let n;return n=e?"run threw":o?"run still emitting · cut off at cap":"run finished","─── "+n+(" · elapsed "+t+"ms ")+this._padDashes(40)}_formatWallClock(t){let e=new Date(t),o=(t,e)=>{let o=String(t);for(;o.length<e;)o="0"+o;return o};return o(e.getHours(),2)+":"+o(e.getMinutes(),2)+":"+o(e.getSeconds(),2)+"."+o(e.getMilliseconds(),3)}_padDashes(t){let e="";for(let o=0;o<t;o++)e+="─";return e}clear(){this._cancelAsyncRender(),this._cancelFinishBanner(),this._currentRunRecords=null,this._currentRunStart=0,this._setLogRecords([],0,null),this._renderLogOnly()}reset(){let t=this.pict.views[l];t&&"function"==typeof t.setCode&&t.setCode(this._DefaultCode),this.pict.AppData.Docuserve.Playground.Code=this._DefaultCode,this._clearSavedCode(),this._setStatus("reset")}_loadCodeJar(){return this._codeJarPromise||(this._codeJarPromise=new Function("u","return import(u)")("https://cdn.jsdelivr.net/npm/codejar@4.2.0/dist/codejar.min.js").then(t=>{if(!t||"function"!=typeof t.CodeJar)throw new Error("CodeJar export not found in module");return t.CodeJar})),this._codeJarPromise}_registerCodeEditor(){let t={ViewIdentifier:l,DefaultDestinationAddress:"#"+c,Templates:[{Hash:"CodeEditor-Container",Template:"\x3c!-- pict-section-code mount --\x3e"}],Renderables:[{RenderableHash:"CodeEditor-Wrap",TemplateHash:"CodeEditor-Container",DestinationAddress:"#"+c}],TargetElementAddress:"#"+c,Language:"javascript",LineNumbers:!0,Tab:"\t",AddClosing:!0,CatchTab:!0,CodeDataAddress:"AppData.Docuserve.Playground.Code",DefaultCode:this._DefaultCode,AutoRender:!1,RenderOnLoad:!1};this.pict.addView(l,t,d)}_buildRequireShim(t,e,o){let n=this.pict,r=t.constructor,a=this,s=!!this.pict.AppData.Docuserve.Playground.AutoCaptureUserFables;function l(t){let n=Object.assign({},t||{},{LogStreams:[]}),i=new r(n);return i.log.addLogger(a._buildCaptureLogger(e,o),"trace"),i}let c=t.Logging&&t.Logging.constructor;function d(t,n){let r=new c(t,n);return r.addLogger(a._buildCaptureLogger(e,o),"trace"),r}if(c){let t=Object.getOwnPropertyNames(c);for(let e=0;e<t.length;e++){let o=t[e];if("length"!==o&&"name"!==o&&"prototype"!==o)try{d[o]=c[o]}catch(t){}}d.new=function(t){return d(t)}}let p={fable:()=>s?l:r,pict:()=>n.constructor,"fable-uuid":()=>t.UUID&&t.UUID.constructor,"fable-settings":()=>t.SettingsManager&&t.SettingsManager.constructor,"fable-log":()=>c?d:null,"fable-serviceproviderbase":()=>i},h=this.pict.AppData.Docuserve.Playground.Config,u=null;if(h&&Array.isArray(h.Imports)&&h.Imports.length>0){u={};for(let t=0;t<h.Imports.length;t++){let e=h.Imports[t];e&&"string"==typeof e.Name&&(u[e.Name]=e.Source||"bundled")}}return function(t){let e,o=p[t],n=null===u||Object.prototype.hasOwnProperty.call(u,t);if(o&&n)return o();throw e=null!==u?Object.keys(u):Object.keys(p),new Error("require('"+t+"') is not available in this playground. Allowed here: "+e.map(t=>"'"+t+"'").join(", ")+".")}}_buildCaptureLogger(t,e){let o="playground-"+Date.now()+"-"+Math.floor(1e9*Math.random()),n=this,r=(o,r,i)=>{t.push({level:o,message:null==r?"":String(r),datum:null==i?null:i,ms:Date.now()-e}),t===n._currentRunRecords&&n._scheduleAsyncLogRender()};return{loggerUUID:o,initialize:()=>{},trace:(t,e)=>r("trace",t,e),debug:(t,e)=>r("debug",t,e),info:(t,e)=>r("info",t,e),warn:(t,e)=>r("warn",t,e),error:(t,e)=>r("error",t,e),fatal:(t,e)=>r("fatal",t,e)}}_scheduleAsyncLogRender(){this._asyncRenderTimer||(this._asyncRenderTimer=setTimeout(()=>{if(this._asyncRenderTimer=null,!this._currentRunRecords)return;let t=Date.now()-this._currentRunStart;this._setLogRecords(this._currentRunRecords,t,null),this._renderLogOnly()},60))}_cancelAsyncRender(){this._asyncRenderTimer&&(clearTimeout(this._asyncRenderTimer),this._asyncRenderTimer=null)}_setLogRecords(t,e,o){let n=this.pict.AppData.Docuserve.Playground;if(n.LogLines=t.map(t=>({Time:this._formatTime(t.ms),Level:t.level,Message:this._escapeHTML(t.message),DatumSlot:null==t.datum?[]:[{Datum:this._escapeHTML(this._formatDatum(t.datum))}]})),n.LogEmptySlot=0===t.length?[{}]:[],t.length>0){let r=t.length+" record"+(1===t.length?"":"s")+" · "+e+"ms";o&&(r+=" · run threw"),n.LogMetaSlot=[{Meta:r}]}else n.LogMetaSlot=[]}_renderLogOnly(){let t=this.pict.parseTemplateByHash("Docuserve-Fable-Playground-Log-Body-Template",{});this.pict.ContentAssignment.assignContent("#Docuserve-Fable-Playground-Log",t)}_loadSavedCode(){try{return window.localStorage.getItem(a)}catch(t){return null}}_saveCode(t){try{window.localStorage.setItem(a,t)}catch(t){}}_clearSavedCode(){try{window.localStorage.removeItem(a)}catch(t){}}_getCurrentCode(){let t=this.pict.views[l];if(t&&"function"==typeof t.getCode){let e=t.getCode();if("string"==typeof e)return e}return this.pict.AppData.Docuserve.Playground.Code||""}_setStatus(t){let e=document.getElementById("Docuserve-Fable-Playground-Status");e&&(e.textContent=t,this._statusClearTimer&&clearTimeout(this._statusClearTimer),this._statusClearTimer=setTimeout(()=>{e.textContent===t&&(e.textContent="")},1200))}_formatTime(t){let e=Math.max(0,Math.floor(t||0)),o=String(e);for(;o.length<4;)o=" "+o;return o+"ms"}_formatDatum(t){if("string"==typeof t)return t;try{return JSON.stringify(t)}catch(t){return"(unserializable: "+this._errorMessage(t)+")"}}_errorMessage(t){return t?t.message?t.message:String(t):""}_escapeHTML(t){return null==t?"":String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}},e.exports.default_configuration=p},{"fable-serviceproviderbase":2,"pict-section-code":10,"pict-view":75}],85:[function(t,e,o){const n=t("pict-view");e.exports=class extends n{constructor(t,e,o){super(t,e,o),this._shell=null,this._shellPanelsBuilt=!1}onAfterRender(t,e,o,n){return this.pict.CSSMap.injectCSS(),this._shellPanelsBuilt||(this._buildShell(),this._shellPanelsBuilt=!0),this.pict.PictApplication.resolveHash(),this._wireHashChangeListener(),super.onAfterRender(t,e,o,n)}_buildShell(){let t=this.pict.views["Pict-Section-Modal"];if(!t||"function"!=typeof t.shell)return void(this.log&&this.log.warn&&this.log.warn("Docuserve-Layout: pict-section-modal.shell not available"));let e=document.getElementById("Docuserve-Layout-Mount");if(!e)return void(this.log&&this.log.warn&&this.log.warn("Docuserve-Layout: #Docuserve-Layout-Mount missing"));this._shell=t.shell(e,{PersistenceKey:"docuserve-shell"}),this._shell.addPanel({Hash:"topbar",Side:"top",Mode:"fixed",Size:56,ContentDestinationId:"Theme-TopBar",ContentView:"Theme-TopBar"}),this._shell.addPanel({Hash:"sidebar",Side:"left",Mode:"resizable",Size:280,MinSize:200,MaxSize:500,Title:"Documentation",ContentDestinationId:"Docuserve-Sidebar-Container",ContentView:"Docuserve-Sidebar",ResponsiveDrawer:900}),this._shell.addPanel({Hash:"playground-drawer",Side:"bottom",Scope:"center",Mode:"resizable",Size:420,MinSize:320,MaxSize:800,Collapsed:!0,Title:"JS Playground",ContentDestinationId:"Docuserve-Playground-Drawer-Content",OnExpand:()=>{this._onPlaygroundDrawerExpand()}}),this._shell.center({ContentDestinationId:"Docuserve-Content-Container"});let o=this._shell.getPanel("playground-drawer");o&&!o.Collapsed&&this._onPlaygroundDrawerExpand()}_onPlaygroundDrawerExpand(){if(this._playgroundMounted)return;let t=this.pict.views["Docuserve-Fable-Playground"];t&&"function"==typeof t.mountIntoDrawer&&(t.mountIntoDrawer(),this._playgroundMounted=!0)}_wireHashChangeListener(){if(this._hashListenerBound)return;this._hashListenerBound=!0;let t=this;window.addEventListener("hashchange",()=>{t.pict.PictApplication.resolveHash()})}getSidebarPanel(){return this._shell?this._shell.getPanel("sidebar"):null}toggleSidebar(){let t=this.getSidebarPanel();t&&t.toggle()}getPlaygroundPanel(){return this._shell?this._shell.getPanel("playground-drawer"):null}setPlaygroundEnabled(t){let e=document.getElementById("Docuserve-Layout-Mount");if(e)if(t)e.classList.remove("docuserve-playground-disabled");else{e.classList.add("docuserve-playground-disabled");let t=this.getPlaygroundPanel();t&&"function"==typeof t.collapse&&t.collapse()}}expandPlayground(){let t=this.getPlaygroundPanel();t&&"function"==typeof t.expand&&t.expand()}setPlaygroundTitle(t){let e=this.getPlaygroundPanel();if(!e||!e.El)return;let o="string"==typeof t&&t.length>0?t:"JS Playground";if(e.Title=o,e._collapseTab){e._collapseTab.setAttribute("aria-label","Toggle "+o),e._collapseTab.title=o;let t=e._collapseTab.querySelector(".pict-modal-shell-panel-collapse-tab-title");t&&(t.textContent=o)}}collapsePlayground(){let t=this.getPlaygroundPanel();t&&"function"==typeof t.collapse&&t.collapse()}togglePlayground(){let t=this.getPlaygroundPanel();t&&"function"==typeof t.toggle&&t.toggle()}},e.exports.default_configuration={ViewIdentifier:"Docuserve-Layout",DefaultRenderable:"Docuserve-Layout-Shell",DefaultDestinationAddress:"#Docuserve-Application-Container",AutoRender:!1,CSS:"\n\t\t/* Global resets — these used to live in css/docuserve.css. Now\n\t\t that docuserve ships its theming entirely through view CSSMap\n\t\t (no external <link> required), the resets travel with the JS\n\t\t bundle so consumers can't forget to load them. */\n\t\t*, *::before, *::after { box-sizing: border-box; }\n\t\thtml, body\n\t\t{\n\t\t\theight: 100%;\n\t\t\tmargin: 0;\n\t\t\tpadding: 0;\n\t\t\tfont-family: var(--theme-typography-family-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif);\n\t\t\tfont-size: 16px;\n\t\t\tline-height: 1.5;\n\t\t\t-webkit-font-smoothing: antialiased;\n\t\t\t-moz-osx-font-smoothing: grayscale;\n\t\t}\n\t\tbody\n\t\t{\n\t\t\tbackground: var(--theme-color-background-primary, #FDFBF7);\n\t\t\tcolor: var(--theme-color-text-primary, #2A241E);\n\t\t\ttransition: background-color 0.15s ease, color 0.15s ease;\n\t\t}\n\t\t::-webkit-scrollbar { width: 8px; height: 8px; }\n\t\t::-webkit-scrollbar-track { background: var(--theme-color-scrollbar-track, #F5F0E8); }\n\t\t::-webkit-scrollbar-thumb { background: var(--theme-color-scrollbar-thumb, #D4CCBE); border-radius: 4px; }\n\t\t::-webkit-scrollbar-thumb:hover { background: var(--theme-color-scrollbar-hover, #B5AA9A); }\n\t\t/* height: 100% (not 100vh) — Theme-Scale applies CSS zoom on\n\t\t <html>; vh units render against the un-zoomed viewport and\n\t\t push panels off-screen at non-1.0 scale. */\n\t\t#Docuserve-Application-Container\n\t\t{\n\t\t\theight: 100%;\n\t\t\tmin-height: 0;\n\t\t\toverflow: hidden;\n\t\t}\n\t\t.pict-modal-shell-host { height: 100%; }\n\t\t.pict-modal-shell { background: var(--theme-color-background-primary, #FDFBF7); }\n\t\t.pict-modal-shell-panel { background: var(--theme-color-background-panel, #FFFFFF); }\n\t\t.pict-modal-shell-center { background: var(--theme-color-background-primary, #FDFBF7); }\n\n\t\t/* Center workspace — content / splash / search views write into\n\t\t #Docuserve-Content-Container which the shell provisions as the\n\t\t center destination. */\n\t\t#Docuserve-Content-Container\n\t\t{\n\t\t\theight: 100%;\n\t\t\tmin-height: 0;\n\t\t\toverflow-y: auto;\n\t\t}\n\n\t\t/* The Sidebar view writes into the panel's destination\n\t\t (#Docuserve-Sidebar-Container). Its own CSS lives in\n\t\t PictView-Docuserve-Sidebar — here we just guarantee the panel\n\t\t wrap is scrollable and themed. */\n\t\t#Docuserve-Sidebar-Container\n\t\t{\n\t\t\theight: 100%;\n\t\t\tmin-height: 0;\n\t\t\toverflow-y: auto;\n\t\t\tbackground: var(--theme-color-background-secondary, #FAF7F1);\n\t\t}\n\n\t\t/* Playground panel suppression — the bottom drawer (and its\n\t\t collapsed tab strip) only takes layout space on pages that\n\t\t have opted into the playground via a \"Code Playground\"\n\t\t entry in their module's _sidebar.md. Everywhere else we\n\t\t hide the panel entirely so the doc content gets the full\n\t\t vertical area. The class is toggled by\n\t\t setPlaygroundEnabled() on each navigation. */\n\t\t.docuserve-playground-disabled .pict-modal-shell-center > .pict-modal-shell-panel-bottom\n\t\t{\n\t\t\tdisplay: none !important;\n\t\t}\n\n\t\t/* Kill the height transition on the playground drawer.\n\t\t pict-section-modal ships a 0.14s height transition on every\n\t\t shell panel for smooth resize handoffs, but when the play\n\t\t button mounts the CodeJar editor mid-expand the synchronous\n\t\t innerHTML rewrite races the transition and the panel gets\n\t\t stuck at its pre-transition size. Snapping the resize\n\t\t avoids the race and the user never sees the in-between\n\t\t frames anyway. */\n\t\t.pict-modal-shell-center > .pict-modal-shell-panel-bottom\n\t\t{\n\t\t\ttransition: none !important;\n\t\t}\n\t",Templates:[{Hash:"Docuserve-Layout-Shell-Template",Template:'<div id="Docuserve-Layout-Mount" style="height:100%"></div>'}],Renderables:[{RenderableHash:"Docuserve-Layout-Shell",TemplateHash:"Docuserve-Layout-Shell-Template",DestinationAddress:"#Docuserve-Application-Container",RenderMethod:"replace"}]}},{"pict-view":75}],86:[function(t,e,o){const n=t("pict-view");e.exports=class extends n{constructor(t,e,o){super(t,e,o),this._SearchDebounceTimer=null}showSearch(t){this._setIdleStatus(t),this.pict.AppData.Docuserve.SearchResults=[],this.render();let e=document.getElementById("Docuserve-Search-Input");e&&(e.value=t||"",e.focus()),t&&t.trim()&&this.performSearch(t);let o=document.getElementById("Docuserve-Content-Container");o&&(o.scrollTop=0)}onSearchInput(t){this._SearchDebounceTimer&&clearTimeout(this._SearchDebounceTimer),this._SearchDebounceTimer=setTimeout(()=>{this.performSearch(t)},250)}performSearch(t){let e=this.pict.AppData.Docuserve;if(!t||!t.trim())return this._setIdleStatus(t),e.SearchResults=[],this._renderResultsRegion(),void this._renderStatusRegion();let o=this.pict.providers["Docuserve-Documentation"].search(t);if(0===o.length)return e.SearchResults=[],e.SearchStatus="No results found for '"+this._escapeHTML(t)+"'.",this._renderResultsRegion(),void this._renderStatusRegion();let n=[];for(let t=0;t<o.length;t++){let e=o[t];n.push({Title:e.Title,Route:e.Route,Group:e.Group||"",Module:e.Module||"",BreadcrumbSlot:e.Group&&e.Module?[{Group:e.Group,Module:e.Module}]:[],PathSlot:e.DocPath?[{DocPath:e.DocPath}]:[],DocPath:e.DocPath||""})}e.SearchResults=n,e.SearchStatus=o.length+" result"+(1!==o.length?"s":"")+" for '"+this._escapeHTML(t)+"'",this._renderResultsRegion(),this._renderStatusRegion()}_setIdleStatus(t){let e=this.pict.AppData.Docuserve.KeywordDocumentCount||0;this.pict.AppData.Docuserve.SearchStatus=e>0?"Search across "+e+" documents.":"Enter a search term to find documentation."}_renderResultsRegion(){let t=this.pict.parseTemplateByHash("Docuserve-Search-ResultsBody-Template",{});this.pict.ContentAssignment.assignContent("#Docuserve-Search-Results",t)}_renderStatusRegion(){this.pict.ContentAssignment.assignContent("#Docuserve-Search-Status",this.pict.AppData.Docuserve.SearchStatus||"")}_escapeHTML(t){return t?String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;"):""}},e.exports.default_configuration={ViewIdentifier:"Docuserve-Search",DefaultRenderable:"Docuserve-Search-Display",DefaultDestinationAddress:"#Docuserve-Content-Container",AutoRender:!1,CSS:"\n\t\t.docuserve-search {\n\t\t\tpadding: 2em 3em;\n\t\t\tmax-width: 900px;\n\t\t\tmargin: 0 auto;\n\t\t}\n\t\t.docuserve-search-header {\n\t\t\tmargin-bottom: 1.5em;\n\t\t}\n\t\t.docuserve-search-header h1 {\n\t\t\tfont-size: 1.75em;\n\t\t\tcolor: var(--theme-color-text-primary, #3D3229);\n\t\t\tmargin: 0 0 0.75em 0;\n\t\t}\n\t\t.docuserve-search-input {\n\t\t\twidth: 100%;\n\t\t\tpadding: 0.75em 1em;\n\t\t\tfont-size: 1.1em;\n\t\t\tborder: 2px solid var(--theme-color-border-default, #D4CCBE);\n\t\t\tborder-radius: 6px;\n\t\t\toutline: none;\n\t\t\tbox-sizing: border-box;\n\t\t\ttransition: border-color 0.15s;\n\t\t}\n\t\t.docuserve-search-input:focus {\n\t\t\tborder-color: var(--theme-color-brand-primary, #2E7D74);\n\t\t}\n\t\t.docuserve-search-status {\n\t\t\tmargin-top: 0.75em;\n\t\t\tfont-size: 0.9em;\n\t\t\tcolor: var(--theme-color-text-muted, #8A7F72);\n\t\t}\n\t\t.docuserve-search-results {\n\t\t\tmargin-top: 1em;\n\t\t}\n\t\t.docuserve-search-result {\n\t\t\tdisplay: block;\n\t\t\tpadding: 1em 1.25em;\n\t\t\tmargin-bottom: 0.5em;\n\t\t\tborder: 1px solid var(--theme-color-border-light, #EAE3D8);\n\t\t\tborder-radius: 6px;\n\t\t\ttext-decoration: none;\n\t\t\tcolor: inherit;\n\t\t\ttransition: border-color 0.15s, box-shadow 0.15s;\n\t\t}\n\t\t.docuserve-search-result:hover {\n\t\t\tborder-color: var(--theme-color-brand-primary, #2E7D74);\n\t\t\tbox-shadow: 0 2px 8px rgba(46, 125, 116, 0.1);\n\t\t}\n\t\t.docuserve-search-result-title {\n\t\t\tfont-size: 1.05em;\n\t\t\tfont-weight: 600;\n\t\t\tcolor: var(--theme-color-brand-primary, #2E7D74);\n\t\t\tmargin-bottom: 0.25em;\n\t\t}\n\t\t.docuserve-search-result-breadcrumb {\n\t\t\tfont-size: 0.8em;\n\t\t\tcolor: var(--theme-color-text-muted, #8A7F72);\n\t\t\tmargin-bottom: 0.2em;\n\t\t}\n\t\t.docuserve-search-result-breadcrumb-sep {\n\t\t\tdisplay: inline-block;\n\t\t\tvertical-align: middle;\n\t\t\tfont-size: 0.85em;\n\t\t\tmargin: 0 0.15em;\n\t\t\topacity: 0.7;\n\t\t}\n\t\t.docuserve-search-result-path {\n\t\t\tfont-size: 0.8em;\n\t\t\tcolor: var(--theme-color-text-muted, #A39889);\n\t\t\tfont-family: monospace;\n\t\t}\n\t\t.docuserve-search-empty {\n\t\t\ttext-align: center;\n\t\t\tpadding: 3em 1em;\n\t\t\tcolor: var(--theme-color-text-muted, #8A7F72);\n\t\t\tfont-size: 1em;\n\t\t}\n\t",Templates:[{Hash:"Docuserve-Search-Template",Template:'<div class="docuserve-search">\n\t<div class="docuserve-search-header">\n\t\t<h1>Search Documentation</h1>\n\t\t<input type="text" class="docuserve-search-input" id="Docuserve-Search-Input" placeholder="Search across all modules..." oninput="{~P~}.views[\'Docuserve-Search\'].onSearchInput(this.value)">\n\t\t<div id="Docuserve-Search-Status" class="docuserve-search-status">{~D:AppData.Docuserve.SearchStatus~}</div>\n\t</div>\n\t<div id="Docuserve-Search-Results" class="docuserve-search-results">\n\t\t{~TS:Docuserve-Search-Result-Template:AppData.Docuserve.SearchResults~}\n\t</div>\n</div>'},{Hash:"Docuserve-Search-ResultsBody-Template",Template:"{~TS:Docuserve-Search-Result-Template:AppData.Docuserve.SearchResults~}"},{Hash:"Docuserve-Search-Result-Template",Template:'<a class="docuserve-search-result" href="{~D:Record.Route~}">\n\t<div class="docuserve-search-result-title">{~D:Record.Title~}</div>\n\t{~TS:Docuserve-Search-Result-Breadcrumb-Template:Record.BreadcrumbSlot~}\n\t{~TS:Docuserve-Search-Result-Path-Template:Record.PathSlot~}\n</a>'},{Hash:"Docuserve-Search-Result-Breadcrumb-Template",Template:'<div class="docuserve-search-result-breadcrumb">{~D:Record.Group~} <span class="docuserve-search-result-breadcrumb-sep">{~I:ChevronRight~}</span> {~D:Record.Module~}</div>'},{Hash:"Docuserve-Search-Result-Path-Template",Template:'<div class="docuserve-search-result-path">{~D:Record.DocPath~}</div>'}],Renderables:[{RenderableHash:"Docuserve-Search-Display",TemplateHash:"Docuserve-Search-Template",DestinationAddress:"#Docuserve-Content-Container",RenderMethod:"replace"}]}},{"pict-view":75}],87:[function(t,e,o){const n=t("pict-view");e.exports=class extends n{constructor(t,e,o){super(t,e,o),this._SidebarSearchDebounceTimer=null}onBeforeRender(t){return this._refreshSearchSlot(),this._refreshFooterSlot(),this._refreshSidebarGroupRecords(),this._refreshModuleNavSections(),super.onBeforeRender(t)}renderSidebarGroups(){this.render()}renderModuleNav(){this.render()}clearModuleNav(){this.render()}onSidebarSearchInput(t){this._SidebarSearchDebounceTimer&&clearTimeout(this._SidebarSearchDebounceTimer),this._SidebarSearchDebounceTimer=setTimeout(()=>{this.performSidebarSearch(t)},250)}performSidebarSearch(t){this._refreshSearchResults(t);let e=this.pict.parseTemplateByHash("Docuserve-Sidebar-Search-ResultsBody-Template",{});this.pict.ContentAssignment.assignContent("#Docuserve-Sidebar-Search-Results",e)}toggleSidebar(){let t=this.pict.views["Docuserve-Layout"];if(t&&"function"==typeof t.toggleSidebar)return void t.toggleSidebar();this.pict.AppData.Docuserve.SidebarVisible=!this.pict.AppData.Docuserve.SidebarVisible;let e=document.getElementById("Docuserve-Sidebar-Container");e&&(e.style.display=this.pict.AppData.Docuserve.SidebarVisible?"":"none")}_refreshSearchSlot(){this.pict.AppData.Docuserve.SidebarSearchSlot=this.pict.AppData.Docuserve.KeywordIndexLoaded?[{}]:[]}_refreshFooterSlot(){let t=this.pict.AppData.Docuserve;if(!t.VersionLoaded||!t.Version||!t.Version.Version)return void(t.FooterSlot=[]);let e=t.Version,o={Version:e.Version,NameSlot:e.Name?[{Name:e.Name}]:[],MetaSlot:[]},n=[];if(e.GeneratedAt){let t=String(e.GeneratedAt).match(/^(\d{4}-\d{2}-\d{2})/);t&&n.push("built "+t[1])}e.GitCommit&&n.push(e.GitCommit),n.length>0&&(o.MetaSlot=[{Meta:n.join(" · ")}]),t.FooterSlot=[o]}_refreshSidebarGroupRecords(){let t=this.pict.AppData.Docuserve.SidebarGroups||[],e=this.pict.AppData.Docuserve.CurrentGroup,o=this.pict.AppData.Docuserve.CurrentModule,n="undefined"!=typeof window&&window.location&&window.location.hash||"",r=[];for(let i=0;i<t.length;i++){let a=t[i],s=a.Route||"";if(!s)for(let t=0;t<a.Modules.length;t++)if(a.Modules[t].HasDocs&&a.Modules[t].Route){s=a.Modules[t].Route;break}let l=e===a.Key||n===s,c=[],d=[];s?c.push({Name:a.Name,Route:s,ActiveClass:l?" active":""}):d.push({Name:a.Name});let p=[];for(let t=0;t<a.Modules.length;t++){let n=a.Modules[t];if(n.HasDocs){let t=e===n.Group&&o===n.Name;p.push({LinkSlot:[{Name:n.Name,Route:n.Route,ActiveClass:t?"active":""}],NoDocSlot:[]})}else p.push({LinkSlot:[],NoDocSlot:[{Name:n.Name}]})}r.push({TitleLink:c,TitlePlain:d,Modules:p})}this.pict.AppData.Docuserve.SidebarGroupRecords=r}_refreshModuleNavSections(){let t=this.pict.AppData.Docuserve.CurrentGroup,e=this.pict.AppData.Docuserve.CurrentModule;if(!t||!e)return void(this.pict.AppData.Docuserve.ModuleNavSections=[]);let o=this.pict.providers["Docuserve-Documentation"],n=this.pict.providers["Docuserve-Demos"],r=o?o.getModuleSidebar(t,e):null,i=n?n.listByModule(t,e):[];if((!r||r.length<1)&&i.length<1)return void(this.pict.AppData.Docuserve.ModuleNavSections=[]);let a="#/doc/"+t+"/"+e+"/",s="#/demo/"+t+"/"+e+"/",l=this.pict.AppData.Docuserve.CurrentDemo||"",c=[];if(r&&r.length>0){let t=null;for(let e=0;e<r.length;e++){let o=r[e];if(o.Children){t={TitleSlot:[{Title:o.Title}],Items:[]},c.push(t);for(let e=0;e<o.Children.length;e++){let n=o.Children[e];n.Path&&t.Items.push({Title:n.Title,Route:a+n.Path,ActiveClass:""})}}else o.Path&&((!t||t.TitleSlot.length>0)&&(t={TitleSlot:[],Items:[]},c.push(t)),t.Items.push({Title:o.Title,Route:a+o.Path,ActiveClass:""}))}}if(i.length>0){let t={TitleSlot:[{Title:"Demos"}],Items:[]};for(let e=0;e<i.length;e++){let o=i[e];t.Items.push({Title:o.Name||o.Hash,Route:s+o.Hash,ActiveClass:o.Hash===l?"active":""})}c.push(t)}this.pict.AppData.Docuserve.ModuleNavSections=c}_refreshSearchResults(t){let e=this.pict.AppData.Docuserve;if(!t||!t.trim())return e.SidebarSearchResults=[],e.SidebarSearchOverflow=[],void(e.SidebarSearchEmpty=[]);let o=this.pict.providers["Docuserve-Documentation"].search(t);if(0===o.length)return e.SidebarSearchResults=[],e.SidebarSearchOverflow=[],void(e.SidebarSearchEmpty=[{}]);let n=[];for(let t=0;t<o.length&&t<8;t++){let e=o[t],r=e.Group&&e.Module?e.Group+" / "+e.Module:"";n.push({Title:e.Title,Route:e.Route,MetaSlot:r?[{Meta:r}]:[]})}e.SidebarSearchResults=n,e.SidebarSearchEmpty=[],o.length>8?e.SidebarSearchOverflow=[{EncodedQuery:encodeURIComponent(t),TotalCount:o.length}]:e.SidebarSearchOverflow=[]}},e.exports.default_configuration={ViewIdentifier:"Docuserve-Sidebar",DefaultRenderable:"Docuserve-Sidebar-Content",DefaultDestinationAddress:"#Docuserve-Sidebar-Container",AutoRender:!1,CSS:"\n\t\t.docuserve-sidebar {\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t\tbackground: var(--theme-color-background-secondary, #FAF7F1);\n\t\t\tborder-right: 1px solid var(--theme-color-border-default, #DDD6CA);\n\t\t\tpadding: 1em 0;\n\t\t\tpadding-top: 0;\n\t\t\tmin-height: 100%;\n\t\t\tposition: relative;\n\t\t\ttransition: background-color 0.15s ease;\n\t\t}\n\t\t.docuserve-sidebar-header {\n\t\t\tdisplay: flex;\n\t\t\tjustify-content: flex-end;\n\t\t\tpadding: 0.4em 0.5em 0;\n\t\t}\n\t\t.docuserve-sidebar-close {\n\t\t\tdisplay: inline-flex;\n\t\t\talign-items: center;\n\t\t\tjustify-content: center;\n\t\t\tbackground: none;\n\t\t\tborder: none;\n\t\t\tcolor: var(--theme-color-text-muted, #8A7F72);\n\t\t\tfont-size: 1.1em;\n\t\t\tcursor: pointer;\n\t\t\tpadding: 0.2em 0.4em;\n\t\t\tline-height: 1;\n\t\t}\n\t\t.docuserve-sidebar-close:hover {\n\t\t\tcolor: var(--theme-color-brand-primary, #2E7D74);\n\t\t}\n\t\t.docuserve-sidebar-search {\n\t\t\tpadding: 0 1em 1em 1em;\n\t\t\tborder-bottom: 1px solid var(--theme-color-border-light, #E5DED1);\n\t\t\tmargin-bottom: 0.5em;\n\t\t}\n\t\t.docuserve-sidebar-search input {\n\t\t\twidth: 100%;\n\t\t\tpadding: 0.5em 0.75em;\n\t\t\tbackground: var(--theme-color-background-panel, #FFFFFF);\n\t\t\tcolor: var(--theme-color-text-primary, #2A241E);\n\t\t\tborder: 1px solid var(--theme-color-border-default, #DDD6CA);\n\t\t\tborder-radius: 4px;\n\t\t\tfont-size: 0.85em;\n\t\t\toutline: none;\n\t\t\tbox-sizing: border-box;\n\t\t}\n\t\t.docuserve-sidebar-search input:focus {\n\t\t\tborder-color: var(--theme-color-brand-primary, #2E7D74);\n\t\t}\n\t\t.docuserve-sidebar-search-results {\n\t\t\tmargin-top: 0.5em;\n\t\t}\n\t\t.docuserve-sidebar-search-results a {\n\t\t\tdisplay: block;\n\t\t\tpadding: 0.4em 0.5em;\n\t\t\tcolor: var(--theme-color-text-primary, #423D37);\n\t\t\ttext-decoration: none;\n\t\t\tfont-size: 0.82em;\n\t\t\tborder-radius: 3px;\n\t\t\ttransition: background-color 0.1s;\n\t\t\tcursor: pointer;\n\t\t}\n\t\t.docuserve-sidebar-search-results a:hover {\n\t\t\tbackground-color: var(--theme-color-background-hover, #EAE3D8);\n\t\t\tcolor: var(--theme-color-brand-primary, #2E7D74);\n\t\t}\n\t\t.docuserve-sidebar-search-result-title {\n\t\t\tfont-weight: 600;\n\t\t\tcolor: var(--theme-color-text-primary, #3D3229);\n\t\t}\n\t\t.docuserve-sidebar-search-results a:hover .docuserve-sidebar-search-result-title {\n\t\t\tcolor: var(--theme-color-brand-primary, #2E7D74);\n\t\t}\n\t\t.docuserve-sidebar-search-result-meta {\n\t\t\tfont-size: 0.9em;\n\t\t\tcolor: var(--theme-color-text-muted, #8A7F72);\n\t\t}\n\t\t.docuserve-sidebar-search-all {\n\t\t\tdisplay: block;\n\t\t\tpadding: 0.4em 0.5em;\n\t\t\tfont-size: 0.82em;\n\t\t\tcolor: var(--theme-color-brand-primary, #2E7D74);\n\t\t\ttext-decoration: none;\n\t\t\tfont-weight: 600;\n\t\t\tcursor: pointer;\n\t\t\tborder-top: 1px solid var(--theme-color-border-light, #E5DED1);\n\t\t\tmargin-top: 0.25em;\n\t\t\tpadding-top: 0.5em;\n\t\t}\n\t\t.docuserve-sidebar-search-all:hover {\n\t\t\ttext-decoration: underline;\n\t\t}\n\t\t.docuserve-sidebar-search-empty {\n\t\t\tpadding: 0.4em 0.5em;\n\t\t\tfont-size: 0.82em;\n\t\t\tcolor: var(--theme-color-text-muted, #8A7F72);\n\t\t}\n\t\t.docuserve-sidebar-home {\n\t\t\tpadding: 0.5em 1.25em;\n\t\t\tfont-weight: 600;\n\t\t\tfont-size: 0.85em;\n\t\t\ttext-transform: uppercase;\n\t\t\tletter-spacing: 0.03em;\n\t\t}\n\t\t.docuserve-sidebar-home a {\n\t\t\tcolor: var(--theme-color-text-secondary, #5E5549);\n\t\t\ttext-decoration: none;\n\t\t\tcursor: pointer;\n\t\t\tuser-select: none;\n\t\t}\n\t\t.docuserve-sidebar-home a:hover {\n\t\t\tcolor: var(--theme-color-brand-primary, #2E7D74);\n\t\t}\n\t\t.docuserve-sidebar-group {\n\t\t\tmargin-top: 0.25em;\n\t\t}\n\t\t.docuserve-sidebar-group-title {\n\t\t\tdisplay: block;\n\t\t\tpadding: 0.5em 1.25em;\n\t\t\tfont-weight: 600;\n\t\t\tfont-size: 0.85em;\n\t\t\tcolor: var(--theme-color-text-primary, #3D3229);\n\t\t\ttext-decoration: none;\n\t\t\ttext-transform: uppercase;\n\t\t\tletter-spacing: 0.03em;\n\t\t\tcursor: pointer;\n\t\t\tuser-select: none;\n\t\t\ttransition: background-color 0.1s, color 0.1s;\n\t\t}\n\t\t.docuserve-sidebar-group-title:hover {\n\t\t\tcolor: var(--theme-color-brand-primary, #2E7D74);\n\t\t\tbackground-color: var(--theme-color-background-hover, #EAE3D8);\n\t\t}\n\t\ta.docuserve-sidebar-group-title.active {\n\t\t\tcolor: var(--theme-color-brand-primary, #2E7D74);\n\t\t\tbackground-color: var(--theme-color-background-tertiary, #E5DED1);\n\t\t}\n\t\t.docuserve-sidebar-modules {\n\t\t\tlist-style: none;\n\t\t\tmargin: 0;\n\t\t\tpadding: 0;\n\t\t}\n\t\t.docuserve-sidebar-modules li {\n\t\t\tpadding: 0;\n\t\t}\n\t\t.docuserve-sidebar-modules a {\n\t\t\tdisplay: block;\n\t\t\tpadding: 0.3em 1.25em 0.3em 2em;\n\t\t\tcolor: var(--theme-color-text-secondary, #5E5549);\n\t\t\ttext-decoration: none;\n\t\t\tfont-size: 0.85em;\n\t\t\ttransition: background-color 0.1s, color 0.1s;\n\t\t\tcursor: pointer;\n\t\t}\n\t\t.docuserve-sidebar-modules a:hover {\n\t\t\tbackground-color: var(--theme-color-background-hover, #EAE3D8);\n\t\t\tcolor: var(--theme-color-brand-primary, #2E7D74);\n\t\t}\n\t\t.docuserve-sidebar-modules a.active {\n\t\t\tcolor: var(--theme-color-brand-primary, #2E7D74);\n\t\t\tfont-weight: 600;\n\t\t\tbackground-color: var(--theme-color-background-tertiary, #E5DED1);\n\t\t}\n\t\t.docuserve-sidebar-modules .no-docs {\n\t\t\tdisplay: block;\n\t\t\tpadding: 0.3em 1.25em 0.3em 2em;\n\t\t\tcolor: var(--theme-color-text-muted, #8A7F72);\n\t\t\tfont-size: 0.85em;\n\t\t}\n\t\t.docuserve-sidebar-module-nav {\n\t\t\tborder-top: 1px solid var(--theme-color-border-light, #E5DED1);\n\t\t\tmargin-top: 0.5em;\n\t\t\tpadding-top: 0.5em;\n\t\t}\n\t\t.docuserve-sidebar-module-nav:empty {\n\t\t\tdisplay: none;\n\t\t}\n\t\t.docuserve-sidebar-module-nav-section {\n\t\t\tpadding: 0.4em 1.25em;\n\t\t\tfont-weight: 600;\n\t\t\tfont-size: 0.8em;\n\t\t\tcolor: var(--theme-color-text-muted, #8A7F72);\n\t\t\ttext-transform: uppercase;\n\t\t\tletter-spacing: 0.02em;\n\t\t}\n\t\t.docuserve-sidebar-module-nav a {\n\t\t\tdisplay: block;\n\t\t\tpadding: 0.25em 1.25em 0.25em 2.25em;\n\t\t\tcolor: var(--theme-color-text-secondary, #5E5549);\n\t\t\ttext-decoration: none;\n\t\t\tfont-size: 0.82em;\n\t\t\ttransition: background-color 0.1s, color 0.1s;\n\t\t\tcursor: pointer;\n\t\t}\n\t\t.docuserve-sidebar-module-nav a:hover {\n\t\t\tbackground-color: var(--theme-color-background-hover, #EAE3D8);\n\t\t\tcolor: var(--theme-color-brand-primary, #2E7D74);\n\t\t}\n\t\t.docuserve-sidebar-module-nav a.active {\n\t\t\tcolor: var(--theme-color-brand-primary, #2E7D74);\n\t\t\tfont-weight: 600;\n\t\t\tbackground-color: var(--theme-color-background-tertiary, #E5DED1);\n\t\t}\n\t\t.docuserve-sidebar-footer {\n\t\t\tmargin-top: auto;\n\t\t\tpadding: 0.9em 1.25em 1em 1.25em;\n\t\t\tborder-top: 1px solid var(--theme-color-border-light, #E5DED1);\n\t\t}\n\t\t.docuserve-sidebar-footer:empty {\n\t\t\tdisplay: none;\n\t\t}\n\t\t.docuserve-version-placard {\n\t\t\tfont-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;\n\t\t\tline-height: 1.35;\n\t\t}\n\t\t.docuserve-version-name {\n\t\t\tfont-size: 0.78em;\n\t\t\tfont-weight: 600;\n\t\t\tcolor: var(--theme-color-text-secondary, #5E5549);\n\t\t\tletter-spacing: 0.02em;\n\t\t}\n\t\t.docuserve-version-number {\n\t\t\tfont-size: 0.82em;\n\t\t\tfont-weight: 500;\n\t\t\tcolor: var(--theme-color-brand-primary, #2E7D74);\n\t\t}\n\t\t.docuserve-version-meta {\n\t\t\tfont-size: 0.7em;\n\t\t\tcolor: var(--theme-color-text-muted, #8A7F72);\n\t\t\tmargin-top: 0.15em;\n\t\t}\n\t",Templates:[{Hash:"Docuserve-Sidebar-Template",Template:'\n<div class="docuserve-sidebar">\n\t<div class="docuserve-sidebar-header">\n\t\t<button class="docuserve-sidebar-close" onclick="{~P~}.views[\'Docuserve-Sidebar\'].toggleSidebar()" aria-label="Close sidebar">{~I:Close~}</button>\n\t</div>\n\t{~TS:Docuserve-Sidebar-Search-Slot-Template:AppData.Docuserve.SidebarSearchSlot~}\n\t<div class="docuserve-sidebar-home">\n\t\t<a onclick="{~P~}.PictApplication.navigateTo(\'/Home\')">Home</a>\n\t</div>\n\t<div id="Docuserve-Sidebar-Groups">\n\t\t{~TS:Docuserve-Sidebar-Group-Template:AppData.Docuserve.SidebarGroupRecords~}\n\t</div>\n\t<div id="Docuserve-Sidebar-ModuleNav" class="docuserve-sidebar-module-nav">\n\t\t{~TS:Docuserve-Sidebar-ModuleNav-Section-Template:AppData.Docuserve.ModuleNavSections~}\n\t</div>\n\t<div class="docuserve-sidebar-footer">\n\t\t{~TS:Docuserve-Sidebar-Footer-Template:AppData.Docuserve.FooterSlot~}\n\t</div>\n</div>\n'},{Hash:"Docuserve-Sidebar-Search-Slot-Template",Template:'<div id="Docuserve-Sidebar-Search" class="docuserve-sidebar-search">\n\t<input type="text" placeholder="Search docs..." id="Docuserve-Sidebar-Search-Input" oninput="{~P~}.views[\'Docuserve-Sidebar\'].onSidebarSearchInput(this.value)">\n\t<div id="Docuserve-Sidebar-Search-Results" class="docuserve-sidebar-search-results"></div>\n</div>'},{Hash:"Docuserve-Sidebar-Group-Template",Template:'<div class="docuserve-sidebar-group">\n\t{~TS:Docuserve-Sidebar-Group-Title-Link-Template:Record.TitleLink~}{~TS:Docuserve-Sidebar-Group-Title-Plain-Template:Record.TitlePlain~}\n\t<ul class="docuserve-sidebar-modules">\n\t\t{~TS:Docuserve-Sidebar-Module-Doc-Template:Record.Modules~}\n\t</ul>\n</div>'},{Hash:"Docuserve-Sidebar-Group-Title-Link-Template",Template:'<a class="docuserve-sidebar-group-title{~D:Record.ActiveClass~}" href="{~D:Record.Route~}">{~D:Record.Name~}</a>'},{Hash:"Docuserve-Sidebar-Group-Title-Plain-Template",Template:'<div class="docuserve-sidebar-group-title">{~D:Record.Name~}</div>'},{Hash:"Docuserve-Sidebar-Module-Doc-Template",Template:"<li>{~TS:Docuserve-Sidebar-Module-Link-Template:Record.LinkSlot~}{~TS:Docuserve-Sidebar-Module-NoDoc-Template:Record.NoDocSlot~}</li>"},{Hash:"Docuserve-Sidebar-Module-Link-Template",Template:'<a class="{~D:Record.ActiveClass~}" href="{~D:Record.Route~}">{~D:Record.Name~}</a>'},{Hash:"Docuserve-Sidebar-Module-NoDoc-Template",Template:'<span class="no-docs">{~D:Record.Name~}</span>'},{Hash:"Docuserve-Sidebar-ModuleNav-Section-Template",Template:"{~TS:Docuserve-Sidebar-ModuleNav-SectionTitle-Template:Record.TitleSlot~}{~TS:Docuserve-Sidebar-ModuleNav-Item-Template:Record.Items~}"},{Hash:"Docuserve-Sidebar-ModuleNav-SectionTitle-Template",Template:'<div class="docuserve-sidebar-module-nav-section">{~D:Record.Title~}</div>'},{Hash:"Docuserve-Sidebar-ModuleNav-Item-Template",Template:'<a class="{~D:Record.ActiveClass~}" href="{~D:Record.Route~}">{~D:Record.Title~}</a>'},{Hash:"Docuserve-Sidebar-Footer-Template",Template:'<div class="docuserve-version-placard">\n\t{~TS:Docuserve-Sidebar-Footer-Name-Template:Record.NameSlot~}\n\t<div class="docuserve-version-number">v{~D:Record.Version~}</div>\n\t{~TS:Docuserve-Sidebar-Footer-Meta-Template:Record.MetaSlot~}\n</div>'},{Hash:"Docuserve-Sidebar-Footer-Name-Template",Template:'<div class="docuserve-version-name">{~D:Record.Name~}</div>'},{Hash:"Docuserve-Sidebar-Footer-Meta-Template",Template:'<div class="docuserve-version-meta">{~D:Record.Meta~}</div>'},{Hash:"Docuserve-Sidebar-Search-ResultsBody-Template",Template:"{~TS:Docuserve-Sidebar-Search-Result-Template:AppData.Docuserve.SidebarSearchResults~}{~TS:Docuserve-Sidebar-Search-Overflow-Template:AppData.Docuserve.SidebarSearchOverflow~}{~TS:Docuserve-Sidebar-Search-Empty-Template:AppData.Docuserve.SidebarSearchEmpty~}"},{Hash:"Docuserve-Sidebar-Search-Result-Template",Template:'<a href="{~D:Record.Route~}">\n\t<div class="docuserve-sidebar-search-result-title">{~D:Record.Title~}</div>\n\t{~TS:Docuserve-Sidebar-Search-Result-Meta-Template:Record.MetaSlot~}\n</a>'},{Hash:"Docuserve-Sidebar-Search-Result-Meta-Template",Template:'<div class="docuserve-sidebar-search-result-meta">{~D:Record.Meta~}</div>'},{Hash:"Docuserve-Sidebar-Search-Overflow-Template",Template:'<a class="docuserve-sidebar-search-all" href="#/search/{~D:Record.EncodedQuery~}">See all {~D:Record.TotalCount~} results</a>'},{Hash:"Docuserve-Sidebar-Search-Empty-Template",Template:'<div class="docuserve-sidebar-search-empty">No results found.</div>'}],Renderables:[{RenderableHash:"Docuserve-Sidebar-Content",TemplateHash:"Docuserve-Sidebar-Template",DestinationAddress:"#Docuserve-Sidebar-Container",RenderMethod:"replace"}]}},{"pict-view":75}],88:[function(t,e,o){const n=t("pict-view");e.exports=class extends n{constructor(t,e,o){super(t,e,o)}onAfterRender(t,e,o,n){let r=this.pict.AppData.Docuserve;return r.CoverLoaded&&r.Cover?this.renderFromCover(r.Cover):this.renderFromCatalog(r),super.onAfterRender(t,e,o,n)}renderFromCover(t){this.pict.ContentAssignment.assignContent("#Docuserve-Splash-Title",this.sanitizeTitle(t.Title)),this.pict.ContentAssignment.assignContent("#Docuserve-Splash-Tagline",this.escapeHTML(t.Tagline)),this.pict.ContentAssignment.assignContent("#Docuserve-Splash-Description",this.escapeHTML(t.Description));let e="";for(let o=0;o<t.Highlights.length;o++){let n=t.Highlights[o];e+='<div class="docuserve-splash-highlight-card">',n.Label&&(e+="<h3>"+this.escapeHTML(n.Label)+"</h3>"),e+="<p>"+this.escapeHTML(n.Text)+"</p>",e+="</div>"}this.pict.ContentAssignment.assignContent("#Docuserve-Splash-Highlights",e);let o="",n=this.pict.providers["Docuserve-Documentation"];for(let e=0;e<t.Actions.length;e++){let r=t.Actions[e],i=0===e?"primary":"secondary",a=r.Href;if(a.match(/^https?:\/\//))o+='<a class="'+i+'" href="'+this.escapeHTML(a)+'" target="_blank" rel="noopener">'+this.escapeHTML(r.Text)+"</a>";else{let t=n.convertSidebarLink(a);o+='<a class="'+i+'" href="'+this.escapeHTML(t)+'">'+this.escapeHTML(r.Text)+"</a>"}}this.pict.ContentAssignment.assignContent("#Docuserve-Splash-Actions",o)}renderFromCatalog(t){let e="Documentation",o="";t.CatalogLoaded&&t.Catalog&&t.Catalog.Name?e=t.Catalog.Name:t.TopBarLoaded&&t.TopBar&&t.TopBar.Brand?e=t.TopBar.Brand:"undefined"!=typeof document&&document.title&&(e=document.title),t.CatalogLoaded&&t.Catalog&&t.Catalog.Description&&(o=t.Catalog.Description),this.pict.ContentAssignment.assignContent("#Docuserve-Splash-Title",this.escapeHTML(e)),this.pict.ContentAssignment.assignContent("#Docuserve-Splash-Tagline",this.escapeHTML(o)),this.pict.ContentAssignment.assignContent("#Docuserve-Splash-Description","");let n="",r=t.SidebarGroups||[];for(let t=0;t<r.length;t++){let e=r[t];if(!e.Modules||e.Modules.length<1)continue;let o=e.Description||e.Modules.length+" modules";n+='<div class="docuserve-splash-highlight-card">',n+="<h3>"+this.escapeHTML(e.Name)+"</h3>",n+="<p>"+this.escapeHTML(o)+"</p>",n+="</div>"}this.pict.ContentAssignment.assignContent("#Docuserve-Splash-Highlights",n),this.pict.ContentAssignment.assignContent("#Docuserve-Splash-Actions","")}sanitizeTitle(t){return t?this.escapeHTML(t).replace(/&lt;small&gt;/gi,"<small>").replace(/&lt;\/small&gt;/gi,"</small>"):""}escapeHTML(t){return t?t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):""}},e.exports.default_configuration={ViewIdentifier:"Docuserve-Splash",DefaultRenderable:"Docuserve-Splash-Content",DefaultDestinationAddress:"#Docuserve-Content-Container",AutoRender:!1,CSS:"\n\t\t.docuserve-splash {\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t\talign-items: center;\n\t\t\tjustify-content: center;\n\t\t\tmin-height: calc(100vh - 56px);\n\t\t\tpadding: 3em 2em;\n\t\t\ttext-align: center;\n\t\t\tbackground: var(--theme-color-background-primary, #FDFBF7);\n\t\t}\n\t\t.docuserve-splash h1 {\n\t\t\tfont-size: 3em;\n\t\t\tfont-weight: 700;\n\t\t\tcolor: var(--theme-color-text-primary, #3D3229);\n\t\t\tmargin: 0 0 0.25em 0;\n\t\t}\n\t\t.docuserve-splash h1 small {\n\t\t\tfont-size: 0.4em;\n\t\t\tfont-weight: 400;\n\t\t\tcolor: var(--theme-color-text-muted, #8A7F72);\n\t\t\tvertical-align: middle;\n\t\t\tmargin-left: 0.15em;\n\t\t}\n\t\t.docuserve-splash-tagline {\n\t\t\tfont-size: 1.25em;\n\t\t\tcolor: var(--theme-color-text-secondary, #5E5549);\n\t\t\tmargin-bottom: 1.5em;\n\t\t\tfont-style: italic;\n\t\t}\n\t\t.docuserve-splash-description {\n\t\t\tfont-size: 1em;\n\t\t\tcolor: var(--theme-color-text-secondary, #5E5549);\n\t\t\tmax-width: 600px;\n\t\t\tline-height: 1.7;\n\t\t\tmargin-bottom: 2em;\n\t\t}\n\t\t.docuserve-splash-highlights {\n\t\t\tdisplay: grid;\n\t\t\tgrid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n\t\t\tgap: 1.25em;\n\t\t\tmax-width: 900px;\n\t\t\twidth: 100%;\n\t\t\tmargin-bottom: 2.5em;\n\t\t}\n\t\t.docuserve-splash-highlight-card {\n\t\t\tbackground: var(--theme-color-background-panel, #FFFFFF);\n\t\t\tborder: 1px solid var(--theme-color-border-default, #DDD6CA);\n\t\t\tborder-radius: 8px;\n\t\t\tpadding: 1.25em;\n\t\t\ttext-align: left;\n\t\t\ttransition: box-shadow 0.2s, border-color 0.2s;\n\t\t}\n\t\t.docuserve-splash-highlight-card:hover {\n\t\t\tbox-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);\n\t\t\tborder-color: var(--theme-color-brand-primary, #2E7D74);\n\t\t}\n\t\t.docuserve-splash-highlight-card h3 {\n\t\t\tmargin: 0 0 0.5em 0;\n\t\t\tcolor: var(--theme-color-text-primary, #3D3229);\n\t\t\tfont-size: 1em;\n\t\t}\n\t\t.docuserve-splash-highlight-card p {\n\t\t\tmargin: 0;\n\t\t\tcolor: var(--theme-color-text-secondary, #5E5549);\n\t\t\tfont-size: 0.85em;\n\t\t\tline-height: 1.5;\n\t\t}\n\t\t.docuserve-splash-actions {\n\t\t\tdisplay: flex;\n\t\t\tgap: 1em;\n\t\t\tflex-wrap: wrap;\n\t\t\tjustify-content: center;\n\t\t}\n\t\t.docuserve-splash-actions a {\n\t\t\tdisplay: inline-block;\n\t\t\tpadding: 0.7em 1.5em;\n\t\t\tborder-radius: 6px;\n\t\t\tfont-size: 0.95em;\n\t\t\tfont-weight: 600;\n\t\t\ttext-decoration: none;\n\t\t\ttransition: background-color 0.15s, color 0.15s;\n\t\t\tcursor: pointer;\n\t\t}\n\t\t.docuserve-splash-actions .primary {\n\t\t\tbackground-color: var(--theme-color-brand-primary, #2E7D74);\n\t\t\tcolor: var(--theme-color-background-panel, #fff);\n\t\t}\n\t\t.docuserve-splash-actions .primary:hover {\n\t\t\tbackground-color: var(--theme-color-brand-primary-hover, #236660);\n\t\t}\n\t\t.docuserve-splash-actions .secondary {\n\t\t\tbackground-color: var(--theme-color-background-panel, #FFFFFF);\n\t\t\tcolor: var(--theme-color-text-primary, #3D3229);\n\t\t\tborder: 2px solid var(--theme-color-brand-primary, #2E7D74);\n\t\t}\n\t\t.docuserve-splash-actions .secondary:hover {\n\t\t\tborder-color: var(--theme-color-brand-primary-hover, #236660);\n\t\t\tcolor: var(--theme-color-brand-primary, #2E7D74);\n\t\t}\n\t",Templates:[{Hash:"Docuserve-Splash-Template",Template:'\n<div class="docuserve-splash">\n\t<h1 id="Docuserve-Splash-Title"></h1>\n\t<div class="docuserve-splash-tagline" id="Docuserve-Splash-Tagline"></div>\n\t<div class="docuserve-splash-description" id="Docuserve-Splash-Description"></div>\n\t<div class="docuserve-splash-highlights" id="Docuserve-Splash-Highlights"></div>\n\t<div class="docuserve-splash-actions" id="Docuserve-Splash-Actions"></div>\n</div>\n'}],Renderables:[{RenderableHash:"Docuserve-Splash-Content",TemplateHash:"Docuserve-Splash-Template",DestinationAddress:"#Docuserve-Content-Container",RenderMethod:"replace"}]}},{"pict-view":75}],89:[function(t,e,o){const n=t("pict-view");e.exports=class extends n{constructor(t,e,o){super(t,e,o)}onAfterRender(t,e,o,n){return this.pict.CSSMap.injectCSS(),this._renderNavLinks(),this._renderVersionChip(),super.onAfterRender(t,e,o,n)}_renderNavLinks(){let t=this.pict.AppData.Docuserve||{},e=document.getElementById("Docuserve-Nav-Links");if(!e)return;let o='<a href="#/Home">Home</a>';if(t.TopBarLoaded&&t.TopBar&&Array.isArray(t.TopBar.NavLinks))for(let e=0;e<t.TopBar.NavLinks.length;e++){let n=t.TopBar.NavLinks[e];o+='<a href="'+this._escapeHTML(n.Href||"#")+'">'+this._escapeHTML(n.Text||"")+"</a>"}e.innerHTML=o}_renderVersionChip(){let t=this.pict.AppData.Docuserve||{},e=document.getElementById("Docuserve-Nav-Version");if(!e)return;if(!t.VersionLoaded||!t.Version||!t.Version.Version)return e.innerHTML="",void e.setAttribute("title","");let o=t.Version;e.innerHTML="v"+this._escapeHTML(o.Version);let n=[];if(n.push((o.Name?o.Name+" ":"")+"v"+o.Version),o.GeneratedAt){let t=String(o.GeneratedAt).match(/^(\d{4}-\d{2}-\d{2})/);n.push("built "+(t?t[1]:o.GeneratedAt))}o.GitCommit&&n.push(o.GitCommit),e.setAttribute("title",n.join(" · "))}_escapeHTML(t){return null==t?"":String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}},e.exports.default_configuration={ViewIdentifier:"Docuserve-TopBar-Nav",DefaultRenderable:"Docuserve-TopBar-Nav-Display",DefaultDestinationAddress:"#Theme-TopBar-Nav",AutoRender:!1,CSS:"\n\t\t.docuserve-nav\n\t\t{\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\theight: 100%;\n\t\t\tgap: 0.6em;\n\t\t\tpadding: 0 0.75em;\n\t\t\tcolor: var(--theme-color-text-on-brand, var(--theme-color-text-primary, #E8E0D4));\n\t\t}\n\t\t.docuserve-nav-links\n\t\t{\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\tgap: 0.25em;\n\t\t}\n\t\t.docuserve-nav-links a\n\t\t{\n\t\t\tcolor: var(--theme-color-text-on-brand, var(--theme-color-text-secondary, #B5AA9A));\n\t\t\ttext-decoration: none;\n\t\t\tpadding: 0.45em 0.7em;\n\t\t\tborder-radius: 4px;\n\t\t\tfont-size: 0.9em;\n\t\t\ttransition: background-color 0.15s, color 0.15s;\n\t\t\tcursor: pointer;\n\t\t}\n\t\t.docuserve-nav-links a:hover\n\t\t{\n\t\t\tbackground-color: var(--theme-color-background-hover, rgba(255, 255, 255, 0.06));\n\t\t\tcolor: var(--theme-color-text-on-brand, var(--theme-color-background-panel, #fff));\n\t\t}\n\t\t.docuserve-nav-version\n\t\t{\n\t\t\tfont-size: 0.72em;\n\t\t\tfont-weight: 500;\n\t\t\tcolor: var(--theme-color-text-on-brand, var(--theme-color-text-muted, #B5AA9A));\n\t\t\tbackground: var(--theme-color-background-hover, rgba(255, 255, 255, 0.06));\n\t\t\tborder: 1px solid var(--theme-color-border-light, rgba(255, 255, 255, 0.08));\n\t\t\tpadding: 0.12em 0.55em;\n\t\t\tborder-radius: 10px;\n\t\t\tfont-family: var(--theme-typography-family-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);\n\t\t\tletter-spacing: 0.02em;\n\t\t\twhite-space: nowrap;\n\t\t}\n\t\t.docuserve-nav-version:empty\n\t\t{\n\t\t\tdisplay: none;\n\t\t}\n\t",Templates:[{Hash:"Docuserve-TopBar-Nav-Template",Template:'\n<div class="docuserve-nav">\n\t<div id="Docuserve-Nav-Links" class="docuserve-nav-links"></div>\n\t<span id="Docuserve-Nav-Version" class="docuserve-nav-version" title=""></span>\n</div>'}],Renderables:[{RenderableHash:"Docuserve-TopBar-Nav-Display",TemplateHash:"Docuserve-TopBar-Nav-Template",DestinationAddress:"#Theme-TopBar-Nav",RenderMethod:"replace"}]}},{"pict-view":75}],90:[function(t,e,o){const n=t("pict-view");e.exports=class extends n{constructor(t,e,o){super(t,e,o)}onAfterRender(t,e,o,n){return this.pict.CSSMap.injectCSS(),this._renderLinks(),super.onAfterRender(t,e,o,n)}_renderLinks(){let t=this.pict.AppData.Docuserve||{},e=document.getElementById("Docuserve-User-Links");if(!e)return;let o="";if(t.KeywordIndexLoaded&&(o+='<a href="#/search/">Search</a>'),t.TopBarLoaded&&t.TopBar&&Array.isArray(t.TopBar.ExternalLinks))for(let e=0;e<t.TopBar.ExternalLinks.length;e++){let n=t.TopBar.ExternalLinks[e],r=this._escapeHTML(n.Href||"#"),i=this._escapeHTML(n.Text||"");o+='<a href="'+r+'"'+(/^https?:/i.test(n.Href||"")?' target="_blank" rel="noopener"':"")+">"+i+"</a>"}e.innerHTML=o}_escapeHTML(t){return null==t?"":String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}},e.exports.default_configuration={ViewIdentifier:"Docuserve-TopBar-User",DefaultRenderable:"Docuserve-TopBar-User-Display",DefaultDestinationAddress:"#Theme-TopBar-User",AutoRender:!1,CSS:"\n\t\t.docuserve-user\n\t\t{\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\theight: 100%;\n\t\t\tgap: 0.25em;\n\t\t\tpadding: 0 0.75em;\n\t\t\tcolor: var(--theme-color-text-on-brand, var(--theme-color-text-secondary, #B5AA9A));\n\t\t}\n\t\t.docuserve-user a\n\t\t{\n\t\t\tcolor: var(--theme-color-text-on-brand, var(--theme-color-text-secondary, #B5AA9A));\n\t\t\ttext-decoration: none;\n\t\t\tfont-size: 0.85em;\n\t\t\tpadding: 0.4em 0.6em;\n\t\t\tborder-radius: 4px;\n\t\t\ttransition: background-color 0.15s, color 0.15s;\n\t\t}\n\t\t.docuserve-user a:hover\n\t\t{\n\t\t\tbackground-color: var(--theme-color-background-hover, rgba(255, 255, 255, 0.06));\n\t\t\tcolor: var(--theme-color-text-on-brand, var(--theme-color-text-primary, #E8E0D4));\n\t\t}\n\t",Templates:[{Hash:"Docuserve-TopBar-User-Template",Template:'<div class="docuserve-user" id="Docuserve-User-Links"></div>'}],Renderables:[{RenderableHash:"Docuserve-TopBar-User-Display",TemplateHash:"Docuserve-TopBar-User-Template",DestinationAddress:"#Theme-TopBar-User",RenderMethod:"replace"}]}},{"pict-view":75}]},{},[79])(79)});
91
+ //# sourceMappingURL=pict-docuserve.min.js.map