/ *
THIS IS A GENERATED / BUNDLED FILE BY ESBUILD
if you want to view the source visit the plugins github repository ( https : //github.com/Vinzent03/obsidian-advanced-uri)
* /
var _ _create = Object . create ;
var _ _defProp = Object . defineProperty ;
var _ _getOwnPropDesc = Object . getOwnPropertyDescriptor ;
var _ _getOwnPropNames = Object . getOwnPropertyNames ;
var _ _getProtoOf = Object . getPrototypeOf ;
var _ _hasOwnProp = Object . prototype . hasOwnProperty ;
var _ _commonJS = ( cb , mod ) => function _ _require ( ) {
return mod || ( 0 , cb [ _ _getOwnPropNames ( cb ) [ 0 ] ] ) ( ( mod = { exports : { } } ) . exports , mod ) , mod . exports ;
} ;
var _ _export = ( target , all ) => {
for ( var name in all )
_ _defProp ( target , name , { get : all [ name ] , enumerable : true } ) ;
} ;
var _ _copyProps = ( to , from , except , desc ) => {
if ( from && typeof from === "object" || typeof from === "function" ) {
for ( let key of _ _getOwnPropNames ( from ) )
if ( ! _ _hasOwnProp . call ( to , key ) && key !== except )
_ _defProp ( to , key , { get : ( ) => from [ key ] , enumerable : ! ( desc = _ _getOwnPropDesc ( from , key ) ) || desc . enumerable } ) ;
}
return to ;
} ;
var _ _toESM = ( mod , isNodeMode , target ) => ( target = mod != null ? _ _create ( _ _getProtoOf ( mod ) ) : { } , _ _copyProps (
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || ! mod || ! mod . _ _esModule ? _ _defProp ( target , "default" , { value : mod , enumerable : true } ) : target ,
mod
) ) ;
var _ _toCommonJS = ( mod ) => _ _copyProps ( _ _defProp ( { } , "__esModule" , { value : true } ) , mod ) ;
// node_modules/feather-icons/dist/feather.js
var require _feather = _ _commonJS ( {
"node_modules/feather-icons/dist/feather.js" ( exports , module2 ) {
( function webpackUniversalModuleDefinition ( root , factory ) {
if ( typeof exports === "object" && typeof module2 === "object" )
module2 . exports = factory ( ) ;
else if ( typeof define === "function" && define . amd )
define ( [ ] , factory ) ;
else if ( typeof exports === "object" )
exports [ "feather" ] = factory ( ) ;
else
root [ "feather" ] = factory ( ) ;
} ) ( typeof self !== "undefined" ? self : exports , function ( ) {
return (
/******/
function ( modules ) {
var installedModules = { } ;
function _ _webpack _require _ _ ( moduleId ) {
if ( installedModules [ moduleId ] ) {
return installedModules [ moduleId ] . exports ;
}
var module3 = installedModules [ moduleId ] = {
/******/
i : moduleId ,
/******/
l : false ,
/******/
exports : { }
/******/
} ;
modules [ moduleId ] . call ( module3 . exports , module3 , module3 . exports , _ _webpack _require _ _ ) ;
module3 . l = true ;
return module3 . exports ;
}
_ _webpack _require _ _ . m = modules ;
_ _webpack _require _ _ . c = installedModules ;
_ _webpack _require _ _ . d = function ( exports2 , name , getter ) {
if ( ! _ _webpack _require _ _ . o ( exports2 , name ) ) {
Object . defineProperty ( exports2 , name , {
/******/
configurable : false ,
/******/
enumerable : true ,
/******/
get : getter
/******/
} ) ;
}
} ;
_ _webpack _require _ _ . r = function ( exports2 ) {
Object . defineProperty ( exports2 , "__esModule" , { value : true } ) ;
} ;
_ _webpack _require _ _ . n = function ( module3 ) {
var getter = module3 && module3 . _ _esModule ? (
/******/
function getDefault ( ) {
return module3 [ "default" ] ;
}
) : (
/******/
function getModuleExports ( ) {
return module3 ;
}
) ;
_ _webpack _require _ _ . d ( getter , "a" , getter ) ;
return getter ;
} ;
_ _webpack _require _ _ . o = function ( object , property ) {
return Object . prototype . hasOwnProperty . call ( object , property ) ;
} ;
_ _webpack _require _ _ . p = "" ;
return _ _webpack _require _ _ ( _ _webpack _require _ _ . s = 0 ) ;
} ( {
/***/
"./dist/icons.json" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / dist / icons . json * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! exports provided: activity, airplay, alert-circle, alert-octagon, alert-triangle, align-center, align-justify, align-left, align-right, anchor, aperture, archive, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, award, bar-chart-2, bar-chart, battery-charging, battery, bell-off, bell, bluetooth, bold, book-open, book, bookmark, box, briefcase, calendar, camera-off, camera, cast, check-circle, check-square, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, chrome, circle, clipboard, clock, cloud-drizzle, cloud-lightning, cloud-off, cloud-rain, cloud-snow, cloud, code, codepen, codesandbox, coffee, columns, command, compass, copy, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, cpu, credit-card, crop, crosshair, database, delete, disc, divide-circle, divide-square, divide, dollar-sign, download-cloud, download, dribbble, droplet, edit-2, edit-3, edit, external-link, eye-off, eye, facebook, fast-forward, feather, figma, file-minus, file-plus, file-text, file, film, filter, flag, folder-minus, folder-plus, folder, framer, frown, gift, git-branch, git-commit, git-merge, git-pull-request, github, gitlab, globe, grid, hard-drive, hash, headphones, heart, help-circle, hexagon, home, image, inbox, info, instagram, italic, key, layers, layout, life-buoy, link-2, link, linkedin, list, loader, lock, log-in, log-out, mail, map-pin, map, maximize-2, maximize, meh, menu, message-circle, message-square, mic-off, mic, minimize-2, minimize, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, mouse-pointer, move, music, navigation-2, navigation, octagon, package, paperclip, pause-circle, pause, pen-tool, percent, phone-call, phone-forwarded, phone-incoming, phone-missed, phone-off, phone-outgoing, phone, pie-chart, play-circle, play, plus-circle, plus-square, plus, pocket, power, printer, radio, refresh-ccw, refresh-cw, repeat, rewind, rotate-ccw, rotate-cw, rss, save, scissors, search, send, server, settings, share-2, share, shield-off, shield, shopping-bag, shopping-cart, shuffle, sidebar, skip-back, skip-forward, slack, slash, sliders, smartphone, smile, speaker, square, star, stop-circle, sun, sunrise, sunset, table, tablet, tag, target, terminal, thermometer, thumbs-down, thumbs-up, toggle-left, toggle-right, tool, trash-2, trash, trello, trending-down, trending-up, triangle, truck, tv, twitch, twitter, type, umbrella, underline, unlock, upload-cloud, upload, user-check, user-minus, user-plus, user-x, user, users, video-off, video, voicemail, volume-1, volume-2, volume-x, volume, watch, wifi-off, wifi, wind, x-circle, x-octagon, x-square, x, youtube, zap-off, zap, zoom-in, zoom-out, default */
/***/
function ( module3 ) {
module3 . exports = { "activity" : '<polyline points="22 12 18 12 15 21 9 3 6 12 2 12"></polyline>' , "airplay" : '<path d="M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1"></path><polygon points="12 15 17 21 7 21 12 15"></polygon>' , "alert-circle" : '<circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line>' , "alert-octagon" : '<polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"></polygon><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line>' , "alert-triangle" : '<path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path><line x1="12" y1="9" x2="12" y2="13"></line><line x1="12" y1="17" x2="12.01" y2="17"></line>' , "align-center" : '<line x1="18" y1="10" x2="6" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="18" y1="18" x2="6" y2="18"></line>' , "align-justify" : '<line x1="21" y1="10" x2="3" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="21" y1="18" x2="3" y2="18"></line>' , "align-left" : '<line x1="17" y1="10" x2="3" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="17" y1="18" x2="3" y2="18"></line>' , "align-right" : '<line x1="21" y1="10" x2="7" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="21" y1="18" x2="7" y2="18"></line>' , "anchor" : '<circle cx="12" cy="5" r="3"></circle><line x1="12" y1="22" x2="12" y2="8"></line><path d="M5 12H2a10 10 0 0 0 20 0h-3"></path>' , "aperture" : '<circle cx="12" cy="12" r="10"></circle><line x1="14.31" y1="8" x2="20.05" y2="17.94"></line><line x1="9.69" y1="8" x2="21.17" y2="8"></line><line x1="7.38" y1="12" x2="13.12" y2="2.06"></line><line x1="9.69" y1="16" x2="3.95" y2="6.06"></line><line x1="14.31" y1="16" x2="2.83" y2="16"></line><line x1="16.62" y1="12" x2="10.88" y2="21.94"></line>' , "archive" : '<polyline points="21 8 21 21 3 21 3 8"></polyline><rect x="1" y="3" width="22" height="5"></rect><line x1="10" y1="12" x2="14" y2="12"></line>' , "arrow-down-circle" : '<circle cx="12" cy="12" r="10"></circle><polyline points="8 12 12 16 16 12"></polyline><line x1="12" y1="8" x2="12" y2="16"></line>' , "arrow-down-left" : '<line x1="17" y1="7" x2="7" y2="17"></line><polyline points="17 17 7 17 7 7"></polyline>' , "arrow-down-right" : '<line x1="7" y1="7" x2="17" y2="17"></line><polyline points="17 7 17 17 7 17"></polyline>' , "arrow-down" : '<line x1="12" y1="5" x2="12" y2="19"></line><polyline points="19 12 12 19 5 12"></polyline>' , "arrow-left-circle" : '<circle cx="12" cy="12" r="10"></circle><polyline points="12 8 8 12 12 16"></polyline><line x1="16" y1="12" x2="8" y2="12"></line>' , "arrow-left" : '<line x1="19" y1="12" x2="5" y2="12"></line><polyline points="12 19 5 12 12 5"></polyline>' , "arrow-right-circle" : '<circle cx="12" cy="12" r="10"></circle><polyline points="12 16 16 12 12 8"></polyline><line x1="8" y1="12" x2="16" y2="12"></line>' , "arrow-right" : '<line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline>' , "arrow-up-circle" : '<circle cx="12" cy="12" r="10"></circle><polyline points="16 12 12 8 8 12"></polyline><line x1="12" y1="16" x2="12" y2="8"></line>' , "arrow-up-left" : '<line x1="17" y1="17" x2="7" y2="7"></line><polyline points="7 17 7 7 17 7"></polyline>' , "arrow-up-right" : '<line x1="7" y1="17" x2="17" y2="7"></line><polyline points="7 7 17 7 17 17"></polyline>' , "arrow-up" : '<line x1="12" y1="19" x2="12" y2="5"></line><polyline points="5 12 12 5 19 12"></polyline>' , "at-sign" : '<circle cx="12" cy="12" r="4"></circle><path d="M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-3.92 7.94"></path>' , "award" : '<circle cx="12" cy="8" r="7"></circle><polyline points="8.21 13.89 7 23 12 20 17 23 15.79 13.88"></polyline>' , "bar-chart-2" : ' < line x1 = "18" y1 = "20" x2 = "18" y2 = "10" > < / l i n e > < l i n e x 1 =
}
) ,
/***/
"./node_modules/classnames/dedupe.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / classnames / dedupe . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
var _ _WEBPACK _AMD _DEFINE _ARRAY _ _ , _ _WEBPACK _AMD _DEFINE _RESULT _ _ ;
( function ( ) {
"use strict" ;
var classNames = function ( ) {
function StorageObject ( ) {
}
StorageObject . prototype = /* @__PURE__ */ Object . create ( null ) ;
function _parseArray ( resultSet , array ) {
var length = array . length ;
for ( var i = 0 ; i < length ; ++ i ) {
_parse ( resultSet , array [ i ] ) ;
}
}
var hasOwn = { } . hasOwnProperty ;
function _parseNumber ( resultSet , num ) {
resultSet [ num ] = true ;
}
function _parseObject ( resultSet , object ) {
for ( var k in object ) {
if ( hasOwn . call ( object , k ) ) {
resultSet [ k ] = ! ! object [ k ] ;
}
}
}
var SPACE = /\s+/ ;
function _parseString ( resultSet , str ) {
var array = str . split ( SPACE ) ;
var length = array . length ;
for ( var i = 0 ; i < length ; ++ i ) {
resultSet [ array [ i ] ] = true ;
}
}
function _parse ( resultSet , arg ) {
if ( ! arg )
return ;
var argType = typeof arg ;
if ( argType === "string" ) {
_parseString ( resultSet , arg ) ;
} else if ( Array . isArray ( arg ) ) {
_parseArray ( resultSet , arg ) ;
} else if ( argType === "object" ) {
_parseObject ( resultSet , arg ) ;
} else if ( argType === "number" ) {
_parseNumber ( resultSet , arg ) ;
}
}
function _classNames ( ) {
var len = arguments . length ;
var args = Array ( len ) ;
for ( var i = 0 ; i < len ; i ++ ) {
args [ i ] = arguments [ i ] ;
}
var classSet = new StorageObject ( ) ;
_parseArray ( classSet , args ) ;
var list = [ ] ;
for ( var k in classSet ) {
if ( classSet [ k ] ) {
list . push ( k ) ;
}
}
return list . join ( " " ) ;
}
return _classNames ;
} ( ) ;
if ( typeof module3 !== "undefined" && module3 . exports ) {
module3 . exports = classNames ;
} else if ( true ) {
! ( _ _WEBPACK _AMD _DEFINE _ARRAY _ _ = [ ] , _ _WEBPACK _AMD _DEFINE _RESULT _ _ = function ( ) {
return classNames ;
} . apply ( exports2 , _ _WEBPACK _AMD _DEFINE _ARRAY _ _ ) , _ _WEBPACK _AMD _DEFINE _RESULT _ _ !== void 0 && ( module3 . exports = _ _WEBPACK _AMD _DEFINE _RESULT _ _ ) ) ;
} else {
}
} ) ( ) ;
}
) ,
/***/
"./node_modules/core-js/es/array/from.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / es / array / from . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
_ _webpack _require _ _ (
/*! ../../modules/es.string.iterator */
"./node_modules/core-js/modules/es.string.iterator.js"
) ;
_ _webpack _require _ _ (
/*! ../../modules/es.array.from */
"./node_modules/core-js/modules/es.array.from.js"
) ;
var path = _ _webpack _require _ _ (
/*! ../../internals/path */
"./node_modules/core-js/internals/path.js"
) ;
module3 . exports = path . Array . from ;
}
) ,
/***/
"./node_modules/core-js/internals/a-function.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / a - function . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 ) {
module3 . exports = function ( it ) {
if ( typeof it != "function" ) {
throw TypeError ( String ( it ) + " is not a function" ) ;
}
return it ;
} ;
}
) ,
/***/
"./node_modules/core-js/internals/an-object.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / an - object . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
var isObject = _ _webpack _require _ _ (
/*! ../internals/is-object */
"./node_modules/core-js/internals/is-object.js"
) ;
module3 . exports = function ( it ) {
if ( ! isObject ( it ) ) {
throw TypeError ( String ( it ) + " is not an object" ) ;
}
return it ;
} ;
}
) ,
/***/
"./node_modules/core-js/internals/array-from.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / array - from . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
"use strict" ;
var bind = _ _webpack _require _ _ (
/*! ../internals/bind-context */
"./node_modules/core-js/internals/bind-context.js"
) ;
var toObject = _ _webpack _require _ _ (
/*! ../internals/to-object */
"./node_modules/core-js/internals/to-object.js"
) ;
var callWithSafeIterationClosing = _ _webpack _require _ _ (
/*! ../internals/call-with-safe-iteration-closing */
"./node_modules/core-js/internals/call-with-safe-iteration-closing.js"
) ;
var isArrayIteratorMethod = _ _webpack _require _ _ (
/*! ../internals/is-array-iterator-method */
"./node_modules/core-js/internals/is-array-iterator-method.js"
) ;
var toLength = _ _webpack _require _ _ (
/*! ../internals/to-length */
"./node_modules/core-js/internals/to-length.js"
) ;
var createProperty = _ _webpack _require _ _ (
/*! ../internals/create-property */
"./node_modules/core-js/internals/create-property.js"
) ;
var getIteratorMethod = _ _webpack _require _ _ (
/*! ../internals/get-iterator-method */
"./node_modules/core-js/internals/get-iterator-method.js"
) ;
module3 . exports = function from ( arrayLike ) {
var O = toObject ( arrayLike ) ;
var C = typeof this == "function" ? this : Array ;
var argumentsLength = arguments . length ;
var mapfn = argumentsLength > 1 ? arguments [ 1 ] : void 0 ;
var mapping = mapfn !== void 0 ;
var index = 0 ;
var iteratorMethod = getIteratorMethod ( O ) ;
var length , result , step , iterator ;
if ( mapping )
mapfn = bind ( mapfn , argumentsLength > 2 ? arguments [ 2 ] : void 0 , 2 ) ;
if ( iteratorMethod != void 0 && ! ( C == Array && isArrayIteratorMethod ( iteratorMethod ) ) ) {
iterator = iteratorMethod . call ( O ) ;
result = new C ( ) ;
for ( ; ! ( step = iterator . next ( ) ) . done ; index ++ ) {
createProperty (
result ,
index ,
mapping ? callWithSafeIterationClosing ( iterator , mapfn , [ step . value , index ] , true ) : step . value
) ;
}
} else {
length = toLength ( O . length ) ;
result = new C ( length ) ;
for ( ; length > index ; index ++ ) {
createProperty ( result , index , mapping ? mapfn ( O [ index ] , index ) : O [ index ] ) ;
}
}
result . length = index ;
return result ;
} ;
}
) ,
/***/
"./node_modules/core-js/internals/array-includes.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / array - includes . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
var toIndexedObject = _ _webpack _require _ _ (
/*! ../internals/to-indexed-object */
"./node_modules/core-js/internals/to-indexed-object.js"
) ;
var toLength = _ _webpack _require _ _ (
/*! ../internals/to-length */
"./node_modules/core-js/internals/to-length.js"
) ;
var toAbsoluteIndex = _ _webpack _require _ _ (
/*! ../internals/to-absolute-index */
"./node_modules/core-js/internals/to-absolute-index.js"
) ;
module3 . exports = function ( IS _INCLUDES ) {
return function ( $this , el , fromIndex ) {
var O = toIndexedObject ( $this ) ;
var length = toLength ( O . length ) ;
var index = toAbsoluteIndex ( fromIndex , length ) ;
var value ;
if ( IS _INCLUDES && el != el )
while ( length > index ) {
value = O [ index ++ ] ;
if ( value != value )
return true ;
}
else
for ( ; length > index ; index ++ )
if ( IS _INCLUDES || index in O ) {
if ( O [ index ] === el )
return IS _INCLUDES || index || 0 ;
}
return ! IS _INCLUDES && - 1 ;
} ;
} ;
}
) ,
/***/
"./node_modules/core-js/internals/bind-context.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / bind - context . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
var aFunction = _ _webpack _require _ _ (
/*! ../internals/a-function */
"./node_modules/core-js/internals/a-function.js"
) ;
module3 . exports = function ( fn , that , length ) {
aFunction ( fn ) ;
if ( that === void 0 )
return fn ;
switch ( length ) {
case 0 :
return function ( ) {
return fn . call ( that ) ;
} ;
case 1 :
return function ( a ) {
return fn . call ( that , a ) ;
} ;
case 2 :
return function ( a , b ) {
return fn . call ( that , a , b ) ;
} ;
case 3 :
return function ( a , b , c ) {
return fn . call ( that , a , b , c ) ;
} ;
}
return function ( ) {
return fn . apply ( that , arguments ) ;
} ;
} ;
}
) ,
/***/
"./node_modules/core-js/internals/call-with-safe-iteration-closing.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / call - with - safe - iteration - closing . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
var anObject = _ _webpack _require _ _ (
/*! ../internals/an-object */
"./node_modules/core-js/internals/an-object.js"
) ;
module3 . exports = function ( iterator , fn , value , ENTRIES ) {
try {
return ENTRIES ? fn ( anObject ( value ) [ 0 ] , value [ 1 ] ) : fn ( value ) ;
} catch ( error ) {
var returnMethod = iterator [ "return" ] ;
if ( returnMethod !== void 0 )
anObject ( returnMethod . call ( iterator ) ) ;
throw error ;
}
} ;
}
) ,
/***/
"./node_modules/core-js/internals/check-correctness-of-iteration.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / check - correctness - of - iteration . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
var wellKnownSymbol = _ _webpack _require _ _ (
/*! ../internals/well-known-symbol */
"./node_modules/core-js/internals/well-known-symbol.js"
) ;
var ITERATOR = wellKnownSymbol ( "iterator" ) ;
var SAFE _CLOSING = false ;
try {
var called = 0 ;
var iteratorWithReturn = {
next : function ( ) {
return { done : ! ! called ++ } ;
} ,
"return" : function ( ) {
SAFE _CLOSING = true ;
}
} ;
iteratorWithReturn [ ITERATOR ] = function ( ) {
return this ;
} ;
Array . from ( iteratorWithReturn , function ( ) {
throw 2 ;
} ) ;
} catch ( error ) {
}
module3 . exports = function ( exec , SKIP _CLOSING ) {
if ( ! SKIP _CLOSING && ! SAFE _CLOSING )
return false ;
var ITERATION _SUPPORT = false ;
try {
var object = { } ;
object [ ITERATOR ] = function ( ) {
return {
next : function ( ) {
return { done : ITERATION _SUPPORT = true } ;
}
} ;
} ;
exec ( object ) ;
} catch ( error ) {
}
return ITERATION _SUPPORT ;
} ;
}
) ,
/***/
"./node_modules/core-js/internals/classof-raw.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / classof - raw . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 ) {
var toString = { } . toString ;
module3 . exports = function ( it ) {
return toString . call ( it ) . slice ( 8 , - 1 ) ;
} ;
}
) ,
/***/
"./node_modules/core-js/internals/classof.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / classof . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
var classofRaw = _ _webpack _require _ _ (
/*! ../internals/classof-raw */
"./node_modules/core-js/internals/classof-raw.js"
) ;
var wellKnownSymbol = _ _webpack _require _ _ (
/*! ../internals/well-known-symbol */
"./node_modules/core-js/internals/well-known-symbol.js"
) ;
var TO _STRING _TAG = wellKnownSymbol ( "toStringTag" ) ;
var CORRECT _ARGUMENTS = classofRaw ( function ( ) {
return arguments ;
} ( ) ) == "Arguments" ;
var tryGet = function ( it , key ) {
try {
return it [ key ] ;
} catch ( error ) {
}
} ;
module3 . exports = function ( it ) {
var O , tag , result ;
return it === void 0 ? "Undefined" : it === null ? "Null" : typeof ( tag = tryGet ( O = Object ( it ) , TO _STRING _TAG ) ) == "string" ? tag : CORRECT _ARGUMENTS ? classofRaw ( O ) : ( result = classofRaw ( O ) ) == "Object" && typeof O . callee == "function" ? "Arguments" : result ;
} ;
}
) ,
/***/
"./node_modules/core-js/internals/copy-constructor-properties.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / copy - constructor - properties . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
var has = _ _webpack _require _ _ (
/*! ../internals/has */
"./node_modules/core-js/internals/has.js"
) ;
var ownKeys = _ _webpack _require _ _ (
/*! ../internals/own-keys */
"./node_modules/core-js/internals/own-keys.js"
) ;
var getOwnPropertyDescriptorModule = _ _webpack _require _ _ (
/*! ../internals/object-get-own-property-descriptor */
"./node_modules/core-js/internals/object-get-own-property-descriptor.js"
) ;
var definePropertyModule = _ _webpack _require _ _ (
/*! ../internals/object-define-property */
"./node_modules/core-js/internals/object-define-property.js"
) ;
module3 . exports = function ( target , source ) {
var keys = ownKeys ( source ) ;
var defineProperty = definePropertyModule . f ;
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule . f ;
for ( var i = 0 ; i < keys . length ; i ++ ) {
var key = keys [ i ] ;
if ( ! has ( target , key ) )
defineProperty ( target , key , getOwnPropertyDescriptor ( source , key ) ) ;
}
} ;
}
) ,
/***/
"./node_modules/core-js/internals/correct-prototype-getter.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / correct - prototype - getter . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
var fails = _ _webpack _require _ _ (
/*! ../internals/fails */
"./node_modules/core-js/internals/fails.js"
) ;
module3 . exports = ! fails ( function ( ) {
function F ( ) {
}
F . prototype . constructor = null ;
return Object . getPrototypeOf ( new F ( ) ) !== F . prototype ;
} ) ;
}
) ,
/***/
"./node_modules/core-js/internals/create-iterator-constructor.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / create - iterator - constructor . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
"use strict" ;
var IteratorPrototype = _ _webpack _require _ _ (
/*! ../internals/iterators-core */
"./node_modules/core-js/internals/iterators-core.js"
) . IteratorPrototype ;
var create = _ _webpack _require _ _ (
/*! ../internals/object-create */
"./node_modules/core-js/internals/object-create.js"
) ;
var createPropertyDescriptor = _ _webpack _require _ _ (
/*! ../internals/create-property-descriptor */
"./node_modules/core-js/internals/create-property-descriptor.js"
) ;
var setToStringTag = _ _webpack _require _ _ (
/*! ../internals/set-to-string-tag */
"./node_modules/core-js/internals/set-to-string-tag.js"
) ;
var Iterators = _ _webpack _require _ _ (
/*! ../internals/iterators */
"./node_modules/core-js/internals/iterators.js"
) ;
var returnThis = function ( ) {
return this ;
} ;
module3 . exports = function ( IteratorConstructor , NAME , next ) {
var TO _STRING _TAG = NAME + " Iterator" ;
IteratorConstructor . prototype = create ( IteratorPrototype , { next : createPropertyDescriptor ( 1 , next ) } ) ;
setToStringTag ( IteratorConstructor , TO _STRING _TAG , false , true ) ;
Iterators [ TO _STRING _TAG ] = returnThis ;
return IteratorConstructor ;
} ;
}
) ,
/***/
"./node_modules/core-js/internals/create-property-descriptor.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / create - property - descriptor . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 ) {
module3 . exports = function ( bitmap , value ) {
return {
enumerable : ! ( bitmap & 1 ) ,
configurable : ! ( bitmap & 2 ) ,
writable : ! ( bitmap & 4 ) ,
value
} ;
} ;
}
) ,
/***/
"./node_modules/core-js/internals/create-property.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / create - property . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
"use strict" ;
var toPrimitive = _ _webpack _require _ _ (
/*! ../internals/to-primitive */
"./node_modules/core-js/internals/to-primitive.js"
) ;
var definePropertyModule = _ _webpack _require _ _ (
/*! ../internals/object-define-property */
"./node_modules/core-js/internals/object-define-property.js"
) ;
var createPropertyDescriptor = _ _webpack _require _ _ (
/*! ../internals/create-property-descriptor */
"./node_modules/core-js/internals/create-property-descriptor.js"
) ;
module3 . exports = function ( object , key , value ) {
var propertyKey = toPrimitive ( key ) ;
if ( propertyKey in object )
definePropertyModule . f ( object , propertyKey , createPropertyDescriptor ( 0 , value ) ) ;
else
object [ propertyKey ] = value ;
} ;
}
) ,
/***/
"./node_modules/core-js/internals/define-iterator.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / define - iterator . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
"use strict" ;
var $ = _ _webpack _require _ _ (
/*! ../internals/export */
"./node_modules/core-js/internals/export.js"
) ;
var createIteratorConstructor = _ _webpack _require _ _ (
/*! ../internals/create-iterator-constructor */
"./node_modules/core-js/internals/create-iterator-constructor.js"
) ;
var getPrototypeOf = _ _webpack _require _ _ (
/*! ../internals/object-get-prototype-of */
"./node_modules/core-js/internals/object-get-prototype-of.js"
) ;
var setPrototypeOf = _ _webpack _require _ _ (
/*! ../internals/object-set-prototype-of */
"./node_modules/core-js/internals/object-set-prototype-of.js"
) ;
var setToStringTag = _ _webpack _require _ _ (
/*! ../internals/set-to-string-tag */
"./node_modules/core-js/internals/set-to-string-tag.js"
) ;
var hide = _ _webpack _require _ _ (
/*! ../internals/hide */
"./node_modules/core-js/internals/hide.js"
) ;
var redefine = _ _webpack _require _ _ (
/*! ../internals/redefine */
"./node_modules/core-js/internals/redefine.js"
) ;
var wellKnownSymbol = _ _webpack _require _ _ (
/*! ../internals/well-known-symbol */
"./node_modules/core-js/internals/well-known-symbol.js"
) ;
var IS _PURE = _ _webpack _require _ _ (
/*! ../internals/is-pure */
"./node_modules/core-js/internals/is-pure.js"
) ;
var Iterators = _ _webpack _require _ _ (
/*! ../internals/iterators */
"./node_modules/core-js/internals/iterators.js"
) ;
var IteratorsCore = _ _webpack _require _ _ (
/*! ../internals/iterators-core */
"./node_modules/core-js/internals/iterators-core.js"
) ;
var IteratorPrototype = IteratorsCore . IteratorPrototype ;
var BUGGY _SAFARI _ITERATORS = IteratorsCore . BUGGY _SAFARI _ITERATORS ;
var ITERATOR = wellKnownSymbol ( "iterator" ) ;
var KEYS = "keys" ;
var VALUES = "values" ;
var ENTRIES = "entries" ;
var returnThis = function ( ) {
return this ;
} ;
module3 . exports = function ( Iterable , NAME , IteratorConstructor , next , DEFAULT , IS _SET , FORCED ) {
createIteratorConstructor ( IteratorConstructor , NAME , next ) ;
var getIterationMethod = function ( KIND ) {
if ( KIND === DEFAULT && defaultIterator )
return defaultIterator ;
if ( ! BUGGY _SAFARI _ITERATORS && KIND in IterablePrototype )
return IterablePrototype [ KIND ] ;
switch ( KIND ) {
case KEYS :
return function keys ( ) {
return new IteratorConstructor ( this , KIND ) ;
} ;
case VALUES :
return function values ( ) {
return new IteratorConstructor ( this , KIND ) ;
} ;
case ENTRIES :
return function entries ( ) {
return new IteratorConstructor ( this , KIND ) ;
} ;
}
return function ( ) {
return new IteratorConstructor ( this ) ;
} ;
} ;
var TO _STRING _TAG = NAME + " Iterator" ;
var INCORRECT _VALUES _NAME = false ;
var IterablePrototype = Iterable . prototype ;
var nativeIterator = IterablePrototype [ ITERATOR ] || IterablePrototype [ "@@iterator" ] || DEFAULT && IterablePrototype [ DEFAULT ] ;
var defaultIterator = ! BUGGY _SAFARI _ITERATORS && nativeIterator || getIterationMethod ( DEFAULT ) ;
var anyNativeIterator = NAME == "Array" ? IterablePrototype . entries || nativeIterator : nativeIterator ;
var CurrentIteratorPrototype , methods , KEY ;
if ( anyNativeIterator ) {
CurrentIteratorPrototype = getPrototypeOf ( anyNativeIterator . call ( new Iterable ( ) ) ) ;
if ( IteratorPrototype !== Object . prototype && CurrentIteratorPrototype . next ) {
if ( ! IS _PURE && getPrototypeOf ( CurrentIteratorPrototype ) !== IteratorPrototype ) {
if ( setPrototypeOf ) {
setPrototypeOf ( CurrentIteratorPrototype , IteratorPrototype ) ;
} else if ( typeof CurrentIteratorPrototype [ ITERATOR ] != "function" ) {
hide ( CurrentIteratorPrototype , ITERATOR , returnThis ) ;
}
}
setToStringTag ( CurrentIteratorPrototype , TO _STRING _TAG , true , true ) ;
if ( IS _PURE )
Iterators [ TO _STRING _TAG ] = returnThis ;
}
}
if ( DEFAULT == VALUES && nativeIterator && nativeIterator . name !== VALUES ) {
INCORRECT _VALUES _NAME = true ;
defaultIterator = function values ( ) {
return nativeIterator . call ( this ) ;
} ;
}
if ( ( ! IS _PURE || FORCED ) && IterablePrototype [ ITERATOR ] !== defaultIterator ) {
hide ( IterablePrototype , ITERATOR , defaultIterator ) ;
}
Iterators [ NAME ] = defaultIterator ;
if ( DEFAULT ) {
methods = {
values : getIterationMethod ( VALUES ) ,
keys : IS _SET ? defaultIterator : getIterationMethod ( KEYS ) ,
entries : getIterationMethod ( ENTRIES )
} ;
if ( FORCED )
for ( KEY in methods ) {
if ( BUGGY _SAFARI _ITERATORS || INCORRECT _VALUES _NAME || ! ( KEY in IterablePrototype ) ) {
redefine ( IterablePrototype , KEY , methods [ KEY ] ) ;
}
}
else
$ ( { target : NAME , proto : true , forced : BUGGY _SAFARI _ITERATORS || INCORRECT _VALUES _NAME } , methods ) ;
}
return methods ;
} ;
}
) ,
/***/
"./node_modules/core-js/internals/descriptors.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / descriptors . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
var fails = _ _webpack _require _ _ (
/*! ../internals/fails */
"./node_modules/core-js/internals/fails.js"
) ;
module3 . exports = ! fails ( function ( ) {
return Object . defineProperty ( { } , "a" , { get : function ( ) {
return 7 ;
} } ) . a != 7 ;
} ) ;
}
) ,
/***/
"./node_modules/core-js/internals/document-create-element.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / document - create - element . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
var global = _ _webpack _require _ _ (
/*! ../internals/global */
"./node_modules/core-js/internals/global.js"
) ;
var isObject = _ _webpack _require _ _ (
/*! ../internals/is-object */
"./node_modules/core-js/internals/is-object.js"
) ;
var document2 = global . document ;
var exist = isObject ( document2 ) && isObject ( document2 . createElement ) ;
module3 . exports = function ( it ) {
return exist ? document2 . createElement ( it ) : { } ;
} ;
}
) ,
/***/
"./node_modules/core-js/internals/enum-bug-keys.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / enum - bug - keys . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 ) {
module3 . exports = [
"constructor" ,
"hasOwnProperty" ,
"isPrototypeOf" ,
"propertyIsEnumerable" ,
"toLocaleString" ,
"toString" ,
"valueOf"
] ;
}
) ,
/***/
"./node_modules/core-js/internals/export.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / export . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
var global = _ _webpack _require _ _ (
/*! ../internals/global */
"./node_modules/core-js/internals/global.js"
) ;
var getOwnPropertyDescriptor = _ _webpack _require _ _ (
/*! ../internals/object-get-own-property-descriptor */
"./node_modules/core-js/internals/object-get-own-property-descriptor.js"
) . f ;
var hide = _ _webpack _require _ _ (
/*! ../internals/hide */
"./node_modules/core-js/internals/hide.js"
) ;
var redefine = _ _webpack _require _ _ (
/*! ../internals/redefine */
"./node_modules/core-js/internals/redefine.js"
) ;
var setGlobal = _ _webpack _require _ _ (
/*! ../internals/set-global */
"./node_modules/core-js/internals/set-global.js"
) ;
var copyConstructorProperties = _ _webpack _require _ _ (
/*! ../internals/copy-constructor-properties */
"./node_modules/core-js/internals/copy-constructor-properties.js"
) ;
var isForced = _ _webpack _require _ _ (
/*! ../internals/is-forced */
"./node_modules/core-js/internals/is-forced.js"
) ;
module3 . exports = function ( options , source ) {
var TARGET = options . target ;
var GLOBAL = options . global ;
var STATIC = options . stat ;
var FORCED , target , key , targetProperty , sourceProperty , descriptor ;
if ( GLOBAL ) {
target = global ;
} else if ( STATIC ) {
target = global [ TARGET ] || setGlobal ( TARGET , { } ) ;
} else {
target = ( global [ TARGET ] || { } ) . prototype ;
}
if ( target )
for ( key in source ) {
sourceProperty = source [ key ] ;
if ( options . noTargetGet ) {
descriptor = getOwnPropertyDescriptor ( target , key ) ;
targetProperty = descriptor && descriptor . value ;
} else
targetProperty = target [ key ] ;
FORCED = isForced ( GLOBAL ? key : TARGET + ( STATIC ? "." : "#" ) + key , options . forced ) ;
if ( ! FORCED && targetProperty !== void 0 ) {
if ( typeof sourceProperty === typeof targetProperty )
continue ;
copyConstructorProperties ( sourceProperty , targetProperty ) ;
}
if ( options . sham || targetProperty && targetProperty . sham ) {
hide ( sourceProperty , "sham" , true ) ;
}
redefine ( target , key , sourceProperty , options ) ;
}
} ;
}
) ,
/***/
"./node_modules/core-js/internals/fails.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / fails . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 ) {
module3 . exports = function ( exec ) {
try {
return ! ! exec ( ) ;
} catch ( error ) {
return true ;
}
} ;
}
) ,
/***/
"./node_modules/core-js/internals/function-to-string.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / function - to - string . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
var shared = _ _webpack _require _ _ (
/*! ../internals/shared */
"./node_modules/core-js/internals/shared.js"
) ;
module3 . exports = shared ( "native-function-to-string" , Function . toString ) ;
}
) ,
/***/
"./node_modules/core-js/internals/get-iterator-method.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / get - iterator - method . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
var classof = _ _webpack _require _ _ (
/*! ../internals/classof */
"./node_modules/core-js/internals/classof.js"
) ;
var Iterators = _ _webpack _require _ _ (
/*! ../internals/iterators */
"./node_modules/core-js/internals/iterators.js"
) ;
var wellKnownSymbol = _ _webpack _require _ _ (
/*! ../internals/well-known-symbol */
"./node_modules/core-js/internals/well-known-symbol.js"
) ;
var ITERATOR = wellKnownSymbol ( "iterator" ) ;
module3 . exports = function ( it ) {
if ( it != void 0 )
return it [ ITERATOR ] || it [ "@@iterator" ] || Iterators [ classof ( it ) ] ;
} ;
}
) ,
/***/
"./node_modules/core-js/internals/global.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / global . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
( function ( global ) {
var O = "object" ;
var check = function ( it ) {
return it && it . Math == Math && it ;
} ;
module3 . exports = // eslint-disable-next-line no-undef
check ( typeof globalThis == O && globalThis ) || check ( typeof window == O && window ) || check ( typeof self == O && self ) || check ( typeof global == O && global ) || // eslint-disable-next-line no-new-func
Function ( "return this" ) ( ) ;
} ) . call ( this , _ _webpack _require _ _ (
/*! ./../../webpack/buildin/global.js */
"./node_modules/webpack/buildin/global.js"
) ) ;
}
) ,
/***/
"./node_modules/core-js/internals/has.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / has . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 ) {
var hasOwnProperty = { } . hasOwnProperty ;
module3 . exports = function ( it , key ) {
return hasOwnProperty . call ( it , key ) ;
} ;
}
) ,
/***/
"./node_modules/core-js/internals/hidden-keys.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / hidden - keys . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 ) {
module3 . exports = { } ;
}
) ,
/***/
"./node_modules/core-js/internals/hide.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / hide . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
var DESCRIPTORS = _ _webpack _require _ _ (
/*! ../internals/descriptors */
"./node_modules/core-js/internals/descriptors.js"
) ;
var definePropertyModule = _ _webpack _require _ _ (
/*! ../internals/object-define-property */
"./node_modules/core-js/internals/object-define-property.js"
) ;
var createPropertyDescriptor = _ _webpack _require _ _ (
/*! ../internals/create-property-descriptor */
"./node_modules/core-js/internals/create-property-descriptor.js"
) ;
module3 . exports = DESCRIPTORS ? function ( object , key , value ) {
return definePropertyModule . f ( object , key , createPropertyDescriptor ( 1 , value ) ) ;
} : function ( object , key , value ) {
object [ key ] = value ;
return object ;
} ;
}
) ,
/***/
"./node_modules/core-js/internals/html.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / html . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
var global = _ _webpack _require _ _ (
/*! ../internals/global */
"./node_modules/core-js/internals/global.js"
) ;
var document2 = global . document ;
module3 . exports = document2 && document2 . documentElement ;
}
) ,
/***/
"./node_modules/core-js/internals/ie8-dom-define.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / ie8 - dom - define . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
var DESCRIPTORS = _ _webpack _require _ _ (
/*! ../internals/descriptors */
"./node_modules/core-js/internals/descriptors.js"
) ;
var fails = _ _webpack _require _ _ (
/*! ../internals/fails */
"./node_modules/core-js/internals/fails.js"
) ;
var createElement = _ _webpack _require _ _ (
/*! ../internals/document-create-element */
"./node_modules/core-js/internals/document-create-element.js"
) ;
module3 . exports = ! DESCRIPTORS && ! fails ( function ( ) {
return Object . defineProperty ( createElement ( "div" ) , "a" , {
get : function ( ) {
return 7 ;
}
} ) . a != 7 ;
} ) ;
}
) ,
/***/
"./node_modules/core-js/internals/indexed-object.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / indexed - object . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
var fails = _ _webpack _require _ _ (
/*! ../internals/fails */
"./node_modules/core-js/internals/fails.js"
) ;
var classof = _ _webpack _require _ _ (
/*! ../internals/classof-raw */
"./node_modules/core-js/internals/classof-raw.js"
) ;
var split = "" . split ;
module3 . exports = fails ( function ( ) {
return ! Object ( "z" ) . propertyIsEnumerable ( 0 ) ;
} ) ? function ( it ) {
return classof ( it ) == "String" ? split . call ( it , "" ) : Object ( it ) ;
} : Object ;
}
) ,
/***/
"./node_modules/core-js/internals/internal-state.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / internal - state . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
var NATIVE _WEAK _MAP = _ _webpack _require _ _ (
/*! ../internals/native-weak-map */
"./node_modules/core-js/internals/native-weak-map.js"
) ;
var global = _ _webpack _require _ _ (
/*! ../internals/global */
"./node_modules/core-js/internals/global.js"
) ;
var isObject = _ _webpack _require _ _ (
/*! ../internals/is-object */
"./node_modules/core-js/internals/is-object.js"
) ;
var hide = _ _webpack _require _ _ (
/*! ../internals/hide */
"./node_modules/core-js/internals/hide.js"
) ;
var objectHas = _ _webpack _require _ _ (
/*! ../internals/has */
"./node_modules/core-js/internals/has.js"
) ;
var sharedKey = _ _webpack _require _ _ (
/*! ../internals/shared-key */
"./node_modules/core-js/internals/shared-key.js"
) ;
var hiddenKeys = _ _webpack _require _ _ (
/*! ../internals/hidden-keys */
"./node_modules/core-js/internals/hidden-keys.js"
) ;
var WeakMap = global . WeakMap ;
var set , get , has ;
var enforce = function ( it ) {
return has ( it ) ? get ( it ) : set ( it , { } ) ;
} ;
var getterFor = function ( TYPE ) {
return function ( it ) {
var state ;
if ( ! isObject ( it ) || ( state = get ( it ) ) . type !== TYPE ) {
throw TypeError ( "Incompatible receiver, " + TYPE + " required" ) ;
}
return state ;
} ;
} ;
if ( NATIVE _WEAK _MAP ) {
var store = new WeakMap ( ) ;
var wmget = store . get ;
var wmhas = store . has ;
var wmset = store . set ;
set = function ( it , metadata ) {
wmset . call ( store , it , metadata ) ;
return metadata ;
} ;
get = function ( it ) {
return wmget . call ( store , it ) || { } ;
} ;
has = function ( it ) {
return wmhas . call ( store , it ) ;
} ;
} else {
var STATE = sharedKey ( "state" ) ;
hiddenKeys [ STATE ] = true ;
set = function ( it , metadata ) {
hide ( it , STATE , metadata ) ;
return metadata ;
} ;
get = function ( it ) {
return objectHas ( it , STATE ) ? it [ STATE ] : { } ;
} ;
has = function ( it ) {
return objectHas ( it , STATE ) ;
} ;
}
module3 . exports = {
set ,
get ,
has ,
enforce ,
getterFor
} ;
}
) ,
/***/
"./node_modules/core-js/internals/is-array-iterator-method.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / is - array - iterator - method . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
var wellKnownSymbol = _ _webpack _require _ _ (
/*! ../internals/well-known-symbol */
"./node_modules/core-js/internals/well-known-symbol.js"
) ;
var Iterators = _ _webpack _require _ _ (
/*! ../internals/iterators */
"./node_modules/core-js/internals/iterators.js"
) ;
var ITERATOR = wellKnownSymbol ( "iterator" ) ;
var ArrayPrototype = Array . prototype ;
module3 . exports = function ( it ) {
return it !== void 0 && ( Iterators . Array === it || ArrayPrototype [ ITERATOR ] === it ) ;
} ;
}
) ,
/***/
"./node_modules/core-js/internals/is-forced.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / is - forced . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
var fails = _ _webpack _require _ _ (
/*! ../internals/fails */
"./node_modules/core-js/internals/fails.js"
) ;
var replacement = /#|\.prototype\./ ;
var isForced = function ( feature , detection ) {
var value = data [ normalize ( feature ) ] ;
return value == POLYFILL ? true : value == NATIVE ? false : typeof detection == "function" ? fails ( detection ) : ! ! detection ;
} ;
var normalize = isForced . normalize = function ( string ) {
return String ( string ) . replace ( replacement , "." ) . toLowerCase ( ) ;
} ;
var data = isForced . data = { } ;
var NATIVE = isForced . NATIVE = "N" ;
var POLYFILL = isForced . POLYFILL = "P" ;
module3 . exports = isForced ;
}
) ,
/***/
"./node_modules/core-js/internals/is-object.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / is - object . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 ) {
module3 . exports = function ( it ) {
return typeof it === "object" ? it !== null : typeof it === "function" ;
} ;
}
) ,
/***/
"./node_modules/core-js/internals/is-pure.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / is - pure . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 ) {
module3 . exports = false ;
}
) ,
/***/
"./node_modules/core-js/internals/iterators-core.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / iterators - core . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
"use strict" ;
var getPrototypeOf = _ _webpack _require _ _ (
/*! ../internals/object-get-prototype-of */
"./node_modules/core-js/internals/object-get-prototype-of.js"
) ;
var hide = _ _webpack _require _ _ (
/*! ../internals/hide */
"./node_modules/core-js/internals/hide.js"
) ;
var has = _ _webpack _require _ _ (
/*! ../internals/has */
"./node_modules/core-js/internals/has.js"
) ;
var wellKnownSymbol = _ _webpack _require _ _ (
/*! ../internals/well-known-symbol */
"./node_modules/core-js/internals/well-known-symbol.js"
) ;
var IS _PURE = _ _webpack _require _ _ (
/*! ../internals/is-pure */
"./node_modules/core-js/internals/is-pure.js"
) ;
var ITERATOR = wellKnownSymbol ( "iterator" ) ;
var BUGGY _SAFARI _ITERATORS = false ;
var returnThis = function ( ) {
return this ;
} ;
var IteratorPrototype , PrototypeOfArrayIteratorPrototype , arrayIterator ;
if ( [ ] . keys ) {
arrayIterator = [ ] . keys ( ) ;
if ( ! ( "next" in arrayIterator ) )
BUGGY _SAFARI _ITERATORS = true ;
else {
PrototypeOfArrayIteratorPrototype = getPrototypeOf ( getPrototypeOf ( arrayIterator ) ) ;
if ( PrototypeOfArrayIteratorPrototype !== Object . prototype )
IteratorPrototype = PrototypeOfArrayIteratorPrototype ;
}
}
if ( IteratorPrototype == void 0 )
IteratorPrototype = { } ;
if ( ! IS _PURE && ! has ( IteratorPrototype , ITERATOR ) )
hide ( IteratorPrototype , ITERATOR , returnThis ) ;
module3 . exports = {
IteratorPrototype ,
BUGGY _SAFARI _ITERATORS
} ;
}
) ,
/***/
"./node_modules/core-js/internals/iterators.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / iterators . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 ) {
module3 . exports = { } ;
}
) ,
/***/
"./node_modules/core-js/internals/native-symbol.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / native - symbol . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
var fails = _ _webpack _require _ _ (
/*! ../internals/fails */
"./node_modules/core-js/internals/fails.js"
) ;
module3 . exports = ! ! Object . getOwnPropertySymbols && ! fails ( function ( ) {
return ! String ( Symbol ( ) ) ;
} ) ;
}
) ,
/***/
"./node_modules/core-js/internals/native-weak-map.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / native - weak - map . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
var global = _ _webpack _require _ _ (
/*! ../internals/global */
"./node_modules/core-js/internals/global.js"
) ;
var nativeFunctionToString = _ _webpack _require _ _ (
/*! ../internals/function-to-string */
"./node_modules/core-js/internals/function-to-string.js"
) ;
var WeakMap = global . WeakMap ;
module3 . exports = typeof WeakMap === "function" && /native code/ . test ( nativeFunctionToString . call ( WeakMap ) ) ;
}
) ,
/***/
"./node_modules/core-js/internals/object-create.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / object - create . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
var anObject = _ _webpack _require _ _ (
/*! ../internals/an-object */
"./node_modules/core-js/internals/an-object.js"
) ;
var defineProperties = _ _webpack _require _ _ (
/*! ../internals/object-define-properties */
"./node_modules/core-js/internals/object-define-properties.js"
) ;
var enumBugKeys = _ _webpack _require _ _ (
/*! ../internals/enum-bug-keys */
"./node_modules/core-js/internals/enum-bug-keys.js"
) ;
var hiddenKeys = _ _webpack _require _ _ (
/*! ../internals/hidden-keys */
"./node_modules/core-js/internals/hidden-keys.js"
) ;
var html = _ _webpack _require _ _ (
/*! ../internals/html */
"./node_modules/core-js/internals/html.js"
) ;
var documentCreateElement = _ _webpack _require _ _ (
/*! ../internals/document-create-element */
"./node_modules/core-js/internals/document-create-element.js"
) ;
var sharedKey = _ _webpack _require _ _ (
/*! ../internals/shared-key */
"./node_modules/core-js/internals/shared-key.js"
) ;
var IE _PROTO = sharedKey ( "IE_PROTO" ) ;
var PROTOTYPE = "prototype" ;
var Empty = function ( ) {
} ;
var createDict = function ( ) {
var iframe = documentCreateElement ( "iframe" ) ;
var length = enumBugKeys . length ;
var lt = "<" ;
var script = "script" ;
var gt = ">" ;
var js = "java" + script + ":" ;
var iframeDocument ;
iframe . style . display = "none" ;
html . appendChild ( iframe ) ;
iframe . src = String ( js ) ;
iframeDocument = iframe . contentWindow . document ;
iframeDocument . open ( ) ;
iframeDocument . write ( lt + script + gt + "document.F=Object" + lt + "/" + script + gt ) ;
iframeDocument . close ( ) ;
createDict = iframeDocument . F ;
while ( length -- )
delete createDict [ PROTOTYPE ] [ enumBugKeys [ length ] ] ;
return createDict ( ) ;
} ;
module3 . exports = Object . create || function create ( O , Properties ) {
var result ;
if ( O !== null ) {
Empty [ PROTOTYPE ] = anObject ( O ) ;
result = new Empty ( ) ;
Empty [ PROTOTYPE ] = null ;
result [ IE _PROTO ] = O ;
} else
result = createDict ( ) ;
return Properties === void 0 ? result : defineProperties ( result , Properties ) ;
} ;
hiddenKeys [ IE _PROTO ] = true ;
}
) ,
/***/
"./node_modules/core-js/internals/object-define-properties.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / object - define - properties . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
var DESCRIPTORS = _ _webpack _require _ _ (
/*! ../internals/descriptors */
"./node_modules/core-js/internals/descriptors.js"
) ;
var definePropertyModule = _ _webpack _require _ _ (
/*! ../internals/object-define-property */
"./node_modules/core-js/internals/object-define-property.js"
) ;
var anObject = _ _webpack _require _ _ (
/*! ../internals/an-object */
"./node_modules/core-js/internals/an-object.js"
) ;
var objectKeys = _ _webpack _require _ _ (
/*! ../internals/object-keys */
"./node_modules/core-js/internals/object-keys.js"
) ;
module3 . exports = DESCRIPTORS ? Object . defineProperties : function defineProperties ( O , Properties ) {
anObject ( O ) ;
var keys = objectKeys ( Properties ) ;
var length = keys . length ;
var i = 0 ;
var key ;
while ( length > i )
definePropertyModule . f ( O , key = keys [ i ++ ] , Properties [ key ] ) ;
return O ;
} ;
}
) ,
/***/
"./node_modules/core-js/internals/object-define-property.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / object - define - property . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
var DESCRIPTORS = _ _webpack _require _ _ (
/*! ../internals/descriptors */
"./node_modules/core-js/internals/descriptors.js"
) ;
var IE8 _DOM _DEFINE = _ _webpack _require _ _ (
/*! ../internals/ie8-dom-define */
"./node_modules/core-js/internals/ie8-dom-define.js"
) ;
var anObject = _ _webpack _require _ _ (
/*! ../internals/an-object */
"./node_modules/core-js/internals/an-object.js"
) ;
var toPrimitive = _ _webpack _require _ _ (
/*! ../internals/to-primitive */
"./node_modules/core-js/internals/to-primitive.js"
) ;
var nativeDefineProperty = Object . defineProperty ;
exports2 . f = DESCRIPTORS ? nativeDefineProperty : function defineProperty ( O , P , Attributes ) {
anObject ( O ) ;
P = toPrimitive ( P , true ) ;
anObject ( Attributes ) ;
if ( IE8 _DOM _DEFINE )
try {
return nativeDefineProperty ( O , P , Attributes ) ;
} catch ( error ) {
}
if ( "get" in Attributes || "set" in Attributes )
throw TypeError ( "Accessors not supported" ) ;
if ( "value" in Attributes )
O [ P ] = Attributes . value ;
return O ;
} ;
}
) ,
/***/
"./node_modules/core-js/internals/object-get-own-property-descriptor.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / object - get - own - property - descriptor . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
var DESCRIPTORS = _ _webpack _require _ _ (
/*! ../internals/descriptors */
"./node_modules/core-js/internals/descriptors.js"
) ;
var propertyIsEnumerableModule = _ _webpack _require _ _ (
/*! ../internals/object-property-is-enumerable */
"./node_modules/core-js/internals/object-property-is-enumerable.js"
) ;
var createPropertyDescriptor = _ _webpack _require _ _ (
/*! ../internals/create-property-descriptor */
"./node_modules/core-js/internals/create-property-descriptor.js"
) ;
var toIndexedObject = _ _webpack _require _ _ (
/*! ../internals/to-indexed-object */
"./node_modules/core-js/internals/to-indexed-object.js"
) ;
var toPrimitive = _ _webpack _require _ _ (
/*! ../internals/to-primitive */
"./node_modules/core-js/internals/to-primitive.js"
) ;
var has = _ _webpack _require _ _ (
/*! ../internals/has */
"./node_modules/core-js/internals/has.js"
) ;
var IE8 _DOM _DEFINE = _ _webpack _require _ _ (
/*! ../internals/ie8-dom-define */
"./node_modules/core-js/internals/ie8-dom-define.js"
) ;
var nativeGetOwnPropertyDescriptor = Object . getOwnPropertyDescriptor ;
exports2 . f = DESCRIPTORS ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor ( O , P ) {
O = toIndexedObject ( O ) ;
P = toPrimitive ( P , true ) ;
if ( IE8 _DOM _DEFINE )
try {
return nativeGetOwnPropertyDescriptor ( O , P ) ;
} catch ( error ) {
}
if ( has ( O , P ) )
return createPropertyDescriptor ( ! propertyIsEnumerableModule . f . call ( O , P ) , O [ P ] ) ;
} ;
}
) ,
/***/
"./node_modules/core-js/internals/object-get-own-property-names.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / object - get - own - property - names . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
var internalObjectKeys = _ _webpack _require _ _ (
/*! ../internals/object-keys-internal */
"./node_modules/core-js/internals/object-keys-internal.js"
) ;
var enumBugKeys = _ _webpack _require _ _ (
/*! ../internals/enum-bug-keys */
"./node_modules/core-js/internals/enum-bug-keys.js"
) ;
var hiddenKeys = enumBugKeys . concat ( "length" , "prototype" ) ;
exports2 . f = Object . getOwnPropertyNames || function getOwnPropertyNames ( O ) {
return internalObjectKeys ( O , hiddenKeys ) ;
} ;
}
) ,
/***/
"./node_modules/core-js/internals/object-get-own-property-symbols.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / object - get - own - property - symbols . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 ) {
exports2 . f = Object . getOwnPropertySymbols ;
}
) ,
/***/
"./node_modules/core-js/internals/object-get-prototype-of.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / object - get - prototype - of . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
var has = _ _webpack _require _ _ (
/*! ../internals/has */
"./node_modules/core-js/internals/has.js"
) ;
var toObject = _ _webpack _require _ _ (
/*! ../internals/to-object */
"./node_modules/core-js/internals/to-object.js"
) ;
var sharedKey = _ _webpack _require _ _ (
/*! ../internals/shared-key */
"./node_modules/core-js/internals/shared-key.js"
) ;
var CORRECT _PROTOTYPE _GETTER = _ _webpack _require _ _ (
/*! ../internals/correct-prototype-getter */
"./node_modules/core-js/internals/correct-prototype-getter.js"
) ;
var IE _PROTO = sharedKey ( "IE_PROTO" ) ;
var ObjectPrototype = Object . prototype ;
module3 . exports = CORRECT _PROTOTYPE _GETTER ? Object . getPrototypeOf : function ( O ) {
O = toObject ( O ) ;
if ( has ( O , IE _PROTO ) )
return O [ IE _PROTO ] ;
if ( typeof O . constructor == "function" && O instanceof O . constructor ) {
return O . constructor . prototype ;
}
return O instanceof Object ? ObjectPrototype : null ;
} ;
}
) ,
/***/
"./node_modules/core-js/internals/object-keys-internal.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / object - keys - internal . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
var has = _ _webpack _require _ _ (
/*! ../internals/has */
"./node_modules/core-js/internals/has.js"
) ;
var toIndexedObject = _ _webpack _require _ _ (
/*! ../internals/to-indexed-object */
"./node_modules/core-js/internals/to-indexed-object.js"
) ;
var arrayIncludes = _ _webpack _require _ _ (
/*! ../internals/array-includes */
"./node_modules/core-js/internals/array-includes.js"
) ;
var hiddenKeys = _ _webpack _require _ _ (
/*! ../internals/hidden-keys */
"./node_modules/core-js/internals/hidden-keys.js"
) ;
var arrayIndexOf = arrayIncludes ( false ) ;
module3 . exports = function ( object , names ) {
var O = toIndexedObject ( object ) ;
var i = 0 ;
var result = [ ] ;
var key ;
for ( key in O )
! has ( hiddenKeys , key ) && has ( O , key ) && result . push ( key ) ;
while ( names . length > i )
if ( has ( O , key = names [ i ++ ] ) ) {
~ arrayIndexOf ( result , key ) || result . push ( key ) ;
}
return result ;
} ;
}
) ,
/***/
"./node_modules/core-js/internals/object-keys.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / object - keys . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
var internalObjectKeys = _ _webpack _require _ _ (
/*! ../internals/object-keys-internal */
"./node_modules/core-js/internals/object-keys-internal.js"
) ;
var enumBugKeys = _ _webpack _require _ _ (
/*! ../internals/enum-bug-keys */
"./node_modules/core-js/internals/enum-bug-keys.js"
) ;
module3 . exports = Object . keys || function keys ( O ) {
return internalObjectKeys ( O , enumBugKeys ) ;
} ;
}
) ,
/***/
"./node_modules/core-js/internals/object-property-is-enumerable.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / object - property - is - enumerable . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
"use strict" ;
var nativePropertyIsEnumerable = { } . propertyIsEnumerable ;
var getOwnPropertyDescriptor = Object . getOwnPropertyDescriptor ;
var NASHORN _BUG = getOwnPropertyDescriptor && ! nativePropertyIsEnumerable . call ( { 1 : 2 } , 1 ) ;
exports2 . f = NASHORN _BUG ? function propertyIsEnumerable ( V ) {
var descriptor = getOwnPropertyDescriptor ( this , V ) ;
return ! ! descriptor && descriptor . enumerable ;
} : nativePropertyIsEnumerable ;
}
) ,
/***/
"./node_modules/core-js/internals/object-set-prototype-of.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / object - set - prototype - of . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
var validateSetPrototypeOfArguments = _ _webpack _require _ _ (
/*! ../internals/validate-set-prototype-of-arguments */
"./node_modules/core-js/internals/validate-set-prototype-of-arguments.js"
) ;
module3 . exports = Object . setPrototypeOf || ( "__proto__" in { } ? function ( ) {
var correctSetter = false ;
var test = { } ;
var setter ;
try {
setter = Object . getOwnPropertyDescriptor ( Object . prototype , "__proto__" ) . set ;
setter . call ( test , [ ] ) ;
correctSetter = test instanceof Array ;
} catch ( error ) {
}
return function setPrototypeOf ( O , proto ) {
validateSetPrototypeOfArguments ( O , proto ) ;
if ( correctSetter )
setter . call ( O , proto ) ;
else
O . _ _proto _ _ = proto ;
return O ;
} ;
} ( ) : void 0 ) ;
}
) ,
/***/
"./node_modules/core-js/internals/own-keys.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / own - keys . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
var global = _ _webpack _require _ _ (
/*! ../internals/global */
"./node_modules/core-js/internals/global.js"
) ;
var getOwnPropertyNamesModule = _ _webpack _require _ _ (
/*! ../internals/object-get-own-property-names */
"./node_modules/core-js/internals/object-get-own-property-names.js"
) ;
var getOwnPropertySymbolsModule = _ _webpack _require _ _ (
/*! ../internals/object-get-own-property-symbols */
"./node_modules/core-js/internals/object-get-own-property-symbols.js"
) ;
var anObject = _ _webpack _require _ _ (
/*! ../internals/an-object */
"./node_modules/core-js/internals/an-object.js"
) ;
var Reflect2 = global . Reflect ;
module3 . exports = Reflect2 && Reflect2 . ownKeys || function ownKeys ( it ) {
var keys = getOwnPropertyNamesModule . f ( anObject ( it ) ) ;
var getOwnPropertySymbols = getOwnPropertySymbolsModule . f ;
return getOwnPropertySymbols ? keys . concat ( getOwnPropertySymbols ( it ) ) : keys ;
} ;
}
) ,
/***/
"./node_modules/core-js/internals/path.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / path . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
module3 . exports = _ _webpack _require _ _ (
/*! ../internals/global */
"./node_modules/core-js/internals/global.js"
) ;
}
) ,
/***/
"./node_modules/core-js/internals/redefine.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / redefine . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
var global = _ _webpack _require _ _ (
/*! ../internals/global */
"./node_modules/core-js/internals/global.js"
) ;
var shared = _ _webpack _require _ _ (
/*! ../internals/shared */
"./node_modules/core-js/internals/shared.js"
) ;
var hide = _ _webpack _require _ _ (
/*! ../internals/hide */
"./node_modules/core-js/internals/hide.js"
) ;
var has = _ _webpack _require _ _ (
/*! ../internals/has */
"./node_modules/core-js/internals/has.js"
) ;
var setGlobal = _ _webpack _require _ _ (
/*! ../internals/set-global */
"./node_modules/core-js/internals/set-global.js"
) ;
var nativeFunctionToString = _ _webpack _require _ _ (
/*! ../internals/function-to-string */
"./node_modules/core-js/internals/function-to-string.js"
) ;
var InternalStateModule = _ _webpack _require _ _ (
/*! ../internals/internal-state */
"./node_modules/core-js/internals/internal-state.js"
) ;
var getInternalState = InternalStateModule . get ;
var enforceInternalState = InternalStateModule . enforce ;
var TEMPLATE = String ( nativeFunctionToString ) . split ( "toString" ) ;
shared ( "inspectSource" , function ( it ) {
return nativeFunctionToString . call ( it ) ;
} ) ;
( module3 . exports = function ( O , key , value , options ) {
var unsafe = options ? ! ! options . unsafe : false ;
var simple = options ? ! ! options . enumerable : false ;
var noTargetGet = options ? ! ! options . noTargetGet : false ;
if ( typeof value == "function" ) {
if ( typeof key == "string" && ! has ( value , "name" ) )
hide ( value , "name" , key ) ;
enforceInternalState ( value ) . source = TEMPLATE . join ( typeof key == "string" ? key : "" ) ;
}
if ( O === global ) {
if ( simple )
O [ key ] = value ;
else
setGlobal ( key , value ) ;
return ;
} else if ( ! unsafe ) {
delete O [ key ] ;
} else if ( ! noTargetGet && O [ key ] ) {
simple = true ;
}
if ( simple )
O [ key ] = value ;
else
hide ( O , key , value ) ;
} ) ( Function . prototype , "toString" , function toString ( ) {
return typeof this == "function" && getInternalState ( this ) . source || nativeFunctionToString . call ( this ) ;
} ) ;
}
) ,
/***/
"./node_modules/core-js/internals/require-object-coercible.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / require - object - coercible . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 ) {
module3 . exports = function ( it ) {
if ( it == void 0 )
throw TypeError ( "Can't call method on " + it ) ;
return it ;
} ;
}
) ,
/***/
"./node_modules/core-js/internals/set-global.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / set - global . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
var global = _ _webpack _require _ _ (
/*! ../internals/global */
"./node_modules/core-js/internals/global.js"
) ;
var hide = _ _webpack _require _ _ (
/*! ../internals/hide */
"./node_modules/core-js/internals/hide.js"
) ;
module3 . exports = function ( key , value ) {
try {
hide ( global , key , value ) ;
} catch ( error ) {
global [ key ] = value ;
}
return value ;
} ;
}
) ,
/***/
"./node_modules/core-js/internals/set-to-string-tag.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / set - to - string - tag . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
var defineProperty = _ _webpack _require _ _ (
/*! ../internals/object-define-property */
"./node_modules/core-js/internals/object-define-property.js"
) . f ;
var has = _ _webpack _require _ _ (
/*! ../internals/has */
"./node_modules/core-js/internals/has.js"
) ;
var wellKnownSymbol = _ _webpack _require _ _ (
/*! ../internals/well-known-symbol */
"./node_modules/core-js/internals/well-known-symbol.js"
) ;
var TO _STRING _TAG = wellKnownSymbol ( "toStringTag" ) ;
module3 . exports = function ( it , TAG , STATIC ) {
if ( it && ! has ( it = STATIC ? it : it . prototype , TO _STRING _TAG ) ) {
defineProperty ( it , TO _STRING _TAG , { configurable : true , value : TAG } ) ;
}
} ;
}
) ,
/***/
"./node_modules/core-js/internals/shared-key.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / shared - key . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
var shared = _ _webpack _require _ _ (
/*! ../internals/shared */
"./node_modules/core-js/internals/shared.js"
) ;
var uid = _ _webpack _require _ _ (
/*! ../internals/uid */
"./node_modules/core-js/internals/uid.js"
) ;
var keys = shared ( "keys" ) ;
module3 . exports = function ( key ) {
return keys [ key ] || ( keys [ key ] = uid ( key ) ) ;
} ;
}
) ,
/***/
"./node_modules/core-js/internals/shared.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / shared . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
var global = _ _webpack _require _ _ (
/*! ../internals/global */
"./node_modules/core-js/internals/global.js"
) ;
var setGlobal = _ _webpack _require _ _ (
/*! ../internals/set-global */
"./node_modules/core-js/internals/set-global.js"
) ;
var IS _PURE = _ _webpack _require _ _ (
/*! ../internals/is-pure */
"./node_modules/core-js/internals/is-pure.js"
) ;
var SHARED = "__core-js_shared__" ;
var store = global [ SHARED ] || setGlobal ( SHARED , { } ) ;
( module3 . exports = function ( key , value ) {
return store [ key ] || ( store [ key ] = value !== void 0 ? value : { } ) ;
} ) ( "versions" , [ ] ) . push ( {
version : "3.1.3" ,
mode : IS _PURE ? "pure" : "global" ,
copyright : "\xA9 2019 Denis Pushkarev (zloirock.ru)"
} ) ;
}
) ,
/***/
"./node_modules/core-js/internals/string-at.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / string - at . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
var toInteger = _ _webpack _require _ _ (
/*! ../internals/to-integer */
"./node_modules/core-js/internals/to-integer.js"
) ;
var requireObjectCoercible = _ _webpack _require _ _ (
/*! ../internals/require-object-coercible */
"./node_modules/core-js/internals/require-object-coercible.js"
) ;
module3 . exports = function ( that , pos , CONVERT _TO _STRING ) {
var S = String ( requireObjectCoercible ( that ) ) ;
var position = toInteger ( pos ) ;
var size = S . length ;
var first , second ;
if ( position < 0 || position >= size )
return CONVERT _TO _STRING ? "" : void 0 ;
first = S . charCodeAt ( position ) ;
return first < 55296 || first > 56319 || position + 1 === size || ( second = S . charCodeAt ( position + 1 ) ) < 56320 || second > 57343 ? CONVERT _TO _STRING ? S . charAt ( position ) : first : CONVERT _TO _STRING ? S . slice ( position , position + 2 ) : ( first - 55296 << 10 ) + ( second - 56320 ) + 65536 ;
} ;
}
) ,
/***/
"./node_modules/core-js/internals/to-absolute-index.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / to - absolute - index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
var toInteger = _ _webpack _require _ _ (
/*! ../internals/to-integer */
"./node_modules/core-js/internals/to-integer.js"
) ;
var max = Math . max ;
var min = Math . min ;
module3 . exports = function ( index , length ) {
var integer = toInteger ( index ) ;
return integer < 0 ? max ( integer + length , 0 ) : min ( integer , length ) ;
} ;
}
) ,
/***/
"./node_modules/core-js/internals/to-indexed-object.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / to - indexed - object . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
var IndexedObject = _ _webpack _require _ _ (
/*! ../internals/indexed-object */
"./node_modules/core-js/internals/indexed-object.js"
) ;
var requireObjectCoercible = _ _webpack _require _ _ (
/*! ../internals/require-object-coercible */
"./node_modules/core-js/internals/require-object-coercible.js"
) ;
module3 . exports = function ( it ) {
return IndexedObject ( requireObjectCoercible ( it ) ) ;
} ;
}
) ,
/***/
"./node_modules/core-js/internals/to-integer.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / to - integer . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 ) {
var ceil = Math . ceil ;
var floor = Math . floor ;
module3 . exports = function ( argument ) {
return isNaN ( argument = + argument ) ? 0 : ( argument > 0 ? floor : ceil ) ( argument ) ;
} ;
}
) ,
/***/
"./node_modules/core-js/internals/to-length.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / to - length . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
var toInteger = _ _webpack _require _ _ (
/*! ../internals/to-integer */
"./node_modules/core-js/internals/to-integer.js"
) ;
var min = Math . min ;
module3 . exports = function ( argument ) {
return argument > 0 ? min ( toInteger ( argument ) , 9007199254740991 ) : 0 ;
} ;
}
) ,
/***/
"./node_modules/core-js/internals/to-object.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / to - object . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
var requireObjectCoercible = _ _webpack _require _ _ (
/*! ../internals/require-object-coercible */
"./node_modules/core-js/internals/require-object-coercible.js"
) ;
module3 . exports = function ( argument ) {
return Object ( requireObjectCoercible ( argument ) ) ;
} ;
}
) ,
/***/
"./node_modules/core-js/internals/to-primitive.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / to - primitive . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
var isObject = _ _webpack _require _ _ (
/*! ../internals/is-object */
"./node_modules/core-js/internals/is-object.js"
) ;
module3 . exports = function ( it , S ) {
if ( ! isObject ( it ) )
return it ;
var fn , val ;
if ( S && typeof ( fn = it . toString ) == "function" && ! isObject ( val = fn . call ( it ) ) )
return val ;
if ( typeof ( fn = it . valueOf ) == "function" && ! isObject ( val = fn . call ( it ) ) )
return val ;
if ( ! S && typeof ( fn = it . toString ) == "function" && ! isObject ( val = fn . call ( it ) ) )
return val ;
throw TypeError ( "Can't convert object to primitive value" ) ;
} ;
}
) ,
/***/
"./node_modules/core-js/internals/uid.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / uid . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 ) {
var id = 0 ;
var postfix = Math . random ( ) ;
module3 . exports = function ( key ) {
return "Symbol(" . concat ( key === void 0 ? "" : key , ")_" , ( ++ id + postfix ) . toString ( 36 ) ) ;
} ;
}
) ,
/***/
"./node_modules/core-js/internals/validate-set-prototype-of-arguments.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / validate - set - prototype - of - arguments . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
var isObject = _ _webpack _require _ _ (
/*! ../internals/is-object */
"./node_modules/core-js/internals/is-object.js"
) ;
var anObject = _ _webpack _require _ _ (
/*! ../internals/an-object */
"./node_modules/core-js/internals/an-object.js"
) ;
module3 . exports = function ( O , proto ) {
anObject ( O ) ;
if ( ! isObject ( proto ) && proto !== null ) {
throw TypeError ( "Can't set " + String ( proto ) + " as a prototype" ) ;
}
} ;
}
) ,
/***/
"./node_modules/core-js/internals/well-known-symbol.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / internals / well - known - symbol . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
var global = _ _webpack _require _ _ (
/*! ../internals/global */
"./node_modules/core-js/internals/global.js"
) ;
var shared = _ _webpack _require _ _ (
/*! ../internals/shared */
"./node_modules/core-js/internals/shared.js"
) ;
var uid = _ _webpack _require _ _ (
/*! ../internals/uid */
"./node_modules/core-js/internals/uid.js"
) ;
var NATIVE _SYMBOL = _ _webpack _require _ _ (
/*! ../internals/native-symbol */
"./node_modules/core-js/internals/native-symbol.js"
) ;
var Symbol2 = global . Symbol ;
var store = shared ( "wks" ) ;
module3 . exports = function ( name ) {
return store [ name ] || ( store [ name ] = NATIVE _SYMBOL && Symbol2 [ name ] || ( NATIVE _SYMBOL ? Symbol2 : uid ) ( "Symbol." + name ) ) ;
} ;
}
) ,
/***/
"./node_modules/core-js/modules/es.array.from.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / modules / es . array . from . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
var $ = _ _webpack _require _ _ (
/*! ../internals/export */
"./node_modules/core-js/internals/export.js"
) ;
var from = _ _webpack _require _ _ (
/*! ../internals/array-from */
"./node_modules/core-js/internals/array-from.js"
) ;
var checkCorrectnessOfIteration = _ _webpack _require _ _ (
/*! ../internals/check-correctness-of-iteration */
"./node_modules/core-js/internals/check-correctness-of-iteration.js"
) ;
var INCORRECT _ITERATION = ! checkCorrectnessOfIteration ( function ( iterable ) {
Array . from ( iterable ) ;
} ) ;
$ ( { target : "Array" , stat : true , forced : INCORRECT _ITERATION } , {
from
} ) ;
}
) ,
/***/
"./node_modules/core-js/modules/es.string.iterator.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / core - js / modules / es . string . iterator . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
"use strict" ;
var codePointAt = _ _webpack _require _ _ (
/*! ../internals/string-at */
"./node_modules/core-js/internals/string-at.js"
) ;
var InternalStateModule = _ _webpack _require _ _ (
/*! ../internals/internal-state */
"./node_modules/core-js/internals/internal-state.js"
) ;
var defineIterator = _ _webpack _require _ _ (
/*! ../internals/define-iterator */
"./node_modules/core-js/internals/define-iterator.js"
) ;
var STRING _ITERATOR = "String Iterator" ;
var setInternalState = InternalStateModule . set ;
var getInternalState = InternalStateModule . getterFor ( STRING _ITERATOR ) ;
defineIterator ( String , "String" , function ( iterated ) {
setInternalState ( this , {
type : STRING _ITERATOR ,
string : String ( iterated ) ,
index : 0
} ) ;
} , function next ( ) {
var state = getInternalState ( this ) ;
var string = state . string ;
var index = state . index ;
var point ;
if ( index >= string . length )
return { value : void 0 , done : true } ;
point = codePointAt ( string , index , true ) ;
state . index += point . length ;
return { value : point , done : false } ;
} ) ;
}
) ,
/***/
"./node_modules/webpack/buildin/global.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * ( webpack ) / buildin / global . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 ) {
var g ;
g = function ( ) {
return this ;
} ( ) ;
try {
g = g || Function ( "return this" ) ( ) || ( 1 , eval ) ( "this" ) ;
} catch ( e ) {
if ( typeof window === "object" )
g = window ;
}
module3 . exports = g ;
}
) ,
/***/
"./src/default-attrs.json" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / src / default - attrs . json * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! exports provided: xmlns, width, height, viewBox, fill, stroke, stroke-width, stroke-linecap, stroke-linejoin, default */
/***/
function ( module3 ) {
module3 . exports = { "xmlns" : "http://www.w3.org/2000/svg" , "width" : 24 , "height" : 24 , "viewBox" : "0 0 24 24" , "fill" : "none" , "stroke" : "currentColor" , "stroke-width" : 2 , "stroke-linecap" : "round" , "stroke-linejoin" : "round" } ;
}
) ,
/***/
"./src/icon.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / src / icon . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
"use strict" ;
Object . defineProperty ( exports2 , "__esModule" , {
value : true
} ) ;
var _extends = Object . assign || function ( target ) {
for ( var i = 1 ; i < arguments . length ; i ++ ) {
var source = arguments [ i ] ;
for ( var key in source ) {
if ( Object . prototype . hasOwnProperty . call ( source , key ) ) {
target [ key ] = source [ key ] ;
}
}
}
return target ;
} ;
var _createClass = function ( ) {
function defineProperties ( target , props ) {
for ( var i = 0 ; i < props . length ; i ++ ) {
var descriptor = props [ i ] ;
descriptor . enumerable = descriptor . enumerable || false ;
descriptor . configurable = true ;
if ( "value" in descriptor )
descriptor . writable = true ;
Object . defineProperty ( target , descriptor . key , descriptor ) ;
}
}
return function ( Constructor , protoProps , staticProps ) {
if ( protoProps )
defineProperties ( Constructor . prototype , protoProps ) ;
if ( staticProps )
defineProperties ( Constructor , staticProps ) ;
return Constructor ;
} ;
} ( ) ;
var _dedupe = _ _webpack _require _ _ (
/*! classnames/dedupe */
"./node_modules/classnames/dedupe.js"
) ;
var _dedupe2 = _interopRequireDefault ( _dedupe ) ;
var _defaultAttrs = _ _webpack _require _ _ (
/*! ./default-attrs.json */
"./src/default-attrs.json"
) ;
var _defaultAttrs2 = _interopRequireDefault ( _defaultAttrs ) ;
function _interopRequireDefault ( obj ) {
return obj && obj . _ _esModule ? obj : { default : obj } ;
}
function _classCallCheck ( instance , Constructor ) {
if ( ! ( instance instanceof Constructor ) ) {
throw new TypeError ( "Cannot call a class as a function" ) ;
}
}
var Icon = function ( ) {
function Icon2 ( name , contents ) {
var tags = arguments . length > 2 && arguments [ 2 ] !== void 0 ? arguments [ 2 ] : [ ] ;
_classCallCheck ( this , Icon2 ) ;
this . name = name ;
this . contents = contents ;
this . tags = tags ;
this . attrs = _extends ( { } , _defaultAttrs2 . default , { class : "feather feather-" + name } ) ;
}
_createClass ( Icon2 , [ {
key : "toSvg" ,
value : function toSvg ( ) {
var attrs = arguments . length > 0 && arguments [ 0 ] !== void 0 ? arguments [ 0 ] : { } ;
var combinedAttrs = _extends ( { } , this . attrs , attrs , { class : ( 0 , _dedupe2 . default ) ( this . attrs . class , attrs . class ) } ) ;
return "<svg " + attrsToString ( combinedAttrs ) + ">" + this . contents + "</svg>" ;
}
/ * *
* Return string representation of an ` Icon ` .
*
* Added for backward compatibility . If old code expects ` feather.icons.<name> `
* to be a string , ` toString() ` will get implicitly called .
*
* @ returns { string }
* /
} , {
key : "toString" ,
value : function toString ( ) {
return this . contents ;
}
} ] ) ;
return Icon2 ;
} ( ) ;
function attrsToString ( attrs ) {
return Object . keys ( attrs ) . map ( function ( key ) {
return key + '="' + attrs [ key ] + '"' ;
} ) . join ( " " ) ;
}
exports2 . default = Icon ;
}
) ,
/***/
"./src/icons.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / src / icons . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
"use strict" ;
Object . defineProperty ( exports2 , "__esModule" , {
value : true
} ) ;
var _icon = _ _webpack _require _ _ (
/*! ./icon */
"./src/icon.js"
) ;
var _icon2 = _interopRequireDefault ( _icon ) ;
var _icons = _ _webpack _require _ _ (
/*! ../dist/icons.json */
"./dist/icons.json"
) ;
var _icons2 = _interopRequireDefault ( _icons ) ;
var _tags = _ _webpack _require _ _ (
/*! ./tags.json */
"./src/tags.json"
) ;
var _tags2 = _interopRequireDefault ( _tags ) ;
function _interopRequireDefault ( obj ) {
return obj && obj . _ _esModule ? obj : { default : obj } ;
}
exports2 . default = Object . keys ( _icons2 . default ) . map ( function ( key ) {
return new _icon2 . default ( key , _icons2 . default [ key ] , _tags2 . default [ key ] ) ;
} ) . reduce ( function ( object , icon ) {
object [ icon . name ] = icon ;
return object ;
} , { } ) ;
}
) ,
/***/
"./src/index.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / src / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
"use strict" ;
var _icons = _ _webpack _require _ _ (
/*! ./icons */
"./src/icons.js"
) ;
var _icons2 = _interopRequireDefault ( _icons ) ;
var _toSvg = _ _webpack _require _ _ (
/*! ./to-svg */
"./src/to-svg.js"
) ;
var _toSvg2 = _interopRequireDefault ( _toSvg ) ;
var _replace = _ _webpack _require _ _ (
/*! ./replace */
"./src/replace.js"
) ;
var _replace2 = _interopRequireDefault ( _replace ) ;
function _interopRequireDefault ( obj ) {
return obj && obj . _ _esModule ? obj : { default : obj } ;
}
module3 . exports = { icons : _icons2 . default , toSvg : _toSvg2 . default , replace : _replace2 . default } ;
}
) ,
/***/
"./src/replace.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / src / replace . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
"use strict" ;
Object . defineProperty ( exports2 , "__esModule" , {
value : true
} ) ;
var _extends = Object . assign || function ( target ) {
for ( var i = 1 ; i < arguments . length ; i ++ ) {
var source = arguments [ i ] ;
for ( var key in source ) {
if ( Object . prototype . hasOwnProperty . call ( source , key ) ) {
target [ key ] = source [ key ] ;
}
}
}
return target ;
} ;
var _dedupe = _ _webpack _require _ _ (
/*! classnames/dedupe */
"./node_modules/classnames/dedupe.js"
) ;
var _dedupe2 = _interopRequireDefault ( _dedupe ) ;
var _icons = _ _webpack _require _ _ (
/*! ./icons */
"./src/icons.js"
) ;
var _icons2 = _interopRequireDefault ( _icons ) ;
function _interopRequireDefault ( obj ) {
return obj && obj . _ _esModule ? obj : { default : obj } ;
}
function replace ( ) {
var attrs = arguments . length > 0 && arguments [ 0 ] !== void 0 ? arguments [ 0 ] : { } ;
if ( typeof document === "undefined" ) {
throw new Error ( "`feather.replace()` only works in a browser environment." ) ;
}
var elementsToReplace = document . querySelectorAll ( "[data-feather]" ) ;
Array . from ( elementsToReplace ) . forEach ( function ( element ) {
return replaceElement ( element , attrs ) ;
} ) ;
}
function replaceElement ( element ) {
var attrs = arguments . length > 1 && arguments [ 1 ] !== void 0 ? arguments [ 1 ] : { } ;
var elementAttrs = getAttrs ( element ) ;
var name = elementAttrs [ "data-feather" ] ;
delete elementAttrs [ "data-feather" ] ;
var svgString = _icons2 . default [ name ] . toSvg ( _extends ( { } , attrs , elementAttrs , { class : ( 0 , _dedupe2 . default ) ( attrs . class , elementAttrs . class ) } ) ) ;
var svgDocument = new DOMParser ( ) . parseFromString ( svgString , "image/svg+xml" ) ;
var svgElement = svgDocument . querySelector ( "svg" ) ;
element . parentNode . replaceChild ( svgElement , element ) ;
}
function getAttrs ( element ) {
return Array . from ( element . attributes ) . reduce ( function ( attrs , attr ) {
attrs [ attr . name ] = attr . value ;
return attrs ;
} , { } ) ;
}
exports2 . default = replace ;
}
) ,
/***/
"./src/tags.json" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / src / tags . json * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * /
/*! exports provided: activity, airplay, alert-circle, alert-octagon, alert-triangle, align-center, align-justify, align-left, align-right, anchor, archive, at-sign, award, aperture, bar-chart, bar-chart-2, battery, battery-charging, bell, bell-off, bluetooth, book-open, book, bookmark, box, briefcase, calendar, camera, cast, chevron-down, chevron-up, circle, clipboard, clock, cloud-drizzle, cloud-lightning, cloud-rain, cloud-snow, cloud, codepen, codesandbox, code, coffee, columns, command, compass, copy, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, cpu, credit-card, crop, crosshair, database, delete, disc, dollar-sign, droplet, edit, edit-2, edit-3, eye, eye-off, external-link, facebook, fast-forward, figma, file-minus, file-plus, file-text, film, filter, flag, folder-minus, folder-plus, folder, framer, frown, gift, git-branch, git-commit, git-merge, git-pull-request, github, gitlab, globe, hard-drive, hash, headphones, heart, help-circle, hexagon, home, image, inbox, instagram, key, layers, layout, life-buoy, link, link-2, linkedin, list, lock, log-in, log-out, mail, map-pin, map, maximize, maximize-2, meh, menu, message-circle, message-square, mic-off, mic, minimize, minimize-2, minus, monitor, moon, more-horizontal, more-vertical, mouse-pointer, move, music, navigation, navigation-2, octagon, package, paperclip, pause, pause-circle, pen-tool, percent, phone-call, phone-forwarded, phone-incoming, phone-missed, phone-off, phone-outgoing, phone, play, pie-chart, play-circle, plus, plus-circle, plus-square, pocket, power, printer, radio, refresh-cw, refresh-ccw, repeat, rewind, rotate-ccw, rotate-cw, rss, save, scissors, search, send, settings, share-2, shield, shield-off, shopping-bag, shopping-cart, shuffle, skip-back, skip-forward, slack, slash, sliders, smartphone, smile, speaker, star, stop-circle, sun, sunrise, sunset, tablet, tag, target, terminal, thermometer, thumbs-down, thumbs-up, toggle-left, toggle-right, tool, trash, trash-2, triangle, truck, tv, twitch, twitter, type, umbrella, unlock, user-check, user-minus, user-plus, user-x, user, users, video-off, video, voicemail, volume, volume-1, volume-2, volume-x, watch, wifi-off, wifi, wind, x-circle, x-octagon, x-square, x, youtube, zap-off, zap, zoom-in, zoom-out, default */
/***/
function ( module3 ) {
module3 . exports = { "activity" : [ "pulse" , "health" , "action" , "motion" ] , "airplay" : [ "stream" , "cast" , "mirroring" ] , "alert-circle" : [ "warning" , "alert" , "danger" ] , "alert-octagon" : [ "warning" , "alert" , "danger" ] , "alert-triangle" : [ "warning" , "alert" , "danger" ] , "align-center" : [ "text alignment" , "center" ] , "align-justify" : [ "text alignment" , "justified" ] , "align-left" : [ "text alignment" , "left" ] , "align-right" : [ "text alignment" , "right" ] , "anchor" : [ ] , "archive" : [ "index" , "box" ] , "at-sign" : [ "mention" , "at" , "email" , "message" ] , "award" : [ "achievement" , "badge" ] , "aperture" : [ "camera" , "photo" ] , "bar-chart" : [ "statistics" , "diagram" , "graph" ] , "bar-chart-2" : [ "statistics" , "diagram" , "graph" ] , "battery" : [ "power" , "electricity" ] , "battery-charging" : [ "power" , "electricity" ] , "bell" : [ "alarm" , "notification" , "sound" ] , "bell-off" : [ "alarm" , "notification" , "silent" ] , "bluetooth" : [ "wireless" ] , "book-open" : [ "read" , "library" ] , "book" : [ "read" , "dictionary" , "booklet" , "magazine" , "library" ] , "bookmark" : [ "read" , "clip" , "marker" , "tag" ] , "box" : [ "cube" ] , "briefcase" : [ "work" , "bag" , "baggage" , "folder" ] , "calendar" : [ "date" ] , "camera" : [ "photo" ] , "cast" : [ "chromecast" , "airplay" ] , "chevron-down" : [ "expand" ] , "chevron-up" : [ "collapse" ] , "circle" : [ "off" , "zero" , "record" ] , "clipboard" : [ "copy" ] , "clock" : [ "time" , "watch" , "alarm" ] , "cloud-drizzle" : [ "weather" , "shower" ] , "cloud-lightning" : [ "weather" , "bolt" ] , "cloud-rain" : [ "weather" ] , "cloud-snow" : [ "weather" , "blizzard" ] , "cloud" : [ "weather" ] , "codepen" : [ "logo" ] , "codesandbox" : [ "logo" ] , "code" : [ "source" , "programming" ] , "coffee" : [ "drink" , "cup" , "mug" , "tea" , "cafe" , "hot" , "beverage" ] , "columns" : [ "layout" ] , "command" : [ "keyboard" , "cmd" , "terminal" , "prompt" ] , "compass" : [ "navigation" , "safari" , "travel" , "direction" ] , "copy" : [ "clone" , "duplicate" ] , "corner-down-left" : [ "arrow" , "return" ] , "corner-down-right" : [ "arrow" ] , "corner-left-down" : [ "arrow" ] , "corner-left-up" : [ "arrow" ] , "corner-right-down" : [ "arrow" ] , "corner-right-up" : [ "arrow" ] , "corner-up-left" : [ "arrow" ] , "corner-up-right" : [ "arrow" ] , "cpu" : [ "processor" , "technology" ] , "credit-card" : [ "purchase" , "payment" , "cc" ] , "crop" : [ "photo" , "image" ] , "crosshair" : [ "aim" , "target" ] , "database" : [ "storage" , "memory" ] , "delete" : [ "remove" ] , "disc" : [ "album" , "cd" , "dvd" , "music" ] , "dollar-sign" : [ "currency" , "money" , "payment" ] , "droplet" : [ "water" ] , "edit" : [ "pencil" , "change" ] , "edit-2" : [ "pencil" , "change" ] , "edit-3" : [ "pencil" , "change" ] , "eye" : [ "view" , "watch" ] , "eye-off" : [ "view" , "watch" , "hide" , "hidden" ] , "external-link" : [ "outbound" ] , "facebook" : [ "logo" , "social" ] , "fast-forward" : [ "music" ] , "figma" : [ "logo" , "design" , "tool" ] , "file-minus" : [ "delete" , "remove" , "erase" ] , "file-plus" : [ "add" , "create" , "new" ] , "file-text" : [ "data" , "txt" , "pdf" ] , "film" : [ "movie" , "video" ] , "filter" : [ "funnel" , "hopper" ] , "flag" : [ "report" ] , "folder-minus" : [ "directory" ] , "folder-plus" : [ "directory" ] , "folder" : [ "directory" ] , "framer" : [ "logo" , "design" , "tool" ] , "frown" : [ "emoji" , "face" , "bad" , "sad" , "emotion" ] , "gift" : [ "present" , "box" , "birthday" , "party" ] , "git-branch" : [ "code" , "version control" ] , "git-commit" : [ "code" , "version control" ] , "git-merge" : [ "code" , "version control" ] , "git-pull-request" : [ "code" , "version control" ] , "github" : [ "logo" , "version control" ] , "gitlab" : [ "logo" , "version control" ] , "globe" : [ "world" , "browser" , "language" , "translate" ] , "hard-drive" : [ "computer" , "server" , "memory" , "data" ] , "hash" : [ "hashtag" , "number" , "pound" ] , "headphones" : [ "music" , "audio" , "sound" ] , "heart" : [ "like" , "love" , "emotion" ] , "help-circle" : [ "question mark" ] , "hexagon" : [ "shape" , "node.js" , "logo" ] , "home" : [ "house" , "living" ] , "image" : [ "picture" ] , "inbox" : [ "email" ] , "instagram" : [ "logo" , "camera" ] , "key" : [ "password" , "login" , "authentication" , "secure" ] , "layers" : [ "stack" ] , "layout" : [ "window" , "webpage" ] , "life-buoy" : [ "help" , "life ring" , "support" ] , "link" : [ "chain" , "url" ] , "link-2" : [ "chain" , "url" ] , "linkedin" : [ "logo" , "social media" ] , "list" : [ "options" ] , "lock" : [ " se
}
) ,
/***/
"./src/to-svg.js" : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / src / to - svg . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
"use strict" ;
Object . defineProperty ( exports2 , "__esModule" , {
value : true
} ) ;
var _icons = _ _webpack _require _ _ (
/*! ./icons */
"./src/icons.js"
) ;
var _icons2 = _interopRequireDefault ( _icons ) ;
function _interopRequireDefault ( obj ) {
return obj && obj . _ _esModule ? obj : { default : obj } ;
}
function toSvg ( name ) {
var attrs = arguments . length > 1 && arguments [ 1 ] !== void 0 ? arguments [ 1 ] : { } ;
console . warn ( "feather.toSvg() is deprecated. Please use feather.icons[name].toSvg() instead." ) ;
if ( ! name ) {
throw new Error ( "The required `key` (icon name) parameter is missing." ) ;
}
if ( ! _icons2 . default [ name ] ) {
throw new Error ( "No icon matching '" + name + "'. See the complete list of icons at https://feathericons.com" ) ;
}
return _icons2 . default [ name ] . toSvg ( attrs ) ;
}
exports2 . default = toSvg ;
}
) ,
/***/
0 : (
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * multi core - js / es / array / from . / src / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/
function ( module3 , exports2 , _ _webpack _require _ _ ) {
_ _webpack _require _ _ (
/*! core-js/es/array/from */
"./node_modules/core-js/es/array/from.js"
) ;
module3 . exports = _ _webpack _require _ _ (
/*! /home/runner/work/feather/feather/src/index.js */
"./src/index.js"
) ;
}
)
/******/
} )
) ;
} ) ;
}
} ) ;
// node_modules/obsidian-daily-notes-interface/dist/main.js
var require _main = _ _commonJS ( {
"node_modules/obsidian-daily-notes-interface/dist/main.js" ( exports ) {
"use strict" ;
Object . defineProperty ( exports , "__esModule" , { value : true } ) ;
var obsidian = require ( "obsidian" ) ;
var DEFAULT _DAILY _NOTE _FORMAT = "YYYY-MM-DD" ;
var DEFAULT _WEEKLY _NOTE _FORMAT = "gggg-[W]ww" ;
var DEFAULT _MONTHLY _NOTE _FORMAT = "YYYY-MM" ;
var DEFAULT _QUARTERLY _NOTE _FORMAT = "YYYY-[Q]Q" ;
var DEFAULT _YEARLY _NOTE _FORMAT = "YYYY" ;
function shouldUsePeriodicNotesSettings ( periodicity ) {
var _a , _b ;
const periodicNotes = window . app . plugins . getPlugin ( "periodic-notes" ) ;
return periodicNotes && ( ( _b = ( _a = periodicNotes . settings ) == null ? void 0 : _a [ periodicity ] ) == null ? void 0 : _b . enabled ) ;
}
function getDailyNoteSettings2 ( ) {
var _a , _b , _c , _d ;
try {
const { internalPlugins , plugins } = window . app ;
if ( shouldUsePeriodicNotesSettings ( "daily" ) ) {
const { format : format2 , folder : folder2 , template : template2 } = ( ( _b = ( _a = plugins . getPlugin ( "periodic-notes" ) ) == null ? void 0 : _a . settings ) == null ? void 0 : _b . daily ) || { } ;
return {
format : format2 || DEFAULT _DAILY _NOTE _FORMAT ,
folder : ( folder2 == null ? void 0 : folder2 . trim ( ) ) || "" ,
template : ( template2 == null ? void 0 : template2 . trim ( ) ) || ""
} ;
}
const { folder , format , template } = ( ( _d = ( _c = internalPlugins . getPluginById ( "daily-notes" ) ) == null ? void 0 : _c . instance ) == null ? void 0 : _d . options ) || { } ;
return {
format : format || DEFAULT _DAILY _NOTE _FORMAT ,
folder : ( folder == null ? void 0 : folder . trim ( ) ) || "" ,
template : ( template == null ? void 0 : template . trim ( ) ) || ""
} ;
} catch ( err ) {
console . info ( "No custom daily note settings found!" , err ) ;
}
}
function getWeeklyNoteSettings ( ) {
var _a , _b , _c , _d , _e , _f , _g ;
try {
const pluginManager = window . app . plugins ;
const calendarSettings = ( _a = pluginManager . getPlugin ( "calendar" ) ) == null ? void 0 : _a . options ;
const periodicNotesSettings = ( _c = ( _b = pluginManager . getPlugin ( "periodic-notes" ) ) == null ? void 0 : _b . settings ) == null ? void 0 : _c . weekly ;
if ( shouldUsePeriodicNotesSettings ( "weekly" ) ) {
return {
format : periodicNotesSettings . format || DEFAULT _WEEKLY _NOTE _FORMAT ,
folder : ( ( _d = periodicNotesSettings . folder ) == null ? void 0 : _d . trim ( ) ) || "" ,
template : ( ( _e = periodicNotesSettings . template ) == null ? void 0 : _e . trim ( ) ) || ""
} ;
}
const settings = calendarSettings || { } ;
return {
format : settings . weeklyNoteFormat || DEFAULT _WEEKLY _NOTE _FORMAT ,
folder : ( ( _f = settings . weeklyNoteFolder ) == null ? void 0 : _f . trim ( ) ) || "" ,
template : ( ( _g = settings . weeklyNoteTemplate ) == null ? void 0 : _g . trim ( ) ) || ""
} ;
} catch ( err ) {
console . info ( "No custom weekly note settings found!" , err ) ;
}
}
function getMonthlyNoteSettings ( ) {
var _a , _b , _c , _d ;
const pluginManager = window . app . plugins ;
try {
const settings = shouldUsePeriodicNotesSettings ( "monthly" ) && ( ( _b = ( _a = pluginManager . getPlugin ( "periodic-notes" ) ) == null ? void 0 : _a . settings ) == null ? void 0 : _b . monthly ) || { } ;
return {
format : settings . format || DEFAULT _MONTHLY _NOTE _FORMAT ,
folder : ( ( _c = settings . folder ) == null ? void 0 : _c . trim ( ) ) || "" ,
template : ( ( _d = settings . template ) == null ? void 0 : _d . trim ( ) ) || ""
} ;
} catch ( err ) {
console . info ( "No custom monthly note settings found!" , err ) ;
}
}
function getQuarterlyNoteSettings ( ) {
var _a , _b , _c , _d ;
const pluginManager = window . app . plugins ;
try {
const settings = shouldUsePeriodicNotesSettings ( "quarterly" ) && ( ( _b = ( _a = pluginManager . getPlugin ( "periodic-notes" ) ) == null ? void 0 : _a . settings ) == null ? void 0 : _b . quarterly ) || { } ;
return {
format : settings . format || DEFAULT _QUARTERLY _NOTE _FORMAT ,
folder : ( ( _c = settings . folder ) == null ? void 0 : _c . trim ( ) ) || "" ,
template : ( ( _d = settings . template ) == null ? void 0 : _d . trim ( ) ) || ""
} ;
} catch ( err ) {
console . info ( "No custom quarterly note settings found!" , err ) ;
}
}
function getYearlyNoteSettings ( ) {
var _a , _b , _c , _d ;
const pluginManager = window . app . plugins ;
try {
const settings = shouldUsePeriodicNotesSettings ( "yearly" ) && ( ( _b = ( _a = pluginManager . getPlugin ( "periodic-notes" ) ) == null ? void 0 : _a . settings ) == null ? void 0 : _b . yearly ) || { } ;
return {
format : settings . format || DEFAULT _YEARLY _NOTE _FORMAT ,
folder : ( ( _c = settings . folder ) == null ? void 0 : _c . trim ( ) ) || "" ,
template : ( ( _d = settings . template ) == null ? void 0 : _d . trim ( ) ) || ""
} ;
} catch ( err ) {
console . info ( "No custom yearly note settings found!" , err ) ;
}
}
function join2 ( ... partSegments ) {
let parts = [ ] ;
for ( let i = 0 , l = partSegments . length ; i < l ; i ++ ) {
parts = parts . concat ( partSegments [ i ] . split ( "/" ) ) ;
}
const newParts = [ ] ;
for ( let i = 0 , l = parts . length ; i < l ; i ++ ) {
const part = parts [ i ] ;
if ( ! part || part === "." )
continue ;
else
newParts . push ( part ) ;
}
if ( parts [ 0 ] === "" )
newParts . unshift ( "" ) ;
return newParts . join ( "/" ) ;
}
function basename ( fullPath ) {
let base = fullPath . substring ( fullPath . lastIndexOf ( "/" ) + 1 ) ;
if ( base . lastIndexOf ( "." ) != - 1 )
base = base . substring ( 0 , base . lastIndexOf ( "." ) ) ;
return base ;
}
async function ensureFolderExists2 ( path ) {
const dirs = path . replace ( /\\/g , "/" ) . split ( "/" ) ;
dirs . pop ( ) ;
if ( dirs . length ) {
const dir = join2 ( ... dirs ) ;
if ( ! window . app . vault . getAbstractFileByPath ( dir ) ) {
await window . app . vault . createFolder ( dir ) ;
}
}
}
async function getNotePath2 ( directory , filename ) {
if ( ! filename . endsWith ( ".md" ) ) {
filename += ".md" ;
}
const path = obsidian . normalizePath ( join2 ( directory , filename ) ) ;
await ensureFolderExists2 ( path ) ;
return path ;
}
async function getTemplateInfo ( template ) {
const { metadataCache , vault } = window . app ;
const templatePath = obsidian . normalizePath ( template ) ;
if ( templatePath === "/" ) {
return Promise . resolve ( [ "" , null ] ) ;
}
try {
const templateFile = metadataCache . getFirstLinkpathDest ( templatePath , "" ) ;
const contents = await vault . cachedRead ( templateFile ) ;
const IFoldInfo = window . app . foldManager . load ( templateFile ) ;
return [ contents , IFoldInfo ] ;
} catch ( err ) {
console . error ( ` Failed to read the daily note template ' ${ templatePath } ' ` , err ) ;
new obsidian . Notice ( "Failed to read the daily note template" ) ;
return [ "" , null ] ;
}
}
function getDateUID ( date , granularity = "day" ) {
const ts = date . clone ( ) . startOf ( granularity ) . format ( ) ;
return ` ${ granularity } - ${ ts } ` ;
}
function removeEscapedCharacters ( format ) {
return format . replace ( /\[[^\]]*\]/g , "" ) ;
}
function isFormatAmbiguous ( format , granularity ) {
if ( granularity === "week" ) {
const cleanFormat = removeEscapedCharacters ( format ) ;
return /w{1,2}/i . test ( cleanFormat ) && ( /M{1,4}/ . test ( cleanFormat ) || /D{1,4}/ . test ( cleanFormat ) ) ;
}
return false ;
}
function getDateFromFile ( file , granularity ) {
return getDateFromFilename ( file . basename , granularity ) ;
}
function getDateFromPath ( path , granularity ) {
return getDateFromFilename ( basename ( path ) , granularity ) ;
}
function getDateFromFilename ( filename , granularity ) {
const getSettings = {
day : getDailyNoteSettings2 ,
week : getWeeklyNoteSettings ,
month : getMonthlyNoteSettings ,
quarter : getQuarterlyNoteSettings ,
year : getYearlyNoteSettings
} ;
const format = getSettings [ granularity ] ( ) . format . split ( "/" ) . pop ( ) ;
const noteDate = window . moment ( filename , format , true ) ;
if ( ! noteDate . isValid ( ) ) {
return null ;
}
if ( isFormatAmbiguous ( format , granularity ) ) {
if ( granularity === "week" ) {
const cleanFormat = removeEscapedCharacters ( format ) ;
if ( /w{1,2}/i . test ( cleanFormat ) ) {
return window . moment (
filename ,
// If format contains week, remove day & month formatting
format . replace ( /M{1,4}/g , "" ) . replace ( /D{1,4}/g , "" ) ,
false
) ;
}
}
}
return noteDate ;
}
var DailyNotesFolderMissingError = class extends Error {
} ;
async function createDailyNote2 ( date ) {
const app2 = window . app ;
const { vault } = app2 ;
const moment = window . moment ;
const { template , format , folder } = getDailyNoteSettings2 ( ) ;
const [ templateContents , IFoldInfo ] = await getTemplateInfo ( template ) ;
const filename = date . format ( format ) ;
const normalizedPath = await getNotePath2 ( folder , filename ) ;
try {
const createdFile = await vault . create ( normalizedPath , templateContents . replace ( /{{\s*date\s*}}/gi , filename ) . replace ( /{{\s*time\s*}}/gi , moment ( ) . format ( "HH:mm" ) ) . replace ( /{{\s*title\s*}}/gi , filename ) . replace ( /{{\s*(date|time)\s*(([+-]\d+)([yqmwdhs]))?\s*(:.+?)?}}/gi , ( _ , _timeOrDate , calc , timeDelta , unit , momentFormat ) => {
const now = moment ( ) ;
const currentDate = date . clone ( ) . set ( {
hour : now . get ( "hour" ) ,
minute : now . get ( "minute" ) ,
second : now . get ( "second" )
} ) ;
if ( calc ) {
currentDate . add ( parseInt ( timeDelta , 10 ) , unit ) ;
}
if ( momentFormat ) {
return currentDate . format ( momentFormat . substring ( 1 ) . trim ( ) ) ;
}
return currentDate . format ( format ) ;
} ) . replace ( /{{\s*yesterday\s*}}/gi , date . clone ( ) . subtract ( 1 , "day" ) . format ( format ) ) . replace ( /{{\s*tomorrow\s*}}/gi , date . clone ( ) . add ( 1 , "d" ) . format ( format ) ) ) ;
app2 . foldManager . save ( createdFile , IFoldInfo ) ;
return createdFile ;
} catch ( err ) {
console . error ( ` Failed to create file: ' ${ normalizedPath } ' ` , err ) ;
new obsidian . Notice ( "Unable to create new file." ) ;
}
}
function getDailyNote2 ( date , dailyNotes ) {
var _a ;
return ( _a = dailyNotes [ getDateUID ( date , "day" ) ] ) != null ? _a : null ;
}
function getAllDailyNotes2 ( ) {
const { vault } = window . app ;
const { folder } = getDailyNoteSettings2 ( ) ;
const dailyNotesFolder = vault . getAbstractFileByPath ( obsidian . normalizePath ( folder ) ) ;
if ( ! dailyNotesFolder ) {
throw new DailyNotesFolderMissingError ( "Failed to find daily notes folder" ) ;
}
const dailyNotes = { } ;
obsidian . Vault . recurseChildren ( dailyNotesFolder , ( note ) => {
if ( note instanceof obsidian . TFile ) {
const date = getDateFromFile ( note , "day" ) ;
if ( date ) {
const dateString = getDateUID ( date , "day" ) ;
dailyNotes [ dateString ] = note ;
}
}
} ) ;
return dailyNotes ;
}
var WeeklyNotesFolderMissingError = class extends Error {
} ;
function getDaysOfWeek ( ) {
const { moment } = window ;
let weekStart = moment . localeData ( ) . _week . dow ;
const daysOfWeek = [
"sunday" ,
"monday" ,
"tuesday" ,
"wednesday" ,
"thursday" ,
"friday" ,
"saturday"
] ;
while ( weekStart ) {
daysOfWeek . push ( daysOfWeek . shift ( ) ) ;
weekStart -- ;
}
return daysOfWeek ;
}
function getDayOfWeekNumericalValue ( dayOfWeekName ) {
return getDaysOfWeek ( ) . indexOf ( dayOfWeekName . toLowerCase ( ) ) ;
}
async function createWeeklyNote ( date ) {
const { vault } = window . app ;
const { template , format , folder } = getWeeklyNoteSettings ( ) ;
const [ templateContents , IFoldInfo ] = await getTemplateInfo ( template ) ;
const filename = date . format ( format ) ;
const normalizedPath = await getNotePath2 ( folder , filename ) ;
try {
const createdFile = await vault . create ( normalizedPath , templateContents . replace ( /{{\s*(date|time)\s*(([+-]\d+)([yqmwdhs]))?\s*(:.+?)?}}/gi , ( _ , _timeOrDate , calc , timeDelta , unit , momentFormat ) => {
const now = window . moment ( ) ;
const currentDate = date . clone ( ) . set ( {
hour : now . get ( "hour" ) ,
minute : now . get ( "minute" ) ,
second : now . get ( "second" )
} ) ;
if ( calc ) {
currentDate . add ( parseInt ( timeDelta , 10 ) , unit ) ;
}
if ( momentFormat ) {
return currentDate . format ( momentFormat . substring ( 1 ) . trim ( ) ) ;
}
return currentDate . format ( format ) ;
} ) . replace ( /{{\s*title\s*}}/gi , filename ) . replace ( /{{\s*time\s*}}/gi , window . moment ( ) . format ( "HH:mm" ) ) . replace ( /{{\s*(sunday|monday|tuesday|wednesday|thursday|friday|saturday)\s*:(.*?)}}/gi , ( _ , dayOfWeek , momentFormat ) => {
const day = getDayOfWeekNumericalValue ( dayOfWeek ) ;
return date . weekday ( day ) . format ( momentFormat . trim ( ) ) ;
} ) ) ;
window . app . foldManager . save ( createdFile , IFoldInfo ) ;
return createdFile ;
} catch ( err ) {
console . error ( ` Failed to create file: ' ${ normalizedPath } ' ` , err ) ;
new obsidian . Notice ( "Unable to create new file." ) ;
}
}
function getWeeklyNote ( date , weeklyNotes ) {
var _a ;
return ( _a = weeklyNotes [ getDateUID ( date , "week" ) ] ) != null ? _a : null ;
}
function getAllWeeklyNotes ( ) {
const weeklyNotes = { } ;
if ( ! appHasWeeklyNotesPluginLoaded ( ) ) {
return weeklyNotes ;
}
const { vault } = window . app ;
const { folder } = getWeeklyNoteSettings ( ) ;
const weeklyNotesFolder = vault . getAbstractFileByPath ( obsidian . normalizePath ( folder ) ) ;
if ( ! weeklyNotesFolder ) {
throw new WeeklyNotesFolderMissingError ( "Failed to find weekly notes folder" ) ;
}
obsidian . Vault . recurseChildren ( weeklyNotesFolder , ( note ) => {
if ( note instanceof obsidian . TFile ) {
const date = getDateFromFile ( note , "week" ) ;
if ( date ) {
const dateString = getDateUID ( date , "week" ) ;
weeklyNotes [ dateString ] = note ;
}
}
} ) ;
return weeklyNotes ;
}
var MonthlyNotesFolderMissingError = class extends Error {
} ;
async function createMonthlyNote ( date ) {
const { vault } = window . app ;
const { template , format , folder } = getMonthlyNoteSettings ( ) ;
const [ templateContents , IFoldInfo ] = await getTemplateInfo ( template ) ;
const filename = date . format ( format ) ;
const normalizedPath = await getNotePath2 ( folder , filename ) ;
try {
const createdFile = await vault . create ( normalizedPath , templateContents . replace ( /{{\s*(date|time)\s*(([+-]\d+)([yqmwdhs]))?\s*(:.+?)?}}/gi , ( _ , _timeOrDate , calc , timeDelta , unit , momentFormat ) => {
const now = window . moment ( ) ;
const currentDate = date . clone ( ) . set ( {
hour : now . get ( "hour" ) ,
minute : now . get ( "minute" ) ,
second : now . get ( "second" )
} ) ;
if ( calc ) {
currentDate . add ( parseInt ( timeDelta , 10 ) , unit ) ;
}
if ( momentFormat ) {
return currentDate . format ( momentFormat . substring ( 1 ) . trim ( ) ) ;
}
return currentDate . format ( format ) ;
} ) . replace ( /{{\s*date\s*}}/gi , filename ) . replace ( /{{\s*time\s*}}/gi , window . moment ( ) . format ( "HH:mm" ) ) . replace ( /{{\s*title\s*}}/gi , filename ) ) ;
window . app . foldManager . save ( createdFile , IFoldInfo ) ;
return createdFile ;
} catch ( err ) {
console . error ( ` Failed to create file: ' ${ normalizedPath } ' ` , err ) ;
new obsidian . Notice ( "Unable to create new file." ) ;
}
}
function getMonthlyNote ( date , monthlyNotes ) {
var _a ;
return ( _a = monthlyNotes [ getDateUID ( date , "month" ) ] ) != null ? _a : null ;
}
function getAllMonthlyNotes ( ) {
const monthlyNotes = { } ;
if ( ! appHasMonthlyNotesPluginLoaded ( ) ) {
return monthlyNotes ;
}
const { vault } = window . app ;
const { folder } = getMonthlyNoteSettings ( ) ;
const monthlyNotesFolder = vault . getAbstractFileByPath ( obsidian . normalizePath ( folder ) ) ;
if ( ! monthlyNotesFolder ) {
throw new MonthlyNotesFolderMissingError ( "Failed to find monthly notes folder" ) ;
}
obsidian . Vault . recurseChildren ( monthlyNotesFolder , ( note ) => {
if ( note instanceof obsidian . TFile ) {
const date = getDateFromFile ( note , "month" ) ;
if ( date ) {
const dateString = getDateUID ( date , "month" ) ;
monthlyNotes [ dateString ] = note ;
}
}
} ) ;
return monthlyNotes ;
}
var QuarterlyNotesFolderMissingError = class extends Error {
} ;
async function createQuarterlyNote ( date ) {
const { vault } = window . app ;
const { template , format , folder } = getQuarterlyNoteSettings ( ) ;
const [ templateContents , IFoldInfo ] = await getTemplateInfo ( template ) ;
const filename = date . format ( format ) ;
const normalizedPath = await getNotePath2 ( folder , filename ) ;
try {
const createdFile = await vault . create ( normalizedPath , templateContents . replace ( /{{\s*(date|time)\s*(([+-]\d+)([yqmwdhs]))?\s*(:.+?)?}}/gi , ( _ , _timeOrDate , calc , timeDelta , unit , momentFormat ) => {
const now = window . moment ( ) ;
const currentDate = date . clone ( ) . set ( {
hour : now . get ( "hour" ) ,
minute : now . get ( "minute" ) ,
second : now . get ( "second" )
} ) ;
if ( calc ) {
currentDate . add ( parseInt ( timeDelta , 10 ) , unit ) ;
}
if ( momentFormat ) {
return currentDate . format ( momentFormat . substring ( 1 ) . trim ( ) ) ;
}
return currentDate . format ( format ) ;
} ) . replace ( /{{\s*date\s*}}/gi , filename ) . replace ( /{{\s*time\s*}}/gi , window . moment ( ) . format ( "HH:mm" ) ) . replace ( /{{\s*title\s*}}/gi , filename ) ) ;
window . app . foldManager . save ( createdFile , IFoldInfo ) ;
return createdFile ;
} catch ( err ) {
console . error ( ` Failed to create file: ' ${ normalizedPath } ' ` , err ) ;
new obsidian . Notice ( "Unable to create new file." ) ;
}
}
function getQuarterlyNote ( date , quarterly ) {
var _a ;
return ( _a = quarterly [ getDateUID ( date , "quarter" ) ] ) != null ? _a : null ;
}
function getAllQuarterlyNotes ( ) {
const quarterly = { } ;
if ( ! appHasQuarterlyNotesPluginLoaded ( ) ) {
return quarterly ;
}
const { vault } = window . app ;
const { folder } = getQuarterlyNoteSettings ( ) ;
const quarterlyFolder = vault . getAbstractFileByPath ( obsidian . normalizePath ( folder ) ) ;
if ( ! quarterlyFolder ) {
throw new QuarterlyNotesFolderMissingError ( "Failed to find quarterly notes folder" ) ;
}
obsidian . Vault . recurseChildren ( quarterlyFolder , ( note ) => {
if ( note instanceof obsidian . TFile ) {
const date = getDateFromFile ( note , "quarter" ) ;
if ( date ) {
const dateString = getDateUID ( date , "quarter" ) ;
quarterly [ dateString ] = note ;
}
}
} ) ;
return quarterly ;
}
var YearlyNotesFolderMissingError = class extends Error {
} ;
async function createYearlyNote ( date ) {
const { vault } = window . app ;
const { template , format , folder } = getYearlyNoteSettings ( ) ;
const [ templateContents , IFoldInfo ] = await getTemplateInfo ( template ) ;
const filename = date . format ( format ) ;
const normalizedPath = await getNotePath2 ( folder , filename ) ;
try {
const createdFile = await vault . create ( normalizedPath , templateContents . replace ( /{{\s*(date|time)\s*(([+-]\d+)([yqmwdhs]))?\s*(:.+?)?}}/gi , ( _ , _timeOrDate , calc , timeDelta , unit , momentFormat ) => {
const now = window . moment ( ) ;
const currentDate = date . clone ( ) . set ( {
hour : now . get ( "hour" ) ,
minute : now . get ( "minute" ) ,
second : now . get ( "second" )
} ) ;
if ( calc ) {
currentDate . add ( parseInt ( timeDelta , 10 ) , unit ) ;
}
if ( momentFormat ) {
return currentDate . format ( momentFormat . substring ( 1 ) . trim ( ) ) ;
}
return currentDate . format ( format ) ;
} ) . replace ( /{{\s*date\s*}}/gi , filename ) . replace ( /{{\s*time\s*}}/gi , window . moment ( ) . format ( "HH:mm" ) ) . replace ( /{{\s*title\s*}}/gi , filename ) ) ;
window . app . foldManager . save ( createdFile , IFoldInfo ) ;
return createdFile ;
} catch ( err ) {
console . error ( ` Failed to create file: ' ${ normalizedPath } ' ` , err ) ;
new obsidian . Notice ( "Unable to create new file." ) ;
}
}
function getYearlyNote ( date , yearlyNotes ) {
var _a ;
return ( _a = yearlyNotes [ getDateUID ( date , "year" ) ] ) != null ? _a : null ;
}
function getAllYearlyNotes ( ) {
const yearlyNotes = { } ;
if ( ! appHasYearlyNotesPluginLoaded ( ) ) {
return yearlyNotes ;
}
const { vault } = window . app ;
const { folder } = getYearlyNoteSettings ( ) ;
const yearlyNotesFolder = vault . getAbstractFileByPath ( obsidian . normalizePath ( folder ) ) ;
if ( ! yearlyNotesFolder ) {
throw new YearlyNotesFolderMissingError ( "Failed to find yearly notes folder" ) ;
}
obsidian . Vault . recurseChildren ( yearlyNotesFolder , ( note ) => {
if ( note instanceof obsidian . TFile ) {
const date = getDateFromFile ( note , "year" ) ;
if ( date ) {
const dateString = getDateUID ( date , "year" ) ;
yearlyNotes [ dateString ] = note ;
}
}
} ) ;
return yearlyNotes ;
}
function appHasDailyNotesPluginLoaded2 ( ) {
var _a , _b ;
const { app : app2 } = window ;
const dailyNotesPlugin = app2 . internalPlugins . plugins [ "daily-notes" ] ;
if ( dailyNotesPlugin && dailyNotesPlugin . enabled ) {
return true ;
}
const periodicNotes = app2 . plugins . getPlugin ( "periodic-notes" ) ;
return periodicNotes && ( ( _b = ( _a = periodicNotes . settings ) == null ? void 0 : _a . daily ) == null ? void 0 : _b . enabled ) ;
}
function appHasWeeklyNotesPluginLoaded ( ) {
var _a , _b ;
const { app : app2 } = window ;
if ( app2 . plugins . getPlugin ( "calendar" ) ) {
return true ;
}
const periodicNotes = app2 . plugins . getPlugin ( "periodic-notes" ) ;
return periodicNotes && ( ( _b = ( _a = periodicNotes . settings ) == null ? void 0 : _a . weekly ) == null ? void 0 : _b . enabled ) ;
}
function appHasMonthlyNotesPluginLoaded ( ) {
var _a , _b ;
const { app : app2 } = window ;
const periodicNotes = app2 . plugins . getPlugin ( "periodic-notes" ) ;
return periodicNotes && ( ( _b = ( _a = periodicNotes . settings ) == null ? void 0 : _a . monthly ) == null ? void 0 : _b . enabled ) ;
}
function appHasQuarterlyNotesPluginLoaded ( ) {
var _a , _b ;
const { app : app2 } = window ;
const periodicNotes = app2 . plugins . getPlugin ( "periodic-notes" ) ;
return periodicNotes && ( ( _b = ( _a = periodicNotes . settings ) == null ? void 0 : _a . quarterly ) == null ? void 0 : _b . enabled ) ;
}
function appHasYearlyNotesPluginLoaded ( ) {
var _a , _b ;
const { app : app2 } = window ;
const periodicNotes = app2 . plugins . getPlugin ( "periodic-notes" ) ;
return periodicNotes && ( ( _b = ( _a = periodicNotes . settings ) == null ? void 0 : _a . yearly ) == null ? void 0 : _b . enabled ) ;
}
function getPeriodicNoteSettings ( granularity ) {
const getSettings = {
day : getDailyNoteSettings2 ,
week : getWeeklyNoteSettings ,
month : getMonthlyNoteSettings ,
quarter : getQuarterlyNoteSettings ,
year : getYearlyNoteSettings
} [ granularity ] ;
return getSettings ( ) ;
}
function createPeriodicNote ( granularity , date ) {
const createFn = {
day : createDailyNote2 ,
month : createMonthlyNote ,
week : createWeeklyNote
} ;
return createFn [ granularity ] ( date ) ;
}
exports . DEFAULT _DAILY _NOTE _FORMAT = DEFAULT _DAILY _NOTE _FORMAT ;
exports . DEFAULT _MONTHLY _NOTE _FORMAT = DEFAULT _MONTHLY _NOTE _FORMAT ;
exports . DEFAULT _QUARTERLY _NOTE _FORMAT = DEFAULT _QUARTERLY _NOTE _FORMAT ;
exports . DEFAULT _WEEKLY _NOTE _FORMAT = DEFAULT _WEEKLY _NOTE _FORMAT ;
exports . DEFAULT _YEARLY _NOTE _FORMAT = DEFAULT _YEARLY _NOTE _FORMAT ;
exports . appHasDailyNotesPluginLoaded = appHasDailyNotesPluginLoaded2 ;
exports . appHasMonthlyNotesPluginLoaded = appHasMonthlyNotesPluginLoaded ;
exports . appHasQuarterlyNotesPluginLoaded = appHasQuarterlyNotesPluginLoaded ;
exports . appHasWeeklyNotesPluginLoaded = appHasWeeklyNotesPluginLoaded ;
exports . appHasYearlyNotesPluginLoaded = appHasYearlyNotesPluginLoaded ;
exports . createDailyNote = createDailyNote2 ;
exports . createMonthlyNote = createMonthlyNote ;
exports . createPeriodicNote = createPeriodicNote ;
exports . createQuarterlyNote = createQuarterlyNote ;
exports . createWeeklyNote = createWeeklyNote ;
exports . createYearlyNote = createYearlyNote ;
exports . getAllDailyNotes = getAllDailyNotes2 ;
exports . getAllMonthlyNotes = getAllMonthlyNotes ;
exports . getAllQuarterlyNotes = getAllQuarterlyNotes ;
exports . getAllWeeklyNotes = getAllWeeklyNotes ;
exports . getAllYearlyNotes = getAllYearlyNotes ;
exports . getDailyNote = getDailyNote2 ;
exports . getDailyNoteSettings = getDailyNoteSettings2 ;
exports . getDateFromFile = getDateFromFile ;
exports . getDateFromPath = getDateFromPath ;
exports . getDateUID = getDateUID ;
exports . getMonthlyNote = getMonthlyNote ;
exports . getMonthlyNoteSettings = getMonthlyNoteSettings ;
exports . getPeriodicNoteSettings = getPeriodicNoteSettings ;
exports . getQuarterlyNote = getQuarterlyNote ;
exports . getQuarterlyNoteSettings = getQuarterlyNoteSettings ;
exports . getTemplateInfo = getTemplateInfo ;
exports . getWeeklyNote = getWeeklyNote ;
exports . getWeeklyNoteSettings = getWeeklyNoteSettings ;
exports . getYearlyNote = getYearlyNote ;
exports . getYearlyNoteSettings = getYearlyNoteSettings ;
}
} ) ;
// src/main.ts
var main _exports = { } ;
_ _export ( main _exports , {
default : ( ) => AdvancedURI
} ) ;
module . exports = _ _toCommonJS ( main _exports ) ;
var import _obsidian13 = require ( "obsidian" ) ;
// node_modules/obsidian-community-lib/dist/utils.js
var feather = _ _toESM ( require _feather ( ) ) ;
var import _obsidian = require ( "obsidian" ) ;
var stripMD = ( noteName ) => {
if ( noteName . match ( /\.MD$|\.md$/m ) ) {
return noteName . split ( /\.MD$|\.md$/m ) . slice ( 0 , - 1 ) . join ( ".md" ) ;
} else
return noteName ;
} ;
// src/main.ts
var import _obsidian _daily _notes _interface2 = _ _toESM ( require _main ( ) ) ;
// src/block_utils.ts
var import _obsidian2 = require ( "obsidian" ) ;
var BlockUtils = class _BlockUtils {
static getBlock ( app2 , editor , file ) {
var _a , _b ;
const cursor = editor . getCursor ( "to" ) ;
const fileCache = app2 . metadataCache . getFileCache ( file ) ;
let currentBlock = ( _a = fileCache == null ? void 0 : fileCache . sections ) == null ? void 0 : _a . find (
( section ) => section . position . start . line <= cursor . line && section . position . end . line >= cursor . line
) ;
if ( currentBlock . type == "list" ) {
currentBlock = ( _b = fileCache . listItems ) == null ? void 0 : _b . find ( ( list ) => {
if ( list . position . start . line <= cursor . line && list . position . end . line >= cursor . line ) {
return list ;
}
} ) ;
}
return currentBlock ;
}
static getIdOfBlock ( editor , block ) {
const blockId = block . id ;
if ( blockId ) {
return blockId ;
}
const sectionEnd = block . position . end ;
const pos = {
ch : sectionEnd . col ,
line : sectionEnd . line
} ;
const newId = Math . random ( ) . toString ( 36 ) . substring ( 2 , 8 ) ;
const spacer = _BlockUtils . shouldInsertAfter ( block ) ? "\n\n" : " " ;
editor . replaceRange ( ` ${ spacer } ^ ${ newId } ` , pos ) ;
return newId ;
}
static shouldInsertAfter ( block ) {
if ( block . type ) {
return [
"blockquote" ,
"code" ,
"table" ,
"heading" ,
"comment" ,
"footnoteDefinition"
] . includes ( block . type ) ;
}
}
static getBlockId ( app2 ) {
const view = app2 . workspace . getActiveViewOfType ( import _obsidian2 . MarkdownView ) ;
if ( view ) {
const editor = view . editor ;
const file = view . file ;
const block = this . getBlock ( app2 , editor , file ) ;
if ( block )
return this . getIdOfBlock ( editor , block ) ;
}
}
} ;
// src/constants.ts
var DEFAULT _SETTINGS = {
openFileOnWrite : true ,
openDailyInNewPane : false ,
openFileOnWriteInNewPane : false ,
openFileWithoutWriteInNewPane : false ,
idField : "id" ,
useUID : false ,
addFilepathWhenUsingUID : false ,
allowEval : false ,
includeVaultName : true ,
vaultParam : "name"
} ;
// src/daily_note_utils.ts
var import _obsidian3 = require ( "obsidian" ) ;
var import _obsidian _daily _notes _interface = _ _toESM ( require _main ( ) ) ;
function join ( ... partSegments ) {
let parts = [ ] ;
for ( let i = 0 , l = partSegments . length ; i < l ; i ++ ) {
parts = parts . concat ( partSegments [ i ] . split ( "/" ) ) ;
}
const newParts = [ ] ;
for ( let i = 0 , l = parts . length ; i < l ; i ++ ) {
const part = parts [ i ] ;
if ( ! part || part === "." )
continue ;
else
newParts . push ( part ) ;
}
if ( parts [ 0 ] === "" )
newParts . unshift ( "" ) ;
return newParts . join ( "/" ) ;
}
async function getNotePath ( directory , filename ) {
if ( ! filename . endsWith ( ".md" ) ) {
filename += ".md" ;
}
const path = ( 0 , import _obsidian3 . normalizePath ) ( join ( directory , filename ) ) ;
await ensureFolderExists ( path ) ;
return path ;
}
async function ensureFolderExists ( path ) {
const dirs = path . replace ( /\\/g , "/" ) . split ( "/" ) ;
dirs . pop ( ) ;
if ( dirs . length ) {
const dir = join ( ... dirs ) ;
if ( ! window . app . vault . getAbstractFileByPath ( dir ) ) {
await window . app . vault . createFolder ( dir ) ;
}
}
}
async function getDailyNotePath ( date ) {
const { format , folder } = ( 0 , import _obsidian _daily _notes _interface . getDailyNoteSettings ) ( ) ;
const filename = date . format ( format ) ;
const normalizedPath = await getNotePath ( folder , filename ) ;
return normalizedPath ;
}
// src/handlers.ts
var import _obsidian7 = require ( "obsidian" ) ;
// src/modals/enter_data_modal.ts
var import _obsidian4 = require ( "obsidian" ) ;
var EnterDataModal = class extends import _obsidian4 . SuggestModal {
constructor ( plugin , file ) {
super ( plugin . app ) ;
this . file = file ;
//null if for normal write mode, its not associated with a special mode like "append" or "prepend"
this . modes = [ null , "overwrite" , "append" , "prepend" ] ;
this . plugin = plugin ;
this . setPlaceholder (
"Type your data to be written to the file or leave it empty to just open it"
) ;
}
getSuggestions ( query ) {
if ( query == "" )
query = null ;
let suggestions = [ ] ;
for ( const mode of this . modes ) {
if ( ! ( mode === "overwrite" && ! query ) ) {
let display ;
if ( query ) {
if ( mode ) {
display = ` Write " ${ query } " in ${ mode } mode ` ;
} else {
display = ` Write " ${ query } " ` ;
}
} else {
if ( mode ) {
display = ` Open in ${ mode } mode ` ;
} else {
display = ` Open ` ;
}
}
suggestions . push ( {
data : query ,
display ,
mode ,
func : ( ) => {
if ( this . file ) {
this . plugin . tools . copyURI ( {
filepath : this . file ,
data : query ,
mode
} ) ;
} else {
this . plugin . tools . copyURI ( {
daily : "true" ,
data : query ,
mode
} ) ;
}
}
} ) ;
}
}
return suggestions ;
}
renderSuggestion ( value , el ) {
el . innerText = value . display ;
}
onChooseSuggestion ( item , _ ) {
item . func ( ) ;
}
} ;
// src/modals/file_modal.ts
var import _obsidian5 = require ( "obsidian" ) ;
var FileModal = class extends import _obsidian5 . FuzzySuggestModal {
constructor ( plugin , placeHolder , allowNoFile = true ) {
super ( plugin . app ) ;
this . placeHolder = placeHolder ;
this . allowNoFile = allowNoFile ;
this . plugin = plugin ;
this . setPlaceholder ( this . placeHolder ) ;
}
getItems ( ) {
let specialItems = [ ] ;
if ( this . allowNoFile ) {
specialItems . push ( {
display : "<Don't specify a file>" ,
source : void 0
} ) ;
}
const file = this . app . workspace . getActiveFile ( ) ;
if ( file ) {
specialItems . push ( { display : "<Current file>" , source : file . path } ) ;
}
return [
... specialItems ,
... this . app . vault . getFiles ( ) . map ( ( e ) => {
return { display : e . path , source : e . path } ;
} )
] ;
}
getItemText ( item ) {
return item . display ;
}
onChooseItem ( item , evt ) {
}
} ;
// src/utils.ts
var import _obsidian6 = require ( "obsidian" ) ;
function getViewStateFromMode ( parameters ) {
return parameters . viewmode ? {
state : {
mode : parameters . viewmode ,
source : parameters . viewmode == "source"
}
} : void 0 ;
}
function copyText ( text ) {
return navigator . clipboard . writeText ( text ) ;
}
function getAlternativeFilePath ( app2 , file ) {
var _a ;
const dir = ( _a = file . parent ) == null ? void 0 : _a . path ;
const formattedDir = dir === "/" ? "" : dir ;
const name = file . name ;
for ( let index = 1 ; index < 100 ; index ++ ) {
const base = stripMD ( name ) ;
const alternative = formattedDir + ( formattedDir == "" ? "" : "/" ) + base + ` ${ index } .md ` ;
const exists = app2 . vault . getAbstractFileByPath ( alternative ) !== null ;
if ( ! exists ) {
return alternative ;
}
}
}
function getFileUri ( app2 , file ) {
const url = new URL ( app2 . vault . getResourcePath ( file ) ) ;
url . host = "localhosthostlocal" ;
url . protocol = "file" ;
url . search = "" ;
url . pathname = decodeURIComponent ( url . pathname ) ;
const res = url . toString ( ) . replace ( "/localhosthostlocal/" , "/" ) ;
return res ;
}
function getEndAndBeginningOfHeading ( app2 , file , heading ) {
var _a , _b ;
const cache = app2 . metadataCache . getFileCache ( file ) ;
const sections = cache . sections ;
const foundHeading = ( _a = cache . headings ) == null ? void 0 : _a . find ( ( e ) => e . heading === heading ) ;
if ( foundHeading ) {
const foundSectionIndex = sections . findIndex (
( section ) => section . type === "heading" && section . position . start . line === foundHeading . position . start . line
) ;
const restSections = sections . slice ( foundSectionIndex + 1 ) ;
const nextHeadingIndex = restSections == null ? void 0 : restSections . findIndex (
( e ) => e . type === "heading"
) ;
const lastSection = ( _b = restSections [ ( nextHeadingIndex !== - 1 ? nextHeadingIndex : restSections . length ) - 1 ] ) != null ? _b : sections [ foundSectionIndex ] ;
const lastLine = lastSection . position . end . line + 1 ;
return {
lastLine ,
firstLine : sections [ foundSectionIndex ] . position . end . line + 1
} ;
} else {
new import _obsidian6 . Notice ( "Can't find heading" ) ;
}
}
// src/handlers.ts
var Handlers = class {
constructor ( plugin ) {
this . plugin = plugin ;
this . app = this . plugin . app ;
}
get tools ( ) {
return this . plugin . tools ;
}
handlePluginManagement ( parameters ) {
if ( parameters [ "enable-plugin" ] ) {
const pluginId = parameters [ "enable-plugin" ] ;
if ( this . app . plugins . getPlugin ( pluginId ) ) {
this . app . plugins . enablePluginAndSave ( pluginId ) ;
new import _obsidian7 . Notice ( ` Enabled ${ pluginId } ` ) ;
} else if ( this . app . internalPlugins . plugins [ pluginId ] ) {
this . app . internalPlugins . plugins [ pluginId ] . enable ( true ) ;
new import _obsidian7 . Notice ( ` Enabled ${ pluginId } ` ) ;
}
} else if ( parameters [ "disable-plugin" ] ) {
const pluginId = parameters [ "disable-plugin" ] ;
if ( this . app . plugins . getPlugin ( pluginId ) ) {
this . app . plugins . disablePluginAndSave ( pluginId ) ;
new import _obsidian7 . Notice ( ` Disabled ${ pluginId } ` ) ;
} else if ( this . app . internalPlugins . plugins [ pluginId ] ) {
this . app . internalPlugins . plugins [ pluginId ] . disable ( true ) ;
new import _obsidian7 . Notice ( ` Disabled ${ pluginId } ` ) ;
}
}
}
handleFrontmatterKey ( parameters ) {
var _a ;
const key = parameters . frontmatterkey ;
const file = this . app . vault . getAbstractFileByPath (
( _a = parameters . filepath ) != null ? _a : this . app . workspace . getActiveFile ( ) . path
) ;
if ( ! ( file instanceof import _obsidian7 . TFile ) ) {
return ;
}
const frontmatter = this . app . metadataCache . getFileCache ( file ) . frontmatter ;
if ( parameters . data ) {
let data = parameters . data ;
try {
data = JSON . parse ( data ) ;
} catch ( e ) {
data = ` " ${ data } " ` ;
data = JSON . parse ( data ) ;
}
this . app . fileManager . processFrontMatter ( file , ( frontmatter2 ) => {
if ( key . startsWith ( "[" ) && key . endsWith ( "]" ) ) {
const list = key . substring ( 1 , key . length - 1 ) . split ( "," ) ;
let cache = frontmatter2 ;
for ( let i = 0 ; i < list . length ; i ++ ) {
const item = list [ i ] ;
if ( cache instanceof Array ) {
const index = parseInt ( item ) ;
if ( Number . isNaN ( index ) ) {
cache = cache . find ( ( e ) => e == item ) ;
}
if ( i == list . length - 1 ) {
cache [ parseInt ( item ) ] = data ;
} else {
cache = cache [ parseInt ( item ) ] ;
}
} else {
if ( i == list . length - 1 ) {
cache [ item ] = data ;
} else {
cache = cache [ item ] ;
}
}
}
} else {
frontmatter2 [ key ] = data ;
}
} ) ;
} else {
let res ;
if ( key . startsWith ( "[" ) && key . endsWith ( "]" ) ) {
const list = key . substring ( 1 , key . length - 1 ) . split ( "," ) ;
let cache = frontmatter ;
for ( const item of list ) {
if ( cache instanceof Array ) {
const index = parseInt ( item ) ;
if ( Number . isNaN ( index ) ) {
cache = cache . find ( ( e ) => e == item ) ;
}
cache = cache [ parseInt ( item ) ] ;
} else {
cache = cache [ item ] ;
}
}
res = cache ;
} else {
res = frontmatter [ key ] ;
}
copyText ( res ) ;
}
}
handleWorkspace ( parameters ) {
const workspaces = this . app . internalPlugins . getEnabledPluginById ( "workspaces" ) ;
if ( ! workspaces ) {
new import _obsidian7 . Notice ( "Workspaces plugin is not enabled" ) ;
this . plugin . failure ( parameters ) ;
} else {
if ( parameters . saveworkspace == "true" ) {
const active = workspaces . activeWorkspace ;
workspaces . saveWorkspace ( active ) ;
new import _obsidian7 . Notice ( ` Saved current workspace to ${ active } ` ) ;
}
if ( parameters . workspace != void 0 ) {
workspaces . loadWorkspace ( parameters . workspace ) ;
}
this . plugin . success ( parameters ) ;
}
}
async handleCommand ( parameters ) {
if ( parameters . filepath ) {
if ( parameters . mode ) {
if ( parameters . mode == "new" ) {
const file = this . app . metadataCache . getFirstLinkpathDest (
parameters . filepath ,
"/"
) ;
if ( file instanceof import _obsidian7 . TFile ) {
parameters . filepath = getAlternativeFilePath (
this . app ,
file
) ;
}
}
await this . plugin . open ( {
file : parameters . filepath ,
mode : "source" ,
parameters
} ) ;
const view = this . app . workspace . getActiveViewOfType ( import _obsidian7 . MarkdownView ) ;
if ( view ) {
const editor = view . editor ;
const data = editor . getValue ( ) ;
if ( parameters . mode === "append" ) {
editor . setValue ( data + "\n" ) ;
const lines = editor . lineCount ( ) ;
editor . setCursor ( { ch : 0 , line : lines } ) ;
} else if ( parameters . mode === "prepend" ) {
editor . setValue ( "\n" + data ) ;
editor . setCursor ( { ch : 0 , line : 0 } ) ;
} else if ( parameters . mode === "overwrite" ) {
editor . setValue ( "" ) ;
}
}
} else if ( parameters . line ) {
await this . plugin . open ( {
file : parameters . filepath ,
mode : "source" ,
parameters
} ) ;
await this . plugin . setCursorInLine ( parameters ) ;
} else {
await this . plugin . open ( {
file : parameters . filepath ,
setting : this . plugin . settings . openFileWithoutWriteInNewPane ,
parameters
} ) ;
}
}
if ( parameters . commandid ) {
this . app . commands . executeCommandById ( parameters . commandid ) ;
} else if ( parameters . commandname ) {
const rawCommands = this . app . commands . commands ;
for ( const command in rawCommands ) {
if ( rawCommands [ command ] . name === parameters . commandname ) {
if ( rawCommands [ command ] . callback ) {
rawCommands [ command ] . callback ( ) ;
} else {
rawCommands [ command ] . checkCallback ( false ) ;
}
break ;
}
}
}
this . plugin . success ( parameters ) ;
}
async handleEval ( parameters ) {
if ( parameters . filepath ) {
if ( parameters . mode ) {
if ( parameters . mode == "new" ) {
const file = this . app . metadataCache . getFirstLinkpathDest (
parameters . filepath ,
"/"
) ;
if ( file instanceof import _obsidian7 . TFile ) {
parameters . filepath = getAlternativeFilePath (
this . app ,
file
) ;
}
}
await this . plugin . open ( {
file : parameters . filepath ,
mode : "source" ,
parameters
} ) ;
const view = this . app . workspace . getActiveViewOfType ( import _obsidian7 . MarkdownView ) ;
if ( view ) {
const editor = view . editor ;
const data = editor . getValue ( ) ;
if ( parameters . mode === "append" ) {
editor . setValue ( data + "\n" ) ;
const lines = editor . lineCount ( ) ;
editor . setCursor ( { ch : 0 , line : lines } ) ;
} else if ( parameters . mode === "prepend" ) {
editor . setValue ( "\n" + data ) ;
editor . setCursor ( { ch : 0 , line : 0 } ) ;
} else if ( parameters . mode === "overwrite" ) {
editor . setValue ( "" ) ;
}
}
} else if ( parameters . line ) {
await this . plugin . open ( {
file : parameters . filepath ,
mode : "source" ,
parameters
} ) ;
await this . plugin . setCursorInLine ( parameters ) ;
} else {
await this . plugin . open ( {
file : parameters . filepath ,
setting : this . plugin . settings . openFileWithoutWriteInNewPane ,
parameters
} ) ;
}
}
if ( this . plugin . settings . allowEval ) {
const eval2 = eval ;
eval2 ( parameters . eval ) ;
this . plugin . success ( parameters ) ;
} else {
new import _obsidian7 . Notice (
"Eval is not allowed. Please enable it in the settings."
) ;
this . plugin . failure ( parameters ) ;
}
}
async handleDoesFileExist ( parameters ) {
const exists = await this . app . vault . adapter . exists ( parameters . filepath ) ;
copyText ( ( exists ? 1 : 0 ) . toString ( ) ) ;
this . plugin . success ( parameters ) ;
}
async handleSearchAndReplace ( parameters ) {
let file ;
if ( parameters . filepath ) {
const abstractFile = this . app . vault . getAbstractFileByPath (
parameters . filepath
) ;
if ( abstractFile instanceof import _obsidian7 . TFile ) {
file = abstractFile ;
}
} else {
file = this . app . workspace . getActiveFile ( ) ;
}
if ( file ) {
let data = await this . app . vault . read ( file ) ;
if ( parameters . searchregex ) {
try {
const [ , , pattern , flags ] = parameters . searchregex . match ( /(\/?)(.+)\1([a-z]*)/i ) ;
const regex = new RegExp ( pattern , flags ) ;
data = data . replace ( regex , parameters . replace ) ;
this . plugin . success ( parameters ) ;
} catch ( error ) {
new import _obsidian7 . Notice (
` Can't parse ${ parameters . searchregex } as RegEx `
) ;
this . plugin . failure ( parameters ) ;
}
} else {
data = data . replaceAll ( parameters . search , parameters . replace ) ;
this . plugin . success ( parameters ) ;
}
await this . plugin . writeAndOpenFile ( file . path , data , parameters ) ;
} else {
new import _obsidian7 . Notice ( "Cannot find file" ) ;
this . plugin . failure ( parameters ) ;
}
}
async handleSearch ( parameters ) {
if ( parameters . filepath ) {
await this . plugin . open ( {
file : parameters . filepath ,
parameters
} ) ;
}
const view = this . app . workspace . getActiveViewOfType ( import _obsidian7 . FileView ) ;
view . currentMode . showSearch ( ) ;
const search = view . currentMode . search ;
search . searchInputEl . value = parameters . search ;
search . searchInputEl . dispatchEvent ( new Event ( "input" ) ) ;
}
async handleWrite ( parameters , createdDailyNote = false ) {
var _a ;
let file ;
if ( parameters . filepath ) {
file = this . app . vault . getAbstractFileByPath ( parameters . filepath ) ;
} else {
file = this . app . workspace . getActiveFile ( ) ;
}
if ( parameters . filepath || file ) {
let outFile ;
let path = ( _a = parameters . filepath ) != null ? _a : file . path ;
if ( parameters . mode === "overwrite" ) {
outFile = await this . plugin . writeAndOpenFile (
path ,
parameters . data ,
parameters
) ;
this . plugin . success ( parameters ) ;
} else if ( parameters . mode === "prepend" ) {
if ( file instanceof import _obsidian7 . TFile ) {
outFile = await this . plugin . prepend ( file , parameters ) ;
} else {
outFile = await this . plugin . prepend ( path , parameters ) ;
}
this . plugin . success ( parameters ) ;
} else if ( parameters . mode === "append" ) {
if ( file instanceof import _obsidian7 . TFile ) {
outFile = await this . plugin . append ( file , parameters ) ;
} else {
outFile = await this . plugin . append ( path , parameters ) ;
}
this . plugin . success ( parameters ) ;
} else if ( parameters . mode === "new" ) {
if ( file instanceof import _obsidian7 . TFile ) {
outFile = await this . plugin . writeAndOpenFile (
getAlternativeFilePath ( this . app , file ) ,
parameters . data ,
parameters
) ;
this . plugin . hookSuccess ( parameters , outFile ) ;
} else {
outFile = await this . plugin . writeAndOpenFile (
path ,
parameters . data ,
parameters
) ;
this . plugin . hookSuccess ( parameters , outFile ) ;
}
} else if ( ! createdDailyNote && file instanceof import _obsidian7 . TFile ) {
new import _obsidian7 . Notice ( "File already exists" ) ;
this . plugin . openExistingFileAndSetCursor ( file . path , parameters ) ;
this . plugin . failure ( parameters ) ;
} else {
outFile = await this . plugin . writeAndOpenFile (
path ,
parameters . data ,
parameters
) ;
this . plugin . success ( parameters ) ;
}
if ( parameters . uid ) {
this . tools . writeUIDToFile ( outFile , parameters . uid ) ;
}
} else {
new import _obsidian7 . Notice ( "Cannot find file" ) ;
this . plugin . failure ( parameters ) ;
}
}
async handleOpen ( parameters ) {
if ( parameters . heading != void 0 ) {
await this . plugin . open ( {
file : parameters . filepath + "#" + parameters . heading ,
setting : this . plugin . settings . openFileWithoutWriteInNewPane ,
parameters
} ) ;
const view = this . app . workspace . getActiveViewOfType ( import _obsidian7 . MarkdownView ) ;
if ( ! view )
return ;
const cache = this . app . metadataCache . getFileCache ( view . file ) ;
const heading = cache . headings . find (
( e ) => e . heading === parameters . heading
) ;
view . editor . focus ( ) ;
view . editor . setCursor ( {
line : heading . position . start . line + 1 ,
ch : 0
} ) ;
} else if ( parameters . block != void 0 ) {
await this . plugin . open ( {
file : parameters . filepath + "#^" + parameters . block ,
setting : this . plugin . settings . openFileWithoutWriteInNewPane ,
parameters
} ) ;
const view = this . app . workspace . getActiveViewOfType ( import _obsidian7 . MarkdownView ) ;
if ( ! view )
return ;
const cache = this . app . metadataCache . getFileCache ( view . file ) ;
const block = cache . blocks [ parameters . block ] ;
view . editor . focus ( ) ;
view . editor . setCursor ( { line : block . position . start . line , ch : 0 } ) ;
} else {
await this . plugin . open ( {
file : parameters . filepath ,
setting : this . plugin . settings . openFileWithoutWriteInNewPane ,
parameters
} ) ;
if ( parameters . line != void 0 ) {
await this . plugin . setCursorInLine ( parameters ) ;
}
}
if ( parameters . mode != void 0 ) {
await this . plugin . setCursor ( parameters ) ;
}
if ( parameters . uid ) {
const view = this . app . workspace . getActiveViewOfType ( import _obsidian7 . MarkdownView ) ;
this . tools . writeUIDToFile ( view . file , parameters . uid ) ;
}
this . plugin . success ( parameters ) ;
}
async handleOpenBlock ( parameters ) {
const file = this . tools . getFileFromBlockID ( parameters . block ) ;
if ( file ) {
await this . plugin . chooseHandler (
{
... parameters ,
filepath : file . path
} ,
false
) ;
}
}
handleCopyFileURI ( withoutData , file ) {
const view = this . app . workspace . getActiveViewOfType ( import _obsidian7 . FileView ) ;
if ( ! view && ! file )
return ;
if ( view instanceof import _obsidian7 . MarkdownView ) {
const pos = view . editor . getCursor ( ) ;
const cache = this . app . metadataCache . getFileCache ( view . file ) ;
if ( cache . headings ) {
for ( const heading of cache . headings ) {
if ( heading . position . start . line <= pos . line && heading . position . end . line >= pos . line ) {
this . tools . copyURI ( {
filepath : view . file . path ,
heading : heading . heading
} ) ;
return ;
}
}
}
if ( cache . blocks ) {
for ( const blockID of Object . keys ( cache . blocks ) ) {
const block = cache . blocks [ blockID ] ;
if ( block . position . start . line <= pos . line && block . position . end . line >= pos . line ) {
this . tools . copyURI ( {
filepath : view . file . path ,
block : blockID
} ) ;
return ;
}
}
}
}
if ( withoutData ) {
const file2 = file != null ? file : this . app . workspace . getActiveFile ( ) ;
if ( ! file2 ) {
new import _obsidian7 . Notice ( "No file opened" ) ;
return ;
}
this . tools . copyURI ( {
filepath : file2 . path
} ) ;
} else {
const fileModal = new FileModal (
this . plugin ,
"Choose a file" ,
false
) ;
fileModal . open ( ) ;
fileModal . onChooseItem = ( item , _ ) => {
new EnterDataModal ( this . plugin , item . source ) . open ( ) ;
} ;
}
}
handleOpenSettings ( parameters ) {
if ( this . app . setting . containerEl . parentElement === null ) {
this . app . setting . open ( ) ;
}
if ( parameters . settingid == "plugin-browser" ) {
this . app . setting . openTabById ( "community-plugins" ) ;
this . app . setting . activeTab . containerEl . find ( ".mod-cta" ) . click ( ) ;
} else if ( parameters . settingid == "theme-browser" ) {
this . app . setting . openTabById ( "appearance" ) ;
this . app . setting . activeTab . containerEl . find ( ".mod-cta" ) . click ( ) ;
} else {
this . app . setting . openTabById ( parameters . settingid ) ;
}
if ( parameters . settingsection ) {
const elements = this . app . setting . tabContentContainer . querySelectorAll ( "*" ) ;
const heading = Array . prototype . find . call (
elements ,
( e ) => e . textContent == parameters . settingsection
) ;
if ( heading ) {
heading . scrollIntoView ( ) ;
}
}
this . plugin . success ( parameters ) ;
}
async handleUpdatePlugins ( parameters ) {
parameters . settingid = "community-plugins" ;
this . handleOpenSettings ( parameters ) ;
this . app . setting . activeTab . containerEl . findAll ( ".mod-cta" ) . last ( ) . click ( ) ;
new import _obsidian7 . Notice ( "Waiting 10 seconds" ) ;
await new Promise ( ( resolve ) => setTimeout ( resolve , 10 * 1e3 ) ) ;
if ( Object . keys ( this . app . plugins . updates ) . length !== 0 ) {
this . app . setting . activeTab . containerEl . findAll ( ".mod-cta" ) . last ( ) . click ( ) ;
}
this . plugin . success ( parameters ) ;
}
async handleBookmarks ( parameters ) {
const bookmarksPlugin = this . app . internalPlugins . getEnabledPluginById ( "bookmarks" ) ;
const bookmarks = bookmarksPlugin . getBookmarks ( ) ;
const bookmark = bookmarks . find ( ( b ) => b . title == parameters . bookmark ) ;
let openMode ;
if ( parameters . openmode == "true" || parameters . openmode == "false" ) {
openMode = parameters . openmode == "true" ;
} else {
openMode = parameters . openmode ;
}
bookmarksPlugin . openBookmark ( bookmark , openMode ) ;
}
} ;
// src/modals/command_modal.ts
var import _obsidian8 = require ( "obsidian" ) ;
var CommandModal = class extends import _obsidian8 . FuzzySuggestModal {
constructor ( plugin , file ) {
super ( plugin . app ) ;
this . plugin = plugin ;
this . file = file ;
}
getItems ( ) {
const rawCommands = this . app . commands . commands ;
const commands = Object . keys ( rawCommands ) . map ( ( e ) => {
return { id : rawCommands [ e ] . id , name : rawCommands [ e ] . name } ;
} ) ;
return commands ;
}
getItemText ( item ) {
return item . name ;
}
onChooseItem ( item , _ ) {
this . plugin . tools . copyURI ( {
filepath : this . file ,
commandid : item . id
} ) ;
}
} ;
// src/modals/replace_modal.ts
var import _obsidian9 = require ( "obsidian" ) ;
var ReplaceModal = class extends import _obsidian9 . SuggestModal {
constructor ( plugin , search , filepath ) {
super ( plugin . app ) ;
this . search = search ;
this . filepath = filepath ;
this . emptyText = "Empty text (replace with nothing)" ;
this . plugin = plugin ;
this . setPlaceholder ( "Replacement text" ) ;
}
getSuggestions ( query ) {
if ( query === "" ) {
query = this . emptyText ;
}
return [ query ] ;
}
renderSuggestion ( value , el ) {
el . innerText = value ;
}
onChooseSuggestion ( item , _ ) {
if ( this . search . isRegEx ) {
this . plugin . tools . copyURI ( {
filepath : this . filepath ,
searchregex : this . search . source ,
replace : item == this . emptyText ? "" : item
} ) ;
} else {
this . plugin . tools . copyURI ( {
filepath : this . filepath ,
search : this . search . source ,
replace : item == this . emptyText ? "" : item
} ) ;
}
}
} ;
// src/modals/search_modal.ts
var import _obsidian10 = require ( "obsidian" ) ;
var SearchModal = class extends import _obsidian10 . SuggestModal {
constructor ( plugin ) {
super ( plugin . app ) ;
this . plugin = plugin ;
this . setPlaceholder ( "Searched text. RegEx is supported" ) ;
}
getSuggestions ( query ) {
if ( query === "" ) {
query = "..." ;
}
let regex ;
try {
regex = new RegExp ( query ) ;
} catch ( error ) {
}
return [
{
source : query ,
isRegEx : false ,
display : query
} ,
{
source : query ,
display : regex ? ` As RegEx: ${ query } ` : ` Can't parse RegEx ` ,
isRegEx : true
}
] ;
}
renderSuggestion ( value , el ) {
el . innerText = value . display ;
}
onChooseSuggestion ( item , _ ) {
}
} ;
// src/settings.ts
var import _obsidian11 = require ( "obsidian" ) ;
var SettingsTab = class extends import _obsidian11 . PluginSettingTab {
constructor ( app2 , plugin ) {
super ( app2 , plugin ) ;
this . plugin = plugin ;
}
display ( ) {
let { containerEl } = this ;
containerEl . empty ( ) ;
containerEl . createEl ( "h2" , { text : this . plugin . manifest . name } ) ;
new import _obsidian11 . Setting ( containerEl ) . setName ( "Open file on write" ) . addToggle (
( cb ) => cb . setValue ( this . plugin . settings . openFileOnWrite ) . onChange ( ( value ) => {
this . plugin . settings . openFileOnWrite = value ;
this . plugin . saveSettings ( ) ;
} )
) ;
new import _obsidian11 . Setting ( containerEl ) . setName ( "Open file on write in a new pane" ) . setDisabled ( this . plugin . settings . openFileOnWrite ) . addToggle (
( cb ) => cb . setValue ( this . plugin . settings . openFileOnWriteInNewPane ) . onChange ( ( value ) => {
this . plugin . settings . openFileOnWriteInNewPane = value ;
this . plugin . saveSettings ( ) ;
} )
) ;
new import _obsidian11 . Setting ( containerEl ) . setName ( "Open daily note in a new pane" ) . addToggle (
( cb ) => cb . setValue ( this . plugin . settings . openDailyInNewPane ) . onChange ( ( value ) => {
this . plugin . settings . openDailyInNewPane = value ;
this . plugin . saveSettings ( ) ;
} )
) ;
new import _obsidian11 . Setting ( containerEl ) . setName ( "Open file without write in new pane" ) . addToggle (
( cb ) => cb . setValue (
this . plugin . settings . openFileWithoutWriteInNewPane
) . onChange ( ( value ) => {
this . plugin . settings . openFileWithoutWriteInNewPane = value ;
this . plugin . saveSettings ( ) ;
} )
) ;
new import _obsidian11 . Setting ( containerEl ) . setName ( "Use UID instead of file paths" ) . addToggle (
( cb ) => cb . setValue ( this . plugin . settings . useUID ) . onChange ( ( value ) => {
this . plugin . settings . useUID = value ;
this . plugin . saveSettings ( ) ;
this . display ( ) ;
} )
) ;
new import _obsidian11 . Setting ( containerEl ) . setName ( "Include vault name/ID parameter" ) . addToggle (
( cb ) => cb . setValue ( this . plugin . settings . includeVaultName ) . onChange ( ( value ) => {
this . plugin . settings . includeVaultName = value ;
this . plugin . saveSettings ( ) ;
this . display ( ) ;
} )
) ;
if ( this . plugin . settings . includeVaultName ) {
new import _obsidian11 . Setting ( containerEl ) . setName ( "Vault identifying parameter" ) . setDesc (
"Choose whether to use the vault Name or its internal ID as the identifying parameter."
) . addDropdown (
( cb ) => cb . addOption ( "name" , "Name" ) . addOption ( "id" , "ID" ) . setValue ( this . plugin . settings . vaultParam ) . onChange ( ( value ) => {
this . plugin . settings . vaultParam = value ;
this . plugin . saveSettings ( ) ;
} )
) ;
}
if ( this . plugin . settings . useUID ) {
new import _obsidian11 . Setting ( containerEl ) . setName ( "Add filepath parameter" ) . setDesc (
"When using UID instead of file paths, you can still add the filepath parameter to know what this URI is about. It's NOT actually used."
) . addToggle (
( cb ) => cb . setValue ( this . plugin . settings . addFilepathWhenUsingUID ) . onChange ( ( value ) => {
this . plugin . settings . addFilepathWhenUsingUID = value ;
this . plugin . saveSettings ( ) ;
} )
) ;
}
new import _obsidian11 . Setting ( containerEl ) . setName ( "UID field in frontmatter" ) . addText (
( cb ) => cb . setValue ( this . plugin . settings . idField ) . onChange ( ( value ) => {
this . plugin . settings . idField = value ;
this . plugin . saveSettings ( ) ;
} )
) ;
new import _obsidian11 . Setting ( containerEl ) . setName ( "Allow executing arbitrary code via eval" ) . setDesc (
"\u26A0\uFE0F This can be dangerous as it allows executing arbitrary code. Only enable this if you trust the source of the URIs you are using and know what you are doing. \u26A0\uFE0F"
) . addToggle (
( cb ) => cb . setValue ( this . plugin . settings . allowEval ) . onChange ( ( value ) => {
this . plugin . settings . allowEval = value ;
this . plugin . saveSettings ( ) ;
} )
) ;
new import _obsidian11 . Setting ( containerEl ) . setName ( "Donate" ) . setDesc (
"If you like this Plugin, consider donating to support continued development."
) . addButton ( ( bt ) => {
bt . buttonEl . outerHTML = "<a href='https://ko-fi.com/F1F195IQ5' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://cdn.ko-fi.com/cdn/kofi3.png?v=3' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>" ;
} ) ;
}
} ;
// src/tools.ts
var import _obsidian12 = require ( "obsidian" ) ;
// node_modules/uuid/dist/esm-browser/rng.js
var getRandomValues ;
var rnds8 = new Uint8Array ( 16 ) ;
function rng ( ) {
if ( ! getRandomValues ) {
getRandomValues = typeof crypto !== "undefined" && crypto . getRandomValues && crypto . getRandomValues . bind ( crypto ) || typeof msCrypto !== "undefined" && typeof msCrypto . getRandomValues === "function" && msCrypto . getRandomValues . bind ( msCrypto ) ;
if ( ! getRandomValues ) {
throw new Error ( "crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported" ) ;
}
}
return getRandomValues ( rnds8 ) ;
}
// node_modules/uuid/dist/esm-browser/regex.js
var regex _default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i ;
// node_modules/uuid/dist/esm-browser/validate.js
function validate ( uuid ) {
return typeof uuid === "string" && regex _default . test ( uuid ) ;
}
var validate _default = validate ;
// node_modules/uuid/dist/esm-browser/stringify.js
var byteToHex = [ ] ;
for ( i = 0 ; i < 256 ; ++ i ) {
byteToHex . push ( ( i + 256 ) . toString ( 16 ) . substr ( 1 ) ) ;
}
var i ;
function stringify ( arr ) {
var offset = arguments . length > 1 && arguments [ 1 ] !== void 0 ? arguments [ 1 ] : 0 ;
var uuid = ( byteToHex [ arr [ offset + 0 ] ] + byteToHex [ arr [ offset + 1 ] ] + byteToHex [ arr [ offset + 2 ] ] + byteToHex [ arr [ offset + 3 ] ] + "-" + byteToHex [ arr [ offset + 4 ] ] + byteToHex [ arr [ offset + 5 ] ] + "-" + byteToHex [ arr [ offset + 6 ] ] + byteToHex [ arr [ offset + 7 ] ] + "-" + byteToHex [ arr [ offset + 8 ] ] + byteToHex [ arr [ offset + 9 ] ] + "-" + byteToHex [ arr [ offset + 10 ] ] + byteToHex [ arr [ offset + 11 ] ] + byteToHex [ arr [ offset + 12 ] ] + byteToHex [ arr [ offset + 13 ] ] + byteToHex [ arr [ offset + 14 ] ] + byteToHex [ arr [ offset + 15 ] ] ) . toLowerCase ( ) ;
if ( ! validate _default ( uuid ) ) {
throw TypeError ( "Stringified UUID is invalid" ) ;
}
return uuid ;
}
var stringify _default = stringify ;
// node_modules/uuid/dist/esm-browser/v4.js
function v4 ( options , buf , offset ) {
options = options || { } ;
var rnds = options . random || ( options . rng || rng ) ( ) ;
rnds [ 6 ] = rnds [ 6 ] & 15 | 64 ;
rnds [ 8 ] = rnds [ 8 ] & 63 | 128 ;
if ( buf ) {
offset = offset || 0 ;
for ( var i = 0 ; i < 16 ; ++ i ) {
buf [ offset + i ] = rnds [ i ] ;
}
return buf ;
}
return stringify _default ( rnds ) ;
}
var v4 _default = v4 ;
// src/tools.ts
var Tools = class {
constructor ( plugin ) {
this . plugin = plugin ;
this . app = this . plugin . app ;
}
get settings ( ) {
return this . plugin . settings ;
}
async writeUIDToFile ( file , uid ) {
var _a ;
const frontmatter = ( _a = this . app . metadataCache . getFileCache ( file ) ) == null ? void 0 : _a . frontmatter ;
const fileContent = await this . app . vault . read ( file ) ;
const isYamlEmpty = ( ! frontmatter || frontmatter . length === 0 ) && ! fileContent . match ( /^-{3}\s*\n*\r*-{3}/ ) ;
let splitContent = fileContent . split ( "\n" ) ;
const key = ` ${ this . plugin . settings . idField } : ` ;
if ( isYamlEmpty ) {
splitContent . unshift ( "---" ) ;
splitContent . unshift ( ` ${ key } ${ uid } ` ) ;
splitContent . unshift ( "---" ) ;
} else {
const lineIndexOfKey = splitContent . findIndex (
( line ) => line . startsWith ( key )
) ;
if ( lineIndexOfKey != - 1 ) {
splitContent [ lineIndexOfKey ] = ` ${ key } ${ uid } ` ;
} else {
splitContent . splice ( 1 , 0 , ` ${ key } ${ uid } ` ) ;
}
}
const newFileContent = splitContent . join ( "\n" ) ;
await this . app . vault . modify ( file , newFileContent ) ;
return uid ;
}
async getUIDFromFile ( file ) {
var _a ;
const cache = ( _a = this . app . metadataCache . getFileCache ( file ) ) != null ? _a : await new Promise ( ( resolve ) => {
const ref = this . app . metadataCache . on ( "changed" , ( metaFile ) => {
if ( metaFile . path == file . path ) {
const cache2 = this . app . metadataCache . getFileCache ( file ) ;
this . app . metadataCache . offref ( ref ) ;
resolve ( cache2 ) ;
}
} ) ;
} ) ;
const uid = ( 0 , import _obsidian12 . parseFrontMatterEntry ) (
cache . frontmatter ,
this . plugin . settings . idField
) ;
if ( uid != void 0 ) {
if ( uid instanceof Array ) {
return uid [ 0 ] ;
} else {
return uid ;
}
}
return await this . writeUIDToFile ( file , v4 _default ( ) ) ;
}
async generateURI ( parameters , doubleEncode ) {
const prefix = "obsidian://advanced-uri" ;
let suffix = "" ;
const file = this . app . vault . getAbstractFileByPath ( parameters . filepath ) ;
if ( this . settings . includeVaultName ) {
suffix += "?vault=" ;
if ( this . settings . vaultParam == "id" && this . app . appId ) {
suffix += this . app . appId ;
} else {
suffix += this . app . vault . getName ( ) ;
}
}
if ( this . settings . useUID && file instanceof import _obsidian12 . TFile && file . extension == "md" ) {
if ( ! this . settings . addFilepathWhenUsingUID )
parameters . filepath = void 0 ;
parameters . uid = await this . getUIDFromFile ( file ) ;
}
for ( const parameter in parameters ) {
if ( parameters [ parameter ] != void 0 ) {
suffix += suffix ? "&" : "?" ;
suffix += ` ${ parameter } = ${ encodeURIComponent (
parameters [ parameter ]
) } ` ;
}
}
if ( doubleEncode ) {
return prefix + encodeURI ( suffix ) ;
} else {
return prefix + suffix ;
}
}
async copyURI ( parameters ) {
const uri = await this . generateURI ( parameters , true ) ;
await copyText ( uri ) ;
new import _obsidian12 . Notice ( "Advanced URI copied to your clipboard" ) ;
}
getFileFromUID ( uid ) {
var _a ;
const files = this . app . vault . getMarkdownFiles ( ) ;
const idKey = this . settings . idField ;
for ( const file of files ) {
const fieldValue = ( 0 , import _obsidian12 . parseFrontMatterEntry ) (
( _a = this . app . metadataCache . getFileCache ( file ) ) == null ? void 0 : _a . frontmatter ,
idKey
) ;
if ( fieldValue instanceof Array ) {
if ( fieldValue . contains ( uid ) )
return file ;
} else {
if ( fieldValue == uid )
return file ;
}
}
}
getFileFromBlockID ( blockId ) {
var _a , _b ;
const files = this . app . vault . getMarkdownFiles ( ) ;
for ( const file of files ) {
const blockExists = ( ( _b = ( _a = this . app . metadataCache . getFileCache ( file ) ) == null ? void 0 : _a . blocks ) == null ? void 0 : _b [ blockId ] ) != void 0 ;
if ( blockExists )
return file ;
}
}
} ;
// src/main.ts
var AdvancedURI = class extends import _obsidian13 . Plugin {
constructor ( ) {
super ( ... arguments ) ;
this . handlers = new Handlers ( this ) ;
this . tools = new Tools ( this ) ;
}
async onload ( ) {
await this . loadSettings ( ) ;
this . addSettingTab ( new SettingsTab ( this . app , this ) ) ;
this . addCommand ( {
id : "copy-uri-current-file" ,
name : "copy URI for file with options" ,
callback : ( ) => this . handlers . handleCopyFileURI ( false )
} ) ;
this . addCommand ( {
id : "copy-uri-current-file-simple" ,
name : "copy URI for current file" ,
callback : ( ) => this . handlers . handleCopyFileURI ( true )
} ) ;
this . addCommand ( {
id : "copy-uri-daily" ,
name : "copy URI for daily note" ,
callback : ( ) => new EnterDataModal ( this ) . open ( )
} ) ;
this . addCommand ( {
id : "copy-uri-search-and-replace" ,
name : "copy URI for search and replace" ,
callback : ( ) => {
const fileModal = new FileModal (
this ,
"Used file for search and replace"
) ;
fileModal . open ( ) ;
fileModal . onChooseItem = ( filePath ) => {
const searchModal = new SearchModal ( this ) ;
searchModal . open ( ) ;
searchModal . onChooseSuggestion = ( item ) => {
new ReplaceModal ( this , item , filePath == null ? void 0 : filePath . source ) . open ( ) ;
} ;
} ;
}
} ) ;
this . addCommand ( {
id : "copy-uri-command" ,
name : "copy URI for command" ,
callback : ( ) => {
const fileModal = new FileModal (
this ,
"Select a file to be opened before executing the command"
) ;
fileModal . open ( ) ;
fileModal . onChooseItem = ( item ) => {
new CommandModal ( this , item == null ? void 0 : item . source ) . open ( ) ;
} ;
}
} ) ;
this . addCommand ( {
id : "copy-uri-block" ,
name : "copy URI for current block" ,
checkCallback : ( checking ) => {
const view = this . app . workspace . getActiveViewOfType ( import _obsidian13 . MarkdownView ) ;
if ( checking )
return view != void 0 ;
const id = BlockUtils . getBlockId ( this . app ) ;
if ( id ) {
this . tools . copyURI ( {
filepath : view . file . path ,
block : id
} ) ;
}
}
} ) ;
this . registerObsidianProtocolHandler ( "advanced-uri" , async ( e ) => {
var _a , _b , _c ;
const parameters = e ;
let createdDailyNote = false ;
for ( const parameter in parameters ) {
parameters [ parameter ] = decodeURIComponent (
parameters [ parameter ]
) ;
}
this . lastParameters = { ... parameters } ;
if ( parameters . uid ) {
const res = ( _a = this . tools . getFileFromUID ( parameters . uid ) ) == null ? void 0 : _a . path ;
if ( res != void 0 ) {
parameters . filepath = res ;
parameters . uid = void 0 ;
}
} else if ( parameters . filename ) {
let file = this . app . metadataCache . getFirstLinkpathDest (
parameters . filename ,
""
) ;
if ( ! file ) {
file = this . app . vault . getMarkdownFiles ( ) . find (
( file2 ) => {
var _a2 ;
return ( _a2 = ( 0 , import _obsidian13 . parseFrontMatterAliases ) (
this . app . metadataCache . getFileCache ( file2 ) . frontmatter
) ) == null ? void 0 : _a2 . includes ( parameters . filename ) ;
}
) ;
}
const parentFolder = this . app . fileManager . getNewFileParent (
( _b = this . app . workspace . getActiveFile ( ) ) == null ? void 0 : _b . path
) ;
const parentFolderPath = parentFolder . isRoot ( ) ? "" : parentFolder . path + "/" ;
parameters . filepath = ( _c = file == null ? void 0 : file . path ) != null ? _c : parentFolderPath + ( 0 , import _obsidian13 . normalizePath ) ( parameters . filename ) ;
}
if ( parameters . filepath ) {
parameters . filepath = ( 0 , import _obsidian13 . normalizePath ) ( parameters . filepath ) ;
const index = parameters . filepath . lastIndexOf ( "." ) ;
const extension = parameters . filepath . substring (
index < 0 ? parameters . filepath . length : index
) ;
if ( extension === "" ) {
parameters . filepath = parameters . filepath + ".md" ;
}
} else if ( parameters . daily === "true" ) {
if ( ! ( 0 , import _obsidian _daily _notes _interface2 . appHasDailyNotesPluginLoaded ) ( ) ) {
new import _obsidian13 . Notice ( "Daily notes plugin is not loaded" ) ;
return ;
}
const moment = window . moment ( Date . now ( ) ) ;
const allDailyNotes = ( 0 , import _obsidian _daily _notes _interface2 . getAllDailyNotes ) ( ) ;
let dailyNote = ( 0 , import _obsidian _daily _notes _interface2 . getDailyNote ) ( moment , allDailyNotes ) ;
if ( ! dailyNote ) {
if ( parameters . exists === "true" ) {
parameters . filepath = await getDailyNotePath ( moment ) ;
} else {
dailyNote = await ( 0 , import _obsidian _daily _notes _interface2 . createDailyNote ) ( moment ) ;
await new Promise ( ( r ) => setTimeout ( r , 500 ) ) ;
createdDailyNote = true ;
}
}
if ( dailyNote !== void 0 ) {
parameters . filepath = dailyNote . path ;
}
}
if ( parameters . clipboard === "true" ) {
parameters . data = await navigator . clipboard . readText ( ) ;
}
this . chooseHandler ( parameters , createdDailyNote ) ;
} ) ;
this . registerObsidianProtocolHandler (
"hook-get-advanced-uri" ,
async ( e ) => {
const parameters = e ;
for ( const parameter in parameters ) {
parameters [ parameter ] = decodeURIComponent (
parameters [ parameter ]
) ;
}
const file = this . app . workspace . getActiveFile ( ) ;
if ( file ) {
this . hookSuccess ( parameters , file ) ;
} else {
this . failure ( parameters , {
errorMessage : "No file opened"
} ) ;
}
}
) ;
this . registerEvent (
this . app . workspace . on ( "file-menu" , ( menu , file , source ) => {
console . log ( source ) ;
if ( ! ( source === "more-options" || source === "tab-header" || source == "file-explorer-context-menu" ) ) {
return ;
}
if ( ! ( file instanceof import _obsidian13 . TFile ) ) {
return ;
}
menu . addItem ( ( item ) => {
item . setTitle ( ` Copy Advanced URI ` ) . setIcon ( "link" ) . setSection ( "info" ) . onClick (
( _ ) => this . handlers . handleCopyFileURI ( true , file )
) ;
} ) ;
} )
) ;
}
async chooseHandler ( parameters , createdDailyNote ) {
if ( parameters [ "enable-plugin" ] || parameters [ "disable-plugin" ] ) {
this . handlers . handlePluginManagement ( parameters ) ;
} else if ( parameters . frontmatterkey ) {
this . handlers . handleFrontmatterKey ( parameters ) ;
} else if ( parameters . workspace || parameters . saveworkspace == "true" ) {
this . handlers . handleWorkspace ( parameters ) ;
} else if ( parameters . commandname || parameters . commandid ) {
this . handlers . handleCommand ( parameters ) ;
} else if ( parameters . bookmark ) {
this . handlers . handleBookmarks ( parameters ) ;
} else if ( parameters . eval ) {
this . handlers . handleEval ( parameters ) ;
} else if ( parameters . filepath && parameters . exists === "true" ) {
this . handlers . handleDoesFileExist ( parameters ) ;
} else if ( parameters . data ) {
this . handlers . handleWrite ( parameters , createdDailyNote ) ;
} else if ( parameters . filepath && parameters . heading ) {
await this . handlers . handleOpen ( parameters ) ;
parameters . filepath = void 0 ;
parameters . heading = void 0 ;
this . chooseHandler ( parameters , createdDailyNote ) ;
} else if ( parameters . filepath && parameters . block ) {
await this . handlers . handleOpen ( parameters ) ;
parameters . filepath = void 0 ;
parameters . block = void 0 ;
this . chooseHandler ( parameters , createdDailyNote ) ;
} else if ( ( parameters . search || parameters . searchregex ) && parameters . replace != void 0 ) {
this . handlers . handleSearchAndReplace ( parameters ) ;
} else if ( parameters . search ) {
this . handlers . handleSearch ( parameters ) ;
} else if ( parameters . filepath ) {
this . handlers . handleOpen ( parameters ) ;
} else if ( parameters . block ) {
this . handlers . handleOpenBlock ( parameters ) ;
} else if ( parameters . settingid ) {
this . handlers . handleOpenSettings ( parameters ) ;
} else if ( parameters . updateplugins ) {
this . handlers . handleUpdatePlugins ( parameters ) ;
}
}
async hookSuccess ( parameters , file ) {
if ( ! parameters [ "x-success" ] )
return ;
const options = {
title : stripMD ( file . name ) ,
advanceduri : await this . tools . generateURI (
{ filepath : file . path } ,
false
) ,
urlkey : "advanceduri" ,
fileuri : getFileUri ( this . app , file )
} ;
this . success ( parameters , options ) ;
}
success ( parameters , options ) {
if ( parameters [ "x-success" ] ) {
const url = new URL ( parameters [ "x-success" ] ) ;
for ( const param in options ) {
url . searchParams . set ( param , options [ param ] ) ;
}
window . open ( url . toString ( ) ) ;
}
}
failure ( parameters , options ) {
if ( parameters [ "x-error" ] ) {
const url = new URL ( parameters [ "x-error" ] ) ;
for ( const param in options ) {
url . searchParams . set ( param , options [ param ] ) ;
}
window . open ( url . toString ( ) ) ;
}
}
async append ( file , parameters ) {
var _a ;
let path ;
let dataToWrite ;
if ( parameters . heading ) {
if ( file instanceof import _obsidian13 . TFile ) {
path = file . path ;
const line = ( _a = getEndAndBeginningOfHeading (
this . app ,
file ,
parameters . heading
) ) == null ? void 0 : _a . lastLine ;
if ( line === void 0 )
return ;
const data = await this . app . vault . read ( file ) ;
const lines = data . split ( "\n" ) ;
lines . splice ( line , 0 , ... parameters . data . split ( "\n" ) ) ;
dataToWrite = lines . join ( "\n" ) ;
}
} else {
let fileData ;
if ( file instanceof import _obsidian13 . TFile ) {
fileData = await this . app . vault . read ( file ) ;
path = file . path ;
} else {
path = file ;
fileData = "" ;
}
dataToWrite = fileData + "\n" + parameters . data ;
}
return this . writeAndOpenFile ( path , dataToWrite , parameters ) ;
}
async prepend ( file , parameters ) {
var _a ;
let path ;
let dataToWrite ;
if ( parameters . heading ) {
if ( file instanceof import _obsidian13 . TFile ) {
path = file . path ;
const line = ( _a = getEndAndBeginningOfHeading (
this . app ,
file ,
parameters . heading
) ) == null ? void 0 : _a . firstLine ;
if ( line === void 0 )
return ;
const data = await this . app . vault . read ( file ) ;
const lines = data . split ( "\n" ) ;
lines . splice ( line , 0 , ... parameters . data . split ( "\n" ) ) ;
dataToWrite = lines . join ( "\n" ) ;
}
} else {
if ( file instanceof import _obsidian13 . TFile ) {
const fileData = await this . app . vault . read ( file ) ;
const cache = this . app . metadataCache . getFileCache ( file ) ;
if ( cache . frontmatterPosition ) {
const line = cache . frontmatterPosition . end . line ;
const first = fileData . split ( "\n" ) . slice ( 0 , line + 1 ) . join ( "\n" ) ;
const last = fileData . split ( "\n" ) . slice ( line + 1 ) . join ( "\n" ) ;
dataToWrite = first + "\n" + parameters . data + "\n" + last ;
} else {
dataToWrite = parameters . data + "\n" + fileData ;
}
path = file . path ;
} else {
path = file ;
dataToWrite = parameters . data ;
}
}
return this . writeAndOpenFile ( path , dataToWrite , parameters ) ;
}
async writeAndOpenFile ( outputFileName , text , parameters ) {
const file = this . app . vault . getAbstractFileByPath ( outputFileName ) ;
if ( file instanceof import _obsidian13 . TFile ) {
await this . app . vault . modify ( file , text ) ;
} else {
const parts = outputFileName . split ( "/" ) ;
const dir = parts . slice ( 0 , parts . length - 1 ) . join ( "/" ) ;
if ( parts . length > 1 && ! ( this . app . vault . getAbstractFileByPath ( dir ) instanceof import _obsidian13 . TFolder ) ) {
await this . app . vault . createFolder ( dir ) ;
}
const base64regex = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/ ;
if ( base64regex . test ( text ) ) {
await this . app . vault . createBinary (
outputFileName ,
( 0 , import _obsidian13 . base64ToArrayBuffer ) ( text )
) ;
} else {
await this . app . vault . create ( outputFileName , text ) ;
}
}
this . openExistingFileAndSetCursor ( outputFileName , parameters ) ;
return this . app . vault . getAbstractFileByPath ( outputFileName ) ;
}
async openExistingFileAndSetCursor ( file , parameters ) {
if ( parameters . openmode == "silent" )
return ;
if ( this . settings . openFileOnWrite ) {
await this . open ( {
file ,
setting : this . settings . openFileOnWriteInNewPane ,
parameters
} ) ;
if ( parameters . line != void 0 ) {
await this . setCursorInLine ( parameters ) ;
}
}
}
async open ( {
file ,
setting ,
parameters ,
supportPopover ,
mode
} ) {
if ( parameters . openmode == "popover" && ( supportPopover != null ? supportPopover : true ) ) {
const hoverEditor = this . app . plugins . plugins [ "obsidian-hover-editor" ] ;
if ( ! hoverEditor ) {
new import _obsidian13 . Notice (
"Cannot find Hover Editor plugin. Please file an issue."
) ;
this . failure ( parameters ) ;
}
const leaf = hoverEditor . spawnPopover ( void 0 , ( ) => {
this . app . workspace . setActiveLeaf ( leaf , { focus : true } ) ;
} ) ;
let tFile ;
if ( file instanceof import _obsidian13 . TFile ) {
tFile = file ;
} else {
tFile = this . app . vault . getAbstractFileByPath (
( 0 , import _obsidian13 . getLinkpath ) ( file )
) ;
}
await leaf . openFile ( tFile ) ;
} else {
let openMode = setting ;
if ( parameters . newpane !== void 0 ) {
openMode = parameters . newpane == "true" ;
}
if ( parameters . openmode !== void 0 ) {
if ( parameters . openmode == "true" || parameters . openmode == "false" ) {
openMode = parameters . openmode == "true" ;
} else if ( parameters . openmode == "popover" ) {
openMode = false ;
} else {
openMode = parameters . openmode ;
}
}
if ( openMode == "silent" ) {
return ;
}
let fileIsAlreadyOpened = false ;
if ( isBoolean ( openMode ) ) {
this . app . workspace . iterateAllLeaves ( ( leaf ) => {
var _a ;
if ( ( ( _a = leaf . view . file ) == null ? void 0 : _a . path ) === parameters . filepath ) {
if ( fileIsAlreadyOpened && leaf . width == 0 )
return ;
fileIsAlreadyOpened = true ;
this . app . workspace . setActiveLeaf ( leaf , { focus : true } ) ;
}
} ) ;
}
return this . app . workspace . openLinkText (
file instanceof import _obsidian13 . TFile ? file . path : file ,
"/" ,
fileIsAlreadyOpened ? false : openMode ,
mode != void 0 ? { state : { mode } } : getViewStateFromMode ( parameters )
) ;
}
}
async setCursor ( parameters ) {
const view = this . app . workspace . getActiveViewOfType ( import _obsidian13 . MarkdownView ) ;
if ( ! view )
return ;
const mode = parameters . mode ;
const editor = view . editor ;
let viewState = view . leaf . getViewState ( ) ;
viewState . state . mode = "source" ;
if ( mode === "append" ) {
const lastLine = editor . lastLine ( ) ;
const lastLineLength = editor . getLine ( lastLine ) . length ;
await view . leaf . setViewState ( viewState , { focus : true } ) ;
editor . setCursor ( { ch : lastLineLength , line : lastLine } ) ;
} else if ( mode === "prepend" ) {
await view . leaf . setViewState ( viewState , { focus : true } ) ;
editor . setCursor ( { ch : 0 , line : 0 } ) ;
}
await new Promise ( ( resolve ) => setTimeout ( resolve , 10 ) ) ;
if ( parameters . viewmode == "preview" ) {
viewState . state . mode = "preview" ;
await view . leaf . setViewState ( viewState ) ;
}
}
async setCursorInLine ( parameters ) {
const rawLine = parameters . line ;
const view = this . app . workspace . getActiveViewOfType ( import _obsidian13 . MarkdownView ) ;
if ( ! view )
return ;
const viewState = view . leaf . getViewState ( ) ;
viewState . state . mode = "source" ;
await view . leaf . setViewState ( viewState ) ;
const line = Math . min ( rawLine - 1 , view . editor . lineCount ( ) - 1 ) ;
view . editor . focus ( ) ;
view . editor . setCursor ( {
line ,
ch : view . editor . getLine ( line ) . length
} ) ;
await new Promise ( ( resolve ) => setTimeout ( resolve , 10 ) ) ;
if ( parameters . viewmode == "preview" ) {
viewState . state . mode = "preview" ;
await view . leaf . setViewState ( viewState ) ;
}
}
async loadSettings ( ) {
this . settings = Object . assign ( DEFAULT _SETTINGS , await this . loadData ( ) ) ;
}
async saveSettings ( ) {
await this . saveData ( this . settings ) ;
}
} ;
//! All of these methods are taken from https://www.npmjs.com/package/obsidian-daily-notes-interface.
/ * ! B u n d l e d l i c e n s e i n f o r m a t i o n :
feather - icons / dist / feather . js :
( * !
Copyright ( c ) 2016 Jed Watson .
Licensed under the MIT License ( MIT ) , see
http : //jedwatson.github.io/classnames
* )
* /