@ruck-plugins/it-tools 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android-chrome-192x192.png +0 -0
- package/android-chrome-512x512.png +0 -0
- package/apple-touch-icon.png +0 -0
- package/assets/About-3d24c5db.js +1 -0
- package/assets/Alert-94bc8eeb.js +48 -0
- package/assets/Blank-7aaa3138.css +1 -0
- package/assets/Blank-e5d4ac5a.js +1 -0
- package/assets/Button-9402ed37.js +103 -0
- package/assets/Checkbox-cb66f05b.js +105 -0
- package/assets/ColorPicker-d1570289.js +181 -0
- package/assets/Copy-aa880467.js +1 -0
- package/assets/Divider-1a143549.js +42 -0
- package/assets/Form-5afa044a.js +6 -0
- package/assets/FormItem-18450bf0.js +105 -0
- package/assets/FormatTransformer.vue_vue_type_script_setup_true_lang-62b173c1.js +1 -0
- package/assets/Grid-c95ac6a8.js +1 -0
- package/assets/Input-304baede.js +258 -0
- package/assets/InputCopyable.vue_vue_type_script_setup_true_lang-f8def18c.js +1 -0
- package/assets/InputGroup-70edfbd3.js +56 -0
- package/assets/InputGroupLabel-95e6747d.js +29 -0
- package/assets/InputNumber-164670aa.js +7 -0
- package/assets/Remove-0305cd29.js +7 -0
- package/assets/Scrollbar-d11619e0.js +1 -0
- package/assets/Slider-712e01ed.js +158 -0
- package/assets/SpanCopyable.vue_vue_type_script_setup_true_lang-f78211c8.js +1 -0
- package/assets/Statistic-5bf76e73.js +23 -0
- package/assets/Switch-a3478b14.js +102 -0
- package/assets/Table-cd9ff7d0.js +76 -0
- package/assets/Tag-76c06f8d.js +70 -0
- package/assets/TextareaCopyable-a8dad7e2.js +75 -0
- package/assets/TextareaCopyable-e0c396a1.css +1 -0
- package/assets/___vite-browser-external_commonjs-proxy-d22f5c20.js +1 -0
- package/assets/_commonjs-dynamic-modules-302442b1.js +1 -0
- package/assets/abap-b90a1f1e.js +6 -0
- package/assets/apex-7aadd462.js +6 -0
- package/assets/ascii-text-drawer-a9edb471.js +2285 -0
- package/assets/azcli-23a1b956.js +6 -0
- package/assets/base64-6a7151fc.js +1 -0
- package/assets/base64-file-converter-4268e6c2.js +1 -0
- package/assets/base64-file-converter-5ea50f3b.css +1 -0
- package/assets/base64-string-converter-589f021d.js +1 -0
- package/assets/basic-auth-generator-37cad11f.css +1 -0
- package/assets/basic-auth-generator-bdfb1c58.js +1 -0
- package/assets/bat-2c82a72d.js +6 -0
- package/assets/bcrypt-65197846.css +1 -0
- package/assets/bcrypt-ab034048.js +5 -0
- package/assets/benchmark-builder-4d4575bb.js +5 -0
- package/assets/bicep-338bfe58.js +7 -0
- package/assets/bip39-generator-5a73523a.js +8 -0
- package/assets/boolean-c7e7c785.js +1 -0
- package/assets/browser-e933942f.js +8 -0
- package/assets/c-key-value-list.vue_vue_type_script_setup_true_lang-18c0a83d.js +1 -0
- package/assets/cameligo-1c616f6f.js +6 -0
- package/assets/camera-recorder-ed9d6dee.js +1 -0
- package/assets/case-converter-cfa9e2eb.js +1 -0
- package/assets/chmod-calculator-455ac64e.js +1 -0
- package/assets/chmod-calculator-ffe89049.css +1 -0
- package/assets/chronometer-241bfabb.css +1 -0
- package/assets/chronometer-9c01359d.js +1 -0
- package/assets/clojure-9bb82a82.js +6 -0
- package/assets/codicon-8b349ebc.ttf +0 -0
- package/assets/coffee-ec486f98.js +6 -0
- package/assets/color-converter-29caec7b.js +1 -0
- package/assets/color-to-class-b0332f36.js +1 -0
- package/assets/computedRefreshable-c6e973a4.js +1 -0
- package/assets/convert-ae87c221.js +1 -0
- package/assets/cpp-98740ad6.js +6 -0
- package/assets/crontab-generator-8260c5da.css +1 -0
- package/assets/crontab-generator-f23cf7dc.js +8 -0
- package/assets/csharp-d2941385.js +6 -0
- package/assets/csp-aed6305a.js +6 -0
- package/assets/css-a82dd746.js +8 -0
- package/assets/cssMode-5dd2dec6.js +9 -0
- package/assets/cypher-3ffc0570.js +6 -0
- package/assets/dart-68bf5326.js +6 -0
- package/assets/date-time-converter-fadab3da.js +1 -0
- package/assets/defaults-4d6daddf.js +1 -0
- package/assets/demo-wrapper-4d0ee60f.js +1 -0
- package/assets/device-information-8214f0a2.js +1 -0
- package/assets/device-information-8ba000b4.css +1 -0
- package/assets/docker-run-to-docker-compose-converter-d7373897.js +56 -0
- package/assets/dockerfile-c55b64af.js +6 -0
- package/assets/downloadBase64-e611bae8.js +1 -0
- package/assets/ecl-e008be52.js +6 -0
- package/assets/elixir-932a57fd.js +6 -0
- package/assets/email-normalizer-5b25a5bc.js +3 -0
- package/assets/emoji-picker-bf39b72c.js +1 -0
- package/assets/encryption-7e707240.js +1 -0
- package/assets/eta-calculator-06f472f3.js +323 -0
- package/assets/eta-calculator-089582d9.css +1 -0
- package/assets/flow9-d862b93b.js +6 -0
- package/assets/freemarker2-742a84be.js +8 -0
- package/assets/fsharp-f2bb837e.js +6 -0
- package/assets/get-slot-1efb97e5.js +1 -0
- package/assets/git-memo-7be4be4a.js +27 -0
- package/assets/git-memo-8caded2b.css +1 -0
- package/assets/go-b074840c.js +6 -0
- package/assets/graphql-a707cdaa.js +6 -0
- package/assets/handlebars-2b56c30f.js +6 -0
- package/assets/hash-text-999882c4.js +1 -0
- package/assets/hash-text.service-9de4e2c4.js +1 -0
- package/assets/hcl-d4ee186a.js +6 -0
- package/assets/hmac-generator-093872ee.js +1 -0
- package/assets/html-e962b0ce.js +6 -0
- package/assets/html-entities-20010e46.js +1 -0
- package/assets/html-wysiwyg-editor-b5b79779.css +1 -0
- package/assets/html-wysiwyg-editor-dc050e6a.js +143 -0
- package/assets/htmlMode-95ffb1da.js +9 -0
- package/assets/http-status-codes-f542762a.js +1 -0
- package/assets/iban-validator-and-parser-f6ec3d84.js +13 -0
- package/assets/index-01d0fc63.js +1370 -0
- package/assets/index-12c42436.js +22 -0
- package/assets/index-14563ccd.css +1 -0
- package/assets/index-231c3e11.js +14 -0
- package/assets/index-2c6ca995.js +16 -0
- package/assets/index-3aa13386.js +1 -0
- package/assets/index-63220630.js +14 -0
- package/assets/index-8c244bdc.js +1 -0
- package/assets/index-f68143c3.js +11 -0
- package/assets/ini-41c1946f.js +6 -0
- package/assets/integer-base-converter-170a0120.js +1 -0
- package/assets/integer-base-converter-fea045ae.css +1 -0
- package/assets/integer-base-converter.model-834f64a6.js +1 -0
- package/assets/ipv4-address-converter-951dd3a1.js +1 -0
- package/assets/ipv4-address-converter.service-5eca2303.js +1 -0
- package/assets/ipv4-range-expander-77529d33.js +1 -0
- package/assets/ipv4-subnet-calculator-0765b5a3.js +1 -0
- package/assets/ipv6-ula-generator-a227ad1d.js +1 -0
- package/assets/is-browser-fc34c9a6.js +1 -0
- package/assets/java-47f7782f.js +6 -0
- package/assets/javascript-dc831e1c.js +6 -0
- package/assets/json-diff-0c87ccdc.css +1 -0
- package/assets/json-diff-b65e7116.js +1 -0
- package/assets/json-minify-7f8d657a.js +5 -0
- package/assets/json-to-csv-f0a07574.js +2 -0
- package/assets/json-to-toml-13b9d4b1.js +2 -0
- package/assets/json-to-xml-46f59009.js +1 -0
- package/assets/json-to-yaml-cbeb8558.js +1 -0
- package/assets/json-viewer-268bc972.js +1 -0
- package/assets/json-viewer-d387c416.css +1 -0
- package/assets/jsonMode-58ab16e2.js +11 -0
- package/assets/julia-f7e41405.js +6 -0
- package/assets/jwt-parser-2e30b2d6.js +1 -0
- package/assets/jwt-parser-50e53634.css +1 -0
- package/assets/keycode-info-a032e8f4.js +1 -0
- package/assets/kotlin-ae5ef343.js +6 -0
- package/assets/less-1fe8fdbb.js +7 -0
- package/assets/lexon-b30b84ba.js +6 -0
- package/assets/liquid-af26062b.js +6 -0
- package/assets/list-converter-11cbde31.js +3 -0
- package/assets/lorem-ipsum-generator-da85b585.js +5 -0
- package/assets/lua-98fb5662.js +6 -0
- package/assets/m3-bebbe313.js +6 -0
- package/assets/mac-address-generator-234fbe8f.js +2 -0
- package/assets/mac-address-lookup-0694c3ba.js +102348 -0
- package/assets/macAddress-dfb969b0.js +1 -0
- package/assets/markdown-d21a565e.js +6 -0
- package/assets/markdown-to-html-6565adf1.js +16 -0
- package/assets/math-evaluator-286ab429.js +71 -0
- package/assets/mdx-70a3edf4.js +6 -0
- package/assets/meta-tag-generator-4be4cd50.js +53 -0
- package/assets/meta-tag-generator-b150f5ae.css +1 -0
- package/assets/mime-types-b7f86a27.js +1 -0
- package/assets/mips-a6f8cea7.js +6 -0
- package/assets/msdax-b68e245c.js +6 -0
- package/assets/mysql-5b539782.js +6 -0
- package/assets/numeronym-generator-3a497cbe.js +1 -0
- package/assets/objective-c-2b1285e8.js +6 -0
- package/assets/otp-code-generator-and-validator-315dde55.css +1 -0
- package/assets/otp-code-generator-and-validator-6aedd63f.js +166 -0
- package/assets/pascal-4649eefa.js +6 -0
- package/assets/pascaligo-ae9a3940.js +6 -0
- package/assets/password-strength-analyser-0a24e554.js +1 -0
- package/assets/pdf-signature-checker-95d8a436.js +3049 -0
- package/assets/percentage-calculator-9402d8b0.js +1 -0
- package/assets/perl-36ad82fa.js +6 -0
- package/assets/pgsql-e710ca22.js +6 -0
- package/assets/phone-parser-and-formatter-afcb0e67.js +7 -0
- package/assets/php-9f7865da.js +6 -0
- package/assets/pla-54a12d9b.js +6 -0
- package/assets/postiats-7c2e9d70.js +6 -0
- package/assets/powerquery-f1a5c841.js +6 -0
- package/assets/powershell-da6840f5.js +6 -0
- package/assets/prime.worker.min-e367bd53.js +2 -0
- package/assets/protobuf-1aff1783.js +7 -0
- package/assets/public-api-1d5b2fbb.js +134 -0
- package/assets/pug-58d85519.js +6 -0
- package/assets/python-f562a315.js +6 -0
- package/assets/qr-code-generator-ca3ee0d1.js +1 -0
- package/assets/qsharp-3747268d.js +6 -0
- package/assets/queryParams-58db1e7b.js +1 -0
- package/assets/r-3faaa0ed.js +6 -0
- package/assets/random-port-generator-1c387010.css +1 -0
- package/assets/random-port-generator-ad07fddf.js +1 -0
- package/assets/razor-ab3af78d.js +6 -0
- package/assets/redis-e60e99b1.js +6 -0
- package/assets/redshift-9471542a.js +6 -0
- package/assets/regex-memo-677bdef7.css +1 -0
- package/assets/regex-memo-f19e5afd.js +1 -0
- package/assets/regex-tester-3401d417.js +87 -0
- package/assets/restructuredtext-2ed0fd83.js +6 -0
- package/assets/roman-numeral-converter-0e069c84.js +1 -0
- package/assets/roman-numeral-converter-fae8a4be.css +1 -0
- package/assets/rsa-key-pair-generator-90bf1bd4.js +1 -0
- package/assets/ruby-25cf1311.js +6 -0
- package/assets/rust-ed06c9d7.js +6 -0
- package/assets/safelink-decoder-bda49476.js +1 -0
- package/assets/sb-c1c59486.js +6 -0
- package/assets/scala-b8919493.js +6 -0
- package/assets/scheme-03c92c15.js +6 -0
- package/assets/scss-3439df1c.js +8 -0
- package/assets/shell-5561a5b3.js +6 -0
- package/assets/slugify-string-3a9209be.js +1 -0
- package/assets/solidity-d6124224.js +6 -0
- package/assets/sophia-8f79d2a2.js +6 -0
- package/assets/sparql-8602c7d8.js +6 -0
- package/assets/sql-435600dc.js +6 -0
- package/assets/sql-prettify-333609a0.js +21 -0
- package/assets/sql-prettify-e3b0c442.css +0 -0
- package/assets/st-aef311b0.js +6 -0
- package/assets/string-obfuscator-bd8beed1.js +1 -0
- package/assets/svg-placeholder-generator-467d394f.js +6 -0
- package/assets/svg-placeholder-generator-60893440.css +1 -0
- package/assets/swift-9dc68841.js +8 -0
- package/assets/systemverilog-46198f6a.js +6 -0
- package/assets/tcl-cb6e370b.js +6 -0
- package/assets/temperature-converter-d9084f7b.js +1 -0
- package/assets/text-diff-1862df68.css +1 -0
- package/assets/text-diff-4b33871e.js +738 -0
- package/assets/text-statistics-61dbfe91.js +1 -0
- package/assets/text-to-binary-7ba97b8f.js +1 -0
- package/assets/text-to-nato-alphabet-600e4313.js +1 -0
- package/assets/text-to-unicode-abb6c3c7.js +1 -0
- package/assets/token-generator.service-e0fc52bc.js +1 -0
- package/assets/token-generator.tool-412a186d.js +1 -0
- package/assets/token-generator.tool-da0729d3.css +1 -0
- package/assets/toml-esm-9c5f6a1e.js +17 -0
- package/assets/toml-to-json-6024b95e.js +1 -0
- package/assets/toml-to-yaml-cee705ee.js +1 -0
- package/assets/toml.services-387bcfeb.js +1 -0
- package/assets/tsMode-2b8efb49.js +16 -0
- package/assets/twig-2fc36860.js +6 -0
- package/assets/typescript-08d91f25.js +6 -0
- package/assets/ulid-generator-0502ccc9.js +2 -0
- package/assets/url-encoder-db05c372.js +1 -0
- package/assets/url-parser-05963146.css +1 -0
- package/assets/url-parser-e5be6a08.js +1 -0
- package/assets/use-form-item-5820adda.js +1 -0
- package/assets/use-locale-6feb5d00.js +1 -0
- package/assets/useQRCode-9932c610.js +59 -0
- package/assets/user-agent-parser-ecca9baf.js +1 -0
- package/assets/uuid-generator-847e051b.css +1 -0
- package/assets/uuid-generator-85f83e69.js +2 -0
- package/assets/vb-c8fb3e3d.js +6 -0
- package/assets/wgsl-36d9888f.js +303 -0
- package/assets/wifi-qr-code-generator-947e00cf.js +1 -0
- package/assets/workbox-window.prod.es5-a7b12eab.js +2 -0
- package/assets/xml-4047b2d6.js +6 -0
- package/assets/xml-formatter-773be192.js +2 -0
- package/assets/xml-formatter.service-9d7978b3.js +4 -0
- package/assets/xml-to-json-26437f78.js +1 -0
- package/assets/yaml-5e52994c.js +6 -0
- package/assets/yaml-to-json-7b20eabd.js +1 -0
- package/assets/yaml-to-toml-17947e2d.js +2 -0
- package/assets/yaml-viewer-96cfa9ad.js +1 -0
- package/assets/yaml-viewer-dd416632.css +1 -0
- package/banner.png +0 -0
- package/browserconfig.xml +9 -0
- package/favicon-16x16.png +0 -0
- package/favicon-32x32.png +0 -0
- package/favicon.ico +0 -0
- package/humans.txt +4 -0
- package/index.html +54 -0
- package/logo.png +0 -0
- package/manifest.webmanifest +1 -0
- package/mstile-144x144.png +0 -0
- package/mstile-150x150.png +0 -0
- package/mstile-310x150.png +0 -0
- package/mstile-310x310.png +0 -0
- package/mstile-70x70.png +0 -0
- package/package.json +22 -0
- package/plugin.json +1724 -0
- package/robots.txt +2 -0
- package/safari-pinned-tab.svg +6 -0
- package/sw.js +1 -0
- package/workbox-3e8df8c8.js +1 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{m as Fe}from"./text-diff-4b33871e.js";import"./index-01d0fc63.js";/*!-----------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Version: 0.43.0(94c055bcbdd49f04a0fa15515e848542a79fb948)
|
|
4
|
+
* Released under the MIT license
|
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
+
*-----------------------------------------------------------------------------*/var Le=Object.defineProperty,je=Object.getOwnPropertyDescriptor,Ne=Object.getOwnPropertyNames,We=Object.prototype.hasOwnProperty,J=(t,n,i,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let e of Ne(n))!We.call(t,e)&&e!==i&&Le(t,e,{get:()=>n[e],enumerable:!(r=je(n,e))||r.enumerable});return t},Ue=(t,n,i)=>(J(t,n,"default"),i&&J(i,n,"default")),c={};Ue(c,Fe);var Oe=2*60*1e3,Ve=class{_defaults;_idleCheckInterval;_lastUsedTime;_configChangeListener;_worker;_client;constructor(t){this._defaults=t,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>Oe&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=c.editor.createWebWorker({moduleId:"vs/language/css/cssWorker",label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...t){let n;return this._getClient().then(i=>{n=i}).then(i=>{if(this._worker)return this._worker.withSyncedResources(t)}).then(i=>n)}},Y;(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647})(Y||(Y={}));var W;(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647})(W||(W={}));var k;(function(t){function n(r,e){return r===Number.MAX_VALUE&&(r=W.MAX_VALUE),e===Number.MAX_VALUE&&(e=W.MAX_VALUE),{line:r,character:e}}t.create=n;function i(r){var e=r;return s.objectLiteral(e)&&s.uinteger(e.line)&&s.uinteger(e.character)}t.is=i})(k||(k={}));var p;(function(t){function n(r,e,a,o){if(s.uinteger(r)&&s.uinteger(e)&&s.uinteger(a)&&s.uinteger(o))return{start:k.create(r,e),end:k.create(a,o)};if(k.is(r)&&k.is(e))return{start:r,end:e};throw new Error("Range#create called with invalid arguments["+r+", "+e+", "+a+", "+o+"]")}t.create=n;function i(r){var e=r;return s.objectLiteral(e)&&k.is(e.start)&&k.is(e.end)}t.is=i})(p||(p={}));var z;(function(t){function n(r,e){return{uri:r,range:e}}t.create=n;function i(r){var e=r;return s.defined(e)&&p.is(e.range)&&(s.string(e.uri)||s.undefined(e.uri))}t.is=i})(z||(z={}));var Z;(function(t){function n(r,e,a,o){return{targetUri:r,targetRange:e,targetSelectionRange:a,originSelectionRange:o}}t.create=n;function i(r){var e=r;return s.defined(e)&&p.is(e.targetRange)&&s.string(e.targetUri)&&(p.is(e.targetSelectionRange)||s.undefined(e.targetSelectionRange))&&(p.is(e.originSelectionRange)||s.undefined(e.originSelectionRange))}t.is=i})(Z||(Z={}));var X;(function(t){function n(r,e,a,o){return{red:r,green:e,blue:a,alpha:o}}t.create=n;function i(r){var e=r;return s.numberRange(e.red,0,1)&&s.numberRange(e.green,0,1)&&s.numberRange(e.blue,0,1)&&s.numberRange(e.alpha,0,1)}t.is=i})(X||(X={}));var K;(function(t){function n(r,e){return{range:r,color:e}}t.create=n;function i(r){var e=r;return p.is(e.range)&&X.is(e.color)}t.is=i})(K||(K={}));var ee;(function(t){function n(r,e,a){return{label:r,textEdit:e,additionalTextEdits:a}}t.create=n;function i(r){var e=r;return s.string(e.label)&&(s.undefined(e.textEdit)||x.is(e))&&(s.undefined(e.additionalTextEdits)||s.typedArray(e.additionalTextEdits,x.is))}t.is=i})(ee||(ee={}));var R;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(R||(R={}));var te;(function(t){function n(r,e,a,o,u){var g={startLine:r,endLine:e};return s.defined(a)&&(g.startCharacter=a),s.defined(o)&&(g.endCharacter=o),s.defined(u)&&(g.kind=u),g}t.create=n;function i(r){var e=r;return s.uinteger(e.startLine)&&s.uinteger(e.startLine)&&(s.undefined(e.startCharacter)||s.uinteger(e.startCharacter))&&(s.undefined(e.endCharacter)||s.uinteger(e.endCharacter))&&(s.undefined(e.kind)||s.string(e.kind))}t.is=i})(te||(te={}));var B;(function(t){function n(r,e){return{location:r,message:e}}t.create=n;function i(r){var e=r;return s.defined(e)&&z.is(e.location)&&s.string(e.message)}t.is=i})(B||(B={}));var y;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(y||(y={}));var re;(function(t){t.Unnecessary=1,t.Deprecated=2})(re||(re={}));var ne;(function(t){function n(i){var r=i;return r!=null&&s.string(r.href)}t.is=n})(ne||(ne={}));var U;(function(t){function n(r,e,a,o,u,g){var d={range:r,message:e};return s.defined(a)&&(d.severity=a),s.defined(o)&&(d.code=o),s.defined(u)&&(d.source=u),s.defined(g)&&(d.relatedInformation=g),d}t.create=n;function i(r){var e,a=r;return s.defined(a)&&p.is(a.range)&&s.string(a.message)&&(s.number(a.severity)||s.undefined(a.severity))&&(s.integer(a.code)||s.string(a.code)||s.undefined(a.code))&&(s.undefined(a.codeDescription)||s.string((e=a.codeDescription)===null||e===void 0?void 0:e.href))&&(s.string(a.source)||s.undefined(a.source))&&(s.undefined(a.relatedInformation)||s.typedArray(a.relatedInformation,B.is))}t.is=i})(U||(U={}));var D;(function(t){function n(r,e){for(var a=[],o=2;o<arguments.length;o++)a[o-2]=arguments[o];var u={title:r,command:e};return s.defined(a)&&a.length>0&&(u.arguments=a),u}t.create=n;function i(r){var e=r;return s.defined(e)&&s.string(e.title)&&s.string(e.command)}t.is=i})(D||(D={}));var x;(function(t){function n(a,o){return{range:a,newText:o}}t.replace=n;function i(a,o){return{range:{start:a,end:a},newText:o}}t.insert=i;function r(a){return{range:a,newText:""}}t.del=r;function e(a){var o=a;return s.objectLiteral(o)&&s.string(o.newText)&&p.is(o.range)}t.is=e})(x||(x={}));var I;(function(t){function n(r,e,a){var o={label:r};return e!==void 0&&(o.needsConfirmation=e),a!==void 0&&(o.description=a),o}t.create=n;function i(r){var e=r;return e!==void 0&&s.objectLiteral(e)&&s.string(e.label)&&(s.boolean(e.needsConfirmation)||e.needsConfirmation===void 0)&&(s.string(e.description)||e.description===void 0)}t.is=i})(I||(I={}));var m;(function(t){function n(i){var r=i;return typeof r=="string"}t.is=n})(m||(m={}));var E;(function(t){function n(a,o,u){return{range:a,newText:o,annotationId:u}}t.replace=n;function i(a,o,u){return{range:{start:a,end:a},newText:o,annotationId:u}}t.insert=i;function r(a,o){return{range:a,newText:"",annotationId:o}}t.del=r;function e(a){var o=a;return x.is(o)&&(I.is(o.annotationId)||m.is(o.annotationId))}t.is=e})(E||(E={}));var O;(function(t){function n(r,e){return{textDocument:r,edits:e}}t.create=n;function i(r){var e=r;return s.defined(e)&&V.is(e.textDocument)&&Array.isArray(e.edits)}t.is=i})(O||(O={}));var M;(function(t){function n(r,e,a){var o={kind:"create",uri:r};return e!==void 0&&(e.overwrite!==void 0||e.ignoreIfExists!==void 0)&&(o.options=e),a!==void 0&&(o.annotationId=a),o}t.create=n;function i(r){var e=r;return e&&e.kind==="create"&&s.string(e.uri)&&(e.options===void 0||(e.options.overwrite===void 0||s.boolean(e.options.overwrite))&&(e.options.ignoreIfExists===void 0||s.boolean(e.options.ignoreIfExists)))&&(e.annotationId===void 0||m.is(e.annotationId))}t.is=i})(M||(M={}));var T;(function(t){function n(r,e,a,o){var u={kind:"rename",oldUri:r,newUri:e};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(u.options=a),o!==void 0&&(u.annotationId=o),u}t.create=n;function i(r){var e=r;return e&&e.kind==="rename"&&s.string(e.oldUri)&&s.string(e.newUri)&&(e.options===void 0||(e.options.overwrite===void 0||s.boolean(e.options.overwrite))&&(e.options.ignoreIfExists===void 0||s.boolean(e.options.ignoreIfExists)))&&(e.annotationId===void 0||m.is(e.annotationId))}t.is=i})(T||(T={}));var S;(function(t){function n(r,e,a){var o={kind:"delete",uri:r};return e!==void 0&&(e.recursive!==void 0||e.ignoreIfNotExists!==void 0)&&(o.options=e),a!==void 0&&(o.annotationId=a),o}t.create=n;function i(r){var e=r;return e&&e.kind==="delete"&&s.string(e.uri)&&(e.options===void 0||(e.options.recursive===void 0||s.boolean(e.options.recursive))&&(e.options.ignoreIfNotExists===void 0||s.boolean(e.options.ignoreIfNotExists)))&&(e.annotationId===void 0||m.is(e.annotationId))}t.is=i})(S||(S={}));var $;(function(t){function n(i){var r=i;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(function(e){return s.string(e.kind)?M.is(e)||T.is(e)||S.is(e):O.is(e)}))}t.is=n})($||($={}));var N=function(){function t(n,i){this.edits=n,this.changeAnnotations=i}return t.prototype.insert=function(n,i,r){var e,a;if(r===void 0?e=x.insert(n,i):m.is(r)?(a=r,e=E.insert(n,i,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),e=E.insert(n,i,a)),this.edits.push(e),a!==void 0)return a},t.prototype.replace=function(n,i,r){var e,a;if(r===void 0?e=x.replace(n,i):m.is(r)?(a=r,e=E.replace(n,i,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),e=E.replace(n,i,a)),this.edits.push(e),a!==void 0)return a},t.prototype.delete=function(n,i){var r,e;if(i===void 0?r=x.del(n):m.is(i)?(e=i,r=E.del(n,i)):(this.assertChangeAnnotations(this.changeAnnotations),e=this.changeAnnotations.manage(i),r=E.del(n,e)),this.edits.push(r),e!==void 0)return e},t.prototype.add=function(n){this.edits.push(n)},t.prototype.all=function(){return this.edits},t.prototype.clear=function(){this.edits.splice(0,this.edits.length)},t.prototype.assertChangeAnnotations=function(n){if(n===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},t}(),ie=function(){function t(n){this._annotations=n===void 0?Object.create(null):n,this._counter=0,this._size=0}return t.prototype.all=function(){return this._annotations},Object.defineProperty(t.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),t.prototype.manage=function(n,i){var r;if(m.is(n)?r=n:(r=this.nextId(),i=n),this._annotations[r]!==void 0)throw new Error("Id "+r+" is already in use.");if(i===void 0)throw new Error("No annotation provided for id "+r);return this._annotations[r]=i,this._size++,r},t.prototype.nextId=function(){return this._counter++,this._counter.toString()},t}();(function(){function t(n){var i=this;this._textEditChanges=Object.create(null),n!==void 0?(this._workspaceEdit=n,n.documentChanges?(this._changeAnnotations=new ie(n.changeAnnotations),n.changeAnnotations=this._changeAnnotations.all(),n.documentChanges.forEach(function(r){if(O.is(r)){var e=new N(r.edits,i._changeAnnotations);i._textEditChanges[r.textDocument.uri]=e}})):n.changes&&Object.keys(n.changes).forEach(function(r){var e=new N(n.changes[r]);i._textEditChanges[r]=e})):this._workspaceEdit={}}return Object.defineProperty(t.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),t.prototype.getTextEditChange=function(n){if(V.is(n)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i={uri:n.uri,version:n.version},r=this._textEditChanges[i.uri];if(!r){var e=[],a={textDocument:i,edits:e};this._workspaceEdit.documentChanges.push(a),r=new N(e,this._changeAnnotations),this._textEditChanges[i.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var r=this._textEditChanges[n];if(!r){var e=[];this._workspaceEdit.changes[n]=e,r=new N(e),this._textEditChanges[n]=r}return r}},t.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new ie,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},t.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},t.prototype.createFile=function(n,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var e;I.is(i)||m.is(i)?e=i:r=i;var a,o;if(e===void 0?a=M.create(n,r):(o=m.is(e)?e:this._changeAnnotations.manage(e),a=M.create(n,r,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o},t.prototype.renameFile=function(n,i,r,e){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var a;I.is(r)||m.is(r)?a=r:e=r;var o,u;if(a===void 0?o=T.create(n,i,e):(u=m.is(a)?a:this._changeAnnotations.manage(a),o=T.create(n,i,e,u)),this._workspaceEdit.documentChanges.push(o),u!==void 0)return u},t.prototype.deleteFile=function(n,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var e;I.is(i)||m.is(i)?e=i:r=i;var a,o;if(e===void 0?a=S.create(n,r):(o=m.is(e)?e:this._changeAnnotations.manage(e),a=S.create(n,r,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o},t})();var ae;(function(t){function n(r){return{uri:r}}t.create=n;function i(r){var e=r;return s.defined(e)&&s.string(e.uri)}t.is=i})(ae||(ae={}));var oe;(function(t){function n(r,e){return{uri:r,version:e}}t.create=n;function i(r){var e=r;return s.defined(e)&&s.string(e.uri)&&s.integer(e.version)}t.is=i})(oe||(oe={}));var V;(function(t){function n(r,e){return{uri:r,version:e}}t.create=n;function i(r){var e=r;return s.defined(e)&&s.string(e.uri)&&(e.version===null||s.integer(e.version))}t.is=i})(V||(V={}));var se;(function(t){function n(r,e,a,o){return{uri:r,languageId:e,version:a,text:o}}t.create=n;function i(r){var e=r;return s.defined(e)&&s.string(e.uri)&&s.string(e.languageId)&&s.integer(e.version)&&s.string(e.text)}t.is=i})(se||(se={}));var F;(function(t){t.PlainText="plaintext",t.Markdown="markdown"})(F||(F={}));(function(t){function n(i){var r=i;return r===t.PlainText||r===t.Markdown}t.is=n})(F||(F={}));var q;(function(t){function n(i){var r=i;return s.objectLiteral(i)&&F.is(r.kind)&&s.string(r.value)}t.is=n})(q||(q={}));var l;(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})(l||(l={}));var Q;(function(t){t.PlainText=1,t.Snippet=2})(Q||(Q={}));var ue;(function(t){t.Deprecated=1})(ue||(ue={}));var ce;(function(t){function n(r,e,a){return{newText:r,insert:e,replace:a}}t.create=n;function i(r){var e=r;return e&&s.string(e.newText)&&p.is(e.insert)&&p.is(e.replace)}t.is=i})(ce||(ce={}));var de;(function(t){t.asIs=1,t.adjustIndentation=2})(de||(de={}));var fe;(function(t){function n(i){return{label:i}}t.create=n})(fe||(fe={}));var ge;(function(t){function n(i,r){return{items:i||[],isIncomplete:!!r}}t.create=n})(ge||(ge={}));var H;(function(t){function n(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=n;function i(r){var e=r;return s.string(e)||s.objectLiteral(e)&&s.string(e.language)&&s.string(e.value)}t.is=i})(H||(H={}));var le;(function(t){function n(i){var r=i;return!!r&&s.objectLiteral(r)&&(q.is(r.contents)||H.is(r.contents)||s.typedArray(r.contents,H.is))&&(i.range===void 0||p.is(i.range))}t.is=n})(le||(le={}));var he;(function(t){function n(i,r){return r?{label:i,documentation:r}:{label:i}}t.create=n})(he||(he={}));var ve;(function(t){function n(i,r){for(var e=[],a=2;a<arguments.length;a++)e[a-2]=arguments[a];var o={label:i};return s.defined(r)&&(o.documentation=r),s.defined(e)?o.parameters=e:o.parameters=[],o}t.create=n})(ve||(ve={}));var P;(function(t){t.Text=1,t.Read=2,t.Write=3})(P||(P={}));var pe;(function(t){function n(i,r){var e={range:i};return s.number(r)&&(e.kind=r),e}t.create=n})(pe||(pe={}));var h;(function(t){t.File=1,t.Module=2,t.Namespace=3,t.Package=4,t.Class=5,t.Method=6,t.Property=7,t.Field=8,t.Constructor=9,t.Enum=10,t.Interface=11,t.Function=12,t.Variable=13,t.Constant=14,t.String=15,t.Number=16,t.Boolean=17,t.Array=18,t.Object=19,t.Key=20,t.Null=21,t.EnumMember=22,t.Struct=23,t.Event=24,t.Operator=25,t.TypeParameter=26})(h||(h={}));var me;(function(t){t.Deprecated=1})(me||(me={}));var _e;(function(t){function n(i,r,e,a,o){var u={name:i,kind:r,location:{uri:a,range:e}};return o&&(u.containerName=o),u}t.create=n})(_e||(_e={}));var we;(function(t){function n(r,e,a,o,u,g){var d={name:r,detail:e,kind:a,range:o,selectionRange:u};return g!==void 0&&(d.children=g),d}t.create=n;function i(r){var e=r;return e&&s.string(e.name)&&s.number(e.kind)&&p.is(e.range)&&p.is(e.selectionRange)&&(e.detail===void 0||s.string(e.detail))&&(e.deprecated===void 0||s.boolean(e.deprecated))&&(e.children===void 0||Array.isArray(e.children))&&(e.tags===void 0||Array.isArray(e.tags))}t.is=i})(we||(we={}));var ke;(function(t){t.Empty="",t.QuickFix="quickfix",t.Refactor="refactor",t.RefactorExtract="refactor.extract",t.RefactorInline="refactor.inline",t.RefactorRewrite="refactor.rewrite",t.Source="source",t.SourceOrganizeImports="source.organizeImports",t.SourceFixAll="source.fixAll"})(ke||(ke={}));var be;(function(t){function n(r,e){var a={diagnostics:r};return e!=null&&(a.only=e),a}t.create=n;function i(r){var e=r;return s.defined(e)&&s.typedArray(e.diagnostics,U.is)&&(e.only===void 0||s.typedArray(e.only,s.string))}t.is=i})(be||(be={}));var Ee;(function(t){function n(r,e,a){var o={title:r},u=!0;return typeof e=="string"?(u=!1,o.kind=e):D.is(e)?o.command=e:o.edit=e,u&&a!==void 0&&(o.kind=a),o}t.create=n;function i(r){var e=r;return e&&s.string(e.title)&&(e.diagnostics===void 0||s.typedArray(e.diagnostics,U.is))&&(e.kind===void 0||s.string(e.kind))&&(e.edit!==void 0||e.command!==void 0)&&(e.command===void 0||D.is(e.command))&&(e.isPreferred===void 0||s.boolean(e.isPreferred))&&(e.edit===void 0||$.is(e.edit))}t.is=i})(Ee||(Ee={}));var xe;(function(t){function n(r,e){var a={range:r};return s.defined(e)&&(a.data=e),a}t.create=n;function i(r){var e=r;return s.defined(e)&&p.is(e.range)&&(s.undefined(e.command)||D.is(e.command))}t.is=i})(xe||(xe={}));var Ce;(function(t){function n(r,e){return{tabSize:r,insertSpaces:e}}t.create=n;function i(r){var e=r;return s.defined(e)&&s.uinteger(e.tabSize)&&s.boolean(e.insertSpaces)}t.is=i})(Ce||(Ce={}));var Ae;(function(t){function n(r,e,a){return{range:r,target:e,data:a}}t.create=n;function i(r){var e=r;return s.defined(e)&&p.is(e.range)&&(s.undefined(e.target)||s.string(e.target))}t.is=i})(Ae||(Ae={}));var ye;(function(t){function n(r,e){return{range:r,parent:e}}t.create=n;function i(r){var e=r;return e!==void 0&&p.is(e.range)&&(e.parent===void 0||t.is(e.parent))}t.is=i})(ye||(ye={}));var Ie;(function(t){function n(a,o,u,g){return new He(a,o,u,g)}t.create=n;function i(a){var o=a;return!!(s.defined(o)&&s.string(o.uri)&&(s.undefined(o.languageId)||s.string(o.languageId))&&s.uinteger(o.lineCount)&&s.func(o.getText)&&s.func(o.positionAt)&&s.func(o.offsetAt))}t.is=i;function r(a,o){for(var u=a.getText(),g=e(o,function(A,j){var G=A.range.start.line-j.range.start.line;return G===0?A.range.start.character-j.range.start.character:G}),d=u.length,v=g.length-1;v>=0;v--){var w=g[v],b=a.offsetAt(w.range.start),f=a.offsetAt(w.range.end);if(f<=d)u=u.substring(0,b)+w.newText+u.substring(f,u.length);else throw new Error("Overlapping edit");d=b}return u}t.applyEdits=r;function e(a,o){if(a.length<=1)return a;var u=a.length/2|0,g=a.slice(0,u),d=a.slice(u);e(g,o),e(d,o);for(var v=0,w=0,b=0;v<g.length&&w<d.length;){var f=o(g[v],d[w]);f<=0?a[b++]=g[v++]:a[b++]=d[w++]}for(;v<g.length;)a[b++]=g[v++];for(;w<d.length;)a[b++]=d[w++];return a}})(Ie||(Ie={}));var He=function(){function t(n,i,r,e){this._uri=n,this._languageId=i,this._version=r,this._content=e,this._lineOffsets=void 0}return Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),t.prototype.getText=function(n){if(n){var i=this.offsetAt(n.start),r=this.offsetAt(n.end);return this._content.substring(i,r)}return this._content},t.prototype.update=function(n,i){this._content=n.text,this._version=i,this._lineOffsets=void 0},t.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var n=[],i=this._content,r=!0,e=0;e<i.length;e++){r&&(n.push(e),r=!1);var a=i.charAt(e);r=a==="\r"||a===`
|
|
7
|
+
`,a==="\r"&&e+1<i.length&&i.charAt(e+1)===`
|
|
8
|
+
`&&e++}r&&i.length>0&&n.push(i.length),this._lineOffsets=n}return this._lineOffsets},t.prototype.positionAt=function(n){n=Math.max(Math.min(n,this._content.length),0);var i=this.getLineOffsets(),r=0,e=i.length;if(e===0)return k.create(0,n);for(;r<e;){var a=Math.floor((r+e)/2);i[a]>n?e=a:r=a+1}var o=r-1;return k.create(o,n-i[o])},t.prototype.offsetAt=function(n){var i=this.getLineOffsets();if(n.line>=i.length)return this._content.length;if(n.line<0)return 0;var r=i[n.line],e=n.line+1<i.length?i[n.line+1]:this._content.length;return Math.max(Math.min(r+n.character,e),r)},Object.defineProperty(t.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),t}(),s;(function(t){var n=Object.prototype.toString;function i(f){return typeof f<"u"}t.defined=i;function r(f){return typeof f>"u"}t.undefined=r;function e(f){return f===!0||f===!1}t.boolean=e;function a(f){return n.call(f)==="[object String]"}t.string=a;function o(f){return n.call(f)==="[object Number]"}t.number=o;function u(f,A,j){return n.call(f)==="[object Number]"&&A<=f&&f<=j}t.numberRange=u;function g(f){return n.call(f)==="[object Number]"&&-2147483648<=f&&f<=2147483647}t.integer=g;function d(f){return n.call(f)==="[object Number]"&&0<=f&&f<=2147483647}t.uinteger=d;function v(f){return n.call(f)==="[object Function]"}t.func=v;function w(f){return f!==null&&typeof f=="object"}t.objectLiteral=w;function b(f,A){return Array.isArray(f)&&f.every(A)}t.typedArray=b})(s||(s={}));var ze=class{constructor(t,n,i){this._languageId=t,this._worker=n;const r=a=>{let o=a.getLanguageId();if(o!==this._languageId)return;let u;this._listener[a.uri.toString()]=a.onDidChangeContent(()=>{window.clearTimeout(u),u=window.setTimeout(()=>this._doValidate(a.uri,o),500)}),this._doValidate(a.uri,o)},e=a=>{c.editor.setModelMarkers(a,this._languageId,[]);let o=a.uri.toString(),u=this._listener[o];u&&(u.dispose(),delete this._listener[o])};this._disposables.push(c.editor.onDidCreateModel(r)),this._disposables.push(c.editor.onWillDisposeModel(e)),this._disposables.push(c.editor.onDidChangeModelLanguage(a=>{e(a.model),r(a.model)})),this._disposables.push(i(a=>{c.editor.getModels().forEach(o=>{o.getLanguageId()===this._languageId&&(e(o),r(o))})})),this._disposables.push({dispose:()=>{c.editor.getModels().forEach(e);for(let a in this._listener)this._listener[a].dispose()}}),c.editor.getModels().forEach(r)}_disposables=[];_listener=Object.create(null);dispose(){this._disposables.forEach(t=>t&&t.dispose()),this._disposables.length=0}_doValidate(t,n){this._worker(t).then(i=>i.doValidation(t.toString())).then(i=>{const r=i.map(a=>Be(t,a));let e=c.editor.getModel(t);e&&e.getLanguageId()===n&&c.editor.setModelMarkers(e,n,r)}).then(void 0,i=>{console.error(i)})}};function Xe(t){switch(t){case y.Error:return c.MarkerSeverity.Error;case y.Warning:return c.MarkerSeverity.Warning;case y.Information:return c.MarkerSeverity.Info;case y.Hint:return c.MarkerSeverity.Hint;default:return c.MarkerSeverity.Info}}function Be(t,n){let i=typeof n.code=="number"?String(n.code):n.code;return{severity:Xe(n.severity),startLineNumber:n.range.start.line+1,startColumn:n.range.start.character+1,endLineNumber:n.range.end.line+1,endColumn:n.range.end.character+1,message:n.message,code:i,source:n.source}}var $e=class{constructor(t,n){this._worker=t,this._triggerCharacters=n}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(t,n,i,r){const e=t.uri;return this._worker(e).then(a=>a.doComplete(e.toString(),C(n))).then(a=>{if(!a)return;const o=t.getWordUntilPosition(n),u=new c.Range(n.lineNumber,o.startColumn,n.lineNumber,o.endColumn),g=a.items.map(d=>{const v={label:d.label,insertText:d.insertText||d.label,sortText:d.sortText,filterText:d.filterText,documentation:d.documentation,detail:d.detail,command:Ge(d.command),range:u,kind:Qe(d.kind)};return d.textEdit&&(qe(d.textEdit)?v.range={insert:_(d.textEdit.insert),replace:_(d.textEdit.replace)}:v.range=_(d.textEdit.range),v.insertText=d.textEdit.newText),d.additionalTextEdits&&(v.additionalTextEdits=d.additionalTextEdits.map(L)),d.insertTextFormat===Q.Snippet&&(v.insertTextRules=c.languages.CompletionItemInsertTextRule.InsertAsSnippet),v});return{isIncomplete:a.isIncomplete,suggestions:g}})}};function C(t){if(t)return{character:t.column-1,line:t.lineNumber-1}}function De(t){if(t)return{start:{line:t.startLineNumber-1,character:t.startColumn-1},end:{line:t.endLineNumber-1,character:t.endColumn-1}}}function _(t){if(t)return new c.Range(t.start.line+1,t.start.character+1,t.end.line+1,t.end.character+1)}function qe(t){return typeof t.insert<"u"&&typeof t.replace<"u"}function Qe(t){const n=c.languages.CompletionItemKind;switch(t){case l.Text:return n.Text;case l.Method:return n.Method;case l.Function:return n.Function;case l.Constructor:return n.Constructor;case l.Field:return n.Field;case l.Variable:return n.Variable;case l.Class:return n.Class;case l.Interface:return n.Interface;case l.Module:return n.Module;case l.Property:return n.Property;case l.Unit:return n.Unit;case l.Value:return n.Value;case l.Enum:return n.Enum;case l.Keyword:return n.Keyword;case l.Snippet:return n.Snippet;case l.Color:return n.Color;case l.File:return n.File;case l.Reference:return n.Reference}return n.Property}function L(t){if(t)return{range:_(t.range),text:t.newText}}function Ge(t){return t&&t.command==="editor.action.triggerSuggest"?{id:t.command,title:t.title,arguments:t.arguments}:void 0}var Je=class{constructor(t){this._worker=t}provideHover(t,n,i){let r=t.uri;return this._worker(r).then(e=>e.doHover(r.toString(),C(n))).then(e=>{if(e)return{range:_(e.range),contents:Ze(e.contents)}})}};function Ye(t){return t&&typeof t=="object"&&typeof t.kind=="string"}function Re(t){return typeof t=="string"?{value:t}:Ye(t)?t.kind==="plaintext"?{value:t.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:t.value}:{value:"```"+t.language+`
|
|
9
|
+
`+t.value+"\n```\n"}}function Ze(t){if(t)return Array.isArray(t)?t.map(Re):[Re(t)]}var Ke=class{constructor(t){this._worker=t}provideDocumentHighlights(t,n,i){const r=t.uri;return this._worker(r).then(e=>e.findDocumentHighlights(r.toString(),C(n))).then(e=>{if(e)return e.map(a=>({range:_(a.range),kind:et(a.kind)}))})}};function et(t){switch(t){case P.Read:return c.languages.DocumentHighlightKind.Read;case P.Write:return c.languages.DocumentHighlightKind.Write;case P.Text:return c.languages.DocumentHighlightKind.Text}return c.languages.DocumentHighlightKind.Text}var tt=class{constructor(t){this._worker=t}provideDefinition(t,n,i){const r=t.uri;return this._worker(r).then(e=>e.findDefinition(r.toString(),C(n))).then(e=>{if(e)return[Me(e)]})}};function Me(t){return{uri:c.Uri.parse(t.uri),range:_(t.range)}}var rt=class{constructor(t){this._worker=t}provideReferences(t,n,i,r){const e=t.uri;return this._worker(e).then(a=>a.findReferences(e.toString(),C(n))).then(a=>{if(a)return a.map(Me)})}},nt=class{constructor(t){this._worker=t}provideRenameEdits(t,n,i,r){const e=t.uri;return this._worker(e).then(a=>a.doRename(e.toString(),C(n),i)).then(a=>it(a))}};function it(t){if(!t||!t.changes)return;let n=[];for(let i in t.changes){const r=c.Uri.parse(i);for(let e of t.changes[i])n.push({resource:r,versionId:void 0,textEdit:{range:_(e.range),text:e.newText}})}return{edits:n}}var at=class{constructor(t){this._worker=t}provideDocumentSymbols(t,n){const i=t.uri;return this._worker(i).then(r=>r.findDocumentSymbols(i.toString())).then(r=>{if(r)return r.map(e=>({name:e.name,detail:"",containerName:e.containerName,kind:ot(e.kind),range:_(e.location.range),selectionRange:_(e.location.range),tags:[]}))})}};function ot(t){let n=c.languages.SymbolKind;switch(t){case h.File:return n.Array;case h.Module:return n.Module;case h.Namespace:return n.Namespace;case h.Package:return n.Package;case h.Class:return n.Class;case h.Method:return n.Method;case h.Property:return n.Property;case h.Field:return n.Field;case h.Constructor:return n.Constructor;case h.Enum:return n.Enum;case h.Interface:return n.Interface;case h.Function:return n.Function;case h.Variable:return n.Variable;case h.Constant:return n.Constant;case h.String:return n.String;case h.Number:return n.Number;case h.Boolean:return n.Boolean;case h.Array:return n.Array}return n.Function}var vt=class{constructor(t){this._worker=t}provideLinks(t,n){const i=t.uri;return this._worker(i).then(r=>r.findDocumentLinks(i.toString())).then(r=>{if(r)return{links:r.map(e=>({range:_(e.range),url:e.target}))}})}},st=class{constructor(t){this._worker=t}provideDocumentFormattingEdits(t,n,i){const r=t.uri;return this._worker(r).then(e=>e.format(r.toString(),null,Te(n)).then(a=>{if(!(!a||a.length===0))return a.map(L)}))}},ut=class{constructor(t){this._worker=t}canFormatMultipleRanges=!1;provideDocumentRangeFormattingEdits(t,n,i,r){const e=t.uri;return this._worker(e).then(a=>a.format(e.toString(),De(n),Te(i)).then(o=>{if(!(!o||o.length===0))return o.map(L)}))}};function Te(t){return{tabSize:t.tabSize,insertSpaces:t.insertSpaces}}var ct=class{constructor(t){this._worker=t}provideDocumentColors(t,n){const i=t.uri;return this._worker(i).then(r=>r.findDocumentColors(i.toString())).then(r=>{if(r)return r.map(e=>({color:e.color,range:_(e.range)}))})}provideColorPresentations(t,n,i){const r=t.uri;return this._worker(r).then(e=>e.getColorPresentations(r.toString(),n.color,De(n.range))).then(e=>{if(e)return e.map(a=>{let o={label:a.label};return a.textEdit&&(o.textEdit=L(a.textEdit)),a.additionalTextEdits&&(o.additionalTextEdits=a.additionalTextEdits.map(L)),o})})}},dt=class{constructor(t){this._worker=t}provideFoldingRanges(t,n,i){const r=t.uri;return this._worker(r).then(e=>e.getFoldingRanges(r.toString(),n)).then(e=>{if(e)return e.map(a=>{const o={start:a.startLine+1,end:a.endLine+1};return typeof a.kind<"u"&&(o.kind=ft(a.kind)),o})})}};function ft(t){switch(t){case R.Comment:return c.languages.FoldingRangeKind.Comment;case R.Imports:return c.languages.FoldingRangeKind.Imports;case R.Region:return c.languages.FoldingRangeKind.Region}}var gt=class{constructor(t){this._worker=t}provideSelectionRanges(t,n,i){const r=t.uri;return this._worker(r).then(e=>e.getSelectionRanges(r.toString(),n.map(C))).then(e=>{if(e)return e.map(a=>{const o=[];for(;a;)o.push({range:_(a.range)}),a=a.parent;return o})})}};function pt(t){const n=[],i=[],r=new Ve(t);n.push(r);const e=(...o)=>r.getLanguageServiceWorker(...o);function a(){const{languageId:o,modeConfiguration:u}=t;Se(i),u.completionItems&&i.push(c.languages.registerCompletionItemProvider(o,new $e(e,["/","-",":"]))),u.hovers&&i.push(c.languages.registerHoverProvider(o,new Je(e))),u.documentHighlights&&i.push(c.languages.registerDocumentHighlightProvider(o,new Ke(e))),u.definitions&&i.push(c.languages.registerDefinitionProvider(o,new tt(e))),u.references&&i.push(c.languages.registerReferenceProvider(o,new rt(e))),u.documentSymbols&&i.push(c.languages.registerDocumentSymbolProvider(o,new at(e))),u.rename&&i.push(c.languages.registerRenameProvider(o,new nt(e))),u.colors&&i.push(c.languages.registerColorProvider(o,new ct(e))),u.foldingRanges&&i.push(c.languages.registerFoldingRangeProvider(o,new dt(e))),u.diagnostics&&i.push(new ze(o,e,t.onDidChange)),u.selectionRanges&&i.push(c.languages.registerSelectionRangeProvider(o,new gt(e))),u.documentFormattingEdits&&i.push(c.languages.registerDocumentFormattingEditProvider(o,new st(e))),u.documentRangeFormattingEdits&&i.push(c.languages.registerDocumentRangeFormattingEditProvider(o,new ut(e)))}return a(),n.push(Pe(i)),Pe(n)}function Pe(t){return{dispose:()=>Se(t)}}function Se(t){for(;t.length;)t.pop().dispose()}export{$e as CompletionAdapter,tt as DefinitionAdapter,ze as DiagnosticsAdapter,ct as DocumentColorAdapter,st as DocumentFormattingEditProvider,Ke as DocumentHighlightAdapter,vt as DocumentLinkAdapter,ut as DocumentRangeFormattingEditProvider,at as DocumentSymbolAdapter,dt as FoldingRangeAdapter,Je as HoverAdapter,rt as ReferenceAdapter,nt as RenameAdapter,gt as SelectionRangeAdapter,Ve as WorkerManager,C as fromPosition,De as fromRange,pt as setupMode,_ as toRange,L as toTextEdit};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!-----------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Version: 0.43.0(94c055bcbdd49f04a0fa15515e848542a79fb948)
|
|
4
|
+
* Released under the MIT license
|
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
+
*-----------------------------------------------------------------------------*/var e={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},i={defaultToken:"",tokenPostfix:".cypher",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ALL","AND","AS","ASC","ASCENDING","BY","CALL","CASE","CONTAINS","CREATE","DELETE","DESC","DESCENDING","DETACH","DISTINCT","ELSE","END","ENDS","EXISTS","IN","IS","LIMIT","MANDATORY","MATCH","MERGE","NOT","ON","ON","OPTIONAL","OR","ORDER","REMOVE","RETURN","SET","SKIP","STARTS","THEN","UNION","UNWIND","WHEN","WHERE","WITH","XOR","YIELD"],builtinLiterals:["true","TRUE","false","FALSE","null","NULL"],builtinFunctions:["abs","acos","asin","atan","atan2","avg","ceil","coalesce","collect","cos","cot","count","degrees","e","endNode","exists","exp","floor","head","id","keys","labels","last","left","length","log","log10","lTrim","max","min","nodes","percentileCont","percentileDisc","pi","properties","radians","rand","range","relationships","replace","reverse","right","round","rTrim","sign","sin","size","split","sqrt","startNode","stDev","stDevP","substring","sum","tail","tan","timestamp","toBoolean","toFloat","toInteger","toLower","toString","toUpper","trim","type"],operators:["+","-","*","/","%","^","=","<>","<",">","<=",">=","->","<-","-->","<--"],escapes:/\\(?:[tbnrf\\"'`]|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+/,octaldigits:/[0-7]+/,hexdigits:/[0-9a-fA-F]+/,tokenizer:{root:[[/[{}[\]()]/,"@brackets"],{include:"common"}],common:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/:[a-zA-Z_][\w]*/,"type.identifier"],[/[a-zA-Z_][\w]*(?=\()/,{cases:{"@builtinFunctions":"predefined.function"}}],[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":"keyword","@builtinLiterals":"predefined.literal","@default":"identifier"}}],[/`/,"identifier.escape","@identifierBacktick"],[/[;,.:|]/,"delimiter"],[/[<>=%+\-*/^]+/,{cases:{"@operators":"delimiter","@default":""}}]],numbers:[[/-?(@digits)[eE](-?(@digits))?/,"number.float"],[/-?(@digits)?\.(@digits)([eE]-?(@digits))?/,"number.float"],[/-?0x(@hexdigits)/,"number.hex"],[/-?0(@octaldigits)/,"number.octal"],[/-?(@digits)/,"number"]],strings:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@stringDouble"],[/'/,"string","@stringSingle"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/\/\/.*/,"comment"],[/[^/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[/*]/,"comment"]],stringDouble:[[/[^\\"]+/,"string"],[/@escapes/,"string"],[/\\./,"string.invalid"],[/"/,"string","@pop"]],stringSingle:[[/[^\\']+/,"string"],[/@escapes/,"string"],[/\\./,"string.invalid"],[/'/,"string","@pop"]],identifierBacktick:[[/[^\\`]+/,"identifier.escape"],[/@escapes/,"identifier.escape"],[/\\./,"identifier.escape.invalid"],[/`/,"identifier.escape","@pop"]]}};export{e as conf,i as language};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!-----------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Version: 0.43.0(94c055bcbdd49f04a0fa15515e848542a79fb948)
|
|
4
|
+
* Released under the MIT license
|
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
+
*-----------------------------------------------------------------------------*/var e={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:"(",close:")"},{open:'"',close:'"'},{open:"`",close:"`"}],folding:{markers:{start:/^\s*\s*#?region\b/,end:/^\s*\s*#?endregion\b/}}},n={defaultToken:"invalid",tokenPostfix:".dart",keywords:["abstract","dynamic","implements","show","as","else","import","static","assert","enum","in","super","async","export","interface","switch","await","extends","is","sync","break","external","library","this","case","factory","mixin","throw","catch","false","new","true","class","final","null","try","const","finally","on","typedef","continue","for","operator","var","covariant","Function","part","void","default","get","rethrow","while","deferred","hide","return","with","do","if","set","yield"],typeKeywords:["int","double","String","bool"],operators:["+","-","*","/","~/","%","++","--","==","!=",">","<",">=","<=","=","-=","/=","%=",">>=","^=","+=","*=","~/=","<<=","&=","!=","||","&&","&","|","^","~","<<",">>","!",">>>","??","?",":","|="],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,tokenizer:{root:[[/[{}]/,"delimiter.bracket"],{include:"common"}],common:[[/[a-z_$][\w$]*/,{cases:{"@typeKeywords":"type.identifier","@keywords":"keyword","@default":"identifier"}}],[/[A-Z_$][\w\$]*/,"type.identifier"],{include:"@whitespace"},[/\/(?=([^\\\/]|\\.)+\/([gimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,{token:"regexp",bracket:"@open",next:"@regexp"}],[/@[a-zA-Z]+/,"annotation"],[/[()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/\/.*$/,"comment.doc"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([gimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"\$]+/,"string"],[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"],[/\$\w+/,"identifier"]],string_single:[[/[^\\'\$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"],[/\$\w+/,"identifier"]]}};export{e as conf,n as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as X}from"./InputCopyable.vue_vue_type_script_setup_true_lang-f8def18c.js";import{c7 as b,c8 as N,c9 as E,g as q,d as J,q as P,e as B,p as I,v as R,ca as K,f as Q,s as ee,o as F,b as $,h as O,l as S,j as h,z,w as te,m as ae,t as re,F as ne,i as oe,A as ie,Y as ce,n as se}from"./index-01d0fc63.js";import{w as Z}from"./defaults-4d6daddf.js";import{a as l,i as y,b as le}from"./index-8c244bdc.js";var A=6e4,j=36e5;function ue(t,e){var r,a;b(1,arguments);var o=N(t);if(isNaN(o.getTime()))throw new RangeError("Invalid time value");var i=String((r=e?.format)!==null&&r!==void 0?r:"extended"),c=String((a=e?.representation)!==null&&a!==void 0?a:"complete");if(i!=="extended"&&i!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(c!=="date"&&c!=="time"&&c!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var u="",m="",d=i==="extended"?"-":"",v=i==="extended"?":":"";if(c!=="time"){var D=l(o.getDate(),2),n=l(o.getMonth()+1,2),s=l(o.getFullYear(),4);u="".concat(s).concat(d).concat(n).concat(d).concat(D)}if(c!=="date"){var g=o.getTimezoneOffset();if(g!==0){var p=Math.abs(g),T=l(Math.floor(p/60),2),x=l(p%60,2),f=g<0?"+":"-";m="".concat(f).concat(T,":").concat(x)}else m="Z";var _=l(o.getHours(),2),W=l(o.getMinutes(),2),k=l(o.getSeconds(),2),L=u===""?"":"T",V=[_,W,k].join(v);u="".concat(u).concat(L).concat(V).concat(m)}return u}function me(t,e){var r,a;if(arguments.length<1)throw new TypeError("1 argument required, but only ".concat(arguments.length," present"));var o=N(t);if(!y(o))throw new RangeError("Invalid time value");var i=String((r=e?.format)!==null&&r!==void 0?r:"extended"),c=String((a=e?.representation)!==null&&a!==void 0?a:"complete");if(i!=="extended"&&i!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(c!=="date"&&c!=="time"&&c!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var u="",m=i==="extended"?"-":"",d=i==="extended"?":":"";if(c!=="time"){var v=l(o.getDate(),2),D=l(o.getMonth()+1,2),n=l(o.getFullYear(),4);u="".concat(n).concat(m).concat(D).concat(m).concat(v)}if(c!=="date"){var s=l(o.getHours(),2),g=l(o.getMinutes(),2),p=l(o.getSeconds(),2),T=u===""?"":" ";u="".concat(u).concat(T).concat(s).concat(d).concat(g).concat(d).concat(p)}return u}function de(t,e){var r;if(arguments.length<1)throw new TypeError("1 arguments required, but only ".concat(arguments.length," present"));var a=N(t);if(!y(a))throw new RangeError("Invalid time value");var o=Number((r=e?.fractionDigits)!==null&&r!==void 0?r:0);if(!(o>=0&&o<=3))throw new RangeError("fractionDigits must be between 0 and 3 inclusively");var i=l(a.getDate(),2),c=l(a.getMonth()+1,2),u=a.getFullYear(),m=l(a.getHours(),2),d=l(a.getMinutes(),2),v=l(a.getSeconds(),2),D="";if(o>0){var n=a.getMilliseconds(),s=Math.floor(n*Math.pow(10,o-3));D="."+l(s,o)}var g="",p=a.getTimezoneOffset();if(p!==0){var T=Math.abs(p),x=l(E(T/60),2),f=l(T%60,2),_=p<0?"+":"-";g="".concat(_).concat(x,":").concat(f)}else g="Z";return"".concat(u,"-").concat(c,"-").concat(i,"T").concat(m,":").concat(d,":").concat(v).concat(D).concat(g)}var ve=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],fe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function ge(t){if(arguments.length<1)throw new TypeError("1 arguments required, but only ".concat(arguments.length," present"));var e=N(t);if(!y(e))throw new RangeError("Invalid time value");var r=ve[e.getUTCDay()],a=l(e.getUTCDate(),2),o=fe[e.getUTCMonth()],i=e.getUTCFullYear(),c=l(e.getUTCHours(),2),u=l(e.getUTCMinutes(),2),m=l(e.getUTCSeconds(),2);return"".concat(r,", ").concat(a," ").concat(o," ").concat(i," ").concat(c,":").concat(u,":").concat(m," GMT")}function De(t){b(1,arguments);var e=E(t);return N(e*1e3)}function G(t){b(1,arguments);var e=N(t),r=e.getTime();return r}function pe(t){return b(1,arguments),Math.floor(G(t)/1e3)}function Y(t,e){var r;b(1,arguments);var a=E((r=e?.additionalDigits)!==null&&r!==void 0?r:2);if(a!==2&&a!==1&&a!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof t=="string"||Object.prototype.toString.call(t)==="[object String]"))return new Date(NaN);var o=_e(t),i;if(o.date){var c=Ne(o.date,a);i=be(c.restDateString,c.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);var u=i.getTime(),m=0,d;if(o.time&&(m=xe(o.time),isNaN(m)))return new Date(NaN);if(o.timezone){if(d=Me(o.timezone),isNaN(d))return new Date(NaN)}else{var v=new Date(u+m),D=new Date(0);return D.setFullYear(v.getUTCFullYear(),v.getUTCMonth(),v.getUTCDate()),D.setHours(v.getUTCHours(),v.getUTCMinutes(),v.getUTCSeconds(),v.getUTCMilliseconds()),D}return new Date(u+m+d)}var C={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},he=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Te=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,we=/^([+-])(\d{2})(?::?(\d{2}))?$/;function _e(t){var e={},r=t.split(C.dateTimeDelimiter),a;if(r.length>2)return e;if(/:/.test(r[0])?a=r[0]:(e.date=r[0],a=r[1],C.timeZoneDelimiter.test(e.date)&&(e.date=t.split(C.timeZoneDelimiter)[0],a=t.substr(e.date.length,t.length))),a){var o=C.timezone.exec(a);o?(e.time=a.replace(o[1],""),e.timezone=o[1]):e.time=a}return e}function Ne(t,e){var r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),a=t.match(r);if(!a)return{year:NaN,restDateString:""};var o=a[1]?parseInt(a[1]):null,i=a[2]?parseInt(a[2]):null;return{year:i===null?o:i*100,restDateString:t.slice((a[1]||a[2]).length)}}function be(t,e){if(e===null)return new Date(NaN);var r=t.match(he);if(!r)return new Date(NaN);var a=!!r[4],o=M(r[1]),i=M(r[2])-1,c=M(r[3]),u=M(r[4]),m=M(r[5])-1;if(a)return Ee(e,u,m)?Se(e,u,m):new Date(NaN);var d=new Date(0);return!ye(e,i,c)||!Ue(e,o)?new Date(NaN):(d.setUTCFullYear(e,i,Math.max(o,c)),d)}function M(t){return t?parseInt(t):1}function xe(t){var e=t.match(Te);if(!e)return NaN;var r=U(e[1]),a=U(e[2]),o=U(e[3]);return Ie(r,a,o)?r*j+a*A+o*1e3:NaN}function U(t){return t&&parseFloat(t.replace(",","."))||0}function Me(t){if(t==="Z")return 0;var e=t.match(we);if(!e)return 0;var r=e[1]==="+"?-1:1,a=parseInt(e[2]),o=e[3]&&parseInt(e[3])||0;return Re(a,o)?r*(a*j+o*A):NaN}function Se(t,e,r){var a=new Date(0);a.setUTCFullYear(t,0,4);var o=a.getUTCDay()||7,i=(e-1)*7+r+1-o;return a.setUTCDate(a.getUTCDate()+i),a}var Ce=[31,null,31,30,31,30,31,31,30,31,30,31];function H(t){return t%400===0||t%4===0&&t%100!==0}function ye(t,e,r){return e>=0&&e<=11&&r>=1&&r<=(Ce[e]||(H(t)?29:28))}function Ue(t,e){return e>=1&&e<=(H(t)?366:365)}function Ee(t,e,r){return e>=1&&e<=53&&r>=0&&r<=6}function Ie(t,e,r){return t===24?e===0&&r===0:r>=0&&r<60&&e>=0&&e<60&&t>=0&&t<25}function Re(t,e){return e>=0&&e<=59}function Fe(t){if(b(1,arguments),typeof t=="string"){var e=t.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/);return e?new Date(Date.UTC(+e[1],+e[2]-1,+e[3],+e[4]-(+e[9]||0)*(e[8]=="-"?-1:1),+e[5]-(+e[10]||0)*(e[8]=="-"?-1:1),+e[6],+((e[7]||"0")+"00").substring(0,3))):new Date(NaN)}return N(t)}const $e=/^([+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([.,]\d+(?!:))?)?(\17[0-5]\d([.,]\d+)?)?([zZ]|([+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,Oe=/^([0-9]{4})-([0-9]{2})-([0-9]{2}) ([0-9]{2}):([0-9]{2}):([0-9]{2})(\.[0-9]{1,6})?(([+-])([0-9]{2}):([0-9]{2})|Z)?$/,ze=/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(\.[0-9]{1,9})?(([+-])([0-9]{2}):([0-9]{2})|Z)$/,Ze=/^[A-Za-z]{3},\s[0-9]{2}\s[A-Za-z]{3}\s[0-9]{4}\s[0-9]{2}:[0-9]{2}:[0-9]{2}\sGMT$/,Ye=/^-?\d+(\.\d+)?$/;function w(t){return e=>!q.isNil(e)&&t.test(e)}const qe=w($e),Ae=w(Oe),je=w(ze),Ge=w(Ze),He=w(/^[0-9]{1,10}$/),We=w(/^[0-9]{1,13}$/),ke=w(/^[0-9a-fA-F]{24}$/),Le=w(Ye);function Ve(t){if(q.isNil(t))return!1;try{return new Date(t).toUTCString()===t}catch{return!1}}function Xe(t){return String(t.getTime()/(1e3*60*60*24)+25569)}function Je(t){return new Date((Number(t)-25569)*86400*1e3)}const Pe={flex:"","gap-2":""},Be={"mt-2":"",flex:"","justify-center":""},at=J({__name:"date-time-converter",setup(t){const{t:e}=P(),r=B(),a=I(r.query.input||r.query.filePath||"");a.value&&d(a.value),R(()=>r.query.input,n=>{if(n){const s=n;a.value=s,d(s)}}),R(()=>r.query.filePath,n=>{if(n){const s=n;a.value=s,d(s)}});const o=n=>new Date(n),i=[{name:e("tools.date-time-converter.formats.js"),fromDate:n=>n.toString(),toDate:o,formatMatcher:()=>!1},{name:e("tools.date-time-converter.formats.iso8601"),fromDate:ue,toDate:Y,formatMatcher:n=>qe(n)},{name:e("tools.date-time-converter.formats.iso9075"),fromDate:me,toDate:Y,formatMatcher:n=>Ae(n)},{name:e("tools.date-time-converter.formats.rfc3339"),fromDate:de,toDate:o,formatMatcher:n=>je(n)},{name:e("tools.date-time-converter.formats.rfc7231"),fromDate:ge,toDate:o,formatMatcher:n=>Ge(n)},{name:e("tools.date-time-converter.formats.unix"),fromDate:n=>String(pe(n)),toDate:n=>De(+n),formatMatcher:n=>He(n)},{name:e("tools.date-time-converter.formats.timestamp"),fromDate:n=>String(G(n)),toDate:n=>Fe(+n),formatMatcher:n=>We(n)},{name:e("tools.date-time-converter.formats.utc"),fromDate:n=>n.toUTCString(),toDate:o,formatMatcher:n=>Ve(n)},{name:e("tools.date-time-converter.formats.mongo"),fromDate:n=>`${Math.floor(n.getTime()/1e3).toString(16)}0000000000000000`,toDate:n=>new Date(Number.parseInt(n.substring(0,8),16)*1e3),formatMatcher:n=>ke(n)},{name:e("tools.date-time-converter.formats.excel"),fromDate:n=>Xe(n),toDate:Je,formatMatcher:Le}],c=I(6),u=K(),m=Q(()=>{if(!a.value)return u.value;const{toDate:n}=i[c.value];try{return n(a.value)}catch{return}});function d(n){const s=i.findIndex(({formatMatcher:g})=>g(n));s!==-1&&(c.value=s)}const v=ee({source:a,watch:[c],rules:[{message:e("tools.date-time-converter.invalidDate"),validator:n=>Z(()=>{if(n==="")return!0;const s=i[c.value].toDate(n);return le(s)&&y(s)},!1)}]});function D(n,s){return!s||!v.isValid?"":Z(()=>n(s),"")}return(n,s)=>{const g=ie,p=ce,T=se,x=X;return F(),$("div",null,[O("div",Pe,[S(g,{value:h(a),"onUpdate:value":[s[0]||(s[0]=f=>z(a)?a.value=f:null),d],autofocus:"",label:h(e)("tools.date-time-converter.inputLabel"),placeholder:h(e)("tools.date-time-converter.inputPlaceholder"),clearable:"","test-id":"date-time-converter-input",validation:h(v)},null,8,["value","label","placeholder","validation"]),S(p,{value:h(c),"onUpdate:value":s[1]||(s[1]=f=>z(c)?c.value=f:null),label:h(e)("tools.date-time-converter.formatLabel"),style:{flex:"0 0 170px"},options:i.map(({name:f},_)=>({label:f,value:_})),"data-test-id":"date-time-converter-format-select"},null,8,["value","label","options"])]),O("div",Be,[S(T,{onClick:s[2]||(s[2]=f=>a.value="")},{default:te(()=>[ae(re(h(e)("tools.date-time-converter.now")),1)]),_:1})]),(F(),$(ne,null,oe(i,({name:f,fromDate:_})=>S(x,{key:f,label:f,"label-width":"150px","label-position":"left","label-align":"right",value:D(_,h(m)),placeholder:h(e)("tools.date-time-converter.invalidDatePlaceholder"),"test-id":f,readonly:"","mt-2":""},null,8,["label","value","placeholder","test-id"])),64))])}}});export{at as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a(r,t){try{return r()}catch{return t}}async function c(r,t){try{return await r()}catch{return t}}export{c as a,a as w};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as i,e as l,f as u,g as d,r as m,o,b as a,h as t,F as f,i as h,j as s,k as x,t as r,l as v,c as w,w as b,m as y,n as g}from"./index-01d0fc63.js";const k={"mt-2":"","w-full":"","p-8":""},B=t("h1",null,"c-lib components",-1),C={flex:""},N={"w-200px":"","b-r":"","b-gray":"","b-op-10":"","b-r-solid":"","pr-4":""},V={"flex-1":"","pl-4":""},D=i({__name:"demo-wrapper",setup(j){const n=l(),c=u(()=>d.startCase(String(n.name).replace(/^c-/,"")));return(F,R)=>{const _=g,p=m("router-view");return o(),a("div",k,[B,t("div",C,[t("div",N,[(o(!0),a(f,null,h(s(x),({name:e})=>(o(),w(_,{key:e,variant:"text",to:{name:e},"w-full":"","important:justify-start":"","important:text-left":"",type:s(n).name===e?"primary":"default"},{default:b(()=>[y(r(e),1)]),_:2},1032,["to","type"]))),128))]),t("div",V,[t("h1",null,r(s(c)),1),v(p)])])])}}});export{D as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as y,q as k,cb as $,f as o,o as n,b as a,i as _,j as d,F as u,c as i,w as t,l as B,h as v,t as s,m as I,cc as S,B as V,a as z}from"./index-01d0fc63.js";import{_ as A,a as D}from"./Grid-c95ac6a8.js";import"./is-browser-fc34c9a6.js";import"./get-slot-1efb97e5.js";const N={class:"label"},j={class:"value"},C={key:1,class:"undefined-value"},F=y({__name:"device-information",setup(R){const{t:e}=k(),{width:m,height:p}=$(),f=o(()=>[{name:e("tools.device-information.screen"),information:[{label:e("tools.device-information.screenSize"),value:o(()=>`${window.screen.availWidth} x ${window.screen.availHeight}`)},{label:e("tools.device-information.orientation"),value:o(()=>window.screen.orientation.type)},{label:e("tools.device-information.orientationAngle"),value:o(()=>`${window.screen.orientation.angle}°`)},{label:e("tools.device-information.colorDepth"),value:o(()=>`${window.screen.colorDepth} bits`)},{label:e("tools.device-information.pixelRatio"),value:o(()=>`${window.devicePixelRatio} dppx`)},{label:e("tools.device-information.windowSize"),value:o(()=>`${m.value} x ${p.value}`)}]},{name:e("tools.device-information.device"),information:[{label:e("tools.device-information.browserVendor"),value:o(()=>navigator.vendor)},{label:e("tools.device-information.languages"),value:o(()=>navigator.languages.join(", "))},{label:e("tools.device-information.platform"),value:o(()=>navigator.platform)},{label:e("tools.device-information.userAgent"),value:o(()=>navigator.userAgent)}]}]);return(W,q)=>{const g=S,w=A,b=D,h=V;return n(!0),a(u,null,_(d(f),({name:l,information:x})=>(n(),i(h,{key:l,title:l},{default:t(()=>[B(b,{cols:"1 400:2","x-gap":"12","y-gap":"12"},{default:t(()=>[(n(!0),a(u,null,_(x,({label:c,value:{value:r}})=>(n(),i(w,{key:c,class:"information"},{default:t(()=>[v("div",N,s(c),1),v("div",j,[r?(n(),i(g,{key:0},{default:t(()=>[I(s(r),1)]),_:2},1024)):(n(),a("div",C,s(d(e)("tools.device-information.unknown")),1))])]),_:2},1024))),128))]),_:2},1024)]),_:2},1032,["title"]))),128)}}});const T=z(F,[["__scopeId","data-v-6fa979e9"]]);export{T as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.information[data-v-6fa979e9]{padding:14px 16px;border-radius:4px;background-color:#aaa1}.information .label[data-v-6fa979e9]{font-size:14px;opacity:.8;line-height:1;margin-bottom:5px}.information .value[data-v-6fa979e9]{font-size:20px;font-weight:400}.information .undefined-value[data-v-6fa979e9]{opacity:.8}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import{W as Ge,bd as x,d as hn,q as cn,p as dn,f as Ct,o as ft,b as lt,l as wt,j as F,z as mn,h as fe,w as le,m as gn,t as pe,F as Ne,i as Oe,X as Le,A as yn,n as vn}from"./index-01d0fc63.js";import{w as _n}from"./defaults-4d6daddf.js";import{a as An}from"./downloadBase64-e611bae8.js";import{t as Tn}from"./base64-6a7151fc.js";import{T as En}from"./TextareaCopyable-a8dad7e2.js";import{c as wn}from"./_commonjs-dynamic-modules-302442b1.js";import{_ as bn}from"./Divider-1a143549.js";import{_ as Sn}from"./Alert-94bc8eeb.js";import"./index-f68143c3.js";import"./___vite-browser-external_commonjs-proxy-d22f5c20.js";import"./Copy-aa880467.js";import"./Scrollbar-d11619e0.js";function S(){this.isNode=typeof window>"u",this.idRegExp=/[a-z_][a-z0-9_-]*/i,this.clear()}S.EOF=0;S.STATE_INITIAL="INITIAL";S.STATE_ANY="*";S.RULE_EOF="<<EOF>>";S.prototype.reset=function(){this.source="",this.index=0,this.text=void 0,this.state=S.STATE_INITIAL,this.ruleIndex=void 0,this.readMore=!1,this.stateStack=[],this.rejectedRules=[]};S.prototype.clear=function(){this.states={},this.definitions=[],this.rules={},this.ignoreCase=!1,this.debugEnabled=!1,this.addState(S.STATE_INITIAL),this.reset()};S.prototype.setIgnoreCase=function(e){this.ignoreCase=e};S.prototype.setDebugEnabled=function(e){this.debugEnabled=e};S.prototype.addState=function(e,t){this.states[e]={name:e,exclusive:!!t}};S.prototype.addDefinition=function(e,t){if(typeof e!="string"||!this.idRegExp.test(e))throw new Error('Invalid definition name "'+e+'"');if(typeof t=="string"){if(t.length===0)throw new Error('Empty expression for definition "'+e+'"');t=this.escapeRegExp(t)}else if(t instanceof RegExp){if(t.source==="(?:)")throw new Error('Empty expression for definition "'+e+'"');if(t.flags!=="")throw new Error("Expression flags are not supported for definition expressions");t=t.source}else throw new Error('Invalid expression for definition "'+e+'"');this.definitions[e]=t};S.prototype.addStateRule=function(e,t,r){if(e==null){e=[];for(var i in this.states){var s=this.states[i];s.exclusive||e.push(s.name)}}else if(e===S.STATE_ANY){e=[];for(var i in this.states){var s=this.states[i];e.push(s.name)}}else typeof e=="string"&&(e=[e]);if(e=e.filter(function(A){return!!A}),!e.length)throw new Error("Unable to add rule to empty list of states");var a=e.reduce(function(A,C){return this.states[C]||A.push(C),A}.bind(this),[]);if(a.length)throw new Error("Unable to register rule within unregistered state(s): "+a.join(", "));var f,l,c;if(t===S.RULE_EOF)f=null;else if(typeof t=="string"){if(t.length===0)throw new Error('Empty expression for rule used in states "'+e.join(", ")+'"');f=this.escapeRegExp(t),c=t.length,l=""}else if(t instanceof RegExp){if(t.source==="(?:)")throw new Error('Empty expression for rule used in states "'+e.join(", ")+'"');if(t.flags!==""){var h=t.flags.split("").filter(function(A){return A!=="i"&&A!=="u"});if(h.length)throw new Error('Expression flags besides "i" and "u" are not supported')}f=t.source,l=t.flags}else throw new Error('Invalid rule expression "'+t+'"');if(r&&typeof r!="function")throw new Error("Invalid rule action: should be function or empty");var m=f===null?null:this.compileRuleExpression(f,l),d=m===null?null:this.isRegExpMatchBOL(m),_=m===null?null:this.isRegExpMatchEOL(m),w=f===null,R={expression:m,hasBOL:d,hasEOL:_,isEOF:w,action:r,fixedWidth:c};for(var i in e){var s=e[i];this.rules[s]||(this.rules[s]=[]),this.rules[s].push(R)}};S.prototype.addStateRules=function(e,t){for(var r in t){var i=t[r];this.addStateRule(e,i.expression,i.action)}};S.prototype.addRule=function(e,t){this.addStateRule(void 0,e,t)};S.prototype.addRules=function(e){this.addStateRules(void 0,e)};S.prototype.setSource=function(e){this.source=e,this.index=0};S.prototype.lex=function(){var e;do e=this.scan();while(e===void 0&&e!==S.EOF);return e};S.prototype.lexAll=function(){for(var e=[],t;(t=this.lex())!==S.EOF;)e.push(t);return e};S.prototype.discard=function(){};S.prototype.echo=function(){this.isNode?process.stdout.write(this.text):console.log(this.text)};S.prototype.begin=function(e){if(e===void 0&&(e=S.STATE_INITIAL),!this.states[e])throw new Error('State "'+e+'" is not registered');this.state=e};S.prototype.reject=function(){this.index-=this.text.length,this.rejectedRules.push(this.ruleIndex)};S.prototype.more=function(){this.readMore=!0};S.prototype.less=function(e){e>this.text.length||(this.index-=this.text.length-e,this.text=this.text.substr(0,e))};S.prototype.unput=function(e){this.source=this.source.substr(0,this.index)+e+this.source.substr(this.index)};S.prototype.input=function(e){var t=this.source.substr(this.index,e===void 0?1:e);return this.index+=t.length,t};S.prototype.terminate=function(){return this.reset(),S.EOF};S.prototype.restart=function(e){e!==void 0&&(this.source=e),this.index=0};S.prototype.pushState=function(e){if(!this.states[e])throw new Error('State "'+e+'" is not registered');this.stateStack.push(this.state),this.begin(e)};S.prototype.topState=function(){if(this.stateStack.length)return this.stateStack[this.stateStack.length-1]};S.prototype.popState=function(){if(!this.stateStack.length)throw new Error("Unable to pop state");var e=this.stateStack.pop();this.begin(e)};S.prototype.switchState=function(e){this.begin(e)};S.prototype.scan=function(){var e=this.index>=this.source.length,t,r,i="",s=0,a=this.rules[this.state]||[];for(var f in a)if(this.rejectedRules.indexOf(f)===-1){var l=a[f];if(e){if(l.isEOF){t=l,r=f,i="";break}}else if(l.fixedWidth===void 0||l.fixedWidth>s){var c=this.execRegExp(l.expression);if(c!==void 0){var h=c.length;l.hasBOL&&h++,l.hasEOL&&h++,h>s&&(t=l,r=f,i=c,s=h)}}}if(t&&this.debugEnabled&&this.logAccept(this.state,t.expression,i),this.ruleIndex=r,this.text=this.readMore?this.text:"",this.readMore=!1,!t)return e?(this.text="",this.terminate()):(this.text+=this.source.charAt(this.index),this.index++,this.echo());this.text+=i,this.index+=this.text.length;var m=this.rejectedRules.length,d=t.action?t.action(this):this.discard(),_=this.rejectedRules.length>m;if(!_)return this.rejectedRules=[],e&&(e=this.index>=this.source.length),e?this.terminate():d};S.prototype.logAccept=function(e,t,r){console.log(" - ["+e+"] accepting rule /"+this.encodeString(t.source)+'/ ("'+this.encodeString(r)+'")')};S.prototype.encodeString=function(e){return e.replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/\t/g,"\\t").replace(/\f/g,"\\f").replace(/\0/g,"\\0")};S.prototype.execRegExp=function(e){e.lastIndex=this.index;var t=e.exec(this.source);return t?t[0]:void 0};S.prototype.compileRuleExpression=function(e,t){for(var r in this.definitions){var i=this.definitions[r],s=new RegExp("{"+r+"}","ig");e=e.replace(s,"(?:"+i+")")}return this.ignoreCase&&t.indexOf("i")===-1&&(t+="i"),new RegExp(e,t+"ym")};S.prototype.escapeRegExp=function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")};S.prototype.isRegExpMatchBOL=function(e){return e.source.substr(0,1)==="^"};S.prototype.isRegExpMatchEOL=function(e){return e.source.substr(-1)==="$"};var Rn=S,In=Rn;const Dt=Ge(In);var xn=function(){function e(t,r){this.yaml=t,this.messages=r}return e}(),ot;(function(e){e.notImplemented="notImplemented",e.notTranslatable="notTranslatable",e.errorDuringConversion="errorDuringConversion"})(ot||(ot={}));var We=function(){function e(){this.serviceName="",this.properties=[],this.messages=[],this.additionalComposeObjects=[]}return e}(),y;(function(e){e[e.flag=0]="flag",e[e.withArgs=1]="withArgs"})(y||(y={}));/*!
|
|
2
|
+
* is-primitive <https://github.com/jonschlinkert/is-primitive>
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
5
|
+
* Released under the MIT License.
|
|
6
|
+
*/var Nn=function(t){return typeof t=="object"?t===null:typeof t!="function"};/*!
|
|
7
|
+
* isobject <https://github.com/jonschlinkert/isobject>
|
|
8
|
+
*
|
|
9
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
10
|
+
* Released under the MIT License.
|
|
11
|
+
*/var On=function(t){return t!=null&&typeof t=="object"&&Array.isArray(t)===!1};/*!
|
|
12
|
+
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
15
|
+
* Released under the MIT License.
|
|
16
|
+
*/var Ln=On;function Ke(e){return Ln(e)===!0&&Object.prototype.toString.call(e)==="[object Object]"}var Mn=function(t){var r,i;return!(Ke(t)===!1||(r=t.constructor,typeof r!="function")||(i=r.prototype,Ke(i)===!1)||i.hasOwnProperty("isPrototypeOf")===!1)};/*!
|
|
17
|
+
* set-value <https://github.com/jonschlinkert/set-value>
|
|
18
|
+
*
|
|
19
|
+
* Copyright (c) Jon Schlinkert (https://github.com/jonschlinkert).
|
|
20
|
+
* Released under the MIT License.
|
|
21
|
+
*/const{deleteProperty:Pn}=Reflect,Cn=Nn,Je=Mn,tr=e=>typeof e=="object"&&e!==null||typeof e=="function",Bn=e=>e==="__proto__"||e==="constructor"||e==="prototype",Ue=e=>{if(!Cn(e))throw new TypeError("Object keys must be strings or symbols");if(Bn(e))throw new Error(`Cannot set unsafe key: "${e}"`)},Dn=e=>Array.isArray(e)?e.flat().map(String).join(","):e,kn=(e,t)=>{if(typeof e!="string"||!t)return e;let r=e+";";return t.arrays!==void 0&&(r+=`arrays=${t.arrays};`),t.separator!==void 0&&(r+=`separator=${t.separator};`),t.split!==void 0&&(r+=`split=${t.split};`),t.merge!==void 0&&(r+=`merge=${t.merge};`),t.preservePaths!==void 0&&(r+=`preservePaths=${t.preservePaths};`),r},jn=(e,t,r)=>{const i=Dn(t?kn(e,t):e);Ue(i);const s=Ot.cache.get(i)||r();return Ot.cache.set(i,s),s},Vn=(e,t={})=>{const r=t.separator||".",i=r==="/"?!1:t.preservePaths;if(typeof e=="string"&&i!==!1&&/\//.test(e))return[e];const s=[];let a="";const f=l=>{let c;l.trim()!==""&&Number.isInteger(c=Number(l))?s.push(c):s.push(l)};for(let l=0;l<e.length;l++){const c=e[l];if(c==="\\"){a+=e[++l];continue}if(c===r){f(a),a="";continue}a+=c}return a&&f(a),s},hr=(e,t)=>t&&typeof t.split=="function"?t.split(e):typeof e=="symbol"?[e]:Array.isArray(e)?e:jn(e,t,()=>Vn(e,t)),Fn=(e,t,r,i)=>{if(Ue(t),r===void 0)Pn(e,t);else if(i&&i.merge){const s=i.merge==="function"?i.merge:Object.assign;s&&Je(e[t])&&Je(r)?e[t]=s(e[t],r):e[t]=r}else e[t]=r;return e},Ot=(e,t,r,i)=>{if(!t||!tr(e))return e;const s=hr(t,i);let a=e;for(let f=0;f<s.length;f++){const l=s[f],c=s[f+1];if(Ue(l),c===void 0){Fn(a,l,r,i);break}if(typeof c=="number"&&!Array.isArray(a[l])){a=a[l]=[];continue}tr(a[l])||(a[l]={}),a=a[l]}return e};Ot.split=hr;Ot.cache=new Map;Ot.clear=()=>{Ot.cache=new Map};var Gn=Ot;const _e=Ge(Gn);var Un=function(e,t){if(typeof e=="string"){if(t.multiValue){if(t.composeType!==void 0&&/^\-?\d+$/.test(e))try{return t.composeType==="int"?[parseInt(e)]:[parseFloat(e)]}catch{return[e]}return[e]}if(t.composeType!==void 0&&/^\-?\d+$/.test(e))try{return t.composeType==="int"?parseInt(e):parseFloat(e)}catch{return e}}return e},B=function(e){return{type:ot.notImplemented,value:'The option "--'.concat(e.name).concat(e.short!==void 0?"/-"+e.short:"",'" is not yet implemented.')}},bt=function(e){return{type:ot.notTranslatable,value:'The option "--'.concat(e.name).concat(e.short!==void 0?"/-"+e.short:"",'" could not be translated to docker-compose.yml.')}},Bt=function(e){var t={};return _e(t,e.path,!0),{path:e.path,value:t,multiValue:e.multiValue,additionalObject:void 0}},b=function(e,t){var r=Un(t,e),i={};return _e(i,e.path,r),{path:e.path,value:i,multiValue:e.multiValue,additionalObject:void 0}},$n=function(e,t){var r,i=t.split("=");return b(e,(r={},r[i[0]]=i[1],r))},Hn=function(e,t){var r,i=t.split("=");return b(e,(r={},r[i[0]]=i[1],r))},zn=function(e,t){var r,i,s=b(e,(r={},r[t]={},r));return s.additionalObject={networks:(i={},i[t]={},i)},s},Xn=function(e,t){var r,i,s=t.match(/(?<type>[^=]+)=(?<hardLimit>[^:]+)(:(?<softLimit>\S+))?/);return s!==null&&s.length===5?s.groups.softLimit===void 0?b(e,(r={},r[s.groups.type]=parseInt(s.groups.hardLimit),r)):b(e,(i={},i[s.groups.type]={hard:parseInt(s.groups.hardLimit),soft:parseInt(s.groups.softLimit)},i)):{type:ot.errorDuringConversion,value:'The option "--'.concat(e.name).concat(e.short!==void 0?"/-"+e.short:"",'" could not be translated to docker-compose.yml. The not translatable value was "').concat(t,'"')}},cr=[{name:"add-host",path:"extra_hosts",type:y.withArgs,multiValue:!0,action:b},{name:"attach",short:"a",path:"",type:y.withArgs,multiValue:!1,action:bt},{name:"blkio-weight",path:"blkio_config.weight",type:y.withArgs,multiValue:!1,composeType:"int",action:b},{name:"blkio-weight-device",path:"",type:y.withArgs,multiValue:!1,action:B},{name:"cap-add",path:"cap_add",type:y.withArgs,multiValue:!0,action:b},{name:"cap-drop",path:"cap_drop",type:y.withArgs,multiValue:!0,action:b},{name:"cgroupns",path:"cgroup",type:y.withArgs,multiValue:!1,action:b},{name:"cgroup-parent",path:"cgroup_parent",type:y.withArgs,multiValue:!1,action:b},{name:"cidfile",path:"",type:y.withArgs,multiValue:!1,action:B},{name:"cpu-count",path:"cpu_count",type:y.withArgs,multiValue:!1,composeType:"int",action:b},{name:"cpu-percent",path:"cpu_percent",type:y.withArgs,multiValue:!1,composeType:"float",action:b},{name:"cpu-period",path:"cpu_period",type:y.withArgs,multiValue:!1,composeType:"int",action:b},{name:"cpu-quota",path:"cpu_quota",type:y.withArgs,multiValue:!1,composeType:"int",action:b},{name:"cpu-rt-period",path:"cpu_rt_period",type:y.withArgs,multiValue:!1,composeType:"int",action:b},{name:"cpu-rt-runtime",path:"cpu_rt_runtime",type:y.withArgs,multiValue:!1,composeType:"int",action:b},{name:"cpu-shares",short:"c",path:"",type:y.withArgs,multiValue:!1,action:B},{name:"cpus",path:"cpus",type:y.withArgs,multiValue:!1,composeType:"float",action:b},{name:"cpuset-cpus",path:"cpuset",type:y.withArgs,multiValue:!1,action:b},{name:"cpuset-mems",path:"",type:y.withArgs,multiValue:!1,action:B},{name:"detach",short:"d",path:"",type:y.flag,multiValue:!1,action:bt},{name:"detach-keys",path:"",type:y.withArgs,multiValue:!1,action:B},{name:"device",path:"devices",type:y.withArgs,multiValue:!0,action:b},{name:"device-cgroup-rule",path:"device_cgroup_rules",type:y.withArgs,multiValue:!0,action:b},{name:"device-read-bps",path:"",type:y.withArgs,multiValue:!1,action:B},{name:"device-read-iops",path:"",type:y.withArgs,multiValue:!1,action:B},{name:"device-write-bps",path:"",type:y.withArgs,multiValue:!1,action:B},{name:"device-write-iops",path:"",type:y.withArgs,multiValue:!1,action:B},{name:"disable-content-trust",path:"",type:y.flag,multiValue:!1,action:B},{name:"dns",path:"dns",type:y.withArgs,multiValue:!0,action:b},{name:"dns-option",path:"dns_opt",type:y.withArgs,multiValue:!0,action:b},{name:"dns-search",path:"dns_search",type:y.withArgs,multiValue:!0,action:b},{name:"domainname",path:"domainname",type:y.withArgs,multiValue:!1,action:b},{name:"entrypoint",path:"entrypoint",type:y.withArgs,multiValue:!1,action:b},{name:"env",short:"e",path:"environment",type:y.withArgs,multiValue:!0,action:b},{name:"env-file",path:"env_file",type:y.withArgs,multiValue:!0,action:b},{name:"expose",path:"expose",type:y.withArgs,multiValue:!0,action:b},{name:"gpus",path:"",type:y.withArgs,multiValue:!1,action:B},{name:"group-add",path:"group_add",type:y.withArgs,multiValue:!0,action:b},{name:"health-cmd",path:"healthcheck.test",type:y.withArgs,multiValue:!1,action:b},{name:"health-interval",path:"healthcheck.interval",type:y.withArgs,multiValue:!1,action:b},{name:"health-retries",path:"healthcheck.retries",type:y.withArgs,multiValue:!1,composeType:"int",action:b},{name:"health-start-period",path:"healthcheck.start_period",type:y.withArgs,multiValue:!1,action:b},{name:"health-timeout",path:"healthcheck.timeout",type:y.withArgs,multiValue:!1,action:b},{name:"hostname",short:"h",path:"hostname",type:y.withArgs,multiValue:!1,action:b},{name:"init",path:"init",type:y.flag,multiValue:!1,action:Bt},{name:"interactive",short:"i",path:"stdin_open",type:y.flag,multiValue:!1,action:Bt},{name:"io-maxbandwidth",path:"",type:y.withArgs,multiValue:!1,action:B},{name:"io-maxiops",path:"",type:y.withArgs,multiValue:!1,action:B},{name:"ip",path:"networks.default.ipv4_address",type:y.withArgs,multiValue:!1,action:b},{name:"ip6",path:"networks.default.ipv6_address",type:y.withArgs,multiValue:!1,action:b},{name:"ipc",path:"ipc",type:y.withArgs,multiValue:!1,action:b},{name:"isolation",path:"isolation",type:y.withArgs,multiValue:!1,action:b},{name:"kernel-memory",path:"",type:y.withArgs,multiValue:!1,action:B},{name:"label-file",path:"",type:y.withArgs,multiValue:!1,action:bt},{name:"label",short:"l",path:"labels",type:y.withArgs,multiValue:!0,action:b},{name:"link",path:"links",type:y.withArgs,multiValue:!0,action:b},{name:"link-local-ip",path:"",type:y.withArgs,multiValue:!1,action:B},{name:"log-driver",path:"logging.driver",type:y.withArgs,multiValue:!1,action:b},{name:"log-opt",path:"logging.options",type:y.withArgs,multiValue:!1,action:$n},{name:"mac-address",path:"mac_address",type:y.withArgs,multiValue:!1,action:b},{name:"memory",short:"m",path:"",type:y.withArgs,multiValue:!1,action:B},{name:"memory-swap",path:"",type:y.withArgs,multiValue:!1,action:B},{name:"memory-swappiness",path:"mem_swappiness",type:y.withArgs,multiValue:!1,composeType:"int",action:b},{name:"memory-reservation",path:"",type:y.withArgs,multiValue:!1,action:B},{name:"mount",path:"",type:y.withArgs,multiValue:!1,action:B},{name:"name",path:"container_name",type:y.withArgs,multiValue:!1,action:b},{name:"network",path:"networks",type:y.withArgs,multiValue:!0,action:zn},{name:"network-alias",path:"networks.default.aliases",type:y.withArgs,multiValue:!0,action:b},{name:"no-healthcheck",path:"",type:y.flag,multiValue:!1,action:B},{name:"oom-kill-disable",path:"oom_kill_disable",type:y.flag,multiValue:!1,action:Bt},{name:"oom-score-adj",path:"oom_score_adj",type:y.withArgs,multiValue:!1,composeType:"int",action:b},{name:"pid",path:"pid",type:y.withArgs,multiValue:!1,action:b},{name:"pids-limit",path:"pids_limit",type:y.withArgs,multiValue:!1,composeType:"int",action:b},{name:"platform",path:"platform",type:y.withArgs,multiValue:!1,action:b},{name:"privileged",path:"privileged",type:y.flag,multiValue:!1,action:Bt},{name:"publish",short:"p",path:"ports",type:y.withArgs,multiValue:!0,action:b},{name:"publish-all",short:"P",path:"",type:y.flag,multiValue:!1,action:bt},{name:"pull",path:"pull_policy",type:y.withArgs,multiValue:!1,action:b},{name:"quiet",short:"q",path:"",type:y.flag,multiValue:!1,action:bt},{name:"read-only",path:"read_only",type:y.flag,multiValue:!1,action:Bt},{name:"restart",path:"restart",type:y.withArgs,multiValue:!1,action:b},{name:"rm",path:"",type:y.flag,multiValue:!1,action:bt},{name:"runtime",path:"runtime",type:y.withArgs,multiValue:!1,action:b},{name:"security-opt",path:"security_opt",type:y.withArgs,multiValue:!0,action:b},{name:"shm-size",path:"shm_size",type:y.withArgs,multiValue:!1,composeType:"int",action:b},{name:"stop-signal",path:"stop_signal",type:y.withArgs,multiValue:!1,action:b},{name:"stop-timeout",path:"stop_grace_period",type:y.withArgs,multiValue:!1,action:b},{name:"storage-opt",path:"storage_opt",type:y.withArgs,multiValue:!1,action:Hn},{name:"tmpfs",path:"tmpfs",type:y.withArgs,multiValue:!0,action:b},{name:"tty",short:"t",path:"tty",type:y.flag,multiValue:!1,action:Bt},{name:"sysctl",path:"sysctls",type:y.withArgs,multiValue:!0,action:b},{name:"ulimit",path:"ulimits",type:y.withArgs,multiValue:!1,composeType:"int",action:Xn},{name:"user",short:"u",path:"user",type:y.withArgs,multiValue:!1,action:b},{name:"userns",path:"userns_mode",type:y.withArgs,multiValue:!1,action:b},{name:"uts",path:"",type:y.withArgs,multiValue:!1,action:B},{name:"volume-driver",path:"",type:y.withArgs,multiValue:!1,action:B},{name:"volumes-from",path:"volumes_from",type:y.withArgs,multiValue:!0,action:b},{name:"volume",short:"v",path:"volumes",type:y.withArgs,multiValue:!0,action:b},{name:"workdir",short:"w",path:"working_dir",type:y.withArgs,multiValue:!1,action:b},{name:"help",path:"",type:y.flag,multiValue:!1,action:bt}],dr={};cr.forEach(function(e){return dr[e.name]=e});var Yn=function(e){return dr[e]||cr.find(function(t){return t.short===e})},mr=function(e){return e.hasOwnProperty("path")},gr={},Yt={},Lt={};Object.defineProperty(Lt,"__esModule",{value:!0});Lt.isCorrect=Lt.isInSubnet=void 0;function qn(e){return this.subnetMask<e.subnetMask?!1:this.mask(e.subnetMask)===e.mask()}Lt.isInSubnet=qn;function Qn(e){return function(){return this.addressMinusSuffix!==this.correctForm()?!1:this.subnetMask===e&&!this.parsedSubnet?!0:this.parsedSubnet===String(this.subnetMask)}}Lt.isCorrect=Qn;var nt={};Object.defineProperty(nt,"__esModule",{value:!0});nt.RE_SUBNET_STRING=nt.RE_ADDRESS=nt.GROUPS=nt.BITS=void 0;nt.BITS=32;nt.GROUPS=4;nt.RE_ADDRESS=/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/g;nt.RE_SUBNET_STRING=/\/\d{1,2}$/;var qt={},Zn=x&&x.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,s){i.__proto__=s}||function(i,s){for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(i[a]=s[a])},e(t,r)};return function(t,r){e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(qt,"__esModule",{value:!0});qt.AddressError=void 0;var Wn=function(e){Zn(t,e);function t(r,i){var s=e.call(this,r)||this;return s.name="AddressError",i!==null&&(s.parseMessage=i),s}return t}(Error);qt.AddressError=Wn;var yr={exports:{}};(function(e,t){(function(){var r,i=0xdeadbeefcafe,s=(i&16777215)==15715070;function a(n,o,u){n!=null&&(typeof n=="number"?this.fromNumber(n,o,u):o==null&&typeof n!="string"?this.fromString(n,256):this.fromString(n,o))}function f(){return new a(null)}function l(n,o,u,p,g,v){for(;--v>=0;){var T=o*this[n++]+u[p]+g;g=Math.floor(T/67108864),u[p++]=T&67108863}return g}function c(n,o,u,p,g,v){for(var T=o&32767,E=o>>15;--v>=0;){var M=this[n]&32767,V=this[n++]>>15,Z=E*M+V*T;M=T*M+((Z&32767)<<15)+u[p]+(g&1073741823),g=(M>>>30)+(Z>>>15)+E*V+(g>>>30),u[p++]=M&1073741823}return g}function h(n,o,u,p,g,v){for(var T=o&16383,E=o>>14;--v>=0;){var M=this[n]&16383,V=this[n++]>>14,Z=E*M+V*T;M=T*M+((Z&16383)<<14)+u[p]+g,g=(M>>28)+(Z>>14)+E*V,u[p++]=M&268435455}return g}var m=typeof navigator<"u";m&&s&&navigator.appName=="Microsoft Internet Explorer"?(a.prototype.am=c,r=30):m&&s&&navigator.appName!="Netscape"?(a.prototype.am=l,r=26):(a.prototype.am=h,r=28),a.prototype.DB=r,a.prototype.DM=(1<<r)-1,a.prototype.DV=1<<r;var d=52;a.prototype.FV=Math.pow(2,d),a.prototype.F1=d-r,a.prototype.F2=2*r-d;var _="0123456789abcdefghijklmnopqrstuvwxyz",w=new Array,R,A;for(R="0".charCodeAt(0),A=0;A<=9;++A)w[R++]=A;for(R="a".charCodeAt(0),A=10;A<36;++A)w[R++]=A;for(R="A".charCodeAt(0),A=10;A<36;++A)w[R++]=A;function C(n){return _.charAt(n)}function I(n,o){var u=w[n.charCodeAt(o)];return u??-1}function at(n){for(var o=this.t-1;o>=0;--o)n[o]=this[o];n.t=this.t,n.s=this.s}function pt(n){this.t=1,this.s=n<0?-1:0,n>0?this[0]=n:n<-1?this[0]=n+this.DV:this.t=0}function k(n){var o=f();return o.fromInt(n),o}function Jt(n,o){var u;if(o==16)u=4;else if(o==8)u=3;else if(o==256)u=8;else if(o==2)u=1;else if(o==32)u=5;else if(o==4)u=2;else{this.fromRadix(n,o);return}this.t=0,this.s=0;for(var p=n.length,g=!1,v=0;--p>=0;){var T=u==8?n[p]&255:I(n,p);if(T<0){n.charAt(p)=="-"&&(g=!0);continue}g=!1,v==0?this[this.t++]=T:v+u>this.DB?(this[this.t-1]|=(T&(1<<this.DB-v)-1)<<v,this[this.t++]=T>>this.DB-v):this[this.t-1]|=T<<v,v+=u,v>=this.DB&&(v-=this.DB)}u==8&&n[0]&128&&(this.s=-1,v>0&&(this[this.t-1]|=(1<<this.DB-v)-1<<v)),this.clamp(),g&&a.ZERO.subTo(this,this)}function te(){for(var n=this.s&this.DM;this.t>0&&this[this.t-1]==n;)--this.t}function ee(n){if(this.s<0)return"-"+this.negate().toString(n);var o;if(n==16)o=4;else if(n==8)o=3;else if(n==2)o=1;else if(n==32)o=5;else if(n==4)o=2;else return this.toRadix(n);var u=(1<<o)-1,p,g=!1,v="",T=this.t,E=this.DB-T*this.DB%o;if(T-- >0)for(E<this.DB&&(p=this[T]>>E)>0&&(g=!0,v=C(p));T>=0;)E<o?(p=(this[T]&(1<<E)-1)<<o-E,p|=this[--T]>>(E+=this.DB-o)):(p=this[T]>>(E-=o)&u,E<=0&&(E+=this.DB,--T)),p>0&&(g=!0),g&&(v+=C(p));return g?v:"0"}function jt(){var n=f();return a.ZERO.subTo(this,n),n}function Vt(){return this.s<0?this.negate():this}function ht(n){var o=this.s-n.s;if(o!=0)return o;var u=this.t;if(o=u-n.t,o!=0)return this.s<0?-o:o;for(;--u>=0;)if((o=this[u]-n[u])!=0)return o;return 0}function yt(n){var o=1,u;return(u=n>>>16)!=0&&(n=u,o+=16),(u=n>>8)!=0&&(n=u,o+=8),(u=n>>4)!=0&&(n=u,o+=4),(u=n>>2)!=0&&(n=u,o+=2),(u=n>>1)!=0&&(n=u,o+=1),o}function Mt(){return this.t<=0?0:this.DB*(this.t-1)+yt(this[this.t-1]^this.s&this.DM)}function re(n,o){var u;for(u=this.t-1;u>=0;--u)o[u+n]=this[u];for(u=n-1;u>=0;--u)o[u]=0;o.t=this.t+n,o.s=this.s}function ct(n,o){for(var u=n;u<this.t;++u)o[u-n]=this[u];o.t=Math.max(this.t-n,0),o.s=this.s}function ut(n,o){var u=n%this.DB,p=this.DB-u,g=(1<<p)-1,v=Math.floor(n/this.DB),T=this.s<<u&this.DM,E;for(E=this.t-1;E>=0;--E)o[E+v+1]=this[E]>>p|T,T=(this[E]&g)<<u;for(E=v-1;E>=0;--E)o[E]=0;o[v]=T,o.t=this.t+v+1,o.s=this.s,o.clamp()}function X(n,o){o.s=this.s;var u=Math.floor(n/this.DB);if(u>=this.t){o.t=0;return}var p=n%this.DB,g=this.DB-p,v=(1<<p)-1;o[0]=this[u]>>p;for(var T=u+1;T<this.t;++T)o[T-u-1]|=(this[T]&v)<<g,o[T-u]=this[T]>>p;p>0&&(o[this.t-u-1]|=(this.s&v)<<g),o.t=this.t-u,o.clamp()}function ie(n,o){for(var u=0,p=0,g=Math.min(n.t,this.t);u<g;)p+=this[u]-n[u],o[u++]=p&this.DM,p>>=this.DB;if(n.t<this.t){for(p-=n.s;u<this.t;)p+=this[u],o[u++]=p&this.DM,p>>=this.DB;p+=this.s}else{for(p+=this.s;u<n.t;)p-=n[u],o[u++]=p&this.DM,p>>=this.DB;p-=n.s}o.s=p<0?-1:0,p<-1?o[u++]=this.DV+p:p>0&&(o[u++]=p),o.t=u,o.clamp()}function ne(n,o){var u=this.abs(),p=n.abs(),g=u.t;for(o.t=g+p.t;--g>=0;)o[g]=0;for(g=0;g<p.t;++g)o[g+u.t]=u.am(0,p[g],o,g,0,u.t);o.s=0,o.clamp(),this.s!=n.s&&a.ZERO.subTo(o,o)}function se(n){for(var o=this.abs(),u=n.t=2*o.t;--u>=0;)n[u]=0;for(u=0;u<o.t-1;++u){var p=o.am(u,o[u],n,2*u,0,1);(n[u+o.t]+=o.am(u+1,2*o[u],n,2*u+1,p,o.t-u-1))>=o.DV&&(n[u+o.t]-=o.DV,n[u+o.t+1]=1)}n.t>0&&(n[n.t-1]+=o.am(u,o[u],n,2*u,0,1)),n.s=0,n.clamp()}function Pt(n,o,u){var p=n.abs();if(!(p.t<=0)){var g=this.abs();if(g.t<p.t){o?.fromInt(0),u!=null&&this.copyTo(u);return}u==null&&(u=f());var v=f(),T=this.s,E=n.s,M=this.DB-yt(p[p.t-1]);M>0?(p.lShiftTo(M,v),g.lShiftTo(M,u)):(p.copyTo(v),g.copyTo(u));var V=v.t,Z=v[V-1];if(Z!=0){var q=Z*(1<<this.F1)+(V>1?v[V-2]>>this.F2:0),mt=this.FV/q,ae=(1<<this.F1)/q,tt=1<<this.F2,et=u.t,ue=et-V,vt=o??f();for(v.dlShiftTo(ue,vt),u.compareTo(vt)>=0&&(u[u.t++]=1,u.subTo(vt,u)),a.ONE.dlShiftTo(V,vt),vt.subTo(v,v);v.t<V;)v[v.t++]=0;for(;--ue>=0;){var xe=u[--et]==Z?this.DM:Math.floor(u[et]*mt+(u[et-1]+tt)*ae);if((u[et]+=v.am(0,xe,u,ue,0,V))<xe)for(v.dlShiftTo(ue,vt),u.subTo(vt,u);u[et]<--xe;)u.subTo(vt,u)}o!=null&&(u.drShiftTo(V,o),T!=E&&a.ZERO.subTo(o,o)),u.t=V,u.clamp(),M>0&&u.rShiftTo(M,u),T<0&&a.ZERO.subTo(u,u)}}}function dt(n){var o=f();return this.abs().divRemTo(n,null,o),this.s<0&&o.compareTo(a.ZERO)>0&&n.subTo(o,o),o}function Q(n){this.m=n}function N(n){return n.s<0||n.compareTo(this.m)>=0?n.mod(this.m):n}function At(n){return n}function $r(n){n.divRemTo(this.m,null,n)}function Hr(n,o,u){n.multiplyTo(o,u),this.reduce(u)}function zr(n,o){n.squareTo(o),this.reduce(o)}Q.prototype.convert=N,Q.prototype.revert=At,Q.prototype.reduce=$r,Q.prototype.mulTo=Hr,Q.prototype.sqrTo=zr;function Xr(){if(this.t<1)return 0;var n=this[0];if(!(n&1))return 0;var o=n&3;return o=o*(2-(n&15)*o)&15,o=o*(2-(n&255)*o)&255,o=o*(2-((n&65535)*o&65535))&65535,o=o*(2-n*o%this.DV)%this.DV,o>0?this.DV-o:-o}function Tt(n){this.m=n,this.mp=n.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<n.DB-15)-1,this.mt2=2*n.t}function Yr(n){var o=f();return n.abs().dlShiftTo(this.m.t,o),o.divRemTo(this.m,null,o),n.s<0&&o.compareTo(a.ZERO)>0&&this.m.subTo(o,o),o}function qr(n){var o=f();return n.copyTo(o),this.reduce(o),o}function Qr(n){for(;n.t<=this.mt2;)n[n.t++]=0;for(var o=0;o<this.m.t;++o){var u=n[o]&32767,p=u*this.mpl+((u*this.mph+(n[o]>>15)*this.mpl&this.um)<<15)&n.DM;for(u=o+this.m.t,n[u]+=this.m.am(0,p,n,o,0,this.m.t);n[u]>=n.DV;)n[u]-=n.DV,n[++u]++}n.clamp(),n.drShiftTo(this.m.t,n),n.compareTo(this.m)>=0&&n.subTo(this.m,n)}function Zr(n,o){n.squareTo(o),this.reduce(o)}function Wr(n,o,u){n.multiplyTo(o,u),this.reduce(u)}Tt.prototype.convert=Yr,Tt.prototype.revert=qr,Tt.prototype.reduce=Qr,Tt.prototype.mulTo=Wr,Tt.prototype.sqrTo=Zr;function Kr(){return(this.t>0?this[0]&1:this.s)==0}function Jr(n,o){if(n>4294967295||n<1)return a.ONE;var u=f(),p=f(),g=o.convert(this),v=yt(n)-1;for(g.copyTo(u);--v>=0;)if(o.sqrTo(u,p),(n&1<<v)>0)o.mulTo(p,g,u);else{var T=u;u=p,p=T}return o.revert(u)}function ti(n,o){var u;return n<256||o.isEven()?u=new Q(o):u=new Tt(o),this.exp(n,u)}a.prototype.copyTo=at,a.prototype.fromInt=pt,a.prototype.fromString=Jt,a.prototype.clamp=te,a.prototype.dlShiftTo=re,a.prototype.drShiftTo=ct,a.prototype.lShiftTo=ut,a.prototype.rShiftTo=X,a.prototype.subTo=ie,a.prototype.multiplyTo=ne,a.prototype.squareTo=se,a.prototype.divRemTo=Pt,a.prototype.invDigit=Xr,a.prototype.isEven=Kr,a.prototype.exp=Jr,a.prototype.toString=ee,a.prototype.negate=jt,a.prototype.abs=Vt,a.prototype.compareTo=ht,a.prototype.bitLength=Mt,a.prototype.mod=dt,a.prototype.modPowInt=ti,a.ZERO=k(0),a.ONE=k(1);function ei(){var n=f();return this.copyTo(n),n}function ri(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]}function ii(){return this.t==0?this.s:this[0]<<24>>24}function ni(){return this.t==0?this.s:this[0]<<16>>16}function si(n){return Math.floor(Math.LN2*this.DB/Math.log(n))}function oi(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1}function ai(n){if(n==null&&(n=10),this.signum()==0||n<2||n>36)return"0";var o=this.chunkSize(n),u=Math.pow(n,o),p=k(u),g=f(),v=f(),T="";for(this.divRemTo(p,g,v);g.signum()>0;)T=(u+v.intValue()).toString(n).substr(1)+T,g.divRemTo(p,g,v);return v.intValue().toString(n)+T}function ui(n,o){this.fromInt(0),o==null&&(o=10);for(var u=this.chunkSize(o),p=Math.pow(o,u),g=!1,v=0,T=0,E=0;E<n.length;++E){var M=I(n,E);if(M<0){n.charAt(E)=="-"&&this.signum()==0&&(g=!0);continue}T=o*T+M,++v>=u&&(this.dMultiply(p),this.dAddOffset(T,0),v=0,T=0)}v>0&&(this.dMultiply(Math.pow(o,v)),this.dAddOffset(T,0)),g&&a.ZERO.subTo(this,this)}function fi(n,o,u){if(typeof o=="number")if(n<2)this.fromInt(1);else for(this.fromNumber(n,u),this.testBit(n-1)||this.bitwiseTo(a.ONE.shiftLeft(n-1),Se,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(o);)this.dAddOffset(2,0),this.bitLength()>n&&this.subTo(a.ONE.shiftLeft(n-1),this);else{var p=new Array,g=n&7;p.length=(n>>3)+1,o.nextBytes(p),g>0?p[0]&=(1<<g)-1:p[0]=0,this.fromString(p,256)}}function li(){var n=this.t,o=new Array;o[0]=this.s;var u=this.DB-n*this.DB%8,p,g=0;if(n-- >0)for(u<this.DB&&(p=this[n]>>u)!=(this.s&this.DM)>>u&&(o[g++]=p|this.s<<this.DB-u);n>=0;)u<8?(p=(this[n]&(1<<u)-1)<<8-u,p|=this[--n]>>(u+=this.DB-8)):(p=this[n]>>(u-=8)&255,u<=0&&(u+=this.DB,--n)),p&128&&(p|=-256),g==0&&(this.s&128)!=(p&128)&&++g,(g>0||p!=this.s)&&(o[g++]=p);return o}function pi(n){return this.compareTo(n)==0}function hi(n){return this.compareTo(n)<0?this:n}function ci(n){return this.compareTo(n)>0?this:n}function di(n,o,u){var p,g,v=Math.min(n.t,this.t);for(p=0;p<v;++p)u[p]=o(this[p],n[p]);if(n.t<this.t){for(g=n.s&this.DM,p=v;p<this.t;++p)u[p]=o(this[p],g);u.t=this.t}else{for(g=this.s&this.DM,p=v;p<n.t;++p)u[p]=o(g,n[p]);u.t=n.t}u.s=o(this.s,n.s),u.clamp()}function mi(n,o){return n&o}function gi(n){var o=f();return this.bitwiseTo(n,mi,o),o}function Se(n,o){return n|o}function yi(n){var o=f();return this.bitwiseTo(n,Se,o),o}function He(n,o){return n^o}function vi(n){var o=f();return this.bitwiseTo(n,He,o),o}function ze(n,o){return n&~o}function _i(n){var o=f();return this.bitwiseTo(n,ze,o),o}function Ai(){for(var n=f(),o=0;o<this.t;++o)n[o]=this.DM&~this[o];return n.t=this.t,n.s=~this.s,n}function Ti(n){var o=f();return n<0?this.rShiftTo(-n,o):this.lShiftTo(n,o),o}function Ei(n){var o=f();return n<0?this.lShiftTo(-n,o):this.rShiftTo(n,o),o}function wi(n){if(n==0)return-1;var o=0;return n&65535||(n>>=16,o+=16),n&255||(n>>=8,o+=8),n&15||(n>>=4,o+=4),n&3||(n>>=2,o+=2),n&1||++o,o}function bi(){for(var n=0;n<this.t;++n)if(this[n]!=0)return n*this.DB+wi(this[n]);return this.s<0?this.t*this.DB:-1}function Si(n){for(var o=0;n!=0;)n&=n-1,++o;return o}function Ri(){for(var n=0,o=this.s&this.DM,u=0;u<this.t;++u)n+=Si(this[u]^o);return n}function Ii(n){var o=Math.floor(n/this.DB);return o>=this.t?this.s!=0:(this[o]&1<<n%this.DB)!=0}function xi(n,o){var u=a.ONE.shiftLeft(n);return this.bitwiseTo(u,o,u),u}function Ni(n){return this.changeBit(n,Se)}function Oi(n){return this.changeBit(n,ze)}function Li(n){return this.changeBit(n,He)}function Mi(n,o){for(var u=0,p=0,g=Math.min(n.t,this.t);u<g;)p+=this[u]+n[u],o[u++]=p&this.DM,p>>=this.DB;if(n.t<this.t){for(p+=n.s;u<this.t;)p+=this[u],o[u++]=p&this.DM,p>>=this.DB;p+=this.s}else{for(p+=this.s;u<n.t;)p+=n[u],o[u++]=p&this.DM,p>>=this.DB;p+=n.s}o.s=p<0?-1:0,p>0?o[u++]=p:p<-1&&(o[u++]=this.DV+p),o.t=u,o.clamp()}function Pi(n){var o=f();return this.addTo(n,o),o}function Ci(n){var o=f();return this.subTo(n,o),o}function Bi(n){var o=f();return this.multiplyTo(n,o),o}function Di(){var n=f();return this.squareTo(n),n}function ki(n){var o=f();return this.divRemTo(n,o,null),o}function ji(n){var o=f();return this.divRemTo(n,null,o),o}function Vi(n){var o=f(),u=f();return this.divRemTo(n,o,u),new Array(o,u)}function Fi(n){this[this.t]=this.am(0,n-1,this,0,0,this.t),++this.t,this.clamp()}function Gi(n,o){if(n!=0){for(;this.t<=o;)this[this.t++]=0;for(this[o]+=n;this[o]>=this.DV;)this[o]-=this.DV,++o>=this.t&&(this[this.t++]=0),++this[o]}}function Ft(){}function Xe(n){return n}function Ui(n,o,u){n.multiplyTo(o,u)}function $i(n,o){n.squareTo(o)}Ft.prototype.convert=Xe,Ft.prototype.revert=Xe,Ft.prototype.mulTo=Ui,Ft.prototype.sqrTo=$i;function Hi(n){return this.exp(n,new Ft)}function zi(n,o,u){var p=Math.min(this.t+n.t,o);for(u.s=0,u.t=p;p>0;)u[--p]=0;var g;for(g=u.t-this.t;p<g;++p)u[p+this.t]=this.am(0,n[p],u,p,0,this.t);for(g=Math.min(n.t,o);p<g;++p)this.am(0,n[p],u,p,0,o-p);u.clamp()}function Xi(n,o,u){--o;var p=u.t=this.t+n.t-o;for(u.s=0;--p>=0;)u[p]=0;for(p=Math.max(o-this.t,0);p<n.t;++p)u[this.t+p-o]=this.am(o-p,n[p],u,0,0,this.t+p-o);u.clamp(),u.drShiftTo(1,u)}function Et(n){this.r2=f(),this.q3=f(),a.ONE.dlShiftTo(2*n.t,this.r2),this.mu=this.r2.divide(n),this.m=n}function Yi(n){if(n.s<0||n.t>2*this.m.t)return n.mod(this.m);if(n.compareTo(this.m)<0)return n;var o=f();return n.copyTo(o),this.reduce(o),o}function qi(n){return n}function Qi(n){for(n.drShiftTo(this.m.t-1,this.r2),n.t>this.m.t+1&&(n.t=this.m.t+1,n.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);n.compareTo(this.r2)<0;)n.dAddOffset(1,this.m.t+1);for(n.subTo(this.r2,n);n.compareTo(this.m)>=0;)n.subTo(this.m,n)}function Zi(n,o){n.squareTo(o),this.reduce(o)}function Wi(n,o,u){n.multiplyTo(o,u),this.reduce(u)}Et.prototype.convert=Yi,Et.prototype.revert=qi,Et.prototype.reduce=Qi,Et.prototype.mulTo=Wi,Et.prototype.sqrTo=Zi;function Ki(n,o){var u=n.bitLength(),p,g=k(1),v;if(u<=0)return g;u<18?p=1:u<48?p=3:u<144?p=4:u<768?p=5:p=6,u<8?v=new Q(o):o.isEven()?v=new Et(o):v=new Tt(o);var T=new Array,E=3,M=p-1,V=(1<<p)-1;if(T[1]=v.convert(this),p>1){var Z=f();for(v.sqrTo(T[1],Z);E<=V;)T[E]=f(),v.mulTo(Z,T[E-2],T[E]),E+=2}var q=n.t-1,mt,ae=!0,tt=f(),et;for(u=yt(n[q])-1;q>=0;){for(u>=M?mt=n[q]>>u-M&V:(mt=(n[q]&(1<<u+1)-1)<<M-u,q>0&&(mt|=n[q-1]>>this.DB+u-M)),E=p;!(mt&1);)mt>>=1,--E;if((u-=E)<0&&(u+=this.DB,--q),ae)T[mt].copyTo(g),ae=!1;else{for(;E>1;)v.sqrTo(g,tt),v.sqrTo(tt,g),E-=2;E>0?v.sqrTo(g,tt):(et=g,g=tt,tt=et),v.mulTo(tt,T[mt],g)}for(;q>=0&&!(n[q]&1<<u);)v.sqrTo(g,tt),et=g,g=tt,tt=et,--u<0&&(u=this.DB-1,--q)}return v.revert(g)}function Ji(n){var o=this.s<0?this.negate():this.clone(),u=n.s<0?n.negate():n.clone();if(o.compareTo(u)<0){var p=o;o=u,u=p}var g=o.getLowestSetBit(),v=u.getLowestSetBit();if(v<0)return o;for(g<v&&(v=g),v>0&&(o.rShiftTo(v,o),u.rShiftTo(v,u));o.signum()>0;)(g=o.getLowestSetBit())>0&&o.rShiftTo(g,o),(g=u.getLowestSetBit())>0&&u.rShiftTo(g,u),o.compareTo(u)>=0?(o.subTo(u,o),o.rShiftTo(1,o)):(u.subTo(o,u),u.rShiftTo(1,u));return v>0&&u.lShiftTo(v,u),u}function tn(n){if(n<=0)return 0;var o=this.DV%n,u=this.s<0?n-1:0;if(this.t>0)if(o==0)u=this[0]%n;else for(var p=this.t-1;p>=0;--p)u=(o*u+this[p])%n;return u}function en(n){var o=n.isEven();if(this.isEven()&&o||n.signum()==0)return a.ZERO;for(var u=n.clone(),p=this.clone(),g=k(1),v=k(0),T=k(0),E=k(1);u.signum()!=0;){for(;u.isEven();)u.rShiftTo(1,u),o?((!g.isEven()||!v.isEven())&&(g.addTo(this,g),v.subTo(n,v)),g.rShiftTo(1,g)):v.isEven()||v.subTo(n,v),v.rShiftTo(1,v);for(;p.isEven();)p.rShiftTo(1,p),o?((!T.isEven()||!E.isEven())&&(T.addTo(this,T),E.subTo(n,E)),T.rShiftTo(1,T)):E.isEven()||E.subTo(n,E),E.rShiftTo(1,E);u.compareTo(p)>=0?(u.subTo(p,u),o&&g.subTo(T,g),v.subTo(E,v)):(p.subTo(u,p),o&&T.subTo(g,T),E.subTo(v,E))}if(p.compareTo(a.ONE)!=0)return a.ZERO;if(E.compareTo(n)>=0)return E.subtract(n);if(E.signum()<0)E.addTo(n,E);else return E;return E.signum()<0?E.add(n):E}var G=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],rn=(1<<26)/G[G.length-1];function nn(n){var o,u=this.abs();if(u.t==1&&u[0]<=G[G.length-1]){for(o=0;o<G.length;++o)if(u[0]==G[o])return!0;return!1}if(u.isEven())return!1;for(o=1;o<G.length;){for(var p=G[o],g=o+1;g<G.length&&p<rn;)p*=G[g++];for(p=u.modInt(p);o<g;)if(p%G[o++]==0)return!1}return u.millerRabin(n)}function sn(n){var o=this.subtract(a.ONE),u=o.getLowestSetBit();if(u<=0)return!1;var p=o.shiftRight(u);n=n+1>>1,n>G.length&&(n=G.length);for(var g=f(),v=0;v<n;++v){g.fromInt(G[Math.floor(Math.random()*G.length)]);var T=g.modPow(p,this);if(T.compareTo(a.ONE)!=0&&T.compareTo(o)!=0){for(var E=1;E++<u&&T.compareTo(o)!=0;)if(T=T.modPowInt(2,this),T.compareTo(a.ONE)==0)return!1;if(T.compareTo(o)!=0)return!1}}return!0}a.prototype.chunkSize=si,a.prototype.toRadix=ai,a.prototype.fromRadix=ui,a.prototype.fromNumber=fi,a.prototype.bitwiseTo=di,a.prototype.changeBit=xi,a.prototype.addTo=Mi,a.prototype.dMultiply=Fi,a.prototype.dAddOffset=Gi,a.prototype.multiplyLowerTo=zi,a.prototype.multiplyUpperTo=Xi,a.prototype.modInt=tn,a.prototype.millerRabin=sn,a.prototype.clone=ei,a.prototype.intValue=ri,a.prototype.byteValue=ii,a.prototype.shortValue=ni,a.prototype.signum=oi,a.prototype.toByteArray=li,a.prototype.equals=pi,a.prototype.min=hi,a.prototype.max=ci,a.prototype.and=gi,a.prototype.or=yi,a.prototype.xor=vi,a.prototype.andNot=_i,a.prototype.not=Ai,a.prototype.shiftLeft=Ti,a.prototype.shiftRight=Ei,a.prototype.getLowestSetBit=bi,a.prototype.bitCount=Ri,a.prototype.testBit=Ii,a.prototype.setBit=Ni,a.prototype.clearBit=Oi,a.prototype.flipBit=Li,a.prototype.add=Pi,a.prototype.subtract=Ci,a.prototype.multiply=Bi,a.prototype.divide=ki,a.prototype.remainder=ji,a.prototype.divideAndRemainder=Vi,a.prototype.modPow=Ki,a.prototype.modInverse=en,a.prototype.pow=Hi,a.prototype.gcd=Ji,a.prototype.isProbablePrime=nn,a.prototype.square=Di,a.prototype.Barrett=Et;var oe,Y,j;function on(n){Y[j++]^=n&255,Y[j++]^=n>>8&255,Y[j++]^=n>>16&255,Y[j++]^=n>>24&255,j>=Ie&&(j-=Ie)}function Ye(){on(new Date().getTime())}if(Y==null){Y=new Array,j=0;var J;if(typeof window<"u"&&window.crypto){if(window.crypto.getRandomValues){var qe=new Uint8Array(32);for(window.crypto.getRandomValues(qe),J=0;J<32;++J)Y[j++]=qe[J]}else if(navigator.appName=="Netscape"&&navigator.appVersion<"5"){var Qe=window.crypto.random(32);for(J=0;J<Qe.length;++J)Y[j++]=Qe.charCodeAt(J)&255}}for(;j<Ie;)J=Math.floor(65536*Math.random()),Y[j++]=J>>>8,Y[j++]=J&255;j=0,Ye()}function an(){if(oe==null){for(Ye(),oe=pn(),oe.init(Y),j=0;j<Y.length;++j)Y[j]=0;j=0}return oe.next()}function un(n){var o;for(o=0;o<n.length;++o)n[o]=an()}function Ze(){}Ze.prototype.nextBytes=un;function Re(){this.i=0,this.j=0,this.S=new Array}function fn(n){var o,u,p;for(o=0;o<256;++o)this.S[o]=o;for(u=0,o=0;o<256;++o)u=u+this.S[o]+n[o%n.length]&255,p=this.S[o],this.S[o]=this.S[u],this.S[u]=p;this.i=0,this.j=0}function ln(){var n;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,n=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=n,this.S[n+this.S[this.i]&255]}Re.prototype.init=fn,Re.prototype.next=ln;function pn(){return new Re}var Ie=256;e.exports={default:a,BigInteger:a,SecureRandom:Ze}}).call(x)})(yr);var $e=yr.exports,Qt={};(function(e){(function(){var t={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function r(l){return s(f(l),arguments)}function i(l,c){return r.apply(null,[l].concat(c||[]))}function s(l,c){var h=1,m=l.length,d,_="",w,R,A,C,I,at,pt,k;for(w=0;w<m;w++)if(typeof l[w]=="string")_+=l[w];else if(typeof l[w]=="object"){if(A=l[w],A.keys)for(d=c[h],R=0;R<A.keys.length;R++){if(d==null)throw new Error(r('[sprintf] Cannot access property "%s" of undefined value "%s"',A.keys[R],A.keys[R-1]));d=d[A.keys[R]]}else A.param_no?d=c[A.param_no]:d=c[h++];if(t.not_type.test(A.type)&&t.not_primitive.test(A.type)&&d instanceof Function&&(d=d()),t.numeric_arg.test(A.type)&&typeof d!="number"&&isNaN(d))throw new TypeError(r("[sprintf] expecting number but found %T",d));switch(t.number.test(A.type)&&(pt=d>=0),A.type){case"b":d=parseInt(d,10).toString(2);break;case"c":d=String.fromCharCode(parseInt(d,10));break;case"d":case"i":d=parseInt(d,10);break;case"j":d=JSON.stringify(d,null,A.width?parseInt(A.width):0);break;case"e":d=A.precision?parseFloat(d).toExponential(A.precision):parseFloat(d).toExponential();break;case"f":d=A.precision?parseFloat(d).toFixed(A.precision):parseFloat(d);break;case"g":d=A.precision?String(Number(d.toPrecision(A.precision))):parseFloat(d);break;case"o":d=(parseInt(d,10)>>>0).toString(8);break;case"s":d=String(d),d=A.precision?d.substring(0,A.precision):d;break;case"t":d=String(!!d),d=A.precision?d.substring(0,A.precision):d;break;case"T":d=Object.prototype.toString.call(d).slice(8,-1).toLowerCase(),d=A.precision?d.substring(0,A.precision):d;break;case"u":d=parseInt(d,10)>>>0;break;case"v":d=d.valueOf(),d=A.precision?d.substring(0,A.precision):d;break;case"x":d=(parseInt(d,10)>>>0).toString(16);break;case"X":d=(parseInt(d,10)>>>0).toString(16).toUpperCase();break}t.json.test(A.type)?_+=d:(t.number.test(A.type)&&(!pt||A.sign)?(k=pt?"+":"-",d=d.toString().replace(t.sign,"")):k="",I=A.pad_char?A.pad_char==="0"?"0":A.pad_char.charAt(1):" ",at=A.width-(k+d).length,C=A.width&&at>0?I.repeat(at):"",_+=A.align?k+d+C:I==="0"?k+C+d:C+k+d)}return _}var a=Object.create(null);function f(l){if(a[l])return a[l];for(var c=l,h,m=[],d=0;c;){if((h=t.text.exec(c))!==null)m.push(h[0]);else if((h=t.modulo.exec(c))!==null)m.push("%");else if((h=t.placeholder.exec(c))!==null){if(h[2]){d|=1;var _=[],w=h[2],R=[];if((R=t.key.exec(w))!==null)for(_.push(R[1]);(w=w.substring(R[0].length))!=="";)if((R=t.key_access.exec(w))!==null)_.push(R[1]);else if((R=t.index_access.exec(w))!==null)_.push(R[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");h[2]=_}else d|=2;if(d===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");m.push({placeholder:h[0],param_no:h[1],keys:h[2],sign:h[3],pad_char:h[4],align:h[5],width:h[6],precision:h[7],type:h[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");c=c.substring(h[0].length)}return a[l]=m}e.sprintf=r,e.vsprintf=i,typeof window<"u"&&(window.sprintf=r,window.vsprintf=i)})()})(Qt);var Kn=x&&x.__createBinding||(Object.create?function(e,t,r,i){i===void 0&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){i===void 0&&(i=r),e[i]=t[r]}),Jn=x&&x.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),vr=x&&x.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&Kn(t,e,r);return Jn(t,e),t};Object.defineProperty(Yt,"__esModule",{value:!0});Yt.Address4=void 0;var er=vr(Lt),rt=vr(nt),rr=qt,Gt=$e,Ut=Qt,ts=function(){function e(t){this.groups=rt.GROUPS,this.parsedAddress=[],this.parsedSubnet="",this.subnet="/32",this.subnetMask=32,this.v4=!0,this.isCorrect=er.isCorrect(rt.BITS),this.isInSubnet=er.isInSubnet,this.address=t;var r=rt.RE_SUBNET_STRING.exec(t);if(r){if(this.parsedSubnet=r[0].replace("/",""),this.subnetMask=parseInt(this.parsedSubnet,10),this.subnet="/"+this.subnetMask,this.subnetMask<0||this.subnetMask>rt.BITS)throw new rr.AddressError("Invalid subnet mask.");t=t.replace(rt.RE_SUBNET_STRING,"")}this.addressMinusSuffix=t,this.parsedAddress=this.parse(t)}return e.isValid=function(t){try{return new e(t),!0}catch{return!1}},e.prototype.parse=function(t){var r=t.split(".");if(!t.match(rt.RE_ADDRESS))throw new rr.AddressError("Invalid IPv4 address.");return r},e.prototype.correctForm=function(){return this.parsedAddress.map(function(t){return parseInt(t,10)}).join(".")},e.fromHex=function(t){var r=t.replace(/:/g,"").padStart(8,"0"),i=[],s;for(s=0;s<8;s+=2){var a=r.slice(s,s+2);i.push(parseInt(a,16))}return new e(i.join("."))},e.fromInteger=function(t){return e.fromHex(t.toString(16))},e.prototype.toHex=function(){return this.parsedAddress.map(function(t){return Ut.sprintf("%02x",parseInt(t,10))}).join(":")},e.prototype.toArray=function(){return this.parsedAddress.map(function(t){return parseInt(t,10)})},e.prototype.toGroup6=function(){var t=[],r;for(r=0;r<rt.GROUPS;r+=2){var i=Ut.sprintf("%02x%02x",parseInt(this.parsedAddress[r],10),parseInt(this.parsedAddress[r+1],10));t.push(Ut.sprintf("%x",parseInt(i,16)))}return t.join(":")},e.prototype.bigInteger=function(){return new Gt.BigInteger(this.parsedAddress.map(function(t){return Ut.sprintf("%02x",parseInt(t,10))}).join(""),16)},e.prototype._startAddress=function(){return new Gt.BigInteger(this.mask()+"0".repeat(rt.BITS-this.subnetMask),2)},e.prototype.startAddress=function(){return e.fromBigInteger(this._startAddress())},e.prototype.startAddressExclusive=function(){var t=new Gt.BigInteger("1");return e.fromBigInteger(this._startAddress().add(t))},e.prototype._endAddress=function(){return new Gt.BigInteger(this.mask()+"1".repeat(rt.BITS-this.subnetMask),2)},e.prototype.endAddress=function(){return e.fromBigInteger(this._endAddress())},e.prototype.endAddressExclusive=function(){var t=new Gt.BigInteger("1");return e.fromBigInteger(this._endAddress().subtract(t))},e.fromBigInteger=function(t){return e.fromInteger(parseInt(t.toString(),10))},e.prototype.mask=function(t){return t===void 0&&(t=this.subnetMask),this.getBitsBase2(0,t)},e.prototype.getBitsBase2=function(t,r){return this.binaryZeroPad().slice(t,r)},e.prototype.isMulticast=function(){return this.isInSubnet(new e("224.0.0.0/4"))},e.prototype.binaryZeroPad=function(){return this.bigInteger().toString(2).padStart(rt.BITS,"0")},e.prototype.groupForV6=function(){var t=this.parsedAddress;return this.address.replace(rt.RE_ADDRESS,Ut.sprintf('<span class="hover-group group-v4 group-6">%s</span>.<span class="hover-group group-v4 group-7">%s</span>',t.slice(0,2).join("."),t.slice(2,4).join(".")))},e}();Yt.Address4=ts;var Ee={},P={};Object.defineProperty(P,"__esModule",{value:!0});P.RE_URL_WITH_PORT=P.RE_URL=P.RE_ZONE_STRING=P.RE_SUBNET_STRING=P.RE_BAD_ADDRESS=P.RE_BAD_CHARACTERS=P.TYPES=P.SCOPES=P.GROUPS=P.BITS=void 0;P.BITS=128;P.GROUPS=8;P.SCOPES={0:"Reserved",1:"Interface local",2:"Link local",4:"Admin local",5:"Site local",8:"Organization local",14:"Global",15:"Reserved"};P.TYPES={"ff01::1/128":"Multicast (All nodes on this interface)","ff01::2/128":"Multicast (All routers on this interface)","ff02::1/128":"Multicast (All nodes on this link)","ff02::2/128":"Multicast (All routers on this link)","ff05::2/128":"Multicast (All routers in this site)","ff02::5/128":"Multicast (OSPFv3 AllSPF routers)","ff02::6/128":"Multicast (OSPFv3 AllDR routers)","ff02::9/128":"Multicast (RIP routers)","ff02::a/128":"Multicast (EIGRP routers)","ff02::d/128":"Multicast (PIM routers)","ff02::16/128":"Multicast (MLDv2 reports)","ff01::fb/128":"Multicast (mDNSv6)","ff02::fb/128":"Multicast (mDNSv6)","ff05::fb/128":"Multicast (mDNSv6)","ff02::1:2/128":"Multicast (All DHCP servers and relay agents on this link)","ff05::1:2/128":"Multicast (All DHCP servers and relay agents in this site)","ff02::1:3/128":"Multicast (All DHCP servers on this link)","ff05::1:3/128":"Multicast (All DHCP servers in this site)","::/128":"Unspecified","::1/128":"Loopback","ff00::/8":"Multicast","fe80::/10":"Link-local unicast"};P.RE_BAD_CHARACTERS=/([^0-9a-f:/%])/gi;P.RE_BAD_ADDRESS=/([0-9a-f]{5,}|:{3,}|[^:]:$|^:[^:]|\/$)/gi;P.RE_SUBNET_STRING=/\/\d{1,3}(?=%|$)/;P.RE_ZONE_STRING=/%.*$/;P.RE_URL=new RegExp(/^\[{0,1}([0-9a-f:]+)\]{0,1}/);P.RE_URL_WITH_PORT=new RegExp(/\[([0-9a-f:]+)\]:([0-9]{1,5})/);var st={};Object.defineProperty(st,"__esModule",{value:!0});st.simpleGroup=st.spanLeadingZeroes=st.spanAll=st.spanAllZeroes=void 0;var _r=Qt;function Ar(e){return e.replace(/(0+)/g,'<span class="zero">$1</span>')}st.spanAllZeroes=Ar;function es(e,t){t===void 0&&(t=0);var r=e.split("");return r.map(function(i,s){return _r.sprintf('<span class="digit value-%s position-%d">%s</span>',i,s+t,Ar(i))}).join("")}st.spanAll=es;function Tr(e){return e.replace(/^(0+)/,'<span class="zero">$1</span>')}function rs(e){var t=e.split(":");return t.map(function(r){return Tr(r)}).join(":")}st.spanLeadingZeroes=rs;function is(e,t){t===void 0&&(t=0);var r=e.split(":");return r.map(function(i,s){return/group-v4/.test(i)?i:_r.sprintf('<span class="hover-group group-%d">%s</span>',s+t,Tr(i))})}st.simpleGroup=is;var K={},ns=x&&x.__createBinding||(Object.create?function(e,t,r,i){i===void 0&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){i===void 0&&(i=r),e[i]=t[r]}),ss=x&&x.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),os=x&&x.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&ns(t,e,r);return ss(t,e),t};Object.defineProperty(K,"__esModule",{value:!0});K.possibleElisions=K.simpleRegularExpression=K.ADDRESS_BOUNDARY=K.padGroup=K.groupPossibilities=void 0;var as=os(P),kt=Qt;function Ae(e){return kt.sprintf("(%s)",e.join("|"))}K.groupPossibilities=Ae;function ge(e){return e.length<4?kt.sprintf("0{0,%d}%s",4-e.length,e):e}K.padGroup=ge;K.ADDRESS_BOUNDARY="[^A-Fa-f0-9:]";function us(e){var t=[];e.forEach(function(i,s){var a=parseInt(i,16);a===0&&t.push(s)});var r=t.map(function(i){return e.map(function(s,a){if(a===i){var f=a===0||a===as.GROUPS-1?":":"";return Ae([ge(s),f])}return ge(s)}).join(":")});return r.push(e.map(ge).join(":")),Ae(r)}K.simpleRegularExpression=us;function fs(e,t,r){var i=t?"":":",s=r?"":":",a=[];!t&&!r&&a.push("::"),t&&r&&a.push(""),(r&&!t||!r&&t)&&a.push(":"),a.push(kt.sprintf("%s(:0{1,4}){1,%d}",i,e-1)),a.push(kt.sprintf("(0{1,4}:){1,%d}%s",e-1,s)),a.push(kt.sprintf("(0{1,4}:){%d}0{1,4}",e-1));for(var f=1;f<e-1;f++)for(var l=1;l<e-f;l++)a.push(kt.sprintf("(0{1,4}:){%d}:(0{1,4}:){%d}0{1,4}",l,e-l-f-1));return Ae(a)}K.possibleElisions=fs;var ls=x&&x.__createBinding||(Object.create?function(e,t,r,i){i===void 0&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){i===void 0&&(i=r),e[i]=t[r]}),ps=x&&x.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),we=x&&x.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&ls(t,e,r);return ps(t,e),t},hs=x&&x.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var i=Array(e),s=0,t=0;t<r;t++)for(var a=arguments[t],f=0,l=a.length;f<l;f++,s++)i[s]=a[f];return i};Object.defineProperty(Ee,"__esModule",{value:!0});Ee.Address6=void 0;var ir=we(Lt),Me=we(nt),O=we(P),Pe=we(st),St=Yt,Rt=K,gt=qt,U=$e,H=Qt;function he(e){if(!e)throw new Error("Assertion failed.")}function cs(e){for(var t=/(\d+)(\d{3})/;t.test(e);)e=e.replace(t,"$1,$2");return e}function ds(e){return e=e.replace(/^(0{1,})([1-9]+)$/,'<span class="parse-error">$1</span>$2'),e=e.replace(/^(0{1,})(0)$/,'<span class="parse-error">$1</span>$2'),e}function ms(e,t){var r=[],i=[],s;for(s=0;s<e.length;s++)s<t[0]?r.push(e[s]):s>t[1]&&i.push(e[s]);return r.concat(["compact"]).concat(i)}function nr(e){return H.sprintf("%04x",parseInt(e,16))}function sr(e){return e&255}var gs=function(){function e(t,r){this.addressMinusSuffix="",this.parsedSubnet="",this.subnet="/128",this.subnetMask=128,this.v4=!1,this.zone="",this.isInSubnet=ir.isInSubnet,this.isCorrect=ir.isCorrect(O.BITS),r===void 0?this.groups=O.GROUPS:this.groups=r,this.address=t;var i=O.RE_SUBNET_STRING.exec(t);if(i){if(this.parsedSubnet=i[0].replace("/",""),this.subnetMask=parseInt(this.parsedSubnet,10),this.subnet="/"+this.subnetMask,Number.isNaN(this.subnetMask)||this.subnetMask<0||this.subnetMask>O.BITS)throw new gt.AddressError("Invalid subnet mask.");t=t.replace(O.RE_SUBNET_STRING,"")}else if(/\//.test(t))throw new gt.AddressError("Invalid subnet mask.");var s=O.RE_ZONE_STRING.exec(t);s&&(this.zone=s[0],t=t.replace(O.RE_ZONE_STRING,"")),this.addressMinusSuffix=t,this.parsedAddress=this.parse(this.addressMinusSuffix)}return e.isValid=function(t){try{return new e(t),!0}catch{return!1}},e.fromBigInteger=function(t){var r=t.toString(16).padStart(32,"0"),i=[],s;for(s=0;s<O.GROUPS;s++)i.push(r.slice(s*4,(s+1)*4));return new e(i.join(":"))},e.fromURL=function(t){var r,i=null,s;if(t.indexOf("[")!==-1&&t.indexOf("]:")!==-1){if(s=O.RE_URL_WITH_PORT.exec(t),s===null)return{error:"failed to parse address with port",address:null,port:null};r=s[1],i=s[2]}else if(t.indexOf("/")!==-1){if(t=t.replace(/^[a-z0-9]+:\/\//,""),s=O.RE_URL.exec(t),s===null)return{error:"failed to parse address from URL",address:null,port:null};r=s[1]}else r=t;return i?(i=parseInt(i,10),(i<0||i>65536)&&(i=null)):i=null,{address:new e(r),port:i}},e.fromAddress4=function(t){var r=new St.Address4(t),i=O.BITS-(Me.BITS-r.subnetMask);return new e("::ffff:"+r.correctForm()+"/"+i)},e.fromArpa=function(t){var r=t.replace(/(\.ip6\.arpa)?\.$/,""),i=7;if(r.length!==63)throw new gt.AddressError("Invalid 'ip6.arpa' form.");for(var s=r.split(".").reverse(),a=i;a>0;a--){var f=a*4;s.splice(f,0,":")}return r=s.join(""),new e(r)},e.prototype.microsoftTranscription=function(){return H.sprintf("%s.ipv6-literal.net",this.correctForm().replace(/:/g,"-"))},e.prototype.mask=function(t){return t===void 0&&(t=this.subnetMask),this.getBitsBase2(0,t)},e.prototype.possibleSubnets=function(t){t===void 0&&(t=128);var r=O.BITS-this.subnetMask,i=Math.abs(t-O.BITS),s=r-i;return s<0?"0":cs(new U.BigInteger("2",10).pow(s).toString(10))},e.prototype._startAddress=function(){return new U.BigInteger(this.mask()+"0".repeat(O.BITS-this.subnetMask),2)},e.prototype.startAddress=function(){return e.fromBigInteger(this._startAddress())},e.prototype.startAddressExclusive=function(){var t=new U.BigInteger("1");return e.fromBigInteger(this._startAddress().add(t))},e.prototype._endAddress=function(){return new U.BigInteger(this.mask()+"1".repeat(O.BITS-this.subnetMask),2)},e.prototype.endAddress=function(){return e.fromBigInteger(this._endAddress())},e.prototype.endAddressExclusive=function(){var t=new U.BigInteger("1");return e.fromBigInteger(this._endAddress().subtract(t))},e.prototype.getScope=function(){var t=O.SCOPES[this.getBits(12,16).intValue()];return this.getType()==="Global unicast"&&t!=="Link local"&&(t="Global"),t||"Unknown"},e.prototype.getType=function(){for(var t=0,r=Object.keys(O.TYPES);t<r.length;t++){var i=r[t];if(this.isInSubnet(new e(i)))return O.TYPES[i]}return"Global unicast"},e.prototype.getBits=function(t,r){return new U.BigInteger(this.getBitsBase2(t,r),2)},e.prototype.getBitsBase2=function(t,r){return this.binaryZeroPad().slice(t,r)},e.prototype.getBitsBase16=function(t,r){var i=r-t;if(i%4!==0)throw new Error("Length of bits to retrieve must be divisible by four");return this.getBits(t,r).toString(16).padStart(i/4,"0")},e.prototype.getBitsPastSubnet=function(){return this.getBitsBase2(this.subnetMask,O.BITS)},e.prototype.reverseForm=function(t){t||(t={});var r=Math.floor(this.subnetMask/4),i=this.canonicalForm().replace(/:/g,"").split("").slice(0,r).reverse().join(".");return r>0?t.omitSuffix?i:H.sprintf("%s.ip6.arpa.",i):t.omitSuffix?"":"ip6.arpa."},e.prototype.correctForm=function(){var t,r=[],i=0,s=[];for(t=0;t<this.parsedAddress.length;t++){var a=parseInt(this.parsedAddress[t],16);a===0&&i++,a!==0&&i>0&&(i>1&&s.push([t-i,t-1]),i=0)}i>1&&s.push([this.parsedAddress.length-i,this.parsedAddress.length-1]);var f=s.map(function(h){return h[1]-h[0]+1});if(s.length>0){var l=f.indexOf(Math.max.apply(Math,f));r=ms(this.parsedAddress,s[l])}else r=this.parsedAddress;for(t=0;t<r.length;t++)r[t]!=="compact"&&(r[t]=parseInt(r[t],16).toString(16));var c=r.join(":");return c=c.replace(/^compact$/,"::"),c=c.replace(/^compact|compact$/,":"),c=c.replace(/compact/,""),c},e.prototype.binaryZeroPad=function(){return this.bigInteger().toString(2).padStart(O.BITS,"0")},e.prototype.parse4in6=function(t){var r=t.split(":"),i=r.slice(-1)[0],s=i.match(Me.RE_ADDRESS);if(s){this.parsedAddress4=s[0],this.address4=new St.Address4(this.parsedAddress4);for(var a=0;a<this.address4.groups;a++)if(/^0[0-9]+/.test(this.address4.parsedAddress[a]))throw new gt.AddressError("IPv4 addresses can't have leading zeroes.",t.replace(Me.RE_ADDRESS,this.address4.parsedAddress.map(ds).join(".")));this.v4=!0,r[r.length-1]=this.address4.toGroup6(),t=r.join(":")}return t},e.prototype.parse=function(t){t=this.parse4in6(t);var r=t.match(O.RE_BAD_CHARACTERS);if(r)throw new gt.AddressError(H.sprintf("Bad character%s detected in address: %s",r.length>1?"s":"",r.join("")),t.replace(O.RE_BAD_CHARACTERS,'<span class="parse-error">$1</span>'));var i=t.match(O.RE_BAD_ADDRESS);if(i)throw new gt.AddressError(H.sprintf("Address failed regex: %s",i.join("")),t.replace(O.RE_BAD_ADDRESS,'<span class="parse-error">$1</span>'));var s=[],a=t.split("::");if(a.length===2){var f=a[0].split(":"),l=a[1].split(":");f.length===1&&f[0]===""&&(f=[]),l.length===1&&l[0]===""&&(l=[]);var c=this.groups-(f.length+l.length);if(!c)throw new gt.AddressError("Error parsing groups");this.elidedGroups=c,this.elisionBegin=f.length,this.elisionEnd=f.length+this.elidedGroups,s=s.concat(f);for(var h=0;h<c;h++)s.push("0");s=s.concat(l)}else if(a.length===1)s=t.split(":"),this.elidedGroups=0;else throw new gt.AddressError("Too many :: groups found");if(s=s.map(function(m){return H.sprintf("%x",parseInt(m,16))}),s.length!==this.groups)throw new gt.AddressError("Incorrect number of groups found");return s},e.prototype.canonicalForm=function(){return this.parsedAddress.map(nr).join(":")},e.prototype.decimal=function(){return this.parsedAddress.map(function(t){return H.sprintf("%05d",parseInt(t,16))}).join(":")},e.prototype.bigInteger=function(){return new U.BigInteger(this.parsedAddress.map(nr).join(""),16)},e.prototype.to4=function(){var t=this.binaryZeroPad().split("");return St.Address4.fromHex(new U.BigInteger(t.slice(96,128).join(""),2).toString(16))},e.prototype.to4in6=function(){var t=this.to4(),r=new e(this.parsedAddress.slice(0,6).join(":"),6),i=r.correctForm(),s="";return/:$/.test(i)||(s=":"),i+s+t.address},e.prototype.inspectTeredo=function(){var t=this.getBitsBase16(0,32),r=this.getBits(80,96).xor(new U.BigInteger("ffff",16)).toString(),i=St.Address4.fromHex(this.getBitsBase16(32,64)),s=St.Address4.fromHex(this.getBits(96,128).xor(new U.BigInteger("ffffffff",16)).toString(16)),a=this.getBits(64,80),f=this.getBitsBase2(64,80),l=a.testBit(15),c=a.testBit(14),h=a.testBit(8),m=a.testBit(9),d=new U.BigInteger(f.slice(2,6)+f.slice(8,16),2).toString(10);return{prefix:H.sprintf("%s:%s",t.slice(0,4),t.slice(4,8)),server4:i.address,client4:s.address,flags:f,coneNat:l,microsoft:{reserved:c,universalLocal:m,groupIndividual:h,nonce:d},udpPort:r}},e.prototype.inspect6to4=function(){var t=this.getBitsBase16(0,16),r=St.Address4.fromHex(this.getBitsBase16(16,48));return{prefix:H.sprintf("%s",t.slice(0,4)),gateway:r.address}},e.prototype.to6to4=function(){if(!this.is4())return null;var t=["2002",this.getBitsBase16(96,112),this.getBitsBase16(112,128),"","/16"].join(":");return new e(t)},e.prototype.toByteArray=function(){var t=this.bigInteger().toByteArray();return t.length===17&&t[0]===0?t.slice(1):t},e.prototype.toUnsignedByteArray=function(){return this.toByteArray().map(sr)},e.fromByteArray=function(t){return this.fromUnsignedByteArray(t.map(sr))},e.fromUnsignedByteArray=function(t){for(var r=new U.BigInteger("256",10),i=new U.BigInteger("0",10),s=new U.BigInteger("1",10),a=t.length-1;a>=0;a--)i=i.add(s.multiply(new U.BigInteger(t[a].toString(10),10))),s=s.multiply(r);return e.fromBigInteger(i)},e.prototype.isCanonical=function(){return this.addressMinusSuffix===this.canonicalForm()},e.prototype.isLinkLocal=function(){return this.getBitsBase2(0,64)==="1111111010000000000000000000000000000000000000000000000000000000"},e.prototype.isMulticast=function(){return this.getType()==="Multicast"},e.prototype.is4=function(){return this.v4},e.prototype.isTeredo=function(){return this.isInSubnet(new e("2001::/32"))},e.prototype.is6to4=function(){return this.isInSubnet(new e("2002::/16"))},e.prototype.isLoopback=function(){return this.getType()==="Loopback"},e.prototype.href=function(t){return t===void 0?t="":t=H.sprintf(":%s",t),H.sprintf("http://[%s]%s/",this.correctForm(),t)},e.prototype.link=function(t){t||(t={}),t.className===void 0&&(t.className=""),t.prefix===void 0&&(t.prefix="/#address="),t.v4===void 0&&(t.v4=!1);var r=this.correctForm;return t.v4&&(r=this.to4in6),t.className?H.sprintf('<a href="%1$s%2$s" class="%3$s">%2$s</a>',t.prefix,r.call(this),t.className):H.sprintf('<a href="%1$s%2$s">%2$s</a>',t.prefix,r.call(this))},e.prototype.group=function(){if(this.elidedGroups===0)return Pe.simpleGroup(this.address).join(":");he(typeof this.elidedGroups=="number"),he(typeof this.elisionBegin=="number");var t=[],r=this.address.split("::"),i=r[0],s=r[1];i.length?t.push.apply(t,Pe.simpleGroup(i)):t.push("");for(var a=["hover-group"],f=this.elisionBegin;f<this.elisionBegin+this.elidedGroups;f++)a.push(H.sprintf("group-%d",f));return t.push(H.sprintf('<span class="%s"></span>',a.join(" "))),s.length?t.push.apply(t,Pe.simpleGroup(s,this.elisionEnd)):t.push(""),this.is4()&&(he(this.address4 instanceof St.Address4),t.pop(),t.push(this.address4.groupForV6())),t.join(":")},e.prototype.regularExpressionString=function(t){t===void 0&&(t=!1);var r=[],i=new e(this.correctForm());if(i.elidedGroups===0)r.push(Rt.simpleRegularExpression(i.parsedAddress));else if(i.elidedGroups===O.GROUPS)r.push(Rt.possibleElisions(O.GROUPS));else{var s=i.address.split("::");s[0].length&&r.push(Rt.simpleRegularExpression(s[0].split(":"))),he(typeof i.elidedGroups=="number"),r.push(Rt.possibleElisions(i.elidedGroups,s[0].length!==0,s[1].length!==0)),s[1].length&&r.push(Rt.simpleRegularExpression(s[1].split(":"))),r=[r.join(":")]}return t||(r=hs(["(?=^|",Rt.ADDRESS_BOUNDARY,"|[^\\w\\:])("],r,[")(?=[^\\w\\:]|",Rt.ADDRESS_BOUNDARY,"|$)"])),r.join("")},e.prototype.regularExpression=function(t){return t===void 0&&(t=!1),new RegExp(this.regularExpressionString(t),"i")},e}();Ee.Address6=gs;(function(e){var t=x&&x.__createBinding||(Object.create?function(l,c,h,m){m===void 0&&(m=h),Object.defineProperty(l,m,{enumerable:!0,get:function(){return c[h]}})}:function(l,c,h,m){m===void 0&&(m=h),l[m]=c[h]}),r=x&&x.__setModuleDefault||(Object.create?function(l,c){Object.defineProperty(l,"default",{enumerable:!0,value:c})}:function(l,c){l.default=c}),i=x&&x.__importStar||function(l){if(l&&l.__esModule)return l;var c={};if(l!=null)for(var h in l)h!=="default"&&Object.prototype.hasOwnProperty.call(l,h)&&t(c,l,h);return r(c,l),c};Object.defineProperty(e,"__esModule",{value:!0}),e.v6=e.Address6=e.Address4=void 0;var s=Yt;Object.defineProperty(e,"Address4",{enumerable:!0,get:function(){return s.Address4}});var a=Ee;Object.defineProperty(e,"Address6",{enumerable:!0,get:function(){return a.Address6}});var f=i(st);e.v6={helpers:f}})(gr);const Te=gr,It=$e.BigInteger;class Zt{constructor(t){if(typeof t!="string"||!t.match("/"))throw new Error("Invalid CIDR address.");const r=this.constructor.createAddress(t);this.cidr=r.address,this.ipAddressType=r.constructor,this.address=r,this.addressStart=r.startAddress(),this.addressEnd=r.endAddress(),this.addressStart.subnet=this.addressEnd.subnet=this.address.subnet,this.addressStart.subnetMask=this.addressEnd.subnetMask=this.address.subnetMask,this.size=new It(this.addressEnd.bigInteger().subtract(this.addressStart.bigInteger()).add(new It("1")).toString())}contains(t){try{return!(t instanceof Te.Address6)&&!(t instanceof Te.Address4)&&(typeof t=="object"?t=this.ipAddressType.fromBigInteger(t):t=this.constructor.createAddress(t)),t.isInSubnet(this.address)}catch{return!1}}start(t){return this.constructor.formatIP(this.addressStart,t)}end(t){return this.constructor.formatIP(this.addressEnd,t)}toString(){return this.cidr}toRange(t){return[this.constructor.formatIP(this.addressStart,t),this.constructor.formatIP(this.addressEnd,t)]}toObject(t){return{start:this.constructor.formatIP(this.addressStart,t),end:this.constructor.formatIP(this.addressEnd,t)}}toArray(t,r){t=t||{};const i=[],s=this.constructor.formatIP(this.addressStart,{type:"bigInteger"}),f=this.constructor.formatIP(this.addressEnd,{type:"bigInteger"}).subtract(s).add(new It("1")),l=this.getChunkInfo(f,t);return r&&Object.assign(r,l),this.loopInfo(l,c=>{const h=s.add(c),m=this.constructor.formatIP(this.ipAddressType.fromBigInteger(h),t);i.push(m)}),i}loop(t,r,i){r=r||{};const s=[],a=this.constructor.formatIP(this.addressStart,{type:"bigInteger"}),l=this.constructor.formatIP(this.addressEnd,{type:"bigInteger"}).subtract(a).add(new It("1")),c=this.getChunkInfo(l,r);return i&&Object.assign(i,c),this.loopInfo(c,h=>{const m=a.add(h),d=this.constructor.formatIP(this.ipAddressType.fromBigInteger(m),r);s.push(t(d))}),Promise.all(s)}loopInfo(t,r){let i=t.from;for(;i.compareTo(t.to)<0;)r(i),i=i.add(new It("1"))}getChunkInfo(t,r){let i=r.from,s=r.limit,a=r.to,f;const l=this.constructor.formatIP(this.address,{type:"bigInteger"}),c=h=>typeof h=="string"&&h.match(/:|\./)?this.constructor.formatIP(this.constructor.createAddress(h),{type:"bigInteger"}).subtract(l):typeof h!="object"?new It(h+""):h;return i=c(i!==void 0?i:0),a!==void 0?(a=c(a),s=a.subtract(i)):s=s!==void 0?c(s):t,f=t.subtract(i),s.compareTo(f)>0&&(s=f),a=i.add(s),{from:i,to:a,limit:s,length:t}}}Zt.formatIP=function(e,t){return t=t||{},t.type=="bigInteger"?new It(e.bigInteger().toString()):t.type=="addressObject"?e:e.addressMinusSuffix};Zt.createAddress=function(e){if(typeof e!="string")throw new Error("Invalid IP address.");e.match(/:.\./)&&(e=e.split(":").pop());const t=e.match(":")?Te.Address6:Te.Address4;let r=new t(e);if(r.v4&&e.match(":")&&r.address4&&(r=r.address4),r.v4){const i=r.addressMinusSuffix.split(".");for(let s=0;s<i.length;s++){const a=i[s].split("/")[0];if(a[0]=="0"&&a.length>1)throw new Error("Invalid IPv4 address.")}}return r};Zt.isValidAddress=function(e){try{return!!this.createAddress(e)}catch{return!1}};Zt.isValidCIDR=function(e){if(typeof e!="string"||!e.match("/"))return!1;try{return!!this.createAddress(e)}catch{return!1}};var ys=Zt;const or=Ge(ys);var vs=function(e){e=e.replace(/0000/g,"g"),e=e.replace(/\:000/g,":"),e=e.replace(/\:00/g,":"),e=e.replace(/\:0/g,":"),e=e.replace(/g/g,"0"),e=e.replace(/^0*/,"");for(var t=e.split(/\:/g),r=!1,i=-1,s=0,a=-1,f=0,l=0;l<8;++l){var c=t[l],h=c==="0";h&&!r&&(a=l),!h&&r&&(f=l-a),f>1&&f>s&&(i=a,s=f),r=c==="0"}return r&&(f=8-a),f>1&&f>s&&(i=a,s=f),i>=0&&s>1&&t.splice(i,s,"g"),e=t.join(":"),e=e.replace(/\:g\:/g,"::"),e=e.replace(/\:g/g,"::"),e=e.replace(/g\:/g,"::"),e=e.replace(/g/g,"::"),e},_s=function(e){if(or.isValidCIDR(e)){var t=new or(e),r=t.start();return t.addressStart.v4||(r=vs(r)),r+t.addressStart.subnet}return""},As=globalThis&&globalThis.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,s){i.__proto__=s}||function(i,s){for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(i[a]=s[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),Ts=globalThis&&globalThis.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Es=globalThis&&globalThis.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),s,a=[],f;try{for(;(t===void 0||t-- >0)&&!(s=i.next()).done;)a.push(s.value)}catch(l){f={error:l}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(f)throw f.error}}return a},Er=globalThis,ce="short-opt",de="long-opt",xt="waiting-for-arg",Ce="image-found",me="quoted",ws=function(e){As(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.lexer=new Dt,r.lastOpt=void 0,r}return t.prototype.asParseResult=function(){var r=new We;return r.serviceName=this.serviceName,r.properties=this.properties,r.messages=this.messages,r.additionalComposeObjects=this.additionalComposeObjects,r},t}(We),$={DOCKER_CMD:/docker (run|create)/,STRING:/[^="][^"'\s\t\r\n]+/,LONG_OPT_VALUE:/[a-z][a-z0-9\-]+/,IMAGE_NAME:/(?:(?=[^:\/]{1,253})(?!-)[a-zA-Z0-9-]{1,63}(?<!-)(?:\.(?!-)[a-zA-Z0-9-]{1,63}(?<!-))*(?::[0-9]{1,5})?\/)?((?![._-])(?:[a-z0-9._-]*)(?<![._-])(?:\/(?![._-])[a-z0-9._-]*(?<![._-]))*)(?::(?![.-])[a-zA-Z0-9_.-]{1,128})?/,QUOTE_CHAR:/"/,LONG_OPT:/--/,SHORT_OPT:/-/,CHAR:/./,WS:/\s+/,WS_OR_EQUALS:/{WS}|=/},bs=function(e){return e.replace(/'/g,'"')},ar=function(e){var t=Yn(e.lexer.text);if(e.lastOpt=t,t===void 0)e.messages.push({type:ot.errorDuringConversion,value:"Unknown option: ".concat(e.lexer.text)});else if(t.type===y.withArgs)e.lexer.pushState(xt);else{var r=t.action.call(Er,t,e.lexer);r!==void 0&&(mr(r)?(e.properties.push(r),r.additionalObject!==void 0&&e.additionalComposeObjects.push(r.additionalObject)):e.messages.push(r))}},ur=function(e,t){if(t.lastOpt===void 0){t.messages.push({type:ot.errorDuringConversion,value:"Error while parsing. Got option value '".concat(e,"' 'but no option the value belongs to.")});return}var r=t.lastOpt.action.call(Er,t.lastOpt,e,t.lexer);r!==void 0&&(mr(r)?(t.properties.push(r),r.additionalObject!==void 0&&t.additionalComposeObjects.push(r.additionalObject)):t.messages.push(r))},Ss=function(e){var t,r,i=new ws,s=i.lexer,a=i.properties;s.setIgnoreCase(!1),s.setDebugEnabled(e),s.addState(me,!0),s.addState(ce,!0),s.addState(de,!0),s.addState(xt,!0),s.addState(Ce,!0);try{for(var f=Ts(Object.entries($)),l=f.next();!l.done;l=f.next()){var c=Es(l.value,2),h=c[0],m=c[1];s.addDefinition(h,m)}}catch(_){t={error:_}}finally{try{l&&!l.done&&(r=f.return)&&r.call(f)}finally{if(t)throw t.error}}s.addRule($.DOCKER_CMD),s.addRule($.WS),s.addRule($.SHORT_OPT,function(_){return _.begin(ce)}),s.addRule($.LONG_OPT,function(_){return _.begin(de)});var d="";return s.addStateRule(xt,$.QUOTE_CHAR,function(_){return _.pushState(me)}),s.addStateRule(me,$.QUOTE_CHAR,function(_){_.popState();var w=d;d="",_.state==xt&&(ur(w,i),_.begin(Dt.STATE_INITIAL))}),s.addStateRule(me,/[^\n\"]+/,function(_){d+=_.text}),s.addStateRule(ce,$.WS,function(_){return _.begin(Dt.STATE_INITIAL)}),s.addStateRule(ce,$.CHAR,function(){return ar(i)}),s.addStateRule(de,$.LONG_OPT_VALUE,function(){return ar(i)}),s.addStateRule(de,$.WS,function(_){return _.begin(Dt.STATE_INITIAL)}),s.addStateRule(xt,$.WS_OR_EQUALS),s.addStateRule(xt,$.STRING,function(_){ur(_.text.trim(),i),_.begin(Dt.STATE_INITIAL)}),s.addStateRule(xt,$.CHAR,function(){i.messages.push({type:ot.errorDuringConversion,value:'The option "--'.concat(i.lastOpt.name).concat(i.lastOpt.short!==void 0?"/-"+i.lastOpt.short:"",'"')})}),s.addStateRule(Dt.STATE_INITIAL,$.IMAGE_NAME,function(_){_.begin(Ce);var w=_.text;i.serviceName=Ns(w);var R={};_e(R,"image",w),a.push({path:"image",value:R,multiValue:!1,additionalObject:void 0})}),s.addStateRule(Ce,/ .*/,function(_){var w={};_e(w,"command",_.text.trim()),a.push({path:"command",value:w,multiValue:!1,additionalObject:void 0}),_.terminate()}),i},Rs=function(e,t){e.setSource(t),e.lexAll()},Is=function(e){var t,r=e.properties.find(function(c){return c.path==="networks"}),i="default";if(r!==void 0){i=Object.keys(r.value.networks)[0];var s=e.properties.filter(function(c){return c.path.startsWith("networks")&&c.path!=="networks"});s.forEach(function(c){var h=c.value.networks;Object.defineProperty(h,i,Object.getOwnPropertyDescriptor(h,"default")),delete h.default})}var a=[],f=e.properties.filter(function(c){return c.path.startsWith("networks")&&c.path!=="networks"});if(f.forEach(function(c){c.path.includes("ipv4_address")&&a.push(c.value.networks[i].ipv4_address+"/24"),c.path.includes("ipv6_address")&&a.push(c.value.networks[i].ipv6_address+"/64")}),a.length>0){var l={networks:(t={},t[i]={driver:"default",config:[]},t)};a.forEach(function(c){l.networks[i].config.push({subnet:xs(c)})}),e.additionalComposeObjects.push(l)}},xs=function(e){return _s("".concat(e))},Ns=function(e){var t=e.includes("/")?e.split("/")[1]:e;return t=t.includes(":")?t.split(":")[0]:t,t},Os=function(e,t){var r=bs(e),i=Ss(t);return Rs(i.lexer,r),Is(i),i.asParseResult()},wr;wr=function(){e.prototype.regex=null,e.prototype.rawRegex=null,e.prototype.cleanedRegex=null,e.prototype.mapping=null;function e(t,r){var i,s,a,f,l,c,h,m,d;for(r==null&&(r=""),a="",l=t.length,c=null,s=0,f=0;f<l;){if(i=t.charAt(f),i==="\\")a+=t.slice(f,+(f+1)+1||9e9),f++;else if(i==="(")if(f<l-2)if(m=t.slice(f,+(f+2)+1||9e9),m==="(?:")f+=2,a+=m;else if(m==="(?<")for(s++,f+=2,h="";f+1<l;){if(d=t.charAt(f+1),d===">"){a+="(",f++,h.length>0&&(c==null&&(c={}),c[h]=s);break}else h+=d;f++}else a+=i,s++;else a+=i;else a+=i;f++}this.rawRegex=t,this.cleanedRegex=a,this.regex=new RegExp(this.cleanedRegex,"g"+r.replace("g","")),this.mapping=c}return e.prototype.exec=function(t){var r,i,s,a;if(this.regex.lastIndex=0,i=this.regex.exec(t),i==null)return null;if(this.mapping!=null){a=this.mapping;for(s in a)r=a[s],i[s]=i[r]}return i},e.prototype.test=function(t){return this.regex.lastIndex=0,this.regex.test(t)},e.prototype.replace=function(t,r){return this.regex.lastIndex=0,t.replace(this.regex,r)},e.prototype.replaceAll=function(t,r,i){var s;for(i==null&&(i=0),this.regex.lastIndex=0,s=0;this.regex.test(t)&&(i===0||s<i);)this.regex.lastIndex=0,t=t.replace(this.regex,r),s++;return[t,s]},e}();var Wt=wr,br,Sr,Ls={}.hasOwnProperty;br=Wt;Sr=function(){function e(){}return e.REGEX_LEFT_TRIM_BY_CHAR={},e.REGEX_RIGHT_TRIM_BY_CHAR={},e.REGEX_SPACES=/\s+/g,e.REGEX_DIGITS=/^\d+$/,e.REGEX_OCTAL=/[^0-7]/gi,e.REGEX_HEXADECIMAL=/[^a-f0-9]/gi,e.PATTERN_DATE=new br("^(?<year>[0-9][0-9][0-9][0-9])-(?<month>[0-9][0-9]?)-(?<day>[0-9][0-9]?)(?:(?:[Tt]|[ ]+)(?<hour>[0-9][0-9]?):(?<minute>[0-9][0-9]):(?<second>[0-9][0-9])(?:.(?<fraction>[0-9]*))?(?:[ ]*(?<tz>Z|(?<tz_sign>[-+])(?<tz_hour>[0-9][0-9]?)(?::(?<tz_minute>[0-9][0-9]))?))?)?$","i"),e.LOCAL_TIMEZONE_OFFSET=new Date().getTimezoneOffset()*60*1e3,e.trim=function(t,r){var i,s;return r==null&&(r="\\s"),i=this.REGEX_LEFT_TRIM_BY_CHAR[r],i==null&&(this.REGEX_LEFT_TRIM_BY_CHAR[r]=i=new RegExp("^"+r+r+"*")),i.lastIndex=0,s=this.REGEX_RIGHT_TRIM_BY_CHAR[r],s==null&&(this.REGEX_RIGHT_TRIM_BY_CHAR[r]=s=new RegExp(r+""+r+"*$")),s.lastIndex=0,t.replace(i,"").replace(s,"")},e.ltrim=function(t,r){var i;return r==null&&(r="\\s"),i=this.REGEX_LEFT_TRIM_BY_CHAR[r],i==null&&(this.REGEX_LEFT_TRIM_BY_CHAR[r]=i=new RegExp("^"+r+r+"*")),i.lastIndex=0,t.replace(i,"")},e.rtrim=function(t,r){var i;return r==null&&(r="\\s"),i=this.REGEX_RIGHT_TRIM_BY_CHAR[r],i==null&&(this.REGEX_RIGHT_TRIM_BY_CHAR[r]=i=new RegExp(r+""+r+"*$")),i.lastIndex=0,t.replace(i,"")},e.isEmpty=function(t){return!t||t===""||t==="0"||t instanceof Array&&t.length===0||this.isEmptyObject(t)},e.isEmptyObject=function(t){var r;return t instanceof Object&&function(){var i;i=[];for(r in t)Ls.call(t,r)&&i.push(r);return i}().length===0},e.subStrCount=function(t,r,i,s){var a,f,l,c,h,m;for(a=0,t=""+t,r=""+r,i!=null&&(t=t.slice(i)),s!=null&&(t=t.slice(0,s)),c=t.length,m=r.length,f=l=0,h=c;0<=h?l<h:l>h;f=0<=h?++l:--l)r===t.slice(f,m)&&(a++,f+=m-1);return a},e.isDigits=function(t){return this.REGEX_DIGITS.lastIndex=0,this.REGEX_DIGITS.test(t)},e.octDec=function(t){return this.REGEX_OCTAL.lastIndex=0,parseInt((t+"").replace(this.REGEX_OCTAL,""),8)},e.hexDec=function(t){return this.REGEX_HEXADECIMAL.lastIndex=0,t=this.trim(t),(t+"").slice(0,2)==="0x"&&(t=(t+"").slice(2)),parseInt((t+"").replace(this.REGEX_HEXADECIMAL,""),16)},e.utf8chr=function(t){var r;return r=String.fromCharCode,128>(t%=2097152)?r(t):2048>t?r(192|t>>6)+r(128|t&63):65536>t?r(224|t>>12)+r(128|t>>6&63)+r(128|t&63):r(240|t>>18)+r(128|t>>12&63)+r(128|t>>6&63)+r(128|t&63)},e.parseBoolean=function(t,r){var i;return r==null&&(r=!0),typeof t=="string"?(i=t.toLowerCase(),!(!r&&i==="no"||i==="0"||i==="false"||i==="")):!!t},e.isNumeric=function(t){return this.REGEX_SPACES.lastIndex=0,typeof t=="number"||typeof t=="string"&&!isNaN(t)&&t.replace(this.REGEX_SPACES,"")!==""},e.stringToDate=function(t){var r,i,s,a,f,l,c,h,m,d,_,w;if(!t?.length||(f=this.PATTERN_DATE.exec(t),!f))return null;if(w=parseInt(f.year,10),c=parseInt(f.month,10)-1,i=parseInt(f.day,10),f.hour==null)return r=new Date(Date.UTC(w,c,i)),r;if(a=parseInt(f.hour,10),l=parseInt(f.minute,10),h=parseInt(f.second,10),f.fraction!=null){for(s=f.fraction.slice(0,3);s.length<3;)s+="0";s=parseInt(s,10)}else s=0;return f.tz!=null&&(m=parseInt(f.tz_hour,10),f.tz_minute!=null?d=parseInt(f.tz_minute,10):d=0,_=(m*60+d)*6e4,f.tz_sign==="-"&&(_*=-1)),r=new Date(Date.UTC(w,c,i,a,l,h,s)),_&&r.setTime(r.getTime()-_),r},e.strRepeat=function(t,r){var i,s;for(s="",i=0;i<r;)s+=t,i++;return s},e.getStringFromFile=function(t,r){var i,s,a,f,l,c,h,m;if(r==null&&(r=null),m=null,typeof window<"u"&&window!==null){if(window.XMLHttpRequest)m=new XMLHttpRequest;else if(window.ActiveXObject)for(c=["Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.3.0","Msxml2.XMLHTTP","Microsoft.XMLHTTP"],a=0,f=c.length;a<f;a++){l=c[a];try{m=new ActiveXObject(l)}catch{}}}return m!=null?r!=null?(m.onreadystatechange=function(){if(m.readyState===4)return m.status===200||m.status===0?r(m.responseText):r(null)},m.open("GET",t,!0),m.send(null)):(m.open("GET",t,!1),m.send(null),m.status===200||m.status===0?m.responseText:null):(h=wn,s=h("fs"),r!=null?s.readFile(t,function(d,_){return r(d?null:String(_))}):(i=s.readFileSync(t),i!=null?String(i):null))},e}();var Kt=Sr,Rr,Ir,Nt;Nt=Kt;Rr=Wt;Ir=function(){function e(){}return e.PATTERN_ESCAPED_CHARACTER=new Rr('\\\\([0abt nvfre "\\/\\\\N_LP]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})'),e.unescapeSingleQuotedString=function(t){return t.replace(/\'\'/g,"'")},e.unescapeDoubleQuotedString=function(t){return this._unescapeCallback==null&&(this._unescapeCallback=function(r){return function(i){return r.unescapeCharacter(i)}}(this)),this.PATTERN_ESCAPED_CHARACTER.replace(t,this._unescapeCallback)},e.unescapeCharacter=function(t){var r;switch(r=String.fromCharCode,t.charAt(1)){case"0":return r(0);case"a":return r(7);case"b":return r(8);case"t":return" ";case" ":return" ";case"n":return`
|
|
22
|
+
`;case"v":return r(11);case"f":return r(12);case"r":return r(13);case"e":return r(27);case" ":return" ";case'"':return'"';case"/":return"/";case"\\":return"\\";case"N":return r(133);case"_":return r(160);case"L":return r(8232);case"P":return r(8233);case"x":return Nt.utf8chr(Nt.hexDec(t.substr(2,2)));case"u":return Nt.utf8chr(Nt.hexDec(t.substr(2,4)));case"U":return Nt.utf8chr(Nt.hexDec(t.substr(2,8)));default:return""}},e}();var Ms=Ir,xr,ye;ye=Wt;xr=function(){var e;function t(){}return t.LIST_ESCAPEES=["\\","\\\\",'\\"','"',"\0","","","","","","","\x07","\b"," ",`
|
|
23
|
+
`,"\v","\f","\r","","","","","","","","","","","","","","\x1B","","","","",(e=String.fromCharCode)(133),e(160),e(8232),e(8233)],t.LIST_ESCAPED=["\\\\",'\\"','\\"','\\"',"\\0","\\x01","\\x02","\\x03","\\x04","\\x05","\\x06","\\a","\\b","\\t","\\n","\\v","\\f","\\r","\\x0e","\\x0f","\\x10","\\x11","\\x12","\\x13","\\x14","\\x15","\\x16","\\x17","\\x18","\\x19","\\x1a","\\e","\\x1c","\\x1d","\\x1e","\\x1f","\\N","\\_","\\L","\\P"],t.MAPPING_ESCAPEES_TO_ESCAPED=function(){var r,i,s,a;for(s={},r=i=0,a=t.LIST_ESCAPEES.length;0<=a?i<a:i>a;r=0<=a?++i:--i)s[t.LIST_ESCAPEES[r]]=t.LIST_ESCAPED[r];return s}(),t.PATTERN_CHARACTERS_TO_ESCAPE=new ye("[\\x00-\\x1f]|Â
| |â¨|â©"),t.PATTERN_MAPPING_ESCAPEES=new ye(t.LIST_ESCAPEES.join("|").split("\\").join("\\\\")),t.PATTERN_SINGLE_QUOTING=new ye("[\\s'\":{}[\\],&*#?]|^[-?|<>=!%@`]"),t.requiresDoubleQuoting=function(r){return this.PATTERN_CHARACTERS_TO_ESCAPE.test(r)},t.escapeWithDoubleQuotes=function(r){var i;return i=this.PATTERN_MAPPING_ESCAPEES.replace(r,function(s){return function(a){return s.MAPPING_ESCAPEES_TO_ESCAPED[a]}}(this)),'"'+i+'"'},t.requiresSingleQuoting=function(r){return this.PATTERN_SINGLE_QUOTING.test(r)},t.escapeWithSingleQuotes=function(r){return"'"+r.replace(/'/g,"''")+"'"},t}();var Ps=xr,Nr,Cs=function(e,t){for(var r in t)Bs.call(t,r)&&(e[r]=t[r]);function i(){this.constructor=e}return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},Bs={}.hasOwnProperty;Nr=function(e){Cs(t,e);function t(r,i,s){this.message=r,this.parsedLine=i,this.snippet=s}return t.prototype.toString=function(){return this.parsedLine!=null&&this.snippet!=null?"<ParseException> "+this.message+" (line "+this.parsedLine+": '"+this.snippet+"')":"<ParseException> "+this.message},t}(Error);var Or=Nr,Lr,Ds=function(e,t){for(var r in t)ks.call(t,r)&&(e[r]=t[r]);function i(){this.constructor=e}return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},ks={}.hasOwnProperty;Lr=function(e){Ds(t,e);function t(r,i,s){this.message=r,this.parsedLine=i,this.snippet=s}return t.prototype.toString=function(){return this.parsedLine!=null&&this.snippet!=null?"<ParseMore> "+this.message+" (line "+this.parsedLine+": '"+this.snippet+"')":"<ParseMore> "+this.message},t}(Error);var Mr=Lr,js=function(e,t){for(var r in t)Vs.call(t,r)&&(e[r]=t[r]);function i(){this.constructor=e}return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},Vs={}.hasOwnProperty;(function(e){js(t,e);function t(r,i,s){this.message=r,this.parsedLine=i,this.snippet=s}return t.prototype.toString=function(){return this.parsedLine!=null&&this.snippet!=null?"<DumpException> "+this.message+" (line "+this.parsedLine+": '"+this.snippet+"')":"<DumpException> "+this.message},t})(Error);var $t,Pr,Ht,ve,zt,je,L,fr=[].indexOf||function(e){for(var t=0,r=this.length;t<r;t++)if(t in this&&this[t]===e)return t;return-1};zt=Wt;je=Ms;$t=Ps;L=Kt;Ht=Or;ve=Mr;Pr=function(){function e(){}return e.REGEX_QUOTED_STRING=`(?:"(?:[^"\\\\]*(?:\\\\.[^"\\\\]*)*)"|'(?:[^']*(?:''[^']*)*)')`,e.PATTERN_TRAILING_COMMENTS=new zt("^\\s*#.*$"),e.PATTERN_QUOTED_SCALAR=new zt("^"+e.REGEX_QUOTED_STRING),e.PATTERN_THOUSAND_NUMERIC_SCALAR=new zt("^(-|\\+)?[0-9,]+(\\.[0-9]+)?$"),e.PATTERN_SCALAR_BY_DELIMITERS={},e.settings={},e.configure=function(t,r){t==null&&(t=null),r==null&&(r=null),this.settings.exceptionOnInvalidType=t,this.settings.objectDecoder=r},e.parse=function(t,r,i){var s,a;if(r==null&&(r=!1),i==null&&(i=null),this.settings.exceptionOnInvalidType=r,this.settings.objectDecoder=i,t==null||(t=L.trim(t),t.length===0))return"";switch(s={exceptionOnInvalidType:r,objectDecoder:i,i:0},t.charAt(0)){case"[":a=this.parseSequence(t,s),++s.i;break;case"{":a=this.parseMapping(t,s),++s.i;break;default:a=this.parseScalar(t,null,['"',"'"],s)}if(this.PATTERN_TRAILING_COMMENTS.replace(t.slice(s.i),"")!=="")throw new Ht('Unexpected characters near "'+t.slice(s.i)+'".');return a},e.dump=function(t,r,i){var s,a,f;return i==null&&(i=null),t==null?"null":(f=typeof t,f==="object"?t instanceof Date?t.toISOString():i!=null&&(a=i(t),typeof a=="string"||a!=null)?a:this.dumpObject(t):f==="boolean"?t?"true":"false":L.isDigits(t)?f==="string"?"'"+t+"'":String(parseInt(t)):L.isNumeric(t)?f==="string"?"'"+t+"'":String(parseFloat(t)):f==="number"?t===1/0?".Inf":t===-1/0?"-.Inf":isNaN(t)?".NaN":t:$t.requiresDoubleQuoting(t)?$t.escapeWithDoubleQuotes(t):$t.requiresSingleQuoting(t)?$t.escapeWithSingleQuotes(t):t===""?'""':L.PATTERN_DATE.test(t)||(s=t.toLowerCase())==="null"||s==="~"||s==="true"||s==="false"?"'"+t+"'":t)},e.dumpObject=function(t,r,i){var s,a,f,l,c;if(t instanceof Array){for(l=[],s=0,f=t.length;s<f;s++)c=t[s],l.push(this.dump(c));return"["+l.join(", ")+"]"}else{l=[];for(a in t)c=t[a],l.push(this.dump(a)+": "+this.dump(c));return"{"+l.join(", ")+"}"}},e.parseScalar=function(t,r,i,s,a){var f,l,c,h,m,d,_,w,R;if(r==null&&(r=null),i==null&&(i=['"',"'"]),s==null&&(s=null),a==null&&(a=!0),s==null&&(s={exceptionOnInvalidType:this.settings.exceptionOnInvalidType,objectDecoder:this.settings.objectDecoder,i:0}),f=s.i,d=t.charAt(f),fr.call(i,d)>=0){if(h=this.parseQuotedScalar(t,s),f=s.i,r!=null&&(R=L.ltrim(t.slice(f)," "),_=R.charAt(0),!(fr.call(r,_)>=0)))throw new Ht("Unexpected characters ("+t.slice(f)+").")}else{if(!r)h=t.slice(f),f+=h.length,w=h.indexOf(" #"),w!==-1&&(h=L.rtrim(h.slice(0,w)));else if(l=r.join("|"),m=this.PATTERN_SCALAR_BY_DELIMITERS[l],m==null&&(m=new zt("^(.+?)("+l+")"),this.PATTERN_SCALAR_BY_DELIMITERS[l]=m),c=m.exec(t.slice(f)))h=c[1],f+=h.length;else throw new Ht("Malformed inline YAML string ("+t+").");a&&(h=this.evaluateScalar(h,s))}return s.i=f,h},e.parseQuotedScalar=function(t,r){var i,s,a;if(i=r.i,!(s=this.PATTERN_QUOTED_SCALAR.exec(t.slice(i))))throw new ve("Malformed inline YAML string ("+t.slice(i)+").");return a=s[0].substr(1,s[0].length-2),t.charAt(i)==='"'?a=je.unescapeDoubleQuotedString(a):a=je.unescapeSingleQuotedString(a),i+=s[0].length,r.i=i,a},e.parseSequence=function(t,r){var i,s,a,f,l,c;for(f=[],a=t.length,i=r.i,i+=1;i<a;){switch(r.i=i,t.charAt(i)){case"[":f.push(this.parseSequence(t,r)),i=r.i;break;case"{":f.push(this.parseMapping(t,r)),i=r.i;break;case"]":return f;case",":case" ":case`
|
|
24
|
+
`:break;default:if(s=(l=t.charAt(i))==='"'||l==="'",c=this.parseScalar(t,[",","]"],['"',"'"],r),i=r.i,!s&&typeof c=="string"&&(c.indexOf(": ")!==-1||c.indexOf(`:
|
|
25
|
+
`)!==-1))try{c=this.parseMapping("{"+c+"}")}catch{}f.push(c),--i}++i}throw new ve("Malformed inline YAML string "+t)},e.parseMapping=function(t,r){var i,s,a,f,l,c,h;for(l={},f=t.length,s=r.i,s+=1,c=!1;s<f;){switch(r.i=s,t.charAt(s)){case" ":case",":case`
|
|
26
|
+
`:++s,r.i=s,c=!0;break;case"}":return l}if(c){c=!1;continue}for(a=this.parseScalar(t,[":"," ",`
|
|
27
|
+
`],['"',"'"],r,!1),s=r.i,i=!1;s<f;){switch(r.i=s,t.charAt(s)){case"[":h=this.parseSequence(t,r),s=r.i,l[a]===void 0&&(l[a]=h),i=!0;break;case"{":h=this.parseMapping(t,r),s=r.i,l[a]===void 0&&(l[a]=h),i=!0;break;case":":case" ":case`
|
|
28
|
+
`:break;default:h=this.parseScalar(t,[",","}"],['"',"'"],r),s=r.i,l[a]===void 0&&(l[a]=h),i=!0,--s}if(++s,i)break}}throw new ve("Malformed inline YAML string "+t)},e.evaluateScalar=function(t,r){var i,s,a,f,l,c,h,m,d,_,w;switch(t=L.trim(t),d=t.toLowerCase(),d){case"null":case"":case"~":return null;case"true":return!0;case"false":return!1;case".inf":return 1/0;case".nan":return 0/0;case"-.inf":return 1/0;default:switch(f=d.charAt(0),f){case"!":switch(l=t.indexOf(" "),l===-1?c=d:c=d.slice(0,l),c){case"!":return l!==-1?parseInt(this.parseScalar(t.slice(2))):null;case"!str":return L.ltrim(t.slice(4));case"!!str":return L.ltrim(t.slice(5));case"!!int":return parseInt(this.parseScalar(t.slice(5)));case"!!bool":return L.parseBoolean(this.parseScalar(t.slice(6)),!1);case"!!float":return parseFloat(this.parseScalar(t.slice(7)));case"!!timestamp":return L.stringToDate(L.ltrim(t.slice(11)));default:if(r==null&&(r={exceptionOnInvalidType:this.settings.exceptionOnInvalidType,objectDecoder:this.settings.objectDecoder,i:0}),h=r.objectDecoder,a=r.exceptionOnInvalidType,h)return w=L.rtrim(t),l=w.indexOf(" "),l===-1?h(w,null):(_=L.ltrim(w.slice(l+1)),_.length>0||(_=null),h(w.slice(0,l),_));if(a)throw new Ht("Custom object support when parsing a YAML file has been disabled.");return null}case"0":return t.slice(0,2)==="0x"?L.hexDec(t):L.isDigits(t)?L.octDec(t):L.isNumeric(t)?parseFloat(t):t;case"+":return L.isDigits(t)?(m=t,i=parseInt(m),m===String(i)?i:m):L.isNumeric(t)?parseFloat(t):this.PATTERN_THOUSAND_NUMERIC_SCALAR.test(t)?parseFloat(t.replace(",","")):t;case"-":return L.isDigits(t.slice(1))?t.charAt(1)==="0"?-L.octDec(t.slice(1)):(m=t.slice(1),i=parseInt(m),m===String(i)?-i:-m):L.isNumeric(t)?parseFloat(t):this.PATTERN_THOUSAND_NUMERIC_SCALAR.test(t)?parseFloat(t.replace(",","")):t;default:return(s=L.stringToDate(t))?s:L.isNumeric(t)?parseFloat(t):this.PATTERN_THOUSAND_NUMERIC_SCALAR.test(t)?parseFloat(t.replace(",","")):t}}},e}();var Cr=Pr,it,W,Br,Dr,z,D;it=Cr;z=Wt;D=Kt;W=Or;Br=Mr;Dr=function(){e.prototype.PATTERN_FOLDED_SCALAR_ALL=new z("^(?:(?<type>![^\\|>]*)\\s+)?(?<separator>\\||>)(?<modifiers>\\+|\\-|\\d+|\\+\\d+|\\-\\d+|\\d+\\+|\\d+\\-)?(?<comments> +#.*)?$"),e.prototype.PATTERN_FOLDED_SCALAR_END=new z("(?<separator>\\||>)(?<modifiers>\\+|\\-|\\d+|\\+\\d+|\\-\\d+|\\d+\\+|\\d+\\-)?(?<comments> +#.*)?$"),e.prototype.PATTERN_SEQUENCE_ITEM=new z("^\\-((?<leadspaces>\\s+)(?<value>.+?))?\\s*$"),e.prototype.PATTERN_ANCHOR_VALUE=new z("^&(?<ref>[^ ]+) *(?<value>.*)"),e.prototype.PATTERN_COMPACT_NOTATION=new z("^(?<key>"+it.REGEX_QUOTED_STRING+`|[^ '"\\{\\[].*?) *\\:(\\s+(?<value>.+?))?\\s*$`),e.prototype.PATTERN_MAPPING_ITEM=new z("^(?<key>"+it.REGEX_QUOTED_STRING+`|[^ '"\\[\\{].*?) *\\:(\\s+(?<value>.+?))?\\s*$`),e.prototype.PATTERN_DECIMAL=new z("\\d+"),e.prototype.PATTERN_INDENT_SPACES=new z("^ +"),e.prototype.PATTERN_TRAILING_LINES=new z(`(
|
|
29
|
+
*)$`),e.prototype.PATTERN_YAML_HEADER=new z(`^\\%YAML[: ][\\d\\.]+.*
|
|
30
|
+
`,"m"),e.prototype.PATTERN_LEADING_COMMENTS=new z(`^(\\#.*?
|
|
31
|
+
)+`,"m"),e.prototype.PATTERN_DOCUMENT_MARKER_START=new z(`^\\-\\-\\-.*?
|
|
32
|
+
`,"m"),e.prototype.PATTERN_DOCUMENT_MARKER_END=new z("^\\.\\.\\.\\s*$","m"),e.prototype.PATTERN_FOLDED_SCALAR_BY_INDENTATION={},e.prototype.CONTEXT_NONE=0,e.prototype.CONTEXT_SEQUENCE=1,e.prototype.CONTEXT_MAPPING=2;function e(t){this.offset=t??0,this.lines=[],this.currentLineNb=-1,this.currentLine="",this.refs={}}return e.prototype.parse=function(t,r,i){var s,a,f,l,c,h,m,d,_,w,R,A,C,I,at,pt,k,Jt,te,ee,jt,Vt,ht,yt,Mt,re,ct,ut,X,ie,ne,se,Pt,dt,Q,N;for(r==null&&(r=!1),i==null&&(i=null),this.currentLineNb=-1,this.currentLine="",this.lines=this.cleanup(t).split(`
|
|
33
|
+
`),h=null,c=this.CONTEXT_NONE,a=!1;this.moveToNextLine();)if(!this.isCurrentLineEmpty()){if(this.currentLine[0]===" ")throw new W("A YAML file cannot contain tabs as indentation.",this.getRealCurrentLineNb()+1,this.currentLine);if(R=yt=!1,N=this.PATTERN_SEQUENCE_ITEM.exec(this.currentLine)){if(this.CONTEXT_MAPPING===c)throw new W("You cannot define a sequence item when in a mapping");c=this.CONTEXT_SEQUENCE,h==null&&(h=[]),N.value!=null&&(ht=this.PATTERN_ANCHOR_VALUE.exec(N.value))&&(R=ht.ref,N.value=ht.value),N.value==null||D.trim(N.value," ")===""||D.ltrim(N.value," ").indexOf("#")===0?this.currentLineNb<this.lines.length-1&&!this.isNextLineUnIndentedCollection()?(l=this.getRealCurrentLineNb()+1,X=new e(l),X.refs=this.refs,h.push(X.parse(this.getNextEmbedBlock(null,!0),r,i))):h.push(null):(ie=N.leadspaces)!=null&&ie.length&&(ht=this.PATTERN_COMPACT_NOTATION.exec(N.value))?(l=this.getRealCurrentLineNb(),X=new e(l),X.refs=this.refs,f=N.value,w=this.getCurrentLineIndentation(),this.isNextLineIndented(!1)&&(f+=`
|
|
34
|
+
`+this.getNextEmbedBlock(w+N.leadspaces.length+1,!0)),h.push(X.parse(f,r,i))):h.push(this.parseValue(N.value,r,i))}else if((N=this.PATTERN_MAPPING_ITEM.exec(this.currentLine))&&N.key.indexOf(" #")===-1){if(this.CONTEXT_SEQUENCE===c)throw new W("You cannot define a mapping item when in a sequence");c=this.CONTEXT_MAPPING,h==null&&(h={}),it.configure(r,i);try{I=it.parseScalar(N.key)}catch(At){throw m=At,m.parsedLine=this.getRealCurrentLineNb()+1,m.snippet=this.currentLine,m}if(I==="<<")if(yt=!0,a=!0,((ne=N.value)!=null?ne.indexOf("*"):void 0)===0){if(Pt=N.value.slice(1),this.refs[Pt]==null)throw new W('Reference "'+Pt+'" does not exist.',this.getRealCurrentLineNb()+1,this.currentLine);if(dt=this.refs[Pt],typeof dt!="object")throw new W("YAML merge keys used with a scalar value instead of an object.",this.getRealCurrentLineNb()+1,this.currentLine);if(dt instanceof Array)for(_=A=0,k=dt.length;A<k;_=++A)t=dt[_],h[re=String(_)]==null&&(h[re]=t);else for(I in dt)t=dt[I],h[I]==null&&(h[I]=t)}else{if(N.value!=null&&N.value!==""?t=N.value:t=this.getNextEmbedBlock(),l=this.getRealCurrentLineNb()+1,X=new e(l),X.refs=this.refs,ct=X.parse(t,r),typeof ct!="object")throw new W("YAML merge keys used with a scalar value instead of an object.",this.getRealCurrentLineNb()+1,this.currentLine);if(ct instanceof Array)for(at=0,Jt=ct.length;at<Jt;at++){if(ut=ct[at],typeof ut!="object")throw new W("Merge items must be objects.",this.getRealCurrentLineNb()+1,ut);if(ut instanceof Array)for(_=Vt=0,te=ut.length;Vt<te;_=++Vt)t=ut[_],C=String(_),h.hasOwnProperty(C)||(h[C]=t);else for(I in ut)t=ut[I],h.hasOwnProperty(I)||(h[I]=t)}else for(I in ct)t=ct[I],h.hasOwnProperty(I)||(h[I]=t)}else N.value!=null&&(ht=this.PATTERN_ANCHOR_VALUE.exec(N.value))&&(R=ht.ref,N.value=ht.value);yt||(N.value==null||D.trim(N.value," ")===""||D.ltrim(N.value," ").indexOf("#")===0?!this.isNextLineIndented()&&!this.isNextLineUnIndentedCollection()?(a||h[I]===void 0)&&(h[I]=null):(l=this.getRealCurrentLineNb()+1,X=new e(l),X.refs=this.refs,Q=X.parse(this.getNextEmbedBlock(),r,i),(a||h[I]===void 0)&&(h[I]=Q)):(Q=this.parseValue(N.value,r,i),(a||h[I]===void 0)&&(h[I]=Q)))}else{if(jt=this.lines.length,jt===1||jt===2&&D.isEmpty(this.lines[1])){try{t=it.parse(this.lines[0],r,i)}catch(At){throw m=At,m.parsedLine=this.getRealCurrentLineNb()+1,m.snippet=this.currentLine,m}if(typeof t=="object"){if(t instanceof Array)d=t[0];else for(I in t){d=t[I];break}if(typeof d=="string"&&d.indexOf("*")===0){for(h=[],Mt=0,ee=t.length;Mt<ee;Mt++)s=t[Mt],h.push(this.refs[s.slice(1)]);t=h}}return t}else if((se=D.ltrim(t).charAt(0))==="["||se==="{")try{return it.parse(t,r,i)}catch(At){throw m=At,m.parsedLine=this.getRealCurrentLineNb()+1,m.snippet=this.currentLine,m}throw new W("Unable to parse.",this.getRealCurrentLineNb()+1,this.currentLine)}if(R)if(h instanceof Array)this.refs[R]=h[h.length-1];else{pt=null;for(I in h)pt=I;this.refs[R]=h[pt]}}return D.isEmpty(h)?null:h},e.prototype.getRealCurrentLineNb=function(){return this.currentLineNb+this.offset},e.prototype.getCurrentLineIndentation=function(){return this.currentLine.length-D.ltrim(this.currentLine," ").length},e.prototype.getNextEmbedBlock=function(t,r){var i,s,a,f,l,c,h;if(t==null&&(t=null),r==null&&(r=!1),this.moveToNextLine(),t==null){if(f=this.getCurrentLineIndentation(),h=this.isStringUnIndentedCollectionItem(this.currentLine),!this.isCurrentLineEmpty()&&f===0&&!h)throw new W("Indentation problem.",this.getRealCurrentLineNb()+1,this.currentLine)}else f=t;for(i=[this.currentLine.slice(f)],r||(a=this.isStringUnIndentedCollectionItem(this.currentLine)),c=this.PATTERN_FOLDED_SCALAR_END,l=!c.test(this.currentLine);this.moveToNextLine();)if(s=this.getCurrentLineIndentation(),s===f&&(l=!c.test(this.currentLine)),!(l&&this.isCurrentLineComment())){if(this.isCurrentLineBlank()){i.push(this.currentLine.slice(f));continue}if(a&&!this.isStringUnIndentedCollectionItem(this.currentLine)&&s===f){this.moveToPreviousLine();break}if(s>=f)i.push(this.currentLine.slice(f));else if(D.ltrim(this.currentLine).charAt(0)!=="#")if(s===0){this.moveToPreviousLine();break}else throw new W("Indentation problem.",this.getRealCurrentLineNb()+1,this.currentLine)}return i.join(`
|
|
35
|
+
`)},e.prototype.moveToNextLine=function(){return this.currentLineNb>=this.lines.length-1?!1:(this.currentLine=this.lines[++this.currentLineNb],!0)},e.prototype.moveToPreviousLine=function(){this.currentLine=this.lines[--this.currentLineNb]},e.prototype.parseValue=function(t,r,i){var s,a,f,l,c,h,m,d;if(t.indexOf("*")===0){if(c=t.indexOf("#"),c!==-1?t=t.substr(1,c-2):t=t.slice(1),this.refs[t]===void 0)throw new W('Reference "'+t+'" does not exist.',this.currentLine);return this.refs[t]}if(f=this.PATTERN_FOLDED_SCALAR_ALL.exec(t))return l=(h=f.modifiers)!=null?h:"",a=Math.abs(parseInt(l)),isNaN(a)&&(a=0),d=this.parseFoldedScalar(f.separator,this.PATTERN_DECIMAL.replace(l,""),a),f.type!=null?(it.configure(r,i),it.parseScalar(f.type+" "+d)):d;if((m=t.charAt(0))==="["||m==="{"||m==='"'||m==="'")for(;;)try{return it.parse(t,r,i)}catch(_){if(s=_,s instanceof Br&&this.moveToNextLine())t+=`
|
|
36
|
+
`+D.trim(this.currentLine," ");else throw s.parsedLine=this.getRealCurrentLineNb()+1,s.snippet=this.currentLine,s}else return this.isNextLineIndented()&&(t+=`
|
|
37
|
+
`+this.getNextEmbedBlock()),it.parse(t,r,i)},e.prototype.parseFoldedScalar=function(t,r,i){var s,a,f,l,c,h,m,d,_,w;if(r==null&&(r=""),i==null&&(i=0),m=this.moveToNextLine(),!m)return"";for(s=this.isCurrentLineBlank(),w="";m&&s;)(m=this.moveToNextLine())&&(w+=`
|
|
38
|
+
`,s=this.isCurrentLineBlank());if(i===0&&(c=this.PATTERN_INDENT_SPACES.exec(this.currentLine))&&(i=c[0].length),i>0)for(d=this.PATTERN_FOLDED_SCALAR_BY_INDENTATION[i],d==null&&(d=new z("^ {"+i+"}(.*)$"),e.prototype.PATTERN_FOLDED_SCALAR_BY_INDENTATION[i]=d);m&&(s||(c=d.exec(this.currentLine)));)s?w+=this.currentLine.slice(i):w+=c[1],(m=this.moveToNextLine())&&(w+=`
|
|
39
|
+
`,s=this.isCurrentLineBlank());else m&&(w+=`
|
|
40
|
+
`);if(m&&this.moveToPreviousLine(),t===">"){for(h="",_=w.split(`
|
|
41
|
+
`),a=0,f=_.length;a<f;a++)l=_[a],l.length===0||l.charAt(0)===" "?h=D.rtrim(h," ")+l+`
|
|
42
|
+
`:h+=l+" ";w=h}return r!=="+"&&(w=D.rtrim(w)),r===""?w=this.PATTERN_TRAILING_LINES.replace(w,`
|
|
43
|
+
`):r==="-"&&(w=this.PATTERN_TRAILING_LINES.replace(w,"")),w},e.prototype.isNextLineIndented=function(t){var r,i,s;if(t==null&&(t=!0),i=this.getCurrentLineIndentation(),r=!this.moveToNextLine(),t)for(;!r&&this.isCurrentLineEmpty();)r=!this.moveToNextLine();else for(;!r&&this.isCurrentLineBlank();)r=!this.moveToNextLine();return r?!1:(s=!1,this.getCurrentLineIndentation()>i&&(s=!0),this.moveToPreviousLine(),s)},e.prototype.isCurrentLineEmpty=function(){var t;return t=D.trim(this.currentLine," "),t.length===0||t.charAt(0)==="#"},e.prototype.isCurrentLineBlank=function(){return D.trim(this.currentLine," ")===""},e.prototype.isCurrentLineComment=function(){var t;return t=D.ltrim(this.currentLine," "),t.charAt(0)==="#"},e.prototype.cleanup=function(t){var r,i,s,a,f,l,c,h,m,d,_,w,R,A;for(t.indexOf("\r")!==-1&&(t=t.split(`\r
|
|
44
|
+
`).join(`
|
|
45
|
+
`).split("\r").join(`
|
|
46
|
+
`)),r=0,d=this.PATTERN_YAML_HEADER.replaceAll(t,""),t=d[0],r=d[1],this.offset+=r,_=this.PATTERN_LEADING_COMMENTS.replaceAll(t,"",1),A=_[0],r=_[1],r===1&&(this.offset+=D.subStrCount(t,`
|
|
47
|
+
`)-D.subStrCount(A,`
|
|
48
|
+
`),t=A),w=this.PATTERN_DOCUMENT_MARKER_START.replaceAll(t,"",1),A=w[0],r=w[1],r===1&&(this.offset+=D.subStrCount(t,`
|
|
49
|
+
`)-D.subStrCount(A,`
|
|
50
|
+
`),t=A,t=this.PATTERN_DOCUMENT_MARKER_END.replace(t,"")),m=t.split(`
|
|
51
|
+
`),R=-1,a=0,l=m.length;a<l;a++)h=m[a],D.trim(h," ").length!==0&&(s=h.length-D.ltrim(h).length,(R===-1||s<R)&&(R=s));if(R>0){for(i=f=0,c=m.length;f<c;i=++f)h=m[i],m[i]=h.slice(R);t=m.join(`
|
|
52
|
+
`)}return t},e.prototype.isNextLineUnIndentedCollection=function(t){var r,i;for(t==null&&(t=null),t==null&&(t=this.getCurrentLineIndentation()),r=this.moveToNextLine();r&&this.isCurrentLineEmpty();)r=this.moveToNextLine();return r===!1?!1:(i=!1,this.getCurrentLineIndentation()===t&&this.isStringUnIndentedCollectionItem(this.currentLine)&&(i=!0),this.moveToPreviousLine(),i)},e.prototype.isStringUnIndentedCollectionItem=function(){return this.currentLine==="-"||this.currentLine.slice(0,2)==="- "},e}();var Fs=Dr,kr,Ve,Xt;Xt=Kt;Ve=Cr;kr=function(){function e(){}return e.indentation=4,e.prototype.dump=function(t,r,i,s,a){var f,l,c,h,m,d,_;if(r==null&&(r=0),i==null&&(i=0),s==null&&(s=!1),a==null&&(a=null),h="",m=i?Xt.strRepeat(" ",i):"",r<=0||typeof t!="object"||t instanceof Date||Xt.isEmpty(t))h+=m+Ve.dump(t,s,a);else if(t instanceof Array)for(f=0,c=t.length;f<c;f++)d=t[f],_=r-1<=0||typeof d!="object"||Xt.isEmpty(d),h+=m+"-"+(_?" ":`
|
|
53
|
+
`)+this.dump(d,r-1,_?0:i+this.indentation,s,a)+(_?`
|
|
54
|
+
`:"");else for(l in t)d=t[l],_=r-1<=0||typeof d!="object"||Xt.isEmpty(d),h+=m+Ve.dump(l,s,a)+":"+(_?" ":`
|
|
55
|
+
`)+this.dump(d,r-1,_?0:i+this.indentation,s,a)+(_?`
|
|
56
|
+
`:"");return h},e}();var Gs=kr,jr,Vr,Fe,be;Vr=Fs;jr=Gs;Fe=Kt;be=function(){function e(){}return e.parse=function(t,r,i){return r==null&&(r=!1),i==null&&(i=null),new Vr().parse(t,r,i)},e.parseFile=function(t,r,i,s){var a;return r==null&&(r=null),i==null&&(i=!1),s==null&&(s=null),r!=null?Fe.getStringFromFile(t,function(f){return function(l){var c;c=null,l!=null&&(c=f.parse(l,i,s)),r(c)}}(this)):(a=Fe.getStringFromFile(t),a!=null?this.parse(a,i,s):null)},e.dump=function(t,r,i,s,a){var f;return r==null&&(r=2),i==null&&(i=4),s==null&&(s=!1),a==null&&(a=null),f=new jr,f.indentation=i,f.dump(t,r,0,s,a)},e.stringify=function(t,r,i,s,a){return this.dump(t,r,i,s,a)},e.load=function(t,r,i,s){return this.parseFile(t,r,i,s)},e}();typeof window<"u"&&window!==null&&(window.YAML=be);(typeof window>"u"||window===null)&&(x.YAML=be);var Us=be;const _t={defaultMerge:Symbol("deepmerge-ts: default merge"),skip:Symbol("deepmerge-ts: skip")};_t.defaultMerge;function $s(e,t){return t}function lr(e){return typeof e!="object"||e===null?0:Array.isArray(e)?2:Xs(e)?1:e instanceof Set?3:e instanceof Map?4:5}function Hs(e){const t=new Set;for(const r of e)for(const i of[...Object.keys(r),...Object.getOwnPropertySymbols(r)])t.add(i);return t}function zs(e,t){return typeof e=="object"&&Object.prototype.propertyIsEnumerable.call(e,t)}function Fr(e){return{*[Symbol.iterator](){for(const t of e)for(const r of t)yield r}}}const pr=new Set(["[object Object]","[object Module]"]);function Xs(e){if(!pr.has(Object.prototype.toString.call(e)))return!1;const{constructor:t}=e;if(t===void 0)return!0;const r=t.prototype;return!(r===null||typeof r!="object"||!pr.has(Object.prototype.toString.call(r))||!r.hasOwnProperty("isPrototypeOf"))}function Ys(e,t,r){const i={};for(const s of Hs(e)){const a=[];for(const c of e)zs(c,s)&&a.push(c[s]);if(a.length===0)continue;const f=t.metaDataUpdater(r,{key:s,parents:e}),l=Ur(a,t,f);l!==_t.skip&&(s==="__proto__"?Object.defineProperty(i,s,{value:l,configurable:!0,enumerable:!0,writable:!0}):i[s]=l)}return i}function qs(e){return e.flat()}function Qs(e){return new Set(Fr(e))}function Zs(e){return new Map(Fr(e))}function Gr(e){return e.at(-1)}var Be=Object.freeze({__proto__:null,mergeArrays:qs,mergeMaps:Zs,mergeOthers:Gr,mergeRecords:Ys,mergeSets:Qs});function De(...e){return Ws({})(...e)}function Ws(e,t){const r=Ks(e,i);function i(...s){return Ur(s,r,t)}return i}function Ks(e,t){return{defaultMergeFunctions:Be,mergeFunctions:{...Be,...Object.fromEntries(Object.entries(e).filter(([r,i])=>Object.hasOwn(Be,r)).map(([r,i])=>i===!1?[r,Gr]:[r,i]))},metaDataUpdater:e.metaDataUpdater??$s,deepmerge:t,useImplicitDefaultMerging:e.enableImplicitDefaultMerging??!1,actions:_t}}function Ur(e,t,r){if(e.length===0)return;if(e.length===1)return ke(e,t,r);const i=lr(e[0]);if(i!==0&&i!==5){for(let s=1;s<e.length;s++)if(lr(e[s])!==i)return ke(e,t,r)}switch(i){case 1:return Js(e,t,r);case 2:return to(e,t,r);case 3:return eo(e,t,r);case 4:return ro(e,t,r);default:return ke(e,t,r)}}function Js(e,t,r){const i=t.mergeFunctions.mergeRecords(e,t,r);return i===_t.defaultMerge||t.useImplicitDefaultMerging&&i===void 0&&t.mergeFunctions.mergeRecords!==t.defaultMergeFunctions.mergeRecords?t.defaultMergeFunctions.mergeRecords(e,t,r):i}function to(e,t,r){const i=t.mergeFunctions.mergeArrays(e,t,r);return i===_t.defaultMerge||t.useImplicitDefaultMerging&&i===void 0&&t.mergeFunctions.mergeArrays!==t.defaultMergeFunctions.mergeArrays?t.defaultMergeFunctions.mergeArrays(e):i}function eo(e,t,r){const i=t.mergeFunctions.mergeSets(e,t,r);return i===_t.defaultMerge||t.useImplicitDefaultMerging&&i===void 0&&t.mergeFunctions.mergeSets!==t.defaultMergeFunctions.mergeSets?t.defaultMergeFunctions.mergeSets(e):i}function ro(e,t,r){const i=t.mergeFunctions.mergeMaps(e,t,r);return i===_t.defaultMerge||t.useImplicitDefaultMerging&&i===void 0&&t.mergeFunctions.mergeMaps!==t.defaultMergeFunctions.mergeMaps?t.defaultMergeFunctions.mergeMaps(e):i}function ke(e,t,r){const i=t.mergeFunctions.mergeOthers(e,t,r);return i===_t.defaultMerge||t.useImplicitDefaultMerging&&i===void 0&&t.mergeFunctions.mergeOthers!==t.defaultMergeFunctions.mergeOthers?t.defaultMergeFunctions.mergeOthers(e):i}var io=function(e,t){var r,i={};i=De(i,{version:(Math.floor(t*10)/10).toString(),services:(r={},r[e.serviceName]={},r)});var s={};return e.properties.forEach(function(a){return s=De(a.value,s)}),i.services[e.serviceName]=s,e.additionalComposeObjects!==void 0&&e.additionalComposeObjects.forEach(function(a){return i=De(i,a)}),i},no=function(e,t,r){t===void 0&&(t=3.9),r===void 0&&(r=!1);var i=Os(e,r);r&&(console.log("Parse result:"),console.log(JSON.stringify(i,null,2)));var s=io(i,t);return new xn(Us.stringify(s,9,4),i.messages)};const so={"mt-5":"",flex:"","justify-center":""},oo={key:0},ao={key:1},uo={key:2},Eo=hn({__name:"docker-run-to-docker-compose-converter",setup(e){const{t}=cn(),r=dn("docker run -p 80:80 -v /var/run/docker.sock:/tmp/docker.sock:ro --restart always --log-opt max-size=1g nginx"),i=Ct(()=>_n(()=>no(r.value.trim()),{yaml:"",messages:[]})),s=Ct(()=>i.value.yaml),a=Ct(()=>i.value.messages.filter(m=>m.type===ot.notImplemented).map(m=>m.value)),f=Ct(()=>i.value.messages.filter(m=>m.type===ot.notTranslatable).map(m=>m.value)),l=Ct(()=>i.value.messages.filter(m=>m.type===ot.errorDuringConversion).map(m=>m.value)),c=Ct(()=>`data:application/yaml;base64,${Tn(s.value)}`),{download:h}=An({source:c,filename:"docker-compose.yml"});return(m,d)=>{const _=yn,w=bn,R=vn,A=Sn;return ft(),lt("div",null,[wt(_,{value:F(r),"onUpdate:value":d[0]||(d[0]=C=>mn(r)?r.value=C:null),label:F(t)("tools.docker-run-to-docker-compose-converter.inputLabel"),style:{"font-family":"monospace"},multiline:"","raw-text":"",monospace:"",placeholder:F(t)("tools.docker-run-to-docker-compose-converter.inputPlaceholder"),rows:"3"},null,8,["value","label","placeholder"]),wt(w),wt(En,{value:F(s),language:"yaml"},null,8,["value"]),fe("div",so,[wt(R,{disabled:F(s)==="",secondary:"",onClick:F(h)},{default:le(()=>[gn(pe(F(t)("tools.docker-run-to-docker-compose-converter.download")),1)]),_:1},8,["disabled","onClick"])]),F(f).length>0?(ft(),lt("div",oo,[wt(A,{title:F(t)("tools.docker-run-to-docker-compose-converter.notTranslatable"),type:"info","mt-5":""},{default:le(()=>[fe("ul",null,[(ft(!0),lt(Ne,null,Oe(F(f),(C,I)=>(ft(),lt("li",{key:I},pe(C),1))),128))])]),_:1},8,["title"])])):Le("",!0),F(a).length>0?(ft(),lt("div",ao,[wt(A,{title:F(t)("tools.docker-run-to-docker-compose-converter.notImplemented"),type:"warning","mt-5":""},{default:le(()=>[fe("ul",null,[(ft(!0),lt(Ne,null,Oe(F(a),(C,I)=>(ft(),lt("li",{key:I},pe(C),1))),128))])]),_:1},8,["title"])])):Le("",!0),F(l).length>0?(ft(),lt("div",uo,[wt(A,{title:F(t)("tools.docker-run-to-docker-compose-converter.errors"),type:"error","mt-5":""},{default:le(()=>[fe("ul",null,[(ft(!0),lt(Ne,null,Oe(F(l),(C,I)=>(ft(),lt("li",{key:I},pe(C),1))),128))])]),_:1},8,["title"])])):Le("",!0)])}}});export{Eo as default};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!-----------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Version: 0.43.0(94c055bcbdd49f04a0fa15515e848542a79fb948)
|
|
4
|
+
* Released under the MIT license
|
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
+
*-----------------------------------------------------------------------------*/var e={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},o={defaultToken:"",tokenPostfix:".dockerfile",variable:/\${?[\w]+}?/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/(ONBUILD)(\s+)/,["keyword",""]],[/(ENV)(\s+)([\w]+)/,["keyword","",{token:"variable",next:"@arguments"}]],[/(FROM|MAINTAINER|RUN|EXPOSE|ENV|ADD|ARG|VOLUME|LABEL|USER|WORKDIR|COPY|CMD|STOPSIGNAL|SHELL|HEALTHCHECK|ENTRYPOINT)/,{token:"keyword",next:"@arguments"}]],arguments:[{include:"@whitespace"},{include:"@strings"},[/(@variable)/,{cases:{"@eos":{token:"variable",next:"@popall"},"@default":"variable"}}],[/\\/,{cases:{"@eos":"","@default":""}}],[/./,{cases:{"@eos":{token:"",next:"@popall"},"@default":""}}]],whitespace:[[/\s+/,{cases:{"@eos":{token:"",next:"@popall"},"@default":""}}]],comment:[[/(^#.*$)/,"comment","@popall"]],strings:[[/\\'$/,"","@popall"],[/\\'/,""],[/'$/,"string","@popall"],[/'/,"string","@stringBody"],[/"$/,"string","@popall"],[/"/,"string","@dblStringBody"]],stringBody:[[/[^\\\$']/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/\\./,"string.escape"],[/'$/,"string","@popall"],[/'/,"string","@pop"],[/(@variable)/,"variable"],[/\\$/,"string"],[/$/,"string","@popall"]],dblStringBody:[[/[^\\\$"]/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/\\./,"string.escape"],[/"$/,"string","@popall"],[/"/,"string","@pop"],[/(@variable)/,"variable"],[/\\$/,"string"],[/$/,"string","@popall"]]}};export{e as conf,o as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{m as l}from"./index-f68143c3.js";import{g as d}from"./index-01d0fc63.js";const f={JVBERi0:"application/pdf",R0lGODdh:"image/gif",R0lGODlh:"image/gif",iVBORw0KGgo:"image/png","/9j/":"image/jpg"};function u({base64String:e}){const[,n]=e.match(/data:(.*?);base64/i)??[];if(n)return{mimeType:n};const t=d.find(f,(i,o)=>e.startsWith(o));return t?{mimeType:t}:{mimeType:void 0}}function g({mimeType:e,defaultExtension:n="txt"}){return e?l.extension(e)??n:n}function p({sourceValue:e,filename:n,extension:t,fileMimeType:i}){if(e==="")throw new Error("Base64 string is empty");const o=t??"txt",{mimeType:m}=u({base64String:e});let s=e;m||(s=`data:${i??l.extension(o)};base64,${e}`);const c=t??g({mimeType:m,defaultExtension:o});let r=n??`file.${c}`;t&&!r.endsWith(`.${t}`)&&(r=`${r}.${c}`);const a=document.createElement("a");a.href=s,a.download=r,a.click()}function h({source:e,filename:n,extension:t,fileMimeType:i}){return{download(){p({sourceValue:e.value,filename:n,extension:t,fileMimeType:i})}}}function B({source:e,filename:n,extension:t}){return{download(){p({sourceValue:e.value,filename:n?.value,extension:t?.value})}}}function F(e){if(e==="")throw new Error("Base64 string is empty");const n=document.createElement("img");n.src=e;const t=document.createElement("div");t.appendChild(n);const i=document.getElementById("previewContainer");if(i)i.innerHTML="",i.appendChild(t);else throw new Error("Preview container element not found");return n}export{h as a,u as g,F as p,B as u};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!-----------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Version: 0.43.0(94c055bcbdd49f04a0fa15515e848542a79fb948)
|
|
4
|
+
* Released under the MIT license
|
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
+
*-----------------------------------------------------------------------------*/var e={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}]},o={defaultToken:"",tokenPostfix:".ecl",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],pounds:["append","break","declare","demangle","end","for","getdatatype","if","inmodule","loop","mangle","onwarning","option","set","stored","uniquename"].join("|"),keywords:["__compressed__","after","all","and","any","as","atmost","before","beginc","best","between","case","cluster","compressed","compression","const","counter","csv","default","descend","embed","encoding","encrypt","end","endc","endembed","endmacro","enum","escape","except","exclusive","expire","export","extend","fail","few","fileposition","first","flat","forward","from","full","function","functionmacro","group","grouped","heading","hole","ifblock","import","in","inner","interface","internal","joined","keep","keyed","last","left","limit","linkcounted","literal","little_endian","load","local","locale","lookup","lzw","macro","many","maxcount","maxlength","min skew","module","mofn","multiple","named","namespace","nocase","noroot","noscan","nosort","not","noxpath","of","onfail","only","opt","or","outer","overwrite","packed","partition","penalty","physicallength","pipe","prefetch","quote","record","repeat","retry","return","right","right1","right2","rows","rowset","scan","scope","self","separator","service","shared","skew","skip","smart","soapaction","sql","stable","store","terminator","thor","threshold","timelimit","timeout","token","transform","trim","type","unicodeorder","unordered","unsorted","unstable","update","use","validate","virtual","whole","width","wild","within","wnotrim","xml","xpath"],functions:["abs","acos","aggregate","allnodes","apply","ascii","asin","assert","asstring","atan","atan2","ave","build","buildindex","case","catch","choose","choosen","choosesets","clustersize","combine","correlation","cos","cosh","count","covariance","cron","dataset","dedup","define","denormalize","dictionary","distribute","distributed","distribution","ebcdic","enth","error","evaluate","event","eventextra","eventname","exists","exp","fail","failcode","failmessage","fetch","fromunicode","fromxml","getenv","getisvalid","global","graph","group","hash","hash32","hash64","hashcrc","hashmd5","having","httpcall","httpheader","if","iff","index","intformat","isvalid","iterate","join","keydiff","keypatch","keyunicode","length","library","limit","ln","loadxml","local","log","loop","map","matched","matchlength","matchposition","matchtext","matchunicode","max","merge","mergejoin","min","nofold","nolocal","nonempty","normalize","nothor","notify","output","parallel","parse","pipe","power","preload","process","project","pull","random","range","rank","ranked","realformat","recordof","regexfind","regexreplace","regroup","rejected","rollup","round","roundup","row","rowdiff","sample","sequential","set","sin","sinh","sizeof","soapcall","sort","sorted","sqrt","stepped","stored","sum","table","tan","tanh","thisnode","topn","tounicode","toxml","transfer","transform","trim","truncate","typeof","ungroup","unicodeorder","variance","wait","which","workunit","xmldecode","xmlencode","xmltext","xmlunicode"],typesint:["integer","unsigned"].join("|"),typesnum:["data","qstring","string","unicode","utf8","varstring","varunicode"],typesone:["ascii","big_endian","boolean","data","decimal","ebcdic","grouped","integer","linkcounted","pattern","qstring","real","record","rule","set of","streamed","string","token","udecimal","unicode","unsigned","utf8","varstring","varunicode"].join("|"),operators:["+","-","/",":=","<","<>","=",">","\\","and","in","not","or"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/@typesint[4|8]/,"type"],[/#(@pounds)/,"type"],[/@typesone/,"type"],[/[a-zA-Z_$][\w-$]*/,{cases:{"@functions":"keyword.function","@keywords":"keyword","@operators":"operator"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/[0-9_]*\.[0-9_]+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]+/,"number.hex"],[/0[bB][01]+/,"number.hex"],[/[0-9_]+/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\v\f\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]]}};export{e as conf,o as language};
|