   intOptions = (settings, keys) ->
     for key in keys when settings[key]?
       settings[key] = parseInt(settings[key])
+    settings
+
+  integrationToUserAgent = (settings) ->
+    settings['_userAgent'] =
+      "UploadcareWidget/#{version}/#{settings['publicKey']} (Javascript#{
+        if settings['integration'] then "; #{settings['integration']}" else ''
+      })"
     settings
 
   parseCrop = (val) ->

      'multipartConcurrency'
      'multipartMaxAttempts'
      'parallelDirectUploads'
    ])

    if settings.crop != false and not $.isArray(settings.crop)
      if /^(disabled?|false|null)$/i.test(settings.crop)

{
  expose
  utils,
  jQuery: $,
  version
} = uploadcare

uploadcare.namespace 'settings', (ns) ->
