notebook 7.3.0a1__py3-none-any.whl → 7.3.0b0__py3-none-any.whl
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.
Potentially problematic release.
This version of notebook might be problematic. Click here for more details.
- notebook/_version.py +1 -1
- notebook/app.py +10 -2
- notebook/static/113.bundle.js +1 -1
- notebook/static/1198.bundle.js +1 -1
- notebook/static/134.bundle.js +1 -1
- notebook/static/1408.bundle.js +1 -1
- notebook/static/1496.bundle.js +1 -1
- notebook/static/1584.bundle.js +1 -1
- notebook/static/1647.bundle.js +1 -1
- notebook/static/1650.bundle.js +1 -1
- notebook/static/1684.bundle.js +1 -1
- notebook/static/170.bundle.js +1 -1
- notebook/static/1809.bundle.js +1 -1
- notebook/static/1827.bundle.js +1 -1
- notebook/static/1828.bundle.js +1 -1
- notebook/static/1833.bundle.js +1 -1
- notebook/static/1958.bundle.js +1 -1
- notebook/static/1962.bundle.js +1 -1
- notebook/static/2007.bundle.js +1 -1
- notebook/static/2065.bundle.js +1 -1
- notebook/static/2088.bundle.js +1 -1
- notebook/static/2089.bundle.js +1 -1
- notebook/static/2122.bundle.js +1 -1
- notebook/static/2167.bundle.js +1 -1
- notebook/static/2184.bundle.js +1 -1
- notebook/static/2311.bundle.js +1 -1
- notebook/static/{3030.bundle.js → 2323.bundle.js} +1 -1
- notebook/static/2401.bundle.js +1 -1
- notebook/static/2424.bundle.js +377 -0
- notebook/static/2479.bundle.js +1 -1
- notebook/static/2489.bundle.js +1 -1
- notebook/static/2607.bundle.js +1 -1
- notebook/static/2615.bundle.js +1 -1
- notebook/static/2636.bundle.js +1 -1
- notebook/static/2756.bundle.js +1 -1
- notebook/static/2813.bundle.js +1 -1
- notebook/static/2866.bundle.js +1 -1
- notebook/static/2924.bundle.js +1 -1
- notebook/static/2944.bundle.js +1 -1
- notebook/static/2955.bundle.js +1 -0
- notebook/static/3129.bundle.js +1 -1
- notebook/static/3146.bundle.js +1 -1
- notebook/static/3187.bundle.js +1 -1
- notebook/static/3213.bundle.js +1 -1
- notebook/static/3301.bundle.js +1 -1
- notebook/static/3325.bundle.js +1 -1
- notebook/static/3340.bundle.js +1 -1
- notebook/static/3360.bundle.js +1 -1
- notebook/static/{1261.bundle.js → 3463.bundle.js} +1 -1
- notebook/static/3466.bundle.js +1 -1
- notebook/static/35.bundle.js +1 -1
- notebook/static/3512.bundle.js +1 -1
- notebook/static/3676.bundle.js +1 -1
- notebook/static/3680.bundle.js +1 -1
- notebook/static/374.bundle.js +1 -1
- notebook/static/3768.bundle.js +1 -1
- notebook/static/377.bundle.js +1 -1
- notebook/static/3863.bundle.js +1 -1
- notebook/static/3881.bundle.js +1 -1
- notebook/static/4042.bundle.js +1 -1
- notebook/static/4058.bundle.js +1 -1
- notebook/static/409.bundle.js +1 -1
- notebook/static/4212.bundle.js +1 -1
- notebook/static/4242.bundle.js +79 -0
- notebook/static/4271.bundle.js +1 -1
- notebook/static/4291.bundle.js +1 -1
- notebook/static/4382.bundle.js +1 -1
- notebook/static/4526.bundle.js +1 -1
- notebook/static/4588.bundle.js +1 -1
- notebook/static/4630.bundle.js +1 -1
- notebook/static/4645.bundle.js +1 -1
- notebook/static/4811.bundle.js +1 -1
- notebook/static/4837.bundle.js +1 -1
- notebook/static/5099.bundle.js +1 -1
- notebook/static/5135.bundle.js +1 -1
- notebook/static/5166.bundle.js +1 -1
- notebook/static/5234.bundle.js +1 -1
- notebook/static/5254.bundle.js +1 -1
- notebook/static/5261.bundle.js +1 -1
- notebook/static/5263.bundle.js +1 -0
- notebook/static/5313.bundle.js +1 -1
- notebook/static/5325.bundle.js +1 -1
- notebook/static/5346.bundle.js +1 -1
- notebook/static/5426.bundle.js +1 -1
- notebook/static/5430.bundle.js +653 -0
- notebook/static/545.bundle.js +1 -1
- notebook/static/5451.bundle.js +1 -1
- notebook/static/5573.bundle.js +1 -1
- notebook/static/5601.bundle.js +1 -1
- notebook/static/5649.bundle.js +3 -3
- notebook/static/5733.bundle.js +1 -1
- notebook/static/5850.bundle.js +1 -1
- notebook/static/5912.bundle.js +1 -1
- notebook/static/5921.bundle.js +1 -1
- notebook/static/6017.bundle.js +1 -1
- notebook/static/6061.bundle.js +1 -1
- notebook/static/6139.bundle.js +1 -1
- notebook/static/62.bundle.js +1 -1
- notebook/static/6271.bundle.js +1 -1
- notebook/static/6345.bundle.js +1 -1
- notebook/static/6604.bundle.js +1 -1
- notebook/static/6621.bundle.js +1 -1
- notebook/static/6627.bundle.js +1 -1
- notebook/static/6648.bundle.js +1 -0
- notebook/static/6731.bundle.js +1 -1
- notebook/static/6748.bundle.js +1 -1
- notebook/static/677.bundle.js +1 -1
- notebook/static/6815.bundle.js +1 -1
- notebook/static/6853.bundle.js +1 -1
- notebook/static/6893.bundle.js +1 -1
- notebook/static/690.bundle.js +1 -1
- notebook/static/6962.bundle.js +1 -1
- notebook/static/6999.bundle.js +1 -1
- notebook/static/7226.bundle.js +1 -1
- notebook/static/7252.bundle.js +1 -1
- notebook/static/7302.bundle.js +1 -1
- notebook/static/7369.bundle.js +1 -1
- notebook/static/7386.bundle.js +1 -1
- notebook/static/7391.bundle.js +1 -1
- notebook/static/7543.bundle.js +1 -1
- notebook/static/7603.bundle.js +1 -1
- notebook/static/7639.bundle.js +1 -1
- notebook/static/7655.bundle.js +1 -1
- notebook/static/7684.bundle.js +1 -1
- notebook/static/7812.bundle.js +1 -1
- notebook/static/7819.bundle.js +1 -1
- notebook/static/7821.bundle.js +1 -1
- notebook/static/7854.bundle.js +1 -1
- notebook/static/7866.bundle.js +1 -0
- notebook/static/7900.bundle.js +1 -1
- notebook/static/7906.bundle.js +1 -1
- notebook/static/8010.bundle.js +1 -1
- notebook/static/8032.bundle.js +1 -1
- notebook/static/8285.bundle.js +1 -1
- notebook/static/8471.bundle.js +1 -1
- notebook/static/8579.bundle.js +1 -1
- notebook/static/8633.bundle.js +1 -1
- notebook/static/8635.bundle.js +41 -0
- notebook/static/8771.bundle.js +1 -1
- notebook/static/8781.bundle.js +1 -1
- notebook/static/8875.bundle.js +1 -1
- notebook/static/8907.bundle.js +1 -1
- notebook/static/8928.bundle.js +1 -1
- notebook/static/8929.bundle.js +1 -1
- notebook/static/893.bundle.js +1 -1
- notebook/static/901.bundle.js +1 -1
- notebook/static/9068.bundle.js +1 -1
- notebook/static/911.bundle.js +1 -1
- notebook/static/9136.bundle.js +1 -1
- notebook/static/9151.bundle.js +1 -1
- notebook/static/9161.bundle.js +1 -1
- notebook/static/9268.bundle.js +1 -1
- notebook/static/9335.bundle.js +1 -1
- notebook/static/9341.bundle.js +1 -1
- notebook/static/9380.bundle.js +1 -1
- notebook/static/9605.bundle.js +1 -1
- notebook/static/9638.bundle.js +1 -1
- notebook/static/9672.bundle.js +352 -0
- notebook/static/9680.bundle.js +1 -1
- notebook/static/9685.bundle.js +1 -1
- notebook/static/9752.bundle.js +1 -1
- notebook/static/9799.bundle.js +1 -0
- notebook/static/9821.bundle.js +1 -1
- notebook/static/9852.bundle.js +1 -1
- notebook/static/bundle.js +1 -1
- notebook/static/third-party-licenses.json +124 -130
- notebook/templates/consoles.html +1 -1
- notebook/templates/edit.html +1 -1
- notebook/templates/error.html +1 -1
- notebook/templates/notebooks.html +1 -1
- notebook/templates/terminals.html +1 -1
- notebook/templates/tree.html +1 -1
- {notebook-7.3.0a1.data → notebook-7.3.0b0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/package.json.orig +17 -17
- {notebook-7.3.0a1.data → notebook-7.3.0b0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/documentsearch-extension/package.json.orig +5 -5
- {notebook-7.3.0a1.data → notebook-7.3.0b0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/help-extension/package.json.orig +6 -6
- {notebook-7.3.0a1.data → notebook-7.3.0b0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/package.json.orig +11 -11
- {notebook-7.3.0a1.data → notebook-7.3.0b0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/package.json.orig +18 -18
- {notebook-7.3.0a1.data → notebook-7.3.0b0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/widget.json +0 -1
- {notebook-7.3.0a1.data → notebook-7.3.0b0.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/package.json +13 -13
- {notebook-7.3.0a1.data → notebook-7.3.0b0.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/schemas/@jupyter-notebook/lab-extension/package.json.orig +12 -12
- notebook-7.3.0b0.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/568.67f8b11d2af855286118.js +1 -0
- notebook-7.3.0a1.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/600.25341cef1598f2727482.js → notebook-7.3.0b0.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/907.767373e59d0c0e33ef12.js +1 -1
- notebook-7.3.0b0.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/928.50419fa0a72e54064396.js +1 -0
- notebook-7.3.0b0.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/remoteEntry.fd0956ebf15f666a19f8.js +1 -0
- {notebook-7.3.0a1.data → notebook-7.3.0b0.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/third-party-licenses.json +2 -2
- {notebook-7.3.0a1.dist-info → notebook-7.3.0b0.dist-info}/METADATA +2 -2
- {notebook-7.3.0a1.dist-info → notebook-7.3.0b0.dist-info}/RECORD +210 -218
- notebook/static/1226.bundle.js +0 -1
- notebook/static/1750.bundle.js +0 -1
- notebook/static/1884.bundle.js +0 -386
- notebook/static/4045.bundle.js +0 -1
- notebook/static/4434.bundle.js +0 -1
- notebook/static/5018.bundle.js +0 -1
- notebook/static/5712.bundle.js +0 -1
- notebook/static/6164.bundle.js +0 -1
- notebook/static/6318.bundle.js +0 -1
- notebook/static/6619.bundle.js +0 -1
- notebook/static/6898.bundle.js +0 -1
- notebook/static/7506.bundle.js +0 -703
- notebook/static/7579.bundle.js +0 -1
- notebook/static/8054.bundle.js +0 -1
- notebook/static/8647.bundle.js +0 -1
- notebook/static/8723.bundle.js +0 -1
- notebook/static/9734.bundle.js +0 -1
- notebook/static/9906.bundle.js +0 -1
- notebook-7.3.0a1.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/568.45e1d3167710e94c3d26.js +0 -1
- notebook-7.3.0a1.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/928.b94c92715d631efb4a8f.js +0 -1
- notebook-7.3.0a1.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/remoteEntry.8ca922abea871b34db72.js +0 -1
- /notebook/static/{7506.bundle.js.LICENSE.txt → 4242.bundle.js.LICENSE.txt} +0 -0
- {notebook-7.3.0a1.data → notebook-7.3.0b0.data}/data/etc/jupyter/jupyter_server_config.d/notebook.json +0 -0
- {notebook-7.3.0a1.data → notebook-7.3.0b0.data}/data/share/applications/jupyter-notebook.desktop +0 -0
- {notebook-7.3.0a1.data → notebook-7.3.0b0.data}/data/share/icons/hicolor/scalable/apps/notebook.svg +0 -0
- {notebook-7.3.0a1.data → notebook-7.3.0b0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/menus.json +0 -0
- {notebook-7.3.0a1.data → notebook-7.3.0b0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/pages.json +0 -0
- {notebook-7.3.0a1.data → notebook-7.3.0b0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/shell.json +0 -0
- {notebook-7.3.0a1.data → notebook-7.3.0b0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/title.json +0 -0
- {notebook-7.3.0a1.data → notebook-7.3.0b0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/top.json +0 -0
- {notebook-7.3.0a1.data → notebook-7.3.0b0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/zen.json +0 -0
- {notebook-7.3.0a1.data → notebook-7.3.0b0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/help-extension/open.json +0 -0
- {notebook-7.3.0a1.data → notebook-7.3.0b0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/checkpoints.json +0 -0
- {notebook-7.3.0a1.data → notebook-7.3.0b0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/edit-notebook-metadata.json +0 -0
- {notebook-7.3.0a1.data → notebook-7.3.0b0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/kernel-logo.json +0 -0
- {notebook-7.3.0a1.data → notebook-7.3.0b0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/scroll-output.json +0 -0
- {notebook-7.3.0a1.data → notebook-7.3.0b0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/file-actions.json +0 -0
- {notebook-7.3.0a1.data → notebook-7.3.0b0.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/schemas/@jupyter-notebook/lab-extension/interface-switcher.json +0 -0
- {notebook-7.3.0a1.data → notebook-7.3.0b0.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/schemas/@jupyter-notebook/lab-extension/launch-tree.json +0 -0
- {notebook-7.3.0a1.data → notebook-7.3.0b0.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/93.eae3497dd223d842d198.js +0 -0
- {notebook-7.3.0a1.data → notebook-7.3.0b0.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/style.js +0 -0
- {notebook-7.3.0a1.dist-info → notebook-7.3.0b0.dist-info}/WHEEL +0 -0
- {notebook-7.3.0a1.dist-info → notebook-7.3.0b0.dist-info}/entry_points.txt +0 -0
- {notebook-7.3.0a1.dist-info → notebook-7.3.0b0.dist-info}/licenses/LICENSE +0 -0
notebook/static/8285.bundle.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[8285,4498],{78285:function(t,e,r){var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},i.apply(this,arguments)},a=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},l=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.SafeHandler=e.SafeMathDocumentMixin=void 0;var f=r(40660);function c(t){var e;return e=function(t){function e(){for(var e,r,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=t.apply(this,l([],a(n),!1))||this;i.safe=new i.options.SafeClass(i,i.options.safeOptions);var f=i.constructor.ProcessBits;f.has("safe")||f.allocate("safe");try{for(var c=s(i.inputJax),u=c.next();!u.done;u=c.next()){var p=u.value;p.name.match(/MathML/)?(p.mathml.filterAttribute=i.safe.mmlAttribute.bind(i.safe),p.mathml.filterClassList=i.safe.mmlClassList.bind(i.safe)):p.name.match(/TeX/)&&p.postFilters.add(i.sanitize.bind(p),-5.5)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(e)throw e.error}}return i}return o(e,t),e.prototype.sanitize=function(t){t.math.root=this.parseOptions.root,t.document.safe.sanitize(t.math,t.document)},e}(t),e.OPTIONS=i(i({},t.OPTIONS),{safeOptions:i({},f.Safe.OPTIONS),SafeClass:f.Safe}),e}e.SafeMathDocumentMixin=c,e.SafeHandler=function(t){return t.documentClass=c(t.documentClass),t}},35230:function(t,e,r){var n=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.SafeMethods=void 0;var i=r(56780);e.SafeMethods={filterURL:function(t,e){var r=(e.match(/^\s*([a-z]+):/i)||[null,""])[1].toLowerCase(),n=t.allow.URLs;return"all"===n||"safe"===n&&(t.options.safeProtocols[r]||!r)?e:null},filterClassList:function(t,e){var r=this;return e.trim().replace(/\s\s+/g," ").split(/ /).map((function(e){return r.filterClass(t,e)||""})).join(" ").trim().replace(/\s\s+/g,"")},filterClass:function(t,e){var r=t.allow.classes;return"all"===r||"safe"===r&&e.match(t.options.classPattern)?e:null},filterID:function(t,e){var r=t.allow.cssIDs;return"all"===r||"safe"===r&&e.match(t.options.idPattern)?e:null},filterStyles:function(t,e){var r,o,i,a;if("all"===t.allow.styles)return e;if("safe"!==t.allow.styles)return null;var l=t.adaptor,s=t.options;try{var f=l.node("div",{style:e}),c=l.node("div");try{for(var u=n(Object.keys(s.safeStyles)),p=u.next();!p.done;p=u.next()){var h=p.value;if(s.styleParts[h])try{for(var y=(i=void 0,n(["Top","Right","Bottom","Left"])),d=y.next();!d.done;d=y.next()){var v,m=h+d.value;(v=this.filterStyle(t,m,f))&&l.setStyle(c,m,v)}}catch(t){i={error:t}}finally{try{d&&!d.done&&(a=y.return)&&a.call(y)}finally{if(i)throw i.error}}else(v=this.filterStyle(t,h,f))&&l.setStyle(c,h,v)}}catch(t){r={error:t}}finally{try{p&&!p.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}e=l.allStyles(c)}catch(t){e=""}return e},filterStyle:function(t,e,r){var n=t.adaptor.getStyle(r,e);if("string"!=typeof n||""===n||n.match(/^\s*calc/)||n.match(/javascript:/)&&!t.options.safeProtocols.javascript||n.match(/data:/)&&!t.options.safeProtocols.data)return null;var o=e.replace(/Top|Right|Left|Bottom/,"");return t.options.safeStyles[e]||t.options.safeStyles[o]?this.filterStyleValue(t,e,n,r):null},filterStyleValue:function(t,e,r,n){var o=t.options.styleLengths[e];if(!o)return r;if("string"!=typeof o)return this.filterStyleLength(t,e,r);var i=this.filterStyleLength(t,o,t.adaptor.getStyle(n,o));return i?(t.adaptor.setStyle(n,o,i),t.adaptor.getStyle(n,e)):null},filterStyleLength:function(t,e,r){if(!r.match(/^(.+)(em|ex|ch|rem|px|mm|cm|in|pt|pc|%)$/))return null;var n=(0,i.length2em)(r,1),a=t.options.styleLengths[e],l=o(Array.isArray(a)?a:[-t.options.lengthMax,t.options.lengthMax],2),s=l[0],f=l[1];return s<=n&&n<=f?r:(n<s?s:f).toFixed(3).replace(/\.?0+$/,"")+"em"},filterFontSize:function(t,e){return this.filterStyleLength(t,"fontSize",e)},filterSizeMultiplier:function(t,e){var r=o(t.options.scriptsizemultiplierRange||[-1/0,1/0],2),n=r[0],i=r[1];return Math.min(i,Math.max(n,parseFloat(e))).toString()},filterScriptLevel:function(t,e){var r=o(t.options.scriptlevelRange||[-1/0,1/0],2),n=r[0],i=r[1];return Math.min(i,Math.max(n,parseInt(e))).toString()},filterData:function(t,e,r){return r.match(t.options.dataPattern)?e:null}}},40660:function(t,e,r){var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)},o=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.Safe=void 0;var i=r(4498),a=r(35230),l=function(){function t(t,e){this.filterAttributes=new Map([["href","filterURL"],["src","filterURL"],["altimg","filterURL"],["class","filterClassList"],["style","filterStyles"],["id","filterID"],["fontsize","filterFontSize"],["mathsize","filterFontSize"],["scriptminsize","filterFontSize"],["scriptsizemultiplier","filterSizeMultiplier"],["scriptlevel","filterScriptLevel"],["data-","filterData"]]),this.filterMethods=n({},a.SafeMethods),this.adaptor=t.adaptor,this.options=e,this.allow=this.options.allow}return t.prototype.sanitize=function(t,e){try{t.root.walkTree(this.sanitizeNode.bind(this))}catch(r){e.options.compileError(e,t,r)}},t.prototype.sanitizeNode=function(t){var e,r,n=t.attributes.getAllAttributes();try{for(var i=o(Object.keys(n)),a=i.next();!a.done;a=i.next()){var l=a.value,s=this.filterAttributes.get(l);if(s){var f=this.filterMethods[s](this,n[l]);f?f!==("number"==typeof f?parseFloat(n[l]):n[l])&&(n[l]=f):delete n[l]}}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}},t.prototype.mmlAttribute=function(t,e){if("class"===t)return null;var r=this.filterAttributes.get(t)||("data-"===t.substr(0,5)?this.filterAttributes.get("data-"):null);if(!r)return e;var n=this.filterMethods[r](this,e,t);return"number"==typeof n||"boolean"==typeof n?String(n):n},t.prototype.mmlClassList=function(t){var e=this;return t.map((function(t){return e.filterMethods.filterClass(e,t)})).filter((function(t){return null!==t}))},t.OPTIONS={allow:{URLs:"safe",classes:"safe",cssIDs:"safe",styles:"safe"},lengthMax:3,scriptsizemultiplierRange:[.6,1],scriptlevelRange:[-2,2],classPattern:/^mjx-[-a-zA-Z0-9_.]+$/,idPattern:/^mjx-[-a-zA-Z0-9_.]+$/,dataPattern:/^data-mjx-/,safeProtocols:(0,i.expandable)({http:!0,https:!0,file:!0,javascript:!1,data:!1}),safeStyles:(0,i.expandable)({color:!0,backgroundColor:!0,border:!0,cursor:!0,margin:!0,padding:!0,textShadow:!0,fontFamily:!0,fontSize:!0,fontStyle:!0,fontWeight:!0,opacity:!0,outline:!0}),styleParts:(0,i.expandable)({border:!0,padding:!0,margin:!0,outline:!0}),styleLengths:(0,i.expandable)({borderTop:"borderTopWidth",borderRight:"borderRightWidth",borderBottom:"borderBottomWidth",borderLeft:"borderLeftWidth",paddingTop:!0,paddingRight:!0,paddingBottom:!0,paddingLeft:!0,marginTop:!0,marginRight:!0,marginBottom:!0,marginLeft:!0,outlineTop:!0,outlineRight:!0,outlineBottom:!0,outlineLeft:!0,fontSize:[.707,1.44]})},t}();e.Safe=l},4498:function(t,e){var r=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},n=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.lookup=e.separateOptions=e.selectOptionsFromKeys=e.selectOptions=e.userOptions=e.defaultOptions=e.insert=e.copy=e.keys=e.makeArray=e.expandable=e.Expandable=e.OPTIONS=e.REMOVE=e.APPEND=e.isObject=void 0;var i={}.constructor;function a(t){return"object"==typeof t&&null!==t&&(t.constructor===i||t.constructor===l)}e.isObject=a,e.APPEND="[+]",e.REMOVE="[-]",e.OPTIONS={invalidOption:"warn",optionError:function(t,r){if("fatal"===e.OPTIONS.invalidOption)throw new Error(t);console.warn("MathJax: "+t)}};var l=function(){};function s(t){return Object.assign(Object.create(l.prototype),t)}function f(t){return t?Object.keys(t).concat(Object.getOwnPropertySymbols(t)):[]}function c(t){var e,n,o={};try{for(var i=r(f(t)),p=i.next();!p.done;p=i.next()){var h=p.value,y=Object.getOwnPropertyDescriptor(t,h),d=y.value;Array.isArray(d)?y.value=u([],d,!1):a(d)&&(y.value=c(d)),y.enumerable&&(o[h]=y)}}catch(t){e={error:t}}finally{try{p&&!p.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return Object.defineProperties(t.constructor===l?s({}):{},o)}function u(t,i,s){var p,h;void 0===s&&(s=!0);var y=function(r){if(s&&void 0===t[r]&&t.constructor!==l)return"symbol"==typeof r&&(r=r.toString()),e.OPTIONS.optionError('Invalid option "'.concat(r,'" (no default value).'),r),"continue";var p=i[r],h=t[r];if(!a(p)||null===h||"object"!=typeof h&&"function"!=typeof h)Array.isArray(p)?(t[r]=[],u(t[r],p,!1)):a(p)?t[r]=c(p):t[r]=p;else{var y=f(p);Array.isArray(h)&&(1===y.length&&(y[0]===e.APPEND||y[0]===e.REMOVE)&&Array.isArray(p[y[0]])||2===y.length&&y.sort().join(",")===e.APPEND+","+e.REMOVE&&Array.isArray(p[e.APPEND])&&Array.isArray(p[e.REMOVE]))?(p[e.REMOVE]&&(h=t[r]=h.filter((function(t){return p[e.REMOVE].indexOf(t)<0}))),p[e.APPEND]&&(t[r]=o(o([],n(h),!1),n(p[e.APPEND]),!1))):u(h,p,s)}};try{for(var d=r(f(i)),v=d.next();!v.done;v=d.next())y(v.value)}catch(t){p={error:t}}finally{try{v&&!v.done&&(h=d.return)&&h.call(d)}finally{if(p)throw p.error}}return t}function p(t){for(var e,n,o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];var a={};try{for(var l=r(o),s=l.next();!s.done;s=l.next()){var f=s.value;t.hasOwnProperty(f)&&(a[f]=t[f])}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=l.return)&&n.call(l)}finally{if(e)throw e.error}}return a}e.Expandable=l,e.expandable=s,e.makeArray=function(t){return Array.isArray(t)?t:[t]},e.keys=f,e.copy=c,e.insert=u,e.defaultOptions=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return e.forEach((function(e){return u(t,e,!1)})),t},e.userOptions=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return e.forEach((function(e){return u(t,e,!0)})),t},e.selectOptions=p,e.selectOptionsFromKeys=function(t,e){return p.apply(void 0,o([t],n(Object.keys(e)),!1))},e.separateOptions=function(t){for(var e,n,o,i,a=[],l=1;l<arguments.length;l++)a[l-1]=arguments[l];var s=[];try{for(var f=r(a),c=f.next();!c.done;c=f.next()){var u=c.value,p={},h={};try{for(var y=(o=void 0,r(Object.keys(t||{}))),d=y.next();!d.done;d=y.next()){var v=d.value;(void 0===u[v]?h:p)[v]=t[v]}}catch(t){o={error:t}}finally{try{d&&!d.done&&(i=y.return)&&i.call(y)}finally{if(o)throw o.error}}s.push(p),t=h}}catch(t){e={error:t}}finally{try{c&&!c.done&&(n=f.return)&&n.call(f)}finally{if(e)throw e.error}}return s.unshift(t),s},e.lookup=function(t,e,r){return void 0===r&&(r=null),e.hasOwnProperty(t)?e[t]:r}},56780:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.px=e.emRounded=e.em=e.percent=e.length2em=e.MATHSPACE=e.RELUNITS=e.UNITS=e.BIGDIMEN=void 0,e.BIGDIMEN=1e6,e.UNITS={px:1,in:96,cm:96/2.54,mm:96/25.4},e.RELUNITS={em:1,ex:.431,pt:.1,pc:1.2,mu:1/18},e.MATHSPACE={veryverythinmathspace:1/18,verythinmathspace:2/18,thinmathspace:3/18,mediummathspace:4/18,thickmathspace:5/18,verythickmathspace:6/18,veryverythickmathspace:7/18,negativeveryverythinmathspace:-1/18,negativeverythinmathspace:-2/18,negativethinmathspace:-3/18,negativemediummathspace:-4/18,negativethickmathspace:-5/18,negativeverythickmathspace:-6/18,negativeveryverythickmathspace:-7/18,thin:.04,medium:.06,thick:.1,normal:1,big:2,small:1/Math.sqrt(2),infinity:e.BIGDIMEN},e.length2em=function(t,r,n,o){if(void 0===r&&(r=0),void 0===n&&(n=1),void 0===o&&(o=16),"string"!=typeof t&&(t=String(t)),""===t||null==t)return r;if(e.MATHSPACE[t])return e.MATHSPACE[t];var i=t.match(/^\s*([-+]?(?:\.\d+|\d+(?:\.\d*)?))?(pt|em|ex|mu|px|pc|in|mm|cm|%)?/);if(!i)return r;var a=parseFloat(i[1]||"1"),l=i[2];return e.UNITS.hasOwnProperty(l)?a*e.UNITS[l]/o/n:e.RELUNITS.hasOwnProperty(l)?a*e.RELUNITS[l]:"%"===l?a/100*r:a*r},e.percent=function(t){return(100*t).toFixed(1).replace(/\.?0+$/,"")+"%"},e.em=function(t){return Math.abs(t)<.001?"0":t.toFixed(3).replace(/\.?0+$/,"")+"em"},e.emRounded=function(t,e){return void 0===e&&(e=16),t=(Math.round(t*e)+.05)/e,Math.abs(t)<.001?"0em":t.toFixed(3).replace(/\.?0+$/,"")+"em"},e.px=function(t,r,n){return void 0===r&&(r=-e.BIGDIMEN),void 0===n&&(n=16),t*=n,r&&t<r&&(t=r),Math.abs(t)<.1?"0":t.toFixed(1).replace(/\.0$/,"")+"px"}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[8285,4498],{78285:function(t,e,r){var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},i.apply(this,arguments)},a=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},l=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.SafeHandler=e.SafeMathDocumentMixin=void 0;var f=r(19290);function c(t){var e;return e=function(t){function e(){for(var e,r,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=t.apply(this,l([],a(n),!1))||this;i.safe=new i.options.SafeClass(i,i.options.safeOptions);var f=i.constructor.ProcessBits;f.has("safe")||f.allocate("safe");try{for(var c=s(i.inputJax),u=c.next();!u.done;u=c.next()){var p=u.value;p.name.match(/MathML/)?(p.mathml.filterAttribute=i.safe.mmlAttribute.bind(i.safe),p.mathml.filterClassList=i.safe.mmlClassList.bind(i.safe)):p.name.match(/TeX/)&&p.postFilters.add(i.sanitize.bind(p),-5.5)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(e)throw e.error}}return i}return o(e,t),e.prototype.sanitize=function(t){t.math.root=this.parseOptions.root,t.document.safe.sanitize(t.math,t.document)},e}(t),e.OPTIONS=i(i({},t.OPTIONS),{safeOptions:i({},f.Safe.OPTIONS),SafeClass:f.Safe}),e}e.SafeMathDocumentMixin=c,e.SafeHandler=function(t){return t.documentClass=c(t.documentClass),t}},35230:function(t,e,r){var n=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.SafeMethods=void 0;var i=r(56780);e.SafeMethods={filterURL:function(t,e){var r=(e.match(/^\s*([a-z]+):/i)||[null,""])[1].toLowerCase(),n=t.allow.URLs;return"all"===n||"safe"===n&&(t.options.safeProtocols[r]||!r)?e:null},filterClassList:function(t,e){var r=this;return e.trim().replace(/\s\s+/g," ").split(/ /).map((function(e){return r.filterClass(t,e)||""})).join(" ").trim().replace(/\s\s+/g,"")},filterClass:function(t,e){var r=t.allow.classes;return"all"===r||"safe"===r&&e.match(t.options.classPattern)?e:null},filterID:function(t,e){var r=t.allow.cssIDs;return"all"===r||"safe"===r&&e.match(t.options.idPattern)?e:null},filterStyles:function(t,e){var r,o,i,a;if("all"===t.allow.styles)return e;if("safe"!==t.allow.styles)return null;var l=t.adaptor,s=t.options;try{var f=l.node("div",{style:e}),c=l.node("div");try{for(var u=n(Object.keys(s.safeStyles)),p=u.next();!p.done;p=u.next()){var h=p.value;if(s.styleParts[h])try{for(var y=(i=void 0,n(["Top","Right","Bottom","Left"])),d=y.next();!d.done;d=y.next()){var v,m=h+d.value;(v=this.filterStyle(t,m,f))&&l.setStyle(c,m,v)}}catch(t){i={error:t}}finally{try{d&&!d.done&&(a=y.return)&&a.call(y)}finally{if(i)throw i.error}}else(v=this.filterStyle(t,h,f))&&l.setStyle(c,h,v)}}catch(t){r={error:t}}finally{try{p&&!p.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}e=l.allStyles(c)}catch(t){e=""}return e},filterStyle:function(t,e,r){var n=t.adaptor.getStyle(r,e);if("string"!=typeof n||""===n||n.match(/^\s*calc/)||n.match(/javascript:/)&&!t.options.safeProtocols.javascript||n.match(/data:/)&&!t.options.safeProtocols.data)return null;var o=e.replace(/Top|Right|Left|Bottom/,"");return t.options.safeStyles[e]||t.options.safeStyles[o]?this.filterStyleValue(t,e,n,r):null},filterStyleValue:function(t,e,r,n){var o=t.options.styleLengths[e];if(!o)return r;if("string"!=typeof o)return this.filterStyleLength(t,e,r);var i=this.filterStyleLength(t,o,t.adaptor.getStyle(n,o));return i?(t.adaptor.setStyle(n,o,i),t.adaptor.getStyle(n,e)):null},filterStyleLength:function(t,e,r){if(!r.match(/^(.+)(em|ex|ch|rem|px|mm|cm|in|pt|pc|%)$/))return null;var n=(0,i.length2em)(r,1),a=t.options.styleLengths[e],l=o(Array.isArray(a)?a:[-t.options.lengthMax,t.options.lengthMax],2),s=l[0],f=l[1];return s<=n&&n<=f?r:(n<s?s:f).toFixed(3).replace(/\.?0+$/,"")+"em"},filterFontSize:function(t,e){return this.filterStyleLength(t,"fontSize",e)},filterSizeMultiplier:function(t,e){var r=o(t.options.scriptsizemultiplierRange||[-1/0,1/0],2),n=r[0],i=r[1];return Math.min(i,Math.max(n,parseFloat(e))).toString()},filterScriptLevel:function(t,e){var r=o(t.options.scriptlevelRange||[-1/0,1/0],2),n=r[0],i=r[1];return Math.min(i,Math.max(n,parseInt(e))).toString()},filterData:function(t,e,r){return r.match(t.options.dataPattern)?e:null}}},19290:function(t,e,r){var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)},o=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.Safe=void 0;var i=r(4498),a=r(35230),l=function(){function t(t,e){this.filterAttributes=new Map([["href","filterURL"],["src","filterURL"],["altimg","filterURL"],["class","filterClassList"],["style","filterStyles"],["id","filterID"],["fontsize","filterFontSize"],["mathsize","filterFontSize"],["scriptminsize","filterFontSize"],["scriptsizemultiplier","filterSizeMultiplier"],["scriptlevel","filterScriptLevel"],["data-","filterData"]]),this.filterMethods=n({},a.SafeMethods),this.adaptor=t.adaptor,this.options=e,this.allow=this.options.allow}return t.prototype.sanitize=function(t,e){try{t.root.walkTree(this.sanitizeNode.bind(this))}catch(r){e.options.compileError(e,t,r)}},t.prototype.sanitizeNode=function(t){var e,r,n=t.attributes.getAllAttributes();try{for(var i=o(Object.keys(n)),a=i.next();!a.done;a=i.next()){var l=a.value,s=this.filterAttributes.get(l);if(s){var f=this.filterMethods[s](this,n[l]);f?f!==("number"==typeof f?parseFloat(n[l]):n[l])&&(n[l]=f):delete n[l]}}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}},t.prototype.mmlAttribute=function(t,e){if("class"===t)return null;var r=this.filterAttributes.get(t)||("data-"===t.substr(0,5)?this.filterAttributes.get("data-"):null);if(!r)return e;var n=this.filterMethods[r](this,e,t);return"number"==typeof n||"boolean"==typeof n?String(n):n},t.prototype.mmlClassList=function(t){var e=this;return t.map((function(t){return e.filterMethods.filterClass(e,t)})).filter((function(t){return null!==t}))},t.OPTIONS={allow:{URLs:"safe",classes:"safe",cssIDs:"safe",styles:"safe"},lengthMax:3,scriptsizemultiplierRange:[.6,1],scriptlevelRange:[-2,2],classPattern:/^mjx-[-a-zA-Z0-9_.]+$/,idPattern:/^mjx-[-a-zA-Z0-9_.]+$/,dataPattern:/^data-mjx-/,safeProtocols:(0,i.expandable)({http:!0,https:!0,file:!0,javascript:!1,data:!1}),safeStyles:(0,i.expandable)({color:!0,backgroundColor:!0,border:!0,cursor:!0,margin:!0,padding:!0,textShadow:!0,fontFamily:!0,fontSize:!0,fontStyle:!0,fontWeight:!0,opacity:!0,outline:!0}),styleParts:(0,i.expandable)({border:!0,padding:!0,margin:!0,outline:!0}),styleLengths:(0,i.expandable)({borderTop:"borderTopWidth",borderRight:"borderRightWidth",borderBottom:"borderBottomWidth",borderLeft:"borderLeftWidth",paddingTop:!0,paddingRight:!0,paddingBottom:!0,paddingLeft:!0,marginTop:!0,marginRight:!0,marginBottom:!0,marginLeft:!0,outlineTop:!0,outlineRight:!0,outlineBottom:!0,outlineLeft:!0,fontSize:[.707,1.44]})},t}();e.Safe=l},4498:function(t,e){var r=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},n=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.lookup=e.separateOptions=e.selectOptionsFromKeys=e.selectOptions=e.userOptions=e.defaultOptions=e.insert=e.copy=e.keys=e.makeArray=e.expandable=e.Expandable=e.OPTIONS=e.REMOVE=e.APPEND=e.isObject=void 0;var i={}.constructor;function a(t){return"object"==typeof t&&null!==t&&(t.constructor===i||t.constructor===l)}e.isObject=a,e.APPEND="[+]",e.REMOVE="[-]",e.OPTIONS={invalidOption:"warn",optionError:function(t,r){if("fatal"===e.OPTIONS.invalidOption)throw new Error(t);console.warn("MathJax: "+t)}};var l=function(){};function s(t){return Object.assign(Object.create(l.prototype),t)}function f(t){return t?Object.keys(t).concat(Object.getOwnPropertySymbols(t)):[]}function c(t){var e,n,o={};try{for(var i=r(f(t)),p=i.next();!p.done;p=i.next()){var h=p.value,y=Object.getOwnPropertyDescriptor(t,h),d=y.value;Array.isArray(d)?y.value=u([],d,!1):a(d)&&(y.value=c(d)),y.enumerable&&(o[h]=y)}}catch(t){e={error:t}}finally{try{p&&!p.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return Object.defineProperties(t.constructor===l?s({}):{},o)}function u(t,i,s){var p,h;void 0===s&&(s=!0);var y=function(r){if(s&&void 0===t[r]&&t.constructor!==l)return"symbol"==typeof r&&(r=r.toString()),e.OPTIONS.optionError('Invalid option "'.concat(r,'" (no default value).'),r),"continue";var p=i[r],h=t[r];if(!a(p)||null===h||"object"!=typeof h&&"function"!=typeof h)Array.isArray(p)?(t[r]=[],u(t[r],p,!1)):a(p)?t[r]=c(p):t[r]=p;else{var y=f(p);Array.isArray(h)&&(1===y.length&&(y[0]===e.APPEND||y[0]===e.REMOVE)&&Array.isArray(p[y[0]])||2===y.length&&y.sort().join(",")===e.APPEND+","+e.REMOVE&&Array.isArray(p[e.APPEND])&&Array.isArray(p[e.REMOVE]))?(p[e.REMOVE]&&(h=t[r]=h.filter((function(t){return p[e.REMOVE].indexOf(t)<0}))),p[e.APPEND]&&(t[r]=o(o([],n(h),!1),n(p[e.APPEND]),!1))):u(h,p,s)}};try{for(var d=r(f(i)),v=d.next();!v.done;v=d.next())y(v.value)}catch(t){p={error:t}}finally{try{v&&!v.done&&(h=d.return)&&h.call(d)}finally{if(p)throw p.error}}return t}function p(t){for(var e,n,o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];var a={};try{for(var l=r(o),s=l.next();!s.done;s=l.next()){var f=s.value;t.hasOwnProperty(f)&&(a[f]=t[f])}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=l.return)&&n.call(l)}finally{if(e)throw e.error}}return a}e.Expandable=l,e.expandable=s,e.makeArray=function(t){return Array.isArray(t)?t:[t]},e.keys=f,e.copy=c,e.insert=u,e.defaultOptions=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return e.forEach((function(e){return u(t,e,!1)})),t},e.userOptions=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return e.forEach((function(e){return u(t,e,!0)})),t},e.selectOptions=p,e.selectOptionsFromKeys=function(t,e){return p.apply(void 0,o([t],n(Object.keys(e)),!1))},e.separateOptions=function(t){for(var e,n,o,i,a=[],l=1;l<arguments.length;l++)a[l-1]=arguments[l];var s=[];try{for(var f=r(a),c=f.next();!c.done;c=f.next()){var u=c.value,p={},h={};try{for(var y=(o=void 0,r(Object.keys(t||{}))),d=y.next();!d.done;d=y.next()){var v=d.value;(void 0===u[v]?h:p)[v]=t[v]}}catch(t){o={error:t}}finally{try{d&&!d.done&&(i=y.return)&&i.call(y)}finally{if(o)throw o.error}}s.push(p),t=h}}catch(t){e={error:t}}finally{try{c&&!c.done&&(n=f.return)&&n.call(f)}finally{if(e)throw e.error}}return s.unshift(t),s},e.lookup=function(t,e,r){return void 0===r&&(r=null),e.hasOwnProperty(t)?e[t]:r}},56780:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.px=e.emRounded=e.em=e.percent=e.length2em=e.MATHSPACE=e.RELUNITS=e.UNITS=e.BIGDIMEN=void 0,e.BIGDIMEN=1e6,e.UNITS={px:1,in:96,cm:96/2.54,mm:96/25.4},e.RELUNITS={em:1,ex:.431,pt:.1,pc:1.2,mu:1/18},e.MATHSPACE={veryverythinmathspace:1/18,verythinmathspace:2/18,thinmathspace:3/18,mediummathspace:4/18,thickmathspace:5/18,verythickmathspace:6/18,veryverythickmathspace:7/18,negativeveryverythinmathspace:-1/18,negativeverythinmathspace:-2/18,negativethinmathspace:-3/18,negativemediummathspace:-4/18,negativethickmathspace:-5/18,negativeverythickmathspace:-6/18,negativeveryverythickmathspace:-7/18,thin:.04,medium:.06,thick:.1,normal:1,big:2,small:1/Math.sqrt(2),infinity:e.BIGDIMEN},e.length2em=function(t,r,n,o){if(void 0===r&&(r=0),void 0===n&&(n=1),void 0===o&&(o=16),"string"!=typeof t&&(t=String(t)),""===t||null==t)return r;if(e.MATHSPACE[t])return e.MATHSPACE[t];var i=t.match(/^\s*([-+]?(?:\.\d+|\d+(?:\.\d*)?))?(pt|em|ex|mu|px|pc|in|mm|cm|%)?/);if(!i)return r;var a=parseFloat(i[1]||"1"),l=i[2];return e.UNITS.hasOwnProperty(l)?a*e.UNITS[l]/o/n:e.RELUNITS.hasOwnProperty(l)?a*e.RELUNITS[l]:"%"===l?a/100*r:a*r},e.percent=function(t){return(100*t).toFixed(1).replace(/\.?0+$/,"")+"%"},e.em=function(t){return Math.abs(t)<.001?"0":t.toFixed(3).replace(/\.?0+$/,"")+"em"},e.emRounded=function(t,e){return void 0===e&&(e=16),t=(Math.round(t*e)+.05)/e,Math.abs(t)<.001?"0em":t.toFixed(3).replace(/\.?0+$/,"")+"em"},e.px=function(t,r,n){return void 0===r&&(r=-e.BIGDIMEN),void 0===n&&(n=16),t*=n,r&&t<r&&(t=r),Math.abs(t)<.1?"0":t.toFixed(1).replace(/\.0$/,"")+"px"}}}]);
|
notebook/static/8471.bundle.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[8471],{8471:(e,t,n)=>{n.r(t),n.d(t,{ToolbarItems:()=>E,default:()=>T,downloadPlugin:()=>W,openBrowserTabPlugin:()=>F,pathStatusPlugin:()=>I,savingStatusPlugin:()=>S});var o,a,r=n(27961),i=n(15465),l=n(44548),d=n(94624),s=n(87844),c=n(54252),u=n(25291),m=n(12668),g=n(33625),p=n(20998),h=n(81997),v=n(63485),f=n(78156),w=n(93223);!function(e){e.clearRecents="docmanager:clear-recents"}(o||(o={})),function(e){e.recentsManager="@jupyterlab/docmanager-extension:recents",e.reopenClosed="@jupyterlab/docmanager-extension:reopen-recently-closed",e.mainPlugin="@jupyterlab/docmanager-extension:plugin"}(a||(a={}));const _={id:a.recentsManager,description:"Provides a manager of recently opened and closed documents.",autoStart:!0,requires:[w.IStateDB],optional:[s.ISettingRegistry,u.ITranslator],provides:d.IRecentsManager,activate:(e,t,n,r)=>{const{serviceManager:i}=e,l=(null!=r?r:u.nullTranslator).load("jupyterlab"),s=new d.RecentsManager({stateDB:t,contents:i.contents}),c=e=>{s.maximalRecentsLength=e.get("maxNumberRecents").composite};return n&&Promise.all([e.restored,n.load(a.mainPlugin)]).then((([e,t])=>{t.changed.connect(c),c(t)})),e.commands.addCommand(o.clearRecents,{execute:()=>{s.clearRecents()},isEnabled:()=>0!=s.recentlyOpened.length||0!=s.recentlyClosed.length,label:l.__("Clear Recent Documents"),caption:l.__("Clear the list of recently opened items.")}),s}};var b;!function(e){e.clone="docmanager:clone",e.deleteFile="docmanager:delete-file",e.newUntitled="docmanager:new-untitled",e.open="docmanager:open",e.openBrowserTab="docmanager:open-browser-tab",e.reload="docmanager:reload",e.rename="docmanager:rename",e.del="docmanager:delete",e.duplicate="docmanager:duplicate",e.restoreCheckpoint="docmanager:restore-checkpoint",e.save="docmanager:save",e.saveAll="docmanager:save-all",e.saveAs="docmanager:save-as",e.download="docmanager:download",e.toggleAutosave="docmanager:toggle-autosave",e.showInFileBrowser="docmanager:show-in-file-browser"}(b||(b={}));const y="@jupyterlab/docmanager-extension:plugin",C={id:"@jupyterlab/docmanager-extension:opener",description:"Provides the widget opener.",autoStart:!0,provides:d.IDocumentWidgetOpener,activate:e=>{const{shell:t}=e;return new class{constructor(){this._opened=new h.Signal(this)}open(e,n){e.id||(e.id="document-manager-"+ ++R.id),e.title.dataset={type:"document-title",...e.title.dataset},e.isAttached||t.add(e,"main",n||{}),t.activateById(e.id),this._opened.emit(e)}get opened(){return this._opened}}}},x={id:"@jupyterlab/docmanager-extension:contexts",description:"Adds the handling of opened documents dirty state.",autoStart:!0,requires:[d.IDocumentManager,d.IDocumentWidgetOpener],optional:[r.ILabStatus],activate:(e,t,n,o)=>{const a=new WeakSet;n.opened.connect(((e,n)=>{const r=t.contextForWidget(n);r&&!a.has(r)&&(o&&function(e,t){let n=null;const o=(t,o)=>{"dirty"===o.name&&(!0===o.newValue?n||(n=e.setDirty()):n&&(n.dispose(),n=null))};t.ready.then((()=>{t.model.stateChanged.connect(o),t.model.dirty&&(n=e.setDirty())})),t.disposed.connect((()=>{n&&n.dispose()}))}(o,r),a.add(r))}))}},D={id:"@jupyterlab/docmanager-extension:manager",description:"Provides the document manager.",provides:d.IDocumentManager,requires:[d.IDocumentWidgetOpener],optional:[u.ITranslator,r.ILabStatus,i.ISessionContextDialogs,r.JupyterLab.IInfo,d.IRecentsManager],activate:(e,t,n,o,a,r,l)=>{var s;const{serviceManager:c,docRegistry:m}=e,g=null!=n?n:u.nullTranslator,p=null!=a?a:new i.SessionContextDialogs({translator:g}),h=e.restored.then((()=>{}));return new d.DocumentManager({registry:m,manager:c,opener:t,when:h,setBusy:null!==(s=o&&(()=>o.setBusy()))&&void 0!==s?s:void 0,sessionDialogs:p,translator:null!=g?g:u.nullTranslator,isConnectedCallback:()=>!r||r.isConnected,recentsManager:null!=l?l:void 0})}},k={id:y,description:"Adds commands and settings to the document manager.",autoStart:!0,requires:[d.IDocumentManager,d.IDocumentWidgetOpener,s.ISettingRegistry],optional:[u.ITranslator,i.ICommandPalette,r.ILabShell],activate:(e,t,n,o,a,r,s)=>{const c=(a=null!=a?a:u.nullTranslator).load("jupyterlab"),h=e.docRegistry;!function(e,t,n,o,a,r,s){var c;const u=a.load("jupyterlab"),{commands:p,shell:h}=e,v=u.__("File Operations"),f=()=>{const{currentWidget:e}=h;return!(!e||!t.contextForWidget(e))},w=()=>{var e;const{currentWidget:n}=h;if(!n)return!1;const o=t.contextForWidget(n);return!!(null===(e=null==o?void 0:o.contentsModel)||void 0===e?void 0:e.writable)},_=e=>i.Notification.warning(u.__('%1 is read-only. Use "Save as…" instead.',e),{autoClose:5e3});r&&function(e,t,n,o,a){const r=a.load("jupyterlab"),{commands:l}=e,s=()=>{var o;const a=/[Pp]ath:\s?(.*)\n?/,r=e.contextMenuHitTest((e=>{var t;return!!(null===(t=e.title)||void 0===t?void 0:t.match(a))})),i=null==r?void 0:r.title.match(a);return null!==(o=i&&t.findWidget(i[1],null))&&void 0!==o?o:n.currentWidget},c=()=>{const{currentWidget:e}=n;return!(!e||!t.contextForWidget(e))};l.addCommand(b.clone,{label:()=>r.__("New View for %1",M(s(),t)),isEnabled:c,execute:e=>{const n=s(),a=e.options||{mode:"split-right"};if(!n)return;const r=t.cloneWidget(n);r&&o.open(r,a)}}),l.addCommand(b.rename,{label:()=>{let e=M(s(),t);return e&&(e=" "+e),r.__("Rename%1…",e)},isEnabled:c,execute:()=>{if(c()){const e=t.contextForWidget(s());return(0,d.renameDialog)(t,e)}}}),l.addCommand(b.duplicate,{label:()=>r.__("Duplicate %1",M(s(),t)),isEnabled:c,execute:()=>{if(c()){const e=t.contextForWidget(s());if(!e)return;return t.duplicate(e.path)}}}),l.addCommand(b.del,{label:()=>r.__("Delete %1",M(s(),t)),isEnabled:c,execute:async()=>{if(c()){const n=t.contextForWidget(s());if(!n)return;(await(0,i.showDialog)({title:r.__("Delete"),body:r.__("Are you sure you want to delete %1",n.path),buttons:[i.Dialog.cancelButton(),i.Dialog.warnButton({label:r.__("Delete")})]})).button.accept&&await e.commands.execute("docmanager:delete-file",{path:n.path})}}}),l.addCommand(b.showInFileBrowser,{label:()=>r.__("Show in File Browser"),isEnabled:c,execute:async()=>{const e=s(),n=e&&t.contextForWidget(e);n&&(await l.execute("filebrowser:activate",{path:n.path}),await l.execute("filebrowser:go-to-path",{path:n.path}))}}),n.currentChanged.connect((()=>{[b.clone,b.rename,b.duplicate,b.del,b.showInFileBrowser].forEach((t=>{e.commands.notifyCommandChanged(t)}))}))}(e,t,r,n,a),p.addCommand(b.deleteFile,{label:()=>`Delete ${M(h.currentWidget,t)}`,execute:e=>{const n=void 0===e.path?"":e.path;if(!n){const e=b.deleteFile;throw new Error(`A non-empty path is required for ${e}.`)}return t.deleteFile(n)}}),p.addCommand(b.newUntitled,{execute:async e=>{const n=e.error||u.__("Error"),o=void 0===e.path?"":e.path,a={type:e.type,path:o};return"file"===e.type&&(a.ext=e.ext||".txt"),t.services.contents.newUntitled(a).catch((e=>(0,i.showErrorMessage)(n,e)))},label:e=>e.label||`New ${e.type}`}),p.addCommand(b.open,{execute:async e=>{const n=void 0===e.path?"":e.path,o=e.factory||void 0,a=null==e?void 0:e.kernel,r=e.options||void 0;return t.services.contents.get(n,{content:!1}).then((()=>t.openOrReveal(n,o,a,r)))},iconClass:e=>e.icon||"",label:e=>{var t;return null!==(t=e.label||e.factory)&&void 0!==t?t:u.__("Open the provided `path`.")},mnemonic:e=>e.mnemonic||-1}),p.addCommand(b.reload,{label:()=>u.__("Reload %1 from Disk",M(h.currentWidget,t)),caption:u.__("Reload contents from disk"),isEnabled:f,execute:()=>{if(!f())return;const e=t.contextForWidget(h.currentWidget),n=M(h.currentWidget,t);return e?e.model.dirty?(0,i.showDialog)({title:u.__("Reload %1 from Disk",n),body:u.__("Are you sure you want to reload the %1 from the disk?",n),buttons:[i.Dialog.cancelButton(),i.Dialog.warnButton({label:u.__("Reload")})]}).then((t=>{if(t.button.accept&&!e.isDisposed)return e.revert()})):e.isDisposed?void 0:e.revert():(0,i.showDialog)({title:u.__("Cannot Reload"),body:u.__("No context found for current widget!"),buttons:[i.Dialog.okButton()]})}}),p.addCommand(b.restoreCheckpoint,{label:()=>u.__("Revert %1 to Checkpoint…",M(h.currentWidget,t)),caption:u.__("Revert contents to previous checkpoint"),isEnabled:f,execute:()=>{if(!f())return;const e=t.contextForWidget(h.currentWidget);return e?e.listCheckpoints().then((async n=>{const o=M(h.currentWidget,t);if(n.length<1)return void await(0,i.showErrorMessage)(u.__("No checkpoints"),u.__("No checkpoints are available for this %1.",o));const a=1===n.length?n[0]:await R.getTargetCheckpoint(n.reverse(),u);return a?(0,i.showDialog)({title:u.__("Revert %1 to checkpoint",o),body:new A(a,u,o),buttons:[i.Dialog.cancelButton(),i.Dialog.warnButton({label:u.__("Revert"),ariaLabel:u.__("Revert to Checkpoint")})]}).then((t=>{if(!e.isDisposed)return t.button.accept?e.model.readOnly?e.revert():e.restoreCheckpoint(a.id).then((()=>e.revert())):void 0})):void 0})):(0,i.showDialog)({title:u.__("Cannot Revert"),body:u.__("No context found for current widget!"),buttons:[i.Dialog.okButton()]})}});const C=new WeakSet;p.addCommand(b.save,{label:()=>u.__("Save %1",M(h.currentWidget,t)),caption:()=>{if(h.currentWidget){const e=t.contextForWidget(h.currentWidget);if(null==e?void 0:e.model.collaborative)return u.__("In collaborative mode, the document is saved automatically after every change");if(!w())return u.__('Document is read-only. "Save" is disabled; use "Save as…" instead')}return u.__("Save and create checkpoint")},icon:e=>e.toolbar?m.saveIcon:void 0,isEnabled:e=>e._luminoEvent&&"keybinding"===e._luminoEvent.type||w(),execute:async e=>{var n,a,r,d,s;const c=h.currentWidget,m=t.contextForWidget(c);if(f()){if(!m)return(0,i.showDialog)({title:u.__("Cannot Save"),body:u.__("No context found for current widget!"),buttons:[i.Dialog.okButton()]});{if(C.has(m))return;if(!(null===(n=m.contentsModel)||void 0===n?void 0:n.writable)&&!m.model.collaborative){let t=null===(a=e._luminoEvent)||void 0===a?void 0:a.type;return e._luminoEvent&&"keybinding"===t?void _(m.path):(0,i.showDialog)({title:u.__("Cannot Save"),body:u.__("Document is read-only"),buttons:[i.Dialog.okButton()]})}C.add(m);const g=l.PathExt.basename(null!==(d=null===(r=m.contentsModel)||void 0===r?void 0:r.path)&&void 0!==d?d:"");let p=g;if(t.renameUntitledFileOnSave&&!0===c.isUntitled){const e=await i.InputDialog.getText({title:u.__("Rename file"),okLabel:u.__("Rename"),placeholder:u.__("File name"),text:g,selectionRange:g.length-l.PathExt.extname(g).length,checkbox:{label:u.__("Do not ask me again."),caption:u.__("If checked, you will not be asked to rename future untitled files when saving them.")}});if(e.button.accept&&(p=null!==(s=e.value)&&void 0!==s?s:g,c.isUntitled=!1,"boolean"==typeof e.isChecked)){const t=(await o.get(y,"renameUntitledFileOnSave")).composite;e.isChecked===t&&o.set(y,"renameUntitledFileOnSave",!e.isChecked).catch((e=>{console.error(`Fail to set 'renameUntitledFileOnSave:\n${e}`)}))}}try{if(await m.save(),!(null==c?void 0:c.isDisposed))return m.createCheckpoint()}catch(e){if("ModalCancelError"===e.name)return;throw e}finally{C.delete(m),p!==g&&await m.rename(p)}}}}}),p.addCommand(b.saveAll,{label:()=>u.__("Save All"),caption:u.__("Save all open documents"),isEnabled:()=>(0,g.some)(h.widgets("main"),(e=>{var n,o,a;return null!==(a=null===(o=null===(n=t.contextForWidget(e))||void 0===n?void 0:n.contentsModel)||void 0===o?void 0:o.writable)&&void 0!==a&&a})),execute:()=>{var e;const n=[],o=new Set;for(const a of h.widgets("main")){const r=t.contextForWidget(a);r&&!o.has(r.path)&&((null===(e=r.contentsModel)||void 0===e?void 0:e.writable)?(o.add(r.path),n.push(r.save())):_(r.path))}return Promise.all(n)}}),p.addCommand(b.saveAs,{label:()=>u.__("Save %1 As…",M(h.currentWidget,t)),caption:u.__("Save with new path"),isEnabled:f,execute:()=>{if(f()){const e=t.contextForWidget(h.currentWidget);if(!e)return(0,i.showDialog)({title:u.__("Cannot Save"),body:u.__("No context found for current widget!"),buttons:[i.Dialog.okButton()]});const n=(n,o)=>{"save"===o.type&&o.newValue&&o.newValue.path!==e.path&&(t.closeFile(e.path),p.execute(b.open,{path:o.newValue.path}))};t.services.contents.fileChanged.connect(n),e.saveAs().finally((()=>t.services.contents.fileChanged.disconnect(n)))}}}),null===(c=e.shell.currentChanged)||void 0===c||c.connect((()=>{[b.reload,b.restoreCheckpoint,b.save,b.saveAll,b.saveAs].forEach((t=>{e.commands.notifyCommandChanged(t)}))})),p.addCommand(b.toggleAutosave,{label:u.__("Autosave Documents"),isToggled:()=>t.autosave,execute:()=>{const e=!t.autosave,n="autosave";return o.set(y,n,e).catch((e=>{console.error(`Failed to set ${y}:${n} - ${e.message}`)}))}}),s&&[b.reload,b.restoreCheckpoint,b.save,b.saveAs,b.toggleAutosave,b.duplicate].forEach((e=>{s.addItem({command:e,category:v})}))}(e,t,n,o,a,s,r);const v=n=>{const o=n.get("autosave").composite;t.autosave=!0!==o&&!1!==o||o,e.commands.notifyCommandChanged(b.toggleAutosave);const a=n.get("confirmClosingDocument").composite;t.confirmClosingDocument=null==a||a;const r=n.get("autosaveInterval").composite;t.autosaveInterval=r||120;const i=n.get("lastModifiedCheckMargin").composite;t.lastModifiedCheckMargin=i||500;const l=n.get("renameUntitledFileOnSave").composite;t.renameUntitledFileOnSave=null==l||l;const d=n.get("defaultViewers").composite,s={};Object.keys(d).forEach((e=>{h.getFileType(e)?(h.getWidgetFactory(d[e])||console.warn(`Document viewer ${d[e]} not found`),s[e]=d[e]):console.warn(`File Type ${e} not found`)}));for(const e of h.fileTypes())try{h.setDefaultWidgetFactory(e.name,s[e.name])}catch(t){console.warn(`Failed to set default viewer ${s[e.name]} for file type ${e.name}`)}};Promise.all([o.load(y),e.restored]).then((([e])=>{e.changed.connect(v),v(e),t.stateChanged.connect(((t,n)=>{["autosave","autosaveInterval","confirmClosingDocument","lastModifiedCheckMargin","renameUntitledFileOnSave"].includes(n.name)&&e.get(n.name).composite!==n.newValue&&e.set(n.name,n.newValue).catch((e=>{console.error(`Failed to set the setting '${n.name}':\n${e}`)}))}))})).catch((e=>{console.error(e.message)})),o.transform(y,{fetch:e=>{const t=Array.from(h.fileTypes()).map((e=>e.name)).join(" \n"),n=Array.from(h.widgetFactories()).map((e=>e.name)).join(" \n"),o=c.__('Overrides for the default viewers for file types.\nSpecify a mapping from file type name to document viewer name, for example:\n\ndefaultViewers: {\n markdown: "Markdown Preview"\n}\n\nIf you specify non-existent file types or viewers, or if a viewer cannot\nopen a given file type, the override will not function.\n\nAvailable viewers:\n%1\n\nAvailable file types:\n%2',n,t),a=p.JSONExt.deepCopy(e.schema);return a.properties.defaultViewers.description=o,{...e,schema:a}}}),h.changed.connect((()=>o.load(y,!0)))}},S={id:"@jupyterlab/docmanager-extension:saving-status",description:"Adds a saving status indicator.",autoStart:!0,requires:[d.IDocumentManager,r.ILabShell],optional:[u.ITranslator,c.IStatusBar],activate:(e,t,n,o,a)=>{if(!a)return;const r=new d.SavingStatus({docManager:t,translator:null!=o?o:u.nullTranslator});r.model.widget=n.currentWidget,n.currentChanged.connect((()=>{r.model.widget=n.currentWidget})),a.registerStatusItem(S.id,{item:r,align:"middle",isActive:()=>null!==r.model&&null!==r.model.status,activeStateChanged:r.model.stateChanged})}},I={id:"@jupyterlab/docmanager-extension:path-status",description:"Adds a file path indicator in the status bar.",autoStart:!0,requires:[d.IDocumentManager,r.ILabShell],optional:[c.IStatusBar],activate:(e,t,n,o)=>{if(!o)return;const a=new d.PathStatus({docManager:t});a.model.widget=n.currentWidget,n.currentChanged.connect((()=>{a.model.widget=n.currentWidget})),o.registerStatusItem(I.id,{item:a,align:"right",rank:0})}},W={id:"@jupyterlab/docmanager-extension:download",description:"Adds command to download files.",autoStart:!0,requires:[d.IDocumentManager],optional:[u.ITranslator,i.ICommandPalette],activate:(e,t,n,o)=>{var a;const r=(null!=n?n:u.nullTranslator).load("jupyterlab"),{commands:l,shell:d}=e,s=()=>{const{currentWidget:e}=d;return!(!e||!t.contextForWidget(e))};l.addCommand(b.download,{label:r.__("Download"),caption:r.__("Download the file to your computer"),isEnabled:s,execute:()=>{if(s()){const e=t.contextForWidget(d.currentWidget);return e?e.download():(0,i.showDialog)({title:r.__("Cannot Download"),body:r.__("No context found for current widget!"),buttons:[i.Dialog.okButton()]})}}}),null===(a=e.shell.currentChanged)||void 0===a||a.connect((()=>{e.commands.notifyCommandChanged(b.download)}));const c=r.__("File Operations");o&&o.addItem({command:b.download,category:c})}},F={id:"@jupyterlab/docmanager-extension:open-browser-tab",description:"Adds command to open a browser tab.",autoStart:!0,requires:[d.IDocumentManager],optional:[u.ITranslator],activate:(e,t,n)=>{const o=(null!=n?n:u.nullTranslator).load("jupyterlab"),{commands:a}=e;a.addCommand(b.openBrowserTab,{execute:e=>{const n=void 0===e.path?"":e.path;if(n)return t.services.contents.getDownloadUrl(n).then((e=>{const t=window.open();if(!t)throw new Error("Failed to open new browser tab.");t.opener=null,t.location.href=e}))},iconClass:e=>e.icon||"",label:()=>o.__("Open in New Browser Tab")})}},T=[D,k,x,I,S,W,F,C,_];var E,R;!function(e){e.createSaveButton=function(e,t){return(0,i.addCommandToolbarButtonClass)(i.ReactWidget.create(f.createElement(i.UseSignal,{signal:t},(()=>f.createElement(i.CommandToolbarButtonComponent,{commands:e,id:b.save,label:"",args:{toolbar:!0}})))))}}(E||(E={}));class A extends v.Widget{constructor(e,t,n="notebook"){super({node:R.createRevertConfirmNode(e,n,t)})}}function M(e,t){if(!e)return"File";const n=t.contextForWidget(e);if(!n)return"";const o=t.registry.getFileTypesForPath(n.path);return o.length&&o[0].displayName?o[0].displayName:"File"}!function(e){e.id=0,e.createRevertConfirmNode=function(e,t,n){const o=document.createElement("div"),a=document.createElement("p"),r=document.createTextNode(n.__("Are you sure you want to revert the %1 to checkpoint? ",t)),i=document.createElement("strong");i.textContent=n.__("This cannot be undone."),a.appendChild(r),a.appendChild(i);const d=document.createElement("p"),s=document.createTextNode(n.__("The checkpoint was last updated at: ")),c=document.createElement("p"),u=new Date(e.last_modified);return c.style.textAlign="center",c.textContent=l.Time.format(u)+" ("+l.Time.formatHuman(u)+")",d.appendChild(s),d.appendChild(c),o.appendChild(a),o.appendChild(d),o},e.getTargetCheckpoint=async function(e,t){const n=e.map(((e,t)=>`${t}. ${l.Time.format(e.last_modified)} (${l.Time.formatHuman(e.last_modified)})`)),o=(await i.InputDialog.getItem({items:n,title:t.__("Choose a checkpoint")})).value;if(!o)return;const a=o.split(".",1)[0];return e[parseInt(a,10)]}}(R||(R={}))}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[8471],{8471:(e,t,n)=>{n.r(t),n.d(t,{ToolbarItems:()=>E,default:()=>T,downloadPlugin:()=>W,openBrowserTabPlugin:()=>F,pathStatusPlugin:()=>I,savingStatusPlugin:()=>S});var o,a,r=n(73852),i=n(53876),l=n(20754),d=n(7073),s=n(3012),c=n(33441),u=n(93050),m=n(76878),g=n(14931),p=n(21961),h=n(2159),v=n(2260),f=n(78156),w=n(45556);!function(e){e.clearRecents="docmanager:clear-recents"}(o||(o={})),function(e){e.recentsManager="@jupyterlab/docmanager-extension:recents",e.reopenClosed="@jupyterlab/docmanager-extension:reopen-recently-closed",e.mainPlugin="@jupyterlab/docmanager-extension:plugin"}(a||(a={}));const _={id:a.recentsManager,description:"Provides a manager of recently opened and closed documents.",autoStart:!0,requires:[w.IStateDB],optional:[s.ISettingRegistry,u.ITranslator],provides:d.IRecentsManager,activate:(e,t,n,r)=>{const{serviceManager:i}=e,l=(null!=r?r:u.nullTranslator).load("jupyterlab"),s=new d.RecentsManager({stateDB:t,contents:i.contents}),c=e=>{s.maximalRecentsLength=e.get("maxNumberRecents").composite};return n&&Promise.all([e.restored,n.load(a.mainPlugin)]).then((([e,t])=>{t.changed.connect(c),c(t)})),e.commands.addCommand(o.clearRecents,{execute:()=>{s.clearRecents()},isEnabled:()=>0!=s.recentlyOpened.length||0!=s.recentlyClosed.length,label:l.__("Clear Recent Documents"),caption:l.__("Clear the list of recently opened items.")}),s}};var b;!function(e){e.clone="docmanager:clone",e.deleteFile="docmanager:delete-file",e.newUntitled="docmanager:new-untitled",e.open="docmanager:open",e.openBrowserTab="docmanager:open-browser-tab",e.reload="docmanager:reload",e.rename="docmanager:rename",e.del="docmanager:delete",e.duplicate="docmanager:duplicate",e.restoreCheckpoint="docmanager:restore-checkpoint",e.save="docmanager:save",e.saveAll="docmanager:save-all",e.saveAs="docmanager:save-as",e.download="docmanager:download",e.toggleAutosave="docmanager:toggle-autosave",e.showInFileBrowser="docmanager:show-in-file-browser"}(b||(b={}));const y="@jupyterlab/docmanager-extension:plugin",C={id:"@jupyterlab/docmanager-extension:opener",description:"Provides the widget opener.",autoStart:!0,provides:d.IDocumentWidgetOpener,activate:e=>{const{shell:t}=e;return new class{constructor(){this._opened=new h.Signal(this)}open(e,n){e.id||(e.id="document-manager-"+ ++R.id),e.title.dataset={type:"document-title",...e.title.dataset},e.isAttached||t.add(e,"main",n||{}),t.activateById(e.id),this._opened.emit(e)}get opened(){return this._opened}}}},x={id:"@jupyterlab/docmanager-extension:contexts",description:"Adds the handling of opened documents dirty state.",autoStart:!0,requires:[d.IDocumentManager,d.IDocumentWidgetOpener],optional:[r.ILabStatus],activate:(e,t,n,o)=>{const a=new WeakSet;n.opened.connect(((e,n)=>{const r=t.contextForWidget(n);r&&!a.has(r)&&(o&&function(e,t){let n=null;const o=(t,o)=>{"dirty"===o.name&&(!0===o.newValue?n||(n=e.setDirty()):n&&(n.dispose(),n=null))};t.ready.then((()=>{t.model.stateChanged.connect(o),t.model.dirty&&(n=e.setDirty())})),t.disposed.connect((()=>{n&&n.dispose()}))}(o,r),a.add(r))}))}},D={id:"@jupyterlab/docmanager-extension:manager",description:"Provides the document manager.",provides:d.IDocumentManager,requires:[d.IDocumentWidgetOpener],optional:[u.ITranslator,r.ILabStatus,i.ISessionContextDialogs,r.JupyterLab.IInfo,d.IRecentsManager],activate:(e,t,n,o,a,r,l)=>{var s;const{serviceManager:c,docRegistry:m}=e,g=null!=n?n:u.nullTranslator,p=null!=a?a:new i.SessionContextDialogs({translator:g}),h=e.restored.then((()=>{}));return new d.DocumentManager({registry:m,manager:c,opener:t,when:h,setBusy:null!==(s=o&&(()=>o.setBusy()))&&void 0!==s?s:void 0,sessionDialogs:p,translator:null!=g?g:u.nullTranslator,isConnectedCallback:()=>!r||r.isConnected,recentsManager:null!=l?l:void 0})}},k={id:y,description:"Adds commands and settings to the document manager.",autoStart:!0,requires:[d.IDocumentManager,d.IDocumentWidgetOpener,s.ISettingRegistry],optional:[u.ITranslator,i.ICommandPalette,r.ILabShell],activate:(e,t,n,o,a,r,s)=>{const c=(a=null!=a?a:u.nullTranslator).load("jupyterlab"),h=e.docRegistry;!function(e,t,n,o,a,r,s){var c;const u=a.load("jupyterlab"),{commands:p,shell:h}=e,v=u.__("File Operations"),f=()=>{const{currentWidget:e}=h;return!(!e||!t.contextForWidget(e))},w=()=>{var e;const{currentWidget:n}=h;if(!n)return!1;const o=t.contextForWidget(n);return!!(null===(e=null==o?void 0:o.contentsModel)||void 0===e?void 0:e.writable)},_=e=>i.Notification.warning(u.__('%1 is read-only. Use "Save as…" instead.',e),{autoClose:5e3});r&&function(e,t,n,o,a){const r=a.load("jupyterlab"),{commands:l}=e,s=()=>{var o;const a=/[Pp]ath:\s?(.*)\n?/,r=e.contextMenuHitTest((e=>{var t;return!!(null===(t=e.title)||void 0===t?void 0:t.match(a))})),i=null==r?void 0:r.title.match(a);return null!==(o=i&&t.findWidget(i[1],null))&&void 0!==o?o:n.currentWidget},c=()=>{const{currentWidget:e}=n;return!(!e||!t.contextForWidget(e))};l.addCommand(b.clone,{label:()=>r.__("New View for %1",M(s(),t)),isEnabled:c,execute:e=>{const n=s(),a=e.options||{mode:"split-right"};if(!n)return;const r=t.cloneWidget(n);r&&o.open(r,a)}}),l.addCommand(b.rename,{label:()=>{let e=M(s(),t);return e&&(e=" "+e),r.__("Rename%1…",e)},isEnabled:c,execute:()=>{if(c()){const e=t.contextForWidget(s());return(0,d.renameDialog)(t,e)}}}),l.addCommand(b.duplicate,{label:()=>r.__("Duplicate %1",M(s(),t)),isEnabled:c,execute:()=>{if(c()){const e=t.contextForWidget(s());if(!e)return;return t.duplicate(e.path)}}}),l.addCommand(b.del,{label:()=>r.__("Delete %1",M(s(),t)),isEnabled:c,execute:async()=>{if(c()){const n=t.contextForWidget(s());if(!n)return;(await(0,i.showDialog)({title:r.__("Delete"),body:r.__("Are you sure you want to delete %1",n.path),buttons:[i.Dialog.cancelButton(),i.Dialog.warnButton({label:r.__("Delete")})]})).button.accept&&await e.commands.execute("docmanager:delete-file",{path:n.path})}}}),l.addCommand(b.showInFileBrowser,{label:()=>r.__("Show in File Browser"),isEnabled:c,execute:async()=>{const e=s(),n=e&&t.contextForWidget(e);n&&(await l.execute("filebrowser:activate",{path:n.path}),await l.execute("filebrowser:go-to-path",{path:n.path}))}}),n.currentChanged.connect((()=>{[b.clone,b.rename,b.duplicate,b.del,b.showInFileBrowser].forEach((t=>{e.commands.notifyCommandChanged(t)}))}))}(e,t,r,n,a),p.addCommand(b.deleteFile,{label:()=>`Delete ${M(h.currentWidget,t)}`,execute:e=>{const n=void 0===e.path?"":e.path;if(!n){const e=b.deleteFile;throw new Error(`A non-empty path is required for ${e}.`)}return t.deleteFile(n)}}),p.addCommand(b.newUntitled,{execute:async e=>{const n=e.error||u.__("Error"),o=void 0===e.path?"":e.path,a={type:e.type,path:o};return"file"===e.type&&(a.ext=e.ext||".txt"),t.services.contents.newUntitled(a).catch((e=>(0,i.showErrorMessage)(n,e)))},label:e=>e.label||`New ${e.type}`}),p.addCommand(b.open,{execute:async e=>{const n=void 0===e.path?"":e.path,o=e.factory||void 0,a=null==e?void 0:e.kernel,r=e.options||void 0;return t.services.contents.get(n,{content:!1}).then((()=>t.openOrReveal(n,o,a,r)))},iconClass:e=>e.icon||"",label:e=>{var t;return null!==(t=e.label||e.factory)&&void 0!==t?t:u.__("Open the provided `path`.")},mnemonic:e=>e.mnemonic||-1}),p.addCommand(b.reload,{label:()=>u.__("Reload %1 from Disk",M(h.currentWidget,t)),caption:u.__("Reload contents from disk"),isEnabled:f,execute:()=>{if(!f())return;const e=t.contextForWidget(h.currentWidget),n=M(h.currentWidget,t);return e?e.model.dirty?(0,i.showDialog)({title:u.__("Reload %1 from Disk",n),body:u.__("Are you sure you want to reload the %1 from the disk?",n),buttons:[i.Dialog.cancelButton(),i.Dialog.warnButton({label:u.__("Reload")})]}).then((t=>{if(t.button.accept&&!e.isDisposed)return e.revert()})):e.isDisposed?void 0:e.revert():(0,i.showDialog)({title:u.__("Cannot Reload"),body:u.__("No context found for current widget!"),buttons:[i.Dialog.okButton()]})}}),p.addCommand(b.restoreCheckpoint,{label:()=>u.__("Revert %1 to Checkpoint…",M(h.currentWidget,t)),caption:u.__("Revert contents to previous checkpoint"),isEnabled:f,execute:()=>{if(!f())return;const e=t.contextForWidget(h.currentWidget);return e?e.listCheckpoints().then((async n=>{const o=M(h.currentWidget,t);if(n.length<1)return void await(0,i.showErrorMessage)(u.__("No checkpoints"),u.__("No checkpoints are available for this %1.",o));const a=1===n.length?n[0]:await R.getTargetCheckpoint(n.reverse(),u);return a?(0,i.showDialog)({title:u.__("Revert %1 to checkpoint",o),body:new A(a,u,o),buttons:[i.Dialog.cancelButton(),i.Dialog.warnButton({label:u.__("Revert"),ariaLabel:u.__("Revert to Checkpoint")})]}).then((t=>{if(!e.isDisposed)return t.button.accept?e.model.readOnly?e.revert():e.restoreCheckpoint(a.id).then((()=>e.revert())):void 0})):void 0})):(0,i.showDialog)({title:u.__("Cannot Revert"),body:u.__("No context found for current widget!"),buttons:[i.Dialog.okButton()]})}});const C=new WeakSet;p.addCommand(b.save,{label:()=>u.__("Save %1",M(h.currentWidget,t)),caption:()=>{if(h.currentWidget){const e=t.contextForWidget(h.currentWidget);if(null==e?void 0:e.model.collaborative)return u.__("In collaborative mode, the document is saved automatically after every change");if(!w())return u.__('Document is read-only. "Save" is disabled; use "Save as…" instead')}return u.__("Save and create checkpoint")},icon:e=>e.toolbar?m.saveIcon:void 0,isEnabled:e=>e._luminoEvent&&"keybinding"===e._luminoEvent.type||w(),execute:async e=>{var n,a,r,d,s;const c=h.currentWidget,m=t.contextForWidget(c);if(f()){if(!m)return(0,i.showDialog)({title:u.__("Cannot Save"),body:u.__("No context found for current widget!"),buttons:[i.Dialog.okButton()]});{if(C.has(m))return;if(!(null===(n=m.contentsModel)||void 0===n?void 0:n.writable)&&!m.model.collaborative){let t=null===(a=e._luminoEvent)||void 0===a?void 0:a.type;return e._luminoEvent&&"keybinding"===t?void _(m.path):(0,i.showDialog)({title:u.__("Cannot Save"),body:u.__("Document is read-only"),buttons:[i.Dialog.okButton()]})}C.add(m);const g=l.PathExt.basename(null!==(d=null===(r=m.contentsModel)||void 0===r?void 0:r.path)&&void 0!==d?d:"");let p=g;if(t.renameUntitledFileOnSave&&!0===c.isUntitled){const e=await i.InputDialog.getText({title:u.__("Rename file"),okLabel:u.__("Rename"),placeholder:u.__("File name"),text:g,selectionRange:g.length-l.PathExt.extname(g).length,checkbox:{label:u.__("Do not ask me again."),caption:u.__("If checked, you will not be asked to rename future untitled files when saving them.")}});if(e.button.accept&&(p=null!==(s=e.value)&&void 0!==s?s:g,c.isUntitled=!1,"boolean"==typeof e.isChecked)){const t=(await o.get(y,"renameUntitledFileOnSave")).composite;e.isChecked===t&&o.set(y,"renameUntitledFileOnSave",!e.isChecked).catch((e=>{console.error(`Fail to set 'renameUntitledFileOnSave:\n${e}`)}))}}try{if(await m.save(),!(null==c?void 0:c.isDisposed))return m.createCheckpoint()}catch(e){if("ModalCancelError"===e.name)return;throw e}finally{C.delete(m),p!==g&&await m.rename(p)}}}}}),p.addCommand(b.saveAll,{label:()=>u.__("Save All"),caption:u.__("Save all open documents"),isEnabled:()=>(0,g.some)(h.widgets("main"),(e=>{var n,o,a;return null!==(a=null===(o=null===(n=t.contextForWidget(e))||void 0===n?void 0:n.contentsModel)||void 0===o?void 0:o.writable)&&void 0!==a&&a})),execute:()=>{var e;const n=[],o=new Set;for(const a of h.widgets("main")){const r=t.contextForWidget(a);r&&!o.has(r.path)&&((null===(e=r.contentsModel)||void 0===e?void 0:e.writable)?(o.add(r.path),n.push(r.save())):_(r.path))}return Promise.all(n)}}),p.addCommand(b.saveAs,{label:()=>u.__("Save %1 As…",M(h.currentWidget,t)),caption:u.__("Save with new path"),isEnabled:f,execute:()=>{if(f()){const e=t.contextForWidget(h.currentWidget);if(!e)return(0,i.showDialog)({title:u.__("Cannot Save"),body:u.__("No context found for current widget!"),buttons:[i.Dialog.okButton()]});const n=(n,o)=>{"save"===o.type&&o.newValue&&o.newValue.path!==e.path&&(t.closeFile(e.path),p.execute(b.open,{path:o.newValue.path}))};t.services.contents.fileChanged.connect(n),e.saveAs().finally((()=>t.services.contents.fileChanged.disconnect(n)))}}}),null===(c=e.shell.currentChanged)||void 0===c||c.connect((()=>{[b.reload,b.restoreCheckpoint,b.save,b.saveAll,b.saveAs].forEach((t=>{e.commands.notifyCommandChanged(t)}))})),p.addCommand(b.toggleAutosave,{label:u.__("Autosave Documents"),isToggled:()=>t.autosave,execute:()=>{const e=!t.autosave,n="autosave";return o.set(y,n,e).catch((e=>{console.error(`Failed to set ${y}:${n} - ${e.message}`)}))}}),s&&[b.reload,b.restoreCheckpoint,b.save,b.saveAs,b.toggleAutosave,b.duplicate].forEach((e=>{s.addItem({command:e,category:v})}))}(e,t,n,o,a,s,r);const v=n=>{const o=n.get("autosave").composite;t.autosave=!0!==o&&!1!==o||o,e.commands.notifyCommandChanged(b.toggleAutosave);const a=n.get("confirmClosingDocument").composite;t.confirmClosingDocument=null==a||a;const r=n.get("autosaveInterval").composite;t.autosaveInterval=r||120;const i=n.get("lastModifiedCheckMargin").composite;t.lastModifiedCheckMargin=i||500;const l=n.get("renameUntitledFileOnSave").composite;t.renameUntitledFileOnSave=null==l||l;const d=n.get("defaultViewers").composite,s={};Object.keys(d).forEach((e=>{h.getFileType(e)?(h.getWidgetFactory(d[e])||console.warn(`Document viewer ${d[e]} not found`),s[e]=d[e]):console.warn(`File Type ${e} not found`)}));for(const e of h.fileTypes())try{h.setDefaultWidgetFactory(e.name,s[e.name])}catch(t){console.warn(`Failed to set default viewer ${s[e.name]} for file type ${e.name}`)}};Promise.all([o.load(y),e.restored]).then((([e])=>{e.changed.connect(v),v(e),t.stateChanged.connect(((t,n)=>{["autosave","autosaveInterval","confirmClosingDocument","lastModifiedCheckMargin","renameUntitledFileOnSave"].includes(n.name)&&e.get(n.name).composite!==n.newValue&&e.set(n.name,n.newValue).catch((e=>{console.error(`Failed to set the setting '${n.name}':\n${e}`)}))}))})).catch((e=>{console.error(e.message)})),o.transform(y,{fetch:e=>{const t=Array.from(h.fileTypes()).map((e=>e.name)).join(" \n"),n=Array.from(h.widgetFactories()).map((e=>e.name)).join(" \n"),o=c.__('Overrides for the default viewers for file types.\nSpecify a mapping from file type name to document viewer name, for example:\n\ndefaultViewers: {\n markdown: "Markdown Preview"\n}\n\nIf you specify non-existent file types or viewers, or if a viewer cannot\nopen a given file type, the override will not function.\n\nAvailable viewers:\n%1\n\nAvailable file types:\n%2',n,t),a=p.JSONExt.deepCopy(e.schema);return a.properties.defaultViewers.description=o,{...e,schema:a}}}),h.changed.connect((()=>o.load(y,!0)))}},S={id:"@jupyterlab/docmanager-extension:saving-status",description:"Adds a saving status indicator.",autoStart:!0,requires:[d.IDocumentManager,r.ILabShell],optional:[u.ITranslator,c.IStatusBar],activate:(e,t,n,o,a)=>{if(!a)return;const r=new d.SavingStatus({docManager:t,translator:null!=o?o:u.nullTranslator});r.model.widget=n.currentWidget,n.currentChanged.connect((()=>{r.model.widget=n.currentWidget})),a.registerStatusItem(S.id,{item:r,align:"middle",isActive:()=>null!==r.model&&null!==r.model.status,activeStateChanged:r.model.stateChanged})}},I={id:"@jupyterlab/docmanager-extension:path-status",description:"Adds a file path indicator in the status bar.",autoStart:!0,requires:[d.IDocumentManager,r.ILabShell],optional:[c.IStatusBar],activate:(e,t,n,o)=>{if(!o)return;const a=new d.PathStatus({docManager:t});a.model.widget=n.currentWidget,n.currentChanged.connect((()=>{a.model.widget=n.currentWidget})),o.registerStatusItem(I.id,{item:a,align:"right",rank:0})}},W={id:"@jupyterlab/docmanager-extension:download",description:"Adds command to download files.",autoStart:!0,requires:[d.IDocumentManager],optional:[u.ITranslator,i.ICommandPalette],activate:(e,t,n,o)=>{var a;const r=(null!=n?n:u.nullTranslator).load("jupyterlab"),{commands:l,shell:d}=e,s=()=>{const{currentWidget:e}=d;return!(!e||!t.contextForWidget(e))};l.addCommand(b.download,{label:r.__("Download"),caption:r.__("Download the file to your computer"),isEnabled:s,execute:()=>{if(s()){const e=t.contextForWidget(d.currentWidget);return e?e.download():(0,i.showDialog)({title:r.__("Cannot Download"),body:r.__("No context found for current widget!"),buttons:[i.Dialog.okButton()]})}}}),null===(a=e.shell.currentChanged)||void 0===a||a.connect((()=>{e.commands.notifyCommandChanged(b.download)}));const c=r.__("File Operations");o&&o.addItem({command:b.download,category:c})}},F={id:"@jupyterlab/docmanager-extension:open-browser-tab",description:"Adds command to open a browser tab.",autoStart:!0,requires:[d.IDocumentManager],optional:[u.ITranslator],activate:(e,t,n)=>{const o=(null!=n?n:u.nullTranslator).load("jupyterlab"),{commands:a}=e;a.addCommand(b.openBrowserTab,{execute:e=>{const n=void 0===e.path?"":e.path;if(n)return t.services.contents.getDownloadUrl(n).then((e=>{const t=window.open();if(!t)throw new Error("Failed to open new browser tab.");t.opener=null,t.location.href=e}))},iconClass:e=>e.icon||"",label:()=>o.__("Open in New Browser Tab")})}},T=[D,k,x,I,S,W,F,C,_];var E,R;!function(e){e.createSaveButton=function(e,t){return(0,i.addCommandToolbarButtonClass)(i.ReactWidget.create(f.createElement(i.UseSignal,{signal:t},(()=>f.createElement(i.CommandToolbarButtonComponent,{commands:e,id:b.save,label:"",args:{toolbar:!0}})))))}}(E||(E={}));class A extends v.Widget{constructor(e,t,n="notebook"){super({node:R.createRevertConfirmNode(e,n,t)})}}function M(e,t){if(!e)return"File";const n=t.contextForWidget(e);if(!n)return"";const o=t.registry.getFileTypesForPath(n.path);return o.length&&o[0].displayName?o[0].displayName:"File"}!function(e){e.id=0,e.createRevertConfirmNode=function(e,t,n){const o=document.createElement("div"),a=document.createElement("p"),r=document.createTextNode(n.__("Are you sure you want to revert the %1 to checkpoint? ",t)),i=document.createElement("strong");i.textContent=n.__("This cannot be undone."),a.appendChild(r),a.appendChild(i);const d=document.createElement("p"),s=document.createTextNode(n.__("The checkpoint was last updated at: ")),c=document.createElement("p"),u=new Date(e.last_modified);return c.style.textAlign="center",c.textContent=l.Time.format(u)+" ("+l.Time.formatHuman(u)+")",d.appendChild(s),d.appendChild(c),o.appendChild(a),o.appendChild(d),o},e.getTargetCheckpoint=async function(e,t){const n=e.map(((e,t)=>`${t}. ${l.Time.format(e.last_modified)} (${l.Time.formatHuman(e.last_modified)})`)),o=(await i.InputDialog.getItem({items:n,title:t.__("Choose a checkpoint")})).value;if(!o)return;const a=o.split(".",1)[0];return e[parseInt(a,10)]}}(R||(R={}))}}]);
|
notebook/static/8579.bundle.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[8579],{88579:(e,t,o)=>{o.r(t),o.d(t,{default:()=>q});var n=o(27961),a=o(15465),i=o(97040),r=o(44548),d=o(94624),l=o(71120),s=o(2646),c=o(50102),p=o(87844),u=o(25291),g=o(97373),m=o(16971),h=o(20998),b=o(2549),f=o(63485);const v=new RegExp("/(notebooks|edit)/(.*)"),y=/\.ipynb$/;var k;!function(e){e.duplicate="application:duplicate",e.handleLink="application:handle-local-link",e.toggleTop="application:toggle-top",e.togglePanel="application:toggle-panel",e.toggleZen="application:toggle-zen",e.openLab="application:open-lab",e.openTree="application:open-tree",e.rename="application:rename",e.resolveTree="application:resolve-tree"}(k||(k={}));const w={id:"@jupyter-notebook/application-extension:dirty",description:"Check if the application is dirty before closing the browser tab.",autoStart:!0,requires:[n.ILabStatus,u.ITranslator],activate:(e,t,o)=>{if(!(e instanceof g.NotebookApp))throw new Error(`${w.id} must be activated in Jupyter Notebook.`);const n=o.load("notebook").__("Are you sure you want to exit Jupyter Notebook?\n\nAny unsaved changes will be lost.");window.addEventListener("beforeunload",(t=>{if(e.status.isDirty)return t.returnValue=n}))}},x={id:"@jupyter-notebook/application-extension:logo",description:"The logo plugin.",autoStart:!0,activate:e=>{const t=r.PageConfig.getBaseUrl(),o=document.createElement("a");o.href=`${t}tree`,o.target="_blank",o.rel="noopener noreferrer";const n=new f.Widget({node:o});m.jupyterIcon.element({container:o,elementPosition:"center",padding:"2px 2px 2px 8px",height:"28px",width:"auto",cursor:"pointer",margin:"auto"}),n.id="jp-NotebookLogo",e.shell.add(n,"top",{rank:0})}},I={id:"@jupyter-notebook/application-extension:opener",description:"A plugin to open documents in the main area.",autoStart:!0,requires:[n.IRouter,d.IDocumentManager],optional:[p.ISettingRegistry],activate:(e,t,o,n)=>{const{commands:a,docRegistry:i}=e,r="router:tree";a.addCommand(r,{execute:t=>{var a;const r=t,d=null!==(a=r.path.match(v))&&void 0!==a?a:[],[,,l]=d;l&&e.started.then((async()=>{var e;const t=decodeURIComponent(l),a=new URLSearchParams(r.search);let d=i.defaultWidgetFactory(l).name;if(n){const e=(await n.load("@jupyterlab/docmanager-extension:plugin")).get("defaultViewers").composite;i.getFileTypesForPath(l).forEach((t=>{void 0!==e[t.name]&&i.getWidgetFactory(e[t.name])&&(d=e[t.name])}))}const s=null!==(e=a.get("factory"))&&void 0!==e?e:d;o.open(t,s,void 0,{ref:"_noref"})}))}}),t.register({command:r,pattern:v})}},P={id:"@jupyter-notebook/application-extension:menus",description:"A plugin to customize menus.",requires:[s.IMainMenu],autoStart:!0,activate:(e,t)=>{switch(t.tabsMenu.dispose(),r.PageConfig.getOption("notebookPage")){case"consoles":case"terminals":case"tree":t.editMenu.dispose(),t.kernelMenu.dispose(),t.runMenu.dispose();break;case"edit":t.kernelMenu.dispose(),t.runMenu.dispose()}}},C={id:"@jupyter-notebook/application-extension:menu-spacer",description:"A plugin to provide a spacer at rank 900 in the menu area.",autoStart:!0,activate:e=>{const t=new f.Widget;t.id=a.DOMUtils.createDomID(),t.addClass("jp-NotebookSpacer"),e.shell.add(t,"menu",{rank:900})}},S={id:"@jupyter-notebook/application-extension:pages",description:"Add commands to open the tree and running pages.",autoStart:!0,requires:[u.ITranslator],optional:[a.ICommandPalette],activate:(e,t,o)=>{const n=t.load("notebook"),a=r.PageConfig.getBaseUrl();e.commands.addCommand(k.openLab,{label:n.__("Open JupyterLab"),execute:()=>{window.open(r.URLExt.join(a,"lab"))}});const i=r.PageConfig.getOption("notebookPage");e.commands.addCommand(k.openTree,{label:n.__("File Browser"),execute:()=>{"tree"===i?e.commands.execute("filebrowser:activate"):window.open(r.URLExt.join(a,"tree"))}}),o&&(o.addItem({command:k.openLab,category:"View"}),o.addItem({command:k.openTree,category:"View"}))}},T={id:"@jupyter-notebook/application-extension:path-opener",description:"A plugin to open paths in new browser tabs.",autoStart:!0,provides:g.INotebookPathOpener,activate:e=>g.defaultNotebookPathOpener},R={id:"@jupyter-notebook/application-extension:paths",description:"The default paths for a Jupyter Notebook app.",autoStart:!0,provides:n.JupyterFrontEnd.IPaths,activate:e=>{if(!(e instanceof g.NotebookApp))throw new Error(`${R.id} must be activated in Jupyter Notebook.`);return e.paths}},_={id:"@jupyter-notebook/application-extension:rendermime",description:"A plugin providing a rendermime registry.",autoStart:!0,provides:c.IRenderMimeRegistry,optional:[d.IDocumentManager,c.ILatexTypesetter,a.ISanitizer,c.IMarkdownParser,u.ITranslator,g.INotebookPathOpener],activate:(e,t,o,n,a,i,d)=>{const l=(null!=i?i:u.nullTranslator).load("jupyterlab"),s=null!=d?d:g.defaultNotebookPathOpener;return t&&e.commands.addCommand(k.handleLink,{label:l.__("Handle Local Link"),execute:e=>{const o=e.path;if(null!=o)return t.services.contents.get(o,{content:!1}).then((e=>{const t=r.PageConfig.getBaseUrl();s.open({prefix:r.URLExt.join(t,"tree"),path:e.path,target:"_blank"})}))}}),new c.RenderMimeRegistry({initialFactories:c.standardRendererFactories,linkHandler:t?{handleLink:(t,o,n)=>{"A"===t.tagName&&t.hasAttribute("download")||e.commandLinker.connectNode(t,k.handleLink,{path:o,id:n})}}:void 0,latexTypesetter:null!=o?o:void 0,markdownParser:null!=a?a:void 0,translator:null!=i?i:void 0,sanitizer:null!=n?n:void 0})}},E={id:"@jupyter-notebook/application-extension:shell",description:"The default Jupyter Notebook application shell.",autoStart:!0,provides:g.INotebookShell,optional:[p.ISettingRegistry],activate:(e,t)=>{if(!(e.shell instanceof g.NotebookShell))throw new Error(`${E.id} did not find a NotebookShell instance.`);const o=e.shell;return t&&t.load(E.id).then((e=>{const t=e.composite.layout;o.restoreLayout(t)})).catch((e=>{console.error("Fail to load settings for the layout restorer."),console.error(e)})),o}},L={id:"@jupyter-notebook/application-extension:splash",description:"Provides an empty splash screen.",autoStart:!0,provides:a.ISplashScreen,activate:e=>{const{restored:t}=e,o=document.createElement("div");return o.style.position="absolute",o.style.width="100%",o.style.height="100%",o.style.zIndex="10",{show:(e=!0)=>(o.style.backgroundColor=e?"white":"#111111",document.body.appendChild(o),new b.DisposableDelegate((async()=>{await t,document.body.removeChild(o)})))}}},j={id:"@jupyter-notebook/application-extension:status",description:"The default JupyterLab application status provider.",autoStart:!0,provides:n.ILabStatus,activate:e=>{if(!(e instanceof g.NotebookApp))throw new Error(`${j.id} must be activated in Jupyter Notebook.`);return e.status}},N={id:"@jupyter-notebook/application-extension:tab-title",description:"A plugin to display the document title in the browser tab title.",autoStart:!0,requires:[g.INotebookShell],activate:(e,t)=>{const o=()=>{const e=t.currentWidget;if(e instanceof i.ConsolePanel){const t=()=>{const t=e.sessionContext.path||e.sessionContext.name,o=r.PathExt.basename(t);document.title=o.replace(y,"")};return e.sessionContext.sessionChanged.connect(t),void t()}if(e instanceof l.DocumentWidget){const t=()=>{const t=r.PathExt.basename(e.context.path);document.title=t.replace(y,"")};e.context.pathChanged.connect(t),t()}};t.currentChanged.connect(o),o()}},H={id:"@jupyter-notebook/application-extension:title",description:"A plugin to display and rename the title of a file.",autoStart:!0,requires:[g.INotebookShell,u.ITranslator],optional:[d.IDocumentManager,n.IRouter,a.IToolbarWidgetRegistry],activate:(e,t,o,n,a,i)=>{const{commands:s}=e,c=o.load("notebook"),p=document.createElement("div");i&&i.addFactory("TopBar","widgetTitle",(e=>{const t=new f.Widget({node:p});return t.id="jp-title",t}));const u=async()=>{const e=t.currentWidget;if(!(e&&e instanceof l.DocumentWidget))return;if(p.children.length>0)return;const o=document.createElement("h1");if(o.textContent=e.title.label.replace(y,""),p.appendChild(o),p.style.marginLeft="10px",!n)return;const i=()=>{const{currentWidget:e}=t;return!(!e||!n.contextForWidget(e))};s.addCommand(k.duplicate,{label:()=>c.__("Duplicate"),isEnabled:i,execute:async()=>{if(!i())return;const t=await n.duplicate(e.context.path);await s.execute("docmanager:open",{path:t.path})}}),s.addCommand(k.rename,{label:()=>c.__("Rename…"),isEnabled:i,execute:async()=>{var t;if(!i())return;const l=await(0,d.renameDialog)(n,e.context);if(e&&e.activate(),null===l)return;const s=e.context.path,c=r.PathExt.basename(s);if(o.textContent=c.replace(y,""),!a)return;const p=null!==(t=a.current.path.match(v))&&void 0!==t?t:[],[,u,g]=p;if(!u||!g)return;const m=encodeURIComponent(s);a.navigate(`/${u}/${m}`,{skipRouting:!0})}}),p.onclick=async()=>{s.execute(k.rename)}};t.currentChanged.connect(u),u()}},A={id:"@jupyter-notebook/application-extension:top",description:"Plugin to toggle the top header visibility.",requires:[g.INotebookShell,u.ITranslator],optional:[p.ISettingRegistry,a.ICommandPalette],activate:(e,t,o,n,a)=>{const i=o.load("notebook"),r=t.top,d=A.id;e.commands.addCommand(k.toggleTop,{label:i.__("Show Header"),execute:()=>{r.setHidden(r.isVisible),n&&n.set(d,"visible",r.isVisible?"yes":"no")},isToggled:()=>r.isVisible});let l=!1;if(n){const t=n.load(d),o=e=>{let t=e.get("visible").composite;void 0!==e.user.visible&&(t=e.user.visible),r.setHidden("no"===t),l="automatic"===t};Promise.all([t,e.restored]).then((([e])=>{o(e),e.changed.connect((e=>{o(e)}))})).catch((e=>{console.error(e.message)}))}a&&a.addItem({command:k.toggleTop,category:"View"}),e.formatChanged.connect((()=>{l&&("desktop"===e.format?t.expandTop():t.collapseTop())}))},autoStart:!0},M={id:"@jupyter-notebook/application-extension:sidepanel",description:"Plugin to toggle the visibility of left or right side panel.",requires:[g.INotebookShell,u.ITranslator],optional:[s.IMainMenu,a.ICommandPalette],autoStart:!0,activate:(e,t,o,n,a)=>{const i=o.load("notebook");e.commands.addCommand(k.togglePanel,{label:e=>e.title,caption:e=>"left"===e.side?i.__("Show %1 in the left sidebar",e.title):"right"===e.side?i.__("Show %1 in the right sidebar",e.title):i.__("Show %1 in the sidebar",e.title),execute:e=>{var o,n;switch(e.side){case"left":t.leftCollapsed||(null===(o=t.leftHandler.currentWidget)||void 0===o?void 0:o.id)!==e.id?t.expandLeft(e.id):(t.collapseLeft(),t.currentWidget&&t.activateById(t.currentWidget.id));break;case"right":t.rightCollapsed||(null===(n=t.rightHandler.currentWidget)||void 0===n?void 0:n.id)!==e.id?t.expandRight(e.id):(t.collapseRight(),t.currentWidget&&t.activateById(t.currentWidget.id))}},isToggled:e=>{switch(e.side){case"left":{if(t.leftCollapsed)return!1;const o=t.leftHandler.currentWidget;return!!o&&o.id===e.id}case"right":{if(t.rightCollapsed)return!1;const o=t.rightHandler.currentWidget;return!!o&&o.id===e.id}}return!1}});const r={left:null,right:null},d=(o,a)=>{var i;if(null===n)return null;null===(i=r[o])||void 0===i||i.dispose();const d=new f.Menu({commands:e.commands});d.title.label=a;const l=t.widgets(o);let s=!1;for(const e of l)d.addItem({command:k.togglePanel,args:{side:o,title:`Show ${e.title.caption}`,id:e.id}}),s=!0;s&&(r[o]=n.viewMenu.addItem({type:"submenu",submenu:d}))};e.restored.then((()=>{if(n){const e=e=>"left"===e?i.__("Left Sidebar"):i.__("Right Sidebar"),o=t.leftHandler.area,n=e(o);d(o,n);const a=t.rightHandler.area,r=e(a);d(a,r);const l=(t,o)=>{const n=e(t.area);d(t.area,n)};t.leftHandler.widgetAdded.connect(l),t.leftHandler.widgetRemoved.connect(l),t.rightHandler.widgetAdded.connect(l),t.rightHandler.widgetRemoved.connect(l)}if(a){const e=new g.SidePanelPalette({commandPalette:a,command:k.togglePanel});t.leftHandler.widgets.forEach((o=>{e.addItem(o,t.leftHandler.area)})),t.rightHandler.widgets.forEach((o=>{e.addItem(o,t.rightHandler.area)})),t.leftHandler.widgetAdded.connect(((t,o)=>{e.addItem(o,t.area)})),t.leftHandler.widgetRemoved.connect(((t,o)=>{e.removeItem(o,t.area)})),t.rightHandler.widgetAdded.connect(((t,o)=>{e.addItem(o,t.area)})),t.rightHandler.widgetRemoved.connect(((t,o)=>{e.removeItem(o,t.area)}))}}))}},U={id:"@jupyter-notebook/application-extension:tree-resolver",description:"The default tree route resolver plugin.",autoStart:!0,requires:[n.IRouter],provides:n.JupyterFrontEnd.ITreeResolver,activate:(e,t)=>{const{commands:o}=e,n=new b.DisposableSet,a=new h.PromiseDelegate,i=new RegExp("/(/tree/.*)?");n.add(o.addCommand(k.resolveTree,{execute:async e=>{var t;if(n.isDisposed)return;const o=r.URLExt.queryStringToObject(null!==(t=e.search)&&void 0!==t?t:""),i=o["file-browser-path"]||"";delete o["file-browser-path"],n.dispose(),a.resolve({browser:i,file:r.PageConfig.getOption("treePath")})}})),n.add(t.register({command:k.resolveTree,pattern:i}));const d=()=>{n.isDisposed||(n.dispose(),a.resolve(null))};return t.routed.connect(d),n.add(new b.DisposableDelegate((()=>{t.routed.disconnect(d)}))),{paths:a.promise}}},W={id:"@jupyter-notebook/application-extension:tree-updater",description:"Plugin to update tree path.",requires:[n.IRouter],provides:n.ITreePathUpdater,activate:(e,t)=>function(e){if(e!==r.PageConfig.getOption("treePath")){const o=r.URLExt.join(r.PageConfig.getOption("baseUrl")||"/","tree",r.URLExt.encodeParts(e));t.navigate(o,{skipRouting:!0}),r.PageConfig.setOption("treePath",e)}},autoStart:!0},D={id:"@jupyter-notebook/application-extension:translator",description:"Translator plugin",requires:[g.INotebookShell,u.ITranslator],autoStart:!0,activate:(e,t,o)=>{t.translator=o}},O={id:"@jupyter-notebook/application-extension:zen",description:"Zen mode plugin.",autoStart:!0,requires:[u.ITranslator],optional:[a.ICommandPalette,g.INotebookShell],activate:(e,t,o,n)=>{const{commands:a}=e,i=document.documentElement,r=t.load("notebook"),d=()=>{null==n||n.expandTop(),null==n||n.menu.setHidden(!1),l=!1};let l=!1;a.addCommand(k.toggleZen,{label:r.__("Toggle Zen Mode"),execute:()=>{l?(document.exitFullscreen(),d()):(i.requestFullscreen(),null==n||n.collapseTop(),null==n||n.menu.setHidden(!0),l=!0)}}),document.addEventListener("fullscreenchange",(()=>{document.fullscreenElement||d()})),o&&o.addItem({command:k.toggleZen,category:"Mode"})}},q=[w,x,P,C,I,S,T,R,_,E,M,L,j,N,H,A,U,W,D,O]}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[8579],{88579:(e,t,o)=>{o.r(t),o.d(t,{default:()=>q});var n=o(73852),a=o(53876),i=o(26177),r=o(20754),d=o(7073),l=o(23764),s=o(70607),c=o(58194),p=o(3012),u=o(93050),g=o(28976),m=o(38048),h=o(21961),b=o(49901),f=o(2260);const v=new RegExp("/(notebooks|edit)/(.*)"),y=/\.ipynb$/;var k;!function(e){e.duplicate="application:duplicate",e.handleLink="application:handle-local-link",e.toggleTop="application:toggle-top",e.togglePanel="application:toggle-panel",e.toggleZen="application:toggle-zen",e.openLab="application:open-lab",e.openTree="application:open-tree",e.rename="application:rename",e.resolveTree="application:resolve-tree"}(k||(k={}));const w={id:"@jupyter-notebook/application-extension:dirty",description:"Check if the application is dirty before closing the browser tab.",autoStart:!0,requires:[n.ILabStatus,u.ITranslator],activate:(e,t,o)=>{if(!(e instanceof g.NotebookApp))throw new Error(`${w.id} must be activated in Jupyter Notebook.`);const n=o.load("notebook").__("Are you sure you want to exit Jupyter Notebook?\n\nAny unsaved changes will be lost.");window.addEventListener("beforeunload",(t=>{if(e.status.isDirty)return t.returnValue=n}))}},x={id:"@jupyter-notebook/application-extension:logo",description:"The logo plugin.",autoStart:!0,activate:e=>{const t=r.PageConfig.getBaseUrl(),o=document.createElement("a");o.href=`${t}tree`,o.target="_blank",o.rel="noopener noreferrer";const n=new f.Widget({node:o});m.jupyterIcon.element({container:o,elementPosition:"center",padding:"2px 2px 2px 8px",height:"28px",width:"auto",cursor:"pointer",margin:"auto"}),n.id="jp-NotebookLogo",e.shell.add(n,"top",{rank:0})}},I={id:"@jupyter-notebook/application-extension:opener",description:"A plugin to open documents in the main area.",autoStart:!0,requires:[n.IRouter,d.IDocumentManager],optional:[p.ISettingRegistry],activate:(e,t,o,n)=>{const{commands:a,docRegistry:i}=e,r="router:tree";a.addCommand(r,{execute:t=>{var a;const r=t,d=null!==(a=r.path.match(v))&&void 0!==a?a:[],[,,l]=d;l&&e.started.then((async()=>{var e;const t=decodeURIComponent(l),a=new URLSearchParams(r.search);let d=i.defaultWidgetFactory(l).name;if(n){const e=(await n.load("@jupyterlab/docmanager-extension:plugin")).get("defaultViewers").composite;i.getFileTypesForPath(l).forEach((t=>{void 0!==e[t.name]&&i.getWidgetFactory(e[t.name])&&(d=e[t.name])}))}const s=null!==(e=a.get("factory"))&&void 0!==e?e:d;o.open(t,s,void 0,{ref:"_noref"})}))}}),t.register({command:r,pattern:v})}},P={id:"@jupyter-notebook/application-extension:menus",description:"A plugin to customize menus.",requires:[s.IMainMenu],autoStart:!0,activate:(e,t)=>{switch(t.tabsMenu.dispose(),r.PageConfig.getOption("notebookPage")){case"consoles":case"terminals":case"tree":t.editMenu.dispose(),t.kernelMenu.dispose(),t.runMenu.dispose();break;case"edit":t.kernelMenu.dispose(),t.runMenu.dispose()}}},C={id:"@jupyter-notebook/application-extension:menu-spacer",description:"A plugin to provide a spacer at rank 900 in the menu area.",autoStart:!0,activate:e=>{const t=new f.Widget;t.id=a.DOMUtils.createDomID(),t.addClass("jp-NotebookSpacer"),e.shell.add(t,"menu",{rank:900})}},S={id:"@jupyter-notebook/application-extension:pages",description:"Add commands to open the tree and running pages.",autoStart:!0,requires:[u.ITranslator],optional:[a.ICommandPalette],activate:(e,t,o)=>{const n=t.load("notebook"),a=r.PageConfig.getBaseUrl();e.commands.addCommand(k.openLab,{label:n.__("Open JupyterLab"),execute:()=>{window.open(r.URLExt.join(a,"lab"))}});const i=r.PageConfig.getOption("notebookPage");e.commands.addCommand(k.openTree,{label:n.__("File Browser"),execute:()=>{"tree"===i?e.commands.execute("filebrowser:activate"):window.open(r.URLExt.join(a,"tree"))}}),o&&(o.addItem({command:k.openLab,category:"View"}),o.addItem({command:k.openTree,category:"View"}))}},T={id:"@jupyter-notebook/application-extension:path-opener",description:"A plugin to open paths in new browser tabs.",autoStart:!0,provides:g.INotebookPathOpener,activate:e=>g.defaultNotebookPathOpener},R={id:"@jupyter-notebook/application-extension:paths",description:"The default paths for a Jupyter Notebook app.",autoStart:!0,provides:n.JupyterFrontEnd.IPaths,activate:e=>{if(!(e instanceof g.NotebookApp))throw new Error(`${R.id} must be activated in Jupyter Notebook.`);return e.paths}},_={id:"@jupyter-notebook/application-extension:rendermime",description:"A plugin providing a rendermime registry.",autoStart:!0,provides:c.IRenderMimeRegistry,optional:[d.IDocumentManager,c.ILatexTypesetter,a.ISanitizer,c.IMarkdownParser,u.ITranslator,g.INotebookPathOpener],activate:(e,t,o,n,a,i,d)=>{const l=(null!=i?i:u.nullTranslator).load("jupyterlab"),s=null!=d?d:g.defaultNotebookPathOpener;return t&&e.commands.addCommand(k.handleLink,{label:l.__("Handle Local Link"),execute:e=>{const o=e.path;if(null!=o)return t.services.contents.get(o,{content:!1}).then((e=>{const t=r.PageConfig.getBaseUrl();s.open({prefix:r.URLExt.join(t,"tree"),path:e.path,target:"_blank"})}))}}),new c.RenderMimeRegistry({initialFactories:c.standardRendererFactories,linkHandler:t?{handleLink:(t,o,n)=>{"A"===t.tagName&&t.hasAttribute("download")||e.commandLinker.connectNode(t,k.handleLink,{path:o,id:n})}}:void 0,latexTypesetter:null!=o?o:void 0,markdownParser:null!=a?a:void 0,translator:null!=i?i:void 0,sanitizer:null!=n?n:void 0})}},E={id:"@jupyter-notebook/application-extension:shell",description:"The default Jupyter Notebook application shell.",autoStart:!0,provides:g.INotebookShell,optional:[p.ISettingRegistry],activate:(e,t)=>{if(!(e.shell instanceof g.NotebookShell))throw new Error(`${E.id} did not find a NotebookShell instance.`);const o=e.shell;return t&&t.load(E.id).then((e=>{const t=e.composite.layout;o.restoreLayout(t)})).catch((e=>{console.error("Fail to load settings for the layout restorer."),console.error(e)})),o}},L={id:"@jupyter-notebook/application-extension:splash",description:"Provides an empty splash screen.",autoStart:!0,provides:a.ISplashScreen,activate:e=>{const{restored:t}=e,o=document.createElement("div");return o.style.position="absolute",o.style.width="100%",o.style.height="100%",o.style.zIndex="10",{show:(e=!0)=>(o.style.backgroundColor=e?"white":"#111111",document.body.appendChild(o),new b.DisposableDelegate((async()=>{await t,document.body.removeChild(o)})))}}},j={id:"@jupyter-notebook/application-extension:status",description:"The default JupyterLab application status provider.",autoStart:!0,provides:n.ILabStatus,activate:e=>{if(!(e instanceof g.NotebookApp))throw new Error(`${j.id} must be activated in Jupyter Notebook.`);return e.status}},N={id:"@jupyter-notebook/application-extension:tab-title",description:"A plugin to display the document title in the browser tab title.",autoStart:!0,requires:[g.INotebookShell],activate:(e,t)=>{const o=()=>{const e=t.currentWidget;if(e instanceof i.ConsolePanel){const t=()=>{const t=e.sessionContext.path||e.sessionContext.name,o=r.PathExt.basename(t);document.title=o.replace(y,"")};return e.sessionContext.sessionChanged.connect(t),void t()}if(e instanceof l.DocumentWidget){const t=()=>{const t=r.PathExt.basename(e.context.path);document.title=t.replace(y,"")};e.context.pathChanged.connect(t),t()}};t.currentChanged.connect(o),o()}},H={id:"@jupyter-notebook/application-extension:title",description:"A plugin to display and rename the title of a file.",autoStart:!0,requires:[g.INotebookShell,u.ITranslator],optional:[d.IDocumentManager,n.IRouter,a.IToolbarWidgetRegistry],activate:(e,t,o,n,a,i)=>{const{commands:s}=e,c=o.load("notebook"),p=document.createElement("div");i&&i.addFactory("TopBar","widgetTitle",(e=>{const t=new f.Widget({node:p});return t.id="jp-title",t}));const u=async()=>{const e=t.currentWidget;if(!(e&&e instanceof l.DocumentWidget))return;if(p.children.length>0)return;const o=document.createElement("h1");if(o.textContent=e.title.label.replace(y,""),p.appendChild(o),p.style.marginLeft="10px",!n)return;const i=()=>{const{currentWidget:e}=t;return!(!e||!n.contextForWidget(e))};s.addCommand(k.duplicate,{label:()=>c.__("Duplicate"),isEnabled:i,execute:async()=>{if(!i())return;const t=await n.duplicate(e.context.path);await s.execute("docmanager:open",{path:t.path})}}),s.addCommand(k.rename,{label:()=>c.__("Rename…"),isEnabled:i,execute:async()=>{var t;if(!i())return;const l=await(0,d.renameDialog)(n,e.context);if(e&&e.activate(),null===l)return;const s=e.context.path,c=r.PathExt.basename(s);if(o.textContent=c.replace(y,""),!a)return;const p=null!==(t=a.current.path.match(v))&&void 0!==t?t:[],[,u,g]=p;if(!u||!g)return;const m=encodeURIComponent(s);a.navigate(`/${u}/${m}`,{skipRouting:!0})}}),p.onclick=async()=>{s.execute(k.rename)}};t.currentChanged.connect(u),u()}},A={id:"@jupyter-notebook/application-extension:top",description:"Plugin to toggle the top header visibility.",requires:[g.INotebookShell,u.ITranslator],optional:[p.ISettingRegistry,a.ICommandPalette],activate:(e,t,o,n,a)=>{const i=o.load("notebook"),r=t.top,d=A.id;e.commands.addCommand(k.toggleTop,{label:i.__("Show Header"),execute:()=>{r.setHidden(r.isVisible),n&&n.set(d,"visible",r.isVisible?"yes":"no")},isToggled:()=>r.isVisible});let l=!1;if(n){const t=n.load(d),o=e=>{let t=e.get("visible").composite;void 0!==e.user.visible&&(t=e.user.visible),r.setHidden("no"===t),l="automatic"===t};Promise.all([t,e.restored]).then((([e])=>{o(e),e.changed.connect((e=>{o(e)}))})).catch((e=>{console.error(e.message)}))}a&&a.addItem({command:k.toggleTop,category:"View"}),e.formatChanged.connect((()=>{l&&("desktop"===e.format?t.expandTop():t.collapseTop())}))},autoStart:!0},M={id:"@jupyter-notebook/application-extension:sidepanel",description:"Plugin to toggle the visibility of left or right side panel.",requires:[g.INotebookShell,u.ITranslator],optional:[s.IMainMenu,a.ICommandPalette],autoStart:!0,activate:(e,t,o,n,a)=>{const i=o.load("notebook");e.commands.addCommand(k.togglePanel,{label:e=>e.title,caption:e=>"left"===e.side?i.__("Show %1 in the left sidebar",e.title):"right"===e.side?i.__("Show %1 in the right sidebar",e.title):i.__("Show %1 in the sidebar",e.title),execute:e=>{var o,n;switch(e.side){case"left":t.leftCollapsed||(null===(o=t.leftHandler.currentWidget)||void 0===o?void 0:o.id)!==e.id?t.expandLeft(e.id):(t.collapseLeft(),t.currentWidget&&t.activateById(t.currentWidget.id));break;case"right":t.rightCollapsed||(null===(n=t.rightHandler.currentWidget)||void 0===n?void 0:n.id)!==e.id?t.expandRight(e.id):(t.collapseRight(),t.currentWidget&&t.activateById(t.currentWidget.id))}},isToggled:e=>{switch(e.side){case"left":{if(t.leftCollapsed)return!1;const o=t.leftHandler.currentWidget;return!!o&&o.id===e.id}case"right":{if(t.rightCollapsed)return!1;const o=t.rightHandler.currentWidget;return!!o&&o.id===e.id}}return!1}});const r={left:null,right:null},d=(o,a)=>{var i;if(null===n)return null;null===(i=r[o])||void 0===i||i.dispose();const d=new f.Menu({commands:e.commands});d.title.label=a;const l=t.widgets(o);let s=!1;for(const e of l)d.addItem({command:k.togglePanel,args:{side:o,title:`Show ${e.title.caption}`,id:e.id}}),s=!0;s&&(r[o]=n.viewMenu.addItem({type:"submenu",submenu:d}))};e.restored.then((()=>{if(n){const e=e=>"left"===e?i.__("Left Sidebar"):i.__("Right Sidebar"),o=t.leftHandler.area,n=e(o);d(o,n);const a=t.rightHandler.area,r=e(a);d(a,r);const l=(t,o)=>{const n=e(t.area);d(t.area,n)};t.leftHandler.widgetAdded.connect(l),t.leftHandler.widgetRemoved.connect(l),t.rightHandler.widgetAdded.connect(l),t.rightHandler.widgetRemoved.connect(l)}if(a){const e=new g.SidePanelPalette({commandPalette:a,command:k.togglePanel});t.leftHandler.widgets.forEach((o=>{e.addItem(o,t.leftHandler.area)})),t.rightHandler.widgets.forEach((o=>{e.addItem(o,t.rightHandler.area)})),t.leftHandler.widgetAdded.connect(((t,o)=>{e.addItem(o,t.area)})),t.leftHandler.widgetRemoved.connect(((t,o)=>{e.removeItem(o,t.area)})),t.rightHandler.widgetAdded.connect(((t,o)=>{e.addItem(o,t.area)})),t.rightHandler.widgetRemoved.connect(((t,o)=>{e.removeItem(o,t.area)}))}}))}},U={id:"@jupyter-notebook/application-extension:tree-resolver",description:"The default tree route resolver plugin.",autoStart:!0,requires:[n.IRouter],provides:n.JupyterFrontEnd.ITreeResolver,activate:(e,t)=>{const{commands:o}=e,n=new b.DisposableSet,a=new h.PromiseDelegate,i=new RegExp("/(/tree/.*)?");n.add(o.addCommand(k.resolveTree,{execute:async e=>{var t;if(n.isDisposed)return;const o=r.URLExt.queryStringToObject(null!==(t=e.search)&&void 0!==t?t:""),i=o["file-browser-path"]||"";delete o["file-browser-path"],n.dispose(),a.resolve({browser:i,file:r.PageConfig.getOption("treePath")})}})),n.add(t.register({command:k.resolveTree,pattern:i}));const d=()=>{n.isDisposed||(n.dispose(),a.resolve(null))};return t.routed.connect(d),n.add(new b.DisposableDelegate((()=>{t.routed.disconnect(d)}))),{paths:a.promise}}},W={id:"@jupyter-notebook/application-extension:tree-updater",description:"Plugin to update tree path.",requires:[n.IRouter],provides:n.ITreePathUpdater,activate:(e,t)=>function(e){if(e!==r.PageConfig.getOption("treePath")){const o=r.URLExt.join(r.PageConfig.getOption("baseUrl")||"/","tree",r.URLExt.encodeParts(e));t.navigate(o,{skipRouting:!0}),r.PageConfig.setOption("treePath",e)}},autoStart:!0},D={id:"@jupyter-notebook/application-extension:translator",description:"Translator plugin",requires:[g.INotebookShell,u.ITranslator],autoStart:!0,activate:(e,t,o)=>{t.translator=o}},O={id:"@jupyter-notebook/application-extension:zen",description:"Zen mode plugin.",autoStart:!0,requires:[u.ITranslator],optional:[a.ICommandPalette,g.INotebookShell],activate:(e,t,o,n)=>{const{commands:a}=e,i=document.documentElement,r=t.load("notebook"),d=()=>{null==n||n.expandTop(),null==n||n.menu.setHidden(!1),l=!1};let l=!1;a.addCommand(k.toggleZen,{label:r.__("Toggle Zen Mode"),execute:()=>{l?(document.exitFullscreen(),d()):(i.requestFullscreen(),null==n||n.collapseTop(),null==n||n.menu.setHidden(!0),l=!0)}}),document.addEventListener("fullscreenchange",(()=>{document.fullscreenElement||d()})),o&&o.addItem({command:k.toggleZen,category:"Mode"})}},q=[w,x,P,C,I,S,T,R,_,E,M,L,j,N,H,A,U,W,D,O]}}]);
|
notebook/static/8633.bundle.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[8633],{98633:(e,t,n)=>{n.r(t),n.d(t,{default:()=>y});var i,r=n(
|
|
1
|
+
"use strict";(self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[8633],{98633:(e,t,n)=>{n.r(t),n.d(t,{default:()=>y});var i,r=n(73852),a=n(53876),o=n(983),d=n(76878),s=n(58194),c=n(24758),l=n(77627),g=n(3012),u=n(45556),p=n(93050);!function(e){e.open="settingeditor:open",e.openJSON="settingeditor:open-json",e.revert="settingeditor:revert",e.save="settingeditor:save"}(i||(i={}));const m={id:"@jupyterlab/settingeditor-extension:form-ui",description:"Adds the interactive settings editor and provides its tracker.",requires:[g.ISettingRegistry,u.IStateDB,p.ITranslator,d.IFormRendererRegistry,r.ILabStatus],optional:[r.ILayoutRestorer,a.ICommandPalette,c.g,l.IPluginManager],autoStart:!0,provides:c.O,activate:function(e,t,r,o,s,c,l,g,u,p){const v=o.load("jupyterlab"),{commands:y,shell:S}=e,b="setting-editor",I=new a.WidgetTracker({namespace:b});return l&&l.restore(I,{command:i.open,args:e=>({}),name:e=>b}),y.addCommand(i.open,{execute:async e=>{var l;"ui"===e.settingEditorType?y.execute(i.open,{query:null!==(l=e.query)&&void 0!==l?l:""}):"json"===e.settingEditorType?y.execute(i.openJSON):t.load(m.id).then((l=>{var g;"json"===l.get("settingEditorType").composite?y.execute(i.openJSON):(async e=>{if(I.currentWidget&&!I.currentWidget.isDisposed)return I.currentWidget.isAttached||S.add(I.currentWidget,"main",{type:"Settings"}),void S.activateById(I.currentWidget.id);const l=m.id,{SettingsEditor:g}=await n.e(3470).then(n.t.bind(n,23470,23)),h=new a.MainAreaWidget({content:new g({editorRegistry:s,key:l,registry:t,state:r,commands:y,toSkip:["@jupyterlab/application-extension:context-menu","@jupyterlab/mainmenu-extension:plugin"],translator:o,status:c,query:e.query})});h.toolbar.addItem("spacer",d.Toolbar.createSpacerItem()),p&&h.toolbar.addItem("open-plugin-manager",new d.ToolbarButton({onClick:async()=>{await p.open()},icon:d.launchIcon,label:v.__("Plugin Manager")})),u&&h.toolbar.addItem("open-json-editor",new d.CommandToolbarButton({commands:y,id:i.openJSON,icon:d.launchIcon,label:v.__("JSON Settings Editor")})),h.id=b,h.title.icon=d.settingsIcon,h.title.label=v.__("Settings"),h.title.closable=!0,I.add(h),S.add(h,"main",{type:"Settings"})})({query:null!==(g=e.query)&&void 0!==g?g:""})}))},label:e=>e.label?e.label:v.__("Settings Editor")}),g&&g.addItem({category:v.__("Settings"),command:i.open,args:{settingEditorType:"ui"}}),I}},v={id:"@jupyterlab/settingeditor-extension:plugin",description:"Adds the JSON settings editor and provides its tracker.",requires:[g.ISettingRegistry,o.IEditorServices,u.IStateDB,s.IRenderMimeRegistry,r.ILabStatus,p.ITranslator],optional:[r.ILayoutRestorer,a.ICommandPalette],autoStart:!0,provides:c.g,activate:function(e,t,r,o,s,c,l,g,u){const p=l.load("jupyterlab"),{commands:v,shell:y}=e,S="json-setting-editor",b=r.factoryService.newInlineEditor,I=new a.WidgetTracker({namespace:S});return g&&g.restore(I,{command:i.openJSON,args:e=>({}),name:e=>S}),v.addCommand(i.openJSON,{execute:async()=>{if(I.currentWidget&&!I.currentWidget.isDisposed)return I.currentWidget.isAttached||y.add(I.currentWidget,"main",{type:"Advanced Settings"}),void y.activateById(I.currentWidget.id);const r=m.id,g=e.restored,{JsonSettingEditor:u}=await n.e(3470).then(n.t.bind(n,23470,23)),h=new u({commands:{registry:v,revert:i.revert,save:i.save},editorFactory:b,key:r,registry:t,rendermime:s,state:o,translator:l,when:g});let w=null;h.commandsChanged.connect(((e,t)=>{t.forEach((e=>{v.notifyCommandChanged(e)})),h.canSaveRaw?w||(w=c.setDirty()):w&&(w.dispose(),w=null),h.disposed.connect((()=>{w&&w.dispose()}))}));const _=new a.MainAreaWidget({content:h});_.id=S,_.title.icon=d.settingsIcon,_.title.label=p.__("Advanced Settings Editor"),_.title.closable=!0,I.add(_),y.add(_,"main",{type:"Advanced Settings"})},label:p.__("Advanced Settings Editor")}),u&&u.addItem({category:p.__("Settings"),command:i.openJSON}),v.addCommand(i.revert,{execute:()=>{var e;null===(e=I.currentWidget)||void 0===e||e.content.revert()},icon:d.undoIcon,label:p.__("Revert User Settings"),isEnabled:()=>{var e,t;return null!==(t=null===(e=I.currentWidget)||void 0===e?void 0:e.content.canRevertRaw)&&void 0!==t&&t}}),v.addCommand(i.save,{execute:()=>{var e;return null===(e=I.currentWidget)||void 0===e?void 0:e.content.save()},icon:d.saveIcon,label:p.__("Save User Settings"),isEnabled:()=>{var e,t;return null!==(t=null===(e=I.currentWidget)||void 0===e?void 0:e.content.canSaveRaw)&&void 0!==t&&t}}),I}},y=[m,v]},24758:(e,t,n)=>{n.d(t,{O:()=>r,g:()=>a});var i=n(21961);const r=new i.Token("@jupyterlab/settingeditor:ISettingEditorTracker","A widget tracker for the interactive setting editor.\n Use this if you want to be able to iterate over and interact with setting editors\n created by the application."),a=new i.Token("@jupyterlab/settingeditor:IJSONSettingEditorTracker","A widget tracker for the JSON setting editor.\n Use this if you want to be able to iterate over and interact with setting editors\n created by the application.")}}]);
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[8635],{4444:(e,t,r)=>{r.d(t,{O:()=>i,h:()=>n});var s=r(78156);function n(e,t,r){(0,s.useEffect)((()=>{if(void 0!==r&&e.current&&e.current[t]!==r)try{e.current[t]=r}catch(e){console.warn(e)}}),[r,e.current])}function i(e,t,r){(0,s.useLayoutEffect)((()=>(void 0!==r&&e?.current?.addEventListener(t,r),()=>{r?.cancel&&r.cancel(),e?.current?.removeEventListener(t,r)})),[t,r,e.current])}},83571:(e,t,r)=>{r.d(t,{m:()=>a,w:()=>o});var s=r(616),n=r(76962),i=r(38844);const o=Object.freeze({create:(e,t,r)=>new l(e,t,r),from:e=>new l(e.r,e.g,e.b)});function a(e){const t={r:0,g:0,b:0,toColorString:()=>"",contrast:()=>0,relativeLuminance:0};for(const r in t)if(typeof t[r]!=typeof e[r])return!1;return!0}class l extends s.h{constructor(e,t,r){super(e,t,r,1),this.toColorString=this.toStringHexRGB,this.contrast=i.$.bind(null,this),this.createCSS=this.toColorString,this.relativeLuminance=(0,n.hM)(this)}static fromObject(e){return new l(e.r,e.g,e.b)}}},79892:(e,t,r)=>{r.d(t,{C:()=>n,h:()=>i});var s=r(83571);function n(e){return s.w.create(e,e,e)}const i={LightMode:1,DarkMode:.23}},90859:(e,t,r)=>{r.d(t,{_:()=>n});const s=(-.1+Math.sqrt(.21))/2;function n(e){return e.relativeLuminance<=s}},38844:(e,t,r)=>{function s(e,t){const r=e.relativeLuminance>t.relativeLuminance?e:t,s=e.relativeLuminance>t.relativeLuminance?t:e;return(r.relativeLuminance+.05)/(s.relativeLuminance+.05)}r.d(t,{$:()=>s})},87206:(e,t,r)=>{r.d(t,{z:()=>Re,UE:()=>We,D8:()=>Ze,OC:()=>Ue,B2:()=>te,Av:()=>qe,VN:()=>nt,D9:()=>st,go:()=>rt,nf:()=>_,q2:()=>H,SV:()=>z,UW:()=>q,hV:()=>U,_5:()=>W,o7:()=>G,VF:()=>Y,pR:()=>Z,S_:()=>Tt,GB:()=>Lt,mH:()=>Bt,ek:()=>Mt,a6:()=>$t,DV:()=>Ht,If:()=>ze,yG:()=>Vt,vx:()=>Q,Pp:()=>Ke,lJ:()=>Qe,w4:()=>Xe,z4:()=>Ne,Gy:()=>lt,Xi:()=>at,Tm:()=>ct,_B:()=>ht,ab:()=>Ct,At:()=>it,wF:()=>ot,sG:()=>pt,Qp:()=>ft,DF:()=>gt,jq:()=>dt,hP:()=>yt,Nz:()=>wt,Dg:()=>mt,P0:()=>vt,hY:()=>xt,ak:()=>Pt,H:()=>X,cS:()=>K,RU:()=>J,Pw:()=>ee});var s,n=r(27002),i=r(6618),o=r(58902),a=r(616),l=r(76962),u=r(29087);function h(e,t,r=18){const s=(0,l.$2)(e);let n=s.c+t*r;return n<0&&(n=0),(0,l.KW)(new u.t(s.l,n,s.h))}function c(e,t){return e*t}function g(e,t){return new a.h(c(e.r,t.r),c(e.g,t.g),c(e.b,t.b),1)}function d(e,t){return e<.5?(0,o.uZ)(2*t*e,0,1):(0,o.uZ)(1-2*(1-t)*(1-e),0,1)}function f(e,t){return new a.h(d(e.r,t.r),d(e.g,t.g),d(e.b,t.b),1)}!function(e){e[e.Burn=0]="Burn",e[e.Color=1]="Color",e[e.Darken=2]="Darken",e[e.Dodge=3]="Dodge",e[e.Lighten=4]="Lighten",e[e.Multiply=5]="Multiply",e[e.Overlay=6]="Overlay",e[e.Screen=7]="Screen"}(s||(s={}));var p,b=r(77727),v=r(25700),m=r(70656),y=r(82800);function w(e,t,r,s){if(isNaN(e)||e<=0)return r;if(e>=1)return s;switch(t){case p.HSL:return(0,l.hP)(function(e,t,r){return isNaN(e)||e<=0?t:e>=1?r:new b.H((0,o.AG)(e,t.h,r.h),(0,o.t7)(e,t.s,r.s),(0,o.t7)(e,t.l,r.l))}(e,(0,l.lw)(r),(0,l.lw)(s)));case p.HSV:return(0,l.iI)(function(e,t,r){return isNaN(e)||e<=0?t:e>=1?r:new v.T((0,o.AG)(e,t.h,r.h),(0,o.t7)(e,t.s,r.s),(0,o.t7)(e,t.v,r.v))}(e,(0,l.T8)(r),(0,l.T8)(s)));case p.XYZ:return(0,l.rD)(function(e,t,r){return isNaN(e)||e<=0?t:e>=1?r:new y.x((0,o.t7)(e,t.x,r.x),(0,o.t7)(e,t.y,r.y),(0,o.t7)(e,t.z,r.z))}(e,(0,l.zP)(r),(0,l.zP)(s)));case p.LAB:return(0,l.DR)(function(e,t,r){return isNaN(e)||e<=0?t:e>=1?r:new m.R((0,o.t7)(e,t.l,r.l),(0,o.t7)(e,t.a,r.a),(0,o.t7)(e,t.b,r.b))}(e,(0,l.v1)(r),(0,l.v1)(s)));case p.LCH:return(0,l.KW)(function(e,t,r){return isNaN(e)||e<=0?t:e>=1?r:new u.t((0,o.t7)(e,t.l,r.l),(0,o.t7)(e,t.c,r.c),(0,o.AG)(e,t.h,r.h))}(e,(0,l.$2)(r),(0,l.$2)(s)));default:return function(e,t,r){return isNaN(e)||e<=0?t:e>=1?r:new a.h((0,o.t7)(e,t.r,r.r),(0,o.t7)(e,t.g,r.g),(0,o.t7)(e,t.b,r.b),(0,o.t7)(e,t.a,r.a))}(e,r,s)}}!function(e){e[e.RGB=0]="RGB",e[e.HSL=1]="HSL",e[e.HSV=2]="HSV",e[e.XYZ=3]="XYZ",e[e.LAB=4]="LAB",e[e.LCH=5]="LCH"}(p||(p={}));class C{constructor(e){if(null==e||0===e.length)throw new Error("The stops argument must be non-empty");this.stops=this.sortColorScaleStops(e)}static createBalancedColorScale(e){if(null==e||0===e.length)throw new Error("The colors argument must be non-empty");const t=new Array(e.length);for(let r=0;r<e.length;r++)0===r?t[r]={color:e[r],position:0}:r===e.length-1?t[r]={color:e[r],position:1}:t[r]={color:e[r],position:r*(1/(e.length-1))};return new C(t)}getColor(e,t=p.RGB){if(1===this.stops.length)return this.stops[0].color;if(e<=0)return this.stops[0].color;if(e>=1)return this.stops[this.stops.length-1].color;let r=0;for(let t=0;t<this.stops.length;t++)this.stops[t].position<=e&&(r=t);let s=r+1;return s>=this.stops.length&&(s=this.stops.length-1),w((e-this.stops[r].position)*(1/(this.stops[s].position-this.stops[r].position)),t,this.stops[r].color,this.stops[s].color)}trim(e,t,r=p.RGB){if(e<0||t>1||t<e)throw new Error("Invalid bounds");if(e===t)return new C([{color:this.getColor(e,r),position:0}]);const s=[];for(let r=0;r<this.stops.length;r++)this.stops[r].position>=e&&this.stops[r].position<=t&&s.push(this.stops[r]);if(0===s.length)return new C([{color:this.getColor(e),position:e},{color:this.getColor(t),position:t}]);s[0].position!==e&&s.unshift({color:this.getColor(e),position:e}),s[s.length-1].position!==t&&s.push({color:this.getColor(t),position:t});const n=t-e,i=new Array(s.length);for(let t=0;t<s.length;t++)i[t]={color:s[t].color,position:(s[t].position-e)/n};return new C(i)}findNextColor(e,t,r=!1,s=p.RGB,n=.005,i=32){isNaN(e)||e<=0?e=0:e>=1&&(e=1);const o=this.getColor(e,s),a=r?0:1,u=this.getColor(a,s);if((0,l.wo)(o,u)<=t)return a;let h=r?0:e,c=r?e:0,g=a,d=0;for(;d<=i;){g=Math.abs(c-h)/2+h;const e=this.getColor(g,s),i=(0,l.wo)(o,e);if(Math.abs(i-t)<=n)return g;i>t?r?h=g:c=g:r?c=g:h=g,d++}return g}clone(){const e=new Array(this.stops.length);for(let t=0;t<e.length;t++)e[t]={color:this.stops[t].color,position:this.stops[t].position};return new C(e)}sortColorScaleStops(e){return e.sort(((e,t)=>{const r=e.position,s=t.position;return r<s?-1:r>s?1:0}))}}var F=r(93484);class V{constructor(e){this.config=Object.assign({},V.defaultPaletteConfig,e),this.palette=[],this.updatePaletteColors()}updatePaletteGenerationValues(e){let t=!1;for(const r in e)this.config[r]&&(this.config[r].equalValue?this.config[r].equalValue(e[r])||(this.config[r]=e[r],t=!0):e[r]!==this.config[r]&&(this.config[r]=e[r],t=!0));return t&&this.updatePaletteColors(),t}updatePaletteColors(){const e=this.generatePaletteColorScale();for(let t=0;t<this.config.steps;t++)this.palette[t]=e.getColor(t/(this.config.steps-1),this.config.interpolationMode)}generatePaletteColorScale(){const e=(0,l.lw)(this.config.baseColor),t=new C([{position:0,color:this.config.scaleColorLight},{position:.5,color:this.config.baseColor},{position:1,color:this.config.scaleColorDark}]).trim(this.config.clipLight,1-this.config.clipDark);let r=t.getColor(0),s=t.getColor(1);if(e.s>=this.config.saturationAdjustmentCutoff&&(r=h(r,this.config.saturationLight),s=h(s,this.config.saturationDark)),0!==this.config.multiplyLight){const e=g(this.config.baseColor,r);r=w(this.config.multiplyLight,this.config.interpolationMode,r,e)}if(0!==this.config.multiplyDark){const e=g(this.config.baseColor,s);s=w(this.config.multiplyDark,this.config.interpolationMode,s,e)}if(0!==this.config.overlayLight){const e=f(this.config.baseColor,r);r=w(this.config.overlayLight,this.config.interpolationMode,r,e)}if(0!==this.config.overlayDark){const e=f(this.config.baseColor,s);s=w(this.config.overlayDark,this.config.interpolationMode,s,e)}return this.config.baseScalePosition?this.config.baseScalePosition<=0?new C([{position:0,color:this.config.baseColor},{position:1,color:s.clamp()}]):this.config.baseScalePosition>=1?new C([{position:0,color:r.clamp()},{position:1,color:this.config.baseColor}]):new C([{position:0,color:r.clamp()},{position:this.config.baseScalePosition,color:this.config.baseColor},{position:1,color:s.clamp()}]):new C([{position:0,color:r.clamp()},{position:.5,color:this.config.baseColor},{position:1,color:s.clamp()}])}}V.defaultPaletteConfig={baseColor:(0,F.in)("#808080"),steps:11,interpolationMode:p.RGB,scaleColorLight:new a.h(1,1,1,1),scaleColorDark:new a.h(0,0,0,1),clipLight:.185,clipDark:.16,saturationAdjustmentCutoff:.05,saturationLight:.35,saturationDark:1.25,overlayLight:0,overlayDark:.25,multiplyLight:0,multiplyDark:0,baseScalePosition:.5},V.greyscalePaletteConfig={baseColor:(0,F.in)("#808080"),steps:11,interpolationMode:p.RGB,scaleColorLight:new a.h(1,1,1,1),scaleColorDark:new a.h(0,0,0,1),clipLight:0,clipDark:0,saturationAdjustmentCutoff:0,saturationLight:0,saturationDark:0,overlayLight:0,overlayDark:0,multiplyLight:0,multiplyDark:0,baseScalePosition:.5},V.defaultPaletteConfig.scaleColorLight,V.defaultPaletteConfig.scaleColorDark;class D{constructor(e){this.palette=[],this.config=Object.assign({},D.defaultPaletteConfig,e),this.regenPalettes()}regenPalettes(){let e=this.config.steps;(isNaN(e)||e<3)&&(e=3);const t=.14,r=new a.h(t,t,t,1),s=new V(Object.assign(Object.assign({},V.greyscalePaletteConfig),{baseColor:r,baseScalePosition:86/94,steps:e})).palette,n=((0,l.rp)(this.config.baseColor)+(0,l.lw)(this.config.baseColor).l)/2,i=this.matchRelativeLuminanceIndex(n,s)/(e-1),o=this.matchRelativeLuminanceIndex(t,s)/(e-1),u=(0,l.lw)(this.config.baseColor),h=(0,l.hP)(b.H.fromObject({h:u.h,s:u.s,l:t})),c=(0,l.hP)(b.H.fromObject({h:u.h,s:u.s,l:.06})),g=new Array(5);g[0]={position:0,color:new a.h(1,1,1,1)},g[1]={position:i,color:this.config.baseColor},g[2]={position:o,color:h},g[3]={position:.99,color:c},g[4]={position:1,color:new a.h(0,0,0,1)};const d=new C(g);this.palette=new Array(e);for(let t=0;t<e;t++){const r=d.getColor(t/(e-1),p.RGB);this.palette[t]=r}}matchRelativeLuminanceIndex(e,t){let r=Number.MAX_VALUE,s=0,n=0;const i=t.length;for(;n<i;n++){const i=Math.abs((0,l.rp)(t[n])-e);i<r&&(r=i,s=n)}return s}}D.defaultPaletteConfig={baseColor:(0,F.in)("#808080"),steps:94};var S=r(83571);function O(e,t,r=0,s=e.length-1){if(s===r)return e[r];const n=Math.floor((s-r)/2)+r;return t(e[n])?O(e,t,r,n):O(e,t,n+1,s)}var x=r(90859);function k(e){return(0,x._)(e)?-1:1}var P=r(38844);const N=Object.freeze({create:function(e,t,r){return"number"==typeof e?N.from(S.w.create(e,t,r)):N.from(e)},from:function(e){return(0,S.m)(e)?T.from(e):T.from(S.w.create(e.r,e.g,e.b))}});class T{constructor(e,t){this.closestIndexCache=new Map,this.source=e,this.swatches=t,this.reversedSwatches=Object.freeze([...this.swatches].reverse()),this.lastIndex=this.swatches.length-1}colorContrast(e,t,r,s){void 0===r&&(r=this.closestIndexOf(e));let n=this.swatches;const i=this.lastIndex;let o=r;return void 0===s&&(s=k(e)),-1===s&&(n=this.reversedSwatches,o=i-o),O(n,(r=>(0,P.$)(e,r)>=t),o,i)}get(e){return this.swatches[e]||this.swatches[(0,o.uZ)(e,0,this.lastIndex)]}closestIndexOf(e){if(this.closestIndexCache.has(e.relativeLuminance))return this.closestIndexCache.get(e.relativeLuminance);let t=this.swatches.indexOf(e);if(-1!==t)return this.closestIndexCache.set(e.relativeLuminance,t),t;const r=this.swatches.reduce(((t,r)=>Math.abs(r.relativeLuminance-e.relativeLuminance)<Math.abs(t.relativeLuminance-e.relativeLuminance)?r:t));return t=this.swatches.indexOf(r),this.closestIndexCache.set(e.relativeLuminance,t),t}static from(e){return new T(e,Object.freeze(new D({baseColor:a.h.fromObject(e)}).palette.map((e=>{const t=(0,F.in)(e.toStringHexRGB());return S.w.create(t.r,t.g,t.b)}))))}}const R=S.w.create(1,1,1),A=S.w.create(0,0,0),$=S.w.from((0,F.in)("#808080")),M=S.w.from((0,F.in)("#DA1A5F")),L=S.w.from((0,F.in)("#D32F2F"));var B=r(79892);function I(e,t,r,s,n,i){return Math.max(e.closestIndexOf((0,B.C)(t))+r,s,n,i)}const{create:j}=n.DesignToken;function E(e){return n.DesignToken.create({name:e,cssCustomPropertyName:null})}const z=j("body-font").withDefault('aktiv-grotesk, "Segoe UI", Arial, Helvetica, sans-serif'),_=j("base-height-multiplier").withDefault(10),H=(j("base-horizontal-spacing-multiplier").withDefault(3),j("base-layer-luminance").withDefault(B.h.DarkMode)),q=j("control-corner-radius").withDefault(4),U=j("density").withDefault(0),W=j("design-unit").withDefault(4),Z=j("element-scale").withDefault(0),G=j("direction").withDefault(i.N.ltr),Y=j("disabled-opacity").withDefault(.4),X=j("stroke-width").withDefault(1),Q=j("focus-stroke-width").withDefault(2),K=j("type-ramp-base-font-size").withDefault("14px"),J=j("type-ramp-base-line-height").withDefault("20px"),ee=(j("type-ramp-minus-1-font-size").withDefault("12px"),j("type-ramp-minus-1-line-height").withDefault("16px"),j("type-ramp-minus-2-font-size").withDefault("10px"),j("type-ramp-minus-2-line-height").withDefault("16px"),j("type-ramp-plus-1-font-size").withDefault("16px")),te=(j("type-ramp-plus-1-line-height").withDefault("24px"),j("type-ramp-plus-2-font-size").withDefault("20px"),j("type-ramp-plus-2-line-height").withDefault("28px"),j("type-ramp-plus-3-font-size").withDefault("28px"),j("type-ramp-plus-3-line-height").withDefault("36px"),j("type-ramp-plus-4-font-size").withDefault("34px"),j("type-ramp-plus-4-line-height").withDefault("44px"),j("type-ramp-plus-5-font-size").withDefault("46px"),j("type-ramp-plus-5-line-height").withDefault("56px"),j("type-ramp-plus-6-font-size").withDefault("60px"),j("type-ramp-plus-6-line-height").withDefault("72px"),E("accent-fill-rest-delta").withDefault(0),E("accent-fill-hover-delta").withDefault(4)),re=E("accent-fill-active-delta").withDefault(-5),se=E("accent-fill-focus-delta").withDefault(0),ne=E("accent-foreground-rest-delta").withDefault(0),ie=E("accent-foreground-hover-delta").withDefault(6),oe=E("accent-foreground-active-delta").withDefault(-4),ae=E("accent-foreground-focus-delta").withDefault(0),le=E("neutral-fill-rest-delta").withDefault(7),ue=E("neutral-fill-hover-delta").withDefault(10),he=E("neutral-fill-active-delta").withDefault(5),ce=E("neutral-fill-focus-delta").withDefault(0),ge=E("neutral-fill-input-rest-delta").withDefault(0),de=E("neutral-fill-input-hover-delta").withDefault(0),fe=E("neutral-fill-input-active-delta").withDefault(0),pe=E("neutral-fill-input-focus-delta").withDefault(0),be=E("neutral-fill-stealth-rest-delta").withDefault(0),ve=E("neutral-fill-stealth-hover-delta").withDefault(5),me=E("neutral-fill-stealth-active-delta").withDefault(3),ye=E("neutral-fill-stealth-focus-delta").withDefault(0),we=E("neutral-fill-strong-rest-delta").withDefault(0),Ce=E("neutral-fill-strong-hover-delta").withDefault(8),Fe=E("neutral-fill-strong-active-delta").withDefault(-5),Ve=E("neutral-fill-strong-focus-delta").withDefault(0),De=E("neutral-fill-layer-rest-delta").withDefault(3),Se=E("neutral-stroke-rest-delta").withDefault(25),Oe=E("neutral-stroke-hover-delta").withDefault(40),xe=E("neutral-stroke-active-delta").withDefault(16),ke=E("neutral-stroke-focus-delta").withDefault(25),Pe=E("neutral-stroke-divider-rest-delta").withDefault(8),Ne=j("neutral-color").withDefault($),Te=E("neutral-palette").withDefault((e=>N.from(Ne.getValueFor(e)))),Re=j("accent-color").withDefault(M),Ae=E("accent-palette").withDefault((e=>N.from(Re.getValueFor(e)))),$e=E("neutral-layer-card-container-recipe").withDefault({evaluate:e=>{return t=Te.getValueFor(e),r=H.getValueFor(e),s=De.getValueFor(e),t.get(t.closestIndexOf((0,B.C)(r))+s);var t,r,s}}),Me=(j("neutral-layer-card-container").withDefault((e=>$e.getValueFor(e).evaluate(e))),E("neutral-layer-floating-recipe").withDefault({evaluate:e=>function(e,t,r){const s=e.closestIndexOf((0,B.C)(t))-r;return e.get(s-r)}(Te.getValueFor(e),H.getValueFor(e),De.getValueFor(e))})),Le=(j("neutral-layer-floating").withDefault((e=>Me.getValueFor(e).evaluate(e))),E("neutral-layer-1-recipe").withDefault({evaluate:e=>function(e,t){return e.get(e.closestIndexOf((0,B.C)(t)))}(Te.getValueFor(e),H.getValueFor(e))})),Be=j("neutral-layer-1").withDefault((e=>Le.getValueFor(e).evaluate(e))),Ie=E("neutral-layer-2-recipe").withDefault({evaluate:e=>{return t=Te.getValueFor(e),r=H.getValueFor(e),s=De.getValueFor(e),n=le.getValueFor(e),i=ue.getValueFor(e),o=he.getValueFor(e),t.get(I(t,r,s,n,i,o));var t,r,s,n,i,o}}),je=(j("neutral-layer-2").withDefault((e=>Ie.getValueFor(e).evaluate(e))),E("neutral-layer-3-recipe").withDefault({evaluate:e=>{return t=Te.getValueFor(e),r=H.getValueFor(e),s=De.getValueFor(e),n=le.getValueFor(e),i=ue.getValueFor(e),o=he.getValueFor(e),t.get(I(t,r,s,n,i,o)+s);var t,r,s,n,i,o}})),Ee=(j("neutral-layer-3").withDefault((e=>je.getValueFor(e).evaluate(e))),E("neutral-layer-4-recipe").withDefault({evaluate:e=>{return t=Te.getValueFor(e),r=H.getValueFor(e),s=De.getValueFor(e),n=le.getValueFor(e),i=ue.getValueFor(e),o=he.getValueFor(e),t.get(I(t,r,s,n,i,o)+2*s);var t,r,s,n,i,o}})),ze=(j("neutral-layer-4").withDefault((e=>Ee.getValueFor(e).evaluate(e))),j("fill-color").withDefault((e=>Be.getValueFor(e))));var _e;!function(e){e[e.normal=4.5]="normal",e[e.large=7]="large"}(_e||(_e={}));const He=j({name:"accent-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>function(e,t,r,s,n,i,o,a,l){const u=e.source,h=t.closestIndexOf(r)>=Math.max(o,a,l)?-1:1,c=e.closestIndexOf(u),g=c+-1*h*s,d=g+h*n,f=g+h*i;return{rest:e.get(g),hover:e.get(c),active:e.get(d),focus:e.get(f)}}(Ae.getValueFor(e),Te.getValueFor(e),t||ze.getValueFor(e),te.getValueFor(e),re.getValueFor(e),se.getValueFor(e),le.getValueFor(e),ue.getValueFor(e),he.getValueFor(e))}),qe=j("accent-fill-rest").withDefault((e=>He.getValueFor(e).evaluate(e).rest)),Ue=j("accent-fill-hover").withDefault((e=>He.getValueFor(e).evaluate(e).hover)),We=j("accent-fill-active").withDefault((e=>He.getValueFor(e).evaluate(e).active)),Ze=j("accent-fill-focus").withDefault((e=>He.getValueFor(e).evaluate(e).focus)),Ge=e=>(t,r)=>function(e,t){return e.contrast(R)>=t?R:A}(r||qe.getValueFor(t),e),Ye=E("foreground-on-accent-recipe").withDefault({evaluate:(e,t)=>Ge(_e.normal)(e,t)}),Xe=j("foreground-on-accent-rest").withDefault((e=>Ye.getValueFor(e).evaluate(e,qe.getValueFor(e)))),Qe=j("foreground-on-accent-hover").withDefault((e=>Ye.getValueFor(e).evaluate(e,Ue.getValueFor(e)))),Ke=j("foreground-on-accent-active").withDefault((e=>Ye.getValueFor(e).evaluate(e,We.getValueFor(e)))),Je=(j("foreground-on-accent-focus").withDefault((e=>Ye.getValueFor(e).evaluate(e,Ze.getValueFor(e)))),E("foreground-on-accent-large-recipe").withDefault({evaluate:(e,t)=>Ge(_e.large)(e,t)})),et=(j("foreground-on-accent-rest-large").withDefault((e=>Je.getValueFor(e).evaluate(e,qe.getValueFor(e)))),j("foreground-on-accent-hover-large").withDefault((e=>Je.getValueFor(e).evaluate(e,Ue.getValueFor(e)))),j("foreground-on-accent-active-large").withDefault((e=>Je.getValueFor(e).evaluate(e,We.getValueFor(e)))),j("foreground-on-accent-focus-large").withDefault((e=>Je.getValueFor(e).evaluate(e,Ze.getValueFor(e)))),e=>(t,r)=>function(e,t,r,s,n,i,o){const a=e.source,l=e.closestIndexOf(a),u=k(t),h=l+(1===u?Math.min(s,n):Math.max(u*s,u*n)),c=e.colorContrast(t,r,h,u),g=e.closestIndexOf(c),d=g+u*Math.abs(s-n);let f,p;return(1===u?s<n:u*s>u*n)?(f=g,p=d):(f=d,p=g),{rest:e.get(f),hover:e.get(p),active:e.get(f+u*i),focus:e.get(f+u*o)}}(Ae.getValueFor(t),r||ze.getValueFor(t),e,ne.getValueFor(t),ie.getValueFor(t),oe.getValueFor(t),ae.getValueFor(t))),tt=j({name:"accent-foreground-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>et(_e.normal)(e,t)}),rt=j("accent-foreground-rest").withDefault((e=>tt.getValueFor(e).evaluate(e).rest)),st=j("accent-foreground-hover").withDefault((e=>tt.getValueFor(e).evaluate(e).hover)),nt=j("accent-foreground-active").withDefault((e=>tt.getValueFor(e).evaluate(e).active)),it=(j("accent-foreground-focus").withDefault((e=>tt.getValueFor(e).evaluate(e).focus)),j({name:"neutral-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>function(e,t,r,s,n,i){const o=e.closestIndexOf(t),a=o>=Math.max(r,s,n,i)?-1:1;return{rest:e.get(o+a*r),hover:e.get(o+a*s),active:e.get(o+a*n),focus:e.get(o+a*i)}}(Te.getValueFor(e),t||ze.getValueFor(e),le.getValueFor(e),ue.getValueFor(e),he.getValueFor(e),ce.getValueFor(e))})),ot=j("neutral-fill-rest").withDefault((e=>it.getValueFor(e).evaluate(e).rest)),at=j("neutral-fill-hover").withDefault((e=>it.getValueFor(e).evaluate(e).hover)),lt=j("neutral-fill-active").withDefault((e=>it.getValueFor(e).evaluate(e).active)),ut=(j("neutral-fill-focus").withDefault((e=>it.getValueFor(e).evaluate(e).focus)),j({name:"neutral-fill-input-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>function(e,t,r,s,n,i){const o=k(t),a=e.closestIndexOf(t);return{rest:e.get(a-o*r),hover:e.get(a-o*s),active:e.get(a-o*n),focus:e.get(a-o*i)}}(Te.getValueFor(e),t||ze.getValueFor(e),ge.getValueFor(e),de.getValueFor(e),fe.getValueFor(e),pe.getValueFor(e))})),ht=j("neutral-fill-input-rest").withDefault((e=>ut.getValueFor(e).evaluate(e).rest)),ct=j("neutral-fill-input-hover").withDefault((e=>ut.getValueFor(e).evaluate(e).hover)),gt=(j("neutral-fill-input-active").withDefault((e=>ut.getValueFor(e).evaluate(e).active)),j("neutral-fill-input-focus").withDefault((e=>ut.getValueFor(e).evaluate(e).focus)),j({name:"neutral-fill-stealth-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>function(e,t,r,s,n,i,o,a,l,u){const h=Math.max(r,s,n,i,o,a,l,u),c=e.closestIndexOf(t),g=c>=h?-1:1;return{rest:e.get(c+g*r),hover:e.get(c+g*s),active:e.get(c+g*n),focus:e.get(c+g*i)}}(Te.getValueFor(e),t||ze.getValueFor(e),be.getValueFor(e),ve.getValueFor(e),me.getValueFor(e),ye.getValueFor(e),le.getValueFor(e),ue.getValueFor(e),he.getValueFor(e),ce.getValueFor(e))})),dt=j("neutral-fill-stealth-rest").withDefault((e=>gt.getValueFor(e).evaluate(e).rest)),ft=j("neutral-fill-stealth-hover").withDefault((e=>gt.getValueFor(e).evaluate(e).hover)),pt=j("neutral-fill-stealth-active").withDefault((e=>gt.getValueFor(e).evaluate(e).active)),bt=(j("neutral-fill-stealth-focus").withDefault((e=>gt.getValueFor(e).evaluate(e).focus)),j({name:"neutral-fill-strong-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>function(e,t,r,s,n,i){const o=k(t),a=e.closestIndexOf(e.colorContrast(t,4.5)),l=a+o*Math.abs(r-s);let u,h;return(1===o?r<s:o*r>o*s)?(u=a,h=l):(u=l,h=a),{rest:e.get(u),hover:e.get(h),active:e.get(u+o*n),focus:e.get(u+o*i)}}(Te.getValueFor(e),t||ze.getValueFor(e),we.getValueFor(e),Ce.getValueFor(e),Fe.getValueFor(e),Ve.getValueFor(e))})),vt=j("neutral-fill-strong-rest").withDefault((e=>bt.getValueFor(e).evaluate(e).rest)),mt=j("neutral-fill-strong-hover").withDefault((e=>bt.getValueFor(e).evaluate(e).hover)),yt=j("neutral-fill-strong-active").withDefault((e=>bt.getValueFor(e).evaluate(e).active)),wt=j("neutral-fill-strong-focus").withDefault((e=>bt.getValueFor(e).evaluate(e).focus)),Ct=E("neutral-fill-layer-recipe").withDefault({evaluate:(e,t)=>function(e,t,r){const s=e.closestIndexOf(t);return e.get(s-(s<r?-1*r:r))}(Te.getValueFor(e),t||ze.getValueFor(e),De.getValueFor(e))}),Ft=(j("neutral-fill-layer-rest").withDefault((e=>Ct.getValueFor(e).evaluate(e))),E("focus-stroke-outer-recipe").withDefault({evaluate:e=>{return t=Te.getValueFor(e),r=ze.getValueFor(e),t.colorContrast(r,3.5);var t,r}})),Vt=j("focus-stroke-outer").withDefault((e=>Ft.getValueFor(e).evaluate(e))),Dt=E("focus-stroke-inner-recipe").withDefault({evaluate:e=>{return t=Ae.getValueFor(e),r=ze.getValueFor(e),s=Vt.getValueFor(e),t.colorContrast(s,3.5,t.closestIndexOf(t.source),-1*k(r));var t,r,s}}),St=(j("focus-stroke-inner").withDefault((e=>Dt.getValueFor(e).evaluate(e))),E("neutral-foreground-hint-recipe").withDefault({evaluate:e=>{return t=Te.getValueFor(e),r=ze.getValueFor(e),t.colorContrast(r,4.5);var t,r}})),Ot=(j("neutral-foreground-hint").withDefault((e=>St.getValueFor(e).evaluate(e))),E("neutral-foreground-recipe").withDefault({evaluate:e=>{return t=Te.getValueFor(e),r=ze.getValueFor(e),t.colorContrast(r,14);var t,r}})),xt=j("neutral-foreground-rest").withDefault((e=>Ot.getValueFor(e).evaluate(e))),kt=j({name:"neutral-stroke-recipe",cssCustomPropertyName:null}).withDefault({evaluate:e=>function(e,t,r,s,n,i){const o=e.closestIndexOf(t),a=k(t),l=o+a*r,u=l+a*(s-r),h=l+a*(n-r),c=l+a*(i-r);return{rest:e.get(l),hover:e.get(u),active:e.get(h),focus:e.get(c)}}(Te.getValueFor(e),ze.getValueFor(e),Se.getValueFor(e),Oe.getValueFor(e),xe.getValueFor(e),ke.getValueFor(e))}),Pt=j("neutral-stroke-rest").withDefault((e=>kt.getValueFor(e).evaluate(e).rest)),Nt=(j("neutral-stroke-hover").withDefault((e=>kt.getValueFor(e).evaluate(e).hover)),j("neutral-stroke-active").withDefault((e=>kt.getValueFor(e).evaluate(e).active)),j("neutral-stroke-focus").withDefault((e=>kt.getValueFor(e).evaluate(e).focus)),E("neutral-stroke-divider-recipe").withDefault({evaluate:(e,t)=>function(e,t,r){return e.get(e.closestIndexOf(t)+k(t)*r)}(Te.getValueFor(e),t||ze.getValueFor(e),Pe.getValueFor(e))})),Tt=(j("neutral-stroke-divider-rest").withDefault((e=>Nt.getValueFor(e).evaluate(e))),n.DesignToken.create({name:"height-number",cssCustomPropertyName:null}).withDefault((e=>(_.getValueFor(e)+U.getValueFor(e))*W.getValueFor(e))),j("error-color").withDefault(L)),Rt=E("error-palette").withDefault((e=>N.from(Tt.getValueFor(e)))),At=j({name:"error-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>function(e,t,r,s,n,i,o,a,l){const u=e.source,h=t.closestIndexOf(r)>=Math.max(o,a,l)?-1:1,c=e.closestIndexOf(u),g=c+-1*h*s,d=g+h*n,f=g+h*i;return{rest:e.get(g),hover:e.get(c),active:e.get(d),focus:e.get(f)}}(Rt.getValueFor(e),Te.getValueFor(e),t||ze.getValueFor(e),te.getValueFor(e),re.getValueFor(e),se.getValueFor(e),le.getValueFor(e),ue.getValueFor(e),he.getValueFor(e))}),$t=j("error-fill-rest").withDefault((e=>At.getValueFor(e).evaluate(e).rest)),Mt=j("error-fill-hover").withDefault((e=>At.getValueFor(e).evaluate(e).hover)),Lt=j("error-fill-active").withDefault((e=>At.getValueFor(e).evaluate(e).active)),Bt=j("error-fill-focus").withDefault((e=>At.getValueFor(e).evaluate(e).focus)),It=e=>(t,r)=>function(e,t){return e.contrast(R)>=t?R:A}(r||$t.getValueFor(t),e),jt=j({name:"foreground-on-error-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>It(_e.normal)(e,t)}),Et=(j("foreground-on-error-rest").withDefault((e=>jt.getValueFor(e).evaluate(e,$t.getValueFor(e)))),j("foreground-on-error-hover").withDefault((e=>jt.getValueFor(e).evaluate(e,Mt.getValueFor(e)))),j("foreground-on-error-active").withDefault((e=>jt.getValueFor(e).evaluate(e,Lt.getValueFor(e)))),j("foreground-on-error-focus").withDefault((e=>jt.getValueFor(e).evaluate(e,Bt.getValueFor(e)))),j({name:"foreground-on-error-large-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>It(_e.large)(e,t)})),zt=(j("foreground-on-error-rest-large").withDefault((e=>Et.getValueFor(e).evaluate(e,$t.getValueFor(e)))),j("foreground-on-error-hover-large").withDefault((e=>Et.getValueFor(e).evaluate(e,Mt.getValueFor(e)))),j("foreground-on-error-active-large").withDefault((e=>Et.getValueFor(e).evaluate(e,Lt.getValueFor(e)))),j("foreground-on-error-focus-large").withDefault((e=>Et.getValueFor(e).evaluate(e,Bt.getValueFor(e)))),e=>(t,r)=>function(e,t,r,s,n,i,o){const a=e.source,l=e.closestIndexOf(a),u=(0,x._)(t)?-1:1,h=l+(1===u?Math.min(s,n):Math.max(u*s,u*n)),c=e.colorContrast(t,r,h,u),g=e.closestIndexOf(c),d=g+u*Math.abs(s-n);let f,p;return(1===u?s<n:u*s>u*n)?(f=g,p=d):(f=d,p=g),{rest:e.get(f),hover:e.get(p),active:e.get(f+u*i),focus:e.get(f+u*o)}}(Rt.getValueFor(t),r||ze.getValueFor(t),e,ne.getValueFor(t),ie.getValueFor(t),oe.getValueFor(t),ae.getValueFor(t))),_t=j({name:"error-foreground-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>zt(_e.normal)(e,t)}),Ht=(j("error-foreground-rest").withDefault((e=>_t.getValueFor(e).evaluate(e).rest)),j("error-foreground-hover").withDefault((e=>_t.getValueFor(e).evaluate(e).hover)),j("error-foreground-active").withDefault((e=>_t.getValueFor(e).evaluate(e).active)));j("error-foreground-focus").withDefault((e=>_t.getValueFor(e).evaluate(e).focus))},68866:(e,t,r)=>{r.d(t,{W:()=>b});var s=r(74855),n=r(50755),i=r(70529),o=r(27002),a=r(40791);const l=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),u=new Map,h=new Map;let c=null;const g=i.DI.createInterface((e=>e.cachedCallback((e=>(null===c&&(c=new f(null,e)),c))))),d=Object.freeze({tagFor:e=>h.get(e),responsibleFor(e){const t=e.$$designSystem$$;return t||i.DI.findResponsibleContainer(e).get(g)},getOrCreate(e){if(!e)return null===c&&(c=i.DI.getOrCreateDOMContainer().get(g)),c;const t=e.$$designSystem$$;if(t)return t;const r=i.DI.getOrCreateDOMContainer(e);if(r.has(g,!1))return r.get(g);{const t=new f(e,r);return r.register(i.YM.instance(g,t)),t}}});class f{constructor(e,t){this.owner=e,this.container=t,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>l.definitionCallbackOnly,null!==e&&(e.$$designSystem$$=this)}withPrefix(e){return this.prefix=e,this}withShadowRootMode(e){return this.shadowRootMode=e,this}withElementDisambiguation(e){return this.disambiguate=e,this}withDesignTokenRoot(e){return this.designTokenRoot=e,this}register(...e){const t=this.container,r=[],s=this.disambiguate,i=this.shadowRootMode,a={elementPrefix:this.prefix,tryDefineElement(e,o,a){const c=function(e,t,r){return"string"==typeof e?{name:e,type:t,callback:r}:e}(e,o,a),{name:g,callback:d,baseClass:f}=c;let{type:b}=c,v=g,m=u.get(v),y=!0;for(;m;){const e=s(v,b,m);switch(e){case l.ignoreDuplicate:return;case l.definitionCallbackOnly:y=!1,m=void 0;break;default:v=e,m=u.get(v)}}y&&((h.has(b)||b===n.I)&&(b=class extends b{}),u.set(v,b),h.set(b,v),f&&h.set(f,v)),r.push(new p(t,v,b,i,d,y))}};this.designTokensInitialized||(this.designTokensInitialized=!0,null!==this.designTokenRoot&&o.DesignToken.registerRoot(this.designTokenRoot)),t.registerWithContext(a,...e);for(const e of r)e.callback(e),e.willDefine&&null!==e.definition&&e.definition.define();return this}}class p{constructor(e,t,r,s,n,i){this.container=e,this.name=t,this.type=r,this.shadowRootMode=s,this.callback=n,this.willDefine=i,this.definition=null}definePresentation(e){a.v.define(this.name,e,this.container)}defineElement(e){this.definition=new s.W(this.type,Object.assign(Object.assign({},e),{name:this.name}))}tagFor(e){return d.tagFor(e)}}function b(e){return d.getOrCreate(e).withPrefix("jp")}},13370:(e,t,r)=>{r.d(t,{i:()=>i});var s=r(12634),n=r(87206);const i=s.j`(${n.nf} + ${n.hV} + ${n.pR}) * ${n._5}`},76962:(e,t,r)=>{r.d(t,{$2:()=>F,DR:()=>C,KW:()=>V,T8:()=>b,hM:()=>c,hP:()=>p,iI:()=>v,lw:()=>f,rD:()=>y,rp:()=>h,v1:()=>w,wo:()=>d,zP:()=>m});var s=r(77727),n=r(25700),i=r(70656),o=r(29087),a=r(616),l=r(82800),u=r(58902);function h(e){return.2126*e.r+.7152*e.g+.0722*e.b}function c(e){function t(e){return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}return h(new a.h(t(e.r),t(e.g),t(e.b),1))}const g=(e,t)=>(e+.05)/(t+.05);function d(e,t){const r=c(e),s=c(t);return r>s?g(r,s):g(s,r)}function f(e){const t=Math.max(e.r,e.g,e.b),r=Math.min(e.r,e.g,e.b),n=t-r;let i=0;0!==n&&(i=t===e.r?(e.g-e.b)/n%6*60:t===e.g?60*((e.b-e.r)/n+2):60*((e.r-e.g)/n+4)),i<0&&(i+=360);const o=(t+r)/2;let a=0;return 0!==n&&(a=n/(1-Math.abs(2*o-1))),new s.H(i,a,o)}function p(e,t=1){const r=(1-Math.abs(2*e.l-1))*e.s,s=r*(1-Math.abs(e.h/60%2-1)),n=e.l-r/2;let i=0,o=0,l=0;return e.h<60?(i=r,o=s,l=0):e.h<120?(i=s,o=r,l=0):e.h<180?(i=0,o=r,l=s):e.h<240?(i=0,o=s,l=r):e.h<300?(i=s,o=0,l=r):e.h<360&&(i=r,o=0,l=s),new a.h(i+n,o+n,l+n,t)}function b(e){const t=Math.max(e.r,e.g,e.b),r=t-Math.min(e.r,e.g,e.b);let s=0;0!==r&&(s=t===e.r?(e.g-e.b)/r%6*60:t===e.g?60*((e.b-e.r)/r+2):60*((e.r-e.g)/r+4)),s<0&&(s+=360);let i=0;return 0!==t&&(i=r/t),new n.T(s,i,t)}function v(e,t=1){const r=e.s*e.v,s=r*(1-Math.abs(e.h/60%2-1)),n=e.v-r;let i=0,o=0,l=0;return e.h<60?(i=r,o=s,l=0):e.h<120?(i=s,o=r,l=0):e.h<180?(i=0,o=r,l=s):e.h<240?(i=0,o=s,l=r):e.h<300?(i=s,o=0,l=r):e.h<360&&(i=r,o=0,l=s),new a.h(i+n,o+n,l+n,t)}function m(e){function t(e){return e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}const r=t(e.r),s=t(e.g),n=t(e.b),i=.4124564*r+.3575761*s+.1804375*n,o=.2126729*r+.7151522*s+.072175*n,a=.0193339*r+.119192*s+.9503041*n;return new l.x(i,o,a)}function y(e,t=1){function r(e){return e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055}const s=r(3.2404542*e.x-1.5371385*e.y-.4985314*e.z),n=r(-.969266*e.x+1.8760108*e.y+.041556*e.z),i=r(.0556434*e.x-.2040259*e.y+1.0572252*e.z);return new a.h(s,n,i,t)}function w(e){return function(e){function t(e){return e>i.R.epsilon?Math.pow(e,1/3):(i.R.kappa*e+16)/116}const r=t(e.x/l.x.whitePoint.x),s=t(e.y/l.x.whitePoint.y),n=116*s-16,o=500*(r-s),a=200*(s-t(e.z/l.x.whitePoint.z));return new i.R(n,o,a)}(m(e))}function C(e,t=1){return y(function(e){const t=(e.l+16)/116,r=t+e.a/500,s=t-e.b/200,n=Math.pow(r,3),o=Math.pow(t,3),a=Math.pow(s,3);let u=0;u=n>i.R.epsilon?n:(116*r-16)/i.R.kappa;let h=0;h=e.l>i.R.epsilon*i.R.kappa?o:e.l/i.R.kappa;let c=0;return c=a>i.R.epsilon?a:(116*s-16)/i.R.kappa,u=l.x.whitePoint.x*u,h=l.x.whitePoint.y*h,c=l.x.whitePoint.z*c,new l.x(u,h,c)}(e),t)}function F(e){return function(e){let t=0;(Math.abs(e.b)>.001||Math.abs(e.a)>.001)&&(t=(0,u.vi)(Math.atan2(e.b,e.a))),t<0&&(t+=360);const r=Math.sqrt(e.a*e.a+e.b*e.b);return new o.t(e.l,r,t)}(w(e))}function V(e,t=1){return C(function(e){let t=0,r=0;return 0!==e.h&&(t=Math.cos((0,u.Ht)(e.h))*e.c,r=Math.sin((0,u.Ht)(e.h))*e.c),new i.R(e.l,t,r)}(e),t)}},77727:(e,t,r)=>{r.d(t,{H:()=>n});var s=r(58902);class n{constructor(e,t,r){this.h=e,this.s=t,this.l=r}static fromObject(e){return!e||isNaN(e.h)||isNaN(e.s)||isNaN(e.l)?null:new n(e.h,e.s,e.l)}equalValue(e){return this.h===e.h&&this.s===e.s&&this.l===e.l}roundToPrecision(e){return new n((0,s.fZ)(this.h,e),(0,s.fZ)(this.s,e),(0,s.fZ)(this.l,e))}toObject(){return{h:this.h,s:this.s,l:this.l}}}},25700:(e,t,r)=>{r.d(t,{T:()=>n});var s=r(58902);class n{constructor(e,t,r){this.h=e,this.s=t,this.v=r}static fromObject(e){return!e||isNaN(e.h)||isNaN(e.s)||isNaN(e.v)?null:new n(e.h,e.s,e.v)}equalValue(e){return this.h===e.h&&this.s===e.s&&this.v===e.v}roundToPrecision(e){return new n((0,s.fZ)(this.h,e),(0,s.fZ)(this.s,e),(0,s.fZ)(this.v,e))}toObject(){return{h:this.h,s:this.s,v:this.v}}}},70656:(e,t,r)=>{r.d(t,{R:()=>n});var s=r(58902);class n{constructor(e,t,r){this.l=e,this.a=t,this.b=r}static fromObject(e){return!e||isNaN(e.l)||isNaN(e.a)||isNaN(e.b)?null:new n(e.l,e.a,e.b)}equalValue(e){return this.l===e.l&&this.a===e.a&&this.b===e.b}roundToPrecision(e){return new n((0,s.fZ)(this.l,e),(0,s.fZ)(this.a,e),(0,s.fZ)(this.b,e))}toObject(){return{l:this.l,a:this.a,b:this.b}}}n.epsilon=216/24389,n.kappa=24389/27},29087:(e,t,r)=>{r.d(t,{t:()=>n});var s=r(58902);class n{constructor(e,t,r){this.l=e,this.c=t,this.h=r}static fromObject(e){return!e||isNaN(e.l)||isNaN(e.c)||isNaN(e.h)?null:new n(e.l,e.c,e.h)}equalValue(e){return this.l===e.l&&this.c===e.c&&this.h===e.h}roundToPrecision(e){return new n((0,s.fZ)(this.l,e),(0,s.fZ)(this.c,e),(0,s.fZ)(this.h,e))}toObject(){return{l:this.l,c:this.c,h:this.h}}}},616:(e,t,r)=>{r.d(t,{h:()=>n});var s=r(58902);class n{constructor(e,t,r,s){this.r=e,this.g=t,this.b=r,this.a="number"!=typeof s||isNaN(s)?1:s}static fromObject(e){return!e||isNaN(e.r)||isNaN(e.g)||isNaN(e.b)?null:new n(e.r,e.g,e.b,e.a)}equalValue(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}toStringHexRGB(){return"#"+[this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringHexRGBA(){return this.toStringHexRGB()+this.formatHexValue(this.a)}toStringHexARGB(){return"#"+[this.a,this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringWebRGB(){return`rgb(${Math.round((0,s.cY)(this.r,0,255))},${Math.round((0,s.cY)(this.g,0,255))},${Math.round((0,s.cY)(this.b,0,255))})`}toStringWebRGBA(){return`rgba(${Math.round((0,s.cY)(this.r,0,255))},${Math.round((0,s.cY)(this.g,0,255))},${Math.round((0,s.cY)(this.b,0,255))},${(0,s.uZ)(this.a,0,1)})`}roundToPrecision(e){return new n((0,s.fZ)(this.r,e),(0,s.fZ)(this.g,e),(0,s.fZ)(this.b,e),(0,s.fZ)(this.a,e))}clamp(){return new n((0,s.uZ)(this.r,0,1),(0,s.uZ)(this.g,0,1),(0,s.uZ)(this.b,0,1),(0,s.uZ)(this.a,0,1))}toObject(){return{r:this.r,g:this.g,b:this.b,a:this.a}}formatHexValue(e){return(0,s.yi)((0,s.cY)(e,0,255))}}},82800:(e,t,r)=>{r.d(t,{x:()=>n});var s=r(58902);class n{constructor(e,t,r){this.x=e,this.y=t,this.z=r}static fromObject(e){return!e||isNaN(e.x)||isNaN(e.y)||isNaN(e.z)?null:new n(e.x,e.y,e.z)}equalValue(e){return this.x===e.x&&this.y===e.y&&this.z===e.z}roundToPrecision(e){return new n((0,s.fZ)(this.x,e),(0,s.fZ)(this.y,e),(0,s.fZ)(this.z,e))}toObject(){return{x:this.x,y:this.y,z:this.z}}}n.whitePoint=new n(.95047,1,1.08883)},58902:(e,t,r)=>{function s(e,t,r){return isNaN(e)||e<=t?t:e>=r?r:e}function n(e,t,r){return isNaN(e)||e<=t?0:e>=r?1:e/(r-t)}function i(e,t,r){return isNaN(e)?t:t+e*(r-t)}function o(e){return e*(Math.PI/180)}function a(e){return e*(180/Math.PI)}function l(e){const t=Math.round(s(e,0,255)).toString(16);return 1===t.length?"0"+t:t}function u(e,t,r){return isNaN(e)||e<=0?t:e>=1?r:t+e*(r-t)}function h(e,t,r){if(e<=0)return t%360;if(e>=1)return r%360;const s=(t-r+360)%360;return s<=(r-t+360)%360?(t-s*e+360)%360:(t+s*e+360)%360}function c(e,t){const r=Math.pow(10,t);return Math.round(e*r)/r}r.d(t,{AG:()=>h,Fv:()=>n,Ht:()=>o,cY:()=>i,fZ:()=>c,t7:()=>u,uZ:()=>s,vi:()=>a,yi:()=>l}),Math.PI},93484:(e,t,r)=>{r.d(t,{lu:()=>c,in:()=>h});var s=r(616),n=r(58902);const i={aliceblue:{r:.941176,g:.972549,b:1},antiquewhite:{r:.980392,g:.921569,b:.843137},aqua:{r:0,g:1,b:1},aquamarine:{r:.498039,g:1,b:.831373},azure:{r:.941176,g:1,b:1},beige:{r:.960784,g:.960784,b:.862745},bisque:{r:1,g:.894118,b:.768627},black:{r:0,g:0,b:0},blanchedalmond:{r:1,g:.921569,b:.803922},blue:{r:0,g:0,b:1},blueviolet:{r:.541176,g:.168627,b:.886275},brown:{r:.647059,g:.164706,b:.164706},burlywood:{r:.870588,g:.721569,b:.529412},cadetblue:{r:.372549,g:.619608,b:.627451},chartreuse:{r:.498039,g:1,b:0},chocolate:{r:.823529,g:.411765,b:.117647},coral:{r:1,g:.498039,b:.313725},cornflowerblue:{r:.392157,g:.584314,b:.929412},cornsilk:{r:1,g:.972549,b:.862745},crimson:{r:.862745,g:.078431,b:.235294},cyan:{r:0,g:1,b:1},darkblue:{r:0,g:0,b:.545098},darkcyan:{r:0,g:.545098,b:.545098},darkgoldenrod:{r:.721569,g:.52549,b:.043137},darkgray:{r:.662745,g:.662745,b:.662745},darkgreen:{r:0,g:.392157,b:0},darkgrey:{r:.662745,g:.662745,b:.662745},darkkhaki:{r:.741176,g:.717647,b:.419608},darkmagenta:{r:.545098,g:0,b:.545098},darkolivegreen:{r:.333333,g:.419608,b:.184314},darkorange:{r:1,g:.54902,b:0},darkorchid:{r:.6,g:.196078,b:.8},darkred:{r:.545098,g:0,b:0},darksalmon:{r:.913725,g:.588235,b:.478431},darkseagreen:{r:.560784,g:.737255,b:.560784},darkslateblue:{r:.282353,g:.239216,b:.545098},darkslategray:{r:.184314,g:.309804,b:.309804},darkslategrey:{r:.184314,g:.309804,b:.309804},darkturquoise:{r:0,g:.807843,b:.819608},darkviolet:{r:.580392,g:0,b:.827451},deeppink:{r:1,g:.078431,b:.576471},deepskyblue:{r:0,g:.74902,b:1},dimgray:{r:.411765,g:.411765,b:.411765},dimgrey:{r:.411765,g:.411765,b:.411765},dodgerblue:{r:.117647,g:.564706,b:1},firebrick:{r:.698039,g:.133333,b:.133333},floralwhite:{r:1,g:.980392,b:.941176},forestgreen:{r:.133333,g:.545098,b:.133333},fuchsia:{r:1,g:0,b:1},gainsboro:{r:.862745,g:.862745,b:.862745},ghostwhite:{r:.972549,g:.972549,b:1},gold:{r:1,g:.843137,b:0},goldenrod:{r:.854902,g:.647059,b:.12549},gray:{r:.501961,g:.501961,b:.501961},green:{r:0,g:.501961,b:0},greenyellow:{r:.678431,g:1,b:.184314},grey:{r:.501961,g:.501961,b:.501961},honeydew:{r:.941176,g:1,b:.941176},hotpink:{r:1,g:.411765,b:.705882},indianred:{r:.803922,g:.360784,b:.360784},indigo:{r:.294118,g:0,b:.509804},ivory:{r:1,g:1,b:.941176},khaki:{r:.941176,g:.901961,b:.54902},lavender:{r:.901961,g:.901961,b:.980392},lavenderblush:{r:1,g:.941176,b:.960784},lawngreen:{r:.486275,g:.988235,b:0},lemonchiffon:{r:1,g:.980392,b:.803922},lightblue:{r:.678431,g:.847059,b:.901961},lightcoral:{r:.941176,g:.501961,b:.501961},lightcyan:{r:.878431,g:1,b:1},lightgoldenrodyellow:{r:.980392,g:.980392,b:.823529},lightgray:{r:.827451,g:.827451,b:.827451},lightgreen:{r:.564706,g:.933333,b:.564706},lightgrey:{r:.827451,g:.827451,b:.827451},lightpink:{r:1,g:.713725,b:.756863},lightsalmon:{r:1,g:.627451,b:.478431},lightseagreen:{r:.12549,g:.698039,b:.666667},lightskyblue:{r:.529412,g:.807843,b:.980392},lightslategray:{r:.466667,g:.533333,b:.6},lightslategrey:{r:.466667,g:.533333,b:.6},lightsteelblue:{r:.690196,g:.768627,b:.870588},lightyellow:{r:1,g:1,b:.878431},lime:{r:0,g:1,b:0},limegreen:{r:.196078,g:.803922,b:.196078},linen:{r:.980392,g:.941176,b:.901961},magenta:{r:1,g:0,b:1},maroon:{r:.501961,g:0,b:0},mediumaquamarine:{r:.4,g:.803922,b:.666667},mediumblue:{r:0,g:0,b:.803922},mediumorchid:{r:.729412,g:.333333,b:.827451},mediumpurple:{r:.576471,g:.439216,b:.858824},mediumseagreen:{r:.235294,g:.701961,b:.443137},mediumslateblue:{r:.482353,g:.407843,b:.933333},mediumspringgreen:{r:0,g:.980392,b:.603922},mediumturquoise:{r:.282353,g:.819608,b:.8},mediumvioletred:{r:.780392,g:.082353,b:.521569},midnightblue:{r:.098039,g:.098039,b:.439216},mintcream:{r:.960784,g:1,b:.980392},mistyrose:{r:1,g:.894118,b:.882353},moccasin:{r:1,g:.894118,b:.709804},navajowhite:{r:1,g:.870588,b:.678431},navy:{r:0,g:0,b:.501961},oldlace:{r:.992157,g:.960784,b:.901961},olive:{r:.501961,g:.501961,b:0},olivedrab:{r:.419608,g:.556863,b:.137255},orange:{r:1,g:.647059,b:0},orangered:{r:1,g:.270588,b:0},orchid:{r:.854902,g:.439216,b:.839216},palegoldenrod:{r:.933333,g:.909804,b:.666667},palegreen:{r:.596078,g:.984314,b:.596078},paleturquoise:{r:.686275,g:.933333,b:.933333},palevioletred:{r:.858824,g:.439216,b:.576471},papayawhip:{r:1,g:.937255,b:.835294},peachpuff:{r:1,g:.854902,b:.72549},peru:{r:.803922,g:.521569,b:.247059},pink:{r:1,g:.752941,b:.796078},plum:{r:.866667,g:.627451,b:.866667},powderblue:{r:.690196,g:.878431,b:.901961},purple:{r:.501961,g:0,b:.501961},red:{r:1,g:0,b:0},rosybrown:{r:.737255,g:.560784,b:.560784},royalblue:{r:.254902,g:.411765,b:.882353},saddlebrown:{r:.545098,g:.270588,b:.07451},salmon:{r:.980392,g:.501961,b:.447059},sandybrown:{r:.956863,g:.643137,b:.376471},seagreen:{r:.180392,g:.545098,b:.341176},seashell:{r:1,g:.960784,b:.933333},sienna:{r:.627451,g:.321569,b:.176471},silver:{r:.752941,g:.752941,b:.752941},skyblue:{r:.529412,g:.807843,b:.921569},slateblue:{r:.415686,g:.352941,b:.803922},slategray:{r:.439216,g:.501961,b:.564706},slategrey:{r:.439216,g:.501961,b:.564706},snow:{r:1,g:.980392,b:.980392},springgreen:{r:0,g:1,b:.498039},steelblue:{r:.27451,g:.509804,b:.705882},tan:{r:.823529,g:.705882,b:.54902},teal:{r:0,g:.501961,b:.501961},thistle:{r:.847059,g:.74902,b:.847059},tomato:{r:1,g:.388235,b:.278431},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:.25098,g:.878431,b:.815686},violet:{r:.933333,g:.509804,b:.933333},wheat:{r:.960784,g:.870588,b:.701961},white:{r:1,g:1,b:1},whitesmoke:{r:.960784,g:.960784,b:.960784},yellow:{r:1,g:1,b:0},yellowgreen:{r:.603922,g:.803922,b:.196078}},o=/^rgb\(\s*((?:(?:25[0-5]|2[0-4]\d|1\d\d|\d{1,2})\s*,\s*){2}(?:25[0-5]|2[0-4]\d|1\d\d|\d{1,2})\s*)\)$/i,a=/^rgba\(\s*((?:(?:25[0-5]|2[0-4]\d|1\d\d|\d{1,2})\s*,\s*){3}(?:0|1|0?\.\d*)\s*)\)$/i,l=/^#((?:[0-9a-f]{6}|[0-9a-f]{3}))$/i,u=/^#((?:[0-9a-f]{8}|[0-9a-f]{4}))$/i;function h(e){const t=l.exec(e);if(null===t)return null;let r=t[1];if(3===r.length){const e=r.charAt(0),t=r.charAt(1),s=r.charAt(2);r=e.concat(e,t,t,s,s)}const i=parseInt(r,16);return isNaN(i)?null:new s.h((0,n.Fv)((16711680&i)>>>16,0,255),(0,n.Fv)((65280&i)>>>8,0,255),(0,n.Fv)(255&i,0,255),1)}function c(e){const t=e.toLowerCase();return function(e){return l.test(e)}(t)?h(t):function(e){return function(e){return u.test(e)}(e)}(t)?function(e){const t=u.exec(e);if(null===t)return null;let r=t[1];if(4===r.length){const e=r.charAt(0),t=r.charAt(1),s=r.charAt(2),n=r.charAt(3);r=e.concat(e,t,t,s,s,n,n)}const i=parseInt(r,16);return isNaN(i)?null:new s.h((0,n.Fv)((16711680&i)>>>16,0,255),(0,n.Fv)((65280&i)>>>8,0,255),(0,n.Fv)(255&i,0,255),(0,n.Fv)((4278190080&i)>>>24,0,255))}(t):function(e){return o.test(e)}(t)?function(e){const t=o.exec(e);if(null===t)return null;const r=t[1].split(",");return new s.h((0,n.Fv)(Number(r[0]),0,255),(0,n.Fv)(Number(r[1]),0,255),(0,n.Fv)(Number(r[2]),0,255),1)}(t):function(e){return a.test(e)}(t)?function(e){const t=a.exec(e);if(null===t)return null;const r=t[1].split(",");return 4===r.length?new s.h((0,n.Fv)(Number(r[0]),0,255),(0,n.Fv)(Number(r[1]),0,255),(0,n.Fv)(Number(r[2]),0,255),Number(r[3])):null}(t):function(e){return i.hasOwnProperty(e)}(t)?function(e){const t=i[e.toLowerCase()];return t?new s.h(t.r,t.g,t.b,t.hasOwnProperty("a")?t.a:void 0):null}(t):null}},98332:(e,t,r)=>{r.d(t,{Ax:()=>o,Id:()=>l,Lj:()=>h,so:()=>u});var s=r(92221),n=r(91211),i=r(40478);const o=Object.freeze({locate:(0,i.j8)()}),a={toView:e=>e?"true":"false",fromView:e=>null!=e&&"false"!==e&&!1!==e&&0!==e},l={toView(e){if(null==e)return null;const t=1*e;return isNaN(t)?null:t.toString()},fromView(e){if(null==e)return null;const t=1*e;return isNaN(t)?null:t}};class u{constructor(e,t,r=t.toLowerCase(),s="reflect",n){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=r,this.mode=s,this.converter=n,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,"boolean"===s&&void 0===n&&(this.converter=a)}setValue(e,t){const r=e[this.fieldName],s=this.converter;void 0!==s&&(t=s.fromView(t)),r!==t&&(e[this.fieldName]=t,this.tryReflectToAttribute(e),this.hasCallback&&e[this.callbackName](r,t),e.$fastController.notify(this.name))}getValue(e){return s.y$.track(e,this.name),e[this.fieldName]}onAttributeChangedCallback(e,t){this.guards.has(e)||(this.guards.add(e),this.setValue(e,t),this.guards.delete(e))}tryReflectToAttribute(e){const t=this.mode,r=this.guards;r.has(e)||"fromView"===t||n.SO.queueUpdate((()=>{r.add(e);const s=e[this.fieldName];switch(t){case"reflect":const t=this.converter;n.SO.setAttribute(e,this.attribute,void 0!==t?t.toView(s):s);break;case"boolean":n.SO.setBooleanAttribute(e,this.attribute,s)}r.delete(e)}))}static collect(e,...t){const r=[];t.push(o.locate(e));for(let s=0,n=t.length;s<n;++s){const n=t[s];if(void 0!==n)for(let t=0,s=n.length;t<s;++t){const s=n[t];"string"==typeof s?r.push(new u(e,s)):r.push(new u(e,s.property,s.attribute,s.mode,s.converter))}}return r}}function h(e,t){let r;function s(e,t){arguments.length>1&&(r.property=t),o.locate(e.constructor).push(r)}return arguments.length>1?(r={},void s(e,t)):(r=void 0===e?{}:e,s)}},74855:(e,t,r)=>{r.d(t,{W:()=>h});var s=r(40478),n=r(92221),i=r(60956),o=r(98332);const a={mode:"open"},l={},u=s.Bo.getById(4,(()=>{const e=new Map;return Object.freeze({register:t=>!e.has(t.type)&&(e.set(t.type,t),!0),getByType:t=>e.get(t)})}));class h{constructor(e,t=e.definition){"string"==typeof t&&(t={name:t}),this.type=e,this.name=t.name,this.template=t.template;const r=o.so.collect(e,t.attributes),s=new Array(r.length),n={},u={};for(let e=0,t=r.length;e<t;++e){const t=r[e];s[e]=t.attribute,n[t.name]=t,u[t.attribute]=t}this.attributes=r,this.observedAttributes=s,this.propertyLookup=n,this.attributeLookup=u,this.shadowOptions=void 0===t.shadowOptions?a:null===t.shadowOptions?void 0:Object.assign(Object.assign({},a),t.shadowOptions),this.elementOptions=void 0===t.elementOptions?l:Object.assign(Object.assign({},l),t.elementOptions),this.styles=void 0===t.styles?void 0:Array.isArray(t.styles)?i.XL.create(t.styles):t.styles instanceof i.XL?t.styles:i.XL.create([t.styles])}get isDefined(){return!!u.getByType(this.type)}define(e=customElements){const t=this.type;if(u.register(this)){const e=this.attributes,r=t.prototype;for(let t=0,s=e.length;t<s;++t)n.y$.defineProperty(r,e[t]);Reflect.defineProperty(t,"observedAttributes",{value:this.observedAttributes,enumerable:!0})}return e.get(this.name)||e.define(this.name,t,this.elementOptions),this}}h.forType=u.getByType},58930:(e,t,r)=>{r.d(t,{H:()=>g});var s=r(91211),n=r(8111),i=r(92221),o=r(74855);const a=new WeakMap,l={bubbles:!0,composed:!0,cancelable:!0};function u(e){return e.shadowRoot||a.get(e)||null}class h extends n.A{constructor(e,t){super(e),this.boundObservables=null,this.behaviors=null,this.needsInitialization=!0,this._template=null,this._styles=null,this._isConnected=!1,this.$fastController=this,this.view=null,this.element=e,this.definition=t;const r=t.shadowOptions;if(void 0!==r){const t=e.attachShadow(r);"closed"===r.mode&&a.set(e,t)}const s=i.y$.getAccessors(e);if(s.length>0){const t=this.boundObservables=Object.create(null);for(let r=0,n=s.length;r<n;++r){const n=s[r].name,i=e[n];void 0!==i&&(delete e[n],t[n]=i)}}}get isConnected(){return i.y$.track(this,"isConnected"),this._isConnected}setIsConnected(e){this._isConnected=e,i.y$.notify(this,"isConnected")}get template(){return this._template}set template(e){this._template!==e&&(this._template=e,this.needsInitialization||this.renderTemplate(e))}get styles(){return this._styles}set styles(e){this._styles!==e&&(null!==this._styles&&this.removeStyles(this._styles),this._styles=e,this.needsInitialization||null===e||this.addStyles(e))}addStyles(e){const t=u(this.element)||this.element.getRootNode();if(e instanceof HTMLStyleElement)t.append(e);else if(!e.isAttachedTo(t)){const r=e.behaviors;e.addStylesTo(t),null!==r&&this.addBehaviors(r)}}removeStyles(e){const t=u(this.element)||this.element.getRootNode();if(e instanceof HTMLStyleElement)t.removeChild(e);else if(e.isAttachedTo(t)){const r=e.behaviors;e.removeStylesFrom(t),null!==r&&this.removeBehaviors(r)}}addBehaviors(e){const t=this.behaviors||(this.behaviors=new Map),r=e.length,s=[];for(let n=0;n<r;++n){const r=e[n];t.has(r)?t.set(r,t.get(r)+1):(t.set(r,1),s.push(r))}if(this._isConnected){const e=this.element;for(let t=0;t<s.length;++t)s[t].bind(e,i.Wp)}}removeBehaviors(e,t=!1){const r=this.behaviors;if(null===r)return;const s=e.length,n=[];for(let i=0;i<s;++i){const s=e[i];if(r.has(s)){const e=r.get(s)-1;0===e||t?r.delete(s)&&n.push(s):r.set(s,e)}}if(this._isConnected){const e=this.element;for(let t=0;t<n.length;++t)n[t].unbind(e)}}onConnectedCallback(){if(this._isConnected)return;const e=this.element;this.needsInitialization?this.finishInitialization():null!==this.view&&this.view.bind(e,i.Wp);const t=this.behaviors;if(null!==t)for(const[r]of t)r.bind(e,i.Wp);this.setIsConnected(!0)}onDisconnectedCallback(){if(!this._isConnected)return;this.setIsConnected(!1);const e=this.view;null!==e&&e.unbind();const t=this.behaviors;if(null!==t){const e=this.element;for(const[r]of t)r.unbind(e)}}onAttributeChangedCallback(e,t,r){const s=this.definition.attributeLookup[e];void 0!==s&&s.onAttributeChangedCallback(this.element,r)}emit(e,t,r){return!!this._isConnected&&this.element.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},l),r)))}finishInitialization(){const e=this.element,t=this.boundObservables;if(null!==t){const r=Object.keys(t);for(let s=0,n=r.length;s<n;++s){const n=r[s];e[n]=t[n]}this.boundObservables=null}const r=this.definition;null===this._template&&(this.element.resolveTemplate?this._template=this.element.resolveTemplate():r.template&&(this._template=r.template||null)),null!==this._template&&this.renderTemplate(this._template),null===this._styles&&(this.element.resolveStyles?this._styles=this.element.resolveStyles():r.styles&&(this._styles=r.styles||null)),null!==this._styles&&this.addStyles(this._styles),this.needsInitialization=!1}renderTemplate(e){const t=this.element,r=u(t)||t;null!==this.view?(this.view.dispose(),this.view=null):this.needsInitialization||s.SO.removeChildNodes(r),e&&(this.view=e.render(t,r,t))}static forCustomElement(e){const t=e.$fastController;if(void 0!==t)return t;const r=o.W.forType(e.constructor);if(void 0===r)throw new Error("Missing FASTElement definition.");return e.$fastController=new h(e,r)}}function c(e){return class extends e{constructor(){super(),h.forCustomElement(this)}$emit(e,t,r){return this.$fastController.emit(e,t,r)}connectedCallback(){this.$fastController.onConnectedCallback()}disconnectedCallback(){this.$fastController.onDisconnectedCallback()}attributeChangedCallback(e,t,r){this.$fastController.onAttributeChangedCallback(e,t,r)}}}const g=Object.assign(c(HTMLElement),{from:e=>c(e),define:(e,t)=>new o.W(e,t).define().type})},91211:(e,t,r)=>{r.d(t,{SO:()=>h,Yl:()=>u,pc:()=>l});var s=r(40478);const n=s.P3.FAST.getById(1,(()=>{const e=[],t=[];function r(){if(t.length)throw t.shift()}function n(e){try{e.call()}catch(e){t.push(e),setTimeout(r,0)}}function i(){let t=0;for(;t<e.length;)if(n(e[t]),t++,t>1024){for(let r=0,s=e.length-t;r<s;r++)e[r]=e[r+t];e.length-=t,t=0}e.length=0}return Object.freeze({enqueue:function(t){e.length<1&&s.P3.requestAnimationFrame(i),e.push(t)},process:i})})),i=s.P3.trustedTypes.createPolicy("fast-html",{createHTML:e=>e});let o=i;const a=`fast-${Math.random().toString(36).substring(2,8)}`,l=`${a}{`,u=`}${a}`,h=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(e){if(o!==i)throw new Error("The HTML policy can only be set once.");o=e},createHTML:e=>o.createHTML(e),isMarker:e=>e&&8===e.nodeType&&e.data.startsWith(a),extractDirectiveIndexFromMarker:e=>parseInt(e.data.replace(`${a}:`,"")),createInterpolationPlaceholder:e=>`${l}${e}${u}`,createCustomAttributePlaceholder(e,t){return`${e}="${this.createInterpolationPlaceholder(t)}"`},createBlockPlaceholder:e=>`\x3c!--${a}:${e}--\x3e`,queueUpdate:n.enqueue,processUpdates:n.process,nextUpdate:()=>new Promise(n.enqueue),setAttribute(e,t,r){null==r?e.removeAttribute(t):e.setAttribute(t,r)},setBooleanAttribute(e,t,r){r?e.setAttribute(t,""):e.removeAttribute(t)},removeChildNodes(e){for(let t=e.firstChild;null!==t;t=e.firstChild)e.removeChild(t)},createTemplateWalker:e=>document.createTreeWalker(e,133,null,!1)})},8111:(e,t,r)=>{r.d(t,{A:()=>n,q:()=>s});class s{constructor(e,t){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=e,this.sub1=t}has(e){return void 0===this.spillover?this.sub1===e||this.sub2===e:-1!==this.spillover.indexOf(e)}subscribe(e){const t=this.spillover;if(void 0===t){if(this.has(e))return;if(void 0===this.sub1)return void(this.sub1=e);if(void 0===this.sub2)return void(this.sub2=e);this.spillover=[this.sub1,this.sub2,e],this.sub1=void 0,this.sub2=void 0}else-1===t.indexOf(e)&&t.push(e)}unsubscribe(e){const t=this.spillover;if(void 0===t)this.sub1===e?this.sub1=void 0:this.sub2===e&&(this.sub2=void 0);else{const r=t.indexOf(e);-1!==r&&t.splice(r,1)}}notify(e){const t=this.spillover,r=this.source;if(void 0===t){const t=this.sub1,s=this.sub2;void 0!==t&&t.handleChange(r,e),void 0!==s&&s.handleChange(r,e)}else for(let s=0,n=t.length;s<n;++s)t[s].handleChange(r,e)}}class n{constructor(e){this.subscribers={},this.sourceSubscribers=null,this.source=e}notify(e){var t;const r=this.subscribers[e];void 0!==r&&r.notify(e),null===(t=this.sourceSubscribers)||void 0===t||t.notify(e)}subscribe(e,t){var r;if(t){let r=this.subscribers[t];void 0===r&&(this.subscribers[t]=r=new s(this.source)),r.subscribe(e)}else this.sourceSubscribers=null!==(r=this.sourceSubscribers)&&void 0!==r?r:new s(this.source),this.sourceSubscribers.subscribe(e)}unsubscribe(e,t){var r;if(t){const r=this.subscribers[t];void 0!==r&&r.unsubscribe(e)}else null===(r=this.sourceSubscribers)||void 0===r||r.unsubscribe(e)}}},92221:(e,t,r)=>{r.d(t,{LO:()=>a,Wp:()=>h,rd:()=>u,y$:()=>o});var s=r(91211),n=r(40478),i=r(8111);const o=n.Bo.getById(2,(()=>{const e=/(:|&&|\|\||if)/,t=new WeakMap,r=s.SO.queueUpdate;let o,a=e=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function l(e){let r=e.$fastController||t.get(e);return void 0===r&&(Array.isArray(e)?r=a(e):t.set(e,r=new i.A(e))),r}const u=(0,n.j8)();class h{constructor(e){this.name=e,this.field=`_${e}`,this.callback=`${e}Changed`}getValue(e){return void 0!==o&&o.watch(e,this.name),e[this.field]}setValue(e,t){const r=this.field,s=e[r];if(s!==t){e[r]=t;const n=e[this.callback];"function"==typeof n&&n.call(e,s,t),l(e).notify(this.name)}}}class c extends i.q{constructor(e,t,r=!1){super(e,t),this.binding=e,this.isVolatileBinding=r,this.needsRefresh=!0,this.needsQueue=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}observe(e,t){this.needsRefresh&&null!==this.last&&this.disconnect();const r=o;o=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;const s=this.binding(e,t);return o=r,s}disconnect(){if(null!==this.last){let e=this.first;for(;void 0!==e;)e.notifier.unsubscribe(this,e.propertyName),e=e.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(e,t){const r=this.last,s=l(e),n=null===r?this.first:{};if(n.propertySource=e,n.propertyName=t,n.notifier=s,s.subscribe(this,t),null!==r){if(!this.needsRefresh){let t;o=void 0,t=r.propertySource[r.propertyName],o=this,e===t&&(this.needsRefresh=!0)}r.next=n}this.last=n}handleChange(){this.needsQueue&&(this.needsQueue=!1,r(this))}call(){null!==this.last&&(this.needsQueue=!0,this.notify(this))}records(){let e=this.first;return{next:()=>{const t=e;return void 0===t?{value:void 0,done:!0}:(e=e.next,{value:t,done:!1})},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(e){a=e},getNotifier:l,track(e,t){void 0!==o&&o.watch(e,t)},trackVolatile(){void 0!==o&&(o.needsRefresh=!0)},notify(e,t){l(e).notify(t)},defineProperty(e,t){"string"==typeof t&&(t=new h(t)),u(e).push(t),Reflect.defineProperty(e,t.name,{enumerable:!0,get:function(){return t.getValue(this)},set:function(e){t.setValue(this,e)}})},getAccessors:u,binding(e,t,r=this.isVolatileBinding(e)){return new c(e,t,r)},isVolatileBinding:t=>e.test(t.toString())})}));function a(e,t){o.defineProperty(e,t)}const l=n.Bo.getById(3,(()=>{let e=null;return{get:()=>e,set(t){e=t}}}));class u{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return l.get()}get isEven(){return this.index%2==0}get isOdd(){return this.index%2!=0}get isFirst(){return 0===this.index}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}static setEvent(e){l.set(e)}}o.defineProperty(u.prototype,"index"),o.defineProperty(u.prototype,"length");const h=Object.seal(new u)},40478:(e,t,r)=>{r.d(t,{Bo:()=>i,P3:()=>s,j8:()=>a,ow:()=>o});const s=function(){if("undefined"!=typeof globalThis)return globalThis;if(void 0!==r.g)return r.g;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;try{return new Function("return this")()}catch(e){return{}}}();void 0===s.trustedTypes&&(s.trustedTypes={createPolicy:(e,t)=>t});const n={configurable:!1,enumerable:!1,writable:!1};void 0===s.FAST&&Reflect.defineProperty(s,"FAST",Object.assign({value:Object.create(null)},n));const i=s.FAST;if(void 0===i.getById){const e=Object.create(null);Reflect.defineProperty(i,"getById",Object.assign({value(t,r){let s=e[t];return void 0===s&&(s=r?e[t]=r():null),s}},n))}const o=Object.freeze([]);function a(){const e=new WeakMap;return function(t){let r=e.get(t);if(void 0===r){let s=Reflect.getPrototypeOf(t);for(;void 0===r&&null!==s;)r=e.get(s),s=Reflect.getPrototypeOf(s);r=void 0===r?[]:r.slice(0),e.set(t,r)}return r}}},37202:(e,t,r)=>{r.d(t,{v:()=>s});class s{createCSS(){return""}createBehavior(){}}},12634:(e,t,r)=>{r.d(t,{i:()=>o,j:()=>l});var s=r(37202),n=r(60956);function i(e,t){const r=[];let i="";const o=[];for(let a=0,l=e.length-1;a<l;++a){i+=e[a];let l=t[a];if(l instanceof s.v){const e=l.createBehavior();l=l.createCSS(),e&&o.push(e)}l instanceof n.XL||l instanceof CSSStyleSheet?(""!==i.trim()&&(r.push(i),i=""),r.push(l)):i+=l}return i+=e[e.length-1],""!==i.trim()&&r.push(i),{styles:r,behaviors:o}}function o(e,...t){const{styles:r,behaviors:s}=i(e,t),o=n.XL.create(r);return s.length&&o.withBehaviors(...s),o}class a extends s.v{constructor(e,t){super(),this.behaviors=t,this.css="";const r=e.reduce(((e,t)=>("string"==typeof t?this.css+=t:e.push(t),e)),[]);r.length&&(this.styles=n.XL.create(r))}createBehavior(){return this}createCSS(){return this.css}bind(e){this.styles&&e.$fastController.addStyles(this.styles),this.behaviors.length&&e.$fastController.addBehaviors(this.behaviors)}unbind(e){this.styles&&e.$fastController.removeStyles(this.styles),this.behaviors.length&&e.$fastController.removeBehaviors(this.behaviors)}}function l(e,...t){const{styles:r,behaviors:s}=i(e,t);return new a(r,s)}},60956:(e,t,r)=>{r.d(t,{XL:()=>n});var s=r(91211);class n{constructor(){this.targets=new WeakSet}addStylesTo(e){this.targets.add(e)}removeStylesFrom(e){this.targets.delete(e)}isAttachedTo(e){return this.targets.has(e)}withBehaviors(...e){return this.behaviors=null===this.behaviors?e:this.behaviors.concat(e),this}}function i(e){return e.map((e=>e instanceof n?i(e.styles):[e])).reduce(((e,t)=>e.concat(t)),[])}function o(e){return e.map((e=>e instanceof n?e.behaviors:null)).reduce(((e,t)=>null===t?e:(null===e&&(e=[]),e.concat(t))),null)}n.create=(()=>{if(s.SO.supportsAdoptedStyleSheets){const e=new Map;return t=>new u(t,e)}return e=>new c(e)})();let a=(e,t)=>{e.adoptedStyleSheets=[...e.adoptedStyleSheets,...t]},l=(e,t)=>{e.adoptedStyleSheets=e.adoptedStyleSheets.filter((e=>-1===t.indexOf(e)))};if(s.SO.supportsAdoptedStyleSheets)try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),a=(e,t)=>{e.adoptedStyleSheets.push(...t)},l=(e,t)=>{for(const r of t){const t=e.adoptedStyleSheets.indexOf(r);-1!==t&&e.adoptedStyleSheets.splice(t,1)}}}catch(e){}class u extends n{constructor(e,t){super(),this.styles=e,this.styleSheetCache=t,this._styleSheets=void 0,this.behaviors=o(e)}get styleSheets(){if(void 0===this._styleSheets){const e=this.styles,t=this.styleSheetCache;this._styleSheets=i(e).map((e=>{if(e instanceof CSSStyleSheet)return e;let r=t.get(e);return void 0===r&&(r=new CSSStyleSheet,r.replaceSync(e),t.set(e,r)),r}))}return this._styleSheets}addStylesTo(e){a(e,this.styleSheets),super.addStylesTo(e)}removeStylesFrom(e){l(e,this.styleSheets),super.removeStylesFrom(e)}}let h=0;class c extends n{constructor(e){super(),this.styles=e,this.behaviors=null,this.behaviors=o(e),this.styleSheets=i(e),this.styleClass="fast-style-class-"+ ++h}addStylesTo(e){const t=this.styleSheets,r=this.styleClass;e=this.normalizeTarget(e);for(let s=0;s<t.length;s++){const n=document.createElement("style");n.innerHTML=t[s],n.className=r,e.append(n)}super.addStylesTo(e)}removeStylesFrom(e){const t=(e=this.normalizeTarget(e)).querySelectorAll(`.${this.styleClass}`);for(let r=0,s=t.length;r<s;++r)e.removeChild(t[r]);super.removeStylesFrom(e)}isAttachedTo(e){return super.isAttachedTo(this.normalizeTarget(e))}normalizeTarget(e){return e===document?document.body:e}}},58545:(e,t,r)=>{r.d(t,{p:()=>o});var s=r(82683),n=r(41681);class i extends n.x{constructor(e,t){super(e,t),this.observer=null,t.childList=!0}observe(){null===this.observer&&(this.observer=new MutationObserver(this.handleEvent.bind(this))),this.observer.observe(this.target,this.options)}disconnect(){this.observer.disconnect()}getNodes(){return"subtree"in this.options?Array.from(this.target.querySelectorAll(this.options.selector)):Array.from(this.target.childNodes)}}function o(e){return"string"==typeof e&&(e={property:e}),new s.ON("fast-children",i,e)}},82683:(e,t,r)=>{r.d(t,{ON:()=>o,d$:()=>i,m0:()=>n});var s=r(91211);class n{constructor(){this.targetIndex=0}}class i extends n{constructor(){super(...arguments),this.createPlaceholder=s.SO.createInterpolationPlaceholder}}class o extends n{constructor(e,t,r){super(),this.name=e,this.behavior=t,this.options=r}createPlaceholder(e){return s.SO.createCustomAttributePlaceholder(this.name,e)}createBehavior(e){return new this.behavior(e,this.options)}}},41681:(e,t,r)=>{r.d(t,{R:()=>i,x:()=>o});var s=r(92221),n=r(40478);function i(e){return e?function(t,r,s){return 1===t.nodeType&&t.matches(e)}:function(e,t,r){return 1===e.nodeType}}class o{constructor(e,t){this.target=e,this.options=t,this.source=null}bind(e){const t=this.options.property;this.shouldUpdate=s.y$.getAccessors(e).some((e=>e.name===t)),this.source=e,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(n.ow),this.source=null,this.shouldUpdate&&this.disconnect()}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let e=this.getNodes();return void 0!==this.options.filter&&(e=e.filter(this.options.filter)),e}updateTarget(e){this.source[this.options.property]=e}}},62564:(e,t,r)=>{r.d(t,{i:()=>i});var s=r(82683);class n{constructor(e,t){this.target=e,this.propertyName=t}bind(e){e[this.propertyName]=this.target}unbind(){}}function i(e){return new s.ON("fast-ref",n,e)}},17832:(e,t,r)=>{r.d(t,{Q:()=>o});var s=r(82683),n=r(41681);class i extends n.x{constructor(e,t){super(e,t)}observe(){this.target.addEventListener("slotchange",this)}disconnect(){this.target.removeEventListener("slotchange",this)}getNodes(){return this.target.assignedNodes(this.options)}}function o(e){return"string"==typeof e&&(e={property:e}),new s.ON("fast-slotted",i,e)}},25269:(e,t,r)=>{r.d(t,{d:()=>P});var s=r(91211),n=r(92221),i=r(82683);function o(e,t){this.source=e,this.context=t,null===this.bindingObserver&&(this.bindingObserver=n.y$.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(e,t))}function a(e,t){this.source=e,this.context=t,this.target.addEventListener(this.targetName,this)}function l(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function u(){this.bindingObserver.disconnect(),this.source=null,this.context=null;const e=this.target.$fastView;void 0!==e&&e.isComposed&&(e.unbind(),e.needsBindOnly=!0)}function h(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function c(e){s.SO.setAttribute(this.target,this.targetName,e)}function g(e){s.SO.setBooleanAttribute(this.target,this.targetName,e)}function d(e){if(null==e&&(e=""),e.create){this.target.textContent="";let t=this.target.$fastView;void 0===t?t=e.create():this.target.$fastTemplate!==e&&(t.isComposed&&(t.remove(),t.unbind()),t=e.create()),t.isComposed?t.needsBindOnly&&(t.needsBindOnly=!1,t.bind(this.source,this.context)):(t.isComposed=!0,t.bind(this.source,this.context),t.insertBefore(this.target),this.target.$fastView=t,this.target.$fastTemplate=e)}else{const t=this.target.$fastView;void 0!==t&&t.isComposed&&(t.isComposed=!1,t.remove(),t.needsBindOnly?t.needsBindOnly=!1:t.unbind()),this.target.textContent=e}}function f(e){this.target[this.targetName]=e}function p(e){const t=this.classVersions||Object.create(null),r=this.target;let s=this.version||0;if(null!=e&&e.length){const n=e.split(/\s+/);for(let e=0,i=n.length;e<i;++e){const i=n[e];""!==i&&(t[i]=s,r.classList.add(i))}}if(this.classVersions=t,this.version=s+1,0!==s){s-=1;for(const e in t)t[e]===s&&r.classList.remove(e)}}class b extends i.d${constructor(e){super(),this.binding=e,this.bind=o,this.unbind=l,this.updateTarget=c,this.isBindingVolatile=n.y$.isVolatileBinding(this.binding)}get targetName(){return this.originalTargetName}set targetName(e){if(this.originalTargetName=e,void 0!==e)switch(e[0]){case":":if(this.cleanedTargetName=e.substr(1),this.updateTarget=f,"innerHTML"===this.cleanedTargetName){const e=this.binding;this.binding=(t,r)=>s.SO.createHTML(e(t,r))}break;case"?":this.cleanedTargetName=e.substr(1),this.updateTarget=g;break;case"@":this.cleanedTargetName=e.substr(1),this.bind=a,this.unbind=h;break;default:this.cleanedTargetName=e,"class"===e&&(this.updateTarget=p)}}targetAtContent(){this.updateTarget=d,this.unbind=u}createBehavior(e){return new v(e,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}class v{constructor(e,t,r,s,n,i,o){this.source=null,this.context=null,this.bindingObserver=null,this.target=e,this.binding=t,this.isBindingVolatile=r,this.bind=s,this.unbind=n,this.updateTarget=i,this.targetName=o}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(e){n.rd.setEvent(e);const t=this.binding(this.source,this.context);n.rd.setEvent(null),!0!==t&&e.preventDefault()}}let m=null;class y{addFactory(e){e.targetIndex=this.targetIndex,this.behaviorFactories.push(e)}captureContentBinding(e){e.targetAtContent(),this.addFactory(e)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){m=this}static borrow(e){const t=m||new y;return t.directives=e,t.reset(),m=null,t}}function w(e){if(1===e.length)return e[0];let t;const r=e.length,s=e.map((e=>"string"==typeof e?()=>e:(t=e.targetName||t,e.binding))),n=new b(((e,t)=>{let n="";for(let i=0;i<r;++i)n+=s[i](e,t);return n}));return n.targetName=t,n}const C=s.Yl.length;function F(e,t){const r=t.split(s.pc);if(1===r.length)return null;const n=[];for(let t=0,i=r.length;t<i;++t){const i=r[t],o=i.indexOf(s.Yl);let a;if(-1===o)a=i;else{const t=parseInt(i.substring(0,o));n.push(e.directives[t]),a=i.substring(o+C)}""!==a&&n.push(a)}return n}function V(e,t,r=!1){const s=t.attributes;for(let n=0,i=s.length;n<i;++n){const o=s[n],a=o.value,l=F(e,a);let u=null;null===l?r&&(u=new b((()=>a)),u.targetName=o.name):u=w(l),null!==u&&(t.removeAttributeNode(o),n--,i--,e.addFactory(u))}}function D(e,t,r){const s=F(e,t.textContent);if(null!==s){let n=t;for(let i=0,o=s.length;i<o;++i){const o=s[i],a=0===i?t:n.parentNode.insertBefore(document.createTextNode(""),n.nextSibling);"string"==typeof o?a.textContent=o:(a.textContent=" ",e.captureContentBinding(o)),n=a,e.targetIndex++,a!==t&&r.nextNode()}e.targetIndex--}}const S=document.createRange();class O{constructor(e,t){this.fragment=e,this.behaviors=t,this.source=null,this.context=null,this.firstChild=e.firstChild,this.lastChild=e.lastChild}appendTo(e){e.appendChild(this.fragment)}insertBefore(e){if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const r=e.parentNode;let s,n=this.firstChild;for(;n!==t;)s=n.nextSibling,r.insertBefore(n,e),n=s;r.insertBefore(t,e)}}remove(){const e=this.fragment,t=this.lastChild;let r,s=this.firstChild;for(;s!==t;)r=s.nextSibling,e.appendChild(s),s=r;e.appendChild(t)}dispose(){const e=this.firstChild.parentNode,t=this.lastChild;let r,s=this.firstChild;for(;s!==t;)r=s.nextSibling,e.removeChild(s),s=r;e.removeChild(t);const n=this.behaviors,i=this.source;for(let e=0,t=n.length;e<t;++e)n[e].unbind(i)}bind(e,t){const r=this.behaviors;if(this.source!==e)if(null!==this.source){const s=this.source;this.source=e,this.context=t;for(let n=0,i=r.length;n<i;++n){const i=r[n];i.unbind(s),i.bind(e,t)}}else{this.source=e,this.context=t;for(let s=0,n=r.length;s<n;++s)r[s].bind(e,t)}}unbind(){if(null===this.source)return;const e=this.behaviors,t=this.source;for(let r=0,s=e.length;r<s;++r)e[r].unbind(t);this.source=null}static disposeContiguousBatch(e){if(0!==e.length){S.setStartBefore(e[0].firstChild),S.setEndAfter(e[e.length-1].lastChild),S.deleteContents();for(let t=0,r=e.length;t<r;++t){const r=e[t],s=r.behaviors,n=r.source;for(let e=0,t=s.length;e<t;++e)s[e].unbind(n)}}}}class x{constructor(e,t){this.behaviorCount=0,this.hasHostBehaviors=!1,this.fragment=null,this.targetOffset=0,this.viewBehaviorFactories=null,this.hostBehaviorFactories=null,this.html=e,this.directives=t}create(e){if(null===this.fragment){let e;const t=this.html;if("string"==typeof t){e=document.createElement("template"),e.innerHTML=s.SO.createHTML(t);const r=e.content.firstElementChild;null!==r&&"TEMPLATE"===r.tagName&&(e=r)}else e=t;const r=function(e,t){const r=e.content;document.adoptNode(r);const n=y.borrow(t);V(n,e,!0);const i=n.behaviorFactories;n.reset();const o=s.SO.createTemplateWalker(r);let a;for(;a=o.nextNode();)switch(n.targetIndex++,a.nodeType){case 1:V(n,a);break;case 3:D(n,a,o);break;case 8:s.SO.isMarker(a)&&n.addFactory(t[s.SO.extractDirectiveIndexFromMarker(a)])}let l=0;(s.SO.isMarker(r.firstChild)||1===r.childNodes.length&&t.length)&&(r.insertBefore(document.createComment(""),r.firstChild),l=-1);const u=n.behaviorFactories;return n.release(),{fragment:r,viewBehaviorFactories:u,hostBehaviorFactories:i,targetOffset:l}}(e,this.directives);this.fragment=r.fragment,this.viewBehaviorFactories=r.viewBehaviorFactories,this.hostBehaviorFactories=r.hostBehaviorFactories,this.targetOffset=r.targetOffset,this.behaviorCount=this.viewBehaviorFactories.length+this.hostBehaviorFactories.length,this.hasHostBehaviors=this.hostBehaviorFactories.length>0}const t=this.fragment.cloneNode(!0),r=this.viewBehaviorFactories,n=new Array(this.behaviorCount),i=s.SO.createTemplateWalker(t);let o=0,a=this.targetOffset,l=i.nextNode();for(let e=r.length;o<e;++o){const e=r[o],t=e.targetIndex;for(;null!==l;){if(a===t){n[o]=e.createBehavior(l);break}l=i.nextNode(),a++}}if(this.hasHostBehaviors){const t=this.hostBehaviorFactories;for(let r=0,s=t.length;r<s;++r,++o)n[o]=t[r].createBehavior(e)}return new O(t,n)}render(e,t,r){"string"==typeof t&&(t=document.getElementById(t)),void 0===r&&(r=t);const s=this.create(r);return s.bind(e,n.Wp),s.appendTo(t),s}}const k=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function P(e,...t){const r=[];let s="";for(let n=0,o=e.length-1;n<o;++n){const o=e[n];let a=t[n];if(s+=o,a instanceof x){const e=a;a=()=>e}if("function"==typeof a&&(a=new b(a)),a instanceof i.d$){const e=k.exec(o);null!==e&&(a.targetName=e[2])}a instanceof i.m0?(s+=a.createPlaceholder(r.length),r.push(a)):s+=a}return s+=e[e.length-1],new x(s,r)}},40791:(e,t,r)=>{r.d(t,{B:()=>l,v:()=>a});var s=r(60956),n=r(70529);function i(e){return`${e.toLowerCase()}:presentation`}const o=new Map,a=Object.freeze({define(e,t,r){const s=i(e);void 0===o.get(s)?o.set(s,t):o.set(s,!1),r.register(n.YM.instance(s,t))},forTag(e,t){const r=i(e),s=o.get(r);return!1===s?n.DI.findResponsibleContainer(t).get(r):s||null}});class l{constructor(e,t){this.template=e||null,this.styles=void 0===t?null:Array.isArray(t)?s.XL.create(t):t instanceof s.XL?t:s.XL.create([t])}applyTo(e){const t=e.$fastController;null===t.template&&(t.template=this.template),null===t.styles&&(t.styles=this.styles)}}},27002:(e,t,r)=>{r.d(t,{DesignToken:()=>O});var s=r(95185),n=r(37202),i=r(92221),o=r(58930),a=r(75494),l=r(91211),u=r(60956);const h=document.createElement("div");class c{setProperty(e,t){l.SO.queueUpdate((()=>this.target.setProperty(e,t)))}removeProperty(e){l.SO.queueUpdate((()=>this.target.removeProperty(e)))}}class g extends c{constructor(){super();const e=new CSSStyleSheet;this.target=e.cssRules[e.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,e]}}class d extends c{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style);const{sheet:e}=this.style;if(e){const t=e.insertRule(":root{}",e.cssRules.length);this.target=e.cssRules[t].style}}}class f{constructor(e){this.store=new Map,this.target=null;const t=e.$fastController;this.style=document.createElement("style"),t.addStyles(this.style),i.y$.getNotifier(t).subscribe(this,"isConnected"),this.handleChange(t,"isConnected")}targetChanged(){if(null!==this.target)for(const[e,t]of this.store.entries())this.target.setProperty(e,t)}setProperty(e,t){this.store.set(e,t),l.SO.queueUpdate((()=>{null!==this.target&&this.target.setProperty(e,t)}))}removeProperty(e){this.store.delete(e),l.SO.queueUpdate((()=>{null!==this.target&&this.target.removeProperty(e)}))}handleChange(e,t){const{sheet:r}=this.style;if(r){const e=r.insertRule(":host{}",r.cssRules.length);this.target=r.cssRules[e].style}else this.target=null}}(0,s.gn)([i.LO],f.prototype,"target",void 0);class p{constructor(e){this.target=e.style}setProperty(e,t){l.SO.queueUpdate((()=>this.target.setProperty(e,t)))}removeProperty(e){l.SO.queueUpdate((()=>this.target.removeProperty(e)))}}class b{setProperty(e,t){b.properties[e]=t;for(const r of b.roots.values())y.getOrCreate(b.normalizeRoot(r)).setProperty(e,t)}removeProperty(e){delete b.properties[e];for(const t of b.roots.values())y.getOrCreate(b.normalizeRoot(t)).removeProperty(e)}static registerRoot(e){const{roots:t}=b;if(!t.has(e)){t.add(e);const r=y.getOrCreate(this.normalizeRoot(e));for(const e in b.properties)r.setProperty(e,b.properties[e])}}static unregisterRoot(e){const{roots:t}=b;if(t.has(e)){t.delete(e);const r=y.getOrCreate(b.normalizeRoot(e));for(const e in b.properties)r.removeProperty(e)}}static normalizeRoot(e){return e===h?document:e}}b.roots=new Set,b.properties={};const v=new WeakMap,m=l.SO.supportsAdoptedStyleSheets?class extends c{constructor(e){super();const t=new CSSStyleSheet;this.target=t.cssRules[t.insertRule(":host{}")].style,e.$fastController.addStyles(u.XL.create([t]))}}:f,y=Object.freeze({getOrCreate(e){if(v.has(e))return v.get(e);let t;return t=e===h?new b:e instanceof Document?l.SO.supportsAdoptedStyleSheets?new g:new d:e instanceof o.H?new m(e):new p(e),v.set(e,t),t}});class w extends n.v{constructor(e){super(),this.subscribers=new WeakMap,this._appliedTo=new Set,this.name=e.name,null!==e.cssCustomPropertyName&&(this.cssCustomProperty=`--${e.cssCustomPropertyName}`,this.cssVar=`var(${this.cssCustomProperty})`),this.id=w.uniqueId(),w.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(e){return new w({name:"string"==typeof e?e:e.name,cssCustomPropertyName:"string"==typeof e?e:void 0===e.cssCustomPropertyName?e.name:e.cssCustomPropertyName})}static isCSSDesignToken(e){return"string"==typeof e.cssCustomProperty}static isDerivedDesignTokenValue(e){return"function"==typeof e}static getTokenById(e){return w.tokensById.get(e)}getOrCreateSubscriberSet(e=this){return this.subscribers.get(e)||this.subscribers.set(e,new Set)&&this.subscribers.get(e)}createCSS(){return this.cssVar||""}getValueFor(e){const t=S.getOrCreate(e).get(this);if(void 0!==t)return t;throw new Error(`Value could not be retrieved for token named "${this.name}". Ensure the value is set for ${e} or an ancestor of ${e}.`)}setValueFor(e,t){return this._appliedTo.add(e),t instanceof w&&(t=this.alias(t)),S.getOrCreate(e).set(this,t),this}deleteValueFor(e){return this._appliedTo.delete(e),S.existsFor(e)&&S.getOrCreate(e).delete(this),this}withDefault(e){return this.setValueFor(h,e),this}subscribe(e,t){const r=this.getOrCreateSubscriberSet(t);t&&!S.existsFor(t)&&S.getOrCreate(t),r.has(e)||r.add(e)}unsubscribe(e,t){const r=this.subscribers.get(t||this);r&&r.has(e)&&r.delete(e)}notify(e){const t=Object.freeze({token:this,target:e});this.subscribers.has(this)&&this.subscribers.get(this).forEach((e=>e.handleChange(t))),this.subscribers.has(e)&&this.subscribers.get(e).forEach((e=>e.handleChange(t)))}alias(e){return t=>e.getValueFor(t)}}w.uniqueId=(()=>{let e=0;return()=>(e++,e.toString(16))})(),w.tokensById=new Map;class C{constructor(e,t,r){this.source=e,this.token=t,this.node=r,this.dependencies=new Set,this.observer=i.y$.binding(e,this,!1),this.observer.handleChange=this.observer.call,this.handleChange()}disconnect(){this.observer.disconnect()}handleChange(){this.node.store.set(this.token,this.observer.observe(this.node.target,i.Wp))}}class F{constructor(){this.values=new Map}set(e,t){this.values.get(e)!==t&&(this.values.set(e,t),i.y$.getNotifier(this).notify(e.id))}get(e){return i.y$.track(this,e.id),this.values.get(e)}delete(e){this.values.delete(e)}all(){return this.values.entries()}}const V=new WeakMap,D=new WeakMap;class S{constructor(e){this.target=e,this.store=new F,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(e,t)=>{const r=w.getTokenById(t);r&&(r.notify(this.target),this.updateCSSTokenReflection(e,r))}},V.set(e,this),i.y$.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),e instanceof o.H?e.$fastController.addBehaviors([this]):e.isConnected&&this.bind()}static getOrCreate(e){return V.get(e)||new S(e)}static existsFor(e){return V.has(e)}static findParent(e){if(h!==e.target){let t=(0,a.T)(e.target);for(;null!==t;){if(V.has(t))return V.get(t);t=(0,a.T)(t)}return S.getOrCreate(h)}return null}static findClosestAssignedNode(e,t){let r=t;do{if(r.has(e))return r;r=r.parent?r.parent:r.target!==h?S.getOrCreate(h):null}while(null!==r);return null}get parent(){return D.get(this)||null}updateCSSTokenReflection(e,t){if(w.isCSSDesignToken(t)){const r=this.parent,s=this.isReflecting(t);if(r){const n=r.get(t),i=e.get(t);n===i||s?n===i&&s&&this.stopReflectToCSS(t):this.reflectToCSS(t)}else s||this.reflectToCSS(t)}}has(e){return this.assignedValues.has(e)}get(e){const t=this.store.get(e);if(void 0!==t)return t;const r=this.getRaw(e);return void 0!==r?(this.hydrate(e,r),this.get(e)):void 0}getRaw(e){var t;return this.assignedValues.has(e)?this.assignedValues.get(e):null===(t=S.findClosestAssignedNode(e,this))||void 0===t?void 0:t.getRaw(e)}set(e,t){w.isDerivedDesignTokenValue(this.assignedValues.get(e))&&this.tearDownBindingObserver(e),this.assignedValues.set(e,t),w.isDerivedDesignTokenValue(t)?this.setupBindingObserver(e,t):this.store.set(e,t)}delete(e){this.assignedValues.delete(e),this.tearDownBindingObserver(e);const t=this.getRaw(e);t?this.hydrate(e,t):this.store.delete(e)}bind(){const e=S.findParent(this);e&&e.appendChild(this);for(const e of this.assignedValues.keys())e.notify(this.target)}unbind(){this.parent&&D.get(this).removeChild(this)}appendChild(e){e.parent&&D.get(e).removeChild(e);const t=this.children.filter((t=>e.contains(t)));D.set(e,this),this.children.push(e),t.forEach((t=>e.appendChild(t))),i.y$.getNotifier(this.store).subscribe(e);for(const[t,r]of this.store.all())e.hydrate(t,this.bindingObservers.has(t)?this.getRaw(t):r)}removeChild(e){const t=this.children.indexOf(e);return-1!==t&&this.children.splice(t,1),i.y$.getNotifier(this.store).unsubscribe(e),e.parent===this&&D.delete(e)}contains(e){return function(e,t){let r=t;for(;null!==r;){if(r===e)return!0;r=(0,a.T)(r)}return!1}(this.target,e.target)}reflectToCSS(e){this.isReflecting(e)||(this.reflecting.add(e),S.cssCustomPropertyReflector.startReflection(e,this.target))}stopReflectToCSS(e){this.isReflecting(e)&&(this.reflecting.delete(e),S.cssCustomPropertyReflector.stopReflection(e,this.target))}isReflecting(e){return this.reflecting.has(e)}handleChange(e,t){const r=w.getTokenById(t);r&&(this.hydrate(r,this.getRaw(r)),this.updateCSSTokenReflection(this.store,r))}hydrate(e,t){if(!this.has(e)){const r=this.bindingObservers.get(e);w.isDerivedDesignTokenValue(t)?r?r.source!==t&&(this.tearDownBindingObserver(e),this.setupBindingObserver(e,t)):this.setupBindingObserver(e,t):(r&&this.tearDownBindingObserver(e),this.store.set(e,t))}}setupBindingObserver(e,t){const r=new C(t,e,this);return this.bindingObservers.set(e,r),r}tearDownBindingObserver(e){return!!this.bindingObservers.has(e)&&(this.bindingObservers.get(e).disconnect(),this.bindingObservers.delete(e),!0)}}S.cssCustomPropertyReflector=new class{startReflection(e,t){e.subscribe(this,t),this.handleChange({token:e,target:t})}stopReflection(e,t){e.unsubscribe(this,t),this.remove(e,t)}handleChange(e){const{token:t,target:r}=e;this.add(t,r)}add(e,t){y.getOrCreate(t).setProperty(e.cssCustomProperty,this.resolveCSSValue(S.getOrCreate(t).get(e)))}remove(e,t){y.getOrCreate(t).removeProperty(e.cssCustomProperty)}resolveCSSValue(e){return e&&"function"==typeof e.createCSS?e.createCSS():e}},(0,s.gn)([i.LO],S.prototype,"children",void 0);const O=Object.freeze({create:function(e){return w.from(e)},notifyConnection:e=>!(!e.isConnected||!S.existsFor(e)||(S.getOrCreate(e).bind(),0)),notifyDisconnection:e=>!(e.isConnected||!S.existsFor(e)||(S.getOrCreate(e).unbind(),0)),registerRoot(e=h){b.registerRoot(e)},unregisterRoot(e=h){b.unregisterRoot(e)}})},70529:(e,t,r)=>{r.d(t,{DI:()=>d,YM:()=>R});var s=r(58930),n=r(40478);const i=new Map;"metadata"in Reflect||(Reflect.metadata=function(e,t){return function(r){Reflect.defineMetadata(e,t,r)}},Reflect.defineMetadata=function(e,t,r){let s=i.get(r);void 0===s&&i.set(r,s=new Map),s.set(e,t)},Reflect.getOwnMetadata=function(e,t){const r=i.get(t);if(void 0!==r)return r.get(e)});class o{constructor(e,t){this.container=e,this.key=t}instance(e){return this.registerResolver(0,e)}singleton(e){return this.registerResolver(1,e)}transient(e){return this.registerResolver(2,e)}callback(e){return this.registerResolver(3,e)}cachedCallback(e){return this.registerResolver(3,T(e))}aliasTo(e){return this.registerResolver(5,e)}registerResolver(e,t){const{container:r,key:s}=this;return this.container=this.key=void 0,r.registerResolver(s,new y(s,e,t))}}function a(e){const t=e.slice(),r=Object.keys(e),s=r.length;let n;for(let i=0;i<s;++i)n=r[i],j(n)||(t[n]=e[n]);return t}const l=Object.freeze({none(e){throw Error(`${e.toString()} not registered, did you forget to add @singleton()?`)},singleton:e=>new y(e,1,e),transient:e=>new y(e,2,e)}),u=Object.freeze({default:Object.freeze({parentLocator:()=>null,responsibleForOwnerRequests:!1,defaultResolver:l.singleton})}),h=new Map;function c(e){return t=>Reflect.getOwnMetadata(e,t)}let g=null;const d=Object.freeze({createContainer:e=>new P(null,Object.assign({},u.default,e)),findResponsibleContainer(e){const t=e.$$container$$;return t&&t.responsibleForOwnerRequests?t:d.findParentContainer(e)},findParentContainer(e){const t=new CustomEvent(x,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return e.dispatchEvent(t),t.detail.container||d.getOrCreateDOMContainer()},getOrCreateDOMContainer:(e,t)=>e?e.$$container$$||new P(e,Object.assign({},u.default,t,{parentLocator:d.findParentContainer})):g||(g=new P(null,Object.assign({},u.default,t,{parentLocator:()=>null}))),getDesignParamtypes:c("design:paramtypes"),getAnnotationParamtypes:c("di:paramtypes"),getOrCreateAnnotationParamTypes(e){let t=this.getAnnotationParamtypes(e);return void 0===t&&Reflect.defineMetadata("di:paramtypes",t=[],e),t},getDependencies(e){let t=h.get(e);if(void 0===t){const r=e.inject;if(void 0===r){const r=d.getDesignParamtypes(e),s=d.getAnnotationParamtypes(e);if(void 0===r)if(void 0===s){const r=Object.getPrototypeOf(e);t="function"==typeof r&&r!==Function.prototype?a(d.getDependencies(r)):[]}else t=a(s);else if(void 0===s)t=a(r);else{t=a(r);let e,n=s.length;for(let r=0;r<n;++r)e=s[r],void 0!==e&&(t[r]=e);const i=Object.keys(s);let o;n=i.length;for(let e=0;e<n;++e)o=i[e],j(o)||(t[o]=s[o])}}else t=a(r);h.set(e,t)}return t},defineProperty(e,t,r,n=!1){const i=`$di_${t}`;Reflect.defineProperty(e,t,{get:function(){let e=this[i];if(void 0===e){const o=this instanceof HTMLElement?d.findResponsibleContainer(this):d.getOrCreateDOMContainer();if(e=o.get(r),this[i]=e,n&&this instanceof s.H){const s=this.$fastController,n=()=>{d.findResponsibleContainer(this).get(r)!==this[i]&&(this[i]=e,s.notify(t))};s.subscribe({handleChange:n},"isConnected")}}return e}})},createInterface(e,t){const r="function"==typeof e?e:t,s="string"==typeof e?e:e&&"friendlyName"in e&&e.friendlyName||M,n="string"!=typeof e&&(e&&"respectConnection"in e&&e.respectConnection||!1),i=function(e,t,r){if(null==e||void 0!==new.target)throw new Error(`No registration for interface: '${i.friendlyName}'`);t?d.defineProperty(e,t,i,n):d.getOrCreateAnnotationParamTypes(e)[r]=i};return i.$isInterface=!0,i.friendlyName=null==s?"(anonymous)":s,null!=r&&(i.register=function(e,t){return r(new o(e,null!=t?t:i))}),i.toString=function(){return`InterfaceSymbol<${i.friendlyName}>`},i},inject:(...e)=>function(t,r,s){if("number"==typeof s){const r=d.getOrCreateAnnotationParamTypes(t),n=e[0];void 0!==n&&(r[s]=n)}else if(r)d.defineProperty(t,r,e[0]);else{const r=s?d.getOrCreateAnnotationParamTypes(s.value):d.getOrCreateAnnotationParamTypes(t);let n;for(let t=0;t<e.length;++t)n=e[t],void 0!==n&&(r[t]=n)}},transient:e=>(e.register=function(t){return R.transient(e,e).register(t)},e.registerInRequestor=!1,e),singleton:(e,t=b)=>(e.register=function(t){return R.singleton(e,e).register(t)},e.registerInRequestor=t.scoped,e)}),f=d.createInterface("Container");function p(e){return function(t){const r=function(e,t,s){d.inject(r)(e,t,s)};return r.$isResolver=!0,r.resolve=function(r,s){return e(t,r,s)},r}}d.inject;const b={scoped:!1};function v(e,t,r){d.inject(v)(e,t,r)}function m(e,t){return t.getFactory(e).construct(t)}p(((e,t,r)=>()=>r.get(e))),p(((e,t,r)=>r.has(e,!0)?r.get(e):void 0)),v.$isResolver=!0,v.resolve=()=>{},p(((e,t,r)=>{const s=m(e,t),n=new y(e,0,s);return r.registerResolver(e,n),s})),p(((e,t,r)=>m(e,t)));class y{constructor(e,t,r){this.key=e,this.strategy=t,this.state=r,this.resolving=!1}get $isResolver(){return!0}register(e){return e.registerResolver(this.key,this)}resolve(e,t){switch(this.strategy){case 0:return this.state;case 1:if(this.resolving)throw new Error(`Cyclic dependency found: ${this.state.name}`);return this.resolving=!0,this.state=e.getFactory(this.state).construct(t),this.strategy=0,this.resolving=!1,this.state;case 2:{const r=e.getFactory(this.state);if(null===r)throw new Error(`Resolver for ${String(this.key)} returned a null factory`);return r.construct(t)}case 3:return this.state(e,t,this);case 4:return this.state[0].resolve(e,t);case 5:return t.get(this.state);default:throw new Error(`Invalid resolver strategy specified: ${this.strategy}.`)}}getFactory(e){var t,r,s;switch(this.strategy){case 1:case 2:return e.getFactory(this.state);case 5:return null!==(s=null===(r=null===(t=e.getResolver(this.state))||void 0===t?void 0:t.getFactory)||void 0===r?void 0:r.call(t,e))&&void 0!==s?s:null;default:return null}}}function w(e){return this.get(e)}function C(e,t){return t(e)}class F{constructor(e,t){this.Type=e,this.dependencies=t,this.transformers=null}construct(e,t){let r;return r=void 0===t?new this.Type(...this.dependencies.map(w,e)):new this.Type(...this.dependencies.map(w,e),...t),null==this.transformers?r:this.transformers.reduce(C,r)}registerTransformer(e){(this.transformers||(this.transformers=[])).push(e)}}const V={$isResolver:!0,resolve:(e,t)=>t};function D(e){return"function"==typeof e.register}function S(e){return function(e){return D(e)&&"boolean"==typeof e.registerInRequestor}(e)&&e.registerInRequestor}const O=new Set(["Array","ArrayBuffer","Boolean","DataView","Date","Error","EvalError","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Number","Object","Promise","RangeError","ReferenceError","RegExp","Set","SharedArrayBuffer","String","SyntaxError","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","URIError","WeakMap","WeakSet"]),x="__DI_LOCATE_PARENT__",k=new Map;class P{constructor(e,t){this.owner=e,this.config=t,this._parent=void 0,this.registerDepth=0,this.context=null,null!==e&&(e.$$container$$=this),this.resolvers=new Map,this.resolvers.set(f,V),e instanceof Node&&e.addEventListener(x,(e=>{e.composedPath()[0]!==this.owner&&(e.detail.container=this,e.stopImmediatePropagation())}))}get parent(){return void 0===this._parent&&(this._parent=this.config.parentLocator(this.owner)),this._parent}get depth(){return null===this.parent?0:this.parent.depth+1}get responsibleForOwnerRequests(){return this.config.responsibleForOwnerRequests}registerWithContext(e,...t){return this.context=e,this.register(...t),this.context=null,this}register(...e){if(100==++this.registerDepth)throw new Error("Unable to autoregister dependency");let t,r,s,n,i;const o=this.context;for(let a=0,l=e.length;a<l;++a)if(t=e[a],L(t))if(D(t))t.register(this,o);else if(void 0!==t.prototype)R.singleton(t,t).register(this);else for(r=Object.keys(t),n=0,i=r.length;n<i;++n)s=t[r[n]],L(s)&&(D(s)?s.register(this,o):this.register(s));return--this.registerDepth,this}registerResolver(e,t){A(e);const r=this.resolvers,s=r.get(e);return null==s?r.set(e,t):s instanceof y&&4===s.strategy?s.state.push(t):r.set(e,new y(e,4,[s,t])),t}registerTransformer(e,t){const r=this.getResolver(e);if(null==r)return!1;if(r.getFactory){const e=r.getFactory(this);return null!=e&&(e.registerTransformer(t),!0)}return!1}getResolver(e,t=!0){if(A(e),void 0!==e.resolve)return e;let r,s=this;for(;null!=s;){if(r=s.resolvers.get(e),null!=r)return r;if(null==s.parent){const r=S(e)?this:s;return t?this.jitRegister(e,r):null}s=s.parent}return null}has(e,t=!1){return!!this.resolvers.has(e)||!(!t||null==this.parent)&&this.parent.has(e,!0)}get(e){if(A(e),e.$isResolver)return e.resolve(this,this);let t,r=this;for(;null!=r;){if(t=r.resolvers.get(e),null!=t)return t.resolve(r,this);if(null==r.parent){const s=S(e)?this:r;return t=this.jitRegister(e,s),t.resolve(r,this)}r=r.parent}throw new Error(`Unable to resolve key: ${String(e)}`)}getAll(e,t=!1){A(e);const r=this;let s,i=r;if(t){let t=n.ow;for(;null!=i;)s=i.resolvers.get(e),null!=s&&(t=t.concat($(s,i,r))),i=i.parent;return t}for(;null!=i;){if(s=i.resolvers.get(e),null!=s)return $(s,i,r);if(i=i.parent,null==i)return n.ow}return n.ow}getFactory(e){let t=k.get(e);if(void 0===t){if(B(e))throw new Error(`${e.name} is a native function and therefore cannot be safely constructed by DI. If this is intentional, please use a callback or cachedCallback resolver.`);k.set(e,t=new F(e,d.getDependencies(e)))}return t}registerFactory(e,t){k.set(e,t)}createChild(e){return new P(null,Object.assign({},this.config,e,{parentLocator:()=>this}))}jitRegister(e,t){if("function"!=typeof e)throw new Error(`Attempted to jitRegister something that is not a constructor: '${e}'. Did you forget to register this dependency?`);if(O.has(e.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${e.name}. Did you forget to add @inject(Key)`);if(D(e)){const r=e.register(t);if(!(r instanceof Object)||null==r.resolve){const r=t.resolvers.get(e);if(null!=r)return r;throw new Error("A valid resolver was not returned from the static register method")}return r}if(e.$isInterface)throw new Error(`Attempted to jitRegister an interface: ${e.friendlyName}`);{const r=this.config.defaultResolver(e,t);return t.resolvers.set(e,r),r}}}const N=new WeakMap;function T(e){return function(t,r,s){if(N.has(s))return N.get(s);const n=e(t,r,s);return N.set(s,n),n}}const R=Object.freeze({instance:(e,t)=>new y(e,0,t),singleton:(e,t)=>new y(e,1,t),transient:(e,t)=>new y(e,2,t),callback:(e,t)=>new y(e,3,t),cachedCallback:(e,t)=>new y(e,3,T(t)),aliasTo:(e,t)=>new y(t,5,e)});function A(e){if(null==e)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function $(e,t,r){if(e instanceof y&&4===e.strategy){const s=e.state;let n=s.length;const i=new Array(n);for(;n--;)i[n]=s[n].resolve(t,r);return i}return[e.resolve(t,r)]}const M="(anonymous)";function L(e){return"object"==typeof e&&null!==e||"function"==typeof e}const B=function(){const e=new WeakMap;let t=!1,r="",s=0;return function(n){return t=e.get(n),void 0===t&&(r=n.toString(),s=r.length,t=s>=29&&s<=100&&125===r.charCodeAt(s-1)&&r.charCodeAt(s-2)<=32&&93===r.charCodeAt(s-3)&&101===r.charCodeAt(s-4)&&100===r.charCodeAt(s-5)&&111===r.charCodeAt(s-6)&&99===r.charCodeAt(s-7)&&32===r.charCodeAt(s-8)&&101===r.charCodeAt(s-9)&&118===r.charCodeAt(s-10)&&105===r.charCodeAt(s-11)&&116===r.charCodeAt(s-12)&&97===r.charCodeAt(s-13)&&110===r.charCodeAt(s-14)&&88===r.charCodeAt(s-15),e.set(n,t)),t}}(),I={};function j(e){switch(typeof e){case"number":return e>=0&&(0|e)===e;case"string":{const t=I[e];if(void 0!==t)return t;const r=e.length;if(0===r)return I[e]=!1;let s=0;for(let t=0;t<r;++t)if(s=e.charCodeAt(t),0===t&&48===s&&r>1||s<48||s>57)return I[e]=!1;return I[e]=!0}default:return!1}}},50755:(e,t,r)=>{r.d(t,{I:()=>a});var s=r(95185),n=r(58930),i=r(92221),o=r(40791);class a extends n.H{constructor(){super(...arguments),this._presentation=void 0}get $presentation(){return void 0===this._presentation&&(this._presentation=o.v.forTag(this.tagName,this)),this._presentation}templateChanged(){void 0!==this.template&&(this.$fastController.template=this.template)}stylesChanged(){void 0!==this.styles&&(this.$fastController.styles=this.styles)}connectedCallback(){null!==this.$presentation&&this.$presentation.applyTo(this),super.connectedCallback()}static compose(e){return(t={})=>new u(this===a?class extends a{}:this,e,t)}}function l(e,t,r){return"function"==typeof e?e(t,r):e}(0,s.gn)([i.LO],a.prototype,"template",void 0),(0,s.gn)([i.LO],a.prototype,"styles",void 0);class u{constructor(e,t,r){this.type=e,this.elementDefinition=t,this.overrideDefinition=r,this.definition=Object.assign(Object.assign({},this.elementDefinition),this.overrideDefinition)}register(e,t){const r=this.definition,s=this.overrideDefinition,n=`${r.prefix||t.elementPrefix}-${r.baseName}`;t.tryDefineElement({name:n,type:this.type,baseClass:this.elementDefinition.baseClass,callback:e=>{const t=new o.B(l(r.template,e,r),l(r.styles,e,r));e.definePresentation(t);let n=l(r.shadowOptions,e,r);e.shadowRootMode&&(n?s.shadowOptions||(n.mode=e.shadowRootMode):null!==n&&(n={mode:e.shadowRootMode})),e.defineElement({elementOptions:l(r.elementOptions,e,r),shadowOptions:n,attributes:l(r.attributes,e,r)})}})}}},52865:(e,t,r)=>{r.d(t,{LC:()=>o,hW:()=>i,m9:()=>a});var s=r(25269),n=r(62564);class i{handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}}const o=(e,t)=>s.d`
|
|
2
|
+
<span
|
|
3
|
+
part="end"
|
|
4
|
+
${(0,n.i)("endContainer")}
|
|
5
|
+
class=${e=>t.end?"end":void 0}
|
|
6
|
+
>
|
|
7
|
+
<slot name="end" ${(0,n.i)("end")} @slotchange="${e=>e.handleEndContentChange()}">
|
|
8
|
+
${t.end||""}
|
|
9
|
+
</slot>
|
|
10
|
+
</span>
|
|
11
|
+
`,a=(e,t)=>s.d`
|
|
12
|
+
<span
|
|
13
|
+
part="start"
|
|
14
|
+
${(0,n.i)("startContainer")}
|
|
15
|
+
class="${e=>t.start?"start":void 0}"
|
|
16
|
+
>
|
|
17
|
+
<slot
|
|
18
|
+
name="start"
|
|
19
|
+
${(0,n.i)("start")}
|
|
20
|
+
@slotchange="${e=>e.handleStartContentChange()}"
|
|
21
|
+
>
|
|
22
|
+
${t.start||""}
|
|
23
|
+
</slot>
|
|
24
|
+
</span>
|
|
25
|
+
`;s.d`
|
|
26
|
+
<span part="end" ${(0,n.i)("endContainer")}>
|
|
27
|
+
<slot
|
|
28
|
+
name="end"
|
|
29
|
+
${(0,n.i)("end")}
|
|
30
|
+
@slotchange="${e=>e.handleEndContentChange()}"
|
|
31
|
+
></slot>
|
|
32
|
+
</span>
|
|
33
|
+
`,s.d`
|
|
34
|
+
<span part="start" ${(0,n.i)("startContainer")}>
|
|
35
|
+
<slot
|
|
36
|
+
name="start"
|
|
37
|
+
${(0,n.i)("start")}
|
|
38
|
+
@slotchange="${e=>e.handleStartContentChange()}"
|
|
39
|
+
></slot>
|
|
40
|
+
</span>
|
|
41
|
+
`},89155:(e,t,r)=>{r.d(t,{e:()=>n});var s=r(98332);function n(e,...t){const r=s.Ax.locate(e);t.forEach((t=>{Object.getOwnPropertyNames(t.prototype).forEach((r=>{"constructor"!==r&&Object.defineProperty(e.prototype,r,Object.getOwnPropertyDescriptor(t.prototype,r))})),s.Ax.locate(t).forEach((e=>r.push(e)))}))}},75494:(e,t,r)=>{function s(e){const t=e.parentElement;if(t)return t;{const t=e.getRootNode();if(t.host instanceof HTMLElement)return t.host}return null}r.d(t,{T:()=>s})},98242:(e,t,r)=>{r.d(t,{vF:()=>i});class s{constructor(e){this.listenerCache=new WeakMap,this.query=e}bind(e){const{query:t}=this,r=this.constructListener(e);r.bind(t)(),t.addListener(r),this.listenerCache.set(e,r)}unbind(e){const t=this.listenerCache.get(e);t&&(this.query.removeListener(t),this.listenerCache.delete(e))}}class n extends s{constructor(e,t){super(e),this.styles=t}static with(e){return t=>new n(e,t)}constructListener(e){let t=!1;const r=this.styles;return function(){const{matches:s}=this;s&&!t?(e.$fastController.addStyles(r),t=s):!s&&t&&(e.$fastController.removeStyles(r),t=s)}}unbind(e){super.unbind(e),e.$fastController.removeStyles(this.styles)}}const i=n.with(window.matchMedia("(forced-colors)"));n.with(window.matchMedia("(prefers-color-scheme: dark)")),n.with(window.matchMedia("(prefers-color-scheme: light)"))},61424:(e,t,r)=>{r.d(t,{H:()=>s});const s="not-allowed"},21601:(e,t,r)=>{r.d(t,{j:()=>n});const s=":host([hidden]){display:none}";function n(e){return`${s}:host{display:${e}}`}},58201:(e,t,r)=>{r.d(t,{b:()=>s});const s=(0,r(99415).Zm)()?"focus-visible":"focus"},95185:(e,t,r)=>{function s(e,t,r,s){var n,i=arguments.length,o=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(i<3?n(o):i>3?n(t,r,o):n(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o}r.d(t,{gn:()=>s})},99415:(e,t,r)=>{function s(...e){return e.every((e=>e instanceof HTMLElement))}function n(e,t){if(e&&t&&s(e))return Array.from(e.querySelectorAll(t)).filter((e=>null!==e.offsetParent))}let i;function o(){if("boolean"==typeof i)return i;if("undefined"==typeof window||!window.document||!window.document.createElement)return i=!1,i;const e=document.createElement("style"),t=function(){const e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}();null!==t&&e.setAttribute("nonce",t),document.head.appendChild(e);try{e.sheet.insertRule("foo:focus-visible {color:inherit}",0),i=!0}catch(e){i=!1}finally{document.head.removeChild(e)}return i}r.d(t,{Zm:()=>o,UM:()=>n,Re:()=>s})},27081:(e,t,r)=>{var s;r.d(t,{BE:()=>i,Kh:()=>h,SB:()=>a,iF:()=>n,kL:()=>l,mr:()=>o,tU:()=>u,uf:()=>c}),function(e){e[e.alt=18]="alt",e[e.arrowDown=40]="arrowDown",e[e.arrowLeft=37]="arrowLeft",e[e.arrowRight=39]="arrowRight",e[e.arrowUp=38]="arrowUp",e[e.back=8]="back",e[e.backSlash=220]="backSlash",e[e.break=19]="break",e[e.capsLock=20]="capsLock",e[e.closeBracket=221]="closeBracket",e[e.colon=186]="colon",e[e.colon2=59]="colon2",e[e.comma=188]="comma",e[e.ctrl=17]="ctrl",e[e.delete=46]="delete",e[e.end=35]="end",e[e.enter=13]="enter",e[e.equals=187]="equals",e[e.equals2=61]="equals2",e[e.equals3=107]="equals3",e[e.escape=27]="escape",e[e.forwardSlash=191]="forwardSlash",e[e.function1=112]="function1",e[e.function10=121]="function10",e[e.function11=122]="function11",e[e.function12=123]="function12",e[e.function2=113]="function2",e[e.function3=114]="function3",e[e.function4=115]="function4",e[e.function5=116]="function5",e[e.function6=117]="function6",e[e.function7=118]="function7",e[e.function8=119]="function8",e[e.function9=120]="function9",e[e.home=36]="home",e[e.insert=45]="insert",e[e.menu=93]="menu",e[e.minus=189]="minus",e[e.minus2=109]="minus2",e[e.numLock=144]="numLock",e[e.numPad0=96]="numPad0",e[e.numPad1=97]="numPad1",e[e.numPad2=98]="numPad2",e[e.numPad3=99]="numPad3",e[e.numPad4=100]="numPad4",e[e.numPad5=101]="numPad5",e[e.numPad6=102]="numPad6",e[e.numPad7=103]="numPad7",e[e.numPad8=104]="numPad8",e[e.numPad9=105]="numPad9",e[e.numPadDivide=111]="numPadDivide",e[e.numPadDot=110]="numPadDot",e[e.numPadMinus=109]="numPadMinus",e[e.numPadMultiply=106]="numPadMultiply",e[e.numPadPlus=107]="numPadPlus",e[e.openBracket=219]="openBracket",e[e.pageDown=34]="pageDown",e[e.pageUp=33]="pageUp",e[e.period=190]="period",e[e.print=44]="print",e[e.quote=222]="quote",e[e.scrollLock=145]="scrollLock",e[e.shift=16]="shift",e[e.space=32]="space",e[e.tab=9]="tab",e[e.tilde=192]="tilde",e[e.windowsLeft=91]="windowsLeft",e[e.windowsOpera=219]="windowsOpera",e[e.windowsRight=92]="windowsRight"}(s||(s={}));const n="ArrowDown",i="ArrowLeft",o="ArrowRight",a="ArrowUp",l="Enter",u="Home",h="End",c={ArrowDown:n,ArrowLeft:i,ArrowRight:o,ArrowUp:a}},6618:(e,t,r)=>{var s;r.d(t,{N:()=>s}),function(e){e.ltr="ltr",e.rtl="rtl"}(s||(s={}))},30550:(e,t,r)=>{var s;r.d(t,{H:()=>s}),function(e){e.Canvas="Canvas",e.CanvasText="CanvasText",e.LinkText="LinkText",e.VisitedText="VisitedText",e.ActiveText="ActiveText",e.ButtonFace="ButtonFace",e.ButtonText="ButtonText",e.Field="Field",e.FieldText="FieldText",e.Highlight="Highlight",e.HighlightText="HighlightText",e.GrayText="GrayText"}(s||(s={}))}}]);
|