The documentation gives an indication of what is copied when an Apps Script is installed from the Gallery, but it is unclear if Managed Libraries used in a gallery script are also copied.
Are Managed Libraries inherited when a script is installed from the Google Apps Script Gallery?
Yes, the library configuration should be copied along with a script when it’s installed.