Files
zmVault/.obsidian/plugins/easy-copy/main.js
T

15 lines
63 KiB
JavaScript

/*
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
if you want to view the source, please visit the github repository of this plugin
*/
var ee=Object.create;var N=Object.defineProperty;var te=Object.getOwnPropertyDescriptor;var ie=Object.getOwnPropertyNames;var ne=Object.getPrototypeOf,ae=Object.prototype.hasOwnProperty;var se=(t,c)=>{for(var e in c)N(t,e,{get:c[e],enumerable:!0})},W=(t,c,e,l)=>{if(c&&typeof c=="object"||typeof c=="function")for(let s of ie(c))!ae.call(t,s)&&s!==e&&N(t,s,{get:()=>c[s],enumerable:!(l=te(c,s))||l.enumerable});return t};var le=(t,c,e)=>(e=t!=null?ee(ne(t)):{},W(c||!t||!t.__esModule?N(e,"default",{value:t,enumerable:!0}):e,t)),oe=t=>W(N({},"__esModule",{value:!0}),t);var be={};se(be,{default:()=>H});module.exports=oe(be);var h=require("obsidian");var R={["en"]:{"auto-add-block-id":"Auto generate block ID","auto-add-block-id-desc":"When enabled, if there is no copyable content, a random block ID (^xxxx) will be automatically added to the end of the current line.","manual-block-id":"Manually enter Block ID","manual-block-id-desc":"If enabled, you will be prompted to enter a block ID manually.","block-id-insert-position":"Block ID insert position","block-id-insert-position-desc":"Choose where to insert the block ID - For special blocks like code blocks and quote blocks, at least one line break will be inserted.","block-id-end-of-block":"End of current block","block-id-next-line":"Next line below current block","block-id-next-line-with-gap":"Two lines below current block (with empty line)","modal-block-id":"Enter block ID","modal-block-id-desc":"Allowed: letters, numbers, hyphens (-), underscores (_). Spaces will be converted to hyphens.","error-block-id-empty":"Block ID cannot be empty","error-block-id-invalid":"Only letters, numbers, hyphens and underscores are allowed","no-file":"Cannot get current file","no-content":"No content to copy at current cursor position","inline-code-copied":"Inline code copied!","block-id-copied":"Block ID link copied!","note-link-copied":"Note link copied!","heading-copied":"Heading link copied!","bold-copied":"Bold text copied!","highlight-copied":"Highlighted text copied!","italic-copied":"Italic text copied!","inline-latex-copied":"Inline LaTeX copied!","strikethrough-copied":"Strikethrough text copied!","link-text-copied":"Link text copied!","link-url-copied":"Link URL copied!","wiki-link-copied":"Wiki link copied!","callout-copied":"Callout copied!","code-block-copied":"Code block copied!","note-link-simplified":"Link simplified (filename matches heading)",format:"Format","use-frontmatter-as-display":"Note Link: Use specific property as display text","use-frontmatter-as-display-desc":"If enabled, use the value of the specified note property as the display text for note links","frontmatter-key":"Note property name","frontmatter-key-desc":"The property name used as display text (default: title)","block-id":"Block ID",target:"Target","add-to-menu":"Add to menu","add-to-menu-desc":"Add the command to the context menu","add-extra-commands":"Add extra commands","add-extra-commands-desc":'Enable to add "Copy current note link" and "Generate & copy current block link" commands to the command palette',"show-notice":"Show notice","show-notice-desc":"Show notification when content is copied","use-heading-as-display":"Heading Link: Only use heading as display text","use-heading-as-display-desc":"Use the heading text as display text in copied heading links","simplified-heading-to-note-link":"Simplify link when filename matches heading","simplified-heading-to-note-link-desc":"When the filename matches the heading text (ignoring spaces), create a note link instead of a heading link","strict-heading-match":"Strict heading match","strict-heading-match-desc":'When enabled, filename must exactly match the heading (case-insensitive). When disabled, the link is also simplified if the filename contains the heading as a substring (e.g. "260422_note" matches heading "note").',"heading-link-separator":"Heading Link: Separator between filename and heading","heading-link-separator-desc":'Customize the separator symbol between filename and heading (only shown when "Use heading as display text" is disabled)',"link-format":"Link format","link-format-desc":"The format used when copying various types of links","link-format-obsidian":"Follow Obsidian settings","markdown-link":"Markdown link","wiki-link":"Wiki link","resolve-link-path-on-paste":"Resolve link path on paste","resolve-link-path-on-paste-desc":`Regenerate the link path at paste time based on the destination file. Under "Follow Obsidian settings", uses your vault's path style (shortest/relative/absolute); otherwise uses shortest-unique paths only.`,"resolve-link-path-on-paste-tooltip":"Plugins loaded earlier take priority for paste handling. If another plugin (e.g. Linter) intercepts paste first, this feature will be bypassed. You can adjust plugin load order in the community-plugins.json file.","customize-targets":"Customize targets","customize-targets-desc":"Enable to customize which elements can be copied (disable to copy all elements)","enable-inline-code":"Enable inline code","enable-inline-code-desc":"Enable copying inline code like `code example`","enable-bold":"Enable bold text","enable-bold-desc":"Enable copying bold text like **bold example**","enable-highlight":"Enable highlighted text","enable-highlight-desc":"Enable copying highlighted text like ==highlight example==","enable-italic":"Enable italic text","enable-italic-desc":"Enable copying italic text like *italic example*","enable-strikethrough":"Enable strikethrough text","enable-strikethrough-desc":"Enable copying strikethrough text like ~~strikethrough example~~","enable-inline-latex":"Enable inline LaTeX","enable-inline-latex-desc":"Enable copying inline LaTeX like $latex example$","enable-link":"Enable link title/url","enable-link-desc":"Enable copying link like [linktitle](linkurl) - the plugin will copy the title or the URL of the link based on the current cursor position.","auto-block-display-text":"Generate display text for block links","auto-block-display-text-desc":"If enabled, display text will be automatically added to generated block ID links","block-display-word-limit":"Block Display Text: Word limit for English-like languages","block-display-word-limit-desc":'Maximum number of words to show in block display text for space-separated languages (e.g., English "this is a sentence")',"block-display-char-limit":"Block Display Text: Character limit for CJK-like languages","block-display-char-limit-desc":'Maximum number of characters to show in block display text for non-space-separated languages (e.g., Chinese "\u8FD9\u662F\u4E00\u53E5\u8BDD") - This setting will be used when the first line contains non-ASCII characters.',"enable-wikilink":"Enable Wiki Link","enable-wikilink-desc":"Enable copying of [[Wiki]] links","special-format":"Special copy format options","auto-embed-block-link":"Block link: Add ! for embed","auto-embed-block-link-desc":"When copying block links, automatically add ! to embed the block","enable-callout-copy":"Copy callout text","enable-callout-copy-desc":'When the cursor is inside a callout (">" block), copy the callout content as plain text',"callout-copy-priority":"Prioritize callout copy","callout-copy-priority-desc":"When the cursor is inside a callout, prioritize copying the callout content instead of generating a block ID link","code-block-behavior":"Code block copy behavior","code-block-behavior-desc":"Choose the behavior when the cursor is inside a fenced code block (``` ... ```)","code-block":"Code Block","code-block-copy-content":"Copy plain text","code-block-copy-with-fences":"Copy code block (with fences)","code-block-generate-block-link":"Generate block link","code-block-disabled":"Disabled","keep-wiki-brackets":"Wikilink: Keep [[ ]] brackets","keep-wiki-brackets-desc":"When copying wiki links, keep the surrounding [[ ]] brackets","contextual-copy":"Contextual copy","copy-current-file-link":"Copy current file link","generate-current-block-link-auto":"Copy current block link (auto-generate ID)","generate-current-block-link-manual":"Copy current block link (manual ID input)","file-link-copied":"File link copied!","enable-display-name-regex":"Display name: Regex replacement","enable-display-name-regex-desc":"When enabled, apply a regex find-and-replace to the display text of copied heading/note links","display-name-regex-from":"Find (regex)","display-name-regex-from-desc":"Regular expression pattern to match in the display text (e.g. ^\\d+\\.\\s* to remove leading numbers)","display-name-regex-to":"Replace with","display-name-regex-to-desc":"Replacement string, supports capture groups like $1, $2 (e.g. $1 to keep only the first captured group)"},["zh"]:{"auto-add-block-id":"\u81EA\u52A8\u751F\u6210\u5757ID","auto-add-block-id-desc":"\u542F\u7528\u540E\uFF0C\u5982\u679C\u6CA1\u6709\u53EF\u590D\u5236\u5185\u5BB9\u65F6\u4F1A\u81EA\u52A8\u5728\u5F53\u524D\u6587\u672C\u672B\u5C3E\u6DFB\u52A0\u4E00\u4E2A\u968F\u673A\u751F\u6210\u7684\u5757ID\uFF08^xxxx\uFF09","manual-block-id":"\u624B\u52A8\u8F93\u5165\u5757ID","manual-block-id-desc":"\u542F\u7528\u540E\uFF0C\u53EF\u4EE5\u5728\u5F39\u7A97\u4E2D\u624B\u52A8\u8F93\u5165\u5757ID","block-id-insert-position":"\u5757ID\u63D2\u5165\u4F4D\u7F6E","block-id-insert-position-desc":"\u9009\u62E9\u751F\u6210\u5757ID\u65F6\u7684\u63D2\u5165\u4F4D\u7F6E\u3002\u5BF9\u4E8E\u4EE3\u7801\u5757\u548C\u5F15\u7528\u5757\u7B49\u7279\u6B8A\u6BB5\u843D\uFF0C\u81F3\u5C11\u4F1A\u63D2\u5165\u4E00\u4E2A\u6362\u884C\u3002","block-id-end-of-block":"\u5F53\u524D\u5757\u7684\u672B\u5C3E","block-id-next-line":"\u5F53\u524D\u5757\u7684\u4E0B\u65B9\u4E00\u884C","block-id-next-line-with-gap":"\u5F53\u524D\u5757\u7684\u4E0B\u65B9\u4E24\u884C\uFF08\u4E2D\u95F4\u9694\u4E00\u4E2A\u7A7A\u884C\uFF09","modal-block-id":"\u8F93\u5165\u5757ID","modal-block-id-desc":"\u4EC5\u5141\u8BB8\u5B57\u6BCD\u3001\u6570\u5B57\u3001\u77ED\u6A2A\u7EBF\uFF08-\uFF09\u3001\u4E0B\u5212\u7EBF\uFF08_\uFF09\uFF0C\u7A7A\u683C\u4F1A\u81EA\u52A8\u8F6C\u4E3A\u77ED\u6A2A\u7EBF\u3002","error-block-id-empty":"\u5757ID\u4E0D\u80FD\u4E3A\u7A7A","error-block-id-invalid":"\u53EA\u5141\u8BB8\u5B57\u6BCD\u3001\u6570\u5B57\u3001-\u3001_","no-file":"\u65E0\u6CD5\u83B7\u53D6\u5F53\u524D\u6587\u4EF6","no-content":"\u5F53\u524D\u5149\u6807\u5904\u6CA1\u6709\u53EF\u590D\u5236\u7684\u5185\u5BB9","inline-code-copied":"\u884C\u5185\u4EE3\u7801\u5DF2\u590D\u5236\uFF01","block-id-copied":"\u5757ID\u94FE\u63A5\u5DF2\u590D\u5236\uFF01","note-link-copied":"\u7B14\u8BB0\u94FE\u63A5\u5DF2\u590D\u5236\uFF01","heading-copied":"\u6807\u9898\u94FE\u63A5\u5DF2\u590D\u5236\uFF01","bold-copied":"\u52A0\u7C97\u6587\u672C\u5DF2\u590D\u5236\uFF01","highlight-copied":"\u9AD8\u4EAE\u6587\u672C\u5DF2\u590D\u5236\uFF01","italic-copied":"\u659C\u4F53\u6587\u672C\u5DF2\u590D\u5236\uFF01","inline-latex-copied":"\u884C\u5185LaTeX\u5DF2\u590D\u5236\uFF01","strikethrough-copied":"\u5220\u9664\u7EBF\u6587\u672C\u5DF2\u590D\u5236\uFF01","link-text-copied":"\u94FE\u63A5\u6587\u672C\u5DF2\u590D\u5236\uFF01","link-url-copied":"\u94FE\u63A5\u5730\u5740\u5DF2\u590D\u5236\uFF01","wiki-link-copied":"Wiki\u94FE\u63A5\u5DF2\u590D\u5236\uFF01","callout-copied":"\u6807\u6CE8\u5185\u5BB9\u5DF2\u590D\u5236\uFF01","code-block-copied":"\u4EE3\u7801\u5757\u5DF2\u590D\u5236\uFF01","note-link-simplified":"\u94FE\u63A5\u5DF2\u7B80\u5316\uFF08\u6587\u4EF6\u540D\u4E0E\u6807\u9898\u76F8\u5339\u914D\uFF09",format:"\u683C\u5F0F","block-id":"\u5757ID",target:"\u590D\u5236\u5BF9\u8C61","add-to-menu":"\u6DFB\u52A0\u5230\u83DC\u5355","add-to-menu-desc":"\u5C06\u547D\u4EE4\u6DFB\u52A0\u5230\u53F3\u952E\u83DC\u5355","add-extra-commands":"\u6DFB\u52A0\u62D3\u5C55\u547D\u4EE4","add-extra-commands-desc":"\u542F\u7528\u540E\uFF0C\u5C06\u5728\u547D\u4EE4\u9762\u677F\u4E2D\u6DFB\u52A0\u201C\u590D\u5236\u5F53\u524D\u7B14\u8BB0\u7684\u94FE\u63A5\u201D\u548C\u201C\u751F\u6210\u5E76\u590D\u5236\u5F53\u524D\u5757\u7684\u94FE\u63A5\u201D\u547D\u4EE4","show-notice":"\u663E\u793A\u901A\u77E5","show-notice-desc":"\u590D\u5236\u5185\u5BB9\u65F6\u663E\u793A\u901A\u77E5\u63D0\u793A","use-heading-as-display":"\u6807\u9898\u94FE\u63A5\uFF1A\u4EC5\u4F7F\u7528\u6807\u9898\u4F5C\u4E3A\u663E\u793A\u6587\u672C","use-heading-as-display-desc":"\u5728\u590D\u5236\u7684\u6807\u9898\u94FE\u63A5\u4E2D\uFF0C\u4F7F\u7528\u6807\u9898\u6587\u672C\u4F5C\u4E3A\u663E\u793A\u6587\u672C","simplified-heading-to-note-link":"\u6587\u4EF6\u540D\u5339\u914D\u6807\u9898\u65F6\u7B80\u5316\u94FE\u63A5","simplified-heading-to-note-link-desc":"\u5F53\u6587\u4EF6\u540D\u4E0E\u6807\u9898\u6587\u672C\u5339\u914D\u65F6\uFF08\u76F8\u540C\u6216\u5305\u542B\uFF09\uFF0C\u76F4\u63A5\u521B\u5EFA\u7B14\u8BB0\u94FE\u63A5\u800C\u4E0D\u662F\u6807\u9898\u94FE\u63A5","strict-heading-match":"\u4E25\u683C\u5339\u914D","strict-heading-match-desc":'\u542F\u7528\u540E\uFF0C\u6587\u4EF6\u540D\u5FC5\u987B\u4E0E\u6807\u9898\u5B8C\u5168\u76F8\u540C\uFF08\u5FFD\u7565\u5927\u5C0F\u5199\uFF09\u624D\u4F1A\u7B80\u5316\u3002\u5173\u95ED\u65F6\uFF0C\u6587\u4EF6\u540D\u5305\u542B\u6807\u9898\u4E5F\u4F1A\u7B80\u5316\uFF08\u5982\u6587\u4EF6\u540D "260422_note" \u5339\u914D\u6807\u9898 "note"\uFF09\u3002',"heading-link-separator":"\u6807\u9898\u94FE\u63A5\uFF1A\u6587\u4EF6\u540D\u4E0E\u6807\u9898\u95F4\u7684\u8FDE\u63A5\u7B26","heading-link-separator-desc":'\u81EA\u5B9A\u4E49\u6587\u4EF6\u540D\u4E0E\u6807\u9898\u4E4B\u95F4\u7684\u8FDE\u63A5\u7B26\u53F7\uFF08\u4EC5\u5728\u7981\u7528"\u4F7F\u7528\u6807\u9898\u4F5C\u4E3A\u663E\u793A\u6587\u672C"\u65F6\u663E\u793A\uFF09',"link-format":"\u94FE\u63A5\u683C\u5F0F","link-format-desc":"\u590D\u5236\u5404\u79CD\u94FE\u63A5\u65F6\u4F7F\u7528\u7684\u683C\u5F0F","link-format-obsidian":"\u8DDF\u968F Obsidian \u8BBE\u7F6E","markdown-link":"Markdown\u94FE\u63A5","wiki-link":"Wiki\u94FE\u63A5","resolve-link-path-on-paste":"\u7C98\u8D34\u65F6\u89E3\u6790\u94FE\u63A5\u8DEF\u5F84","resolve-link-path-on-paste-desc":'\u7C98\u8D34\u65F6\u6839\u636E\u76EE\u6807\u6587\u4EF6\u91CD\u65B0\u751F\u6210\u94FE\u63A5\u8DEF\u5F84\u3002\u4F7F\u7528"\u8DDF\u968F Obsidian \u8BBE\u7F6E"\u65F6\uFF0C\u4F1A\u6CBF\u7528\u8F6F\u4EF6\u8BBE\u7F6E\u4E2D\u7684\u8DEF\u5F84\u98CE\u683C\uFF08\u6700\u77ED/\u76F8\u5BF9/\u7EDD\u5BF9\uFF09\uFF1B\u5426\u5219\uFF0C\u4EC5\u4F7F\u7528\u6700\u77ED\u552F\u4E00\u8DEF\u5F84\u3002',"resolve-link-path-on-paste-tooltip":"\u8D8A\u65E9\u52A0\u8F7D\u7684\u63D2\u4EF6\u8D8A\u5148\u5904\u7406\u7C98\u8D34\u4E8B\u4EF6\u3002\u82E5\u5176\u4ED6\u63D2\u4EF6\uFF08\u5982 Linter\uFF09\u62A2\u5148\u5904\u7406\uFF0C\u672C\u529F\u80FD\u4F1A\u88AB\u8DF3\u8FC7\u3002\u53EF\u5728 community-plugins.json \u6587\u4EF6\u4E2D\u8C03\u6574\u63D2\u4EF6\u52A0\u8F7D\u987A\u5E8F\u3002","customize-targets":"\u81EA\u5B9A\u4E49\u590D\u5236\u5BF9\u8C61","customize-targets-desc":"\u542F\u7528\u540E\u53EF\u4EE5\u81EA\u5B9A\u4E49\u54EA\u4E9B\u5143\u7D20\u53EF\u4EE5\u88AB\u590D\u5236\uFF08\u4E0D\u542F\u7528\u5219\u9ED8\u8BA4\u53EF\u590D\u5236\u6240\u6709\u5143\u7D20\uFF09","enable-inline-code":"\u542F\u7528\u884C\u5185\u4EE3\u7801","enable-inline-code-desc":"\u542F\u7528\u590D\u5236\u884C\u5185\u4EE3\u7801\uFF0C\u5982 `\u4EE3\u7801\u793A\u4F8B`","enable-bold":"\u542F\u7528\u52A0\u7C97\u6587\u672C","enable-bold-desc":"\u542F\u7528\u590D\u5236\u52A0\u7C97\u6587\u672C\uFF0C\u5982 **\u52A0\u7C97\u793A\u4F8B**","enable-highlight":"\u542F\u7528\u9AD8\u4EAE\u6587\u672C","enable-highlight-desc":"\u542F\u7528\u590D\u5236\u9AD8\u4EAE\u6587\u672C\uFF0C\u5982 ==\u9AD8\u4EAE\u793A\u4F8B==","enable-italic":"\u542F\u7528\u659C\u4F53\u6587\u672C","enable-italic-desc":"\u542F\u7528\u590D\u5236\u659C\u4F53\u6587\u672C\uFF0C\u5982 *\u659C\u4F53\u793A\u4F8B*","enable-strikethrough":"\u542F\u7528\u5220\u9664\u7EBF\u6587\u672C","enable-strikethrough-desc":"\u542F\u7528\u590D\u5236\u5220\u9664\u7EBF\u6587\u672C\uFF0C\u5982 ~~\u5220\u9664\u7EBF\u793A\u4F8B~~","enable-inline-latex":"\u542F\u7528\u884C\u5185LaTeX","enable-inline-latex-desc":"\u542F\u7528\u590D\u5236\u884C\u5185LaTeX\uFF0C\u5982 $latex \u793A\u4F8B$","enable-link":"\u542F\u7528\u94FE\u63A5\u6587\u672C","enable-link-desc":"\u542F\u7528\u590D\u5236 Markdown \u94FE\u63A5","enable-wikilink":"\u542F\u7528 Wiki \u94FE\u63A5","enable-wikilink-desc":"\u542F\u7528\u590D\u5236 [[Wiki]] \u94FE\u63A5","special-format":"\u7279\u6B8A\u590D\u5236\u683C\u5F0F\u9009\u9879","auto-embed-block-link":"\u5757\u94FE\u63A5\uFF1A\u81EA\u52A8\u6DFB\u52A0 ! \u7B26\u53F7\uFF08\u5D4C\u5165\u5757\uFF09","auto-embed-block-link-desc":"\u590D\u5236\u5757\u94FE\u63A5\u65F6\u81EA\u52A8\u5728\u524D\u9762\u6DFB\u52A0 !\uFF0C\u7528\u4E8E\u5D4C\u5165\u5757","enable-callout-copy":"\u590D\u5236\u6807\u6CE8\u5185\u6587\u672C","enable-callout-copy-desc":'\u5F53\u5149\u6807\u5728 ">" \u6807\u6CE8\u5757\u5185\u65F6\uFF0C\u590D\u5236\u8BE5\u6807\u6CE8\u7684\u7EAF\u6587\u672C\u5185\u5BB9',"callout-copy-priority":"\u4F18\u5148\u590D\u5236\u6807\u6CE8\u5185\u5185\u5BB9","callout-copy-priority-desc":"\u5F53\u5149\u6807\u4F4D\u4E8E\u6807\u6CE8\u5185\u65F6\uFF0C\u4F18\u5148\u590D\u5236\u6807\u6CE8\u5185\u5185\u5BB9\u800C\u4E0D\u662F\u751F\u6210\u8BE5\u6807\u6CE8\u7684\u5757ID\u94FE\u63A5","code-block-behavior":"\u4EE3\u7801\u5757\u590D\u5236\u884C\u4E3A","code-block-behavior-desc":"\u5F53\u5149\u6807\u4F4D\u4E8E\u4EE3\u7801\u5757\uFF08``` ... ```\uFF09\u5185\u65F6\u7684\u590D\u5236\u884C\u4E3A","code-block":"\u4EE3\u7801\u5757","code-block-copy-content":"\u590D\u5236\u7EAF\u6587\u672C","code-block-copy-with-fences":"\u590D\u5236\u4EE3\u7801\u5757\uFF08\u542B ```\uFF09","code-block-generate-block-link":"\u751F\u6210\u5757\u94FE\u63A5","code-block-disabled":"\u7981\u7528","keep-wiki-brackets":"Wiki \u94FE\u63A5\uFF1A\u4FDD\u7559 [[ ]] \u62EC\u53F7","keep-wiki-brackets-desc":"\u590D\u5236 wiki \u94FE\u63A5\u65F6\u4FDD\u7559\u4E24\u4FA7 [[ ]] \u62EC\u53F7","contextual-copy":"\u667A\u80FD\u590D\u5236","copy-current-file-link":"\u590D\u5236\u5F53\u524D\u6587\u4EF6\u94FE\u63A5","generate-current-block-link-auto":"\u590D\u5236\u5F53\u524D\u5757\u94FE\u63A5\uFF08\u81EA\u52A8\u751F\u6210ID\uFF09","generate-current-block-link-manual":"\u590D\u5236\u5F53\u524D\u5757\u94FE\u63A5\uFF08\u624B\u52A8\u8F93\u5165ID\uFF09","file-link-copied":"\u5F53\u524D\u6587\u4EF6\u94FE\u63A5\u5DF2\u590D\u5236\uFF01","use-frontmatter-as-display":"\u7B14\u8BB0\u94FE\u63A5\uFF1A\u4F7F\u7528\u7279\u5B9A\u5C5E\u6027\u4F5C\u4E3A\u663E\u793A\u6587\u672C","use-frontmatter-as-display-desc":"\u542F\u7528\u540E\uFF0C\u4F7F\u7528\u6307\u5B9A\u7684\u7B14\u8BB0\u5C5E\u6027\u7684\u503C\u4F5C\u4E3A\u7B14\u8BB0\u94FE\u63A5\u7684\u663E\u793A\u6587\u672C","frontmatter-key":"\u7B14\u8BB0\u5C5E\u6027\u540D","frontmatter-key-desc":"\u7528\u4E8E\u663E\u793A\u6587\u672C\u7684\u7B14\u8BB0\u5C5E\u6027\u540D\uFF08\u9ED8\u8BA4\uFF1Atitle\uFF09","auto-block-display-text":"\u751F\u6210\u5757\u94FE\u63A5\u7684\u663E\u793A\u6587\u672C","auto-block-display-text-desc":"\u542F\u7528\u540E\uFF0C\u4F1A\u81EA\u52A8\u4E3A\u751F\u6210\u7684\u5757ID\u94FE\u63A5\u6DFB\u52A0\u663E\u793A\u6587\u672C","block-display-word-limit":"\u5757\u663E\u793A\u6587\u672C\uFF1A\u82F1\u8BED\u7C7B\u8BED\u8A00\u7684\u5355\u8BCD\u6570\u9650\u5236","block-display-word-limit-desc":'\u4F7F\u7528\u7A7A\u683C\u5206\u9694\u7684\u8BED\u8A00\uFF08\u5982\u82F1\u8BED "this is a sentence"\uFF09\u5728\u5757\u663E\u793A\u6587\u672C\u4E2D\u663E\u793A\u7684\u6700\u5927\u5355\u8BCD\u6570',"block-display-char-limit":"\u5757\u663E\u793A\u6587\u672C\uFF1ACJK \u7C7B\u8BED\u8A00\u7684\u5B57\u7B26\u6570\u9650\u5236","block-display-char-limit-desc":'\u975E\u82F1\u8BED\u7C7B\u8BED\u8A00\uFF08\u5982\u4E2D\u6587 "\u8FD9\u662F\u4E00\u53E5\u8BDD"\uFF09\u5728\u5757\u663E\u793A\u6587\u672C\u4E2D\u663E\u793A\u7684\u6700\u5927\u5B57\u7B26\u6570\u2014\u2014\u5F53\u7B2C\u4E00\u884C\u5305\u542B\u975EASCII\u5B57\u7B26\u65F6\uFF0C\u4F1A\u91C7\u7528\u6B64\u8BBE\u7F6E\u3002',"enable-display-name-regex":"\u663E\u793A\u540D\u79F0\uFF1A\u6B63\u5219\u66FF\u6362","enable-display-name-regex-desc":"\u542F\u7528\u540E\uFF0C\u5BF9\u590D\u5236\u7684\u6807\u9898/\u7B14\u8BB0\u94FE\u63A5\u7684\u663E\u793A\u6587\u672C\u8FDB\u884C\u6B63\u5219\u67E5\u627E\u66FF\u6362","display-name-regex-from":"\u67E5\u627E\uFF08\u6B63\u5219\uFF09","display-name-regex-from-desc":"\u7528\u4E8E\u5339\u914D\u663E\u793A\u6587\u672C\u7684\u6B63\u5219\u8868\u8FBE\u5F0F\uFF08\u5982 ^\\d+\\.\\s* \u53EF\u53BB\u9664\u5F00\u5934\u7684\u5E8F\u53F7\uFF09","display-name-regex-to":"\u66FF\u6362\u4E3A","display-name-regex-to-desc":"\u66FF\u6362\u5B57\u7B26\u4E32\uFF0C\u652F\u6301\u6355\u83B7\u7EC4\u5F15\u7528\u5982 $1\u3001$2\uFF08\u5982 $1 \u53EA\u4FDD\u7559\u7B2C\u4E00\u4E2A\u6355\u83B7\u7EC4\u7684\u5185\u5BB9\uFF09"},["zh-tw"]:{"auto-add-block-id":"\u81EA\u52D5\u65B0\u589E\u584AID","auto-add-block-id-desc":"\u555F\u7528\u5F8C\uFF0C\u82E5\u6C92\u6709\u53EF\u8907\u88FD\u5167\u5BB9\u6642\uFF0C\u6703\u81EA\u52D5\u5728\u7576\u524D\u6587\u672C\u672B\u5C3E\u65B0\u589E\u4E00\u500B\u96A8\u6A5F\u7684\u584AID\uFF08^xxxx\uFF09","add-extra-commands":"\u6DFB\u52A0\u64F4\u5C55\u547D\u4EE4","add-extra-commands-desc":"\u555F\u7528\u5F8C\uFF0C\u6703\u5728\u547D\u4EE4\u9762\u677F\u4E2D\u65B0\u589E\u300C\u8907\u88FD\u7576\u524D\u7B46\u8A18\u93C8\u63A5\u300D\u548C\u300C\u751F\u6210\u4E26\u8907\u88FD\u7576\u524D\u584A\u93C8\u63A5\u300D\u547D\u4EE4","auto-block-display-text":"\u751F\u6210\u584A\u9023\u7D50\u7684\u986F\u793A\u6587\u672C","auto-block-display-text-desc":"\u555F\u7528\u5F8C\uFF0C\u6703\u81EA\u52D5\u70BA\u751F\u6210\u7684\u584AID\u9023\u7D50\u6DFB\u52A0\u986F\u793A\u6587\u672C","block-display-word-limit":"\u584A\u986F\u793A\u6587\u672C\uFF1A\u82F1\u8A9E\u985E\u8A9E\u8A00\u7684\u55AE\u8A5E\u6578\u9650\u5236","block-display-word-limit-desc":'\u7A7A\u683C\u5206\u9694\u8A9E\u8A00\uFF08\u5982 "this is a sentence"\uFF09\u5728\u584A\u986F\u793A\u6587\u672C\u4E2D\u986F\u793A\u7684\u6700\u5927\u55AE\u8A5E\u6578',"block-display-char-limit":"\u584A\u986F\u793A\u6587\u672C\uFF1ACJK \u985E\u8A9E\u8A00\u7684\u5B57\u7B26\u6578\u9650\u5236","block-display-char-limit-desc":'\u975E\u7A7A\u683C\u5206\u9694\u8A9E\u8A00\uFF08\u5982\u4E2D\u6587 "\u9019\u662F\u4E00\u53E5\u8A71"\uFF09\u5728\u584A\u986F\u793A\u6587\u672C\u4E2D\u986F\u793A\u7684\u6700\u5927\u5B57\u7B26\u6578\u2014\u2014\u7576\u7B2C\u4E00\u884C\u5305\u542B\u975EASCII\u5B57\u7B26\u6642\uFF0C\u6703\u63A1\u7528\u6B64\u8A2D\u7F6E\u3002',"manual-block-id":"\u624B\u52D5\u8F38\u5165\u584AID","manual-block-id-desc":"\u555F\u7528\u5F8C\uFF0C\u53EF\u4EE5\u5728\u5F48\u7A97\u4E2D\u624B\u52D5\u8F38\u5165\u584AID","block-id-insert-position":"\u584AID\u63D2\u5165\u4F4D\u7F6E","block-id-insert-position-desc":"\u9078\u64C7\u751F\u6210\u584AID\u6642\u7684\u63D2\u5165\u4F4D\u7F6E\u3002\u5C0D\u65BC\u4EE3\u78BC\u584A\u548C\u5F15\u7528\u584A\u7B49\u7279\u6B8A\u6BB5\u843D\uFF0C\u81F3\u5C11\u6703\u63D2\u5165\u4E00\u500B\u63DB\u884C\u3002","block-id-end-of-block":"\u7576\u524D\u584A\u7684\u672B\u5C3E","block-id-next-line":"\u7576\u524D\u584A\u7684\u4E0B\u65B9\u4E00\u884C","block-id-next-line-with-gap":"\u7576\u524D\u584A\u7684\u4E0B\u65B9\u5169\u884C\uFF08\u4E2D\u9593\u9694\u4E00\u500B\u7A7A\u884C\uFF09","modal-block-id":"\u8F38\u5165\u584AID","modal-block-id-desc":"\u50C5\u5141\u8A31\u5B57\u6BCD\u3001\u6578\u5B57\u3001\u9023\u5B57\u865F\uFF08-\uFF09\u3001\u5E95\u7DDA\uFF08_\uFF09\uFF0C\u7A7A\u683C\u6703\u81EA\u52D5\u8F49\u70BA\u9023\u5B57\u865F\u3002","error-block-id-empty":"\u584AID \u4E0D\u80FD\u70BA\u7A7A","error-block-id-invalid":"\u53EA\u5141\u8A31\u5B57\u6BCD\u3001\u6578\u5B57\u3001-\u3001_","no-file":"\u7121\u6CD5\u7372\u53D6\u7576\u524D\u6587\u4EF6","no-content":"\u7576\u524D\u5149\u6A19\u8655\u6C92\u6709\u53EF\u8907\u88FD\u7684\u5167\u5BB9","inline-code-copied":"\u884C\u5167\u4EE3\u78BC\u5DF2\u8907\u88FD\uFF01","block-id-copied":"\u584AID\u9023\u7D50\u5DF2\u8907\u88FD\uFF01","note-link-copied":"\u7B46\u8A18\u9023\u7D50\u5DF2\u8907\u88FD\uFF01","heading-copied":"\u6A19\u984C\u9023\u7D50\u5DF2\u8907\u88FD\uFF01","bold-copied":"\u52A0\u7C97\u6587\u672C\u5DF2\u8907\u88FD\uFF01","highlight-copied":"\u9AD8\u4EAE\u6587\u672C\u5DF2\u8907\u88FD\uFF01","italic-copied":"\u659C\u9AD4\u6587\u672C\u5DF2\u8907\u88FD\uFF01","inline-latex-copied":"\u884C\u5167LaTeX\u5DF2\u8907\u88FD\uFF01","strikethrough-copied":"\u522A\u9664\u7DDA\u6587\u672C\u5DF2\u8907\u88FD\uFF01","link-text-copied":"\u9023\u7D50\u6587\u672C\u5DF2\u8907\u88FD\uFF01","link-url-copied":"\u9023\u7D50\u5730\u5740\u5DF2\u8907\u88FD\uFF01","wiki-link-copied":"Wiki\u9023\u7D50\u5DF2\u8907\u88FD\uFF01","callout-copied":"\u6807\u6CE8\u5185\u5BB9\u5DF2\u8907\u88FD\uFF01","note-link-simplified":"\u9023\u7D50\u5DF2\u7C21\u5316\uFF08\u6A94\u6848\u540D\u8207\u6A19\u984C\u76F8\u5339\u914D\uFF09",format:"\u683C\u5F0F","block-id":"\u584AID",target:"\u8907\u88FD\u5C0D\u8C61","add-to-menu":"\u6DFB\u52A0\u5230\u83DC\u55AE","add-to-menu-desc":"\u5C07\u547D\u4EE4\u6DFB\u52A0\u5230\u53F3\u9375\u83DC\u55AE","show-notice":"\u986F\u793A\u901A\u77E5","show-notice-desc":"\u8907\u88FD\u5167\u5BB9\u6642\u986F\u793A\u901A\u77E5\u63D0\u793A","use-heading-as-display":"\u6A19\u984C\u9023\u7D50\uFF1A\u50C5\u4F7F\u7528\u6A19\u984C\u4F5C\u70BA\u986F\u793A\u6587\u672C","use-heading-as-display-desc":"\u5728\u8907\u88FD\u7684\u6A19\u984C\u9023\u7D50\u4E2D\uFF0C\u4F7F\u7528\u6A19\u984C\u6587\u672C\u4F5C\u70BA\u986F\u793A\u6587\u672C","simplified-heading-to-note-link":"\u6A94\u6848\u540D\u5339\u914D\u6A19\u984C\u6642\u7C21\u5316\u9023\u7D50","simplified-heading-to-note-link-desc":"\u7576\u6A94\u6848\u540D\u8207\u6A19\u984C\u6587\u672C\u5339\u914D\u6642\uFF08\u76F8\u540C\u6216\u5305\u542B\uFF09\uFF0C\u76F4\u63A5\u5EFA\u7ACB\u7B46\u8A18\u9023\u7D50\u800C\u4E0D\u662F\u6A19\u984C\u9023\u7D50","strict-heading-match":"\u56B4\u683C\u5339\u914D","strict-heading-match-desc":'\u555F\u7528\u5F8C\uFF0C\u6A94\u6848\u540D\u5FC5\u9808\u8207\u6A19\u984C\u5B8C\u5168\u76F8\u540C\uFF08\u5FFD\u7565\u5927\u5C0F\u5BEB\uFF09\u624D\u6703\u7C21\u5316\u3002\u95DC\u9589\u6642\uFF0C\u6A94\u6848\u540D\u5305\u542B\u6A19\u984C\u4E5F\u6703\u7C21\u5316\uFF08\u5982\u6A94\u6848\u540D "260422_note" \u5339\u914D\u6A19\u984C "note"\uFF09\u3002',"heading-link-separator":"\u6A19\u984C\u9023\u7D50\uFF1A\u6A94\u6848\u540D\u8207\u6A19\u984C\u9593\u7684\u9023\u63A5\u7B26","heading-link-separator-desc":"\u81EA\u5B9A\u7FA9\u6A94\u6848\u540D\u8207\u6A19\u984C\u4E4B\u9593\u7684\u9023\u63A5\u7B26\u865F\uFF08\u50C5\u5728\u7981\u7528\u300C\u4F7F\u7528\u6A19\u984C\u4F5C\u70BA\u986F\u793A\u6587\u672C\u300D\u6642\u986F\u793A\uFF09","link-format":"\u9023\u7D50\u683C\u5F0F","link-format-desc":"\u8907\u88FD\u5404\u7A2E\u9023\u7D50\u6642\u4F7F\u7528\u7684\u683C\u5F0F","link-format-obsidian":"\u8DDF\u96A8 Obsidian \u8A2D\u5B9A","markdown-link":"Markdown\u9023\u7D50","wiki-link":"Wiki\u9023\u7D50","resolve-link-path-on-paste":"\u8CBC\u4E0A\u6642\u89E3\u6790\u9023\u7D50\u8DEF\u5F91","resolve-link-path-on-paste-desc":"\u8CBC\u4E0A\u6642\u6839\u64DA\u76EE\u6A19\u6A94\u6848\u91CD\u65B0\u751F\u6210\u9023\u7D50\u8DEF\u5F91\u3002\u4F7F\u7528\u300C\u8DDF\u96A8 Obsidian \u8A2D\u5B9A\u300D\u6642\uFF0C\u6703\u6CBF\u7528\u8EDF\u9AD4\u8A2D\u5B9A\u4E2D\u7684\u8DEF\u5F91\u98A8\u683C\uFF08\u6700\u77ED/\u76F8\u5C0D/\u7D55\u5C0D\uFF09\uFF1B\u5426\u5247\uFF0C\u50C5\u4F7F\u7528\u6700\u77ED\u552F\u4E00\u8DEF\u5F91\u3002","resolve-link-path-on-paste-tooltip":"\u8D8A\u65E9\u8F09\u5165\u7684\u5916\u639B\u8D8A\u5148\u8655\u7406\u8CBC\u4E0A\u4E8B\u4EF6\u3002\u82E5\u5176\u4ED6\u5916\u639B\uFF08\u5982 Linter\uFF09\u6436\u5148\u8655\u7406\uFF0C\u672C\u529F\u80FD\u6703\u88AB\u7565\u904E\u3002\u53EF\u5728 community-plugins.json \u6A94\u6848\u4E2D\u8ABF\u6574\u5916\u639B\u8F09\u5165\u9806\u5E8F\u3002","customize-targets":"\u81EA\u5B9A\u7FA9\u8907\u88FD\u5C0D\u8C61","customize-targets-desc":"\u555F\u7528\u5F8C\u53EF\u4EE5\u81EA\u5B9A\u7FA9\u54EA\u4E9B\u5143\u7D20\u53EF\u4EE5\u88AB\u8907\u88FD\uFF08\u4E0D\u555F\u7528\u5247\u9ED8\u8BA4\u53EF\u8907\u88FD\u6240\u6709\u5143\u7D20\uFF09","enable-inline-code":"\u555F\u7528\u884C\u5167\u4EE3\u78BC","enable-inline-code-desc":"\u555F\u7528\u8907\u88FD\u884C\u5167\u4EE3\u78BC\uFF0C\u5982 `\u4EE3\u78BC\u793A\u4F8B`","enable-bold":"\u555F\u7528\u52A0\u7C97\u6587\u672C","enable-bold-desc":"\u555F\u7528\u8907\u88FD\u52A0\u7C97\u6587\u672C\uFF0C\u5982 **\u52A0\u7C97\u793A\u4F8B**","enable-highlight":"\u555F\u7528\u9AD8\u4EAE\u6587\u672C","enable-highlight-desc":"\u555F\u7528\u8907\u88FD\u9AD8\u4EAE\u6587\u672C\uFF0C\u5982 ==\u9AD8\u4EAE\u793A\u4F8B==","enable-italic":"\u555F\u7528\u659C\u9AD4\u6587\u672C","enable-italic-desc":"\u555F\u7528\u8907\u88FD\u659C\u9AD4\u6587\u672C\uFF0C\u5982 *\u659C\u9AD4\u793A\u4F8B*","enable-strikethrough":"\u555F\u7528\u522A\u9664\u7DDA\u6587\u672C","enable-strikethrough-desc":"\u555F\u7528\u8907\u88FD\u522A\u9664\u7DDA\u6587\u672C\uFF0C\u5982 ~~\u522A\u9664\u7DDA\u793A\u4F8B~~","enable-inline-latex":"\u555F\u7528\u884C\u5167LaTeX","enable-inline-latex-desc":"\u555F\u7528\u8907\u88FD\u884C\u5167LaTeX\uFF0C\u5982 $latex \u793A\u4F8B$","enable-link":"\u555F\u7528\u9023\u7D50\u6587\u672C","enable-link-desc":"\u555F\u7528\u8907\u88FD Markdown \u9023\u7D50","enable-wikilink":"\u555F\u7528 Wiki \u9023\u7D50","enable-wikilink-desc":"\u555F\u7528\u8907\u88FD [[Wiki]] \u9023\u7D50","special-format":"\u7279\u6B8A\u8907\u88FD\u683C\u5F0F\u9078\u9805","auto-embed-block-link":"\u584A\u9023\u7D50\uFF1A\u81EA\u52D5\u6DFB\u52A0 ! \u7B26\u865F\uFF08\u5D4C\u5165\u584A\uFF09","auto-embed-block-link-desc":"\u8907\u88FD\u584A\u9023\u7D50\u6642\u81EA\u52D5\u5728\u524D\u9762\u6DFB\u52A0 !\uFF0C\u7528\u65BC\u5D4C\u5165\u584A","enable-callout-copy":"\u8907\u88FD\u6A19\u8A3B\u5167\u6587\u672C","enable-callout-copy-desc":'\u7576\u6E38\u6A19\u5728 ">" \u6A19\u8A3B\u584A\u5167\u6642\uFF0C\u8907\u88FD\u8A72\u6A19\u8A3B\u7684\u7D14\u6587\u672C\u5167\u5BB9',"callout-copy-priority":"\u512A\u5148\u8907\u88FD\u6A19\u8A3B\u5167\u5BB9","callout-copy-priority-desc":"\u7576\u6E38\u6A19\u4F4D\u65BC\u6A19\u8A3B\u5167\u6642\uFF0C\u512A\u5148\u8907\u88FD\u6A19\u8A3B\u5167\u5BB9\u800C\u4E0D\u662F\u751F\u6210\u8A72\u6A19\u8A3B\u7684\u584AID\u9023\u7D50","code-block-behavior":"\u4EE3\u78BC\u584A\u8907\u88FD\u884C\u70BA","code-block-behavior-desc":"\u7576\u6E38\u6A19\u4F4D\u65BC\u4EE3\u78BC\u584A\uFF08``` ... ```\uFF09\u5167\u6642\u7684\u8907\u88FD\u884C\u70BA","code-block":"\u4EE3\u78BC\u584A","code-block-copy-content":"\u8907\u88FD\u7D14\u6587\u672C","code-block-copy-with-fences":"\u8907\u88FD\u4EE3\u78BC\u584A\uFF08\u542B ```\uFF09","code-block-generate-block-link":"\u751F\u6210\u584A\u9023\u7D50","code-block-disabled":"\u7981\u7528","code-block-copied":"\u4EE3\u78BC\u584A\u5DF2\u8907\u88FD\uFF01","keep-wiki-brackets":"Wiki\u9023\u7D50\uFF1A\u4FDD\u7559 [[ ]] \u62EC\u865F","keep-wiki-brackets-desc":"\u8907\u88FD wiki \u9023\u7D50\u6642\u4FDD\u7559\u5169\u5074 [[ ]] \u62EC\u865F","contextual-copy":"\u667A\u80FD\u8907\u88FD","copy-current-file-link":"\u8907\u88FD\u7576\u524D\u6587\u4EF6\u9023\u7D50","generate-current-block-link-auto":"\u8907\u88FD\u7576\u524D\u584A\u9023\u7D50\uFF08\u81EA\u52D5\u751F\u6210ID\uFF09","generate-current-block-link-manual":"\u8907\u88FD\u7576\u524D\u584A\u9023\u7D50\uFF08\u624B\u52D5\u8F38\u5165ID\uFF09","file-link-copied":"\u7576\u524D\u6587\u4EF6\u9023\u7D50\u5DF2\u8907\u88FD\uFF01","use-frontmatter-as-display":"\u7B46\u8A18\u9023\u7D50\uFF1A\u4F7F\u7528\u7279\u5B9A\u5C6C\u6027\u4F5C\u70BA\u986F\u793A\u6587\u672C","use-frontmatter-as-display-desc":"\u555F\u7528\u5F8C\uFF0C\u4F7F\u7528\u6307\u5B9A\u7684\u7B46\u8A18\u5C6C\u6027\u7684\u503C\u4F5C\u70BA\u7B46\u8A18\u9023\u7D50\u7684\u986F\u793A\u6587\u672C","frontmatter-key":"\u7B46\u8A18\u5C6C\u6027\u540D","frontmatter-key-desc":"\u7528\u65BC\u986F\u793A\u6587\u672C\u7684\u7B46\u8A18\u5C6C\u6027\u540D\uFF08\u9ED8\u8A8D\uFF1Atitle\uFF09","enable-display-name-regex":"\u986F\u793A\u540D\u7A31\uFF1A\u6B63\u898F\u8868\u793A\u5F0F\u66FF\u63DB","enable-display-name-regex-desc":"\u555F\u7528\u5F8C\uFF0C\u5C0D\u8907\u88FD\u7684\u6A19\u984C/\u7B46\u8A18\u9023\u7D50\u7684\u986F\u793A\u6587\u672C\u9032\u884C\u6B63\u898F\u8868\u793A\u5F0F\u67E5\u627E\u66FF\u63DB","display-name-regex-from":"\u67E5\u627E\uFF08\u6B63\u5247\uFF09","display-name-regex-from-desc":"\u7528\u65BC\u5339\u914D\u986F\u793A\u6587\u672C\u7684\u6B63\u898F\u8868\u793A\u5F0F\uFF08\u5982 ^\\d+\\.\\s* \u53EF\u53BB\u9664\u958B\u982D\u7684\u5E8F\u865F\uFF09","display-name-regex-to":"\u66FF\u63DB\u70BA","display-name-regex-to-desc":"\u66FF\u63DB\u5B57\u7B26\u4E32\uFF0C\u652F\u6301\u6355\u7372\u7D44\u5F15\u7528\u5982 $1\u3001$2"}},S=class{constructor(c="en"){this.language=c}setLanguage(c){this.language=c}t(c){return R[this.language][c]||R["en"][c]||c}};var K={useFrontmatterAsDisplay:!1,frontmatterKey:"title",addToMenu:!0,addExtraCommands:!0,showNotice:!0,useHeadingAsDisplayText:!0,headingLinkSeparator:"#",simplifiedHeadingToNoteLink:!0,strictHeadingMatch:!1,linkFormat:"obsidian",resolveLinkPathOnPaste:!1,customizeTargets:!1,enableInlineCode:!0,enableBold:!0,enableHighlight:!0,enableItalic:!0,enableStrikethrough:!0,enableInlineLatex:!0,enableLink:!0,enableWikiLink:!0,keepWikiBrackets:!0,autoEmbedBlockLink:!1,enableCalloutCopy:!0,calloutCopyPriority:!0,codeBlockBehavior:"copy-content",autoAddBlockId:!1,allowManualBlockId:!1,blockIdInsertPosition:"end-of-block",autoBlockDisplayText:!0,blockDisplayWordLimit:3,blockDisplayCharLimit:5,enableDisplayNameRegex:!1,displayNameRegexFrom:"",displayNameRegexTo:""};var L=require("obsidian"),$=le(require("obsidian"));function C(t,c){if((0,L.requireApiVersion)("1.11.0")){let e=$.SettingGroup;if(e){let l=c?new e(t).setHeading(c):new e(t);return{addSetting(s){l.addSetting(s)}}}}return c&&t.createDiv("setting-group-heading").createEl("h3",{text:c}),{addSetting(e){let l=new L.Setting(t);e(l)}}}var B=class extends L.PluginSettingTab{constructor(e,l){super(e,l);this.icon="copy-plus";this.plugin=l}display(){let{containerEl:e}=this;e.empty();let l=C(e);l.addSetting(i=>i.setName(this.plugin.t("add-to-menu")).setDesc(this.plugin.t("add-to-menu-desc")).addToggle(n=>n.setValue(this.plugin.settings.addToMenu).onChange(a=>{this.plugin.settings.addToMenu=a,this.plugin.saveSettings()}))),l.addSetting(i=>i.setName(this.plugin.t("add-extra-commands")).setDesc(this.plugin.t("add-extra-commands-desc")).addToggle(n=>n.setValue(this.plugin.settings.addExtraCommands).onChange(a=>{this.plugin.settings.addExtraCommands=a,this.plugin.saveSettings()}))),l.addSetting(i=>i.setName(this.plugin.t("show-notice")).setDesc(this.plugin.t("show-notice-desc")).addToggle(n=>n.setValue(this.plugin.settings.showNotice).onChange(a=>{this.plugin.settings.showNotice=a,this.plugin.saveSettings()})));let s=C(e,this.plugin.t("format"));s.addSetting(i=>i.setName(this.plugin.t("link-format")).setDesc(this.plugin.t("link-format-desc")).addDropdown(n=>n.addOption("obsidian",this.plugin.t("link-format-obsidian")).addOption("markdown-link",this.plugin.t("markdown-link")).addOption("wiki-link",this.plugin.t("wiki-link")).setValue(this.plugin.settings.linkFormat).onChange(a=>{this.plugin.settings.linkFormat=a,this.plugin.saveSettings(),this.plugin.syncPasteHandlerRegistration(),this.display()}))),s.addSetting(i=>{let n=activeDocument.createDocumentFragment();n.append(this.plugin.t("resolve-link-path-on-paste-desc")+" ");let a=n.createEl("span",{attr:{"aria-label":this.plugin.t("resolve-link-path-on-paste-tooltip"),class:"clickable-icon setting-editor-extra-setting-button",style:"display:inline; vertical-align:middle; cursor:help;"}});(0,L.setIcon)(a,"info"),i.setName(this.plugin.t("resolve-link-path-on-paste")).setDesc(n).addToggle(p=>p.setValue(this.plugin.settings.resolveLinkPathOnPaste).onChange(k=>{this.plugin.settings.resolveLinkPathOnPaste=k,this.plugin.saveSettings(),this.plugin.syncPasteHandlerRegistration()}))}),s.addSetting(i=>i.setName(this.plugin.t("use-heading-as-display")).setDesc(this.plugin.t("use-heading-as-display-desc")).addToggle(n=>n.setValue(this.plugin.settings.useHeadingAsDisplayText).onChange(a=>{this.plugin.settings.useHeadingAsDisplayText=a,this.plugin.saveSettings(),this.display()}))),this.plugin.settings.useHeadingAsDisplayText||s.addSetting(i=>i.setName(this.plugin.t("heading-link-separator")).setDesc(this.plugin.t("heading-link-separator-desc")).addText(n=>n.setPlaceholder("#").setValue(this.plugin.settings.headingLinkSeparator).onChange(a=>{this.plugin.settings.headingLinkSeparator=a||"#",this.plugin.saveSettings()}))),s.addSetting(i=>i.setName(this.plugin.t("simplified-heading-to-note-link")).setDesc(this.plugin.t("simplified-heading-to-note-link-desc")).addToggle(n=>n.setValue(this.plugin.settings.simplifiedHeadingToNoteLink).onChange(a=>{this.plugin.settings.simplifiedHeadingToNoteLink=a,this.plugin.saveSettings(),this.display()}))),this.plugin.settings.simplifiedHeadingToNoteLink&&s.addSetting(i=>i.setName(this.plugin.t("strict-heading-match")).setDesc(this.plugin.t("strict-heading-match-desc")).addToggle(n=>n.setValue(this.plugin.settings.strictHeadingMatch).onChange(a=>{this.plugin.settings.strictHeadingMatch=a,this.plugin.saveSettings()}))),s.addSetting(i=>i.setName(this.plugin.t("use-frontmatter-as-display")).setDesc(this.plugin.t("use-frontmatter-as-display-desc")).addToggle(n=>n.setValue(this.plugin.settings.useFrontmatterAsDisplay).onChange(a=>{this.plugin.settings.useFrontmatterAsDisplay=a,this.plugin.saveSettings(),this.display()}))),this.plugin.settings.useFrontmatterAsDisplay&&s.addSetting(i=>i.setName(this.plugin.t("frontmatter-key")).setDesc(this.plugin.t("frontmatter-key-desc")).addText(n=>n.setPlaceholder("title").setValue(this.plugin.settings.frontmatterKey).onChange(a=>{this.plugin.settings.frontmatterKey=a||"title",this.plugin.saveSettings()}))),C(e,this.plugin.t("code-block")).addSetting(i=>i.setName(this.plugin.t("code-block-behavior")).setDesc(this.plugin.t("code-block-behavior-desc")).addDropdown(n=>n.addOption("copy-content",this.plugin.t("code-block-copy-content")).addOption("copy-with-fences",this.plugin.t("code-block-copy-with-fences")).addOption("generate-block-link",this.plugin.t("code-block-generate-block-link")).addOption("disabled",this.plugin.t("code-block-disabled")).setValue(this.plugin.settings.codeBlockBehavior).onChange(a=>{this.plugin.settings.codeBlockBehavior=a,this.plugin.saveSettings()})));let o=C(e,this.plugin.t("block-id"));o.addSetting(i=>i.setName(this.plugin.t("auto-add-block-id")).setDesc(this.plugin.t("auto-add-block-id-desc")).addToggle(n=>n.setValue(this.plugin.settings.autoAddBlockId).onChange(a=>{this.plugin.settings.autoAddBlockId=a,this.plugin.saveSettings(),this.display()}))),this.plugin.settings.autoAddBlockId&&o.addSetting(i=>i.setName(this.plugin.t("block-id-insert-position")).setDesc(this.plugin.t("block-id-insert-position-desc")).addDropdown(n=>n.addOption("end-of-block",this.plugin.t("block-id-end-of-block")).addOption("next-line",this.plugin.t("block-id-next-line")).setValue(this.plugin.settings.blockIdInsertPosition).onChange(a=>{this.plugin.settings.blockIdInsertPosition=a,this.plugin.saveSettings()}))),this.plugin.settings.autoAddBlockId&&o.addSetting(i=>i.setName(this.plugin.t("manual-block-id")).setDesc(this.plugin.t("manual-block-id-desc")).addToggle(n=>n.setValue(this.plugin.settings.allowManualBlockId).onChange(a=>{this.plugin.settings.allowManualBlockId=a,this.plugin.saveSettings()}))),o.addSetting(i=>i.setName(this.plugin.t("auto-block-display-text")).setDesc(this.plugin.t("auto-block-display-text-desc")).addToggle(n=>n.setValue(this.plugin.settings.autoBlockDisplayText).onChange(a=>{this.plugin.settings.autoBlockDisplayText=a,this.plugin.saveSettings(),this.display()}))),this.plugin.settings.autoBlockDisplayText&&(o.addSetting(i=>i.setName(this.plugin.t("block-display-word-limit")).setDesc(this.plugin.t("block-display-word-limit-desc")).addText(n=>n.setPlaceholder("3").setValue(String(this.plugin.settings.blockDisplayWordLimit)).onChange(a=>{let p=parseInt(a)||3;this.plugin.settings.blockDisplayWordLimit=Math.max(1,p),this.plugin.saveSettings()}))),o.addSetting(i=>i.setName(this.plugin.t("block-display-char-limit")).setDesc(this.plugin.t("block-display-char-limit-desc")).addText(n=>n.setPlaceholder("5").setValue(String(this.plugin.settings.blockDisplayCharLimit)).onChange(a=>{let p=parseInt(a)||5;this.plugin.settings.blockDisplayCharLimit=Math.max(1,p),this.plugin.saveSettings()}))));let r=C(e,this.plugin.t("target"));r.addSetting(i=>i.setName(this.plugin.t("customize-targets")).setDesc(this.plugin.t("customize-targets-desc")).addToggle(n=>n.setValue(this.plugin.settings.customizeTargets).onChange(a=>{this.plugin.settings.customizeTargets=a,this.plugin.saveSettings(),this.display()}))),this.plugin.settings.customizeTargets&&(r.addSetting(i=>i.setName(this.plugin.t("enable-inline-code")).setDesc(this.plugin.t("enable-inline-code-desc")).addToggle(n=>n.setValue(this.plugin.settings.enableInlineCode).onChange(a=>{this.plugin.settings.enableInlineCode=a,this.plugin.saveSettings()}))),r.addSetting(i=>i.setName(this.plugin.t("enable-bold")).setDesc(this.plugin.t("enable-bold-desc")).addToggle(n=>n.setValue(this.plugin.settings.enableBold).onChange(a=>{this.plugin.settings.enableBold=a,this.plugin.saveSettings()}))),r.addSetting(i=>i.setName(this.plugin.t("enable-highlight")).setDesc(this.plugin.t("enable-highlight-desc")).addToggle(n=>n.setValue(this.plugin.settings.enableHighlight).onChange(a=>{this.plugin.settings.enableHighlight=a,this.plugin.saveSettings()}))),r.addSetting(i=>i.setName(this.plugin.t("enable-italic")).setDesc(this.plugin.t("enable-italic-desc")).addToggle(n=>n.setValue(this.plugin.settings.enableItalic).onChange(a=>{this.plugin.settings.enableItalic=a,this.plugin.saveSettings()}))),r.addSetting(i=>i.setName(this.plugin.t("enable-strikethrough")).setDesc(this.plugin.t("enable-strikethrough-desc")).addToggle(n=>n.setValue(this.plugin.settings.enableStrikethrough).onChange(a=>{this.plugin.settings.enableStrikethrough=a,this.plugin.saveSettings()}))),r.addSetting(i=>i.setName(this.plugin.t("enable-inline-latex")).setDesc(this.plugin.t("enable-inline-latex-desc")).addToggle(n=>n.setValue(this.plugin.settings.enableInlineLatex).onChange(a=>{this.plugin.settings.enableInlineLatex=a,this.plugin.saveSettings()}))),r.addSetting(i=>i.setName(this.plugin.t("enable-link")).setDesc(this.plugin.t("enable-link-desc")).addToggle(n=>n.setValue(this.plugin.settings.enableLink).onChange(a=>{this.plugin.settings.enableLink=a,this.plugin.saveSettings()}))),r.addSetting(i=>i.setName(this.plugin.t("enable-wikilink")).setDesc(this.plugin.t("enable-wikilink-desc")).addToggle(n=>{var a;return n.setValue((a=this.plugin.settings.enableWikiLink)!=null?a:!0).onChange(p=>{this.plugin.settings.enableWikiLink=p,this.plugin.saveSettings(),this.display()})}))),r.addSetting(i=>i.setName(this.plugin.t("enable-callout-copy")).setDesc(this.plugin.t("enable-callout-copy-desc")).addToggle(n=>{var a;return n.setValue((a=this.plugin.settings.enableCalloutCopy)!=null?a:!0).onChange(p=>{this.plugin.settings.enableCalloutCopy=p,this.plugin.saveSettings(),this.display()})})),this.plugin.settings.enableCalloutCopy&&r.addSetting(i=>i.setName(this.plugin.t("callout-copy-priority")).setDesc(this.plugin.t("callout-copy-priority-desc")).addToggle(n=>{var a;return n.setValue((a=this.plugin.settings.calloutCopyPriority)!=null?a:!0).onChange(p=>{this.plugin.settings.calloutCopyPriority=p,this.plugin.saveSettings()})}));let g=C(e,this.plugin.t("special-format"));g.addSetting(i=>i.setName(this.plugin.t("auto-embed-block-link")).setDesc(this.plugin.t("auto-embed-block-link-desc")).addToggle(n=>{var a;return n.setValue((a=this.plugin.settings.autoEmbedBlockLink)!=null?a:!1).onChange(p=>{this.plugin.settings.autoEmbedBlockLink=p,this.plugin.saveSettings()})})),this.plugin.settings.enableWikiLink&&g.addSetting(i=>i.setName(this.plugin.t("keep-wiki-brackets")).setDesc(this.plugin.t("keep-wiki-brackets-desc")).addToggle(n=>{var a;return n.setValue((a=this.plugin.settings.keepWikiBrackets)!=null?a:!0).onChange(p=>{this.plugin.settings.keepWikiBrackets=p,this.plugin.saveSettings()})})),g.addSetting(i=>i.setName(this.plugin.t("enable-display-name-regex")).setDesc(this.plugin.t("enable-display-name-regex-desc")).addToggle(n=>{var a;return n.setValue((a=this.plugin.settings.enableDisplayNameRegex)!=null?a:!1).onChange(p=>{this.plugin.settings.enableDisplayNameRegex=p,this.plugin.saveSettings(),this.display()})})),this.plugin.settings.enableDisplayNameRegex&&(g.addSetting(i=>i.setName(this.plugin.t("display-name-regex-from")).setDesc(this.plugin.t("display-name-regex-from-desc")).addText(n=>{var a;return n.setPlaceholder("e.g. ^\\d+\\.\\s*").setValue((a=this.plugin.settings.displayNameRegexFrom)!=null?a:"").onChange(p=>{this.plugin.settings.displayNameRegexFrom=p,this.plugin.saveSettings()})})),g.addSetting(i=>i.setName(this.plugin.t("display-name-regex-to")).setDesc(this.plugin.t("display-name-regex-to-desc")).addText(n=>{var a;return n.setPlaceholder("e.g. $1").setValue((a=this.plugin.settings.displayNameRegexTo)!=null?a:"").onChange(p=>{this.plugin.settings.displayNameRegexTo=p,this.plugin.saveSettings()})})))}};var _=require("obsidian"),F=class extends _.Modal{constructor(e,l,s,d,o){super(e);this.onSubmit=o,this.title=l,this.desc=s,this.t=d}onOpen(){let{contentEl:e}=this;e.empty(),this.setTitle(this.title),this.inputEl=e.createEl("input",{type:"text",placeholder:"Block ID...",cls:"blockid-modal-input"}),this.inputEl.focus(),e.createEl("div",{text:this.desc,cls:"blockid-modal-desc"}),this.errorEl=e.createEl("div",{text:"",cls:"blockid-modal-error"}),this.inputEl.addEventListener("keydown",l=>{l.key==="Enter"?(l.preventDefault(),l.stopPropagation(),this.submit()):l.key==="Escape"&&(l.preventDefault(),l.stopPropagation(),this.close(),this.onSubmit(null))})}submit(){let e=this.inputEl.value.trim();if(!e){this.errorEl.textContent=this.t("error-block-id-empty");return}if(!/^[-_a-zA-Z0-9\s]+$/.test(e)){this.errorEl.textContent=this.t("error-block-id-invalid");return}e=e.replace(/\s+/g,"-").replace(/[^a-zA-Z0-9\-_]/g,""),this.close(),this.onSubmit(e)}};function ge(t){let e=t.trimStart().match(/^(`{3,})/);return e?e[1].length:0}function P(t,c){let l=t.trimStart().match(/^(`+)\s*$/);return l?l[1].length>=c:!1}function V(t,c,e){if(e==="disabled")return null;let l=t.length,s=[];for(let n=0;n<=c;n++){let a=ge(t[n]);if(a!==0)if(s.length===0)s.push({fenceStart:n,openLen:a});else{let{openLen:p}=s[s.length-1];P(t[n],p)?s.pop():P(t[n],a)||s.push({fenceStart:n,openLen:a})}}if(s.length===0)return null;let{fenceStart:d,openLen:o}=s[s.length-1];if(d===c)return null;let r=-1;for(let n=d+1;n<l;n++)if(P(t[n],o)){r=n;break}if(r===-1||c>=r||e==="generate-block-link")return null;let g=[];for(let n=d+1;n<r;n++)g.push(t[n]);let i=t[c];if(e==="copy-with-fences"){let n=[t[d],...g,t[r]].join(`
`);return{type:"code-block",curLine:i,match:n,range:null}}return{type:"code-block",curLine:i,match:g.join(`
`),range:null}}function D(t){return t.replace(/ /g,"%20")}function M(t){return t.startsWith("[[")&&t.endsWith("]]")?t.slice(2,-2):t}function E(t){return t.replace(/\s*(?:%%|\[\[|]]|[#|^:])\s*/g," ").replace(/ {2,}/g," ").trim()}function pe(t){if(t.useHeadingAsDisplayText)return t.heading;let c=t.headingLinkSeparator||"#";return`${t.frontmatterTitle||t.filename}${c}${t.heading}`}function he(t){if(!t.simplifiedHeadingToNoteLink||!t.useHeadingAsDisplayText||!t.selectedHeading)return!1;let c=(e,l)=>t.strictHeadingMatch?e.toLowerCase()===l.toLowerCase():e.toLowerCase()===l.toLowerCase()||e.toLowerCase().includes(l.toLowerCase());return t.filename===t.selectedHeading||c(t.filename,t.selectedHeading)||c(t.filename,t.selectedHeading.replace(/\s+/g,""))}function ue(t){return t.wikiExactMatch||t.displayText===t.linkContent?`[[${t.linkContent}]]`:`[[${t.linkContent}|${t.displayText}]]`}function ke(t){return`[${t.displayText}](${D(t.linkContent)})`}function z(t){var g;let c=M(t.heading),e=pe({heading:c,filename:t.filename,frontmatterTitle:t.frontmatterTitle,useHeadingAsDisplayText:t.useHeadingAsDisplayText,headingLinkSeparator:t.headingLinkSeparator});if(t.enableDisplayNameRegex&&t.displayNameRegexFrom)try{let i=new RegExp(t.displayNameRegexFrom,"gm"),n=(g=t.displayNameRegexTo)!=null?g:"";e=e.replace(i,n)}catch(i){console.warn("[Easy Copy] Invalid display name regex:",i)}let l=he({simplifiedHeadingToNoteLink:t.simplifiedHeadingToNoteLink,useHeadingAsDisplayText:t.useHeadingAsDisplayText,selectedHeading:c,filename:t.filename,strictHeadingMatch:t.strictHeadingMatch}),s=t.linkFormat==="wiki-link"&&t.simplifiedHeadingToNoteLink&&t.filename===c,d=l||s,o=d?t.filename:`${t.filename}#${E(c)}`;return{link:t.linkFormat==="wiki-link"?ue({linkContent:o,displayText:e,wikiExactMatch:s}):ke({linkContent:o,displayText:e}),isNoteLink:d}}function O(t,c,e,l){let s=t;if(s=s.replace(/\^.*\s*$/,""),s=s.trim().replace(/- \[.\]\s+/,"").replace("- ","").replace(/=|\*|\[|\]|\(|\)|`|>\s+/g,""),!s)return c;if(/^[a-zA-Z\s,.!?"()[\]_^-~:;0-9]*$/.test(s)){let r=e||3;return s.trim().split(" ").slice(0,r).join(" ")}let o=l||5;if(s.length>o){let r=s.trim().match(/(\S+?)[~,.\-=[,。?!…:\n\s]/),g=r?r[1]:s;return g.length>o?g.slice(0,o)+"...":g.length<3?s.slice(0,o):g}return s}function G(t){let{blockId:c,filename:e,useBrief:l,firstLine:s,linkFormat:d,autoBlockDisplayText:o,autoEmbedBlockLink:r,blockDisplayWordLimit:g,blockDisplayCharLimit:i}=t,n=c;l&&s&&(n=O(s,c,g,i));let a;return o?a=d==="wiki-link"?`[[${e}#^${c}|${n}]]`:`[${n}](${D(e)}#^${c})`:a=d==="wiki-link"?`[[${e}#^${c}]]`:`[](${D(e)}#^${c})`,r&&(a="!"+a),a}function U(t){let c=t.sameFile?t.subpath:`${t.path}${t.subpath}`,e=t.omitAlias?"":t.alias;return t.format==="wiki-link"?e?`[[${c}|${e}]]`:`[[${c}]]`:`[${e||t.alias||""}](${D(c)})`}function X(t){let{filename:c,linkFormat:e}=t,l=t.displayText||c;if(e==="wiki-link")return`[[${c}|${l}]]`;let s=t.filePath.replace(/\\/g,"/");return s.endsWith(".md")&&(s=s.slice(0,-3)),`[${l}](${D(s)})`}function Z(t){let{clipboardText:c,sourceFilePath:e,blockId:l,useBrief:s,firstLine:d,autoBlockDisplayText:o,autoEmbedBlockLink:r,blockDisplayWordLimit:g,blockDisplayCharLimit:i}=t,n=l;return s&&d&&(n=O(d,l,g,i)),o||(n=""),{clipboardText:c,sourceFilePath:e,subpath:`#^${l}`,alias:n,isEmbed:r,timestamp:Date.now()}}function j(t){let{clipboardText:c,sourceFilePath:e,heading:l,filename:s,frontmatterTitle:d,useHeadingAsDisplayText:o,headingLinkSeparator:r,isNoteLink:g}=t,i=M(l),n=i;return o||(n=`${d||s}${r||"#"}${i}`),g&&s===i&&(n=""),{clipboardText:c,sourceFilePath:e,subpath:g?"":`#${E(i)}`,alias:n,isEmbed:!1,timestamp:Date.now()}}function Y(t){return{clipboardText:t.clipboardText,sourceFilePath:t.sourceFilePath,subpath:"",alias:t.displayText||"",isEmbed:!1,timestamp:Date.now()}}function q(t){return t.resolveLinkPathOnPaste}function J(t){return t.defaultPrevented||!t.resolveLinkPathOnPaste||!t.lastCopyMeta?"skip":t.now-t.lastCopyMeta.timestamp>t.ttlMs||t.clipboardText!==t.lastCopyMeta.clipboardText?"reset-and-skip":"rewrite"}function Q(t){return t.effectiveLinkFormat!=="wiki-link"||t.sourceFilePath!==t.destFilePath||!t.subpath||!t.alias||!t.useHeadingAsDisplayText||t.subpath.startsWith("#^")?!1:t.subpath===`#${E(t.alias)}`}var me=5*60*1e3,H=class extends h.Plugin{constructor(){super(...arguments);this.lastCopyMeta=null;this.pasteEventRef=null}async onload(){await this.loadSettings(),this.initializeI18n(),this.addCommand({id:"contextual-copy",name:this.t("contextual-copy"),icon:"copy-plus",editorCallback:(e,l)=>{this.contextualCopy(e,l)}}),this.settings.addExtraCommands&&(this.addCommand({id:"copy-current-file-link",name:this.t("copy-current-file-link"),icon:"clipboard-copy",callback:()=>{this.copyCurrentFileLink()}}),this.addCommand({id:"generate-current-block-link-auto",name:this.t("generate-current-block-link-auto"),icon:"clipboard-pen",editorCallback:(e,l)=>{let s=l.file;if(!s){new h.Notice(this.t("no-file"));return}let d=s.basename;this.insertBlockIdAndCopyLink(e,d,!1)}}),this.addCommand({id:"generate-current-block-link-manual",name:this.t("generate-current-block-link-manual"),icon:"clipboard-pen-line",editorCallback:(e,l)=>{let s=l.file;if(!s){new h.Notice(this.t("no-file"));return}let d=s.basename;this.insertBlockIdAndCopyLink(e,d,!0)}})),this.addSettingTab(new B(this.app,this)),this.registerEvent(this.app.workspace.on("editor-menu",(e,l,s)=>{this.settings.addToMenu&&e.addItem(d=>{d.setTitle(this.t("contextual-copy")).setIcon("copy-slash").onClick(async()=>{this.contextualCopy(l,s)})})})),this.registerDomEvent(activeDocument,"copy",()=>{this.lastCopyMeta=null}),this.syncPasteHandlerRegistration()}syncPasteHandlerRegistration(){q(this.settings)?this.registerPasteHandler():this.unregisterPasteHandler()}registerPasteHandler(){this.pasteEventRef||(this.pasteEventRef=this.app.workspace.on("editor-paste",(e,l,s)=>{if(e.defaultPrevented)return;this.handlePaste(e,l,s)&&e.preventDefault()}),this.registerEvent(this.pasteEventRef))}unregisterPasteHandler(){this.pasteEventRef&&(this.app.workspace.offref(this.pasteEventRef),this.pasteEventRef=null,this.lastCopyMeta=null)}onunload(){}async loadSettings(){this.settings=Object.assign({},K,await this.loadData())}async saveSettings(){await this.saveData(this.settings)}handlePaste(e,l,s){var n;let d=(n=e.clipboardData)==null?void 0:n.getData("text/plain");if(e.defaultPrevented&&this.lastCopyMeta&&d===this.lastCopyMeta.clipboardText)return console.log("[Easy Copy] Paste event was already handled by another plugin. Link path resolution skipped. You can adjust plugin load order in the community-plugins.json file inside your vault's config folder ("+this.app.vault.configDir+")."),!1;let o=J({defaultPrevented:e.defaultPrevented,resolveLinkPathOnPaste:this.settings.resolveLinkPathOnPaste,lastCopyMeta:this.lastCopyMeta,clipboardText:d,now:Date.now(),ttlMs:me});if(o==="reset-and-skip")return this.lastCopyMeta=null,!1;if(o==="skip")return!1;let r=this.lastCopyMeta,g=s.file;if(!g||r.subpath===""&&r.sourceFilePath===g.path)return!1;let i=this.app.vault.getAbstractFileByPath(r.sourceFilePath);if(!(i instanceof h.TFile))return!1;try{let a=this.getEffectiveLinkFormat(),p=Q({effectiveLinkFormat:a,sourceFilePath:r.sourceFilePath,destFilePath:g.path,subpath:r.subpath,alias:r.alias,useHeadingAsDisplayText:this.settings.useHeadingAsDisplayText}),k;if(this.settings.linkFormat==="obsidian"){let m=p?void 0:r.alias||void 0;k=this.app.fileManager.generateMarkdownLink(i,g.path,r.subpath||void 0,m)}else{let m=this.app.metadataCache.fileToLinktext(i,g.path,!0);k=U({format:a,path:m,subpath:r.subpath,alias:r.alias,sameFile:r.sourceFilePath===g.path,omitAlias:p})}return r.isEmbed&&(k="!"+k),k!==d?(l.replaceSelection(k),!0):!1}catch(a){return!1}}t(e){return this.i18n.t(e)}isContinuousText(e){return e.trim()!==""&&!e.trim().startsWith("#")&&!e.trim().startsWith("- ")}detectCodeBlock(e){let l=e.getCursor().line,s=e.lineCount(),d=[];for(let o=0;o<s;o++)d.push(e.getLine(o));return V(d,l,this.settings.codeBlockBehavior)}detectBlockRange(e,l){if(e.getLine(l).trim().startsWith("- ")){let r=l;for(;r<e.lineCount()-1&&this.isContinuousText(e.getLine(r+1));)r++;return{start:l,end:r}}let s=e.lineCount(),d=l;for(;d>0&&this.isContinuousText(e.getLine(d-1));)d--;let o=l;for(;o<s-1&&this.isContinuousText(e.getLine(o+1));)o++;return{start:d,end:o}}detectBlockId(e,l){let s=e.getCursor(),{end:d}=this.detectBlockRange(e,s.line),o=e.getLine(d);if(d<=e.lineCount()-2&&e.getLine(d+1).trim()===""){let i=e.getLine(d+2);/^\s*\^[a-zA-Z0-9_-]+$/.test(i)&&(o=i)}let r=o.trimEnd().match(/\^([a-zA-Z0-9_-]+)$/);return r?{type:"block-id",curLine:o,match:r[1],range:[o.lastIndexOf("^"),o.length]}:null}determineContextType(e,l){let s=()=>{if(!this.settings.enableCalloutCopy)return null;let u=e.getCursor(),b=e.lineCount(),I=u.line,x=u.line;if(!e.getLine(u.line).trim().startsWith(">"))return null;for(;I>0&&e.getLine(I-1).trim().startsWith(">");)I--;for(;x+1<b&&e.getLine(x+1).trim().startsWith(">");)x++;let T=[];for(let v=I;v<=x;v++)T.push(e.getLine(v));let w=T.map(v=>v.replace(/^>\s?/,"").replace(/^\[!.*?\]\s?/,"").trim()).join(`
`);return{type:"callout",curLine:e.getLine(u.line),match:w,range:[0,w.length]}};if(!l.file)return new h.Notice(this.t("no-file")),{type:"null",curLine:"",match:null,range:null};let o=e.getCursor(),r=e.getLine(o.line),g=o.ch,i=r.slice(0,g),n=r.slice(g),a=h.Platform.isIosApp?/(?:\*([^*]+)\*(?!\*)|_([^_]+)_(?!_))/g:/(?:(?<!\*)\*([^*]+)\*(?!\*)|(?<!_)_([^_]+)_(?!_))/g,p=/(?:\*\*([^*]+)\*\*|__([^_]+)__)/g,k=[{type:"bold",regex:p,enable:!this.settings.customizeTargets||this.settings.enableBold},{type:"italic",regex:a,enable:!this.settings.customizeTargets||this.settings.enableItalic},{type:"highlight",regex:/==([^=]+)==/g,enable:!this.settings.customizeTargets||this.settings.enableHighlight},{type:"strikethrough",regex:/~~([^~]+)~~/g,enable:!this.settings.customizeTargets||this.settings.enableStrikethrough},{type:"inline-code",regex:/`([^`]+)`/g,enable:!this.settings.customizeTargets||this.settings.enableInlineCode},{type:"inline-latex",regex:/\$([^$]+)\$/g,enable:!this.settings.customizeTargets||this.settings.enableInlineLatex},{type:"wiki-link",regex:/\[\[([^\]]+)\]\]/g,enable:!this.settings.customizeTargets||this.settings.enableWikiLink}];for(let u of k){if(!u.enable)continue;let b=this.getMatchInfo(i,n,u.regex);if(b)return{type:u.type,curLine:r,match:b.content,range:b.range}}if(!this.settings.customizeTargets||this.settings.enableLink){let u=this.isCursorInLink(i,n);if(u)return{type:u.type,curLine:r,match:u.content,range:u.range}}let m=this.detectCodeBlock(e);if(m)return m;let f=this.detectBlockId(e,l);if(f)return f;if(this.settings.enableCalloutCopy&&(!this.settings.autoAddBlockId||this.settings.calloutCopyPriority)){let u=s();if(u)return u}let y=/^(#+)\s/;if(y.test(r)){let u=r.match(y),b=r.replace(y,"").trim();return{type:"heading",curLine:r,match:b,range:u?[u[0].length,r.length]:null}}return{type:"null",curLine:r,match:null,range:null}}getMatchInfo(e,l,s){let d;for(;(d=s.exec(e+l))!==null;){let o=d.index,r=d.index+d[0].length;if(e.length>=o&&e.length<=r){let g="";for(let i=1;i<d.length;i++)if(d[i]!==void 0){g=d[i];break}return{content:g,range:[o,r]}}}return null}isCursorInLink(e,l){let s=/\[([^\]]*?)\]\(([^)]*?)\)/g,d=e+l,o;for(;(o=s.exec(d))!==null;){let r=o.index,g=r+o[0].length,i=e.length;if(i>=r&&i<=g){let n=r+1,a=r+o[1].length+1,p=a+2,k=p+o[2].length;if(i>=n&&i<=a)return{type:"link-title",content:o[1],range:[n,a]};if(i>=p&&i<=k)return{type:"line-url",content:o[2],range:[p,k]}}}return null}async contextualCopy(e,l){var r,g;let s=l.file;if(!s){new h.Notice(this.t("no-file"));return}let d=s.basename,o=this.determineContextType(e,l);if(o.type=="null"){if(this.settings.autoAddBlockId){let i=this.settings.allowManualBlockId;await this.insertBlockIdAndCopyLink(e,d,i);return}new h.Notice(this.t("no-content"));return}switch(o.type){case"block-id":this.copyBlockLink(o.match,d,!0,o.curLine);return;case"bold":navigator.clipboard.writeText(o.match),this.settings.showNotice&&new h.Notice(this.t("bold-copied"));return;case"italic":navigator.clipboard.writeText(o.match),this.settings.showNotice&&new h.Notice(this.t("italic-copied"));return;case"highlight":navigator.clipboard.writeText(o.match),this.settings.showNotice&&new h.Notice(this.t("highlight-copied"));return;case"strikethrough":navigator.clipboard.writeText(o.match),this.settings.showNotice&&new h.Notice(this.t("strikethrough-copied"));return;case"inline-code":navigator.clipboard.writeText(o.match),this.settings.showNotice&&new h.Notice(this.t("inline-code-copied"));return;case"inline-latex":navigator.clipboard.writeText(o.match),this.settings.showNotice&&new h.Notice(this.t("inline-latex-copied"));return;case"link-title":navigator.clipboard.writeText(o.match),this.settings.showNotice&&new h.Notice(this.t("link-text-copied"));return;case"line-url":navigator.clipboard.writeText(o.match),this.settings.showNotice&&new h.Notice(this.t("link-url-copied"));return;case"heading":this.copyHeadingLink(o.match,d);return;case"wiki-link":{if(!o.match)return;let i=o.match;this.settings.keepWikiBrackets?i=`[[${i}]]`:i=i.split("|")[0],navigator.clipboard.writeText(i),this.settings.showNotice&&new h.Notice(this.t("wiki-link-copied"));return}case"code-block":{navigator.clipboard.writeText((r=o.match)!=null?r:""),this.settings.showNotice&&new h.Notice(this.t("code-block-copied"));return}case"callout":{let i=(g=o.match)==null?void 0:g.replace(/\n+/g,`
`).replace(/\s+$/g,"");navigator.clipboard.writeText(i!=null?i:""),this.settings.showNotice&&new h.Notice(this.t("callout-copied"));return}default:break}}copyBlockLink(e,l,s,d=""){let o=G({blockId:e,filename:l,useBrief:s,firstLine:d,linkFormat:this.getEffectiveLinkFormat(),autoBlockDisplayText:this.settings.autoBlockDisplayText,autoEmbedBlockLink:this.settings.autoEmbedBlockLink,blockDisplayWordLimit:this.settings.blockDisplayWordLimit,blockDisplayCharLimit:this.settings.blockDisplayCharLimit});navigator.clipboard.writeText(o);let r=this.app.workspace.getActiveFile();r&&(this.lastCopyMeta=Z({clipboardText:o,sourceFilePath:r.path,blockId:e,useBrief:s,firstLine:d,autoBlockDisplayText:this.settings.autoBlockDisplayText,autoEmbedBlockLink:this.settings.autoEmbedBlockLink,blockDisplayWordLimit:this.settings.blockDisplayWordLimit,blockDisplayCharLimit:this.settings.blockDisplayCharLimit})),this.settings.showNotice&&new h.Notice(this.t("block-id-copied"))}copyHeadingLink(e,l){var g,i,n,a,p,k,m;let s;if(this.settings.useFrontmatterAsDisplay){let f=(m=(i=(g=this.app.workspace).getActiveFile)==null?void 0:i.call(g))!=null?m:(k=(p=(a=(n=this.app.workspace).getActiveViewOfType)==null?void 0:a.call(n,h.MarkdownView))==null?void 0:p.file)!=null?k:null;if(f){let y=this.app.metadataCache.getFileCache(f),u=y==null?void 0:y.frontmatter,b=this.settings.frontmatterKey||"title";u&&typeof u[b]=="string"&&u[b].trim()&&(s=u[b].trim())}}let{link:d,isNoteLink:o}=z({heading:e,filename:l,frontmatterTitle:s,linkFormat:this.getEffectiveLinkFormat(),useHeadingAsDisplayText:this.settings.useHeadingAsDisplayText,headingLinkSeparator:this.settings.headingLinkSeparator,strictHeadingMatch:this.settings.strictHeadingMatch,simplifiedHeadingToNoteLink:this.settings.simplifiedHeadingToNoteLink,enableDisplayNameRegex:this.settings.enableDisplayNameRegex,displayNameRegexFrom:this.settings.displayNameRegexFrom,displayNameRegexTo:this.settings.displayNameRegexTo});navigator.clipboard.writeText(d);let r=this.app.workspace.getActiveFile();r&&(this.lastCopyMeta=j({clipboardText:d,sourceFilePath:r.path,heading:e,filename:l,frontmatterTitle:s,useHeadingAsDisplayText:this.settings.useHeadingAsDisplayText,headingLinkSeparator:this.settings.headingLinkSeparator,isNoteLink:o})),o&&new h.Notice(this.t("note-link-simplified")),this.settings.showNotice&&new h.Notice(this.t(o?"note-link-copied":"heading-copied"))}copyCurrentFileLink(){var d,o,r,g,i,n,a,p,k,m,f,y,u,b;let e;if(this.settings.useFrontmatterAsDisplay){let I=(a=(o=(d=this.app.workspace).getActiveFile)==null?void 0:o.call(d))!=null?a:(n=(i=(g=(r=this.app.workspace).getActiveViewOfType)==null?void 0:g.call(r,h.MarkdownView))==null?void 0:i.file)!=null?n:null;if(I){let x=this.app.metadataCache.getFileCache(I),T=x==null?void 0:x.frontmatter,w=this.settings.frontmatterKey||"title";T&&typeof T[w]=="string"&&T[w].trim()&&(e=T[w].trim())}}let l=(b=(k=(p=this.app.workspace).getActiveFile)==null?void 0:k.call(p))!=null?b:(u=(y=(f=(m=this.app.workspace).getActiveViewOfType)==null?void 0:f.call(m,h.MarkdownView))==null?void 0:y.file)!=null?u:null;if(!l){new h.Notice(this.t("no-file"));return}let s=X({filename:l.basename,filePath:l.path,displayText:e,linkFormat:this.getEffectiveLinkFormat()});navigator.clipboard.writeText(s),this.lastCopyMeta=Y({clipboardText:s,sourceFilePath:l.path,displayText:e}),this.settings.showNotice&&new h.Notice(this.t("file-link-copied"))}async insertBlockIdAndCopyLink(e,l,s=!1){let d="";if(s){let a=await new Promise(p=>{new F(this.app,this.t("modal-block-id"),this.t("modal-block-id-desc"),this.t.bind(this),k=>{p(k!=null?k:null)}).open()});if(!a)return;d=a}else d=`${Math.random().toString(36).substring(2,8)}`;let o=e.getCursor(),{start:r,end:g}=this.detectBlockRange(e,o.line),i=e.getLine(r),n=e.getLine(g);if(!/\^[a-zA-Z0-9_-]+$/.test(n.trim())){let a="^"+d,p=n.startsWith("> ")||n.startsWith("```")||n.startsWith("$$"),k=n.trim().length>0&&!n.endsWith(" "),m=this.settings.blockIdInsertPosition;if(p)a=`
`+a;else switch(m){case"end-of-block":k&&(a=" "+a);break;case"next-line":a=`
`+a;break;default:a=`
`+a;break}e.replaceRange(a,{line:g,ch:n.length});let f=!s;this.copyBlockLink(d,l,f,i)}}initializeI18n(){let e=this.getObsidianLanguage(),l="en";e.startsWith("zh")&&(e==="zh-tw"?l="zh-tw":l="zh"),this.i18n=new S(l)}getObsidianLanguage(){return(0,h.getLanguage)()}getEffectiveLinkFormat(){return this.settings.linkFormat!=="obsidian"?this.settings.linkFormat:this.app.vault.getConfig("useMarkdownLinks")?"markdown-link":"wiki-link"}};
/* nosourcemap */